@everymatrix/casino-most-played-section 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoFilter-CJJQfG-H.cjs +5 -0
- package/components/{CasinoFilter-DFZ3WYCN.js → CasinoFilter-CcGaG3ex.js} +925 -883
- package/components/{CasinoFilter-BI27xzap.js → CasinoFilter-D9GxWv_2.js} +900 -858
- package/components/{CasinoGameThumbnail-SsDw02qF.cjs → CasinoGameThumbnail-B5F2b_gj.cjs} +16 -16
- package/components/{CasinoGameThumbnail-DalrsvwA.js → CasinoGameThumbnail-C_pO1yTw.js} +1384 -1373
- package/components/{CasinoGameThumbnail-B9ayiLVX.js → CasinoGameThumbnail-O5kps24w.js} +1221 -1242
- package/components/{CasinoGamesCategorySection-CX7b8KGX.js → CasinoGamesCategorySection-D45-SyaF.js} +1171 -1109
- package/components/{CasinoGamesCategorySection-CDCimaA-.js → CasinoGamesCategorySection-aoiRWaqn.js} +696 -634
- package/components/CasinoGamesCategorySection-gkpB3kQF.cjs +1 -0
- package/components/{CasinoMostPlayedSection-ChLe2LA-.js → CasinoMostPlayedSection-Bv9MrlaN.js} +17 -17
- package/components/{CasinoMostPlayedSection-CxjLLmgE.cjs → CasinoMostPlayedSection-C1RECc2M.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-D01DQAMD.js → CasinoMostPlayedSection-CccYQM4K.js} +22 -22
- package/components/CasinoSort-B6oacblG.js +428 -0
- package/components/CasinoSort-BpcWn3OF.cjs +1 -0
- package/components/CasinoSort-xzzdKSv3.js +427 -0
- 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/components/CasinoFilter-DsPFGyLq.cjs +0 -5
- package/components/CasinoGamesCategorySection-CaE16Il2.cjs +0 -1
- package/components/CasinoSort-CEbh5FL7.cjs +0 -1
- package/components/CasinoSort-DHs5pqaK.js +0 -432
- package/components/CasinoSort-Dhqq-EhY.js +0 -431
@@ -1,28 +1,28 @@
|
|
1
1
|
function G() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Jt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function _t() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function Y(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(Jt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function mt(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Qt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
let
|
19
|
-
function
|
20
|
-
return e === t ? !0 : (
|
18
|
+
let Ce;
|
19
|
+
function xt(e, t) {
|
20
|
+
return e === t ? !0 : (Ce || (Ce = document.createElement("a")), Ce.href = t, e === Ce.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Lr(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function qt(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -31,20 +31,20 @@ function Zt(e, ...t) {
|
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
35
|
-
e.$$.on_destroy.push(
|
34
|
+
function Nr(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(qt(t, r));
|
36
36
|
}
|
37
|
-
function
|
37
|
+
function _(e, t) {
|
38
38
|
e.appendChild(t);
|
39
39
|
}
|
40
|
-
function
|
41
|
-
const n =
|
40
|
+
function Mr(e, t, r) {
|
41
|
+
const n = Rr(e);
|
42
42
|
if (!n.getElementById(t)) {
|
43
|
-
const i =
|
44
|
-
i.id = t, i.textContent = r,
|
43
|
+
const i = C("style");
|
44
|
+
i.id = t, i.textContent = r, Dr(n, i);
|
45
45
|
}
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function Rr(e) {
|
48
48
|
if (!e) return document;
|
49
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
50
50
|
return t && /** @type {ShadowRoot} */
|
@@ -53,8 +53,8 @@ function Ir(e) {
|
|
53
53
|
t
|
54
54
|
) : e.ownerDocument;
|
55
55
|
}
|
56
|
-
function
|
57
|
-
return
|
56
|
+
function Dr(e, t) {
|
57
|
+
return _(
|
58
58
|
/** @type {Document} */
|
59
59
|
e.head || e,
|
60
60
|
t
|
@@ -66,49 +66,49 @@ function X(e, t, r) {
|
|
66
66
|
function k(e) {
|
67
67
|
e.parentNode && e.parentNode.removeChild(e);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Ur(e, t) {
|
70
70
|
for (let r = 0; r < e.length; r += 1)
|
71
71
|
e[r] && e[r].d(t);
|
72
72
|
}
|
73
|
-
function
|
73
|
+
function C(e) {
|
74
74
|
return document.createElement(e);
|
75
75
|
}
|
76
76
|
function Ee(e) {
|
77
77
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
78
78
|
}
|
79
|
-
function
|
79
|
+
function $(e) {
|
80
80
|
return document.createTextNode(e);
|
81
81
|
}
|
82
82
|
function V() {
|
83
|
-
return
|
83
|
+
return $(" ");
|
84
84
|
}
|
85
|
-
function
|
86
|
-
return
|
85
|
+
function yo() {
|
86
|
+
return $("");
|
87
87
|
}
|
88
88
|
function Re(e, t, r, n) {
|
89
89
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function b(e, t, r) {
|
92
92
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
93
93
|
}
|
94
|
-
function
|
94
|
+
function vo(e, t, r) {
|
95
95
|
const n = t.toLowerCase();
|
96
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
96
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : b(e, t, r);
|
97
97
|
}
|
98
|
-
function
|
98
|
+
function $r(e) {
|
99
99
|
return Array.from(e.childNodes);
|
100
100
|
}
|
101
101
|
function q(e, t) {
|
102
102
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
103
103
|
t);
|
104
104
|
}
|
105
|
-
function
|
105
|
+
function Et(e, t) {
|
106
106
|
e.value = t ?? "";
|
107
107
|
}
|
108
|
-
function
|
108
|
+
function _o(e, t, r) {
|
109
109
|
e.classList.toggle(t, !!r);
|
110
110
|
}
|
111
|
-
class
|
111
|
+
class xo {
|
112
112
|
/**
|
113
113
|
* @private
|
114
114
|
* @default false
|
@@ -142,7 +142,7 @@ class mo {
|
|
142
142
|
this.e || (this.is_svg ? this.e = Ee(
|
143
143
|
/** @type {keyof SVGElementTagNameMap} */
|
144
144
|
r.nodeName
|
145
|
-
) : this.e =
|
145
|
+
) : this.e = C(
|
146
146
|
/** @type {keyof HTMLElementTagNameMap} */
|
147
147
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
148
148
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
@@ -178,7 +178,7 @@ class mo {
|
|
178
178
|
this.n.forEach(k);
|
179
179
|
}
|
180
180
|
}
|
181
|
-
function
|
181
|
+
function Gr(e) {
|
182
182
|
const t = {};
|
183
183
|
return e.childNodes.forEach(
|
184
184
|
/** @param {Element} node */
|
@@ -191,24 +191,24 @@ let Se;
|
|
191
191
|
function we(e) {
|
192
192
|
Se = e;
|
193
193
|
}
|
194
|
-
function
|
194
|
+
function kr() {
|
195
195
|
if (!Se) throw new Error("Function called outside component initialization");
|
196
196
|
return Se;
|
197
197
|
}
|
198
|
-
function
|
199
|
-
|
198
|
+
function jr(e) {
|
199
|
+
kr().$$.on_mount.push(e);
|
200
200
|
}
|
201
|
-
const ce = [],
|
201
|
+
const ce = [], Ke = [];
|
202
202
|
let fe = [];
|
203
|
-
const
|
204
|
-
let
|
205
|
-
function
|
206
|
-
|
203
|
+
const wt = [], Yt = /* @__PURE__ */ Promise.resolve();
|
204
|
+
let et = !1;
|
205
|
+
function Kt() {
|
206
|
+
et || (et = !0, Yt.then(D));
|
207
207
|
}
|
208
|
-
function
|
209
|
-
return
|
208
|
+
function Eo() {
|
209
|
+
return Kt(), Yt;
|
210
210
|
}
|
211
|
-
function
|
211
|
+
function tt(e) {
|
212
212
|
fe.push(e);
|
213
213
|
}
|
214
214
|
const Xe = /* @__PURE__ */ new Set();
|
@@ -221,83 +221,83 @@ function D() {
|
|
221
221
|
try {
|
222
222
|
for (; ue < ce.length; ) {
|
223
223
|
const t = ce[ue];
|
224
|
-
ue++, we(t),
|
224
|
+
ue++, we(t), Vr(t.$$);
|
225
225
|
}
|
226
226
|
} catch (t) {
|
227
227
|
throw ce.length = 0, ue = 0, t;
|
228
228
|
}
|
229
|
-
for (we(null), ce.length = 0, ue = 0;
|
229
|
+
for (we(null), ce.length = 0, ue = 0; Ke.length; ) Ke.pop()();
|
230
230
|
for (let t = 0; t < fe.length; t += 1) {
|
231
231
|
const r = fe[t];
|
232
232
|
Xe.has(r) || (Xe.add(r), r());
|
233
233
|
}
|
234
234
|
fe.length = 0;
|
235
235
|
} while (ce.length);
|
236
|
-
for (;
|
237
|
-
|
238
|
-
|
236
|
+
for (; wt.length; )
|
237
|
+
wt.pop()();
|
238
|
+
et = !1, Xe.clear(), we(e);
|
239
239
|
}
|
240
|
-
function
|
240
|
+
function Vr(e) {
|
241
241
|
if (e.fragment !== null) {
|
242
242
|
e.update(), Y(e.before_update);
|
243
243
|
const t = e.dirty;
|
244
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
244
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tt);
|
245
245
|
}
|
246
246
|
}
|
247
|
-
function
|
247
|
+
function Xr(e) {
|
248
248
|
const t = [], r = [];
|
249
249
|
fe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), fe = t;
|
250
250
|
}
|
251
|
-
const
|
252
|
-
function
|
253
|
-
e && e.i && (
|
251
|
+
const Wr = /* @__PURE__ */ new Set();
|
252
|
+
function er(e, t) {
|
253
|
+
e && e.i && (Wr.delete(e), e.i(t));
|
254
254
|
}
|
255
|
-
function
|
255
|
+
function St(e) {
|
256
256
|
return e?.length !== void 0 ? e : Array.from(e);
|
257
257
|
}
|
258
|
-
function
|
258
|
+
function wo(e, t) {
|
259
259
|
e.d(1), t.delete(e.key);
|
260
260
|
}
|
261
|
-
function
|
262
|
-
let c = e.length, m = o.length,
|
263
|
-
const
|
264
|
-
for (;
|
265
|
-
const
|
266
|
-
for (
|
267
|
-
const
|
268
|
-
let
|
269
|
-
|
261
|
+
function So(e, t, r, n, i, o, s, a, h, l, u, d) {
|
262
|
+
let c = e.length, m = o.length, y = c;
|
263
|
+
const g = {};
|
264
|
+
for (; y--; ) g[e[y].key] = y;
|
265
|
+
const F = [], w = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), x = [];
|
266
|
+
for (y = m; y--; ) {
|
267
|
+
const S = d(i, o, y), I = r(S);
|
268
|
+
let L = s.get(I);
|
269
|
+
L ? x.push(() => L.p(S, t)) : (L = l(I, S), L.c()), w.set(I, F[y] = L), I in g && v.set(I, Math.abs(y - g[I]));
|
270
270
|
}
|
271
|
-
const
|
272
|
-
function
|
273
|
-
|
271
|
+
const O = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
|
272
|
+
function M(S) {
|
273
|
+
er(S, 1), S.m(a, u), s.set(S.key, S), u = S.first, m--;
|
274
274
|
}
|
275
275
|
for (; c && m; ) {
|
276
|
-
const
|
277
|
-
|
276
|
+
const S = F[m - 1], I = e[c - 1], L = S.key, W = I.key;
|
277
|
+
S === I ? (u = S.first, c--, m--) : w.has(W) ? !s.has(L) || O.has(L) ? M(S) : N.has(W) ? c-- : v.get(L) > v.get(W) ? (N.add(L), M(S)) : (O.add(W), c--) : (h(I, s), c--);
|
278
278
|
}
|
279
279
|
for (; c--; ) {
|
280
|
-
const
|
281
|
-
|
280
|
+
const S = e[c];
|
281
|
+
w.has(S.key) || h(S, s);
|
282
282
|
}
|
283
|
-
for (; m; )
|
284
|
-
return Y(
|
283
|
+
for (; m; ) M(F[m - 1]);
|
284
|
+
return Y(x), F;
|
285
285
|
}
|
286
|
-
function
|
286
|
+
function zr(e, t, r) {
|
287
287
|
const { fragment: n, after_update: i } = e.$$;
|
288
|
-
n && n.m(t, r),
|
289
|
-
const o = e.$$.on_mount.map(
|
288
|
+
n && n.m(t, r), tt(() => {
|
289
|
+
const o = e.$$.on_mount.map(Jt).filter(mt);
|
290
290
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
|
291
|
-
}), i.forEach(
|
291
|
+
}), i.forEach(tt);
|
292
292
|
}
|
293
|
-
function
|
293
|
+
function Zr(e, t) {
|
294
294
|
const r = e.$$;
|
295
|
-
r.fragment !== null && (
|
295
|
+
r.fragment !== null && (Xr(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
296
296
|
}
|
297
|
-
function
|
298
|
-
e.$$.dirty[0] === -1 && (ce.push(e),
|
297
|
+
function Jr(e, t) {
|
298
|
+
e.$$.dirty[0] === -1 && (ce.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
299
299
|
}
|
300
|
-
function
|
300
|
+
function Qr(e, t, r, n, i, o, s = null, a = [-1]) {
|
301
301
|
const h = Se;
|
302
302
|
we(e);
|
303
303
|
const l = e.$$ = {
|
@@ -307,7 +307,7 @@ function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
307
307
|
props: o,
|
308
308
|
update: G,
|
309
309
|
not_equal: i,
|
310
|
-
bound:
|
310
|
+
bound: _t(),
|
311
311
|
// lifecycle
|
312
312
|
on_mount: [],
|
313
313
|
on_destroy: [],
|
@@ -316,28 +316,28 @@ function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
316
316
|
after_update: [],
|
317
317
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
318
318
|
// everything else
|
319
|
-
callbacks:
|
319
|
+
callbacks: _t(),
|
320
320
|
dirty: a,
|
321
321
|
skip_bound: !1,
|
322
322
|
root: t.target || h.$$.root
|
323
323
|
};
|
324
324
|
s && s(l.root);
|
325
325
|
let u = !1;
|
326
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
327
|
-
const
|
328
|
-
return l.ctx && i(l.ctx[
|
326
|
+
if (l.ctx = r ? r(e, t.props || {}, (d, c, ...m) => {
|
327
|
+
const y = m.length ? m[0] : c;
|
328
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = y) && (!l.skip_bound && l.bound[d] && l.bound[d](y), u && Jr(e, d)), c;
|
329
329
|
}) : [], l.update(), u = !0, Y(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
330
330
|
if (t.hydrate) {
|
331
|
-
const
|
332
|
-
l.fragment && l.fragment.l(
|
331
|
+
const d = $r(t.target);
|
332
|
+
l.fragment && l.fragment.l(d), d.forEach(k);
|
333
333
|
} else
|
334
334
|
l.fragment && l.fragment.c();
|
335
|
-
t.intro &&
|
335
|
+
t.intro && er(e.$$.fragment), zr(e, t.target, t.anchor), D();
|
336
336
|
}
|
337
337
|
we(h);
|
338
338
|
}
|
339
|
-
let
|
340
|
-
typeof HTMLElement == "function" && (
|
339
|
+
let tr;
|
340
|
+
typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
341
341
|
/** The Svelte component constructor */
|
342
342
|
$$ctor;
|
343
343
|
/** Slots */
|
@@ -379,7 +379,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
379
379
|
let o;
|
380
380
|
return {
|
381
381
|
c: function() {
|
382
|
-
o =
|
382
|
+
o = C("slot"), i !== "default" && b(o, "name", i);
|
383
383
|
},
|
384
384
|
/**
|
385
385
|
* @param {HTMLElement} target
|
@@ -396,12 +396,12 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
396
396
|
};
|
397
397
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
398
398
|
return;
|
399
|
-
const t = {}, r =
|
399
|
+
const t = {}, r = Gr(this);
|
400
400
|
for (const i of this.$$s)
|
401
401
|
i in r && (t[i] = [e(i)]);
|
402
402
|
for (const i of this.attributes) {
|
403
403
|
const o = this.$$g_p(i.name);
|
404
|
-
o in this.$$d || (this.$$d[o] =
|
404
|
+
o in this.$$d || (this.$$d[o] = Oe(o, i.value, this.$$p_d, "toProp"));
|
405
405
|
}
|
406
406
|
for (const i in this.$$p_d)
|
407
407
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -419,7 +419,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
419
419
|
this.$$r = !0;
|
420
420
|
for (const i in this.$$p_d)
|
421
421
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
422
|
-
const o =
|
422
|
+
const o = Oe(
|
423
423
|
i,
|
424
424
|
this.$$d[i],
|
425
425
|
this.$$p_d,
|
@@ -441,7 +441,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
441
441
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
442
442
|
// and setting attributes through setAttribute etc, this is helpful
|
443
443
|
attributeChangedCallback(e, t, r) {
|
444
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
444
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Oe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
445
445
|
}
|
446
446
|
disconnectedCallback() {
|
447
447
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -454,7 +454,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
454
454
|
) || e;
|
455
455
|
}
|
456
456
|
});
|
457
|
-
function
|
457
|
+
function Oe(e, t, r, n) {
|
458
458
|
const i = r[e]?.type;
|
459
459
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
460
460
|
return t;
|
@@ -483,8 +483,8 @@ function Ie(e, t, r, n) {
|
|
483
483
|
return t;
|
484
484
|
}
|
485
485
|
}
|
486
|
-
function
|
487
|
-
let s = class extends
|
486
|
+
function qr(e, t, r, n, i, o) {
|
487
|
+
let s = class extends tr {
|
488
488
|
constructor() {
|
489
489
|
super(e, r, i), this.$$p_d = t;
|
490
490
|
}
|
@@ -500,7 +500,7 @@ function zr(e, t, r, n, i, o) {
|
|
500
500
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
501
501
|
},
|
502
502
|
set(h) {
|
503
|
-
h =
|
503
|
+
h = Oe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
504
504
|
}
|
505
505
|
});
|
506
506
|
}), n.forEach((a) => {
|
@@ -512,7 +512,7 @@ function zr(e, t, r, n, i, o) {
|
|
512
512
|
}), e.element = /** @type {any} */
|
513
513
|
s, s;
|
514
514
|
}
|
515
|
-
class
|
515
|
+
class Yr {
|
516
516
|
/**
|
517
517
|
* ### PRIVATE API
|
518
518
|
*
|
@@ -531,7 +531,7 @@ class Zr {
|
|
531
531
|
$$set = void 0;
|
532
532
|
/** @returns {void} */
|
533
533
|
$destroy() {
|
534
|
-
|
534
|
+
Zr(this, 1), this.$destroy = G;
|
535
535
|
}
|
536
536
|
/**
|
537
537
|
* @template {Extract<keyof Events, string>} K
|
@@ -540,7 +540,7 @@ class Zr {
|
|
540
540
|
* @returns {() => void}
|
541
541
|
*/
|
542
542
|
$on(t, r) {
|
543
|
-
if (!
|
543
|
+
if (!mt(r))
|
544
544
|
return G;
|
545
545
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
546
546
|
return n.push(r), () => {
|
@@ -553,37 +553,37 @@ class Zr {
|
|
553
553
|
* @returns {void}
|
554
554
|
*/
|
555
555
|
$set(t) {
|
556
|
-
this.$$set && !
|
556
|
+
this.$$set && !Lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
557
557
|
}
|
558
558
|
}
|
559
|
-
const
|
560
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
561
|
-
var
|
562
|
-
return
|
559
|
+
const Kr = "4";
|
560
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kr);
|
561
|
+
var rt = function(e, t) {
|
562
|
+
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
563
563
|
r.__proto__ = n;
|
564
564
|
} || function(r, n) {
|
565
565
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
566
|
-
},
|
566
|
+
}, rt(e, t);
|
567
567
|
};
|
568
568
|
function Z(e, t) {
|
569
569
|
if (typeof t != "function" && t !== null)
|
570
570
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
571
|
-
|
571
|
+
rt(e, t);
|
572
572
|
function r() {
|
573
573
|
this.constructor = e;
|
574
574
|
}
|
575
575
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
576
576
|
}
|
577
|
-
var
|
578
|
-
return
|
577
|
+
var H = function() {
|
578
|
+
return H = Object.assign || function(t) {
|
579
579
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
580
580
|
r = arguments[n];
|
581
581
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
582
582
|
}
|
583
583
|
return t;
|
584
|
-
},
|
584
|
+
}, H.apply(this, arguments);
|
585
585
|
};
|
586
|
-
function
|
586
|
+
function en(e, t) {
|
587
587
|
var r = {};
|
588
588
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
589
589
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -591,7 +591,7 @@ function Qr(e, t) {
|
|
591
591
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
592
592
|
return r;
|
593
593
|
}
|
594
|
-
function
|
594
|
+
function nt(e) {
|
595
595
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
596
596
|
if (r) return r.call(e);
|
597
597
|
if (e && typeof e.length == "number") return {
|
@@ -601,7 +601,7 @@ function rt(e) {
|
|
601
601
|
};
|
602
602
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
603
603
|
}
|
604
|
-
function
|
604
|
+
function it(e, t) {
|
605
605
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
606
606
|
if (!r) return e;
|
607
607
|
var n = r.call(e), i, o = [], s;
|
@@ -618,7 +618,7 @@ function nt(e, t) {
|
|
618
618
|
}
|
619
619
|
return o;
|
620
620
|
}
|
621
|
-
function
|
621
|
+
function de(e, t, r) {
|
622
622
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
623
623
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
624
624
|
return e.concat(o || Array.prototype.slice.call(t));
|
@@ -626,13 +626,13 @@ function pe(e, t, r) {
|
|
626
626
|
function z(e) {
|
627
627
|
return typeof e == "function";
|
628
628
|
}
|
629
|
-
function
|
629
|
+
function rr(e) {
|
630
630
|
var t = function(n) {
|
631
631
|
Error.call(n), n.stack = new Error().stack;
|
632
632
|
}, r = e(t);
|
633
633
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
634
634
|
}
|
635
|
-
var We =
|
635
|
+
var We = rr(function(e) {
|
636
636
|
return function(r) {
|
637
637
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
638
638
|
` + r.map(function(n, i) {
|
@@ -641,13 +641,13 @@ var We = Kt(function(e) {
|
|
641
641
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
642
642
|
};
|
643
643
|
});
|
644
|
-
function
|
644
|
+
function ot(e, t) {
|
645
645
|
if (e) {
|
646
646
|
var r = e.indexOf(t);
|
647
647
|
0 <= r && e.splice(r, 1);
|
648
648
|
}
|
649
649
|
}
|
650
|
-
var
|
650
|
+
var $e = function() {
|
651
651
|
function e(t) {
|
652
652
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
653
653
|
}
|
@@ -659,12 +659,12 @@ var Ue = function() {
|
|
659
659
|
if (s)
|
660
660
|
if (this._parentage = null, Array.isArray(s))
|
661
661
|
try {
|
662
|
-
for (var a =
|
662
|
+
for (var a = nt(s), h = a.next(); !h.done; h = a.next()) {
|
663
663
|
var l = h.value;
|
664
664
|
l.remove(this);
|
665
665
|
}
|
666
|
-
} catch (
|
667
|
-
t = { error:
|
666
|
+
} catch (g) {
|
667
|
+
t = { error: g };
|
668
668
|
} finally {
|
669
669
|
try {
|
670
670
|
h && !h.done && (r = a.return) && r.call(a);
|
@@ -678,23 +678,23 @@ var Ue = function() {
|
|
678
678
|
if (z(u))
|
679
679
|
try {
|
680
680
|
u();
|
681
|
-
} catch (
|
682
|
-
o =
|
681
|
+
} catch (g) {
|
682
|
+
o = g instanceof We ? g.errors : [g];
|
683
683
|
}
|
684
|
-
var
|
685
|
-
if (
|
684
|
+
var d = this._finalizers;
|
685
|
+
if (d) {
|
686
686
|
this._finalizers = null;
|
687
687
|
try {
|
688
|
-
for (var c =
|
689
|
-
var
|
688
|
+
for (var c = nt(d), m = c.next(); !m.done; m = c.next()) {
|
689
|
+
var y = m.value;
|
690
690
|
try {
|
691
|
-
|
692
|
-
} catch (
|
693
|
-
o = o ?? [],
|
691
|
+
Tt(y);
|
692
|
+
} catch (g) {
|
693
|
+
o = o ?? [], g instanceof We ? o = de(de([], it(o)), it(g.errors)) : o.push(g);
|
694
694
|
}
|
695
695
|
}
|
696
|
-
} catch (
|
697
|
-
n = { error:
|
696
|
+
} catch (g) {
|
697
|
+
n = { error: g };
|
698
698
|
} finally {
|
699
699
|
try {
|
700
700
|
m && !m.done && (i = c.return) && i.call(c);
|
@@ -710,7 +710,7 @@ var Ue = function() {
|
|
710
710
|
var r;
|
711
711
|
if (t && t !== this)
|
712
712
|
if (this.closed)
|
713
|
-
|
713
|
+
Tt(t);
|
714
714
|
else {
|
715
715
|
if (t instanceof e) {
|
716
716
|
if (t.closed || t._hasParent(this))
|
@@ -727,52 +727,56 @@ var Ue = function() {
|
|
727
727
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
728
728
|
}, e.prototype._removeParent = function(t) {
|
729
729
|
var r = this._parentage;
|
730
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
730
|
+
r === t ? this._parentage = null : Array.isArray(r) && ot(r, t);
|
731
731
|
}, e.prototype.remove = function(t) {
|
732
732
|
var r = this._finalizers;
|
733
|
-
r &&
|
733
|
+
r && ot(r, t), t instanceof e && t._removeParent(this);
|
734
734
|
}, e.EMPTY = function() {
|
735
735
|
var t = new e();
|
736
736
|
return t.closed = !0, t;
|
737
737
|
}(), e;
|
738
|
-
}(),
|
739
|
-
function
|
740
|
-
return e instanceof
|
738
|
+
}(), nr = $e.EMPTY;
|
739
|
+
function ir(e) {
|
740
|
+
return e instanceof $e || e && "closed" in e && z(e.remove) && z(e.add) && z(e.unsubscribe);
|
741
741
|
}
|
742
|
-
function
|
742
|
+
function Tt(e) {
|
743
743
|
z(e) ? e() : e.unsubscribe();
|
744
744
|
}
|
745
|
-
var
|
746
|
-
|
747
|
-
|
745
|
+
var or = {
|
746
|
+
onUnhandledError: null,
|
747
|
+
onStoppedNotification: null,
|
748
|
+
Promise: void 0,
|
749
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
750
|
+
useDeprecatedNextContext: !1
|
751
|
+
}, tn = {
|
748
752
|
setTimeout: function(e, t) {
|
749
753
|
for (var r = [], n = 2; n < arguments.length; n++)
|
750
754
|
r[n - 2] = arguments[n];
|
751
|
-
return setTimeout.apply(void 0,
|
755
|
+
return setTimeout.apply(void 0, de([e, t], it(r)));
|
752
756
|
},
|
753
757
|
clearTimeout: function(e) {
|
754
758
|
return clearTimeout(e);
|
755
759
|
},
|
756
760
|
delegate: void 0
|
757
761
|
};
|
758
|
-
function
|
759
|
-
|
762
|
+
function rn(e) {
|
763
|
+
tn.setTimeout(function() {
|
760
764
|
throw e;
|
761
765
|
});
|
762
766
|
}
|
763
|
-
function
|
767
|
+
function Ht() {
|
764
768
|
}
|
765
769
|
function Le(e) {
|
766
770
|
e();
|
767
771
|
}
|
768
|
-
var
|
772
|
+
var sr = function(e) {
|
769
773
|
Z(t, e);
|
770
774
|
function t(r) {
|
771
775
|
var n = e.call(this) || this;
|
772
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
776
|
+
return n.isStopped = !1, r ? (n.destination = r, ir(r) && r.add(n)) : n.destination = an, n;
|
773
777
|
}
|
774
778
|
return t.create = function(r, n, i) {
|
775
|
-
return new
|
779
|
+
return new st(r, n, i);
|
776
780
|
}, t.prototype.next = function(r) {
|
777
781
|
this.isStopped || this._next(r);
|
778
782
|
}, t.prototype.error = function(r) {
|
@@ -796,7 +800,11 @@ var rr = function(e) {
|
|
796
800
|
this.unsubscribe();
|
797
801
|
}
|
798
802
|
}, t;
|
799
|
-
}(
|
803
|
+
}($e), nn = Function.prototype.bind;
|
804
|
+
function ze(e, t) {
|
805
|
+
return nn.call(e, t);
|
806
|
+
}
|
807
|
+
var on = function() {
|
800
808
|
function e(t) {
|
801
809
|
this.partialObserver = t;
|
802
810
|
}
|
@@ -827,43 +835,55 @@ var rr = function(e) {
|
|
827
835
|
Be(r);
|
828
836
|
}
|
829
837
|
}, e;
|
830
|
-
}(),
|
838
|
+
}(), st = function(e) {
|
831
839
|
Z(t, e);
|
832
840
|
function t(r, n, i) {
|
833
841
|
var o = e.call(this) || this, s;
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
842
|
+
if (z(r) || !r)
|
843
|
+
s = {
|
844
|
+
next: r ?? void 0,
|
845
|
+
error: n ?? void 0,
|
846
|
+
complete: i ?? void 0
|
847
|
+
};
|
848
|
+
else {
|
849
|
+
var a;
|
850
|
+
o && or.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
851
|
+
return o.unsubscribe();
|
852
|
+
}, s = {
|
853
|
+
next: r.next && ze(r.next, a),
|
854
|
+
error: r.error && ze(r.error, a),
|
855
|
+
complete: r.complete && ze(r.complete, a)
|
856
|
+
}) : s = r;
|
857
|
+
}
|
858
|
+
return o.destination = new on(s), o;
|
839
859
|
}
|
840
860
|
return t;
|
841
|
-
}(
|
861
|
+
}(sr);
|
842
862
|
function Be(e) {
|
843
|
-
|
863
|
+
rn(e);
|
844
864
|
}
|
845
|
-
function
|
865
|
+
function sn(e) {
|
846
866
|
throw e;
|
847
867
|
}
|
848
|
-
var
|
868
|
+
var an = {
|
849
869
|
closed: !0,
|
850
|
-
next:
|
851
|
-
error:
|
852
|
-
complete:
|
853
|
-
},
|
870
|
+
next: Ht,
|
871
|
+
error: sn,
|
872
|
+
complete: Ht
|
873
|
+
}, ln = function() {
|
854
874
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
855
875
|
}();
|
856
|
-
function
|
876
|
+
function un(e) {
|
857
877
|
return e;
|
858
878
|
}
|
859
|
-
function
|
860
|
-
return e.length === 0 ?
|
879
|
+
function hn(e) {
|
880
|
+
return e.length === 0 ? un : e.length === 1 ? e[0] : function(r) {
|
861
881
|
return e.reduce(function(n, i) {
|
862
882
|
return i(n);
|
863
883
|
}, r);
|
864
884
|
};
|
865
885
|
}
|
866
|
-
var
|
886
|
+
var At = function() {
|
867
887
|
function e(t) {
|
868
888
|
t && (this._subscribe = t);
|
869
889
|
}
|
@@ -871,7 +891,7 @@ var St = function() {
|
|
871
891
|
var r = new e();
|
872
892
|
return r.source = this, r.operator = t, r;
|
873
893
|
}, e.prototype.subscribe = function(t, r, n) {
|
874
|
-
var i = this, o =
|
894
|
+
var i = this, o = fn(t) ? t : new st(t, r, n);
|
875
895
|
return Le(function() {
|
876
896
|
var s = i, a = s.operator, h = s.source;
|
877
897
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
@@ -884,8 +904,8 @@ var St = function() {
|
|
884
904
|
}
|
885
905
|
}, e.prototype.forEach = function(t, r) {
|
886
906
|
var n = this;
|
887
|
-
return r =
|
888
|
-
var s = new
|
907
|
+
return r = Pt(r), new r(function(i, o) {
|
908
|
+
var s = new st({
|
889
909
|
next: function(a) {
|
890
910
|
try {
|
891
911
|
t(a);
|
@@ -901,15 +921,15 @@ var St = function() {
|
|
901
921
|
}, e.prototype._subscribe = function(t) {
|
902
922
|
var r;
|
903
923
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
904
|
-
}, e.prototype[
|
924
|
+
}, e.prototype[ln] = function() {
|
905
925
|
return this;
|
906
926
|
}, e.prototype.pipe = function() {
|
907
927
|
for (var t = [], r = 0; r < arguments.length; r++)
|
908
928
|
t[r] = arguments[r];
|
909
|
-
return
|
929
|
+
return hn(t)(this);
|
910
930
|
}, e.prototype.toPromise = function(t) {
|
911
931
|
var r = this;
|
912
|
-
return t =
|
932
|
+
return t = Pt(t), new t(function(n, i) {
|
913
933
|
var o;
|
914
934
|
r.subscribe(function(s) {
|
915
935
|
return o = s;
|
@@ -923,32 +943,32 @@ var St = function() {
|
|
923
943
|
return new e(t);
|
924
944
|
}, e;
|
925
945
|
}();
|
926
|
-
function
|
946
|
+
function Pt(e) {
|
927
947
|
var t;
|
928
|
-
return (t = e ??
|
948
|
+
return (t = e ?? or.Promise) !== null && t !== void 0 ? t : Promise;
|
929
949
|
}
|
930
|
-
function
|
950
|
+
function cn(e) {
|
931
951
|
return e && z(e.next) && z(e.error) && z(e.complete);
|
932
952
|
}
|
933
|
-
function
|
934
|
-
return e && e instanceof
|
953
|
+
function fn(e) {
|
954
|
+
return e && e instanceof sr || cn(e) && ir(e);
|
935
955
|
}
|
936
|
-
var
|
956
|
+
var dn = rr(function(e) {
|
937
957
|
return function() {
|
938
958
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
939
959
|
};
|
940
|
-
}),
|
960
|
+
}), ar = function(e) {
|
941
961
|
Z(t, e);
|
942
962
|
function t() {
|
943
963
|
var r = e.call(this) || this;
|
944
964
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
945
965
|
}
|
946
966
|
return t.prototype.lift = function(r) {
|
947
|
-
var n = new
|
967
|
+
var n = new Ft(this, this);
|
948
968
|
return n.operator = r, n;
|
949
969
|
}, t.prototype._throwIfClosed = function() {
|
950
970
|
if (this.closed)
|
951
|
-
throw new
|
971
|
+
throw new dn();
|
952
972
|
}, t.prototype.next = function(r) {
|
953
973
|
var n = this;
|
954
974
|
Le(function() {
|
@@ -956,7 +976,7 @@ var un = Kt(function(e) {
|
|
956
976
|
if (n._throwIfClosed(), !n.isStopped) {
|
957
977
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
958
978
|
try {
|
959
|
-
for (var s =
|
979
|
+
for (var s = nt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
960
980
|
var h = a.value;
|
961
981
|
h.next(r);
|
962
982
|
}
|
@@ -1004,19 +1024,19 @@ var un = Kt(function(e) {
|
|
1004
1024
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
1005
1025
|
}, t.prototype._innerSubscribe = function(r) {
|
1006
1026
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
1007
|
-
return o || s ?
|
1008
|
-
n.currentObservers = null,
|
1027
|
+
return o || s ? nr : (this.currentObservers = null, a.push(r), new $e(function() {
|
1028
|
+
n.currentObservers = null, ot(a, r);
|
1009
1029
|
}));
|
1010
1030
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
1011
1031
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
1012
1032
|
i ? r.error(o) : s && r.complete();
|
1013
1033
|
}, t.prototype.asObservable = function() {
|
1014
|
-
var r = new
|
1034
|
+
var r = new At();
|
1015
1035
|
return r.source = this, r;
|
1016
1036
|
}, t.create = function(r, n) {
|
1017
|
-
return new
|
1037
|
+
return new Ft(r, n);
|
1018
1038
|
}, t;
|
1019
|
-
}(
|
1039
|
+
}(At), Ft = function(e) {
|
1020
1040
|
Z(t, e);
|
1021
1041
|
function t(r, n) {
|
1022
1042
|
var i = e.call(this) || this;
|
@@ -1033,17 +1053,17 @@ var un = Kt(function(e) {
|
|
1033
1053
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
1034
1054
|
}, t.prototype._subscribe = function(r) {
|
1035
1055
|
var n, i;
|
1036
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1056
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : nr;
|
1037
1057
|
}, t;
|
1038
|
-
}(
|
1058
|
+
}(ar), lr = {
|
1039
1059
|
now: function() {
|
1040
|
-
return (
|
1060
|
+
return (lr.delegate || Date).now();
|
1041
1061
|
},
|
1042
1062
|
delegate: void 0
|
1043
|
-
},
|
1063
|
+
}, pn = function(e) {
|
1044
1064
|
Z(t, e);
|
1045
1065
|
function t(r, n, i) {
|
1046
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1066
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = lr);
|
1047
1067
|
var o = e.call(this) || this;
|
1048
1068
|
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;
|
1049
1069
|
}
|
@@ -1063,15 +1083,15 @@ var un = Kt(function(e) {
|
|
1063
1083
|
l && o.splice(0, l + 1);
|
1064
1084
|
}
|
1065
1085
|
}, t;
|
1066
|
-
}(
|
1067
|
-
const
|
1068
|
-
if (
|
1069
|
-
const r = new
|
1070
|
-
|
1086
|
+
}(ar);
|
1087
|
+
const Ct = [], Bt = {}, mn = (e, t = 0) => {
|
1088
|
+
if (Ct.indexOf(e) == -1) {
|
1089
|
+
const r = new pn(t);
|
1090
|
+
Bt[e] = r, Ct.push(e);
|
1071
1091
|
}
|
1072
|
-
return
|
1092
|
+
return Bt[e];
|
1073
1093
|
}, he = [];
|
1074
|
-
function
|
1094
|
+
function bn(e, t) {
|
1075
1095
|
return {
|
1076
1096
|
subscribe: Ge(e, t).subscribe
|
1077
1097
|
};
|
@@ -1080,7 +1100,7 @@ function Ge(e, t = G) {
|
|
1080
1100
|
let r;
|
1081
1101
|
const n = /* @__PURE__ */ new Set();
|
1082
1102
|
function i(a) {
|
1083
|
-
if (
|
1103
|
+
if (Qt(e, a) && (e = a, r)) {
|
1084
1104
|
const h = !he.length;
|
1085
1105
|
for (const l of n)
|
1086
1106
|
l[1](), he.push(l, e);
|
@@ -1102,163 +1122,165 @@ function Ge(e, t = G) {
|
|
1102
1122
|
}
|
1103
1123
|
return { set: i, update: o, subscribe: s };
|
1104
1124
|
}
|
1105
|
-
function
|
1125
|
+
function ye(e, t, r) {
|
1106
1126
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1107
1127
|
if (!i.every(Boolean))
|
1108
1128
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1109
1129
|
const o = t.length < 2;
|
1110
|
-
return
|
1130
|
+
return bn(r, (s, a) => {
|
1111
1131
|
let h = !1;
|
1112
1132
|
const l = [];
|
1113
|
-
let u = 0,
|
1133
|
+
let u = 0, d = G;
|
1114
1134
|
const c = () => {
|
1115
1135
|
if (u)
|
1116
1136
|
return;
|
1117
|
-
|
1118
|
-
const
|
1119
|
-
o ? s(
|
1137
|
+
d();
|
1138
|
+
const y = t(n ? l[0] : l, s, a);
|
1139
|
+
o ? s(y) : d = mt(y) ? y : G;
|
1120
1140
|
}, m = i.map(
|
1121
|
-
(
|
1122
|
-
|
1123
|
-
(
|
1124
|
-
l[
|
1141
|
+
(y, g) => qt(
|
1142
|
+
y,
|
1143
|
+
(F) => {
|
1144
|
+
l[g] = F, u &= ~(1 << g), h && c();
|
1125
1145
|
},
|
1126
1146
|
() => {
|
1127
|
-
u |= 1 <<
|
1147
|
+
u |= 1 << g;
|
1128
1148
|
}
|
1129
1149
|
)
|
1130
1150
|
);
|
1131
1151
|
return h = !0, c(), function() {
|
1132
|
-
Y(m),
|
1152
|
+
Y(m), d(), h = !1;
|
1133
1153
|
};
|
1134
1154
|
});
|
1135
1155
|
}
|
1136
|
-
function
|
1156
|
+
function gn(e) {
|
1137
1157
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1138
1158
|
}
|
1139
|
-
var
|
1140
|
-
return
|
1159
|
+
var yn = function(t) {
|
1160
|
+
return vn(t) && !_n(t);
|
1141
1161
|
};
|
1142
|
-
function
|
1162
|
+
function vn(e) {
|
1143
1163
|
return !!e && typeof e == "object";
|
1144
1164
|
}
|
1145
|
-
function
|
1165
|
+
function _n(e) {
|
1146
1166
|
var t = Object.prototype.toString.call(e);
|
1147
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1167
|
+
return t === "[object RegExp]" || t === "[object Date]" || wn(e);
|
1148
1168
|
}
|
1149
|
-
var
|
1150
|
-
function
|
1151
|
-
return e.$$typeof ===
|
1169
|
+
var xn = typeof Symbol == "function" && Symbol.for, En = xn ? Symbol.for("react.element") : 60103;
|
1170
|
+
function wn(e) {
|
1171
|
+
return e.$$typeof === En;
|
1152
1172
|
}
|
1153
|
-
function
|
1173
|
+
function Sn(e) {
|
1154
1174
|
return Array.isArray(e) ? [] : {};
|
1155
1175
|
}
|
1156
1176
|
function Te(e, t) {
|
1157
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
1177
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? pe(Sn(e), e, t) : e;
|
1158
1178
|
}
|
1159
|
-
function
|
1179
|
+
function Tn(e, t, r) {
|
1160
1180
|
return e.concat(t).map(function(n) {
|
1161
1181
|
return Te(n, r);
|
1162
1182
|
});
|
1163
1183
|
}
|
1164
|
-
function
|
1184
|
+
function Hn(e, t) {
|
1165
1185
|
if (!t.customMerge)
|
1166
|
-
return
|
1186
|
+
return pe;
|
1167
1187
|
var r = t.customMerge(e);
|
1168
|
-
return typeof r == "function" ? r :
|
1188
|
+
return typeof r == "function" ? r : pe;
|
1169
1189
|
}
|
1170
|
-
function
|
1190
|
+
function An(e) {
|
1171
1191
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1172
1192
|
return Object.propertyIsEnumerable.call(e, t);
|
1173
1193
|
}) : [];
|
1174
1194
|
}
|
1175
|
-
function
|
1176
|
-
return Object.keys(e).concat(
|
1195
|
+
function It(e) {
|
1196
|
+
return Object.keys(e).concat(An(e));
|
1177
1197
|
}
|
1178
|
-
function
|
1198
|
+
function ur(e, t) {
|
1179
1199
|
try {
|
1180
1200
|
return t in e;
|
1181
1201
|
} catch {
|
1182
1202
|
return !1;
|
1183
1203
|
}
|
1184
1204
|
}
|
1185
|
-
function
|
1186
|
-
return
|
1205
|
+
function Pn(e, t) {
|
1206
|
+
return ur(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1187
1207
|
}
|
1188
|
-
function
|
1208
|
+
function Fn(e, t, r) {
|
1189
1209
|
var n = {};
|
1190
|
-
return r.isMergeableObject(e) &&
|
1210
|
+
return r.isMergeableObject(e) && It(e).forEach(function(i) {
|
1191
1211
|
n[i] = Te(e[i], r);
|
1192
|
-
}),
|
1193
|
-
|
1212
|
+
}), It(t).forEach(function(i) {
|
1213
|
+
Pn(e, i) || (ur(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = Te(t[i], r));
|
1194
1214
|
}), n;
|
1195
1215
|
}
|
1196
|
-
function
|
1197
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1216
|
+
function pe(e, t, r) {
|
1217
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tn, r.isMergeableObject = r.isMergeableObject || yn, r.cloneUnlessOtherwiseSpecified = Te;
|
1198
1218
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1199
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
1219
|
+
return o ? n ? r.arrayMerge(e, t, r) : Fn(e, t, r) : Te(t, r);
|
1200
1220
|
}
|
1201
|
-
|
1221
|
+
pe.all = function(t, r) {
|
1202
1222
|
if (!Array.isArray(t))
|
1203
1223
|
throw new Error("first argument should be an array");
|
1204
1224
|
return t.reduce(function(n, i) {
|
1205
|
-
return
|
1225
|
+
return pe(n, i, r);
|
1206
1226
|
}, {});
|
1207
1227
|
};
|
1208
|
-
var
|
1209
|
-
const
|
1210
|
-
function
|
1211
|
-
var r = t && t.cache ? t.cache :
|
1228
|
+
var Cn = pe, Bn = Cn;
|
1229
|
+
const In = /* @__PURE__ */ gn(Bn);
|
1230
|
+
function Ze(e, t) {
|
1231
|
+
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : Ln;
|
1212
1232
|
return i(e, {
|
1213
1233
|
cache: r,
|
1214
1234
|
serializer: n
|
1215
1235
|
});
|
1216
1236
|
}
|
1217
|
-
function
|
1237
|
+
function On(e) {
|
1218
1238
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1219
1239
|
}
|
1220
|
-
function
|
1221
|
-
var i =
|
1240
|
+
function hr(e, t, r, n) {
|
1241
|
+
var i = On(n) ? n : r(n), o = t.get(i);
|
1222
1242
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
1223
1243
|
}
|
1224
|
-
function
|
1244
|
+
function cr(e, t, r) {
|
1225
1245
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
1226
1246
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
1227
1247
|
}
|
1228
|
-
function
|
1248
|
+
function bt(e, t, r, n, i) {
|
1229
1249
|
return r.bind(t, e, n, i);
|
1230
1250
|
}
|
1231
|
-
function
|
1232
|
-
var r = e.length === 1 ?
|
1233
|
-
return
|
1251
|
+
function Ln(e, t) {
|
1252
|
+
var r = e.length === 1 ? hr : cr;
|
1253
|
+
return bt(e, this, r, t.cache.create(), t.serializer);
|
1254
|
+
}
|
1255
|
+
function Nn(e, t) {
|
1256
|
+
return bt(e, this, cr, t.cache.create(), t.serializer);
|
1234
1257
|
}
|
1235
|
-
function
|
1236
|
-
return
|
1258
|
+
function Mn(e, t) {
|
1259
|
+
return bt(e, this, hr, t.cache.create(), t.serializer);
|
1237
1260
|
}
|
1238
|
-
var
|
1261
|
+
var Rn = function() {
|
1239
1262
|
return JSON.stringify(arguments);
|
1240
|
-
}
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
}()
|
1252
|
-
), Nn = {
|
1263
|
+
};
|
1264
|
+
function gt() {
|
1265
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1266
|
+
}
|
1267
|
+
gt.prototype.get = function(e) {
|
1268
|
+
return this.cache[e];
|
1269
|
+
};
|
1270
|
+
gt.prototype.set = function(e, t) {
|
1271
|
+
this.cache[e] = t;
|
1272
|
+
};
|
1273
|
+
var Dn = {
|
1253
1274
|
create: function() {
|
1254
|
-
return new
|
1275
|
+
return new gt();
|
1255
1276
|
}
|
1256
|
-
},
|
1257
|
-
variadic:
|
1258
|
-
|
1277
|
+
}, Je = {
|
1278
|
+
variadic: Nn,
|
1279
|
+
monadic: Mn
|
1280
|
+
}, E;
|
1259
1281
|
(function(e) {
|
1260
1282
|
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";
|
1261
|
-
})(
|
1283
|
+
})(E || (E = {}));
|
1262
1284
|
var B;
|
1263
1285
|
(function(e) {
|
1264
1286
|
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";
|
@@ -1267,43 +1289,43 @@ var me;
|
|
1267
1289
|
(function(e) {
|
1268
1290
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1269
1291
|
})(me || (me = {}));
|
1270
|
-
function
|
1292
|
+
function Ot(e) {
|
1271
1293
|
return e.type === B.literal;
|
1272
1294
|
}
|
1273
|
-
function
|
1295
|
+
function Un(e) {
|
1274
1296
|
return e.type === B.argument;
|
1275
1297
|
}
|
1276
|
-
function
|
1298
|
+
function fr(e) {
|
1277
1299
|
return e.type === B.number;
|
1278
1300
|
}
|
1279
|
-
function
|
1301
|
+
function dr(e) {
|
1280
1302
|
return e.type === B.date;
|
1281
1303
|
}
|
1282
|
-
function
|
1304
|
+
function pr(e) {
|
1283
1305
|
return e.type === B.time;
|
1284
1306
|
}
|
1285
|
-
function
|
1307
|
+
function mr(e) {
|
1286
1308
|
return e.type === B.select;
|
1287
1309
|
}
|
1288
|
-
function
|
1310
|
+
function br(e) {
|
1289
1311
|
return e.type === B.plural;
|
1290
1312
|
}
|
1291
|
-
function
|
1313
|
+
function $n(e) {
|
1292
1314
|
return e.type === B.pound;
|
1293
1315
|
}
|
1294
|
-
function
|
1316
|
+
function gr(e) {
|
1295
1317
|
return e.type === B.tag;
|
1296
1318
|
}
|
1297
|
-
function
|
1319
|
+
function yr(e) {
|
1298
1320
|
return !!(e && typeof e == "object" && e.type === me.number);
|
1299
1321
|
}
|
1300
|
-
function
|
1322
|
+
function at(e) {
|
1301
1323
|
return !!(e && typeof e == "object" && e.type === me.dateTime);
|
1302
1324
|
}
|
1303
|
-
var
|
1304
|
-
function
|
1325
|
+
var vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gn = /(?:[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;
|
1326
|
+
function kn(e) {
|
1305
1327
|
var t = {};
|
1306
|
-
return e.replace(
|
1328
|
+
return e.replace(Gn, function(r) {
|
1307
1329
|
var n = r.length;
|
1308
1330
|
switch (r[0]) {
|
1309
1331
|
case "G":
|
@@ -1392,36 +1414,36 @@ function Dn(e) {
|
|
1392
1414
|
return "";
|
1393
1415
|
}), t;
|
1394
1416
|
}
|
1395
|
-
var
|
1396
|
-
function
|
1417
|
+
var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1418
|
+
function Vn(e) {
|
1397
1419
|
if (e.length === 0)
|
1398
1420
|
throw new Error("Number skeleton cannot be empty");
|
1399
|
-
for (var t = e.split(
|
1421
|
+
for (var t = e.split(jn).filter(function(c) {
|
1400
1422
|
return c.length > 0;
|
1401
1423
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1402
1424
|
var o = i[n], s = o.split("/");
|
1403
1425
|
if (s.length === 0)
|
1404
1426
|
throw new Error("Invalid number skeleton");
|
1405
1427
|
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
1406
|
-
var
|
1407
|
-
if (
|
1428
|
+
var d = u[l];
|
1429
|
+
if (d.length === 0)
|
1408
1430
|
throw new Error("Invalid number skeleton");
|
1409
1431
|
}
|
1410
1432
|
r.push({ stem: a, options: h });
|
1411
1433
|
}
|
1412
1434
|
return r;
|
1413
1435
|
}
|
1414
|
-
function
|
1436
|
+
function Xn(e) {
|
1415
1437
|
return e.replace(/^(.*?)-/, "");
|
1416
1438
|
}
|
1417
|
-
var
|
1418
|
-
function
|
1439
|
+
var Lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _r = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, xr = /^(0+)$/;
|
1440
|
+
function Nt(e) {
|
1419
1441
|
var t = {};
|
1420
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1442
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_r, function(r, n, i) {
|
1421
1443
|
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)), "";
|
1422
1444
|
}), t;
|
1423
1445
|
}
|
1424
|
-
function
|
1446
|
+
function Er(e) {
|
1425
1447
|
switch (e) {
|
1426
1448
|
case "sign-auto":
|
1427
1449
|
return {
|
@@ -1461,7 +1483,7 @@ function vr(e) {
|
|
1461
1483
|
};
|
1462
1484
|
}
|
1463
1485
|
}
|
1464
|
-
function
|
1486
|
+
function zn(e) {
|
1465
1487
|
var t;
|
1466
1488
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1467
1489
|
notation: "engineering"
|
@@ -1469,17 +1491,17 @@ function Vn(e) {
|
|
1469
1491
|
notation: "scientific"
|
1470
1492
|
}, e = e.slice(1)), t) {
|
1471
1493
|
var r = e.slice(0, 2);
|
1472
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1494
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xr.test(e))
|
1473
1495
|
throw new Error("Malformed concise eng/scientific notation");
|
1474
1496
|
t.minimumIntegerDigits = e.length;
|
1475
1497
|
}
|
1476
1498
|
return t;
|
1477
1499
|
}
|
1478
|
-
function
|
1479
|
-
var t = {}, r =
|
1500
|
+
function Mt(e) {
|
1501
|
+
var t = {}, r = Er(e);
|
1480
1502
|
return r || t;
|
1481
1503
|
}
|
1482
|
-
function
|
1504
|
+
function Zn(e) {
|
1483
1505
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1484
1506
|
var i = n[r];
|
1485
1507
|
switch (i.stem) {
|
@@ -1503,7 +1525,7 @@ function Xn(e) {
|
|
1503
1525
|
continue;
|
1504
1526
|
case "measure-unit":
|
1505
1527
|
case "unit":
|
1506
|
-
t.style = "unit", t.unit =
|
1528
|
+
t.style = "unit", t.unit = Xn(i.options[0]);
|
1507
1529
|
continue;
|
1508
1530
|
case "compact-short":
|
1509
1531
|
case "K":
|
@@ -1514,13 +1536,13 @@ function Xn(e) {
|
|
1514
1536
|
t.notation = "compact", t.compactDisplay = "long";
|
1515
1537
|
continue;
|
1516
1538
|
case "scientific":
|
1517
|
-
t =
|
1518
|
-
return
|
1539
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1540
|
+
return H(H({}, h), Mt(l));
|
1519
1541
|
}, {}));
|
1520
1542
|
continue;
|
1521
1543
|
case "engineering":
|
1522
|
-
t =
|
1523
|
-
return
|
1544
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1545
|
+
return H(H({}, h), Mt(l));
|
1524
1546
|
}, {}));
|
1525
1547
|
continue;
|
1526
1548
|
case "notation-simple":
|
@@ -1565,11 +1587,11 @@ function Xn(e) {
|
|
1565
1587
|
case "integer-width":
|
1566
1588
|
if (i.options.length > 1)
|
1567
1589
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1568
|
-
i.options[0].replace(
|
1590
|
+
i.options[0].replace(Wn, function(h, l, u, d, c, m) {
|
1569
1591
|
if (l)
|
1570
1592
|
t.minimumIntegerDigits = u.length;
|
1571
1593
|
else {
|
1572
|
-
if (
|
1594
|
+
if (d && c)
|
1573
1595
|
throw new Error("We currently do not support maximum integer digits");
|
1574
1596
|
if (m)
|
1575
1597
|
throw new Error("We currently do not support exact integer digits");
|
@@ -1578,32 +1600,32 @@ function Xn(e) {
|
|
1578
1600
|
});
|
1579
1601
|
continue;
|
1580
1602
|
}
|
1581
|
-
if (
|
1603
|
+
if (xr.test(i.stem)) {
|
1582
1604
|
t.minimumIntegerDigits = i.stem.length;
|
1583
1605
|
continue;
|
1584
1606
|
}
|
1585
|
-
if (
|
1607
|
+
if (Lt.test(i.stem)) {
|
1586
1608
|
if (i.options.length > 1)
|
1587
1609
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1588
|
-
i.stem.replace(
|
1589
|
-
return u === "*" ? t.minimumFractionDigits = l.length :
|
1610
|
+
i.stem.replace(Lt, function(h, l, u, d, c, m) {
|
1611
|
+
return u === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1590
1612
|
});
|
1591
1613
|
var o = i.options[0];
|
1592
|
-
o === "w" ? t =
|
1614
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), Nt(o)));
|
1593
1615
|
continue;
|
1594
1616
|
}
|
1595
|
-
if (
|
1596
|
-
t =
|
1617
|
+
if (_r.test(i.stem)) {
|
1618
|
+
t = H(H({}, t), Nt(i.stem));
|
1597
1619
|
continue;
|
1598
1620
|
}
|
1599
|
-
var s =
|
1600
|
-
s && (t =
|
1601
|
-
var a =
|
1602
|
-
a && (t =
|
1621
|
+
var s = Er(i.stem);
|
1622
|
+
s && (t = H(H({}, t), s));
|
1623
|
+
var a = zn(i.stem);
|
1624
|
+
a && (t = H(H({}, t), a));
|
1603
1625
|
}
|
1604
1626
|
return t;
|
1605
1627
|
}
|
1606
|
-
var
|
1628
|
+
var Ie = {
|
1607
1629
|
"001": [
|
1608
1630
|
"H",
|
1609
1631
|
"h"
|
@@ -3018,13 +3040,13 @@ var Oe = {
|
|
3018
3040
|
"h"
|
3019
3041
|
]
|
3020
3042
|
};
|
3021
|
-
function
|
3043
|
+
function Jn(e, t) {
|
3022
3044
|
for (var r = "", n = 0; n < e.length; n++) {
|
3023
3045
|
var i = e.charAt(n);
|
3024
3046
|
if (i === "j") {
|
3025
3047
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
3026
3048
|
o++, n++;
|
3027
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
3049
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Qn(t);
|
3028
3050
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
3029
3051
|
r += h;
|
3030
3052
|
for (; s-- > 0; )
|
@@ -3033,7 +3055,7 @@ function Wn(e, t) {
|
|
3033
3055
|
}
|
3034
3056
|
return r;
|
3035
3057
|
}
|
3036
|
-
function
|
3058
|
+
function Qn(e) {
|
3037
3059
|
var t = e.hourCycle;
|
3038
3060
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
3039
3061
|
e.hourCycles && // @ts-ignore
|
@@ -3052,23 +3074,23 @@ function zn(e) {
|
|
3052
3074
|
}
|
3053
3075
|
var r = e.language, n;
|
3054
3076
|
r !== "root" && (n = e.maximize().region);
|
3055
|
-
var i =
|
3077
|
+
var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
|
3056
3078
|
return i[0];
|
3057
3079
|
}
|
3058
|
-
var
|
3059
|
-
function
|
3080
|
+
var Qe, qn = new RegExp("^".concat(vr.source, "*")), Yn = new RegExp("".concat(vr.source, "*$"));
|
3081
|
+
function T(e, t) {
|
3060
3082
|
return { start: e, end: t };
|
3061
3083
|
}
|
3062
|
-
var
|
3084
|
+
var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, oi = !!Number.isSafeInteger, si = oi ? Number.isSafeInteger : function(e) {
|
3063
3085
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3064
|
-
},
|
3086
|
+
}, lt = !0;
|
3065
3087
|
try {
|
3066
|
-
var
|
3067
|
-
|
3088
|
+
var ai = Sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3089
|
+
lt = ((Qe = ai.exec("a")) === null || Qe === void 0 ? void 0 : Qe[0]) === "a";
|
3068
3090
|
} catch {
|
3069
|
-
|
3091
|
+
lt = !1;
|
3070
3092
|
}
|
3071
|
-
var
|
3093
|
+
var Rt = Kn ? (
|
3072
3094
|
// Native
|
3073
3095
|
function(t, r, n) {
|
3074
3096
|
return t.startsWith(r, n);
|
@@ -3078,7 +3100,7 @@ var Lt = Qn ? (
|
|
3078
3100
|
function(t, r, n) {
|
3079
3101
|
return t.slice(n, n + r.length) === r;
|
3080
3102
|
}
|
3081
|
-
),
|
3103
|
+
), ut = ei ? String.fromCodePoint : (
|
3082
3104
|
// IE11
|
3083
3105
|
function() {
|
3084
3106
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3090,9 +3112,9 @@ var Lt = Qn ? (
|
|
3090
3112
|
}
|
3091
3113
|
return n;
|
3092
3114
|
}
|
3093
|
-
),
|
3115
|
+
), Dt = (
|
3094
3116
|
// native
|
3095
|
-
|
3117
|
+
ti ? Object.fromEntries : (
|
3096
3118
|
// Ponyfill
|
3097
3119
|
function(t) {
|
3098
3120
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3102,7 +3124,7 @@ var Lt = Qn ? (
|
|
3102
3124
|
return r;
|
3103
3125
|
}
|
3104
3126
|
)
|
3105
|
-
),
|
3127
|
+
), wr = ri ? (
|
3106
3128
|
// Native
|
3107
3129
|
function(t, r) {
|
3108
3130
|
return t.codePointAt(r);
|
@@ -3116,7 +3138,7 @@ var Lt = Qn ? (
|
|
3116
3138
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
3117
3139
|
}
|
3118
3140
|
}
|
3119
|
-
),
|
3141
|
+
), li = ni ? (
|
3120
3142
|
// Native
|
3121
3143
|
function(t) {
|
3122
3144
|
return t.trimStart();
|
@@ -3124,9 +3146,9 @@ var Lt = Qn ? (
|
|
3124
3146
|
) : (
|
3125
3147
|
// Ponyfill
|
3126
3148
|
function(t) {
|
3127
|
-
return t.replace(
|
3149
|
+
return t.replace(qn, "");
|
3128
3150
|
}
|
3129
|
-
),
|
3151
|
+
), ui = ii ? (
|
3130
3152
|
// Native
|
3131
3153
|
function(t) {
|
3132
3154
|
return t.trimEnd();
|
@@ -3134,32 +3156,32 @@ var Lt = Qn ? (
|
|
3134
3156
|
) : (
|
3135
3157
|
// Ponyfill
|
3136
3158
|
function(t) {
|
3137
|
-
return t.replace(
|
3159
|
+
return t.replace(Yn, "");
|
3138
3160
|
}
|
3139
3161
|
);
|
3140
|
-
function
|
3162
|
+
function Sr(e, t) {
|
3141
3163
|
return new RegExp(e, t);
|
3142
3164
|
}
|
3143
|
-
var
|
3144
|
-
if (
|
3145
|
-
var
|
3146
|
-
|
3165
|
+
var ht;
|
3166
|
+
if (lt) {
|
3167
|
+
var Ut = Sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3168
|
+
ht = function(t, r) {
|
3147
3169
|
var n;
|
3148
|
-
|
3149
|
-
var i =
|
3170
|
+
Ut.lastIndex = r;
|
3171
|
+
var i = Ut.exec(t);
|
3150
3172
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3151
3173
|
};
|
3152
3174
|
} else
|
3153
|
-
|
3175
|
+
ht = function(t, r) {
|
3154
3176
|
for (var n = []; ; ) {
|
3155
|
-
var i =
|
3156
|
-
if (i === void 0 ||
|
3177
|
+
var i = wr(t, r);
|
3178
|
+
if (i === void 0 || Tr(i) || di(i))
|
3157
3179
|
break;
|
3158
3180
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3159
3181
|
}
|
3160
|
-
return
|
3182
|
+
return ut.apply(void 0, n);
|
3161
3183
|
};
|
3162
|
-
var
|
3184
|
+
var hi = (
|
3163
3185
|
/** @class */
|
3164
3186
|
function() {
|
3165
3187
|
function e(t, r) {
|
@@ -3184,13 +3206,13 @@ var ai = (
|
|
3184
3206
|
var a = this.clonePosition();
|
3185
3207
|
this.bump(), i.push({
|
3186
3208
|
type: B.pound,
|
3187
|
-
location:
|
3209
|
+
location: T(a, this.clonePosition())
|
3188
3210
|
});
|
3189
3211
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
3190
3212
|
if (n)
|
3191
3213
|
break;
|
3192
|
-
return this.error(
|
3193
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3214
|
+
return this.error(E.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
3215
|
+
} else if (o === 60 && !this.ignoreTag && ct(this.peek() || 0)) {
|
3194
3216
|
var s = this.parseTag(t, r);
|
3195
3217
|
if (s.err)
|
3196
3218
|
return s;
|
@@ -3213,7 +3235,7 @@ var ai = (
|
|
3213
3235
|
val: {
|
3214
3236
|
type: B.literal,
|
3215
3237
|
value: "<".concat(i, "/>"),
|
3216
|
-
location:
|
3238
|
+
location: T(n, this.clonePosition())
|
3217
3239
|
},
|
3218
3240
|
err: null
|
3219
3241
|
};
|
@@ -3223,25 +3245,25 @@ var ai = (
|
|
3223
3245
|
return o;
|
3224
3246
|
var s = o.val, a = this.clonePosition();
|
3225
3247
|
if (this.bumpIf("</")) {
|
3226
|
-
if (this.isEOF() || !
|
3227
|
-
return this.error(
|
3248
|
+
if (this.isEOF() || !ct(this.char()))
|
3249
|
+
return this.error(E.INVALID_TAG, T(a, this.clonePosition()));
|
3228
3250
|
var h = this.clonePosition(), l = this.parseTagName();
|
3229
|
-
return i !== l ? this.error(
|
3251
|
+
return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, T(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3230
3252
|
val: {
|
3231
3253
|
type: B.tag,
|
3232
3254
|
value: i,
|
3233
3255
|
children: s,
|
3234
|
-
location:
|
3256
|
+
location: T(n, this.clonePosition())
|
3235
3257
|
},
|
3236
3258
|
err: null
|
3237
|
-
} : this.error(
|
3259
|
+
} : this.error(E.INVALID_TAG, T(a, this.clonePosition())));
|
3238
3260
|
} else
|
3239
|
-
return this.error(
|
3261
|
+
return this.error(E.UNCLOSED_TAG, T(n, this.clonePosition()));
|
3240
3262
|
} else
|
3241
|
-
return this.error(
|
3263
|
+
return this.error(E.INVALID_TAG, T(n, this.clonePosition()));
|
3242
3264
|
}, e.prototype.parseTagName = function() {
|
3243
3265
|
var t = this.offset();
|
3244
|
-
for (this.bump(); !this.isEOF() &&
|
3266
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
3245
3267
|
this.bump();
|
3246
3268
|
return this.message.slice(t, this.offset());
|
3247
3269
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3263,14 +3285,14 @@ var ai = (
|
|
3263
3285
|
}
|
3264
3286
|
break;
|
3265
3287
|
}
|
3266
|
-
var h =
|
3288
|
+
var h = T(n, this.clonePosition());
|
3267
3289
|
return {
|
3268
3290
|
val: { type: B.literal, value: i, location: h },
|
3269
3291
|
err: null
|
3270
3292
|
};
|
3271
3293
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3272
3294
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3273
|
-
!
|
3295
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3274
3296
|
}, e.prototype.tryParseQuote = function(t) {
|
3275
3297
|
if (this.isEOF() || this.char() !== 39)
|
3276
3298
|
return null;
|
@@ -3304,23 +3326,23 @@ var ai = (
|
|
3304
3326
|
r.push(n);
|
3305
3327
|
this.bump();
|
3306
3328
|
}
|
3307
|
-
return
|
3329
|
+
return ut.apply(void 0, r);
|
3308
3330
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3309
3331
|
if (this.isEOF())
|
3310
3332
|
return null;
|
3311
3333
|
var n = this.char();
|
3312
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3334
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ut(n));
|
3313
3335
|
}, e.prototype.parseArgument = function(t, r) {
|
3314
3336
|
var n = this.clonePosition();
|
3315
3337
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
3316
|
-
return this.error(
|
3338
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
3317
3339
|
if (this.char() === 125)
|
3318
|
-
return this.bump(), this.error(
|
3340
|
+
return this.bump(), this.error(E.EMPTY_ARGUMENT, T(n, this.clonePosition()));
|
3319
3341
|
var i = this.parseIdentifierIfPossible().value;
|
3320
3342
|
if (!i)
|
3321
|
-
return this.error(
|
3343
|
+
return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
3322
3344
|
if (this.bumpSpace(), this.isEOF())
|
3323
|
-
return this.error(
|
3345
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
3324
3346
|
switch (this.char()) {
|
3325
3347
|
case 125:
|
3326
3348
|
return this.bump(), {
|
@@ -3328,25 +3350,25 @@ var ai = (
|
|
3328
3350
|
type: B.argument,
|
3329
3351
|
// value does not include the opening and closing braces.
|
3330
3352
|
value: i,
|
3331
|
-
location:
|
3353
|
+
location: T(n, this.clonePosition())
|
3332
3354
|
},
|
3333
3355
|
err: null
|
3334
3356
|
};
|
3335
3357
|
case 44:
|
3336
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
3358
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
3337
3359
|
default:
|
3338
|
-
return this.error(
|
3360
|
+
return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
3339
3361
|
}
|
3340
3362
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3341
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3363
|
+
var t = this.clonePosition(), r = this.offset(), n = ht(this.message, r), i = r + n.length;
|
3342
3364
|
this.bumpTo(i);
|
3343
|
-
var o = this.clonePosition(), s =
|
3365
|
+
var o = this.clonePosition(), s = T(t, o);
|
3344
3366
|
return { value: n, location: s };
|
3345
3367
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
3346
3368
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
3347
3369
|
switch (a) {
|
3348
3370
|
case "":
|
3349
|
-
return this.error(
|
3371
|
+
return this.error(E.EXPECT_ARGUMENT_TYPE, T(s, h));
|
3350
3372
|
case "number":
|
3351
3373
|
case "date":
|
3352
3374
|
case "time": {
|
@@ -3354,40 +3376,40 @@ var ai = (
|
|
3354
3376
|
var l = null;
|
3355
3377
|
if (this.bumpIf(",")) {
|
3356
3378
|
this.bumpSpace();
|
3357
|
-
var u = this.clonePosition(),
|
3358
|
-
if (
|
3359
|
-
return
|
3360
|
-
var c =
|
3379
|
+
var u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
3380
|
+
if (d.err)
|
3381
|
+
return d;
|
3382
|
+
var c = ui(d.val);
|
3361
3383
|
if (c.length === 0)
|
3362
|
-
return this.error(
|
3363
|
-
var m =
|
3384
|
+
return this.error(E.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
3385
|
+
var m = T(u, this.clonePosition());
|
3364
3386
|
l = { style: c, styleLocation: m };
|
3365
3387
|
}
|
3366
|
-
var
|
3367
|
-
if (
|
3368
|
-
return
|
3369
|
-
var
|
3370
|
-
if (l &&
|
3371
|
-
var
|
3388
|
+
var y = this.tryParseArgumentClose(i);
|
3389
|
+
if (y.err)
|
3390
|
+
return y;
|
3391
|
+
var g = T(i, this.clonePosition());
|
3392
|
+
if (l && Rt(l?.style, "::", 0)) {
|
3393
|
+
var F = li(l.style.slice(2));
|
3372
3394
|
if (a === "number") {
|
3373
|
-
var
|
3374
|
-
return
|
3375
|
-
val: { type: B.number, value: n, location:
|
3395
|
+
var d = this.parseNumberSkeletonFromString(F, l.styleLocation);
|
3396
|
+
return d.err ? d : {
|
3397
|
+
val: { type: B.number, value: n, location: g, style: d.val },
|
3376
3398
|
err: null
|
3377
3399
|
};
|
3378
3400
|
} else {
|
3379
|
-
if (
|
3380
|
-
return this.error(
|
3381
|
-
var
|
3382
|
-
this.locale && (
|
3401
|
+
if (F.length === 0)
|
3402
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, g);
|
3403
|
+
var w = F;
|
3404
|
+
this.locale && (w = Jn(F, this.locale));
|
3383
3405
|
var c = {
|
3384
3406
|
type: me.dateTime,
|
3385
|
-
pattern:
|
3407
|
+
pattern: w,
|
3386
3408
|
location: l.styleLocation,
|
3387
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3388
|
-
},
|
3409
|
+
parsedOptions: this.shouldParseSkeletons ? kn(w) : {}
|
3410
|
+
}, v = a === "date" ? B.date : B.time;
|
3389
3411
|
return {
|
3390
|
-
val: { type:
|
3412
|
+
val: { type: v, value: n, location: g, style: c },
|
3391
3413
|
err: null
|
3392
3414
|
};
|
3393
3415
|
}
|
@@ -3396,7 +3418,7 @@ var ai = (
|
|
3396
3418
|
val: {
|
3397
3419
|
type: a === "number" ? B.number : a === "date" ? B.date : B.time,
|
3398
3420
|
value: n,
|
3399
|
-
location:
|
3421
|
+
location: g,
|
3400
3422
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
3401
3423
|
},
|
3402
3424
|
err: null
|
@@ -3405,52 +3427,52 @@ var ai = (
|
|
3405
3427
|
case "plural":
|
3406
3428
|
case "selectordinal":
|
3407
3429
|
case "select": {
|
3408
|
-
var
|
3430
|
+
var x = this.clonePosition();
|
3409
3431
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3410
|
-
return this.error(
|
3432
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, T(x, H({}, x)));
|
3411
3433
|
this.bumpSpace();
|
3412
|
-
var
|
3413
|
-
if (a !== "select" &&
|
3434
|
+
var O = this.parseIdentifierIfPossible(), N = 0;
|
3435
|
+
if (a !== "select" && O.value === "offset") {
|
3414
3436
|
if (!this.bumpIf(":"))
|
3415
|
-
return this.error(
|
3437
|
+
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
3416
3438
|
this.bumpSpace();
|
3417
|
-
var
|
3418
|
-
if (
|
3419
|
-
return
|
3420
|
-
this.bumpSpace(),
|
3439
|
+
var d = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3440
|
+
if (d.err)
|
3441
|
+
return d;
|
3442
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), N = d.val;
|
3421
3443
|
}
|
3422
|
-
var
|
3423
|
-
if (
|
3424
|
-
return
|
3425
|
-
var
|
3426
|
-
if (
|
3427
|
-
return
|
3428
|
-
var
|
3444
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
3445
|
+
if (M.err)
|
3446
|
+
return M;
|
3447
|
+
var y = this.tryParseArgumentClose(i);
|
3448
|
+
if (y.err)
|
3449
|
+
return y;
|
3450
|
+
var S = T(i, this.clonePosition());
|
3429
3451
|
return a === "select" ? {
|
3430
3452
|
val: {
|
3431
3453
|
type: B.select,
|
3432
3454
|
value: n,
|
3433
|
-
options:
|
3434
|
-
location:
|
3455
|
+
options: Dt(M.val),
|
3456
|
+
location: S
|
3435
3457
|
},
|
3436
3458
|
err: null
|
3437
3459
|
} : {
|
3438
3460
|
val: {
|
3439
3461
|
type: B.plural,
|
3440
3462
|
value: n,
|
3441
|
-
options:
|
3442
|
-
offset:
|
3463
|
+
options: Dt(M.val),
|
3464
|
+
offset: N,
|
3443
3465
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3444
|
-
location:
|
3466
|
+
location: S
|
3445
3467
|
},
|
3446
3468
|
err: null
|
3447
3469
|
};
|
3448
3470
|
}
|
3449
3471
|
default:
|
3450
|
-
return this.error(
|
3472
|
+
return this.error(E.INVALID_ARGUMENT_TYPE, T(s, h));
|
3451
3473
|
}
|
3452
3474
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
3453
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
3475
|
+
return this.isEOF() || this.char() !== 125 ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
3454
3476
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
3455
3477
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
3456
3478
|
var n = this.char();
|
@@ -3459,7 +3481,7 @@ var ai = (
|
|
3459
3481
|
this.bump();
|
3460
3482
|
var i = this.clonePosition();
|
3461
3483
|
if (!this.bumpUntil("'"))
|
3462
|
-
return this.error(
|
3484
|
+
return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
|
3463
3485
|
this.bump();
|
3464
3486
|
break;
|
3465
3487
|
}
|
@@ -3489,52 +3511,52 @@ var ai = (
|
|
3489
3511
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3490
3512
|
var n = [];
|
3491
3513
|
try {
|
3492
|
-
n =
|
3514
|
+
n = Vn(t);
|
3493
3515
|
} catch {
|
3494
|
-
return this.error(
|
3516
|
+
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
3495
3517
|
}
|
3496
3518
|
return {
|
3497
3519
|
val: {
|
3498
3520
|
type: me.number,
|
3499
3521
|
tokens: n,
|
3500
3522
|
location: r,
|
3501
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3523
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(n) : {}
|
3502
3524
|
},
|
3503
3525
|
err: null
|
3504
3526
|
};
|
3505
3527
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3506
3528
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
3507
3529
|
if (l.length === 0) {
|
3508
|
-
var
|
3530
|
+
var d = this.clonePosition();
|
3509
3531
|
if (r !== "select" && this.bumpIf("=")) {
|
3510
|
-
var c = this.tryParseDecimalInteger(
|
3532
|
+
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3511
3533
|
if (c.err)
|
3512
3534
|
return c;
|
3513
|
-
u =
|
3535
|
+
u = T(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
|
3514
3536
|
} else
|
3515
3537
|
break;
|
3516
3538
|
}
|
3517
3539
|
if (h.has(l))
|
3518
|
-
return this.error(r === "select" ?
|
3540
|
+
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3519
3541
|
l === "other" && (s = !0), this.bumpSpace();
|
3520
3542
|
var m = this.clonePosition();
|
3521
3543
|
if (!this.bumpIf("{"))
|
3522
|
-
return this.error(r === "select" ?
|
3523
|
-
var
|
3524
|
-
if (
|
3525
|
-
return
|
3526
|
-
var
|
3527
|
-
if (
|
3528
|
-
return
|
3544
|
+
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
3545
|
+
var y = this.parseMessage(t + 1, r, n);
|
3546
|
+
if (y.err)
|
3547
|
+
return y;
|
3548
|
+
var g = this.tryParseArgumentClose(m);
|
3549
|
+
if (g.err)
|
3550
|
+
return g;
|
3529
3551
|
a.push([
|
3530
3552
|
l,
|
3531
3553
|
{
|
3532
|
-
value:
|
3533
|
-
location:
|
3554
|
+
value: y.val,
|
3555
|
+
location: T(m, this.clonePosition())
|
3534
3556
|
}
|
3535
3557
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
3536
3558
|
}
|
3537
|
-
return a.length === 0 ? this.error(r === "select" ?
|
3559
|
+
return a.length === 0 ? this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR : E.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(E.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3538
3560
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3539
3561
|
var n = 1, i = this.clonePosition();
|
3540
3562
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3545,8 +3567,8 @@ var ai = (
|
|
3545
3567
|
else
|
3546
3568
|
break;
|
3547
3569
|
}
|
3548
|
-
var h =
|
3549
|
-
return o ? (s *= n,
|
3570
|
+
var h = T(i, this.clonePosition());
|
3571
|
+
return o ? (s *= n, si(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3550
3572
|
}, e.prototype.offset = function() {
|
3551
3573
|
return this.position.offset;
|
3552
3574
|
}, e.prototype.isEOF = function() {
|
@@ -3561,7 +3583,7 @@ var ai = (
|
|
3561
3583
|
var t = this.position.offset;
|
3562
3584
|
if (t >= this.message.length)
|
3563
3585
|
throw Error("out of bound");
|
3564
|
-
var r =
|
3586
|
+
var r = wr(this.message, t);
|
3565
3587
|
if (r === void 0)
|
3566
3588
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3567
3589
|
return r;
|
@@ -3580,7 +3602,7 @@ var ai = (
|
|
3580
3602
|
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);
|
3581
3603
|
}
|
3582
3604
|
}, e.prototype.bumpIf = function(t) {
|
3583
|
-
if (
|
3605
|
+
if (Rt(this.message, t, this.offset())) {
|
3584
3606
|
for (var r = 0; r < t.length; r++)
|
3585
3607
|
this.bump();
|
3586
3608
|
return !0;
|
@@ -3602,7 +3624,7 @@ var ai = (
|
|
3602
3624
|
break;
|
3603
3625
|
}
|
3604
3626
|
}, e.prototype.bumpSpace = function() {
|
3605
|
-
for (; !this.isEOF() &&
|
3627
|
+
for (; !this.isEOF() && Tr(this.char()); )
|
3606
3628
|
this.bump();
|
3607
3629
|
}, e.prototype.peek = function() {
|
3608
3630
|
if (this.isEOF())
|
@@ -3612,37 +3634,37 @@ var ai = (
|
|
3612
3634
|
}, e;
|
3613
3635
|
}()
|
3614
3636
|
);
|
3615
|
-
function
|
3637
|
+
function ct(e) {
|
3616
3638
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3617
3639
|
}
|
3618
|
-
function
|
3619
|
-
return
|
3640
|
+
function ci(e) {
|
3641
|
+
return ct(e) || e === 47;
|
3620
3642
|
}
|
3621
|
-
function
|
3643
|
+
function fi(e) {
|
3622
3644
|
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;
|
3623
3645
|
}
|
3624
|
-
function
|
3646
|
+
function Tr(e) {
|
3625
3647
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3626
3648
|
}
|
3627
|
-
function
|
3649
|
+
function di(e) {
|
3628
3650
|
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;
|
3629
3651
|
}
|
3630
|
-
function
|
3652
|
+
function ft(e) {
|
3631
3653
|
e.forEach(function(t) {
|
3632
|
-
if (delete t.location,
|
3654
|
+
if (delete t.location, mr(t) || br(t))
|
3633
3655
|
for (var r in t.options)
|
3634
|
-
delete t.options[r].location,
|
3635
|
-
else
|
3656
|
+
delete t.options[r].location, ft(t.options[r].value);
|
3657
|
+
else fr(t) && yr(t.style) || (dr(t) || pr(t)) && at(t.style) ? delete t.style.location : gr(t) && ft(t.children);
|
3636
3658
|
});
|
3637
3659
|
}
|
3638
|
-
function
|
3639
|
-
t === void 0 && (t = {}), t =
|
3640
|
-
var r = new
|
3660
|
+
function pi(e, t) {
|
3661
|
+
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3662
|
+
var r = new hi(e, t).parse();
|
3641
3663
|
if (r.err) {
|
3642
|
-
var n = SyntaxError(
|
3664
|
+
var n = SyntaxError(E[r.err.kind]);
|
3643
3665
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3644
3666
|
}
|
3645
|
-
return t?.captureLocation ||
|
3667
|
+
return t?.captureLocation || ft(r.val), r.val;
|
3646
3668
|
}
|
3647
3669
|
var be;
|
3648
3670
|
(function(e) {
|
@@ -3660,7 +3682,7 @@ var ke = (
|
|
3660
3682
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3661
3683
|
}, t;
|
3662
3684
|
}(Error)
|
3663
|
-
),
|
3685
|
+
), $t = (
|
3664
3686
|
/** @class */
|
3665
3687
|
function(e) {
|
3666
3688
|
Z(t, e);
|
@@ -3669,7 +3691,7 @@ var ke = (
|
|
3669
3691
|
}
|
3670
3692
|
return t;
|
3671
3693
|
}(ke)
|
3672
|
-
),
|
3694
|
+
), mi = (
|
3673
3695
|
/** @class */
|
3674
3696
|
function(e) {
|
3675
3697
|
Z(t, e);
|
@@ -3678,7 +3700,7 @@ var ke = (
|
|
3678
3700
|
}
|
3679
3701
|
return t;
|
3680
3702
|
}(ke)
|
3681
|
-
),
|
3703
|
+
), bi = (
|
3682
3704
|
/** @class */
|
3683
3705
|
function(e) {
|
3684
3706
|
Z(t, e);
|
@@ -3691,17 +3713,17 @@ var ke = (
|
|
3691
3713
|
(function(e) {
|
3692
3714
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3693
3715
|
})(R || (R = {}));
|
3694
|
-
function
|
3716
|
+
function gi(e) {
|
3695
3717
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3696
3718
|
var n = t[t.length - 1];
|
3697
3719
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
3698
3720
|
}, []);
|
3699
3721
|
}
|
3700
|
-
function
|
3722
|
+
function yi(e) {
|
3701
3723
|
return typeof e == "function";
|
3702
3724
|
}
|
3703
3725
|
function Ne(e, t, r, n, i, o, s) {
|
3704
|
-
if (e.length === 1 &&
|
3726
|
+
if (e.length === 1 && Ot(e[0]))
|
3705
3727
|
return [
|
3706
3728
|
{
|
3707
3729
|
type: R.literal,
|
@@ -3710,105 +3732,105 @@ function Ne(e, t, r, n, i, o, s) {
|
|
3710
3732
|
];
|
3711
3733
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3712
3734
|
var u = l[h];
|
3713
|
-
if (
|
3735
|
+
if (Ot(u)) {
|
3714
3736
|
a.push({
|
3715
3737
|
type: R.literal,
|
3716
3738
|
value: u.value
|
3717
3739
|
});
|
3718
3740
|
continue;
|
3719
3741
|
}
|
3720
|
-
if (
|
3742
|
+
if ($n(u)) {
|
3721
3743
|
typeof o == "number" && a.push({
|
3722
3744
|
type: R.literal,
|
3723
3745
|
value: r.getNumberFormat(t).format(o)
|
3724
3746
|
});
|
3725
3747
|
continue;
|
3726
3748
|
}
|
3727
|
-
var
|
3728
|
-
if (!(i &&
|
3729
|
-
throw new
|
3730
|
-
var c = i[
|
3731
|
-
if (
|
3749
|
+
var d = u.value;
|
3750
|
+
if (!(i && d in i))
|
3751
|
+
throw new bi(d, s);
|
3752
|
+
var c = i[d];
|
3753
|
+
if (Un(u)) {
|
3732
3754
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3733
3755
|
type: typeof c == "string" ? R.literal : R.object,
|
3734
3756
|
value: c
|
3735
3757
|
});
|
3736
3758
|
continue;
|
3737
3759
|
}
|
3738
|
-
if (
|
3739
|
-
var m = typeof u.style == "string" ? n.date[u.style] :
|
3760
|
+
if (dr(u)) {
|
3761
|
+
var m = typeof u.style == "string" ? n.date[u.style] : at(u.style) ? u.style.parsedOptions : void 0;
|
3740
3762
|
a.push({
|
3741
3763
|
type: R.literal,
|
3742
3764
|
value: r.getDateTimeFormat(t, m).format(c)
|
3743
3765
|
});
|
3744
3766
|
continue;
|
3745
3767
|
}
|
3746
|
-
if (
|
3747
|
-
var m = typeof u.style == "string" ? n.time[u.style] :
|
3768
|
+
if (pr(u)) {
|
3769
|
+
var m = typeof u.style == "string" ? n.time[u.style] : at(u.style) ? u.style.parsedOptions : n.time.medium;
|
3748
3770
|
a.push({
|
3749
3771
|
type: R.literal,
|
3750
3772
|
value: r.getDateTimeFormat(t, m).format(c)
|
3751
3773
|
});
|
3752
3774
|
continue;
|
3753
3775
|
}
|
3754
|
-
if (
|
3755
|
-
var m = typeof u.style == "string" ? n.number[u.style] :
|
3776
|
+
if (fr(u)) {
|
3777
|
+
var m = typeof u.style == "string" ? n.number[u.style] : yr(u.style) ? u.style.parsedOptions : void 0;
|
3756
3778
|
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
3757
3779
|
type: R.literal,
|
3758
3780
|
value: r.getNumberFormat(t, m).format(c)
|
3759
3781
|
});
|
3760
3782
|
continue;
|
3761
3783
|
}
|
3762
|
-
if (
|
3763
|
-
var
|
3764
|
-
if (!
|
3765
|
-
throw new
|
3766
|
-
var
|
3767
|
-
return
|
3784
|
+
if (gr(u)) {
|
3785
|
+
var y = u.children, g = u.value, F = i[g];
|
3786
|
+
if (!yi(F))
|
3787
|
+
throw new mi(g, "function", s);
|
3788
|
+
var w = Ne(y, t, r, n, i, o), v = F(w.map(function(N) {
|
3789
|
+
return N.value;
|
3768
3790
|
}));
|
3769
|
-
Array.isArray(
|
3791
|
+
Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(N) {
|
3770
3792
|
return {
|
3771
|
-
type: typeof
|
3772
|
-
value:
|
3793
|
+
type: typeof N == "string" ? R.literal : R.object,
|
3794
|
+
value: N
|
3773
3795
|
};
|
3774
3796
|
}));
|
3775
3797
|
}
|
3776
|
-
if (
|
3777
|
-
var
|
3778
|
-
if (!
|
3779
|
-
throw new
|
3780
|
-
a.push.apply(a, Ne(
|
3798
|
+
if (mr(u)) {
|
3799
|
+
var x = u.options[c] || u.options.other;
|
3800
|
+
if (!x)
|
3801
|
+
throw new $t(u.value, c, Object.keys(u.options), s);
|
3802
|
+
a.push.apply(a, Ne(x.value, t, r, n, i));
|
3781
3803
|
continue;
|
3782
3804
|
}
|
3783
|
-
if (
|
3784
|
-
var
|
3785
|
-
if (!
|
3805
|
+
if (br(u)) {
|
3806
|
+
var x = u.options["=".concat(c)];
|
3807
|
+
if (!x) {
|
3786
3808
|
if (!Intl.PluralRules)
|
3787
3809
|
throw new ke(`Intl.PluralRules is not available in this environment.
|
3788
3810
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3789
3811
|
`, be.MISSING_INTL_API, s);
|
3790
|
-
var
|
3791
|
-
|
3812
|
+
var O = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
3813
|
+
x = u.options[O] || u.options.other;
|
3792
3814
|
}
|
3793
|
-
if (!
|
3794
|
-
throw new
|
3795
|
-
a.push.apply(a, Ne(
|
3815
|
+
if (!x)
|
3816
|
+
throw new $t(u.value, c, Object.keys(u.options), s);
|
3817
|
+
a.push.apply(a, Ne(x.value, t, r, n, i, c - (u.offset || 0)));
|
3796
3818
|
continue;
|
3797
3819
|
}
|
3798
3820
|
}
|
3799
|
-
return
|
3821
|
+
return gi(a);
|
3800
3822
|
}
|
3801
|
-
function
|
3802
|
-
return t ?
|
3803
|
-
return r[n] =
|
3823
|
+
function vi(e, t) {
|
3824
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3825
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
3804
3826
|
}, {})) : e;
|
3805
3827
|
}
|
3806
|
-
function
|
3828
|
+
function _i(e, t) {
|
3807
3829
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3808
|
-
return r[n] =
|
3809
|
-
},
|
3830
|
+
return r[n] = vi(e[n], t[n]), r;
|
3831
|
+
}, H({}, e)) : e;
|
3810
3832
|
}
|
3811
|
-
function
|
3833
|
+
function qe(e) {
|
3812
3834
|
return {
|
3813
3835
|
create: function() {
|
3814
3836
|
return {
|
@@ -3822,39 +3844,39 @@ function Qe(e) {
|
|
3822
3844
|
}
|
3823
3845
|
};
|
3824
3846
|
}
|
3825
|
-
function
|
3847
|
+
function xi(e) {
|
3826
3848
|
return e === void 0 && (e = {
|
3827
3849
|
number: {},
|
3828
3850
|
dateTime: {},
|
3829
3851
|
pluralRules: {}
|
3830
3852
|
}), {
|
3831
|
-
getNumberFormat:
|
3853
|
+
getNumberFormat: Ze(function() {
|
3832
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3833
3855
|
r[n] = arguments[n];
|
3834
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3856
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
3835
3857
|
}, {
|
3836
|
-
cache:
|
3837
|
-
strategy:
|
3858
|
+
cache: qe(e.number),
|
3859
|
+
strategy: Je.variadic
|
3838
3860
|
}),
|
3839
|
-
getDateTimeFormat:
|
3861
|
+
getDateTimeFormat: Ze(function() {
|
3840
3862
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3841
3863
|
r[n] = arguments[n];
|
3842
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3864
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
3843
3865
|
}, {
|
3844
|
-
cache:
|
3845
|
-
strategy:
|
3866
|
+
cache: qe(e.dateTime),
|
3867
|
+
strategy: Je.variadic
|
3846
3868
|
}),
|
3847
|
-
getPluralRules:
|
3869
|
+
getPluralRules: Ze(function() {
|
3848
3870
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3849
3871
|
r[n] = arguments[n];
|
3850
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3872
|
+
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
3851
3873
|
}, {
|
3852
|
-
cache:
|
3853
|
-
strategy:
|
3874
|
+
cache: qe(e.pluralRules),
|
3875
|
+
strategy: Je.variadic
|
3854
3876
|
})
|
3855
3877
|
};
|
3856
3878
|
}
|
3857
|
-
var
|
3879
|
+
var Ei = (
|
3858
3880
|
/** @class */
|
3859
3881
|
function() {
|
3860
3882
|
function e(t, r, n, i) {
|
@@ -3868,8 +3890,8 @@ var yi = (
|
|
3868
3890
|
var l = o.formatToParts(h);
|
3869
3891
|
if (l.length === 1)
|
3870
3892
|
return l[0].value;
|
3871
|
-
var u = l.reduce(function(
|
3872
|
-
return !
|
3893
|
+
var u = l.reduce(function(d, c) {
|
3894
|
+
return !d.length || c.type !== R.literal || typeof d[d.length - 1] != "string" ? d.push(c.value) : d[d.length - 1] += c.value, d;
|
3873
3895
|
}, []);
|
3874
3896
|
return u.length <= 1 ? u[0] || "" : u;
|
3875
3897
|
}, this.formatToParts = function(h) {
|
@@ -3886,13 +3908,13 @@ var yi = (
|
|
3886
3908
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3887
3909
|
var s = i || {};
|
3888
3910
|
s.formatters;
|
3889
|
-
var a =
|
3890
|
-
this.ast = e.__parse(t,
|
3911
|
+
var a = en(s, ["formatters"]);
|
3912
|
+
this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
|
3891
3913
|
} else
|
3892
3914
|
this.ast = t;
|
3893
3915
|
if (!Array.isArray(this.ast))
|
3894
3916
|
throw new TypeError("A message must be provided as a String or AST.");
|
3895
|
-
this.formats =
|
3917
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || xi(this.formatterCache);
|
3896
3918
|
}
|
3897
3919
|
return Object.defineProperty(e, "defaultLocale", {
|
3898
3920
|
get: function() {
|
@@ -3905,7 +3927,7 @@ var yi = (
|
|
3905
3927
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3906
3928
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3907
3929
|
}
|
3908
|
-
}, e.__parse =
|
3930
|
+
}, e.__parse = pi, e.formats = {
|
3909
3931
|
number: {
|
3910
3932
|
integer: {
|
3911
3933
|
maximumFractionDigits: 0
|
@@ -3966,7 +3988,7 @@ var yi = (
|
|
3966
3988
|
}, e;
|
3967
3989
|
}()
|
3968
3990
|
);
|
3969
|
-
function
|
3991
|
+
function wi(e, t) {
|
3970
3992
|
if (t == null)
|
3971
3993
|
return;
|
3972
3994
|
if (t in e)
|
@@ -3987,92 +4009,92 @@ function _i(e, t) {
|
|
3987
4009
|
n = void 0;
|
3988
4010
|
return n;
|
3989
4011
|
}
|
3990
|
-
const Q = {},
|
4012
|
+
const Q = {}, Si = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), Hr = (e, t) => {
|
3991
4013
|
if (t == null)
|
3992
4014
|
return;
|
3993
4015
|
if (t in Q && e in Q[t])
|
3994
4016
|
return Q[t][e];
|
3995
4017
|
const r = je(t);
|
3996
4018
|
for (let n = 0; n < r.length; n++) {
|
3997
|
-
const i = r[n], o =
|
4019
|
+
const i = r[n], o = Hi(i, e);
|
3998
4020
|
if (o)
|
3999
|
-
return
|
4021
|
+
return Si(e, t, o);
|
4000
4022
|
}
|
4001
4023
|
};
|
4002
|
-
let
|
4003
|
-
const
|
4004
|
-
function
|
4005
|
-
return
|
4024
|
+
let yt;
|
4025
|
+
const ve = Ge({});
|
4026
|
+
function Ti(e) {
|
4027
|
+
return yt[e] || null;
|
4006
4028
|
}
|
4007
|
-
function
|
4008
|
-
return e in
|
4029
|
+
function Ar(e) {
|
4030
|
+
return e in yt;
|
4009
4031
|
}
|
4010
|
-
function
|
4011
|
-
if (!
|
4032
|
+
function Hi(e, t) {
|
4033
|
+
if (!Ar(e))
|
4012
4034
|
return null;
|
4013
|
-
const r =
|
4014
|
-
return
|
4035
|
+
const r = Ti(e);
|
4036
|
+
return wi(r, t);
|
4015
4037
|
}
|
4016
|
-
function
|
4038
|
+
function Ai(e) {
|
4017
4039
|
if (e == null)
|
4018
4040
|
return;
|
4019
4041
|
const t = je(e);
|
4020
4042
|
for (let r = 0; r < t.length; r++) {
|
4021
4043
|
const n = t[r];
|
4022
|
-
if (
|
4044
|
+
if (Ar(n))
|
4023
4045
|
return n;
|
4024
4046
|
}
|
4025
4047
|
}
|
4026
|
-
function
|
4027
|
-
delete Q[e],
|
4048
|
+
function Pr(e, ...t) {
|
4049
|
+
delete Q[e], ve.update((r) => (r[e] = In.all([r[e] || {}, ...t]), r));
|
4028
4050
|
}
|
4029
|
-
|
4030
|
-
[
|
4051
|
+
ye(
|
4052
|
+
[ve],
|
4031
4053
|
([e]) => Object.keys(e)
|
4032
4054
|
);
|
4033
|
-
|
4055
|
+
ve.subscribe((e) => yt = e);
|
4034
4056
|
const Me = {};
|
4035
|
-
function
|
4057
|
+
function Pi(e, t) {
|
4036
4058
|
Me[e].delete(t), Me[e].size === 0 && delete Me[e];
|
4037
4059
|
}
|
4038
|
-
function
|
4060
|
+
function Fr(e) {
|
4039
4061
|
return Me[e];
|
4040
4062
|
}
|
4041
|
-
function
|
4063
|
+
function Fi(e) {
|
4042
4064
|
return je(e).map((t) => {
|
4043
|
-
const r =
|
4065
|
+
const r = Fr(t);
|
4044
4066
|
return [t, r ? [...r] : []];
|
4045
4067
|
}).filter(([, t]) => t.length > 0);
|
4046
4068
|
}
|
4047
|
-
function
|
4069
|
+
function dt(e) {
|
4048
4070
|
return e == null ? !1 : je(e).some(
|
4049
4071
|
(t) => {
|
4050
4072
|
var r;
|
4051
|
-
return (r =
|
4073
|
+
return (r = Fr(t)) == null ? void 0 : r.size;
|
4052
4074
|
}
|
4053
4075
|
);
|
4054
4076
|
}
|
4055
|
-
function
|
4077
|
+
function Ci(e, t) {
|
4056
4078
|
return Promise.all(
|
4057
|
-
t.map((n) => (
|
4058
|
-
).then((n) =>
|
4079
|
+
t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
|
4080
|
+
).then((n) => Pr(e, ...n));
|
4059
4081
|
}
|
4060
4082
|
const xe = {};
|
4061
|
-
function
|
4062
|
-
if (!
|
4083
|
+
function Cr(e) {
|
4084
|
+
if (!dt(e))
|
4063
4085
|
return e in xe ? xe[e] : Promise.resolve();
|
4064
|
-
const t =
|
4086
|
+
const t = Fi(e);
|
4065
4087
|
return xe[e] = Promise.all(
|
4066
4088
|
t.map(
|
4067
|
-
([r, n]) =>
|
4089
|
+
([r, n]) => Ci(r, n)
|
4068
4090
|
)
|
4069
4091
|
).then(() => {
|
4070
|
-
if (
|
4071
|
-
return
|
4092
|
+
if (dt(e))
|
4093
|
+
return Cr(e);
|
4072
4094
|
delete xe[e];
|
4073
4095
|
}), xe[e];
|
4074
4096
|
}
|
4075
|
-
const
|
4097
|
+
const Bi = {
|
4076
4098
|
number: {
|
4077
4099
|
scientific: { notation: "scientific" },
|
4078
4100
|
engineering: { notation: "engineering" },
|
@@ -4101,57 +4123,57 @@ const Pi = {
|
|
4101
4123
|
timeZoneName: "short"
|
4102
4124
|
}
|
4103
4125
|
}
|
4104
|
-
},
|
4126
|
+
}, Ii = {
|
4105
4127
|
fallbackLocale: null,
|
4106
4128
|
loadingDelay: 200,
|
4107
|
-
formats:
|
4129
|
+
formats: Bi,
|
4108
4130
|
warnOnMissingMessages: !0,
|
4109
4131
|
handleMissingMessage: void 0,
|
4110
4132
|
ignoreTag: !0
|
4111
|
-
},
|
4133
|
+
}, Oi = Ii;
|
4112
4134
|
function ge() {
|
4113
|
-
return
|
4135
|
+
return Oi;
|
4114
4136
|
}
|
4115
|
-
const
|
4116
|
-
var
|
4137
|
+
const Ye = Ge(!1);
|
4138
|
+
var Li = Object.defineProperty, Ni = Object.defineProperties, Mi = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ui = (e, t) => {
|
4117
4139
|
for (var r in t || (t = {}))
|
4118
|
-
|
4119
|
-
if (
|
4120
|
-
for (var r of
|
4121
|
-
|
4140
|
+
Ri.call(t, r) && kt(e, r, t[r]);
|
4141
|
+
if (Gt)
|
4142
|
+
for (var r of Gt(t))
|
4143
|
+
Di.call(t, r) && kt(e, r, t[r]);
|
4122
4144
|
return e;
|
4123
|
-
},
|
4145
|
+
}, $i = (e, t) => Ni(e, Mi(t));
|
4124
4146
|
let pt;
|
4125
|
-
const
|
4126
|
-
function
|
4147
|
+
const De = Ge(null);
|
4148
|
+
function jt(e) {
|
4127
4149
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4128
4150
|
}
|
4129
4151
|
function je(e, t = ge().fallbackLocale) {
|
4130
|
-
const r =
|
4131
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4152
|
+
const r = jt(e);
|
4153
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...jt(t)])] : r;
|
4132
4154
|
}
|
4133
4155
|
function re() {
|
4134
4156
|
return pt ?? void 0;
|
4135
4157
|
}
|
4136
|
-
|
4158
|
+
De.subscribe((e) => {
|
4137
4159
|
pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4138
4160
|
});
|
4139
|
-
const
|
4140
|
-
if (e &&
|
4161
|
+
const Gi = (e) => {
|
4162
|
+
if (e && Ai(e) && dt(e)) {
|
4141
4163
|
const { loadingDelay: t } = ge();
|
4142
4164
|
let r;
|
4143
4165
|
return typeof window < "u" && re() != null && t ? r = window.setTimeout(
|
4144
|
-
() =>
|
4166
|
+
() => Ye.set(!0),
|
4145
4167
|
t
|
4146
|
-
) :
|
4147
|
-
|
4168
|
+
) : Ye.set(!0), Cr(e).then(() => {
|
4169
|
+
De.set(e);
|
4148
4170
|
}).finally(() => {
|
4149
|
-
clearTimeout(r),
|
4171
|
+
clearTimeout(r), Ye.set(!1);
|
4150
4172
|
});
|
4151
4173
|
}
|
4152
|
-
return
|
4153
|
-
}, te =
|
4154
|
-
set:
|
4174
|
+
return De.set(e);
|
4175
|
+
}, te = $i(Ui({}, De), {
|
4176
|
+
set: Gi
|
4155
4177
|
}), Ve = (e) => {
|
4156
4178
|
const t = /* @__PURE__ */ Object.create(null);
|
4157
4179
|
return (n) => {
|
@@ -4159,20 +4181,20 @@ const $i = (e) => {
|
|
4159
4181
|
return i in t ? t[i] : t[i] = e(n);
|
4160
4182
|
};
|
4161
4183
|
};
|
4162
|
-
var
|
4184
|
+
var ki = Object.defineProperty, Ue = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Ir = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vt = (e, t) => {
|
4163
4185
|
for (var r in t || (t = {}))
|
4164
|
-
|
4165
|
-
if (
|
4166
|
-
for (var r of
|
4167
|
-
|
4186
|
+
Br.call(t, r) && Vt(e, r, t[r]);
|
4187
|
+
if (Ue)
|
4188
|
+
for (var r of Ue(t))
|
4189
|
+
Ir.call(t, r) && Vt(e, r, t[r]);
|
4168
4190
|
return e;
|
4169
4191
|
}, _e = (e, t) => {
|
4170
4192
|
var r = {};
|
4171
4193
|
for (var n in e)
|
4172
|
-
|
4173
|
-
if (e != null &&
|
4174
|
-
for (var n of
|
4175
|
-
t.indexOf(n) < 0 &&
|
4194
|
+
Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4195
|
+
if (e != null && Ue)
|
4196
|
+
for (var n of Ue(e))
|
4197
|
+
t.indexOf(n) < 0 && Ir.call(e, n) && (r[n] = e[n]);
|
4176
4198
|
return r;
|
4177
4199
|
};
|
4178
4200
|
const He = (e, t) => {
|
@@ -4180,21 +4202,21 @@ const He = (e, t) => {
|
|
4180
4202
|
if (e in r && t in r[e])
|
4181
4203
|
return r[e][t];
|
4182
4204
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4183
|
-
},
|
4205
|
+
}, ji = Ve(
|
4184
4206
|
(e) => {
|
4185
4207
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4186
4208
|
if (r == null)
|
4187
4209
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4188
4210
|
return n && (i = He("number", n)), new Intl.NumberFormat(r, i);
|
4189
4211
|
}
|
4190
|
-
),
|
4212
|
+
), Vi = Ve(
|
4191
4213
|
(e) => {
|
4192
4214
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4193
4215
|
if (r == null)
|
4194
4216
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4195
4217
|
return n ? i = He("date", n) : Object.keys(i).length === 0 && (i = He("date", "short")), new Intl.DateTimeFormat(r, i);
|
4196
4218
|
}
|
4197
|
-
),
|
4219
|
+
), Xi = Ve(
|
4198
4220
|
(e) => {
|
4199
4221
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4200
4222
|
if (r == null)
|
@@ -4203,33 +4225,33 @@ const He = (e, t) => {
|
|
4203
4225
|
);
|
4204
4226
|
return n ? i = He("time", n) : Object.keys(i).length === 0 && (i = He("time", "short")), new Intl.DateTimeFormat(r, i);
|
4205
4227
|
}
|
4206
|
-
),
|
4228
|
+
), Wi = (e = {}) => {
|
4207
4229
|
var t = e, {
|
4208
4230
|
locale: r = re()
|
4209
4231
|
} = t, n = _e(t, [
|
4210
4232
|
"locale"
|
4211
4233
|
]);
|
4212
|
-
return
|
4213
|
-
},
|
4234
|
+
return ji(vt({ locale: r }, n));
|
4235
|
+
}, zi = (e = {}) => {
|
4214
4236
|
var t = e, {
|
4215
4237
|
locale: r = re()
|
4216
4238
|
} = t, n = _e(t, [
|
4217
4239
|
"locale"
|
4218
4240
|
]);
|
4219
|
-
return
|
4220
|
-
},
|
4241
|
+
return Vi(vt({ locale: r }, n));
|
4242
|
+
}, Zi = (e = {}) => {
|
4221
4243
|
var t = e, {
|
4222
4244
|
locale: r = re()
|
4223
4245
|
} = t, n = _e(t, [
|
4224
4246
|
"locale"
|
4225
4247
|
]);
|
4226
|
-
return
|
4227
|
-
},
|
4248
|
+
return Xi(vt({ locale: r }, n));
|
4249
|
+
}, Ji = Ve(
|
4228
4250
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4229
|
-
(e, t = re()) => new
|
4251
|
+
(e, t = re()) => new Ei(e, t, ge().formats, {
|
4230
4252
|
ignoreTag: ge().ignoreTag
|
4231
4253
|
})
|
4232
|
-
),
|
4254
|
+
), Qi = (e, t = {}) => {
|
4233
4255
|
var r, n, i, o;
|
4234
4256
|
let s = t;
|
4235
4257
|
typeof e == "object" && (s = e, e = s.id);
|
@@ -4242,7 +4264,7 @@ const He = (e, t) => {
|
|
4242
4264
|
throw new Error(
|
4243
4265
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4244
4266
|
);
|
4245
|
-
let u =
|
4267
|
+
let u = Hr(e, h);
|
4246
4268
|
if (!u)
|
4247
4269
|
u = (o = (i = (n = (r = ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
4248
4270
|
else if (typeof u != "string")
|
@@ -4251,26 +4273,26 @@ const He = (e, t) => {
|
|
4251
4273
|
), u;
|
4252
4274
|
if (!a)
|
4253
4275
|
return u;
|
4254
|
-
let
|
4276
|
+
let d = u;
|
4255
4277
|
try {
|
4256
|
-
|
4278
|
+
d = Ji(u, h).format(a);
|
4257
4279
|
} catch (c) {
|
4258
4280
|
c instanceof Error && console.warn(
|
4259
4281
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
4260
4282
|
c.message
|
4261
4283
|
);
|
4262
4284
|
}
|
4263
|
-
return
|
4264
|
-
},
|
4265
|
-
|
4266
|
-
|
4267
|
-
|
4268
|
-
|
4269
|
-
window.emWidgets = { topic:
|
4270
|
-
const
|
4271
|
-
function
|
4285
|
+
return d;
|
4286
|
+
}, qi = (e, t) => Zi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), eo = (e, t = re()) => Hr(e, t), to = ye([te, ve], () => Qi);
|
4287
|
+
ye([te], () => qi);
|
4288
|
+
ye([te], () => Yi);
|
4289
|
+
ye([te], () => Ki);
|
4290
|
+
ye([te, ve], () => eo);
|
4291
|
+
window.emWidgets = { topic: mn };
|
4292
|
+
const ro = (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)), no = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4293
|
+
function To(e, t) {
|
4272
4294
|
const r = window.navigator.userAgent;
|
4273
|
-
return
|
4295
|
+
return ro(r) ? t = e.filter((n) => {
|
4274
4296
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
4275
4297
|
return n;
|
4276
4298
|
}) : t = e.filter((n) => {
|
@@ -4278,15 +4300,38 @@ function yo(e, t) {
|
|
4278
4300
|
return n;
|
4279
4301
|
}), t;
|
4280
4302
|
}
|
4281
|
-
function
|
4303
|
+
function io(e, t) {
|
4304
|
+
if (e) {
|
4305
|
+
const r = document.createElement("style");
|
4306
|
+
r.innerHTML = t, e.appendChild(r);
|
4307
|
+
}
|
4308
|
+
}
|
4309
|
+
function oo(e, t) {
|
4310
|
+
const r = new URL(t);
|
4311
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
4312
|
+
const i = document.createElement("style");
|
4313
|
+
i.innerHTML = n, e && e.appendChild(i);
|
4314
|
+
}).catch((n) => {
|
4315
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
4316
|
+
});
|
4317
|
+
}
|
4318
|
+
function so(e, t, r) {
|
4319
|
+
if (window.emMessageBus) {
|
4320
|
+
const n = document.createElement("style");
|
4321
|
+
window.emMessageBus.subscribe(t, (i) => {
|
4322
|
+
n.innerHTML = i, e && e.appendChild(n);
|
4323
|
+
});
|
4324
|
+
}
|
4325
|
+
}
|
4326
|
+
function ao({ withLocale: e, translations: t }) {
|
4282
4327
|
te.subscribe((r) => {
|
4283
|
-
r == null && (
|
4328
|
+
r == null && (ve.set(t), te.set(e));
|
4284
4329
|
});
|
4285
4330
|
}
|
4286
|
-
function
|
4287
|
-
|
4331
|
+
function Xt(e, t) {
|
4332
|
+
Pr(e, t);
|
4288
4333
|
}
|
4289
|
-
const
|
4334
|
+
const Wt = {
|
4290
4335
|
en: {
|
4291
4336
|
providers: "Providers:",
|
4292
4337
|
filterby: "Filter by:",
|
@@ -4396,123 +4441,123 @@ const jt = {
|
|
4396
4441
|
clear: "Clear all"
|
4397
4442
|
}
|
4398
4443
|
};
|
4399
|
-
function
|
4400
|
-
|
4444
|
+
function lo(e) {
|
4445
|
+
Mr(e, "svelte-1v7rv6n", ':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:16}.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%}}');
|
4401
4446
|
}
|
4402
|
-
function
|
4447
|
+
function zt(e, t, r) {
|
4403
4448
|
const n = e.slice();
|
4404
4449
|
return n[36] = t[r], n[37] = t, n[38] = r, n;
|
4405
4450
|
}
|
4406
|
-
function
|
4451
|
+
function uo(e) {
|
4407
4452
|
let t, r, n, i, o, s, a, h, l = (
|
4408
4453
|
/*$_*/
|
4409
4454
|
e[11]("filterby") + ""
|
4410
|
-
), u,
|
4455
|
+
), u, d, c, m, y = (
|
4411
4456
|
/*$_*/
|
4412
4457
|
e[11]("providers") + ""
|
4413
|
-
),
|
4458
|
+
), g, F, w, v, x, O, N, M, S, I, L, W, j, ne = (
|
4414
4459
|
/*$_*/
|
4415
4460
|
e[11]("clear") + ""
|
4416
4461
|
), ie, K, oe, ee, se, Ae;
|
4417
|
-
function Pe(
|
4462
|
+
function Pe(p, P) {
|
4418
4463
|
return (
|
4419
4464
|
/*fullSelection*/
|
4420
|
-
|
4465
|
+
p[7] ? fo : co
|
4421
4466
|
);
|
4422
4467
|
}
|
4423
|
-
let ae = Pe(e),
|
4468
|
+
let ae = Pe(e), U = ae(e), J = St(
|
4424
4469
|
/*vendorArray*/
|
4425
4470
|
e[5]
|
4426
4471
|
), f = [];
|
4427
|
-
for (let
|
4428
|
-
f[
|
4472
|
+
for (let p = 0; p < J.length; p += 1)
|
4473
|
+
f[p] = Zt(zt(e, J, p));
|
4429
4474
|
return {
|
4430
4475
|
c() {
|
4431
|
-
t =
|
4432
|
-
for (let
|
4433
|
-
f[
|
4434
|
-
W = V(), j =
|
4435
|
-
(e[4] ? "TriangleActive" : "")),
|
4436
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
4476
|
+
t = C("div"), r = C("div"), n = C("div"), i = Ee("svg"), o = Ee("path"), s = V(), a = C("div"), h = C("span"), u = $(l), d = V(), c = C("div"), m = C("span"), g = $(y), F = V(), U.c(), w = V(), v = C("span"), x = Ee("svg"), O = Ee("path"), S = V(), I = C("div"), L = C("ul");
|
4477
|
+
for (let p = 0; p < f.length; p += 1)
|
4478
|
+
f[p].c();
|
4479
|
+
W = V(), j = C("button"), ie = $(ne), b(o, "id", "noun_filter_736223"), b(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"), b(o, "transform", "translate(-5 -6.2)"), b(o, "fill", "#fff"), b(i, "xmlns", "http://www.w3.org/2000/svg"), b(i, "width", "16"), b(i, "height", "16"), b(i, "viewBox", "0 0 16 16"), b(h, "class", "FilterName"), b(c, "class", "FilterValueContainer"), b(a, "class", "FilterTextContainer"), b(n, "class", "FilterMainArea"), b(O, "id", "arrow"), b(O, "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"), b(O, "transform", "translate(-274.511 -441.088)"), b(O, "fill", "#d1d1d1"), b(x, "xmlns", "http://www.w3.org/2000/svg"), b(x, "width", "14"), b(x, "height", "6.835"), b(x, "viewBox", "0 0 14 6.835"), b(v, "class", N = "TriangleInactive " + /*isFilterActive*/
|
4480
|
+
(e[4] ? "TriangleActive" : "")), b(r, "class", M = "FilterSelector " + /*isFilterActive*/
|
4481
|
+
(e[4] ? "FilterSelectorOpen" : "")), b(L, "class", "FilterDropdown"), b(j, "class", "ClearFilters"), j.disabled = K = /*fullSelection*/
|
4437
4482
|
e[7] && /*selectedVendorArray*/
|
4438
4483
|
e[6].length != /*vendorArray*/
|
4439
|
-
e[5].length,
|
4440
|
-
(e[4] ? "FilterOpen" : "")),
|
4484
|
+
e[5].length, b(I, "class", oe = "FilterDropdownContainer " + /*isFilterActive*/
|
4485
|
+
(e[4] ? "FilterOpen" : "")), b(t, "class", ee = "FilterContainer " + /*addfilterselector*/
|
4441
4486
|
(e[0] == "true" && /*addsortingselector*/
|
4442
4487
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4443
4488
|
},
|
4444
|
-
m(
|
4445
|
-
X(
|
4489
|
+
m(p, P) {
|
4490
|
+
X(p, t, P), _(t, r), _(r, n), _(n, i), _(i, o), _(n, s), _(n, a), _(a, h), _(h, u), _(a, d), _(a, c), _(c, m), _(m, g), _(c, F), U.m(c, null), _(r, w), _(r, v), _(v, x), _(x, O), _(t, S), _(t, I), _(I, L);
|
4446
4491
|
for (let A = 0; A < f.length; A += 1)
|
4447
|
-
f[A] && f[A].m(
|
4448
|
-
|
4492
|
+
f[A] && f[A].m(L, null);
|
4493
|
+
_(I, W), _(I, j), _(j, ie), se || (Ae = [
|
4449
4494
|
Re(
|
4450
4495
|
r,
|
4451
4496
|
"click",
|
4452
4497
|
/*click_handler*/
|
4453
|
-
e[
|
4498
|
+
e[23]
|
4454
4499
|
),
|
4455
4500
|
Re(
|
4456
4501
|
j,
|
4457
4502
|
"click",
|
4458
4503
|
/*click_handler_2*/
|
4459
|
-
e[
|
4504
|
+
e[26]
|
4460
4505
|
)
|
4461
4506
|
], se = !0);
|
4462
4507
|
},
|
4463
|
-
p(
|
4464
|
-
if (
|
4508
|
+
p(p, P) {
|
4509
|
+
if (P[0] & /*$_*/
|
4465
4510
|
2048 && l !== (l = /*$_*/
|
4466
|
-
|
4467
|
-
2048 &&
|
4468
|
-
|
4469
|
-
16 &&
|
4470
|
-
(
|
4471
|
-
16 &&
|
4472
|
-
(
|
4511
|
+
p[11]("filterby") + "") && q(u, l), P[0] & /*$_*/
|
4512
|
+
2048 && y !== (y = /*$_*/
|
4513
|
+
p[11]("providers") + "") && q(g, y), ae === (ae = Pe(p)) && U ? U.p(p, P) : (U.d(1), U = ae(p), U && (U.c(), U.m(c, null))), P[0] & /*isFilterActive*/
|
4514
|
+
16 && N !== (N = "TriangleInactive " + /*isFilterActive*/
|
4515
|
+
(p[4] ? "TriangleActive" : "")) && b(v, "class", N), P[0] & /*isFilterActive*/
|
4516
|
+
16 && M !== (M = "FilterSelector " + /*isFilterActive*/
|
4517
|
+
(p[4] ? "FilterSelectorOpen" : "")) && b(r, "class", M), P[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4473
4518
|
8228) {
|
4474
|
-
J =
|
4519
|
+
J = St(
|
4475
4520
|
/*vendorArray*/
|
4476
|
-
|
4521
|
+
p[5]
|
4477
4522
|
);
|
4478
4523
|
let A;
|
4479
4524
|
for (A = 0; A < J.length; A += 1) {
|
4480
|
-
const le =
|
4481
|
-
f[A] ? f[A].p(le,
|
4525
|
+
const le = zt(p, J, A);
|
4526
|
+
f[A] ? f[A].p(le, P) : (f[A] = Zt(le), f[A].c(), f[A].m(L, null));
|
4482
4527
|
}
|
4483
4528
|
for (; A < f.length; A += 1)
|
4484
4529
|
f[A].d(1);
|
4485
4530
|
f.length = J.length;
|
4486
4531
|
}
|
4487
|
-
|
4532
|
+
P[0] & /*$_*/
|
4488
4533
|
2048 && ne !== (ne = /*$_*/
|
4489
|
-
|
4534
|
+
p[11]("clear") + "") && q(ie, ne), P[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4490
4535
|
224 && K !== (K = /*fullSelection*/
|
4491
|
-
|
4492
|
-
|
4493
|
-
|
4536
|
+
p[7] && /*selectedVendorArray*/
|
4537
|
+
p[6].length != /*vendorArray*/
|
4538
|
+
p[5].length) && (j.disabled = K), P[0] & /*isFilterActive*/
|
4494
4539
|
16 && oe !== (oe = "FilterDropdownContainer " + /*isFilterActive*/
|
4495
|
-
(
|
4540
|
+
(p[4] ? "FilterOpen" : "")) && b(I, "class", oe), P[0] & /*addfilterselector, addsortingselector*/
|
4496
4541
|
3 && ee !== (ee = "FilterContainer " + /*addfilterselector*/
|
4497
|
-
(
|
4498
|
-
|
4542
|
+
(p[0] == "true" && /*addsortingselector*/
|
4543
|
+
p[1] == "true" ? "FilerContainerSplit" : "")) && b(t, "class", ee);
|
4499
4544
|
},
|
4500
|
-
d(
|
4501
|
-
|
4545
|
+
d(p) {
|
4546
|
+
p && k(t), U.d(), Ur(f, p), se = !1, Y(Ae);
|
4502
4547
|
}
|
4503
4548
|
};
|
4504
4549
|
}
|
4505
|
-
function
|
4550
|
+
function ho(e) {
|
4506
4551
|
let t, r = (
|
4507
4552
|
/*$_*/
|
4508
4553
|
e[11]("500") + ""
|
4509
4554
|
), n;
|
4510
4555
|
return {
|
4511
4556
|
c() {
|
4512
|
-
t =
|
4557
|
+
t = C("p"), n = $(r), b(t, "class", "SearchLoading");
|
4513
4558
|
},
|
4514
4559
|
m(i, o) {
|
4515
|
-
X(i, t, o),
|
4560
|
+
X(i, t, o), _(t, n);
|
4516
4561
|
},
|
4517
4562
|
p(i, o) {
|
4518
4563
|
o[0] & /*$_*/
|
@@ -4524,17 +4569,17 @@ function io(e) {
|
|
4524
4569
|
}
|
4525
4570
|
};
|
4526
4571
|
}
|
4527
|
-
function
|
4572
|
+
function co(e) {
|
4528
4573
|
let t, r;
|
4529
4574
|
return {
|
4530
4575
|
c() {
|
4531
|
-
t =
|
4576
|
+
t = C("span"), r = $(
|
4532
4577
|
/*selectionNumber*/
|
4533
4578
|
e[8]
|
4534
|
-
),
|
4579
|
+
), b(t, "class", "FilterCounter");
|
4535
4580
|
},
|
4536
4581
|
m(n, i) {
|
4537
|
-
X(n, t, i),
|
4582
|
+
X(n, t, i), _(t, r);
|
4538
4583
|
},
|
4539
4584
|
p(n, i) {
|
4540
4585
|
i[0] & /*selectionNumber*/
|
@@ -4549,17 +4594,17 @@ function oo(e) {
|
|
4549
4594
|
}
|
4550
4595
|
};
|
4551
4596
|
}
|
4552
|
-
function
|
4597
|
+
function fo(e) {
|
4553
4598
|
let t, r = (
|
4554
4599
|
/*$_*/
|
4555
4600
|
e[11]("all") + ""
|
4556
4601
|
), n;
|
4557
4602
|
return {
|
4558
4603
|
c() {
|
4559
|
-
t =
|
4604
|
+
t = C("span"), n = $(r), b(t, "class", "FilterCounter");
|
4560
4605
|
},
|
4561
4606
|
m(i, o) {
|
4562
|
-
X(i, t, o),
|
4607
|
+
X(i, t, o), _(t, n);
|
4563
4608
|
},
|
4564
4609
|
p(i, o) {
|
4565
4610
|
o[0] & /*$_*/
|
@@ -4571,27 +4616,27 @@ function so(e) {
|
|
4571
4616
|
}
|
4572
4617
|
};
|
4573
4618
|
}
|
4574
|
-
function
|
4619
|
+
function po(e) {
|
4575
4620
|
let t, r;
|
4576
4621
|
return {
|
4577
4622
|
c() {
|
4578
|
-
t =
|
4579
|
-
e[36].logo) ||
|
4623
|
+
t = C("img"), xt(t.src, r = /*vendor*/
|
4624
|
+
e[36].logo) || b(t, "src", r), b(t, "alt", "vendor logo");
|
4580
4625
|
},
|
4581
4626
|
m(n, i) {
|
4582
4627
|
X(n, t, i);
|
4583
4628
|
},
|
4584
4629
|
p(n, i) {
|
4585
4630
|
i[0] & /*vendorArray*/
|
4586
|
-
32 && !
|
4587
|
-
n[36].logo) &&
|
4631
|
+
32 && !xt(t.src, r = /*vendor*/
|
4632
|
+
n[36].logo) && b(t, "src", r);
|
4588
4633
|
},
|
4589
4634
|
d(n) {
|
4590
4635
|
n && k(t);
|
4591
4636
|
}
|
4592
4637
|
};
|
4593
4638
|
}
|
4594
|
-
function
|
4639
|
+
function mo(e) {
|
4595
4640
|
let t, r, n = (
|
4596
4641
|
/*vendor*/
|
4597
4642
|
e[36].name + ""
|
@@ -4601,27 +4646,27 @@ function lo(e) {
|
|
4601
4646
|
), l, u;
|
4602
4647
|
return {
|
4603
4648
|
c() {
|
4604
|
-
t =
|
4649
|
+
t = C("div"), r = C("span"), i = $(n), o = V(), s = C("span"), a = $("("), l = $(h), u = $(")"), b(r, "class", "VendorName"), b(t, "class", "FilterItemLabel");
|
4605
4650
|
},
|
4606
|
-
m(
|
4607
|
-
X(
|
4651
|
+
m(d, c) {
|
4652
|
+
X(d, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, u);
|
4608
4653
|
},
|
4609
|
-
p(
|
4654
|
+
p(d, c) {
|
4610
4655
|
c[0] & /*vendorArray*/
|
4611
4656
|
32 && n !== (n = /*vendor*/
|
4612
|
-
|
4657
|
+
d[36].name + "") && q(i, n), c[0] & /*vendorArray*/
|
4613
4658
|
32 && h !== (h = /*vendor*/
|
4614
|
-
|
4659
|
+
d[36].games.count + "") && q(l, h);
|
4615
4660
|
},
|
4616
|
-
d(
|
4617
|
-
|
4661
|
+
d(d) {
|
4662
|
+
d && k(t);
|
4618
4663
|
}
|
4619
4664
|
};
|
4620
4665
|
}
|
4621
|
-
function
|
4622
|
-
let t, r, n, i, o, s, a, h, l, u,
|
4666
|
+
function Zt(e) {
|
4667
|
+
let t, r, n, i, o, s, a, h, l, u, d, c;
|
4623
4668
|
function m() {
|
4624
|
-
e[
|
4669
|
+
e[24].call(
|
4625
4670
|
n,
|
4626
4671
|
/*each_value*/
|
4627
4672
|
e[37],
|
@@ -4629,73 +4674,73 @@ function Xt(e) {
|
|
4629
4674
|
e[38]
|
4630
4675
|
);
|
4631
4676
|
}
|
4632
|
-
function
|
4677
|
+
function y() {
|
4633
4678
|
return (
|
4634
4679
|
/*click_handler_1*/
|
4635
|
-
e[
|
4680
|
+
e[25](
|
4636
4681
|
/*vendor*/
|
4637
4682
|
e[36]
|
4638
4683
|
)
|
4639
4684
|
);
|
4640
4685
|
}
|
4641
|
-
function
|
4686
|
+
function g(v, x) {
|
4642
4687
|
if (
|
4643
4688
|
/*filterbylogo*/
|
4644
|
-
|
4645
|
-
) return
|
4689
|
+
v[2] === "false"
|
4690
|
+
) return mo;
|
4646
4691
|
if (
|
4647
4692
|
/*filterbylogo*/
|
4648
|
-
|
4649
|
-
) return
|
4693
|
+
v[2] === "true"
|
4694
|
+
) return po;
|
4650
4695
|
}
|
4651
|
-
let
|
4696
|
+
let F = g(e), w = F && F(e);
|
4652
4697
|
return {
|
4653
4698
|
c() {
|
4654
|
-
t =
|
4655
|
-
e[36].name,
|
4699
|
+
t = C("li"), r = C("label"), n = C("input"), o = V(), s = C("span"), a = V(), w && w.c(), h = V(), b(n, "type", "checkbox"), b(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
4700
|
+
e[36].name, Et(n, n.__value), b(s, "class", "FiltersCheckmark"), b(r, "class", "FilterLabel"), b(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4656
4701
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = u = /*vendor*/
|
4657
4702
|
e[36].name;
|
4658
4703
|
},
|
4659
|
-
m(
|
4660
|
-
X(
|
4661
|
-
e[36].isFilterSelected,
|
4704
|
+
m(v, x) {
|
4705
|
+
X(v, t, x), _(t, r), _(r, n), n.checked = /*vendor*/
|
4706
|
+
e[36].isFilterSelected, _(r, o), _(r, s), _(r, a), w && w.m(r, null), _(t, h), d || (c = [
|
4662
4707
|
Re(n, "change", m),
|
4663
|
-
Re(n, "click",
|
4664
|
-
],
|
4708
|
+
Re(n, "click", y)
|
4709
|
+
], d = !0);
|
4665
4710
|
},
|
4666
|
-
p(
|
4667
|
-
e =
|
4711
|
+
p(v, x) {
|
4712
|
+
e = v, x[0] & /*vendorArray*/
|
4668
4713
|
32 && i !== (i = /*vendor*/
|
4669
|
-
e[36].name) && (n.__value = i,
|
4714
|
+
e[36].name) && (n.__value = i, Et(n, n.__value)), x[0] & /*vendorArray*/
|
4670
4715
|
32 && (n.checked = /*vendor*/
|
4671
|
-
e[36].isFilterSelected),
|
4716
|
+
e[36].isFilterSelected), F === (F = g(e)) && w ? w.p(e, x) : (w && w.d(1), w = F && F(e), w && (w.c(), w.m(r, null))), x[0] & /*filterbylogo*/
|
4672
4717
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4673
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
4718
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && b(t, "class", l), x[0] & /*vendorArray*/
|
4674
4719
|
32 && u !== (u = /*vendor*/
|
4675
4720
|
e[36].name) && (t.value = u);
|
4676
4721
|
},
|
4677
|
-
d(
|
4678
|
-
|
4722
|
+
d(v) {
|
4723
|
+
v && k(t), w && w.d(), d = !1, Y(c);
|
4679
4724
|
}
|
4680
4725
|
};
|
4681
4726
|
}
|
4682
|
-
function
|
4727
|
+
function bo(e) {
|
4683
4728
|
let t;
|
4684
4729
|
function r(o, s) {
|
4685
4730
|
if (
|
4686
4731
|
/*hasErrors*/
|
4687
4732
|
o[10]
|
4688
|
-
) return
|
4733
|
+
) return ho;
|
4689
4734
|
if (!/*isLoading*/
|
4690
|
-
o[9]) return
|
4735
|
+
o[9]) return uo;
|
4691
4736
|
}
|
4692
4737
|
let n = r(e), i = n && n(e);
|
4693
4738
|
return {
|
4694
4739
|
c() {
|
4695
|
-
t =
|
4740
|
+
t = C("div"), i && i.c();
|
4696
4741
|
},
|
4697
4742
|
m(o, s) {
|
4698
|
-
X(o, t, s), i && i.m(t, null), e[
|
4743
|
+
X(o, t, s), i && i.m(t, null), e[27](t);
|
4699
4744
|
},
|
4700
4745
|
p(o, s) {
|
4701
4746
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
@@ -4703,106 +4748,92 @@ function uo(e) {
|
|
4703
4748
|
i: G,
|
4704
4749
|
o: G,
|
4705
4750
|
d(o) {
|
4706
|
-
o && k(t), i && i.d(), e[
|
4751
|
+
o && k(t), i && i.d(), e[27](null);
|
4707
4752
|
}
|
4708
4753
|
};
|
4709
4754
|
}
|
4710
|
-
function
|
4755
|
+
function go(e, t, r) {
|
4711
4756
|
let n;
|
4712
|
-
|
4713
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector:
|
4714
|
-
|
4715
|
-
const
|
4716
|
-
fetch(a).then((
|
4717
|
-
Object.keys(
|
4718
|
-
|
4757
|
+
Nr(e, to, (f) => r(11, n = f));
|
4758
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector: d = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: m = "false" } = t, { mbsource: y } = t, g = !1, F = window.navigator.userAgent, w = [], v = [], x = {}, O = !1, N = 0, M = !0, S, I = !1, L;
|
4759
|
+
ao({ withLocale: "en", translations: {} });
|
4760
|
+
const W = () => {
|
4761
|
+
fetch(a).then((p) => p.json()).then((p) => {
|
4762
|
+
Object.keys(p).forEach((P) => {
|
4763
|
+
Xt(P, p[P]);
|
4719
4764
|
});
|
4720
|
-
}).catch((
|
4721
|
-
console.log(
|
4722
|
-
});
|
4723
|
-
};
|
4724
|
-
Object.keys(jt).forEach((f) => {
|
4725
|
-
kt(f, jt[f]);
|
4726
|
-
});
|
4727
|
-
const M = () => {
|
4728
|
-
let f = document.createElement("style");
|
4729
|
-
f.innerHTML = h, O.appendChild(f);
|
4730
|
-
}, W = () => {
|
4731
|
-
let f = document.createElement("style");
|
4732
|
-
fetch(new URL(l)).then((d) => d.text()).then((d) => {
|
4733
|
-
f.innerHTML = d, setTimeout(
|
4734
|
-
() => {
|
4735
|
-
O.appendChild(f);
|
4736
|
-
},
|
4737
|
-
1
|
4738
|
-
);
|
4765
|
+
}).catch((p) => {
|
4766
|
+
console.log(p);
|
4739
4767
|
});
|
4740
4768
|
};
|
4741
|
-
|
4769
|
+
Object.keys(Wt).forEach((f) => {
|
4770
|
+
Xt(f, Wt[f]);
|
4771
|
+
}), x[u] && (x = { [u]: [] });
|
4742
4772
|
const j = () => {
|
4743
|
-
r(4,
|
4744
|
-
}, ne = (f) => (r(9,
|
4773
|
+
r(4, g = !g), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4774
|
+
}, ne = (f) => (r(9, M = !0), new Promise((p, P) => {
|
4745
4775
|
fetch(f).then((A) => A.json()).then((A) => {
|
4746
|
-
A = A.items,
|
4776
|
+
A = A.items, p(A.items), r(6, v = []);
|
4747
4777
|
let le = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4748
|
-
A.forEach((
|
4749
|
-
le || (le = { currentCategoryId: [] }), le[u]?.indexOf(
|
4750
|
-
}), r(5,
|
4778
|
+
A.forEach((Fe) => {
|
4779
|
+
le || (le = { currentCategoryId: [] }), le[u]?.indexOf(Fe.id) >= 0 ? (Fe.isFilterSelected = !0, v.push(Fe)) : Fe.isFilterSelected = !1;
|
4780
|
+
}), r(5, w = A), K();
|
4751
4781
|
}).catch((A) => {
|
4752
|
-
console.error(A), r(10,
|
4782
|
+
console.error(A), r(10, I = !0), P(A);
|
4753
4783
|
}).finally(() => {
|
4754
|
-
r(9,
|
4784
|
+
r(9, M = !1);
|
4755
4785
|
});
|
4756
4786
|
})), ie = (f) => {
|
4757
|
-
let
|
4758
|
-
f.isFilterSelected = !f.isFilterSelected, !v.length || v.filter((
|
4759
|
-
[u]: v.map((
|
4760
|
-
})) : (
|
4787
|
+
let p = localStorage.getItem("vendorFiltersByCategory");
|
4788
|
+
f.isFilterSelected = !f.isFilterSelected, !v.length || v.filter((P) => P.name === f.name).length == 0 ? v.push(f) : r(6, v = v.filter((P) => P.name !== f.name)), p == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
|
4789
|
+
[u]: v.map((P) => P.id)
|
4790
|
+
})) : (p = JSON.parse(p), p[u] = v.map((P) => P.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(p))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), K();
|
4761
4791
|
}, K = () => {
|
4762
|
-
r(7,
|
4792
|
+
r(7, O = v.length === w.length || v.length == 0), r(8, N = v.length);
|
4763
4793
|
}, oe = () => {
|
4764
4794
|
const f = new URL(`${i}/v1/casino/vendors`);
|
4765
|
-
r(4,
|
4795
|
+
r(4, g = !1), f.searchParams.append("fields", "id,name,logo,subVendors,games"), f.searchParams.append("language", s), f.searchParams.append("datasource", o), f.searchParams.append("platform", no(F)), (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})`), ne(f);
|
4766
4796
|
}, ee = () => {
|
4767
|
-
r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(
|
4797
|
+
r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
|
4768
4798
|
[u]: v.map((f) => f.id)
|
4769
|
-
})),
|
4799
|
+
})), w.forEach((f) => f.isFilterSelected = !1), r(5, w), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, O = !0), r(4, g = !1);
|
4770
4800
|
}, se = (f) => {
|
4771
|
-
f.data.type == "SortingOpened" && r(4,
|
4801
|
+
f.data.type == "SortingOpened" && r(4, g = !1);
|
4772
4802
|
};
|
4773
|
-
|
4774
|
-
window.removeEventListener("message", se);
|
4803
|
+
jr(() => (window.addEventListener("message", se, !1), () => {
|
4804
|
+
window.emMessageBus != null && L && L.unsubscribe(), window.removeEventListener("message", se);
|
4775
4805
|
}));
|
4776
4806
|
const Ae = () => j();
|
4777
|
-
function Pe(f,
|
4778
|
-
f[
|
4807
|
+
function Pe(f, p) {
|
4808
|
+
f[p].isFilterSelected = this.checked, r(5, w);
|
4779
4809
|
}
|
4780
|
-
const ae = (f) => ie(f),
|
4810
|
+
const ae = (f) => ie(f), U = () => ee();
|
4781
4811
|
function J(f) {
|
4782
|
-
|
4783
|
-
|
4812
|
+
Ke[f ? "unshift" : "push"](() => {
|
4813
|
+
S = f, r(3, S);
|
4784
4814
|
});
|
4785
4815
|
}
|
4786
4816
|
return e.$$set = (f) => {
|
4787
|
-
"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,
|
4817
|
+
"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, d = f.addfilterselector), "addsortingselector" in f && r(1, c = f.addsortingselector), "filterbylogo" in f && r(2, m = f.filterbylogo), "mbsource" in f && r(22, y = f.mbsource);
|
4788
4818
|
}, e.$$.update = () => {
|
4789
4819
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4790
4820
|
2195460 && i && o && u && m && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4791
|
-
524296 && h &&
|
4792
|
-
1048584 && l &&
|
4793
|
-
|
4821
|
+
524296 && h && S && io(S, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4822
|
+
1048584 && l && S && oo(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4823
|
+
4194312 && S && so(S, `${y}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4824
|
+
262144 && a && W();
|
4794
4825
|
}, [
|
4795
|
-
|
4826
|
+
d,
|
4796
4827
|
c,
|
4797
4828
|
m,
|
4798
|
-
|
4799
|
-
|
4800
|
-
|
4829
|
+
S,
|
4830
|
+
g,
|
4831
|
+
w,
|
4801
4832
|
v,
|
4802
|
-
|
4833
|
+
O,
|
4803
4834
|
N,
|
4804
|
-
|
4805
|
-
|
4835
|
+
M,
|
4836
|
+
I,
|
4806
4837
|
n,
|
4807
4838
|
j,
|
4808
4839
|
ie,
|
@@ -4814,21 +4845,22 @@ function ho(e, t, r) {
|
|
4814
4845
|
h,
|
4815
4846
|
l,
|
4816
4847
|
u,
|
4848
|
+
y,
|
4817
4849
|
Ae,
|
4818
4850
|
Pe,
|
4819
4851
|
ae,
|
4820
|
-
|
4852
|
+
U,
|
4821
4853
|
J
|
4822
4854
|
];
|
4823
4855
|
}
|
4824
|
-
class
|
4856
|
+
class Or extends Yr {
|
4825
4857
|
constructor(t) {
|
4826
|
-
super(),
|
4858
|
+
super(), Qr(
|
4827
4859
|
this,
|
4828
4860
|
t,
|
4829
|
-
|
4830
|
-
|
4831
|
-
|
4861
|
+
go,
|
4862
|
+
bo,
|
4863
|
+
Qt,
|
4832
4864
|
{
|
4833
4865
|
endpoint: 15,
|
4834
4866
|
datasource: 16,
|
@@ -4839,9 +4871,10 @@ class Cr extends Zr {
|
|
4839
4871
|
categoryid: 21,
|
4840
4872
|
addfilterselector: 0,
|
4841
4873
|
addsortingselector: 1,
|
4842
|
-
filterbylogo: 2
|
4874
|
+
filterbylogo: 2,
|
4875
|
+
mbsource: 22
|
4843
4876
|
},
|
4844
|
-
|
4877
|
+
lo,
|
4845
4878
|
[-1, -1]
|
4846
4879
|
);
|
4847
4880
|
}
|
@@ -4905,49 +4938,58 @@ class Cr extends Zr {
|
|
4905
4938
|
set filterbylogo(t) {
|
4906
4939
|
this.$$set({ filterbylogo: t }), D();
|
4907
4940
|
}
|
4941
|
+
get mbsource() {
|
4942
|
+
return this.$$.ctx[22];
|
4943
|
+
}
|
4944
|
+
set mbsource(t) {
|
4945
|
+
this.$$set({ mbsource: t }), D();
|
4946
|
+
}
|
4908
4947
|
}
|
4909
|
-
|
4910
|
-
const
|
4948
|
+
qr(Or, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {} }, [], [], !0);
|
4949
|
+
const Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4911
4950
|
__proto__: null,
|
4912
|
-
default:
|
4951
|
+
default: Or
|
4913
4952
|
}, Symbol.toStringTag, { value: "Module" }));
|
4914
4953
|
export {
|
4915
4954
|
te as $,
|
4916
|
-
|
4917
|
-
|
4918
|
-
|
4919
|
-
|
4920
|
-
|
4921
|
-
|
4922
|
-
|
4923
|
-
|
4924
|
-
|
4925
|
-
|
4926
|
-
|
4927
|
-
|
4928
|
-
|
4929
|
-
|
4930
|
-
|
4931
|
-
|
4955
|
+
so as A,
|
4956
|
+
St as B,
|
4957
|
+
Ur as C,
|
4958
|
+
to as D,
|
4959
|
+
Eo as E,
|
4960
|
+
Ee as F,
|
4961
|
+
To as G,
|
4962
|
+
xo as H,
|
4963
|
+
So as I,
|
4964
|
+
vo as J,
|
4965
|
+
wo as K,
|
4966
|
+
ve as L,
|
4967
|
+
Ho as M,
|
4968
|
+
Yr as S,
|
4969
|
+
Pr as a,
|
4970
|
+
Mr as b,
|
4971
|
+
qr as c,
|
4972
|
+
V as d,
|
4973
|
+
C as e,
|
4932
4974
|
D as f,
|
4933
|
-
|
4934
|
-
|
4935
|
-
|
4936
|
-
|
4937
|
-
|
4938
|
-
|
4939
|
-
|
4975
|
+
xt as g,
|
4976
|
+
b as h,
|
4977
|
+
Qr as i,
|
4978
|
+
_o as j,
|
4979
|
+
X as k,
|
4980
|
+
_ as l,
|
4981
|
+
q as m,
|
4940
4982
|
G as n,
|
4941
|
-
|
4942
|
-
|
4943
|
-
|
4944
|
-
|
4945
|
-
|
4946
|
-
|
4947
|
-
|
4948
|
-
|
4949
|
-
|
4950
|
-
|
4951
|
-
|
4952
|
-
|
4983
|
+
k as o,
|
4984
|
+
Nr as p,
|
4985
|
+
jr as q,
|
4986
|
+
oo as r,
|
4987
|
+
Qt as s,
|
4988
|
+
$ as t,
|
4989
|
+
Re as u,
|
4990
|
+
yo as v,
|
4991
|
+
ro as w,
|
4992
|
+
no as x,
|
4993
|
+
Ke as y,
|
4994
|
+
io as z
|
4953
4995
|
};
|