physical-quantity 1.1.30 → 1.1.40
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 +35 -5
- package/dist/pq.es.js +537 -346
- package/dist/pq.umd.js +583 -369
- package/package.json +1 -1
package/dist/pq.umd.js
CHANGED
|
@@ -1,103 +1,252 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
function _0x4719(_0x638450, _0x3f969f) {
|
|
2
|
+
const _0x34fbe7 = _0x34fb();
|
|
3
|
+
return (
|
|
4
|
+
(_0x4719 = function (_0x47194d, _0x9f0b68) {
|
|
5
|
+
_0x47194d = _0x47194d - 0x120;
|
|
6
|
+
let _0x4eafc2 = _0x34fbe7[_0x47194d];
|
|
7
|
+
return _0x4eafc2;
|
|
8
|
+
}),
|
|
9
|
+
_0x4719(_0x638450, _0x3f969f)
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function _0x34fb() {
|
|
13
|
+
const _0x44a0b4 = [
|
|
14
|
+
"unitConversion",
|
|
15
|
+
"function",
|
|
16
|
+
"observedAttributes",
|
|
17
|
+
"ft-in",
|
|
18
|
+
"1234780DkKBMf",
|
|
19
|
+
"display",
|
|
20
|
+
"shadowRoot",
|
|
21
|
+
"includes",
|
|
22
|
+
".tooltip",
|
|
23
|
+
"MPa",
|
|
24
|
+
"149976igJDuj",
|
|
25
|
+
"join",
|
|
26
|
+
"inputValue",
|
|
27
|
+
"show-unit-arrow",
|
|
28
|
+
"</option>",
|
|
29
|
+
"lbm/ft³",
|
|
30
|
+
"floor",
|
|
31
|
+
"text",
|
|
32
|
+
"1860305hIHgda",
|
|
33
|
+
"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",
|
|
34
|
+
"style",
|
|
35
|
+
"visibility",
|
|
36
|
+
"mouseover",
|
|
37
|
+
"value",
|
|
38
|
+
"g/mm³",
|
|
39
|
+
"tagName",
|
|
40
|
+
"handleArrowClick",
|
|
41
|
+
"match",
|
|
42
|
+
"parseFeetInchesValue",
|
|
43
|
+
"1091445Ffrgqt",
|
|
44
|
+
"formatFeetInchesValue",
|
|
45
|
+
"psi",
|
|
46
|
+
"ksi",
|
|
47
|
+
"getAttribute",
|
|
48
|
+
"object",
|
|
49
|
+
"256753dDpHBr",
|
|
50
|
+
"createElement",
|
|
51
|
+
"open",
|
|
52
|
+
"mm\x20W.C.",
|
|
53
|
+
"hidden",
|
|
54
|
+
"attachShadow",
|
|
55
|
+
"replace",
|
|
56
|
+
"category:\x20",
|
|
57
|
+
"selected",
|
|
58
|
+
"Temperature",
|
|
59
|
+
">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
60
|
+
"map",
|
|
61
|
+
"push",
|
|
62
|
+
"in\x20W.C.",
|
|
63
|
+
"\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",
|
|
64
|
+
"mbar",
|
|
65
|
+
"absolute",
|
|
66
|
+
"units",
|
|
67
|
+
"\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",
|
|
68
|
+
"h[hour]",
|
|
69
|
+
"handleUnitChange",
|
|
70
|
+
"formatFeetInchesValue2",
|
|
71
|
+
"trim",
|
|
72
|
+
"week",
|
|
73
|
+
"toPrecision",
|
|
74
|
+
"GPa",
|
|
75
|
+
"mouseout",
|
|
76
|
+
"physical-quantity",
|
|
77
|
+
"s[second]",
|
|
78
|
+
"font",
|
|
79
|
+
"uc-qty",
|
|
80
|
+
"1/1",
|
|
81
|
+
"toFixed",
|
|
82
|
+
"convertToNewUnit",
|
|
83
|
+
"split",
|
|
84
|
+
"2IyZRee",
|
|
85
|
+
"bar",
|
|
86
|
+
"getUnitCategory",
|
|
87
|
+
"options",
|
|
88
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20",
|
|
89
|
+
"pow",
|
|
90
|
+
"addEventListener",
|
|
91
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20",
|
|
92
|
+
"visible",
|
|
93
|
+
"e3dLogoUrl",
|
|
94
|
+
"in\x20HG",
|
|
95
|
+
"amd",
|
|
96
|
+
"define",
|
|
97
|
+
"322991uZqPFW",
|
|
98
|
+
"SELECT",
|
|
99
|
+
"innerHTML",
|
|
100
|
+
"7298624ULZfuE",
|
|
101
|
+
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20",
|
|
102
|
+
"render",
|
|
103
|
+
"Custom",
|
|
104
|
+
"esu/s",
|
|
105
|
+
"none",
|
|
106
|
+
"<option\x20value=\x22",
|
|
107
|
+
"ksi[kip/in²]",
|
|
108
|
+
"change",
|
|
109
|
+
"log",
|
|
110
|
+
"exports",
|
|
111
|
+
"bind",
|
|
112
|
+
"target",
|
|
113
|
+
"kg/L",
|
|
114
|
+
"calculateTotalInches",
|
|
115
|
+
"unitCategory",
|
|
116
|
+
"decimal-places",
|
|
117
|
+
"kg/m³",
|
|
118
|
+
"true",
|
|
119
|
+
"round",
|
|
120
|
+
"\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
121
|
+
"atm",
|
|
122
|
+
"formatValue",
|
|
123
|
+
"querySelector",
|
|
124
|
+
"offsetWidth",
|
|
125
|
+
"auto",
|
|
126
|
+
"block",
|
|
127
|
+
"showUnitArrow",
|
|
128
|
+
"lbm",
|
|
129
|
+
"removeEventListener",
|
|
130
|
+
"mm\x20HG",
|
|
131
|
+
"connectedCallback",
|
|
132
|
+
"select",
|
|
133
|
+
"width",
|
|
134
|
+
"Ampere[amp]",
|
|
135
|
+
"cm\x20HG",
|
|
136
|
+
"unit",
|
|
137
|
+
"toString",
|
|
138
|
+
".unit-container",
|
|
139
|
+
"hasAttribute",
|
|
140
|
+
"tooltipTimeout",
|
|
141
|
+
"paddingRight",
|
|
142
|
+
"formatFeetInchesValue1",
|
|
143
|
+
"decimalPlaces",
|
|
144
|
+
";\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.unit-container\x20select.ft-in-hidden\x20option\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.unit-container\x20select.ft-in-hidden\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x201.5em;\x0a\x20\x20\x20\x20\x20\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>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
145
|
+
"span",
|
|
146
|
+
];
|
|
147
|
+
_0x34fb = function () {
|
|
148
|
+
return _0x44a0b4;
|
|
149
|
+
};
|
|
150
|
+
return _0x34fb();
|
|
151
|
+
}
|
|
152
|
+
(function (_0x17369a, _0x40814b) {
|
|
153
|
+
const _0x2da0e8 = _0x4719,
|
|
154
|
+
_0x4db320 = _0x17369a();
|
|
4
155
|
while (!![]) {
|
|
5
156
|
try {
|
|
6
|
-
const
|
|
7
|
-
(-parseInt(
|
|
8
|
-
(parseInt(
|
|
9
|
-
parseInt(
|
|
10
|
-
parseInt(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (_0x118c6c === _0x553135) break;
|
|
20
|
-
else _0x4a19e1["push"](_0x4a19e1["shift"]());
|
|
21
|
-
} catch (_0x27ac9f) {
|
|
22
|
-
_0x4a19e1["push"](_0x4a19e1["shift"]());
|
|
157
|
+
const _0x13d208 =
|
|
158
|
+
(-parseInt(_0x2da0e8(0x192)) / 0x1) *
|
|
159
|
+
(parseInt(_0x2da0e8(0x185)) / 0x2) +
|
|
160
|
+
parseInt(_0x2da0e8(0x15c)) / 0x3 +
|
|
161
|
+
-parseInt(_0x2da0e8(0x143)) / 0x4 +
|
|
162
|
+
-parseInt(_0x2da0e8(0x151)) / 0x5 +
|
|
163
|
+
-parseInt(_0x2da0e8(0x149)) / 0x6 +
|
|
164
|
+
-parseInt(_0x2da0e8(0x162)) / 0x7 +
|
|
165
|
+
parseInt(_0x2da0e8(0x195)) / 0x8;
|
|
166
|
+
if (_0x13d208 === _0x40814b) break;
|
|
167
|
+
else _0x4db320["push"](_0x4db320["shift"]());
|
|
168
|
+
} catch (_0x76945b) {
|
|
169
|
+
_0x4db320["push"](_0x4db320["shift"]());
|
|
23
170
|
}
|
|
24
171
|
}
|
|
25
|
-
})(
|
|
26
|
-
(function (
|
|
27
|
-
const
|
|
28
|
-
typeof exports ==
|
|
29
|
-
? (module[
|
|
30
|
-
: typeof define ==
|
|
31
|
-
? define(
|
|
32
|
-
: ((
|
|
33
|
-
(
|
|
172
|
+
})(_0x34fb, 0x33721),
|
|
173
|
+
(function (_0x123619, _0x2df585) {
|
|
174
|
+
const _0x1290e1 = _0x4719;
|
|
175
|
+
typeof exports == _0x1290e1(0x161) && typeof module < "u"
|
|
176
|
+
? (module[_0x1290e1(0x19f)] = _0x2df585())
|
|
177
|
+
: typeof define == _0x1290e1(0x140) && define[_0x1290e1(0x190)]
|
|
178
|
+
? define(_0x2df585)
|
|
179
|
+
: ((_0x123619 = typeof globalThis < "u" ? globalThis : _0x123619 || self),
|
|
180
|
+
(_0x123619["PhysicalQuantity"] = _0x2df585()));
|
|
34
181
|
})(this, function () {
|
|
35
182
|
"use strict";
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Length: ["m", "km", "cm", "mm", "in", "ft"],
|
|
44
|
-
Mass: ["g", "kg",
|
|
183
|
+
const _0x57bb68 = _0x4719;
|
|
184
|
+
const _0x20ae31 = 0.45359237,
|
|
185
|
+
_0x3c7d10 = 25.4 / 0x3e8,
|
|
186
|
+
_0x3085da = 0xc * _0x3c7d10,
|
|
187
|
+
_0x423d7d = 0x18bcd,
|
|
188
|
+
_0x35418d = 133.322387415,
|
|
189
|
+
_0x2e3aa7 = {
|
|
190
|
+
Length: ["m", "km", "cm", "mm", "in", "ft-in", "ft"],
|
|
191
|
+
Mass: ["g", "kg", _0x57bb68(0x12d)],
|
|
45
192
|
Pressure: [
|
|
46
193
|
"Pa",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
194
|
+
"kPa",
|
|
195
|
+
_0x57bb68(0x148),
|
|
196
|
+
_0x57bb68(0x17b),
|
|
197
|
+
_0x57bb68(0x186),
|
|
198
|
+
_0x57bb68(0x171),
|
|
199
|
+
_0x57bb68(0x126),
|
|
200
|
+
_0x57bb68(0x12f),
|
|
201
|
+
_0x57bb68(0x134),
|
|
202
|
+
_0x57bb68(0x18f),
|
|
203
|
+
_0x57bb68(0x165),
|
|
204
|
+
"m\x20W.C.",
|
|
205
|
+
_0x57bb68(0x16f),
|
|
206
|
+
"psf",
|
|
207
|
+
_0x57bb68(0x15e),
|
|
208
|
+
_0x57bb68(0x15f),
|
|
209
|
+
_0x57bb68(0x19c),
|
|
63
210
|
],
|
|
64
211
|
Density: [
|
|
65
|
-
|
|
66
|
-
|
|
212
|
+
_0x57bb68(0x122),
|
|
213
|
+
_0x57bb68(0x1a2),
|
|
67
214
|
"g/cm³",
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
215
|
+
_0x57bb68(0x157),
|
|
216
|
+
_0x57bb68(0x14e),
|
|
217
|
+
"lbm/in³",
|
|
71
218
|
],
|
|
72
219
|
Time: [
|
|
73
|
-
|
|
220
|
+
_0x57bb68(0x17e),
|
|
74
221
|
"s",
|
|
75
222
|
"minute",
|
|
76
223
|
"h",
|
|
77
|
-
|
|
224
|
+
_0x57bb68(0x175),
|
|
78
225
|
"day",
|
|
79
|
-
|
|
226
|
+
_0x57bb68(0x179),
|
|
80
227
|
],
|
|
81
228
|
ElectricalCurrent: [
|
|
82
229
|
"A",
|
|
83
|
-
|
|
230
|
+
_0x57bb68(0x133),
|
|
84
231
|
"mA",
|
|
85
232
|
"µA",
|
|
86
233
|
"kA",
|
|
87
234
|
"MA",
|
|
88
|
-
|
|
235
|
+
_0x57bb68(0x199),
|
|
89
236
|
],
|
|
237
|
+
Temperature: ["°K", "°C", "°F", "°Ra"],
|
|
90
238
|
},
|
|
91
|
-
|
|
239
|
+
_0x3830c1 = {
|
|
92
240
|
Length: {
|
|
93
241
|
m: 0x1,
|
|
94
242
|
km: 0x3e8,
|
|
95
243
|
cm: 0.01,
|
|
96
244
|
mm: 0.001,
|
|
97
|
-
in:
|
|
98
|
-
ft:
|
|
245
|
+
in: _0x3c7d10,
|
|
246
|
+
"ft-in": _0x3c7d10,
|
|
247
|
+
ft: _0x3085da,
|
|
99
248
|
},
|
|
100
|
-
Mass: { kg: 0x1, g: 0.001, lbm:
|
|
249
|
+
Mass: { kg: 0x1, g: 0.001, lbm: _0x20ae31 },
|
|
101
250
|
Pressure: {
|
|
102
251
|
Pa: 0x1,
|
|
103
252
|
kPa: 0x3e8,
|
|
@@ -105,27 +254,28 @@
|
|
|
105
254
|
GPa: 0x3b9aca00,
|
|
106
255
|
bar: 0x64 * 0x3e8,
|
|
107
256
|
mbar: 0x64,
|
|
108
|
-
atm:
|
|
109
|
-
"mm\x20HG":
|
|
110
|
-
"cm\x20HG":
|
|
111
|
-
"in\x20HG":
|
|
257
|
+
atm: _0x423d7d,
|
|
258
|
+
"mm\x20HG": _0x35418d,
|
|
259
|
+
"cm\x20HG": _0x35418d * 0xa,
|
|
260
|
+
"in\x20HG": _0x35418d * 25.4,
|
|
112
261
|
"mm\x20W.C.": (0x1 / 0x3e8) * 0x3e8 * 9.80665,
|
|
113
262
|
"m\x20W.C.": 0x1 * 0x3e8 * 9.80665,
|
|
114
|
-
"in\x20W.C.":
|
|
115
|
-
psf: (
|
|
116
|
-
psi: (
|
|
117
|
-
ksi:
|
|
118
|
-
|
|
119
|
-
((_0x2f9671 * 9.80665) / Math[_0x153af8(0x20d)](_0x2d394f, 0x2)) *
|
|
263
|
+
"in\x20W.C.": _0x3c7d10 * 0x3e8 * 9.80665,
|
|
264
|
+
psf: (_0x20ae31 * 9.80665) / Math[_0x57bb68(0x18a)](_0x3085da, 0x2),
|
|
265
|
+
psi: (_0x20ae31 * 9.80665) / Math[_0x57bb68(0x18a)](_0x3c7d10, 0x2),
|
|
266
|
+
ksi:
|
|
267
|
+
((_0x20ae31 * 9.80665) / Math[_0x57bb68(0x18a)](_0x3c7d10, 0x2)) *
|
|
120
268
|
0x3e8,
|
|
269
|
+
"ksi[kip/in²]":
|
|
270
|
+
((_0x20ae31 * 9.80665) / Math["pow"](_0x3c7d10, 0x2)) * 0x3e8,
|
|
121
271
|
},
|
|
122
272
|
Density: {
|
|
123
273
|
"kg/m³": 0x1,
|
|
124
274
|
"kg/L": 0x3e8,
|
|
125
|
-
"g/cm³": 0x1 / 0x3e8 / Math[
|
|
126
|
-
"g/mm³": 0x1 / 0x3e8 / Math[
|
|
127
|
-
"lbm/ft³":
|
|
128
|
-
"lbm/in³":
|
|
275
|
+
"g/cm³": 0x1 / 0x3e8 / Math[_0x57bb68(0x18a)](0.01, 0x3),
|
|
276
|
+
"g/mm³": 0x1 / 0x3e8 / Math[_0x57bb68(0x18a)](0.001, 0x3),
|
|
277
|
+
"lbm/ft³": _0x20ae31 / Math[_0x57bb68(0x18a)](_0x3085da, 0x3),
|
|
278
|
+
"lbm/in³": _0x20ae31 / Math[_0x57bb68(0x18a)](_0x3c7d10, 0x3),
|
|
129
279
|
},
|
|
130
280
|
Time: {
|
|
131
281
|
"s[second]": 0x1,
|
|
@@ -145,328 +295,392 @@
|
|
|
145
295
|
MA: 0xf4240,
|
|
146
296
|
"esu/s": 0x1 / 0xb2d05e00,
|
|
147
297
|
},
|
|
298
|
+
Temperature: {
|
|
299
|
+
"°K": { c0: 0x1, c1: 0x0 },
|
|
300
|
+
"°C": { c0: 0x1, c1: 273.15 },
|
|
301
|
+
"°F": { c0: 0x5 / 0x9, c1: 255.3722222 },
|
|
302
|
+
"°Ra": { c0: 0x5 / 0x9, c1: 0x0 },
|
|
303
|
+
},
|
|
148
304
|
};
|
|
149
|
-
class
|
|
305
|
+
class _0x4c8342 extends HTMLElement {
|
|
150
306
|
constructor() {
|
|
151
|
-
const
|
|
307
|
+
const _0x5c6dea = _0x57bb68;
|
|
152
308
|
super(),
|
|
153
|
-
this[
|
|
154
|
-
(this[
|
|
155
|
-
(this[
|
|
156
|
-
(this[
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
(this[
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
309
|
+
this[_0x5c6dea(0x167)]({ mode: _0x5c6dea(0x164) }),
|
|
310
|
+
(this[_0x5c6dea(0x173)] = _0x2e3aa7),
|
|
311
|
+
(this[_0x5c6dea(0x13f)] = _0x3830c1),
|
|
312
|
+
(this[_0x5c6dea(0x135)] =
|
|
313
|
+
this[_0x5c6dea(0x160)](_0x5c6dea(0x135)) || "mm"),
|
|
314
|
+
(this["unitCategory"] = this["getUnitCategory"](this["unit"])),
|
|
315
|
+
(this[_0x5c6dea(0x14b)] = this[_0x5c6dea(0x160)](_0x5c6dea(0x156))),
|
|
316
|
+
this[_0x5c6dea(0x135)] === "ft-in"
|
|
317
|
+
? (this[_0x5c6dea(0x156)] = this["parseFeetInchesValue"](
|
|
318
|
+
this[_0x5c6dea(0x14b)]
|
|
319
|
+
))
|
|
320
|
+
: (this[_0x5c6dea(0x156)] = parseFloat(this[_0x5c6dea(0x14b)])),
|
|
321
|
+
(this["tooltipTimeout"] = null),
|
|
322
|
+
(this[_0x5c6dea(0x13c)] = 0x3),
|
|
323
|
+
(this[_0x5c6dea(0x18e)] = _0x5c6dea(0x152)),
|
|
324
|
+
(this["units"] = _0x2e3aa7),
|
|
325
|
+
(this["unitConversion"] = _0x3830c1),
|
|
326
|
+
(this[_0x5c6dea(0x12c)] =
|
|
327
|
+
!this[_0x5c6dea(0x138)](_0x5c6dea(0x14c)) ||
|
|
328
|
+
this[_0x5c6dea(0x160)](_0x5c6dea(0x14c)) === _0x5c6dea(0x123)),
|
|
329
|
+
this[_0x5c6dea(0x197)]();
|
|
330
|
+
}
|
|
331
|
+
static get [_0x57bb68(0x141)]() {
|
|
332
|
+
const _0x1cc79e = _0x57bb68;
|
|
333
|
+
return [_0x1cc79e(0x156), "unit", _0x1cc79e(0x121), "show-unit-arrow"];
|
|
334
|
+
}
|
|
335
|
+
["attributeChangedCallback"](_0x28dc66, _0x5e8008, _0x21a61d) {
|
|
336
|
+
const _0xaa3a28 = _0x57bb68;
|
|
337
|
+
_0x28dc66 === "value"
|
|
338
|
+
? ((this[_0xaa3a28(0x14b)] = _0x21a61d),
|
|
339
|
+
this[_0xaa3a28(0x135)] === _0xaa3a28(0x142)
|
|
340
|
+
? (this["value"] = this[_0xaa3a28(0x15b)](_0x21a61d))
|
|
341
|
+
: (this[_0xaa3a28(0x156)] = parseFloat(_0x21a61d)))
|
|
342
|
+
: _0x28dc66 === _0xaa3a28(0x135)
|
|
343
|
+
? ((this[_0xaa3a28(0x135)] = _0x21a61d),
|
|
344
|
+
(this[_0xaa3a28(0x120)] = this[_0xaa3a28(0x187)](_0x21a61d)),
|
|
345
|
+
this[_0xaa3a28(0x135)] === _0xaa3a28(0x142)
|
|
346
|
+
? (this[_0xaa3a28(0x156)] = this["parseFeetInchesValue"](
|
|
347
|
+
this[_0xaa3a28(0x14b)]
|
|
348
|
+
))
|
|
349
|
+
: _0x5e8008 === _0xaa3a28(0x142) &&
|
|
350
|
+
(this[_0xaa3a28(0x156)] = this["convertToNewUnit"](
|
|
351
|
+
this["value"],
|
|
352
|
+
"in",
|
|
353
|
+
this["unit"]
|
|
354
|
+
)))
|
|
355
|
+
: _0x28dc66 === _0xaa3a28(0x121)
|
|
356
|
+
? (this["decimalPlaces"] = parseInt(_0x21a61d) || 0x3)
|
|
357
|
+
: _0x28dc66 === _0xaa3a28(0x14c) &&
|
|
358
|
+
(this[_0xaa3a28(0x12c)] =
|
|
359
|
+
_0x21a61d === null || _0x21a61d === _0xaa3a28(0x123)),
|
|
360
|
+
this["render"]();
|
|
361
|
+
}
|
|
362
|
+
[_0x57bb68(0x15b)](_0x586e5e) {
|
|
363
|
+
const _0x5521e5 = _0x57bb68,
|
|
364
|
+
_0x3637df = /(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/,
|
|
365
|
+
_0x43bf82 = /(\d+)\'/,
|
|
366
|
+
_0x5abbf4 = /(\d+)/;
|
|
367
|
+
let _0x517e66 = _0x586e5e[_0x5521e5(0x15a)](_0x3637df);
|
|
368
|
+
if (_0x517e66) {
|
|
369
|
+
const _0x52a8e6 = parseInt(_0x517e66[0x1]) || 0x0,
|
|
370
|
+
_0x3cd71c = parseInt(_0x517e66[0x3]) || 0x0,
|
|
371
|
+
_0x3e902f = parseInt(_0x517e66[0x5]) || 0x0,
|
|
372
|
+
_0x2deb4e = parseInt(_0x517e66[0x6]) || 0x1;
|
|
373
|
+
return this[_0x5521e5(0x1a3)](
|
|
374
|
+
_0x52a8e6,
|
|
375
|
+
_0x3cd71c,
|
|
376
|
+
_0x3e902f,
|
|
377
|
+
_0x2deb4e
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
if (((_0x517e66 = _0x586e5e["match"](_0x43bf82)), _0x517e66)) {
|
|
381
|
+
const _0x2c45f1 = parseInt(_0x517e66[0x1]) || 0x0;
|
|
382
|
+
return this[_0x5521e5(0x1a3)](_0x2c45f1, 0x0, 0x0, 0x1);
|
|
383
|
+
}
|
|
384
|
+
if (((_0x517e66 = _0x586e5e[_0x5521e5(0x15a)](_0x5abbf4)), _0x517e66)) {
|
|
385
|
+
const _0x4fd98c = parseInt(_0x517e66[0x1]) || 0x0;
|
|
386
|
+
return this[_0x5521e5(0x1a3)](0x0, _0x4fd98c, 0x0, 0x1);
|
|
387
|
+
}
|
|
388
|
+
return parseFloat(_0x586e5e);
|
|
389
|
+
}
|
|
390
|
+
["calculateTotalInches"](_0x32d2c5, _0x239e1e, _0x2ae84e, _0x7d15af) {
|
|
391
|
+
return _0x32d2c5 * 0xc + _0x239e1e + _0x2ae84e / _0x7d15af;
|
|
165
392
|
}
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
return
|
|
393
|
+
[_0x57bb68(0x15d)](_0x4c211f, _0x1a2f10 = "1/16\x22") {
|
|
394
|
+
const _0x152ccd = _0x57bb68;
|
|
395
|
+
if (_0x4c211f < 0x0) return "-" + formatFeetInchesValue(-_0x4c211f);
|
|
396
|
+
const _0x6b6733 = parseInt(
|
|
397
|
+
_0x1a2f10[_0x152ccd(0x184)]("/")[0x1][_0x152ccd(0x168)]("\x22", "")
|
|
398
|
+
);
|
|
399
|
+
let _0x36aea1 = Math[_0x152ccd(0x14f)](_0x4c211f / 0xc),
|
|
400
|
+
_0x30c801 = Math[_0x152ccd(0x14f)](_0x4c211f % 0xc);
|
|
401
|
+
const _0x5f17b7 = _0x4c211f - Math[_0x152ccd(0x14f)](_0x4c211f);
|
|
402
|
+
let _0x1db3e2 = "";
|
|
403
|
+
if (_0x5f17b7 > 0x0 && _0x1a2f10 !== 0x0) {
|
|
404
|
+
let _0x2d1c56 = Math["round"](_0x5f17b7 * _0x6b6733);
|
|
405
|
+
const _0x395d51 = (_0x363396, _0x342c00) =>
|
|
406
|
+
_0x342c00
|
|
407
|
+
? _0x395d51(_0x342c00, _0x363396 % _0x342c00)
|
|
408
|
+
: _0x363396,
|
|
409
|
+
_0xebb249 = _0x395d51(_0x2d1c56, _0x6b6733);
|
|
410
|
+
(_0x1db3e2 =
|
|
411
|
+
"\x20" + _0x2d1c56 / _0xebb249 + "/" + _0x6b6733 / _0xebb249),
|
|
412
|
+
_0x1db3e2[_0x152ccd(0x178)]() === _0x152ccd(0x181) &&
|
|
413
|
+
(_0x30c801++,
|
|
414
|
+
_0x30c801 >= 0xc && (_0x36aea1++, (_0x30c801 -= 0xc)),
|
|
415
|
+
(_0x1db3e2 = ""));
|
|
416
|
+
}
|
|
417
|
+
let _0x2fc003 = "";
|
|
418
|
+
return (
|
|
419
|
+
_0x36aea1 > 0x0 && (_0x2fc003 += _0x36aea1 + "\x27"),
|
|
420
|
+
_0x36aea1 > 0x0 &&
|
|
421
|
+
(_0x30c801 > 0x0 || _0x1db3e2 !== "") &&
|
|
422
|
+
(_0x2fc003 += "-"),
|
|
423
|
+
_0x30c801 > 0x0 && (_0x2fc003 += "" + _0x30c801),
|
|
424
|
+
_0x1db3e2 !== "" && (_0x2fc003 += _0x1db3e2),
|
|
425
|
+
(_0x30c801 > 0x0 || _0x1db3e2 !== "") && (_0x2fc003 += "\x22"),
|
|
426
|
+
_0x2fc003["trim"]()
|
|
427
|
+
);
|
|
169
428
|
}
|
|
170
|
-
[
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
429
|
+
[_0x57bb68(0x177)](_0x471ff3) {
|
|
430
|
+
const _0x2bdc3c = _0x57bb68;
|
|
431
|
+
debugger;
|
|
432
|
+
if (_0x471ff3 < 0x0) return "-" + formatFeetInchesValue(-_0x471ff3);
|
|
433
|
+
const _0x554734 = Math[_0x2bdc3c(0x14f)](_0x471ff3 / 0xc),
|
|
434
|
+
_0x50fbbc = Math[_0x2bdc3c(0x14f)](_0x471ff3 % 0xc),
|
|
435
|
+
_0x4c0c5f = _0x471ff3 - Math["floor"](_0x471ff3);
|
|
436
|
+
let _0x179d22 = "";
|
|
437
|
+
if (_0x4c0c5f > 0x0) {
|
|
438
|
+
const _0x381a71 = (_0x2c4bdf, _0x26c79f) =>
|
|
439
|
+
_0x26c79f
|
|
440
|
+
? _0x381a71(_0x26c79f, _0x2c4bdf % _0x26c79f)
|
|
441
|
+
: _0x2c4bdf,
|
|
442
|
+
_0x3066d1 = Math[_0x2bdc3c(0x124)](_0x4c0c5f * 0x10),
|
|
443
|
+
_0x53efce = 0x10,
|
|
444
|
+
_0x5d37a9 = _0x381a71(_0x3066d1, _0x53efce);
|
|
445
|
+
_0x179d22 = _0x3066d1 / _0x5d37a9 + "/" + _0x53efce / _0x5d37a9;
|
|
446
|
+
}
|
|
447
|
+
return _0x50fbbc === 0x0
|
|
448
|
+
? _0x554734 + "\x27-" + _0x179d22 + "\x22"
|
|
449
|
+
: _0x554734 + "\x27-" + _0x50fbbc + "\x20" + _0x179d22 + "\x22";
|
|
450
|
+
}
|
|
451
|
+
[_0x57bb68(0x13b)](_0x115576) {
|
|
452
|
+
const _0x2ab0c9 = _0x57bb68;
|
|
453
|
+
debugger;
|
|
454
|
+
const _0x5af2f5 = Math["floor"](_0x115576 / 0xc),
|
|
455
|
+
_0x6b387a = Math[_0x2ab0c9(0x14f)](_0x115576 % 0xc),
|
|
456
|
+
_0x3e6cef = _0x115576 % 0x1;
|
|
457
|
+
let _0x24bb44 = "";
|
|
458
|
+
if (_0x3e6cef > 0x0) {
|
|
459
|
+
const _0x283268 = (_0x59aa9f, _0x3502f6) =>
|
|
460
|
+
_0x3502f6
|
|
461
|
+
? _0x283268(_0x3502f6, _0x59aa9f % _0x3502f6)
|
|
462
|
+
: _0x59aa9f,
|
|
463
|
+
_0x21d27a = Math[_0x2ab0c9(0x124)](_0x3e6cef * 0x10),
|
|
464
|
+
_0x30225a = 0x10,
|
|
465
|
+
_0x5d3dfb = _0x283268(_0x21d27a, _0x30225a);
|
|
466
|
+
_0x24bb44 =
|
|
467
|
+
"\x20" + _0x21d27a / _0x5d3dfb + "/" + _0x30225a / _0x5d3dfb;
|
|
468
|
+
}
|
|
469
|
+
return _0x5af2f5 + "\x27-" + _0x6b387a + "\x20" + _0x24bb44 + "\x22";
|
|
183
470
|
}
|
|
184
|
-
[
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
|
|
471
|
+
["formatFeetInchesValue0"](_0x38d62d) {
|
|
472
|
+
const _0x52e43c = _0x57bb68,
|
|
473
|
+
_0x530fa7 = Math[_0x52e43c(0x14f)](_0x38d62d / 0xc),
|
|
474
|
+
_0x165bc7 = Math[_0x52e43c(0x124)]((_0x38d62d % 0xc) * 0xa) / 0xa;
|
|
475
|
+
return _0x530fa7 > 0x0 && _0x165bc7 > 0x0
|
|
476
|
+
? _0x530fa7 + "\x27-" + _0x165bc7 + "\x22"
|
|
477
|
+
: _0x530fa7 > 0x0
|
|
478
|
+
? _0x530fa7 + "\x27"
|
|
479
|
+
: _0x165bc7 + "\x22";
|
|
480
|
+
}
|
|
481
|
+
[_0x57bb68(0x183)](_0x57dad7, _0x43c022, _0x467cc3) {
|
|
482
|
+
const _0x1651d5 = _0x57bb68,
|
|
483
|
+
_0x5e44bb =
|
|
484
|
+
this[_0x1651d5(0x13f)][this[_0x1651d5(0x120)]][_0x43c022] /
|
|
485
|
+
this[_0x1651d5(0x13f)][this[_0x1651d5(0x120)]][_0x467cc3];
|
|
486
|
+
return _0x57dad7 * _0x5e44bb;
|
|
487
|
+
}
|
|
488
|
+
[_0x57bb68(0x187)](_0xa9fb4f) {
|
|
489
|
+
const _0x16a69c = _0x57bb68;
|
|
490
|
+
for (const _0x4498f5 in this[_0x16a69c(0x173)])
|
|
491
|
+
if (this[_0x16a69c(0x173)][_0x4498f5][_0x16a69c(0x146)](_0xa9fb4f))
|
|
492
|
+
return _0x4498f5;
|
|
188
493
|
return (
|
|
189
|
-
(this[
|
|
190
|
-
this[
|
|
191
|
-
this[
|
|
192
|
-
(this[
|
|
193
|
-
this[
|
|
194
|
-
(this["
|
|
195
|
-
|
|
494
|
+
(this[_0x16a69c(0x173)][_0x16a69c(0x198)] =
|
|
495
|
+
this["units"][_0x16a69c(0x198)] || []),
|
|
496
|
+
this[_0x16a69c(0x173)][_0x16a69c(0x198)][_0x16a69c(0x16e)](_0xa9fb4f),
|
|
497
|
+
(this[_0x16a69c(0x13f)][_0x16a69c(0x198)] =
|
|
498
|
+
this[_0x16a69c(0x13f)][_0x16a69c(0x198)] || {}),
|
|
499
|
+
(this[_0x16a69c(0x13f)]["Custom"][_0xa9fb4f] = 0x1),
|
|
500
|
+
_0x16a69c(0x198)
|
|
196
501
|
);
|
|
197
502
|
}
|
|
198
|
-
[
|
|
199
|
-
const
|
|
200
|
-
this[
|
|
201
|
-
|
|
202
|
-
this[
|
|
503
|
+
[_0x57bb68(0x130)]() {
|
|
504
|
+
const _0x22ee99 = _0x57bb68;
|
|
505
|
+
this[_0x22ee99(0x145)][_0x22ee99(0x18b)](
|
|
506
|
+
_0x22ee99(0x19d),
|
|
507
|
+
this[_0x22ee99(0x176)][_0x22ee99(0x1a0)](this)
|
|
203
508
|
),
|
|
204
|
-
(this[
|
|
205
|
-
this[
|
|
206
|
-
(this["unitCategory"] = this[
|
|
207
|
-
this[
|
|
509
|
+
(this[_0x22ee99(0x135)] =
|
|
510
|
+
this["getAttribute"](_0x22ee99(0x135)) || "mm"),
|
|
511
|
+
(this["unitCategory"] = this[_0x22ee99(0x187)](
|
|
512
|
+
this[_0x22ee99(0x135)]
|
|
208
513
|
)),
|
|
209
|
-
(this[
|
|
210
|
-
? this[
|
|
211
|
-
: this[
|
|
212
|
-
this[
|
|
514
|
+
(this[_0x22ee99(0x12c)] = this[_0x22ee99(0x138)](_0x22ee99(0x14c))
|
|
515
|
+
? this["getAttribute"](_0x22ee99(0x14c)) === "true"
|
|
516
|
+
: this[_0x22ee99(0x120)] !== _0x22ee99(0x198)),
|
|
517
|
+
this[_0x22ee99(0x197)]();
|
|
213
518
|
}
|
|
214
|
-
[
|
|
215
|
-
const
|
|
216
|
-
this[
|
|
217
|
-
|
|
218
|
-
this[
|
|
519
|
+
["disconnectedCallback"]() {
|
|
520
|
+
const _0x543a5d = _0x57bb68;
|
|
521
|
+
this[_0x543a5d(0x145)][_0x543a5d(0x12e)](
|
|
522
|
+
_0x543a5d(0x19d),
|
|
523
|
+
this[_0x543a5d(0x176)][_0x543a5d(0x1a0)](this)
|
|
219
524
|
);
|
|
220
525
|
}
|
|
221
|
-
[
|
|
222
|
-
const
|
|
223
|
-
if (
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
);
|
|
227
|
-
_0x15da2d && (_0x15da2d[_0x35d18a(0x213)](), _0x15da2d["click"]());
|
|
526
|
+
[_0x57bb68(0x159)](_0x4efb14) {
|
|
527
|
+
const _0x370bcb = _0x57bb68;
|
|
528
|
+
if (_0x4efb14[_0x370bcb(0x1a1)]["closest"](_0x370bcb(0x137))) {
|
|
529
|
+
const _0x11e803 = this[_0x370bcb(0x145)]["querySelector"]("select");
|
|
530
|
+
_0x11e803 && (_0x11e803["focus"](), _0x11e803["click"]());
|
|
228
531
|
}
|
|
229
532
|
}
|
|
230
|
-
[
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
533
|
+
["handleUnitChange"](_0x3107e4) {
|
|
534
|
+
const _0x5e04f3 = _0x57bb68;
|
|
535
|
+
let _0xb11dac = 0x1,
|
|
536
|
+
_0x5d6fd2 = 0x1,
|
|
537
|
+
_0x4a3abe = 0x0,
|
|
538
|
+
_0x254d88 = 0x0;
|
|
539
|
+
if (
|
|
540
|
+
_0x3107e4[_0x5e04f3(0x1a1)][_0x5e04f3(0x158)] === _0x5e04f3(0x193)
|
|
541
|
+
) {
|
|
542
|
+
const _0x477c72 = _0x3107e4["target"][_0x5e04f3(0x156)];
|
|
543
|
+
if (this[_0x5e04f3(0x120)] !== _0x5e04f3(0x16b)) {
|
|
544
|
+
const _0x4f0f86 =
|
|
545
|
+
this["unitConversion"][this[_0x5e04f3(0x120)]][this["unit"]] /
|
|
546
|
+
this[_0x5e04f3(0x13f)][this[_0x5e04f3(0x120)]][_0x477c72];
|
|
547
|
+
this["value"] = this[_0x5e04f3(0x156)] * _0x4f0f86;
|
|
548
|
+
} else
|
|
549
|
+
console[_0x5e04f3(0x19e)](
|
|
550
|
+
_0x5e04f3(0x169) + this[_0x5e04f3(0x120)]
|
|
551
|
+
),
|
|
552
|
+
console[_0x5e04f3(0x19e)]("unit:\x20" + this["unit"]),
|
|
553
|
+
console[_0x5e04f3(0x19e)]("newUnit:\x20" + _0x477c72),
|
|
554
|
+
(_0xb11dac =
|
|
555
|
+
this[_0x5e04f3(0x13f)][this["unitCategory"]][
|
|
556
|
+
this[_0x5e04f3(0x135)]
|
|
557
|
+
]["c0"]),
|
|
558
|
+
(_0x5d6fd2 =
|
|
559
|
+
this[_0x5e04f3(0x13f)][this[_0x5e04f3(0x120)]][
|
|
560
|
+
this[_0x5e04f3(0x135)]
|
|
561
|
+
]["c1"]),
|
|
562
|
+
(_0x4a3abe =
|
|
563
|
+
this[_0x5e04f3(0x13f)][this["unitCategory"]][_0x477c72]["c0"]),
|
|
564
|
+
(_0x254d88 =
|
|
565
|
+
this[_0x5e04f3(0x13f)][this[_0x5e04f3(0x120)]][_0x477c72][
|
|
566
|
+
"c1"
|
|
567
|
+
]),
|
|
568
|
+
(this[_0x5e04f3(0x156)] =
|
|
569
|
+
(this[_0x5e04f3(0x156)] * _0xb11dac + _0x5d6fd2 - _0x254d88) /
|
|
570
|
+
_0x4a3abe);
|
|
571
|
+
(this[_0x5e04f3(0x135)] = _0x477c72), this["render"]();
|
|
240
572
|
}
|
|
241
|
-
this[
|
|
573
|
+
this["updateDropdownWidth"]();
|
|
242
574
|
}
|
|
243
|
-
[
|
|
244
|
-
const
|
|
245
|
-
return Number[
|
|
246
|
-
?
|
|
247
|
-
: Math[
|
|
248
|
-
?
|
|
249
|
-
[
|
|
250
|
-
[
|
|
251
|
-
:
|
|
575
|
+
[_0x57bb68(0x127)](_0x1c01af) {
|
|
576
|
+
const _0x449f0b = _0x57bb68;
|
|
577
|
+
return Number["isInteger"](_0x1c01af)
|
|
578
|
+
? _0x1c01af[_0x449f0b(0x136)]()
|
|
579
|
+
: Math["floor"](_0x1c01af) !== 0x0
|
|
580
|
+
? _0x1c01af[_0x449f0b(0x182)](this[_0x449f0b(0x13c)])
|
|
581
|
+
[_0x449f0b(0x168)](/0+$/, "")
|
|
582
|
+
[_0x449f0b(0x168)](/\.$/, "")
|
|
583
|
+
: _0x1c01af[_0x449f0b(0x17a)](0x3);
|
|
252
584
|
}
|
|
253
|
-
[
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
(this[
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
(this[
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
585
|
+
[_0x57bb68(0x197)]() {
|
|
586
|
+
const _0x4ed84b = _0x57bb68,
|
|
587
|
+
_0x170362 =
|
|
588
|
+
this[_0x4ed84b(0x135)] === "ft-in"
|
|
589
|
+
? _0x4ed84b(0x166)
|
|
590
|
+
: _0x4ed84b(0x18d);
|
|
591
|
+
this[_0x4ed84b(0x145)][_0x4ed84b(0x194)] =
|
|
592
|
+
_0x4ed84b(0x174) +
|
|
593
|
+
(this["showUnitArrow"] ? _0x4ed84b(0x12a) : "none") +
|
|
594
|
+
_0x4ed84b(0x189) +
|
|
595
|
+
(this[_0x4ed84b(0x12c)] ? "auto" : _0x4ed84b(0x19a)) +
|
|
596
|
+
_0x4ed84b(0x196) +
|
|
597
|
+
(this[_0x4ed84b(0x12c)] ? "auto" : "none") +
|
|
598
|
+
_0x4ed84b(0x18c) +
|
|
599
|
+
_0x170362 +
|
|
600
|
+
_0x4ed84b(0x13d) +
|
|
601
|
+
(this[_0x4ed84b(0x135)] === _0x4ed84b(0x142)
|
|
602
|
+
? this["formatFeetInchesValue"](this["value"])
|
|
603
|
+
: this[_0x4ed84b(0x127)](this["value"])) +
|
|
604
|
+
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\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\x20class=\x22" +
|
|
605
|
+
(this["unit"] === _0x4ed84b(0x142) ? "ft-in-hidden" : "") +
|
|
606
|
+
_0x4ed84b(0x125) +
|
|
607
|
+
(this[_0x4ed84b(0x173)][this[_0x4ed84b(0x120)]] || [
|
|
608
|
+
this[_0x4ed84b(0x135)],
|
|
609
|
+
])
|
|
610
|
+
[_0x4ed84b(0x16d)](
|
|
611
|
+
(_0x48403e) =>
|
|
612
|
+
_0x4ed84b(0x19b) +
|
|
613
|
+
_0x48403e +
|
|
270
614
|
"\x22\x20" +
|
|
271
|
-
(
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
615
|
+
(_0x48403e === this[_0x4ed84b(0x135)] ? _0x4ed84b(0x16a) : "") +
|
|
616
|
+
_0x4ed84b(0x16c) +
|
|
617
|
+
_0x48403e +
|
|
618
|
+
_0x4ed84b(0x14d)
|
|
275
619
|
)
|
|
276
|
-
[
|
|
277
|
-
|
|
278
|
-
(this[
|
|
279
|
-
?
|
|
620
|
+
[_0x4ed84b(0x14a)]("") +
|
|
621
|
+
"\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" +
|
|
622
|
+
(this[_0x4ed84b(0x12c)] && this[_0x4ed84b(0x120)] !== _0x4ed84b(0x198)
|
|
623
|
+
? "\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" +
|
|
624
|
+
this[_0x4ed84b(0x18e)] +
|
|
625
|
+
"\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"
|
|
280
626
|
: "") +
|
|
281
|
-
|
|
282
|
-
const
|
|
283
|
-
|
|
627
|
+
_0x4ed84b(0x170);
|
|
628
|
+
const _0x5399d8 = this[_0x4ed84b(0x145)][_0x4ed84b(0x128)](
|
|
629
|
+
_0x4ed84b(0x137)
|
|
284
630
|
),
|
|
285
|
-
|
|
286
|
-
|
|
631
|
+
_0x12a295 = this["shadowRoot"]["querySelectorAll"](
|
|
632
|
+
_0x4ed84b(0x147)
|
|
287
633
|
)[0x0];
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
(
|
|
291
|
-
const
|
|
292
|
-
this[
|
|
293
|
-
const
|
|
294
|
-
|
|
634
|
+
_0x5399d8 &&
|
|
635
|
+
_0x12a295 &&
|
|
636
|
+
(_0x5399d8[_0x4ed84b(0x18b)](_0x4ed84b(0x155), () => {
|
|
637
|
+
const _0x242ff3 = _0x4ed84b;
|
|
638
|
+
this[_0x242ff3(0x139)] = setTimeout(() => {
|
|
639
|
+
const _0xb66b2 = _0x242ff3;
|
|
640
|
+
_0x12a295[_0xb66b2(0x153)][_0xb66b2(0x144)] = _0xb66b2(0x12b);
|
|
295
641
|
}, 0x3e8);
|
|
296
642
|
}),
|
|
297
|
-
|
|
298
|
-
const
|
|
643
|
+
_0x5399d8[_0x4ed84b(0x18b)]("mouseout", () => {
|
|
644
|
+
const _0x24b61a = _0x4ed84b;
|
|
299
645
|
setTimeout(() => {
|
|
300
|
-
const
|
|
301
|
-
|
|
646
|
+
const _0x4b0641 = _0x4719;
|
|
647
|
+
_0x12a295["style"]["display"] = _0x4b0641(0x19a);
|
|
302
648
|
}, 0x7d0),
|
|
303
|
-
clearTimeout(this[
|
|
649
|
+
clearTimeout(this[_0x24b61a(0x139)]);
|
|
304
650
|
}),
|
|
305
|
-
|
|
651
|
+
_0x12a295[_0x4ed84b(0x18b)](_0x4ed84b(0x17c), () => {
|
|
306
652
|
setTimeout(() => {
|
|
307
|
-
const
|
|
308
|
-
|
|
653
|
+
const _0x2567e4 = _0x4719;
|
|
654
|
+
_0x12a295["style"]["display"] = _0x2567e4(0x19a);
|
|
309
655
|
}, 0x7d0);
|
|
310
656
|
})),
|
|
311
657
|
this["updateDropdownWidth"]();
|
|
312
658
|
}
|
|
313
659
|
["updateDropdownWidth"]() {
|
|
314
|
-
const
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
)
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
660
|
+
const _0x30894d = _0x57bb68,
|
|
661
|
+
_0x415c95 = this["shadowRoot"][_0x30894d(0x128)](_0x30894d(0x131)),
|
|
662
|
+
_0x25430b = _0x415c95[_0x30894d(0x188)][_0x415c95["selectedIndex"]],
|
|
663
|
+
_0x4a8f15 = document[_0x30894d(0x163)](_0x30894d(0x13e));
|
|
664
|
+
(_0x4a8f15[_0x30894d(0x153)]["position"] = _0x30894d(0x172)),
|
|
665
|
+
(_0x4a8f15[_0x30894d(0x153)][_0x30894d(0x154)] = "hidden"),
|
|
666
|
+
(_0x4a8f15[_0x30894d(0x153)][_0x30894d(0x17f)] =
|
|
667
|
+
getComputedStyle(_0x415c95)["font"]),
|
|
668
|
+
document["body"]["appendChild"](_0x4a8f15),
|
|
669
|
+
(_0x4a8f15["textContent"] = _0x25430b[_0x30894d(0x150)]);
|
|
670
|
+
const _0x307ae4 = _0x4a8f15[_0x30894d(0x129)];
|
|
671
|
+
document["body"]["removeChild"](_0x4a8f15);
|
|
672
|
+
const _0x543566 =
|
|
673
|
+
parseInt(getComputedStyle(_0x415c95)["paddingLeft"]) +
|
|
674
|
+
parseInt(getComputedStyle(_0x415c95)[_0x30894d(0x13a)]);
|
|
675
|
+
(_0x415c95[_0x30894d(0x153)]["width"] = this[_0x30894d(0x12c)]
|
|
676
|
+
? _0x307ae4 + _0x543566 + 0x16 + "px"
|
|
677
|
+
: _0x307ae4 + _0x543566 + 0x4 + "px"),
|
|
678
|
+
this[_0x30894d(0x135)] === _0x30894d(0x142) &&
|
|
679
|
+
(_0x415c95[_0x30894d(0x153)][_0x30894d(0x132)] =
|
|
680
|
+
_0x543566 + 0xc + "px");
|
|
334
681
|
}
|
|
335
682
|
}
|
|
336
|
-
customElements[
|
|
337
|
-
class
|
|
338
|
-
return customElements[
|
|
683
|
+
customElements[_0x57bb68(0x191)](_0x57bb68(0x17d), _0x4c8342);
|
|
684
|
+
class _0xf67553 extends _0x4c8342 {}
|
|
685
|
+
return customElements["define"](_0x57bb68(0x180), _0xf67553), _0x4c8342;
|
|
339
686
|
});
|
|
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
|
-
}
|