@mapsindoors/map-template 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -0
- package/dist/_commonjsHelpers-ba3f0406-b96e6d6a.mjs +21 -0
- package/dist/combo-box-item.entry-92232c29.mjs +12 -0
- package/dist/combo-box-item.entry-f244c01a.mjs +14 -0
- package/dist/icon-b8d01d6f-ddfa2c17.mjs +24 -0
- package/dist/mapsindoors-react.es.js +7 -0
- package/dist/mapsindoors-react.umd.js +1391 -0
- package/dist/mapsindoors-webcomponent.es.js +5 -0
- package/dist/mapsindoors-webcomponent.umd.js +1385 -0
- package/dist/mi-card_2.entry-508f65b2.mjs +23 -0
- package/dist/mi-card_2.entry-d24478d0.mjs +25 -0
- package/dist/mi-chip.entry-74b3118c.mjs +15 -0
- package/dist/mi-chip.entry-8bfee95c.mjs +13 -0
- package/dist/mi-column.entry-f66623b9.mjs +20 -0
- package/dist/mi-column.entry-f901d5d1.mjs +18 -0
- package/dist/mi-combo-box.entry-0e6d9797.mjs +262 -0
- package/dist/mi-combo-box.entry-69a04955.mjs +260 -0
- package/dist/mi-data-table.entry-6cae08b0.mjs +215 -0
- package/dist/mi-data-table.entry-7fe09cbe.mjs +213 -0
- package/dist/mi-distance_2.entry-dca308c3.mjs +54 -0
- package/dist/mi-distance_2.entry-dffb2e64.mjs +56 -0
- package/dist/mi-dropdown-item.entry-508c6605.mjs +12 -0
- package/dist/mi-dropdown-item.entry-b6aa9d36.mjs +14 -0
- package/dist/mi-dropdown.entry-43258637.mjs +296 -0
- package/dist/mi-dropdown.entry-e1325610.mjs +298 -0
- package/dist/mi-keyboard.entry-60e47fb9.mjs +2962 -0
- package/dist/mi-keyboard.entry-c97c80e8.mjs +2960 -0
- package/dist/mi-list-item-category.entry-b0f61751.mjs +38 -0
- package/dist/mi-list-item-category.entry-bcac342a.mjs +36 -0
- package/dist/mi-list-item-location.entry-15ec9c7e.mjs +125 -0
- package/dist/mi-list-item-location.entry-ee56967a.mjs +127 -0
- package/dist/mi-list.entry-656130ea.mjs +41 -0
- package/dist/mi-list.entry-c8f1f377.mjs +39 -0
- package/dist/mi-location-booking.entry-a5b9b331.mjs +4863 -0
- package/dist/mi-location-booking.entry-ea841d6e.mjs +4865 -0
- package/dist/mi-location-info.entry-89b37774.mjs +22 -0
- package/dist/mi-location-info.entry-fe2c6c32.mjs +24 -0
- package/dist/mi-map-googlemaps.entry-6cb264de.mjs +398 -0
- package/dist/mi-map-googlemaps.entry-8877f16d.mjs +396 -0
- package/dist/mi-map-mapbox.entry-7a41963d.mjs +298 -0
- package/dist/mi-map-mapbox.entry-928da21a.mjs +300 -0
- package/dist/mi-metric-card.entry-51daca25.mjs +28 -0
- package/dist/mi-metric-card.entry-95dbb9f1.mjs +26 -0
- package/dist/mi-notification.entry-29b28ba8.mjs +81 -0
- package/dist/mi-notification.entry-f7677761.mjs +83 -0
- package/dist/mi-route-instructions-heading.entry-79c22cdd.mjs +72 -0
- package/dist/mi-route-instructions-heading.entry-a4c7f18f.mjs +74 -0
- package/dist/mi-route-instructions-maneuver_2.entry-383704ad.mjs +115 -0
- package/dist/mi-route-instructions-maneuver_2.entry-80c51e6a.mjs +113 -0
- package/dist/mi-route-instructions-step-legacy.entry-785cb60b.mjs +199 -0
- package/dist/mi-route-instructions-step-legacy.entry-eff068ed.mjs +201 -0
- package/dist/mi-route-instructions-step.entry-272e3c84.mjs +199 -0
- package/dist/mi-route-instructions-step.entry-95f5dc43.mjs +201 -0
- package/dist/mi-route-instructions.entry-0628d220.mjs +139 -0
- package/dist/mi-route-instructions.entry-1b4fb352.mjs +141 -0
- package/dist/mi-scroll-buttons.entry-274b003f.mjs +48 -0
- package/dist/mi-scroll-buttons.entry-6132935b.mjs +46 -0
- package/dist/mi-search.entry-994c0189.mjs +206 -0
- package/dist/mi-search.entry-d0e582d1.mjs +208 -0
- package/dist/mi-share-sms.entry-ae15cf77.mjs +53 -0
- package/dist/mi-share-sms.entry-ced7f275.mjs +55 -0
- package/dist/mi-step-switcher.entry-812a5096.mjs +24 -0
- package/dist/mi-step-switcher.entry-c9e28e79.mjs +26 -0
- package/dist/mi-tab-panel.entry-63c34f28.mjs +19 -0
- package/dist/mi-tab-panel.entry-bde9bd39.mjs +21 -0
- package/dist/mi-tab.entry-1767468e.mjs +13 -0
- package/dist/mi-tab.entry-b5ac50ac.mjs +11 -0
- package/dist/mi-tabs.entry-1b8327bf.mjs +34 -0
- package/dist/mi-tabs.entry-bd190e21.mjs +36 -0
- package/dist/mi-variables-9a6c8d4d-e06eec88.mjs +7 -0
- package/dist/reactcomponent-2f9f051f.mjs +27190 -0
- package/dist/route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs +7 -0
- package/dist/sort-order.enum-64ce8998-b75ac596.mjs +317 -0
- package/dist/unit-system.enum-eaefb53e-0f424da4.mjs +7 -0
- package/dist/utils-ae714467-b07fc3be.mjs +36 -0
- package/dist/webcomponent-a10be1e6.mjs +31969 -0
- package/package.json +53 -0
|
@@ -0,0 +1,2962 @@
|
|
|
1
|
+
import { r as Ot, h as It } from "./reactcomponent-2f9f051f.mjs";
|
|
2
|
+
import { c as Pt, a as Ct, g as At } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
var Mt = Pt(function(at, gt) {
|
|
6
|
+
/*!
|
|
7
|
+
*
|
|
8
|
+
* simple-keyboard v3.5.21
|
|
9
|
+
* https://github.com/hodgef/simple-keyboard
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
(function(Et, vt) {
|
|
18
|
+
at.exports = vt();
|
|
19
|
+
})(Ct, function() {
|
|
20
|
+
return function() {
|
|
21
|
+
var Et = { 9662: function(i, h, t) {
|
|
22
|
+
var e = t(614), r = t(6330), n = TypeError;
|
|
23
|
+
i.exports = function(a) {
|
|
24
|
+
if (e(a))
|
|
25
|
+
return a;
|
|
26
|
+
throw n(r(a) + " is not a function");
|
|
27
|
+
};
|
|
28
|
+
}, 9483: function(i, h, t) {
|
|
29
|
+
var e = t(4411), r = t(6330), n = TypeError;
|
|
30
|
+
i.exports = function(a) {
|
|
31
|
+
if (e(a))
|
|
32
|
+
return a;
|
|
33
|
+
throw n(r(a) + " is not a constructor");
|
|
34
|
+
};
|
|
35
|
+
}, 6077: function(i, h, t) {
|
|
36
|
+
var e = t(614), r = String, n = TypeError;
|
|
37
|
+
i.exports = function(a) {
|
|
38
|
+
if (typeof a == "object" || e(a))
|
|
39
|
+
return a;
|
|
40
|
+
throw n("Can't set " + r(a) + " as a prototype");
|
|
41
|
+
};
|
|
42
|
+
}, 1223: function(i, h, t) {
|
|
43
|
+
var e = t(5112), r = t(30), n = t(3070).f, a = e("unscopables"), u = Array.prototype;
|
|
44
|
+
u[a] == null && n(u, a, { configurable: !0, value: r(null) }), i.exports = function(c) {
|
|
45
|
+
u[a][c] = !0;
|
|
46
|
+
};
|
|
47
|
+
}, 1530: function(i, h, t) {
|
|
48
|
+
var e = t(8710).charAt;
|
|
49
|
+
i.exports = function(r, n, a) {
|
|
50
|
+
return n + (a ? e(r, n).length : 1);
|
|
51
|
+
};
|
|
52
|
+
}, 9670: function(i, h, t) {
|
|
53
|
+
var e = t(111), r = String, n = TypeError;
|
|
54
|
+
i.exports = function(a) {
|
|
55
|
+
if (e(a))
|
|
56
|
+
return a;
|
|
57
|
+
throw n(r(a) + " is not an object");
|
|
58
|
+
};
|
|
59
|
+
}, 8533: function(i, h, t) {
|
|
60
|
+
var e = t(2092).forEach, r = t(9341)("forEach");
|
|
61
|
+
i.exports = r ? [].forEach : function(n) {
|
|
62
|
+
return e(this, n, arguments.length > 1 ? arguments[1] : void 0);
|
|
63
|
+
};
|
|
64
|
+
}, 8457: function(i, h, t) {
|
|
65
|
+
var e = t(9974), r = t(6916), n = t(7908), a = t(3411), u = t(7659), c = t(4411), l = t(6244), p = t(6135), g = t(4121), m = t(1246), x = Array;
|
|
66
|
+
i.exports = function(b) {
|
|
67
|
+
var I = n(b), S = c(this), O = arguments.length, N = O > 1 ? arguments[1] : void 0, D = N !== void 0;
|
|
68
|
+
D && (N = e(N, O > 2 ? arguments[2] : void 0));
|
|
69
|
+
var F, T, _, R, K, j, z = m(I), U = 0;
|
|
70
|
+
if (!z || this === x && u(z))
|
|
71
|
+
for (F = l(I), T = S ? new this(F) : x(F); F > U; U++)
|
|
72
|
+
j = D ? N(I[U], U) : I[U], p(T, U, j);
|
|
73
|
+
else
|
|
74
|
+
for (K = (R = g(I, z)).next, T = S ? new this() : []; !(_ = r(K, R)).done; U++)
|
|
75
|
+
j = D ? a(R, N, [_.value, U], !0) : _.value, p(T, U, j);
|
|
76
|
+
return T.length = U, T;
|
|
77
|
+
};
|
|
78
|
+
}, 1318: function(i, h, t) {
|
|
79
|
+
var e = t(5656), r = t(1400), n = t(6244), a = function(u) {
|
|
80
|
+
return function(c, l, p) {
|
|
81
|
+
var g, m = e(c), x = n(m), b = r(p, x);
|
|
82
|
+
if (u && l != l) {
|
|
83
|
+
for (; x > b; )
|
|
84
|
+
if ((g = m[b++]) != g)
|
|
85
|
+
return !0;
|
|
86
|
+
} else
|
|
87
|
+
for (; x > b; b++)
|
|
88
|
+
if ((u || b in m) && m[b] === l)
|
|
89
|
+
return u || b || 0;
|
|
90
|
+
return !u && -1;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
i.exports = { includes: a(!0), indexOf: a(!1) };
|
|
94
|
+
}, 2092: function(i, h, t) {
|
|
95
|
+
var e = t(9974), r = t(1702), n = t(8361), a = t(7908), u = t(6244), c = t(5417), l = r([].push), p = function(g) {
|
|
96
|
+
var m = g == 1, x = g == 2, b = g == 3, I = g == 4, S = g == 6, O = g == 7, N = g == 5 || S;
|
|
97
|
+
return function(D, F, T, _) {
|
|
98
|
+
for (var R, K, j = a(D), z = n(j), U = e(F, T), Y = u(z), $ = 0, w = _ || c, v = m ? w(D, Y) : x || O ? w(D, 0) : void 0; Y > $; $++)
|
|
99
|
+
if ((N || $ in z) && (K = U(R = z[$], $, j), g))
|
|
100
|
+
if (m)
|
|
101
|
+
v[$] = K;
|
|
102
|
+
else if (K)
|
|
103
|
+
switch (g) {
|
|
104
|
+
case 3:
|
|
105
|
+
return !0;
|
|
106
|
+
case 5:
|
|
107
|
+
return R;
|
|
108
|
+
case 6:
|
|
109
|
+
return $;
|
|
110
|
+
case 2:
|
|
111
|
+
l(v, R);
|
|
112
|
+
}
|
|
113
|
+
else
|
|
114
|
+
switch (g) {
|
|
115
|
+
case 4:
|
|
116
|
+
return !1;
|
|
117
|
+
case 7:
|
|
118
|
+
l(v, R);
|
|
119
|
+
}
|
|
120
|
+
return S ? -1 : b || I ? I : v;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
i.exports = { forEach: p(0), map: p(1), filter: p(2), some: p(3), every: p(4), find: p(5), findIndex: p(6), filterReject: p(7) };
|
|
124
|
+
}, 1194: function(i, h, t) {
|
|
125
|
+
var e = t(7293), r = t(5112), n = t(7392), a = r("species");
|
|
126
|
+
i.exports = function(u) {
|
|
127
|
+
return n >= 51 || !e(function() {
|
|
128
|
+
var c = [];
|
|
129
|
+
return (c.constructor = {})[a] = function() {
|
|
130
|
+
return { foo: 1 };
|
|
131
|
+
}, c[u](Boolean).foo !== 1;
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
}, 9341: function(i, h, t) {
|
|
135
|
+
var e = t(7293);
|
|
136
|
+
i.exports = function(r, n) {
|
|
137
|
+
var a = [][r];
|
|
138
|
+
return !!a && e(function() {
|
|
139
|
+
a.call(null, n || function() {
|
|
140
|
+
return 1;
|
|
141
|
+
}, 1);
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
}, 3671: function(i, h, t) {
|
|
145
|
+
var e = t(9662), r = t(7908), n = t(8361), a = t(6244), u = TypeError, c = function(l) {
|
|
146
|
+
return function(p, g, m, x) {
|
|
147
|
+
e(g);
|
|
148
|
+
var b = r(p), I = n(b), S = a(b), O = l ? S - 1 : 0, N = l ? -1 : 1;
|
|
149
|
+
if (m < 2)
|
|
150
|
+
for (; ; ) {
|
|
151
|
+
if (O in I) {
|
|
152
|
+
x = I[O], O += N;
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
if (O += N, l ? O < 0 : S <= O)
|
|
156
|
+
throw u("Reduce of empty array with no initial value");
|
|
157
|
+
}
|
|
158
|
+
for (; l ? O >= 0 : S > O; O += N)
|
|
159
|
+
O in I && (x = g(x, I[O], O, b));
|
|
160
|
+
return x;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
i.exports = { left: c(!1), right: c(!0) };
|
|
164
|
+
}, 3658: function(i, h, t) {
|
|
165
|
+
var e = t(9781), r = t(3157), n = TypeError, a = Object.getOwnPropertyDescriptor, u = e && !function() {
|
|
166
|
+
if (this !== void 0)
|
|
167
|
+
return !0;
|
|
168
|
+
try {
|
|
169
|
+
Object.defineProperty([], "length", { writable: !1 }).length = 1;
|
|
170
|
+
} catch (c) {
|
|
171
|
+
return c instanceof TypeError;
|
|
172
|
+
}
|
|
173
|
+
}();
|
|
174
|
+
i.exports = u ? function(c, l) {
|
|
175
|
+
if (r(c) && !a(c, "length").writable)
|
|
176
|
+
throw n("Cannot set read only .length");
|
|
177
|
+
return c.length = l;
|
|
178
|
+
} : function(c, l) {
|
|
179
|
+
return c.length = l;
|
|
180
|
+
};
|
|
181
|
+
}, 1589: function(i, h, t) {
|
|
182
|
+
var e = t(1400), r = t(6244), n = t(6135), a = Array, u = Math.max;
|
|
183
|
+
i.exports = function(c, l, p) {
|
|
184
|
+
for (var g = r(c), m = e(l, g), x = e(p === void 0 ? g : p, g), b = a(u(x - m, 0)), I = 0; m < x; m++, I++)
|
|
185
|
+
n(b, I, c[m]);
|
|
186
|
+
return b.length = I, b;
|
|
187
|
+
};
|
|
188
|
+
}, 206: function(i, h, t) {
|
|
189
|
+
var e = t(1702);
|
|
190
|
+
i.exports = e([].slice);
|
|
191
|
+
}, 4362: function(i, h, t) {
|
|
192
|
+
var e = t(1589), r = Math.floor, n = function(c, l) {
|
|
193
|
+
var p = c.length, g = r(p / 2);
|
|
194
|
+
return p < 8 ? a(c, l) : u(c, n(e(c, 0, g), l), n(e(c, g), l), l);
|
|
195
|
+
}, a = function(c, l) {
|
|
196
|
+
for (var p, g, m = c.length, x = 1; x < m; ) {
|
|
197
|
+
for (g = x, p = c[x]; g && l(c[g - 1], p) > 0; )
|
|
198
|
+
c[g] = c[--g];
|
|
199
|
+
g !== x++ && (c[g] = p);
|
|
200
|
+
}
|
|
201
|
+
return c;
|
|
202
|
+
}, u = function(c, l, p, g) {
|
|
203
|
+
for (var m = l.length, x = p.length, b = 0, I = 0; b < m || I < x; )
|
|
204
|
+
c[b + I] = b < m && I < x ? g(l[b], p[I]) <= 0 ? l[b++] : p[I++] : b < m ? l[b++] : p[I++];
|
|
205
|
+
return c;
|
|
206
|
+
};
|
|
207
|
+
i.exports = n;
|
|
208
|
+
}, 7475: function(i, h, t) {
|
|
209
|
+
var e = t(3157), r = t(4411), n = t(111), a = t(5112)("species"), u = Array;
|
|
210
|
+
i.exports = function(c) {
|
|
211
|
+
var l;
|
|
212
|
+
return e(c) && (l = c.constructor, (r(l) && (l === u || e(l.prototype)) || n(l) && (l = l[a]) === null) && (l = void 0)), l === void 0 ? u : l;
|
|
213
|
+
};
|
|
214
|
+
}, 5417: function(i, h, t) {
|
|
215
|
+
var e = t(7475);
|
|
216
|
+
i.exports = function(r, n) {
|
|
217
|
+
return new (e(r))(n === 0 ? 0 : n);
|
|
218
|
+
};
|
|
219
|
+
}, 3411: function(i, h, t) {
|
|
220
|
+
var e = t(9670), r = t(9212);
|
|
221
|
+
i.exports = function(n, a, u, c) {
|
|
222
|
+
try {
|
|
223
|
+
return c ? a(e(u)[0], u[1]) : a(u);
|
|
224
|
+
} catch (l) {
|
|
225
|
+
r(n, "throw", l);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}, 7072: function(i, h, t) {
|
|
229
|
+
var e = t(5112)("iterator"), r = !1;
|
|
230
|
+
try {
|
|
231
|
+
var n = 0, a = { next: function() {
|
|
232
|
+
return { done: !!n++ };
|
|
233
|
+
}, return: function() {
|
|
234
|
+
r = !0;
|
|
235
|
+
} };
|
|
236
|
+
a[e] = function() {
|
|
237
|
+
return this;
|
|
238
|
+
}, Array.from(a, function() {
|
|
239
|
+
throw 2;
|
|
240
|
+
});
|
|
241
|
+
} catch {
|
|
242
|
+
}
|
|
243
|
+
i.exports = function(u, c) {
|
|
244
|
+
if (!c && !r)
|
|
245
|
+
return !1;
|
|
246
|
+
var l = !1;
|
|
247
|
+
try {
|
|
248
|
+
var p = {};
|
|
249
|
+
p[e] = function() {
|
|
250
|
+
return { next: function() {
|
|
251
|
+
return { done: l = !0 };
|
|
252
|
+
} };
|
|
253
|
+
}, u(p);
|
|
254
|
+
} catch {
|
|
255
|
+
}
|
|
256
|
+
return l;
|
|
257
|
+
};
|
|
258
|
+
}, 4326: function(i, h, t) {
|
|
259
|
+
var e = t(1702), r = e({}.toString), n = e("".slice);
|
|
260
|
+
i.exports = function(a) {
|
|
261
|
+
return n(r(a), 8, -1);
|
|
262
|
+
};
|
|
263
|
+
}, 648: function(i, h, t) {
|
|
264
|
+
var e = t(1694), r = t(614), n = t(4326), a = t(5112)("toStringTag"), u = Object, c = n(function() {
|
|
265
|
+
return arguments;
|
|
266
|
+
}()) == "Arguments";
|
|
267
|
+
i.exports = e ? n : function(l) {
|
|
268
|
+
var p, g, m;
|
|
269
|
+
return l === void 0 ? "Undefined" : l === null ? "Null" : typeof (g = function(x, b) {
|
|
270
|
+
try {
|
|
271
|
+
return x[b];
|
|
272
|
+
} catch {
|
|
273
|
+
}
|
|
274
|
+
}(p = u(l), a)) == "string" ? g : c ? n(p) : (m = n(p)) == "Object" && r(p.callee) ? "Arguments" : m;
|
|
275
|
+
};
|
|
276
|
+
}, 9920: function(i, h, t) {
|
|
277
|
+
var e = t(2597), r = t(3887), n = t(1236), a = t(3070);
|
|
278
|
+
i.exports = function(u, c, l) {
|
|
279
|
+
for (var p = r(c), g = a.f, m = n.f, x = 0; x < p.length; x++) {
|
|
280
|
+
var b = p[x];
|
|
281
|
+
e(u, b) || l && e(l, b) || g(u, b, m(c, b));
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
}, 4964: function(i, h, t) {
|
|
285
|
+
var e = t(5112)("match");
|
|
286
|
+
i.exports = function(r) {
|
|
287
|
+
var n = /./;
|
|
288
|
+
try {
|
|
289
|
+
"/./"[r](n);
|
|
290
|
+
} catch {
|
|
291
|
+
try {
|
|
292
|
+
return n[e] = !1, "/./"[r](n);
|
|
293
|
+
} catch {
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return !1;
|
|
297
|
+
};
|
|
298
|
+
}, 8544: function(i, h, t) {
|
|
299
|
+
var e = t(7293);
|
|
300
|
+
i.exports = !e(function() {
|
|
301
|
+
function r() {
|
|
302
|
+
}
|
|
303
|
+
return r.prototype.constructor = null, Object.getPrototypeOf(new r()) !== r.prototype;
|
|
304
|
+
});
|
|
305
|
+
}, 6178: function(i) {
|
|
306
|
+
i.exports = function(h, t) {
|
|
307
|
+
return { value: h, done: t };
|
|
308
|
+
};
|
|
309
|
+
}, 8880: function(i, h, t) {
|
|
310
|
+
var e = t(9781), r = t(3070), n = t(9114);
|
|
311
|
+
i.exports = e ? function(a, u, c) {
|
|
312
|
+
return r.f(a, u, n(1, c));
|
|
313
|
+
} : function(a, u, c) {
|
|
314
|
+
return a[u] = c, a;
|
|
315
|
+
};
|
|
316
|
+
}, 9114: function(i) {
|
|
317
|
+
i.exports = function(h, t) {
|
|
318
|
+
return { enumerable: !(1 & h), configurable: !(2 & h), writable: !(4 & h), value: t };
|
|
319
|
+
};
|
|
320
|
+
}, 6135: function(i, h, t) {
|
|
321
|
+
var e = t(4948), r = t(3070), n = t(9114);
|
|
322
|
+
i.exports = function(a, u, c) {
|
|
323
|
+
var l = e(u);
|
|
324
|
+
l in a ? r.f(a, l, n(0, c)) : a[l] = c;
|
|
325
|
+
};
|
|
326
|
+
}, 8709: function(i, h, t) {
|
|
327
|
+
var e = t(9670), r = t(2140), n = TypeError;
|
|
328
|
+
i.exports = function(a) {
|
|
329
|
+
if (e(this), a === "string" || a === "default")
|
|
330
|
+
a = "string";
|
|
331
|
+
else if (a !== "number")
|
|
332
|
+
throw n("Incorrect hint");
|
|
333
|
+
return r(this, a);
|
|
334
|
+
};
|
|
335
|
+
}, 8052: function(i, h, t) {
|
|
336
|
+
var e = t(614), r = t(3070), n = t(6339), a = t(3072);
|
|
337
|
+
i.exports = function(u, c, l, p) {
|
|
338
|
+
p || (p = {});
|
|
339
|
+
var g = p.enumerable, m = p.name !== void 0 ? p.name : c;
|
|
340
|
+
if (e(l) && n(l, m, p), p.global)
|
|
341
|
+
g ? u[c] = l : a(c, l);
|
|
342
|
+
else {
|
|
343
|
+
try {
|
|
344
|
+
p.unsafe ? u[c] && (g = !0) : delete u[c];
|
|
345
|
+
} catch {
|
|
346
|
+
}
|
|
347
|
+
g ? u[c] = l : r.f(u, c, { value: l, enumerable: !1, configurable: !p.nonConfigurable, writable: !p.nonWritable });
|
|
348
|
+
}
|
|
349
|
+
return u;
|
|
350
|
+
};
|
|
351
|
+
}, 3072: function(i, h, t) {
|
|
352
|
+
var e = t(7854), r = Object.defineProperty;
|
|
353
|
+
i.exports = function(n, a) {
|
|
354
|
+
try {
|
|
355
|
+
r(e, n, { value: a, configurable: !0, writable: !0 });
|
|
356
|
+
} catch {
|
|
357
|
+
e[n] = a;
|
|
358
|
+
}
|
|
359
|
+
return a;
|
|
360
|
+
};
|
|
361
|
+
}, 5117: function(i, h, t) {
|
|
362
|
+
var e = t(6330), r = TypeError;
|
|
363
|
+
i.exports = function(n, a) {
|
|
364
|
+
if (!delete n[a])
|
|
365
|
+
throw r("Cannot delete property " + e(a) + " of " + e(n));
|
|
366
|
+
};
|
|
367
|
+
}, 9781: function(i, h, t) {
|
|
368
|
+
var e = t(7293);
|
|
369
|
+
i.exports = !e(function() {
|
|
370
|
+
return Object.defineProperty({}, 1, { get: function() {
|
|
371
|
+
return 7;
|
|
372
|
+
} })[1] != 7;
|
|
373
|
+
});
|
|
374
|
+
}, 4154: function(i) {
|
|
375
|
+
var h = typeof document == "object" && document.all, t = h === void 0 && h !== void 0;
|
|
376
|
+
i.exports = { all: h, IS_HTMLDDA: t };
|
|
377
|
+
}, 317: function(i, h, t) {
|
|
378
|
+
var e = t(7854), r = t(111), n = e.document, a = r(n) && r(n.createElement);
|
|
379
|
+
i.exports = function(u) {
|
|
380
|
+
return a ? n.createElement(u) : {};
|
|
381
|
+
};
|
|
382
|
+
}, 7207: function(i) {
|
|
383
|
+
var h = TypeError;
|
|
384
|
+
i.exports = function(t) {
|
|
385
|
+
if (t > 9007199254740991)
|
|
386
|
+
throw h("Maximum allowed index exceeded");
|
|
387
|
+
return t;
|
|
388
|
+
};
|
|
389
|
+
}, 8324: function(i) {
|
|
390
|
+
i.exports = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 };
|
|
391
|
+
}, 8509: function(i, h, t) {
|
|
392
|
+
var e = t(317)("span").classList, r = e && e.constructor && e.constructor.prototype;
|
|
393
|
+
i.exports = r === Object.prototype ? void 0 : r;
|
|
394
|
+
}, 8886: function(i, h, t) {
|
|
395
|
+
var e = t(8113).match(/firefox\/(\d+)/i);
|
|
396
|
+
i.exports = !!e && +e[1];
|
|
397
|
+
}, 256: function(i, h, t) {
|
|
398
|
+
var e = t(8113);
|
|
399
|
+
i.exports = /MSIE|Trident/.test(e);
|
|
400
|
+
}, 5268: function(i, h, t) {
|
|
401
|
+
var e = t(4326);
|
|
402
|
+
i.exports = typeof process < "u" && e(process) == "process";
|
|
403
|
+
}, 8113: function(i) {
|
|
404
|
+
i.exports = typeof navigator < "u" && String(navigator.userAgent) || "";
|
|
405
|
+
}, 7392: function(i, h, t) {
|
|
406
|
+
var e, r, n = t(7854), a = t(8113), u = n.process, c = n.Deno, l = u && u.versions || c && c.version, p = l && l.v8;
|
|
407
|
+
p && (r = (e = p.split("."))[0] > 0 && e[0] < 4 ? 1 : +(e[0] + e[1])), !r && a && (!(e = a.match(/Edge\/(\d+)/)) || e[1] >= 74) && (e = a.match(/Chrome\/(\d+)/)) && (r = +e[1]), i.exports = r;
|
|
408
|
+
}, 8008: function(i, h, t) {
|
|
409
|
+
var e = t(8113).match(/AppleWebKit\/(\d+)\./);
|
|
410
|
+
i.exports = !!e && +e[1];
|
|
411
|
+
}, 748: function(i) {
|
|
412
|
+
i.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
|
|
413
|
+
}, 2109: function(i, h, t) {
|
|
414
|
+
var e = t(7854), r = t(1236).f, n = t(8880), a = t(8052), u = t(3072), c = t(9920), l = t(4705);
|
|
415
|
+
i.exports = function(p, g) {
|
|
416
|
+
var m, x, b, I, S, O = p.target, N = p.global, D = p.stat;
|
|
417
|
+
if (m = N ? e : D ? e[O] || u(O, {}) : (e[O] || {}).prototype)
|
|
418
|
+
for (x in g) {
|
|
419
|
+
if (I = g[x], b = p.dontCallGetSet ? (S = r(m, x)) && S.value : m[x], !l(N ? x : O + (D ? "." : "#") + x, p.forced) && b !== void 0) {
|
|
420
|
+
if (typeof I == typeof b)
|
|
421
|
+
continue;
|
|
422
|
+
c(I, b);
|
|
423
|
+
}
|
|
424
|
+
(p.sham || b && b.sham) && n(I, "sham", !0), a(m, x, I, p);
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
}, 7293: function(i) {
|
|
428
|
+
i.exports = function(h) {
|
|
429
|
+
try {
|
|
430
|
+
return !!h();
|
|
431
|
+
} catch {
|
|
432
|
+
return !0;
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
}, 7007: function(i, h, t) {
|
|
436
|
+
t(4916);
|
|
437
|
+
var e = t(1470), r = t(8052), n = t(2261), a = t(7293), u = t(5112), c = t(8880), l = u("species"), p = RegExp.prototype;
|
|
438
|
+
i.exports = function(g, m, x, b) {
|
|
439
|
+
var I = u(g), S = !a(function() {
|
|
440
|
+
var F = {};
|
|
441
|
+
return F[I] = function() {
|
|
442
|
+
return 7;
|
|
443
|
+
}, ""[g](F) != 7;
|
|
444
|
+
}), O = S && !a(function() {
|
|
445
|
+
var F = !1, T = /a/;
|
|
446
|
+
return g === "split" && ((T = {}).constructor = {}, T.constructor[l] = function() {
|
|
447
|
+
return T;
|
|
448
|
+
}, T.flags = "", T[I] = /./[I]), T.exec = function() {
|
|
449
|
+
return F = !0, null;
|
|
450
|
+
}, T[I](""), !F;
|
|
451
|
+
});
|
|
452
|
+
if (!S || !O || x) {
|
|
453
|
+
var N = e(/./[I]), D = m(I, ""[g], function(F, T, _, R, K) {
|
|
454
|
+
var j = e(F), z = T.exec;
|
|
455
|
+
return z === n || z === p.exec ? S && !K ? { done: !0, value: N(T, _, R) } : { done: !0, value: j(_, T, R) } : { done: !1 };
|
|
456
|
+
});
|
|
457
|
+
r(String.prototype, g, D[0]), r(p, I, D[1]);
|
|
458
|
+
}
|
|
459
|
+
b && c(p[I], "sham", !0);
|
|
460
|
+
};
|
|
461
|
+
}, 2104: function(i, h, t) {
|
|
462
|
+
var e = t(4374), r = Function.prototype, n = r.apply, a = r.call;
|
|
463
|
+
i.exports = typeof Reflect == "object" && Reflect.apply || (e ? a.bind(n) : function() {
|
|
464
|
+
return a.apply(n, arguments);
|
|
465
|
+
});
|
|
466
|
+
}, 9974: function(i, h, t) {
|
|
467
|
+
var e = t(1470), r = t(9662), n = t(4374), a = e(e.bind);
|
|
468
|
+
i.exports = function(u, c) {
|
|
469
|
+
return r(u), c === void 0 ? u : n ? a(u, c) : function() {
|
|
470
|
+
return u.apply(c, arguments);
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
}, 4374: function(i, h, t) {
|
|
474
|
+
var e = t(7293);
|
|
475
|
+
i.exports = !e(function() {
|
|
476
|
+
var r = function() {
|
|
477
|
+
}.bind();
|
|
478
|
+
return typeof r != "function" || r.hasOwnProperty("prototype");
|
|
479
|
+
});
|
|
480
|
+
}, 6916: function(i, h, t) {
|
|
481
|
+
var e = t(4374), r = Function.prototype.call;
|
|
482
|
+
i.exports = e ? r.bind(r) : function() {
|
|
483
|
+
return r.apply(r, arguments);
|
|
484
|
+
};
|
|
485
|
+
}, 6530: function(i, h, t) {
|
|
486
|
+
var e = t(9781), r = t(2597), n = Function.prototype, a = e && Object.getOwnPropertyDescriptor, u = r(n, "name"), c = u && function() {
|
|
487
|
+
}.name === "something", l = u && (!e || e && a(n, "name").configurable);
|
|
488
|
+
i.exports = { EXISTS: u, PROPER: c, CONFIGURABLE: l };
|
|
489
|
+
}, 1470: function(i, h, t) {
|
|
490
|
+
var e = t(4326), r = t(1702);
|
|
491
|
+
i.exports = function(n) {
|
|
492
|
+
if (e(n) === "Function")
|
|
493
|
+
return r(n);
|
|
494
|
+
};
|
|
495
|
+
}, 1702: function(i, h, t) {
|
|
496
|
+
var e = t(4374), r = Function.prototype, n = r.call, a = e && r.bind.bind(n, n);
|
|
497
|
+
i.exports = e ? a : function(u) {
|
|
498
|
+
return function() {
|
|
499
|
+
return n.apply(u, arguments);
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
}, 5005: function(i, h, t) {
|
|
503
|
+
var e = t(7854), r = t(614), n = function(a) {
|
|
504
|
+
return r(a) ? a : void 0;
|
|
505
|
+
};
|
|
506
|
+
i.exports = function(a, u) {
|
|
507
|
+
return arguments.length < 2 ? n(e[a]) : e[a] && e[a][u];
|
|
508
|
+
};
|
|
509
|
+
}, 1246: function(i, h, t) {
|
|
510
|
+
var e = t(648), r = t(8173), n = t(8554), a = t(7497), u = t(5112)("iterator");
|
|
511
|
+
i.exports = function(c) {
|
|
512
|
+
if (!n(c))
|
|
513
|
+
return r(c, u) || r(c, "@@iterator") || a[e(c)];
|
|
514
|
+
};
|
|
515
|
+
}, 4121: function(i, h, t) {
|
|
516
|
+
var e = t(6916), r = t(9662), n = t(9670), a = t(6330), u = t(1246), c = TypeError;
|
|
517
|
+
i.exports = function(l, p) {
|
|
518
|
+
var g = arguments.length < 2 ? u(l) : p;
|
|
519
|
+
if (r(g))
|
|
520
|
+
return n(e(g, l));
|
|
521
|
+
throw c(a(l) + " is not iterable");
|
|
522
|
+
};
|
|
523
|
+
}, 8173: function(i, h, t) {
|
|
524
|
+
var e = t(9662), r = t(8554);
|
|
525
|
+
i.exports = function(n, a) {
|
|
526
|
+
var u = n[a];
|
|
527
|
+
return r(u) ? void 0 : e(u);
|
|
528
|
+
};
|
|
529
|
+
}, 647: function(i, h, t) {
|
|
530
|
+
var e = t(1702), r = t(7908), n = Math.floor, a = e("".charAt), u = e("".replace), c = e("".slice), l = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, p = /\$([$&'`]|\d{1,2})/g;
|
|
531
|
+
i.exports = function(g, m, x, b, I, S) {
|
|
532
|
+
var O = x + g.length, N = b.length, D = p;
|
|
533
|
+
return I !== void 0 && (I = r(I), D = l), u(S, D, function(F, T) {
|
|
534
|
+
var _;
|
|
535
|
+
switch (a(T, 0)) {
|
|
536
|
+
case "$":
|
|
537
|
+
return "$";
|
|
538
|
+
case "&":
|
|
539
|
+
return g;
|
|
540
|
+
case "`":
|
|
541
|
+
return c(m, 0, x);
|
|
542
|
+
case "'":
|
|
543
|
+
return c(m, O);
|
|
544
|
+
case "<":
|
|
545
|
+
_ = I[c(T, 1, -1)];
|
|
546
|
+
break;
|
|
547
|
+
default:
|
|
548
|
+
var R = +T;
|
|
549
|
+
if (R === 0)
|
|
550
|
+
return F;
|
|
551
|
+
if (R > N) {
|
|
552
|
+
var K = n(R / 10);
|
|
553
|
+
return K === 0 ? F : K <= N ? b[K - 1] === void 0 ? a(T, 1) : b[K - 1] + a(T, 1) : F;
|
|
554
|
+
}
|
|
555
|
+
_ = b[R - 1];
|
|
556
|
+
}
|
|
557
|
+
return _ === void 0 ? "" : _;
|
|
558
|
+
});
|
|
559
|
+
};
|
|
560
|
+
}, 7854: function(i, h, t) {
|
|
561
|
+
var e = function(r) {
|
|
562
|
+
return r && r.Math == Math && r;
|
|
563
|
+
};
|
|
564
|
+
i.exports = e(typeof globalThis == "object" && globalThis) || e(typeof window == "object" && window) || e(typeof self == "object" && self) || e(typeof t.g == "object" && t.g) || function() {
|
|
565
|
+
return this;
|
|
566
|
+
}() || Function("return this")();
|
|
567
|
+
}, 2597: function(i, h, t) {
|
|
568
|
+
var e = t(1702), r = t(7908), n = e({}.hasOwnProperty);
|
|
569
|
+
i.exports = Object.hasOwn || function(a, u) {
|
|
570
|
+
return n(r(a), u);
|
|
571
|
+
};
|
|
572
|
+
}, 3501: function(i) {
|
|
573
|
+
i.exports = {};
|
|
574
|
+
}, 490: function(i, h, t) {
|
|
575
|
+
var e = t(5005);
|
|
576
|
+
i.exports = e("document", "documentElement");
|
|
577
|
+
}, 4664: function(i, h, t) {
|
|
578
|
+
var e = t(9781), r = t(7293), n = t(317);
|
|
579
|
+
i.exports = !e && !r(function() {
|
|
580
|
+
return Object.defineProperty(n("div"), "a", { get: function() {
|
|
581
|
+
return 7;
|
|
582
|
+
} }).a != 7;
|
|
583
|
+
});
|
|
584
|
+
}, 8361: function(i, h, t) {
|
|
585
|
+
var e = t(1702), r = t(7293), n = t(4326), a = Object, u = e("".split);
|
|
586
|
+
i.exports = r(function() {
|
|
587
|
+
return !a("z").propertyIsEnumerable(0);
|
|
588
|
+
}) ? function(c) {
|
|
589
|
+
return n(c) == "String" ? u(c, "") : a(c);
|
|
590
|
+
} : a;
|
|
591
|
+
}, 9587: function(i, h, t) {
|
|
592
|
+
var e = t(614), r = t(111), n = t(7674);
|
|
593
|
+
i.exports = function(a, u, c) {
|
|
594
|
+
var l, p;
|
|
595
|
+
return n && e(l = u.constructor) && l !== c && r(p = l.prototype) && p !== c.prototype && n(a, p), a;
|
|
596
|
+
};
|
|
597
|
+
}, 2788: function(i, h, t) {
|
|
598
|
+
var e = t(1702), r = t(614), n = t(5465), a = e(Function.toString);
|
|
599
|
+
r(n.inspectSource) || (n.inspectSource = function(u) {
|
|
600
|
+
return a(u);
|
|
601
|
+
}), i.exports = n.inspectSource;
|
|
602
|
+
}, 9909: function(i, h, t) {
|
|
603
|
+
var e, r, n, a = t(4811), u = t(7854), c = t(111), l = t(8880), p = t(2597), g = t(5465), m = t(6200), x = t(3501), b = "Object already initialized", I = u.TypeError, S = u.WeakMap;
|
|
604
|
+
if (a || g.state) {
|
|
605
|
+
var O = g.state || (g.state = new S());
|
|
606
|
+
O.get = O.get, O.has = O.has, O.set = O.set, e = function(D, F) {
|
|
607
|
+
if (O.has(D))
|
|
608
|
+
throw I(b);
|
|
609
|
+
return F.facade = D, O.set(D, F), F;
|
|
610
|
+
}, r = function(D) {
|
|
611
|
+
return O.get(D) || {};
|
|
612
|
+
}, n = function(D) {
|
|
613
|
+
return O.has(D);
|
|
614
|
+
};
|
|
615
|
+
} else {
|
|
616
|
+
var N = m("state");
|
|
617
|
+
x[N] = !0, e = function(D, F) {
|
|
618
|
+
if (p(D, N))
|
|
619
|
+
throw I(b);
|
|
620
|
+
return F.facade = D, l(D, N, F), F;
|
|
621
|
+
}, r = function(D) {
|
|
622
|
+
return p(D, N) ? D[N] : {};
|
|
623
|
+
}, n = function(D) {
|
|
624
|
+
return p(D, N);
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
i.exports = { set: e, get: r, has: n, enforce: function(D) {
|
|
628
|
+
return n(D) ? r(D) : e(D, {});
|
|
629
|
+
}, getterFor: function(D) {
|
|
630
|
+
return function(F) {
|
|
631
|
+
var T;
|
|
632
|
+
if (!c(F) || (T = r(F)).type !== D)
|
|
633
|
+
throw I("Incompatible receiver, " + D + " required");
|
|
634
|
+
return T;
|
|
635
|
+
};
|
|
636
|
+
} };
|
|
637
|
+
}, 7659: function(i, h, t) {
|
|
638
|
+
var e = t(5112), r = t(7497), n = e("iterator"), a = Array.prototype;
|
|
639
|
+
i.exports = function(u) {
|
|
640
|
+
return u !== void 0 && (r.Array === u || a[n] === u);
|
|
641
|
+
};
|
|
642
|
+
}, 3157: function(i, h, t) {
|
|
643
|
+
var e = t(4326);
|
|
644
|
+
i.exports = Array.isArray || function(r) {
|
|
645
|
+
return e(r) == "Array";
|
|
646
|
+
};
|
|
647
|
+
}, 614: function(i, h, t) {
|
|
648
|
+
var e = t(4154), r = e.all;
|
|
649
|
+
i.exports = e.IS_HTMLDDA ? function(n) {
|
|
650
|
+
return typeof n == "function" || n === r;
|
|
651
|
+
} : function(n) {
|
|
652
|
+
return typeof n == "function";
|
|
653
|
+
};
|
|
654
|
+
}, 4411: function(i, h, t) {
|
|
655
|
+
var e = t(1702), r = t(7293), n = t(614), a = t(648), u = t(5005), c = t(2788), l = function() {
|
|
656
|
+
}, p = [], g = u("Reflect", "construct"), m = /^\s*(?:class|function)\b/, x = e(m.exec), b = !m.exec(l), I = function(O) {
|
|
657
|
+
if (!n(O))
|
|
658
|
+
return !1;
|
|
659
|
+
try {
|
|
660
|
+
return g(l, p, O), !0;
|
|
661
|
+
} catch {
|
|
662
|
+
return !1;
|
|
663
|
+
}
|
|
664
|
+
}, S = function(O) {
|
|
665
|
+
if (!n(O))
|
|
666
|
+
return !1;
|
|
667
|
+
switch (a(O)) {
|
|
668
|
+
case "AsyncFunction":
|
|
669
|
+
case "GeneratorFunction":
|
|
670
|
+
case "AsyncGeneratorFunction":
|
|
671
|
+
return !1;
|
|
672
|
+
}
|
|
673
|
+
try {
|
|
674
|
+
return b || !!x(m, c(O));
|
|
675
|
+
} catch {
|
|
676
|
+
return !0;
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
S.sham = !0, i.exports = !g || r(function() {
|
|
680
|
+
var O;
|
|
681
|
+
return I(I.call) || !I(Object) || !I(function() {
|
|
682
|
+
O = !0;
|
|
683
|
+
}) || O;
|
|
684
|
+
}) ? S : I;
|
|
685
|
+
}, 4705: function(i, h, t) {
|
|
686
|
+
var e = t(7293), r = t(614), n = /#|\.prototype\./, a = function(g, m) {
|
|
687
|
+
var x = c[u(g)];
|
|
688
|
+
return x == p || x != l && (r(m) ? e(m) : !!m);
|
|
689
|
+
}, u = a.normalize = function(g) {
|
|
690
|
+
return String(g).replace(n, ".").toLowerCase();
|
|
691
|
+
}, c = a.data = {}, l = a.NATIVE = "N", p = a.POLYFILL = "P";
|
|
692
|
+
i.exports = a;
|
|
693
|
+
}, 5988: function(i, h, t) {
|
|
694
|
+
var e = t(111), r = Math.floor;
|
|
695
|
+
i.exports = Number.isInteger || function(n) {
|
|
696
|
+
return !e(n) && isFinite(n) && r(n) === n;
|
|
697
|
+
};
|
|
698
|
+
}, 8554: function(i) {
|
|
699
|
+
i.exports = function(h) {
|
|
700
|
+
return h == null;
|
|
701
|
+
};
|
|
702
|
+
}, 111: function(i, h, t) {
|
|
703
|
+
var e = t(614), r = t(4154), n = r.all;
|
|
704
|
+
i.exports = r.IS_HTMLDDA ? function(a) {
|
|
705
|
+
return typeof a == "object" ? a !== null : e(a) || a === n;
|
|
706
|
+
} : function(a) {
|
|
707
|
+
return typeof a == "object" ? a !== null : e(a);
|
|
708
|
+
};
|
|
709
|
+
}, 1913: function(i) {
|
|
710
|
+
i.exports = !1;
|
|
711
|
+
}, 7850: function(i, h, t) {
|
|
712
|
+
var e = t(111), r = t(4326), n = t(5112)("match");
|
|
713
|
+
i.exports = function(a) {
|
|
714
|
+
var u;
|
|
715
|
+
return e(a) && ((u = a[n]) !== void 0 ? !!u : r(a) == "RegExp");
|
|
716
|
+
};
|
|
717
|
+
}, 2190: function(i, h, t) {
|
|
718
|
+
var e = t(5005), r = t(614), n = t(7976), a = t(3307), u = Object;
|
|
719
|
+
i.exports = a ? function(c) {
|
|
720
|
+
return typeof c == "symbol";
|
|
721
|
+
} : function(c) {
|
|
722
|
+
var l = e("Symbol");
|
|
723
|
+
return r(l) && n(l.prototype, u(c));
|
|
724
|
+
};
|
|
725
|
+
}, 9212: function(i, h, t) {
|
|
726
|
+
var e = t(6916), r = t(9670), n = t(8173);
|
|
727
|
+
i.exports = function(a, u, c) {
|
|
728
|
+
var l, p;
|
|
729
|
+
r(a);
|
|
730
|
+
try {
|
|
731
|
+
if (!(l = n(a, "return"))) {
|
|
732
|
+
if (u === "throw")
|
|
733
|
+
throw c;
|
|
734
|
+
return c;
|
|
735
|
+
}
|
|
736
|
+
l = e(l, a);
|
|
737
|
+
} catch (g) {
|
|
738
|
+
p = !0, l = g;
|
|
739
|
+
}
|
|
740
|
+
if (u === "throw")
|
|
741
|
+
throw c;
|
|
742
|
+
if (p)
|
|
743
|
+
throw l;
|
|
744
|
+
return r(l), c;
|
|
745
|
+
};
|
|
746
|
+
}, 3061: function(i, h, t) {
|
|
747
|
+
var e = t(3383).IteratorPrototype, r = t(30), n = t(9114), a = t(8003), u = t(7497), c = function() {
|
|
748
|
+
return this;
|
|
749
|
+
};
|
|
750
|
+
i.exports = function(l, p, g, m) {
|
|
751
|
+
var x = p + " Iterator";
|
|
752
|
+
return l.prototype = r(e, { next: n(+!m, g) }), a(l, x, !1, !0), u[x] = c, l;
|
|
753
|
+
};
|
|
754
|
+
}, 1656: function(i, h, t) {
|
|
755
|
+
var e = t(2109), r = t(6916), n = t(1913), a = t(6530), u = t(614), c = t(3061), l = t(9518), p = t(7674), g = t(8003), m = t(8880), x = t(8052), b = t(5112), I = t(7497), S = t(3383), O = a.PROPER, N = a.CONFIGURABLE, D = S.IteratorPrototype, F = S.BUGGY_SAFARI_ITERATORS, T = b("iterator"), _ = "keys", R = "values", K = "entries", j = function() {
|
|
756
|
+
return this;
|
|
757
|
+
};
|
|
758
|
+
i.exports = function(z, U, Y, $, w, v, P) {
|
|
759
|
+
c(Y, U, $);
|
|
760
|
+
var o, s, f, d = function(k) {
|
|
761
|
+
if (k === w && A)
|
|
762
|
+
return A;
|
|
763
|
+
if (!F && k in E)
|
|
764
|
+
return E[k];
|
|
765
|
+
switch (k) {
|
|
766
|
+
case _:
|
|
767
|
+
case R:
|
|
768
|
+
case K:
|
|
769
|
+
return function() {
|
|
770
|
+
return new Y(this, k);
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
return function() {
|
|
774
|
+
return new Y(this);
|
|
775
|
+
};
|
|
776
|
+
}, y = U + " Iterator", M = !1, E = z.prototype, C = E[T] || E["@@iterator"] || w && E[w], A = !F && C || d(w), L = U == "Array" && E.entries || C;
|
|
777
|
+
if (L && (o = l(L.call(new z()))) !== Object.prototype && o.next && (n || l(o) === D || (p ? p(o, D) : u(o[T]) || x(o, T, j)), g(o, y, !0, !0), n && (I[y] = j)), O && w == R && C && C.name !== R && (!n && N ? m(E, "name", R) : (M = !0, A = function() {
|
|
778
|
+
return r(C, this);
|
|
779
|
+
})), w)
|
|
780
|
+
if (s = { values: d(R), keys: v ? A : d(_), entries: d(K) }, P)
|
|
781
|
+
for (f in s)
|
|
782
|
+
(F || M || !(f in E)) && x(E, f, s[f]);
|
|
783
|
+
else
|
|
784
|
+
e({ target: U, proto: !0, forced: F || M }, s);
|
|
785
|
+
return n && !P || E[T] === A || x(E, T, A, { name: w }), I[U] = A, s;
|
|
786
|
+
};
|
|
787
|
+
}, 3383: function(i, h, t) {
|
|
788
|
+
var e, r, n, a = t(7293), u = t(614), c = t(111), l = t(30), p = t(9518), g = t(8052), m = t(5112), x = t(1913), b = m("iterator"), I = !1;
|
|
789
|
+
[].keys && ("next" in (n = [].keys()) ? (r = p(p(n))) !== Object.prototype && (e = r) : I = !0), !c(e) || a(function() {
|
|
790
|
+
var S = {};
|
|
791
|
+
return e[b].call(S) !== S;
|
|
792
|
+
}) ? e = {} : x && (e = l(e)), u(e[b]) || g(e, b, function() {
|
|
793
|
+
return this;
|
|
794
|
+
}), i.exports = { IteratorPrototype: e, BUGGY_SAFARI_ITERATORS: I };
|
|
795
|
+
}, 7497: function(i) {
|
|
796
|
+
i.exports = {};
|
|
797
|
+
}, 6244: function(i, h, t) {
|
|
798
|
+
var e = t(7466);
|
|
799
|
+
i.exports = function(r) {
|
|
800
|
+
return e(r.length);
|
|
801
|
+
};
|
|
802
|
+
}, 6339: function(i, h, t) {
|
|
803
|
+
var e = t(1702), r = t(7293), n = t(614), a = t(2597), u = t(9781), c = t(6530).CONFIGURABLE, l = t(2788), p = t(9909), g = p.enforce, m = p.get, x = String, b = Object.defineProperty, I = e("".slice), S = e("".replace), O = e([].join), N = u && !r(function() {
|
|
804
|
+
return b(function() {
|
|
805
|
+
}, "length", { value: 8 }).length !== 8;
|
|
806
|
+
}), D = String(String).split("String"), F = i.exports = function(T, _, R) {
|
|
807
|
+
I(x(_), 0, 7) === "Symbol(" && (_ = "[" + S(x(_), /^Symbol\(([^)]*)\)/, "$1") + "]"), R && R.getter && (_ = "get " + _), R && R.setter && (_ = "set " + _), (!a(T, "name") || c && T.name !== _) && (u ? b(T, "name", { value: _, configurable: !0 }) : T.name = _), N && R && a(R, "arity") && T.length !== R.arity && b(T, "length", { value: R.arity });
|
|
808
|
+
try {
|
|
809
|
+
R && a(R, "constructor") && R.constructor ? u && b(T, "prototype", { writable: !1 }) : T.prototype && (T.prototype = void 0);
|
|
810
|
+
} catch {
|
|
811
|
+
}
|
|
812
|
+
var K = g(T);
|
|
813
|
+
return a(K, "source") || (K.source = O(D, typeof _ == "string" ? _ : "")), T;
|
|
814
|
+
};
|
|
815
|
+
Function.prototype.toString = F(function() {
|
|
816
|
+
return n(this) && m(this).source || l(this);
|
|
817
|
+
}, "toString");
|
|
818
|
+
}, 4758: function(i) {
|
|
819
|
+
var h = Math.ceil, t = Math.floor;
|
|
820
|
+
i.exports = Math.trunc || function(e) {
|
|
821
|
+
var r = +e;
|
|
822
|
+
return (r > 0 ? t : h)(r);
|
|
823
|
+
};
|
|
824
|
+
}, 3929: function(i, h, t) {
|
|
825
|
+
var e = t(7850), r = TypeError;
|
|
826
|
+
i.exports = function(n) {
|
|
827
|
+
if (e(n))
|
|
828
|
+
throw r("The method doesn't accept regular expressions");
|
|
829
|
+
return n;
|
|
830
|
+
};
|
|
831
|
+
}, 1574: function(i, h, t) {
|
|
832
|
+
var e = t(9781), r = t(1702), n = t(6916), a = t(7293), u = t(1956), c = t(5181), l = t(5296), p = t(7908), g = t(8361), m = Object.assign, x = Object.defineProperty, b = r([].concat);
|
|
833
|
+
i.exports = !m || a(function() {
|
|
834
|
+
if (e && m({ b: 1 }, m(x({}, "a", { enumerable: !0, get: function() {
|
|
835
|
+
x(this, "b", { value: 3, enumerable: !1 });
|
|
836
|
+
} }), { b: 2 })).b !== 1)
|
|
837
|
+
return !0;
|
|
838
|
+
var I = {}, S = {}, O = Symbol(), N = "abcdefghijklmnopqrst";
|
|
839
|
+
return I[O] = 7, N.split("").forEach(function(D) {
|
|
840
|
+
S[D] = D;
|
|
841
|
+
}), m({}, I)[O] != 7 || u(m({}, S)).join("") != N;
|
|
842
|
+
}) ? function(I, S) {
|
|
843
|
+
for (var O = p(I), N = arguments.length, D = 1, F = c.f, T = l.f; N > D; )
|
|
844
|
+
for (var _, R = g(arguments[D++]), K = F ? b(u(R), F(R)) : u(R), j = K.length, z = 0; j > z; )
|
|
845
|
+
_ = K[z++], e && !n(T, R, _) || (O[_] = R[_]);
|
|
846
|
+
return O;
|
|
847
|
+
} : m;
|
|
848
|
+
}, 30: function(i, h, t) {
|
|
849
|
+
var e, r = t(9670), n = t(6048), a = t(748), u = t(3501), c = t(490), l = t(317), p = t(6200), g = p("IE_PROTO"), m = function() {
|
|
850
|
+
}, x = function(S) {
|
|
851
|
+
return "<script>" + S + "<\/script>";
|
|
852
|
+
}, b = function(S) {
|
|
853
|
+
S.write(x("")), S.close();
|
|
854
|
+
var O = S.parentWindow.Object;
|
|
855
|
+
return S = null, O;
|
|
856
|
+
}, I = function() {
|
|
857
|
+
try {
|
|
858
|
+
e = new ActiveXObject("htmlfile");
|
|
859
|
+
} catch {
|
|
860
|
+
}
|
|
861
|
+
var S, O;
|
|
862
|
+
I = typeof document < "u" ? document.domain && e ? b(e) : ((O = l("iframe")).style.display = "none", c.appendChild(O), O.src = "javascript:", (S = O.contentWindow.document).open(), S.write(x("document.F=Object")), S.close(), S.F) : b(e);
|
|
863
|
+
for (var N = a.length; N--; )
|
|
864
|
+
delete I.prototype[a[N]];
|
|
865
|
+
return I();
|
|
866
|
+
};
|
|
867
|
+
u[g] = !0, i.exports = Object.create || function(S, O) {
|
|
868
|
+
var N;
|
|
869
|
+
return S !== null ? (m.prototype = r(S), N = new m(), m.prototype = null, N[g] = S) : N = I(), O === void 0 ? N : n.f(N, O);
|
|
870
|
+
};
|
|
871
|
+
}, 6048: function(i, h, t) {
|
|
872
|
+
var e = t(9781), r = t(3353), n = t(3070), a = t(9670), u = t(5656), c = t(1956);
|
|
873
|
+
h.f = e && !r ? Object.defineProperties : function(l, p) {
|
|
874
|
+
a(l);
|
|
875
|
+
for (var g, m = u(p), x = c(p), b = x.length, I = 0; b > I; )
|
|
876
|
+
n.f(l, g = x[I++], m[g]);
|
|
877
|
+
return l;
|
|
878
|
+
};
|
|
879
|
+
}, 3070: function(i, h, t) {
|
|
880
|
+
var e = t(9781), r = t(4664), n = t(3353), a = t(9670), u = t(4948), c = TypeError, l = Object.defineProperty, p = Object.getOwnPropertyDescriptor, g = "enumerable", m = "configurable", x = "writable";
|
|
881
|
+
h.f = e ? n ? function(b, I, S) {
|
|
882
|
+
if (a(b), I = u(I), a(S), typeof b == "function" && I === "prototype" && "value" in S && x in S && !S.writable) {
|
|
883
|
+
var O = p(b, I);
|
|
884
|
+
O && O.writable && (b[I] = S.value, S = { configurable: m in S ? S.configurable : O.configurable, enumerable: g in S ? S.enumerable : O.enumerable, writable: !1 });
|
|
885
|
+
}
|
|
886
|
+
return l(b, I, S);
|
|
887
|
+
} : l : function(b, I, S) {
|
|
888
|
+
if (a(b), I = u(I), a(S), r)
|
|
889
|
+
try {
|
|
890
|
+
return l(b, I, S);
|
|
891
|
+
} catch {
|
|
892
|
+
}
|
|
893
|
+
if ("get" in S || "set" in S)
|
|
894
|
+
throw c("Accessors not supported");
|
|
895
|
+
return "value" in S && (b[I] = S.value), b;
|
|
896
|
+
};
|
|
897
|
+
}, 1236: function(i, h, t) {
|
|
898
|
+
var e = t(9781), r = t(6916), n = t(5296), a = t(9114), u = t(5656), c = t(4948), l = t(2597), p = t(4664), g = Object.getOwnPropertyDescriptor;
|
|
899
|
+
h.f = e ? g : function(m, x) {
|
|
900
|
+
if (m = u(m), x = c(x), p)
|
|
901
|
+
try {
|
|
902
|
+
return g(m, x);
|
|
903
|
+
} catch {
|
|
904
|
+
}
|
|
905
|
+
if (l(m, x))
|
|
906
|
+
return a(!r(n.f, m, x), m[x]);
|
|
907
|
+
};
|
|
908
|
+
}, 1156: function(i, h, t) {
|
|
909
|
+
var e = t(4326), r = t(5656), n = t(8006).f, a = t(1589), u = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
|
|
910
|
+
i.exports.f = function(c) {
|
|
911
|
+
return u && e(c) == "Window" ? function(l) {
|
|
912
|
+
try {
|
|
913
|
+
return n(l);
|
|
914
|
+
} catch {
|
|
915
|
+
return a(u);
|
|
916
|
+
}
|
|
917
|
+
}(c) : n(r(c));
|
|
918
|
+
};
|
|
919
|
+
}, 8006: function(i, h, t) {
|
|
920
|
+
var e = t(6324), r = t(748).concat("length", "prototype");
|
|
921
|
+
h.f = Object.getOwnPropertyNames || function(n) {
|
|
922
|
+
return e(n, r);
|
|
923
|
+
};
|
|
924
|
+
}, 5181: function(i, h) {
|
|
925
|
+
h.f = Object.getOwnPropertySymbols;
|
|
926
|
+
}, 9518: function(i, h, t) {
|
|
927
|
+
var e = t(2597), r = t(614), n = t(7908), a = t(6200), u = t(8544), c = a("IE_PROTO"), l = Object, p = l.prototype;
|
|
928
|
+
i.exports = u ? l.getPrototypeOf : function(g) {
|
|
929
|
+
var m = n(g);
|
|
930
|
+
if (e(m, c))
|
|
931
|
+
return m[c];
|
|
932
|
+
var x = m.constructor;
|
|
933
|
+
return r(x) && m instanceof x ? x.prototype : m instanceof l ? p : null;
|
|
934
|
+
};
|
|
935
|
+
}, 7976: function(i, h, t) {
|
|
936
|
+
var e = t(1702);
|
|
937
|
+
i.exports = e({}.isPrototypeOf);
|
|
938
|
+
}, 6324: function(i, h, t) {
|
|
939
|
+
var e = t(1702), r = t(2597), n = t(5656), a = t(1318).indexOf, u = t(3501), c = e([].push);
|
|
940
|
+
i.exports = function(l, p) {
|
|
941
|
+
var g, m = n(l), x = 0, b = [];
|
|
942
|
+
for (g in m)
|
|
943
|
+
!r(u, g) && r(m, g) && c(b, g);
|
|
944
|
+
for (; p.length > x; )
|
|
945
|
+
r(m, g = p[x++]) && (~a(b, g) || c(b, g));
|
|
946
|
+
return b;
|
|
947
|
+
};
|
|
948
|
+
}, 1956: function(i, h, t) {
|
|
949
|
+
var e = t(6324), r = t(748);
|
|
950
|
+
i.exports = Object.keys || function(n) {
|
|
951
|
+
return e(n, r);
|
|
952
|
+
};
|
|
953
|
+
}, 5296: function(i, h) {
|
|
954
|
+
var t = {}.propertyIsEnumerable, e = Object.getOwnPropertyDescriptor, r = e && !t.call({ 1: 2 }, 1);
|
|
955
|
+
h.f = r ? function(n) {
|
|
956
|
+
var a = e(this, n);
|
|
957
|
+
return !!a && a.enumerable;
|
|
958
|
+
} : t;
|
|
959
|
+
}, 9026: function(i, h, t) {
|
|
960
|
+
var e = t(1913), r = t(7854), n = t(7293), a = t(8008);
|
|
961
|
+
i.exports = e || !n(function() {
|
|
962
|
+
if (!(a && a < 535)) {
|
|
963
|
+
var u = Math.random();
|
|
964
|
+
__defineSetter__.call(null, u, function() {
|
|
965
|
+
}), delete r[u];
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
}, 7674: function(i, h, t) {
|
|
969
|
+
var e = t(1702), r = t(9670), n = t(6077);
|
|
970
|
+
i.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
971
|
+
var a, u = !1, c = {};
|
|
972
|
+
try {
|
|
973
|
+
(a = e(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(c, []), u = c instanceof Array;
|
|
974
|
+
} catch {
|
|
975
|
+
}
|
|
976
|
+
return function(l, p) {
|
|
977
|
+
return r(l), n(p), u ? a(l, p) : l.__proto__ = p, l;
|
|
978
|
+
};
|
|
979
|
+
}() : void 0);
|
|
980
|
+
}, 288: function(i, h, t) {
|
|
981
|
+
var e = t(1694), r = t(648);
|
|
982
|
+
i.exports = e ? {}.toString : function() {
|
|
983
|
+
return "[object " + r(this) + "]";
|
|
984
|
+
};
|
|
985
|
+
}, 2140: function(i, h, t) {
|
|
986
|
+
var e = t(6916), r = t(614), n = t(111), a = TypeError;
|
|
987
|
+
i.exports = function(u, c) {
|
|
988
|
+
var l, p;
|
|
989
|
+
if (c === "string" && r(l = u.toString) && !n(p = e(l, u)) || r(l = u.valueOf) && !n(p = e(l, u)) || c !== "string" && r(l = u.toString) && !n(p = e(l, u)))
|
|
990
|
+
return p;
|
|
991
|
+
throw a("Can't convert object to primitive value");
|
|
992
|
+
};
|
|
993
|
+
}, 3887: function(i, h, t) {
|
|
994
|
+
var e = t(5005), r = t(1702), n = t(8006), a = t(5181), u = t(9670), c = r([].concat);
|
|
995
|
+
i.exports = e("Reflect", "ownKeys") || function(l) {
|
|
996
|
+
var p = n.f(u(l)), g = a.f;
|
|
997
|
+
return g ? c(p, g(l)) : p;
|
|
998
|
+
};
|
|
999
|
+
}, 857: function(i, h, t) {
|
|
1000
|
+
var e = t(7854);
|
|
1001
|
+
i.exports = e;
|
|
1002
|
+
}, 2626: function(i, h, t) {
|
|
1003
|
+
var e = t(3070).f;
|
|
1004
|
+
i.exports = function(r, n, a) {
|
|
1005
|
+
a in r || e(r, a, { configurable: !0, get: function() {
|
|
1006
|
+
return n[a];
|
|
1007
|
+
}, set: function(u) {
|
|
1008
|
+
n[a] = u;
|
|
1009
|
+
} });
|
|
1010
|
+
};
|
|
1011
|
+
}, 7651: function(i, h, t) {
|
|
1012
|
+
var e = t(6916), r = t(9670), n = t(614), a = t(4326), u = t(2261), c = TypeError;
|
|
1013
|
+
i.exports = function(l, p) {
|
|
1014
|
+
var g = l.exec;
|
|
1015
|
+
if (n(g)) {
|
|
1016
|
+
var m = e(g, l, p);
|
|
1017
|
+
return m !== null && r(m), m;
|
|
1018
|
+
}
|
|
1019
|
+
if (a(l) === "RegExp")
|
|
1020
|
+
return e(u, l, p);
|
|
1021
|
+
throw c("RegExp#exec called on incompatible receiver");
|
|
1022
|
+
};
|
|
1023
|
+
}, 2261: function(i, h, t) {
|
|
1024
|
+
var e, r, n = t(6916), a = t(1702), u = t(1340), c = t(7066), l = t(2999), p = t(2309), g = t(30), m = t(9909).get, x = t(9441), b = t(7168), I = p("native-string-replace", String.prototype.replace), S = RegExp.prototype.exec, O = S, N = a("".charAt), D = a("".indexOf), F = a("".replace), T = a("".slice), _ = (r = /b*/g, n(S, e = /a/, "a"), n(S, r, "a"), e.lastIndex !== 0 || r.lastIndex !== 0), R = l.BROKEN_CARET, K = /()??/.exec("")[1] !== void 0;
|
|
1025
|
+
(_ || K || R || x || b) && (O = function(j) {
|
|
1026
|
+
var z, U, Y, $, w, v, P, o = this, s = m(o), f = u(j), d = s.raw;
|
|
1027
|
+
if (d)
|
|
1028
|
+
return d.lastIndex = o.lastIndex, z = n(O, d, f), o.lastIndex = d.lastIndex, z;
|
|
1029
|
+
var y = s.groups, M = R && o.sticky, E = n(c, o), C = o.source, A = 0, L = f;
|
|
1030
|
+
if (M && (E = F(E, "y", ""), D(E, "g") === -1 && (E += "g"), L = T(f, o.lastIndex), o.lastIndex > 0 && (!o.multiline || o.multiline && N(f, o.lastIndex - 1) !== `
|
|
1031
|
+
`) && (C = "(?: " + C + ")", L = " " + L, A++), U = new RegExp("^(?:" + C + ")", E)), K && (U = new RegExp("^" + C + "$(?!\\s)", E)), _ && (Y = o.lastIndex), $ = n(S, M ? U : o, L), M ? $ ? ($.input = T($.input, A), $[0] = T($[0], A), $.index = o.lastIndex, o.lastIndex += $[0].length) : o.lastIndex = 0 : _ && $ && (o.lastIndex = o.global ? $.index + $[0].length : Y), K && $ && $.length > 1 && n(I, $[0], U, function() {
|
|
1032
|
+
for (w = 1; w < arguments.length - 2; w++)
|
|
1033
|
+
arguments[w] === void 0 && ($[w] = void 0);
|
|
1034
|
+
}), $ && y)
|
|
1035
|
+
for ($.groups = v = g(null), w = 0; w < y.length; w++)
|
|
1036
|
+
v[(P = y[w])[0]] = $[P[1]];
|
|
1037
|
+
return $;
|
|
1038
|
+
}), i.exports = O;
|
|
1039
|
+
}, 7066: function(i, h, t) {
|
|
1040
|
+
var e = t(9670);
|
|
1041
|
+
i.exports = function() {
|
|
1042
|
+
var r = e(this), n = "";
|
|
1043
|
+
return r.hasIndices && (n += "d"), r.global && (n += "g"), r.ignoreCase && (n += "i"), r.multiline && (n += "m"), r.dotAll && (n += "s"), r.unicode && (n += "u"), r.unicodeSets && (n += "v"), r.sticky && (n += "y"), n;
|
|
1044
|
+
};
|
|
1045
|
+
}, 4706: function(i, h, t) {
|
|
1046
|
+
var e = t(6916), r = t(2597), n = t(7976), a = t(7066), u = RegExp.prototype;
|
|
1047
|
+
i.exports = function(c) {
|
|
1048
|
+
var l = c.flags;
|
|
1049
|
+
return l !== void 0 || "flags" in u || r(c, "flags") || !n(u, c) ? l : e(a, c);
|
|
1050
|
+
};
|
|
1051
|
+
}, 2999: function(i, h, t) {
|
|
1052
|
+
var e = t(7293), r = t(7854).RegExp, n = e(function() {
|
|
1053
|
+
var c = r("a", "y");
|
|
1054
|
+
return c.lastIndex = 2, c.exec("abcd") != null;
|
|
1055
|
+
}), a = n || e(function() {
|
|
1056
|
+
return !r("a", "y").sticky;
|
|
1057
|
+
}), u = n || e(function() {
|
|
1058
|
+
var c = r("^r", "gy");
|
|
1059
|
+
return c.lastIndex = 2, c.exec("str") != null;
|
|
1060
|
+
});
|
|
1061
|
+
i.exports = { BROKEN_CARET: u, MISSED_STICKY: a, UNSUPPORTED_Y: n };
|
|
1062
|
+
}, 9441: function(i, h, t) {
|
|
1063
|
+
var e = t(7293), r = t(7854).RegExp;
|
|
1064
|
+
i.exports = e(function() {
|
|
1065
|
+
var n = r(".", "s");
|
|
1066
|
+
return !(n.dotAll && n.exec(`
|
|
1067
|
+
`) && n.flags === "s");
|
|
1068
|
+
});
|
|
1069
|
+
}, 7168: function(i, h, t) {
|
|
1070
|
+
var e = t(7293), r = t(7854).RegExp;
|
|
1071
|
+
i.exports = e(function() {
|
|
1072
|
+
var n = r("(?<a>b)", "g");
|
|
1073
|
+
return n.exec("b").groups.a !== "b" || "b".replace(n, "$<a>c") !== "bc";
|
|
1074
|
+
});
|
|
1075
|
+
}, 4488: function(i, h, t) {
|
|
1076
|
+
var e = t(8554), r = TypeError;
|
|
1077
|
+
i.exports = function(n) {
|
|
1078
|
+
if (e(n))
|
|
1079
|
+
throw r("Can't call method on " + n);
|
|
1080
|
+
return n;
|
|
1081
|
+
};
|
|
1082
|
+
}, 6340: function(i, h, t) {
|
|
1083
|
+
var e = t(5005), r = t(3070), n = t(5112), a = t(9781), u = n("species");
|
|
1084
|
+
i.exports = function(c) {
|
|
1085
|
+
var l = e(c), p = r.f;
|
|
1086
|
+
a && l && !l[u] && p(l, u, { configurable: !0, get: function() {
|
|
1087
|
+
return this;
|
|
1088
|
+
} });
|
|
1089
|
+
};
|
|
1090
|
+
}, 8003: function(i, h, t) {
|
|
1091
|
+
var e = t(3070).f, r = t(2597), n = t(5112)("toStringTag");
|
|
1092
|
+
i.exports = function(a, u, c) {
|
|
1093
|
+
a && !c && (a = a.prototype), a && !r(a, n) && e(a, n, { configurable: !0, value: u });
|
|
1094
|
+
};
|
|
1095
|
+
}, 6200: function(i, h, t) {
|
|
1096
|
+
var e = t(2309), r = t(9711), n = e("keys");
|
|
1097
|
+
i.exports = function(a) {
|
|
1098
|
+
return n[a] || (n[a] = r(a));
|
|
1099
|
+
};
|
|
1100
|
+
}, 5465: function(i, h, t) {
|
|
1101
|
+
var e = t(7854), r = t(3072), n = "__core-js_shared__", a = e[n] || r(n, {});
|
|
1102
|
+
i.exports = a;
|
|
1103
|
+
}, 2309: function(i, h, t) {
|
|
1104
|
+
var e = t(1913), r = t(5465);
|
|
1105
|
+
(i.exports = function(n, a) {
|
|
1106
|
+
return r[n] || (r[n] = a !== void 0 ? a : {});
|
|
1107
|
+
})("versions", []).push({ version: "3.27.2", mode: e ? "pure" : "global", copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE", source: "https://github.com/zloirock/core-js" });
|
|
1108
|
+
}, 6707: function(i, h, t) {
|
|
1109
|
+
var e = t(9670), r = t(9483), n = t(8554), a = t(5112)("species");
|
|
1110
|
+
i.exports = function(u, c) {
|
|
1111
|
+
var l, p = e(u).constructor;
|
|
1112
|
+
return p === void 0 || n(l = e(p)[a]) ? c : r(l);
|
|
1113
|
+
};
|
|
1114
|
+
}, 8710: function(i, h, t) {
|
|
1115
|
+
var e = t(1702), r = t(9303), n = t(1340), a = t(4488), u = e("".charAt), c = e("".charCodeAt), l = e("".slice), p = function(g) {
|
|
1116
|
+
return function(m, x) {
|
|
1117
|
+
var b, I, S = n(a(m)), O = r(x), N = S.length;
|
|
1118
|
+
return O < 0 || O >= N ? g ? "" : void 0 : (b = c(S, O)) < 55296 || b > 56319 || O + 1 === N || (I = c(S, O + 1)) < 56320 || I > 57343 ? g ? u(S, O) : b : g ? l(S, O, O + 2) : I - 56320 + (b - 55296 << 10) + 65536;
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
i.exports = { codeAt: p(!1), charAt: p(!0) };
|
|
1122
|
+
}, 6091: function(i, h, t) {
|
|
1123
|
+
var e = t(6530).PROPER, r = t(7293), n = t(1361);
|
|
1124
|
+
i.exports = function(a) {
|
|
1125
|
+
return r(function() {
|
|
1126
|
+
return !!n[a]() || "
"[a]() !== "
" || e && n[a].name !== a;
|
|
1127
|
+
});
|
|
1128
|
+
};
|
|
1129
|
+
}, 3111: function(i, h, t) {
|
|
1130
|
+
var e = t(1702), r = t(4488), n = t(1340), a = t(1361), u = e("".replace), c = "[" + a + "]", l = RegExp("^" + c + c + "*"), p = RegExp(c + c + "*$"), g = function(m) {
|
|
1131
|
+
return function(x) {
|
|
1132
|
+
var b = n(r(x));
|
|
1133
|
+
return 1 & m && (b = u(b, l, "")), 2 & m && (b = u(b, p, "")), b;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
i.exports = { start: g(1), end: g(2), trim: g(3) };
|
|
1137
|
+
}, 6293: function(i, h, t) {
|
|
1138
|
+
var e = t(7392), r = t(7293);
|
|
1139
|
+
i.exports = !!Object.getOwnPropertySymbols && !r(function() {
|
|
1140
|
+
var n = Symbol();
|
|
1141
|
+
return !String(n) || !(Object(n) instanceof Symbol) || !Symbol.sham && e && e < 41;
|
|
1142
|
+
});
|
|
1143
|
+
}, 6532: function(i, h, t) {
|
|
1144
|
+
var e = t(6916), r = t(5005), n = t(5112), a = t(8052);
|
|
1145
|
+
i.exports = function() {
|
|
1146
|
+
var u = r("Symbol"), c = u && u.prototype, l = c && c.valueOf, p = n("toPrimitive");
|
|
1147
|
+
c && !c[p] && a(c, p, function(g) {
|
|
1148
|
+
return e(l, this);
|
|
1149
|
+
}, { arity: 1 });
|
|
1150
|
+
};
|
|
1151
|
+
}, 2015: function(i, h, t) {
|
|
1152
|
+
var e = t(6293);
|
|
1153
|
+
i.exports = e && !!Symbol.for && !!Symbol.keyFor;
|
|
1154
|
+
}, 863: function(i, h, t) {
|
|
1155
|
+
var e = t(1702);
|
|
1156
|
+
i.exports = e(1 .valueOf);
|
|
1157
|
+
}, 1400: function(i, h, t) {
|
|
1158
|
+
var e = t(9303), r = Math.max, n = Math.min;
|
|
1159
|
+
i.exports = function(a, u) {
|
|
1160
|
+
var c = e(a);
|
|
1161
|
+
return c < 0 ? r(c + u, 0) : n(c, u);
|
|
1162
|
+
};
|
|
1163
|
+
}, 5656: function(i, h, t) {
|
|
1164
|
+
var e = t(8361), r = t(4488);
|
|
1165
|
+
i.exports = function(n) {
|
|
1166
|
+
return e(r(n));
|
|
1167
|
+
};
|
|
1168
|
+
}, 9303: function(i, h, t) {
|
|
1169
|
+
var e = t(4758);
|
|
1170
|
+
i.exports = function(r) {
|
|
1171
|
+
var n = +r;
|
|
1172
|
+
return n != n || n === 0 ? 0 : e(n);
|
|
1173
|
+
};
|
|
1174
|
+
}, 7466: function(i, h, t) {
|
|
1175
|
+
var e = t(9303), r = Math.min;
|
|
1176
|
+
i.exports = function(n) {
|
|
1177
|
+
return n > 0 ? r(e(n), 9007199254740991) : 0;
|
|
1178
|
+
};
|
|
1179
|
+
}, 7908: function(i, h, t) {
|
|
1180
|
+
var e = t(4488), r = Object;
|
|
1181
|
+
i.exports = function(n) {
|
|
1182
|
+
return r(e(n));
|
|
1183
|
+
};
|
|
1184
|
+
}, 7593: function(i, h, t) {
|
|
1185
|
+
var e = t(6916), r = t(111), n = t(2190), a = t(8173), u = t(2140), c = t(5112), l = TypeError, p = c("toPrimitive");
|
|
1186
|
+
i.exports = function(g, m) {
|
|
1187
|
+
if (!r(g) || n(g))
|
|
1188
|
+
return g;
|
|
1189
|
+
var x, b = a(g, p);
|
|
1190
|
+
if (b) {
|
|
1191
|
+
if (m === void 0 && (m = "default"), x = e(b, g, m), !r(x) || n(x))
|
|
1192
|
+
return x;
|
|
1193
|
+
throw l("Can't convert object to primitive value");
|
|
1194
|
+
}
|
|
1195
|
+
return m === void 0 && (m = "number"), u(g, m);
|
|
1196
|
+
};
|
|
1197
|
+
}, 4948: function(i, h, t) {
|
|
1198
|
+
var e = t(7593), r = t(2190);
|
|
1199
|
+
i.exports = function(n) {
|
|
1200
|
+
var a = e(n, "string");
|
|
1201
|
+
return r(a) ? a : a + "";
|
|
1202
|
+
};
|
|
1203
|
+
}, 1694: function(i, h, t) {
|
|
1204
|
+
var e = {};
|
|
1205
|
+
e[t(5112)("toStringTag")] = "z", i.exports = String(e) === "[object z]";
|
|
1206
|
+
}, 1340: function(i, h, t) {
|
|
1207
|
+
var e = t(648), r = String;
|
|
1208
|
+
i.exports = function(n) {
|
|
1209
|
+
if (e(n) === "Symbol")
|
|
1210
|
+
throw TypeError("Cannot convert a Symbol value to a string");
|
|
1211
|
+
return r(n);
|
|
1212
|
+
};
|
|
1213
|
+
}, 6330: function(i) {
|
|
1214
|
+
var h = String;
|
|
1215
|
+
i.exports = function(t) {
|
|
1216
|
+
try {
|
|
1217
|
+
return h(t);
|
|
1218
|
+
} catch {
|
|
1219
|
+
return "Object";
|
|
1220
|
+
}
|
|
1221
|
+
};
|
|
1222
|
+
}, 9711: function(i, h, t) {
|
|
1223
|
+
var e = t(1702), r = 0, n = Math.random(), a = e(1 .toString);
|
|
1224
|
+
i.exports = function(u) {
|
|
1225
|
+
return "Symbol(" + (u === void 0 ? "" : u) + ")_" + a(++r + n, 36);
|
|
1226
|
+
};
|
|
1227
|
+
}, 3307: function(i, h, t) {
|
|
1228
|
+
var e = t(6293);
|
|
1229
|
+
i.exports = e && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
1230
|
+
}, 3353: function(i, h, t) {
|
|
1231
|
+
var e = t(9781), r = t(7293);
|
|
1232
|
+
i.exports = e && r(function() {
|
|
1233
|
+
return Object.defineProperty(function() {
|
|
1234
|
+
}, "prototype", { value: 42, writable: !1 }).prototype != 42;
|
|
1235
|
+
});
|
|
1236
|
+
}, 4811: function(i, h, t) {
|
|
1237
|
+
var e = t(7854), r = t(614), n = e.WeakMap;
|
|
1238
|
+
i.exports = r(n) && /native code/.test(String(n));
|
|
1239
|
+
}, 6800: function(i, h, t) {
|
|
1240
|
+
var e = t(857), r = t(2597), n = t(6061), a = t(3070).f;
|
|
1241
|
+
i.exports = function(u) {
|
|
1242
|
+
var c = e.Symbol || (e.Symbol = {});
|
|
1243
|
+
r(c, u) || a(c, u, { value: n.f(u) });
|
|
1244
|
+
};
|
|
1245
|
+
}, 6061: function(i, h, t) {
|
|
1246
|
+
var e = t(5112);
|
|
1247
|
+
h.f = e;
|
|
1248
|
+
}, 5112: function(i, h, t) {
|
|
1249
|
+
var e = t(7854), r = t(2309), n = t(2597), a = t(9711), u = t(6293), c = t(3307), l = e.Symbol, p = r("wks"), g = c ? l.for || l : l && l.withoutSetter || a;
|
|
1250
|
+
i.exports = function(m) {
|
|
1251
|
+
return n(p, m) || (p[m] = u && n(l, m) ? l[m] : g("Symbol." + m)), p[m];
|
|
1252
|
+
};
|
|
1253
|
+
}, 1361: function(i) {
|
|
1254
|
+
i.exports = `
|
|
1255
|
+
\v\f\r \u2028\u2029\uFEFF`;
|
|
1256
|
+
}, 2222: function(i, h, t) {
|
|
1257
|
+
var e = t(2109), r = t(7293), n = t(3157), a = t(111), u = t(7908), c = t(6244), l = t(7207), p = t(6135), g = t(5417), m = t(1194), x = t(5112), b = t(7392), I = x("isConcatSpreadable"), S = b >= 51 || !r(function() {
|
|
1258
|
+
var N = [];
|
|
1259
|
+
return N[I] = !1, N.concat()[0] !== N;
|
|
1260
|
+
}), O = function(N) {
|
|
1261
|
+
if (!a(N))
|
|
1262
|
+
return !1;
|
|
1263
|
+
var D = N[I];
|
|
1264
|
+
return D !== void 0 ? !!D : n(N);
|
|
1265
|
+
};
|
|
1266
|
+
e({ target: "Array", proto: !0, arity: 1, forced: !S || !m("concat") }, { concat: function(N) {
|
|
1267
|
+
var D, F, T, _, R, K = u(this), j = g(K, 0), z = 0;
|
|
1268
|
+
for (D = -1, T = arguments.length; D < T; D++)
|
|
1269
|
+
if (O(R = D === -1 ? K : arguments[D]))
|
|
1270
|
+
for (_ = c(R), l(z + _), F = 0; F < _; F++, z++)
|
|
1271
|
+
F in R && p(j, z, R[F]);
|
|
1272
|
+
else
|
|
1273
|
+
l(z + 1), p(j, z++, R);
|
|
1274
|
+
return j.length = z, j;
|
|
1275
|
+
} });
|
|
1276
|
+
}, 7327: function(i, h, t) {
|
|
1277
|
+
var e = t(2109), r = t(2092).filter;
|
|
1278
|
+
e({ target: "Array", proto: !0, forced: !t(1194)("filter") }, { filter: function(n) {
|
|
1279
|
+
return r(this, n, arguments.length > 1 ? arguments[1] : void 0);
|
|
1280
|
+
} });
|
|
1281
|
+
}, 1038: function(i, h, t) {
|
|
1282
|
+
var e = t(2109), r = t(8457);
|
|
1283
|
+
e({ target: "Array", stat: !0, forced: !t(7072)(function(n) {
|
|
1284
|
+
Array.from(n);
|
|
1285
|
+
}) }, { from: r });
|
|
1286
|
+
}, 6699: function(i, h, t) {
|
|
1287
|
+
var e = t(2109), r = t(1318).includes, n = t(7293), a = t(1223);
|
|
1288
|
+
e({ target: "Array", proto: !0, forced: n(function() {
|
|
1289
|
+
return !Array(1).includes();
|
|
1290
|
+
}) }, { includes: function(u) {
|
|
1291
|
+
return r(this, u, arguments.length > 1 ? arguments[1] : void 0);
|
|
1292
|
+
} }), a("includes");
|
|
1293
|
+
}, 2772: function(i, h, t) {
|
|
1294
|
+
var e = t(2109), r = t(1470), n = t(1318).indexOf, a = t(9341), u = r([].indexOf), c = !!u && 1 / u([1], 1, -0) < 0;
|
|
1295
|
+
e({ target: "Array", proto: !0, forced: c || !a("indexOf") }, { indexOf: function(l) {
|
|
1296
|
+
var p = arguments.length > 1 ? arguments[1] : void 0;
|
|
1297
|
+
return c ? u(this, l, p) || 0 : n(this, l, p);
|
|
1298
|
+
} });
|
|
1299
|
+
}, 6992: function(i, h, t) {
|
|
1300
|
+
var e = t(5656), r = t(1223), n = t(7497), a = t(9909), u = t(3070).f, c = t(1656), l = t(6178), p = t(1913), g = t(9781), m = "Array Iterator", x = a.set, b = a.getterFor(m);
|
|
1301
|
+
i.exports = c(Array, "Array", function(S, O) {
|
|
1302
|
+
x(this, { type: m, target: e(S), index: 0, kind: O });
|
|
1303
|
+
}, function() {
|
|
1304
|
+
var S = b(this), O = S.target, N = S.kind, D = S.index++;
|
|
1305
|
+
return !O || D >= O.length ? (S.target = void 0, l(void 0, !0)) : l(N == "keys" ? D : N == "values" ? O[D] : [D, O[D]], !1);
|
|
1306
|
+
}, "values");
|
|
1307
|
+
var I = n.Arguments = n.Array;
|
|
1308
|
+
if (r("keys"), r("values"), r("entries"), !p && g && I.name !== "values")
|
|
1309
|
+
try {
|
|
1310
|
+
u(I, "name", { value: "values" });
|
|
1311
|
+
} catch {
|
|
1312
|
+
}
|
|
1313
|
+
}, 9600: function(i, h, t) {
|
|
1314
|
+
var e = t(2109), r = t(1702), n = t(8361), a = t(5656), u = t(9341), c = r([].join);
|
|
1315
|
+
e({ target: "Array", proto: !0, forced: n != Object || !u("join", ",") }, { join: function(l) {
|
|
1316
|
+
return c(a(this), l === void 0 ? "," : l);
|
|
1317
|
+
} });
|
|
1318
|
+
}, 1249: function(i, h, t) {
|
|
1319
|
+
var e = t(2109), r = t(2092).map;
|
|
1320
|
+
e({ target: "Array", proto: !0, forced: !t(1194)("map") }, { map: function(n) {
|
|
1321
|
+
return r(this, n, arguments.length > 1 ? arguments[1] : void 0);
|
|
1322
|
+
} });
|
|
1323
|
+
}, 5827: function(i, h, t) {
|
|
1324
|
+
var e = t(2109), r = t(3671).left, n = t(9341), a = t(7392);
|
|
1325
|
+
e({ target: "Array", proto: !0, forced: !t(5268) && a > 79 && a < 83 || !n("reduce") }, { reduce: function(u) {
|
|
1326
|
+
var c = arguments.length;
|
|
1327
|
+
return r(this, u, c, c > 1 ? arguments[1] : void 0);
|
|
1328
|
+
} });
|
|
1329
|
+
}, 7042: function(i, h, t) {
|
|
1330
|
+
var e = t(2109), r = t(3157), n = t(4411), a = t(111), u = t(1400), c = t(6244), l = t(5656), p = t(6135), g = t(5112), m = t(1194), x = t(206), b = m("slice"), I = g("species"), S = Array, O = Math.max;
|
|
1331
|
+
e({ target: "Array", proto: !0, forced: !b }, { slice: function(N, D) {
|
|
1332
|
+
var F, T, _, R = l(this), K = c(R), j = u(N, K), z = u(D === void 0 ? K : D, K);
|
|
1333
|
+
if (r(R) && (F = R.constructor, (n(F) && (F === S || r(F.prototype)) || a(F) && (F = F[I]) === null) && (F = void 0), F === S || F === void 0))
|
|
1334
|
+
return x(R, j, z);
|
|
1335
|
+
for (T = new (F === void 0 ? S : F)(O(z - j, 0)), _ = 0; j < z; j++, _++)
|
|
1336
|
+
j in R && p(T, _, R[j]);
|
|
1337
|
+
return T.length = _, T;
|
|
1338
|
+
} });
|
|
1339
|
+
}, 2707: function(i, h, t) {
|
|
1340
|
+
var e = t(2109), r = t(1702), n = t(9662), a = t(7908), u = t(6244), c = t(5117), l = t(1340), p = t(7293), g = t(4362), m = t(9341), x = t(8886), b = t(256), I = t(7392), S = t(8008), O = [], N = r(O.sort), D = r(O.push), F = p(function() {
|
|
1341
|
+
O.sort(void 0);
|
|
1342
|
+
}), T = p(function() {
|
|
1343
|
+
O.sort(null);
|
|
1344
|
+
}), _ = m("sort"), R = !p(function() {
|
|
1345
|
+
if (I)
|
|
1346
|
+
return I < 70;
|
|
1347
|
+
if (!(x && x > 3)) {
|
|
1348
|
+
if (b)
|
|
1349
|
+
return !0;
|
|
1350
|
+
if (S)
|
|
1351
|
+
return S < 603;
|
|
1352
|
+
var K, j, z, U, Y = "";
|
|
1353
|
+
for (K = 65; K < 76; K++) {
|
|
1354
|
+
switch (j = String.fromCharCode(K), K) {
|
|
1355
|
+
case 66:
|
|
1356
|
+
case 69:
|
|
1357
|
+
case 70:
|
|
1358
|
+
case 72:
|
|
1359
|
+
z = 3;
|
|
1360
|
+
break;
|
|
1361
|
+
case 68:
|
|
1362
|
+
case 71:
|
|
1363
|
+
z = 4;
|
|
1364
|
+
break;
|
|
1365
|
+
default:
|
|
1366
|
+
z = 2;
|
|
1367
|
+
}
|
|
1368
|
+
for (U = 0; U < 47; U++)
|
|
1369
|
+
O.push({ k: j + U, v: z });
|
|
1370
|
+
}
|
|
1371
|
+
for (O.sort(function($, w) {
|
|
1372
|
+
return w.v - $.v;
|
|
1373
|
+
}), U = 0; U < O.length; U++)
|
|
1374
|
+
j = O[U].k.charAt(0), Y.charAt(Y.length - 1) !== j && (Y += j);
|
|
1375
|
+
return Y !== "DGBEFHACIJK";
|
|
1376
|
+
}
|
|
1377
|
+
});
|
|
1378
|
+
e({ target: "Array", proto: !0, forced: F || !T || !_ || !R }, { sort: function(K) {
|
|
1379
|
+
K !== void 0 && n(K);
|
|
1380
|
+
var j = a(this);
|
|
1381
|
+
if (R)
|
|
1382
|
+
return K === void 0 ? N(j) : N(j, K);
|
|
1383
|
+
var z, U, Y = [], $ = u(j);
|
|
1384
|
+
for (U = 0; U < $; U++)
|
|
1385
|
+
U in j && D(Y, j[U]);
|
|
1386
|
+
for (g(Y, function(w) {
|
|
1387
|
+
return function(v, P) {
|
|
1388
|
+
return P === void 0 ? -1 : v === void 0 ? 1 : w !== void 0 ? +w(v, P) || 0 : l(v) > l(P) ? 1 : -1;
|
|
1389
|
+
};
|
|
1390
|
+
}(K)), z = u(Y), U = 0; U < z; )
|
|
1391
|
+
j[U] = Y[U++];
|
|
1392
|
+
for (; U < $; )
|
|
1393
|
+
c(j, U++);
|
|
1394
|
+
return j;
|
|
1395
|
+
} });
|
|
1396
|
+
}, 561: function(i, h, t) {
|
|
1397
|
+
var e = t(2109), r = t(7908), n = t(1400), a = t(9303), u = t(6244), c = t(3658), l = t(7207), p = t(5417), g = t(6135), m = t(5117), x = t(1194)("splice"), b = Math.max, I = Math.min;
|
|
1398
|
+
e({ target: "Array", proto: !0, forced: !x }, { splice: function(S, O) {
|
|
1399
|
+
var N, D, F, T, _, R, K = r(this), j = u(K), z = n(S, j), U = arguments.length;
|
|
1400
|
+
for (U === 0 ? N = D = 0 : U === 1 ? (N = 0, D = j - z) : (N = U - 2, D = I(b(a(O), 0), j - z)), l(j + N - D), F = p(K, D), T = 0; T < D; T++)
|
|
1401
|
+
(_ = z + T) in K && g(F, T, K[_]);
|
|
1402
|
+
if (F.length = D, N < D) {
|
|
1403
|
+
for (T = z; T < j - D; T++)
|
|
1404
|
+
R = T + N, (_ = T + D) in K ? K[R] = K[_] : m(K, R);
|
|
1405
|
+
for (T = j; T > j - D + N; T--)
|
|
1406
|
+
m(K, T - 1);
|
|
1407
|
+
} else if (N > D)
|
|
1408
|
+
for (T = j - D; T > z; T--)
|
|
1409
|
+
R = T + N - 1, (_ = T + D - 1) in K ? K[R] = K[_] : m(K, R);
|
|
1410
|
+
for (T = 0; T < N; T++)
|
|
1411
|
+
K[T + z] = arguments[T + 2];
|
|
1412
|
+
return c(K, j - D + N), F;
|
|
1413
|
+
} });
|
|
1414
|
+
}, 6078: function(i, h, t) {
|
|
1415
|
+
var e = t(2597), r = t(8052), n = t(8709), a = t(5112)("toPrimitive"), u = Date.prototype;
|
|
1416
|
+
e(u, a) || r(u, a, n);
|
|
1417
|
+
}, 8309: function(i, h, t) {
|
|
1418
|
+
var e = t(9781), r = t(6530).EXISTS, n = t(1702), a = t(3070).f, u = Function.prototype, c = n(u.toString), l = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, p = n(l.exec);
|
|
1419
|
+
e && !r && a(u, "name", { configurable: !0, get: function() {
|
|
1420
|
+
try {
|
|
1421
|
+
return p(l, c(this))[1];
|
|
1422
|
+
} catch {
|
|
1423
|
+
return "";
|
|
1424
|
+
}
|
|
1425
|
+
} });
|
|
1426
|
+
}, 8862: function(i, h, t) {
|
|
1427
|
+
var e = t(2109), r = t(5005), n = t(2104), a = t(6916), u = t(1702), c = t(7293), l = t(3157), p = t(614), g = t(111), m = t(2190), x = t(206), b = t(6293), I = r("JSON", "stringify"), S = u(/./.exec), O = u("".charAt), N = u("".charCodeAt), D = u("".replace), F = u(1 .toString), T = /[\uD800-\uDFFF]/g, _ = /^[\uD800-\uDBFF]$/, R = /^[\uDC00-\uDFFF]$/, K = !b || c(function() {
|
|
1428
|
+
var Y = r("Symbol")();
|
|
1429
|
+
return I([Y]) != "[null]" || I({ a: Y }) != "{}" || I(Object(Y)) != "{}";
|
|
1430
|
+
}), j = c(function() {
|
|
1431
|
+
return I("\uDF06\uD834") !== '"\\udf06\\ud834"' || I("\uDEAD") !== '"\\udead"';
|
|
1432
|
+
}), z = function(Y, $) {
|
|
1433
|
+
var w = x(arguments), v = $;
|
|
1434
|
+
if ((g($) || Y !== void 0) && !m(Y))
|
|
1435
|
+
return l($) || ($ = function(P, o) {
|
|
1436
|
+
if (p(v) && (o = a(v, this, P, o)), !m(o))
|
|
1437
|
+
return o;
|
|
1438
|
+
}), w[1] = $, n(I, null, w);
|
|
1439
|
+
}, U = function(Y, $, w) {
|
|
1440
|
+
var v = O(w, $ - 1), P = O(w, $ + 1);
|
|
1441
|
+
return S(_, Y) && !S(R, P) || S(R, Y) && !S(_, v) ? "\\u" + F(N(Y, 0), 16) : Y;
|
|
1442
|
+
};
|
|
1443
|
+
I && e({ target: "JSON", stat: !0, arity: 3, forced: K || j }, { stringify: function(Y, $, w) {
|
|
1444
|
+
var v = x(arguments), P = n(K ? z : I, null, v);
|
|
1445
|
+
return j && typeof P == "string" ? D(P, T, U) : P;
|
|
1446
|
+
} });
|
|
1447
|
+
}, 9653: function(i, h, t) {
|
|
1448
|
+
var e = t(2109), r = t(1913), n = t(9781), a = t(7854), u = t(857), c = t(1702), l = t(4705), p = t(2597), g = t(9587), m = t(7976), x = t(2190), b = t(7593), I = t(7293), S = t(8006).f, O = t(1236).f, N = t(3070).f, D = t(863), F = t(3111).trim, T = "Number", _ = a.Number, R = u.Number, K = _.prototype, j = a.TypeError, z = c("".slice), U = c("".charCodeAt), Y = function(s) {
|
|
1449
|
+
var f = b(s, "number");
|
|
1450
|
+
return typeof f == "bigint" ? f : $(f);
|
|
1451
|
+
}, $ = function(s) {
|
|
1452
|
+
var f, d, y, M, E, C, A, L, k = b(s, "number");
|
|
1453
|
+
if (x(k))
|
|
1454
|
+
throw j("Cannot convert a Symbol value to a number");
|
|
1455
|
+
if (typeof k == "string" && k.length > 2) {
|
|
1456
|
+
if (k = F(k), (f = U(k, 0)) === 43 || f === 45) {
|
|
1457
|
+
if ((d = U(k, 2)) === 88 || d === 120)
|
|
1458
|
+
return NaN;
|
|
1459
|
+
} else if (f === 48) {
|
|
1460
|
+
switch (U(k, 1)) {
|
|
1461
|
+
case 66:
|
|
1462
|
+
case 98:
|
|
1463
|
+
y = 2, M = 49;
|
|
1464
|
+
break;
|
|
1465
|
+
case 79:
|
|
1466
|
+
case 111:
|
|
1467
|
+
y = 8, M = 55;
|
|
1468
|
+
break;
|
|
1469
|
+
default:
|
|
1470
|
+
return +k;
|
|
1471
|
+
}
|
|
1472
|
+
for (C = (E = z(k, 2)).length, A = 0; A < C; A++)
|
|
1473
|
+
if ((L = U(E, A)) < 48 || L > M)
|
|
1474
|
+
return NaN;
|
|
1475
|
+
return parseInt(E, y);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
return +k;
|
|
1479
|
+
}, w = l(T, !_(" 0o1") || !_("0b1") || _("+0x1")), v = function(s) {
|
|
1480
|
+
return m(K, s) && I(function() {
|
|
1481
|
+
D(s);
|
|
1482
|
+
});
|
|
1483
|
+
}, P = function(s) {
|
|
1484
|
+
var f = arguments.length < 1 ? 0 : _(Y(s));
|
|
1485
|
+
return v(this) ? g(Object(f), this, P) : f;
|
|
1486
|
+
};
|
|
1487
|
+
P.prototype = K, w && !r && (K.constructor = P), e({ global: !0, constructor: !0, wrap: !0, forced: w }, { Number: P });
|
|
1488
|
+
var o = function(s, f) {
|
|
1489
|
+
for (var d, y = n ? S(f) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","), M = 0; y.length > M; M++)
|
|
1490
|
+
p(f, d = y[M]) && !p(s, d) && N(s, d, O(f, d));
|
|
1491
|
+
};
|
|
1492
|
+
r && R && o(u.Number, R), (w || r) && o(u.Number, _);
|
|
1493
|
+
}, 3161: function(i, h, t) {
|
|
1494
|
+
t(2109)({ target: "Number", stat: !0 }, { isInteger: t(5988) });
|
|
1495
|
+
}, 9601: function(i, h, t) {
|
|
1496
|
+
var e = t(2109), r = t(1574);
|
|
1497
|
+
e({ target: "Object", stat: !0, arity: 2, forced: Object.assign !== r }, { assign: r });
|
|
1498
|
+
}, 9595: function(i, h, t) {
|
|
1499
|
+
var e = t(2109), r = t(9781), n = t(9026), a = t(9662), u = t(7908), c = t(3070);
|
|
1500
|
+
r && e({ target: "Object", proto: !0, forced: n }, { __defineGetter__: function(l, p) {
|
|
1501
|
+
c.f(u(this), l, { get: a(p), enumerable: !0, configurable: !0 });
|
|
1502
|
+
} });
|
|
1503
|
+
}, 5003: function(i, h, t) {
|
|
1504
|
+
var e = t(2109), r = t(7293), n = t(5656), a = t(1236).f, u = t(9781);
|
|
1505
|
+
e({ target: "Object", stat: !0, forced: !u || r(function() {
|
|
1506
|
+
a(1);
|
|
1507
|
+
}), sham: !u }, { getOwnPropertyDescriptor: function(c, l) {
|
|
1508
|
+
return a(n(c), l);
|
|
1509
|
+
} });
|
|
1510
|
+
}, 9337: function(i, h, t) {
|
|
1511
|
+
var e = t(2109), r = t(9781), n = t(3887), a = t(5656), u = t(1236), c = t(6135);
|
|
1512
|
+
e({ target: "Object", stat: !0, sham: !r }, { getOwnPropertyDescriptors: function(l) {
|
|
1513
|
+
for (var p, g, m = a(l), x = u.f, b = n(m), I = {}, S = 0; b.length > S; )
|
|
1514
|
+
(g = x(m, p = b[S++])) !== void 0 && c(I, p, g);
|
|
1515
|
+
return I;
|
|
1516
|
+
} });
|
|
1517
|
+
}, 6210: function(i, h, t) {
|
|
1518
|
+
var e = t(2109), r = t(7293), n = t(1156).f;
|
|
1519
|
+
e({ target: "Object", stat: !0, forced: r(function() {
|
|
1520
|
+
return !Object.getOwnPropertyNames(1);
|
|
1521
|
+
}) }, { getOwnPropertyNames: n });
|
|
1522
|
+
}, 9660: function(i, h, t) {
|
|
1523
|
+
var e = t(2109), r = t(6293), n = t(7293), a = t(5181), u = t(7908);
|
|
1524
|
+
e({ target: "Object", stat: !0, forced: !r || n(function() {
|
|
1525
|
+
a.f(1);
|
|
1526
|
+
}) }, { getOwnPropertySymbols: function(c) {
|
|
1527
|
+
var l = a.f;
|
|
1528
|
+
return l ? l(u(c)) : [];
|
|
1529
|
+
} });
|
|
1530
|
+
}, 7941: function(i, h, t) {
|
|
1531
|
+
var e = t(2109), r = t(7908), n = t(1956);
|
|
1532
|
+
e({ target: "Object", stat: !0, forced: t(7293)(function() {
|
|
1533
|
+
n(1);
|
|
1534
|
+
}) }, { keys: function(a) {
|
|
1535
|
+
return n(r(a));
|
|
1536
|
+
} });
|
|
1537
|
+
}, 1539: function(i, h, t) {
|
|
1538
|
+
var e = t(1694), r = t(8052), n = t(288);
|
|
1539
|
+
e || r(Object.prototype, "toString", n, { unsafe: !0 });
|
|
1540
|
+
}, 4603: function(i, h, t) {
|
|
1541
|
+
var e = t(9781), r = t(7854), n = t(1702), a = t(4705), u = t(9587), c = t(8880), l = t(8006).f, p = t(7976), g = t(7850), m = t(1340), x = t(4706), b = t(2999), I = t(2626), S = t(8052), O = t(7293), N = t(2597), D = t(9909).enforce, F = t(6340), T = t(5112), _ = t(9441), R = t(7168), K = T("match"), j = r.RegExp, z = j.prototype, U = r.SyntaxError, Y = n(z.exec), $ = n("".charAt), w = n("".replace), v = n("".indexOf), P = n("".slice), o = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, s = /a/g, f = /a/g, d = new j(s) !== s, y = b.MISSED_STICKY, M = b.UNSUPPORTED_Y, E = e && (!d || y || _ || R || O(function() {
|
|
1542
|
+
return f[K] = !1, j(s) != s || j(f) == f || j(s, "i") != "/a/i";
|
|
1543
|
+
}));
|
|
1544
|
+
if (a("RegExp", E)) {
|
|
1545
|
+
for (var C = function(k, B) {
|
|
1546
|
+
var G, H, W, Z, nt, rt, dt = p(z, this), ft = g(k), st = B === void 0, tt = [], pt = k;
|
|
1547
|
+
if (!dt && ft && st && k.constructor === C)
|
|
1548
|
+
return k;
|
|
1549
|
+
if ((ft || p(z, k)) && (k = k.source, st && (B = x(pt))), k = k === void 0 ? "" : m(k), B = B === void 0 ? "" : m(B), pt = k, _ && "dotAll" in s && (H = !!B && v(B, "s") > -1) && (B = w(B, /s/g, "")), G = B, y && "sticky" in s && (W = !!B && v(B, "y") > -1) && M && (B = w(B, /y/g, "")), R && (Z = function(ot) {
|
|
1550
|
+
for (var X, ht = ot.length, it = 0, ut = "", ct = [], xt = {}, mt = !1, yt = !1, q = 0, J = ""; it <= ht; it++) {
|
|
1551
|
+
if ((X = $(ot, it)) === "\\")
|
|
1552
|
+
X += $(ot, ++it);
|
|
1553
|
+
else if (X === "]")
|
|
1554
|
+
mt = !1;
|
|
1555
|
+
else if (!mt)
|
|
1556
|
+
switch (!0) {
|
|
1557
|
+
case X === "[":
|
|
1558
|
+
mt = !0;
|
|
1559
|
+
break;
|
|
1560
|
+
case X === "(":
|
|
1561
|
+
Y(o, P(ot, it + 1)) && (it += 2, yt = !0), ut += X, q++;
|
|
1562
|
+
continue;
|
|
1563
|
+
case (X === ">" && yt):
|
|
1564
|
+
if (J === "" || N(xt, J))
|
|
1565
|
+
throw new U("Invalid capture group name");
|
|
1566
|
+
xt[J] = !0, ct[ct.length] = [J, q], yt = !1, J = "";
|
|
1567
|
+
continue;
|
|
1568
|
+
}
|
|
1569
|
+
yt ? J += X : ut += X;
|
|
1570
|
+
}
|
|
1571
|
+
return [ut, ct];
|
|
1572
|
+
}(k), k = Z[0], tt = Z[1]), nt = u(j(k, B), dt ? this : z, C), (H || W || tt.length) && (rt = D(nt), H && (rt.dotAll = !0, rt.raw = C(function(ot) {
|
|
1573
|
+
for (var X, ht = ot.length, it = 0, ut = "", ct = !1; it <= ht; it++)
|
|
1574
|
+
(X = $(ot, it)) !== "\\" ? ct || X !== "." ? (X === "[" ? ct = !0 : X === "]" && (ct = !1), ut += X) : ut += "[\\s\\S]" : ut += X + $(ot, ++it);
|
|
1575
|
+
return ut;
|
|
1576
|
+
}(k), G)), W && (rt.sticky = !0), tt.length && (rt.groups = tt)), k !== pt)
|
|
1577
|
+
try {
|
|
1578
|
+
c(nt, "source", pt === "" ? "(?:)" : pt);
|
|
1579
|
+
} catch {
|
|
1580
|
+
}
|
|
1581
|
+
return nt;
|
|
1582
|
+
}, A = l(j), L = 0; A.length > L; )
|
|
1583
|
+
I(C, j, A[L++]);
|
|
1584
|
+
z.constructor = C, C.prototype = z, S(r, "RegExp", C, { constructor: !0 });
|
|
1585
|
+
}
|
|
1586
|
+
F("RegExp");
|
|
1587
|
+
}, 4916: function(i, h, t) {
|
|
1588
|
+
var e = t(2109), r = t(2261);
|
|
1589
|
+
e({ target: "RegExp", proto: !0, forced: /./.exec !== r }, { exec: r });
|
|
1590
|
+
}, 9714: function(i, h, t) {
|
|
1591
|
+
var e = t(6530).PROPER, r = t(8052), n = t(9670), a = t(1340), u = t(7293), c = t(4706), l = "toString", p = RegExp.prototype.toString, g = u(function() {
|
|
1592
|
+
return p.call({ source: "a", flags: "b" }) != "/a/b";
|
|
1593
|
+
}), m = e && p.name != l;
|
|
1594
|
+
(g || m) && r(RegExp.prototype, l, function() {
|
|
1595
|
+
var x = n(this);
|
|
1596
|
+
return "/" + a(x.source) + "/" + a(c(x));
|
|
1597
|
+
}, { unsafe: !0 });
|
|
1598
|
+
}, 2023: function(i, h, t) {
|
|
1599
|
+
var e = t(2109), r = t(1702), n = t(3929), a = t(4488), u = t(1340), c = t(4964), l = r("".indexOf);
|
|
1600
|
+
e({ target: "String", proto: !0, forced: !c("includes") }, { includes: function(p) {
|
|
1601
|
+
return !!~l(u(a(this)), u(n(p)), arguments.length > 1 ? arguments[1] : void 0);
|
|
1602
|
+
} });
|
|
1603
|
+
}, 8783: function(i, h, t) {
|
|
1604
|
+
var e = t(8710).charAt, r = t(1340), n = t(9909), a = t(1656), u = t(6178), c = "String Iterator", l = n.set, p = n.getterFor(c);
|
|
1605
|
+
a(String, "String", function(g) {
|
|
1606
|
+
l(this, { type: c, string: r(g), index: 0 });
|
|
1607
|
+
}, function() {
|
|
1608
|
+
var g, m = p(this), x = m.string, b = m.index;
|
|
1609
|
+
return b >= x.length ? u(void 0, !0) : (g = e(x, b), m.index += g.length, u(g, !1));
|
|
1610
|
+
});
|
|
1611
|
+
}, 6373: function(i, h, t) {
|
|
1612
|
+
var e = t(2109), r = t(6916), n = t(1470), a = t(3061), u = t(6178), c = t(4488), l = t(7466), p = t(1340), g = t(9670), m = t(8554), x = t(4326), b = t(7850), I = t(4706), S = t(8173), O = t(8052), N = t(7293), D = t(5112), F = t(6707), T = t(1530), _ = t(7651), R = t(9909), K = t(1913), j = D("matchAll"), z = "RegExp String", U = "RegExp String Iterator", Y = R.set, $ = R.getterFor(U), w = RegExp.prototype, v = TypeError, P = n("".indexOf), o = n("".matchAll), s = !!o && !N(function() {
|
|
1613
|
+
o("a", /./);
|
|
1614
|
+
}), f = a(function(y, M, E, C) {
|
|
1615
|
+
Y(this, { type: U, regexp: y, string: M, global: E, unicode: C, done: !1 });
|
|
1616
|
+
}, z, function() {
|
|
1617
|
+
var y = $(this);
|
|
1618
|
+
if (y.done)
|
|
1619
|
+
return u(void 0, !0);
|
|
1620
|
+
var M = y.regexp, E = y.string, C = _(M, E);
|
|
1621
|
+
return C === null ? (y.done = !0, u(void 0, !0)) : y.global ? (p(C[0]) === "" && (M.lastIndex = T(E, l(M.lastIndex), y.unicode)), u(C, !1)) : (y.done = !0, u(C, !1));
|
|
1622
|
+
}), d = function(y) {
|
|
1623
|
+
var M, E, C, A = g(this), L = p(y), k = F(A, RegExp), B = p(I(A));
|
|
1624
|
+
return M = new k(k === RegExp ? A.source : A, B), E = !!~P(B, "g"), C = !!~P(B, "u"), M.lastIndex = l(A.lastIndex), new f(M, L, E, C);
|
|
1625
|
+
};
|
|
1626
|
+
e({ target: "String", proto: !0, forced: s }, { matchAll: function(y) {
|
|
1627
|
+
var M, E, C, A, L = c(this);
|
|
1628
|
+
if (m(y)) {
|
|
1629
|
+
if (s)
|
|
1630
|
+
return o(L, y);
|
|
1631
|
+
} else {
|
|
1632
|
+
if (b(y) && (M = p(c(I(y))), !~P(M, "g")))
|
|
1633
|
+
throw v("`.matchAll` does not allow non-global regexes");
|
|
1634
|
+
if (s)
|
|
1635
|
+
return o(L, y);
|
|
1636
|
+
if ((C = S(y, j)) === void 0 && K && x(y) == "RegExp" && (C = d), C)
|
|
1637
|
+
return r(C, y, L);
|
|
1638
|
+
}
|
|
1639
|
+
return E = p(L), A = new RegExp(y, "g"), K ? r(d, A, E) : A[j](E);
|
|
1640
|
+
} }), K || j in w || O(w, j, d);
|
|
1641
|
+
}, 4723: function(i, h, t) {
|
|
1642
|
+
var e = t(6916), r = t(7007), n = t(9670), a = t(8554), u = t(7466), c = t(1340), l = t(4488), p = t(8173), g = t(1530), m = t(7651);
|
|
1643
|
+
r("match", function(x, b, I) {
|
|
1644
|
+
return [function(S) {
|
|
1645
|
+
var O = l(this), N = a(S) ? void 0 : p(S, x);
|
|
1646
|
+
return N ? e(N, S, O) : new RegExp(S)[x](c(O));
|
|
1647
|
+
}, function(S) {
|
|
1648
|
+
var O = n(this), N = c(S), D = I(b, O, N);
|
|
1649
|
+
if (D.done)
|
|
1650
|
+
return D.value;
|
|
1651
|
+
if (!O.global)
|
|
1652
|
+
return m(O, N);
|
|
1653
|
+
var F = O.unicode;
|
|
1654
|
+
O.lastIndex = 0;
|
|
1655
|
+
for (var T, _ = [], R = 0; (T = m(O, N)) !== null; ) {
|
|
1656
|
+
var K = c(T[0]);
|
|
1657
|
+
_[R] = K, K === "" && (O.lastIndex = g(N, u(O.lastIndex), F)), R++;
|
|
1658
|
+
}
|
|
1659
|
+
return R === 0 ? null : _;
|
|
1660
|
+
}];
|
|
1661
|
+
});
|
|
1662
|
+
}, 5306: function(i, h, t) {
|
|
1663
|
+
var e = t(2104), r = t(6916), n = t(1702), a = t(7007), u = t(7293), c = t(9670), l = t(614), p = t(8554), g = t(9303), m = t(7466), x = t(1340), b = t(4488), I = t(1530), S = t(8173), O = t(647), N = t(7651), D = t(5112)("replace"), F = Math.max, T = Math.min, _ = n([].concat), R = n([].push), K = n("".indexOf), j = n("".slice), z = "a".replace(/./, "$0") === "$0", U = !!/./[D] && /./[D]("a", "$0") === "";
|
|
1664
|
+
a("replace", function(Y, $, w) {
|
|
1665
|
+
var v = U ? "$" : "$0";
|
|
1666
|
+
return [function(P, o) {
|
|
1667
|
+
var s = b(this), f = p(P) ? void 0 : S(P, D);
|
|
1668
|
+
return f ? r(f, P, s, o) : r($, x(s), P, o);
|
|
1669
|
+
}, function(P, o) {
|
|
1670
|
+
var s = c(this), f = x(P);
|
|
1671
|
+
if (typeof o == "string" && K(o, v) === -1 && K(o, "$<") === -1) {
|
|
1672
|
+
var d = w($, s, f, o);
|
|
1673
|
+
if (d.done)
|
|
1674
|
+
return d.value;
|
|
1675
|
+
}
|
|
1676
|
+
var y = l(o);
|
|
1677
|
+
y || (o = x(o));
|
|
1678
|
+
var M = s.global;
|
|
1679
|
+
if (M) {
|
|
1680
|
+
var E = s.unicode;
|
|
1681
|
+
s.lastIndex = 0;
|
|
1682
|
+
}
|
|
1683
|
+
for (var C = []; ; ) {
|
|
1684
|
+
var A = N(s, f);
|
|
1685
|
+
if (A === null || (R(C, A), !M))
|
|
1686
|
+
break;
|
|
1687
|
+
x(A[0]) === "" && (s.lastIndex = I(f, m(s.lastIndex), E));
|
|
1688
|
+
}
|
|
1689
|
+
for (var L, k = "", B = 0, G = 0; G < C.length; G++) {
|
|
1690
|
+
for (var H = x((A = C[G])[0]), W = F(T(g(A.index), f.length), 0), Z = [], nt = 1; nt < A.length; nt++)
|
|
1691
|
+
R(Z, (L = A[nt]) === void 0 ? L : String(L));
|
|
1692
|
+
var rt = A.groups;
|
|
1693
|
+
if (y) {
|
|
1694
|
+
var dt = _([H], Z, W, f);
|
|
1695
|
+
rt !== void 0 && R(dt, rt);
|
|
1696
|
+
var ft = x(e(o, void 0, dt));
|
|
1697
|
+
} else
|
|
1698
|
+
ft = O(H, f, W, Z, rt, o);
|
|
1699
|
+
W >= B && (k += j(f, B, W) + ft, B = W + H.length);
|
|
1700
|
+
}
|
|
1701
|
+
return k + j(f, B);
|
|
1702
|
+
}];
|
|
1703
|
+
}, !!u(function() {
|
|
1704
|
+
var Y = /./;
|
|
1705
|
+
return Y.exec = function() {
|
|
1706
|
+
var $ = [];
|
|
1707
|
+
return $.groups = { a: "7" }, $;
|
|
1708
|
+
}, "".replace(Y, "$<a>") !== "7";
|
|
1709
|
+
}) || !z || U);
|
|
1710
|
+
}, 3123: function(i, h, t) {
|
|
1711
|
+
var e = t(2104), r = t(6916), n = t(1702), a = t(7007), u = t(9670), c = t(8554), l = t(7850), p = t(4488), g = t(6707), m = t(1530), x = t(7466), b = t(1340), I = t(8173), S = t(1589), O = t(7651), N = t(2261), D = t(2999), F = t(7293), T = D.UNSUPPORTED_Y, _ = 4294967295, R = Math.min, K = [].push, j = n(/./.exec), z = n(K), U = n("".slice), Y = !F(function() {
|
|
1712
|
+
var $ = /(?:)/, w = $.exec;
|
|
1713
|
+
$.exec = function() {
|
|
1714
|
+
return w.apply(this, arguments);
|
|
1715
|
+
};
|
|
1716
|
+
var v = "ab".split($);
|
|
1717
|
+
return v.length !== 2 || v[0] !== "a" || v[1] !== "b";
|
|
1718
|
+
});
|
|
1719
|
+
a("split", function($, w, v) {
|
|
1720
|
+
var P;
|
|
1721
|
+
return P = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(o, s) {
|
|
1722
|
+
var f = b(p(this)), d = s === void 0 ? _ : s >>> 0;
|
|
1723
|
+
if (d === 0)
|
|
1724
|
+
return [];
|
|
1725
|
+
if (o === void 0)
|
|
1726
|
+
return [f];
|
|
1727
|
+
if (!l(o))
|
|
1728
|
+
return r(w, f, o, d);
|
|
1729
|
+
for (var y, M, E, C = [], A = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (o.sticky ? "y" : ""), L = 0, k = new RegExp(o.source, A + "g"); (y = r(N, k, f)) && !((M = k.lastIndex) > L && (z(C, U(f, L, y.index)), y.length > 1 && y.index < f.length && e(K, C, S(y, 1)), E = y[0].length, L = M, C.length >= d)); )
|
|
1730
|
+
k.lastIndex === y.index && k.lastIndex++;
|
|
1731
|
+
return L === f.length ? !E && j(k, "") || z(C, "") : z(C, U(f, L)), C.length > d ? S(C, 0, d) : C;
|
|
1732
|
+
} : "0".split(void 0, 0).length ? function(o, s) {
|
|
1733
|
+
return o === void 0 && s === 0 ? [] : r(w, this, o, s);
|
|
1734
|
+
} : w, [function(o, s) {
|
|
1735
|
+
var f = p(this), d = c(o) ? void 0 : I(o, $);
|
|
1736
|
+
return d ? r(d, o, f, s) : r(P, b(f), o, s);
|
|
1737
|
+
}, function(o, s) {
|
|
1738
|
+
var f = u(this), d = b(o), y = v(P, f, d, s, P !== w);
|
|
1739
|
+
if (y.done)
|
|
1740
|
+
return y.value;
|
|
1741
|
+
var M = g(f, RegExp), E = f.unicode, C = (f.ignoreCase ? "i" : "") + (f.multiline ? "m" : "") + (f.unicode ? "u" : "") + (T ? "g" : "y"), A = new M(T ? "^(?:" + f.source + ")" : f, C), L = s === void 0 ? _ : s >>> 0;
|
|
1742
|
+
if (L === 0)
|
|
1743
|
+
return [];
|
|
1744
|
+
if (d.length === 0)
|
|
1745
|
+
return O(A, d) === null ? [d] : [];
|
|
1746
|
+
for (var k = 0, B = 0, G = []; B < d.length; ) {
|
|
1747
|
+
A.lastIndex = T ? 0 : B;
|
|
1748
|
+
var H, W = O(A, T ? U(d, B) : d);
|
|
1749
|
+
if (W === null || (H = R(x(A.lastIndex + (T ? B : 0)), d.length)) === k)
|
|
1750
|
+
B = m(d, B, E);
|
|
1751
|
+
else {
|
|
1752
|
+
if (z(G, U(d, k, B)), G.length === L)
|
|
1753
|
+
return G;
|
|
1754
|
+
for (var Z = 1; Z <= W.length - 1; Z++)
|
|
1755
|
+
if (z(G, W[Z]), G.length === L)
|
|
1756
|
+
return G;
|
|
1757
|
+
B = k = H;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
return z(G, U(d, k)), G;
|
|
1761
|
+
}];
|
|
1762
|
+
}, !Y, T);
|
|
1763
|
+
}, 3210: function(i, h, t) {
|
|
1764
|
+
var e = t(2109), r = t(3111).trim;
|
|
1765
|
+
e({ target: "String", proto: !0, forced: t(6091)("trim") }, { trim: function() {
|
|
1766
|
+
return r(this);
|
|
1767
|
+
} });
|
|
1768
|
+
}, 4032: function(i, h, t) {
|
|
1769
|
+
var e = t(2109), r = t(7854), n = t(6916), a = t(1702), u = t(1913), c = t(9781), l = t(6293), p = t(7293), g = t(2597), m = t(7976), x = t(9670), b = t(5656), I = t(4948), S = t(1340), O = t(9114), N = t(30), D = t(1956), F = t(8006), T = t(1156), _ = t(5181), R = t(1236), K = t(3070), j = t(6048), z = t(5296), U = t(8052), Y = t(2309), $ = t(6200), w = t(3501), v = t(9711), P = t(5112), o = t(6061), s = t(6800), f = t(6532), d = t(8003), y = t(9909), M = t(2092).forEach, E = $("hidden"), C = "Symbol", A = y.set, L = y.getterFor(C), k = Object.prototype, B = r.Symbol, G = B && B.prototype, H = r.TypeError, W = r.QObject, Z = R.f, nt = K.f, rt = T.f, dt = z.f, ft = a([].push), st = Y("symbols"), tt = Y("op-symbols"), pt = Y("wks"), ot = !W || !W.prototype || !W.prototype.findChild, X = c && p(function() {
|
|
1770
|
+
return N(nt({}, "a", { get: function() {
|
|
1771
|
+
return nt(this, "a", { value: 7 }).a;
|
|
1772
|
+
} })).a != 7;
|
|
1773
|
+
}) ? function(q, J, Q) {
|
|
1774
|
+
var et = Z(k, J);
|
|
1775
|
+
et && delete k[J], nt(q, J, Q), et && q !== k && nt(k, J, et);
|
|
1776
|
+
} : nt, ht = function(q, J) {
|
|
1777
|
+
var Q = st[q] = N(G);
|
|
1778
|
+
return A(Q, { type: C, tag: q, description: J }), c || (Q.description = J), Q;
|
|
1779
|
+
}, it = function(q, J, Q) {
|
|
1780
|
+
q === k && it(tt, J, Q), x(q);
|
|
1781
|
+
var et = I(J);
|
|
1782
|
+
return x(Q), g(st, et) ? (Q.enumerable ? (g(q, E) && q[E][et] && (q[E][et] = !1), Q = N(Q, { enumerable: O(0, !1) })) : (g(q, E) || nt(q, E, O(1, {})), q[E][et] = !0), X(q, et, Q)) : nt(q, et, Q);
|
|
1783
|
+
}, ut = function(q, J) {
|
|
1784
|
+
x(q);
|
|
1785
|
+
var Q = b(J), et = D(Q).concat(yt(Q));
|
|
1786
|
+
return M(et, function(lt) {
|
|
1787
|
+
c && !n(ct, Q, lt) || it(q, lt, Q[lt]);
|
|
1788
|
+
}), q;
|
|
1789
|
+
}, ct = function(q) {
|
|
1790
|
+
var J = I(q), Q = n(dt, this, J);
|
|
1791
|
+
return !(this === k && g(st, J) && !g(tt, J)) && (!(Q || !g(this, J) || !g(st, J) || g(this, E) && this[E][J]) || Q);
|
|
1792
|
+
}, xt = function(q, J) {
|
|
1793
|
+
var Q = b(q), et = I(J);
|
|
1794
|
+
if (Q !== k || !g(st, et) || g(tt, et)) {
|
|
1795
|
+
var lt = Z(Q, et);
|
|
1796
|
+
return !lt || !g(st, et) || g(Q, E) && Q[E][et] || (lt.enumerable = !0), lt;
|
|
1797
|
+
}
|
|
1798
|
+
}, mt = function(q) {
|
|
1799
|
+
var J = rt(b(q)), Q = [];
|
|
1800
|
+
return M(J, function(et) {
|
|
1801
|
+
g(st, et) || g(w, et) || ft(Q, et);
|
|
1802
|
+
}), Q;
|
|
1803
|
+
}, yt = function(q) {
|
|
1804
|
+
var J = q === k, Q = rt(J ? tt : b(q)), et = [];
|
|
1805
|
+
return M(Q, function(lt) {
|
|
1806
|
+
!g(st, lt) || J && !g(k, lt) || ft(et, st[lt]);
|
|
1807
|
+
}), et;
|
|
1808
|
+
};
|
|
1809
|
+
l || (B = function() {
|
|
1810
|
+
if (m(G, this))
|
|
1811
|
+
throw H("Symbol is not a constructor");
|
|
1812
|
+
var q = arguments.length && arguments[0] !== void 0 ? S(arguments[0]) : void 0, J = v(q), Q = function(et) {
|
|
1813
|
+
this === k && n(Q, tt, et), g(this, E) && g(this[E], J) && (this[E][J] = !1), X(this, J, O(1, et));
|
|
1814
|
+
};
|
|
1815
|
+
return c && ot && X(k, J, { configurable: !0, set: Q }), ht(J, q);
|
|
1816
|
+
}, U(G = B.prototype, "toString", function() {
|
|
1817
|
+
return L(this).tag;
|
|
1818
|
+
}), U(B, "withoutSetter", function(q) {
|
|
1819
|
+
return ht(v(q), q);
|
|
1820
|
+
}), z.f = ct, K.f = it, j.f = ut, R.f = xt, F.f = T.f = mt, _.f = yt, o.f = function(q) {
|
|
1821
|
+
return ht(P(q), q);
|
|
1822
|
+
}, c && (nt(G, "description", { configurable: !0, get: function() {
|
|
1823
|
+
return L(this).description;
|
|
1824
|
+
} }), u || U(k, "propertyIsEnumerable", ct, { unsafe: !0 }))), e({ global: !0, constructor: !0, wrap: !0, forced: !l, sham: !l }, { Symbol: B }), M(D(pt), function(q) {
|
|
1825
|
+
s(q);
|
|
1826
|
+
}), e({ target: C, stat: !0, forced: !l }, { useSetter: function() {
|
|
1827
|
+
ot = !0;
|
|
1828
|
+
}, useSimple: function() {
|
|
1829
|
+
ot = !1;
|
|
1830
|
+
} }), e({ target: "Object", stat: !0, forced: !l, sham: !c }, { create: function(q, J) {
|
|
1831
|
+
return J === void 0 ? N(q) : ut(N(q), J);
|
|
1832
|
+
}, defineProperty: it, defineProperties: ut, getOwnPropertyDescriptor: xt }), e({ target: "Object", stat: !0, forced: !l }, { getOwnPropertyNames: mt }), f(), d(B, C), w[E] = !0;
|
|
1833
|
+
}, 1817: function(i, h, t) {
|
|
1834
|
+
var e = t(2109), r = t(9781), n = t(7854), a = t(1702), u = t(2597), c = t(614), l = t(7976), p = t(1340), g = t(3070).f, m = t(9920), x = n.Symbol, b = x && x.prototype;
|
|
1835
|
+
if (r && c(x) && (!("description" in b) || x().description !== void 0)) {
|
|
1836
|
+
var I = {}, S = function() {
|
|
1837
|
+
var R = arguments.length < 1 || arguments[0] === void 0 ? void 0 : p(arguments[0]), K = l(b, this) ? new x(R) : R === void 0 ? x() : x(R);
|
|
1838
|
+
return R === "" && (I[K] = !0), K;
|
|
1839
|
+
};
|
|
1840
|
+
m(S, x), S.prototype = b, b.constructor = S;
|
|
1841
|
+
var O = String(x("test")) == "Symbol(test)", N = a(b.valueOf), D = a(b.toString), F = /^Symbol\((.*)\)[^)]+$/, T = a("".replace), _ = a("".slice);
|
|
1842
|
+
g(b, "description", { configurable: !0, get: function() {
|
|
1843
|
+
var R = N(this);
|
|
1844
|
+
if (u(I, R))
|
|
1845
|
+
return "";
|
|
1846
|
+
var K = D(R), j = O ? _(K, 7, -1) : T(K, F, "$1");
|
|
1847
|
+
return j === "" ? void 0 : j;
|
|
1848
|
+
} }), e({ global: !0, constructor: !0, forced: !0 }, { Symbol: S });
|
|
1849
|
+
}
|
|
1850
|
+
}, 763: function(i, h, t) {
|
|
1851
|
+
var e = t(2109), r = t(5005), n = t(2597), a = t(1340), u = t(2309), c = t(2015), l = u("string-to-symbol-registry"), p = u("symbol-to-string-registry");
|
|
1852
|
+
e({ target: "Symbol", stat: !0, forced: !c }, { for: function(g) {
|
|
1853
|
+
var m = a(g);
|
|
1854
|
+
if (n(l, m))
|
|
1855
|
+
return l[m];
|
|
1856
|
+
var x = r("Symbol")(m);
|
|
1857
|
+
return l[m] = x, p[x] = m, x;
|
|
1858
|
+
} });
|
|
1859
|
+
}, 2165: function(i, h, t) {
|
|
1860
|
+
t(6800)("iterator");
|
|
1861
|
+
}, 2526: function(i, h, t) {
|
|
1862
|
+
t(4032), t(763), t(6620), t(8862), t(9660);
|
|
1863
|
+
}, 6620: function(i, h, t) {
|
|
1864
|
+
var e = t(2109), r = t(2597), n = t(2190), a = t(6330), u = t(2309), c = t(2015), l = u("symbol-to-string-registry");
|
|
1865
|
+
e({ target: "Symbol", stat: !0, forced: !c }, { keyFor: function(p) {
|
|
1866
|
+
if (!n(p))
|
|
1867
|
+
throw TypeError(a(p) + " is not a symbol");
|
|
1868
|
+
if (r(l, p))
|
|
1869
|
+
return l[p];
|
|
1870
|
+
} });
|
|
1871
|
+
}, 6649: function(i, h, t) {
|
|
1872
|
+
var e = t(6800), r = t(6532);
|
|
1873
|
+
e("toPrimitive"), r();
|
|
1874
|
+
}, 3728: function(i, h, t) {
|
|
1875
|
+
t(6373);
|
|
1876
|
+
}, 4747: function(i, h, t) {
|
|
1877
|
+
var e = t(7854), r = t(8324), n = t(8509), a = t(8533), u = t(8880), c = function(p) {
|
|
1878
|
+
if (p && p.forEach !== a)
|
|
1879
|
+
try {
|
|
1880
|
+
u(p, "forEach", a);
|
|
1881
|
+
} catch {
|
|
1882
|
+
p.forEach = a;
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
for (var l in r)
|
|
1886
|
+
r[l] && c(e[l] && e[l].prototype);
|
|
1887
|
+
c(n);
|
|
1888
|
+
}, 3948: function(i, h, t) {
|
|
1889
|
+
var e = t(7854), r = t(8324), n = t(8509), a = t(6992), u = t(8880), c = t(5112), l = c("iterator"), p = c("toStringTag"), g = a.values, m = function(b, I) {
|
|
1890
|
+
if (b) {
|
|
1891
|
+
if (b[l] !== g)
|
|
1892
|
+
try {
|
|
1893
|
+
u(b, l, g);
|
|
1894
|
+
} catch {
|
|
1895
|
+
b[l] = g;
|
|
1896
|
+
}
|
|
1897
|
+
if (b[p] || u(b, p, I), r[I]) {
|
|
1898
|
+
for (var S in a)
|
|
1899
|
+
if (b[S] !== a[S])
|
|
1900
|
+
try {
|
|
1901
|
+
u(b, S, a[S]);
|
|
1902
|
+
} catch {
|
|
1903
|
+
b[S] = a[S];
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
};
|
|
1908
|
+
for (var x in r)
|
|
1909
|
+
m(e[x] && e[x].prototype, x);
|
|
1910
|
+
m(n, "DOMTokenList");
|
|
1911
|
+
} }, vt = {};
|
|
1912
|
+
function V(i) {
|
|
1913
|
+
var h = vt[i];
|
|
1914
|
+
if (h !== void 0)
|
|
1915
|
+
return h.exports;
|
|
1916
|
+
var t = vt[i] = { exports: {} };
|
|
1917
|
+
return Et[i](t, t.exports, V), t.exports;
|
|
1918
|
+
}
|
|
1919
|
+
V.d = function(i, h) {
|
|
1920
|
+
for (var t in h)
|
|
1921
|
+
V.o(h, t) && !V.o(i, t) && Object.defineProperty(i, t, { enumerable: !0, get: h[t] });
|
|
1922
|
+
}, V.g = function() {
|
|
1923
|
+
if (typeof globalThis == "object")
|
|
1924
|
+
return globalThis;
|
|
1925
|
+
try {
|
|
1926
|
+
return this || new Function("return this")();
|
|
1927
|
+
} catch {
|
|
1928
|
+
if (typeof window == "object")
|
|
1929
|
+
return window;
|
|
1930
|
+
}
|
|
1931
|
+
}(), V.o = function(i, h) {
|
|
1932
|
+
return Object.prototype.hasOwnProperty.call(i, h);
|
|
1933
|
+
}, V.r = function(i) {
|
|
1934
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
1935
|
+
};
|
|
1936
|
+
var bt = {};
|
|
1937
|
+
return function() {
|
|
1938
|
+
V.r(bt), V.d(bt, { SimpleKeyboard: function() {
|
|
1939
|
+
return Y;
|
|
1940
|
+
}, default: function() {
|
|
1941
|
+
return $;
|
|
1942
|
+
} }), V(3210), V(4916), V(5306), V(2772), V(8309), V(3123), V(1539), V(9714), V(561), V(9600), V(9595), V(7042), typeof Element > "u" || "remove" in Element.prototype || (Element.prototype.remove = function() {
|
|
1943
|
+
this.parentNode && this.parentNode.removeChild(this);
|
|
1944
|
+
}), typeof self < "u" && "document" in self && ((!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) && function(w) {
|
|
1945
|
+
if ("Element" in w) {
|
|
1946
|
+
var v = "classList", P = w.Element.prototype, o = Object, s = String.prototype.trim || function() {
|
|
1947
|
+
return this.replace(/^\s+|\s+$/g, "");
|
|
1948
|
+
}, f = Array.prototype.indexOf || function(L) {
|
|
1949
|
+
for (var k = 0, B = this.length; k < B; k++)
|
|
1950
|
+
if (k in this && this[k] === L)
|
|
1951
|
+
return k;
|
|
1952
|
+
return -1;
|
|
1953
|
+
}, d = function(L, k) {
|
|
1954
|
+
this.name = L, this.code = DOMException[L], this.message = k;
|
|
1955
|
+
}, y = function(L, k) {
|
|
1956
|
+
if (k === "")
|
|
1957
|
+
throw new d("SYNTAX_ERR", "The token must not be empty.");
|
|
1958
|
+
if (/\s/.test(k))
|
|
1959
|
+
throw new d("INVALID_CHARACTER_ERR", "The token must not contain space characters.");
|
|
1960
|
+
return f.call(L, k);
|
|
1961
|
+
}, M = function(L) {
|
|
1962
|
+
for (var k = s.call(L.getAttribute("class") || ""), B = k ? k.split(/\s+/) : [], G = 0, H = B.length; G < H; G++)
|
|
1963
|
+
this.push(B[G]);
|
|
1964
|
+
this._updateClassName = function() {
|
|
1965
|
+
L.setAttribute("class", this.toString());
|
|
1966
|
+
};
|
|
1967
|
+
}, E = M.prototype = [], C = function() {
|
|
1968
|
+
return new M(this);
|
|
1969
|
+
};
|
|
1970
|
+
if (d.prototype = Error.prototype, E.item = function(L) {
|
|
1971
|
+
return this[L] || null;
|
|
1972
|
+
}, E.contains = function(L) {
|
|
1973
|
+
return ~y(this, L + "");
|
|
1974
|
+
}, E.add = function() {
|
|
1975
|
+
var L, k = arguments, B = 0, G = k.length, H = !1;
|
|
1976
|
+
do
|
|
1977
|
+
L = k[B] + "", ~y(this, L) || (this.push(L), H = !0);
|
|
1978
|
+
while (++B < G);
|
|
1979
|
+
H && this._updateClassName();
|
|
1980
|
+
}, E.remove = function() {
|
|
1981
|
+
var L, k, B = arguments, G = 0, H = B.length, W = !1;
|
|
1982
|
+
do
|
|
1983
|
+
for (L = B[G] + "", k = y(this, L); ~k; )
|
|
1984
|
+
this.splice(k, 1), W = !0, k = y(this, L);
|
|
1985
|
+
while (++G < H);
|
|
1986
|
+
W && this._updateClassName();
|
|
1987
|
+
}, E.toggle = function(L, k) {
|
|
1988
|
+
var B = this.contains(L), G = B ? k !== !0 && "remove" : k !== !1 && "add";
|
|
1989
|
+
return G && this[G](L), k === !0 || k === !1 ? k : !B;
|
|
1990
|
+
}, E.replace = function(L, k) {
|
|
1991
|
+
var B = y(L + "");
|
|
1992
|
+
~B && (this.splice(B, 1, k), this._updateClassName());
|
|
1993
|
+
}, E.toString = function() {
|
|
1994
|
+
return this.join(" ");
|
|
1995
|
+
}, o.defineProperty) {
|
|
1996
|
+
var A = { get: C, enumerable: !0, configurable: !0 };
|
|
1997
|
+
try {
|
|
1998
|
+
o.defineProperty(P, v, A);
|
|
1999
|
+
} catch (L) {
|
|
2000
|
+
L.number !== void 0 && L.number !== -2146823252 || (A.enumerable = !1, o.defineProperty(P, v, A));
|
|
2001
|
+
}
|
|
2002
|
+
} else
|
|
2003
|
+
o.prototype.__defineGetter__ && P.__defineGetter__(v, C);
|
|
2004
|
+
}
|
|
2005
|
+
}(self), function() {
|
|
2006
|
+
var w = document.createElement("_");
|
|
2007
|
+
if (w.classList.add("c1", "c2"), !w.classList.contains("c2")) {
|
|
2008
|
+
var v = function(o) {
|
|
2009
|
+
var s = DOMTokenList.prototype[o];
|
|
2010
|
+
DOMTokenList.prototype[o] = function(f) {
|
|
2011
|
+
var d, y = arguments.length;
|
|
2012
|
+
for (d = 0; d < y; d++)
|
|
2013
|
+
f = arguments[d], s.call(this, f);
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
v("add"), v("remove");
|
|
2017
|
+
}
|
|
2018
|
+
if (w.classList.toggle("c3", !1), w.classList.contains("c3")) {
|
|
2019
|
+
var P = DOMTokenList.prototype.toggle;
|
|
2020
|
+
DOMTokenList.prototype.toggle = function(o, s) {
|
|
2021
|
+
return 1 in arguments && !this.contains(o) == !s ? s : P.call(this, o);
|
|
2022
|
+
};
|
|
2023
|
+
}
|
|
2024
|
+
"replace" in document.createElement("_").classList || (DOMTokenList.prototype.replace = function(o, s) {
|
|
2025
|
+
var f = this.toString().split(" "), d = f.indexOf(o + "");
|
|
2026
|
+
~d && (f = f.slice(d), this.remove.apply(this, f), this.add(s), this.add.apply(this, f.slice(1)));
|
|
2027
|
+
}), w = null;
|
|
2028
|
+
}()), V(7327), V(2222), V(7941), V(4603), V(3728), V(2707), V(6699), V(2023), V(4747), V(9601), V(1249), V(1038), V(8783), V(6649), V(6078), V(2526), V(1817), V(9653), V(5003), V(9337), V(2165), V(6992), V(3948), V(3161), V(4723), V(5827), V(6210);
|
|
2029
|
+
function i(w) {
|
|
2030
|
+
return function(v) {
|
|
2031
|
+
if (Array.isArray(v))
|
|
2032
|
+
return t(v);
|
|
2033
|
+
}(w) || function(v) {
|
|
2034
|
+
if (typeof Symbol < "u" && v[Symbol.iterator] != null || v["@@iterator"] != null)
|
|
2035
|
+
return Array.from(v);
|
|
2036
|
+
}(w) || h(w) || function() {
|
|
2037
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2038
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2039
|
+
}();
|
|
2040
|
+
}
|
|
2041
|
+
function h(w, v) {
|
|
2042
|
+
if (w) {
|
|
2043
|
+
if (typeof w == "string")
|
|
2044
|
+
return t(w, v);
|
|
2045
|
+
var P = Object.prototype.toString.call(w).slice(8, -1);
|
|
2046
|
+
return P === "Object" && w.constructor && (P = w.constructor.name), P === "Map" || P === "Set" ? Array.from(w) : P === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P) ? t(w, v) : void 0;
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
function t(w, v) {
|
|
2050
|
+
(v == null || v > w.length) && (v = w.length);
|
|
2051
|
+
for (var P = 0, o = new Array(v); P < v; P++)
|
|
2052
|
+
o[P] = w[P];
|
|
2053
|
+
return o;
|
|
2054
|
+
}
|
|
2055
|
+
function e(w) {
|
|
2056
|
+
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2057
|
+
return typeof v;
|
|
2058
|
+
} : function(v) {
|
|
2059
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2060
|
+
}, e(w);
|
|
2061
|
+
}
|
|
2062
|
+
function r(w, v) {
|
|
2063
|
+
for (var P = 0; P < v.length; P++) {
|
|
2064
|
+
var o = v[P];
|
|
2065
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(w, a(o.key), o);
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
function n(w, v, P) {
|
|
2069
|
+
return (v = a(v)) in w ? Object.defineProperty(w, v, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : w[v] = P, w;
|
|
2070
|
+
}
|
|
2071
|
+
function a(w) {
|
|
2072
|
+
var v = function(P, o) {
|
|
2073
|
+
if (e(P) !== "object" || P === null)
|
|
2074
|
+
return P;
|
|
2075
|
+
var s = P[Symbol.toPrimitive];
|
|
2076
|
+
if (s !== void 0) {
|
|
2077
|
+
var f = s.call(P, o || "default");
|
|
2078
|
+
if (e(f) !== "object")
|
|
2079
|
+
return f;
|
|
2080
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2081
|
+
}
|
|
2082
|
+
return (o === "string" ? String : Number)(P);
|
|
2083
|
+
}(w, "string");
|
|
2084
|
+
return e(v) === "symbol" ? v : String(v);
|
|
2085
|
+
}
|
|
2086
|
+
var u = function() {
|
|
2087
|
+
function w(s) {
|
|
2088
|
+
var f = s.getOptions, d = s.getCaretPosition, y = s.getCaretPositionEnd, M = s.dispatch;
|
|
2089
|
+
(function(E, C) {
|
|
2090
|
+
if (!(E instanceof C))
|
|
2091
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2092
|
+
})(this, w), n(this, "getOptions", void 0), n(this, "getCaretPosition", void 0), n(this, "getCaretPositionEnd", void 0), n(this, "dispatch", void 0), n(this, "maxLengthReached", void 0), n(this, "isStandardButton", function(E) {
|
|
2093
|
+
return E && !(E[0] === "{" && E[E.length - 1] === "}");
|
|
2094
|
+
}), this.getOptions = f, this.getCaretPosition = d, this.getCaretPositionEnd = y, this.dispatch = M, w.bindMethods(w, this);
|
|
2095
|
+
}
|
|
2096
|
+
var v, P, o;
|
|
2097
|
+
return v = w, P = [{ key: "getButtonType", value: function(s) {
|
|
2098
|
+
return s.includes("{") && s.includes("}") && s !== "{//}" ? "functionBtn" : "standardBtn";
|
|
2099
|
+
} }, { key: "getButtonClass", value: function(s) {
|
|
2100
|
+
var f = this.getButtonType(s), d = s.replace("{", "").replace("}", ""), y = "";
|
|
2101
|
+
return f !== "standardBtn" && (y = " hg-button-".concat(d)), "hg-".concat(f).concat(y);
|
|
2102
|
+
} }, { key: "getDefaultDiplay", value: function() {
|
|
2103
|
+
return { "{bksp}": "backspace", "{backspace}": "backspace", "{enter}": "< enter", "{shift}": "shift", "{shiftleft}": "shift", "{shiftright}": "shift", "{alt}": "alt", "{s}": "shift", "{tab}": "tab", "{lock}": "caps", "{capslock}": "caps", "{accept}": "Submit", "{space}": " ", "{//}": " ", "{esc}": "esc", "{escape}": "esc", "{f1}": "f1", "{f2}": "f2", "{f3}": "f3", "{f4}": "f4", "{f5}": "f5", "{f6}": "f6", "{f7}": "f7", "{f8}": "f8", "{f9}": "f9", "{f10}": "f10", "{f11}": "f11", "{f12}": "f12", "{numpaddivide}": "/", "{numlock}": "lock", "{arrowup}": "↑", "{arrowleft}": "←", "{arrowdown}": "↓", "{arrowright}": "→", "{prtscr}": "print", "{scrolllock}": "scroll", "{pause}": "pause", "{insert}": "ins", "{home}": "home", "{pageup}": "up", "{delete}": "del", "{forwarddelete}": "del", "{end}": "end", "{pagedown}": "down", "{numpadmultiply}": "*", "{numpadsubtract}": "-", "{numpadadd}": "+", "{numpadenter}": "enter", "{period}": ".", "{numpaddecimal}": ".", "{numpad0}": "0", "{numpad1}": "1", "{numpad2}": "2", "{numpad3}": "3", "{numpad4}": "4", "{numpad5}": "5", "{numpad6}": "6", "{numpad7}": "7", "{numpad8}": "8", "{numpad9}": "9" };
|
|
2104
|
+
} }, { key: "getButtonDisplayName", value: function(s, f, d) {
|
|
2105
|
+
return (f = d ? Object.assign({}, this.getDefaultDiplay(), f) : f || this.getDefaultDiplay())[s] || s;
|
|
2106
|
+
} }, { key: "getUpdatedInput", value: function(s, f, d) {
|
|
2107
|
+
var y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : d, M = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], E = this.getOptions(), C = [d, y, M], A = f;
|
|
2108
|
+
return (s === "{bksp}" || s === "{backspace}") && A.length > 0 ? A = this.removeAt.apply(this, [A].concat(C)) : (s === "{delete}" || s === "{forwarddelete}") && A.length > 0 ? A = this.removeForwardsAt.apply(this, [A].concat(C)) : s === "{space}" ? A = this.addStringAt.apply(this, [A, " "].concat(C)) : s !== "{tab}" || typeof E.tabCharOnTab == "boolean" && E.tabCharOnTab === !1 ? s !== "{enter}" && s !== "{numpadenter}" || !E.newLineOnEnter ? s.includes("numpad") && Number.isInteger(Number(s[s.length - 2])) ? A = this.addStringAt.apply(this, [A, s[s.length - 2]].concat(C)) : s === "{numpaddivide}" ? A = this.addStringAt.apply(this, [A, "/"].concat(C)) : s === "{numpadmultiply}" ? A = this.addStringAt.apply(this, [A, "*"].concat(C)) : s === "{numpadsubtract}" ? A = this.addStringAt.apply(this, [A, "-"].concat(C)) : s === "{numpadadd}" ? A = this.addStringAt.apply(this, [A, "+"].concat(C)) : s === "{numpaddecimal}" ? A = this.addStringAt.apply(this, [A, "."].concat(C)) : s === "{" || s === "}" ? A = this.addStringAt.apply(this, [A, s].concat(C)) : s.includes("{") || s.includes("}") || (A = this.addStringAt.apply(this, [A, s].concat(C))) : A = this.addStringAt.apply(this, [A, `
|
|
2109
|
+
`].concat(C)) : A = this.addStringAt.apply(this, [A, " "].concat(C)), A;
|
|
2110
|
+
} }, { key: "updateCaretPos", value: function(s) {
|
|
2111
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], d = this.updateCaretPosAction(s, f);
|
|
2112
|
+
this.dispatch(function(y) {
|
|
2113
|
+
y.setCaretPosition(d);
|
|
2114
|
+
});
|
|
2115
|
+
} }, { key: "updateCaretPosAction", value: function(s) {
|
|
2116
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], d = this.getOptions(), y = this.getCaretPosition();
|
|
2117
|
+
return y != null && (f ? y > 0 && (y -= s) : y += s), d.debug && console.log("Caret at:", y), y;
|
|
2118
|
+
} }, { key: "addStringAt", value: function(s, f) {
|
|
2119
|
+
var d, y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : s.length, M = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : s.length, E = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
|
|
2120
|
+
return y || y === 0 ? (d = [s.slice(0, y), f, s.slice(M)].join(""), this.isMaxLengthReached() || E && this.updateCaretPos(f.length)) : d = s + f, d;
|
|
2121
|
+
} }, { key: "removeAt", value: function(s) {
|
|
2122
|
+
var f, d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : s.length, y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : s.length, M = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
2123
|
+
if (d === 0 && y === 0)
|
|
2124
|
+
return s;
|
|
2125
|
+
if (d === y) {
|
|
2126
|
+
var E = /([\uD800-\uDBFF][\uDC00-\uDFFF])/g;
|
|
2127
|
+
d && d >= 0 ? s.substring(d - 2, d).match(E) ? (f = s.substr(0, d - 2) + s.substr(d), M && this.updateCaretPos(2, !0)) : (f = s.substr(0, d - 1) + s.substr(d), M && this.updateCaretPos(1, !0)) : s.slice(-2).match(E) ? (f = s.slice(0, -2), M && this.updateCaretPos(2, !0)) : (f = s.slice(0, -1), M && this.updateCaretPos(1, !0));
|
|
2128
|
+
} else
|
|
2129
|
+
f = s.slice(0, d) + s.slice(y), M && this.dispatch(function(C) {
|
|
2130
|
+
C.setCaretPosition(d);
|
|
2131
|
+
});
|
|
2132
|
+
return f;
|
|
2133
|
+
} }, { key: "removeForwardsAt", value: function(s) {
|
|
2134
|
+
var f, d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : s.length, y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : s.length, M = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
2135
|
+
if (s == null || !s.length || d === null)
|
|
2136
|
+
return s;
|
|
2137
|
+
if (d === y) {
|
|
2138
|
+
var E = /([\uD800-\uDBFF][\uDC00-\uDFFF])/g, C = s.substring(d, d + 2), A = C.match(E);
|
|
2139
|
+
f = A ? s.substr(0, d) + s.substr(d + 2) : s.substr(0, d) + s.substr(d + 1);
|
|
2140
|
+
} else
|
|
2141
|
+
f = s.slice(0, d) + s.slice(y), M && this.dispatch(function(L) {
|
|
2142
|
+
L.setCaretPosition(d);
|
|
2143
|
+
});
|
|
2144
|
+
return f;
|
|
2145
|
+
} }, { key: "handleMaxLength", value: function(s, f) {
|
|
2146
|
+
var d = this.getOptions(), y = d.maxLength, M = s[d.inputName || "default"], E = f.length - 1 >= y;
|
|
2147
|
+
if (f.length <= M.length)
|
|
2148
|
+
return !1;
|
|
2149
|
+
if (Number.isInteger(y))
|
|
2150
|
+
return d.debug && console.log("maxLength (num) reached:", E), E ? (this.maxLengthReached = !0, !0) : (this.maxLengthReached = !1, !1);
|
|
2151
|
+
if (e(y) === "object") {
|
|
2152
|
+
var C = f.length - 1 >= y[d.inputName || "default"];
|
|
2153
|
+
return d.debug && console.log("maxLength (obj) reached:", C), C ? (this.maxLengthReached = !0, !0) : (this.maxLengthReached = !1, !1);
|
|
2154
|
+
}
|
|
2155
|
+
} }, { key: "isMaxLengthReached", value: function() {
|
|
2156
|
+
return !!this.maxLengthReached;
|
|
2157
|
+
} }, { key: "isTouchDevice", value: function() {
|
|
2158
|
+
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
2159
|
+
} }, { key: "pointerEventsSupported", value: function() {
|
|
2160
|
+
return !!window.PointerEvent;
|
|
2161
|
+
} }, { key: "camelCase", value: function(s) {
|
|
2162
|
+
return s ? s.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(f, d) {
|
|
2163
|
+
return d.length ? f + d[0].toUpperCase() + d.slice(1) : f;
|
|
2164
|
+
}) : "";
|
|
2165
|
+
} }, { key: "chunkArray", value: function(s, f) {
|
|
2166
|
+
return i(Array(Math.ceil(s.length / f))).map(function(d, y) {
|
|
2167
|
+
return s.slice(f * y, f + f * y);
|
|
2168
|
+
});
|
|
2169
|
+
} }, { key: "escapeRegex", value: function(s) {
|
|
2170
|
+
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
2171
|
+
} }, { key: "getRtlOffset", value: function(s, f) {
|
|
2172
|
+
var d = s, y = f.indexOf("");
|
|
2173
|
+
return y < s && y != -1 && d--, f.indexOf("") < s && y != -1 && d--, d < 0 ? 0 : d;
|
|
2174
|
+
} }], o = [{ key: "bindMethods", value: function(s, f) {
|
|
2175
|
+
var d, y = function(E, C) {
|
|
2176
|
+
var A = typeof Symbol < "u" && E[Symbol.iterator] || E["@@iterator"];
|
|
2177
|
+
if (!A) {
|
|
2178
|
+
if (Array.isArray(E) || (A = h(E)) || C && E && typeof E.length == "number") {
|
|
2179
|
+
A && (E = A);
|
|
2180
|
+
var L = 0, k = function() {
|
|
2181
|
+
};
|
|
2182
|
+
return { s: k, n: function() {
|
|
2183
|
+
return L >= E.length ? { done: !0 } : { done: !1, value: E[L++] };
|
|
2184
|
+
}, e: function(W) {
|
|
2185
|
+
throw W;
|
|
2186
|
+
}, f: k };
|
|
2187
|
+
}
|
|
2188
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2189
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2190
|
+
}
|
|
2191
|
+
var B, G = !0, H = !1;
|
|
2192
|
+
return { s: function() {
|
|
2193
|
+
A = A.call(E);
|
|
2194
|
+
}, n: function() {
|
|
2195
|
+
var W = A.next();
|
|
2196
|
+
return G = W.done, W;
|
|
2197
|
+
}, e: function(W) {
|
|
2198
|
+
H = !0, B = W;
|
|
2199
|
+
}, f: function() {
|
|
2200
|
+
try {
|
|
2201
|
+
G || A.return == null || A.return();
|
|
2202
|
+
} finally {
|
|
2203
|
+
if (H)
|
|
2204
|
+
throw B;
|
|
2205
|
+
}
|
|
2206
|
+
} };
|
|
2207
|
+
}(Object.getOwnPropertyNames(s.prototype));
|
|
2208
|
+
try {
|
|
2209
|
+
for (y.s(); !(d = y.n()).done; ) {
|
|
2210
|
+
var M = d.value;
|
|
2211
|
+
M === "constructor" || M === "bindMethods" || (f[M] = f[M].bind(f));
|
|
2212
|
+
}
|
|
2213
|
+
} catch (E) {
|
|
2214
|
+
y.e(E);
|
|
2215
|
+
} finally {
|
|
2216
|
+
y.f();
|
|
2217
|
+
}
|
|
2218
|
+
} }], P && r(v.prototype, P), o && r(v, o), Object.defineProperty(v, "prototype", { writable: !1 }), w;
|
|
2219
|
+
}();
|
|
2220
|
+
n(u, "noop", function() {
|
|
2221
|
+
});
|
|
2222
|
+
var c = u;
|
|
2223
|
+
function l(w) {
|
|
2224
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2225
|
+
return typeof v;
|
|
2226
|
+
} : function(v) {
|
|
2227
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2228
|
+
}, l(w);
|
|
2229
|
+
}
|
|
2230
|
+
function p(w, v) {
|
|
2231
|
+
for (var P = 0; P < v.length; P++) {
|
|
2232
|
+
var o = v[P];
|
|
2233
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(w, m(o.key), o);
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
function g(w, v, P) {
|
|
2237
|
+
return (v = m(v)) in w ? Object.defineProperty(w, v, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : w[v] = P, w;
|
|
2238
|
+
}
|
|
2239
|
+
function m(w) {
|
|
2240
|
+
var v = function(P, o) {
|
|
2241
|
+
if (l(P) !== "object" || P === null)
|
|
2242
|
+
return P;
|
|
2243
|
+
var s = P[Symbol.toPrimitive];
|
|
2244
|
+
if (s !== void 0) {
|
|
2245
|
+
var f = s.call(P, o || "default");
|
|
2246
|
+
if (l(f) !== "object")
|
|
2247
|
+
return f;
|
|
2248
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2249
|
+
}
|
|
2250
|
+
return (o === "string" ? String : Number)(P);
|
|
2251
|
+
}(w, "string");
|
|
2252
|
+
return l(v) === "symbol" ? v : String(v);
|
|
2253
|
+
}
|
|
2254
|
+
var x = function() {
|
|
2255
|
+
function w(o) {
|
|
2256
|
+
var s = this, f = o.dispatch, d = o.getOptions;
|
|
2257
|
+
(function(y, M) {
|
|
2258
|
+
if (!(y instanceof M))
|
|
2259
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2260
|
+
})(this, w), g(this, "getOptions", void 0), g(this, "dispatch", void 0), g(this, "isMofifierKey", function(y) {
|
|
2261
|
+
return y.altKey || y.ctrlKey || y.shiftKey || ["Tab", "CapsLock", "Esc", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(y.code || y.key || s.keyCodeToKey(y == null ? void 0 : y.keyCode));
|
|
2262
|
+
}), this.dispatch = f, this.getOptions = d, c.bindMethods(w, this);
|
|
2263
|
+
}
|
|
2264
|
+
var v, P;
|
|
2265
|
+
return v = w, (P = [{ key: "handleHighlightKeyDown", value: function(o) {
|
|
2266
|
+
var s = this.getOptions();
|
|
2267
|
+
s.physicalKeyboardHighlightPreventDefault && this.isMofifierKey(o) && (o.preventDefault(), o.stopImmediatePropagation());
|
|
2268
|
+
var f = this.getSimpleKeyboardLayoutKey(o);
|
|
2269
|
+
this.dispatch(function(d) {
|
|
2270
|
+
var y, M, E = d.getButtonElement(f), C = d.getButtonElement("{".concat(f, "}"));
|
|
2271
|
+
if (E)
|
|
2272
|
+
y = E, M = f;
|
|
2273
|
+
else {
|
|
2274
|
+
if (!C)
|
|
2275
|
+
return;
|
|
2276
|
+
y = C, M = "{".concat(f, "}");
|
|
2277
|
+
}
|
|
2278
|
+
var A, L = function(B) {
|
|
2279
|
+
B.style.background = s.physicalKeyboardHighlightBgColor || "#dadce4", B.style.color = s.physicalKeyboardHighlightTextColor || "black";
|
|
2280
|
+
};
|
|
2281
|
+
if (y)
|
|
2282
|
+
if (Array.isArray(y)) {
|
|
2283
|
+
if (y.forEach(function(B) {
|
|
2284
|
+
return L(B);
|
|
2285
|
+
}), s.physicalKeyboardHighlightPress)
|
|
2286
|
+
if (s.physicalKeyboardHighlightPressUsePointerEvents)
|
|
2287
|
+
(A = y[0]) === null || A === void 0 || A.onpointerdown();
|
|
2288
|
+
else if (s.physicalKeyboardHighlightPressUseClick) {
|
|
2289
|
+
var k;
|
|
2290
|
+
(k = y[0]) === null || k === void 0 || k.click();
|
|
2291
|
+
} else
|
|
2292
|
+
d.handleButtonClicked(M, o);
|
|
2293
|
+
} else
|
|
2294
|
+
L(y), s.physicalKeyboardHighlightPress && (s.physicalKeyboardHighlightPressUsePointerEvents ? y.onpointerdown() : s.physicalKeyboardHighlightPressUseClick ? y.click() : d.handleButtonClicked(M, o));
|
|
2295
|
+
});
|
|
2296
|
+
} }, { key: "handleHighlightKeyUp", value: function(o) {
|
|
2297
|
+
var s = this.getOptions();
|
|
2298
|
+
s.physicalKeyboardHighlightPreventDefault && this.isMofifierKey(o) && (o.preventDefault(), o.stopImmediatePropagation());
|
|
2299
|
+
var f = this.getSimpleKeyboardLayoutKey(o);
|
|
2300
|
+
this.dispatch(function(d) {
|
|
2301
|
+
var y, M = d.getButtonElement(f) || d.getButtonElement("{".concat(f, "}")), E = function(C) {
|
|
2302
|
+
C.removeAttribute && C.removeAttribute("style");
|
|
2303
|
+
};
|
|
2304
|
+
M && (Array.isArray(M) ? (M.forEach(function(C) {
|
|
2305
|
+
return E(C);
|
|
2306
|
+
}), s.physicalKeyboardHighlightPressUsePointerEvents && ((y = M[0]) === null || y === void 0 || y.onpointerup())) : (E(M), s.physicalKeyboardHighlightPressUsePointerEvents && M.onpointerup()));
|
|
2307
|
+
});
|
|
2308
|
+
} }, { key: "getSimpleKeyboardLayoutKey", value: function(o) {
|
|
2309
|
+
var s, f = "", d = o.code || o.key || this.keyCodeToKey(o == null ? void 0 : o.keyCode);
|
|
2310
|
+
return (f = d != null && d.includes("Numpad") || d != null && d.includes("Shift") || d != null && d.includes("Space") || d != null && d.includes("Backspace") || d != null && d.includes("Control") || d != null && d.includes("Alt") || d != null && d.includes("Meta") ? o.code || "" : o.key || this.keyCodeToKey(o == null ? void 0 : o.keyCode) || "").length > 1 ? (s = f) === null || s === void 0 ? void 0 : s.toLowerCase() : f;
|
|
2311
|
+
} }, { key: "keyCodeToKey", value: function(o) {
|
|
2312
|
+
return { 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 48: "0", 49: "1", 50: "2", 51: "3", 52: "4", 53: "5", 54: "6", 55: "7", 56: "8", 57: "9", 65: "A", 66: "B", 67: "C", 68: "D", 69: "E", 70: "F", 71: "G", 72: "H", 73: "I", 74: "J", 75: "K", 76: "L", 77: "M", 78: "N", 79: "O", 80: "P", 81: "Q", 82: "R", 83: "S", 84: "T", 85: "U", 86: "V", 87: "W", 88: "X", 89: "Y", 90: "Z", 91: "Meta", 96: "Numpad0", 97: "Numpad1", 98: "Numpad2", 99: "Numpad3", 100: "Numpad4", 101: "Numpad5", 102: "Numpad6", 103: "Numpad7", 104: "Numpad8", 105: "Numpad9", 106: "NumpadMultiply", 107: "NumpadAdd", 109: "NumpadSubtract", 110: "NumpadDecimal", 111: "NumpadDivide", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'" }[o] || "";
|
|
2313
|
+
} }]) && p(v.prototype, P), Object.defineProperty(v, "prototype", { writable: !1 }), w;
|
|
2314
|
+
}();
|
|
2315
|
+
function b(w) {
|
|
2316
|
+
return b = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2317
|
+
return typeof v;
|
|
2318
|
+
} : function(v) {
|
|
2319
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2320
|
+
}, b(w);
|
|
2321
|
+
}
|
|
2322
|
+
function I(w, v) {
|
|
2323
|
+
for (var P = 0; P < v.length; P++) {
|
|
2324
|
+
var o = v[P];
|
|
2325
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(w, O(o.key), o);
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
function S(w, v, P) {
|
|
2329
|
+
return (v = O(v)) in w ? Object.defineProperty(w, v, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : w[v] = P, w;
|
|
2330
|
+
}
|
|
2331
|
+
function O(w) {
|
|
2332
|
+
var v = function(P, o) {
|
|
2333
|
+
if (b(P) !== "object" || P === null)
|
|
2334
|
+
return P;
|
|
2335
|
+
var s = P[Symbol.toPrimitive];
|
|
2336
|
+
if (s !== void 0) {
|
|
2337
|
+
var f = s.call(P, o || "default");
|
|
2338
|
+
if (b(f) !== "object")
|
|
2339
|
+
return f;
|
|
2340
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2341
|
+
}
|
|
2342
|
+
return (o === "string" ? String : Number)(P);
|
|
2343
|
+
}(w, "string");
|
|
2344
|
+
return b(v) === "symbol" ? v : String(v);
|
|
2345
|
+
}
|
|
2346
|
+
var N = function() {
|
|
2347
|
+
function w(o) {
|
|
2348
|
+
var s = o.utilities, f = o.options;
|
|
2349
|
+
(function(d, y) {
|
|
2350
|
+
if (!(d instanceof y))
|
|
2351
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2352
|
+
})(this, w), S(this, "utilities", void 0), S(this, "options", void 0), S(this, "candidateBoxElement", void 0), S(this, "pageIndex", 0), S(this, "pageSize", void 0), this.utilities = s, this.options = f, c.bindMethods(w, this), this.pageSize = this.utilities.getOptions().layoutCandidatesPageSize || 5;
|
|
2353
|
+
}
|
|
2354
|
+
var v, P;
|
|
2355
|
+
return v = w, P = [{ key: "destroy", value: function() {
|
|
2356
|
+
this.candidateBoxElement && (this.candidateBoxElement.remove(), this.pageIndex = 0);
|
|
2357
|
+
} }, { key: "show", value: function(o) {
|
|
2358
|
+
var s = this, f = o.candidateValue, d = o.targetElement, y = o.onSelect;
|
|
2359
|
+
if (f && f.length) {
|
|
2360
|
+
var M = this.utilities.chunkArray(f.split(" "), this.pageSize);
|
|
2361
|
+
this.renderPage({ candidateListPages: M, targetElement: d, pageIndex: this.pageIndex, nbPages: M.length, onItemSelected: function(E, C) {
|
|
2362
|
+
y(E, C), s.destroy();
|
|
2363
|
+
} });
|
|
2364
|
+
}
|
|
2365
|
+
} }, { key: "renderPage", value: function(o) {
|
|
2366
|
+
var s, f = this, d = o.candidateListPages, y = o.targetElement, M = o.pageIndex, E = o.nbPages, C = o.onItemSelected;
|
|
2367
|
+
(s = this.candidateBoxElement) === null || s === void 0 || s.remove(), this.candidateBoxElement = document.createElement("div"), this.candidateBoxElement.className = "hg-candidate-box";
|
|
2368
|
+
var A = document.createElement("ul");
|
|
2369
|
+
A.className = "hg-candidate-box-list", d[M].forEach(function(H) {
|
|
2370
|
+
var W, Z = document.createElement("li"), nt = function() {
|
|
2371
|
+
var rt = new MouseEvent("click");
|
|
2372
|
+
return Object.defineProperty(rt, "target", { value: Z }), rt;
|
|
2373
|
+
};
|
|
2374
|
+
Z.className = "hg-candidate-box-list-item", Z.innerHTML = ((W = f.options.display) === null || W === void 0 ? void 0 : W[H]) || H, Z.onclick = function() {
|
|
2375
|
+
var rt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : nt();
|
|
2376
|
+
return C(H, rt);
|
|
2377
|
+
}, A.appendChild(Z);
|
|
2378
|
+
});
|
|
2379
|
+
var L = M > 0, k = document.createElement("div");
|
|
2380
|
+
k.classList.add("hg-candidate-box-prev"), L && k.classList.add("hg-candidate-box-btn-active"), k.onclick = function() {
|
|
2381
|
+
L && f.renderPage({ candidateListPages: d, targetElement: y, pageIndex: M - 1, nbPages: E, onItemSelected: C });
|
|
2382
|
+
}, this.candidateBoxElement.appendChild(k), this.candidateBoxElement.appendChild(A);
|
|
2383
|
+
var B = M < E - 1, G = document.createElement("div");
|
|
2384
|
+
G.classList.add("hg-candidate-box-next"), B && G.classList.add("hg-candidate-box-btn-active"), G.onclick = function() {
|
|
2385
|
+
B && f.renderPage({ candidateListPages: d, targetElement: y, pageIndex: M + 1, nbPages: E, onItemSelected: C });
|
|
2386
|
+
}, this.candidateBoxElement.appendChild(G), y.prepend(this.candidateBoxElement);
|
|
2387
|
+
} }], P && I(v.prototype, P), Object.defineProperty(v, "prototype", { writable: !1 }), w;
|
|
2388
|
+
}(), D = N;
|
|
2389
|
+
function F(w) {
|
|
2390
|
+
return function(v) {
|
|
2391
|
+
if (Array.isArray(v))
|
|
2392
|
+
return T(v);
|
|
2393
|
+
}(w) || function(v) {
|
|
2394
|
+
if (typeof Symbol < "u" && v[Symbol.iterator] != null || v["@@iterator"] != null)
|
|
2395
|
+
return Array.from(v);
|
|
2396
|
+
}(w) || function(v, P) {
|
|
2397
|
+
if (v) {
|
|
2398
|
+
if (typeof v == "string")
|
|
2399
|
+
return T(v, P);
|
|
2400
|
+
var o = Object.prototype.toString.call(v).slice(8, -1);
|
|
2401
|
+
if (o === "Object" && v.constructor && (o = v.constructor.name), o === "Map" || o === "Set")
|
|
2402
|
+
return Array.from(v);
|
|
2403
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
|
2404
|
+
return T(v, P);
|
|
2405
|
+
}
|
|
2406
|
+
}(w) || function() {
|
|
2407
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2408
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2409
|
+
}();
|
|
2410
|
+
}
|
|
2411
|
+
function T(w, v) {
|
|
2412
|
+
(v == null || v > w.length) && (v = w.length);
|
|
2413
|
+
for (var P = 0, o = new Array(v); P < v; P++)
|
|
2414
|
+
o[P] = w[P];
|
|
2415
|
+
return o;
|
|
2416
|
+
}
|
|
2417
|
+
function _(w) {
|
|
2418
|
+
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2419
|
+
return typeof v;
|
|
2420
|
+
} : function(v) {
|
|
2421
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2422
|
+
}, _(w);
|
|
2423
|
+
}
|
|
2424
|
+
function R(w, v) {
|
|
2425
|
+
var P = Object.keys(w);
|
|
2426
|
+
if (Object.getOwnPropertySymbols) {
|
|
2427
|
+
var o = Object.getOwnPropertySymbols(w);
|
|
2428
|
+
v && (o = o.filter(function(s) {
|
|
2429
|
+
return Object.getOwnPropertyDescriptor(w, s).enumerable;
|
|
2430
|
+
})), P.push.apply(P, o);
|
|
2431
|
+
}
|
|
2432
|
+
return P;
|
|
2433
|
+
}
|
|
2434
|
+
function K(w, v) {
|
|
2435
|
+
for (var P = 0; P < v.length; P++) {
|
|
2436
|
+
var o = v[P];
|
|
2437
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(w, z(o.key), o);
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
function j(w, v, P) {
|
|
2441
|
+
return (v = z(v)) in w ? Object.defineProperty(w, v, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : w[v] = P, w;
|
|
2442
|
+
}
|
|
2443
|
+
function z(w) {
|
|
2444
|
+
var v = function(P, o) {
|
|
2445
|
+
if (_(P) !== "object" || P === null)
|
|
2446
|
+
return P;
|
|
2447
|
+
var s = P[Symbol.toPrimitive];
|
|
2448
|
+
if (s !== void 0) {
|
|
2449
|
+
var f = s.call(P, o || "default");
|
|
2450
|
+
if (_(f) !== "object")
|
|
2451
|
+
return f;
|
|
2452
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2453
|
+
}
|
|
2454
|
+
return (o === "string" ? String : Number)(P);
|
|
2455
|
+
}(w, "string");
|
|
2456
|
+
return _(v) === "symbol" ? v : String(v);
|
|
2457
|
+
}
|
|
2458
|
+
var U = function() {
|
|
2459
|
+
function w(o, s) {
|
|
2460
|
+
var f = this;
|
|
2461
|
+
if (function(k, B) {
|
|
2462
|
+
if (!(k instanceof B))
|
|
2463
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2464
|
+
}(this, w), j(this, "input", void 0), j(this, "options", void 0), j(this, "utilities", void 0), j(this, "caretPosition", void 0), j(this, "caretPositionEnd", void 0), j(this, "keyboardDOM", void 0), j(this, "keyboardPluginClasses", void 0), j(this, "keyboardDOMClass", void 0), j(this, "buttonElements", void 0), j(this, "currentInstanceName", void 0), j(this, "allKeyboardInstances", void 0), j(this, "keyboardInstanceNames", void 0), j(this, "isFirstKeyboardInstance", void 0), j(this, "physicalKeyboard", void 0), j(this, "modules", void 0), j(this, "activeButtonClass", void 0), j(this, "holdInteractionTimeout", void 0), j(this, "holdTimeout", void 0), j(this, "isMouseHold", void 0), j(this, "initialized", void 0), j(this, "candidateBox", void 0), j(this, "keyboardRowsDOM", void 0), j(this, "defaultName", "default"), j(this, "activeInputElement", null), j(this, "handleParams", function(k, B) {
|
|
2465
|
+
var G, H, W;
|
|
2466
|
+
if (typeof k == "string")
|
|
2467
|
+
G = k.split(".").join(""), H = document.querySelector(".".concat(G)), W = B;
|
|
2468
|
+
else if (k instanceof HTMLDivElement) {
|
|
2469
|
+
if (!k.className)
|
|
2470
|
+
throw console.warn("Any DOM element passed as parameter must have a class."), new Error("KEYBOARD_DOM_CLASS_ERROR");
|
|
2471
|
+
G = k.className.split(" ")[0], H = k, W = B;
|
|
2472
|
+
} else
|
|
2473
|
+
G = "simple-keyboard", H = document.querySelector(".".concat(G)), W = k;
|
|
2474
|
+
return { keyboardDOMClass: G, keyboardDOM: H, options: W };
|
|
2475
|
+
}), j(this, "getOptions", function() {
|
|
2476
|
+
return f.options;
|
|
2477
|
+
}), j(this, "getCaretPosition", function() {
|
|
2478
|
+
return f.caretPosition;
|
|
2479
|
+
}), j(this, "getCaretPositionEnd", function() {
|
|
2480
|
+
return f.caretPositionEnd;
|
|
2481
|
+
}), j(this, "registerModule", function(k, B) {
|
|
2482
|
+
f.modules[k] || (f.modules[k] = {}), B(f.modules[k]);
|
|
2483
|
+
}), j(this, "getKeyboardClassString", function() {
|
|
2484
|
+
for (var k = arguments.length, B = new Array(k), G = 0; G < k; G++)
|
|
2485
|
+
B[G] = arguments[G];
|
|
2486
|
+
var H = [f.keyboardDOMClass].concat(B).filter(function(W) {
|
|
2487
|
+
return !!W;
|
|
2488
|
+
});
|
|
2489
|
+
return H.join(" ");
|
|
2490
|
+
}), typeof window < "u") {
|
|
2491
|
+
var d = this.handleParams(o, s), y = d.keyboardDOMClass, M = d.keyboardDOM, E = d.options, C = E === void 0 ? {} : E;
|
|
2492
|
+
this.utilities = new c({ getOptions: this.getOptions, getCaretPosition: this.getCaretPosition, getCaretPositionEnd: this.getCaretPositionEnd, dispatch: this.dispatch }), this.caretPosition = null, this.caretPositionEnd = null, this.keyboardDOM = M, this.options = function(k) {
|
|
2493
|
+
for (var B = 1; B < arguments.length; B++) {
|
|
2494
|
+
var G = arguments[B] != null ? arguments[B] : {};
|
|
2495
|
+
B % 2 ? R(Object(G), !0).forEach(function(H) {
|
|
2496
|
+
j(k, H, G[H]);
|
|
2497
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(k, Object.getOwnPropertyDescriptors(G)) : R(Object(G)).forEach(function(H) {
|
|
2498
|
+
Object.defineProperty(k, H, Object.getOwnPropertyDescriptor(G, H));
|
|
2499
|
+
});
|
|
2500
|
+
}
|
|
2501
|
+
return k;
|
|
2502
|
+
}({ layoutName: "default", theme: "hg-theme-default", inputName: "default", preventMouseDownDefault: !1, enableLayoutCandidates: !0, excludeFromLayout: {} }, C), this.keyboardPluginClasses = "", c.bindMethods(w, this);
|
|
2503
|
+
var A = this.options.inputName, L = A === void 0 ? this.defaultName : A;
|
|
2504
|
+
if (this.input = {}, this.input[L] = "", this.keyboardDOMClass = y, this.buttonElements = {}, window.SimpleKeyboardInstances || (window.SimpleKeyboardInstances = {}), this.currentInstanceName = this.utilities.camelCase(this.keyboardDOMClass), window.SimpleKeyboardInstances[this.currentInstanceName] = this, this.allKeyboardInstances = window.SimpleKeyboardInstances, this.keyboardInstanceNames = Object.keys(window.SimpleKeyboardInstances), this.isFirstKeyboardInstance = this.keyboardInstanceNames[0] === this.currentInstanceName, this.physicalKeyboard = new x({ dispatch: this.dispatch, getOptions: this.getOptions }), this.candidateBox = this.options.enableLayoutCandidates ? new D({ utilities: this.utilities, options: this.options }) : null, !this.keyboardDOM)
|
|
2505
|
+
throw console.warn('".'.concat(y, '" was not found in the DOM.')), new Error("KEYBOARD_DOM_ERROR");
|
|
2506
|
+
this.render(), this.modules = {}, this.loadModules();
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
var v, P;
|
|
2510
|
+
return v = w, P = [{ key: "setCaretPosition", value: function(o) {
|
|
2511
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o;
|
|
2512
|
+
this.caretPosition = o, this.caretPositionEnd = s;
|
|
2513
|
+
} }, { key: "getInputCandidates", value: function(o) {
|
|
2514
|
+
var s = this, f = this.options, d = f.layoutCandidates, y = f.layoutCandidatesCaseSensitiveMatch;
|
|
2515
|
+
if (!d || _(d) !== "object")
|
|
2516
|
+
return {};
|
|
2517
|
+
var M = Object.keys(d).filter(function(A) {
|
|
2518
|
+
var L = o.substring(0, s.getCaretPositionEnd() || 0) || o, k = new RegExp("".concat(s.utilities.escapeRegex(A), "$"), y ? "g" : "gi");
|
|
2519
|
+
return !!F(L.matchAll(k)).length;
|
|
2520
|
+
});
|
|
2521
|
+
if (M.length > 1) {
|
|
2522
|
+
var E = M.sort(function(A, L) {
|
|
2523
|
+
return L.length - A.length;
|
|
2524
|
+
})[0];
|
|
2525
|
+
return { candidateKey: E, candidateValue: d[E] };
|
|
2526
|
+
}
|
|
2527
|
+
if (M.length) {
|
|
2528
|
+
var C = M[0];
|
|
2529
|
+
return { candidateKey: C, candidateValue: d[C] };
|
|
2530
|
+
}
|
|
2531
|
+
return {};
|
|
2532
|
+
} }, { key: "showCandidatesBox", value: function(o, s, f) {
|
|
2533
|
+
var d = this;
|
|
2534
|
+
this.candidateBox && this.candidateBox.show({ candidateValue: s, targetElement: f, onSelect: function(y, M) {
|
|
2535
|
+
var E = d.options, C = E.layoutCandidatesCaseSensitiveMatch, A = y;
|
|
2536
|
+
E.disableCandidateNormalization || (A = y.normalize("NFD"));
|
|
2537
|
+
var L = d.getInput(d.options.inputName, !0), k = d.getCaretPositionEnd() || 0, B = L.substring(0, k || 0) || L, G = new RegExp("".concat(d.utilities.escapeRegex(o), "$"), C ? "g" : "gi"), H = B.replace(G, A), W = L.replace(B, H), Z = H.length - B.length, nt = (k || L.length) + Z;
|
|
2538
|
+
nt < 0 && (nt = 0), d.setInput(W, d.options.inputName, !0), d.setCaretPosition(nt), typeof d.options.onChange == "function" && d.options.onChange(d.getInput(d.options.inputName, !0), M), typeof d.options.onChangeAll == "function" && d.options.onChangeAll(d.getAllInputs(), M);
|
|
2539
|
+
} });
|
|
2540
|
+
} }, { key: "handleButtonClicked", value: function(o, s) {
|
|
2541
|
+
var f = this.options, d = f.inputName, y = d === void 0 ? this.defaultName : d, M = f.debug;
|
|
2542
|
+
if (o !== "{//}") {
|
|
2543
|
+
this.input[y] || (this.input[y] = "");
|
|
2544
|
+
var E = this.utilities.getUpdatedInput(o, this.input[y], this.caretPosition, this.caretPositionEnd);
|
|
2545
|
+
if (this.utilities.isStandardButton(o) && this.activeInputElement && this.input[y] && this.input[y] === E && this.caretPosition === 0 && this.caretPositionEnd === E.length)
|
|
2546
|
+
return this.setInput("", this.options.inputName, !0), this.setCaretPosition(0), this.activeInputElement.value = "", this.activeInputElement.setSelectionRange(0, 0), void this.handleButtonClicked(o, s);
|
|
2547
|
+
if (typeof this.options.onKeyPress == "function" && this.options.onKeyPress(o, s), this.input[y] !== E && (!this.options.inputPattern || this.options.inputPattern && this.inputPatternIsValid(E))) {
|
|
2548
|
+
if (this.options.maxLength && this.utilities.handleMaxLength(this.input, E))
|
|
2549
|
+
return;
|
|
2550
|
+
var C = this.utilities.getUpdatedInput(o, this.input[y], this.caretPosition, this.caretPositionEnd, !0);
|
|
2551
|
+
if (this.setInput(C, this.options.inputName, !0), M && console.log("Input changed:", this.getAllInputs()), this.options.debug && console.log("Caret at: ", this.getCaretPosition(), this.getCaretPositionEnd(), "(".concat(this.keyboardDOMClass, ")")), this.options.syncInstanceInputs && this.syncInstanceInputs(), typeof this.options.onChange == "function" && this.options.onChange(this.getInput(this.options.inputName, !0), s), typeof this.options.onChangeAll == "function" && this.options.onChangeAll(this.getAllInputs(), s), s != null && s.target && this.options.enableLayoutCandidates) {
|
|
2552
|
+
var A, L = this.getInputCandidates(E), k = L.candidateKey, B = L.candidateValue;
|
|
2553
|
+
k && B ? this.showCandidatesBox(k, B, this.keyboardDOM) : (A = this.candidateBox) === null || A === void 0 || A.destroy();
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
M && console.log("Key pressed:", o);
|
|
2557
|
+
}
|
|
2558
|
+
} }, { key: "getMouseHold", value: function() {
|
|
2559
|
+
return this.isMouseHold;
|
|
2560
|
+
} }, { key: "setMouseHold", value: function(o) {
|
|
2561
|
+
this.options.syncInstanceInputs ? this.dispatch(function(s) {
|
|
2562
|
+
s.isMouseHold = o;
|
|
2563
|
+
}) : this.isMouseHold = o;
|
|
2564
|
+
} }, { key: "handleButtonMouseDown", value: function(o, s) {
|
|
2565
|
+
var f = this;
|
|
2566
|
+
s && (this.options.preventMouseDownDefault && s.preventDefault(), this.options.stopMouseDownPropagation && s.stopPropagation(), s.target.classList.add(this.activeButtonClass)), this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), this.holdTimeout && clearTimeout(this.holdTimeout), this.setMouseHold(!0), this.options.disableButtonHold || (this.holdTimeout = window.setTimeout(function() {
|
|
2567
|
+
(f.getMouseHold() && (!o.includes("{") && !o.includes("}") || o === "{delete}" || o === "{backspace}" || o === "{bksp}" || o === "{space}" || o === "{tab}") || o === "{arrowright}" || o === "{arrowleft}" || o === "{arrowup}" || o === "{arrowdown}") && (f.options.debug && console.log("Button held:", o), f.handleButtonHold(o)), clearTimeout(f.holdTimeout);
|
|
2568
|
+
}, 500));
|
|
2569
|
+
} }, { key: "handleButtonMouseUp", value: function(o, s) {
|
|
2570
|
+
var f = this;
|
|
2571
|
+
s && (this.options.preventMouseUpDefault && s.preventDefault && s.preventDefault(), this.options.stopMouseUpPropagation && s.stopPropagation && s.stopPropagation(), !(s.target === this.keyboardDOM || s.target && this.keyboardDOM.contains(s.target) || this.candidateBox && this.candidateBox.candidateBoxElement && (s.target === this.candidateBox.candidateBoxElement || s.target && this.candidateBox.candidateBoxElement.contains(s.target))) && this.candidateBox && this.candidateBox.destroy()), this.recurseButtons(function(d) {
|
|
2572
|
+
d.classList.remove(f.activeButtonClass);
|
|
2573
|
+
}), this.setMouseHold(!1), this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), o && typeof this.options.onKeyReleased == "function" && this.options.onKeyReleased(o, s);
|
|
2574
|
+
} }, { key: "handleKeyboardContainerMouseDown", value: function(o) {
|
|
2575
|
+
this.options.preventMouseDownDefault && o.preventDefault();
|
|
2576
|
+
} }, { key: "handleButtonHold", value: function(o) {
|
|
2577
|
+
var s = this;
|
|
2578
|
+
this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), this.holdInteractionTimeout = window.setTimeout(function() {
|
|
2579
|
+
s.getMouseHold() ? (s.handleButtonClicked(o), s.handleButtonHold(o)) : clearTimeout(s.holdInteractionTimeout);
|
|
2580
|
+
}, 100);
|
|
2581
|
+
} }, { key: "syncInstanceInputs", value: function() {
|
|
2582
|
+
var o = this;
|
|
2583
|
+
this.dispatch(function(s) {
|
|
2584
|
+
s.replaceInput(o.input), s.setCaretPosition(o.caretPosition, o.caretPositionEnd);
|
|
2585
|
+
});
|
|
2586
|
+
} }, { key: "clearInput", value: function() {
|
|
2587
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.inputName || this.defaultName;
|
|
2588
|
+
this.input[o] = "", this.setCaretPosition(0), this.options.syncInstanceInputs && this.syncInstanceInputs();
|
|
2589
|
+
} }, { key: "getInput", value: function() {
|
|
2590
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.inputName || this.defaultName, s = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
2591
|
+
if (this.options.syncInstanceInputs && !s && this.syncInstanceInputs(), this.options.rtl) {
|
|
2592
|
+
var f = this.input[o].replace("", "").replace("", "");
|
|
2593
|
+
return "" + f + "";
|
|
2594
|
+
}
|
|
2595
|
+
return this.input[o];
|
|
2596
|
+
} }, { key: "getAllInputs", value: function() {
|
|
2597
|
+
var o = this, s = {};
|
|
2598
|
+
return Object.keys(this.input).forEach(function(f) {
|
|
2599
|
+
s[f] = o.getInput(f, !0);
|
|
2600
|
+
}), s;
|
|
2601
|
+
} }, { key: "setInput", value: function(o) {
|
|
2602
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.inputName || this.defaultName, f = arguments.length > 2 ? arguments[2] : void 0;
|
|
2603
|
+
this.input[s] = o, !f && this.options.syncInstanceInputs && this.syncInstanceInputs();
|
|
2604
|
+
} }, { key: "replaceInput", value: function(o) {
|
|
2605
|
+
this.input = o;
|
|
2606
|
+
} }, { key: "setOptions", value: function() {
|
|
2607
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = this.changedOptions(o);
|
|
2608
|
+
this.options = Object.assign(this.options, o), s.length && (this.options.debug && console.log("changedOptions", s), this.onSetOptions(s), this.render());
|
|
2609
|
+
} }, { key: "changedOptions", value: function(o) {
|
|
2610
|
+
var s = this;
|
|
2611
|
+
return Object.keys(o).filter(function(f) {
|
|
2612
|
+
return JSON.stringify(o[f]) !== JSON.stringify(s.options[f]);
|
|
2613
|
+
});
|
|
2614
|
+
} }, { key: "onSetOptions", value: function() {
|
|
2615
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
2616
|
+
o.includes("layoutName") && this.candidateBox && this.candidateBox.destroy(), (o.includes("layoutCandidatesPageSize") || o.includes("layoutCandidates")) && this.candidateBox && (this.candidateBox.destroy(), this.candidateBox = new D({ utilities: this.utilities, options: this.options }));
|
|
2617
|
+
} }, { key: "resetRows", value: function() {
|
|
2618
|
+
this.keyboardRowsDOM && this.keyboardRowsDOM.remove(), this.keyboardDOM.className = this.keyboardDOMClass, this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.buttonElements = {};
|
|
2619
|
+
} }, { key: "dispatch", value: function(o) {
|
|
2620
|
+
if (!window.SimpleKeyboardInstances)
|
|
2621
|
+
throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."), new Error("INSTANCES_VAR_ERROR");
|
|
2622
|
+
return Object.keys(window.SimpleKeyboardInstances).forEach(function(s) {
|
|
2623
|
+
o(window.SimpleKeyboardInstances[s], s);
|
|
2624
|
+
});
|
|
2625
|
+
} }, { key: "addButtonTheme", value: function(o, s) {
|
|
2626
|
+
var f = this;
|
|
2627
|
+
s && o && (o.split(" ").forEach(function(d) {
|
|
2628
|
+
s.split(" ").forEach(function(y) {
|
|
2629
|
+
f.options.buttonTheme || (f.options.buttonTheme = []);
|
|
2630
|
+
var M = !1;
|
|
2631
|
+
f.options.buttonTheme.map(function(E) {
|
|
2632
|
+
if (E != null && E.class.split(" ").includes(y)) {
|
|
2633
|
+
M = !0;
|
|
2634
|
+
var C = E.buttons.split(" ");
|
|
2635
|
+
C.includes(d) || (M = !0, C.push(d), E.buttons = C.join(" "));
|
|
2636
|
+
}
|
|
2637
|
+
return E;
|
|
2638
|
+
}), M || f.options.buttonTheme.push({ class: y, buttons: o });
|
|
2639
|
+
});
|
|
2640
|
+
}), this.render());
|
|
2641
|
+
} }, { key: "removeButtonTheme", value: function(o, s) {
|
|
2642
|
+
var f = this;
|
|
2643
|
+
if (!o && !s)
|
|
2644
|
+
return this.options.buttonTheme = [], void this.render();
|
|
2645
|
+
o && Array.isArray(this.options.buttonTheme) && this.options.buttonTheme.length && (o.split(" ").forEach(function(d) {
|
|
2646
|
+
var y, M;
|
|
2647
|
+
(y = f.options) === null || y === void 0 || (M = y.buttonTheme) === null || M === void 0 || M.map(function(E, C) {
|
|
2648
|
+
if (E && s && s.includes(E.class) || !s) {
|
|
2649
|
+
var A, L, k = (A = E) === null || A === void 0 ? void 0 : A.buttons.split(" ").filter(function(B) {
|
|
2650
|
+
return B !== d;
|
|
2651
|
+
});
|
|
2652
|
+
E && k != null && k.length ? E.buttons = k.join(" ") : ((L = f.options.buttonTheme) === null || L === void 0 || L.splice(C, 1), E = null);
|
|
2653
|
+
}
|
|
2654
|
+
return E;
|
|
2655
|
+
});
|
|
2656
|
+
}), this.render());
|
|
2657
|
+
} }, { key: "getButtonElement", value: function(o) {
|
|
2658
|
+
var s, f = this.buttonElements[o];
|
|
2659
|
+
return f && (s = f.length > 1 ? f : f[0]), s;
|
|
2660
|
+
} }, { key: "inputPatternIsValid", value: function(o) {
|
|
2661
|
+
var s, f = this.options.inputPattern;
|
|
2662
|
+
if ((s = f instanceof RegExp ? f : f[this.options.inputName || this.defaultName]) && o) {
|
|
2663
|
+
var d = s.test(o);
|
|
2664
|
+
return this.options.debug && console.log('inputPattern ("'.concat(s, '"): ').concat(d ? "passed" : "did not pass!")), d;
|
|
2665
|
+
}
|
|
2666
|
+
return !0;
|
|
2667
|
+
} }, { key: "setEventListeners", value: function() {
|
|
2668
|
+
if (this.isFirstKeyboardInstance || !this.allKeyboardInstances) {
|
|
2669
|
+
this.options.debug && console.log("Caret handling started (".concat(this.keyboardDOMClass, ")"));
|
|
2670
|
+
var o = this.options.physicalKeyboardHighlightPreventDefault, s = o !== void 0 && o;
|
|
2671
|
+
document.addEventListener("keyup", this.handleKeyUp, s), document.addEventListener("keydown", this.handleKeyDown, s), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("touchend", this.handleTouchEnd), document.addEventListener("select", this.handleSelect), document.addEventListener("selectionchange", this.handleSelectionChange);
|
|
2672
|
+
}
|
|
2673
|
+
} }, { key: "handleKeyUp", value: function(o) {
|
|
2674
|
+
this.caretEventHandler(o), this.options.physicalKeyboardHighlight && this.physicalKeyboard.handleHighlightKeyUp(o);
|
|
2675
|
+
} }, { key: "handleKeyDown", value: function(o) {
|
|
2676
|
+
this.options.physicalKeyboardHighlight && this.physicalKeyboard.handleHighlightKeyDown(o);
|
|
2677
|
+
} }, { key: "handleMouseUp", value: function(o) {
|
|
2678
|
+
this.caretEventHandler(o);
|
|
2679
|
+
} }, { key: "handleTouchEnd", value: function(o) {
|
|
2680
|
+
this.caretEventHandler(o);
|
|
2681
|
+
} }, { key: "handleSelect", value: function(o) {
|
|
2682
|
+
this.caretEventHandler(o);
|
|
2683
|
+
} }, { key: "handleSelectionChange", value: function(o) {
|
|
2684
|
+
navigator.userAgent.includes("Firefox") || this.caretEventHandler(o);
|
|
2685
|
+
} }, { key: "caretEventHandler", value: function(o) {
|
|
2686
|
+
var s, f = this;
|
|
2687
|
+
o.target.tagName && (s = o.target.tagName.toLowerCase()), this.dispatch(function(d) {
|
|
2688
|
+
var y = o.target === d.keyboardDOM || o.target && d.keyboardDOM.contains(o.target);
|
|
2689
|
+
if (f.options.syncInstanceInputs && Array.isArray(o.path) && (y = o.path.some(function(C) {
|
|
2690
|
+
var A;
|
|
2691
|
+
return C == null || (A = C.hasAttribute) === null || A === void 0 ? void 0 : A.call(C, "data-skInstance");
|
|
2692
|
+
})), (s === "textarea" || s === "input" && ["text", "search", "url", "tel", "password"].includes(o.target.type)) && !d.options.disableCaretPositioning) {
|
|
2693
|
+
var M = o.target.selectionStart, E = o.target.selectionEnd;
|
|
2694
|
+
d.options.rtl && (M = d.utilities.getRtlOffset(M, d.getInput()), E = d.utilities.getRtlOffset(E, d.getInput())), d.setCaretPosition(M, E), f.activeInputElement = o.target, d.options.debug && console.log("Caret at: ", d.getCaretPosition(), d.getCaretPositionEnd(), o && o.target.tagName.toLowerCase(), "(".concat(d.keyboardDOMClass, ")"));
|
|
2695
|
+
} else
|
|
2696
|
+
!d.options.disableCaretPositioning && y || (o == null ? void 0 : o.type) === "selectionchange" || (d.setCaretPosition(null), f.activeInputElement = null, d.options.debug && console.log('Caret position reset due to "'.concat(o == null ? void 0 : o.type, '" event'), o));
|
|
2697
|
+
});
|
|
2698
|
+
} }, { key: "recurseButtons", value: function(o) {
|
|
2699
|
+
var s = this;
|
|
2700
|
+
o && Object.keys(this.buttonElements).forEach(function(f) {
|
|
2701
|
+
return s.buttonElements[f].forEach(o);
|
|
2702
|
+
});
|
|
2703
|
+
} }, { key: "destroy", value: function() {
|
|
2704
|
+
this.options.debug && console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));
|
|
2705
|
+
var o = this.options.physicalKeyboardHighlightPreventDefault, s = o !== void 0 && o;
|
|
2706
|
+
document.removeEventListener("keyup", this.handleKeyUp, s), document.removeEventListener("keydown", this.handleKeyDown, s), document.removeEventListener("mouseup", this.handleMouseUp), document.removeEventListener("touchend", this.handleTouchEnd), document.removeEventListener("select", this.handleSelect), document.removeEventListener("selectionchange", this.handleSelectionChange), document.onpointerup = null, document.ontouchend = null, document.ontouchcancel = null, document.onmouseup = null, this.recurseButtons(function(f) {
|
|
2707
|
+
f && (f.onpointerdown = null, f.onpointerup = null, f.onpointercancel = null, f.ontouchstart = null, f.ontouchend = null, f.ontouchcancel = null, f.onclick = null, f.onmousedown = null, f.onmouseup = null, f.remove(), f = null);
|
|
2708
|
+
}), this.keyboardDOM.onpointerdown = null, this.keyboardDOM.ontouchstart = null, this.keyboardDOM.onmousedown = null, this.resetRows(), this.candidateBox && (this.candidateBox.destroy(), this.candidateBox = null), this.activeInputElement = null, this.keyboardDOM.removeAttribute("data-skInstance"), this.keyboardDOM.innerHTML = "", window.SimpleKeyboardInstances[this.currentInstanceName] = null, delete window.SimpleKeyboardInstances[this.currentInstanceName], this.initialized = !1;
|
|
2709
|
+
} }, { key: "getButtonThemeClasses", value: function(o) {
|
|
2710
|
+
var s = this.options.buttonTheme, f = [];
|
|
2711
|
+
return Array.isArray(s) && s.forEach(function(d) {
|
|
2712
|
+
if (d && d.class && typeof d.class == "string" && d.buttons && typeof d.buttons == "string") {
|
|
2713
|
+
var y = d.class.split(" ");
|
|
2714
|
+
d.buttons.split(" ").includes(o) && (f = [].concat(F(f), F(y)));
|
|
2715
|
+
} else
|
|
2716
|
+
console.warn('Incorrect "buttonTheme". Please check the documentation.', d);
|
|
2717
|
+
}), f;
|
|
2718
|
+
} }, { key: "setDOMButtonAttributes", value: function(o, s) {
|
|
2719
|
+
var f = this.options.buttonAttributes;
|
|
2720
|
+
Array.isArray(f) && f.forEach(function(d) {
|
|
2721
|
+
d.attribute && typeof d.attribute == "string" && d.value && typeof d.value == "string" && d.buttons && typeof d.buttons == "string" ? d.buttons.split(" ").includes(o) && s(d.attribute, d.value) : console.warn('Incorrect "buttonAttributes". Please check the documentation.', d);
|
|
2722
|
+
});
|
|
2723
|
+
} }, { key: "onTouchDeviceDetected", value: function() {
|
|
2724
|
+
this.processAutoTouchEvents(), this.disableContextualWindow();
|
|
2725
|
+
} }, { key: "disableContextualWindow", value: function() {
|
|
2726
|
+
window.oncontextmenu = function(o) {
|
|
2727
|
+
if (o.target.classList.contains("hg-button"))
|
|
2728
|
+
return o.preventDefault(), o.stopPropagation(), !1;
|
|
2729
|
+
};
|
|
2730
|
+
} }, { key: "processAutoTouchEvents", value: function() {
|
|
2731
|
+
this.options.autoUseTouchEvents && (this.options.useTouchEvents = !0, this.options.debug && console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."));
|
|
2732
|
+
} }, { key: "onInit", value: function() {
|
|
2733
|
+
this.options.debug && console.log("".concat(this.keyboardDOMClass, " Initialized")), this.setEventListeners(), typeof this.options.onInit == "function" && this.options.onInit(this);
|
|
2734
|
+
} }, { key: "beforeFirstRender", value: function() {
|
|
2735
|
+
this.utilities.isTouchDevice() && this.onTouchDeviceDetected(), typeof this.options.beforeFirstRender == "function" && this.options.beforeFirstRender(this), this.isFirstKeyboardInstance && this.utilities.pointerEventsSupported() && !this.options.useTouchEvents && !this.options.useMouseEvents && this.options.debug && console.log("Using PointerEvents as it is supported by this browser"), this.options.useTouchEvents && this.options.debug && console.log("useTouchEvents has been enabled. Only touch events will be used.");
|
|
2736
|
+
} }, { key: "beforeRender", value: function() {
|
|
2737
|
+
typeof this.options.beforeRender == "function" && this.options.beforeRender(this);
|
|
2738
|
+
} }, { key: "onRender", value: function() {
|
|
2739
|
+
typeof this.options.onRender == "function" && this.options.onRender(this);
|
|
2740
|
+
} }, { key: "onModulesLoaded", value: function() {
|
|
2741
|
+
typeof this.options.onModulesLoaded == "function" && this.options.onModulesLoaded(this);
|
|
2742
|
+
} }, { key: "loadModules", value: function() {
|
|
2743
|
+
var o = this;
|
|
2744
|
+
Array.isArray(this.options.modules) && (this.options.modules.forEach(function(s) {
|
|
2745
|
+
var f = new s(o);
|
|
2746
|
+
f.init && f.init(o);
|
|
2747
|
+
}), this.keyboardPluginClasses = "modules-loaded", this.render(), this.onModulesLoaded());
|
|
2748
|
+
} }, { key: "getModuleProp", value: function(o, s) {
|
|
2749
|
+
return !!this.modules[o] && this.modules[o][s];
|
|
2750
|
+
} }, { key: "getModulesList", value: function() {
|
|
2751
|
+
return Object.keys(this.modules);
|
|
2752
|
+
} }, { key: "parseRowDOMContainers", value: function(o, s, f, d) {
|
|
2753
|
+
var y = this, M = Array.from(o.children), E = 0;
|
|
2754
|
+
return M.length && f.forEach(function(C, A) {
|
|
2755
|
+
var L = d[A];
|
|
2756
|
+
if (!(L && L > C))
|
|
2757
|
+
return !1;
|
|
2758
|
+
var k = C - E, B = L - E, G = document.createElement("div");
|
|
2759
|
+
G.className += "hg-button-container";
|
|
2760
|
+
var H = "".concat(y.options.layoutName, "-r").concat(s, "c").concat(A);
|
|
2761
|
+
G.setAttribute("data-skUID", H);
|
|
2762
|
+
var W = M.splice(k, B - k + 1);
|
|
2763
|
+
E = B - k, W.forEach(function(Z) {
|
|
2764
|
+
return G.appendChild(Z);
|
|
2765
|
+
}), M.splice(k, 0, G), o.innerHTML = "", M.forEach(function(Z) {
|
|
2766
|
+
return o.appendChild(Z);
|
|
2767
|
+
}), y.options.debug && console.log("rowDOMContainer", W, k, B, E + 1);
|
|
2768
|
+
}), o;
|
|
2769
|
+
} }, { key: "render", value: function() {
|
|
2770
|
+
var o = this;
|
|
2771
|
+
this.resetRows(), this.initialized || this.beforeFirstRender(), this.beforeRender();
|
|
2772
|
+
var s = "hg-layout-".concat(this.options.layoutName), f = this.options.layout || { default: ["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", "{tab} q w e r t y u i o p [ ] \\", "{lock} a s d f g h j k l ; ' {enter}", "{shift} z x c v b n m , . / {shift}", ".com @ {space}"], shift: ["~ ! @ # $ % ^ & * ( ) _ + {bksp}", "{tab} Q W E R T Y U I O P { } |", '{lock} A S D F G H J K L : " {enter}', "{shift} Z X C V B N M < > ? {shift}", ".com @ {space}"] }, d = this.options.useTouchEvents || !1, y = d ? "hg-touch-events" : "", M = this.options.useMouseEvents || !1, E = this.options.disableRowButtonContainers;
|
|
2773
|
+
this.keyboardDOM.className = this.getKeyboardClassString(this.options.theme, s, this.keyboardPluginClasses, y), this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.keyboardRowsDOM = document.createElement("div"), this.keyboardRowsDOM.className = "hg-rows", f[this.options.layoutName || this.defaultName].forEach(function(C, A) {
|
|
2774
|
+
var L = C.split(" ");
|
|
2775
|
+
o.options.excludeFromLayout && o.options.excludeFromLayout[o.options.layoutName || o.defaultName] && (L = L.filter(function(H) {
|
|
2776
|
+
return o.options.excludeFromLayout && !o.options.excludeFromLayout[o.options.layoutName || o.defaultName].includes(H);
|
|
2777
|
+
}));
|
|
2778
|
+
var k = document.createElement("div");
|
|
2779
|
+
k.className += "hg-row";
|
|
2780
|
+
var B = [], G = [];
|
|
2781
|
+
L.forEach(function(H, W) {
|
|
2782
|
+
var Z, nt = !E && typeof H == "string" && H.length > 1 && H.indexOf("[") === 0, rt = !E && typeof H == "string" && H.length > 1 && H.indexOf("]") === H.length - 1;
|
|
2783
|
+
nt && (B.push(W), H = H.replace(/\[/g, "")), rt && (G.push(W), H = H.replace(/\]/g, ""));
|
|
2784
|
+
var dt = o.utilities.getButtonClass(H), ft = o.utilities.getButtonDisplayName(H, o.options.display, o.options.mergeDisplay), st = o.options.useButtonTag ? "button" : "div", tt = document.createElement(st);
|
|
2785
|
+
tt.className += "hg-button ".concat(dt), (Z = tt.classList).add.apply(Z, F(o.getButtonThemeClasses(H))), o.setDOMButtonAttributes(H, function(X, ht) {
|
|
2786
|
+
tt.setAttribute(X, ht);
|
|
2787
|
+
}), o.activeButtonClass = "hg-activeButton", !o.utilities.pointerEventsSupported() || d || M ? d ? (tt.ontouchstart = function(X) {
|
|
2788
|
+
o.handleButtonClicked(H, X), o.handleButtonMouseDown(H, X);
|
|
2789
|
+
}, tt.ontouchend = function(X) {
|
|
2790
|
+
o.handleButtonMouseUp(H, X);
|
|
2791
|
+
}, tt.ontouchcancel = function(X) {
|
|
2792
|
+
o.handleButtonMouseUp(H, X);
|
|
2793
|
+
}) : (tt.onclick = function(X) {
|
|
2794
|
+
o.setMouseHold(!1), typeof o.options.onKeyReleased != "function" && o.handleButtonClicked(H, X);
|
|
2795
|
+
}, tt.onmousedown = function(X) {
|
|
2796
|
+
typeof o.options.onKeyReleased != "function" || o.isMouseHold || o.handleButtonClicked(H, X), o.handleButtonMouseDown(H, X);
|
|
2797
|
+
}, tt.onmouseup = function(X) {
|
|
2798
|
+
o.handleButtonMouseUp(H, X);
|
|
2799
|
+
}) : (tt.onpointerdown = function(X) {
|
|
2800
|
+
o.handleButtonClicked(H, X), o.handleButtonMouseDown(H, X);
|
|
2801
|
+
}, tt.onpointerup = function(X) {
|
|
2802
|
+
o.handleButtonMouseUp(H, X);
|
|
2803
|
+
}, tt.onpointercancel = function(X) {
|
|
2804
|
+
o.handleButtonMouseUp(H, X);
|
|
2805
|
+
}), tt.setAttribute("data-skBtn", H);
|
|
2806
|
+
var pt = "".concat(o.options.layoutName, "-r").concat(A, "b").concat(W);
|
|
2807
|
+
tt.setAttribute("data-skBtnUID", pt);
|
|
2808
|
+
var ot = document.createElement("span");
|
|
2809
|
+
ot.innerHTML = ft, tt.appendChild(ot), o.buttonElements[H] || (o.buttonElements[H] = []), o.buttonElements[H].push(tt), k.appendChild(tt);
|
|
2810
|
+
}), k = o.parseRowDOMContainers(k, A, B, G), o.keyboardRowsDOM.appendChild(k);
|
|
2811
|
+
}), this.keyboardDOM.appendChild(this.keyboardRowsDOM), this.onRender(), this.initialized || (this.initialized = !0, !this.utilities.pointerEventsSupported() || d || M ? d ? (document.ontouchend = function(C) {
|
|
2812
|
+
return o.handleButtonMouseUp(void 0, C);
|
|
2813
|
+
}, document.ontouchcancel = function(C) {
|
|
2814
|
+
return o.handleButtonMouseUp(void 0, C);
|
|
2815
|
+
}, this.keyboardDOM.ontouchstart = function(C) {
|
|
2816
|
+
return o.handleKeyboardContainerMouseDown(C);
|
|
2817
|
+
}) : d || (document.onmouseup = function(C) {
|
|
2818
|
+
return o.handleButtonMouseUp(void 0, C);
|
|
2819
|
+
}, this.keyboardDOM.onmousedown = function(C) {
|
|
2820
|
+
return o.handleKeyboardContainerMouseDown(C);
|
|
2821
|
+
}) : (document.onpointerup = function(C) {
|
|
2822
|
+
return o.handleButtonMouseUp(void 0, C);
|
|
2823
|
+
}, this.keyboardDOM.onpointerdown = function(C) {
|
|
2824
|
+
return o.handleKeyboardContainerMouseDown(C);
|
|
2825
|
+
}), this.onInit());
|
|
2826
|
+
} }], P && K(v.prototype, P), Object.defineProperty(v, "prototype", { writable: !1 }), w;
|
|
2827
|
+
}(), Y = U, $ = U;
|
|
2828
|
+
}(), bt;
|
|
2829
|
+
}();
|
|
2830
|
+
});
|
|
2831
|
+
});
|
|
2832
|
+
const Tt = /* @__PURE__ */ At(Mt), St = {
|
|
2833
|
+
default: [
|
|
2834
|
+
"1 2 3 4 5 6 7 8 9 0",
|
|
2835
|
+
"q w e r t y u i o p",
|
|
2836
|
+
"a s d f g h j k l",
|
|
2837
|
+
"z x c v b n m {bksp}",
|
|
2838
|
+
"{space}"
|
|
2839
|
+
]
|
|
2840
|
+
}, Dt = {
|
|
2841
|
+
default: [
|
|
2842
|
+
"1 2 3 4 5 6 7 8 9 0",
|
|
2843
|
+
"q w e r t y u i o p å",
|
|
2844
|
+
"a s d f g h j k l æ ø",
|
|
2845
|
+
"z x c v b n m {bksp}",
|
|
2846
|
+
"{space}"
|
|
2847
|
+
]
|
|
2848
|
+
}, jt = {
|
|
2849
|
+
default: [
|
|
2850
|
+
"1 2 3 4 5 6 7 8 9 0",
|
|
2851
|
+
"q w e r t z u i o p ü",
|
|
2852
|
+
"a s d f g h j k l ö ä",
|
|
2853
|
+
"y x c v b n m {bksp}",
|
|
2854
|
+
"{space}"
|
|
2855
|
+
]
|
|
2856
|
+
}, Nt = {
|
|
2857
|
+
default: [
|
|
2858
|
+
"1 2 3 4 5 6 7 8 9 0",
|
|
2859
|
+
"a z e r t y u i o p",
|
|
2860
|
+
"q s d f g h j k l m",
|
|
2861
|
+
"w x c v b n {bksp}",
|
|
2862
|
+
"{space}"
|
|
2863
|
+
]
|
|
2864
|
+
}, kt = St;
|
|
2865
|
+
var wt;
|
|
2866
|
+
(function(at) {
|
|
2867
|
+
at.Numeric = "numeric", at.Alphabetic = "alphabetic";
|
|
2868
|
+
})(wt || (wt = {}));
|
|
2869
|
+
const Lt = {
|
|
2870
|
+
default: ["1 2 3", "4 5 6", "7 8 9", "0 {bksp}"]
|
|
2871
|
+
}, Rt = `/*!
|
|
2872
|
+
*
|
|
2873
|
+
* simple-keyboard v3.5.21
|
|
2874
|
+
* https://github.com/hodgef/simple-keyboard
|
|
2875
|
+
*
|
|
2876
|
+
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
2877
|
+
*
|
|
2878
|
+
* This source code is licensed under the MIT license found in the
|
|
2879
|
+
* LICENSE file in the root directory of this source tree.
|
|
2880
|
+
*
|
|
2881
|
+
*/.hg-theme-default{background-color:#ececec;border-radius:5px;box-sizing:border-box;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;overflow:hidden;padding:5px;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.hg-theme-default .hg-button span{pointer-events:none}.hg-theme-default button.hg-button{border-width:0;font-size:inherit;outline:0}.hg-theme-default .hg-button{display:inline-block;flex-grow:1}.hg-theme-default .hg-row{display:flex}.hg-theme-default .hg-row:not(:last-child){margin-bottom:5px}.hg-theme-default .hg-row .hg-button-container,.hg-theme-default .hg-row .hg-button:not(:last-child){margin-right:5px}.hg-theme-default .hg-row>div:last-child{margin-right:0}.hg-theme-default .hg-row .hg-button-container{display:flex}.hg-theme-default .hg-button{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;background:#fff;border-bottom:1px solid #b5b5b5;border-radius:5px;box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-sizing:border-box;cursor:pointer;display:flex;height:40px;justify-content:center;padding:5px}.hg-theme-default .hg-button.hg-standardBtn{width:20px}.hg-theme-default .hg-button.hg-activeButton{background:#efefef}.hg-theme-default.hg-layout-numeric .hg-button{align-items:center;display:flex;height:60px;justify-content:center;width:33.3%}.hg-theme-default .hg-button.hg-button-numpadadd,.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.hg-theme-default .hg-button.hg-button-com{max-width:85px}.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px}.hg-candidate-box{background:#ececec;border-bottom:2px solid #b5b5b5;border-radius:5px;display:inline-flex;margin-top:-10px;max-width:272px;position:absolute;transform:translateY(-100%);-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.hg-candidate-box-list{display:flex;flex:1;list-style:none;margin:0;padding:0}li.hg-candidate-box-list-item{align-items:center;display:flex;height:40px;justify-content:center;width:40px}li.hg-candidate-box-list-item:hover{background:rgba(0,0,0,.03);cursor:pointer}li.hg-candidate-box-list-item:active{background:rgba(0,0,0,.1)}.hg-candidate-box-prev:before{content:"◄"}.hg-candidate-box-next:before{content:"►"}.hg-candidate-box-next,.hg-candidate-box-prev{align-items:center;background:#d0d0d0;color:#969696;cursor:pointer;display:flex;padding:0 10px}.hg-candidate-box-next{border-bottom-right-radius:5px;border-top-right-radius:5px}.hg-candidate-box-prev{border-bottom-left-radius:5px;border-top-left-radius:5px}.hg-candidate-box-btn-active{color:#444}mi-keyboard{display:block}mi-keyboard .hg-theme-default{background-color:transparent}`, Bt = class {
|
|
2882
|
+
constructor(at) {
|
|
2883
|
+
Ot(this, at), this.inputElements = /* @__PURE__ */ new Set(), this.inputElement = void 0, this.layout = wt.Alphabetic;
|
|
2884
|
+
}
|
|
2885
|
+
inputElementChange() {
|
|
2886
|
+
if (!this.inputElement.hasAttribute("id")) {
|
|
2887
|
+
console.warn("MI-KEYBOARD: Invalid id attribute");
|
|
2888
|
+
return;
|
|
2889
|
+
}
|
|
2890
|
+
this.simpleKeyboard && (this.simpleKeyboard.setOptions({ inputName: this.inputElement.id }), this.simpleKeyboard.setInput(this.inputElement.value, this.inputElement.id)), this.inputElements.has(this.inputElement) || (this.inputElements.add(this.inputElement), ["input", "focus", "blur", "inputCleared"].forEach((gt) => {
|
|
2891
|
+
this.inputElement.addEventListener(gt, () => {
|
|
2892
|
+
this.simpleKeyboard.setInput(this.inputElement.value, this.inputElement.id);
|
|
2893
|
+
});
|
|
2894
|
+
}));
|
|
2895
|
+
}
|
|
2896
|
+
layoutChange() {
|
|
2897
|
+
this.simpleKeyboard && this.simpleKeyboard.setOptions({ layout: this.getKeyboardLayout(this.layout) });
|
|
2898
|
+
}
|
|
2899
|
+
componentDidLoad() {
|
|
2900
|
+
this.simpleKeyboard = new Tt({
|
|
2901
|
+
onChange: (at) => {
|
|
2902
|
+
this.inputElement && (this.inputElement.value = at, this.inputElement.dispatchEvent(new Event("input", { bubbles: !0, cancelable: !0 })));
|
|
2903
|
+
},
|
|
2904
|
+
layout: this.getKeyboardLayout(this.layout),
|
|
2905
|
+
display: {
|
|
2906
|
+
"{bksp}": "⌫",
|
|
2907
|
+
"{enter}": "return",
|
|
2908
|
+
"{space}": "space"
|
|
2909
|
+
},
|
|
2910
|
+
theme: "hg-theme-default hg-layout-numeric numeric-theme"
|
|
2911
|
+
});
|
|
2912
|
+
}
|
|
2913
|
+
/**
|
|
2914
|
+
* Check validity of keyboard layout.
|
|
2915
|
+
*
|
|
2916
|
+
* @param {layout} string
|
|
2917
|
+
* @returns {boolean}
|
|
2918
|
+
*/
|
|
2919
|
+
isValidLayout(at) {
|
|
2920
|
+
return at ? !!Object.values(wt).find((gt) => gt === at) : !1;
|
|
2921
|
+
}
|
|
2922
|
+
/**
|
|
2923
|
+
* Get keyboard layout. Defaults to alphabetic.
|
|
2924
|
+
*
|
|
2925
|
+
* @param {KeyboardLayout} keyboardLayout - Accepts values of KeyboardLayout enum, eg. 'numeric' or 'alphabetic'.
|
|
2926
|
+
* @returns {{ [key: string]: string[]; }}
|
|
2927
|
+
*/
|
|
2928
|
+
getKeyboardLayout(at) {
|
|
2929
|
+
if (!this.isValidLayout(at))
|
|
2930
|
+
return console.warn("MI-KEYBOARD: Invalid layout attribute"), kt;
|
|
2931
|
+
if (at === wt.Numeric)
|
|
2932
|
+
return Lt;
|
|
2933
|
+
const gt = window.navigator.language;
|
|
2934
|
+
if (!gt)
|
|
2935
|
+
return kt;
|
|
2936
|
+
const vt = [
|
|
2937
|
+
{ layout: St, languages: ["en", "en-us"] },
|
|
2938
|
+
{ layout: Dt, languages: ["da", "da-dk"] },
|
|
2939
|
+
{ layout: Nt, languages: ["fr", "fr-fr"] },
|
|
2940
|
+
{ layout: jt, languages: ["de", "de-de"] }
|
|
2941
|
+
].find((V) => !!V.languages.find((bt) => bt === gt.toLowerCase()));
|
|
2942
|
+
return vt ? vt.layout : kt;
|
|
2943
|
+
}
|
|
2944
|
+
/**
|
|
2945
|
+
* Render on-screen keyboard.
|
|
2946
|
+
*
|
|
2947
|
+
* @returns {JSX.Element}
|
|
2948
|
+
*/
|
|
2949
|
+
render() {
|
|
2950
|
+
return It("div", { class: "simple-keyboard" });
|
|
2951
|
+
}
|
|
2952
|
+
static get watchers() {
|
|
2953
|
+
return {
|
|
2954
|
+
inputElement: ["inputElementChange"],
|
|
2955
|
+
layout: ["layoutChange"]
|
|
2956
|
+
};
|
|
2957
|
+
}
|
|
2958
|
+
};
|
|
2959
|
+
Bt.style = Rt;
|
|
2960
|
+
export {
|
|
2961
|
+
Bt as mi_keyboard
|
|
2962
|
+
};
|