@everymatrix/casino-providers 1.76.1 → 1.76.3
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/CasinoProviders-BYYBUFLe.cjs +16 -0
- package/components/{CasinoProviders-5KgLupng.js → CasinoProviders-LwC7cLP2.js} +333 -331
- package/components/{CasinoProviders-CwSc0dPe.js → CasinoProviders-ofpGnWLA.js} +349 -347
- package/es2015/casino-providers.cjs +1 -1
- package/es2015/casino-providers.js +1 -1
- package/esnext/casino-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoProviders-Dtz5nhD9.cjs +0 -16
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function M() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function dt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Xe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function se(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(dt);
|
|
11
11
|
}
|
|
12
12
|
function De(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function mt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ae;
|
|
19
|
-
function
|
|
19
|
+
function de(e, t) {
|
|
20
20
|
return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function jt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function pt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function gt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function kt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(pt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function y(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Vt(e, t, r) {
|
|
41
|
+
const n = Xt(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = A("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, zt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Xt(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function zt(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function zt(e, t) {
|
|
58
58
|
return y(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,7 +67,7 @@ function C(e, t, r) {
|
|
|
67
67
|
function I(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ze(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -80,23 +80,23 @@ function $(e) {
|
|
|
80
80
|
function R() {
|
|
81
81
|
return $(" ");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Wt() {
|
|
84
84
|
return $("");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function gt(e, t, r, n) {
|
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
88
88
|
}
|
|
89
89
|
function S(e, t, r) {
|
|
90
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Zt(e) {
|
|
93
93
|
return Array.from(e.childNodes);
|
|
94
94
|
}
|
|
95
95
|
function D(e, t) {
|
|
96
96
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
97
97
|
t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Qt(e) {
|
|
100
100
|
const t = {};
|
|
101
101
|
return e.childNodes.forEach(
|
|
102
102
|
/** @param {Element} node */
|
|
@@ -111,10 +111,10 @@ function re(e) {
|
|
|
111
111
|
}
|
|
112
112
|
const z = [], Ae = [];
|
|
113
113
|
let W = [];
|
|
114
|
-
const
|
|
114
|
+
const We = [], qt = /* @__PURE__ */ Promise.resolve();
|
|
115
115
|
let Oe = !1;
|
|
116
|
-
function
|
|
117
|
-
Oe || (Oe = !0,
|
|
116
|
+
function Jt() {
|
|
117
|
+
Oe || (Oe = !0, qt.then(G));
|
|
118
118
|
}
|
|
119
119
|
function we(e) {
|
|
120
120
|
W.push(e);
|
|
@@ -129,7 +129,7 @@ function G() {
|
|
|
129
129
|
try {
|
|
130
130
|
for (; V < z.length; ) {
|
|
131
131
|
const t = z[V];
|
|
132
|
-
V++, re(t),
|
|
132
|
+
V++, re(t), Yt(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
135
|
throw z.length = 0, V = 0, t;
|
|
@@ -142,43 +142,43 @@ function G() {
|
|
|
142
142
|
}
|
|
143
143
|
W.length = 0;
|
|
144
144
|
} while (z.length);
|
|
145
|
-
for (;
|
|
146
|
-
|
|
145
|
+
for (; We.length; )
|
|
146
|
+
We.pop()();
|
|
147
147
|
Oe = !1, xe.clear(), re(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Yt(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
151
|
e.update(), se(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
153
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Kt(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
158
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const er = /* @__PURE__ */ new Set();
|
|
161
|
+
function tr(e, t) {
|
|
162
|
+
e && e.i && (er.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
164
|
function ue(e) {
|
|
165
165
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function rr(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
169
|
n && n.m(t, r), we(() => {
|
|
170
|
-
const s = e.$$.on_mount.map(
|
|
170
|
+
const s = e.$$.on_mount.map(dt).filter(De);
|
|
171
171
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : se(s), e.$$.on_mount = [];
|
|
172
172
|
}), i.forEach(we);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function nr(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (Kt(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && (z.push(e),
|
|
178
|
+
function ir(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (z.push(e), Jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
182
182
|
const l = Fe;
|
|
183
183
|
re(e);
|
|
184
184
|
const u = e.$$ = {
|
|
@@ -188,7 +188,7 @@ function or(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
188
188
|
props: s,
|
|
189
189
|
update: M,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: Xe(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,28 +197,28 @@ function or(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: Xe(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || l.$$.root
|
|
204
204
|
};
|
|
205
205
|
o && o(u.root);
|
|
206
206
|
let h = !1;
|
|
207
|
-
if (u.ctx = r
|
|
208
|
-
const
|
|
209
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
210
|
-
})
|
|
207
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...g) => {
|
|
208
|
+
const p = g.length ? g[0] : f;
|
|
209
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), h && ir(e, c)), f;
|
|
210
|
+
}), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const c =
|
|
212
|
+
const c = Zt(t.target);
|
|
213
213
|
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && tr(e.$$.fragment), rr(e, t.target, t.anchor), G();
|
|
217
217
|
}
|
|
218
218
|
re(l);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let bt;
|
|
221
|
+
typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -277,7 +277,7 @@ typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = Qt(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
@@ -364,8 +364,8 @@ function le(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let o = class extends
|
|
367
|
+
function or(e, t, r, n, i, s) {
|
|
368
|
+
let o = class extends bt {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -393,7 +393,7 @@ function ar(e, t, r, n, i, s) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
o, o;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class ar {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class ur {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
nr(this, 1), this.$destroy = M;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -434,12 +434,12 @@ class ur {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
442
|
-
const
|
|
440
|
+
const ur = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ur);
|
|
442
|
+
const Ze = {
|
|
443
443
|
en: {
|
|
444
444
|
popularProviders: "Popular Suppliers",
|
|
445
445
|
otherProviders: "Other Suppliers",
|
|
@@ -549,7 +549,7 @@ const Qe = {
|
|
|
549
549
|
games: "games"
|
|
550
550
|
}
|
|
551
551
|
}, X = [];
|
|
552
|
-
function
|
|
552
|
+
function hr(e, t) {
|
|
553
553
|
return {
|
|
554
554
|
subscribe: ge(e, t).subscribe
|
|
555
555
|
};
|
|
@@ -558,7 +558,7 @@ function ge(e, t = M) {
|
|
|
558
558
|
let r;
|
|
559
559
|
const n = /* @__PURE__ */ new Set();
|
|
560
560
|
function i(a) {
|
|
561
|
-
if (
|
|
561
|
+
if (mt(e, a) && (e = a, r)) {
|
|
562
562
|
const l = !X.length;
|
|
563
563
|
for (const u of n)
|
|
564
564
|
u[1](), X.push(u, e);
|
|
@@ -585,7 +585,7 @@ function Y(e, t, r) {
|
|
|
585
585
|
if (!i.every(Boolean))
|
|
586
586
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
587
587
|
const s = t.length < 2;
|
|
588
|
-
return
|
|
588
|
+
return hr(r, (o, a) => {
|
|
589
589
|
let l = !1;
|
|
590
590
|
const u = [];
|
|
591
591
|
let h = 0, c = M;
|
|
@@ -593,16 +593,16 @@ function Y(e, t, r) {
|
|
|
593
593
|
if (h)
|
|
594
594
|
return;
|
|
595
595
|
c();
|
|
596
|
-
const
|
|
597
|
-
s ? o(
|
|
596
|
+
const p = t(n ? u[0] : u, o, a);
|
|
597
|
+
s ? o(p) : c = De(p) ? p : M;
|
|
598
598
|
}, g = i.map(
|
|
599
|
-
(
|
|
600
|
-
|
|
599
|
+
(p, d) => pt(
|
|
600
|
+
p,
|
|
601
601
|
(v) => {
|
|
602
|
-
u[
|
|
602
|
+
u[d] = v, h &= ~(1 << d), l && f();
|
|
603
603
|
},
|
|
604
604
|
() => {
|
|
605
|
-
h |= 1 <<
|
|
605
|
+
h |= 1 << d;
|
|
606
606
|
}
|
|
607
607
|
)
|
|
608
608
|
);
|
|
@@ -611,70 +611,70 @@ function Y(e, t, r) {
|
|
|
611
611
|
};
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
return e
|
|
614
|
+
function lr(e) {
|
|
615
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
616
616
|
}
|
|
617
|
-
var
|
|
618
|
-
return
|
|
617
|
+
var fr = function(t) {
|
|
618
|
+
return cr(t) && !dr(t);
|
|
619
619
|
};
|
|
620
|
-
function
|
|
620
|
+
function cr(e) {
|
|
621
621
|
return !!e && typeof e == "object";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function dr(e) {
|
|
624
624
|
var t = Object.prototype.toString.call(e);
|
|
625
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
625
|
+
return t === "[object RegExp]" || t === "[object Date]" || gr(e);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
629
|
-
return e.$$typeof ===
|
|
627
|
+
var mr = typeof Symbol == "function" && Symbol.for, pr = mr ? Symbol.for("react.element") : 60103;
|
|
628
|
+
function gr(e) {
|
|
629
|
+
return e.$$typeof === pr;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function br(e) {
|
|
632
632
|
return Array.isArray(e) ? [] : {};
|
|
633
633
|
}
|
|
634
634
|
function ne(e, t) {
|
|
635
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Z(
|
|
635
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(br(e), e, t) : e;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function vr(e, t, r) {
|
|
638
638
|
return e.concat(t).map(function(n) {
|
|
639
639
|
return ne(n, r);
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function _r(e, t) {
|
|
643
643
|
if (!t.customMerge)
|
|
644
644
|
return Z;
|
|
645
645
|
var r = t.customMerge(e);
|
|
646
646
|
return typeof r == "function" ? r : Z;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Er(e) {
|
|
649
649
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
650
650
|
return Object.propertyIsEnumerable.call(e, t);
|
|
651
651
|
}) : [];
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return Object.keys(e).concat(
|
|
653
|
+
function Qe(e) {
|
|
654
|
+
return Object.keys(e).concat(Er(e));
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function vt(e, t) {
|
|
657
657
|
try {
|
|
658
658
|
return t in e;
|
|
659
659
|
} catch {
|
|
660
660
|
return !1;
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
663
|
+
function xr(e, t) {
|
|
664
|
+
return vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function yr(e, t, r) {
|
|
667
667
|
var n = {};
|
|
668
|
-
return r.isMergeableObject(e) &&
|
|
668
|
+
return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
|
|
669
669
|
n[i] = ne(e[i], r);
|
|
670
|
-
}),
|
|
671
|
-
|
|
670
|
+
}), Qe(t).forEach(function(i) {
|
|
671
|
+
xr(e, i) || (vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _r(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
672
672
|
}), n;
|
|
673
673
|
}
|
|
674
674
|
function Z(e, t, r) {
|
|
675
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
675
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vr, r.isMergeableObject = r.isMergeableObject || fr, r.cloneUnlessOtherwiseSpecified = ne;
|
|
676
676
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
677
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
677
|
+
return s ? n ? r.arrayMerge(e, t, r) : yr(e, t, r) : ne(t, r);
|
|
678
678
|
}
|
|
679
679
|
Z.all = function(t, r) {
|
|
680
680
|
if (!Array.isArray(t))
|
|
@@ -683,8 +683,8 @@ Z.all = function(t, r) {
|
|
|
683
683
|
return Z(n, i, r);
|
|
684
684
|
}, {});
|
|
685
685
|
};
|
|
686
|
-
var
|
|
687
|
-
const
|
|
686
|
+
var Pr = Z, Hr = Pr;
|
|
687
|
+
const Tr = /* @__PURE__ */ lr(Hr);
|
|
688
688
|
/*! *****************************************************************************
|
|
689
689
|
Copyright (c) Microsoft Corporation.
|
|
690
690
|
|
|
@@ -726,7 +726,7 @@ var x = function() {
|
|
|
726
726
|
return t;
|
|
727
727
|
}, x.apply(this, arguments);
|
|
728
728
|
};
|
|
729
|
-
function
|
|
729
|
+
function Sr(e, t) {
|
|
730
730
|
var r = {};
|
|
731
731
|
for (var n in e)
|
|
732
732
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -742,55 +742,57 @@ function ye(e, t, r) {
|
|
|
742
742
|
return e.concat(s || t);
|
|
743
743
|
}
|
|
744
744
|
function Pe(e, t) {
|
|
745
|
-
var r = t && t.cache ? t.cache : Ir, n = t && t.serializer ? t.serializer :
|
|
745
|
+
var r = t && t.cache ? t.cache : Ir, n = t && t.serializer ? t.serializer : Nr, i = t && t.strategy ? t.strategy : Ar;
|
|
746
746
|
return i(e, {
|
|
747
747
|
cache: r,
|
|
748
748
|
serializer: n
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Br(e) {
|
|
752
752
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
var i =
|
|
754
|
+
function _t(e, t, r, n) {
|
|
755
|
+
var i = Br(n) ? n : r(n), s = t.get(i);
|
|
756
756
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function Et(e, t, r) {
|
|
759
759
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
760
760
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
761
761
|
}
|
|
762
762
|
function je(e, t, r, n, i) {
|
|
763
763
|
return r.bind(t, e, n, i);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
var r = e.length === 1 ?
|
|
765
|
+
function Ar(e, t) {
|
|
766
|
+
var r = e.length === 1 ? _t : Et;
|
|
767
767
|
return je(e, this, r, t.cache.create(), t.serializer);
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
return je(e, this, xt, t.cache.create(), t.serializer);
|
|
771
|
-
}
|
|
772
|
-
function Nr(e, t) {
|
|
769
|
+
function Or(e, t) {
|
|
773
770
|
return je(e, this, Et, t.cache.create(), t.serializer);
|
|
774
771
|
}
|
|
775
|
-
|
|
776
|
-
return
|
|
777
|
-
};
|
|
778
|
-
function ke() {
|
|
779
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
772
|
+
function wr(e, t) {
|
|
773
|
+
return je(e, this, _t, t.cache.create(), t.serializer);
|
|
780
774
|
}
|
|
781
|
-
|
|
782
|
-
return
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
775
|
+
var Nr = function() {
|
|
776
|
+
return JSON.stringify(arguments);
|
|
777
|
+
}, Lr = (
|
|
778
|
+
/** @class */
|
|
779
|
+
function() {
|
|
780
|
+
function e() {
|
|
781
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
782
|
+
}
|
|
783
|
+
return e.prototype.get = function(t) {
|
|
784
|
+
return this.cache[t];
|
|
785
|
+
}, e.prototype.set = function(t, r) {
|
|
786
|
+
this.cache[t] = r;
|
|
787
|
+
}, e;
|
|
788
|
+
}()
|
|
789
|
+
), Ir = {
|
|
788
790
|
create: function() {
|
|
789
|
-
return new
|
|
791
|
+
return new Lr();
|
|
790
792
|
}
|
|
791
793
|
}, He = {
|
|
792
|
-
variadic:
|
|
793
|
-
monadic:
|
|
794
|
+
variadic: Or,
|
|
795
|
+
monadic: wr
|
|
794
796
|
}, _;
|
|
795
797
|
(function(e) {
|
|
796
798
|
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";
|
|
@@ -803,40 +805,40 @@ var Q;
|
|
|
803
805
|
(function(e) {
|
|
804
806
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
805
807
|
})(Q || (Q = {}));
|
|
806
|
-
function
|
|
808
|
+
function qe(e) {
|
|
807
809
|
return e.type === P.literal;
|
|
808
810
|
}
|
|
809
811
|
function Cr(e) {
|
|
810
812
|
return e.type === P.argument;
|
|
811
813
|
}
|
|
812
|
-
function
|
|
814
|
+
function xt(e) {
|
|
813
815
|
return e.type === P.number;
|
|
814
816
|
}
|
|
815
|
-
function
|
|
817
|
+
function yt(e) {
|
|
816
818
|
return e.type === P.date;
|
|
817
819
|
}
|
|
818
|
-
function
|
|
820
|
+
function Pt(e) {
|
|
819
821
|
return e.type === P.time;
|
|
820
822
|
}
|
|
821
|
-
function
|
|
823
|
+
function Ht(e) {
|
|
822
824
|
return e.type === P.select;
|
|
823
825
|
}
|
|
824
|
-
function
|
|
826
|
+
function Tt(e) {
|
|
825
827
|
return e.type === P.plural;
|
|
826
828
|
}
|
|
827
829
|
function Mr(e) {
|
|
828
830
|
return e.type === P.pound;
|
|
829
831
|
}
|
|
830
|
-
function
|
|
832
|
+
function St(e) {
|
|
831
833
|
return e.type === P.tag;
|
|
832
834
|
}
|
|
833
|
-
function
|
|
835
|
+
function Bt(e) {
|
|
834
836
|
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
835
837
|
}
|
|
836
838
|
function Le(e) {
|
|
837
839
|
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
838
840
|
}
|
|
839
|
-
var
|
|
841
|
+
var At = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $r = /(?:[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;
|
|
840
842
|
function Rr(e) {
|
|
841
843
|
var t = {};
|
|
842
844
|
return e.replace($r, function(r) {
|
|
@@ -950,14 +952,14 @@ function Gr(e) {
|
|
|
950
952
|
function Dr(e) {
|
|
951
953
|
return e.replace(/^(.*?)-/, "");
|
|
952
954
|
}
|
|
953
|
-
var
|
|
954
|
-
function
|
|
955
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ot = /^(@+)?(\+|#+)?[rs]?$/g, Fr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
956
|
+
function Ye(e) {
|
|
955
957
|
var t = {};
|
|
956
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
958
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ot, function(r, n, i) {
|
|
957
959
|
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)), "";
|
|
958
960
|
}), t;
|
|
959
961
|
}
|
|
960
|
-
function
|
|
962
|
+
function Nt(e) {
|
|
961
963
|
switch (e) {
|
|
962
964
|
case "sign-auto":
|
|
963
965
|
return {
|
|
@@ -1005,14 +1007,14 @@ function jr(e) {
|
|
|
1005
1007
|
notation: "scientific"
|
|
1006
1008
|
}, e = e.slice(1)), t) {
|
|
1007
1009
|
var r = e.slice(0, 2);
|
|
1008
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1010
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wt.test(e))
|
|
1009
1011
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1010
1012
|
t.minimumIntegerDigits = e.length;
|
|
1011
1013
|
}
|
|
1012
1014
|
return t;
|
|
1013
1015
|
}
|
|
1014
|
-
function
|
|
1015
|
-
var t = {}, r =
|
|
1016
|
+
function Ke(e) {
|
|
1017
|
+
var t = {}, r = Nt(e);
|
|
1016
1018
|
return r || t;
|
|
1017
1019
|
}
|
|
1018
1020
|
function kr(e) {
|
|
@@ -1051,12 +1053,12 @@ function kr(e) {
|
|
|
1051
1053
|
continue;
|
|
1052
1054
|
case "scientific":
|
|
1053
1055
|
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1054
|
-
return x(x({}, l),
|
|
1056
|
+
return x(x({}, l), Ke(u));
|
|
1055
1057
|
}, {}));
|
|
1056
1058
|
continue;
|
|
1057
1059
|
case "engineering":
|
|
1058
1060
|
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1059
|
-
return x(x({}, l),
|
|
1061
|
+
return x(x({}, l), Ke(u));
|
|
1060
1062
|
}, {}));
|
|
1061
1063
|
continue;
|
|
1062
1064
|
case "notation-simple":
|
|
@@ -1114,25 +1116,25 @@ function kr(e) {
|
|
|
1114
1116
|
});
|
|
1115
1117
|
continue;
|
|
1116
1118
|
}
|
|
1117
|
-
if (
|
|
1119
|
+
if (wt.test(i.stem)) {
|
|
1118
1120
|
t.minimumIntegerDigits = i.stem.length;
|
|
1119
1121
|
continue;
|
|
1120
1122
|
}
|
|
1121
|
-
if (
|
|
1123
|
+
if (Je.test(i.stem)) {
|
|
1122
1124
|
if (i.options.length > 1)
|
|
1123
1125
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1124
|
-
i.stem.replace(
|
|
1126
|
+
i.stem.replace(Je, function(l, u, h, c, f, g) {
|
|
1125
1127
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1126
1128
|
});
|
|
1127
1129
|
var s = i.options[0];
|
|
1128
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1130
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), Ye(s)));
|
|
1129
1131
|
continue;
|
|
1130
1132
|
}
|
|
1131
|
-
if (
|
|
1132
|
-
t = x(x({}, t),
|
|
1133
|
+
if (Ot.test(i.stem)) {
|
|
1134
|
+
t = x(x({}, t), Ye(i.stem));
|
|
1133
1135
|
continue;
|
|
1134
1136
|
}
|
|
1135
|
-
var o =
|
|
1137
|
+
var o = Nt(i.stem);
|
|
1136
1138
|
o && (t = x(x({}, t), o));
|
|
1137
1139
|
var a = jr(i.stem);
|
|
1138
1140
|
a && (t = x(x({}, t), a));
|
|
@@ -2592,7 +2594,7 @@ function Xr(e) {
|
|
|
2592
2594
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2593
2595
|
return i[0];
|
|
2594
2596
|
}
|
|
2595
|
-
var Te, zr = new RegExp("^".concat(
|
|
2597
|
+
var Te, zr = new RegExp("^".concat(At.source, "*")), Wr = new RegExp("".concat(At.source, "*$"));
|
|
2596
2598
|
function E(e, t) {
|
|
2597
2599
|
return { start: e, end: t };
|
|
2598
2600
|
}
|
|
@@ -2600,12 +2602,12 @@ var Zr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qr = !!String
|
|
|
2600
2602
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2601
2603
|
}, Ie = !0;
|
|
2602
2604
|
try {
|
|
2603
|
-
var rn =
|
|
2605
|
+
var rn = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2604
2606
|
Ie = ((Te = rn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
2605
2607
|
} catch {
|
|
2606
2608
|
Ie = !1;
|
|
2607
2609
|
}
|
|
2608
|
-
var
|
|
2610
|
+
var et = Zr ? (
|
|
2609
2611
|
// Native
|
|
2610
2612
|
function(t, r, n) {
|
|
2611
2613
|
return t.startsWith(r, n);
|
|
@@ -2627,7 +2629,7 @@ var tt = Zr ? (
|
|
|
2627
2629
|
}
|
|
2628
2630
|
return n;
|
|
2629
2631
|
}
|
|
2630
|
-
),
|
|
2632
|
+
), tt = (
|
|
2631
2633
|
// native
|
|
2632
2634
|
qr ? Object.fromEntries : (
|
|
2633
2635
|
// Ponyfill
|
|
@@ -2639,7 +2641,7 @@ var tt = Zr ? (
|
|
|
2639
2641
|
return r;
|
|
2640
2642
|
}
|
|
2641
2643
|
)
|
|
2642
|
-
),
|
|
2644
|
+
), Lt = Jr ? (
|
|
2643
2645
|
// Native
|
|
2644
2646
|
function(t, r) {
|
|
2645
2647
|
return t.codePointAt(r);
|
|
@@ -2674,23 +2676,23 @@ var tt = Zr ? (
|
|
|
2674
2676
|
return t.replace(Wr, "");
|
|
2675
2677
|
}
|
|
2676
2678
|
);
|
|
2677
|
-
function
|
|
2679
|
+
function It(e, t) {
|
|
2678
2680
|
return new RegExp(e, t);
|
|
2679
2681
|
}
|
|
2680
2682
|
var Me;
|
|
2681
2683
|
if (Ie) {
|
|
2682
|
-
var
|
|
2684
|
+
var rt = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2683
2685
|
Me = function(t, r) {
|
|
2684
2686
|
var n;
|
|
2685
|
-
|
|
2686
|
-
var i =
|
|
2687
|
+
rt.lastIndex = r;
|
|
2688
|
+
var i = rt.exec(t);
|
|
2687
2689
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2688
2690
|
};
|
|
2689
2691
|
} else
|
|
2690
2692
|
Me = function(t, r) {
|
|
2691
2693
|
for (var n = []; ; ) {
|
|
2692
|
-
var i =
|
|
2693
|
-
if (i === void 0 ||
|
|
2694
|
+
var i = Lt(t, r);
|
|
2695
|
+
if (i === void 0 || Ct(i) || hn(i))
|
|
2694
2696
|
break;
|
|
2695
2697
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2696
2698
|
}
|
|
@@ -2900,31 +2902,31 @@ var on = (
|
|
|
2900
2902
|
var g = E(h, this.clonePosition());
|
|
2901
2903
|
u = { style: f, styleLocation: g };
|
|
2902
2904
|
}
|
|
2903
|
-
var
|
|
2904
|
-
if (
|
|
2905
|
-
return
|
|
2906
|
-
var
|
|
2907
|
-
if (u &&
|
|
2905
|
+
var p = this.tryParseArgumentClose(i);
|
|
2906
|
+
if (p.err)
|
|
2907
|
+
return p;
|
|
2908
|
+
var d = E(i, this.clonePosition());
|
|
2909
|
+
if (u && et(u?.style, "::", 0)) {
|
|
2908
2910
|
var v = nn(u.style.slice(2));
|
|
2909
2911
|
if (a === "number") {
|
|
2910
2912
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2911
2913
|
return c.err ? c : {
|
|
2912
|
-
val: { type: P.number, value: n, location:
|
|
2914
|
+
val: { type: P.number, value: n, location: d, style: c.val },
|
|
2913
2915
|
err: null
|
|
2914
2916
|
};
|
|
2915
2917
|
} else {
|
|
2916
2918
|
if (v.length === 0)
|
|
2917
|
-
return this.error(_.EXPECT_DATE_TIME_SKELETON,
|
|
2918
|
-
var
|
|
2919
|
-
this.locale && (
|
|
2919
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, d);
|
|
2920
|
+
var m = v;
|
|
2921
|
+
this.locale && (m = Vr(v, this.locale));
|
|
2920
2922
|
var f = {
|
|
2921
2923
|
type: Q.dateTime,
|
|
2922
|
-
pattern:
|
|
2924
|
+
pattern: m,
|
|
2923
2925
|
location: u.styleLocation,
|
|
2924
|
-
parsedOptions: this.shouldParseSkeletons ? Rr(
|
|
2926
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(m) : {}
|
|
2925
2927
|
}, H = a === "date" ? P.date : P.time;
|
|
2926
2928
|
return {
|
|
2927
|
-
val: { type: H, value: n, location:
|
|
2929
|
+
val: { type: H, value: n, location: d, style: f },
|
|
2928
2930
|
err: null
|
|
2929
2931
|
};
|
|
2930
2932
|
}
|
|
@@ -2933,7 +2935,7 @@ var on = (
|
|
|
2933
2935
|
val: {
|
|
2934
2936
|
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
2935
2937
|
value: n,
|
|
2936
|
-
location:
|
|
2938
|
+
location: d,
|
|
2937
2939
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2938
2940
|
},
|
|
2939
2941
|
err: null
|
|
@@ -2959,15 +2961,15 @@ var on = (
|
|
|
2959
2961
|
var N = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
2960
2962
|
if (N.err)
|
|
2961
2963
|
return N;
|
|
2962
|
-
var
|
|
2963
|
-
if (
|
|
2964
|
-
return
|
|
2964
|
+
var p = this.tryParseArgumentClose(i);
|
|
2965
|
+
if (p.err)
|
|
2966
|
+
return p;
|
|
2965
2967
|
var b = E(i, this.clonePosition());
|
|
2966
2968
|
return a === "select" ? {
|
|
2967
2969
|
val: {
|
|
2968
2970
|
type: P.select,
|
|
2969
2971
|
value: n,
|
|
2970
|
-
options:
|
|
2972
|
+
options: tt(N.val),
|
|
2971
2973
|
location: b
|
|
2972
2974
|
},
|
|
2973
2975
|
err: null
|
|
@@ -2975,7 +2977,7 @@ var on = (
|
|
|
2975
2977
|
val: {
|
|
2976
2978
|
type: P.plural,
|
|
2977
2979
|
value: n,
|
|
2978
|
-
options:
|
|
2980
|
+
options: tt(N.val),
|
|
2979
2981
|
offset: T,
|
|
2980
2982
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2981
2983
|
location: b
|
|
@@ -3057,16 +3059,16 @@ var on = (
|
|
|
3057
3059
|
var g = this.clonePosition();
|
|
3058
3060
|
if (!this.bumpIf("{"))
|
|
3059
3061
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3060
|
-
var
|
|
3062
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3063
|
+
if (p.err)
|
|
3064
|
+
return p;
|
|
3065
|
+
var d = this.tryParseArgumentClose(g);
|
|
3061
3066
|
if (d.err)
|
|
3062
3067
|
return d;
|
|
3063
|
-
var m = this.tryParseArgumentClose(g);
|
|
3064
|
-
if (m.err)
|
|
3065
|
-
return m;
|
|
3066
3068
|
a.push([
|
|
3067
3069
|
u,
|
|
3068
3070
|
{
|
|
3069
|
-
value:
|
|
3071
|
+
value: p.val,
|
|
3070
3072
|
location: E(g, this.clonePosition())
|
|
3071
3073
|
}
|
|
3072
3074
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
@@ -3098,7 +3100,7 @@ var on = (
|
|
|
3098
3100
|
var t = this.position.offset;
|
|
3099
3101
|
if (t >= this.message.length)
|
|
3100
3102
|
throw Error("out of bound");
|
|
3101
|
-
var r =
|
|
3103
|
+
var r = Lt(this.message, t);
|
|
3102
3104
|
if (r === void 0)
|
|
3103
3105
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3104
3106
|
return r;
|
|
@@ -3117,7 +3119,7 @@ var on = (
|
|
|
3117
3119
|
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);
|
|
3118
3120
|
}
|
|
3119
3121
|
}, e.prototype.bumpIf = function(t) {
|
|
3120
|
-
if (
|
|
3122
|
+
if (et(this.message, t, this.offset())) {
|
|
3121
3123
|
for (var r = 0; r < t.length; r++)
|
|
3122
3124
|
this.bump();
|
|
3123
3125
|
return !0;
|
|
@@ -3139,7 +3141,7 @@ var on = (
|
|
|
3139
3141
|
break;
|
|
3140
3142
|
}
|
|
3141
3143
|
}, e.prototype.bumpSpace = function() {
|
|
3142
|
-
for (; !this.isEOF() &&
|
|
3144
|
+
for (; !this.isEOF() && Ct(this.char()); )
|
|
3143
3145
|
this.bump();
|
|
3144
3146
|
}, e.prototype.peek = function() {
|
|
3145
3147
|
if (this.isEOF())
|
|
@@ -3158,7 +3160,7 @@ function an(e) {
|
|
|
3158
3160
|
function un(e) {
|
|
3159
3161
|
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;
|
|
3160
3162
|
}
|
|
3161
|
-
function
|
|
3163
|
+
function Ct(e) {
|
|
3162
3164
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3163
3165
|
}
|
|
3164
3166
|
function hn(e) {
|
|
@@ -3166,11 +3168,11 @@ function hn(e) {
|
|
|
3166
3168
|
}
|
|
3167
3169
|
function Re(e) {
|
|
3168
3170
|
e.forEach(function(t) {
|
|
3169
|
-
if (delete t.location,
|
|
3171
|
+
if (delete t.location, Ht(t) || Tt(t))
|
|
3170
3172
|
for (var r in t.options)
|
|
3171
3173
|
delete t.options[r].location, Re(t.options[r].value);
|
|
3172
3174
|
else
|
|
3173
|
-
|
|
3175
|
+
xt(t) && Bt(t.style) || (yt(t) || Pt(t)) && Le(t.style) ? delete t.style.location : St(t) && Re(t.children);
|
|
3174
3176
|
});
|
|
3175
3177
|
}
|
|
3176
3178
|
function ln(e, t) {
|
|
@@ -3198,7 +3200,7 @@ var ve = (
|
|
|
3198
3200
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3199
3201
|
}, t;
|
|
3200
3202
|
}(Error)
|
|
3201
|
-
),
|
|
3203
|
+
), nt = (
|
|
3202
3204
|
/** @class */
|
|
3203
3205
|
function(e) {
|
|
3204
3206
|
be(t, e);
|
|
@@ -3229,17 +3231,17 @@ var ve = (
|
|
|
3229
3231
|
(function(e) {
|
|
3230
3232
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3231
3233
|
})(w || (w = {}));
|
|
3232
|
-
function
|
|
3234
|
+
function dn(e) {
|
|
3233
3235
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3234
3236
|
var n = t[t.length - 1];
|
|
3235
3237
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3236
3238
|
}, []);
|
|
3237
3239
|
}
|
|
3238
|
-
function
|
|
3240
|
+
function mn(e) {
|
|
3239
3241
|
return typeof e == "function";
|
|
3240
3242
|
}
|
|
3241
3243
|
function fe(e, t, r, n, i, s, o) {
|
|
3242
|
-
if (e.length === 1 &&
|
|
3244
|
+
if (e.length === 1 && qe(e[0]))
|
|
3243
3245
|
return [
|
|
3244
3246
|
{
|
|
3245
3247
|
type: w.literal,
|
|
@@ -3248,7 +3250,7 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3248
3250
|
];
|
|
3249
3251
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3250
3252
|
var h = u[l];
|
|
3251
|
-
if (
|
|
3253
|
+
if (qe(h)) {
|
|
3252
3254
|
a.push({
|
|
3253
3255
|
type: w.literal,
|
|
3254
3256
|
value: h.value
|
|
@@ -3273,7 +3275,7 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3273
3275
|
});
|
|
3274
3276
|
continue;
|
|
3275
3277
|
}
|
|
3276
|
-
if (
|
|
3278
|
+
if (yt(h)) {
|
|
3277
3279
|
var g = typeof h.style == "string" ? n.date[h.style] : Le(h.style) ? h.style.parsedOptions : void 0;
|
|
3278
3280
|
a.push({
|
|
3279
3281
|
type: w.literal,
|
|
@@ -3281,7 +3283,7 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3281
3283
|
});
|
|
3282
3284
|
continue;
|
|
3283
3285
|
}
|
|
3284
|
-
if (
|
|
3286
|
+
if (Pt(h)) {
|
|
3285
3287
|
var g = typeof h.style == "string" ? n.time[h.style] : Le(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3286
3288
|
a.push({
|
|
3287
3289
|
type: w.literal,
|
|
@@ -3289,19 +3291,19 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3289
3291
|
});
|
|
3290
3292
|
continue;
|
|
3291
3293
|
}
|
|
3292
|
-
if (
|
|
3293
|
-
var g = typeof h.style == "string" ? n.number[h.style] :
|
|
3294
|
+
if (xt(h)) {
|
|
3295
|
+
var g = typeof h.style == "string" ? n.number[h.style] : Bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3294
3296
|
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
|
3295
3297
|
type: w.literal,
|
|
3296
3298
|
value: r.getNumberFormat(t, g).format(f)
|
|
3297
3299
|
});
|
|
3298
3300
|
continue;
|
|
3299
3301
|
}
|
|
3300
|
-
if (
|
|
3301
|
-
var
|
|
3302
|
-
if (!
|
|
3303
|
-
throw new fn(
|
|
3304
|
-
var
|
|
3302
|
+
if (St(h)) {
|
|
3303
|
+
var p = h.children, d = h.value, v = i[d];
|
|
3304
|
+
if (!mn(v))
|
|
3305
|
+
throw new fn(d, "function", o);
|
|
3306
|
+
var m = fe(p, t, r, n, i, s), H = v(m.map(function(T) {
|
|
3305
3307
|
return T.value;
|
|
3306
3308
|
}));
|
|
3307
3309
|
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(T) {
|
|
@@ -3311,14 +3313,14 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3311
3313
|
};
|
|
3312
3314
|
}));
|
|
3313
3315
|
}
|
|
3314
|
-
if (
|
|
3316
|
+
if (Ht(h)) {
|
|
3315
3317
|
var B = h.options[f] || h.options.other;
|
|
3316
3318
|
if (!B)
|
|
3317
|
-
throw new
|
|
3319
|
+
throw new nt(h.value, f, Object.keys(h.options), o);
|
|
3318
3320
|
a.push.apply(a, fe(B.value, t, r, n, i));
|
|
3319
3321
|
continue;
|
|
3320
3322
|
}
|
|
3321
|
-
if (
|
|
3323
|
+
if (Tt(h)) {
|
|
3322
3324
|
var B = h.options["=".concat(f)];
|
|
3323
3325
|
if (!B) {
|
|
3324
3326
|
if (!Intl.PluralRules)
|
|
@@ -3329,21 +3331,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3329
3331
|
B = h.options[O] || h.options.other;
|
|
3330
3332
|
}
|
|
3331
3333
|
if (!B)
|
|
3332
|
-
throw new
|
|
3334
|
+
throw new nt(h.value, f, Object.keys(h.options), o);
|
|
3333
3335
|
a.push.apply(a, fe(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3334
3336
|
continue;
|
|
3335
3337
|
}
|
|
3336
3338
|
}
|
|
3337
|
-
return
|
|
3339
|
+
return dn(a);
|
|
3338
3340
|
}
|
|
3339
|
-
function
|
|
3341
|
+
function pn(e, t) {
|
|
3340
3342
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3341
3343
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3342
3344
|
}, {})) : e;
|
|
3343
3345
|
}
|
|
3344
3346
|
function gn(e, t) {
|
|
3345
3347
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3346
|
-
return r[n] =
|
|
3348
|
+
return r[n] = pn(e[n], t[n]), r;
|
|
3347
3349
|
}, x({}, e)) : e;
|
|
3348
3350
|
}
|
|
3349
3351
|
function Se(e) {
|
|
@@ -3424,7 +3426,7 @@ var vn = (
|
|
|
3424
3426
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3425
3427
|
var o = i || {};
|
|
3426
3428
|
o.formatters;
|
|
3427
|
-
var a =
|
|
3429
|
+
var a = Sr(o, ["formatters"]);
|
|
3428
3430
|
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3429
3431
|
} else
|
|
3430
3432
|
this.ast = t;
|
|
@@ -3525,7 +3527,7 @@ function _n(e, t) {
|
|
|
3525
3527
|
n = void 0;
|
|
3526
3528
|
return n;
|
|
3527
3529
|
}
|
|
3528
|
-
const F = {}, En = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r),
|
|
3530
|
+
const F = {}, En = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Mt = (e, t) => {
|
|
3529
3531
|
if (t == null)
|
|
3530
3532
|
return;
|
|
3531
3533
|
if (t in F && e in F[t])
|
|
@@ -3537,16 +3539,16 @@ const F = {}, En = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][
|
|
|
3537
3539
|
return En(e, t, s);
|
|
3538
3540
|
}
|
|
3539
3541
|
};
|
|
3540
|
-
let
|
|
3542
|
+
let ke;
|
|
3541
3543
|
const oe = ge({});
|
|
3542
3544
|
function xn(e) {
|
|
3543
|
-
return
|
|
3545
|
+
return ke[e] || null;
|
|
3544
3546
|
}
|
|
3545
|
-
function
|
|
3546
|
-
return e in
|
|
3547
|
+
function $t(e) {
|
|
3548
|
+
return e in ke;
|
|
3547
3549
|
}
|
|
3548
3550
|
function yn(e, t) {
|
|
3549
|
-
if (
|
|
3551
|
+
if (!$t(e))
|
|
3550
3552
|
return null;
|
|
3551
3553
|
const r = xn(e);
|
|
3552
3554
|
return _n(r, t);
|
|
@@ -3557,28 +3559,28 @@ function Pn(e) {
|
|
|
3557
3559
|
const t = _e(e);
|
|
3558
3560
|
for (let r = 0; r < t.length; r++) {
|
|
3559
3561
|
const n = t[r];
|
|
3560
|
-
if (
|
|
3562
|
+
if ($t(n))
|
|
3561
3563
|
return n;
|
|
3562
3564
|
}
|
|
3563
3565
|
}
|
|
3564
|
-
function
|
|
3565
|
-
delete F[e], oe.update((r) => (r[e] =
|
|
3566
|
+
function Rt(e, ...t) {
|
|
3567
|
+
delete F[e], oe.update((r) => (r[e] = Tr.all([r[e] || {}, ...t]), r));
|
|
3566
3568
|
}
|
|
3567
3569
|
Y(
|
|
3568
3570
|
[oe],
|
|
3569
3571
|
([e]) => Object.keys(e)
|
|
3570
3572
|
);
|
|
3571
|
-
oe.subscribe((e) =>
|
|
3573
|
+
oe.subscribe((e) => ke = e);
|
|
3572
3574
|
const ce = {};
|
|
3573
3575
|
function Hn(e, t) {
|
|
3574
3576
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3575
3577
|
}
|
|
3576
|
-
function
|
|
3578
|
+
function Ut(e) {
|
|
3577
3579
|
return ce[e];
|
|
3578
3580
|
}
|
|
3579
3581
|
function Tn(e) {
|
|
3580
3582
|
return _e(e).map((t) => {
|
|
3581
|
-
const r =
|
|
3583
|
+
const r = Ut(t);
|
|
3582
3584
|
return [t, r ? [...r] : []];
|
|
3583
3585
|
}).filter(([, t]) => t.length > 0);
|
|
3584
3586
|
}
|
|
@@ -3586,17 +3588,17 @@ function Ue(e) {
|
|
|
3586
3588
|
return e == null ? !1 : _e(e).some(
|
|
3587
3589
|
(t) => {
|
|
3588
3590
|
var r;
|
|
3589
|
-
return (r =
|
|
3591
|
+
return (r = Ut(t)) == null ? void 0 : r.size;
|
|
3590
3592
|
}
|
|
3591
3593
|
);
|
|
3592
3594
|
}
|
|
3593
3595
|
function Sn(e, t) {
|
|
3594
3596
|
return Promise.all(
|
|
3595
3597
|
t.map((n) => (Hn(e, n), n().then((i) => i.default || i)))
|
|
3596
|
-
).then((n) =>
|
|
3598
|
+
).then((n) => Rt(e, ...n));
|
|
3597
3599
|
}
|
|
3598
3600
|
const te = {};
|
|
3599
|
-
function
|
|
3601
|
+
function Gt(e) {
|
|
3600
3602
|
if (!Ue(e))
|
|
3601
3603
|
return e in te ? te[e] : Promise.resolve();
|
|
3602
3604
|
const t = Tn(e);
|
|
@@ -3606,7 +3608,7 @@ function Dt(e) {
|
|
|
3606
3608
|
)
|
|
3607
3609
|
).then(() => {
|
|
3608
3610
|
if (Ue(e))
|
|
3609
|
-
return
|
|
3611
|
+
return Gt(e);
|
|
3610
3612
|
delete te[e];
|
|
3611
3613
|
}), te[e];
|
|
3612
3614
|
}
|
|
@@ -3651,27 +3653,27 @@ function J() {
|
|
|
3651
3653
|
return On;
|
|
3652
3654
|
}
|
|
3653
3655
|
const Be = ge(!1);
|
|
3654
|
-
var wn = Object.defineProperty, Nn = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors,
|
|
3655
|
-
for (var r in t
|
|
3656
|
-
In.call(t, r) &&
|
|
3657
|
-
if (
|
|
3658
|
-
for (var r of
|
|
3659
|
-
Cn.call(t, r) &&
|
|
3656
|
+
var wn = Object.defineProperty, Nn = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, In = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
|
|
3657
|
+
for (var r in t)
|
|
3658
|
+
In.call(t, r) && st(e, r, t[r]);
|
|
3659
|
+
if (it)
|
|
3660
|
+
for (var r of it(t))
|
|
3661
|
+
Cn.call(t, r) && st(e, r, t[r]);
|
|
3660
3662
|
return e;
|
|
3661
3663
|
}, $n = (e, t) => Nn(e, Ln(t));
|
|
3662
3664
|
let Ge;
|
|
3663
|
-
const
|
|
3664
|
-
function
|
|
3665
|
+
const me = ge(null);
|
|
3666
|
+
function ot(e) {
|
|
3665
3667
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3666
3668
|
}
|
|
3667
3669
|
function _e(e, t = J().fallbackLocale) {
|
|
3668
|
-
const r =
|
|
3669
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3670
|
+
const r = ot(e);
|
|
3671
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
|
|
3670
3672
|
}
|
|
3671
3673
|
function k() {
|
|
3672
3674
|
return Ge ?? void 0;
|
|
3673
3675
|
}
|
|
3674
|
-
|
|
3676
|
+
me.subscribe((e) => {
|
|
3675
3677
|
Ge = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3676
3678
|
});
|
|
3677
3679
|
const Rn = (e) => {
|
|
@@ -3681,14 +3683,14 @@ const Rn = (e) => {
|
|
|
3681
3683
|
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3682
3684
|
() => Be.set(!0),
|
|
3683
3685
|
t
|
|
3684
|
-
) : Be.set(!0),
|
|
3685
|
-
|
|
3686
|
+
) : Be.set(!0), Gt(e).then(() => {
|
|
3687
|
+
me.set(e);
|
|
3686
3688
|
}).finally(() => {
|
|
3687
3689
|
clearTimeout(r), Be.set(!1);
|
|
3688
3690
|
});
|
|
3689
3691
|
}
|
|
3690
|
-
return
|
|
3691
|
-
}, K = $n(Mn({},
|
|
3692
|
+
return me.set(e);
|
|
3693
|
+
}, K = $n(Mn({}, me), {
|
|
3692
3694
|
set: Rn
|
|
3693
3695
|
}), Ee = (e) => {
|
|
3694
3696
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3697,20 +3699,20 @@ const Rn = (e) => {
|
|
|
3697
3699
|
return i in t ? t[i] : t[i] = e(n);
|
|
3698
3700
|
};
|
|
3699
3701
|
};
|
|
3700
|
-
var Un = Object.defineProperty,
|
|
3702
|
+
var Un = Object.defineProperty, pe = Object.getOwnPropertySymbols, Dt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
|
3701
3703
|
for (var r in t || (t = {}))
|
|
3702
|
-
|
|
3703
|
-
if (
|
|
3704
|
-
for (var r of
|
|
3705
|
-
|
|
3704
|
+
Dt.call(t, r) && at(e, r, t[r]);
|
|
3705
|
+
if (pe)
|
|
3706
|
+
for (var r of pe(t))
|
|
3707
|
+
Ft.call(t, r) && at(e, r, t[r]);
|
|
3706
3708
|
return e;
|
|
3707
3709
|
}, ee = (e, t) => {
|
|
3708
3710
|
var r = {};
|
|
3709
3711
|
for (var n in e)
|
|
3710
|
-
|
|
3711
|
-
if (e != null &&
|
|
3712
|
-
for (var n of
|
|
3713
|
-
t.indexOf(n) < 0 &&
|
|
3712
|
+
Dt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3713
|
+
if (e != null && pe)
|
|
3714
|
+
for (var n of pe(e))
|
|
3715
|
+
t.indexOf(n) < 0 && Ft.call(e, n) && (r[n] = e[n]);
|
|
3714
3716
|
return r;
|
|
3715
3717
|
};
|
|
3716
3718
|
const ie = (e, t) => {
|
|
@@ -3747,21 +3749,21 @@ const ie = (e, t) => {
|
|
|
3747
3749
|
} = t, n = ee(t, [
|
|
3748
3750
|
"locale"
|
|
3749
3751
|
]);
|
|
3750
|
-
return Gn(
|
|
3752
|
+
return Gn(Ve({ locale: r }, n));
|
|
3751
3753
|
}, kn = (e = {}) => {
|
|
3752
3754
|
var t = e, {
|
|
3753
3755
|
locale: r = k()
|
|
3754
3756
|
} = t, n = ee(t, [
|
|
3755
3757
|
"locale"
|
|
3756
3758
|
]);
|
|
3757
|
-
return Dn(
|
|
3759
|
+
return Dn(Ve({ locale: r }, n));
|
|
3758
3760
|
}, Vn = (e = {}) => {
|
|
3759
3761
|
var t = e, {
|
|
3760
3762
|
locale: r = k()
|
|
3761
3763
|
} = t, n = ee(t, [
|
|
3762
3764
|
"locale"
|
|
3763
3765
|
]);
|
|
3764
|
-
return Fn(
|
|
3766
|
+
return Fn(Ve({ locale: r }, n));
|
|
3765
3767
|
}, Xn = Ee(
|
|
3766
3768
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3767
3769
|
(e, t = k()) => new vn(e, t, J().formats, {
|
|
@@ -3780,7 +3782,7 @@ const ie = (e, t) => {
|
|
|
3780
3782
|
throw new Error(
|
|
3781
3783
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3782
3784
|
);
|
|
3783
|
-
let h =
|
|
3785
|
+
let h = Mt(e, l);
|
|
3784
3786
|
if (!h)
|
|
3785
3787
|
h = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3786
3788
|
else if (typeof h != "string")
|
|
@@ -3799,13 +3801,13 @@ const ie = (e, t) => {
|
|
|
3799
3801
|
);
|
|
3800
3802
|
}
|
|
3801
3803
|
return c;
|
|
3802
|
-
}, Wn = (e, t) => Vn(t).format(e), Zn = (e, t) => kn(t).format(e), Qn = (e, t) => jn(t).format(e), qn = (e, t = k()) =>
|
|
3804
|
+
}, Wn = (e, t) => Vn(t).format(e), Zn = (e, t) => kn(t).format(e), Qn = (e, t) => jn(t).format(e), qn = (e, t = k()) => Mt(e, t), Jn = Y([K, oe], () => zn);
|
|
3803
3805
|
Y([K], () => Wn);
|
|
3804
3806
|
Y([K], () => Zn);
|
|
3805
3807
|
Y([K], () => Qn);
|
|
3806
3808
|
Y([K, oe], () => qn);
|
|
3807
|
-
function
|
|
3808
|
-
|
|
3809
|
+
function ut(e, t) {
|
|
3810
|
+
Rt(e, t);
|
|
3809
3811
|
}
|
|
3810
3812
|
function Yn(e) {
|
|
3811
3813
|
K.set(e);
|
|
@@ -3834,13 +3836,13 @@ function ti(e, t, r) {
|
|
|
3834
3836
|
}
|
|
3835
3837
|
}
|
|
3836
3838
|
function ri(e) {
|
|
3837
|
-
|
|
3839
|
+
Vt(e, "svelte-1bsli1q", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}");
|
|
3838
3840
|
}
|
|
3839
|
-
function
|
|
3841
|
+
function ht(e, t, r) {
|
|
3840
3842
|
const n = e.slice();
|
|
3841
3843
|
return n[21] = t[r], n;
|
|
3842
3844
|
}
|
|
3843
|
-
function
|
|
3845
|
+
function lt(e, t, r) {
|
|
3844
3846
|
const n = e.slice();
|
|
3845
3847
|
return n[21] = t[r], n;
|
|
3846
3848
|
}
|
|
@@ -3855,71 +3857,71 @@ function ni(e) {
|
|
|
3855
3857
|
/*topProviders*/
|
|
3856
3858
|
e[1]
|
|
3857
3859
|
), f = [];
|
|
3858
|
-
for (let
|
|
3859
|
-
f[
|
|
3860
|
+
for (let d = 0; d < c.length; d += 1)
|
|
3861
|
+
f[d] = ft(lt(e, c, d));
|
|
3860
3862
|
let g = ue(
|
|
3861
3863
|
/*otherProviders*/
|
|
3862
3864
|
e[2]
|
|
3863
|
-
),
|
|
3864
|
-
for (let
|
|
3865
|
-
d
|
|
3865
|
+
), p = [];
|
|
3866
|
+
for (let d = 0; d < g.length; d += 1)
|
|
3867
|
+
p[d] = ct(ht(e, g, d));
|
|
3866
3868
|
return {
|
|
3867
3869
|
c() {
|
|
3868
3870
|
t = A("h4"), n = $(r), i = R();
|
|
3869
|
-
for (let
|
|
3870
|
-
f[
|
|
3871
|
+
for (let d = 0; d < f.length; d += 1)
|
|
3872
|
+
f[d].c();
|
|
3871
3873
|
s = R(), o = A("h4"), l = $(a), u = R();
|
|
3872
|
-
for (let
|
|
3873
|
-
d
|
|
3874
|
-
h =
|
|
3874
|
+
for (let d = 0; d < p.length; d += 1)
|
|
3875
|
+
p[d].c();
|
|
3876
|
+
h = Wt(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3875
3877
|
},
|
|
3876
|
-
m(
|
|
3877
|
-
C(
|
|
3878
|
-
for (let
|
|
3879
|
-
f[
|
|
3880
|
-
C(
|
|
3881
|
-
for (let
|
|
3882
|
-
|
|
3883
|
-
C(
|
|
3878
|
+
m(d, v) {
|
|
3879
|
+
C(d, t, v), y(t, n), C(d, i, v);
|
|
3880
|
+
for (let m = 0; m < f.length; m += 1)
|
|
3881
|
+
f[m] && f[m].m(d, v);
|
|
3882
|
+
C(d, s, v), C(d, o, v), y(o, l), C(d, u, v);
|
|
3883
|
+
for (let m = 0; m < p.length; m += 1)
|
|
3884
|
+
p[m] && p[m].m(d, v);
|
|
3885
|
+
C(d, h, v);
|
|
3884
3886
|
},
|
|
3885
|
-
p(
|
|
3887
|
+
p(d, v) {
|
|
3886
3888
|
if (v & /*$_*/
|
|
3887
3889
|
16 && r !== (r = /*$_*/
|
|
3888
|
-
|
|
3890
|
+
d[4]("popularProviders") + "") && D(n, r), v & /*openGameProviderPage, topProviders, $_*/
|
|
3889
3891
|
50) {
|
|
3890
3892
|
c = ue(
|
|
3891
3893
|
/*topProviders*/
|
|
3892
|
-
|
|
3894
|
+
d[1]
|
|
3893
3895
|
);
|
|
3894
|
-
let
|
|
3895
|
-
for (
|
|
3896
|
-
const H =
|
|
3897
|
-
f[
|
|
3896
|
+
let m;
|
|
3897
|
+
for (m = 0; m < c.length; m += 1) {
|
|
3898
|
+
const H = lt(d, c, m);
|
|
3899
|
+
f[m] ? f[m].p(H, v) : (f[m] = ft(H), f[m].c(), f[m].m(s.parentNode, s));
|
|
3898
3900
|
}
|
|
3899
|
-
for (;
|
|
3900
|
-
f[
|
|
3901
|
+
for (; m < f.length; m += 1)
|
|
3902
|
+
f[m].d(1);
|
|
3901
3903
|
f.length = c.length;
|
|
3902
3904
|
}
|
|
3903
3905
|
if (v & /*$_*/
|
|
3904
3906
|
16 && a !== (a = /*$_*/
|
|
3905
|
-
|
|
3907
|
+
d[4]("otherProviders") + "") && D(l, a), v & /*openGameProviderPage, otherProviders, $_*/
|
|
3906
3908
|
52) {
|
|
3907
3909
|
g = ue(
|
|
3908
3910
|
/*otherProviders*/
|
|
3909
|
-
|
|
3911
|
+
d[2]
|
|
3910
3912
|
);
|
|
3911
|
-
let
|
|
3912
|
-
for (
|
|
3913
|
-
const H =
|
|
3914
|
-
|
|
3913
|
+
let m;
|
|
3914
|
+
for (m = 0; m < g.length; m += 1) {
|
|
3915
|
+
const H = ht(d, g, m);
|
|
3916
|
+
p[m] ? p[m].p(H, v) : (p[m] = ct(H), p[m].c(), p[m].m(h.parentNode, h));
|
|
3915
3917
|
}
|
|
3916
|
-
for (;
|
|
3917
|
-
|
|
3918
|
-
|
|
3918
|
+
for (; m < p.length; m += 1)
|
|
3919
|
+
p[m].d(1);
|
|
3920
|
+
p.length = g.length;
|
|
3919
3921
|
}
|
|
3920
3922
|
},
|
|
3921
|
-
d(
|
|
3922
|
-
|
|
3923
|
+
d(d) {
|
|
3924
|
+
d && (I(t), I(i), I(s), I(o), I(u), I(h)), ze(f, d), ze(p, d);
|
|
3923
3925
|
}
|
|
3924
3926
|
};
|
|
3925
3927
|
}
|
|
@@ -3945,17 +3947,17 @@ function ii(e) {
|
|
|
3945
3947
|
}
|
|
3946
3948
|
};
|
|
3947
3949
|
}
|
|
3948
|
-
function
|
|
3950
|
+
function ft(e) {
|
|
3949
3951
|
let t, r, n, i, s, o, a, l = (
|
|
3950
3952
|
/*provider*/
|
|
3951
3953
|
e[21].name + ""
|
|
3952
3954
|
), u, h, c, f = (
|
|
3953
3955
|
/*provider*/
|
|
3954
3956
|
e[21].games.count + ""
|
|
3955
|
-
), g,
|
|
3957
|
+
), g, p, d = (
|
|
3956
3958
|
/*$_*/
|
|
3957
3959
|
e[4]("games") + ""
|
|
3958
|
-
), v,
|
|
3960
|
+
), v, m, H;
|
|
3959
3961
|
function B() {
|
|
3960
3962
|
return (
|
|
3961
3963
|
/*click_handler*/
|
|
@@ -3967,16 +3969,16 @@ function ct(e) {
|
|
|
3967
3969
|
}
|
|
3968
3970
|
return {
|
|
3969
3971
|
c() {
|
|
3970
|
-
t = A("div"), r = A("img"), s = R(), o = A("div"), a = A("p"), u = $(l), h = R(), c = A("p"), g = $(f),
|
|
3972
|
+
t = A("div"), r = A("img"), s = R(), o = A("div"), a = A("p"), u = $(l), h = R(), c = A("p"), g = $(f), p = R(), v = $(d), de(r.src, n = /*provider*/
|
|
3971
3973
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
3972
3974
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
3973
3975
|
},
|
|
3974
3976
|
m(O, T) {
|
|
3975
|
-
C(O, t, T), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c,
|
|
3977
|
+
C(O, t, T), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, p), y(c, v), m || (H = gt(t, "click", B), m = !0);
|
|
3976
3978
|
},
|
|
3977
3979
|
p(O, T) {
|
|
3978
3980
|
e = O, T & /*topProviders*/
|
|
3979
|
-
2 && !
|
|
3981
|
+
2 && !de(r.src, n = /*provider*/
|
|
3980
3982
|
e[21].logo) && S(r, "src", n), T & /*topProviders*/
|
|
3981
3983
|
2 && i !== (i = /*provider*/
|
|
3982
3984
|
e[21].name) && S(r, "alt", i), T & /*topProviders*/
|
|
@@ -3984,25 +3986,25 @@ function ct(e) {
|
|
|
3984
3986
|
e[21].name + "") && D(u, l), T & /*topProviders*/
|
|
3985
3987
|
2 && f !== (f = /*provider*/
|
|
3986
3988
|
e[21].games.count + "") && D(g, f), T & /*$_*/
|
|
3987
|
-
16 &&
|
|
3988
|
-
e[4]("games") + "") && D(v,
|
|
3989
|
+
16 && d !== (d = /*$_*/
|
|
3990
|
+
e[4]("games") + "") && D(v, d);
|
|
3989
3991
|
},
|
|
3990
3992
|
d(O) {
|
|
3991
|
-
O && I(t),
|
|
3993
|
+
O && I(t), m = !1, H();
|
|
3992
3994
|
}
|
|
3993
3995
|
};
|
|
3994
3996
|
}
|
|
3995
|
-
function
|
|
3997
|
+
function ct(e) {
|
|
3996
3998
|
let t, r, n, i, s, o, a, l = (
|
|
3997
3999
|
/*provider*/
|
|
3998
4000
|
e[21].name + ""
|
|
3999
4001
|
), u, h, c, f = (
|
|
4000
4002
|
/*provider*/
|
|
4001
4003
|
e[21].games.count + ""
|
|
4002
|
-
), g,
|
|
4004
|
+
), g, p, d = (
|
|
4003
4005
|
/*$_*/
|
|
4004
4006
|
e[4]("games") + ""
|
|
4005
|
-
), v,
|
|
4007
|
+
), v, m, H, B;
|
|
4006
4008
|
function O() {
|
|
4007
4009
|
return (
|
|
4008
4010
|
/*click_handler_1*/
|
|
@@ -4014,16 +4016,16 @@ function mt(e) {
|
|
|
4014
4016
|
}
|
|
4015
4017
|
return {
|
|
4016
4018
|
c() {
|
|
4017
|
-
t = A("div"), r = A("img"), s = R(), o = A("div"), a = A("p"), u = $(l), h = R(), c = A("p"), g = $(f),
|
|
4019
|
+
t = A("div"), r = A("img"), s = R(), o = A("div"), a = A("p"), u = $(l), h = R(), c = A("p"), g = $(f), p = R(), v = $(d), m = R(), de(r.src, n = /*provider*/
|
|
4018
4020
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4019
4021
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4020
4022
|
},
|
|
4021
4023
|
m(T, N) {
|
|
4022
|
-
C(T, t, N), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c,
|
|
4024
|
+
C(T, t, N), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, p), y(c, v), y(t, m), H || (B = gt(t, "click", O), H = !0);
|
|
4023
4025
|
},
|
|
4024
4026
|
p(T, N) {
|
|
4025
4027
|
e = T, N & /*otherProviders*/
|
|
4026
|
-
4 && !
|
|
4028
|
+
4 && !de(r.src, n = /*provider*/
|
|
4027
4029
|
e[21].logo) && S(r, "src", n), N & /*otherProviders*/
|
|
4028
4030
|
4 && i !== (i = /*provider*/
|
|
4029
4031
|
e[21].name) && S(r, "alt", i), N & /*otherProviders*/
|
|
@@ -4031,8 +4033,8 @@ function mt(e) {
|
|
|
4031
4033
|
e[21].name + "") && D(u, l), N & /*otherProviders*/
|
|
4032
4034
|
4 && f !== (f = /*provider*/
|
|
4033
4035
|
e[21].games.count + "") && D(g, f), N & /*$_*/
|
|
4034
|
-
16 &&
|
|
4035
|
-
e[4]("games") + "") && D(v,
|
|
4036
|
+
16 && d !== (d = /*$_*/
|
|
4037
|
+
e[4]("games") + "") && D(v, d);
|
|
4036
4038
|
},
|
|
4037
4039
|
d(T) {
|
|
4038
4040
|
T && I(t), H = !1, B();
|
|
@@ -4067,25 +4069,25 @@ function si(e) {
|
|
|
4067
4069
|
}
|
|
4068
4070
|
function oi(e, t, r) {
|
|
4069
4071
|
let n;
|
|
4070
|
-
|
|
4071
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, c = [], f = [], g = [],
|
|
4072
|
+
kt(e, Jn, (b) => r(4, n = b));
|
|
4073
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, c = [], f = [], g = [], p = !1, d;
|
|
4072
4074
|
const v = () => {
|
|
4073
4075
|
fetch(u).then((L) => L.json()).then((L) => {
|
|
4074
4076
|
Object.keys(L).forEach((j) => {
|
|
4075
|
-
|
|
4077
|
+
ut(j, L[j]);
|
|
4076
4078
|
});
|
|
4077
4079
|
}).catch((L) => {
|
|
4078
4080
|
console.log(L);
|
|
4079
4081
|
});
|
|
4080
4082
|
};
|
|
4081
|
-
Object.keys(
|
|
4082
|
-
|
|
4083
|
+
Object.keys(Ze).forEach((b) => {
|
|
4084
|
+
ut(b, Ze[b]);
|
|
4083
4085
|
});
|
|
4084
|
-
const
|
|
4085
|
-
r(3,
|
|
4086
|
+
const m = () => {
|
|
4087
|
+
r(3, p = !0);
|
|
4086
4088
|
const b = new URL(`${i}/v1/casino/vendors`);
|
|
4087
4089
|
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((L) => L.json()).then((L) => {
|
|
4088
|
-
r(3,
|
|
4090
|
+
r(3, p = !1), c = L.items.map((U) => U), r(1, f = c.filter((U) => U.isTopVendor === !0)), r(2, g = c.filter((U) => U.isTopVendor === !1));
|
|
4089
4091
|
let j = [];
|
|
4090
4092
|
j = c.flatMap((U) => U.subVendors), g.push(...j.filter((U) => U.games.count > 0));
|
|
4091
4093
|
});
|
|
@@ -4104,24 +4106,24 @@ function oi(e, t, r) {
|
|
|
4104
4106
|
}, O = (b) => H(b.id, b.name, b.logo), T = (b) => H(b.id, b.name, b.logo);
|
|
4105
4107
|
function N(b) {
|
|
4106
4108
|
Ae[b ? "unshift" : "push"](() => {
|
|
4107
|
-
|
|
4109
|
+
d = b, r(0, d);
|
|
4108
4110
|
});
|
|
4109
4111
|
}
|
|
4110
4112
|
return e.$$set = (b) => {
|
|
4111
4113
|
"endpoint" in b && r(6, i = b.endpoint), "datasource" in b && r(7, s = b.datasource), "lang" in b && r(8, o = b.lang), "clientstyling" in b && r(9, a = b.clientstyling), "clientstylingurl" in b && r(10, l = b.clientstylingurl), "translationurl" in b && r(11, u = b.translationurl), "mbsource" in b && r(12, h = b.mbsource);
|
|
4112
4114
|
}, e.$$.update = () => {
|
|
4113
4115
|
e.$$.dirty & /*endpoint, lang, datasource*/
|
|
4114
|
-
448 && i && o && s &&
|
|
4116
|
+
448 && i && o && s && m(), e.$$.dirty & /*lang*/
|
|
4115
4117
|
256 && o && B(), e.$$.dirty & /*translationurl*/
|
|
4116
4118
|
2048 && u && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4117
|
-
513 && a &&
|
|
4118
|
-
1025 && l &&
|
|
4119
|
-
4097 && h &&
|
|
4119
|
+
513 && a && d && Kn(d, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4120
|
+
1025 && l && d && ei(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4121
|
+
4097 && h && d && ti(d, `${h}.Style`);
|
|
4120
4122
|
}, [
|
|
4121
|
-
|
|
4123
|
+
d,
|
|
4122
4124
|
f,
|
|
4123
4125
|
g,
|
|
4124
|
-
|
|
4126
|
+
p,
|
|
4125
4127
|
n,
|
|
4126
4128
|
H,
|
|
4127
4129
|
i,
|
|
@@ -4136,14 +4138,14 @@ function oi(e, t, r) {
|
|
|
4136
4138
|
N
|
|
4137
4139
|
];
|
|
4138
4140
|
}
|
|
4139
|
-
class ai extends
|
|
4141
|
+
class ai extends ar {
|
|
4140
4142
|
constructor(t) {
|
|
4141
|
-
super(),
|
|
4143
|
+
super(), sr(
|
|
4142
4144
|
this,
|
|
4143
4145
|
t,
|
|
4144
4146
|
oi,
|
|
4145
4147
|
si,
|
|
4146
|
-
|
|
4148
|
+
mt,
|
|
4147
4149
|
{
|
|
4148
4150
|
endpoint: 6,
|
|
4149
4151
|
datasource: 7,
|
|
@@ -4199,7 +4201,7 @@ class ai extends ur {
|
|
|
4199
4201
|
this.$$set({ mbsource: t }), G();
|
|
4200
4202
|
}
|
|
4201
4203
|
}
|
|
4202
|
-
|
|
4204
|
+
or(ai, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4203
4205
|
export {
|
|
4204
4206
|
ai as C
|
|
4205
4207
|
};
|