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