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