@everymatrix/casino-categories-slider 1.61.0 → 1.62.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.
- package/components/CasinoCategoriesSlider-B4XHK2_Z.cjs +18 -0
- package/components/{CasinoCategoriesSlider-CCQL5dIy.js → CasinoCategoriesSlider-C_-WDvt0.js} +561 -539
- package/components/{CasinoCategoriesSlider-DAlVIr2o.js → CasinoCategoriesSlider-DP36Oo5_.js} +626 -604
- package/components/{CasinoSlider-FbRZNS9G.js → CasinoSlider-Ce2yE3Ex.js} +33 -33
- package/components/{CasinoSlider-C6w6K2oO.cjs → CasinoSlider-Cq1SbS-9.cjs} +1 -1
- package/components/{CasinoSlider-C4xrcxS2.js → CasinoSlider-PK9Gam30.js} +35 -35
- package/es2015/casino-categories-slider.cjs +1 -1
- package/es2015/casino-categories-slider.js +1 -1
- package/esnext/casino-categories-slider.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b7bbd57e-6KaMTlNN.js +534 -0
- package/stencil/index-b7bbd57e-BSagye0B.js +550 -0
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +1 -0
- package/stencil/{ui-image-38c3c15f-ByZECnci.js → ui-image-38c3c15f-CumwWbNu.js} +1 -1
- package/stencil/{ui-image-38c3c15f-D_V48h1L.js → ui-image-38c3c15f-Dxl-aZb-.js} +1 -1
- package/stencil/{ui-image-38c3c15f-VguNkCIq.cjs → ui-image-38c3c15f-y5t5ZLG0.cjs} +1 -1
- package/stencil/{ui-image-BNrzgSpe.js → ui-image-BQa5UbqU.js} +2 -2
- package/stencil/{ui-image-CPH6BqjQ.js → ui-image-Bi4jDe3D.js} +2 -2
- package/stencil/{ui-image-CLghOqUz.cjs → ui-image-z441BZiX.cjs} +1 -1
- package/components/CasinoCategoriesSlider-B2qIBy8T.cjs +0 -18
- package/stencil/index-b7bbd57e-BBUBsGhp.js +0 -550
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +0 -1
- package/stencil/index-b7bbd57e-wJC_uAuk.js +0 -534
package/components/{CasinoCategoriesSlider-CCQL5dIy.js → CasinoCategoriesSlider-C_-WDvt0.js}
RENAMED
@@ -1,28 +1,28 @@
|
|
1
1
|
function P() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Ut(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function dt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function re(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(Ut);
|
11
11
|
}
|
12
12
|
function Te(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Dt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
18
|
let pe;
|
19
|
-
function
|
19
|
+
function bs(e, t) {
|
20
20
|
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Ir(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Ft(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -31,23 +31,23 @@ function Rt(e, ...t) {
|
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
35
|
-
e.$$.on_destroy.push(
|
34
|
+
function Cr(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(Ft(t, r));
|
36
36
|
}
|
37
|
-
function
|
37
|
+
function Mr(e) {
|
38
38
|
return e && Te(e.destroy) ? e.destroy : P;
|
39
39
|
}
|
40
|
-
function
|
40
|
+
function $t(e, t) {
|
41
41
|
e.appendChild(t);
|
42
42
|
}
|
43
|
-
function
|
44
|
-
const n =
|
43
|
+
function Rr(e, t, r) {
|
44
|
+
const n = Gr(e);
|
45
45
|
if (!n.getElementById(t)) {
|
46
46
|
const i = k("style");
|
47
|
-
i.id = t, i.textContent = r,
|
47
|
+
i.id = t, i.textContent = r, Ur(n, i);
|
48
48
|
}
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function Gr(e) {
|
51
51
|
if (!e)
|
52
52
|
return document;
|
53
53
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -57,8 +57,8 @@ function Lr(e) {
|
|
57
57
|
t
|
58
58
|
) : e.ownerDocument;
|
59
59
|
}
|
60
|
-
function
|
61
|
-
return
|
60
|
+
function Ur(e, t) {
|
61
|
+
return $t(
|
62
62
|
/** @type {Document} */
|
63
63
|
e.head || e,
|
64
64
|
t
|
@@ -70,23 +70,23 @@ function ce(e, t, r) {
|
|
70
70
|
function ne(e) {
|
71
71
|
e.parentNode && e.parentNode.removeChild(e);
|
72
72
|
}
|
73
|
-
function
|
73
|
+
function ps(e, t) {
|
74
74
|
for (let r = 0; r < e.length; r += 1)
|
75
75
|
e[r] && e[r].d(t);
|
76
76
|
}
|
77
77
|
function k(e) {
|
78
78
|
return document.createElement(e);
|
79
79
|
}
|
80
|
-
function
|
80
|
+
function jt(e) {
|
81
81
|
return document.createTextNode(e);
|
82
82
|
}
|
83
|
-
function
|
84
|
-
return
|
83
|
+
function gs() {
|
84
|
+
return jt(" ");
|
85
85
|
}
|
86
|
-
function
|
87
|
-
return
|
86
|
+
function ys() {
|
87
|
+
return jt("");
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function vs(e, t, r, n) {
|
90
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
91
91
|
}
|
92
92
|
function fe(e, t, r) {
|
@@ -96,14 +96,14 @@ function _(e, t, r) {
|
|
96
96
|
const n = t.toLowerCase();
|
97
97
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : fe(e, t, r);
|
98
98
|
}
|
99
|
-
function
|
99
|
+
function Dr(e) {
|
100
100
|
return Array.from(e.childNodes);
|
101
101
|
}
|
102
|
-
function
|
102
|
+
function _s(e, t) {
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
104
104
|
t);
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function Fr(e) {
|
107
107
|
const t = {};
|
108
108
|
return e.childNodes.forEach(
|
109
109
|
/** @param {Element} node */
|
@@ -116,25 +116,25 @@ let ue;
|
|
116
116
|
function ae(e) {
|
117
117
|
ue = e;
|
118
118
|
}
|
119
|
-
function
|
119
|
+
function $r() {
|
120
120
|
if (!ue)
|
121
121
|
throw new Error("Function called outside component initialization");
|
122
122
|
return ue;
|
123
123
|
}
|
124
|
-
function
|
125
|
-
|
124
|
+
function jr(e) {
|
125
|
+
$r().$$.on_mount.push(e);
|
126
126
|
}
|
127
|
-
const Q = [],
|
127
|
+
const Q = [], je = [];
|
128
128
|
let Y = [];
|
129
|
-
const
|
130
|
-
let
|
131
|
-
function
|
132
|
-
|
129
|
+
const bt = [], kt = /* @__PURE__ */ Promise.resolve();
|
130
|
+
let ke = !1;
|
131
|
+
function Vt() {
|
132
|
+
ke || (ke = !0, kt.then(S));
|
133
133
|
}
|
134
|
-
function
|
135
|
-
return
|
134
|
+
function kr() {
|
135
|
+
return Vt(), kt;
|
136
136
|
}
|
137
|
-
function
|
137
|
+
function Ve(e) {
|
138
138
|
Y.push(e);
|
139
139
|
}
|
140
140
|
const Ce = /* @__PURE__ */ new Set();
|
@@ -147,45 +147,45 @@ function S() {
|
|
147
147
|
try {
|
148
148
|
for (; z < Q.length; ) {
|
149
149
|
const t = Q[z];
|
150
|
-
z++, ae(t),
|
150
|
+
z++, ae(t), Vr(t.$$);
|
151
151
|
}
|
152
152
|
} catch (t) {
|
153
153
|
throw Q.length = 0, z = 0, t;
|
154
154
|
}
|
155
|
-
for (ae(null), Q.length = 0, z = 0;
|
156
|
-
|
155
|
+
for (ae(null), Q.length = 0, z = 0; je.length; )
|
156
|
+
je.pop()();
|
157
157
|
for (let t = 0; t < Y.length; t += 1) {
|
158
158
|
const r = Y[t];
|
159
159
|
Ce.has(r) || (Ce.add(r), r());
|
160
160
|
}
|
161
161
|
Y.length = 0;
|
162
162
|
} while (Q.length);
|
163
|
-
for (;
|
164
|
-
|
165
|
-
|
163
|
+
for (; bt.length; )
|
164
|
+
bt.pop()();
|
165
|
+
ke = !1, Ce.clear(), ae(e);
|
166
166
|
}
|
167
|
-
function
|
167
|
+
function Vr(e) {
|
168
168
|
if (e.fragment !== null) {
|
169
169
|
e.update(), re(e.before_update);
|
170
170
|
const t = e.dirty;
|
171
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
171
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
172
172
|
}
|
173
173
|
}
|
174
|
-
function
|
174
|
+
function Xr(e) {
|
175
175
|
const t = [], r = [];
|
176
176
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
177
177
|
}
|
178
|
-
const
|
179
|
-
function
|
180
|
-
e && e.i && (
|
178
|
+
const Wr = /* @__PURE__ */ new Set();
|
179
|
+
function Xt(e, t) {
|
180
|
+
e && e.i && (Wr.delete(e), e.i(t));
|
181
181
|
}
|
182
|
-
function
|
182
|
+
function Es(e) {
|
183
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
184
184
|
}
|
185
|
-
function
|
185
|
+
function xs(e, t) {
|
186
186
|
e.d(1), t.delete(e.key);
|
187
187
|
}
|
188
|
-
function
|
188
|
+
function Ss(e, t, r, n, i, s, o, a, h, u, l, m) {
|
189
189
|
let c = e.length, d = s.length, b = c;
|
190
190
|
const y = {};
|
191
191
|
for (; b--; )
|
@@ -198,7 +198,7 @@ function vs(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
198
198
|
}
|
199
199
|
const O = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
200
200
|
function M(E) {
|
201
|
-
|
201
|
+
Xt(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, d--;
|
202
202
|
}
|
203
203
|
for (; c && d; ) {
|
204
204
|
const E = T[d - 1], A = e[c - 1], I = E.key, F = A.key;
|
@@ -212,21 +212,21 @@ function vs(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
212
212
|
M(T[d - 1]);
|
213
213
|
return re(w), T;
|
214
214
|
}
|
215
|
-
function
|
215
|
+
function zr(e, t, r) {
|
216
216
|
const { fragment: n, after_update: i } = e.$$;
|
217
|
-
n && n.m(t, r),
|
218
|
-
const s = e.$$.on_mount.map(
|
217
|
+
n && n.m(t, r), Ve(() => {
|
218
|
+
const s = e.$$.on_mount.map(Ut).filter(Te);
|
219
219
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
220
|
-
}), i.forEach(
|
220
|
+
}), i.forEach(Ve);
|
221
221
|
}
|
222
|
-
function
|
222
|
+
function Zr(e, t) {
|
223
223
|
const r = e.$$;
|
224
|
-
r.fragment !== null && (
|
224
|
+
r.fragment !== null && (Xr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
225
225
|
}
|
226
|
-
function
|
227
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
226
|
+
function Qr(e, t) {
|
227
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
228
228
|
}
|
229
|
-
function
|
229
|
+
function Yr(e, t, r, n, i, s, o = null, a = [-1]) {
|
230
230
|
const h = ue;
|
231
231
|
ae(e);
|
232
232
|
const u = e.$$ = {
|
@@ -236,7 +236,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
236
236
|
props: s,
|
237
237
|
update: P,
|
238
238
|
not_equal: i,
|
239
|
-
bound:
|
239
|
+
bound: dt(),
|
240
240
|
// lifecycle
|
241
241
|
on_mount: [],
|
242
242
|
on_destroy: [],
|
@@ -245,7 +245,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
245
245
|
after_update: [],
|
246
246
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
247
247
|
// everything else
|
248
|
-
callbacks:
|
248
|
+
callbacks: dt(),
|
249
249
|
dirty: a,
|
250
250
|
skip_bound: !1,
|
251
251
|
root: t.target || h.$$.root
|
@@ -254,19 +254,19 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
254
254
|
let l = !1;
|
255
255
|
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
256
256
|
const b = d.length ? d[0] : c;
|
257
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l &&
|
257
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l && Qr(e, m)), c;
|
258
258
|
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
259
259
|
if (t.hydrate) {
|
260
|
-
const m =
|
260
|
+
const m = Dr(t.target);
|
261
261
|
u.fragment && u.fragment.l(m), m.forEach(ne);
|
262
262
|
} else
|
263
263
|
u.fragment && u.fragment.c();
|
264
|
-
t.intro &&
|
264
|
+
t.intro && Xt(e.$$.fragment), zr(e, t.target, t.anchor), S();
|
265
265
|
}
|
266
266
|
ae(h);
|
267
267
|
}
|
268
|
-
let
|
269
|
-
typeof HTMLElement == "function" && (
|
268
|
+
let Wt;
|
269
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
270
270
|
/** The Svelte component constructor */
|
271
271
|
$$ctor;
|
272
272
|
/** Slots */
|
@@ -325,7 +325,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
325
325
|
};
|
326
326
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
327
327
|
return;
|
328
|
-
const t = {}, r =
|
328
|
+
const t = {}, r = Fr(this);
|
329
329
|
for (const i of this.$$s)
|
330
330
|
i in r && (t[i] = [e(i)]);
|
331
331
|
for (const i of this.attributes) {
|
@@ -412,8 +412,8 @@ function ve(e, t, r, n) {
|
|
412
412
|
return t;
|
413
413
|
}
|
414
414
|
}
|
415
|
-
function
|
416
|
-
let o = class extends
|
415
|
+
function qr(e, t, r, n, i, s) {
|
416
|
+
let o = class extends Wt {
|
417
417
|
constructor() {
|
418
418
|
super(e, r, i), this.$$p_d = t;
|
419
419
|
}
|
@@ -441,7 +441,7 @@ function Wr(e, t, r, n, i, s) {
|
|
441
441
|
}), e.element = /** @type {any} */
|
442
442
|
o, o;
|
443
443
|
}
|
444
|
-
class
|
444
|
+
class Jr {
|
445
445
|
/**
|
446
446
|
* ### PRIVATE API
|
447
447
|
*
|
@@ -460,7 +460,7 @@ class zr {
|
|
460
460
|
$$set = void 0;
|
461
461
|
/** @returns {void} */
|
462
462
|
$destroy() {
|
463
|
-
|
463
|
+
Zr(this, 1), this.$destroy = P;
|
464
464
|
}
|
465
465
|
/**
|
466
466
|
* @template {Extract<keyof Events, string>} K
|
@@ -482,11 +482,11 @@ class zr {
|
|
482
482
|
* @returns {void}
|
483
483
|
*/
|
484
484
|
$set(t) {
|
485
|
-
this.$$set && !
|
485
|
+
this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
486
486
|
}
|
487
487
|
}
|
488
|
-
const
|
489
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
488
|
+
const Kr = "4";
|
489
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kr);
|
490
490
|
/*! *****************************************************************************
|
491
491
|
Copyright (c) Microsoft Corporation.
|
492
492
|
|
@@ -501,18 +501,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
501
501
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
502
502
|
PERFORMANCE OF THIS SOFTWARE.
|
503
503
|
***************************************************************************** */
|
504
|
-
var
|
505
|
-
return
|
504
|
+
var Xe = function(e, t) {
|
505
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
506
506
|
r.__proto__ = n;
|
507
507
|
} || function(r, n) {
|
508
508
|
for (var i in n)
|
509
509
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
510
|
-
},
|
510
|
+
}, Xe(e, t);
|
511
511
|
};
|
512
512
|
function U(e, t) {
|
513
513
|
if (typeof t != "function" && t !== null)
|
514
514
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
515
|
-
|
515
|
+
Xe(e, t);
|
516
516
|
function r() {
|
517
517
|
this.constructor = e;
|
518
518
|
}
|
@@ -528,7 +528,7 @@ var v = function() {
|
|
528
528
|
return t;
|
529
529
|
}, v.apply(this, arguments);
|
530
530
|
};
|
531
|
-
function
|
531
|
+
function en(e, t) {
|
532
532
|
var r = {};
|
533
533
|
for (var n in e)
|
534
534
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -537,7 +537,7 @@ function Qr(e, t) {
|
|
537
537
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
538
538
|
return r;
|
539
539
|
}
|
540
|
-
function
|
540
|
+
function We(e) {
|
541
541
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
542
542
|
if (r)
|
543
543
|
return r.call(e);
|
@@ -549,7 +549,7 @@ function Xe(e) {
|
|
549
549
|
};
|
550
550
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
551
551
|
}
|
552
|
-
function
|
552
|
+
function ze(e, t) {
|
553
553
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
554
554
|
if (!r)
|
555
555
|
return e;
|
@@ -578,13 +578,13 @@ function q(e, t, r) {
|
|
578
578
|
function G(e) {
|
579
579
|
return typeof e == "function";
|
580
580
|
}
|
581
|
-
function
|
581
|
+
function zt(e) {
|
582
582
|
var t = function(n) {
|
583
583
|
Error.call(n), n.stack = new Error().stack;
|
584
584
|
}, r = e(t);
|
585
585
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
586
586
|
}
|
587
|
-
var Me =
|
587
|
+
var Me = zt(function(e) {
|
588
588
|
return function(r) {
|
589
589
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
590
590
|
` + r.map(function(n, i) {
|
@@ -593,7 +593,7 @@ var Me = kt(function(e) {
|
|
593
593
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
594
594
|
};
|
595
595
|
});
|
596
|
-
function
|
596
|
+
function Ze(e, t) {
|
597
597
|
if (e) {
|
598
598
|
var r = e.indexOf(t);
|
599
599
|
0 <= r && e.splice(r, 1);
|
@@ -611,7 +611,7 @@ var He = function() {
|
|
611
611
|
if (o)
|
612
612
|
if (this._parentage = null, Array.isArray(o))
|
613
613
|
try {
|
614
|
-
for (var a =
|
614
|
+
for (var a = We(o), h = a.next(); !h.done; h = a.next()) {
|
615
615
|
var u = h.value;
|
616
616
|
u.remove(this);
|
617
617
|
}
|
@@ -638,12 +638,12 @@ var He = function() {
|
|
638
638
|
if (m) {
|
639
639
|
this._finalizers = null;
|
640
640
|
try {
|
641
|
-
for (var c =
|
641
|
+
for (var c = We(m), d = c.next(); !d.done; d = c.next()) {
|
642
642
|
var b = d.value;
|
643
643
|
try {
|
644
|
-
|
644
|
+
pt(b);
|
645
645
|
} catch (y) {
|
646
|
-
s = s ?? [], y instanceof Me ? s = q(q([],
|
646
|
+
s = s ?? [], y instanceof Me ? s = q(q([], ze(s)), ze(y.errors)) : s.push(y);
|
647
647
|
}
|
648
648
|
}
|
649
649
|
} catch (y) {
|
@@ -664,7 +664,7 @@ var He = function() {
|
|
664
664
|
var r;
|
665
665
|
if (t && t !== this)
|
666
666
|
if (this.closed)
|
667
|
-
|
667
|
+
pt(t);
|
668
668
|
else {
|
669
669
|
if (t instanceof e) {
|
670
670
|
if (t.closed || t._hasParent(this))
|
@@ -681,52 +681,56 @@ var He = function() {
|
|
681
681
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
682
682
|
}, e.prototype._removeParent = function(t) {
|
683
683
|
var r = this._parentage;
|
684
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
684
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
|
685
685
|
}, e.prototype.remove = function(t) {
|
686
686
|
var r = this._finalizers;
|
687
|
-
r &&
|
687
|
+
r && Ze(r, t), t instanceof e && t._removeParent(this);
|
688
688
|
}, e.EMPTY = function() {
|
689
689
|
var t = new e();
|
690
690
|
return t.closed = !0, t;
|
691
691
|
}(), e;
|
692
|
-
}(),
|
693
|
-
function
|
692
|
+
}(), Zt = He.EMPTY;
|
693
|
+
function Qt(e) {
|
694
694
|
return e instanceof He || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
695
695
|
}
|
696
|
-
function
|
696
|
+
function pt(e) {
|
697
697
|
G(e) ? e() : e.unsubscribe();
|
698
698
|
}
|
699
|
-
var
|
700
|
-
|
701
|
-
|
699
|
+
var Yt = {
|
700
|
+
onUnhandledError: null,
|
701
|
+
onStoppedNotification: null,
|
702
|
+
Promise: void 0,
|
703
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
704
|
+
useDeprecatedNextContext: !1
|
705
|
+
}, tn = {
|
702
706
|
setTimeout: function(e, t) {
|
703
707
|
for (var r = [], n = 2; n < arguments.length; n++)
|
704
708
|
r[n - 2] = arguments[n];
|
705
|
-
return setTimeout.apply(void 0, q([e, t],
|
709
|
+
return setTimeout.apply(void 0, q([e, t], ze(r)));
|
706
710
|
},
|
707
711
|
clearTimeout: function(e) {
|
708
712
|
return clearTimeout(e);
|
709
713
|
},
|
710
714
|
delegate: void 0
|
711
715
|
};
|
712
|
-
function
|
713
|
-
|
716
|
+
function rn(e) {
|
717
|
+
tn.setTimeout(function() {
|
714
718
|
throw e;
|
715
719
|
});
|
716
720
|
}
|
717
|
-
function
|
721
|
+
function gt() {
|
718
722
|
}
|
719
723
|
function _e(e) {
|
720
724
|
e();
|
721
725
|
}
|
722
|
-
var
|
726
|
+
var qt = function(e) {
|
723
727
|
U(t, e);
|
724
728
|
function t(r) {
|
725
729
|
var n = e.call(this) || this;
|
726
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
730
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = an, n;
|
727
731
|
}
|
728
732
|
return t.create = function(r, n, i) {
|
729
|
-
return new
|
733
|
+
return new Qe(r, n, i);
|
730
734
|
}, t.prototype.next = function(r) {
|
731
735
|
this.isStopped || this._next(r);
|
732
736
|
}, t.prototype.error = function(r) {
|
@@ -750,7 +754,11 @@ var Wt = function(e) {
|
|
750
754
|
this.unsubscribe();
|
751
755
|
}
|
752
756
|
}, t;
|
753
|
-
}(He),
|
757
|
+
}(He), nn = Function.prototype.bind;
|
758
|
+
function Re(e, t) {
|
759
|
+
return nn.call(e, t);
|
760
|
+
}
|
761
|
+
var sn = function() {
|
754
762
|
function e(t) {
|
755
763
|
this.partialObserver = t;
|
756
764
|
}
|
@@ -781,43 +789,55 @@ var Wt = function(e) {
|
|
781
789
|
ge(r);
|
782
790
|
}
|
783
791
|
}, e;
|
784
|
-
}(),
|
792
|
+
}(), Qe = function(e) {
|
785
793
|
U(t, e);
|
786
794
|
function t(r, n, i) {
|
787
795
|
var s = e.call(this) || this, o;
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
796
|
+
if (G(r) || !r)
|
797
|
+
o = {
|
798
|
+
next: r ?? void 0,
|
799
|
+
error: n ?? void 0,
|
800
|
+
complete: i ?? void 0
|
801
|
+
};
|
802
|
+
else {
|
803
|
+
var a;
|
804
|
+
s && Yt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
805
|
+
return s.unsubscribe();
|
806
|
+
}, o = {
|
807
|
+
next: r.next && Re(r.next, a),
|
808
|
+
error: r.error && Re(r.error, a),
|
809
|
+
complete: r.complete && Re(r.complete, a)
|
810
|
+
}) : o = r;
|
811
|
+
}
|
812
|
+
return s.destination = new sn(o), s;
|
793
813
|
}
|
794
814
|
return t;
|
795
|
-
}(
|
815
|
+
}(qt);
|
796
816
|
function ge(e) {
|
797
|
-
|
817
|
+
rn(e);
|
798
818
|
}
|
799
|
-
function
|
819
|
+
function on(e) {
|
800
820
|
throw e;
|
801
821
|
}
|
802
|
-
var
|
822
|
+
var an = {
|
803
823
|
closed: !0,
|
804
|
-
next:
|
805
|
-
error:
|
806
|
-
complete:
|
807
|
-
},
|
824
|
+
next: gt,
|
825
|
+
error: on,
|
826
|
+
complete: gt
|
827
|
+
}, un = function() {
|
808
828
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
809
829
|
}();
|
810
|
-
function
|
830
|
+
function hn(e) {
|
811
831
|
return e;
|
812
832
|
}
|
813
|
-
function
|
814
|
-
return e.length === 0 ?
|
833
|
+
function ln(e) {
|
834
|
+
return e.length === 0 ? hn : e.length === 1 ? e[0] : function(r) {
|
815
835
|
return e.reduce(function(n, i) {
|
816
836
|
return i(n);
|
817
837
|
}, r);
|
818
838
|
};
|
819
839
|
}
|
820
|
-
var
|
840
|
+
var yt = function() {
|
821
841
|
function e(t) {
|
822
842
|
t && (this._subscribe = t);
|
823
843
|
}
|
@@ -825,7 +845,7 @@ var dt = function() {
|
|
825
845
|
var r = new e();
|
826
846
|
return r.source = this, r.operator = t, r;
|
827
847
|
}, e.prototype.subscribe = function(t, r, n) {
|
828
|
-
var i = this, s =
|
848
|
+
var i = this, s = fn(t) ? t : new Qe(t, r, n);
|
829
849
|
return _e(function() {
|
830
850
|
var o = i, a = o.operator, h = o.source;
|
831
851
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
@@ -838,8 +858,8 @@ var dt = function() {
|
|
838
858
|
}
|
839
859
|
}, e.prototype.forEach = function(t, r) {
|
840
860
|
var n = this;
|
841
|
-
return r =
|
842
|
-
var o = new
|
861
|
+
return r = vt(r), new r(function(i, s) {
|
862
|
+
var o = new Qe({
|
843
863
|
next: function(a) {
|
844
864
|
try {
|
845
865
|
t(a);
|
@@ -855,15 +875,15 @@ var dt = function() {
|
|
855
875
|
}, e.prototype._subscribe = function(t) {
|
856
876
|
var r;
|
857
877
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
858
|
-
}, e.prototype[
|
878
|
+
}, e.prototype[un] = function() {
|
859
879
|
return this;
|
860
880
|
}, e.prototype.pipe = function() {
|
861
881
|
for (var t = [], r = 0; r < arguments.length; r++)
|
862
882
|
t[r] = arguments[r];
|
863
|
-
return
|
883
|
+
return ln(t)(this);
|
864
884
|
}, e.prototype.toPromise = function(t) {
|
865
885
|
var r = this;
|
866
|
-
return t =
|
886
|
+
return t = vt(t), new t(function(n, i) {
|
867
887
|
var s;
|
868
888
|
r.subscribe(function(o) {
|
869
889
|
return s = o;
|
@@ -877,32 +897,32 @@ var dt = function() {
|
|
877
897
|
return new e(t);
|
878
898
|
}, e;
|
879
899
|
}();
|
880
|
-
function
|
900
|
+
function vt(e) {
|
881
901
|
var t;
|
882
|
-
return (t = e ??
|
902
|
+
return (t = e ?? Yt.Promise) !== null && t !== void 0 ? t : Promise;
|
883
903
|
}
|
884
|
-
function
|
904
|
+
function cn(e) {
|
885
905
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
886
906
|
}
|
887
|
-
function
|
888
|
-
return e && e instanceof
|
907
|
+
function fn(e) {
|
908
|
+
return e && e instanceof qt || cn(e) && Qt(e);
|
889
909
|
}
|
890
|
-
var
|
910
|
+
var mn = zt(function(e) {
|
891
911
|
return function() {
|
892
912
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
893
913
|
};
|
894
|
-
}),
|
914
|
+
}), Jt = function(e) {
|
895
915
|
U(t, e);
|
896
916
|
function t() {
|
897
917
|
var r = e.call(this) || this;
|
898
918
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
899
919
|
}
|
900
920
|
return t.prototype.lift = function(r) {
|
901
|
-
var n = new
|
921
|
+
var n = new _t(this, this);
|
902
922
|
return n.operator = r, n;
|
903
923
|
}, t.prototype._throwIfClosed = function() {
|
904
924
|
if (this.closed)
|
905
|
-
throw new
|
925
|
+
throw new mn();
|
906
926
|
}, t.prototype.next = function(r) {
|
907
927
|
var n = this;
|
908
928
|
_e(function() {
|
@@ -910,7 +930,7 @@ var un = kt(function(e) {
|
|
910
930
|
if (n._throwIfClosed(), !n.isStopped) {
|
911
931
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
912
932
|
try {
|
913
|
-
for (var o =
|
933
|
+
for (var o = We(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
914
934
|
var h = a.value;
|
915
935
|
h.next(r);
|
916
936
|
}
|
@@ -959,19 +979,19 @@ var un = kt(function(e) {
|
|
959
979
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
960
980
|
}, t.prototype._innerSubscribe = function(r) {
|
961
981
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
962
|
-
return s || o ?
|
963
|
-
n.currentObservers = null,
|
982
|
+
return s || o ? Zt : (this.currentObservers = null, a.push(r), new He(function() {
|
983
|
+
n.currentObservers = null, Ze(a, r);
|
964
984
|
}));
|
965
985
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
966
986
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
967
987
|
i ? r.error(s) : o && r.complete();
|
968
988
|
}, t.prototype.asObservable = function() {
|
969
|
-
var r = new
|
989
|
+
var r = new yt();
|
970
990
|
return r.source = this, r;
|
971
991
|
}, t.create = function(r, n) {
|
972
|
-
return new
|
992
|
+
return new _t(r, n);
|
973
993
|
}, t;
|
974
|
-
}(
|
994
|
+
}(yt), _t = function(e) {
|
975
995
|
U(t, e);
|
976
996
|
function t(r, n) {
|
977
997
|
var i = e.call(this) || this;
|
@@ -988,17 +1008,17 @@ var un = kt(function(e) {
|
|
988
1008
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
989
1009
|
}, t.prototype._subscribe = function(r) {
|
990
1010
|
var n, i;
|
991
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1011
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zt;
|
992
1012
|
}, t;
|
993
|
-
}(
|
1013
|
+
}(Jt), Kt = {
|
994
1014
|
now: function() {
|
995
|
-
return (
|
1015
|
+
return (Kt.delegate || Date).now();
|
996
1016
|
},
|
997
1017
|
delegate: void 0
|
998
|
-
},
|
1018
|
+
}, dn = function(e) {
|
999
1019
|
U(t, e);
|
1000
1020
|
function t(r, n, i) {
|
1001
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1021
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
1002
1022
|
var s = e.call(this) || this;
|
1003
1023
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
1004
1024
|
}
|
@@ -1018,15 +1038,15 @@ var un = kt(function(e) {
|
|
1018
1038
|
u && s.splice(0, u + 1);
|
1019
1039
|
}
|
1020
1040
|
}, t;
|
1021
|
-
}(
|
1022
|
-
const
|
1023
|
-
if (
|
1024
|
-
const r = new
|
1025
|
-
|
1041
|
+
}(Jt);
|
1042
|
+
const Et = [], xt = {}, bn = (e, t = 0) => {
|
1043
|
+
if (Et.indexOf(e) == -1) {
|
1044
|
+
const r = new dn(t);
|
1045
|
+
xt[e] = r, Et.push(e);
|
1026
1046
|
}
|
1027
|
-
return
|
1047
|
+
return xt[e];
|
1028
1048
|
}, Z = [];
|
1029
|
-
function
|
1049
|
+
function pn(e, t) {
|
1030
1050
|
return {
|
1031
1051
|
subscribe: Ae(e, t).subscribe
|
1032
1052
|
};
|
@@ -1035,7 +1055,7 @@ function Ae(e, t = P) {
|
|
1035
1055
|
let r;
|
1036
1056
|
const n = /* @__PURE__ */ new Set();
|
1037
1057
|
function i(a) {
|
1038
|
-
if (
|
1058
|
+
if (Dt(e, a) && (e = a, r)) {
|
1039
1059
|
const h = !Z.length;
|
1040
1060
|
for (const u of n)
|
1041
1061
|
u[1](), Z.push(u, e);
|
@@ -1062,7 +1082,7 @@ function ie(e, t, r) {
|
|
1062
1082
|
if (!i.every(Boolean))
|
1063
1083
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1064
1084
|
const s = t.length < 2;
|
1065
|
-
return
|
1085
|
+
return pn(r, (o, a) => {
|
1066
1086
|
let h = !1;
|
1067
1087
|
const u = [];
|
1068
1088
|
let l = 0, m = P;
|
@@ -1073,7 +1093,7 @@ function ie(e, t, r) {
|
|
1073
1093
|
const b = t(n ? u[0] : u, o, a);
|
1074
1094
|
s ? o(b) : m = Te(b) ? b : P;
|
1075
1095
|
}, d = i.map(
|
1076
|
-
(b, y) =>
|
1096
|
+
(b, y) => Ft(
|
1077
1097
|
b,
|
1078
1098
|
(T) => {
|
1079
1099
|
u[y] = T, l &= ~(1 << y), h && c();
|
@@ -1088,70 +1108,70 @@ function ie(e, t, r) {
|
|
1088
1108
|
};
|
1089
1109
|
});
|
1090
1110
|
}
|
1091
|
-
function
|
1111
|
+
function gn(e) {
|
1092
1112
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1093
1113
|
}
|
1094
|
-
var
|
1095
|
-
return
|
1114
|
+
var yn = function(t) {
|
1115
|
+
return vn(t) && !_n(t);
|
1096
1116
|
};
|
1097
|
-
function
|
1117
|
+
function vn(e) {
|
1098
1118
|
return !!e && typeof e == "object";
|
1099
1119
|
}
|
1100
|
-
function
|
1120
|
+
function _n(e) {
|
1101
1121
|
var t = Object.prototype.toString.call(e);
|
1102
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1122
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
1103
1123
|
}
|
1104
|
-
var
|
1105
|
-
function
|
1106
|
-
return e.$$typeof ===
|
1124
|
+
var En = typeof Symbol == "function" && Symbol.for, xn = En ? Symbol.for("react.element") : 60103;
|
1125
|
+
function Sn(e) {
|
1126
|
+
return e.$$typeof === xn;
|
1107
1127
|
}
|
1108
|
-
function
|
1128
|
+
function wn(e) {
|
1109
1129
|
return Array.isArray(e) ? [] : {};
|
1110
1130
|
}
|
1111
1131
|
function he(e, t) {
|
1112
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? J(
|
1132
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(wn(e), e, t) : e;
|
1113
1133
|
}
|
1114
|
-
function
|
1134
|
+
function Tn(e, t, r) {
|
1115
1135
|
return e.concat(t).map(function(n) {
|
1116
1136
|
return he(n, r);
|
1117
1137
|
});
|
1118
1138
|
}
|
1119
|
-
function
|
1139
|
+
function Hn(e, t) {
|
1120
1140
|
if (!t.customMerge)
|
1121
1141
|
return J;
|
1122
1142
|
var r = t.customMerge(e);
|
1123
1143
|
return typeof r == "function" ? r : J;
|
1124
1144
|
}
|
1125
|
-
function
|
1145
|
+
function An(e) {
|
1126
1146
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1127
1147
|
return Object.propertyIsEnumerable.call(e, t);
|
1128
1148
|
}) : [];
|
1129
1149
|
}
|
1130
|
-
function
|
1131
|
-
return Object.keys(e).concat(
|
1150
|
+
function St(e) {
|
1151
|
+
return Object.keys(e).concat(An(e));
|
1132
1152
|
}
|
1133
|
-
function
|
1153
|
+
function er(e, t) {
|
1134
1154
|
try {
|
1135
1155
|
return t in e;
|
1136
1156
|
} catch {
|
1137
1157
|
return !1;
|
1138
1158
|
}
|
1139
1159
|
}
|
1140
|
-
function
|
1141
|
-
return
|
1160
|
+
function Bn(e, t) {
|
1161
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1142
1162
|
}
|
1143
|
-
function
|
1163
|
+
function Pn(e, t, r) {
|
1144
1164
|
var n = {};
|
1145
|
-
return r.isMergeableObject(e) &&
|
1165
|
+
return r.isMergeableObject(e) && St(e).forEach(function(i) {
|
1146
1166
|
n[i] = he(e[i], r);
|
1147
|
-
}),
|
1148
|
-
|
1167
|
+
}), St(t).forEach(function(i) {
|
1168
|
+
Bn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
1149
1169
|
}), n;
|
1150
1170
|
}
|
1151
1171
|
function J(e, t, r) {
|
1152
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1172
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tn, r.isMergeableObject = r.isMergeableObject || yn, r.cloneUnlessOtherwiseSpecified = he;
|
1153
1173
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
1154
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
1174
|
+
return s ? n ? r.arrayMerge(e, t, r) : Pn(e, t, r) : he(t, r);
|
1155
1175
|
}
|
1156
1176
|
J.all = function(t, r) {
|
1157
1177
|
if (!Array.isArray(t))
|
@@ -1160,56 +1180,58 @@ J.all = function(t, r) {
|
|
1160
1180
|
return J(n, i, r);
|
1161
1181
|
}, {});
|
1162
1182
|
};
|
1163
|
-
var
|
1164
|
-
const
|
1165
|
-
function
|
1166
|
-
var r = t && t.cache ? t.cache :
|
1183
|
+
var Nn = J, On = Nn;
|
1184
|
+
const Ln = /* @__PURE__ */ gn(On);
|
1185
|
+
function Ge(e, t) {
|
1186
|
+
var r = t && t.cache ? t.cache : Un, n = t && t.serializer ? t.serializer : Gn, i = t && t.strategy ? t.strategy : Cn;
|
1167
1187
|
return i(e, {
|
1168
1188
|
cache: r,
|
1169
1189
|
serializer: n
|
1170
1190
|
});
|
1171
1191
|
}
|
1172
|
-
function
|
1192
|
+
function In(e) {
|
1173
1193
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1174
1194
|
}
|
1175
|
-
function
|
1176
|
-
var i =
|
1195
|
+
function tr(e, t, r, n) {
|
1196
|
+
var i = In(n) ? n : r(n), s = t.get(i);
|
1177
1197
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
1178
1198
|
}
|
1179
|
-
function
|
1199
|
+
function rr(e, t, r) {
|
1180
1200
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
1181
1201
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
1182
1202
|
}
|
1183
|
-
function
|
1203
|
+
function st(e, t, r, n, i) {
|
1184
1204
|
return r.bind(t, e, n, i);
|
1185
1205
|
}
|
1186
|
-
function
|
1187
|
-
var r = e.length === 1 ?
|
1188
|
-
return
|
1206
|
+
function Cn(e, t) {
|
1207
|
+
var r = e.length === 1 ? tr : rr;
|
1208
|
+
return st(e, this, r, t.cache.create(), t.serializer);
|
1209
|
+
}
|
1210
|
+
function Mn(e, t) {
|
1211
|
+
return st(e, this, rr, t.cache.create(), t.serializer);
|
1189
1212
|
}
|
1190
|
-
function
|
1191
|
-
return
|
1213
|
+
function Rn(e, t) {
|
1214
|
+
return st(e, this, tr, t.cache.create(), t.serializer);
|
1192
1215
|
}
|
1193
|
-
var
|
1216
|
+
var Gn = function() {
|
1194
1217
|
return JSON.stringify(arguments);
|
1195
|
-
}
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
}()
|
1207
|
-
), Cn = {
|
1218
|
+
};
|
1219
|
+
function ot() {
|
1220
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1221
|
+
}
|
1222
|
+
ot.prototype.get = function(e) {
|
1223
|
+
return this.cache[e];
|
1224
|
+
};
|
1225
|
+
ot.prototype.set = function(e, t) {
|
1226
|
+
this.cache[e] = t;
|
1227
|
+
};
|
1228
|
+
var Un = {
|
1208
1229
|
create: function() {
|
1209
|
-
return new
|
1230
|
+
return new ot();
|
1210
1231
|
}
|
1211
|
-
},
|
1212
|
-
variadic:
|
1232
|
+
}, Ue = {
|
1233
|
+
variadic: Mn,
|
1234
|
+
monadic: Rn
|
1213
1235
|
}, p;
|
1214
1236
|
(function(e) {
|
1215
1237
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
@@ -1222,43 +1244,43 @@ var K;
|
|
1222
1244
|
(function(e) {
|
1223
1245
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1224
1246
|
})(K || (K = {}));
|
1225
|
-
function
|
1247
|
+
function wt(e) {
|
1226
1248
|
return e.type === x.literal;
|
1227
1249
|
}
|
1228
|
-
function
|
1250
|
+
function Dn(e) {
|
1229
1251
|
return e.type === x.argument;
|
1230
1252
|
}
|
1231
|
-
function
|
1253
|
+
function nr(e) {
|
1232
1254
|
return e.type === x.number;
|
1233
1255
|
}
|
1234
|
-
function
|
1256
|
+
function ir(e) {
|
1235
1257
|
return e.type === x.date;
|
1236
1258
|
}
|
1237
|
-
function
|
1259
|
+
function sr(e) {
|
1238
1260
|
return e.type === x.time;
|
1239
1261
|
}
|
1240
|
-
function
|
1262
|
+
function or(e) {
|
1241
1263
|
return e.type === x.select;
|
1242
1264
|
}
|
1243
|
-
function
|
1265
|
+
function ar(e) {
|
1244
1266
|
return e.type === x.plural;
|
1245
1267
|
}
|
1246
|
-
function
|
1268
|
+
function Fn(e) {
|
1247
1269
|
return e.type === x.pound;
|
1248
1270
|
}
|
1249
|
-
function
|
1271
|
+
function ur(e) {
|
1250
1272
|
return e.type === x.tag;
|
1251
1273
|
}
|
1252
|
-
function
|
1274
|
+
function hr(e) {
|
1253
1275
|
return !!(e && typeof e == "object" && e.type === K.number);
|
1254
1276
|
}
|
1255
|
-
function
|
1277
|
+
function Ye(e) {
|
1256
1278
|
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
1257
1279
|
}
|
1258
|
-
var
|
1259
|
-
function
|
1280
|
+
var lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $n = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
1281
|
+
function jn(e) {
|
1260
1282
|
var t = {};
|
1261
|
-
return e.replace(
|
1283
|
+
return e.replace($n, function(r) {
|
1262
1284
|
var n = r.length;
|
1263
1285
|
switch (r[0]) {
|
1264
1286
|
case "G":
|
@@ -1347,11 +1369,11 @@ function Un(e) {
|
|
1347
1369
|
return "";
|
1348
1370
|
}), t;
|
1349
1371
|
}
|
1350
|
-
var
|
1351
|
-
function
|
1372
|
+
var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1373
|
+
function Vn(e) {
|
1352
1374
|
if (e.length === 0)
|
1353
1375
|
throw new Error("Number skeleton cannot be empty");
|
1354
|
-
for (var t = e.split(
|
1376
|
+
for (var t = e.split(kn).filter(function(c) {
|
1355
1377
|
return c.length > 0;
|
1356
1378
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1357
1379
|
var s = i[n], o = s.split("/");
|
@@ -1366,17 +1388,17 @@ function Fn(e) {
|
|
1366
1388
|
}
|
1367
1389
|
return r;
|
1368
1390
|
}
|
1369
|
-
function
|
1391
|
+
function Xn(e) {
|
1370
1392
|
return e.replace(/^(.*?)-/, "");
|
1371
1393
|
}
|
1372
|
-
var
|
1373
|
-
function
|
1394
|
+
var Tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
1395
|
+
function Ht(e) {
|
1374
1396
|
var t = {};
|
1375
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1397
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
1376
1398
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
1377
1399
|
}), t;
|
1378
1400
|
}
|
1379
|
-
function
|
1401
|
+
function mr(e) {
|
1380
1402
|
switch (e) {
|
1381
1403
|
case "sign-auto":
|
1382
1404
|
return {
|
@@ -1416,7 +1438,7 @@ function ur(e) {
|
|
1416
1438
|
};
|
1417
1439
|
}
|
1418
1440
|
}
|
1419
|
-
function
|
1441
|
+
function zn(e) {
|
1420
1442
|
var t;
|
1421
1443
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1422
1444
|
notation: "engineering"
|
@@ -1424,17 +1446,17 @@ function kn(e) {
|
|
1424
1446
|
notation: "scientific"
|
1425
1447
|
}, e = e.slice(1)), t) {
|
1426
1448
|
var r = e.slice(0, 2);
|
1427
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1449
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
1428
1450
|
throw new Error("Malformed concise eng/scientific notation");
|
1429
1451
|
t.minimumIntegerDigits = e.length;
|
1430
1452
|
}
|
1431
1453
|
return t;
|
1432
1454
|
}
|
1433
|
-
function
|
1434
|
-
var t = {}, r =
|
1455
|
+
function At(e) {
|
1456
|
+
var t = {}, r = mr(e);
|
1435
1457
|
return r || t;
|
1436
1458
|
}
|
1437
|
-
function
|
1459
|
+
function Zn(e) {
|
1438
1460
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1439
1461
|
var i = n[r];
|
1440
1462
|
switch (i.stem) {
|
@@ -1458,7 +1480,7 @@ function Vn(e) {
|
|
1458
1480
|
continue;
|
1459
1481
|
case "measure-unit":
|
1460
1482
|
case "unit":
|
1461
|
-
t.style = "unit", t.unit =
|
1483
|
+
t.style = "unit", t.unit = Xn(i.options[0]);
|
1462
1484
|
continue;
|
1463
1485
|
case "compact-short":
|
1464
1486
|
case "K":
|
@@ -1470,12 +1492,12 @@ function Vn(e) {
|
|
1470
1492
|
continue;
|
1471
1493
|
case "scientific":
|
1472
1494
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
1473
|
-
return v(v({}, h),
|
1495
|
+
return v(v({}, h), At(u));
|
1474
1496
|
}, {}));
|
1475
1497
|
continue;
|
1476
1498
|
case "engineering":
|
1477
1499
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
1478
|
-
return v(v({}, h),
|
1500
|
+
return v(v({}, h), At(u));
|
1479
1501
|
}, {}));
|
1480
1502
|
continue;
|
1481
1503
|
case "notation-simple":
|
@@ -1520,7 +1542,7 @@ function Vn(e) {
|
|
1520
1542
|
case "integer-width":
|
1521
1543
|
if (i.options.length > 1)
|
1522
1544
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1523
|
-
i.options[0].replace(
|
1545
|
+
i.options[0].replace(Wn, function(h, u, l, m, c, d) {
|
1524
1546
|
if (u)
|
1525
1547
|
t.minimumIntegerDigits = l.length;
|
1526
1548
|
else {
|
@@ -1533,27 +1555,27 @@ function Vn(e) {
|
|
1533
1555
|
});
|
1534
1556
|
continue;
|
1535
1557
|
}
|
1536
|
-
if (
|
1558
|
+
if (fr.test(i.stem)) {
|
1537
1559
|
t.minimumIntegerDigits = i.stem.length;
|
1538
1560
|
continue;
|
1539
1561
|
}
|
1540
|
-
if (
|
1562
|
+
if (Tt.test(i.stem)) {
|
1541
1563
|
if (i.options.length > 1)
|
1542
1564
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1543
|
-
i.stem.replace(
|
1565
|
+
i.stem.replace(Tt, function(h, u, l, m, c, d) {
|
1544
1566
|
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
1545
1567
|
});
|
1546
1568
|
var s = i.options[0];
|
1547
|
-
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t),
|
1569
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), Ht(s)));
|
1548
1570
|
continue;
|
1549
1571
|
}
|
1550
|
-
if (
|
1551
|
-
t = v(v({}, t),
|
1572
|
+
if (cr.test(i.stem)) {
|
1573
|
+
t = v(v({}, t), Ht(i.stem));
|
1552
1574
|
continue;
|
1553
1575
|
}
|
1554
|
-
var o =
|
1576
|
+
var o = mr(i.stem);
|
1555
1577
|
o && (t = v(v({}, t), o));
|
1556
|
-
var a =
|
1578
|
+
var a = zn(i.stem);
|
1557
1579
|
a && (t = v(v({}, t), a));
|
1558
1580
|
}
|
1559
1581
|
return t;
|
@@ -2973,13 +2995,13 @@ var ye = {
|
|
2973
2995
|
"h"
|
2974
2996
|
]
|
2975
2997
|
};
|
2976
|
-
function
|
2998
|
+
function Qn(e, t) {
|
2977
2999
|
for (var r = "", n = 0; n < e.length; n++) {
|
2978
3000
|
var i = e.charAt(n);
|
2979
3001
|
if (i === "j") {
|
2980
3002
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2981
3003
|
s++, n++;
|
2982
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
3004
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Yn(t);
|
2983
3005
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2984
3006
|
r += h;
|
2985
3007
|
for (; o-- > 0; )
|
@@ -2989,7 +3011,7 @@ function Xn(e, t) {
|
|
2989
3011
|
}
|
2990
3012
|
return r;
|
2991
3013
|
}
|
2992
|
-
function
|
3014
|
+
function Yn(e) {
|
2993
3015
|
var t = e.hourCycle;
|
2994
3016
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2995
3017
|
e.hourCycles && // @ts-ignore
|
@@ -3011,20 +3033,20 @@ function Wn(e) {
|
|
3011
3033
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
3012
3034
|
return i[0];
|
3013
3035
|
}
|
3014
|
-
var
|
3036
|
+
var De, qn = new RegExp("^".concat(lr.source, "*")), Jn = new RegExp("".concat(lr.source, "*$"));
|
3015
3037
|
function g(e, t) {
|
3016
3038
|
return { start: e, end: t };
|
3017
3039
|
}
|
3018
|
-
var
|
3040
|
+
var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, oi = si ? Number.isSafeInteger : function(e) {
|
3019
3041
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3020
|
-
},
|
3042
|
+
}, qe = !0;
|
3021
3043
|
try {
|
3022
|
-
var
|
3023
|
-
|
3044
|
+
var ai = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3045
|
+
qe = ((De = ai.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
3024
3046
|
} catch {
|
3025
|
-
|
3047
|
+
qe = !1;
|
3026
3048
|
}
|
3027
|
-
var
|
3049
|
+
var Bt = Kn ? (
|
3028
3050
|
// Native
|
3029
3051
|
function(t, r, n) {
|
3030
3052
|
return t.startsWith(r, n);
|
@@ -3034,7 +3056,7 @@ var wt = Qn ? (
|
|
3034
3056
|
function(t, r, n) {
|
3035
3057
|
return t.slice(n, n + r.length) === r;
|
3036
3058
|
}
|
3037
|
-
),
|
3059
|
+
), Je = ei ? String.fromCodePoint : (
|
3038
3060
|
// IE11
|
3039
3061
|
function() {
|
3040
3062
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3046,9 +3068,9 @@ var wt = Qn ? (
|
|
3046
3068
|
}
|
3047
3069
|
return n;
|
3048
3070
|
}
|
3049
|
-
),
|
3071
|
+
), Pt = (
|
3050
3072
|
// native
|
3051
|
-
|
3073
|
+
ti ? Object.fromEntries : (
|
3052
3074
|
// Ponyfill
|
3053
3075
|
function(t) {
|
3054
3076
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3058,7 +3080,7 @@ var wt = Qn ? (
|
|
3058
3080
|
return r;
|
3059
3081
|
}
|
3060
3082
|
)
|
3061
|
-
),
|
3083
|
+
), dr = ri ? (
|
3062
3084
|
// Native
|
3063
3085
|
function(t, r) {
|
3064
3086
|
return t.codePointAt(r);
|
@@ -3072,7 +3094,7 @@ var wt = Qn ? (
|
|
3072
3094
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
3073
3095
|
}
|
3074
3096
|
}
|
3075
|
-
),
|
3097
|
+
), ui = ni ? (
|
3076
3098
|
// Native
|
3077
3099
|
function(t) {
|
3078
3100
|
return t.trimStart();
|
@@ -3080,9 +3102,9 @@ var wt = Qn ? (
|
|
3080
3102
|
) : (
|
3081
3103
|
// Ponyfill
|
3082
3104
|
function(t) {
|
3083
|
-
return t.replace(
|
3105
|
+
return t.replace(qn, "");
|
3084
3106
|
}
|
3085
|
-
),
|
3107
|
+
), hi = ii ? (
|
3086
3108
|
// Native
|
3087
3109
|
function(t) {
|
3088
3110
|
return t.trimEnd();
|
@@ -3090,32 +3112,32 @@ var wt = Qn ? (
|
|
3090
3112
|
) : (
|
3091
3113
|
// Ponyfill
|
3092
3114
|
function(t) {
|
3093
|
-
return t.replace(
|
3115
|
+
return t.replace(Jn, "");
|
3094
3116
|
}
|
3095
3117
|
);
|
3096
|
-
function
|
3118
|
+
function br(e, t) {
|
3097
3119
|
return new RegExp(e, t);
|
3098
3120
|
}
|
3099
|
-
var
|
3100
|
-
if (
|
3101
|
-
var
|
3102
|
-
|
3121
|
+
var Ke;
|
3122
|
+
if (qe) {
|
3123
|
+
var Nt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3124
|
+
Ke = function(t, r) {
|
3103
3125
|
var n;
|
3104
|
-
|
3105
|
-
var i =
|
3126
|
+
Nt.lastIndex = r;
|
3127
|
+
var i = Nt.exec(t);
|
3106
3128
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3107
3129
|
};
|
3108
3130
|
} else
|
3109
|
-
|
3131
|
+
Ke = function(t, r) {
|
3110
3132
|
for (var n = []; ; ) {
|
3111
|
-
var i =
|
3112
|
-
if (i === void 0 ||
|
3133
|
+
var i = dr(t, r);
|
3134
|
+
if (i === void 0 || pr(i) || mi(i))
|
3113
3135
|
break;
|
3114
3136
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3115
3137
|
}
|
3116
|
-
return
|
3138
|
+
return Je.apply(void 0, n);
|
3117
3139
|
};
|
3118
|
-
var
|
3140
|
+
var li = (
|
3119
3141
|
/** @class */
|
3120
3142
|
function() {
|
3121
3143
|
function e(t, r) {
|
@@ -3146,7 +3168,7 @@ var oi = (
|
|
3146
3168
|
if (n)
|
3147
3169
|
break;
|
3148
3170
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
3149
|
-
} else if (s === 60 && !this.ignoreTag &&
|
3171
|
+
} else if (s === 60 && !this.ignoreTag && et(this.peek() || 0)) {
|
3150
3172
|
var o = this.parseTag(t, r);
|
3151
3173
|
if (o.err)
|
3152
3174
|
return o;
|
@@ -3179,7 +3201,7 @@ var oi = (
|
|
3179
3201
|
return s;
|
3180
3202
|
var o = s.val, a = this.clonePosition();
|
3181
3203
|
if (this.bumpIf("</")) {
|
3182
|
-
if (this.isEOF() || !
|
3204
|
+
if (this.isEOF() || !et(this.char()))
|
3183
3205
|
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
3184
3206
|
var h = this.clonePosition(), u = this.parseTagName();
|
3185
3207
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -3197,7 +3219,7 @@ var oi = (
|
|
3197
3219
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
3198
3220
|
}, e.prototype.parseTagName = function() {
|
3199
3221
|
var t = this.offset();
|
3200
|
-
for (this.bump(); !this.isEOF() &&
|
3222
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
3201
3223
|
this.bump();
|
3202
3224
|
return this.message.slice(t, this.offset());
|
3203
3225
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3226,7 +3248,7 @@ var oi = (
|
|
3226
3248
|
};
|
3227
3249
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3228
3250
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3229
|
-
!
|
3251
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3230
3252
|
}, e.prototype.tryParseQuote = function(t) {
|
3231
3253
|
if (this.isEOF() || this.char() !== 39)
|
3232
3254
|
return null;
|
@@ -3260,12 +3282,12 @@ var oi = (
|
|
3260
3282
|
r.push(n);
|
3261
3283
|
this.bump();
|
3262
3284
|
}
|
3263
|
-
return
|
3285
|
+
return Je.apply(void 0, r);
|
3264
3286
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3265
3287
|
if (this.isEOF())
|
3266
3288
|
return null;
|
3267
3289
|
var n = this.char();
|
3268
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3290
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
|
3269
3291
|
}, e.prototype.parseArgument = function(t, r) {
|
3270
3292
|
var n = this.clonePosition();
|
3271
3293
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3294,7 +3316,7 @@ var oi = (
|
|
3294
3316
|
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
3295
3317
|
}
|
3296
3318
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3297
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3319
|
+
var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
|
3298
3320
|
this.bumpTo(i);
|
3299
3321
|
var s = this.clonePosition(), o = g(t, s);
|
3300
3322
|
return { value: n, location: o };
|
@@ -3313,7 +3335,7 @@ var oi = (
|
|
3313
3335
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
3314
3336
|
if (m.err)
|
3315
3337
|
return m;
|
3316
|
-
var c =
|
3338
|
+
var c = hi(m.val);
|
3317
3339
|
if (c.length === 0)
|
3318
3340
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
3319
3341
|
var d = g(l, this.clonePosition());
|
@@ -3323,8 +3345,8 @@ var oi = (
|
|
3323
3345
|
if (b.err)
|
3324
3346
|
return b;
|
3325
3347
|
var y = g(i, this.clonePosition());
|
3326
|
-
if (u &&
|
3327
|
-
var T =
|
3348
|
+
if (u && Bt(u?.style, "::", 0)) {
|
3349
|
+
var T = ui(u.style.slice(2));
|
3328
3350
|
if (a === "number") {
|
3329
3351
|
var m = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
3330
3352
|
return m.err ? m : {
|
@@ -3335,12 +3357,12 @@ var oi = (
|
|
3335
3357
|
if (T.length === 0)
|
3336
3358
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, y);
|
3337
3359
|
var C = T;
|
3338
|
-
this.locale && (C =
|
3360
|
+
this.locale && (C = Qn(T, this.locale));
|
3339
3361
|
var c = {
|
3340
3362
|
type: K.dateTime,
|
3341
3363
|
pattern: C,
|
3342
3364
|
location: u.styleLocation,
|
3343
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3365
|
+
parsedOptions: this.shouldParseSkeletons ? jn(C) : {}
|
3344
3366
|
}, N = a === "date" ? x.date : x.time;
|
3345
3367
|
return {
|
3346
3368
|
val: { type: N, value: n, location: y, style: c },
|
@@ -3386,7 +3408,7 @@ var oi = (
|
|
3386
3408
|
val: {
|
3387
3409
|
type: x.select,
|
3388
3410
|
value: n,
|
3389
|
-
options:
|
3411
|
+
options: Pt(M.val),
|
3390
3412
|
location: E
|
3391
3413
|
},
|
3392
3414
|
err: null
|
@@ -3394,7 +3416,7 @@ var oi = (
|
|
3394
3416
|
val: {
|
3395
3417
|
type: x.plural,
|
3396
3418
|
value: n,
|
3397
|
-
options:
|
3419
|
+
options: Pt(M.val),
|
3398
3420
|
offset: L,
|
3399
3421
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3400
3422
|
location: E
|
@@ -3445,7 +3467,7 @@ var oi = (
|
|
3445
3467
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3446
3468
|
var n = [];
|
3447
3469
|
try {
|
3448
|
-
n =
|
3470
|
+
n = Vn(t);
|
3449
3471
|
} catch {
|
3450
3472
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
3451
3473
|
}
|
@@ -3454,7 +3476,7 @@ var oi = (
|
|
3454
3476
|
type: K.number,
|
3455
3477
|
tokens: n,
|
3456
3478
|
location: r,
|
3457
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3479
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(n) : {}
|
3458
3480
|
},
|
3459
3481
|
err: null
|
3460
3482
|
};
|
@@ -3502,7 +3524,7 @@ var oi = (
|
|
3502
3524
|
break;
|
3503
3525
|
}
|
3504
3526
|
var h = g(i, this.clonePosition());
|
3505
|
-
return s ? (o *= n,
|
3527
|
+
return s ? (o *= n, oi(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3506
3528
|
}, e.prototype.offset = function() {
|
3507
3529
|
return this.position.offset;
|
3508
3530
|
}, e.prototype.isEOF = function() {
|
@@ -3517,7 +3539,7 @@ var oi = (
|
|
3517
3539
|
var t = this.position.offset;
|
3518
3540
|
if (t >= this.message.length)
|
3519
3541
|
throw Error("out of bound");
|
3520
|
-
var r =
|
3542
|
+
var r = dr(this.message, t);
|
3521
3543
|
if (r === void 0)
|
3522
3544
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3523
3545
|
return r;
|
@@ -3536,7 +3558,7 @@ var oi = (
|
|
3536
3558
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
3537
3559
|
}
|
3538
3560
|
}, e.prototype.bumpIf = function(t) {
|
3539
|
-
if (
|
3561
|
+
if (Bt(this.message, t, this.offset())) {
|
3540
3562
|
for (var r = 0; r < t.length; r++)
|
3541
3563
|
this.bump();
|
3542
3564
|
return !0;
|
@@ -3558,7 +3580,7 @@ var oi = (
|
|
3558
3580
|
break;
|
3559
3581
|
}
|
3560
3582
|
}, e.prototype.bumpSpace = function() {
|
3561
|
-
for (; !this.isEOF() &&
|
3583
|
+
for (; !this.isEOF() && pr(this.char()); )
|
3562
3584
|
this.bump();
|
3563
3585
|
}, e.prototype.peek = function() {
|
3564
3586
|
if (this.isEOF())
|
@@ -3568,38 +3590,38 @@ var oi = (
|
|
3568
3590
|
}, e;
|
3569
3591
|
}()
|
3570
3592
|
);
|
3571
|
-
function
|
3593
|
+
function et(e) {
|
3572
3594
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3573
3595
|
}
|
3574
|
-
function
|
3575
|
-
return
|
3596
|
+
function ci(e) {
|
3597
|
+
return et(e) || e === 47;
|
3576
3598
|
}
|
3577
|
-
function
|
3599
|
+
function fi(e) {
|
3578
3600
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
3579
3601
|
}
|
3580
|
-
function
|
3602
|
+
function pr(e) {
|
3581
3603
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3582
3604
|
}
|
3583
|
-
function
|
3605
|
+
function mi(e) {
|
3584
3606
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
3585
3607
|
}
|
3586
|
-
function
|
3608
|
+
function tt(e) {
|
3587
3609
|
e.forEach(function(t) {
|
3588
|
-
if (delete t.location,
|
3610
|
+
if (delete t.location, or(t) || ar(t))
|
3589
3611
|
for (var r in t.options)
|
3590
|
-
delete t.options[r].location,
|
3612
|
+
delete t.options[r].location, tt(t.options[r].value);
|
3591
3613
|
else
|
3592
|
-
|
3614
|
+
nr(t) && hr(t.style) || (ir(t) || sr(t)) && Ye(t.style) ? delete t.style.location : ur(t) && tt(t.children);
|
3593
3615
|
});
|
3594
3616
|
}
|
3595
|
-
function
|
3617
|
+
function di(e, t) {
|
3596
3618
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3597
|
-
var r = new
|
3619
|
+
var r = new li(e, t).parse();
|
3598
3620
|
if (r.err) {
|
3599
3621
|
var n = SyntaxError(p[r.err.kind]);
|
3600
3622
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3601
3623
|
}
|
3602
|
-
return t?.captureLocation ||
|
3624
|
+
return t?.captureLocation || tt(r.val), r.val;
|
3603
3625
|
}
|
3604
3626
|
var ee;
|
3605
3627
|
(function(e) {
|
@@ -3617,7 +3639,7 @@ var Be = (
|
|
3617
3639
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3618
3640
|
}, t;
|
3619
3641
|
}(Error)
|
3620
|
-
),
|
3642
|
+
), Ot = (
|
3621
3643
|
/** @class */
|
3622
3644
|
function(e) {
|
3623
3645
|
U(t, e);
|
@@ -3626,7 +3648,7 @@ var Be = (
|
|
3626
3648
|
}
|
3627
3649
|
return t;
|
3628
3650
|
}(Be)
|
3629
|
-
),
|
3651
|
+
), bi = (
|
3630
3652
|
/** @class */
|
3631
3653
|
function(e) {
|
3632
3654
|
U(t, e);
|
@@ -3635,7 +3657,7 @@ var Be = (
|
|
3635
3657
|
}
|
3636
3658
|
return t;
|
3637
3659
|
}(Be)
|
3638
|
-
),
|
3660
|
+
), pi = (
|
3639
3661
|
/** @class */
|
3640
3662
|
function(e) {
|
3641
3663
|
U(t, e);
|
@@ -3648,17 +3670,17 @@ var Be = (
|
|
3648
3670
|
(function(e) {
|
3649
3671
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3650
3672
|
})(H || (H = {}));
|
3651
|
-
function
|
3673
|
+
function gi(e) {
|
3652
3674
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3653
3675
|
var n = t[t.length - 1];
|
3654
3676
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3655
3677
|
}, []);
|
3656
3678
|
}
|
3657
|
-
function
|
3679
|
+
function yi(e) {
|
3658
3680
|
return typeof e == "function";
|
3659
3681
|
}
|
3660
3682
|
function Ee(e, t, r, n, i, s, o) {
|
3661
|
-
if (e.length === 1 &&
|
3683
|
+
if (e.length === 1 && wt(e[0]))
|
3662
3684
|
return [
|
3663
3685
|
{
|
3664
3686
|
type: H.literal,
|
@@ -3667,14 +3689,14 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3667
3689
|
];
|
3668
3690
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3669
3691
|
var l = u[h];
|
3670
|
-
if (
|
3692
|
+
if (wt(l)) {
|
3671
3693
|
a.push({
|
3672
3694
|
type: H.literal,
|
3673
3695
|
value: l.value
|
3674
3696
|
});
|
3675
3697
|
continue;
|
3676
3698
|
}
|
3677
|
-
if (
|
3699
|
+
if (Fn(l)) {
|
3678
3700
|
typeof s == "number" && a.push({
|
3679
3701
|
type: H.literal,
|
3680
3702
|
value: r.getNumberFormat(t).format(s)
|
@@ -3683,43 +3705,43 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3683
3705
|
}
|
3684
3706
|
var m = l.value;
|
3685
3707
|
if (!(i && m in i))
|
3686
|
-
throw new
|
3708
|
+
throw new pi(m, o);
|
3687
3709
|
var c = i[m];
|
3688
|
-
if (
|
3710
|
+
if (Dn(l)) {
|
3689
3711
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3690
3712
|
type: typeof c == "string" ? H.literal : H.object,
|
3691
3713
|
value: c
|
3692
3714
|
});
|
3693
3715
|
continue;
|
3694
3716
|
}
|
3695
|
-
if (
|
3696
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
3717
|
+
if (ir(l)) {
|
3718
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ye(l.style) ? l.style.parsedOptions : void 0;
|
3697
3719
|
a.push({
|
3698
3720
|
type: H.literal,
|
3699
3721
|
value: r.getDateTimeFormat(t, d).format(c)
|
3700
3722
|
});
|
3701
3723
|
continue;
|
3702
3724
|
}
|
3703
|
-
if (
|
3704
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
3725
|
+
if (sr(l)) {
|
3726
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ye(l.style) ? l.style.parsedOptions : n.time.medium;
|
3705
3727
|
a.push({
|
3706
3728
|
type: H.literal,
|
3707
3729
|
value: r.getDateTimeFormat(t, d).format(c)
|
3708
3730
|
});
|
3709
3731
|
continue;
|
3710
3732
|
}
|
3711
|
-
if (
|
3712
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
3733
|
+
if (nr(l)) {
|
3734
|
+
var d = typeof l.style == "string" ? n.number[l.style] : hr(l.style) ? l.style.parsedOptions : void 0;
|
3713
3735
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3714
3736
|
type: H.literal,
|
3715
3737
|
value: r.getNumberFormat(t, d).format(c)
|
3716
3738
|
});
|
3717
3739
|
continue;
|
3718
3740
|
}
|
3719
|
-
if (
|
3741
|
+
if (ur(l)) {
|
3720
3742
|
var b = l.children, y = l.value, T = i[y];
|
3721
|
-
if (!
|
3722
|
-
throw new
|
3743
|
+
if (!yi(T))
|
3744
|
+
throw new bi(y, "function", o);
|
3723
3745
|
var C = Ee(b, t, r, n, i, s), N = T(C.map(function(L) {
|
3724
3746
|
return L.value;
|
3725
3747
|
}));
|
@@ -3730,14 +3752,14 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3730
3752
|
};
|
3731
3753
|
}));
|
3732
3754
|
}
|
3733
|
-
if (
|
3755
|
+
if (or(l)) {
|
3734
3756
|
var w = l.options[c] || l.options.other;
|
3735
3757
|
if (!w)
|
3736
|
-
throw new
|
3758
|
+
throw new Ot(l.value, c, Object.keys(l.options), o);
|
3737
3759
|
a.push.apply(a, Ee(w.value, t, r, n, i));
|
3738
3760
|
continue;
|
3739
3761
|
}
|
3740
|
-
if (
|
3762
|
+
if (ar(l)) {
|
3741
3763
|
var w = l.options["=".concat(c)];
|
3742
3764
|
if (!w) {
|
3743
3765
|
if (!Intl.PluralRules)
|
@@ -3748,24 +3770,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3748
3770
|
w = l.options[O] || l.options.other;
|
3749
3771
|
}
|
3750
3772
|
if (!w)
|
3751
|
-
throw new
|
3773
|
+
throw new Ot(l.value, c, Object.keys(l.options), o);
|
3752
3774
|
a.push.apply(a, Ee(w.value, t, r, n, i, c - (l.offset || 0)));
|
3753
3775
|
continue;
|
3754
3776
|
}
|
3755
3777
|
}
|
3756
|
-
return
|
3778
|
+
return gi(a);
|
3757
3779
|
}
|
3758
|
-
function
|
3780
|
+
function vi(e, t) {
|
3759
3781
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3760
3782
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
3761
3783
|
}, {})) : e;
|
3762
3784
|
}
|
3763
|
-
function
|
3785
|
+
function _i(e, t) {
|
3764
3786
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3765
|
-
return r[n] =
|
3787
|
+
return r[n] = vi(e[n], t[n]), r;
|
3766
3788
|
}, v({}, e)) : e;
|
3767
3789
|
}
|
3768
|
-
function
|
3790
|
+
function Fe(e) {
|
3769
3791
|
return {
|
3770
3792
|
create: function() {
|
3771
3793
|
return {
|
@@ -3779,39 +3801,39 @@ function De(e) {
|
|
3779
3801
|
}
|
3780
3802
|
};
|
3781
3803
|
}
|
3782
|
-
function
|
3804
|
+
function Ei(e) {
|
3783
3805
|
return e === void 0 && (e = {
|
3784
3806
|
number: {},
|
3785
3807
|
dateTime: {},
|
3786
3808
|
pluralRules: {}
|
3787
3809
|
}), {
|
3788
|
-
getNumberFormat:
|
3810
|
+
getNumberFormat: Ge(function() {
|
3789
3811
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3790
3812
|
r[n] = arguments[n];
|
3791
3813
|
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
|
3792
3814
|
}, {
|
3793
|
-
cache:
|
3794
|
-
strategy:
|
3815
|
+
cache: Fe(e.number),
|
3816
|
+
strategy: Ue.variadic
|
3795
3817
|
}),
|
3796
|
-
getDateTimeFormat:
|
3818
|
+
getDateTimeFormat: Ge(function() {
|
3797
3819
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3798
3820
|
r[n] = arguments[n];
|
3799
3821
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
|
3800
3822
|
}, {
|
3801
|
-
cache:
|
3802
|
-
strategy:
|
3823
|
+
cache: Fe(e.dateTime),
|
3824
|
+
strategy: Ue.variadic
|
3803
3825
|
}),
|
3804
|
-
getPluralRules:
|
3826
|
+
getPluralRules: Ge(function() {
|
3805
3827
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3806
3828
|
r[n] = arguments[n];
|
3807
3829
|
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
|
3808
3830
|
}, {
|
3809
|
-
cache:
|
3810
|
-
strategy:
|
3831
|
+
cache: Fe(e.pluralRules),
|
3832
|
+
strategy: Ue.variadic
|
3811
3833
|
})
|
3812
3834
|
};
|
3813
3835
|
}
|
3814
|
-
var
|
3836
|
+
var xi = (
|
3815
3837
|
/** @class */
|
3816
3838
|
function() {
|
3817
3839
|
function e(t, r, n, i) {
|
@@ -3843,13 +3865,13 @@ var yi = (
|
|
3843
3865
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3844
3866
|
var o = i || {};
|
3845
3867
|
o.formatters;
|
3846
|
-
var a =
|
3868
|
+
var a = en(o, ["formatters"]);
|
3847
3869
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
3848
3870
|
} else
|
3849
3871
|
this.ast = t;
|
3850
3872
|
if (!Array.isArray(this.ast))
|
3851
3873
|
throw new TypeError("A message must be provided as a String or AST.");
|
3852
|
-
this.formats =
|
3874
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
3853
3875
|
}
|
3854
3876
|
return Object.defineProperty(e, "defaultLocale", {
|
3855
3877
|
get: function() {
|
@@ -3862,7 +3884,7 @@ var yi = (
|
|
3862
3884
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3863
3885
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3864
3886
|
}
|
3865
|
-
}, e.__parse =
|
3887
|
+
}, e.__parse = di, e.formats = {
|
3866
3888
|
number: {
|
3867
3889
|
integer: {
|
3868
3890
|
maximumFractionDigits: 0
|
@@ -3923,7 +3945,7 @@ var yi = (
|
|
3923
3945
|
}, e;
|
3924
3946
|
}()
|
3925
3947
|
);
|
3926
|
-
function
|
3948
|
+
function Si(e, t) {
|
3927
3949
|
if (t == null)
|
3928
3950
|
return;
|
3929
3951
|
if (t in e)
|
@@ -3944,92 +3966,92 @@ function vi(e, t) {
|
|
3944
3966
|
n = void 0;
|
3945
3967
|
return n;
|
3946
3968
|
}
|
3947
|
-
const D = {},
|
3969
|
+
const D = {}, wi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), gr = (e, t) => {
|
3948
3970
|
if (t == null)
|
3949
3971
|
return;
|
3950
3972
|
if (t in D && e in D[t])
|
3951
3973
|
return D[t][e];
|
3952
3974
|
const r = Pe(t);
|
3953
3975
|
for (let n = 0; n < r.length; n++) {
|
3954
|
-
const i = r[n], s =
|
3976
|
+
const i = r[n], s = Hi(i, e);
|
3955
3977
|
if (s)
|
3956
|
-
return
|
3978
|
+
return wi(e, t, s);
|
3957
3979
|
}
|
3958
3980
|
};
|
3959
|
-
let
|
3981
|
+
let at;
|
3960
3982
|
const me = Ae({});
|
3961
|
-
function
|
3962
|
-
return
|
3983
|
+
function Ti(e) {
|
3984
|
+
return at[e] || null;
|
3963
3985
|
}
|
3964
|
-
function
|
3965
|
-
return e in
|
3986
|
+
function yr(e) {
|
3987
|
+
return e in at;
|
3966
3988
|
}
|
3967
|
-
function
|
3968
|
-
if (!
|
3989
|
+
function Hi(e, t) {
|
3990
|
+
if (!yr(e))
|
3969
3991
|
return null;
|
3970
|
-
const r =
|
3971
|
-
return
|
3992
|
+
const r = Ti(e);
|
3993
|
+
return Si(r, t);
|
3972
3994
|
}
|
3973
|
-
function
|
3995
|
+
function Ai(e) {
|
3974
3996
|
if (e == null)
|
3975
3997
|
return;
|
3976
3998
|
const t = Pe(e);
|
3977
3999
|
for (let r = 0; r < t.length; r++) {
|
3978
4000
|
const n = t[r];
|
3979
|
-
if (
|
4001
|
+
if (yr(n))
|
3980
4002
|
return n;
|
3981
4003
|
}
|
3982
4004
|
}
|
3983
|
-
function
|
3984
|
-
delete D[e], me.update((r) => (r[e] =
|
4005
|
+
function vr(e, ...t) {
|
4006
|
+
delete D[e], me.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
|
3985
4007
|
}
|
3986
4008
|
ie(
|
3987
4009
|
[me],
|
3988
4010
|
([e]) => Object.keys(e)
|
3989
4011
|
);
|
3990
|
-
me.subscribe((e) =>
|
4012
|
+
me.subscribe((e) => at = e);
|
3991
4013
|
const xe = {};
|
3992
|
-
function
|
4014
|
+
function Bi(e, t) {
|
3993
4015
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
3994
4016
|
}
|
3995
|
-
function
|
4017
|
+
function _r(e) {
|
3996
4018
|
return xe[e];
|
3997
4019
|
}
|
3998
|
-
function
|
4020
|
+
function Pi(e) {
|
3999
4021
|
return Pe(e).map((t) => {
|
4000
|
-
const r =
|
4022
|
+
const r = _r(t);
|
4001
4023
|
return [t, r ? [...r] : []];
|
4002
4024
|
}).filter(([, t]) => t.length > 0);
|
4003
4025
|
}
|
4004
|
-
function
|
4026
|
+
function rt(e) {
|
4005
4027
|
return e == null ? !1 : Pe(e).some(
|
4006
4028
|
(t) => {
|
4007
4029
|
var r;
|
4008
|
-
return (r =
|
4030
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
4009
4031
|
}
|
4010
4032
|
);
|
4011
4033
|
}
|
4012
|
-
function
|
4034
|
+
function Ni(e, t) {
|
4013
4035
|
return Promise.all(
|
4014
|
-
t.map((n) => (
|
4015
|
-
).then((n) =>
|
4036
|
+
t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
|
4037
|
+
).then((n) => vr(e, ...n));
|
4016
4038
|
}
|
4017
4039
|
const oe = {};
|
4018
|
-
function
|
4019
|
-
if (!
|
4040
|
+
function Er(e) {
|
4041
|
+
if (!rt(e))
|
4020
4042
|
return e in oe ? oe[e] : Promise.resolve();
|
4021
|
-
const t =
|
4043
|
+
const t = Pi(e);
|
4022
4044
|
return oe[e] = Promise.all(
|
4023
4045
|
t.map(
|
4024
|
-
([r, n]) =>
|
4046
|
+
([r, n]) => Ni(r, n)
|
4025
4047
|
)
|
4026
4048
|
).then(() => {
|
4027
|
-
if (
|
4028
|
-
return
|
4049
|
+
if (rt(e))
|
4050
|
+
return Er(e);
|
4029
4051
|
delete oe[e];
|
4030
4052
|
}), oe[e];
|
4031
4053
|
}
|
4032
|
-
const
|
4054
|
+
const Oi = {
|
4033
4055
|
number: {
|
4034
4056
|
scientific: { notation: "scientific" },
|
4035
4057
|
engineering: { notation: "engineering" },
|
@@ -4058,57 +4080,57 @@ const Ai = {
|
|
4058
4080
|
timeZoneName: "short"
|
4059
4081
|
}
|
4060
4082
|
}
|
4061
|
-
},
|
4083
|
+
}, Li = {
|
4062
4084
|
fallbackLocale: null,
|
4063
4085
|
loadingDelay: 200,
|
4064
|
-
formats:
|
4086
|
+
formats: Oi,
|
4065
4087
|
warnOnMissingMessages: !0,
|
4066
4088
|
handleMissingMessage: void 0,
|
4067
4089
|
ignoreTag: !0
|
4068
|
-
},
|
4090
|
+
}, Ii = Li;
|
4069
4091
|
function te() {
|
4070
|
-
return
|
4092
|
+
return Ii;
|
4071
4093
|
}
|
4072
|
-
const
|
4073
|
-
var
|
4094
|
+
const $e = Ae(!1);
|
4095
|
+
var Ci = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
|
4074
4096
|
for (var r in t || (t = {}))
|
4075
|
-
|
4076
|
-
if (
|
4077
|
-
for (var r of
|
4078
|
-
|
4097
|
+
Gi.call(t, r) && It(e, r, t[r]);
|
4098
|
+
if (Lt)
|
4099
|
+
for (var r of Lt(t))
|
4100
|
+
Ui.call(t, r) && It(e, r, t[r]);
|
4079
4101
|
return e;
|
4080
|
-
},
|
4081
|
-
let
|
4102
|
+
}, Fi = (e, t) => Mi(e, Ri(t));
|
4103
|
+
let nt;
|
4082
4104
|
const Se = Ae(null);
|
4083
|
-
function
|
4105
|
+
function Ct(e) {
|
4084
4106
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4085
4107
|
}
|
4086
4108
|
function Pe(e, t = te().fallbackLocale) {
|
4087
|
-
const r =
|
4088
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4109
|
+
const r = Ct(e);
|
4110
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
4089
4111
|
}
|
4090
4112
|
function V() {
|
4091
|
-
return
|
4113
|
+
return nt ?? void 0;
|
4092
4114
|
}
|
4093
4115
|
Se.subscribe((e) => {
|
4094
|
-
|
4116
|
+
nt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4095
4117
|
});
|
4096
|
-
const
|
4097
|
-
if (e &&
|
4118
|
+
const $i = (e) => {
|
4119
|
+
if (e && Ai(e) && rt(e)) {
|
4098
4120
|
const { loadingDelay: t } = te();
|
4099
4121
|
let r;
|
4100
4122
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
4101
|
-
() =>
|
4123
|
+
() => $e.set(!0),
|
4102
4124
|
t
|
4103
|
-
) :
|
4125
|
+
) : $e.set(!0), Er(e).then(() => {
|
4104
4126
|
Se.set(e);
|
4105
4127
|
}).finally(() => {
|
4106
|
-
clearTimeout(r),
|
4128
|
+
clearTimeout(r), $e.set(!1);
|
4107
4129
|
});
|
4108
4130
|
}
|
4109
4131
|
return Se.set(e);
|
4110
|
-
}, de =
|
4111
|
-
set:
|
4132
|
+
}, de = Fi(Di({}, Se), {
|
4133
|
+
set: $i
|
4112
4134
|
}), Ne = (e) => {
|
4113
4135
|
const t = /* @__PURE__ */ Object.create(null);
|
4114
4136
|
return (n) => {
|
@@ -4116,20 +4138,20 @@ const Gi = (e) => {
|
|
4116
4138
|
return i in t ? t[i] : t[i] = e(n);
|
4117
4139
|
};
|
4118
4140
|
};
|
4119
|
-
var
|
4141
|
+
var ji = Object.defineProperty, we = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
|
4120
4142
|
for (var r in t || (t = {}))
|
4121
|
-
|
4143
|
+
xr.call(t, r) && Mt(e, r, t[r]);
|
4122
4144
|
if (we)
|
4123
4145
|
for (var r of we(t))
|
4124
|
-
|
4146
|
+
Sr.call(t, r) && Mt(e, r, t[r]);
|
4125
4147
|
return e;
|
4126
4148
|
}, se = (e, t) => {
|
4127
4149
|
var r = {};
|
4128
4150
|
for (var n in e)
|
4129
|
-
|
4151
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4130
4152
|
if (e != null && we)
|
4131
4153
|
for (var n of we(e))
|
4132
|
-
t.indexOf(n) < 0 &&
|
4154
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
4133
4155
|
return r;
|
4134
4156
|
};
|
4135
4157
|
const le = (e, t) => {
|
@@ -4137,21 +4159,21 @@ const le = (e, t) => {
|
|
4137
4159
|
if (e in r && t in r[e])
|
4138
4160
|
return r[e][t];
|
4139
4161
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4140
|
-
},
|
4162
|
+
}, ki = Ne(
|
4141
4163
|
(e) => {
|
4142
4164
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4143
4165
|
if (r == null)
|
4144
4166
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4145
4167
|
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
4146
4168
|
}
|
4147
|
-
),
|
4169
|
+
), Vi = Ne(
|
4148
4170
|
(e) => {
|
4149
4171
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4150
4172
|
if (r == null)
|
4151
4173
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4152
4174
|
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
4153
4175
|
}
|
4154
|
-
),
|
4176
|
+
), Xi = Ne(
|
4155
4177
|
(e) => {
|
4156
4178
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4157
4179
|
if (r == null)
|
@@ -4160,33 +4182,33 @@ const le = (e, t) => {
|
|
4160
4182
|
);
|
4161
4183
|
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
4162
4184
|
}
|
4163
|
-
),
|
4185
|
+
), Wi = (e = {}) => {
|
4164
4186
|
var t = e, {
|
4165
4187
|
locale: r = V()
|
4166
4188
|
} = t, n = se(t, [
|
4167
4189
|
"locale"
|
4168
4190
|
]);
|
4169
|
-
return
|
4170
|
-
},
|
4191
|
+
return ki(ut({ locale: r }, n));
|
4192
|
+
}, zi = (e = {}) => {
|
4171
4193
|
var t = e, {
|
4172
4194
|
locale: r = V()
|
4173
4195
|
} = t, n = se(t, [
|
4174
4196
|
"locale"
|
4175
4197
|
]);
|
4176
|
-
return
|
4177
|
-
},
|
4198
|
+
return Vi(ut({ locale: r }, n));
|
4199
|
+
}, Zi = (e = {}) => {
|
4178
4200
|
var t = e, {
|
4179
4201
|
locale: r = V()
|
4180
4202
|
} = t, n = se(t, [
|
4181
4203
|
"locale"
|
4182
4204
|
]);
|
4183
|
-
return
|
4184
|
-
},
|
4205
|
+
return Xi(ut({ locale: r }, n));
|
4206
|
+
}, Qi = Ne(
|
4185
4207
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4186
|
-
(e, t = V()) => new
|
4208
|
+
(e, t = V()) => new xi(e, t, te().formats, {
|
4187
4209
|
ignoreTag: te().ignoreTag
|
4188
4210
|
})
|
4189
|
-
),
|
4211
|
+
), Yi = (e, t = {}) => {
|
4190
4212
|
var r, n, i, s;
|
4191
4213
|
let o = t;
|
4192
4214
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -4199,7 +4221,7 @@ const le = (e, t) => {
|
|
4199
4221
|
throw new Error(
|
4200
4222
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4201
4223
|
);
|
4202
|
-
let l =
|
4224
|
+
let l = gr(e, h);
|
4203
4225
|
if (!l)
|
4204
4226
|
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
4205
4227
|
else if (typeof l != "string")
|
@@ -4210,7 +4232,7 @@ const le = (e, t) => {
|
|
4210
4232
|
return l;
|
4211
4233
|
let m = l;
|
4212
4234
|
try {
|
4213
|
-
m =
|
4235
|
+
m = Qi(l, h).format(a);
|
4214
4236
|
} catch (c) {
|
4215
4237
|
c instanceof Error && console.warn(
|
4216
4238
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -4218,20 +4240,20 @@ const le = (e, t) => {
|
|
4218
4240
|
);
|
4219
4241
|
}
|
4220
4242
|
return m;
|
4221
|
-
},
|
4222
|
-
ie([de], () =>
|
4223
|
-
ie([de], () =>
|
4224
|
-
ie([de], () =>
|
4225
|
-
ie([de, me], () =>
|
4226
|
-
window.emWidgets = { topic:
|
4227
|
-
const
|
4228
|
-
function
|
4243
|
+
}, qi = (e, t) => Zi(t).format(e), Ji = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), es = (e, t = V()) => gr(e, t), ts = ie([de, me], () => Yi);
|
4244
|
+
ie([de], () => qi);
|
4245
|
+
ie([de], () => Ji);
|
4246
|
+
ie([de], () => Ki);
|
4247
|
+
ie([de, me], () => es);
|
4248
|
+
window.emWidgets = { topic: bn };
|
4249
|
+
const rs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4250
|
+
function ns(e, t) {
|
4229
4251
|
if (e) {
|
4230
4252
|
const r = document.createElement("style");
|
4231
4253
|
r.innerHTML = t, e.appendChild(r);
|
4232
4254
|
}
|
4233
4255
|
}
|
4234
|
-
function
|
4256
|
+
function is(e, t) {
|
4235
4257
|
const r = new URL(t);
|
4236
4258
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4237
4259
|
const i = document.createElement("style");
|
@@ -4240,7 +4262,7 @@ function es(e, t) {
|
|
4240
4262
|
console.error("There was an error while trying to load client styling from URL", n);
|
4241
4263
|
});
|
4242
4264
|
}
|
4243
|
-
function
|
4265
|
+
function ss(e, t, r) {
|
4244
4266
|
if (window.emMessageBus) {
|
4245
4267
|
const n = document.createElement("style");
|
4246
4268
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4248,10 +4270,10 @@ function ts(e, t, r) {
|
|
4248
4270
|
});
|
4249
4271
|
}
|
4250
4272
|
}
|
4251
|
-
function
|
4252
|
-
|
4273
|
+
function Rt(e, t) {
|
4274
|
+
vr(e, t);
|
4253
4275
|
}
|
4254
|
-
const
|
4276
|
+
const Gt = {
|
4255
4277
|
en: {
|
4256
4278
|
lobbyName: "Lobby",
|
4257
4279
|
myGamesName: "My games"
|
@@ -4337,14 +4359,14 @@ if (typeof window < "u") {
|
|
4337
4359
|
}
|
4338
4360
|
};
|
4339
4361
|
};
|
4340
|
-
customElements.define = e(customElements.define), import("./CasinoSlider-
|
4362
|
+
customElements.define = e(customElements.define), import("./CasinoSlider-Ce2yE3Ex.js").then(({ default: t }) => {
|
4341
4363
|
!customElements.get("casino-slider") && customElements.define("casino-slider", t.element);
|
4342
4364
|
});
|
4343
4365
|
}
|
4344
|
-
function
|
4345
|
-
|
4366
|
+
function os(e) {
|
4367
|
+
Rr(e, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
|
4346
4368
|
}
|
4347
|
-
function
|
4369
|
+
function as(e) {
|
4348
4370
|
let t, r, n, i;
|
4349
4371
|
return {
|
4350
4372
|
c() {
|
@@ -4363,7 +4385,7 @@ function ns(e) {
|
|
4363
4385
|
"endpoint",
|
4364
4386
|
/*endpoint*/
|
4365
4387
|
e[1]
|
4366
|
-
), _(r, "identity",
|
4388
|
+
), _(r, "identity", it), _(
|
4367
4389
|
r,
|
4368
4390
|
"favoritesnumber",
|
4369
4391
|
/*numberOfFavoredGames*/
|
@@ -4421,7 +4443,7 @@ function ns(e) {
|
|
4421
4443
|
), fe(t, "class", "CasinoCategoriesContainer svelte-2g6deg");
|
4422
4444
|
},
|
4423
4445
|
m(s, o) {
|
4424
|
-
ce(s, t, o),
|
4446
|
+
ce(s, t, o), $t(t, r), n || (i = Mr(
|
4425
4447
|
/*sendSliderData*/
|
4426
4448
|
e[17].call(null, r)
|
4427
4449
|
), n = !0);
|
@@ -4518,7 +4540,7 @@ function ns(e) {
|
|
4518
4540
|
}
|
4519
4541
|
};
|
4520
4542
|
}
|
4521
|
-
function
|
4543
|
+
function us(e) {
|
4522
4544
|
let t;
|
4523
4545
|
return {
|
4524
4546
|
c() {
|
@@ -4533,7 +4555,7 @@ function is(e) {
|
|
4533
4555
|
}
|
4534
4556
|
};
|
4535
4557
|
}
|
4536
|
-
function
|
4558
|
+
function hs(e) {
|
4537
4559
|
let t;
|
4538
4560
|
return {
|
4539
4561
|
c() {
|
@@ -4548,14 +4570,14 @@ function ss(e) {
|
|
4548
4570
|
}
|
4549
4571
|
};
|
4550
4572
|
}
|
4551
|
-
function
|
4573
|
+
function ls(e) {
|
4552
4574
|
let t;
|
4553
4575
|
function r(s, o) {
|
4554
4576
|
return (
|
4555
4577
|
/*isLoading*/
|
4556
|
-
s[13] ||
|
4578
|
+
s[13] || cs || fs ? hs : (
|
4557
4579
|
/*hasErrors*/
|
4558
|
-
s[15] ?
|
4580
|
+
s[15] ? us : as
|
4559
4581
|
)
|
4560
4582
|
);
|
4561
4583
|
}
|
@@ -4577,47 +4599,47 @@ function os(e) {
|
|
4577
4599
|
}
|
4578
4600
|
};
|
4579
4601
|
}
|
4580
|
-
let
|
4581
|
-
function
|
4602
|
+
let it = "CasinoSliderData", cs = !1, fs = !1;
|
4603
|
+
function ms(e, t, r) {
|
4582
4604
|
let n;
|
4583
|
-
|
4584
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: N = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: L = "" } = t, { lobbyiconimage: M = "" } = t, { mygamesiconimage: E = "" } = t, { mbsource: A } = t, I, F, $ = !0, X, W = [], j = !1,
|
4585
|
-
const
|
4605
|
+
Cr(e, ts, (f) => r(33, n = f));
|
4606
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: N = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: L = "" } = t, { lobbyiconimage: M = "" } = t, { mygamesiconimage: E = "" } = t, { mbsource: A } = t, I, F, ht, $ = !0, X, W = [], j = !1, wr = window.navigator.userAgent, R, lt, ct = !1, Oe = !1;
|
4607
|
+
const Tr = () => {
|
4586
4608
|
fetch(O).then((B) => B.json()).then((B) => {
|
4587
4609
|
Object.keys(B).forEach((be) => {
|
4588
|
-
|
4610
|
+
Rt(be, B[be]);
|
4589
4611
|
});
|
4590
4612
|
}).catch((B) => {
|
4591
4613
|
console.log(B);
|
4592
4614
|
});
|
4593
4615
|
};
|
4594
|
-
Object.keys(
|
4595
|
-
|
4616
|
+
Object.keys(Gt).forEach((f) => {
|
4617
|
+
Rt(f, Gt[f]);
|
4596
4618
|
});
|
4597
|
-
const
|
4598
|
-
|
4619
|
+
const Hr = () => {
|
4620
|
+
ct == !1 && (m == "true" || u == "true" || l == "true") && W.splice(1, 0, {
|
4599
4621
|
// @ts-ignore
|
4600
4622
|
id: "MYGAMES",
|
4601
|
-
name:
|
4623
|
+
name: F,
|
4602
4624
|
href: "",
|
4603
4625
|
games: []
|
4604
|
-
}),
|
4605
|
-
},
|
4606
|
-
if (
|
4607
|
-
let f = new URL(`${i}/
|
4608
|
-
f.searchParams.append("
|
4626
|
+
}), kr(), ct = !0, r(26, Oe = !0), Le();
|
4627
|
+
}, Ar = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, $ = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, $ = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, $ = !1), console.error(X)), j), Br = () => {
|
4628
|
+
if (F = n("myGamesName"), ht = n("lobbyName"), !Ar()) {
|
4629
|
+
let f = new URL(`${i}/v2/casino/groups/${s}`);
|
4630
|
+
f.searchParams.append("language", o), f.searchParams.append("platform", rs(wr)), f.searchParams.append("fields", "id,name,games(href)"), fetch(f).then((B) => B.json()).then(
|
4609
4631
|
(B) => {
|
4610
|
-
let be = w.split(","),
|
4632
|
+
let be = w.split(","), Or = B.items.filter((mt) => {
|
4611
4633
|
let Ie = !1;
|
4612
|
-
if (
|
4613
|
-
for (let
|
4614
|
-
|
4634
|
+
if (mt.games.total > 0 && (Ie = !0, w))
|
4635
|
+
for (let Lr of be)
|
4636
|
+
mt.flags == Lr && (Ie = !1);
|
4615
4637
|
return Ie;
|
4616
4638
|
});
|
4617
|
-
W = [], W = W.concat(
|
4639
|
+
W = [], W = W.concat(Or), W.unshift({
|
4618
4640
|
// @ts-ignore
|
4619
4641
|
id: "LOBBY",
|
4620
|
-
name:
|
4642
|
+
name: ht,
|
4621
4643
|
href: "",
|
4622
4644
|
games: []
|
4623
4645
|
}), r(13, $ = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
@@ -4629,26 +4651,26 @@ function hs(e, t, r) {
|
|
4629
4651
|
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
4630
4652
|
});
|
4631
4653
|
}
|
4632
|
-
},
|
4654
|
+
}, Pr = () => {
|
4633
4655
|
let f = b.split("$");
|
4634
4656
|
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
4635
4657
|
}, Le = () => {
|
4636
4658
|
window.postMessage(
|
4637
4659
|
{
|
4638
4660
|
type: "SliderData",
|
4639
|
-
identity:
|
4661
|
+
identity: it,
|
4640
4662
|
data: W
|
4641
4663
|
},
|
4642
4664
|
window.location.href
|
4643
4665
|
);
|
4644
|
-
},
|
4645
|
-
f.data && f.data.type == "SliderLoaded" &&
|
4666
|
+
}, ft = (f) => {
|
4667
|
+
f.data && f.data.type == "SliderLoaded" && it == f.data.identity && Le();
|
4646
4668
|
};
|
4647
|
-
|
4648
|
-
window.removeEventListener("message",
|
4669
|
+
jr(() => (window.addEventListener("message", ft, !1), () => {
|
4670
|
+
window.emMessageBus && I && I.unsubscribe(), window.removeEventListener("message", ft);
|
4649
4671
|
}));
|
4650
|
-
function
|
4651
|
-
|
4672
|
+
function Nr(f) {
|
4673
|
+
je[f ? "unshift" : "push"](() => {
|
4652
4674
|
R = f, r(14, R);
|
4653
4675
|
});
|
4654
4676
|
}
|
@@ -4656,14 +4678,14 @@ function hs(e, t, r) {
|
|
4656
4678
|
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(18, a = f.userid), "session" in f && r(19, h = f.session), "mostplayed" in f && r(20, u = f.mostplayed), "lastplayed" in f && r(21, l = f.lastplayed), "favorites" in f && r(22, m = f.favorites), "clientstyling" in f && r(4, c = f.clientstyling), "clientstylingurl" in f && r(5, d = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(6, y = f.actionevent), "sessioncheck" in f && r(23, T = f.sessioncheck), "location" in f && r(7, C = f.location), "showsubgroups" in f && r(8, N = f.showsubgroups), "filteredcategories" in f && r(24, w = f.filteredcategories), "translationurl" in f && r(25, O = f.translationurl), "categoriesicon" in f && r(9, L = f.categoriesicon), "lobbyiconimage" in f && r(10, M = f.lobbyiconimage), "mygamesiconimage" in f && r(11, E = f.mygamesiconimage), "mbsource" in f && r(12, A = f.mbsource);
|
4657
4679
|
}, e.$$.update = () => {
|
4658
4680
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4659
|
-
14 && i && s && o &&
|
4660
|
-
7872514 && i && h && (u || l || m) && !$ &&
|
4661
|
-
67641345 && !$ && b && (!h || Oe) &&
|
4662
|
-
33554432 && O &&
|
4663
|
-
16400 && c && R &&
|
4664
|
-
16416 && d && R &&
|
4665
|
-
20480 && R &&
|
4666
|
-
}, r(16,
|
4681
|
+
14 && i && s && o && Br(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
4682
|
+
7872514 && i && h && (u || l || m) && !$ && Hr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
4683
|
+
67641345 && !$ && b && (!h || Oe) && Pr(), e.$$.dirty[0] & /*translationurl*/
|
4684
|
+
33554432 && O && Tr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4685
|
+
16400 && c && R && ns(R, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4686
|
+
16416 && d && R && is(R, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4687
|
+
20480 && R && ss(R, `${A}.Style`);
|
4688
|
+
}, r(16, lt = 0), [
|
4667
4689
|
b,
|
4668
4690
|
i,
|
4669
4691
|
s,
|
@@ -4680,7 +4702,7 @@ function hs(e, t, r) {
|
|
4680
4702
|
$,
|
4681
4703
|
R,
|
4682
4704
|
j,
|
4683
|
-
|
4705
|
+
lt,
|
4684
4706
|
Le,
|
4685
4707
|
a,
|
4686
4708
|
h,
|
@@ -4691,17 +4713,17 @@ function hs(e, t, r) {
|
|
4691
4713
|
w,
|
4692
4714
|
O,
|
4693
4715
|
Oe,
|
4694
|
-
|
4716
|
+
Nr
|
4695
4717
|
];
|
4696
4718
|
}
|
4697
|
-
class
|
4719
|
+
class ds extends Jr {
|
4698
4720
|
constructor(t) {
|
4699
|
-
super(),
|
4721
|
+
super(), Yr(
|
4700
4722
|
this,
|
4701
4723
|
t,
|
4702
|
-
|
4703
|
-
|
4704
|
-
|
4724
|
+
ms,
|
4725
|
+
ls,
|
4726
|
+
Dt,
|
4705
4727
|
{
|
4706
4728
|
endpoint: 1,
|
4707
4729
|
datasource: 2,
|
@@ -4725,7 +4747,7 @@ class ls extends zr {
|
|
4725
4747
|
mygamesiconimage: 11,
|
4726
4748
|
mbsource: 12
|
4727
4749
|
},
|
4728
|
-
|
4750
|
+
os,
|
4729
4751
|
[-1, -1]
|
4730
4752
|
);
|
4731
4753
|
}
|
@@ -4856,39 +4878,39 @@ class ls extends zr {
|
|
4856
4878
|
this.$$set({ mbsource: t }), S();
|
4857
4879
|
}
|
4858
4880
|
}
|
4859
|
-
|
4881
|
+
qr(ds, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4860
4882
|
export {
|
4861
4883
|
de as $,
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
4884
|
+
xs as A,
|
4885
|
+
ps as B,
|
4886
|
+
jt as C,
|
4887
|
+
_s as D,
|
4888
|
+
ds as E,
|
4889
|
+
Jr as S,
|
4868
4890
|
me as a,
|
4869
|
-
|
4870
|
-
|
4871
|
-
|
4872
|
-
|
4891
|
+
vr as b,
|
4892
|
+
qr as c,
|
4893
|
+
Rr as d,
|
4894
|
+
k as e,
|
4873
4895
|
S as f,
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
k,
|
4879
|
-
|
4880
|
-
|
4896
|
+
gs as g,
|
4897
|
+
fe as h,
|
4898
|
+
Yr as i,
|
4899
|
+
ce as j,
|
4900
|
+
$t as k,
|
4901
|
+
vs as l,
|
4902
|
+
ne as m,
|
4881
4903
|
P as n,
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4904
|
+
jr as o,
|
4905
|
+
is as p,
|
4906
|
+
ss as q,
|
4885
4907
|
re as r,
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
|
4890
|
-
|
4891
|
-
|
4892
|
-
|
4893
|
-
|
4908
|
+
Dt as s,
|
4909
|
+
Es as t,
|
4910
|
+
ys as u,
|
4911
|
+
Ss as v,
|
4912
|
+
_ as w,
|
4913
|
+
bs as x,
|
4914
|
+
je as y,
|
4915
|
+
ns as z
|
4894
4916
|
};
|