physical-quantity 1.1.24 → 1.1.25
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 +1 -322
- package/dist/pq.umd.js +1 -352
- package/package.json +1 -1
package/dist/pq.es.js
CHANGED
|
@@ -1,322 +1 @@
|
|
|
1
|
-
function _0x4030(_0x4ab988, _0x3106b9) {
|
|
2
|
-
const _0x42fcce = _0x42fc();
|
|
3
|
-
return (
|
|
4
|
-
(_0x4030 = function (_0x4030be, _0x141d4c) {
|
|
5
|
-
_0x4030be = _0x4030be - 0x17c;
|
|
6
|
-
let _0x1e1738 = _0x42fcce[_0x4030be];
|
|
7
|
-
return _0x1e1738;
|
|
8
|
-
}),
|
|
9
|
-
_0x4030(_0x4ab988, _0x3106b9)
|
|
10
|
-
);
|
|
11
|
-
}
|
|
12
|
-
function _0x42fc() {
|
|
13
|
-
const _0x3b5091 = [
|
|
14
|
-
"ksi[kip/in²]",
|
|
15
|
-
"mouseout",
|
|
16
|
-
"shadowRoot",
|
|
17
|
-
"select",
|
|
18
|
-
"mbar",
|
|
19
|
-
"toPrecision",
|
|
20
|
-
"value",
|
|
21
|
-
"</option>",
|
|
22
|
-
"target",
|
|
23
|
-
"<option\x20value=\x22",
|
|
24
|
-
"selected",
|
|
25
|
-
"557380ZRhlCl",
|
|
26
|
-
"mm\x20HG",
|
|
27
|
-
"g/cm³",
|
|
28
|
-
"183JdCizK",
|
|
29
|
-
"toFixed",
|
|
30
|
-
"Length",
|
|
31
|
-
"replace",
|
|
32
|
-
"addEventListener",
|
|
33
|
-
"\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20",
|
|
34
|
-
"observedAttributes",
|
|
35
|
-
"g/mm³",
|
|
36
|
-
"ksi",
|
|
37
|
-
"decimal-places",
|
|
38
|
-
"lbm/in³",
|
|
39
|
-
"kg/m³",
|
|
40
|
-
"mouseover",
|
|
41
|
-
"\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\x20cursor:\x20pointer;\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\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>",
|
|
42
|
-
"lbm",
|
|
43
|
-
"handleArrowClick",
|
|
44
|
-
"5284eUjMtm",
|
|
45
|
-
"mm\x20W.C.",
|
|
46
|
-
">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
47
|
-
"attachShadow",
|
|
48
|
-
"kPa",
|
|
49
|
-
"psi",
|
|
50
|
-
"kg/L",
|
|
51
|
-
"formatValue",
|
|
52
|
-
"in\x20W.C.",
|
|
53
|
-
"in\x20HG",
|
|
54
|
-
"tagName",
|
|
55
|
-
"230592wqBsLI",
|
|
56
|
-
"display",
|
|
57
|
-
"getUnitCategory",
|
|
58
|
-
"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",
|
|
59
|
-
"floor",
|
|
60
|
-
"unit",
|
|
61
|
-
"decimalPlaces",
|
|
62
|
-
"209620FqAmRz",
|
|
63
|
-
"map",
|
|
64
|
-
"innerHTML",
|
|
65
|
-
"click",
|
|
66
|
-
"closest",
|
|
67
|
-
"SELECT",
|
|
68
|
-
"none",
|
|
69
|
-
"unitConversion",
|
|
70
|
-
"render",
|
|
71
|
-
"pow",
|
|
72
|
-
"join",
|
|
73
|
-
"cm\x20HG",
|
|
74
|
-
".tooltip",
|
|
75
|
-
"querySelectorAll",
|
|
76
|
-
"includes",
|
|
77
|
-
"toString",
|
|
78
|
-
"975366NMdCVH",
|
|
79
|
-
"1306074GsCYgw",
|
|
80
|
-
"handleUnitChange",
|
|
81
|
-
"</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",
|
|
82
|
-
"1121552UdgHOa",
|
|
83
|
-
"bar",
|
|
84
|
-
"style",
|
|
85
|
-
"tooltipTimeout",
|
|
86
|
-
"define",
|
|
87
|
-
"units",
|
|
88
|
-
"psf",
|
|
89
|
-
"unitCategory",
|
|
90
|
-
"\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2.donwen.com/\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22",
|
|
91
|
-
"change",
|
|
92
|
-
"e3dLogoUrl",
|
|
93
|
-
"GPa",
|
|
94
|
-
"isInteger",
|
|
95
|
-
];
|
|
96
|
-
_0x42fc = function () {
|
|
97
|
-
return _0x3b5091;
|
|
98
|
-
};
|
|
99
|
-
return _0x42fc();
|
|
100
|
-
}
|
|
101
|
-
const _0x5a4856 = _0x4030;
|
|
102
|
-
(function (_0x5f14b2, _0x469583) {
|
|
103
|
-
const _0x34b91d = _0x4030,
|
|
104
|
-
_0x51d612 = _0x5f14b2();
|
|
105
|
-
while (!![]) {
|
|
106
|
-
try {
|
|
107
|
-
const _0x19a766 =
|
|
108
|
-
parseInt(_0x34b91d(0x1b1)) / 0x1 +
|
|
109
|
-
-parseInt(_0x34b91d(0x1aa)) / 0x2 +
|
|
110
|
-
(-parseInt(_0x34b91d(0x18f)) / 0x3) *
|
|
111
|
-
(parseInt(_0x34b91d(0x19f)) / 0x4) +
|
|
112
|
-
-parseInt(_0x34b91d(0x18c)) / 0x5 +
|
|
113
|
-
parseInt(_0x34b91d(0x1c1)) / 0x6 +
|
|
114
|
-
parseInt(_0x34b91d(0x1c2)) / 0x7 +
|
|
115
|
-
-parseInt(_0x34b91d(0x1c5)) / 0x8;
|
|
116
|
-
if (_0x19a766 === _0x469583) break;
|
|
117
|
-
else _0x51d612["push"](_0x51d612["shift"]());
|
|
118
|
-
} catch (_0x2738d4) {
|
|
119
|
-
_0x51d612["push"](_0x51d612["shift"]());
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
})(_0x42fc, 0x1b270);
|
|
123
|
-
const s = 0.45359237,
|
|
124
|
-
o = 25.4 / 0x3e8,
|
|
125
|
-
n = 0xc * o,
|
|
126
|
-
c = 0x18bcd,
|
|
127
|
-
a = 133.322387415;
|
|
128
|
-
class r extends HTMLElement {
|
|
129
|
-
constructor() {
|
|
130
|
-
const _0x304c29 = _0x4030;
|
|
131
|
-
super(),
|
|
132
|
-
this[_0x304c29(0x1a2)]({ mode: "open" }),
|
|
133
|
-
(this[_0x304c29(0x187)] = 0x0),
|
|
134
|
-
(this[_0x304c29(0x1af)] = "mm"),
|
|
135
|
-
(this[_0x304c29(0x1cc)] = _0x304c29(0x191)),
|
|
136
|
-
(this[_0x304c29(0x1c8)] = null),
|
|
137
|
-
(this["decimalPlaces"] = 0x3),
|
|
138
|
-
(this[_0x304c29(0x17e)] = _0x304c29(0x1ad)),
|
|
139
|
-
(this[_0x304c29(0x1ca)] = {
|
|
140
|
-
Length: ["m", "km", "cm", "mm", "in", "ft"],
|
|
141
|
-
Mass: ["g", "kg", _0x304c29(0x19d)],
|
|
142
|
-
Pressure: [
|
|
143
|
-
"Pa",
|
|
144
|
-
_0x304c29(0x1a3),
|
|
145
|
-
"MPa",
|
|
146
|
-
_0x304c29(0x17f),
|
|
147
|
-
_0x304c29(0x1c6),
|
|
148
|
-
_0x304c29(0x185),
|
|
149
|
-
"atm",
|
|
150
|
-
_0x304c29(0x18d),
|
|
151
|
-
_0x304c29(0x1bc),
|
|
152
|
-
_0x304c29(0x1a8),
|
|
153
|
-
_0x304c29(0x1a0),
|
|
154
|
-
"m\x20W.C.",
|
|
155
|
-
_0x304c29(0x1a7),
|
|
156
|
-
_0x304c29(0x1cb),
|
|
157
|
-
_0x304c29(0x1a4),
|
|
158
|
-
_0x304c29(0x197),
|
|
159
|
-
_0x304c29(0x181),
|
|
160
|
-
],
|
|
161
|
-
Density: [
|
|
162
|
-
_0x304c29(0x19a),
|
|
163
|
-
_0x304c29(0x1a5),
|
|
164
|
-
_0x304c29(0x18e),
|
|
165
|
-
_0x304c29(0x196),
|
|
166
|
-
"lbm/ft³",
|
|
167
|
-
_0x304c29(0x199),
|
|
168
|
-
],
|
|
169
|
-
}),
|
|
170
|
-
(this["unitConversion"] = {
|
|
171
|
-
Length: { m: 0x1, km: 0x3e8, cm: 0.01, mm: 0.001, in: o, ft: n },
|
|
172
|
-
Mass: { kg: 0x1, g: 0.001, lbm: s },
|
|
173
|
-
Pressure: {
|
|
174
|
-
Pa: 0x1,
|
|
175
|
-
kPa: 0x3e8,
|
|
176
|
-
MPa: 0xf4240,
|
|
177
|
-
GPa: 0x3b9aca00,
|
|
178
|
-
bar: 0x64 * 0x3e8,
|
|
179
|
-
mbar: 0x64,
|
|
180
|
-
atm: c,
|
|
181
|
-
"mm\x20HG": a,
|
|
182
|
-
"cm\x20HG": a * 0xa,
|
|
183
|
-
"in\x20HG": a * 25.4,
|
|
184
|
-
"mm\x20W.C.": (0x1 / 0x3e8) * 0x3e8 * 9.80665,
|
|
185
|
-
"m\x20W.C.": 0x1 * 0x3e8 * 9.80665,
|
|
186
|
-
"in\x20W.C.": o * 0x3e8 * 9.80665,
|
|
187
|
-
psf: (s * 9.80665) / Math["pow"](n, 0x2),
|
|
188
|
-
psi: (s * 9.80665) / Math[_0x304c29(0x1ba)](o, 0x2),
|
|
189
|
-
ksi: ((s * 9.80665) / Math[_0x304c29(0x1ba)](o, 0x2)) * 0x3e8,
|
|
190
|
-
"ksi[kip/in²]":
|
|
191
|
-
((s * 9.80665) / Math[_0x304c29(0x1ba)](o, 0x2)) * 0x3e8,
|
|
192
|
-
},
|
|
193
|
-
Density: {
|
|
194
|
-
"kg/m³": 0x1,
|
|
195
|
-
"kg/L": 0x3e8,
|
|
196
|
-
"g/cm³": 0x1 / 0x3e8 / Math[_0x304c29(0x1ba)](0.01, 0x3),
|
|
197
|
-
"g/mm³": 0x1 / 0x3e8 / Math[_0x304c29(0x1ba)](0.001, 0x3),
|
|
198
|
-
"lbm/ft³": s / Math["pow"](n, 0x3),
|
|
199
|
-
"lbm/in³": s / Math[_0x304c29(0x1ba)](o, 0x3),
|
|
200
|
-
},
|
|
201
|
-
}),
|
|
202
|
-
this[_0x304c29(0x1b9)]();
|
|
203
|
-
}
|
|
204
|
-
static get [_0x5a4856(0x195)]() {
|
|
205
|
-
const _0x3d9867 = _0x5a4856;
|
|
206
|
-
return [_0x3d9867(0x187), _0x3d9867(0x1af), _0x3d9867(0x198)];
|
|
207
|
-
}
|
|
208
|
-
["attributeChangedCallback"](_0x245af0, _0x5f24c0, _0x1757d5) {
|
|
209
|
-
const _0x44f36e = _0x5a4856;
|
|
210
|
-
_0x245af0 === _0x44f36e(0x187)
|
|
211
|
-
? (this[_0x44f36e(0x187)] = parseFloat(_0x1757d5))
|
|
212
|
-
: _0x245af0 === _0x44f36e(0x1af)
|
|
213
|
-
? ((this[_0x44f36e(0x1af)] = _0x1757d5),
|
|
214
|
-
(this[_0x44f36e(0x1cc)] = this[_0x44f36e(0x1ac)](_0x1757d5)))
|
|
215
|
-
: _0x245af0 === _0x44f36e(0x198) &&
|
|
216
|
-
(this[_0x44f36e(0x1b0)] = parseInt(_0x1757d5) || 0x3),
|
|
217
|
-
this[_0x44f36e(0x1b9)]();
|
|
218
|
-
}
|
|
219
|
-
["getUnitCategory"](_0x5e9d53) {
|
|
220
|
-
const _0x73ab41 = _0x5a4856;
|
|
221
|
-
for (const _0x5da375 in this[_0x73ab41(0x1ca)])
|
|
222
|
-
if (this[_0x73ab41(0x1ca)][_0x5da375][_0x73ab41(0x1bf)](_0x5e9d53))
|
|
223
|
-
return _0x5da375;
|
|
224
|
-
return null;
|
|
225
|
-
}
|
|
226
|
-
["connectedCallback"]() {
|
|
227
|
-
const _0x17c939 = _0x5a4856;
|
|
228
|
-
this["shadowRoot"][_0x17c939(0x193)](
|
|
229
|
-
"change",
|
|
230
|
-
this[_0x17c939(0x1c3)]["bind"](this)
|
|
231
|
-
),
|
|
232
|
-
this[_0x17c939(0x1b9)]();
|
|
233
|
-
}
|
|
234
|
-
["disconnectedCallback"]() {
|
|
235
|
-
const _0x575059 = _0x5a4856;
|
|
236
|
-
this[_0x575059(0x183)]["removeEventListener"](
|
|
237
|
-
_0x575059(0x17d),
|
|
238
|
-
this[_0x575059(0x1c3)]["bind"](this)
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
[_0x5a4856(0x19e)](_0x4ec0ee) {
|
|
242
|
-
const _0x46e73e = _0x5a4856;
|
|
243
|
-
if (_0x4ec0ee["target"][_0x46e73e(0x1b5)](".unit-container")) {
|
|
244
|
-
const _0x56d313 = this[_0x46e73e(0x183)]["querySelector"](
|
|
245
|
-
_0x46e73e(0x184)
|
|
246
|
-
);
|
|
247
|
-
_0x56d313 && (_0x56d313["focus"](), _0x56d313[_0x46e73e(0x1b4)]());
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
["handleUnitChange"](_0x36f3a3) {
|
|
251
|
-
const _0x5797c7 = _0x5a4856;
|
|
252
|
-
if (_0x36f3a3[_0x5797c7(0x189)][_0x5797c7(0x1a9)] === _0x5797c7(0x1b6)) {
|
|
253
|
-
const _0x3b712f = _0x36f3a3[_0x5797c7(0x189)][_0x5797c7(0x187)],
|
|
254
|
-
_0x576c36 =
|
|
255
|
-
this[_0x5797c7(0x1b8)][this[_0x5797c7(0x1cc)]][
|
|
256
|
-
this[_0x5797c7(0x1af)]
|
|
257
|
-
] / this["unitConversion"][this["unitCategory"]][_0x3b712f];
|
|
258
|
-
(this[_0x5797c7(0x187)] = this[_0x5797c7(0x187)] * _0x576c36),
|
|
259
|
-
(this["unit"] = _0x3b712f),
|
|
260
|
-
this[_0x5797c7(0x1b9)]();
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
[_0x5a4856(0x1a6)](_0xa85d74) {
|
|
264
|
-
const _0x2d56a1 = _0x5a4856;
|
|
265
|
-
return Number[_0x2d56a1(0x180)](_0xa85d74)
|
|
266
|
-
? _0xa85d74[_0x2d56a1(0x1c0)]()
|
|
267
|
-
: Math[_0x2d56a1(0x1ae)](_0xa85d74) !== 0x0
|
|
268
|
-
? _0xa85d74[_0x2d56a1(0x190)](this[_0x2d56a1(0x1b0)])
|
|
269
|
-
["replace"](/0+$/, "")
|
|
270
|
-
[_0x2d56a1(0x192)](/\.$/, "")
|
|
271
|
-
: _0xa85d74[_0x2d56a1(0x186)](0x3);
|
|
272
|
-
}
|
|
273
|
-
[_0x5a4856(0x1b9)]() {
|
|
274
|
-
const _0x38e8b1 = _0x5a4856;
|
|
275
|
-
this["shadowRoot"][_0x38e8b1(0x1b3)] =
|
|
276
|
-
_0x38e8b1(0x19c) +
|
|
277
|
-
this["formatValue"](this[_0x38e8b1(0x187)]) +
|
|
278
|
-
_0x38e8b1(0x1c4) +
|
|
279
|
-
this["units"][this["unitCategory"]]
|
|
280
|
-
[_0x38e8b1(0x1b2)](
|
|
281
|
-
(_0x440cab) =>
|
|
282
|
-
_0x38e8b1(0x18a) +
|
|
283
|
-
_0x440cab +
|
|
284
|
-
"\x22\x20" +
|
|
285
|
-
(_0x440cab === this[_0x38e8b1(0x1af)] ? _0x38e8b1(0x18b) : "") +
|
|
286
|
-
_0x38e8b1(0x1a1) +
|
|
287
|
-
_0x440cab +
|
|
288
|
-
_0x38e8b1(0x188)
|
|
289
|
-
)
|
|
290
|
-
[_0x38e8b1(0x1bb)]("") +
|
|
291
|
-
_0x38e8b1(0x17c) +
|
|
292
|
-
this["e3dLogoUrl"] +
|
|
293
|
-
_0x38e8b1(0x194);
|
|
294
|
-
const _0x5f4a70 =
|
|
295
|
-
this[_0x38e8b1(0x183)]["querySelector"](".unit-container"),
|
|
296
|
-
_0x1701b4 = this["shadowRoot"][_0x38e8b1(0x1be)](_0x38e8b1(0x1bd))[0x0];
|
|
297
|
-
_0x5f4a70["addEventListener"](_0x38e8b1(0x19b), () => {
|
|
298
|
-
const _0x393d26 = _0x38e8b1;
|
|
299
|
-
this[_0x393d26(0x1c8)] = setTimeout(() => {
|
|
300
|
-
const _0x1bde51 = _0x393d26;
|
|
301
|
-
_0x1701b4[_0x1bde51(0x1c7)][_0x1bde51(0x1ab)] = "block";
|
|
302
|
-
}, 0x3e8);
|
|
303
|
-
}),
|
|
304
|
-
_0x5f4a70[_0x38e8b1(0x193)](_0x38e8b1(0x182), () => {
|
|
305
|
-
const _0x63e53d = _0x38e8b1;
|
|
306
|
-
setTimeout(() => {
|
|
307
|
-
const _0x346b70 = _0x4030;
|
|
308
|
-
_0x1701b4[_0x346b70(0x1c7)][_0x346b70(0x1ab)] = _0x346b70(0x1b7);
|
|
309
|
-
}, 0x3e8),
|
|
310
|
-
clearTimeout(this[_0x63e53d(0x1c8)]);
|
|
311
|
-
}),
|
|
312
|
-
_0x1701b4[_0x38e8b1(0x193)]("mouseout", () => {
|
|
313
|
-
setTimeout(() => {
|
|
314
|
-
const _0x2980a5 = _0x4030;
|
|
315
|
-
_0x1701b4[_0x2980a5(0x1c7)][_0x2980a5(0x1ab)] = "none";
|
|
316
|
-
}, 0x3e8);
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
customElements[_0x5a4856(0x1c9)]("physical-quantity", r);
|
|
321
|
-
class h extends r {}
|
|
322
|
-
customElements[_0x5a4856(0x1c9)]("uc-qty", h);
|
|
1
|
+
function _0x338d(_0x4e209f,_0x19f8e7){const _0x2dae66=_0x2dae();return _0x338d=function(_0x338d70,_0x3a2071){_0x338d70=_0x338d70-0x1ae;let _0x336365=_0x2dae66[_0x338d70];return _0x336365;},_0x338d(_0x4e209f,_0x19f8e7);}const _0x1df461=_0x338d;function _0x2dae(){const _0x3763b7=['value','</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','open','lbm','3aOYPph','innerHTML','ksi','unitConversion','9jWsjId','units','style','mm\x20HG','24DFLHTa','1127192TvfcpP','kg/L','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','e3dLogoUrl','mbar','querySelectorAll','lbm/in³','bar','display','formatValue','\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\x20cursor:\x20pointer;\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\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>','5254470rAYyRH','join','mouseout','1481008lCZyjy','tooltipTimeout','.unit-container','change','unitCategory','render','in\x20W.C.','898848qUBbql','bind','attachShadow','in\x20HG','MPa','handleUnitChange','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','tagName','38699zqYuzB','m\x20W.C.','addEventListener','g/mm³','block','attributeChangedCallback','getUnitCategory','querySelector','cm\x20HG','atm','psf','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isInteger','none','GPa','pow','observedAttributes','decimal-places','uc-qty','decimalPlaces','1046328liSOlG','select','define','shadowRoot','</option>','target','toPrecision','35nqrvde','includes','closest','ksi[kip/in²]','toFixed','focus','removeEventListener','4qONgQl','1142670vacfQy','connectedCallback','\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','kPa','disconnectedCallback','unit'];_0x2dae=function(){return _0x3763b7;};return _0x2dae();}(function(_0x51bef8,_0x5874c5){const _0x3762fc=_0x338d,_0x2285d0=_0x51bef8();while(!![]){try{const _0x4f0926=-parseInt(_0x3762fc(0x1e0))/0x1*(parseInt(_0x3762fc(0x1af))/0x2)+-parseInt(_0x3762fc(0x1ba))/0x3*(-parseInt(_0x3762fc(0x1d1))/0x4)+parseInt(_0x3762fc(0x1ce))/0x5+parseInt(_0x3762fc(0x1f4))/0x6+parseInt(_0x3762fc(0x1fb))/0x7*(-parseInt(_0x3762fc(0x1d8))/0x8)+parseInt(_0x3762fc(0x1be))/0x9*(-parseInt(_0x3762fc(0x1b0))/0xa)+parseInt(_0x3762fc(0x1c3))/0xb*(-parseInt(_0x3762fc(0x1c2))/0xc);if(_0x4f0926===_0x5874c5)break;else _0x2285d0['push'](_0x2285d0['shift']());}catch(_0x397162){_0x2285d0['push'](_0x2285d0['shift']());}}}(_0x2dae,0x9b8d9));const s=0.45359237,o=25.4/0x3e8,n=0xc*o,c=0x18bcd,a=133.322387415;class r extends HTMLElement{constructor(){const _0x9513e9=_0x338d;super(),this[_0x9513e9(0x1da)]({'mode':_0x9513e9(0x1b8)}),this[_0x9513e9(0x1b6)]=0x0,this[_0x9513e9(0x1b5)]='mm',this[_0x9513e9(0x1d5)]='Length',this[_0x9513e9(0x1d2)]=null,this[_0x9513e9(0x1f3)]=0x3,this[_0x9513e9(0x1c6)]=_0x9513e9(0x1c5),this[_0x9513e9(0x1bf)]={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x9513e9(0x1b9)],'Pressure':['Pa',_0x9513e9(0x1b3),_0x9513e9(0x1dc),_0x9513e9(0x1ee),_0x9513e9(0x1ca),_0x9513e9(0x1c7),_0x9513e9(0x1e9),_0x9513e9(0x1c1),_0x9513e9(0x1e8),_0x9513e9(0x1db),'mm\x20W.C.',_0x9513e9(0x1e1),_0x9513e9(0x1d7),_0x9513e9(0x1ea),'psi',_0x9513e9(0x1bc),_0x9513e9(0x1fe)],'Density':['kg/m³',_0x9513e9(0x1c4),'g/cm³',_0x9513e9(0x1e3),'lbm/ft³',_0x9513e9(0x1c9)]},this['unitConversion']={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':o,'ft':n},'Mass':{'kg':0x1,'g':0.001,'lbm':s},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':c,'mm\x20HG':a,'cm\x20HG':a*0xa,'in\x20HG':a*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':o*0x3e8*9.80665,'psf':s*9.80665/Math[_0x9513e9(0x1ef)](n,0x2),'psi':s*9.80665/Math[_0x9513e9(0x1ef)](o,0x2),'ksi':s*9.80665/Math[_0x9513e9(0x1ef)](o,0x2)*0x3e8,'ksi[kip/in²]':s*9.80665/Math[_0x9513e9(0x1ef)](o,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x9513e9(0x1ef)](0.01,0x3),'g/mm³':0x1/0x3e8/Math['pow'](0.001,0x3),'lbm/ft³':s/Math[_0x9513e9(0x1ef)](n,0x3),'lbm/in³':s/Math[_0x9513e9(0x1ef)](o,0x3)}},this[_0x9513e9(0x1d6)]();}static get[_0x1df461(0x1f0)](){const _0x1326ba=_0x1df461;return[_0x1326ba(0x1b6),_0x1326ba(0x1b5),'decimal-places'];}[_0x1df461(0x1e5)](_0x311bdc,_0x530dc6,_0x341d11){const _0x126fbe=_0x1df461;_0x311bdc===_0x126fbe(0x1b6)?this['value']=parseFloat(_0x341d11):_0x311bdc==='unit'?(this['unit']=_0x341d11,this[_0x126fbe(0x1d5)]=this[_0x126fbe(0x1e6)](_0x341d11)):_0x311bdc===_0x126fbe(0x1f1)&&(this['decimalPlaces']=parseInt(_0x341d11)||0x3),this['render']();}[_0x1df461(0x1e6)](_0x469fd7){const _0x3c2c07=_0x1df461;for(const _0x240839 in this[_0x3c2c07(0x1bf)])if(this[_0x3c2c07(0x1bf)][_0x240839][_0x3c2c07(0x1fc)](_0x469fd7))return _0x240839;return null;}[_0x1df461(0x1b1)](){const _0xb1589e=_0x1df461;this[_0xb1589e(0x1f7)]['addEventListener'](_0xb1589e(0x1d4),this[_0xb1589e(0x1dd)][_0xb1589e(0x1d9)](this)),this[_0xb1589e(0x1d6)]();}[_0x1df461(0x1b4)](){const _0x1450f7=_0x1df461;this['shadowRoot'][_0x1450f7(0x1ae)](_0x1450f7(0x1d4),this[_0x1450f7(0x1dd)][_0x1450f7(0x1d9)](this));}['handleArrowClick'](_0x22f153){const _0x2610e9=_0x1df461;if(_0x22f153[_0x2610e9(0x1f9)][_0x2610e9(0x1fd)](_0x2610e9(0x1d3))){const _0x574b5b=this[_0x2610e9(0x1f7)][_0x2610e9(0x1e7)](_0x2610e9(0x1f5));_0x574b5b&&(_0x574b5b[_0x2610e9(0x200)](),_0x574b5b['click']());}}[_0x1df461(0x1dd)](_0x418ce7){const _0x387f6f=_0x1df461;if(_0x418ce7[_0x387f6f(0x1f9)][_0x387f6f(0x1df)]==='SELECT'){const _0x4f46e5=_0x418ce7[_0x387f6f(0x1f9)]['value'],_0xedf0ea=this['unitConversion'][this['unitCategory']][this[_0x387f6f(0x1b5)]]/this[_0x387f6f(0x1bd)][this['unitCategory']][_0x4f46e5];this[_0x387f6f(0x1b6)]=this['value']*_0xedf0ea,this[_0x387f6f(0x1b5)]=_0x4f46e5,this[_0x387f6f(0x1d6)]();}}[_0x1df461(0x1cc)](_0xa74156){const _0x44d984=_0x1df461;return Number[_0x44d984(0x1ec)](_0xa74156)?_0xa74156['toString']():Math['floor'](_0xa74156)!==0x0?_0xa74156[_0x44d984(0x1ff)](this[_0x44d984(0x1f3)])['replace'](/0+$/,'')['replace'](/\.$/,''):_0xa74156[_0x44d984(0x1fa)](0x3);}[_0x1df461(0x1d6)](){const _0x313fb2=_0x1df461;this['shadowRoot'][_0x313fb2(0x1bb)]=_0x313fb2(0x1cd)+this[_0x313fb2(0x1cc)](this[_0x313fb2(0x1b6)])+_0x313fb2(0x1b7)+this[_0x313fb2(0x1bf)][this[_0x313fb2(0x1d5)]]['map'](_0x4d62bc=>'<option\x20value=\x22'+_0x4d62bc+'\x22\x20'+(_0x4d62bc===this[_0x313fb2(0x1b5)]?'selected':'')+_0x313fb2(0x1eb)+_0x4d62bc+_0x313fb2(0x1f8))[_0x313fb2(0x1cf)]('')+_0x313fb2(0x1de)+this['e3dLogoUrl']+_0x313fb2(0x1b2);const _0x3fefb8=this['shadowRoot']['querySelector'](_0x313fb2(0x1d3)),_0x11ba32=this[_0x313fb2(0x1f7)][_0x313fb2(0x1c8)]('.tooltip')[0x0];_0x3fefb8[_0x313fb2(0x1e2)]('mouseover',()=>{const _0x18adad=_0x313fb2;this[_0x18adad(0x1d2)]=setTimeout(()=>{const _0x5665cf=_0x18adad;_0x11ba32[_0x5665cf(0x1c0)][_0x5665cf(0x1cb)]=_0x5665cf(0x1e4);},0x3e8);}),_0x3fefb8[_0x313fb2(0x1e2)](_0x313fb2(0x1d0),()=>{const _0x5df9fc=_0x313fb2;setTimeout(()=>{const _0x330c34=_0x338d;_0x11ba32[_0x330c34(0x1c0)][_0x330c34(0x1cb)]=_0x330c34(0x1ed);},0x3e8),clearTimeout(this[_0x5df9fc(0x1d2)]);}),_0x11ba32['addEventListener'](_0x313fb2(0x1d0),()=>{setTimeout(()=>{const _0x5639f7=_0x338d;_0x11ba32[_0x5639f7(0x1c0)][_0x5639f7(0x1cb)]=_0x5639f7(0x1ed);},0x3e8);});}}customElements[_0x1df461(0x1f6)]('physical-quantity',r);class h extends r{}customElements[_0x1df461(0x1f6)](_0x1df461(0x1f2),h);
|
package/dist/pq.umd.js
CHANGED
|
@@ -1,352 +1 @@
|
|
|
1
|
-
function _0x42a0() {
|
|
2
|
-
const _0x132851 = [
|
|
3
|
-
"block",
|
|
4
|
-
"GPa",
|
|
5
|
-
"m\x20W.C.",
|
|
6
|
-
"</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",
|
|
7
|
-
"unit",
|
|
8
|
-
"139010VJeOrf",
|
|
9
|
-
"decimal-places",
|
|
10
|
-
"ksi[kip/in²]",
|
|
11
|
-
"1256094ptqovg",
|
|
12
|
-
"atm",
|
|
13
|
-
"toString",
|
|
14
|
-
"render",
|
|
15
|
-
"SELECT",
|
|
16
|
-
"g/mm³",
|
|
17
|
-
"handleUnitChange",
|
|
18
|
-
"mouseover",
|
|
19
|
-
"bind",
|
|
20
|
-
"shadowRoot",
|
|
21
|
-
"240698EDrKED",
|
|
22
|
-
"floor",
|
|
23
|
-
"focus",
|
|
24
|
-
"attributeChangedCallback",
|
|
25
|
-
"\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\x20cursor:\x20pointer;\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\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>",
|
|
26
|
-
"in\x20W.C.",
|
|
27
|
-
".unit-container",
|
|
28
|
-
"selected",
|
|
29
|
-
"psf",
|
|
30
|
-
"ksi",
|
|
31
|
-
"none",
|
|
32
|
-
"units",
|
|
33
|
-
"removeEventListener",
|
|
34
|
-
"addEventListener",
|
|
35
|
-
"style",
|
|
36
|
-
"pow",
|
|
37
|
-
"mm\x20W.C.",
|
|
38
|
-
"644076ynGYJB",
|
|
39
|
-
"unitCategory",
|
|
40
|
-
"replace",
|
|
41
|
-
"909dUGDgf",
|
|
42
|
-
"includes",
|
|
43
|
-
"uc-qty",
|
|
44
|
-
"disconnectedCallback",
|
|
45
|
-
"select",
|
|
46
|
-
"e3dLogoUrl",
|
|
47
|
-
"unitConversion",
|
|
48
|
-
"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",
|
|
49
|
-
"amd",
|
|
50
|
-
"display",
|
|
51
|
-
"7122294mKFOmu",
|
|
52
|
-
"querySelectorAll",
|
|
53
|
-
"closest",
|
|
54
|
-
"toFixed",
|
|
55
|
-
"toPrecision",
|
|
56
|
-
"kg/L",
|
|
57
|
-
"1vTxRWr",
|
|
58
|
-
"psi",
|
|
59
|
-
"<option\x20value=\x22",
|
|
60
|
-
"value",
|
|
61
|
-
"\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20",
|
|
62
|
-
"\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2.donwen.com/\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22",
|
|
63
|
-
"querySelector",
|
|
64
|
-
"kg/m³",
|
|
65
|
-
"Length",
|
|
66
|
-
"change",
|
|
67
|
-
"handleArrowClick",
|
|
68
|
-
"lbm",
|
|
69
|
-
"20saEnZO",
|
|
70
|
-
"lbm/ft³",
|
|
71
|
-
"formatValue",
|
|
72
|
-
"getUnitCategory",
|
|
73
|
-
"kPa",
|
|
74
|
-
"in\x20HG",
|
|
75
|
-
"mouseout",
|
|
76
|
-
"open",
|
|
77
|
-
"map",
|
|
78
|
-
"attachShadow",
|
|
79
|
-
"910245tOjNAl",
|
|
80
|
-
"lbm/in³",
|
|
81
|
-
"mm\x20HG",
|
|
82
|
-
"g/cm³",
|
|
83
|
-
"target",
|
|
84
|
-
"7001379ierJXm",
|
|
85
|
-
"56zEoxjk",
|
|
86
|
-
"tooltipTimeout",
|
|
87
|
-
"decimalPlaces",
|
|
88
|
-
"</option>",
|
|
89
|
-
"mbar",
|
|
90
|
-
];
|
|
91
|
-
_0x42a0 = function () {
|
|
92
|
-
return _0x132851;
|
|
93
|
-
};
|
|
94
|
-
return _0x42a0();
|
|
95
|
-
}
|
|
96
|
-
function _0x3140(_0x4adaaa, _0x311d57) {
|
|
97
|
-
const _0x42a0f7 = _0x42a0();
|
|
98
|
-
return (
|
|
99
|
-
(_0x3140 = function (_0x314026, _0x2e0b21) {
|
|
100
|
-
_0x314026 = _0x314026 - 0x12c;
|
|
101
|
-
let _0x46f5f8 = _0x42a0f7[_0x314026];
|
|
102
|
-
return _0x46f5f8;
|
|
103
|
-
}),
|
|
104
|
-
_0x3140(_0x4adaaa, _0x311d57)
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
(function (_0x3558a9, _0x23e7f9) {
|
|
108
|
-
const _0x5b5928 = _0x3140,
|
|
109
|
-
_0x286df7 = _0x3558a9();
|
|
110
|
-
while (!![]) {
|
|
111
|
-
try {
|
|
112
|
-
const _0x48cf4a =
|
|
113
|
-
(parseInt(_0x5b5928(0x16e)) / 0x1) *
|
|
114
|
-
(-parseInt(_0x5b5928(0x14a)) / 0x2) +
|
|
115
|
-
-parseInt(_0x5b5928(0x15b)) / 0x3 +
|
|
116
|
-
(parseInt(_0x5b5928(0x17a)) / 0x4) *
|
|
117
|
-
(-parseInt(_0x5b5928(0x12d)) / 0x5) +
|
|
118
|
-
parseInt(_0x5b5928(0x168)) / 0x6 +
|
|
119
|
-
(-parseInt(_0x5b5928(0x140)) / 0x7) *
|
|
120
|
-
(parseInt(_0x5b5928(0x133)) / 0x8) +
|
|
121
|
-
(-parseInt(_0x5b5928(0x15e)) / 0x9) *
|
|
122
|
-
(-parseInt(_0x5b5928(0x13d)) / 0xa) +
|
|
123
|
-
parseInt(_0x5b5928(0x132)) / 0xb;
|
|
124
|
-
if (_0x48cf4a === _0x23e7f9) break;
|
|
125
|
-
else _0x286df7["push"](_0x286df7["shift"]());
|
|
126
|
-
} catch (_0x503e6f) {
|
|
127
|
-
_0x286df7["push"](_0x286df7["shift"]());
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
})(_0x42a0, 0xb148f),
|
|
131
|
-
(function (_0x35baa4) {
|
|
132
|
-
const _0x4a3fd5 = _0x3140;
|
|
133
|
-
typeof define == "function" && define[_0x4a3fd5(0x166)]
|
|
134
|
-
? define(_0x35baa4)
|
|
135
|
-
: _0x35baa4();
|
|
136
|
-
})(function () {
|
|
137
|
-
"use strict";
|
|
138
|
-
const _0x1ccab9 = _0x3140;
|
|
139
|
-
const _0x4f7b31 = 0.45359237,
|
|
140
|
-
_0xf30773 = 25.4 / 0x3e8,
|
|
141
|
-
_0x46073f = 0xc * _0xf30773,
|
|
142
|
-
_0x579999 = 0x18bcd,
|
|
143
|
-
_0x380ffe = 133.322387415;
|
|
144
|
-
class _0x2cb387 extends HTMLElement {
|
|
145
|
-
constructor() {
|
|
146
|
-
const _0x2e4cee = _0x3140;
|
|
147
|
-
super(),
|
|
148
|
-
this[_0x2e4cee(0x12c)]({ mode: _0x2e4cee(0x181) }),
|
|
149
|
-
(this["value"] = 0x0),
|
|
150
|
-
(this["unit"] = "mm"),
|
|
151
|
-
(this[_0x2e4cee(0x15c)] = _0x2e4cee(0x176)),
|
|
152
|
-
(this["tooltipTimeout"] = null),
|
|
153
|
-
(this["decimalPlaces"] = 0x3),
|
|
154
|
-
(this["e3dLogoUrl"] = _0x2e4cee(0x165)),
|
|
155
|
-
(this[_0x2e4cee(0x155)] = {
|
|
156
|
-
Length: ["m", "km", "cm", "mm", "in", "ft"],
|
|
157
|
-
Mass: ["g", "kg", _0x2e4cee(0x179)],
|
|
158
|
-
Pressure: [
|
|
159
|
-
"Pa",
|
|
160
|
-
_0x2e4cee(0x17e),
|
|
161
|
-
"MPa",
|
|
162
|
-
_0x2e4cee(0x139),
|
|
163
|
-
"bar",
|
|
164
|
-
_0x2e4cee(0x137),
|
|
165
|
-
_0x2e4cee(0x141),
|
|
166
|
-
_0x2e4cee(0x12f),
|
|
167
|
-
"cm\x20HG",
|
|
168
|
-
_0x2e4cee(0x17f),
|
|
169
|
-
_0x2e4cee(0x15a),
|
|
170
|
-
_0x2e4cee(0x13a),
|
|
171
|
-
_0x2e4cee(0x14f),
|
|
172
|
-
_0x2e4cee(0x152),
|
|
173
|
-
_0x2e4cee(0x16f),
|
|
174
|
-
_0x2e4cee(0x153),
|
|
175
|
-
_0x2e4cee(0x13f),
|
|
176
|
-
],
|
|
177
|
-
Density: [
|
|
178
|
-
_0x2e4cee(0x175),
|
|
179
|
-
_0x2e4cee(0x16d),
|
|
180
|
-
_0x2e4cee(0x130),
|
|
181
|
-
_0x2e4cee(0x145),
|
|
182
|
-
_0x2e4cee(0x17b),
|
|
183
|
-
_0x2e4cee(0x12e),
|
|
184
|
-
],
|
|
185
|
-
}),
|
|
186
|
-
(this[_0x2e4cee(0x164)] = {
|
|
187
|
-
Length: {
|
|
188
|
-
m: 0x1,
|
|
189
|
-
km: 0x3e8,
|
|
190
|
-
cm: 0.01,
|
|
191
|
-
mm: 0.001,
|
|
192
|
-
in: _0xf30773,
|
|
193
|
-
ft: _0x46073f,
|
|
194
|
-
},
|
|
195
|
-
Mass: { kg: 0x1, g: 0.001, lbm: _0x4f7b31 },
|
|
196
|
-
Pressure: {
|
|
197
|
-
Pa: 0x1,
|
|
198
|
-
kPa: 0x3e8,
|
|
199
|
-
MPa: 0xf4240,
|
|
200
|
-
GPa: 0x3b9aca00,
|
|
201
|
-
bar: 0x64 * 0x3e8,
|
|
202
|
-
mbar: 0x64,
|
|
203
|
-
atm: _0x579999,
|
|
204
|
-
"mm\x20HG": _0x380ffe,
|
|
205
|
-
"cm\x20HG": _0x380ffe * 0xa,
|
|
206
|
-
"in\x20HG": _0x380ffe * 25.4,
|
|
207
|
-
"mm\x20W.C.": (0x1 / 0x3e8) * 0x3e8 * 9.80665,
|
|
208
|
-
"m\x20W.C.": 0x1 * 0x3e8 * 9.80665,
|
|
209
|
-
"in\x20W.C.": _0xf30773 * 0x3e8 * 9.80665,
|
|
210
|
-
psf:
|
|
211
|
-
(_0x4f7b31 * 9.80665) / Math[_0x2e4cee(0x159)](_0x46073f, 0x2),
|
|
212
|
-
psi:
|
|
213
|
-
(_0x4f7b31 * 9.80665) / Math[_0x2e4cee(0x159)](_0xf30773, 0x2),
|
|
214
|
-
ksi:
|
|
215
|
-
((_0x4f7b31 * 9.80665) / Math["pow"](_0xf30773, 0x2)) * 0x3e8,
|
|
216
|
-
"ksi[kip/in²]":
|
|
217
|
-
((_0x4f7b31 * 9.80665) /
|
|
218
|
-
Math[_0x2e4cee(0x159)](_0xf30773, 0x2)) *
|
|
219
|
-
0x3e8,
|
|
220
|
-
},
|
|
221
|
-
Density: {
|
|
222
|
-
"kg/m³": 0x1,
|
|
223
|
-
"kg/L": 0x3e8,
|
|
224
|
-
"g/cm³": 0x1 / 0x3e8 / Math[_0x2e4cee(0x159)](0.01, 0x3),
|
|
225
|
-
"g/mm³": 0x1 / 0x3e8 / Math[_0x2e4cee(0x159)](0.001, 0x3),
|
|
226
|
-
"lbm/ft³": _0x4f7b31 / Math[_0x2e4cee(0x159)](_0x46073f, 0x3),
|
|
227
|
-
"lbm/in³": _0x4f7b31 / Math["pow"](_0xf30773, 0x3),
|
|
228
|
-
},
|
|
229
|
-
}),
|
|
230
|
-
this[_0x2e4cee(0x143)]();
|
|
231
|
-
}
|
|
232
|
-
static get ["observedAttributes"]() {
|
|
233
|
-
const _0x201eb8 = _0x3140;
|
|
234
|
-
return [_0x201eb8(0x171), _0x201eb8(0x13c), _0x201eb8(0x13e)];
|
|
235
|
-
}
|
|
236
|
-
[_0x1ccab9(0x14d)](_0x3af086, _0x26d93a, _0x5189cb) {
|
|
237
|
-
const _0xd7244f = _0x1ccab9;
|
|
238
|
-
_0x3af086 === _0xd7244f(0x171)
|
|
239
|
-
? (this[_0xd7244f(0x171)] = parseFloat(_0x5189cb))
|
|
240
|
-
: _0x3af086 === "unit"
|
|
241
|
-
? ((this[_0xd7244f(0x13c)] = _0x5189cb),
|
|
242
|
-
(this[_0xd7244f(0x15c)] = this[_0xd7244f(0x17d)](_0x5189cb)))
|
|
243
|
-
: _0x3af086 === "decimal-places" &&
|
|
244
|
-
(this[_0xd7244f(0x135)] = parseInt(_0x5189cb) || 0x3),
|
|
245
|
-
this[_0xd7244f(0x143)]();
|
|
246
|
-
}
|
|
247
|
-
[_0x1ccab9(0x17d)](_0x2c14ce) {
|
|
248
|
-
const _0x5bf016 = _0x1ccab9;
|
|
249
|
-
for (const _0x33307d in this[_0x5bf016(0x155)])
|
|
250
|
-
if (this[_0x5bf016(0x155)][_0x33307d][_0x5bf016(0x15f)](_0x2c14ce))
|
|
251
|
-
return _0x33307d;
|
|
252
|
-
return null;
|
|
253
|
-
}
|
|
254
|
-
["connectedCallback"]() {
|
|
255
|
-
const _0xd1d3ca = _0x1ccab9;
|
|
256
|
-
this[_0xd1d3ca(0x149)][_0xd1d3ca(0x157)](
|
|
257
|
-
_0xd1d3ca(0x177),
|
|
258
|
-
this[_0xd1d3ca(0x146)][_0xd1d3ca(0x148)](this)
|
|
259
|
-
),
|
|
260
|
-
this[_0xd1d3ca(0x143)]();
|
|
261
|
-
}
|
|
262
|
-
[_0x1ccab9(0x161)]() {
|
|
263
|
-
const _0x530172 = _0x1ccab9;
|
|
264
|
-
this["shadowRoot"][_0x530172(0x156)](
|
|
265
|
-
_0x530172(0x177),
|
|
266
|
-
this["handleUnitChange"][_0x530172(0x148)](this)
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
[_0x1ccab9(0x178)](_0x178b79) {
|
|
270
|
-
const _0x2950b5 = _0x1ccab9;
|
|
271
|
-
if (_0x178b79[_0x2950b5(0x131)][_0x2950b5(0x16a)](_0x2950b5(0x150))) {
|
|
272
|
-
const _0x41774b = this["shadowRoot"][_0x2950b5(0x174)](
|
|
273
|
-
_0x2950b5(0x162)
|
|
274
|
-
);
|
|
275
|
-
_0x41774b && (_0x41774b[_0x2950b5(0x14c)](), _0x41774b["click"]());
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
[_0x1ccab9(0x146)](_0x5a3e6a) {
|
|
279
|
-
const _0x23b04e = _0x1ccab9;
|
|
280
|
-
if (_0x5a3e6a["target"]["tagName"] === _0x23b04e(0x144)) {
|
|
281
|
-
const _0x11be95 = _0x5a3e6a[_0x23b04e(0x131)][_0x23b04e(0x171)],
|
|
282
|
-
_0x663a9 =
|
|
283
|
-
this[_0x23b04e(0x164)][this[_0x23b04e(0x15c)]][
|
|
284
|
-
this[_0x23b04e(0x13c)]
|
|
285
|
-
] / this[_0x23b04e(0x164)][this["unitCategory"]][_0x11be95];
|
|
286
|
-
(this["value"] = this[_0x23b04e(0x171)] * _0x663a9),
|
|
287
|
-
(this[_0x23b04e(0x13c)] = _0x11be95),
|
|
288
|
-
this[_0x23b04e(0x143)]();
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
[_0x1ccab9(0x17c)](_0x51f3d2) {
|
|
292
|
-
const _0x1f30c0 = _0x1ccab9;
|
|
293
|
-
return Number["isInteger"](_0x51f3d2)
|
|
294
|
-
? _0x51f3d2[_0x1f30c0(0x142)]()
|
|
295
|
-
: Math[_0x1f30c0(0x14b)](_0x51f3d2) !== 0x0
|
|
296
|
-
? _0x51f3d2[_0x1f30c0(0x16b)](this[_0x1f30c0(0x135)])
|
|
297
|
-
["replace"](/0+$/, "")
|
|
298
|
-
[_0x1f30c0(0x15d)](/\.$/, "")
|
|
299
|
-
: _0x51f3d2[_0x1f30c0(0x16c)](0x3);
|
|
300
|
-
}
|
|
301
|
-
[_0x1ccab9(0x143)]() {
|
|
302
|
-
const _0x40949f = _0x1ccab9;
|
|
303
|
-
this[_0x40949f(0x149)]["innerHTML"] =
|
|
304
|
-
_0x40949f(0x14e) +
|
|
305
|
-
this[_0x40949f(0x17c)](this[_0x40949f(0x171)]) +
|
|
306
|
-
_0x40949f(0x13b) +
|
|
307
|
-
this["units"][this[_0x40949f(0x15c)]]
|
|
308
|
-
[_0x40949f(0x182)](
|
|
309
|
-
(_0x24ef3b) =>
|
|
310
|
-
_0x40949f(0x170) +
|
|
311
|
-
_0x24ef3b +
|
|
312
|
-
"\x22\x20" +
|
|
313
|
-
(_0x24ef3b === this[_0x40949f(0x13c)] ? _0x40949f(0x151) : "") +
|
|
314
|
-
">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
|
|
315
|
-
_0x24ef3b +
|
|
316
|
-
_0x40949f(0x136)
|
|
317
|
-
)
|
|
318
|
-
["join"]("") +
|
|
319
|
-
_0x40949f(0x173) +
|
|
320
|
-
this[_0x40949f(0x163)] +
|
|
321
|
-
_0x40949f(0x172);
|
|
322
|
-
const _0x4f4daa = this[_0x40949f(0x149)]["querySelector"](
|
|
323
|
-
_0x40949f(0x150)
|
|
324
|
-
),
|
|
325
|
-
_0x5175d5 = this[_0x40949f(0x149)][_0x40949f(0x169)](".tooltip")[0x0];
|
|
326
|
-
_0x4f4daa[_0x40949f(0x157)](_0x40949f(0x147), () => {
|
|
327
|
-
const _0x95d8da = _0x40949f;
|
|
328
|
-
this[_0x95d8da(0x134)] = setTimeout(() => {
|
|
329
|
-
const _0xa6822d = _0x95d8da;
|
|
330
|
-
_0x5175d5[_0xa6822d(0x158)][_0xa6822d(0x167)] = _0xa6822d(0x138);
|
|
331
|
-
}, 0x3e8);
|
|
332
|
-
}),
|
|
333
|
-
_0x4f4daa["addEventListener"](_0x40949f(0x180), () => {
|
|
334
|
-
const _0x583d0f = _0x40949f;
|
|
335
|
-
setTimeout(() => {
|
|
336
|
-
const _0x12a0e1 = _0x3140;
|
|
337
|
-
_0x5175d5[_0x12a0e1(0x158)][_0x12a0e1(0x167)] = "none";
|
|
338
|
-
}, 0x3e8),
|
|
339
|
-
clearTimeout(this[_0x583d0f(0x134)]);
|
|
340
|
-
}),
|
|
341
|
-
_0x5175d5[_0x40949f(0x157)](_0x40949f(0x180), () => {
|
|
342
|
-
setTimeout(() => {
|
|
343
|
-
const _0x442bf8 = _0x3140;
|
|
344
|
-
_0x5175d5[_0x442bf8(0x158)]["display"] = _0x442bf8(0x154);
|
|
345
|
-
}, 0x3e8);
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
customElements["define"]("physical-quantity", _0x2cb387);
|
|
350
|
-
class _0x2dfe31 extends _0x2cb387 {}
|
|
351
|
-
customElements["define"](_0x1ccab9(0x160), _0x2dfe31);
|
|
352
|
-
});
|
|
1
|
+
function _0x5594(_0x2fdfb1,_0x287d37){const _0xddf3e5=_0xddf3();return _0x5594=function(_0x5594ee,_0x2dac99){_0x5594ee=_0x5594ee-0x18f;let _0x21454f=_0xddf3e5[_0x5594ee];return _0x21454f;},_0x5594(_0x2fdfb1,_0x287d37);}(function(_0x5af819,_0xa6293a){const _0x3cde88=_0x5594,_0x5b2fbd=_0x5af819();while(!![]){try{const _0x429cbb=parseInt(_0x3cde88(0x1b2))/0x1*(parseInt(_0x3cde88(0x1e3))/0x2)+parseInt(_0x3cde88(0x1b8))/0x3+parseInt(_0x3cde88(0x1c1))/0x4*(-parseInt(_0x3cde88(0x1e1))/0x5)+parseInt(_0x3cde88(0x1bb))/0x6*(-parseInt(_0x3cde88(0x1e8))/0x7)+parseInt(_0x3cde88(0x1bf))/0x8+-parseInt(_0x3cde88(0x193))/0x9*(parseInt(_0x3cde88(0x1c9))/0xa)+-parseInt(_0x3cde88(0x1ba))/0xb*(-parseInt(_0x3cde88(0x1dc))/0xc);if(_0x429cbb===_0xa6293a)break;else _0x5b2fbd['push'](_0x5b2fbd['shift']());}catch(_0x53496f){_0x5b2fbd['push'](_0x5b2fbd['shift']());}}}(_0xddf3,0x7fed9),function(_0x33f870){const _0x5c52e5=_0x5594;typeof define==_0x5c52e5(0x198)&&define[_0x5c52e5(0x1c7)]?define(_0x33f870):_0x33f870();}(function(){'use strict';const _0x406ae4=_0x5594;const _0x2c5a78=0.45359237,_0x4eaaf9=25.4/0x3e8,_0x4660ab=0xc*_0x4eaaf9,_0x161bfa=0x18bcd,_0x5ae5f4=133.322387415;class _0x1e6783 extends HTMLElement{constructor(){const _0x49b087=_0x5594;super(),this[_0x49b087(0x1da)]({'mode':_0x49b087(0x1d7)}),this[_0x49b087(0x1e6)]=0x0,this['unit']='mm',this[_0x49b087(0x19d)]='Length',this[_0x49b087(0x1de)]=null,this[_0x49b087(0x1be)]=0x3,this[_0x49b087(0x190)]=_0x49b087(0x1b3),this[_0x49b087(0x1d4)]={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg','lbm'],'Pressure':['Pa',_0x49b087(0x1af),_0x49b087(0x1cd),_0x49b087(0x1b9),_0x49b087(0x197),_0x49b087(0x1cc),'atm',_0x49b087(0x1e0),_0x49b087(0x1d0),_0x49b087(0x1a0),'mm\x20W.C.',_0x49b087(0x1a5),_0x49b087(0x1c3),_0x49b087(0x1e2),'psi',_0x49b087(0x1df),_0x49b087(0x1a3)],'Density':[_0x49b087(0x19b),_0x49b087(0x1a8),_0x49b087(0x1aa),_0x49b087(0x192),_0x49b087(0x1d8),_0x49b087(0x1dd)]},this[_0x49b087(0x1b6)]={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':_0x4eaaf9,'ft':_0x4660ab},'Mass':{'kg':0x1,'g':0.001,'lbm':_0x2c5a78},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0x161bfa,'mm\x20HG':_0x5ae5f4,'cm\x20HG':_0x5ae5f4*0xa,'in\x20HG':_0x5ae5f4*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':_0x4eaaf9*0x3e8*9.80665,'psf':_0x2c5a78*9.80665/Math[_0x49b087(0x1ad)](_0x4660ab,0x2),'psi':_0x2c5a78*9.80665/Math['pow'](_0x4eaaf9,0x2),'ksi':_0x2c5a78*9.80665/Math[_0x49b087(0x1ad)](_0x4eaaf9,0x2)*0x3e8,'ksi[kip/in²]':_0x2c5a78*9.80665/Math['pow'](_0x4eaaf9,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³':_0x2c5a78/Math['pow'](_0x4660ab,0x3),'lbm/in³':_0x2c5a78/Math[_0x49b087(0x1ad)](_0x4eaaf9,0x3)}},this['render']();}static get[_0x406ae4(0x1b4)](){const _0x5236f5=_0x406ae4;return[_0x5236f5(0x1e6),_0x5236f5(0x19a),_0x5236f5(0x199)];}[_0x406ae4(0x1bc)](_0x3f9129,_0x4788a7,_0x5b0287){const _0x5d020d=_0x406ae4;_0x3f9129===_0x5d020d(0x1e6)?this['value']=parseFloat(_0x5b0287):_0x3f9129==='unit'?(this[_0x5d020d(0x19a)]=_0x5b0287,this[_0x5d020d(0x19d)]=this['getUnitCategory'](_0x5b0287)):_0x3f9129===_0x5d020d(0x199)&&(this[_0x5d020d(0x1be)]=parseInt(_0x5b0287)||0x3),this[_0x5d020d(0x1d1)]();}[_0x406ae4(0x191)](_0x190f02){const _0x2280c5=_0x406ae4;for(const _0x38fa80 in this[_0x2280c5(0x1d4)])if(this[_0x2280c5(0x1d4)][_0x38fa80][_0x2280c5(0x1bd)](_0x190f02))return _0x38fa80;return null;}[_0x406ae4(0x1d5)](){const _0xed4911=_0x406ae4;this[_0xed4911(0x196)]['addEventListener'](_0xed4911(0x1e5),this['handleUnitChange'][_0xed4911(0x1a9)](this)),this[_0xed4911(0x1d1)]();}[_0x406ae4(0x19f)](){const _0x4e2cd2=_0x406ae4;this[_0x4e2cd2(0x196)][_0x4e2cd2(0x1ab)]('change',this[_0x4e2cd2(0x195)][_0x4e2cd2(0x1a9)](this));}[_0x406ae4(0x1a1)](_0x5d1caf){const _0x9b8815=_0x406ae4;if(_0x5d1caf['target']['closest'](_0x9b8815(0x1ae))){const _0x2a1c1f=this[_0x9b8815(0x196)][_0x9b8815(0x1b0)](_0x9b8815(0x1d2));_0x2a1c1f&&(_0x2a1c1f['focus'](),_0x2a1c1f['click']());}}[_0x406ae4(0x195)](_0x98c1a8){const _0x90427e=_0x406ae4;if(_0x98c1a8[_0x90427e(0x1e7)][_0x90427e(0x1ca)]==='SELECT'){const _0x3bfb88=_0x98c1a8[_0x90427e(0x1e7)][_0x90427e(0x1e6)],_0x2b6ac1=this[_0x90427e(0x1b6)][this['unitCategory']][this[_0x90427e(0x19a)]]/this[_0x90427e(0x1b6)][this['unitCategory']][_0x3bfb88];this[_0x90427e(0x1e6)]=this[_0x90427e(0x1e6)]*_0x2b6ac1,this[_0x90427e(0x19a)]=_0x3bfb88,this['render']();}}[_0x406ae4(0x1db)](_0x24f9c1){const _0x235fa7=_0x406ae4;return Number[_0x235fa7(0x1a4)](_0x24f9c1)?_0x24f9c1[_0x235fa7(0x1d3)]():Math[_0x235fa7(0x1c2)](_0x24f9c1)!==0x0?_0x24f9c1[_0x235fa7(0x18f)](this[_0x235fa7(0x1be)])[_0x235fa7(0x19e)](/0+$/,'')[_0x235fa7(0x19e)](/\.$/,''):_0x24f9c1[_0x235fa7(0x1a6)](0x3);}[_0x406ae4(0x1d1)](){const _0x5b6aaa=_0x406ae4;this[_0x5b6aaa(0x196)]['innerHTML']=_0x5b6aaa(0x1a2)+this[_0x5b6aaa(0x1db)](this[_0x5b6aaa(0x1e6)])+_0x5b6aaa(0x1b7)+this[_0x5b6aaa(0x1d4)][this[_0x5b6aaa(0x19d)]][_0x5b6aaa(0x1e9)](_0xaf4f3d=>_0x5b6aaa(0x1b5)+_0xaf4f3d+'\x22\x20'+(_0xaf4f3d===this[_0x5b6aaa(0x19a)]?_0x5b6aaa(0x1cb):'')+_0x5b6aaa(0x1c6)+_0xaf4f3d+_0x5b6aaa(0x1ce))[_0x5b6aaa(0x19c)]('')+_0x5b6aaa(0x1c0)+this['e3dLogoUrl']+_0x5b6aaa(0x1ac);const _0x1e332a=this[_0x5b6aaa(0x196)][_0x5b6aaa(0x1b0)](_0x5b6aaa(0x1ae)),_0x5e6d35=this[_0x5b6aaa(0x196)][_0x5b6aaa(0x1c5)](_0x5b6aaa(0x194))[0x0];_0x1e332a[_0x5b6aaa(0x1c4)](_0x5b6aaa(0x1b1),()=>{this['tooltipTimeout']=setTimeout(()=>{const _0x47303c=_0x5594;_0x5e6d35[_0x47303c(0x1c8)][_0x47303c(0x1e4)]=_0x47303c(0x1d6);},0x3e8);}),_0x1e332a['addEventListener']('mouseout',()=>{setTimeout(()=>{const _0x524eb8=_0x5594;_0x5e6d35[_0x524eb8(0x1c8)][_0x524eb8(0x1e4)]='none';},0x3e8),clearTimeout(this['tooltipTimeout']);}),_0x5e6d35[_0x5b6aaa(0x1c4)]('mouseout',()=>{setTimeout(()=>{const _0x572be8=_0x5594;_0x5e6d35[_0x572be8(0x1c8)][_0x572be8(0x1e4)]=_0x572be8(0x1cf);},0x3e8);});}}customElements[_0x406ae4(0x1d9)]('physical-quantity',_0x1e6783);class _0x4cc7df extends _0x1e6783{}customElements['define'](_0x406ae4(0x1a7),_0x4cc7df);}));function _0xddf3(){const _0x588241=['getUnitCategory','g/mm³','666NsoRpO','.tooltip','handleUnitChange','shadowRoot','bar','function','decimal-places','unit','kg/m³','join','unitCategory','replace','disconnectedCallback','in\x20HG','handleArrowClick','\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\x20cursor:\x20pointer;\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\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>','ksi[kip/in²]','isInteger','m\x20W.C.','toPrecision','uc-qty','kg/L','bind','g/cm³','removeEventListener','\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','pow','.unit-container','kPa','querySelector','mouseover','6990wsbRrL','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','observedAttributes','<option\x20value=\x22','unitConversion','</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','1868178XlunYr','GPa','552266XgwrOt','2258184DubyPr','attributeChangedCallback','includes','decimalPlaces','5851792UKQXSH','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','22412kVvdyQ','floor','in\x20W.C.','addEventListener','querySelectorAll','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','amd','style','9820qsFEAP','tagName','selected','mbar','MPa','</option>','none','cm\x20HG','render','select','toString','units','connectedCallback','block','open','lbm/ft³','define','attachShadow','formatValue','24JryJvO','lbm/in³','tooltipTimeout','ksi','mm\x20HG','805SJnUAs','psf','228YhDVKh','display','change','value','target','14cAnVZi','map','toFixed','e3dLogoUrl'];_0xddf3=function(){return _0x588241;};return _0xddf3();}
|