{"version":3,"sources":["quantities.js"],"names":["root","factory","exports","module","define","amd","Qty","this","UNITS","","","Math","pow","","","","","","","","","","","","","","","","","","","","","","","","","","","","<1>","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","PI","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","BASE_UNITS","UNITY","UNITY_ARRAY","QTY_STRING_REGEX","RegExp","POWER_OP","TOP_REGEX","BOTTOM_REGEX","SIGNATURE_VECTOR","KINDS","-312058","-312038","-152040","-152038","-152058","-39","-38","-20","-19","-18","0","1","2","3","20","400","7942","7959","7962","7979","7961","7997","8000","159999","160000","160020","312058","3199980","3199997","3200000","63999998","64000000","1280000000","25600000000","511999999980","512000000000","10240000000000","baseUnitCache","initValue","scalar","baseScalar","signature","_conversionCache","numerator","denominator","isString","trim","parse","call","length","join","indexOf","QtyError","compareArray","updateBaseScalar","isTemperature","value","e","swiftConverter","srcUnits","dstUnits","convert","srcQty","dstQty","eq","identity","mul","to","i","result","Array","isArray","push","formatter","units","isBase","unitSignature","base","toBase","vector","unitSignatureVector","reduce","previous","current","r","n","j","k","val","exec","scalarMatch","replace","parseFloat","x","nx","top","bottom","isNaN","UNIT_TEST_REGEX","test","abs","parseUnits","throwIncompatibleUnits","prototype","constructor","toFloat","isUnitless","isCompatible","other","undefined","isInverse","inverse","kind","toString","_isBase","isDegrees","match","concat","forEach","item","qty","q","toTempK","cached","unit","num","den","PREFIX_VALUES","mulSafe","UNIT_VALUES","a","b","toBaseUnits","_units","numIsUnity","denIsUnity","numUnits","stringifyUnits","denUnits","compareTo","lt","lte","gt","gte","toPrec","precQuantity","round","targetUnitsOrMaxDecimalsOrPrec","maxDecimals","targetUnits","out","format","arguments","targetQty","same","target","src","dst","dstScalar","toTemp","srcDegK","toDegK","toDegrees","divSafe","add","addTempDegrees","sub","rhs","lhsUnits","lhs","rhsConverted","dstDegrees","getDegreeUnits","temp","tempDegrees","op1","op2","numden","cleanTerms","div","parsedUnitsCache","unitMatch","normalizedUnits","UNIT_MATCH_REGEX","slice","map","PREFIX_MAP","UNIT_MAP","filter","NestedMap","get","keys","apply","key","index","childMap","data","set","stringifiedUnitsCache","stringified","token","tokenNext","unitNames","OUTPUT_MAP","getOutputNames","acc","unitCounter","unitCount","array1","array2","decimals","deg","arg","getFractional","factor","isFinite","count","combined","prop","hasOwnProperty","String","unitDef","definition","UNIT_MATCH","Object","sort","err","create","Error","name","message","stack"],"mappings":"CAYC,SAAUA,EAAMC,GACb,aAEuB,iBAAZC,QAIPC,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAE9CD,OAAOH,GAGPD,EAAKM,IAAML,IAbnB,CAeEM,KAAM,WACN,aAEA,IAAIC,GAEFC,aAAe,UAAW,MAAO,UACjCC,WAAe,KAAK,OAAO,QAASC,KAAKC,IAAI,EAAE,IAAK,UACpDC,WAAe,KAAK,OAAO,QAASF,KAAKC,IAAI,EAAE,IAAK,UACpDE,WAAe,KAAK,OAAO,QAASH,KAAKC,IAAI,EAAE,IAAK,UACpDG,WAAe,KAAK,OAAO,QAASJ,KAAKC,IAAI,EAAE,IAAK,UACpDI,WAAe,KAAK,OAAO,QAASL,KAAKC,IAAI,EAAE,IAAK,UACpDK,UAAe,KAAK,MAAM,OAAQN,KAAKC,IAAI,EAAE,IAAK,UAClDM,WAAe,KAAK,OAAO,QAASP,KAAKC,IAAI,EAAE,IAAK,UACpDO,WAAe,KAAK,OAAO,QAASR,KAAKC,IAAI,EAAE,IAAK,UACpDQ,YAAe,IAAI,QAAQ,SAAU,KAAM,UAC3CC,YAAe,IAAI,QAAQ,SAAU,KAAM,UAC3CC,UAAe,IAAI,MAAM,OAAQ,KAAM,UACvCC,WAAe,IAAI,OAAO,QAAS,KAAM,UACzCC,WAAe,IAAI,OAAO,QAAS,KAAM,UACzCC,WAAe,IAAI,OAAO,Q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