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.umd.js
CHANGED
|
@@ -1 +1,238 @@
|
|
|
1
|
-
function _0x5de6(){const _0xe3149=['ft/min²','dyn⋅cm²/g²','kWh/m³','km/kWh','ton(US/short)','$1T','deg°','h[hour]','J/L','7856AZAejk','m³/h','click','mSv','MM\x20Btu/km','fluid\x20ounce(US-liquid)','g⋅cm²','g/min','attributeChangedCallback','cm²','GJ/kg','kg·m/s','slug/h','cWb','pint(US-liquid)','kilo-calorie(IT)','lbm','kg/L','Sv[sievert]','getUnitCategory\x20called\x20with\x20unit:','MBd','CFH','\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','CFH[ft³/h]','formatTriplet','eV[electron-volt]','L/km','Initial\x20state:','gal(UK-imperial)','J/(kg·°K)','GHz','MBq','petabyte','textContent','MM\x20Btu/100mile','bushel(US)/h','visibility','round','144DcPVNy','kJ/minute','lm/sr','1/hour','ft³/s','mile/gal(UK-imperial)','pint(UK-imperial)','lm/ft²',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','SELECT','J[Joule]','MJ/m³','function','MJ/h','mpg(US)','Btu/gal(US)','1/min','display','slice','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22values\x22>','kcal(IT)/kg','removeEventListener','Ci[curie]','UcQtyTriplet','cm³/min','Category\x20found\x20for\x20unit\x20','m\x20W.C./m','mm/s','mmol','lb-ft/minute','lbm/in³','pint(US-dry)','.unit-container','kgf','cal(IT)/L','\x20<span\x20class=\x22unit-text\x22>','ft²/s','ft²/min','mGy','atm','tonne','tagName','873568ilWuDN','mebibit','Wh/kg','PI[Pa·s]','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','auto','kg/h','tebibyte','abs','L/rev','L/100km','F[farad]','addEventListener','bit','lbm/in²','Wb/m²','1/°F','endsWith','joule/coulomb','deg°/min²','kip[kilo\x20pound]','m³/min','removeChild','createElement','whiteSpace','kSv','body','Length','1988163aDPzGP','Btu','Converted\x20value:','yd²','kg/s','Updated\x20unit\x20category:','calorie(IT)','toString','true','count','\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>','calorie(TH)/second','Wb[weber]','psi/ft','uc-qty-triplet','MM\x20Btu/lbm','km/h','nWb',';\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','parseValue','H[henry]','654093KyXFyg','g/cm³','MJ/km','1/s','style','decimal-places','mbar','gal(UK-imperial)/mile','show-unit-arrow','bit/s','Ampere[amp]','Btu/(lbm·°F)','414VYhohO','\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','kg/m²','getAttribute','MPGe','phot','lm[lumen]','showUnitArrow','trim','km³','block','Wh/m³','Parsed\x20value:','acre','\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','terabyte','Volt','lumen/m²','\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','floor','g/mm³','lux','querySelector','Rd[rutherford]','mm\x20HG','TNT\x20Equivalent[kiloton]','bind','gpm(US)','font','10XHarsF','observedAttributes','kNm','kibibit/s','split','g/cm²','mile/gal(US-liquid)','in²/min','m³/m','$1M','gal(UK-imperial)/100mile','yd³/h','startsWith','mAh','lb-ft/second','mile/MM\x20Btu','attachEventListeners','petabit','kcal(IT)/m³','disconnectedCallback','</option>','fps[ft/second]','J/g','Btu/h','mouseover','innerHTML','Custom','handleUnitContainerMouseOut','ft³','unit','CFM','lbm/min','pebibit/s','oz/in²','C[coulomb]','kkat','in/s','target',';\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>','S[siemens]','bar/m','mpg(UK)','unitCategory','hectare','hasParentheses',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','nano[nm]','BTU/(h⋅in⋅°F)','parseTripletValues','in²/s','cm²/min','formatDisplayValue','New\x20value\x20parsed:','position','L/100mile','select','km²','formatTripletValue','\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','km/s','gal(US-liquid)','ft³/rev','cm³','slug/s','Module','in³/rev','mm²','value','gal(US-liquid)/100mile','mile/kWh','shadowRoot','oz/s','cSt[mm²/s]','N⋅mm/rad','.count','mm/s²','mebibyte','cup(Imperial)','mm³','m³/rad','mile','mkat','revolution','Wh/L','m\x20W.C.','render','BTU/(h⋅ft⋅°F)','replace','attachShadow','MM\x20Btu/100km','long\x20ton/h','176946WwqYiV','Newton-second','day','attributeChangedCallback\x20called:\x20','lb-in','Gy[gray]','\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','handleUnitContainerMouseOver','tonne/m²','rev/s','in⁴','match','offsetWidth','ksi/ft','uc-qty-pair','kilo-calorie(IT)/hour','fluid\x20ounce(UK-imperial)','kJ/L','amd','.tooltip','mTorr/m','removeEventListeners','gal(US-liquid)/rev','oz/min','MM\x20Btu','psi','lbf','mm/min','getComputedStyle','$1B','m/min','tebibit/s','m/h','Temperature','kWh/100km','ampere-hour','m³/kg/s²','kWh/mile','L/s','updateDropdownWidth','gigabit/s','rpm[rev/min]','\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/min','change','esu/s','µm³','MPa/km','m/min²','HP\x20Hour/ft³','6pSsZhn','</span>\x20x\x20','lb-ft','cal(TH)/L','max','New\x20value:','.decrement','°Ra','mph[mile/h]','kibibit','oz⋅in²','deg°/min','warn','hidden','St[cm²/s]','kWh/kg','psf','megabit','m²/hr','span','MJ/100mile','µSv','cp[candlepower(before\x201948)]','new-component-1','MM\x20Btu/ft³','minute','mm\x20HG/m','gigabit','5095ygpaxu','exports','</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','absolute','megabit/s','ksi[kip/in²]','GW[Gigawatt]','bushel(UK-imperial)/h','lbm/yd²','kilo-calorie(TH)/hour','\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','atm/m','Mkat','in³/min','mm²/min','kPa/m','e3dLogoUrl','uc-qty','thou[mil,\x20or\x20thousandth\x20of\x20an\x20inch]','fpm[ft/minute]','kGy','toStringTag','bushel(US-dry)','Btu/ft³','calorie(IT)/second','Stoke','kWh/100mile','ft⁴','New\x20decimal\x20places:','J/kg','km/MJ','m²/s','rad','mWb','hasAttribute','kat[katal]','mm²/hr','cm²/hr','mHz','handleUnitChange','radian','\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','kg⋅m²','sr[steradian]','lumen/ft²','cal(IT)/g','J/(kg·°C)','L/h','inputValue','lb/ft','cd[candela]','knot[kn,\x20kt,\x20or\x20nautical\x20mile/h]','gibibit/s','calorie(TH)/minute','handleUnitChange:','updateUnitCategory\x20called\x20with\x20unit:','slug','kN/m','m/s²','join','<option\x20value=\x22','pebibyte','lb-ft/deg°','ft²/hr','terabit/s','m²/min','decimalPlaces','Wh/g','kmol','J/(g·°C)','lbm·fps','MJ/100km','gal(US-liquid)/mile','deg°/h','lm/m²','lb·s','in\x20W.C./100\x20ft','kg/m/s','cal(TH)/g','mouseout','in²/hr','m/J','kilobyte','MJ/mile','none','updateCount','1/1','tonne/h','toFixed','1/16\x22','values','MM\x20Btu/h','mile/MJ','\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','1211xIEvSM','m³/s','km/L','km/min','N⋅m/deg°','m³/rev','lb/in','Bq[becquerel]','J/(g·°K)','selected','W/(cm⋅°K)','cm³/s','oz/yd²','oz/ft²','deg°/s²','P[Poise]','lb-in/rad','J/h','psf/in','decrement','tooltipTimeout','m²/m²','GPa','fps','appendChild','1/°K','g/h','updateUnitCategory','width','bushel(UK-imperial)','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','N/mm','gal(US-dry)','includes','NewComponent1','lbm/s','CFM[ft³/min]','log','mile²','</span>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','L/mile','MM\x20Btu/mile','nowrap','cup(Metric)','faraday','rad/min²','Initial\x20unit:','kilobit','isInteger','1/°Ra','N·s','kilobit/s','kilo-calorie(TH)','map','connectedCallback','object','mm\x20W.C./m','mm⁴','open','N⋅m/rad','kip-in','format','rad/h','µWb','kg/m³','T[tesla]','kJ/kg','terabit','in\x20W.C.','short\x20ton/h','lbm·fpm','calorie(IT)/minute','pow','Wh/km','space','ft-in','rad/min','209634SwAARD','deg°/s','petabit/s','increment','MHz'];_0x5de6=function(){return _0xe3149;};return _0x5de6();}function _0x5d85(_0x3d423a,_0x41558b){const _0x5de682=_0x5de6();return _0x5d85=function(_0x5d85da,_0xc77af){_0x5d85da=_0x5d85da-0x134;let _0x5b4577=_0x5de682[_0x5d85da];return _0x5b4577;},_0x5d85(_0x3d423a,_0x41558b);}(function(_0x424422,_0x5c89a4){const _0x54e31b=_0x5d85,_0x39bc8b=_0x424422();while(!![]){try{const _0x678371=-parseInt(_0x54e31b(0x181))/0x1+parseInt(_0x54e31b(0x1b3))/0x2*(-parseInt(_0x54e31b(0x27a))/0x3)+-parseInt(_0x54e31b(0x2d8))/0x4+parseInt(_0x54e31b(0x1cf))/0x5*(parseInt(_0x54e31b(0x315))/0x6)+-parseInt(_0x54e31b(0x22d))/0x7*(-parseInt(_0x54e31b(0x288))/0x8)+-parseInt(_0x54e31b(0x2f4))/0x9*(parseInt(_0x54e31b(0x332))/0xa)+parseInt(_0x54e31b(0x309))/0xb*(parseInt(_0x54e31b(0x2ae))/0xc);if(_0x678371===_0x5c89a4)break;else _0x39bc8b['push'](_0x39bc8b['shift']());}catch(_0x57ca56){_0x39bc8b['push'](_0x39bc8b['shift']());}}}(_0x5de6,0x1f382),function(_0x254190,_0x402bf0){const _0x227378=_0x5d85;typeof exports==_0x227378(0x264)&&typeof module<'u'?_0x402bf0(exports):typeof define==_0x227378(0x2ba)&&define[_0x227378(0x193)]?define([_0x227378(0x1d0)],_0x402bf0):(_0x254190=typeof globalThis<'u'?globalThis:_0x254190||self,_0x402bf0(_0x254190['PQWebComponents']={}));}(this,function(_0xf6999e){'use strict';const _0x2126b1=_0x5d85;const _0x5131fc=0.45359237,_0x235055=9.80665,_0x4518a3=0x14a0,_0x461671=25.4/0x3e8,_0x55365c=0xc*_0x461671,_0x2c1e66=0x73c,_0x201bc0=0x42*0x294,_0x233689=4.54609,_0x5bebdc=0xe7,_0x1cbc36=268.8025,_0x4e7a91=0x1/0x8,_0x5b6c48=0x1/0x14,_0x57a15b=0x1/0x10,_0x2f2ebd=0x8,_0x57cbbb=0x8,_0x61dd63=0x1/0x10,_0x14a502=0xf0,_0x2ba204=0xfa,_0x4b5cd7=0xa,_0x989f6c=14.59390294,_0x101a00=1055.05585262,_0x19d099=4.1868,_0x8cd4f3=4.184,_0x4e82d8=0x226*_0x5131fc*_0x235055*_0x55365c,_0x1d7301=0x18bcd,_0x194ad4=0x1/0x2f8,_0x488eef=133.322387415,_0x44c798=0x569e4c0a22d73800,_0x354789={'Length':['m',_0x2126b1(0x154),'µm','micron','mm','cm','dm','km','in','ft-in',_0x2126b1(0x1e1),'ft','yd',_0x2126b1(0x176),'NM[M,\x20nmi,\x20or\x20nautical\x20mile]'],'Mass':['kg','g','mg','µg','oz',_0x2126b1(0x298),_0x2126b1(0x207),_0x2126b1(0x283),'ton(UK-Imperial/long)',_0x2126b1(0x2d6)],'Time':['s[second]','s',_0x2126b1(0x1cc),'h',_0x2126b1(0x286),_0x2126b1(0x183),'week'],'ElectricalCurrent':['A',_0x2126b1(0x313),'mA','µA','kA','MA',_0x2126b1(0x1ae)],'Temperature':['°K','°C','°F',_0x2126b1(0x1ba)],'Amount\x20of\x20Substance':['mol',_0x2126b1(0x2ca),_0x2126b1(0x213)],'Luminous\x20Intensity':[_0x2126b1(0x201),_0x2126b1(0x2b0),'cp[candlepower]',_0x2126b1(0x1c9)],'Acceleration':[_0x2126b1(0x209),_0x2126b1(0x1b1),_0x2126b1(0x171),'ft/s²',_0x2126b1(0x27f),'in/s²'],'Gravitational\x20Constant':[_0x2126b1(0x1a5),'N⋅m²/kg²',_0x2126b1(0x280)],'Velocity\x20(Angular)':['rad/s',_0x2126b1(0x279),_0x2126b1(0x26b),_0x2126b1(0x27b),_0x2126b1(0x1be),_0x2126b1(0x218),_0x2126b1(0x1aa),_0x2126b1(0x18a)],'Acceleration\x20(Angular)':['rad/s²',_0x2126b1(0x25a),_0x2126b1(0x23b),_0x2126b1(0x2eb)],'Illuminance':[_0x2126b1(0x32a),_0x2126b1(0x326),_0x2126b1(0x219),'meter-candle',_0x2126b1(0x31a),'foot-candle','fc',_0x2126b1(0x1fb),_0x2126b1(0x2b5)],'Frequency':['Hz','1/s',_0x2126b1(0x2be),'rpm',_0x2126b1(0x2b1),_0x2126b1(0x1f5),'kHz',_0x2126b1(0x27e),_0x2126b1(0x2a6)],'Area':['m²','µm²',_0x2126b1(0x168),_0x2126b1(0x291),_0x2126b1(0x15e),_0x2126b1(0x151),'in²','ft²',_0x2126b1(0x2f7),_0x2126b1(0x322),_0x2126b1(0x253)],'Volume\x20/\x20Section\x20Modulus':['m³',_0x2126b1(0x1af),_0x2126b1(0x174),_0x2126b1(0x164),'L','mL',_0x2126b1(0x31e),'in³',_0x2126b1(0x142),'yd³',_0x2126b1(0x2a4),_0x2126b1(0x162),_0x2126b1(0x24d),_0x2126b1(0x2b4),_0x2126b1(0x296),_0x2126b1(0x2cd),_0x2126b1(0x191),_0x2126b1(0x28d),_0x2126b1(0x24a),_0x2126b1(0x1e5),'cup(US-liquid)','cup(Legal)',_0x2126b1(0x258),_0x2126b1(0x173)],'Polar\x20Moment\x20of\x20Inertia':['m⁴',_0x2126b1(0x266),'cm⁴',_0x2126b1(0x18b),_0x2126b1(0x1ea)],'Moment\x20of\x20Inertia':[_0x2126b1(0x1f9),_0x2126b1(0x28e),'g⋅mm²','lbm⋅ft²','lbm⋅in²',_0x2126b1(0x1bd)],'Force':['N','kN','MN',_0x2126b1(0x2cf),'lb',_0x2126b1(0x19b),_0x2126b1(0x2ec)],'Angle':[_0x2126b1(0x1f7),_0x2126b1(0x1ef),_0x2126b1(0x285),_0x2126b1(0x178)],'Solid\x20Angle':[_0x2126b1(0x1fa),_0x2126b1(0x242)],'BMI-Body\x20Mass\x20Index/Ballistic\x20Coefficient':[_0x2126b1(0x317),_0x2126b1(0x337),'g/mm²',_0x2126b1(0x189),_0x2126b1(0x1d7),'lbm/ft²',_0x2126b1(0x2e6),_0x2126b1(0x239),_0x2126b1(0x23a),_0x2126b1(0x147)],'Density':[_0x2126b1(0x26d),_0x2126b1(0x299),_0x2126b1(0x30a),_0x2126b1(0x329),'lbm/ft³',_0x2126b1(0x2cc)],'Energy':[_0x2126b1(0x2b8),'kJ','MJ','GJ',_0x2126b1(0x32e),_0x2126b1(0x2f5),_0x2126b1(0x199),_0x2126b1(0x2fa),_0x2126b1(0x297),'calorie(TH)',_0x2126b1(0x261),'HP\x20Hour','Wh','kWh',_0x2126b1(0x2a1)],'Power':['W[watt]','kW','MW',_0x2126b1(0x1d5),_0x2126b1(0x13d),'Btu/minute',_0x2126b1(0x22a),_0x2126b1(0x1e7),_0x2126b1(0x274),_0x2126b1(0x190),_0x2126b1(0x2ff),_0x2126b1(0x204),_0x2126b1(0x1d8),_0x2126b1(0x134),_0x2126b1(0x2cb),'HP','J/second','J/minute',_0x2126b1(0x23e),_0x2126b1(0x2bb),_0x2126b1(0x2af)],'Torque,\x20Moment\x20of\x20Force':['Nm',_0x2126b1(0x334),_0x2126b1(0x185),_0x2126b1(0x269),_0x2126b1(0x1b5),'oz-in','oz-ft'],'Pressure/Stress':['Pa','kPa','MPa',_0x2126b1(0x243),'bar',_0x2126b1(0x30f),_0x2126b1(0x2d5),_0x2126b1(0x32d),'cm\x20HG','in\x20HG','mm\x20W.C.',_0x2126b1(0x17a),_0x2126b1(0x271),_0x2126b1(0x1c3),_0x2126b1(0x19a),'ksi',_0x2126b1(0x1d4)],'Pressure\x20Drop\x20per\x20Unit\x20Length':['Pa/m','Pascal/m',_0x2126b1(0x1de),_0x2126b1(0x1b0),_0x2126b1(0x14e),'mbar/mm',_0x2126b1(0x1da),_0x2126b1(0x1cd),'in\x20HG/ft',_0x2126b1(0x265),_0x2126b1(0x2c8),'in\x20W.C./ft',_0x2126b1(0x21b),_0x2126b1(0x23f),_0x2126b1(0x301),_0x2126b1(0x18e),'Torr/ft',_0x2126b1(0x195)],'Uniformly\x20Distributed\x20(Uniform\x20Line)\x20Load\x20|\x20Stiffness\x20of\x20Linear\x20Spring':['N/m',_0x2126b1(0x24c),_0x2126b1(0x208),_0x2126b1(0x200),'kips/ft',_0x2126b1(0x233)],'Stiffness\x20of\x20Rotary\x20Spring':[_0x2126b1(0x268),_0x2126b1(0x231),_0x2126b1(0x16f),'N⋅mm/deg°','lb-ft/rad',_0x2126b1(0x20d),_0x2126b1(0x23d),'lb-in/deg°'],'Flow\x20Rate\x20(Volume)':[_0x2126b1(0x22e),_0x2126b1(0x2ed),_0x2126b1(0x289),_0x2126b1(0x1a7),_0x2126b1(0x1ac),_0x2126b1(0x1fe),_0x2126b1(0x238),_0x2126b1(0x2c6),'in³/s',_0x2126b1(0x1dc),_0x2126b1(0x2b2),_0x2126b1(0x144),_0x2126b1(0x251),_0x2126b1(0x29d),_0x2126b1(0x29f),'yd³/min',_0x2126b1(0x33d),_0x2126b1(0x330),'gph(US)',_0x2126b1(0x1d6),_0x2126b1(0x2ab)],'Flow\x20Rate\x20(Mass)':[_0x2126b1(0x2f8),'kg/min',_0x2126b1(0x2de),'g/s',_0x2126b1(0x28f),_0x2126b1(0x247),_0x2126b1(0x165),'slug/min',_0x2126b1(0x294),_0x2126b1(0x250),_0x2126b1(0x145),'lbm/h',_0x2126b1(0x16d),_0x2126b1(0x198),'oz/h',_0x2126b1(0x226),_0x2126b1(0x272),_0x2126b1(0x180)],'Speed\x20/\x20Velocity\x20(Linear)':['m/s',_0x2126b1(0x2c9),_0x2126b1(0x161),_0x2126b1(0x19c),_0x2126b1(0x19f),_0x2126b1(0x230),'mm/h',_0x2126b1(0x1a1),_0x2126b1(0x304),_0x2126b1(0x14a),_0x2126b1(0x244),_0x2126b1(0x13b),'fpm',_0x2126b1(0x1e2),_0x2126b1(0x1bb),_0x2126b1(0x202)],'Fuel\x20Heat\x20Value\x20(Volume)':['J/m³',_0x2126b1(0x287),_0x2126b1(0x192),'kJ/m³',_0x2126b1(0x2b9),'GJ/m³',_0x2126b1(0x2d0),_0x2126b1(0x138),_0x2126b1(0x1b6),'kcal(TH)/m³',_0x2126b1(0x179),_0x2126b1(0x320),_0x2126b1(0x281),_0x2126b1(0x1b2),_0x2126b1(0x2bd),_0x2126b1(0x1e6),_0x2126b1(0x1cb)],'Fuel\x20Heat\x20Value\x20(Mass)':[_0x2126b1(0x1ec),_0x2126b1(0x13c),_0x2126b1(0x26f),'MJ/kg',_0x2126b1(0x292),_0x2126b1(0x1fc),_0x2126b1(0x2c2),_0x2126b1(0x21d),'kcal(TH)/kg',_0x2126b1(0x212),_0x2126b1(0x2da),_0x2126b1(0x1c2),'HP\x20Hour/lbm','Btu/lbm',_0x2126b1(0x303),'Btu/ton(short)'],'Mass\x20Heat\x20Capacity':[_0x2126b1(0x2a5),_0x2126b1(0x1fd),_0x2126b1(0x235),_0x2126b1(0x214),_0x2126b1(0x314)],'Viscosity\x20-\x20Absolute/Dynamic(μ)':[_0x2126b1(0x2db),'N·s/m²',_0x2126b1(0x21c),_0x2126b1(0x23c),'cP','lb·s/ft²','lbm/ft/s'],'Viscosity\x20-\x20Kinematic':[_0x2126b1(0x1ee),_0x2126b1(0x210),_0x2126b1(0x1c5),_0x2126b1(0x1c1),_0x2126b1(0x1e8),_0x2126b1(0x158),_0x2126b1(0x1f4),_0x2126b1(0x16e),_0x2126b1(0x1dd),_0x2126b1(0x1f3),_0x2126b1(0x2d2),_0x2126b1(0x2d3),_0x2126b1(0x20e),_0x2126b1(0x157),_0x2126b1(0x339),_0x2126b1(0x21f)],'Linear\x20Thermal\x20Expansion\x20Coefficient':[_0x2126b1(0x246),'1/°C',_0x2126b1(0x2e8),_0x2126b1(0x25e)],'Thermal\x20Conductivity':['W/(m⋅°K)',_0x2126b1(0x237),_0x2126b1(0x17c),_0x2126b1(0x155)],'Electrical\x20Charge':[_0x2126b1(0x148),'Ah',_0x2126b1(0x1a4),_0x2126b1(0x33f),'e[electron]',_0x2126b1(0x259)],'Electrical\x20Potential\x20Difference\x20(Voltage)':['V',_0x2126b1(0x325),_0x2126b1(0x2ea),'J/C','µV','mV','kV','MV'],'Electrical\x20Resistance(Impedance)':['Ω[Ohm]','µΩ','mΩ','kΩ','MΩ'],'Electrical\x20Capacitance':[_0x2126b1(0x2e3),'pF','nF','µF','mF'],'Electrical\x20Inductance':[_0x2126b1(0x308),'µH','mH'],'Electrical\x20Conductance':[_0x2126b1(0x14d),'℧','µS','mS','kS'],'Magnetic\x20Flux':[_0x2126b1(0x300),_0x2126b1(0x305),_0x2126b1(0x26c),_0x2126b1(0x1f0),_0x2126b1(0x295),'dWb'],'Luminous\x20Flux':[_0x2126b1(0x31b),'cd⋅sr'],'Magnetic\x20Flux\x20Density':[_0x2126b1(0x26e),_0x2126b1(0x2e7),'µT','G','mT'],'Katalytic\x20Activity':[_0x2126b1(0x1f2),'mol/s','µkat',_0x2126b1(0x177),_0x2126b1(0x149),_0x2126b1(0x1db)],'Radioactivity':[_0x2126b1(0x234),_0x2126b1(0x30c),'µBq','mBq','kBq',_0x2126b1(0x2a7),_0x2126b1(0x32c),_0x2126b1(0x2c4)],'Absorbed\x20Dose\x20of\x20Ionizing\x20Radiation':[_0x2126b1(0x186),_0x2126b1(0x1ec),'µGy',_0x2126b1(0x2d4),_0x2126b1(0x1e3),'MGy'],'Equivalent\x20Dose\x20of\x20Ionizing\x20Radiation':[_0x2126b1(0x29a),'J/kg',_0x2126b1(0x1c8),_0x2126b1(0x28b),_0x2126b1(0x2f1),'MSv'],'Volumetric\x20Displacement':[_0x2126b1(0x175),_0x2126b1(0x232),_0x2126b1(0x2e1),'cc/rev',_0x2126b1(0x163),_0x2126b1(0x167),_0x2126b1(0x197)],'Fuel\x20Economy':[_0x2126b1(0x22f),_0x2126b1(0x2bc),_0x2126b1(0x338),_0x2126b1(0x14f),_0x2126b1(0x2b3),'mile/L'],'Fuel\x20Consumption':[_0x2126b1(0x33a),_0x2126b1(0x2a2),_0x2126b1(0x2e2),_0x2126b1(0x255),_0x2126b1(0x15c),_0x2126b1(0x217),_0x2126b1(0x16a),_0x2126b1(0x310),_0x2126b1(0x33c)],'New\x20Energy\x20Economy\x20(MPGe)':[_0x2126b1(0x220),_0x2126b1(0x282),_0x2126b1(0x1ed),_0x2126b1(0x319),_0x2126b1(0x22b),_0x2126b1(0x16b),_0x2126b1(0x135)],'New\x20Energy\x20Consumption':['J/m',_0x2126b1(0x276),'Wh/mile','kWh/km',_0x2126b1(0x1a3),_0x2126b1(0x1a6),_0x2126b1(0x1e9),_0x2126b1(0x30b),_0x2126b1(0x216),_0x2126b1(0x222),_0x2126b1(0x1c7),_0x2126b1(0x28c),_0x2126b1(0x17f),_0x2126b1(0x256),_0x2126b1(0x2aa)],'Baud\x20Rate':[_0x2126b1(0x312),'Bd','kBd',_0x2126b1(0x29c),'GBd'],'Currency':['$','¢','$1K',_0x2126b1(0x33b),_0x2126b1(0x19e),_0x2126b1(0x284)],'Impulse\x20/\x20Momentum':[_0x2126b1(0x25f),_0x2126b1(0x182),_0x2126b1(0x21a),_0x2126b1(0x293),_0x2126b1(0x215),_0x2126b1(0x273)],'Digital\x20Storage':[_0x2126b1(0x2e5),_0x2126b1(0x25c),_0x2126b1(0x1bc),_0x2126b1(0x1c4),_0x2126b1(0x2d9),_0x2126b1(0x1ce),'gibibit',_0x2126b1(0x270),'tebibit',_0x2126b1(0x137),'pebibit','byte',_0x2126b1(0x221),'kibibyte','megabyte',_0x2126b1(0x172),'gigabyte','gibibyte',_0x2126b1(0x324),_0x2126b1(0x2df),_0x2126b1(0x2a8),_0x2126b1(0x20c)],'Data\x20Transfer\x20Rate':[_0x2126b1(0x312),_0x2126b1(0x260),_0x2126b1(0x335),_0x2126b1(0x1d3),'mebibit/s',_0x2126b1(0x1a9),_0x2126b1(0x203),_0x2126b1(0x20f),_0x2126b1(0x1a0),_0x2126b1(0x27c),_0x2126b1(0x146)]},_0x701828={'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':_0x461671,'thou[mil,\x20or\x20thousandth\x20of\x20an\x20inch]':_0x461671/0x3e8,'ft-in':_0x461671,'ft':_0x55365c,'yd':0x3*_0x55365c,'mile':_0x4518a3*_0x55365c,'NM[M,\x20nmi,\x20or\x20nautical\x20mile]':_0x2c1e66},'Mass':{'kg':0x1,'g':0.001,'mg':0x1/0xf4240,'µg':0x1/0x3b9aca00,'oz':0x1/0x10*_0x5131fc,'lbm':_0x5131fc,'slug':_0x989f6c,'ton(US/short)':0x7d0*_0x5131fc,'ton(UK-Imperial/long)':0x8c0*_0x5131fc,'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²':_0x55365c,'ft/min²':_0x55365c/0xe10,'in/s²':_0x461671},'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[_0x2126b1(0x275)](_0x55365c,0x2),'fc':0x1/Math[_0x2126b1(0x275)](_0x55365c,0x2),'lumen/ft²':0x1/Math[_0x2126b1(0x275)](_0x55365c,0x2),'lm/ft²':0x1/Math[_0x2126b1(0x275)](_0x55365c,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[_0x2126b1(0x275)](0x1/0xf4240,0x2),'mm²':Math[_0x2126b1(0x275)](0x1/0x3e8,0x2),'cm²':Math[_0x2126b1(0x275)](0x1/0x64,0x2),'km²':0xf4240,'hectare':Math[_0x2126b1(0x275)](0x64,0x2),'in²':Math['pow'](_0x461671,0x2),'ft²':Math[_0x2126b1(0x275)](_0x55365c,0x2),'yd²':Math[_0x2126b1(0x275)](_0x55365c*0x3,0x2),'acre':_0x201bc0*Math[_0x2126b1(0x275)](_0x55365c,0x2),'mile²':Math['pow'](_0x4518a3*_0x55365c,0x2)},'Volume\x20/\x20Section\x20Modulus':{'m³':0x1,'µm³':Math[_0x2126b1(0x275)](0x1/0xf4240,0x3),'mm³':Math[_0x2126b1(0x275)](0x1/0x3e8,0x3),'cm³':Math[_0x2126b1(0x275)](0x1/0x64,0x3),'L':0x1/0x3e8,'mL':0x1/0xf4240,'km³':Math[_0x2126b1(0x275)](0x3e8,0x3),'in³':Math[_0x2126b1(0x275)](_0x461671,0x3),'ft³':Math[_0x2126b1(0x275)](_0x55365c,0x3),'yd³':Math[_0x2126b1(0x275)](_0x55365c*0x3,0x3),'gal(UK-imperial)':_0x233689*0x1/0x3e8,'gal(US-liquid)':_0x5bebdc*Math[_0x2126b1(0x275)](_0x461671,0x3),'gal(US-dry)':_0x1cbc36*Math[_0x2126b1(0x275)](_0x461671,0x3),'pint(UK-imperial)':_0x4e7a91*_0x233689*0x1/0x3e8,'pint(US-liquid)':_0x4e7a91*_0x5bebdc*Math[_0x2126b1(0x275)](_0x461671,0x3),'pint(US-dry)':_0x4e7a91*_0x1cbc36*Math['pow'](_0x461671,0x3),'fluid\x20ounce(UK-imperial)':_0x5b6c48*_0x4e7a91*_0x233689/0x3e8,'fluid\x20ounce(US-liquid)':_0x57a15b*_0x4e7a91*_0x5bebdc*Math[_0x2126b1(0x275)](_0x461671,0x3),'bushel(UK-imperial)':_0x2f2ebd*_0x233689/0x3e8,'bushel(US-dry)':_0x57cbbb*_0x1cbc36*Math[_0x2126b1(0x275)](_0x461671,0x3),'cup(US-liquid)':_0x61dd63*_0x5bebdc*Math[_0x2126b1(0x275)](_0x461671,0x3),'cup(Legal)':_0x14a502*Math[_0x2126b1(0x275)](0.01,0x3),'cup(Metric)':_0x2ba204*Math[_0x2126b1(0x275)](0.01,0x3),'cup(Imperial)':_0x4b5cd7*_0x5b6c48*_0x4e7a91*_0x233689/0x3e8},'Polar\x20Moment\x20of\x20Inertia':{'m⁴':0x1,'mm⁴':1e-12,'cm⁴':1e-8,'in⁴':Math[_0x2126b1(0x275)](_0x461671,0x4),'ft⁴':Math[_0x2126b1(0x275)](_0x55365c,0x4)},'Moment\x20of\x20Inertia':{'kg⋅m²':0x1,'g⋅cm²':0x1/(0x3e8*0x2710),'g⋅mm²':0x1/(0x3e8*0xf4240),'lbm⋅ft²':_0x5131fc*Math[_0x2126b1(0x275)](_0x55365c,0x2),'lbm⋅in²':_0x5131fc*Math[_0x2126b1(0x275)](_0x461671,0x2),'oz⋅in²':_0x5131fc/0x10*Math['pow'](_0x461671,0x2)},'Force':{'N':0x1,'kN':0x3e8,'MN':0xf4240,'kgf':_0x235055,'lb':_0x5131fc*_0x235055,'lbf':_0x5131fc*_0x235055,'kip[kilo\x20pound]':0x3e8*_0x5131fc*_0x235055},'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[_0x2126b1(0x275)](0.01,0x2),'g/mm²':0x1/0x3e8/Math[_0x2126b1(0x275)](0.001,0x2),'tonne/m²':0x3e8,'lbm/yd²':_0x5131fc/Math[_0x2126b1(0x275)](_0x55365c*0x3,0x2),'lbm/ft²':_0x5131fc/Math[_0x2126b1(0x275)](_0x55365c,0x2),'lbm/in²':_0x5131fc/Math[_0x2126b1(0x275)](_0x461671,0x2),'oz/yd²':_0x5131fc/0x10/Math[_0x2126b1(0x275)](0x3*_0x55365c,0x2),'oz/ft²':_0x5131fc/0x10/Math[_0x2126b1(0x275)](_0x55365c,0x2),'oz/in²':_0x5131fc/0x10/Math['pow'](_0x461671,0x2)},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x2126b1(0x275)](0.01,0x3),'g/mm³':0x1/0x3e8/Math['pow'](0.001,0x3),'lbm/ft³':_0x5131fc/Math[_0x2126b1(0x275)](_0x55365c,0x3),'lbm/in³':_0x5131fc/Math[_0x2126b1(0x275)](_0x461671,0x3)},'Energy':{'J[Joule]':0x1,'kJ':0x3e8,'MJ':0xf4240,'GJ':0x3b9aca00,'TNT\x20Equivalent[kiloton]':0x3b9aca00*_0x8cd4f3,'Btu':_0x101a00,'MM\x20Btu':_0x101a00*0xf4240,'calorie(IT)':_0x19d099,'kilo-calorie(IT)':_0x19d099*0x3e8,'calorie(TH)':_0x8cd4f3,'kilo-calorie(TH)':_0x8cd4f3*0x3e8,'HP\x20Hour':_0x4e82d8*0xe10,'Wh':0xe10,'kWh':0xe10*0x3e8,'eV{electron-volt]':0x1/_0x44c798},'Power':{'W[watt]':0x1,'kW':0x3e8,'MW':0xf4240,'GW[Gigawatt]':0x3b9aca00,'Btu/h':_0x101a00/0xe10,'Btu/minute':_0x101a00/0x3c,'MM\x20Btu/h':_0x101a00*0xf4240/0xe10,'calorie(IT)/second':_0x19d099,'calorie(IT)/minute':_0x19d099/0x3c,'kilo-calorie(IT)/hour':_0x19d099*0x3e8/0xe10,'calorie(TH)/second':_0x8cd4f3,'calorie(TH)/minute':_0x8cd4f3/0x3c,'kilo-calorie(TH)/hour':_0x8cd4f3*0x3e8/0xe10,'lb-ft/second':_0x5131fc*_0x235055*_0x55365c,'lb-ft/minute':_0x5131fc*_0x235055*_0x55365c/0x3c,'HP':_0x4e82d8,'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':_0x5131fc*_0x235055*_0x461671,'kip-in':0x3e8*_0x5131fc*_0x235055*_0x461671,'lb-ft':_0x5131fc*_0x235055*_0x55365c,'oz-in':_0x5131fc/0x10*_0x235055*_0x461671,'oz-ft':_0x5131fc/0x10*_0x235055*_0x55365c},'Pressure/Stress':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0x1d7301,'mm\x20HG':_0x488eef,'cm\x20HG':_0x488eef*0xa,'in\x20HG':_0x488eef*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*_0x235055,'m\x20W.C.':0x1*0x3e8*_0x235055,'in\x20W.C.':_0x461671*0x3e8*_0x235055,'psf':_0x5131fc*_0x235055/Math[_0x2126b1(0x275)](_0x55365c,0x2),'psi':_0x5131fc*_0x235055/Math['pow'](_0x461671,0x2),'ksi':_0x5131fc*_0x235055/Math['pow'](_0x461671,0x2)*0x3e8,'ksi{kip/in²]':_0x5131fc*_0x235055/Math['pow'](_0x461671,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':_0x1d7301,'mm\x20HG/m':_0x488eef,'in\x20HG/ft':_0x488eef*25.4/_0x55365c,'mm\x20W.C./m':0x1/0x3e8*0x3e8*_0x235055,'m\x20W.C./m':0x3e8*_0x235055,'in\x20W.C./ft':_0x461671*0x3e8*_0x235055/_0x55365c,'in\x20W.C./100\x20ft':_0x461671*0x3e8*_0x235055/_0x55365c/0x64,'psf/in':_0x5131fc*_0x235055/Math[_0x2126b1(0x275)](_0x55365c,0x2)/_0x461671,'psi/ft':_0x5131fc*_0x235055/Math[_0x2126b1(0x275)](_0x55365c,0x2)/_0x55365c,'ksi/ft':_0x5131fc*_0x235055/Math[_0x2126b1(0x275)](_0x55365c,0x2)/_0x55365c*0x3e8,'Torr/ft':_0x194ad4*_0x1d7301/_0x55365c,'mTorr/m':_0x194ad4*_0x1d7301/0x3e8},'Uniformly\x20Distributed\x20(Uniform\x20Line)\x20Load\x20|\x20Stiffness\x20of\x20Linear\x20Spring':{'N/m':0x1,'N/mm':0x3e8,'kN/m':0x3e8,'lb/ft':_0x5131fc*_0x235055/_0x55365c,'kips/ft':0x3e8*_0x5131fc*_0x235055/_0x55365c,'lb/in':_0x5131fc*_0x235055/_0x461671},'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':_0x5131fc*_0x235055*_0x55365c,'lb-ft/deg°':_0x5131fc*_0x235055*_0x55365c/(Math['PI']/0xb4),'lb-in/rad':_0x5131fc*_0x235055*_0x461671,'lb-in/deg°':_0x5131fc*_0x235055*_0x461671/(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[_0x2126b1(0x275)](_0x461671,0x3),'in³/min':Math[_0x2126b1(0x275)](_0x461671,0x3)/0x3c,'ft³/s':Math[_0x2126b1(0x275)](_0x55365c,0x3),'CFM':Math[_0x2126b1(0x275)](_0x55365c,0x3)/0x3c,'CFM[ft³/min]':Math['pow'](_0x55365c,0x3)/0x3c,'CFH':Math[_0x2126b1(0x275)](_0x55365c,0x3)/0xe10,'CFH[ft³/h]':Math['pow'](_0x55365c,0x3)/0xe10,'yd³/min':Math[_0x2126b1(0x275)](_0x55365c*0x3,0x3)/0x3c,'yd³/h':Math['pow'](_0x55365c*0x3,0x3)/0xe10,'gpm(US)':_0x5bebdc*Math[_0x2126b1(0x275)](_0x461671,0x3)/0x3c,'gph(US)':_0x5bebdc*Math[_0x2126b1(0x275)](_0x461671,0x3)/0xe10,'bushel(UK-imperial)/h':_0x2f2ebd*_0x233689/0x3e8/0xe10,'bushel(US)/h':_0x57cbbb*_0x1cbc36*Math[_0x2126b1(0x275)](_0x461671,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':_0x989f6c,'slug/min':_0x989f6c/0x3c,'slug/h':_0x989f6c/0xe10,'lbm/s':_0x5131fc,'lbm/min':_0x5131fc/0x3c,'lbm/h':_0x5131fc/0xe10,'oz/s':_0x5131fc/0x10,'oz/min':_0x5131fc/0x10/0x3c,'oz/h':_0x5131fc/0x10/0xe10,'tonne/h':0x3e8/0xe10,'short\x20ton/h':0x7d0*_0x5131fc/0xe10,'long\x20ton/h':0x8c0*_0x5131fc/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':_0x461671,'fps':_0x55365c,'fps[ft/second]':_0x55365c,'fpm':_0x55365c/0x3c,'fpm[ft/minute]':_0x55365c/0x3c,'mph[mile/h]':_0x4518a3*_0x55365c/0xe10,'knot[kn,\x20kt,\x20or\x20nautical\x20mile/h]':_0x2c1e66/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}},_0x5ac8be=_0x2dff1e=>{const _0x4e14a9=_0x2126b1;if(console[_0x4e14a9(0x252)](_0x4e14a9(0x29b),_0x2dff1e),!_0x2dff1e)return console[_0x4e14a9(0x1bf)]('Unit\x20is\x20undefined\x20or\x20null'),_0x4e14a9(0x140);for(const _0x2c2c49 in _0x354789)if(_0x354789[_0x2c2c49][_0x4e14a9(0x24e)](_0x2dff1e))return console[_0x4e14a9(0x252)](_0x4e14a9(0x2c7)+_0x2dff1e+':',_0x2c2c49),_0x2c2c49;return console[_0x4e14a9(0x1bf)]('No\x20category\x20found\x20for\x20unit:\x20'+_0x2dff1e),_0x4e14a9(0x140);},_0x531533=(_0x3f7cc5,_0x32a3fc,_0x24bbaf,_0x39c9eb)=>{const _0x20ed1c=_0x2126b1;if(_0x32a3fc===_0x20ed1c(0x278)&&_0x24bbaf!=='ft-in')return _0xf28915(_0x3f7cc5,_0x24bbaf);if(_0x32a3fc!==_0x20ed1c(0x278)&&_0x24bbaf===_0x20ed1c(0x278))return _0x30c882(_0x3f7cc5,_0x32a3fc);if(_0x39c9eb!==_0x20ed1c(0x1a2)){const _0x1e5aae=_0x701828[_0x39c9eb][_0x32a3fc]/_0x701828[_0x39c9eb][_0x24bbaf];return _0x3f7cc5*_0x1e5aae;}else{const _0x56bc80=_0x701828[_0x39c9eb][_0x32a3fc]['c0'],_0x2b4e0f=_0x701828[_0x39c9eb][_0x32a3fc]['c1'],_0x7800f4=_0x701828[_0x39c9eb][_0x24bbaf]['c0'],_0x13fc59=_0x701828[_0x39c9eb][_0x24bbaf]['c1'];return(_0x3f7cc5*_0x56bc80+_0x2b4e0f-_0x13fc59)/_0x7800f4;}},_0x4af02d=(_0x4f76bc,_0x4bdcc3)=>{const _0x144d1c=_0x2126b1;let _0x4c0a6f;if(Number[_0x144d1c(0x25d)](_0x4f76bc)?_0x4c0a6f=_0x4f76bc[_0x144d1c(0x2fb)]():_0x4c0a6f=_0x4f76bc[_0x144d1c(0x227)](_0x4bdcc3)[_0x144d1c(0x17d)](/\.?0+$/,''),Math[_0x144d1c(0x2e0)](parseFloat(_0x4c0a6f))>=0x3e8){const _0x3c249d=_0x4c0a6f['split']('.');_0x3c249d[0x0]=_0x3c249d[0x0][_0x144d1c(0x17d)](/\B(?=(\d{3})+(?!\d))/g,','),_0x4c0a6f=_0x3c249d['join']('.');}return _0x4c0a6f;},_0x5f43f4=_0x28decc=>{const _0x1ee8f8=_0x2126b1,_0x500b95=/(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/,_0x35d8ad=/(\d+)\'/,_0x406b0c=/(\d+)/;let _0x4c96e4=_0x28decc[_0x1ee8f8(0x18c)](_0x500b95);if(_0x4c96e4){const _0x2131ee=parseInt(_0x4c96e4[0x1])||0x0,_0x5b8aab=parseInt(_0x4c96e4[0x3])||0x0,_0x4fae63=parseInt(_0x4c96e4[0x5])||0x0,_0x43d89e=parseInt(_0x4c96e4[0x6])||0x1;return _0x27c2be(_0x2131ee,_0x5b8aab,_0x4fae63,_0x43d89e);}if(_0x4c96e4=_0x28decc[_0x1ee8f8(0x18c)](_0x35d8ad),_0x4c96e4){const _0x44f20c=parseInt(_0x4c96e4[0x1])||0x0;return _0x27c2be(_0x44f20c,0x0,0x0,0x1);}if(_0x4c96e4=_0x28decc[_0x1ee8f8(0x18c)](_0x406b0c),_0x4c96e4){const _0x1b596f=parseInt(_0x4c96e4[0x1])||0x0;return _0x27c2be(0x0,_0x1b596f,0x0,0x1);}return parseFloat(_0x28decc);},_0x27c2be=(_0x2ab4bf,_0x1bd534,_0x3f6fc1,_0x33eb63)=>_0x2ab4bf*0xc+_0x1bd534+_0x3f6fc1/_0x33eb63,_0x5e3ca6=(_0x435bcb,_0x223847=_0x2126b1(0x228))=>{const _0xba1caa=_0x2126b1;if(_0x435bcb<0x0)return'-'+_0x5e3ca6(-_0x435bcb,_0x223847);const _0x5b3202=parseInt(_0x223847[_0xba1caa(0x336)]('/')[0x1]['replace']('\x22',''));let _0x5009b6=Math[_0xba1caa(0x328)](_0x435bcb/0xc),_0x15ba40=Math[_0xba1caa(0x328)](_0x435bcb%0xc);const _0x2a3ad4=_0x435bcb-Math[_0xba1caa(0x328)](_0x435bcb);let _0x2f749c='';if(_0x2a3ad4>0x0&&_0x223847!==0x0){let _0x767e5d=Math[_0xba1caa(0x2ad)](_0x2a3ad4*_0x5b3202);const _0x5d0cb4=(_0x2f1c2a,_0x2b6f7d)=>_0x2b6f7d?_0x5d0cb4(_0x2b6f7d,_0x2f1c2a%_0x2b6f7d):_0x2f1c2a,_0x4378d2=_0x5d0cb4(_0x767e5d,_0x5b3202);_0x2f749c='\x20'+_0x767e5d/_0x4378d2+'/'+_0x5b3202/_0x4378d2,_0x2f749c[_0xba1caa(0x31d)]()===_0xba1caa(0x225)&&(_0x15ba40++,_0x15ba40>=0xc&&(_0x5009b6++,_0x15ba40-=0xc),_0x2f749c='');}let _0x323de1='';return _0x5009b6>0x0&&(_0x323de1+=_0x5009b6+'\x27'),_0x5009b6>0x0&&(_0x15ba40>0x0||_0x2f749c!=='')&&(_0x323de1+='-'),_0x15ba40>0x0&&(_0x323de1+=''+_0x15ba40),_0x2f749c!==''&&(_0x323de1+=_0x2f749c),(_0x15ba40>0x0||_0x2f749c!=='')&&(_0x323de1+='\x22'),_0x323de1[_0xba1caa(0x31d)]();},_0xf28915=(_0x5a2800,_0xdbe28d)=>{const _0x59ee47=_0x2126b1,_0x34e613=_0x5a2800*0.0254;return _0x531533(_0x34e613,'m',_0xdbe28d,_0x59ee47(0x2f3));},_0x30c882=(_0x40950c,_0x378486)=>_0x531533(_0x40950c,_0x378486,'m',_0x2126b1(0x2f3))/0.0254;class _0x2a50c8 extends HTMLElement{constructor(){const _0x930fab=_0x2126b1;super(),this[_0x930fab(0x17e)]({'mode':_0x930fab(0x267)}),this[_0x930fab(0x241)]=null,this[_0x930fab(0x150)]='',this[_0x930fab(0x1df)]=_0x930fab(0x24b),console[_0x930fab(0x252)]('PhysicalQuantity\x20constructor\x20called');}[_0x2126b1(0x263)](){const _0x548d77=_0x2126b1;console['log']('connectedCallback\x20called'),this['unit']=this[_0x548d77(0x318)](_0x548d77(0x143)),console[_0x548d77(0x252)](_0x548d77(0x25b),this[_0x548d77(0x143)]),this[_0x548d77(0x248)](),this['inputValue']=this['getAttribute'](_0x548d77(0x169)),console['log']('Initial\x20inputValue:',this[_0x548d77(0x1ff)]),this[_0x548d77(0x169)]=this[_0x548d77(0x307)](this['inputValue'],this['unit']),console[_0x548d77(0x252)](_0x548d77(0x321),this[_0x548d77(0x169)]),this[_0x548d77(0x211)]=parseInt(this['getAttribute'](_0x548d77(0x30e)))||0x2,this[_0x548d77(0x31c)]=!this['hasAttribute']('show-unit-arrow')||this[_0x548d77(0x318)]('show-unit-arrow')===_0x548d77(0x2fc),console[_0x548d77(0x252)](_0x548d77(0x2a3),{'unit':this[_0x548d77(0x143)],'value':this[_0x548d77(0x169)],'unitCategory':this[_0x548d77(0x150)],'decimalPlaces':this[_0x548d77(0x211)],'showUnitArrow':this[_0x548d77(0x31c)]}),this[_0x548d77(0x17b)](),this[_0x548d77(0x136)]();}[_0x2126b1(0x139)](){const _0x42cc19=_0x2126b1;this[_0x42cc19(0x196)]();}static get[_0x2126b1(0x333)](){const _0x5a8269=_0x2126b1;return[_0x5a8269(0x169),_0x5a8269(0x143),'decimal-places',_0x5a8269(0x311)];}['attributeChangedCallback'](_0x532b0,_0xa5226c,_0x4ddcfd){const _0x2adbef=_0x2126b1;if(console['log'](_0x2adbef(0x184)+_0x532b0,{'oldValue':_0xa5226c,'newValue':_0x4ddcfd}),_0x532b0===_0x2adbef(0x169))this[_0x2adbef(0x1ff)]=_0x4ddcfd||'0',this['value']=this[_0x2adbef(0x307)](this[_0x2adbef(0x1ff)],this[_0x2adbef(0x143)]),console[_0x2adbef(0x252)](_0x2adbef(0x15a),this[_0x2adbef(0x169)]);else{if(_0x532b0==='unit'){const _0x1405ac=this['unit'],_0x552740=this[_0x2adbef(0x150)];this[_0x2adbef(0x143)]=_0x4ddcfd||'mm',this[_0x2adbef(0x248)](),_0x1405ac!==this[_0x2adbef(0x143)]&&(_0x552740===this[_0x2adbef(0x150)]?(console[_0x2adbef(0x252)]('Converting\x20value:',{'from':_0x1405ac,'to':this['unit'],'value':this[_0x2adbef(0x169)],'unitCategory':this[_0x2adbef(0x150)]}),this[_0x2adbef(0x169)]=_0x531533({'value':this[_0x2adbef(0x169)],'fromUnit':_0x1405ac,'toUnit':this[_0x2adbef(0x143)],'unitCategory':this[_0x2adbef(0x150)]})):console['log']('Unit\x20category\x20changed,\x20keeping\x20original\x20value'),console[_0x2adbef(0x252)](_0x2adbef(0x1b8),this[_0x2adbef(0x169)]));}else _0x532b0==='decimal-places'?(this['decimalPlaces']=parseInt(_0x4ddcfd)||0x2,console[_0x2adbef(0x252)](_0x2adbef(0x1eb),this['decimalPlaces'])):_0x532b0===_0x2adbef(0x311)&&(this['showUnitArrow']=_0x4ddcfd===null||_0x4ddcfd===_0x2adbef(0x2fc),console[_0x2adbef(0x252)]('Show\x20unit\x20arrow:',this['showUnitArrow']));}this['render']();}[_0x2126b1(0x248)](){const _0x56dfc7=_0x2126b1;console[_0x56dfc7(0x252)](_0x56dfc7(0x206),this['unit']),this[_0x56dfc7(0x150)]=_0x5ac8be(this[_0x56dfc7(0x143)]),console['log'](_0x56dfc7(0x2f9),this[_0x56dfc7(0x150)]);}[_0x2126b1(0x307)](_0x4b60a9,_0x24a86a){const _0x2f8757=_0x2126b1;if(console[_0x2f8757(0x252)]('parseValue\x20called\x20with:',{'value':_0x4b60a9,'unit':_0x24a86a}),typeof _0x4b60a9=='string'&&_0x4b60a9[_0x2f8757(0x31d)]()==='')return console[_0x2f8757(0x252)]('Empty\x20string\x20value,\x20returning\x200'),0x0;const _0x1bfd9e=_0x24a86a===_0x2f8757(0x278)?_0x5f43f4(_0x4b60a9):parseFloat(_0x4b60a9)||0x0;return console[_0x2f8757(0x252)](_0x2f8757(0x321),_0x1bfd9e),_0x1bfd9e;}[_0x2126b1(0x159)](){const _0x82d56e=_0x2126b1;return this[_0x82d56e(0x143)]===_0x82d56e(0x278)?_0x5e3ca6(this[_0x82d56e(0x169)]):_0x4af02d(this['value'],this[_0x82d56e(0x211)]);}['handleUnitChange'](_0x3edac9){const _0x528d51=_0x2126b1;if(_0x3edac9[_0x528d51(0x14b)][_0x528d51(0x2d7)]===_0x528d51(0x2b7)){const _0x2739ab=_0x3edac9[_0x528d51(0x14b)][_0x528d51(0x169)];console[_0x528d51(0x252)](_0x528d51(0x205),{'from':this[_0x528d51(0x143)],'to':_0x2739ab,'value':this['value'],'unitCategory':this[_0x528d51(0x150)]}),this['value']=_0x531533(this[_0x528d51(0x169)],this[_0x528d51(0x143)],_0x2739ab,this[_0x528d51(0x150)]),console[_0x528d51(0x252)](_0x528d51(0x2f6),this[_0x528d51(0x169)]),this['unit']=_0x2739ab,this[_0x528d51(0x248)](),this[_0x528d51(0x17b)]();}this[_0x528d51(0x1a8)]();}[_0x2126b1(0x17b)](){const _0x1f02a9=_0x2126b1,_0x1ac7e3=this['formatDisplayValue']();this[_0x1f02a9(0x16c)][_0x1f02a9(0x13f)]=_0x1f02a9(0x1d9)+(this[_0x1f02a9(0x31c)]?_0x1f02a9(0x2dd):_0x1f02a9(0x223))+_0x1f02a9(0x153)+(this[_0x1f02a9(0x31c)]?_0x1f02a9(0x2dd):_0x1f02a9(0x223))+_0x1f02a9(0x2b6)+(this[_0x1f02a9(0x31c)]?'auto':_0x1f02a9(0x223))+_0x1f02a9(0x306)+(this[_0x1f02a9(0x31c)]?_0x1f02a9(0x31f):'none')+_0x1f02a9(0x14c)+_0x1ac7e3+'</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'+(_0x354789[this['unitCategory']]||[this[_0x1f02a9(0x143)]])[_0x1f02a9(0x262)](_0x1716dc=>_0x1f02a9(0x20b)+_0x1716dc+'\x22\x20'+(_0x1716dc===this['unit']?_0x1f02a9(0x236):'')+_0x1f02a9(0x2dc)+_0x1716dc+'</option>')[_0x1f02a9(0x20a)]('')+_0x1f02a9(0x327)+(this[_0x1f02a9(0x31c)]&&this[_0x1f02a9(0x150)]!=='Custom'?_0x1f02a9(0x323)+this[_0x1f02a9(0x1df)]+_0x1f02a9(0x316):'')+_0x1f02a9(0x160),this[_0x1f02a9(0x1a8)]();}[_0x2126b1(0x1a8)](){const _0x76d80f=_0x2126b1,_0x7acb5d=this[_0x76d80f(0x16c)][_0x76d80f(0x32b)](_0x76d80f(0x15d));if(!_0x7acb5d)return;const _0x4b16ba=document['createElement'](_0x76d80f(0x1c6));_0x4b16ba[_0x76d80f(0x30d)]['visibility']='hidden',_0x4b16ba['style'][_0x76d80f(0x15b)]=_0x76d80f(0x1d2),_0x4b16ba[_0x76d80f(0x30d)][_0x76d80f(0x2f0)]=_0x76d80f(0x257),_0x4b16ba[_0x76d80f(0x30d)]['font']=window[_0x76d80f(0x19d)](_0x7acb5d)['font'],document['body'][_0x76d80f(0x245)](_0x4b16ba),_0x4b16ba[_0x76d80f(0x2a9)]=this[_0x76d80f(0x143)];const _0x2f19ef=_0x4b16ba[_0x76d80f(0x18d)];document['body'][_0x76d80f(0x2ee)](_0x4b16ba);const _0xc6b1dd=this['showUnitArrow']?0x10:0x6,_0x38e0de=this[_0x76d80f(0x31c)]?0x8:0x0;let _0x367d41=_0x2f19ef+_0xc6b1dd+_0x38e0de+0x2;_0x367d41=Math[_0x76d80f(0x1b7)](_0x367d41,0x1e),_0x7acb5d[_0x76d80f(0x30d)][_0x76d80f(0x249)]=_0x367d41+'px';}['attachEventListeners'](){const _0x16db7b=_0x2126b1;this[_0x16db7b(0x16c)]['addEventListener']('change',this[_0x16db7b(0x1f6)]['bind'](this));const _0x204cd3=this['shadowRoot'][_0x16db7b(0x32b)](_0x16db7b(0x2ce));_0x204cd3&&(_0x204cd3[_0x16db7b(0x2e4)](_0x16db7b(0x13e),this[_0x16db7b(0x188)][_0x16db7b(0x32f)](this)),_0x204cd3['addEventListener'](_0x16db7b(0x21e),this['handleUnitContainerMouseOut']['bind'](this)));}[_0x2126b1(0x196)](){const _0xf45c00=_0x2126b1;this[_0xf45c00(0x16c)][_0xf45c00(0x2c3)](_0xf45c00(0x1ad),this['handleUnitChange'][_0xf45c00(0x32f)](this));const _0x10a5b1=this[_0xf45c00(0x16c)][_0xf45c00(0x32b)](_0xf45c00(0x2ce));_0x10a5b1&&(_0x10a5b1[_0xf45c00(0x2c3)]('mouseover',this[_0xf45c00(0x188)][_0xf45c00(0x32f)](this)),_0x10a5b1[_0xf45c00(0x2c3)](_0xf45c00(0x21e),this[_0xf45c00(0x141)][_0xf45c00(0x32f)](this)));}['handleUnitContainerMouseOver'](){const _0x3bb1cf=_0x2126b1,_0x430037=this['shadowRoot'][_0x3bb1cf(0x32b)](_0x3bb1cf(0x194));_0x430037&&(this['tooltipTimeout']=setTimeout(()=>{const _0x26f76b=_0x3bb1cf;_0x430037[_0x26f76b(0x30d)][_0x26f76b(0x2bf)]='block';},0x3e8));}['handleUnitContainerMouseOut'](){const _0x235381=_0x2126b1,_0x1f7aff=this[_0x235381(0x16c)][_0x235381(0x32b)](_0x235381(0x194));_0x1f7aff&&(setTimeout(()=>{const _0x491a10=_0x235381;_0x1f7aff[_0x491a10(0x30d)][_0x491a10(0x2bf)]='none';},0x7d0),clearTimeout(this[_0x235381(0x241)]));}}class _0x5bde6d extends HTMLElement{constructor(){const _0x3d3475=_0x2126b1;super(),this[_0x3d3475(0x17e)]({'mode':_0x3d3475(0x267)}),this[_0x3d3475(0x229)]=[],this[_0x3d3475(0x143)]='',this[_0x3d3475(0x150)]='',this[_0x3d3475(0x211)]=0x2,this[_0x3d3475(0x31c)]=!0x0;}[_0x2126b1(0x263)](){const _0x325269=_0x2126b1;this[_0x325269(0x143)]=this[_0x325269(0x318)](_0x325269(0x143))||'cm',this[_0x325269(0x229)]=this[_0x325269(0x318)](_0x325269(0x229))['split'](',')[_0x325269(0x262)](Number)[_0x325269(0x262)](_0x5b56d5=>this['parseValue'](_0x5b56d5,this[_0x325269(0x143)])),this[_0x325269(0x150)]=_0x5ac8be(this[_0x325269(0x143)]),this[_0x325269(0x211)]=parseInt(this[_0x325269(0x318)](_0x325269(0x30e)))||0x2,this['showUnitArrow']=!this[_0x325269(0x1f1)](_0x325269(0x311))||this[_0x325269(0x318)](_0x325269(0x311))===_0x325269(0x2fc),this['render'](),this[_0x325269(0x136)]();}static get[_0x2126b1(0x333)](){const _0x1b6774=_0x2126b1;return[_0x1b6774(0x229),'unit',_0x1b6774(0x30e),'show-unit-arrow'];}[_0x2126b1(0x290)](_0x4afd53,_0x4d32ba,_0x55dd10){const _0x2e3f0e=_0x2126b1;if(_0x4afd53==='values')this[_0x2e3f0e(0x229)]=_0x55dd10[_0x2e3f0e(0x336)](',')[_0x2e3f0e(0x262)](Number)[_0x2e3f0e(0x262)](_0x4d430a=>this[_0x2e3f0e(0x307)](_0x4d430a,this[_0x2e3f0e(0x143)]));else{if(_0x4afd53===_0x2e3f0e(0x143)){const _0x428227=this[_0x2e3f0e(0x143)];this['unit']=_0x55dd10,this[_0x2e3f0e(0x150)]=_0x5ac8be(_0x55dd10),_0x428227!==_0x55dd10&&(this['values']=this['values'][_0x2e3f0e(0x262)](_0x5ac970=>_0x531533(_0x5ac970,_0x428227,_0x55dd10,this[_0x2e3f0e(0x150)])));}else _0x4afd53===_0x2e3f0e(0x30e)?this[_0x2e3f0e(0x211)]=parseInt(_0x55dd10)||0x2:_0x4afd53===_0x2e3f0e(0x311)&&(this['showUnitArrow']=_0x55dd10===null||_0x55dd10===_0x2e3f0e(0x2fc));}this[_0x2e3f0e(0x17b)]();}[_0x2126b1(0x17b)](){const _0x2042c0=_0x2126b1,_0x3ca69b=this[_0x2042c0(0x229)][_0x2042c0(0x262)](_0x24d1bf=>this['formatPairValue'](_0x24d1bf));this[_0x2042c0(0x16c)]['innerHTML']=_0x2042c0(0x1ab)+(this[_0x2042c0(0x31c)]?_0x2042c0(0x2dd):_0x2042c0(0x223))+_0x2042c0(0x153)+(this[_0x2042c0(0x31c)]?_0x2042c0(0x2dd):'none')+_0x2042c0(0x2b6)+(this['showUnitArrow']?'auto':_0x2042c0(0x223))+';\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>('+_0x3ca69b[_0x2042c0(0x20a)](',\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'+(_0x354789[this[_0x2042c0(0x150)]]||[this[_0x2042c0(0x143)]])[_0x2042c0(0x262)](_0x2c560c=>_0x2042c0(0x20b)+_0x2c560c+'\x22\x20'+(_0x2c560c===this['unit']?_0x2042c0(0x236):'')+_0x2042c0(0x2dc)+_0x2c560c+'</option>')[_0x2042c0(0x20a)]('')+_0x2042c0(0x187),this[_0x2042c0(0x1a8)]();}[_0x2126b1(0x1a8)](){const _0x409e0b=_0x2126b1,_0x583412=this['shadowRoot']['querySelector']('select');if(!_0x583412)return;const _0x17a91e=document[_0x409e0b(0x2ef)](_0x409e0b(0x1c6));_0x17a91e[_0x409e0b(0x30d)]['visibility']='hidden',_0x17a91e['style'][_0x409e0b(0x15b)]=_0x409e0b(0x1d2),_0x17a91e[_0x409e0b(0x30d)][_0x409e0b(0x2f0)]=_0x409e0b(0x257),_0x17a91e[_0x409e0b(0x30d)][_0x409e0b(0x331)]=window[_0x409e0b(0x19d)](_0x583412)['font'],document['body'][_0x409e0b(0x245)](_0x17a91e),_0x17a91e[_0x409e0b(0x2a9)]=this[_0x409e0b(0x143)];const _0x3aceeb=_0x17a91e[_0x409e0b(0x18d)];document[_0x409e0b(0x2f2)][_0x409e0b(0x2ee)](_0x17a91e);const _0x8fb6e5=this['showUnitArrow']?0x10:0x6,_0x4e7dc1=this[_0x409e0b(0x31c)]?0x8:0x0;let _0x1ae09f=_0x3aceeb+_0x8fb6e5+_0x4e7dc1+0x2;_0x1ae09f=Math[_0x409e0b(0x1b7)](_0x1ae09f,0x1e),_0x583412[_0x409e0b(0x30d)][_0x409e0b(0x249)]=_0x1ae09f+'px';}['attachEventListeners'](){const _0x11bf9a=_0x2126b1;this[_0x11bf9a(0x16c)][_0x11bf9a(0x2e4)]('change',this[_0x11bf9a(0x1f6)]['bind'](this));}[_0x2126b1(0x307)](_0x207128,_0x5518e9){const _0x457674=_0x2126b1;return _0x5518e9===_0x457674(0x278)?_0x5f43f4(_0x207128):parseFloat(_0x207128);}['formatPairValue'](_0x28bdf1){const _0x4b86df=_0x2126b1;return this['unit']===_0x4b86df(0x278)?_0x5e3ca6(_0x28bdf1):_0x4af02d(_0x28bdf1,this[_0x4b86df(0x211)]);}[_0x2126b1(0x1f6)](_0x51d942){const _0x74bd46=_0x2126b1;if(_0x51d942[_0x74bd46(0x14b)]['tagName']==='SELECT'){const _0x8b2a67=_0x51d942['target'][_0x74bd46(0x169)];this['values']=this[_0x74bd46(0x229)][_0x74bd46(0x262)](_0x23bdcd=>_0x531533(_0x23bdcd,this[_0x74bd46(0x143)],_0x8b2a67,this[_0x74bd46(0x150)])),this[_0x74bd46(0x143)]=_0x8b2a67,this['render']();}this['updateDropdownWidth']();}}class _0x57a1de extends HTMLElement{constructor(){const _0x142b7c=_0x2126b1;super(),this[_0x142b7c(0x17e)]({'mode':_0x142b7c(0x267)}),this['values']=[],this[_0x142b7c(0x143)]='',this[_0x142b7c(0x150)]='',this['decimalPlaces']=0x2,this[_0x142b7c(0x31c)]=!0x0,this[_0x142b7c(0x26a)]='',this[_0x142b7c(0x152)]=!0x1;}[_0x2126b1(0x263)](){const _0x56d57a=_0x2126b1;this[_0x56d57a(0x143)]=this[_0x56d57a(0x318)](_0x56d57a(0x143))||'cm',this[_0x56d57a(0x156)](this['getAttribute'](_0x56d57a(0x229))),this[_0x56d57a(0x150)]=_0x5ac8be(this[_0x56d57a(0x143)]),this[_0x56d57a(0x211)]=parseInt(this[_0x56d57a(0x318)]('decimal-places'))||0x2,this['showUnitArrow']=!this[_0x56d57a(0x1f1)]('show-unit-arrow')||this['getAttribute']('show-unit-arrow')===_0x56d57a(0x2fc),this['render'](),this[_0x56d57a(0x136)]();}static get[_0x2126b1(0x333)](){const _0x38dc12=_0x2126b1;return[_0x38dc12(0x229),_0x38dc12(0x143),_0x38dc12(0x30e),_0x38dc12(0x311)];}[_0x2126b1(0x290)](_0x3dcaf2,_0x596de6,_0x1576cd){const _0x3b3635=_0x2126b1;if(_0x3dcaf2===_0x3b3635(0x229))this['parseTripletValues'](_0x1576cd);else{if(_0x3dcaf2===_0x3b3635(0x143)){const _0x2164e6=this['unit'];this[_0x3b3635(0x143)]=_0x1576cd,this[_0x3b3635(0x150)]=_0x5ac8be(_0x1576cd),_0x2164e6!==_0x1576cd&&(this['values']=this[_0x3b3635(0x229)][_0x3b3635(0x262)](_0x1499bd=>_0x531533(_0x1499bd,_0x2164e6,_0x1576cd,this[_0x3b3635(0x150)])));}else _0x3dcaf2===_0x3b3635(0x30e)?this[_0x3b3635(0x211)]=parseInt(_0x1576cd)||0x2:_0x3dcaf2===_0x3b3635(0x311)&&(this['showUnitArrow']=_0x1576cd===null||_0x1576cd==='true');}this[_0x3b3635(0x17b)]();}['parseValue'](_0x237a6c,_0x2fdf70){return _0x2fdf70==='ft-in'?_0x5f43f4(_0x237a6c):parseFloat(_0x237a6c);}[_0x2126b1(0x156)](_0x3b8c8e){const _0x14dcbe=_0x2126b1;this[_0x14dcbe(0x26a)]='',this[_0x14dcbe(0x152)]=_0x3b8c8e[_0x14dcbe(0x33e)]('(')&&_0x3b8c8e[_0x14dcbe(0x2e9)](')'),this[_0x14dcbe(0x152)]&&(_0x3b8c8e=_0x3b8c8e[_0x14dcbe(0x2c0)](0x1,-0x1)),_0x3b8c8e[_0x14dcbe(0x24e)]('x')?(this['values']=_0x3b8c8e['split']('x')[_0x14dcbe(0x262)](_0x1931ae=>this[_0x14dcbe(0x307)](_0x1931ae,this[_0x14dcbe(0x143)])),this[_0x14dcbe(0x26a)]='x'):_0x3b8c8e[_0x14dcbe(0x24e)](',')?(this[_0x14dcbe(0x229)]=_0x3b8c8e['split'](',')[_0x14dcbe(0x262)](_0x1f6386=>_0x1f6386['trim']())['map'](_0x4ce448=>this[_0x14dcbe(0x307)](_0x4ce448,this['unit'])),this[_0x14dcbe(0x26a)]='comma'):(this[_0x14dcbe(0x229)]=_0x3b8c8e[_0x14dcbe(0x336)](/\s+/)[_0x14dcbe(0x262)](_0x458aa7=>this[_0x14dcbe(0x307)](_0x458aa7,this['unit'])),this[_0x14dcbe(0x26a)]=_0x14dcbe(0x277));}[_0x2126b1(0x15f)](_0x53a776){const _0x1424c2=_0x2126b1;return this['unit']===_0x1424c2(0x278)?_0x5e3ca6(_0x53a776):_0x4af02d(_0x53a776,this[_0x1424c2(0x211)]);}[_0x2126b1(0x2a0)](_0x2936a8){const _0x591868=_0x2126b1;let _0x26b527='';const _0x185c53=_0x2936a8[_0x591868(0x262)](_0x542e99=>this[_0x591868(0x15f)](_0x542e99));return this[_0x591868(0x26a)]==='x'?_0x26b527=_0x185c53[0x0]+_0x591868(0x2d1)+this[_0x591868(0x143)]+_0x591868(0x1b4)+_0x185c53[0x1]+_0x591868(0x2d1)+this[_0x591868(0x143)]+_0x591868(0x1b4)+_0x185c53[0x2]:this['format']==='comma'?_0x26b527=_0x185c53[_0x591868(0x20a)](',\x20'):_0x26b527=_0x185c53[_0x591868(0x20a)]('\x20'),_0x26b527;}[_0x2126b1(0x17b)](){const _0x2c21be=_0x2126b1,_0x2bb11a=this[_0x2c21be(0x2a0)](this[_0x2c21be(0x229)]);this[_0x2c21be(0x16c)][_0x2c21be(0x13f)]=_0x2c21be(0x29e)+(this[_0x2c21be(0x31c)]?_0x2c21be(0x2dd):_0x2c21be(0x223))+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20'+(this[_0x2c21be(0x31c)]?_0x2c21be(0x2dd):'none')+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20'+(this[_0x2c21be(0x31c)]?'auto':_0x2c21be(0x223))+';\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'+(this[_0x2c21be(0x152)]?'(':'')+_0x2c21be(0x2c1)+_0x2bb11a+_0x2c21be(0x254)+(this[_0x2c21be(0x152)]&&this['format']!=='x'?')':'')+_0x2c21be(0x22c)+(_0x354789[this['unitCategory']]||[this[_0x2c21be(0x143)]])[_0x2c21be(0x262)](_0x3b13d0=>'<option\x20value=\x22'+_0x3b13d0+'\x22\x20'+(_0x3b13d0===this[_0x2c21be(0x143)]?_0x2c21be(0x236):'')+_0x2c21be(0x2dc)+_0x3b13d0+_0x2c21be(0x13a))[_0x2c21be(0x20a)]('')+'\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'+(this[_0x2c21be(0x152)]&&this[_0x2c21be(0x26a)]==='x'?')':'')+_0x2c21be(0x1f8),this[_0x2c21be(0x1a8)]();}[_0x2126b1(0x1a8)](){const _0xf24d87=_0x2126b1,_0xc3b6b7=this[_0xf24d87(0x16c)][_0xf24d87(0x32b)](_0xf24d87(0x15d));if(!_0xc3b6b7)return;const _0x6ca0d0=document[_0xf24d87(0x2ef)](_0xf24d87(0x1c6));_0x6ca0d0[_0xf24d87(0x30d)][_0xf24d87(0x2ac)]=_0xf24d87(0x1c0),_0x6ca0d0[_0xf24d87(0x30d)][_0xf24d87(0x15b)]='absolute',_0x6ca0d0[_0xf24d87(0x30d)][_0xf24d87(0x2f0)]='nowrap',_0x6ca0d0[_0xf24d87(0x30d)]['font']=window['getComputedStyle'](_0xc3b6b7)[_0xf24d87(0x331)],document[_0xf24d87(0x2f2)][_0xf24d87(0x245)](_0x6ca0d0),_0x6ca0d0[_0xf24d87(0x2a9)]=this[_0xf24d87(0x143)];const _0x45284e=_0x6ca0d0[_0xf24d87(0x18d)];document[_0xf24d87(0x2f2)][_0xf24d87(0x2ee)](_0x6ca0d0);const _0x1163d8=this[_0xf24d87(0x31c)]?0x10:0x6,_0xaa377a=this[_0xf24d87(0x31c)]?0x8:0x0;let _0x4acf0a=_0x45284e+_0x1163d8+_0xaa377a+0x2;_0x4acf0a=Math[_0xf24d87(0x1b7)](_0x4acf0a,0x1e),_0xc3b6b7['style'][_0xf24d87(0x249)]=_0x4acf0a+'px';}[_0x2126b1(0x136)](){const _0x4e11d7=_0x2126b1;this[_0x4e11d7(0x16c)][_0x4e11d7(0x2e4)]('change',this[_0x4e11d7(0x1f6)][_0x4e11d7(0x32f)](this));}[_0x2126b1(0x1f6)](_0x22d3fe){const _0x9a6ad5=_0x2126b1;if(_0x22d3fe['target'][_0x9a6ad5(0x2d7)]===_0x9a6ad5(0x2b7)){const _0x4bd63a=_0x22d3fe[_0x9a6ad5(0x14b)][_0x9a6ad5(0x169)];this['values']=this['values'][_0x9a6ad5(0x262)](_0x577dd2=>_0x531533(_0x577dd2,this[_0x9a6ad5(0x143)],_0x4bd63a,this['unitCategory'])),this[_0x9a6ad5(0x143)]=_0x4bd63a,this[_0x9a6ad5(0x17b)]();}this[_0x9a6ad5(0x1a8)]();}}class _0x2c1d0d extends HTMLElement{constructor(){const _0x183727=_0x2126b1;super(),this[_0x183727(0x17e)]({'mode':'open'}),this[_0x183727(0x2fd)]=0x0;}['connectedCallback'](){const _0x1dcc91=_0x2126b1;this[_0x1dcc91(0x17b)](),this['attachEventListeners']();}[_0x2126b1(0x17b)](){const _0x59527e=_0x2126b1;this[_0x59527e(0x16c)][_0x59527e(0x13f)]=_0x59527e(0x2fe)+this[_0x59527e(0x2fd)]+_0x59527e(0x1d1);}[_0x2126b1(0x136)](){const _0xaf2fbc=_0x2126b1,_0x46c1e1=this[_0xaf2fbc(0x16c)]['querySelector']('.increment'),_0x5e0854=this['shadowRoot'][_0xaf2fbc(0x32b)](_0xaf2fbc(0x1b9));_0x46c1e1[_0xaf2fbc(0x2e4)](_0xaf2fbc(0x28a),()=>this[_0xaf2fbc(0x27d)]()),_0x5e0854[_0xaf2fbc(0x2e4)](_0xaf2fbc(0x28a),()=>this['decrement']());}[_0x2126b1(0x27d)](){const _0x5f2f63=_0x2126b1;this[_0x5f2f63(0x2fd)]++,this[_0x5f2f63(0x224)]();}[_0x2126b1(0x240)](){const _0x41c36a=_0x2126b1;this[_0x41c36a(0x2fd)]--,this[_0x41c36a(0x224)]();}[_0x2126b1(0x224)](){const _0x315dfe=_0x2126b1,_0x4def9d=this[_0x315dfe(0x16c)]['querySelector'](_0x315dfe(0x170));_0x4def9d[_0x315dfe(0x2a9)]=this[_0x315dfe(0x2fd)];}}const _0x2e4629=(_0x4dfb68,_0x1a4cda)=>{typeof window<'u'&&!customElements['get'](_0x4dfb68)&&customElements['define'](_0x4dfb68,_0x1a4cda);};_0x2e4629('physical-quantity',_0x2a50c8),_0x2e4629(_0x2126b1(0x1e0),class extends _0x2a50c8{}),_0x2e4629(_0x2126b1(0x18f),_0x5bde6d),_0x2e4629(_0x2126b1(0x302),_0x57a1de),_0x2e4629(_0x2126b1(0x1ca),_0x2c1d0d),_0xf6999e[_0x2126b1(0x24f)]=_0x2c1d0d,_0xf6999e['PhysicalQuantity']=_0x2a50c8,_0xf6999e['UcQtyPair']=_0x5bde6d,_0xf6999e[_0x2126b1(0x2c5)]=_0x57a1de,Object['defineProperty'](_0xf6999e,Symbol[_0x2126b1(0x1e4)],{'value':_0x2126b1(0x166)});}));
|
|
1
|
+
(function(u,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(u=typeof globalThis<"u"?globalThis:u||self,L(u.PQWebComponents={}))})(this,function(u){"use strict";const o=.45359237,r=9.80665,H=5280,a=25.4/1e3,n=12*a,W=1852,Q=66*660,p=4.54609,g=231,I=268.8025,f=1/8,F=1/20,j=1/16,B=8,_=8,Y=1/16,X=240,Z=250,tt=10,N=14.59390294,b=1055.05585262,y=4.1868,M=4.184,R=550*o*r*n,C=101325,$=1/760,U=133.322387415,et=624150974e10,k={Length:["m","nano[nm]","µm","micron","mm","cm","dm","km","in","ft-in","thou[mil, or thousandth of an inch]","ft","yd","mile","NM[M, nmi, or nautical mile]"],Mass:["kg","g","mg","µg","oz","lbm","slug","ton(US/short)","ton(UK-Imperial/long)","tonne"],Time:["s[second]","s","minute","h","h[hour]","day","week"],ElectricalCurrent:["A","Ampere[amp]","mA","µA","kA","MA","esu/s"],Temperature:["°K","°C","°F","°Ra"],"Amount of Substance":["mol","mmol","kmol"],"Luminous Intensity":["cd[candela]","lm/sr","cp[candlepower]","cp[candlepower(before 1948)]"],Acceleration:["m/s²","m/min²","mm/s²","ft/s²","ft/min²","in/s²"],"Gravitational Constant":["m³/kg/s²","N⋅m²/kg²","dyn⋅cm²/g²"],"Velocity (Angular)":["rad/s","rad/min","rad/h","deg°/s","deg°/min","deg°/h","rpm[rev/min]","rev/s"],"Acceleration (Angular)":["rad/s²","rad/min²","deg°/s²","deg°/min²"],Illuminance:["lux","lumen/m²","lm/m²","meter-candle","phot","foot-candle","fc","lumen/ft²","lm/ft²"],Frequency:["Hz","1/s","1/min","rpm","1/hour","mHz","kHz","MHz","GHz"],Area:["m²","µm²","mm²","cm²","km²","hectare","in²","ft²","yd²","acre","mile²"],"Volume / Section Modulus":["m³","µm³","mm³","cm³","L","ml","km³","in³","ft³","yd³","gal(UK-imperial)","gal(US-liquid)","gal(US-dry)","pint(UK-imperial)","pint(US-liquid)","pint(US-dry)","fluid ounce(UK-imperial)","fluid ounce(US-liquid)","bushel(UK-imperial)","bushel(US-dry)","cup(US-liquid)","cup(Legal)","cup(Metric)","cup(Imperial)"],"Polar Moment of Inertia":["m⁴","mm⁴","cm⁴","in⁴","ft⁴"],"Moment of Inertia":["kg⋅m²","g⋅cm²","g⋅mm²","lbm⋅ft²","lbm⋅in²","oz⋅in²"],Force:["N","kN","MN","kgf","lb","lbf","kip[kilo pound]"],Angle:["radian","rad","deg°","revolution"],"Solid Angle":["sr[steradian]","m²/m²"],"BMI-Body Mass Index/Ballistic Coefficient":["kg/m²","g/cm²","g/mm²","tonne/m²","lbm/yd²","lbm/ft²","lbm/in²","oz/yd²","oz/ft²","oz/in²"],Density:["kg/m³","kg/L","g/cm³","g/mm³","lbm/ft³","lbm/in³"],Energy:["J[Joule]","kJ","MJ","GJ","TNT Equivalent[kiloton]","Btu","MM Btu","calorie(IT)","kilo-calorie(IT)","calorie(TH)","kilo-calorie(TH)","HP Hour","Wh","kWh","eV[electron-volt]"],Power:["W[watt]","kW","MW","GW[Gigawatt]","Btu/h","Btu/minute","MM Btu/h","Btu(AC)","calorie(IT)/second","calorie(IT)/minute","kilo-calorie(IT)/hour","calorie(TH)/second","calorie(TH)/minute","kilo-calorie(TH)/hour","lb-ft/second","lb-ft/minute","HP","J/second","J/minute","J/h","MJ/h","kJ/minute"],"Torque, Moment of Force":["Nm","kNm","lb-in","kip-in","lb-ft","oz-in","oz-ft"],"Pressure/Stress":["Pa","kPa","MPa","GPa","bar","mbar","atm","mm HG","cm HG","in HG","mm W.C.","m W.C.","in W.C.","psf","psi","ksi","ksi[kip/in²]"],"Pressure Drop per Unit Length":["Pa/m","Pascal/m","kPa/m","MPa/km","bar/m","mbar/mm","atm/m","mm HG/m","in HG/ft","mm W.C./m","m W.C./m","in W.C./ft","in W.C./100 ft","psf/in","psi/ft","ksi/ft","Torr/ft","mTorr/m"],"Uniformly Distributed (Uniform Line) Load | Stiffness of Linear Spring":["N/m","N/mm","kN/m","lb/ft","kips/ft","lb/in"],"Stiffness of Rotary Spring":["N⋅m/rad","N⋅m/deg°","N⋅mm/rad","N⋅mm/deg°","lb-ft/rad","lb-ft/deg°","lb-in/rad","lb-in/deg°"],"Flow Rate (Volume)":["m³/s","m³/min","m³/h","L/s","L/min","L/h","cm³/s","cm³/min","in³/s","in³/min","ft³/s","CFM","CFM[ft³/min]","CFH","CFH[ft³/h]","yd³/min","yd³/h","gpm(US)","gph(US)","bushel(UK-imperial)/h","bushel(US)/h"],"Flow Rate (Mass)":["kg/s","kg/min","kg/h","g/s","g/min","g/h","slug/s","slug/min","slug/h","lbm/s","lbm/min","lbm/h","oz/s","oz/min","oz/h","tonne/h","short ton/h","long ton/h"],"Speed / Velocity (Linear)":["m/s","mm/s","km/s","mm/min","m/min","km/min","mm/h","m/h","km/h","in/s","fps","fps[ft/second]","fpm","fpm[ft/minute]","mph[mile/h]","knot[kn, kt, or nautical mile/h]"],"Fuel Heat Value (Volume)":["J/m³","J/L","kJ/L","kJ/m³","MJ/m³","GJ/m³","cal(IT)/L","kcal(IT)/m³","cal(TH)/L","kcal(TH)/m³","Wh/L","Wh/m³","kWh/m³","HP Hour/ft³","Btu/gal(US)","Btu/ft³","MM Btu/ft³"],"Fuel Heat Value (Mass)":["J/kg","J/g","kJ/kg","MJ/kg","GJ/kg","cal(IT)/g","kcal(IT)/kg","cal(TH)/g","kcal(TH)/kg","Wh/g","Wh/kg","kWh/kg","HP Hour/lbm","Btu/lbm","MM Btu/lbm","Btu/ton(short)"],"Mass Heat Capacity":["J/(kg·°K)","J/(kg·°C)","J/(g·°K)","J/(g·°C)","Btu/(lbm·°F)"],"Viscosity - Absolute/Dynamic(μ)":["PI[Pa·s]","N·s/m²","kg/m/s","P[Poise]","cP","lb·s/ft²","lbm/ft/s"],"Viscosity - Kinematic":["m²/s","m²/min","m²/hr","St[cm²/s]","Stoke","cm²/min","cm²/hr","cSt[mm²/s]","mm²/min","mm²/hr","ft²/s","ft²/min","ft²/hr","in²/s","in²/min","in²/hr"],"Linear Thermal Expansion Coefficient":["1/°K","1/°C","1/°F","1/°Ra"],"Thermal Conductivity":["W/(m⋅°K)","W/(cm⋅°K)","BTU/(h⋅ft⋅°F)","BTU/(h⋅in⋅°F)"],"Electrical Charge":["C[coulomb]","Ah","ampere-hour","mAh","e[electron]","faraday"],"Electrical Potential Difference (Voltage)":["V","Volt","joule/coulomb","J/C","µV","mV","kV","MV"],"Electrical Resistance(Impedance)":["Ω[Ohm]","µΩ","mΩ","kΩ","MΩ"],"Electrical Capacitance":["F[farad]","pF","nF","µF","mF"],"Electrical Inductance":["H[henry]","µH","mH"],"Electrical Conductance":["S[siemens]","℧","µS","mS","kS"],"Magnetic Flux":["Wb[weber]","nWb","µWb","mWb","cWb","dWb"],"Luminous Flux":["lm[lumen]","cd⋅sr"],"Magnetic Flux Density":["T[tesla]","Wb/m²","µT","G","mT"],"Katalytic Activity":["kat[katal]","mol/s","µkat","mkat","kkat","Mkat"],Radioactivity:["Bq[becquerel]","1/s","µBq","mBq","kBq","MBq","Rd[rutherford]","Ci[curie]"],"Absorbed Dose of Ionizing Radiation":["Gy[gray]","J/kg","µGy","mGy","kGy","MGy"],"Equivalent Dose of Ionizing Radiation":["Sv[sievert]","J/kg","µSv","mSv","kSv","MSv"],"Volumetric Displacement":["m³/rad","m³/rev","L/rev","cc/rev","ft³/rev","in³/rev","gal(US-liquid)/rev"],"Fuel Economy":["km/L","mpg(US)","mile/gal(US-liquid)","mpg(UK)","mile/gal(UK-imperial)","mile/L"],"Fuel Consumption":["m³/m","L/km","L/100km","L/mile","L/100mile","gal(US-liquid)/mile","gal(US-liquid)/100mile","gal(UK-imperial)/mile","gal(UK-imperial)/100mile"],"New Energy Economy (MPGe)":["m/J","km/kWh","km/MJ","MPGe","mile/MJ","mile/kWh","mile/MM Btu"],"New Energy Consumption":["J/m","Wh/km","Wh/mile","kWh/km","kWh/100km","kWh/mile","kWh/100mile","MJ/km","MJ/100km","MJ/mile","MJ/100mile","MM Btu/km","MM Btu/100km","MM Btu/mile","MM Btu/100mile"],"Baud Rate":["bit/s","Bd","kBd","MBd","GBd"],Currency:["$","¢","$1K","$1M","$1B","$1T"],"Impulse / Momentum":["N·s","Newton-second","lb·s","kg·m/s","lbm·fps","lbm·fpm"],"Digital Storage":["bit","kilobit","kibibit","megabit","mebibit","gigabit","gibibit","terabit","tebibit","petabit","pebibit","byte","kilobyte","kibibyte","megabyte","mebibyte","gigabyte","gibibyte","terabyte","tebibyte","petabyte","pebibyte"],"Data Transfer Rate":["bit/s","kilobit/s","kibibit/s","megabit/s","mebibit/s","gigabit/s","gibibit/s","terabit/s","tebibit/s","petabit/s","pebibit/s"]},w={Length:{m:1,"nano[nm]":1/1e9,µm:1/1e6,micron:1/1e6,mm:1/1e3,cm:.01,dm:.1,km:1e3,in:a,"thou[mil, or thousandth of an inch]":a/1e3,"ft-in":a,ft:n,yd:3*n,mile:H*n,"NM[M, nmi, or nautical mile]":W},Mass:{kg:1,g:.001,mg:1/1e6,µg:1/1e9,oz:1/16*o,lbm:o,slug:N,"ton(US/short)":2e3*o,"ton(UK-Imperial/long)":2240*o,tonne:1e3},Time:{"s[second]":1,s:1,minute:60,h:3600,"h[hour]":3600,day:3600*24,week:3600*24*7},ElectricalCurrent:{A:1,"Ampere[amp]":1,mA:.001,µA:1e-6,kA:1e3,MA:1e6,"esu/s":1/3e9},Temperature:{"°K":{c0:1,c1:0},"°C":{c0:1,c1:273.15},"°F":{c0:5/9,c1:255.3722222},"°Ra":{c0:5/9,c1:0}},"Amount of Substance":{mol:1,mmol:.001,kmol:1e3},"Luminous Intensity":{"cd[candela]":1,"lm/sr":1,"cp[candlepower]":1,"cp[candlepower(before 1948)]":.981},Acceleration:{"m/s²":1,"m/min²":1/3600,"mm/s²":.001,"ft/s²":n,"ft/min²":n/3600,"in/s²":a},"Gravitational Constant":{"m³/kg/s²":1,"N⋅m²/kg²":1,"dyn⋅cm²/g²":1e3},"Velocity (Angular)":{"rad/s":1,"rad/min":1/60,"rad/h":1/3600,"deg°/s":Math.PI/180,"deg°/min":Math.PI/180/60,"deg°/h":Math.PI/180/3600,"rpm[rev/min]":2*Math.PI/60,"rev/s":2*Math.PI},"Acceleration (Angular)":{"rad/s²":1,"rad/min²":1/3600,"deg°/s²":Math.PI/180,"deg°/min²":Math.PI/180/3600},Illuminance:{lux:1,"lumen/m²":1,"lm/m²":1,"meter-candle":1,phot:1e4,"foot-candle":1/Math.pow(n,2),fc:1/Math.pow(n,2),"lumen/ft²":1/Math.pow(n,2),"lm/ft²":1/Math.pow(n,2)},Frequency:{Hz:1,"1/s":1,"1/min":1/60,rpm:1/60,"1/hour":1/3600,mHz:1/1e3,kHz:1e3,MHz:1e6,GHz:1e9},Area:{"m²":1,"µm²":Math.pow(1/1e6,2),"mm²":Math.pow(1/1e3,2),"cm²":Math.pow(1/100,2),"km²":1e6,hectare:Math.pow(100,2),"in²":Math.pow(a,2),"ft²":Math.pow(n,2),"yd²":Math.pow(n*3,2),acre:Q*Math.pow(n,2),"mile²":Math.pow(H*n,2)},"Volume / Section Modulus":{"m³":1,"µm³":Math.pow(1/1e6,3),"mm³":Math.pow(1/1e3,3),"cm³":Math.pow(1/100,3),L:1/1e3,ml:1/1e6,"km³":Math.pow(1e3,3),"in³":Math.pow(a,3),"ft³":Math.pow(n,3),"yd³":Math.pow(n*3,3),"gal(UK-imperial)":p*1/1e3,"gal(US-liquid)":g*Math.pow(a,3),"gal(US-dry)":I*Math.pow(a,3),"pint(UK-imperial)":f*p*1/1e3,"pint(US-liquid)":f*g*Math.pow(a,3),"pint(US-dry)":f*I*Math.pow(a,3),"fluid ounce(UK-imperial)":F*f*p/1e3,"fluid ounce(US-liquid)":j*f*g*Math.pow(a,3),"bushel(UK-imperial)":B*p/1e3,"bushel(US-dry)":_*I*Math.pow(a,3),"cup(US-liquid)":Y*g*Math.pow(a,3),"cup(Legal)":X*Math.pow(.01,3),"cup(Metric)":Z*Math.pow(.01,3),"cup(Imperial)":tt*F*f*p/1e3},"Polar Moment of Inertia":{"m⁴":1,"mm⁴":1e-12,"cm⁴":1e-8,"in⁴":Math.pow(a,4),"ft⁴":Math.pow(n,4)},"Moment of Inertia":{"kg⋅m²":1,"g⋅cm²":1/(1e3*1e4),"g⋅mm²":1/(1e3*1e6),"lbm⋅ft²":o*Math.pow(n,2),"lbm⋅in²":o*Math.pow(a,2),"oz⋅in²":o/16*Math.pow(a,2)},Force:{N:1,kN:1e3,MN:1e6,kgf:r,lb:o*r,lbf:o*r,"kip[kilo pound]":1e3*o*r},Angle:{radian:1,rad:1,"deg°":Math.PI/180,revolution:Math.PI*2},"Solid Angle":{"sr[steradian]":1,"m²/m²":1},"BMI-Body Mass Index/Ballistic Coefficient":{"kg/m²":1,"g/cm²":1/1e3/Math.pow(.01,2),"g/mm²":1/1e3/Math.pow(.001,2),"tonne/m²":1e3,"lbm/yd²":o/Math.pow(n*3,2),"lbm/ft²":o/Math.pow(n,2),"lbm/in²":o/Math.pow(a,2),"oz/yd²":o/16/Math.pow(3*n,2),"oz/ft²":o/16/Math.pow(n,2),"oz/in²":o/16/Math.pow(a,2)},Density:{"kg/m³":1,"kg/L":1e3,"g/cm³":1/1e3/Math.pow(.01,3),"g/mm³":1/1e3/Math.pow(.001,3),"lbm/ft³":o/Math.pow(n,3),"lbm/in³":o/Math.pow(a,3)},Energy:{"J[Joule]":1,kJ:1e3,MJ:1e6,GJ:1e9,"TNT Equivalent[kiloton]":1e9*M,Btu:b,"MM Btu":b*1e6,"calorie(IT)":y,"kilo-calorie(IT)":y*1e3,"calorie(TH)":M,"kilo-calorie(TH)":M*1e3,"HP Hour":R*3600,Wh:3600,kWh:3600*1e3,"eV{electron-volt]":1/et},Power:{W:1,kW:1e3,MW:1e6,"GW[Gigawatt]":1e9,"Btu/h":b/3600,"Btu/minute":b/60,"MM Btu/h":b*1e6/3600,"Btu(AC)":b/3600,"calorie(IT)/second":y,"calorie(IT)/minute":y/60,"kilo-calorie(IT)/hour":y*1e3/3600,"calorie(TH)/second":M,"calorie(TH)/minute":M/60,"kilo-calorie(TH)/hour":M*1e3/3600,"lb-ft/second":o*r*n,"lb-ft/minute":o*r*n/60,HP:R,"J/second":1,"J/minute":1/60,"J/h":1/3600,"MJ/h":1e6/3600,"kJ/minute":1e3/60},"Torque, Moment of Force":{Nm:1,kNm:1e3,"lb-in":o*r*a,"kip-in":1e3*o*r*a,"lb-ft":o*r*n,"oz-in":o/16*r*a,"oz-ft":o/16*r*n},"Pressure/Stress":{Pa:1,kPa:1e3,MPa:1e6,GPa:1e9,bar:100*1e3,mbar:100,atm:C,"mm HG":U,"cm HG":U*10,"in HG":U*25.4,"mm W.C.":1/1e3*1e3*r,"m W.C.":1*1e3*r,"in W.C.":a*1e3*r,psf:o*r/Math.pow(n,2),psi:o*r/Math.pow(a,2),ksi:o*r/Math.pow(a,2)*1e3,"ksi{kip/in²]":o*r/Math.pow(a,2)*1e3},"Pressure Drop per Unit Length":{"Pa/m":1,"Pascal/m":1,"kPa/m":1e3,"MPa/km":1e6/1e3,"bar/m":1e5,"mbar/mm":100*1e3,"atm/m":C,"mm HG/m":U,"in HG/ft":U*25.4/n,"mm W.C./m":1/1e3*1e3*r,"m W.C./m":1e3*r,"in W.C./ft":a*1e3*r/n,"in W.C./100 ft":a*1e3*r/n/100,"psf/in":o*r/Math.pow(n,2)/a,"psi/ft":o*r/Math.pow(n,2)/n,"ksi/ft":o*r/Math.pow(n,2)/n*1e3,"Torr/ft":$*C/n,"mTorr/m":$*C/1e3},"Uniformly Distributed (Uniform Line) Load | Stiffness of Linear Spring":{"N/m":1,"N/mm":1e3,"kN/m":1e3,"lb/ft":o*r/n,"kips/ft":1e3*o*r/n,"lb/in":o*r/a},"Stiffness of Rotary Spring":{"N⋅m/rad":1,"N⋅m/deg°":1/Math.PI*180,"N⋅mm/rad":1/1e3,"N⋅mm/deg°":1/1e3/Math.PI*180,"lb-ft/rad":o*r*n,"lb-ft/deg°":o*r*n/(Math.PI/180),"lb-in/rad":o*r*a,"lb-in/deg°":o*r*a/(Math.PI/180)},"Flow Rate (Volume)":{"m³/s":1,"m³/min":1/60,"m³/h":1/3600,"L/s":1/1e3,"L/min":1/1e3/60,"L/h":1/1e3/3600,"cm³/s":1e-6,"cm³/min":1e-6/60,"in³/s":Math.pow(a,3),"in³/min":Math.pow(a,3)/60,"ft³/s":Math.pow(n,3),CFM:Math.pow(n,3)/60,"CFM[ft³/min]":Math.pow(n,3)/60,CFH:Math.pow(n,3)/3600,"CFH[ft³/h]":Math.pow(n,3)/3600,"yd³/min":Math.pow(n*3,3)/60,"yd³/h":Math.pow(n*3,3)/3600,"gpm(US)":g*Math.pow(a,3)/60,"gph(US)":g*Math.pow(a,3)/3600,"bushel(UK-imperial)/h":B*p/1e3/3600,"bushel(US)/h":_*I*Math.pow(a,3)/3600},"Flow Rate (Mass)":{"kg/s":1,"kg/min":1/60,"kg/h":1/3600,"g/s":1/1e3,"g/min":1/1e3/60,"g/h":1/1e3/3600,"slug/s":N,"slug/min":N/60,"slug/h":N/3600,"lbm/s":o,"lbm/min":o/60,"lbm/h":o/3600,"oz/s":o/16,"oz/min":o/16/60,"oz/h":o/16/3600,"tonne/h":1e3/3600,"short ton/h":2e3*o/3600,"long ton/h":2240*o/3600},"Speed / Velocity (Linear)":{"m/s":1,"mm/s":1/1e3,"km/s":1,"mm/min":1/1e3/60,"m/min":1/60,"km/min":1e3/60,"mm/h":1/1e3/3600,"m/h":1/3600,"km/h":1e3/3600,"in/s":a,fps:n,"fps[ft/second]":n,fpm:n/60,"fpm[ft/minute]":n/60,"mph[mile/h]":H*n/3600,"knot[kn, kt, or nautical mile/h]":W/3600},"Electrical Potential Difference (Voltage)":{V:1,Volt:1,"joule/coulomb":1,"J/C":1,µV:1/1e6,mV:1/1e3,kV:1e3,MV:1e6}},T=l=>{if(console.log("getUnitCategory called with unit:",l),!l)return console.warn("Unit is undefined or null"),"Custom";for(const t in k)if(k[t].includes(l))return console.log(`Category found for unit ${l}:`,t),t;return console.warn(`No category found for unit: ${l}`),"Custom"},d=(l,t,e,i)=>{if(t==="ft-in"&&e!=="ft-in")return it(l,e);if(t!=="ft-in"&&e==="ft-in")return nt(l,t);if(i!=="Temperature"){const s=w[i][t]/w[i][e];return l*s}else{const s=w[i][t].c0,m=w[i][t].c1,c=w[i][e].c0,h=w[i][e].c1;return(l*s+m-h)/c}},O=(l,t)=>{let e;if(Number.isInteger(l)?e=l.toString():e=l.toFixed(t).replace(/\.?0+$/,""),Math.abs(parseFloat(e))>=1e3){const i=e.split(".");i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e=i.join(".")}return e},P=l=>{const t=/(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/,e=/(\d+)\'/,i=/(\d+)/;let s=l.match(t);if(s){const m=parseInt(s[1])||0,c=parseInt(s[3])||0,h=parseInt(s[5])||0,v=parseInt(s[6])||1;return D(m,c,h,v)}if(s=l.match(e),s){const m=parseInt(s[1])||0;return D(m,0,0,1)}if(s=l.match(i),s){const m=parseInt(s[1])||0;return D(0,m,0,1)}return parseFloat(l)},D=(l,t,e,i)=>l*12+t+e/i,S=(l,t='1/16"')=>{if(l<0)return`-${S(-l,t)}`;const e=parseInt(t.split("/")[1].replace('"',""));let i=Math.floor(l/12),s=Math.floor(l%12);const m=l-Math.floor(l);let c="";if(m>0&&t!==0){let v=Math.round(m*e);const q=(K,x)=>x?q(x,K%x):K,z=q(v,e);c=` ${v/z}/${e/z}`,c.trim()==="1/1"&&(s++,s>=12&&(i++,s-=12),c="")}let h="";return i>0&&(h+=`${i}'`),i>0&&(s>0||c!=="")&&(h+="-"),s>0&&(h+=`${s}`),c!==""&&(h+=c),(s>0||c!=="")&&(h+='"'),h.trim()},it=(l,t)=>{const e=l*.0254;return d(e,"m",t,"Length")},nt=(l,t)=>d(l,t,"m","Length")/.0254;class E extends HTMLElement{constructor(){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")}connectedCallback(){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()}disconnectedCallback(){this.removeEventListeners()}static get observedAttributes(){return["value","unit","decimal-places","show-unit-arrow"]}attributeChangedCallback(t,e,i){if(console.log(`attributeChangedCallback called: ${t}`,{oldValue:e,newValue:i}),t==="value")this.inputValue=i||"0",this.value=this.parseValue(this.inputValue,this.unit),console.log("New value parsed:",this.value);else if(t==="unit"){const s=this.unit,m=this.unitCategory;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=d({value:this.value,fromUnit:s,toUnit:this.unit,unitCategory:this.unitCategory})):console.log("Unit category changed, keeping original value"),console.log("New value:",this.value))}else 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));this.render()}updateUnitCategory(){console.log("updateUnitCategory called with unit:",this.unit),this.unitCategory=T(this.unit),console.log("Updated unit category:",this.unitCategory)}parseValue(t,e){if(console.log("parseValue called with:",{value:t,unit:e}),typeof t=="string"&&t.trim()==="")return console.log("Empty string value, returning 0"),0;const i=e==="ft-in"?P(t):parseFloat(t)||0;return console.log("Parsed value:",i),i}formatDisplayValue(){return this.unit==="ft-in"?S(this.value):O(this.value,this.decimalPlaces)}handleUnitChange(t){if(t.target.tagName==="SELECT"){const e=t.target.value;console.log("handleUnitChange:",{from:this.unit,to:e,value:this.value,unitCategory:this.unitCategory}),this.value=d(this.value,this.unit,e,this.unitCategory),console.log("Converted value:",this.value),this.unit=e,this.updateUnitCategory(),this.render()}this.updateDropdownWidth()}render(){const t=this.formatDisplayValue();this.shadowRoot.innerHTML=`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: baseline;
|
|
6
|
+
vertical-align: baseline;
|
|
7
|
+
}
|
|
8
|
+
.quantity {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: baseline;
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
.value {
|
|
14
|
+
margin-right: 2px;
|
|
15
|
+
margin-left: 2px;
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
.unit-container {
|
|
19
|
+
position: relative;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: baseline;
|
|
22
|
+
}
|
|
23
|
+
.unit-container select {
|
|
24
|
+
appearance: ${this.showUnitArrow?"auto":"none"};
|
|
25
|
+
-webkit-appearance: ${this.showUnitArrow?"auto":"none"};
|
|
26
|
+
-moz-appearance: ${this.showUnitArrow?"auto":"none"};
|
|
27
|
+
border-radius: 0.15em;
|
|
28
|
+
border: none;
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0 0.1em 0 0.2em;
|
|
31
|
+
color: blue;
|
|
32
|
+
background-color: lightgray;
|
|
33
|
+
font-family: inherit;
|
|
34
|
+
font-size: 0.9em;
|
|
35
|
+
line-height: normal;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
text-align: left;
|
|
38
|
+
text-align-last: center;
|
|
39
|
+
/* height: 1.1em; */
|
|
40
|
+
vertical-align: baseline;
|
|
41
|
+
min-width: 2.5em;
|
|
42
|
+
}
|
|
43
|
+
.unit-container select::-ms-expand {
|
|
44
|
+
display: ${this.showUnitArrow?"block":"none"};
|
|
45
|
+
}
|
|
46
|
+
/* Custom arrow styles */
|
|
47
|
+
/*
|
|
48
|
+
.unit-container::after {
|
|
49
|
+
content: '▼';
|
|
50
|
+
font-size: 0.7em;
|
|
51
|
+
color: red;
|
|
52
|
+
position: absolute;
|
|
53
|
+
right: 0.3em;
|
|
54
|
+
top: 50%;
|
|
55
|
+
transform: translateY(-50%);
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
*/
|
|
59
|
+
.tooltip {
|
|
60
|
+
position: absolute;
|
|
61
|
+
bottom: 100%;
|
|
62
|
+
left: 50%;
|
|
63
|
+
transform: translateX(-50%);
|
|
64
|
+
padding: 0;
|
|
65
|
+
display: none;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
}
|
|
69
|
+
.unit-container:hover .tooltip {
|
|
70
|
+
display: block;
|
|
71
|
+
}
|
|
72
|
+
.tooltip a {
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
color: blue;
|
|
75
|
+
}
|
|
76
|
+
.tooltip a:hover {
|
|
77
|
+
text-decoration: underline;
|
|
78
|
+
}
|
|
79
|
+
</style>
|
|
80
|
+
|
|
81
|
+
<div class="quantity">
|
|
82
|
+
<span class="value">${t}</span>
|
|
83
|
+
<div class="unit-container">
|
|
84
|
+
<select>
|
|
85
|
+
${(k[this.unitCategory]||[this.unit]).map(e=>`<option value="${e}" ${e===this.unit?"selected":""}>
|
|
86
|
+
${e}</option>`).join("")}
|
|
87
|
+
</select>
|
|
88
|
+
|
|
89
|
+
${this.showUnitArrow&&this.unitCategory!=="Custom"?`
|
|
90
|
+
<a class="tooltip" href="https://v2-docs.donwen.com/daily-calculations/unit-converter.html"
|
|
91
|
+
title="Unit Converter for All Categories" target="_blank">
|
|
92
|
+
<img src="${this.e3dLogoUrl}" width="12" />
|
|
93
|
+
</a>
|
|
94
|
+
`:""}
|
|
95
|
+
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
`,this.updateDropdownWidth()}updateDropdownWidth(){const t=this.shadowRoot.querySelector("select");if(!t)return;const e=document.createElement("span");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;const i=e.offsetWidth;document.body.removeChild(e);const s=this.showUnitArrow?16:6,m=this.showUnitArrow?8:0;let h=i+s+m+2;h=Math.max(h,30),t.style.width=`${h}px`}attachEventListeners(){this.shadowRoot.addEventListener("change",this.handleUnitChange.bind(this));const t=this.shadowRoot.querySelector(".unit-container");t&&(t.addEventListener("mouseover",this.handleUnitContainerMouseOver.bind(this)),t.addEventListener("mouseout",this.handleUnitContainerMouseOut.bind(this)))}removeEventListeners(){this.shadowRoot.removeEventListener("change",this.handleUnitChange.bind(this));const t=this.shadowRoot.querySelector(".unit-container");t&&(t.removeEventListener("mouseover",this.handleUnitContainerMouseOver.bind(this)),t.removeEventListener("mouseout",this.handleUnitContainerMouseOut.bind(this)))}handleUnitContainerMouseOver(){const t=this.shadowRoot.querySelector(".tooltip");t&&(this.tooltipTimeout=setTimeout(()=>{t.style.display="block"},1e3))}handleUnitContainerMouseOut(){const t=this.shadowRoot.querySelector(".tooltip");t&&(setTimeout(()=>{t.style.display="none"},2e3),clearTimeout(this.tooltipTimeout))}}class J extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.values=[],this.unit="",this.unitCategory="",this.decimalPlaces=2,this.showUnitArrow=!0}connectedCallback(){this.unit=this.getAttribute("unit")||"cm",this.values=this.getAttribute("values").split(",").map(Number).map(t=>this.parseValue(t,this.unit)),this.unitCategory=T(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()}static get observedAttributes(){return["values","unit","decimal-places","show-unit-arrow"]}attributeChangedCallback(t,e,i){if(t==="values")this.values=i.split(",").map(Number).map(s=>this.parseValue(s,this.unit));else if(t==="unit"){const s=this.unit;this.unit=i,this.unitCategory=T(i),s!==i&&(this.values=this.values.map(m=>d(m,s,i,this.unitCategory)))}else t==="decimal-places"?this.decimalPlaces=parseInt(i)||2:t==="show-unit-arrow"&&(this.showUnitArrow=i===null||i==="true");this.render()}render(){const t=this.values.map(e=>this.formatPairValue(e));this.shadowRoot.innerHTML=`
|
|
99
|
+
<style>
|
|
100
|
+
:host {
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
align-items: baseline;
|
|
103
|
+
vertical-align: baseline;
|
|
104
|
+
}
|
|
105
|
+
.quantity-pair {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: baseline;
|
|
108
|
+
position: relative;
|
|
109
|
+
}
|
|
110
|
+
.values {
|
|
111
|
+
margin-right: 2px;
|
|
112
|
+
margin-left: 2px;
|
|
113
|
+
position: relative;
|
|
114
|
+
}
|
|
115
|
+
.unit-container {
|
|
116
|
+
position: relative;
|
|
117
|
+
display: inline-flex;
|
|
118
|
+
align-items: baseline;
|
|
119
|
+
}
|
|
120
|
+
.unit-container select {
|
|
121
|
+
appearance: ${this.showUnitArrow?"auto":"none"};
|
|
122
|
+
-webkit-appearance: ${this.showUnitArrow?"auto":"none"};
|
|
123
|
+
-moz-appearance: ${this.showUnitArrow?"auto":"none"};
|
|
124
|
+
border-radius: 0.15em;
|
|
125
|
+
border: none;
|
|
126
|
+
margin: 0;
|
|
127
|
+
padding: 0 0.1em 0 0.2em;
|
|
128
|
+
color: blue;
|
|
129
|
+
background-color: lightgray;
|
|
130
|
+
font-family: inherit;
|
|
131
|
+
font-size: 0.9em;
|
|
132
|
+
line-height: normal;
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
text-align: left;
|
|
135
|
+
text-align-last: center;
|
|
136
|
+
vertical-align: baseline;
|
|
137
|
+
min-width: 2.5em;
|
|
138
|
+
}
|
|
139
|
+
</style>
|
|
140
|
+
|
|
141
|
+
<div class="quantity-pair">
|
|
142
|
+
<span class="values">(${t.join(", ")})</span>
|
|
143
|
+
<div class="unit-container">
|
|
144
|
+
<select>
|
|
145
|
+
${(k[this.unitCategory]||[this.unit]).map(e=>`<option value="${e}" ${e===this.unit?"selected":""}>
|
|
146
|
+
${e}</option>`).join("")}
|
|
147
|
+
</select>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
`,this.updateDropdownWidth()}updateDropdownWidth(){const t=this.shadowRoot.querySelector("select");if(!t)return;const e=document.createElement("span");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;const i=e.offsetWidth;document.body.removeChild(e);const s=this.showUnitArrow?16:6,m=this.showUnitArrow?8:0;let h=i+s+m+2;h=Math.max(h,30),t.style.width=`${h}px`}attachEventListeners(){this.shadowRoot.addEventListener("change",this.handleUnitChange.bind(this))}parseValue(t,e){return e==="ft-in"?P(t):parseFloat(t)}formatPairValue(t){return this.unit==="ft-in"?S(t):O(t,this.decimalPlaces)}handleUnitChange(t){if(t.target.tagName==="SELECT"){const e=t.target.value;this.values=this.values.map(i=>d(i,this.unit,e,this.unitCategory)),this.unit=e,this.render()}this.updateDropdownWidth()}}class V extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.values=[],this.unit="",this.unitCategory="",this.decimalPlaces=2,this.showUnitArrow=!0,this.format="",this.hasParentheses=!1}connectedCallback(){this.unit=this.getAttribute("unit")||"cm",this.parseTripletValues(this.getAttribute("values")),this.unitCategory=T(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()}static get observedAttributes(){return["values","unit","decimal-places","show-unit-arrow"]}attributeChangedCallback(t,e,i){if(t==="values")this.parseTripletValues(i);else if(t==="unit"){const s=this.unit;this.unit=i,this.unitCategory=T(i),s!==i&&(this.values=this.values.map(m=>d(m,s,i,this.unitCategory)))}else t==="decimal-places"?this.decimalPlaces=parseInt(i)||2:t==="show-unit-arrow"&&(this.showUnitArrow=i===null||i==="true");this.render()}parseValue(t,e){return e==="ft-in"?P(t):parseFloat(t)}parseTripletValues(t){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")}formatTripletValue(t){return this.unit==="ft-in"?S(t):O(t,this.decimalPlaces)}formatTriplet(t){let e="";const i=t.map(s=>this.formatTripletValue(s));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}render(){const t=this.formatTriplet(this.values);this.shadowRoot.innerHTML=`
|
|
151
|
+
<style>
|
|
152
|
+
:host {
|
|
153
|
+
display: inline-flex;
|
|
154
|
+
align-items: baseline;
|
|
155
|
+
vertical-align: baseline;
|
|
156
|
+
}
|
|
157
|
+
.quantity-triplet {
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
align-items: baseline;
|
|
160
|
+
position: relative;
|
|
161
|
+
}
|
|
162
|
+
.values {
|
|
163
|
+
margin-right: 2px;
|
|
164
|
+
position: relative;
|
|
165
|
+
}
|
|
166
|
+
.unit-text,
|
|
167
|
+
.unit-container,
|
|
168
|
+
.unit-container select {
|
|
169
|
+
color: blue;
|
|
170
|
+
background-color: lightgray;
|
|
171
|
+
font-family: inherit;
|
|
172
|
+
font-size: 0.9em;
|
|
173
|
+
line-height: normal;
|
|
174
|
+
border-radius: 0.15em;
|
|
175
|
+
padding: 0 0.2em;
|
|
176
|
+
}
|
|
177
|
+
.unit-container {
|
|
178
|
+
position: relative;
|
|
179
|
+
display: inline-flex;
|
|
180
|
+
align-items: baseline;
|
|
181
|
+
}
|
|
182
|
+
.unit-container select {
|
|
183
|
+
appearance: ${this.showUnitArrow?"auto":"none"};
|
|
184
|
+
-webkit-appearance: ${this.showUnitArrow?"auto":"none"};
|
|
185
|
+
-moz-appearance: ${this.showUnitArrow?"auto":"none"};
|
|
186
|
+
border: none;
|
|
187
|
+
margin: 0;
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
text-align: left;
|
|
190
|
+
text-align-last: center;
|
|
191
|
+
min-width: 2.5em;
|
|
192
|
+
}
|
|
193
|
+
</style>
|
|
194
|
+
|
|
195
|
+
<span class="quantity-triplet">
|
|
196
|
+
${this.hasParentheses?"(":""}
|
|
197
|
+
<span class="values">${t}</span>
|
|
198
|
+
${this.hasParentheses&&this.format!=="x"?")":""}
|
|
199
|
+
<div class="unit-container">
|
|
200
|
+
<select>
|
|
201
|
+
${(k[this.unitCategory]||[this.unit]).map(e=>`<option value="${e}" ${e===this.unit?"selected":""}>
|
|
202
|
+
${e}</option>`).join("")}
|
|
203
|
+
</select>
|
|
204
|
+
</div>
|
|
205
|
+
${this.hasParentheses&&this.format==="x"?")":""}
|
|
206
|
+
</span>
|
|
207
|
+
`,this.updateDropdownWidth()}updateDropdownWidth(){const t=this.shadowRoot.querySelector("select");if(!t)return;const e=document.createElement("span");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;const i=e.offsetWidth;document.body.removeChild(e);const s=this.showUnitArrow?16:6,m=this.showUnitArrow?8:0;let h=i+s+m+2;h=Math.max(h,30),t.style.width=`${h}px`}attachEventListeners(){this.shadowRoot.addEventListener("change",this.handleUnitChange.bind(this))}handleUnitChange(t){if(t.target.tagName==="SELECT"){const e=t.target.value;this.values=this.values.map(i=>d(i,this.unit,e,this.unitCategory)),this.unit=e,this.render()}this.updateDropdownWidth()}}class G extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.count=0}connectedCallback(){this.render(),this.attachEventListeners()}render(){this.shadowRoot.innerHTML=`
|
|
208
|
+
<style>
|
|
209
|
+
:host {
|
|
210
|
+
display: inline-block;
|
|
211
|
+
font-family: Arial, sans-serif;
|
|
212
|
+
}
|
|
213
|
+
.counter {
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
gap: 10px;
|
|
217
|
+
padding: 10px;
|
|
218
|
+
border: 1px solid #ccc;
|
|
219
|
+
border-radius: 5px;
|
|
220
|
+
}
|
|
221
|
+
button {
|
|
222
|
+
font-size: 16px;
|
|
223
|
+
background-color: blue;
|
|
224
|
+
color: red;
|
|
225
|
+
padding: 5px 10px;
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
}
|
|
228
|
+
.count {
|
|
229
|
+
font-size: 18px;
|
|
230
|
+
font-weight: bold;
|
|
231
|
+
}
|
|
232
|
+
</style>
|
|
233
|
+
<div class="counter">
|
|
234
|
+
<button class="decrement">-</button>
|
|
235
|
+
<span class="count">${this.count}</span>
|
|
236
|
+
<button class="increment">+</button>
|
|
237
|
+
</div>
|
|
238
|
+
`}attachEventListeners(){const t=this.shadowRoot.querySelector(".increment"),e=this.shadowRoot.querySelector(".decrement");t.addEventListener("click",()=>this.increment()),e.addEventListener("click",()=>this.decrement())}increment(){this.count++,this.updateCount()}decrement(){this.count--,this.updateCount()}updateCount(){const t=this.shadowRoot.querySelector(".count");t.textContent=this.count}}const A=(l,t)=>{typeof window<"u"&&!customElements.get(l)&&customElements.define(l,t)};A("physical-quantity",E),A("uc-qty",class extends E{}),A("uc-qty-pair",J),A("uc-qty-triplet",V),A("new-component-1",G),u.NewComponent1=G,u.PhysicalQuantity=E,u.UcQtyPair=J,u.UcQtyTriplet=V,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED