{"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","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,KAAKF,G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