@everymatrix/casino-slider 1.74.3 → 1.74.5
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-DGvNwCMW.js → CasinoSlider-5lZXuYHt.js} +1196 -1139
- package/components/{CasinoSlider-BVogtiVI.js → CasinoSlider-CMPyMc_g.js} +980 -924
- package/components/CasinoSlider-CeKQcPVb.cjs +16 -0
- 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-DtRJg9TM.cjs +0 -16
@@ -1,47 +1,47 @@
|
|
1
|
-
function
|
1
|
+
function k() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function kt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function mt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
9
|
+
function q(e) {
|
10
|
+
e.forEach(kt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function nt(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function $t(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 He;
|
19
|
+
function dt(e, t) {
|
20
|
+
return e === t ? !0 : (He || (He = document.createElement("a")), He.href = t, e === He.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Or(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Fr(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
29
|
-
return
|
29
|
+
return k;
|
30
30
|
}
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
34
|
+
function I(e, t) {
|
35
35
|
e.appendChild(t);
|
36
36
|
}
|
37
|
-
function
|
38
|
-
const n =
|
37
|
+
function Rr(e, t, r) {
|
38
|
+
const n = Dr(e);
|
39
39
|
if (!n.getElementById(t)) {
|
40
|
-
const i =
|
41
|
-
i.id = t, i.textContent = r,
|
40
|
+
const i = L("style");
|
41
|
+
i.id = t, i.textContent = r, Ur(n, i);
|
42
42
|
}
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Dr(e) {
|
45
45
|
if (!e)
|
46
46
|
return document;
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -51,49 +51,54 @@ function Br(e) {
|
|
51
51
|
t
|
52
52
|
) : e.ownerDocument;
|
53
53
|
}
|
54
|
-
function
|
55
|
-
return
|
54
|
+
function Ur(e, t) {
|
55
|
+
return I(
|
56
56
|
/** @type {Document} */
|
57
57
|
e.head || e,
|
58
58
|
t
|
59
59
|
), t.sheet;
|
60
60
|
}
|
61
|
-
function
|
61
|
+
function G(e, t, r) {
|
62
62
|
e.insertBefore(t, r || null);
|
63
63
|
}
|
64
|
-
function
|
64
|
+
function D(e) {
|
65
65
|
e.parentNode && e.parentNode.removeChild(e);
|
66
66
|
}
|
67
|
-
function
|
67
|
+
function Gr(e, t) {
|
68
68
|
for (let r = 0; r < e.length; r += 1)
|
69
69
|
e[r] && e[r].d(t);
|
70
70
|
}
|
71
|
-
function
|
71
|
+
function L(e) {
|
72
72
|
return document.createElement(e);
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function Ee(e) {
|
75
75
|
return document.createTextNode(e);
|
76
76
|
}
|
77
|
-
function
|
78
|
-
return
|
77
|
+
function Q() {
|
78
|
+
return Ee(" ");
|
79
79
|
}
|
80
|
-
function
|
81
|
-
return
|
80
|
+
function be() {
|
81
|
+
return Ee("");
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function j(e, t, r, n) {
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
85
85
|
}
|
86
|
+
function kr(e) {
|
87
|
+
return function(t) {
|
88
|
+
return t.preventDefault(), e.call(this, t);
|
89
|
+
};
|
90
|
+
}
|
86
91
|
function S(e, t, r) {
|
87
92
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
88
93
|
}
|
89
|
-
function
|
94
|
+
function $r(e) {
|
90
95
|
return Array.from(e.childNodes);
|
91
96
|
}
|
92
|
-
function
|
97
|
+
function it(e, t) {
|
93
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
94
99
|
t);
|
95
100
|
}
|
96
|
-
function
|
101
|
+
function jr(e) {
|
97
102
|
const t = {};
|
98
103
|
return e.childNodes.forEach(
|
99
104
|
/** @param {Element} node */
|
@@ -102,128 +107,132 @@ function Lr(e) {
|
|
102
107
|
}
|
103
108
|
), t;
|
104
109
|
}
|
105
|
-
let
|
106
|
-
function
|
107
|
-
|
110
|
+
let ye;
|
111
|
+
function pe(e) {
|
112
|
+
ye = e;
|
108
113
|
}
|
109
|
-
function
|
110
|
-
if (!
|
114
|
+
function Vr() {
|
115
|
+
if (!ye)
|
111
116
|
throw new Error("Function called outside component initialization");
|
112
|
-
return
|
117
|
+
return ye;
|
113
118
|
}
|
114
|
-
function
|
115
|
-
|
119
|
+
function Xr(e) {
|
120
|
+
Vr().$$.on_mount.push(e);
|
116
121
|
}
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
let je = !1;
|
121
|
-
function Rr() {
|
122
|
-
je || (je = !0, Fr.then(A));
|
122
|
+
function Wr(e, t) {
|
123
|
+
const r = e.$$.callbacks[t.type];
|
124
|
+
r && r.slice().forEach((n) => n.call(this, t));
|
123
125
|
}
|
124
|
-
|
125
|
-
|
126
|
+
const re = [], ge = [];
|
127
|
+
let ne = [];
|
128
|
+
const pt = [], zr = /* @__PURE__ */ Promise.resolve();
|
129
|
+
let We = !1;
|
130
|
+
function Zr() {
|
131
|
+
We || (We = !0, zr.then(B));
|
132
|
+
}
|
133
|
+
function ze(e) {
|
134
|
+
ne.push(e);
|
126
135
|
}
|
127
|
-
const
|
128
|
-
let
|
129
|
-
function
|
130
|
-
if (
|
136
|
+
const Ue = /* @__PURE__ */ new Set();
|
137
|
+
let ee = 0;
|
138
|
+
function B() {
|
139
|
+
if (ee !== 0)
|
131
140
|
return;
|
132
|
-
const e =
|
141
|
+
const e = ye;
|
133
142
|
do {
|
134
143
|
try {
|
135
|
-
for (;
|
136
|
-
const t = ee
|
137
|
-
|
144
|
+
for (; ee < re.length; ) {
|
145
|
+
const t = re[ee];
|
146
|
+
ee++, pe(t), Qr(t.$$);
|
138
147
|
}
|
139
148
|
} catch (t) {
|
140
|
-
throw
|
149
|
+
throw re.length = 0, ee = 0, t;
|
141
150
|
}
|
142
|
-
for (
|
143
|
-
|
144
|
-
for (let t = 0; t <
|
145
|
-
const r =
|
146
|
-
|
151
|
+
for (pe(null), re.length = 0, ee = 0; ge.length; )
|
152
|
+
ge.pop()();
|
153
|
+
for (let t = 0; t < ne.length; t += 1) {
|
154
|
+
const r = ne[t];
|
155
|
+
Ue.has(r) || (Ue.add(r), r());
|
147
156
|
}
|
148
|
-
|
149
|
-
} while (
|
150
|
-
for (;
|
151
|
-
|
152
|
-
|
157
|
+
ne.length = 0;
|
158
|
+
} while (re.length);
|
159
|
+
for (; pt.length; )
|
160
|
+
pt.pop()();
|
161
|
+
We = !1, Ue.clear(), pe(e);
|
153
162
|
}
|
154
|
-
function
|
163
|
+
function Qr(e) {
|
155
164
|
if (e.fragment !== null) {
|
156
|
-
e.update(),
|
165
|
+
e.update(), q(e.before_update);
|
157
166
|
const t = e.dirty;
|
158
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
167
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ze);
|
159
168
|
}
|
160
169
|
}
|
161
|
-
function
|
170
|
+
function qr(e) {
|
162
171
|
const t = [], r = [];
|
163
|
-
|
172
|
+
ne.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ne = t;
|
164
173
|
}
|
165
|
-
const
|
166
|
-
function
|
167
|
-
e && e.i && (
|
174
|
+
const Jr = /* @__PURE__ */ new Set();
|
175
|
+
function jt(e, t) {
|
176
|
+
e && e.i && (Jr.delete(e), e.i(t));
|
168
177
|
}
|
169
|
-
function
|
178
|
+
function ie(e) {
|
170
179
|
return e?.length !== void 0 ? e : Array.from(e);
|
171
180
|
}
|
172
|
-
function
|
181
|
+
function Vt(e, t) {
|
173
182
|
e.d(1), t.delete(e.key);
|
174
183
|
}
|
175
|
-
function
|
184
|
+
function Xt(e, t, r, n, i, s, o, a, h, l, u, m) {
|
176
185
|
let f = e.length, p = s.length, g = f;
|
177
186
|
const b = {};
|
178
187
|
for (; g--; )
|
179
188
|
b[e[g].key] = g;
|
180
|
-
const d = [],
|
189
|
+
const d = [], C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), w = [];
|
181
190
|
for (g = p; g--; ) {
|
182
|
-
const
|
183
|
-
let
|
184
|
-
|
191
|
+
const H = m(i, s, g), F = r(H);
|
192
|
+
let R = o.get(F);
|
193
|
+
R ? w.push(() => R.p(H, t)) : (R = l(F, H), R.c()), C.set(F, d[g] = R), F in b && E.set(F, Math.abs(g - b[F]));
|
185
194
|
}
|
186
|
-
const
|
187
|
-
function
|
188
|
-
|
195
|
+
const U = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
|
196
|
+
function T(H) {
|
197
|
+
jt(H, 1), H.m(a, u), o.set(H.key, H), u = H.first, p--;
|
189
198
|
}
|
190
199
|
for (; f && p; ) {
|
191
|
-
const
|
192
|
-
|
200
|
+
const H = d[p - 1], F = e[f - 1], R = H.key, Y = F.key;
|
201
|
+
H === F ? (u = H.first, f--, p--) : C.has(Y) ? !o.has(R) || U.has(R) ? T(H) : N.has(Y) ? f-- : E.get(R) > E.get(Y) ? (N.add(R), T(H)) : (U.add(Y), f--) : (h(F, o), f--);
|
193
202
|
}
|
194
203
|
for (; f--; ) {
|
195
|
-
const
|
196
|
-
|
204
|
+
const H = e[f];
|
205
|
+
C.has(H.key) || h(H, o);
|
197
206
|
}
|
198
207
|
for (; p; )
|
199
|
-
|
200
|
-
return
|
208
|
+
T(d[p - 1]);
|
209
|
+
return q(w), d;
|
201
210
|
}
|
202
|
-
function
|
211
|
+
function Yr(e, t, r) {
|
203
212
|
const { fragment: n, after_update: i } = e.$$;
|
204
|
-
n && n.m(t, r),
|
205
|
-
const s = e.$$.on_mount.map(
|
206
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
207
|
-
}), i.forEach(
|
213
|
+
n && n.m(t, r), ze(() => {
|
214
|
+
const s = e.$$.on_mount.map(kt).filter(nt);
|
215
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : q(s), e.$$.on_mount = [];
|
216
|
+
}), i.forEach(ze);
|
208
217
|
}
|
209
|
-
function
|
218
|
+
function Kr(e, t) {
|
210
219
|
const r = e.$$;
|
211
|
-
r.fragment !== null && (
|
220
|
+
r.fragment !== null && (qr(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
212
221
|
}
|
213
|
-
function
|
214
|
-
e.$$.dirty[0] === -1 && (
|
222
|
+
function en(e, t) {
|
223
|
+
e.$$.dirty[0] === -1 && (re.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
215
224
|
}
|
216
|
-
function
|
217
|
-
const h =
|
218
|
-
|
225
|
+
function tn(e, t, r, n, i, s, o = null, a = [-1]) {
|
226
|
+
const h = ye;
|
227
|
+
pe(e);
|
219
228
|
const l = e.$$ = {
|
220
229
|
fragment: null,
|
221
230
|
ctx: [],
|
222
231
|
// state
|
223
232
|
props: s,
|
224
|
-
update:
|
233
|
+
update: k,
|
225
234
|
not_equal: i,
|
226
|
-
bound:
|
235
|
+
bound: mt(),
|
227
236
|
// lifecycle
|
228
237
|
on_mount: [],
|
229
238
|
on_destroy: [],
|
@@ -232,28 +241,28 @@ function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
232
241
|
after_update: [],
|
233
242
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
234
243
|
// everything else
|
235
|
-
callbacks:
|
244
|
+
callbacks: mt(),
|
236
245
|
dirty: a,
|
237
246
|
skip_bound: !1,
|
238
247
|
root: t.target || h.$$.root
|
239
248
|
};
|
240
249
|
o && o(l.root);
|
241
250
|
let u = !1;
|
242
|
-
if (l.ctx = r(e, t.props || {}, (m, f, ...p) => {
|
251
|
+
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
243
252
|
const g = p.length ? p[0] : f;
|
244
|
-
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u &&
|
245
|
-
}), l.update(), u = !0,
|
253
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && en(e, m)), f;
|
254
|
+
}) : [], l.update(), u = !0, q(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
246
255
|
if (t.hydrate) {
|
247
|
-
const m =
|
248
|
-
l.fragment && l.fragment.l(m), m.forEach(
|
256
|
+
const m = $r(t.target);
|
257
|
+
l.fragment && l.fragment.l(m), m.forEach(D);
|
249
258
|
} else
|
250
259
|
l.fragment && l.fragment.c();
|
251
|
-
t.intro &&
|
260
|
+
t.intro && jt(e.$$.fragment), Yr(e, t.target, t.anchor), B();
|
252
261
|
}
|
253
|
-
|
262
|
+
pe(h);
|
254
263
|
}
|
255
|
-
let
|
256
|
-
typeof HTMLElement == "function" && (
|
264
|
+
let Wt;
|
265
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
257
266
|
/** The Svelte component constructor */
|
258
267
|
$$ctor;
|
259
268
|
/** Slots */
|
@@ -295,29 +304,29 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
295
304
|
let s;
|
296
305
|
return {
|
297
306
|
c: function() {
|
298
|
-
s =
|
307
|
+
s = L("slot"), i !== "default" && S(s, "name", i);
|
299
308
|
},
|
300
309
|
/**
|
301
310
|
* @param {HTMLElement} target
|
302
311
|
* @param {HTMLElement} [anchor]
|
303
312
|
*/
|
304
313
|
m: function(h, l) {
|
305
|
-
|
314
|
+
G(h, s, l);
|
306
315
|
},
|
307
316
|
d: function(h) {
|
308
|
-
h &&
|
317
|
+
h && D(s);
|
309
318
|
}
|
310
319
|
};
|
311
320
|
};
|
312
321
|
};
|
313
322
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
314
323
|
return;
|
315
|
-
const t = {}, r =
|
324
|
+
const t = {}, r = jr(this);
|
316
325
|
for (const i of this.$$s)
|
317
326
|
i in r && (t[i] = [e(i)]);
|
318
327
|
for (const i of this.attributes) {
|
319
328
|
const s = this.$$g_p(i.name);
|
320
|
-
s in this.$$d || (this.$$d[s] =
|
329
|
+
s in this.$$d || (this.$$d[s] = Te(s, i.value, this.$$p_d, "toProp"));
|
321
330
|
}
|
322
331
|
for (const i in this.$$p_d)
|
323
332
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -335,7 +344,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
335
344
|
this.$$r = !0;
|
336
345
|
for (const i in this.$$p_d)
|
337
346
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
338
|
-
const s =
|
347
|
+
const s = Te(
|
339
348
|
i,
|
340
349
|
this.$$d[i],
|
341
350
|
this.$$p_d,
|
@@ -357,7 +366,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
357
366
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
358
367
|
// and setting attributes through setAttribute etc, this is helpful
|
359
368
|
attributeChangedCallback(e, t, r) {
|
360
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
369
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Te(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
361
370
|
}
|
362
371
|
disconnectedCallback() {
|
363
372
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -370,7 +379,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
370
379
|
) || e;
|
371
380
|
}
|
372
381
|
});
|
373
|
-
function
|
382
|
+
function Te(e, t, r, n) {
|
374
383
|
const i = r[e]?.type;
|
375
384
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
376
385
|
return t;
|
@@ -399,8 +408,8 @@ function we(e, t, r, n) {
|
|
399
408
|
return t;
|
400
409
|
}
|
401
410
|
}
|
402
|
-
function
|
403
|
-
let o = class extends
|
411
|
+
function rn(e, t, r, n, i, s) {
|
412
|
+
let o = class extends Wt {
|
404
413
|
constructor() {
|
405
414
|
super(e, r, i), this.$$p_d = t;
|
406
415
|
}
|
@@ -416,7 +425,7 @@ function Xr(e, t, r, n, i, s) {
|
|
416
425
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
417
426
|
},
|
418
427
|
set(h) {
|
419
|
-
h =
|
428
|
+
h = Te(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
420
429
|
}
|
421
430
|
});
|
422
431
|
}), n.forEach((a) => {
|
@@ -428,7 +437,7 @@ function Xr(e, t, r, n, i, s) {
|
|
428
437
|
}), e.element = /** @type {any} */
|
429
438
|
o, o;
|
430
439
|
}
|
431
|
-
class
|
440
|
+
class nn {
|
432
441
|
/**
|
433
442
|
* ### PRIVATE API
|
434
443
|
*
|
@@ -447,7 +456,7 @@ class Wr {
|
|
447
456
|
$$set = void 0;
|
448
457
|
/** @returns {void} */
|
449
458
|
$destroy() {
|
450
|
-
|
459
|
+
Kr(this, 1), this.$destroy = k;
|
451
460
|
}
|
452
461
|
/**
|
453
462
|
* @template {Extract<keyof Events, string>} K
|
@@ -456,8 +465,8 @@ class Wr {
|
|
456
465
|
* @returns {() => void}
|
457
466
|
*/
|
458
467
|
$on(t, r) {
|
459
|
-
if (!
|
460
|
-
return
|
468
|
+
if (!nt(r))
|
469
|
+
return k;
|
461
470
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
462
471
|
return n.push(r), () => {
|
463
472
|
const i = n.indexOf(r);
|
@@ -469,18 +478,18 @@ class Wr {
|
|
469
478
|
* @returns {void}
|
470
479
|
*/
|
471
480
|
$set(t) {
|
472
|
-
this.$$set && !
|
481
|
+
this.$$set && !Or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
473
482
|
}
|
474
483
|
}
|
475
|
-
const
|
476
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
477
|
-
function
|
484
|
+
const on = "4";
|
485
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(on);
|
486
|
+
function sn(e, t) {
|
478
487
|
if (e) {
|
479
488
|
const r = document.createElement("style");
|
480
489
|
r.innerHTML = t, e.appendChild(r);
|
481
490
|
}
|
482
491
|
}
|
483
|
-
function
|
492
|
+
function an(e, t) {
|
484
493
|
const r = new URL(t);
|
485
494
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
486
495
|
const i = document.createElement("style");
|
@@ -489,7 +498,7 @@ function Qr(e, t) {
|
|
489
498
|
console.error("There was an error while trying to load client styling from URL", n);
|
490
499
|
});
|
491
500
|
}
|
492
|
-
function
|
501
|
+
function ln(e, t, r) {
|
493
502
|
if (window.emMessageBus) {
|
494
503
|
const n = document.createElement("style");
|
495
504
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -497,55 +506,55 @@ function qr(e, t, r) {
|
|
497
506
|
});
|
498
507
|
}
|
499
508
|
}
|
500
|
-
const
|
501
|
-
function
|
509
|
+
const te = [];
|
510
|
+
function un(e, t) {
|
502
511
|
return {
|
503
|
-
subscribe:
|
512
|
+
subscribe: Le(e, t).subscribe
|
504
513
|
};
|
505
514
|
}
|
506
|
-
function
|
515
|
+
function Le(e, t = k) {
|
507
516
|
let r;
|
508
517
|
const n = /* @__PURE__ */ new Set();
|
509
518
|
function i(a) {
|
510
|
-
if (
|
511
|
-
const h = !
|
519
|
+
if ($t(e, a) && (e = a, r)) {
|
520
|
+
const h = !te.length;
|
512
521
|
for (const l of n)
|
513
|
-
l[1](),
|
522
|
+
l[1](), te.push(l, e);
|
514
523
|
if (h) {
|
515
|
-
for (let l = 0; l <
|
516
|
-
|
517
|
-
|
524
|
+
for (let l = 0; l < te.length; l += 2)
|
525
|
+
te[l][0](te[l + 1]);
|
526
|
+
te.length = 0;
|
518
527
|
}
|
519
528
|
}
|
520
529
|
}
|
521
530
|
function s(a) {
|
522
531
|
i(a(e));
|
523
532
|
}
|
524
|
-
function o(a, h =
|
533
|
+
function o(a, h = k) {
|
525
534
|
const l = [a, h];
|
526
|
-
return n.add(l), n.size === 1 && (r = t(i, s) ||
|
535
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || k), a(e), () => {
|
527
536
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
528
537
|
};
|
529
538
|
}
|
530
539
|
return { set: i, update: s, subscribe: o };
|
531
540
|
}
|
532
|
-
function
|
541
|
+
function ue(e, t, r) {
|
533
542
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
534
543
|
if (!i.every(Boolean))
|
535
544
|
throw new Error("derived() expects stores as input, got a falsy value");
|
536
545
|
const s = t.length < 2;
|
537
|
-
return
|
546
|
+
return un(r, (o, a) => {
|
538
547
|
let h = !1;
|
539
548
|
const l = [];
|
540
|
-
let u = 0, m =
|
549
|
+
let u = 0, m = k;
|
541
550
|
const f = () => {
|
542
551
|
if (u)
|
543
552
|
return;
|
544
553
|
m();
|
545
554
|
const g = t(n ? l[0] : l, o, a);
|
546
|
-
s ? o(g) : m =
|
555
|
+
s ? o(g) : m = nt(g) ? g : k;
|
547
556
|
}, p = i.map(
|
548
|
-
(g, b) =>
|
557
|
+
(g, b) => Fr(
|
549
558
|
g,
|
550
559
|
(d) => {
|
551
560
|
l[b] = d, u &= ~(1 << b), h && f();
|
@@ -556,84 +565,84 @@ function ae(e, t, r) {
|
|
556
565
|
)
|
557
566
|
);
|
558
567
|
return h = !0, f(), function() {
|
559
|
-
|
568
|
+
q(p), m(), h = !1;
|
560
569
|
};
|
561
570
|
});
|
562
571
|
}
|
563
|
-
function
|
564
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
572
|
+
function hn(e) {
|
573
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
565
574
|
}
|
566
|
-
var
|
567
|
-
return
|
575
|
+
var cn = function(t) {
|
576
|
+
return fn(t) && !mn(t);
|
568
577
|
};
|
569
|
-
function
|
578
|
+
function fn(e) {
|
570
579
|
return !!e && typeof e == "object";
|
571
580
|
}
|
572
|
-
function
|
581
|
+
function mn(e) {
|
573
582
|
var t = Object.prototype.toString.call(e);
|
574
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
583
|
+
return t === "[object RegExp]" || t === "[object Date]" || gn(e);
|
575
584
|
}
|
576
|
-
var
|
577
|
-
function
|
578
|
-
return e.$$typeof ===
|
585
|
+
var dn = typeof Symbol == "function" && Symbol.for, pn = dn ? Symbol.for("react.element") : 60103;
|
586
|
+
function gn(e) {
|
587
|
+
return e.$$typeof === pn;
|
579
588
|
}
|
580
|
-
function
|
589
|
+
function bn(e) {
|
581
590
|
return Array.isArray(e) ? [] : {};
|
582
591
|
}
|
583
|
-
function
|
584
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
592
|
+
function ve(e, t) {
|
593
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? oe(bn(e), e, t) : e;
|
585
594
|
}
|
586
|
-
function
|
595
|
+
function yn(e, t, r) {
|
587
596
|
return e.concat(t).map(function(n) {
|
588
|
-
return
|
597
|
+
return ve(n, r);
|
589
598
|
});
|
590
599
|
}
|
591
|
-
function
|
600
|
+
function vn(e, t) {
|
592
601
|
if (!t.customMerge)
|
593
|
-
return
|
602
|
+
return oe;
|
594
603
|
var r = t.customMerge(e);
|
595
|
-
return typeof r == "function" ? r :
|
604
|
+
return typeof r == "function" ? r : oe;
|
596
605
|
}
|
597
|
-
function
|
606
|
+
function _n(e) {
|
598
607
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
599
608
|
return Object.propertyIsEnumerable.call(e, t);
|
600
609
|
}) : [];
|
601
610
|
}
|
602
|
-
function
|
603
|
-
return Object.keys(e).concat(
|
611
|
+
function gt(e) {
|
612
|
+
return Object.keys(e).concat(_n(e));
|
604
613
|
}
|
605
|
-
function
|
614
|
+
function zt(e, t) {
|
606
615
|
try {
|
607
616
|
return t in e;
|
608
617
|
} catch {
|
609
618
|
return !1;
|
610
619
|
}
|
611
620
|
}
|
612
|
-
function
|
613
|
-
return
|
621
|
+
function En(e, t) {
|
622
|
+
return zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
614
623
|
}
|
615
|
-
function
|
624
|
+
function xn(e, t, r) {
|
616
625
|
var n = {};
|
617
|
-
return r.isMergeableObject(e) &&
|
618
|
-
n[i] =
|
619
|
-
}),
|
620
|
-
|
626
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
627
|
+
n[i] = ve(e[i], r);
|
628
|
+
}), gt(t).forEach(function(i) {
|
629
|
+
En(e, i) || (zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = vn(i, r)(e[i], t[i], r) : n[i] = ve(t[i], r));
|
621
630
|
}), n;
|
622
631
|
}
|
623
|
-
function
|
624
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
632
|
+
function oe(e, t, r) {
|
633
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified = ve;
|
625
634
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
626
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
635
|
+
return s ? n ? r.arrayMerge(e, t, r) : xn(e, t, r) : ve(t, r);
|
627
636
|
}
|
628
|
-
|
637
|
+
oe.all = function(t, r) {
|
629
638
|
if (!Array.isArray(t))
|
630
639
|
throw new Error("first argument should be an array");
|
631
640
|
return t.reduce(function(n, i) {
|
632
|
-
return
|
641
|
+
return oe(n, i, r);
|
633
642
|
}, {});
|
634
643
|
};
|
635
|
-
var
|
636
|
-
const
|
644
|
+
var Cn = oe, wn = Cn;
|
645
|
+
const Hn = /* @__PURE__ */ hn(wn);
|
637
646
|
/*! *****************************************************************************
|
638
647
|
Copyright (c) Microsoft Corporation.
|
639
648
|
|
@@ -648,34 +657,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
648
657
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
649
658
|
PERFORMANCE OF THIS SOFTWARE.
|
650
659
|
***************************************************************************** */
|
651
|
-
var
|
652
|
-
return
|
660
|
+
var Ze = function(e, t) {
|
661
|
+
return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
653
662
|
r.__proto__ = n;
|
654
663
|
} || function(r, n) {
|
655
664
|
for (var i in n)
|
656
665
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
657
|
-
},
|
666
|
+
}, Ze(e, t);
|
658
667
|
};
|
659
|
-
function
|
668
|
+
function Ne(e, t) {
|
660
669
|
if (typeof t != "function" && t !== null)
|
661
670
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
662
|
-
|
671
|
+
Ze(e, t);
|
663
672
|
function r() {
|
664
673
|
this.constructor = e;
|
665
674
|
}
|
666
675
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
667
676
|
}
|
668
|
-
var
|
669
|
-
return
|
677
|
+
var _ = function() {
|
678
|
+
return _ = Object.assign || function(t) {
|
670
679
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
671
680
|
r = arguments[n];
|
672
681
|
for (var s in r)
|
673
682
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
674
683
|
}
|
675
684
|
return t;
|
676
|
-
},
|
685
|
+
}, _.apply(this, arguments);
|
677
686
|
};
|
678
|
-
function
|
687
|
+
function Sn(e, t) {
|
679
688
|
var r = {};
|
680
689
|
for (var n in e)
|
681
690
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -684,113 +693,111 @@ function pn(e, t) {
|
|
684
693
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
685
694
|
return r;
|
686
695
|
}
|
687
|
-
function
|
696
|
+
function Ge(e, t, r) {
|
688
697
|
if (arguments.length === 2)
|
689
698
|
for (var n = 0, i = t.length, s; n < i; n++)
|
690
699
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
691
700
|
return e.concat(s || t);
|
692
701
|
}
|
693
|
-
function
|
694
|
-
var r = t && t.cache ? t.cache :
|
702
|
+
function ke(e, t) {
|
703
|
+
var r = t && t.cache ? t.cache : Ln, n = t && t.serializer ? t.serializer : Mn, i = t && t.strategy ? t.strategy : An;
|
695
704
|
return i(e, {
|
696
705
|
cache: r,
|
697
706
|
serializer: n
|
698
707
|
});
|
699
708
|
}
|
700
|
-
function
|
709
|
+
function Tn(e) {
|
701
710
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
702
711
|
}
|
703
|
-
function
|
704
|
-
var i =
|
712
|
+
function Zt(e, t, r, n) {
|
713
|
+
var i = Tn(n) ? n : r(n), s = t.get(i);
|
705
714
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
706
715
|
}
|
707
|
-
function
|
716
|
+
function Qt(e, t, r) {
|
708
717
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
709
718
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
710
719
|
}
|
711
|
-
function
|
720
|
+
function ot(e, t, r, n, i) {
|
712
721
|
return r.bind(t, e, n, i);
|
713
722
|
}
|
714
|
-
function
|
715
|
-
var r = e.length === 1 ?
|
716
|
-
return
|
723
|
+
function An(e, t) {
|
724
|
+
var r = e.length === 1 ? Zt : Qt;
|
725
|
+
return ot(e, this, r, t.cache.create(), t.serializer);
|
717
726
|
}
|
718
|
-
function
|
719
|
-
return
|
727
|
+
function Bn(e, t) {
|
728
|
+
return ot(e, this, Qt, t.cache.create(), t.serializer);
|
720
729
|
}
|
721
|
-
function
|
722
|
-
return
|
730
|
+
function In(e, t) {
|
731
|
+
return ot(e, this, Zt, t.cache.create(), t.serializer);
|
723
732
|
}
|
724
|
-
var
|
733
|
+
var Mn = function() {
|
725
734
|
return JSON.stringify(arguments);
|
726
|
-
}
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
}()
|
738
|
-
), xn = {
|
735
|
+
};
|
736
|
+
function st() {
|
737
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
738
|
+
}
|
739
|
+
st.prototype.get = function(e) {
|
740
|
+
return this.cache[e];
|
741
|
+
};
|
742
|
+
st.prototype.set = function(e, t) {
|
743
|
+
this.cache[e] = t;
|
744
|
+
};
|
745
|
+
var Ln = {
|
739
746
|
create: function() {
|
740
|
-
return new
|
747
|
+
return new st();
|
741
748
|
}
|
742
|
-
},
|
743
|
-
variadic:
|
744
|
-
monadic:
|
749
|
+
}, $e = {
|
750
|
+
variadic: Bn,
|
751
|
+
monadic: In
|
745
752
|
}, y;
|
746
753
|
(function(e) {
|
747
754
|
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";
|
748
755
|
})(y || (y = {}));
|
749
|
-
var
|
756
|
+
var A;
|
750
757
|
(function(e) {
|
751
758
|
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";
|
752
|
-
})(
|
753
|
-
var
|
759
|
+
})(A || (A = {}));
|
760
|
+
var se;
|
754
761
|
(function(e) {
|
755
762
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
756
|
-
})(
|
757
|
-
function
|
758
|
-
return e.type ===
|
763
|
+
})(se || (se = {}));
|
764
|
+
function bt(e) {
|
765
|
+
return e.type === A.literal;
|
759
766
|
}
|
760
|
-
function
|
761
|
-
return e.type ===
|
767
|
+
function Nn(e) {
|
768
|
+
return e.type === A.argument;
|
762
769
|
}
|
763
|
-
function
|
764
|
-
return e.type ===
|
770
|
+
function qt(e) {
|
771
|
+
return e.type === A.number;
|
765
772
|
}
|
766
|
-
function
|
767
|
-
return e.type ===
|
773
|
+
function Jt(e) {
|
774
|
+
return e.type === A.date;
|
768
775
|
}
|
769
|
-
function
|
770
|
-
return e.type ===
|
776
|
+
function Yt(e) {
|
777
|
+
return e.type === A.time;
|
771
778
|
}
|
772
|
-
function
|
773
|
-
return e.type ===
|
779
|
+
function Kt(e) {
|
780
|
+
return e.type === A.select;
|
774
781
|
}
|
775
|
-
function
|
776
|
-
return e.type ===
|
782
|
+
function er(e) {
|
783
|
+
return e.type === A.plural;
|
777
784
|
}
|
778
|
-
function
|
779
|
-
return e.type ===
|
785
|
+
function Pn(e) {
|
786
|
+
return e.type === A.pound;
|
780
787
|
}
|
781
|
-
function
|
782
|
-
return e.type ===
|
788
|
+
function tr(e) {
|
789
|
+
return e.type === A.tag;
|
783
790
|
}
|
784
|
-
function
|
785
|
-
return !!(e && typeof e == "object" && e.type ===
|
791
|
+
function rr(e) {
|
792
|
+
return !!(e && typeof e == "object" && e.type === se.number);
|
786
793
|
}
|
787
|
-
function
|
788
|
-
return !!(e && typeof e == "object" && e.type ===
|
794
|
+
function Qe(e) {
|
795
|
+
return !!(e && typeof e == "object" && e.type === se.dateTime);
|
789
796
|
}
|
790
|
-
var
|
791
|
-
function
|
797
|
+
var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
|
798
|
+
function Fn(e) {
|
792
799
|
var t = {};
|
793
|
-
return e.replace(
|
800
|
+
return e.replace(On, function(r) {
|
794
801
|
var n = r.length;
|
795
802
|
switch (r[0]) {
|
796
803
|
case "G":
|
@@ -879,11 +886,11 @@ function Sn(e) {
|
|
879
886
|
return "";
|
880
887
|
}), t;
|
881
888
|
}
|
882
|
-
var
|
883
|
-
function
|
889
|
+
var Rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
890
|
+
function Dn(e) {
|
884
891
|
if (e.length === 0)
|
885
892
|
throw new Error("Number skeleton cannot be empty");
|
886
|
-
for (var t = e.split(
|
893
|
+
for (var t = e.split(Rn).filter(function(f) {
|
887
894
|
return f.length > 0;
|
888
895
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
889
896
|
var s = i[n], o = s.split("/");
|
@@ -898,17 +905,17 @@ function An(e) {
|
|
898
905
|
}
|
899
906
|
return r;
|
900
907
|
}
|
901
|
-
function
|
908
|
+
function Un(e) {
|
902
909
|
return e.replace(/^(.*?)-/, "");
|
903
910
|
}
|
904
|
-
var
|
905
|
-
function
|
911
|
+
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, Gn = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
|
912
|
+
function vt(e) {
|
906
913
|
var t = {};
|
907
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
914
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(r, n, i) {
|
908
915
|
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)), "";
|
909
916
|
}), t;
|
910
917
|
}
|
911
|
-
function
|
918
|
+
function sr(e) {
|
912
919
|
switch (e) {
|
913
920
|
case "sign-auto":
|
914
921
|
return {
|
@@ -948,7 +955,7 @@ function rr(e) {
|
|
948
955
|
};
|
949
956
|
}
|
950
957
|
}
|
951
|
-
function
|
958
|
+
function kn(e) {
|
952
959
|
var t;
|
953
960
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
954
961
|
notation: "engineering"
|
@@ -956,17 +963,17 @@ function Mn(e) {
|
|
956
963
|
notation: "scientific"
|
957
964
|
}, e = e.slice(1)), t) {
|
958
965
|
var r = e.slice(0, 2);
|
959
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
966
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
|
960
967
|
throw new Error("Malformed concise eng/scientific notation");
|
961
968
|
t.minimumIntegerDigits = e.length;
|
962
969
|
}
|
963
970
|
return t;
|
964
971
|
}
|
965
|
-
function
|
966
|
-
var t = {}, r =
|
972
|
+
function _t(e) {
|
973
|
+
var t = {}, r = sr(e);
|
967
974
|
return r || t;
|
968
975
|
}
|
969
|
-
function
|
976
|
+
function $n(e) {
|
970
977
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
971
978
|
var i = n[r];
|
972
979
|
switch (i.stem) {
|
@@ -990,7 +997,7 @@ function Nn(e) {
|
|
990
997
|
continue;
|
991
998
|
case "measure-unit":
|
992
999
|
case "unit":
|
993
|
-
t.style = "unit", t.unit =
|
1000
|
+
t.style = "unit", t.unit = Un(i.options[0]);
|
994
1001
|
continue;
|
995
1002
|
case "compact-short":
|
996
1003
|
case "K":
|
@@ -1001,13 +1008,13 @@ function Nn(e) {
|
|
1001
1008
|
t.notation = "compact", t.compactDisplay = "long";
|
1002
1009
|
continue;
|
1003
1010
|
case "scientific":
|
1004
|
-
t =
|
1005
|
-
return
|
1011
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1012
|
+
return _(_({}, h), _t(l));
|
1006
1013
|
}, {}));
|
1007
1014
|
continue;
|
1008
1015
|
case "engineering":
|
1009
|
-
t =
|
1010
|
-
return
|
1016
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1017
|
+
return _(_({}, h), _t(l));
|
1011
1018
|
}, {}));
|
1012
1019
|
continue;
|
1013
1020
|
case "notation-simple":
|
@@ -1052,7 +1059,7 @@ function Nn(e) {
|
|
1052
1059
|
case "integer-width":
|
1053
1060
|
if (i.options.length > 1)
|
1054
1061
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1055
|
-
i.options[0].replace(
|
1062
|
+
i.options[0].replace(Gn, function(h, l, u, m, f, p) {
|
1056
1063
|
if (l)
|
1057
1064
|
t.minimumIntegerDigits = u.length;
|
1058
1065
|
else {
|
@@ -1065,32 +1072,32 @@ function Nn(e) {
|
|
1065
1072
|
});
|
1066
1073
|
continue;
|
1067
1074
|
}
|
1068
|
-
if (
|
1075
|
+
if (or.test(i.stem)) {
|
1069
1076
|
t.minimumIntegerDigits = i.stem.length;
|
1070
1077
|
continue;
|
1071
1078
|
}
|
1072
|
-
if (
|
1079
|
+
if (yt.test(i.stem)) {
|
1073
1080
|
if (i.options.length > 1)
|
1074
1081
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1075
|
-
i.stem.replace(
|
1082
|
+
i.stem.replace(yt, function(h, l, u, m, f, p) {
|
1076
1083
|
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), "";
|
1077
1084
|
});
|
1078
1085
|
var s = i.options[0];
|
1079
|
-
s === "w" ? t =
|
1086
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), vt(s)));
|
1080
1087
|
continue;
|
1081
1088
|
}
|
1082
|
-
if (
|
1083
|
-
t =
|
1089
|
+
if (ir.test(i.stem)) {
|
1090
|
+
t = _(_({}, t), vt(i.stem));
|
1084
1091
|
continue;
|
1085
1092
|
}
|
1086
|
-
var o =
|
1087
|
-
o && (t =
|
1088
|
-
var a =
|
1089
|
-
a && (t =
|
1093
|
+
var o = sr(i.stem);
|
1094
|
+
o && (t = _(_({}, t), o));
|
1095
|
+
var a = kn(i.stem);
|
1096
|
+
a && (t = _(_({}, t), a));
|
1090
1097
|
}
|
1091
1098
|
return t;
|
1092
1099
|
}
|
1093
|
-
var
|
1100
|
+
var Se = {
|
1094
1101
|
"001": [
|
1095
1102
|
"H",
|
1096
1103
|
"h"
|
@@ -2505,13 +2512,13 @@ var Ce = {
|
|
2505
2512
|
"h"
|
2506
2513
|
]
|
2507
2514
|
};
|
2508
|
-
function
|
2515
|
+
function jn(e, t) {
|
2509
2516
|
for (var r = "", n = 0; n < e.length; n++) {
|
2510
2517
|
var i = e.charAt(n);
|
2511
2518
|
if (i === "j") {
|
2512
2519
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2513
2520
|
s++, n++;
|
2514
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l =
|
2521
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = Vn(t);
|
2515
2522
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2516
2523
|
r += h;
|
2517
2524
|
for (; o-- > 0; )
|
@@ -2521,7 +2528,7 @@ function Ln(e, t) {
|
|
2521
2528
|
}
|
2522
2529
|
return r;
|
2523
2530
|
}
|
2524
|
-
function
|
2531
|
+
function Vn(e) {
|
2525
2532
|
var t = e.hourCycle;
|
2526
2533
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2527
2534
|
e.hourCycles && // @ts-ignore
|
@@ -2540,23 +2547,23 @@ function Pn(e) {
|
|
2540
2547
|
}
|
2541
2548
|
var r = e.language, n;
|
2542
2549
|
r !== "root" && (n = e.maximize().region);
|
2543
|
-
var i =
|
2550
|
+
var i = Se[n || ""] || Se[r || ""] || Se["".concat(r, "-001")] || Se["001"];
|
2544
2551
|
return i[0];
|
2545
2552
|
}
|
2546
|
-
var
|
2547
|
-
function
|
2553
|
+
var je, Xn = new RegExp("^".concat(nr.source, "*")), Wn = new RegExp("".concat(nr.source, "*$"));
|
2554
|
+
function v(e, t) {
|
2548
2555
|
return { start: e, end: t };
|
2549
2556
|
}
|
2550
|
-
var
|
2557
|
+
var zn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Zn = !!String.fromCodePoint, Qn = !!Object.fromEntries, qn = !!String.prototype.codePointAt, Jn = !!String.prototype.trimStart, Yn = !!String.prototype.trimEnd, Kn = !!Number.isSafeInteger, ei = Kn ? Number.isSafeInteger : function(e) {
|
2551
2558
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2552
|
-
},
|
2559
|
+
}, qe = !0;
|
2553
2560
|
try {
|
2554
|
-
var
|
2555
|
-
|
2561
|
+
var ti = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2562
|
+
qe = ((je = ti.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
|
2556
2563
|
} catch {
|
2557
|
-
|
2564
|
+
qe = !1;
|
2558
2565
|
}
|
2559
|
-
var
|
2566
|
+
var Et = zn ? (
|
2560
2567
|
// Native
|
2561
2568
|
function(t, r, n) {
|
2562
2569
|
return t.startsWith(r, n);
|
@@ -2566,7 +2573,7 @@ var bt = Rn ? (
|
|
2566
2573
|
function(t, r, n) {
|
2567
2574
|
return t.slice(n, n + r.length) === r;
|
2568
2575
|
}
|
2569
|
-
),
|
2576
|
+
), Je = Zn ? String.fromCodePoint : (
|
2570
2577
|
// IE11
|
2571
2578
|
function() {
|
2572
2579
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2578,9 +2585,9 @@ var bt = Rn ? (
|
|
2578
2585
|
}
|
2579
2586
|
return n;
|
2580
2587
|
}
|
2581
|
-
),
|
2588
|
+
), xt = (
|
2582
2589
|
// native
|
2583
|
-
|
2590
|
+
Qn ? Object.fromEntries : (
|
2584
2591
|
// Ponyfill
|
2585
2592
|
function(t) {
|
2586
2593
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2590,7 +2597,7 @@ var bt = Rn ? (
|
|
2590
2597
|
return r;
|
2591
2598
|
}
|
2592
2599
|
)
|
2593
|
-
),
|
2600
|
+
), ar = qn ? (
|
2594
2601
|
// Native
|
2595
2602
|
function(t, r) {
|
2596
2603
|
return t.codePointAt(r);
|
@@ -2604,7 +2611,7 @@ var bt = Rn ? (
|
|
2604
2611
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2605
2612
|
}
|
2606
2613
|
}
|
2607
|
-
),
|
2614
|
+
), ri = Jn ? (
|
2608
2615
|
// Native
|
2609
2616
|
function(t) {
|
2610
2617
|
return t.trimStart();
|
@@ -2612,9 +2619,9 @@ var bt = Rn ? (
|
|
2612
2619
|
) : (
|
2613
2620
|
// Ponyfill
|
2614
2621
|
function(t) {
|
2615
|
-
return t.replace(
|
2622
|
+
return t.replace(Xn, "");
|
2616
2623
|
}
|
2617
|
-
),
|
2624
|
+
), ni = Yn ? (
|
2618
2625
|
// Native
|
2619
2626
|
function(t) {
|
2620
2627
|
return t.trimEnd();
|
@@ -2622,32 +2629,32 @@ var bt = Rn ? (
|
|
2622
2629
|
) : (
|
2623
2630
|
// Ponyfill
|
2624
2631
|
function(t) {
|
2625
|
-
return t.replace(
|
2632
|
+
return t.replace(Wn, "");
|
2626
2633
|
}
|
2627
2634
|
);
|
2628
|
-
function
|
2635
|
+
function lr(e, t) {
|
2629
2636
|
return new RegExp(e, t);
|
2630
2637
|
}
|
2631
|
-
var
|
2632
|
-
if (
|
2633
|
-
var
|
2634
|
-
|
2638
|
+
var Ye;
|
2639
|
+
if (qe) {
|
2640
|
+
var Ct = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2641
|
+
Ye = function(t, r) {
|
2635
2642
|
var n;
|
2636
|
-
|
2637
|
-
var i =
|
2643
|
+
Ct.lastIndex = r;
|
2644
|
+
var i = Ct.exec(t);
|
2638
2645
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2639
2646
|
};
|
2640
2647
|
} else
|
2641
|
-
|
2648
|
+
Ye = function(t, r) {
|
2642
2649
|
for (var n = []; ; ) {
|
2643
|
-
var i =
|
2644
|
-
if (i === void 0 ||
|
2650
|
+
var i = ar(t, r);
|
2651
|
+
if (i === void 0 || ur(i) || ai(i))
|
2645
2652
|
break;
|
2646
2653
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2647
2654
|
}
|
2648
|
-
return
|
2655
|
+
return Je.apply(void 0, n);
|
2649
2656
|
};
|
2650
|
-
var
|
2657
|
+
var ii = (
|
2651
2658
|
/** @class */
|
2652
2659
|
function() {
|
2653
2660
|
function e(t, r) {
|
@@ -2671,14 +2678,14 @@ var Zn = (
|
|
2671
2678
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
2672
2679
|
var a = this.clonePosition();
|
2673
2680
|
this.bump(), i.push({
|
2674
|
-
type:
|
2675
|
-
location:
|
2681
|
+
type: A.pound,
|
2682
|
+
location: v(a, this.clonePosition())
|
2676
2683
|
});
|
2677
2684
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2678
2685
|
if (n)
|
2679
2686
|
break;
|
2680
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
2681
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2687
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2688
|
+
} else if (s === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
2682
2689
|
var o = this.parseTag(t, r);
|
2683
2690
|
if (o.err)
|
2684
2691
|
return o;
|
@@ -2699,9 +2706,9 @@ var Zn = (
|
|
2699
2706
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2700
2707
|
return {
|
2701
2708
|
val: {
|
2702
|
-
type:
|
2709
|
+
type: A.literal,
|
2703
2710
|
value: "<".concat(i, "/>"),
|
2704
|
-
location:
|
2711
|
+
location: v(n, this.clonePosition())
|
2705
2712
|
},
|
2706
2713
|
err: null
|
2707
2714
|
};
|
@@ -2711,25 +2718,25 @@ var Zn = (
|
|
2711
2718
|
return s;
|
2712
2719
|
var o = s.val, a = this.clonePosition();
|
2713
2720
|
if (this.bumpIf("</")) {
|
2714
|
-
if (this.isEOF() || !
|
2715
|
-
return this.error(y.INVALID_TAG,
|
2721
|
+
if (this.isEOF() || !Ke(this.char()))
|
2722
|
+
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2716
2723
|
var h = this.clonePosition(), l = this.parseTagName();
|
2717
|
-
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG,
|
2724
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2718
2725
|
val: {
|
2719
|
-
type:
|
2726
|
+
type: A.tag,
|
2720
2727
|
value: i,
|
2721
2728
|
children: o,
|
2722
|
-
location:
|
2729
|
+
location: v(n, this.clonePosition())
|
2723
2730
|
},
|
2724
2731
|
err: null
|
2725
|
-
} : this.error(y.INVALID_TAG,
|
2732
|
+
} : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
|
2726
2733
|
} else
|
2727
|
-
return this.error(y.UNCLOSED_TAG,
|
2734
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
2728
2735
|
} else
|
2729
|
-
return this.error(y.INVALID_TAG,
|
2736
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2730
2737
|
}, e.prototype.parseTagName = function() {
|
2731
2738
|
var t = this.offset();
|
2732
|
-
for (this.bump(); !this.isEOF() &&
|
2739
|
+
for (this.bump(); !this.isEOF() && si(this.char()); )
|
2733
2740
|
this.bump();
|
2734
2741
|
return this.message.slice(t, this.offset());
|
2735
2742
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2751,14 +2758,14 @@ var Zn = (
|
|
2751
2758
|
}
|
2752
2759
|
break;
|
2753
2760
|
}
|
2754
|
-
var h =
|
2761
|
+
var h = v(n, this.clonePosition());
|
2755
2762
|
return {
|
2756
|
-
val: { type:
|
2763
|
+
val: { type: A.literal, value: i, location: h },
|
2757
2764
|
err: null
|
2758
2765
|
};
|
2759
2766
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2760
2767
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2761
|
-
!
|
2768
|
+
!oi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2762
2769
|
}, e.prototype.tryParseQuote = function(t) {
|
2763
2770
|
if (this.isEOF() || this.char() !== 39)
|
2764
2771
|
return null;
|
@@ -2792,49 +2799,49 @@ var Zn = (
|
|
2792
2799
|
r.push(n);
|
2793
2800
|
this.bump();
|
2794
2801
|
}
|
2795
|
-
return
|
2802
|
+
return Je.apply(void 0, r);
|
2796
2803
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2797
2804
|
if (this.isEOF())
|
2798
2805
|
return null;
|
2799
2806
|
var n = this.char();
|
2800
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2807
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
|
2801
2808
|
}, e.prototype.parseArgument = function(t, r) {
|
2802
2809
|
var n = this.clonePosition();
|
2803
2810
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2804
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2811
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
2805
2812
|
if (this.char() === 125)
|
2806
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
2813
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
2807
2814
|
var i = this.parseIdentifierIfPossible().value;
|
2808
2815
|
if (!i)
|
2809
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
2816
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2810
2817
|
if (this.bumpSpace(), this.isEOF())
|
2811
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2818
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
2812
2819
|
switch (this.char()) {
|
2813
2820
|
case 125:
|
2814
2821
|
return this.bump(), {
|
2815
2822
|
val: {
|
2816
|
-
type:
|
2823
|
+
type: A.argument,
|
2817
2824
|
// value does not include the opening and closing braces.
|
2818
2825
|
value: i,
|
2819
|
-
location:
|
2826
|
+
location: v(n, this.clonePosition())
|
2820
2827
|
},
|
2821
2828
|
err: null
|
2822
2829
|
};
|
2823
2830
|
case 44:
|
2824
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2831
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2825
2832
|
default:
|
2826
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
2833
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2827
2834
|
}
|
2828
2835
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2829
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2836
|
+
var t = this.clonePosition(), r = this.offset(), n = Ye(this.message, r), i = r + n.length;
|
2830
2837
|
this.bumpTo(i);
|
2831
|
-
var s = this.clonePosition(), o =
|
2838
|
+
var s = this.clonePosition(), o = v(t, s);
|
2832
2839
|
return { value: n, location: o };
|
2833
2840
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2834
2841
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2835
2842
|
switch (a) {
|
2836
2843
|
case "":
|
2837
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
2844
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(o, h));
|
2838
2845
|
case "number":
|
2839
2846
|
case "date":
|
2840
2847
|
case "time": {
|
@@ -2845,35 +2852,35 @@ var Zn = (
|
|
2845
2852
|
var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2846
2853
|
if (m.err)
|
2847
2854
|
return m;
|
2848
|
-
var f =
|
2855
|
+
var f = ni(m.val);
|
2849
2856
|
if (f.length === 0)
|
2850
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
2851
|
-
var p =
|
2857
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2858
|
+
var p = v(u, this.clonePosition());
|
2852
2859
|
l = { style: f, styleLocation: p };
|
2853
2860
|
}
|
2854
2861
|
var g = this.tryParseArgumentClose(i);
|
2855
2862
|
if (g.err)
|
2856
2863
|
return g;
|
2857
|
-
var b =
|
2858
|
-
if (l &&
|
2859
|
-
var d =
|
2864
|
+
var b = v(i, this.clonePosition());
|
2865
|
+
if (l && Et(l?.style, "::", 0)) {
|
2866
|
+
var d = ri(l.style.slice(2));
|
2860
2867
|
if (a === "number") {
|
2861
2868
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2862
2869
|
return m.err ? m : {
|
2863
|
-
val: { type:
|
2870
|
+
val: { type: A.number, value: n, location: b, style: m.val },
|
2864
2871
|
err: null
|
2865
2872
|
};
|
2866
2873
|
} else {
|
2867
2874
|
if (d.length === 0)
|
2868
2875
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2869
|
-
var
|
2870
|
-
this.locale && (
|
2876
|
+
var C = d;
|
2877
|
+
this.locale && (C = jn(d, this.locale));
|
2871
2878
|
var f = {
|
2872
|
-
type:
|
2873
|
-
pattern:
|
2879
|
+
type: se.dateTime,
|
2880
|
+
pattern: C,
|
2874
2881
|
location: l.styleLocation,
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2876
|
-
}, E = a === "date" ?
|
2882
|
+
parsedOptions: this.shouldParseSkeletons ? Fn(C) : {}
|
2883
|
+
}, E = a === "date" ? A.date : A.time;
|
2877
2884
|
return {
|
2878
2885
|
val: { type: E, value: n, location: b, style: f },
|
2879
2886
|
err: null
|
@@ -2882,7 +2889,7 @@ var Zn = (
|
|
2882
2889
|
}
|
2883
2890
|
return {
|
2884
2891
|
val: {
|
2885
|
-
type: a === "number" ?
|
2892
|
+
type: a === "number" ? A.number : a === "date" ? A.date : A.time,
|
2886
2893
|
value: n,
|
2887
2894
|
location: b,
|
2888
2895
|
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
@@ -2893,52 +2900,52 @@ var Zn = (
|
|
2893
2900
|
case "plural":
|
2894
2901
|
case "selectordinal":
|
2895
2902
|
case "select": {
|
2896
|
-
var
|
2903
|
+
var w = this.clonePosition();
|
2897
2904
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2898
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2905
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w, _({}, w)));
|
2899
2906
|
this.bumpSpace();
|
2900
|
-
var
|
2901
|
-
if (a !== "select" &&
|
2907
|
+
var U = this.parseIdentifierIfPossible(), N = 0;
|
2908
|
+
if (a !== "select" && U.value === "offset") {
|
2902
2909
|
if (!this.bumpIf(":"))
|
2903
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2910
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
2904
2911
|
this.bumpSpace();
|
2905
2912
|
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2906
2913
|
if (m.err)
|
2907
2914
|
return m;
|
2908
|
-
this.bumpSpace(),
|
2915
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), N = m.val;
|
2909
2916
|
}
|
2910
|
-
var
|
2911
|
-
if (
|
2912
|
-
return
|
2917
|
+
var T = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
2918
|
+
if (T.err)
|
2919
|
+
return T;
|
2913
2920
|
var g = this.tryParseArgumentClose(i);
|
2914
2921
|
if (g.err)
|
2915
2922
|
return g;
|
2916
|
-
var
|
2923
|
+
var H = v(i, this.clonePosition());
|
2917
2924
|
return a === "select" ? {
|
2918
2925
|
val: {
|
2919
|
-
type:
|
2926
|
+
type: A.select,
|
2920
2927
|
value: n,
|
2921
|
-
options:
|
2922
|
-
location:
|
2928
|
+
options: xt(T.val),
|
2929
|
+
location: H
|
2923
2930
|
},
|
2924
2931
|
err: null
|
2925
2932
|
} : {
|
2926
2933
|
val: {
|
2927
|
-
type:
|
2934
|
+
type: A.plural,
|
2928
2935
|
value: n,
|
2929
|
-
options:
|
2930
|
-
offset:
|
2936
|
+
options: xt(T.val),
|
2937
|
+
offset: N,
|
2931
2938
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2932
|
-
location:
|
2939
|
+
location: H
|
2933
2940
|
},
|
2934
2941
|
err: null
|
2935
2942
|
};
|
2936
2943
|
}
|
2937
2944
|
default:
|
2938
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
2945
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(o, h));
|
2939
2946
|
}
|
2940
2947
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2941
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2948
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2942
2949
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2943
2950
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2944
2951
|
var n = this.char();
|
@@ -2947,7 +2954,7 @@ var Zn = (
|
|
2947
2954
|
this.bump();
|
2948
2955
|
var i = this.clonePosition();
|
2949
2956
|
if (!this.bumpUntil("'"))
|
2950
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2957
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
2951
2958
|
this.bump();
|
2952
2959
|
break;
|
2953
2960
|
}
|
@@ -2977,16 +2984,16 @@ var Zn = (
|
|
2977
2984
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2978
2985
|
var n = [];
|
2979
2986
|
try {
|
2980
|
-
n =
|
2987
|
+
n = Dn(t);
|
2981
2988
|
} catch {
|
2982
2989
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2983
2990
|
}
|
2984
2991
|
return {
|
2985
2992
|
val: {
|
2986
|
-
type:
|
2993
|
+
type: se.number,
|
2987
2994
|
tokens: n,
|
2988
2995
|
location: r,
|
2989
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2996
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
2990
2997
|
},
|
2991
2998
|
err: null
|
2992
2999
|
};
|
@@ -2998,7 +3005,7 @@ var Zn = (
|
|
2998
3005
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2999
3006
|
if (f.err)
|
3000
3007
|
return f;
|
3001
|
-
u =
|
3008
|
+
u = v(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
|
3002
3009
|
} else
|
3003
3010
|
break;
|
3004
3011
|
}
|
@@ -3007,7 +3014,7 @@ var Zn = (
|
|
3007
3014
|
l === "other" && (o = !0), this.bumpSpace();
|
3008
3015
|
var p = this.clonePosition();
|
3009
3016
|
if (!this.bumpIf("{"))
|
3010
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
3017
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
3011
3018
|
var g = this.parseMessage(t + 1, r, n);
|
3012
3019
|
if (g.err)
|
3013
3020
|
return g;
|
@@ -3018,11 +3025,11 @@ var Zn = (
|
|
3018
3025
|
l,
|
3019
3026
|
{
|
3020
3027
|
value: g.val,
|
3021
|
-
location:
|
3028
|
+
location: v(p, this.clonePosition())
|
3022
3029
|
}
|
3023
3030
|
]), h.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, u = s.location;
|
3024
3031
|
}
|
3025
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
3032
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3026
3033
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3027
3034
|
var n = 1, i = this.clonePosition();
|
3028
3035
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3033,8 +3040,8 @@ var Zn = (
|
|
3033
3040
|
else
|
3034
3041
|
break;
|
3035
3042
|
}
|
3036
|
-
var h =
|
3037
|
-
return s ? (o *= n,
|
3043
|
+
var h = v(i, this.clonePosition());
|
3044
|
+
return s ? (o *= n, ei(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3038
3045
|
}, e.prototype.offset = function() {
|
3039
3046
|
return this.position.offset;
|
3040
3047
|
}, e.prototype.isEOF = function() {
|
@@ -3049,7 +3056,7 @@ var Zn = (
|
|
3049
3056
|
var t = this.position.offset;
|
3050
3057
|
if (t >= this.message.length)
|
3051
3058
|
throw Error("out of bound");
|
3052
|
-
var r =
|
3059
|
+
var r = ar(this.message, t);
|
3053
3060
|
if (r === void 0)
|
3054
3061
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3055
3062
|
return r;
|
@@ -3068,7 +3075,7 @@ var Zn = (
|
|
3068
3075
|
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);
|
3069
3076
|
}
|
3070
3077
|
}, e.prototype.bumpIf = function(t) {
|
3071
|
-
if (
|
3078
|
+
if (Et(this.message, t, this.offset())) {
|
3072
3079
|
for (var r = 0; r < t.length; r++)
|
3073
3080
|
this.bump();
|
3074
3081
|
return !0;
|
@@ -3090,7 +3097,7 @@ var Zn = (
|
|
3090
3097
|
break;
|
3091
3098
|
}
|
3092
3099
|
}, e.prototype.bumpSpace = function() {
|
3093
|
-
for (; !this.isEOF() &&
|
3100
|
+
for (; !this.isEOF() && ur(this.char()); )
|
3094
3101
|
this.bump();
|
3095
3102
|
}, e.prototype.peek = function() {
|
3096
3103
|
if (this.isEOF())
|
@@ -3100,47 +3107,47 @@ var Zn = (
|
|
3100
3107
|
}, e;
|
3101
3108
|
}()
|
3102
3109
|
);
|
3103
|
-
function
|
3110
|
+
function Ke(e) {
|
3104
3111
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3105
3112
|
}
|
3106
|
-
function
|
3107
|
-
return
|
3113
|
+
function oi(e) {
|
3114
|
+
return Ke(e) || e === 47;
|
3108
3115
|
}
|
3109
|
-
function
|
3116
|
+
function si(e) {
|
3110
3117
|
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;
|
3111
3118
|
}
|
3112
|
-
function
|
3119
|
+
function ur(e) {
|
3113
3120
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3114
3121
|
}
|
3115
|
-
function
|
3122
|
+
function ai(e) {
|
3116
3123
|
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;
|
3117
3124
|
}
|
3118
|
-
function
|
3125
|
+
function et(e) {
|
3119
3126
|
e.forEach(function(t) {
|
3120
|
-
if (delete t.location,
|
3127
|
+
if (delete t.location, Kt(t) || er(t))
|
3121
3128
|
for (var r in t.options)
|
3122
|
-
delete t.options[r].location,
|
3129
|
+
delete t.options[r].location, et(t.options[r].value);
|
3123
3130
|
else
|
3124
|
-
|
3131
|
+
qt(t) && rr(t.style) || (Jt(t) || Yt(t)) && Qe(t.style) ? delete t.style.location : tr(t) && et(t.children);
|
3125
3132
|
});
|
3126
3133
|
}
|
3127
|
-
function
|
3128
|
-
t === void 0 && (t = {}), t =
|
3129
|
-
var r = new
|
3134
|
+
function li(e, t) {
|
3135
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3136
|
+
var r = new ii(e, t).parse();
|
3130
3137
|
if (r.err) {
|
3131
3138
|
var n = SyntaxError(y[r.err.kind]);
|
3132
3139
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3133
3140
|
}
|
3134
|
-
return t?.captureLocation ||
|
3141
|
+
return t?.captureLocation || et(r.val), r.val;
|
3135
3142
|
}
|
3136
|
-
var
|
3143
|
+
var ae;
|
3137
3144
|
(function(e) {
|
3138
3145
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3139
|
-
})(
|
3140
|
-
var
|
3146
|
+
})(ae || (ae = {}));
|
3147
|
+
var Pe = (
|
3141
3148
|
/** @class */
|
3142
3149
|
function(e) {
|
3143
|
-
|
3150
|
+
Ne(t, e);
|
3144
3151
|
function t(r, n, i) {
|
3145
3152
|
var s = e.call(this, r) || this;
|
3146
3153
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3149,155 +3156,155 @@ var Ne = (
|
|
3149
3156
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3150
3157
|
}, t;
|
3151
3158
|
}(Error)
|
3152
|
-
),
|
3159
|
+
), wt = (
|
3153
3160
|
/** @class */
|
3154
3161
|
function(e) {
|
3155
|
-
|
3162
|
+
Ne(t, e);
|
3156
3163
|
function t(r, n, i, s) {
|
3157
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3164
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ae.INVALID_VALUE, s) || this;
|
3158
3165
|
}
|
3159
3166
|
return t;
|
3160
|
-
}(
|
3161
|
-
),
|
3167
|
+
}(Pe)
|
3168
|
+
), ui = (
|
3162
3169
|
/** @class */
|
3163
3170
|
function(e) {
|
3164
|
-
|
3171
|
+
Ne(t, e);
|
3165
3172
|
function t(r, n, i) {
|
3166
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3173
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ae.INVALID_VALUE, i) || this;
|
3167
3174
|
}
|
3168
3175
|
return t;
|
3169
|
-
}(
|
3170
|
-
),
|
3176
|
+
}(Pe)
|
3177
|
+
), hi = (
|
3171
3178
|
/** @class */
|
3172
3179
|
function(e) {
|
3173
|
-
|
3180
|
+
Ne(t, e);
|
3174
3181
|
function t(r, n) {
|
3175
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3182
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ae.MISSING_VALUE, n) || this;
|
3176
3183
|
}
|
3177
3184
|
return t;
|
3178
|
-
}(
|
3179
|
-
),
|
3185
|
+
}(Pe)
|
3186
|
+
), P;
|
3180
3187
|
(function(e) {
|
3181
3188
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3182
|
-
})(
|
3183
|
-
function
|
3189
|
+
})(P || (P = {}));
|
3190
|
+
function ci(e) {
|
3184
3191
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3185
3192
|
var n = t[t.length - 1];
|
3186
|
-
return !n || n.type !==
|
3193
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
3187
3194
|
}, []);
|
3188
3195
|
}
|
3189
|
-
function
|
3196
|
+
function fi(e) {
|
3190
3197
|
return typeof e == "function";
|
3191
3198
|
}
|
3192
|
-
function
|
3193
|
-
if (e.length === 1 &&
|
3199
|
+
function Ae(e, t, r, n, i, s, o) {
|
3200
|
+
if (e.length === 1 && bt(e[0]))
|
3194
3201
|
return [
|
3195
3202
|
{
|
3196
|
-
type:
|
3203
|
+
type: P.literal,
|
3197
3204
|
value: e[0].value
|
3198
3205
|
}
|
3199
3206
|
];
|
3200
3207
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3201
3208
|
var u = l[h];
|
3202
|
-
if (
|
3209
|
+
if (bt(u)) {
|
3203
3210
|
a.push({
|
3204
|
-
type:
|
3211
|
+
type: P.literal,
|
3205
3212
|
value: u.value
|
3206
3213
|
});
|
3207
3214
|
continue;
|
3208
3215
|
}
|
3209
|
-
if (
|
3216
|
+
if (Pn(u)) {
|
3210
3217
|
typeof s == "number" && a.push({
|
3211
|
-
type:
|
3218
|
+
type: P.literal,
|
3212
3219
|
value: r.getNumberFormat(t).format(s)
|
3213
3220
|
});
|
3214
3221
|
continue;
|
3215
3222
|
}
|
3216
3223
|
var m = u.value;
|
3217
3224
|
if (!(i && m in i))
|
3218
|
-
throw new
|
3225
|
+
throw new hi(m, o);
|
3219
3226
|
var f = i[m];
|
3220
|
-
if (
|
3227
|
+
if (Nn(u)) {
|
3221
3228
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3222
|
-
type: typeof f == "string" ?
|
3229
|
+
type: typeof f == "string" ? P.literal : P.object,
|
3223
3230
|
value: f
|
3224
3231
|
});
|
3225
3232
|
continue;
|
3226
3233
|
}
|
3227
|
-
if (
|
3228
|
-
var p = typeof u.style == "string" ? n.date[u.style] :
|
3234
|
+
if (Jt(u)) {
|
3235
|
+
var p = typeof u.style == "string" ? n.date[u.style] : Qe(u.style) ? u.style.parsedOptions : void 0;
|
3229
3236
|
a.push({
|
3230
|
-
type:
|
3237
|
+
type: P.literal,
|
3231
3238
|
value: r.getDateTimeFormat(t, p).format(f)
|
3232
3239
|
});
|
3233
3240
|
continue;
|
3234
3241
|
}
|
3235
|
-
if (
|
3236
|
-
var p = typeof u.style == "string" ? n.time[u.style] :
|
3242
|
+
if (Yt(u)) {
|
3243
|
+
var p = typeof u.style == "string" ? n.time[u.style] : Qe(u.style) ? u.style.parsedOptions : n.time.medium;
|
3237
3244
|
a.push({
|
3238
|
-
type:
|
3245
|
+
type: P.literal,
|
3239
3246
|
value: r.getDateTimeFormat(t, p).format(f)
|
3240
3247
|
});
|
3241
3248
|
continue;
|
3242
3249
|
}
|
3243
|
-
if (
|
3244
|
-
var p = typeof u.style == "string" ? n.number[u.style] :
|
3250
|
+
if (qt(u)) {
|
3251
|
+
var p = typeof u.style == "string" ? n.number[u.style] : rr(u.style) ? u.style.parsedOptions : void 0;
|
3245
3252
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3246
|
-
type:
|
3253
|
+
type: P.literal,
|
3247
3254
|
value: r.getNumberFormat(t, p).format(f)
|
3248
3255
|
});
|
3249
3256
|
continue;
|
3250
3257
|
}
|
3251
|
-
if (
|
3258
|
+
if (tr(u)) {
|
3252
3259
|
var g = u.children, b = u.value, d = i[b];
|
3253
|
-
if (!
|
3254
|
-
throw new
|
3255
|
-
var
|
3256
|
-
return
|
3260
|
+
if (!fi(d))
|
3261
|
+
throw new ui(b, "function", o);
|
3262
|
+
var C = Ae(g, t, r, n, i, s), E = d(C.map(function(N) {
|
3263
|
+
return N.value;
|
3257
3264
|
}));
|
3258
|
-
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(
|
3265
|
+
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(N) {
|
3259
3266
|
return {
|
3260
|
-
type: typeof
|
3261
|
-
value:
|
3267
|
+
type: typeof N == "string" ? P.literal : P.object,
|
3268
|
+
value: N
|
3262
3269
|
};
|
3263
3270
|
}));
|
3264
3271
|
}
|
3265
|
-
if (
|
3266
|
-
var
|
3267
|
-
if (!
|
3268
|
-
throw new
|
3269
|
-
a.push.apply(a,
|
3272
|
+
if (Kt(u)) {
|
3273
|
+
var w = u.options[f] || u.options.other;
|
3274
|
+
if (!w)
|
3275
|
+
throw new wt(u.value, f, Object.keys(u.options), o);
|
3276
|
+
a.push.apply(a, Ae(w.value, t, r, n, i));
|
3270
3277
|
continue;
|
3271
3278
|
}
|
3272
|
-
if (
|
3273
|
-
var
|
3274
|
-
if (!
|
3279
|
+
if (er(u)) {
|
3280
|
+
var w = u.options["=".concat(f)];
|
3281
|
+
if (!w) {
|
3275
3282
|
if (!Intl.PluralRules)
|
3276
|
-
throw new
|
3283
|
+
throw new Pe(`Intl.PluralRules is not available in this environment.
|
3277
3284
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3278
|
-
`,
|
3279
|
-
var
|
3280
|
-
|
3285
|
+
`, ae.MISSING_INTL_API, o);
|
3286
|
+
var U = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3287
|
+
w = u.options[U] || u.options.other;
|
3281
3288
|
}
|
3282
|
-
if (!
|
3283
|
-
throw new
|
3284
|
-
a.push.apply(a,
|
3289
|
+
if (!w)
|
3290
|
+
throw new wt(u.value, f, Object.keys(u.options), o);
|
3291
|
+
a.push.apply(a, Ae(w.value, t, r, n, i, f - (u.offset || 0)));
|
3285
3292
|
continue;
|
3286
3293
|
}
|
3287
3294
|
}
|
3288
|
-
return
|
3295
|
+
return ci(a);
|
3289
3296
|
}
|
3290
|
-
function
|
3291
|
-
return t ?
|
3292
|
-
return r[n] =
|
3297
|
+
function mi(e, t) {
|
3298
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3299
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
3293
3300
|
}, {})) : e;
|
3294
3301
|
}
|
3295
|
-
function
|
3302
|
+
function di(e, t) {
|
3296
3303
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3297
|
-
return r[n] =
|
3298
|
-
},
|
3304
|
+
return r[n] = mi(e[n], t[n]), r;
|
3305
|
+
}, _({}, e)) : e;
|
3299
3306
|
}
|
3300
|
-
function
|
3307
|
+
function Ve(e) {
|
3301
3308
|
return {
|
3302
3309
|
create: function() {
|
3303
3310
|
return {
|
@@ -3311,39 +3318,39 @@ function ke(e) {
|
|
3311
3318
|
}
|
3312
3319
|
};
|
3313
3320
|
}
|
3314
|
-
function
|
3321
|
+
function pi(e) {
|
3315
3322
|
return e === void 0 && (e = {
|
3316
3323
|
number: {},
|
3317
3324
|
dateTime: {},
|
3318
3325
|
pluralRules: {}
|
3319
3326
|
}), {
|
3320
|
-
getNumberFormat:
|
3327
|
+
getNumberFormat: ke(function() {
|
3321
3328
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3322
3329
|
r[n] = arguments[n];
|
3323
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3330
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
3324
3331
|
}, {
|
3325
|
-
cache:
|
3326
|
-
strategy:
|
3332
|
+
cache: Ve(e.number),
|
3333
|
+
strategy: $e.variadic
|
3327
3334
|
}),
|
3328
|
-
getDateTimeFormat:
|
3335
|
+
getDateTimeFormat: ke(function() {
|
3329
3336
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3330
3337
|
r[n] = arguments[n];
|
3331
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3338
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
3332
3339
|
}, {
|
3333
|
-
cache:
|
3334
|
-
strategy:
|
3340
|
+
cache: Ve(e.dateTime),
|
3341
|
+
strategy: $e.variadic
|
3335
3342
|
}),
|
3336
|
-
getPluralRules:
|
3343
|
+
getPluralRules: ke(function() {
|
3337
3344
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3338
3345
|
r[n] = arguments[n];
|
3339
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3346
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], r, !1)))();
|
3340
3347
|
}, {
|
3341
|
-
cache:
|
3342
|
-
strategy:
|
3348
|
+
cache: Ve(e.pluralRules),
|
3349
|
+
strategy: $e.variadic
|
3343
3350
|
})
|
3344
3351
|
};
|
3345
3352
|
}
|
3346
|
-
var
|
3353
|
+
var gi = (
|
3347
3354
|
/** @class */
|
3348
3355
|
function() {
|
3349
3356
|
function e(t, r, n, i) {
|
@@ -3358,11 +3365,11 @@ var si = (
|
|
3358
3365
|
if (l.length === 1)
|
3359
3366
|
return l[0].value;
|
3360
3367
|
var u = l.reduce(function(m, f) {
|
3361
|
-
return !m.length || f.type !==
|
3368
|
+
return !m.length || f.type !== P.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
3362
3369
|
}, []);
|
3363
3370
|
return u.length <= 1 ? u[0] || "" : u;
|
3364
3371
|
}, this.formatToParts = function(h) {
|
3365
|
-
return
|
3372
|
+
return Ae(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
3366
3373
|
}, this.resolvedOptions = function() {
|
3367
3374
|
var h;
|
3368
3375
|
return {
|
@@ -3375,13 +3382,13 @@ var si = (
|
|
3375
3382
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3376
3383
|
var o = i || {};
|
3377
3384
|
o.formatters;
|
3378
|
-
var a =
|
3379
|
-
this.ast = e.__parse(t,
|
3385
|
+
var a = Sn(o, ["formatters"]);
|
3386
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
3380
3387
|
} else
|
3381
3388
|
this.ast = t;
|
3382
3389
|
if (!Array.isArray(this.ast))
|
3383
3390
|
throw new TypeError("A message must be provided as a String or AST.");
|
3384
|
-
this.formats =
|
3391
|
+
this.formats = di(e.formats, n), this.formatters = i && i.formatters || pi(this.formatterCache);
|
3385
3392
|
}
|
3386
3393
|
return Object.defineProperty(e, "defaultLocale", {
|
3387
3394
|
get: function() {
|
@@ -3394,7 +3401,7 @@ var si = (
|
|
3394
3401
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3395
3402
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3396
3403
|
}
|
3397
|
-
}, e.__parse =
|
3404
|
+
}, e.__parse = li, e.formats = {
|
3398
3405
|
number: {
|
3399
3406
|
integer: {
|
3400
3407
|
maximumFractionDigits: 0
|
@@ -3455,7 +3462,7 @@ var si = (
|
|
3455
3462
|
}, e;
|
3456
3463
|
}()
|
3457
3464
|
);
|
3458
|
-
function
|
3465
|
+
function bi(e, t) {
|
3459
3466
|
if (t == null)
|
3460
3467
|
return;
|
3461
3468
|
if (t in e)
|
@@ -3476,92 +3483,92 @@ function ai(e, t) {
|
|
3476
3483
|
n = void 0;
|
3477
3484
|
return n;
|
3478
3485
|
}
|
3479
|
-
const X = {},
|
3486
|
+
const X = {}, yi = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), hr = (e, t) => {
|
3480
3487
|
if (t == null)
|
3481
3488
|
return;
|
3482
3489
|
if (t in X && e in X[t])
|
3483
3490
|
return X[t][e];
|
3484
|
-
const r =
|
3491
|
+
const r = Oe(t);
|
3485
3492
|
for (let n = 0; n < r.length; n++) {
|
3486
|
-
const i = r[n], s =
|
3493
|
+
const i = r[n], s = _i(i, e);
|
3487
3494
|
if (s)
|
3488
|
-
return
|
3495
|
+
return yi(e, t, s);
|
3489
3496
|
}
|
3490
3497
|
};
|
3491
|
-
let
|
3492
|
-
const
|
3493
|
-
function
|
3494
|
-
return
|
3498
|
+
let at;
|
3499
|
+
const he = Le({});
|
3500
|
+
function vi(e) {
|
3501
|
+
return at[e] || null;
|
3495
3502
|
}
|
3496
|
-
function
|
3497
|
-
return e in
|
3503
|
+
function cr(e) {
|
3504
|
+
return e in at;
|
3498
3505
|
}
|
3499
|
-
function
|
3500
|
-
if (!
|
3506
|
+
function _i(e, t) {
|
3507
|
+
if (!cr(e))
|
3501
3508
|
return null;
|
3502
|
-
const r =
|
3503
|
-
return
|
3509
|
+
const r = vi(e);
|
3510
|
+
return bi(r, t);
|
3504
3511
|
}
|
3505
|
-
function
|
3512
|
+
function Ei(e) {
|
3506
3513
|
if (e == null)
|
3507
3514
|
return;
|
3508
|
-
const t =
|
3515
|
+
const t = Oe(e);
|
3509
3516
|
for (let r = 0; r < t.length; r++) {
|
3510
3517
|
const n = t[r];
|
3511
|
-
if (
|
3518
|
+
if (cr(n))
|
3512
3519
|
return n;
|
3513
3520
|
}
|
3514
3521
|
}
|
3515
|
-
function
|
3516
|
-
delete X[e],
|
3522
|
+
function fr(e, ...t) {
|
3523
|
+
delete X[e], he.update((r) => (r[e] = Hn.all([r[e] || {}, ...t]), r));
|
3517
3524
|
}
|
3518
|
-
|
3519
|
-
[
|
3525
|
+
ue(
|
3526
|
+
[he],
|
3520
3527
|
([e]) => Object.keys(e)
|
3521
3528
|
);
|
3522
|
-
|
3523
|
-
const
|
3524
|
-
function
|
3525
|
-
|
3529
|
+
he.subscribe((e) => at = e);
|
3530
|
+
const Be = {};
|
3531
|
+
function xi(e, t) {
|
3532
|
+
Be[e].delete(t), Be[e].size === 0 && delete Be[e];
|
3526
3533
|
}
|
3527
|
-
function
|
3528
|
-
return
|
3534
|
+
function mr(e) {
|
3535
|
+
return Be[e];
|
3529
3536
|
}
|
3530
|
-
function
|
3531
|
-
return
|
3532
|
-
const r =
|
3537
|
+
function Ci(e) {
|
3538
|
+
return Oe(e).map((t) => {
|
3539
|
+
const r = mr(t);
|
3533
3540
|
return [t, r ? [...r] : []];
|
3534
3541
|
}).filter(([, t]) => t.length > 0);
|
3535
3542
|
}
|
3536
|
-
function
|
3537
|
-
return e == null ? !1 :
|
3543
|
+
function tt(e) {
|
3544
|
+
return e == null ? !1 : Oe(e).some(
|
3538
3545
|
(t) => {
|
3539
3546
|
var r;
|
3540
|
-
return (r =
|
3547
|
+
return (r = mr(t)) == null ? void 0 : r.size;
|
3541
3548
|
}
|
3542
3549
|
);
|
3543
3550
|
}
|
3544
|
-
function
|
3551
|
+
function wi(e, t) {
|
3545
3552
|
return Promise.all(
|
3546
|
-
t.map((n) => (
|
3547
|
-
).then((n) =>
|
3548
|
-
}
|
3549
|
-
const
|
3550
|
-
function
|
3551
|
-
if (!
|
3552
|
-
return e in
|
3553
|
-
const t =
|
3554
|
-
return
|
3553
|
+
t.map((n) => (xi(e, n), n().then((i) => i.default || i)))
|
3554
|
+
).then((n) => fr(e, ...n));
|
3555
|
+
}
|
3556
|
+
const de = {};
|
3557
|
+
function dr(e) {
|
3558
|
+
if (!tt(e))
|
3559
|
+
return e in de ? de[e] : Promise.resolve();
|
3560
|
+
const t = Ci(e);
|
3561
|
+
return de[e] = Promise.all(
|
3555
3562
|
t.map(
|
3556
|
-
([r, n]) =>
|
3563
|
+
([r, n]) => wi(r, n)
|
3557
3564
|
)
|
3558
3565
|
).then(() => {
|
3559
|
-
if (
|
3560
|
-
return
|
3561
|
-
delete
|
3562
|
-
}),
|
3566
|
+
if (tt(e))
|
3567
|
+
return dr(e);
|
3568
|
+
delete de[e];
|
3569
|
+
}), de[e];
|
3563
3570
|
}
|
3564
|
-
const
|
3571
|
+
const Hi = {
|
3565
3572
|
number: {
|
3566
3573
|
scientific: { notation: "scientific" },
|
3567
3574
|
engineering: { notation: "engineering" },
|
@@ -3590,150 +3597,150 @@ const pi = {
|
|
3590
3597
|
timeZoneName: "short"
|
3591
3598
|
}
|
3592
3599
|
}
|
3593
|
-
},
|
3600
|
+
}, Si = {
|
3594
3601
|
fallbackLocale: null,
|
3595
3602
|
loadingDelay: 200,
|
3596
|
-
formats:
|
3603
|
+
formats: Hi,
|
3597
3604
|
warnOnMissingMessages: !0,
|
3598
3605
|
handleMissingMessage: void 0,
|
3599
3606
|
ignoreTag: !0
|
3600
|
-
},
|
3601
|
-
function
|
3602
|
-
return
|
3603
|
-
}
|
3604
|
-
const
|
3605
|
-
var
|
3606
|
-
for (var r in t)
|
3607
|
-
|
3608
|
-
if (
|
3609
|
-
for (var r of
|
3610
|
-
|
3607
|
+
}, Ti = Si;
|
3608
|
+
function le() {
|
3609
|
+
return Ti;
|
3610
|
+
}
|
3611
|
+
const Xe = Le(!1);
|
3612
|
+
var Ai = Object.defineProperty, Bi = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, Li = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ni = (e, t) => {
|
3613
|
+
for (var r in t || (t = {}))
|
3614
|
+
Mi.call(t, r) && St(e, r, t[r]);
|
3615
|
+
if (Ht)
|
3616
|
+
for (var r of Ht(t))
|
3617
|
+
Li.call(t, r) && St(e, r, t[r]);
|
3611
3618
|
return e;
|
3612
|
-
},
|
3613
|
-
let
|
3614
|
-
const
|
3615
|
-
function
|
3619
|
+
}, Pi = (e, t) => Bi(e, Ii(t));
|
3620
|
+
let rt;
|
3621
|
+
const Ie = Le(null);
|
3622
|
+
function Tt(e) {
|
3616
3623
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3617
3624
|
}
|
3618
|
-
function
|
3619
|
-
const r =
|
3620
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3625
|
+
function Oe(e, t = le().fallbackLocale) {
|
3626
|
+
const r = Tt(e);
|
3627
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
3621
3628
|
}
|
3622
|
-
function
|
3623
|
-
return
|
3629
|
+
function J() {
|
3630
|
+
return rt ?? void 0;
|
3624
3631
|
}
|
3625
|
-
|
3626
|
-
|
3632
|
+
Ie.subscribe((e) => {
|
3633
|
+
rt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3627
3634
|
});
|
3628
|
-
const
|
3629
|
-
if (e &&
|
3630
|
-
const { loadingDelay: t } =
|
3635
|
+
const Oi = (e) => {
|
3636
|
+
if (e && Ei(e) && tt(e)) {
|
3637
|
+
const { loadingDelay: t } = le();
|
3631
3638
|
let r;
|
3632
|
-
return typeof window < "u" &&
|
3633
|
-
() =>
|
3639
|
+
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
3640
|
+
() => Xe.set(!0),
|
3634
3641
|
t
|
3635
|
-
) :
|
3636
|
-
|
3642
|
+
) : Xe.set(!0), dr(e).then(() => {
|
3643
|
+
Ie.set(e);
|
3637
3644
|
}).finally(() => {
|
3638
|
-
clearTimeout(r),
|
3645
|
+
clearTimeout(r), Xe.set(!1);
|
3639
3646
|
});
|
3640
3647
|
}
|
3641
|
-
return
|
3642
|
-
}, W =
|
3643
|
-
set:
|
3644
|
-
}),
|
3648
|
+
return Ie.set(e);
|
3649
|
+
}, W = Pi(Ni({}, Ie), {
|
3650
|
+
set: Oi
|
3651
|
+
}), Fe = (e) => {
|
3645
3652
|
const t = /* @__PURE__ */ Object.create(null);
|
3646
3653
|
return (n) => {
|
3647
3654
|
const i = JSON.stringify(n);
|
3648
3655
|
return i in t ? t[i] : t[i] = e(n);
|
3649
3656
|
};
|
3650
3657
|
};
|
3651
|
-
var
|
3658
|
+
var Fi = Object.defineProperty, Me = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
3652
3659
|
for (var r in t || (t = {}))
|
3653
|
-
|
3654
|
-
if (
|
3655
|
-
for (var r of
|
3656
|
-
|
3660
|
+
pr.call(t, r) && At(e, r, t[r]);
|
3661
|
+
if (Me)
|
3662
|
+
for (var r of Me(t))
|
3663
|
+
gr.call(t, r) && At(e, r, t[r]);
|
3657
3664
|
return e;
|
3658
|
-
},
|
3665
|
+
}, ce = (e, t) => {
|
3659
3666
|
var r = {};
|
3660
3667
|
for (var n in e)
|
3661
|
-
|
3662
|
-
if (e != null &&
|
3663
|
-
for (var n of
|
3664
|
-
t.indexOf(n) < 0 &&
|
3668
|
+
pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3669
|
+
if (e != null && Me)
|
3670
|
+
for (var n of Me(e))
|
3671
|
+
t.indexOf(n) < 0 && gr.call(e, n) && (r[n] = e[n]);
|
3665
3672
|
return r;
|
3666
3673
|
};
|
3667
|
-
const
|
3668
|
-
const { formats: r } =
|
3674
|
+
const _e = (e, t) => {
|
3675
|
+
const { formats: r } = le();
|
3669
3676
|
if (e in r && t in r[e])
|
3670
3677
|
return r[e][t];
|
3671
3678
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3672
|
-
},
|
3679
|
+
}, Ri = Fe(
|
3673
3680
|
(e) => {
|
3674
|
-
var t = e, { locale: r, format: n } = t, i =
|
3681
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
3675
3682
|
if (r == null)
|
3676
3683
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3677
|
-
return n && (i =
|
3684
|
+
return n && (i = _e("number", n)), new Intl.NumberFormat(r, i);
|
3678
3685
|
}
|
3679
|
-
),
|
3686
|
+
), Di = Fe(
|
3680
3687
|
(e) => {
|
3681
|
-
var t = e, { locale: r, format: n } = t, i =
|
3688
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
3682
3689
|
if (r == null)
|
3683
3690
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3684
|
-
return n ? i =
|
3691
|
+
return n ? i = _e("date", n) : Object.keys(i).length === 0 && (i = _e("date", "short")), new Intl.DateTimeFormat(r, i);
|
3685
3692
|
}
|
3686
|
-
),
|
3693
|
+
), Ui = Fe(
|
3687
3694
|
(e) => {
|
3688
|
-
var t = e, { locale: r, format: n } = t, i =
|
3695
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
3689
3696
|
if (r == null)
|
3690
3697
|
throw new Error(
|
3691
3698
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3692
3699
|
);
|
3693
|
-
return n ? i =
|
3700
|
+
return n ? i = _e("time", n) : Object.keys(i).length === 0 && (i = _e("time", "short")), new Intl.DateTimeFormat(r, i);
|
3694
3701
|
}
|
3695
|
-
),
|
3702
|
+
), Gi = (e = {}) => {
|
3696
3703
|
var t = e, {
|
3697
|
-
locale: r =
|
3698
|
-
} = t, n =
|
3704
|
+
locale: r = J()
|
3705
|
+
} = t, n = ce(t, [
|
3699
3706
|
"locale"
|
3700
3707
|
]);
|
3701
|
-
return
|
3702
|
-
},
|
3708
|
+
return Ri(lt({ locale: r }, n));
|
3709
|
+
}, ki = (e = {}) => {
|
3703
3710
|
var t = e, {
|
3704
|
-
locale: r =
|
3705
|
-
} = t, n =
|
3711
|
+
locale: r = J()
|
3712
|
+
} = t, n = ce(t, [
|
3706
3713
|
"locale"
|
3707
3714
|
]);
|
3708
|
-
return
|
3709
|
-
},
|
3715
|
+
return Di(lt({ locale: r }, n));
|
3716
|
+
}, $i = (e = {}) => {
|
3710
3717
|
var t = e, {
|
3711
|
-
locale: r =
|
3712
|
-
} = t, n =
|
3718
|
+
locale: r = J()
|
3719
|
+
} = t, n = ce(t, [
|
3713
3720
|
"locale"
|
3714
3721
|
]);
|
3715
|
-
return
|
3716
|
-
},
|
3722
|
+
return Ui(lt({ locale: r }, n));
|
3723
|
+
}, ji = Fe(
|
3717
3724
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3718
|
-
(e, t =
|
3719
|
-
ignoreTag:
|
3725
|
+
(e, t = J()) => new gi(e, t, le().formats, {
|
3726
|
+
ignoreTag: le().ignoreTag
|
3720
3727
|
})
|
3721
|
-
),
|
3728
|
+
), Vi = (e, t = {}) => {
|
3722
3729
|
var r, n, i, s;
|
3723
3730
|
let o = t;
|
3724
3731
|
typeof e == "object" && (o = e, e = o.id);
|
3725
3732
|
const {
|
3726
3733
|
values: a,
|
3727
|
-
locale: h =
|
3734
|
+
locale: h = J(),
|
3728
3735
|
default: l
|
3729
3736
|
} = o;
|
3730
3737
|
if (h == null)
|
3731
3738
|
throw new Error(
|
3732
3739
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3733
3740
|
);
|
3734
|
-
let u =
|
3741
|
+
let u = hr(e, h);
|
3735
3742
|
if (!u)
|
3736
|
-
u = (s = (i = (n = (r =
|
3743
|
+
u = (s = (i = (n = (r = le()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
3737
3744
|
else if (typeof u != "string")
|
3738
3745
|
return console.warn(
|
3739
3746
|
`[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.`
|
@@ -3742,7 +3749,7 @@ const be = (e, t) => {
|
|
3742
3749
|
return u;
|
3743
3750
|
let m = u;
|
3744
3751
|
try {
|
3745
|
-
m =
|
3752
|
+
m = ji(u, h).format(a);
|
3746
3753
|
} catch (f) {
|
3747
3754
|
f instanceof Error && console.warn(
|
3748
3755
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3750,24 +3757,24 @@ const be = (e, t) => {
|
|
3750
3757
|
);
|
3751
3758
|
}
|
3752
3759
|
return m;
|
3753
|
-
},
|
3754
|
-
|
3755
|
-
|
3756
|
-
|
3757
|
-
|
3758
|
-
|
3759
|
-
function
|
3760
|
+
}, Xi = (e, t) => $i(t).format(e), Wi = (e, t) => ki(t).format(e), zi = (e, t) => Gi(t).format(e), Zi = (e, t = J()) => hr(e, t);
|
3761
|
+
ue([W, he], () => Vi);
|
3762
|
+
ue([W], () => Xi);
|
3763
|
+
ue([W], () => Wi);
|
3764
|
+
ue([W], () => zi);
|
3765
|
+
ue([W, he], () => Zi);
|
3766
|
+
function Qi({ withLocale: e, translations: t }) {
|
3760
3767
|
W.subscribe((r) => {
|
3761
|
-
r == null && (
|
3768
|
+
r == null && (he.set(t), W.set(e));
|
3762
3769
|
});
|
3763
3770
|
}
|
3764
|
-
function
|
3765
|
-
|
3771
|
+
function Bt(e, t) {
|
3772
|
+
fr(e, t);
|
3766
3773
|
}
|
3767
|
-
function
|
3774
|
+
function qi(e) {
|
3768
3775
|
W.set(e);
|
3769
3776
|
}
|
3770
|
-
const
|
3777
|
+
const It = {
|
3771
3778
|
en: {
|
3772
3779
|
login: "Login",
|
3773
3780
|
register: "Register",
|
@@ -3824,159 +3831,159 @@ const St = {
|
|
3824
3831
|
deposit: "Deposit"
|
3825
3832
|
}
|
3826
3833
|
};
|
3827
|
-
function
|
3828
|
-
|
3834
|
+
function Ji(e) {
|
3835
|
+
Rr(e, "svelte-wvhhix", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:var(--emw--color-primary, #194127)}.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, #22B04E)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)))}.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, #22B04E));color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.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}');
|
3829
3836
|
}
|
3830
|
-
function
|
3837
|
+
function Mt(e, t, r) {
|
3831
3838
|
const n = e.slice();
|
3832
|
-
return n[
|
3839
|
+
return n[57] = t[r], n[59] = r, n;
|
3833
3840
|
}
|
3834
|
-
function
|
3841
|
+
function Lt(e, t, r) {
|
3835
3842
|
const n = e.slice();
|
3836
|
-
return n[
|
3843
|
+
return n[60] = t[r], n;
|
3837
3844
|
}
|
3838
|
-
function
|
3845
|
+
function Nt(e, t, r) {
|
3839
3846
|
const n = e.slice();
|
3840
|
-
return n[
|
3847
|
+
return n[63] = t[r], n[65] = r, n;
|
3841
3848
|
}
|
3842
|
-
function
|
3843
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3849
|
+
function Pt(e) {
|
3850
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ie(
|
3844
3851
|
/*sliderdata*/
|
3845
3852
|
e[9]
|
3846
3853
|
);
|
3847
3854
|
const s = (o) => (
|
3848
3855
|
/*category*/
|
3849
|
-
o[
|
3856
|
+
o[57].id
|
3850
3857
|
);
|
3851
3858
|
for (let o = 0; o < i.length; o += 1) {
|
3852
|
-
let a =
|
3853
|
-
r.set(h, t[o] =
|
3859
|
+
let a = Mt(e, i, o), h = s(a);
|
3860
|
+
r.set(h, t[o] = Gt(h, a));
|
3854
3861
|
}
|
3855
3862
|
return {
|
3856
3863
|
c() {
|
3857
3864
|
for (let o = 0; o < t.length; o += 1)
|
3858
3865
|
t[o].c();
|
3859
|
-
n =
|
3866
|
+
n = be();
|
3860
3867
|
},
|
3861
3868
|
m(o, a) {
|
3862
3869
|
for (let h = 0; h < t.length; h += 1)
|
3863
3870
|
t[h] && t[h].m(o, a);
|
3864
|
-
|
3871
|
+
G(o, n, a);
|
3865
3872
|
},
|
3866
3873
|
p(o, a) {
|
3867
3874
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3868
|
-
|
3875
|
+
1183695 && (i = ie(
|
3869
3876
|
/*sliderdata*/
|
3870
3877
|
o[9]
|
3871
|
-
), t =
|
3878
|
+
), t = Xt(t, a, s, 1, o, i, r, n.parentNode, Vt, Gt, n, Mt));
|
3872
3879
|
},
|
3873
3880
|
d(o) {
|
3874
|
-
o &&
|
3881
|
+
o && D(n);
|
3875
3882
|
for (let a = 0; a < t.length; a += 1)
|
3876
3883
|
t[a].d(o);
|
3877
3884
|
}
|
3878
3885
|
};
|
3879
3886
|
}
|
3880
|
-
function
|
3887
|
+
function Yi(e) {
|
3881
3888
|
let t, r = (
|
3882
3889
|
/*category*/
|
3883
|
-
e[
|
3890
|
+
e[57].name + ""
|
3884
3891
|
), n;
|
3885
3892
|
return {
|
3886
3893
|
c() {
|
3887
|
-
t =
|
3894
|
+
t = L("button"), n = Ee(r), S(t, "class", "CategoryButton");
|
3888
3895
|
},
|
3889
3896
|
m(i, s) {
|
3890
|
-
|
3897
|
+
G(i, t, s), I(t, n);
|
3891
3898
|
},
|
3892
3899
|
p(i, s) {
|
3893
3900
|
s[0] & /*sliderdata*/
|
3894
3901
|
512 && r !== (r = /*category*/
|
3895
|
-
i[
|
3902
|
+
i[57].name + "") && it(n, r);
|
3896
3903
|
},
|
3897
3904
|
d(i) {
|
3898
|
-
i &&
|
3905
|
+
i && D(t);
|
3899
3906
|
}
|
3900
3907
|
};
|
3901
3908
|
}
|
3902
|
-
function
|
3909
|
+
function Ki(e) {
|
3903
3910
|
let t, r = (
|
3904
3911
|
/*category*/
|
3905
|
-
e[
|
3912
|
+
e[57].label + ""
|
3906
3913
|
), n, i;
|
3907
3914
|
return {
|
3908
3915
|
c() {
|
3909
|
-
t =
|
3910
|
-
e[
|
3916
|
+
t = L("a"), n = Ee(r), S(t, "href", i = /*category*/
|
3917
|
+
e[57].path);
|
3911
3918
|
},
|
3912
3919
|
m(s, o) {
|
3913
|
-
|
3920
|
+
G(s, t, o), I(t, n);
|
3914
3921
|
},
|
3915
3922
|
p(s, o) {
|
3916
3923
|
o[0] & /*sliderdata*/
|
3917
3924
|
512 && r !== (r = /*category*/
|
3918
|
-
s[
|
3925
|
+
s[57].label + "") && it(n, r), o[0] & /*sliderdata*/
|
3919
3926
|
512 && i !== (i = /*category*/
|
3920
|
-
s[
|
3927
|
+
s[57].path) && S(t, "href", i);
|
3921
3928
|
},
|
3922
3929
|
d(s) {
|
3923
|
-
s &&
|
3930
|
+
s && D(t);
|
3924
3931
|
}
|
3925
3932
|
};
|
3926
3933
|
}
|
3927
|
-
function
|
3934
|
+
function Ot(e) {
|
3928
3935
|
let t, r = (
|
3929
3936
|
/*subGroupsData*/
|
3930
3937
|
e[10].length > 0 && /*showsubgroups*/
|
3931
|
-
e[2] == "true" &&
|
3938
|
+
e[2] == "true" && Ft(e)
|
3932
3939
|
);
|
3933
3940
|
return {
|
3934
3941
|
c() {
|
3935
|
-
r && r.c(), t =
|
3942
|
+
r && r.c(), t = be();
|
3936
3943
|
},
|
3937
3944
|
m(n, i) {
|
3938
|
-
r && r.m(n, i),
|
3945
|
+
r && r.m(n, i), G(n, t, i);
|
3939
3946
|
},
|
3940
3947
|
p(n, i) {
|
3941
3948
|
/*subGroupsData*/
|
3942
3949
|
n[10].length > 0 && /*showsubgroups*/
|
3943
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3950
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Ft(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3944
3951
|
},
|
3945
3952
|
d(n) {
|
3946
|
-
n &&
|
3953
|
+
n && D(t), r && r.d(n);
|
3947
3954
|
}
|
3948
3955
|
};
|
3949
3956
|
}
|
3950
|
-
function
|
3951
|
-
let t, r =
|
3957
|
+
function Ft(e) {
|
3958
|
+
let t, r = ie(
|
3952
3959
|
/*subGroupsData*/
|
3953
3960
|
e[10]
|
3954
3961
|
), n = [];
|
3955
3962
|
for (let i = 0; i < r.length; i += 1)
|
3956
|
-
n[i] =
|
3963
|
+
n[i] = Ut(Lt(e, r, i));
|
3957
3964
|
return {
|
3958
3965
|
c() {
|
3959
|
-
t =
|
3966
|
+
t = L("ul");
|
3960
3967
|
for (let i = 0; i < n.length; i += 1)
|
3961
3968
|
n[i].c();
|
3962
3969
|
S(t, "class", "DropDown");
|
3963
3970
|
},
|
3964
3971
|
m(i, s) {
|
3965
|
-
|
3972
|
+
G(i, t, s);
|
3966
3973
|
for (let o = 0; o < n.length; o += 1)
|
3967
3974
|
n[o] && n[o].m(t, null);
|
3968
3975
|
},
|
3969
3976
|
p(i, s) {
|
3970
3977
|
if (s[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
3971
|
-
|
3972
|
-
r =
|
3978
|
+
133056) {
|
3979
|
+
r = ie(
|
3973
3980
|
/*subGroupsData*/
|
3974
3981
|
i[10]
|
3975
3982
|
);
|
3976
3983
|
let o;
|
3977
3984
|
for (o = 0; o < r.length; o += 1) {
|
3978
|
-
const a =
|
3979
|
-
n[o] ? n[o].p(a, s) : (n[o] =
|
3985
|
+
const a = Lt(i, r, o);
|
3986
|
+
n[o] ? n[o].p(a, s) : (n[o] = Ut(a), n[o].c(), n[o].m(t, null));
|
3980
3987
|
}
|
3981
3988
|
for (; o < n.length; o += 1)
|
3982
3989
|
n[o].d(1);
|
@@ -3984,147 +3991,147 @@ function Nt(e) {
|
|
3984
3991
|
}
|
3985
3992
|
},
|
3986
3993
|
d(i) {
|
3987
|
-
i &&
|
3994
|
+
i && D(t), Gr(n, i);
|
3988
3995
|
}
|
3989
3996
|
};
|
3990
3997
|
}
|
3991
|
-
function
|
3998
|
+
function Rt(e) {
|
3992
3999
|
let t, r, n = (
|
3993
4000
|
/*subGroupItem*/
|
3994
|
-
e[
|
4001
|
+
e[63]?.name + ""
|
3995
4002
|
), i, s, o, a, h;
|
3996
4003
|
function l(...u) {
|
3997
4004
|
return (
|
3998
|
-
/*
|
3999
|
-
e[
|
4005
|
+
/*click_handler_2*/
|
4006
|
+
e[38](
|
4000
4007
|
/*category*/
|
4001
|
-
e[
|
4008
|
+
e[57],
|
4002
4009
|
/*index*/
|
4003
|
-
e[
|
4010
|
+
e[59],
|
4004
4011
|
/*subGroupItem*/
|
4005
|
-
e[
|
4012
|
+
e[63],
|
4006
4013
|
/*subindex*/
|
4007
|
-
e[
|
4014
|
+
e[65],
|
4008
4015
|
...u
|
4009
4016
|
)
|
4010
4017
|
);
|
4011
4018
|
}
|
4012
4019
|
return {
|
4013
4020
|
c() {
|
4014
|
-
t =
|
4015
|
-
(e[
|
4021
|
+
t = L("li"), r = L("a"), i = Ee(n), o = Q(), S(r, "class", s = "SubDropDown " + /*index*/
|
4022
|
+
(e[59] == /*activeIndex*/
|
4016
4023
|
e[6] && /*activeSubIndex*/
|
4017
4024
|
(e[7] == /*subindex*/
|
4018
|
-
e[
|
4025
|
+
e[65] || /*prevSubIndex*/
|
4019
4026
|
e[8] == /*subindex*/
|
4020
|
-
e[
|
4027
|
+
e[65]) ? "active" : ""));
|
4021
4028
|
},
|
4022
4029
|
m(u, m) {
|
4023
|
-
|
4030
|
+
G(u, t, m), I(t, r), I(r, i), I(t, o), a || (h = j(t, "click", l), a = !0);
|
4024
4031
|
},
|
4025
4032
|
p(u, m) {
|
4026
4033
|
e = u, m[0] & /*subGroupsData*/
|
4027
4034
|
1024 && n !== (n = /*subGroupItem*/
|
4028
|
-
e[
|
4035
|
+
e[63]?.name + "") && it(i, n), m[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
4029
4036
|
1984 && s !== (s = "SubDropDown " + /*index*/
|
4030
|
-
(e[
|
4037
|
+
(e[59] == /*activeIndex*/
|
4031
4038
|
e[6] && /*activeSubIndex*/
|
4032
4039
|
(e[7] == /*subindex*/
|
4033
|
-
e[
|
4040
|
+
e[65] || /*prevSubIndex*/
|
4034
4041
|
e[8] == /*subindex*/
|
4035
|
-
e[
|
4042
|
+
e[65]) ? "active" : "")) && S(r, "class", s);
|
4036
4043
|
},
|
4037
4044
|
d(u) {
|
4038
|
-
u &&
|
4045
|
+
u && D(t), a = !1, h();
|
4039
4046
|
}
|
4040
4047
|
};
|
4041
4048
|
}
|
4042
|
-
function
|
4049
|
+
function Dt(e, t) {
|
4043
4050
|
let r, n, i = (
|
4044
4051
|
/*index*/
|
4045
|
-
t[
|
4046
|
-
t[
|
4052
|
+
t[59] == /*subGroup*/
|
4053
|
+
t[60].index && Rt(t)
|
4047
4054
|
);
|
4048
4055
|
return {
|
4049
4056
|
key: e,
|
4050
4057
|
first: null,
|
4051
4058
|
c() {
|
4052
|
-
r =
|
4059
|
+
r = be(), i && i.c(), n = be(), this.first = r;
|
4053
4060
|
},
|
4054
4061
|
m(s, o) {
|
4055
|
-
|
4062
|
+
G(s, r, o), i && i.m(s, o), G(s, n, o);
|
4056
4063
|
},
|
4057
4064
|
p(s, o) {
|
4058
4065
|
t = s, /*index*/
|
4059
|
-
t[
|
4060
|
-
t[
|
4066
|
+
t[59] == /*subGroup*/
|
4067
|
+
t[60].index ? i ? i.p(t, o) : (i = Rt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4061
4068
|
},
|
4062
4069
|
d(s) {
|
4063
|
-
s && (
|
4070
|
+
s && (D(r), D(n)), i && i.d(s);
|
4064
4071
|
}
|
4065
4072
|
};
|
4066
4073
|
}
|
4067
|
-
function
|
4068
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4074
|
+
function Ut(e) {
|
4075
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ie(
|
4069
4076
|
/*subGroup*/
|
4070
|
-
e[
|
4077
|
+
e[60].items
|
4071
4078
|
);
|
4072
4079
|
const s = (o) => (
|
4073
4080
|
/*subGroupItem*/
|
4074
|
-
o[
|
4081
|
+
o[63].id
|
4075
4082
|
);
|
4076
4083
|
for (let o = 0; o < i.length; o += 1) {
|
4077
|
-
let a =
|
4078
|
-
r.set(h, t[o] =
|
4084
|
+
let a = Nt(e, i, o), h = s(a);
|
4085
|
+
r.set(h, t[o] = Dt(h, a));
|
4079
4086
|
}
|
4080
4087
|
return {
|
4081
4088
|
c() {
|
4082
4089
|
for (let o = 0; o < t.length; o += 1)
|
4083
4090
|
t[o].c();
|
4084
|
-
n =
|
4091
|
+
n = be();
|
4085
4092
|
},
|
4086
4093
|
m(o, a) {
|
4087
4094
|
for (let h = 0; h < t.length; h += 1)
|
4088
4095
|
t[h] && t[h].m(o, a);
|
4089
|
-
|
4096
|
+
G(o, n, a);
|
4090
4097
|
},
|
4091
4098
|
p(o, a) {
|
4092
4099
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4093
|
-
|
4100
|
+
133056 && (i = ie(
|
4094
4101
|
/*subGroup*/
|
4095
|
-
o[
|
4096
|
-
), t =
|
4102
|
+
o[60].items
|
4103
|
+
), t = Xt(t, a, s, 1, o, i, r, n.parentNode, Vt, Dt, n, Nt));
|
4097
4104
|
},
|
4098
4105
|
d(o) {
|
4099
|
-
o &&
|
4106
|
+
o && D(n);
|
4100
4107
|
for (let a = 0; a < t.length; a += 1)
|
4101
4108
|
t[a].d(o);
|
4102
4109
|
}
|
4103
4110
|
};
|
4104
4111
|
}
|
4105
|
-
function
|
4112
|
+
function Gt(e, t) {
|
4106
4113
|
let r, n, i, s, o, a, h, l, u, m, f;
|
4107
|
-
function p(E,
|
4114
|
+
function p(E, w) {
|
4108
4115
|
return (
|
4109
4116
|
/*location*/
|
4110
|
-
E[0] === "headerMain" ?
|
4117
|
+
E[0] === "headerMain" ? Ki : Yi
|
4111
4118
|
);
|
4112
4119
|
}
|
4113
4120
|
let g = p(t), b = g(t), d = (
|
4114
4121
|
/*itemsActive*/
|
4115
4122
|
t[11][
|
4116
4123
|
/*index*/
|
4117
|
-
t[
|
4118
|
-
] == !0 &&
|
4124
|
+
t[59]
|
4125
|
+
] == !0 && Ot(t)
|
4119
4126
|
);
|
4120
|
-
function
|
4127
|
+
function C(...E) {
|
4121
4128
|
return (
|
4122
|
-
/*
|
4123
|
-
t[
|
4129
|
+
/*click_handler_3*/
|
4130
|
+
t[39](
|
4124
4131
|
/*category*/
|
4125
|
-
t[
|
4132
|
+
t[57],
|
4126
4133
|
/*index*/
|
4127
|
-
t[
|
4134
|
+
t[59],
|
4128
4135
|
...E
|
4129
4136
|
)
|
4130
4137
|
);
|
@@ -4133,119 +4140,160 @@ function Ft(e, t) {
|
|
4133
4140
|
key: e,
|
4134
4141
|
first: null,
|
4135
4142
|
c() {
|
4136
|
-
r =
|
4137
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
4138
|
-
t[
|
4143
|
+
r = L("li"), n = L("div"), i = L("img"), a = Q(), b.c(), h = Q(), d && d.c(), l = Q(), S(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
|
4144
|
+
(t[3] === "true" ? "" : "DisplayNone")), dt(i.src, o = /*handleSrc*/
|
4145
|
+
t[20](
|
4139
4146
|
/*category*/
|
4140
|
-
t[
|
4147
|
+
t[57]
|
4141
4148
|
)) || S(i, "src", o), S(n, "class", "CategoryIcon"), S(r, "class", u = "CarouselItem " + /*activeindex*/
|
4142
4149
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4143
4150
|
/*activeindex*/
|
4144
4151
|
t[1]?.split("$").pop() == /*category*/
|
4145
|
-
t[
|
4152
|
+
t[57].id.split("$").pop() ? "active" : ""
|
4146
4153
|
) : (
|
4147
4154
|
/*activeindex*/
|
4148
4155
|
t[1] == /*category*/
|
4149
|
-
t[
|
4156
|
+
t[57].id ? "active" : ""
|
4150
4157
|
)) + " " + /*location*/
|
4151
4158
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4152
4159
|
},
|
4153
|
-
m(E,
|
4154
|
-
|
4160
|
+
m(E, w) {
|
4161
|
+
G(E, r, w), I(r, n), I(n, i), I(r, a), b.m(r, null), I(r, h), d && d.m(r, null), I(r, l), m || (f = j(r, "click", C), m = !0);
|
4155
4162
|
},
|
4156
|
-
p(E,
|
4157
|
-
t = E,
|
4163
|
+
p(E, w) {
|
4164
|
+
t = E, w[0] & /*categoriesicon*/
|
4158
4165
|
8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
|
4159
|
-
(t[3] === "true" ? "" : "DisplayNone")) && S(i, "class", s),
|
4160
|
-
512 && !
|
4161
|
-
t[
|
4166
|
+
(t[3] === "true" ? "" : "DisplayNone")) && S(i, "class", s), w[0] & /*sliderdata*/
|
4167
|
+
512 && !dt(i.src, o = /*handleSrc*/
|
4168
|
+
t[20](
|
4162
4169
|
/*category*/
|
4163
|
-
t[
|
4164
|
-
)) && S(i, "src", o), g === (g = p(t)) && b ? b.p(t,
|
4170
|
+
t[57]
|
4171
|
+
)) && S(i, "src", o), g === (g = p(t)) && b ? b.p(t, w) : (b.d(1), b = g(t), b && (b.c(), b.m(r, h))), /*itemsActive*/
|
4165
4172
|
t[11][
|
4166
4173
|
/*index*/
|
4167
|
-
t[
|
4168
|
-
] == !0 ? d ? d.p(t,
|
4174
|
+
t[59]
|
4175
|
+
] == !0 ? d ? d.p(t, w) : (d = Ot(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), w[0] & /*activeindex, sliderdata, location*/
|
4169
4176
|
515 && u !== (u = "CarouselItem " + /*activeindex*/
|
4170
4177
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4171
4178
|
/*activeindex*/
|
4172
4179
|
t[1]?.split("$").pop() == /*category*/
|
4173
|
-
t[
|
4180
|
+
t[57].id.split("$").pop() ? "active" : ""
|
4174
4181
|
) : (
|
4175
4182
|
/*activeindex*/
|
4176
4183
|
t[1] == /*category*/
|
4177
|
-
t[
|
4184
|
+
t[57].id ? "active" : ""
|
4178
4185
|
)) + " " + /*location*/
|
4179
4186
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && S(r, "class", u);
|
4180
4187
|
},
|
4181
4188
|
d(E) {
|
4182
|
-
E &&
|
4189
|
+
E && D(r), b.d(), d && d.d(), m = !1, f();
|
4183
4190
|
}
|
4184
4191
|
};
|
4185
4192
|
}
|
4186
|
-
function
|
4193
|
+
function eo(e) {
|
4187
4194
|
let t, r, n, i, s, o, a, h, l, u, m, f, p, g, b, d = (
|
4188
4195
|
/*sliderdata*/
|
4189
|
-
e[9].length > 0 &&
|
4196
|
+
e[9].length > 0 && Pt(e)
|
4190
4197
|
);
|
4191
4198
|
return {
|
4192
4199
|
c() {
|
4193
|
-
t =
|
4200
|
+
t = L("div"), r = L("div"), n = L("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 = Q(), s = L("div"), o = L("ul"), a = L("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = Q(), d && d.c(), l = Q(), u = L("div"), u.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', S(n, "class", "CarouselLeftArrow"), S(a, "class", "TouchOnly"), S(o, "id", "CarouselNav"), S(o, "class", "CarouselItems"), S(s, "class", "CarouselNavWrap scroller"), S(u, "class", "CarouselRightArrow"), S(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4194
4201
|
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), S(r, "style", f = /*location*/
|
4195
4202
|
e[0] === "headerMain" ? "max-width: auto" : void 0), S(t, "class", p = "CarouselWrapper " + /*location*/
|
4196
4203
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4197
4204
|
},
|
4198
|
-
m(
|
4199
|
-
|
4200
|
-
|
4205
|
+
m(C, E) {
|
4206
|
+
G(C, t, E), I(t, r), I(r, n), I(r, i), I(r, s), I(s, o), I(o, a), I(o, h), d && d.m(o, null), e[40](o), e[41](s), I(r, l), I(r, u), e[43](t), g || (b = [
|
4207
|
+
j(
|
4201
4208
|
n,
|
4202
4209
|
"click",
|
4203
|
-
/*
|
4204
|
-
e[
|
4210
|
+
/*click_handler_1*/
|
4211
|
+
e[37]
|
4205
4212
|
),
|
4206
|
-
|
4213
|
+
j(
|
4214
|
+
o,
|
4215
|
+
"mousedown",
|
4216
|
+
/*handleMouseDown*/
|
4217
|
+
e[13]
|
4218
|
+
),
|
4219
|
+
j(
|
4220
|
+
o,
|
4221
|
+
"mouseleave",
|
4222
|
+
/*handleMouseLeave*/
|
4223
|
+
e[14]
|
4224
|
+
),
|
4225
|
+
j(
|
4226
|
+
o,
|
4227
|
+
"mouseup",
|
4228
|
+
/*handleMouseUp*/
|
4229
|
+
e[15]
|
4230
|
+
),
|
4231
|
+
j(
|
4232
|
+
o,
|
4233
|
+
"mousemove",
|
4234
|
+
/*handleMouseMove*/
|
4235
|
+
e[16]
|
4236
|
+
),
|
4237
|
+
j(o, "click", kr(
|
4238
|
+
/*click_handler*/
|
4239
|
+
e[36]
|
4240
|
+
)),
|
4241
|
+
j(
|
4207
4242
|
u,
|
4208
4243
|
"click",
|
4209
|
-
/*
|
4210
|
-
e[
|
4244
|
+
/*click_handler_4*/
|
4245
|
+
e[42]
|
4211
4246
|
)
|
4212
4247
|
], g = !0);
|
4213
4248
|
},
|
4214
|
-
p(
|
4249
|
+
p(C, E) {
|
4215
4250
|
/*sliderdata*/
|
4216
|
-
|
4251
|
+
C[9].length > 0 ? d ? d.p(C, E) : (d = Pt(C), d.c(), d.m(o, null)) : d && (d.d(1), d = null), E[0] & /*location*/
|
4217
4252
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4218
|
-
|
4253
|
+
C[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && S(r, "class", m), E[0] & /*location*/
|
4219
4254
|
1 && f !== (f = /*location*/
|
4220
|
-
|
4255
|
+
C[0] === "headerMain" ? "max-width: auto" : void 0) && S(r, "style", f), E[0] & /*location*/
|
4221
4256
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4222
|
-
(
|
4257
|
+
(C[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && S(t, "class", p);
|
4223
4258
|
},
|
4224
|
-
i:
|
4225
|
-
o:
|
4226
|
-
d(
|
4227
|
-
|
4259
|
+
i: k,
|
4260
|
+
o: k,
|
4261
|
+
d(C) {
|
4262
|
+
C && D(t), d && d.d(), e[40](null), e[41](null), e[43](null), g = !1, q(b);
|
4228
4263
|
}
|
4229
4264
|
};
|
4230
4265
|
}
|
4231
|
-
function
|
4232
|
-
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:
|
4233
|
-
|
4234
|
-
|
4266
|
+
function to(e, t, r) {
|
4267
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: C = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: w = "" } = t, { mygamesiconimage: U = "" } = t, { mbsource: N = "" } = t, T;
|
4268
|
+
Qi({ withLocale: "en", translations: {} });
|
4269
|
+
let H = !1, F = 0, R = 0;
|
4270
|
+
const Y = (c) => {
|
4271
|
+
c.preventDefault(), H = !0, T?.classList.add("dragging"), F = c.pageX - (T?.offsetLeft ?? 0), R = T?.scrollLeft ?? 0;
|
4272
|
+
}, br = (c) => {
|
4273
|
+
c.preventDefault(), H = !1, T?.classList.remove("dragging");
|
4274
|
+
}, yr = (c) => {
|
4275
|
+
H = !1, T?.classList.remove("dragging");
|
4276
|
+
}, vr = (c) => {
|
4277
|
+
if (!H || !T)
|
4278
|
+
return;
|
4279
|
+
c.preventDefault();
|
4280
|
+
const O = (c.pageX - T.offsetLeft - F) * 2.5;
|
4281
|
+
r(5, T.scrollLeft = R - O, T);
|
4282
|
+
}, _r = () => {
|
4235
4283
|
fetch(f).then((x) => x.json()).then((x) => {
|
4236
|
-
Object.keys(x).forEach((
|
4237
|
-
|
4284
|
+
Object.keys(x).forEach((O) => {
|
4285
|
+
Bt(O, x[O]);
|
4238
4286
|
});
|
4239
4287
|
}).catch((x) => {
|
4240
4288
|
console.log(x);
|
4241
4289
|
});
|
4242
4290
|
};
|
4243
|
-
Object.keys(
|
4244
|
-
|
4291
|
+
Object.keys(It).forEach((c) => {
|
4292
|
+
Bt(c, It[c]);
|
4245
4293
|
});
|
4246
|
-
let
|
4247
|
-
if (!(c.subGroups &&
|
4248
|
-
if (
|
4294
|
+
let z, fe, Re, $, me = [], xe = [], K = [], M, De = (c, x, O, Z, V) => {
|
4295
|
+
if (!(c.subGroups && Z === null)) {
|
4296
|
+
if (Ce(), r(6, z = x), r(6, z), V != "secondary") {
|
4249
4297
|
window.postMessage(
|
4250
4298
|
{
|
4251
4299
|
type: o == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
@@ -4258,35 +4306,35 @@ function Xi(e, t, r) {
|
|
4258
4306
|
target: c.attrs?.target || null
|
4259
4307
|
},
|
4260
4308
|
window.location.href
|
4261
|
-
), r(7,
|
4309
|
+
), r(7, fe = null), r(8, Re = null);
|
4262
4310
|
return;
|
4263
4311
|
}
|
4264
|
-
r(7,
|
4312
|
+
r(7, fe = Z), r(7, fe), r(8, Re = fe), window.postMessage(
|
4265
4313
|
{
|
4266
4314
|
type: o,
|
4267
|
-
itemId:
|
4268
|
-
subIndex:
|
4269
|
-
subItem:
|
4315
|
+
itemId: O.id,
|
4316
|
+
subIndex: Z,
|
4317
|
+
subItem: O
|
4270
4318
|
},
|
4271
4319
|
window.location.href
|
4272
4320
|
);
|
4273
4321
|
}
|
4274
|
-
},
|
4275
|
-
M && (
|
4276
|
-
},
|
4277
|
-
M && (
|
4322
|
+
}, ut = () => {
|
4323
|
+
M && (K.length !== z ? r(12, M.scrollLeft -= 250, M) : r(12, M.scrollLeft = 0, M));
|
4324
|
+
}, ht = () => {
|
4325
|
+
M && (K.length !== z ? r(12, M.scrollLeft += 250, M) : r(12, M.scrollLeft = 0, M));
|
4278
4326
|
};
|
4279
|
-
const
|
4280
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4281
|
-
x.path.endsWith("/casino") && (r(6,
|
4327
|
+
const ct = (c) => {
|
4328
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, me = c.data.data), r(11, K = new Array(me.length).fill(!1)), C == "true" && Cr()), c.data.type == "GoToHomepage" && me.forEach((x, O) => {
|
4329
|
+
x.path.endsWith("/casino") && (r(6, z = O), r(6, z));
|
4282
4330
|
});
|
4283
|
-
},
|
4284
|
-
|
4285
|
-
},
|
4331
|
+
}, Er = () => {
|
4332
|
+
qi(b);
|
4333
|
+
}, xr = (c, x, O) => {
|
4286
4334
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4287
|
-
let
|
4288
|
-
fetch(
|
4289
|
-
V.index = x, r(10,
|
4335
|
+
let Z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4336
|
+
fetch(Z.href).then((V) => V.json()).then((V) => {
|
4337
|
+
V.index = x, r(10, xe = xe.concat(V)), C == "false" && window.postMessage(
|
4290
4338
|
{
|
4291
4339
|
type: o,
|
4292
4340
|
itemId: c.id,
|
@@ -4295,87 +4343,94 @@ function Xi(e, t, r) {
|
|
4295
4343
|
},
|
4296
4344
|
window.location.href
|
4297
4345
|
);
|
4298
|
-
const
|
4299
|
-
|
4300
|
-
|
4301
|
-
}),
|
4346
|
+
const we = [];
|
4347
|
+
xe.map((Nr) => (Nr.items.forEach((ft) => {
|
4348
|
+
we.find((Pr) => ft.id == Pr) || we.push(ft.id);
|
4349
|
+
}), we.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: we }, window.location.href);
|
4302
4350
|
}).then(() => {
|
4303
|
-
|
4351
|
+
T.querySelectorAll(".DropDown") && Ce();
|
4304
4352
|
});
|
4305
4353
|
}
|
4306
4354
|
h == "headerMain" && window.postMessage({ type: o, item: c }, window.location.href);
|
4307
|
-
},
|
4308
|
-
const c =
|
4355
|
+
}, Ce = () => {
|
4356
|
+
const c = T.querySelectorAll(".DropDown");
|
4309
4357
|
document.activeElement.blur(), M.classList.add("isScrolling");
|
4310
4358
|
for (let x = 0; x < c.length; x++)
|
4311
4359
|
c[x].style.transform = "translateX(-" + M.scrollLeft + "px)";
|
4312
4360
|
M.classList.remove("isScrolling");
|
4313
|
-
},
|
4314
|
-
|
4315
|
-
c?.subGroups?.count > 0 && (r(11,
|
4361
|
+
}, Cr = () => {
|
4362
|
+
me.forEach((c, x) => {
|
4363
|
+
c?.subGroups?.count > 0 && (r(11, K[x] = !0, K), xr(c, x));
|
4316
4364
|
});
|
4317
|
-
},
|
4365
|
+
}, wr = (c) => {
|
4318
4366
|
let x = "";
|
4319
|
-
return c.id === "LOBBY" ? x =
|
4367
|
+
return c.id === "LOBBY" ? x = w : c.id === "MYGAMES" && (x = U), c.icon || x;
|
4320
4368
|
};
|
4321
|
-
|
4369
|
+
Xr(() => (window.addEventListener("message", ct, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4322
4370
|
() => {
|
4323
|
-
M.addEventListener("scroll",
|
4371
|
+
M.addEventListener("scroll", Ce);
|
4324
4372
|
},
|
4325
4373
|
500
|
4326
4374
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4327
|
-
window.removeEventListener("message",
|
4375
|
+
window.removeEventListener("message", ct), T.removeEventListener("scroll", Ce);
|
4328
4376
|
}));
|
4329
|
-
|
4330
|
-
|
4331
|
-
}
|
4332
|
-
|
4377
|
+
function Hr(c) {
|
4378
|
+
Wr.call(this, e, c);
|
4379
|
+
}
|
4380
|
+
const Sr = () => ut(), Tr = (c, x, O, Z, V) => {
|
4381
|
+
De(c, x, O, Z, "secondary"), V.stopPropagation();
|
4382
|
+
}, Ar = (c, x, O) => {
|
4383
|
+
De(c, x, null, null, "main"), O.preventDefault();
|
4333
4384
|
};
|
4334
|
-
function
|
4335
|
-
|
4336
|
-
|
4385
|
+
function Br(c) {
|
4386
|
+
ge[c ? "unshift" : "push"](() => {
|
4387
|
+
T = c, r(5, T);
|
4337
4388
|
});
|
4338
4389
|
}
|
4339
|
-
function
|
4340
|
-
|
4390
|
+
function Ir(c) {
|
4391
|
+
ge[c ? "unshift" : "push"](() => {
|
4341
4392
|
M = c, r(12, M);
|
4342
4393
|
});
|
4343
4394
|
}
|
4344
|
-
const
|
4345
|
-
function
|
4346
|
-
|
4395
|
+
const Mr = () => ht();
|
4396
|
+
function Lr(c) {
|
4397
|
+
ge[c ? "unshift" : "push"](() => {
|
4347
4398
|
$ = c, r(4, $);
|
4348
4399
|
});
|
4349
4400
|
}
|
4350
4401
|
return e.$$set = (c) => {
|
4351
|
-
"endpoint" in c && r(
|
4402
|
+
"endpoint" in c && r(21, n = c.endpoint), "datasource" in c && r(22, i = c.datasource), "onclickeventname" in c && r(23, s = c.onclickeventname), "actionevent" in c && r(24, o = c.actionevent), "favoritesnumber" in c && r(25, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(26, l = c.clientstyling), "clientstylingurl" in c && r(27, u = c.clientstylingurl), "identity" in c && r(28, m = c.identity), "translationurl" in c && r(29, f = c.translationurl), "isprimarymenu" in c && r(30, p = c.isprimarymenu), "issecondarymenu" in c && r(31, g = c.issecondarymenu), "lang" in c && r(32, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, C = c.showsubgroups), "categoriesicon" in c && r(3, E = c.categoriesicon), "lobbyiconimage" in c && r(33, w = c.lobbyiconimage), "mygamesiconimage" in c && r(34, U = c.mygamesiconimage), "mbsource" in c && r(35, N = c.mbsource);
|
4352
4403
|
}, e.$$.update = () => {
|
4353
4404
|
e.$$.dirty[0] & /*activeindex*/
|
4354
4405
|
2, e.$$.dirty[0] & /*translationurl*/
|
4355
|
-
|
4356
|
-
|
4357
|
-
|
4406
|
+
536870912 && f && _r(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4407
|
+
67108880 && l && $ && sn($, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4408
|
+
134217744 && u && $ && an($, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4358
4409
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4359
|
-
|
4360
|
-
|
4410
|
+
16 && N && $ && ln($, `${N}.Style`), e.$$.dirty[1] & /*lang*/
|
4411
|
+
2 && b && Er();
|
4361
4412
|
}, [
|
4362
4413
|
h,
|
4363
4414
|
d,
|
4364
|
-
|
4415
|
+
C,
|
4365
4416
|
E,
|
4366
4417
|
$,
|
4367
|
-
|
4368
|
-
|
4369
|
-
|
4370
|
-
|
4371
|
-
|
4372
|
-
|
4373
|
-
|
4418
|
+
T,
|
4419
|
+
z,
|
4420
|
+
fe,
|
4421
|
+
Re,
|
4422
|
+
me,
|
4423
|
+
xe,
|
4424
|
+
K,
|
4374
4425
|
M,
|
4375
|
-
|
4376
|
-
|
4377
|
-
|
4378
|
-
|
4426
|
+
Y,
|
4427
|
+
br,
|
4428
|
+
yr,
|
4429
|
+
vr,
|
4430
|
+
De,
|
4431
|
+
ut,
|
4432
|
+
ht,
|
4433
|
+
wr,
|
4379
4434
|
n,
|
4380
4435
|
i,
|
4381
4436
|
s,
|
@@ -4388,167 +4443,168 @@ function Xi(e, t, r) {
|
|
4388
4443
|
p,
|
4389
4444
|
g,
|
4390
4445
|
b,
|
4391
|
-
|
4392
|
-
|
4393
|
-
|
4394
|
-
|
4395
|
-
|
4396
|
-
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4446
|
+
w,
|
4447
|
+
U,
|
4448
|
+
N,
|
4449
|
+
Hr,
|
4450
|
+
Sr,
|
4451
|
+
Tr,
|
4452
|
+
Ar,
|
4453
|
+
Br,
|
4454
|
+
Ir,
|
4455
|
+
Mr,
|
4456
|
+
Lr
|
4401
4457
|
];
|
4402
4458
|
}
|
4403
|
-
class
|
4459
|
+
class ro extends nn {
|
4404
4460
|
constructor(t) {
|
4405
|
-
super(),
|
4461
|
+
super(), tn(
|
4406
4462
|
this,
|
4407
4463
|
t,
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4464
|
+
to,
|
4465
|
+
eo,
|
4466
|
+
$t,
|
4411
4467
|
{
|
4412
|
-
endpoint:
|
4413
|
-
datasource:
|
4414
|
-
onclickeventname:
|
4415
|
-
actionevent:
|
4416
|
-
favoritesnumber:
|
4468
|
+
endpoint: 21,
|
4469
|
+
datasource: 22,
|
4470
|
+
onclickeventname: 23,
|
4471
|
+
actionevent: 24,
|
4472
|
+
favoritesnumber: 25,
|
4417
4473
|
location: 0,
|
4418
|
-
clientstyling:
|
4419
|
-
clientstylingurl:
|
4420
|
-
identity:
|
4421
|
-
translationurl:
|
4422
|
-
isprimarymenu:
|
4423
|
-
issecondarymenu:
|
4424
|
-
lang:
|
4474
|
+
clientstyling: 26,
|
4475
|
+
clientstylingurl: 27,
|
4476
|
+
identity: 28,
|
4477
|
+
translationurl: 29,
|
4478
|
+
isprimarymenu: 30,
|
4479
|
+
issecondarymenu: 31,
|
4480
|
+
lang: 32,
|
4425
4481
|
activeindex: 1,
|
4426
4482
|
showsubgroups: 2,
|
4427
4483
|
categoriesicon: 3,
|
4428
|
-
lobbyiconimage:
|
4429
|
-
mygamesiconimage:
|
4430
|
-
mbsource:
|
4484
|
+
lobbyiconimage: 33,
|
4485
|
+
mygamesiconimage: 34,
|
4486
|
+
mbsource: 35
|
4431
4487
|
},
|
4432
|
-
|
4433
|
-
[-1, -1]
|
4488
|
+
Ji,
|
4489
|
+
[-1, -1, -1]
|
4434
4490
|
);
|
4435
4491
|
}
|
4436
4492
|
get endpoint() {
|
4437
|
-
return this.$$.ctx[
|
4493
|
+
return this.$$.ctx[21];
|
4438
4494
|
}
|
4439
4495
|
set endpoint(t) {
|
4440
|
-
this.$$set({ endpoint: t }),
|
4496
|
+
this.$$set({ endpoint: t }), B();
|
4441
4497
|
}
|
4442
4498
|
get datasource() {
|
4443
|
-
return this.$$.ctx[
|
4499
|
+
return this.$$.ctx[22];
|
4444
4500
|
}
|
4445
4501
|
set datasource(t) {
|
4446
|
-
this.$$set({ datasource: t }),
|
4502
|
+
this.$$set({ datasource: t }), B();
|
4447
4503
|
}
|
4448
4504
|
get onclickeventname() {
|
4449
|
-
return this.$$.ctx[
|
4505
|
+
return this.$$.ctx[23];
|
4450
4506
|
}
|
4451
4507
|
set onclickeventname(t) {
|
4452
|
-
this.$$set({ onclickeventname: t }),
|
4508
|
+
this.$$set({ onclickeventname: t }), B();
|
4453
4509
|
}
|
4454
4510
|
get actionevent() {
|
4455
|
-
return this.$$.ctx[
|
4511
|
+
return this.$$.ctx[24];
|
4456
4512
|
}
|
4457
4513
|
set actionevent(t) {
|
4458
|
-
this.$$set({ actionevent: t }),
|
4514
|
+
this.$$set({ actionevent: t }), B();
|
4459
4515
|
}
|
4460
4516
|
get favoritesnumber() {
|
4461
|
-
return this.$$.ctx[
|
4517
|
+
return this.$$.ctx[25];
|
4462
4518
|
}
|
4463
4519
|
set favoritesnumber(t) {
|
4464
|
-
this.$$set({ favoritesnumber: t }),
|
4520
|
+
this.$$set({ favoritesnumber: t }), B();
|
4465
4521
|
}
|
4466
4522
|
get location() {
|
4467
4523
|
return this.$$.ctx[0];
|
4468
4524
|
}
|
4469
4525
|
set location(t) {
|
4470
|
-
this.$$set({ location: t }),
|
4526
|
+
this.$$set({ location: t }), B();
|
4471
4527
|
}
|
4472
4528
|
get clientstyling() {
|
4473
|
-
return this.$$.ctx[
|
4529
|
+
return this.$$.ctx[26];
|
4474
4530
|
}
|
4475
4531
|
set clientstyling(t) {
|
4476
|
-
this.$$set({ clientstyling: t }),
|
4532
|
+
this.$$set({ clientstyling: t }), B();
|
4477
4533
|
}
|
4478
4534
|
get clientstylingurl() {
|
4479
|
-
return this.$$.ctx[
|
4535
|
+
return this.$$.ctx[27];
|
4480
4536
|
}
|
4481
4537
|
set clientstylingurl(t) {
|
4482
|
-
this.$$set({ clientstylingurl: t }),
|
4538
|
+
this.$$set({ clientstylingurl: t }), B();
|
4483
4539
|
}
|
4484
4540
|
get identity() {
|
4485
|
-
return this.$$.ctx[
|
4541
|
+
return this.$$.ctx[28];
|
4486
4542
|
}
|
4487
4543
|
set identity(t) {
|
4488
|
-
this.$$set({ identity: t }),
|
4544
|
+
this.$$set({ identity: t }), B();
|
4489
4545
|
}
|
4490
4546
|
get translationurl() {
|
4491
|
-
return this.$$.ctx[
|
4547
|
+
return this.$$.ctx[29];
|
4492
4548
|
}
|
4493
4549
|
set translationurl(t) {
|
4494
|
-
this.$$set({ translationurl: t }),
|
4550
|
+
this.$$set({ translationurl: t }), B();
|
4495
4551
|
}
|
4496
4552
|
get isprimarymenu() {
|
4497
|
-
return this.$$.ctx[
|
4553
|
+
return this.$$.ctx[30];
|
4498
4554
|
}
|
4499
4555
|
set isprimarymenu(t) {
|
4500
|
-
this.$$set({ isprimarymenu: t }),
|
4556
|
+
this.$$set({ isprimarymenu: t }), B();
|
4501
4557
|
}
|
4502
4558
|
get issecondarymenu() {
|
4503
|
-
return this.$$.ctx[
|
4559
|
+
return this.$$.ctx[31];
|
4504
4560
|
}
|
4505
4561
|
set issecondarymenu(t) {
|
4506
|
-
this.$$set({ issecondarymenu: t }),
|
4562
|
+
this.$$set({ issecondarymenu: t }), B();
|
4507
4563
|
}
|
4508
4564
|
get lang() {
|
4509
|
-
return this.$$.ctx[
|
4565
|
+
return this.$$.ctx[32];
|
4510
4566
|
}
|
4511
4567
|
set lang(t) {
|
4512
|
-
this.$$set({ lang: t }),
|
4568
|
+
this.$$set({ lang: t }), B();
|
4513
4569
|
}
|
4514
4570
|
get activeindex() {
|
4515
4571
|
return this.$$.ctx[1];
|
4516
4572
|
}
|
4517
4573
|
set activeindex(t) {
|
4518
|
-
this.$$set({ activeindex: t }),
|
4574
|
+
this.$$set({ activeindex: t }), B();
|
4519
4575
|
}
|
4520
4576
|
get showsubgroups() {
|
4521
4577
|
return this.$$.ctx[2];
|
4522
4578
|
}
|
4523
4579
|
set showsubgroups(t) {
|
4524
|
-
this.$$set({ showsubgroups: t }),
|
4580
|
+
this.$$set({ showsubgroups: t }), B();
|
4525
4581
|
}
|
4526
4582
|
get categoriesicon() {
|
4527
4583
|
return this.$$.ctx[3];
|
4528
4584
|
}
|
4529
4585
|
set categoriesicon(t) {
|
4530
|
-
this.$$set({ categoriesicon: t }),
|
4586
|
+
this.$$set({ categoriesicon: t }), B();
|
4531
4587
|
}
|
4532
4588
|
get lobbyiconimage() {
|
4533
|
-
return this.$$.ctx[
|
4589
|
+
return this.$$.ctx[33];
|
4534
4590
|
}
|
4535
4591
|
set lobbyiconimage(t) {
|
4536
|
-
this.$$set({ lobbyiconimage: t }),
|
4592
|
+
this.$$set({ lobbyiconimage: t }), B();
|
4537
4593
|
}
|
4538
4594
|
get mygamesiconimage() {
|
4539
|
-
return this.$$.ctx[
|
4595
|
+
return this.$$.ctx[34];
|
4540
4596
|
}
|
4541
4597
|
set mygamesiconimage(t) {
|
4542
|
-
this.$$set({ mygamesiconimage: t }),
|
4598
|
+
this.$$set({ mygamesiconimage: t }), B();
|
4543
4599
|
}
|
4544
4600
|
get mbsource() {
|
4545
|
-
return this.$$.ctx[
|
4601
|
+
return this.$$.ctx[35];
|
4546
4602
|
}
|
4547
4603
|
set mbsource(t) {
|
4548
|
-
this.$$set({ mbsource: t }),
|
4604
|
+
this.$$set({ mbsource: t }), B();
|
4549
4605
|
}
|
4550
4606
|
}
|
4551
|
-
|
4607
|
+
rn(ro, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4552
4608
|
export {
|
4553
|
-
|
4609
|
+
ro as C
|
4554
4610
|
};
|