@everymatrix/casino-most-played-section 1.62.0 → 1.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoFilter-4haQXmN1.js → CasinoFilter-BaHdkFc-.js} +937 -921
- package/components/CasinoFilter-BmGWsU7J.cjs +18 -0
- package/components/{CasinoFilter-BUe-x-2X.js → CasinoFilter-zzTGuKnt.js} +912 -896
- package/components/CasinoGameThumbnail-CQi4CL1F.js +4375 -0
- package/components/CasinoGameThumbnail-CTGFT2dX.cjs +47 -0
- package/components/CasinoGameThumbnail-CryQml11.js +4359 -0
- package/components/{CasinoGamesCategorySection-DK_xX1de.js → CasinoGamesCategorySection-De5SvQzA.js} +452 -452
- package/components/{CasinoGamesCategorySection-omF6FUNy.cjs → CasinoGamesCategorySection-Dqx27JNf.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-WMdAKy-_.js → CasinoGamesCategorySection-Odpp_iey.js} +344 -344
- package/components/{CasinoMostPlayedSection-CrPQFPPC.cjs → CasinoMostPlayedSection-0Qe2rusE.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-DIiqRZjq.js → CasinoMostPlayedSection-BEsvu63T.js} +29 -29
- package/components/{CasinoMostPlayedSection-yy4MMeQ-.js → CasinoMostPlayedSection-mEe96KnW.js} +43 -43
- package/components/{CasinoSort-CfnhZRah.js → CasinoSort-BTwDwT8n.js} +110 -111
- package/components/{CasinoSort-CHu5emCn.js → CasinoSort-BqED6YEv.js} +104 -103
- package/components/{CasinoSort-C2cjUMXH.cjs → CasinoSort-Ci8TaT8M.cjs} +1 -1
- package/es2015/casino-most-played-section.cjs +1 -1
- package/es2015/casino-most-played-section.js +1 -1
- package/esnext/casino-most-played-section.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-97d17652-CCalHFFZ.js +558 -0
- package/stencil/index-97d17652-CeszPuI-.cjs +1 -0
- package/stencil/index-97d17652-De_e2iwD.js +542 -0
- package/stencil/ui-image-3911756b-B-U8CxGn.cjs +1 -0
- package/stencil/ui-image-3911756b-C-PJ3oso.js +39 -0
- package/stencil/ui-image-3911756b-D1cmuQAe.js +39 -0
- package/stencil/ui-image-CxLeLi3r.cjs +1 -0
- package/stencil/ui-image-D12cpp7q.js +25 -0
- package/stencil/ui-image-jU_A8Cc1.js +7 -0
- package/stencil/ui-image_2-8wL-gGdE.cjs +73 -0
- package/stencil/{ui-skeleton-6d1c12ae-koE69yYD.js → ui-image_2-BcBI-Hq7.js} +7 -5
- package/stencil/{ui-skeleton-6d1c12ae-BpEpsLuu.js → ui-image_2-CIsvIZfV.js} +7 -5
- package/components/CasinoFilter-BWxK-kth.cjs +0 -18
- package/components/CasinoGameThumbnail-B6XGNttS.js +0 -4390
- package/components/CasinoGameThumbnail-Cn0iV9XZ.js +0 -4406
- package/components/CasinoGameThumbnail-D86LuKmv.cjs +0 -47
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +0 -1
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +0 -7
- package/stencil/index-b2193545-CbGN-1Xz.cjs +0 -1
- package/stencil/index-b2193545-CbUHNmek.js +0 -503
- package/stencil/index-b2193545-DFFkPUVU.js +0 -519
- package/stencil/index-b7bbd57e-5H13jtcn.cjs +0 -1
- package/stencil/index-b7bbd57e-D2mZ7-kv.js +0 -534
- package/stencil/index-b7bbd57e-VSGyGiy1.js +0 -550
- package/stencil/ui-image-38c3c15f-3U8WBsCg.cjs +0 -1
- package/stencil/ui-image-38c3c15f-Cix0ZMEZ.js +0 -39
- package/stencil/ui-image-38c3c15f-jaErZeBj.js +0 -39
- package/stencil/ui-image-6OX7DHzp.js +0 -11
- package/stencil/ui-image-DvmqpXjR.js +0 -29
- package/stencil/ui-image-sdP0Y0JV.cjs +0 -1
- package/stencil/ui-skeleton-6d1c12ae-CZrIANSq.cjs +0 -73
- package/stencil/ui-skeleton-BOseIl79.js +0 -29
- package/stencil/ui-skeleton-BVyEf4P7.js +0 -11
- package/stencil/ui-skeleton-C2O4H76Q.cjs +0 -1
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
function k() {
|
1
|
+
function G() {
|
3
2
|
}
|
4
3
|
function qt(e) {
|
5
4
|
return e();
|
@@ -7,10 +6,10 @@ function qt(e) {
|
|
7
6
|
function Et() {
|
8
7
|
return /* @__PURE__ */ Object.create(null);
|
9
8
|
}
|
10
|
-
function
|
9
|
+
function Y(e) {
|
11
10
|
e.forEach(qt);
|
12
11
|
}
|
13
|
-
function
|
12
|
+
function vt(e) {
|
14
13
|
return typeof e == "function";
|
15
14
|
}
|
16
15
|
function Yt(e, t) {
|
@@ -20,35 +19,32 @@ let Fe;
|
|
20
19
|
function wt(e, t) {
|
21
20
|
return e === t ? !0 : (Fe || (Fe = document.createElement("a")), Fe.href = t, e === Fe.href);
|
22
21
|
}
|
23
|
-
function
|
22
|
+
function Rr(e) {
|
24
23
|
return Object.keys(e).length === 0;
|
25
24
|
}
|
26
25
|
function Kt(e, ...t) {
|
27
26
|
if (e == null) {
|
28
27
|
for (const n of t)
|
29
28
|
n(void 0);
|
30
|
-
return
|
29
|
+
return G;
|
31
30
|
}
|
32
31
|
const r = e.subscribe(...t);
|
33
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
34
33
|
}
|
35
|
-
function
|
34
|
+
function Dr(e, t, r) {
|
36
35
|
e.$$.on_destroy.push(Kt(t, r));
|
37
36
|
}
|
38
|
-
function
|
39
|
-
return e && $e(e.destroy) ? e.destroy : k;
|
40
|
-
}
|
41
|
-
function v(e, t) {
|
37
|
+
function _(e, t) {
|
42
38
|
e.appendChild(t);
|
43
39
|
}
|
44
40
|
function $r(e, t, r) {
|
45
|
-
const n =
|
41
|
+
const n = Ur(e);
|
46
42
|
if (!n.getElementById(t)) {
|
47
43
|
const i = C("style");
|
48
|
-
i.id = t, i.textContent = r,
|
44
|
+
i.id = t, i.textContent = r, Gr(n, i);
|
49
45
|
}
|
50
46
|
}
|
51
|
-
function
|
47
|
+
function Ur(e) {
|
52
48
|
if (!e)
|
53
49
|
return document;
|
54
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -58,8 +54,8 @@ function Gr(e) {
|
|
58
54
|
t
|
59
55
|
) : e.ownerDocument;
|
60
56
|
}
|
61
|
-
function
|
62
|
-
return
|
57
|
+
function Gr(e, t) {
|
58
|
+
return _(
|
63
59
|
/** @type {Document} */
|
64
60
|
e.head || e,
|
65
61
|
t
|
@@ -68,52 +64,52 @@ function kr(e, t) {
|
|
68
64
|
function W(e, t, r) {
|
69
65
|
e.insertBefore(t, r || null);
|
70
66
|
}
|
71
|
-
function
|
67
|
+
function k(e) {
|
72
68
|
e.parentNode && e.parentNode.removeChild(e);
|
73
69
|
}
|
74
|
-
function
|
70
|
+
function kr(e, t) {
|
75
71
|
for (let r = 0; r < e.length; r += 1)
|
76
72
|
e[r] && e[r].d(t);
|
77
73
|
}
|
78
74
|
function C(e) {
|
79
75
|
return document.createElement(e);
|
80
76
|
}
|
81
|
-
function
|
77
|
+
function xe(e) {
|
82
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
83
79
|
}
|
84
|
-
function
|
80
|
+
function U(e) {
|
85
81
|
return document.createTextNode(e);
|
86
82
|
}
|
87
|
-
function
|
88
|
-
return
|
83
|
+
function V() {
|
84
|
+
return U(" ");
|
89
85
|
}
|
90
|
-
function
|
91
|
-
return
|
86
|
+
function xo() {
|
87
|
+
return U("");
|
92
88
|
}
|
93
89
|
function Re(e, t, r, n) {
|
94
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
95
91
|
}
|
96
|
-
function
|
92
|
+
function g(e, t, r) {
|
97
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
98
94
|
}
|
99
|
-
function
|
95
|
+
function Eo(e, t, r) {
|
100
96
|
const n = t.toLowerCase();
|
101
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
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 : g(e, t, r);
|
102
98
|
}
|
103
|
-
function
|
99
|
+
function jr(e) {
|
104
100
|
return Array.from(e.childNodes);
|
105
101
|
}
|
106
|
-
function
|
102
|
+
function q(e, t) {
|
107
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
108
104
|
t);
|
109
105
|
}
|
110
106
|
function St(e, t) {
|
111
107
|
e.value = t ?? "";
|
112
108
|
}
|
113
|
-
function
|
109
|
+
function wo(e, t, r) {
|
114
110
|
e.classList.toggle(t, !!r);
|
115
111
|
}
|
116
|
-
class
|
112
|
+
class So {
|
117
113
|
/**
|
118
114
|
* @private
|
119
115
|
* @default false
|
@@ -144,7 +140,7 @@ class To {
|
|
144
140
|
* @returns {void}
|
145
141
|
*/
|
146
142
|
m(t, r, n = null) {
|
147
|
-
this.e || (this.is_svg ? this.e =
|
143
|
+
this.e || (this.is_svg ? this.e = xe(
|
148
144
|
/** @type {keyof SVGElementTagNameMap} */
|
149
145
|
r.nodeName
|
150
146
|
) : this.e = C(
|
@@ -180,10 +176,10 @@ class To {
|
|
180
176
|
/**
|
181
177
|
* @returns {void} */
|
182
178
|
d() {
|
183
|
-
this.n.forEach(
|
179
|
+
this.n.forEach(k);
|
184
180
|
}
|
185
181
|
}
|
186
|
-
function
|
182
|
+
function Vr(e) {
|
187
183
|
const t = {};
|
188
184
|
return e.childNodes.forEach(
|
189
185
|
/** @param {Element} node */
|
@@ -192,132 +188,132 @@ function Xr(e) {
|
|
192
188
|
}
|
193
189
|
), t;
|
194
190
|
}
|
195
|
-
let
|
196
|
-
function
|
197
|
-
|
191
|
+
let we;
|
192
|
+
function Ee(e) {
|
193
|
+
we = e;
|
198
194
|
}
|
199
195
|
function er() {
|
200
|
-
if (!
|
196
|
+
if (!we)
|
201
197
|
throw new Error("Function called outside component initialization");
|
202
|
-
return
|
198
|
+
return we;
|
203
199
|
}
|
204
|
-
function
|
200
|
+
function Xr(e) {
|
205
201
|
er().$$.on_mount.push(e);
|
206
202
|
}
|
207
|
-
function
|
203
|
+
function To(e) {
|
208
204
|
er().$$.on_destroy.push(e);
|
209
205
|
}
|
210
|
-
const ce = [],
|
206
|
+
const ce = [], tt = [];
|
211
207
|
let fe = [];
|
212
208
|
const Tt = [], tr = /* @__PURE__ */ Promise.resolve();
|
213
|
-
let
|
209
|
+
let rt = !1;
|
214
210
|
function rr() {
|
215
|
-
|
211
|
+
rt || (rt = !0, tr.then(D));
|
216
212
|
}
|
217
|
-
function
|
213
|
+
function Ho() {
|
218
214
|
return rr(), tr;
|
219
215
|
}
|
220
|
-
function
|
216
|
+
function nt(e) {
|
221
217
|
fe.push(e);
|
222
218
|
}
|
223
|
-
const
|
219
|
+
const ze = /* @__PURE__ */ new Set();
|
224
220
|
let ue = 0;
|
225
|
-
function
|
221
|
+
function D() {
|
226
222
|
if (ue !== 0)
|
227
223
|
return;
|
228
|
-
const e =
|
224
|
+
const e = we;
|
229
225
|
do {
|
230
226
|
try {
|
231
227
|
for (; ue < ce.length; ) {
|
232
228
|
const t = ce[ue];
|
233
|
-
ue++,
|
229
|
+
ue++, Ee(t), Wr(t.$$);
|
234
230
|
}
|
235
231
|
} catch (t) {
|
236
232
|
throw ce.length = 0, ue = 0, t;
|
237
233
|
}
|
238
|
-
for (
|
239
|
-
|
234
|
+
for (Ee(null), ce.length = 0, ue = 0; tt.length; )
|
235
|
+
tt.pop()();
|
240
236
|
for (let t = 0; t < fe.length; t += 1) {
|
241
237
|
const r = fe[t];
|
242
|
-
|
238
|
+
ze.has(r) || (ze.add(r), r());
|
243
239
|
}
|
244
240
|
fe.length = 0;
|
245
241
|
} while (ce.length);
|
246
242
|
for (; Tt.length; )
|
247
243
|
Tt.pop()();
|
248
|
-
|
244
|
+
rt = !1, ze.clear(), Ee(e);
|
249
245
|
}
|
250
|
-
function
|
246
|
+
function Wr(e) {
|
251
247
|
if (e.fragment !== null) {
|
252
|
-
e.update(),
|
248
|
+
e.update(), Y(e.before_update);
|
253
249
|
const t = e.dirty;
|
254
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
250
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(nt);
|
255
251
|
}
|
256
252
|
}
|
257
|
-
function
|
253
|
+
function zr(e) {
|
258
254
|
const t = [], r = [];
|
259
255
|
fe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), fe = t;
|
260
256
|
}
|
261
|
-
const
|
257
|
+
const Zr = /* @__PURE__ */ new Set();
|
262
258
|
function nr(e, t) {
|
263
|
-
e && e.i && (
|
259
|
+
e && e.i && (Zr.delete(e), e.i(t));
|
264
260
|
}
|
265
261
|
function Ht(e) {
|
266
262
|
return e?.length !== void 0 ? e : Array.from(e);
|
267
263
|
}
|
268
|
-
function
|
264
|
+
function Ao(e, t) {
|
269
265
|
e.d(1), t.delete(e.key);
|
270
266
|
}
|
271
|
-
function
|
272
|
-
let
|
273
|
-
const
|
274
|
-
for (;
|
275
|
-
|
276
|
-
const
|
277
|
-
for (
|
278
|
-
const A =
|
267
|
+
function Po(e, t, r, n, i, o, s, a, h, l, u, p) {
|
268
|
+
let c = e.length, m = o.length, v = c;
|
269
|
+
const y = {};
|
270
|
+
for (; v--; )
|
271
|
+
y[e[v].key] = v;
|
272
|
+
const T = [], H = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), b = [];
|
273
|
+
for (v = m; v--; ) {
|
274
|
+
const A = p(i, o, v), P = r(A);
|
279
275
|
let N = s.get(P);
|
280
|
-
N ?
|
276
|
+
N ? b.push(() => N.p(A, t)) : (N = l(P, A), N.c()), H.set(P, T[v] = N), P in y && S.set(P, Math.abs(v - y[P]));
|
281
277
|
}
|
282
|
-
const
|
283
|
-
function
|
284
|
-
nr(A, 1), A.m(a, u), s.set(A.key, A), u = A.first,
|
278
|
+
const I = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
279
|
+
function M(A) {
|
280
|
+
nr(A, 1), A.m(a, u), s.set(A.key, A), u = A.first, m--;
|
285
281
|
}
|
286
|
-
for (;
|
287
|
-
const A =
|
288
|
-
A === P ? (u = A.first,
|
282
|
+
for (; c && m; ) {
|
283
|
+
const A = T[m - 1], P = e[c - 1], N = A.key, z = P.key;
|
284
|
+
A === P ? (u = A.first, c--, m--) : H.has(z) ? !s.has(N) || I.has(N) ? M(A) : L.has(z) ? c-- : S.get(N) > S.get(z) ? (L.add(N), M(A)) : (I.add(z), c--) : (h(P, s), c--);
|
289
285
|
}
|
290
|
-
for (;
|
291
|
-
const A = e[
|
286
|
+
for (; c--; ) {
|
287
|
+
const A = e[c];
|
292
288
|
H.has(A.key) || h(A, s);
|
293
289
|
}
|
294
|
-
for (;
|
295
|
-
|
296
|
-
return
|
290
|
+
for (; m; )
|
291
|
+
M(T[m - 1]);
|
292
|
+
return Y(b), T;
|
297
293
|
}
|
298
|
-
function
|
294
|
+
function Jr(e, t, r) {
|
299
295
|
const { fragment: n, after_update: i } = e.$$;
|
300
|
-
n && n.m(t, r),
|
301
|
-
const o = e.$$.on_mount.map(qt).filter(
|
302
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
303
|
-
}), i.forEach(
|
296
|
+
n && n.m(t, r), nt(() => {
|
297
|
+
const o = e.$$.on_mount.map(qt).filter(vt);
|
298
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
|
299
|
+
}), i.forEach(nt);
|
304
300
|
}
|
305
|
-
function
|
301
|
+
function Qr(e, t) {
|
306
302
|
const r = e.$$;
|
307
|
-
r.fragment !== null && (
|
303
|
+
r.fragment !== null && (zr(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
308
304
|
}
|
309
|
-
function
|
305
|
+
function qr(e, t) {
|
310
306
|
e.$$.dirty[0] === -1 && (ce.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
311
307
|
}
|
312
|
-
function
|
313
|
-
const h =
|
314
|
-
|
308
|
+
function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
309
|
+
const h = we;
|
310
|
+
Ee(e);
|
315
311
|
const l = e.$$ = {
|
316
312
|
fragment: null,
|
317
313
|
ctx: [],
|
318
314
|
// state
|
319
315
|
props: o,
|
320
|
-
update:
|
316
|
+
update: G,
|
321
317
|
not_equal: i,
|
322
318
|
bound: Et(),
|
323
319
|
// lifecycle
|
@@ -335,18 +331,18 @@ function Kr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
335
331
|
};
|
336
332
|
s && s(l.root);
|
337
333
|
let u = !1;
|
338
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
339
|
-
const
|
340
|
-
return l.ctx && i(l.ctx[
|
341
|
-
}) : [], l.update(), u = !0,
|
334
|
+
if (l.ctx = r ? r(e, t.props || {}, (p, c, ...m) => {
|
335
|
+
const v = m.length ? m[0] : c;
|
336
|
+
return l.ctx && i(l.ctx[p], l.ctx[p] = v) && (!l.skip_bound && l.bound[p] && l.bound[p](v), u && qr(e, p)), c;
|
337
|
+
}) : [], l.update(), u = !0, Y(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
342
338
|
if (t.hydrate) {
|
343
|
-
const
|
344
|
-
l.fragment && l.fragment.l(
|
339
|
+
const p = jr(t.target);
|
340
|
+
l.fragment && l.fragment.l(p), p.forEach(k);
|
345
341
|
} else
|
346
342
|
l.fragment && l.fragment.c();
|
347
|
-
t.intro && nr(e.$$.fragment),
|
343
|
+
t.intro && nr(e.$$.fragment), Jr(e, t.target, t.anchor), D();
|
348
344
|
}
|
349
|
-
|
345
|
+
Ee(h);
|
350
346
|
}
|
351
347
|
let ir;
|
352
348
|
typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
@@ -391,7 +387,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
391
387
|
let o;
|
392
388
|
return {
|
393
389
|
c: function() {
|
394
|
-
o = C("slot"), i !== "default" &&
|
390
|
+
o = C("slot"), i !== "default" && g(o, "name", i);
|
395
391
|
},
|
396
392
|
/**
|
397
393
|
* @param {HTMLElement} target
|
@@ -401,19 +397,19 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
401
397
|
W(h, o, l);
|
402
398
|
},
|
403
399
|
d: function(h) {
|
404
|
-
h &&
|
400
|
+
h && k(o);
|
405
401
|
}
|
406
402
|
};
|
407
403
|
};
|
408
404
|
};
|
409
405
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
410
406
|
return;
|
411
|
-
const t = {}, r =
|
407
|
+
const t = {}, r = Vr(this);
|
412
408
|
for (const i of this.$$s)
|
413
409
|
i in r && (t[i] = [e(i)]);
|
414
410
|
for (const i of this.attributes) {
|
415
411
|
const o = this.$$g_p(i.name);
|
416
|
-
o in this.$$d || (this.$$d[o] =
|
412
|
+
o in this.$$d || (this.$$d[o] = Ie(o, i.value, this.$$p_d, "toProp"));
|
417
413
|
}
|
418
414
|
for (const i in this.$$p_d)
|
419
415
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -431,7 +427,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
431
427
|
this.$$r = !0;
|
432
428
|
for (const i in this.$$p_d)
|
433
429
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
434
|
-
const o =
|
430
|
+
const o = Ie(
|
435
431
|
i,
|
436
432
|
this.$$d[i],
|
437
433
|
this.$$p_d,
|
@@ -453,7 +449,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
453
449
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
454
450
|
// and setting attributes through setAttribute etc, this is helpful
|
455
451
|
attributeChangedCallback(e, t, r) {
|
456
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
452
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ie(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
457
453
|
}
|
458
454
|
disconnectedCallback() {
|
459
455
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -466,7 +462,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
466
462
|
) || e;
|
467
463
|
}
|
468
464
|
});
|
469
|
-
function
|
465
|
+
function Ie(e, t, r, n) {
|
470
466
|
const i = r[e]?.type;
|
471
467
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
472
468
|
return t;
|
@@ -495,7 +491,7 @@ function Oe(e, t, r, n) {
|
|
495
491
|
return t;
|
496
492
|
}
|
497
493
|
}
|
498
|
-
function
|
494
|
+
function Kr(e, t, r, n, i, o) {
|
499
495
|
let s = class extends ir {
|
500
496
|
constructor() {
|
501
497
|
super(e, r, i), this.$$p_d = t;
|
@@ -512,7 +508,7 @@ function en(e, t, r, n, i, o) {
|
|
512
508
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
513
509
|
},
|
514
510
|
set(h) {
|
515
|
-
h =
|
511
|
+
h = Ie(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
516
512
|
}
|
517
513
|
});
|
518
514
|
}), n.forEach((a) => {
|
@@ -524,7 +520,7 @@ function en(e, t, r, n, i, o) {
|
|
524
520
|
}), e.element = /** @type {any} */
|
525
521
|
s, s;
|
526
522
|
}
|
527
|
-
class
|
523
|
+
class en {
|
528
524
|
/**
|
529
525
|
* ### PRIVATE API
|
530
526
|
*
|
@@ -543,7 +539,7 @@ class tn {
|
|
543
539
|
$$set = void 0;
|
544
540
|
/** @returns {void} */
|
545
541
|
$destroy() {
|
546
|
-
|
542
|
+
Qr(this, 1), this.$destroy = G;
|
547
543
|
}
|
548
544
|
/**
|
549
545
|
* @template {Extract<keyof Events, string>} K
|
@@ -552,8 +548,8 @@ class tn {
|
|
552
548
|
* @returns {() => void}
|
553
549
|
*/
|
554
550
|
$on(t, r) {
|
555
|
-
if (
|
556
|
-
return
|
551
|
+
if (!vt(r))
|
552
|
+
return G;
|
557
553
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
558
554
|
return n.push(r), () => {
|
559
555
|
const i = n.indexOf(r);
|
@@ -565,11 +561,11 @@ class tn {
|
|
565
561
|
* @returns {void}
|
566
562
|
*/
|
567
563
|
$set(t) {
|
568
|
-
this.$$set && !
|
564
|
+
this.$$set && !Rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
569
565
|
}
|
570
566
|
}
|
571
|
-
const
|
572
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
567
|
+
const tn = "4";
|
568
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(tn);
|
573
569
|
/*! *****************************************************************************
|
574
570
|
Copyright (c) Microsoft Corporation.
|
575
571
|
|
@@ -584,43 +580,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
584
580
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
585
581
|
PERFORMANCE OF THIS SOFTWARE.
|
586
582
|
***************************************************************************** */
|
587
|
-
var
|
588
|
-
return
|
583
|
+
var it = function(e, t) {
|
584
|
+
return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
589
585
|
r.__proto__ = n;
|
590
586
|
} || function(r, n) {
|
591
587
|
for (var i in n)
|
592
588
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
593
|
-
},
|
589
|
+
}, it(e, t);
|
594
590
|
};
|
595
|
-
function
|
591
|
+
function He(e, t) {
|
596
592
|
if (typeof t != "function" && t !== null)
|
597
593
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
598
|
-
|
594
|
+
it(e, t);
|
599
595
|
function r() {
|
600
596
|
this.constructor = e;
|
601
597
|
}
|
602
598
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
603
599
|
}
|
604
|
-
|
605
|
-
return w = Object.assign || function(t) {
|
606
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
607
|
-
r = arguments[n];
|
608
|
-
for (var o in r)
|
609
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
610
|
-
}
|
611
|
-
return t;
|
612
|
-
}, w.apply(this, arguments);
|
613
|
-
};
|
614
|
-
function nn(e, t) {
|
615
|
-
var r = {};
|
616
|
-
for (var n in e)
|
617
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
618
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
619
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
620
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
621
|
-
return r;
|
622
|
-
}
|
623
|
-
function st(e) {
|
600
|
+
function ot(e) {
|
624
601
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
625
602
|
if (r)
|
626
603
|
return r.call(e);
|
@@ -632,7 +609,7 @@ function st(e) {
|
|
632
609
|
};
|
633
610
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
634
611
|
}
|
635
|
-
function
|
612
|
+
function st(e, t) {
|
636
613
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
637
614
|
if (!r)
|
638
615
|
return e;
|
@@ -652,8 +629,8 @@ function at(e, t) {
|
|
652
629
|
}
|
653
630
|
return o;
|
654
631
|
}
|
655
|
-
function
|
656
|
-
if (
|
632
|
+
function at(e, t, r) {
|
633
|
+
if (arguments.length === 2)
|
657
634
|
for (var n = 0, i = t.length, o; n < i; n++)
|
658
635
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
659
636
|
return e.concat(o || t);
|
@@ -667,7 +644,7 @@ function or(e) {
|
|
667
644
|
}, r = e(t);
|
668
645
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
669
646
|
}
|
670
|
-
var
|
647
|
+
var Ze = or(function(e) {
|
671
648
|
return function(r) {
|
672
649
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
673
650
|
` + r.map(function(n, i) {
|
@@ -694,12 +671,12 @@ var Ge = function() {
|
|
694
671
|
if (s)
|
695
672
|
if (this._parentage = null, Array.isArray(s))
|
696
673
|
try {
|
697
|
-
for (var a =
|
674
|
+
for (var a = ot(s), h = a.next(); !h.done; h = a.next()) {
|
698
675
|
var l = h.value;
|
699
676
|
l.remove(this);
|
700
677
|
}
|
701
|
-
} catch (
|
702
|
-
t = { error:
|
678
|
+
} catch (y) {
|
679
|
+
t = { error: y };
|
703
680
|
} finally {
|
704
681
|
try {
|
705
682
|
h && !h.done && (r = a.return) && r.call(a);
|
@@ -714,26 +691,26 @@ var Ge = function() {
|
|
714
691
|
if (Z(u))
|
715
692
|
try {
|
716
693
|
u();
|
717
|
-
} catch (
|
718
|
-
o =
|
694
|
+
} catch (y) {
|
695
|
+
o = y instanceof Ze ? y.errors : [y];
|
719
696
|
}
|
720
|
-
var
|
721
|
-
if (
|
697
|
+
var p = this._finalizers;
|
698
|
+
if (p) {
|
722
699
|
this._finalizers = null;
|
723
700
|
try {
|
724
|
-
for (var
|
725
|
-
var
|
701
|
+
for (var c = ot(p), m = c.next(); !m.done; m = c.next()) {
|
702
|
+
var v = m.value;
|
726
703
|
try {
|
727
|
-
At(
|
728
|
-
} catch (
|
729
|
-
o = o ?? [],
|
704
|
+
At(v);
|
705
|
+
} catch (y) {
|
706
|
+
o = o ?? [], y instanceof Ze ? o = at(at([], st(o)), st(y.errors)) : o.push(y);
|
730
707
|
}
|
731
708
|
}
|
732
|
-
} catch (
|
733
|
-
n = { error:
|
709
|
+
} catch (y) {
|
710
|
+
n = { error: y };
|
734
711
|
} finally {
|
735
712
|
try {
|
736
|
-
|
713
|
+
m && !m.done && (i = c.return) && i.call(c);
|
737
714
|
} finally {
|
738
715
|
if (n)
|
739
716
|
throw n.error;
|
@@ -741,7 +718,7 @@ var Ge = function() {
|
|
741
718
|
}
|
742
719
|
}
|
743
720
|
if (o)
|
744
|
-
throw new
|
721
|
+
throw new Ze(o);
|
745
722
|
}
|
746
723
|
}, e.prototype.add = function(t) {
|
747
724
|
var r;
|
@@ -779,25 +756,21 @@ function ar(e) {
|
|
779
756
|
function At(e) {
|
780
757
|
Z(e) ? e() : e.unsubscribe();
|
781
758
|
}
|
782
|
-
var
|
783
|
-
|
784
|
-
|
785
|
-
Promise: void 0,
|
786
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
787
|
-
useDeprecatedNextContext: !1
|
788
|
-
}, on = {
|
759
|
+
var rn = {
|
760
|
+
Promise: void 0
|
761
|
+
}, nn = {
|
789
762
|
setTimeout: function(e, t) {
|
790
763
|
for (var r = [], n = 2; n < arguments.length; n++)
|
791
764
|
r[n - 2] = arguments[n];
|
792
|
-
return setTimeout.apply(void 0,
|
765
|
+
return setTimeout.apply(void 0, at([e, t], st(r)));
|
793
766
|
},
|
794
767
|
clearTimeout: function(e) {
|
795
768
|
return clearTimeout(e);
|
796
769
|
},
|
797
770
|
delegate: void 0
|
798
771
|
};
|
799
|
-
function
|
800
|
-
|
772
|
+
function on(e) {
|
773
|
+
nn.setTimeout(function() {
|
801
774
|
throw e;
|
802
775
|
});
|
803
776
|
}
|
@@ -806,11 +779,11 @@ function Pt() {
|
|
806
779
|
function Le(e) {
|
807
780
|
e();
|
808
781
|
}
|
809
|
-
var
|
810
|
-
|
782
|
+
var lr = function(e) {
|
783
|
+
He(t, e);
|
811
784
|
function t(r) {
|
812
785
|
var n = e.call(this) || this;
|
813
|
-
return n.isStopped = !1, r ? (n.destination = r, ar(r) && r.add(n)) : n.destination =
|
786
|
+
return n.isStopped = !1, r ? (n.destination = r, ar(r) && r.add(n)) : n.destination = ln, n;
|
814
787
|
}
|
815
788
|
return t.create = function(r, n, i) {
|
816
789
|
return new ut(r, n, i);
|
@@ -837,11 +810,7 @@ var ur = function(e) {
|
|
837
810
|
this.unsubscribe();
|
838
811
|
}
|
839
812
|
}, t;
|
840
|
-
}(Ge),
|
841
|
-
function Qe(e, t) {
|
842
|
-
return an.call(e, t);
|
843
|
-
}
|
844
|
-
var ln = function() {
|
813
|
+
}(Ge), sn = function() {
|
845
814
|
function e(t) {
|
846
815
|
this.partialObserver = t;
|
847
816
|
}
|
@@ -873,48 +842,36 @@ var ln = function() {
|
|
873
842
|
}
|
874
843
|
}, e;
|
875
844
|
}(), ut = function(e) {
|
876
|
-
|
845
|
+
He(t, e);
|
877
846
|
function t(r, n, i) {
|
878
847
|
var o = e.call(this) || this, s;
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
};
|
885
|
-
else {
|
886
|
-
var a;
|
887
|
-
o && lr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
888
|
-
return o.unsubscribe();
|
889
|
-
}, s = {
|
890
|
-
next: r.next && Qe(r.next, a),
|
891
|
-
error: r.error && Qe(r.error, a),
|
892
|
-
complete: r.complete && Qe(r.complete, a)
|
893
|
-
}) : s = r;
|
894
|
-
}
|
895
|
-
return o.destination = new ln(s), o;
|
848
|
+
return Z(r) || !r ? s = {
|
849
|
+
next: r ?? void 0,
|
850
|
+
error: n ?? void 0,
|
851
|
+
complete: i ?? void 0
|
852
|
+
} : s = r, o.destination = new sn(s), o;
|
896
853
|
}
|
897
854
|
return t;
|
898
|
-
}(
|
855
|
+
}(lr);
|
899
856
|
function Be(e) {
|
900
|
-
|
857
|
+
on(e);
|
901
858
|
}
|
902
|
-
function
|
859
|
+
function an(e) {
|
903
860
|
throw e;
|
904
861
|
}
|
905
|
-
var
|
862
|
+
var ln = {
|
906
863
|
closed: !0,
|
907
864
|
next: Pt,
|
908
|
-
error:
|
865
|
+
error: an,
|
909
866
|
complete: Pt
|
910
|
-
},
|
867
|
+
}, un = function() {
|
911
868
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
912
869
|
}();
|
913
|
-
function
|
870
|
+
function hn(e) {
|
914
871
|
return e;
|
915
872
|
}
|
916
|
-
function
|
917
|
-
return e.length === 0 ?
|
873
|
+
function cn(e) {
|
874
|
+
return e.length === 0 ? hn : e.length === 1 ? e[0] : function(r) {
|
918
875
|
return e.reduce(function(n, i) {
|
919
876
|
return i(n);
|
920
877
|
}, r);
|
@@ -928,7 +885,7 @@ var Ct = function() {
|
|
928
885
|
var r = new e();
|
929
886
|
return r.source = this, r.operator = t, r;
|
930
887
|
}, e.prototype.subscribe = function(t, r, n) {
|
931
|
-
var i = this, o =
|
888
|
+
var i = this, o = pn(t) ? t : new ut(t, r, n);
|
932
889
|
return Le(function() {
|
933
890
|
var s = i, a = s.operator, h = s.source;
|
934
891
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
@@ -958,12 +915,12 @@ var Ct = function() {
|
|
958
915
|
}, e.prototype._subscribe = function(t) {
|
959
916
|
var r;
|
960
917
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
961
|
-
}, e.prototype[
|
918
|
+
}, e.prototype[un] = function() {
|
962
919
|
return this;
|
963
920
|
}, e.prototype.pipe = function() {
|
964
921
|
for (var t = [], r = 0; r < arguments.length; r++)
|
965
922
|
t[r] = arguments[r];
|
966
|
-
return
|
923
|
+
return cn(t)(this);
|
967
924
|
}, e.prototype.toPromise = function(t) {
|
968
925
|
var r = this;
|
969
926
|
return t = Ft(t), new t(function(n, i) {
|
@@ -982,20 +939,20 @@ var Ct = function() {
|
|
982
939
|
}();
|
983
940
|
function Ft(e) {
|
984
941
|
var t;
|
985
|
-
return (t = e ??
|
942
|
+
return (t = e ?? rn.Promise) !== null && t !== void 0 ? t : Promise;
|
986
943
|
}
|
987
|
-
function
|
944
|
+
function fn(e) {
|
988
945
|
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
989
946
|
}
|
990
|
-
function
|
991
|
-
return e && e instanceof
|
947
|
+
function pn(e) {
|
948
|
+
return e && e instanceof lr || fn(e) && ar(e);
|
992
949
|
}
|
993
|
-
var
|
950
|
+
var dn = or(function(e) {
|
994
951
|
return function() {
|
995
952
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
996
953
|
};
|
997
|
-
}),
|
998
|
-
|
954
|
+
}), ur = function(e) {
|
955
|
+
He(t, e);
|
999
956
|
function t() {
|
1000
957
|
var r = e.call(this) || this;
|
1001
958
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
@@ -1005,7 +962,7 @@ var bn = or(function(e) {
|
|
1005
962
|
return n.operator = r, n;
|
1006
963
|
}, t.prototype._throwIfClosed = function() {
|
1007
964
|
if (this.closed)
|
1008
|
-
throw new
|
965
|
+
throw new dn();
|
1009
966
|
}, t.prototype.next = function(r) {
|
1010
967
|
var n = this;
|
1011
968
|
Le(function() {
|
@@ -1013,7 +970,7 @@ var bn = or(function(e) {
|
|
1013
970
|
if (n._throwIfClosed(), !n.isStopped) {
|
1014
971
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
1015
972
|
try {
|
1016
|
-
for (var s =
|
973
|
+
for (var s = ot(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
1017
974
|
var h = a.value;
|
1018
975
|
h.next(r);
|
1019
976
|
}
|
@@ -1075,7 +1032,7 @@ var bn = or(function(e) {
|
|
1075
1032
|
return new Bt(r, n);
|
1076
1033
|
}, t;
|
1077
1034
|
}(Ct), Bt = function(e) {
|
1078
|
-
|
1035
|
+
He(t, e);
|
1079
1036
|
function t(r, n) {
|
1080
1037
|
var i = e.call(this) || this;
|
1081
1038
|
return i.destination = r, i.source = n, i;
|
@@ -1093,15 +1050,15 @@ var bn = or(function(e) {
|
|
1093
1050
|
var n, i;
|
1094
1051
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : sr;
|
1095
1052
|
}, t;
|
1096
|
-
}(
|
1053
|
+
}(ur), hr = {
|
1097
1054
|
now: function() {
|
1098
|
-
return (
|
1055
|
+
return (hr.delegate || Date).now();
|
1099
1056
|
},
|
1100
1057
|
delegate: void 0
|
1101
|
-
},
|
1102
|
-
|
1058
|
+
}, mn = function(e) {
|
1059
|
+
He(t, e);
|
1103
1060
|
function t(r, n, i) {
|
1104
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1061
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = hr);
|
1105
1062
|
var o = e.call(this) || this;
|
1106
1063
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
1107
1064
|
}
|
@@ -1121,20 +1078,20 @@ var bn = or(function(e) {
|
|
1121
1078
|
l && o.splice(0, l + 1);
|
1122
1079
|
}
|
1123
1080
|
}, t;
|
1124
|
-
}(
|
1125
|
-
const
|
1126
|
-
if (
|
1127
|
-
const r = new
|
1128
|
-
|
1081
|
+
}(ur);
|
1082
|
+
const Ot = [], It = {}, bn = (e, t = 0) => {
|
1083
|
+
if (Ot.indexOf(e) == -1) {
|
1084
|
+
const r = new mn(t);
|
1085
|
+
It[e] = r, Ot.push(e);
|
1129
1086
|
}
|
1130
|
-
return
|
1087
|
+
return It[e];
|
1131
1088
|
}, he = [];
|
1132
|
-
function
|
1089
|
+
function gn(e, t) {
|
1133
1090
|
return {
|
1134
1091
|
subscribe: ke(e, t).subscribe
|
1135
1092
|
};
|
1136
1093
|
}
|
1137
|
-
function ke(e, t =
|
1094
|
+
function ke(e, t = G) {
|
1138
1095
|
let r;
|
1139
1096
|
const n = /* @__PURE__ */ new Set();
|
1140
1097
|
function i(a) {
|
@@ -1152,109 +1109,109 @@ function ke(e, t = k) {
|
|
1152
1109
|
function o(a) {
|
1153
1110
|
i(a(e));
|
1154
1111
|
}
|
1155
|
-
function s(a, h =
|
1112
|
+
function s(a, h = G) {
|
1156
1113
|
const l = [a, h];
|
1157
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
1114
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || G), a(e), () => {
|
1158
1115
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
1159
1116
|
};
|
1160
1117
|
}
|
1161
1118
|
return { set: i, update: o, subscribe: s };
|
1162
1119
|
}
|
1163
|
-
function
|
1120
|
+
function ge(e, t, r) {
|
1164
1121
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1165
1122
|
if (!i.every(Boolean))
|
1166
1123
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1167
1124
|
const o = t.length < 2;
|
1168
|
-
return
|
1125
|
+
return gn(r, (s, a) => {
|
1169
1126
|
let h = !1;
|
1170
1127
|
const l = [];
|
1171
|
-
let u = 0,
|
1172
|
-
const
|
1128
|
+
let u = 0, p = G;
|
1129
|
+
const c = () => {
|
1173
1130
|
if (u)
|
1174
1131
|
return;
|
1175
|
-
|
1176
|
-
const
|
1177
|
-
o ? s(
|
1178
|
-
},
|
1179
|
-
(
|
1180
|
-
|
1181
|
-
(
|
1182
|
-
l[
|
1132
|
+
p();
|
1133
|
+
const v = t(n ? l[0] : l, s, a);
|
1134
|
+
o ? s(v) : p = vt(v) ? v : G;
|
1135
|
+
}, m = i.map(
|
1136
|
+
(v, y) => Kt(
|
1137
|
+
v,
|
1138
|
+
(T) => {
|
1139
|
+
l[y] = T, u &= ~(1 << y), h && c();
|
1183
1140
|
},
|
1184
1141
|
() => {
|
1185
|
-
u |= 1 <<
|
1142
|
+
u |= 1 << y;
|
1186
1143
|
}
|
1187
1144
|
)
|
1188
1145
|
);
|
1189
|
-
return h = !0,
|
1190
|
-
|
1146
|
+
return h = !0, c(), function() {
|
1147
|
+
Y(m), p(), h = !1;
|
1191
1148
|
};
|
1192
1149
|
});
|
1193
1150
|
}
|
1194
|
-
function
|
1151
|
+
function yn(e) {
|
1195
1152
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1196
1153
|
}
|
1197
|
-
var
|
1198
|
-
return
|
1154
|
+
var vn = function(t) {
|
1155
|
+
return _n(t) && !xn(t);
|
1199
1156
|
};
|
1200
|
-
function
|
1157
|
+
function _n(e) {
|
1201
1158
|
return !!e && typeof e == "object";
|
1202
1159
|
}
|
1203
|
-
function
|
1160
|
+
function xn(e) {
|
1204
1161
|
var t = Object.prototype.toString.call(e);
|
1205
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1162
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
1206
1163
|
}
|
1207
|
-
var
|
1208
|
-
function
|
1209
|
-
return e.$$typeof ===
|
1164
|
+
var En = typeof Symbol == "function" && Symbol.for, wn = En ? Symbol.for("react.element") : 60103;
|
1165
|
+
function Sn(e) {
|
1166
|
+
return e.$$typeof === wn;
|
1210
1167
|
}
|
1211
|
-
function
|
1168
|
+
function Tn(e) {
|
1212
1169
|
return Array.isArray(e) ? [] : {};
|
1213
1170
|
}
|
1214
|
-
function
|
1215
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? pe(
|
1171
|
+
function Se(e, t) {
|
1172
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? pe(Tn(e), e, t) : e;
|
1216
1173
|
}
|
1217
|
-
function
|
1174
|
+
function Hn(e, t, r) {
|
1218
1175
|
return e.concat(t).map(function(n) {
|
1219
|
-
return
|
1176
|
+
return Se(n, r);
|
1220
1177
|
});
|
1221
1178
|
}
|
1222
|
-
function
|
1179
|
+
function An(e, t) {
|
1223
1180
|
if (!t.customMerge)
|
1224
1181
|
return pe;
|
1225
1182
|
var r = t.customMerge(e);
|
1226
1183
|
return typeof r == "function" ? r : pe;
|
1227
1184
|
}
|
1228
|
-
function
|
1185
|
+
function Pn(e) {
|
1229
1186
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1230
1187
|
return Object.propertyIsEnumerable.call(e, t);
|
1231
1188
|
}) : [];
|
1232
1189
|
}
|
1233
1190
|
function Lt(e) {
|
1234
|
-
return Object.keys(e).concat(
|
1191
|
+
return Object.keys(e).concat(Pn(e));
|
1235
1192
|
}
|
1236
|
-
function
|
1193
|
+
function cr(e, t) {
|
1237
1194
|
try {
|
1238
1195
|
return t in e;
|
1239
1196
|
} catch {
|
1240
1197
|
return !1;
|
1241
1198
|
}
|
1242
1199
|
}
|
1243
|
-
function
|
1244
|
-
return
|
1200
|
+
function Cn(e, t) {
|
1201
|
+
return cr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1245
1202
|
}
|
1246
|
-
function
|
1203
|
+
function Fn(e, t, r) {
|
1247
1204
|
var n = {};
|
1248
1205
|
return r.isMergeableObject(e) && Lt(e).forEach(function(i) {
|
1249
|
-
n[i] =
|
1206
|
+
n[i] = Se(e[i], r);
|
1250
1207
|
}), Lt(t).forEach(function(i) {
|
1251
|
-
|
1208
|
+
Cn(e, i) || (cr(e, i) && r.isMergeableObject(t[i]) ? n[i] = An(i, r)(e[i], t[i], r) : n[i] = Se(t[i], r));
|
1252
1209
|
}), n;
|
1253
1210
|
}
|
1254
1211
|
function pe(e, t, r) {
|
1255
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1212
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hn, r.isMergeableObject = r.isMergeableObject || vn, r.cloneUnlessOtherwiseSpecified = Se;
|
1256
1213
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1257
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
1214
|
+
return o ? n ? r.arrayMerge(e, t, r) : Fn(e, t, r) : Se(t, r);
|
1258
1215
|
}
|
1259
1216
|
pe.all = function(t, r) {
|
1260
1217
|
if (!Array.isArray(t))
|
@@ -1263,104 +1220,154 @@ pe.all = function(t, r) {
|
|
1263
1220
|
return pe(n, i, r);
|
1264
1221
|
}, {});
|
1265
1222
|
};
|
1266
|
-
var
|
1267
|
-
const
|
1268
|
-
function
|
1223
|
+
var Bn = pe, On = Bn;
|
1224
|
+
const In = /* @__PURE__ */ yn(On);
|
1225
|
+
var ht = function(e, t) {
|
1226
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
1227
|
+
r.__proto__ = n;
|
1228
|
+
} || function(r, n) {
|
1229
|
+
for (var i in n)
|
1230
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
1231
|
+
}, ht(e, t);
|
1232
|
+
};
|
1233
|
+
function je(e, t) {
|
1234
|
+
if (typeof t != "function" && t !== null)
|
1235
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
1236
|
+
ht(e, t);
|
1237
|
+
function r() {
|
1238
|
+
this.constructor = e;
|
1239
|
+
}
|
1240
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
1241
|
+
}
|
1242
|
+
var X = function() {
|
1243
|
+
return X = Object.assign || function(t) {
|
1244
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1245
|
+
r = arguments[n];
|
1246
|
+
for (var o in r)
|
1247
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1248
|
+
}
|
1249
|
+
return t;
|
1250
|
+
}, X.apply(this, arguments);
|
1251
|
+
};
|
1252
|
+
function Ln(e, t) {
|
1253
|
+
var r = {};
|
1254
|
+
for (var n in e)
|
1255
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
1256
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
1257
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
1258
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
1259
|
+
return r;
|
1260
|
+
}
|
1261
|
+
function Je(e, t, r) {
|
1262
|
+
if (r || arguments.length === 2)
|
1263
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
1264
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
1265
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
1266
|
+
}
|
1267
|
+
function Qe(e, t) {
|
1269
1268
|
var r = t && t.cache ? t.cache : Gn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Rn;
|
1270
1269
|
return i(e, {
|
1271
1270
|
cache: r,
|
1272
1271
|
serializer: n
|
1273
1272
|
});
|
1274
1273
|
}
|
1275
|
-
function
|
1274
|
+
function Nn(e) {
|
1276
1275
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1277
1276
|
}
|
1278
|
-
function
|
1279
|
-
var i =
|
1277
|
+
function Mn(e, t, r, n) {
|
1278
|
+
var i = Nn(n) ? n : r(n), o = t.get(i);
|
1280
1279
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
1281
1280
|
}
|
1282
|
-
function
|
1281
|
+
function fr(e, t, r) {
|
1283
1282
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
1284
1283
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
1285
1284
|
}
|
1286
|
-
function
|
1285
|
+
function pr(e, t, r, n, i) {
|
1287
1286
|
return r.bind(t, e, n, i);
|
1288
1287
|
}
|
1289
1288
|
function Rn(e, t) {
|
1290
|
-
var r = e.length === 1 ?
|
1291
|
-
return
|
1289
|
+
var r = e.length === 1 ? Mn : fr;
|
1290
|
+
return pr(e, this, r, t.cache.create(), t.serializer);
|
1292
1291
|
}
|
1293
1292
|
function Dn(e, t) {
|
1294
|
-
return
|
1295
|
-
}
|
1296
|
-
function Un(e, t) {
|
1297
|
-
return yt(e, this, dr, t.cache.create(), t.serializer);
|
1293
|
+
return pr(e, this, fr, t.cache.create(), t.serializer);
|
1298
1294
|
}
|
1299
1295
|
var $n = function() {
|
1300
1296
|
return JSON.stringify(arguments);
|
1301
|
-
}
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1297
|
+
}, Un = (
|
1298
|
+
/** @class */
|
1299
|
+
function() {
|
1300
|
+
function e() {
|
1301
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1302
|
+
}
|
1303
|
+
return e.prototype.get = function(t) {
|
1304
|
+
return this.cache[t];
|
1305
|
+
}, e.prototype.set = function(t, r) {
|
1306
|
+
this.cache[t] = r;
|
1307
|
+
}, e;
|
1308
|
+
}()
|
1309
|
+
), Gn = {
|
1312
1310
|
create: function() {
|
1313
|
-
return new
|
1311
|
+
return new Un();
|
1314
1312
|
}
|
1315
|
-
},
|
1316
|
-
variadic: Dn
|
1317
|
-
|
1318
|
-
|
1313
|
+
}, qe = {
|
1314
|
+
variadic: Dn
|
1315
|
+
}, De = function() {
|
1316
|
+
return De = Object.assign || function(t) {
|
1317
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1318
|
+
r = arguments[n];
|
1319
|
+
for (var o in r)
|
1320
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1321
|
+
}
|
1322
|
+
return t;
|
1323
|
+
}, De.apply(this, arguments);
|
1324
|
+
};
|
1325
|
+
var E;
|
1319
1326
|
(function(e) {
|
1320
1327
|
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";
|
1321
|
-
})(
|
1322
|
-
var
|
1328
|
+
})(E || (E = {}));
|
1329
|
+
var F;
|
1323
1330
|
(function(e) {
|
1324
1331
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
1325
|
-
})(
|
1326
|
-
var
|
1332
|
+
})(F || (F = {}));
|
1333
|
+
var de;
|
1327
1334
|
(function(e) {
|
1328
1335
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1329
|
-
})(
|
1336
|
+
})(de || (de = {}));
|
1330
1337
|
function Nt(e) {
|
1331
|
-
return e.type ===
|
1338
|
+
return e.type === F.literal;
|
1332
1339
|
}
|
1333
1340
|
function kn(e) {
|
1334
|
-
return e.type ===
|
1341
|
+
return e.type === F.argument;
|
1342
|
+
}
|
1343
|
+
function dr(e) {
|
1344
|
+
return e.type === F.number;
|
1335
1345
|
}
|
1336
1346
|
function mr(e) {
|
1337
|
-
return e.type ===
|
1347
|
+
return e.type === F.date;
|
1338
1348
|
}
|
1339
1349
|
function br(e) {
|
1340
|
-
return e.type ===
|
1350
|
+
return e.type === F.time;
|
1341
1351
|
}
|
1342
1352
|
function gr(e) {
|
1343
|
-
return e.type ===
|
1353
|
+
return e.type === F.select;
|
1344
1354
|
}
|
1345
1355
|
function yr(e) {
|
1346
|
-
return e.type ===
|
1347
|
-
}
|
1348
|
-
function vr(e) {
|
1349
|
-
return e.type === B.plural;
|
1356
|
+
return e.type === F.plural;
|
1350
1357
|
}
|
1351
1358
|
function jn(e) {
|
1352
|
-
return e.type ===
|
1359
|
+
return e.type === F.pound;
|
1353
1360
|
}
|
1354
|
-
function
|
1355
|
-
return e.type ===
|
1361
|
+
function vr(e) {
|
1362
|
+
return e.type === F.tag;
|
1356
1363
|
}
|
1357
|
-
function
|
1358
|
-
return !!(e && typeof e == "object" && e.type ===
|
1364
|
+
function _r(e) {
|
1365
|
+
return !!(e && typeof e == "object" && e.type === de.number);
|
1359
1366
|
}
|
1360
|
-
function
|
1361
|
-
return !!(e && typeof e == "object" && e.type ===
|
1367
|
+
function ct(e) {
|
1368
|
+
return !!(e && typeof e == "object" && e.type === de.dateTime);
|
1362
1369
|
}
|
1363
|
-
var
|
1370
|
+
var xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vn = /(?:[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;
|
1364
1371
|
function Xn(e) {
|
1365
1372
|
var t = {};
|
1366
1373
|
return e.replace(Vn, function(r) {
|
@@ -1452,19 +1459,29 @@ function Xn(e) {
|
|
1452
1459
|
return "";
|
1453
1460
|
}), t;
|
1454
1461
|
}
|
1462
|
+
var O = function() {
|
1463
|
+
return O = Object.assign || function(t) {
|
1464
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1465
|
+
r = arguments[n];
|
1466
|
+
for (var o in r)
|
1467
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1468
|
+
}
|
1469
|
+
return t;
|
1470
|
+
}, O.apply(this, arguments);
|
1471
|
+
};
|
1455
1472
|
var Wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1456
1473
|
function zn(e) {
|
1457
1474
|
if (e.length === 0)
|
1458
1475
|
throw new Error("Number skeleton cannot be empty");
|
1459
|
-
for (var t = e.split(Wn).filter(function(
|
1460
|
-
return
|
1476
|
+
for (var t = e.split(Wn).filter(function(c) {
|
1477
|
+
return c.length > 0;
|
1461
1478
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1462
1479
|
var o = i[n], s = o.split("/");
|
1463
1480
|
if (s.length === 0)
|
1464
1481
|
throw new Error("Invalid number skeleton");
|
1465
1482
|
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
1466
|
-
var
|
1467
|
-
if (
|
1483
|
+
var p = u[l];
|
1484
|
+
if (p.length === 0)
|
1468
1485
|
throw new Error("Invalid number skeleton");
|
1469
1486
|
}
|
1470
1487
|
r.push({ stem: a, options: h });
|
@@ -1474,14 +1491,14 @@ function zn(e) {
|
|
1474
1491
|
function Zn(e) {
|
1475
1492
|
return e.replace(/^(.*?)-/, "");
|
1476
1493
|
}
|
1477
|
-
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
1494
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Er = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, wr = /^(0+)$/;
|
1478
1495
|
function Rt(e) {
|
1479
1496
|
var t = {};
|
1480
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1497
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Er, function(r, n, i) {
|
1481
1498
|
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)), "";
|
1482
1499
|
}), t;
|
1483
1500
|
}
|
1484
|
-
function
|
1501
|
+
function Sr(e) {
|
1485
1502
|
switch (e) {
|
1486
1503
|
case "sign-auto":
|
1487
1504
|
return {
|
@@ -1529,14 +1546,14 @@ function Qn(e) {
|
|
1529
1546
|
notation: "scientific"
|
1530
1547
|
}, e = e.slice(1)), t) {
|
1531
1548
|
var r = e.slice(0, 2);
|
1532
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1549
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wr.test(e))
|
1533
1550
|
throw new Error("Malformed concise eng/scientific notation");
|
1534
1551
|
t.minimumIntegerDigits = e.length;
|
1535
1552
|
}
|
1536
1553
|
return t;
|
1537
1554
|
}
|
1538
1555
|
function Dt(e) {
|
1539
|
-
var t = {}, r =
|
1556
|
+
var t = {}, r = Sr(e);
|
1540
1557
|
return r || t;
|
1541
1558
|
}
|
1542
1559
|
function qn(e) {
|
@@ -1574,13 +1591,13 @@ function qn(e) {
|
|
1574
1591
|
t.notation = "compact", t.compactDisplay = "long";
|
1575
1592
|
continue;
|
1576
1593
|
case "scientific":
|
1577
|
-
t =
|
1578
|
-
return
|
1594
|
+
t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1595
|
+
return O(O({}, h), Dt(l));
|
1579
1596
|
}, {}));
|
1580
1597
|
continue;
|
1581
1598
|
case "engineering":
|
1582
|
-
t =
|
1583
|
-
return
|
1599
|
+
t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1600
|
+
return O(O({}, h), Dt(l));
|
1584
1601
|
}, {}));
|
1585
1602
|
continue;
|
1586
1603
|
case "notation-simple":
|
@@ -1625,45 +1642,45 @@ function qn(e) {
|
|
1625
1642
|
case "integer-width":
|
1626
1643
|
if (i.options.length > 1)
|
1627
1644
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1628
|
-
i.options[0].replace(Jn, function(h, l, u,
|
1645
|
+
i.options[0].replace(Jn, function(h, l, u, p, c, m) {
|
1629
1646
|
if (l)
|
1630
1647
|
t.minimumIntegerDigits = u.length;
|
1631
1648
|
else {
|
1632
|
-
if (
|
1649
|
+
if (p && c)
|
1633
1650
|
throw new Error("We currently do not support maximum integer digits");
|
1634
|
-
if (
|
1651
|
+
if (m)
|
1635
1652
|
throw new Error("We currently do not support exact integer digits");
|
1636
1653
|
}
|
1637
1654
|
return "";
|
1638
1655
|
});
|
1639
1656
|
continue;
|
1640
1657
|
}
|
1641
|
-
if (
|
1658
|
+
if (wr.test(i.stem)) {
|
1642
1659
|
t.minimumIntegerDigits = i.stem.length;
|
1643
1660
|
continue;
|
1644
1661
|
}
|
1645
1662
|
if (Mt.test(i.stem)) {
|
1646
1663
|
if (i.options.length > 1)
|
1647
1664
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1648
|
-
i.stem.replace(Mt, function(h, l, u,
|
1649
|
-
return u === "*" ? t.minimumFractionDigits = l.length :
|
1665
|
+
i.stem.replace(Mt, function(h, l, u, p, c, m) {
|
1666
|
+
return u === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1650
1667
|
});
|
1651
1668
|
var o = i.options[0];
|
1652
|
-
o === "w" ? t =
|
1669
|
+
o === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = O(O({}, t), Rt(o)));
|
1653
1670
|
continue;
|
1654
1671
|
}
|
1655
|
-
if (
|
1656
|
-
t =
|
1672
|
+
if (Er.test(i.stem)) {
|
1673
|
+
t = O(O({}, t), Rt(i.stem));
|
1657
1674
|
continue;
|
1658
1675
|
}
|
1659
|
-
var s =
|
1660
|
-
s && (t =
|
1676
|
+
var s = Sr(i.stem);
|
1677
|
+
s && (t = O(O({}, t), s));
|
1661
1678
|
var a = Qn(i.stem);
|
1662
|
-
a && (t =
|
1679
|
+
a && (t = O(O({}, t), a));
|
1663
1680
|
}
|
1664
1681
|
return t;
|
1665
1682
|
}
|
1666
|
-
var
|
1683
|
+
var Oe = {
|
1667
1684
|
"001": [
|
1668
1685
|
"H",
|
1669
1686
|
"h"
|
@@ -3113,23 +3130,23 @@ function Kn(e) {
|
|
3113
3130
|
}
|
3114
3131
|
var r = e.language, n;
|
3115
3132
|
r !== "root" && (n = e.maximize().region);
|
3116
|
-
var i =
|
3133
|
+
var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
|
3117
3134
|
return i[0];
|
3118
3135
|
}
|
3119
|
-
var
|
3120
|
-
function
|
3136
|
+
var Ye, ei = new RegExp("^".concat(xr.source, "*")), ti = new RegExp("".concat(xr.source, "*$"));
|
3137
|
+
function w(e, t) {
|
3121
3138
|
return { start: e, end: t };
|
3122
3139
|
}
|
3123
3140
|
var ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), ni = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, ui = li ? Number.isSafeInteger : function(e) {
|
3124
3141
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3125
|
-
},
|
3142
|
+
}, ft = !0;
|
3126
3143
|
try {
|
3127
|
-
var hi =
|
3128
|
-
|
3144
|
+
var hi = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3145
|
+
ft = ((Ye = hi.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
3129
3146
|
} catch {
|
3130
|
-
|
3147
|
+
ft = !1;
|
3131
3148
|
}
|
3132
|
-
var
|
3149
|
+
var $t = ri ? (
|
3133
3150
|
// Native
|
3134
3151
|
function(t, r, n) {
|
3135
3152
|
return t.startsWith(r, n);
|
@@ -3139,7 +3156,7 @@ var Ut = ri ? (
|
|
3139
3156
|
function(t, r, n) {
|
3140
3157
|
return t.slice(n, n + r.length) === r;
|
3141
3158
|
}
|
3142
|
-
),
|
3159
|
+
), pt = ni ? String.fromCodePoint : (
|
3143
3160
|
// IE11
|
3144
3161
|
function() {
|
3145
3162
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3151,7 +3168,7 @@ var Ut = ri ? (
|
|
3151
3168
|
}
|
3152
3169
|
return n;
|
3153
3170
|
}
|
3154
|
-
),
|
3171
|
+
), Ut = (
|
3155
3172
|
// native
|
3156
3173
|
ii ? Object.fromEntries : (
|
3157
3174
|
// Ponyfill
|
@@ -3163,7 +3180,7 @@ var Ut = ri ? (
|
|
3163
3180
|
return r;
|
3164
3181
|
}
|
3165
3182
|
)
|
3166
|
-
),
|
3183
|
+
), Tr = oi ? (
|
3167
3184
|
// Native
|
3168
3185
|
function(t, r) {
|
3169
3186
|
return t.codePointAt(r);
|
@@ -3198,12 +3215,12 @@ var Ut = ri ? (
|
|
3198
3215
|
return t.replace(ti, "");
|
3199
3216
|
}
|
3200
3217
|
);
|
3201
|
-
function
|
3218
|
+
function Hr(e, t) {
|
3202
3219
|
return new RegExp(e, t);
|
3203
3220
|
}
|
3204
3221
|
var dt;
|
3205
|
-
if (
|
3206
|
-
var Gt =
|
3222
|
+
if (ft) {
|
3223
|
+
var Gt = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3207
3224
|
dt = function(t, r) {
|
3208
3225
|
var n;
|
3209
3226
|
Gt.lastIndex = r;
|
@@ -3213,14 +3230,14 @@ if (ct) {
|
|
3213
3230
|
} else
|
3214
3231
|
dt = function(t, r) {
|
3215
3232
|
for (var n = []; ; ) {
|
3216
|
-
var i =
|
3217
|
-
if (i === void 0 ||
|
3233
|
+
var i = Tr(t, r);
|
3234
|
+
if (i === void 0 || Ar(i) || bi(i))
|
3218
3235
|
break;
|
3219
3236
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3220
3237
|
}
|
3221
|
-
return
|
3238
|
+
return pt.apply(void 0, n);
|
3222
3239
|
};
|
3223
|
-
var
|
3240
|
+
var pi = (
|
3224
3241
|
/** @class */
|
3225
3242
|
function() {
|
3226
3243
|
function e(t, r) {
|
@@ -3244,14 +3261,14 @@ var di = (
|
|
3244
3261
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
3245
3262
|
var a = this.clonePosition();
|
3246
3263
|
this.bump(), i.push({
|
3247
|
-
type:
|
3248
|
-
location:
|
3264
|
+
type: F.pound,
|
3265
|
+
location: w(a, this.clonePosition())
|
3249
3266
|
});
|
3250
3267
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
3251
3268
|
if (n)
|
3252
3269
|
break;
|
3253
|
-
return this.error(
|
3254
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3270
|
+
return this.error(E.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
3271
|
+
} else if (o === 60 && !this.ignoreTag && mt(this.peek() || 0)) {
|
3255
3272
|
var s = this.parseTag(t, r);
|
3256
3273
|
if (s.err)
|
3257
3274
|
return s;
|
@@ -3272,9 +3289,9 @@ var di = (
|
|
3272
3289
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
3273
3290
|
return {
|
3274
3291
|
val: {
|
3275
|
-
type:
|
3292
|
+
type: F.literal,
|
3276
3293
|
value: "<".concat(i, "/>"),
|
3277
|
-
location:
|
3294
|
+
location: w(n, this.clonePosition())
|
3278
3295
|
},
|
3279
3296
|
err: null
|
3280
3297
|
};
|
@@ -3284,22 +3301,22 @@ var di = (
|
|
3284
3301
|
return o;
|
3285
3302
|
var s = o.val, a = this.clonePosition();
|
3286
3303
|
if (this.bumpIf("</")) {
|
3287
|
-
if (this.isEOF() || !
|
3288
|
-
return this.error(
|
3304
|
+
if (this.isEOF() || !mt(this.char()))
|
3305
|
+
return this.error(E.INVALID_TAG, w(a, this.clonePosition()));
|
3289
3306
|
var h = this.clonePosition(), l = this.parseTagName();
|
3290
|
-
return i !== l ? this.error(
|
3307
|
+
return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, w(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3291
3308
|
val: {
|
3292
|
-
type:
|
3309
|
+
type: F.tag,
|
3293
3310
|
value: i,
|
3294
3311
|
children: s,
|
3295
|
-
location:
|
3312
|
+
location: w(n, this.clonePosition())
|
3296
3313
|
},
|
3297
3314
|
err: null
|
3298
|
-
} : this.error(
|
3315
|
+
} : this.error(E.INVALID_TAG, w(a, this.clonePosition())));
|
3299
3316
|
} else
|
3300
|
-
return this.error(
|
3317
|
+
return this.error(E.UNCLOSED_TAG, w(n, this.clonePosition()));
|
3301
3318
|
} else
|
3302
|
-
return this.error(
|
3319
|
+
return this.error(E.INVALID_TAG, w(n, this.clonePosition()));
|
3303
3320
|
}, e.prototype.parseTagName = function() {
|
3304
3321
|
var t = this.offset();
|
3305
3322
|
for (this.bump(); !this.isEOF() && mi(this.char()); )
|
@@ -3324,14 +3341,14 @@ var di = (
|
|
3324
3341
|
}
|
3325
3342
|
break;
|
3326
3343
|
}
|
3327
|
-
var h =
|
3344
|
+
var h = w(n, this.clonePosition());
|
3328
3345
|
return {
|
3329
|
-
val: { type:
|
3346
|
+
val: { type: F.literal, value: i, location: h },
|
3330
3347
|
err: null
|
3331
3348
|
};
|
3332
3349
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3333
3350
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3334
|
-
!
|
3351
|
+
!di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3335
3352
|
}, e.prototype.tryParseQuote = function(t) {
|
3336
3353
|
if (this.isEOF() || this.char() !== 39)
|
3337
3354
|
return null;
|
@@ -3365,49 +3382,49 @@ var di = (
|
|
3365
3382
|
r.push(n);
|
3366
3383
|
this.bump();
|
3367
3384
|
}
|
3368
|
-
return
|
3385
|
+
return pt.apply(void 0, r);
|
3369
3386
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3370
3387
|
if (this.isEOF())
|
3371
3388
|
return null;
|
3372
3389
|
var n = this.char();
|
3373
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3390
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), pt(n));
|
3374
3391
|
}, e.prototype.parseArgument = function(t, r) {
|
3375
3392
|
var n = this.clonePosition();
|
3376
3393
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
3377
|
-
return this.error(
|
3394
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
3378
3395
|
if (this.char() === 125)
|
3379
|
-
return this.bump(), this.error(
|
3396
|
+
return this.bump(), this.error(E.EMPTY_ARGUMENT, w(n, this.clonePosition()));
|
3380
3397
|
var i = this.parseIdentifierIfPossible().value;
|
3381
3398
|
if (!i)
|
3382
|
-
return this.error(
|
3399
|
+
return this.error(E.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
3383
3400
|
if (this.bumpSpace(), this.isEOF())
|
3384
|
-
return this.error(
|
3401
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
3385
3402
|
switch (this.char()) {
|
3386
3403
|
case 125:
|
3387
3404
|
return this.bump(), {
|
3388
3405
|
val: {
|
3389
|
-
type:
|
3406
|
+
type: F.argument,
|
3390
3407
|
// value does not include the opening and closing braces.
|
3391
3408
|
value: i,
|
3392
|
-
location:
|
3409
|
+
location: w(n, this.clonePosition())
|
3393
3410
|
},
|
3394
3411
|
err: null
|
3395
3412
|
};
|
3396
3413
|
case 44:
|
3397
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
3414
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
3398
3415
|
default:
|
3399
|
-
return this.error(
|
3416
|
+
return this.error(E.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
3400
3417
|
}
|
3401
3418
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3402
3419
|
var t = this.clonePosition(), r = this.offset(), n = dt(this.message, r), i = r + n.length;
|
3403
3420
|
this.bumpTo(i);
|
3404
|
-
var o = this.clonePosition(), s =
|
3421
|
+
var o = this.clonePosition(), s = w(t, o);
|
3405
3422
|
return { value: n, location: s };
|
3406
3423
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
3407
3424
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
3408
3425
|
switch (a) {
|
3409
3426
|
case "":
|
3410
|
-
return this.error(
|
3427
|
+
return this.error(E.EXPECT_ARGUMENT_TYPE, w(s, h));
|
3411
3428
|
case "number":
|
3412
3429
|
case "date":
|
3413
3430
|
case "time": {
|
@@ -3415,49 +3432,49 @@ var di = (
|
|
3415
3432
|
var l = null;
|
3416
3433
|
if (this.bumpIf(",")) {
|
3417
3434
|
this.bumpSpace();
|
3418
|
-
var u = this.clonePosition(),
|
3419
|
-
if (
|
3420
|
-
return
|
3421
|
-
var
|
3422
|
-
if (
|
3423
|
-
return this.error(
|
3424
|
-
var
|
3425
|
-
l = { style:
|
3435
|
+
var u = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
3436
|
+
if (p.err)
|
3437
|
+
return p;
|
3438
|
+
var c = fi(p.val);
|
3439
|
+
if (c.length === 0)
|
3440
|
+
return this.error(E.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
3441
|
+
var m = w(u, this.clonePosition());
|
3442
|
+
l = { style: c, styleLocation: m };
|
3426
3443
|
}
|
3427
|
-
var
|
3428
|
-
if (
|
3429
|
-
return
|
3430
|
-
var
|
3431
|
-
if (l &&
|
3432
|
-
var
|
3444
|
+
var v = this.tryParseArgumentClose(i);
|
3445
|
+
if (v.err)
|
3446
|
+
return v;
|
3447
|
+
var y = w(i, this.clonePosition());
|
3448
|
+
if (l && $t(l?.style, "::", 0)) {
|
3449
|
+
var T = ci(l.style.slice(2));
|
3433
3450
|
if (a === "number") {
|
3434
|
-
var
|
3435
|
-
return
|
3436
|
-
val: { type:
|
3451
|
+
var p = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
3452
|
+
return p.err ? p : {
|
3453
|
+
val: { type: F.number, value: n, location: y, style: p.val },
|
3437
3454
|
err: null
|
3438
3455
|
};
|
3439
3456
|
} else {
|
3440
|
-
if (
|
3441
|
-
return this.error(
|
3442
|
-
var H =
|
3443
|
-
this.locale && (H = Yn(
|
3444
|
-
var
|
3445
|
-
type:
|
3457
|
+
if (T.length === 0)
|
3458
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, y);
|
3459
|
+
var H = T;
|
3460
|
+
this.locale && (H = Yn(T, this.locale));
|
3461
|
+
var c = {
|
3462
|
+
type: de.dateTime,
|
3446
3463
|
pattern: H,
|
3447
3464
|
location: l.styleLocation,
|
3448
3465
|
parsedOptions: this.shouldParseSkeletons ? Xn(H) : {}
|
3449
|
-
},
|
3466
|
+
}, S = a === "date" ? F.date : F.time;
|
3450
3467
|
return {
|
3451
|
-
val: { type:
|
3468
|
+
val: { type: S, value: n, location: y, style: c },
|
3452
3469
|
err: null
|
3453
3470
|
};
|
3454
3471
|
}
|
3455
3472
|
}
|
3456
3473
|
return {
|
3457
3474
|
val: {
|
3458
|
-
type: a === "number" ?
|
3475
|
+
type: a === "number" ? F.number : a === "date" ? F.date : F.time,
|
3459
3476
|
value: n,
|
3460
|
-
location:
|
3477
|
+
location: y,
|
3461
3478
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
3462
3479
|
},
|
3463
3480
|
err: null
|
@@ -3466,40 +3483,40 @@ var di = (
|
|
3466
3483
|
case "plural":
|
3467
3484
|
case "selectordinal":
|
3468
3485
|
case "select": {
|
3469
|
-
var
|
3486
|
+
var b = this.clonePosition();
|
3470
3487
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3471
|
-
return this.error(
|
3488
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, w(b, De({}, b)));
|
3472
3489
|
this.bumpSpace();
|
3473
|
-
var
|
3474
|
-
if (a !== "select" &&
|
3490
|
+
var I = this.parseIdentifierIfPossible(), L = 0;
|
3491
|
+
if (a !== "select" && I.value === "offset") {
|
3475
3492
|
if (!this.bumpIf(":"))
|
3476
|
-
return this.error(
|
3493
|
+
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
3477
3494
|
this.bumpSpace();
|
3478
|
-
var
|
3479
|
-
if (
|
3480
|
-
return
|
3481
|
-
this.bumpSpace(),
|
3495
|
+
var p = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3496
|
+
if (p.err)
|
3497
|
+
return p;
|
3498
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), L = p.val;
|
3482
3499
|
}
|
3483
|
-
var
|
3484
|
-
if (
|
3485
|
-
return
|
3486
|
-
var
|
3487
|
-
if (
|
3488
|
-
return
|
3489
|
-
var A =
|
3500
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
3501
|
+
if (M.err)
|
3502
|
+
return M;
|
3503
|
+
var v = this.tryParseArgumentClose(i);
|
3504
|
+
if (v.err)
|
3505
|
+
return v;
|
3506
|
+
var A = w(i, this.clonePosition());
|
3490
3507
|
return a === "select" ? {
|
3491
3508
|
val: {
|
3492
|
-
type:
|
3509
|
+
type: F.select,
|
3493
3510
|
value: n,
|
3494
|
-
options:
|
3511
|
+
options: Ut(M.val),
|
3495
3512
|
location: A
|
3496
3513
|
},
|
3497
3514
|
err: null
|
3498
3515
|
} : {
|
3499
3516
|
val: {
|
3500
|
-
type:
|
3517
|
+
type: F.plural,
|
3501
3518
|
value: n,
|
3502
|
-
options:
|
3519
|
+
options: Ut(M.val),
|
3503
3520
|
offset: L,
|
3504
3521
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3505
3522
|
location: A
|
@@ -3508,10 +3525,10 @@ var di = (
|
|
3508
3525
|
};
|
3509
3526
|
}
|
3510
3527
|
default:
|
3511
|
-
return this.error(
|
3528
|
+
return this.error(E.INVALID_ARGUMENT_TYPE, w(s, h));
|
3512
3529
|
}
|
3513
3530
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
3514
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
3531
|
+
return this.isEOF() || this.char() !== 125 ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
3515
3532
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
3516
3533
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
3517
3534
|
var n = this.char();
|
@@ -3520,7 +3537,7 @@ var di = (
|
|
3520
3537
|
this.bump();
|
3521
3538
|
var i = this.clonePosition();
|
3522
3539
|
if (!this.bumpUntil("'"))
|
3523
|
-
return this.error(
|
3540
|
+
return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
3524
3541
|
this.bump();
|
3525
3542
|
break;
|
3526
3543
|
}
|
@@ -3552,11 +3569,11 @@ var di = (
|
|
3552
3569
|
try {
|
3553
3570
|
n = zn(t);
|
3554
3571
|
} catch {
|
3555
|
-
return this.error(
|
3572
|
+
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
3556
3573
|
}
|
3557
3574
|
return {
|
3558
3575
|
val: {
|
3559
|
-
type:
|
3576
|
+
type: de.number,
|
3560
3577
|
tokens: n,
|
3561
3578
|
location: r,
|
3562
3579
|
parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
|
@@ -3566,36 +3583,36 @@ var di = (
|
|
3566
3583
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3567
3584
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
3568
3585
|
if (l.length === 0) {
|
3569
|
-
var
|
3586
|
+
var p = this.clonePosition();
|
3570
3587
|
if (r !== "select" && this.bumpIf("=")) {
|
3571
|
-
var
|
3572
|
-
if (
|
3573
|
-
return
|
3574
|
-
u =
|
3588
|
+
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3589
|
+
if (c.err)
|
3590
|
+
return c;
|
3591
|
+
u = w(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
|
3575
3592
|
} else
|
3576
3593
|
break;
|
3577
3594
|
}
|
3578
3595
|
if (h.has(l))
|
3579
|
-
return this.error(r === "select" ?
|
3596
|
+
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3580
3597
|
l === "other" && (s = !0), this.bumpSpace();
|
3581
|
-
var
|
3598
|
+
var m = this.clonePosition();
|
3582
3599
|
if (!this.bumpIf("{"))
|
3583
|
-
return this.error(r === "select" ?
|
3584
|
-
var
|
3585
|
-
if (
|
3586
|
-
return
|
3587
|
-
var
|
3588
|
-
if (
|
3589
|
-
return
|
3600
|
+
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
3601
|
+
var v = this.parseMessage(t + 1, r, n);
|
3602
|
+
if (v.err)
|
3603
|
+
return v;
|
3604
|
+
var y = this.tryParseArgumentClose(m);
|
3605
|
+
if (y.err)
|
3606
|
+
return y;
|
3590
3607
|
a.push([
|
3591
3608
|
l,
|
3592
3609
|
{
|
3593
|
-
value:
|
3594
|
-
location:
|
3610
|
+
value: v.val,
|
3611
|
+
location: w(m, this.clonePosition())
|
3595
3612
|
}
|
3596
3613
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
3597
3614
|
}
|
3598
|
-
return a.length === 0 ? this.error(r === "select" ?
|
3615
|
+
return a.length === 0 ? this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR : E.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(E.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3599
3616
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3600
3617
|
var n = 1, i = this.clonePosition();
|
3601
3618
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3606,7 +3623,7 @@ var di = (
|
|
3606
3623
|
else
|
3607
3624
|
break;
|
3608
3625
|
}
|
3609
|
-
var h =
|
3626
|
+
var h = w(i, this.clonePosition());
|
3610
3627
|
return o ? (s *= n, ui(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3611
3628
|
}, e.prototype.offset = function() {
|
3612
3629
|
return this.position.offset;
|
@@ -3622,7 +3639,7 @@ var di = (
|
|
3622
3639
|
var t = this.position.offset;
|
3623
3640
|
if (t >= this.message.length)
|
3624
3641
|
throw Error("out of bound");
|
3625
|
-
var r =
|
3642
|
+
var r = Tr(this.message, t);
|
3626
3643
|
if (r === void 0)
|
3627
3644
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3628
3645
|
return r;
|
@@ -3641,7 +3658,7 @@ var di = (
|
|
3641
3658
|
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);
|
3642
3659
|
}
|
3643
3660
|
}, e.prototype.bumpIf = function(t) {
|
3644
|
-
if (
|
3661
|
+
if ($t(this.message, t, this.offset())) {
|
3645
3662
|
for (var r = 0; r < t.length; r++)
|
3646
3663
|
this.bump();
|
3647
3664
|
return !0;
|
@@ -3663,7 +3680,7 @@ var di = (
|
|
3663
3680
|
break;
|
3664
3681
|
}
|
3665
3682
|
}, e.prototype.bumpSpace = function() {
|
3666
|
-
for (; !this.isEOF() &&
|
3683
|
+
for (; !this.isEOF() && Ar(this.char()); )
|
3667
3684
|
this.bump();
|
3668
3685
|
}, e.prototype.peek = function() {
|
3669
3686
|
if (this.isEOF())
|
@@ -3673,47 +3690,47 @@ var di = (
|
|
3673
3690
|
}, e;
|
3674
3691
|
}()
|
3675
3692
|
);
|
3676
|
-
function
|
3693
|
+
function mt(e) {
|
3677
3694
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3678
3695
|
}
|
3679
|
-
function
|
3680
|
-
return
|
3696
|
+
function di(e) {
|
3697
|
+
return mt(e) || e === 47;
|
3681
3698
|
}
|
3682
3699
|
function mi(e) {
|
3683
3700
|
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;
|
3684
3701
|
}
|
3685
|
-
function
|
3702
|
+
function Ar(e) {
|
3686
3703
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3687
3704
|
}
|
3688
3705
|
function bi(e) {
|
3689
3706
|
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;
|
3690
3707
|
}
|
3691
|
-
function
|
3708
|
+
function bt(e) {
|
3692
3709
|
e.forEach(function(t) {
|
3693
|
-
if (delete t.location,
|
3710
|
+
if (delete t.location, gr(t) || yr(t))
|
3694
3711
|
for (var r in t.options)
|
3695
|
-
delete t.options[r].location,
|
3712
|
+
delete t.options[r].location, bt(t.options[r].value);
|
3696
3713
|
else
|
3697
|
-
|
3714
|
+
dr(t) && _r(t.style) || (mr(t) || br(t)) && ct(t.style) ? delete t.style.location : vr(t) && bt(t.children);
|
3698
3715
|
});
|
3699
3716
|
}
|
3700
3717
|
function gi(e, t) {
|
3701
|
-
t === void 0 && (t = {}), t =
|
3702
|
-
var r = new
|
3718
|
+
t === void 0 && (t = {}), t = De({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3719
|
+
var r = new pi(e, t).parse();
|
3703
3720
|
if (r.err) {
|
3704
|
-
var n = SyntaxError(
|
3721
|
+
var n = SyntaxError(E[r.err.kind]);
|
3705
3722
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3706
3723
|
}
|
3707
|
-
return t?.captureLocation ||
|
3724
|
+
return t?.captureLocation || bt(r.val), r.val;
|
3708
3725
|
}
|
3709
|
-
var
|
3726
|
+
var me;
|
3710
3727
|
(function(e) {
|
3711
3728
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3712
|
-
})(
|
3713
|
-
var
|
3729
|
+
})(me || (me = {}));
|
3730
|
+
var Ve = (
|
3714
3731
|
/** @class */
|
3715
3732
|
function(e) {
|
3716
|
-
|
3733
|
+
je(t, e);
|
3717
3734
|
function t(r, n, i) {
|
3718
3735
|
var o = e.call(this, r) || this;
|
3719
3736
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3725,38 +3742,38 @@ var je = (
|
|
3725
3742
|
), kt = (
|
3726
3743
|
/** @class */
|
3727
3744
|
function(e) {
|
3728
|
-
|
3745
|
+
je(t, e);
|
3729
3746
|
function t(r, n, i, o) {
|
3730
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3747
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), me.INVALID_VALUE, o) || this;
|
3731
3748
|
}
|
3732
3749
|
return t;
|
3733
|
-
}(
|
3750
|
+
}(Ve)
|
3734
3751
|
), yi = (
|
3735
3752
|
/** @class */
|
3736
3753
|
function(e) {
|
3737
|
-
|
3754
|
+
je(t, e);
|
3738
3755
|
function t(r, n, i) {
|
3739
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3756
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), me.INVALID_VALUE, i) || this;
|
3740
3757
|
}
|
3741
3758
|
return t;
|
3742
|
-
}(
|
3759
|
+
}(Ve)
|
3743
3760
|
), vi = (
|
3744
3761
|
/** @class */
|
3745
3762
|
function(e) {
|
3746
|
-
|
3763
|
+
je(t, e);
|
3747
3764
|
function t(r, n) {
|
3748
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3765
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), me.MISSING_VALUE, n) || this;
|
3749
3766
|
}
|
3750
3767
|
return t;
|
3751
|
-
}(
|
3752
|
-
),
|
3768
|
+
}(Ve)
|
3769
|
+
), R;
|
3753
3770
|
(function(e) {
|
3754
3771
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3755
|
-
})(
|
3772
|
+
})(R || (R = {}));
|
3756
3773
|
function _i(e) {
|
3757
3774
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3758
3775
|
var n = t[t.length - 1];
|
3759
|
-
return !n || n.type !==
|
3776
|
+
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
3760
3777
|
}, []);
|
3761
3778
|
}
|
3762
3779
|
function xi(e) {
|
@@ -3766,7 +3783,7 @@ function Ne(e, t, r, n, i, o, s) {
|
|
3766
3783
|
if (e.length === 1 && Nt(e[0]))
|
3767
3784
|
return [
|
3768
3785
|
{
|
3769
|
-
type:
|
3786
|
+
type: R.literal,
|
3770
3787
|
value: e[0].value
|
3771
3788
|
}
|
3772
3789
|
];
|
@@ -3774,103 +3791,103 @@ function Ne(e, t, r, n, i, o, s) {
|
|
3774
3791
|
var u = l[h];
|
3775
3792
|
if (Nt(u)) {
|
3776
3793
|
a.push({
|
3777
|
-
type:
|
3794
|
+
type: R.literal,
|
3778
3795
|
value: u.value
|
3779
3796
|
});
|
3780
3797
|
continue;
|
3781
3798
|
}
|
3782
3799
|
if (jn(u)) {
|
3783
3800
|
typeof o == "number" && a.push({
|
3784
|
-
type:
|
3801
|
+
type: R.literal,
|
3785
3802
|
value: r.getNumberFormat(t).format(o)
|
3786
3803
|
});
|
3787
3804
|
continue;
|
3788
3805
|
}
|
3789
|
-
var
|
3790
|
-
if (!(i &&
|
3791
|
-
throw new vi(
|
3792
|
-
var
|
3806
|
+
var p = u.value;
|
3807
|
+
if (!(i && p in i))
|
3808
|
+
throw new vi(p, s);
|
3809
|
+
var c = i[p];
|
3793
3810
|
if (kn(u)) {
|
3794
|
-
(!
|
3795
|
-
type: typeof
|
3796
|
-
value:
|
3811
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3812
|
+
type: typeof c == "string" ? R.literal : R.object,
|
3813
|
+
value: c
|
3797
3814
|
});
|
3798
3815
|
continue;
|
3799
3816
|
}
|
3800
|
-
if (
|
3801
|
-
var
|
3817
|
+
if (mr(u)) {
|
3818
|
+
var m = typeof u.style == "string" ? n.date[u.style] : ct(u.style) ? u.style.parsedOptions : void 0;
|
3802
3819
|
a.push({
|
3803
|
-
type:
|
3804
|
-
value: r.getDateTimeFormat(t,
|
3820
|
+
type: R.literal,
|
3821
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
3805
3822
|
});
|
3806
3823
|
continue;
|
3807
3824
|
}
|
3808
|
-
if (
|
3809
|
-
var
|
3825
|
+
if (br(u)) {
|
3826
|
+
var m = typeof u.style == "string" ? n.time[u.style] : ct(u.style) ? u.style.parsedOptions : n.time.medium;
|
3810
3827
|
a.push({
|
3811
|
-
type:
|
3812
|
-
value: r.getDateTimeFormat(t,
|
3828
|
+
type: R.literal,
|
3829
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
3813
3830
|
});
|
3814
3831
|
continue;
|
3815
3832
|
}
|
3816
|
-
if (
|
3817
|
-
var
|
3818
|
-
|
3819
|
-
type:
|
3820
|
-
value: r.getNumberFormat(t,
|
3833
|
+
if (dr(u)) {
|
3834
|
+
var m = typeof u.style == "string" ? n.number[u.style] : _r(u.style) ? u.style.parsedOptions : void 0;
|
3835
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
3836
|
+
type: R.literal,
|
3837
|
+
value: r.getNumberFormat(t, m).format(c)
|
3821
3838
|
});
|
3822
3839
|
continue;
|
3823
3840
|
}
|
3824
|
-
if (
|
3825
|
-
var
|
3826
|
-
if (!xi(
|
3827
|
-
throw new yi(
|
3828
|
-
var H = Ne(
|
3841
|
+
if (vr(u)) {
|
3842
|
+
var v = u.children, y = u.value, T = i[y];
|
3843
|
+
if (!xi(T))
|
3844
|
+
throw new yi(y, "function", s);
|
3845
|
+
var H = Ne(v, t, r, n, i, o), S = T(H.map(function(L) {
|
3829
3846
|
return L.value;
|
3830
3847
|
}));
|
3831
|
-
Array.isArray(
|
3848
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(L) {
|
3832
3849
|
return {
|
3833
|
-
type: typeof L == "string" ?
|
3850
|
+
type: typeof L == "string" ? R.literal : R.object,
|
3834
3851
|
value: L
|
3835
3852
|
};
|
3836
3853
|
}));
|
3837
3854
|
}
|
3838
|
-
if (
|
3839
|
-
var
|
3840
|
-
if (!
|
3841
|
-
throw new kt(u.value,
|
3842
|
-
a.push.apply(a, Ne(
|
3855
|
+
if (gr(u)) {
|
3856
|
+
var b = u.options[c] || u.options.other;
|
3857
|
+
if (!b)
|
3858
|
+
throw new kt(u.value, c, Object.keys(u.options), s);
|
3859
|
+
a.push.apply(a, Ne(b.value, t, r, n, i));
|
3843
3860
|
continue;
|
3844
3861
|
}
|
3845
|
-
if (
|
3846
|
-
var
|
3847
|
-
if (!
|
3862
|
+
if (yr(u)) {
|
3863
|
+
var b = u.options["=".concat(c)];
|
3864
|
+
if (!b) {
|
3848
3865
|
if (!Intl.PluralRules)
|
3849
|
-
throw new
|
3866
|
+
throw new Ve(`Intl.PluralRules is not available in this environment.
|
3850
3867
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3851
|
-
`,
|
3852
|
-
var
|
3853
|
-
|
3868
|
+
`, me.MISSING_INTL_API, s);
|
3869
|
+
var I = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
3870
|
+
b = u.options[I] || u.options.other;
|
3854
3871
|
}
|
3855
|
-
if (!
|
3856
|
-
throw new kt(u.value,
|
3857
|
-
a.push.apply(a, Ne(
|
3872
|
+
if (!b)
|
3873
|
+
throw new kt(u.value, c, Object.keys(u.options), s);
|
3874
|
+
a.push.apply(a, Ne(b.value, t, r, n, i, c - (u.offset || 0)));
|
3858
3875
|
continue;
|
3859
3876
|
}
|
3860
3877
|
}
|
3861
3878
|
return _i(a);
|
3862
3879
|
}
|
3863
3880
|
function Ei(e, t) {
|
3864
|
-
return t ?
|
3865
|
-
return r[n] =
|
3881
|
+
return t ? X(X(X({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3882
|
+
return r[n] = X(X({}, e[n]), t[n] || {}), r;
|
3866
3883
|
}, {})) : e;
|
3867
3884
|
}
|
3868
3885
|
function wi(e, t) {
|
3869
3886
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3870
3887
|
return r[n] = Ei(e[n], t[n]), r;
|
3871
|
-
},
|
3888
|
+
}, X({}, e)) : e;
|
3872
3889
|
}
|
3873
|
-
function
|
3890
|
+
function Ke(e) {
|
3874
3891
|
return {
|
3875
3892
|
create: function() {
|
3876
3893
|
return {
|
@@ -3890,29 +3907,29 @@ function Si(e) {
|
|
3890
3907
|
dateTime: {},
|
3891
3908
|
pluralRules: {}
|
3892
3909
|
}), {
|
3893
|
-
getNumberFormat:
|
3910
|
+
getNumberFormat: Qe(function() {
|
3894
3911
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3895
3912
|
r[n] = arguments[n];
|
3896
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3913
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Je([void 0], r, !1)))();
|
3897
3914
|
}, {
|
3898
|
-
cache:
|
3899
|
-
strategy:
|
3915
|
+
cache: Ke(e.number),
|
3916
|
+
strategy: qe.variadic
|
3900
3917
|
}),
|
3901
|
-
getDateTimeFormat:
|
3918
|
+
getDateTimeFormat: Qe(function() {
|
3902
3919
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3903
3920
|
r[n] = arguments[n];
|
3904
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3921
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Je([void 0], r, !1)))();
|
3905
3922
|
}, {
|
3906
|
-
cache:
|
3907
|
-
strategy:
|
3923
|
+
cache: Ke(e.dateTime),
|
3924
|
+
strategy: qe.variadic
|
3908
3925
|
}),
|
3909
|
-
getPluralRules:
|
3926
|
+
getPluralRules: Qe(function() {
|
3910
3927
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3911
3928
|
r[n] = arguments[n];
|
3912
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3929
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Je([void 0], r, !1)))();
|
3913
3930
|
}, {
|
3914
|
-
cache:
|
3915
|
-
strategy:
|
3931
|
+
cache: Ke(e.pluralRules),
|
3932
|
+
strategy: qe.variadic
|
3916
3933
|
})
|
3917
3934
|
};
|
3918
3935
|
}
|
@@ -3930,8 +3947,8 @@ var Ti = (
|
|
3930
3947
|
var l = o.formatToParts(h);
|
3931
3948
|
if (l.length === 1)
|
3932
3949
|
return l[0].value;
|
3933
|
-
var u = l.reduce(function(
|
3934
|
-
return !
|
3950
|
+
var u = l.reduce(function(p, c) {
|
3951
|
+
return !p.length || c.type !== R.literal || typeof p[p.length - 1] != "string" ? p.push(c.value) : p[p.length - 1] += c.value, p;
|
3935
3952
|
}, []);
|
3936
3953
|
return u.length <= 1 ? u[0] || "" : u;
|
3937
3954
|
}, this.formatToParts = function(h) {
|
@@ -3948,8 +3965,8 @@ var Ti = (
|
|
3948
3965
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3949
3966
|
var s = i || {};
|
3950
3967
|
s.formatters;
|
3951
|
-
var a =
|
3952
|
-
this.ast = e.__parse(t,
|
3968
|
+
var a = Ln(s, ["formatters"]);
|
3969
|
+
this.ast = e.__parse(t, X(X({}, a), { locale: this.resolvedLocale }));
|
3953
3970
|
} else
|
3954
3971
|
this.ast = t;
|
3955
3972
|
if (!Array.isArray(this.ast))
|
@@ -4049,12 +4066,12 @@ function Hi(e, t) {
|
|
4049
4066
|
n = void 0;
|
4050
4067
|
return n;
|
4051
4068
|
}
|
4052
|
-
const
|
4069
|
+
const Q = {}, Ai = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), Pr = (e, t) => {
|
4053
4070
|
if (t == null)
|
4054
4071
|
return;
|
4055
|
-
if (t in
|
4056
|
-
return
|
4057
|
-
const r =
|
4072
|
+
if (t in Q && e in Q[t])
|
4073
|
+
return Q[t][e];
|
4074
|
+
const r = Xe(t);
|
4058
4075
|
for (let n = 0; n < r.length; n++) {
|
4059
4076
|
const i = r[n], o = Ci(i, e);
|
4060
4077
|
if (o)
|
@@ -4062,15 +4079,15 @@ const q = {}, Ai = (e, t, r) => r && (t in q || (q[t] = {}), e in q[t] || (q[t][
|
|
4062
4079
|
}
|
4063
4080
|
};
|
4064
4081
|
let _t;
|
4065
|
-
const
|
4082
|
+
const ye = ke({});
|
4066
4083
|
function Pi(e) {
|
4067
4084
|
return _t[e] || null;
|
4068
4085
|
}
|
4069
|
-
function
|
4086
|
+
function Cr(e) {
|
4070
4087
|
return e in _t;
|
4071
4088
|
}
|
4072
4089
|
function Ci(e, t) {
|
4073
|
-
if (!
|
4090
|
+
if (!Cr(e))
|
4074
4091
|
return null;
|
4075
4092
|
const r = Pi(e);
|
4076
4093
|
return Hi(r, t);
|
@@ -4078,61 +4095,61 @@ function Ci(e, t) {
|
|
4078
4095
|
function Fi(e) {
|
4079
4096
|
if (e == null)
|
4080
4097
|
return;
|
4081
|
-
const t =
|
4098
|
+
const t = Xe(e);
|
4082
4099
|
for (let r = 0; r < t.length; r++) {
|
4083
4100
|
const n = t[r];
|
4084
|
-
if (
|
4101
|
+
if (Cr(n))
|
4085
4102
|
return n;
|
4086
4103
|
}
|
4087
4104
|
}
|
4088
|
-
function
|
4089
|
-
delete
|
4105
|
+
function Fr(e, ...t) {
|
4106
|
+
delete Q[e], ye.update((r) => (r[e] = In.all([r[e] || {}, ...t]), r));
|
4090
4107
|
}
|
4091
|
-
|
4092
|
-
[
|
4108
|
+
ge(
|
4109
|
+
[ye],
|
4093
4110
|
([e]) => Object.keys(e)
|
4094
4111
|
);
|
4095
|
-
|
4112
|
+
ye.subscribe((e) => _t = e);
|
4096
4113
|
const Me = {};
|
4097
4114
|
function Bi(e, t) {
|
4098
4115
|
Me[e].delete(t), Me[e].size === 0 && delete Me[e];
|
4099
4116
|
}
|
4100
|
-
function
|
4117
|
+
function Br(e) {
|
4101
4118
|
return Me[e];
|
4102
4119
|
}
|
4103
|
-
function
|
4104
|
-
return
|
4105
|
-
const r =
|
4120
|
+
function Oi(e) {
|
4121
|
+
return Xe(e).map((t) => {
|
4122
|
+
const r = Br(t);
|
4106
4123
|
return [t, r ? [...r] : []];
|
4107
4124
|
}).filter(([, t]) => t.length > 0);
|
4108
4125
|
}
|
4109
|
-
function
|
4110
|
-
return e == null ? !1 :
|
4126
|
+
function gt(e) {
|
4127
|
+
return e == null ? !1 : Xe(e).some(
|
4111
4128
|
(t) => {
|
4112
4129
|
var r;
|
4113
|
-
return (r =
|
4130
|
+
return (r = Br(t)) == null ? void 0 : r.size;
|
4114
4131
|
}
|
4115
4132
|
);
|
4116
4133
|
}
|
4117
|
-
function
|
4134
|
+
function Ii(e, t) {
|
4118
4135
|
return Promise.all(
|
4119
4136
|
t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
|
4120
|
-
).then((n) =>
|
4137
|
+
).then((n) => Fr(e, ...n));
|
4121
4138
|
}
|
4122
|
-
const
|
4139
|
+
const _e = {};
|
4123
4140
|
function Or(e) {
|
4124
|
-
if (!
|
4125
|
-
return e in
|
4126
|
-
const t =
|
4127
|
-
return
|
4141
|
+
if (!gt(e))
|
4142
|
+
return e in _e ? _e[e] : Promise.resolve();
|
4143
|
+
const t = Oi(e);
|
4144
|
+
return _e[e] = Promise.all(
|
4128
4145
|
t.map(
|
4129
|
-
([r, n]) =>
|
4146
|
+
([r, n]) => Ii(r, n)
|
4130
4147
|
)
|
4131
4148
|
).then(() => {
|
4132
|
-
if (
|
4149
|
+
if (gt(e))
|
4133
4150
|
return Or(e);
|
4134
|
-
delete
|
4135
|
-
}),
|
4151
|
+
delete _e[e];
|
4152
|
+
}), _e[e];
|
4136
4153
|
}
|
4137
4154
|
const Li = {
|
4138
4155
|
number: {
|
@@ -4171,125 +4188,125 @@ const Li = {
|
|
4171
4188
|
handleMissingMessage: void 0,
|
4172
4189
|
ignoreTag: !0
|
4173
4190
|
}, Mi = Ni;
|
4174
|
-
function
|
4191
|
+
function be() {
|
4175
4192
|
return Mi;
|
4176
4193
|
}
|
4177
|
-
const
|
4178
|
-
var Ri = Object.defineProperty, Di = Object.defineProperties,
|
4194
|
+
const et = ke(!1);
|
4195
|
+
var Ri = Object.defineProperty, Di = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ki = (e, t) => {
|
4179
4196
|
for (var r in t || (t = {}))
|
4180
|
-
|
4197
|
+
Ui.call(t, r) && Vt(e, r, t[r]);
|
4181
4198
|
if (jt)
|
4182
4199
|
for (var r of jt(t))
|
4183
4200
|
Gi.call(t, r) && Vt(e, r, t[r]);
|
4184
4201
|
return e;
|
4185
|
-
}, ji = (e, t) => Di(e,
|
4186
|
-
let
|
4187
|
-
const
|
4202
|
+
}, ji = (e, t) => Di(e, $i(t));
|
4203
|
+
let yt;
|
4204
|
+
const $e = ke(null);
|
4188
4205
|
function Xt(e) {
|
4189
4206
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4190
4207
|
}
|
4191
|
-
function
|
4208
|
+
function Xe(e, t = be().fallbackLocale) {
|
4192
4209
|
const r = Xt(e);
|
4193
4210
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
4194
4211
|
}
|
4195
|
-
function
|
4196
|
-
return
|
4212
|
+
function ne() {
|
4213
|
+
return yt ?? void 0;
|
4197
4214
|
}
|
4198
|
-
|
4199
|
-
|
4215
|
+
$e.subscribe((e) => {
|
4216
|
+
yt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4200
4217
|
});
|
4201
4218
|
const Vi = (e) => {
|
4202
|
-
if (e && Fi(e) &&
|
4203
|
-
const { loadingDelay: t } =
|
4219
|
+
if (e && Fi(e) && gt(e)) {
|
4220
|
+
const { loadingDelay: t } = be();
|
4204
4221
|
let r;
|
4205
|
-
return typeof window < "u" &&
|
4206
|
-
() =>
|
4222
|
+
return typeof window < "u" && ne() != null && t ? r = window.setTimeout(
|
4223
|
+
() => et.set(!0),
|
4207
4224
|
t
|
4208
|
-
) :
|
4209
|
-
|
4225
|
+
) : et.set(!0), Or(e).then(() => {
|
4226
|
+
$e.set(e);
|
4210
4227
|
}).finally(() => {
|
4211
|
-
clearTimeout(r),
|
4228
|
+
clearTimeout(r), et.set(!1);
|
4212
4229
|
});
|
4213
4230
|
}
|
4214
|
-
return
|
4215
|
-
},
|
4231
|
+
return $e.set(e);
|
4232
|
+
}, re = ji(ki({}, $e), {
|
4216
4233
|
set: Vi
|
4217
|
-
}),
|
4234
|
+
}), We = (e) => {
|
4218
4235
|
const t = /* @__PURE__ */ Object.create(null);
|
4219
4236
|
return (n) => {
|
4220
4237
|
const i = JSON.stringify(n);
|
4221
4238
|
return i in t ? t[i] : t[i] = e(n);
|
4222
4239
|
};
|
4223
4240
|
};
|
4224
|
-
var Xi = Object.defineProperty, Ue = Object.getOwnPropertySymbols,
|
4241
|
+
var Xi = Object.defineProperty, Ue = Object.getOwnPropertySymbols, Ir = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? Xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
|
4225
4242
|
for (var r in t || (t = {}))
|
4226
|
-
|
4243
|
+
Ir.call(t, r) && Wt(e, r, t[r]);
|
4227
4244
|
if (Ue)
|
4228
4245
|
for (var r of Ue(t))
|
4229
|
-
|
4246
|
+
Lr.call(t, r) && Wt(e, r, t[r]);
|
4230
4247
|
return e;
|
4231
|
-
},
|
4248
|
+
}, ve = (e, t) => {
|
4232
4249
|
var r = {};
|
4233
4250
|
for (var n in e)
|
4234
|
-
|
4251
|
+
Ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4235
4252
|
if (e != null && Ue)
|
4236
4253
|
for (var n of Ue(e))
|
4237
|
-
t.indexOf(n) < 0 &&
|
4254
|
+
t.indexOf(n) < 0 && Lr.call(e, n) && (r[n] = e[n]);
|
4238
4255
|
return r;
|
4239
4256
|
};
|
4240
|
-
const
|
4241
|
-
const { formats: r } =
|
4257
|
+
const Te = (e, t) => {
|
4258
|
+
const { formats: r } = be();
|
4242
4259
|
if (e in r && t in r[e])
|
4243
4260
|
return r[e][t];
|
4244
4261
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4245
|
-
}, Wi =
|
4262
|
+
}, Wi = We(
|
4246
4263
|
(e) => {
|
4247
|
-
var t = e, { locale: r, format: n } = t, i =
|
4264
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
4248
4265
|
if (r == null)
|
4249
4266
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4250
|
-
return n && (i =
|
4267
|
+
return n && (i = Te("number", n)), new Intl.NumberFormat(r, i);
|
4251
4268
|
}
|
4252
|
-
), zi =
|
4269
|
+
), zi = We(
|
4253
4270
|
(e) => {
|
4254
|
-
var t = e, { locale: r, format: n } = t, i =
|
4271
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
4255
4272
|
if (r == null)
|
4256
4273
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4257
|
-
return n ? i =
|
4274
|
+
return n ? i = Te("date", n) : Object.keys(i).length === 0 && (i = Te("date", "short")), new Intl.DateTimeFormat(r, i);
|
4258
4275
|
}
|
4259
|
-
), Zi =
|
4276
|
+
), Zi = We(
|
4260
4277
|
(e) => {
|
4261
|
-
var t = e, { locale: r, format: n } = t, i =
|
4278
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
4262
4279
|
if (r == null)
|
4263
4280
|
throw new Error(
|
4264
4281
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4265
4282
|
);
|
4266
|
-
return n ? i =
|
4283
|
+
return n ? i = Te("time", n) : Object.keys(i).length === 0 && (i = Te("time", "short")), new Intl.DateTimeFormat(r, i);
|
4267
4284
|
}
|
4268
4285
|
), Ji = (e = {}) => {
|
4269
4286
|
var t = e, {
|
4270
|
-
locale: r =
|
4271
|
-
} = t, n =
|
4287
|
+
locale: r = ne()
|
4288
|
+
} = t, n = ve(t, [
|
4272
4289
|
"locale"
|
4273
4290
|
]);
|
4274
4291
|
return Wi(xt({ locale: r }, n));
|
4275
4292
|
}, Qi = (e = {}) => {
|
4276
4293
|
var t = e, {
|
4277
|
-
locale: r =
|
4278
|
-
} = t, n =
|
4294
|
+
locale: r = ne()
|
4295
|
+
} = t, n = ve(t, [
|
4279
4296
|
"locale"
|
4280
4297
|
]);
|
4281
4298
|
return zi(xt({ locale: r }, n));
|
4282
4299
|
}, qi = (e = {}) => {
|
4283
4300
|
var t = e, {
|
4284
|
-
locale: r =
|
4285
|
-
} = t, n =
|
4301
|
+
locale: r = ne()
|
4302
|
+
} = t, n = ve(t, [
|
4286
4303
|
"locale"
|
4287
4304
|
]);
|
4288
4305
|
return Zi(xt({ locale: r }, n));
|
4289
|
-
}, Yi =
|
4306
|
+
}, Yi = We(
|
4290
4307
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4291
|
-
(e, t =
|
4292
|
-
ignoreTag:
|
4308
|
+
(e, t = ne()) => new Ti(e, t, be().formats, {
|
4309
|
+
ignoreTag: be().ignoreTag
|
4293
4310
|
})
|
4294
4311
|
), Ki = (e, t = {}) => {
|
4295
4312
|
var r, n, i, o;
|
@@ -4297,40 +4314,40 @@ const Ae = (e, t) => {
|
|
4297
4314
|
typeof e == "object" && (s = e, e = s.id);
|
4298
4315
|
const {
|
4299
4316
|
values: a,
|
4300
|
-
locale: h =
|
4317
|
+
locale: h = ne(),
|
4301
4318
|
default: l
|
4302
4319
|
} = s;
|
4303
4320
|
if (h == null)
|
4304
4321
|
throw new Error(
|
4305
4322
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4306
4323
|
);
|
4307
|
-
let u =
|
4324
|
+
let u = Pr(e, h);
|
4308
4325
|
if (!u)
|
4309
|
-
u = (o = (i = (n = (r =
|
4326
|
+
u = (o = (i = (n = (r = be()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
4310
4327
|
else if (typeof u != "string")
|
4311
4328
|
return console.warn(
|
4312
4329
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
4313
4330
|
), u;
|
4314
4331
|
if (!a)
|
4315
4332
|
return u;
|
4316
|
-
let
|
4333
|
+
let p = u;
|
4317
4334
|
try {
|
4318
|
-
|
4319
|
-
} catch (
|
4320
|
-
|
4335
|
+
p = Yi(u, h).format(a);
|
4336
|
+
} catch (c) {
|
4337
|
+
c instanceof Error && console.warn(
|
4321
4338
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
4322
|
-
|
4339
|
+
c.message
|
4323
4340
|
);
|
4324
4341
|
}
|
4325
|
-
return
|
4326
|
-
}, eo = (e, t) => qi(t).format(e), to = (e, t) => Qi(t).format(e), ro = (e, t) => Ji(t).format(e), no = (e, t =
|
4327
|
-
|
4328
|
-
|
4329
|
-
|
4330
|
-
|
4331
|
-
window.emWidgets = { topic:
|
4342
|
+
return p;
|
4343
|
+
}, eo = (e, t) => qi(t).format(e), to = (e, t) => Qi(t).format(e), ro = (e, t) => Ji(t).format(e), no = (e, t = ne()) => Pr(e, t), io = ge([re, ye], () => Ki);
|
4344
|
+
ge([re], () => eo);
|
4345
|
+
ge([re], () => to);
|
4346
|
+
ge([re], () => ro);
|
4347
|
+
ge([re, ye], () => no);
|
4348
|
+
window.emWidgets = { topic: bn };
|
4332
4349
|
const oo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), so = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4333
|
-
function
|
4350
|
+
function Co(e, t) {
|
4334
4351
|
const r = window.navigator.userAgent;
|
4335
4352
|
return oo(r) ? t = e.filter((n) => {
|
4336
4353
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
@@ -4364,12 +4381,12 @@ function uo(e, t, r) {
|
|
4364
4381
|
}
|
4365
4382
|
}
|
4366
4383
|
function ho({ withLocale: e, translations: t }) {
|
4367
|
-
|
4368
|
-
r == null && (
|
4384
|
+
re.subscribe((r) => {
|
4385
|
+
r == null && (ye.set(t), re.set(e));
|
4369
4386
|
});
|
4370
4387
|
}
|
4371
4388
|
function zt(e, t) {
|
4372
|
-
|
4389
|
+
Fr(e, t);
|
4373
4390
|
}
|
4374
4391
|
const Zt = {
|
4375
4392
|
en: {
|
@@ -4482,7 +4499,7 @@ const Zt = {
|
|
4482
4499
|
}
|
4483
4500
|
};
|
4484
4501
|
function co(e) {
|
4485
|
-
$r(e, "svelte-
|
4502
|
+
$r(e, "svelte-15yj9h0", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:17}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
|
4486
4503
|
}
|
4487
4504
|
function Jt(e, t, r) {
|
4488
4505
|
const n = e.slice();
|
@@ -4492,45 +4509,45 @@ function fo(e) {
|
|
4492
4509
|
let t, r, n, i, o, s, a, h, l = (
|
4493
4510
|
/*$_*/
|
4494
4511
|
e[11]("filterby") + ""
|
4495
|
-
), u,
|
4512
|
+
), u, p, c, m, v = (
|
4496
4513
|
/*$_*/
|
4497
4514
|
e[11]("providers") + ""
|
4498
|
-
),
|
4515
|
+
), y, T, H, S, b, I, L, M, A, P, N, z, j, K = (
|
4499
4516
|
/*$_*/
|
4500
4517
|
e[11]("clear") + ""
|
4501
|
-
),
|
4502
|
-
function Pe(
|
4518
|
+
), ie, ee, oe, te, se, Ae;
|
4519
|
+
function Pe(d, B) {
|
4503
4520
|
return (
|
4504
4521
|
/*fullSelection*/
|
4505
|
-
|
4522
|
+
d[7] ? bo : mo
|
4506
4523
|
);
|
4507
4524
|
}
|
4508
|
-
let
|
4525
|
+
let ae = Pe(e), $ = ae(e), J = Ht(
|
4509
4526
|
/*vendorArray*/
|
4510
4527
|
e[5]
|
4511
|
-
),
|
4512
|
-
for (let
|
4513
|
-
|
4528
|
+
), f = [];
|
4529
|
+
for (let d = 0; d < J.length; d += 1)
|
4530
|
+
f[d] = Qt(Jt(e, J, d));
|
4514
4531
|
return {
|
4515
4532
|
c() {
|
4516
|
-
t = C("div"), r = C("div"), n = C("div"), i =
|
4517
|
-
for (let
|
4518
|
-
|
4519
|
-
|
4520
|
-
(e[4] ? "TriangleActive" : "")),
|
4521
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
4533
|
+
t = C("div"), r = C("div"), n = C("div"), i = xe("svg"), o = xe("path"), s = V(), a = C("div"), h = C("span"), u = U(l), p = V(), c = C("div"), m = C("span"), y = U(v), T = V(), $.c(), H = V(), S = C("span"), b = xe("svg"), I = xe("path"), A = V(), P = C("div"), N = C("ul");
|
4534
|
+
for (let d = 0; d < f.length; d += 1)
|
4535
|
+
f[d].c();
|
4536
|
+
z = V(), j = C("button"), ie = U(K), g(o, "id", "noun_filter_736223"), g(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), g(o, "transform", "translate(-5 -6.2)"), g(o, "fill", "#fff"), g(i, "xmlns", "http://www.w3.org/2000/svg"), g(i, "width", "16"), g(i, "height", "16"), g(i, "viewBox", "0 0 16 16"), g(h, "class", "FilterName"), g(c, "class", "FilterValueContainer"), g(a, "class", "FilterTextContainer"), g(n, "class", "FilterMainArea"), g(I, "id", "arrow"), g(I, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), g(I, "transform", "translate(-274.511 -441.088)"), g(I, "fill", "#d1d1d1"), g(b, "xmlns", "http://www.w3.org/2000/svg"), g(b, "width", "14"), g(b, "height", "6.835"), g(b, "viewBox", "0 0 14 6.835"), g(S, "class", L = "TriangleInactive " + /*isFilterActive*/
|
4537
|
+
(e[4] ? "TriangleActive" : "")), g(r, "class", M = "FilterSelector " + /*isFilterActive*/
|
4538
|
+
(e[4] ? "FilterSelectorOpen" : "")), g(N, "class", "FilterDropdown"), g(j, "class", "ClearFilters"), j.disabled = ee = /*fullSelection*/
|
4522
4539
|
e[7] && /*selectedVendorArray*/
|
4523
4540
|
e[6].length != /*vendorArray*/
|
4524
|
-
e[5].length,
|
4525
|
-
(e[4] ? "FilterOpen" : "")),
|
4541
|
+
e[5].length, g(P, "class", oe = "FilterDropdownContainer " + /*isFilterActive*/
|
4542
|
+
(e[4] ? "FilterOpen" : "")), g(t, "class", te = "FilterContainer " + /*addfilterselector*/
|
4526
4543
|
(e[0] == "true" && /*addsortingselector*/
|
4527
4544
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4528
4545
|
},
|
4529
|
-
m(
|
4530
|
-
W(
|
4531
|
-
for (let
|
4532
|
-
|
4533
|
-
|
4546
|
+
m(d, B) {
|
4547
|
+
W(d, t, B), _(t, r), _(r, n), _(n, i), _(i, o), _(n, s), _(n, a), _(a, h), _(h, u), _(a, p), _(a, c), _(c, m), _(m, y), _(c, T), $.m(c, null), _(r, H), _(r, S), _(S, b), _(b, I), _(t, A), _(t, P), _(P, N);
|
4548
|
+
for (let x = 0; x < f.length; x += 1)
|
4549
|
+
f[x] && f[x].m(N, null);
|
4550
|
+
_(P, z), _(P, j), _(j, ie), se || (Ae = [
|
4534
4551
|
Re(
|
4535
4552
|
r,
|
4536
4553
|
"click",
|
@@ -4538,52 +4555,52 @@ function fo(e) {
|
|
4538
4555
|
e[24]
|
4539
4556
|
),
|
4540
4557
|
Re(
|
4541
|
-
|
4558
|
+
j,
|
4542
4559
|
"click",
|
4543
4560
|
/*click_handler_2*/
|
4544
4561
|
e[27]
|
4545
4562
|
)
|
4546
|
-
],
|
4563
|
+
], se = !0);
|
4547
4564
|
},
|
4548
|
-
p(
|
4549
|
-
if (
|
4565
|
+
p(d, B) {
|
4566
|
+
if (B[0] & /*$_*/
|
4550
4567
|
2048 && l !== (l = /*$_*/
|
4551
|
-
|
4552
|
-
2048 &&
|
4553
|
-
|
4568
|
+
d[11]("filterby") + "") && q(u, l), B[0] & /*$_*/
|
4569
|
+
2048 && v !== (v = /*$_*/
|
4570
|
+
d[11]("providers") + "") && q(y, v), ae === (ae = Pe(d)) && $ ? $.p(d, B) : ($.d(1), $ = ae(d), $ && ($.c(), $.m(c, null))), B[0] & /*isFilterActive*/
|
4554
4571
|
16 && L !== (L = "TriangleInactive " + /*isFilterActive*/
|
4555
|
-
(
|
4556
|
-
16 &&
|
4557
|
-
(
|
4572
|
+
(d[4] ? "TriangleActive" : "")) && g(S, "class", L), B[0] & /*isFilterActive*/
|
4573
|
+
16 && M !== (M = "FilterSelector " + /*isFilterActive*/
|
4574
|
+
(d[4] ? "FilterSelectorOpen" : "")) && g(r, "class", M), B[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4558
4575
|
8228) {
|
4559
|
-
|
4576
|
+
J = Ht(
|
4560
4577
|
/*vendorArray*/
|
4561
|
-
|
4578
|
+
d[5]
|
4562
4579
|
);
|
4563
|
-
let
|
4564
|
-
for (
|
4565
|
-
const
|
4566
|
-
|
4580
|
+
let x;
|
4581
|
+
for (x = 0; x < J.length; x += 1) {
|
4582
|
+
const le = Jt(d, J, x);
|
4583
|
+
f[x] ? f[x].p(le, B) : (f[x] = Qt(le), f[x].c(), f[x].m(N, null));
|
4567
4584
|
}
|
4568
|
-
for (;
|
4569
|
-
|
4570
|
-
|
4585
|
+
for (; x < f.length; x += 1)
|
4586
|
+
f[x].d(1);
|
4587
|
+
f.length = J.length;
|
4571
4588
|
}
|
4572
|
-
|
4573
|
-
2048 &&
|
4574
|
-
|
4575
|
-
224 &&
|
4576
|
-
|
4577
|
-
|
4578
|
-
|
4579
|
-
16 &&
|
4580
|
-
(
|
4581
|
-
3 &&
|
4582
|
-
(
|
4583
|
-
|
4589
|
+
B[0] & /*$_*/
|
4590
|
+
2048 && K !== (K = /*$_*/
|
4591
|
+
d[11]("clear") + "") && q(ie, K), B[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4592
|
+
224 && ee !== (ee = /*fullSelection*/
|
4593
|
+
d[7] && /*selectedVendorArray*/
|
4594
|
+
d[6].length != /*vendorArray*/
|
4595
|
+
d[5].length) && (j.disabled = ee), B[0] & /*isFilterActive*/
|
4596
|
+
16 && oe !== (oe = "FilterDropdownContainer " + /*isFilterActive*/
|
4597
|
+
(d[4] ? "FilterOpen" : "")) && g(P, "class", oe), B[0] & /*addfilterselector, addsortingselector*/
|
4598
|
+
3 && te !== (te = "FilterContainer " + /*addfilterselector*/
|
4599
|
+
(d[0] == "true" && /*addsortingselector*/
|
4600
|
+
d[1] == "true" ? "FilerContainerSplit" : "")) && g(t, "class", te);
|
4584
4601
|
},
|
4585
|
-
d(
|
4586
|
-
|
4602
|
+
d(d) {
|
4603
|
+
d && k(t), $.d(), kr(f, d), se = !1, Y(Ae);
|
4587
4604
|
}
|
4588
4605
|
};
|
4589
4606
|
}
|
@@ -4594,18 +4611,18 @@ function po(e) {
|
|
4594
4611
|
), n;
|
4595
4612
|
return {
|
4596
4613
|
c() {
|
4597
|
-
t = C("p"), n =
|
4614
|
+
t = C("p"), n = U(r), g(t, "class", "SearchLoading");
|
4598
4615
|
},
|
4599
4616
|
m(i, o) {
|
4600
|
-
W(i, t, o),
|
4617
|
+
W(i, t, o), _(t, n);
|
4601
4618
|
},
|
4602
4619
|
p(i, o) {
|
4603
4620
|
o[0] & /*$_*/
|
4604
4621
|
2048 && r !== (r = /*$_*/
|
4605
|
-
i[11]("500") + "") &&
|
4622
|
+
i[11]("500") + "") && q(n, r);
|
4606
4623
|
},
|
4607
4624
|
d(i) {
|
4608
|
-
i &&
|
4625
|
+
i && k(t);
|
4609
4626
|
}
|
4610
4627
|
};
|
4611
4628
|
}
|
@@ -4613,24 +4630,24 @@ function mo(e) {
|
|
4613
4630
|
let t, r;
|
4614
4631
|
return {
|
4615
4632
|
c() {
|
4616
|
-
t = C("span"), r =
|
4633
|
+
t = C("span"), r = U(
|
4617
4634
|
/*selectionNumber*/
|
4618
4635
|
e[8]
|
4619
|
-
),
|
4636
|
+
), g(t, "class", "FilterCounter");
|
4620
4637
|
},
|
4621
4638
|
m(n, i) {
|
4622
|
-
W(n, t, i),
|
4639
|
+
W(n, t, i), _(t, r);
|
4623
4640
|
},
|
4624
4641
|
p(n, i) {
|
4625
4642
|
i[0] & /*selectionNumber*/
|
4626
|
-
256 &&
|
4643
|
+
256 && q(
|
4627
4644
|
r,
|
4628
4645
|
/*selectionNumber*/
|
4629
4646
|
n[8]
|
4630
4647
|
);
|
4631
4648
|
},
|
4632
4649
|
d(n) {
|
4633
|
-
n &&
|
4650
|
+
n && k(t);
|
4634
4651
|
}
|
4635
4652
|
};
|
4636
4653
|
}
|
@@ -4641,18 +4658,18 @@ function bo(e) {
|
|
4641
4658
|
), n;
|
4642
4659
|
return {
|
4643
4660
|
c() {
|
4644
|
-
t = C("span"), n =
|
4661
|
+
t = C("span"), n = U(r), g(t, "class", "FilterCounter");
|
4645
4662
|
},
|
4646
4663
|
m(i, o) {
|
4647
|
-
W(i, t, o),
|
4664
|
+
W(i, t, o), _(t, n);
|
4648
4665
|
},
|
4649
4666
|
p(i, o) {
|
4650
4667
|
o[0] & /*$_*/
|
4651
4668
|
2048 && r !== (r = /*$_*/
|
4652
|
-
i[11]("all") + "") &&
|
4669
|
+
i[11]("all") + "") && q(n, r);
|
4653
4670
|
},
|
4654
4671
|
d(i) {
|
4655
|
-
i &&
|
4672
|
+
i && k(t);
|
4656
4673
|
}
|
4657
4674
|
};
|
4658
4675
|
}
|
@@ -4660,8 +4677,8 @@ function go(e) {
|
|
4660
4677
|
let t, r;
|
4661
4678
|
return {
|
4662
4679
|
c() {
|
4663
|
-
t = C("
|
4664
|
-
e[37].logo) ||
|
4680
|
+
t = C("img"), wt(t.src, r = /*vendor*/
|
4681
|
+
e[37].logo) || g(t, "src", r), g(t, "alt", "vendor logo");
|
4665
4682
|
},
|
4666
4683
|
m(n, i) {
|
4667
4684
|
W(n, t, i);
|
@@ -4669,10 +4686,10 @@ function go(e) {
|
|
4669
4686
|
p(n, i) {
|
4670
4687
|
i[0] & /*vendorArray*/
|
4671
4688
|
32 && !wt(t.src, r = /*vendor*/
|
4672
|
-
n[37].logo) &&
|
4689
|
+
n[37].logo) && g(t, "src", r);
|
4673
4690
|
},
|
4674
4691
|
d(n) {
|
4675
|
-
n &&
|
4692
|
+
n && k(t);
|
4676
4693
|
}
|
4677
4694
|
};
|
4678
4695
|
}
|
@@ -4686,26 +4703,26 @@ function yo(e) {
|
|
4686
4703
|
), l, u;
|
4687
4704
|
return {
|
4688
4705
|
c() {
|
4689
|
-
t = C("div"), r = C("span"), i =
|
4706
|
+
t = C("div"), r = C("span"), i = U(n), o = V(), s = C("span"), a = U("("), l = U(h), u = U(")"), g(r, "class", "VendorName"), g(t, "class", "FilterItemLabel");
|
4690
4707
|
},
|
4691
|
-
m(
|
4692
|
-
W(
|
4708
|
+
m(p, c) {
|
4709
|
+
W(p, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, u);
|
4693
4710
|
},
|
4694
|
-
p(
|
4695
|
-
|
4711
|
+
p(p, c) {
|
4712
|
+
c[0] & /*vendorArray*/
|
4696
4713
|
32 && n !== (n = /*vendor*/
|
4697
|
-
|
4714
|
+
p[37].name + "") && q(i, n), c[0] & /*vendorArray*/
|
4698
4715
|
32 && h !== (h = /*vendor*/
|
4699
|
-
|
4716
|
+
p[37].games.total + "") && q(l, h);
|
4700
4717
|
},
|
4701
|
-
d(
|
4702
|
-
|
4718
|
+
d(p) {
|
4719
|
+
p && k(t);
|
4703
4720
|
}
|
4704
4721
|
};
|
4705
4722
|
}
|
4706
4723
|
function Qt(e) {
|
4707
|
-
let t, r, n, i, o, s, a, h, l, u,
|
4708
|
-
function
|
4724
|
+
let t, r, n, i, o, s, a, h, l, u, p, c;
|
4725
|
+
function m() {
|
4709
4726
|
e[25].call(
|
4710
4727
|
n,
|
4711
4728
|
/*each_value*/
|
@@ -4714,7 +4731,7 @@ function Qt(e) {
|
|
4714
4731
|
e[39]
|
4715
4732
|
);
|
4716
4733
|
}
|
4717
|
-
function
|
4734
|
+
function v() {
|
4718
4735
|
return (
|
4719
4736
|
/*click_handler_1*/
|
4720
4737
|
e[26](
|
@@ -4723,46 +4740,46 @@ function Qt(e) {
|
|
4723
4740
|
)
|
4724
4741
|
);
|
4725
4742
|
}
|
4726
|
-
function
|
4743
|
+
function y(S, b) {
|
4727
4744
|
if (
|
4728
4745
|
/*filterbylogo*/
|
4729
|
-
|
4746
|
+
S[2] === "false"
|
4730
4747
|
)
|
4731
4748
|
return yo;
|
4732
4749
|
if (
|
4733
4750
|
/*filterbylogo*/
|
4734
|
-
|
4751
|
+
S[2] === "true"
|
4735
4752
|
)
|
4736
4753
|
return go;
|
4737
4754
|
}
|
4738
|
-
let
|
4755
|
+
let T = y(e), H = T && T(e);
|
4739
4756
|
return {
|
4740
4757
|
c() {
|
4741
|
-
t = C("li"), r = C("label"), n = C("input"), o =
|
4742
|
-
e[37].name, St(n, n.__value),
|
4758
|
+
t = C("li"), r = C("label"), n = C("input"), o = V(), s = C("span"), a = V(), H && H.c(), h = V(), g(n, "type", "checkbox"), g(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
4759
|
+
e[37].name, St(n, n.__value), g(s, "class", "FiltersCheckmark"), g(r, "class", "FilterLabel"), g(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4743
4760
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = u = /*vendor*/
|
4744
4761
|
e[37].name;
|
4745
4762
|
},
|
4746
|
-
m(
|
4747
|
-
W(
|
4748
|
-
e[37].isFilterSelected,
|
4749
|
-
Re(n, "change",
|
4750
|
-
Re(n, "click",
|
4751
|
-
],
|
4763
|
+
m(S, b) {
|
4764
|
+
W(S, t, b), _(t, r), _(r, n), n.checked = /*vendor*/
|
4765
|
+
e[37].isFilterSelected, _(r, o), _(r, s), _(r, a), H && H.m(r, null), _(t, h), p || (c = [
|
4766
|
+
Re(n, "change", m),
|
4767
|
+
Re(n, "click", v)
|
4768
|
+
], p = !0);
|
4752
4769
|
},
|
4753
|
-
p(
|
4754
|
-
e =
|
4770
|
+
p(S, b) {
|
4771
|
+
e = S, b[0] & /*vendorArray*/
|
4755
4772
|
32 && i !== (i = /*vendor*/
|
4756
|
-
e[37].name) && (n.__value = i, St(n, n.__value)),
|
4773
|
+
e[37].name) && (n.__value = i, St(n, n.__value)), b[0] & /*vendorArray*/
|
4757
4774
|
32 && (n.checked = /*vendor*/
|
4758
|
-
e[37].isFilterSelected),
|
4775
|
+
e[37].isFilterSelected), T === (T = y(e)) && H ? H.p(e, b) : (H && H.d(1), H = T && T(e), H && (H.c(), H.m(r, null))), b[0] & /*filterbylogo*/
|
4759
4776
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4760
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
4777
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && g(t, "class", l), b[0] & /*vendorArray*/
|
4761
4778
|
32 && u !== (u = /*vendor*/
|
4762
4779
|
e[37].name) && (t.value = u);
|
4763
4780
|
},
|
4764
|
-
d(
|
4765
|
-
|
4781
|
+
d(S) {
|
4782
|
+
S && k(t), H && H.d(), p = !1, Y(c);
|
4766
4783
|
}
|
4767
4784
|
};
|
4768
4785
|
}
|
@@ -4789,104 +4806,104 @@ function vo(e) {
|
|
4789
4806
|
p(o, s) {
|
4790
4807
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
4791
4808
|
},
|
4792
|
-
i:
|
4793
|
-
o:
|
4809
|
+
i: G,
|
4810
|
+
o: G,
|
4794
4811
|
d(o) {
|
4795
|
-
o &&
|
4812
|
+
o && k(t), i && i.d(), e[28](null);
|
4796
4813
|
}
|
4797
4814
|
};
|
4798
4815
|
}
|
4799
4816
|
function _o(e, t, r) {
|
4800
4817
|
let n;
|
4801
|
-
|
4802
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector:
|
4818
|
+
Dr(e, io, (f) => r(11, n = f));
|
4819
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector: p = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: m = "false" } = t, { mbsource: v } = t, { usesinglevendorfilter: y = "false" } = t, T = !1, H = window.navigator.userAgent, S = [], b = [], I = {}, L = !1, M = 0, A = !0, P, N = !1;
|
4803
4820
|
ho({ withLocale: "en", translations: {} });
|
4804
4821
|
const z = () => {
|
4805
|
-
fetch(a).then((
|
4806
|
-
Object.keys(
|
4807
|
-
zt(
|
4822
|
+
fetch(a).then((d) => d.json()).then((d) => {
|
4823
|
+
Object.keys(d).forEach((B) => {
|
4824
|
+
zt(B, d[B]);
|
4808
4825
|
});
|
4809
|
-
}).catch((
|
4810
|
-
console.log(
|
4826
|
+
}).catch((d) => {
|
4827
|
+
console.log(d);
|
4811
4828
|
});
|
4812
4829
|
};
|
4813
|
-
Object.keys(Zt).forEach((
|
4814
|
-
zt(
|
4815
|
-
}),
|
4816
|
-
const
|
4817
|
-
r(4,
|
4818
|
-
},
|
4819
|
-
fetch(
|
4820
|
-
|
4821
|
-
let
|
4822
|
-
const
|
4823
|
-
|
4824
|
-
|
4825
|
-
}), r(5,
|
4826
|
-
}).catch((
|
4827
|
-
console.error(
|
4830
|
+
Object.keys(Zt).forEach((f) => {
|
4831
|
+
zt(f, Zt[f]);
|
4832
|
+
}), I[u] && (I = { [u]: [] });
|
4833
|
+
const j = () => {
|
4834
|
+
r(4, T = !T), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4835
|
+
}, K = (f) => (r(9, A = !0), new Promise((d, B) => {
|
4836
|
+
fetch(f).then((x) => x.json()).then((x) => {
|
4837
|
+
x = x.items, d(x.items), r(6, b = []);
|
4838
|
+
let le = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4839
|
+
const Mr = y === "true" ? "*" : u;
|
4840
|
+
x.forEach((Ce) => {
|
4841
|
+
le || (le = { currentCategoryId: [] }), le[Mr]?.indexOf(Ce.id) >= 0 ? (Ce.isFilterSelected = !0, b.push(Ce)) : Ce.isFilterSelected = !1;
|
4842
|
+
}), r(5, S = x), ee();
|
4843
|
+
}).catch((x) => {
|
4844
|
+
console.error(x), r(10, N = !0), B(x);
|
4828
4845
|
}).finally(() => {
|
4829
4846
|
r(9, A = !1);
|
4830
4847
|
});
|
4831
|
-
})),
|
4832
|
-
let
|
4833
|
-
|
4834
|
-
const
|
4835
|
-
|
4836
|
-
[
|
4837
|
-
})) : (
|
4838
|
-
},
|
4839
|
-
r(7, L =
|
4840
|
-
},
|
4841
|
-
if (
|
4848
|
+
})), ie = (f) => {
|
4849
|
+
let d = localStorage.getItem("vendorFiltersByCategory");
|
4850
|
+
f.isFilterSelected = !f.isFilterSelected, !b.length || b.filter((x) => x.name === f.name).length == 0 ? b.push(f) : r(6, b = b.filter((x) => x.name !== f.name));
|
4851
|
+
const B = y === "true" ? "*" : u;
|
4852
|
+
d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(I = {
|
4853
|
+
[B]: b.map((x) => x.id)
|
4854
|
+
})) : (d = JSON.parse(d), d[B] = b.map((x) => x.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), ee();
|
4855
|
+
}, ee = () => {
|
4856
|
+
r(7, L = b.length === S.length || b.length == 0), r(8, M = b.length);
|
4857
|
+
}, oe = () => {
|
4858
|
+
if (S.length && y === "true")
|
4842
4859
|
return;
|
4843
|
-
const
|
4844
|
-
r(4,
|
4845
|
-
},
|
4846
|
-
r(6,
|
4847
|
-
[
|
4848
|
-
})),
|
4849
|
-
},
|
4850
|
-
|
4860
|
+
const f = new URL(`${i}/v1/casino/vendors`);
|
4861
|
+
r(4, T = !1), f.searchParams.append("fields", "id,name,logo,subVendors,games"), f.searchParams.append("language", s), f.searchParams.append("datasource", o), f.searchParams.append("platform", so(H)), y === "true" || ((u.match(/\$/g) || []).length > 1 ? (f.searchParams.append("filter", `games(subGroups=${u})`), f.searchParams.append("subVendors", `games(subGroups=${u})`)) : f.searchParams.append("filter", `games(groups=${u})`)), K(f);
|
4862
|
+
}, te = () => {
|
4863
|
+
r(6, b = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(I = {
|
4864
|
+
[y === "true" ? "*" : u]: b.map((f) => f.id)
|
4865
|
+
})), S.forEach((f) => f.isFilterSelected = !1), r(5, S), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4, T = !1);
|
4866
|
+
}, se = (f) => {
|
4867
|
+
f.data.type == "SortingOpened" && r(4, T = !1);
|
4851
4868
|
};
|
4852
|
-
|
4853
|
-
window.
|
4869
|
+
Xr(() => (window.addEventListener("message", se, !1), () => {
|
4870
|
+
window.removeEventListener("message", se);
|
4854
4871
|
}));
|
4855
|
-
const
|
4856
|
-
function
|
4857
|
-
|
4872
|
+
const Ae = () => j();
|
4873
|
+
function Pe(f, d) {
|
4874
|
+
f[d].isFilterSelected = this.checked, r(5, S);
|
4858
4875
|
}
|
4859
|
-
const
|
4860
|
-
function
|
4861
|
-
|
4862
|
-
P =
|
4876
|
+
const ae = (f) => ie(f), $ = () => te();
|
4877
|
+
function J(f) {
|
4878
|
+
tt[f ? "unshift" : "push"](() => {
|
4879
|
+
P = f, r(3, P);
|
4863
4880
|
});
|
4864
4881
|
}
|
4865
|
-
return e.$$set = (
|
4866
|
-
"endpoint" in
|
4882
|
+
return e.$$set = (f) => {
|
4883
|
+
"endpoint" in f && r(15, i = f.endpoint), "datasource" in f && r(16, o = f.datasource), "lang" in f && r(17, s = f.lang), "translationurl" in f && r(18, a = f.translationurl), "clientstyling" in f && r(19, h = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, u = f.categoryid), "addfilterselector" in f && r(0, p = f.addfilterselector), "addsortingselector" in f && r(1, c = f.addsortingselector), "filterbylogo" in f && r(2, m = f.filterbylogo), "mbsource" in f && r(22, v = f.mbsource), "usesinglevendorfilter" in f && r(23, y = f.usesinglevendorfilter);
|
4867
4884
|
}, e.$$.update = () => {
|
4868
4885
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4869
|
-
2195460 && i && o && u &&
|
4886
|
+
2195460 && i && o && u && m && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4870
4887
|
524296 && h && P && ao(P, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4871
4888
|
1048584 && l && P && lo(P, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4872
|
-
4194312 && P && uo(P, `${
|
4889
|
+
4194312 && P && uo(P, `${v}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4873
4890
|
262144 && a && z();
|
4874
4891
|
}, [
|
4875
|
-
d,
|
4876
|
-
f,
|
4877
4892
|
p,
|
4893
|
+
c,
|
4894
|
+
m,
|
4878
4895
|
P,
|
4896
|
+
T,
|
4879
4897
|
S,
|
4880
|
-
|
4881
|
-
m,
|
4898
|
+
b,
|
4882
4899
|
L,
|
4883
|
-
|
4900
|
+
M,
|
4884
4901
|
A,
|
4885
4902
|
N,
|
4886
4903
|
n,
|
4887
|
-
|
4904
|
+
j,
|
4905
|
+
ie,
|
4888
4906
|
te,
|
4889
|
-
ae,
|
4890
4907
|
i,
|
4891
4908
|
o,
|
4892
4909
|
s,
|
@@ -4894,18 +4911,18 @@ function _o(e, t, r) {
|
|
4894
4911
|
h,
|
4895
4912
|
l,
|
4896
4913
|
u,
|
4897
|
-
|
4898
|
-
|
4914
|
+
v,
|
4915
|
+
y,
|
4916
|
+
Ae,
|
4899
4917
|
Pe,
|
4900
|
-
|
4918
|
+
ae,
|
4901
4919
|
$,
|
4902
|
-
|
4903
|
-
M
|
4920
|
+
J
|
4904
4921
|
];
|
4905
4922
|
}
|
4906
|
-
class
|
4923
|
+
class Nr extends en {
|
4907
4924
|
constructor(t) {
|
4908
|
-
super(),
|
4925
|
+
super(), Yr(
|
4909
4926
|
this,
|
4910
4927
|
t,
|
4911
4928
|
_o,
|
@@ -4933,122 +4950,121 @@ class Mr extends tn {
|
|
4933
4950
|
return this.$$.ctx[15];
|
4934
4951
|
}
|
4935
4952
|
set endpoint(t) {
|
4936
|
-
this.$$set({ endpoint: t }),
|
4953
|
+
this.$$set({ endpoint: t }), D();
|
4937
4954
|
}
|
4938
4955
|
get datasource() {
|
4939
4956
|
return this.$$.ctx[16];
|
4940
4957
|
}
|
4941
4958
|
set datasource(t) {
|
4942
|
-
this.$$set({ datasource: t }),
|
4959
|
+
this.$$set({ datasource: t }), D();
|
4943
4960
|
}
|
4944
4961
|
get lang() {
|
4945
4962
|
return this.$$.ctx[17];
|
4946
4963
|
}
|
4947
4964
|
set lang(t) {
|
4948
|
-
this.$$set({ lang: t }),
|
4965
|
+
this.$$set({ lang: t }), D();
|
4949
4966
|
}
|
4950
4967
|
get translationurl() {
|
4951
4968
|
return this.$$.ctx[18];
|
4952
4969
|
}
|
4953
4970
|
set translationurl(t) {
|
4954
|
-
this.$$set({ translationurl: t }),
|
4971
|
+
this.$$set({ translationurl: t }), D();
|
4955
4972
|
}
|
4956
4973
|
get clientstyling() {
|
4957
4974
|
return this.$$.ctx[19];
|
4958
4975
|
}
|
4959
4976
|
set clientstyling(t) {
|
4960
|
-
this.$$set({ clientstyling: t }),
|
4977
|
+
this.$$set({ clientstyling: t }), D();
|
4961
4978
|
}
|
4962
4979
|
get clientstylingurl() {
|
4963
4980
|
return this.$$.ctx[20];
|
4964
4981
|
}
|
4965
4982
|
set clientstylingurl(t) {
|
4966
|
-
this.$$set({ clientstylingurl: t }),
|
4983
|
+
this.$$set({ clientstylingurl: t }), D();
|
4967
4984
|
}
|
4968
4985
|
get categoryid() {
|
4969
4986
|
return this.$$.ctx[21];
|
4970
4987
|
}
|
4971
4988
|
set categoryid(t) {
|
4972
|
-
this.$$set({ categoryid: t }),
|
4989
|
+
this.$$set({ categoryid: t }), D();
|
4973
4990
|
}
|
4974
4991
|
get addfilterselector() {
|
4975
4992
|
return this.$$.ctx[0];
|
4976
4993
|
}
|
4977
4994
|
set addfilterselector(t) {
|
4978
|
-
this.$$set({ addfilterselector: t }),
|
4995
|
+
this.$$set({ addfilterselector: t }), D();
|
4979
4996
|
}
|
4980
4997
|
get addsortingselector() {
|
4981
4998
|
return this.$$.ctx[1];
|
4982
4999
|
}
|
4983
5000
|
set addsortingselector(t) {
|
4984
|
-
this.$$set({ addsortingselector: t }),
|
5001
|
+
this.$$set({ addsortingselector: t }), D();
|
4985
5002
|
}
|
4986
5003
|
get filterbylogo() {
|
4987
5004
|
return this.$$.ctx[2];
|
4988
5005
|
}
|
4989
5006
|
set filterbylogo(t) {
|
4990
|
-
this.$$set({ filterbylogo: t }),
|
5007
|
+
this.$$set({ filterbylogo: t }), D();
|
4991
5008
|
}
|
4992
5009
|
get mbsource() {
|
4993
5010
|
return this.$$.ctx[22];
|
4994
5011
|
}
|
4995
5012
|
set mbsource(t) {
|
4996
|
-
this.$$set({ mbsource: t }),
|
5013
|
+
this.$$set({ mbsource: t }), D();
|
4997
5014
|
}
|
4998
5015
|
get usesinglevendorfilter() {
|
4999
5016
|
return this.$$.ctx[23];
|
5000
5017
|
}
|
5001
5018
|
set usesinglevendorfilter(t) {
|
5002
|
-
this.$$set({ usesinglevendorfilter: t }),
|
5019
|
+
this.$$set({ usesinglevendorfilter: t }), D();
|
5003
5020
|
}
|
5004
5021
|
}
|
5005
|
-
|
5006
|
-
const
|
5022
|
+
Kr(Nr, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {}, usesinglevendorfilter: {} }, [], [], !0);
|
5023
|
+
const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5007
5024
|
__proto__: null,
|
5008
|
-
default:
|
5025
|
+
default: Nr
|
5009
5026
|
}, Symbol.toStringTag, { value: "Module" }));
|
5010
5027
|
export {
|
5011
|
-
|
5012
|
-
|
5013
|
-
|
5014
|
-
|
5015
|
-
|
5016
|
-
|
5017
|
-
|
5018
|
-
|
5019
|
-
|
5020
|
-
|
5021
|
-
|
5022
|
-
|
5023
|
-
|
5024
|
-
|
5025
|
-
|
5026
|
-
|
5027
|
-
|
5028
|
-
Br as a,
|
5028
|
+
re as $,
|
5029
|
+
Ho as A,
|
5030
|
+
xe as B,
|
5031
|
+
ao as C,
|
5032
|
+
lo as D,
|
5033
|
+
uo as E,
|
5034
|
+
Kr as F,
|
5035
|
+
io as G,
|
5036
|
+
So as H,
|
5037
|
+
To as I,
|
5038
|
+
Co as J,
|
5039
|
+
Po as K,
|
5040
|
+
Ao as L,
|
5041
|
+
ye as M,
|
5042
|
+
Fo as N,
|
5043
|
+
en as S,
|
5044
|
+
Fr as a,
|
5029
5045
|
$r as b,
|
5030
|
-
|
5031
|
-
|
5032
|
-
|
5033
|
-
|
5034
|
-
|
5035
|
-
|
5036
|
-
|
5037
|
-
|
5038
|
-
|
5039
|
-
|
5040
|
-
|
5041
|
-
|
5042
|
-
|
5043
|
-
|
5044
|
-
|
5045
|
-
|
5046
|
+
wt as c,
|
5047
|
+
k as d,
|
5048
|
+
Eo as e,
|
5049
|
+
D as f,
|
5050
|
+
q as g,
|
5051
|
+
g as h,
|
5052
|
+
Yr as i,
|
5053
|
+
W as j,
|
5054
|
+
_ as k,
|
5055
|
+
C as l,
|
5056
|
+
V as m,
|
5057
|
+
G as n,
|
5058
|
+
U as o,
|
5059
|
+
Dr as p,
|
5060
|
+
Xr as q,
|
5061
|
+
Re as r,
|
5046
5062
|
Yt as s,
|
5047
|
-
|
5048
|
-
|
5049
|
-
|
5050
|
-
|
5051
|
-
|
5052
|
-
|
5053
|
-
|
5063
|
+
wo as t,
|
5064
|
+
xo as u,
|
5065
|
+
oo as v,
|
5066
|
+
so as w,
|
5067
|
+
tt as x,
|
5068
|
+
Ht as y,
|
5069
|
+
kr as z
|
5054
5070
|
};
|