@everymatrix/casino-slider 1.59.2 → 1.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoSlider-mJFWsMq5.cjs → CasinoSlider-0iFlMggk.cjs} +3 -3
- package/components/{CasinoSlider-ClyLSUZL.js → CasinoSlider-OUZcTpfW.js} +255 -255
- package/components/{CasinoSlider-CDNb0RJP.js → CasinoSlider-xL4TKs9S.js} +267 -267
- package/es2015/casino-slider.cjs +1 -1
- package/es2015/casino-slider.js +1 -1
- package/esnext/casino-slider.js +1 -1
- package/package.json +2 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
function
|
1
|
+
function G() {
|
2
2
|
}
|
3
3
|
function Dt(e) {
|
4
4
|
return e();
|
@@ -26,7 +26,7 @@ function Ar(e, ...t) {
|
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
29
|
-
return
|
29
|
+
return G;
|
30
30
|
}
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
@@ -37,7 +37,7 @@ function B(e, t) {
|
|
37
37
|
function Br(e, t, r) {
|
38
38
|
const n = Ir(e);
|
39
39
|
if (!n.getElementById(t)) {
|
40
|
-
const i =
|
40
|
+
const i = N("style");
|
41
41
|
i.id = t, i.textContent = r, Mr(n, i);
|
42
42
|
}
|
43
43
|
}
|
@@ -58,27 +58,27 @@ function Mr(e, t) {
|
|
58
58
|
t
|
59
59
|
), t.sheet;
|
60
60
|
}
|
61
|
-
function
|
61
|
+
function U(e, t, r) {
|
62
62
|
e.insertBefore(t, r || null);
|
63
63
|
}
|
64
|
-
function
|
64
|
+
function F(e) {
|
65
65
|
e.parentNode && e.parentNode.removeChild(e);
|
66
66
|
}
|
67
67
|
function Nr(e, t) {
|
68
68
|
for (let r = 0; r < e.length; r += 1)
|
69
69
|
e[r] && e[r].d(t);
|
70
70
|
}
|
71
|
-
function
|
71
|
+
function N(e) {
|
72
72
|
return document.createElement(e);
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function ye(e) {
|
75
75
|
return document.createTextNode(e);
|
76
76
|
}
|
77
77
|
function Z() {
|
78
|
-
return
|
78
|
+
return ye(" ");
|
79
79
|
}
|
80
|
-
function
|
81
|
-
return
|
80
|
+
function de() {
|
81
|
+
return ye("");
|
82
82
|
}
|
83
83
|
function Te(e, t, r, n) {
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
@@ -86,14 +86,14 @@ function Te(e, t, r, n) {
|
|
86
86
|
function S(e, t, r) {
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function Lr(e) {
|
90
90
|
return Array.from(e.childNodes);
|
91
91
|
}
|
92
92
|
function tt(e, t) {
|
93
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
94
94
|
t);
|
95
95
|
}
|
96
|
-
function
|
96
|
+
function Pr(e) {
|
97
97
|
const t = {};
|
98
98
|
return e.childNodes.forEach(
|
99
99
|
/** @param {Element} node */
|
@@ -102,54 +102,54 @@ function Lr(e) {
|
|
102
102
|
}
|
103
103
|
), t;
|
104
104
|
}
|
105
|
-
let
|
106
|
-
function
|
107
|
-
|
105
|
+
let pe;
|
106
|
+
function fe(e) {
|
107
|
+
pe = e;
|
108
108
|
}
|
109
109
|
function Or() {
|
110
|
-
if (!
|
110
|
+
if (!pe)
|
111
111
|
throw new Error("Function called outside component initialization");
|
112
|
-
return
|
112
|
+
return pe;
|
113
113
|
}
|
114
114
|
function Fr(e) {
|
115
115
|
Or().$$.on_mount.push(e);
|
116
116
|
}
|
117
|
-
const
|
118
|
-
let
|
117
|
+
const ee = [], me = [];
|
118
|
+
let te = [];
|
119
119
|
const ft = [], Rr = /* @__PURE__ */ Promise.resolve();
|
120
120
|
let je = !1;
|
121
121
|
function Dr() {
|
122
122
|
je || (je = !0, Rr.then(A));
|
123
123
|
}
|
124
124
|
function Ve(e) {
|
125
|
-
|
125
|
+
te.push(e);
|
126
126
|
}
|
127
127
|
const Fe = /* @__PURE__ */ new Set();
|
128
|
-
let
|
128
|
+
let Y = 0;
|
129
129
|
function A() {
|
130
|
-
if (
|
130
|
+
if (Y !== 0)
|
131
131
|
return;
|
132
|
-
const e =
|
132
|
+
const e = pe;
|
133
133
|
do {
|
134
134
|
try {
|
135
|
-
for (;
|
136
|
-
const t =
|
137
|
-
|
135
|
+
for (; Y < ee.length; ) {
|
136
|
+
const t = ee[Y];
|
137
|
+
Y++, fe(t), Ur(t.$$);
|
138
138
|
}
|
139
139
|
} catch (t) {
|
140
|
-
throw
|
140
|
+
throw ee.length = 0, Y = 0, t;
|
141
141
|
}
|
142
|
-
for (
|
143
|
-
|
144
|
-
for (let t = 0; t <
|
145
|
-
const r =
|
142
|
+
for (fe(null), ee.length = 0, Y = 0; me.length; )
|
143
|
+
me.pop()();
|
144
|
+
for (let t = 0; t < te.length; t += 1) {
|
145
|
+
const r = te[t];
|
146
146
|
Fe.has(r) || (Fe.add(r), r());
|
147
147
|
}
|
148
|
-
|
149
|
-
} while (
|
148
|
+
te.length = 0;
|
149
|
+
} while (ee.length);
|
150
150
|
for (; ft.length; )
|
151
151
|
ft.pop()();
|
152
|
-
je = !1, Fe.clear(),
|
152
|
+
je = !1, Fe.clear(), fe(e);
|
153
153
|
}
|
154
154
|
function Ur(e) {
|
155
155
|
if (e.fragment !== null) {
|
@@ -160,13 +160,13 @@ function Ur(e) {
|
|
160
160
|
}
|
161
161
|
function Gr(e) {
|
162
162
|
const t = [], r = [];
|
163
|
-
|
163
|
+
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
164
164
|
}
|
165
165
|
const kr = /* @__PURE__ */ new Set();
|
166
166
|
function Gt(e, t) {
|
167
167
|
e && e.i && (kr.delete(e), e.i(t));
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function re(e) {
|
170
170
|
return e?.length !== void 0 ? e : Array.from(e);
|
171
171
|
}
|
172
172
|
function kt(e, t) {
|
@@ -179,24 +179,24 @@ function $t(e, t, r, n, i, s, o, a, h, l, u, m) {
|
|
179
179
|
b[e[g].key] = g;
|
180
180
|
const d = [], w = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), H = [];
|
181
181
|
for (g = p; g--; ) {
|
182
|
-
const C = m(i, s, g),
|
183
|
-
let
|
184
|
-
|
182
|
+
const C = m(i, s, g), I = r(C);
|
183
|
+
let L = o.get(I);
|
184
|
+
L ? H.push(() => L.p(C, t)) : (L = l(I, C), L.c()), w.set(I, d[g] = L), I in b && E.set(I, Math.abs(g - b[I]));
|
185
185
|
}
|
186
|
-
const
|
187
|
-
function
|
186
|
+
const R = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
187
|
+
function k(C) {
|
188
188
|
Gt(C, 1), C.m(a, u), o.set(C.key, C), u = C.first, p--;
|
189
189
|
}
|
190
190
|
for (; f && p; ) {
|
191
|
-
const C = d[p - 1],
|
192
|
-
C ===
|
191
|
+
const C = d[p - 1], I = e[f - 1], L = C.key, j = I.key;
|
192
|
+
C === I ? (u = C.first, f--, p--) : w.has(j) ? !o.has(L) || R.has(L) ? k(C) : P.has(j) ? f-- : E.get(L) > E.get(j) ? (P.add(L), k(C)) : (R.add(j), f--) : (h(I, o), f--);
|
193
193
|
}
|
194
194
|
for (; f--; ) {
|
195
195
|
const C = e[f];
|
196
196
|
w.has(C.key) || h(C, o);
|
197
197
|
}
|
198
198
|
for (; p; )
|
199
|
-
|
199
|
+
k(d[p - 1]);
|
200
200
|
return Q(H), d;
|
201
201
|
}
|
202
202
|
function $r(e, t, r) {
|
@@ -211,17 +211,17 @@ function jr(e, t) {
|
|
211
211
|
r.fragment !== null && (Gr(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
212
212
|
}
|
213
213
|
function Vr(e, t) {
|
214
|
-
e.$$.dirty[0] === -1 && (
|
214
|
+
e.$$.dirty[0] === -1 && (ee.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
215
215
|
}
|
216
216
|
function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
217
|
-
const h =
|
218
|
-
|
217
|
+
const h = pe;
|
218
|
+
fe(e);
|
219
219
|
const l = e.$$ = {
|
220
220
|
fragment: null,
|
221
221
|
ctx: [],
|
222
222
|
// state
|
223
223
|
props: s,
|
224
|
-
update:
|
224
|
+
update: G,
|
225
225
|
not_equal: i,
|
226
226
|
bound: ht(),
|
227
227
|
// lifecycle
|
@@ -244,13 +244,13 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
244
244
|
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && Vr(e, m)), f;
|
245
245
|
}) : [], l.update(), u = !0, Q(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
246
246
|
if (t.hydrate) {
|
247
|
-
const m =
|
248
|
-
l.fragment && l.fragment.l(m), m.forEach(
|
247
|
+
const m = Lr(t.target);
|
248
|
+
l.fragment && l.fragment.l(m), m.forEach(F);
|
249
249
|
} else
|
250
250
|
l.fragment && l.fragment.c();
|
251
251
|
t.intro && Gt(e.$$.fragment), $r(e, t.target, t.anchor), A();
|
252
252
|
}
|
253
|
-
|
253
|
+
fe(h);
|
254
254
|
}
|
255
255
|
let jt;
|
256
256
|
typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
@@ -295,24 +295,24 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
295
295
|
let s;
|
296
296
|
return {
|
297
297
|
c: function() {
|
298
|
-
s =
|
298
|
+
s = N("slot"), i !== "default" && S(s, "name", i);
|
299
299
|
},
|
300
300
|
/**
|
301
301
|
* @param {HTMLElement} target
|
302
302
|
* @param {HTMLElement} [anchor]
|
303
303
|
*/
|
304
304
|
m: function(h, l) {
|
305
|
-
|
305
|
+
U(h, s, l);
|
306
306
|
},
|
307
307
|
d: function(h) {
|
308
|
-
h &&
|
308
|
+
h && F(s);
|
309
309
|
}
|
310
310
|
};
|
311
311
|
};
|
312
312
|
};
|
313
313
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
314
314
|
return;
|
315
|
-
const t = {}, r =
|
315
|
+
const t = {}, r = Pr(this);
|
316
316
|
for (const i of this.$$s)
|
317
317
|
i in r && (t[i] = [e(i)]);
|
318
318
|
for (const i of this.attributes) {
|
@@ -447,7 +447,7 @@ class zr {
|
|
447
447
|
$$set = void 0;
|
448
448
|
/** @returns {void} */
|
449
449
|
$destroy() {
|
450
|
-
jr(this, 1), this.$destroy =
|
450
|
+
jr(this, 1), this.$destroy = G;
|
451
451
|
}
|
452
452
|
/**
|
453
453
|
* @template {Extract<keyof Events, string>} K
|
@@ -457,7 +457,7 @@ class zr {
|
|
457
457
|
*/
|
458
458
|
$on(t, r) {
|
459
459
|
if (!et(r))
|
460
|
-
return
|
460
|
+
return G;
|
461
461
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
462
462
|
return n.push(r), () => {
|
463
463
|
const i = n.indexOf(r);
|
@@ -497,39 +497,39 @@ function Jr(e, t, r) {
|
|
497
497
|
});
|
498
498
|
}
|
499
499
|
}
|
500
|
-
const
|
500
|
+
const K = [];
|
501
501
|
function Yr(e, t) {
|
502
502
|
return {
|
503
503
|
subscribe: Ie(e, t).subscribe
|
504
504
|
};
|
505
505
|
}
|
506
|
-
function Ie(e, t =
|
506
|
+
function Ie(e, t = G) {
|
507
507
|
let r;
|
508
508
|
const n = /* @__PURE__ */ new Set();
|
509
509
|
function i(a) {
|
510
510
|
if (Ut(e, a) && (e = a, r)) {
|
511
|
-
const h = !
|
511
|
+
const h = !K.length;
|
512
512
|
for (const l of n)
|
513
|
-
l[1](),
|
513
|
+
l[1](), K.push(l, e);
|
514
514
|
if (h) {
|
515
|
-
for (let l = 0; l <
|
516
|
-
|
517
|
-
|
515
|
+
for (let l = 0; l < K.length; l += 2)
|
516
|
+
K[l][0](K[l + 1]);
|
517
|
+
K.length = 0;
|
518
518
|
}
|
519
519
|
}
|
520
520
|
}
|
521
521
|
function s(a) {
|
522
522
|
i(a(e));
|
523
523
|
}
|
524
|
-
function o(a, h =
|
524
|
+
function o(a, h = G) {
|
525
525
|
const l = [a, h];
|
526
|
-
return n.add(l), n.size === 1 && (r = t(i, s) ||
|
526
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || G), a(e), () => {
|
527
527
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
528
528
|
};
|
529
529
|
}
|
530
530
|
return { set: i, update: s, subscribe: o };
|
531
531
|
}
|
532
|
-
function
|
532
|
+
function ae(e, t, r) {
|
533
533
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
534
534
|
if (!i.every(Boolean))
|
535
535
|
throw new Error("derived() expects stores as input, got a falsy value");
|
@@ -537,13 +537,13 @@ function se(e, t, r) {
|
|
537
537
|
return Yr(r, (o, a) => {
|
538
538
|
let h = !1;
|
539
539
|
const l = [];
|
540
|
-
let u = 0, m =
|
540
|
+
let u = 0, m = G;
|
541
541
|
const f = () => {
|
542
542
|
if (u)
|
543
543
|
return;
|
544
544
|
m();
|
545
545
|
const g = t(n ? l[0] : l, o, a);
|
546
|
-
s ? o(g) : m = et(g) ? g :
|
546
|
+
s ? o(g) : m = et(g) ? g : G;
|
547
547
|
}, p = i.map(
|
548
548
|
(g, b) => Ar(
|
549
549
|
g,
|
@@ -580,19 +580,19 @@ function sn(e) {
|
|
580
580
|
function an(e) {
|
581
581
|
return Array.isArray(e) ? [] : {};
|
582
582
|
}
|
583
|
-
function
|
584
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
583
|
+
function ge(e, t) {
|
584
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(an(e), e, t) : e;
|
585
585
|
}
|
586
586
|
function ln(e, t, r) {
|
587
587
|
return e.concat(t).map(function(n) {
|
588
|
-
return
|
588
|
+
return ge(n, r);
|
589
589
|
});
|
590
590
|
}
|
591
591
|
function un(e, t) {
|
592
592
|
if (!t.customMerge)
|
593
|
-
return
|
593
|
+
return ne;
|
594
594
|
var r = t.customMerge(e);
|
595
|
-
return typeof r == "function" ? r :
|
595
|
+
return typeof r == "function" ? r : ne;
|
596
596
|
}
|
597
597
|
function hn(e) {
|
598
598
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
@@ -615,24 +615,24 @@ function cn(e, t) {
|
|
615
615
|
function fn(e, t, r) {
|
616
616
|
var n = {};
|
617
617
|
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
618
|
-
n[i] =
|
618
|
+
n[i] = ge(e[i], r);
|
619
619
|
}), mt(t).forEach(function(i) {
|
620
|
-
cn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] =
|
620
|
+
cn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = ge(t[i], r));
|
621
621
|
}), n;
|
622
622
|
}
|
623
|
-
function
|
624
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified =
|
623
|
+
function ne(e, t, r) {
|
624
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = ge;
|
625
625
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
626
|
-
return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) :
|
626
|
+
return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : ge(t, r);
|
627
627
|
}
|
628
|
-
|
628
|
+
ne.all = function(t, r) {
|
629
629
|
if (!Array.isArray(t))
|
630
630
|
throw new Error("first argument should be an array");
|
631
631
|
return t.reduce(function(n, i) {
|
632
|
-
return
|
632
|
+
return ne(n, i, r);
|
633
633
|
}, {});
|
634
634
|
};
|
635
|
-
var mn =
|
635
|
+
var mn = ne, dn = mn;
|
636
636
|
const pn = /* @__PURE__ */ Kr(dn);
|
637
637
|
/*! *****************************************************************************
|
638
638
|
Copyright (c) Microsoft Corporation.
|
@@ -748,10 +748,10 @@ var T;
|
|
748
748
|
(function(e) {
|
749
749
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
750
750
|
})(T || (T = {}));
|
751
|
-
var
|
751
|
+
var ie;
|
752
752
|
(function(e) {
|
753
753
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
754
|
-
})(
|
754
|
+
})(ie || (ie = {}));
|
755
755
|
function dt(e) {
|
756
756
|
return e.type === T.literal;
|
757
757
|
}
|
@@ -780,10 +780,10 @@ function Yt(e) {
|
|
780
780
|
return e.type === T.tag;
|
781
781
|
}
|
782
782
|
function Kt(e) {
|
783
|
-
return !!(e && typeof e == "object" && e.type ===
|
783
|
+
return !!(e && typeof e == "object" && e.type === ie.number);
|
784
784
|
}
|
785
785
|
function We(e) {
|
786
|
-
return !!(e && typeof e == "object" && e.type ===
|
786
|
+
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
787
787
|
}
|
788
788
|
var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[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;
|
789
789
|
function Sn(e) {
|
@@ -2503,13 +2503,13 @@ var Ce = {
|
|
2503
2503
|
"h"
|
2504
2504
|
]
|
2505
2505
|
};
|
2506
|
-
function
|
2506
|
+
function Ln(e, t) {
|
2507
2507
|
for (var r = "", n = 0; n < e.length; n++) {
|
2508
2508
|
var i = e.charAt(n);
|
2509
2509
|
if (i === "j") {
|
2510
2510
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2511
2511
|
s++, n++;
|
2512
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l =
|
2512
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = Pn(t);
|
2513
2513
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2514
2514
|
r += h;
|
2515
2515
|
for (; o-- > 0; )
|
@@ -2519,7 +2519,7 @@ function Pn(e, t) {
|
|
2519
2519
|
}
|
2520
2520
|
return r;
|
2521
2521
|
}
|
2522
|
-
function
|
2522
|
+
function Pn(e) {
|
2523
2523
|
var t = e.hourCycle;
|
2524
2524
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2525
2525
|
e.hourCycles && // @ts-ignore
|
@@ -2865,9 +2865,9 @@ var Zn = (
|
|
2865
2865
|
if (d.length === 0)
|
2866
2866
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2867
2867
|
var w = d;
|
2868
|
-
this.locale && (w =
|
2868
|
+
this.locale && (w = Ln(d, this.locale));
|
2869
2869
|
var f = {
|
2870
|
-
type:
|
2870
|
+
type: ie.dateTime,
|
2871
2871
|
pattern: w,
|
2872
2872
|
location: l.styleLocation,
|
2873
2873
|
parsedOptions: this.shouldParseSkeletons ? Sn(w) : {}
|
@@ -2895,19 +2895,19 @@ var Zn = (
|
|
2895
2895
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2896
2896
|
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(H, _({}, H)));
|
2897
2897
|
this.bumpSpace();
|
2898
|
-
var
|
2899
|
-
if (a !== "select" &&
|
2898
|
+
var R = this.parseIdentifierIfPossible(), P = 0;
|
2899
|
+
if (a !== "select" && R.value === "offset") {
|
2900
2900
|
if (!this.bumpIf(":"))
|
2901
2901
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
2902
2902
|
this.bumpSpace();
|
2903
2903
|
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2904
2904
|
if (m.err)
|
2905
2905
|
return m;
|
2906
|
-
this.bumpSpace(),
|
2906
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = m.val;
|
2907
2907
|
}
|
2908
|
-
var
|
2909
|
-
if (
|
2910
|
-
return
|
2908
|
+
var k = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
2909
|
+
if (k.err)
|
2910
|
+
return k;
|
2911
2911
|
var g = this.tryParseArgumentClose(i);
|
2912
2912
|
if (g.err)
|
2913
2913
|
return g;
|
@@ -2916,7 +2916,7 @@ var Zn = (
|
|
2916
2916
|
val: {
|
2917
2917
|
type: T.select,
|
2918
2918
|
value: n,
|
2919
|
-
options: vt(
|
2919
|
+
options: vt(k.val),
|
2920
2920
|
location: C
|
2921
2921
|
},
|
2922
2922
|
err: null
|
@@ -2924,7 +2924,7 @@ var Zn = (
|
|
2924
2924
|
val: {
|
2925
2925
|
type: T.plural,
|
2926
2926
|
value: n,
|
2927
|
-
options: vt(
|
2927
|
+
options: vt(k.val),
|
2928
2928
|
offset: P,
|
2929
2929
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2930
2930
|
location: C
|
@@ -2981,7 +2981,7 @@ var Zn = (
|
|
2981
2981
|
}
|
2982
2982
|
return {
|
2983
2983
|
val: {
|
2984
|
-
type:
|
2984
|
+
type: ie.number,
|
2985
2985
|
tokens: n,
|
2986
2986
|
location: r,
|
2987
2987
|
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
@@ -3131,10 +3131,10 @@ function Yn(e, t) {
|
|
3131
3131
|
}
|
3132
3132
|
return t?.captureLocation || Je(r.val), r.val;
|
3133
3133
|
}
|
3134
|
-
var
|
3134
|
+
var oe;
|
3135
3135
|
(function(e) {
|
3136
3136
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3137
|
-
})(
|
3137
|
+
})(oe || (oe = {}));
|
3138
3138
|
var Ne = (
|
3139
3139
|
/** @class */
|
3140
3140
|
function(e) {
|
@@ -3152,7 +3152,7 @@ var Ne = (
|
|
3152
3152
|
function(e) {
|
3153
3153
|
Me(t, e);
|
3154
3154
|
function t(r, n, i, s) {
|
3155
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3155
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), oe.INVALID_VALUE, s) || this;
|
3156
3156
|
}
|
3157
3157
|
return t;
|
3158
3158
|
}(Ne)
|
@@ -3161,7 +3161,7 @@ var Ne = (
|
|
3161
3161
|
function(e) {
|
3162
3162
|
Me(t, e);
|
3163
3163
|
function t(r, n, i) {
|
3164
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3164
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), oe.INVALID_VALUE, i) || this;
|
3165
3165
|
}
|
3166
3166
|
return t;
|
3167
3167
|
}(Ne)
|
@@ -3170,18 +3170,18 @@ var Ne = (
|
|
3170
3170
|
function(e) {
|
3171
3171
|
Me(t, e);
|
3172
3172
|
function t(r, n) {
|
3173
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3173
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), oe.MISSING_VALUE, n) || this;
|
3174
3174
|
}
|
3175
3175
|
return t;
|
3176
3176
|
}(Ne)
|
3177
|
-
),
|
3177
|
+
), O;
|
3178
3178
|
(function(e) {
|
3179
3179
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3180
|
-
})(
|
3180
|
+
})(O || (O = {}));
|
3181
3181
|
function ti(e) {
|
3182
3182
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3183
3183
|
var n = t[t.length - 1];
|
3184
|
-
return !n || n.type !==
|
3184
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
3185
3185
|
}, []);
|
3186
3186
|
}
|
3187
3187
|
function ri(e) {
|
@@ -3191,7 +3191,7 @@ function He(e, t, r, n, i, s, o) {
|
|
3191
3191
|
if (e.length === 1 && dt(e[0]))
|
3192
3192
|
return [
|
3193
3193
|
{
|
3194
|
-
type:
|
3194
|
+
type: O.literal,
|
3195
3195
|
value: e[0].value
|
3196
3196
|
}
|
3197
3197
|
];
|
@@ -3199,14 +3199,14 @@ function He(e, t, r, n, i, s, o) {
|
|
3199
3199
|
var u = l[h];
|
3200
3200
|
if (dt(u)) {
|
3201
3201
|
a.push({
|
3202
|
-
type:
|
3202
|
+
type: O.literal,
|
3203
3203
|
value: u.value
|
3204
3204
|
});
|
3205
3205
|
continue;
|
3206
3206
|
}
|
3207
3207
|
if (wn(u)) {
|
3208
3208
|
typeof s == "number" && a.push({
|
3209
|
-
type:
|
3209
|
+
type: O.literal,
|
3210
3210
|
value: r.getNumberFormat(t).format(s)
|
3211
3211
|
});
|
3212
3212
|
continue;
|
@@ -3217,7 +3217,7 @@ function He(e, t, r, n, i, s, o) {
|
|
3217
3217
|
var f = i[m];
|
3218
3218
|
if (Cn(u)) {
|
3219
3219
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3220
|
-
type: typeof f == "string" ?
|
3220
|
+
type: typeof f == "string" ? O.literal : O.object,
|
3221
3221
|
value: f
|
3222
3222
|
});
|
3223
3223
|
continue;
|
@@ -3225,7 +3225,7 @@ function He(e, t, r, n, i, s, o) {
|
|
3225
3225
|
if (Zt(u)) {
|
3226
3226
|
var p = typeof u.style == "string" ? n.date[u.style] : We(u.style) ? u.style.parsedOptions : void 0;
|
3227
3227
|
a.push({
|
3228
|
-
type:
|
3228
|
+
type: O.literal,
|
3229
3229
|
value: r.getDateTimeFormat(t, p).format(f)
|
3230
3230
|
});
|
3231
3231
|
continue;
|
@@ -3233,7 +3233,7 @@ function He(e, t, r, n, i, s, o) {
|
|
3233
3233
|
if (Qt(u)) {
|
3234
3234
|
var p = typeof u.style == "string" ? n.time[u.style] : We(u.style) ? u.style.parsedOptions : n.time.medium;
|
3235
3235
|
a.push({
|
3236
|
-
type:
|
3236
|
+
type: O.literal,
|
3237
3237
|
value: r.getDateTimeFormat(t, p).format(f)
|
3238
3238
|
});
|
3239
3239
|
continue;
|
@@ -3241,7 +3241,7 @@ function He(e, t, r, n, i, s, o) {
|
|
3241
3241
|
if (zt(u)) {
|
3242
3242
|
var p = typeof u.style == "string" ? n.number[u.style] : Kt(u.style) ? u.style.parsedOptions : void 0;
|
3243
3243
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3244
|
-
type:
|
3244
|
+
type: O.literal,
|
3245
3245
|
value: r.getNumberFormat(t, p).format(f)
|
3246
3246
|
});
|
3247
3247
|
continue;
|
@@ -3255,7 +3255,7 @@ function He(e, t, r, n, i, s, o) {
|
|
3255
3255
|
}));
|
3256
3256
|
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(P) {
|
3257
3257
|
return {
|
3258
|
-
type: typeof P == "string" ?
|
3258
|
+
type: typeof P == "string" ? O.literal : O.object,
|
3259
3259
|
value: P
|
3260
3260
|
};
|
3261
3261
|
}));
|
@@ -3273,9 +3273,9 @@ function He(e, t, r, n, i, s, o) {
|
|
3273
3273
|
if (!Intl.PluralRules)
|
3274
3274
|
throw new Ne(`Intl.PluralRules is not available in this environment.
|
3275
3275
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3276
|
-
`,
|
3277
|
-
var
|
3278
|
-
H = u.options[
|
3276
|
+
`, oe.MISSING_INTL_API, o);
|
3277
|
+
var R = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3278
|
+
H = u.options[R] || u.options.other;
|
3279
3279
|
}
|
3280
3280
|
if (!H)
|
3281
3281
|
throw new Et(u.value, f, Object.keys(u.options), o);
|
@@ -3356,7 +3356,7 @@ var si = (
|
|
3356
3356
|
if (l.length === 1)
|
3357
3357
|
return l[0].value;
|
3358
3358
|
var u = l.reduce(function(m, f) {
|
3359
|
-
return !m.length || f.type !==
|
3359
|
+
return !m.length || f.type !== O.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
3360
3360
|
}, []);
|
3361
3361
|
return u.length <= 1 ? u[0] || "" : u;
|
3362
3362
|
}, this.formatToParts = function(h) {
|
@@ -3479,7 +3479,7 @@ const X = {}, li = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][
|
|
3479
3479
|
return;
|
3480
3480
|
if (t in X && e in X[t])
|
3481
3481
|
return X[t][e];
|
3482
|
-
const r =
|
3482
|
+
const r = Le(t);
|
3483
3483
|
for (let n = 0; n < r.length; n++) {
|
3484
3484
|
const i = r[n], s = hi(i, e);
|
3485
3485
|
if (s)
|
@@ -3487,7 +3487,7 @@ const X = {}, li = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][
|
|
3487
3487
|
}
|
3488
3488
|
};
|
3489
3489
|
let it;
|
3490
|
-
const
|
3490
|
+
const le = Ie({});
|
3491
3491
|
function ui(e) {
|
3492
3492
|
return it[e] || null;
|
3493
3493
|
}
|
@@ -3503,7 +3503,7 @@ function hi(e, t) {
|
|
3503
3503
|
function ci(e) {
|
3504
3504
|
if (e == null)
|
3505
3505
|
return;
|
3506
|
-
const t =
|
3506
|
+
const t = Le(e);
|
3507
3507
|
for (let r = 0; r < t.length; r++) {
|
3508
3508
|
const n = t[r];
|
3509
3509
|
if (lr(n))
|
@@ -3511,13 +3511,13 @@ function ci(e) {
|
|
3511
3511
|
}
|
3512
3512
|
}
|
3513
3513
|
function ur(e, ...t) {
|
3514
|
-
delete X[e],
|
3514
|
+
delete X[e], le.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
3515
3515
|
}
|
3516
|
-
|
3517
|
-
[
|
3516
|
+
ae(
|
3517
|
+
[le],
|
3518
3518
|
([e]) => Object.keys(e)
|
3519
3519
|
);
|
3520
|
-
|
3520
|
+
le.subscribe((e) => it = e);
|
3521
3521
|
const Se = {};
|
3522
3522
|
function fi(e, t) {
|
3523
3523
|
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
@@ -3526,13 +3526,13 @@ function hr(e) {
|
|
3526
3526
|
return Se[e];
|
3527
3527
|
}
|
3528
3528
|
function mi(e) {
|
3529
|
-
return
|
3529
|
+
return Le(e).map((t) => {
|
3530
3530
|
const r = hr(t);
|
3531
3531
|
return [t, r ? [...r] : []];
|
3532
3532
|
}).filter(([, t]) => t.length > 0);
|
3533
3533
|
}
|
3534
3534
|
function Ye(e) {
|
3535
|
-
return e == null ? !1 :
|
3535
|
+
return e == null ? !1 : Le(e).some(
|
3536
3536
|
(t) => {
|
3537
3537
|
var r;
|
3538
3538
|
return (r = hr(t)) == null ? void 0 : r.size;
|
@@ -3544,20 +3544,20 @@ function di(e, t) {
|
|
3544
3544
|
t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
|
3545
3545
|
).then((n) => ur(e, ...n));
|
3546
3546
|
}
|
3547
|
-
const
|
3547
|
+
const ce = {};
|
3548
3548
|
function cr(e) {
|
3549
3549
|
if (!Ye(e))
|
3550
|
-
return e in
|
3550
|
+
return e in ce ? ce[e] : Promise.resolve();
|
3551
3551
|
const t = mi(e);
|
3552
|
-
return
|
3552
|
+
return ce[e] = Promise.all(
|
3553
3553
|
t.map(
|
3554
3554
|
([r, n]) => di(r, n)
|
3555
3555
|
)
|
3556
3556
|
).then(() => {
|
3557
3557
|
if (Ye(e))
|
3558
3558
|
return cr(e);
|
3559
|
-
delete
|
3560
|
-
}),
|
3559
|
+
delete ce[e];
|
3560
|
+
}), ce[e];
|
3561
3561
|
}
|
3562
3562
|
const pi = {
|
3563
3563
|
number: {
|
@@ -3596,7 +3596,7 @@ const pi = {
|
|
3596
3596
|
handleMissingMessage: void 0,
|
3597
3597
|
ignoreTag: !0
|
3598
3598
|
}, bi = gi;
|
3599
|
-
function
|
3599
|
+
function se() {
|
3600
3600
|
return bi;
|
3601
3601
|
}
|
3602
3602
|
const $e = Ie(!1);
|
@@ -3613,7 +3613,7 @@ const Ae = Ie(null);
|
|
3613
3613
|
function wt(e) {
|
3614
3614
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3615
3615
|
}
|
3616
|
-
function
|
3616
|
+
function Le(e, t = se().fallbackLocale) {
|
3617
3617
|
const r = wt(e);
|
3618
3618
|
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
3619
3619
|
}
|
@@ -3625,7 +3625,7 @@ Ae.subscribe((e) => {
|
|
3625
3625
|
});
|
3626
3626
|
const Hi = (e) => {
|
3627
3627
|
if (e && ci(e) && Ye(e)) {
|
3628
|
-
const { loadingDelay: t } =
|
3628
|
+
const { loadingDelay: t } = se();
|
3629
3629
|
let r;
|
3630
3630
|
return typeof window < "u" && q() != null && t ? r = window.setTimeout(
|
3631
3631
|
() => $e.set(!0),
|
@@ -3639,7 +3639,7 @@ const Hi = (e) => {
|
|
3639
3639
|
return Ae.set(e);
|
3640
3640
|
}, W = wi(Ci({}, Ae), {
|
3641
3641
|
set: Hi
|
3642
|
-
}),
|
3642
|
+
}), Pe = (e) => {
|
3643
3643
|
const t = /* @__PURE__ */ Object.create(null);
|
3644
3644
|
return (n) => {
|
3645
3645
|
const i = JSON.stringify(n);
|
@@ -3653,7 +3653,7 @@ var Si = Object.defineProperty, Be = Object.getOwnPropertySymbols, fr = Object.p
|
|
3653
3653
|
for (var r of Be(t))
|
3654
3654
|
mr.call(t, r) && Ht(e, r, t[r]);
|
3655
3655
|
return e;
|
3656
|
-
},
|
3656
|
+
}, ue = (e, t) => {
|
3657
3657
|
var r = {};
|
3658
3658
|
for (var n in e)
|
3659
3659
|
fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -3662,61 +3662,61 @@ var Si = Object.defineProperty, Be = Object.getOwnPropertySymbols, fr = Object.p
|
|
3662
3662
|
t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
|
3663
3663
|
return r;
|
3664
3664
|
};
|
3665
|
-
const
|
3666
|
-
const { formats: r } =
|
3665
|
+
const be = (e, t) => {
|
3666
|
+
const { formats: r } = se();
|
3667
3667
|
if (e in r && t in r[e])
|
3668
3668
|
return r[e][t];
|
3669
3669
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3670
|
-
}, Ti =
|
3670
|
+
}, Ti = Pe(
|
3671
3671
|
(e) => {
|
3672
|
-
var t = e, { locale: r, format: n } = t, i =
|
3672
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3673
3673
|
if (r == null)
|
3674
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3675
|
-
return n && (i =
|
3675
|
+
return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
|
3676
3676
|
}
|
3677
|
-
), Ai =
|
3677
|
+
), Ai = Pe(
|
3678
3678
|
(e) => {
|
3679
|
-
var t = e, { locale: r, format: n } = t, i =
|
3679
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3680
3680
|
if (r == null)
|
3681
3681
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3682
|
-
return n ? i =
|
3682
|
+
return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
|
3683
3683
|
}
|
3684
|
-
), Bi =
|
3684
|
+
), Bi = Pe(
|
3685
3685
|
(e) => {
|
3686
|
-
var t = e, { locale: r, format: n } = t, i =
|
3686
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
3687
3687
|
if (r == null)
|
3688
3688
|
throw new Error(
|
3689
3689
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3690
3690
|
);
|
3691
|
-
return n ? i =
|
3691
|
+
return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
|
3692
3692
|
}
|
3693
3693
|
), Ii = (e = {}) => {
|
3694
3694
|
var t = e, {
|
3695
3695
|
locale: r = q()
|
3696
|
-
} = t, n =
|
3696
|
+
} = t, n = ue(t, [
|
3697
3697
|
"locale"
|
3698
3698
|
]);
|
3699
3699
|
return Ti(ot({ locale: r }, n));
|
3700
3700
|
}, Mi = (e = {}) => {
|
3701
3701
|
var t = e, {
|
3702
3702
|
locale: r = q()
|
3703
|
-
} = t, n =
|
3703
|
+
} = t, n = ue(t, [
|
3704
3704
|
"locale"
|
3705
3705
|
]);
|
3706
3706
|
return Ai(ot({ locale: r }, n));
|
3707
3707
|
}, Ni = (e = {}) => {
|
3708
3708
|
var t = e, {
|
3709
3709
|
locale: r = q()
|
3710
|
-
} = t, n =
|
3710
|
+
} = t, n = ue(t, [
|
3711
3711
|
"locale"
|
3712
3712
|
]);
|
3713
3713
|
return Bi(ot({ locale: r }, n));
|
3714
|
-
},
|
3714
|
+
}, Li = Pe(
|
3715
3715
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3716
|
-
(e, t = q()) => new si(e, t,
|
3717
|
-
ignoreTag:
|
3716
|
+
(e, t = q()) => new si(e, t, se().formats, {
|
3717
|
+
ignoreTag: se().ignoreTag
|
3718
3718
|
})
|
3719
|
-
),
|
3719
|
+
), Pi = (e, t = {}) => {
|
3720
3720
|
var r, n, i, s;
|
3721
3721
|
let o = t;
|
3722
3722
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -3731,7 +3731,7 @@ const ge = (e, t) => {
|
|
3731
3731
|
);
|
3732
3732
|
let u = ar(e, h);
|
3733
3733
|
if (!u)
|
3734
|
-
u = (s = (i = (n = (r =
|
3734
|
+
u = (s = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
3735
3735
|
else if (typeof u != "string")
|
3736
3736
|
return console.warn(
|
3737
3737
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3740,7 +3740,7 @@ const ge = (e, t) => {
|
|
3740
3740
|
return u;
|
3741
3741
|
let m = u;
|
3742
3742
|
try {
|
3743
|
-
m =
|
3743
|
+
m = Li(u, h).format(a);
|
3744
3744
|
} catch (f) {
|
3745
3745
|
f instanceof Error && console.warn(
|
3746
3746
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3749,14 +3749,14 @@ const ge = (e, t) => {
|
|
3749
3749
|
}
|
3750
3750
|
return m;
|
3751
3751
|
}, Oi = (e, t) => Ni(t).format(e), Fi = (e, t) => Mi(t).format(e), Ri = (e, t) => Ii(t).format(e), Di = (e, t = q()) => ar(e, t);
|
3752
|
-
|
3753
|
-
|
3754
|
-
|
3755
|
-
|
3756
|
-
|
3752
|
+
ae([W, le], () => Pi);
|
3753
|
+
ae([W], () => Oi);
|
3754
|
+
ae([W], () => Fi);
|
3755
|
+
ae([W], () => Ri);
|
3756
|
+
ae([W, le], () => Di);
|
3757
3757
|
function Ui({ withLocale: e, translations: t }) {
|
3758
3758
|
W.subscribe((r) => {
|
3759
|
-
r == null && (
|
3759
|
+
r == null && (le.set(t), W.set(e));
|
3760
3760
|
});
|
3761
3761
|
}
|
3762
3762
|
function St(e, t) {
|
@@ -3823,7 +3823,7 @@ const Tt = {
|
|
3823
3823
|
}
|
3824
3824
|
};
|
3825
3825
|
function ki(e) {
|
3826
|
-
Br(e, "svelte-
|
3826
|
+
Br(e, "svelte-2e7gs6", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.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}');
|
3827
3827
|
}
|
3828
3828
|
function At(e, t, r) {
|
3829
3829
|
const n = e.slice();
|
@@ -3838,7 +3838,7 @@ function It(e, t, r) {
|
|
3838
3838
|
return n[54] = t[r], n[56] = r, n;
|
3839
3839
|
}
|
3840
3840
|
function Mt(e) {
|
3841
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3841
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = re(
|
3842
3842
|
/*sliderdata*/
|
3843
3843
|
e[9]
|
3844
3844
|
);
|
@@ -3854,22 +3854,22 @@ function Mt(e) {
|
|
3854
3854
|
c() {
|
3855
3855
|
for (let o = 0; o < t.length; o += 1)
|
3856
3856
|
t[o].c();
|
3857
|
-
n =
|
3857
|
+
n = de();
|
3858
3858
|
},
|
3859
3859
|
m(o, a) {
|
3860
3860
|
for (let h = 0; h < t.length; h += 1)
|
3861
3861
|
t[h] && t[h].m(o, a);
|
3862
|
-
|
3862
|
+
U(o, n, a);
|
3863
3863
|
},
|
3864
3864
|
p(o, a) {
|
3865
3865
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3866
|
-
77775 && (i =
|
3866
|
+
77775 && (i = re(
|
3867
3867
|
/*sliderdata*/
|
3868
3868
|
o[9]
|
3869
3869
|
), t = $t(t, a, s, 1, o, i, r, n.parentNode, kt, Rt, n, At));
|
3870
3870
|
},
|
3871
3871
|
d(o) {
|
3872
|
-
o &&
|
3872
|
+
o && F(n);
|
3873
3873
|
for (let a = 0; a < t.length; a += 1)
|
3874
3874
|
t[a].d(o);
|
3875
3875
|
}
|
@@ -3882,10 +3882,10 @@ function $i(e) {
|
|
3882
3882
|
), n;
|
3883
3883
|
return {
|
3884
3884
|
c() {
|
3885
|
-
t =
|
3885
|
+
t = N("button"), n = ye(r), S(t, "class", "CategoryButton");
|
3886
3886
|
},
|
3887
3887
|
m(i, s) {
|
3888
|
-
|
3888
|
+
U(i, t, s), B(t, n);
|
3889
3889
|
},
|
3890
3890
|
p(i, s) {
|
3891
3891
|
s[0] & /*sliderdata*/
|
@@ -3893,7 +3893,7 @@ function $i(e) {
|
|
3893
3893
|
i[48].name + "") && tt(n, r);
|
3894
3894
|
},
|
3895
3895
|
d(i) {
|
3896
|
-
i &&
|
3896
|
+
i && F(t);
|
3897
3897
|
}
|
3898
3898
|
};
|
3899
3899
|
}
|
@@ -3904,11 +3904,11 @@ function ji(e) {
|
|
3904
3904
|
), n, i;
|
3905
3905
|
return {
|
3906
3906
|
c() {
|
3907
|
-
t =
|
3907
|
+
t = N("a"), n = ye(r), S(t, "href", i = /*category*/
|
3908
3908
|
e[48].path);
|
3909
3909
|
},
|
3910
3910
|
m(s, o) {
|
3911
|
-
|
3911
|
+
U(s, t, o), B(t, n);
|
3912
3912
|
},
|
3913
3913
|
p(s, o) {
|
3914
3914
|
o[0] & /*sliderdata*/
|
@@ -3918,7 +3918,7 @@ function ji(e) {
|
|
3918
3918
|
s[48].path) && S(t, "href", i);
|
3919
3919
|
},
|
3920
3920
|
d(s) {
|
3921
|
-
s &&
|
3921
|
+
s && F(t);
|
3922
3922
|
}
|
3923
3923
|
};
|
3924
3924
|
}
|
@@ -3926,27 +3926,27 @@ function Nt(e) {
|
|
3926
3926
|
let t, r = (
|
3927
3927
|
/*subGroupsData*/
|
3928
3928
|
e[10].length > 0 && /*showsubgroups*/
|
3929
|
-
e[2] == "true" &&
|
3929
|
+
e[2] == "true" && Lt(e)
|
3930
3930
|
);
|
3931
3931
|
return {
|
3932
3932
|
c() {
|
3933
|
-
r && r.c(), t =
|
3933
|
+
r && r.c(), t = de();
|
3934
3934
|
},
|
3935
3935
|
m(n, i) {
|
3936
|
-
r && r.m(n, i),
|
3936
|
+
r && r.m(n, i), U(n, t, i);
|
3937
3937
|
},
|
3938
3938
|
p(n, i) {
|
3939
3939
|
/*subGroupsData*/
|
3940
3940
|
n[10].length > 0 && /*showsubgroups*/
|
3941
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3941
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Lt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3942
3942
|
},
|
3943
3943
|
d(n) {
|
3944
|
-
n &&
|
3944
|
+
n && F(t), r && r.d(n);
|
3945
3945
|
}
|
3946
3946
|
};
|
3947
3947
|
}
|
3948
|
-
function
|
3949
|
-
let t, r =
|
3948
|
+
function Lt(e) {
|
3949
|
+
let t, r = re(
|
3950
3950
|
/*subGroupsData*/
|
3951
3951
|
e[10]
|
3952
3952
|
), n = [];
|
@@ -3954,20 +3954,20 @@ function Pt(e) {
|
|
3954
3954
|
n[i] = Ft(Bt(e, r, i));
|
3955
3955
|
return {
|
3956
3956
|
c() {
|
3957
|
-
t =
|
3957
|
+
t = N("ul");
|
3958
3958
|
for (let i = 0; i < n.length; i += 1)
|
3959
3959
|
n[i].c();
|
3960
3960
|
S(t, "class", "DropDown");
|
3961
3961
|
},
|
3962
3962
|
m(i, s) {
|
3963
|
-
|
3963
|
+
U(i, t, s);
|
3964
3964
|
for (let o = 0; o < n.length; o += 1)
|
3965
3965
|
n[o] && n[o].m(t, null);
|
3966
3966
|
},
|
3967
3967
|
p(i, s) {
|
3968
3968
|
if (s[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
3969
3969
|
10176) {
|
3970
|
-
r =
|
3970
|
+
r = re(
|
3971
3971
|
/*subGroupsData*/
|
3972
3972
|
i[10]
|
3973
3973
|
);
|
@@ -3982,11 +3982,11 @@ function Pt(e) {
|
|
3982
3982
|
}
|
3983
3983
|
},
|
3984
3984
|
d(i) {
|
3985
|
-
i &&
|
3985
|
+
i && F(t), Nr(n, i);
|
3986
3986
|
}
|
3987
3987
|
};
|
3988
3988
|
}
|
3989
|
-
function
|
3989
|
+
function Pt(e) {
|
3990
3990
|
let t, r, n = (
|
3991
3991
|
/*subGroupItem*/
|
3992
3992
|
e[54]?.name + ""
|
@@ -4009,7 +4009,7 @@ function Lt(e) {
|
|
4009
4009
|
}
|
4010
4010
|
return {
|
4011
4011
|
c() {
|
4012
|
-
t =
|
4012
|
+
t = N("li"), r = N("a"), i = ye(n), o = Z(), S(r, "class", s = "SubDropDown " + /*index*/
|
4013
4013
|
(e[50] == /*activeIndex*/
|
4014
4014
|
e[6] && /*activeSubIndex*/
|
4015
4015
|
(e[7] == /*subindex*/
|
@@ -4018,7 +4018,7 @@ function Lt(e) {
|
|
4018
4018
|
e[56]) ? "active" : ""));
|
4019
4019
|
},
|
4020
4020
|
m(u, m) {
|
4021
|
-
|
4021
|
+
U(u, t, m), B(t, r), B(r, i), B(t, o), a || (h = Te(t, "click", l), a = !0);
|
4022
4022
|
},
|
4023
4023
|
p(u, m) {
|
4024
4024
|
e = u, m[0] & /*subGroupsData*/
|
@@ -4033,7 +4033,7 @@ function Lt(e) {
|
|
4033
4033
|
e[56]) ? "active" : "")) && S(r, "class", s);
|
4034
4034
|
},
|
4035
4035
|
d(u) {
|
4036
|
-
u &&
|
4036
|
+
u && F(t), a = !1, h();
|
4037
4037
|
}
|
4038
4038
|
};
|
4039
4039
|
}
|
@@ -4041,29 +4041,29 @@ function Ot(e, t) {
|
|
4041
4041
|
let r, n, i = (
|
4042
4042
|
/*index*/
|
4043
4043
|
t[50] == /*subGroup*/
|
4044
|
-
t[51].index &&
|
4044
|
+
t[51].index && Pt(t)
|
4045
4045
|
);
|
4046
4046
|
return {
|
4047
4047
|
key: e,
|
4048
4048
|
first: null,
|
4049
4049
|
c() {
|
4050
|
-
r =
|
4050
|
+
r = de(), i && i.c(), n = de(), this.first = r;
|
4051
4051
|
},
|
4052
4052
|
m(s, o) {
|
4053
|
-
|
4053
|
+
U(s, r, o), i && i.m(s, o), U(s, n, o);
|
4054
4054
|
},
|
4055
4055
|
p(s, o) {
|
4056
4056
|
t = s, /*index*/
|
4057
4057
|
t[50] == /*subGroup*/
|
4058
|
-
t[51].index ? i ? i.p(t, o) : (i =
|
4058
|
+
t[51].index ? i ? i.p(t, o) : (i = Pt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4059
4059
|
},
|
4060
4060
|
d(s) {
|
4061
|
-
s && (
|
4061
|
+
s && (F(r), F(n)), i && i.d(s);
|
4062
4062
|
}
|
4063
4063
|
};
|
4064
4064
|
}
|
4065
4065
|
function Ft(e) {
|
4066
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4066
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = re(
|
4067
4067
|
/*subGroup*/
|
4068
4068
|
e[51].items
|
4069
4069
|
);
|
@@ -4079,22 +4079,22 @@ function Ft(e) {
|
|
4079
4079
|
c() {
|
4080
4080
|
for (let o = 0; o < t.length; o += 1)
|
4081
4081
|
t[o].c();
|
4082
|
-
n =
|
4082
|
+
n = de();
|
4083
4083
|
},
|
4084
4084
|
m(o, a) {
|
4085
4085
|
for (let h = 0; h < t.length; h += 1)
|
4086
4086
|
t[h] && t[h].m(o, a);
|
4087
|
-
|
4087
|
+
U(o, n, a);
|
4088
4088
|
},
|
4089
4089
|
p(o, a) {
|
4090
4090
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4091
|
-
10176 && (i =
|
4091
|
+
10176 && (i = re(
|
4092
4092
|
/*subGroup*/
|
4093
4093
|
o[51].items
|
4094
4094
|
), t = $t(t, a, s, 1, o, i, r, n.parentNode, kt, Ot, n, It));
|
4095
4095
|
},
|
4096
4096
|
d(o) {
|
4097
|
-
o &&
|
4097
|
+
o && F(n);
|
4098
4098
|
for (let a = 0; a < t.length; a += 1)
|
4099
4099
|
t[a].d(o);
|
4100
4100
|
}
|
@@ -4131,7 +4131,7 @@ function Rt(e, t) {
|
|
4131
4131
|
key: e,
|
4132
4132
|
first: null,
|
4133
4133
|
c() {
|
4134
|
-
r =
|
4134
|
+
r = N("li"), n = N("div"), i = N("img"), a = Z(), b.c(), h = Z(), d && d.c(), l = Z(), S(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
|
4135
4135
|
(t[3] === "true" ? "" : "DisplayNone")), ct(i.src, o = /*handleSrc*/
|
4136
4136
|
t[16](
|
4137
4137
|
/*category*/
|
@@ -4149,7 +4149,7 @@ function Rt(e, t) {
|
|
4149
4149
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4150
4150
|
},
|
4151
4151
|
m(E, H) {
|
4152
|
-
|
4152
|
+
U(E, r, H), B(r, n), B(n, i), B(r, a), b.m(r, null), B(r, h), d && d.m(r, null), B(r, l), m || (f = Te(r, "click", w), m = !0);
|
4153
4153
|
},
|
4154
4154
|
p(E, H) {
|
4155
4155
|
t = E, H[0] & /*categoriesicon*/
|
@@ -4177,7 +4177,7 @@ function Rt(e, t) {
|
|
4177
4177
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && S(r, "class", u);
|
4178
4178
|
},
|
4179
4179
|
d(E) {
|
4180
|
-
E &&
|
4180
|
+
E && F(r), b.d(), d && d.d(), m = !1, f();
|
4181
4181
|
}
|
4182
4182
|
};
|
4183
4183
|
}
|
@@ -4188,13 +4188,13 @@ function Vi(e) {
|
|
4188
4188
|
);
|
4189
4189
|
return {
|
4190
4190
|
c() {
|
4191
|
-
t =
|
4191
|
+
t = N("div"), r = N("div"), n = N("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i = Z(), s = N("div"), o = N("ul"), a = N("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = Z(), d && d.c(), l = Z(), u = N("div"), u.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', S(n, "class", "CarouselLeftArrow"), S(a, "class", "TouchOnly"), S(o, "id", "CarouselNav"), S(o, "class", "CarouselItems"), S(s, "class", "CarouselNavWrap scroller"), S(u, "class", "CarouselRightArrow"), S(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4192
4192
|
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), S(r, "style", f = /*location*/
|
4193
4193
|
e[0] === "headerMain" ? "max-width: auto" : void 0), S(t, "class", p = "CarouselWrapper " + /*location*/
|
4194
4194
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4195
4195
|
},
|
4196
4196
|
m(w, E) {
|
4197
|
-
|
4197
|
+
U(w, t, E), B(t, r), B(r, n), B(r, i), B(r, s), B(s, o), B(o, a), B(o, h), d && d.m(o, null), e[35](o), e[36](s), B(r, l), B(r, u), e[38](t), g || (b = [
|
4198
4198
|
Te(
|
4199
4199
|
n,
|
4200
4200
|
"click",
|
@@ -4219,20 +4219,20 @@ function Vi(e) {
|
|
4219
4219
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4220
4220
|
(w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && S(t, "class", p);
|
4221
4221
|
},
|
4222
|
-
i:
|
4223
|
-
o:
|
4222
|
+
i: G,
|
4223
|
+
o: G,
|
4224
4224
|
d(w) {
|
4225
|
-
w &&
|
4225
|
+
w && F(t), d && d.d(), e[35](null), e[36](null), e[38](null), g = !1, Q(b);
|
4226
4226
|
}
|
4227
4227
|
};
|
4228
4228
|
}
|
4229
4229
|
function Xi(e, t, r) {
|
4230
|
-
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: w = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: H = "" } = t, { mygamesiconimage:
|
4230
|
+
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: w = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: H = "" } = t, { mygamesiconimage: R = "" } = t, { mbsource: P = "" } = t;
|
4231
4231
|
Ui({ withLocale: "en", translations: {} });
|
4232
|
-
const
|
4232
|
+
const k = () => {
|
4233
4233
|
fetch(f).then((x) => x.json()).then((x) => {
|
4234
|
-
Object.keys(x).forEach((
|
4235
|
-
St(
|
4234
|
+
Object.keys(x).forEach((D) => {
|
4235
|
+
St(D, x[D]);
|
4236
4236
|
});
|
4237
4237
|
}).catch((x) => {
|
4238
4238
|
console.log(x);
|
@@ -4241,9 +4241,9 @@ function Xi(e, t, r) {
|
|
4241
4241
|
Object.keys(Tt).forEach((c) => {
|
4242
4242
|
St(c, Tt[c]);
|
4243
4243
|
});
|
4244
|
-
let C,
|
4244
|
+
let C, I, L, j, $, he = [], ve = [], J = [], M, Oe = (c, x, D, z, V) => {
|
4245
4245
|
if (!(c.subGroups && z === null)) {
|
4246
|
-
if (_e(), r(6,
|
4246
|
+
if (_e(), r(6, I = x), r(6, I), V != "secondary") {
|
4247
4247
|
window.postMessage(
|
4248
4248
|
{
|
4249
4249
|
type: o == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
@@ -4256,35 +4256,35 @@ function Xi(e, t, r) {
|
|
4256
4256
|
target: c.attrs?.target || null
|
4257
4257
|
},
|
4258
4258
|
window.location.href
|
4259
|
-
), r(7,
|
4259
|
+
), r(7, L = null), r(8, j = null);
|
4260
4260
|
return;
|
4261
4261
|
}
|
4262
|
-
r(7,
|
4262
|
+
r(7, L = z), r(7, L), r(8, j = L), window.postMessage(
|
4263
4263
|
{
|
4264
4264
|
type: o,
|
4265
|
-
itemId:
|
4265
|
+
itemId: D.id,
|
4266
4266
|
subIndex: z,
|
4267
|
-
subItem:
|
4267
|
+
subItem: D
|
4268
4268
|
},
|
4269
4269
|
window.location.href
|
4270
4270
|
);
|
4271
4271
|
}
|
4272
4272
|
}, st = () => {
|
4273
|
-
|
4273
|
+
M && (J.length !== I ? r(12, M.scrollLeft -= 250, M) : r(12, M.scrollLeft = 0, M));
|
4274
4274
|
}, at = () => {
|
4275
|
-
|
4275
|
+
M && (J.length !== I ? r(12, M.scrollLeft += 250, M) : r(12, M.scrollLeft = 0, M));
|
4276
4276
|
};
|
4277
4277
|
const lt = (c) => {
|
4278
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4279
|
-
x.path.endsWith("/casino") && (r(6,
|
4278
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, he = c.data.data), r(11, J = new Array(he.length).fill(!1)), w == "true" && gr()), c.data.type == "GoToHomepage" && he.forEach((x, D) => {
|
4279
|
+
x.path.endsWith("/casino") && (r(6, I = D), r(6, I));
|
4280
4280
|
});
|
4281
4281
|
}, dr = () => {
|
4282
4282
|
Gi(b);
|
4283
|
-
}, pr = (c, x,
|
4283
|
+
}, pr = (c, x, D) => {
|
4284
4284
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4285
4285
|
let z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4286
4286
|
fetch(z.href).then((V) => V.json()).then((V) => {
|
4287
|
-
V.index = x, r(10,
|
4287
|
+
V.index = x, r(10, ve = ve.concat(V)), w == "false" && window.postMessage(
|
4288
4288
|
{
|
4289
4289
|
type: o,
|
4290
4290
|
itemId: c.id,
|
@@ -4294,7 +4294,7 @@ function Xi(e, t, r) {
|
|
4294
4294
|
window.location.href
|
4295
4295
|
);
|
4296
4296
|
const Ee = [];
|
4297
|
-
|
4297
|
+
ve.map((Hr) => (Hr.items.forEach((ut) => {
|
4298
4298
|
Ee.find((Sr) => ut.id == Sr) || Ee.push(ut.id);
|
4299
4299
|
}), Ee.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: Ee }, window.location.href);
|
4300
4300
|
}).then(() => {
|
@@ -4304,72 +4304,72 @@ function Xi(e, t, r) {
|
|
4304
4304
|
h == "headerMain" && window.postMessage({ type: o, item: c }, window.location.href);
|
4305
4305
|
}, _e = () => {
|
4306
4306
|
const c = C.querySelectorAll(".DropDown");
|
4307
|
-
document.activeElement.blur(),
|
4307
|
+
document.activeElement.blur(), M.classList.add("isScrolling");
|
4308
4308
|
for (let x = 0; x < c.length; x++)
|
4309
|
-
c[x].style.transform = "translateX(-" +
|
4310
|
-
|
4309
|
+
c[x].style.transform = "translateX(-" + M.scrollLeft + "px)";
|
4310
|
+
M.classList.remove("isScrolling");
|
4311
4311
|
}, gr = () => {
|
4312
|
-
|
4313
|
-
c?.subGroups?.count > 0 && (r(11,
|
4312
|
+
he.forEach((c, x) => {
|
4313
|
+
c?.subGroups?.count > 0 && (r(11, J[x] = !0, J), pr(c, x));
|
4314
4314
|
});
|
4315
4315
|
}, br = (c) => {
|
4316
4316
|
let x = "";
|
4317
|
-
return c.id === "LOBBY" ? x = H : c.id === "MYGAMES" && (x =
|
4317
|
+
return c.id === "LOBBY" ? x = H : c.id === "MYGAMES" && (x = R), c.icon || x;
|
4318
4318
|
};
|
4319
4319
|
Fr(() => (window.addEventListener("message", lt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4320
4320
|
() => {
|
4321
|
-
|
4321
|
+
M.addEventListener("scroll", _e);
|
4322
4322
|
},
|
4323
4323
|
500
|
4324
4324
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4325
4325
|
window.removeEventListener("message", lt), C.removeEventListener("scroll", _e);
|
4326
4326
|
}));
|
4327
|
-
const yr = () => st(), vr = (c, x,
|
4328
|
-
Oe(c, x,
|
4329
|
-
}, _r = (c, x,
|
4330
|
-
Oe(c, x, null, null, "main"),
|
4327
|
+
const yr = () => st(), vr = (c, x, D, z, V) => {
|
4328
|
+
Oe(c, x, D, z, "secondary"), V.stopPropagation();
|
4329
|
+
}, _r = (c, x, D) => {
|
4330
|
+
Oe(c, x, null, null, "main"), D.preventDefault();
|
4331
4331
|
};
|
4332
4332
|
function Er(c) {
|
4333
|
-
|
4333
|
+
me[c ? "unshift" : "push"](() => {
|
4334
4334
|
C = c, r(5, C);
|
4335
4335
|
});
|
4336
4336
|
}
|
4337
4337
|
function xr(c) {
|
4338
|
-
|
4339
|
-
|
4338
|
+
me[c ? "unshift" : "push"](() => {
|
4339
|
+
M = c, r(12, M);
|
4340
4340
|
});
|
4341
4341
|
}
|
4342
4342
|
const Cr = () => at();
|
4343
4343
|
function wr(c) {
|
4344
|
-
|
4345
|
-
|
4344
|
+
me[c ? "unshift" : "push"](() => {
|
4345
|
+
$ = c, r(4, $);
|
4346
4346
|
});
|
4347
4347
|
}
|
4348
4348
|
return e.$$set = (c) => {
|
4349
|
-
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, s = c.onclickeventname), "actionevent" in c && r(20, o = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, w = c.showsubgroups), "categoriesicon" in c && r(3, E = c.categoriesicon), "lobbyiconimage" in c && r(29, H = c.lobbyiconimage), "mygamesiconimage" in c && r(30,
|
4349
|
+
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, s = c.onclickeventname), "actionevent" in c && r(20, o = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, w = c.showsubgroups), "categoriesicon" in c && r(3, E = c.categoriesicon), "lobbyiconimage" in c && r(29, H = c.lobbyiconimage), "mygamesiconimage" in c && r(30, R = c.mygamesiconimage), "mbsource" in c && r(31, P = c.mbsource);
|
4350
4350
|
}, e.$$.update = () => {
|
4351
4351
|
e.$$.dirty[0] & /*activeindex*/
|
4352
4352
|
2, e.$$.dirty[0] & /*translationurl*/
|
4353
|
-
33554432 && f &&
|
4354
|
-
4194320 && l &&
|
4355
|
-
8388624 && u &&
|
4353
|
+
33554432 && f && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4354
|
+
4194320 && l && $ && Qr($, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4355
|
+
8388624 && u && $ && qr($, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4356
4356
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4357
|
-
1 && P &&
|
4357
|
+
1 && P && $ && Jr($, `${P}.Style`), e.$$.dirty[0] & /*lang*/
|
4358
4358
|
268435456 && b && dr();
|
4359
4359
|
}, [
|
4360
4360
|
h,
|
4361
4361
|
d,
|
4362
4362
|
w,
|
4363
4363
|
E,
|
4364
|
-
|
4364
|
+
$,
|
4365
4365
|
C,
|
4366
|
-
|
4367
|
-
|
4366
|
+
I,
|
4367
|
+
L,
|
4368
4368
|
j,
|
4369
|
-
|
4370
|
-
ye,
|
4369
|
+
he,
|
4371
4370
|
ve,
|
4372
|
-
|
4371
|
+
J,
|
4372
|
+
M,
|
4373
4373
|
Oe,
|
4374
4374
|
st,
|
4375
4375
|
at,
|
@@ -4387,7 +4387,7 @@ function Xi(e, t, r) {
|
|
4387
4387
|
g,
|
4388
4388
|
b,
|
4389
4389
|
H,
|
4390
|
-
|
4390
|
+
R,
|
4391
4391
|
P,
|
4392
4392
|
yr,
|
4393
4393
|
vr,
|