@everymatrix/casino-slider 1.54.6 → 1.54.8
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/{CasinoSlider-bkfSSyXV.js → CasinoSlider-Cla7MfSi.js} +372 -376
- package/components/CasinoSlider-DbPDrHOf.js +4548 -0
- package/components/CasinoSlider-DdPYhkaL.cjs +3 -0
- package/es2015/casino-slider.cjs +1 -0
- package/es2015/casino-slider.js +16 -0
- package/esnext/casino-slider.js +1 -1
- package/package.json +1 -1
@@ -1,28 +1,28 @@
|
|
1
1
|
function k() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Lt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function at() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function Z(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(Lt);
|
11
11
|
}
|
12
12
|
function Ke(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Ft(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
18
|
let Ee;
|
19
|
-
function
|
19
|
+
function lt(e, t) {
|
20
20
|
return e === t ? !0 : (Ee || (Ee = document.createElement("a")), Ee.href = t, e === Ee.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Sr(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Tr(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -34,14 +34,14 @@ function Ar(e, ...t) {
|
|
34
34
|
function I(e, t) {
|
35
35
|
e.appendChild(t);
|
36
36
|
}
|
37
|
-
function
|
38
|
-
const n =
|
37
|
+
function Ar(e, t, r) {
|
38
|
+
const n = Ir(e);
|
39
39
|
if (!n.getElementById(t)) {
|
40
40
|
const i = B("style");
|
41
|
-
i.id = t, i.textContent = r,
|
41
|
+
i.id = t, i.textContent = r, Br(n, i);
|
42
42
|
}
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Ir(e) {
|
45
45
|
if (!e) return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
47
47
|
return t && /** @type {ShadowRoot} */
|
@@ -50,7 +50,7 @@ function Br(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
53
|
+
function Br(e, t) {
|
54
54
|
return I(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
@@ -63,7 +63,7 @@ function U(e, t, r) {
|
|
63
63
|
function F(e) {
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function Mr(e, t) {
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
68
68
|
e[r] && e[r].d(t);
|
69
69
|
}
|
@@ -85,14 +85,14 @@ function Se(e, t, r, n) {
|
|
85
85
|
function H(e, t, r) {
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
87
87
|
}
|
88
|
-
function
|
88
|
+
function Nr(e) {
|
89
89
|
return Array.from(e.childNodes);
|
90
90
|
}
|
91
91
|
function et(e, t) {
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
93
93
|
t);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function Pr(e) {
|
96
96
|
const t = {};
|
97
97
|
return e.childNodes.forEach(
|
98
98
|
/** @param {Element} node */
|
@@ -105,19 +105,19 @@ let me;
|
|
105
105
|
function he(e) {
|
106
106
|
me = e;
|
107
107
|
}
|
108
|
-
function
|
108
|
+
function Or() {
|
109
109
|
if (!me) throw new Error("Function called outside component initialization");
|
110
110
|
return me;
|
111
111
|
}
|
112
|
-
function
|
113
|
-
|
112
|
+
function Lr(e) {
|
113
|
+
Or().$$.on_mount.push(e);
|
114
114
|
}
|
115
115
|
const Y = [], ce = [];
|
116
116
|
let K = [];
|
117
|
-
const
|
117
|
+
const ut = [], Fr = /* @__PURE__ */ Promise.resolve();
|
118
118
|
let $e = !1;
|
119
|
-
function
|
120
|
-
$e || ($e = !0,
|
119
|
+
function Rr() {
|
120
|
+
$e || ($e = !0, Fr.then(A));
|
121
121
|
}
|
122
122
|
function je(e) {
|
123
123
|
K.push(e);
|
@@ -132,7 +132,7 @@ function A() {
|
|
132
132
|
try {
|
133
133
|
for (; q < Y.length; ) {
|
134
134
|
const t = Y[q];
|
135
|
-
q++, he(t),
|
135
|
+
q++, he(t), Dr(t.$$);
|
136
136
|
}
|
137
137
|
} catch (t) {
|
138
138
|
throw Y.length = 0, q = 0, t;
|
@@ -144,32 +144,32 @@ function A() {
|
|
144
144
|
}
|
145
145
|
K.length = 0;
|
146
146
|
} while (Y.length);
|
147
|
-
for (;
|
148
|
-
|
147
|
+
for (; ut.length; )
|
148
|
+
ut.pop()();
|
149
149
|
$e = !1, Le.clear(), he(e);
|
150
150
|
}
|
151
|
-
function
|
151
|
+
function Dr(e) {
|
152
152
|
if (e.fragment !== null) {
|
153
153
|
e.update(), Z(e.before_update);
|
154
154
|
const t = e.dirty;
|
155
155
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
|
156
156
|
}
|
157
157
|
}
|
158
|
-
function
|
158
|
+
function Gr(e) {
|
159
159
|
const t = [], r = [];
|
160
160
|
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
161
161
|
}
|
162
|
-
const
|
163
|
-
function
|
164
|
-
e && e.i && (
|
162
|
+
const Ur = /* @__PURE__ */ new Set();
|
163
|
+
function Rt(e, t) {
|
164
|
+
e && e.i && (Ur.delete(e), e.i(t));
|
165
165
|
}
|
166
166
|
function ee(e) {
|
167
167
|
return e?.length !== void 0 ? e : Array.from(e);
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function Dt(e, t) {
|
170
170
|
e.d(1), t.delete(e.key);
|
171
171
|
}
|
172
|
-
function
|
172
|
+
function Gt(e, t, r, n, i, s, o, a, h, l, u, m) {
|
173
173
|
let f = e.length, p = s.length, g = f;
|
174
174
|
const b = {};
|
175
175
|
for (; g--; ) b[e[g].key] = g;
|
@@ -181,7 +181,7 @@ function Ut(e, t, r, n, i, s, o, a, h, l, u, m) {
|
|
181
181
|
}
|
182
182
|
const R = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Set();
|
183
183
|
function P(w) {
|
184
|
-
|
184
|
+
Rt(w, 1), w.m(a, u), o.set(w.key, w), u = w.first, p--;
|
185
185
|
}
|
186
186
|
for (; f && p; ) {
|
187
187
|
const w = d[p - 1], M = e[f - 1], L = w.key, G = M.key;
|
@@ -194,21 +194,21 @@ function Ut(e, t, r, n, i, s, o, a, h, l, u, m) {
|
|
194
194
|
for (; p; ) P(d[p - 1]);
|
195
195
|
return Z(S), d;
|
196
196
|
}
|
197
|
-
function
|
197
|
+
function kr(e, t, r) {
|
198
198
|
const { fragment: n, after_update: i } = e.$$;
|
199
199
|
n && n.m(t, r), je(() => {
|
200
|
-
const s = e.$$.on_mount.map(
|
200
|
+
const s = e.$$.on_mount.map(Lt).filter(Ke);
|
201
201
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Z(s), e.$$.on_mount = [];
|
202
202
|
}), i.forEach(je);
|
203
203
|
}
|
204
|
-
function
|
204
|
+
function $r(e, t) {
|
205
205
|
const r = e.$$;
|
206
|
-
r.fragment !== null && (
|
206
|
+
r.fragment !== null && (Gr(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
207
207
|
}
|
208
|
-
function
|
209
|
-
e.$$.dirty[0] === -1 && (Y.push(e),
|
208
|
+
function jr(e, t) {
|
209
|
+
e.$$.dirty[0] === -1 && (Y.push(e), Rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
210
210
|
}
|
211
|
-
function
|
211
|
+
function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
|
212
212
|
const h = me;
|
213
213
|
he(e);
|
214
214
|
const l = e.$$ = {
|
@@ -218,7 +218,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
218
218
|
props: s,
|
219
219
|
update: k,
|
220
220
|
not_equal: i,
|
221
|
-
bound:
|
221
|
+
bound: at(),
|
222
222
|
// lifecycle
|
223
223
|
on_mount: [],
|
224
224
|
on_destroy: [],
|
@@ -227,28 +227,28 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
227
227
|
after_update: [],
|
228
228
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
229
229
|
// everything else
|
230
|
-
callbacks:
|
230
|
+
callbacks: at(),
|
231
231
|
dirty: a,
|
232
232
|
skip_bound: !1,
|
233
233
|
root: t.target || h.$$.root
|
234
234
|
};
|
235
235
|
o && o(l.root);
|
236
236
|
let u = !1;
|
237
|
-
if (l.ctx = r(e, t.props || {}, (m, f, ...p) => {
|
237
|
+
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
238
238
|
const g = p.length ? p[0] : f;
|
239
|
-
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u &&
|
240
|
-
}), l.update(), u = !0, Z(l.before_update), l.fragment = n(l.ctx), t.target) {
|
239
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && jr(e, m)), f;
|
240
|
+
}) : [], l.update(), u = !0, Z(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
241
241
|
if (t.hydrate) {
|
242
|
-
const m =
|
242
|
+
const m = Nr(t.target);
|
243
243
|
l.fragment && l.fragment.l(m), m.forEach(F);
|
244
244
|
} else
|
245
245
|
l.fragment && l.fragment.c();
|
246
|
-
t.intro &&
|
246
|
+
t.intro && Rt(e.$$.fragment), kr(e, t.target, t.anchor), A();
|
247
247
|
}
|
248
248
|
he(h);
|
249
249
|
}
|
250
|
-
let
|
251
|
-
typeof HTMLElement == "function" && (
|
250
|
+
let Ut;
|
251
|
+
typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
252
252
|
/** The Svelte component constructor */
|
253
253
|
$$ctor;
|
254
254
|
/** Slots */
|
@@ -307,7 +307,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
307
307
|
};
|
308
308
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
309
309
|
return;
|
310
|
-
const t = {}, r =
|
310
|
+
const t = {}, r = Pr(this);
|
311
311
|
for (const i of this.$$s)
|
312
312
|
i in r && (t[i] = [e(i)]);
|
313
313
|
for (const i of this.attributes) {
|
@@ -394,8 +394,8 @@ function Ce(e, t, r, n) {
|
|
394
394
|
return t;
|
395
395
|
}
|
396
396
|
}
|
397
|
-
function
|
398
|
-
let o = class extends
|
397
|
+
function Xr(e, t, r, n, i, s) {
|
398
|
+
let o = class extends Ut {
|
399
399
|
constructor() {
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
401
401
|
}
|
@@ -423,7 +423,7 @@ function Wr(e, t, r, n, i, s) {
|
|
423
423
|
}), e.element = /** @type {any} */
|
424
424
|
o, o;
|
425
425
|
}
|
426
|
-
class
|
426
|
+
class Wr {
|
427
427
|
/**
|
428
428
|
* ### PRIVATE API
|
429
429
|
*
|
@@ -442,7 +442,7 @@ class zr {
|
|
442
442
|
$$set = void 0;
|
443
443
|
/** @returns {void} */
|
444
444
|
$destroy() {
|
445
|
-
|
445
|
+
$r(this, 1), this.$destroy = k;
|
446
446
|
}
|
447
447
|
/**
|
448
448
|
* @template {Extract<keyof Events, string>} K
|
@@ -464,13 +464,13 @@ class zr {
|
|
464
464
|
* @returns {void}
|
465
465
|
*/
|
466
466
|
$set(t) {
|
467
|
-
this.$$set && !
|
467
|
+
this.$$set && !Sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
468
468
|
}
|
469
469
|
}
|
470
|
-
const
|
471
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
470
|
+
const zr = "4";
|
471
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zr);
|
472
472
|
const J = [];
|
473
|
-
function
|
473
|
+
function Zr(e, t) {
|
474
474
|
return {
|
475
475
|
subscribe: Ie(e, t).subscribe
|
476
476
|
};
|
@@ -479,7 +479,7 @@ function Ie(e, t = k) {
|
|
479
479
|
let r;
|
480
480
|
const n = /* @__PURE__ */ new Set();
|
481
481
|
function i(a) {
|
482
|
-
if (
|
482
|
+
if (Ft(e, a) && (e = a, r)) {
|
483
483
|
const h = !J.length;
|
484
484
|
for (const l of n)
|
485
485
|
l[1](), J.push(l, e);
|
@@ -506,7 +506,7 @@ function oe(e, t, r) {
|
|
506
506
|
if (!i.every(Boolean))
|
507
507
|
throw new Error("derived() expects stores as input, got a falsy value");
|
508
508
|
const s = t.length < 2;
|
509
|
-
return
|
509
|
+
return Zr(r, (o, a) => {
|
510
510
|
let h = !1;
|
511
511
|
const l = [];
|
512
512
|
let u = 0, m = k;
|
@@ -517,7 +517,7 @@ function oe(e, t, r) {
|
|
517
517
|
const g = t(n ? l[0] : l, o, a);
|
518
518
|
s ? o(g) : m = Ke(g) ? g : k;
|
519
519
|
}, p = i.map(
|
520
|
-
(g, b) =>
|
520
|
+
(g, b) => Tr(
|
521
521
|
g,
|
522
522
|
(d) => {
|
523
523
|
l[b] = d, u &= ~(1 << b), h && f();
|
@@ -532,70 +532,70 @@ function oe(e, t, r) {
|
|
532
532
|
};
|
533
533
|
});
|
534
534
|
}
|
535
|
-
function
|
536
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
535
|
+
function Qr(e) {
|
536
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
537
537
|
}
|
538
|
-
var
|
539
|
-
return
|
538
|
+
var qr = function(t) {
|
539
|
+
return Jr(t) && !Yr(t);
|
540
540
|
};
|
541
|
-
function
|
541
|
+
function Jr(e) {
|
542
542
|
return !!e && typeof e == "object";
|
543
543
|
}
|
544
|
-
function
|
544
|
+
function Yr(e) {
|
545
545
|
var t = Object.prototype.toString.call(e);
|
546
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
546
|
+
return t === "[object RegExp]" || t === "[object Date]" || tn(e);
|
547
547
|
}
|
548
|
-
var
|
549
|
-
function
|
550
|
-
return e.$$typeof ===
|
548
|
+
var Kr = typeof Symbol == "function" && Symbol.for, en = Kr ? Symbol.for("react.element") : 60103;
|
549
|
+
function tn(e) {
|
550
|
+
return e.$$typeof === en;
|
551
551
|
}
|
552
|
-
function
|
552
|
+
function rn(e) {
|
553
553
|
return Array.isArray(e) ? [] : {};
|
554
554
|
}
|
555
555
|
function de(e, t) {
|
556
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? te(
|
556
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(rn(e), e, t) : e;
|
557
557
|
}
|
558
|
-
function
|
558
|
+
function nn(e, t, r) {
|
559
559
|
return e.concat(t).map(function(n) {
|
560
560
|
return de(n, r);
|
561
561
|
});
|
562
562
|
}
|
563
|
-
function
|
563
|
+
function on(e, t) {
|
564
564
|
if (!t.customMerge)
|
565
565
|
return te;
|
566
566
|
var r = t.customMerge(e);
|
567
567
|
return typeof r == "function" ? r : te;
|
568
568
|
}
|
569
|
-
function
|
569
|
+
function sn(e) {
|
570
570
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
571
571
|
return Object.propertyIsEnumerable.call(e, t);
|
572
572
|
}) : [];
|
573
573
|
}
|
574
|
-
function
|
575
|
-
return Object.keys(e).concat(
|
574
|
+
function ht(e) {
|
575
|
+
return Object.keys(e).concat(sn(e));
|
576
576
|
}
|
577
|
-
function
|
577
|
+
function kt(e, t) {
|
578
578
|
try {
|
579
579
|
return t in e;
|
580
580
|
} catch {
|
581
581
|
return !1;
|
582
582
|
}
|
583
583
|
}
|
584
|
-
function
|
585
|
-
return
|
584
|
+
function an(e, t) {
|
585
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
586
586
|
}
|
587
|
-
function
|
587
|
+
function ln(e, t, r) {
|
588
588
|
var n = {};
|
589
|
-
return r.isMergeableObject(e) &&
|
589
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
590
590
|
n[i] = de(e[i], r);
|
591
|
-
}),
|
592
|
-
|
591
|
+
}), ht(t).forEach(function(i) {
|
592
|
+
an(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = on(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
593
593
|
}), n;
|
594
594
|
}
|
595
595
|
function te(e, t, r) {
|
596
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
596
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || qr, r.cloneUnlessOtherwiseSpecified = de;
|
597
597
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
598
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
598
|
+
return s ? n ? r.arrayMerge(e, t, r) : ln(e, t, r) : de(t, r);
|
599
599
|
}
|
600
600
|
te.all = function(t, r) {
|
601
601
|
if (!Array.isArray(t))
|
@@ -604,8 +604,8 @@ te.all = function(t, r) {
|
|
604
604
|
return te(n, i, r);
|
605
605
|
}, {});
|
606
606
|
};
|
607
|
-
var
|
608
|
-
const
|
607
|
+
var un = te, hn = un;
|
608
|
+
const cn = /* @__PURE__ */ Qr(hn);
|
609
609
|
var Ve = function(e, t) {
|
610
610
|
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
611
611
|
r.__proto__ = n;
|
@@ -631,7 +631,7 @@ var v = function() {
|
|
631
631
|
return t;
|
632
632
|
}, v.apply(this, arguments);
|
633
633
|
};
|
634
|
-
function
|
634
|
+
function fn(e, t) {
|
635
635
|
var r = {};
|
636
636
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
637
637
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -645,39 +645,36 @@ function Fe(e, t, r) {
|
|
645
645
|
return e.concat(s || Array.prototype.slice.call(t));
|
646
646
|
}
|
647
647
|
function Re(e, t) {
|
648
|
-
var r = t && t.cache ? t.cache :
|
648
|
+
var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : bn, i = t && t.strategy ? t.strategy : pn;
|
649
649
|
return i(e, {
|
650
650
|
cache: r,
|
651
651
|
serializer: n
|
652
652
|
});
|
653
653
|
}
|
654
|
-
function
|
654
|
+
function mn(e) {
|
655
655
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
656
656
|
}
|
657
|
-
function
|
658
|
-
var i =
|
657
|
+
function dn(e, t, r, n) {
|
658
|
+
var i = mn(n) ? n : r(n), s = t.get(i);
|
659
659
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
660
660
|
}
|
661
|
-
function
|
661
|
+
function $t(e, t, r) {
|
662
662
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
663
663
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
664
664
|
}
|
665
|
-
function
|
665
|
+
function jt(e, t, r, n, i) {
|
666
666
|
return r.bind(t, e, n, i);
|
667
667
|
}
|
668
668
|
function pn(e, t) {
|
669
|
-
var r = e.length === 1 ?
|
670
|
-
return
|
669
|
+
var r = e.length === 1 ? dn : $t;
|
670
|
+
return jt(e, this, r, t.cache.create(), t.serializer);
|
671
671
|
}
|
672
672
|
function gn(e, t) {
|
673
|
-
return
|
673
|
+
return jt(e, this, $t, t.cache.create(), t.serializer);
|
674
674
|
}
|
675
|
-
|
676
|
-
return tt(e, this, jt, t.cache.create(), t.serializer);
|
677
|
-
}
|
678
|
-
var yn = function() {
|
675
|
+
var bn = function() {
|
679
676
|
return JSON.stringify(arguments);
|
680
|
-
},
|
677
|
+
}, yn = (
|
681
678
|
/** @class */
|
682
679
|
function() {
|
683
680
|
function e() {
|
@@ -689,13 +686,12 @@ var yn = function() {
|
|
689
686
|
this.cache[t] = r;
|
690
687
|
}, e;
|
691
688
|
}()
|
692
|
-
),
|
689
|
+
), _n = {
|
693
690
|
create: function() {
|
694
|
-
return new
|
691
|
+
return new yn();
|
695
692
|
}
|
696
693
|
}, De = {
|
697
|
-
variadic: gn
|
698
|
-
monadic: bn
|
694
|
+
variadic: gn
|
699
695
|
}, y;
|
700
696
|
(function(e) {
|
701
697
|
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";
|
@@ -708,43 +704,43 @@ var re;
|
|
708
704
|
(function(e) {
|
709
705
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
710
706
|
})(re || (re = {}));
|
711
|
-
function
|
707
|
+
function ct(e) {
|
712
708
|
return e.type === T.literal;
|
713
709
|
}
|
714
|
-
function
|
710
|
+
function vn(e) {
|
715
711
|
return e.type === T.argument;
|
716
712
|
}
|
717
|
-
function
|
713
|
+
function Vt(e) {
|
718
714
|
return e.type === T.number;
|
719
715
|
}
|
720
|
-
function
|
716
|
+
function Xt(e) {
|
721
717
|
return e.type === T.date;
|
722
718
|
}
|
723
|
-
function
|
719
|
+
function Wt(e) {
|
724
720
|
return e.type === T.time;
|
725
721
|
}
|
726
|
-
function
|
722
|
+
function zt(e) {
|
727
723
|
return e.type === T.select;
|
728
724
|
}
|
729
|
-
function
|
725
|
+
function Zt(e) {
|
730
726
|
return e.type === T.plural;
|
731
727
|
}
|
732
|
-
function
|
728
|
+
function En(e) {
|
733
729
|
return e.type === T.pound;
|
734
730
|
}
|
735
|
-
function
|
731
|
+
function Qt(e) {
|
736
732
|
return e.type === T.tag;
|
737
733
|
}
|
738
|
-
function
|
734
|
+
function qt(e) {
|
739
735
|
return !!(e && typeof e == "object" && e.type === re.number);
|
740
736
|
}
|
741
737
|
function Xe(e) {
|
742
738
|
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
743
739
|
}
|
744
|
-
var
|
745
|
-
function
|
740
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, xn = /(?:[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;
|
741
|
+
function Cn(e) {
|
746
742
|
var t = {};
|
747
|
-
return e.replace(
|
743
|
+
return e.replace(xn, function(r) {
|
748
744
|
var n = r.length;
|
749
745
|
switch (r[0]) {
|
750
746
|
case "G":
|
@@ -833,11 +829,11 @@ function wn(e) {
|
|
833
829
|
return "";
|
834
830
|
}), t;
|
835
831
|
}
|
836
|
-
var
|
837
|
-
function
|
832
|
+
var wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
833
|
+
function Hn(e) {
|
838
834
|
if (e.length === 0)
|
839
835
|
throw new Error("Number skeleton cannot be empty");
|
840
|
-
for (var t = e.split(
|
836
|
+
for (var t = e.split(wn).filter(function(f) {
|
841
837
|
return f.length > 0;
|
842
838
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
843
839
|
var s = i[n], o = s.split("/");
|
@@ -852,17 +848,17 @@ function Sn(e) {
|
|
852
848
|
}
|
853
849
|
return r;
|
854
850
|
}
|
855
|
-
function
|
851
|
+
function Sn(e) {
|
856
852
|
return e.replace(/^(.*?)-/, "");
|
857
853
|
}
|
858
|
-
var
|
859
|
-
function
|
854
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Kt = /^(0+)$/;
|
855
|
+
function mt(e) {
|
860
856
|
var t = {};
|
861
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
857
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yt, function(r, n, i) {
|
862
858
|
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)), "";
|
863
859
|
}), t;
|
864
860
|
}
|
865
|
-
function
|
861
|
+
function er(e) {
|
866
862
|
switch (e) {
|
867
863
|
case "sign-auto":
|
868
864
|
return {
|
@@ -902,7 +898,7 @@ function tr(e) {
|
|
902
898
|
};
|
903
899
|
}
|
904
900
|
}
|
905
|
-
function
|
901
|
+
function An(e) {
|
906
902
|
var t;
|
907
903
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
908
904
|
notation: "engineering"
|
@@ -910,17 +906,17 @@ function In(e) {
|
|
910
906
|
notation: "scientific"
|
911
907
|
}, e = e.slice(1)), t) {
|
912
908
|
var r = e.slice(0, 2);
|
913
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
909
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Kt.test(e))
|
914
910
|
throw new Error("Malformed concise eng/scientific notation");
|
915
911
|
t.minimumIntegerDigits = e.length;
|
916
912
|
}
|
917
913
|
return t;
|
918
914
|
}
|
919
|
-
function
|
920
|
-
var t = {}, r =
|
915
|
+
function dt(e) {
|
916
|
+
var t = {}, r = er(e);
|
921
917
|
return r || t;
|
922
918
|
}
|
923
|
-
function
|
919
|
+
function In(e) {
|
924
920
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
925
921
|
var i = n[r];
|
926
922
|
switch (i.stem) {
|
@@ -944,7 +940,7 @@ function Bn(e) {
|
|
944
940
|
continue;
|
945
941
|
case "measure-unit":
|
946
942
|
case "unit":
|
947
|
-
t.style = "unit", t.unit =
|
943
|
+
t.style = "unit", t.unit = Sn(i.options[0]);
|
948
944
|
continue;
|
949
945
|
case "compact-short":
|
950
946
|
case "K":
|
@@ -956,12 +952,12 @@ function Bn(e) {
|
|
956
952
|
continue;
|
957
953
|
case "scientific":
|
958
954
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
959
|
-
return v(v({}, h),
|
955
|
+
return v(v({}, h), dt(l));
|
960
956
|
}, {}));
|
961
957
|
continue;
|
962
958
|
case "engineering":
|
963
959
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
964
|
-
return v(v({}, h),
|
960
|
+
return v(v({}, h), dt(l));
|
965
961
|
}, {}));
|
966
962
|
continue;
|
967
963
|
case "notation-simple":
|
@@ -1006,7 +1002,7 @@ function Bn(e) {
|
|
1006
1002
|
case "integer-width":
|
1007
1003
|
if (i.options.length > 1)
|
1008
1004
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1009
|
-
i.options[0].replace(
|
1005
|
+
i.options[0].replace(Tn, function(h, l, u, m, f, p) {
|
1010
1006
|
if (l)
|
1011
1007
|
t.minimumIntegerDigits = u.length;
|
1012
1008
|
else {
|
@@ -1019,27 +1015,27 @@ function Bn(e) {
|
|
1019
1015
|
});
|
1020
1016
|
continue;
|
1021
1017
|
}
|
1022
|
-
if (
|
1018
|
+
if (Kt.test(i.stem)) {
|
1023
1019
|
t.minimumIntegerDigits = i.stem.length;
|
1024
1020
|
continue;
|
1025
1021
|
}
|
1026
|
-
if (
|
1022
|
+
if (ft.test(i.stem)) {
|
1027
1023
|
if (i.options.length > 1)
|
1028
1024
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1029
|
-
i.stem.replace(
|
1025
|
+
i.stem.replace(ft, function(h, l, u, m, f, p) {
|
1030
1026
|
return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1031
1027
|
});
|
1032
1028
|
var s = i.options[0];
|
1033
|
-
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t),
|
1029
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), mt(s)));
|
1034
1030
|
continue;
|
1035
1031
|
}
|
1036
|
-
if (
|
1037
|
-
t = v(v({}, t),
|
1032
|
+
if (Yt.test(i.stem)) {
|
1033
|
+
t = v(v({}, t), mt(i.stem));
|
1038
1034
|
continue;
|
1039
1035
|
}
|
1040
|
-
var o =
|
1036
|
+
var o = er(i.stem);
|
1041
1037
|
o && (t = v(v({}, t), o));
|
1042
|
-
var a =
|
1038
|
+
var a = An(i.stem);
|
1043
1039
|
a && (t = v(v({}, t), a));
|
1044
1040
|
}
|
1045
1041
|
return t;
|
@@ -2459,13 +2455,13 @@ var xe = {
|
|
2459
2455
|
"h"
|
2460
2456
|
]
|
2461
2457
|
};
|
2462
|
-
function
|
2458
|
+
function Bn(e, t) {
|
2463
2459
|
for (var r = "", n = 0; n < e.length; n++) {
|
2464
2460
|
var i = e.charAt(n);
|
2465
2461
|
if (i === "j") {
|
2466
2462
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2467
2463
|
s++, n++;
|
2468
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l =
|
2464
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = Mn(t);
|
2469
2465
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2470
2466
|
r += h;
|
2471
2467
|
for (; o-- > 0; )
|
@@ -2474,7 +2470,7 @@ function Mn(e, t) {
|
|
2474
2470
|
}
|
2475
2471
|
return r;
|
2476
2472
|
}
|
2477
|
-
function
|
2473
|
+
function Mn(e) {
|
2478
2474
|
var t = e.hourCycle;
|
2479
2475
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2480
2476
|
e.hourCycles && // @ts-ignore
|
@@ -2496,20 +2492,20 @@ function Nn(e) {
|
|
2496
2492
|
var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
|
2497
2493
|
return i[0];
|
2498
2494
|
}
|
2499
|
-
var Ge,
|
2495
|
+
var Ge, Nn = new RegExp("^".concat(Jt.source, "*")), Pn = new RegExp("".concat(Jt.source, "*$"));
|
2500
2496
|
function _(e, t) {
|
2501
2497
|
return { start: e, end: t };
|
2502
2498
|
}
|
2503
|
-
var
|
2499
|
+
var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ln = !!String.fromCodePoint, Fn = !!Object.fromEntries, Rn = !!String.prototype.codePointAt, Dn = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, Un = !!Number.isSafeInteger, kn = Un ? Number.isSafeInteger : function(e) {
|
2504
2500
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2505
2501
|
}, We = !0;
|
2506
2502
|
try {
|
2507
|
-
var
|
2508
|
-
We = ((Ge =
|
2503
|
+
var $n = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2504
|
+
We = ((Ge = $n.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
2509
2505
|
} catch {
|
2510
2506
|
We = !1;
|
2511
2507
|
}
|
2512
|
-
var
|
2508
|
+
var pt = On ? (
|
2513
2509
|
// Native
|
2514
2510
|
function(t, r, n) {
|
2515
2511
|
return t.startsWith(r, n);
|
@@ -2519,7 +2515,7 @@ var gt = Ln ? (
|
|
2519
2515
|
function(t, r, n) {
|
2520
2516
|
return t.slice(n, n + r.length) === r;
|
2521
2517
|
}
|
2522
|
-
), ze =
|
2518
|
+
), ze = Ln ? String.fromCodePoint : (
|
2523
2519
|
// IE11
|
2524
2520
|
function() {
|
2525
2521
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2531,9 +2527,9 @@ var gt = Ln ? (
|
|
2531
2527
|
}
|
2532
2528
|
return n;
|
2533
2529
|
}
|
2534
|
-
),
|
2530
|
+
), gt = (
|
2535
2531
|
// native
|
2536
|
-
|
2532
|
+
Fn ? Object.fromEntries : (
|
2537
2533
|
// Ponyfill
|
2538
2534
|
function(t) {
|
2539
2535
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2543,7 +2539,7 @@ var gt = Ln ? (
|
|
2543
2539
|
return r;
|
2544
2540
|
}
|
2545
2541
|
)
|
2546
|
-
),
|
2542
|
+
), tr = Rn ? (
|
2547
2543
|
// Native
|
2548
2544
|
function(t, r) {
|
2549
2545
|
return t.codePointAt(r);
|
@@ -2557,7 +2553,7 @@ var gt = Ln ? (
|
|
2557
2553
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2558
2554
|
}
|
2559
2555
|
}
|
2560
|
-
),
|
2556
|
+
), jn = Dn ? (
|
2561
2557
|
// Native
|
2562
2558
|
function(t) {
|
2563
2559
|
return t.trimStart();
|
@@ -2565,9 +2561,9 @@ var gt = Ln ? (
|
|
2565
2561
|
) : (
|
2566
2562
|
// Ponyfill
|
2567
2563
|
function(t) {
|
2568
|
-
return t.replace(
|
2564
|
+
return t.replace(Nn, "");
|
2569
2565
|
}
|
2570
|
-
),
|
2566
|
+
), Vn = Gn ? (
|
2571
2567
|
// Native
|
2572
2568
|
function(t) {
|
2573
2569
|
return t.trimEnd();
|
@@ -2575,32 +2571,32 @@ var gt = Ln ? (
|
|
2575
2571
|
) : (
|
2576
2572
|
// Ponyfill
|
2577
2573
|
function(t) {
|
2578
|
-
return t.replace(
|
2574
|
+
return t.replace(Pn, "");
|
2579
2575
|
}
|
2580
2576
|
);
|
2581
|
-
function
|
2577
|
+
function rr(e, t) {
|
2582
2578
|
return new RegExp(e, t);
|
2583
2579
|
}
|
2584
2580
|
var Ze;
|
2585
2581
|
if (We) {
|
2586
|
-
var
|
2582
|
+
var bt = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2587
2583
|
Ze = function(t, r) {
|
2588
2584
|
var n;
|
2589
|
-
|
2590
|
-
var i =
|
2585
|
+
bt.lastIndex = r;
|
2586
|
+
var i = bt.exec(t);
|
2591
2587
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2592
2588
|
};
|
2593
2589
|
} else
|
2594
2590
|
Ze = function(t, r) {
|
2595
2591
|
for (var n = []; ; ) {
|
2596
|
-
var i =
|
2597
|
-
if (i === void 0 ||
|
2592
|
+
var i = tr(t, r);
|
2593
|
+
if (i === void 0 || nr(i) || Zn(i))
|
2598
2594
|
break;
|
2599
2595
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2600
2596
|
}
|
2601
2597
|
return ze.apply(void 0, n);
|
2602
2598
|
};
|
2603
|
-
var
|
2599
|
+
var Xn = (
|
2604
2600
|
/** @class */
|
2605
2601
|
function() {
|
2606
2602
|
function e(t, r) {
|
@@ -2682,7 +2678,7 @@ var Wn = (
|
|
2682
2678
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
2683
2679
|
}, e.prototype.parseTagName = function() {
|
2684
2680
|
var t = this.offset();
|
2685
|
-
for (this.bump(); !this.isEOF() &&
|
2681
|
+
for (this.bump(); !this.isEOF() && zn(this.char()); )
|
2686
2682
|
this.bump();
|
2687
2683
|
return this.message.slice(t, this.offset());
|
2688
2684
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2711,7 +2707,7 @@ var Wn = (
|
|
2711
2707
|
};
|
2712
2708
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2713
2709
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2714
|
-
!
|
2710
|
+
!Wn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2715
2711
|
}, e.prototype.tryParseQuote = function(t) {
|
2716
2712
|
if (this.isEOF() || this.char() !== 39)
|
2717
2713
|
return null;
|
@@ -2798,7 +2794,7 @@ var Wn = (
|
|
2798
2794
|
var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2799
2795
|
if (m.err)
|
2800
2796
|
return m;
|
2801
|
-
var f =
|
2797
|
+
var f = Vn(m.val);
|
2802
2798
|
if (f.length === 0)
|
2803
2799
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
2804
2800
|
var p = _(u, this.clonePosition());
|
@@ -2808,8 +2804,8 @@ var Wn = (
|
|
2808
2804
|
if (g.err)
|
2809
2805
|
return g;
|
2810
2806
|
var b = _(i, this.clonePosition());
|
2811
|
-
if (l &&
|
2812
|
-
var d =
|
2807
|
+
if (l && pt(l?.style, "::", 0)) {
|
2808
|
+
var d = jn(l.style.slice(2));
|
2813
2809
|
if (a === "number") {
|
2814
2810
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2815
2811
|
return m.err ? m : {
|
@@ -2820,12 +2816,12 @@ var Wn = (
|
|
2820
2816
|
if (d.length === 0)
|
2821
2817
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2822
2818
|
var C = d;
|
2823
|
-
this.locale && (C =
|
2819
|
+
this.locale && (C = Bn(d, this.locale));
|
2824
2820
|
var f = {
|
2825
2821
|
type: re.dateTime,
|
2826
2822
|
pattern: C,
|
2827
2823
|
location: l.styleLocation,
|
2828
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2824
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(C) : {}
|
2829
2825
|
}, x = a === "date" ? T.date : T.time;
|
2830
2826
|
return {
|
2831
2827
|
val: { type: x, value: n, location: b, style: f },
|
@@ -2871,7 +2867,7 @@ var Wn = (
|
|
2871
2867
|
val: {
|
2872
2868
|
type: T.select,
|
2873
2869
|
value: n,
|
2874
|
-
options:
|
2870
|
+
options: gt(P.val),
|
2875
2871
|
location: w
|
2876
2872
|
},
|
2877
2873
|
err: null
|
@@ -2879,7 +2875,7 @@ var Wn = (
|
|
2879
2875
|
val: {
|
2880
2876
|
type: T.plural,
|
2881
2877
|
value: n,
|
2882
|
-
options:
|
2878
|
+
options: gt(P.val),
|
2883
2879
|
offset: D,
|
2884
2880
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2885
2881
|
location: w
|
@@ -2930,7 +2926,7 @@ var Wn = (
|
|
2930
2926
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2931
2927
|
var n = [];
|
2932
2928
|
try {
|
2933
|
-
n =
|
2929
|
+
n = Hn(t);
|
2934
2930
|
} catch {
|
2935
2931
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2936
2932
|
}
|
@@ -2939,7 +2935,7 @@ var Wn = (
|
|
2939
2935
|
type: re.number,
|
2940
2936
|
tokens: n,
|
2941
2937
|
location: r,
|
2942
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2938
|
+
parsedOptions: this.shouldParseSkeletons ? In(n) : {}
|
2943
2939
|
},
|
2944
2940
|
err: null
|
2945
2941
|
};
|
@@ -2987,7 +2983,7 @@ var Wn = (
|
|
2987
2983
|
break;
|
2988
2984
|
}
|
2989
2985
|
var h = _(i, this.clonePosition());
|
2990
|
-
return s ? (o *= n,
|
2986
|
+
return s ? (o *= n, kn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
2991
2987
|
}, e.prototype.offset = function() {
|
2992
2988
|
return this.position.offset;
|
2993
2989
|
}, e.prototype.isEOF = function() {
|
@@ -3002,7 +2998,7 @@ var Wn = (
|
|
3002
2998
|
var t = this.position.offset;
|
3003
2999
|
if (t >= this.message.length)
|
3004
3000
|
throw Error("out of bound");
|
3005
|
-
var r =
|
3001
|
+
var r = tr(this.message, t);
|
3006
3002
|
if (r === void 0)
|
3007
3003
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3008
3004
|
return r;
|
@@ -3021,7 +3017,7 @@ var Wn = (
|
|
3021
3017
|
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);
|
3022
3018
|
}
|
3023
3019
|
}, e.prototype.bumpIf = function(t) {
|
3024
|
-
if (
|
3020
|
+
if (pt(this.message, t, this.offset())) {
|
3025
3021
|
for (var r = 0; r < t.length; r++)
|
3026
3022
|
this.bump();
|
3027
3023
|
return !0;
|
@@ -3043,7 +3039,7 @@ var Wn = (
|
|
3043
3039
|
break;
|
3044
3040
|
}
|
3045
3041
|
}, e.prototype.bumpSpace = function() {
|
3046
|
-
for (; !this.isEOF() &&
|
3042
|
+
for (; !this.isEOF() && nr(this.char()); )
|
3047
3043
|
this.bump();
|
3048
3044
|
}, e.prototype.peek = function() {
|
3049
3045
|
if (this.isEOF())
|
@@ -3056,29 +3052,29 @@ var Wn = (
|
|
3056
3052
|
function Qe(e) {
|
3057
3053
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3058
3054
|
}
|
3059
|
-
function
|
3055
|
+
function Wn(e) {
|
3060
3056
|
return Qe(e) || e === 47;
|
3061
3057
|
}
|
3062
|
-
function
|
3058
|
+
function zn(e) {
|
3063
3059
|
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;
|
3064
3060
|
}
|
3065
|
-
function
|
3061
|
+
function nr(e) {
|
3066
3062
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3067
3063
|
}
|
3068
|
-
function
|
3064
|
+
function Zn(e) {
|
3069
3065
|
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;
|
3070
3066
|
}
|
3071
3067
|
function qe(e) {
|
3072
3068
|
e.forEach(function(t) {
|
3073
|
-
if (delete t.location,
|
3069
|
+
if (delete t.location, zt(t) || Zt(t))
|
3074
3070
|
for (var r in t.options)
|
3075
3071
|
delete t.options[r].location, qe(t.options[r].value);
|
3076
|
-
else
|
3072
|
+
else Vt(t) && qt(t.style) || (Xt(t) || Wt(t)) && Xe(t.style) ? delete t.style.location : Qt(t) && qe(t.children);
|
3077
3073
|
});
|
3078
3074
|
}
|
3079
|
-
function
|
3075
|
+
function Qn(e, t) {
|
3080
3076
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3081
|
-
var r = new
|
3077
|
+
var r = new Xn(e, t).parse();
|
3082
3078
|
if (r.err) {
|
3083
3079
|
var n = SyntaxError(y[r.err.kind]);
|
3084
3080
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
@@ -3101,7 +3097,7 @@ var Me = (
|
|
3101
3097
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3102
3098
|
}, t;
|
3103
3099
|
}(Error)
|
3104
|
-
),
|
3100
|
+
), yt = (
|
3105
3101
|
/** @class */
|
3106
3102
|
function(e) {
|
3107
3103
|
Be(t, e);
|
@@ -3110,7 +3106,7 @@ var Me = (
|
|
3110
3106
|
}
|
3111
3107
|
return t;
|
3112
3108
|
}(Me)
|
3113
|
-
),
|
3109
|
+
), qn = (
|
3114
3110
|
/** @class */
|
3115
3111
|
function(e) {
|
3116
3112
|
Be(t, e);
|
@@ -3119,7 +3115,7 @@ var Me = (
|
|
3119
3115
|
}
|
3120
3116
|
return t;
|
3121
3117
|
}(Me)
|
3122
|
-
),
|
3118
|
+
), Jn = (
|
3123
3119
|
/** @class */
|
3124
3120
|
function(e) {
|
3125
3121
|
Be(t, e);
|
@@ -3132,17 +3128,17 @@ var Me = (
|
|
3132
3128
|
(function(e) {
|
3133
3129
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3134
3130
|
})(O || (O = {}));
|
3135
|
-
function
|
3131
|
+
function Yn(e) {
|
3136
3132
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3137
3133
|
var n = t[t.length - 1];
|
3138
3134
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
3139
3135
|
}, []);
|
3140
3136
|
}
|
3141
|
-
function
|
3137
|
+
function Kn(e) {
|
3142
3138
|
return typeof e == "function";
|
3143
3139
|
}
|
3144
3140
|
function we(e, t, r, n, i, s, o) {
|
3145
|
-
if (e.length === 1 &&
|
3141
|
+
if (e.length === 1 && ct(e[0]))
|
3146
3142
|
return [
|
3147
3143
|
{
|
3148
3144
|
type: O.literal,
|
@@ -3151,14 +3147,14 @@ function we(e, t, r, n, i, s, o) {
|
|
3151
3147
|
];
|
3152
3148
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3153
3149
|
var u = l[h];
|
3154
|
-
if (
|
3150
|
+
if (ct(u)) {
|
3155
3151
|
a.push({
|
3156
3152
|
type: O.literal,
|
3157
3153
|
value: u.value
|
3158
3154
|
});
|
3159
3155
|
continue;
|
3160
3156
|
}
|
3161
|
-
if (
|
3157
|
+
if (En(u)) {
|
3162
3158
|
typeof s == "number" && a.push({
|
3163
3159
|
type: O.literal,
|
3164
3160
|
value: r.getNumberFormat(t).format(s)
|
@@ -3167,16 +3163,16 @@ function we(e, t, r, n, i, s, o) {
|
|
3167
3163
|
}
|
3168
3164
|
var m = u.value;
|
3169
3165
|
if (!(i && m in i))
|
3170
|
-
throw new
|
3166
|
+
throw new Jn(m, o);
|
3171
3167
|
var f = i[m];
|
3172
|
-
if (
|
3168
|
+
if (vn(u)) {
|
3173
3169
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3174
3170
|
type: typeof f == "string" ? O.literal : O.object,
|
3175
3171
|
value: f
|
3176
3172
|
});
|
3177
3173
|
continue;
|
3178
3174
|
}
|
3179
|
-
if (
|
3175
|
+
if (Xt(u)) {
|
3180
3176
|
var p = typeof u.style == "string" ? n.date[u.style] : Xe(u.style) ? u.style.parsedOptions : void 0;
|
3181
3177
|
a.push({
|
3182
3178
|
type: O.literal,
|
@@ -3184,7 +3180,7 @@ function we(e, t, r, n, i, s, o) {
|
|
3184
3180
|
});
|
3185
3181
|
continue;
|
3186
3182
|
}
|
3187
|
-
if (
|
3183
|
+
if (Wt(u)) {
|
3188
3184
|
var p = typeof u.style == "string" ? n.time[u.style] : Xe(u.style) ? u.style.parsedOptions : n.time.medium;
|
3189
3185
|
a.push({
|
3190
3186
|
type: O.literal,
|
@@ -3192,18 +3188,18 @@ function we(e, t, r, n, i, s, o) {
|
|
3192
3188
|
});
|
3193
3189
|
continue;
|
3194
3190
|
}
|
3195
|
-
if (
|
3196
|
-
var p = typeof u.style == "string" ? n.number[u.style] :
|
3191
|
+
if (Vt(u)) {
|
3192
|
+
var p = typeof u.style == "string" ? n.number[u.style] : qt(u.style) ? u.style.parsedOptions : void 0;
|
3197
3193
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3198
3194
|
type: O.literal,
|
3199
3195
|
value: r.getNumberFormat(t, p).format(f)
|
3200
3196
|
});
|
3201
3197
|
continue;
|
3202
3198
|
}
|
3203
|
-
if (
|
3199
|
+
if (Qt(u)) {
|
3204
3200
|
var g = u.children, b = u.value, d = i[b];
|
3205
|
-
if (!
|
3206
|
-
throw new
|
3201
|
+
if (!Kn(d))
|
3202
|
+
throw new qn(b, "function", o);
|
3207
3203
|
var C = we(g, t, r, n, i, s), x = d(C.map(function(D) {
|
3208
3204
|
return D.value;
|
3209
3205
|
}));
|
@@ -3214,14 +3210,14 @@ function we(e, t, r, n, i, s, o) {
|
|
3214
3210
|
};
|
3215
3211
|
}));
|
3216
3212
|
}
|
3217
|
-
if (
|
3213
|
+
if (zt(u)) {
|
3218
3214
|
var S = u.options[f] || u.options.other;
|
3219
3215
|
if (!S)
|
3220
|
-
throw new
|
3216
|
+
throw new yt(u.value, f, Object.keys(u.options), o);
|
3221
3217
|
a.push.apply(a, we(S.value, t, r, n, i));
|
3222
3218
|
continue;
|
3223
3219
|
}
|
3224
|
-
if (
|
3220
|
+
if (Zt(u)) {
|
3225
3221
|
var S = u.options["=".concat(f)];
|
3226
3222
|
if (!S) {
|
3227
3223
|
if (!Intl.PluralRules)
|
@@ -3232,21 +3228,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3232
3228
|
S = u.options[R] || u.options.other;
|
3233
3229
|
}
|
3234
3230
|
if (!S)
|
3235
|
-
throw new
|
3231
|
+
throw new yt(u.value, f, Object.keys(u.options), o);
|
3236
3232
|
a.push.apply(a, we(S.value, t, r, n, i, f - (u.offset || 0)));
|
3237
3233
|
continue;
|
3238
3234
|
}
|
3239
3235
|
}
|
3240
|
-
return
|
3236
|
+
return Yn(a);
|
3241
3237
|
}
|
3242
|
-
function
|
3238
|
+
function ei(e, t) {
|
3243
3239
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3244
3240
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
3245
3241
|
}, {})) : e;
|
3246
3242
|
}
|
3247
|
-
function
|
3243
|
+
function ti(e, t) {
|
3248
3244
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3249
|
-
return r[n] =
|
3245
|
+
return r[n] = ei(e[n], t[n]), r;
|
3250
3246
|
}, v({}, e)) : e;
|
3251
3247
|
}
|
3252
3248
|
function Ue(e) {
|
@@ -3263,7 +3259,7 @@ function Ue(e) {
|
|
3263
3259
|
}
|
3264
3260
|
};
|
3265
3261
|
}
|
3266
|
-
function
|
3262
|
+
function ri(e) {
|
3267
3263
|
return e === void 0 && (e = {
|
3268
3264
|
number: {},
|
3269
3265
|
dateTime: {},
|
@@ -3295,7 +3291,7 @@ function ni(e) {
|
|
3295
3291
|
})
|
3296
3292
|
};
|
3297
3293
|
}
|
3298
|
-
var
|
3294
|
+
var ni = (
|
3299
3295
|
/** @class */
|
3300
3296
|
function() {
|
3301
3297
|
function e(t, r, n, i) {
|
@@ -3327,13 +3323,13 @@ var ii = (
|
|
3327
3323
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3328
3324
|
var o = i || {};
|
3329
3325
|
o.formatters;
|
3330
|
-
var a =
|
3326
|
+
var a = fn(o, ["formatters"]);
|
3331
3327
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
3332
3328
|
} else
|
3333
3329
|
this.ast = t;
|
3334
3330
|
if (!Array.isArray(this.ast))
|
3335
3331
|
throw new TypeError("A message must be provided as a String or AST.");
|
3336
|
-
this.formats =
|
3332
|
+
this.formats = ti(e.formats, n), this.formatters = i && i.formatters || ri(this.formatterCache);
|
3337
3333
|
}
|
3338
3334
|
return Object.defineProperty(e, "defaultLocale", {
|
3339
3335
|
get: function() {
|
@@ -3346,7 +3342,7 @@ var ii = (
|
|
3346
3342
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3347
3343
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3348
3344
|
}
|
3349
|
-
}, e.__parse =
|
3345
|
+
}, e.__parse = Qn, e.formats = {
|
3350
3346
|
number: {
|
3351
3347
|
integer: {
|
3352
3348
|
maximumFractionDigits: 0
|
@@ -3407,7 +3403,7 @@ var ii = (
|
|
3407
3403
|
}, e;
|
3408
3404
|
}()
|
3409
3405
|
);
|
3410
|
-
function
|
3406
|
+
function ii(e, t) {
|
3411
3407
|
if (t == null)
|
3412
3408
|
return;
|
3413
3409
|
if (t in e)
|
@@ -3428,60 +3424,60 @@ function oi(e, t) {
|
|
3428
3424
|
n = void 0;
|
3429
3425
|
return n;
|
3430
3426
|
}
|
3431
|
-
const V = {},
|
3427
|
+
const V = {}, oi = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), ir = (e, t) => {
|
3432
3428
|
if (t == null)
|
3433
3429
|
return;
|
3434
3430
|
if (t in V && e in V[t])
|
3435
3431
|
return V[t][e];
|
3436
3432
|
const r = Ne(t);
|
3437
3433
|
for (let n = 0; n < r.length; n++) {
|
3438
|
-
const i = r[n], s =
|
3434
|
+
const i = r[n], s = ai(i, e);
|
3439
3435
|
if (s)
|
3440
|
-
return
|
3436
|
+
return oi(e, t, s);
|
3441
3437
|
}
|
3442
3438
|
};
|
3443
|
-
let
|
3439
|
+
let tt;
|
3444
3440
|
const se = Ie({});
|
3445
|
-
function
|
3446
|
-
return
|
3441
|
+
function si(e) {
|
3442
|
+
return tt[e] || null;
|
3447
3443
|
}
|
3448
|
-
function
|
3449
|
-
return e in
|
3444
|
+
function or(e) {
|
3445
|
+
return e in tt;
|
3450
3446
|
}
|
3451
|
-
function
|
3452
|
-
if (!
|
3447
|
+
function ai(e, t) {
|
3448
|
+
if (!or(e))
|
3453
3449
|
return null;
|
3454
|
-
const r =
|
3455
|
-
return
|
3450
|
+
const r = si(e);
|
3451
|
+
return ii(r, t);
|
3456
3452
|
}
|
3457
|
-
function
|
3453
|
+
function li(e) {
|
3458
3454
|
if (e == null)
|
3459
3455
|
return;
|
3460
3456
|
const t = Ne(e);
|
3461
3457
|
for (let r = 0; r < t.length; r++) {
|
3462
3458
|
const n = t[r];
|
3463
|
-
if (
|
3459
|
+
if (or(n))
|
3464
3460
|
return n;
|
3465
3461
|
}
|
3466
3462
|
}
|
3467
|
-
function
|
3468
|
-
delete V[e], se.update((r) => (r[e] =
|
3463
|
+
function sr(e, ...t) {
|
3464
|
+
delete V[e], se.update((r) => (r[e] = cn.all([r[e] || {}, ...t]), r));
|
3469
3465
|
}
|
3470
3466
|
oe(
|
3471
3467
|
[se],
|
3472
3468
|
([e]) => Object.keys(e)
|
3473
3469
|
);
|
3474
|
-
se.subscribe((e) =>
|
3470
|
+
se.subscribe((e) => tt = e);
|
3475
3471
|
const He = {};
|
3476
|
-
function
|
3472
|
+
function ui(e, t) {
|
3477
3473
|
He[e].delete(t), He[e].size === 0 && delete He[e];
|
3478
3474
|
}
|
3479
|
-
function
|
3475
|
+
function ar(e) {
|
3480
3476
|
return He[e];
|
3481
3477
|
}
|
3482
|
-
function
|
3478
|
+
function hi(e) {
|
3483
3479
|
return Ne(e).map((t) => {
|
3484
|
-
const r =
|
3480
|
+
const r = ar(t);
|
3485
3481
|
return [t, r ? [...r] : []];
|
3486
3482
|
}).filter(([, t]) => t.length > 0);
|
3487
3483
|
}
|
@@ -3489,31 +3485,31 @@ function Je(e) {
|
|
3489
3485
|
return e == null ? !1 : Ne(e).some(
|
3490
3486
|
(t) => {
|
3491
3487
|
var r;
|
3492
|
-
return (r =
|
3488
|
+
return (r = ar(t)) == null ? void 0 : r.size;
|
3493
3489
|
}
|
3494
3490
|
);
|
3495
3491
|
}
|
3496
|
-
function
|
3492
|
+
function ci(e, t) {
|
3497
3493
|
return Promise.all(
|
3498
|
-
t.map((n) => (
|
3499
|
-
).then((n) =>
|
3494
|
+
t.map((n) => (ui(e, n), n().then((i) => i.default || i)))
|
3495
|
+
).then((n) => sr(e, ...n));
|
3500
3496
|
}
|
3501
3497
|
const ue = {};
|
3502
|
-
function
|
3498
|
+
function lr(e) {
|
3503
3499
|
if (!Je(e))
|
3504
3500
|
return e in ue ? ue[e] : Promise.resolve();
|
3505
|
-
const t =
|
3501
|
+
const t = hi(e);
|
3506
3502
|
return ue[e] = Promise.all(
|
3507
3503
|
t.map(
|
3508
|
-
([r, n]) =>
|
3504
|
+
([r, n]) => ci(r, n)
|
3509
3505
|
)
|
3510
3506
|
).then(() => {
|
3511
3507
|
if (Je(e))
|
3512
|
-
return
|
3508
|
+
return lr(e);
|
3513
3509
|
delete ue[e];
|
3514
3510
|
}), ue[e];
|
3515
3511
|
}
|
3516
|
-
const
|
3512
|
+
const fi = {
|
3517
3513
|
number: {
|
3518
3514
|
scientific: { notation: "scientific" },
|
3519
3515
|
engineering: { notation: "engineering" },
|
@@ -3542,34 +3538,34 @@ const mi = {
|
|
3542
3538
|
timeZoneName: "short"
|
3543
3539
|
}
|
3544
3540
|
}
|
3545
|
-
},
|
3541
|
+
}, mi = {
|
3546
3542
|
fallbackLocale: null,
|
3547
3543
|
loadingDelay: 200,
|
3548
|
-
formats:
|
3544
|
+
formats: fi,
|
3549
3545
|
warnOnMissingMessages: !0,
|
3550
3546
|
handleMissingMessage: void 0,
|
3551
3547
|
ignoreTag: !0
|
3552
|
-
},
|
3548
|
+
}, di = mi;
|
3553
3549
|
function ie() {
|
3554
|
-
return
|
3550
|
+
return di;
|
3555
3551
|
}
|
3556
3552
|
const ke = Ie(!1);
|
3557
|
-
var
|
3558
|
-
for (var r in t)
|
3559
|
-
|
3560
|
-
if (
|
3561
|
-
for (var r of
|
3562
|
-
|
3553
|
+
var pi = Object.defineProperty, gi = Object.defineProperties, bi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vi = (e, t) => {
|
3554
|
+
for (var r in t || (t = {}))
|
3555
|
+
yi.call(t, r) && vt(e, r, t[r]);
|
3556
|
+
if (_t)
|
3557
|
+
for (var r of _t(t))
|
3558
|
+
_i.call(t, r) && vt(e, r, t[r]);
|
3563
3559
|
return e;
|
3564
|
-
},
|
3560
|
+
}, Ei = (e, t) => gi(e, bi(t));
|
3565
3561
|
let Ye;
|
3566
3562
|
const Te = Ie(null);
|
3567
|
-
function
|
3563
|
+
function Et(e) {
|
3568
3564
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3569
3565
|
}
|
3570
3566
|
function Ne(e, t = ie().fallbackLocale) {
|
3571
|
-
const r =
|
3572
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3567
|
+
const r = Et(e);
|
3568
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
3573
3569
|
}
|
3574
3570
|
function Q() {
|
3575
3571
|
return Ye ?? void 0;
|
@@ -3577,22 +3573,22 @@ function Q() {
|
|
3577
3573
|
Te.subscribe((e) => {
|
3578
3574
|
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3579
3575
|
});
|
3580
|
-
const
|
3581
|
-
if (e &&
|
3576
|
+
const xi = (e) => {
|
3577
|
+
if (e && li(e) && Je(e)) {
|
3582
3578
|
const { loadingDelay: t } = ie();
|
3583
3579
|
let r;
|
3584
3580
|
return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
|
3585
3581
|
() => ke.set(!0),
|
3586
3582
|
t
|
3587
|
-
) : ke.set(!0),
|
3583
|
+
) : ke.set(!0), lr(e).then(() => {
|
3588
3584
|
Te.set(e);
|
3589
3585
|
}).finally(() => {
|
3590
3586
|
clearTimeout(r), ke.set(!1);
|
3591
3587
|
});
|
3592
3588
|
}
|
3593
3589
|
return Te.set(e);
|
3594
|
-
}, X =
|
3595
|
-
set:
|
3590
|
+
}, X = Ei(vi({}, Te), {
|
3591
|
+
set: xi
|
3596
3592
|
}), Pe = (e) => {
|
3597
3593
|
const t = /* @__PURE__ */ Object.create(null);
|
3598
3594
|
return (n) => {
|
@@ -3600,20 +3596,20 @@ const Ci = (e) => {
|
|
3600
3596
|
return i in t ? t[i] : t[i] = e(n);
|
3601
3597
|
};
|
3602
3598
|
};
|
3603
|
-
var
|
3599
|
+
var Ci = Object.defineProperty, Ae = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
3604
3600
|
for (var r in t || (t = {}))
|
3605
|
-
|
3601
|
+
ur.call(t, r) && xt(e, r, t[r]);
|
3606
3602
|
if (Ae)
|
3607
3603
|
for (var r of Ae(t))
|
3608
|
-
|
3604
|
+
hr.call(t, r) && xt(e, r, t[r]);
|
3609
3605
|
return e;
|
3610
3606
|
}, ae = (e, t) => {
|
3611
3607
|
var r = {};
|
3612
3608
|
for (var n in e)
|
3613
|
-
|
3609
|
+
ur.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3614
3610
|
if (e != null && Ae)
|
3615
3611
|
for (var n of Ae(e))
|
3616
|
-
t.indexOf(n) < 0 &&
|
3612
|
+
t.indexOf(n) < 0 && hr.call(e, n) && (r[n] = e[n]);
|
3617
3613
|
return r;
|
3618
3614
|
};
|
3619
3615
|
const pe = (e, t) => {
|
@@ -3621,21 +3617,21 @@ const pe = (e, t) => {
|
|
3621
3617
|
if (e in r && t in r[e])
|
3622
3618
|
return r[e][t];
|
3623
3619
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3624
|
-
},
|
3620
|
+
}, wi = Pe(
|
3625
3621
|
(e) => {
|
3626
3622
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
3627
3623
|
if (r == null)
|
3628
3624
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3629
3625
|
return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
|
3630
3626
|
}
|
3631
|
-
),
|
3627
|
+
), Hi = Pe(
|
3632
3628
|
(e) => {
|
3633
3629
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
3634
3630
|
if (r == null)
|
3635
3631
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3636
3632
|
return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
|
3637
3633
|
}
|
3638
|
-
),
|
3634
|
+
), Si = Pe(
|
3639
3635
|
(e) => {
|
3640
3636
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
3641
3637
|
if (r == null)
|
@@ -3644,33 +3640,33 @@ const pe = (e, t) => {
|
|
3644
3640
|
);
|
3645
3641
|
return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
|
3646
3642
|
}
|
3647
|
-
),
|
3643
|
+
), Ti = (e = {}) => {
|
3648
3644
|
var t = e, {
|
3649
3645
|
locale: r = Q()
|
3650
3646
|
} = t, n = ae(t, [
|
3651
3647
|
"locale"
|
3652
3648
|
]);
|
3653
|
-
return
|
3654
|
-
},
|
3649
|
+
return wi(rt({ locale: r }, n));
|
3650
|
+
}, Ai = (e = {}) => {
|
3655
3651
|
var t = e, {
|
3656
3652
|
locale: r = Q()
|
3657
3653
|
} = t, n = ae(t, [
|
3658
3654
|
"locale"
|
3659
3655
|
]);
|
3660
|
-
return
|
3661
|
-
},
|
3656
|
+
return Hi(rt({ locale: r }, n));
|
3657
|
+
}, Ii = (e = {}) => {
|
3662
3658
|
var t = e, {
|
3663
3659
|
locale: r = Q()
|
3664
3660
|
} = t, n = ae(t, [
|
3665
3661
|
"locale"
|
3666
3662
|
]);
|
3667
|
-
return
|
3668
|
-
},
|
3663
|
+
return Si(rt({ locale: r }, n));
|
3664
|
+
}, Bi = Pe(
|
3669
3665
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3670
|
-
(e, t = Q()) => new
|
3666
|
+
(e, t = Q()) => new ni(e, t, ie().formats, {
|
3671
3667
|
ignoreTag: ie().ignoreTag
|
3672
3668
|
})
|
3673
|
-
),
|
3669
|
+
), Mi = (e, t = {}) => {
|
3674
3670
|
var r, n, i, s;
|
3675
3671
|
let o = t;
|
3676
3672
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -3683,7 +3679,7 @@ const pe = (e, t) => {
|
|
3683
3679
|
throw new Error(
|
3684
3680
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3685
3681
|
);
|
3686
|
-
let u =
|
3682
|
+
let u = ir(e, h);
|
3687
3683
|
if (!u)
|
3688
3684
|
u = (s = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
3689
3685
|
else if (typeof u != "string")
|
@@ -3694,7 +3690,7 @@ const pe = (e, t) => {
|
|
3694
3690
|
return u;
|
3695
3691
|
let m = u;
|
3696
3692
|
try {
|
3697
|
-
m =
|
3693
|
+
m = Bi(u, h).format(a);
|
3698
3694
|
} catch (f) {
|
3699
3695
|
f instanceof Error && console.warn(
|
3700
3696
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3702,24 +3698,24 @@ const pe = (e, t) => {
|
|
3702
3698
|
);
|
3703
3699
|
}
|
3704
3700
|
return m;
|
3705
|
-
},
|
3706
|
-
oe([X, se], () =>
|
3701
|
+
}, Ni = (e, t) => Ii(t).format(e), Pi = (e, t) => Ai(t).format(e), Oi = (e, t) => Ti(t).format(e), Li = (e, t = Q()) => ir(e, t);
|
3702
|
+
oe([X, se], () => Mi);
|
3703
|
+
oe([X], () => Ni);
|
3707
3704
|
oe([X], () => Pi);
|
3708
3705
|
oe([X], () => Oi);
|
3709
|
-
oe([X], () => Li);
|
3710
|
-
|
3711
|
-
function Ri({ withLocale: e, translations: t }) {
|
3706
|
+
oe([X, se], () => Li);
|
3707
|
+
function Fi({ withLocale: e, translations: t }) {
|
3712
3708
|
X.subscribe((r) => {
|
3713
3709
|
r == null && (se.set(t), X.set(e));
|
3714
3710
|
});
|
3715
3711
|
}
|
3716
|
-
function
|
3717
|
-
|
3712
|
+
function Ct(e, t) {
|
3713
|
+
sr(e, t);
|
3718
3714
|
}
|
3719
|
-
function
|
3715
|
+
function Ri(e) {
|
3720
3716
|
X.set(e);
|
3721
3717
|
}
|
3722
|
-
const
|
3718
|
+
const wt = {
|
3723
3719
|
en: {
|
3724
3720
|
login: "Login",
|
3725
3721
|
register: "Register",
|
@@ -3776,22 +3772,22 @@ const Ht = {
|
|
3776
3772
|
deposit: "Deposit"
|
3777
3773
|
}
|
3778
3774
|
};
|
3779
|
-
function
|
3780
|
-
|
3775
|
+
function Di(e) {
|
3776
|
+
Ar(e, "svelte-1lgwoo3", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
|
3781
3777
|
}
|
3782
|
-
function
|
3778
|
+
function Ht(e, t, r) {
|
3783
3779
|
const n = e.slice();
|
3784
3780
|
return n[49] = t[r], n[51] = r, n;
|
3785
3781
|
}
|
3786
|
-
function
|
3782
|
+
function St(e, t, r) {
|
3787
3783
|
const n = e.slice();
|
3788
3784
|
return n[52] = t[r], n;
|
3789
3785
|
}
|
3790
|
-
function
|
3786
|
+
function Tt(e, t, r) {
|
3791
3787
|
const n = e.slice();
|
3792
3788
|
return n[55] = t[r], n[57] = r, n;
|
3793
3789
|
}
|
3794
|
-
function
|
3790
|
+
function At(e) {
|
3795
3791
|
let t = [], r = /* @__PURE__ */ new Map(), n, i = ee(
|
3796
3792
|
/*sliderdata*/
|
3797
3793
|
e[9]
|
@@ -3801,8 +3797,8 @@ function It(e) {
|
|
3801
3797
|
o[49].id
|
3802
3798
|
);
|
3803
3799
|
for (let o = 0; o < i.length; o += 1) {
|
3804
|
-
let a =
|
3805
|
-
r.set(h, t[o] =
|
3800
|
+
let a = Ht(e, i, o), h = s(a);
|
3801
|
+
r.set(h, t[o] = Ot(h, a));
|
3806
3802
|
}
|
3807
3803
|
return {
|
3808
3804
|
c() {
|
@@ -3820,7 +3816,7 @@ function It(e) {
|
|
3820
3816
|
77775 && (i = ee(
|
3821
3817
|
/*sliderdata*/
|
3822
3818
|
o[9]
|
3823
|
-
), t =
|
3819
|
+
), t = Gt(t, a, s, 1, o, i, r, n.parentNode, Dt, Ot, n, Ht));
|
3824
3820
|
},
|
3825
3821
|
d(o) {
|
3826
3822
|
o && F(n);
|
@@ -3829,7 +3825,7 @@ function It(e) {
|
|
3829
3825
|
}
|
3830
3826
|
};
|
3831
3827
|
}
|
3832
|
-
function
|
3828
|
+
function Gi(e) {
|
3833
3829
|
let t, r = (
|
3834
3830
|
/*category*/
|
3835
3831
|
e[49].name + ""
|
@@ -3851,7 +3847,7 @@ function Ui(e) {
|
|
3851
3847
|
}
|
3852
3848
|
};
|
3853
3849
|
}
|
3854
|
-
function
|
3850
|
+
function Ui(e) {
|
3855
3851
|
let t, r = (
|
3856
3852
|
/*category*/
|
3857
3853
|
e[49].label + ""
|
@@ -3876,11 +3872,11 @@ function ki(e) {
|
|
3876
3872
|
}
|
3877
3873
|
};
|
3878
3874
|
}
|
3879
|
-
function
|
3875
|
+
function It(e) {
|
3880
3876
|
let t, r = (
|
3881
3877
|
/*subGroupsData*/
|
3882
3878
|
e[10].length > 0 && /*showsubgroups*/
|
3883
|
-
e[2] == "true" &&
|
3879
|
+
e[2] == "true" && Bt(e)
|
3884
3880
|
);
|
3885
3881
|
return {
|
3886
3882
|
c() {
|
@@ -3892,20 +3888,20 @@ function Bt(e) {
|
|
3892
3888
|
p(n, i) {
|
3893
3889
|
/*subGroupsData*/
|
3894
3890
|
n[10].length > 0 && /*showsubgroups*/
|
3895
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3891
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3896
3892
|
},
|
3897
3893
|
d(n) {
|
3898
3894
|
n && F(t), r && r.d(n);
|
3899
3895
|
}
|
3900
3896
|
};
|
3901
3897
|
}
|
3902
|
-
function
|
3898
|
+
function Bt(e) {
|
3903
3899
|
let t, r = ee(
|
3904
3900
|
/*subGroupsData*/
|
3905
3901
|
e[10]
|
3906
3902
|
), n = [];
|
3907
3903
|
for (let i = 0; i < r.length; i += 1)
|
3908
|
-
n[i] =
|
3904
|
+
n[i] = Pt(St(e, r, i));
|
3909
3905
|
return {
|
3910
3906
|
c() {
|
3911
3907
|
t = B("ul");
|
@@ -3927,8 +3923,8 @@ function Mt(e) {
|
|
3927
3923
|
);
|
3928
3924
|
let o;
|
3929
3925
|
for (o = 0; o < r.length; o += 1) {
|
3930
|
-
const a =
|
3931
|
-
n[o] ? n[o].p(a, s) : (n[o] =
|
3926
|
+
const a = St(i, r, o);
|
3927
|
+
n[o] ? n[o].p(a, s) : (n[o] = Pt(a), n[o].c(), n[o].m(t, null));
|
3932
3928
|
}
|
3933
3929
|
for (; o < n.length; o += 1)
|
3934
3930
|
n[o].d(1);
|
@@ -3936,11 +3932,11 @@ function Mt(e) {
|
|
3936
3932
|
}
|
3937
3933
|
},
|
3938
3934
|
d(i) {
|
3939
|
-
i && F(t),
|
3935
|
+
i && F(t), Mr(n, i);
|
3940
3936
|
}
|
3941
3937
|
};
|
3942
3938
|
}
|
3943
|
-
function
|
3939
|
+
function Mt(e) {
|
3944
3940
|
let t, r, n = (
|
3945
3941
|
/*subGroupItem*/
|
3946
3942
|
e[55]?.name + ""
|
@@ -3991,11 +3987,11 @@ function Nt(e) {
|
|
3991
3987
|
}
|
3992
3988
|
};
|
3993
3989
|
}
|
3994
|
-
function
|
3990
|
+
function Nt(e, t) {
|
3995
3991
|
let r, n, i = (
|
3996
3992
|
/*index*/
|
3997
3993
|
t[51] == /*subGroup*/
|
3998
|
-
t[52].index &&
|
3994
|
+
t[52].index && Mt(t)
|
3999
3995
|
);
|
4000
3996
|
return {
|
4001
3997
|
key: e,
|
@@ -4009,14 +4005,14 @@ function Pt(e, t) {
|
|
4009
4005
|
p(s, o) {
|
4010
4006
|
t = s, /*index*/
|
4011
4007
|
t[51] == /*subGroup*/
|
4012
|
-
t[52].index ? i ? i.p(t, o) : (i =
|
4008
|
+
t[52].index ? i ? i.p(t, o) : (i = Mt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4013
4009
|
},
|
4014
4010
|
d(s) {
|
4015
4011
|
s && (F(r), F(n)), i && i.d(s);
|
4016
4012
|
}
|
4017
4013
|
};
|
4018
4014
|
}
|
4019
|
-
function
|
4015
|
+
function Pt(e) {
|
4020
4016
|
let t = [], r = /* @__PURE__ */ new Map(), n, i = ee(
|
4021
4017
|
/*subGroup*/
|
4022
4018
|
e[52].items
|
@@ -4026,8 +4022,8 @@ function Ot(e) {
|
|
4026
4022
|
o[55].id
|
4027
4023
|
);
|
4028
4024
|
for (let o = 0; o < i.length; o += 1) {
|
4029
|
-
let a =
|
4030
|
-
r.set(h, t[o] =
|
4025
|
+
let a = Tt(e, i, o), h = s(a);
|
4026
|
+
r.set(h, t[o] = Nt(h, a));
|
4031
4027
|
}
|
4032
4028
|
return {
|
4033
4029
|
c() {
|
@@ -4045,7 +4041,7 @@ function Ot(e) {
|
|
4045
4041
|
10176 && (i = ee(
|
4046
4042
|
/*subGroup*/
|
4047
4043
|
o[52].items
|
4048
|
-
), t =
|
4044
|
+
), t = Gt(t, a, s, 1, o, i, r, n.parentNode, Dt, Nt, n, Tt));
|
4049
4045
|
},
|
4050
4046
|
d(o) {
|
4051
4047
|
o && F(n);
|
@@ -4054,12 +4050,12 @@ function Ot(e) {
|
|
4054
4050
|
}
|
4055
4051
|
};
|
4056
4052
|
}
|
4057
|
-
function
|
4053
|
+
function Ot(e, t) {
|
4058
4054
|
let r, n, i, s, o, a, h, l, u, m, f;
|
4059
4055
|
function p(x, S) {
|
4060
4056
|
return (
|
4061
4057
|
/*location*/
|
4062
|
-
x[0] === "headerMain" ?
|
4058
|
+
x[0] === "headerMain" ? Ui : Gi
|
4063
4059
|
);
|
4064
4060
|
}
|
4065
4061
|
let g = p(t), b = g(t), d = (
|
@@ -4067,7 +4063,7 @@ function Lt(e, t) {
|
|
4067
4063
|
t[11][
|
4068
4064
|
/*index*/
|
4069
4065
|
t[51]
|
4070
|
-
] == !0 &&
|
4066
|
+
] == !0 && It(t)
|
4071
4067
|
);
|
4072
4068
|
function C(...x) {
|
4073
4069
|
return (
|
@@ -4086,7 +4082,7 @@ function Lt(e, t) {
|
|
4086
4082
|
first: null,
|
4087
4083
|
c() {
|
4088
4084
|
r = B("li"), n = B("div"), i = B("img"), a = z(), b.c(), h = z(), d && d.c(), l = z(), H(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
|
4089
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
4085
|
+
(t[3] === "true" ? "" : "DisplayNone")), lt(i.src, o = /*handleSrc*/
|
4090
4086
|
t[16](
|
4091
4087
|
/*category*/
|
4092
4088
|
t[49]
|
@@ -4109,7 +4105,7 @@ function Lt(e, t) {
|
|
4109
4105
|
t = x, S[0] & /*categoriesicon*/
|
4110
4106
|
8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
|
4111
4107
|
(t[3] === "true" ? "" : "DisplayNone")) && H(i, "class", s), S[0] & /*sliderdata*/
|
4112
|
-
512 && !
|
4108
|
+
512 && !lt(i.src, o = /*handleSrc*/
|
4113
4109
|
t[16](
|
4114
4110
|
/*category*/
|
4115
4111
|
t[49]
|
@@ -4117,7 +4113,7 @@ function Lt(e, t) {
|
|
4117
4113
|
t[11][
|
4118
4114
|
/*index*/
|
4119
4115
|
t[51]
|
4120
|
-
] == !0 ? d ? d.p(t, S) : (d =
|
4116
|
+
] == !0 ? d ? d.p(t, S) : (d = It(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), S[0] & /*activeindex, sliderdata, location*/
|
4121
4117
|
515 && u !== (u = "CarouselItem " + /*activeindex*/
|
4122
4118
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4123
4119
|
/*activeindex*/
|
@@ -4135,10 +4131,10 @@ function Lt(e, t) {
|
|
4135
4131
|
}
|
4136
4132
|
};
|
4137
4133
|
}
|
4138
|
-
function
|
4134
|
+
function ki(e) {
|
4139
4135
|
let t, r, n, i, s, o, a, h, l, u, m, f, p, g, b, d = (
|
4140
4136
|
/*sliderdata*/
|
4141
|
-
e[9].length > 0 &&
|
4137
|
+
e[9].length > 0 && At(e)
|
4142
4138
|
);
|
4143
4139
|
return {
|
4144
4140
|
c() {
|
@@ -4165,7 +4161,7 @@ function $i(e) {
|
|
4165
4161
|
},
|
4166
4162
|
p(C, x) {
|
4167
4163
|
/*sliderdata*/
|
4168
|
-
C[9].length > 0 ? d ? d.p(C, x) : (d =
|
4164
|
+
C[9].length > 0 ? d ? d.p(C, x) : (d = At(C), d.c(), d.m(o, null)) : d && (d.d(1), d = null), x[0] & /*location*/
|
4169
4165
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4170
4166
|
C[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && H(r, "class", m), x[0] & /*location*/
|
4171
4167
|
1 && f !== (f = /*location*/
|
@@ -4180,20 +4176,20 @@ function $i(e) {
|
|
4180
4176
|
}
|
4181
4177
|
};
|
4182
4178
|
}
|
4183
|
-
function
|
4179
|
+
function $i(e, t, r) {
|
4184
4180
|
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: C = "false" } = t, { categoriesicon: x = "false" } = t, { lobbyiconimage: S = "" } = t, { mygamesiconimage: R = "" } = t;
|
4185
|
-
|
4181
|
+
Fi({ withLocale: "en", translations: {} });
|
4186
4182
|
const D = () => {
|
4187
4183
|
fetch(f).then((E) => E.json()).then((E) => {
|
4188
4184
|
Object.keys(E).forEach((N) => {
|
4189
|
-
|
4185
|
+
Ct(N, E[N]);
|
4190
4186
|
});
|
4191
4187
|
}).catch((E) => {
|
4192
4188
|
console.log(E);
|
4193
4189
|
});
|
4194
4190
|
};
|
4195
|
-
Object.keys(
|
4196
|
-
|
4191
|
+
Object.keys(wt).forEach((c) => {
|
4192
|
+
Ct(c, wt[c]);
|
4197
4193
|
});
|
4198
4194
|
let P, w, M, L, G, le = [], be = [], ye = [], $, Oe = (c, E, N, W, j) => {
|
4199
4195
|
if (!(c.subGroups && W === null)) {
|
@@ -4223,18 +4219,18 @@ function ji(e, t, r) {
|
|
4223
4219
|
window.location.href
|
4224
4220
|
);
|
4225
4221
|
}
|
4226
|
-
},
|
4222
|
+
}, nt = () => {
|
4227
4223
|
$.scrollBy({ left: -250, behavior: "smooth" });
|
4228
|
-
},
|
4224
|
+
}, it = () => {
|
4229
4225
|
$.scrollBy({ left: 250, behavior: "smooth" });
|
4230
4226
|
};
|
4231
|
-
const
|
4232
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9, le = c.data.data), r(11, ye = new Array(le.length).fill(!1)), C == "true" &&
|
4227
|
+
const ot = (c) => {
|
4228
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, le = c.data.data), r(11, ye = new Array(le.length).fill(!1)), C == "true" && mr()), c.data.type == "GoToHomepage" && le.forEach((E, N) => {
|
4233
4229
|
E.path.endsWith("/casino") && (r(6, w = N), r(6, w));
|
4234
4230
|
});
|
4235
|
-
},
|
4236
|
-
|
4237
|
-
},
|
4231
|
+
}, cr = () => {
|
4232
|
+
Ri(b);
|
4233
|
+
}, fr = (c, E, N) => {
|
4238
4234
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4239
4235
|
let W = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4240
4236
|
fetch(W.href).then((j) => j.json()).then((j) => {
|
@@ -4248,8 +4244,8 @@ function ji(e, t, r) {
|
|
4248
4244
|
window.location.href
|
4249
4245
|
);
|
4250
4246
|
const ve = [];
|
4251
|
-
be.map((
|
4252
|
-
ve.find((
|
4247
|
+
be.map((wr) => (wr.items.forEach((st) => {
|
4248
|
+
ve.find((Hr) => st.id == Hr) || ve.push(st.id);
|
4253
4249
|
}), ve.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: ve }, window.location.href);
|
4254
4250
|
}).then(() => {
|
4255
4251
|
P.querySelectorAll(".DropDown") && _e();
|
@@ -4262,14 +4258,14 @@ function ji(e, t, r) {
|
|
4262
4258
|
for (let E = 0; E < c.length; E++)
|
4263
4259
|
c[E].style.transform = "translateX(-" + $.scrollLeft + "px)";
|
4264
4260
|
$.classList.remove("isScrolling");
|
4265
|
-
},
|
4261
|
+
}, mr = () => {
|
4266
4262
|
le.forEach((c, E) => {
|
4267
|
-
c?.subGroups?.count > 0 && (r(11, ye[E] = !0, ye),
|
4263
|
+
c?.subGroups?.count > 0 && (r(11, ye[E] = !0, ye), fr(c, E));
|
4268
4264
|
});
|
4269
|
-
},
|
4265
|
+
}, dr = () => {
|
4270
4266
|
let c = document.createElement("style");
|
4271
4267
|
c.innerHTML = l, G.appendChild(c);
|
4272
|
-
},
|
4268
|
+
}, pr = () => {
|
4273
4269
|
let c = document.createElement("style"), E = new URL(u);
|
4274
4270
|
fetch(E.href).then((N) => N.text()).then((N) => {
|
4275
4271
|
c.innerHTML = N, setTimeout(
|
@@ -4279,35 +4275,35 @@ function ji(e, t, r) {
|
|
4279
4275
|
1
|
4280
4276
|
);
|
4281
4277
|
});
|
4282
|
-
},
|
4278
|
+
}, gr = (c) => {
|
4283
4279
|
let E = "";
|
4284
4280
|
return c.id === "LOBBY" ? E = S : c.id === "MYGAMES" && (E = R), c.icon || E;
|
4285
4281
|
};
|
4286
|
-
|
4282
|
+
Lr(() => (window.addEventListener("message", ot, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4287
4283
|
() => {
|
4288
4284
|
$.addEventListener("scroll", _e);
|
4289
4285
|
},
|
4290
4286
|
500
|
4291
4287
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4292
|
-
window.removeEventListener("message",
|
4288
|
+
window.removeEventListener("message", ot), P.removeEventListener("scroll", _e);
|
4293
4289
|
}));
|
4294
|
-
const
|
4290
|
+
const br = () => nt(), yr = (c, E, N, W, j) => {
|
4295
4291
|
Oe(c, E, N, W, "secondary"), j.stopPropagation();
|
4296
|
-
},
|
4292
|
+
}, _r = (c, E, N) => {
|
4297
4293
|
Oe(c, E, null, null, "main"), N.preventDefault();
|
4298
4294
|
};
|
4299
|
-
function
|
4295
|
+
function vr(c) {
|
4300
4296
|
ce[c ? "unshift" : "push"](() => {
|
4301
4297
|
P = c, r(5, P);
|
4302
4298
|
});
|
4303
4299
|
}
|
4304
|
-
function
|
4300
|
+
function Er(c) {
|
4305
4301
|
ce[c ? "unshift" : "push"](() => {
|
4306
4302
|
$ = c, r(12, $);
|
4307
4303
|
});
|
4308
4304
|
}
|
4309
|
-
const
|
4310
|
-
function
|
4305
|
+
const xr = () => it();
|
4306
|
+
function Cr(c) {
|
4311
4307
|
ce[c ? "unshift" : "push"](() => {
|
4312
4308
|
G = c, r(4, G);
|
4313
4309
|
});
|
@@ -4318,9 +4314,9 @@ function ji(e, t, r) {
|
|
4318
4314
|
e.$$.dirty[0] & /*activeindex*/
|
4319
4315
|
2, e.$$.dirty[0] & /*translationurl*/
|
4320
4316
|
33554432 && f && D(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4321
|
-
4194320 && l && G &&
|
4322
|
-
8388624 && u && G &&
|
4323
|
-
268435456 && b &&
|
4317
|
+
4194320 && l && G && dr(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4318
|
+
8388624 && u && G && pr(), e.$$.dirty[0] & /*lang*/
|
4319
|
+
268435456 && b && cr();
|
4324
4320
|
}, [
|
4325
4321
|
h,
|
4326
4322
|
d,
|
@@ -4336,9 +4332,9 @@ function ji(e, t, r) {
|
|
4336
4332
|
ye,
|
4337
4333
|
$,
|
4338
4334
|
Oe,
|
4335
|
+
nt,
|
4339
4336
|
it,
|
4340
|
-
|
4341
|
-
br,
|
4337
|
+
gr,
|
4342
4338
|
n,
|
4343
4339
|
i,
|
4344
4340
|
s,
|
@@ -4353,23 +4349,23 @@ function ji(e, t, r) {
|
|
4353
4349
|
b,
|
4354
4350
|
S,
|
4355
4351
|
R,
|
4352
|
+
br,
|
4356
4353
|
yr,
|
4357
4354
|
_r,
|
4358
4355
|
vr,
|
4359
4356
|
Er,
|
4360
4357
|
xr,
|
4361
|
-
Cr
|
4362
|
-
wr
|
4358
|
+
Cr
|
4363
4359
|
];
|
4364
4360
|
}
|
4365
|
-
class
|
4361
|
+
class ji extends Wr {
|
4366
4362
|
constructor(t) {
|
4367
|
-
super(),
|
4363
|
+
super(), Vr(
|
4368
4364
|
this,
|
4369
4365
|
t,
|
4370
|
-
ji,
|
4371
4366
|
$i,
|
4372
|
-
|
4367
|
+
ki,
|
4368
|
+
Ft,
|
4373
4369
|
{
|
4374
4370
|
endpoint: 17,
|
4375
4371
|
datasource: 18,
|
@@ -4390,7 +4386,7 @@ class Vi extends zr {
|
|
4390
4386
|
lobbyiconimage: 29,
|
4391
4387
|
mygamesiconimage: 30
|
4392
4388
|
},
|
4393
|
-
|
4389
|
+
Di,
|
4394
4390
|
[-1, -1]
|
4395
4391
|
);
|
4396
4392
|
}
|
@@ -4503,7 +4499,7 @@ class Vi extends zr {
|
|
4503
4499
|
this.$$set({ mygamesiconimage: t }), A();
|
4504
4500
|
}
|
4505
4501
|
}
|
4506
|
-
|
4502
|
+
Xr(ji, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
4507
4503
|
export {
|
4508
|
-
|
4504
|
+
ji as C
|
4509
4505
|
};
|