{"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","value","isString","isNumber","isQty","isDefinitionObject","QtyError","assertValidInitializationValueType","scalar","baseScalar","signature","_conversionCache","numerator","denominator","length","parse","call","join","indexOf","compareArray","updateBaseScalar","isTemperature","e","swiftConverter","srcUnits","dstUnits","convert","srcQty","dstQty","eq","identity","mul","to","i","result","Array","isArray","push","getKinds","Object","keys","map","knownSignature","sort","formatter","units","trim","isBase","unitSignature","base","toBase","vector","unitSignatureVector","reduce","previous","current","r","n","j","k","val","toString","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","_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","PREFIX_MAP","UNIT_MAP","filter","NestedMap","get","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","Number","window","unitDef","definition","UNIT_MATCH","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,W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