physical-quantity 1.1.88 → 1.1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/pq.es.js +1523 -1
- package/dist/pq.umd.js +238 -1
- package/package.json +1 -1
package/dist/pq.es.js
CHANGED
|
@@ -1 +1,1523 @@
|
|
|
1
|
-
const _0x355b90=_0x585e;(function(_0x295d39,_0x33d6d8){const _0x1002c8=_0x585e,_0x410b80=_0x295d39();while(!![]){try{const _0x16fc94=-parseInt(_0x1002c8(0x204))/0x1*(parseInt(_0x1002c8(0xbf))/0x2)+-parseInt(_0x1002c8(0x7c))/0x3+parseInt(_0x1002c8(0x236))/0x4+parseInt(_0x1002c8(0xfc))/0x5+parseInt(_0x1002c8(0xc7))/0x6+-parseInt(_0x1002c8(0x163))/0x7+parseInt(_0x1002c8(0x1a2))/0x8;if(_0x16fc94===_0x33d6d8)break;else _0x410b80['push'](_0x410b80['shift']());}catch(_0x285f66){_0x410b80['push'](_0x410b80['shift']());}}}(_0x13ba,0x35709));const o=0.45359237,r=9.80665,v=0x14a0,l=25.4/0x3e8,n=0xc*l,W=0x73c,V=0x42*0x294,d=4.54609,p=0xe7,I=268.8025,g=0x1/0x8,F=0x1/0x14,G=0x1/0x10,_=0x8,B=0x8,q=0x1/0x10,z=0xf0,K=0xfa,Q=0xa,T=14.59390294,M=1055.05585262,w=4.1868,f=4.184,R=0x226*o*r*n,N=0x18bcd,$=0x1/0x2f8,y=133.322387415,j=0x569e4c0a22d73800,U={'Length':['m',_0x355b90(0x1df),'µm',_0x355b90(0x127),'mm','cm','dm','km','in',_0x355b90(0x1c4),_0x355b90(0x268),'ft','yd',_0x355b90(0xc3),_0x355b90(0x74)],'Mass':['kg','g','mg','µg','oz',_0x355b90(0x1d3),'slug','ton(US/short)',_0x355b90(0x143),_0x355b90(0xcf)],'Time':[_0x355b90(0x16d),'s',_0x355b90(0x13f),'h',_0x355b90(0x93),_0x355b90(0x21a),_0x355b90(0xf3)],'ElectricalCurrent':['A',_0x355b90(0x26d),'mA','µA','kA','MA','esu/s'],'Temperature':['°K','°C','°F',_0x355b90(0x164)],'Amount\x20of\x20Substance':[_0x355b90(0x10e),_0x355b90(0x162),_0x355b90(0x161)],'Luminous\x20Intensity':[_0x355b90(0x88),_0x355b90(0x115),_0x355b90(0x223),_0x355b90(0xb6)],'Acceleration':[_0x355b90(0x1ee),_0x355b90(0xca),_0x355b90(0x1ca),_0x355b90(0x20b),_0x355b90(0x1a5),_0x355b90(0x235)],'Gravitational\x20Constant':[_0x355b90(0x185),_0x355b90(0x24e),_0x355b90(0x25e)],'Velocity\x20(Angular)':['rad/s',_0x355b90(0x133),'rad/h',_0x355b90(0x125),_0x355b90(0x1c6),_0x355b90(0x1db),_0x355b90(0x228),_0x355b90(0xc0)],'Acceleration\x20(Angular)':[_0x355b90(0x1e3),_0x355b90(0x17c),_0x355b90(0xc9),_0x355b90(0x19e)],'Illuminance':[_0x355b90(0x187),_0x355b90(0x155),_0x355b90(0x178),_0x355b90(0x82),_0x355b90(0xd3),_0x355b90(0x22f),'fc','lumen/ft²',_0x355b90(0xa1)],'Frequency':['Hz','1/s','1/min',_0x355b90(0x147),'1/hour','mHz','kHz',_0x355b90(0x1d7),_0x355b90(0x1ff)],'Area':['m²','µm²',_0x355b90(0x112),_0x355b90(0x16a),'km²',_0x355b90(0x11a),_0x355b90(0x179),_0x355b90(0x15a),_0x355b90(0x208),_0x355b90(0x19b),'mile²'],'Volume\x20/\x20Section\x20Modulus':['m³',_0x355b90(0x12f),_0x355b90(0xa7),_0x355b90(0x256),'L','mL',_0x355b90(0x168),_0x355b90(0x19f),_0x355b90(0x1ed),_0x355b90(0x26b),'gal(UK-imperial)',_0x355b90(0x25d),_0x355b90(0x15f),_0x355b90(0x1ad),'pint(US-liquid)','pint(US-dry)','fluid\x20ounce(UK-imperial)',_0x355b90(0x23e),_0x355b90(0x17d),_0x355b90(0x1cc),_0x355b90(0x177),_0x355b90(0x18e),_0x355b90(0x21d),'cup(Imperial)'],'Polar\x20Moment\x20of\x20Inertia':['m⁴','mm⁴',_0x355b90(0x175),_0x355b90(0x107),_0x355b90(0x180)],'Moment\x20of\x20Inertia':[_0x355b90(0x239),_0x355b90(0x97),_0x355b90(0x89),_0x355b90(0xd7),_0x355b90(0xeb),_0x355b90(0x245)],'Force':['N','kN','MN',_0x355b90(0x23d),'lb','lbf','kip[kilo\x20pound]'],'Angle':[_0x355b90(0x1af),_0x355b90(0x142),_0x355b90(0x218),_0x355b90(0x1fa)],'Solid\x20Angle':[_0x355b90(0x12b),_0x355b90(0x249)],'BMI-Body\x20Mass\x20Index/Ballistic\x20Coefficient':[_0x355b90(0x11d),_0x355b90(0x195),_0x355b90(0x190),'tonne/m²',_0x355b90(0x20c),'lbm/ft²',_0x355b90(0x1eb),_0x355b90(0x13b),_0x355b90(0xff),_0x355b90(0x1f5)],'Density':[_0x355b90(0x1f8),'kg/L',_0x355b90(0x114),'g/mm³',_0x355b90(0x18d),_0x355b90(0x201)],'Energy':[_0x355b90(0x170),'kJ','MJ','GJ',_0x355b90(0x1be),_0x355b90(0xfe),_0x355b90(0x116),_0x355b90(0x1bb),'kilo-calorie(IT)',_0x355b90(0x242),'kilo-calorie(TH)',_0x355b90(0x214),'Wh',_0x355b90(0x11f),_0x355b90(0x1c7)],'Power':[_0x355b90(0xa5),'kW','MW',_0x355b90(0xb9),_0x355b90(0x1dd),_0x355b90(0x183),_0x355b90(0x1a9),_0x355b90(0x1fb),'calorie(IT)/minute',_0x355b90(0x12e),_0x355b90(0x76),_0x355b90(0x24a),_0x355b90(0x158),_0x355b90(0x1d6),_0x355b90(0x260),'HP',_0x355b90(0x1a3),_0x355b90(0x22d),_0x355b90(0xc1),_0x355b90(0x137),_0x355b90(0xe0)],'Torque,\x20Moment\x20of\x20Force':['Nm',_0x355b90(0x90),_0x355b90(0x1ea),_0x355b90(0x11e),_0x355b90(0x1b8),'oz-in',_0x355b90(0x1cb)],'Pressure/Stress':['Pa',_0x355b90(0x1d0),'MPa',_0x355b90(0x146),'bar','mbar',_0x355b90(0x118),_0x355b90(0xba),_0x355b90(0x14a),_0x355b90(0x191),'mm\x20W.C.',_0x355b90(0x241),'in\x20W.C.',_0x355b90(0x160),_0x355b90(0xda),_0x355b90(0x103),_0x355b90(0x1a4)],'Pressure\x20Drop\x20per\x20Unit\x20Length':[_0x355b90(0x99),_0x355b90(0x10b),_0x355b90(0x22c),_0x355b90(0x266),_0x355b90(0xe1),_0x355b90(0x261),_0x355b90(0x1f9),_0x355b90(0xae),_0x355b90(0x212),_0x355b90(0x213),_0x355b90(0x165),'in\x20W.C./ft',_0x355b90(0xd1),'psf/in',_0x355b90(0x173),_0x355b90(0x1b2),_0x355b90(0x1fc),_0x355b90(0x1c9)],'Uniformly\x20Distributed\x20(Uniform\x20Line)\x20Load\x20|\x20Stiffness\x20of\x20Linear\x20Spring':[_0x355b90(0x87),_0x355b90(0x21b),_0x355b90(0x1e2),_0x355b90(0x120),'kips/ft',_0x355b90(0x8a)],'Stiffness\x20of\x20Rotary\x20Spring':[_0x355b90(0x19a),_0x355b90(0x26c),'N⋅mm/rad','N⋅mm/deg°',_0x355b90(0x193),'lb-ft/deg°',_0x355b90(0x78),_0x355b90(0x263)],'Flow\x20Rate\x20(Volume)':['m³/s',_0x355b90(0x15d),_0x355b90(0x244),'L/s',_0x355b90(0x1de),_0x355b90(0x1b7),'cm³/s','cm³/min',_0x355b90(0x18c),'in³/min',_0x355b90(0xdb),_0x355b90(0xde),_0x355b90(0xa3),_0x355b90(0x12d),_0x355b90(0x1dc),_0x355b90(0x1c5),'yd³/h','gpm(US)',_0x355b90(0x23b),_0x355b90(0x85),_0x355b90(0x1e4)],'Flow\x20Rate\x20(Mass)':[_0x355b90(0x248),_0x355b90(0x215),'kg/h',_0x355b90(0x145),'g/min','g/h',_0x355b90(0x130),_0x355b90(0x22a),'slug/h',_0x355b90(0x229),_0x355b90(0x209),'lbm/h',_0x355b90(0x1f3),'oz/min',_0x355b90(0xf2),'tonne/h',_0x355b90(0x1b0),_0x355b90(0x8b)],'Speed\x20/\x20Velocity\x20(Linear)':[_0x355b90(0xbc),_0x355b90(0x216),_0x355b90(0x226),_0x355b90(0x259),'m/min',_0x355b90(0x1e6),'mm/h',_0x355b90(0xb1),_0x355b90(0x1e5),_0x355b90(0x253),'fps',_0x355b90(0x1b1),_0x355b90(0x1a0),_0x355b90(0x128),_0x355b90(0x227),'knot[kn,\x20kt,\x20or\x20nautical\x20mile/h]'],'Fuel\x20Heat\x20Value\x20(Volume)':[_0x355b90(0x108),_0x355b90(0x7f),_0x355b90(0x251),_0x355b90(0x176),'MJ/m³','GJ/m³','cal(IT)/L',_0x355b90(0x21e),_0x355b90(0xb2),'kcal(TH)/m³',_0x355b90(0xee),'Wh/m³',_0x355b90(0xd5),_0x355b90(0x1ab),_0x355b90(0x11c),_0x355b90(0x122),_0x355b90(0x18f)],'Fuel\x20Heat\x20Value\x20(Mass)':[_0x355b90(0x91),_0x355b90(0x1f0),'kJ/kg','MJ/kg','GJ/kg',_0x355b90(0x1b4),_0x355b90(0x111),_0x355b90(0xad),_0x355b90(0x237),_0x355b90(0x232),'Wh/kg',_0x355b90(0x231),_0x355b90(0x139),_0x355b90(0x262),_0x355b90(0x16b),_0x355b90(0xaf)],'Mass\x20Heat\x20Capacity':[_0x355b90(0x157),'J/(kg·°C)',_0x355b90(0x1bc),'J/(g·°C)',_0x355b90(0x1f4)],'Viscosity\x20-\x20Absolute/Dynamic(μ)':[_0x355b90(0xd8),_0x355b90(0x267),_0x355b90(0x12c),_0x355b90(0xf7),'cP','lb·s/ft²',_0x355b90(0xac)],'Viscosity\x20-\x20Kinematic':[_0x355b90(0xc2),'m²/min',_0x355b90(0x257),_0x355b90(0x141),_0x355b90(0x20f),_0x355b90(0x269),_0x355b90(0x1e0),_0x355b90(0x24c),_0x355b90(0x13e),'mm²/hr',_0x355b90(0x17a),_0x355b90(0x22e),_0x355b90(0xf0),_0x355b90(0x156),'in²/min',_0x355b90(0x184)],'Linear\x20Thermal\x20Expansion\x20Coefficient':[_0x355b90(0x13d),_0x355b90(0x181),_0x355b90(0xe8),_0x355b90(0x182)],'Thermal\x20Conductivity':[_0x355b90(0xe4),_0x355b90(0x230),_0x355b90(0xe2),_0x355b90(0x1e7)],'Electrical\x20Charge':[_0x355b90(0x151),'Ah',_0x355b90(0x1ae),_0x355b90(0x23a),_0x355b90(0x14c),_0x355b90(0x25c)],'Electrical\x20Potential\x20Difference\x20(Voltage)':['V','Volt',_0x355b90(0xb3),_0x355b90(0x1c1),'µV','mV','kV','MV'],'Electrical\x20Resistance(Impedance)':[_0x355b90(0xe6),'µΩ','mΩ','kΩ','MΩ'],'Electrical\x20Capacitance':[_0x355b90(0x19c),'pF','nF','µF','mF'],'Electrical\x20Inductance':[_0x355b90(0xd6),'µH','mH'],'Electrical\x20Conductance':[_0x355b90(0x24d),'℧','µS','mS','kS'],'Magnetic\x20Flux':['Wb[weber]',_0x355b90(0x20d),_0x355b90(0x1b3),'mWb',_0x355b90(0xa6),_0x355b90(0x117)],'Luminous\x20Flux':['lm[lumen]',_0x355b90(0xd0)],'Magnetic\x20Flux\x20Density':[_0x355b90(0x264),'Wb/m²','µT','G','mT'],'Katalytic\x20Activity':['kat[katal]',_0x355b90(0xd2),'µkat',_0x355b90(0x1c2),_0x355b90(0x202),_0x355b90(0xcd)],'Radioactivity':['Bq[becquerel]',_0x355b90(0x21f),_0x355b90(0x110),'mBq','kBq','MBq',_0x355b90(0x258),_0x355b90(0xed)],'Absorbed\x20Dose\x20of\x20Ionizing\x20Radiation':[_0x355b90(0x18b),'J/kg',_0x355b90(0x136),_0x355b90(0x98),_0x355b90(0x129),_0x355b90(0x101)],'Equivalent\x20Dose\x20of\x20Ionizing\x20Radiation':[_0x355b90(0x159),'J/kg','µSv',_0x355b90(0x243),'kSv',_0x355b90(0x1d2)],'Volumetric\x20Displacement':[_0x355b90(0xa8),_0x355b90(0xc5),_0x355b90(0x8d),'cc/rev',_0x355b90(0x1b9),'in³/rev',_0x355b90(0x13a)],'Fuel\x20Economy':['km/L','mpg(US)',_0x355b90(0xe7),_0x355b90(0x1c8),_0x355b90(0x203),_0x355b90(0x252)],'Fuel\x20Consumption':[_0x355b90(0x77),'L/km',_0x355b90(0x194),_0x355b90(0xfb),'L/100mile',_0x355b90(0xbe),_0x355b90(0x150),_0x355b90(0x1a7),'gal(UK-imperial)/100mile'],'New\x20Energy\x20Economy\x20(MPGe)':['m/J',_0x355b90(0x17e),'km/MJ',_0x355b90(0x265),_0x355b90(0x247),_0x355b90(0x20e),'mile/MM\x20Btu'],'New\x20Energy\x20Consumption':[_0x355b90(0x23f),_0x355b90(0x153),'Wh/mile','kWh/km','kWh/100km',_0x355b90(0x126),'kWh/100mile',_0x355b90(0x14d),_0x355b90(0x148),_0x355b90(0x211),_0x355b90(0x1d1),_0x355b90(0xdd),_0x355b90(0x255),_0x355b90(0x1e9),_0x355b90(0xa4)],'Baud\x20Rate':[_0x355b90(0x106),'Bd','kBd',_0x355b90(0x95),'GBd'],'Currency':['$','¢',_0x355b90(0xe9),'$1M',_0x355b90(0xd9),_0x355b90(0x1c0)],'Impulse\x20/\x20Momentum':[_0x355b90(0xfd),'Newton-second',_0x355b90(0x92),_0x355b90(0x25a),_0x355b90(0x1fd),_0x355b90(0x79)],'Digital\x20Storage':['bit',_0x355b90(0x81),_0x355b90(0x83),_0x355b90(0x1da),'mebibit','gigabit',_0x355b90(0x16e),_0x355b90(0xf1),_0x355b90(0x167),_0x355b90(0x124),_0x355b90(0x8f),_0x355b90(0x10a),_0x355b90(0x80),_0x355b90(0x220),_0x355b90(0xc6),_0x355b90(0x113),'gigabyte','gibibyte','terabyte',_0x355b90(0xcc),'petabyte',_0x355b90(0x131)],'Data\x20Transfer\x20Rate':[_0x355b90(0x106),_0x355b90(0x13c),_0x355b90(0x1d5),_0x355b90(0x19d),'mebibit/s',_0x355b90(0x166),_0x355b90(0xbb),'terabit/s','tebibit/s','petabit/s',_0x355b90(0xaa)]},b={'Length':{'m':0x1,'nano[nm]':0x1/0x3b9aca00,'µm':0x1/0xf4240,'micron':0x1/0xf4240,'mm':0x1/0x3e8,'cm':0.01,'dm':0.1,'km':0x3e8,'in':l,'thou[mil,\x20or\x20thousandth\x20of\x20an\x20inch]':l/0x3e8,'ft-in':l,'ft':n,'yd':0x3*n,'mile':v*n,'NM[M,\x20nmi,\x20or\x20nautical\x20mile]':W},'Mass':{'kg':0x1,'g':0.001,'mg':0x1/0xf4240,'µg':0x1/0x3b9aca00,'oz':0x1/0x10*o,'lbm':o,'slug':T,'ton(US/short)':0x7d0*o,'ton(UK-Imperial/long)':0x8c0*o,'tonne':0x3e8},'Time':{'s[second]':0x1,'s':0x1,'minute':0x3c,'h':0xe10,'h[hour]':0xe10,'day':0xe10*0x18,'week':0xe10*0x18*0x7},'ElectricalCurrent':{'A':0x1,'Ampere[amp]':0x1,'mA':0.001,'µA':0.000001,'kA':0x3e8,'MA':0xf4240,'esu/s':0x1/0xb2d05e00},'Temperature':{'°K':{'c0':0x1,'c1':0x0},'°C':{'c0':0x1,'c1':273.15},'°F':{'c0':0x5/0x9,'c1':255.3722222},'°Ra':{'c0':0x5/0x9,'c1':0x0}},'Amount\x20of\x20Substance':{'mol':0x1,'mmol':0.001,'kmol':0x3e8},'Luminous\x20Intensity':{'cd[candela]':0x1,'lm/sr':0x1,'cp[candlepower]':0x1,'cp[candlepower(before\x201948)]':0.981},'Acceleration':{'m/s²':0x1,'m/min²':0x1/0xe10,'mm/s²':0.001,'ft/s²':n,'ft/min²':n/0xe10,'in/s²':l},'Gravitational\x20Constant':{'m³/kg/s²':0x1,'N⋅m²/kg²':0x1,'dyn⋅cm²/g²':0x3e8},'Velocity\x20(Angular)':{'rad/s':0x1,'rad/min':0x1/0x3c,'rad/h':0x1/0xe10,'deg°/s':Math['PI']/0xb4,'deg°/min':Math['PI']/0xb4/0x3c,'deg°/h':Math['PI']/0xb4/0xe10,'rpm[rev/min]':0x2*Math['PI']/0x3c,'rev/s':0x2*Math['PI']},'Acceleration\x20(Angular)':{'rad/s²':0x1,'rad/min²':0x1/0xe10,'deg°/s²':Math['PI']/0xb4,'deg°/min²':Math['PI']/0xb4/0xe10},'Illuminance':{'lux':0x1,'lumen/m²':0x1,'lm/m²':0x1,'meter-candle':0x1,'phot':0x2710,'foot-candle':0x1/Math[_0x355b90(0x15e)](n,0x2),'fc':0x1/Math['pow'](n,0x2),'lumen/ft²':0x1/Math['pow'](n,0x2),'lm/ft²':0x1/Math[_0x355b90(0x15e)](n,0x2)},'Frequency':{'Hz':0x1,'1/s':0x1,'1/min':0x1/0x3c,'rpm':0x1/0x3c,'1/hour':0x1/0xe10,'mHz':0x1/0x3e8,'kHz':0x3e8,'MHz':0xf4240,'GHz':0x3b9aca00},'Area':{'m²':0x1,'µm²':Math[_0x355b90(0x15e)](0x1/0xf4240,0x2),'mm²':Math[_0x355b90(0x15e)](0x1/0x3e8,0x2),'cm²':Math[_0x355b90(0x15e)](0x1/0x64,0x2),'km²':0xf4240,'hectare':Math['pow'](0x64,0x2),'in²':Math['pow'](l,0x2),'ft²':Math[_0x355b90(0x15e)](n,0x2),'yd²':Math[_0x355b90(0x15e)](n*0x3,0x2),'acre':V*Math['pow'](n,0x2),'mile²':Math[_0x355b90(0x15e)](v*n,0x2)},'Volume\x20/\x20Section\x20Modulus':{'m³':0x1,'µm³':Math[_0x355b90(0x15e)](0x1/0xf4240,0x3),'mm³':Math[_0x355b90(0x15e)](0x1/0x3e8,0x3),'cm³':Math[_0x355b90(0x15e)](0x1/0x64,0x3),'L':0x1/0x3e8,'mL':0x1/0xf4240,'km³':Math['pow'](0x3e8,0x3),'in³':Math['pow'](l,0x3),'ft³':Math[_0x355b90(0x15e)](n,0x3),'yd³':Math['pow'](n*0x3,0x3),'gal(UK-imperial)':d*0x1/0x3e8,'gal(US-liquid)':p*Math[_0x355b90(0x15e)](l,0x3),'gal(US-dry)':I*Math[_0x355b90(0x15e)](l,0x3),'pint(UK-imperial)':g*d*0x1/0x3e8,'pint(US-liquid)':g*p*Math[_0x355b90(0x15e)](l,0x3),'pint(US-dry)':g*I*Math[_0x355b90(0x15e)](l,0x3),'fluid\x20ounce(UK-imperial)':F*g*d/0x3e8,'fluid\x20ounce(US-liquid)':G*g*p*Math[_0x355b90(0x15e)](l,0x3),'bushel(UK-imperial)':_*d/0x3e8,'bushel(US-dry)':B*I*Math[_0x355b90(0x15e)](l,0x3),'cup(US-liquid)':q*p*Math[_0x355b90(0x15e)](l,0x3),'cup(Legal)':z*Math[_0x355b90(0x15e)](0.01,0x3),'cup(Metric)':K*Math[_0x355b90(0x15e)](0.01,0x3),'cup(Imperial)':Q*F*g*d/0x3e8},'Polar\x20Moment\x20of\x20Inertia':{'m⁴':0x1,'mm⁴':1e-12,'cm⁴':1e-8,'in⁴':Math['pow'](l,0x4),'ft⁴':Math['pow'](n,0x4)},'Moment\x20of\x20Inertia':{'kg⋅m²':0x1,'g⋅cm²':0x1/(0x3e8*0x2710),'g⋅mm²':0x1/(0x3e8*0xf4240),'lbm⋅ft²':o*Math[_0x355b90(0x15e)](n,0x2),'lbm⋅in²':o*Math[_0x355b90(0x15e)](l,0x2),'oz⋅in²':o/0x10*Math[_0x355b90(0x15e)](l,0x2)},'Force':{'N':0x1,'kN':0x3e8,'MN':0xf4240,'kgf':r,'lb':o*r,'lbf':o*r,'kip[kilo\x20pound]':0x3e8*o*r},'Angle':{'radian':0x1,'rad':0x1,'deg°':Math['PI']/0xb4,'revolution':Math['PI']*0x2},'Solid\x20Angle':{'sr[steradian]':0x1,'m²/m²':0x1},'BMI-Body\x20Mass\x20Index/Ballistic\x20Coefficient':{'kg/m²':0x1,'g/cm²':0x1/0x3e8/Math[_0x355b90(0x15e)](0.01,0x2),'g/mm²':0x1/0x3e8/Math[_0x355b90(0x15e)](0.001,0x2),'tonne/m²':0x3e8,'lbm/yd²':o/Math[_0x355b90(0x15e)](n*0x3,0x2),'lbm/ft²':o/Math[_0x355b90(0x15e)](n,0x2),'lbm/in²':o/Math[_0x355b90(0x15e)](l,0x2),'oz/yd²':o/0x10/Math[_0x355b90(0x15e)](0x3*n,0x2),'oz/ft²':o/0x10/Math['pow'](n,0x2),'oz/in²':o/0x10/Math[_0x355b90(0x15e)](l,0x2)},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x355b90(0x15e)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0x355b90(0x15e)](0.001,0x3),'lbm/ft³':o/Math['pow'](n,0x3),'lbm/in³':o/Math[_0x355b90(0x15e)](l,0x3)},'Energy':{'J[Joule]':0x1,'kJ':0x3e8,'MJ':0xf4240,'GJ':0x3b9aca00,'TNT\x20Equivalent[kiloton]':0x3b9aca00*f,'Btu':M,'MM\x20Btu':M*0xf4240,'calorie(IT)':w,'kilo-calorie(IT)':w*0x3e8,'calorie(TH)':f,'kilo-calorie(TH)':f*0x3e8,'HP\x20Hour':R*0xe10,'Wh':0xe10,'kWh':0xe10*0x3e8,'eV{electron-volt]':0x1/j},'Power':{'W[watt]':0x1,'kW':0x3e8,'MW':0xf4240,'GW[Gigawatt]':0x3b9aca00,'Btu/h':M/0xe10,'Btu/minute':M/0x3c,'MM\x20Btu/h':M*0xf4240/0xe10,'calorie(IT)/second':w,'calorie(IT)/minute':w/0x3c,'kilo-calorie(IT)/hour':w*0x3e8/0xe10,'calorie(TH)/second':f,'calorie(TH)/minute':f/0x3c,'kilo-calorie(TH)/hour':f*0x3e8/0xe10,'lb-ft/second':o*r*n,'lb-ft/minute':o*r*n/0x3c,'HP':R,'J/second':0x1,'J/minute':0x1/0x3c,'J/h':0x1/0xe10,'MJ/h':0xf4240/0xe10,'kJ/minute':0x3e8/0x3c},'Torque,\x20Moment\x20of\x20Force':{'Nm':0x1,'kNm':0x3e8,'lb-in':o*r*l,'kip-in':0x3e8*o*r*l,'lb-ft':o*r*n,'oz-in':o/0x10*r*l,'oz-ft':o/0x10*r*n},'Pressure/Stress':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':N,'mm\x20HG':y,'cm\x20HG':y*0xa,'in\x20HG':y*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*r,'m\x20W.C.':0x1*0x3e8*r,'in\x20W.C.':l*0x3e8*r,'psf':o*r/Math['pow'](n,0x2),'psi':o*r/Math[_0x355b90(0x15e)](l,0x2),'ksi':o*r/Math[_0x355b90(0x15e)](l,0x2)*0x3e8,'ksi{kip/in²]':o*r/Math['pow'](l,0x2)*0x3e8},'Pressure\x20Drop\x20per\x20Unit\x20Length':{'Pa/m':0x1,'Pascal/m':0x1,'kPa/m':0x3e8,'MPa/km':0xf4240/0x3e8,'bar/m':0x186a0,'mbar/mm':0x64*0x3e8,'atm/m':N,'mm\x20HG/m':y,'in\x20HG/ft':y*25.4/n,'mm\x20W.C./m':0x1/0x3e8*0x3e8*r,'m\x20W.C./m':0x3e8*r,'in\x20W.C./ft':l*0x3e8*r/n,'in\x20W.C./100\x20ft':l*0x3e8*r/n/0x64,'psf/in':o*r/Math[_0x355b90(0x15e)](n,0x2)/l,'psi/ft':o*r/Math[_0x355b90(0x15e)](n,0x2)/n,'ksi/ft':o*r/Math[_0x355b90(0x15e)](n,0x2)/n*0x3e8,'Torr/ft':$*N/n,'mTorr/m':$*N/0x3e8},'Uniformly\x20Distributed\x20(Uniform\x20Line)\x20Load\x20|\x20Stiffness\x20of\x20Linear\x20Spring':{'N/m':0x1,'N/mm':0x3e8,'kN/m':0x3e8,'lb/ft':o*r/n,'kips/ft':0x3e8*o*r/n,'lb/in':o*r/l},'Stiffness\x20of\x20Rotary\x20Spring':{'N⋅m/rad':0x1,'N⋅m/deg°':0x1/Math['PI']*0xb4,'N⋅mm/rad':0x1/0x3e8,'N⋅mm/deg°':0x1/0x3e8/Math['PI']*0xb4,'lb-ft/rad':o*r*n,'lb-ft/deg°':o*r*n/(Math['PI']/0xb4),'lb-in/rad':o*r*l,'lb-in/deg°':o*r*l/(Math['PI']/0xb4)},'Flow\x20Rate\x20(Volume)':{'m³/s':0x1,'m³/min':0x1/0x3c,'m³/h':0x1/0xe10,'L/s':0x1/0x3e8,'L/min':0x1/0x3e8/0x3c,'L/h':0x1/0x3e8/0xe10,'cm³/s':0.000001,'cm³/min':0.000001/0x3c,'in³/s':Math[_0x355b90(0x15e)](l,0x3),'in³/min':Math[_0x355b90(0x15e)](l,0x3)/0x3c,'ft³/s':Math['pow'](n,0x3),'CFM':Math[_0x355b90(0x15e)](n,0x3)/0x3c,'CFM[ft³/min]':Math[_0x355b90(0x15e)](n,0x3)/0x3c,'CFH':Math[_0x355b90(0x15e)](n,0x3)/0xe10,'CFH[ft³/h]':Math[_0x355b90(0x15e)](n,0x3)/0xe10,'yd³/min':Math[_0x355b90(0x15e)](n*0x3,0x3)/0x3c,'yd³/h':Math[_0x355b90(0x15e)](n*0x3,0x3)/0xe10,'gpm(US)':p*Math[_0x355b90(0x15e)](l,0x3)/0x3c,'gph(US)':p*Math[_0x355b90(0x15e)](l,0x3)/0xe10,'bushel(UK-imperial)/h':_*d/0x3e8/0xe10,'bushel(US)/h':B*I*Math[_0x355b90(0x15e)](l,0x3)/0xe10},'Flow\x20Rate\x20(Mass)':{'kg/s':0x1,'kg/min':0x1/0x3c,'kg/h':0x1/0xe10,'g/s':0x1/0x3e8,'g/min':0x1/0x3e8/0x3c,'g/h':0x1/0x3e8/0xe10,'slug/s':T,'slug/min':T/0x3c,'slug/h':T/0xe10,'lbm/s':o,'lbm/min':o/0x3c,'lbm/h':o/0xe10,'oz/s':o/0x10,'oz/min':o/0x10/0x3c,'oz/h':o/0x10/0xe10,'tonne/h':0x3e8/0xe10,'short\x20ton/h':0x7d0*o/0xe10,'long\x20ton/h':0x8c0*o/0xe10},'Speed\x20/\x20Velocity\x20(Linear)':{'m/s':0x1,'mm/s':0x1/0x3e8,'km/s':0x1,'mm/min':0x1/0x3e8/0x3c,'m/min':0x1/0x3c,'km/min':0x3e8/0x3c,'mm/h':0x1/0x3e8/0xe10,'m/h':0x1/0xe10,'km/h':0x3e8/0xe10,'in/s':l,'fps':n,'fps[ft/second]':n,'fpm':n/0x3c,'fpm[ft/minute]':n/0x3c,'mph[mile/h]':v*n/0xe10,'knot[kn,\x20kt,\x20or\x20nautical\x20mile/h]':W/0xe10},'Electrical\x20Potential\x20Difference\x20(Voltage)':{'V':0x1,'Volt':0x1,'joule/coulomb':0x1,'J/C':0x1,'µV':0x1/0xf4240,'mV':0x1/0x3e8,'kV':0x3e8,'MV':0xf4240}},k=_0x1f6ed5=>{const _0x5cf41d=_0x355b90;if(console[_0x5cf41d(0x134)]('getUnitCategory\x20called\x20with\x20unit:',_0x1f6ed5),!_0x1f6ed5)return console['warn'](_0x5cf41d(0x9e)),_0x5cf41d(0xb0);for(const _0x355ef4 in U)if(U[_0x355ef4][_0x5cf41d(0x144)](_0x1f6ed5))return console[_0x5cf41d(0x134)](_0x5cf41d(0x9c)+_0x1f6ed5+':',_0x355ef4),_0x355ef4;return console[_0x5cf41d(0xf5)](_0x5cf41d(0x18a)+_0x1f6ed5),_0x5cf41d(0xb0);},u=(_0x362e95,_0x11818d,_0x345584,_0x264373)=>{const _0x4cef0b=_0x355b90;if(_0x11818d===_0x4cef0b(0x1c4)&&_0x345584!==_0x4cef0b(0x1c4))return Y(_0x362e95,_0x345584);if(_0x11818d!==_0x4cef0b(0x1c4)&&_0x345584===_0x4cef0b(0x1c4))return X(_0x362e95,_0x11818d);if(_0x264373!=='Temperature'){const _0x125fa9=b[_0x264373][_0x11818d]/b[_0x264373][_0x345584];return _0x362e95*_0x125fa9;}else{const _0x2bbf90=b[_0x264373][_0x11818d]['c0'],_0x1e73f9=b[_0x264373][_0x11818d]['c1'],_0x55da67=b[_0x264373][_0x345584]['c0'],_0x38a4f3=b[_0x264373][_0x345584]['c1'];return(_0x362e95*_0x2bbf90+_0x1e73f9-_0x38a4f3)/_0x55da67;}},O=(_0x31161e,_0x110fb2)=>{const _0xdc7a50=_0x355b90;let _0x2fcc33;if(Number[_0xdc7a50(0xe3)](_0x31161e)?_0x2fcc33=_0x31161e['toString']():_0x2fcc33=_0x31161e[_0xdc7a50(0x192)](_0x110fb2)['replace'](/\.?0+$/,''),Math[_0xdc7a50(0xb4)](parseFloat(_0x2fcc33))>=0x3e8){const _0x4213e6=_0x2fcc33['split']('.');_0x4213e6[0x0]=_0x4213e6[0x0][_0xdc7a50(0x1a1)](/\B(?=(\d{3})+(?!\d))/g,','),_0x2fcc33=_0x4213e6[_0xdc7a50(0x135)]('.');}return _0x2fcc33;},D=_0x5cbd29=>{const _0x241522=_0x355b90,_0x57c9ee=/(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/,_0x22aa3e=/(\d+)\'/,_0x35e331=/(\d+)/;let _0x388518=_0x5cbd29[_0x241522(0x102)](_0x57c9ee);if(_0x388518){const _0x151902=parseInt(_0x388518[0x1])||0x0,_0x44dc3f=parseInt(_0x388518[0x3])||0x0,_0xe9c1c2=parseInt(_0x388518[0x5])||0x0,_0x43e4e3=parseInt(_0x388518[0x6])||0x1;return H(_0x151902,_0x44dc3f,_0xe9c1c2,_0x43e4e3);}if(_0x388518=_0x5cbd29[_0x241522(0x102)](_0x22aa3e),_0x388518){const _0x28394e=parseInt(_0x388518[0x1])||0x0;return H(_0x28394e,0x0,0x0,0x1);}if(_0x388518=_0x5cbd29[_0x241522(0x102)](_0x35e331),_0x388518){const _0x188435=parseInt(_0x388518[0x1])||0x0;return H(0x0,_0x188435,0x0,0x1);}return parseFloat(_0x5cbd29);},H=(_0x3606b2,_0x412373,_0x473449,_0x2c6b68)=>_0x3606b2*0xc+_0x412373+_0x473449/_0x2c6b68,C=(_0x57f57e,_0x25c378=_0x355b90(0x7a))=>{const _0x7079c9=_0x355b90;if(_0x57f57e<0x0)return'-'+C(-_0x57f57e,_0x25c378);const _0x276c89=parseInt(_0x25c378['split']('/')[0x1][_0x7079c9(0x1a1)]('\x22',''));let _0x185596=Math[_0x7079c9(0x154)](_0x57f57e/0xc),_0x4e1c84=Math[_0x7079c9(0x154)](_0x57f57e%0xc);const _0x2f95e9=_0x57f57e-Math[_0x7079c9(0x154)](_0x57f57e);let _0x43c74d='';if(_0x2f95e9>0x0&&_0x25c378!==0x0){let _0x1b660d=Math['round'](_0x2f95e9*_0x276c89);const _0x36971c=(_0x4d3d93,_0x22316e)=>_0x22316e?_0x36971c(_0x22316e,_0x4d3d93%_0x22316e):_0x4d3d93,_0x26024d=_0x36971c(_0x1b660d,_0x276c89);_0x43c74d='\x20'+_0x1b660d/_0x26024d+'/'+_0x276c89/_0x26024d,_0x43c74d[_0x7079c9(0x100)]()===_0x7079c9(0x121)&&(_0x4e1c84++,_0x4e1c84>=0xc&&(_0x185596++,_0x4e1c84-=0xc),_0x43c74d='');}let _0x19be90='';return _0x185596>0x0&&(_0x19be90+=_0x185596+'\x27'),_0x185596>0x0&&(_0x4e1c84>0x0||_0x43c74d!=='')&&(_0x19be90+='-'),_0x4e1c84>0x0&&(_0x19be90+=''+_0x4e1c84),_0x43c74d!==''&&(_0x19be90+=_0x43c74d),(_0x4e1c84>0x0||_0x43c74d!=='')&&(_0x19be90+='\x22'),_0x19be90[_0x7079c9(0x100)]();},Y=(_0x2bfdc3,_0x391e7c)=>{const _0x4f699e=_0x2bfdc3*0.0254;return u(_0x4f699e,'m',_0x391e7c,'Length');},X=(_0x21b5ad,_0x8dd3f6)=>u(_0x21b5ad,_0x8dd3f6,'m',_0x355b90(0x12a))/0.0254;class J extends HTMLElement{constructor(){const _0x57e406=_0x355b90;super(),this[_0x57e406(0x1ba)]({'mode':_0x57e406(0x14b)}),this[_0x57e406(0xec)]=null,this[_0x57e406(0x1d8)]='',this[_0x57e406(0xa2)]=_0x57e406(0x210),console[_0x57e406(0x134)]('PhysicalQuantity\x20constructor\x20called');}[_0x355b90(0x104)](){const _0x3d8826=_0x355b90;console[_0x3d8826(0x134)](_0x3d8826(0x24f)),this[_0x3d8826(0x1cd)]=this[_0x3d8826(0x1b6)]('unit'),console['log'](_0x3d8826(0x105),this['unit']),this['updateUnitCategory'](),this[_0x3d8826(0x10c)]=this[_0x3d8826(0x1b6)](_0x3d8826(0xf8)),console[_0x3d8826(0x134)]('Initial\x20inputValue:',this['inputValue']),this[_0x3d8826(0xf8)]=this[_0x3d8826(0x240)](this[_0x3d8826(0x10c)],this[_0x3d8826(0x1cd)]),console['log'](_0x3d8826(0x186),this['value']),this[_0x3d8826(0x1d9)]=parseInt(this[_0x3d8826(0x1b6)](_0x3d8826(0x9b)))||0x2,this[_0x3d8826(0x10f)]=!this[_0x3d8826(0x17f)](_0x3d8826(0x7d))||this[_0x3d8826(0x1b6)](_0x3d8826(0x7d))===_0x3d8826(0x233),console[_0x3d8826(0x134)](_0x3d8826(0x14f),{'unit':this[_0x3d8826(0x1cd)],'value':this[_0x3d8826(0xf8)],'unitCategory':this[_0x3d8826(0x1d8)],'decimalPlaces':this[_0x3d8826(0x1d9)],'showUnitArrow':this[_0x3d8826(0x10f)]}),this[_0x3d8826(0x174)](),this[_0x3d8826(0x1f2)]();}[_0x355b90(0x1a8)](){const _0x10a60e=_0x355b90;this[_0x10a60e(0x26a)]();}static get[_0x355b90(0x8e)](){const _0x3f968f=_0x355b90;return[_0x3f968f(0xf8),_0x3f968f(0x1cd),_0x3f968f(0x9b),_0x3f968f(0x7d)];}['attributeChangedCallback'](_0x17c91d,_0x492e15,_0x4db184){const _0x432894=_0x355b90;if(console[_0x432894(0x134)]('attributeChangedCallback\x20called:\x20'+_0x17c91d,{'oldValue':_0x492e15,'newValue':_0x4db184}),_0x17c91d==='value')this['inputValue']=_0x4db184||'0',this[_0x432894(0xf8)]=this['parseValue'](this[_0x432894(0x10c)],this[_0x432894(0x1cd)]),console[_0x432894(0x134)](_0x432894(0xcb),this[_0x432894(0xf8)]);else{if(_0x17c91d===_0x432894(0x1cd)){const _0x5e4070=this['unit'],_0x27f9c1=this[_0x432894(0x1d8)];this[_0x432894(0x1cd)]=_0x4db184||'mm',this[_0x432894(0x221)](),_0x5e4070!==this['unit']&&(_0x27f9c1===this['unitCategory']?(console[_0x432894(0x134)](_0x432894(0x7b),{'from':_0x5e4070,'to':this[_0x432894(0x1cd)],'value':this['value'],'unitCategory':this[_0x432894(0x1d8)]}),this[_0x432894(0xf8)]=u({'value':this['value'],'fromUnit':_0x5e4070,'toUnit':this['unit'],'unitCategory':this[_0x432894(0x1d8)]})):console['log'](_0x432894(0x1c3)),console['log'](_0x432894(0xf4),this[_0x432894(0xf8)]));}else _0x17c91d===_0x432894(0x9b)?(this[_0x432894(0x1d9)]=parseInt(_0x4db184)||0x2,console['log'](_0x432894(0x140),this[_0x432894(0x1d9)])):_0x17c91d===_0x432894(0x7d)&&(this[_0x432894(0x10f)]=_0x4db184===null||_0x4db184===_0x432894(0x233),console['log']('Show\x20unit\x20arrow:',this['showUnitArrow']));}this[_0x432894(0x174)]();}[_0x355b90(0x221)](){const _0x4dbf67=_0x355b90;console['log']('updateUnitCategory\x20called\x20with\x20unit:',this[_0x4dbf67(0x1cd)]),this[_0x4dbf67(0x1d8)]=k(this[_0x4dbf67(0x1cd)]),console[_0x4dbf67(0x134)](_0x4dbf67(0x188),this['unitCategory']);}[_0x355b90(0x240)](_0x3bd7d7,_0x596a82){const _0x331ebb=_0x355b90;if(console[_0x331ebb(0x134)](_0x331ebb(0xef),{'value':_0x3bd7d7,'unit':_0x596a82}),typeof _0x3bd7d7==_0x331ebb(0x254)&&_0x3bd7d7[_0x331ebb(0x100)]()==='')return console['log'](_0x331ebb(0x75)),0x0;const _0x832865=_0x596a82==='ft-in'?D(_0x3bd7d7):parseFloat(_0x3bd7d7)||0x0;return console['log']('Parsed\x20value:',_0x832865),_0x832865;}[_0x355b90(0x1ef)](){const _0x14eaa9=_0x355b90;return this['unit']===_0x14eaa9(0x1c4)?C(this['value']):O(this['value'],this[_0x14eaa9(0x1d9)]);}['handleUnitChange'](_0x264d92){const _0x2145bf=_0x355b90;if(_0x264d92[_0x2145bf(0xf9)][_0x2145bf(0x1f1)]===_0x2145bf(0xf6)){const _0x24c3e4=_0x264d92[_0x2145bf(0xf9)]['value'];console['log'](_0x2145bf(0xdc),{'from':this[_0x2145bf(0x1cd)],'to':_0x24c3e4,'value':this[_0x2145bf(0xf8)],'unitCategory':this[_0x2145bf(0x1d8)]}),this[_0x2145bf(0xf8)]=u(this['value'],this[_0x2145bf(0x1cd)],_0x24c3e4,this[_0x2145bf(0x1d8)]),console[_0x2145bf(0x134)](_0x2145bf(0x222),this['value']),this[_0x2145bf(0x1cd)]=_0x24c3e4,this[_0x2145bf(0x221)](),this[_0x2145bf(0x174)]();}this[_0x2145bf(0x149)]();}[_0x355b90(0x174)](){const _0x23c856=_0x355b90,_0x563a3a=this[_0x23c856(0x1ef)]();this[_0x23c856(0x9f)][_0x23c856(0x119)]=_0x23c856(0x17b)+(this[_0x23c856(0x10f)]?'auto':'none')+_0x23c856(0x22b)+(this[_0x23c856(0x10f)]?'auto':'none')+_0x23c856(0x234)+(this[_0x23c856(0x10f)]?_0x23c856(0x196):_0x23c856(0x238))+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.15em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x200.1em\x200\x200.2em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x200.9em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x20normal;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align-last:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/*\x20height:\x201.1em;\x20*/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vertical-align:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:\x202.5em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select::-ms-expand\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20'+(this[_0x23c856(0x10f)]?_0x23c856(0x15b):_0x23c856(0x238))+_0x23c856(0xb5)+_0x563a3a+_0x23c856(0x16f)+(U[this[_0x23c856(0x1d8)]]||[this[_0x23c856(0x1cd)]])[_0x23c856(0x138)](_0x5bb7c0=>_0x23c856(0x9d)+_0x5bb7c0+'\x22\x20'+(_0x5bb7c0===this['unit']?_0x23c856(0x197):'')+_0x23c856(0x1fe)+_0x5bb7c0+'</option>')[_0x23c856(0x135)]('')+_0x23c856(0x206)+(this[_0x23c856(0x10f)]&&this[_0x23c856(0x1d8)]!==_0x23c856(0xb0)?'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22'+this['e3dLogoUrl']+'\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x0a\x20\x20\x20\x20',this['updateDropdownWidth']();}['updateDropdownWidth'](){const _0x19668a=_0x355b90,_0x56268d=this['shadowRoot'][_0x19668a(0x109)](_0x19668a(0x94));if(!_0x56268d)return;const _0x3902fd=document['createElement'](_0x19668a(0x96));_0x3902fd[_0x19668a(0x224)][_0x19668a(0x9a)]='hidden',_0x3902fd[_0x19668a(0x224)]['position']=_0x19668a(0x14e),_0x3902fd[_0x19668a(0x224)]['whiteSpace']=_0x19668a(0x246),_0x3902fd[_0x19668a(0x224)][_0x19668a(0xab)]=window[_0x19668a(0x25b)](_0x56268d)[_0x19668a(0xab)],document['body']['appendChild'](_0x3902fd),_0x3902fd[_0x19668a(0xe5)]=this[_0x19668a(0x1cd)];const _0x28248d=_0x3902fd[_0x19668a(0xce)];document[_0x19668a(0x1bf)][_0x19668a(0x219)](_0x3902fd);const _0x3c3041=this[_0x19668a(0x10f)]?0x10:0x6,_0x250750=this[_0x19668a(0x10f)]?0x8:0x0;let _0x5b140e=_0x28248d+_0x3c3041+_0x250750+0x2;_0x5b140e=Math[_0x19668a(0x84)](_0x5b140e,0x1e),_0x56268d[_0x19668a(0x224)][_0x19668a(0x1f6)]=_0x5b140e+'px';}['attachEventListeners'](){const _0x2af92f=_0x355b90;this[_0x2af92f(0x9f)][_0x2af92f(0x1ce)](_0x2af92f(0x1e1),this[_0x2af92f(0x189)]['bind'](this));const _0x448cdd=this[_0x2af92f(0x9f)][_0x2af92f(0x109)](_0x2af92f(0xb8));_0x448cdd&&(_0x448cdd[_0x2af92f(0x1ce)](_0x2af92f(0x21c),this['handleUnitContainerMouseOver'][_0x2af92f(0x199)](this)),_0x448cdd[_0x2af92f(0x1ce)]('mouseout',this['handleUnitContainerMouseOut'][_0x2af92f(0x199)](this)));}[_0x355b90(0x26a)](){const _0xa0fcbc=_0x355b90;this[_0xa0fcbc(0x9f)][_0xa0fcbc(0x198)](_0xa0fcbc(0x1e1),this[_0xa0fcbc(0x189)][_0xa0fcbc(0x199)](this));const _0x42f4fd=this[_0xa0fcbc(0x9f)][_0xa0fcbc(0x109)](_0xa0fcbc(0xb8));_0x42f4fd&&(_0x42f4fd[_0xa0fcbc(0x198)]('mouseover',this['handleUnitContainerMouseOver']['bind'](this)),_0x42f4fd[_0xa0fcbc(0x198)]('mouseout',this[_0xa0fcbc(0xea)]['bind'](this)));}[_0x355b90(0x1ec)](){const _0x1bf674=_0x355b90,_0x3c091d=this['shadowRoot'][_0x1bf674(0x109)]('.tooltip');_0x3c091d&&(this[_0x1bf674(0xec)]=setTimeout(()=>{const _0x4f319a=_0x1bf674;_0x3c091d[_0x4f319a(0x224)][_0x4f319a(0xc8)]=_0x4f319a(0x15b);},0x3e8));}['handleUnitContainerMouseOut'](){const _0x466ffa=_0x355b90,_0x36c858=this[_0x466ffa(0x9f)]['querySelector'](_0x466ffa(0x23c));_0x36c858&&(setTimeout(()=>{const _0x458882=_0x466ffa;_0x36c858[_0x458882(0x224)][_0x458882(0xc8)]=_0x458882(0x238);},0x7d0),clearTimeout(this['tooltipTimeout']));}}class Z extends HTMLElement{constructor(){const _0x37c1b5=_0x355b90;super(),this[_0x37c1b5(0x1ba)]({'mode':_0x37c1b5(0x14b)}),this[_0x37c1b5(0x7e)]=[],this[_0x37c1b5(0x1cd)]='',this[_0x37c1b5(0x1d8)]='',this['decimalPlaces']=0x2,this[_0x37c1b5(0x10f)]=!0x0;}[_0x355b90(0x104)](){const _0x27575e=_0x355b90;this[_0x27575e(0x1cd)]=this[_0x27575e(0x1b6)](_0x27575e(0x1cd))||'cm',this[_0x27575e(0x7e)]=this[_0x27575e(0x1b6)]('values')['split'](',')[_0x27575e(0x138)](Number)[_0x27575e(0x138)](_0xd0bc1a=>this[_0x27575e(0x240)](_0xd0bc1a,this[_0x27575e(0x1cd)])),this['unitCategory']=k(this['unit']),this[_0x27575e(0x1d9)]=parseInt(this[_0x27575e(0x1b6)]('decimal-places'))||0x2,this[_0x27575e(0x10f)]=!this[_0x27575e(0x17f)]('show-unit-arrow')||this['getAttribute'](_0x27575e(0x7d))===_0x27575e(0x233),this[_0x27575e(0x174)](),this[_0x27575e(0x1f2)]();}static get[_0x355b90(0x8e)](){const _0x74171=_0x355b90;return[_0x74171(0x7e),_0x74171(0x1cd),'decimal-places',_0x74171(0x7d)];}[_0x355b90(0x169)](_0x1800e4,_0x199adb,_0x1d1fe2){const _0xd88d36=_0x355b90;if(_0x1800e4==='values')this[_0xd88d36(0x7e)]=_0x1d1fe2[_0xd88d36(0x225)](',')[_0xd88d36(0x138)](Number)[_0xd88d36(0x138)](_0x1e11f8=>this['parseValue'](_0x1e11f8,this['unit']));else{if(_0x1800e4===_0xd88d36(0x1cd)){const _0x24bed7=this[_0xd88d36(0x1cd)];this[_0xd88d36(0x1cd)]=_0x1d1fe2,this[_0xd88d36(0x1d8)]=k(_0x1d1fe2),_0x24bed7!==_0x1d1fe2&&(this['values']=this[_0xd88d36(0x7e)][_0xd88d36(0x138)](_0x3ad344=>u(_0x3ad344,_0x24bed7,_0x1d1fe2,this['unitCategory'])));}else _0x1800e4===_0xd88d36(0x9b)?this[_0xd88d36(0x1d9)]=parseInt(_0x1d1fe2)||0x2:_0x1800e4===_0xd88d36(0x7d)&&(this[_0xd88d36(0x10f)]=_0x1d1fe2===null||_0x1d1fe2==='true');}this[_0xd88d36(0x174)]();}[_0x355b90(0x174)](){const _0x4e6dab=_0x355b90,_0x4d3b8c=this[_0x4e6dab(0x7e)]['map'](_0x4dfa1b=>this['formatPairValue'](_0x4dfa1b));this[_0x4e6dab(0x9f)][_0x4e6dab(0x119)]=_0x4e6dab(0x8c)+(this['showUnitArrow']?_0x4e6dab(0x196):_0x4e6dab(0x238))+_0x4e6dab(0x22b)+(this[_0x4e6dab(0x10f)]?_0x4e6dab(0x196):'none')+_0x4e6dab(0x234)+(this[_0x4e6dab(0x10f)]?_0x4e6dab(0x196):_0x4e6dab(0x238))+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.15em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x200.1em\x200\x200.2em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x200.9em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x20normal;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align-last:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vertical-align:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:\x202.5em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity-pair\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22values\x22>('+_0x4d3b8c['join'](',\x20')+')</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(U[this[_0x4e6dab(0x1d8)]]||[this[_0x4e6dab(0x1cd)]])[_0x4e6dab(0x138)](_0x21588f=>_0x4e6dab(0x9d)+_0x21588f+'\x22\x20'+(_0x21588f===this[_0x4e6dab(0x1cd)]?'selected':'')+_0x4e6dab(0x1fe)+_0x21588f+_0x4e6dab(0x25f))[_0x4e6dab(0x135)]('')+_0x4e6dab(0x1e8),this[_0x4e6dab(0x149)]();}[_0x355b90(0x149)](){const _0x34c73c=_0x355b90,_0x44b5a5=this[_0x34c73c(0x9f)][_0x34c73c(0x109)]('select');if(!_0x44b5a5)return;const _0x41c9d4=document[_0x34c73c(0x20a)](_0x34c73c(0x96));_0x41c9d4['style'][_0x34c73c(0x9a)]=_0x34c73c(0x24b),_0x41c9d4['style']['position']=_0x34c73c(0x14e),_0x41c9d4[_0x34c73c(0x224)]['whiteSpace']=_0x34c73c(0x246),_0x41c9d4[_0x34c73c(0x224)][_0x34c73c(0xab)]=window[_0x34c73c(0x25b)](_0x44b5a5)['font'],document['body'][_0x34c73c(0x1ac)](_0x41c9d4),_0x41c9d4['textContent']=this[_0x34c73c(0x1cd)];const _0x29ae63=_0x41c9d4[_0x34c73c(0xce)];document['body'][_0x34c73c(0x219)](_0x41c9d4);const _0x3572c4=this[_0x34c73c(0x10f)]?0x10:0x6,_0x5d9205=this[_0x34c73c(0x10f)]?0x8:0x0;let _0x401213=_0x29ae63+_0x3572c4+_0x5d9205+0x2;_0x401213=Math[_0x34c73c(0x84)](_0x401213,0x1e),_0x44b5a5[_0x34c73c(0x224)][_0x34c73c(0x1f6)]=_0x401213+'px';}[_0x355b90(0x1f2)](){const _0x281f0e=_0x355b90;this[_0x281f0e(0x9f)]['addEventListener']('change',this[_0x281f0e(0x189)]['bind'](this));}[_0x355b90(0x240)](_0x7919b6,_0x29d68f){const _0x3fb3f0=_0x355b90;return _0x29d68f===_0x3fb3f0(0x1c4)?D(_0x7919b6):parseFloat(_0x7919b6);}[_0x355b90(0x10d)](_0x22013c){const _0x31d432=_0x355b90;return this[_0x31d432(0x1cd)]===_0x31d432(0x1c4)?C(_0x22013c):O(_0x22013c,this[_0x31d432(0x1d9)]);}[_0x355b90(0x189)](_0x34ed9f){const _0x12b0dc=_0x355b90;if(_0x34ed9f[_0x12b0dc(0xf9)][_0x12b0dc(0x1f1)]===_0x12b0dc(0xf6)){const _0x37aa69=_0x34ed9f['target'][_0x12b0dc(0xf8)];this[_0x12b0dc(0x7e)]=this[_0x12b0dc(0x7e)][_0x12b0dc(0x138)](_0x590b67=>u(_0x590b67,this[_0x12b0dc(0x1cd)],_0x37aa69,this['unitCategory'])),this[_0x12b0dc(0x1cd)]=_0x37aa69,this[_0x12b0dc(0x174)]();}this[_0x12b0dc(0x149)]();}}class tt extends HTMLElement{constructor(){const _0x11442=_0x355b90;super(),this['attachShadow']({'mode':'open'}),this[_0x11442(0x7e)]=[],this['unit']='',this[_0x11442(0x1d8)]='',this[_0x11442(0x1d9)]=0x2,this[_0x11442(0x10f)]=!0x0,this['format']='',this[_0x11442(0x1bd)]=!0x1;}[_0x355b90(0x104)](){const _0x2864b0=_0x355b90;this['unit']=this[_0x2864b0(0x1b6)](_0x2864b0(0x1cd))||'cm',this[_0x2864b0(0x16c)](this[_0x2864b0(0x1b6)](_0x2864b0(0x7e))),this[_0x2864b0(0x1d8)]=k(this[_0x2864b0(0x1cd)]),this['decimalPlaces']=parseInt(this[_0x2864b0(0x1b6)](_0x2864b0(0x9b)))||0x2,this[_0x2864b0(0x10f)]=!this[_0x2864b0(0x17f)](_0x2864b0(0x7d))||this[_0x2864b0(0x1b6)](_0x2864b0(0x7d))===_0x2864b0(0x233),this[_0x2864b0(0x174)](),this['attachEventListeners']();}static get['observedAttributes'](){const _0x2db673=_0x355b90;return[_0x2db673(0x7e),_0x2db673(0x1cd),_0x2db673(0x9b),'show-unit-arrow'];}[_0x355b90(0x169)](_0xee88c0,_0x11b168,_0x4e2fb5){const _0x1ef12b=_0x355b90;if(_0xee88c0===_0x1ef12b(0x7e))this['parseTripletValues'](_0x4e2fb5);else{if(_0xee88c0===_0x1ef12b(0x1cd)){const _0x368352=this[_0x1ef12b(0x1cd)];this[_0x1ef12b(0x1cd)]=_0x4e2fb5,this[_0x1ef12b(0x1d8)]=k(_0x4e2fb5),_0x368352!==_0x4e2fb5&&(this[_0x1ef12b(0x7e)]=this[_0x1ef12b(0x7e)]['map'](_0x4e2f5d=>u(_0x4e2f5d,_0x368352,_0x4e2fb5,this[_0x1ef12b(0x1d8)])));}else _0xee88c0===_0x1ef12b(0x9b)?this['decimalPlaces']=parseInt(_0x4e2fb5)||0x2:_0xee88c0===_0x1ef12b(0x7d)&&(this[_0x1ef12b(0x10f)]=_0x4e2fb5===null||_0x4e2fb5===_0x1ef12b(0x233));}this[_0x1ef12b(0x174)]();}['parseValue'](_0x562610,_0x1e3039){const _0x304ba4=_0x355b90;return _0x1e3039===_0x304ba4(0x1c4)?D(_0x562610):parseFloat(_0x562610);}[_0x355b90(0x16c)](_0x4c4442){const _0x1ce9a1=_0x355b90;this[_0x1ce9a1(0xdf)]='',this[_0x1ce9a1(0x1bd)]=_0x4c4442[_0x1ce9a1(0x1f7)]('(')&&_0x4c4442[_0x1ce9a1(0x11b)](')'),this[_0x1ce9a1(0x1bd)]&&(_0x4c4442=_0x4c4442['slice'](0x1,-0x1)),_0x4c4442[_0x1ce9a1(0x144)]('x')?(this['values']=_0x4c4442['split']('x')[_0x1ce9a1(0x138)](_0x3f5ad3=>this[_0x1ce9a1(0x240)](_0x3f5ad3,this[_0x1ce9a1(0x1cd)])),this[_0x1ce9a1(0xdf)]='x'):_0x4c4442[_0x1ce9a1(0x144)](',')?(this['values']=_0x4c4442[_0x1ce9a1(0x225)](',')[_0x1ce9a1(0x138)](_0x2acafa=>_0x2acafa[_0x1ce9a1(0x100)]())['map'](_0x5d3d83=>this[_0x1ce9a1(0x240)](_0x5d3d83,this['unit'])),this[_0x1ce9a1(0xdf)]=_0x1ce9a1(0x1a6)):(this['values']=_0x4c4442['split'](/\s+/)[_0x1ce9a1(0x138)](_0x341d6c=>this['parseValue'](_0x341d6c,this[_0x1ce9a1(0x1cd)])),this['format']=_0x1ce9a1(0xb7));}[_0x355b90(0x1cf)](_0x183b4a){const _0x4a10fb=_0x355b90;return this[_0x4a10fb(0x1cd)]===_0x4a10fb(0x1c4)?C(_0x183b4a):O(_0x183b4a,this[_0x4a10fb(0x1d9)]);}['formatTriplet'](_0x1cb2c5){const _0x37a36a=_0x355b90;let _0x488e64='';const _0x31ae4d=_0x1cb2c5[_0x37a36a(0x138)](_0x80910b=>this['formatTripletValue'](_0x80910b));return this['format']==='x'?_0x488e64=_0x31ae4d[0x0]+_0x37a36a(0x15c)+this[_0x37a36a(0x1cd)]+_0x37a36a(0xc4)+_0x31ae4d[0x1]+_0x37a36a(0x15c)+this[_0x37a36a(0x1cd)]+_0x37a36a(0xc4)+_0x31ae4d[0x2]:this[_0x37a36a(0xdf)]===_0x37a36a(0x1a6)?_0x488e64=_0x31ae4d[_0x37a36a(0x135)](',\x20'):_0x488e64=_0x31ae4d['join']('\x20'),_0x488e64;}[_0x355b90(0x174)](){const _0x4aa7a4=_0x355b90,_0x511aa9=this[_0x4aa7a4(0x250)](this[_0x4aa7a4(0x7e)]);this[_0x4aa7a4(0x9f)][_0x4aa7a4(0x119)]=_0x4aa7a4(0x171)+(this[_0x4aa7a4(0x10f)]?'auto':'none')+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20'+(this[_0x4aa7a4(0x10f)]?_0x4aa7a4(0x196):_0x4aa7a4(0x238))+_0x4aa7a4(0x234)+(this[_0x4aa7a4(0x10f)]?_0x4aa7a4(0x196):_0x4aa7a4(0x238))+_0x4aa7a4(0x1aa)+(this[_0x4aa7a4(0x1bd)]?'(':'')+_0x4aa7a4(0x200)+_0x511aa9+_0x4aa7a4(0xd4)+(this[_0x4aa7a4(0x1bd)]&&this[_0x4aa7a4(0xdf)]!=='x'?')':'')+'\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(U[this['unitCategory']]||[this[_0x4aa7a4(0x1cd)]])[_0x4aa7a4(0x138)](_0x1f084f=>_0x4aa7a4(0x9d)+_0x1f084f+'\x22\x20'+(_0x1f084f===this[_0x4aa7a4(0x1cd)]?_0x4aa7a4(0x197):'')+_0x4aa7a4(0x1fe)+_0x1f084f+_0x4aa7a4(0x25f))[_0x4aa7a4(0x135)]('')+_0x4aa7a4(0x73)+(this['hasParentheses']&&this[_0x4aa7a4(0xdf)]==='x'?')':'')+_0x4aa7a4(0x172),this[_0x4aa7a4(0x149)]();}['updateDropdownWidth'](){const _0x18fe85=_0x355b90,_0x41357c=this[_0x18fe85(0x9f)][_0x18fe85(0x109)]('select');if(!_0x41357c)return;const _0xd6d199=document[_0x18fe85(0x20a)]('span');_0xd6d199[_0x18fe85(0x224)][_0x18fe85(0x9a)]=_0x18fe85(0x24b),_0xd6d199[_0x18fe85(0x224)][_0x18fe85(0x207)]=_0x18fe85(0x14e),_0xd6d199[_0x18fe85(0x224)][_0x18fe85(0x205)]=_0x18fe85(0x246),_0xd6d199[_0x18fe85(0x224)]['font']=window[_0x18fe85(0x25b)](_0x41357c)[_0x18fe85(0xab)],document[_0x18fe85(0x1bf)]['appendChild'](_0xd6d199),_0xd6d199[_0x18fe85(0xe5)]=this[_0x18fe85(0x1cd)];const _0x1dcee6=_0xd6d199[_0x18fe85(0xce)];document['body'][_0x18fe85(0x219)](_0xd6d199);const _0x46bc6d=this[_0x18fe85(0x10f)]?0x10:0x6,_0x31e2b3=this[_0x18fe85(0x10f)]?0x8:0x0;let _0x24034e=_0x1dcee6+_0x46bc6d+_0x31e2b3+0x2;_0x24034e=Math['max'](_0x24034e,0x1e),_0x41357c[_0x18fe85(0x224)]['width']=_0x24034e+'px';}[_0x355b90(0x1f2)](){const _0x45e99d=_0x355b90;this[_0x45e99d(0x9f)][_0x45e99d(0x1ce)](_0x45e99d(0x1e1),this[_0x45e99d(0x189)][_0x45e99d(0x199)](this));}['handleUnitChange'](_0x138e68){const _0x22025a=_0x355b90;if(_0x138e68['target']['tagName']==='SELECT'){const _0x13d5d7=_0x138e68[_0x22025a(0xf9)][_0x22025a(0xf8)];this[_0x22025a(0x7e)]=this[_0x22025a(0x7e)]['map'](_0x4aaac9=>u(_0x4aaac9,this['unit'],_0x13d5d7,this[_0x22025a(0x1d8)])),this[_0x22025a(0x1cd)]=_0x13d5d7,this[_0x22025a(0x174)]();}this['updateDropdownWidth']();}}class et extends HTMLElement{constructor(){const _0x3f59db=_0x355b90;super(),this[_0x3f59db(0x1ba)]({'mode':_0x3f59db(0x14b)}),this[_0x3f59db(0x152)]=0x0;}[_0x355b90(0x104)](){const _0x15cd64=_0x355b90;this[_0x15cd64(0x174)](),this[_0x15cd64(0x1f2)]();}[_0x355b90(0x174)](){const _0x49b7fb=_0x355b90;this[_0x49b7fb(0x9f)]['innerHTML']='\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20Arial,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.counter\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gap:\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20button\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2016px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20red;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x205px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.count\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2018px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22counter\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22decrement\x22>-</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22count\x22>'+this[_0x49b7fb(0x152)]+_0x49b7fb(0xfa);}[_0x355b90(0x1f2)](){const _0x578678=_0x355b90,_0x427570=this[_0x578678(0x9f)]['querySelector'](_0x578678(0x86)),_0x4392d5=this[_0x578678(0x9f)]['querySelector']('.decrement');_0x427570['addEventListener'](_0x578678(0xbd),()=>this[_0x578678(0xa0)]()),_0x4392d5[_0x578678(0x1ce)]('click',()=>this[_0x578678(0xa9)]());}[_0x355b90(0xa0)](){const _0x2c0aef=_0x355b90;this['count']++,this[_0x2c0aef(0x123)]();}[_0x355b90(0xa9)](){const _0x2e6418=_0x355b90;this[_0x2e6418(0x152)]--,this[_0x2e6418(0x123)]();}[_0x355b90(0x123)](){const _0x34d4d1=_0x355b90,_0x556323=this['shadowRoot']['querySelector']('.count');_0x556323[_0x34d4d1(0xe5)]=this[_0x34d4d1(0x152)];}}function _0x585e(_0x1cd7ac,_0xbba676){const _0x13bada=_0x13ba();return _0x585e=function(_0x585eb9,_0x4991b4){_0x585eb9=_0x585eb9-0x73;let _0x376978=_0x13bada[_0x585eb9];return _0x376978;},_0x585e(_0x1cd7ac,_0xbba676);}const L=(_0x8cfd0c,_0xbfdfc)=>{const _0x34b326=_0x355b90;typeof window<'u'&&!customElements['get'](_0x8cfd0c)&&customElements[_0x34b326(0x1b5)](_0x8cfd0c,_0xbfdfc);};L(_0x355b90(0x1d4),J),L(_0x355b90(0x132),class extends J{}),L('uc-qty-pair',Z),L('uc-qty-triplet',tt),L(_0x355b90(0x217),et);export{et as NewComponent1,J as PhysicalQuantity,Z as UcQtyPair,tt as UcQtyTriplet};function _0x13ba(){const _0x50d890=['Pa/m','visibility','decimal-places','Category\x20found\x20for\x20unit\x20','<option\x20value=\x22','Unit\x20is\x20undefined\x20or\x20null','shadowRoot','increment','lm/ft²','e3dLogoUrl','CFM[ft³/min]','MM\x20Btu/100mile','W[watt]','cWb','mm³','m³/rad','decrement','pebibit/s','font','lbm/ft/s','cal(TH)/g','mm\x20HG/m','Btu/ton(short)','Custom','m/h','cal(TH)/L','joule/coulomb','abs',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20/*\x20Custom\x20arrow\x20styles\x20*/\x0a\x20\x20\x20\x20\x20\x20\x20\x20/*\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container::after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x27▼\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x200.7em;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20red;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20right:\x200.3em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x2050%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateY(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20*/\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x20100%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2050%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pointer-events:\x20none;\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container:hover\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22>','cp[candlepower(before\x201948)]','space','.unit-container','GW[Gigawatt]','mm\x20HG','gibibit/s','m/s','click','gal(US-liquid)/mile','8222VTIFjB','rev/s','J/h','m²/s','mile','</span>\x20x\x20','m³/rev','megabyte','626526ILZqpu','display','deg°/s²','m/min²','New\x20value\x20parsed:','tebibyte','Mkat','offsetWidth','tonne','cd⋅sr','in\x20W.C./100\x20ft','mol/s','phot','</span>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','kWh/m³','H[henry]','lbm⋅ft²','PI[Pa·s]','$1B','psi','ft³/s','handleUnitChange:','MM\x20Btu/km','CFM','format','kJ/minute','bar/m','BTU/(h⋅ft⋅°F)','isInteger','W/(m⋅°K)','textContent','Ω[Ohm]','mile/gal(US-liquid)','1/°F','$1K','handleUnitContainerMouseOut','lbm⋅in²','tooltipTimeout','Ci[curie]','Wh/L','parseValue\x20called\x20with:','ft²/hr','terabit','oz/h','week','New\x20value:','warn','SELECT','P[Poise]','value','target','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22increment\x22>+</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20','L/mile','1055785DeZCIN','N·s','Btu','oz/ft²','trim','MGy','match','ksi','connectedCallback','Initial\x20unit:','bit/s','in⁴','J/m³','querySelector','byte','Pascal/m','inputValue','formatPairValue','mol','showUnitArrow','µBq','kcal(IT)/kg','mm²','mebibyte','g/cm³','lm/sr','MM\x20Btu','dWb','atm','innerHTML','hectare','endsWith','Btu/gal(US)','kg/m²','kip-in','kWh','lb/ft','1/1','Btu/ft³','updateCount','petabit','deg°/s','kWh/mile','micron','fpm[ft/minute]','kGy','Length','sr[steradian]','kg/m/s','CFH','kilo-calorie(IT)/hour','µm³','slug/s','pebibyte','uc-qty','rad/min','log','join','µGy','MJ/h','map','HP\x20Hour/lbm','gal(US-liquid)/rev','oz/yd²','kilobit/s','1/°K','mm²/min','minute','New\x20decimal\x20places:','St[cm²/s]','rad','ton(UK-Imperial/long)','includes','g/s','GPa','rpm','MJ/100km','updateDropdownWidth','cm\x20HG','open','e[electron]','MJ/km','absolute','Initial\x20state:','gal(US-liquid)/100mile','C[coulomb]','count','Wh/km','floor','lumen/m²','in²/s','J/(kg·°K)','kilo-calorie(TH)/hour','Sv[sievert]','ft²','block','\x20<span\x20class=\x22unit-text\x22>','m³/min','pow','gal(US-dry)','psf','kmol','mmol','2816366rSCYAj','°Ra','m\x20W.C./m','gigabit/s','tebibit','km³','attributeChangedCallback','cm²','MM\x20Btu/lbm','parseTripletValues','s[second]','gibibit','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','J[Joule]','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vertical-align:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity-triplet\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.values\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-text,\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container,\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x200.9em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x20normal;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.15em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x200.2em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</span>\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','psi/ft','render','cm⁴','kJ/m³','cup(US-liquid)','lm/m²','in²','ft²/s','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vertical-align:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20','rad/min²','bushel(UK-imperial)','km/kWh','hasAttribute','ft⁴','1/°C','1/°Ra','Btu/minute','in²/hr','m³/kg/s²','Parsed\x20value:','lux','Updated\x20unit\x20category:','handleUnitChange','No\x20category\x20found\x20for\x20unit:\x20','Gy[gray]','in³/s','lbm/ft³','cup(Legal)','MM\x20Btu/ft³','g/mm²','in\x20HG','toFixed','lb-ft/rad','L/100km','g/cm²','auto','selected','removeEventListener','bind','N⋅m/rad','acre','F[farad]','megabit/s','deg°/min²','in³','fpm','replace','3618640iaMQnB','J/second','ksi[kip/in²]','ft/min²','comma','gal(UK-imperial)/mile','disconnectedCallback','MM\x20Btu/h',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align-last:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:\x202.5em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22quantity-triplet\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','HP\x20Hour/ft³','appendChild','pint(UK-imperial)','ampere-hour','radian','short\x20ton/h','fps[ft/second]','ksi/ft','µWb','cal(IT)/g','define','getAttribute','L/h','lb-ft','ft³/rev','attachShadow','calorie(IT)','J/(g·°K)','hasParentheses','TNT\x20Equivalent[kiloton]','body','$1T','J/C','mkat','Unit\x20category\x20changed,\x20keeping\x20original\x20value','ft-in','yd³/min','deg°/min','eV[electron-volt]','mpg(UK)','mTorr/m','mm/s²','oz-ft','bushel(US-dry)','unit','addEventListener','formatTripletValue','kPa','MJ/100mile','MSv','lbm','physical-quantity','kibibit/s','lb-ft/second','MHz','unitCategory','decimalPlaces','megabit','deg°/h','CFH[ft³/h]','Btu/h','L/min','nano[nm]','cm²/hr','change','kN/m','rad/s²','bushel(US)/h','km/h','km/min','BTU/(h⋅in⋅°F)','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','MM\x20Btu/mile','lb-in','lbm/in²','handleUnitContainerMouseOver','ft³','m/s²','formatDisplayValue','J/g','tagName','attachEventListeners','oz/s','Btu/(lbm·°F)','oz/in²','width','startsWith','kg/m³','atm/m','revolution','calorie(IT)/second','Torr/ft','lbm·fps','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','GHz','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22values\x22>','lbm/in³','kkat','mile/gal(UK-imperial)','11sOTZAB','whiteSpace','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','position','yd²','lbm/min','createElement','ft/s²','lbm/yd²','nWb','mile/kWh','Stoke','https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492','MJ/mile','in\x20HG/ft','mm\x20W.C./m','HP\x20Hour','kg/min','mm/s','new-component-1','deg°','removeChild','day','N/mm','mouseover','cup(Metric)','kcal(IT)/m³','1/s','kibibyte','updateUnitCategory','Converted\x20value:','cp[candlepower]','style','split','km/s','mph[mile/h]','rpm[rev/min]','lbm/s','slug/min',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','kPa/m','J/minute','ft²/min','foot-candle','W/(cm⋅°K)','kWh/kg','Wh/g','true',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','in/s²','1024928edLnWj','kcal(TH)/kg','none','kg⋅m²','mAh','gph(US)','.tooltip','kgf','fluid\x20ounce(US-liquid)','J/m','parseValue','m\x20W.C.','calorie(TH)','mSv','m³/h','oz⋅in²','nowrap','mile/MJ','kg/s','m²/m²','calorie(TH)/minute','hidden','cSt[mm²/s]','S[siemens]','N⋅m²/kg²','connectedCallback\x20called','formatTriplet','kJ/L','mile/L','in/s','string','MM\x20Btu/100km','cm³','m²/hr','Rd[rutherford]','mm/min','kg·m/s','getComputedStyle','faraday','gal(US-liquid)','dyn⋅cm²/g²','</option>','lb-ft/minute','mbar/mm','Btu/lbm','lb-in/deg°','T[tesla]','MPGe','MPa/km','N·s/m²','thou[mil,\x20or\x20thousandth\x20of\x20an\x20inch]','cm²/min','removeEventListeners','yd³','N⋅m/deg°','Ampere[amp]','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','NM[M,\x20nmi,\x20or\x20nautical\x20mile]','Empty\x20string\x20value,\x20returning\x200','calorie(TH)/second','m³/m','lb-in/rad','lbm·fpm','1/16\x22','Converting\x20value:','1073076MJuSFN','show-unit-arrow','values','J/L','kilobyte','kilobit','meter-candle','kibibit','max','bushel(UK-imperial)/h','.increment','N/m','cd[candela]','g⋅mm²','lb/in','long\x20ton/h','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vertical-align:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity-pair\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.values\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20','L/rev','observedAttributes','pebibit','kNm','J/kg','lb·s','h[hour]','select','MBd','span','g⋅cm²','mGy'];_0x13ba=function(){return _0x50d890;};return _0x13ba();}
|
|
1
|
+
const o = 0.45359237, r = 9.80665, v = 5280, l = 25.4 / 1e3, n = 12 * l, W = 1852, V = 66 * 660, d = 4.54609, p = 231, I = 268.8025, g = 1 / 8, F = 1 / 20, G = 1 / 16, B = 8, _ = 8, q = 1 / 16, z = 240, K = 250, Q = 10, T = 14.59390294, f = 1055.05585262, w = 4.1868, b = 4.184, R = 550 * o * r * n, N = 101325, $ = 1 / 760, y = 133.322387415, j = 624150974e10, U = {
|
|
2
|
+
/* 901 */
|
|
3
|
+
Length: [
|
|
4
|
+
"m",
|
|
5
|
+
"nano[nm]",
|
|
6
|
+
"µm",
|
|
7
|
+
"micron",
|
|
8
|
+
"mm",
|
|
9
|
+
"cm",
|
|
10
|
+
"dm",
|
|
11
|
+
"km",
|
|
12
|
+
"in",
|
|
13
|
+
"ft-in",
|
|
14
|
+
"thou[mil, or thousandth of an inch]",
|
|
15
|
+
// a thousandth is called a thou per wiki
|
|
16
|
+
"ft",
|
|
17
|
+
"yd",
|
|
18
|
+
"mile",
|
|
19
|
+
"NM[M, nmi, or nautical mile]"
|
|
20
|
+
],
|
|
21
|
+
/* 902 */
|
|
22
|
+
Mass: [
|
|
23
|
+
"kg",
|
|
24
|
+
"g",
|
|
25
|
+
"mg",
|
|
26
|
+
"µg",
|
|
27
|
+
"oz",
|
|
28
|
+
"lbm",
|
|
29
|
+
"slug",
|
|
30
|
+
"ton(US/short)",
|
|
31
|
+
"ton(UK-Imperial/long)",
|
|
32
|
+
"tonne"
|
|
33
|
+
],
|
|
34
|
+
/* 903 */
|
|
35
|
+
Time: ["s[second]", "s", "minute", "h", "h[hour]", "day", "week"],
|
|
36
|
+
/* 904 */
|
|
37
|
+
ElectricalCurrent: ["A", "Ampere[amp]", "mA", "µA", "kA", "MA", "esu/s"],
|
|
38
|
+
/* 905 */
|
|
39
|
+
Temperature: ["°K", "°C", "°F", "°Ra"],
|
|
40
|
+
/* 906 */
|
|
41
|
+
"Amount of Substance": ["mol", "mmol", "kmol"],
|
|
42
|
+
/* 907 */
|
|
43
|
+
"Luminous Intensity": [
|
|
44
|
+
"cd[candela]",
|
|
45
|
+
"lm/sr",
|
|
46
|
+
"cp[candlepower]",
|
|
47
|
+
"cp[candlepower(before 1948)]"
|
|
48
|
+
],
|
|
49
|
+
/* 100 */
|
|
50
|
+
Acceleration: ["m/s²", "m/min²", "mm/s²", "ft/s²", "ft/min²", "in/s²"],
|
|
51
|
+
/* 1001 */
|
|
52
|
+
"Gravitational Constant": ["m³/kg/s²", "N⋅m²/kg²", "dyn⋅cm²/g²"],
|
|
53
|
+
/* 1010 */
|
|
54
|
+
"Velocity (Angular)": [
|
|
55
|
+
"rad/s",
|
|
56
|
+
"rad/min",
|
|
57
|
+
"rad/h",
|
|
58
|
+
"deg°/s",
|
|
59
|
+
"deg°/min",
|
|
60
|
+
"deg°/h",
|
|
61
|
+
"rpm[rev/min]",
|
|
62
|
+
"rev/s"
|
|
63
|
+
],
|
|
64
|
+
/* 1011 */
|
|
65
|
+
"Acceleration (Angular)": ["rad/s²", "rad/min²", "deg°/s²", "deg°/min²"],
|
|
66
|
+
/* 102 */
|
|
67
|
+
Illuminance: [
|
|
68
|
+
"lux",
|
|
69
|
+
"lumen/m²",
|
|
70
|
+
"lm/m²",
|
|
71
|
+
"meter-candle",
|
|
72
|
+
"phot",
|
|
73
|
+
"foot-candle",
|
|
74
|
+
"fc",
|
|
75
|
+
"lumen/ft²",
|
|
76
|
+
"lm/ft²"
|
|
77
|
+
],
|
|
78
|
+
/* 103 */
|
|
79
|
+
Frequency: ["Hz", "1/s", "1/min", "rpm", "1/hour", "mHz", "kHz", "MHz", "GHz"],
|
|
80
|
+
/* 104 */
|
|
81
|
+
Area: [
|
|
82
|
+
"m²",
|
|
83
|
+
"µm²",
|
|
84
|
+
"mm²",
|
|
85
|
+
"cm²",
|
|
86
|
+
"km²",
|
|
87
|
+
"hectare",
|
|
88
|
+
"in²",
|
|
89
|
+
"ft²",
|
|
90
|
+
"yd²",
|
|
91
|
+
"acre",
|
|
92
|
+
"mile²"
|
|
93
|
+
],
|
|
94
|
+
/* 105 */
|
|
95
|
+
"Volume / Section Modulus": [
|
|
96
|
+
"m³",
|
|
97
|
+
"µm³",
|
|
98
|
+
"mm³",
|
|
99
|
+
"cm³",
|
|
100
|
+
"L",
|
|
101
|
+
"ml",
|
|
102
|
+
"km³",
|
|
103
|
+
"in³",
|
|
104
|
+
"ft³",
|
|
105
|
+
"yd³",
|
|
106
|
+
"gal(UK-imperial)",
|
|
107
|
+
"gal(US-liquid)",
|
|
108
|
+
"gal(US-dry)",
|
|
109
|
+
"pint(UK-imperial)",
|
|
110
|
+
"pint(US-liquid)",
|
|
111
|
+
"pint(US-dry)",
|
|
112
|
+
"fluid ounce(UK-imperial)",
|
|
113
|
+
"fluid ounce(US-liquid)",
|
|
114
|
+
"bushel(UK-imperial)",
|
|
115
|
+
"bushel(US-dry)",
|
|
116
|
+
"cup(US-liquid)",
|
|
117
|
+
"cup(Legal)",
|
|
118
|
+
"cup(Metric)",
|
|
119
|
+
"cup(Imperial)"
|
|
120
|
+
],
|
|
121
|
+
/* 106 */
|
|
122
|
+
"Polar Moment of Inertia": ["m⁴", "mm⁴", "cm⁴", "in⁴", "ft⁴"],
|
|
123
|
+
/* 1060 */
|
|
124
|
+
"Moment of Inertia": ["kg⋅m²", "g⋅cm²", "g⋅mm²", "lbm⋅ft²", "lbm⋅in²", "oz⋅in²"],
|
|
125
|
+
/* 107 */
|
|
126
|
+
Force: ["N", "kN", "MN", "kgf", "lb", "lbf", "kip[kilo pound]"],
|
|
127
|
+
/* 108 */
|
|
128
|
+
Angle: ["radian", "rad", "deg°", "revolution"],
|
|
129
|
+
/* 1081 */
|
|
130
|
+
"Solid Angle": ["sr[steradian]", "m²/m²"],
|
|
131
|
+
/* 1090 */
|
|
132
|
+
"BMI-Body Mass Index/Ballistic Coefficient": [
|
|
133
|
+
"kg/m²",
|
|
134
|
+
"g/cm²",
|
|
135
|
+
"g/mm²",
|
|
136
|
+
"tonne/m²",
|
|
137
|
+
"lbm/yd²",
|
|
138
|
+
"lbm/ft²",
|
|
139
|
+
"lbm/in²",
|
|
140
|
+
"oz/yd²",
|
|
141
|
+
"oz/ft²",
|
|
142
|
+
"oz/in²"
|
|
143
|
+
],
|
|
144
|
+
/* 1091 */
|
|
145
|
+
Density: ["kg/m³", "kg/L", "g/cm³", "g/mm³", "lbm/ft³", "lbm/in³"],
|
|
146
|
+
/* 110 */
|
|
147
|
+
Energy: [
|
|
148
|
+
"J[Joule]",
|
|
149
|
+
"kJ",
|
|
150
|
+
"MJ",
|
|
151
|
+
"GJ",
|
|
152
|
+
"TNT Equivalent[kiloton]",
|
|
153
|
+
"Btu",
|
|
154
|
+
"MM Btu",
|
|
155
|
+
"calorie(IT)",
|
|
156
|
+
// 4.1868J
|
|
157
|
+
"kilo-calorie(IT)",
|
|
158
|
+
"calorie(TH)",
|
|
159
|
+
// 4.184J
|
|
160
|
+
"kilo-calorie(TH)",
|
|
161
|
+
"HP Hour",
|
|
162
|
+
"Wh",
|
|
163
|
+
"kWh",
|
|
164
|
+
"eV[electron-volt]"
|
|
165
|
+
],
|
|
166
|
+
/* 111 */
|
|
167
|
+
Power: [
|
|
168
|
+
"W[watt]",
|
|
169
|
+
"kW",
|
|
170
|
+
"MW",
|
|
171
|
+
"GW[Gigawatt]",
|
|
172
|
+
"Btu/h",
|
|
173
|
+
"Btu/minute",
|
|
174
|
+
"MM Btu/h",
|
|
175
|
+
"Btu(AC)",
|
|
176
|
+
"calorie(IT)/second",
|
|
177
|
+
"calorie(IT)/minute",
|
|
178
|
+
"kilo-calorie(IT)/hour",
|
|
179
|
+
"calorie(TH)/second",
|
|
180
|
+
"calorie(TH)/minute",
|
|
181
|
+
"kilo-calorie(TH)/hour",
|
|
182
|
+
"lb-ft/second",
|
|
183
|
+
"lb-ft/minute",
|
|
184
|
+
"HP",
|
|
185
|
+
"J/second",
|
|
186
|
+
"J/minute",
|
|
187
|
+
"J/h",
|
|
188
|
+
"MJ/h",
|
|
189
|
+
"kJ/minute"
|
|
190
|
+
],
|
|
191
|
+
/* 112 */
|
|
192
|
+
"Torque, Moment of Force": ["Nm", "kNm", "lb-in", "kip-in", "lb-ft", "oz-in", "oz-ft"],
|
|
193
|
+
/* 1130 */
|
|
194
|
+
"Pressure/Stress": [
|
|
195
|
+
"Pa",
|
|
196
|
+
"kPa",
|
|
197
|
+
"MPa",
|
|
198
|
+
"GPa",
|
|
199
|
+
"bar",
|
|
200
|
+
"mbar",
|
|
201
|
+
"atm",
|
|
202
|
+
"mm HG",
|
|
203
|
+
"cm HG",
|
|
204
|
+
"in HG",
|
|
205
|
+
"mm W.C.",
|
|
206
|
+
"m W.C.",
|
|
207
|
+
"in W.C.",
|
|
208
|
+
"psf",
|
|
209
|
+
"psi",
|
|
210
|
+
"ksi",
|
|
211
|
+
"ksi[kip/in²]"
|
|
212
|
+
],
|
|
213
|
+
/* 1131 */
|
|
214
|
+
"Pressure Drop per Unit Length": [
|
|
215
|
+
"Pa/m",
|
|
216
|
+
"Pascal/m",
|
|
217
|
+
"kPa/m",
|
|
218
|
+
"MPa/km",
|
|
219
|
+
"bar/m",
|
|
220
|
+
"mbar/mm",
|
|
221
|
+
"atm/m",
|
|
222
|
+
"mm HG/m",
|
|
223
|
+
"in HG/ft",
|
|
224
|
+
"mm W.C./m",
|
|
225
|
+
"m W.C./m",
|
|
226
|
+
"in W.C./ft",
|
|
227
|
+
"in W.C./100 ft",
|
|
228
|
+
"psf/in",
|
|
229
|
+
"psi/ft",
|
|
230
|
+
"ksi/ft",
|
|
231
|
+
"Torr/ft",
|
|
232
|
+
"mTorr/m"
|
|
233
|
+
],
|
|
234
|
+
/* 1132 */
|
|
235
|
+
"Uniformly Distributed (Uniform Line) Load | Stiffness of Linear Spring": ["N/m", "N/mm", "kN/m", "lb/ft", "kips/ft", "lb/in"],
|
|
236
|
+
// 1132
|
|
237
|
+
/* 1133 */
|
|
238
|
+
"Stiffness of Rotary Spring": [
|
|
239
|
+
"N⋅m/rad",
|
|
240
|
+
"N⋅m/deg°",
|
|
241
|
+
"N⋅mm/rad",
|
|
242
|
+
"N⋅mm/deg°",
|
|
243
|
+
"lb-ft/rad",
|
|
244
|
+
"lb-ft/deg°",
|
|
245
|
+
"lb-in/rad",
|
|
246
|
+
"lb-in/deg°"
|
|
247
|
+
],
|
|
248
|
+
/* 114 */
|
|
249
|
+
"Flow Rate (Volume)": [
|
|
250
|
+
"m³/s",
|
|
251
|
+
"m³/min",
|
|
252
|
+
"m³/h",
|
|
253
|
+
"L/s",
|
|
254
|
+
"L/min",
|
|
255
|
+
"L/h",
|
|
256
|
+
"cm³/s",
|
|
257
|
+
"cm³/min",
|
|
258
|
+
"in³/s",
|
|
259
|
+
"in³/min",
|
|
260
|
+
"ft³/s",
|
|
261
|
+
"CFM",
|
|
262
|
+
"CFM[ft³/min]",
|
|
263
|
+
"CFH",
|
|
264
|
+
"CFH[ft³/h]",
|
|
265
|
+
"yd³/min",
|
|
266
|
+
"yd³/h",
|
|
267
|
+
"gpm(US)",
|
|
268
|
+
"gph(US)",
|
|
269
|
+
"bushel(UK-imperial)/h",
|
|
270
|
+
"bushel(US)/h"
|
|
271
|
+
],
|
|
272
|
+
/* 115 */
|
|
273
|
+
"Flow Rate (Mass)": [
|
|
274
|
+
"kg/s",
|
|
275
|
+
"kg/min",
|
|
276
|
+
"kg/h",
|
|
277
|
+
"g/s",
|
|
278
|
+
"g/min",
|
|
279
|
+
"g/h",
|
|
280
|
+
"slug/s",
|
|
281
|
+
"slug/min",
|
|
282
|
+
"slug/h",
|
|
283
|
+
"lbm/s",
|
|
284
|
+
"lbm/min",
|
|
285
|
+
"lbm/h",
|
|
286
|
+
"oz/s",
|
|
287
|
+
"oz/min",
|
|
288
|
+
"oz/h",
|
|
289
|
+
"tonne/h",
|
|
290
|
+
"short ton/h",
|
|
291
|
+
"long ton/h"
|
|
292
|
+
],
|
|
293
|
+
/* 117 */
|
|
294
|
+
"Speed / Velocity (Linear)": [
|
|
295
|
+
"m/s",
|
|
296
|
+
"mm/s",
|
|
297
|
+
"km/s",
|
|
298
|
+
"mm/min",
|
|
299
|
+
"m/min",
|
|
300
|
+
"km/min",
|
|
301
|
+
"mm/h",
|
|
302
|
+
"m/h",
|
|
303
|
+
"km/h",
|
|
304
|
+
"in/s",
|
|
305
|
+
"fps",
|
|
306
|
+
"fps[ft/second]",
|
|
307
|
+
"fpm",
|
|
308
|
+
// clear version
|
|
309
|
+
"fpm[ft/minute]",
|
|
310
|
+
// redundant version
|
|
311
|
+
"mph[mile/h]",
|
|
312
|
+
"knot[kn, kt, or nautical mile/h]"
|
|
313
|
+
],
|
|
314
|
+
/* 118 */
|
|
315
|
+
/* 119 */
|
|
316
|
+
"Fuel Heat Value (Volume)": [
|
|
317
|
+
"J/m³",
|
|
318
|
+
"J/L",
|
|
319
|
+
"kJ/L",
|
|
320
|
+
"kJ/m³",
|
|
321
|
+
"MJ/m³",
|
|
322
|
+
"GJ/m³",
|
|
323
|
+
"cal(IT)/L",
|
|
324
|
+
// 4.1868J
|
|
325
|
+
"kcal(IT)/m³",
|
|
326
|
+
"cal(TH)/L",
|
|
327
|
+
// 4.184J
|
|
328
|
+
"kcal(TH)/m³",
|
|
329
|
+
"Wh/L",
|
|
330
|
+
"Wh/m³",
|
|
331
|
+
"kWh/m³",
|
|
332
|
+
"HP Hour/ft³",
|
|
333
|
+
"Btu/gal(US)",
|
|
334
|
+
"Btu/ft³",
|
|
335
|
+
"MM Btu/ft³"
|
|
336
|
+
],
|
|
337
|
+
/* 120 */
|
|
338
|
+
"Fuel Heat Value (Mass)": [
|
|
339
|
+
"J/kg",
|
|
340
|
+
"J/g",
|
|
341
|
+
"kJ/kg",
|
|
342
|
+
"MJ/kg",
|
|
343
|
+
"GJ/kg",
|
|
344
|
+
"cal(IT)/g",
|
|
345
|
+
"kcal(IT)/kg",
|
|
346
|
+
"cal(TH)/g",
|
|
347
|
+
"kcal(TH)/kg",
|
|
348
|
+
"Wh/g",
|
|
349
|
+
"Wh/kg",
|
|
350
|
+
"kWh/kg",
|
|
351
|
+
"HP Hour/lbm",
|
|
352
|
+
"Btu/lbm",
|
|
353
|
+
"MM Btu/lbm",
|
|
354
|
+
"Btu/ton(short)"
|
|
355
|
+
],
|
|
356
|
+
/* 121 */
|
|
357
|
+
"Mass Heat Capacity": ["J/(kg·°K)", "J/(kg·°C)", "J/(g·°K)", "J/(g·°C)", "Btu/(lbm·°F)"],
|
|
358
|
+
/* 122 */
|
|
359
|
+
"Viscosity - Absolute/Dynamic(μ)": [
|
|
360
|
+
"PI[Pa·s]",
|
|
361
|
+
"N·s/m²",
|
|
362
|
+
"kg/m/s",
|
|
363
|
+
"P[Poise]",
|
|
364
|
+
"cP",
|
|
365
|
+
"lb·s/ft²",
|
|
366
|
+
"lbm/ft/s"
|
|
367
|
+
],
|
|
368
|
+
/* 123 */
|
|
369
|
+
"Viscosity - Kinematic": [
|
|
370
|
+
"m²/s",
|
|
371
|
+
"m²/min",
|
|
372
|
+
"m²/hr",
|
|
373
|
+
"St[cm²/s]",
|
|
374
|
+
"Stoke",
|
|
375
|
+
"cm²/min",
|
|
376
|
+
"cm²/hr",
|
|
377
|
+
"cSt[mm²/s]",
|
|
378
|
+
"mm²/min",
|
|
379
|
+
"mm²/hr",
|
|
380
|
+
"ft²/s",
|
|
381
|
+
"ft²/min",
|
|
382
|
+
"ft²/hr",
|
|
383
|
+
"in²/s",
|
|
384
|
+
"in²/min",
|
|
385
|
+
"in²/hr"
|
|
386
|
+
],
|
|
387
|
+
/* 1240 */
|
|
388
|
+
"Linear Thermal Expansion Coefficient": ["1/°K", "1/°C", "1/°F", "1/°Ra"],
|
|
389
|
+
/* 1241 */
|
|
390
|
+
"Thermal Conductivity": ["W/(m⋅°K)", "W/(cm⋅°K)", "BTU/(h⋅ft⋅°F)", "BTU/(h⋅in⋅°F)"],
|
|
391
|
+
// TODO:
|
|
392
|
+
/* 125 */
|
|
393
|
+
"Electrical Charge": [
|
|
394
|
+
"C[coulomb]",
|
|
395
|
+
"Ah",
|
|
396
|
+
"ampere-hour",
|
|
397
|
+
"mAh",
|
|
398
|
+
"e[electron]",
|
|
399
|
+
"faraday"
|
|
400
|
+
],
|
|
401
|
+
/* 126 */
|
|
402
|
+
"Electrical Potential Difference (Voltage)": [
|
|
403
|
+
"V",
|
|
404
|
+
"Volt",
|
|
405
|
+
"joule/coulomb",
|
|
406
|
+
"J/C",
|
|
407
|
+
"µV",
|
|
408
|
+
"mV",
|
|
409
|
+
"kV",
|
|
410
|
+
"MV"
|
|
411
|
+
],
|
|
412
|
+
/* 127 */
|
|
413
|
+
"Electrical Resistance(Impedance)": ["Ω[Ohm]", "µΩ", "mΩ", "kΩ", "MΩ"],
|
|
414
|
+
/* 128 */
|
|
415
|
+
"Electrical Capacitance": ["F[farad]", "pF", "nF", "µF", "mF"],
|
|
416
|
+
/* 129 */
|
|
417
|
+
"Electrical Inductance": ["H[henry]", "µH", "mH"],
|
|
418
|
+
/* 130 */
|
|
419
|
+
"Electrical Conductance": ["S[siemens]", "℧", "µS", "mS", "kS"],
|
|
420
|
+
/* 131 */
|
|
421
|
+
"Magnetic Flux": ["Wb[weber]", "nWb", "µWb", "mWb", "cWb", "dWb"],
|
|
422
|
+
/* 132 */
|
|
423
|
+
"Luminous Flux": ["lm[lumen]", "cd⋅sr"],
|
|
424
|
+
/* 133 */
|
|
425
|
+
"Magnetic Flux Density": ["T[tesla]", "Wb/m²", "µT", "G", "mT"],
|
|
426
|
+
/* 134 */
|
|
427
|
+
"Katalytic Activity": ["kat[katal]", "mol/s", "µkat", "mkat", "kkat", "Mkat"],
|
|
428
|
+
/* 135 */
|
|
429
|
+
Radioactivity: [
|
|
430
|
+
"Bq[becquerel]",
|
|
431
|
+
"1/s",
|
|
432
|
+
"µBq",
|
|
433
|
+
"mBq",
|
|
434
|
+
"kBq",
|
|
435
|
+
"MBq",
|
|
436
|
+
"Rd[rutherford]",
|
|
437
|
+
"Ci[curie]"
|
|
438
|
+
],
|
|
439
|
+
/* 136 */
|
|
440
|
+
"Absorbed Dose of Ionizing Radiation": ["Gy[gray]", "J/kg", "µGy", "mGy", "kGy", "MGy"],
|
|
441
|
+
/* 137 */
|
|
442
|
+
"Equivalent Dose of Ionizing Radiation": ["Sv[sievert]", "J/kg", "µSv", "mSv", "kSv", "MSv"],
|
|
443
|
+
/* 138 */
|
|
444
|
+
"Volumetric Displacement": [
|
|
445
|
+
/** baseUnit does not need to be included here.
|
|
446
|
+
* => Update: show baseUnit so user can tell it is based on volume/angle, instead of volume/cycle. 20221016
|
|
447
|
+
*/
|
|
448
|
+
"m³/rad",
|
|
449
|
+
"m³/rev",
|
|
450
|
+
"L/rev",
|
|
451
|
+
"cc/rev",
|
|
452
|
+
"ft³/rev",
|
|
453
|
+
"in³/rev",
|
|
454
|
+
"gal(US-liquid)/rev"
|
|
455
|
+
],
|
|
456
|
+
/* 139 */
|
|
457
|
+
"Fuel Economy": [
|
|
458
|
+
// 'm/m³',
|
|
459
|
+
"km/L",
|
|
460
|
+
"mpg(US)",
|
|
461
|
+
"mile/gal(US-liquid)",
|
|
462
|
+
"mpg(UK)",
|
|
463
|
+
"mile/gal(UK-imperial)",
|
|
464
|
+
"mile/L"
|
|
465
|
+
],
|
|
466
|
+
/* 140 */
|
|
467
|
+
"Fuel Consumption": [
|
|
468
|
+
"m³/m",
|
|
469
|
+
"L/km",
|
|
470
|
+
"L/100km",
|
|
471
|
+
"L/mile",
|
|
472
|
+
"L/100mile",
|
|
473
|
+
"gal(US-liquid)/mile",
|
|
474
|
+
"gal(US-liquid)/100mile",
|
|
475
|
+
"gal(UK-imperial)/mile",
|
|
476
|
+
"gal(UK-imperial)/100mile"
|
|
477
|
+
],
|
|
478
|
+
/* 141 */
|
|
479
|
+
"New Energy Economy (MPGe)": [
|
|
480
|
+
"m/J",
|
|
481
|
+
"km/kWh",
|
|
482
|
+
"km/MJ",
|
|
483
|
+
"MPGe",
|
|
484
|
+
"mile/MJ",
|
|
485
|
+
"mile/kWh",
|
|
486
|
+
"mile/MM Btu"
|
|
487
|
+
],
|
|
488
|
+
/* 142 */
|
|
489
|
+
"New Energy Consumption": [
|
|
490
|
+
"J/m",
|
|
491
|
+
"Wh/km",
|
|
492
|
+
"Wh/mile",
|
|
493
|
+
"kWh/km",
|
|
494
|
+
"kWh/100km",
|
|
495
|
+
"kWh/mile",
|
|
496
|
+
"kWh/100mile",
|
|
497
|
+
"MJ/km",
|
|
498
|
+
"MJ/100km",
|
|
499
|
+
"MJ/mile",
|
|
500
|
+
"MJ/100mile",
|
|
501
|
+
"MM Btu/km",
|
|
502
|
+
"MM Btu/100km",
|
|
503
|
+
"MM Btu/mile",
|
|
504
|
+
"MM Btu/100mile"
|
|
505
|
+
],
|
|
506
|
+
/* 143 */
|
|
507
|
+
"Baud Rate": ["bit/s", "Bd", "kBd", "MBd", "GBd"],
|
|
508
|
+
/* 144 */
|
|
509
|
+
/* 145 */
|
|
510
|
+
/* 146 */
|
|
511
|
+
/* 147 */
|
|
512
|
+
/* 148 */
|
|
513
|
+
/* 149 */
|
|
514
|
+
/* 150 */
|
|
515
|
+
Currency: ["$", "¢", "$1K", "$1M", "$1B", "$1T"],
|
|
516
|
+
/* 151 */
|
|
517
|
+
"Impulse / Momentum": ["N·s", "Newton-second", "lb·s", "kg·m/s", "lbm·fps", "lbm·fpm"],
|
|
518
|
+
/* 152 */
|
|
519
|
+
"Digital Storage": [
|
|
520
|
+
"bit",
|
|
521
|
+
"kilobit",
|
|
522
|
+
"kibibit",
|
|
523
|
+
"megabit",
|
|
524
|
+
"mebibit",
|
|
525
|
+
"gigabit",
|
|
526
|
+
"gibibit",
|
|
527
|
+
"terabit",
|
|
528
|
+
"tebibit",
|
|
529
|
+
"petabit",
|
|
530
|
+
"pebibit",
|
|
531
|
+
"byte",
|
|
532
|
+
"kilobyte",
|
|
533
|
+
"kibibyte",
|
|
534
|
+
"megabyte",
|
|
535
|
+
"mebibyte",
|
|
536
|
+
"gigabyte",
|
|
537
|
+
"gibibyte",
|
|
538
|
+
"terabyte",
|
|
539
|
+
"tebibyte",
|
|
540
|
+
"petabyte",
|
|
541
|
+
"pebibyte"
|
|
542
|
+
],
|
|
543
|
+
/* 153 */
|
|
544
|
+
"Data Transfer Rate": [
|
|
545
|
+
"bit/s",
|
|
546
|
+
"kilobit/s",
|
|
547
|
+
"kibibit/s",
|
|
548
|
+
"megabit/s",
|
|
549
|
+
"mebibit/s",
|
|
550
|
+
"gigabit/s",
|
|
551
|
+
"gibibit/s",
|
|
552
|
+
"terabit/s",
|
|
553
|
+
"tebibit/s",
|
|
554
|
+
"petabit/s",
|
|
555
|
+
"pebibit/s"
|
|
556
|
+
]
|
|
557
|
+
/* 154 */
|
|
558
|
+
/* */
|
|
559
|
+
}, M = {
|
|
560
|
+
/* 901 */
|
|
561
|
+
Length: {
|
|
562
|
+
m: 1,
|
|
563
|
+
"nano[nm]": 1 / 1e9,
|
|
564
|
+
µm: 1 / 1e6,
|
|
565
|
+
micron: 1 / 1e6,
|
|
566
|
+
mm: 1 / 1e3,
|
|
567
|
+
cm: 0.01,
|
|
568
|
+
dm: 0.1,
|
|
569
|
+
km: 1e3,
|
|
570
|
+
in: l,
|
|
571
|
+
"thou[mil, or thousandth of an inch]": l / 1e3,
|
|
572
|
+
// a thousandth is called a thou per wiki
|
|
573
|
+
"ft-in": l,
|
|
574
|
+
ft: n,
|
|
575
|
+
yd: 3 * n,
|
|
576
|
+
mile: v * n,
|
|
577
|
+
"NM[M, nmi, or nautical mile]": W
|
|
578
|
+
},
|
|
579
|
+
/* 902 */
|
|
580
|
+
Mass: {
|
|
581
|
+
kg: 1,
|
|
582
|
+
g: 1e-3,
|
|
583
|
+
mg: 1 / 1e6,
|
|
584
|
+
µg: 1 / 1e9,
|
|
585
|
+
oz: 1 / 16 * o,
|
|
586
|
+
lbm: o,
|
|
587
|
+
slug: T,
|
|
588
|
+
"ton(US/short)": 2e3 * o,
|
|
589
|
+
"ton(UK-Imperial/long)": 2240 * o,
|
|
590
|
+
tonne: 1e3
|
|
591
|
+
},
|
|
592
|
+
/* 903 */
|
|
593
|
+
Time: {
|
|
594
|
+
/* ["s[second]", "s", "minute", "h", "h[hour]", "day", "week"], */
|
|
595
|
+
"s[second]": 1,
|
|
596
|
+
s: 1,
|
|
597
|
+
minute: 60,
|
|
598
|
+
h: 3600,
|
|
599
|
+
"h[hour]": 3600,
|
|
600
|
+
day: 3600 * 24,
|
|
601
|
+
week: 3600 * 24 * 7
|
|
602
|
+
},
|
|
603
|
+
/* 904 */
|
|
604
|
+
ElectricalCurrent: {
|
|
605
|
+
/* ["A", "Ampere[amp]", "mA", "µA", "kA", "MA", "esu/s"], */
|
|
606
|
+
A: 1,
|
|
607
|
+
"Ampere[amp]": 1,
|
|
608
|
+
mA: 1e-3,
|
|
609
|
+
µA: 1e-6,
|
|
610
|
+
kA: 1e3,
|
|
611
|
+
MA: 1e6,
|
|
612
|
+
"esu/s": 1 / 3e9
|
|
613
|
+
},
|
|
614
|
+
/* 905 */
|
|
615
|
+
Temperature: {
|
|
616
|
+
"°K": { c0: 1, c1: 0 },
|
|
617
|
+
"°C": { c0: 1, c1: 273.15 },
|
|
618
|
+
"°F": { c0: 5 / 9, c1: 255.3722222 },
|
|
619
|
+
"°Ra": { c0: 5 / 9, c1: 0 }
|
|
620
|
+
},
|
|
621
|
+
/* 906 */
|
|
622
|
+
"Amount of Substance": {
|
|
623
|
+
mol: 1,
|
|
624
|
+
mmol: 1e-3,
|
|
625
|
+
kmol: 1e3
|
|
626
|
+
},
|
|
627
|
+
/* 907 */
|
|
628
|
+
"Luminous Intensity": {
|
|
629
|
+
"cd[candela]": 1,
|
|
630
|
+
"lm/sr": 1,
|
|
631
|
+
"cp[candlepower]": 1,
|
|
632
|
+
"cp[candlepower(before 1948)]": 0.981
|
|
633
|
+
},
|
|
634
|
+
/* 100 */
|
|
635
|
+
Acceleration: {
|
|
636
|
+
"m/s²": 1,
|
|
637
|
+
"m/min²": 1 / 3600,
|
|
638
|
+
"mm/s²": 1e-3,
|
|
639
|
+
"ft/s²": n,
|
|
640
|
+
"ft/min²": n / 3600,
|
|
641
|
+
"in/s²": l
|
|
642
|
+
},
|
|
643
|
+
/* 1001 */
|
|
644
|
+
"Gravitational Constant": {
|
|
645
|
+
"m³/kg/s²": 1,
|
|
646
|
+
"N⋅m²/kg²": 1,
|
|
647
|
+
"dyn⋅cm²/g²": 1e3
|
|
648
|
+
},
|
|
649
|
+
/* 1010 */
|
|
650
|
+
"Velocity (Angular)": {
|
|
651
|
+
"rad/s": 1,
|
|
652
|
+
"rad/min": 1 / 60,
|
|
653
|
+
"rad/h": 1 / 3600,
|
|
654
|
+
"deg°/s": Math.PI / 180,
|
|
655
|
+
"deg°/min": Math.PI / 180 / 60,
|
|
656
|
+
"deg°/h": Math.PI / 180 / 3600,
|
|
657
|
+
"rpm[rev/min]": 2 * Math.PI / 60,
|
|
658
|
+
"rev/s": 2 * Math.PI
|
|
659
|
+
},
|
|
660
|
+
/* 1011 */
|
|
661
|
+
"Acceleration (Angular)": {
|
|
662
|
+
"rad/s²": 1,
|
|
663
|
+
"rad/min²": 1 / 3600,
|
|
664
|
+
"deg°/s²": Math.PI / 180,
|
|
665
|
+
"deg°/min²": Math.PI / 180 / 3600
|
|
666
|
+
},
|
|
667
|
+
/* 102 */
|
|
668
|
+
Illuminance: {
|
|
669
|
+
lux: 1,
|
|
670
|
+
"lumen/m²": 1,
|
|
671
|
+
"lm/m²": 1,
|
|
672
|
+
"meter-candle": 1,
|
|
673
|
+
phot: 1e4,
|
|
674
|
+
"foot-candle": 1 / Math.pow(n, 2),
|
|
675
|
+
fc: 1 / Math.pow(n, 2),
|
|
676
|
+
"lumen/ft²": 1 / Math.pow(n, 2),
|
|
677
|
+
"lm/ft²": 1 / Math.pow(n, 2)
|
|
678
|
+
},
|
|
679
|
+
/* 103 */
|
|
680
|
+
Frequency: {
|
|
681
|
+
Hz: 1,
|
|
682
|
+
"1/s": 1,
|
|
683
|
+
"1/min": 1 / 60,
|
|
684
|
+
rpm: 1 / 60,
|
|
685
|
+
"1/hour": 1 / 3600,
|
|
686
|
+
mHz: 1 / 1e3,
|
|
687
|
+
kHz: 1e3,
|
|
688
|
+
MHz: 1e6,
|
|
689
|
+
GHz: 1e9
|
|
690
|
+
},
|
|
691
|
+
/* 104 */
|
|
692
|
+
Area: {
|
|
693
|
+
"m²": 1,
|
|
694
|
+
"µm²": Math.pow(1 / 1e6, 2),
|
|
695
|
+
"mm²": Math.pow(1 / 1e3, 2),
|
|
696
|
+
"cm²": Math.pow(1 / 100, 2),
|
|
697
|
+
"km²": 1e6,
|
|
698
|
+
hectare: Math.pow(100, 2),
|
|
699
|
+
"in²": Math.pow(l, 2),
|
|
700
|
+
"ft²": Math.pow(n, 2),
|
|
701
|
+
"yd²": Math.pow(n * 3, 2),
|
|
702
|
+
acre: V * Math.pow(n, 2),
|
|
703
|
+
"mile²": Math.pow(v * n, 2)
|
|
704
|
+
},
|
|
705
|
+
/* 105 */
|
|
706
|
+
"Volume / Section Modulus": {
|
|
707
|
+
"m³": 1,
|
|
708
|
+
"µm³": Math.pow(1 / 1e6, 3),
|
|
709
|
+
"mm³": Math.pow(1 / 1e3, 3),
|
|
710
|
+
"cm³": Math.pow(1 / 100, 3),
|
|
711
|
+
L: 1 / 1e3,
|
|
712
|
+
ml: 1 / 1e6,
|
|
713
|
+
"km³": Math.pow(1e3, 3),
|
|
714
|
+
"in³": Math.pow(l, 3),
|
|
715
|
+
"ft³": Math.pow(n, 3),
|
|
716
|
+
"yd³": Math.pow(n * 3, 3),
|
|
717
|
+
"gal(UK-imperial)": d * 1 / 1e3,
|
|
718
|
+
"gal(US-liquid)": p * Math.pow(l, 3),
|
|
719
|
+
"gal(US-dry)": I * Math.pow(l, 3),
|
|
720
|
+
"pint(UK-imperial)": g * d * 1 / 1e3,
|
|
721
|
+
"pint(US-liquid)": g * p * Math.pow(l, 3),
|
|
722
|
+
"pint(US-dry)": g * I * Math.pow(l, 3),
|
|
723
|
+
"fluid ounce(UK-imperial)": F * g * d / 1e3,
|
|
724
|
+
"fluid ounce(US-liquid)": G * g * p * Math.pow(l, 3),
|
|
725
|
+
"bushel(UK-imperial)": B * d / 1e3,
|
|
726
|
+
"bushel(US-dry)": _ * I * Math.pow(l, 3),
|
|
727
|
+
"cup(US-liquid)": q * p * Math.pow(l, 3),
|
|
728
|
+
"cup(Legal)": z * Math.pow(0.01, 3),
|
|
729
|
+
"cup(Metric)": K * Math.pow(0.01, 3),
|
|
730
|
+
"cup(Imperial)": Q * F * g * d / 1e3
|
|
731
|
+
},
|
|
732
|
+
/* 106 */
|
|
733
|
+
"Polar Moment of Inertia": {
|
|
734
|
+
"m⁴": 1,
|
|
735
|
+
"mm⁴": 1e-12,
|
|
736
|
+
"cm⁴": 1e-8,
|
|
737
|
+
"in⁴": Math.pow(l, 4),
|
|
738
|
+
"ft⁴": Math.pow(n, 4)
|
|
739
|
+
},
|
|
740
|
+
/* 1060 */
|
|
741
|
+
"Moment of Inertia": {
|
|
742
|
+
"kg⋅m²": 1,
|
|
743
|
+
"g⋅cm²": 1 / (1e3 * 1e4),
|
|
744
|
+
"g⋅mm²": 1 / (1e3 * 1e6),
|
|
745
|
+
"lbm⋅ft²": o * Math.pow(n, 2),
|
|
746
|
+
"lbm⋅in²": o * Math.pow(l, 2),
|
|
747
|
+
"oz⋅in²": o / 16 * Math.pow(l, 2)
|
|
748
|
+
},
|
|
749
|
+
/* 107 */
|
|
750
|
+
Force: {
|
|
751
|
+
N: 1,
|
|
752
|
+
kN: 1e3,
|
|
753
|
+
MN: 1e6,
|
|
754
|
+
kgf: r,
|
|
755
|
+
lb: o * r,
|
|
756
|
+
lbf: o * r,
|
|
757
|
+
"kip[kilo pound]": 1e3 * o * r
|
|
758
|
+
},
|
|
759
|
+
/* 108 */
|
|
760
|
+
Angle: {
|
|
761
|
+
radian: 1,
|
|
762
|
+
rad: 1,
|
|
763
|
+
"deg°": Math.PI / 180,
|
|
764
|
+
revolution: Math.PI * 2
|
|
765
|
+
},
|
|
766
|
+
/* 1081 */
|
|
767
|
+
"Solid Angle": {
|
|
768
|
+
"sr[steradian]": 1,
|
|
769
|
+
"m²/m²": 1
|
|
770
|
+
},
|
|
771
|
+
/* 1090 */
|
|
772
|
+
"BMI-Body Mass Index/Ballistic Coefficient": {
|
|
773
|
+
"kg/m²": 1,
|
|
774
|
+
"g/cm²": 1 / 1e3 / Math.pow(0.01, 2),
|
|
775
|
+
"g/mm²": 1 / 1e3 / Math.pow(1e-3, 2),
|
|
776
|
+
"tonne/m²": 1e3,
|
|
777
|
+
"lbm/yd²": o / Math.pow(n * 3, 2),
|
|
778
|
+
"lbm/ft²": o / Math.pow(n, 2),
|
|
779
|
+
"lbm/in²": o / Math.pow(l, 2),
|
|
780
|
+
"oz/yd²": o / 16 / Math.pow(3 * n, 2),
|
|
781
|
+
"oz/ft²": o / 16 / Math.pow(n, 2),
|
|
782
|
+
"oz/in²": o / 16 / Math.pow(l, 2)
|
|
783
|
+
},
|
|
784
|
+
/* 1091 */
|
|
785
|
+
Density: {
|
|
786
|
+
"kg/m³": 1,
|
|
787
|
+
"kg/L": 1e3,
|
|
788
|
+
"g/cm³": 1 / 1e3 / Math.pow(0.01, 3),
|
|
789
|
+
"g/mm³": 1 / 1e3 / Math.pow(1e-3, 3),
|
|
790
|
+
"lbm/ft³": o / Math.pow(n, 3),
|
|
791
|
+
"lbm/in³": o / Math.pow(l, 3)
|
|
792
|
+
},
|
|
793
|
+
/* 110 */
|
|
794
|
+
Energy: {
|
|
795
|
+
"J[Joule]": 1,
|
|
796
|
+
kJ: 1e3,
|
|
797
|
+
MJ: 1e6,
|
|
798
|
+
GJ: 1e9,
|
|
799
|
+
"TNT Equivalent[kiloton]": 1e9 * b,
|
|
800
|
+
// 1e9 = 1000000000.0,
|
|
801
|
+
Btu: f,
|
|
802
|
+
"MM Btu": f * 1e6,
|
|
803
|
+
"calorie(IT)": w,
|
|
804
|
+
// 4.1868J
|
|
805
|
+
"kilo-calorie(IT)": w * 1e3,
|
|
806
|
+
"calorie(TH)": b,
|
|
807
|
+
// 4.184J
|
|
808
|
+
"kilo-calorie(TH)": b * 1e3,
|
|
809
|
+
"HP Hour": R * 3600,
|
|
810
|
+
Wh: 3600,
|
|
811
|
+
kWh: 3600 * 1e3,
|
|
812
|
+
"eV{electron-volt]": 1 / j
|
|
813
|
+
},
|
|
814
|
+
/* 111 */
|
|
815
|
+
Power: {
|
|
816
|
+
W: 1,
|
|
817
|
+
kW: 1e3,
|
|
818
|
+
MW: 1e6,
|
|
819
|
+
"GW[Gigawatt]": 1e9,
|
|
820
|
+
"Btu/h": f / 3600,
|
|
821
|
+
"Btu/minute": f / 60,
|
|
822
|
+
"MM Btu/h": f * 1e6 / 3600,
|
|
823
|
+
"Btu(AC)": f / 3600,
|
|
824
|
+
"calorie(IT)/second": w,
|
|
825
|
+
"calorie(IT)/minute": w / 60,
|
|
826
|
+
"kilo-calorie(IT)/hour": w * 1e3 / 3600,
|
|
827
|
+
"calorie(TH)/second": b,
|
|
828
|
+
"calorie(TH)/minute": b / 60,
|
|
829
|
+
"kilo-calorie(TH)/hour": b * 1e3 / 3600,
|
|
830
|
+
"lb-ft/second": o * r * n,
|
|
831
|
+
"lb-ft/minute": o * r * n / 60,
|
|
832
|
+
HP: R,
|
|
833
|
+
"J/second": 1,
|
|
834
|
+
"J/minute": 1 / 60,
|
|
835
|
+
"J/h": 1 / 3600,
|
|
836
|
+
"MJ/h": 1e6 / 3600,
|
|
837
|
+
"kJ/minute": 1e3 / 60
|
|
838
|
+
},
|
|
839
|
+
/* 112 */
|
|
840
|
+
"Torque, Moment of Force": {
|
|
841
|
+
Nm: 1,
|
|
842
|
+
kNm: 1e3,
|
|
843
|
+
"lb-in": o * r * l,
|
|
844
|
+
"kip-in": 1e3 * o * r * l,
|
|
845
|
+
"lb-ft": o * r * n,
|
|
846
|
+
"oz-in": o / 16 * r * l,
|
|
847
|
+
"oz-ft": o / 16 * r * n
|
|
848
|
+
},
|
|
849
|
+
/* 1130 */
|
|
850
|
+
"Pressure/Stress": {
|
|
851
|
+
Pa: 1,
|
|
852
|
+
kPa: 1e3,
|
|
853
|
+
MPa: 1e6,
|
|
854
|
+
GPa: 1e9,
|
|
855
|
+
bar: 100 * 1e3,
|
|
856
|
+
mbar: 100,
|
|
857
|
+
atm: N,
|
|
858
|
+
"mm HG": y,
|
|
859
|
+
"cm HG": y * 10,
|
|
860
|
+
"in HG": y * 25.4,
|
|
861
|
+
"mm W.C.": 1 / 1e3 * 1e3 * r,
|
|
862
|
+
"m W.C.": 1 * 1e3 * r,
|
|
863
|
+
"in W.C.": l * 1e3 * r,
|
|
864
|
+
psf: o * r / Math.pow(n, 2),
|
|
865
|
+
psi: o * r / Math.pow(l, 2),
|
|
866
|
+
ksi: o * r / Math.pow(l, 2) * 1e3,
|
|
867
|
+
"ksi{kip/in²]": o * r / Math.pow(l, 2) * 1e3
|
|
868
|
+
},
|
|
869
|
+
/* 1131 */
|
|
870
|
+
"Pressure Drop per Unit Length": {
|
|
871
|
+
"Pa/m": 1,
|
|
872
|
+
"Pascal/m": 1,
|
|
873
|
+
"kPa/m": 1e3,
|
|
874
|
+
"MPa/km": 1e6 / 1e3,
|
|
875
|
+
"bar/m": 1e5,
|
|
876
|
+
"mbar/mm": 100 * 1e3,
|
|
877
|
+
"atm/m": N,
|
|
878
|
+
"mm HG/m": y,
|
|
879
|
+
"in HG/ft": y * 25.4 / n,
|
|
880
|
+
"mm W.C./m": 1 / 1e3 * 1e3 * r,
|
|
881
|
+
"m W.C./m": 1e3 * r,
|
|
882
|
+
"in W.C./ft": l * 1e3 * r / n,
|
|
883
|
+
"in W.C./100 ft": l * 1e3 * r / n / 100,
|
|
884
|
+
"psf/in": o * r / Math.pow(n, 2) / l,
|
|
885
|
+
"psi/ft": o * r / Math.pow(n, 2) / n,
|
|
886
|
+
"ksi/ft": o * r / Math.pow(n, 2) / n * 1e3,
|
|
887
|
+
"Torr/ft": $ * N / n,
|
|
888
|
+
"mTorr/m": $ * N / 1e3
|
|
889
|
+
},
|
|
890
|
+
/* 1132 */
|
|
891
|
+
"Uniformly Distributed (Uniform Line) Load | Stiffness of Linear Spring": {
|
|
892
|
+
"N/m": 1,
|
|
893
|
+
"N/mm": 1e3,
|
|
894
|
+
"kN/m": 1e3,
|
|
895
|
+
"lb/ft": o * r / n,
|
|
896
|
+
"kips/ft": 1e3 * o * r / n,
|
|
897
|
+
"lb/in": o * r / l
|
|
898
|
+
},
|
|
899
|
+
/* 1133 */
|
|
900
|
+
"Stiffness of Rotary Spring": {
|
|
901
|
+
"N⋅m/rad": 1,
|
|
902
|
+
"N⋅m/deg°": 1 / Math.PI * 180,
|
|
903
|
+
"N⋅mm/rad": 1 / 1e3,
|
|
904
|
+
"N⋅mm/deg°": 1 / 1e3 / Math.PI * 180,
|
|
905
|
+
"lb-ft/rad": o * r * n,
|
|
906
|
+
"lb-ft/deg°": o * r * n / (Math.PI / 180),
|
|
907
|
+
"lb-in/rad": o * r * l,
|
|
908
|
+
"lb-in/deg°": o * r * l / (Math.PI / 180)
|
|
909
|
+
},
|
|
910
|
+
/* 114 */
|
|
911
|
+
"Flow Rate (Volume)": {
|
|
912
|
+
"m³/s": 1,
|
|
913
|
+
"m³/min": 1 / 60,
|
|
914
|
+
"m³/h": 1 / 3600,
|
|
915
|
+
"L/s": 1 / 1e3,
|
|
916
|
+
"L/min": 1 / 1e3 / 60,
|
|
917
|
+
"L/h": 1 / 1e3 / 3600,
|
|
918
|
+
"cm³/s": 1e-6,
|
|
919
|
+
"cm³/min": 1e-6 / 60,
|
|
920
|
+
"in³/s": Math.pow(l, 3),
|
|
921
|
+
"in³/min": Math.pow(l, 3) / 60,
|
|
922
|
+
"ft³/s": Math.pow(n, 3),
|
|
923
|
+
CFM: Math.pow(n, 3) / 60,
|
|
924
|
+
"CFM[ft³/min]": Math.pow(n, 3) / 60,
|
|
925
|
+
CFH: Math.pow(n, 3) / 3600,
|
|
926
|
+
"CFH[ft³/h]": Math.pow(n, 3) / 3600,
|
|
927
|
+
"yd³/min": Math.pow(n * 3, 3) / 60,
|
|
928
|
+
"yd³/h": Math.pow(n * 3, 3) / 3600,
|
|
929
|
+
"gpm(US)": p * Math.pow(l, 3) / 60,
|
|
930
|
+
"gph(US)": p * Math.pow(l, 3) / 3600,
|
|
931
|
+
"bushel(UK-imperial)/h": B * d / 1e3 / 3600,
|
|
932
|
+
"bushel(US)/h": _ * I * Math.pow(l, 3) / 3600
|
|
933
|
+
},
|
|
934
|
+
/* 115 */
|
|
935
|
+
"Flow Rate (Mass)": {
|
|
936
|
+
"kg/s": 1,
|
|
937
|
+
"kg/min": 1 / 60,
|
|
938
|
+
"kg/h": 1 / 3600,
|
|
939
|
+
"g/s": 1 / 1e3,
|
|
940
|
+
"g/min": 1 / 1e3 / 60,
|
|
941
|
+
"g/h": 1 / 1e3 / 3600,
|
|
942
|
+
"slug/s": T,
|
|
943
|
+
"slug/min": T / 60,
|
|
944
|
+
"slug/h": T / 3600,
|
|
945
|
+
"lbm/s": o,
|
|
946
|
+
"lbm/min": o / 60,
|
|
947
|
+
"lbm/h": o / 3600,
|
|
948
|
+
"oz/s": o / 16,
|
|
949
|
+
"oz/min": o / 16 / 60,
|
|
950
|
+
"oz/h": o / 16 / 3600,
|
|
951
|
+
"tonne/h": 1e3 / 3600,
|
|
952
|
+
"short ton/h": 2e3 * o / 3600,
|
|
953
|
+
"long ton/h": 2240 * o / 3600
|
|
954
|
+
},
|
|
955
|
+
/* 117 */
|
|
956
|
+
"Speed / Velocity (Linear)": {
|
|
957
|
+
"m/s": 1,
|
|
958
|
+
"mm/s": 1 / 1e3,
|
|
959
|
+
"km/s": 1,
|
|
960
|
+
"mm/min": 1 / 1e3 / 60,
|
|
961
|
+
"m/min": 1 / 60,
|
|
962
|
+
"km/min": 1e3 / 60,
|
|
963
|
+
"mm/h": 1 / 1e3 / 3600,
|
|
964
|
+
"m/h": 1 / 3600,
|
|
965
|
+
"km/h": 1e3 / 3600,
|
|
966
|
+
"in/s": l,
|
|
967
|
+
fps: n,
|
|
968
|
+
"fps[ft/second]": n,
|
|
969
|
+
fpm: n / 60,
|
|
970
|
+
// clear version
|
|
971
|
+
"fpm[ft/minute]": n / 60,
|
|
972
|
+
// redundant version
|
|
973
|
+
"mph[mile/h]": v * n / 3600,
|
|
974
|
+
"knot[kn, kt, or nautical mile/h]": W / 3600
|
|
975
|
+
},
|
|
976
|
+
/* 126 */
|
|
977
|
+
"Electrical Potential Difference (Voltage)": {
|
|
978
|
+
V: 1,
|
|
979
|
+
Volt: 1,
|
|
980
|
+
"joule/coulomb": 1,
|
|
981
|
+
"J/C": 1,
|
|
982
|
+
µV: 1 / 1e6,
|
|
983
|
+
mV: 1 / 1e3,
|
|
984
|
+
kV: 1e3,
|
|
985
|
+
MV: 1e6
|
|
986
|
+
}
|
|
987
|
+
}, k = (a) => {
|
|
988
|
+
if (console.log("getUnitCategory called with unit:", a), !a)
|
|
989
|
+
return console.warn("Unit is undefined or null"), "Custom";
|
|
990
|
+
for (const t in U)
|
|
991
|
+
if (U[t].includes(a))
|
|
992
|
+
return console.log(`Category found for unit ${a}:`, t), t;
|
|
993
|
+
return console.warn(`No category found for unit: ${a}`), "Custom";
|
|
994
|
+
}, u = (a, t, e, i) => {
|
|
995
|
+
if (t === "ft-in" && e !== "ft-in")
|
|
996
|
+
return Y(a, e);
|
|
997
|
+
if (t !== "ft-in" && e === "ft-in")
|
|
998
|
+
return X(a, t);
|
|
999
|
+
if (i !== "Temperature") {
|
|
1000
|
+
const s = M[i][t] / M[i][e];
|
|
1001
|
+
return a * s;
|
|
1002
|
+
} else {
|
|
1003
|
+
const s = M[i][t].c0, m = M[i][t].c1, c = M[i][e].c0, h = M[i][e].c1;
|
|
1004
|
+
return (a * s + m - h) / c;
|
|
1005
|
+
}
|
|
1006
|
+
}, O = (a, t) => {
|
|
1007
|
+
let e;
|
|
1008
|
+
if (Number.isInteger(a) ? e = a.toString() : e = a.toFixed(t).replace(/\.?0+$/, ""), Math.abs(parseFloat(e)) >= 1e3) {
|
|
1009
|
+
const i = e.split(".");
|
|
1010
|
+
i[0] = i[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), e = i.join(".");
|
|
1011
|
+
}
|
|
1012
|
+
return e;
|
|
1013
|
+
}, D = (a) => {
|
|
1014
|
+
const t = /(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/, e = /(\d+)\'/, i = /(\d+)/;
|
|
1015
|
+
let s = a.match(t);
|
|
1016
|
+
if (s) {
|
|
1017
|
+
const m = parseInt(s[1]) || 0, c = parseInt(s[3]) || 0, h = parseInt(s[5]) || 0, L = parseInt(s[6]) || 1;
|
|
1018
|
+
return H(m, c, h, L);
|
|
1019
|
+
}
|
|
1020
|
+
if (s = a.match(e), s) {
|
|
1021
|
+
const m = parseInt(s[1]) || 0;
|
|
1022
|
+
return H(m, 0, 0, 1);
|
|
1023
|
+
}
|
|
1024
|
+
if (s = a.match(i), s) {
|
|
1025
|
+
const m = parseInt(s[1]) || 0;
|
|
1026
|
+
return H(0, m, 0, 1);
|
|
1027
|
+
}
|
|
1028
|
+
return parseFloat(a);
|
|
1029
|
+
}, H = (a, t, e, i) => a * 12 + t + e / i, C = (a, t = '1/16"') => {
|
|
1030
|
+
if (a < 0)
|
|
1031
|
+
return `-${C(-a, t)}`;
|
|
1032
|
+
const e = parseInt(t.split("/")[1].replace('"', ""));
|
|
1033
|
+
let i = Math.floor(a / 12), s = Math.floor(a % 12);
|
|
1034
|
+
const m = a - Math.floor(a);
|
|
1035
|
+
let c = "";
|
|
1036
|
+
if (m > 0 && t !== 0) {
|
|
1037
|
+
let L = Math.round(m * e);
|
|
1038
|
+
const P = (x, S) => S ? P(S, x % S) : x, E = P(L, e);
|
|
1039
|
+
c = ` ${L / E}/${e / E}`, c.trim() === "1/1" && (s++, s >= 12 && (i++, s -= 12), c = "");
|
|
1040
|
+
}
|
|
1041
|
+
let h = "";
|
|
1042
|
+
return i > 0 && (h += `${i}'`), i > 0 && (s > 0 || c !== "") && (h += "-"), s > 0 && (h += `${s}`), c !== "" && (h += c), (s > 0 || c !== "") && (h += '"'), h.trim();
|
|
1043
|
+
}, Y = (a, t) => {
|
|
1044
|
+
const e = a * 0.0254;
|
|
1045
|
+
return u(e, "m", t, "Length");
|
|
1046
|
+
}, X = (a, t) => u(a, t, "m", "Length") / 0.0254;
|
|
1047
|
+
class J extends HTMLElement {
|
|
1048
|
+
constructor() {
|
|
1049
|
+
super(), this.attachShadow({ mode: "open" }), this.tooltipTimeout = null, this.unitCategory = "", this.e3dLogoUrl = "https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492", console.log("PhysicalQuantity constructor called");
|
|
1050
|
+
}
|
|
1051
|
+
connectedCallback() {
|
|
1052
|
+
console.log("connectedCallback called"), this.unit = this.getAttribute("unit"), console.log("Initial unit:", this.unit), this.updateUnitCategory(), this.inputValue = this.getAttribute("value"), console.log("Initial inputValue:", this.inputValue), this.value = this.parseValue(this.inputValue, this.unit), console.log("Parsed value:", this.value), this.decimalPlaces = parseInt(this.getAttribute("decimal-places")) || 2, this.showUnitArrow = !this.hasAttribute("show-unit-arrow") || this.getAttribute("show-unit-arrow") === "true", console.log("Initial state:", { unit: this.unit, value: this.value, unitCategory: this.unitCategory, decimalPlaces: this.decimalPlaces, showUnitArrow: this.showUnitArrow }), this.render(), this.attachEventListeners();
|
|
1053
|
+
}
|
|
1054
|
+
disconnectedCallback() {
|
|
1055
|
+
this.removeEventListeners();
|
|
1056
|
+
}
|
|
1057
|
+
static get observedAttributes() {
|
|
1058
|
+
return ["value", "unit", "decimal-places", "show-unit-arrow"];
|
|
1059
|
+
}
|
|
1060
|
+
attributeChangedCallback(t, e, i) {
|
|
1061
|
+
if (console.log(`attributeChangedCallback called: ${t}`, { oldValue: e, newValue: i }), t === "value")
|
|
1062
|
+
this.inputValue = i || "0", this.value = this.parseValue(this.inputValue, this.unit), console.log("New value parsed:", this.value);
|
|
1063
|
+
else if (t === "unit") {
|
|
1064
|
+
const s = this.unit, m = this.unitCategory;
|
|
1065
|
+
this.unit = i || "mm", this.updateUnitCategory(), s !== this.unit && (m === this.unitCategory ? (console.log("Converting value:", { from: s, to: this.unit, value: this.value, unitCategory: this.unitCategory }), this.value = u({
|
|
1066
|
+
value: this.value,
|
|
1067
|
+
fromUnit: s,
|
|
1068
|
+
toUnit: this.unit,
|
|
1069
|
+
unitCategory: this.unitCategory
|
|
1070
|
+
})) : console.log("Unit category changed, keeping original value"), console.log("New value:", this.value));
|
|
1071
|
+
} else
|
|
1072
|
+
t === "decimal-places" ? (this.decimalPlaces = parseInt(i) || 2, console.log("New decimal places:", this.decimalPlaces)) : t === "show-unit-arrow" && (this.showUnitArrow = i === null || i === "true", console.log("Show unit arrow:", this.showUnitArrow));
|
|
1073
|
+
this.render();
|
|
1074
|
+
}
|
|
1075
|
+
updateUnitCategory() {
|
|
1076
|
+
console.log("updateUnitCategory called with unit:", this.unit), this.unitCategory = k(this.unit), console.log("Updated unit category:", this.unitCategory);
|
|
1077
|
+
}
|
|
1078
|
+
parseValue(t, e) {
|
|
1079
|
+
if (console.log("parseValue called with:", { value: t, unit: e }), typeof t == "string" && t.trim() === "")
|
|
1080
|
+
return console.log("Empty string value, returning 0"), 0;
|
|
1081
|
+
const i = e === "ft-in" ? D(t) : parseFloat(t) || 0;
|
|
1082
|
+
return console.log("Parsed value:", i), i;
|
|
1083
|
+
}
|
|
1084
|
+
formatDisplayValue() {
|
|
1085
|
+
return this.unit === "ft-in" ? C(this.value) : O(this.value, this.decimalPlaces);
|
|
1086
|
+
}
|
|
1087
|
+
handleUnitChange(t) {
|
|
1088
|
+
if (t.target.tagName === "SELECT") {
|
|
1089
|
+
const e = t.target.value;
|
|
1090
|
+
console.log("handleUnitChange:", { from: this.unit, to: e, value: this.value, unitCategory: this.unitCategory }), this.value = u(this.value, this.unit, e, this.unitCategory), console.log("Converted value:", this.value), this.unit = e, this.updateUnitCategory(), this.render();
|
|
1091
|
+
}
|
|
1092
|
+
this.updateDropdownWidth();
|
|
1093
|
+
}
|
|
1094
|
+
render() {
|
|
1095
|
+
const t = this.formatDisplayValue();
|
|
1096
|
+
this.shadowRoot.innerHTML = `
|
|
1097
|
+
<style>
|
|
1098
|
+
:host {
|
|
1099
|
+
display: inline-flex;
|
|
1100
|
+
align-items: baseline;
|
|
1101
|
+
vertical-align: baseline;
|
|
1102
|
+
}
|
|
1103
|
+
.quantity {
|
|
1104
|
+
display: inline-flex;
|
|
1105
|
+
align-items: baseline;
|
|
1106
|
+
position: relative;
|
|
1107
|
+
}
|
|
1108
|
+
.value {
|
|
1109
|
+
margin-right: 2px;
|
|
1110
|
+
margin-left: 2px;
|
|
1111
|
+
position: relative;
|
|
1112
|
+
}
|
|
1113
|
+
.unit-container {
|
|
1114
|
+
position: relative;
|
|
1115
|
+
display: inline-flex;
|
|
1116
|
+
align-items: baseline;
|
|
1117
|
+
}
|
|
1118
|
+
.unit-container select {
|
|
1119
|
+
appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1120
|
+
-webkit-appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1121
|
+
-moz-appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1122
|
+
border-radius: 0.15em;
|
|
1123
|
+
border: none;
|
|
1124
|
+
margin: 0;
|
|
1125
|
+
padding: 0 0.1em 0 0.2em;
|
|
1126
|
+
color: blue;
|
|
1127
|
+
background-color: lightgray;
|
|
1128
|
+
font-family: inherit;
|
|
1129
|
+
font-size: 0.9em;
|
|
1130
|
+
line-height: normal;
|
|
1131
|
+
cursor: pointer;
|
|
1132
|
+
text-align: left;
|
|
1133
|
+
text-align-last: center;
|
|
1134
|
+
/* height: 1.1em; */
|
|
1135
|
+
vertical-align: baseline;
|
|
1136
|
+
min-width: 2.5em;
|
|
1137
|
+
}
|
|
1138
|
+
.unit-container select::-ms-expand {
|
|
1139
|
+
display: ${this.showUnitArrow ? "block" : "none"};
|
|
1140
|
+
}
|
|
1141
|
+
/* Custom arrow styles */
|
|
1142
|
+
/*
|
|
1143
|
+
.unit-container::after {
|
|
1144
|
+
content: '▼';
|
|
1145
|
+
font-size: 0.7em;
|
|
1146
|
+
color: red;
|
|
1147
|
+
position: absolute;
|
|
1148
|
+
right: 0.3em;
|
|
1149
|
+
top: 50%;
|
|
1150
|
+
transform: translateY(-50%);
|
|
1151
|
+
pointer-events: none;
|
|
1152
|
+
}
|
|
1153
|
+
*/
|
|
1154
|
+
.tooltip {
|
|
1155
|
+
position: absolute;
|
|
1156
|
+
bottom: 100%;
|
|
1157
|
+
left: 50%;
|
|
1158
|
+
transform: translateX(-50%);
|
|
1159
|
+
padding: 0;
|
|
1160
|
+
display: none;
|
|
1161
|
+
font-size: 12px;
|
|
1162
|
+
pointer-events: none;
|
|
1163
|
+
}
|
|
1164
|
+
.unit-container:hover .tooltip {
|
|
1165
|
+
display: block;
|
|
1166
|
+
}
|
|
1167
|
+
.tooltip a {
|
|
1168
|
+
text-decoration: none;
|
|
1169
|
+
color: blue;
|
|
1170
|
+
}
|
|
1171
|
+
.tooltip a:hover {
|
|
1172
|
+
text-decoration: underline;
|
|
1173
|
+
}
|
|
1174
|
+
</style>
|
|
1175
|
+
|
|
1176
|
+
<div class="quantity">
|
|
1177
|
+
<span class="value">${t}</span>
|
|
1178
|
+
<div class="unit-container">
|
|
1179
|
+
<select>
|
|
1180
|
+
${(U[this.unitCategory] || [this.unit]).map((e) => `<option value="${e}" ${e === this.unit ? "selected" : ""}>
|
|
1181
|
+
${e}</option>`).join("")}
|
|
1182
|
+
</select>
|
|
1183
|
+
|
|
1184
|
+
${this.showUnitArrow && this.unitCategory !== "Custom" ? `
|
|
1185
|
+
<a class="tooltip" href="https://v2-docs.donwen.com/daily-calculations/unit-converter.html"
|
|
1186
|
+
title="Unit Converter for All Categories" target="_blank">
|
|
1187
|
+
<img src="${this.e3dLogoUrl}" width="12" />
|
|
1188
|
+
</a>
|
|
1189
|
+
` : ""}
|
|
1190
|
+
|
|
1191
|
+
</div>
|
|
1192
|
+
</div>
|
|
1193
|
+
`, this.updateDropdownWidth();
|
|
1194
|
+
}
|
|
1195
|
+
updateDropdownWidth() {
|
|
1196
|
+
const t = this.shadowRoot.querySelector("select");
|
|
1197
|
+
if (!t)
|
|
1198
|
+
return;
|
|
1199
|
+
const e = document.createElement("span");
|
|
1200
|
+
e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.style.font = window.getComputedStyle(t).font, document.body.appendChild(e), e.textContent = this.unit;
|
|
1201
|
+
const i = e.offsetWidth;
|
|
1202
|
+
document.body.removeChild(e);
|
|
1203
|
+
const s = this.showUnitArrow ? 16 : 6, m = this.showUnitArrow ? 8 : 0;
|
|
1204
|
+
let h = i + s + m + 2;
|
|
1205
|
+
h = Math.max(h, 30), t.style.width = `${h}px`;
|
|
1206
|
+
}
|
|
1207
|
+
attachEventListeners() {
|
|
1208
|
+
this.shadowRoot.addEventListener("change", this.handleUnitChange.bind(this));
|
|
1209
|
+
const t = this.shadowRoot.querySelector(".unit-container");
|
|
1210
|
+
t && (t.addEventListener("mouseover", this.handleUnitContainerMouseOver.bind(this)), t.addEventListener("mouseout", this.handleUnitContainerMouseOut.bind(this)));
|
|
1211
|
+
}
|
|
1212
|
+
removeEventListeners() {
|
|
1213
|
+
this.shadowRoot.removeEventListener("change", this.handleUnitChange.bind(this));
|
|
1214
|
+
const t = this.shadowRoot.querySelector(".unit-container");
|
|
1215
|
+
t && (t.removeEventListener("mouseover", this.handleUnitContainerMouseOver.bind(this)), t.removeEventListener("mouseout", this.handleUnitContainerMouseOut.bind(this)));
|
|
1216
|
+
}
|
|
1217
|
+
handleUnitContainerMouseOver() {
|
|
1218
|
+
const t = this.shadowRoot.querySelector(".tooltip");
|
|
1219
|
+
t && (this.tooltipTimeout = setTimeout(() => {
|
|
1220
|
+
t.style.display = "block";
|
|
1221
|
+
}, 1e3));
|
|
1222
|
+
}
|
|
1223
|
+
handleUnitContainerMouseOut() {
|
|
1224
|
+
const t = this.shadowRoot.querySelector(".tooltip");
|
|
1225
|
+
t && (setTimeout(() => {
|
|
1226
|
+
t.style.display = "none";
|
|
1227
|
+
}, 2e3), clearTimeout(this.tooltipTimeout));
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
class Z extends HTMLElement {
|
|
1231
|
+
constructor() {
|
|
1232
|
+
super(), this.attachShadow({ mode: "open" }), this.values = [], this.unit = "", this.unitCategory = "", this.decimalPlaces = 2, this.showUnitArrow = !0;
|
|
1233
|
+
}
|
|
1234
|
+
connectedCallback() {
|
|
1235
|
+
this.unit = this.getAttribute("unit") || "cm", this.values = this.getAttribute("values").split(",").map(Number).map((t) => this.parseValue(t, this.unit)), this.unitCategory = k(this.unit), this.decimalPlaces = parseInt(this.getAttribute("decimal-places")) || 2, this.showUnitArrow = !this.hasAttribute("show-unit-arrow") || this.getAttribute("show-unit-arrow") === "true", this.render(), this.attachEventListeners();
|
|
1236
|
+
}
|
|
1237
|
+
static get observedAttributes() {
|
|
1238
|
+
return ["values", "unit", "decimal-places", "show-unit-arrow"];
|
|
1239
|
+
}
|
|
1240
|
+
attributeChangedCallback(t, e, i) {
|
|
1241
|
+
if (t === "values")
|
|
1242
|
+
this.values = i.split(",").map(Number).map((s) => this.parseValue(s, this.unit));
|
|
1243
|
+
else if (t === "unit") {
|
|
1244
|
+
const s = this.unit;
|
|
1245
|
+
this.unit = i, this.unitCategory = k(i), s !== i && (this.values = this.values.map((m) => u(m, s, i, this.unitCategory)));
|
|
1246
|
+
} else
|
|
1247
|
+
t === "decimal-places" ? this.decimalPlaces = parseInt(i) || 2 : t === "show-unit-arrow" && (this.showUnitArrow = i === null || i === "true");
|
|
1248
|
+
this.render();
|
|
1249
|
+
}
|
|
1250
|
+
render() {
|
|
1251
|
+
const t = this.values.map((e) => this.formatPairValue(e));
|
|
1252
|
+
this.shadowRoot.innerHTML = `
|
|
1253
|
+
<style>
|
|
1254
|
+
:host {
|
|
1255
|
+
display: inline-flex;
|
|
1256
|
+
align-items: baseline;
|
|
1257
|
+
vertical-align: baseline;
|
|
1258
|
+
}
|
|
1259
|
+
.quantity-pair {
|
|
1260
|
+
display: inline-flex;
|
|
1261
|
+
align-items: baseline;
|
|
1262
|
+
position: relative;
|
|
1263
|
+
}
|
|
1264
|
+
.values {
|
|
1265
|
+
margin-right: 2px;
|
|
1266
|
+
margin-left: 2px;
|
|
1267
|
+
position: relative;
|
|
1268
|
+
}
|
|
1269
|
+
.unit-container {
|
|
1270
|
+
position: relative;
|
|
1271
|
+
display: inline-flex;
|
|
1272
|
+
align-items: baseline;
|
|
1273
|
+
}
|
|
1274
|
+
.unit-container select {
|
|
1275
|
+
appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1276
|
+
-webkit-appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1277
|
+
-moz-appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1278
|
+
border-radius: 0.15em;
|
|
1279
|
+
border: none;
|
|
1280
|
+
margin: 0;
|
|
1281
|
+
padding: 0 0.1em 0 0.2em;
|
|
1282
|
+
color: blue;
|
|
1283
|
+
background-color: lightgray;
|
|
1284
|
+
font-family: inherit;
|
|
1285
|
+
font-size: 0.9em;
|
|
1286
|
+
line-height: normal;
|
|
1287
|
+
cursor: pointer;
|
|
1288
|
+
text-align: left;
|
|
1289
|
+
text-align-last: center;
|
|
1290
|
+
vertical-align: baseline;
|
|
1291
|
+
min-width: 2.5em;
|
|
1292
|
+
}
|
|
1293
|
+
</style>
|
|
1294
|
+
|
|
1295
|
+
<div class="quantity-pair">
|
|
1296
|
+
<span class="values">(${t.join(", ")})</span>
|
|
1297
|
+
<div class="unit-container">
|
|
1298
|
+
<select>
|
|
1299
|
+
${(U[this.unitCategory] || [this.unit]).map((e) => `<option value="${e}" ${e === this.unit ? "selected" : ""}>
|
|
1300
|
+
${e}</option>`).join("")}
|
|
1301
|
+
</select>
|
|
1302
|
+
</div>
|
|
1303
|
+
</div>
|
|
1304
|
+
`, this.updateDropdownWidth();
|
|
1305
|
+
}
|
|
1306
|
+
updateDropdownWidth() {
|
|
1307
|
+
const t = this.shadowRoot.querySelector("select");
|
|
1308
|
+
if (!t)
|
|
1309
|
+
return;
|
|
1310
|
+
const e = document.createElement("span");
|
|
1311
|
+
e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.style.font = window.getComputedStyle(t).font, document.body.appendChild(e), e.textContent = this.unit;
|
|
1312
|
+
const i = e.offsetWidth;
|
|
1313
|
+
document.body.removeChild(e);
|
|
1314
|
+
const s = this.showUnitArrow ? 16 : 6, m = this.showUnitArrow ? 8 : 0;
|
|
1315
|
+
let h = i + s + m + 2;
|
|
1316
|
+
h = Math.max(h, 30), t.style.width = `${h}px`;
|
|
1317
|
+
}
|
|
1318
|
+
attachEventListeners() {
|
|
1319
|
+
this.shadowRoot.addEventListener("change", this.handleUnitChange.bind(this));
|
|
1320
|
+
}
|
|
1321
|
+
parseValue(t, e) {
|
|
1322
|
+
return e === "ft-in" ? D(t) : parseFloat(t);
|
|
1323
|
+
}
|
|
1324
|
+
formatPairValue(t) {
|
|
1325
|
+
return this.unit === "ft-in" ? C(t) : O(t, this.decimalPlaces);
|
|
1326
|
+
}
|
|
1327
|
+
handleUnitChange(t) {
|
|
1328
|
+
if (t.target.tagName === "SELECT") {
|
|
1329
|
+
const e = t.target.value;
|
|
1330
|
+
this.values = this.values.map((i) => u(i, this.unit, e, this.unitCategory)), this.unit = e, this.render();
|
|
1331
|
+
}
|
|
1332
|
+
this.updateDropdownWidth();
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
class tt extends HTMLElement {
|
|
1336
|
+
constructor() {
|
|
1337
|
+
super(), this.attachShadow({ mode: "open" }), this.values = [], this.unit = "", this.unitCategory = "", this.decimalPlaces = 2, this.showUnitArrow = !0, this.format = "", this.hasParentheses = !1;
|
|
1338
|
+
}
|
|
1339
|
+
connectedCallback() {
|
|
1340
|
+
this.unit = this.getAttribute("unit") || "cm", this.parseTripletValues(this.getAttribute("values")), this.unitCategory = k(this.unit), this.decimalPlaces = parseInt(this.getAttribute("decimal-places")) || 2, this.showUnitArrow = !this.hasAttribute("show-unit-arrow") || this.getAttribute("show-unit-arrow") === "true", this.render(), this.attachEventListeners();
|
|
1341
|
+
}
|
|
1342
|
+
static get observedAttributes() {
|
|
1343
|
+
return ["values", "unit", "decimal-places", "show-unit-arrow"];
|
|
1344
|
+
}
|
|
1345
|
+
attributeChangedCallback(t, e, i) {
|
|
1346
|
+
if (t === "values")
|
|
1347
|
+
this.parseTripletValues(i);
|
|
1348
|
+
else if (t === "unit") {
|
|
1349
|
+
const s = this.unit;
|
|
1350
|
+
this.unit = i, this.unitCategory = k(i), s !== i && (this.values = this.values.map((m) => u(m, s, i, this.unitCategory)));
|
|
1351
|
+
} else
|
|
1352
|
+
t === "decimal-places" ? this.decimalPlaces = parseInt(i) || 2 : t === "show-unit-arrow" && (this.showUnitArrow = i === null || i === "true");
|
|
1353
|
+
this.render();
|
|
1354
|
+
}
|
|
1355
|
+
parseValue(t, e) {
|
|
1356
|
+
return e === "ft-in" ? D(t) : parseFloat(t);
|
|
1357
|
+
}
|
|
1358
|
+
parseTripletValues(t) {
|
|
1359
|
+
this.format = "", this.hasParentheses = t.startsWith("(") && t.endsWith(")"), this.hasParentheses && (t = t.slice(1, -1)), t.includes("x") ? (this.values = t.split("x").map((e) => this.parseValue(e, this.unit)), this.format = "x") : t.includes(",") ? (this.values = t.split(",").map((e) => e.trim()).map((e) => this.parseValue(e, this.unit)), this.format = "comma") : (this.values = t.split(/\s+/).map((e) => this.parseValue(e, this.unit)), this.format = "space");
|
|
1360
|
+
}
|
|
1361
|
+
formatTripletValue(t) {
|
|
1362
|
+
return this.unit === "ft-in" ? C(t) : O(t, this.decimalPlaces);
|
|
1363
|
+
}
|
|
1364
|
+
formatTriplet(t) {
|
|
1365
|
+
let e = "";
|
|
1366
|
+
const i = t.map((s) => this.formatTripletValue(s));
|
|
1367
|
+
return this.format === "x" ? e = `${i[0]} <span class="unit-text">${this.unit}</span> x ${i[1]} <span class="unit-text">${this.unit}</span> x ${i[2]}` : this.format === "comma" ? e = i.join(", ") : e = i.join(" "), e;
|
|
1368
|
+
}
|
|
1369
|
+
render() {
|
|
1370
|
+
const t = this.formatTriplet(this.values);
|
|
1371
|
+
this.shadowRoot.innerHTML = `
|
|
1372
|
+
<style>
|
|
1373
|
+
:host {
|
|
1374
|
+
display: inline-flex;
|
|
1375
|
+
align-items: baseline;
|
|
1376
|
+
vertical-align: baseline;
|
|
1377
|
+
}
|
|
1378
|
+
.quantity-triplet {
|
|
1379
|
+
display: inline-flex;
|
|
1380
|
+
align-items: baseline;
|
|
1381
|
+
position: relative;
|
|
1382
|
+
}
|
|
1383
|
+
.values {
|
|
1384
|
+
margin-right: 2px;
|
|
1385
|
+
position: relative;
|
|
1386
|
+
}
|
|
1387
|
+
.unit-text,
|
|
1388
|
+
.unit-container,
|
|
1389
|
+
.unit-container select {
|
|
1390
|
+
color: blue;
|
|
1391
|
+
background-color: lightgray;
|
|
1392
|
+
font-family: inherit;
|
|
1393
|
+
font-size: 0.9em;
|
|
1394
|
+
line-height: normal;
|
|
1395
|
+
border-radius: 0.15em;
|
|
1396
|
+
padding: 0 0.2em;
|
|
1397
|
+
}
|
|
1398
|
+
.unit-container {
|
|
1399
|
+
position: relative;
|
|
1400
|
+
display: inline-flex;
|
|
1401
|
+
align-items: baseline;
|
|
1402
|
+
}
|
|
1403
|
+
.unit-container select {
|
|
1404
|
+
appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1405
|
+
-webkit-appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1406
|
+
-moz-appearance: ${this.showUnitArrow ? "auto" : "none"};
|
|
1407
|
+
border: none;
|
|
1408
|
+
margin: 0;
|
|
1409
|
+
cursor: pointer;
|
|
1410
|
+
text-align: left;
|
|
1411
|
+
text-align-last: center;
|
|
1412
|
+
min-width: 2.5em;
|
|
1413
|
+
}
|
|
1414
|
+
</style>
|
|
1415
|
+
|
|
1416
|
+
<span class="quantity-triplet">
|
|
1417
|
+
${this.hasParentheses ? "(" : ""}
|
|
1418
|
+
<span class="values">${t}</span>
|
|
1419
|
+
${this.hasParentheses && this.format !== "x" ? ")" : ""}
|
|
1420
|
+
<div class="unit-container">
|
|
1421
|
+
<select>
|
|
1422
|
+
${(U[this.unitCategory] || [this.unit]).map((e) => `<option value="${e}" ${e === this.unit ? "selected" : ""}>
|
|
1423
|
+
${e}</option>`).join("")}
|
|
1424
|
+
</select>
|
|
1425
|
+
</div>
|
|
1426
|
+
${this.hasParentheses && this.format === "x" ? ")" : ""}
|
|
1427
|
+
</span>
|
|
1428
|
+
`, this.updateDropdownWidth();
|
|
1429
|
+
}
|
|
1430
|
+
updateDropdownWidth() {
|
|
1431
|
+
const t = this.shadowRoot.querySelector("select");
|
|
1432
|
+
if (!t)
|
|
1433
|
+
return;
|
|
1434
|
+
const e = document.createElement("span");
|
|
1435
|
+
e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.style.font = window.getComputedStyle(t).font, document.body.appendChild(e), e.textContent = this.unit;
|
|
1436
|
+
const i = e.offsetWidth;
|
|
1437
|
+
document.body.removeChild(e);
|
|
1438
|
+
const s = this.showUnitArrow ? 16 : 6, m = this.showUnitArrow ? 8 : 0;
|
|
1439
|
+
let h = i + s + m + 2;
|
|
1440
|
+
h = Math.max(h, 30), t.style.width = `${h}px`;
|
|
1441
|
+
}
|
|
1442
|
+
attachEventListeners() {
|
|
1443
|
+
this.shadowRoot.addEventListener("change", this.handleUnitChange.bind(this));
|
|
1444
|
+
}
|
|
1445
|
+
handleUnitChange(t) {
|
|
1446
|
+
if (t.target.tagName === "SELECT") {
|
|
1447
|
+
const e = t.target.value;
|
|
1448
|
+
this.values = this.values.map((i) => u(i, this.unit, e, this.unitCategory)), this.unit = e, this.render();
|
|
1449
|
+
}
|
|
1450
|
+
this.updateDropdownWidth();
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
class et extends HTMLElement {
|
|
1454
|
+
constructor() {
|
|
1455
|
+
super(), this.attachShadow({ mode: "open" }), this.count = 0;
|
|
1456
|
+
}
|
|
1457
|
+
connectedCallback() {
|
|
1458
|
+
this.render(), this.attachEventListeners();
|
|
1459
|
+
}
|
|
1460
|
+
render() {
|
|
1461
|
+
this.shadowRoot.innerHTML = `
|
|
1462
|
+
<style>
|
|
1463
|
+
:host {
|
|
1464
|
+
display: inline-block;
|
|
1465
|
+
font-family: Arial, sans-serif;
|
|
1466
|
+
}
|
|
1467
|
+
.counter {
|
|
1468
|
+
display: flex;
|
|
1469
|
+
align-items: center;
|
|
1470
|
+
gap: 10px;
|
|
1471
|
+
padding: 10px;
|
|
1472
|
+
border: 1px solid #ccc;
|
|
1473
|
+
border-radius: 5px;
|
|
1474
|
+
}
|
|
1475
|
+
button {
|
|
1476
|
+
font-size: 16px;
|
|
1477
|
+
background-color: blue;
|
|
1478
|
+
color: red;
|
|
1479
|
+
padding: 5px 10px;
|
|
1480
|
+
cursor: pointer;
|
|
1481
|
+
}
|
|
1482
|
+
.count {
|
|
1483
|
+
font-size: 18px;
|
|
1484
|
+
font-weight: bold;
|
|
1485
|
+
}
|
|
1486
|
+
</style>
|
|
1487
|
+
<div class="counter">
|
|
1488
|
+
<button class="decrement">-</button>
|
|
1489
|
+
<span class="count">${this.count}</span>
|
|
1490
|
+
<button class="increment">+</button>
|
|
1491
|
+
</div>
|
|
1492
|
+
`;
|
|
1493
|
+
}
|
|
1494
|
+
attachEventListeners() {
|
|
1495
|
+
const t = this.shadowRoot.querySelector(".increment"), e = this.shadowRoot.querySelector(".decrement");
|
|
1496
|
+
t.addEventListener("click", () => this.increment()), e.addEventListener("click", () => this.decrement());
|
|
1497
|
+
}
|
|
1498
|
+
increment() {
|
|
1499
|
+
this.count++, this.updateCount();
|
|
1500
|
+
}
|
|
1501
|
+
decrement() {
|
|
1502
|
+
this.count--, this.updateCount();
|
|
1503
|
+
}
|
|
1504
|
+
updateCount() {
|
|
1505
|
+
const t = this.shadowRoot.querySelector(".count");
|
|
1506
|
+
t.textContent = this.count;
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
const A = (a, t) => {
|
|
1510
|
+
typeof window < "u" && !customElements.get(a) && customElements.define(a, t);
|
|
1511
|
+
};
|
|
1512
|
+
A("physical-quantity", J);
|
|
1513
|
+
A("uc-qty", class extends J {
|
|
1514
|
+
});
|
|
1515
|
+
A("uc-qty-pair", Z);
|
|
1516
|
+
A("uc-qty-triplet", tt);
|
|
1517
|
+
A("new-component-1", et);
|
|
1518
|
+
export {
|
|
1519
|
+
et as NewComponent1,
|
|
1520
|
+
J as PhysicalQuantity,
|
|
1521
|
+
Z as UcQtyPair,
|
|
1522
|
+
tt as UcQtyTriplet
|
|
1523
|
+
};
|