@everymatrix/casino-slider 1.67.3 → 1.68.0
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-2k8UQrFs.cjs +3 -0
- package/components/{CasinoSlider-BVogtiVI.js → CasinoSlider-D695H9Sp.js} +957 -955
- package/components/{CasinoSlider-DGvNwCMW.js → CasinoSlider-DjWsrMoE.js} +800 -798
- 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-DtRJg9TM.cjs +0 -16
@@ -1,17 +1,17 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
1
|
+
var Pr = Object.defineProperty, Or = Object.defineProperties;
|
2
|
+
var Lr = Object.getOwnPropertyDescriptors;
|
3
|
+
var ft = Object.getOwnPropertySymbols;
|
4
|
+
var Fr = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var Ue = (e, t, r) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Fr.call(t, r) && Ue(e, r, t[r]);
|
8
|
+
if (ft)
|
9
|
+
for (var r of ft(t))
|
10
|
+
Rr.call(t, r) && Ue(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var U = (e, t, r) => (
|
14
|
-
var
|
12
|
+
}, dt = (e, t) => Or(e, Lr(t));
|
13
|
+
var U = (e, t, r) => (Ue(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var pt = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (u) => {
|
16
16
|
try {
|
17
17
|
a(r.next(u));
|
@@ -29,29 +29,29 @@ var dt = (e, t, r) => new Promise((n, i) => {
|
|
29
29
|
});
|
30
30
|
function k() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function Vt(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function gt() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
e.forEach(
|
38
|
+
function Y(e) {
|
39
|
+
e.forEach(Vt);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function it(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Xt(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
|
-
let
|
48
|
-
function
|
49
|
-
return e === t ? !0 : (
|
47
|
+
let we;
|
48
|
+
function bt(e, t) {
|
49
|
+
return e === t ? !0 : (we || (we = document.createElement("a")), we.href = t, e === we.href);
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function Dr(e) {
|
52
52
|
return Object.keys(e).length === 0;
|
53
53
|
}
|
54
|
-
function
|
54
|
+
function Ur(e, ...t) {
|
55
55
|
if (e == null) {
|
56
56
|
for (const n of t)
|
57
57
|
n(void 0);
|
@@ -63,14 +63,14 @@ function Dr(e, ...t) {
|
|
63
63
|
function B(e, t) {
|
64
64
|
e.appendChild(t);
|
65
65
|
}
|
66
|
-
function
|
67
|
-
const n =
|
66
|
+
function Gr(e, t, r) {
|
67
|
+
const n = kr(e);
|
68
68
|
if (!n.getElementById(t)) {
|
69
|
-
const i =
|
70
|
-
i.id = t, i.textContent = r,
|
69
|
+
const i = P("style");
|
70
|
+
i.id = t, i.textContent = r, $r(n, i);
|
71
71
|
}
|
72
72
|
}
|
73
|
-
function
|
73
|
+
function kr(e) {
|
74
74
|
if (!e)
|
75
75
|
return document;
|
76
76
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -80,7 +80,7 @@ function Gr(e) {
|
|
80
80
|
t
|
81
81
|
) : e.ownerDocument;
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function $r(e, t) {
|
84
84
|
return B(
|
85
85
|
/** @type {Document} */
|
86
86
|
e.head || e,
|
@@ -93,36 +93,36 @@ function G(e, t, r) {
|
|
93
93
|
function D(e) {
|
94
94
|
e.parentNode && e.parentNode.removeChild(e);
|
95
95
|
}
|
96
|
-
function
|
96
|
+
function jr(e, t) {
|
97
97
|
for (let r = 0; r < e.length; r += 1)
|
98
98
|
e[r] && e[r].d(t);
|
99
99
|
}
|
100
|
-
function
|
100
|
+
function P(e) {
|
101
101
|
return document.createElement(e);
|
102
102
|
}
|
103
|
-
function
|
103
|
+
function Ee(e) {
|
104
104
|
return document.createTextNode(e);
|
105
105
|
}
|
106
|
-
function
|
107
|
-
return
|
106
|
+
function J() {
|
107
|
+
return Ee(" ");
|
108
108
|
}
|
109
|
-
function
|
110
|
-
return
|
109
|
+
function be() {
|
110
|
+
return Ee("");
|
111
111
|
}
|
112
|
-
function
|
112
|
+
function Be(e, t, r, n) {
|
113
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
114
114
|
}
|
115
|
-
function
|
115
|
+
function H(e, t, r) {
|
116
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
117
117
|
}
|
118
|
-
function
|
118
|
+
function Vr(e) {
|
119
119
|
return Array.from(e.childNodes);
|
120
120
|
}
|
121
|
-
function
|
121
|
+
function ot(e, t) {
|
122
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
123
123
|
t);
|
124
124
|
}
|
125
|
-
function
|
125
|
+
function Xr(e) {
|
126
126
|
const t = {};
|
127
127
|
return e.childNodes.forEach(
|
128
128
|
/** @param {Element} node */
|
@@ -131,120 +131,120 @@ function Vr(e) {
|
|
131
131
|
}
|
132
132
|
), t;
|
133
133
|
}
|
134
|
-
let
|
135
|
-
function
|
136
|
-
|
134
|
+
let ye;
|
135
|
+
function pe(e) {
|
136
|
+
ye = e;
|
137
137
|
}
|
138
|
-
function
|
139
|
-
if (!
|
138
|
+
function Wr() {
|
139
|
+
if (!ye)
|
140
140
|
throw new Error("Function called outside component initialization");
|
141
|
-
return
|
141
|
+
return ye;
|
142
142
|
}
|
143
|
-
function
|
144
|
-
|
143
|
+
function zr(e) {
|
144
|
+
Wr().$$.on_mount.push(e);
|
145
145
|
}
|
146
|
-
const
|
147
|
-
let
|
148
|
-
const
|
149
|
-
let
|
150
|
-
function
|
151
|
-
|
146
|
+
const ne = [], ge = [];
|
147
|
+
let ie = [];
|
148
|
+
const yt = [], Zr = /* @__PURE__ */ Promise.resolve();
|
149
|
+
let ze = !1;
|
150
|
+
function Qr() {
|
151
|
+
ze || (ze = !0, Zr.then(A));
|
152
152
|
}
|
153
|
-
function
|
154
|
-
|
153
|
+
function Ze(e) {
|
154
|
+
ie.push(e);
|
155
155
|
}
|
156
|
-
const
|
157
|
-
let
|
156
|
+
const Ge = /* @__PURE__ */ new Set();
|
157
|
+
let te = 0;
|
158
158
|
function A() {
|
159
|
-
if (
|
159
|
+
if (te !== 0)
|
160
160
|
return;
|
161
|
-
const e =
|
161
|
+
const e = ye;
|
162
162
|
do {
|
163
163
|
try {
|
164
|
-
for (;
|
165
|
-
const t =
|
166
|
-
|
164
|
+
for (; te < ne.length; ) {
|
165
|
+
const t = ne[te];
|
166
|
+
te++, pe(t), qr(t.$$);
|
167
167
|
}
|
168
168
|
} catch (t) {
|
169
|
-
throw
|
169
|
+
throw ne.length = 0, te = 0, t;
|
170
170
|
}
|
171
|
-
for (
|
172
|
-
|
173
|
-
for (let t = 0; t <
|
174
|
-
const r =
|
175
|
-
|
171
|
+
for (pe(null), ne.length = 0, te = 0; ge.length; )
|
172
|
+
ge.pop()();
|
173
|
+
for (let t = 0; t < ie.length; t += 1) {
|
174
|
+
const r = ie[t];
|
175
|
+
Ge.has(r) || (Ge.add(r), r());
|
176
176
|
}
|
177
|
-
|
178
|
-
} while (
|
179
|
-
for (;
|
180
|
-
|
181
|
-
|
177
|
+
ie.length = 0;
|
178
|
+
} while (ne.length);
|
179
|
+
for (; yt.length; )
|
180
|
+
yt.pop()();
|
181
|
+
ze = !1, Ge.clear(), pe(e);
|
182
182
|
}
|
183
|
-
function
|
183
|
+
function qr(e) {
|
184
184
|
if (e.fragment !== null) {
|
185
|
-
e.update(),
|
185
|
+
e.update(), Y(e.before_update);
|
186
186
|
const t = e.dirty;
|
187
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
187
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ze);
|
188
188
|
}
|
189
189
|
}
|
190
|
-
function
|
190
|
+
function Jr(e) {
|
191
191
|
const t = [], r = [];
|
192
|
-
|
192
|
+
ie.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ie = t;
|
193
193
|
}
|
194
|
-
const
|
195
|
-
function
|
196
|
-
e && e.i && (
|
194
|
+
const Yr = /* @__PURE__ */ new Set();
|
195
|
+
function Wt(e, t) {
|
196
|
+
e && e.i && (Yr.delete(e), e.i(t));
|
197
197
|
}
|
198
|
-
function
|
198
|
+
function oe(e) {
|
199
199
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
200
200
|
}
|
201
|
-
function
|
201
|
+
function zt(e, t) {
|
202
202
|
e.d(1), t.delete(e.key);
|
203
203
|
}
|
204
|
-
function
|
204
|
+
function Zt(e, t, r, n, i, o, s, a, u, l, h, m) {
|
205
205
|
let f = e.length, p = o.length, g = f;
|
206
206
|
const b = {};
|
207
207
|
for (; g--; )
|
208
208
|
b[e[g].key] = g;
|
209
|
-
const d = [],
|
209
|
+
const d = [], w = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), E = [];
|
210
210
|
for (g = p; g--; ) {
|
211
|
-
const
|
212
|
-
let
|
213
|
-
|
211
|
+
const C = m(i, o, g), M = r(C);
|
212
|
+
let O = s.get(M);
|
213
|
+
O ? E.push(() => O.p(C, t)) : (O = l(M, C), O.c()), w.set(M, d[g] = O), M in b && _.set(M, Math.abs(g - b[M]));
|
214
214
|
}
|
215
|
-
const
|
216
|
-
function $(
|
217
|
-
|
215
|
+
const L = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set();
|
216
|
+
function $(C) {
|
217
|
+
Wt(C, 1), C.m(a, h), s.set(C.key, C), h = C.first, p--;
|
218
218
|
}
|
219
219
|
for (; f && p; ) {
|
220
|
-
const
|
221
|
-
|
220
|
+
const C = d[p - 1], M = e[f - 1], O = C.key, X = M.key;
|
221
|
+
C === M ? (h = C.first, f--, p--) : w.has(X) ? !s.has(O) || L.has(O) ? $(C) : I.has(X) ? f-- : _.get(O) > _.get(X) ? (I.add(O), $(C)) : (L.add(X), f--) : (u(M, s), f--);
|
222
222
|
}
|
223
223
|
for (; f--; ) {
|
224
|
-
const
|
225
|
-
|
224
|
+
const C = e[f];
|
225
|
+
w.has(C.key) || u(C, s);
|
226
226
|
}
|
227
227
|
for (; p; )
|
228
228
|
$(d[p - 1]);
|
229
|
-
return
|
229
|
+
return Y(E), d;
|
230
230
|
}
|
231
|
-
function
|
231
|
+
function Kr(e, t, r) {
|
232
232
|
const { fragment: n, after_update: i } = e.$$;
|
233
|
-
n && n.m(t, r),
|
234
|
-
const o = e.$$.on_mount.map(
|
235
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
236
|
-
}), i.forEach(
|
233
|
+
n && n.m(t, r), Ze(() => {
|
234
|
+
const o = e.$$.on_mount.map(Vt).filter(it);
|
235
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
|
236
|
+
}), i.forEach(Ze);
|
237
237
|
}
|
238
|
-
function
|
238
|
+
function en(e, t) {
|
239
239
|
const r = e.$$;
|
240
|
-
r.fragment !== null && (
|
240
|
+
r.fragment !== null && (Jr(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
241
241
|
}
|
242
|
-
function
|
243
|
-
e.$$.dirty[0] === -1 && (
|
242
|
+
function tn(e, t) {
|
243
|
+
e.$$.dirty[0] === -1 && (ne.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
244
244
|
}
|
245
|
-
function
|
246
|
-
const u =
|
247
|
-
|
245
|
+
function rn(e, t, r, n, i, o, s = null, a = [-1]) {
|
246
|
+
const u = ye;
|
247
|
+
pe(e);
|
248
248
|
const l = e.$$ = {
|
249
249
|
fragment: null,
|
250
250
|
ctx: [],
|
@@ -252,7 +252,7 @@ function tn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
252
252
|
props: o,
|
253
253
|
update: k,
|
254
254
|
not_equal: i,
|
255
|
-
bound:
|
255
|
+
bound: gt(),
|
256
256
|
// lifecycle
|
257
257
|
on_mount: [],
|
258
258
|
on_destroy: [],
|
@@ -261,28 +261,28 @@ function tn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
261
261
|
after_update: [],
|
262
262
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
263
263
|
// everything else
|
264
|
-
callbacks:
|
264
|
+
callbacks: gt(),
|
265
265
|
dirty: a,
|
266
266
|
skip_bound: !1,
|
267
267
|
root: t.target || u.$$.root
|
268
268
|
};
|
269
269
|
s && s(l.root);
|
270
270
|
let h = !1;
|
271
|
-
if (l.ctx = r(e, t.props || {}, (m, f, ...p) => {
|
271
|
+
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
272
272
|
const g = p.length ? p[0] : f;
|
273
|
-
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), h &&
|
274
|
-
}), l.update(), h = !0,
|
273
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), h && tn(e, m)), f;
|
274
|
+
}) : [], l.update(), h = !0, Y(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
275
275
|
if (t.hydrate) {
|
276
|
-
const m =
|
276
|
+
const m = Vr(t.target);
|
277
277
|
l.fragment && l.fragment.l(m), m.forEach(D);
|
278
278
|
} else
|
279
279
|
l.fragment && l.fragment.c();
|
280
|
-
t.intro &&
|
280
|
+
t.intro && Wt(e.$$.fragment), Kr(e, t.target, t.anchor), A();
|
281
281
|
}
|
282
|
-
|
282
|
+
pe(u);
|
283
283
|
}
|
284
|
-
let
|
285
|
-
typeof HTMLElement == "function" && (
|
284
|
+
let Qt;
|
285
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
286
286
|
constructor(t, r, n) {
|
287
287
|
super();
|
288
288
|
/** The Svelte component constructor */
|
@@ -319,14 +319,14 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
319
319
|
}
|
320
320
|
}
|
321
321
|
connectedCallback() {
|
322
|
-
return
|
322
|
+
return pt(this, null, function* () {
|
323
323
|
if (this.$$cn = !0, !this.$$c) {
|
324
324
|
let t = function(o) {
|
325
325
|
return () => {
|
326
326
|
let s;
|
327
327
|
return {
|
328
328
|
c: function() {
|
329
|
-
s =
|
329
|
+
s = P("slot"), o !== "default" && H(s, "name", o);
|
330
330
|
},
|
331
331
|
/**
|
332
332
|
* @param {HTMLElement} target
|
@@ -343,18 +343,18 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
343
343
|
};
|
344
344
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
345
345
|
return;
|
346
|
-
const r = {}, n =
|
346
|
+
const r = {}, n = Xr(this);
|
347
347
|
for (const o of this.$$s)
|
348
348
|
o in n && (r[o] = [t(o)]);
|
349
349
|
for (const o of this.attributes) {
|
350
350
|
const s = this.$$g_p(o.name);
|
351
|
-
s in this.$$d || (this.$$d[s] =
|
351
|
+
s in this.$$d || (this.$$d[s] = Se(s, o.value, this.$$p_d, "toProp"));
|
352
352
|
}
|
353
353
|
for (const o in this.$$p_d)
|
354
354
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
355
355
|
this.$$c = new this.$$ctor({
|
356
356
|
target: this.shadowRoot || this,
|
357
|
-
props: mt(
|
357
|
+
props: dt(mt({}, this.$$d), {
|
358
358
|
$$slots: r,
|
359
359
|
$$scope: {
|
360
360
|
ctx: []
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
365
365
|
this.$$r = !0;
|
366
366
|
for (const o in this.$$p_d)
|
367
367
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
368
|
-
const s =
|
368
|
+
const s = Se(
|
369
369
|
o,
|
370
370
|
this.$$d[o],
|
371
371
|
this.$$p_d,
|
@@ -389,7 +389,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
389
389
|
// and setting attributes through setAttribute etc, this is helpful
|
390
390
|
attributeChangedCallback(t, r, n) {
|
391
391
|
var i;
|
392
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
392
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Se(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
393
393
|
}
|
394
394
|
disconnectedCallback() {
|
395
395
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -402,7 +402,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
402
402
|
) || t;
|
403
403
|
}
|
404
404
|
});
|
405
|
-
function
|
405
|
+
function Se(e, t, r, n) {
|
406
406
|
var o;
|
407
407
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
408
408
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -432,8 +432,8 @@ function He(e, t, r, n) {
|
|
432
432
|
return t;
|
433
433
|
}
|
434
434
|
}
|
435
|
-
function
|
436
|
-
let s = class extends
|
435
|
+
function nn(e, t, r, n, i, o) {
|
436
|
+
let s = class extends Qt {
|
437
437
|
constructor() {
|
438
438
|
super(e, r, i), this.$$p_d = t;
|
439
439
|
}
|
@@ -450,7 +450,7 @@ function rn(e, t, r, n, i, o) {
|
|
450
450
|
},
|
451
451
|
set(u) {
|
452
452
|
var l;
|
453
|
-
u =
|
453
|
+
u = Se(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
|
454
454
|
}
|
455
455
|
});
|
456
456
|
}), n.forEach((a) => {
|
@@ -463,7 +463,7 @@ function rn(e, t, r, n, i, o) {
|
|
463
463
|
}), e.element = /** @type {any} */
|
464
464
|
s, s;
|
465
465
|
}
|
466
|
-
class
|
466
|
+
class on {
|
467
467
|
constructor() {
|
468
468
|
/**
|
469
469
|
* ### PRIVATE API
|
@@ -484,7 +484,7 @@ class nn {
|
|
484
484
|
}
|
485
485
|
/** @returns {void} */
|
486
486
|
$destroy() {
|
487
|
-
|
487
|
+
en(this, 1), this.$destroy = k;
|
488
488
|
}
|
489
489
|
/**
|
490
490
|
* @template {Extract<keyof Events, string>} K
|
@@ -493,7 +493,7 @@ class nn {
|
|
493
493
|
* @returns {() => void}
|
494
494
|
*/
|
495
495
|
$on(t, r) {
|
496
|
-
if (!
|
496
|
+
if (!it(r))
|
497
497
|
return k;
|
498
498
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
499
499
|
return n.push(r), () => {
|
@@ -506,18 +506,18 @@ class nn {
|
|
506
506
|
* @returns {void}
|
507
507
|
*/
|
508
508
|
$set(t) {
|
509
|
-
this.$$set && !
|
509
|
+
this.$$set && !Dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
510
510
|
}
|
511
511
|
}
|
512
|
-
const
|
513
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
514
|
-
function
|
512
|
+
const sn = "4";
|
513
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(sn);
|
514
|
+
function an(e, t) {
|
515
515
|
if (e) {
|
516
516
|
const r = document.createElement("style");
|
517
517
|
r.innerHTML = t, e.appendChild(r);
|
518
518
|
}
|
519
519
|
}
|
520
|
-
function
|
520
|
+
function ln(e, t) {
|
521
521
|
const r = new URL(t);
|
522
522
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
523
523
|
const i = document.createElement("style");
|
@@ -526,7 +526,7 @@ function an(e, t) {
|
|
526
526
|
console.error("There was an error while trying to load client styling from URL", n);
|
527
527
|
});
|
528
528
|
}
|
529
|
-
function
|
529
|
+
function un(e, t, r) {
|
530
530
|
if (window.emMessageBus) {
|
531
531
|
const n = document.createElement("style");
|
532
532
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -534,24 +534,24 @@ function ln(e, t, r) {
|
|
534
534
|
});
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const
|
538
|
-
function
|
537
|
+
const re = [];
|
538
|
+
function hn(e, t) {
|
539
539
|
return {
|
540
|
-
subscribe:
|
540
|
+
subscribe: Pe(e, t).subscribe
|
541
541
|
};
|
542
542
|
}
|
543
|
-
function
|
543
|
+
function Pe(e, t = k) {
|
544
544
|
let r;
|
545
545
|
const n = /* @__PURE__ */ new Set();
|
546
546
|
function i(a) {
|
547
|
-
if (
|
548
|
-
const u = !
|
547
|
+
if (Xt(e, a) && (e = a, r)) {
|
548
|
+
const u = !re.length;
|
549
549
|
for (const l of n)
|
550
|
-
l[1](),
|
550
|
+
l[1](), re.push(l, e);
|
551
551
|
if (u) {
|
552
|
-
for (let l = 0; l <
|
553
|
-
|
554
|
-
|
552
|
+
for (let l = 0; l < re.length; l += 2)
|
553
|
+
re[l][0](re[l + 1]);
|
554
|
+
re.length = 0;
|
555
555
|
}
|
556
556
|
}
|
557
557
|
}
|
@@ -566,12 +566,12 @@ function Me(e, t = k) {
|
|
566
566
|
}
|
567
567
|
return { set: i, update: o, subscribe: s };
|
568
568
|
}
|
569
|
-
function
|
569
|
+
function he(e, t, r) {
|
570
570
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
571
571
|
if (!i.every(Boolean))
|
572
572
|
throw new Error("derived() expects stores as input, got a falsy value");
|
573
573
|
const o = t.length < 2;
|
574
|
-
return
|
574
|
+
return hn(r, (s, a) => {
|
575
575
|
let u = !1;
|
576
576
|
const l = [];
|
577
577
|
let h = 0, m = k;
|
@@ -580,9 +580,9 @@ function ue(e, t, r) {
|
|
580
580
|
return;
|
581
581
|
m();
|
582
582
|
const g = t(n ? l[0] : l, s, a);
|
583
|
-
o ? s(g) : m =
|
583
|
+
o ? s(g) : m = it(g) ? g : k;
|
584
584
|
}, p = i.map(
|
585
|
-
(g, b) =>
|
585
|
+
(g, b) => Ur(
|
586
586
|
g,
|
587
587
|
(d) => {
|
588
588
|
l[b] = d, h &= ~(1 << b), u && f();
|
@@ -593,126 +593,112 @@ function ue(e, t, r) {
|
|
593
593
|
)
|
594
594
|
);
|
595
595
|
return u = !0, f(), function() {
|
596
|
-
|
596
|
+
Y(p), m(), u = !1;
|
597
597
|
};
|
598
598
|
});
|
599
599
|
}
|
600
|
-
function
|
601
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
600
|
+
function cn(e) {
|
601
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
602
602
|
}
|
603
|
-
var
|
604
|
-
return
|
603
|
+
var fn = function(t) {
|
604
|
+
return mn(t) && !dn(t);
|
605
605
|
};
|
606
|
-
function
|
606
|
+
function mn(e) {
|
607
607
|
return !!e && typeof e == "object";
|
608
608
|
}
|
609
|
-
function
|
609
|
+
function dn(e) {
|
610
610
|
var t = Object.prototype.toString.call(e);
|
611
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
612
|
-
}
|
613
|
-
var dn = typeof Symbol == "function" && Symbol.for, pn = dn ? Symbol.for("react.element") : 60103;
|
614
|
-
function gn(e) {
|
615
|
-
return e.$$typeof === pn;
|
611
|
+
return t === "[object RegExp]" || t === "[object Date]" || bn(e);
|
616
612
|
}
|
613
|
+
var pn = typeof Symbol == "function" && Symbol.for, gn = pn ? Symbol.for("react.element") : 60103;
|
617
614
|
function bn(e) {
|
615
|
+
return e.$$typeof === gn;
|
616
|
+
}
|
617
|
+
function yn(e) {
|
618
618
|
return Array.isArray(e) ? [] : {};
|
619
619
|
}
|
620
|
-
function
|
621
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
620
|
+
function ve(e, t) {
|
621
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? se(yn(e), e, t) : e;
|
622
622
|
}
|
623
|
-
function
|
623
|
+
function vn(e, t, r) {
|
624
624
|
return e.concat(t).map(function(n) {
|
625
|
-
return
|
625
|
+
return ve(n, r);
|
626
626
|
});
|
627
627
|
}
|
628
628
|
function _n(e, t) {
|
629
629
|
if (!t.customMerge)
|
630
|
-
return
|
630
|
+
return se;
|
631
631
|
var r = t.customMerge(e);
|
632
|
-
return typeof r == "function" ? r :
|
632
|
+
return typeof r == "function" ? r : se;
|
633
633
|
}
|
634
|
-
function
|
634
|
+
function En(e) {
|
635
635
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
636
636
|
return Object.propertyIsEnumerable.call(e, t);
|
637
637
|
}) : [];
|
638
638
|
}
|
639
|
-
function
|
640
|
-
return Object.keys(e).concat(
|
639
|
+
function vt(e) {
|
640
|
+
return Object.keys(e).concat(En(e));
|
641
641
|
}
|
642
|
-
function
|
642
|
+
function qt(e, t) {
|
643
643
|
try {
|
644
644
|
return t in e;
|
645
645
|
} catch (r) {
|
646
646
|
return !1;
|
647
647
|
}
|
648
648
|
}
|
649
|
-
function
|
650
|
-
return
|
649
|
+
function xn(e, t) {
|
650
|
+
return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
651
651
|
}
|
652
|
-
function
|
652
|
+
function Cn(e, t, r) {
|
653
653
|
var n = {};
|
654
|
-
return r.isMergeableObject(e) &&
|
655
|
-
n[i] =
|
656
|
-
}),
|
657
|
-
|
654
|
+
return r.isMergeableObject(e) && vt(e).forEach(function(i) {
|
655
|
+
n[i] = ve(e[i], r);
|
656
|
+
}), vt(t).forEach(function(i) {
|
657
|
+
xn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _n(i, r)(e[i], t[i], r) : n[i] = ve(t[i], r));
|
658
658
|
}), n;
|
659
659
|
}
|
660
|
-
function
|
661
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
660
|
+
function se(e, t, r) {
|
661
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vn, r.isMergeableObject = r.isMergeableObject || fn, r.cloneUnlessOtherwiseSpecified = ve;
|
662
662
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
663
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
663
|
+
return o ? n ? r.arrayMerge(e, t, r) : Cn(e, t, r) : ve(t, r);
|
664
664
|
}
|
665
|
-
|
665
|
+
se.all = function(t, r) {
|
666
666
|
if (!Array.isArray(t))
|
667
667
|
throw new Error("first argument should be an array");
|
668
668
|
return t.reduce(function(n, i) {
|
669
|
-
return
|
669
|
+
return se(n, i, r);
|
670
670
|
}, {});
|
671
671
|
};
|
672
|
-
var
|
673
|
-
const
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
678
|
-
purpose with or without fee is hereby granted.
|
679
|
-
|
680
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
681
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
682
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
683
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
684
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
685
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
686
|
-
PERFORMANCE OF THIS SOFTWARE.
|
687
|
-
***************************************************************************** */
|
688
|
-
var ze = function(e, t) {
|
689
|
-
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
672
|
+
var wn = se, Hn = wn;
|
673
|
+
const Sn = /* @__PURE__ */ cn(Hn);
|
674
|
+
var Qe = function(e, t) {
|
675
|
+
return Qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
690
676
|
r.__proto__ = n;
|
691
677
|
} || function(r, n) {
|
692
678
|
for (var i in n)
|
693
679
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
694
|
-
},
|
680
|
+
}, Qe(e, t);
|
695
681
|
};
|
696
|
-
function
|
682
|
+
function Oe(e, t) {
|
697
683
|
if (typeof t != "function" && t !== null)
|
698
684
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
699
|
-
|
685
|
+
Qe(e, t);
|
700
686
|
function r() {
|
701
687
|
this.constructor = e;
|
702
688
|
}
|
703
689
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
704
690
|
}
|
705
|
-
var
|
706
|
-
return
|
691
|
+
var j = function() {
|
692
|
+
return j = Object.assign || function(t) {
|
707
693
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
708
694
|
r = arguments[n];
|
709
695
|
for (var o in r)
|
710
696
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
711
697
|
}
|
712
698
|
return t;
|
713
|
-
},
|
699
|
+
}, j.apply(this, arguments);
|
714
700
|
};
|
715
|
-
function
|
701
|
+
function Tn(e, t) {
|
716
702
|
var r = {};
|
717
703
|
for (var n in e)
|
718
704
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -721,46 +707,43 @@ function Sn(e, t) {
|
|
721
707
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
722
708
|
return r;
|
723
709
|
}
|
724
|
-
function
|
725
|
-
if (arguments.length === 2)
|
710
|
+
function ke(e, t, r) {
|
711
|
+
if (r || arguments.length === 2)
|
726
712
|
for (var n = 0, i = t.length, o; n < i; n++)
|
727
713
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
728
|
-
return e.concat(o || t);
|
714
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
729
715
|
}
|
730
|
-
function
|
731
|
-
var r = t && t.cache ? t.cache :
|
716
|
+
function $e(e, t) {
|
717
|
+
var r = t && t.cache ? t.cache : On, n = t && t.serializer ? t.serializer : Nn, i = t && t.strategy ? t.strategy : In;
|
732
718
|
return i(e, {
|
733
719
|
cache: r,
|
734
720
|
serializer: n
|
735
721
|
});
|
736
722
|
}
|
737
|
-
function
|
723
|
+
function An(e) {
|
738
724
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
739
725
|
}
|
740
|
-
function
|
741
|
-
var i =
|
726
|
+
function Bn(e, t, r, n) {
|
727
|
+
var i = An(n) ? n : r(n), o = t.get(i);
|
742
728
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
743
729
|
}
|
744
730
|
function Jt(e, t, r) {
|
745
731
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
746
732
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
747
733
|
}
|
748
|
-
function
|
734
|
+
function Yt(e, t, r, n, i) {
|
749
735
|
return r.bind(t, e, n, i);
|
750
736
|
}
|
751
|
-
function An(e, t) {
|
752
|
-
var r = e.length === 1 ? qt : Jt;
|
753
|
-
return it(e, this, r, t.cache.create(), t.serializer);
|
754
|
-
}
|
755
|
-
function Bn(e, t) {
|
756
|
-
return it(e, this, Jt, t.cache.create(), t.serializer);
|
757
|
-
}
|
758
737
|
function In(e, t) {
|
759
|
-
|
738
|
+
var r = e.length === 1 ? Bn : Jt;
|
739
|
+
return Yt(e, this, r, t.cache.create(), t.serializer);
|
760
740
|
}
|
761
|
-
|
741
|
+
function Mn(e, t) {
|
742
|
+
return Yt(e, this, Jt, t.cache.create(), t.serializer);
|
743
|
+
}
|
744
|
+
var Nn = function() {
|
762
745
|
return JSON.stringify(arguments);
|
763
|
-
},
|
746
|
+
}, Pn = (
|
764
747
|
/** @class */
|
765
748
|
function() {
|
766
749
|
function e() {
|
@@ -772,62 +755,71 @@ var Mn = function() {
|
|
772
755
|
this.cache[t] = r;
|
773
756
|
}, e;
|
774
757
|
}()
|
775
|
-
),
|
758
|
+
), On = {
|
776
759
|
create: function() {
|
777
|
-
return new
|
760
|
+
return new Pn();
|
778
761
|
}
|
779
|
-
},
|
780
|
-
variadic:
|
781
|
-
|
782
|
-
|
762
|
+
}, je = {
|
763
|
+
variadic: Mn
|
764
|
+
}, Ie = function() {
|
765
|
+
return Ie = Object.assign || function(t) {
|
766
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
767
|
+
r = arguments[n];
|
768
|
+
for (var o in r)
|
769
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
770
|
+
}
|
771
|
+
return t;
|
772
|
+
}, Ie.apply(this, arguments);
|
773
|
+
};
|
774
|
+
var y;
|
783
775
|
(function(e) {
|
784
776
|
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";
|
785
777
|
})(y || (y = {}));
|
786
|
-
var
|
778
|
+
var S;
|
787
779
|
(function(e) {
|
788
780
|
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";
|
789
|
-
})(
|
790
|
-
var
|
781
|
+
})(S || (S = {}));
|
782
|
+
var ae;
|
791
783
|
(function(e) {
|
792
784
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
793
|
-
})(
|
785
|
+
})(ae || (ae = {}));
|
794
786
|
function _t(e) {
|
795
|
-
return e.type ===
|
796
|
-
}
|
797
|
-
function Pn(e) {
|
798
|
-
return e.type === T.argument;
|
787
|
+
return e.type === S.literal;
|
799
788
|
}
|
800
|
-
function
|
801
|
-
return e.type ===
|
789
|
+
function Ln(e) {
|
790
|
+
return e.type === S.argument;
|
802
791
|
}
|
803
792
|
function Kt(e) {
|
804
|
-
return e.type ===
|
793
|
+
return e.type === S.number;
|
805
794
|
}
|
806
795
|
function er(e) {
|
807
|
-
return e.type ===
|
796
|
+
return e.type === S.date;
|
808
797
|
}
|
809
798
|
function tr(e) {
|
810
|
-
return e.type ===
|
799
|
+
return e.type === S.time;
|
811
800
|
}
|
812
801
|
function rr(e) {
|
813
|
-
return e.type ===
|
814
|
-
}
|
815
|
-
function On(e) {
|
816
|
-
return e.type === T.pound;
|
802
|
+
return e.type === S.select;
|
817
803
|
}
|
818
804
|
function nr(e) {
|
819
|
-
return e.type ===
|
805
|
+
return e.type === S.plural;
|
806
|
+
}
|
807
|
+
function Fn(e) {
|
808
|
+
return e.type === S.pound;
|
820
809
|
}
|
821
810
|
function ir(e) {
|
822
|
-
return
|
811
|
+
return e.type === S.tag;
|
823
812
|
}
|
824
|
-
function
|
825
|
-
return !!(e && typeof e == "object" && e.type ===
|
813
|
+
function or(e) {
|
814
|
+
return !!(e && typeof e == "object" && e.type === ae.number);
|
815
|
+
}
|
816
|
+
function qe(e) {
|
817
|
+
return !!(e && typeof e == "object" && e.type === ae.dateTime);
|
826
818
|
}
|
827
|
-
var
|
828
|
-
function
|
819
|
+
var sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rn = /(?:[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;
|
820
|
+
function Dn(e) {
|
829
821
|
var t = {};
|
830
|
-
return e.replace(
|
822
|
+
return e.replace(Rn, function(r) {
|
831
823
|
var n = r.length;
|
832
824
|
switch (r[0]) {
|
833
825
|
case "G":
|
@@ -916,11 +908,21 @@ function Rn(e) {
|
|
916
908
|
return "";
|
917
909
|
}), t;
|
918
910
|
}
|
919
|
-
var
|
920
|
-
function
|
911
|
+
var T = function() {
|
912
|
+
return T = Object.assign || function(t) {
|
913
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
914
|
+
r = arguments[n];
|
915
|
+
for (var o in r)
|
916
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
917
|
+
}
|
918
|
+
return t;
|
919
|
+
}, T.apply(this, arguments);
|
920
|
+
};
|
921
|
+
var Un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
922
|
+
function Gn(e) {
|
921
923
|
if (e.length === 0)
|
922
924
|
throw new Error("Number skeleton cannot be empty");
|
923
|
-
for (var t = e.split(
|
925
|
+
for (var t = e.split(Un).filter(function(f) {
|
924
926
|
return f.length > 0;
|
925
927
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
926
928
|
var o = i[n], s = o.split("/");
|
@@ -935,17 +937,17 @@ function Un(e) {
|
|
935
937
|
}
|
936
938
|
return r;
|
937
939
|
}
|
938
|
-
function
|
940
|
+
function kn(e) {
|
939
941
|
return e.replace(/^(.*?)-/, "");
|
940
942
|
}
|
941
|
-
var
|
942
|
-
function
|
943
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ar = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
|
944
|
+
function xt(e) {
|
943
945
|
var t = {};
|
944
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
946
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ar, function(r, n, i) {
|
945
947
|
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)), "";
|
946
948
|
}), t;
|
947
949
|
}
|
948
|
-
function
|
950
|
+
function ur(e) {
|
949
951
|
switch (e) {
|
950
952
|
case "sign-auto":
|
951
953
|
return {
|
@@ -985,7 +987,7 @@ function lr(e) {
|
|
985
987
|
};
|
986
988
|
}
|
987
989
|
}
|
988
|
-
function
|
990
|
+
function jn(e) {
|
989
991
|
var t;
|
990
992
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
991
993
|
notation: "engineering"
|
@@ -993,17 +995,17 @@ function $n(e) {
|
|
993
995
|
notation: "scientific"
|
994
996
|
}, e = e.slice(1)), t) {
|
995
997
|
var r = e.slice(0, 2);
|
996
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
998
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
|
997
999
|
throw new Error("Malformed concise eng/scientific notation");
|
998
1000
|
t.minimumIntegerDigits = e.length;
|
999
1001
|
}
|
1000
1002
|
return t;
|
1001
1003
|
}
|
1002
|
-
function
|
1003
|
-
var t = {}, r =
|
1004
|
+
function Ct(e) {
|
1005
|
+
var t = {}, r = ur(e);
|
1004
1006
|
return r || t;
|
1005
1007
|
}
|
1006
|
-
function
|
1008
|
+
function Vn(e) {
|
1007
1009
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1008
1010
|
var i = n[r];
|
1009
1011
|
switch (i.stem) {
|
@@ -1027,7 +1029,7 @@ function jn(e) {
|
|
1027
1029
|
continue;
|
1028
1030
|
case "measure-unit":
|
1029
1031
|
case "unit":
|
1030
|
-
t.style = "unit", t.unit =
|
1032
|
+
t.style = "unit", t.unit = kn(i.options[0]);
|
1031
1033
|
continue;
|
1032
1034
|
case "compact-short":
|
1033
1035
|
case "K":
|
@@ -1038,13 +1040,13 @@ function jn(e) {
|
|
1038
1040
|
t.notation = "compact", t.compactDisplay = "long";
|
1039
1041
|
continue;
|
1040
1042
|
case "scientific":
|
1041
|
-
t =
|
1042
|
-
return
|
1043
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
1044
|
+
return T(T({}, u), Ct(l));
|
1043
1045
|
}, {}));
|
1044
1046
|
continue;
|
1045
1047
|
case "engineering":
|
1046
|
-
t =
|
1047
|
-
return
|
1048
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
1049
|
+
return T(T({}, u), Ct(l));
|
1048
1050
|
}, {}));
|
1049
1051
|
continue;
|
1050
1052
|
case "notation-simple":
|
@@ -1089,7 +1091,7 @@ function jn(e) {
|
|
1089
1091
|
case "integer-width":
|
1090
1092
|
if (i.options.length > 1)
|
1091
1093
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1092
|
-
i.options[0].replace(
|
1094
|
+
i.options[0].replace($n, function(u, l, h, m, f, p) {
|
1093
1095
|
if (l)
|
1094
1096
|
t.minimumIntegerDigits = h.length;
|
1095
1097
|
else {
|
@@ -1102,32 +1104,32 @@ function jn(e) {
|
|
1102
1104
|
});
|
1103
1105
|
continue;
|
1104
1106
|
}
|
1105
|
-
if (
|
1107
|
+
if (lr.test(i.stem)) {
|
1106
1108
|
t.minimumIntegerDigits = i.stem.length;
|
1107
1109
|
continue;
|
1108
1110
|
}
|
1109
|
-
if (
|
1111
|
+
if (Et.test(i.stem)) {
|
1110
1112
|
if (i.options.length > 1)
|
1111
1113
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1112
|
-
i.stem.replace(
|
1114
|
+
i.stem.replace(Et, function(u, l, h, m, f, p) {
|
1113
1115
|
return h === "*" ? 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), "";
|
1114
1116
|
});
|
1115
1117
|
var o = i.options[0];
|
1116
|
-
o === "w" ? t =
|
1118
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), xt(o)));
|
1117
1119
|
continue;
|
1118
1120
|
}
|
1119
|
-
if (
|
1120
|
-
t =
|
1121
|
+
if (ar.test(i.stem)) {
|
1122
|
+
t = T(T({}, t), xt(i.stem));
|
1121
1123
|
continue;
|
1122
1124
|
}
|
1123
|
-
var s =
|
1124
|
-
s && (t =
|
1125
|
-
var a =
|
1126
|
-
a && (t =
|
1125
|
+
var s = ur(i.stem);
|
1126
|
+
s && (t = T(T({}, t), s));
|
1127
|
+
var a = jn(i.stem);
|
1128
|
+
a && (t = T(T({}, t), a));
|
1127
1129
|
}
|
1128
1130
|
return t;
|
1129
1131
|
}
|
1130
|
-
var
|
1132
|
+
var He = {
|
1131
1133
|
"001": [
|
1132
1134
|
"H",
|
1133
1135
|
"h"
|
@@ -2542,13 +2544,13 @@ var we = {
|
|
2542
2544
|
"h"
|
2543
2545
|
]
|
2544
2546
|
};
|
2545
|
-
function
|
2547
|
+
function Xn(e, t) {
|
2546
2548
|
for (var r = "", n = 0; n < e.length; n++) {
|
2547
2549
|
var i = e.charAt(n);
|
2548
2550
|
if (i === "j") {
|
2549
2551
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2550
2552
|
o++, n++;
|
2551
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
2553
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Wn(t);
|
2552
2554
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2553
2555
|
r += u;
|
2554
2556
|
for (; s-- > 0; )
|
@@ -2558,7 +2560,7 @@ function Vn(e, t) {
|
|
2558
2560
|
}
|
2559
2561
|
return r;
|
2560
2562
|
}
|
2561
|
-
function
|
2563
|
+
function Wn(e) {
|
2562
2564
|
var t = e.hourCycle;
|
2563
2565
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2564
2566
|
e.hourCycles && // @ts-ignore
|
@@ -2577,23 +2579,23 @@ function Xn(e) {
|
|
2577
2579
|
}
|
2578
2580
|
var r = e.language, n;
|
2579
2581
|
r !== "root" && (n = e.maximize().region);
|
2580
|
-
var i =
|
2582
|
+
var i = He[n || ""] || He[r || ""] || He["".concat(r, "-001")] || He["001"];
|
2581
2583
|
return i[0];
|
2582
2584
|
}
|
2583
|
-
var
|
2584
|
-
function
|
2585
|
+
var Ve, zn = new RegExp("^".concat(sr.source, "*")), Zn = new RegExp("".concat(sr.source, "*$"));
|
2586
|
+
function v(e, t) {
|
2585
2587
|
return { start: e, end: t };
|
2586
2588
|
}
|
2587
|
-
var
|
2589
|
+
var Qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), qn = !!String.fromCodePoint, Jn = !!Object.fromEntries, Yn = !!String.prototype.codePointAt, Kn = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ri = ti ? Number.isSafeInteger : function(e) {
|
2588
2590
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2589
|
-
},
|
2591
|
+
}, Je = !0;
|
2590
2592
|
try {
|
2591
|
-
var
|
2592
|
-
|
2593
|
+
var ni = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2594
|
+
Je = ((Ve = ni.exec("a")) === null || Ve === void 0 ? void 0 : Ve[0]) === "a";
|
2593
2595
|
} catch (e) {
|
2594
|
-
|
2596
|
+
Je = !1;
|
2595
2597
|
}
|
2596
|
-
var
|
2598
|
+
var wt = Qn ? (
|
2597
2599
|
// Native
|
2598
2600
|
function(t, r, n) {
|
2599
2601
|
return t.startsWith(r, n);
|
@@ -2603,7 +2605,7 @@ var Ct = Zn ? (
|
|
2603
2605
|
function(t, r, n) {
|
2604
2606
|
return t.slice(n, n + r.length) === r;
|
2605
2607
|
}
|
2606
|
-
),
|
2608
|
+
), Ye = qn ? String.fromCodePoint : (
|
2607
2609
|
// IE11
|
2608
2610
|
function() {
|
2609
2611
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2615,9 +2617,9 @@ var Ct = Zn ? (
|
|
2615
2617
|
}
|
2616
2618
|
return n;
|
2617
2619
|
}
|
2618
|
-
),
|
2620
|
+
), Ht = (
|
2619
2621
|
// native
|
2620
|
-
|
2622
|
+
Jn ? Object.fromEntries : (
|
2621
2623
|
// Ponyfill
|
2622
2624
|
function(t) {
|
2623
2625
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2627,7 +2629,7 @@ var Ct = Zn ? (
|
|
2627
2629
|
return r;
|
2628
2630
|
}
|
2629
2631
|
)
|
2630
|
-
),
|
2632
|
+
), hr = Yn ? (
|
2631
2633
|
// Native
|
2632
2634
|
function(t, r) {
|
2633
2635
|
return t.codePointAt(r);
|
@@ -2641,7 +2643,7 @@ var Ct = Zn ? (
|
|
2641
2643
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2642
2644
|
}
|
2643
2645
|
}
|
2644
|
-
),
|
2646
|
+
), ii = Kn ? (
|
2645
2647
|
// Native
|
2646
2648
|
function(t) {
|
2647
2649
|
return t.trimStart();
|
@@ -2649,9 +2651,9 @@ var Ct = Zn ? (
|
|
2649
2651
|
) : (
|
2650
2652
|
// Ponyfill
|
2651
2653
|
function(t) {
|
2652
|
-
return t.replace(
|
2654
|
+
return t.replace(zn, "");
|
2653
2655
|
}
|
2654
|
-
),
|
2656
|
+
), oi = ei ? (
|
2655
2657
|
// Native
|
2656
2658
|
function(t) {
|
2657
2659
|
return t.trimEnd();
|
@@ -2659,32 +2661,32 @@ var Ct = Zn ? (
|
|
2659
2661
|
) : (
|
2660
2662
|
// Ponyfill
|
2661
2663
|
function(t) {
|
2662
|
-
return t.replace(
|
2664
|
+
return t.replace(Zn, "");
|
2663
2665
|
}
|
2664
2666
|
);
|
2665
|
-
function
|
2667
|
+
function cr(e, t) {
|
2666
2668
|
return new RegExp(e, t);
|
2667
2669
|
}
|
2668
|
-
var
|
2669
|
-
if (
|
2670
|
-
var
|
2671
|
-
|
2670
|
+
var Ke;
|
2671
|
+
if (Je) {
|
2672
|
+
var St = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2673
|
+
Ke = function(t, r) {
|
2672
2674
|
var n;
|
2673
|
-
|
2674
|
-
var i =
|
2675
|
+
St.lastIndex = r;
|
2676
|
+
var i = St.exec(t);
|
2675
2677
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2676
2678
|
};
|
2677
2679
|
} else
|
2678
|
-
|
2680
|
+
Ke = function(t, r) {
|
2679
2681
|
for (var n = []; ; ) {
|
2680
|
-
var i =
|
2681
|
-
if (i === void 0 ||
|
2682
|
+
var i = hr(t, r);
|
2683
|
+
if (i === void 0 || fr(i) || ui(i))
|
2682
2684
|
break;
|
2683
2685
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2684
2686
|
}
|
2685
|
-
return
|
2687
|
+
return Ye.apply(void 0, n);
|
2686
2688
|
};
|
2687
|
-
var
|
2689
|
+
var si = (
|
2688
2690
|
/** @class */
|
2689
2691
|
function() {
|
2690
2692
|
function e(t, r) {
|
@@ -2708,14 +2710,14 @@ var oi = (
|
|
2708
2710
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2709
2711
|
var a = this.clonePosition();
|
2710
2712
|
this.bump(), i.push({
|
2711
|
-
type:
|
2712
|
-
location:
|
2713
|
+
type: S.pound,
|
2714
|
+
location: v(a, this.clonePosition())
|
2713
2715
|
});
|
2714
2716
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2715
2717
|
if (n)
|
2716
2718
|
break;
|
2717
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
2718
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2719
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2720
|
+
} else if (o === 60 && !this.ignoreTag && et(this.peek() || 0)) {
|
2719
2721
|
var s = this.parseTag(t, r);
|
2720
2722
|
if (s.err)
|
2721
2723
|
return s;
|
@@ -2736,9 +2738,9 @@ var oi = (
|
|
2736
2738
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2737
2739
|
return {
|
2738
2740
|
val: {
|
2739
|
-
type:
|
2741
|
+
type: S.literal,
|
2740
2742
|
value: "<".concat(i, "/>"),
|
2741
|
-
location:
|
2743
|
+
location: v(n, this.clonePosition())
|
2742
2744
|
},
|
2743
2745
|
err: null
|
2744
2746
|
};
|
@@ -2748,25 +2750,25 @@ var oi = (
|
|
2748
2750
|
return o;
|
2749
2751
|
var s = o.val, a = this.clonePosition();
|
2750
2752
|
if (this.bumpIf("</")) {
|
2751
|
-
if (this.isEOF() || !
|
2752
|
-
return this.error(y.INVALID_TAG,
|
2753
|
+
if (this.isEOF() || !et(this.char()))
|
2754
|
+
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2753
2755
|
var u = this.clonePosition(), l = this.parseTagName();
|
2754
|
-
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG,
|
2756
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2755
2757
|
val: {
|
2756
|
-
type:
|
2758
|
+
type: S.tag,
|
2757
2759
|
value: i,
|
2758
2760
|
children: s,
|
2759
|
-
location:
|
2761
|
+
location: v(n, this.clonePosition())
|
2760
2762
|
},
|
2761
2763
|
err: null
|
2762
|
-
} : this.error(y.INVALID_TAG,
|
2764
|
+
} : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
|
2763
2765
|
} else
|
2764
|
-
return this.error(y.UNCLOSED_TAG,
|
2766
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
2765
2767
|
} else
|
2766
|
-
return this.error(y.INVALID_TAG,
|
2768
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2767
2769
|
}, e.prototype.parseTagName = function() {
|
2768
2770
|
var t = this.offset();
|
2769
|
-
for (this.bump(); !this.isEOF() &&
|
2771
|
+
for (this.bump(); !this.isEOF() && li(this.char()); )
|
2770
2772
|
this.bump();
|
2771
2773
|
return this.message.slice(t, this.offset());
|
2772
2774
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2788,14 +2790,14 @@ var oi = (
|
|
2788
2790
|
}
|
2789
2791
|
break;
|
2790
2792
|
}
|
2791
|
-
var u =
|
2793
|
+
var u = v(n, this.clonePosition());
|
2792
2794
|
return {
|
2793
|
-
val: { type:
|
2795
|
+
val: { type: S.literal, value: i, location: u },
|
2794
2796
|
err: null
|
2795
2797
|
};
|
2796
2798
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2797
2799
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2798
|
-
!
|
2800
|
+
!ai(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2799
2801
|
}, e.prototype.tryParseQuote = function(t) {
|
2800
2802
|
if (this.isEOF() || this.char() !== 39)
|
2801
2803
|
return null;
|
@@ -2829,49 +2831,49 @@ var oi = (
|
|
2829
2831
|
r.push(n);
|
2830
2832
|
this.bump();
|
2831
2833
|
}
|
2832
|
-
return
|
2834
|
+
return Ye.apply(void 0, r);
|
2833
2835
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2834
2836
|
if (this.isEOF())
|
2835
2837
|
return null;
|
2836
2838
|
var n = this.char();
|
2837
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2839
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
|
2838
2840
|
}, e.prototype.parseArgument = function(t, r) {
|
2839
2841
|
var n = this.clonePosition();
|
2840
2842
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2841
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2843
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
2842
2844
|
if (this.char() === 125)
|
2843
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
2845
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
2844
2846
|
var i = this.parseIdentifierIfPossible().value;
|
2845
2847
|
if (!i)
|
2846
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
2848
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2847
2849
|
if (this.bumpSpace(), this.isEOF())
|
2848
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2850
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
2849
2851
|
switch (this.char()) {
|
2850
2852
|
case 125:
|
2851
2853
|
return this.bump(), {
|
2852
2854
|
val: {
|
2853
|
-
type:
|
2855
|
+
type: S.argument,
|
2854
2856
|
// value does not include the opening and closing braces.
|
2855
2857
|
value: i,
|
2856
|
-
location:
|
2858
|
+
location: v(n, this.clonePosition())
|
2857
2859
|
},
|
2858
2860
|
err: null
|
2859
2861
|
};
|
2860
2862
|
case 44:
|
2861
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2863
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2862
2864
|
default:
|
2863
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
2865
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2864
2866
|
}
|
2865
2867
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2866
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2868
|
+
var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
|
2867
2869
|
this.bumpTo(i);
|
2868
|
-
var o = this.clonePosition(), s =
|
2870
|
+
var o = this.clonePosition(), s = v(t, o);
|
2869
2871
|
return { value: n, location: s };
|
2870
2872
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2871
2873
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2872
2874
|
switch (a) {
|
2873
2875
|
case "":
|
2874
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
2876
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, u));
|
2875
2877
|
case "number":
|
2876
2878
|
case "date":
|
2877
2879
|
case "time": {
|
@@ -2882,44 +2884,44 @@ var oi = (
|
|
2882
2884
|
var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2883
2885
|
if (m.err)
|
2884
2886
|
return m;
|
2885
|
-
var f =
|
2887
|
+
var f = oi(m.val);
|
2886
2888
|
if (f.length === 0)
|
2887
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
2888
|
-
var p =
|
2889
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2890
|
+
var p = v(h, this.clonePosition());
|
2889
2891
|
l = { style: f, styleLocation: p };
|
2890
2892
|
}
|
2891
2893
|
var g = this.tryParseArgumentClose(i);
|
2892
2894
|
if (g.err)
|
2893
2895
|
return g;
|
2894
|
-
var b =
|
2895
|
-
if (l &&
|
2896
|
-
var d =
|
2896
|
+
var b = v(i, this.clonePosition());
|
2897
|
+
if (l && wt(l == null ? void 0 : l.style, "::", 0)) {
|
2898
|
+
var d = ii(l.style.slice(2));
|
2897
2899
|
if (a === "number") {
|
2898
2900
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2899
2901
|
return m.err ? m : {
|
2900
|
-
val: { type:
|
2902
|
+
val: { type: S.number, value: n, location: b, style: m.val },
|
2901
2903
|
err: null
|
2902
2904
|
};
|
2903
2905
|
} else {
|
2904
2906
|
if (d.length === 0)
|
2905
2907
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2906
|
-
var
|
2907
|
-
this.locale && (
|
2908
|
+
var w = d;
|
2909
|
+
this.locale && (w = Xn(d, this.locale));
|
2908
2910
|
var f = {
|
2909
|
-
type:
|
2910
|
-
pattern:
|
2911
|
+
type: ae.dateTime,
|
2912
|
+
pattern: w,
|
2911
2913
|
location: l.styleLocation,
|
2912
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2913
|
-
},
|
2914
|
+
parsedOptions: this.shouldParseSkeletons ? Dn(w) : {}
|
2915
|
+
}, _ = a === "date" ? S.date : S.time;
|
2914
2916
|
return {
|
2915
|
-
val: { type:
|
2917
|
+
val: { type: _, value: n, location: b, style: f },
|
2916
2918
|
err: null
|
2917
2919
|
};
|
2918
2920
|
}
|
2919
2921
|
}
|
2920
2922
|
return {
|
2921
2923
|
val: {
|
2922
|
-
type: a === "number" ?
|
2924
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
2923
2925
|
value: n,
|
2924
2926
|
location: b,
|
2925
2927
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
@@ -2930,52 +2932,52 @@ var oi = (
|
|
2930
2932
|
case "plural":
|
2931
2933
|
case "selectordinal":
|
2932
2934
|
case "select": {
|
2933
|
-
var
|
2935
|
+
var E = this.clonePosition();
|
2934
2936
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2935
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2937
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(E, Ie({}, E)));
|
2936
2938
|
this.bumpSpace();
|
2937
|
-
var
|
2938
|
-
if (a !== "select" &&
|
2939
|
+
var L = this.parseIdentifierIfPossible(), I = 0;
|
2940
|
+
if (a !== "select" && L.value === "offset") {
|
2939
2941
|
if (!this.bumpIf(":"))
|
2940
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2942
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
2941
2943
|
this.bumpSpace();
|
2942
2944
|
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2943
2945
|
if (m.err)
|
2944
2946
|
return m;
|
2945
|
-
this.bumpSpace(),
|
2947
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), I = m.val;
|
2946
2948
|
}
|
2947
|
-
var $ = this.tryParsePluralOrSelectOptions(t, a, r,
|
2949
|
+
var $ = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
2948
2950
|
if ($.err)
|
2949
2951
|
return $;
|
2950
2952
|
var g = this.tryParseArgumentClose(i);
|
2951
2953
|
if (g.err)
|
2952
2954
|
return g;
|
2953
|
-
var
|
2955
|
+
var C = v(i, this.clonePosition());
|
2954
2956
|
return a === "select" ? {
|
2955
2957
|
val: {
|
2956
|
-
type:
|
2958
|
+
type: S.select,
|
2957
2959
|
value: n,
|
2958
|
-
options:
|
2959
|
-
location:
|
2960
|
+
options: Ht($.val),
|
2961
|
+
location: C
|
2960
2962
|
},
|
2961
2963
|
err: null
|
2962
2964
|
} : {
|
2963
2965
|
val: {
|
2964
|
-
type:
|
2966
|
+
type: S.plural,
|
2965
2967
|
value: n,
|
2966
|
-
options:
|
2968
|
+
options: Ht($.val),
|
2967
2969
|
offset: I,
|
2968
2970
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2969
|
-
location:
|
2971
|
+
location: C
|
2970
2972
|
},
|
2971
2973
|
err: null
|
2972
2974
|
};
|
2973
2975
|
}
|
2974
2976
|
default:
|
2975
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
2977
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(s, u));
|
2976
2978
|
}
|
2977
2979
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2978
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2980
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2979
2981
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2980
2982
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2981
2983
|
var n = this.char();
|
@@ -2984,7 +2986,7 @@ var oi = (
|
|
2984
2986
|
this.bump();
|
2985
2987
|
var i = this.clonePosition();
|
2986
2988
|
if (!this.bumpUntil("'"))
|
2987
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2989
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
2988
2990
|
this.bump();
|
2989
2991
|
break;
|
2990
2992
|
}
|
@@ -3014,16 +3016,16 @@ var oi = (
|
|
3014
3016
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3015
3017
|
var n = [];
|
3016
3018
|
try {
|
3017
|
-
n =
|
3019
|
+
n = Gn(t);
|
3018
3020
|
} catch (i) {
|
3019
3021
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
3020
3022
|
}
|
3021
3023
|
return {
|
3022
3024
|
val: {
|
3023
|
-
type:
|
3025
|
+
type: ae.number,
|
3024
3026
|
tokens: n,
|
3025
3027
|
location: r,
|
3026
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3028
|
+
parsedOptions: this.shouldParseSkeletons ? Vn(n) : {}
|
3027
3029
|
},
|
3028
3030
|
err: null
|
3029
3031
|
};
|
@@ -3035,7 +3037,7 @@ var oi = (
|
|
3035
3037
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3036
3038
|
if (f.err)
|
3037
3039
|
return f;
|
3038
|
-
h =
|
3040
|
+
h = v(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
|
3039
3041
|
} else
|
3040
3042
|
break;
|
3041
3043
|
}
|
@@ -3044,7 +3046,7 @@ var oi = (
|
|
3044
3046
|
l === "other" && (s = !0), this.bumpSpace();
|
3045
3047
|
var p = this.clonePosition();
|
3046
3048
|
if (!this.bumpIf("{"))
|
3047
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
3049
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
3048
3050
|
var g = this.parseMessage(t + 1, r, n);
|
3049
3051
|
if (g.err)
|
3050
3052
|
return g;
|
@@ -3055,11 +3057,11 @@ var oi = (
|
|
3055
3057
|
l,
|
3056
3058
|
{
|
3057
3059
|
value: g.val,
|
3058
|
-
location:
|
3060
|
+
location: v(p, this.clonePosition())
|
3059
3061
|
}
|
3060
3062
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
3061
3063
|
}
|
3062
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
3064
|
+
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 };
|
3063
3065
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3064
3066
|
var n = 1, i = this.clonePosition();
|
3065
3067
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3070,8 +3072,8 @@ var oi = (
|
|
3070
3072
|
else
|
3071
3073
|
break;
|
3072
3074
|
}
|
3073
|
-
var u =
|
3074
|
-
return o ? (s *= n,
|
3075
|
+
var u = v(i, this.clonePosition());
|
3076
|
+
return o ? (s *= n, ri(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3075
3077
|
}, e.prototype.offset = function() {
|
3076
3078
|
return this.position.offset;
|
3077
3079
|
}, e.prototype.isEOF = function() {
|
@@ -3086,7 +3088,7 @@ var oi = (
|
|
3086
3088
|
var t = this.position.offset;
|
3087
3089
|
if (t >= this.message.length)
|
3088
3090
|
throw Error("out of bound");
|
3089
|
-
var r =
|
3091
|
+
var r = hr(this.message, t);
|
3090
3092
|
if (r === void 0)
|
3091
3093
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3092
3094
|
return r;
|
@@ -3105,7 +3107,7 @@ var oi = (
|
|
3105
3107
|
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);
|
3106
3108
|
}
|
3107
3109
|
}, e.prototype.bumpIf = function(t) {
|
3108
|
-
if (
|
3110
|
+
if (wt(this.message, t, this.offset())) {
|
3109
3111
|
for (var r = 0; r < t.length; r++)
|
3110
3112
|
this.bump();
|
3111
3113
|
return !0;
|
@@ -3127,7 +3129,7 @@ var oi = (
|
|
3127
3129
|
break;
|
3128
3130
|
}
|
3129
3131
|
}, e.prototype.bumpSpace = function() {
|
3130
|
-
for (; !this.isEOF() &&
|
3132
|
+
for (; !this.isEOF() && fr(this.char()); )
|
3131
3133
|
this.bump();
|
3132
3134
|
}, e.prototype.peek = function() {
|
3133
3135
|
if (this.isEOF())
|
@@ -3137,47 +3139,47 @@ var oi = (
|
|
3137
3139
|
}, e;
|
3138
3140
|
}()
|
3139
3141
|
);
|
3140
|
-
function
|
3142
|
+
function et(e) {
|
3141
3143
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3142
3144
|
}
|
3143
|
-
function si(e) {
|
3144
|
-
return Ye(e) || e === 47;
|
3145
|
-
}
|
3146
3145
|
function ai(e) {
|
3146
|
+
return et(e) || e === 47;
|
3147
|
+
}
|
3148
|
+
function li(e) {
|
3147
3149
|
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;
|
3148
3150
|
}
|
3149
|
-
function
|
3151
|
+
function fr(e) {
|
3150
3152
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3151
3153
|
}
|
3152
|
-
function
|
3154
|
+
function ui(e) {
|
3153
3155
|
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;
|
3154
3156
|
}
|
3155
|
-
function
|
3157
|
+
function tt(e) {
|
3156
3158
|
e.forEach(function(t) {
|
3157
|
-
if (delete t.location,
|
3159
|
+
if (delete t.location, rr(t) || nr(t))
|
3158
3160
|
for (var r in t.options)
|
3159
|
-
delete t.options[r].location,
|
3161
|
+
delete t.options[r].location, tt(t.options[r].value);
|
3160
3162
|
else
|
3161
|
-
|
3163
|
+
Kt(t) && or(t.style) || (er(t) || tr(t)) && qe(t.style) ? delete t.style.location : ir(t) && tt(t.children);
|
3162
3164
|
});
|
3163
3165
|
}
|
3164
|
-
function
|
3165
|
-
t === void 0 && (t = {}), t =
|
3166
|
-
var r = new
|
3166
|
+
function hi(e, t) {
|
3167
|
+
t === void 0 && (t = {}), t = Ie({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3168
|
+
var r = new si(e, t).parse();
|
3167
3169
|
if (r.err) {
|
3168
3170
|
var n = SyntaxError(y[r.err.kind]);
|
3169
3171
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3170
3172
|
}
|
3171
|
-
return t != null && t.captureLocation ||
|
3173
|
+
return t != null && t.captureLocation || tt(r.val), r.val;
|
3172
3174
|
}
|
3173
|
-
var
|
3175
|
+
var le;
|
3174
3176
|
(function(e) {
|
3175
3177
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3176
|
-
})(
|
3178
|
+
})(le || (le = {}));
|
3177
3179
|
var Le = (
|
3178
3180
|
/** @class */
|
3179
3181
|
function(e) {
|
3180
|
-
|
3182
|
+
Oe(t, e);
|
3181
3183
|
function t(r, n, i) {
|
3182
3184
|
var o = e.call(this, r) || this;
|
3183
3185
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3186,30 +3188,30 @@ var Le = (
|
|
3186
3188
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3187
3189
|
}, t;
|
3188
3190
|
}(Error)
|
3189
|
-
),
|
3191
|
+
), Tt = (
|
3190
3192
|
/** @class */
|
3191
3193
|
function(e) {
|
3192
|
-
|
3194
|
+
Oe(t, e);
|
3193
3195
|
function t(r, n, i, o) {
|
3194
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3196
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), le.INVALID_VALUE, o) || this;
|
3195
3197
|
}
|
3196
3198
|
return t;
|
3197
3199
|
}(Le)
|
3198
|
-
),
|
3200
|
+
), ci = (
|
3199
3201
|
/** @class */
|
3200
3202
|
function(e) {
|
3201
|
-
|
3203
|
+
Oe(t, e);
|
3202
3204
|
function t(r, n, i) {
|
3203
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3205
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), le.INVALID_VALUE, i) || this;
|
3204
3206
|
}
|
3205
3207
|
return t;
|
3206
3208
|
}(Le)
|
3207
|
-
),
|
3209
|
+
), fi = (
|
3208
3210
|
/** @class */
|
3209
3211
|
function(e) {
|
3210
|
-
|
3212
|
+
Oe(t, e);
|
3211
3213
|
function t(r, n) {
|
3212
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3214
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), le.MISSING_VALUE, n) || this;
|
3213
3215
|
}
|
3214
3216
|
return t;
|
3215
3217
|
}(Le)
|
@@ -3217,16 +3219,16 @@ var Le = (
|
|
3217
3219
|
(function(e) {
|
3218
3220
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3219
3221
|
})(R || (R = {}));
|
3220
|
-
function
|
3222
|
+
function mi(e) {
|
3221
3223
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3222
3224
|
var n = t[t.length - 1];
|
3223
3225
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
3224
3226
|
}, []);
|
3225
3227
|
}
|
3226
|
-
function
|
3228
|
+
function di(e) {
|
3227
3229
|
return typeof e == "function";
|
3228
3230
|
}
|
3229
|
-
function
|
3231
|
+
function Te(e, t, r, n, i, o, s) {
|
3230
3232
|
if (e.length === 1 && _t(e[0]))
|
3231
3233
|
return [
|
3232
3234
|
{
|
@@ -3243,7 +3245,7 @@ function Se(e, t, r, n, i, o, s) {
|
|
3243
3245
|
});
|
3244
3246
|
continue;
|
3245
3247
|
}
|
3246
|
-
if (
|
3248
|
+
if (Fn(h)) {
|
3247
3249
|
typeof o == "number" && a.push({
|
3248
3250
|
type: R.literal,
|
3249
3251
|
value: r.getNumberFormat(t).format(o)
|
@@ -3252,89 +3254,89 @@ function Se(e, t, r, n, i, o, s) {
|
|
3252
3254
|
}
|
3253
3255
|
var m = h.value;
|
3254
3256
|
if (!(i && m in i))
|
3255
|
-
throw new
|
3257
|
+
throw new fi(m, s);
|
3256
3258
|
var f = i[m];
|
3257
|
-
if (
|
3259
|
+
if (Ln(h)) {
|
3258
3260
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3259
3261
|
type: typeof f == "string" ? R.literal : R.object,
|
3260
3262
|
value: f
|
3261
3263
|
});
|
3262
3264
|
continue;
|
3263
3265
|
}
|
3264
|
-
if (
|
3265
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
3266
|
+
if (er(h)) {
|
3267
|
+
var p = typeof h.style == "string" ? n.date[h.style] : qe(h.style) ? h.style.parsedOptions : void 0;
|
3266
3268
|
a.push({
|
3267
3269
|
type: R.literal,
|
3268
3270
|
value: r.getDateTimeFormat(t, p).format(f)
|
3269
3271
|
});
|
3270
3272
|
continue;
|
3271
3273
|
}
|
3272
|
-
if (
|
3273
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
3274
|
+
if (tr(h)) {
|
3275
|
+
var p = typeof h.style == "string" ? n.time[h.style] : qe(h.style) ? h.style.parsedOptions : n.time.medium;
|
3274
3276
|
a.push({
|
3275
3277
|
type: R.literal,
|
3276
3278
|
value: r.getDateTimeFormat(t, p).format(f)
|
3277
3279
|
});
|
3278
3280
|
continue;
|
3279
3281
|
}
|
3280
|
-
if (
|
3281
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
3282
|
+
if (Kt(h)) {
|
3283
|
+
var p = typeof h.style == "string" ? n.number[h.style] : or(h.style) ? h.style.parsedOptions : void 0;
|
3282
3284
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3283
3285
|
type: R.literal,
|
3284
3286
|
value: r.getNumberFormat(t, p).format(f)
|
3285
3287
|
});
|
3286
3288
|
continue;
|
3287
3289
|
}
|
3288
|
-
if (
|
3290
|
+
if (ir(h)) {
|
3289
3291
|
var g = h.children, b = h.value, d = i[b];
|
3290
|
-
if (!
|
3291
|
-
throw new
|
3292
|
-
var
|
3292
|
+
if (!di(d))
|
3293
|
+
throw new ci(b, "function", s);
|
3294
|
+
var w = Te(g, t, r, n, i, o), _ = d(w.map(function(I) {
|
3293
3295
|
return I.value;
|
3294
3296
|
}));
|
3295
|
-
Array.isArray(
|
3297
|
+
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(I) {
|
3296
3298
|
return {
|
3297
3299
|
type: typeof I == "string" ? R.literal : R.object,
|
3298
3300
|
value: I
|
3299
3301
|
};
|
3300
3302
|
}));
|
3301
3303
|
}
|
3302
|
-
if (
|
3303
|
-
var
|
3304
|
-
if (!
|
3305
|
-
throw new
|
3306
|
-
a.push.apply(a,
|
3304
|
+
if (rr(h)) {
|
3305
|
+
var E = h.options[f] || h.options.other;
|
3306
|
+
if (!E)
|
3307
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
3308
|
+
a.push.apply(a, Te(E.value, t, r, n, i));
|
3307
3309
|
continue;
|
3308
3310
|
}
|
3309
|
-
if (
|
3310
|
-
var
|
3311
|
-
if (!
|
3311
|
+
if (nr(h)) {
|
3312
|
+
var E = h.options["=".concat(f)];
|
3313
|
+
if (!E) {
|
3312
3314
|
if (!Intl.PluralRules)
|
3313
3315
|
throw new Le(`Intl.PluralRules is not available in this environment.
|
3314
3316
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3315
|
-
`,
|
3316
|
-
var
|
3317
|
-
|
3317
|
+
`, le.MISSING_INTL_API, s);
|
3318
|
+
var L = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
3319
|
+
E = h.options[L] || h.options.other;
|
3318
3320
|
}
|
3319
|
-
if (!
|
3320
|
-
throw new
|
3321
|
-
a.push.apply(a,
|
3321
|
+
if (!E)
|
3322
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
3323
|
+
a.push.apply(a, Te(E.value, t, r, n, i, f - (h.offset || 0)));
|
3322
3324
|
continue;
|
3323
3325
|
}
|
3324
3326
|
}
|
3325
|
-
return
|
3327
|
+
return mi(a);
|
3326
3328
|
}
|
3327
|
-
function
|
3328
|
-
return t ?
|
3329
|
-
return r[n] =
|
3329
|
+
function pi(e, t) {
|
3330
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3331
|
+
return r[n] = j(j({}, e[n]), t[n] || {}), r;
|
3330
3332
|
}, {})) : e;
|
3331
3333
|
}
|
3332
|
-
function
|
3334
|
+
function gi(e, t) {
|
3333
3335
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3334
|
-
return r[n] =
|
3335
|
-
},
|
3336
|
+
return r[n] = pi(e[n], t[n]), r;
|
3337
|
+
}, j({}, e)) : e;
|
3336
3338
|
}
|
3337
|
-
function
|
3339
|
+
function Xe(e) {
|
3338
3340
|
return {
|
3339
3341
|
create: function() {
|
3340
3342
|
return {
|
@@ -3348,39 +3350,39 @@ function je(e) {
|
|
3348
3350
|
}
|
3349
3351
|
};
|
3350
3352
|
}
|
3351
|
-
function
|
3353
|
+
function bi(e) {
|
3352
3354
|
return e === void 0 && (e = {
|
3353
3355
|
number: {},
|
3354
3356
|
dateTime: {},
|
3355
3357
|
pluralRules: {}
|
3356
3358
|
}), {
|
3357
|
-
getNumberFormat:
|
3359
|
+
getNumberFormat: $e(function() {
|
3358
3360
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3359
3361
|
r[n] = arguments[n];
|
3360
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3362
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ke([void 0], r, !1)))();
|
3361
3363
|
}, {
|
3362
|
-
cache:
|
3363
|
-
strategy:
|
3364
|
+
cache: Xe(e.number),
|
3365
|
+
strategy: je.variadic
|
3364
3366
|
}),
|
3365
|
-
getDateTimeFormat:
|
3367
|
+
getDateTimeFormat: $e(function() {
|
3366
3368
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3367
3369
|
r[n] = arguments[n];
|
3368
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3370
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ke([void 0], r, !1)))();
|
3369
3371
|
}, {
|
3370
|
-
cache:
|
3371
|
-
strategy:
|
3372
|
+
cache: Xe(e.dateTime),
|
3373
|
+
strategy: je.variadic
|
3372
3374
|
}),
|
3373
|
-
getPluralRules:
|
3375
|
+
getPluralRules: $e(function() {
|
3374
3376
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3375
3377
|
r[n] = arguments[n];
|
3376
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3378
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ke([void 0], r, !1)))();
|
3377
3379
|
}, {
|
3378
|
-
cache:
|
3379
|
-
strategy:
|
3380
|
+
cache: Xe(e.pluralRules),
|
3381
|
+
strategy: je.variadic
|
3380
3382
|
})
|
3381
3383
|
};
|
3382
3384
|
}
|
3383
|
-
var
|
3385
|
+
var yi = (
|
3384
3386
|
/** @class */
|
3385
3387
|
function() {
|
3386
3388
|
function e(t, r, n, i) {
|
@@ -3399,7 +3401,7 @@ var bi = (
|
|
3399
3401
|
}, []);
|
3400
3402
|
return h.length <= 1 ? h[0] || "" : h;
|
3401
3403
|
}, this.formatToParts = function(u) {
|
3402
|
-
return
|
3404
|
+
return Te(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
3403
3405
|
}, this.resolvedOptions = function() {
|
3404
3406
|
var u;
|
3405
3407
|
return {
|
@@ -3412,13 +3414,13 @@ var bi = (
|
|
3412
3414
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3413
3415
|
var s = i || {};
|
3414
3416
|
s.formatters;
|
3415
|
-
var a =
|
3416
|
-
this.ast = e.__parse(t,
|
3417
|
+
var a = Tn(s, ["formatters"]);
|
3418
|
+
this.ast = e.__parse(t, j(j({}, a), { locale: this.resolvedLocale }));
|
3417
3419
|
} else
|
3418
3420
|
this.ast = t;
|
3419
3421
|
if (!Array.isArray(this.ast))
|
3420
3422
|
throw new TypeError("A message must be provided as a String or AST.");
|
3421
|
-
this.formats =
|
3423
|
+
this.formats = gi(e.formats, n), this.formatters = i && i.formatters || bi(this.formatterCache);
|
3422
3424
|
}
|
3423
3425
|
return Object.defineProperty(e, "defaultLocale", {
|
3424
3426
|
get: function() {
|
@@ -3431,7 +3433,7 @@ var bi = (
|
|
3431
3433
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3432
3434
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3433
3435
|
}
|
3434
|
-
}, e.__parse =
|
3436
|
+
}, e.__parse = hi, e.formats = {
|
3435
3437
|
number: {
|
3436
3438
|
integer: {
|
3437
3439
|
maximumFractionDigits: 0
|
@@ -3492,7 +3494,7 @@ var bi = (
|
|
3492
3494
|
}, e;
|
3493
3495
|
}()
|
3494
3496
|
);
|
3495
|
-
function
|
3497
|
+
function vi(e, t) {
|
3496
3498
|
if (t == null)
|
3497
3499
|
return;
|
3498
3500
|
if (t in e)
|
@@ -3513,92 +3515,92 @@ function yi(e, t) {
|
|
3513
3515
|
n = void 0;
|
3514
3516
|
return n;
|
3515
3517
|
}
|
3516
|
-
const
|
3518
|
+
const z = {}, _i = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), mr = (e, t) => {
|
3517
3519
|
if (t == null)
|
3518
3520
|
return;
|
3519
|
-
if (t in
|
3520
|
-
return
|
3521
|
-
const r =
|
3521
|
+
if (t in z && e in z[t])
|
3522
|
+
return z[t][e];
|
3523
|
+
const r = Fe(t);
|
3522
3524
|
for (let n = 0; n < r.length; n++) {
|
3523
|
-
const i = r[n], o =
|
3525
|
+
const i = r[n], o = xi(i, e);
|
3524
3526
|
if (o)
|
3525
3527
|
return _i(e, t, o);
|
3526
3528
|
}
|
3527
3529
|
};
|
3528
|
-
let
|
3529
|
-
const
|
3530
|
-
function
|
3531
|
-
return
|
3530
|
+
let st;
|
3531
|
+
const ce = Pe({});
|
3532
|
+
function Ei(e) {
|
3533
|
+
return st[e] || null;
|
3532
3534
|
}
|
3533
|
-
function
|
3534
|
-
return e in
|
3535
|
+
function dr(e) {
|
3536
|
+
return e in st;
|
3535
3537
|
}
|
3536
|
-
function
|
3537
|
-
if (!
|
3538
|
+
function xi(e, t) {
|
3539
|
+
if (!dr(e))
|
3538
3540
|
return null;
|
3539
|
-
const r =
|
3540
|
-
return
|
3541
|
+
const r = Ei(e);
|
3542
|
+
return vi(r, t);
|
3541
3543
|
}
|
3542
|
-
function
|
3544
|
+
function Ci(e) {
|
3543
3545
|
if (e == null)
|
3544
3546
|
return;
|
3545
|
-
const t =
|
3547
|
+
const t = Fe(e);
|
3546
3548
|
for (let r = 0; r < t.length; r++) {
|
3547
3549
|
const n = t[r];
|
3548
|
-
if (
|
3550
|
+
if (dr(n))
|
3549
3551
|
return n;
|
3550
3552
|
}
|
3551
3553
|
}
|
3552
|
-
function
|
3553
|
-
delete
|
3554
|
+
function pr(e, ...t) {
|
3555
|
+
delete z[e], ce.update((r) => (r[e] = Sn.all([r[e] || {}, ...t]), r));
|
3554
3556
|
}
|
3555
|
-
|
3556
|
-
[
|
3557
|
+
he(
|
3558
|
+
[ce],
|
3557
3559
|
([e]) => Object.keys(e)
|
3558
3560
|
);
|
3559
|
-
|
3560
|
-
const
|
3561
|
-
function
|
3562
|
-
|
3561
|
+
ce.subscribe((e) => st = e);
|
3562
|
+
const Ae = {};
|
3563
|
+
function wi(e, t) {
|
3564
|
+
Ae[e].delete(t), Ae[e].size === 0 && delete Ae[e];
|
3563
3565
|
}
|
3564
|
-
function
|
3565
|
-
return
|
3566
|
+
function gr(e) {
|
3567
|
+
return Ae[e];
|
3566
3568
|
}
|
3567
|
-
function
|
3568
|
-
return
|
3569
|
-
const r =
|
3569
|
+
function Hi(e) {
|
3570
|
+
return Fe(e).map((t) => {
|
3571
|
+
const r = gr(t);
|
3570
3572
|
return [t, r ? [...r] : []];
|
3571
3573
|
}).filter(([, t]) => t.length > 0);
|
3572
3574
|
}
|
3573
|
-
function
|
3574
|
-
return e == null ? !1 :
|
3575
|
+
function rt(e) {
|
3576
|
+
return e == null ? !1 : Fe(e).some(
|
3575
3577
|
(t) => {
|
3576
3578
|
var r;
|
3577
|
-
return (r =
|
3579
|
+
return (r = gr(t)) == null ? void 0 : r.size;
|
3578
3580
|
}
|
3579
3581
|
);
|
3580
3582
|
}
|
3581
|
-
function
|
3583
|
+
function Si(e, t) {
|
3582
3584
|
return Promise.all(
|
3583
|
-
t.map((n) => (
|
3584
|
-
).then((n) =>
|
3585
|
-
}
|
3586
|
-
const
|
3587
|
-
function
|
3588
|
-
if (!
|
3589
|
-
return e in
|
3590
|
-
const t =
|
3591
|
-
return
|
3585
|
+
t.map((n) => (wi(e, n), n().then((i) => i.default || i)))
|
3586
|
+
).then((n) => pr(e, ...n));
|
3587
|
+
}
|
3588
|
+
const de = {};
|
3589
|
+
function br(e) {
|
3590
|
+
if (!rt(e))
|
3591
|
+
return e in de ? de[e] : Promise.resolve();
|
3592
|
+
const t = Hi(e);
|
3593
|
+
return de[e] = Promise.all(
|
3592
3594
|
t.map(
|
3593
|
-
([r, n]) =>
|
3595
|
+
([r, n]) => Si(r, n)
|
3594
3596
|
)
|
3595
3597
|
).then(() => {
|
3596
|
-
if (
|
3597
|
-
return
|
3598
|
-
delete
|
3599
|
-
}),
|
3598
|
+
if (rt(e))
|
3599
|
+
return br(e);
|
3600
|
+
delete de[e];
|
3601
|
+
}), de[e];
|
3600
3602
|
}
|
3601
|
-
const
|
3603
|
+
const Ti = {
|
3602
3604
|
number: {
|
3603
3605
|
scientific: { notation: "scientific" },
|
3604
3606
|
engineering: { notation: "engineering" },
|
@@ -3627,150 +3629,150 @@ const Si = {
|
|
3627
3629
|
timeZoneName: "short"
|
3628
3630
|
}
|
3629
3631
|
}
|
3630
|
-
},
|
3632
|
+
}, Ai = {
|
3631
3633
|
fallbackLocale: null,
|
3632
3634
|
loadingDelay: 200,
|
3633
|
-
formats:
|
3635
|
+
formats: Ti,
|
3634
3636
|
warnOnMissingMessages: !0,
|
3635
3637
|
handleMissingMessage: void 0,
|
3636
3638
|
ignoreTag: !0
|
3637
|
-
},
|
3638
|
-
function
|
3639
|
-
return
|
3640
|
-
}
|
3641
|
-
const
|
3642
|
-
var
|
3643
|
-
for (var r in t)
|
3644
|
-
|
3645
|
-
if (
|
3646
|
-
for (var r of
|
3647
|
-
|
3639
|
+
}, Bi = Ai;
|
3640
|
+
function ue() {
|
3641
|
+
return Bi;
|
3642
|
+
}
|
3643
|
+
const We = Pe(!1);
|
3644
|
+
var Ii = Object.defineProperty, Mi = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Pi = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Li = (e, t) => {
|
3645
|
+
for (var r in t || (t = {}))
|
3646
|
+
Pi.call(t, r) && Bt(e, r, t[r]);
|
3647
|
+
if (At)
|
3648
|
+
for (var r of At(t))
|
3649
|
+
Oi.call(t, r) && Bt(e, r, t[r]);
|
3648
3650
|
return e;
|
3649
|
-
},
|
3650
|
-
let
|
3651
|
-
const
|
3652
|
-
function
|
3651
|
+
}, Fi = (e, t) => Mi(e, Ni(t));
|
3652
|
+
let nt;
|
3653
|
+
const Me = Pe(null);
|
3654
|
+
function It(e) {
|
3653
3655
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3654
3656
|
}
|
3655
|
-
function
|
3656
|
-
const r =
|
3657
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3657
|
+
function Fe(e, t = ue().fallbackLocale) {
|
3658
|
+
const r = It(e);
|
3659
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
3658
3660
|
}
|
3659
|
-
function
|
3660
|
-
return
|
3661
|
+
function K() {
|
3662
|
+
return nt != null ? nt : void 0;
|
3661
3663
|
}
|
3662
|
-
|
3663
|
-
|
3664
|
+
Me.subscribe((e) => {
|
3665
|
+
nt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3664
3666
|
});
|
3665
|
-
const
|
3666
|
-
if (e &&
|
3667
|
-
const { loadingDelay: t } =
|
3667
|
+
const Ri = (e) => {
|
3668
|
+
if (e && Ci(e) && rt(e)) {
|
3669
|
+
const { loadingDelay: t } = ue();
|
3668
3670
|
let r;
|
3669
|
-
return typeof window != "undefined" &&
|
3670
|
-
() =>
|
3671
|
+
return typeof window != "undefined" && K() != null && t ? r = window.setTimeout(
|
3672
|
+
() => We.set(!0),
|
3671
3673
|
t
|
3672
|
-
) :
|
3673
|
-
|
3674
|
+
) : We.set(!0), br(e).then(() => {
|
3675
|
+
Me.set(e);
|
3674
3676
|
}).finally(() => {
|
3675
|
-
clearTimeout(r),
|
3677
|
+
clearTimeout(r), We.set(!1);
|
3676
3678
|
});
|
3677
3679
|
}
|
3678
|
-
return
|
3679
|
-
},
|
3680
|
-
set:
|
3681
|
-
}),
|
3680
|
+
return Me.set(e);
|
3681
|
+
}, Z = Fi(Li({}, Me), {
|
3682
|
+
set: Ri
|
3683
|
+
}), Re = (e) => {
|
3682
3684
|
const t = /* @__PURE__ */ Object.create(null);
|
3683
3685
|
return (n) => {
|
3684
3686
|
const i = JSON.stringify(n);
|
3685
3687
|
return i in t ? t[i] : t[i] = e(n);
|
3686
3688
|
};
|
3687
3689
|
};
|
3688
|
-
var
|
3690
|
+
var Di = Object.defineProperty, Ne = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
3689
3691
|
for (var r in t || (t = {}))
|
3690
|
-
|
3691
|
-
if (
|
3692
|
-
for (var r of
|
3693
|
-
|
3692
|
+
yr.call(t, r) && Mt(e, r, t[r]);
|
3693
|
+
if (Ne)
|
3694
|
+
for (var r of Ne(t))
|
3695
|
+
vr.call(t, r) && Mt(e, r, t[r]);
|
3694
3696
|
return e;
|
3695
|
-
},
|
3697
|
+
}, fe = (e, t) => {
|
3696
3698
|
var r = {};
|
3697
3699
|
for (var n in e)
|
3698
|
-
|
3699
|
-
if (e != null &&
|
3700
|
-
for (var n of
|
3701
|
-
t.indexOf(n) < 0 &&
|
3700
|
+
yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3701
|
+
if (e != null && Ne)
|
3702
|
+
for (var n of Ne(e))
|
3703
|
+
t.indexOf(n) < 0 && vr.call(e, n) && (r[n] = e[n]);
|
3702
3704
|
return r;
|
3703
3705
|
};
|
3704
3706
|
const _e = (e, t) => {
|
3705
|
-
const { formats: r } =
|
3707
|
+
const { formats: r } = ue();
|
3706
3708
|
if (e in r && t in r[e])
|
3707
3709
|
return r[e][t];
|
3708
3710
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3709
|
-
},
|
3711
|
+
}, Ui = Re(
|
3710
3712
|
(e) => {
|
3711
|
-
var t = e, { locale: r, format: n } = t, i =
|
3713
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3712
3714
|
if (r == null)
|
3713
3715
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3714
3716
|
return n && (i = _e("number", n)), new Intl.NumberFormat(r, i);
|
3715
3717
|
}
|
3716
|
-
),
|
3718
|
+
), Gi = Re(
|
3717
3719
|
(e) => {
|
3718
|
-
var t = e, { locale: r, format: n } = t, i =
|
3720
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3719
3721
|
if (r == null)
|
3720
3722
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3721
3723
|
return n ? i = _e("date", n) : Object.keys(i).length === 0 && (i = _e("date", "short")), new Intl.DateTimeFormat(r, i);
|
3722
3724
|
}
|
3723
|
-
),
|
3725
|
+
), ki = Re(
|
3724
3726
|
(e) => {
|
3725
|
-
var t = e, { locale: r, format: n } = t, i =
|
3727
|
+
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
3726
3728
|
if (r == null)
|
3727
3729
|
throw new Error(
|
3728
3730
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3729
3731
|
);
|
3730
3732
|
return n ? i = _e("time", n) : Object.keys(i).length === 0 && (i = _e("time", "short")), new Intl.DateTimeFormat(r, i);
|
3731
3733
|
}
|
3732
|
-
),
|
3734
|
+
), $i = (e = {}) => {
|
3733
3735
|
var t = e, {
|
3734
|
-
locale: r =
|
3735
|
-
} = t, n =
|
3736
|
+
locale: r = K()
|
3737
|
+
} = t, n = fe(t, [
|
3736
3738
|
"locale"
|
3737
3739
|
]);
|
3738
|
-
return
|
3739
|
-
},
|
3740
|
+
return Ui(at({ locale: r }, n));
|
3741
|
+
}, ji = (e = {}) => {
|
3740
3742
|
var t = e, {
|
3741
|
-
locale: r =
|
3742
|
-
} = t, n =
|
3743
|
+
locale: r = K()
|
3744
|
+
} = t, n = fe(t, [
|
3743
3745
|
"locale"
|
3744
3746
|
]);
|
3745
|
-
return
|
3746
|
-
},
|
3747
|
+
return Gi(at({ locale: r }, n));
|
3748
|
+
}, Vi = (e = {}) => {
|
3747
3749
|
var t = e, {
|
3748
|
-
locale: r =
|
3749
|
-
} = t, n =
|
3750
|
+
locale: r = K()
|
3751
|
+
} = t, n = fe(t, [
|
3750
3752
|
"locale"
|
3751
3753
|
]);
|
3752
|
-
return
|
3753
|
-
},
|
3754
|
+
return ki(at({ locale: r }, n));
|
3755
|
+
}, Xi = Re(
|
3754
3756
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3755
|
-
(e, t =
|
3756
|
-
ignoreTag:
|
3757
|
+
(e, t = K()) => new yi(e, t, ue().formats, {
|
3758
|
+
ignoreTag: ue().ignoreTag
|
3757
3759
|
})
|
3758
|
-
),
|
3760
|
+
), Wi = (e, t = {}) => {
|
3759
3761
|
var r, n, i, o;
|
3760
3762
|
let s = t;
|
3761
3763
|
typeof e == "object" && (s = e, e = s.id);
|
3762
3764
|
const {
|
3763
3765
|
values: a,
|
3764
|
-
locale: u =
|
3766
|
+
locale: u = K(),
|
3765
3767
|
default: l
|
3766
3768
|
} = s;
|
3767
3769
|
if (u == null)
|
3768
3770
|
throw new Error(
|
3769
3771
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3770
3772
|
);
|
3771
|
-
let h =
|
3773
|
+
let h = mr(e, u);
|
3772
3774
|
if (!h)
|
3773
|
-
h = (o = (i = (n = (r =
|
3775
|
+
h = (o = (i = (n = (r = ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
3774
3776
|
else if (typeof h != "string")
|
3775
3777
|
return console.warn(
|
3776
3778
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3779,7 +3781,7 @@ const _e = (e, t) => {
|
|
3779
3781
|
return h;
|
3780
3782
|
let m = h;
|
3781
3783
|
try {
|
3782
|
-
m =
|
3784
|
+
m = Xi(h, u).format(a);
|
3783
3785
|
} catch (f) {
|
3784
3786
|
f instanceof Error && console.warn(
|
3785
3787
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3787,24 +3789,24 @@ const _e = (e, t) => {
|
|
3787
3789
|
);
|
3788
3790
|
}
|
3789
3791
|
return m;
|
3790
|
-
},
|
3791
|
-
|
3792
|
-
|
3793
|
-
|
3794
|
-
|
3795
|
-
|
3796
|
-
function
|
3797
|
-
|
3798
|
-
r == null && (
|
3792
|
+
}, zi = (e, t) => Vi(t).format(e), Zi = (e, t) => ji(t).format(e), Qi = (e, t) => $i(t).format(e), qi = (e, t = K()) => mr(e, t);
|
3793
|
+
he([Z, ce], () => Wi);
|
3794
|
+
he([Z], () => zi);
|
3795
|
+
he([Z], () => Zi);
|
3796
|
+
he([Z], () => Qi);
|
3797
|
+
he([Z, ce], () => qi);
|
3798
|
+
function Ji({ withLocale: e, translations: t }) {
|
3799
|
+
Z.subscribe((r) => {
|
3800
|
+
r == null && (ce.set(t), Z.set(e));
|
3799
3801
|
});
|
3800
3802
|
}
|
3801
|
-
function
|
3802
|
-
|
3803
|
+
function Nt(e, t) {
|
3804
|
+
pr(e, t);
|
3803
3805
|
}
|
3804
|
-
function
|
3805
|
-
|
3806
|
+
function Yi(e) {
|
3807
|
+
Z.set(e);
|
3806
3808
|
}
|
3807
|
-
const
|
3809
|
+
const Pt = {
|
3808
3810
|
en: {
|
3809
3811
|
login: "Login",
|
3810
3812
|
register: "Register",
|
@@ -3861,23 +3863,23 @@ const Nt = {
|
|
3861
3863
|
deposit: "Deposit"
|
3862
3864
|
}
|
3863
3865
|
};
|
3864
|
-
function
|
3865
|
-
|
3866
|
+
function Ki(e) {
|
3867
|
+
Gr(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}');
|
3866
3868
|
}
|
3867
|
-
function
|
3869
|
+
function Ot(e, t, r) {
|
3868
3870
|
const n = e.slice();
|
3869
3871
|
return n[48] = t[r], n[50] = r, n;
|
3870
3872
|
}
|
3871
|
-
function
|
3873
|
+
function Lt(e, t, r) {
|
3872
3874
|
const n = e.slice();
|
3873
3875
|
return n[51] = t[r], n;
|
3874
3876
|
}
|
3875
|
-
function
|
3877
|
+
function Ft(e, t, r) {
|
3876
3878
|
const n = e.slice();
|
3877
3879
|
return n[54] = t[r], n[56] = r, n;
|
3878
3880
|
}
|
3879
|
-
function
|
3880
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3881
|
+
function Rt(e) {
|
3882
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = oe(
|
3881
3883
|
/*sliderdata*/
|
3882
3884
|
e[9]
|
3883
3885
|
);
|
@@ -3886,14 +3888,14 @@ function Ft(e) {
|
|
3886
3888
|
s[48].id
|
3887
3889
|
);
|
3888
3890
|
for (let s = 0; s < i.length; s += 1) {
|
3889
|
-
let a =
|
3890
|
-
r.set(u, t[s] =
|
3891
|
+
let a = Ot(e, i, s), u = o(a);
|
3892
|
+
r.set(u, t[s] = jt(u, a));
|
3891
3893
|
}
|
3892
3894
|
return {
|
3893
3895
|
c() {
|
3894
3896
|
for (let s = 0; s < t.length; s += 1)
|
3895
3897
|
t[s].c();
|
3896
|
-
n =
|
3898
|
+
n = be();
|
3897
3899
|
},
|
3898
3900
|
m(s, a) {
|
3899
3901
|
for (let u = 0; u < t.length; u += 1)
|
@@ -3902,10 +3904,10 @@ function Ft(e) {
|
|
3902
3904
|
},
|
3903
3905
|
p(s, a) {
|
3904
3906
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3905
|
-
77775 && (i =
|
3907
|
+
77775 && (i = oe(
|
3906
3908
|
/*sliderdata*/
|
3907
3909
|
s[9]
|
3908
|
-
), t =
|
3910
|
+
), t = Zt(t, a, o, 1, s, i, r, n.parentNode, zt, jt, n, Ot));
|
3909
3911
|
},
|
3910
3912
|
d(s) {
|
3911
3913
|
s && D(n);
|
@@ -3914,14 +3916,14 @@ function Ft(e) {
|
|
3914
3916
|
}
|
3915
3917
|
};
|
3916
3918
|
}
|
3917
|
-
function
|
3919
|
+
function eo(e) {
|
3918
3920
|
let t, r = (
|
3919
3921
|
/*category*/
|
3920
3922
|
e[48].name + ""
|
3921
3923
|
), n;
|
3922
3924
|
return {
|
3923
3925
|
c() {
|
3924
|
-
t =
|
3926
|
+
t = P("button"), n = Ee(r), H(t, "class", "CategoryButton");
|
3925
3927
|
},
|
3926
3928
|
m(i, o) {
|
3927
3929
|
G(i, t, o), B(t, n);
|
@@ -3929,21 +3931,21 @@ function Ki(e) {
|
|
3929
3931
|
p(i, o) {
|
3930
3932
|
o[0] & /*sliderdata*/
|
3931
3933
|
512 && r !== (r = /*category*/
|
3932
|
-
i[48].name + "") &&
|
3934
|
+
i[48].name + "") && ot(n, r);
|
3933
3935
|
},
|
3934
3936
|
d(i) {
|
3935
3937
|
i && D(t);
|
3936
3938
|
}
|
3937
3939
|
};
|
3938
3940
|
}
|
3939
|
-
function
|
3941
|
+
function to(e) {
|
3940
3942
|
let t, r = (
|
3941
3943
|
/*category*/
|
3942
3944
|
e[48].label + ""
|
3943
3945
|
), n, i;
|
3944
3946
|
return {
|
3945
3947
|
c() {
|
3946
|
-
t =
|
3948
|
+
t = P("a"), n = Ee(r), H(t, "href", i = /*category*/
|
3947
3949
|
e[48].path);
|
3948
3950
|
},
|
3949
3951
|
m(o, s) {
|
@@ -3952,24 +3954,24 @@ function eo(e) {
|
|
3952
3954
|
p(o, s) {
|
3953
3955
|
s[0] & /*sliderdata*/
|
3954
3956
|
512 && r !== (r = /*category*/
|
3955
|
-
o[48].label + "") &&
|
3957
|
+
o[48].label + "") && ot(n, r), s[0] & /*sliderdata*/
|
3956
3958
|
512 && i !== (i = /*category*/
|
3957
|
-
o[48].path) &&
|
3959
|
+
o[48].path) && H(t, "href", i);
|
3958
3960
|
},
|
3959
3961
|
d(o) {
|
3960
3962
|
o && D(t);
|
3961
3963
|
}
|
3962
3964
|
};
|
3963
3965
|
}
|
3964
|
-
function
|
3966
|
+
function Dt(e) {
|
3965
3967
|
let t, r = (
|
3966
3968
|
/*subGroupsData*/
|
3967
3969
|
e[10].length > 0 && /*showsubgroups*/
|
3968
|
-
e[2] == "true" &&
|
3970
|
+
e[2] == "true" && Ut(e)
|
3969
3971
|
);
|
3970
3972
|
return {
|
3971
3973
|
c() {
|
3972
|
-
r && r.c(), t =
|
3974
|
+
r && r.c(), t = be();
|
3973
3975
|
},
|
3974
3976
|
m(n, i) {
|
3975
3977
|
r && r.m(n, i), G(n, t, i);
|
@@ -3977,26 +3979,26 @@ function Rt(e) {
|
|
3977
3979
|
p(n, i) {
|
3978
3980
|
/*subGroupsData*/
|
3979
3981
|
n[10].length > 0 && /*showsubgroups*/
|
3980
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3982
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Ut(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3981
3983
|
},
|
3982
3984
|
d(n) {
|
3983
3985
|
n && D(t), r && r.d(n);
|
3984
3986
|
}
|
3985
3987
|
};
|
3986
3988
|
}
|
3987
|
-
function
|
3988
|
-
let t, r =
|
3989
|
+
function Ut(e) {
|
3990
|
+
let t, r = oe(
|
3989
3991
|
/*subGroupsData*/
|
3990
3992
|
e[10]
|
3991
3993
|
), n = [];
|
3992
3994
|
for (let i = 0; i < r.length; i += 1)
|
3993
|
-
n[i] =
|
3995
|
+
n[i] = $t(Lt(e, r, i));
|
3994
3996
|
return {
|
3995
3997
|
c() {
|
3996
|
-
t =
|
3998
|
+
t = P("ul");
|
3997
3999
|
for (let i = 0; i < n.length; i += 1)
|
3998
4000
|
n[i].c();
|
3999
|
-
|
4001
|
+
H(t, "class", "DropDown");
|
4000
4002
|
},
|
4001
4003
|
m(i, o) {
|
4002
4004
|
G(i, t, o);
|
@@ -4006,14 +4008,14 @@ function Dt(e) {
|
|
4006
4008
|
p(i, o) {
|
4007
4009
|
if (o[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
4008
4010
|
10176) {
|
4009
|
-
r =
|
4011
|
+
r = oe(
|
4010
4012
|
/*subGroupsData*/
|
4011
4013
|
i[10]
|
4012
4014
|
);
|
4013
4015
|
let s;
|
4014
4016
|
for (s = 0; s < r.length; s += 1) {
|
4015
|
-
const a =
|
4016
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
4017
|
+
const a = Lt(i, r, s);
|
4018
|
+
n[s] ? n[s].p(a, o) : (n[s] = $t(a), n[s].c(), n[s].m(t, null));
|
4017
4019
|
}
|
4018
4020
|
for (; s < n.length; s += 1)
|
4019
4021
|
n[s].d(1);
|
@@ -4021,11 +4023,11 @@ function Dt(e) {
|
|
4021
4023
|
}
|
4022
4024
|
},
|
4023
4025
|
d(i) {
|
4024
|
-
i && D(t),
|
4026
|
+
i && D(t), jr(n, i);
|
4025
4027
|
}
|
4026
4028
|
};
|
4027
4029
|
}
|
4028
|
-
function
|
4030
|
+
function Gt(e) {
|
4029
4031
|
var h;
|
4030
4032
|
let t, r, n = (
|
4031
4033
|
/*subGroupItem*/
|
@@ -4049,7 +4051,7 @@ function Ut(e) {
|
|
4049
4051
|
}
|
4050
4052
|
return {
|
4051
4053
|
c() {
|
4052
|
-
t =
|
4054
|
+
t = P("li"), r = P("a"), i = Ee(n), s = J(), H(r, "class", o = "SubDropDown " + /*index*/
|
4053
4055
|
(e[50] == /*activeIndex*/
|
4054
4056
|
e[6] && /*activeSubIndex*/
|
4055
4057
|
(e[7] == /*subindex*/
|
@@ -4058,37 +4060,37 @@ function Ut(e) {
|
|
4058
4060
|
e[56]) ? "active" : ""));
|
4059
4061
|
},
|
4060
4062
|
m(m, f) {
|
4061
|
-
G(m, t, f), B(t, r), B(r, i), B(t, s), a || (u =
|
4063
|
+
G(m, t, f), B(t, r), B(r, i), B(t, s), a || (u = Be(t, "click", l), a = !0);
|
4062
4064
|
},
|
4063
4065
|
p(m, f) {
|
4064
4066
|
var p;
|
4065
4067
|
e = m, f[0] & /*subGroupsData*/
|
4066
4068
|
1024 && n !== (n = /*subGroupItem*/
|
4067
|
-
((p = e[54]) == null ? void 0 : p.name) + "") &&
|
4069
|
+
((p = e[54]) == null ? void 0 : p.name) + "") && ot(i, n), f[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
4068
4070
|
1984 && o !== (o = "SubDropDown " + /*index*/
|
4069
4071
|
(e[50] == /*activeIndex*/
|
4070
4072
|
e[6] && /*activeSubIndex*/
|
4071
4073
|
(e[7] == /*subindex*/
|
4072
4074
|
e[56] || /*prevSubIndex*/
|
4073
4075
|
e[8] == /*subindex*/
|
4074
|
-
e[56]) ? "active" : "")) &&
|
4076
|
+
e[56]) ? "active" : "")) && H(r, "class", o);
|
4075
4077
|
},
|
4076
4078
|
d(m) {
|
4077
4079
|
m && D(t), a = !1, u();
|
4078
4080
|
}
|
4079
4081
|
};
|
4080
4082
|
}
|
4081
|
-
function
|
4083
|
+
function kt(e, t) {
|
4082
4084
|
let r, n, i = (
|
4083
4085
|
/*index*/
|
4084
4086
|
t[50] == /*subGroup*/
|
4085
|
-
t[51].index &&
|
4087
|
+
t[51].index && Gt(t)
|
4086
4088
|
);
|
4087
4089
|
return {
|
4088
4090
|
key: e,
|
4089
4091
|
first: null,
|
4090
4092
|
c() {
|
4091
|
-
r =
|
4093
|
+
r = be(), i && i.c(), n = be(), this.first = r;
|
4092
4094
|
},
|
4093
4095
|
m(o, s) {
|
4094
4096
|
G(o, r, s), i && i.m(o, s), G(o, n, s);
|
@@ -4096,15 +4098,15 @@ function Gt(e, t) {
|
|
4096
4098
|
p(o, s) {
|
4097
4099
|
t = o, /*index*/
|
4098
4100
|
t[50] == /*subGroup*/
|
4099
|
-
t[51].index ? i ? i.p(t, s) : (i =
|
4101
|
+
t[51].index ? i ? i.p(t, s) : (i = Gt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4100
4102
|
},
|
4101
4103
|
d(o) {
|
4102
4104
|
o && (D(r), D(n)), i && i.d(o);
|
4103
4105
|
}
|
4104
4106
|
};
|
4105
4107
|
}
|
4106
|
-
function
|
4107
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4108
|
+
function $t(e) {
|
4109
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = oe(
|
4108
4110
|
/*subGroup*/
|
4109
4111
|
e[51].items
|
4110
4112
|
);
|
@@ -4113,14 +4115,14 @@ function kt(e) {
|
|
4113
4115
|
s[54].id
|
4114
4116
|
);
|
4115
4117
|
for (let s = 0; s < i.length; s += 1) {
|
4116
|
-
let a =
|
4117
|
-
r.set(u, t[s] =
|
4118
|
+
let a = Ft(e, i, s), u = o(a);
|
4119
|
+
r.set(u, t[s] = kt(u, a));
|
4118
4120
|
}
|
4119
4121
|
return {
|
4120
4122
|
c() {
|
4121
4123
|
for (let s = 0; s < t.length; s += 1)
|
4122
4124
|
t[s].c();
|
4123
|
-
n =
|
4125
|
+
n = be();
|
4124
4126
|
},
|
4125
4127
|
m(s, a) {
|
4126
4128
|
for (let u = 0; u < t.length; u += 1)
|
@@ -4129,10 +4131,10 @@ function kt(e) {
|
|
4129
4131
|
},
|
4130
4132
|
p(s, a) {
|
4131
4133
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4132
|
-
10176 && (i =
|
4134
|
+
10176 && (i = oe(
|
4133
4135
|
/*subGroup*/
|
4134
4136
|
s[51].items
|
4135
|
-
), t =
|
4137
|
+
), t = Zt(t, a, o, 1, s, i, r, n.parentNode, zt, kt, n, Ft));
|
4136
4138
|
},
|
4137
4139
|
d(s) {
|
4138
4140
|
s && D(n);
|
@@ -4141,12 +4143,12 @@ function kt(e) {
|
|
4141
4143
|
}
|
4142
4144
|
};
|
4143
4145
|
}
|
4144
|
-
function
|
4146
|
+
function jt(e, t) {
|
4145
4147
|
let r, n, i, o, s, a, u, l, h, m, f;
|
4146
|
-
function p(
|
4148
|
+
function p(_, E) {
|
4147
4149
|
return (
|
4148
4150
|
/*location*/
|
4149
|
-
|
4151
|
+
_[0] === "headerMain" ? to : eo
|
4150
4152
|
);
|
4151
4153
|
}
|
4152
4154
|
let g = p(t), b = g(t), d = (
|
@@ -4154,9 +4156,9 @@ function $t(e, t) {
|
|
4154
4156
|
t[11][
|
4155
4157
|
/*index*/
|
4156
4158
|
t[50]
|
4157
|
-
] == !0 &&
|
4159
|
+
] == !0 && Dt(t)
|
4158
4160
|
);
|
4159
|
-
function
|
4161
|
+
function w(..._) {
|
4160
4162
|
return (
|
4161
4163
|
/*click_handler_2*/
|
4162
4164
|
t[34](
|
@@ -4164,7 +4166,7 @@ function $t(e, t) {
|
|
4164
4166
|
t[48],
|
4165
4167
|
/*index*/
|
4166
4168
|
t[50],
|
4167
|
-
...
|
4169
|
+
..._
|
4168
4170
|
)
|
4169
4171
|
);
|
4170
4172
|
}
|
@@ -4172,16 +4174,16 @@ function $t(e, t) {
|
|
4172
4174
|
key: e,
|
4173
4175
|
first: null,
|
4174
4176
|
c() {
|
4175
|
-
var
|
4176
|
-
r =
|
4177
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
4177
|
+
var _, E;
|
4178
|
+
r = P("li"), n = P("div"), i = P("img"), a = J(), b.c(), u = J(), d && d.c(), l = J(), H(i, "class", o = "CategoryIconImg " + /*categoriesicon*/
|
4179
|
+
(t[3] === "true" ? "" : "DisplayNone")), bt(i.src, s = /*handleSrc*/
|
4178
4180
|
t[16](
|
4179
4181
|
/*category*/
|
4180
4182
|
t[48]
|
4181
|
-
)) ||
|
4182
|
-
(((
|
4183
|
+
)) || H(i, "src", s), H(n, "class", "CategoryIcon"), H(r, "class", h = "CarouselItem " + /*activeindex*/
|
4184
|
+
(((_ = t[1]) == null ? void 0 : _.toString().indexOf("$")) > -1 ? (
|
4183
4185
|
/*activeindex*/
|
4184
|
-
((
|
4186
|
+
((E = t[1]) == null ? void 0 : E.split("$").pop()) == /*category*/
|
4185
4187
|
t[48].id.split("$").pop() ? "active" : ""
|
4186
4188
|
) : (
|
4187
4189
|
/*activeindex*/
|
@@ -4190,25 +4192,25 @@ function $t(e, t) {
|
|
4190
4192
|
)) + " " + /*location*/
|
4191
4193
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4192
4194
|
},
|
4193
|
-
m(
|
4194
|
-
G(
|
4195
|
+
m(_, E) {
|
4196
|
+
G(_, r, E), B(r, n), B(n, i), B(r, a), b.m(r, null), B(r, u), d && d.m(r, null), B(r, l), m || (f = Be(r, "click", w), m = !0);
|
4195
4197
|
},
|
4196
|
-
p(
|
4197
|
-
var
|
4198
|
-
t =
|
4198
|
+
p(_, E) {
|
4199
|
+
var L, I;
|
4200
|
+
t = _, E[0] & /*categoriesicon*/
|
4199
4201
|
8 && o !== (o = "CategoryIconImg " + /*categoriesicon*/
|
4200
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
4201
|
-
512 && !
|
4202
|
+
(t[3] === "true" ? "" : "DisplayNone")) && H(i, "class", o), E[0] & /*sliderdata*/
|
4203
|
+
512 && !bt(i.src, s = /*handleSrc*/
|
4202
4204
|
t[16](
|
4203
4205
|
/*category*/
|
4204
4206
|
t[48]
|
4205
|
-
)) &&
|
4207
|
+
)) && H(i, "src", s), g === (g = p(t)) && b ? b.p(t, E) : (b.d(1), b = g(t), b && (b.c(), b.m(r, u))), /*itemsActive*/
|
4206
4208
|
t[11][
|
4207
4209
|
/*index*/
|
4208
4210
|
t[50]
|
4209
|
-
] == !0 ? d ? d.p(t,
|
4211
|
+
] == !0 ? d ? d.p(t, E) : (d = Dt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), E[0] & /*activeindex, sliderdata, location*/
|
4210
4212
|
515 && h !== (h = "CarouselItem " + /*activeindex*/
|
4211
|
-
(((
|
4213
|
+
(((L = t[1]) == null ? void 0 : L.toString().indexOf("$")) > -1 ? (
|
4212
4214
|
/*activeindex*/
|
4213
4215
|
((I = t[1]) == null ? void 0 : I.split("$").pop()) == /*category*/
|
4214
4216
|
t[48].id.split("$").pop() ? "active" : ""
|
@@ -4217,34 +4219,34 @@ function $t(e, t) {
|
|
4217
4219
|
t[1] == /*category*/
|
4218
4220
|
t[48].id ? "active" : ""
|
4219
4221
|
)) + " " + /*location*/
|
4220
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
4222
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && H(r, "class", h);
|
4221
4223
|
},
|
4222
|
-
d(
|
4223
|
-
|
4224
|
+
d(_) {
|
4225
|
+
_ && D(r), b.d(), d && d.d(), m = !1, f();
|
4224
4226
|
}
|
4225
4227
|
};
|
4226
4228
|
}
|
4227
|
-
function
|
4229
|
+
function ro(e) {
|
4228
4230
|
let t, r, n, i, o, s, a, u, l, h, m, f, p, g, b, d = (
|
4229
4231
|
/*sliderdata*/
|
4230
|
-
e[9].length > 0 &&
|
4232
|
+
e[9].length > 0 && Rt(e)
|
4231
4233
|
);
|
4232
4234
|
return {
|
4233
4235
|
c() {
|
4234
|
-
t =
|
4235
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
4236
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0),
|
4236
|
+
t = P("div"), r = P("div"), n = P("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 = J(), o = P("div"), s = P("ul"), a = P("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = J(), d && d.c(), l = J(), h = P("div"), h.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(h, "class", "CarouselRightArrow"), H(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4237
|
+
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), H(r, "style", f = /*location*/
|
4238
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), H(t, "class", p = "CarouselWrapper " + /*location*/
|
4237
4239
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4238
4240
|
},
|
4239
|
-
m(
|
4240
|
-
G(
|
4241
|
-
|
4241
|
+
m(w, _) {
|
4242
|
+
G(w, t, _), B(t, r), B(r, n), B(r, i), B(r, o), B(o, s), B(s, a), B(s, u), d && d.m(s, null), e[35](s), e[36](o), B(r, l), B(r, h), e[38](t), g || (b = [
|
4243
|
+
Be(
|
4242
4244
|
n,
|
4243
4245
|
"click",
|
4244
4246
|
/*click_handler*/
|
4245
4247
|
e[32]
|
4246
4248
|
),
|
4247
|
-
|
4249
|
+
Be(
|
4248
4250
|
h,
|
4249
4251
|
"click",
|
4250
4252
|
/*click_handler_3*/
|
@@ -4252,173 +4254,173 @@ function to(e) {
|
|
4252
4254
|
)
|
4253
4255
|
], g = !0);
|
4254
4256
|
},
|
4255
|
-
p(
|
4257
|
+
p(w, _) {
|
4256
4258
|
/*sliderdata*/
|
4257
|
-
|
4259
|
+
w[9].length > 0 ? d ? d.p(w, _) : (d = Rt(w), d.c(), d.m(s, null)) : d && (d.d(1), d = null), _[0] & /*location*/
|
4258
4260
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4259
|
-
|
4261
|
+
w[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && H(r, "class", m), _[0] & /*location*/
|
4260
4262
|
1 && f !== (f = /*location*/
|
4261
|
-
|
4263
|
+
w[0] === "headerMain" ? "max-width: auto" : void 0) && H(r, "style", f), _[0] & /*location*/
|
4262
4264
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4263
|
-
(
|
4265
|
+
(w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && H(t, "class", p);
|
4264
4266
|
},
|
4265
4267
|
i: k,
|
4266
4268
|
o: k,
|
4267
|
-
d(
|
4268
|
-
|
4269
|
+
d(w) {
|
4270
|
+
w && D(t), d && d.d(), e[35](null), e[36](null), e[38](null), g = !1, Y(b);
|
4269
4271
|
}
|
4270
4272
|
};
|
4271
4273
|
}
|
4272
|
-
function
|
4273
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: o = "defaultEvent" } = t, { actionevent: s = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: h = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups:
|
4274
|
-
|
4274
|
+
function no(e, t, r) {
|
4275
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: o = "defaultEvent" } = t, { actionevent: s = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: h = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: w = "false" } = t, { categoriesicon: _ = "false" } = t, { lobbyiconimage: E = "" } = t, { mygamesiconimage: L = "" } = t, { mbsource: I = "" } = t;
|
4276
|
+
Ji({ withLocale: "en", translations: {} });
|
4275
4277
|
const $ = () => {
|
4276
|
-
fetch(f).then((
|
4277
|
-
Object.keys(
|
4278
|
-
|
4278
|
+
fetch(f).then((x) => x.json()).then((x) => {
|
4279
|
+
Object.keys(x).forEach((F) => {
|
4280
|
+
Nt(F, x[F]);
|
4279
4281
|
});
|
4280
|
-
}).catch((
|
4281
|
-
console.log(
|
4282
|
+
}).catch((x) => {
|
4283
|
+
console.log(x);
|
4282
4284
|
});
|
4283
4285
|
};
|
4284
|
-
Object.keys(
|
4285
|
-
|
4286
|
+
Object.keys(Pt).forEach((c) => {
|
4287
|
+
Nt(c, Pt[c]);
|
4286
4288
|
});
|
4287
|
-
let
|
4288
|
-
var
|
4289
|
-
if (!(c.subGroups &&
|
4290
|
-
if (
|
4289
|
+
let C, M, O, X, V, me = [], xe = [], ee = [], N, De = (c, x, F, Q, W) => {
|
4290
|
+
var q;
|
4291
|
+
if (!(c.subGroups && Q === null)) {
|
4292
|
+
if (Ce(), r(6, M = x), r(6, M), W != "secondary") {
|
4291
4293
|
window.postMessage(
|
4292
4294
|
{
|
4293
4295
|
type: s == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4294
4296
|
buzz: "1",
|
4295
4297
|
itemId: c.id,
|
4296
|
-
index:
|
4298
|
+
index: x,
|
4297
4299
|
item: c,
|
4298
4300
|
path: c.path,
|
4299
4301
|
externalLink: c.externalLink || !1,
|
4300
|
-
target: ((
|
4302
|
+
target: ((q = c.attrs) == null ? void 0 : q.target) || null
|
4301
4303
|
},
|
4302
4304
|
window.location.href
|
4303
|
-
), r(7,
|
4305
|
+
), r(7, O = null), r(8, X = null);
|
4304
4306
|
return;
|
4305
4307
|
}
|
4306
|
-
r(7,
|
4308
|
+
r(7, O = Q), r(7, O), r(8, X = O), window.postMessage(
|
4307
4309
|
{
|
4308
4310
|
type: s,
|
4309
4311
|
itemId: F.id,
|
4310
|
-
subIndex:
|
4312
|
+
subIndex: Q,
|
4311
4313
|
subItem: F
|
4312
4314
|
},
|
4313
4315
|
window.location.href
|
4314
4316
|
);
|
4315
4317
|
}
|
4316
|
-
}, at = () => {
|
4317
|
-
N && (K.length !== M ? r(12, N.scrollLeft -= 250, N) : r(12, N.scrollLeft = 0, N));
|
4318
4318
|
}, lt = () => {
|
4319
|
-
N && (
|
4319
|
+
N && (ee.length !== M ? r(12, N.scrollLeft -= 250, N) : r(12, N.scrollLeft = 0, N));
|
4320
|
+
}, ut = () => {
|
4321
|
+
N && (ee.length !== M ? r(12, N.scrollLeft += 250, N) : r(12, N.scrollLeft = 0, N));
|
4320
4322
|
};
|
4321
|
-
const
|
4322
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4323
|
-
|
4323
|
+
const ht = (c) => {
|
4324
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, me = c.data.data), r(11, ee = new Array(me.length).fill(!1)), w == "true" && xr()), c.data.type == "GoToHomepage" && me.forEach((x, F) => {
|
4325
|
+
x.path.endsWith("/casino") && (r(6, M = F), r(6, M));
|
4324
4326
|
});
|
4325
4327
|
}, _r = () => {
|
4326
|
-
|
4327
|
-
},
|
4328
|
+
Yi(b);
|
4329
|
+
}, Er = (c, x, F) => {
|
4328
4330
|
if (u == "secondaryMenu" && n && i && b && c.id) {
|
4329
|
-
let
|
4330
|
-
fetch(
|
4331
|
-
|
4331
|
+
let Q = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4332
|
+
fetch(Q.href).then((W) => W.json()).then((W) => {
|
4333
|
+
W.index = x, r(10, xe = xe.concat(W)), w == "false" && window.postMessage(
|
4332
4334
|
{
|
4333
4335
|
type: s,
|
4334
4336
|
itemId: c.id,
|
4335
|
-
index:
|
4337
|
+
index: x,
|
4336
4338
|
item: c
|
4337
4339
|
},
|
4338
4340
|
window.location.href
|
4339
4341
|
);
|
4340
|
-
const
|
4341
|
-
|
4342
|
-
|
4343
|
-
}),
|
4342
|
+
const q = [];
|
4343
|
+
xe.map((Mr) => (Mr.items.forEach((ct) => {
|
4344
|
+
q.find((Nr) => ct.id == Nr) || q.push(ct.id);
|
4345
|
+
}), q.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: q }, window.location.href);
|
4344
4346
|
}).then(() => {
|
4345
|
-
|
4347
|
+
C.querySelectorAll(".DropDown") && Ce();
|
4346
4348
|
});
|
4347
4349
|
}
|
4348
4350
|
u == "headerMain" && window.postMessage({ type: s, item: c }, window.location.href);
|
4349
|
-
},
|
4350
|
-
const c =
|
4351
|
+
}, Ce = () => {
|
4352
|
+
const c = C.querySelectorAll(".DropDown");
|
4351
4353
|
document.activeElement.blur(), N.classList.add("isScrolling");
|
4352
|
-
for (let
|
4353
|
-
c[
|
4354
|
+
for (let x = 0; x < c.length; x++)
|
4355
|
+
c[x].style.transform = "translateX(-" + N.scrollLeft + "px)";
|
4354
4356
|
N.classList.remove("isScrolling");
|
4355
|
-
},
|
4356
|
-
|
4357
|
+
}, xr = () => {
|
4358
|
+
me.forEach((c, x) => {
|
4357
4359
|
var F;
|
4358
|
-
((F = c == null ? void 0 : c.subGroups) == null ? void 0 : F.count) > 0 && (r(11,
|
4360
|
+
((F = c == null ? void 0 : c.subGroups) == null ? void 0 : F.count) > 0 && (r(11, ee[x] = !0, ee), Er(c, x));
|
4359
4361
|
});
|
4360
|
-
},
|
4361
|
-
let
|
4362
|
-
return c.id === "LOBBY" ?
|
4362
|
+
}, Cr = (c) => {
|
4363
|
+
let x = "";
|
4364
|
+
return c.id === "LOBBY" ? x = E : c.id === "MYGAMES" && (x = L), c.icon || x;
|
4363
4365
|
};
|
4364
|
-
|
4366
|
+
zr(() => (window.addEventListener("message", ht, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4365
4367
|
() => {
|
4366
|
-
N.addEventListener("scroll",
|
4368
|
+
N.addEventListener("scroll", Ce);
|
4367
4369
|
},
|
4368
4370
|
500
|
4369
4371
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4370
|
-
window.removeEventListener("message",
|
4372
|
+
window.removeEventListener("message", ht), C.removeEventListener("scroll", Ce);
|
4371
4373
|
}));
|
4372
|
-
const
|
4373
|
-
|
4374
|
-
},
|
4375
|
-
|
4374
|
+
const wr = () => lt(), Hr = (c, x, F, Q, W) => {
|
4375
|
+
De(c, x, F, Q, "secondary"), W.stopPropagation();
|
4376
|
+
}, Sr = (c, x, F) => {
|
4377
|
+
De(c, x, null, null, "main"), F.preventDefault();
|
4376
4378
|
};
|
4377
|
-
function
|
4378
|
-
|
4379
|
-
|
4379
|
+
function Tr(c) {
|
4380
|
+
ge[c ? "unshift" : "push"](() => {
|
4381
|
+
C = c, r(5, C);
|
4380
4382
|
});
|
4381
4383
|
}
|
4382
|
-
function
|
4383
|
-
|
4384
|
+
function Ar(c) {
|
4385
|
+
ge[c ? "unshift" : "push"](() => {
|
4384
4386
|
N = c, r(12, N);
|
4385
4387
|
});
|
4386
4388
|
}
|
4387
|
-
const
|
4388
|
-
function
|
4389
|
-
|
4390
|
-
|
4389
|
+
const Br = () => ut();
|
4390
|
+
function Ir(c) {
|
4391
|
+
ge[c ? "unshift" : "push"](() => {
|
4392
|
+
V = c, r(4, V);
|
4391
4393
|
});
|
4392
4394
|
}
|
4393
4395
|
return e.$$set = (c) => {
|
4394
|
-
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, o = c.onclickeventname), "actionevent" in c && r(20, s = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, u = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, h = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2,
|
4396
|
+
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, o = c.onclickeventname), "actionevent" in c && r(20, s = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, u = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, h = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, w = c.showsubgroups), "categoriesicon" in c && r(3, _ = c.categoriesicon), "lobbyiconimage" in c && r(29, E = c.lobbyiconimage), "mygamesiconimage" in c && r(30, L = c.mygamesiconimage), "mbsource" in c && r(31, I = c.mbsource);
|
4395
4397
|
}, e.$$.update = () => {
|
4396
4398
|
e.$$.dirty[0] & /*activeindex*/
|
4397
4399
|
2, e.$$.dirty[0] & /*translationurl*/
|
4398
4400
|
33554432 && f && $(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4399
|
-
4194320 && l &&
|
4400
|
-
8388624 && h &&
|
4401
|
+
4194320 && l && V && an(V, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4402
|
+
8388624 && h && V && ln(V, h), e.$$.dirty[0] & /*customStylingContainer*/
|
4401
4403
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4402
|
-
1 && I &&
|
4404
|
+
1 && I && V && un(V, `${I}.Style`), e.$$.dirty[0] & /*lang*/
|
4403
4405
|
268435456 && b && _r();
|
4404
4406
|
}, [
|
4405
4407
|
u,
|
4406
4408
|
d,
|
4407
|
-
H,
|
4408
|
-
v,
|
4409
|
-
j,
|
4410
4409
|
w,
|
4411
|
-
|
4412
|
-
P,
|
4410
|
+
_,
|
4413
4411
|
V,
|
4414
|
-
|
4415
|
-
|
4416
|
-
|
4412
|
+
C,
|
4413
|
+
M,
|
4414
|
+
O,
|
4415
|
+
X,
|
4416
|
+
me,
|
4417
|
+
xe,
|
4418
|
+
ee,
|
4417
4419
|
N,
|
4418
|
-
|
4419
|
-
at,
|
4420
|
+
De,
|
4420
4421
|
lt,
|
4421
|
-
|
4422
|
+
ut,
|
4423
|
+
Cr,
|
4422
4424
|
n,
|
4423
4425
|
i,
|
4424
4426
|
o,
|
@@ -4431,26 +4433,26 @@ function ro(e, t, r) {
|
|
4431
4433
|
p,
|
4432
4434
|
g,
|
4433
4435
|
b,
|
4434
|
-
|
4435
|
-
|
4436
|
+
E,
|
4437
|
+
L,
|
4436
4438
|
I,
|
4437
|
-
Cr,
|
4438
4439
|
wr,
|
4439
4440
|
Hr,
|
4440
4441
|
Sr,
|
4441
4442
|
Tr,
|
4442
4443
|
Ar,
|
4443
|
-
Br
|
4444
|
+
Br,
|
4445
|
+
Ir
|
4444
4446
|
];
|
4445
4447
|
}
|
4446
|
-
class
|
4448
|
+
class io extends on {
|
4447
4449
|
constructor(t) {
|
4448
|
-
super(),
|
4450
|
+
super(), rn(
|
4449
4451
|
this,
|
4450
4452
|
t,
|
4453
|
+
no,
|
4451
4454
|
ro,
|
4452
|
-
|
4453
|
-
Vt,
|
4455
|
+
Xt,
|
4454
4456
|
{
|
4455
4457
|
endpoint: 17,
|
4456
4458
|
datasource: 18,
|
@@ -4472,7 +4474,7 @@ class no extends nn {
|
|
4472
4474
|
mygamesiconimage: 30,
|
4473
4475
|
mbsource: 31
|
4474
4476
|
},
|
4475
|
-
|
4477
|
+
Ki,
|
4476
4478
|
[-1, -1]
|
4477
4479
|
);
|
4478
4480
|
}
|
@@ -4591,7 +4593,7 @@ class no extends nn {
|
|
4591
4593
|
this.$$set({ mbsource: t }), A();
|
4592
4594
|
}
|
4593
4595
|
}
|
4594
|
-
|
4596
|
+
nn(io, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4595
4597
|
export {
|
4596
|
-
|
4598
|
+
io as default
|
4597
4599
|
};
|