@everymatrix/casino-slider 1.77.20 → 1.77.21
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-YB4J0l7q.js → CasinoSlider-DL_bvtZw.js} +943 -937
- package/components/{CasinoSlider-DNBcWZ7N.js → CasinoSlider-JyVDKB5k.js} +945 -939
- 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-CHWPu6Yw.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 Pr(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 Fr(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 kr(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 Kr(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
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" && (Vt = 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" && (Vt = 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" && (Vt = 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" && (Vt = 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 en(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 tn {
|
|
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 tn {
|
|
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 tn {
|
|
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 on(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 sn(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
|
572
|
+
function hn(e) {
|
573
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]" ||
|
583
|
+
return t === "[object RegExp]" || t === "[object Date]" || gn(e);
|
584
584
|
}
|
585
|
-
var
|
586
|
-
function
|
587
|
-
return e.$$typeof ===
|
585
|
+
var dn = typeof Symbol == "function" && Symbol.for, pn = dn ? Symbol.for("react.element") : 60103;
|
586
|
+
function gn(e) {
|
587
|
+
return e.$$typeof === pn;
|
588
588
|
}
|
589
|
-
function
|
589
|
+
function bn(e) {
|
590
590
|
return Array.isArray(e) ? [] : {};
|
591
591
|
}
|
592
|
-
function
|
593
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
592
|
+
function _e(e, t) {
|
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
|
-
return
|
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
|
-
function
|
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
|
612
|
-
return Object.keys(e).concat(
|
611
|
+
function gt(e) {
|
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) &&
|
627
|
-
n[i] =
|
628
|
-
}),
|
629
|
-
|
626
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
627
|
+
n[i] = _e(e[i], r);
|
628
|
+
}), gt(t).forEach(function(i) {
|
629
|
+
En(e, i) || (zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = vn(i, r)(e[i], t[i], r) : n[i] = _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,43 +679,43 @@ function wn(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
|
-
function
|
717
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
718
|
-
return typeof
|
702
|
+
function Zt(e, t, r) {
|
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
|
724
|
-
var r = e.length === 1 ?
|
725
|
-
return
|
709
|
+
function Bn(e, t) {
|
710
|
+
var r = e.length === 1 ? An : Zt;
|
711
|
+
return Qt(e, this, r, t.cache.create(), t.serializer);
|
726
712
|
}
|
727
|
-
function
|
728
|
-
return
|
713
|
+
function In(e, t) {
|
714
|
+
return Qt(e, this, Zt, t.cache.create(), t.serializer);
|
729
715
|
}
|
730
|
-
var
|
716
|
+
var Mn = function() {
|
731
717
|
return JSON.stringify(arguments);
|
732
|
-
},
|
718
|
+
}, Ln = (
|
733
719
|
/** @class */
|
734
720
|
function() {
|
735
721
|
function e() {
|
@@ -741,61 +727,71 @@ var Bn = function() {
|
|
741
727
|
this.cache[t] = r;
|
742
728
|
}, e;
|
743
729
|
}()
|
744
|
-
),
|
730
|
+
), Nn = {
|
745
731
|
create: function() {
|
746
|
-
return new
|
732
|
+
return new Ln();
|
747
733
|
}
|
748
|
-
},
|
749
|
-
variadic:
|
750
|
-
},
|
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;
|
751
747
|
(function(e) {
|
752
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";
|
753
749
|
})(y || (y = {}));
|
754
|
-
var
|
750
|
+
var T;
|
755
751
|
(function(e) {
|
756
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";
|
757
|
-
})(
|
758
|
-
var
|
753
|
+
})(T || (T = {}));
|
754
|
+
var ae;
|
759
755
|
(function(e) {
|
760
756
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
761
|
-
})(
|
762
|
-
function
|
763
|
-
return e.type ===
|
764
|
-
}
|
765
|
-
function Ln(e) {
|
766
|
-
return e.type === A.argument;
|
767
|
-
}
|
768
|
-
function Zt(e) {
|
769
|
-
return e.type === A.number;
|
757
|
+
})(ae || (ae = {}));
|
758
|
+
function bt(e) {
|
759
|
+
return e.type === T.literal;
|
770
760
|
}
|
771
|
-
function
|
772
|
-
return e.type ===
|
761
|
+
function Pn(e) {
|
762
|
+
return e.type === T.argument;
|
773
763
|
}
|
774
764
|
function qt(e) {
|
775
|
-
return e.type ===
|
765
|
+
return e.type === T.number;
|
776
766
|
}
|
777
767
|
function Jt(e) {
|
778
|
-
return e.type ===
|
768
|
+
return e.type === T.date;
|
779
769
|
}
|
780
770
|
function Yt(e) {
|
781
|
-
return e.type ===
|
782
|
-
}
|
783
|
-
function Nn(e) {
|
784
|
-
return e.type === A.pound;
|
771
|
+
return e.type === T.time;
|
785
772
|
}
|
786
773
|
function Kt(e) {
|
787
|
-
return e.type ===
|
774
|
+
return e.type === T.select;
|
788
775
|
}
|
789
776
|
function er(e) {
|
790
|
-
return
|
777
|
+
return e.type === T.plural;
|
791
778
|
}
|
792
|
-
function Qe(e) {
|
793
|
-
return !!(e && typeof e == "object" && e.type === se.dateTime);
|
794
|
-
}
|
795
|
-
var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
|
796
779
|
function On(e) {
|
780
|
+
return e.type === T.pound;
|
781
|
+
}
|
782
|
+
function tr(e) {
|
783
|
+
return e.type === T.tag;
|
784
|
+
}
|
785
|
+
function rr(e) {
|
786
|
+
return !!(e && typeof e == "object" && e.type === ae.number);
|
787
|
+
}
|
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) {
|
797
793
|
var t = {};
|
798
|
-
return e.replace(
|
794
|
+
return e.replace(Fn, function(r) {
|
799
795
|
var n = r.length;
|
800
796
|
switch (r[0]) {
|
801
797
|
case "G":
|
@@ -884,17 +880,27 @@ function On(e) {
|
|
884
880
|
return "";
|
885
881
|
}), t;
|
886
882
|
}
|
887
|
-
var
|
888
|
-
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) {
|
889
895
|
if (e.length === 0)
|
890
896
|
throw new Error("Number skeleton cannot be empty");
|
891
|
-
for (var t = e.split(
|
897
|
+
for (var t = e.split(Dn).filter(function(f) {
|
892
898
|
return f.length > 0;
|
893
899
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
894
|
-
var
|
895
|
-
if (
|
900
|
+
var o = i[n], s = o.split("/");
|
901
|
+
if (s.length === 0)
|
896
902
|
throw new Error("Invalid number skeleton");
|
897
|
-
for (var a =
|
903
|
+
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
898
904
|
var m = u[l];
|
899
905
|
if (m.length === 0)
|
900
906
|
throw new Error("Invalid number skeleton");
|
@@ -903,17 +909,17 @@ function Rn(e) {
|
|
903
909
|
}
|
904
910
|
return r;
|
905
911
|
}
|
906
|
-
function
|
912
|
+
function Gn(e) {
|
907
913
|
return e.replace(/^(.*?)-/, "");
|
908
914
|
}
|
909
|
-
var
|
910
|
-
function
|
915
|
+
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, kn = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
|
916
|
+
function vt(e) {
|
911
917
|
var t = {};
|
912
|
-
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) {
|
913
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)), "";
|
914
920
|
}), t;
|
915
921
|
}
|
916
|
-
function
|
922
|
+
function sr(e) {
|
917
923
|
switch (e) {
|
918
924
|
case "sign-auto":
|
919
925
|
return {
|
@@ -953,7 +959,7 @@ function ir(e) {
|
|
953
959
|
};
|
954
960
|
}
|
955
961
|
}
|
956
|
-
function
|
962
|
+
function $n(e) {
|
957
963
|
var t;
|
958
964
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
959
965
|
notation: "engineering"
|
@@ -961,17 +967,17 @@ function Gn(e) {
|
|
961
967
|
notation: "scientific"
|
962
968
|
}, e = e.slice(1)), t) {
|
963
969
|
var r = e.slice(0, 2);
|
964
|
-
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))
|
965
971
|
throw new Error("Malformed concise eng/scientific notation");
|
966
972
|
t.minimumIntegerDigits = e.length;
|
967
973
|
}
|
968
974
|
return t;
|
969
975
|
}
|
970
|
-
function
|
971
|
-
var t = {}, r =
|
976
|
+
function _t(e) {
|
977
|
+
var t = {}, r = sr(e);
|
972
978
|
return r || t;
|
973
979
|
}
|
974
|
-
function
|
980
|
+
function jn(e) {
|
975
981
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
976
982
|
var i = n[r];
|
977
983
|
switch (i.stem) {
|
@@ -995,7 +1001,7 @@ function kn(e) {
|
|
995
1001
|
continue;
|
996
1002
|
case "measure-unit":
|
997
1003
|
case "unit":
|
998
|
-
t.style = "unit", t.unit =
|
1004
|
+
t.style = "unit", t.unit = Gn(i.options[0]);
|
999
1005
|
continue;
|
1000
1006
|
case "compact-short":
|
1001
1007
|
case "K":
|
@@ -1006,13 +1012,13 @@ function kn(e) {
|
|
1006
1012
|
t.notation = "compact", t.compactDisplay = "long";
|
1007
1013
|
continue;
|
1008
1014
|
case "scientific":
|
1009
|
-
t =
|
1010
|
-
return
|
1015
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1016
|
+
return A(A({}, h), _t(l));
|
1011
1017
|
}, {}));
|
1012
1018
|
continue;
|
1013
1019
|
case "engineering":
|
1014
|
-
t =
|
1015
|
-
return
|
1020
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1021
|
+
return A(A({}, h), _t(l));
|
1016
1022
|
}, {}));
|
1017
1023
|
continue;
|
1018
1024
|
case "notation-simple":
|
@@ -1057,7 +1063,7 @@ function kn(e) {
|
|
1057
1063
|
case "integer-width":
|
1058
1064
|
if (i.options.length > 1)
|
1059
1065
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1060
|
-
i.options[0].replace(
|
1066
|
+
i.options[0].replace(kn, function(h, l, u, m, f, p) {
|
1061
1067
|
if (l)
|
1062
1068
|
t.minimumIntegerDigits = u.length;
|
1063
1069
|
else {
|
@@ -1070,32 +1076,32 @@ function kn(e) {
|
|
1070
1076
|
});
|
1071
1077
|
continue;
|
1072
1078
|
}
|
1073
|
-
if (
|
1079
|
+
if (or.test(i.stem)) {
|
1074
1080
|
t.minimumIntegerDigits = i.stem.length;
|
1075
1081
|
continue;
|
1076
1082
|
}
|
1077
|
-
if (
|
1083
|
+
if (yt.test(i.stem)) {
|
1078
1084
|
if (i.options.length > 1)
|
1079
1085
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1080
|
-
i.stem.replace(
|
1086
|
+
i.stem.replace(yt, function(h, l, u, m, f, p) {
|
1081
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), "";
|
1082
1088
|
});
|
1083
|
-
var
|
1084
|
-
|
1089
|
+
var o = i.options[0];
|
1090
|
+
o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), vt(o)));
|
1085
1091
|
continue;
|
1086
1092
|
}
|
1087
|
-
if (
|
1088
|
-
t =
|
1093
|
+
if (ir.test(i.stem)) {
|
1094
|
+
t = A(A({}, t), vt(i.stem));
|
1089
1095
|
continue;
|
1090
1096
|
}
|
1091
|
-
var
|
1092
|
-
|
1093
|
-
var a =
|
1094
|
-
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));
|
1095
1101
|
}
|
1096
1102
|
return t;
|
1097
1103
|
}
|
1098
|
-
var
|
1104
|
+
var Te = {
|
1099
1105
|
"001": [
|
1100
1106
|
"H",
|
1101
1107
|
"h"
|
@@ -2510,23 +2516,23 @@ var Se = {
|
|
2510
2516
|
"h"
|
2511
2517
|
]
|
2512
2518
|
};
|
2513
|
-
function
|
2519
|
+
function Vn(e, t) {
|
2514
2520
|
for (var r = "", n = 0; n < e.length; n++) {
|
2515
2521
|
var i = e.charAt(n);
|
2516
2522
|
if (i === "j") {
|
2517
|
-
for (var
|
2518
|
-
|
2519
|
-
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);
|
2520
2526
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2521
2527
|
r += h;
|
2522
|
-
for (;
|
2528
|
+
for (; s-- > 0; )
|
2523
2529
|
r = l + r;
|
2524
2530
|
} else
|
2525
2531
|
i === "J" ? r += "H" : r += i;
|
2526
2532
|
}
|
2527
2533
|
return r;
|
2528
2534
|
}
|
2529
|
-
function
|
2535
|
+
function Xn(e) {
|
2530
2536
|
var t = e.hourCycle;
|
2531
2537
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2532
2538
|
e.hourCycles && // @ts-ignore
|
@@ -2545,23 +2551,23 @@ function jn(e) {
|
|
2545
2551
|
}
|
2546
2552
|
var r = e.language, n;
|
2547
2553
|
r !== "root" && (n = e.maximize().region);
|
2548
|
-
var i =
|
2554
|
+
var i = Te[n || ""] || Te[r || ""] || Te["".concat(r, "-001")] || Te["001"];
|
2549
2555
|
return i[0];
|
2550
2556
|
}
|
2551
|
-
var
|
2557
|
+
var Xe, Wn = new RegExp("^".concat(nr.source, "*")), zn = new RegExp("".concat(nr.source, "*$"));
|
2552
2558
|
function v(e, t) {
|
2553
2559
|
return { start: e, end: t };
|
2554
2560
|
}
|
2555
|
-
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) {
|
2556
2562
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2557
|
-
},
|
2563
|
+
}, Ye = !0;
|
2558
2564
|
try {
|
2559
|
-
var
|
2560
|
-
|
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";
|
2561
2567
|
} catch {
|
2562
|
-
|
2568
|
+
Ye = !1;
|
2563
2569
|
}
|
2564
|
-
var
|
2570
|
+
var Et = Zn ? (
|
2565
2571
|
// Native
|
2566
2572
|
function(t, r, n) {
|
2567
2573
|
return t.startsWith(r, n);
|
@@ -2571,31 +2577,31 @@ var vt = Wn ? (
|
|
2571
2577
|
function(t, r, n) {
|
2572
2578
|
return t.slice(n, n + r.length) === r;
|
2573
2579
|
}
|
2574
|
-
),
|
2580
|
+
), Ke = Qn ? String.fromCodePoint : (
|
2575
2581
|
// IE11
|
2576
2582
|
function() {
|
2577
2583
|
for (var t = [], r = 0; r < arguments.length; r++)
|
2578
2584
|
t[r] = arguments[r];
|
2579
|
-
for (var n = "", i = t.length,
|
2580
|
-
if (
|
2581
|
-
throw RangeError(
|
2582
|
-
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);
|
2583
2589
|
}
|
2584
2590
|
return n;
|
2585
2591
|
}
|
2586
|
-
),
|
2592
|
+
), xt = (
|
2587
2593
|
// native
|
2588
|
-
|
2594
|
+
qn ? Object.fromEntries : (
|
2589
2595
|
// Ponyfill
|
2590
2596
|
function(t) {
|
2591
2597
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2592
|
-
var
|
2593
|
-
r[
|
2598
|
+
var o = i[n], s = o[0], a = o[1];
|
2599
|
+
r[s] = a;
|
2594
2600
|
}
|
2595
2601
|
return r;
|
2596
2602
|
}
|
2597
2603
|
)
|
2598
|
-
),
|
2604
|
+
), ar = Jn ? (
|
2599
2605
|
// Native
|
2600
2606
|
function(t, r) {
|
2601
2607
|
return t.codePointAt(r);
|
@@ -2605,11 +2611,11 @@ var vt = Wn ? (
|
|
2605
2611
|
function(t, r) {
|
2606
2612
|
var n = t.length;
|
2607
2613
|
if (!(r < 0 || r >= n)) {
|
2608
|
-
var i = t.charCodeAt(r),
|
2609
|
-
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;
|
2610
2616
|
}
|
2611
2617
|
}
|
2612
|
-
),
|
2618
|
+
), ni = Yn ? (
|
2613
2619
|
// Native
|
2614
2620
|
function(t) {
|
2615
2621
|
return t.trimStart();
|
@@ -2617,9 +2623,9 @@ var vt = Wn ? (
|
|
2617
2623
|
) : (
|
2618
2624
|
// Ponyfill
|
2619
2625
|
function(t) {
|
2620
|
-
return t.replace(
|
2626
|
+
return t.replace(Wn, "");
|
2621
2627
|
}
|
2622
|
-
),
|
2628
|
+
), ii = Kn ? (
|
2623
2629
|
// Native
|
2624
2630
|
function(t) {
|
2625
2631
|
return t.trimEnd();
|
@@ -2627,32 +2633,32 @@ var vt = Wn ? (
|
|
2627
2633
|
) : (
|
2628
2634
|
// Ponyfill
|
2629
2635
|
function(t) {
|
2630
|
-
return t.replace(
|
2636
|
+
return t.replace(zn, "");
|
2631
2637
|
}
|
2632
2638
|
);
|
2633
|
-
function
|
2639
|
+
function lr(e, t) {
|
2634
2640
|
return new RegExp(e, t);
|
2635
2641
|
}
|
2636
|
-
var
|
2637
|
-
if (
|
2638
|
-
var
|
2639
|
-
|
2642
|
+
var et;
|
2643
|
+
if (Ye) {
|
2644
|
+
var wt = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2645
|
+
et = function(t, r) {
|
2640
2646
|
var n;
|
2641
|
-
|
2642
|
-
var i =
|
2647
|
+
wt.lastIndex = r;
|
2648
|
+
var i = wt.exec(t);
|
2643
2649
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2644
2650
|
};
|
2645
2651
|
} else
|
2646
|
-
|
2652
|
+
et = function(t, r) {
|
2647
2653
|
for (var n = []; ; ) {
|
2648
|
-
var i =
|
2649
|
-
if (i === void 0 ||
|
2654
|
+
var i = ar(t, r);
|
2655
|
+
if (i === void 0 || ur(i) || li(i))
|
2650
2656
|
break;
|
2651
2657
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2652
2658
|
}
|
2653
|
-
return
|
2659
|
+
return Ke.apply(void 0, n);
|
2654
2660
|
};
|
2655
|
-
var
|
2661
|
+
var oi = (
|
2656
2662
|
/** @class */
|
2657
2663
|
function() {
|
2658
2664
|
function e(t, r) {
|
@@ -2664,35 +2670,35 @@ var ni = (
|
|
2664
2670
|
return this.parseMessage(0, "", !1);
|
2665
2671
|
}, e.prototype.parseMessage = function(t, r, n) {
|
2666
2672
|
for (var i = []; !this.isEOF(); ) {
|
2667
|
-
var
|
2668
|
-
if (
|
2669
|
-
var
|
2670
|
-
if (
|
2671
|
-
return
|
2672
|
-
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);
|
2673
2679
|
} else {
|
2674
|
-
if (
|
2680
|
+
if (o === 125 && t > 0)
|
2675
2681
|
break;
|
2676
|
-
if (
|
2682
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2677
2683
|
var a = this.clonePosition();
|
2678
2684
|
this.bump(), i.push({
|
2679
|
-
type:
|
2685
|
+
type: T.pound,
|
2680
2686
|
location: v(a, this.clonePosition())
|
2681
2687
|
});
|
2682
|
-
} else if (
|
2688
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2683
2689
|
if (n)
|
2684
2690
|
break;
|
2685
2691
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2686
|
-
} else if (
|
2687
|
-
var
|
2688
|
-
if (
|
2689
|
-
return
|
2690
|
-
i.push(
|
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);
|
2691
2697
|
} else {
|
2692
|
-
var
|
2693
|
-
if (
|
2694
|
-
return
|
2695
|
-
i.push(
|
2698
|
+
var s = this.parseLiteral(t, r);
|
2699
|
+
if (s.err)
|
2700
|
+
return s;
|
2701
|
+
i.push(s.val);
|
2696
2702
|
}
|
2697
2703
|
}
|
2698
2704
|
}
|
@@ -2704,26 +2710,26 @@ var ni = (
|
|
2704
2710
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2705
2711
|
return {
|
2706
2712
|
val: {
|
2707
|
-
type:
|
2713
|
+
type: T.literal,
|
2708
2714
|
value: "<".concat(i, "/>"),
|
2709
2715
|
location: v(n, this.clonePosition())
|
2710
2716
|
},
|
2711
2717
|
err: null
|
2712
2718
|
};
|
2713
2719
|
if (this.bumpIf(">")) {
|
2714
|
-
var
|
2715
|
-
if (
|
2716
|
-
return
|
2717
|
-
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();
|
2718
2724
|
if (this.bumpIf("</")) {
|
2719
|
-
if (this.isEOF() || !
|
2725
|
+
if (this.isEOF() || !tt(this.char()))
|
2720
2726
|
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2721
2727
|
var h = this.clonePosition(), l = this.parseTagName();
|
2722
2728
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2723
2729
|
val: {
|
2724
|
-
type:
|
2730
|
+
type: T.tag,
|
2725
2731
|
value: i,
|
2726
|
-
children:
|
2732
|
+
children: s,
|
2727
2733
|
location: v(n, this.clonePosition())
|
2728
2734
|
},
|
2729
2735
|
err: null
|
@@ -2734,21 +2740,21 @@ var ni = (
|
|
2734
2740
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2735
2741
|
}, e.prototype.parseTagName = function() {
|
2736
2742
|
var t = this.offset();
|
2737
|
-
for (this.bump(); !this.isEOF() &&
|
2743
|
+
for (this.bump(); !this.isEOF() && ai(this.char()); )
|
2738
2744
|
this.bump();
|
2739
2745
|
return this.message.slice(t, this.offset());
|
2740
2746
|
}, e.prototype.parseLiteral = function(t, r) {
|
2741
2747
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
2742
|
-
var
|
2743
|
-
if (s) {
|
2744
|
-
i += s;
|
2745
|
-
continue;
|
2746
|
-
}
|
2747
|
-
var o = this.tryParseUnquoted(t, r);
|
2748
|
+
var o = this.tryParseQuote(r);
|
2748
2749
|
if (o) {
|
2749
2750
|
i += o;
|
2750
2751
|
continue;
|
2751
2752
|
}
|
2753
|
+
var s = this.tryParseUnquoted(t, r);
|
2754
|
+
if (s) {
|
2755
|
+
i += s;
|
2756
|
+
continue;
|
2757
|
+
}
|
2752
2758
|
var a = this.tryParseLeftAngleBracket();
|
2753
2759
|
if (a) {
|
2754
2760
|
i += a;
|
@@ -2758,12 +2764,12 @@ var ni = (
|
|
2758
2764
|
}
|
2759
2765
|
var h = v(n, this.clonePosition());
|
2760
2766
|
return {
|
2761
|
-
val: { type:
|
2767
|
+
val: { type: T.literal, value: i, location: h },
|
2762
2768
|
err: null
|
2763
2769
|
};
|
2764
2770
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2765
2771
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2766
|
-
!
|
2772
|
+
!si(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2767
2773
|
}, e.prototype.tryParseQuote = function(t) {
|
2768
2774
|
if (this.isEOF() || this.char() !== 39)
|
2769
2775
|
return null;
|
@@ -2797,12 +2803,12 @@ var ni = (
|
|
2797
2803
|
r.push(n);
|
2798
2804
|
this.bump();
|
2799
2805
|
}
|
2800
|
-
return
|
2806
|
+
return Ke.apply(void 0, r);
|
2801
2807
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2802
2808
|
if (this.isEOF())
|
2803
2809
|
return null;
|
2804
2810
|
var n = this.char();
|
2805
|
-
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));
|
2806
2812
|
}, e.prototype.parseArgument = function(t, r) {
|
2807
2813
|
var n = this.clonePosition();
|
2808
2814
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2818,7 +2824,7 @@ var ni = (
|
|
2818
2824
|
case 125:
|
2819
2825
|
return this.bump(), {
|
2820
2826
|
val: {
|
2821
|
-
type:
|
2827
|
+
type: T.argument,
|
2822
2828
|
// value does not include the opening and closing braces.
|
2823
2829
|
value: i,
|
2824
2830
|
location: v(n, this.clonePosition())
|
@@ -2831,15 +2837,15 @@ var ni = (
|
|
2831
2837
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2832
2838
|
}
|
2833
2839
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2834
|
-
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;
|
2835
2841
|
this.bumpTo(i);
|
2836
|
-
var
|
2837
|
-
return { value: n, location:
|
2842
|
+
var o = this.clonePosition(), s = v(t, o);
|
2843
|
+
return { value: n, location: s };
|
2838
2844
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2839
|
-
var
|
2845
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2840
2846
|
switch (a) {
|
2841
2847
|
case "":
|
2842
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, v(
|
2848
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, h));
|
2843
2849
|
case "number":
|
2844
2850
|
case "date":
|
2845
2851
|
case "time": {
|
@@ -2850,7 +2856,7 @@ var ni = (
|
|
2850
2856
|
var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2851
2857
|
if (m.err)
|
2852
2858
|
return m;
|
2853
|
-
var f =
|
2859
|
+
var f = ii(m.val);
|
2854
2860
|
if (f.length === 0)
|
2855
2861
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2856
2862
|
var p = v(u, this.clonePosition());
|
@@ -2860,37 +2866,37 @@ var ni = (
|
|
2860
2866
|
if (g.err)
|
2861
2867
|
return g;
|
2862
2868
|
var b = v(i, this.clonePosition());
|
2863
|
-
if (l &&
|
2864
|
-
var d =
|
2869
|
+
if (l && Et(l?.style, "::", 0)) {
|
2870
|
+
var d = ni(l.style.slice(2));
|
2865
2871
|
if (a === "number") {
|
2866
2872
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2867
2873
|
return m.err ? m : {
|
2868
|
-
val: { type:
|
2874
|
+
val: { type: T.number, value: n, location: b, style: m.val },
|
2869
2875
|
err: null
|
2870
2876
|
};
|
2871
2877
|
} else {
|
2872
2878
|
if (d.length === 0)
|
2873
2879
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2874
|
-
var
|
2875
|
-
this.locale && (
|
2880
|
+
var x = d;
|
2881
|
+
this.locale && (x = Vn(d, this.locale));
|
2876
2882
|
var f = {
|
2877
|
-
type:
|
2878
|
-
pattern:
|
2883
|
+
type: ae.dateTime,
|
2884
|
+
pattern: x,
|
2879
2885
|
location: l.styleLocation,
|
2880
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2881
|
-
},
|
2886
|
+
parsedOptions: this.shouldParseSkeletons ? Rn(x) : {}
|
2887
|
+
}, _ = a === "date" ? T.date : T.time;
|
2882
2888
|
return {
|
2883
|
-
val: { type:
|
2889
|
+
val: { type: _, value: n, location: b, style: f },
|
2884
2890
|
err: null
|
2885
2891
|
};
|
2886
2892
|
}
|
2887
2893
|
}
|
2888
2894
|
return {
|
2889
2895
|
val: {
|
2890
|
-
type: a === "number" ?
|
2896
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
2891
2897
|
value: n,
|
2892
2898
|
location: b,
|
2893
|
-
style: (
|
2899
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
2894
2900
|
},
|
2895
2901
|
err: null
|
2896
2902
|
};
|
@@ -2900,7 +2906,7 @@ var ni = (
|
|
2900
2906
|
case "select": {
|
2901
2907
|
var w = this.clonePosition();
|
2902
2908
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2903
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w,
|
2909
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w, Me({}, w)));
|
2904
2910
|
this.bumpSpace();
|
2905
2911
|
var U = this.parseIdentifierIfPossible(), N = 0;
|
2906
2912
|
if (a !== "select" && U.value === "offset") {
|
@@ -2912,35 +2918,35 @@ var ni = (
|
|
2912
2918
|
return m;
|
2913
2919
|
this.bumpSpace(), U = this.parseIdentifierIfPossible(), N = m.val;
|
2914
2920
|
}
|
2915
|
-
var
|
2916
|
-
if (
|
2917
|
-
return
|
2921
|
+
var S = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
2922
|
+
if (S.err)
|
2923
|
+
return S;
|
2918
2924
|
var g = this.tryParseArgumentClose(i);
|
2919
2925
|
if (g.err)
|
2920
2926
|
return g;
|
2921
|
-
var
|
2927
|
+
var C = v(i, this.clonePosition());
|
2922
2928
|
return a === "select" ? {
|
2923
2929
|
val: {
|
2924
|
-
type:
|
2930
|
+
type: T.select,
|
2925
2931
|
value: n,
|
2926
|
-
options:
|
2927
|
-
location:
|
2932
|
+
options: xt(S.val),
|
2933
|
+
location: C
|
2928
2934
|
},
|
2929
2935
|
err: null
|
2930
2936
|
} : {
|
2931
2937
|
val: {
|
2932
|
-
type:
|
2938
|
+
type: T.plural,
|
2933
2939
|
value: n,
|
2934
|
-
options:
|
2940
|
+
options: xt(S.val),
|
2935
2941
|
offset: N,
|
2936
2942
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2937
|
-
location:
|
2943
|
+
location: C
|
2938
2944
|
},
|
2939
2945
|
err: null
|
2940
2946
|
};
|
2941
2947
|
}
|
2942
2948
|
default:
|
2943
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, v(
|
2949
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(s, h));
|
2944
2950
|
}
|
2945
2951
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2946
2952
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -2982,21 +2988,21 @@ var ni = (
|
|
2982
2988
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2983
2989
|
var n = [];
|
2984
2990
|
try {
|
2985
|
-
n =
|
2991
|
+
n = Un(t);
|
2986
2992
|
} catch {
|
2987
2993
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2988
2994
|
}
|
2989
2995
|
return {
|
2990
2996
|
val: {
|
2991
|
-
type:
|
2997
|
+
type: ae.number,
|
2992
2998
|
tokens: n,
|
2993
2999
|
location: r,
|
2994
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3000
|
+
parsedOptions: this.shouldParseSkeletons ? jn(n) : {}
|
2995
3001
|
},
|
2996
3002
|
err: null
|
2997
3003
|
};
|
2998
3004
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2999
|
-
for (var
|
3005
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
3000
3006
|
if (l.length === 0) {
|
3001
3007
|
var m = this.clonePosition();
|
3002
3008
|
if (r !== "select" && this.bumpIf("=")) {
|
@@ -3009,7 +3015,7 @@ var ni = (
|
|
3009
3015
|
}
|
3010
3016
|
if (h.has(l))
|
3011
3017
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3012
|
-
l === "other" && (
|
3018
|
+
l === "other" && (s = !0), this.bumpSpace();
|
3013
3019
|
var p = this.clonePosition();
|
3014
3020
|
if (!this.bumpIf("{"))
|
3015
3021
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
@@ -3025,21 +3031,21 @@ var ni = (
|
|
3025
3031
|
value: g.val,
|
3026
3032
|
location: v(p, this.clonePosition())
|
3027
3033
|
}
|
3028
|
-
]), h.add(l), this.bumpSpace(),
|
3034
|
+
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
3029
3035
|
}
|
3030
|
-
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 && !
|
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 };
|
3031
3037
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3032
3038
|
var n = 1, i = this.clonePosition();
|
3033
3039
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
3034
|
-
for (var
|
3040
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
3035
3041
|
var a = this.char();
|
3036
3042
|
if (a >= 48 && a <= 57)
|
3037
|
-
|
3043
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
3038
3044
|
else
|
3039
3045
|
break;
|
3040
3046
|
}
|
3041
3047
|
var h = v(i, this.clonePosition());
|
3042
|
-
return
|
3048
|
+
return o ? (s *= n, ti(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3043
3049
|
}, e.prototype.offset = function() {
|
3044
3050
|
return this.position.offset;
|
3045
3051
|
}, e.prototype.isEOF = function() {
|
@@ -3054,7 +3060,7 @@ var ni = (
|
|
3054
3060
|
var t = this.position.offset;
|
3055
3061
|
if (t >= this.message.length)
|
3056
3062
|
throw Error("out of bound");
|
3057
|
-
var r =
|
3063
|
+
var r = ar(this.message, t);
|
3058
3064
|
if (r === void 0)
|
3059
3065
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3060
3066
|
return r;
|
@@ -3073,7 +3079,7 @@ var ni = (
|
|
3073
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);
|
3074
3080
|
}
|
3075
3081
|
}, e.prototype.bumpIf = function(t) {
|
3076
|
-
if (
|
3082
|
+
if (Et(this.message, t, this.offset())) {
|
3077
3083
|
for (var r = 0; r < t.length; r++)
|
3078
3084
|
this.bump();
|
3079
3085
|
return !0;
|
@@ -3095,7 +3101,7 @@ var ni = (
|
|
3095
3101
|
break;
|
3096
3102
|
}
|
3097
3103
|
}, e.prototype.bumpSpace = function() {
|
3098
|
-
for (; !this.isEOF() &&
|
3104
|
+
for (; !this.isEOF() && ur(this.char()); )
|
3099
3105
|
this.bump();
|
3100
3106
|
}, e.prototype.peek = function() {
|
3101
3107
|
if (this.isEOF())
|
@@ -3105,97 +3111,97 @@ var ni = (
|
|
3105
3111
|
}, e;
|
3106
3112
|
}()
|
3107
3113
|
);
|
3108
|
-
function
|
3114
|
+
function tt(e) {
|
3109
3115
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3110
3116
|
}
|
3111
|
-
function
|
3112
|
-
return
|
3117
|
+
function si(e) {
|
3118
|
+
return tt(e) || e === 47;
|
3113
3119
|
}
|
3114
|
-
function
|
3120
|
+
function ai(e) {
|
3115
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;
|
3116
3122
|
}
|
3117
|
-
function
|
3123
|
+
function ur(e) {
|
3118
3124
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3119
3125
|
}
|
3120
|
-
function
|
3126
|
+
function li(e) {
|
3121
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;
|
3122
3128
|
}
|
3123
|
-
function
|
3129
|
+
function rt(e) {
|
3124
3130
|
e.forEach(function(t) {
|
3125
|
-
if (delete t.location,
|
3131
|
+
if (delete t.location, Kt(t) || er(t))
|
3126
3132
|
for (var r in t.options)
|
3127
|
-
delete t.options[r].location,
|
3133
|
+
delete t.options[r].location, rt(t.options[r].value);
|
3128
3134
|
else
|
3129
|
-
|
3135
|
+
qt(t) && rr(t.style) || (Jt(t) || Yt(t)) && Je(t.style) ? delete t.style.location : tr(t) && rt(t.children);
|
3130
3136
|
});
|
3131
3137
|
}
|
3132
|
-
function
|
3133
|
-
t === void 0 && (t = {}), t =
|
3134
|
-
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();
|
3135
3141
|
if (r.err) {
|
3136
3142
|
var n = SyntaxError(y[r.err.kind]);
|
3137
3143
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3138
3144
|
}
|
3139
|
-
return t?.captureLocation ||
|
3145
|
+
return t?.captureLocation || rt(r.val), r.val;
|
3140
3146
|
}
|
3141
|
-
var
|
3147
|
+
var le;
|
3142
3148
|
(function(e) {
|
3143
3149
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3144
|
-
})(
|
3145
|
-
var
|
3150
|
+
})(le || (le = {}));
|
3151
|
+
var Fe = (
|
3146
3152
|
/** @class */
|
3147
3153
|
function(e) {
|
3148
|
-
|
3154
|
+
Oe(t, e);
|
3149
3155
|
function t(r, n, i) {
|
3150
|
-
var
|
3151
|
-
return
|
3156
|
+
var o = e.call(this, r) || this;
|
3157
|
+
return o.code = n, o.originalMessage = i, o;
|
3152
3158
|
}
|
3153
3159
|
return t.prototype.toString = function() {
|
3154
3160
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3155
3161
|
}, t;
|
3156
3162
|
}(Error)
|
3157
|
-
),
|
3163
|
+
), Ct = (
|
3158
3164
|
/** @class */
|
3159
3165
|
function(e) {
|
3160
|
-
|
3161
|
-
function t(r, n, i,
|
3162
|
-
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;
|
3163
3169
|
}
|
3164
3170
|
return t;
|
3165
|
-
}(
|
3166
|
-
),
|
3171
|
+
}(Fe)
|
3172
|
+
), hi = (
|
3167
3173
|
/** @class */
|
3168
3174
|
function(e) {
|
3169
|
-
|
3175
|
+
Oe(t, e);
|
3170
3176
|
function t(r, n, i) {
|
3171
|
-
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;
|
3172
3178
|
}
|
3173
3179
|
return t;
|
3174
|
-
}(
|
3175
|
-
),
|
3180
|
+
}(Fe)
|
3181
|
+
), ci = (
|
3176
3182
|
/** @class */
|
3177
3183
|
function(e) {
|
3178
|
-
|
3184
|
+
Oe(t, e);
|
3179
3185
|
function t(r, n) {
|
3180
|
-
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;
|
3181
3187
|
}
|
3182
3188
|
return t;
|
3183
|
-
}(
|
3189
|
+
}(Fe)
|
3184
3190
|
), P;
|
3185
3191
|
(function(e) {
|
3186
3192
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3187
3193
|
})(P || (P = {}));
|
3188
|
-
function
|
3194
|
+
function fi(e) {
|
3189
3195
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3190
3196
|
var n = t[t.length - 1];
|
3191
3197
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
3192
3198
|
}, []);
|
3193
3199
|
}
|
3194
|
-
function
|
3200
|
+
function mi(e) {
|
3195
3201
|
return typeof e == "function";
|
3196
3202
|
}
|
3197
|
-
function
|
3198
|
-
if (e.length === 1 &&
|
3203
|
+
function Be(e, t, r, n, i, o, s) {
|
3204
|
+
if (e.length === 1 && bt(e[0]))
|
3199
3205
|
return [
|
3200
3206
|
{
|
3201
3207
|
type: P.literal,
|
@@ -3204,105 +3210,105 @@ function Ae(e, t, r, n, i, s, o) {
|
|
3204
3210
|
];
|
3205
3211
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3206
3212
|
var u = l[h];
|
3207
|
-
if (
|
3213
|
+
if (bt(u)) {
|
3208
3214
|
a.push({
|
3209
3215
|
type: P.literal,
|
3210
3216
|
value: u.value
|
3211
3217
|
});
|
3212
3218
|
continue;
|
3213
3219
|
}
|
3214
|
-
if (
|
3215
|
-
typeof
|
3220
|
+
if (On(u)) {
|
3221
|
+
typeof o == "number" && a.push({
|
3216
3222
|
type: P.literal,
|
3217
|
-
value: r.getNumberFormat(t).format(
|
3223
|
+
value: r.getNumberFormat(t).format(o)
|
3218
3224
|
});
|
3219
3225
|
continue;
|
3220
3226
|
}
|
3221
3227
|
var m = u.value;
|
3222
3228
|
if (!(i && m in i))
|
3223
|
-
throw new
|
3229
|
+
throw new ci(m, s);
|
3224
3230
|
var f = i[m];
|
3225
|
-
if (
|
3231
|
+
if (Pn(u)) {
|
3226
3232
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3227
3233
|
type: typeof f == "string" ? P.literal : P.object,
|
3228
3234
|
value: f
|
3229
3235
|
});
|
3230
3236
|
continue;
|
3231
3237
|
}
|
3232
|
-
if (
|
3233
|
-
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;
|
3234
3240
|
a.push({
|
3235
3241
|
type: P.literal,
|
3236
3242
|
value: r.getDateTimeFormat(t, p).format(f)
|
3237
3243
|
});
|
3238
3244
|
continue;
|
3239
3245
|
}
|
3240
|
-
if (
|
3241
|
-
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;
|
3242
3248
|
a.push({
|
3243
3249
|
type: P.literal,
|
3244
3250
|
value: r.getDateTimeFormat(t, p).format(f)
|
3245
3251
|
});
|
3246
3252
|
continue;
|
3247
3253
|
}
|
3248
|
-
if (
|
3249
|
-
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;
|
3250
3256
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3251
3257
|
type: P.literal,
|
3252
3258
|
value: r.getNumberFormat(t, p).format(f)
|
3253
3259
|
});
|
3254
3260
|
continue;
|
3255
3261
|
}
|
3256
|
-
if (
|
3262
|
+
if (tr(u)) {
|
3257
3263
|
var g = u.children, b = u.value, d = i[b];
|
3258
|
-
if (!
|
3259
|
-
throw new
|
3260
|
-
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) {
|
3261
3267
|
return N.value;
|
3262
3268
|
}));
|
3263
|
-
Array.isArray(
|
3269
|
+
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(N) {
|
3264
3270
|
return {
|
3265
3271
|
type: typeof N == "string" ? P.literal : P.object,
|
3266
3272
|
value: N
|
3267
3273
|
};
|
3268
3274
|
}));
|
3269
3275
|
}
|
3270
|
-
if (
|
3276
|
+
if (Kt(u)) {
|
3271
3277
|
var w = u.options[f] || u.options.other;
|
3272
3278
|
if (!w)
|
3273
|
-
throw new
|
3274
|
-
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));
|
3275
3281
|
continue;
|
3276
3282
|
}
|
3277
|
-
if (
|
3283
|
+
if (er(u)) {
|
3278
3284
|
var w = u.options["=".concat(f)];
|
3279
3285
|
if (!w) {
|
3280
3286
|
if (!Intl.PluralRules)
|
3281
|
-
throw new
|
3287
|
+
throw new Fe(`Intl.PluralRules is not available in this environment.
|
3282
3288
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3283
|
-
`,
|
3289
|
+
`, le.MISSING_INTL_API, s);
|
3284
3290
|
var U = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3285
3291
|
w = u.options[U] || u.options.other;
|
3286
3292
|
}
|
3287
3293
|
if (!w)
|
3288
|
-
throw new
|
3289
|
-
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)));
|
3290
3296
|
continue;
|
3291
3297
|
}
|
3292
3298
|
}
|
3293
|
-
return
|
3299
|
+
return fi(a);
|
3294
3300
|
}
|
3295
|
-
function
|
3296
|
-
return t ?
|
3297
|
-
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;
|
3298
3304
|
}, {})) : e;
|
3299
3305
|
}
|
3300
|
-
function
|
3306
|
+
function pi(e, t) {
|
3301
3307
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3302
|
-
return r[n] =
|
3303
|
-
},
|
3308
|
+
return r[n] = di(e[n], t[n]), r;
|
3309
|
+
}, $({}, e)) : e;
|
3304
3310
|
}
|
3305
|
-
function
|
3311
|
+
function We(e) {
|
3306
3312
|
return {
|
3307
3313
|
create: function() {
|
3308
3314
|
return {
|
@@ -3316,50 +3322,50 @@ function Ve(e) {
|
|
3316
3322
|
}
|
3317
3323
|
};
|
3318
3324
|
}
|
3319
|
-
function
|
3325
|
+
function gi(e) {
|
3320
3326
|
return e === void 0 && (e = {
|
3321
3327
|
number: {},
|
3322
3328
|
dateTime: {},
|
3323
3329
|
pluralRules: {}
|
3324
3330
|
}), {
|
3325
|
-
getNumberFormat:
|
3331
|
+
getNumberFormat: je(function() {
|
3326
3332
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3327
3333
|
r[n] = arguments[n];
|
3328
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3334
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
3329
3335
|
}, {
|
3330
|
-
cache:
|
3331
|
-
strategy:
|
3336
|
+
cache: We(e.number),
|
3337
|
+
strategy: Ve.variadic
|
3332
3338
|
}),
|
3333
|
-
getDateTimeFormat:
|
3339
|
+
getDateTimeFormat: je(function() {
|
3334
3340
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3335
3341
|
r[n] = arguments[n];
|
3336
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3342
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
3337
3343
|
}, {
|
3338
|
-
cache:
|
3339
|
-
strategy:
|
3344
|
+
cache: We(e.dateTime),
|
3345
|
+
strategy: Ve.variadic
|
3340
3346
|
}),
|
3341
|
-
getPluralRules:
|
3347
|
+
getPluralRules: je(function() {
|
3342
3348
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3343
3349
|
r[n] = arguments[n];
|
3344
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3350
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
3345
3351
|
}, {
|
3346
|
-
cache:
|
3347
|
-
strategy:
|
3352
|
+
cache: We(e.pluralRules),
|
3353
|
+
strategy: Ve.variadic
|
3348
3354
|
})
|
3349
3355
|
};
|
3350
3356
|
}
|
3351
|
-
var
|
3357
|
+
var bi = (
|
3352
3358
|
/** @class */
|
3353
3359
|
function() {
|
3354
3360
|
function e(t, r, n, i) {
|
3355
3361
|
r === void 0 && (r = e.defaultLocale);
|
3356
|
-
var
|
3362
|
+
var o = this;
|
3357
3363
|
if (this.formatterCache = {
|
3358
3364
|
number: {},
|
3359
3365
|
dateTime: {},
|
3360
3366
|
pluralRules: {}
|
3361
3367
|
}, this.format = function(h) {
|
3362
|
-
var l =
|
3368
|
+
var l = o.formatToParts(h);
|
3363
3369
|
if (l.length === 1)
|
3364
3370
|
return l[0].value;
|
3365
3371
|
var u = l.reduce(function(m, f) {
|
@@ -3367,26 +3373,26 @@ var pi = (
|
|
3367
3373
|
}, []);
|
3368
3374
|
return u.length <= 1 ? u[0] || "" : u;
|
3369
3375
|
}, this.formatToParts = function(h) {
|
3370
|
-
return
|
3376
|
+
return Be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3371
3377
|
}, this.resolvedOptions = function() {
|
3372
3378
|
var h;
|
3373
3379
|
return {
|
3374
|
-
locale: ((h =
|
3380
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
3375
3381
|
};
|
3376
3382
|
}, this.getAst = function() {
|
3377
|
-
return
|
3383
|
+
return o.ast;
|
3378
3384
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3379
3385
|
if (this.message = t, !e.__parse)
|
3380
3386
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3381
|
-
var
|
3382
|
-
|
3383
|
-
var a =
|
3384
|
-
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 }));
|
3385
3391
|
} else
|
3386
3392
|
this.ast = t;
|
3387
3393
|
if (!Array.isArray(this.ast))
|
3388
3394
|
throw new TypeError("A message must be provided as a String or AST.");
|
3389
|
-
this.formats =
|
3395
|
+
this.formats = pi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
3390
3396
|
}
|
3391
3397
|
return Object.defineProperty(e, "defaultLocale", {
|
3392
3398
|
get: function() {
|
@@ -3399,7 +3405,7 @@ var pi = (
|
|
3399
3405
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3400
3406
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3401
3407
|
}
|
3402
|
-
}, e.__parse =
|
3408
|
+
}, e.__parse = ui, e.formats = {
|
3403
3409
|
number: {
|
3404
3410
|
integer: {
|
3405
3411
|
maximumFractionDigits: 0
|
@@ -3460,7 +3466,7 @@ var pi = (
|
|
3460
3466
|
}, e;
|
3461
3467
|
}()
|
3462
3468
|
);
|
3463
|
-
function
|
3469
|
+
function yi(e, t) {
|
3464
3470
|
if (t == null)
|
3465
3471
|
return;
|
3466
3472
|
if (t in e)
|
@@ -3470,9 +3476,9 @@ function gi(e, t) {
|
|
3470
3476
|
for (let i = 0; i < r.length; i++)
|
3471
3477
|
if (typeof n == "object") {
|
3472
3478
|
if (i > 0) {
|
3473
|
-
const
|
3474
|
-
if (
|
3475
|
-
n = n[
|
3479
|
+
const o = r.slice(i, r.length).join(".");
|
3480
|
+
if (o in n) {
|
3481
|
+
n = n[o];
|
3476
3482
|
break;
|
3477
3483
|
}
|
3478
3484
|
}
|
@@ -3481,92 +3487,92 @@ function gi(e, t) {
|
|
3481
3487
|
n = void 0;
|
3482
3488
|
return n;
|
3483
3489
|
}
|
3484
|
-
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) => {
|
3485
3491
|
if (t == null)
|
3486
3492
|
return;
|
3487
|
-
if (t in
|
3488
|
-
return
|
3489
|
-
const r =
|
3493
|
+
if (t in W && e in W[t])
|
3494
|
+
return W[t][e];
|
3495
|
+
const r = Re(t);
|
3490
3496
|
for (let n = 0; n < r.length; n++) {
|
3491
|
-
const i = r[n],
|
3492
|
-
if (
|
3493
|
-
return
|
3497
|
+
const i = r[n], o = Ei(i, e);
|
3498
|
+
if (o)
|
3499
|
+
return vi(e, t, o);
|
3494
3500
|
}
|
3495
3501
|
};
|
3496
|
-
let
|
3497
|
-
const
|
3498
|
-
function
|
3499
|
-
return
|
3502
|
+
let at;
|
3503
|
+
const ce = Pe({});
|
3504
|
+
function _i(e) {
|
3505
|
+
return at[e] || null;
|
3500
3506
|
}
|
3501
|
-
function
|
3502
|
-
return e in
|
3507
|
+
function cr(e) {
|
3508
|
+
return e in at;
|
3503
3509
|
}
|
3504
|
-
function
|
3505
|
-
if (!
|
3510
|
+
function Ei(e, t) {
|
3511
|
+
if (!cr(e))
|
3506
3512
|
return null;
|
3507
|
-
const r =
|
3508
|
-
return
|
3513
|
+
const r = _i(e);
|
3514
|
+
return yi(r, t);
|
3509
3515
|
}
|
3510
|
-
function
|
3516
|
+
function xi(e) {
|
3511
3517
|
if (e == null)
|
3512
3518
|
return;
|
3513
|
-
const t =
|
3519
|
+
const t = Re(e);
|
3514
3520
|
for (let r = 0; r < t.length; r++) {
|
3515
3521
|
const n = t[r];
|
3516
|
-
if (
|
3522
|
+
if (cr(n))
|
3517
3523
|
return n;
|
3518
3524
|
}
|
3519
3525
|
}
|
3520
|
-
function
|
3521
|
-
delete
|
3526
|
+
function fr(e, ...t) {
|
3527
|
+
delete W[e], ce.update((r) => (r[e] = Hn.all([r[e] || {}, ...t]), r));
|
3522
3528
|
}
|
3523
|
-
|
3524
|
-
[
|
3529
|
+
he(
|
3530
|
+
[ce],
|
3525
3531
|
([e]) => Object.keys(e)
|
3526
3532
|
);
|
3527
|
-
|
3528
|
-
const
|
3529
|
-
function
|
3530
|
-
|
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];
|
3531
3537
|
}
|
3532
|
-
function
|
3533
|
-
return
|
3538
|
+
function mr(e) {
|
3539
|
+
return Ie[e];
|
3534
3540
|
}
|
3535
|
-
function
|
3536
|
-
return
|
3537
|
-
const r =
|
3541
|
+
function Ci(e) {
|
3542
|
+
return Re(e).map((t) => {
|
3543
|
+
const r = mr(t);
|
3538
3544
|
return [t, r ? [...r] : []];
|
3539
3545
|
}).filter(([, t]) => t.length > 0);
|
3540
3546
|
}
|
3541
|
-
function
|
3542
|
-
return e == null ? !1 :
|
3547
|
+
function nt(e) {
|
3548
|
+
return e == null ? !1 : Re(e).some(
|
3543
3549
|
(t) => {
|
3544
3550
|
var r;
|
3545
|
-
return (r =
|
3551
|
+
return (r = mr(t)) == null ? void 0 : r.size;
|
3546
3552
|
}
|
3547
3553
|
);
|
3548
3554
|
}
|
3549
|
-
function
|
3555
|
+
function Hi(e, t) {
|
3550
3556
|
return Promise.all(
|
3551
|
-
t.map((n) => (
|
3552
|
-
).then((n) =>
|
3553
|
-
}
|
3554
|
-
const
|
3555
|
-
function
|
3556
|
-
if (!
|
3557
|
-
return e in
|
3558
|
-
const t =
|
3559
|
-
return
|
3557
|
+
t.map((n) => (wi(e, n), n().then((i) => i.default || i)))
|
3558
|
+
).then((n) => fr(e, ...n));
|
3559
|
+
}
|
3560
|
+
const pe = {};
|
3561
|
+
function dr(e) {
|
3562
|
+
if (!nt(e))
|
3563
|
+
return e in pe ? pe[e] : Promise.resolve();
|
3564
|
+
const t = Ci(e);
|
3565
|
+
return pe[e] = Promise.all(
|
3560
3566
|
t.map(
|
3561
|
-
([r, n]) =>
|
3567
|
+
([r, n]) => Hi(r, n)
|
3562
3568
|
)
|
3563
3569
|
).then(() => {
|
3564
|
-
if (
|
3565
|
-
return
|
3566
|
-
delete
|
3567
|
-
}),
|
3570
|
+
if (nt(e))
|
3571
|
+
return dr(e);
|
3572
|
+
delete pe[e];
|
3573
|
+
}), pe[e];
|
3568
3574
|
}
|
3569
|
-
const
|
3575
|
+
const Si = {
|
3570
3576
|
number: {
|
3571
3577
|
scientific: { notation: "scientific" },
|
3572
3578
|
engineering: { notation: "engineering" },
|
@@ -3595,150 +3601,150 @@ const wi = {
|
|
3595
3601
|
timeZoneName: "short"
|
3596
3602
|
}
|
3597
3603
|
}
|
3598
|
-
},
|
3604
|
+
}, Ti = {
|
3599
3605
|
fallbackLocale: null,
|
3600
3606
|
loadingDelay: 200,
|
3601
|
-
formats:
|
3607
|
+
formats: Si,
|
3602
3608
|
warnOnMissingMessages: !0,
|
3603
3609
|
handleMissingMessage: void 0,
|
3604
3610
|
ignoreTag: !0
|
3605
|
-
},
|
3606
|
-
function
|
3607
|
-
return
|
3611
|
+
}, Ai = Ti;
|
3612
|
+
function ue() {
|
3613
|
+
return Ai;
|
3608
3614
|
}
|
3609
|
-
const
|
3610
|
-
var
|
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) => {
|
3611
3617
|
for (var r in t || (t = {}))
|
3612
|
-
|
3613
|
-
if (
|
3614
|
-
for (var r of
|
3615
|
-
|
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]);
|
3616
3622
|
return e;
|
3617
|
-
},
|
3618
|
-
let
|
3619
|
-
const
|
3620
|
-
function
|
3623
|
+
}, Oi = (e, t) => Ii(e, Mi(t));
|
3624
|
+
let it;
|
3625
|
+
const Le = Pe(null);
|
3626
|
+
function Tt(e) {
|
3621
3627
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3622
3628
|
}
|
3623
|
-
function
|
3624
|
-
const r =
|
3625
|
-
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;
|
3626
3632
|
}
|
3627
|
-
function
|
3628
|
-
return
|
3633
|
+
function Y() {
|
3634
|
+
return it ?? void 0;
|
3629
3635
|
}
|
3630
|
-
|
3631
|
-
|
3636
|
+
Le.subscribe((e) => {
|
3637
|
+
it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3632
3638
|
});
|
3633
|
-
const
|
3634
|
-
if (e &&
|
3635
|
-
const { loadingDelay: t } =
|
3639
|
+
const Fi = (e) => {
|
3640
|
+
if (e && xi(e) && nt(e)) {
|
3641
|
+
const { loadingDelay: t } = ue();
|
3636
3642
|
let r;
|
3637
|
-
return typeof window < "u" &&
|
3638
|
-
() =>
|
3643
|
+
return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
|
3644
|
+
() => ze.set(!0),
|
3639
3645
|
t
|
3640
|
-
) :
|
3641
|
-
|
3646
|
+
) : ze.set(!0), dr(e).then(() => {
|
3647
|
+
Le.set(e);
|
3642
3648
|
}).finally(() => {
|
3643
|
-
clearTimeout(r),
|
3649
|
+
clearTimeout(r), ze.set(!1);
|
3644
3650
|
});
|
3645
3651
|
}
|
3646
|
-
return
|
3647
|
-
},
|
3648
|
-
set:
|
3649
|
-
}),
|
3652
|
+
return Le.set(e);
|
3653
|
+
}, z = Oi(Pi({}, Le), {
|
3654
|
+
set: Fi
|
3655
|
+
}), De = (e) => {
|
3650
3656
|
const t = /* @__PURE__ */ Object.create(null);
|
3651
3657
|
return (n) => {
|
3652
3658
|
const i = JSON.stringify(n);
|
3653
3659
|
return i in t ? t[i] : t[i] = e(n);
|
3654
3660
|
};
|
3655
3661
|
};
|
3656
|
-
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) => {
|
3657
3663
|
for (var r in t || (t = {}))
|
3658
|
-
|
3659
|
-
if (
|
3660
|
-
for (var r of
|
3661
|
-
|
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]);
|
3662
3668
|
return e;
|
3663
|
-
},
|
3669
|
+
}, fe = (e, t) => {
|
3664
3670
|
var r = {};
|
3665
3671
|
for (var n in e)
|
3666
|
-
|
3667
|
-
if (e != null &&
|
3668
|
-
for (var n of
|
3669
|
-
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]);
|
3670
3676
|
return r;
|
3671
3677
|
};
|
3672
|
-
const
|
3673
|
-
const { formats: r } =
|
3678
|
+
const Ee = (e, t) => {
|
3679
|
+
const { formats: r } = ue();
|
3674
3680
|
if (e in r && t in r[e])
|
3675
3681
|
return r[e][t];
|
3676
3682
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3677
|
-
},
|
3683
|
+
}, Di = De(
|
3678
3684
|
(e) => {
|
3679
|
-
var t = e, { locale: r, format: n } = t, i =
|
3685
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3680
3686
|
if (r == null)
|
3681
3687
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3682
|
-
return n && (i =
|
3688
|
+
return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
|
3683
3689
|
}
|
3684
|
-
),
|
3690
|
+
), Ui = De(
|
3685
3691
|
(e) => {
|
3686
|
-
var t = e, { locale: r, format: n } = t, i =
|
3692
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3687
3693
|
if (r == null)
|
3688
3694
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3689
|
-
return n ? i =
|
3695
|
+
return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
3690
3696
|
}
|
3691
|
-
),
|
3697
|
+
), Gi = De(
|
3692
3698
|
(e) => {
|
3693
|
-
var t = e, { locale: r, format: n } = t, i =
|
3699
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3694
3700
|
if (r == null)
|
3695
3701
|
throw new Error(
|
3696
3702
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3697
3703
|
);
|
3698
|
-
return n ? i =
|
3704
|
+
return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
3699
3705
|
}
|
3700
|
-
),
|
3706
|
+
), ki = (e = {}) => {
|
3701
3707
|
var t = e, {
|
3702
|
-
locale: r =
|
3703
|
-
} = t, n =
|
3708
|
+
locale: r = Y()
|
3709
|
+
} = t, n = fe(t, [
|
3704
3710
|
"locale"
|
3705
3711
|
]);
|
3706
|
-
return
|
3707
|
-
},
|
3712
|
+
return Di(lt({ locale: r }, n));
|
3713
|
+
}, $i = (e = {}) => {
|
3708
3714
|
var t = e, {
|
3709
|
-
locale: r =
|
3710
|
-
} = t, n =
|
3715
|
+
locale: r = Y()
|
3716
|
+
} = t, n = fe(t, [
|
3711
3717
|
"locale"
|
3712
3718
|
]);
|
3713
|
-
return
|
3714
|
-
},
|
3719
|
+
return Ui(lt({ locale: r }, n));
|
3720
|
+
}, ji = (e = {}) => {
|
3715
3721
|
var t = e, {
|
3716
|
-
locale: r =
|
3717
|
-
} = t, n =
|
3722
|
+
locale: r = Y()
|
3723
|
+
} = t, n = fe(t, [
|
3718
3724
|
"locale"
|
3719
3725
|
]);
|
3720
|
-
return
|
3721
|
-
},
|
3726
|
+
return Gi(lt({ locale: r }, n));
|
3727
|
+
}, Vi = De(
|
3722
3728
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3723
|
-
(e, t =
|
3724
|
-
ignoreTag:
|
3729
|
+
(e, t = Y()) => new bi(e, t, ue().formats, {
|
3730
|
+
ignoreTag: ue().ignoreTag
|
3725
3731
|
})
|
3726
|
-
),
|
3727
|
-
var r, n, i,
|
3728
|
-
let
|
3729
|
-
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);
|
3730
3736
|
const {
|
3731
3737
|
values: a,
|
3732
|
-
locale: h =
|
3738
|
+
locale: h = Y(),
|
3733
3739
|
default: l
|
3734
|
-
} =
|
3740
|
+
} = s;
|
3735
3741
|
if (h == null)
|
3736
3742
|
throw new Error(
|
3737
3743
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3738
3744
|
);
|
3739
|
-
let u =
|
3745
|
+
let u = hr(e, h);
|
3740
3746
|
if (!u)
|
3741
|
-
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;
|
3742
3748
|
else if (typeof u != "string")
|
3743
3749
|
return console.warn(
|
3744
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.`
|
@@ -3747,7 +3753,7 @@ const _e = (e, t) => {
|
|
3747
3753
|
return u;
|
3748
3754
|
let m = u;
|
3749
3755
|
try {
|
3750
|
-
m =
|
3756
|
+
m = Vi(u, h).format(a);
|
3751
3757
|
} catch (f) {
|
3752
3758
|
f instanceof Error && console.warn(
|
3753
3759
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3755,24 +3761,24 @@ const _e = (e, t) => {
|
|
3755
3761
|
);
|
3756
3762
|
}
|
3757
3763
|
return m;
|
3758
|
-
},
|
3759
|
-
|
3760
|
-
|
3761
|
-
|
3762
|
-
|
3763
|
-
|
3764
|
-
function
|
3765
|
-
|
3766
|
-
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));
|
3767
3773
|
});
|
3768
3774
|
}
|
3769
|
-
function
|
3770
|
-
|
3775
|
+
function Bt(e, t) {
|
3776
|
+
fr(e, t);
|
3771
3777
|
}
|
3772
|
-
function
|
3773
|
-
|
3778
|
+
function Ji(e) {
|
3779
|
+
z.set(e);
|
3774
3780
|
}
|
3775
|
-
const
|
3781
|
+
const It = {
|
3776
3782
|
en: {
|
3777
3783
|
login: "Login",
|
3778
3784
|
register: "Register",
|
@@ -3829,115 +3835,115 @@ const At = {
|
|
3829
3835
|
deposit: "Deposit"
|
3830
3836
|
}
|
3831
3837
|
};
|
3832
|
-
function
|
3833
|
-
|
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}');
|
3834
3840
|
}
|
3835
|
-
function
|
3841
|
+
function Mt(e, t, r) {
|
3836
3842
|
const n = e.slice();
|
3837
3843
|
return n[57] = t[r], n[59] = r, n;
|
3838
3844
|
}
|
3839
|
-
function
|
3845
|
+
function Lt(e, t, r) {
|
3840
3846
|
const n = e.slice();
|
3841
3847
|
return n[60] = t[r], n;
|
3842
3848
|
}
|
3843
|
-
function
|
3849
|
+
function Nt(e, t, r) {
|
3844
3850
|
const n = e.slice();
|
3845
3851
|
return n[63] = t[r], n[65] = r, n;
|
3846
3852
|
}
|
3847
|
-
function
|
3848
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3853
|
+
function Pt(e) {
|
3854
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = oe(
|
3849
3855
|
/*sliderdata*/
|
3850
3856
|
e[9]
|
3851
3857
|
);
|
3852
|
-
const
|
3858
|
+
const o = (s) => (
|
3853
3859
|
/*category*/
|
3854
|
-
|
3860
|
+
s[57].id
|
3855
3861
|
);
|
3856
|
-
for (let
|
3857
|
-
let a =
|
3858
|
-
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));
|
3859
3865
|
}
|
3860
3866
|
return {
|
3861
3867
|
c() {
|
3862
|
-
for (let
|
3863
|
-
t[
|
3864
|
-
n =
|
3868
|
+
for (let s = 0; s < t.length; s += 1)
|
3869
|
+
t[s].c();
|
3870
|
+
n = ye();
|
3865
3871
|
},
|
3866
|
-
m(
|
3872
|
+
m(s, a) {
|
3867
3873
|
for (let h = 0; h < t.length; h += 1)
|
3868
|
-
t[h] && t[h].m(
|
3869
|
-
G(
|
3874
|
+
t[h] && t[h].m(s, a);
|
3875
|
+
G(s, n, a);
|
3870
3876
|
},
|
3871
|
-
p(
|
3877
|
+
p(s, a) {
|
3872
3878
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3873
|
-
1183695 && (i =
|
3879
|
+
1183695 && (i = oe(
|
3874
3880
|
/*sliderdata*/
|
3875
|
-
|
3876
|
-
), t =
|
3881
|
+
s[9]
|
3882
|
+
), t = Xt(t, a, o, 1, s, i, r, n.parentNode, Vt, Gt, n, Mt));
|
3877
3883
|
},
|
3878
|
-
d(
|
3879
|
-
|
3884
|
+
d(s) {
|
3885
|
+
s && D(n);
|
3880
3886
|
for (let a = 0; a < t.length; a += 1)
|
3881
|
-
t[a].d(
|
3887
|
+
t[a].d(s);
|
3882
3888
|
}
|
3883
3889
|
};
|
3884
3890
|
}
|
3885
|
-
function
|
3891
|
+
function Ki(e) {
|
3886
3892
|
let t, r = (
|
3887
3893
|
/*category*/
|
3888
3894
|
e[57].name + ""
|
3889
3895
|
), n;
|
3890
3896
|
return {
|
3891
3897
|
c() {
|
3892
|
-
t = L("button"), n =
|
3898
|
+
t = L("button"), n = xe(r), H(t, "class", "CategoryButton");
|
3893
3899
|
},
|
3894
|
-
m(i,
|
3895
|
-
G(i, t,
|
3900
|
+
m(i, o) {
|
3901
|
+
G(i, t, o), I(t, n);
|
3896
3902
|
},
|
3897
|
-
p(i,
|
3898
|
-
|
3903
|
+
p(i, o) {
|
3904
|
+
o[0] & /*sliderdata*/
|
3899
3905
|
512 && r !== (r = /*category*/
|
3900
|
-
i[57].name + "") &&
|
3906
|
+
i[57].name + "") && st(n, r);
|
3901
3907
|
},
|
3902
3908
|
d(i) {
|
3903
3909
|
i && D(t);
|
3904
3910
|
}
|
3905
3911
|
};
|
3906
3912
|
}
|
3907
|
-
function
|
3913
|
+
function eo(e) {
|
3908
3914
|
let t, r = (
|
3909
3915
|
/*category*/
|
3910
3916
|
e[57].label + ""
|
3911
3917
|
), n, i;
|
3912
3918
|
return {
|
3913
3919
|
c() {
|
3914
|
-
t = L("a"), n =
|
3920
|
+
t = L("a"), n = xe(r), H(t, "href", i = /*category*/
|
3915
3921
|
e[57].path);
|
3916
3922
|
},
|
3917
|
-
m(
|
3918
|
-
G(
|
3923
|
+
m(o, s) {
|
3924
|
+
G(o, t, s), I(t, n);
|
3919
3925
|
},
|
3920
|
-
p(
|
3921
|
-
|
3926
|
+
p(o, s) {
|
3927
|
+
s[0] & /*sliderdata*/
|
3922
3928
|
512 && r !== (r = /*category*/
|
3923
|
-
|
3929
|
+
o[57].label + "") && st(n, r), s[0] & /*sliderdata*/
|
3924
3930
|
512 && i !== (i = /*category*/
|
3925
|
-
|
3931
|
+
o[57].path) && H(t, "href", i);
|
3926
3932
|
},
|
3927
|
-
d(
|
3928
|
-
|
3933
|
+
d(o) {
|
3934
|
+
o && D(t);
|
3929
3935
|
}
|
3930
3936
|
};
|
3931
3937
|
}
|
3932
|
-
function
|
3938
|
+
function Ot(e) {
|
3933
3939
|
let t, r = (
|
3934
3940
|
/*subGroupsData*/
|
3935
3941
|
e[10].length > 0 && /*showsubgroups*/
|
3936
|
-
e[2] == "true" &&
|
3942
|
+
e[2] == "true" && Ft(e)
|
3937
3943
|
);
|
3938
3944
|
return {
|
3939
3945
|
c() {
|
3940
|
-
r && r.c(), t =
|
3946
|
+
r && r.c(), t = ye();
|
3941
3947
|
},
|
3942
3948
|
m(n, i) {
|
3943
3949
|
r && r.m(n, i), G(n, t, i);
|
@@ -3945,59 +3951,59 @@ function Nt(e) {
|
|
3945
3951
|
p(n, i) {
|
3946
3952
|
/*subGroupsData*/
|
3947
3953
|
n[10].length > 0 && /*showsubgroups*/
|
3948
|
-
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);
|
3949
3955
|
},
|
3950
3956
|
d(n) {
|
3951
3957
|
n && D(t), r && r.d(n);
|
3952
3958
|
}
|
3953
3959
|
};
|
3954
3960
|
}
|
3955
|
-
function
|
3956
|
-
let t, r =
|
3961
|
+
function Ft(e) {
|
3962
|
+
let t, r = oe(
|
3957
3963
|
/*subGroupsData*/
|
3958
3964
|
e[10]
|
3959
3965
|
), n = [];
|
3960
3966
|
for (let i = 0; i < r.length; i += 1)
|
3961
|
-
n[i] =
|
3967
|
+
n[i] = Ut(Lt(e, r, i));
|
3962
3968
|
return {
|
3963
3969
|
c() {
|
3964
3970
|
t = L("ul");
|
3965
3971
|
for (let i = 0; i < n.length; i += 1)
|
3966
3972
|
n[i].c();
|
3967
|
-
|
3973
|
+
H(t, "class", "DropDown");
|
3968
3974
|
},
|
3969
|
-
m(i,
|
3970
|
-
G(i, t,
|
3971
|
-
for (let
|
3972
|
-
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);
|
3973
3979
|
},
|
3974
|
-
p(i,
|
3975
|
-
if (
|
3980
|
+
p(i, o) {
|
3981
|
+
if (o[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
3976
3982
|
133056) {
|
3977
|
-
r =
|
3983
|
+
r = oe(
|
3978
3984
|
/*subGroupsData*/
|
3979
3985
|
i[10]
|
3980
3986
|
);
|
3981
|
-
let
|
3982
|
-
for (
|
3983
|
-
const a =
|
3984
|
-
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));
|
3985
3991
|
}
|
3986
|
-
for (;
|
3987
|
-
n[
|
3992
|
+
for (; s < n.length; s += 1)
|
3993
|
+
n[s].d(1);
|
3988
3994
|
n.length = r.length;
|
3989
3995
|
}
|
3990
3996
|
},
|
3991
3997
|
d(i) {
|
3992
|
-
i && D(t),
|
3998
|
+
i && D(t), Gr(n, i);
|
3993
3999
|
}
|
3994
4000
|
};
|
3995
4001
|
}
|
3996
|
-
function
|
4002
|
+
function Rt(e) {
|
3997
4003
|
let t, r, n = (
|
3998
4004
|
/*subGroupItem*/
|
3999
4005
|
e[63]?.name + ""
|
4000
|
-
), i,
|
4006
|
+
), i, o, s, a, h;
|
4001
4007
|
function l(...u) {
|
4002
4008
|
return (
|
4003
4009
|
/*click_handler_2*/
|
@@ -4016,7 +4022,7 @@ function Ot(e) {
|
|
4016
4022
|
}
|
4017
4023
|
return {
|
4018
4024
|
c() {
|
4019
|
-
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*/
|
4020
4026
|
(e[59] == /*activeIndex*/
|
4021
4027
|
e[6] && /*activeSubIndex*/
|
4022
4028
|
(e[7] == /*subindex*/
|
@@ -4025,94 +4031,94 @@ function Ot(e) {
|
|
4025
4031
|
e[65]) ? "active" : ""));
|
4026
4032
|
},
|
4027
4033
|
m(u, m) {
|
4028
|
-
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);
|
4029
4035
|
},
|
4030
4036
|
p(u, m) {
|
4031
4037
|
e = u, m[0] & /*subGroupsData*/
|
4032
4038
|
1024 && n !== (n = /*subGroupItem*/
|
4033
|
-
e[63]?.name + "") &&
|
4034
|
-
1984 &&
|
4039
|
+
e[63]?.name + "") && st(i, n), m[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
4040
|
+
1984 && o !== (o = "SubDropDown " + /*index*/
|
4035
4041
|
(e[59] == /*activeIndex*/
|
4036
4042
|
e[6] && /*activeSubIndex*/
|
4037
4043
|
(e[7] == /*subindex*/
|
4038
4044
|
e[65] || /*prevSubIndex*/
|
4039
4045
|
e[8] == /*subindex*/
|
4040
|
-
e[65]) ? "active" : "")) &&
|
4046
|
+
e[65]) ? "active" : "")) && H(r, "class", o);
|
4041
4047
|
},
|
4042
4048
|
d(u) {
|
4043
4049
|
u && D(t), a = !1, h();
|
4044
4050
|
}
|
4045
4051
|
};
|
4046
4052
|
}
|
4047
|
-
function
|
4053
|
+
function Dt(e, t) {
|
4048
4054
|
let r, n, i = (
|
4049
4055
|
/*index*/
|
4050
4056
|
t[59] == /*subGroup*/
|
4051
|
-
t[60].index &&
|
4057
|
+
t[60].index && Rt(t)
|
4052
4058
|
);
|
4053
4059
|
return {
|
4054
4060
|
key: e,
|
4055
4061
|
first: null,
|
4056
4062
|
c() {
|
4057
|
-
r =
|
4063
|
+
r = ye(), i && i.c(), n = ye(), this.first = r;
|
4058
4064
|
},
|
4059
|
-
m(
|
4060
|
-
G(
|
4065
|
+
m(o, s) {
|
4066
|
+
G(o, r, s), i && i.m(o, s), G(o, n, s);
|
4061
4067
|
},
|
4062
|
-
p(
|
4063
|
-
t =
|
4068
|
+
p(o, s) {
|
4069
|
+
t = o, /*index*/
|
4064
4070
|
t[59] == /*subGroup*/
|
4065
|
-
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);
|
4066
4072
|
},
|
4067
|
-
d(
|
4068
|
-
|
4073
|
+
d(o) {
|
4074
|
+
o && (D(r), D(n)), i && i.d(o);
|
4069
4075
|
}
|
4070
4076
|
};
|
4071
4077
|
}
|
4072
|
-
function
|
4073
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4078
|
+
function Ut(e) {
|
4079
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = oe(
|
4074
4080
|
/*subGroup*/
|
4075
4081
|
e[60].items
|
4076
4082
|
);
|
4077
|
-
const
|
4083
|
+
const o = (s) => (
|
4078
4084
|
/*subGroupItem*/
|
4079
|
-
|
4085
|
+
s[63].id
|
4080
4086
|
);
|
4081
|
-
for (let
|
4082
|
-
let a =
|
4083
|
-
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));
|
4084
4090
|
}
|
4085
4091
|
return {
|
4086
4092
|
c() {
|
4087
|
-
for (let
|
4088
|
-
t[
|
4089
|
-
n =
|
4093
|
+
for (let s = 0; s < t.length; s += 1)
|
4094
|
+
t[s].c();
|
4095
|
+
n = ye();
|
4090
4096
|
},
|
4091
|
-
m(
|
4097
|
+
m(s, a) {
|
4092
4098
|
for (let h = 0; h < t.length; h += 1)
|
4093
|
-
t[h] && t[h].m(
|
4094
|
-
G(
|
4099
|
+
t[h] && t[h].m(s, a);
|
4100
|
+
G(s, n, a);
|
4095
4101
|
},
|
4096
|
-
p(
|
4102
|
+
p(s, a) {
|
4097
4103
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4098
|
-
133056 && (i =
|
4104
|
+
133056 && (i = oe(
|
4099
4105
|
/*subGroup*/
|
4100
|
-
|
4101
|
-
), t =
|
4106
|
+
s[60].items
|
4107
|
+
), t = Xt(t, a, o, 1, s, i, r, n.parentNode, Vt, Dt, n, Nt));
|
4102
4108
|
},
|
4103
|
-
d(
|
4104
|
-
|
4109
|
+
d(s) {
|
4110
|
+
s && D(n);
|
4105
4111
|
for (let a = 0; a < t.length; a += 1)
|
4106
|
-
t[a].d(
|
4112
|
+
t[a].d(s);
|
4107
4113
|
}
|
4108
4114
|
};
|
4109
4115
|
}
|
4110
|
-
function
|
4111
|
-
let r, n, i,
|
4112
|
-
function p(
|
4116
|
+
function Gt(e, t) {
|
4117
|
+
let r, n, i, o, s, a, h, l, u, m, f;
|
4118
|
+
function p(_, w) {
|
4113
4119
|
return (
|
4114
4120
|
/*location*/
|
4115
|
-
|
4121
|
+
_[0] === "headerMain" ? eo : Ki
|
4116
4122
|
);
|
4117
4123
|
}
|
4118
4124
|
let g = p(t), b = g(t), d = (
|
@@ -4120,9 +4126,9 @@ function Dt(e, t) {
|
|
4120
4126
|
t[11][
|
4121
4127
|
/*index*/
|
4122
4128
|
t[59]
|
4123
|
-
] == !0 &&
|
4129
|
+
] == !0 && Ot(t)
|
4124
4130
|
);
|
4125
|
-
function
|
4131
|
+
function x(..._) {
|
4126
4132
|
return (
|
4127
4133
|
/*click_handler_3*/
|
4128
4134
|
t[39](
|
@@ -4130,7 +4136,7 @@ function Dt(e, t) {
|
|
4130
4136
|
t[57],
|
4131
4137
|
/*index*/
|
4132
4138
|
t[59],
|
4133
|
-
...
|
4139
|
+
..._
|
4134
4140
|
)
|
4135
4141
|
);
|
4136
4142
|
}
|
@@ -4138,12 +4144,12 @@ function Dt(e, t) {
|
|
4138
4144
|
key: e,
|
4139
4145
|
first: null,
|
4140
4146
|
c() {
|
4141
|
-
r = L("li"), n = L("div"), i = L("img"), a =
|
4142
|
-
(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*/
|
4143
4149
|
t[20](
|
4144
4150
|
/*category*/
|
4145
4151
|
t[57]
|
4146
|
-
)) ||
|
4152
|
+
)) || H(i, "src", s), H(n, "class", "CategoryIcon"), H(r, "class", u = "CarouselItem " + /*activeindex*/
|
4147
4153
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4148
4154
|
/*activeindex*/
|
4149
4155
|
t[1]?.split("$").pop() == /*category*/
|
@@ -4155,22 +4161,22 @@ function Dt(e, t) {
|
|
4155
4161
|
)) + " " + /*location*/
|
4156
4162
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4157
4163
|
},
|
4158
|
-
m(
|
4159
|
-
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);
|
4160
4166
|
},
|
4161
|
-
p(
|
4162
|
-
t =
|
4163
|
-
8 &&
|
4164
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
4165
|
-
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*/
|
4166
4172
|
t[20](
|
4167
4173
|
/*category*/
|
4168
4174
|
t[57]
|
4169
|
-
)) &&
|
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*/
|
4170
4176
|
t[11][
|
4171
4177
|
/*index*/
|
4172
4178
|
t[59]
|
4173
|
-
] == !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*/
|
4174
4180
|
515 && u !== (u = "CarouselItem " + /*activeindex*/
|
4175
4181
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4176
4182
|
/*activeindex*/
|
@@ -4181,62 +4187,62 @@ function Dt(e, t) {
|
|
4181
4187
|
t[1] == /*category*/
|
4182
4188
|
t[57].id ? "active" : ""
|
4183
4189
|
)) + " " + /*location*/
|
4184
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
4190
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && H(r, "class", u);
|
4185
4191
|
},
|
4186
|
-
d(
|
4187
|
-
|
4192
|
+
d(_) {
|
4193
|
+
_ && D(r), b.d(), d && d.d(), m = !1, f();
|
4188
4194
|
}
|
4189
4195
|
};
|
4190
4196
|
}
|
4191
|
-
function
|
4192
|
-
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 = (
|
4193
4199
|
/*sliderdata*/
|
4194
|
-
e[9].length > 0 &&
|
4200
|
+
e[9].length > 0 && Pt(e)
|
4195
4201
|
);
|
4196
4202
|
return {
|
4197
4203
|
c() {
|
4198
|
-
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 =
|
4199
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
4200
|
-
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*/
|
4201
4207
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4202
4208
|
},
|
4203
|
-
m(
|
4204
|
-
G(
|
4205
|
-
|
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(
|
4206
4212
|
n,
|
4207
4213
|
"click",
|
4208
4214
|
/*click_handler_1*/
|
4209
4215
|
e[37]
|
4210
4216
|
),
|
4211
|
-
|
4212
|
-
|
4217
|
+
V(
|
4218
|
+
s,
|
4213
4219
|
"mousedown",
|
4214
4220
|
/*handleMouseDown*/
|
4215
4221
|
e[13]
|
4216
4222
|
),
|
4217
|
-
|
4218
|
-
|
4223
|
+
V(
|
4224
|
+
s,
|
4219
4225
|
"mouseleave",
|
4220
4226
|
/*handleMouseLeave*/
|
4221
4227
|
e[14]
|
4222
4228
|
),
|
4223
|
-
|
4224
|
-
|
4229
|
+
V(
|
4230
|
+
s,
|
4225
4231
|
"mouseup",
|
4226
4232
|
/*handleMouseUp*/
|
4227
4233
|
e[15]
|
4228
4234
|
),
|
4229
|
-
|
4230
|
-
|
4235
|
+
V(
|
4236
|
+
s,
|
4231
4237
|
"mousemove",
|
4232
4238
|
/*handleMouseMove*/
|
4233
4239
|
e[16]
|
4234
4240
|
),
|
4235
|
-
|
4241
|
+
V(s, "click", kr(
|
4236
4242
|
/*click_handler*/
|
4237
4243
|
e[36]
|
4238
4244
|
)),
|
4239
|
-
|
4245
|
+
V(
|
4240
4246
|
u,
|
4241
4247
|
"click",
|
4242
4248
|
/*click_handler_4*/
|
@@ -4244,195 +4250,195 @@ function Ki(e) {
|
|
4244
4250
|
)
|
4245
4251
|
], g = !0);
|
4246
4252
|
},
|
4247
|
-
p(
|
4253
|
+
p(x, _) {
|
4248
4254
|
/*sliderdata*/
|
4249
|
-
|
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*/
|
4250
4256
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4251
|
-
|
4257
|
+
x[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && H(r, "class", m), _[0] & /*location*/
|
4252
4258
|
1 && f !== (f = /*location*/
|
4253
|
-
|
4259
|
+
x[0] === "headerMain" ? "max-width: auto" : void 0) && H(r, "style", f), _[0] & /*location*/
|
4254
4260
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4255
|
-
(
|
4261
|
+
(x[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && H(t, "class", p);
|
4256
4262
|
},
|
4257
4263
|
i: k,
|
4258
4264
|
o: k,
|
4259
|
-
d(
|
4260
|
-
|
4265
|
+
d(x) {
|
4266
|
+
x && D(t), d && d.d(), e[40](null), e[41](null), e[43](null), g = !1, J(b);
|
4261
4267
|
}
|
4262
4268
|
};
|
4263
4269
|
}
|
4264
|
-
function
|
4265
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname:
|
4266
|
-
|
4267
|
-
let
|
4268
|
-
const
|
4269
|
-
c.preventDefault(),
|
4270
|
-
}, pr = (c) => {
|
4271
|
-
c.preventDefault(), H = !1, T?.classList.remove("dragging");
|
4272
|
-
}, gr = (c) => {
|
4273
|
-
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;
|
4274
4276
|
}, br = (c) => {
|
4275
|
-
|
4277
|
+
c.preventDefault(), C = !1, S?.classList.remove("dragging");
|
4278
|
+
}, yr = (c) => {
|
4279
|
+
C = !1, S?.classList.remove("dragging");
|
4280
|
+
}, vr = (c) => {
|
4281
|
+
if (!C || !S)
|
4276
4282
|
return;
|
4277
4283
|
c.preventDefault();
|
4278
|
-
const O = (c.pageX -
|
4279
|
-
r(5,
|
4280
|
-
},
|
4281
|
-
fetch(f).then((
|
4282
|
-
Object.keys(
|
4283
|
-
|
4284
|
+
const O = (c.pageX - S.offsetLeft - F) * 2.5;
|
4285
|
+
r(5, S.scrollLeft = R - O, S);
|
4286
|
+
}, _r = () => {
|
4287
|
+
fetch(f).then((E) => E.json()).then((E) => {
|
4288
|
+
Object.keys(E).forEach((O) => {
|
4289
|
+
Bt(O, E[O]);
|
4284
4290
|
});
|
4285
|
-
}).catch((
|
4286
|
-
console.log(
|
4291
|
+
}).catch((E) => {
|
4292
|
+
console.log(E);
|
4287
4293
|
});
|
4288
4294
|
};
|
4289
|
-
Object.keys(
|
4290
|
-
|
4295
|
+
Object.keys(It).forEach((c) => {
|
4296
|
+
Bt(c, It[c]);
|
4291
4297
|
});
|
4292
|
-
let
|
4293
|
-
if (!(c.subGroups &&
|
4294
|
-
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") {
|
4295
4301
|
window.postMessage(
|
4296
4302
|
{
|
4297
|
-
type:
|
4303
|
+
type: s == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4298
4304
|
buzz: "1",
|
4299
4305
|
itemId: c.id,
|
4300
|
-
index:
|
4306
|
+
index: E,
|
4301
4307
|
item: c,
|
4302
4308
|
path: c.path,
|
4303
4309
|
externalLink: c.externalLink || !1,
|
4304
4310
|
target: c.attrs?.target || null
|
4305
4311
|
},
|
4306
4312
|
window.location.href
|
4307
|
-
), r(7,
|
4313
|
+
), r(7, me = null), r(8, Ue = null);
|
4308
4314
|
return;
|
4309
4315
|
}
|
4310
|
-
r(7,
|
4316
|
+
r(7, me = Q), r(7, me), r(8, Ue = me), window.postMessage(
|
4311
4317
|
{
|
4312
|
-
type:
|
4318
|
+
type: s,
|
4313
4319
|
itemId: O.id,
|
4314
|
-
subIndex:
|
4320
|
+
subIndex: Q,
|
4315
4321
|
subItem: O
|
4316
4322
|
},
|
4317
4323
|
window.location.href
|
4318
4324
|
);
|
4319
4325
|
}
|
4320
|
-
},
|
4321
|
-
M && (
|
4322
|
-
},
|
4323
|
-
M && (
|
4326
|
+
}, ut = () => {
|
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));
|
4324
4330
|
};
|
4325
|
-
const
|
4326
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4327
|
-
|
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));
|
4328
4334
|
});
|
4329
|
-
},
|
4330
|
-
|
4331
|
-
},
|
4335
|
+
}, Er = () => {
|
4336
|
+
Ji(b);
|
4337
|
+
}, xr = (c, E, O) => {
|
4332
4338
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4333
|
-
let
|
4334
|
-
fetch(
|
4335
|
-
|
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(
|
4336
4342
|
{
|
4337
|
-
type:
|
4343
|
+
type: s,
|
4338
4344
|
itemId: c.id,
|
4339
|
-
index:
|
4345
|
+
index: E,
|
4340
4346
|
item: c
|
4341
4347
|
},
|
4342
4348
|
window.location.href
|
4343
4349
|
);
|
4344
|
-
const
|
4345
|
-
|
4346
|
-
|
4347
|
-
}),
|
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);
|
4348
4354
|
}).then(() => {
|
4349
|
-
|
4355
|
+
S.querySelectorAll(".DropDown") && Ce();
|
4350
4356
|
});
|
4351
4357
|
}
|
4352
|
-
h == "headerMain" && window.postMessage({ type:
|
4358
|
+
h == "headerMain" && window.postMessage({ type: s, item: c }, window.location.href);
|
4353
4359
|
}, Ce = () => {
|
4354
|
-
const c =
|
4360
|
+
const c = S.querySelectorAll(".DropDown");
|
4355
4361
|
document.activeElement.blur(), M.classList.add("isScrolling");
|
4356
|
-
for (let
|
4357
|
-
c[
|
4362
|
+
for (let E = 0; E < c.length; E++)
|
4363
|
+
c[E].style.transform = "translateX(-" + M.scrollLeft + "px)";
|
4358
4364
|
M.classList.remove("isScrolling");
|
4359
|
-
},
|
4360
|
-
|
4361
|
-
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));
|
4362
4368
|
});
|
4363
|
-
},
|
4364
|
-
let
|
4365
|
-
return c.id === "LOBBY" ?
|
4369
|
+
}, Cr = (c) => {
|
4370
|
+
let E = "";
|
4371
|
+
return c.id === "LOBBY" ? E = w : c.id === "MYGAMES" && (E = U), c.icon || E;
|
4366
4372
|
};
|
4367
|
-
|
4373
|
+
Xr(() => (window.addEventListener("message", ct, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4368
4374
|
() => {
|
4369
4375
|
M.addEventListener("scroll", Ce);
|
4370
4376
|
},
|
4371
4377
|
500
|
4372
4378
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4373
|
-
window.removeEventListener("message",
|
4379
|
+
window.removeEventListener("message", ct), S.removeEventListener("scroll", Ce);
|
4374
4380
|
}));
|
4375
|
-
function
|
4376
|
-
|
4381
|
+
function Hr(c) {
|
4382
|
+
Wr.call(this, e, c);
|
4377
4383
|
}
|
4378
|
-
const
|
4379
|
-
|
4380
|
-
},
|
4381
|
-
|
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();
|
4382
4388
|
};
|
4383
|
-
function
|
4384
|
-
|
4385
|
-
|
4389
|
+
function Br(c) {
|
4390
|
+
be[c ? "unshift" : "push"](() => {
|
4391
|
+
S = c, r(5, S);
|
4386
4392
|
});
|
4387
4393
|
}
|
4388
|
-
function
|
4389
|
-
|
4394
|
+
function Ir(c) {
|
4395
|
+
be[c ? "unshift" : "push"](() => {
|
4390
4396
|
M = c, r(12, M);
|
4391
4397
|
});
|
4392
4398
|
}
|
4393
|
-
const
|
4394
|
-
function
|
4395
|
-
|
4396
|
-
|
4399
|
+
const Mr = () => ht();
|
4400
|
+
function Lr(c) {
|
4401
|
+
be[c ? "unshift" : "push"](() => {
|
4402
|
+
j = c, r(4, j);
|
4397
4403
|
});
|
4398
4404
|
}
|
4399
4405
|
return e.$$set = (c) => {
|
4400
|
-
"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);
|
4401
4407
|
}, e.$$.update = () => {
|
4402
4408
|
e.$$.dirty[0] & /*activeindex*/
|
4403
4409
|
2, e.$$.dirty[0] & /*translationurl*/
|
4404
|
-
536870912 && f &&
|
4405
|
-
67108880 && l &&
|
4406
|
-
134217744 && u &&
|
4410
|
+
536870912 && f && _r(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4411
|
+
67108880 && l && j && sn(j, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4412
|
+
134217744 && u && j && an(j, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4407
4413
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4408
|
-
16 && N &&
|
4409
|
-
2 && b &&
|
4414
|
+
16 && N && j && ln(j, `${N}.Style`), e.$$.dirty[1] & /*lang*/
|
4415
|
+
2 && b && Er();
|
4410
4416
|
}, [
|
4411
4417
|
h,
|
4412
4418
|
d,
|
4413
|
-
|
4414
|
-
|
4415
|
-
|
4416
|
-
|
4417
|
-
|
4418
|
-
fe,
|
4419
|
-
Re,
|
4419
|
+
x,
|
4420
|
+
_,
|
4421
|
+
j,
|
4422
|
+
S,
|
4423
|
+
Z,
|
4420
4424
|
me,
|
4421
|
-
|
4422
|
-
|
4425
|
+
Ue,
|
4426
|
+
de,
|
4427
|
+
we,
|
4428
|
+
ee,
|
4423
4429
|
M,
|
4424
|
-
|
4425
|
-
pr,
|
4426
|
-
gr,
|
4430
|
+
K,
|
4427
4431
|
br,
|
4428
|
-
|
4429
|
-
|
4430
|
-
|
4431
|
-
|
4432
|
+
yr,
|
4433
|
+
vr,
|
4434
|
+
Ge,
|
4435
|
+
ut,
|
4436
|
+
ht,
|
4437
|
+
Cr,
|
4432
4438
|
n,
|
4433
4439
|
i,
|
4434
|
-
s,
|
4435
4440
|
o,
|
4441
|
+
s,
|
4436
4442
|
a,
|
4437
4443
|
l,
|
4438
4444
|
u,
|
@@ -4444,24 +4450,24 @@ function eo(e, t, r) {
|
|
4444
4450
|
w,
|
4445
4451
|
U,
|
4446
4452
|
N,
|
4447
|
-
Cr,
|
4448
|
-
wr,
|
4449
4453
|
Hr,
|
4450
4454
|
Sr,
|
4451
4455
|
Tr,
|
4452
4456
|
Ar,
|
4453
4457
|
Br,
|
4454
|
-
Ir
|
4458
|
+
Ir,
|
4459
|
+
Mr,
|
4460
|
+
Lr
|
4455
4461
|
];
|
4456
4462
|
}
|
4457
|
-
class
|
4463
|
+
class no extends nn {
|
4458
4464
|
constructor(t) {
|
4459
|
-
super(),
|
4465
|
+
super(), tn(
|
4460
4466
|
this,
|
4461
4467
|
t,
|
4462
|
-
|
4463
|
-
|
4464
|
-
|
4468
|
+
ro,
|
4469
|
+
to,
|
4470
|
+
$t,
|
4465
4471
|
{
|
4466
4472
|
endpoint: 21,
|
4467
4473
|
datasource: 22,
|
@@ -4483,7 +4489,7 @@ class to extends tn {
|
|
4483
4489
|
mygamesiconimage: 34,
|
4484
4490
|
mbsource: 35
|
4485
4491
|
},
|
4486
|
-
|
4492
|
+
Yi,
|
4487
4493
|
[-1, -1, -1]
|
4488
4494
|
);
|
4489
4495
|
}
|
@@ -4602,7 +4608,7 @@ class to extends tn {
|
|
4602
4608
|
this.$$set({ mbsource: t }), B();
|
4603
4609
|
}
|
4604
4610
|
}
|
4605
|
-
|
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);
|
4606
4612
|
export {
|
4607
|
-
|
4613
|
+
no as C
|
4608
4614
|
};
|