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