@everymatrix/casino-slider 1.54.12 → 1.56.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-BO3KZ6XH.js → CasinoSlider-C0VZprDT.js} +812 -792
- package/components/CasinoSlider-DLUyCug0.cjs +3 -0
- package/components/{CasinoSlider-DtVLgqMm.js → CasinoSlider-swPJ54x1.js} +816 -796
- package/es2015/casino-slider.cjs +1 -1
- package/es2015/casino-slider.js +1 -1
- package/esnext/casino-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSlider-CrjoUWSZ.cjs +0 -3
@@ -1,47 +1,47 @@
|
|
1
|
-
function
|
1
|
+
function U() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Ft(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function lt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
9
|
+
function Q(e) {
|
10
|
+
e.forEach(Ft);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function et(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Rt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
let
|
19
|
-
function
|
20
|
-
return e === t ? !0 : (
|
18
|
+
let xe;
|
19
|
+
function ut(e, t) {
|
20
|
+
return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Hr(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Sr(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
29
|
-
return
|
29
|
+
return U;
|
30
30
|
}
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
34
|
+
function B(e, t) {
|
35
35
|
e.appendChild(t);
|
36
36
|
}
|
37
|
-
function
|
38
|
-
const n =
|
37
|
+
function Tr(e, t, r) {
|
38
|
+
const n = Ar(e);
|
39
39
|
if (!n.getElementById(t)) {
|
40
|
-
const i =
|
40
|
+
const i = I("style");
|
41
41
|
i.id = t, i.textContent = r, Br(n, i);
|
42
42
|
}
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Ar(e) {
|
45
45
|
if (!e) return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
47
47
|
return t && /** @type {ShadowRoot} */
|
@@ -51,48 +51,48 @@ function Ir(e) {
|
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
53
|
function Br(e, t) {
|
54
|
-
return
|
54
|
+
return B(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
57
57
|
t
|
58
58
|
), t.sheet;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function D(e, t, r) {
|
61
61
|
e.insertBefore(t, r || null);
|
62
62
|
}
|
63
|
-
function
|
63
|
+
function O(e) {
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function Ir(e, t) {
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
68
68
|
e[r] && e[r].d(t);
|
69
69
|
}
|
70
|
-
function
|
70
|
+
function I(e) {
|
71
71
|
return document.createElement(e);
|
72
72
|
}
|
73
|
-
function
|
73
|
+
function be(e) {
|
74
74
|
return document.createTextNode(e);
|
75
75
|
}
|
76
|
-
function
|
77
|
-
return
|
76
|
+
function Z() {
|
77
|
+
return be(" ");
|
78
78
|
}
|
79
|
-
function
|
80
|
-
return
|
79
|
+
function me() {
|
80
|
+
return be("");
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function Te(e, t, r, n) {
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
84
84
|
}
|
85
|
-
function
|
85
|
+
function S(e, t, r) {
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
87
87
|
}
|
88
|
-
function
|
88
|
+
function Mr(e) {
|
89
89
|
return Array.from(e.childNodes);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function tt(e, t) {
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
93
93
|
t);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function Nr(e) {
|
96
96
|
const t = {};
|
97
97
|
return e.childNodes.forEach(
|
98
98
|
/** @param {Element} node */
|
@@ -101,124 +101,124 @@ function Pr(e) {
|
|
101
101
|
}
|
102
102
|
), t;
|
103
103
|
}
|
104
|
-
let
|
105
|
-
function
|
106
|
-
|
104
|
+
let de;
|
105
|
+
function ce(e) {
|
106
|
+
de = e;
|
107
107
|
}
|
108
|
-
function
|
109
|
-
if (!
|
110
|
-
return
|
108
|
+
function Pr() {
|
109
|
+
if (!de) throw new Error("Function called outside component initialization");
|
110
|
+
return de;
|
111
111
|
}
|
112
112
|
function Lr(e) {
|
113
|
-
|
113
|
+
Pr().$$.on_mount.push(e);
|
114
114
|
}
|
115
|
-
const
|
116
|
-
let
|
117
|
-
const
|
118
|
-
let
|
119
|
-
function
|
120
|
-
|
115
|
+
const K = [], fe = [];
|
116
|
+
let ee = [];
|
117
|
+
const ht = [], Or = /* @__PURE__ */ Promise.resolve();
|
118
|
+
let je = !1;
|
119
|
+
function Fr() {
|
120
|
+
je || (je = !0, Or.then(A));
|
121
121
|
}
|
122
|
-
function
|
123
|
-
|
122
|
+
function Ve(e) {
|
123
|
+
ee.push(e);
|
124
124
|
}
|
125
|
-
const
|
126
|
-
let
|
125
|
+
const Fe = /* @__PURE__ */ new Set();
|
126
|
+
let J = 0;
|
127
127
|
function A() {
|
128
|
-
if (
|
128
|
+
if (J !== 0)
|
129
129
|
return;
|
130
|
-
const e =
|
130
|
+
const e = de;
|
131
131
|
do {
|
132
132
|
try {
|
133
|
-
for (;
|
134
|
-
const t =
|
135
|
-
|
133
|
+
for (; J < K.length; ) {
|
134
|
+
const t = K[J];
|
135
|
+
J++, ce(t), Rr(t.$$);
|
136
136
|
}
|
137
137
|
} catch (t) {
|
138
|
-
throw
|
138
|
+
throw K.length = 0, J = 0, t;
|
139
139
|
}
|
140
|
-
for (
|
141
|
-
for (let t = 0; t <
|
142
|
-
const r =
|
143
|
-
|
140
|
+
for (ce(null), K.length = 0, J = 0; fe.length; ) fe.pop()();
|
141
|
+
for (let t = 0; t < ee.length; t += 1) {
|
142
|
+
const r = ee[t];
|
143
|
+
Fe.has(r) || (Fe.add(r), r());
|
144
144
|
}
|
145
|
-
|
146
|
-
} while (
|
147
|
-
for (;
|
148
|
-
|
149
|
-
|
145
|
+
ee.length = 0;
|
146
|
+
} while (K.length);
|
147
|
+
for (; ht.length; )
|
148
|
+
ht.pop()();
|
149
|
+
je = !1, Fe.clear(), ce(e);
|
150
150
|
}
|
151
|
-
function
|
151
|
+
function Rr(e) {
|
152
152
|
if (e.fragment !== null) {
|
153
|
-
e.update(),
|
153
|
+
e.update(), Q(e.before_update);
|
154
154
|
const t = e.dirty;
|
155
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
155
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
156
156
|
}
|
157
157
|
}
|
158
|
-
function
|
158
|
+
function Dr(e) {
|
159
159
|
const t = [], r = [];
|
160
|
-
|
160
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
161
161
|
}
|
162
162
|
const Ur = /* @__PURE__ */ new Set();
|
163
|
-
function
|
163
|
+
function Dt(e, t) {
|
164
164
|
e && e.i && (Ur.delete(e), e.i(t));
|
165
165
|
}
|
166
|
-
function
|
166
|
+
function te(e) {
|
167
167
|
return e?.length !== void 0 ? e : Array.from(e);
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function Ut(e, t) {
|
170
170
|
e.d(1), t.delete(e.key);
|
171
171
|
}
|
172
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;
|
176
|
-
const d = [],
|
176
|
+
const d = [], w = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), H = [];
|
177
177
|
for (g = p; g--; ) {
|
178
|
-
const
|
179
|
-
let
|
180
|
-
|
178
|
+
const C = m(i, s, g), M = r(C);
|
179
|
+
let N = o.get(M);
|
180
|
+
N ? H.push(() => N.p(C, t)) : (N = l(M, C), N.c()), w.set(M, d[g] = N), M in b && E.set(M, Math.abs(g - b[M]));
|
181
181
|
}
|
182
|
-
const
|
183
|
-
function
|
184
|
-
|
182
|
+
const F = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
183
|
+
function G(C) {
|
184
|
+
Dt(C, 1), C.m(a, u), o.set(C.key, C), u = C.first, p--;
|
185
185
|
}
|
186
186
|
for (; f && p; ) {
|
187
|
-
const
|
188
|
-
|
187
|
+
const C = d[p - 1], M = e[f - 1], N = C.key, j = M.key;
|
188
|
+
C === M ? (u = C.first, f--, p--) : w.has(j) ? !o.has(N) || F.has(N) ? G(C) : P.has(j) ? f-- : E.get(N) > E.get(j) ? (P.add(N), G(C)) : (F.add(j), f--) : (h(M, o), f--);
|
189
189
|
}
|
190
190
|
for (; f--; ) {
|
191
|
-
const
|
192
|
-
|
191
|
+
const C = e[f];
|
192
|
+
w.has(C.key) || h(C, o);
|
193
193
|
}
|
194
|
-
for (; p; )
|
195
|
-
return
|
194
|
+
for (; p; ) G(d[p - 1]);
|
195
|
+
return Q(H), d;
|
196
196
|
}
|
197
|
-
function
|
197
|
+
function Gr(e, t, r) {
|
198
198
|
const { fragment: n, after_update: i } = e.$$;
|
199
|
-
n && n.m(t, r),
|
200
|
-
const s = e.$$.on_mount.map(
|
201
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
202
|
-
}), i.forEach(
|
199
|
+
n && n.m(t, r), Ve(() => {
|
200
|
+
const s = e.$$.on_mount.map(Ft).filter(et);
|
201
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Q(s), e.$$.on_mount = [];
|
202
|
+
}), i.forEach(Ve);
|
203
203
|
}
|
204
|
-
function
|
204
|
+
function kr(e, t) {
|
205
205
|
const r = e.$$;
|
206
|
-
r.fragment !== null && (
|
206
|
+
r.fragment !== null && (Dr(r.after_update), Q(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 && (
|
208
|
+
function $r(e, t) {
|
209
|
+
e.$$.dirty[0] === -1 && (K.push(e), Fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
210
210
|
}
|
211
|
-
function
|
212
|
-
const h =
|
213
|
-
|
211
|
+
function jr(e, t, r, n, i, s, o = null, a = [-1]) {
|
212
|
+
const h = de;
|
213
|
+
ce(e);
|
214
214
|
const l = e.$$ = {
|
215
215
|
fragment: null,
|
216
216
|
ctx: [],
|
217
217
|
// state
|
218
218
|
props: s,
|
219
|
-
update:
|
219
|
+
update: U,
|
220
220
|
not_equal: i,
|
221
|
-
bound:
|
221
|
+
bound: lt(),
|
222
222
|
// lifecycle
|
223
223
|
on_mount: [],
|
224
224
|
on_destroy: [],
|
@@ -227,7 +227,7 @@ function Vr(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: lt(),
|
231
231
|
dirty: a,
|
232
232
|
skip_bound: !1,
|
233
233
|
root: t.target || h.$$.root
|
@@ -236,19 +236,19 @@ function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
236
236
|
let u = !1;
|
237
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,
|
239
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && $r(e, m)), f;
|
240
|
+
}) : [], l.update(), u = !0, Q(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
241
241
|
if (t.hydrate) {
|
242
|
-
const m =
|
243
|
-
l.fragment && l.fragment.l(m), m.forEach(
|
242
|
+
const m = Mr(t.target);
|
243
|
+
l.fragment && l.fragment.l(m), m.forEach(O);
|
244
244
|
} else
|
245
245
|
l.fragment && l.fragment.c();
|
246
|
-
t.intro &&
|
246
|
+
t.intro && Dt(e.$$.fragment), Gr(e, t.target, t.anchor), A();
|
247
247
|
}
|
248
|
-
|
248
|
+
ce(h);
|
249
249
|
}
|
250
|
-
let
|
251
|
-
typeof HTMLElement == "function" && (
|
250
|
+
let kt;
|
251
|
+
typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
252
252
|
/** The Svelte component constructor */
|
253
253
|
$$ctor;
|
254
254
|
/** Slots */
|
@@ -290,29 +290,29 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
290
290
|
let s;
|
291
291
|
return {
|
292
292
|
c: function() {
|
293
|
-
s =
|
293
|
+
s = I("slot"), i !== "default" && S(s, "name", i);
|
294
294
|
},
|
295
295
|
/**
|
296
296
|
* @param {HTMLElement} target
|
297
297
|
* @param {HTMLElement} [anchor]
|
298
298
|
*/
|
299
299
|
m: function(h, l) {
|
300
|
-
|
300
|
+
D(h, s, l);
|
301
301
|
},
|
302
302
|
d: function(h) {
|
303
|
-
h &&
|
303
|
+
h && O(s);
|
304
304
|
}
|
305
305
|
};
|
306
306
|
};
|
307
307
|
};
|
308
308
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
309
309
|
return;
|
310
|
-
const t = {}, r =
|
310
|
+
const t = {}, r = Nr(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) {
|
314
314
|
const s = this.$$g_p(i.name);
|
315
|
-
s in this.$$d || (this.$$d[s] =
|
315
|
+
s in this.$$d || (this.$$d[s] = we(s, i.value, this.$$p_d, "toProp"));
|
316
316
|
}
|
317
317
|
for (const i in this.$$p_d)
|
318
318
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
330
330
|
this.$$r = !0;
|
331
331
|
for (const i in this.$$p_d)
|
332
332
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
333
|
-
const s =
|
333
|
+
const s = we(
|
334
334
|
i,
|
335
335
|
this.$$d[i],
|
336
336
|
this.$$p_d,
|
@@ -352,7 +352,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
352
352
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
353
353
|
// and setting attributes through setAttribute etc, this is helpful
|
354
354
|
attributeChangedCallback(e, t, r) {
|
355
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
355
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = we(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
356
356
|
}
|
357
357
|
disconnectedCallback() {
|
358
358
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
365
365
|
) || e;
|
366
366
|
}
|
367
367
|
});
|
368
|
-
function
|
368
|
+
function we(e, t, r, n) {
|
369
369
|
const i = r[e]?.type;
|
370
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
371
371
|
return t;
|
@@ -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 Vr(e, t, r, n, i, s) {
|
398
|
+
let o = class extends kt {
|
399
399
|
constructor() {
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
401
401
|
}
|
@@ -411,7 +411,7 @@ function Xr(e, t, r, n, i, s) {
|
|
411
411
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
412
412
|
},
|
413
413
|
set(h) {
|
414
|
-
h =
|
414
|
+
h = we(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
415
415
|
}
|
416
416
|
});
|
417
417
|
}), n.forEach((a) => {
|
@@ -423,7 +423,7 @@ function Xr(e, t, r, n, i, s) {
|
|
423
423
|
}), e.element = /** @type {any} */
|
424
424
|
o, o;
|
425
425
|
}
|
426
|
-
class
|
426
|
+
class Xr {
|
427
427
|
/**
|
428
428
|
* ### PRIVATE API
|
429
429
|
*
|
@@ -442,7 +442,7 @@ class Wr {
|
|
442
442
|
$$set = void 0;
|
443
443
|
/** @returns {void} */
|
444
444
|
$destroy() {
|
445
|
-
|
445
|
+
kr(this, 1), this.$destroy = U;
|
446
446
|
}
|
447
447
|
/**
|
448
448
|
* @template {Extract<keyof Events, string>} K
|
@@ -451,8 +451,8 @@ class Wr {
|
|
451
451
|
* @returns {() => void}
|
452
452
|
*/
|
453
453
|
$on(t, r) {
|
454
|
-
if (!
|
455
|
-
return
|
454
|
+
if (!et(r))
|
455
|
+
return U;
|
456
456
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
457
457
|
return n.push(r), () => {
|
458
458
|
const i = n.indexOf(r);
|
@@ -464,60 +464,83 @@ class Wr {
|
|
464
464
|
* @returns {void}
|
465
465
|
*/
|
466
466
|
$set(t) {
|
467
|
-
this.$$set && !
|
467
|
+
this.$$set && !Hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
468
|
+
}
|
469
|
+
}
|
470
|
+
const Wr = "4";
|
471
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Wr);
|
472
|
+
function zr(e, t) {
|
473
|
+
if (e) {
|
474
|
+
const r = document.createElement("style");
|
475
|
+
r.innerHTML = t, e.appendChild(r);
|
468
476
|
}
|
469
477
|
}
|
470
|
-
const zr = "4";
|
471
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zr);
|
472
|
-
const J = [];
|
473
478
|
function Zr(e, t) {
|
479
|
+
const r = new URL(t);
|
480
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
481
|
+
const i = document.createElement("style");
|
482
|
+
i.innerHTML = n, e && e.appendChild(i);
|
483
|
+
}).catch((n) => {
|
484
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
485
|
+
});
|
486
|
+
}
|
487
|
+
function Qr(e, t, r) {
|
488
|
+
if (window.emMessageBus) {
|
489
|
+
const n = document.createElement("style");
|
490
|
+
window.emMessageBus.subscribe(t, (i) => {
|
491
|
+
n.innerHTML = i, e && e.appendChild(n);
|
492
|
+
});
|
493
|
+
}
|
494
|
+
}
|
495
|
+
const Y = [];
|
496
|
+
function qr(e, t) {
|
474
497
|
return {
|
475
498
|
subscribe: Ie(e, t).subscribe
|
476
499
|
};
|
477
500
|
}
|
478
|
-
function Ie(e, t =
|
501
|
+
function Ie(e, t = U) {
|
479
502
|
let r;
|
480
503
|
const n = /* @__PURE__ */ new Set();
|
481
504
|
function i(a) {
|
482
|
-
if (
|
483
|
-
const h = !
|
505
|
+
if (Rt(e, a) && (e = a, r)) {
|
506
|
+
const h = !Y.length;
|
484
507
|
for (const l of n)
|
485
|
-
l[1](),
|
508
|
+
l[1](), Y.push(l, e);
|
486
509
|
if (h) {
|
487
|
-
for (let l = 0; l <
|
488
|
-
|
489
|
-
|
510
|
+
for (let l = 0; l < Y.length; l += 2)
|
511
|
+
Y[l][0](Y[l + 1]);
|
512
|
+
Y.length = 0;
|
490
513
|
}
|
491
514
|
}
|
492
515
|
}
|
493
516
|
function s(a) {
|
494
517
|
i(a(e));
|
495
518
|
}
|
496
|
-
function o(a, h =
|
519
|
+
function o(a, h = U) {
|
497
520
|
const l = [a, h];
|
498
|
-
return n.add(l), n.size === 1 && (r = t(i, s) ||
|
521
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || U), a(e), () => {
|
499
522
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
500
523
|
};
|
501
524
|
}
|
502
525
|
return { set: i, update: s, subscribe: o };
|
503
526
|
}
|
504
|
-
function
|
527
|
+
function se(e, t, r) {
|
505
528
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
506
529
|
if (!i.every(Boolean))
|
507
530
|
throw new Error("derived() expects stores as input, got a falsy value");
|
508
531
|
const s = t.length < 2;
|
509
|
-
return
|
532
|
+
return qr(r, (o, a) => {
|
510
533
|
let h = !1;
|
511
534
|
const l = [];
|
512
|
-
let u = 0, m =
|
535
|
+
let u = 0, m = U;
|
513
536
|
const f = () => {
|
514
537
|
if (u)
|
515
538
|
return;
|
516
539
|
m();
|
517
540
|
const g = t(n ? l[0] : l, o, a);
|
518
|
-
s ? o(g) : m =
|
541
|
+
s ? o(g) : m = et(g) ? g : U;
|
519
542
|
}, p = i.map(
|
520
|
-
(g, b) =>
|
543
|
+
(g, b) => Sr(
|
521
544
|
g,
|
522
545
|
(d) => {
|
523
546
|
l[b] = d, u &= ~(1 << b), h && f();
|
@@ -528,95 +551,95 @@ function oe(e, t, r) {
|
|
528
551
|
)
|
529
552
|
);
|
530
553
|
return h = !0, f(), function() {
|
531
|
-
|
554
|
+
Q(p), m(), h = !1;
|
532
555
|
};
|
533
556
|
});
|
534
557
|
}
|
535
|
-
function
|
558
|
+
function Jr(e) {
|
536
559
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
537
560
|
}
|
538
|
-
var
|
539
|
-
return
|
561
|
+
var Yr = function(t) {
|
562
|
+
return Kr(t) && !en(t);
|
540
563
|
};
|
541
|
-
function
|
564
|
+
function Kr(e) {
|
542
565
|
return !!e && typeof e == "object";
|
543
566
|
}
|
544
|
-
function
|
567
|
+
function en(e) {
|
545
568
|
var t = Object.prototype.toString.call(e);
|
546
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
569
|
+
return t === "[object RegExp]" || t === "[object Date]" || nn(e);
|
547
570
|
}
|
548
|
-
var
|
549
|
-
function
|
550
|
-
return e.$$typeof ===
|
571
|
+
var tn = typeof Symbol == "function" && Symbol.for, rn = tn ? Symbol.for("react.element") : 60103;
|
572
|
+
function nn(e) {
|
573
|
+
return e.$$typeof === rn;
|
551
574
|
}
|
552
|
-
function
|
575
|
+
function on(e) {
|
553
576
|
return Array.isArray(e) ? [] : {};
|
554
577
|
}
|
555
|
-
function
|
556
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
578
|
+
function pe(e, t) {
|
579
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(on(e), e, t) : e;
|
557
580
|
}
|
558
|
-
function
|
581
|
+
function sn(e, t, r) {
|
559
582
|
return e.concat(t).map(function(n) {
|
560
|
-
return
|
583
|
+
return pe(n, r);
|
561
584
|
});
|
562
585
|
}
|
563
|
-
function
|
586
|
+
function an(e, t) {
|
564
587
|
if (!t.customMerge)
|
565
|
-
return
|
588
|
+
return re;
|
566
589
|
var r = t.customMerge(e);
|
567
|
-
return typeof r == "function" ? r :
|
590
|
+
return typeof r == "function" ? r : re;
|
568
591
|
}
|
569
|
-
function
|
592
|
+
function ln(e) {
|
570
593
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
571
594
|
return Object.propertyIsEnumerable.call(e, t);
|
572
595
|
}) : [];
|
573
596
|
}
|
574
|
-
function
|
575
|
-
return Object.keys(e).concat(
|
597
|
+
function ct(e) {
|
598
|
+
return Object.keys(e).concat(ln(e));
|
576
599
|
}
|
577
|
-
function
|
600
|
+
function $t(e, t) {
|
578
601
|
try {
|
579
602
|
return t in e;
|
580
603
|
} catch {
|
581
604
|
return !1;
|
582
605
|
}
|
583
606
|
}
|
584
|
-
function
|
585
|
-
return
|
607
|
+
function un(e, t) {
|
608
|
+
return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
586
609
|
}
|
587
|
-
function
|
610
|
+
function hn(e, t, r) {
|
588
611
|
var n = {};
|
589
|
-
return r.isMergeableObject(e) &&
|
590
|
-
n[i] =
|
591
|
-
}),
|
592
|
-
|
612
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
613
|
+
n[i] = pe(e[i], r);
|
614
|
+
}), ct(t).forEach(function(i) {
|
615
|
+
un(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = an(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
593
616
|
}), n;
|
594
617
|
}
|
595
|
-
function
|
596
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
618
|
+
function re(e, t, r) {
|
619
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || sn, r.isMergeableObject = r.isMergeableObject || Yr, r.cloneUnlessOtherwiseSpecified = pe;
|
597
620
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
598
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
621
|
+
return s ? n ? r.arrayMerge(e, t, r) : hn(e, t, r) : pe(t, r);
|
599
622
|
}
|
600
|
-
|
623
|
+
re.all = function(t, r) {
|
601
624
|
if (!Array.isArray(t))
|
602
625
|
throw new Error("first argument should be an array");
|
603
626
|
return t.reduce(function(n, i) {
|
604
|
-
return
|
627
|
+
return re(n, i, r);
|
605
628
|
}, {});
|
606
629
|
};
|
607
|
-
var
|
608
|
-
const
|
609
|
-
var
|
610
|
-
return
|
630
|
+
var cn = re, fn = cn;
|
631
|
+
const mn = /* @__PURE__ */ Jr(fn);
|
632
|
+
var Xe = function(e, t) {
|
633
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
611
634
|
r.__proto__ = n;
|
612
635
|
} || function(r, n) {
|
613
636
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
614
|
-
},
|
637
|
+
}, Xe(e, t);
|
615
638
|
};
|
616
|
-
function
|
639
|
+
function Me(e, t) {
|
617
640
|
if (typeof t != "function" && t !== null)
|
618
641
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
619
|
-
|
642
|
+
Xe(e, t);
|
620
643
|
function r() {
|
621
644
|
this.constructor = e;
|
622
645
|
}
|
@@ -631,7 +654,7 @@ var _ = function() {
|
|
631
654
|
return t;
|
632
655
|
}, _.apply(this, arguments);
|
633
656
|
};
|
634
|
-
function
|
657
|
+
function dn(e, t) {
|
635
658
|
var r = {};
|
636
659
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
637
660
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -639,42 +662,42 @@ function fn(e, t) {
|
|
639
662
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
640
663
|
return r;
|
641
664
|
}
|
642
|
-
function
|
665
|
+
function Re(e, t, r) {
|
643
666
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
644
667
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
645
668
|
return e.concat(s || Array.prototype.slice.call(t));
|
646
669
|
}
|
647
|
-
function
|
648
|
-
var r = t && t.cache ? t.cache :
|
670
|
+
function De(e, t) {
|
671
|
+
var r = t && t.cache ? t.cache : En, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : bn;
|
649
672
|
return i(e, {
|
650
673
|
cache: r,
|
651
674
|
serializer: n
|
652
675
|
});
|
653
676
|
}
|
654
|
-
function
|
677
|
+
function pn(e) {
|
655
678
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
656
679
|
}
|
657
|
-
function
|
658
|
-
var i =
|
680
|
+
function gn(e, t, r, n) {
|
681
|
+
var i = pn(n) ? n : r(n), s = t.get(i);
|
659
682
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
660
683
|
}
|
661
|
-
function
|
684
|
+
function jt(e, t, r) {
|
662
685
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
663
686
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
664
687
|
}
|
665
|
-
function
|
688
|
+
function Vt(e, t, r, n, i) {
|
666
689
|
return r.bind(t, e, n, i);
|
667
690
|
}
|
668
|
-
function
|
669
|
-
var r = e.length === 1 ?
|
670
|
-
return
|
691
|
+
function bn(e, t) {
|
692
|
+
var r = e.length === 1 ? gn : jt;
|
693
|
+
return Vt(e, this, r, t.cache.create(), t.serializer);
|
671
694
|
}
|
672
|
-
function
|
673
|
-
return
|
695
|
+
function yn(e, t) {
|
696
|
+
return Vt(e, this, jt, t.cache.create(), t.serializer);
|
674
697
|
}
|
675
|
-
var
|
698
|
+
var vn = function() {
|
676
699
|
return JSON.stringify(arguments);
|
677
|
-
},
|
700
|
+
}, _n = (
|
678
701
|
/** @class */
|
679
702
|
function() {
|
680
703
|
function e() {
|
@@ -686,12 +709,12 @@ var bn = function() {
|
|
686
709
|
this.cache[t] = r;
|
687
710
|
}, e;
|
688
711
|
}()
|
689
|
-
),
|
712
|
+
), En = {
|
690
713
|
create: function() {
|
691
|
-
return new
|
714
|
+
return new _n();
|
692
715
|
}
|
693
|
-
},
|
694
|
-
variadic:
|
716
|
+
}, Ue = {
|
717
|
+
variadic: yn
|
695
718
|
}, y;
|
696
719
|
(function(e) {
|
697
720
|
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";
|
@@ -700,47 +723,47 @@ var T;
|
|
700
723
|
(function(e) {
|
701
724
|
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";
|
702
725
|
})(T || (T = {}));
|
703
|
-
var
|
726
|
+
var ne;
|
704
727
|
(function(e) {
|
705
728
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
706
|
-
})(
|
707
|
-
function
|
729
|
+
})(ne || (ne = {}));
|
730
|
+
function ft(e) {
|
708
731
|
return e.type === T.literal;
|
709
732
|
}
|
710
|
-
function
|
733
|
+
function xn(e) {
|
711
734
|
return e.type === T.argument;
|
712
735
|
}
|
713
|
-
function
|
736
|
+
function Xt(e) {
|
714
737
|
return e.type === T.number;
|
715
738
|
}
|
716
|
-
function
|
739
|
+
function Wt(e) {
|
717
740
|
return e.type === T.date;
|
718
741
|
}
|
719
|
-
function
|
742
|
+
function zt(e) {
|
720
743
|
return e.type === T.time;
|
721
744
|
}
|
722
|
-
function
|
745
|
+
function Zt(e) {
|
723
746
|
return e.type === T.select;
|
724
747
|
}
|
725
|
-
function
|
748
|
+
function Qt(e) {
|
726
749
|
return e.type === T.plural;
|
727
750
|
}
|
728
|
-
function
|
751
|
+
function Cn(e) {
|
729
752
|
return e.type === T.pound;
|
730
753
|
}
|
731
|
-
function
|
754
|
+
function qt(e) {
|
732
755
|
return e.type === T.tag;
|
733
756
|
}
|
734
|
-
function
|
735
|
-
return !!(e && typeof e == "object" && e.type ===
|
757
|
+
function Jt(e) {
|
758
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
736
759
|
}
|
737
|
-
function
|
738
|
-
return !!(e && typeof e == "object" && e.type ===
|
760
|
+
function We(e) {
|
761
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
739
762
|
}
|
740
|
-
var
|
741
|
-
function
|
763
|
+
var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
|
764
|
+
function Hn(e) {
|
742
765
|
var t = {};
|
743
|
-
return e.replace(
|
766
|
+
return e.replace(wn, function(r) {
|
744
767
|
var n = r.length;
|
745
768
|
switch (r[0]) {
|
746
769
|
case "G":
|
@@ -829,11 +852,11 @@ function Cn(e) {
|
|
829
852
|
return "";
|
830
853
|
}), t;
|
831
854
|
}
|
832
|
-
var
|
833
|
-
function
|
855
|
+
var Sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
856
|
+
function Tn(e) {
|
834
857
|
if (e.length === 0)
|
835
858
|
throw new Error("Number skeleton cannot be empty");
|
836
|
-
for (var t = e.split(
|
859
|
+
for (var t = e.split(Sn).filter(function(f) {
|
837
860
|
return f.length > 0;
|
838
861
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
839
862
|
var s = i[n], o = s.split("/");
|
@@ -848,17 +871,17 @@ function Hn(e) {
|
|
848
871
|
}
|
849
872
|
return r;
|
850
873
|
}
|
851
|
-
function
|
874
|
+
function An(e) {
|
852
875
|
return e.replace(/^(.*?)-/, "");
|
853
876
|
}
|
854
|
-
var
|
855
|
-
function
|
877
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
|
878
|
+
function dt(e) {
|
856
879
|
var t = {};
|
857
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
880
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
|
858
881
|
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)), "";
|
859
882
|
}), t;
|
860
883
|
}
|
861
|
-
function
|
884
|
+
function tr(e) {
|
862
885
|
switch (e) {
|
863
886
|
case "sign-auto":
|
864
887
|
return {
|
@@ -898,7 +921,7 @@ function er(e) {
|
|
898
921
|
};
|
899
922
|
}
|
900
923
|
}
|
901
|
-
function
|
924
|
+
function In(e) {
|
902
925
|
var t;
|
903
926
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
904
927
|
notation: "engineering"
|
@@ -906,17 +929,17 @@ function An(e) {
|
|
906
929
|
notation: "scientific"
|
907
930
|
}, e = e.slice(1)), t) {
|
908
931
|
var r = e.slice(0, 2);
|
909
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
932
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
|
910
933
|
throw new Error("Malformed concise eng/scientific notation");
|
911
934
|
t.minimumIntegerDigits = e.length;
|
912
935
|
}
|
913
936
|
return t;
|
914
937
|
}
|
915
|
-
function
|
916
|
-
var t = {}, r =
|
938
|
+
function pt(e) {
|
939
|
+
var t = {}, r = tr(e);
|
917
940
|
return r || t;
|
918
941
|
}
|
919
|
-
function
|
942
|
+
function Mn(e) {
|
920
943
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
921
944
|
var i = n[r];
|
922
945
|
switch (i.stem) {
|
@@ -940,7 +963,7 @@ function In(e) {
|
|
940
963
|
continue;
|
941
964
|
case "measure-unit":
|
942
965
|
case "unit":
|
943
|
-
t.style = "unit", t.unit =
|
966
|
+
t.style = "unit", t.unit = An(i.options[0]);
|
944
967
|
continue;
|
945
968
|
case "compact-short":
|
946
969
|
case "K":
|
@@ -952,12 +975,12 @@ function In(e) {
|
|
952
975
|
continue;
|
953
976
|
case "scientific":
|
954
977
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
955
|
-
return _(_({}, h),
|
978
|
+
return _(_({}, h), pt(l));
|
956
979
|
}, {}));
|
957
980
|
continue;
|
958
981
|
case "engineering":
|
959
982
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
960
|
-
return _(_({}, h),
|
983
|
+
return _(_({}, h), pt(l));
|
961
984
|
}, {}));
|
962
985
|
continue;
|
963
986
|
case "notation-simple":
|
@@ -1002,7 +1025,7 @@ function In(e) {
|
|
1002
1025
|
case "integer-width":
|
1003
1026
|
if (i.options.length > 1)
|
1004
1027
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1005
|
-
i.options[0].replace(
|
1028
|
+
i.options[0].replace(Bn, function(h, l, u, m, f, p) {
|
1006
1029
|
if (l)
|
1007
1030
|
t.minimumIntegerDigits = u.length;
|
1008
1031
|
else {
|
@@ -1015,32 +1038,32 @@ function In(e) {
|
|
1015
1038
|
});
|
1016
1039
|
continue;
|
1017
1040
|
}
|
1018
|
-
if (
|
1041
|
+
if (er.test(i.stem)) {
|
1019
1042
|
t.minimumIntegerDigits = i.stem.length;
|
1020
1043
|
continue;
|
1021
1044
|
}
|
1022
|
-
if (
|
1045
|
+
if (mt.test(i.stem)) {
|
1023
1046
|
if (i.options.length > 1)
|
1024
1047
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1025
|
-
i.stem.replace(
|
1048
|
+
i.stem.replace(mt, function(h, l, u, m, f, p) {
|
1026
1049
|
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), "";
|
1027
1050
|
});
|
1028
1051
|
var s = i.options[0];
|
1029
|
-
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t),
|
1052
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), dt(s)));
|
1030
1053
|
continue;
|
1031
1054
|
}
|
1032
|
-
if (
|
1033
|
-
t = _(_({}, t),
|
1055
|
+
if (Kt.test(i.stem)) {
|
1056
|
+
t = _(_({}, t), dt(i.stem));
|
1034
1057
|
continue;
|
1035
1058
|
}
|
1036
|
-
var o =
|
1059
|
+
var o = tr(i.stem);
|
1037
1060
|
o && (t = _(_({}, t), o));
|
1038
|
-
var a =
|
1061
|
+
var a = In(i.stem);
|
1039
1062
|
a && (t = _(_({}, t), a));
|
1040
1063
|
}
|
1041
1064
|
return t;
|
1042
1065
|
}
|
1043
|
-
var
|
1066
|
+
var Ce = {
|
1044
1067
|
"001": [
|
1045
1068
|
"H",
|
1046
1069
|
"h"
|
@@ -2455,13 +2478,13 @@ var xe = {
|
|
2455
2478
|
"h"
|
2456
2479
|
]
|
2457
2480
|
};
|
2458
|
-
function
|
2481
|
+
function Nn(e, t) {
|
2459
2482
|
for (var r = "", n = 0; n < e.length; n++) {
|
2460
2483
|
var i = e.charAt(n);
|
2461
2484
|
if (i === "j") {
|
2462
2485
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2463
2486
|
s++, n++;
|
2464
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l =
|
2487
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = Pn(t);
|
2465
2488
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2466
2489
|
r += h;
|
2467
2490
|
for (; o-- > 0; )
|
@@ -2470,7 +2493,7 @@ function Bn(e, t) {
|
|
2470
2493
|
}
|
2471
2494
|
return r;
|
2472
2495
|
}
|
2473
|
-
function
|
2496
|
+
function Pn(e) {
|
2474
2497
|
var t = e.hourCycle;
|
2475
2498
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2476
2499
|
e.hourCycles && // @ts-ignore
|
@@ -2489,23 +2512,23 @@ function Mn(e) {
|
|
2489
2512
|
}
|
2490
2513
|
var r = e.language, n;
|
2491
2514
|
r !== "root" && (n = e.maximize().region);
|
2492
|
-
var i =
|
2515
|
+
var i = Ce[n || ""] || Ce[r || ""] || Ce["".concat(r, "-001")] || Ce["001"];
|
2493
2516
|
return i[0];
|
2494
2517
|
}
|
2495
|
-
var Ge,
|
2518
|
+
var Ge, Ln = new RegExp("^".concat(Yt.source, "*")), On = new RegExp("".concat(Yt.source, "*$"));
|
2496
2519
|
function v(e, t) {
|
2497
2520
|
return { start: e, end: t };
|
2498
2521
|
}
|
2499
|
-
var
|
2522
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, Dn = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Gn = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, jn = $n ? Number.isSafeInteger : function(e) {
|
2500
2523
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2501
|
-
},
|
2524
|
+
}, ze = !0;
|
2502
2525
|
try {
|
2503
|
-
var
|
2504
|
-
|
2526
|
+
var Vn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2527
|
+
ze = ((Ge = Vn.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
2505
2528
|
} catch {
|
2506
|
-
|
2529
|
+
ze = !1;
|
2507
2530
|
}
|
2508
|
-
var
|
2531
|
+
var gt = Fn ? (
|
2509
2532
|
// Native
|
2510
2533
|
function(t, r, n) {
|
2511
2534
|
return t.startsWith(r, n);
|
@@ -2515,7 +2538,7 @@ var pt = On ? (
|
|
2515
2538
|
function(t, r, n) {
|
2516
2539
|
return t.slice(n, n + r.length) === r;
|
2517
2540
|
}
|
2518
|
-
),
|
2541
|
+
), Ze = Rn ? String.fromCodePoint : (
|
2519
2542
|
// IE11
|
2520
2543
|
function() {
|
2521
2544
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2527,9 +2550,9 @@ var pt = On ? (
|
|
2527
2550
|
}
|
2528
2551
|
return n;
|
2529
2552
|
}
|
2530
|
-
),
|
2553
|
+
), bt = (
|
2531
2554
|
// native
|
2532
|
-
|
2555
|
+
Dn ? Object.fromEntries : (
|
2533
2556
|
// Ponyfill
|
2534
2557
|
function(t) {
|
2535
2558
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2539,7 +2562,7 @@ var pt = On ? (
|
|
2539
2562
|
return r;
|
2540
2563
|
}
|
2541
2564
|
)
|
2542
|
-
),
|
2565
|
+
), rr = Un ? (
|
2543
2566
|
// Native
|
2544
2567
|
function(t, r) {
|
2545
2568
|
return t.codePointAt(r);
|
@@ -2553,7 +2576,7 @@ var pt = On ? (
|
|
2553
2576
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2554
2577
|
}
|
2555
2578
|
}
|
2556
|
-
),
|
2579
|
+
), Xn = Gn ? (
|
2557
2580
|
// Native
|
2558
2581
|
function(t) {
|
2559
2582
|
return t.trimStart();
|
@@ -2561,9 +2584,9 @@ var pt = On ? (
|
|
2561
2584
|
) : (
|
2562
2585
|
// Ponyfill
|
2563
2586
|
function(t) {
|
2564
|
-
return t.replace(
|
2587
|
+
return t.replace(Ln, "");
|
2565
2588
|
}
|
2566
|
-
),
|
2589
|
+
), Wn = kn ? (
|
2567
2590
|
// Native
|
2568
2591
|
function(t) {
|
2569
2592
|
return t.trimEnd();
|
@@ -2571,32 +2594,32 @@ var pt = On ? (
|
|
2571
2594
|
) : (
|
2572
2595
|
// Ponyfill
|
2573
2596
|
function(t) {
|
2574
|
-
return t.replace(
|
2597
|
+
return t.replace(On, "");
|
2575
2598
|
}
|
2576
2599
|
);
|
2577
|
-
function
|
2600
|
+
function nr(e, t) {
|
2578
2601
|
return new RegExp(e, t);
|
2579
2602
|
}
|
2580
|
-
var
|
2581
|
-
if (
|
2582
|
-
var
|
2583
|
-
|
2603
|
+
var Qe;
|
2604
|
+
if (ze) {
|
2605
|
+
var yt = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2606
|
+
Qe = function(t, r) {
|
2584
2607
|
var n;
|
2585
|
-
|
2586
|
-
var i =
|
2608
|
+
yt.lastIndex = r;
|
2609
|
+
var i = yt.exec(t);
|
2587
2610
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2588
2611
|
};
|
2589
2612
|
} else
|
2590
|
-
|
2613
|
+
Qe = function(t, r) {
|
2591
2614
|
for (var n = []; ; ) {
|
2592
|
-
var i =
|
2593
|
-
if (i === void 0 ||
|
2615
|
+
var i = rr(t, r);
|
2616
|
+
if (i === void 0 || ir(i) || qn(i))
|
2594
2617
|
break;
|
2595
2618
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2596
2619
|
}
|
2597
|
-
return
|
2620
|
+
return Ze.apply(void 0, n);
|
2598
2621
|
};
|
2599
|
-
var
|
2622
|
+
var zn = (
|
2600
2623
|
/** @class */
|
2601
2624
|
function() {
|
2602
2625
|
function e(t, r) {
|
@@ -2627,7 +2650,7 @@ var Xn = (
|
|
2627
2650
|
if (n)
|
2628
2651
|
break;
|
2629
2652
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2630
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2653
|
+
} else if (s === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
2631
2654
|
var o = this.parseTag(t, r);
|
2632
2655
|
if (o.err)
|
2633
2656
|
return o;
|
@@ -2660,7 +2683,7 @@ var Xn = (
|
|
2660
2683
|
return s;
|
2661
2684
|
var o = s.val, a = this.clonePosition();
|
2662
2685
|
if (this.bumpIf("</")) {
|
2663
|
-
if (this.isEOF() || !
|
2686
|
+
if (this.isEOF() || !qe(this.char()))
|
2664
2687
|
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2665
2688
|
var h = this.clonePosition(), l = this.parseTagName();
|
2666
2689
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -2678,7 +2701,7 @@ var Xn = (
|
|
2678
2701
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2679
2702
|
}, e.prototype.parseTagName = function() {
|
2680
2703
|
var t = this.offset();
|
2681
|
-
for (this.bump(); !this.isEOF() &&
|
2704
|
+
for (this.bump(); !this.isEOF() && Qn(this.char()); )
|
2682
2705
|
this.bump();
|
2683
2706
|
return this.message.slice(t, this.offset());
|
2684
2707
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2707,7 +2730,7 @@ var Xn = (
|
|
2707
2730
|
};
|
2708
2731
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2709
2732
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2710
|
-
!
|
2733
|
+
!Zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2711
2734
|
}, e.prototype.tryParseQuote = function(t) {
|
2712
2735
|
if (this.isEOF() || this.char() !== 39)
|
2713
2736
|
return null;
|
@@ -2741,12 +2764,12 @@ var Xn = (
|
|
2741
2764
|
r.push(n);
|
2742
2765
|
this.bump();
|
2743
2766
|
}
|
2744
|
-
return
|
2767
|
+
return Ze.apply(void 0, r);
|
2745
2768
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2746
2769
|
if (this.isEOF())
|
2747
2770
|
return null;
|
2748
2771
|
var n = this.char();
|
2749
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2772
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
2750
2773
|
}, e.prototype.parseArgument = function(t, r) {
|
2751
2774
|
var n = this.clonePosition();
|
2752
2775
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2775,7 +2798,7 @@ var Xn = (
|
|
2775
2798
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2776
2799
|
}
|
2777
2800
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2778
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2801
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
2779
2802
|
this.bumpTo(i);
|
2780
2803
|
var s = this.clonePosition(), o = v(t, s);
|
2781
2804
|
return { value: n, location: o };
|
@@ -2794,7 +2817,7 @@ var Xn = (
|
|
2794
2817
|
var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2795
2818
|
if (m.err)
|
2796
2819
|
return m;
|
2797
|
-
var f =
|
2820
|
+
var f = Wn(m.val);
|
2798
2821
|
if (f.length === 0)
|
2799
2822
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2800
2823
|
var p = v(u, this.clonePosition());
|
@@ -2804,8 +2827,8 @@ var Xn = (
|
|
2804
2827
|
if (g.err)
|
2805
2828
|
return g;
|
2806
2829
|
var b = v(i, this.clonePosition());
|
2807
|
-
if (l &&
|
2808
|
-
var d =
|
2830
|
+
if (l && gt(l?.style, "::", 0)) {
|
2831
|
+
var d = Xn(l.style.slice(2));
|
2809
2832
|
if (a === "number") {
|
2810
2833
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2811
2834
|
return m.err ? m : {
|
@@ -2815,16 +2838,16 @@ var Xn = (
|
|
2815
2838
|
} else {
|
2816
2839
|
if (d.length === 0)
|
2817
2840
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2818
|
-
var
|
2819
|
-
this.locale && (
|
2841
|
+
var w = d;
|
2842
|
+
this.locale && (w = Nn(d, this.locale));
|
2820
2843
|
var f = {
|
2821
|
-
type:
|
2822
|
-
pattern:
|
2844
|
+
type: ne.dateTime,
|
2845
|
+
pattern: w,
|
2823
2846
|
location: l.styleLocation,
|
2824
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2825
|
-
},
|
2847
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(w) : {}
|
2848
|
+
}, E = a === "date" ? T.date : T.time;
|
2826
2849
|
return {
|
2827
|
-
val: { type:
|
2850
|
+
val: { type: E, value: n, location: b, style: f },
|
2828
2851
|
err: null
|
2829
2852
|
};
|
2830
2853
|
}
|
@@ -2842,43 +2865,43 @@ var Xn = (
|
|
2842
2865
|
case "plural":
|
2843
2866
|
case "selectordinal":
|
2844
2867
|
case "select": {
|
2845
|
-
var
|
2868
|
+
var H = this.clonePosition();
|
2846
2869
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2847
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(
|
2870
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(H, _({}, H)));
|
2848
2871
|
this.bumpSpace();
|
2849
|
-
var
|
2850
|
-
if (a !== "select" &&
|
2872
|
+
var F = this.parseIdentifierIfPossible(), P = 0;
|
2873
|
+
if (a !== "select" && F.value === "offset") {
|
2851
2874
|
if (!this.bumpIf(":"))
|
2852
2875
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
2853
2876
|
this.bumpSpace();
|
2854
2877
|
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2855
2878
|
if (m.err)
|
2856
2879
|
return m;
|
2857
|
-
this.bumpSpace(),
|
2880
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), P = m.val;
|
2858
2881
|
}
|
2859
|
-
var
|
2860
|
-
if (
|
2861
|
-
return
|
2882
|
+
var G = this.tryParsePluralOrSelectOptions(t, a, r, F);
|
2883
|
+
if (G.err)
|
2884
|
+
return G;
|
2862
2885
|
var g = this.tryParseArgumentClose(i);
|
2863
2886
|
if (g.err)
|
2864
2887
|
return g;
|
2865
|
-
var
|
2888
|
+
var C = v(i, this.clonePosition());
|
2866
2889
|
return a === "select" ? {
|
2867
2890
|
val: {
|
2868
2891
|
type: T.select,
|
2869
2892
|
value: n,
|
2870
|
-
options:
|
2871
|
-
location:
|
2893
|
+
options: bt(G.val),
|
2894
|
+
location: C
|
2872
2895
|
},
|
2873
2896
|
err: null
|
2874
2897
|
} : {
|
2875
2898
|
val: {
|
2876
2899
|
type: T.plural,
|
2877
2900
|
value: n,
|
2878
|
-
options:
|
2879
|
-
offset:
|
2901
|
+
options: bt(G.val),
|
2902
|
+
offset: P,
|
2880
2903
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2881
|
-
location:
|
2904
|
+
location: C
|
2882
2905
|
},
|
2883
2906
|
err: null
|
2884
2907
|
};
|
@@ -2926,16 +2949,16 @@ var Xn = (
|
|
2926
2949
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2927
2950
|
var n = [];
|
2928
2951
|
try {
|
2929
|
-
n =
|
2952
|
+
n = Tn(t);
|
2930
2953
|
} catch {
|
2931
2954
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2932
2955
|
}
|
2933
2956
|
return {
|
2934
2957
|
val: {
|
2935
|
-
type:
|
2958
|
+
type: ne.number,
|
2936
2959
|
tokens: n,
|
2937
2960
|
location: r,
|
2938
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2961
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
2939
2962
|
},
|
2940
2963
|
err: null
|
2941
2964
|
};
|
@@ -2983,7 +3006,7 @@ var Xn = (
|
|
2983
3006
|
break;
|
2984
3007
|
}
|
2985
3008
|
var h = v(i, this.clonePosition());
|
2986
|
-
return s ? (o *= n,
|
3009
|
+
return s ? (o *= n, jn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
2987
3010
|
}, e.prototype.offset = function() {
|
2988
3011
|
return this.position.offset;
|
2989
3012
|
}, e.prototype.isEOF = function() {
|
@@ -2998,7 +3021,7 @@ var Xn = (
|
|
2998
3021
|
var t = this.position.offset;
|
2999
3022
|
if (t >= this.message.length)
|
3000
3023
|
throw Error("out of bound");
|
3001
|
-
var r =
|
3024
|
+
var r = rr(this.message, t);
|
3002
3025
|
if (r === void 0)
|
3003
3026
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3004
3027
|
return r;
|
@@ -3017,7 +3040,7 @@ var Xn = (
|
|
3017
3040
|
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);
|
3018
3041
|
}
|
3019
3042
|
}, e.prototype.bumpIf = function(t) {
|
3020
|
-
if (
|
3043
|
+
if (gt(this.message, t, this.offset())) {
|
3021
3044
|
for (var r = 0; r < t.length; r++)
|
3022
3045
|
this.bump();
|
3023
3046
|
return !0;
|
@@ -3039,7 +3062,7 @@ var Xn = (
|
|
3039
3062
|
break;
|
3040
3063
|
}
|
3041
3064
|
}, e.prototype.bumpSpace = function() {
|
3042
|
-
for (; !this.isEOF() &&
|
3065
|
+
for (; !this.isEOF() && ir(this.char()); )
|
3043
3066
|
this.bump();
|
3044
3067
|
}, e.prototype.peek = function() {
|
3045
3068
|
if (this.isEOF())
|
@@ -3049,46 +3072,46 @@ var Xn = (
|
|
3049
3072
|
}, e;
|
3050
3073
|
}()
|
3051
3074
|
);
|
3052
|
-
function
|
3075
|
+
function qe(e) {
|
3053
3076
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3054
3077
|
}
|
3055
|
-
function
|
3056
|
-
return
|
3078
|
+
function Zn(e) {
|
3079
|
+
return qe(e) || e === 47;
|
3057
3080
|
}
|
3058
|
-
function
|
3081
|
+
function Qn(e) {
|
3059
3082
|
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;
|
3060
3083
|
}
|
3061
|
-
function
|
3084
|
+
function ir(e) {
|
3062
3085
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3063
3086
|
}
|
3064
|
-
function
|
3087
|
+
function qn(e) {
|
3065
3088
|
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;
|
3066
3089
|
}
|
3067
|
-
function
|
3090
|
+
function Je(e) {
|
3068
3091
|
e.forEach(function(t) {
|
3069
|
-
if (delete t.location,
|
3092
|
+
if (delete t.location, Zt(t) || Qt(t))
|
3070
3093
|
for (var r in t.options)
|
3071
|
-
delete t.options[r].location,
|
3072
|
-
else
|
3094
|
+
delete t.options[r].location, Je(t.options[r].value);
|
3095
|
+
else Xt(t) && Jt(t.style) || (Wt(t) || zt(t)) && We(t.style) ? delete t.style.location : qt(t) && Je(t.children);
|
3073
3096
|
});
|
3074
3097
|
}
|
3075
|
-
function
|
3098
|
+
function Jn(e, t) {
|
3076
3099
|
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3077
|
-
var r = new
|
3100
|
+
var r = new zn(e, t).parse();
|
3078
3101
|
if (r.err) {
|
3079
3102
|
var n = SyntaxError(y[r.err.kind]);
|
3080
3103
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3081
3104
|
}
|
3082
|
-
return t?.captureLocation ||
|
3105
|
+
return t?.captureLocation || Je(r.val), r.val;
|
3083
3106
|
}
|
3084
|
-
var
|
3107
|
+
var ie;
|
3085
3108
|
(function(e) {
|
3086
3109
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3087
|
-
})(
|
3088
|
-
var
|
3110
|
+
})(ie || (ie = {}));
|
3111
|
+
var Ne = (
|
3089
3112
|
/** @class */
|
3090
3113
|
function(e) {
|
3091
|
-
|
3114
|
+
Me(t, e);
|
3092
3115
|
function t(r, n, i) {
|
3093
3116
|
var s = e.call(this, r) || this;
|
3094
3117
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3097,155 +3120,155 @@ var Me = (
|
|
3097
3120
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3098
3121
|
}, t;
|
3099
3122
|
}(Error)
|
3100
|
-
),
|
3123
|
+
), vt = (
|
3101
3124
|
/** @class */
|
3102
3125
|
function(e) {
|
3103
|
-
|
3126
|
+
Me(t, e);
|
3104
3127
|
function t(r, n, i, s) {
|
3105
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3128
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, s) || this;
|
3106
3129
|
}
|
3107
3130
|
return t;
|
3108
|
-
}(
|
3109
|
-
),
|
3131
|
+
}(Ne)
|
3132
|
+
), Yn = (
|
3110
3133
|
/** @class */
|
3111
3134
|
function(e) {
|
3112
|
-
|
3135
|
+
Me(t, e);
|
3113
3136
|
function t(r, n, i) {
|
3114
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3137
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
3115
3138
|
}
|
3116
3139
|
return t;
|
3117
|
-
}(
|
3118
|
-
),
|
3140
|
+
}(Ne)
|
3141
|
+
), Kn = (
|
3119
3142
|
/** @class */
|
3120
3143
|
function(e) {
|
3121
|
-
|
3144
|
+
Me(t, e);
|
3122
3145
|
function t(r, n) {
|
3123
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3146
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
3124
3147
|
}
|
3125
3148
|
return t;
|
3126
|
-
}(
|
3127
|
-
),
|
3149
|
+
}(Ne)
|
3150
|
+
), L;
|
3128
3151
|
(function(e) {
|
3129
3152
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3130
|
-
})(
|
3131
|
-
function
|
3153
|
+
})(L || (L = {}));
|
3154
|
+
function ei(e) {
|
3132
3155
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3133
3156
|
var n = t[t.length - 1];
|
3134
|
-
return !n || n.type !==
|
3157
|
+
return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
|
3135
3158
|
}, []);
|
3136
3159
|
}
|
3137
|
-
function
|
3160
|
+
function ti(e) {
|
3138
3161
|
return typeof e == "function";
|
3139
3162
|
}
|
3140
|
-
function
|
3141
|
-
if (e.length === 1 &&
|
3163
|
+
function He(e, t, r, n, i, s, o) {
|
3164
|
+
if (e.length === 1 && ft(e[0]))
|
3142
3165
|
return [
|
3143
3166
|
{
|
3144
|
-
type:
|
3167
|
+
type: L.literal,
|
3145
3168
|
value: e[0].value
|
3146
3169
|
}
|
3147
3170
|
];
|
3148
3171
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3149
3172
|
var u = l[h];
|
3150
|
-
if (
|
3173
|
+
if (ft(u)) {
|
3151
3174
|
a.push({
|
3152
|
-
type:
|
3175
|
+
type: L.literal,
|
3153
3176
|
value: u.value
|
3154
3177
|
});
|
3155
3178
|
continue;
|
3156
3179
|
}
|
3157
|
-
if (
|
3180
|
+
if (Cn(u)) {
|
3158
3181
|
typeof s == "number" && a.push({
|
3159
|
-
type:
|
3182
|
+
type: L.literal,
|
3160
3183
|
value: r.getNumberFormat(t).format(s)
|
3161
3184
|
});
|
3162
3185
|
continue;
|
3163
3186
|
}
|
3164
3187
|
var m = u.value;
|
3165
3188
|
if (!(i && m in i))
|
3166
|
-
throw new
|
3189
|
+
throw new Kn(m, o);
|
3167
3190
|
var f = i[m];
|
3168
|
-
if (
|
3191
|
+
if (xn(u)) {
|
3169
3192
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3170
|
-
type: typeof f == "string" ?
|
3193
|
+
type: typeof f == "string" ? L.literal : L.object,
|
3171
3194
|
value: f
|
3172
3195
|
});
|
3173
3196
|
continue;
|
3174
3197
|
}
|
3175
|
-
if (
|
3176
|
-
var p = typeof u.style == "string" ? n.date[u.style] :
|
3198
|
+
if (Wt(u)) {
|
3199
|
+
var p = typeof u.style == "string" ? n.date[u.style] : We(u.style) ? u.style.parsedOptions : void 0;
|
3177
3200
|
a.push({
|
3178
|
-
type:
|
3201
|
+
type: L.literal,
|
3179
3202
|
value: r.getDateTimeFormat(t, p).format(f)
|
3180
3203
|
});
|
3181
3204
|
continue;
|
3182
3205
|
}
|
3183
|
-
if (
|
3184
|
-
var p = typeof u.style == "string" ? n.time[u.style] :
|
3206
|
+
if (zt(u)) {
|
3207
|
+
var p = typeof u.style == "string" ? n.time[u.style] : We(u.style) ? u.style.parsedOptions : n.time.medium;
|
3185
3208
|
a.push({
|
3186
|
-
type:
|
3209
|
+
type: L.literal,
|
3187
3210
|
value: r.getDateTimeFormat(t, p).format(f)
|
3188
3211
|
});
|
3189
3212
|
continue;
|
3190
3213
|
}
|
3191
|
-
if (
|
3192
|
-
var p = typeof u.style == "string" ? n.number[u.style] :
|
3214
|
+
if (Xt(u)) {
|
3215
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Jt(u.style) ? u.style.parsedOptions : void 0;
|
3193
3216
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3194
|
-
type:
|
3217
|
+
type: L.literal,
|
3195
3218
|
value: r.getNumberFormat(t, p).format(f)
|
3196
3219
|
});
|
3197
3220
|
continue;
|
3198
3221
|
}
|
3199
|
-
if (
|
3222
|
+
if (qt(u)) {
|
3200
3223
|
var g = u.children, b = u.value, d = i[b];
|
3201
|
-
if (!
|
3202
|
-
throw new
|
3203
|
-
var
|
3204
|
-
return
|
3224
|
+
if (!ti(d))
|
3225
|
+
throw new Yn(b, "function", o);
|
3226
|
+
var w = He(g, t, r, n, i, s), E = d(w.map(function(P) {
|
3227
|
+
return P.value;
|
3205
3228
|
}));
|
3206
|
-
Array.isArray(
|
3229
|
+
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(P) {
|
3207
3230
|
return {
|
3208
|
-
type: typeof
|
3209
|
-
value:
|
3231
|
+
type: typeof P == "string" ? L.literal : L.object,
|
3232
|
+
value: P
|
3210
3233
|
};
|
3211
3234
|
}));
|
3212
3235
|
}
|
3213
|
-
if (
|
3214
|
-
var
|
3215
|
-
if (!
|
3216
|
-
throw new
|
3217
|
-
a.push.apply(a,
|
3236
|
+
if (Zt(u)) {
|
3237
|
+
var H = u.options[f] || u.options.other;
|
3238
|
+
if (!H)
|
3239
|
+
throw new vt(u.value, f, Object.keys(u.options), o);
|
3240
|
+
a.push.apply(a, He(H.value, t, r, n, i));
|
3218
3241
|
continue;
|
3219
3242
|
}
|
3220
|
-
if (
|
3221
|
-
var
|
3222
|
-
if (!
|
3243
|
+
if (Qt(u)) {
|
3244
|
+
var H = u.options["=".concat(f)];
|
3245
|
+
if (!H) {
|
3223
3246
|
if (!Intl.PluralRules)
|
3224
|
-
throw new
|
3247
|
+
throw new Ne(`Intl.PluralRules is not available in this environment.
|
3225
3248
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3226
|
-
`,
|
3227
|
-
var
|
3228
|
-
|
3249
|
+
`, ie.MISSING_INTL_API, o);
|
3250
|
+
var F = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3251
|
+
H = u.options[F] || u.options.other;
|
3229
3252
|
}
|
3230
|
-
if (!
|
3231
|
-
throw new
|
3232
|
-
a.push.apply(a,
|
3253
|
+
if (!H)
|
3254
|
+
throw new vt(u.value, f, Object.keys(u.options), o);
|
3255
|
+
a.push.apply(a, He(H.value, t, r, n, i, f - (u.offset || 0)));
|
3233
3256
|
continue;
|
3234
3257
|
}
|
3235
3258
|
}
|
3236
|
-
return
|
3259
|
+
return ei(a);
|
3237
3260
|
}
|
3238
|
-
function
|
3261
|
+
function ri(e, t) {
|
3239
3262
|
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3240
3263
|
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
3241
3264
|
}, {})) : e;
|
3242
3265
|
}
|
3243
|
-
function
|
3266
|
+
function ni(e, t) {
|
3244
3267
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3245
|
-
return r[n] =
|
3268
|
+
return r[n] = ri(e[n], t[n]), r;
|
3246
3269
|
}, _({}, e)) : e;
|
3247
3270
|
}
|
3248
|
-
function
|
3271
|
+
function ke(e) {
|
3249
3272
|
return {
|
3250
3273
|
create: function() {
|
3251
3274
|
return {
|
@@ -3259,39 +3282,39 @@ function Ue(e) {
|
|
3259
3282
|
}
|
3260
3283
|
};
|
3261
3284
|
}
|
3262
|
-
function
|
3285
|
+
function ii(e) {
|
3263
3286
|
return e === void 0 && (e = {
|
3264
3287
|
number: {},
|
3265
3288
|
dateTime: {},
|
3266
3289
|
pluralRules: {}
|
3267
3290
|
}), {
|
3268
|
-
getNumberFormat:
|
3291
|
+
getNumberFormat: De(function() {
|
3269
3292
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3270
3293
|
r[n] = arguments[n];
|
3271
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3294
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
3272
3295
|
}, {
|
3273
|
-
cache:
|
3274
|
-
strategy:
|
3296
|
+
cache: ke(e.number),
|
3297
|
+
strategy: Ue.variadic
|
3275
3298
|
}),
|
3276
|
-
getDateTimeFormat:
|
3299
|
+
getDateTimeFormat: De(function() {
|
3277
3300
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3278
3301
|
r[n] = arguments[n];
|
3279
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3302
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
3280
3303
|
}, {
|
3281
|
-
cache:
|
3282
|
-
strategy:
|
3304
|
+
cache: ke(e.dateTime),
|
3305
|
+
strategy: Ue.variadic
|
3283
3306
|
}),
|
3284
|
-
getPluralRules:
|
3307
|
+
getPluralRules: De(function() {
|
3285
3308
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3286
3309
|
r[n] = arguments[n];
|
3287
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3310
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
3288
3311
|
}, {
|
3289
|
-
cache:
|
3290
|
-
strategy:
|
3312
|
+
cache: ke(e.pluralRules),
|
3313
|
+
strategy: Ue.variadic
|
3291
3314
|
})
|
3292
3315
|
};
|
3293
3316
|
}
|
3294
|
-
var
|
3317
|
+
var oi = (
|
3295
3318
|
/** @class */
|
3296
3319
|
function() {
|
3297
3320
|
function e(t, r, n, i) {
|
@@ -3306,11 +3329,11 @@ var ni = (
|
|
3306
3329
|
if (l.length === 1)
|
3307
3330
|
return l[0].value;
|
3308
3331
|
var u = l.reduce(function(m, f) {
|
3309
|
-
return !m.length || f.type !==
|
3332
|
+
return !m.length || f.type !== L.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
3310
3333
|
}, []);
|
3311
3334
|
return u.length <= 1 ? u[0] || "" : u;
|
3312
3335
|
}, this.formatToParts = function(h) {
|
3313
|
-
return
|
3336
|
+
return He(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
3314
3337
|
}, this.resolvedOptions = function() {
|
3315
3338
|
var h;
|
3316
3339
|
return {
|
@@ -3323,13 +3346,13 @@ var ni = (
|
|
3323
3346
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3324
3347
|
var o = i || {};
|
3325
3348
|
o.formatters;
|
3326
|
-
var a =
|
3349
|
+
var a = dn(o, ["formatters"]);
|
3327
3350
|
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
3328
3351
|
} else
|
3329
3352
|
this.ast = t;
|
3330
3353
|
if (!Array.isArray(this.ast))
|
3331
3354
|
throw new TypeError("A message must be provided as a String or AST.");
|
3332
|
-
this.formats =
|
3355
|
+
this.formats = ni(e.formats, n), this.formatters = i && i.formatters || ii(this.formatterCache);
|
3333
3356
|
}
|
3334
3357
|
return Object.defineProperty(e, "defaultLocale", {
|
3335
3358
|
get: function() {
|
@@ -3342,7 +3365,7 @@ var ni = (
|
|
3342
3365
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3343
3366
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3344
3367
|
}
|
3345
|
-
}, e.__parse =
|
3368
|
+
}, e.__parse = Jn, e.formats = {
|
3346
3369
|
number: {
|
3347
3370
|
integer: {
|
3348
3371
|
maximumFractionDigits: 0
|
@@ -3403,7 +3426,7 @@ var ni = (
|
|
3403
3426
|
}, e;
|
3404
3427
|
}()
|
3405
3428
|
);
|
3406
|
-
function
|
3429
|
+
function si(e, t) {
|
3407
3430
|
if (t == null)
|
3408
3431
|
return;
|
3409
3432
|
if (t in e)
|
@@ -3424,92 +3447,92 @@ function ii(e, t) {
|
|
3424
3447
|
n = void 0;
|
3425
3448
|
return n;
|
3426
3449
|
}
|
3427
|
-
const
|
3450
|
+
const X = {}, ai = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), or = (e, t) => {
|
3428
3451
|
if (t == null)
|
3429
3452
|
return;
|
3430
|
-
if (t in
|
3431
|
-
return
|
3432
|
-
const r =
|
3453
|
+
if (t in X && e in X[t])
|
3454
|
+
return X[t][e];
|
3455
|
+
const r = Pe(t);
|
3433
3456
|
for (let n = 0; n < r.length; n++) {
|
3434
|
-
const i = r[n], s =
|
3457
|
+
const i = r[n], s = ui(i, e);
|
3435
3458
|
if (s)
|
3436
|
-
return
|
3459
|
+
return ai(e, t, s);
|
3437
3460
|
}
|
3438
3461
|
};
|
3439
|
-
let
|
3440
|
-
const
|
3441
|
-
function
|
3442
|
-
return
|
3462
|
+
let rt;
|
3463
|
+
const ae = Ie({});
|
3464
|
+
function li(e) {
|
3465
|
+
return rt[e] || null;
|
3443
3466
|
}
|
3444
|
-
function
|
3445
|
-
return e in
|
3467
|
+
function sr(e) {
|
3468
|
+
return e in rt;
|
3446
3469
|
}
|
3447
|
-
function
|
3448
|
-
if (!
|
3470
|
+
function ui(e, t) {
|
3471
|
+
if (!sr(e))
|
3449
3472
|
return null;
|
3450
|
-
const r =
|
3451
|
-
return
|
3473
|
+
const r = li(e);
|
3474
|
+
return si(r, t);
|
3452
3475
|
}
|
3453
|
-
function
|
3476
|
+
function hi(e) {
|
3454
3477
|
if (e == null)
|
3455
3478
|
return;
|
3456
|
-
const t =
|
3479
|
+
const t = Pe(e);
|
3457
3480
|
for (let r = 0; r < t.length; r++) {
|
3458
3481
|
const n = t[r];
|
3459
|
-
if (
|
3482
|
+
if (sr(n))
|
3460
3483
|
return n;
|
3461
3484
|
}
|
3462
3485
|
}
|
3463
|
-
function
|
3464
|
-
delete
|
3486
|
+
function ar(e, ...t) {
|
3487
|
+
delete X[e], ae.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
|
3465
3488
|
}
|
3466
|
-
|
3467
|
-
[
|
3489
|
+
se(
|
3490
|
+
[ae],
|
3468
3491
|
([e]) => Object.keys(e)
|
3469
3492
|
);
|
3470
|
-
|
3471
|
-
const
|
3472
|
-
function
|
3473
|
-
|
3493
|
+
ae.subscribe((e) => rt = e);
|
3494
|
+
const Se = {};
|
3495
|
+
function ci(e, t) {
|
3496
|
+
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
3474
3497
|
}
|
3475
|
-
function
|
3476
|
-
return
|
3498
|
+
function lr(e) {
|
3499
|
+
return Se[e];
|
3477
3500
|
}
|
3478
|
-
function
|
3479
|
-
return
|
3480
|
-
const r =
|
3501
|
+
function fi(e) {
|
3502
|
+
return Pe(e).map((t) => {
|
3503
|
+
const r = lr(t);
|
3481
3504
|
return [t, r ? [...r] : []];
|
3482
3505
|
}).filter(([, t]) => t.length > 0);
|
3483
3506
|
}
|
3484
|
-
function
|
3485
|
-
return e == null ? !1 :
|
3507
|
+
function Ye(e) {
|
3508
|
+
return e == null ? !1 : Pe(e).some(
|
3486
3509
|
(t) => {
|
3487
3510
|
var r;
|
3488
|
-
return (r =
|
3511
|
+
return (r = lr(t)) == null ? void 0 : r.size;
|
3489
3512
|
}
|
3490
3513
|
);
|
3491
3514
|
}
|
3492
|
-
function
|
3515
|
+
function mi(e, t) {
|
3493
3516
|
return Promise.all(
|
3494
|
-
t.map((n) => (
|
3495
|
-
).then((n) =>
|
3496
|
-
}
|
3497
|
-
const
|
3498
|
-
function
|
3499
|
-
if (!
|
3500
|
-
return e in
|
3501
|
-
const t =
|
3502
|
-
return
|
3517
|
+
t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
|
3518
|
+
).then((n) => ar(e, ...n));
|
3519
|
+
}
|
3520
|
+
const he = {};
|
3521
|
+
function ur(e) {
|
3522
|
+
if (!Ye(e))
|
3523
|
+
return e in he ? he[e] : Promise.resolve();
|
3524
|
+
const t = fi(e);
|
3525
|
+
return he[e] = Promise.all(
|
3503
3526
|
t.map(
|
3504
|
-
([r, n]) =>
|
3527
|
+
([r, n]) => mi(r, n)
|
3505
3528
|
)
|
3506
3529
|
).then(() => {
|
3507
|
-
if (
|
3508
|
-
return
|
3509
|
-
delete
|
3510
|
-
}),
|
3530
|
+
if (Ye(e))
|
3531
|
+
return ur(e);
|
3532
|
+
delete he[e];
|
3533
|
+
}), he[e];
|
3511
3534
|
}
|
3512
|
-
const
|
3535
|
+
const di = {
|
3513
3536
|
number: {
|
3514
3537
|
scientific: { notation: "scientific" },
|
3515
3538
|
engineering: { notation: "engineering" },
|
@@ -3538,150 +3561,150 @@ const fi = {
|
|
3538
3561
|
timeZoneName: "short"
|
3539
3562
|
}
|
3540
3563
|
}
|
3541
|
-
},
|
3564
|
+
}, pi = {
|
3542
3565
|
fallbackLocale: null,
|
3543
3566
|
loadingDelay: 200,
|
3544
|
-
formats:
|
3567
|
+
formats: di,
|
3545
3568
|
warnOnMissingMessages: !0,
|
3546
3569
|
handleMissingMessage: void 0,
|
3547
3570
|
ignoreTag: !0
|
3548
|
-
},
|
3549
|
-
function
|
3550
|
-
return
|
3571
|
+
}, gi = pi;
|
3572
|
+
function oe() {
|
3573
|
+
return gi;
|
3551
3574
|
}
|
3552
|
-
const
|
3553
|
-
var
|
3575
|
+
const $e = Ie(!1);
|
3576
|
+
var bi = Object.defineProperty, yi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xi = (e, t) => {
|
3554
3577
|
for (var r in t || (t = {}))
|
3555
|
-
|
3556
|
-
if (
|
3557
|
-
for (var r of
|
3558
|
-
|
3578
|
+
_i.call(t, r) && Et(e, r, t[r]);
|
3579
|
+
if (_t)
|
3580
|
+
for (var r of _t(t))
|
3581
|
+
Ei.call(t, r) && Et(e, r, t[r]);
|
3559
3582
|
return e;
|
3560
|
-
},
|
3561
|
-
let
|
3562
|
-
const
|
3563
|
-
function
|
3583
|
+
}, Ci = (e, t) => yi(e, vi(t));
|
3584
|
+
let Ke;
|
3585
|
+
const Ae = Ie(null);
|
3586
|
+
function xt(e) {
|
3564
3587
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3565
3588
|
}
|
3566
|
-
function
|
3567
|
-
const r =
|
3568
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3589
|
+
function Pe(e, t = oe().fallbackLocale) {
|
3590
|
+
const r = xt(e);
|
3591
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
3569
3592
|
}
|
3570
|
-
function
|
3571
|
-
return
|
3593
|
+
function q() {
|
3594
|
+
return Ke ?? void 0;
|
3572
3595
|
}
|
3573
|
-
|
3574
|
-
|
3596
|
+
Ae.subscribe((e) => {
|
3597
|
+
Ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3575
3598
|
});
|
3576
|
-
const
|
3577
|
-
if (e &&
|
3578
|
-
const { loadingDelay: t } =
|
3599
|
+
const wi = (e) => {
|
3600
|
+
if (e && hi(e) && Ye(e)) {
|
3601
|
+
const { loadingDelay: t } = oe();
|
3579
3602
|
let r;
|
3580
|
-
return typeof window < "u" &&
|
3581
|
-
() =>
|
3603
|
+
return typeof window < "u" && q() != null && t ? r = window.setTimeout(
|
3604
|
+
() => $e.set(!0),
|
3582
3605
|
t
|
3583
|
-
) :
|
3584
|
-
|
3606
|
+
) : $e.set(!0), ur(e).then(() => {
|
3607
|
+
Ae.set(e);
|
3585
3608
|
}).finally(() => {
|
3586
|
-
clearTimeout(r),
|
3609
|
+
clearTimeout(r), $e.set(!1);
|
3587
3610
|
});
|
3588
3611
|
}
|
3589
|
-
return
|
3590
|
-
},
|
3591
|
-
set:
|
3592
|
-
}),
|
3612
|
+
return Ae.set(e);
|
3613
|
+
}, W = Ci(xi({}, Ae), {
|
3614
|
+
set: wi
|
3615
|
+
}), Le = (e) => {
|
3593
3616
|
const t = /* @__PURE__ */ Object.create(null);
|
3594
3617
|
return (n) => {
|
3595
3618
|
const i = JSON.stringify(n);
|
3596
3619
|
return i in t ? t[i] : t[i] = e(n);
|
3597
3620
|
};
|
3598
3621
|
};
|
3599
|
-
var
|
3622
|
+
var Hi = Object.defineProperty, Be = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
3600
3623
|
for (var r in t || (t = {}))
|
3601
|
-
|
3602
|
-
if (
|
3603
|
-
for (var r of
|
3604
|
-
|
3624
|
+
hr.call(t, r) && Ct(e, r, t[r]);
|
3625
|
+
if (Be)
|
3626
|
+
for (var r of Be(t))
|
3627
|
+
cr.call(t, r) && Ct(e, r, t[r]);
|
3605
3628
|
return e;
|
3606
|
-
},
|
3629
|
+
}, le = (e, t) => {
|
3607
3630
|
var r = {};
|
3608
3631
|
for (var n in e)
|
3609
|
-
|
3610
|
-
if (e != null &&
|
3611
|
-
for (var n of
|
3612
|
-
t.indexOf(n) < 0 &&
|
3632
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3633
|
+
if (e != null && Be)
|
3634
|
+
for (var n of Be(e))
|
3635
|
+
t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
|
3613
3636
|
return r;
|
3614
3637
|
};
|
3615
|
-
const
|
3616
|
-
const { formats: r } =
|
3638
|
+
const ge = (e, t) => {
|
3639
|
+
const { formats: r } = oe();
|
3617
3640
|
if (e in r && t in r[e])
|
3618
3641
|
return r[e][t];
|
3619
3642
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3620
|
-
},
|
3643
|
+
}, Si = Le(
|
3621
3644
|
(e) => {
|
3622
|
-
var t = e, { locale: r, format: n } = t, i =
|
3645
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
3623
3646
|
if (r == null)
|
3624
3647
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3625
|
-
return n && (i =
|
3648
|
+
return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
|
3626
3649
|
}
|
3627
|
-
),
|
3650
|
+
), Ti = Le(
|
3628
3651
|
(e) => {
|
3629
|
-
var t = e, { locale: r, format: n } = t, i =
|
3652
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
3630
3653
|
if (r == null)
|
3631
3654
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3632
|
-
return n ? i =
|
3655
|
+
return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
|
3633
3656
|
}
|
3634
|
-
),
|
3657
|
+
), Ai = Le(
|
3635
3658
|
(e) => {
|
3636
|
-
var t = e, { locale: r, format: n } = t, i =
|
3659
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
3637
3660
|
if (r == null)
|
3638
3661
|
throw new Error(
|
3639
3662
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3640
3663
|
);
|
3641
|
-
return n ? i =
|
3664
|
+
return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
|
3642
3665
|
}
|
3643
|
-
),
|
3666
|
+
), Bi = (e = {}) => {
|
3644
3667
|
var t = e, {
|
3645
|
-
locale: r =
|
3646
|
-
} = t, n =
|
3668
|
+
locale: r = q()
|
3669
|
+
} = t, n = le(t, [
|
3647
3670
|
"locale"
|
3648
3671
|
]);
|
3649
|
-
return
|
3650
|
-
},
|
3672
|
+
return Si(nt({ locale: r }, n));
|
3673
|
+
}, Ii = (e = {}) => {
|
3651
3674
|
var t = e, {
|
3652
|
-
locale: r =
|
3653
|
-
} = t, n =
|
3675
|
+
locale: r = q()
|
3676
|
+
} = t, n = le(t, [
|
3654
3677
|
"locale"
|
3655
3678
|
]);
|
3656
|
-
return
|
3657
|
-
},
|
3679
|
+
return Ti(nt({ locale: r }, n));
|
3680
|
+
}, Mi = (e = {}) => {
|
3658
3681
|
var t = e, {
|
3659
|
-
locale: r =
|
3660
|
-
} = t, n =
|
3682
|
+
locale: r = q()
|
3683
|
+
} = t, n = le(t, [
|
3661
3684
|
"locale"
|
3662
3685
|
]);
|
3663
|
-
return
|
3664
|
-
},
|
3686
|
+
return Ai(nt({ locale: r }, n));
|
3687
|
+
}, Ni = Le(
|
3665
3688
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3666
|
-
(e, t =
|
3667
|
-
ignoreTag:
|
3689
|
+
(e, t = q()) => new oi(e, t, oe().formats, {
|
3690
|
+
ignoreTag: oe().ignoreTag
|
3668
3691
|
})
|
3669
|
-
),
|
3692
|
+
), Pi = (e, t = {}) => {
|
3670
3693
|
var r, n, i, s;
|
3671
3694
|
let o = t;
|
3672
3695
|
typeof e == "object" && (o = e, e = o.id);
|
3673
3696
|
const {
|
3674
3697
|
values: a,
|
3675
|
-
locale: h =
|
3698
|
+
locale: h = q(),
|
3676
3699
|
default: l
|
3677
3700
|
} = o;
|
3678
3701
|
if (h == null)
|
3679
3702
|
throw new Error(
|
3680
3703
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3681
3704
|
);
|
3682
|
-
let u =
|
3705
|
+
let u = or(e, h);
|
3683
3706
|
if (!u)
|
3684
|
-
u = (s = (i = (n = (r =
|
3707
|
+
u = (s = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
3685
3708
|
else if (typeof u != "string")
|
3686
3709
|
return console.warn(
|
3687
3710
|
`[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.`
|
@@ -3690,7 +3713,7 @@ const pe = (e, t) => {
|
|
3690
3713
|
return u;
|
3691
3714
|
let m = u;
|
3692
3715
|
try {
|
3693
|
-
m =
|
3716
|
+
m = Ni(u, h).format(a);
|
3694
3717
|
} catch (f) {
|
3695
3718
|
f instanceof Error && console.warn(
|
3696
3719
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3698,24 +3721,24 @@ const pe = (e, t) => {
|
|
3698
3721
|
);
|
3699
3722
|
}
|
3700
3723
|
return m;
|
3701
|
-
},
|
3702
|
-
|
3703
|
-
|
3704
|
-
|
3705
|
-
|
3706
|
-
|
3707
|
-
function
|
3708
|
-
|
3709
|
-
r == null && (
|
3724
|
+
}, Li = (e, t) => Mi(t).format(e), Oi = (e, t) => Ii(t).format(e), Fi = (e, t) => Bi(t).format(e), Ri = (e, t = q()) => or(e, t);
|
3725
|
+
se([W, ae], () => Pi);
|
3726
|
+
se([W], () => Li);
|
3727
|
+
se([W], () => Oi);
|
3728
|
+
se([W], () => Fi);
|
3729
|
+
se([W, ae], () => Ri);
|
3730
|
+
function Di({ withLocale: e, translations: t }) {
|
3731
|
+
W.subscribe((r) => {
|
3732
|
+
r == null && (ae.set(t), W.set(e));
|
3710
3733
|
});
|
3711
3734
|
}
|
3712
|
-
function
|
3713
|
-
|
3735
|
+
function wt(e, t) {
|
3736
|
+
ar(e, t);
|
3714
3737
|
}
|
3715
|
-
function
|
3716
|
-
|
3738
|
+
function Ui(e) {
|
3739
|
+
W.set(e);
|
3717
3740
|
}
|
3718
|
-
const
|
3741
|
+
const Ht = {
|
3719
3742
|
en: {
|
3720
3743
|
login: "Login",
|
3721
3744
|
register: "Register",
|
@@ -3772,103 +3795,103 @@ const wt = {
|
|
3772
3795
|
deposit: "Deposit"
|
3773
3796
|
}
|
3774
3797
|
};
|
3775
|
-
function
|
3776
|
-
|
3777
|
-
}
|
3778
|
-
function Ht(e, t, r) {
|
3779
|
-
const n = e.slice();
|
3780
|
-
return n[49] = t[r], n[51] = r, n;
|
3798
|
+
function Gi(e) {
|
3799
|
+
Tr(e, "svelte-1lder3j", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;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
3800
|
}
|
3782
3801
|
function St(e, t, r) {
|
3783
3802
|
const n = e.slice();
|
3784
|
-
return n[
|
3803
|
+
return n[48] = t[r], n[50] = r, n;
|
3785
3804
|
}
|
3786
3805
|
function Tt(e, t, r) {
|
3787
3806
|
const n = e.slice();
|
3788
|
-
return n[
|
3807
|
+
return n[51] = t[r], n;
|
3808
|
+
}
|
3809
|
+
function At(e, t, r) {
|
3810
|
+
const n = e.slice();
|
3811
|
+
return n[54] = t[r], n[56] = r, n;
|
3789
3812
|
}
|
3790
|
-
function
|
3791
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3813
|
+
function Bt(e) {
|
3814
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = te(
|
3792
3815
|
/*sliderdata*/
|
3793
3816
|
e[9]
|
3794
3817
|
);
|
3795
3818
|
const s = (o) => (
|
3796
3819
|
/*category*/
|
3797
|
-
o[
|
3820
|
+
o[48].id
|
3798
3821
|
);
|
3799
3822
|
for (let o = 0; o < i.length; o += 1) {
|
3800
|
-
let a =
|
3823
|
+
let a = St(e, i, o), h = s(a);
|
3801
3824
|
r.set(h, t[o] = Ot(h, a));
|
3802
3825
|
}
|
3803
3826
|
return {
|
3804
3827
|
c() {
|
3805
3828
|
for (let o = 0; o < t.length; o += 1)
|
3806
3829
|
t[o].c();
|
3807
|
-
n =
|
3830
|
+
n = me();
|
3808
3831
|
},
|
3809
3832
|
m(o, a) {
|
3810
3833
|
for (let h = 0; h < t.length; h += 1)
|
3811
3834
|
t[h] && t[h].m(o, a);
|
3812
|
-
|
3835
|
+
D(o, n, a);
|
3813
3836
|
},
|
3814
3837
|
p(o, a) {
|
3815
3838
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3816
|
-
77775 && (i =
|
3839
|
+
77775 && (i = te(
|
3817
3840
|
/*sliderdata*/
|
3818
3841
|
o[9]
|
3819
|
-
), t = Gt(t, a, s, 1, o, i, r, n.parentNode,
|
3842
|
+
), t = Gt(t, a, s, 1, o, i, r, n.parentNode, Ut, Ot, n, St));
|
3820
3843
|
},
|
3821
3844
|
d(o) {
|
3822
|
-
o &&
|
3845
|
+
o && O(n);
|
3823
3846
|
for (let a = 0; a < t.length; a += 1)
|
3824
3847
|
t[a].d(o);
|
3825
3848
|
}
|
3826
3849
|
};
|
3827
3850
|
}
|
3828
|
-
function
|
3851
|
+
function ki(e) {
|
3829
3852
|
let t, r = (
|
3830
3853
|
/*category*/
|
3831
|
-
e[
|
3854
|
+
e[48].name + ""
|
3832
3855
|
), n;
|
3833
3856
|
return {
|
3834
3857
|
c() {
|
3835
|
-
t =
|
3858
|
+
t = I("button"), n = be(r), S(t, "class", "CategoryButton");
|
3836
3859
|
},
|
3837
3860
|
m(i, s) {
|
3838
|
-
|
3861
|
+
D(i, t, s), B(t, n);
|
3839
3862
|
},
|
3840
3863
|
p(i, s) {
|
3841
3864
|
s[0] & /*sliderdata*/
|
3842
3865
|
512 && r !== (r = /*category*/
|
3843
|
-
i[
|
3866
|
+
i[48].name + "") && tt(n, r);
|
3844
3867
|
},
|
3845
3868
|
d(i) {
|
3846
|
-
i &&
|
3869
|
+
i && O(t);
|
3847
3870
|
}
|
3848
3871
|
};
|
3849
3872
|
}
|
3850
|
-
function
|
3873
|
+
function $i(e) {
|
3851
3874
|
let t, r = (
|
3852
3875
|
/*category*/
|
3853
|
-
e[
|
3876
|
+
e[48].label + ""
|
3854
3877
|
), n, i;
|
3855
3878
|
return {
|
3856
3879
|
c() {
|
3857
|
-
t =
|
3858
|
-
e[
|
3880
|
+
t = I("a"), n = be(r), S(t, "href", i = /*category*/
|
3881
|
+
e[48].path);
|
3859
3882
|
},
|
3860
3883
|
m(s, o) {
|
3861
|
-
|
3884
|
+
D(s, t, o), B(t, n);
|
3862
3885
|
},
|
3863
3886
|
p(s, o) {
|
3864
3887
|
o[0] & /*sliderdata*/
|
3865
3888
|
512 && r !== (r = /*category*/
|
3866
|
-
s[
|
3889
|
+
s[48].label + "") && tt(n, r), o[0] & /*sliderdata*/
|
3867
3890
|
512 && i !== (i = /*category*/
|
3868
|
-
s[
|
3891
|
+
s[48].path) && S(t, "href", i);
|
3869
3892
|
},
|
3870
3893
|
d(s) {
|
3871
|
-
s &&
|
3894
|
+
s && O(t);
|
3872
3895
|
}
|
3873
3896
|
};
|
3874
3897
|
}
|
@@ -3876,55 +3899,55 @@ function It(e) {
|
|
3876
3899
|
let t, r = (
|
3877
3900
|
/*subGroupsData*/
|
3878
3901
|
e[10].length > 0 && /*showsubgroups*/
|
3879
|
-
e[2] == "true" &&
|
3902
|
+
e[2] == "true" && Mt(e)
|
3880
3903
|
);
|
3881
3904
|
return {
|
3882
3905
|
c() {
|
3883
|
-
r && r.c(), t =
|
3906
|
+
r && r.c(), t = me();
|
3884
3907
|
},
|
3885
3908
|
m(n, i) {
|
3886
|
-
r && r.m(n, i),
|
3909
|
+
r && r.m(n, i), D(n, t, i);
|
3887
3910
|
},
|
3888
3911
|
p(n, i) {
|
3889
3912
|
/*subGroupsData*/
|
3890
3913
|
n[10].length > 0 && /*showsubgroups*/
|
3891
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3914
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Mt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3892
3915
|
},
|
3893
3916
|
d(n) {
|
3894
|
-
n &&
|
3917
|
+
n && O(t), r && r.d(n);
|
3895
3918
|
}
|
3896
3919
|
};
|
3897
3920
|
}
|
3898
|
-
function
|
3899
|
-
let t, r =
|
3921
|
+
function Mt(e) {
|
3922
|
+
let t, r = te(
|
3900
3923
|
/*subGroupsData*/
|
3901
3924
|
e[10]
|
3902
3925
|
), n = [];
|
3903
3926
|
for (let i = 0; i < r.length; i += 1)
|
3904
|
-
n[i] =
|
3927
|
+
n[i] = Lt(Tt(e, r, i));
|
3905
3928
|
return {
|
3906
3929
|
c() {
|
3907
|
-
t =
|
3930
|
+
t = I("ul");
|
3908
3931
|
for (let i = 0; i < n.length; i += 1)
|
3909
3932
|
n[i].c();
|
3910
|
-
|
3933
|
+
S(t, "class", "DropDown");
|
3911
3934
|
},
|
3912
3935
|
m(i, s) {
|
3913
|
-
|
3936
|
+
D(i, t, s);
|
3914
3937
|
for (let o = 0; o < n.length; o += 1)
|
3915
3938
|
n[o] && n[o].m(t, null);
|
3916
3939
|
},
|
3917
3940
|
p(i, s) {
|
3918
3941
|
if (s[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
3919
3942
|
10176) {
|
3920
|
-
r =
|
3943
|
+
r = te(
|
3921
3944
|
/*subGroupsData*/
|
3922
3945
|
i[10]
|
3923
3946
|
);
|
3924
3947
|
let o;
|
3925
3948
|
for (o = 0; o < r.length; o += 1) {
|
3926
|
-
const a =
|
3927
|
-
n[o] ? n[o].p(a, s) : (n[o] =
|
3949
|
+
const a = Tt(i, r, o);
|
3950
|
+
n[o] ? n[o].p(a, s) : (n[o] = Lt(a), n[o].c(), n[o].m(t, null));
|
3928
3951
|
}
|
3929
3952
|
for (; o < n.length; o += 1)
|
3930
3953
|
n[o].d(1);
|
@@ -3932,119 +3955,119 @@ function Bt(e) {
|
|
3932
3955
|
}
|
3933
3956
|
},
|
3934
3957
|
d(i) {
|
3935
|
-
i &&
|
3958
|
+
i && O(t), Ir(n, i);
|
3936
3959
|
}
|
3937
3960
|
};
|
3938
3961
|
}
|
3939
|
-
function
|
3962
|
+
function Nt(e) {
|
3940
3963
|
let t, r, n = (
|
3941
3964
|
/*subGroupItem*/
|
3942
|
-
e[
|
3965
|
+
e[54]?.name + ""
|
3943
3966
|
), i, s, o, a, h;
|
3944
3967
|
function l(...u) {
|
3945
3968
|
return (
|
3946
3969
|
/*click_handler_1*/
|
3947
|
-
e[
|
3970
|
+
e[33](
|
3948
3971
|
/*category*/
|
3949
|
-
e[
|
3972
|
+
e[48],
|
3950
3973
|
/*index*/
|
3951
|
-
e[
|
3974
|
+
e[50],
|
3952
3975
|
/*subGroupItem*/
|
3953
|
-
e[
|
3976
|
+
e[54],
|
3954
3977
|
/*subindex*/
|
3955
|
-
e[
|
3978
|
+
e[56],
|
3956
3979
|
...u
|
3957
3980
|
)
|
3958
3981
|
);
|
3959
3982
|
}
|
3960
3983
|
return {
|
3961
3984
|
c() {
|
3962
|
-
t =
|
3963
|
-
(e[
|
3985
|
+
t = I("li"), r = I("a"), i = be(n), o = Z(), S(r, "class", s = "SubDropDown " + /*index*/
|
3986
|
+
(e[50] == /*activeIndex*/
|
3964
3987
|
e[6] && /*activeSubIndex*/
|
3965
3988
|
(e[7] == /*subindex*/
|
3966
|
-
e[
|
3989
|
+
e[56] || /*prevSubIndex*/
|
3967
3990
|
e[8] == /*subindex*/
|
3968
|
-
e[
|
3991
|
+
e[56]) ? "active" : ""));
|
3969
3992
|
},
|
3970
3993
|
m(u, m) {
|
3971
|
-
|
3994
|
+
D(u, t, m), B(t, r), B(r, i), B(t, o), a || (h = Te(t, "click", l), a = !0);
|
3972
3995
|
},
|
3973
3996
|
p(u, m) {
|
3974
3997
|
e = u, m[0] & /*subGroupsData*/
|
3975
3998
|
1024 && n !== (n = /*subGroupItem*/
|
3976
|
-
e[
|
3999
|
+
e[54]?.name + "") && tt(i, n), m[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
3977
4000
|
1984 && s !== (s = "SubDropDown " + /*index*/
|
3978
|
-
(e[
|
4001
|
+
(e[50] == /*activeIndex*/
|
3979
4002
|
e[6] && /*activeSubIndex*/
|
3980
4003
|
(e[7] == /*subindex*/
|
3981
|
-
e[
|
4004
|
+
e[56] || /*prevSubIndex*/
|
3982
4005
|
e[8] == /*subindex*/
|
3983
|
-
e[
|
4006
|
+
e[56]) ? "active" : "")) && S(r, "class", s);
|
3984
4007
|
},
|
3985
4008
|
d(u) {
|
3986
|
-
u &&
|
4009
|
+
u && O(t), a = !1, h();
|
3987
4010
|
}
|
3988
4011
|
};
|
3989
4012
|
}
|
3990
|
-
function
|
4013
|
+
function Pt(e, t) {
|
3991
4014
|
let r, n, i = (
|
3992
4015
|
/*index*/
|
3993
|
-
t[
|
3994
|
-
t[
|
4016
|
+
t[50] == /*subGroup*/
|
4017
|
+
t[51].index && Nt(t)
|
3995
4018
|
);
|
3996
4019
|
return {
|
3997
4020
|
key: e,
|
3998
4021
|
first: null,
|
3999
4022
|
c() {
|
4000
|
-
r =
|
4023
|
+
r = me(), i && i.c(), n = me(), this.first = r;
|
4001
4024
|
},
|
4002
4025
|
m(s, o) {
|
4003
|
-
|
4026
|
+
D(s, r, o), i && i.m(s, o), D(s, n, o);
|
4004
4027
|
},
|
4005
4028
|
p(s, o) {
|
4006
4029
|
t = s, /*index*/
|
4007
|
-
t[
|
4008
|
-
t[
|
4030
|
+
t[50] == /*subGroup*/
|
4031
|
+
t[51].index ? i ? i.p(t, o) : (i = Nt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4009
4032
|
},
|
4010
4033
|
d(s) {
|
4011
|
-
s && (
|
4034
|
+
s && (O(r), O(n)), i && i.d(s);
|
4012
4035
|
}
|
4013
4036
|
};
|
4014
4037
|
}
|
4015
|
-
function
|
4016
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4038
|
+
function Lt(e) {
|
4039
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = te(
|
4017
4040
|
/*subGroup*/
|
4018
|
-
e[
|
4041
|
+
e[51].items
|
4019
4042
|
);
|
4020
4043
|
const s = (o) => (
|
4021
4044
|
/*subGroupItem*/
|
4022
|
-
o[
|
4045
|
+
o[54].id
|
4023
4046
|
);
|
4024
4047
|
for (let o = 0; o < i.length; o += 1) {
|
4025
|
-
let a =
|
4026
|
-
r.set(h, t[o] =
|
4048
|
+
let a = At(e, i, o), h = s(a);
|
4049
|
+
r.set(h, t[o] = Pt(h, a));
|
4027
4050
|
}
|
4028
4051
|
return {
|
4029
4052
|
c() {
|
4030
4053
|
for (let o = 0; o < t.length; o += 1)
|
4031
4054
|
t[o].c();
|
4032
|
-
n =
|
4055
|
+
n = me();
|
4033
4056
|
},
|
4034
4057
|
m(o, a) {
|
4035
4058
|
for (let h = 0; h < t.length; h += 1)
|
4036
4059
|
t[h] && t[h].m(o, a);
|
4037
|
-
|
4060
|
+
D(o, n, a);
|
4038
4061
|
},
|
4039
4062
|
p(o, a) {
|
4040
4063
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4041
|
-
10176 && (i =
|
4064
|
+
10176 && (i = te(
|
4042
4065
|
/*subGroup*/
|
4043
|
-
o[
|
4044
|
-
), t = Gt(t, a, s, 1, o, i, r, n.parentNode,
|
4066
|
+
o[51].items
|
4067
|
+
), t = Gt(t, a, s, 1, o, i, r, n.parentNode, Ut, Pt, n, At));
|
4045
4068
|
},
|
4046
4069
|
d(o) {
|
4047
|
-
o &&
|
4070
|
+
o && O(n);
|
4048
4071
|
for (let a = 0; a < t.length; a += 1)
|
4049
4072
|
t[a].d(o);
|
4050
4073
|
}
|
@@ -4052,28 +4075,28 @@ function Pt(e) {
|
|
4052
4075
|
}
|
4053
4076
|
function Ot(e, t) {
|
4054
4077
|
let r, n, i, s, o, a, h, l, u, m, f;
|
4055
|
-
function p(
|
4078
|
+
function p(E, H) {
|
4056
4079
|
return (
|
4057
4080
|
/*location*/
|
4058
|
-
|
4081
|
+
E[0] === "headerMain" ? $i : ki
|
4059
4082
|
);
|
4060
4083
|
}
|
4061
4084
|
let g = p(t), b = g(t), d = (
|
4062
4085
|
/*itemsActive*/
|
4063
4086
|
t[11][
|
4064
4087
|
/*index*/
|
4065
|
-
t[
|
4088
|
+
t[50]
|
4066
4089
|
] == !0 && It(t)
|
4067
4090
|
);
|
4068
|
-
function
|
4091
|
+
function w(...E) {
|
4069
4092
|
return (
|
4070
4093
|
/*click_handler_2*/
|
4071
|
-
t[
|
4094
|
+
t[34](
|
4072
4095
|
/*category*/
|
4073
|
-
t[
|
4096
|
+
t[48],
|
4074
4097
|
/*index*/
|
4075
|
-
t[
|
4076
|
-
...
|
4098
|
+
t[50],
|
4099
|
+
...E
|
4077
4100
|
)
|
4078
4101
|
);
|
4079
4102
|
}
|
@@ -4081,260 +4104,249 @@ function Ot(e, t) {
|
|
4081
4104
|
key: e,
|
4082
4105
|
first: null,
|
4083
4106
|
c() {
|
4084
|
-
r =
|
4085
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
4107
|
+
r = I("li"), n = I("div"), i = I("img"), a = Z(), b.c(), h = Z(), d && d.c(), l = Z(), S(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
|
4108
|
+
(t[3] === "true" ? "" : "DisplayNone")), ut(i.src, o = /*handleSrc*/
|
4086
4109
|
t[16](
|
4087
4110
|
/*category*/
|
4088
|
-
t[
|
4089
|
-
)) ||
|
4111
|
+
t[48]
|
4112
|
+
)) || S(i, "src", o), S(n, "class", "CategoryIcon"), S(r, "class", u = "CarouselItem " + /*activeindex*/
|
4090
4113
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4091
4114
|
/*activeindex*/
|
4092
4115
|
t[1]?.split("$").pop() == /*category*/
|
4093
|
-
t[
|
4116
|
+
t[48].id.split("$").pop() ? "active" : ""
|
4094
4117
|
) : (
|
4095
4118
|
/*activeindex*/
|
4096
4119
|
t[1] == /*category*/
|
4097
|
-
t[
|
4120
|
+
t[48].id ? "active" : ""
|
4098
4121
|
)) + " " + /*location*/
|
4099
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")),
|
4122
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4100
4123
|
},
|
4101
|
-
m(
|
4102
|
-
|
4124
|
+
m(E, H) {
|
4125
|
+
D(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);
|
4103
4126
|
},
|
4104
|
-
p(
|
4105
|
-
t =
|
4127
|
+
p(E, H) {
|
4128
|
+
t = E, H[0] & /*categoriesicon*/
|
4106
4129
|
8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
|
4107
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
4108
|
-
512 && !
|
4130
|
+
(t[3] === "true" ? "" : "DisplayNone")) && S(i, "class", s), H[0] & /*sliderdata*/
|
4131
|
+
512 && !ut(i.src, o = /*handleSrc*/
|
4109
4132
|
t[16](
|
4110
4133
|
/*category*/
|
4111
|
-
t[
|
4112
|
-
)) &&
|
4134
|
+
t[48]
|
4135
|
+
)) && S(i, "src", o), g === (g = p(t)) && b ? b.p(t, H) : (b.d(1), b = g(t), b && (b.c(), b.m(r, h))), /*itemsActive*/
|
4113
4136
|
t[11][
|
4114
4137
|
/*index*/
|
4115
|
-
t[
|
4116
|
-
] == !0 ? d ? d.p(t,
|
4138
|
+
t[50]
|
4139
|
+
] == !0 ? d ? d.p(t, H) : (d = It(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), H[0] & /*activeindex, sliderdata, location*/
|
4117
4140
|
515 && u !== (u = "CarouselItem " + /*activeindex*/
|
4118
4141
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4119
4142
|
/*activeindex*/
|
4120
4143
|
t[1]?.split("$").pop() == /*category*/
|
4121
|
-
t[
|
4144
|
+
t[48].id.split("$").pop() ? "active" : ""
|
4122
4145
|
) : (
|
4123
4146
|
/*activeindex*/
|
4124
4147
|
t[1] == /*category*/
|
4125
|
-
t[
|
4148
|
+
t[48].id ? "active" : ""
|
4126
4149
|
)) + " " + /*location*/
|
4127
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
4150
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && S(r, "class", u);
|
4128
4151
|
},
|
4129
|
-
d(
|
4130
|
-
|
4152
|
+
d(E) {
|
4153
|
+
E && O(r), b.d(), d && d.d(), m = !1, f();
|
4131
4154
|
}
|
4132
4155
|
};
|
4133
4156
|
}
|
4134
|
-
function
|
4157
|
+
function ji(e) {
|
4135
4158
|
let t, r, n, i, s, o, a, h, l, u, m, f, p, g, b, d = (
|
4136
4159
|
/*sliderdata*/
|
4137
|
-
e[9].length > 0 &&
|
4160
|
+
e[9].length > 0 && Bt(e)
|
4138
4161
|
);
|
4139
4162
|
return {
|
4140
4163
|
c() {
|
4141
|
-
t =
|
4142
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
4143
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0),
|
4164
|
+
t = I("div"), r = I("div"), n = I("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 = I("div"), o = I("ul"), a = I("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = Z(), d && d.c(), l = Z(), u = I("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"), S(u, "class", "CarouselRightArrow"), S(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4165
|
+
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), S(r, "style", f = /*location*/
|
4166
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), S(t, "class", p = "CarouselWrapper " + /*location*/
|
4144
4167
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4145
4168
|
},
|
4146
|
-
m(
|
4147
|
-
|
4148
|
-
|
4169
|
+
m(w, E) {
|
4170
|
+
D(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 = [
|
4171
|
+
Te(
|
4149
4172
|
n,
|
4150
4173
|
"click",
|
4151
4174
|
/*click_handler*/
|
4152
|
-
e[
|
4175
|
+
e[32]
|
4153
4176
|
),
|
4154
|
-
|
4177
|
+
Te(
|
4155
4178
|
u,
|
4156
4179
|
"click",
|
4157
4180
|
/*click_handler_3*/
|
4158
|
-
e[
|
4181
|
+
e[37]
|
4159
4182
|
)
|
4160
4183
|
], g = !0);
|
4161
4184
|
},
|
4162
|
-
p(
|
4185
|
+
p(w, E) {
|
4163
4186
|
/*sliderdata*/
|
4164
|
-
|
4187
|
+
w[9].length > 0 ? d ? d.p(w, E) : (d = Bt(w), d.c(), d.m(o, null)) : d && (d.d(1), d = null), E[0] & /*location*/
|
4165
4188
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4166
|
-
|
4189
|
+
w[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && S(r, "class", m), E[0] & /*location*/
|
4167
4190
|
1 && f !== (f = /*location*/
|
4168
|
-
|
4191
|
+
w[0] === "headerMain" ? "max-width: auto" : void 0) && S(r, "style", f), E[0] & /*location*/
|
4169
4192
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4170
|
-
(
|
4193
|
+
(w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && S(t, "class", p);
|
4171
4194
|
},
|
4172
|
-
i:
|
4173
|
-
o:
|
4174
|
-
d(
|
4175
|
-
|
4195
|
+
i: U,
|
4196
|
+
o: U,
|
4197
|
+
d(w) {
|
4198
|
+
w && O(t), d && d.d(), e[35](null), e[36](null), e[38](null), g = !1, Q(b);
|
4176
4199
|
}
|
4177
4200
|
};
|
4178
4201
|
}
|
4179
|
-
function
|
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:
|
4181
|
-
|
4182
|
-
const
|
4183
|
-
fetch(f).then((
|
4184
|
-
Object.keys(
|
4185
|
-
|
4202
|
+
function Vi(e, t, r) {
|
4203
|
+
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: F = "" } = t, { mbsource: P = "" } = t;
|
4204
|
+
Di({ withLocale: "en", translations: {} });
|
4205
|
+
const G = () => {
|
4206
|
+
fetch(f).then((x) => x.json()).then((x) => {
|
4207
|
+
Object.keys(x).forEach((R) => {
|
4208
|
+
wt(R, x[R]);
|
4186
4209
|
});
|
4187
|
-
}).catch((
|
4188
|
-
console.log(
|
4210
|
+
}).catch((x) => {
|
4211
|
+
console.log(x);
|
4189
4212
|
});
|
4190
4213
|
};
|
4191
|
-
Object.keys(
|
4192
|
-
|
4214
|
+
Object.keys(Ht).forEach((c) => {
|
4215
|
+
wt(c, Ht[c]);
|
4193
4216
|
});
|
4194
|
-
let
|
4195
|
-
if (!(c.subGroups &&
|
4196
|
-
if (
|
4217
|
+
let C, M, N, j, k, ue = [], ye = [], ve = [], $, Oe = (c, x, R, z, V) => {
|
4218
|
+
if (!(c.subGroups && z === null)) {
|
4219
|
+
if (_e(), r(6, M = x), r(6, M), V != "secondary") {
|
4197
4220
|
window.postMessage(
|
4198
4221
|
{
|
4199
4222
|
type: o == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4200
4223
|
buzz: "1",
|
4201
4224
|
itemId: c.id,
|
4202
|
-
index:
|
4225
|
+
index: x,
|
4203
4226
|
item: c,
|
4204
4227
|
path: c.path,
|
4205
4228
|
externalLink: c.externalLink || !1,
|
4206
4229
|
target: c.attrs?.target || null
|
4207
4230
|
},
|
4208
4231
|
window.location.href
|
4209
|
-
), r(7,
|
4232
|
+
), r(7, N = null), r(8, j = null);
|
4210
4233
|
return;
|
4211
4234
|
}
|
4212
|
-
r(7,
|
4235
|
+
r(7, N = z), r(7, N), r(8, j = N), window.postMessage(
|
4213
4236
|
{
|
4214
4237
|
type: o,
|
4215
|
-
itemId:
|
4216
|
-
subIndex:
|
4217
|
-
subItem:
|
4238
|
+
itemId: R.id,
|
4239
|
+
subIndex: z,
|
4240
|
+
subItem: R
|
4218
4241
|
},
|
4219
4242
|
window.location.href
|
4220
4243
|
);
|
4221
4244
|
}
|
4222
|
-
}, nt = () => {
|
4223
|
-
$.scrollBy({ left: -250, behavior: "smooth" });
|
4224
4245
|
}, it = () => {
|
4246
|
+
$.scrollBy({ left: -250, behavior: "smooth" });
|
4247
|
+
}, ot = () => {
|
4225
4248
|
$.scrollBy({ left: 250, behavior: "smooth" });
|
4226
4249
|
};
|
4227
|
-
const
|
4228
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4229
|
-
|
4250
|
+
const st = (c) => {
|
4251
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, ue = c.data.data), r(11, ve = new Array(ue.length).fill(!1)), w == "true" && dr()), c.data.type == "GoToHomepage" && ue.forEach((x, R) => {
|
4252
|
+
x.path.endsWith("/casino") && (r(6, M = R), r(6, M));
|
4230
4253
|
});
|
4231
|
-
},
|
4232
|
-
|
4233
|
-
},
|
4254
|
+
}, fr = () => {
|
4255
|
+
Ui(b);
|
4256
|
+
}, mr = (c, x, R) => {
|
4234
4257
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4235
|
-
let
|
4236
|
-
fetch(
|
4237
|
-
|
4258
|
+
let z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4259
|
+
fetch(z.href).then((V) => V.json()).then((V) => {
|
4260
|
+
V.index = x, r(10, ye = ye.concat(V)), w == "false" && window.postMessage(
|
4238
4261
|
{
|
4239
4262
|
type: o,
|
4240
4263
|
itemId: c.id,
|
4241
|
-
index:
|
4264
|
+
index: x,
|
4242
4265
|
item: c
|
4243
4266
|
},
|
4244
4267
|
window.location.href
|
4245
4268
|
);
|
4246
|
-
const
|
4247
|
-
|
4248
|
-
|
4249
|
-
}),
|
4269
|
+
const Ee = [];
|
4270
|
+
ye.map((Cr) => (Cr.items.forEach((at) => {
|
4271
|
+
Ee.find((wr) => at.id == wr) || Ee.push(at.id);
|
4272
|
+
}), Ee.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: Ee }, window.location.href);
|
4250
4273
|
}).then(() => {
|
4251
|
-
|
4274
|
+
C.querySelectorAll(".DropDown") && _e();
|
4252
4275
|
});
|
4253
4276
|
}
|
4254
4277
|
h == "headerMain" && window.postMessage({ type: o, item: c }, window.location.href);
|
4255
|
-
},
|
4256
|
-
const c =
|
4278
|
+
}, _e = () => {
|
4279
|
+
const c = C.querySelectorAll(".DropDown");
|
4257
4280
|
document.activeElement.blur(), $.classList.add("isScrolling");
|
4258
|
-
for (let
|
4259
|
-
c[
|
4281
|
+
for (let x = 0; x < c.length; x++)
|
4282
|
+
c[x].style.transform = "translateX(-" + $.scrollLeft + "px)";
|
4260
4283
|
$.classList.remove("isScrolling");
|
4261
|
-
}, mr = () => {
|
4262
|
-
le.forEach((c, E) => {
|
4263
|
-
c?.subGroups?.count > 0 && (r(11, ye[E] = !0, ye), fr(c, E));
|
4264
|
-
});
|
4265
4284
|
}, dr = () => {
|
4266
|
-
|
4267
|
-
|
4268
|
-
}, pr = () => {
|
4269
|
-
let c = document.createElement("style"), E = new URL(u);
|
4270
|
-
fetch(E.href).then((N) => N.text()).then((N) => {
|
4271
|
-
c.innerHTML = N, setTimeout(
|
4272
|
-
() => {
|
4273
|
-
G.appendChild(c);
|
4274
|
-
},
|
4275
|
-
1
|
4276
|
-
);
|
4285
|
+
ue.forEach((c, x) => {
|
4286
|
+
c?.subGroups?.count > 0 && (r(11, ve[x] = !0, ve), mr(c, x));
|
4277
4287
|
});
|
4278
|
-
},
|
4279
|
-
let
|
4280
|
-
return c.id === "LOBBY" ?
|
4288
|
+
}, pr = (c) => {
|
4289
|
+
let x = "";
|
4290
|
+
return c.id === "LOBBY" ? x = H : c.id === "MYGAMES" && (x = F), c.icon || x;
|
4281
4291
|
};
|
4282
|
-
Lr(() => (window.addEventListener("message",
|
4292
|
+
Lr(() => (window.addEventListener("message", st, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4283
4293
|
() => {
|
4284
|
-
$.addEventListener("scroll",
|
4294
|
+
$.addEventListener("scroll", _e);
|
4285
4295
|
},
|
4286
4296
|
500
|
4287
4297
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4288
|
-
window.removeEventListener("message",
|
4298
|
+
window.removeEventListener("message", st), C.removeEventListener("scroll", _e);
|
4289
4299
|
}));
|
4290
|
-
const
|
4291
|
-
Oe(c,
|
4292
|
-
},
|
4293
|
-
Oe(c,
|
4300
|
+
const gr = () => it(), br = (c, x, R, z, V) => {
|
4301
|
+
Oe(c, x, R, z, "secondary"), V.stopPropagation();
|
4302
|
+
}, yr = (c, x, R) => {
|
4303
|
+
Oe(c, x, null, null, "main"), R.preventDefault();
|
4294
4304
|
};
|
4295
|
-
function
|
4296
|
-
|
4297
|
-
|
4305
|
+
function vr(c) {
|
4306
|
+
fe[c ? "unshift" : "push"](() => {
|
4307
|
+
C = c, r(5, C);
|
4298
4308
|
});
|
4299
4309
|
}
|
4300
|
-
function
|
4301
|
-
|
4310
|
+
function _r(c) {
|
4311
|
+
fe[c ? "unshift" : "push"](() => {
|
4302
4312
|
$ = c, r(12, $);
|
4303
4313
|
});
|
4304
4314
|
}
|
4305
|
-
const
|
4306
|
-
function
|
4307
|
-
|
4308
|
-
|
4315
|
+
const Er = () => ot();
|
4316
|
+
function xr(c) {
|
4317
|
+
fe[c ? "unshift" : "push"](() => {
|
4318
|
+
k = c, r(4, k);
|
4309
4319
|
});
|
4310
4320
|
}
|
4311
4321
|
return e.$$set = (c) => {
|
4312
|
-
"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,
|
4322
|
+
"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, F = c.mygamesiconimage), "mbsource" in c && r(31, P = c.mbsource);
|
4313
4323
|
}, e.$$.update = () => {
|
4314
4324
|
e.$$.dirty[0] & /*activeindex*/
|
4315
4325
|
2, e.$$.dirty[0] & /*translationurl*/
|
4316
|
-
33554432 && f &&
|
4317
|
-
4194320 && l &&
|
4318
|
-
8388624 && u &&
|
4319
|
-
|
4326
|
+
33554432 && f && G(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4327
|
+
4194320 && l && k && zr(k, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4328
|
+
8388624 && u && k && Zr(k, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4329
|
+
16 | e.$$.dirty[1] & /*mbsource*/
|
4330
|
+
1 && P && k && Qr(k, `${P}.Style`), e.$$.dirty[0] & /*lang*/
|
4331
|
+
268435456 && b && fr();
|
4320
4332
|
}, [
|
4321
4333
|
h,
|
4322
4334
|
d,
|
4323
|
-
C,
|
4324
|
-
x,
|
4325
|
-
G,
|
4326
|
-
P,
|
4327
4335
|
w,
|
4336
|
+
E,
|
4337
|
+
k,
|
4338
|
+
C,
|
4328
4339
|
M,
|
4329
|
-
|
4330
|
-
|
4331
|
-
|
4340
|
+
N,
|
4341
|
+
j,
|
4342
|
+
ue,
|
4332
4343
|
ye,
|
4344
|
+
ve,
|
4333
4345
|
$,
|
4334
4346
|
Oe,
|
4335
|
-
nt,
|
4336
4347
|
it,
|
4337
|
-
|
4348
|
+
ot,
|
4349
|
+
pr,
|
4338
4350
|
n,
|
4339
4351
|
i,
|
4340
4352
|
s,
|
@@ -4347,25 +4359,26 @@ function $i(e, t, r) {
|
|
4347
4359
|
p,
|
4348
4360
|
g,
|
4349
4361
|
b,
|
4350
|
-
|
4351
|
-
|
4362
|
+
H,
|
4363
|
+
F,
|
4364
|
+
P,
|
4365
|
+
gr,
|
4352
4366
|
br,
|
4353
4367
|
yr,
|
4354
4368
|
vr,
|
4355
4369
|
_r,
|
4356
4370
|
Er,
|
4357
|
-
xr
|
4358
|
-
Cr
|
4371
|
+
xr
|
4359
4372
|
];
|
4360
4373
|
}
|
4361
|
-
class
|
4374
|
+
class Xi extends Xr {
|
4362
4375
|
constructor(t) {
|
4363
|
-
super(),
|
4376
|
+
super(), jr(
|
4364
4377
|
this,
|
4365
4378
|
t,
|
4366
|
-
|
4367
|
-
|
4368
|
-
|
4379
|
+
Vi,
|
4380
|
+
ji,
|
4381
|
+
Rt,
|
4369
4382
|
{
|
4370
4383
|
endpoint: 17,
|
4371
4384
|
datasource: 18,
|
@@ -4384,9 +4397,10 @@ class ji extends Wr {
|
|
4384
4397
|
showsubgroups: 2,
|
4385
4398
|
categoriesicon: 3,
|
4386
4399
|
lobbyiconimage: 29,
|
4387
|
-
mygamesiconimage: 30
|
4400
|
+
mygamesiconimage: 30,
|
4401
|
+
mbsource: 31
|
4388
4402
|
},
|
4389
|
-
|
4403
|
+
Gi,
|
4390
4404
|
[-1, -1]
|
4391
4405
|
);
|
4392
4406
|
}
|
@@ -4498,8 +4512,14 @@ class ji extends Wr {
|
|
4498
4512
|
set mygamesiconimage(t) {
|
4499
4513
|
this.$$set({ mygamesiconimage: t }), A();
|
4500
4514
|
}
|
4515
|
+
get mbsource() {
|
4516
|
+
return this.$$.ctx[31];
|
4517
|
+
}
|
4518
|
+
set mbsource(t) {
|
4519
|
+
this.$$set({ mbsource: t }), A();
|
4520
|
+
}
|
4501
4521
|
}
|
4502
|
-
|
4522
|
+
Vr(Xi, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4503
4523
|
export {
|
4504
|
-
|
4524
|
+
Xi as C
|
4505
4525
|
};
|