@everymatrix/casino-slider 1.62.0 → 1.62.2
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-_gh8eyBy.js → CasinoSlider-BWv7Wntt.js} +643 -644
- package/components/{CasinoSlider-DJnv-C0E.js → CasinoSlider-C6aylM94.js} +861 -862
- package/components/CasinoSlider-CBNIyl1e.cjs +3 -0
- package/es2015/casino-slider.cjs +1 -1
- package/es2015/casino-slider.js +1 -1
- package/esnext/casino-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSlider-BFkyPgVj.cjs +0 -16
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-b7bbd57e-6KaMTlNN.js +0 -534
- package/stencil/index-b7bbd57e-BSagye0B.js +0 -550
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +0 -1
- package/stencil/ui-image-38c3c15f-CumwWbNu.js +0 -39
- package/stencil/ui-image-38c3c15f-Dxl-aZb-.js +0 -39
- package/stencil/ui-image-38c3c15f-y5t5ZLG0.cjs +0 -1
- package/stencil/ui-image-BQa5UbqU.js +0 -11
- package/stencil/ui-image-Bi4jDe3D.js +0 -29
- package/stencil/ui-image-z441BZiX.cjs +0 -1
@@ -1,29 +1,28 @@
|
|
1
|
-
import "../stencil/ui-image-BQa5UbqU.js";
|
2
1
|
function G() {
|
3
2
|
}
|
4
|
-
function
|
3
|
+
function Dt(e) {
|
5
4
|
return e();
|
6
5
|
}
|
7
|
-
function
|
6
|
+
function ht() {
|
8
7
|
return /* @__PURE__ */ Object.create(null);
|
9
8
|
}
|
10
|
-
function
|
11
|
-
e.forEach(
|
9
|
+
function q(e) {
|
10
|
+
e.forEach(Dt);
|
12
11
|
}
|
13
|
-
function
|
12
|
+
function rt(e) {
|
14
13
|
return typeof e == "function";
|
15
14
|
}
|
16
|
-
function
|
15
|
+
function Ut(e, t) {
|
17
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
18
17
|
}
|
19
|
-
let
|
20
|
-
function
|
21
|
-
return e === t ? !0 : (
|
18
|
+
let Ce;
|
19
|
+
function ct(e, t) {
|
20
|
+
return e === t ? !0 : (Ce || (Ce = document.createElement("a")), Ce.href = t, e === Ce.href);
|
22
21
|
}
|
23
|
-
function
|
22
|
+
function Tr(e) {
|
24
23
|
return Object.keys(e).length === 0;
|
25
24
|
}
|
26
|
-
function
|
25
|
+
function Ar(e, ...t) {
|
27
26
|
if (e == null) {
|
28
27
|
for (const n of t)
|
29
28
|
n(void 0);
|
@@ -35,14 +34,14 @@ function Br(e, ...t) {
|
|
35
34
|
function B(e, t) {
|
36
35
|
e.appendChild(t);
|
37
36
|
}
|
38
|
-
function
|
39
|
-
const n =
|
37
|
+
function Br(e, t, r) {
|
38
|
+
const n = Ir(e);
|
40
39
|
if (!n.getElementById(t)) {
|
41
40
|
const i = N("style");
|
42
|
-
i.id = t, i.textContent = r,
|
41
|
+
i.id = t, i.textContent = r, Mr(n, i);
|
43
42
|
}
|
44
43
|
}
|
45
|
-
function
|
44
|
+
function Ir(e) {
|
46
45
|
if (!e)
|
47
46
|
return document;
|
48
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -52,7 +51,7 @@ function Mr(e) {
|
|
52
51
|
t
|
53
52
|
) : e.ownerDocument;
|
54
53
|
}
|
55
|
-
function
|
54
|
+
function Mr(e, t) {
|
56
55
|
return B(
|
57
56
|
/** @type {Document} */
|
58
57
|
e.head || e,
|
@@ -65,36 +64,32 @@ function U(e, t, r) {
|
|
65
64
|
function F(e) {
|
66
65
|
e.parentNode && e.parentNode.removeChild(e);
|
67
66
|
}
|
68
|
-
function
|
67
|
+
function Nr(e, t) {
|
69
68
|
for (let r = 0; r < e.length; r += 1)
|
70
69
|
e[r] && e[r].d(t);
|
71
70
|
}
|
72
71
|
function N(e) {
|
73
72
|
return document.createElement(e);
|
74
73
|
}
|
75
|
-
function
|
74
|
+
function ve(e) {
|
76
75
|
return document.createTextNode(e);
|
77
76
|
}
|
78
|
-
function
|
79
|
-
return
|
77
|
+
function Q() {
|
78
|
+
return ve(" ");
|
80
79
|
}
|
81
|
-
function
|
82
|
-
return
|
80
|
+
function pe() {
|
81
|
+
return ve("");
|
83
82
|
}
|
84
83
|
function Ae(e, t, r, n) {
|
85
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
86
85
|
}
|
87
|
-
function
|
86
|
+
function H(e, t, r) {
|
88
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
89
88
|
}
|
90
|
-
function Ce(e, t, r) {
|
91
|
-
const n = t.toLowerCase();
|
92
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
|
93
|
-
}
|
94
89
|
function Pr(e) {
|
95
90
|
return Array.from(e.childNodes);
|
96
91
|
}
|
97
|
-
function
|
92
|
+
function nt(e, t) {
|
98
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
99
94
|
t);
|
100
95
|
}
|
@@ -108,127 +103,127 @@ function Or(e) {
|
|
108
103
|
), t;
|
109
104
|
}
|
110
105
|
let ge;
|
111
|
-
function
|
106
|
+
function me(e) {
|
112
107
|
ge = e;
|
113
108
|
}
|
114
|
-
function
|
109
|
+
function Lr() {
|
115
110
|
if (!ge)
|
116
111
|
throw new Error("Function called outside component initialization");
|
117
112
|
return ge;
|
118
113
|
}
|
119
|
-
function
|
120
|
-
|
114
|
+
function Fr(e) {
|
115
|
+
Lr().$$.on_mount.push(e);
|
121
116
|
}
|
122
|
-
const
|
123
|
-
let
|
124
|
-
const
|
125
|
-
let
|
126
|
-
function
|
127
|
-
|
117
|
+
const te = [], de = [];
|
118
|
+
let re = [];
|
119
|
+
const ft = [], Rr = /* @__PURE__ */ Promise.resolve();
|
120
|
+
let Xe = !1;
|
121
|
+
function Dr() {
|
122
|
+
Xe || (Xe = !0, Rr.then(A));
|
128
123
|
}
|
129
|
-
function
|
130
|
-
|
124
|
+
function We(e) {
|
125
|
+
re.push(e);
|
131
126
|
}
|
132
|
-
const
|
133
|
-
let
|
127
|
+
const De = /* @__PURE__ */ new Set();
|
128
|
+
let K = 0;
|
134
129
|
function A() {
|
135
|
-
if (
|
130
|
+
if (K !== 0)
|
136
131
|
return;
|
137
132
|
const e = ge;
|
138
133
|
do {
|
139
134
|
try {
|
140
|
-
for (;
|
141
|
-
const t =
|
142
|
-
|
135
|
+
for (; K < te.length; ) {
|
136
|
+
const t = te[K];
|
137
|
+
K++, me(t), Ur(t.$$);
|
143
138
|
}
|
144
139
|
} catch (t) {
|
145
|
-
throw
|
140
|
+
throw te.length = 0, K = 0, t;
|
146
141
|
}
|
147
|
-
for (
|
148
|
-
|
149
|
-
for (let t = 0; t <
|
150
|
-
const r =
|
151
|
-
|
142
|
+
for (me(null), te.length = 0, K = 0; de.length; )
|
143
|
+
de.pop()();
|
144
|
+
for (let t = 0; t < re.length; t += 1) {
|
145
|
+
const r = re[t];
|
146
|
+
De.has(r) || (De.add(r), r());
|
152
147
|
}
|
153
|
-
|
154
|
-
} while (
|
155
|
-
for (;
|
156
|
-
|
157
|
-
|
148
|
+
re.length = 0;
|
149
|
+
} while (te.length);
|
150
|
+
for (; ft.length; )
|
151
|
+
ft.pop()();
|
152
|
+
Xe = !1, De.clear(), me(e);
|
158
153
|
}
|
159
|
-
function
|
154
|
+
function Ur(e) {
|
160
155
|
if (e.fragment !== null) {
|
161
|
-
e.update(),
|
156
|
+
e.update(), q(e.before_update);
|
162
157
|
const t = e.dirty;
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
158
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
|
164
159
|
}
|
165
160
|
}
|
166
|
-
function
|
161
|
+
function Gr(e) {
|
167
162
|
const t = [], r = [];
|
168
|
-
|
163
|
+
re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), re = t;
|
169
164
|
}
|
170
|
-
const
|
171
|
-
function
|
172
|
-
e && e.i && (
|
165
|
+
const kr = /* @__PURE__ */ new Set();
|
166
|
+
function Gt(e, t) {
|
167
|
+
e && e.i && (kr.delete(e), e.i(t));
|
173
168
|
}
|
174
|
-
function
|
169
|
+
function ne(e) {
|
175
170
|
return e?.length !== void 0 ? e : Array.from(e);
|
176
171
|
}
|
177
|
-
function
|
172
|
+
function kt(e, t) {
|
178
173
|
e.d(1), t.delete(e.key);
|
179
174
|
}
|
180
|
-
function
|
181
|
-
let f = e.length,
|
175
|
+
function $t(e, t, r, n, i, o, s, a, h, l, u, m) {
|
176
|
+
let f = e.length, p = o.length, g = f;
|
182
177
|
const b = {};
|
183
|
-
for (;
|
184
|
-
b[e[
|
185
|
-
const d = [],
|
186
|
-
for (
|
187
|
-
const
|
188
|
-
let
|
189
|
-
|
178
|
+
for (; g--; )
|
179
|
+
b[e[g].key] = g;
|
180
|
+
const d = [], C = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), w = [];
|
181
|
+
for (g = p; g--; ) {
|
182
|
+
const x = m(i, o, g), I = r(x);
|
183
|
+
let P = s.get(I);
|
184
|
+
P ? w.push(() => P.p(x, t)) : (P = l(I, x), P.c()), C.set(I, d[g] = P), I in b && _.set(I, Math.abs(g - b[I]));
|
190
185
|
}
|
191
|
-
const R = /* @__PURE__ */ new Set(),
|
192
|
-
function k(
|
193
|
-
|
186
|
+
const R = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
|
187
|
+
function k(x) {
|
188
|
+
Gt(x, 1), x.m(a, u), s.set(x.key, x), u = x.first, p--;
|
194
189
|
}
|
195
|
-
for (; f &&
|
196
|
-
const
|
197
|
-
|
190
|
+
for (; f && p; ) {
|
191
|
+
const x = d[p - 1], I = e[f - 1], P = x.key, V = I.key;
|
192
|
+
x === I ? (u = x.first, f--, p--) : C.has(V) ? !s.has(P) || R.has(P) ? k(x) : O.has(V) ? f-- : _.get(P) > _.get(V) ? (O.add(P), k(x)) : (R.add(V), f--) : (h(I, s), f--);
|
198
193
|
}
|
199
194
|
for (; f--; ) {
|
200
|
-
const
|
201
|
-
|
195
|
+
const x = e[f];
|
196
|
+
C.has(x.key) || h(x, s);
|
202
197
|
}
|
203
|
-
for (;
|
204
|
-
k(d[
|
205
|
-
return
|
198
|
+
for (; p; )
|
199
|
+
k(d[p - 1]);
|
200
|
+
return q(w), d;
|
206
201
|
}
|
207
|
-
function
|
202
|
+
function $r(e, t, r) {
|
208
203
|
const { fragment: n, after_update: i } = e.$$;
|
209
|
-
n && n.m(t, r),
|
210
|
-
const
|
211
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
212
|
-
}), i.forEach(
|
204
|
+
n && n.m(t, r), We(() => {
|
205
|
+
const o = e.$$.on_mount.map(Dt).filter(rt);
|
206
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : q(o), e.$$.on_mount = [];
|
207
|
+
}), i.forEach(We);
|
213
208
|
}
|
214
|
-
function
|
209
|
+
function jr(e, t) {
|
215
210
|
const r = e.$$;
|
216
|
-
r.fragment !== null && (
|
211
|
+
r.fragment !== null && (Gr(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
217
212
|
}
|
218
|
-
function
|
219
|
-
e.$$.dirty[0] === -1 && (
|
213
|
+
function Vr(e, t) {
|
214
|
+
e.$$.dirty[0] === -1 && (te.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
220
215
|
}
|
221
|
-
function
|
216
|
+
function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
222
217
|
const h = ge;
|
223
|
-
|
218
|
+
me(e);
|
224
219
|
const l = e.$$ = {
|
225
220
|
fragment: null,
|
226
221
|
ctx: [],
|
227
222
|
// state
|
228
|
-
props:
|
223
|
+
props: o,
|
229
224
|
update: G,
|
230
225
|
not_equal: i,
|
231
|
-
bound:
|
226
|
+
bound: ht(),
|
232
227
|
// lifecycle
|
233
228
|
on_mount: [],
|
234
229
|
on_destroy: [],
|
@@ -237,28 +232,28 @@ function Wr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
237
232
|
after_update: [],
|
238
233
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
239
234
|
// everything else
|
240
|
-
callbacks:
|
235
|
+
callbacks: ht(),
|
241
236
|
dirty: a,
|
242
237
|
skip_bound: !1,
|
243
238
|
root: t.target || h.$$.root
|
244
239
|
};
|
245
|
-
|
240
|
+
s && s(l.root);
|
246
241
|
let u = !1;
|
247
|
-
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...
|
248
|
-
const
|
249
|
-
return l.ctx && i(l.ctx[m], l.ctx[m] =
|
250
|
-
}) : [], l.update(), u = !0,
|
242
|
+
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
243
|
+
const g = p.length ? p[0] : f;
|
244
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && Vr(e, m)), f;
|
245
|
+
}) : [], l.update(), u = !0, q(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
251
246
|
if (t.hydrate) {
|
252
247
|
const m = Pr(t.target);
|
253
248
|
l.fragment && l.fragment.l(m), m.forEach(F);
|
254
249
|
} else
|
255
250
|
l.fragment && l.fragment.c();
|
256
|
-
t.intro &&
|
251
|
+
t.intro && Gt(e.$$.fragment), $r(e, t.target, t.anchor), A();
|
257
252
|
}
|
258
|
-
|
253
|
+
me(h);
|
259
254
|
}
|
260
|
-
let
|
261
|
-
typeof HTMLElement == "function" && (
|
255
|
+
let jt;
|
256
|
+
typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
262
257
|
/** The Svelte component constructor */
|
263
258
|
$$ctor;
|
264
259
|
/** Slots */
|
@@ -297,20 +292,20 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
297
292
|
if (this.$$cn = !0, !this.$$c) {
|
298
293
|
let e = function(i) {
|
299
294
|
return () => {
|
300
|
-
let
|
295
|
+
let o;
|
301
296
|
return {
|
302
297
|
c: function() {
|
303
|
-
|
298
|
+
o = N("slot"), i !== "default" && H(o, "name", i);
|
304
299
|
},
|
305
300
|
/**
|
306
301
|
* @param {HTMLElement} target
|
307
302
|
* @param {HTMLElement} [anchor]
|
308
303
|
*/
|
309
304
|
m: function(h, l) {
|
310
|
-
U(h,
|
305
|
+
U(h, o, l);
|
311
306
|
},
|
312
307
|
d: function(h) {
|
313
|
-
h && F(
|
308
|
+
h && F(o);
|
314
309
|
}
|
315
310
|
};
|
316
311
|
};
|
@@ -321,8 +316,8 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
321
316
|
for (const i of this.$$s)
|
322
317
|
i in r && (t[i] = [e(i)]);
|
323
318
|
for (const i of this.attributes) {
|
324
|
-
const
|
325
|
-
|
319
|
+
const o = this.$$g_p(i.name);
|
320
|
+
o in this.$$d || (this.$$d[o] = He(o, i.value, this.$$p_d, "toProp"));
|
326
321
|
}
|
327
322
|
for (const i in this.$$p_d)
|
328
323
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -340,21 +335,21 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
340
335
|
this.$$r = !0;
|
341
336
|
for (const i in this.$$p_d)
|
342
337
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
343
|
-
const
|
338
|
+
const o = He(
|
344
339
|
i,
|
345
340
|
this.$$d[i],
|
346
341
|
this.$$p_d,
|
347
342
|
"toAttribute"
|
348
343
|
);
|
349
|
-
|
344
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
350
345
|
}
|
351
346
|
this.$$r = !1;
|
352
347
|
};
|
353
348
|
this.$$c.$$.after_update.push(n), n();
|
354
349
|
for (const i in this.$$l)
|
355
|
-
for (const
|
356
|
-
const
|
357
|
-
this.$$l_u.set(
|
350
|
+
for (const o of this.$$l[i]) {
|
351
|
+
const s = this.$$c.$on(i, o);
|
352
|
+
this.$$l_u.set(o, s);
|
358
353
|
}
|
359
354
|
this.$$l = {};
|
360
355
|
}
|
@@ -404,8 +399,8 @@ function He(e, t, r, n) {
|
|
404
399
|
return t;
|
405
400
|
}
|
406
401
|
}
|
407
|
-
function
|
408
|
-
let
|
402
|
+
function Wr(e, t, r, n, i, o) {
|
403
|
+
let s = class extends jt {
|
409
404
|
constructor() {
|
410
405
|
super(e, r, i), this.$$p_d = t;
|
411
406
|
}
|
@@ -416,7 +411,7 @@ function zr(e, t, r, n, i, s) {
|
|
416
411
|
}
|
417
412
|
};
|
418
413
|
return Object.keys(t).forEach((a) => {
|
419
|
-
Object.defineProperty(
|
414
|
+
Object.defineProperty(s.prototype, a, {
|
420
415
|
get() {
|
421
416
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
422
417
|
},
|
@@ -425,15 +420,15 @@ function zr(e, t, r, n, i, s) {
|
|
425
420
|
}
|
426
421
|
});
|
427
422
|
}), n.forEach((a) => {
|
428
|
-
Object.defineProperty(
|
423
|
+
Object.defineProperty(s.prototype, a, {
|
429
424
|
get() {
|
430
425
|
return this.$$c?.[a];
|
431
426
|
}
|
432
427
|
});
|
433
428
|
}), e.element = /** @type {any} */
|
434
|
-
|
429
|
+
s, s;
|
435
430
|
}
|
436
|
-
class
|
431
|
+
class zr {
|
437
432
|
/**
|
438
433
|
* ### PRIVATE API
|
439
434
|
*
|
@@ -452,7 +447,7 @@ class Zr {
|
|
452
447
|
$$set = void 0;
|
453
448
|
/** @returns {void} */
|
454
449
|
$destroy() {
|
455
|
-
|
450
|
+
jr(this, 1), this.$destroy = G;
|
456
451
|
}
|
457
452
|
/**
|
458
453
|
* @template {Extract<keyof Events, string>} K
|
@@ -461,7 +456,7 @@ class Zr {
|
|
461
456
|
* @returns {() => void}
|
462
457
|
*/
|
463
458
|
$on(t, r) {
|
464
|
-
if (!
|
459
|
+
if (!rt(r))
|
465
460
|
return G;
|
466
461
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
467
462
|
return n.push(r), () => {
|
@@ -474,18 +469,18 @@ class Zr {
|
|
474
469
|
* @returns {void}
|
475
470
|
*/
|
476
471
|
$set(t) {
|
477
|
-
this.$$set && !
|
472
|
+
this.$$set && !Tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
478
473
|
}
|
479
474
|
}
|
480
|
-
const
|
481
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
482
|
-
function
|
475
|
+
const Zr = "4";
|
476
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
|
477
|
+
function Qr(e, t) {
|
483
478
|
if (e) {
|
484
479
|
const r = document.createElement("style");
|
485
480
|
r.innerHTML = t, e.appendChild(r);
|
486
481
|
}
|
487
482
|
}
|
488
|
-
function
|
483
|
+
function qr(e, t) {
|
489
484
|
const r = new URL(t);
|
490
485
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
491
486
|
const i = document.createElement("style");
|
@@ -494,7 +489,7 @@ function Jr(e, t) {
|
|
494
489
|
console.error("There was an error while trying to load client styling from URL", n);
|
495
490
|
});
|
496
491
|
}
|
497
|
-
function
|
492
|
+
function Jr(e, t, r) {
|
498
493
|
if (window.emMessageBus) {
|
499
494
|
const n = document.createElement("style");
|
500
495
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -502,44 +497,44 @@ function Yr(e, t, r) {
|
|
502
497
|
});
|
503
498
|
}
|
504
499
|
}
|
505
|
-
const
|
506
|
-
function
|
500
|
+
const ee = [];
|
501
|
+
function Yr(e, t) {
|
507
502
|
return {
|
508
|
-
subscribe:
|
503
|
+
subscribe: Ne(e, t).subscribe
|
509
504
|
};
|
510
505
|
}
|
511
|
-
function
|
506
|
+
function Ne(e, t = G) {
|
512
507
|
let r;
|
513
508
|
const n = /* @__PURE__ */ new Set();
|
514
509
|
function i(a) {
|
515
|
-
if (
|
516
|
-
const h = !
|
510
|
+
if (Ut(e, a) && (e = a, r)) {
|
511
|
+
const h = !ee.length;
|
517
512
|
for (const l of n)
|
518
|
-
l[1](),
|
513
|
+
l[1](), ee.push(l, e);
|
519
514
|
if (h) {
|
520
|
-
for (let l = 0; l <
|
521
|
-
|
522
|
-
|
515
|
+
for (let l = 0; l < ee.length; l += 2)
|
516
|
+
ee[l][0](ee[l + 1]);
|
517
|
+
ee.length = 0;
|
523
518
|
}
|
524
519
|
}
|
525
520
|
}
|
526
|
-
function
|
521
|
+
function o(a) {
|
527
522
|
i(a(e));
|
528
523
|
}
|
529
|
-
function
|
524
|
+
function s(a, h = G) {
|
530
525
|
const l = [a, h];
|
531
|
-
return n.add(l), n.size === 1 && (r = t(i,
|
526
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || G), a(e), () => {
|
532
527
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
533
528
|
};
|
534
529
|
}
|
535
|
-
return { set: i, update:
|
530
|
+
return { set: i, update: o, subscribe: s };
|
536
531
|
}
|
537
|
-
function
|
532
|
+
function le(e, t, r) {
|
538
533
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
539
534
|
if (!i.every(Boolean))
|
540
535
|
throw new Error("derived() expects stores as input, got a falsy value");
|
541
|
-
const
|
542
|
-
return
|
536
|
+
const o = t.length < 2;
|
537
|
+
return Yr(r, (s, a) => {
|
543
538
|
let h = !1;
|
544
539
|
const l = [];
|
545
540
|
let u = 0, m = G;
|
@@ -547,11 +542,11 @@ function ae(e, t, r) {
|
|
547
542
|
if (u)
|
548
543
|
return;
|
549
544
|
m();
|
550
|
-
const
|
551
|
-
|
552
|
-
},
|
553
|
-
(
|
554
|
-
|
545
|
+
const g = t(n ? l[0] : l, s, a);
|
546
|
+
o ? s(g) : m = rt(g) ? g : G;
|
547
|
+
}, p = i.map(
|
548
|
+
(g, b) => Ar(
|
549
|
+
g,
|
555
550
|
(d) => {
|
556
551
|
l[b] = d, u &= ~(1 << b), h && f();
|
557
552
|
},
|
@@ -561,126 +556,112 @@ function ae(e, t, r) {
|
|
561
556
|
)
|
562
557
|
);
|
563
558
|
return h = !0, f(), function() {
|
564
|
-
|
559
|
+
q(p), m(), h = !1;
|
565
560
|
};
|
566
561
|
});
|
567
562
|
}
|
568
|
-
function
|
563
|
+
function Kr(e) {
|
569
564
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
570
565
|
}
|
571
|
-
var
|
572
|
-
return
|
566
|
+
var en = function(t) {
|
567
|
+
return tn(t) && !rn(t);
|
573
568
|
};
|
574
|
-
function
|
569
|
+
function tn(e) {
|
575
570
|
return !!e && typeof e == "object";
|
576
571
|
}
|
577
|
-
function
|
572
|
+
function rn(e) {
|
578
573
|
var t = Object.prototype.toString.call(e);
|
579
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
574
|
+
return t === "[object RegExp]" || t === "[object Date]" || sn(e);
|
580
575
|
}
|
581
|
-
var
|
582
|
-
function
|
583
|
-
return e.$$typeof ===
|
576
|
+
var nn = typeof Symbol == "function" && Symbol.for, on = nn ? Symbol.for("react.element") : 60103;
|
577
|
+
function sn(e) {
|
578
|
+
return e.$$typeof === on;
|
584
579
|
}
|
585
|
-
function
|
580
|
+
function an(e) {
|
586
581
|
return Array.isArray(e) ? [] : {};
|
587
582
|
}
|
588
|
-
function
|
589
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
583
|
+
function be(e, t) {
|
584
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ie(an(e), e, t) : e;
|
590
585
|
}
|
591
|
-
function
|
586
|
+
function ln(e, t, r) {
|
592
587
|
return e.concat(t).map(function(n) {
|
593
|
-
return
|
588
|
+
return be(n, r);
|
594
589
|
});
|
595
590
|
}
|
596
|
-
function
|
591
|
+
function un(e, t) {
|
597
592
|
if (!t.customMerge)
|
598
|
-
return
|
593
|
+
return ie;
|
599
594
|
var r = t.customMerge(e);
|
600
|
-
return typeof r == "function" ? r :
|
595
|
+
return typeof r == "function" ? r : ie;
|
601
596
|
}
|
602
|
-
function
|
597
|
+
function hn(e) {
|
603
598
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
604
599
|
return Object.propertyIsEnumerable.call(e, t);
|
605
600
|
}) : [];
|
606
601
|
}
|
607
|
-
function
|
608
|
-
return Object.keys(e).concat(
|
602
|
+
function mt(e) {
|
603
|
+
return Object.keys(e).concat(hn(e));
|
609
604
|
}
|
610
|
-
function
|
605
|
+
function Vt(e, t) {
|
611
606
|
try {
|
612
607
|
return t in e;
|
613
608
|
} catch {
|
614
609
|
return !1;
|
615
610
|
}
|
616
611
|
}
|
617
|
-
function
|
618
|
-
return
|
612
|
+
function cn(e, t) {
|
613
|
+
return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
619
614
|
}
|
620
|
-
function
|
615
|
+
function fn(e, t, r) {
|
621
616
|
var n = {};
|
622
|
-
return r.isMergeableObject(e) &&
|
623
|
-
n[i] =
|
624
|
-
}),
|
625
|
-
|
617
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
618
|
+
n[i] = be(e[i], r);
|
619
|
+
}), mt(t).forEach(function(i) {
|
620
|
+
cn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = be(t[i], r));
|
626
621
|
}), n;
|
627
622
|
}
|
628
|
-
function
|
629
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
630
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
631
|
-
return
|
623
|
+
function ie(e, t, r) {
|
624
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = be;
|
625
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
626
|
+
return o ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : be(t, r);
|
632
627
|
}
|
633
|
-
|
628
|
+
ie.all = function(t, r) {
|
634
629
|
if (!Array.isArray(t))
|
635
630
|
throw new Error("first argument should be an array");
|
636
631
|
return t.reduce(function(n, i) {
|
637
|
-
return
|
632
|
+
return ie(n, i, r);
|
638
633
|
}, {});
|
639
634
|
};
|
640
|
-
var
|
641
|
-
const pn = /* @__PURE__ */
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
646
|
-
purpose with or without fee is hereby granted.
|
647
|
-
|
648
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
649
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
650
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
651
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
652
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
653
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
654
|
-
PERFORMANCE OF THIS SOFTWARE.
|
655
|
-
***************************************************************************** */
|
656
|
-
var We = function(e, t) {
|
657
|
-
return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
635
|
+
var mn = ie, dn = mn;
|
636
|
+
const pn = /* @__PURE__ */ Kr(dn);
|
637
|
+
var ze = function(e, t) {
|
638
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
658
639
|
r.__proto__ = n;
|
659
640
|
} || function(r, n) {
|
660
641
|
for (var i in n)
|
661
642
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
662
|
-
},
|
643
|
+
}, ze(e, t);
|
663
644
|
};
|
664
|
-
function
|
645
|
+
function Pe(e, t) {
|
665
646
|
if (typeof t != "function" && t !== null)
|
666
647
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
667
|
-
|
648
|
+
ze(e, t);
|
668
649
|
function r() {
|
669
650
|
this.constructor = e;
|
670
651
|
}
|
671
652
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
672
653
|
}
|
673
|
-
var
|
674
|
-
return
|
654
|
+
var $ = function() {
|
655
|
+
return $ = Object.assign || function(t) {
|
675
656
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
676
657
|
r = arguments[n];
|
677
|
-
for (var
|
678
|
-
Object.prototype.hasOwnProperty.call(r,
|
658
|
+
for (var o in r)
|
659
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
679
660
|
}
|
680
661
|
return t;
|
681
|
-
},
|
662
|
+
}, $.apply(this, arguments);
|
682
663
|
};
|
683
|
-
function
|
664
|
+
function gn(e, t) {
|
684
665
|
var r = {};
|
685
666
|
for (var n in e)
|
686
667
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -689,63 +670,71 @@ function bn(e, t) {
|
|
689
670
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
690
671
|
return r;
|
691
672
|
}
|
692
|
-
function
|
693
|
-
if (arguments.length === 2)
|
694
|
-
for (var n = 0, i = t.length,
|
695
|
-
(
|
696
|
-
return e.concat(
|
673
|
+
function Ue(e, t, r) {
|
674
|
+
if (r || arguments.length === 2)
|
675
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
676
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
677
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
697
678
|
}
|
698
|
-
function
|
699
|
-
var r = t && t.cache ? t.cache : Cn, n = t && t.serializer ? t.serializer :
|
679
|
+
function Ge(e, t) {
|
680
|
+
var r = t && t.cache ? t.cache : Cn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : vn;
|
700
681
|
return i(e, {
|
701
682
|
cache: r,
|
702
683
|
serializer: n
|
703
684
|
});
|
704
685
|
}
|
705
|
-
function
|
686
|
+
function bn(e) {
|
706
687
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
707
688
|
}
|
708
|
-
function
|
709
|
-
var i =
|
710
|
-
return typeof
|
689
|
+
function yn(e, t, r, n) {
|
690
|
+
var i = bn(n) ? n : r(n), o = t.get(i);
|
691
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
711
692
|
}
|
712
|
-
function
|
713
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
714
|
-
return typeof
|
693
|
+
function Xt(e, t, r) {
|
694
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
695
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
715
696
|
}
|
716
|
-
function
|
697
|
+
function Wt(e, t, r, n, i) {
|
717
698
|
return r.bind(t, e, n, i);
|
718
699
|
}
|
719
700
|
function vn(e, t) {
|
720
|
-
var r = e.length === 1 ?
|
721
|
-
return
|
701
|
+
var r = e.length === 1 ? yn : Xt;
|
702
|
+
return Wt(e, this, r, t.cache.create(), t.serializer);
|
722
703
|
}
|
723
704
|
function _n(e, t) {
|
724
|
-
return
|
705
|
+
return Wt(e, this, Xt, t.cache.create(), t.serializer);
|
725
706
|
}
|
726
|
-
|
727
|
-
return nt(e, this, Wt, t.cache.create(), t.serializer);
|
728
|
-
}
|
729
|
-
var xn = function() {
|
707
|
+
var En = function() {
|
730
708
|
return JSON.stringify(arguments);
|
731
|
-
}
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
709
|
+
}, xn = (
|
710
|
+
/** @class */
|
711
|
+
function() {
|
712
|
+
function e() {
|
713
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
714
|
+
}
|
715
|
+
return e.prototype.get = function(t) {
|
716
|
+
return this.cache[t];
|
717
|
+
}, e.prototype.set = function(t, r) {
|
718
|
+
this.cache[t] = r;
|
719
|
+
}, e;
|
720
|
+
}()
|
721
|
+
), Cn = {
|
742
722
|
create: function() {
|
743
|
-
return new
|
723
|
+
return new xn();
|
744
724
|
}
|
745
|
-
},
|
746
|
-
variadic: _n
|
747
|
-
|
748
|
-
|
725
|
+
}, ke = {
|
726
|
+
variadic: _n
|
727
|
+
}, Be = function() {
|
728
|
+
return Be = Object.assign || function(t) {
|
729
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
730
|
+
r = arguments[n];
|
731
|
+
for (var o in r)
|
732
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
733
|
+
}
|
734
|
+
return t;
|
735
|
+
}, Be.apply(this, arguments);
|
736
|
+
};
|
737
|
+
var y;
|
749
738
|
(function(e) {
|
750
739
|
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";
|
751
740
|
})(y || (y = {}));
|
@@ -753,44 +742,44 @@ var S;
|
|
753
742
|
(function(e) {
|
754
743
|
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";
|
755
744
|
})(S || (S = {}));
|
756
|
-
var
|
745
|
+
var oe;
|
757
746
|
(function(e) {
|
758
747
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
759
|
-
})(
|
760
|
-
function
|
748
|
+
})(oe || (oe = {}));
|
749
|
+
function dt(e) {
|
761
750
|
return e.type === S.literal;
|
762
751
|
}
|
763
752
|
function wn(e) {
|
764
753
|
return e.type === S.argument;
|
765
754
|
}
|
766
|
-
function
|
755
|
+
function zt(e) {
|
767
756
|
return e.type === S.number;
|
768
757
|
}
|
769
|
-
function
|
758
|
+
function Zt(e) {
|
770
759
|
return e.type === S.date;
|
771
760
|
}
|
772
|
-
function
|
761
|
+
function Qt(e) {
|
773
762
|
return e.type === S.time;
|
774
763
|
}
|
775
|
-
function
|
764
|
+
function qt(e) {
|
776
765
|
return e.type === S.select;
|
777
766
|
}
|
778
|
-
function
|
767
|
+
function Jt(e) {
|
779
768
|
return e.type === S.plural;
|
780
769
|
}
|
781
770
|
function Hn(e) {
|
782
771
|
return e.type === S.pound;
|
783
772
|
}
|
784
|
-
function
|
773
|
+
function Yt(e) {
|
785
774
|
return e.type === S.tag;
|
786
775
|
}
|
787
|
-
function
|
788
|
-
return !!(e && typeof e == "object" && e.type ===
|
776
|
+
function Kt(e) {
|
777
|
+
return !!(e && typeof e == "object" && e.type === oe.number);
|
789
778
|
}
|
790
|
-
function
|
791
|
-
return !!(e && typeof e == "object" && e.type ===
|
779
|
+
function Ze(e) {
|
780
|
+
return !!(e && typeof e == "object" && e.type === oe.dateTime);
|
792
781
|
}
|
793
|
-
var
|
782
|
+
var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sn = /(?:[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
783
|
function Tn(e) {
|
795
784
|
var t = {};
|
796
785
|
return e.replace(Sn, function(r) {
|
@@ -882,6 +871,16 @@ function Tn(e) {
|
|
882
871
|
return "";
|
883
872
|
}), t;
|
884
873
|
}
|
874
|
+
var T = function() {
|
875
|
+
return T = Object.assign || function(t) {
|
876
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
877
|
+
r = arguments[n];
|
878
|
+
for (var o in r)
|
879
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
880
|
+
}
|
881
|
+
return t;
|
882
|
+
}, T.apply(this, arguments);
|
883
|
+
};
|
885
884
|
var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
886
885
|
function Bn(e) {
|
887
886
|
if (e.length === 0)
|
@@ -889,10 +888,10 @@ function Bn(e) {
|
|
889
888
|
for (var t = e.split(An).filter(function(f) {
|
890
889
|
return f.length > 0;
|
891
890
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
892
|
-
var
|
893
|
-
if (
|
891
|
+
var o = i[n], s = o.split("/");
|
892
|
+
if (s.length === 0)
|
894
893
|
throw new Error("Invalid number skeleton");
|
895
|
-
for (var a =
|
894
|
+
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
896
895
|
var m = u[l];
|
897
896
|
if (m.length === 0)
|
898
897
|
throw new Error("Invalid number skeleton");
|
@@ -904,14 +903,14 @@ function Bn(e) {
|
|
904
903
|
function In(e) {
|
905
904
|
return e.replace(/^(.*?)-/, "");
|
906
905
|
}
|
907
|
-
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
908
|
-
function
|
906
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
907
|
+
function gt(e) {
|
909
908
|
var t = {};
|
910
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
909
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tr, function(r, n, i) {
|
911
910
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
912
911
|
}), t;
|
913
912
|
}
|
914
|
-
function
|
913
|
+
function nr(e) {
|
915
914
|
switch (e) {
|
916
915
|
case "sign-auto":
|
917
916
|
return {
|
@@ -959,17 +958,17 @@ function Nn(e) {
|
|
959
958
|
notation: "scientific"
|
960
959
|
}, e = e.slice(1)), t) {
|
961
960
|
var r = e.slice(0, 2);
|
962
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
961
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
|
963
962
|
throw new Error("Malformed concise eng/scientific notation");
|
964
963
|
t.minimumIntegerDigits = e.length;
|
965
964
|
}
|
966
965
|
return t;
|
967
966
|
}
|
968
|
-
function
|
969
|
-
var t = {}, r =
|
967
|
+
function bt(e) {
|
968
|
+
var t = {}, r = nr(e);
|
970
969
|
return r || t;
|
971
970
|
}
|
972
|
-
function
|
971
|
+
function Pn(e) {
|
973
972
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
974
973
|
var i = n[r];
|
975
974
|
switch (i.stem) {
|
@@ -1004,13 +1003,13 @@ function Ln(e) {
|
|
1004
1003
|
t.notation = "compact", t.compactDisplay = "long";
|
1005
1004
|
continue;
|
1006
1005
|
case "scientific":
|
1007
|
-
t =
|
1008
|
-
return
|
1006
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1007
|
+
return T(T({}, h), bt(l));
|
1009
1008
|
}, {}));
|
1010
1009
|
continue;
|
1011
1010
|
case "engineering":
|
1012
|
-
t =
|
1013
|
-
return
|
1011
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1012
|
+
return T(T({}, h), bt(l));
|
1014
1013
|
}, {}));
|
1015
1014
|
continue;
|
1016
1015
|
case "notation-simple":
|
@@ -1055,41 +1054,41 @@ function Ln(e) {
|
|
1055
1054
|
case "integer-width":
|
1056
1055
|
if (i.options.length > 1)
|
1057
1056
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1058
|
-
i.options[0].replace(Mn, function(h, l, u, m, f,
|
1057
|
+
i.options[0].replace(Mn, function(h, l, u, m, f, p) {
|
1059
1058
|
if (l)
|
1060
1059
|
t.minimumIntegerDigits = u.length;
|
1061
1060
|
else {
|
1062
1061
|
if (m && f)
|
1063
1062
|
throw new Error("We currently do not support maximum integer digits");
|
1064
|
-
if (
|
1063
|
+
if (p)
|
1065
1064
|
throw new Error("We currently do not support exact integer digits");
|
1066
1065
|
}
|
1067
1066
|
return "";
|
1068
1067
|
});
|
1069
1068
|
continue;
|
1070
1069
|
}
|
1071
|
-
if (
|
1070
|
+
if (rr.test(i.stem)) {
|
1072
1071
|
t.minimumIntegerDigits = i.stem.length;
|
1073
1072
|
continue;
|
1074
1073
|
}
|
1075
1074
|
if (pt.test(i.stem)) {
|
1076
1075
|
if (i.options.length > 1)
|
1077
1076
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1078
|
-
i.stem.replace(pt, function(h, l, u, m, f,
|
1079
|
-
return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f &&
|
1077
|
+
i.stem.replace(pt, function(h, l, u, m, f, p) {
|
1078
|
+
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), "";
|
1080
1079
|
});
|
1081
|
-
var
|
1082
|
-
|
1080
|
+
var o = i.options[0];
|
1081
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), gt(o)));
|
1083
1082
|
continue;
|
1084
1083
|
}
|
1085
|
-
if (
|
1086
|
-
t =
|
1084
|
+
if (tr.test(i.stem)) {
|
1085
|
+
t = T(T({}, t), gt(i.stem));
|
1087
1086
|
continue;
|
1088
1087
|
}
|
1089
|
-
var
|
1090
|
-
|
1088
|
+
var s = nr(i.stem);
|
1089
|
+
s && (t = T(T({}, t), s));
|
1091
1090
|
var a = Nn(i.stem);
|
1092
|
-
a && (t =
|
1091
|
+
a && (t = T(T({}, t), a));
|
1093
1092
|
}
|
1094
1093
|
return t;
|
1095
1094
|
}
|
@@ -2508,23 +2507,23 @@ var we = {
|
|
2508
2507
|
"h"
|
2509
2508
|
]
|
2510
2509
|
};
|
2511
|
-
function
|
2510
|
+
function On(e, t) {
|
2512
2511
|
for (var r = "", n = 0; n < e.length; n++) {
|
2513
2512
|
var i = e.charAt(n);
|
2514
2513
|
if (i === "j") {
|
2515
|
-
for (var
|
2516
|
-
|
2517
|
-
var
|
2514
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2515
|
+
o++, n++;
|
2516
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Ln(t);
|
2518
2517
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2519
2518
|
r += h;
|
2520
|
-
for (;
|
2519
|
+
for (; s-- > 0; )
|
2521
2520
|
r = l + r;
|
2522
2521
|
} else
|
2523
2522
|
i === "J" ? r += "H" : r += i;
|
2524
2523
|
}
|
2525
2524
|
return r;
|
2526
2525
|
}
|
2527
|
-
function
|
2526
|
+
function Ln(e) {
|
2528
2527
|
var t = e.hourCycle;
|
2529
2528
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2530
2529
|
e.hourCycles && // @ts-ignore
|
@@ -2546,20 +2545,20 @@ function On(e) {
|
|
2546
2545
|
var i = we[n || ""] || we[r || ""] || we["".concat(r, "-001")] || we["001"];
|
2547
2546
|
return i[0];
|
2548
2547
|
}
|
2549
|
-
var
|
2548
|
+
var $e, Fn = new RegExp("^".concat(er.source, "*")), Rn = new RegExp("".concat(er.source, "*$"));
|
2550
2549
|
function v(e, t) {
|
2551
2550
|
return { start: e, end: t };
|
2552
2551
|
}
|
2553
2552
|
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Gn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
|
2554
2553
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2555
|
-
},
|
2554
|
+
}, Qe = !0;
|
2556
2555
|
try {
|
2557
|
-
var Wn =
|
2558
|
-
|
2556
|
+
var Wn = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2557
|
+
Qe = (($e = Wn.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
2559
2558
|
} catch {
|
2560
|
-
|
2559
|
+
Qe = !1;
|
2561
2560
|
}
|
2562
|
-
var
|
2561
|
+
var yt = Dn ? (
|
2563
2562
|
// Native
|
2564
2563
|
function(t, r, n) {
|
2565
2564
|
return t.startsWith(r, n);
|
@@ -2569,31 +2568,31 @@ var vt = Dn ? (
|
|
2569
2568
|
function(t, r, n) {
|
2570
2569
|
return t.slice(n, n + r.length) === r;
|
2571
2570
|
}
|
2572
|
-
),
|
2571
|
+
), qe = Un ? String.fromCodePoint : (
|
2573
2572
|
// IE11
|
2574
2573
|
function() {
|
2575
2574
|
for (var t = [], r = 0; r < arguments.length; r++)
|
2576
2575
|
t[r] = arguments[r];
|
2577
|
-
for (var n = "", i = t.length,
|
2578
|
-
if (
|
2579
|
-
throw RangeError(
|
2580
|
-
n +=
|
2576
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
2577
|
+
if (s = t[o++], s > 1114111)
|
2578
|
+
throw RangeError(s + " is not a valid code point");
|
2579
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
2581
2580
|
}
|
2582
2581
|
return n;
|
2583
2582
|
}
|
2584
|
-
),
|
2583
|
+
), vt = (
|
2585
2584
|
// native
|
2586
2585
|
Gn ? Object.fromEntries : (
|
2587
2586
|
// Ponyfill
|
2588
2587
|
function(t) {
|
2589
2588
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2590
|
-
var
|
2591
|
-
r[
|
2589
|
+
var o = i[n], s = o[0], a = o[1];
|
2590
|
+
r[s] = a;
|
2592
2591
|
}
|
2593
2592
|
return r;
|
2594
2593
|
}
|
2595
2594
|
)
|
2596
|
-
),
|
2595
|
+
), ir = kn ? (
|
2597
2596
|
// Native
|
2598
2597
|
function(t, r) {
|
2599
2598
|
return t.codePointAt(r);
|
@@ -2603,8 +2602,8 @@ var vt = Dn ? (
|
|
2603
2602
|
function(t, r) {
|
2604
2603
|
var n = t.length;
|
2605
2604
|
if (!(r < 0 || r >= n)) {
|
2606
|
-
var i = t.charCodeAt(r),
|
2607
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
2605
|
+
var i = t.charCodeAt(r), o;
|
2606
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2608
2607
|
}
|
2609
2608
|
}
|
2610
2609
|
), zn = $n ? (
|
@@ -2628,27 +2627,27 @@ var vt = Dn ? (
|
|
2628
2627
|
return t.replace(Rn, "");
|
2629
2628
|
}
|
2630
2629
|
);
|
2631
|
-
function
|
2630
|
+
function or(e, t) {
|
2632
2631
|
return new RegExp(e, t);
|
2633
2632
|
}
|
2634
|
-
var
|
2635
|
-
if (
|
2636
|
-
var
|
2637
|
-
|
2633
|
+
var Je;
|
2634
|
+
if (Qe) {
|
2635
|
+
var _t = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2636
|
+
Je = function(t, r) {
|
2638
2637
|
var n;
|
2639
|
-
|
2640
|
-
var i =
|
2638
|
+
_t.lastIndex = r;
|
2639
|
+
var i = _t.exec(t);
|
2641
2640
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2642
2641
|
};
|
2643
2642
|
} else
|
2644
|
-
|
2643
|
+
Je = function(t, r) {
|
2645
2644
|
for (var n = []; ; ) {
|
2646
|
-
var i =
|
2647
|
-
if (i === void 0 ||
|
2645
|
+
var i = ir(t, r);
|
2646
|
+
if (i === void 0 || sr(i) || Yn(i))
|
2648
2647
|
break;
|
2649
2648
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2650
2649
|
}
|
2651
|
-
return
|
2650
|
+
return qe.apply(void 0, n);
|
2652
2651
|
};
|
2653
2652
|
var Qn = (
|
2654
2653
|
/** @class */
|
@@ -2662,35 +2661,35 @@ var Qn = (
|
|
2662
2661
|
return this.parseMessage(0, "", !1);
|
2663
2662
|
}, e.prototype.parseMessage = function(t, r, n) {
|
2664
2663
|
for (var i = []; !this.isEOF(); ) {
|
2665
|
-
var
|
2666
|
-
if (
|
2667
|
-
var
|
2668
|
-
if (
|
2669
|
-
return
|
2670
|
-
i.push(
|
2664
|
+
var o = this.char();
|
2665
|
+
if (o === 123) {
|
2666
|
+
var s = this.parseArgument(t, n);
|
2667
|
+
if (s.err)
|
2668
|
+
return s;
|
2669
|
+
i.push(s.val);
|
2671
2670
|
} else {
|
2672
|
-
if (
|
2671
|
+
if (o === 125 && t > 0)
|
2673
2672
|
break;
|
2674
|
-
if (
|
2673
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2675
2674
|
var a = this.clonePosition();
|
2676
2675
|
this.bump(), i.push({
|
2677
2676
|
type: S.pound,
|
2678
2677
|
location: v(a, this.clonePosition())
|
2679
2678
|
});
|
2680
|
-
} else if (
|
2679
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2681
2680
|
if (n)
|
2682
2681
|
break;
|
2683
2682
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2684
|
-
} else if (
|
2685
|
-
var
|
2686
|
-
if (
|
2687
|
-
return
|
2688
|
-
i.push(
|
2683
|
+
} else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
2684
|
+
var s = this.parseTag(t, r);
|
2685
|
+
if (s.err)
|
2686
|
+
return s;
|
2687
|
+
i.push(s.val);
|
2689
2688
|
} else {
|
2690
|
-
var
|
2691
|
-
if (
|
2692
|
-
return
|
2693
|
-
i.push(
|
2689
|
+
var s = this.parseLiteral(t, r);
|
2690
|
+
if (s.err)
|
2691
|
+
return s;
|
2692
|
+
i.push(s.val);
|
2694
2693
|
}
|
2695
2694
|
}
|
2696
2695
|
}
|
@@ -2709,19 +2708,19 @@ var Qn = (
|
|
2709
2708
|
err: null
|
2710
2709
|
};
|
2711
2710
|
if (this.bumpIf(">")) {
|
2712
|
-
var
|
2713
|
-
if (
|
2714
|
-
return
|
2715
|
-
var
|
2711
|
+
var o = this.parseMessage(t + 1, r, !0);
|
2712
|
+
if (o.err)
|
2713
|
+
return o;
|
2714
|
+
var s = o.val, a = this.clonePosition();
|
2716
2715
|
if (this.bumpIf("</")) {
|
2717
|
-
if (this.isEOF() || !
|
2716
|
+
if (this.isEOF() || !Ye(this.char()))
|
2718
2717
|
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2719
2718
|
var h = this.clonePosition(), l = this.parseTagName();
|
2720
2719
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2721
2720
|
val: {
|
2722
2721
|
type: S.tag,
|
2723
2722
|
value: i,
|
2724
|
-
children:
|
2723
|
+
children: s,
|
2725
2724
|
location: v(n, this.clonePosition())
|
2726
2725
|
},
|
2727
2726
|
err: null
|
@@ -2737,16 +2736,16 @@ var Qn = (
|
|
2737
2736
|
return this.message.slice(t, this.offset());
|
2738
2737
|
}, e.prototype.parseLiteral = function(t, r) {
|
2739
2738
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
2740
|
-
var
|
2741
|
-
if (s) {
|
2742
|
-
i += s;
|
2743
|
-
continue;
|
2744
|
-
}
|
2745
|
-
var o = this.tryParseUnquoted(t, r);
|
2739
|
+
var o = this.tryParseQuote(r);
|
2746
2740
|
if (o) {
|
2747
2741
|
i += o;
|
2748
2742
|
continue;
|
2749
2743
|
}
|
2744
|
+
var s = this.tryParseUnquoted(t, r);
|
2745
|
+
if (s) {
|
2746
|
+
i += s;
|
2747
|
+
continue;
|
2748
|
+
}
|
2750
2749
|
var a = this.tryParseLeftAngleBracket();
|
2751
2750
|
if (a) {
|
2752
2751
|
i += a;
|
@@ -2795,12 +2794,12 @@ var Qn = (
|
|
2795
2794
|
r.push(n);
|
2796
2795
|
this.bump();
|
2797
2796
|
}
|
2798
|
-
return
|
2797
|
+
return qe.apply(void 0, r);
|
2799
2798
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2800
2799
|
if (this.isEOF())
|
2801
2800
|
return null;
|
2802
2801
|
var n = this.char();
|
2803
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2802
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
2804
2803
|
}, e.prototype.parseArgument = function(t, r) {
|
2805
2804
|
var n = this.clonePosition();
|
2806
2805
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2829,15 +2828,15 @@ var Qn = (
|
|
2829
2828
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2830
2829
|
}
|
2831
2830
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2832
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2831
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
2833
2832
|
this.bumpTo(i);
|
2834
|
-
var
|
2835
|
-
return { value: n, location:
|
2833
|
+
var o = this.clonePosition(), s = v(t, o);
|
2834
|
+
return { value: n, location: s };
|
2836
2835
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2837
|
-
var
|
2836
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2838
2837
|
switch (a) {
|
2839
2838
|
case "":
|
2840
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, v(
|
2839
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, h));
|
2841
2840
|
case "number":
|
2842
2841
|
case "date":
|
2843
2842
|
case "time": {
|
@@ -2851,14 +2850,14 @@ var Qn = (
|
|
2851
2850
|
var f = Zn(m.val);
|
2852
2851
|
if (f.length === 0)
|
2853
2852
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2854
|
-
var
|
2855
|
-
l = { style: f, styleLocation:
|
2853
|
+
var p = v(u, this.clonePosition());
|
2854
|
+
l = { style: f, styleLocation: p };
|
2856
2855
|
}
|
2857
|
-
var
|
2858
|
-
if (
|
2859
|
-
return
|
2856
|
+
var g = this.tryParseArgumentClose(i);
|
2857
|
+
if (g.err)
|
2858
|
+
return g;
|
2860
2859
|
var b = v(i, this.clonePosition());
|
2861
|
-
if (l &&
|
2860
|
+
if (l && yt(l?.style, "::", 0)) {
|
2862
2861
|
var d = zn(l.style.slice(2));
|
2863
2862
|
if (a === "number") {
|
2864
2863
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
@@ -2869,16 +2868,16 @@ var Qn = (
|
|
2869
2868
|
} else {
|
2870
2869
|
if (d.length === 0)
|
2871
2870
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2872
|
-
var
|
2873
|
-
this.locale && (
|
2871
|
+
var C = d;
|
2872
|
+
this.locale && (C = On(d, this.locale));
|
2874
2873
|
var f = {
|
2875
|
-
type:
|
2876
|
-
pattern:
|
2874
|
+
type: oe.dateTime,
|
2875
|
+
pattern: C,
|
2877
2876
|
location: l.styleLocation,
|
2878
|
-
parsedOptions: this.shouldParseSkeletons ? Tn(
|
2879
|
-
},
|
2877
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(C) : {}
|
2878
|
+
}, _ = a === "date" ? S.date : S.time;
|
2880
2879
|
return {
|
2881
|
-
val: { type:
|
2880
|
+
val: { type: _, value: n, location: b, style: f },
|
2882
2881
|
err: null
|
2883
2882
|
};
|
2884
2883
|
}
|
@@ -2888,7 +2887,7 @@ var Qn = (
|
|
2888
2887
|
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
2889
2888
|
value: n,
|
2890
2889
|
location: b,
|
2891
|
-
style: (
|
2890
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
2892
2891
|
},
|
2893
2892
|
err: null
|
2894
2893
|
};
|
@@ -2896,11 +2895,11 @@ var Qn = (
|
|
2896
2895
|
case "plural":
|
2897
2896
|
case "selectordinal":
|
2898
2897
|
case "select": {
|
2899
|
-
var
|
2898
|
+
var w = this.clonePosition();
|
2900
2899
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2901
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(
|
2900
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w, Be({}, w)));
|
2902
2901
|
this.bumpSpace();
|
2903
|
-
var R = this.parseIdentifierIfPossible(),
|
2902
|
+
var R = this.parseIdentifierIfPossible(), O = 0;
|
2904
2903
|
if (a !== "select" && R.value === "offset") {
|
2905
2904
|
if (!this.bumpIf(":"))
|
2906
2905
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
@@ -2908,37 +2907,37 @@ var Qn = (
|
|
2908
2907
|
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2909
2908
|
if (m.err)
|
2910
2909
|
return m;
|
2911
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(),
|
2910
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = m.val;
|
2912
2911
|
}
|
2913
2912
|
var k = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
2914
2913
|
if (k.err)
|
2915
2914
|
return k;
|
2916
|
-
var
|
2917
|
-
if (
|
2918
|
-
return
|
2919
|
-
var
|
2915
|
+
var g = this.tryParseArgumentClose(i);
|
2916
|
+
if (g.err)
|
2917
|
+
return g;
|
2918
|
+
var x = v(i, this.clonePosition());
|
2920
2919
|
return a === "select" ? {
|
2921
2920
|
val: {
|
2922
2921
|
type: S.select,
|
2923
2922
|
value: n,
|
2924
|
-
options:
|
2925
|
-
location:
|
2923
|
+
options: vt(k.val),
|
2924
|
+
location: x
|
2926
2925
|
},
|
2927
2926
|
err: null
|
2928
2927
|
} : {
|
2929
2928
|
val: {
|
2930
2929
|
type: S.plural,
|
2931
2930
|
value: n,
|
2932
|
-
options:
|
2933
|
-
offset:
|
2931
|
+
options: vt(k.val),
|
2932
|
+
offset: O,
|
2934
2933
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2935
|
-
location:
|
2934
|
+
location: x
|
2936
2935
|
},
|
2937
2936
|
err: null
|
2938
2937
|
};
|
2939
2938
|
}
|
2940
2939
|
default:
|
2941
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, v(
|
2940
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(s, h));
|
2942
2941
|
}
|
2943
2942
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2944
2943
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2986,15 +2985,15 @@ var Qn = (
|
|
2986
2985
|
}
|
2987
2986
|
return {
|
2988
2987
|
val: {
|
2989
|
-
type:
|
2988
|
+
type: oe.number,
|
2990
2989
|
tokens: n,
|
2991
2990
|
location: r,
|
2992
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2991
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
|
2993
2992
|
},
|
2994
2993
|
err: null
|
2995
2994
|
};
|
2996
2995
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2997
|
-
for (var
|
2996
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
2998
2997
|
if (l.length === 0) {
|
2999
2998
|
var m = this.clonePosition();
|
3000
2999
|
if (r !== "select" && this.bumpIf("=")) {
|
@@ -3007,37 +3006,37 @@ var Qn = (
|
|
3007
3006
|
}
|
3008
3007
|
if (h.has(l))
|
3009
3008
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3010
|
-
l === "other" && (
|
3011
|
-
var
|
3009
|
+
l === "other" && (s = !0), this.bumpSpace();
|
3010
|
+
var p = this.clonePosition();
|
3012
3011
|
if (!this.bumpIf("{"))
|
3013
3012
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
3014
|
-
var
|
3015
|
-
if (
|
3016
|
-
return
|
3017
|
-
var b = this.tryParseArgumentClose(
|
3013
|
+
var g = this.parseMessage(t + 1, r, n);
|
3014
|
+
if (g.err)
|
3015
|
+
return g;
|
3016
|
+
var b = this.tryParseArgumentClose(p);
|
3018
3017
|
if (b.err)
|
3019
3018
|
return b;
|
3020
3019
|
a.push([
|
3021
3020
|
l,
|
3022
3021
|
{
|
3023
|
-
value:
|
3024
|
-
location: v(
|
3022
|
+
value: g.val,
|
3023
|
+
location: v(p, this.clonePosition())
|
3025
3024
|
}
|
3026
|
-
]), h.add(l), this.bumpSpace(),
|
3025
|
+
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
3027
3026
|
}
|
3028
|
-
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 && !
|
3027
|
+
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 };
|
3029
3028
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3030
3029
|
var n = 1, i = this.clonePosition();
|
3031
3030
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
3032
|
-
for (var
|
3031
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
3033
3032
|
var a = this.char();
|
3034
3033
|
if (a >= 48 && a <= 57)
|
3035
|
-
|
3034
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
3036
3035
|
else
|
3037
3036
|
break;
|
3038
3037
|
}
|
3039
3038
|
var h = v(i, this.clonePosition());
|
3040
|
-
return
|
3039
|
+
return o ? (s *= n, Xn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3041
3040
|
}, e.prototype.offset = function() {
|
3042
3041
|
return this.position.offset;
|
3043
3042
|
}, e.prototype.isEOF = function() {
|
@@ -3052,7 +3051,7 @@ var Qn = (
|
|
3052
3051
|
var t = this.position.offset;
|
3053
3052
|
if (t >= this.message.length)
|
3054
3053
|
throw Error("out of bound");
|
3055
|
-
var r =
|
3054
|
+
var r = ir(this.message, t);
|
3056
3055
|
if (r === void 0)
|
3057
3056
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3058
3057
|
return r;
|
@@ -3071,7 +3070,7 @@ var Qn = (
|
|
3071
3070
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
3072
3071
|
}
|
3073
3072
|
}, e.prototype.bumpIf = function(t) {
|
3074
|
-
if (
|
3073
|
+
if (yt(this.message, t, this.offset())) {
|
3075
3074
|
for (var r = 0; r < t.length; r++)
|
3076
3075
|
this.bump();
|
3077
3076
|
return !0;
|
@@ -3093,7 +3092,7 @@ var Qn = (
|
|
3093
3092
|
break;
|
3094
3093
|
}
|
3095
3094
|
}, e.prototype.bumpSpace = function() {
|
3096
|
-
for (; !this.isEOF() &&
|
3095
|
+
for (; !this.isEOF() && sr(this.char()); )
|
3097
3096
|
this.bump();
|
3098
3097
|
}, e.prototype.peek = function() {
|
3099
3098
|
if (this.isEOF())
|
@@ -3103,204 +3102,204 @@ var Qn = (
|
|
3103
3102
|
}, e;
|
3104
3103
|
}()
|
3105
3104
|
);
|
3106
|
-
function
|
3105
|
+
function Ye(e) {
|
3107
3106
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3108
3107
|
}
|
3109
3108
|
function qn(e) {
|
3110
|
-
return
|
3109
|
+
return Ye(e) || e === 47;
|
3111
3110
|
}
|
3112
3111
|
function Jn(e) {
|
3113
3112
|
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;
|
3114
3113
|
}
|
3115
|
-
function
|
3114
|
+
function sr(e) {
|
3116
3115
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3117
3116
|
}
|
3118
3117
|
function Yn(e) {
|
3119
3118
|
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;
|
3120
3119
|
}
|
3121
|
-
function
|
3120
|
+
function Ke(e) {
|
3122
3121
|
e.forEach(function(t) {
|
3123
|
-
if (delete t.location,
|
3122
|
+
if (delete t.location, qt(t) || Jt(t))
|
3124
3123
|
for (var r in t.options)
|
3125
|
-
delete t.options[r].location,
|
3124
|
+
delete t.options[r].location, Ke(t.options[r].value);
|
3126
3125
|
else
|
3127
|
-
|
3126
|
+
zt(t) && Kt(t.style) || (Zt(t) || Qt(t)) && Ze(t.style) ? delete t.style.location : Yt(t) && Ke(t.children);
|
3128
3127
|
});
|
3129
3128
|
}
|
3130
3129
|
function Kn(e, t) {
|
3131
|
-
t === void 0 && (t = {}), t =
|
3130
|
+
t === void 0 && (t = {}), t = Be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3132
3131
|
var r = new Qn(e, t).parse();
|
3133
3132
|
if (r.err) {
|
3134
3133
|
var n = SyntaxError(y[r.err.kind]);
|
3135
3134
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3136
3135
|
}
|
3137
|
-
return t?.captureLocation ||
|
3136
|
+
return t?.captureLocation || Ke(r.val), r.val;
|
3138
3137
|
}
|
3139
|
-
var
|
3138
|
+
var se;
|
3140
3139
|
(function(e) {
|
3141
3140
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3142
|
-
})(
|
3143
|
-
var
|
3141
|
+
})(se || (se = {}));
|
3142
|
+
var Oe = (
|
3144
3143
|
/** @class */
|
3145
3144
|
function(e) {
|
3146
|
-
|
3145
|
+
Pe(t, e);
|
3147
3146
|
function t(r, n, i) {
|
3148
|
-
var
|
3149
|
-
return
|
3147
|
+
var o = e.call(this, r) || this;
|
3148
|
+
return o.code = n, o.originalMessage = i, o;
|
3150
3149
|
}
|
3151
3150
|
return t.prototype.toString = function() {
|
3152
3151
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3153
3152
|
}, t;
|
3154
3153
|
}(Error)
|
3155
|
-
),
|
3154
|
+
), Et = (
|
3156
3155
|
/** @class */
|
3157
3156
|
function(e) {
|
3158
|
-
|
3159
|
-
function t(r, n, i,
|
3160
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3157
|
+
Pe(t, e);
|
3158
|
+
function t(r, n, i, o) {
|
3159
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, o) || this;
|
3161
3160
|
}
|
3162
3161
|
return t;
|
3163
|
-
}(
|
3162
|
+
}(Oe)
|
3164
3163
|
), ei = (
|
3165
3164
|
/** @class */
|
3166
3165
|
function(e) {
|
3167
|
-
|
3166
|
+
Pe(t, e);
|
3168
3167
|
function t(r, n, i) {
|
3169
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3168
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
|
3170
3169
|
}
|
3171
3170
|
return t;
|
3172
|
-
}(
|
3171
|
+
}(Oe)
|
3173
3172
|
), ti = (
|
3174
3173
|
/** @class */
|
3175
3174
|
function(e) {
|
3176
|
-
|
3175
|
+
Pe(t, e);
|
3177
3176
|
function t(r, n) {
|
3178
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3177
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
|
3179
3178
|
}
|
3180
3179
|
return t;
|
3181
|
-
}(
|
3182
|
-
),
|
3180
|
+
}(Oe)
|
3181
|
+
), L;
|
3183
3182
|
(function(e) {
|
3184
3183
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3185
|
-
})(
|
3184
|
+
})(L || (L = {}));
|
3186
3185
|
function ri(e) {
|
3187
3186
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3188
3187
|
var n = t[t.length - 1];
|
3189
|
-
return !n || n.type !==
|
3188
|
+
return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
|
3190
3189
|
}, []);
|
3191
3190
|
}
|
3192
3191
|
function ni(e) {
|
3193
3192
|
return typeof e == "function";
|
3194
3193
|
}
|
3195
|
-
function Se(e, t, r, n, i,
|
3196
|
-
if (e.length === 1 &&
|
3194
|
+
function Se(e, t, r, n, i, o, s) {
|
3195
|
+
if (e.length === 1 && dt(e[0]))
|
3197
3196
|
return [
|
3198
3197
|
{
|
3199
|
-
type:
|
3198
|
+
type: L.literal,
|
3200
3199
|
value: e[0].value
|
3201
3200
|
}
|
3202
3201
|
];
|
3203
3202
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3204
3203
|
var u = l[h];
|
3205
|
-
if (
|
3204
|
+
if (dt(u)) {
|
3206
3205
|
a.push({
|
3207
|
-
type:
|
3206
|
+
type: L.literal,
|
3208
3207
|
value: u.value
|
3209
3208
|
});
|
3210
3209
|
continue;
|
3211
3210
|
}
|
3212
3211
|
if (Hn(u)) {
|
3213
|
-
typeof
|
3214
|
-
type:
|
3215
|
-
value: r.getNumberFormat(t).format(
|
3212
|
+
typeof o == "number" && a.push({
|
3213
|
+
type: L.literal,
|
3214
|
+
value: r.getNumberFormat(t).format(o)
|
3216
3215
|
});
|
3217
3216
|
continue;
|
3218
3217
|
}
|
3219
3218
|
var m = u.value;
|
3220
3219
|
if (!(i && m in i))
|
3221
|
-
throw new ti(m,
|
3220
|
+
throw new ti(m, s);
|
3222
3221
|
var f = i[m];
|
3223
3222
|
if (wn(u)) {
|
3224
3223
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3225
|
-
type: typeof f == "string" ?
|
3224
|
+
type: typeof f == "string" ? L.literal : L.object,
|
3226
3225
|
value: f
|
3227
3226
|
});
|
3228
3227
|
continue;
|
3229
3228
|
}
|
3230
|
-
if (
|
3231
|
-
var
|
3229
|
+
if (Zt(u)) {
|
3230
|
+
var p = typeof u.style == "string" ? n.date[u.style] : Ze(u.style) ? u.style.parsedOptions : void 0;
|
3232
3231
|
a.push({
|
3233
|
-
type:
|
3234
|
-
value: r.getDateTimeFormat(t,
|
3232
|
+
type: L.literal,
|
3233
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
3235
3234
|
});
|
3236
3235
|
continue;
|
3237
3236
|
}
|
3238
|
-
if (
|
3239
|
-
var
|
3237
|
+
if (Qt(u)) {
|
3238
|
+
var p = typeof u.style == "string" ? n.time[u.style] : Ze(u.style) ? u.style.parsedOptions : n.time.medium;
|
3240
3239
|
a.push({
|
3241
|
-
type:
|
3242
|
-
value: r.getDateTimeFormat(t,
|
3240
|
+
type: L.literal,
|
3241
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
3243
3242
|
});
|
3244
3243
|
continue;
|
3245
3244
|
}
|
3246
|
-
if (
|
3247
|
-
var
|
3248
|
-
|
3249
|
-
type:
|
3250
|
-
value: r.getNumberFormat(t,
|
3245
|
+
if (zt(u)) {
|
3246
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Kt(u.style) ? u.style.parsedOptions : void 0;
|
3247
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3248
|
+
type: L.literal,
|
3249
|
+
value: r.getNumberFormat(t, p).format(f)
|
3251
3250
|
});
|
3252
3251
|
continue;
|
3253
3252
|
}
|
3254
|
-
if (
|
3255
|
-
var
|
3253
|
+
if (Yt(u)) {
|
3254
|
+
var g = u.children, b = u.value, d = i[b];
|
3256
3255
|
if (!ni(d))
|
3257
|
-
throw new ei(b, "function",
|
3258
|
-
var
|
3259
|
-
return
|
3256
|
+
throw new ei(b, "function", s);
|
3257
|
+
var C = Se(g, t, r, n, i, o), _ = d(C.map(function(O) {
|
3258
|
+
return O.value;
|
3260
3259
|
}));
|
3261
|
-
Array.isArray(
|
3260
|
+
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(O) {
|
3262
3261
|
return {
|
3263
|
-
type: typeof
|
3264
|
-
value:
|
3262
|
+
type: typeof O == "string" ? L.literal : L.object,
|
3263
|
+
value: O
|
3265
3264
|
};
|
3266
3265
|
}));
|
3267
3266
|
}
|
3268
|
-
if (
|
3269
|
-
var
|
3270
|
-
if (!
|
3271
|
-
throw new
|
3272
|
-
a.push.apply(a, Se(
|
3267
|
+
if (qt(u)) {
|
3268
|
+
var w = u.options[f] || u.options.other;
|
3269
|
+
if (!w)
|
3270
|
+
throw new Et(u.value, f, Object.keys(u.options), s);
|
3271
|
+
a.push.apply(a, Se(w.value, t, r, n, i));
|
3273
3272
|
continue;
|
3274
3273
|
}
|
3275
|
-
if (
|
3276
|
-
var
|
3277
|
-
if (!
|
3274
|
+
if (Jt(u)) {
|
3275
|
+
var w = u.options["=".concat(f)];
|
3276
|
+
if (!w) {
|
3278
3277
|
if (!Intl.PluralRules)
|
3279
|
-
throw new
|
3278
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
3280
3279
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3281
|
-
`,
|
3280
|
+
`, se.MISSING_INTL_API, s);
|
3282
3281
|
var R = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3283
|
-
|
3282
|
+
w = u.options[R] || u.options.other;
|
3284
3283
|
}
|
3285
|
-
if (!
|
3286
|
-
throw new
|
3287
|
-
a.push.apply(a, Se(
|
3284
|
+
if (!w)
|
3285
|
+
throw new Et(u.value, f, Object.keys(u.options), s);
|
3286
|
+
a.push.apply(a, Se(w.value, t, r, n, i, f - (u.offset || 0)));
|
3288
3287
|
continue;
|
3289
3288
|
}
|
3290
3289
|
}
|
3291
3290
|
return ri(a);
|
3292
3291
|
}
|
3293
3292
|
function ii(e, t) {
|
3294
|
-
return t ?
|
3295
|
-
return r[n] =
|
3293
|
+
return t ? $($($({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3294
|
+
return r[n] = $($({}, e[n]), t[n] || {}), r;
|
3296
3295
|
}, {})) : e;
|
3297
3296
|
}
|
3298
3297
|
function oi(e, t) {
|
3299
3298
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3300
3299
|
return r[n] = ii(e[n], t[n]), r;
|
3301
|
-
},
|
3300
|
+
}, $({}, e)) : e;
|
3302
3301
|
}
|
3303
|
-
function
|
3302
|
+
function je(e) {
|
3304
3303
|
return {
|
3305
3304
|
create: function() {
|
3306
3305
|
return {
|
@@ -3320,29 +3319,29 @@ function si(e) {
|
|
3320
3319
|
dateTime: {},
|
3321
3320
|
pluralRules: {}
|
3322
3321
|
}), {
|
3323
|
-
getNumberFormat:
|
3322
|
+
getNumberFormat: Ge(function() {
|
3324
3323
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3325
3324
|
r[n] = arguments[n];
|
3326
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3325
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ue([void 0], r, !1)))();
|
3327
3326
|
}, {
|
3328
|
-
cache:
|
3329
|
-
strategy:
|
3327
|
+
cache: je(e.number),
|
3328
|
+
strategy: ke.variadic
|
3330
3329
|
}),
|
3331
|
-
getDateTimeFormat:
|
3330
|
+
getDateTimeFormat: Ge(function() {
|
3332
3331
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3333
3332
|
r[n] = arguments[n];
|
3334
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3333
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ue([void 0], r, !1)))();
|
3335
3334
|
}, {
|
3336
|
-
cache:
|
3337
|
-
strategy:
|
3335
|
+
cache: je(e.dateTime),
|
3336
|
+
strategy: ke.variadic
|
3338
3337
|
}),
|
3339
|
-
getPluralRules:
|
3338
|
+
getPluralRules: Ge(function() {
|
3340
3339
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3341
3340
|
r[n] = arguments[n];
|
3342
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3341
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ue([void 0], r, !1)))();
|
3343
3342
|
}, {
|
3344
|
-
cache:
|
3345
|
-
strategy:
|
3343
|
+
cache: je(e.pluralRules),
|
3344
|
+
strategy: ke.variadic
|
3346
3345
|
})
|
3347
3346
|
};
|
3348
3347
|
}
|
@@ -3351,35 +3350,35 @@ var ai = (
|
|
3351
3350
|
function() {
|
3352
3351
|
function e(t, r, n, i) {
|
3353
3352
|
r === void 0 && (r = e.defaultLocale);
|
3354
|
-
var
|
3353
|
+
var o = this;
|
3355
3354
|
if (this.formatterCache = {
|
3356
3355
|
number: {},
|
3357
3356
|
dateTime: {},
|
3358
3357
|
pluralRules: {}
|
3359
3358
|
}, this.format = function(h) {
|
3360
|
-
var l =
|
3359
|
+
var l = o.formatToParts(h);
|
3361
3360
|
if (l.length === 1)
|
3362
3361
|
return l[0].value;
|
3363
3362
|
var u = l.reduce(function(m, f) {
|
3364
|
-
return !m.length || f.type !==
|
3363
|
+
return !m.length || f.type !== L.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
3365
3364
|
}, []);
|
3366
3365
|
return u.length <= 1 ? u[0] || "" : u;
|
3367
3366
|
}, this.formatToParts = function(h) {
|
3368
|
-
return Se(
|
3367
|
+
return Se(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3369
3368
|
}, this.resolvedOptions = function() {
|
3370
3369
|
var h;
|
3371
3370
|
return {
|
3372
|
-
locale: ((h =
|
3371
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
3373
3372
|
};
|
3374
3373
|
}, this.getAst = function() {
|
3375
|
-
return
|
3374
|
+
return o.ast;
|
3376
3375
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3377
3376
|
if (this.message = t, !e.__parse)
|
3378
3377
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3379
|
-
var
|
3380
|
-
|
3381
|
-
var a =
|
3382
|
-
this.ast = e.__parse(t,
|
3378
|
+
var s = i || {};
|
3379
|
+
s.formatters;
|
3380
|
+
var a = gn(s, ["formatters"]);
|
3381
|
+
this.ast = e.__parse(t, $($({}, a), { locale: this.resolvedLocale }));
|
3383
3382
|
} else
|
3384
3383
|
this.ast = t;
|
3385
3384
|
if (!Array.isArray(this.ast))
|
@@ -3468,9 +3467,9 @@ function li(e, t) {
|
|
3468
3467
|
for (let i = 0; i < r.length; i++)
|
3469
3468
|
if (typeof n == "object") {
|
3470
3469
|
if (i > 0) {
|
3471
|
-
const
|
3472
|
-
if (
|
3473
|
-
n = n[
|
3470
|
+
const o = r.slice(i, r.length).join(".");
|
3471
|
+
if (o in n) {
|
3472
|
+
n = n[o];
|
3474
3473
|
break;
|
3475
3474
|
}
|
3476
3475
|
}
|
@@ -3479,28 +3478,28 @@ function li(e, t) {
|
|
3479
3478
|
n = void 0;
|
3480
3479
|
return n;
|
3481
3480
|
}
|
3482
|
-
const
|
3481
|
+
const W = {}, ui = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), ar = (e, t) => {
|
3483
3482
|
if (t == null)
|
3484
3483
|
return;
|
3485
|
-
if (t in
|
3486
|
-
return
|
3487
|
-
const r =
|
3484
|
+
if (t in W && e in W[t])
|
3485
|
+
return W[t][e];
|
3486
|
+
const r = Le(t);
|
3488
3487
|
for (let n = 0; n < r.length; n++) {
|
3489
|
-
const i = r[n],
|
3490
|
-
if (
|
3491
|
-
return ui(e, t,
|
3488
|
+
const i = r[n], o = ci(i, e);
|
3489
|
+
if (o)
|
3490
|
+
return ui(e, t, o);
|
3492
3491
|
}
|
3493
3492
|
};
|
3494
|
-
let
|
3495
|
-
const
|
3493
|
+
let it;
|
3494
|
+
const ue = Ne({});
|
3496
3495
|
function hi(e) {
|
3497
|
-
return
|
3496
|
+
return it[e] || null;
|
3498
3497
|
}
|
3499
|
-
function
|
3500
|
-
return e in
|
3498
|
+
function lr(e) {
|
3499
|
+
return e in it;
|
3501
3500
|
}
|
3502
3501
|
function ci(e, t) {
|
3503
|
-
if (!
|
3502
|
+
if (!lr(e))
|
3504
3503
|
return null;
|
3505
3504
|
const r = hi(e);
|
3506
3505
|
return li(r, t);
|
@@ -3508,63 +3507,63 @@ function ci(e, t) {
|
|
3508
3507
|
function fi(e) {
|
3509
3508
|
if (e == null)
|
3510
3509
|
return;
|
3511
|
-
const t =
|
3510
|
+
const t = Le(e);
|
3512
3511
|
for (let r = 0; r < t.length; r++) {
|
3513
3512
|
const n = t[r];
|
3514
|
-
if (
|
3513
|
+
if (lr(n))
|
3515
3514
|
return n;
|
3516
3515
|
}
|
3517
3516
|
}
|
3518
|
-
function
|
3519
|
-
delete
|
3517
|
+
function ur(e, ...t) {
|
3518
|
+
delete W[e], ue.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
3520
3519
|
}
|
3521
|
-
|
3522
|
-
[
|
3520
|
+
le(
|
3521
|
+
[ue],
|
3523
3522
|
([e]) => Object.keys(e)
|
3524
3523
|
);
|
3525
|
-
|
3524
|
+
ue.subscribe((e) => it = e);
|
3526
3525
|
const Te = {};
|
3527
3526
|
function mi(e, t) {
|
3528
3527
|
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
3529
3528
|
}
|
3530
|
-
function
|
3529
|
+
function hr(e) {
|
3531
3530
|
return Te[e];
|
3532
3531
|
}
|
3533
3532
|
function di(e) {
|
3534
|
-
return
|
3535
|
-
const r =
|
3533
|
+
return Le(e).map((t) => {
|
3534
|
+
const r = hr(t);
|
3536
3535
|
return [t, r ? [...r] : []];
|
3537
3536
|
}).filter(([, t]) => t.length > 0);
|
3538
3537
|
}
|
3539
|
-
function
|
3540
|
-
return e == null ? !1 :
|
3538
|
+
function et(e) {
|
3539
|
+
return e == null ? !1 : Le(e).some(
|
3541
3540
|
(t) => {
|
3542
3541
|
var r;
|
3543
|
-
return (r =
|
3542
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
3544
3543
|
}
|
3545
3544
|
);
|
3546
3545
|
}
|
3547
|
-
function
|
3546
|
+
function pi(e, t) {
|
3548
3547
|
return Promise.all(
|
3549
3548
|
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
3550
|
-
).then((n) =>
|
3549
|
+
).then((n) => ur(e, ...n));
|
3551
3550
|
}
|
3552
|
-
const
|
3553
|
-
function
|
3554
|
-
if (!
|
3555
|
-
return e in
|
3551
|
+
const fe = {};
|
3552
|
+
function cr(e) {
|
3553
|
+
if (!et(e))
|
3554
|
+
return e in fe ? fe[e] : Promise.resolve();
|
3556
3555
|
const t = di(e);
|
3557
|
-
return
|
3556
|
+
return fe[e] = Promise.all(
|
3558
3557
|
t.map(
|
3559
|
-
([r, n]) =>
|
3558
|
+
([r, n]) => pi(r, n)
|
3560
3559
|
)
|
3561
3560
|
).then(() => {
|
3562
|
-
if (
|
3563
|
-
return
|
3564
|
-
delete
|
3565
|
-
}),
|
3561
|
+
if (et(e))
|
3562
|
+
return cr(e);
|
3563
|
+
delete fe[e];
|
3564
|
+
}), fe[e];
|
3566
3565
|
}
|
3567
|
-
const
|
3566
|
+
const gi = {
|
3568
3567
|
number: {
|
3569
3568
|
scientific: { notation: "scientific" },
|
3570
3569
|
engineering: { notation: "engineering" },
|
@@ -3596,147 +3595,147 @@ const pi = {
|
|
3596
3595
|
}, bi = {
|
3597
3596
|
fallbackLocale: null,
|
3598
3597
|
loadingDelay: 200,
|
3599
|
-
formats:
|
3598
|
+
formats: gi,
|
3600
3599
|
warnOnMissingMessages: !0,
|
3601
3600
|
handleMissingMessage: void 0,
|
3602
3601
|
ignoreTag: !0
|
3603
3602
|
}, yi = bi;
|
3604
|
-
function
|
3603
|
+
function ae() {
|
3605
3604
|
return yi;
|
3606
3605
|
}
|
3607
|
-
const
|
3608
|
-
var vi = Object.defineProperty, _i = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors,
|
3606
|
+
const Ve = Ne(!1);
|
3607
|
+
var vi = Object.defineProperty, _i = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
|
3609
3608
|
for (var r in t || (t = {}))
|
3610
|
-
xi.call(t, r) &&
|
3611
|
-
if (
|
3612
|
-
for (var r of
|
3613
|
-
Ci.call(t, r) &&
|
3609
|
+
xi.call(t, r) && Ct(e, r, t[r]);
|
3610
|
+
if (xt)
|
3611
|
+
for (var r of xt(t))
|
3612
|
+
Ci.call(t, r) && Ct(e, r, t[r]);
|
3614
3613
|
return e;
|
3615
3614
|
}, Hi = (e, t) => _i(e, Ei(t));
|
3616
|
-
let
|
3617
|
-
const
|
3618
|
-
function
|
3615
|
+
let tt;
|
3616
|
+
const Ie = Ne(null);
|
3617
|
+
function wt(e) {
|
3619
3618
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3620
3619
|
}
|
3621
|
-
function
|
3622
|
-
const r =
|
3623
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3620
|
+
function Le(e, t = ae().fallbackLocale) {
|
3621
|
+
const r = wt(e);
|
3622
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
3624
3623
|
}
|
3625
|
-
function
|
3626
|
-
return
|
3624
|
+
function J() {
|
3625
|
+
return tt ?? void 0;
|
3627
3626
|
}
|
3628
|
-
|
3629
|
-
|
3627
|
+
Ie.subscribe((e) => {
|
3628
|
+
tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3630
3629
|
});
|
3631
3630
|
const Si = (e) => {
|
3632
|
-
if (e && fi(e) &&
|
3633
|
-
const { loadingDelay: t } =
|
3631
|
+
if (e && fi(e) && et(e)) {
|
3632
|
+
const { loadingDelay: t } = ae();
|
3634
3633
|
let r;
|
3635
|
-
return typeof window < "u" &&
|
3636
|
-
() =>
|
3634
|
+
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
3635
|
+
() => Ve.set(!0),
|
3637
3636
|
t
|
3638
|
-
) :
|
3639
|
-
|
3637
|
+
) : Ve.set(!0), cr(e).then(() => {
|
3638
|
+
Ie.set(e);
|
3640
3639
|
}).finally(() => {
|
3641
|
-
clearTimeout(r),
|
3640
|
+
clearTimeout(r), Ve.set(!1);
|
3642
3641
|
});
|
3643
3642
|
}
|
3644
|
-
return
|
3645
|
-
},
|
3643
|
+
return Ie.set(e);
|
3644
|
+
}, z = Hi(wi({}, Ie), {
|
3646
3645
|
set: Si
|
3647
|
-
}),
|
3646
|
+
}), Fe = (e) => {
|
3648
3647
|
const t = /* @__PURE__ */ Object.create(null);
|
3649
3648
|
return (n) => {
|
3650
3649
|
const i = JSON.stringify(n);
|
3651
3650
|
return i in t ? t[i] : t[i] = e(n);
|
3652
3651
|
};
|
3653
3652
|
};
|
3654
|
-
var Ti = Object.defineProperty,
|
3653
|
+
var Ti = Object.defineProperty, Me = Object.getOwnPropertySymbols, fr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
3655
3654
|
for (var r in t || (t = {}))
|
3656
|
-
|
3657
|
-
if (
|
3658
|
-
for (var r of
|
3659
|
-
|
3655
|
+
fr.call(t, r) && Ht(e, r, t[r]);
|
3656
|
+
if (Me)
|
3657
|
+
for (var r of Me(t))
|
3658
|
+
mr.call(t, r) && Ht(e, r, t[r]);
|
3660
3659
|
return e;
|
3661
|
-
},
|
3660
|
+
}, he = (e, t) => {
|
3662
3661
|
var r = {};
|
3663
3662
|
for (var n in e)
|
3664
|
-
|
3665
|
-
if (e != null &&
|
3666
|
-
for (var n of
|
3667
|
-
t.indexOf(n) < 0 &&
|
3663
|
+
fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3664
|
+
if (e != null && Me)
|
3665
|
+
for (var n of Me(e))
|
3666
|
+
t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
|
3668
3667
|
return r;
|
3669
3668
|
};
|
3670
|
-
const
|
3671
|
-
const { formats: r } =
|
3669
|
+
const ye = (e, t) => {
|
3670
|
+
const { formats: r } = ae();
|
3672
3671
|
if (e in r && t in r[e])
|
3673
3672
|
return r[e][t];
|
3674
3673
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3675
|
-
}, Ai =
|
3674
|
+
}, Ai = Fe(
|
3676
3675
|
(e) => {
|
3677
|
-
var t = e, { locale: r, format: n } = t, i =
|
3676
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
3678
3677
|
if (r == null)
|
3679
3678
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3680
|
-
return n && (i =
|
3679
|
+
return n && (i = ye("number", n)), new Intl.NumberFormat(r, i);
|
3681
3680
|
}
|
3682
|
-
), Bi =
|
3681
|
+
), Bi = Fe(
|
3683
3682
|
(e) => {
|
3684
|
-
var t = e, { locale: r, format: n } = t, i =
|
3683
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
3685
3684
|
if (r == null)
|
3686
3685
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3687
|
-
return n ? i =
|
3686
|
+
return n ? i = ye("date", n) : Object.keys(i).length === 0 && (i = ye("date", "short")), new Intl.DateTimeFormat(r, i);
|
3688
3687
|
}
|
3689
|
-
), Ii =
|
3688
|
+
), Ii = Fe(
|
3690
3689
|
(e) => {
|
3691
|
-
var t = e, { locale: r, format: n } = t, i =
|
3690
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
3692
3691
|
if (r == null)
|
3693
3692
|
throw new Error(
|
3694
3693
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3695
3694
|
);
|
3696
|
-
return n ? i =
|
3695
|
+
return n ? i = ye("time", n) : Object.keys(i).length === 0 && (i = ye("time", "short")), new Intl.DateTimeFormat(r, i);
|
3697
3696
|
}
|
3698
3697
|
), Mi = (e = {}) => {
|
3699
3698
|
var t = e, {
|
3700
|
-
locale: r =
|
3701
|
-
} = t, n =
|
3699
|
+
locale: r = J()
|
3700
|
+
} = t, n = he(t, [
|
3702
3701
|
"locale"
|
3703
3702
|
]);
|
3704
|
-
return Ai(
|
3703
|
+
return Ai(ot({ locale: r }, n));
|
3705
3704
|
}, Ni = (e = {}) => {
|
3706
3705
|
var t = e, {
|
3707
|
-
locale: r =
|
3708
|
-
} = t, n =
|
3706
|
+
locale: r = J()
|
3707
|
+
} = t, n = he(t, [
|
3709
3708
|
"locale"
|
3710
3709
|
]);
|
3711
|
-
return Bi(
|
3712
|
-
},
|
3710
|
+
return Bi(ot({ locale: r }, n));
|
3711
|
+
}, Pi = (e = {}) => {
|
3713
3712
|
var t = e, {
|
3714
|
-
locale: r =
|
3715
|
-
} = t, n =
|
3713
|
+
locale: r = J()
|
3714
|
+
} = t, n = he(t, [
|
3716
3715
|
"locale"
|
3717
3716
|
]);
|
3718
|
-
return Ii(
|
3719
|
-
},
|
3717
|
+
return Ii(ot({ locale: r }, n));
|
3718
|
+
}, Oi = Fe(
|
3720
3719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3721
|
-
(e, t =
|
3722
|
-
ignoreTag:
|
3720
|
+
(e, t = J()) => new ai(e, t, ae().formats, {
|
3721
|
+
ignoreTag: ae().ignoreTag
|
3723
3722
|
})
|
3724
|
-
),
|
3725
|
-
var r, n, i,
|
3726
|
-
let
|
3727
|
-
typeof e == "object" && (
|
3723
|
+
), Li = (e, t = {}) => {
|
3724
|
+
var r, n, i, o;
|
3725
|
+
let s = t;
|
3726
|
+
typeof e == "object" && (s = e, e = s.id);
|
3728
3727
|
const {
|
3729
3728
|
values: a,
|
3730
|
-
locale: h =
|
3729
|
+
locale: h = J(),
|
3731
3730
|
default: l
|
3732
|
-
} =
|
3731
|
+
} = s;
|
3733
3732
|
if (h == null)
|
3734
3733
|
throw new Error(
|
3735
3734
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3736
3735
|
);
|
3737
|
-
let u =
|
3736
|
+
let u = ar(e, h);
|
3738
3737
|
if (!u)
|
3739
|
-
u = (
|
3738
|
+
u = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
3740
3739
|
else if (typeof u != "string")
|
3741
3740
|
return console.warn(
|
3742
3741
|
`[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.`
|
@@ -3745,7 +3744,7 @@ const be = (e, t) => {
|
|
3745
3744
|
return u;
|
3746
3745
|
let m = u;
|
3747
3746
|
try {
|
3748
|
-
m =
|
3747
|
+
m = Oi(u, h).format(a);
|
3749
3748
|
} catch (f) {
|
3750
3749
|
f instanceof Error && console.warn(
|
3751
3750
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3753,24 +3752,24 @@ const be = (e, t) => {
|
|
3753
3752
|
);
|
3754
3753
|
}
|
3755
3754
|
return m;
|
3756
|
-
}, Fi = (e, t) =>
|
3757
|
-
|
3758
|
-
|
3759
|
-
|
3760
|
-
|
3761
|
-
|
3755
|
+
}, Fi = (e, t) => Pi(t).format(e), Ri = (e, t) => Ni(t).format(e), Di = (e, t) => Mi(t).format(e), Ui = (e, t = J()) => ar(e, t);
|
3756
|
+
le([z, ue], () => Li);
|
3757
|
+
le([z], () => Fi);
|
3758
|
+
le([z], () => Ri);
|
3759
|
+
le([z], () => Di);
|
3760
|
+
le([z, ue], () => Ui);
|
3762
3761
|
function Gi({ withLocale: e, translations: t }) {
|
3763
|
-
|
3764
|
-
r == null && (
|
3762
|
+
z.subscribe((r) => {
|
3763
|
+
r == null && (ue.set(t), z.set(e));
|
3765
3764
|
});
|
3766
3765
|
}
|
3767
|
-
function
|
3768
|
-
|
3766
|
+
function St(e, t) {
|
3767
|
+
ur(e, t);
|
3769
3768
|
}
|
3770
3769
|
function ki(e) {
|
3771
|
-
|
3770
|
+
z.set(e);
|
3772
3771
|
}
|
3773
|
-
const
|
3772
|
+
const Tt = {
|
3774
3773
|
en: {
|
3775
3774
|
login: "Login",
|
3776
3775
|
register: "Register",
|
@@ -3828,55 +3827,55 @@ const At = {
|
|
3828
3827
|
}
|
3829
3828
|
};
|
3830
3829
|
function $i(e) {
|
3831
|
-
|
3830
|
+
Br(e, "svelte-2e7gs6", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
|
3832
3831
|
}
|
3833
|
-
function
|
3832
|
+
function At(e, t, r) {
|
3834
3833
|
const n = e.slice();
|
3835
3834
|
return n[48] = t[r], n[50] = r, n;
|
3836
3835
|
}
|
3837
|
-
function
|
3836
|
+
function Bt(e, t, r) {
|
3838
3837
|
const n = e.slice();
|
3839
3838
|
return n[51] = t[r], n;
|
3840
3839
|
}
|
3841
|
-
function
|
3840
|
+
function It(e, t, r) {
|
3842
3841
|
const n = e.slice();
|
3843
3842
|
return n[54] = t[r], n[56] = r, n;
|
3844
3843
|
}
|
3845
|
-
function
|
3846
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3844
|
+
function Mt(e) {
|
3845
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ne(
|
3847
3846
|
/*sliderdata*/
|
3848
3847
|
e[9]
|
3849
3848
|
);
|
3850
|
-
const
|
3849
|
+
const o = (s) => (
|
3851
3850
|
/*category*/
|
3852
|
-
|
3851
|
+
s[48].id
|
3853
3852
|
);
|
3854
|
-
for (let
|
3855
|
-
let a =
|
3856
|
-
r.set(h, t[
|
3853
|
+
for (let s = 0; s < i.length; s += 1) {
|
3854
|
+
let a = At(e, i, s), h = o(a);
|
3855
|
+
r.set(h, t[s] = Rt(h, a));
|
3857
3856
|
}
|
3858
3857
|
return {
|
3859
3858
|
c() {
|
3860
|
-
for (let
|
3861
|
-
t[
|
3862
|
-
n =
|
3859
|
+
for (let s = 0; s < t.length; s += 1)
|
3860
|
+
t[s].c();
|
3861
|
+
n = pe();
|
3863
3862
|
},
|
3864
|
-
m(
|
3863
|
+
m(s, a) {
|
3865
3864
|
for (let h = 0; h < t.length; h += 1)
|
3866
|
-
t[h] && t[h].m(
|
3867
|
-
U(
|
3865
|
+
t[h] && t[h].m(s, a);
|
3866
|
+
U(s, n, a);
|
3868
3867
|
},
|
3869
|
-
p(
|
3868
|
+
p(s, a) {
|
3870
3869
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3871
|
-
77775 && (i =
|
3870
|
+
77775 && (i = ne(
|
3872
3871
|
/*sliderdata*/
|
3873
|
-
|
3874
|
-
), t =
|
3872
|
+
s[9]
|
3873
|
+
), t = $t(t, a, o, 1, s, i, r, n.parentNode, kt, Rt, n, At));
|
3875
3874
|
},
|
3876
|
-
d(
|
3877
|
-
|
3875
|
+
d(s) {
|
3876
|
+
s && F(n);
|
3878
3877
|
for (let a = 0; a < t.length; a += 1)
|
3879
|
-
t[a].d(
|
3878
|
+
t[a].d(s);
|
3880
3879
|
}
|
3881
3880
|
};
|
3882
3881
|
}
|
@@ -3887,15 +3886,15 @@ function ji(e) {
|
|
3887
3886
|
), n;
|
3888
3887
|
return {
|
3889
3888
|
c() {
|
3890
|
-
t = N("button"), n =
|
3889
|
+
t = N("button"), n = ve(r), H(t, "class", "CategoryButton");
|
3891
3890
|
},
|
3892
|
-
m(i,
|
3893
|
-
U(i, t,
|
3891
|
+
m(i, o) {
|
3892
|
+
U(i, t, o), B(t, n);
|
3894
3893
|
},
|
3895
|
-
p(i,
|
3896
|
-
|
3894
|
+
p(i, o) {
|
3895
|
+
o[0] & /*sliderdata*/
|
3897
3896
|
512 && r !== (r = /*category*/
|
3898
|
-
i[48].name + "") &&
|
3897
|
+
i[48].name + "") && nt(n, r);
|
3899
3898
|
},
|
3900
3899
|
d(i) {
|
3901
3900
|
i && F(t);
|
@@ -3909,25 +3908,25 @@ function Vi(e) {
|
|
3909
3908
|
), n, i;
|
3910
3909
|
return {
|
3911
3910
|
c() {
|
3912
|
-
t = N("a"), n =
|
3911
|
+
t = N("a"), n = ve(r), H(t, "href", i = /*category*/
|
3913
3912
|
e[48].path);
|
3914
3913
|
},
|
3915
|
-
m(
|
3916
|
-
U(
|
3914
|
+
m(o, s) {
|
3915
|
+
U(o, t, s), B(t, n);
|
3917
3916
|
},
|
3918
|
-
p(
|
3919
|
-
|
3917
|
+
p(o, s) {
|
3918
|
+
s[0] & /*sliderdata*/
|
3920
3919
|
512 && r !== (r = /*category*/
|
3921
|
-
|
3920
|
+
o[48].label + "") && nt(n, r), s[0] & /*sliderdata*/
|
3922
3921
|
512 && i !== (i = /*category*/
|
3923
|
-
|
3922
|
+
o[48].path) && H(t, "href", i);
|
3924
3923
|
},
|
3925
|
-
d(
|
3926
|
-
|
3924
|
+
d(o) {
|
3925
|
+
o && F(t);
|
3927
3926
|
}
|
3928
3927
|
};
|
3929
3928
|
}
|
3930
|
-
function
|
3929
|
+
function Nt(e) {
|
3931
3930
|
let t, r = (
|
3932
3931
|
/*subGroupsData*/
|
3933
3932
|
e[10].length > 0 && /*showsubgroups*/
|
@@ -3935,7 +3934,7 @@ function Lt(e) {
|
|
3935
3934
|
);
|
3936
3935
|
return {
|
3937
3936
|
c() {
|
3938
|
-
r && r.c(), t =
|
3937
|
+
r && r.c(), t = pe();
|
3939
3938
|
},
|
3940
3939
|
m(n, i) {
|
3941
3940
|
r && r.m(n, i), U(n, t, i);
|
@@ -3951,43 +3950,43 @@ function Lt(e) {
|
|
3951
3950
|
};
|
3952
3951
|
}
|
3953
3952
|
function Pt(e) {
|
3954
|
-
let t, r =
|
3953
|
+
let t, r = ne(
|
3955
3954
|
/*subGroupsData*/
|
3956
3955
|
e[10]
|
3957
3956
|
), n = [];
|
3958
3957
|
for (let i = 0; i < r.length; i += 1)
|
3959
|
-
n[i] =
|
3958
|
+
n[i] = Ft(Bt(e, r, i));
|
3960
3959
|
return {
|
3961
3960
|
c() {
|
3962
3961
|
t = N("ul");
|
3963
3962
|
for (let i = 0; i < n.length; i += 1)
|
3964
3963
|
n[i].c();
|
3965
|
-
|
3964
|
+
H(t, "class", "DropDown");
|
3966
3965
|
},
|
3967
|
-
m(i,
|
3968
|
-
U(i, t,
|
3969
|
-
for (let
|
3970
|
-
n[
|
3966
|
+
m(i, o) {
|
3967
|
+
U(i, t, o);
|
3968
|
+
for (let s = 0; s < n.length; s += 1)
|
3969
|
+
n[s] && n[s].m(t, null);
|
3971
3970
|
},
|
3972
|
-
p(i,
|
3973
|
-
if (
|
3971
|
+
p(i, o) {
|
3972
|
+
if (o[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
3974
3973
|
10176) {
|
3975
|
-
r =
|
3974
|
+
r = ne(
|
3976
3975
|
/*subGroupsData*/
|
3977
3976
|
i[10]
|
3978
3977
|
);
|
3979
|
-
let
|
3980
|
-
for (
|
3981
|
-
const a =
|
3982
|
-
n[
|
3978
|
+
let s;
|
3979
|
+
for (s = 0; s < r.length; s += 1) {
|
3980
|
+
const a = Bt(i, r, s);
|
3981
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ft(a), n[s].c(), n[s].m(t, null));
|
3983
3982
|
}
|
3984
|
-
for (;
|
3985
|
-
n[
|
3983
|
+
for (; s < n.length; s += 1)
|
3984
|
+
n[s].d(1);
|
3986
3985
|
n.length = r.length;
|
3987
3986
|
}
|
3988
3987
|
},
|
3989
3988
|
d(i) {
|
3990
|
-
i && F(t),
|
3989
|
+
i && F(t), Nr(n, i);
|
3991
3990
|
}
|
3992
3991
|
};
|
3993
3992
|
}
|
@@ -3995,7 +3994,7 @@ function Ot(e) {
|
|
3995
3994
|
let t, r, n = (
|
3996
3995
|
/*subGroupItem*/
|
3997
3996
|
e[54]?.name + ""
|
3998
|
-
), i,
|
3997
|
+
), i, o, s, a, h;
|
3999
3998
|
function l(...u) {
|
4000
3999
|
return (
|
4001
4000
|
/*click_handler_1*/
|
@@ -4014,7 +4013,7 @@ function Ot(e) {
|
|
4014
4013
|
}
|
4015
4014
|
return {
|
4016
4015
|
c() {
|
4017
|
-
t = N("li"), r = N("a"), i =
|
4016
|
+
t = N("li"), r = N("a"), i = ve(n), s = Q(), H(r, "class", o = "SubDropDown " + /*index*/
|
4018
4017
|
(e[50] == /*activeIndex*/
|
4019
4018
|
e[6] && /*activeSubIndex*/
|
4020
4019
|
(e[7] == /*subindex*/
|
@@ -4023,26 +4022,26 @@ function Ot(e) {
|
|
4023
4022
|
e[56]) ? "active" : ""));
|
4024
4023
|
},
|
4025
4024
|
m(u, m) {
|
4026
|
-
U(u, t, m), B(t, r), B(r, i), B(t,
|
4025
|
+
U(u, t, m), B(t, r), B(r, i), B(t, s), a || (h = Ae(t, "click", l), a = !0);
|
4027
4026
|
},
|
4028
4027
|
p(u, m) {
|
4029
4028
|
e = u, m[0] & /*subGroupsData*/
|
4030
4029
|
1024 && n !== (n = /*subGroupItem*/
|
4031
|
-
e[54]?.name + "") &&
|
4032
|
-
1984 &&
|
4030
|
+
e[54]?.name + "") && nt(i, n), m[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
4031
|
+
1984 && o !== (o = "SubDropDown " + /*index*/
|
4033
4032
|
(e[50] == /*activeIndex*/
|
4034
4033
|
e[6] && /*activeSubIndex*/
|
4035
4034
|
(e[7] == /*subindex*/
|
4036
4035
|
e[56] || /*prevSubIndex*/
|
4037
4036
|
e[8] == /*subindex*/
|
4038
|
-
e[56]) ? "active" : "")) &&
|
4037
|
+
e[56]) ? "active" : "")) && H(r, "class", o);
|
4039
4038
|
},
|
4040
4039
|
d(u) {
|
4041
4040
|
u && F(t), a = !1, h();
|
4042
4041
|
}
|
4043
4042
|
};
|
4044
4043
|
}
|
4045
|
-
function
|
4044
|
+
function Lt(e, t) {
|
4046
4045
|
let r, n, i = (
|
4047
4046
|
/*index*/
|
4048
4047
|
t[50] == /*subGroup*/
|
@@ -4052,75 +4051,75 @@ function Ft(e, t) {
|
|
4052
4051
|
key: e,
|
4053
4052
|
first: null,
|
4054
4053
|
c() {
|
4055
|
-
r =
|
4054
|
+
r = pe(), i && i.c(), n = pe(), this.first = r;
|
4056
4055
|
},
|
4057
|
-
m(
|
4058
|
-
U(
|
4056
|
+
m(o, s) {
|
4057
|
+
U(o, r, s), i && i.m(o, s), U(o, n, s);
|
4059
4058
|
},
|
4060
|
-
p(
|
4061
|
-
t =
|
4059
|
+
p(o, s) {
|
4060
|
+
t = o, /*index*/
|
4062
4061
|
t[50] == /*subGroup*/
|
4063
|
-
t[51].index ? i ? i.p(t,
|
4062
|
+
t[51].index ? i ? i.p(t, s) : (i = Ot(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4064
4063
|
},
|
4065
|
-
d(
|
4066
|
-
|
4064
|
+
d(o) {
|
4065
|
+
o && (F(r), F(n)), i && i.d(o);
|
4067
4066
|
}
|
4068
4067
|
};
|
4069
4068
|
}
|
4070
|
-
function
|
4071
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4069
|
+
function Ft(e) {
|
4070
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ne(
|
4072
4071
|
/*subGroup*/
|
4073
4072
|
e[51].items
|
4074
4073
|
);
|
4075
|
-
const
|
4074
|
+
const o = (s) => (
|
4076
4075
|
/*subGroupItem*/
|
4077
|
-
|
4076
|
+
s[54].id
|
4078
4077
|
);
|
4079
|
-
for (let
|
4080
|
-
let a =
|
4081
|
-
r.set(h, t[
|
4078
|
+
for (let s = 0; s < i.length; s += 1) {
|
4079
|
+
let a = It(e, i, s), h = o(a);
|
4080
|
+
r.set(h, t[s] = Lt(h, a));
|
4082
4081
|
}
|
4083
4082
|
return {
|
4084
4083
|
c() {
|
4085
|
-
for (let
|
4086
|
-
t[
|
4087
|
-
n =
|
4084
|
+
for (let s = 0; s < t.length; s += 1)
|
4085
|
+
t[s].c();
|
4086
|
+
n = pe();
|
4088
4087
|
},
|
4089
|
-
m(
|
4088
|
+
m(s, a) {
|
4090
4089
|
for (let h = 0; h < t.length; h += 1)
|
4091
|
-
t[h] && t[h].m(
|
4092
|
-
U(
|
4090
|
+
t[h] && t[h].m(s, a);
|
4091
|
+
U(s, n, a);
|
4093
4092
|
},
|
4094
|
-
p(
|
4093
|
+
p(s, a) {
|
4095
4094
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4096
|
-
10176 && (i =
|
4095
|
+
10176 && (i = ne(
|
4097
4096
|
/*subGroup*/
|
4098
|
-
|
4099
|
-
), t =
|
4097
|
+
s[51].items
|
4098
|
+
), t = $t(t, a, o, 1, s, i, r, n.parentNode, kt, Lt, n, It));
|
4100
4099
|
},
|
4101
|
-
d(
|
4102
|
-
|
4100
|
+
d(s) {
|
4101
|
+
s && F(n);
|
4103
4102
|
for (let a = 0; a < t.length; a += 1)
|
4104
|
-
t[a].d(
|
4103
|
+
t[a].d(s);
|
4105
4104
|
}
|
4106
4105
|
};
|
4107
4106
|
}
|
4108
|
-
function
|
4109
|
-
let r, n, i,
|
4110
|
-
function
|
4107
|
+
function Rt(e, t) {
|
4108
|
+
let r, n, i, o, s, a, h, l, u, m, f;
|
4109
|
+
function p(_, w) {
|
4111
4110
|
return (
|
4112
4111
|
/*location*/
|
4113
|
-
|
4112
|
+
_[0] === "headerMain" ? Vi : ji
|
4114
4113
|
);
|
4115
4114
|
}
|
4116
|
-
let
|
4115
|
+
let g = p(t), b = g(t), d = (
|
4117
4116
|
/*itemsActive*/
|
4118
4117
|
t[11][
|
4119
4118
|
/*index*/
|
4120
4119
|
t[50]
|
4121
|
-
] == !0 &&
|
4120
|
+
] == !0 && Nt(t)
|
4122
4121
|
);
|
4123
|
-
function
|
4122
|
+
function C(..._) {
|
4124
4123
|
return (
|
4125
4124
|
/*click_handler_2*/
|
4126
4125
|
t[34](
|
@@ -4128,7 +4127,7 @@ function Dt(e, t) {
|
|
4128
4127
|
t[48],
|
4129
4128
|
/*index*/
|
4130
4129
|
t[50],
|
4131
|
-
...
|
4130
|
+
..._
|
4132
4131
|
)
|
4133
4132
|
);
|
4134
4133
|
}
|
@@ -4136,12 +4135,12 @@ function Dt(e, t) {
|
|
4136
4135
|
key: e,
|
4137
4136
|
first: null,
|
4138
4137
|
c() {
|
4139
|
-
r = N("li"), n = N("div"), i = N("
|
4140
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
4138
|
+
r = N("li"), n = N("div"), i = N("img"), a = Q(), b.c(), h = Q(), d && d.c(), l = Q(), H(i, "class", o = "CategoryIconImg " + /*categoriesicon*/
|
4139
|
+
(t[3] === "true" ? "" : "DisplayNone")), ct(i.src, s = /*handleSrc*/
|
4141
4140
|
t[16](
|
4142
4141
|
/*category*/
|
4143
4142
|
t[48]
|
4144
|
-
)) ||
|
4143
|
+
)) || H(i, "src", s), H(n, "class", "CategoryIcon"), H(r, "class", u = "CarouselItem " + /*activeindex*/
|
4145
4144
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4146
4145
|
/*activeindex*/
|
4147
4146
|
t[1]?.split("$").pop() == /*category*/
|
@@ -4153,22 +4152,22 @@ function Dt(e, t) {
|
|
4153
4152
|
)) + " " + /*location*/
|
4154
4153
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4155
4154
|
},
|
4156
|
-
m(
|
4157
|
-
U(
|
4155
|
+
m(_, w) {
|
4156
|
+
U(_, r, w), B(r, n), B(n, i), B(r, a), b.m(r, null), B(r, h), d && d.m(r, null), B(r, l), m || (f = Ae(r, "click", C), m = !0);
|
4158
4157
|
},
|
4159
|
-
p(
|
4160
|
-
t =
|
4161
|
-
8 &&
|
4162
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
4163
|
-
512 && !
|
4158
|
+
p(_, w) {
|
4159
|
+
t = _, w[0] & /*categoriesicon*/
|
4160
|
+
8 && o !== (o = "CategoryIconImg " + /*categoriesicon*/
|
4161
|
+
(t[3] === "true" ? "" : "DisplayNone")) && H(i, "class", o), w[0] & /*sliderdata*/
|
4162
|
+
512 && !ct(i.src, s = /*handleSrc*/
|
4164
4163
|
t[16](
|
4165
4164
|
/*category*/
|
4166
4165
|
t[48]
|
4167
|
-
)) &&
|
4166
|
+
)) && 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*/
|
4168
4167
|
t[11][
|
4169
4168
|
/*index*/
|
4170
4169
|
t[50]
|
4171
|
-
] == !0 ? d ? d.p(t,
|
4170
|
+
] == !0 ? d ? d.p(t, w) : (d = Nt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), w[0] & /*activeindex, sliderdata, location*/
|
4172
4171
|
515 && u !== (u = "CarouselItem " + /*activeindex*/
|
4173
4172
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4174
4173
|
/*activeindex*/
|
@@ -4179,27 +4178,27 @@ function Dt(e, t) {
|
|
4179
4178
|
t[1] == /*category*/
|
4180
4179
|
t[48].id ? "active" : ""
|
4181
4180
|
)) + " " + /*location*/
|
4182
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
4181
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && H(r, "class", u);
|
4183
4182
|
},
|
4184
|
-
d(
|
4185
|
-
|
4183
|
+
d(_) {
|
4184
|
+
_ && F(r), b.d(), d && d.d(), m = !1, f();
|
4186
4185
|
}
|
4187
4186
|
};
|
4188
4187
|
}
|
4189
4188
|
function Xi(e) {
|
4190
|
-
let t, r, n, i,
|
4189
|
+
let t, r, n, i, o, s, a, h, l, u, m, f, p, g, b, d = (
|
4191
4190
|
/*sliderdata*/
|
4192
|
-
e[9].length > 0 &&
|
4191
|
+
e[9].length > 0 && Mt(e)
|
4193
4192
|
);
|
4194
4193
|
return {
|
4195
4194
|
c() {
|
4196
|
-
t = N("div"), r = N("div"), n = N("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i =
|
4197
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
4198
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0),
|
4195
|
+
t = N("div"), r = N("div"), n = N("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i = Q(), o = N("div"), s = N("ul"), a = N("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = Q(), d && d.c(), l = Q(), u = N("div"), u.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', 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*/
|
4196
|
+
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), H(r, "style", f = /*location*/
|
4197
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), H(t, "class", p = "CarouselWrapper " + /*location*/
|
4199
4198
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4200
4199
|
},
|
4201
|
-
m(
|
4202
|
-
U(
|
4200
|
+
m(C, _) {
|
4201
|
+
U(C, t, _), B(t, r), B(r, n), B(r, i), B(r, o), B(o, s), B(s, a), B(s, h), d && d.m(s, null), e[35](s), e[36](o), B(r, l), B(r, u), e[38](t), g || (b = [
|
4203
4202
|
Ae(
|
4204
4203
|
n,
|
4205
4204
|
"click",
|
@@ -4212,205 +4211,205 @@ function Xi(e) {
|
|
4212
4211
|
/*click_handler_3*/
|
4213
4212
|
e[37]
|
4214
4213
|
)
|
4215
|
-
],
|
4214
|
+
], g = !0);
|
4216
4215
|
},
|
4217
|
-
p(
|
4216
|
+
p(C, _) {
|
4218
4217
|
/*sliderdata*/
|
4219
|
-
|
4218
|
+
C[9].length > 0 ? d ? d.p(C, _) : (d = Mt(C), d.c(), d.m(s, null)) : d && (d.d(1), d = null), _[0] & /*location*/
|
4220
4219
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4221
|
-
|
4220
|
+
C[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && H(r, "class", m), _[0] & /*location*/
|
4222
4221
|
1 && f !== (f = /*location*/
|
4223
|
-
|
4224
|
-
1 &&
|
4225
|
-
(
|
4222
|
+
C[0] === "headerMain" ? "max-width: auto" : void 0) && H(r, "style", f), _[0] & /*location*/
|
4223
|
+
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4224
|
+
(C[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && H(t, "class", p);
|
4226
4225
|
},
|
4227
4226
|
i: G,
|
4228
4227
|
o: G,
|
4229
|
-
d(
|
4230
|
-
|
4228
|
+
d(C) {
|
4229
|
+
C && F(t), d && d.d(), e[35](null), e[36](null), e[38](null), g = !1, q(b);
|
4231
4230
|
}
|
4232
4231
|
};
|
4233
4232
|
}
|
4234
4233
|
function Wi(e, t, r) {
|
4235
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname:
|
4234
|
+
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: C = "false" } = t, { categoriesicon: _ = "false" } = t, { lobbyiconimage: w = "" } = t, { mygamesiconimage: R = "" } = t, { mbsource: O = "" } = t;
|
4236
4235
|
Gi({ withLocale: "en", translations: {} });
|
4237
4236
|
const k = () => {
|
4238
|
-
fetch(f).then((
|
4239
|
-
Object.keys(
|
4240
|
-
|
4237
|
+
fetch(f).then((E) => E.json()).then((E) => {
|
4238
|
+
Object.keys(E).forEach((D) => {
|
4239
|
+
St(D, E[D]);
|
4241
4240
|
});
|
4242
|
-
}).catch((
|
4243
|
-
console.log(
|
4241
|
+
}).catch((E) => {
|
4242
|
+
console.log(E);
|
4244
4243
|
});
|
4245
4244
|
};
|
4246
|
-
Object.keys(
|
4247
|
-
|
4245
|
+
Object.keys(Tt).forEach((c) => {
|
4246
|
+
St(c, Tt[c]);
|
4248
4247
|
});
|
4249
|
-
let
|
4250
|
-
if (!(c.subGroups &&
|
4251
|
-
if (
|
4248
|
+
let x, I, P, V, j, ce = [], _e = [], Y = [], M, Re = (c, E, D, Z, X) => {
|
4249
|
+
if (!(c.subGroups && Z === null)) {
|
4250
|
+
if (Ee(), r(6, I = E), r(6, I), X != "secondary") {
|
4252
4251
|
window.postMessage(
|
4253
4252
|
{
|
4254
|
-
type:
|
4253
|
+
type: s == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4255
4254
|
buzz: "1",
|
4256
4255
|
itemId: c.id,
|
4257
|
-
index:
|
4256
|
+
index: E,
|
4258
4257
|
item: c,
|
4259
4258
|
path: c.path,
|
4260
4259
|
externalLink: c.externalLink || !1,
|
4261
4260
|
target: c.attrs?.target || null
|
4262
4261
|
},
|
4263
4262
|
window.location.href
|
4264
|
-
), r(7,
|
4263
|
+
), r(7, P = null), r(8, V = null);
|
4265
4264
|
return;
|
4266
4265
|
}
|
4267
|
-
r(7,
|
4266
|
+
r(7, P = Z), r(7, P), r(8, V = P), window.postMessage(
|
4268
4267
|
{
|
4269
|
-
type:
|
4268
|
+
type: s,
|
4270
4269
|
itemId: D.id,
|
4271
|
-
subIndex:
|
4270
|
+
subIndex: Z,
|
4272
4271
|
subItem: D
|
4273
4272
|
},
|
4274
4273
|
window.location.href
|
4275
4274
|
);
|
4276
4275
|
}
|
4276
|
+
}, st = () => {
|
4277
|
+
M && (Y.length !== I ? r(12, M.scrollLeft -= 250, M) : r(12, M.scrollLeft = 0, M));
|
4277
4278
|
}, at = () => {
|
4278
|
-
M && (
|
4279
|
-
}, lt = () => {
|
4280
|
-
M && (J.length !== I ? r(12, M.scrollLeft += 250, M) : r(12, M.scrollLeft = 0, M));
|
4279
|
+
M && (Y.length !== I ? r(12, M.scrollLeft += 250, M) : r(12, M.scrollLeft = 0, M));
|
4281
4280
|
};
|
4282
|
-
const
|
4283
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4284
|
-
|
4281
|
+
const lt = (c) => {
|
4282
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, ce = c.data.data), r(11, Y = new Array(ce.length).fill(!1)), C == "true" && gr()), c.data.type == "GoToHomepage" && ce.forEach((E, D) => {
|
4283
|
+
E.path.endsWith("/casino") && (r(6, I = D), r(6, I));
|
4285
4284
|
});
|
4286
|
-
},
|
4285
|
+
}, dr = () => {
|
4287
4286
|
ki(b);
|
4288
|
-
}, pr = (c,
|
4287
|
+
}, pr = (c, E, D) => {
|
4289
4288
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4290
|
-
let
|
4291
|
-
fetch(
|
4292
|
-
|
4289
|
+
let Z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4290
|
+
fetch(Z.href).then((X) => X.json()).then((X) => {
|
4291
|
+
X.index = E, r(10, _e = _e.concat(X)), C == "false" && window.postMessage(
|
4293
4292
|
{
|
4294
|
-
type:
|
4293
|
+
type: s,
|
4295
4294
|
itemId: c.id,
|
4296
|
-
index:
|
4295
|
+
index: E,
|
4297
4296
|
item: c
|
4298
4297
|
},
|
4299
4298
|
window.location.href
|
4300
4299
|
);
|
4301
|
-
const
|
4302
|
-
|
4303
|
-
|
4304
|
-
}),
|
4300
|
+
const xe = [];
|
4301
|
+
_e.map((Hr) => (Hr.items.forEach((ut) => {
|
4302
|
+
xe.find((Sr) => ut.id == Sr) || xe.push(ut.id);
|
4303
|
+
}), xe.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: xe }, window.location.href);
|
4305
4304
|
}).then(() => {
|
4306
|
-
|
4305
|
+
x.querySelectorAll(".DropDown") && Ee();
|
4307
4306
|
});
|
4308
4307
|
}
|
4309
|
-
h == "headerMain" && window.postMessage({ type:
|
4310
|
-
},
|
4311
|
-
const c =
|
4308
|
+
h == "headerMain" && window.postMessage({ type: s, item: c }, window.location.href);
|
4309
|
+
}, Ee = () => {
|
4310
|
+
const c = x.querySelectorAll(".DropDown");
|
4312
4311
|
document.activeElement.blur(), M.classList.add("isScrolling");
|
4313
|
-
for (let
|
4314
|
-
c[
|
4312
|
+
for (let E = 0; E < c.length; E++)
|
4313
|
+
c[E].style.transform = "translateX(-" + M.scrollLeft + "px)";
|
4315
4314
|
M.classList.remove("isScrolling");
|
4316
|
-
},
|
4317
|
-
|
4318
|
-
c?.subGroups?.count > 0 && (r(11,
|
4315
|
+
}, gr = () => {
|
4316
|
+
ce.forEach((c, E) => {
|
4317
|
+
c?.subGroups?.count > 0 && (r(11, Y[E] = !0, Y), pr(c, E));
|
4319
4318
|
});
|
4320
|
-
},
|
4321
|
-
let
|
4322
|
-
return c.id === "LOBBY" ?
|
4319
|
+
}, br = (c) => {
|
4320
|
+
let E = "";
|
4321
|
+
return c.id === "LOBBY" ? E = w : c.id === "MYGAMES" && (E = R), c.icon || E;
|
4323
4322
|
};
|
4324
|
-
|
4323
|
+
Fr(() => (window.addEventListener("message", lt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4325
4324
|
() => {
|
4326
|
-
M.addEventListener("scroll",
|
4325
|
+
M.addEventListener("scroll", Ee);
|
4327
4326
|
},
|
4328
4327
|
500
|
4329
4328
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4330
|
-
window.removeEventListener("message",
|
4329
|
+
window.removeEventListener("message", lt), x.removeEventListener("scroll", Ee);
|
4331
4330
|
}));
|
4332
|
-
const
|
4333
|
-
|
4334
|
-
},
|
4335
|
-
|
4331
|
+
const yr = () => st(), vr = (c, E, D, Z, X) => {
|
4332
|
+
Re(c, E, D, Z, "secondary"), X.stopPropagation();
|
4333
|
+
}, _r = (c, E, D) => {
|
4334
|
+
Re(c, E, null, null, "main"), D.preventDefault();
|
4336
4335
|
};
|
4337
|
-
function
|
4338
|
-
|
4339
|
-
|
4336
|
+
function Er(c) {
|
4337
|
+
de[c ? "unshift" : "push"](() => {
|
4338
|
+
x = c, r(5, x);
|
4340
4339
|
});
|
4341
4340
|
}
|
4342
|
-
function
|
4343
|
-
|
4341
|
+
function xr(c) {
|
4342
|
+
de[c ? "unshift" : "push"](() => {
|
4344
4343
|
M = c, r(12, M);
|
4345
4344
|
});
|
4346
4345
|
}
|
4347
|
-
const
|
4348
|
-
function
|
4349
|
-
|
4350
|
-
|
4346
|
+
const Cr = () => at();
|
4347
|
+
function wr(c) {
|
4348
|
+
de[c ? "unshift" : "push"](() => {
|
4349
|
+
j = c, r(4, j);
|
4351
4350
|
});
|
4352
4351
|
}
|
4353
4352
|
return e.$$set = (c) => {
|
4354
|
-
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19,
|
4353
|
+
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, o = c.onclickeventname), "actionevent" in c && r(20, s = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, C = c.showsubgroups), "categoriesicon" in c && r(3, _ = c.categoriesicon), "lobbyiconimage" in c && r(29, w = c.lobbyiconimage), "mygamesiconimage" in c && r(30, R = c.mygamesiconimage), "mbsource" in c && r(31, O = c.mbsource);
|
4355
4354
|
}, e.$$.update = () => {
|
4356
4355
|
e.$$.dirty[0] & /*activeindex*/
|
4357
4356
|
2, e.$$.dirty[0] & /*translationurl*/
|
4358
4357
|
33554432 && f && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4359
|
-
4194320 && l &&
|
4360
|
-
8388624 && u &&
|
4358
|
+
4194320 && l && j && Qr(j, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4359
|
+
8388624 && u && j && qr(j, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4361
4360
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4362
|
-
1 &&
|
4363
|
-
268435456 && b &&
|
4361
|
+
1 && O && j && Jr(j, `${O}.Style`), e.$$.dirty[0] & /*lang*/
|
4362
|
+
268435456 && b && dr();
|
4364
4363
|
}, [
|
4365
4364
|
h,
|
4366
4365
|
d,
|
4367
|
-
w,
|
4368
|
-
E,
|
4369
|
-
$,
|
4370
4366
|
C,
|
4371
|
-
|
4372
|
-
L,
|
4367
|
+
_,
|
4373
4368
|
j,
|
4374
|
-
|
4375
|
-
|
4376
|
-
|
4369
|
+
x,
|
4370
|
+
I,
|
4371
|
+
P,
|
4372
|
+
V,
|
4373
|
+
ce,
|
4374
|
+
_e,
|
4375
|
+
Y,
|
4377
4376
|
M,
|
4378
|
-
|
4377
|
+
Re,
|
4378
|
+
st,
|
4379
4379
|
at,
|
4380
|
-
|
4381
|
-
yr,
|
4380
|
+
br,
|
4382
4381
|
n,
|
4383
4382
|
i,
|
4384
|
-
s,
|
4385
4383
|
o,
|
4384
|
+
s,
|
4386
4385
|
a,
|
4387
4386
|
l,
|
4388
4387
|
u,
|
4389
4388
|
m,
|
4390
4389
|
f,
|
4391
|
-
g,
|
4392
4390
|
p,
|
4391
|
+
g,
|
4393
4392
|
b,
|
4394
|
-
|
4393
|
+
w,
|
4395
4394
|
R,
|
4396
|
-
|
4395
|
+
O,
|
4396
|
+
yr,
|
4397
4397
|
vr,
|
4398
4398
|
_r,
|
4399
4399
|
Er,
|
4400
4400
|
xr,
|
4401
4401
|
Cr,
|
4402
|
-
wr
|
4403
|
-
Hr
|
4402
|
+
wr
|
4404
4403
|
];
|
4405
4404
|
}
|
4406
|
-
class zi extends
|
4405
|
+
class zi extends zr {
|
4407
4406
|
constructor(t) {
|
4408
|
-
super(),
|
4407
|
+
super(), Xr(
|
4409
4408
|
this,
|
4410
4409
|
t,
|
4411
4410
|
Wi,
|
4412
4411
|
Xi,
|
4413
|
-
|
4412
|
+
Ut,
|
4414
4413
|
{
|
4415
4414
|
endpoint: 17,
|
4416
4415
|
datasource: 18,
|
@@ -4551,7 +4550,7 @@ class zi extends Zr {
|
|
4551
4550
|
this.$$set({ mbsource: t }), A();
|
4552
4551
|
}
|
4553
4552
|
}
|
4554
|
-
|
4553
|
+
Wr(zi, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4555
4554
|
export {
|
4556
4555
|
zi as C
|
4557
4556
|
};
|