{"version":3,"sources":["quantities.js"],"names":["root","factory","exports","module","define","amd","Qty","this","UNITS","","","Math","pow","","","","","","","","","","","","","","","","","","","","","","","","","","","","<1>","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","PI","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","BASE_UNITS","UNITY","UNITY_ARRAY","SCI_NUMBER","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","7981","7997","8000","159999","160000","160020","312058","3199980","3199997","3200000","63999998","64000000","1280000000","25600000000","511999999980","512000000000","10240000000000","base_unit_cache","init_value","scalar","base_scalar","signature","output","numerator","denominator","constructor","String","trim","val","result","exec","parseFloat","n","x","nx","unit_match","top","bottom","isNaN","UNIT_TEST_REGEX","test","i","abs","replace","j","UNIT_MATCH_REGEX","push","slice","map","item","PREFIX_MAP","UNIT_MAP","call","reduce","a","b","concat","filter","length","join","indexOf","compareArray","isBase","vector","unitSignatureVector","toBase","Array","r","k","previous","current","index","array","base","isTemperature","objectKeys","obj","keys","key","hasOwnProperty","getOutputNames","units","token","token_next","unitNames","PREFIX_VALUES","OUTPUT_MAP","simplify","duplicates","some","unique","z","array1","array2","round","decimals","parse","value","e","prototype","toFloat","isUnitless","isCompatible","other","undefined","isInverse","inverse","kind","toString","is_base","isDegrees","match","forEach","qty","q","toTempK","cached","unit","num","den","mul_safe","UNIT_VALUES","toBaseUnits","mul","_units","numIsUnity","denIsUnity","n_names","d_names","eq","compareTo","lt","lte","gt","gte","toPrec","prec_quantity","to","prec_rounded_result","floor","log","LN10","target_units_or_max_decimals_or_prec","max_decimals","target_units","out","same","target","src","dst","dstScalar","dstUnits","toTemp","srcDegK","toDegK","toDegrees","div_safe","add","addTempDegrees","sub","rhs","lhsUnits","lhs","rhsConverted","dstDegrees","getDegreeUnits","temp","tempDegrees","op1","op2","numden","cleanTerms","div","num_regex","exp_regex","deg","arguments","arg","getFractional","fractional","parseInt","combined","prop","unit_def","definition","UNIT_MATCH","sort"],"mappings":"CAYC,SAAUA,EAAMC,GACU,iBAAZC,QAIPC,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAE9CD,OAAOH,GAGPD,EAAKM,IAAML,IAXnB,CAaEM,KAAM,WACN,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,QAAS,IAAK,UACxCC,WAAe,IAAI,OAAO,QAAS,IAAK,UACxCC,WAAe,IAAI,QAAS,IAAK,UACjCC,YAAe,IAAI,QAAQ,SAAU,IAAK,UAC1CC,WAAe,KAAK,OAAO,OAAO,QAAS,GAAK,UAChDC,WAAe,IAA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