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