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/dist/pq.es.js CHANGED
@@ -1,85 +1,92 @@
1
- const _0x3ab5ea = _0x5953;
2
- (function (_0x191888, _0x11c5a5) {
3
- const _0x25b7de = _0x5953,
4
- _0x3981ef = _0x191888();
1
+ const _0x4b583c = _0xa576;
2
+ (function (_0x40722a, _0x66e435) {
3
+ const _0x432fa9 = _0xa576,
4
+ _0x2c39d4 = _0x40722a();
5
5
  while (!![]) {
6
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"]());
7
+ const _0x184479 =
8
+ -parseInt(_0x432fa9(0x15f)) / 0x1 +
9
+ (parseInt(_0x432fa9(0x130)) / 0x2) *
10
+ (parseInt(_0x432fa9(0x123)) / 0x3) +
11
+ parseInt(_0x432fa9(0x143)) / 0x4 +
12
+ parseInt(_0x432fa9(0x11b)) / 0x5 +
13
+ (parseInt(_0x432fa9(0x179)) / 0x6) *
14
+ (parseInt(_0x432fa9(0x166)) / 0x7) +
15
+ parseInt(_0x432fa9(0x157)) / 0x8 +
16
+ -parseInt(_0x432fa9(0x14f)) / 0x9;
17
+ if (_0x184479 === _0x66e435) break;
18
+ else _0x2c39d4["push"](_0x2c39d4["shift"]());
19
+ } catch (_0x283794) {
20
+ _0x2c39d4["push"](_0x2c39d4["shift"]());
23
21
  }
24
22
  }
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)],
23
+ })(_0x2301, 0x7c3d3);
24
+ const m = 0.45359237,
25
+ c = 25.4 / 0x3e8,
26
+ p = 0xc * c,
27
+ A = 0x18bcd,
28
+ f = 133.322387415,
29
+ C = {
30
+ Length: ["m", "km", "cm", "mm", "in", _0x4b583c(0x11a), "ft"],
31
+ Mass: ["g", "kg", _0x4b583c(0x11f)],
34
32
  Pressure: [
35
33
  "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),
34
+ "kPa",
35
+ _0x4b583c(0x178),
36
+ _0x4b583c(0x10f),
37
+ "bar",
38
+ _0x4b583c(0x165),
39
+ _0x4b583c(0x14d),
40
+ _0x4b583c(0x172),
41
+ _0x4b583c(0x10c),
42
+ _0x4b583c(0x184),
43
+ "mm\x20W.C.",
44
+ _0x4b583c(0x117),
45
+ _0x4b583c(0x115),
46
+ _0x4b583c(0x167),
47
+ _0x4b583c(0x185),
48
+ _0x4b583c(0x151),
51
49
  "ksi[kip/in²]",
52
50
  ],
53
51
  Density: [
54
- _0x3ab5ea(0xd1),
55
- _0x3ab5ea(0xbd),
52
+ _0x4b583c(0x154),
53
+ "kg/L",
56
54
  "g/cm³",
57
- _0x3ab5ea(0x123),
58
- _0x3ab5ea(0x10f),
59
- _0x3ab5ea(0xc5),
55
+ "g/mm³",
56
+ "lbm/ft³",
57
+ _0x4b583c(0x122),
60
58
  ],
61
59
  Time: [
62
- _0x3ab5ea(0xec),
60
+ _0x4b583c(0x159),
63
61
  "s",
64
- _0x3ab5ea(0xcd),
62
+ "minute",
65
63
  "h",
66
- _0x3ab5ea(0x128),
67
- _0x3ab5ea(0x127),
68
- _0x3ab5ea(0x11e),
64
+ _0x4b583c(0x124),
65
+ "day",
66
+ _0x4b583c(0x146),
69
67
  ],
70
68
  ElectricalCurrent: [
71
69
  "A",
72
- "Ampere[amp]",
70
+ _0x4b583c(0x162),
73
71
  "mA",
74
72
  "µA",
75
73
  "kA",
76
74
  "MA",
77
- _0x3ab5ea(0xf5),
75
+ _0x4b583c(0x144),
78
76
  ],
77
+ Temperature: ["°K", "°C", "°F", "°Ra"],
79
78
  },
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 },
79
+ y = {
80
+ Length: {
81
+ m: 0x1,
82
+ km: 0x3e8,
83
+ cm: 0.01,
84
+ mm: 0.001,
85
+ in: c,
86
+ "ft-in": c,
87
+ ft: p,
88
+ },
89
+ Mass: { kg: 0x1, g: 0.001, lbm: m },
83
90
  Pressure: {
84
91
  Pa: 0x1,
85
92
  kPa: 0x3e8,
@@ -87,25 +94,25 @@ const s = 0.45359237,
87
94
  GPa: 0x3b9aca00,
88
95
  bar: 0x64 * 0x3e8,
89
96
  mbar: 0x64,
90
- atm: c,
91
- "mm\x20HG": a,
92
- "cm\x20HG": a * 0xa,
93
- "in\x20HG": a * 25.4,
97
+ atm: A,
98
+ "mm\x20HG": f,
99
+ "cm\x20HG": f * 0xa,
100
+ "in\x20HG": f * 25.4,
94
101
  "mm\x20W.C.": (0x1 / 0x3e8) * 0x3e8 * 9.80665,
95
102
  "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,
103
+ "in\x20W.C.": c * 0x3e8 * 9.80665,
104
+ psf: (m * 9.80665) / Math["pow"](p, 0x2),
105
+ psi: (m * 9.80665) / Math["pow"](c, 0x2),
106
+ ksi: ((m * 9.80665) / Math[_0x4b583c(0x109)](c, 0x2)) * 0x3e8,
107
+ "ksi[kip/in²]": ((m * 9.80665) / Math[_0x4b583c(0x109)](c, 0x2)) * 0x3e8,
101
108
  },
102
109
  Density: {
103
110
  "kg/m³": 0x1,
104
111
  "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),
112
+ "g/cm³": 0x1 / 0x3e8 / Math[_0x4b583c(0x109)](0.01, 0x3),
113
+ "g/mm³": 0x1 / 0x3e8 / Math[_0x4b583c(0x109)](0.001, 0x3),
114
+ "lbm/ft³": m / Math[_0x4b583c(0x109)](p, 0x3),
115
+ "lbm/in³": m / Math["pow"](c, 0x3),
109
116
  },
110
117
  Time: {
111
118
  "s[second]": 0x1,
@@ -125,332 +132,516 @@ const s = 0.45359237,
125
132
  MA: 0xf4240,
126
133
  "esu/s": 0x1 / 0xb2d05e00,
127
134
  },
135
+ Temperature: {
136
+ "°K": { c0: 0x1, c1: 0x0 },
137
+ "°C": { c0: 0x1, c1: 273.15 },
138
+ "°F": { c0: 0x5 / 0x9, c1: 255.3722222 },
139
+ "°Ra": { c0: 0x5 / 0x9, c1: 0x0 },
140
+ },
128
141
  };
129
- class h extends HTMLElement {
142
+ class v extends HTMLElement {
130
143
  constructor() {
131
- const _0x27a547 = _0x3ab5ea;
144
+ const _0x38e8ed = _0x4b583c;
132
145
  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)]();
146
+ this[_0x38e8ed(0x142)]({ mode: "open" }),
147
+ (this[_0x38e8ed(0x132)] = C),
148
+ (this[_0x38e8ed(0x120)] = y),
149
+ (this["unit"] = this[_0x38e8ed(0x12f)](_0x38e8ed(0x13b)) || "mm"),
150
+ (this["unitCategory"] = this[_0x38e8ed(0x156)](this[_0x38e8ed(0x13b)])),
151
+ (this[_0x38e8ed(0x13e)] = this[_0x38e8ed(0x12f)](_0x38e8ed(0x153))),
152
+ this[_0x38e8ed(0x13b)] === _0x38e8ed(0x11a)
153
+ ? (this["value"] = this[_0x38e8ed(0x187)](this[_0x38e8ed(0x13e)]))
154
+ : (this[_0x38e8ed(0x153)] = parseFloat(this[_0x38e8ed(0x13e)])),
155
+ (this["tooltipTimeout"] = null),
156
+ (this["decimalPlaces"] = 0x3),
157
+ (this[_0x38e8ed(0x152)] =
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[_0x38e8ed(0x132)] = C),
160
+ (this[_0x38e8ed(0x120)] = y),
161
+ (this[_0x38e8ed(0x137)] =
162
+ !this["hasAttribute"]("show-unit-arrow") ||
163
+ this[_0x38e8ed(0x12f)](_0x38e8ed(0x160)) === _0x38e8ed(0x16f)),
164
+ this[_0x38e8ed(0x113)]();
165
+ }
166
+ static get [_0x4b583c(0x12d)]() {
167
+ const _0x167a74 = _0x4b583c;
168
+ return [
169
+ _0x167a74(0x153),
170
+ _0x167a74(0x13b),
171
+ "decimal-places",
172
+ _0x167a74(0x160),
173
+ ];
144
174
  }
145
- static get [_0x3ab5ea(0x112)]() {
146
- const _0x51741d = _0x3ab5ea;
147
- return [_0x51741d(0xc2), "unit", _0x51741d(0x124), _0x51741d(0xf9)];
175
+ [_0x4b583c(0x10a)](_0x2c3bb9, _0x27dd1c, _0x11cb57) {
176
+ const _0x372d78 = _0x4b583c;
177
+ _0x2c3bb9 === _0x372d78(0x153)
178
+ ? ((this[_0x372d78(0x13e)] = _0x11cb57),
179
+ this["unit"] === _0x372d78(0x11a)
180
+ ? (this[_0x372d78(0x153)] = this["parseFeetInchesValue"](_0x11cb57))
181
+ : (this[_0x372d78(0x153)] = parseFloat(_0x11cb57)))
182
+ : _0x2c3bb9 === "unit"
183
+ ? ((this[_0x372d78(0x13b)] = _0x11cb57),
184
+ (this[_0x372d78(0x114)] = this[_0x372d78(0x156)](_0x11cb57)),
185
+ this["unit"] === _0x372d78(0x11a)
186
+ ? (this[_0x372d78(0x153)] = this[_0x372d78(0x187)](
187
+ this["inputValue"]
188
+ ))
189
+ : _0x27dd1c === _0x372d78(0x11a) &&
190
+ (this[_0x372d78(0x153)] = this[_0x372d78(0x13d)](
191
+ this["value"],
192
+ "in",
193
+ this["unit"]
194
+ )))
195
+ : _0x2c3bb9 === "decimal-places"
196
+ ? (this["decimalPlaces"] = parseInt(_0x11cb57) || 0x3)
197
+ : _0x2c3bb9 === _0x372d78(0x160) &&
198
+ (this[_0x372d78(0x137)] = _0x11cb57 === null || _0x11cb57 === "true"),
199
+ this["render"]();
200
+ }
201
+ [_0x4b583c(0x187)](_0x2f512f) {
202
+ const _0x27a03f = _0x4b583c,
203
+ _0x3ed461 = /(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/,
204
+ _0x324bc6 = /(\d+)\'/,
205
+ _0x325142 = /(\d+)/;
206
+ let _0x43b383 = _0x2f512f[_0x27a03f(0x168)](_0x3ed461);
207
+ if (_0x43b383) {
208
+ const _0xffb043 = parseInt(_0x43b383[0x1]) || 0x0,
209
+ _0x2f10a1 = parseInt(_0x43b383[0x3]) || 0x0,
210
+ _0x38a1fa = parseInt(_0x43b383[0x5]) || 0x0,
211
+ _0x30d64d = parseInt(_0x43b383[0x6]) || 0x1;
212
+ return this[_0x27a03f(0x181)](_0xffb043, _0x2f10a1, _0x38a1fa, _0x30d64d);
213
+ }
214
+ if (((_0x43b383 = _0x2f512f[_0x27a03f(0x168)](_0x324bc6)), _0x43b383)) {
215
+ const _0x50e043 = parseInt(_0x43b383[0x1]) || 0x0;
216
+ return this["calculateTotalInches"](_0x50e043, 0x0, 0x0, 0x1);
217
+ }
218
+ if (((_0x43b383 = _0x2f512f[_0x27a03f(0x168)](_0x325142)), _0x43b383)) {
219
+ const _0xd6bad6 = parseInt(_0x43b383[0x1]) || 0x0;
220
+ return this[_0x27a03f(0x181)](0x0, _0xd6bad6, 0x0, 0x1);
221
+ }
222
+ return parseFloat(_0x2f512f);
148
223
  }
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)]();
224
+ [_0x4b583c(0x181)](_0x586685, _0xf33a45, _0x1e07d6, _0x328a53) {
225
+ return _0x586685 * 0xc + _0xf33a45 + _0x1e07d6 / _0x328a53;
162
226
  }
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;
227
+ [_0x4b583c(0x17c)](_0x3a4feb, _0x19fd94 = _0x4b583c(0x13a)) {
228
+ const _0x5a297d = _0x4b583c;
229
+ if (_0x3a4feb < 0x0) return "-" + formatFeetInchesValue(-_0x3a4feb);
230
+ const _0x2c571f = parseInt(
231
+ _0x19fd94[_0x5a297d(0x127)]("/")[0x1]["replace"]("\x22", "")
232
+ );
233
+ let _0xfd2aa3 = Math[_0x5a297d(0x175)](_0x3a4feb / 0xc),
234
+ _0x582091 = Math[_0x5a297d(0x175)](_0x3a4feb % 0xc);
235
+ const _0x39dbd3 = _0x3a4feb - Math[_0x5a297d(0x175)](_0x3a4feb);
236
+ let _0x17e9ea = "";
237
+ if (_0x39dbd3 > 0x0 && _0x19fd94 !== 0x0) {
238
+ let _0x34d794 = Math[_0x5a297d(0x12e)](_0x39dbd3 * _0x2c571f);
239
+ const _0x5f591f = (_0x255224, _0x486386) =>
240
+ _0x486386 ? _0x5f591f(_0x486386, _0x255224 % _0x486386) : _0x255224,
241
+ _0x662f63 = _0x5f591f(_0x34d794, _0x2c571f);
242
+ (_0x17e9ea =
243
+ "\x20" + _0x34d794 / _0x662f63 + "/" + _0x2c571f / _0x662f63),
244
+ _0x17e9ea[_0x5a297d(0x10d)]() === "1/1" &&
245
+ (_0x582091++,
246
+ _0x582091 >= 0xc && (_0xfd2aa3++, (_0x582091 -= 0xc)),
247
+ (_0x17e9ea = ""));
248
+ }
249
+ let _0xb6f032 = "";
168
250
  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),
251
+ _0xfd2aa3 > 0x0 && (_0xb6f032 += _0xfd2aa3 + "\x27"),
252
+ _0xfd2aa3 > 0x0 &&
253
+ (_0x582091 > 0x0 || _0x17e9ea !== "") &&
254
+ (_0xb6f032 += "-"),
255
+ _0x582091 > 0x0 && (_0xb6f032 += "" + _0x582091),
256
+ _0x17e9ea !== "" && (_0xb6f032 += _0x17e9ea),
257
+ (_0x582091 > 0x0 || _0x17e9ea !== "") && (_0xb6f032 += "\x22"),
258
+ _0xb6f032[_0x5a297d(0x10d)]()
259
+ );
260
+ }
261
+ [_0x4b583c(0x171)](_0x348e52) {
262
+ const _0x48ba0e = _0x4b583c;
263
+ debugger;
264
+ if (_0x348e52 < 0x0) return "-" + formatFeetInchesValue(-_0x348e52);
265
+ const _0x2d0b62 = Math[_0x48ba0e(0x175)](_0x348e52 / 0xc),
266
+ _0x4364a7 = Math["floor"](_0x348e52 % 0xc),
267
+ _0x17cfdb = _0x348e52 - Math[_0x48ba0e(0x175)](_0x348e52);
268
+ let _0x77cf93 = "";
269
+ if (_0x17cfdb > 0x0) {
270
+ const _0x32ffb4 = (_0x366459, _0x2b924e) =>
271
+ _0x2b924e ? _0x32ffb4(_0x2b924e, _0x366459 % _0x2b924e) : _0x366459,
272
+ _0x306d76 = Math["round"](_0x17cfdb * 0x10),
273
+ _0x50cd4a = 0x10,
274
+ _0x57bbc3 = _0x32ffb4(_0x306d76, _0x50cd4a);
275
+ _0x77cf93 = _0x306d76 / _0x57bbc3 + "/" + _0x50cd4a / _0x57bbc3;
276
+ }
277
+ return _0x4364a7 === 0x0
278
+ ? _0x2d0b62 + "\x27-" + _0x77cf93 + "\x22"
279
+ : _0x2d0b62 + "\x27-" + _0x4364a7 + "\x20" + _0x77cf93 + "\x22";
280
+ }
281
+ ["formatFeetInchesValue1"](_0x36863e) {
282
+ const _0x49dff6 = _0x4b583c;
283
+ debugger;
284
+ const _0x3c55ef = Math["floor"](_0x36863e / 0xc),
285
+ _0x45f4da = Math["floor"](_0x36863e % 0xc),
286
+ _0x1d2ed9 = _0x36863e % 0x1;
287
+ let _0x4b0f7d = "";
288
+ if (_0x1d2ed9 > 0x0) {
289
+ const _0x8d32bf = (_0x9fef58, _0xc86482) =>
290
+ _0xc86482 ? _0x8d32bf(_0xc86482, _0x9fef58 % _0xc86482) : _0x9fef58,
291
+ _0x1f0c94 = Math[_0x49dff6(0x12e)](_0x1d2ed9 * 0x10),
292
+ _0x5c53f2 = 0x10,
293
+ _0x3acad3 = _0x8d32bf(_0x1f0c94, _0x5c53f2);
294
+ _0x4b0f7d = "\x20" + _0x1f0c94 / _0x3acad3 + "/" + _0x5c53f2 / _0x3acad3;
295
+ }
296
+ return _0x3c55ef + "\x27-" + _0x45f4da + "\x20" + _0x4b0f7d + "\x22";
297
+ }
298
+ [_0x4b583c(0x148)](_0x3b32f5) {
299
+ const _0x14be7d = _0x4b583c,
300
+ _0x201ca2 = Math["floor"](_0x3b32f5 / 0xc),
301
+ _0x27dc3b = Math[_0x14be7d(0x12e)]((_0x3b32f5 % 0xc) * 0xa) / 0xa;
302
+ return _0x201ca2 > 0x0 && _0x27dc3b > 0x0
303
+ ? _0x201ca2 + "\x27-" + _0x27dc3b + "\x22"
304
+ : _0x201ca2 > 0x0
305
+ ? _0x201ca2 + "\x27"
306
+ : _0x27dc3b + "\x22";
307
+ }
308
+ ["convertToNewUnit"](_0x4c69db, _0x31738d, _0x826723) {
309
+ const _0x26f978 = _0x4b583c,
310
+ _0x3ed31e =
311
+ this[_0x26f978(0x120)][this[_0x26f978(0x114)]][_0x31738d] /
312
+ this[_0x26f978(0x120)][this[_0x26f978(0x114)]][_0x826723];
313
+ return _0x4c69db * _0x3ed31e;
314
+ }
315
+ [_0x4b583c(0x156)](_0x286226) {
316
+ const _0x1d7e7d = _0x4b583c;
317
+ for (const _0x50597a in this[_0x1d7e7d(0x132)])
318
+ if (this[_0x1d7e7d(0x132)][_0x50597a][_0x1d7e7d(0x10e)](_0x286226))
319
+ return _0x50597a;
320
+ return (
321
+ (this[_0x1d7e7d(0x132)][_0x1d7e7d(0x17a)] =
322
+ this[_0x1d7e7d(0x132)][_0x1d7e7d(0x17a)] || []),
323
+ this[_0x1d7e7d(0x132)][_0x1d7e7d(0x17a)][_0x1d7e7d(0x13c)](_0x286226),
324
+ (this["unitConversion"][_0x1d7e7d(0x17a)] =
325
+ this["unitConversion"]["Custom"] || {}),
326
+ (this[_0x1d7e7d(0x120)][_0x1d7e7d(0x17a)][_0x286226] = 0x1),
174
327
  "Custom"
175
328
  );
176
329
  }
177
- ["connectedCallback"]() {
178
- const _0x350ca3 = _0x3ab5ea;
179
- this[_0x350ca3(0xe1)][_0x350ca3(0xd8)](
180
- _0x350ca3(0x134),
181
- this[_0x350ca3(0xff)][_0x350ca3(0xe0)](this)
330
+ [_0x4b583c(0x107)]() {
331
+ const _0x2dbe15 = _0x4b583c;
332
+ this[_0x2dbe15(0x12a)][_0x2dbe15(0x125)](
333
+ _0x2dbe15(0x17e),
334
+ this[_0x2dbe15(0x182)][_0x2dbe15(0x141)](this)
182
335
  ),
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)]();
336
+ (this["unit"] = this["getAttribute"](_0x2dbe15(0x13b)) || "mm"),
337
+ (this[_0x2dbe15(0x114)] = this[_0x2dbe15(0x156)](this[_0x2dbe15(0x13b)])),
338
+ (this[_0x2dbe15(0x137)] = this[_0x2dbe15(0x161)](_0x2dbe15(0x160))
339
+ ? this[_0x2dbe15(0x12f)](_0x2dbe15(0x160)) === _0x2dbe15(0x16f)
340
+ : this[_0x2dbe15(0x114)] !== _0x2dbe15(0x17a)),
341
+ this[_0x2dbe15(0x113)]();
189
342
  }
190
- [_0x3ab5ea(0x11f)]() {
191
- const _0x2ef633 = _0x3ab5ea;
192
- this[_0x2ef633(0xe1)][_0x2ef633(0xda)](
193
- _0x2ef633(0x134),
194
- this["handleUnitChange"][_0x2ef633(0xe0)](this)
343
+ [_0x4b583c(0x13f)]() {
344
+ const _0x524318 = _0x4b583c;
345
+ this[_0x524318(0x12a)][_0x524318(0x11e)](
346
+ _0x524318(0x17e),
347
+ this[_0x524318(0x182)][_0x524318(0x141)](this)
195
348
  );
196
349
  }
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)
350
+ [_0x4b583c(0x180)](_0x5916c6) {
351
+ const _0xa63d19 = _0x4b583c;
352
+ if (_0x5916c6[_0xa63d19(0x138)]["closest"](_0xa63d19(0x135))) {
353
+ const _0x3db7b3 = this[_0xa63d19(0x12a)]["querySelector"](
354
+ _0xa63d19(0x10b)
202
355
  );
203
- _0xd05440 && (_0xd05440[_0xeea94a(0xc0)](), _0xd05440["click"]());
356
+ _0x3db7b3 &&
357
+ (_0x3db7b3[_0xa63d19(0x16a)](), _0x3db7b3[_0xa63d19(0x14c)]());
204
358
  }
205
359
  }
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)]();
360
+ ["handleUnitChange"](_0x4aa01a) {
361
+ const _0x17ab35 = _0x4b583c;
362
+ let _0x39ff08 = 0x1,
363
+ _0x2d7bf3 = 0x1,
364
+ _0x314722 = 0x0,
365
+ _0x559e93 = 0x0;
366
+ if (_0x4aa01a[_0x17ab35(0x138)][_0x17ab35(0x16e)] === _0x17ab35(0x170)) {
367
+ const _0xf9b5a0 = _0x4aa01a[_0x17ab35(0x138)][_0x17ab35(0x153)];
368
+ if (this[_0x17ab35(0x114)] !== _0x17ab35(0x11c)) {
369
+ const _0x11910f =
370
+ this["unitConversion"][this[_0x17ab35(0x114)]][this["unit"]] /
371
+ this[_0x17ab35(0x120)][this[_0x17ab35(0x114)]][_0xf9b5a0];
372
+ this[_0x17ab35(0x153)] = this[_0x17ab35(0x153)] * _0x11910f;
373
+ } else
374
+ console[_0x17ab35(0x12b)](_0x17ab35(0x14a) + this["unitCategory"]),
375
+ console["log"](_0x17ab35(0x15e) + this["unit"]),
376
+ console[_0x17ab35(0x12b)](_0x17ab35(0x164) + _0xf9b5a0),
377
+ (_0x39ff08 =
378
+ this[_0x17ab35(0x120)][this[_0x17ab35(0x114)]][
379
+ this[_0x17ab35(0x13b)]
380
+ ]["c0"]),
381
+ (_0x2d7bf3 =
382
+ this[_0x17ab35(0x120)][this[_0x17ab35(0x114)]][
383
+ this[_0x17ab35(0x13b)]
384
+ ]["c1"]),
385
+ (_0x314722 =
386
+ this[_0x17ab35(0x120)][this["unitCategory"]][_0xf9b5a0]["c0"]),
387
+ (_0x559e93 =
388
+ this[_0x17ab35(0x120)][this[_0x17ab35(0x114)]][_0xf9b5a0]["c1"]),
389
+ (this[_0x17ab35(0x153)] =
390
+ (this["value"] * _0x39ff08 + _0x2d7bf3 - _0x559e93) / _0x314722);
391
+ (this["unit"] = _0xf9b5a0), this[_0x17ab35(0x113)]();
216
392
  }
217
- this["updateDropdownWidth"]();
393
+ this[_0x17ab35(0x174)]();
218
394
  }
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);
395
+ [_0x4b583c(0x126)](_0x3b0caf) {
396
+ const _0x2cbd9a = _0x4b583c;
397
+ return Number[_0x2cbd9a(0x14b)](_0x3b0caf)
398
+ ? _0x3b0caf[_0x2cbd9a(0x145)]()
399
+ : Math[_0x2cbd9a(0x175)](_0x3b0caf) !== 0x0
400
+ ? _0x3b0caf[_0x2cbd9a(0x105)](this["decimalPlaces"])
401
+ [_0x2cbd9a(0x186)](/0+$/, "")
402
+ [_0x2cbd9a(0x186)](/\.$/, "")
403
+ : _0x3b0caf[_0x2cbd9a(0x17d)](0x3);
228
404
  }
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 +
405
+ ["render"]() {
406
+ const _0x24f2ea = _0x4b583c,
407
+ _0xa8f16 = this["unit"] === "ft-in" ? _0x24f2ea(0x16c) : "visible";
408
+ this["shadowRoot"][_0x24f2ea(0x139)] =
409
+ "\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" +
410
+ (this[_0x24f2ea(0x137)] ? _0x24f2ea(0x155) : _0x24f2ea(0x150)) +
411
+ ";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20" +
412
+ (this[_0x24f2ea(0x137)] ? "auto" : _0x24f2ea(0x150)) +
413
+ ";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20" +
414
+ (this[_0x24f2ea(0x137)] ? _0x24f2ea(0x155) : _0x24f2ea(0x150)) +
415
+ ";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20" +
416
+ _0xa8f16 +
417
+ _0x24f2ea(0x177) +
418
+ (this[_0x24f2ea(0x13b)] === _0x24f2ea(0x11a)
419
+ ? this[_0x24f2ea(0x17c)](this[_0x24f2ea(0x153)])
420
+ : this[_0x24f2ea(0x126)](this[_0x24f2ea(0x153)])) +
421
+ _0x24f2ea(0x118) +
422
+ (this["unit"] === _0x24f2ea(0x11a) ? _0x24f2ea(0x15d) : "") +
423
+ "\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
424
+ (this[_0x24f2ea(0x132)][this[_0x24f2ea(0x114)]] || [
425
+ this[_0x24f2ea(0x13b)],
426
+ ])
427
+ [_0x24f2ea(0x110)](
428
+ (_0x2f9384) =>
429
+ _0x24f2ea(0x133) +
430
+ _0x2f9384 +
246
431
  "\x22\x20" +
247
- (_0x598c6e === this["unit"] ? _0x3d41d3(0xbe) : "") +
248
- _0x3d41d3(0x12d) +
249
- _0x598c6e +
250
- _0x3d41d3(0xc3)
432
+ (_0x2f9384 === this["unit"] ? "selected" : "") +
433
+ _0x24f2ea(0x158) +
434
+ _0x2f9384 +
435
+ _0x24f2ea(0x129)
251
436
  )
252
- [_0x3d41d3(0x10c)]("") +
253
- _0x3d41d3(0x102) +
254
- (this[_0x3d41d3(0xee)] && this["unitCategory"] !== _0x3d41d3(0xd6)
255
- ? _0x3d41d3(0x116) + this[_0x3d41d3(0x110)] + _0x3d41d3(0xbf)
437
+ ["join"]("") +
438
+ "\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" +
439
+ (this[_0x24f2ea(0x137)] && this[_0x24f2ea(0x114)] !== "Custom"
440
+ ? _0x24f2ea(0x17b) + this["e3dLogoUrl"] + _0x24f2ea(0x169)
256
441
  : "") +
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);
442
+ _0x24f2ea(0x14e);
443
+ const _0x259aa8 =
444
+ this[_0x24f2ea(0x12a)]["querySelector"](".unit-container"),
445
+ _0x22d3b9 = this[_0x24f2ea(0x12a)][_0x24f2ea(0x15c)](".tooltip")[0x0];
446
+ _0x259aa8 &&
447
+ _0x22d3b9 &&
448
+ (_0x259aa8[_0x24f2ea(0x125)](_0x24f2ea(0x128), () => {
449
+ const _0x5192eb = _0x24f2ea;
450
+ this[_0x5192eb(0x176)] = setTimeout(() => {
451
+ const _0x4affc9 = _0x5192eb;
452
+ _0x22d3b9["style"]["display"] = _0x4affc9(0x17f);
267
453
  }, 0x3e8);
268
454
  }),
269
- _0x574502["addEventListener"](_0x3d41d3(0x130), () => {
270
- const _0x3065e1 = _0x3d41d3;
455
+ _0x259aa8[_0x24f2ea(0x125)](_0x24f2ea(0x12c), () => {
271
456
  setTimeout(() => {
272
- const _0x598df4 = _0x5953;
273
- _0x163f05[_0x598df4(0x120)][_0x598df4(0xba)] = _0x598df4(0x12c);
457
+ const _0x4f6b9d = _0xa576;
458
+ _0x22d3b9[_0x4f6b9d(0x121)][_0x4f6b9d(0x136)] = _0x4f6b9d(0x150);
274
459
  }, 0x7d0),
275
- clearTimeout(this[_0x3065e1(0x117)]);
460
+ clearTimeout(this["tooltipTimeout"]);
276
461
  }),
277
- _0x163f05["addEventListener"]("mouseout", () => {
462
+ _0x22d3b9[_0x24f2ea(0x125)](_0x24f2ea(0x12c), () => {
278
463
  setTimeout(() => {
279
- const _0x558ffc = _0x5953;
280
- _0x163f05[_0x558ffc(0x120)][_0x558ffc(0xba)] = _0x558ffc(0x12c);
464
+ const _0x8d92d3 = _0xa576;
465
+ _0x22d3b9["style"][_0x8d92d3(0x136)] = _0x8d92d3(0x150);
281
466
  }, 0x7d0);
282
467
  })),
283
- this["updateDropdownWidth"]();
468
+ this[_0x24f2ea(0x174)]();
284
469
  }
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";
470
+ [_0x4b583c(0x174)]() {
471
+ const _0x4a2ea6 = _0x4b583c,
472
+ _0x39508e = this["shadowRoot"][_0x4a2ea6(0x173)](_0x4a2ea6(0x10b)),
473
+ _0x2126fd = _0x39508e[_0x4a2ea6(0x140)][_0x39508e[_0x4a2ea6(0x131)]],
474
+ _0x339efc = document["createElement"]("span");
475
+ (_0x339efc["style"][_0x4a2ea6(0x16b)] = _0x4a2ea6(0x116)),
476
+ (_0x339efc[_0x4a2ea6(0x121)][_0x4a2ea6(0x163)] = _0x4a2ea6(0x16c)),
477
+ (_0x339efc[_0x4a2ea6(0x121)][_0x4a2ea6(0x15a)] =
478
+ getComputedStyle(_0x39508e)[_0x4a2ea6(0x15a)]),
479
+ document[_0x4a2ea6(0x147)][_0x4a2ea6(0x16d)](_0x339efc),
480
+ (_0x339efc[_0x4a2ea6(0x15b)] = _0x2126fd[_0x4a2ea6(0x149)]);
481
+ const _0x3666db = _0x339efc[_0x4a2ea6(0x11d)];
482
+ document[_0x4a2ea6(0x147)][_0x4a2ea6(0x112)](_0x339efc);
483
+ const _0x1b2623 =
484
+ parseInt(getComputedStyle(_0x39508e)[_0x4a2ea6(0x183)]) +
485
+ parseInt(getComputedStyle(_0x39508e)[_0x4a2ea6(0x108)]);
486
+ (_0x39508e[_0x4a2ea6(0x121)]["width"] = this[_0x4a2ea6(0x137)]
487
+ ? _0x3666db + _0x1b2623 + 0x16 + "px"
488
+ : _0x3666db + _0x1b2623 + 0x4 + "px"),
489
+ this[_0x4a2ea6(0x13b)] === _0x4a2ea6(0x11a) &&
490
+ (_0x39508e[_0x4a2ea6(0x121)][_0x4a2ea6(0x106)] =
491
+ _0x1b2623 + 0xc + "px");
303
492
  }
304
493
  }
305
- customElements[_0x3ab5ea(0xbb)](_0x3ab5ea(0x10b), h);
306
- class p extends h {}
307
- function _0x5953(_0x5dc1fe, _0x3807a2) {
308
- const _0x3902e2 = _0x3902();
494
+ customElements[_0x4b583c(0x111)](_0x4b583c(0x119), v);
495
+ class b extends v {}
496
+ customElements["define"](_0x4b583c(0x134), b);
497
+ function _0xa576(_0xf21fd5, _0x32738d) {
498
+ const _0x2301ab = _0x2301();
309
499
  return (
310
- (_0x5953 = function (_0x5953ee, _0x432830) {
311
- _0x5953ee = _0x5953ee - 0xb5;
312
- let _0x3650bd = _0x3902e2[_0x5953ee];
313
- return _0x3650bd;
500
+ (_0xa576 = function (_0xa57686, _0x22aaa3) {
501
+ _0xa57686 = _0xa57686 - 0x105;
502
+ let _0x4f4e74 = _0x2301ab[_0xa57686];
503
+ return _0x4f4e74;
314
504
  }),
315
- _0x5953(_0x5dc1fe, _0x3807a2)
505
+ _0xa576(_0xf21fd5, _0x32738d)
316
506
  );
317
507
  }
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",
508
+ function _0x2301() {
509
+ const _0x3154db = [
510
+ "formatFeetInchesValue2",
511
+ "mm\x20HG",
361
512
  "querySelector",
513
+ "updateDropdownWidth",
514
+ "floor",
515
+ "tooltipTimeout",
516
+ ";\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",
517
+ "MPa",
518
+ "48102VJlyDa",
519
+ "Custom",
520
+ "\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",
521
+ "formatFeetInchesValue",
522
+ "toPrecision",
362
523
  "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",
524
+ "block",
525
+ "handleArrowClick",
526
+ "calculateTotalInches",
527
+ "handleUnitChange",
528
+ "paddingLeft",
529
+ "in\x20HG",
530
+ "psi",
384
531
  "replace",
532
+ "parseFeetInchesValue",
533
+ "toFixed",
385
534
  "width",
386
- "auto",
387
- "mm\x20W.C.",
388
- "minute",
389
- "absolute",
390
- "getUnitCategory",
391
- "toString",
392
- "kg/m³",
393
- "mouseover",
394
- "handleArrowClick",
535
+ "connectedCallback",
536
+ "paddingRight",
537
+ "pow",
538
+ "attributeChangedCallback",
539
+ "select",
540
+ "cm\x20HG",
541
+ "trim",
395
542
  "includes",
396
- "render",
397
- "Custom",
398
543
  "GPa",
399
- "addEventListener",
400
- "block",
544
+ "map",
545
+ "define",
546
+ "removeChild",
547
+ "render",
548
+ "unitCategory",
549
+ "in\x20W.C.",
550
+ "absolute",
551
+ "m\x20W.C.",
552
+ "\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",
553
+ "physical-quantity",
554
+ "ft-in",
555
+ "3444695usTBRk",
556
+ "Temperature",
557
+ "offsetWidth",
401
558
  "removeEventListener",
402
- "50lMgCvO",
403
- "pow",
404
559
  "lbm",
405
- "psi",
406
- "15XmQvpl",
407
- "bind",
560
+ "unitConversion",
561
+ "style",
562
+ "lbm/in³",
563
+ "1555839zOSVDq",
564
+ "h[hour]",
565
+ "addEventListener",
566
+ "formatValue",
567
+ "split",
568
+ "mouseover",
569
+ "</option>",
408
570
  "shadowRoot",
409
- "mm\x20HG",
571
+ "log",
572
+ "mouseout",
573
+ "observedAttributes",
574
+ "round",
575
+ "getAttribute",
576
+ "2bxbarX",
410
577
  "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>",
578
+ "units",
579
+ "<option\x20value=\x22",
415
580
  "uc-qty",
416
- "select",
417
- "ksi",
418
- "bar",
419
- "s[second]",
420
- "body",
581
+ ".unit-container",
582
+ "display",
421
583
  "showUnitArrow",
422
- "floor",
423
- "in\x20W.C.",
424
- "decimalPlaces",
425
- "true",
426
- "toPrecision",
427
- "psf",
428
- "esu/s",
429
- "attributeChangedCallback",
584
+ "target",
585
+ "innerHTML",
586
+ "1/16\x22",
430
587
  "unit",
431
- "3799061qyximD",
588
+ "push",
589
+ "convertToNewUnit",
590
+ "inputValue",
591
+ "disconnectedCallback",
592
+ "options",
593
+ "bind",
594
+ "attachShadow",
595
+ "811564ObQtBM",
596
+ "esu/s",
597
+ "toString",
598
+ "week",
599
+ "body",
600
+ "formatFeetInchesValue0",
601
+ "text",
602
+ "category:\x20",
603
+ "isInteger",
604
+ "click",
605
+ "atm",
606
+ "\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",
607
+ "5187258ORRTog",
608
+ "none",
609
+ "ksi",
610
+ "e3dLogoUrl",
611
+ "value",
612
+ "kg/m³",
613
+ "auto",
614
+ "getUnitCategory",
615
+ "3250336KUjwGe",
616
+ ">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
617
+ "s[second]",
618
+ "font",
619
+ "textContent",
620
+ "querySelectorAll",
621
+ "ft-in-hidden",
622
+ "unit:\x20",
623
+ "763558oktOtc",
432
624
  "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",
625
+ "hasAttribute",
626
+ "Ampere[amp]",
627
+ "visibility",
628
+ "newUnit:\x20",
629
+ "mbar",
630
+ "28TmTrol",
631
+ "psf",
632
+ "match",
633
+ "\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",
634
+ "focus",
635
+ "position",
636
+ "hidden",
637
+ "appendChild",
638
+ "tagName",
639
+ "true",
640
+ "SELECT",
451
641
  ];
452
- _0x3902 = function () {
453
- return _0x333112;
642
+ _0x2301 = function () {
643
+ return _0x3154db;
454
644
  };
455
- return _0x3902();
645
+ return _0x2301();
456
646
  }
647
+ export { v as default };