physical-quantity 1.1.30 → 1.1.35

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 CHANGED
@@ -13,7 +13,7 @@ It is a new HTML element for expressing physical quantities, featuring self-cont
13
13
  - Easy to integrate into any web project.
14
14
 
15
15
  ## Demo: Physical Quantity element - No Unit Converter or Dual Units Needed
16
- [Live Demo on JS Fiddle](https://jsfiddle.net/hithere/tz8ym4fh/134/embedded/result)
16
+ [Live Demo](https://v2-docs.donwen.com/demo/products/quik2.html)
17
17
 
18
18
  [![Example 1 in UI](https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/PQE%2Fexamples%2FPhysicalQuantityElementExample1.png?alt=media&token=2aa81849-9299-4ba5-9f62-79b8604b814f)](https://jsfiddle.net/hithere/tz8ym4fh/100/embedded/result)
19
19
 
@@ -157,6 +157,7 @@ Contributions are welcome! Please contact the developer for any bugs, features,
157
157
  ## Change Log
158
158
  | Version | Date | Description |
159
159
  |---|---|---|
160
+ | v1.1.35 |20240616| Added temperature category.|
160
161
  | 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.|
161
162
  | v1.1.28 |20240610| Tooltip for unit list provides a link to the unit converter page for all unit categories. Added more categories.|
162
163
  | v1.1.21 |20240603| Added alias uc-qty. |
package/dist/pq.es.js CHANGED
@@ -1,456 +1 @@
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
- }
1
+ const _0x207244=_0x3b76;(function(_0x1b0fdb,_0x4e4903){const _0x3bc056=_0x3b76,_0x13a8fd=_0x1b0fdb();while(!![]){try{const _0x3e11c8=-parseInt(_0x3bc056(0x21e))/0x1*(parseInt(_0x3bc056(0x1f1))/0x2)+-parseInt(_0x3bc056(0x221))/0x3*(parseInt(_0x3bc056(0x223))/0x4)+-parseInt(_0x3bc056(0x1cf))/0x5*(-parseInt(_0x3bc056(0x1b6))/0x6)+-parseInt(_0x3bc056(0x1cc))/0x7*(parseInt(_0x3bc056(0x1ba))/0x8)+-parseInt(_0x3bc056(0x1d4))/0x9+parseInt(_0x3bc056(0x1ad))/0xa*(parseInt(_0x3bc056(0x1bd))/0xb)+parseInt(_0x3bc056(0x210))/0xc;if(_0x3e11c8===_0x4e4903)break;else _0x13a8fd['push'](_0x13a8fd['shift']());}catch(_0x20fc19){_0x13a8fd['push'](_0x13a8fd['shift']());}}}(_0x2081,0x621aa));const s=0.45359237,o=25.4/0x3e8,l=0xc*o,m=0x18bcd,h=133.322387415,p={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x207244(0x203)],'Pressure':['Pa',_0x207244(0x1b1),_0x207244(0x1e3),_0x207244(0x1d0),'bar',_0x207244(0x214),'atm',_0x207244(0x1f5),_0x207244(0x1da),_0x207244(0x1dd),_0x207244(0x202),_0x207244(0x1e0),_0x207244(0x1ef),'psf',_0x207244(0x1fe),'ksi','ksi[kip/in²]'],'Density':[_0x207244(0x1e8),_0x207244(0x1ca),_0x207244(0x219),_0x207244(0x1dc),'lbm/ft³',_0x207244(0x207)],'Time':['s[second]','s',_0x207244(0x212),'h','h[hour]',_0x207244(0x1c2),_0x207244(0x1fb)],'ElectricalCurrent':['A',_0x207244(0x1fc),'mA','µA','kA','MA',_0x207244(0x20a)],'Temperature':['°K','°C','°F',_0x207244(0x1ed)]},g={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':o,'ft':l},'Mass':{'kg':0x1,'g':0.001,'lbm':s},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':m,'mm\x20HG':h,'cm\x20HG':h*0xa,'in\x20HG':h*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'](l,0x2),'psi':s*9.80665/Math[_0x207244(0x1fa)](o,0x2),'ksi':s*9.80665/Math[_0x207244(0x1fa)](o,0x2)*0x3e8,'ksi[kip/in²]':s*9.80665/Math[_0x207244(0x1fa)](o,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x207244(0x1fa)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0x207244(0x1fa)](0.001,0x3),'lbm/ft³':s/Math[_0x207244(0x1fa)](l,0x3),'lbm/in³':s/Math[_0x207244(0x1fa)](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},'Temperature':{'°K':{'c0':0x1,'c1':0x0},'°C':{'c0':0x1,'c1':273.15},'°F':{'c0':0x5/0x9,'c1':255.3722222},'°Ra':{'c0':0x5/0x9,'c1':0x0}}};class u extends HTMLElement{constructor(){const _0x528e18=_0x207244;super(),this[_0x528e18(0x205)]({'mode':_0x528e18(0x1aa)}),this[_0x528e18(0x1bc)]=0x0,this['tooltipTimeout']=null,this[_0x528e18(0x1b8)]=0x3,this[_0x528e18(0x1db)]=_0x528e18(0x1b7),this[_0x528e18(0x1cb)]=p,this[_0x528e18(0x20f)]=g,this[_0x528e18(0x1ee)]=!this[_0x528e18(0x21c)]('show-unit-arrow')||this[_0x528e18(0x1e9)]('show-unit-arrow')===_0x528e18(0x1d3),this['render']();}static get[_0x207244(0x1e4)](){const _0x35addf=_0x207244;return[_0x35addf(0x1bc),_0x35addf(0x215),'decimal-places',_0x35addf(0x1c7)];}['attributeChangedCallback'](_0x20698e,_0x5c73a2,_0x80a2ed){const _0x5d45cf=_0x207244;_0x20698e===_0x5d45cf(0x1bc)?this[_0x5d45cf(0x1bc)]=parseFloat(_0x80a2ed):_0x20698e==='unit'?(this['unit']=_0x80a2ed,this[_0x5d45cf(0x1c3)]=this[_0x5d45cf(0x21d)](_0x80a2ed)):_0x20698e===_0x5d45cf(0x213)?this[_0x5d45cf(0x1b8)]=parseInt(_0x80a2ed)||0x3:_0x20698e===_0x5d45cf(0x1c7)&&(this[_0x5d45cf(0x1ee)]=_0x80a2ed===null||_0x80a2ed===_0x5d45cf(0x1d3)),this['render']();}[_0x207244(0x21d)](_0x41dfdd){const _0x273d81=_0x207244;for(const _0x587467 in this[_0x273d81(0x1cb)])if(this[_0x273d81(0x1cb)][_0x587467][_0x273d81(0x1be)](_0x41dfdd))return _0x587467;return this['units']['Custom']=this[_0x273d81(0x1cb)][_0x273d81(0x21f)]||[],this['units'][_0x273d81(0x21f)][_0x273d81(0x1d2)](_0x41dfdd),this[_0x273d81(0x20f)][_0x273d81(0x21f)]=this[_0x273d81(0x20f)][_0x273d81(0x21f)]||{},this[_0x273d81(0x20f)]['Custom'][_0x41dfdd]=0x1,_0x273d81(0x21f);}[_0x207244(0x1f2)](){const _0x5a9911=_0x207244;this[_0x5a9911(0x1ea)][_0x5a9911(0x1d5)]('change',this[_0x5a9911(0x1ce)][_0x5a9911(0x1ac)](this)),this['unit']=this[_0x5a9911(0x1e9)](_0x5a9911(0x215))||'mm',this[_0x5a9911(0x1c3)]=this['getUnitCategory'](this['unit']),this[_0x5a9911(0x1ee)]=this['hasAttribute'](_0x5a9911(0x1c7))?this[_0x5a9911(0x1e9)](_0x5a9911(0x1c7))==='true':this[_0x5a9911(0x1c3)]!==_0x5a9911(0x21f),this['render']();}['disconnectedCallback'](){const _0x317dc9=_0x207244;this['shadowRoot']['removeEventListener'](_0x317dc9(0x1b4),this[_0x317dc9(0x1ce)][_0x317dc9(0x1ac)](this));}[_0x207244(0x20e)](_0x1a1c3c){const _0x3d6906=_0x207244;if(_0x1a1c3c['target'][_0x3d6906(0x1c5)](_0x3d6906(0x1f3))){const _0x3d0d2b=this[_0x3d6906(0x1ea)]['querySelector'](_0x3d6906(0x1f0));_0x3d0d2b&&(_0x3d0d2b[_0x3d6906(0x211)](),_0x3d0d2b[_0x3d6906(0x220)]());}}[_0x207244(0x1ce)](_0x27df3c){const _0x338c96=_0x207244;let _0x4a38f2=0x1,_0x128b45=0x1,_0x5f5d55=0x0,_0x374d69=0x0;if(_0x27df3c['target'][_0x338c96(0x1f7)]===_0x338c96(0x1f6)){const _0x40e431=_0x27df3c['target'][_0x338c96(0x1bc)];if(this[_0x338c96(0x1c3)]!==_0x338c96(0x1f4)){const _0xf0e3e9=this['unitConversion'][this[_0x338c96(0x1c3)]][this[_0x338c96(0x215)]]/this[_0x338c96(0x20f)][this['unitCategory']][_0x40e431];this[_0x338c96(0x1bc)]=this[_0x338c96(0x1bc)]*_0xf0e3e9;}else console[_0x338c96(0x20d)](_0x338c96(0x216)+this['unitCategory']),console['log']('unit:\x20'+this[_0x338c96(0x215)]),console[_0x338c96(0x20d)](_0x338c96(0x1b3)+_0x40e431),_0x4a38f2=this[_0x338c96(0x20f)][this[_0x338c96(0x1c3)]][this[_0x338c96(0x215)]]['c0'],_0x128b45=this[_0x338c96(0x20f)][this['unitCategory']][this[_0x338c96(0x215)]]['c1'],_0x5f5d55=this['unitConversion'][this[_0x338c96(0x1c3)]][_0x40e431]['c0'],_0x374d69=this[_0x338c96(0x20f)][this['unitCategory']][_0x40e431]['c1'],this['value']=(this[_0x338c96(0x1bc)]*_0x4a38f2+_0x128b45-_0x374d69)/_0x5f5d55;this[_0x338c96(0x215)]=_0x40e431,this[_0x338c96(0x1bb)]();}this[_0x338c96(0x1f9)]();}[_0x207244(0x206)](_0x1173eb){const _0x303655=_0x207244;return Number['isInteger'](_0x1173eb)?_0x1173eb[_0x303655(0x1ec)]():Math[_0x303655(0x1d8)](_0x1173eb)!==0x0?_0x1173eb[_0x303655(0x1e5)](this[_0x303655(0x1b8)])[_0x303655(0x1d7)](/0+$/,'')[_0x303655(0x1d7)](/\.$/,''):_0x1173eb[_0x303655(0x1ae)](0x3);}[_0x207244(0x1bb)](){const _0x14ca7a=_0x207244;this[_0x14ca7a(0x1ea)][_0x14ca7a(0x20c)]=_0x14ca7a(0x1e6)+(this[_0x14ca7a(0x1ee)]?_0x14ca7a(0x1fd):_0x14ca7a(0x1e2))+_0x14ca7a(0x21b)+(this['showUnitArrow']?_0x14ca7a(0x1fd):_0x14ca7a(0x1e2))+_0x14ca7a(0x1df)+(this[_0x14ca7a(0x1ee)]?'auto':_0x14ca7a(0x1e2))+_0x14ca7a(0x218)+this['formatValue'](this[_0x14ca7a(0x1bc)])+_0x14ca7a(0x1c9)+(this['units'][this[_0x14ca7a(0x1c3)]]||[this[_0x14ca7a(0x215)]])['map'](_0x3e00fe=>'<option\x20value=\x22'+_0x3e00fe+'\x22\x20'+(_0x3e00fe===this[_0x14ca7a(0x215)]?_0x14ca7a(0x1ff):'')+_0x14ca7a(0x1eb)+_0x3e00fe+'</option>')['join']('')+_0x14ca7a(0x204)+(this['showUnitArrow']&&this['unitCategory']!==_0x14ca7a(0x21f)?_0x14ca7a(0x1d6)+this[_0x14ca7a(0x1db)]+_0x14ca7a(0x1de):'')+_0x14ca7a(0x200);const _0x21ebd7=this['shadowRoot'][_0x14ca7a(0x1e7)](_0x14ca7a(0x1f3)),_0x101498=this[_0x14ca7a(0x1ea)][_0x14ca7a(0x1b2)](_0x14ca7a(0x1cd))[0x0];_0x21ebd7&&_0x101498&&(_0x21ebd7['addEventListener'](_0x14ca7a(0x1bf),()=>{const _0x53f429=_0x14ca7a;this[_0x53f429(0x1e1)]=setTimeout(()=>{const _0x582cf6=_0x53f429;_0x101498[_0x582cf6(0x1d1)]['display']='block';},0x3e8);}),_0x21ebd7[_0x14ca7a(0x1d5)](_0x14ca7a(0x222),()=>{setTimeout(()=>{const _0x12934d=_0x3b76;_0x101498[_0x12934d(0x1d1)][_0x12934d(0x1b0)]=_0x12934d(0x1e2);},0x7d0),clearTimeout(this['tooltipTimeout']);}),_0x101498[_0x14ca7a(0x1d5)](_0x14ca7a(0x222),()=>{setTimeout(()=>{const _0x4600f2=_0x3b76;_0x101498[_0x4600f2(0x1d1)][_0x4600f2(0x1b0)]=_0x4600f2(0x1e2);},0x7d0);})),this[_0x14ca7a(0x1f9)]();}[_0x207244(0x1f9)](){const _0x4f4063=_0x207244,_0x51d799=this[_0x4f4063(0x1ea)]['querySelector']('select'),_0x2a16ef=_0x51d799[_0x4f4063(0x1c8)][_0x51d799['selectedIndex']],_0x444169=document[_0x4f4063(0x1c6)](_0x4f4063(0x208));_0x444169[_0x4f4063(0x1d1)]['position']=_0x4f4063(0x1f8),_0x444169[_0x4f4063(0x1d1)][_0x4f4063(0x1c1)]=_0x4f4063(0x1c0),_0x444169[_0x4f4063(0x1d1)]['font']=getComputedStyle(_0x51d799)['font'],document['body'][_0x4f4063(0x1b5)](_0x444169),_0x444169[_0x4f4063(0x201)]=_0x2a16ef[_0x4f4063(0x1d9)];const _0x35a334=_0x444169[_0x4f4063(0x217)];document[_0x4f4063(0x1ab)][_0x4f4063(0x1b9)](_0x444169);const _0x5015f6=parseInt(getComputedStyle(_0x51d799)[_0x4f4063(0x209)])+parseInt(getComputedStyle(_0x51d799)[_0x4f4063(0x21a)]);_0x51d799[_0x4f4063(0x1d1)][_0x4f4063(0x1c4)]=this[_0x4f4063(0x1ee)]?_0x35a334+_0x5015f6+0x16+'px':_0x35a334+_0x5015f6+0x4+'px';}}customElements[_0x207244(0x20b)](_0x207244(0x1af),u);class C extends u{}function _0x3b76(_0x1f4b6f,_0x87f8e5){const _0x20815c=_0x2081();return _0x3b76=function(_0x3b7696,_0x63fa72){_0x3b7696=_0x3b7696-0x1aa;let _0x233aa7=_0x20815c[_0x3b7696];return _0x233aa7;},_0x3b76(_0x1f4b6f,_0x87f8e5);}customElements[_0x207244(0x20b)]('uc-qty',C);function _0x2081(){const _0x3f8d3f=['GPa','style','push','true','5884155TrCcCb','addEventListener','\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','replace','floor','text','cm\x20HG','e3dLogoUrl','g/mm³','in\x20HG','\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','m\x20W.C.','tooltipTimeout','none','MPa','observedAttributes','toFixed','\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','querySelector','kg/m³','getAttribute','shadowRoot','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toString','°Ra','showUnitArrow','in\x20W.C.','select','120110ExrFrT','connectedCallback','.unit-container','Temperature','mm\x20HG','SELECT','tagName','absolute','updateDropdownWidth','pow','week','Ampere[amp]','auto','psi','selected','\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','textContent','mm\x20W.C.','lbm','\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','attachShadow','formatValue','lbm/in³','span','paddingLeft','esu/s','define','innerHTML','log','handleArrowClick','unitConversion','15409008BEaadl','focus','minute','decimal-places','mbar','unit','category:\x20','offsetWidth',';\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>','g/cm³','paddingRight',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','hasAttribute','getUnitCategory','2fUzjIF','Custom','click','187593ofDomY','mouseout','8eZqCSJ','open','body','bind','190Etbgcm','toPrecision','physical-quantity','display','kPa','querySelectorAll','newUnit:\x20','change','appendChild','1008372XfXCOI','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','decimalPlaces','removeChild','208NfHdzF','render','value','249513uvGucb','includes','mouseover','hidden','visibility','day','unitCategory','width','closest','createElement','show-unit-arrow','options','</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','kg/L','units','156779LcEgDU','.tooltip','handleUnitChange','5tNUhnA'];_0x2081=function(){return _0x3f8d3f;};return _0x2081();}export{u as default};
package/dist/pq.umd.js CHANGED
@@ -1,472 +1 @@
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
- }
1
+ function _0x509f(_0xd7fdc8,_0x214a98){const _0x108169=_0x1081();return _0x509f=function(_0x509f8d,_0x385b24){_0x509f8d=_0x509f8d-0x1a4;let _0x49027f=_0x108169[_0x509f8d];return _0x49027f;},_0x509f(_0xd7fdc8,_0x214a98);}function _0x1081(){const _0x9ad48=['mouseout','createElement','day','4062758fyDBjP','focus','unitConversion','exports','\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','Temperature','true','6350406cBwkBV','Custom','unit:\x20','removeChild','200OTStta','closest','visibility','ksi','decimalPlaces','log','units','2148296DFZMju','target','in\x20W.C.','replace','select','value','GPa','toPrecision','options','selected','join','addEventListener',';\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>','mm\x20HG','textContent','map','font','unitCategory','connectedCallback','PhysicalQuantity',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','show-unit-arrow','psi','render','paddingLeft','bind','auto','body','block','floor','e3dLogoUrl','toFixed','kg/L','showUnitArrow','kg/m³','none','kPa','uc-qty','decimal-places','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','function','esu/s','position','absolute','updateDropdownWidth','shadowRoot','°Ra','319332OjTTwJ','SELECT','</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','h[hour]','atm','<option\x20value=\x22','change','querySelectorAll','isInteger','unit','paddingRight','display','5uJlqnj','mbar','define','g/mm³','\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','1134551jZwdeb','newUnit:\x20','style','s[second]','click','innerHTML','amd','getAttribute',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','in\x20HG','observedAttributes','span','formatValue','63513qCUfsR','getUnitCategory','29199TVqYyY','handleUnitChange','\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','category:\x20','1072nICDES','158rpIGeK','includes','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pow','MPa','\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','selectedIndex','Ampere[amp]','lbm','handleArrowClick','hasAttribute','.tooltip','querySelector','mm\x20W.C.','.unit-container','tooltipTimeout','object'];_0x1081=function(){return _0x9ad48;};return _0x1081();}(function(_0x5374a6,_0x2879e8){const _0xa1e45e=_0x509f,_0x510ffa=_0x5374a6();while(!![]){try{const _0x16febd=parseInt(_0xa1e45e(0x1f4))/0x1+-parseInt(_0xa1e45e(0x219))/0x2*(-parseInt(_0xa1e45e(0x214))/0x3)+-parseInt(_0xa1e45e(0x1c4))/0x4*(-parseInt(_0xa1e45e(0x200))/0x5)+parseInt(_0xa1e45e(0x1b9))/0x6+-parseInt(_0xa1e45e(0x1b2))/0x7+-parseInt(_0xa1e45e(0x218))/0x8*(-parseInt(_0xa1e45e(0x212))/0x9)+parseInt(_0xa1e45e(0x1bd))/0xa*(-parseInt(_0xa1e45e(0x205))/0xb);if(_0x16febd===_0x2879e8)break;else _0x510ffa['push'](_0x510ffa['shift']());}catch(_0x3e5101){_0x510ffa['push'](_0x510ffa['shift']());}}}(_0x1081,0xf0c1a),function(_0x3c1a18,_0x562a7d){const _0xc81b40=_0x509f;typeof exports==_0xc81b40(0x1ae)&&typeof module<'u'?module[_0xc81b40(0x1b5)]=_0x562a7d():typeof define==_0xc81b40(0x1ed)&&define[_0xc81b40(0x20b)]?define(_0x562a7d):(_0x3c1a18=typeof globalThis<'u'?globalThis:_0x3c1a18||self,_0x3c1a18[_0xc81b40(0x1d7)]=_0x562a7d());}(this,function(){'use strict';const _0x4f68f5=_0x509f;const _0x291536=0.45359237,_0x46e813=25.4/0x3e8,_0x435de4=0xc*_0x46e813,_0xe21930=0x18bcd,_0x394c14=133.322387415,_0x205424={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x4f68f5(0x1a6)],'Pressure':['Pa',_0x4f68f5(0x1e9),_0x4f68f5(0x21d),_0x4f68f5(0x1ca),'bar',_0x4f68f5(0x201),_0x4f68f5(0x1f8),_0x4f68f5(0x1d1),'cm\x20HG',_0x4f68f5(0x20e),_0x4f68f5(0x1ab),'m\x20W.C.',_0x4f68f5(0x1c6),'psf',_0x4f68f5(0x1db),_0x4f68f5(0x1c0),'ksi[kip/in²]'],'Density':[_0x4f68f5(0x1e7),_0x4f68f5(0x1e5),'g/cm³',_0x4f68f5(0x203),'lbm/ft³','lbm/in³'],'Time':[_0x4f68f5(0x208),'s','minute','h',_0x4f68f5(0x1f7),_0x4f68f5(0x1b1),'week'],'ElectricalCurrent':['A',_0x4f68f5(0x1a5),'mA','µA','kA','MA',_0x4f68f5(0x1ee)],'Temperature':['°K','°C','°F',_0x4f68f5(0x1f3)]},_0x661a4a={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':_0x46e813,'ft':_0x435de4},'Mass':{'kg':0x1,'g':0.001,'lbm':_0x291536},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0xe21930,'mm\x20HG':_0x394c14,'cm\x20HG':_0x394c14*0xa,'in\x20HG':_0x394c14*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':_0x46e813*0x3e8*9.80665,'psf':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x435de4,0x2),'psi':_0x291536*9.80665/Math['pow'](_0x46e813,0x2),'ksi':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x46e813,0x2)*0x3e8,'ksi[kip/in²]':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x46e813,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math['pow'](0.01,0x3),'g/mm³':0x1/0x3e8/Math['pow'](0.001,0x3),'lbm/ft³':_0x291536/Math[_0x4f68f5(0x21c)](_0x435de4,0x3),'lbm/in³':_0x291536/Math['pow'](_0x46e813,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},'Temperature':{'°K':{'c0':0x1,'c1':0x0},'°C':{'c0':0x1,'c1':273.15},'°F':{'c0':0x5/0x9,'c1':255.3722222},'°Ra':{'c0':0x5/0x9,'c1':0x0}}};class _0x3feca8 extends HTMLElement{constructor(){const _0x3fbacd=_0x4f68f5;super(),this['attachShadow']({'mode':'open'}),this[_0x3fbacd(0x1c9)]=0x0,this[_0x3fbacd(0x1ad)]=null,this[_0x3fbacd(0x1c1)]=0x3,this[_0x3fbacd(0x1e3)]=_0x3fbacd(0x1ec),this[_0x3fbacd(0x1c3)]=_0x205424,this['unitConversion']=_0x661a4a,this[_0x3fbacd(0x1e6)]=!this[_0x3fbacd(0x1a8)](_0x3fbacd(0x1da))||this[_0x3fbacd(0x20c)](_0x3fbacd(0x1da))===_0x3fbacd(0x1b8),this[_0x3fbacd(0x1dc)]();}static get[_0x4f68f5(0x20f)](){const _0x327d05=_0x4f68f5;return[_0x327d05(0x1c9),_0x327d05(0x1fd),_0x327d05(0x1eb),_0x327d05(0x1da)];}['attributeChangedCallback'](_0x784ee8,_0x422a83,_0x52c93f){const _0xb17425=_0x4f68f5;_0x784ee8===_0xb17425(0x1c9)?this[_0xb17425(0x1c9)]=parseFloat(_0x52c93f):_0x784ee8===_0xb17425(0x1fd)?(this[_0xb17425(0x1fd)]=_0x52c93f,this[_0xb17425(0x1d5)]=this[_0xb17425(0x213)](_0x52c93f)):_0x784ee8===_0xb17425(0x1eb)?this[_0xb17425(0x1c1)]=parseInt(_0x52c93f)||0x3:_0x784ee8===_0xb17425(0x1da)&&(this['showUnitArrow']=_0x52c93f===null||_0x52c93f===_0xb17425(0x1b8)),this[_0xb17425(0x1dc)]();}[_0x4f68f5(0x213)](_0x240fc7){const _0x11cdb0=_0x4f68f5;for(const _0x248e5d in this[_0x11cdb0(0x1c3)])if(this[_0x11cdb0(0x1c3)][_0x248e5d][_0x11cdb0(0x21a)](_0x240fc7))return _0x248e5d;return this[_0x11cdb0(0x1c3)][_0x11cdb0(0x1ba)]=this[_0x11cdb0(0x1c3)][_0x11cdb0(0x1ba)]||[],this[_0x11cdb0(0x1c3)]['Custom']['push'](_0x240fc7),this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)]=this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)]||{},this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)][_0x240fc7]=0x1,_0x11cdb0(0x1ba);}[_0x4f68f5(0x1d6)](){const _0x432904=_0x4f68f5;this[_0x432904(0x1f2)][_0x432904(0x1cf)](_0x432904(0x1fa),this[_0x432904(0x215)]['bind'](this)),this[_0x432904(0x1fd)]=this['getAttribute'](_0x432904(0x1fd))||'mm',this['unitCategory']=this[_0x432904(0x213)](this[_0x432904(0x1fd)]),this[_0x432904(0x1e6)]=this[_0x432904(0x1a8)]('show-unit-arrow')?this[_0x432904(0x20c)](_0x432904(0x1da))===_0x432904(0x1b8):this[_0x432904(0x1d5)]!==_0x432904(0x1ba),this[_0x432904(0x1dc)]();}['disconnectedCallback'](){const _0x59bdd4=_0x4f68f5;this['shadowRoot']['removeEventListener'](_0x59bdd4(0x1fa),this['handleUnitChange'][_0x59bdd4(0x1de)](this));}[_0x4f68f5(0x1a7)](_0x1e2df1){const _0x32f16b=_0x4f68f5;if(_0x1e2df1[_0x32f16b(0x1c5)][_0x32f16b(0x1be)](_0x32f16b(0x1ac))){const _0x55153a=this[_0x32f16b(0x1f2)]['querySelector'](_0x32f16b(0x1c8));_0x55153a&&(_0x55153a[_0x32f16b(0x1b3)](),_0x55153a[_0x32f16b(0x209)]());}}[_0x4f68f5(0x215)](_0xcd6a8a){const _0x721f8=_0x4f68f5;let _0x36700f=0x1,_0x433e28=0x1,_0x43691d=0x0,_0x566b05=0x0;if(_0xcd6a8a[_0x721f8(0x1c5)]['tagName']===_0x721f8(0x1f5)){const _0x373cd0=_0xcd6a8a[_0x721f8(0x1c5)]['value'];if(this['unitCategory']!==_0x721f8(0x1b7)){const _0x206b4c=this['unitConversion'][this['unitCategory']][this[_0x721f8(0x1fd)]]/this[_0x721f8(0x1b4)][this['unitCategory']][_0x373cd0];this['value']=this['value']*_0x206b4c;}else console[_0x721f8(0x1c2)](_0x721f8(0x217)+this[_0x721f8(0x1d5)]),console['log'](_0x721f8(0x1bb)+this[_0x721f8(0x1fd)]),console['log'](_0x721f8(0x206)+_0x373cd0),_0x36700f=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][this[_0x721f8(0x1fd)]]['c0'],_0x433e28=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][this['unit']]['c1'],_0x43691d=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][_0x373cd0]['c0'],_0x566b05=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][_0x373cd0]['c1'],this['value']=(this[_0x721f8(0x1c9)]*_0x36700f+_0x433e28-_0x566b05)/_0x43691d;this[_0x721f8(0x1fd)]=_0x373cd0,this[_0x721f8(0x1dc)]();}this[_0x721f8(0x1f1)]();}['formatValue'](_0x4cb3eb){const _0x176b1a=_0x4f68f5;return Number[_0x176b1a(0x1fc)](_0x4cb3eb)?_0x4cb3eb['toString']():Math[_0x176b1a(0x1e2)](_0x4cb3eb)!==0x0?_0x4cb3eb[_0x176b1a(0x1e4)](this[_0x176b1a(0x1c1)])[_0x176b1a(0x1c7)](/0+$/,'')[_0x176b1a(0x1c7)](/\.$/,''):_0x4cb3eb[_0x176b1a(0x1cb)](0x3);}['render'](){const _0xdc4670=_0x4f68f5;this['shadowRoot'][_0xdc4670(0x20a)]=_0xdc4670(0x216)+(this['showUnitArrow']?_0xdc4670(0x1df):_0xdc4670(0x1e8))+_0xdc4670(0x1d8)+(this['showUnitArrow']?_0xdc4670(0x1df):_0xdc4670(0x1e8))+_0xdc4670(0x20d)+(this[_0xdc4670(0x1e6)]?'auto':_0xdc4670(0x1e8))+_0xdc4670(0x1d0)+this[_0xdc4670(0x211)](this[_0xdc4670(0x1c9)])+_0xdc4670(0x1f6)+(this[_0xdc4670(0x1c3)][this[_0xdc4670(0x1d5)]]||[this[_0xdc4670(0x1fd)]])[_0xdc4670(0x1d3)](_0x116e9e=>_0xdc4670(0x1f9)+_0x116e9e+'\x22\x20'+(_0x116e9e===this[_0xdc4670(0x1fd)]?_0xdc4670(0x1cd):'')+_0xdc4670(0x21b)+_0x116e9e+'</option>')[_0xdc4670(0x1ce)]('')+_0xdc4670(0x1b6)+(this['showUnitArrow']&&this[_0xdc4670(0x1d5)]!=='Custom'?_0xdc4670(0x21e)+this[_0xdc4670(0x1e3)]+_0xdc4670(0x204):'')+_0xdc4670(0x1d9);const _0x446683=this['shadowRoot'][_0xdc4670(0x1aa)](_0xdc4670(0x1ac)),_0x49aaef=this['shadowRoot'][_0xdc4670(0x1fb)](_0xdc4670(0x1a9))[0x0];_0x446683&&_0x49aaef&&(_0x446683['addEventListener']('mouseover',()=>{const _0x1fad54=_0xdc4670;this[_0x1fad54(0x1ad)]=setTimeout(()=>{const _0x40cf11=_0x1fad54;_0x49aaef[_0x40cf11(0x207)][_0x40cf11(0x1ff)]=_0x40cf11(0x1e1);},0x3e8);}),_0x446683[_0xdc4670(0x1cf)](_0xdc4670(0x1af),()=>{const _0x574934=_0xdc4670;setTimeout(()=>{const _0x682d7=_0x509f;_0x49aaef[_0x682d7(0x207)][_0x682d7(0x1ff)]='none';},0x7d0),clearTimeout(this[_0x574934(0x1ad)]);}),_0x49aaef[_0xdc4670(0x1cf)](_0xdc4670(0x1af),()=>{setTimeout(()=>{const _0x7a62f=_0x509f;_0x49aaef['style']['display']=_0x7a62f(0x1e8);},0x7d0);})),this[_0xdc4670(0x1f1)]();}['updateDropdownWidth'](){const _0x2ab2af=_0x4f68f5,_0x5854e6=this[_0x2ab2af(0x1f2)][_0x2ab2af(0x1aa)]('select'),_0x50511c=_0x5854e6[_0x2ab2af(0x1cc)][_0x5854e6[_0x2ab2af(0x1a4)]],_0x21017f=document[_0x2ab2af(0x1b0)](_0x2ab2af(0x210));_0x21017f[_0x2ab2af(0x207)][_0x2ab2af(0x1ef)]=_0x2ab2af(0x1f0),_0x21017f['style'][_0x2ab2af(0x1bf)]='hidden',_0x21017f[_0x2ab2af(0x207)][_0x2ab2af(0x1d4)]=getComputedStyle(_0x5854e6)[_0x2ab2af(0x1d4)],document[_0x2ab2af(0x1e0)]['appendChild'](_0x21017f),_0x21017f[_0x2ab2af(0x1d2)]=_0x50511c['text'];const _0x2c2fdb=_0x21017f['offsetWidth'];document[_0x2ab2af(0x1e0)][_0x2ab2af(0x1bc)](_0x21017f);const _0x5bdc32=parseInt(getComputedStyle(_0x5854e6)[_0x2ab2af(0x1dd)])+parseInt(getComputedStyle(_0x5854e6)[_0x2ab2af(0x1fe)]);_0x5854e6['style']['width']=this[_0x2ab2af(0x1e6)]?_0x2c2fdb+_0x5bdc32+0x16+'px':_0x2c2fdb+_0x5bdc32+0x4+'px';}}customElements[_0x4f68f5(0x202)]('physical-quantity',_0x3feca8);class _0x5fb682 extends _0x3feca8{}return customElements[_0x4f68f5(0x202)](_0x4f68f5(0x1ea),_0x5fb682),_0x3feca8;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "physical-quantity",
3
- "version": "1.1.30",
3
+ "version": "1.1.35",
4
4
  "description": "A web component to represent a physical quantity with unit conversion.",
5
5
  "main": "dist/pq.umd.js",
6
6
  "module": "dist/pq.es.js",