@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,17 +1,17 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var We = (e, t, r) => t in e ?
|
1
|
+
var Gr = Object.defineProperty, kr = Object.defineProperties;
|
2
|
+
var jr = Object.getOwnPropertyDescriptors;
|
3
|
+
var wt = Object.getOwnPropertySymbols;
|
4
|
+
var Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var We = (e, t, r) => t in e ? Gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, St = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Vr.call(t, r) && We(e, r, t[r]);
|
8
|
+
if (wt)
|
9
|
+
for (var r of wt(t))
|
10
|
+
Xr.call(t, r) && We(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
12
|
+
}, Tt = (e, t) => kr(e, jr(t));
|
13
13
|
var R = (e, t, r) => We(e, typeof t != "symbol" ? t + "" : t, r);
|
14
|
-
var
|
14
|
+
var Ht = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (u) => {
|
16
16
|
try {
|
17
17
|
a(r.next(u));
|
@@ -29,29 +29,29 @@ var wt = (e, t, r) => new Promise((n, i) => {
|
|
29
29
|
});
|
30
30
|
function k() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function rr(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function At() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
38
|
function K(e) {
|
39
|
-
e.forEach(
|
39
|
+
e.forEach(rr);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function gt(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function nr(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
47
|
let Be;
|
48
|
-
function
|
48
|
+
function Pt(e, t) {
|
49
49
|
return e === t ? !0 : (Be || (Be = document.createElement("a")), Be.href = t, e === Be.href);
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function Wr(e) {
|
52
52
|
return Object.keys(e).length === 0;
|
53
53
|
}
|
54
|
-
function
|
54
|
+
function ir(e, ...t) {
|
55
55
|
if (e == null) {
|
56
56
|
for (const n of t)
|
57
57
|
n(void 0);
|
@@ -60,20 +60,20 @@ function tr(e, ...t) {
|
|
60
60
|
const r = e.subscribe(...t);
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
62
62
|
}
|
63
|
-
function
|
64
|
-
e.$$.on_destroy.push(
|
63
|
+
function zr(e, t, r) {
|
64
|
+
e.$$.on_destroy.push(ir(t, r));
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function _(e, t) {
|
67
67
|
e.appendChild(t);
|
68
68
|
}
|
69
|
-
function
|
70
|
-
const n =
|
69
|
+
function Zr(e, t, r) {
|
70
|
+
const n = Jr(e);
|
71
71
|
if (!n.getElementById(t)) {
|
72
|
-
const i =
|
73
|
-
i.id = t, i.textContent = r,
|
72
|
+
const i = C("style");
|
73
|
+
i.id = t, i.textContent = r, Qr(n, i);
|
74
74
|
}
|
75
75
|
}
|
76
|
-
function
|
76
|
+
function Jr(e) {
|
77
77
|
if (!e) return document;
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
79
79
|
return t && /** @type {ShadowRoot} */
|
@@ -82,8 +82,8 @@ function Xr(e) {
|
|
82
82
|
t
|
83
83
|
) : e.ownerDocument;
|
84
84
|
}
|
85
|
-
function
|
86
|
-
return
|
85
|
+
function Qr(e, t) {
|
86
|
+
return _(
|
87
87
|
/** @type {Document} */
|
88
88
|
e.head || e,
|
89
89
|
t
|
@@ -95,11 +95,11 @@ function W(e, t, r) {
|
|
95
95
|
function j(e) {
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
97
97
|
}
|
98
|
-
function
|
98
|
+
function qr(e, t) {
|
99
99
|
for (let r = 0; r < e.length; r += 1)
|
100
100
|
e[r] && e[r].d(t);
|
101
101
|
}
|
102
|
-
function
|
102
|
+
function C(e) {
|
103
103
|
return document.createElement(e);
|
104
104
|
}
|
105
105
|
function we(e) {
|
@@ -111,33 +111,33 @@ function G(e) {
|
|
111
111
|
function X() {
|
112
112
|
return G(" ");
|
113
113
|
}
|
114
|
-
function
|
114
|
+
function Bo() {
|
115
115
|
return G("");
|
116
116
|
}
|
117
|
-
function
|
117
|
+
function De(e, t, r, n) {
|
118
118
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
119
119
|
}
|
120
|
-
function
|
120
|
+
function b(e, t, r) {
|
121
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
122
122
|
}
|
123
|
-
function
|
123
|
+
function Io(e, t, r) {
|
124
124
|
const n = t.toLowerCase();
|
125
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
125
|
+
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);
|
126
126
|
}
|
127
|
-
function
|
127
|
+
function Yr(e) {
|
128
128
|
return Array.from(e.childNodes);
|
129
129
|
}
|
130
130
|
function Y(e, t) {
|
131
131
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
132
132
|
t);
|
133
133
|
}
|
134
|
-
function
|
134
|
+
function Ft(e, t) {
|
135
135
|
e.value = t == null ? "" : t;
|
136
136
|
}
|
137
|
-
function
|
137
|
+
function Oo(e, t, r) {
|
138
138
|
e.classList.toggle(t, !!r);
|
139
139
|
}
|
140
|
-
class
|
140
|
+
class Lo {
|
141
141
|
constructor(t = !1) {
|
142
142
|
/**
|
143
143
|
* @private
|
@@ -171,7 +171,7 @@ class Po {
|
|
171
171
|
this.e || (this.is_svg ? this.e = we(
|
172
172
|
/** @type {keyof SVGElementTagNameMap} */
|
173
173
|
r.nodeName
|
174
|
-
) : this.e =
|
174
|
+
) : this.e = C(
|
175
175
|
/** @type {keyof HTMLElementTagNameMap} */
|
176
176
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
177
177
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
@@ -207,7 +207,7 @@ class Po {
|
|
207
207
|
this.n.forEach(j);
|
208
208
|
}
|
209
209
|
}
|
210
|
-
function
|
210
|
+
function Kr(e) {
|
211
211
|
const t = {};
|
212
212
|
return e.childNodes.forEach(
|
213
213
|
/** @param {Element} node */
|
@@ -220,25 +220,25 @@ let Te;
|
|
220
220
|
function Se(e) {
|
221
221
|
Te = e;
|
222
222
|
}
|
223
|
-
function
|
223
|
+
function en() {
|
224
224
|
if (!Te) throw new Error("Function called outside component initialization");
|
225
225
|
return Te;
|
226
226
|
}
|
227
|
-
function
|
228
|
-
|
227
|
+
function tn(e) {
|
228
|
+
en().$$.on_mount.push(e);
|
229
229
|
}
|
230
|
-
const fe = [],
|
231
|
-
let
|
232
|
-
const
|
233
|
-
let
|
234
|
-
function
|
235
|
-
|
230
|
+
const fe = [], tt = [];
|
231
|
+
let de = [];
|
232
|
+
const Ct = [], or = /* @__PURE__ */ Promise.resolve();
|
233
|
+
let rt = !1;
|
234
|
+
function sr() {
|
235
|
+
rt || (rt = !0, or.then(U));
|
236
236
|
}
|
237
|
-
function
|
238
|
-
return
|
237
|
+
function No() {
|
238
|
+
return sr(), or;
|
239
239
|
}
|
240
|
-
function
|
241
|
-
|
240
|
+
function nt(e) {
|
241
|
+
de.push(e);
|
242
242
|
}
|
243
243
|
const ze = /* @__PURE__ */ new Set();
|
244
244
|
let he = 0;
|
@@ -250,83 +250,83 @@ function U() {
|
|
250
250
|
try {
|
251
251
|
for (; he < fe.length; ) {
|
252
252
|
const t = fe[he];
|
253
|
-
he++, Se(t),
|
253
|
+
he++, Se(t), rn(t.$$);
|
254
254
|
}
|
255
255
|
} catch (t) {
|
256
256
|
throw fe.length = 0, he = 0, t;
|
257
257
|
}
|
258
|
-
for (Se(null), fe.length = 0, he = 0;
|
259
|
-
for (let t = 0; t <
|
260
|
-
const r =
|
258
|
+
for (Se(null), fe.length = 0, he = 0; tt.length; ) tt.pop()();
|
259
|
+
for (let t = 0; t < de.length; t += 1) {
|
260
|
+
const r = de[t];
|
261
261
|
ze.has(r) || (ze.add(r), r());
|
262
262
|
}
|
263
|
-
|
263
|
+
de.length = 0;
|
264
264
|
} while (fe.length);
|
265
|
-
for (;
|
266
|
-
|
267
|
-
|
265
|
+
for (; Ct.length; )
|
266
|
+
Ct.pop()();
|
267
|
+
rt = !1, ze.clear(), Se(e);
|
268
268
|
}
|
269
|
-
function
|
269
|
+
function rn(e) {
|
270
270
|
if (e.fragment !== null) {
|
271
271
|
e.update(), K(e.before_update);
|
272
272
|
const t = e.dirty;
|
273
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
273
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(nt);
|
274
274
|
}
|
275
275
|
}
|
276
|
-
function
|
276
|
+
function nn(e) {
|
277
277
|
const t = [], r = [];
|
278
|
-
|
278
|
+
de.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), de = t;
|
279
279
|
}
|
280
|
-
const
|
281
|
-
function
|
282
|
-
e && e.i && (
|
280
|
+
const on = /* @__PURE__ */ new Set();
|
281
|
+
function ar(e, t) {
|
282
|
+
e && e.i && (on.delete(e), e.i(t));
|
283
283
|
}
|
284
|
-
function
|
284
|
+
function Bt(e) {
|
285
285
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
286
286
|
}
|
287
|
-
function
|
287
|
+
function Mo(e, t) {
|
288
288
|
e.d(1), t.delete(e.key);
|
289
289
|
}
|
290
|
-
function
|
291
|
-
let c = e.length, m = o.length,
|
292
|
-
const
|
293
|
-
for (;
|
294
|
-
const
|
295
|
-
for (
|
296
|
-
const
|
297
|
-
let
|
298
|
-
|
290
|
+
function Ro(e, t, r, n, i, o, s, a, u, l, h, d) {
|
291
|
+
let c = e.length, m = o.length, y = c;
|
292
|
+
const g = {};
|
293
|
+
for (; y--; ) g[e[y].key] = y;
|
294
|
+
const F = [], w = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), x = [];
|
295
|
+
for (y = m; y--; ) {
|
296
|
+
const S = d(i, o, y), I = r(S);
|
297
|
+
let L = s.get(I);
|
298
|
+
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]));
|
299
299
|
}
|
300
|
-
const
|
301
|
-
function
|
302
|
-
|
300
|
+
const O = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
|
301
|
+
function M(S) {
|
302
|
+
ar(S, 1), S.m(a, h), s.set(S.key, S), h = S.first, m--;
|
303
303
|
}
|
304
304
|
for (; c && m; ) {
|
305
|
-
const
|
306
|
-
|
305
|
+
const S = F[m - 1], I = e[c - 1], L = S.key, z = I.key;
|
306
|
+
S === I ? (h = S.first, c--, m--) : w.has(z) ? !s.has(L) || O.has(L) ? M(S) : N.has(z) ? c-- : v.get(L) > v.get(z) ? (N.add(L), M(S)) : (O.add(z), c--) : (u(I, s), c--);
|
307
307
|
}
|
308
308
|
for (; c--; ) {
|
309
|
-
const
|
310
|
-
|
309
|
+
const S = e[c];
|
310
|
+
w.has(S.key) || u(S, s);
|
311
311
|
}
|
312
|
-
for (; m; )
|
313
|
-
return K(
|
312
|
+
for (; m; ) M(F[m - 1]);
|
313
|
+
return K(x), F;
|
314
314
|
}
|
315
|
-
function
|
315
|
+
function sn(e, t, r) {
|
316
316
|
const { fragment: n, after_update: i } = e.$$;
|
317
|
-
n && n.m(t, r),
|
318
|
-
const o = e.$$.on_mount.map(
|
317
|
+
n && n.m(t, r), nt(() => {
|
318
|
+
const o = e.$$.on_mount.map(rr).filter(gt);
|
319
319
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
320
|
-
}), i.forEach(
|
320
|
+
}), i.forEach(nt);
|
321
321
|
}
|
322
|
-
function
|
322
|
+
function an(e, t) {
|
323
323
|
const r = e.$$;
|
324
|
-
r.fragment !== null && (
|
324
|
+
r.fragment !== null && (nn(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
325
325
|
}
|
326
|
-
function
|
327
|
-
e.$$.dirty[0] === -1 && (fe.push(e),
|
326
|
+
function ln(e, t) {
|
327
|
+
e.$$.dirty[0] === -1 && (fe.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
328
328
|
}
|
329
|
-
function
|
329
|
+
function un(e, t, r, n, i, o, s = null, a = [-1]) {
|
330
330
|
const u = Te;
|
331
331
|
Se(e);
|
332
332
|
const l = e.$$ = {
|
@@ -336,7 +336,7 @@ function on(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
336
336
|
props: o,
|
337
337
|
update: k,
|
338
338
|
not_equal: i,
|
339
|
-
bound:
|
339
|
+
bound: At(),
|
340
340
|
// lifecycle
|
341
341
|
on_mount: [],
|
342
342
|
on_destroy: [],
|
@@ -345,28 +345,28 @@ function on(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
345
345
|
after_update: [],
|
346
346
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
347
347
|
// everything else
|
348
|
-
callbacks:
|
348
|
+
callbacks: At(),
|
349
349
|
dirty: a,
|
350
350
|
skip_bound: !1,
|
351
351
|
root: t.target || u.$$.root
|
352
352
|
};
|
353
353
|
s && s(l.root);
|
354
354
|
let h = !1;
|
355
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
356
|
-
const
|
357
|
-
return l.ctx && i(l.ctx[
|
355
|
+
if (l.ctx = r ? r(e, t.props || {}, (d, c, ...m) => {
|
356
|
+
const y = m.length ? m[0] : c;
|
357
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = y) && (!l.skip_bound && l.bound[d] && l.bound[d](y), h && ln(e, d)), c;
|
358
358
|
}) : [], l.update(), h = !0, K(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
359
359
|
if (t.hydrate) {
|
360
|
-
const
|
361
|
-
l.fragment && l.fragment.l(
|
360
|
+
const d = Yr(t.target);
|
361
|
+
l.fragment && l.fragment.l(d), d.forEach(j);
|
362
362
|
} else
|
363
363
|
l.fragment && l.fragment.c();
|
364
|
-
t.intro &&
|
364
|
+
t.intro && ar(e.$$.fragment), sn(e, t.target, t.anchor), U();
|
365
365
|
}
|
366
366
|
Se(u);
|
367
367
|
}
|
368
|
-
let
|
369
|
-
typeof HTMLElement == "function" && (
|
368
|
+
let lr;
|
369
|
+
typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
370
370
|
constructor(t, r, n) {
|
371
371
|
super();
|
372
372
|
/** The Svelte component constructor */
|
@@ -403,14 +403,14 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
403
403
|
}
|
404
404
|
}
|
405
405
|
connectedCallback() {
|
406
|
-
return
|
406
|
+
return Ht(this, null, function* () {
|
407
407
|
if (this.$$cn = !0, !this.$$c) {
|
408
408
|
let t = function(o) {
|
409
409
|
return () => {
|
410
410
|
let s;
|
411
411
|
return {
|
412
412
|
c: function() {
|
413
|
-
s =
|
413
|
+
s = C("slot"), o !== "default" && b(s, "name", o);
|
414
414
|
},
|
415
415
|
/**
|
416
416
|
* @param {HTMLElement} target
|
@@ -427,7 +427,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
427
427
|
};
|
428
428
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
429
429
|
return;
|
430
|
-
const r = {}, n =
|
430
|
+
const r = {}, n = Kr(this);
|
431
431
|
for (const o of this.$$s)
|
432
432
|
o in n && (r[o] = [t(o)]);
|
433
433
|
for (const o of this.attributes) {
|
@@ -438,7 +438,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
438
438
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
439
439
|
this.$$c = new this.$$ctor({
|
440
440
|
target: this.shadowRoot || this,
|
441
|
-
props:
|
441
|
+
props: Tt(St({}, this.$$d), {
|
442
442
|
$$slots: r,
|
443
443
|
$$scope: {
|
444
444
|
ctx: []
|
@@ -516,8 +516,8 @@ function Le(e, t, r, n) {
|
|
516
516
|
return t;
|
517
517
|
}
|
518
518
|
}
|
519
|
-
function
|
520
|
-
let s = class extends
|
519
|
+
function hn(e, t, r, n, i, o) {
|
520
|
+
let s = class extends lr {
|
521
521
|
constructor() {
|
522
522
|
super(e, r, i), this.$$p_d = t;
|
523
523
|
}
|
@@ -547,7 +547,7 @@ function sn(e, t, r, n, i, o) {
|
|
547
547
|
}), e.element = /** @type {any} */
|
548
548
|
s, s;
|
549
549
|
}
|
550
|
-
class
|
550
|
+
class cn {
|
551
551
|
constructor() {
|
552
552
|
/**
|
553
553
|
* ### PRIVATE API
|
@@ -568,7 +568,7 @@ class an {
|
|
568
568
|
}
|
569
569
|
/** @returns {void} */
|
570
570
|
$destroy() {
|
571
|
-
|
571
|
+
an(this, 1), this.$destroy = k;
|
572
572
|
}
|
573
573
|
/**
|
574
574
|
* @template {Extract<keyof Events, string>} K
|
@@ -577,7 +577,7 @@ class an {
|
|
577
577
|
* @returns {() => void}
|
578
578
|
*/
|
579
579
|
$on(t, r) {
|
580
|
-
if (!
|
580
|
+
if (!gt(r))
|
581
581
|
return k;
|
582
582
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
583
583
|
return n.push(r), () => {
|
@@ -590,37 +590,37 @@ class an {
|
|
590
590
|
* @returns {void}
|
591
591
|
*/
|
592
592
|
$set(t) {
|
593
|
-
this.$$set && !
|
593
|
+
this.$$set && !Wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
594
594
|
}
|
595
595
|
}
|
596
|
-
const
|
597
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
598
|
-
var
|
599
|
-
return
|
596
|
+
const fn = "4";
|
597
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fn);
|
598
|
+
var it = function(e, t) {
|
599
|
+
return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
600
600
|
r.__proto__ = n;
|
601
601
|
} || function(r, n) {
|
602
602
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
603
|
-
},
|
603
|
+
}, it(e, t);
|
604
604
|
};
|
605
605
|
function J(e, t) {
|
606
606
|
if (typeof t != "function" && t !== null)
|
607
607
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
608
|
-
|
608
|
+
it(e, t);
|
609
609
|
function r() {
|
610
610
|
this.constructor = e;
|
611
611
|
}
|
612
612
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
613
613
|
}
|
614
|
-
var
|
615
|
-
return
|
614
|
+
var H = function() {
|
615
|
+
return H = Object.assign || function(t) {
|
616
616
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
617
617
|
r = arguments[n];
|
618
618
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
619
619
|
}
|
620
620
|
return t;
|
621
|
-
},
|
621
|
+
}, H.apply(this, arguments);
|
622
622
|
};
|
623
|
-
function
|
623
|
+
function dn(e, t) {
|
624
624
|
var r = {};
|
625
625
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
626
626
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -628,7 +628,7 @@ function un(e, t) {
|
|
628
628
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
629
629
|
return r;
|
630
630
|
}
|
631
|
-
function
|
631
|
+
function ot(e) {
|
632
632
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
633
633
|
if (r) return r.call(e);
|
634
634
|
if (e && typeof e.length == "number") return {
|
@@ -638,7 +638,7 @@ function it(e) {
|
|
638
638
|
};
|
639
639
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
640
640
|
}
|
641
|
-
function
|
641
|
+
function st(e, t) {
|
642
642
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
643
643
|
if (!r) return e;
|
644
644
|
var n = r.call(e), i, o = [], s;
|
@@ -655,7 +655,7 @@ function ot(e, t) {
|
|
655
655
|
}
|
656
656
|
return o;
|
657
657
|
}
|
658
|
-
function
|
658
|
+
function pe(e, t, r) {
|
659
659
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
660
660
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
661
661
|
return e.concat(o || Array.prototype.slice.call(t));
|
@@ -663,13 +663,13 @@ function de(e, t, r) {
|
|
663
663
|
function Z(e) {
|
664
664
|
return typeof e == "function";
|
665
665
|
}
|
666
|
-
function
|
666
|
+
function ur(e) {
|
667
667
|
var t = function(n) {
|
668
668
|
Error.call(n), n.stack = new Error().stack;
|
669
669
|
}, r = e(t);
|
670
670
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
671
671
|
}
|
672
|
-
var Ze =
|
672
|
+
var Ze = ur(function(e) {
|
673
673
|
return function(r) {
|
674
674
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
675
675
|
` + r.map(function(n, i) {
|
@@ -678,7 +678,7 @@ var Ze = sr(function(e) {
|
|
678
678
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
679
679
|
};
|
680
680
|
});
|
681
|
-
function
|
681
|
+
function at(e, t) {
|
682
682
|
if (e) {
|
683
683
|
var r = e.indexOf(t);
|
684
684
|
0 <= r && e.splice(r, 1);
|
@@ -696,12 +696,12 @@ var Ge = function() {
|
|
696
696
|
if (s)
|
697
697
|
if (this._parentage = null, Array.isArray(s))
|
698
698
|
try {
|
699
|
-
for (var a =
|
699
|
+
for (var a = ot(s), u = a.next(); !u.done; u = a.next()) {
|
700
700
|
var l = u.value;
|
701
701
|
l.remove(this);
|
702
702
|
}
|
703
|
-
} catch (
|
704
|
-
t = { error:
|
703
|
+
} catch (g) {
|
704
|
+
t = { error: g };
|
705
705
|
} finally {
|
706
706
|
try {
|
707
707
|
u && !u.done && (r = a.return) && r.call(a);
|
@@ -715,23 +715,23 @@ var Ge = function() {
|
|
715
715
|
if (Z(h))
|
716
716
|
try {
|
717
717
|
h();
|
718
|
-
} catch (
|
719
|
-
o =
|
718
|
+
} catch (g) {
|
719
|
+
o = g instanceof Ze ? g.errors : [g];
|
720
720
|
}
|
721
|
-
var
|
722
|
-
if (
|
721
|
+
var d = this._finalizers;
|
722
|
+
if (d) {
|
723
723
|
this._finalizers = null;
|
724
724
|
try {
|
725
|
-
for (var c =
|
726
|
-
var
|
725
|
+
for (var c = ot(d), m = c.next(); !m.done; m = c.next()) {
|
726
|
+
var y = m.value;
|
727
727
|
try {
|
728
|
-
|
729
|
-
} catch (
|
730
|
-
o = o != null ? o : [],
|
728
|
+
It(y);
|
729
|
+
} catch (g) {
|
730
|
+
o = o != null ? o : [], g instanceof Ze ? o = pe(pe([], st(o)), st(g.errors)) : o.push(g);
|
731
731
|
}
|
732
732
|
}
|
733
|
-
} catch (
|
734
|
-
n = { error:
|
733
|
+
} catch (g) {
|
734
|
+
n = { error: g };
|
735
735
|
} finally {
|
736
736
|
try {
|
737
737
|
m && !m.done && (i = c.return) && i.call(c);
|
@@ -747,7 +747,7 @@ var Ge = function() {
|
|
747
747
|
var r;
|
748
748
|
if (t && t !== this)
|
749
749
|
if (this.closed)
|
750
|
-
|
750
|
+
It(t);
|
751
751
|
else {
|
752
752
|
if (t instanceof e) {
|
753
753
|
if (t.closed || t._hasParent(this))
|
@@ -764,52 +764,56 @@ var Ge = function() {
|
|
764
764
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
765
765
|
}, e.prototype._removeParent = function(t) {
|
766
766
|
var r = this._parentage;
|
767
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
767
|
+
r === t ? this._parentage = null : Array.isArray(r) && at(r, t);
|
768
768
|
}, e.prototype.remove = function(t) {
|
769
769
|
var r = this._finalizers;
|
770
|
-
r &&
|
770
|
+
r && at(r, t), t instanceof e && t._removeParent(this);
|
771
771
|
}, e.EMPTY = function() {
|
772
772
|
var t = new e();
|
773
773
|
return t.closed = !0, t;
|
774
774
|
}(), e;
|
775
|
-
}(),
|
776
|
-
function
|
775
|
+
}(), hr = Ge.EMPTY;
|
776
|
+
function cr(e) {
|
777
777
|
return e instanceof Ge || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
778
778
|
}
|
779
|
-
function
|
779
|
+
function It(e) {
|
780
780
|
Z(e) ? e() : e.unsubscribe();
|
781
781
|
}
|
782
|
-
var
|
783
|
-
|
784
|
-
|
782
|
+
var fr = {
|
783
|
+
onUnhandledError: null,
|
784
|
+
onStoppedNotification: null,
|
785
|
+
Promise: void 0,
|
786
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
787
|
+
useDeprecatedNextContext: !1
|
788
|
+
}, pn = {
|
785
789
|
setTimeout: function(e, t) {
|
786
790
|
for (var r = [], n = 2; n < arguments.length; n++)
|
787
791
|
r[n - 2] = arguments[n];
|
788
|
-
return setTimeout.apply(void 0,
|
792
|
+
return setTimeout.apply(void 0, pe([e, t], st(r)));
|
789
793
|
},
|
790
794
|
clearTimeout: function(e) {
|
791
795
|
return clearTimeout(e);
|
792
796
|
},
|
793
797
|
delegate: void 0
|
794
798
|
};
|
795
|
-
function
|
796
|
-
|
799
|
+
function mn(e) {
|
800
|
+
pn.setTimeout(function() {
|
797
801
|
throw e;
|
798
802
|
});
|
799
803
|
}
|
800
|
-
function
|
804
|
+
function Ot() {
|
801
805
|
}
|
802
806
|
function Ne(e) {
|
803
807
|
e();
|
804
808
|
}
|
805
|
-
var
|
809
|
+
var dr = function(e) {
|
806
810
|
J(t, e);
|
807
811
|
function t(r) {
|
808
812
|
var n = e.call(this) || this;
|
809
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
813
|
+
return n.isStopped = !1, r ? (n.destination = r, cr(r) && r.add(n)) : n.destination = vn, n;
|
810
814
|
}
|
811
815
|
return t.create = function(r, n, i) {
|
812
|
-
return new
|
816
|
+
return new lt(r, n, i);
|
813
817
|
}, t.prototype.next = function(r) {
|
814
818
|
this.isStopped || this._next(r);
|
815
819
|
}, t.prototype.error = function(r) {
|
@@ -833,7 +837,11 @@ var ur = function(e) {
|
|
833
837
|
this.unsubscribe();
|
834
838
|
}
|
835
839
|
}, t;
|
836
|
-
}(Ge),
|
840
|
+
}(Ge), bn = Function.prototype.bind;
|
841
|
+
function Je(e, t) {
|
842
|
+
return bn.call(e, t);
|
843
|
+
}
|
844
|
+
var gn = function() {
|
837
845
|
function e(t) {
|
838
846
|
this.partialObserver = t;
|
839
847
|
}
|
@@ -843,7 +851,7 @@ var ur = function(e) {
|
|
843
851
|
try {
|
844
852
|
r.next(t);
|
845
853
|
} catch (n) {
|
846
|
-
|
854
|
+
Ie(n);
|
847
855
|
}
|
848
856
|
}, e.prototype.error = function(t) {
|
849
857
|
var r = this.partialObserver;
|
@@ -851,56 +859,68 @@ var ur = function(e) {
|
|
851
859
|
try {
|
852
860
|
r.error(t);
|
853
861
|
} catch (n) {
|
854
|
-
|
862
|
+
Ie(n);
|
855
863
|
}
|
856
864
|
else
|
857
|
-
|
865
|
+
Ie(t);
|
858
866
|
}, e.prototype.complete = function() {
|
859
867
|
var t = this.partialObserver;
|
860
868
|
if (t.complete)
|
861
869
|
try {
|
862
870
|
t.complete();
|
863
871
|
} catch (r) {
|
864
|
-
|
872
|
+
Ie(r);
|
865
873
|
}
|
866
874
|
}, e;
|
867
|
-
}(),
|
875
|
+
}(), lt = function(e) {
|
868
876
|
J(t, e);
|
869
877
|
function t(r, n, i) {
|
870
878
|
var o = e.call(this) || this, s;
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
879
|
+
if (Z(r) || !r)
|
880
|
+
s = {
|
881
|
+
next: r != null ? r : void 0,
|
882
|
+
error: n != null ? n : void 0,
|
883
|
+
complete: i != null ? i : void 0
|
884
|
+
};
|
885
|
+
else {
|
886
|
+
var a;
|
887
|
+
o && fr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
888
|
+
return o.unsubscribe();
|
889
|
+
}, s = {
|
890
|
+
next: r.next && Je(r.next, a),
|
891
|
+
error: r.error && Je(r.error, a),
|
892
|
+
complete: r.complete && Je(r.complete, a)
|
893
|
+
}) : s = r;
|
894
|
+
}
|
895
|
+
return o.destination = new gn(s), o;
|
876
896
|
}
|
877
897
|
return t;
|
878
|
-
}(
|
879
|
-
function
|
880
|
-
|
898
|
+
}(dr);
|
899
|
+
function Ie(e) {
|
900
|
+
mn(e);
|
881
901
|
}
|
882
|
-
function
|
902
|
+
function yn(e) {
|
883
903
|
throw e;
|
884
904
|
}
|
885
|
-
var
|
905
|
+
var vn = {
|
886
906
|
closed: !0,
|
887
|
-
next:
|
888
|
-
error:
|
889
|
-
complete:
|
890
|
-
},
|
907
|
+
next: Ot,
|
908
|
+
error: yn,
|
909
|
+
complete: Ot
|
910
|
+
}, _n = function() {
|
891
911
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
892
912
|
}();
|
893
|
-
function
|
913
|
+
function xn(e) {
|
894
914
|
return e;
|
895
915
|
}
|
896
|
-
function
|
897
|
-
return e.length === 0 ?
|
916
|
+
function En(e) {
|
917
|
+
return e.length === 0 ? xn : e.length === 1 ? e[0] : function(r) {
|
898
918
|
return e.reduce(function(n, i) {
|
899
919
|
return i(n);
|
900
920
|
}, r);
|
901
921
|
};
|
902
922
|
}
|
903
|
-
var
|
923
|
+
var Lt = function() {
|
904
924
|
function e(t) {
|
905
925
|
t && (this._subscribe = t);
|
906
926
|
}
|
@@ -908,7 +928,7 @@ var Bt = function() {
|
|
908
928
|
var r = new e();
|
909
929
|
return r.source = this, r.operator = t, r;
|
910
930
|
}, e.prototype.subscribe = function(t, r, n) {
|
911
|
-
var i = this, o =
|
931
|
+
var i = this, o = Sn(t) ? t : new lt(t, r, n);
|
912
932
|
return Ne(function() {
|
913
933
|
var s = i, a = s.operator, u = s.source;
|
914
934
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
@@ -921,8 +941,8 @@ var Bt = function() {
|
|
921
941
|
}
|
922
942
|
}, e.prototype.forEach = function(t, r) {
|
923
943
|
var n = this;
|
924
|
-
return r =
|
925
|
-
var s = new
|
944
|
+
return r = Nt(r), new r(function(i, o) {
|
945
|
+
var s = new lt({
|
926
946
|
next: function(a) {
|
927
947
|
try {
|
928
948
|
t(a);
|
@@ -938,15 +958,15 @@ var Bt = function() {
|
|
938
958
|
}, e.prototype._subscribe = function(t) {
|
939
959
|
var r;
|
940
960
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
941
|
-
}, e.prototype[
|
961
|
+
}, e.prototype[_n] = function() {
|
942
962
|
return this;
|
943
963
|
}, e.prototype.pipe = function() {
|
944
964
|
for (var t = [], r = 0; r < arguments.length; r++)
|
945
965
|
t[r] = arguments[r];
|
946
|
-
return
|
966
|
+
return En(t)(this);
|
947
967
|
}, e.prototype.toPromise = function(t) {
|
948
968
|
var r = this;
|
949
|
-
return t =
|
969
|
+
return t = Nt(t), new t(function(n, i) {
|
950
970
|
var o;
|
951
971
|
r.subscribe(function(s) {
|
952
972
|
return o = s;
|
@@ -960,32 +980,32 @@ var Bt = function() {
|
|
960
980
|
return new e(t);
|
961
981
|
}, e;
|
962
982
|
}();
|
963
|
-
function
|
983
|
+
function Nt(e) {
|
964
984
|
var t;
|
965
|
-
return (t = e != null ? e :
|
985
|
+
return (t = e != null ? e : fr.Promise) !== null && t !== void 0 ? t : Promise;
|
966
986
|
}
|
967
|
-
function
|
987
|
+
function wn(e) {
|
968
988
|
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
969
989
|
}
|
970
|
-
function
|
971
|
-
return e && e instanceof
|
990
|
+
function Sn(e) {
|
991
|
+
return e && e instanceof dr || wn(e) && cr(e);
|
972
992
|
}
|
973
|
-
var
|
993
|
+
var Tn = ur(function(e) {
|
974
994
|
return function() {
|
975
995
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
976
996
|
};
|
977
|
-
}),
|
997
|
+
}), pr = function(e) {
|
978
998
|
J(t, e);
|
979
999
|
function t() {
|
980
1000
|
var r = e.call(this) || this;
|
981
1001
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
982
1002
|
}
|
983
1003
|
return t.prototype.lift = function(r) {
|
984
|
-
var n = new
|
1004
|
+
var n = new Mt(this, this);
|
985
1005
|
return n.operator = r, n;
|
986
1006
|
}, t.prototype._throwIfClosed = function() {
|
987
1007
|
if (this.closed)
|
988
|
-
throw new
|
1008
|
+
throw new Tn();
|
989
1009
|
}, t.prototype.next = function(r) {
|
990
1010
|
var n = this;
|
991
1011
|
Ne(function() {
|
@@ -993,7 +1013,7 @@ var xn = sr(function(e) {
|
|
993
1013
|
if (n._throwIfClosed(), !n.isStopped) {
|
994
1014
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
995
1015
|
try {
|
996
|
-
for (var s =
|
1016
|
+
for (var s = ot(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
997
1017
|
var u = a.value;
|
998
1018
|
u.next(r);
|
999
1019
|
}
|
@@ -1041,19 +1061,19 @@ var xn = sr(function(e) {
|
|
1041
1061
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
1042
1062
|
}, t.prototype._innerSubscribe = function(r) {
|
1043
1063
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
1044
|
-
return o || s ?
|
1045
|
-
n.currentObservers = null,
|
1064
|
+
return o || s ? hr : (this.currentObservers = null, a.push(r), new Ge(function() {
|
1065
|
+
n.currentObservers = null, at(a, r);
|
1046
1066
|
}));
|
1047
1067
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
1048
1068
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
1049
1069
|
i ? r.error(o) : s && r.complete();
|
1050
1070
|
}, t.prototype.asObservable = function() {
|
1051
|
-
var r = new
|
1071
|
+
var r = new Lt();
|
1052
1072
|
return r.source = this, r;
|
1053
1073
|
}, t.create = function(r, n) {
|
1054
|
-
return new
|
1074
|
+
return new Mt(r, n);
|
1055
1075
|
}, t;
|
1056
|
-
}(
|
1076
|
+
}(Lt), Mt = function(e) {
|
1057
1077
|
J(t, e);
|
1058
1078
|
function t(r, n) {
|
1059
1079
|
var i = e.call(this) || this;
|
@@ -1070,17 +1090,17 @@ var xn = sr(function(e) {
|
|
1070
1090
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
1071
1091
|
}, t.prototype._subscribe = function(r) {
|
1072
1092
|
var n, i;
|
1073
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1093
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : hr;
|
1074
1094
|
}, t;
|
1075
|
-
}(
|
1095
|
+
}(pr), mr = {
|
1076
1096
|
now: function() {
|
1077
|
-
return (
|
1097
|
+
return (mr.delegate || Date).now();
|
1078
1098
|
},
|
1079
1099
|
delegate: void 0
|
1080
|
-
},
|
1100
|
+
}, Hn = function(e) {
|
1081
1101
|
J(t, e);
|
1082
1102
|
function t(r, n, i) {
|
1083
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1103
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = mr);
|
1084
1104
|
var o = e.call(this) || this;
|
1085
1105
|
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;
|
1086
1106
|
}
|
@@ -1100,15 +1120,15 @@ var xn = sr(function(e) {
|
|
1100
1120
|
l && o.splice(0, l + 1);
|
1101
1121
|
}
|
1102
1122
|
}, t;
|
1103
|
-
}(
|
1104
|
-
const
|
1105
|
-
if (
|
1106
|
-
const r = new
|
1107
|
-
|
1123
|
+
}(pr);
|
1124
|
+
const Rt = [], Dt = {}, An = (e, t = 0) => {
|
1125
|
+
if (Rt.indexOf(e) == -1) {
|
1126
|
+
const r = new Hn(t);
|
1127
|
+
Dt[e] = r, Rt.push(e);
|
1108
1128
|
}
|
1109
|
-
return
|
1129
|
+
return Dt[e];
|
1110
1130
|
}, ce = [];
|
1111
|
-
function
|
1131
|
+
function Pn(e, t) {
|
1112
1132
|
return {
|
1113
1133
|
subscribe: ke(e, t).subscribe
|
1114
1134
|
};
|
@@ -1117,7 +1137,7 @@ function ke(e, t = k) {
|
|
1117
1137
|
let r;
|
1118
1138
|
const n = /* @__PURE__ */ new Set();
|
1119
1139
|
function i(a) {
|
1120
|
-
if (
|
1140
|
+
if (nr(e, a) && (e = a, r)) {
|
1121
1141
|
const u = !ce.length;
|
1122
1142
|
for (const l of n)
|
1123
1143
|
l[1](), ce.push(l, e);
|
@@ -1139,101 +1159,101 @@ function ke(e, t = k) {
|
|
1139
1159
|
}
|
1140
1160
|
return { set: i, update: o, subscribe: s };
|
1141
1161
|
}
|
1142
|
-
function
|
1162
|
+
function ve(e, t, r) {
|
1143
1163
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1144
1164
|
if (!i.every(Boolean))
|
1145
1165
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1146
1166
|
const o = t.length < 2;
|
1147
|
-
return
|
1167
|
+
return Pn(r, (s, a) => {
|
1148
1168
|
let u = !1;
|
1149
1169
|
const l = [];
|
1150
|
-
let h = 0,
|
1170
|
+
let h = 0, d = k;
|
1151
1171
|
const c = () => {
|
1152
1172
|
if (h)
|
1153
1173
|
return;
|
1154
|
-
|
1155
|
-
const
|
1156
|
-
o ? s(
|
1174
|
+
d();
|
1175
|
+
const y = t(n ? l[0] : l, s, a);
|
1176
|
+
o ? s(y) : d = gt(y) ? y : k;
|
1157
1177
|
}, m = i.map(
|
1158
|
-
(
|
1159
|
-
|
1160
|
-
(
|
1161
|
-
l[
|
1178
|
+
(y, g) => ir(
|
1179
|
+
y,
|
1180
|
+
(F) => {
|
1181
|
+
l[g] = F, h &= ~(1 << g), u && c();
|
1162
1182
|
},
|
1163
1183
|
() => {
|
1164
|
-
h |= 1 <<
|
1184
|
+
h |= 1 << g;
|
1165
1185
|
}
|
1166
1186
|
)
|
1167
1187
|
);
|
1168
1188
|
return u = !0, c(), function() {
|
1169
|
-
K(m),
|
1189
|
+
K(m), d(), u = !1;
|
1170
1190
|
};
|
1171
1191
|
});
|
1172
1192
|
}
|
1173
|
-
function
|
1193
|
+
function Fn(e) {
|
1174
1194
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1175
1195
|
}
|
1176
|
-
var
|
1177
|
-
return
|
1196
|
+
var Cn = function(t) {
|
1197
|
+
return Bn(t) && !In(t);
|
1178
1198
|
};
|
1179
|
-
function
|
1199
|
+
function Bn(e) {
|
1180
1200
|
return !!e && typeof e == "object";
|
1181
1201
|
}
|
1182
|
-
function
|
1202
|
+
function In(e) {
|
1183
1203
|
var t = Object.prototype.toString.call(e);
|
1184
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1204
|
+
return t === "[object RegExp]" || t === "[object Date]" || Nn(e);
|
1185
1205
|
}
|
1186
|
-
var
|
1187
|
-
function
|
1188
|
-
return e.$$typeof ===
|
1206
|
+
var On = typeof Symbol == "function" && Symbol.for, Ln = On ? Symbol.for("react.element") : 60103;
|
1207
|
+
function Nn(e) {
|
1208
|
+
return e.$$typeof === Ln;
|
1189
1209
|
}
|
1190
|
-
function
|
1210
|
+
function Mn(e) {
|
1191
1211
|
return Array.isArray(e) ? [] : {};
|
1192
1212
|
}
|
1193
1213
|
function He(e, t) {
|
1194
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? me(
|
1214
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? me(Mn(e), e, t) : e;
|
1195
1215
|
}
|
1196
|
-
function
|
1216
|
+
function Rn(e, t, r) {
|
1197
1217
|
return e.concat(t).map(function(n) {
|
1198
1218
|
return He(n, r);
|
1199
1219
|
});
|
1200
1220
|
}
|
1201
|
-
function
|
1221
|
+
function Dn(e, t) {
|
1202
1222
|
if (!t.customMerge)
|
1203
1223
|
return me;
|
1204
1224
|
var r = t.customMerge(e);
|
1205
1225
|
return typeof r == "function" ? r : me;
|
1206
1226
|
}
|
1207
|
-
function
|
1227
|
+
function Un(e) {
|
1208
1228
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1209
1229
|
return Object.propertyIsEnumerable.call(e, t);
|
1210
1230
|
}) : [];
|
1211
1231
|
}
|
1212
|
-
function
|
1213
|
-
return Object.keys(e).concat(
|
1232
|
+
function Ut(e) {
|
1233
|
+
return Object.keys(e).concat(Un(e));
|
1214
1234
|
}
|
1215
|
-
function
|
1235
|
+
function br(e, t) {
|
1216
1236
|
try {
|
1217
1237
|
return t in e;
|
1218
1238
|
} catch (r) {
|
1219
1239
|
return !1;
|
1220
1240
|
}
|
1221
1241
|
}
|
1222
|
-
function
|
1223
|
-
return
|
1242
|
+
function $n(e, t) {
|
1243
|
+
return br(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1224
1244
|
}
|
1225
|
-
function
|
1245
|
+
function Gn(e, t, r) {
|
1226
1246
|
var n = {};
|
1227
|
-
return r.isMergeableObject(e) &&
|
1247
|
+
return r.isMergeableObject(e) && Ut(e).forEach(function(i) {
|
1228
1248
|
n[i] = He(e[i], r);
|
1229
|
-
}),
|
1230
|
-
|
1249
|
+
}), Ut(t).forEach(function(i) {
|
1250
|
+
$n(e, i) || (br(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dn(i, r)(e[i], t[i], r) : n[i] = He(t[i], r));
|
1231
1251
|
}), n;
|
1232
1252
|
}
|
1233
1253
|
function me(e, t, r) {
|
1234
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1254
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rn, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified = He;
|
1235
1255
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1236
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
1256
|
+
return o ? n ? r.arrayMerge(e, t, r) : Gn(e, t, r) : He(t, r);
|
1237
1257
|
}
|
1238
1258
|
me.all = function(t, r) {
|
1239
1259
|
if (!Array.isArray(t))
|
@@ -1242,60 +1262,62 @@ me.all = function(t, r) {
|
|
1242
1262
|
return me(n, i, r);
|
1243
1263
|
}, {});
|
1244
1264
|
};
|
1245
|
-
var
|
1246
|
-
const
|
1247
|
-
function
|
1248
|
-
var r = t && t.cache ? t.cache :
|
1265
|
+
var kn = me, jn = kn;
|
1266
|
+
const Vn = /* @__PURE__ */ Fn(jn);
|
1267
|
+
function Qe(e, t) {
|
1268
|
+
var r = t && t.cache ? t.cache : Qn, n = t && t.serializer ? t.serializer : Jn, i = t && t.strategy ? t.strategy : Wn;
|
1249
1269
|
return i(e, {
|
1250
1270
|
cache: r,
|
1251
1271
|
serializer: n
|
1252
1272
|
});
|
1253
1273
|
}
|
1254
|
-
function
|
1274
|
+
function Xn(e) {
|
1255
1275
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1256
1276
|
}
|
1257
|
-
function
|
1258
|
-
var i =
|
1277
|
+
function gr(e, t, r, n) {
|
1278
|
+
var i = Xn(n) ? n : r(n), o = t.get(i);
|
1259
1279
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
1260
1280
|
}
|
1261
|
-
function
|
1281
|
+
function yr(e, t, r) {
|
1262
1282
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
1263
1283
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
1264
1284
|
}
|
1265
|
-
function
|
1285
|
+
function yt(e, t, r, n, i) {
|
1266
1286
|
return r.bind(t, e, n, i);
|
1267
1287
|
}
|
1268
|
-
function
|
1269
|
-
var r = e.length === 1 ?
|
1270
|
-
return
|
1288
|
+
function Wn(e, t) {
|
1289
|
+
var r = e.length === 1 ? gr : yr;
|
1290
|
+
return yt(e, this, r, t.cache.create(), t.serializer);
|
1291
|
+
}
|
1292
|
+
function zn(e, t) {
|
1293
|
+
return yt(e, this, yr, t.cache.create(), t.serializer);
|
1271
1294
|
}
|
1272
|
-
function
|
1273
|
-
return
|
1295
|
+
function Zn(e, t) {
|
1296
|
+
return yt(e, this, gr, t.cache.create(), t.serializer);
|
1274
1297
|
}
|
1275
|
-
var
|
1298
|
+
var Jn = function() {
|
1276
1299
|
return JSON.stringify(arguments);
|
1277
|
-
}
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
}()
|
1289
|
-
), zn = {
|
1300
|
+
};
|
1301
|
+
function vt() {
|
1302
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1303
|
+
}
|
1304
|
+
vt.prototype.get = function(e) {
|
1305
|
+
return this.cache[e];
|
1306
|
+
};
|
1307
|
+
vt.prototype.set = function(e, t) {
|
1308
|
+
this.cache[e] = t;
|
1309
|
+
};
|
1310
|
+
var Qn = {
|
1290
1311
|
create: function() {
|
1291
|
-
return new
|
1312
|
+
return new vt();
|
1292
1313
|
}
|
1293
|
-
},
|
1294
|
-
variadic:
|
1295
|
-
|
1314
|
+
}, qe = {
|
1315
|
+
variadic: zn,
|
1316
|
+
monadic: Zn
|
1317
|
+
}, E;
|
1296
1318
|
(function(e) {
|
1297
1319
|
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";
|
1298
|
-
})(
|
1320
|
+
})(E || (E = {}));
|
1299
1321
|
var B;
|
1300
1322
|
(function(e) {
|
1301
1323
|
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";
|
@@ -1304,43 +1326,43 @@ var be;
|
|
1304
1326
|
(function(e) {
|
1305
1327
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1306
1328
|
})(be || (be = {}));
|
1307
|
-
function
|
1329
|
+
function $t(e) {
|
1308
1330
|
return e.type === B.literal;
|
1309
1331
|
}
|
1310
|
-
function
|
1332
|
+
function qn(e) {
|
1311
1333
|
return e.type === B.argument;
|
1312
1334
|
}
|
1313
|
-
function
|
1335
|
+
function vr(e) {
|
1314
1336
|
return e.type === B.number;
|
1315
1337
|
}
|
1316
|
-
function
|
1338
|
+
function _r(e) {
|
1317
1339
|
return e.type === B.date;
|
1318
1340
|
}
|
1319
|
-
function
|
1341
|
+
function xr(e) {
|
1320
1342
|
return e.type === B.time;
|
1321
1343
|
}
|
1322
|
-
function
|
1344
|
+
function Er(e) {
|
1323
1345
|
return e.type === B.select;
|
1324
1346
|
}
|
1325
|
-
function
|
1347
|
+
function wr(e) {
|
1326
1348
|
return e.type === B.plural;
|
1327
1349
|
}
|
1328
|
-
function
|
1350
|
+
function Yn(e) {
|
1329
1351
|
return e.type === B.pound;
|
1330
1352
|
}
|
1331
|
-
function
|
1353
|
+
function Sr(e) {
|
1332
1354
|
return e.type === B.tag;
|
1333
1355
|
}
|
1334
|
-
function
|
1356
|
+
function Tr(e) {
|
1335
1357
|
return !!(e && typeof e == "object" && e.type === be.number);
|
1336
1358
|
}
|
1337
|
-
function
|
1359
|
+
function ut(e) {
|
1338
1360
|
return !!(e && typeof e == "object" && e.type === be.dateTime);
|
1339
1361
|
}
|
1340
|
-
var
|
1341
|
-
function
|
1362
|
+
var Hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kn = /(?:[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;
|
1363
|
+
function ei(e) {
|
1342
1364
|
var t = {};
|
1343
|
-
return e.replace(
|
1365
|
+
return e.replace(Kn, function(r) {
|
1344
1366
|
var n = r.length;
|
1345
1367
|
switch (r[0]) {
|
1346
1368
|
case "G":
|
@@ -1429,36 +1451,36 @@ function qn(e) {
|
|
1429
1451
|
return "";
|
1430
1452
|
}), t;
|
1431
1453
|
}
|
1432
|
-
var
|
1433
|
-
function
|
1454
|
+
var ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1455
|
+
function ri(e) {
|
1434
1456
|
if (e.length === 0)
|
1435
1457
|
throw new Error("Number skeleton cannot be empty");
|
1436
|
-
for (var t = e.split(
|
1458
|
+
for (var t = e.split(ti).filter(function(c) {
|
1437
1459
|
return c.length > 0;
|
1438
1460
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1439
1461
|
var o = i[n], s = o.split("/");
|
1440
1462
|
if (s.length === 0)
|
1441
1463
|
throw new Error("Invalid number skeleton");
|
1442
1464
|
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
1443
|
-
var
|
1444
|
-
if (
|
1465
|
+
var d = h[l];
|
1466
|
+
if (d.length === 0)
|
1445
1467
|
throw new Error("Invalid number skeleton");
|
1446
1468
|
}
|
1447
1469
|
r.push({ stem: a, options: u });
|
1448
1470
|
}
|
1449
1471
|
return r;
|
1450
1472
|
}
|
1451
|
-
function
|
1473
|
+
function ni(e) {
|
1452
1474
|
return e.replace(/^(.*?)-/, "");
|
1453
1475
|
}
|
1454
|
-
var
|
1455
|
-
function
|
1476
|
+
var Gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ar = /^(@+)?(\+|#+)?[rs]?$/g, ii = /(\*)(0+)|(#+)(0+)|(0+)/g, Pr = /^(0+)$/;
|
1477
|
+
function kt(e) {
|
1456
1478
|
var t = {};
|
1457
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1479
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ar, function(r, n, i) {
|
1458
1480
|
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)), "";
|
1459
1481
|
}), t;
|
1460
1482
|
}
|
1461
|
-
function
|
1483
|
+
function Fr(e) {
|
1462
1484
|
switch (e) {
|
1463
1485
|
case "sign-auto":
|
1464
1486
|
return {
|
@@ -1498,7 +1520,7 @@ function Tr(e) {
|
|
1498
1520
|
};
|
1499
1521
|
}
|
1500
1522
|
}
|
1501
|
-
function
|
1523
|
+
function oi(e) {
|
1502
1524
|
var t;
|
1503
1525
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1504
1526
|
notation: "engineering"
|
@@ -1506,17 +1528,17 @@ function ri(e) {
|
|
1506
1528
|
notation: "scientific"
|
1507
1529
|
}, e = e.slice(1)), t) {
|
1508
1530
|
var r = e.slice(0, 2);
|
1509
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1531
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Pr.test(e))
|
1510
1532
|
throw new Error("Malformed concise eng/scientific notation");
|
1511
1533
|
t.minimumIntegerDigits = e.length;
|
1512
1534
|
}
|
1513
1535
|
return t;
|
1514
1536
|
}
|
1515
|
-
function
|
1516
|
-
var t = {}, r =
|
1537
|
+
function jt(e) {
|
1538
|
+
var t = {}, r = Fr(e);
|
1517
1539
|
return r || t;
|
1518
1540
|
}
|
1519
|
-
function
|
1541
|
+
function si(e) {
|
1520
1542
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1521
1543
|
var i = n[r];
|
1522
1544
|
switch (i.stem) {
|
@@ -1540,7 +1562,7 @@ function ni(e) {
|
|
1540
1562
|
continue;
|
1541
1563
|
case "measure-unit":
|
1542
1564
|
case "unit":
|
1543
|
-
t.style = "unit", t.unit =
|
1565
|
+
t.style = "unit", t.unit = ni(i.options[0]);
|
1544
1566
|
continue;
|
1545
1567
|
case "compact-short":
|
1546
1568
|
case "K":
|
@@ -1551,13 +1573,13 @@ function ni(e) {
|
|
1551
1573
|
t.notation = "compact", t.compactDisplay = "long";
|
1552
1574
|
continue;
|
1553
1575
|
case "scientific":
|
1554
|
-
t =
|
1555
|
-
return
|
1576
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
1577
|
+
return H(H({}, u), jt(l));
|
1556
1578
|
}, {}));
|
1557
1579
|
continue;
|
1558
1580
|
case "engineering":
|
1559
|
-
t =
|
1560
|
-
return
|
1581
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
1582
|
+
return H(H({}, u), jt(l));
|
1561
1583
|
}, {}));
|
1562
1584
|
continue;
|
1563
1585
|
case "notation-simple":
|
@@ -1602,11 +1624,11 @@ function ni(e) {
|
|
1602
1624
|
case "integer-width":
|
1603
1625
|
if (i.options.length > 1)
|
1604
1626
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1605
|
-
i.options[0].replace(
|
1627
|
+
i.options[0].replace(ii, function(u, l, h, d, c, m) {
|
1606
1628
|
if (l)
|
1607
1629
|
t.minimumIntegerDigits = h.length;
|
1608
1630
|
else {
|
1609
|
-
if (
|
1631
|
+
if (d && c)
|
1610
1632
|
throw new Error("We currently do not support maximum integer digits");
|
1611
1633
|
if (m)
|
1612
1634
|
throw new Error("We currently do not support exact integer digits");
|
@@ -1615,32 +1637,32 @@ function ni(e) {
|
|
1615
1637
|
});
|
1616
1638
|
continue;
|
1617
1639
|
}
|
1618
|
-
if (
|
1640
|
+
if (Pr.test(i.stem)) {
|
1619
1641
|
t.minimumIntegerDigits = i.stem.length;
|
1620
1642
|
continue;
|
1621
1643
|
}
|
1622
|
-
if (
|
1644
|
+
if (Gt.test(i.stem)) {
|
1623
1645
|
if (i.options.length > 1)
|
1624
1646
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1625
|
-
i.stem.replace(
|
1626
|
-
return h === "*" ? t.minimumFractionDigits = l.length :
|
1647
|
+
i.stem.replace(Gt, function(u, l, h, d, c, m) {
|
1648
|
+
return h === "*" ? 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), "";
|
1627
1649
|
});
|
1628
1650
|
var o = i.options[0];
|
1629
|
-
o === "w" ? t =
|
1651
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), kt(o)));
|
1630
1652
|
continue;
|
1631
1653
|
}
|
1632
|
-
if (
|
1633
|
-
t =
|
1654
|
+
if (Ar.test(i.stem)) {
|
1655
|
+
t = H(H({}, t), kt(i.stem));
|
1634
1656
|
continue;
|
1635
1657
|
}
|
1636
|
-
var s =
|
1637
|
-
s && (t =
|
1638
|
-
var a =
|
1639
|
-
a && (t =
|
1658
|
+
var s = Fr(i.stem);
|
1659
|
+
s && (t = H(H({}, t), s));
|
1660
|
+
var a = oi(i.stem);
|
1661
|
+
a && (t = H(H({}, t), a));
|
1640
1662
|
}
|
1641
1663
|
return t;
|
1642
1664
|
}
|
1643
|
-
var
|
1665
|
+
var Oe = {
|
1644
1666
|
"001": [
|
1645
1667
|
"H",
|
1646
1668
|
"h"
|
@@ -3055,13 +3077,13 @@ var Ie = {
|
|
3055
3077
|
"h"
|
3056
3078
|
]
|
3057
3079
|
};
|
3058
|
-
function
|
3080
|
+
function ai(e, t) {
|
3059
3081
|
for (var r = "", n = 0; n < e.length; n++) {
|
3060
3082
|
var i = e.charAt(n);
|
3061
3083
|
if (i === "j") {
|
3062
3084
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
3063
3085
|
o++, n++;
|
3064
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
3086
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = li(t);
|
3065
3087
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
3066
3088
|
r += u;
|
3067
3089
|
for (; s-- > 0; )
|
@@ -3070,7 +3092,7 @@ function ii(e, t) {
|
|
3070
3092
|
}
|
3071
3093
|
return r;
|
3072
3094
|
}
|
3073
|
-
function
|
3095
|
+
function li(e) {
|
3074
3096
|
var t = e.hourCycle;
|
3075
3097
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
3076
3098
|
e.hourCycles && // @ts-ignore
|
@@ -3089,23 +3111,23 @@ function oi(e) {
|
|
3089
3111
|
}
|
3090
3112
|
var r = e.language, n;
|
3091
3113
|
r !== "root" && (n = e.maximize().region);
|
3092
|
-
var i =
|
3114
|
+
var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
|
3093
3115
|
return i[0];
|
3094
3116
|
}
|
3095
|
-
var
|
3096
|
-
function
|
3117
|
+
var Ye, ui = new RegExp("^".concat(Hr.source, "*")), hi = new RegExp("".concat(Hr.source, "*$"));
|
3118
|
+
function T(e, t) {
|
3097
3119
|
return { start: e, end: t };
|
3098
3120
|
}
|
3099
|
-
var
|
3121
|
+
var ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), fi = !!String.fromCodePoint, di = !!Object.fromEntries, pi = !!String.prototype.codePointAt, mi = !!String.prototype.trimStart, bi = !!String.prototype.trimEnd, gi = !!Number.isSafeInteger, yi = gi ? Number.isSafeInteger : function(e) {
|
3100
3122
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3101
|
-
},
|
3123
|
+
}, ht = !0;
|
3102
3124
|
try {
|
3103
|
-
var
|
3104
|
-
|
3125
|
+
var vi = Br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3126
|
+
ht = ((Ye = vi.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
3105
3127
|
} catch (e) {
|
3106
|
-
|
3128
|
+
ht = !1;
|
3107
3129
|
}
|
3108
|
-
var
|
3130
|
+
var Vt = ci ? (
|
3109
3131
|
// Native
|
3110
3132
|
function(t, r, n) {
|
3111
3133
|
return t.startsWith(r, n);
|
@@ -3115,7 +3137,7 @@ var Gt = li ? (
|
|
3115
3137
|
function(t, r, n) {
|
3116
3138
|
return t.slice(n, n + r.length) === r;
|
3117
3139
|
}
|
3118
|
-
),
|
3140
|
+
), ct = fi ? String.fromCodePoint : (
|
3119
3141
|
// IE11
|
3120
3142
|
function() {
|
3121
3143
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3127,9 +3149,9 @@ var Gt = li ? (
|
|
3127
3149
|
}
|
3128
3150
|
return n;
|
3129
3151
|
}
|
3130
|
-
),
|
3152
|
+
), Xt = (
|
3131
3153
|
// native
|
3132
|
-
|
3154
|
+
di ? Object.fromEntries : (
|
3133
3155
|
// Ponyfill
|
3134
3156
|
function(t) {
|
3135
3157
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3139,7 +3161,7 @@ var Gt = li ? (
|
|
3139
3161
|
return r;
|
3140
3162
|
}
|
3141
3163
|
)
|
3142
|
-
),
|
3164
|
+
), Cr = pi ? (
|
3143
3165
|
// Native
|
3144
3166
|
function(t, r) {
|
3145
3167
|
return t.codePointAt(r);
|
@@ -3153,7 +3175,7 @@ var Gt = li ? (
|
|
3153
3175
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
3154
3176
|
}
|
3155
3177
|
}
|
3156
|
-
),
|
3178
|
+
), _i = mi ? (
|
3157
3179
|
// Native
|
3158
3180
|
function(t) {
|
3159
3181
|
return t.trimStart();
|
@@ -3161,9 +3183,9 @@ var Gt = li ? (
|
|
3161
3183
|
) : (
|
3162
3184
|
// Ponyfill
|
3163
3185
|
function(t) {
|
3164
|
-
return t.replace(
|
3186
|
+
return t.replace(ui, "");
|
3165
3187
|
}
|
3166
|
-
),
|
3188
|
+
), xi = bi ? (
|
3167
3189
|
// Native
|
3168
3190
|
function(t) {
|
3169
3191
|
return t.trimEnd();
|
@@ -3171,32 +3193,32 @@ var Gt = li ? (
|
|
3171
3193
|
) : (
|
3172
3194
|
// Ponyfill
|
3173
3195
|
function(t) {
|
3174
|
-
return t.replace(
|
3196
|
+
return t.replace(hi, "");
|
3175
3197
|
}
|
3176
3198
|
);
|
3177
|
-
function
|
3199
|
+
function Br(e, t) {
|
3178
3200
|
return new RegExp(e, t);
|
3179
3201
|
}
|
3180
|
-
var
|
3181
|
-
if (
|
3182
|
-
var
|
3183
|
-
|
3202
|
+
var ft;
|
3203
|
+
if (ht) {
|
3204
|
+
var Wt = Br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3205
|
+
ft = function(t, r) {
|
3184
3206
|
var n;
|
3185
|
-
|
3186
|
-
var i =
|
3207
|
+
Wt.lastIndex = r;
|
3208
|
+
var i = Wt.exec(t);
|
3187
3209
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3188
3210
|
};
|
3189
3211
|
} else
|
3190
|
-
|
3212
|
+
ft = function(t, r) {
|
3191
3213
|
for (var n = []; ; ) {
|
3192
|
-
var i =
|
3193
|
-
if (i === void 0 ||
|
3214
|
+
var i = Cr(t, r);
|
3215
|
+
if (i === void 0 || Ir(i) || Ti(i))
|
3194
3216
|
break;
|
3195
3217
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3196
3218
|
}
|
3197
|
-
return
|
3219
|
+
return ct.apply(void 0, n);
|
3198
3220
|
};
|
3199
|
-
var
|
3221
|
+
var Ei = (
|
3200
3222
|
/** @class */
|
3201
3223
|
function() {
|
3202
3224
|
function e(t, r) {
|
@@ -3221,13 +3243,13 @@ var yi = (
|
|
3221
3243
|
var a = this.clonePosition();
|
3222
3244
|
this.bump(), i.push({
|
3223
3245
|
type: B.pound,
|
3224
|
-
location:
|
3246
|
+
location: T(a, this.clonePosition())
|
3225
3247
|
});
|
3226
3248
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
3227
3249
|
if (n)
|
3228
3250
|
break;
|
3229
|
-
return this.error(
|
3230
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3251
|
+
return this.error(E.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
3252
|
+
} else if (o === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
3231
3253
|
var s = this.parseTag(t, r);
|
3232
3254
|
if (s.err)
|
3233
3255
|
return s;
|
@@ -3250,7 +3272,7 @@ var yi = (
|
|
3250
3272
|
val: {
|
3251
3273
|
type: B.literal,
|
3252
3274
|
value: "<".concat(i, "/>"),
|
3253
|
-
location:
|
3275
|
+
location: T(n, this.clonePosition())
|
3254
3276
|
},
|
3255
3277
|
err: null
|
3256
3278
|
};
|
@@ -3260,25 +3282,25 @@ var yi = (
|
|
3260
3282
|
return o;
|
3261
3283
|
var s = o.val, a = this.clonePosition();
|
3262
3284
|
if (this.bumpIf("</")) {
|
3263
|
-
if (this.isEOF() || !
|
3264
|
-
return this.error(
|
3285
|
+
if (this.isEOF() || !dt(this.char()))
|
3286
|
+
return this.error(E.INVALID_TAG, T(a, this.clonePosition()));
|
3265
3287
|
var u = this.clonePosition(), l = this.parseTagName();
|
3266
|
-
return i !== l ? this.error(
|
3288
|
+
return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3267
3289
|
val: {
|
3268
3290
|
type: B.tag,
|
3269
3291
|
value: i,
|
3270
3292
|
children: s,
|
3271
|
-
location:
|
3293
|
+
location: T(n, this.clonePosition())
|
3272
3294
|
},
|
3273
3295
|
err: null
|
3274
|
-
} : this.error(
|
3296
|
+
} : this.error(E.INVALID_TAG, T(a, this.clonePosition())));
|
3275
3297
|
} else
|
3276
|
-
return this.error(
|
3298
|
+
return this.error(E.UNCLOSED_TAG, T(n, this.clonePosition()));
|
3277
3299
|
} else
|
3278
|
-
return this.error(
|
3300
|
+
return this.error(E.INVALID_TAG, T(n, this.clonePosition()));
|
3279
3301
|
}, e.prototype.parseTagName = function() {
|
3280
3302
|
var t = this.offset();
|
3281
|
-
for (this.bump(); !this.isEOF() &&
|
3303
|
+
for (this.bump(); !this.isEOF() && Si(this.char()); )
|
3282
3304
|
this.bump();
|
3283
3305
|
return this.message.slice(t, this.offset());
|
3284
3306
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3300,14 +3322,14 @@ var yi = (
|
|
3300
3322
|
}
|
3301
3323
|
break;
|
3302
3324
|
}
|
3303
|
-
var u =
|
3325
|
+
var u = T(n, this.clonePosition());
|
3304
3326
|
return {
|
3305
3327
|
val: { type: B.literal, value: i, location: u },
|
3306
3328
|
err: null
|
3307
3329
|
};
|
3308
3330
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3309
3331
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3310
|
-
!
|
3332
|
+
!wi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3311
3333
|
}, e.prototype.tryParseQuote = function(t) {
|
3312
3334
|
if (this.isEOF() || this.char() !== 39)
|
3313
3335
|
return null;
|
@@ -3341,23 +3363,23 @@ var yi = (
|
|
3341
3363
|
r.push(n);
|
3342
3364
|
this.bump();
|
3343
3365
|
}
|
3344
|
-
return
|
3366
|
+
return ct.apply(void 0, r);
|
3345
3367
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3346
3368
|
if (this.isEOF())
|
3347
3369
|
return null;
|
3348
3370
|
var n = this.char();
|
3349
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3371
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ct(n));
|
3350
3372
|
}, e.prototype.parseArgument = function(t, r) {
|
3351
3373
|
var n = this.clonePosition();
|
3352
3374
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
3353
|
-
return this.error(
|
3375
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
3354
3376
|
if (this.char() === 125)
|
3355
|
-
return this.bump(), this.error(
|
3377
|
+
return this.bump(), this.error(E.EMPTY_ARGUMENT, T(n, this.clonePosition()));
|
3356
3378
|
var i = this.parseIdentifierIfPossible().value;
|
3357
3379
|
if (!i)
|
3358
|
-
return this.error(
|
3380
|
+
return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
3359
3381
|
if (this.bumpSpace(), this.isEOF())
|
3360
|
-
return this.error(
|
3382
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
3361
3383
|
switch (this.char()) {
|
3362
3384
|
case 125:
|
3363
3385
|
return this.bump(), {
|
@@ -3365,25 +3387,25 @@ var yi = (
|
|
3365
3387
|
type: B.argument,
|
3366
3388
|
// value does not include the opening and closing braces.
|
3367
3389
|
value: i,
|
3368
|
-
location:
|
3390
|
+
location: T(n, this.clonePosition())
|
3369
3391
|
},
|
3370
3392
|
err: null
|
3371
3393
|
};
|
3372
3394
|
case 44:
|
3373
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
3395
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
3374
3396
|
default:
|
3375
|
-
return this.error(
|
3397
|
+
return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
3376
3398
|
}
|
3377
3399
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3378
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3400
|
+
var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
|
3379
3401
|
this.bumpTo(i);
|
3380
|
-
var o = this.clonePosition(), s =
|
3402
|
+
var o = this.clonePosition(), s = T(t, o);
|
3381
3403
|
return { value: n, location: s };
|
3382
3404
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
3383
3405
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
3384
3406
|
switch (a) {
|
3385
3407
|
case "":
|
3386
|
-
return this.error(
|
3408
|
+
return this.error(E.EXPECT_ARGUMENT_TYPE, T(s, u));
|
3387
3409
|
case "number":
|
3388
3410
|
case "date":
|
3389
3411
|
case "time": {
|
@@ -3391,40 +3413,40 @@ var yi = (
|
|
3391
3413
|
var l = null;
|
3392
3414
|
if (this.bumpIf(",")) {
|
3393
3415
|
this.bumpSpace();
|
3394
|
-
var h = this.clonePosition(),
|
3395
|
-
if (
|
3396
|
-
return
|
3397
|
-
var c =
|
3416
|
+
var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
3417
|
+
if (d.err)
|
3418
|
+
return d;
|
3419
|
+
var c = xi(d.val);
|
3398
3420
|
if (c.length === 0)
|
3399
|
-
return this.error(
|
3400
|
-
var m =
|
3421
|
+
return this.error(E.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
3422
|
+
var m = T(h, this.clonePosition());
|
3401
3423
|
l = { style: c, styleLocation: m };
|
3402
3424
|
}
|
3403
|
-
var
|
3404
|
-
if (
|
3405
|
-
return
|
3406
|
-
var
|
3407
|
-
if (l &&
|
3408
|
-
var
|
3425
|
+
var y = this.tryParseArgumentClose(i);
|
3426
|
+
if (y.err)
|
3427
|
+
return y;
|
3428
|
+
var g = T(i, this.clonePosition());
|
3429
|
+
if (l && Vt(l == null ? void 0 : l.style, "::", 0)) {
|
3430
|
+
var F = _i(l.style.slice(2));
|
3409
3431
|
if (a === "number") {
|
3410
|
-
var
|
3411
|
-
return
|
3412
|
-
val: { type: B.number, value: n, location:
|
3432
|
+
var d = this.parseNumberSkeletonFromString(F, l.styleLocation);
|
3433
|
+
return d.err ? d : {
|
3434
|
+
val: { type: B.number, value: n, location: g, style: d.val },
|
3413
3435
|
err: null
|
3414
3436
|
};
|
3415
3437
|
} else {
|
3416
|
-
if (
|
3417
|
-
return this.error(
|
3418
|
-
var
|
3419
|
-
this.locale && (
|
3438
|
+
if (F.length === 0)
|
3439
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, g);
|
3440
|
+
var w = F;
|
3441
|
+
this.locale && (w = ai(F, this.locale));
|
3420
3442
|
var c = {
|
3421
3443
|
type: be.dateTime,
|
3422
|
-
pattern:
|
3444
|
+
pattern: w,
|
3423
3445
|
location: l.styleLocation,
|
3424
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3425
|
-
},
|
3446
|
+
parsedOptions: this.shouldParseSkeletons ? ei(w) : {}
|
3447
|
+
}, v = a === "date" ? B.date : B.time;
|
3426
3448
|
return {
|
3427
|
-
val: { type:
|
3449
|
+
val: { type: v, value: n, location: g, style: c },
|
3428
3450
|
err: null
|
3429
3451
|
};
|
3430
3452
|
}
|
@@ -3433,7 +3455,7 @@ var yi = (
|
|
3433
3455
|
val: {
|
3434
3456
|
type: a === "number" ? B.number : a === "date" ? B.date : B.time,
|
3435
3457
|
value: n,
|
3436
|
-
location:
|
3458
|
+
location: g,
|
3437
3459
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
3438
3460
|
},
|
3439
3461
|
err: null
|
@@ -3442,52 +3464,52 @@ var yi = (
|
|
3442
3464
|
case "plural":
|
3443
3465
|
case "selectordinal":
|
3444
3466
|
case "select": {
|
3445
|
-
var
|
3467
|
+
var x = this.clonePosition();
|
3446
3468
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3447
|
-
return this.error(
|
3469
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, T(x, H({}, x)));
|
3448
3470
|
this.bumpSpace();
|
3449
|
-
var
|
3450
|
-
if (a !== "select" &&
|
3471
|
+
var O = this.parseIdentifierIfPossible(), N = 0;
|
3472
|
+
if (a !== "select" && O.value === "offset") {
|
3451
3473
|
if (!this.bumpIf(":"))
|
3452
|
-
return this.error(
|
3474
|
+
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
3453
3475
|
this.bumpSpace();
|
3454
|
-
var
|
3455
|
-
if (
|
3456
|
-
return
|
3457
|
-
this.bumpSpace(),
|
3476
|
+
var d = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3477
|
+
if (d.err)
|
3478
|
+
return d;
|
3479
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), N = d.val;
|
3458
3480
|
}
|
3459
|
-
var
|
3460
|
-
if (
|
3461
|
-
return
|
3462
|
-
var
|
3463
|
-
if (
|
3464
|
-
return
|
3465
|
-
var
|
3481
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
3482
|
+
if (M.err)
|
3483
|
+
return M;
|
3484
|
+
var y = this.tryParseArgumentClose(i);
|
3485
|
+
if (y.err)
|
3486
|
+
return y;
|
3487
|
+
var S = T(i, this.clonePosition());
|
3466
3488
|
return a === "select" ? {
|
3467
3489
|
val: {
|
3468
3490
|
type: B.select,
|
3469
3491
|
value: n,
|
3470
|
-
options:
|
3471
|
-
location:
|
3492
|
+
options: Xt(M.val),
|
3493
|
+
location: S
|
3472
3494
|
},
|
3473
3495
|
err: null
|
3474
3496
|
} : {
|
3475
3497
|
val: {
|
3476
3498
|
type: B.plural,
|
3477
3499
|
value: n,
|
3478
|
-
options:
|
3479
|
-
offset:
|
3500
|
+
options: Xt(M.val),
|
3501
|
+
offset: N,
|
3480
3502
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3481
|
-
location:
|
3503
|
+
location: S
|
3482
3504
|
},
|
3483
3505
|
err: null
|
3484
3506
|
};
|
3485
3507
|
}
|
3486
3508
|
default:
|
3487
|
-
return this.error(
|
3509
|
+
return this.error(E.INVALID_ARGUMENT_TYPE, T(s, u));
|
3488
3510
|
}
|
3489
3511
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
3490
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
3512
|
+
return this.isEOF() || this.char() !== 125 ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
3491
3513
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
3492
3514
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
3493
3515
|
var n = this.char();
|
@@ -3496,7 +3518,7 @@ var yi = (
|
|
3496
3518
|
this.bump();
|
3497
3519
|
var i = this.clonePosition();
|
3498
3520
|
if (!this.bumpUntil("'"))
|
3499
|
-
return this.error(
|
3521
|
+
return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
|
3500
3522
|
this.bump();
|
3501
3523
|
break;
|
3502
3524
|
}
|
@@ -3526,52 +3548,52 @@ var yi = (
|
|
3526
3548
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3527
3549
|
var n = [];
|
3528
3550
|
try {
|
3529
|
-
n =
|
3551
|
+
n = ri(t);
|
3530
3552
|
} catch (i) {
|
3531
|
-
return this.error(
|
3553
|
+
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
3532
3554
|
}
|
3533
3555
|
return {
|
3534
3556
|
val: {
|
3535
3557
|
type: be.number,
|
3536
3558
|
tokens: n,
|
3537
3559
|
location: r,
|
3538
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3560
|
+
parsedOptions: this.shouldParseSkeletons ? si(n) : {}
|
3539
3561
|
},
|
3540
3562
|
err: null
|
3541
3563
|
};
|
3542
3564
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3543
3565
|
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
3544
3566
|
if (l.length === 0) {
|
3545
|
-
var
|
3567
|
+
var d = this.clonePosition();
|
3546
3568
|
if (r !== "select" && this.bumpIf("=")) {
|
3547
|
-
var c = this.tryParseDecimalInteger(
|
3569
|
+
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3548
3570
|
if (c.err)
|
3549
3571
|
return c;
|
3550
|
-
h =
|
3572
|
+
h = T(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
|
3551
3573
|
} else
|
3552
3574
|
break;
|
3553
3575
|
}
|
3554
3576
|
if (u.has(l))
|
3555
|
-
return this.error(r === "select" ?
|
3577
|
+
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
3556
3578
|
l === "other" && (s = !0), this.bumpSpace();
|
3557
3579
|
var m = this.clonePosition();
|
3558
3580
|
if (!this.bumpIf("{"))
|
3559
|
-
return this.error(r === "select" ?
|
3560
|
-
var
|
3561
|
-
if (
|
3562
|
-
return
|
3563
|
-
var
|
3564
|
-
if (
|
3565
|
-
return
|
3581
|
+
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
3582
|
+
var y = this.parseMessage(t + 1, r, n);
|
3583
|
+
if (y.err)
|
3584
|
+
return y;
|
3585
|
+
var g = this.tryParseArgumentClose(m);
|
3586
|
+
if (g.err)
|
3587
|
+
return g;
|
3566
3588
|
a.push([
|
3567
3589
|
l,
|
3568
3590
|
{
|
3569
|
-
value:
|
3570
|
-
location:
|
3591
|
+
value: y.val,
|
3592
|
+
location: T(m, this.clonePosition())
|
3571
3593
|
}
|
3572
3594
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
3573
3595
|
}
|
3574
|
-
return a.length === 0 ? this.error(r === "select" ?
|
3596
|
+
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 };
|
3575
3597
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3576
3598
|
var n = 1, i = this.clonePosition();
|
3577
3599
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3582,8 +3604,8 @@ var yi = (
|
|
3582
3604
|
else
|
3583
3605
|
break;
|
3584
3606
|
}
|
3585
|
-
var u =
|
3586
|
-
return o ? (s *= n,
|
3607
|
+
var u = T(i, this.clonePosition());
|
3608
|
+
return o ? (s *= n, yi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3587
3609
|
}, e.prototype.offset = function() {
|
3588
3610
|
return this.position.offset;
|
3589
3611
|
}, e.prototype.isEOF = function() {
|
@@ -3598,7 +3620,7 @@ var yi = (
|
|
3598
3620
|
var t = this.position.offset;
|
3599
3621
|
if (t >= this.message.length)
|
3600
3622
|
throw Error("out of bound");
|
3601
|
-
var r =
|
3623
|
+
var r = Cr(this.message, t);
|
3602
3624
|
if (r === void 0)
|
3603
3625
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3604
3626
|
return r;
|
@@ -3617,7 +3639,7 @@ var yi = (
|
|
3617
3639
|
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);
|
3618
3640
|
}
|
3619
3641
|
}, e.prototype.bumpIf = function(t) {
|
3620
|
-
if (
|
3642
|
+
if (Vt(this.message, t, this.offset())) {
|
3621
3643
|
for (var r = 0; r < t.length; r++)
|
3622
3644
|
this.bump();
|
3623
3645
|
return !0;
|
@@ -3639,7 +3661,7 @@ var yi = (
|
|
3639
3661
|
break;
|
3640
3662
|
}
|
3641
3663
|
}, e.prototype.bumpSpace = function() {
|
3642
|
-
for (; !this.isEOF() &&
|
3664
|
+
for (; !this.isEOF() && Ir(this.char()); )
|
3643
3665
|
this.bump();
|
3644
3666
|
}, e.prototype.peek = function() {
|
3645
3667
|
if (this.isEOF())
|
@@ -3649,34 +3671,34 @@ var yi = (
|
|
3649
3671
|
}, e;
|
3650
3672
|
}()
|
3651
3673
|
);
|
3652
|
-
function
|
3674
|
+
function dt(e) {
|
3653
3675
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3654
3676
|
}
|
3655
|
-
function
|
3656
|
-
return
|
3677
|
+
function wi(e) {
|
3678
|
+
return dt(e) || e === 47;
|
3657
3679
|
}
|
3658
|
-
function
|
3680
|
+
function Si(e) {
|
3659
3681
|
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;
|
3660
3682
|
}
|
3661
|
-
function
|
3683
|
+
function Ir(e) {
|
3662
3684
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3663
3685
|
}
|
3664
|
-
function
|
3686
|
+
function Ti(e) {
|
3665
3687
|
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;
|
3666
3688
|
}
|
3667
3689
|
function pt(e) {
|
3668
3690
|
e.forEach(function(t) {
|
3669
|
-
if (delete t.location,
|
3691
|
+
if (delete t.location, Er(t) || wr(t))
|
3670
3692
|
for (var r in t.options)
|
3671
3693
|
delete t.options[r].location, pt(t.options[r].value);
|
3672
|
-
else
|
3694
|
+
else vr(t) && Tr(t.style) || (_r(t) || xr(t)) && ut(t.style) ? delete t.style.location : Sr(t) && pt(t.children);
|
3673
3695
|
});
|
3674
3696
|
}
|
3675
|
-
function
|
3676
|
-
t === void 0 && (t = {}), t =
|
3677
|
-
var r = new
|
3697
|
+
function Hi(e, t) {
|
3698
|
+
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3699
|
+
var r = new Ei(e, t).parse();
|
3678
3700
|
if (r.err) {
|
3679
|
-
var n = SyntaxError(
|
3701
|
+
var n = SyntaxError(E[r.err.kind]);
|
3680
3702
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3681
3703
|
}
|
3682
3704
|
return t != null && t.captureLocation || pt(r.val), r.val;
|
@@ -3697,7 +3719,7 @@ var je = (
|
|
3697
3719
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3698
3720
|
}, t;
|
3699
3721
|
}(Error)
|
3700
|
-
),
|
3722
|
+
), zt = (
|
3701
3723
|
/** @class */
|
3702
3724
|
function(e) {
|
3703
3725
|
J(t, e);
|
@@ -3706,7 +3728,7 @@ var je = (
|
|
3706
3728
|
}
|
3707
3729
|
return t;
|
3708
3730
|
}(je)
|
3709
|
-
),
|
3731
|
+
), Ai = (
|
3710
3732
|
/** @class */
|
3711
3733
|
function(e) {
|
3712
3734
|
J(t, e);
|
@@ -3715,7 +3737,7 @@ var je = (
|
|
3715
3737
|
}
|
3716
3738
|
return t;
|
3717
3739
|
}(je)
|
3718
|
-
),
|
3740
|
+
), Pi = (
|
3719
3741
|
/** @class */
|
3720
3742
|
function(e) {
|
3721
3743
|
J(t, e);
|
@@ -3724,128 +3746,128 @@ var je = (
|
|
3724
3746
|
}
|
3725
3747
|
return t;
|
3726
3748
|
}(je)
|
3727
|
-
),
|
3749
|
+
), D;
|
3728
3750
|
(function(e) {
|
3729
3751
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3730
|
-
})(
|
3731
|
-
function
|
3752
|
+
})(D || (D = {}));
|
3753
|
+
function Fi(e) {
|
3732
3754
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3733
3755
|
var n = t[t.length - 1];
|
3734
|
-
return !n || n.type !==
|
3756
|
+
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
3735
3757
|
}, []);
|
3736
3758
|
}
|
3737
|
-
function
|
3759
|
+
function Ci(e) {
|
3738
3760
|
return typeof e == "function";
|
3739
3761
|
}
|
3740
3762
|
function Me(e, t, r, n, i, o, s) {
|
3741
|
-
if (e.length === 1 &&
|
3763
|
+
if (e.length === 1 && $t(e[0]))
|
3742
3764
|
return [
|
3743
3765
|
{
|
3744
|
-
type:
|
3766
|
+
type: D.literal,
|
3745
3767
|
value: e[0].value
|
3746
3768
|
}
|
3747
3769
|
];
|
3748
3770
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
3749
3771
|
var h = l[u];
|
3750
|
-
if (
|
3772
|
+
if ($t(h)) {
|
3751
3773
|
a.push({
|
3752
|
-
type:
|
3774
|
+
type: D.literal,
|
3753
3775
|
value: h.value
|
3754
3776
|
});
|
3755
3777
|
continue;
|
3756
3778
|
}
|
3757
|
-
if (
|
3779
|
+
if (Yn(h)) {
|
3758
3780
|
typeof o == "number" && a.push({
|
3759
|
-
type:
|
3781
|
+
type: D.literal,
|
3760
3782
|
value: r.getNumberFormat(t).format(o)
|
3761
3783
|
});
|
3762
3784
|
continue;
|
3763
3785
|
}
|
3764
|
-
var
|
3765
|
-
if (!(i &&
|
3766
|
-
throw new
|
3767
|
-
var c = i[
|
3768
|
-
if (
|
3786
|
+
var d = h.value;
|
3787
|
+
if (!(i && d in i))
|
3788
|
+
throw new Pi(d, s);
|
3789
|
+
var c = i[d];
|
3790
|
+
if (qn(h)) {
|
3769
3791
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3770
|
-
type: typeof c == "string" ?
|
3792
|
+
type: typeof c == "string" ? D.literal : D.object,
|
3771
3793
|
value: c
|
3772
3794
|
});
|
3773
3795
|
continue;
|
3774
3796
|
}
|
3775
|
-
if (
|
3776
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
3797
|
+
if (_r(h)) {
|
3798
|
+
var m = typeof h.style == "string" ? n.date[h.style] : ut(h.style) ? h.style.parsedOptions : void 0;
|
3777
3799
|
a.push({
|
3778
|
-
type:
|
3800
|
+
type: D.literal,
|
3779
3801
|
value: r.getDateTimeFormat(t, m).format(c)
|
3780
3802
|
});
|
3781
3803
|
continue;
|
3782
3804
|
}
|
3783
|
-
if (
|
3784
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
3805
|
+
if (xr(h)) {
|
3806
|
+
var m = typeof h.style == "string" ? n.time[h.style] : ut(h.style) ? h.style.parsedOptions : n.time.medium;
|
3785
3807
|
a.push({
|
3786
|
-
type:
|
3808
|
+
type: D.literal,
|
3787
3809
|
value: r.getDateTimeFormat(t, m).format(c)
|
3788
3810
|
});
|
3789
3811
|
continue;
|
3790
3812
|
}
|
3791
|
-
if (
|
3792
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
3813
|
+
if (vr(h)) {
|
3814
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Tr(h.style) ? h.style.parsedOptions : void 0;
|
3793
3815
|
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
3794
|
-
type:
|
3816
|
+
type: D.literal,
|
3795
3817
|
value: r.getNumberFormat(t, m).format(c)
|
3796
3818
|
});
|
3797
3819
|
continue;
|
3798
3820
|
}
|
3799
|
-
if (
|
3800
|
-
var
|
3801
|
-
if (!
|
3802
|
-
throw new
|
3803
|
-
var
|
3804
|
-
return
|
3821
|
+
if (Sr(h)) {
|
3822
|
+
var y = h.children, g = h.value, F = i[g];
|
3823
|
+
if (!Ci(F))
|
3824
|
+
throw new Ai(g, "function", s);
|
3825
|
+
var w = Me(y, t, r, n, i, o), v = F(w.map(function(N) {
|
3826
|
+
return N.value;
|
3805
3827
|
}));
|
3806
|
-
Array.isArray(
|
3828
|
+
Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(N) {
|
3807
3829
|
return {
|
3808
|
-
type: typeof
|
3809
|
-
value:
|
3830
|
+
type: typeof N == "string" ? D.literal : D.object,
|
3831
|
+
value: N
|
3810
3832
|
};
|
3811
3833
|
}));
|
3812
3834
|
}
|
3813
|
-
if (
|
3814
|
-
var
|
3815
|
-
if (!
|
3816
|
-
throw new
|
3817
|
-
a.push.apply(a, Me(
|
3835
|
+
if (Er(h)) {
|
3836
|
+
var x = h.options[c] || h.options.other;
|
3837
|
+
if (!x)
|
3838
|
+
throw new zt(h.value, c, Object.keys(h.options), s);
|
3839
|
+
a.push.apply(a, Me(x.value, t, r, n, i));
|
3818
3840
|
continue;
|
3819
3841
|
}
|
3820
|
-
if (
|
3821
|
-
var
|
3822
|
-
if (!
|
3842
|
+
if (wr(h)) {
|
3843
|
+
var x = h.options["=".concat(c)];
|
3844
|
+
if (!x) {
|
3823
3845
|
if (!Intl.PluralRules)
|
3824
3846
|
throw new je(`Intl.PluralRules is not available in this environment.
|
3825
3847
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3826
3848
|
`, ge.MISSING_INTL_API, s);
|
3827
|
-
var
|
3828
|
-
|
3849
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
3850
|
+
x = h.options[O] || h.options.other;
|
3829
3851
|
}
|
3830
|
-
if (!
|
3831
|
-
throw new
|
3832
|
-
a.push.apply(a, Me(
|
3852
|
+
if (!x)
|
3853
|
+
throw new zt(h.value, c, Object.keys(h.options), s);
|
3854
|
+
a.push.apply(a, Me(x.value, t, r, n, i, c - (h.offset || 0)));
|
3833
3855
|
continue;
|
3834
3856
|
}
|
3835
3857
|
}
|
3836
|
-
return
|
3858
|
+
return Fi(a);
|
3837
3859
|
}
|
3838
|
-
function
|
3839
|
-
return t ?
|
3840
|
-
return r[n] =
|
3860
|
+
function Bi(e, t) {
|
3861
|
+
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3862
|
+
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
3841
3863
|
}, {})) : e;
|
3842
3864
|
}
|
3843
|
-
function
|
3865
|
+
function Ii(e, t) {
|
3844
3866
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3845
|
-
return r[n] =
|
3846
|
-
},
|
3867
|
+
return r[n] = Bi(e[n], t[n]), r;
|
3868
|
+
}, H({}, e)) : e;
|
3847
3869
|
}
|
3848
|
-
function
|
3870
|
+
function Ke(e) {
|
3849
3871
|
return {
|
3850
3872
|
create: function() {
|
3851
3873
|
return {
|
@@ -3859,39 +3881,39 @@ function Ye(e) {
|
|
3859
3881
|
}
|
3860
3882
|
};
|
3861
3883
|
}
|
3862
|
-
function
|
3884
|
+
function Oi(e) {
|
3863
3885
|
return e === void 0 && (e = {
|
3864
3886
|
number: {},
|
3865
3887
|
dateTime: {},
|
3866
3888
|
pluralRules: {}
|
3867
3889
|
}), {
|
3868
|
-
getNumberFormat:
|
3890
|
+
getNumberFormat: Qe(function() {
|
3869
3891
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3870
3892
|
r[n] = arguments[n];
|
3871
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3893
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, pe([void 0], r, !1)))();
|
3872
3894
|
}, {
|
3873
|
-
cache:
|
3874
|
-
strategy:
|
3895
|
+
cache: Ke(e.number),
|
3896
|
+
strategy: qe.variadic
|
3875
3897
|
}),
|
3876
|
-
getDateTimeFormat:
|
3898
|
+
getDateTimeFormat: Qe(function() {
|
3877
3899
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3878
3900
|
r[n] = arguments[n];
|
3879
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3901
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, pe([void 0], r, !1)))();
|
3880
3902
|
}, {
|
3881
|
-
cache:
|
3882
|
-
strategy:
|
3903
|
+
cache: Ke(e.dateTime),
|
3904
|
+
strategy: qe.variadic
|
3883
3905
|
}),
|
3884
|
-
getPluralRules:
|
3906
|
+
getPluralRules: Qe(function() {
|
3885
3907
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3886
3908
|
r[n] = arguments[n];
|
3887
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3909
|
+
return new ((t = Intl.PluralRules).bind.apply(t, pe([void 0], r, !1)))();
|
3888
3910
|
}, {
|
3889
|
-
cache:
|
3890
|
-
strategy:
|
3911
|
+
cache: Ke(e.pluralRules),
|
3912
|
+
strategy: qe.variadic
|
3891
3913
|
})
|
3892
3914
|
};
|
3893
3915
|
}
|
3894
|
-
var
|
3916
|
+
var Li = (
|
3895
3917
|
/** @class */
|
3896
3918
|
function() {
|
3897
3919
|
function e(t, r, n, i) {
|
@@ -3905,8 +3927,8 @@ var Bi = (
|
|
3905
3927
|
var l = o.formatToParts(u);
|
3906
3928
|
if (l.length === 1)
|
3907
3929
|
return l[0].value;
|
3908
|
-
var h = l.reduce(function(
|
3909
|
-
return !
|
3930
|
+
var h = l.reduce(function(d, c) {
|
3931
|
+
return !d.length || c.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(c.value) : d[d.length - 1] += c.value, d;
|
3910
3932
|
}, []);
|
3911
3933
|
return h.length <= 1 ? h[0] || "" : h;
|
3912
3934
|
}, this.formatToParts = function(u) {
|
@@ -3923,13 +3945,13 @@ var Bi = (
|
|
3923
3945
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3924
3946
|
var s = i || {};
|
3925
3947
|
s.formatters;
|
3926
|
-
var a =
|
3927
|
-
this.ast = e.__parse(t,
|
3948
|
+
var a = dn(s, ["formatters"]);
|
3949
|
+
this.ast = e.__parse(t, H(H({}, a), { locale: this.resolvedLocale }));
|
3928
3950
|
} else
|
3929
3951
|
this.ast = t;
|
3930
3952
|
if (!Array.isArray(this.ast))
|
3931
3953
|
throw new TypeError("A message must be provided as a String or AST.");
|
3932
|
-
this.formats =
|
3954
|
+
this.formats = Ii(e.formats, n), this.formatters = i && i.formatters || Oi(this.formatterCache);
|
3933
3955
|
}
|
3934
3956
|
return Object.defineProperty(e, "defaultLocale", {
|
3935
3957
|
get: function() {
|
@@ -3942,7 +3964,7 @@ var Bi = (
|
|
3942
3964
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3943
3965
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3944
3966
|
}
|
3945
|
-
}, e.__parse =
|
3967
|
+
}, e.__parse = Hi, e.formats = {
|
3946
3968
|
number: {
|
3947
3969
|
integer: {
|
3948
3970
|
maximumFractionDigits: 0
|
@@ -4003,7 +4025,7 @@ var Bi = (
|
|
4003
4025
|
}, e;
|
4004
4026
|
}()
|
4005
4027
|
);
|
4006
|
-
function
|
4028
|
+
function Ni(e, t) {
|
4007
4029
|
if (t == null)
|
4008
4030
|
return;
|
4009
4031
|
if (t in e)
|
@@ -4024,92 +4046,92 @@ function Oi(e, t) {
|
|
4024
4046
|
n = void 0;
|
4025
4047
|
return n;
|
4026
4048
|
}
|
4027
|
-
const q = {},
|
4049
|
+
const q = {}, Mi = (e, t, r) => r && (t in q || (q[t] = {}), e in q[t] || (q[t][e] = r), r), Or = (e, t) => {
|
4028
4050
|
if (t == null)
|
4029
4051
|
return;
|
4030
4052
|
if (t in q && e in q[t])
|
4031
4053
|
return q[t][e];
|
4032
4054
|
const r = Ve(t);
|
4033
4055
|
for (let n = 0; n < r.length; n++) {
|
4034
|
-
const i = r[n], o =
|
4056
|
+
const i = r[n], o = Di(i, e);
|
4035
4057
|
if (o)
|
4036
|
-
return
|
4058
|
+
return Mi(e, t, o);
|
4037
4059
|
}
|
4038
4060
|
};
|
4039
|
-
let
|
4061
|
+
let _t;
|
4040
4062
|
const _e = ke({});
|
4041
|
-
function
|
4042
|
-
return
|
4063
|
+
function Ri(e) {
|
4064
|
+
return _t[e] || null;
|
4043
4065
|
}
|
4044
|
-
function
|
4045
|
-
return e in
|
4066
|
+
function Lr(e) {
|
4067
|
+
return e in _t;
|
4046
4068
|
}
|
4047
|
-
function
|
4048
|
-
if (!
|
4069
|
+
function Di(e, t) {
|
4070
|
+
if (!Lr(e))
|
4049
4071
|
return null;
|
4050
|
-
const r =
|
4051
|
-
return
|
4072
|
+
const r = Ri(e);
|
4073
|
+
return Ni(r, t);
|
4052
4074
|
}
|
4053
|
-
function
|
4075
|
+
function Ui(e) {
|
4054
4076
|
if (e == null)
|
4055
4077
|
return;
|
4056
4078
|
const t = Ve(e);
|
4057
4079
|
for (let r = 0; r < t.length; r++) {
|
4058
4080
|
const n = t[r];
|
4059
|
-
if (
|
4081
|
+
if (Lr(n))
|
4060
4082
|
return n;
|
4061
4083
|
}
|
4062
4084
|
}
|
4063
|
-
function
|
4064
|
-
delete q[e], _e.update((r) => (r[e] =
|
4085
|
+
function Nr(e, ...t) {
|
4086
|
+
delete q[e], _e.update((r) => (r[e] = Vn.all([r[e] || {}, ...t]), r));
|
4065
4087
|
}
|
4066
|
-
|
4088
|
+
ve(
|
4067
4089
|
[_e],
|
4068
4090
|
([e]) => Object.keys(e)
|
4069
4091
|
);
|
4070
|
-
_e.subscribe((e) =>
|
4092
|
+
_e.subscribe((e) => _t = e);
|
4071
4093
|
const Re = {};
|
4072
|
-
function
|
4094
|
+
function $i(e, t) {
|
4073
4095
|
Re[e].delete(t), Re[e].size === 0 && delete Re[e];
|
4074
4096
|
}
|
4075
|
-
function
|
4097
|
+
function Mr(e) {
|
4076
4098
|
return Re[e];
|
4077
4099
|
}
|
4078
|
-
function
|
4100
|
+
function Gi(e) {
|
4079
4101
|
return Ve(e).map((t) => {
|
4080
|
-
const r =
|
4102
|
+
const r = Mr(t);
|
4081
4103
|
return [t, r ? [...r] : []];
|
4082
4104
|
}).filter(([, t]) => t.length > 0);
|
4083
4105
|
}
|
4084
|
-
function
|
4106
|
+
function mt(e) {
|
4085
4107
|
return e == null ? !1 : Ve(e).some(
|
4086
4108
|
(t) => {
|
4087
4109
|
var r;
|
4088
|
-
return (r =
|
4110
|
+
return (r = Mr(t)) == null ? void 0 : r.size;
|
4089
4111
|
}
|
4090
4112
|
);
|
4091
4113
|
}
|
4092
|
-
function
|
4114
|
+
function ki(e, t) {
|
4093
4115
|
return Promise.all(
|
4094
|
-
t.map((n) => (
|
4095
|
-
).then((n) =>
|
4116
|
+
t.map((n) => ($i(e, n), n().then((i) => i.default || i)))
|
4117
|
+
).then((n) => Nr(e, ...n));
|
4096
4118
|
}
|
4097
4119
|
const Ee = {};
|
4098
|
-
function
|
4099
|
-
if (!
|
4120
|
+
function Rr(e) {
|
4121
|
+
if (!mt(e))
|
4100
4122
|
return e in Ee ? Ee[e] : Promise.resolve();
|
4101
|
-
const t =
|
4123
|
+
const t = Gi(e);
|
4102
4124
|
return Ee[e] = Promise.all(
|
4103
4125
|
t.map(
|
4104
|
-
([r, n]) =>
|
4126
|
+
([r, n]) => ki(r, n)
|
4105
4127
|
)
|
4106
4128
|
).then(() => {
|
4107
|
-
if (
|
4108
|
-
return
|
4129
|
+
if (mt(e))
|
4130
|
+
return Rr(e);
|
4109
4131
|
delete Ee[e];
|
4110
4132
|
}), Ee[e];
|
4111
4133
|
}
|
4112
|
-
const
|
4134
|
+
const ji = {
|
4113
4135
|
number: {
|
4114
4136
|
scientific: { notation: "scientific" },
|
4115
4137
|
engineering: { notation: "engineering" },
|
@@ -4138,57 +4160,57 @@ const Ui = {
|
|
4138
4160
|
timeZoneName: "short"
|
4139
4161
|
}
|
4140
4162
|
}
|
4141
|
-
},
|
4163
|
+
}, Vi = {
|
4142
4164
|
fallbackLocale: null,
|
4143
4165
|
loadingDelay: 200,
|
4144
|
-
formats:
|
4166
|
+
formats: ji,
|
4145
4167
|
warnOnMissingMessages: !0,
|
4146
4168
|
handleMissingMessage: void 0,
|
4147
4169
|
ignoreTag: !0
|
4148
|
-
},
|
4149
|
-
function
|
4150
|
-
return
|
4170
|
+
}, Xi = Vi;
|
4171
|
+
function ye() {
|
4172
|
+
return Xi;
|
4151
4173
|
}
|
4152
|
-
const
|
4153
|
-
var
|
4174
|
+
const et = ke(!1);
|
4175
|
+
var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Zt = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Qi = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qi = (e, t) => {
|
4154
4176
|
for (var r in t || (t = {}))
|
4155
|
-
|
4156
|
-
if (
|
4157
|
-
for (var r of
|
4158
|
-
|
4177
|
+
Ji.call(t, r) && Jt(e, r, t[r]);
|
4178
|
+
if (Zt)
|
4179
|
+
for (var r of Zt(t))
|
4180
|
+
Qi.call(t, r) && Jt(e, r, t[r]);
|
4159
4181
|
return e;
|
4160
|
-
},
|
4161
|
-
let
|
4162
|
-
const
|
4163
|
-
function
|
4182
|
+
}, Yi = (e, t) => zi(e, Zi(t));
|
4183
|
+
let bt;
|
4184
|
+
const Ue = ke(null);
|
4185
|
+
function Qt(e) {
|
4164
4186
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4165
4187
|
}
|
4166
|
-
function Ve(e, t =
|
4167
|
-
const r =
|
4168
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4188
|
+
function Ve(e, t = ye().fallbackLocale) {
|
4189
|
+
const r = Qt(e);
|
4190
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Qt(t)])] : r;
|
4169
4191
|
}
|
4170
4192
|
function ne() {
|
4171
|
-
return
|
4193
|
+
return bt != null ? bt : void 0;
|
4172
4194
|
}
|
4173
|
-
|
4174
|
-
|
4195
|
+
Ue.subscribe((e) => {
|
4196
|
+
bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
4175
4197
|
});
|
4176
|
-
const
|
4177
|
-
if (e &&
|
4178
|
-
const { loadingDelay: t } =
|
4198
|
+
const Ki = (e) => {
|
4199
|
+
if (e && Ui(e) && mt(e)) {
|
4200
|
+
const { loadingDelay: t } = ye();
|
4179
4201
|
let r;
|
4180
4202
|
return typeof window != "undefined" && ne() != null && t ? r = window.setTimeout(
|
4181
|
-
() =>
|
4203
|
+
() => et.set(!0),
|
4182
4204
|
t
|
4183
|
-
) :
|
4184
|
-
|
4205
|
+
) : et.set(!0), Rr(e).then(() => {
|
4206
|
+
Ue.set(e);
|
4185
4207
|
}).finally(() => {
|
4186
|
-
clearTimeout(r),
|
4208
|
+
clearTimeout(r), et.set(!1);
|
4187
4209
|
});
|
4188
4210
|
}
|
4189
|
-
return
|
4190
|
-
}, re =
|
4191
|
-
set:
|
4211
|
+
return Ue.set(e);
|
4212
|
+
}, re = Yi(qi({}, Ue), {
|
4213
|
+
set: Ki
|
4192
4214
|
}), Xe = (e) => {
|
4193
4215
|
const t = /* @__PURE__ */ Object.create(null);
|
4194
4216
|
return (n) => {
|
@@ -4196,42 +4218,42 @@ const Qi = (e) => {
|
|
4196
4218
|
return i in t ? t[i] : t[i] = e(n);
|
4197
4219
|
};
|
4198
4220
|
};
|
4199
|
-
var
|
4221
|
+
var eo = Object.defineProperty, $e = Object.getOwnPropertySymbols, Dr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
|
4200
4222
|
for (var r in t || (t = {}))
|
4201
|
-
|
4202
|
-
if (
|
4203
|
-
for (var r of
|
4204
|
-
|
4223
|
+
Dr.call(t, r) && qt(e, r, t[r]);
|
4224
|
+
if ($e)
|
4225
|
+
for (var r of $e(t))
|
4226
|
+
Ur.call(t, r) && qt(e, r, t[r]);
|
4205
4227
|
return e;
|
4206
4228
|
}, xe = (e, t) => {
|
4207
4229
|
var r = {};
|
4208
4230
|
for (var n in e)
|
4209
|
-
|
4210
|
-
if (e != null &&
|
4211
|
-
for (var n of
|
4212
|
-
t.indexOf(n) < 0 &&
|
4231
|
+
Dr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4232
|
+
if (e != null && $e)
|
4233
|
+
for (var n of $e(e))
|
4234
|
+
t.indexOf(n) < 0 && Ur.call(e, n) && (r[n] = e[n]);
|
4213
4235
|
return r;
|
4214
4236
|
};
|
4215
4237
|
const Ae = (e, t) => {
|
4216
|
-
const { formats: r } =
|
4238
|
+
const { formats: r } = ye();
|
4217
4239
|
if (e in r && t in r[e])
|
4218
4240
|
return r[e][t];
|
4219
4241
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4220
|
-
},
|
4242
|
+
}, to = Xe(
|
4221
4243
|
(e) => {
|
4222
4244
|
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
4223
4245
|
if (r == null)
|
4224
4246
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4225
4247
|
return n && (i = Ae("number", n)), new Intl.NumberFormat(r, i);
|
4226
4248
|
}
|
4227
|
-
),
|
4249
|
+
), ro = Xe(
|
4228
4250
|
(e) => {
|
4229
4251
|
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
4230
4252
|
if (r == null)
|
4231
4253
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4232
4254
|
return n ? i = Ae("date", n) : Object.keys(i).length === 0 && (i = Ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
4233
4255
|
}
|
4234
|
-
),
|
4256
|
+
), no = Xe(
|
4235
4257
|
(e) => {
|
4236
4258
|
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
4237
4259
|
if (r == null)
|
@@ -4240,33 +4262,33 @@ const Ae = (e, t) => {
|
|
4240
4262
|
);
|
4241
4263
|
return n ? i = Ae("time", n) : Object.keys(i).length === 0 && (i = Ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
4242
4264
|
}
|
4243
|
-
),
|
4265
|
+
), io = (e = {}) => {
|
4244
4266
|
var t = e, {
|
4245
4267
|
locale: r = ne()
|
4246
4268
|
} = t, n = xe(t, [
|
4247
4269
|
"locale"
|
4248
4270
|
]);
|
4249
|
-
return
|
4250
|
-
},
|
4271
|
+
return to(xt({ locale: r }, n));
|
4272
|
+
}, oo = (e = {}) => {
|
4251
4273
|
var t = e, {
|
4252
4274
|
locale: r = ne()
|
4253
4275
|
} = t, n = xe(t, [
|
4254
4276
|
"locale"
|
4255
4277
|
]);
|
4256
|
-
return
|
4257
|
-
},
|
4278
|
+
return ro(xt({ locale: r }, n));
|
4279
|
+
}, so = (e = {}) => {
|
4258
4280
|
var t = e, {
|
4259
4281
|
locale: r = ne()
|
4260
4282
|
} = t, n = xe(t, [
|
4261
4283
|
"locale"
|
4262
4284
|
]);
|
4263
|
-
return
|
4264
|
-
},
|
4285
|
+
return no(xt({ locale: r }, n));
|
4286
|
+
}, ao = Xe(
|
4265
4287
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4266
|
-
(e, t = ne()) => new
|
4267
|
-
ignoreTag:
|
4288
|
+
(e, t = ne()) => new Li(e, t, ye().formats, {
|
4289
|
+
ignoreTag: ye().ignoreTag
|
4268
4290
|
})
|
4269
|
-
),
|
4291
|
+
), lo = (e, t = {}) => {
|
4270
4292
|
var r, n, i, o;
|
4271
4293
|
let s = t;
|
4272
4294
|
typeof e == "object" && (s = e, e = s.id);
|
@@ -4279,35 +4301,35 @@ const Ae = (e, t) => {
|
|
4279
4301
|
throw new Error(
|
4280
4302
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4281
4303
|
);
|
4282
|
-
let h =
|
4304
|
+
let h = Or(e, u);
|
4283
4305
|
if (!h)
|
4284
|
-
h = (o = (i = (n = (r =
|
4306
|
+
h = (o = (i = (n = (r = ye()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
4285
4307
|
else if (typeof h != "string")
|
4286
4308
|
return console.warn(
|
4287
4309
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
4288
4310
|
), h;
|
4289
4311
|
if (!a)
|
4290
4312
|
return h;
|
4291
|
-
let
|
4313
|
+
let d = h;
|
4292
4314
|
try {
|
4293
|
-
|
4315
|
+
d = ao(h, u).format(a);
|
4294
4316
|
} catch (c) {
|
4295
4317
|
c instanceof Error && console.warn(
|
4296
4318
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
4297
4319
|
c.message
|
4298
4320
|
);
|
4299
4321
|
}
|
4300
|
-
return
|
4301
|
-
},
|
4302
|
-
|
4303
|
-
|
4304
|
-
|
4305
|
-
|
4306
|
-
window.emWidgets = { topic:
|
4307
|
-
const
|
4308
|
-
function
|
4322
|
+
return d;
|
4323
|
+
}, uo = (e, t) => so(t).format(e), ho = (e, t) => oo(t).format(e), co = (e, t) => io(t).format(e), fo = (e, t = ne()) => Or(e, t), po = ve([re, _e], () => lo);
|
4324
|
+
ve([re], () => uo);
|
4325
|
+
ve([re], () => ho);
|
4326
|
+
ve([re], () => co);
|
4327
|
+
ve([re, _e], () => fo);
|
4328
|
+
window.emWidgets = { topic: An };
|
4329
|
+
const mo = (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)), bo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4330
|
+
function Do(e, t) {
|
4309
4331
|
const r = window.navigator.userAgent;
|
4310
|
-
return
|
4332
|
+
return mo(r) ? t = e.filter((n) => {
|
4311
4333
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
4312
4334
|
return n;
|
4313
4335
|
}) : t = e.filter((n) => {
|
@@ -4315,15 +4337,38 @@ function Oo(e, t) {
|
|
4315
4337
|
return n;
|
4316
4338
|
}), t;
|
4317
4339
|
}
|
4318
|
-
function
|
4340
|
+
function go(e, t) {
|
4341
|
+
if (e) {
|
4342
|
+
const r = document.createElement("style");
|
4343
|
+
r.innerHTML = t, e.appendChild(r);
|
4344
|
+
}
|
4345
|
+
}
|
4346
|
+
function yo(e, t) {
|
4347
|
+
const r = new URL(t);
|
4348
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
4349
|
+
const i = document.createElement("style");
|
4350
|
+
i.innerHTML = n, e && e.appendChild(i);
|
4351
|
+
}).catch((n) => {
|
4352
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
4353
|
+
});
|
4354
|
+
}
|
4355
|
+
function vo(e, t, r) {
|
4356
|
+
if (window.emMessageBus) {
|
4357
|
+
const n = document.createElement("style");
|
4358
|
+
window.emMessageBus.subscribe(t, (i) => {
|
4359
|
+
n.innerHTML = i, e && e.appendChild(n);
|
4360
|
+
});
|
4361
|
+
}
|
4362
|
+
}
|
4363
|
+
function _o({ withLocale: e, translations: t }) {
|
4319
4364
|
re.subscribe((r) => {
|
4320
4365
|
r == null && (_e.set(t), re.set(e));
|
4321
4366
|
});
|
4322
4367
|
}
|
4323
|
-
function
|
4324
|
-
|
4368
|
+
function Yt(e, t) {
|
4369
|
+
Nr(e, t);
|
4325
4370
|
}
|
4326
|
-
const
|
4371
|
+
const Kt = {
|
4327
4372
|
en: {
|
4328
4373
|
providers: "Providers:",
|
4329
4374
|
filterby: "Filter by:",
|
@@ -4433,123 +4478,123 @@ const Qt = {
|
|
4433
4478
|
clear: "Clear all"
|
4434
4479
|
}
|
4435
4480
|
};
|
4436
|
-
function
|
4437
|
-
|
4481
|
+
function xo(e) {
|
4482
|
+
Zr(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%}}');
|
4438
4483
|
}
|
4439
|
-
function
|
4484
|
+
function er(e, t, r) {
|
4440
4485
|
const n = e.slice();
|
4441
4486
|
return n[36] = t[r], n[37] = t, n[38] = r, n;
|
4442
4487
|
}
|
4443
|
-
function
|
4488
|
+
function Eo(e) {
|
4444
4489
|
let t, r, n, i, o, s, a, u, l = (
|
4445
4490
|
/*$_*/
|
4446
4491
|
e[11]("filterby") + ""
|
4447
|
-
), h,
|
4492
|
+
), h, d, c, m, y = (
|
4448
4493
|
/*$_*/
|
4449
4494
|
e[11]("providers") + ""
|
4450
|
-
),
|
4495
|
+
), g, F, w, v, x, O, N, M, S, I, L, z, V, ie = (
|
4451
4496
|
/*$_*/
|
4452
4497
|
e[11]("clear") + ""
|
4453
4498
|
), oe, ee, se, te, ae, Pe;
|
4454
|
-
function
|
4499
|
+
function Fe(p, P) {
|
4455
4500
|
return (
|
4456
4501
|
/*fullSelection*/
|
4457
|
-
|
4502
|
+
p[7] ? To : So
|
4458
4503
|
);
|
4459
4504
|
}
|
4460
|
-
let le =
|
4505
|
+
let le = Fe(e), $ = le(e), Q = Bt(
|
4461
4506
|
/*vendorArray*/
|
4462
4507
|
e[5]
|
4463
4508
|
), f = [];
|
4464
|
-
for (let
|
4465
|
-
f[
|
4509
|
+
for (let p = 0; p < Q.length; p += 1)
|
4510
|
+
f[p] = tr(er(e, Q, p));
|
4466
4511
|
return {
|
4467
4512
|
c() {
|
4468
|
-
t =
|
4469
|
-
for (let
|
4470
|
-
f[
|
4471
|
-
z = X(), V =
|
4472
|
-
(e[4] ? "TriangleActive" : "")),
|
4473
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
4513
|
+
t = C("div"), r = C("div"), n = C("div"), i = we("svg"), o = we("path"), s = X(), a = C("div"), u = C("span"), h = G(l), d = X(), c = C("div"), m = C("span"), g = G(y), F = X(), $.c(), w = X(), v = C("span"), x = we("svg"), O = we("path"), S = X(), I = C("div"), L = C("ul");
|
4514
|
+
for (let p = 0; p < f.length; p += 1)
|
4515
|
+
f[p].c();
|
4516
|
+
z = X(), V = C("button"), oe = G(ie), 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(u, "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*/
|
4517
|
+
(e[4] ? "TriangleActive" : "")), b(r, "class", M = "FilterSelector " + /*isFilterActive*/
|
4518
|
+
(e[4] ? "FilterSelectorOpen" : "")), b(L, "class", "FilterDropdown"), b(V, "class", "ClearFilters"), V.disabled = ee = /*fullSelection*/
|
4474
4519
|
e[7] && /*selectedVendorArray*/
|
4475
4520
|
e[6].length != /*vendorArray*/
|
4476
|
-
e[5].length,
|
4477
|
-
(e[4] ? "FilterOpen" : "")),
|
4521
|
+
e[5].length, b(I, "class", se = "FilterDropdownContainer " + /*isFilterActive*/
|
4522
|
+
(e[4] ? "FilterOpen" : "")), b(t, "class", te = "FilterContainer " + /*addfilterselector*/
|
4478
4523
|
(e[0] == "true" && /*addsortingselector*/
|
4479
4524
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4480
4525
|
},
|
4481
|
-
m(
|
4482
|
-
W(
|
4526
|
+
m(p, P) {
|
4527
|
+
W(p, t, P), _(t, r), _(r, n), _(n, i), _(i, o), _(n, s), _(n, a), _(a, u), _(u, h), _(a, d), _(a, c), _(c, m), _(m, g), _(c, F), $.m(c, null), _(r, w), _(r, v), _(v, x), _(x, O), _(t, S), _(t, I), _(I, L);
|
4483
4528
|
for (let A = 0; A < f.length; A += 1)
|
4484
|
-
f[A] && f[A].m(
|
4485
|
-
|
4486
|
-
|
4529
|
+
f[A] && f[A].m(L, null);
|
4530
|
+
_(I, z), _(I, V), _(V, oe), ae || (Pe = [
|
4531
|
+
De(
|
4487
4532
|
r,
|
4488
4533
|
"click",
|
4489
4534
|
/*click_handler*/
|
4490
|
-
e[
|
4535
|
+
e[23]
|
4491
4536
|
),
|
4492
|
-
|
4537
|
+
De(
|
4493
4538
|
V,
|
4494
4539
|
"click",
|
4495
4540
|
/*click_handler_2*/
|
4496
|
-
e[
|
4541
|
+
e[26]
|
4497
4542
|
)
|
4498
4543
|
], ae = !0);
|
4499
4544
|
},
|
4500
|
-
p(
|
4501
|
-
if (
|
4545
|
+
p(p, P) {
|
4546
|
+
if (P[0] & /*$_*/
|
4502
4547
|
2048 && l !== (l = /*$_*/
|
4503
|
-
|
4504
|
-
2048 &&
|
4505
|
-
|
4506
|
-
16 &&
|
4507
|
-
(
|
4508
|
-
16 &&
|
4509
|
-
(
|
4548
|
+
p[11]("filterby") + "") && Y(h, l), P[0] & /*$_*/
|
4549
|
+
2048 && y !== (y = /*$_*/
|
4550
|
+
p[11]("providers") + "") && Y(g, y), le === (le = Fe(p)) && $ ? $.p(p, P) : ($.d(1), $ = le(p), $ && ($.c(), $.m(c, null))), P[0] & /*isFilterActive*/
|
4551
|
+
16 && N !== (N = "TriangleInactive " + /*isFilterActive*/
|
4552
|
+
(p[4] ? "TriangleActive" : "")) && b(v, "class", N), P[0] & /*isFilterActive*/
|
4553
|
+
16 && M !== (M = "FilterSelector " + /*isFilterActive*/
|
4554
|
+
(p[4] ? "FilterSelectorOpen" : "")) && b(r, "class", M), P[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4510
4555
|
8228) {
|
4511
|
-
Q =
|
4556
|
+
Q = Bt(
|
4512
4557
|
/*vendorArray*/
|
4513
|
-
|
4558
|
+
p[5]
|
4514
4559
|
);
|
4515
4560
|
let A;
|
4516
4561
|
for (A = 0; A < Q.length; A += 1) {
|
4517
|
-
const ue =
|
4518
|
-
f[A] ? f[A].p(ue,
|
4562
|
+
const ue = er(p, Q, A);
|
4563
|
+
f[A] ? f[A].p(ue, P) : (f[A] = tr(ue), f[A].c(), f[A].m(L, null));
|
4519
4564
|
}
|
4520
4565
|
for (; A < f.length; A += 1)
|
4521
4566
|
f[A].d(1);
|
4522
4567
|
f.length = Q.length;
|
4523
4568
|
}
|
4524
|
-
|
4569
|
+
P[0] & /*$_*/
|
4525
4570
|
2048 && ie !== (ie = /*$_*/
|
4526
|
-
|
4571
|
+
p[11]("clear") + "") && Y(oe, ie), P[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4527
4572
|
224 && ee !== (ee = /*fullSelection*/
|
4528
|
-
|
4529
|
-
|
4530
|
-
|
4573
|
+
p[7] && /*selectedVendorArray*/
|
4574
|
+
p[6].length != /*vendorArray*/
|
4575
|
+
p[5].length) && (V.disabled = ee), P[0] & /*isFilterActive*/
|
4531
4576
|
16 && se !== (se = "FilterDropdownContainer " + /*isFilterActive*/
|
4532
|
-
(
|
4577
|
+
(p[4] ? "FilterOpen" : "")) && b(I, "class", se), P[0] & /*addfilterselector, addsortingselector*/
|
4533
4578
|
3 && te !== (te = "FilterContainer " + /*addfilterselector*/
|
4534
|
-
(
|
4535
|
-
|
4579
|
+
(p[0] == "true" && /*addsortingselector*/
|
4580
|
+
p[1] == "true" ? "FilerContainerSplit" : "")) && b(t, "class", te);
|
4536
4581
|
},
|
4537
|
-
d(
|
4538
|
-
|
4582
|
+
d(p) {
|
4583
|
+
p && j(t), $.d(), qr(f, p), ae = !1, K(Pe);
|
4539
4584
|
}
|
4540
4585
|
};
|
4541
4586
|
}
|
4542
|
-
function
|
4587
|
+
function wo(e) {
|
4543
4588
|
let t, r = (
|
4544
4589
|
/*$_*/
|
4545
4590
|
e[11]("500") + ""
|
4546
4591
|
), n;
|
4547
4592
|
return {
|
4548
4593
|
c() {
|
4549
|
-
t =
|
4594
|
+
t = C("p"), n = G(r), b(t, "class", "SearchLoading");
|
4550
4595
|
},
|
4551
4596
|
m(i, o) {
|
4552
|
-
W(i, t, o),
|
4597
|
+
W(i, t, o), _(t, n);
|
4553
4598
|
},
|
4554
4599
|
p(i, o) {
|
4555
4600
|
o[0] & /*$_*/
|
@@ -4561,17 +4606,17 @@ function go(e) {
|
|
4561
4606
|
}
|
4562
4607
|
};
|
4563
4608
|
}
|
4564
|
-
function
|
4609
|
+
function So(e) {
|
4565
4610
|
let t, r;
|
4566
4611
|
return {
|
4567
4612
|
c() {
|
4568
|
-
t =
|
4613
|
+
t = C("span"), r = G(
|
4569
4614
|
/*selectionNumber*/
|
4570
4615
|
e[8]
|
4571
|
-
),
|
4616
|
+
), b(t, "class", "FilterCounter");
|
4572
4617
|
},
|
4573
4618
|
m(n, i) {
|
4574
|
-
W(n, t, i),
|
4619
|
+
W(n, t, i), _(t, r);
|
4575
4620
|
},
|
4576
4621
|
p(n, i) {
|
4577
4622
|
i[0] & /*selectionNumber*/
|
@@ -4586,17 +4631,17 @@ function vo(e) {
|
|
4586
4631
|
}
|
4587
4632
|
};
|
4588
4633
|
}
|
4589
|
-
function
|
4634
|
+
function To(e) {
|
4590
4635
|
let t, r = (
|
4591
4636
|
/*$_*/
|
4592
4637
|
e[11]("all") + ""
|
4593
4638
|
), n;
|
4594
4639
|
return {
|
4595
4640
|
c() {
|
4596
|
-
t =
|
4641
|
+
t = C("span"), n = G(r), b(t, "class", "FilterCounter");
|
4597
4642
|
},
|
4598
4643
|
m(i, o) {
|
4599
|
-
W(i, t, o),
|
4644
|
+
W(i, t, o), _(t, n);
|
4600
4645
|
},
|
4601
4646
|
p(i, o) {
|
4602
4647
|
o[0] & /*$_*/
|
@@ -4608,27 +4653,27 @@ function yo(e) {
|
|
4608
4653
|
}
|
4609
4654
|
};
|
4610
4655
|
}
|
4611
|
-
function
|
4656
|
+
function Ho(e) {
|
4612
4657
|
let t, r;
|
4613
4658
|
return {
|
4614
4659
|
c() {
|
4615
|
-
t =
|
4616
|
-
e[36].logo) ||
|
4660
|
+
t = C("img"), Pt(t.src, r = /*vendor*/
|
4661
|
+
e[36].logo) || b(t, "src", r), b(t, "alt", "vendor logo");
|
4617
4662
|
},
|
4618
4663
|
m(n, i) {
|
4619
4664
|
W(n, t, i);
|
4620
4665
|
},
|
4621
4666
|
p(n, i) {
|
4622
4667
|
i[0] & /*vendorArray*/
|
4623
|
-
32 && !
|
4624
|
-
n[36].logo) &&
|
4668
|
+
32 && !Pt(t.src, r = /*vendor*/
|
4669
|
+
n[36].logo) && b(t, "src", r);
|
4625
4670
|
},
|
4626
4671
|
d(n) {
|
4627
4672
|
n && j(t);
|
4628
4673
|
}
|
4629
4674
|
};
|
4630
4675
|
}
|
4631
|
-
function
|
4676
|
+
function Ao(e) {
|
4632
4677
|
let t, r, n = (
|
4633
4678
|
/*vendor*/
|
4634
4679
|
e[36].name + ""
|
@@ -4638,27 +4683,27 @@ function xo(e) {
|
|
4638
4683
|
), l, h;
|
4639
4684
|
return {
|
4640
4685
|
c() {
|
4641
|
-
t =
|
4686
|
+
t = C("div"), r = C("span"), i = G(n), o = X(), s = C("span"), a = G("("), l = G(u), h = G(")"), b(r, "class", "VendorName"), b(t, "class", "FilterItemLabel");
|
4642
4687
|
},
|
4643
|
-
m(
|
4644
|
-
W(
|
4688
|
+
m(d, c) {
|
4689
|
+
W(d, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, h);
|
4645
4690
|
},
|
4646
|
-
p(
|
4691
|
+
p(d, c) {
|
4647
4692
|
c[0] & /*vendorArray*/
|
4648
4693
|
32 && n !== (n = /*vendor*/
|
4649
|
-
|
4694
|
+
d[36].name + "") && Y(i, n), c[0] & /*vendorArray*/
|
4650
4695
|
32 && u !== (u = /*vendor*/
|
4651
|
-
|
4696
|
+
d[36].games.count + "") && Y(l, u);
|
4652
4697
|
},
|
4653
|
-
d(
|
4654
|
-
|
4698
|
+
d(d) {
|
4699
|
+
d && j(t);
|
4655
4700
|
}
|
4656
4701
|
};
|
4657
4702
|
}
|
4658
|
-
function
|
4659
|
-
let t, r, n, i, o, s, a, u, l, h,
|
4703
|
+
function tr(e) {
|
4704
|
+
let t, r, n, i, o, s, a, u, l, h, d, c;
|
4660
4705
|
function m() {
|
4661
|
-
e[
|
4706
|
+
e[24].call(
|
4662
4707
|
n,
|
4663
4708
|
/*each_value*/
|
4664
4709
|
e[37],
|
@@ -4666,73 +4711,73 @@ function Yt(e) {
|
|
4666
4711
|
e[38]
|
4667
4712
|
);
|
4668
4713
|
}
|
4669
|
-
function
|
4714
|
+
function y() {
|
4670
4715
|
return (
|
4671
4716
|
/*click_handler_1*/
|
4672
|
-
e[
|
4717
|
+
e[25](
|
4673
4718
|
/*vendor*/
|
4674
4719
|
e[36]
|
4675
4720
|
)
|
4676
4721
|
);
|
4677
4722
|
}
|
4678
|
-
function
|
4723
|
+
function g(v, x) {
|
4679
4724
|
if (
|
4680
4725
|
/*filterbylogo*/
|
4681
|
-
|
4682
|
-
) return
|
4726
|
+
v[2] === "false"
|
4727
|
+
) return Ao;
|
4683
4728
|
if (
|
4684
4729
|
/*filterbylogo*/
|
4685
|
-
|
4686
|
-
) return
|
4730
|
+
v[2] === "true"
|
4731
|
+
) return Ho;
|
4687
4732
|
}
|
4688
|
-
let
|
4733
|
+
let F = g(e), w = F && F(e);
|
4689
4734
|
return {
|
4690
4735
|
c() {
|
4691
|
-
t =
|
4692
|
-
e[36].name,
|
4736
|
+
t = C("li"), r = C("label"), n = C("input"), o = X(), s = C("span"), a = X(), w && w.c(), u = X(), b(n, "type", "checkbox"), b(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
4737
|
+
e[36].name, Ft(n, n.__value), b(s, "class", "FiltersCheckmark"), b(r, "class", "FilterLabel"), b(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4693
4738
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = h = /*vendor*/
|
4694
4739
|
e[36].name;
|
4695
4740
|
},
|
4696
|
-
m(
|
4697
|
-
W(
|
4698
|
-
e[36].isFilterSelected,
|
4699
|
-
|
4700
|
-
|
4701
|
-
],
|
4741
|
+
m(v, x) {
|
4742
|
+
W(v, t, x), _(t, r), _(r, n), n.checked = /*vendor*/
|
4743
|
+
e[36].isFilterSelected, _(r, o), _(r, s), _(r, a), w && w.m(r, null), _(t, u), d || (c = [
|
4744
|
+
De(n, "change", m),
|
4745
|
+
De(n, "click", y)
|
4746
|
+
], d = !0);
|
4702
4747
|
},
|
4703
|
-
p(
|
4704
|
-
e =
|
4748
|
+
p(v, x) {
|
4749
|
+
e = v, x[0] & /*vendorArray*/
|
4705
4750
|
32 && i !== (i = /*vendor*/
|
4706
|
-
e[36].name) && (n.__value = i,
|
4751
|
+
e[36].name) && (n.__value = i, Ft(n, n.__value)), x[0] & /*vendorArray*/
|
4707
4752
|
32 && (n.checked = /*vendor*/
|
4708
|
-
e[36].isFilterSelected),
|
4753
|
+
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*/
|
4709
4754
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4710
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
4755
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && b(t, "class", l), x[0] & /*vendorArray*/
|
4711
4756
|
32 && h !== (h = /*vendor*/
|
4712
4757
|
e[36].name) && (t.value = h);
|
4713
4758
|
},
|
4714
|
-
d(
|
4715
|
-
|
4759
|
+
d(v) {
|
4760
|
+
v && j(t), w && w.d(), d = !1, K(c);
|
4716
4761
|
}
|
4717
4762
|
};
|
4718
4763
|
}
|
4719
|
-
function
|
4764
|
+
function Po(e) {
|
4720
4765
|
let t;
|
4721
4766
|
function r(o, s) {
|
4722
4767
|
if (
|
4723
4768
|
/*hasErrors*/
|
4724
4769
|
o[10]
|
4725
|
-
) return
|
4770
|
+
) return wo;
|
4726
4771
|
if (!/*isLoading*/
|
4727
|
-
o[9]) return
|
4772
|
+
o[9]) return Eo;
|
4728
4773
|
}
|
4729
4774
|
let n = r(e), i = n && n(e);
|
4730
4775
|
return {
|
4731
4776
|
c() {
|
4732
|
-
t =
|
4777
|
+
t = C("div"), i && i.c();
|
4733
4778
|
},
|
4734
4779
|
m(o, s) {
|
4735
|
-
W(o, t, s), i && i.m(t, null), e[
|
4780
|
+
W(o, t, s), i && i.m(t, null), e[27](t);
|
4736
4781
|
},
|
4737
4782
|
p(o, s) {
|
4738
4783
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
@@ -4740,107 +4785,93 @@ function Eo(e) {
|
|
4740
4785
|
i: k,
|
4741
4786
|
o: k,
|
4742
4787
|
d(o) {
|
4743
|
-
o && j(t), i && i.d(), e[
|
4788
|
+
o && j(t), i && i.d(), e[27](null);
|
4744
4789
|
}
|
4745
4790
|
};
|
4746
4791
|
}
|
4747
|
-
function
|
4792
|
+
function Fo(e, t, r) {
|
4748
4793
|
let n;
|
4749
|
-
|
4750
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector:
|
4751
|
-
|
4752
|
-
const
|
4753
|
-
fetch(a).then((
|
4754
|
-
Object.keys(
|
4755
|
-
|
4794
|
+
zr(e, po, (f) => r(11, n = f));
|
4795
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = 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;
|
4796
|
+
_o({ withLocale: "en", translations: {} });
|
4797
|
+
const z = () => {
|
4798
|
+
fetch(a).then((p) => p.json()).then((p) => {
|
4799
|
+
Object.keys(p).forEach((P) => {
|
4800
|
+
Yt(P, p[P]);
|
4756
4801
|
});
|
4757
|
-
}).catch((
|
4758
|
-
console.log(
|
4802
|
+
}).catch((p) => {
|
4803
|
+
console.log(p);
|
4759
4804
|
});
|
4760
4805
|
};
|
4761
|
-
Object.keys(
|
4762
|
-
|
4763
|
-
});
|
4764
|
-
const M = () => {
|
4765
|
-
let f = document.createElement("style");
|
4766
|
-
f.innerHTML = u, O.appendChild(f);
|
4767
|
-
}, z = () => {
|
4768
|
-
let f = document.createElement("style");
|
4769
|
-
fetch(new URL(l)).then((d) => d.text()).then((d) => {
|
4770
|
-
f.innerHTML = d, setTimeout(
|
4771
|
-
() => {
|
4772
|
-
O.appendChild(f);
|
4773
|
-
},
|
4774
|
-
1
|
4775
|
-
);
|
4776
|
-
});
|
4777
|
-
};
|
4778
|
-
H[h] && (H = { [h]: [] });
|
4806
|
+
Object.keys(Kt).forEach((f) => {
|
4807
|
+
Yt(f, Kt[f]);
|
4808
|
+
}), x[h] && (x = { [h]: [] });
|
4779
4809
|
const V = () => {
|
4780
|
-
r(4,
|
4781
|
-
}, ie = (f) => (r(9,
|
4810
|
+
r(4, g = !g), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4811
|
+
}, ie = (f) => (r(9, M = !0), new Promise((p, P) => {
|
4782
4812
|
fetch(f).then((A) => A.json()).then((A) => {
|
4783
|
-
A = A.items,
|
4813
|
+
A = A.items, p(A.items), r(6, v = []);
|
4784
4814
|
let ue = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4785
|
-
A.forEach((
|
4786
|
-
var
|
4787
|
-
ue || (ue = { currentCategoryId: [] }), ((
|
4788
|
-
}), r(5,
|
4815
|
+
A.forEach((Ce) => {
|
4816
|
+
var Et;
|
4817
|
+
ue || (ue = { currentCategoryId: [] }), ((Et = ue[h]) == null ? void 0 : Et.indexOf(Ce.id)) >= 0 ? (Ce.isFilterSelected = !0, v.push(Ce)) : Ce.isFilterSelected = !1;
|
4818
|
+
}), r(5, w = A), ee();
|
4789
4819
|
}).catch((A) => {
|
4790
|
-
console.error(A), r(10,
|
4820
|
+
console.error(A), r(10, I = !0), P(A);
|
4791
4821
|
}).finally(() => {
|
4792
|
-
r(9,
|
4822
|
+
r(9, M = !1);
|
4793
4823
|
});
|
4794
4824
|
})), oe = (f) => {
|
4795
|
-
let
|
4796
|
-
f.isFilterSelected = !f.isFilterSelected, !v.length || v.filter((
|
4797
|
-
[h]: v.map((
|
4798
|
-
})) : (
|
4825
|
+
let p = localStorage.getItem("vendorFiltersByCategory");
|
4826
|
+
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 = {
|
4827
|
+
[h]: v.map((P) => P.id)
|
4828
|
+
})) : (p = JSON.parse(p), p[h] = v.map((P) => P.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(p))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), ee();
|
4799
4829
|
}, ee = () => {
|
4800
|
-
r(7,
|
4830
|
+
r(7, O = v.length === w.length || v.length == 0), r(8, N = v.length);
|
4801
4831
|
}, se = () => {
|
4802
4832
|
const f = new URL(`${i}/v1/casino/vendors`);
|
4803
|
-
r(4,
|
4833
|
+
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", bo(F)), (h.match(/\$/g) || []).length > 1 ? (f.searchParams.append("filter", `games(subGroups=${h})`), f.searchParams.append("subVendors", `games(subGroups=${h})`)) : f.searchParams.append("filter", `games(groups=${h})`), ie(f);
|
4804
4834
|
}, te = () => {
|
4805
|
-
r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(
|
4835
|
+
r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
|
4806
4836
|
[h]: v.map((f) => f.id)
|
4807
|
-
})),
|
4837
|
+
})), w.forEach((f) => f.isFilterSelected = !1), r(5, w), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, O = !0), r(4, g = !1);
|
4808
4838
|
}, ae = (f) => {
|
4809
|
-
f.data.type == "SortingOpened" && r(4,
|
4839
|
+
f.data.type == "SortingOpened" && r(4, g = !1);
|
4810
4840
|
};
|
4811
|
-
|
4812
|
-
window.removeEventListener("message", ae);
|
4841
|
+
tn(() => (window.addEventListener("message", ae, !1), () => {
|
4842
|
+
window.emMessageBus != null && L && L.unsubscribe(), window.removeEventListener("message", ae);
|
4813
4843
|
}));
|
4814
4844
|
const Pe = () => V();
|
4815
|
-
function
|
4816
|
-
f[
|
4845
|
+
function Fe(f, p) {
|
4846
|
+
f[p].isFilterSelected = this.checked, r(5, w);
|
4817
4847
|
}
|
4818
|
-
const le = (f) => oe(f),
|
4848
|
+
const le = (f) => oe(f), $ = () => te();
|
4819
4849
|
function Q(f) {
|
4820
|
-
|
4821
|
-
|
4850
|
+
tt[f ? "unshift" : "push"](() => {
|
4851
|
+
S = f, r(3, S);
|
4822
4852
|
});
|
4823
4853
|
}
|
4824
4854
|
return e.$$set = (f) => {
|
4825
|
-
"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, u = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, h = f.categoryid), "addfilterselector" in f && r(0,
|
4855
|
+
"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, u = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, h = 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);
|
4826
4856
|
}, e.$$.update = () => {
|
4827
4857
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4828
4858
|
2195460 && i && o && h && m && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4829
|
-
524296 && u &&
|
4830
|
-
1048584 && l &&
|
4831
|
-
|
4859
|
+
524296 && u && S && go(S, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4860
|
+
1048584 && l && S && yo(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4861
|
+
4194312 && S && vo(S, `${y}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4862
|
+
262144 && a && z();
|
4832
4863
|
}, [
|
4833
|
-
|
4864
|
+
d,
|
4834
4865
|
c,
|
4835
4866
|
m,
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4867
|
+
S,
|
4868
|
+
g,
|
4869
|
+
w,
|
4839
4870
|
v,
|
4840
|
-
|
4871
|
+
O,
|
4841
4872
|
N,
|
4842
|
-
|
4843
|
-
|
4873
|
+
M,
|
4874
|
+
I,
|
4844
4875
|
n,
|
4845
4876
|
V,
|
4846
4877
|
oe,
|
@@ -4852,21 +4883,22 @@ function wo(e, t, r) {
|
|
4852
4883
|
u,
|
4853
4884
|
l,
|
4854
4885
|
h,
|
4886
|
+
y,
|
4855
4887
|
Pe,
|
4856
|
-
|
4888
|
+
Fe,
|
4857
4889
|
le,
|
4858
|
-
|
4890
|
+
$,
|
4859
4891
|
Q
|
4860
4892
|
];
|
4861
4893
|
}
|
4862
|
-
class
|
4894
|
+
class $r extends cn {
|
4863
4895
|
constructor(t) {
|
4864
|
-
super(),
|
4896
|
+
super(), un(
|
4865
4897
|
this,
|
4866
4898
|
t,
|
4867
|
-
|
4868
|
-
|
4869
|
-
|
4899
|
+
Fo,
|
4900
|
+
Po,
|
4901
|
+
nr,
|
4870
4902
|
{
|
4871
4903
|
endpoint: 15,
|
4872
4904
|
datasource: 16,
|
@@ -4877,9 +4909,10 @@ class Mr extends an {
|
|
4877
4909
|
categoryid: 21,
|
4878
4910
|
addfilterselector: 0,
|
4879
4911
|
addsortingselector: 1,
|
4880
|
-
filterbylogo: 2
|
4912
|
+
filterbylogo: 2,
|
4913
|
+
mbsource: 22
|
4881
4914
|
},
|
4882
|
-
|
4915
|
+
xo,
|
4883
4916
|
[-1, -1]
|
4884
4917
|
);
|
4885
4918
|
}
|
@@ -4943,49 +4976,58 @@ class Mr extends an {
|
|
4943
4976
|
set filterbylogo(t) {
|
4944
4977
|
this.$$set({ filterbylogo: t }), U();
|
4945
4978
|
}
|
4979
|
+
get mbsource() {
|
4980
|
+
return this.$$.ctx[22];
|
4981
|
+
}
|
4982
|
+
set mbsource(t) {
|
4983
|
+
this.$$set({ mbsource: t }), U();
|
4984
|
+
}
|
4946
4985
|
}
|
4947
|
-
|
4948
|
-
const
|
4986
|
+
hn($r, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {} }, [], [], !0);
|
4987
|
+
const Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4949
4988
|
__proto__: null,
|
4950
|
-
default:
|
4989
|
+
default: $r
|
4951
4990
|
}, Symbol.toStringTag, { value: "Module" }));
|
4952
4991
|
export {
|
4953
4992
|
re as $,
|
4954
|
-
|
4955
|
-
|
4956
|
-
|
4957
|
-
|
4958
|
-
|
4959
|
-
|
4960
|
-
|
4961
|
-
|
4962
|
-
|
4993
|
+
vo as A,
|
4994
|
+
Bt as B,
|
4995
|
+
qr as C,
|
4996
|
+
po as D,
|
4997
|
+
No as E,
|
4998
|
+
we as F,
|
4999
|
+
Do as G,
|
5000
|
+
Lo as H,
|
5001
|
+
Ro as I,
|
4963
5002
|
Io as J,
|
4964
|
-
|
4965
|
-
|
4966
|
-
|
4967
|
-
|
4968
|
-
|
4969
|
-
|
5003
|
+
Mo as K,
|
5004
|
+
_e as L,
|
5005
|
+
Uo as M,
|
5006
|
+
cn as S,
|
5007
|
+
Nr as a,
|
5008
|
+
Zr as b,
|
5009
|
+
hn as c,
|
5010
|
+
X as d,
|
5011
|
+
C as e,
|
4970
5012
|
U as f,
|
4971
|
-
|
4972
|
-
|
4973
|
-
|
4974
|
-
|
4975
|
-
|
4976
|
-
|
4977
|
-
|
5013
|
+
Pt as g,
|
5014
|
+
b as h,
|
5015
|
+
un as i,
|
5016
|
+
Oo as j,
|
5017
|
+
W as k,
|
5018
|
+
_ as l,
|
5019
|
+
Y as m,
|
4978
5020
|
k as n,
|
4979
|
-
|
4980
|
-
|
4981
|
-
|
4982
|
-
|
4983
|
-
|
4984
|
-
|
4985
|
-
|
4986
|
-
|
4987
|
-
|
4988
|
-
|
4989
|
-
|
4990
|
-
|
5021
|
+
j as o,
|
5022
|
+
zr as p,
|
5023
|
+
tn as q,
|
5024
|
+
yo as r,
|
5025
|
+
nr as s,
|
5026
|
+
G as t,
|
5027
|
+
De as u,
|
5028
|
+
Bo as v,
|
5029
|
+
mo as w,
|
5030
|
+
bo as x,
|
5031
|
+
tt as y,
|
5032
|
+
go as z
|
4991
5033
|
};
|