@mapsindoors/map-template 1.0.0 → 1.1.0

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