{"version":3,"sources":["quantities.js"],"names":["global","factory","exports","module","define","amd","Qty","this","isQty","value","isString","String","isFiniteImpl","Number","isFinite","window","isNumber","identity","compareArray","array1","array2","length","i","assign","target","properties","Object","keys","forEach","key","mulSafe","result","decimals","arguments","arg","getFractional","round","divSafe","num","den","Error","factor","Math","pow","val","count","QtyError","err","create","prototype","apply","name","message","stack","throwIncompatibleUnits","left","right","constructor","UNITS","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","<1>","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","PI","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","BASE_UNITS","UNITY","UNITY_ARRAY","validateUnitDefinition","unitDef","definition","scalar","numerator","denominator","unit","undefined","PREFIX_VALUES","PREFIX_MAP","UNIT_VALUES","UNIT_MAP","OUTPUT_MAP","hasOwnProperty","j","SIGNATURE_VECTOR","unitSignature","signature","vector","unitSignatureVector","isBase","call","toBase","Array","r","n","indexOf","k","reduce","previous","current","QTY_STRING_REGEX","RegExp","POWER_OP","TOP_REGEX","BOTTOM_REGEX","parse","toString","trim","exec","scalarMatch","replace","parseFloat","x","nx","top","bottom","isNaN","UNIT_TEST_REGEX","test","abs","parseUnits","UNIT_MATCH","sort","a","b","join","UNIT_MATCH_REGEX","parsedUnitsCache","units","cached","unitMatch","normalizedUnits","push","slice","map","item","concat","filter","initValue","initUnits","isDefinitionObject","baseScalar","_conversionCache","base","isTemperature","KINDS","-312078","-312058","-312038","-152058","-152040","-152038","-7997","-79","-59","-39","-38","-20","-19","-18","-17","-1","0","1","2","3","20","400","7941","7942","7959","7961","7962","7979","7981","7982","7997","7998","8000","152020","159999","160000","160020","312058","312078","3199980","3199997","3200000","63999998","64000000","1280000000","25599999980","25600000000","511999999980","512000000000","addTempDegrees","temp","deg","tempDegrees","to","getDegreeUnits","toDegrees","src","dst","dstScalar","srcDegK","qty","q","match","toDegK","dstUnits","kind","isDegrees","other","isCompatible","toTemp","isInverse","inverse","toTempK","baseUnitCache","toBaseUnits","mul","toFloat","isUnitless","toPrec","precQuantity","cleanTerms","combined","prop","NestedMap","e","getUnits","unitKeys","substr","getKinds","toLowerCase","getAliases","unitName","strings","knownSignature","seen","swiftConverter","srcUnits","convert","srcQty","dstQty","eq","isArray","add","sub","rhs","lhsUnits","lhs","rhsConverted","dstDegrees","op1","op2","numden","div","compareTo","lt","lte","gt","gte","same","every","_isBase","get","index","childMap","data","set","formatter","_units","numIsUnity","denIsUnity","numUnits","stringifyUnits","denUnits","targetUnitsOrMaxDecimalsOrPrec","maxDecimals","targetUnits","out","format","targetQty","stringifiedUnitsCache","stringified","token","tokenNext","unitNames","getOutputNames","acc","unitCounter","unitCount","version"],"mappings":"CAuBC,SAAUA,EAAQC,GACE,iBAAZC,SAA0C,oBAAXC,OAAyBA,OAAOD,QAAUD,IAC9D,mBAAXG,QAAyBA,OAAOC,IAAMD,OAAOH,GACnDD,EAAOM,IAAML,IAHhB,CAIEM,KAAM,WAAc,aASpB,SAASC,EAAMC,GACb,OAAOA,aAAiBH,EAU1B,SAASI,EAASD,GAChB,MAAwB,iBAAVA,GAAsBA,aAAiBE,OAQvD,IAAIC,EAAeC,OAAOC,UAAYC,OAAOD,SAQ7C,SAASE,EAASP,GAEhB,OAAOG,EAAaH,GAMtB,SAASQ,EAASR,GAChB,OAAOA,EAkBT,SAASS,EAAaC,EAAQC,GAC5B,GAAIA,EAAOC,SAAWF,EAAOE,OAC3B,OAAO,EAET,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAOE,OAAQC,IAAK,CACtC,GAAIF,EAAOE,GAAGJ,eACPE,EAAOE,GAAGJ,aAAaC,EAAOG,IACjC,OAAO,EAGX,GAAIF,EAAOE,KAAOH,EAAOG,GACvB,OAAO,EAGX,OAAO,EAGT,SAASC,EAAOC,EAAQC,GACtBC,OAAOC,KAA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