physical-quantity 1.1.29 → 1.1.30
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 +5 -2
- package/dist/pq.es.js +456 -1
- package/dist/pq.umd.js +472 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,6 +94,7 @@ The physical-quantity component supports the following attributes:
|
|
|
94
94
|
- <ins>_value_</ins>: The initial value of the physical quantity. It can be any number.
|
|
95
95
|
- <ins>_unit_</ins>: The initial unit of the physical quantity. It must be a valid unit within the supported unit category (e.g., mm, cm, m, in, ft for length).
|
|
96
96
|
- <ins>_decimal-places_</ins>: web author can specify the decimal-places depending on the magnitude of the quantity. Default to be 3.
|
|
97
|
+
- <ins>_show-unit-arrow_</ins>: specify to show the downward arrow following the units list. Default to be true. When set to false, it is suitable when the author wants to show in a compact format.
|
|
97
98
|
|
|
98
99
|
### Supported Units
|
|
99
100
|
Currently, the component supports the following categories and units:
|
|
@@ -145,7 +146,7 @@ Currently, the component supports the following categories and units:
|
|
|
145
146
|
| | kA||
|
|
146
147
|
| | MA||
|
|
147
148
|
| | esu/s |
|
|
148
|
-
| more to update. | (feel free to send your request for other units) ||
|
|
149
|
+
| more to update. | (feel free to send your request for other units & categories) ||
|
|
149
150
|
|
|
150
151
|
## License
|
|
151
152
|
This project is licensed under the MIT License. See the LICENSE file for more details.
|
|
@@ -156,6 +157,7 @@ Contributions are welcome! Please contact the developer for any bugs, features,
|
|
|
156
157
|
## Change Log
|
|
157
158
|
| Version | Date | Description |
|
|
158
159
|
|---|---|---|
|
|
160
|
+
| v1.1.30 |20240615| Added "show-unit-arrow" prop to allow web author to create a compact UI; Unit width is now responsive to the chosen unit; Author can force init unit.|
|
|
159
161
|
| v1.1.28 |20240610| Tooltip for unit list provides a link to the unit converter page for all unit categories. Added more categories.|
|
|
160
162
|
| v1.1.21 |20240603| Added alias uc-qty. |
|
|
161
163
|
| v1.1.19 |20240602| Changed to umd for unpkg, and es for module. |
|
|
@@ -164,4 +166,5 @@ Contributions are welcome! Please contact the developer for any bugs, features,
|
|
|
164
166
|
If you have any questions or feedback, feel free to contact me at don.wen@yahoo.com.
|
|
165
167
|
For more info, please visit:
|
|
166
168
|
[AutoCalcs](https://v2.donwen.com/)
|
|
167
|
-
[AutoCalcs Docs and Library](https://v2-docs.donwen.com/)
|
|
169
|
+
[AutoCalcs Docs and Library](https://v2-docs.donwen.com/)
|
|
170
|
+
[Demo](https://v2-docs.donwen.com/demo/index.html)
|
package/dist/pq.es.js
CHANGED
|
@@ -1 +1,456 @@
|
|
|
1
|
-
const _0x4fd7ec=_0x1b6d;(function(_0x3fbde2,_0x199991){const _0xbdd86b=_0x1b6d,_0x3f11ad=_0x3fbde2();while(!![]){try{const _0x56a199=-parseInt(_0xbdd86b(0xae))/0x1*(-parseInt(_0xbdd86b(0x91))/0x2)+parseInt(_0xbdd86b(0x7c))/0x3+-parseInt(_0xbdd86b(0xb2))/0x4*(-parseInt(_0xbdd86b(0x8b))/0x5)+-parseInt(_0xbdd86b(0x81))/0x6+-parseInt(_0xbdd86b(0x75))/0x7+-parseInt(_0xbdd86b(0xb5))/0x8+parseInt(_0xbdd86b(0xbb))/0x9*(-parseInt(_0xbdd86b(0x80))/0xa);if(_0x56a199===_0x199991)break;else _0x3f11ad['push'](_0x3f11ad['shift']());}catch(_0x40fb3b){_0x3f11ad['push'](_0x3f11ad['shift']());}}}(_0x182e,0xb7833));const s=0.45359237,o=25.4/0x3e8,n=0xc*o,c=0x18bcd,a=133.322387415;class r extends HTMLElement{constructor(){const _0xbce791=_0x1b6d;super(),this['attachShadow']({'mode':_0xbce791(0xa8)}),this['value']=0x0,this[_0xbce791(0x82)]='mm',this[_0xbce791(0x7a)]=_0xbce791(0x72),this[_0xbce791(0x92)]=null,this['decimalPlaces']=0x3,this[_0xbce791(0xa6)]='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',this[_0xbce791(0xac)]={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0xbce791(0x97)],'Pressure':['Pa',_0xbce791(0x8e),_0xbce791(0xa9),'GPa',_0xbce791(0x73),_0xbce791(0x6e),_0xbce791(0x89),'mm\x20HG',_0xbce791(0x6f),_0xbce791(0x9e),_0xbce791(0x71),'m\x20W.C.','in\x20W.C.',_0xbce791(0xad),_0xbce791(0x79),_0xbce791(0xab),_0xbce791(0xbc)],'Density':[_0xbce791(0x90),_0xbce791(0x6a),_0xbce791(0x95),_0xbce791(0xbd),'lbm/ft³','lbm/in³'],'Time':[_0xbce791(0x99),'s',_0xbce791(0xa2),'h',_0xbce791(0xa4),_0xbce791(0x98),'week'],'ElectricalCurrent':['A','Ampere[amp]','mA','µA','kA','MA',_0xbce791(0xa5)]},this[_0xbce791(0x77)]={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':o,'ft':n},'Mass':{'kg':0x1,'g':0.001,'lbm':s},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':c,'mm\x20HG':a,'cm\x20HG':a*0xa,'in\x20HG':a*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':o*0x3e8*9.80665,'psf':s*9.80665/Math['pow'](n,0x2),'psi':s*9.80665/Math['pow'](o,0x2),'ksi':s*9.80665/Math[_0xbce791(0x87)](o,0x2)*0x3e8,'ksi[kip/in²]':s*9.80665/Math[_0xbce791(0x87)](o,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0xbce791(0x87)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0xbce791(0x87)](0.001,0x3),'lbm/ft³':s/Math[_0xbce791(0x87)](n,0x3),'lbm/in³':s/Math[_0xbce791(0x87)](o,0x3)},'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}},this['render']();}static get['observedAttributes'](){const _0x47429e=_0x1b6d;return[_0x47429e(0x88),'unit',_0x47429e(0xb0)];}['attributeChangedCallback'](_0x4047e5,_0xbe338d,_0x48d991){const _0x5cc497=_0x1b6d;_0x4047e5===_0x5cc497(0x88)?this['value']=parseFloat(_0x48d991):_0x4047e5===_0x5cc497(0x82)?(this[_0x5cc497(0x82)]=_0x48d991,this[_0x5cc497(0x7a)]=this['getUnitCategory'](_0x48d991)):_0x4047e5==='decimal-places'&&(this['decimalPlaces']=parseInt(_0x48d991)||0x3),this['render']();}[_0x4fd7ec(0xb3)](_0x4a7478){const _0x44e3a6=_0x4fd7ec;for(const _0x8ec474 in this[_0x44e3a6(0xac)])if(this['units'][_0x8ec474][_0x44e3a6(0x8a)](_0x4a7478))return _0x8ec474;return null;}[_0x4fd7ec(0x6b)](){const _0x5ee318=_0x4fd7ec;this[_0x5ee318(0x9f)]['addEventListener'](_0x5ee318(0x6c),this[_0x5ee318(0x7d)][_0x5ee318(0x7e)](this)),this[_0x5ee318(0xb6)]();}[_0x4fd7ec(0xba)](){const _0x483598=_0x4fd7ec;this[_0x483598(0x9f)][_0x483598(0x7f)](_0x483598(0x6c),this['handleUnitChange'][_0x483598(0x7e)](this));}[_0x4fd7ec(0x8c)](_0x3a510f){const _0x46fcd4=_0x4fd7ec;if(_0x3a510f['target'][_0x46fcd4(0x7b)](_0x46fcd4(0x70))){const _0x18d6d6=this[_0x46fcd4(0x9f)][_0x46fcd4(0x85)]('select');_0x18d6d6&&(_0x18d6d6[_0x46fcd4(0xa1)](),_0x18d6d6[_0x46fcd4(0xaf)]());}}['handleUnitChange'](_0x12f77b){const _0x466b4d=_0x4fd7ec;if(_0x12f77b[_0x466b4d(0x8d)]['tagName']===_0x466b4d(0x83)){const _0x33ac3f=_0x12f77b[_0x466b4d(0x8d)]['value'],_0x31f6cd=this[_0x466b4d(0x77)][this['unitCategory']][this['unit']]/this[_0x466b4d(0x77)][this[_0x466b4d(0x7a)]][_0x33ac3f];this['value']=this['value']*_0x31f6cd,this[_0x466b4d(0x82)]=_0x33ac3f,this['render']();}}['formatValue'](_0x1bc8cc){const _0x1a8d71=_0x4fd7ec;return Number[_0x1a8d71(0xbe)](_0x1bc8cc)?_0x1bc8cc[_0x1a8d71(0xb7)]():Math[_0x1a8d71(0x74)](_0x1bc8cc)!==0x0?_0x1bc8cc[_0x1a8d71(0xa3)](this['decimalPlaces'])['replace'](/0+$/,'')['replace'](/\.$/,''):_0x1bc8cc['toPrecision'](0x3);}[_0x4fd7ec(0xb6)](){const _0x1d0dfc=_0x4fd7ec;this['shadowRoot'][_0x1d0dfc(0xb1)]=_0x1d0dfc(0x9b)+this[_0x1d0dfc(0x78)](this[_0x1d0dfc(0x88)])+_0x1d0dfc(0x76)+this[_0x1d0dfc(0xac)][this[_0x1d0dfc(0x7a)]][_0x1d0dfc(0x96)](_0x976724=>'<option\x20value=\x22'+_0x976724+'\x22\x20'+(_0x976724===this[_0x1d0dfc(0x82)]?_0x1d0dfc(0x6d):'')+_0x1d0dfc(0xb4)+_0x976724+'</option>')[_0x1d0dfc(0xb8)]('')+_0x1d0dfc(0xa7)+this[_0x1d0dfc(0xa6)]+_0x1d0dfc(0x84);const _0x552928=this[_0x1d0dfc(0x9f)][_0x1d0dfc(0x85)](_0x1d0dfc(0x70)),_0x382205=this['shadowRoot']['querySelectorAll']('.tooltip')[0x0];_0x552928[_0x1d0dfc(0xb9)](_0x1d0dfc(0xa0),()=>{const _0x5269dd=_0x1d0dfc;this[_0x5269dd(0x92)]=setTimeout(()=>{const _0x1d7add=_0x5269dd;_0x382205[_0x1d7add(0x9c)]['display']=_0x1d7add(0x86);},0x3e8);}),_0x552928[_0x1d0dfc(0xb9)]('mouseout',()=>{setTimeout(()=>{const _0x576516=_0x1b6d;_0x382205[_0x576516(0x9c)][_0x576516(0x8f)]=_0x576516(0x9a);},0x7d0),clearTimeout(this['tooltipTimeout']);}),_0x382205['addEventListener'](_0x1d0dfc(0xaa),()=>{setTimeout(()=>{const _0x56a795=_0x1b6d;_0x382205[_0x56a795(0x9c)]['display']=_0x56a795(0x9a);},0x7d0);});}}customElements[_0x4fd7ec(0x94)](_0x4fd7ec(0x9d),r);function _0x1b6d(_0x1906bf,_0x2f6ee7){const _0x182e48=_0x182e();return _0x1b6d=function(_0x1b6dbe,_0x25bad8){_0x1b6dbe=_0x1b6dbe-0x6a;let _0x362035=_0x182e48[_0x1b6dbe];return _0x362035;},_0x1b6d(_0x1906bf,_0x2f6ee7);}class m extends r{}customElements[_0x4fd7ec(0x94)](_0x4fd7ec(0x93),m);export{r as default};function _0x182e(){const _0x563983=['define','g/cm³','map','lbm','day','s[second]','none','\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}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\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\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-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\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\x20\x20.unit-container\x20select\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:\x20center;\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\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\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\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:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\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\x20\x20\x20\x20\x20\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\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\x20style=\x22position:\x20relative;\x22>','style','physical-quantity','in\x20HG','shadowRoot','mouseover','focus','minute','toFixed','h[hour]','esu/s','e3dLogoUrl','\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<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','open','MPa','mouseout','ksi','units','psf','46vBXVcc','click','decimal-places','innerHTML','8LdCFxq','getUnitCategory','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4777032PBuUCB','render','toString','join','addEventListener','disconnectedCallback','117siuMjv','ksi[kip/in²]','g/mm³','isInteger','kg/L','connectedCallback','change','selected','mbar','cm\x20HG','.unit-container','mm\x20W.C.','Length','bar','floor','6469785WFDLBL','</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','unitConversion','formatValue','psi','unitCategory','closest','3797292KMIQxD','handleUnitChange','bind','removeEventListener','132960rQpBoP','1862586Cgvbrj','unit','SELECT','\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</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\x20\x20\x0a\x20\x20\x20\x20','querySelector','block','pow','value','atm','includes','840835YEedRb','handleArrowClick','target','kPa','display','kg/m³','50184wDRjPa','tooltipTimeout','uc-qty'];_0x182e=function(){return _0x563983;};return _0x182e();}
|
|
1
|
+
const _0x3ab5ea = _0x5953;
|
|
2
|
+
(function (_0x191888, _0x11c5a5) {
|
|
3
|
+
const _0x25b7de = _0x5953,
|
|
4
|
+
_0x3981ef = _0x191888();
|
|
5
|
+
while (!![]) {
|
|
6
|
+
try {
|
|
7
|
+
const _0x141277 =
|
|
8
|
+
(-parseInt(_0x25b7de(0x109)) / 0x1) *
|
|
9
|
+
(parseInt(_0x25b7de(0x12b)) / 0x2) +
|
|
10
|
+
-parseInt(_0x25b7de(0x132)) / 0x3 +
|
|
11
|
+
(parseInt(_0x25b7de(0x111)) / 0x4) * (parseInt(_0x25b7de(0xdf)) / 0x5) +
|
|
12
|
+
(-parseInt(_0x25b7de(0xfa)) / 0x6) *
|
|
13
|
+
(-parseInt(_0x25b7de(0xf8)) / 0x7) +
|
|
14
|
+
(parseInt(_0x25b7de(0x122)) / 0x8) *
|
|
15
|
+
(parseInt(_0x25b7de(0x107)) / 0x9) +
|
|
16
|
+
(-parseInt(_0x25b7de(0xdb)) / 0xa) *
|
|
17
|
+
(-parseInt(_0x25b7de(0xfe)) / 0xb) +
|
|
18
|
+
(-parseInt(_0x25b7de(0x129)) / 0xc) * (parseInt(_0x25b7de(0xe5)) / 0xd);
|
|
19
|
+
if (_0x141277 === _0x11c5a5) break;
|
|
20
|
+
else _0x3981ef["push"](_0x3981ef["shift"]());
|
|
21
|
+
} catch (_0x55fb3d) {
|
|
22
|
+
_0x3981ef["push"](_0x3981ef["shift"]());
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
})(_0x3902, 0x681f1);
|
|
26
|
+
const s = 0.45359237,
|
|
27
|
+
o = 25.4 / 0x3e8,
|
|
28
|
+
n = 0xc * o,
|
|
29
|
+
c = 0x18bcd,
|
|
30
|
+
a = 133.322387415,
|
|
31
|
+
d = {
|
|
32
|
+
Length: ["m", "km", "cm", "mm", "in", "ft"],
|
|
33
|
+
Mass: ["g", "kg", _0x3ab5ea(0xdd)],
|
|
34
|
+
Pressure: [
|
|
35
|
+
"Pa",
|
|
36
|
+
_0x3ab5ea(0xfd),
|
|
37
|
+
_0x3ab5ea(0x101),
|
|
38
|
+
_0x3ab5ea(0xd7),
|
|
39
|
+
_0x3ab5ea(0xeb),
|
|
40
|
+
_0x3ab5ea(0xc4),
|
|
41
|
+
_0x3ab5ea(0x12e),
|
|
42
|
+
_0x3ab5ea(0xe2),
|
|
43
|
+
"cm\x20HG",
|
|
44
|
+
_0x3ab5ea(0x131),
|
|
45
|
+
_0x3ab5ea(0xcc),
|
|
46
|
+
_0x3ab5ea(0xe4),
|
|
47
|
+
_0x3ab5ea(0xf0),
|
|
48
|
+
_0x3ab5ea(0xf4),
|
|
49
|
+
_0x3ab5ea(0xde),
|
|
50
|
+
_0x3ab5ea(0xea),
|
|
51
|
+
"ksi[kip/in²]",
|
|
52
|
+
],
|
|
53
|
+
Density: [
|
|
54
|
+
_0x3ab5ea(0xd1),
|
|
55
|
+
_0x3ab5ea(0xbd),
|
|
56
|
+
"g/cm³",
|
|
57
|
+
_0x3ab5ea(0x123),
|
|
58
|
+
_0x3ab5ea(0x10f),
|
|
59
|
+
_0x3ab5ea(0xc5),
|
|
60
|
+
],
|
|
61
|
+
Time: [
|
|
62
|
+
_0x3ab5ea(0xec),
|
|
63
|
+
"s",
|
|
64
|
+
_0x3ab5ea(0xcd),
|
|
65
|
+
"h",
|
|
66
|
+
_0x3ab5ea(0x128),
|
|
67
|
+
_0x3ab5ea(0x127),
|
|
68
|
+
_0x3ab5ea(0x11e),
|
|
69
|
+
],
|
|
70
|
+
ElectricalCurrent: [
|
|
71
|
+
"A",
|
|
72
|
+
"Ampere[amp]",
|
|
73
|
+
"mA",
|
|
74
|
+
"µA",
|
|
75
|
+
"kA",
|
|
76
|
+
"MA",
|
|
77
|
+
_0x3ab5ea(0xf5),
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
m = {
|
|
81
|
+
Length: { m: 0x1, km: 0x3e8, cm: 0.01, mm: 0.001, in: o, ft: n },
|
|
82
|
+
Mass: { kg: 0x1, g: 0.001, lbm: s },
|
|
83
|
+
Pressure: {
|
|
84
|
+
Pa: 0x1,
|
|
85
|
+
kPa: 0x3e8,
|
|
86
|
+
MPa: 0xf4240,
|
|
87
|
+
GPa: 0x3b9aca00,
|
|
88
|
+
bar: 0x64 * 0x3e8,
|
|
89
|
+
mbar: 0x64,
|
|
90
|
+
atm: c,
|
|
91
|
+
"mm\x20HG": a,
|
|
92
|
+
"cm\x20HG": a * 0xa,
|
|
93
|
+
"in\x20HG": a * 25.4,
|
|
94
|
+
"mm\x20W.C.": (0x1 / 0x3e8) * 0x3e8 * 9.80665,
|
|
95
|
+
"m\x20W.C.": 0x1 * 0x3e8 * 9.80665,
|
|
96
|
+
"in\x20W.C.": o * 0x3e8 * 9.80665,
|
|
97
|
+
psf: (s * 9.80665) / Math[_0x3ab5ea(0xdc)](n, 0x2),
|
|
98
|
+
psi: (s * 9.80665) / Math[_0x3ab5ea(0xdc)](o, 0x2),
|
|
99
|
+
ksi: ((s * 9.80665) / Math[_0x3ab5ea(0xdc)](o, 0x2)) * 0x3e8,
|
|
100
|
+
"ksi[kip/in²]": ((s * 9.80665) / Math[_0x3ab5ea(0xdc)](o, 0x2)) * 0x3e8,
|
|
101
|
+
},
|
|
102
|
+
Density: {
|
|
103
|
+
"kg/m³": 0x1,
|
|
104
|
+
"kg/L": 0x3e8,
|
|
105
|
+
"g/cm³": 0x1 / 0x3e8 / Math[_0x3ab5ea(0xdc)](0.01, 0x3),
|
|
106
|
+
"g/mm³": 0x1 / 0x3e8 / Math["pow"](0.001, 0x3),
|
|
107
|
+
"lbm/ft³": s / Math[_0x3ab5ea(0xdc)](n, 0x3),
|
|
108
|
+
"lbm/in³": s / Math["pow"](o, 0x3),
|
|
109
|
+
},
|
|
110
|
+
Time: {
|
|
111
|
+
"s[second]": 0x1,
|
|
112
|
+
s: 0x1,
|
|
113
|
+
minute: 0x3c,
|
|
114
|
+
h: 0xe10,
|
|
115
|
+
"h[hour]": 0xe10,
|
|
116
|
+
day: 0xe10 * 0x18,
|
|
117
|
+
week: 0xe10 * 0x18 * 0x7,
|
|
118
|
+
},
|
|
119
|
+
ElectricalCurrent: {
|
|
120
|
+
A: 0x1,
|
|
121
|
+
"Ampere[amp]": 0x1,
|
|
122
|
+
mA: 0.001,
|
|
123
|
+
µA: 0.000001,
|
|
124
|
+
kA: 0x3e8,
|
|
125
|
+
MA: 0xf4240,
|
|
126
|
+
"esu/s": 0x1 / 0xb2d05e00,
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
class h extends HTMLElement {
|
|
130
|
+
constructor() {
|
|
131
|
+
const _0x27a547 = _0x3ab5ea;
|
|
132
|
+
super(),
|
|
133
|
+
this["attachShadow"]({ mode: _0x27a547(0xe6) }),
|
|
134
|
+
(this[_0x27a547(0xc2)] = 0x0),
|
|
135
|
+
(this[_0x27a547(0x117)] = null),
|
|
136
|
+
(this[_0x27a547(0xf1)] = 0x3),
|
|
137
|
+
(this[_0x27a547(0x110)] = _0x27a547(0xc6)),
|
|
138
|
+
(this[_0x27a547(0x108)] = d),
|
|
139
|
+
(this["unitConversion"] = m),
|
|
140
|
+
(this[_0x27a547(0xee)] =
|
|
141
|
+
!this[_0x27a547(0x115)](_0x27a547(0xf9)) ||
|
|
142
|
+
this[_0x27a547(0x125)](_0x27a547(0xf9)) === _0x27a547(0xf2)),
|
|
143
|
+
this[_0x27a547(0xd5)]();
|
|
144
|
+
}
|
|
145
|
+
static get [_0x3ab5ea(0x112)]() {
|
|
146
|
+
const _0x51741d = _0x3ab5ea;
|
|
147
|
+
return [_0x51741d(0xc2), "unit", _0x51741d(0x124), _0x51741d(0xf9)];
|
|
148
|
+
}
|
|
149
|
+
[_0x3ab5ea(0xf6)](_0x31ddd1, _0x295704, _0x4c9632) {
|
|
150
|
+
const _0x4080f8 = _0x3ab5ea;
|
|
151
|
+
_0x31ddd1 === _0x4080f8(0xc2)
|
|
152
|
+
? (this[_0x4080f8(0xc2)] = parseFloat(_0x4c9632))
|
|
153
|
+
: _0x31ddd1 === "unit"
|
|
154
|
+
? ((this[_0x4080f8(0xf7)] = _0x4c9632),
|
|
155
|
+
(this[_0x4080f8(0xb7)] = this[_0x4080f8(0xcf)](_0x4c9632)))
|
|
156
|
+
: _0x31ddd1 === "decimal-places"
|
|
157
|
+
? (this["decimalPlaces"] = parseInt(_0x4c9632) || 0x3)
|
|
158
|
+
: _0x31ddd1 === _0x4080f8(0xf9) &&
|
|
159
|
+
(this[_0x4080f8(0xee)] =
|
|
160
|
+
_0x4c9632 === null || _0x4c9632 === _0x4080f8(0xf2)),
|
|
161
|
+
this[_0x4080f8(0xd5)]();
|
|
162
|
+
}
|
|
163
|
+
[_0x3ab5ea(0xcf)](_0x37c907) {
|
|
164
|
+
const _0x3f3cdb = _0x3ab5ea;
|
|
165
|
+
for (const _0x5f1307 in this["units"])
|
|
166
|
+
if (this["units"][_0x5f1307][_0x3f3cdb(0xd4)](_0x37c907))
|
|
167
|
+
return _0x5f1307;
|
|
168
|
+
return (
|
|
169
|
+
(this["units"][_0x3f3cdb(0xd6)] = this[_0x3f3cdb(0x108)]["Custom"] || []),
|
|
170
|
+
this[_0x3f3cdb(0x108)]["Custom"][_0x3f3cdb(0xc8)](_0x37c907),
|
|
171
|
+
(this[_0x3f3cdb(0x10d)][_0x3f3cdb(0xd6)] =
|
|
172
|
+
this[_0x3f3cdb(0x10d)][_0x3f3cdb(0xd6)] || {}),
|
|
173
|
+
(this[_0x3f3cdb(0x10d)][_0x3f3cdb(0xd6)][_0x37c907] = 0x1),
|
|
174
|
+
"Custom"
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
["connectedCallback"]() {
|
|
178
|
+
const _0x350ca3 = _0x3ab5ea;
|
|
179
|
+
this[_0x350ca3(0xe1)][_0x350ca3(0xd8)](
|
|
180
|
+
_0x350ca3(0x134),
|
|
181
|
+
this[_0x350ca3(0xff)][_0x350ca3(0xe0)](this)
|
|
182
|
+
),
|
|
183
|
+
(this[_0x350ca3(0xf7)] = this["getAttribute"]("unit") || "mm"),
|
|
184
|
+
(this[_0x350ca3(0xb7)] = this[_0x350ca3(0xcf)](this[_0x350ca3(0xf7)])),
|
|
185
|
+
(this["showUnitArrow"] = this[_0x350ca3(0x115)](_0x350ca3(0xf9))
|
|
186
|
+
? this[_0x350ca3(0x125)]("show-unit-arrow") === _0x350ca3(0xf2)
|
|
187
|
+
: this["unitCategory"] !== _0x350ca3(0xd6)),
|
|
188
|
+
this[_0x350ca3(0xd5)]();
|
|
189
|
+
}
|
|
190
|
+
[_0x3ab5ea(0x11f)]() {
|
|
191
|
+
const _0x2ef633 = _0x3ab5ea;
|
|
192
|
+
this[_0x2ef633(0xe1)][_0x2ef633(0xda)](
|
|
193
|
+
_0x2ef633(0x134),
|
|
194
|
+
this["handleUnitChange"][_0x2ef633(0xe0)](this)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
[_0x3ab5ea(0xd3)](_0x2b812a) {
|
|
198
|
+
const _0xeea94a = _0x3ab5ea;
|
|
199
|
+
if (_0x2b812a[_0xeea94a(0x11a)][_0xeea94a(0xb5)](_0xeea94a(0x104))) {
|
|
200
|
+
const _0xd05440 = this[_0xeea94a(0xe1)][_0xeea94a(0x133)](
|
|
201
|
+
_0xeea94a(0xe9)
|
|
202
|
+
);
|
|
203
|
+
_0xd05440 && (_0xd05440[_0xeea94a(0xc0)](), _0xd05440["click"]());
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
["handleUnitChange"](_0x2f6b2c) {
|
|
207
|
+
const _0x38ab54 = _0x3ab5ea;
|
|
208
|
+
if (_0x2f6b2c[_0x38ab54(0x11a)][_0x38ab54(0x12a)] === _0x38ab54(0x113)) {
|
|
209
|
+
const _0x5f13da = _0x2f6b2c[_0x38ab54(0x11a)][_0x38ab54(0xc2)],
|
|
210
|
+
_0x6ae195 =
|
|
211
|
+
this[_0x38ab54(0x10d)][this[_0x38ab54(0xb7)]][this[_0x38ab54(0xf7)]] /
|
|
212
|
+
this[_0x38ab54(0x10d)][this[_0x38ab54(0xb7)]][_0x5f13da];
|
|
213
|
+
(this[_0x38ab54(0xc2)] = this[_0x38ab54(0xc2)] * _0x6ae195),
|
|
214
|
+
(this["unit"] = _0x5f13da),
|
|
215
|
+
this[_0x38ab54(0xd5)]();
|
|
216
|
+
}
|
|
217
|
+
this["updateDropdownWidth"]();
|
|
218
|
+
}
|
|
219
|
+
[_0x3ab5ea(0xfb)](_0x464336) {
|
|
220
|
+
const _0x5f2ad8 = _0x3ab5ea;
|
|
221
|
+
return Number[_0x5f2ad8(0x119)](_0x464336)
|
|
222
|
+
? _0x464336[_0x5f2ad8(0xd0)]()
|
|
223
|
+
: Math[_0x5f2ad8(0xef)](_0x464336) !== 0x0
|
|
224
|
+
? _0x464336[_0x5f2ad8(0x12f)](this[_0x5f2ad8(0xf1)])
|
|
225
|
+
["replace"](/0+$/, "")
|
|
226
|
+
[_0x5f2ad8(0xc9)](/\.$/, "")
|
|
227
|
+
: _0x464336[_0x5f2ad8(0xf3)](0x3);
|
|
228
|
+
}
|
|
229
|
+
[_0x3ab5ea(0xd5)]() {
|
|
230
|
+
const _0x3d41d3 = _0x3ab5ea;
|
|
231
|
+
this[_0x3d41d3(0xe1)]["innerHTML"] =
|
|
232
|
+
_0x3d41d3(0xc7) +
|
|
233
|
+
(this[_0x3d41d3(0xee)] ? "auto" : _0x3d41d3(0x12c)) +
|
|
234
|
+
_0x3d41d3(0x105) +
|
|
235
|
+
(this[_0x3d41d3(0xee)] ? _0x3d41d3(0xcb) : _0x3d41d3(0x12c)) +
|
|
236
|
+
_0x3d41d3(0xb8) +
|
|
237
|
+
(this[_0x3d41d3(0xee)] ? _0x3d41d3(0xcb) : _0x3d41d3(0x12c)) +
|
|
238
|
+
_0x3d41d3(0xe7) +
|
|
239
|
+
this[_0x3d41d3(0xfb)](this["value"]) +
|
|
240
|
+
"</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" +
|
|
241
|
+
(this[_0x3d41d3(0x108)][this[_0x3d41d3(0xb7)]] || [this[_0x3d41d3(0xf7)]])
|
|
242
|
+
[_0x3d41d3(0x103)](
|
|
243
|
+
(_0x598c6e) =>
|
|
244
|
+
_0x3d41d3(0xbc) +
|
|
245
|
+
_0x598c6e +
|
|
246
|
+
"\x22\x20" +
|
|
247
|
+
(_0x598c6e === this["unit"] ? _0x3d41d3(0xbe) : "") +
|
|
248
|
+
_0x3d41d3(0x12d) +
|
|
249
|
+
_0x598c6e +
|
|
250
|
+
_0x3d41d3(0xc3)
|
|
251
|
+
)
|
|
252
|
+
[_0x3d41d3(0x10c)]("") +
|
|
253
|
+
_0x3d41d3(0x102) +
|
|
254
|
+
(this[_0x3d41d3(0xee)] && this["unitCategory"] !== _0x3d41d3(0xd6)
|
|
255
|
+
? _0x3d41d3(0x116) + this[_0x3d41d3(0x110)] + _0x3d41d3(0xbf)
|
|
256
|
+
: "") +
|
|
257
|
+
_0x3d41d3(0x135);
|
|
258
|
+
const _0x574502 = this[_0x3d41d3(0xe1)][_0x3d41d3(0x133)](_0x3d41d3(0x104)),
|
|
259
|
+
_0x163f05 = this[_0x3d41d3(0xe1)][_0x3d41d3(0x118)](_0x3d41d3(0xb9))[0x0];
|
|
260
|
+
_0x574502 &&
|
|
261
|
+
_0x163f05 &&
|
|
262
|
+
(_0x574502[_0x3d41d3(0xd8)](_0x3d41d3(0xd2), () => {
|
|
263
|
+
const _0x39ce69 = _0x3d41d3;
|
|
264
|
+
this[_0x39ce69(0x117)] = setTimeout(() => {
|
|
265
|
+
const _0x55903d = _0x39ce69;
|
|
266
|
+
_0x163f05["style"][_0x55903d(0xba)] = _0x55903d(0xd9);
|
|
267
|
+
}, 0x3e8);
|
|
268
|
+
}),
|
|
269
|
+
_0x574502["addEventListener"](_0x3d41d3(0x130), () => {
|
|
270
|
+
const _0x3065e1 = _0x3d41d3;
|
|
271
|
+
setTimeout(() => {
|
|
272
|
+
const _0x598df4 = _0x5953;
|
|
273
|
+
_0x163f05[_0x598df4(0x120)][_0x598df4(0xba)] = _0x598df4(0x12c);
|
|
274
|
+
}, 0x7d0),
|
|
275
|
+
clearTimeout(this[_0x3065e1(0x117)]);
|
|
276
|
+
}),
|
|
277
|
+
_0x163f05["addEventListener"]("mouseout", () => {
|
|
278
|
+
setTimeout(() => {
|
|
279
|
+
const _0x558ffc = _0x5953;
|
|
280
|
+
_0x163f05[_0x558ffc(0x120)][_0x558ffc(0xba)] = _0x558ffc(0x12c);
|
|
281
|
+
}, 0x7d0);
|
|
282
|
+
})),
|
|
283
|
+
this["updateDropdownWidth"]();
|
|
284
|
+
}
|
|
285
|
+
[_0x3ab5ea(0x106)]() {
|
|
286
|
+
const _0x59d23f = _0x3ab5ea,
|
|
287
|
+
_0x40f2c2 = this["shadowRoot"][_0x59d23f(0x133)](_0x59d23f(0xe9)),
|
|
288
|
+
_0x147d8c = _0x40f2c2[_0x59d23f(0x114)][_0x40f2c2[_0x59d23f(0xe3)]],
|
|
289
|
+
_0x263e52 = document[_0x59d23f(0x10a)]("span");
|
|
290
|
+
(_0x263e52["style"][_0x59d23f(0x126)] = _0x59d23f(0xce)),
|
|
291
|
+
(_0x263e52[_0x59d23f(0x120)][_0x59d23f(0x11c)] = _0x59d23f(0x11d)),
|
|
292
|
+
(_0x263e52["style"]["font"] = getComputedStyle(_0x40f2c2)["font"]),
|
|
293
|
+
document[_0x59d23f(0xed)][_0x59d23f(0xc1)](_0x263e52),
|
|
294
|
+
(_0x263e52[_0x59d23f(0x11b)] = _0x147d8c[_0x59d23f(0x10e)]);
|
|
295
|
+
const _0x4e251e = _0x263e52[_0x59d23f(0x121)];
|
|
296
|
+
document[_0x59d23f(0xed)][_0x59d23f(0xb6)](_0x263e52);
|
|
297
|
+
const _0x20cdac =
|
|
298
|
+
parseInt(getComputedStyle(_0x40f2c2)[_0x59d23f(0x100)]) +
|
|
299
|
+
parseInt(getComputedStyle(_0x40f2c2)[_0x59d23f(0xfc)]);
|
|
300
|
+
_0x40f2c2[_0x59d23f(0x120)][_0x59d23f(0xca)] = this[_0x59d23f(0xee)]
|
|
301
|
+
? _0x4e251e + _0x20cdac + 0x16 + "px"
|
|
302
|
+
: _0x4e251e + _0x20cdac + 0x4 + "px";
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
customElements[_0x3ab5ea(0xbb)](_0x3ab5ea(0x10b), h);
|
|
306
|
+
class p extends h {}
|
|
307
|
+
function _0x5953(_0x5dc1fe, _0x3807a2) {
|
|
308
|
+
const _0x3902e2 = _0x3902();
|
|
309
|
+
return (
|
|
310
|
+
(_0x5953 = function (_0x5953ee, _0x432830) {
|
|
311
|
+
_0x5953ee = _0x5953ee - 0xb5;
|
|
312
|
+
let _0x3650bd = _0x3902e2[_0x5953ee];
|
|
313
|
+
return _0x3650bd;
|
|
314
|
+
}),
|
|
315
|
+
_0x5953(_0x5dc1fe, _0x3807a2)
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
customElements[_0x3ab5ea(0xbb)](_0x3ab5ea(0xe8), p);
|
|
319
|
+
export { h as default };
|
|
320
|
+
function _0x3902() {
|
|
321
|
+
const _0x333112 = [
|
|
322
|
+
"join",
|
|
323
|
+
"unitConversion",
|
|
324
|
+
"text",
|
|
325
|
+
"lbm/ft³",
|
|
326
|
+
"e3dLogoUrl",
|
|
327
|
+
"599988ZUJgGz",
|
|
328
|
+
"observedAttributes",
|
|
329
|
+
"SELECT",
|
|
330
|
+
"options",
|
|
331
|
+
"hasAttribute",
|
|
332
|
+
"\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",
|
|
333
|
+
"tooltipTimeout",
|
|
334
|
+
"querySelectorAll",
|
|
335
|
+
"isInteger",
|
|
336
|
+
"target",
|
|
337
|
+
"textContent",
|
|
338
|
+
"visibility",
|
|
339
|
+
"hidden",
|
|
340
|
+
"week",
|
|
341
|
+
"disconnectedCallback",
|
|
342
|
+
"style",
|
|
343
|
+
"offsetWidth",
|
|
344
|
+
"4385704SWYsuF",
|
|
345
|
+
"g/mm³",
|
|
346
|
+
"decimal-places",
|
|
347
|
+
"getAttribute",
|
|
348
|
+
"position",
|
|
349
|
+
"day",
|
|
350
|
+
"h[hour]",
|
|
351
|
+
"70020mkmsHH",
|
|
352
|
+
"tagName",
|
|
353
|
+
"2fxukKi",
|
|
354
|
+
"none",
|
|
355
|
+
">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
356
|
+
"atm",
|
|
357
|
+
"toFixed",
|
|
358
|
+
"mouseout",
|
|
359
|
+
"in\x20HG",
|
|
360
|
+
"1274700DzbENP",
|
|
361
|
+
"querySelector",
|
|
362
|
+
"change",
|
|
363
|
+
"\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\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20",
|
|
364
|
+
"closest",
|
|
365
|
+
"removeChild",
|
|
366
|
+
"unitCategory",
|
|
367
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20",
|
|
368
|
+
".tooltip",
|
|
369
|
+
"display",
|
|
370
|
+
"define",
|
|
371
|
+
"<option\x20value=\x22",
|
|
372
|
+
"kg/L",
|
|
373
|
+
"selected",
|
|
374
|
+
"\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",
|
|
375
|
+
"focus",
|
|
376
|
+
"appendChild",
|
|
377
|
+
"value",
|
|
378
|
+
"</option>",
|
|
379
|
+
"mbar",
|
|
380
|
+
"lbm/in³",
|
|
381
|
+
"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",
|
|
382
|
+
"\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}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\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\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-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\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\x20select\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:\x20center;\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\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x201px\x203px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20",
|
|
383
|
+
"push",
|
|
384
|
+
"replace",
|
|
385
|
+
"width",
|
|
386
|
+
"auto",
|
|
387
|
+
"mm\x20W.C.",
|
|
388
|
+
"minute",
|
|
389
|
+
"absolute",
|
|
390
|
+
"getUnitCategory",
|
|
391
|
+
"toString",
|
|
392
|
+
"kg/m³",
|
|
393
|
+
"mouseover",
|
|
394
|
+
"handleArrowClick",
|
|
395
|
+
"includes",
|
|
396
|
+
"render",
|
|
397
|
+
"Custom",
|
|
398
|
+
"GPa",
|
|
399
|
+
"addEventListener",
|
|
400
|
+
"block",
|
|
401
|
+
"removeEventListener",
|
|
402
|
+
"50lMgCvO",
|
|
403
|
+
"pow",
|
|
404
|
+
"lbm",
|
|
405
|
+
"psi",
|
|
406
|
+
"15XmQvpl",
|
|
407
|
+
"bind",
|
|
408
|
+
"shadowRoot",
|
|
409
|
+
"mm\x20HG",
|
|
410
|
+
"selectedIndex",
|
|
411
|
+
"m\x20W.C.",
|
|
412
|
+
"897NRVWCY",
|
|
413
|
+
"open",
|
|
414
|
+
";\x0a\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:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\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\x20\x20\x20\x20\x20\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\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\x20style=\x22position:\x20relative;\x22>",
|
|
415
|
+
"uc-qty",
|
|
416
|
+
"select",
|
|
417
|
+
"ksi",
|
|
418
|
+
"bar",
|
|
419
|
+
"s[second]",
|
|
420
|
+
"body",
|
|
421
|
+
"showUnitArrow",
|
|
422
|
+
"floor",
|
|
423
|
+
"in\x20W.C.",
|
|
424
|
+
"decimalPlaces",
|
|
425
|
+
"true",
|
|
426
|
+
"toPrecision",
|
|
427
|
+
"psf",
|
|
428
|
+
"esu/s",
|
|
429
|
+
"attributeChangedCallback",
|
|
430
|
+
"unit",
|
|
431
|
+
"3799061qyximD",
|
|
432
|
+
"show-unit-arrow",
|
|
433
|
+
"6FmHHsF",
|
|
434
|
+
"formatValue",
|
|
435
|
+
"paddingRight",
|
|
436
|
+
"kPa",
|
|
437
|
+
"937541uOnjPr",
|
|
438
|
+
"handleUnitChange",
|
|
439
|
+
"paddingLeft",
|
|
440
|
+
"MPa",
|
|
441
|
+
"\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",
|
|
442
|
+
"map",
|
|
443
|
+
".unit-container",
|
|
444
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20",
|
|
445
|
+
"updateDropdownWidth",
|
|
446
|
+
"9jJTxcl",
|
|
447
|
+
"units",
|
|
448
|
+
"713086vCIfcE",
|
|
449
|
+
"createElement",
|
|
450
|
+
"physical-quantity",
|
|
451
|
+
];
|
|
452
|
+
_0x3902 = function () {
|
|
453
|
+
return _0x333112;
|
|
454
|
+
};
|
|
455
|
+
return _0x3902();
|
|
456
|
+
}
|
package/dist/pq.umd.js
CHANGED
|
@@ -1 +1,472 @@
|
|
|
1
|
-
function _0x34e1(_0x2fb2b6,_0x4ada79){const _0x1c2b5b=_0x1c2b();return _0x34e1=function(_0x34e1b5,_0x144c49){_0x34e1b5=_0x34e1b5-0xe8;let _0x3258bf=_0x1c2b5b[_0x34e1b5];return _0x3258bf;},_0x34e1(_0x2fb2b6,_0x4ada79);}function _0x1c2b(){const _0x1ec738=['shadowRoot','display','includes','</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','addEventListener','toString','in\x20W.C.','973qAvxkG','g/cm³','amd','attachShadow','minute','lbm','disconnectedCallback','esu/s','s[second]','replace','GPa','decimal-places','\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}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\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\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-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\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\x20\x20.unit-container\x20select\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:\x20center;\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\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\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\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:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\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\x20\x20\x20\x20\x20\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\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\x20style=\x22position:\x20relative;\x22>','<option\x20value=\x22','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','render','click','style','tooltipTimeout','handleArrowClick','e3dLogoUrl','select','411770llglws','4797051muDyfj','mouseout','kPa','open','MPa','5218670mbiJIn','decimalPlaces','observedAttributes','\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<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','bind','toPrecision','3082390Shugiw','focus','querySelector','m\x20W.C.','Length','none','43784yZTRdY','646697RxUbZd','g/mm³','mbar','formatValue','querySelectorAll','selected','atm','36gIUMNo','removeEventListener','day','bar','units','innerHTML','define','value','unitCategory','closest','Ampere[amp]','.unit-container','unitConversion','change','week','attributeChangedCallback','block','tagName','join','6mMiXUb','map','pow','floor','toFixed','handleUnitChange','function','connectedCallback','unit','3855200KFBIOZ','object','PhysicalQuantity','target','psf','in\x20HG','lbm/ft³'];_0x1c2b=function(){return _0x1ec738;};return _0x1c2b();}(function(_0x481959,_0x5301d1){const _0x168898=_0x34e1,_0x4a007a=_0x481959();while(!![]){try{const _0x5131e0=parseInt(_0x168898(0xf6))/0x1+parseInt(_0x168898(0x13d))/0x2+parseInt(_0x168898(0x13e))/0x3+-parseInt(_0x168898(0x119))/0x4+-parseInt(_0x168898(0xe9))/0x5*(parseInt(_0x168898(0x110))/0x6)+parseInt(_0x168898(0x127))/0x7*(-parseInt(_0x168898(0xf5))/0x8)+parseInt(_0x168898(0xfd))/0x9*(parseInt(_0x168898(0xef))/0xa);if(_0x5131e0===_0x5301d1)break;else _0x4a007a['push'](_0x4a007a['shift']());}catch(_0x349a9){_0x4a007a['push'](_0x4a007a['shift']());}}}(_0x1c2b,0xdfb32),function(_0x3d707b,_0x5809f2){const _0x114ff0=_0x34e1;typeof exports==_0x114ff0(0x11a)&&typeof module<'u'?module['exports']=_0x5809f2():typeof define==_0x114ff0(0x116)&&define[_0x114ff0(0x129)]?define(_0x5809f2):(_0x3d707b=typeof globalThis<'u'?globalThis:_0x3d707b||self,_0x3d707b[_0x114ff0(0x11b)]=_0x5809f2());}(this,function(){'use strict';const _0x31bf6f=_0x34e1;const _0x235a09=0.45359237,_0x570759=25.4/0x3e8,_0x58de78=0xc*_0x570759,_0x5b6f10=0x18bcd,_0x344972=133.322387415;class _0x183773 extends HTMLElement{constructor(){const _0x42af98=_0x34e1;super(),this[_0x42af98(0x12a)]({'mode':_0x42af98(0x141)}),this[_0x42af98(0x104)]=0x0,this[_0x42af98(0x118)]='mm',this[_0x42af98(0x105)]=_0x42af98(0xf3),this['tooltipTimeout']=null,this[_0x42af98(0xea)]=0x3,this['e3dLogoUrl']=_0x42af98(0x135),this[_0x42af98(0x101)]={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x42af98(0x12c)],'Pressure':['Pa',_0x42af98(0x140),_0x42af98(0xe8),_0x42af98(0x131),_0x42af98(0x100),_0x42af98(0xf8),_0x42af98(0xfc),'mm\x20HG','cm\x20HG',_0x42af98(0x11e),'mm\x20W.C.',_0x42af98(0xf2),_0x42af98(0x126),_0x42af98(0x11d),'psi','ksi','ksi[kip/in²]'],'Density':['kg/m³','kg/L',_0x42af98(0x128),_0x42af98(0xf7),_0x42af98(0x11f),'lbm/in³'],'Time':[_0x42af98(0x12f),'s',_0x42af98(0x12b),'h','h[hour]',_0x42af98(0xff),_0x42af98(0x10b)],'ElectricalCurrent':['A',_0x42af98(0x107),'mA','µA','kA','MA',_0x42af98(0x12e)]},this[_0x42af98(0x109)]={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':_0x570759,'ft':_0x58de78},'Mass':{'kg':0x1,'g':0.001,'lbm':_0x235a09},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0x5b6f10,'mm\x20HG':_0x344972,'cm\x20HG':_0x344972*0xa,'in\x20HG':_0x344972*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':_0x570759*0x3e8*9.80665,'psf':_0x235a09*9.80665/Math[_0x42af98(0x112)](_0x58de78,0x2),'psi':_0x235a09*9.80665/Math[_0x42af98(0x112)](_0x570759,0x2),'ksi':_0x235a09*9.80665/Math[_0x42af98(0x112)](_0x570759,0x2)*0x3e8,'ksi[kip/in²]':_0x235a09*9.80665/Math[_0x42af98(0x112)](_0x570759,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x42af98(0x112)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0x42af98(0x112)](0.001,0x3),'lbm/ft³':_0x235a09/Math['pow'](_0x58de78,0x3),'lbm/in³':_0x235a09/Math[_0x42af98(0x112)](_0x570759,0x3)},'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}},this[_0x42af98(0x136)]();}static get[_0x31bf6f(0xeb)](){const _0x112392=_0x31bf6f;return[_0x112392(0x104),'unit',_0x112392(0x132)];}[_0x31bf6f(0x10c)](_0x56f047,_0x2018a5,_0x3270c1){const _0x2859e2=_0x31bf6f;_0x56f047===_0x2859e2(0x104)?this['value']=parseFloat(_0x3270c1):_0x56f047==='unit'?(this[_0x2859e2(0x118)]=_0x3270c1,this[_0x2859e2(0x105)]=this['getUnitCategory'](_0x3270c1)):_0x56f047==='decimal-places'&&(this['decimalPlaces']=parseInt(_0x3270c1)||0x3),this[_0x2859e2(0x136)]();}['getUnitCategory'](_0xb5e736){const _0x3cbdd7=_0x31bf6f;for(const _0x29b5d9 in this[_0x3cbdd7(0x101)])if(this[_0x3cbdd7(0x101)][_0x29b5d9][_0x3cbdd7(0x122)](_0xb5e736))return _0x29b5d9;return null;}[_0x31bf6f(0x117)](){const _0x536de5=_0x31bf6f;this['shadowRoot'][_0x536de5(0x124)]('change',this['handleUnitChange']['bind'](this)),this[_0x536de5(0x136)]();}[_0x31bf6f(0x12d)](){const _0xa3c4e6=_0x31bf6f;this[_0xa3c4e6(0x120)][_0xa3c4e6(0xfe)](_0xa3c4e6(0x10a),this[_0xa3c4e6(0x115)][_0xa3c4e6(0xed)](this));}[_0x31bf6f(0x13a)](_0x140b15){const _0x389778=_0x31bf6f;if(_0x140b15['target'][_0x389778(0x106)](_0x389778(0x108))){const _0x223cc7=this[_0x389778(0x120)][_0x389778(0xf1)](_0x389778(0x13c));_0x223cc7&&(_0x223cc7[_0x389778(0xf0)](),_0x223cc7[_0x389778(0x137)]());}}['handleUnitChange'](_0xf8a45a){const _0x45c223=_0x31bf6f;if(_0xf8a45a[_0x45c223(0x11c)][_0x45c223(0x10e)]==='SELECT'){const _0x11def9=_0xf8a45a[_0x45c223(0x11c)][_0x45c223(0x104)],_0x17e89f=this[_0x45c223(0x109)][this[_0x45c223(0x105)]][this[_0x45c223(0x118)]]/this[_0x45c223(0x109)][this[_0x45c223(0x105)]][_0x11def9];this['value']=this['value']*_0x17e89f,this[_0x45c223(0x118)]=_0x11def9,this[_0x45c223(0x136)]();}}[_0x31bf6f(0xf9)](_0x206c93){const _0x2ceb0c=_0x31bf6f;return Number['isInteger'](_0x206c93)?_0x206c93[_0x2ceb0c(0x125)]():Math[_0x2ceb0c(0x113)](_0x206c93)!==0x0?_0x206c93[_0x2ceb0c(0x114)](this['decimalPlaces'])[_0x2ceb0c(0x130)](/0+$/,'')[_0x2ceb0c(0x130)](/\.$/,''):_0x206c93[_0x2ceb0c(0xee)](0x3);}[_0x31bf6f(0x136)](){const _0x4a3914=_0x31bf6f;this[_0x4a3914(0x120)][_0x4a3914(0x102)]=_0x4a3914(0x133)+this[_0x4a3914(0xf9)](this[_0x4a3914(0x104)])+_0x4a3914(0x123)+this[_0x4a3914(0x101)][this['unitCategory']][_0x4a3914(0x111)](_0x423dcc=>_0x4a3914(0x134)+_0x423dcc+'\x22\x20'+(_0x423dcc===this[_0x4a3914(0x118)]?_0x4a3914(0xfb):'')+'>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x423dcc+'</option>')[_0x4a3914(0x10f)]('')+_0x4a3914(0xec)+this[_0x4a3914(0x13b)]+'\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</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\x20\x20\x0a\x20\x20\x20\x20';const _0x18d2ca=this['shadowRoot'][_0x4a3914(0xf1)](_0x4a3914(0x108)),_0x4c514c=this[_0x4a3914(0x120)][_0x4a3914(0xfa)]('.tooltip')[0x0];_0x18d2ca['addEventListener']('mouseover',()=>{const _0x3e423f=_0x4a3914;this[_0x3e423f(0x139)]=setTimeout(()=>{const _0x148602=_0x3e423f;_0x4c514c[_0x148602(0x138)][_0x148602(0x121)]=_0x148602(0x10d);},0x3e8);}),_0x18d2ca[_0x4a3914(0x124)](_0x4a3914(0x13f),()=>{setTimeout(()=>{const _0x3f59df=_0x34e1;_0x4c514c['style'][_0x3f59df(0x121)]=_0x3f59df(0xf4);},0x7d0),clearTimeout(this['tooltipTimeout']);}),_0x4c514c['addEventListener'](_0x4a3914(0x13f),()=>{setTimeout(()=>{const _0x51ef7a=_0x34e1;_0x4c514c[_0x51ef7a(0x138)]['display']=_0x51ef7a(0xf4);},0x7d0);});}}customElements['define']('physical-quantity',_0x183773);class _0x101b8c extends _0x183773{}return customElements[_0x31bf6f(0x103)]('uc-qty',_0x101b8c),_0x183773;}));
|
|
1
|
+
(function (_0x20c8d4, _0x553135) {
|
|
2
|
+
const _0x1ed7b1 = _0x3639,
|
|
3
|
+
_0x4a19e1 = _0x20c8d4();
|
|
4
|
+
while (!![]) {
|
|
5
|
+
try {
|
|
6
|
+
const _0x118c6c =
|
|
7
|
+
(-parseInt(_0x1ed7b1(0x20b)) / 0x1) *
|
|
8
|
+
(parseInt(_0x1ed7b1(0x23d)) / 0x2) +
|
|
9
|
+
parseInt(_0x1ed7b1(0x22d)) / 0x3 +
|
|
10
|
+
parseInt(_0x1ed7b1(0x235)) / 0x4 +
|
|
11
|
+
(-parseInt(_0x1ed7b1(0x1f4)) / 0x5) *
|
|
12
|
+
(parseInt(_0x1ed7b1(0x1fa)) / 0x6) +
|
|
13
|
+
(parseInt(_0x1ed7b1(0x254)) / 0x7) *
|
|
14
|
+
(-parseInt(_0x1ed7b1(0x245)) / 0x8) +
|
|
15
|
+
(-parseInt(_0x1ed7b1(0x21b)) / 0x9) *
|
|
16
|
+
(parseInt(_0x1ed7b1(0x257)) / 0xa) +
|
|
17
|
+
(-parseInt(_0x1ed7b1(0x230)) / 0xb) *
|
|
18
|
+
(-parseInt(_0x1ed7b1(0x249)) / 0xc);
|
|
19
|
+
if (_0x118c6c === _0x553135) break;
|
|
20
|
+
else _0x4a19e1["push"](_0x4a19e1["shift"]());
|
|
21
|
+
} catch (_0x27ac9f) {
|
|
22
|
+
_0x4a19e1["push"](_0x4a19e1["shift"]());
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
})(_0xe5ab, 0x2cd36),
|
|
26
|
+
(function (_0x3baeaa, _0x2b861e) {
|
|
27
|
+
const _0x57599f = _0x3639;
|
|
28
|
+
typeof exports == _0x57599f(0x234) && typeof module < "u"
|
|
29
|
+
? (module["exports"] = _0x2b861e())
|
|
30
|
+
: typeof define == "function" && define[_0x57599f(0x1f6)]
|
|
31
|
+
? define(_0x2b861e)
|
|
32
|
+
: ((_0x3baeaa = typeof globalThis < "u" ? globalThis : _0x3baeaa || self),
|
|
33
|
+
(_0x3baeaa["PhysicalQuantity"] = _0x2b861e()));
|
|
34
|
+
})(this, function () {
|
|
35
|
+
"use strict";
|
|
36
|
+
const _0x153af8 = _0x3639;
|
|
37
|
+
const _0x2f9671 = 0.45359237,
|
|
38
|
+
_0x2d394f = 25.4 / 0x3e8,
|
|
39
|
+
_0x4a4064 = 0xc * _0x2d394f,
|
|
40
|
+
_0xf371b5 = 0x18bcd,
|
|
41
|
+
_0x1163ab = 133.322387415,
|
|
42
|
+
_0x9e0d09 = {
|
|
43
|
+
Length: ["m", "km", "cm", "mm", "in", "ft"],
|
|
44
|
+
Mass: ["g", "kg", "lbm"],
|
|
45
|
+
Pressure: [
|
|
46
|
+
"Pa",
|
|
47
|
+
_0x153af8(0x25b),
|
|
48
|
+
_0x153af8(0x201),
|
|
49
|
+
"GPa",
|
|
50
|
+
"bar",
|
|
51
|
+
_0x153af8(0x22c),
|
|
52
|
+
_0x153af8(0x256),
|
|
53
|
+
"mm\x20HG",
|
|
54
|
+
_0x153af8(0x24a),
|
|
55
|
+
_0x153af8(0x1f9),
|
|
56
|
+
_0x153af8(0x242),
|
|
57
|
+
_0x153af8(0x233),
|
|
58
|
+
"in\x20W.C.",
|
|
59
|
+
_0x153af8(0x211),
|
|
60
|
+
_0x153af8(0x23e),
|
|
61
|
+
_0x153af8(0x24b),
|
|
62
|
+
_0x153af8(0x258),
|
|
63
|
+
],
|
|
64
|
+
Density: [
|
|
65
|
+
_0x153af8(0x215),
|
|
66
|
+
_0x153af8(0x207),
|
|
67
|
+
"g/cm³",
|
|
68
|
+
_0x153af8(0x240),
|
|
69
|
+
_0x153af8(0x259),
|
|
70
|
+
_0x153af8(0x24c),
|
|
71
|
+
],
|
|
72
|
+
Time: [
|
|
73
|
+
_0x153af8(0x225),
|
|
74
|
+
"s",
|
|
75
|
+
"minute",
|
|
76
|
+
"h",
|
|
77
|
+
_0x153af8(0x20c),
|
|
78
|
+
"day",
|
|
79
|
+
"week",
|
|
80
|
+
],
|
|
81
|
+
ElectricalCurrent: [
|
|
82
|
+
"A",
|
|
83
|
+
_0x153af8(0x200),
|
|
84
|
+
"mA",
|
|
85
|
+
"µA",
|
|
86
|
+
"kA",
|
|
87
|
+
"MA",
|
|
88
|
+
"esu/s",
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
_0x391d9f = {
|
|
92
|
+
Length: {
|
|
93
|
+
m: 0x1,
|
|
94
|
+
km: 0x3e8,
|
|
95
|
+
cm: 0.01,
|
|
96
|
+
mm: 0.001,
|
|
97
|
+
in: _0x2d394f,
|
|
98
|
+
ft: _0x4a4064,
|
|
99
|
+
},
|
|
100
|
+
Mass: { kg: 0x1, g: 0.001, lbm: _0x2f9671 },
|
|
101
|
+
Pressure: {
|
|
102
|
+
Pa: 0x1,
|
|
103
|
+
kPa: 0x3e8,
|
|
104
|
+
MPa: 0xf4240,
|
|
105
|
+
GPa: 0x3b9aca00,
|
|
106
|
+
bar: 0x64 * 0x3e8,
|
|
107
|
+
mbar: 0x64,
|
|
108
|
+
atm: _0xf371b5,
|
|
109
|
+
"mm\x20HG": _0x1163ab,
|
|
110
|
+
"cm\x20HG": _0x1163ab * 0xa,
|
|
111
|
+
"in\x20HG": _0x1163ab * 25.4,
|
|
112
|
+
"mm\x20W.C.": (0x1 / 0x3e8) * 0x3e8 * 9.80665,
|
|
113
|
+
"m\x20W.C.": 0x1 * 0x3e8 * 9.80665,
|
|
114
|
+
"in\x20W.C.": _0x2d394f * 0x3e8 * 9.80665,
|
|
115
|
+
psf: (_0x2f9671 * 9.80665) / Math[_0x153af8(0x20d)](_0x4a4064, 0x2),
|
|
116
|
+
psi: (_0x2f9671 * 9.80665) / Math["pow"](_0x2d394f, 0x2),
|
|
117
|
+
ksi: ((_0x2f9671 * 9.80665) / Math["pow"](_0x2d394f, 0x2)) * 0x3e8,
|
|
118
|
+
"ksi[kip/in²]":
|
|
119
|
+
((_0x2f9671 * 9.80665) / Math[_0x153af8(0x20d)](_0x2d394f, 0x2)) *
|
|
120
|
+
0x3e8,
|
|
121
|
+
},
|
|
122
|
+
Density: {
|
|
123
|
+
"kg/m³": 0x1,
|
|
124
|
+
"kg/L": 0x3e8,
|
|
125
|
+
"g/cm³": 0x1 / 0x3e8 / Math[_0x153af8(0x20d)](0.01, 0x3),
|
|
126
|
+
"g/mm³": 0x1 / 0x3e8 / Math[_0x153af8(0x20d)](0.001, 0x3),
|
|
127
|
+
"lbm/ft³": _0x2f9671 / Math["pow"](_0x4a4064, 0x3),
|
|
128
|
+
"lbm/in³": _0x2f9671 / Math[_0x153af8(0x20d)](_0x2d394f, 0x3),
|
|
129
|
+
},
|
|
130
|
+
Time: {
|
|
131
|
+
"s[second]": 0x1,
|
|
132
|
+
s: 0x1,
|
|
133
|
+
minute: 0x3c,
|
|
134
|
+
h: 0xe10,
|
|
135
|
+
"h[hour]": 0xe10,
|
|
136
|
+
day: 0xe10 * 0x18,
|
|
137
|
+
week: 0xe10 * 0x18 * 0x7,
|
|
138
|
+
},
|
|
139
|
+
ElectricalCurrent: {
|
|
140
|
+
A: 0x1,
|
|
141
|
+
"Ampere[amp]": 0x1,
|
|
142
|
+
mA: 0.001,
|
|
143
|
+
µA: 0.000001,
|
|
144
|
+
kA: 0x3e8,
|
|
145
|
+
MA: 0xf4240,
|
|
146
|
+
"esu/s": 0x1 / 0xb2d05e00,
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
class _0xd2e8e1 extends HTMLElement {
|
|
150
|
+
constructor() {
|
|
151
|
+
const _0x98cd27 = _0x153af8;
|
|
152
|
+
super(),
|
|
153
|
+
this[_0x98cd27(0x239)]({ mode: _0x98cd27(0x22a) }),
|
|
154
|
+
(this[_0x98cd27(0x228)] = 0x0),
|
|
155
|
+
(this[_0x98cd27(0x23c)] = null),
|
|
156
|
+
(this[_0x98cd27(0x231)] = 0x3),
|
|
157
|
+
(this[_0x98cd27(0x222)] =
|
|
158
|
+
"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"),
|
|
159
|
+
(this[_0x98cd27(0x1fb)] = _0x9e0d09),
|
|
160
|
+
(this[_0x98cd27(0x203)] = _0x391d9f),
|
|
161
|
+
(this[_0x98cd27(0x21d)] =
|
|
162
|
+
!this[_0x98cd27(0x1f5)](_0x98cd27(0x1fe)) ||
|
|
163
|
+
this["getAttribute"](_0x98cd27(0x1fe)) === _0x98cd27(0x1fd)),
|
|
164
|
+
this[_0x98cd27(0x244)]();
|
|
165
|
+
}
|
|
166
|
+
static get [_0x153af8(0x25c)]() {
|
|
167
|
+
const _0x5d47d5 = _0x153af8;
|
|
168
|
+
return ["value", "unit", _0x5d47d5(0x21f), "show-unit-arrow"];
|
|
169
|
+
}
|
|
170
|
+
[_0x153af8(0x214)](_0x53e8e4, _0x3f3267, _0x166c6d) {
|
|
171
|
+
const _0x17b619 = _0x153af8;
|
|
172
|
+
_0x53e8e4 === "value"
|
|
173
|
+
? (this[_0x17b619(0x228)] = parseFloat(_0x166c6d))
|
|
174
|
+
: _0x53e8e4 === _0x17b619(0x236)
|
|
175
|
+
? ((this[_0x17b619(0x236)] = _0x166c6d),
|
|
176
|
+
(this[_0x17b619(0x221)] = this[_0x17b619(0x23b)](_0x166c6d)))
|
|
177
|
+
: _0x53e8e4 === _0x17b619(0x21f)
|
|
178
|
+
? (this[_0x17b619(0x231)] = parseInt(_0x166c6d) || 0x3)
|
|
179
|
+
: _0x53e8e4 === _0x17b619(0x1fe) &&
|
|
180
|
+
(this[_0x17b619(0x21d)] =
|
|
181
|
+
_0x166c6d === null || _0x166c6d === _0x17b619(0x1fd)),
|
|
182
|
+
this[_0x17b619(0x244)]();
|
|
183
|
+
}
|
|
184
|
+
[_0x153af8(0x23b)](_0xbf017e) {
|
|
185
|
+
const _0x2e573c = _0x153af8;
|
|
186
|
+
for (const _0x5c21c5 in this[_0x2e573c(0x1fb)])
|
|
187
|
+
if (this["units"][_0x5c21c5]["includes"](_0xbf017e)) return _0x5c21c5;
|
|
188
|
+
return (
|
|
189
|
+
(this["units"][_0x2e573c(0x1ef)] =
|
|
190
|
+
this[_0x2e573c(0x1fb)]["Custom"] || []),
|
|
191
|
+
this["units"][_0x2e573c(0x1ef)]["push"](_0xbf017e),
|
|
192
|
+
(this["unitConversion"][_0x2e573c(0x1ef)] =
|
|
193
|
+
this[_0x2e573c(0x203)]["Custom"] || {}),
|
|
194
|
+
(this["unitConversion"][_0x2e573c(0x1ef)][_0xbf017e] = 0x1),
|
|
195
|
+
_0x2e573c(0x1ef)
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
[_0x153af8(0x1f0)]() {
|
|
199
|
+
const _0x35dbb2 = _0x153af8;
|
|
200
|
+
this["shadowRoot"][_0x35dbb2(0x219)](
|
|
201
|
+
_0x35dbb2(0x238),
|
|
202
|
+
this[_0x35dbb2(0x246)]["bind"](this)
|
|
203
|
+
),
|
|
204
|
+
(this[_0x35dbb2(0x236)] =
|
|
205
|
+
this[_0x35dbb2(0x204)](_0x35dbb2(0x236)) || "mm"),
|
|
206
|
+
(this["unitCategory"] = this[_0x35dbb2(0x23b)](
|
|
207
|
+
this[_0x35dbb2(0x236)]
|
|
208
|
+
)),
|
|
209
|
+
(this[_0x35dbb2(0x21d)] = this[_0x35dbb2(0x1f5)](_0x35dbb2(0x1fe))
|
|
210
|
+
? this[_0x35dbb2(0x204)](_0x35dbb2(0x1fe)) === _0x35dbb2(0x1fd)
|
|
211
|
+
: this[_0x35dbb2(0x221)] !== _0x35dbb2(0x1ef)),
|
|
212
|
+
this["render"]();
|
|
213
|
+
}
|
|
214
|
+
[_0x153af8(0x206)]() {
|
|
215
|
+
const _0x5792ce = _0x153af8;
|
|
216
|
+
this[_0x5792ce(0x217)][_0x5792ce(0x209)](
|
|
217
|
+
_0x5792ce(0x238),
|
|
218
|
+
this[_0x5792ce(0x246)][_0x5792ce(0x218)](this)
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
["handleArrowClick"](_0x2ec914) {
|
|
222
|
+
const _0x35d18a = _0x153af8;
|
|
223
|
+
if (_0x2ec914["target"]["closest"](".unit-container")) {
|
|
224
|
+
const _0x15da2d = this[_0x35d18a(0x217)]["querySelector"](
|
|
225
|
+
_0x35d18a(0x1f1)
|
|
226
|
+
);
|
|
227
|
+
_0x15da2d && (_0x15da2d[_0x35d18a(0x213)](), _0x15da2d["click"]());
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
[_0x153af8(0x246)](_0x29e91c) {
|
|
231
|
+
const _0xdd36f1 = _0x153af8;
|
|
232
|
+
if (_0x29e91c["target"]["tagName"] === _0xdd36f1(0x223)) {
|
|
233
|
+
const _0x4508d9 = _0x29e91c[_0xdd36f1(0x25a)]["value"],
|
|
234
|
+
_0x248f69 =
|
|
235
|
+
this[_0xdd36f1(0x203)][this["unitCategory"]][this["unit"]] /
|
|
236
|
+
this[_0xdd36f1(0x203)][this["unitCategory"]][_0x4508d9];
|
|
237
|
+
(this[_0xdd36f1(0x228)] = this[_0xdd36f1(0x228)] * _0x248f69),
|
|
238
|
+
(this[_0xdd36f1(0x236)] = _0x4508d9),
|
|
239
|
+
this["render"]();
|
|
240
|
+
}
|
|
241
|
+
this[_0xdd36f1(0x22e)]();
|
|
242
|
+
}
|
|
243
|
+
[_0x153af8(0x1f7)](_0x5f497f) {
|
|
244
|
+
const _0x4411aa = _0x153af8;
|
|
245
|
+
return Number[_0x4411aa(0x220)](_0x5f497f)
|
|
246
|
+
? _0x5f497f[_0x4411aa(0x255)]()
|
|
247
|
+
: Math[_0x4411aa(0x212)](_0x5f497f) !== 0x0
|
|
248
|
+
? _0x5f497f[_0x4411aa(0x21a)](this[_0x4411aa(0x231)])
|
|
249
|
+
[_0x4411aa(0x1ed)](/0+$/, "")
|
|
250
|
+
[_0x4411aa(0x1ed)](/\.$/, "")
|
|
251
|
+
: _0x5f497f[_0x4411aa(0x24f)](0x3);
|
|
252
|
+
}
|
|
253
|
+
[_0x153af8(0x244)]() {
|
|
254
|
+
const _0xc2143a = _0x153af8;
|
|
255
|
+
this["shadowRoot"][_0xc2143a(0x248)] =
|
|
256
|
+
_0xc2143a(0x1fc) +
|
|
257
|
+
(this["showUnitArrow"] ? "auto" : _0xc2143a(0x23a)) +
|
|
258
|
+
_0xc2143a(0x1ff) +
|
|
259
|
+
(this[_0xc2143a(0x21d)] ? _0xc2143a(0x23f) : _0xc2143a(0x23a)) +
|
|
260
|
+
_0xc2143a(0x20a) +
|
|
261
|
+
(this[_0xc2143a(0x21d)] ? _0xc2143a(0x23f) : _0xc2143a(0x23a)) +
|
|
262
|
+
_0xc2143a(0x22b) +
|
|
263
|
+
this["formatValue"](this[_0xc2143a(0x228)]) +
|
|
264
|
+
"</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" +
|
|
265
|
+
(this["units"][this[_0xc2143a(0x221)]] || [this[_0xc2143a(0x236)]])
|
|
266
|
+
["map"](
|
|
267
|
+
(_0x449d20) =>
|
|
268
|
+
_0xc2143a(0x24e) +
|
|
269
|
+
_0x449d20 +
|
|
270
|
+
"\x22\x20" +
|
|
271
|
+
(_0x449d20 === this[_0xc2143a(0x236)] ? _0xc2143a(0x208) : "") +
|
|
272
|
+
">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
|
|
273
|
+
_0x449d20 +
|
|
274
|
+
_0xc2143a(0x251)
|
|
275
|
+
)
|
|
276
|
+
[_0xc2143a(0x210)]("") +
|
|
277
|
+
_0xc2143a(0x20f) +
|
|
278
|
+
(this["showUnitArrow"] && this["unitCategory"] !== _0xc2143a(0x1ef)
|
|
279
|
+
? _0xc2143a(0x226) + this[_0xc2143a(0x222)] + _0xc2143a(0x20e)
|
|
280
|
+
: "") +
|
|
281
|
+
_0xc2143a(0x253);
|
|
282
|
+
const _0x129039 = this[_0xc2143a(0x217)][_0xc2143a(0x216)](
|
|
283
|
+
_0xc2143a(0x1eb)
|
|
284
|
+
),
|
|
285
|
+
_0x534743 = this[_0xc2143a(0x217)]["querySelectorAll"](
|
|
286
|
+
_0xc2143a(0x1ec)
|
|
287
|
+
)[0x0];
|
|
288
|
+
_0x129039 &&
|
|
289
|
+
_0x534743 &&
|
|
290
|
+
(_0x129039[_0xc2143a(0x219)](_0xc2143a(0x252), () => {
|
|
291
|
+
const _0x27ccae = _0xc2143a;
|
|
292
|
+
this[_0x27ccae(0x23c)] = setTimeout(() => {
|
|
293
|
+
const _0x5af90f = _0x27ccae;
|
|
294
|
+
_0x534743[_0x5af90f(0x21e)]["display"] = _0x5af90f(0x247);
|
|
295
|
+
}, 0x3e8);
|
|
296
|
+
}),
|
|
297
|
+
_0x129039[_0xc2143a(0x219)](_0xc2143a(0x24d), () => {
|
|
298
|
+
const _0xb9a523 = _0xc2143a;
|
|
299
|
+
setTimeout(() => {
|
|
300
|
+
const _0x2156a7 = _0x3639;
|
|
301
|
+
_0x534743[_0x2156a7(0x21e)][_0x2156a7(0x205)] = _0x2156a7(0x23a);
|
|
302
|
+
}, 0x7d0),
|
|
303
|
+
clearTimeout(this[_0xb9a523(0x23c)]);
|
|
304
|
+
}),
|
|
305
|
+
_0x534743[_0xc2143a(0x219)](_0xc2143a(0x24d), () => {
|
|
306
|
+
setTimeout(() => {
|
|
307
|
+
const _0x258c4e = _0x3639;
|
|
308
|
+
_0x534743[_0x258c4e(0x21e)][_0x258c4e(0x205)] = "none";
|
|
309
|
+
}, 0x7d0);
|
|
310
|
+
})),
|
|
311
|
+
this["updateDropdownWidth"]();
|
|
312
|
+
}
|
|
313
|
+
["updateDropdownWidth"]() {
|
|
314
|
+
const _0x509de2 = _0x153af8,
|
|
315
|
+
_0x269adc = this[_0x509de2(0x217)][_0x509de2(0x216)](
|
|
316
|
+
_0x509de2(0x1f1)
|
|
317
|
+
),
|
|
318
|
+
_0x127133 = _0x269adc[_0x509de2(0x21c)][_0x269adc["selectedIndex"]],
|
|
319
|
+
_0x5c3a49 = document[_0x509de2(0x1f8)](_0x509de2(0x227));
|
|
320
|
+
(_0x5c3a49[_0x509de2(0x21e)]["position"] = "absolute"),
|
|
321
|
+
(_0x5c3a49[_0x509de2(0x21e)][_0x509de2(0x232)] = _0x509de2(0x1f3)),
|
|
322
|
+
(_0x5c3a49[_0x509de2(0x21e)][_0x509de2(0x202)] =
|
|
323
|
+
getComputedStyle(_0x269adc)[_0x509de2(0x202)]),
|
|
324
|
+
document["body"][_0x509de2(0x250)](_0x5c3a49),
|
|
325
|
+
(_0x5c3a49[_0x509de2(0x243)] = _0x127133[_0x509de2(0x237)]);
|
|
326
|
+
const _0x534df8 = _0x5c3a49[_0x509de2(0x22f)];
|
|
327
|
+
document[_0x509de2(0x1f2)][_0x509de2(0x241)](_0x5c3a49);
|
|
328
|
+
const _0x4eefa4 =
|
|
329
|
+
parseInt(getComputedStyle(_0x269adc)["paddingLeft"]) +
|
|
330
|
+
parseInt(getComputedStyle(_0x269adc)[_0x509de2(0x229)]);
|
|
331
|
+
_0x269adc[_0x509de2(0x21e)]["width"] = this[_0x509de2(0x21d)]
|
|
332
|
+
? _0x534df8 + _0x4eefa4 + 0x16 + "px"
|
|
333
|
+
: _0x534df8 + _0x4eefa4 + 0x4 + "px";
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
customElements["define"](_0x153af8(0x1ee), _0xd2e8e1);
|
|
337
|
+
class _0x1803a3 extends _0xd2e8e1 {}
|
|
338
|
+
return customElements[_0x153af8(0x224)]("uc-qty", _0x1803a3), _0xd2e8e1;
|
|
339
|
+
});
|
|
340
|
+
function _0x3639(_0x5230f5, _0x26fc39) {
|
|
341
|
+
const _0xe5ab1a = _0xe5ab();
|
|
342
|
+
return (
|
|
343
|
+
(_0x3639 = function (_0x3639b1, _0x62d2b1) {
|
|
344
|
+
_0x3639b1 = _0x3639b1 - 0x1eb;
|
|
345
|
+
let _0x42545b = _0xe5ab1a[_0x3639b1];
|
|
346
|
+
return _0x42545b;
|
|
347
|
+
}),
|
|
348
|
+
_0x3639(_0x5230f5, _0x26fc39)
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
function _0xe5ab() {
|
|
352
|
+
const _0x48bfc1 = [
|
|
353
|
+
"463653lTwXuD",
|
|
354
|
+
"options",
|
|
355
|
+
"showUnitArrow",
|
|
356
|
+
"style",
|
|
357
|
+
"decimal-places",
|
|
358
|
+
"isInteger",
|
|
359
|
+
"unitCategory",
|
|
360
|
+
"e3dLogoUrl",
|
|
361
|
+
"SELECT",
|
|
362
|
+
"define",
|
|
363
|
+
"s[second]",
|
|
364
|
+
"\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",
|
|
365
|
+
"span",
|
|
366
|
+
"value",
|
|
367
|
+
"paddingRight",
|
|
368
|
+
"open",
|
|
369
|
+
";\x0a\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:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\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\x20\x20\x20\x20\x20\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\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\x20style=\x22position:\x20relative;\x22>",
|
|
370
|
+
"mbar",
|
|
371
|
+
"132954OfraDR",
|
|
372
|
+
"updateDropdownWidth",
|
|
373
|
+
"offsetWidth",
|
|
374
|
+
"55SEPtnd",
|
|
375
|
+
"decimalPlaces",
|
|
376
|
+
"visibility",
|
|
377
|
+
"m\x20W.C.",
|
|
378
|
+
"object",
|
|
379
|
+
"1001808duvHNH",
|
|
380
|
+
"unit",
|
|
381
|
+
"text",
|
|
382
|
+
"change",
|
|
383
|
+
"attachShadow",
|
|
384
|
+
"none",
|
|
385
|
+
"getUnitCategory",
|
|
386
|
+
"tooltipTimeout",
|
|
387
|
+
"262356GcGZNr",
|
|
388
|
+
"psi",
|
|
389
|
+
"auto",
|
|
390
|
+
"g/mm³",
|
|
391
|
+
"removeChild",
|
|
392
|
+
"mm\x20W.C.",
|
|
393
|
+
"textContent",
|
|
394
|
+
"render",
|
|
395
|
+
"331248UpUHmg",
|
|
396
|
+
"handleUnitChange",
|
|
397
|
+
"block",
|
|
398
|
+
"innerHTML",
|
|
399
|
+
"1862772fvBhDh",
|
|
400
|
+
"cm\x20HG",
|
|
401
|
+
"ksi",
|
|
402
|
+
"lbm/in³",
|
|
403
|
+
"mouseout",
|
|
404
|
+
"<option\x20value=\x22",
|
|
405
|
+
"toPrecision",
|
|
406
|
+
"appendChild",
|
|
407
|
+
"</option>",
|
|
408
|
+
"mouseover",
|
|
409
|
+
"\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\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20",
|
|
410
|
+
"42BSMFEg",
|
|
411
|
+
"toString",
|
|
412
|
+
"atm",
|
|
413
|
+
"40OpGxHd",
|
|
414
|
+
"ksi[kip/in²]",
|
|
415
|
+
"lbm/ft³",
|
|
416
|
+
"target",
|
|
417
|
+
"kPa",
|
|
418
|
+
"observedAttributes",
|
|
419
|
+
".unit-container",
|
|
420
|
+
".tooltip",
|
|
421
|
+
"replace",
|
|
422
|
+
"physical-quantity",
|
|
423
|
+
"Custom",
|
|
424
|
+
"connectedCallback",
|
|
425
|
+
"select",
|
|
426
|
+
"body",
|
|
427
|
+
"hidden",
|
|
428
|
+
"85jryQLc",
|
|
429
|
+
"hasAttribute",
|
|
430
|
+
"amd",
|
|
431
|
+
"formatValue",
|
|
432
|
+
"createElement",
|
|
433
|
+
"in\x20HG",
|
|
434
|
+
"60162AqcMTj",
|
|
435
|
+
"units",
|
|
436
|
+
"\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}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\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\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-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\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\x20select\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:\x20center;\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\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x201px\x203px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20",
|
|
437
|
+
"true",
|
|
438
|
+
"show-unit-arrow",
|
|
439
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20",
|
|
440
|
+
"Ampere[amp]",
|
|
441
|
+
"MPa",
|
|
442
|
+
"font",
|
|
443
|
+
"unitConversion",
|
|
444
|
+
"getAttribute",
|
|
445
|
+
"display",
|
|
446
|
+
"disconnectedCallback",
|
|
447
|
+
"kg/L",
|
|
448
|
+
"selected",
|
|
449
|
+
"removeEventListener",
|
|
450
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20",
|
|
451
|
+
"2JvUEeb",
|
|
452
|
+
"h[hour]",
|
|
453
|
+
"pow",
|
|
454
|
+
"\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",
|
|
455
|
+
"\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",
|
|
456
|
+
"join",
|
|
457
|
+
"psf",
|
|
458
|
+
"floor",
|
|
459
|
+
"focus",
|
|
460
|
+
"attributeChangedCallback",
|
|
461
|
+
"kg/m³",
|
|
462
|
+
"querySelector",
|
|
463
|
+
"shadowRoot",
|
|
464
|
+
"bind",
|
|
465
|
+
"addEventListener",
|
|
466
|
+
"toFixed",
|
|
467
|
+
];
|
|
468
|
+
_0xe5ab = function () {
|
|
469
|
+
return _0x48bfc1;
|
|
470
|
+
};
|
|
471
|
+
return _0xe5ab();
|
|
472
|
+
}
|