@everymatrix/casino-categories 1.86.2 → 1.86.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCategories-B2iy_gnp.cjs +16 -0
- package/components/{CasinoCategories-CIX-rkDI.js → CasinoCategories-CDvop_YB.js} +584 -588
- package/components/{CasinoCategories-Bde9pPpf.js → CasinoCategories-CIWE4ELK.js} +558 -562
- package/es2015/casino-categories.cjs +1 -1
- package/es2015/casino-categories.js +1 -1
- package/esnext/casino-categories.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-DvplcHtm.js +558 -0
- package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
- package/stencil/index-97d17652-p-iQtjus.js +542 -0
- package/stencil/{ui-image-BX-FBhad.cjs → ui-image-BDXyFHck.cjs} +1 -1
- package/stencil/{ui-image-CP8Lp7fB.js → ui-image-Cc8wLmDe.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
- package/stencil/{ui-image-Ch-GHki1.js → ui-image-wH6lu7wS.js} +1 -1
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BESQEo1l.js} +2 -2
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BfZmduAK.js} +2 -2
- package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
- package/components/CasinoCategories-CPiBmzfm.cjs +0 -3
- package/stencil/index-97d17652-B6BYeRne.js +0 -542
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
|
@@ -2,15 +2,15 @@ var tr = Object.defineProperty, rr = Object.defineProperties;
|
|
|
2
2
|
var nr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ye = Object.getOwnPropertySymbols;
|
|
4
4
|
var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ce = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
ir.call(t, r) &&
|
|
7
|
+
ir.call(t, r) && Ce(e, r, t[r]);
|
|
8
8
|
if (Ye)
|
|
9
9
|
for (var r of Ye(t))
|
|
10
|
-
sr.call(t, r) &&
|
|
10
|
+
sr.call(t, r) && Ce(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, et = (e, t) => rr(e, nr(t));
|
|
13
|
-
var N = (e, t, r) => (
|
|
13
|
+
var N = (e, t, r) => (Ce(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
@@ -27,32 +27,32 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-Cc8wLmDe.js";
|
|
31
31
|
function L() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ht(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
36
|
function rt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function ue(e) {
|
|
40
|
+
e.forEach(Ht);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Xe(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ct(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
|
-
let
|
|
49
|
-
function
|
|
50
|
-
return e === t ? !0 : (
|
|
48
|
+
let fe;
|
|
49
|
+
function be(e, t) {
|
|
50
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
51
51
|
}
|
|
52
52
|
function or(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function At(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -62,15 +62,15 @@ function St(e, ...t) {
|
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
64
|
function ar(e, t, r) {
|
|
65
|
-
e.$$.on_destroy.push(
|
|
65
|
+
e.$$.on_destroy.push(At(t, r));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function v(e, t) {
|
|
68
68
|
e.appendChild(t);
|
|
69
69
|
}
|
|
70
70
|
function ur(e, t, r) {
|
|
71
71
|
const n = hr(e);
|
|
72
72
|
if (!n.getElementById(t)) {
|
|
73
|
-
const i =
|
|
73
|
+
const i = S("style");
|
|
74
74
|
i.id = t, i.textContent = r, lr(n, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -85,32 +85,32 @@ function hr(e) {
|
|
|
85
85
|
) : e.ownerDocument;
|
|
86
86
|
}
|
|
87
87
|
function lr(e, t) {
|
|
88
|
-
return
|
|
88
|
+
return v(
|
|
89
89
|
/** @type {Document} */
|
|
90
90
|
e.head || e,
|
|
91
91
|
t
|
|
92
92
|
), t.sheet;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function K(e, t, r) {
|
|
95
95
|
e.insertBefore(t, r || null);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function k(e) {
|
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
99
99
|
}
|
|
100
100
|
function nt(e, t) {
|
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
|
102
102
|
e[r] && e[r].d(t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function S(e) {
|
|
105
105
|
return document.createElement(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function G(e) {
|
|
108
108
|
return document.createTextNode(e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function U() {
|
|
111
|
+
return G(" ");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Bt(e, t, r, n) {
|
|
114
114
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
115
115
|
}
|
|
116
116
|
function I(e, t, r) {
|
|
@@ -123,7 +123,7 @@ function R(e, t, r) {
|
|
|
123
123
|
function fr(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function F(e, t) {
|
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
128
128
|
t);
|
|
129
129
|
}
|
|
@@ -136,90 +136,90 @@ function cr(e) {
|
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
139
|
+
let se;
|
|
140
|
+
function ie(e) {
|
|
141
|
+
se = e;
|
|
142
142
|
}
|
|
143
143
|
function gr() {
|
|
144
|
-
if (!
|
|
144
|
+
if (!se)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return se;
|
|
147
147
|
}
|
|
148
148
|
function mr(e) {
|
|
149
149
|
gr().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
151
|
+
const W = [], Le = [];
|
|
152
|
+
let Z = [];
|
|
153
153
|
const it = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
154
|
-
let
|
|
154
|
+
let Ie = !1;
|
|
155
155
|
function dr() {
|
|
156
|
-
|
|
156
|
+
Ie || (Ie = !0, pr.then(M));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
function Me(e) {
|
|
159
|
+
Z.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
let
|
|
161
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
162
|
+
let X = 0;
|
|
163
163
|
function M() {
|
|
164
|
-
if (
|
|
164
|
+
if (X !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = se;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
|
-
for (;
|
|
170
|
-
const t =
|
|
171
|
-
|
|
169
|
+
for (; X < W.length; ) {
|
|
170
|
+
const t = W[X];
|
|
171
|
+
X++, ie(t), br(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
|
-
throw
|
|
174
|
+
throw W.length = 0, X = 0, t;
|
|
175
175
|
}
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
for (let t = 0; t <
|
|
179
|
-
const r =
|
|
180
|
-
|
|
176
|
+
for (ie(null), W.length = 0, X = 0; Le.length; )
|
|
177
|
+
Le.pop()();
|
|
178
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
179
|
+
const r = Z[t];
|
|
180
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
} while (
|
|
182
|
+
Z.length = 0;
|
|
183
|
+
} while (W.length);
|
|
184
184
|
for (; it.length; )
|
|
185
185
|
it.pop()();
|
|
186
|
-
|
|
186
|
+
Ie = !1, Ae.clear(), ie(e);
|
|
187
187
|
}
|
|
188
188
|
function br(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
|
-
e.update(),
|
|
190
|
+
e.update(), ue(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function yr(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
|
-
|
|
197
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
198
198
|
}
|
|
199
199
|
const _r = /* @__PURE__ */ new Set();
|
|
200
|
-
function
|
|
200
|
+
function xr(e, t) {
|
|
201
201
|
e && e.i && (_r.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ce(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Er(e, t, r) {
|
|
207
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
-
n && n.m(t, r),
|
|
209
|
-
const s = e.$$.on_mount.map(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
211
|
-
}), i.forEach(
|
|
208
|
+
n && n.m(t, r), Me(() => {
|
|
209
|
+
const s = e.$$.on_mount.map(Ht).filter(Xe);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(Me);
|
|
212
212
|
}
|
|
213
213
|
function vr(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (yr(r.after_update),
|
|
215
|
+
r.fragment !== null && (yr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
217
|
function Tr(e, t) {
|
|
218
|
-
e.$$.dirty[0] === -1 && (
|
|
218
|
+
e.$$.dirty[0] === -1 && (W.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const h =
|
|
222
|
-
|
|
220
|
+
function Hr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
221
|
+
const h = se;
|
|
222
|
+
ie(e);
|
|
223
223
|
const a = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
@@ -246,18 +246,18 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
246
246
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
247
247
|
const d = p.length ? p[0] : f;
|
|
248
248
|
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Tr(e, c)), f;
|
|
249
|
-
}) : [], a.update(), l = !0,
|
|
249
|
+
}) : [], a.update(), l = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
251
|
const c = fr(t.target);
|
|
252
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
252
|
+
a.fragment && a.fragment.l(c), c.forEach(k);
|
|
253
253
|
} else
|
|
254
254
|
a.fragment && a.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && xr(e.$$.fragment), Er(e, t.target, t.anchor), M();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
ie(h);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let St;
|
|
260
|
+
typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
@@ -301,17 +301,17 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
301
301
|
let o;
|
|
302
302
|
return {
|
|
303
303
|
c: function() {
|
|
304
|
-
o =
|
|
304
|
+
o = S("slot"), s !== "default" && I(o, "name", s);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
307
307
|
* @param {HTMLElement} target
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(a, l) {
|
|
311
|
-
|
|
311
|
+
K(a, o, l);
|
|
312
312
|
},
|
|
313
313
|
d: function(a) {
|
|
314
|
-
a &&
|
|
314
|
+
a && k(o);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
323
323
|
s in n && (r[s] = [t(s)]);
|
|
324
324
|
for (const s of this.attributes) {
|
|
325
325
|
const o = this.$$g_p(s.name);
|
|
326
|
-
o in this.$$d || (this.$$d[o] =
|
|
326
|
+
o in this.$$d || (this.$$d[o] = me(o, s.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const s in this.$$p_d)
|
|
342
342
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
343
|
-
const o =
|
|
343
|
+
const o = me(
|
|
344
344
|
s,
|
|
345
345
|
this.$$d[s],
|
|
346
346
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
364
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
365
|
attributeChangedCallback(t, r, n) {
|
|
366
366
|
var i;
|
|
367
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
367
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
377
377
|
) || t;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function me(e, t, r, n) {
|
|
381
381
|
var s;
|
|
382
382
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
383
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -407,8 +407,8 @@ function pe(e, t, r, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let o = class extends
|
|
410
|
+
function Cr(e, t, r, n, i, s) {
|
|
411
|
+
let o = class extends St {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
|
414
414
|
}
|
|
@@ -425,7 +425,7 @@ function Hr(e, t, r, n, i, s) {
|
|
|
425
425
|
},
|
|
426
426
|
set(h) {
|
|
427
427
|
var a;
|
|
428
|
-
h =
|
|
428
|
+
h = me(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}), n.forEach((u) => {
|
|
@@ -438,7 +438,7 @@ function Hr(e, t, r, n, i, s) {
|
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
439
|
o, o;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class Ar {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -468,7 +468,7 @@ class Sr {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
|
-
if (!
|
|
471
|
+
if (!Xe(r))
|
|
472
472
|
return L;
|
|
473
473
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return n.push(r), () => {
|
|
@@ -484,26 +484,26 @@ class Sr {
|
|
|
484
484
|
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
489
|
-
const
|
|
490
|
-
function
|
|
487
|
+
const Br = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
489
|
+
const z = [];
|
|
490
|
+
function Sr(e, t) {
|
|
491
491
|
return {
|
|
492
|
-
subscribe:
|
|
492
|
+
subscribe: xe(e, t).subscribe
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function xe(e, t = L) {
|
|
496
496
|
let r;
|
|
497
497
|
const n = /* @__PURE__ */ new Set();
|
|
498
498
|
function i(u) {
|
|
499
|
-
if (
|
|
500
|
-
const h = !
|
|
499
|
+
if (Ct(e, u) && (e = u, r)) {
|
|
500
|
+
const h = !z.length;
|
|
501
501
|
for (const a of n)
|
|
502
|
-
a[1](),
|
|
502
|
+
a[1](), z.push(a, e);
|
|
503
503
|
if (h) {
|
|
504
|
-
for (let a = 0; a <
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
for (let a = 0; a < z.length; a += 2)
|
|
505
|
+
z[a][0](z[a + 1]);
|
|
506
|
+
z.length = 0;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
@@ -518,12 +518,12 @@ function ve(e, t = L) {
|
|
|
518
518
|
}
|
|
519
519
|
return { set: i, update: s, subscribe: o };
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function ee(e, t, r) {
|
|
522
522
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
523
523
|
if (!i.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
525
525
|
const s = t.length < 2;
|
|
526
|
-
return
|
|
526
|
+
return Sr(r, (o, u) => {
|
|
527
527
|
let h = !1;
|
|
528
528
|
const a = [];
|
|
529
529
|
let l = 0, c = L;
|
|
@@ -532,9 +532,9 @@ function te(e, t, r) {
|
|
|
532
532
|
return;
|
|
533
533
|
c();
|
|
534
534
|
const d = t(n ? a[0] : a, o, u);
|
|
535
|
-
s ? o(d) : c =
|
|
535
|
+
s ? o(d) : c = Xe(d) ? d : L;
|
|
536
536
|
}, p = i.map(
|
|
537
|
-
(d, g) =>
|
|
537
|
+
(d, g) => At(
|
|
538
538
|
d,
|
|
539
539
|
(E) => {
|
|
540
540
|
a[g] = E, l &= ~(1 << g), h && f();
|
|
@@ -545,14 +545,14 @@ function te(e, t, r) {
|
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
547
|
return h = !0, f(), function() {
|
|
548
|
-
|
|
548
|
+
ue(p), c(), h = !1;
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function wr(e) {
|
|
553
553
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
554
554
|
}
|
|
555
|
-
var
|
|
555
|
+
var Or = function(t) {
|
|
556
556
|
return Pr(t) && !Nr(t);
|
|
557
557
|
};
|
|
558
558
|
function Pr(e) {
|
|
@@ -569,19 +569,19 @@ function Mr(e) {
|
|
|
569
569
|
function $r(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function oe(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q($r(e), e, t) : e;
|
|
574
574
|
}
|
|
575
575
|
function Rr(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(n) {
|
|
577
|
-
return
|
|
577
|
+
return oe(n, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
580
|
function Ur(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
|
-
return
|
|
582
|
+
return Q;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : Q;
|
|
585
585
|
}
|
|
586
586
|
function Gr(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -591,7 +591,7 @@ function Gr(e) {
|
|
|
591
591
|
function st(e) {
|
|
592
592
|
return Object.keys(e).concat(Gr(e));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function wt(e, t) {
|
|
595
595
|
try {
|
|
596
596
|
return t in e;
|
|
597
597
|
} catch (r) {
|
|
@@ -599,56 +599,70 @@ function Ot(e, t) {
|
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
function Dr(e, t) {
|
|
602
|
-
return
|
|
602
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
603
603
|
}
|
|
604
604
|
function Fr(e, t, r) {
|
|
605
605
|
var n = {};
|
|
606
606
|
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
607
|
-
n[i] =
|
|
607
|
+
n[i] = oe(e[i], r);
|
|
608
608
|
}), st(t).forEach(function(i) {
|
|
609
|
-
Dr(e, i) || (
|
|
609
|
+
Dr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
610
610
|
}), n;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject ||
|
|
612
|
+
function Q(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = oe;
|
|
614
614
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
615
|
-
return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) :
|
|
615
|
+
return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : oe(t, r);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
Q.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
619
619
|
throw new Error("first argument should be an array");
|
|
620
620
|
return t.reduce(function(n, i) {
|
|
621
|
-
return
|
|
621
|
+
return Q(n, i, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var jr =
|
|
625
|
-
const Vr = /* @__PURE__ */
|
|
626
|
-
|
|
627
|
-
|
|
624
|
+
var jr = Q, kr = jr;
|
|
625
|
+
const Vr = /* @__PURE__ */ wr(kr);
|
|
626
|
+
/*! *****************************************************************************
|
|
627
|
+
Copyright (c) Microsoft Corporation.
|
|
628
|
+
|
|
629
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
630
|
+
purpose with or without fee is hereby granted.
|
|
631
|
+
|
|
632
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
633
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
634
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
635
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
636
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
637
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
638
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
639
|
+
***************************************************************************** */
|
|
640
|
+
var $e = function(e, t) {
|
|
641
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
628
642
|
r.__proto__ = n;
|
|
629
643
|
} || function(r, n) {
|
|
630
644
|
for (var i in n)
|
|
631
645
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
632
|
-
},
|
|
646
|
+
}, $e(e, t);
|
|
633
647
|
};
|
|
634
|
-
function
|
|
648
|
+
function Ee(e, t) {
|
|
635
649
|
if (typeof t != "function" && t !== null)
|
|
636
650
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
637
|
-
|
|
651
|
+
$e(e, t);
|
|
638
652
|
function r() {
|
|
639
653
|
this.constructor = e;
|
|
640
654
|
}
|
|
641
655
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
642
656
|
}
|
|
643
|
-
var
|
|
644
|
-
return
|
|
657
|
+
var x = function() {
|
|
658
|
+
return x = Object.assign || function(t) {
|
|
645
659
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
646
660
|
r = arguments[n];
|
|
647
661
|
for (var s in r)
|
|
648
662
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
649
663
|
}
|
|
650
664
|
return t;
|
|
651
|
-
},
|
|
665
|
+
}, x.apply(this, arguments);
|
|
652
666
|
};
|
|
653
667
|
function Xr(e, t) {
|
|
654
668
|
var r = {};
|
|
@@ -659,14 +673,14 @@ function Xr(e, t) {
|
|
|
659
673
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
660
674
|
return r;
|
|
661
675
|
}
|
|
662
|
-
function
|
|
663
|
-
if (
|
|
676
|
+
function Be(e, t, r) {
|
|
677
|
+
if (arguments.length === 2)
|
|
664
678
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
665
679
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
666
|
-
return e.concat(s ||
|
|
680
|
+
return e.concat(s || t);
|
|
667
681
|
}
|
|
668
|
-
function
|
|
669
|
-
var r = t && t.cache ? t.cache :
|
|
682
|
+
function Se(e, t) {
|
|
683
|
+
var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Wr;
|
|
670
684
|
return i(e, {
|
|
671
685
|
cache: r,
|
|
672
686
|
serializer: n
|
|
@@ -675,103 +689,95 @@ function we(e, t) {
|
|
|
675
689
|
function zr(e) {
|
|
676
690
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
677
691
|
}
|
|
678
|
-
function
|
|
692
|
+
function Ot(e, t, r, n) {
|
|
679
693
|
var i = zr(n) ? n : r(n), s = t.get(i);
|
|
680
694
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
681
695
|
}
|
|
682
|
-
function
|
|
696
|
+
function Pt(e, t, r) {
|
|
683
697
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
684
698
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
685
699
|
}
|
|
686
|
-
function
|
|
700
|
+
function ze(e, t, r, n, i) {
|
|
687
701
|
return r.bind(t, e, n, i);
|
|
688
702
|
}
|
|
703
|
+
function Wr(e, t) {
|
|
704
|
+
var r = e.length === 1 ? Ot : Pt;
|
|
705
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
706
|
+
}
|
|
689
707
|
function Zr(e, t) {
|
|
690
|
-
|
|
691
|
-
return Pt(e, this, r, t.cache.create(), t.serializer);
|
|
708
|
+
return ze(e, this, Pt, t.cache.create(), t.serializer);
|
|
692
709
|
}
|
|
693
710
|
function Qr(e, t) {
|
|
694
|
-
return
|
|
711
|
+
return ze(e, this, Ot, t.cache.create(), t.serializer);
|
|
695
712
|
}
|
|
696
713
|
var Jr = function() {
|
|
697
714
|
return JSON.stringify(arguments);
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
}()
|
|
710
|
-
), Yr = {
|
|
715
|
+
};
|
|
716
|
+
function We() {
|
|
717
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
718
|
+
}
|
|
719
|
+
We.prototype.get = function(e) {
|
|
720
|
+
return this.cache[e];
|
|
721
|
+
};
|
|
722
|
+
We.prototype.set = function(e, t) {
|
|
723
|
+
this.cache[e] = t;
|
|
724
|
+
};
|
|
725
|
+
var qr = {
|
|
711
726
|
create: function() {
|
|
712
|
-
return new
|
|
727
|
+
return new We();
|
|
713
728
|
}
|
|
714
|
-
},
|
|
715
|
-
variadic:
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
719
|
-
r = arguments[n];
|
|
720
|
-
for (var s in r)
|
|
721
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
722
|
-
}
|
|
723
|
-
return t;
|
|
724
|
-
}, _e.apply(this, arguments);
|
|
725
|
-
};
|
|
726
|
-
var y;
|
|
729
|
+
}, we = {
|
|
730
|
+
variadic: Zr,
|
|
731
|
+
monadic: Qr
|
|
732
|
+
}, y;
|
|
727
733
|
(function(e) {
|
|
728
734
|
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";
|
|
729
735
|
})(y || (y = {}));
|
|
730
|
-
var
|
|
736
|
+
var T;
|
|
731
737
|
(function(e) {
|
|
732
738
|
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";
|
|
733
|
-
})(
|
|
734
|
-
var
|
|
739
|
+
})(T || (T = {}));
|
|
740
|
+
var J;
|
|
735
741
|
(function(e) {
|
|
736
742
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
737
|
-
})(
|
|
743
|
+
})(J || (J = {}));
|
|
738
744
|
function ot(e) {
|
|
739
|
-
return e.type ===
|
|
745
|
+
return e.type === T.literal;
|
|
740
746
|
}
|
|
741
|
-
function
|
|
742
|
-
return e.type ===
|
|
747
|
+
function Yr(e) {
|
|
748
|
+
return e.type === T.argument;
|
|
743
749
|
}
|
|
744
750
|
function Nt(e) {
|
|
745
|
-
return e.type ===
|
|
751
|
+
return e.type === T.number;
|
|
746
752
|
}
|
|
747
753
|
function Lt(e) {
|
|
748
|
-
return e.type ===
|
|
754
|
+
return e.type === T.date;
|
|
749
755
|
}
|
|
750
756
|
function It(e) {
|
|
751
|
-
return e.type ===
|
|
757
|
+
return e.type === T.time;
|
|
752
758
|
}
|
|
753
759
|
function Mt(e) {
|
|
754
|
-
return e.type ===
|
|
760
|
+
return e.type === T.select;
|
|
755
761
|
}
|
|
756
762
|
function $t(e) {
|
|
757
|
-
return e.type ===
|
|
763
|
+
return e.type === T.plural;
|
|
758
764
|
}
|
|
759
|
-
function
|
|
760
|
-
return e.type ===
|
|
765
|
+
function Kr(e) {
|
|
766
|
+
return e.type === T.pound;
|
|
761
767
|
}
|
|
762
768
|
function Rt(e) {
|
|
763
|
-
return e.type ===
|
|
769
|
+
return e.type === T.tag;
|
|
764
770
|
}
|
|
765
771
|
function Ut(e) {
|
|
766
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
772
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
767
773
|
}
|
|
768
|
-
function
|
|
769
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
774
|
+
function Re(e) {
|
|
775
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
770
776
|
}
|
|
771
|
-
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
772
|
-
function
|
|
777
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[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;
|
|
778
|
+
function tn(e) {
|
|
773
779
|
var t = {};
|
|
774
|
-
return e.replace(
|
|
780
|
+
return e.replace(en, function(r) {
|
|
775
781
|
var n = r.length;
|
|
776
782
|
switch (r[0]) {
|
|
777
783
|
case "G":
|
|
@@ -860,21 +866,11 @@ function rn(e) {
|
|
|
860
866
|
return "";
|
|
861
867
|
}), t;
|
|
862
868
|
}
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
866
|
-
r = arguments[n];
|
|
867
|
-
for (var s in r)
|
|
868
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
869
|
-
}
|
|
870
|
-
return t;
|
|
871
|
-
}, C.apply(this, arguments);
|
|
872
|
-
};
|
|
873
|
-
var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
-
function sn(e) {
|
|
869
|
+
var rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
870
|
+
function nn(e) {
|
|
875
871
|
if (e.length === 0)
|
|
876
872
|
throw new Error("Number skeleton cannot be empty");
|
|
877
|
-
for (var t = e.split(
|
|
873
|
+
for (var t = e.split(rn).filter(function(f) {
|
|
878
874
|
return f.length > 0;
|
|
879
875
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
880
876
|
var s = i[n], o = s.split("/");
|
|
@@ -889,10 +885,10 @@ function sn(e) {
|
|
|
889
885
|
}
|
|
890
886
|
return r;
|
|
891
887
|
}
|
|
892
|
-
function
|
|
888
|
+
function sn(e) {
|
|
893
889
|
return e.replace(/^(.*?)-/, "");
|
|
894
890
|
}
|
|
895
|
-
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
891
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
|
|
896
892
|
function ut(e) {
|
|
897
893
|
var t = {};
|
|
898
894
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
@@ -939,7 +935,7 @@ function jt(e) {
|
|
|
939
935
|
};
|
|
940
936
|
}
|
|
941
937
|
}
|
|
942
|
-
function
|
|
938
|
+
function an(e) {
|
|
943
939
|
var t;
|
|
944
940
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
945
941
|
notation: "engineering"
|
|
@@ -957,7 +953,7 @@ function ht(e) {
|
|
|
957
953
|
var t = {}, r = jt(e);
|
|
958
954
|
return r || t;
|
|
959
955
|
}
|
|
960
|
-
function
|
|
956
|
+
function un(e) {
|
|
961
957
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
962
958
|
var i = n[r];
|
|
963
959
|
switch (i.stem) {
|
|
@@ -981,7 +977,7 @@ function hn(e) {
|
|
|
981
977
|
continue;
|
|
982
978
|
case "measure-unit":
|
|
983
979
|
case "unit":
|
|
984
|
-
t.style = "unit", t.unit =
|
|
980
|
+
t.style = "unit", t.unit = sn(i.options[0]);
|
|
985
981
|
continue;
|
|
986
982
|
case "compact-short":
|
|
987
983
|
case "K":
|
|
@@ -992,13 +988,13 @@ function hn(e) {
|
|
|
992
988
|
t.notation = "compact", t.compactDisplay = "long";
|
|
993
989
|
continue;
|
|
994
990
|
case "scientific":
|
|
995
|
-
t =
|
|
996
|
-
return
|
|
991
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
992
|
+
return x(x({}, h), ht(a));
|
|
997
993
|
}, {}));
|
|
998
994
|
continue;
|
|
999
995
|
case "engineering":
|
|
1000
|
-
t =
|
|
1001
|
-
return
|
|
996
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
997
|
+
return x(x({}, h), ht(a));
|
|
1002
998
|
}, {}));
|
|
1003
999
|
continue;
|
|
1004
1000
|
case "notation-simple":
|
|
@@ -1043,7 +1039,7 @@ function hn(e) {
|
|
|
1043
1039
|
case "integer-width":
|
|
1044
1040
|
if (i.options.length > 1)
|
|
1045
1041
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1046
|
-
i.options[0].replace(
|
|
1042
|
+
i.options[0].replace(on, function(h, a, l, c, f, p) {
|
|
1047
1043
|
if (a)
|
|
1048
1044
|
t.minimumIntegerDigits = l.length;
|
|
1049
1045
|
else {
|
|
@@ -1067,21 +1063,21 @@ function hn(e) {
|
|
|
1067
1063
|
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1068
1064
|
});
|
|
1069
1065
|
var s = i.options[0];
|
|
1070
|
-
s === "w" ? t =
|
|
1066
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ut(s)));
|
|
1071
1067
|
continue;
|
|
1072
1068
|
}
|
|
1073
1069
|
if (Dt.test(i.stem)) {
|
|
1074
|
-
t =
|
|
1070
|
+
t = x(x({}, t), ut(i.stem));
|
|
1075
1071
|
continue;
|
|
1076
1072
|
}
|
|
1077
1073
|
var o = jt(i.stem);
|
|
1078
|
-
o && (t =
|
|
1079
|
-
var u =
|
|
1080
|
-
u && (t =
|
|
1074
|
+
o && (t = x(x({}, t), o));
|
|
1075
|
+
var u = an(i.stem);
|
|
1076
|
+
u && (t = x(x({}, t), u));
|
|
1081
1077
|
}
|
|
1082
1078
|
return t;
|
|
1083
1079
|
}
|
|
1084
|
-
var
|
|
1080
|
+
var ge = {
|
|
1085
1081
|
"001": [
|
|
1086
1082
|
"H",
|
|
1087
1083
|
"h"
|
|
@@ -2496,13 +2492,13 @@ var me = {
|
|
|
2496
2492
|
"h"
|
|
2497
2493
|
]
|
|
2498
2494
|
};
|
|
2499
|
-
function
|
|
2495
|
+
function hn(e, t) {
|
|
2500
2496
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2501
2497
|
var i = e.charAt(n);
|
|
2502
2498
|
if (i === "j") {
|
|
2503
2499
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2504
2500
|
s++, n++;
|
|
2505
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2501
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = ln(t);
|
|
2506
2502
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2507
2503
|
r += h;
|
|
2508
2504
|
for (; o-- > 0; )
|
|
@@ -2512,7 +2508,7 @@ function ln(e, t) {
|
|
|
2512
2508
|
}
|
|
2513
2509
|
return r;
|
|
2514
2510
|
}
|
|
2515
|
-
function
|
|
2511
|
+
function ln(e) {
|
|
2516
2512
|
var t = e.hourCycle;
|
|
2517
2513
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2518
2514
|
e.hourCycles && // @ts-ignore
|
|
@@ -2531,23 +2527,23 @@ function fn(e) {
|
|
|
2531
2527
|
}
|
|
2532
2528
|
var r = e.language, n;
|
|
2533
2529
|
r !== "root" && (n = e.maximize().region);
|
|
2534
|
-
var i =
|
|
2530
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2535
2531
|
return i[0];
|
|
2536
2532
|
}
|
|
2537
|
-
var
|
|
2533
|
+
var Oe, fn = new RegExp("^".concat(Gt.source, "*")), cn = new RegExp("".concat(Gt.source, "*$"));
|
|
2538
2534
|
function _(e, t) {
|
|
2539
2535
|
return { start: e, end: t };
|
|
2540
2536
|
}
|
|
2541
|
-
var
|
|
2537
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, pn = !!Object.fromEntries, dn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, yn = !!String.prototype.trimEnd, _n = !!Number.isSafeInteger, xn = _n ? Number.isSafeInteger : function(e) {
|
|
2542
2538
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2543
|
-
},
|
|
2539
|
+
}, Ue = !0;
|
|
2544
2540
|
try {
|
|
2545
|
-
var
|
|
2546
|
-
|
|
2541
|
+
var En = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2542
|
+
Ue = ((Oe = En.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2547
2543
|
} catch (e) {
|
|
2548
|
-
|
|
2544
|
+
Ue = !1;
|
|
2549
2545
|
}
|
|
2550
|
-
var lt =
|
|
2546
|
+
var lt = gn ? (
|
|
2551
2547
|
// Native
|
|
2552
2548
|
function(t, r, n) {
|
|
2553
2549
|
return t.startsWith(r, n);
|
|
@@ -2557,7 +2553,7 @@ var lt = mn ? (
|
|
|
2557
2553
|
function(t, r, n) {
|
|
2558
2554
|
return t.slice(n, n + r.length) === r;
|
|
2559
2555
|
}
|
|
2560
|
-
),
|
|
2556
|
+
), Ge = mn ? String.fromCodePoint : (
|
|
2561
2557
|
// IE11
|
|
2562
2558
|
function() {
|
|
2563
2559
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2571,7 +2567,7 @@ var lt = mn ? (
|
|
|
2571
2567
|
}
|
|
2572
2568
|
), ft = (
|
|
2573
2569
|
// native
|
|
2574
|
-
|
|
2570
|
+
pn ? Object.fromEntries : (
|
|
2575
2571
|
// Ponyfill
|
|
2576
2572
|
function(t) {
|
|
2577
2573
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2581,7 +2577,7 @@ var lt = mn ? (
|
|
|
2581
2577
|
return r;
|
|
2582
2578
|
}
|
|
2583
2579
|
)
|
|
2584
|
-
), kt =
|
|
2580
|
+
), kt = dn ? (
|
|
2585
2581
|
// Native
|
|
2586
2582
|
function(t, r) {
|
|
2587
2583
|
return t.codePointAt(r);
|
|
@@ -2595,7 +2591,7 @@ var lt = mn ? (
|
|
|
2595
2591
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2596
2592
|
}
|
|
2597
2593
|
}
|
|
2598
|
-
),
|
|
2594
|
+
), vn = bn ? (
|
|
2599
2595
|
// Native
|
|
2600
2596
|
function(t) {
|
|
2601
2597
|
return t.trimStart();
|
|
@@ -2603,9 +2599,9 @@ var lt = mn ? (
|
|
|
2603
2599
|
) : (
|
|
2604
2600
|
// Ponyfill
|
|
2605
2601
|
function(t) {
|
|
2606
|
-
return t.replace(
|
|
2602
|
+
return t.replace(fn, "");
|
|
2607
2603
|
}
|
|
2608
|
-
),
|
|
2604
|
+
), Tn = yn ? (
|
|
2609
2605
|
// Native
|
|
2610
2606
|
function(t) {
|
|
2611
2607
|
return t.trimEnd();
|
|
@@ -2613,30 +2609,30 @@ var lt = mn ? (
|
|
|
2613
2609
|
) : (
|
|
2614
2610
|
// Ponyfill
|
|
2615
2611
|
function(t) {
|
|
2616
|
-
return t.replace(
|
|
2612
|
+
return t.replace(cn, "");
|
|
2617
2613
|
}
|
|
2618
2614
|
);
|
|
2619
2615
|
function Vt(e, t) {
|
|
2620
2616
|
return new RegExp(e, t);
|
|
2621
2617
|
}
|
|
2622
|
-
var
|
|
2623
|
-
if (
|
|
2618
|
+
var De;
|
|
2619
|
+
if (Ue) {
|
|
2624
2620
|
var ct = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2625
|
-
|
|
2621
|
+
De = function(t, r) {
|
|
2626
2622
|
var n;
|
|
2627
2623
|
ct.lastIndex = r;
|
|
2628
2624
|
var i = ct.exec(t);
|
|
2629
2625
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2630
2626
|
};
|
|
2631
2627
|
} else
|
|
2632
|
-
|
|
2628
|
+
De = function(t, r) {
|
|
2633
2629
|
for (var n = []; ; ) {
|
|
2634
2630
|
var i = kt(t, r);
|
|
2635
2631
|
if (i === void 0 || Xt(i) || Bn(i))
|
|
2636
2632
|
break;
|
|
2637
2633
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2638
2634
|
}
|
|
2639
|
-
return
|
|
2635
|
+
return Ge.apply(void 0, n);
|
|
2640
2636
|
};
|
|
2641
2637
|
var Hn = (
|
|
2642
2638
|
/** @class */
|
|
@@ -2662,14 +2658,14 @@ var Hn = (
|
|
|
2662
2658
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2663
2659
|
var u = this.clonePosition();
|
|
2664
2660
|
this.bump(), i.push({
|
|
2665
|
-
type:
|
|
2661
|
+
type: T.pound,
|
|
2666
2662
|
location: _(u, this.clonePosition())
|
|
2667
2663
|
});
|
|
2668
2664
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2669
2665
|
if (n)
|
|
2670
2666
|
break;
|
|
2671
2667
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2672
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2668
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2673
2669
|
var o = this.parseTag(t, r);
|
|
2674
2670
|
if (o.err)
|
|
2675
2671
|
return o;
|
|
@@ -2690,7 +2686,7 @@ var Hn = (
|
|
|
2690
2686
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2691
2687
|
return {
|
|
2692
2688
|
val: {
|
|
2693
|
-
type:
|
|
2689
|
+
type: T.literal,
|
|
2694
2690
|
value: "<".concat(i, "/>"),
|
|
2695
2691
|
location: _(n, this.clonePosition())
|
|
2696
2692
|
},
|
|
@@ -2702,12 +2698,12 @@ var Hn = (
|
|
|
2702
2698
|
return s;
|
|
2703
2699
|
var o = s.val, u = this.clonePosition();
|
|
2704
2700
|
if (this.bumpIf("</")) {
|
|
2705
|
-
if (this.isEOF() || !
|
|
2701
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2706
2702
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2707
2703
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2708
2704
|
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2709
2705
|
val: {
|
|
2710
|
-
type:
|
|
2706
|
+
type: T.tag,
|
|
2711
2707
|
value: i,
|
|
2712
2708
|
children: o,
|
|
2713
2709
|
location: _(n, this.clonePosition())
|
|
@@ -2744,12 +2740,12 @@ var Hn = (
|
|
|
2744
2740
|
}
|
|
2745
2741
|
var h = _(n, this.clonePosition());
|
|
2746
2742
|
return {
|
|
2747
|
-
val: { type:
|
|
2743
|
+
val: { type: T.literal, value: i, location: h },
|
|
2748
2744
|
err: null
|
|
2749
2745
|
};
|
|
2750
2746
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2751
2747
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2752
|
-
!
|
|
2748
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2753
2749
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2754
2750
|
if (this.isEOF() || this.char() !== 39)
|
|
2755
2751
|
return null;
|
|
@@ -2783,12 +2779,12 @@ var Hn = (
|
|
|
2783
2779
|
r.push(n);
|
|
2784
2780
|
this.bump();
|
|
2785
2781
|
}
|
|
2786
|
-
return
|
|
2782
|
+
return Ge.apply(void 0, r);
|
|
2787
2783
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2788
2784
|
if (this.isEOF())
|
|
2789
2785
|
return null;
|
|
2790
2786
|
var n = this.char();
|
|
2791
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2787
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2792
2788
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2793
2789
|
var n = this.clonePosition();
|
|
2794
2790
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2804,7 +2800,7 @@ var Hn = (
|
|
|
2804
2800
|
case 125:
|
|
2805
2801
|
return this.bump(), {
|
|
2806
2802
|
val: {
|
|
2807
|
-
type:
|
|
2803
|
+
type: T.argument,
|
|
2808
2804
|
// value does not include the opening and closing braces.
|
|
2809
2805
|
value: i,
|
|
2810
2806
|
location: _(n, this.clonePosition())
|
|
@@ -2817,7 +2813,7 @@ var Hn = (
|
|
|
2817
2813
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2818
2814
|
}
|
|
2819
2815
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2820
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2816
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2821
2817
|
this.bumpTo(i);
|
|
2822
2818
|
var s = this.clonePosition(), o = _(t, s);
|
|
2823
2819
|
return { value: n, location: o };
|
|
@@ -2836,7 +2832,7 @@ var Hn = (
|
|
|
2836
2832
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2837
2833
|
if (c.err)
|
|
2838
2834
|
return c;
|
|
2839
|
-
var f =
|
|
2835
|
+
var f = Tn(c.val);
|
|
2840
2836
|
if (f.length === 0)
|
|
2841
2837
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2842
2838
|
var p = _(l, this.clonePosition());
|
|
@@ -2847,33 +2843,33 @@ var Hn = (
|
|
|
2847
2843
|
return d;
|
|
2848
2844
|
var g = _(i, this.clonePosition());
|
|
2849
2845
|
if (a && lt(a == null ? void 0 : a.style, "::", 0)) {
|
|
2850
|
-
var E =
|
|
2846
|
+
var E = vn(a.style.slice(2));
|
|
2851
2847
|
if (u === "number") {
|
|
2852
2848
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2853
2849
|
return c.err ? c : {
|
|
2854
|
-
val: { type:
|
|
2850
|
+
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2855
2851
|
err: null
|
|
2856
2852
|
};
|
|
2857
2853
|
} else {
|
|
2858
2854
|
if (E.length === 0)
|
|
2859
2855
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2860
2856
|
var m = E;
|
|
2861
|
-
this.locale && (m =
|
|
2857
|
+
this.locale && (m = hn(E, this.locale));
|
|
2862
2858
|
var f = {
|
|
2863
|
-
type:
|
|
2859
|
+
type: J.dateTime,
|
|
2864
2860
|
pattern: m,
|
|
2865
2861
|
location: a.styleLocation,
|
|
2866
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2867
|
-
},
|
|
2862
|
+
parsedOptions: this.shouldParseSkeletons ? tn(m) : {}
|
|
2863
|
+
}, H = u === "date" ? T.date : T.time;
|
|
2868
2864
|
return {
|
|
2869
|
-
val: { type:
|
|
2865
|
+
val: { type: H, value: n, location: g, style: f },
|
|
2870
2866
|
err: null
|
|
2871
2867
|
};
|
|
2872
2868
|
}
|
|
2873
2869
|
}
|
|
2874
2870
|
return {
|
|
2875
2871
|
val: {
|
|
2876
|
-
type: u === "number" ?
|
|
2872
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2877
2873
|
value: n,
|
|
2878
2874
|
location: g,
|
|
2879
2875
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2884,41 +2880,41 @@ var Hn = (
|
|
|
2884
2880
|
case "plural":
|
|
2885
2881
|
case "selectordinal":
|
|
2886
2882
|
case "select": {
|
|
2887
|
-
var
|
|
2883
|
+
var A = this.clonePosition();
|
|
2888
2884
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2889
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2885
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, x({}, A)));
|
|
2890
2886
|
this.bumpSpace();
|
|
2891
|
-
var
|
|
2892
|
-
if (u !== "select" &&
|
|
2887
|
+
var O = this.parseIdentifierIfPossible(), B = 0;
|
|
2888
|
+
if (u !== "select" && O.value === "offset") {
|
|
2893
2889
|
if (!this.bumpIf(":"))
|
|
2894
2890
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2895
2891
|
this.bumpSpace();
|
|
2896
2892
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2897
2893
|
if (c.err)
|
|
2898
2894
|
return c;
|
|
2899
|
-
this.bumpSpace(),
|
|
2895
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), B = c.val;
|
|
2900
2896
|
}
|
|
2901
|
-
var
|
|
2902
|
-
if (
|
|
2903
|
-
return
|
|
2897
|
+
var C = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
2898
|
+
if (C.err)
|
|
2899
|
+
return C;
|
|
2904
2900
|
var d = this.tryParseArgumentClose(i);
|
|
2905
2901
|
if (d.err)
|
|
2906
2902
|
return d;
|
|
2907
2903
|
var P = _(i, this.clonePosition());
|
|
2908
2904
|
return u === "select" ? {
|
|
2909
2905
|
val: {
|
|
2910
|
-
type:
|
|
2906
|
+
type: T.select,
|
|
2911
2907
|
value: n,
|
|
2912
|
-
options: ft(
|
|
2908
|
+
options: ft(C.val),
|
|
2913
2909
|
location: P
|
|
2914
2910
|
},
|
|
2915
2911
|
err: null
|
|
2916
2912
|
} : {
|
|
2917
2913
|
val: {
|
|
2918
|
-
type:
|
|
2914
|
+
type: T.plural,
|
|
2919
2915
|
value: n,
|
|
2920
|
-
options: ft(
|
|
2921
|
-
offset:
|
|
2916
|
+
options: ft(C.val),
|
|
2917
|
+
offset: B,
|
|
2922
2918
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2923
2919
|
location: P
|
|
2924
2920
|
},
|
|
@@ -2968,16 +2964,16 @@ var Hn = (
|
|
|
2968
2964
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2969
2965
|
var n = [];
|
|
2970
2966
|
try {
|
|
2971
|
-
n =
|
|
2967
|
+
n = nn(t);
|
|
2972
2968
|
} catch (i) {
|
|
2973
2969
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2974
2970
|
}
|
|
2975
2971
|
return {
|
|
2976
2972
|
val: {
|
|
2977
|
-
type:
|
|
2973
|
+
type: J.number,
|
|
2978
2974
|
tokens: n,
|
|
2979
2975
|
location: r,
|
|
2980
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2976
|
+
parsedOptions: this.shouldParseSkeletons ? un(n) : {}
|
|
2981
2977
|
},
|
|
2982
2978
|
err: null
|
|
2983
2979
|
};
|
|
@@ -3091,11 +3087,11 @@ var Hn = (
|
|
|
3091
3087
|
}, e;
|
|
3092
3088
|
}()
|
|
3093
3089
|
);
|
|
3094
|
-
function
|
|
3090
|
+
function Fe(e) {
|
|
3095
3091
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3096
3092
|
}
|
|
3097
|
-
function
|
|
3098
|
-
return
|
|
3093
|
+
function Cn(e) {
|
|
3094
|
+
return Fe(e) || e === 47;
|
|
3099
3095
|
}
|
|
3100
3096
|
function An(e) {
|
|
3101
3097
|
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;
|
|
@@ -3106,32 +3102,32 @@ function Xt(e) {
|
|
|
3106
3102
|
function Bn(e) {
|
|
3107
3103
|
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;
|
|
3108
3104
|
}
|
|
3109
|
-
function
|
|
3105
|
+
function je(e) {
|
|
3110
3106
|
e.forEach(function(t) {
|
|
3111
3107
|
if (delete t.location, Mt(t) || $t(t))
|
|
3112
3108
|
for (var r in t.options)
|
|
3113
|
-
delete t.options[r].location,
|
|
3109
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3114
3110
|
else
|
|
3115
|
-
Nt(t) && Ut(t.style) || (Lt(t) || It(t)) &&
|
|
3111
|
+
Nt(t) && Ut(t.style) || (Lt(t) || It(t)) && Re(t.style) ? delete t.style.location : Rt(t) && je(t.children);
|
|
3116
3112
|
});
|
|
3117
3113
|
}
|
|
3118
|
-
function
|
|
3119
|
-
t === void 0 && (t = {}), t =
|
|
3114
|
+
function Sn(e, t) {
|
|
3115
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3120
3116
|
var r = new Hn(e, t).parse();
|
|
3121
3117
|
if (r.err) {
|
|
3122
3118
|
var n = SyntaxError(y[r.err.kind]);
|
|
3123
3119
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3124
3120
|
}
|
|
3125
|
-
return t != null && t.captureLocation ||
|
|
3121
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3126
3122
|
}
|
|
3127
|
-
var
|
|
3123
|
+
var q;
|
|
3128
3124
|
(function(e) {
|
|
3129
3125
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3130
|
-
})(
|
|
3131
|
-
var
|
|
3126
|
+
})(q || (q = {}));
|
|
3127
|
+
var ve = (
|
|
3132
3128
|
/** @class */
|
|
3133
3129
|
function(e) {
|
|
3134
|
-
|
|
3130
|
+
Ee(t, e);
|
|
3135
3131
|
function t(r, n, i) {
|
|
3136
3132
|
var s = e.call(this, r) || this;
|
|
3137
3133
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3143,48 +3139,48 @@ var Ce = (
|
|
|
3143
3139
|
), gt = (
|
|
3144
3140
|
/** @class */
|
|
3145
3141
|
function(e) {
|
|
3146
|
-
|
|
3142
|
+
Ee(t, e);
|
|
3147
3143
|
function t(r, n, i, s) {
|
|
3148
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3144
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3149
3145
|
}
|
|
3150
3146
|
return t;
|
|
3151
|
-
}(
|
|
3147
|
+
}(ve)
|
|
3152
3148
|
), wn = (
|
|
3153
3149
|
/** @class */
|
|
3154
3150
|
function(e) {
|
|
3155
|
-
|
|
3151
|
+
Ee(t, e);
|
|
3156
3152
|
function t(r, n, i) {
|
|
3157
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3153
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3158
3154
|
}
|
|
3159
3155
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3156
|
+
}(ve)
|
|
3157
|
+
), On = (
|
|
3162
3158
|
/** @class */
|
|
3163
3159
|
function(e) {
|
|
3164
|
-
|
|
3160
|
+
Ee(t, e);
|
|
3165
3161
|
function t(r, n) {
|
|
3166
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3162
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3167
3163
|
}
|
|
3168
3164
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3165
|
+
}(ve)
|
|
3166
|
+
), w;
|
|
3171
3167
|
(function(e) {
|
|
3172
3168
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3173
|
-
})(
|
|
3174
|
-
function
|
|
3169
|
+
})(w || (w = {}));
|
|
3170
|
+
function Pn(e) {
|
|
3175
3171
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3176
3172
|
var n = t[t.length - 1];
|
|
3177
|
-
return !n || n.type !==
|
|
3173
|
+
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3178
3174
|
}, []);
|
|
3179
3175
|
}
|
|
3180
|
-
function
|
|
3176
|
+
function Nn(e) {
|
|
3181
3177
|
return typeof e == "function";
|
|
3182
3178
|
}
|
|
3183
|
-
function
|
|
3179
|
+
function pe(e, t, r, n, i, s, o) {
|
|
3184
3180
|
if (e.length === 1 && ot(e[0]))
|
|
3185
3181
|
return [
|
|
3186
3182
|
{
|
|
3187
|
-
type:
|
|
3183
|
+
type: w.literal,
|
|
3188
3184
|
value: e[0].value
|
|
3189
3185
|
}
|
|
3190
3186
|
];
|
|
@@ -3192,41 +3188,41 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3192
3188
|
var l = a[h];
|
|
3193
3189
|
if (ot(l)) {
|
|
3194
3190
|
u.push({
|
|
3195
|
-
type:
|
|
3191
|
+
type: w.literal,
|
|
3196
3192
|
value: l.value
|
|
3197
3193
|
});
|
|
3198
3194
|
continue;
|
|
3199
3195
|
}
|
|
3200
|
-
if (
|
|
3196
|
+
if (Kr(l)) {
|
|
3201
3197
|
typeof s == "number" && u.push({
|
|
3202
|
-
type:
|
|
3198
|
+
type: w.literal,
|
|
3203
3199
|
value: r.getNumberFormat(t).format(s)
|
|
3204
3200
|
});
|
|
3205
3201
|
continue;
|
|
3206
3202
|
}
|
|
3207
3203
|
var c = l.value;
|
|
3208
3204
|
if (!(i && c in i))
|
|
3209
|
-
throw new
|
|
3205
|
+
throw new On(c, o);
|
|
3210
3206
|
var f = i[c];
|
|
3211
|
-
if (
|
|
3207
|
+
if (Yr(l)) {
|
|
3212
3208
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3213
|
-
type: typeof f == "string" ?
|
|
3209
|
+
type: typeof f == "string" ? w.literal : w.object,
|
|
3214
3210
|
value: f
|
|
3215
3211
|
});
|
|
3216
3212
|
continue;
|
|
3217
3213
|
}
|
|
3218
3214
|
if (Lt(l)) {
|
|
3219
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3215
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3220
3216
|
u.push({
|
|
3221
|
-
type:
|
|
3217
|
+
type: w.literal,
|
|
3222
3218
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3223
3219
|
});
|
|
3224
3220
|
continue;
|
|
3225
3221
|
}
|
|
3226
3222
|
if (It(l)) {
|
|
3227
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3223
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3228
3224
|
u.push({
|
|
3229
|
-
type:
|
|
3225
|
+
type: w.literal,
|
|
3230
3226
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3231
3227
|
});
|
|
3232
3228
|
continue;
|
|
@@ -3234,61 +3230,61 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3234
3230
|
if (Nt(l)) {
|
|
3235
3231
|
var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
|
|
3236
3232
|
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3237
|
-
type:
|
|
3233
|
+
type: w.literal,
|
|
3238
3234
|
value: r.getNumberFormat(t, p).format(f)
|
|
3239
3235
|
});
|
|
3240
3236
|
continue;
|
|
3241
3237
|
}
|
|
3242
3238
|
if (Rt(l)) {
|
|
3243
3239
|
var d = l.children, g = l.value, E = i[g];
|
|
3244
|
-
if (!
|
|
3240
|
+
if (!Nn(E))
|
|
3245
3241
|
throw new wn(g, "function", o);
|
|
3246
|
-
var m =
|
|
3247
|
-
return
|
|
3242
|
+
var m = pe(d, t, r, n, i, s), H = E(m.map(function(B) {
|
|
3243
|
+
return B.value;
|
|
3248
3244
|
}));
|
|
3249
|
-
Array.isArray(
|
|
3245
|
+
Array.isArray(H) || (H = [H]), u.push.apply(u, H.map(function(B) {
|
|
3250
3246
|
return {
|
|
3251
|
-
type: typeof
|
|
3252
|
-
value:
|
|
3247
|
+
type: typeof B == "string" ? w.literal : w.object,
|
|
3248
|
+
value: B
|
|
3253
3249
|
};
|
|
3254
3250
|
}));
|
|
3255
3251
|
}
|
|
3256
3252
|
if (Mt(l)) {
|
|
3257
|
-
var
|
|
3258
|
-
if (!
|
|
3253
|
+
var A = l.options[f] || l.options.other;
|
|
3254
|
+
if (!A)
|
|
3259
3255
|
throw new gt(l.value, f, Object.keys(l.options), o);
|
|
3260
|
-
u.push.apply(u,
|
|
3256
|
+
u.push.apply(u, pe(A.value, t, r, n, i));
|
|
3261
3257
|
continue;
|
|
3262
3258
|
}
|
|
3263
3259
|
if ($t(l)) {
|
|
3264
|
-
var
|
|
3265
|
-
if (!
|
|
3260
|
+
var A = l.options["=".concat(f)];
|
|
3261
|
+
if (!A) {
|
|
3266
3262
|
if (!Intl.PluralRules)
|
|
3267
|
-
throw new
|
|
3263
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3268
3264
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3269
|
-
`,
|
|
3270
|
-
var
|
|
3271
|
-
|
|
3265
|
+
`, q.MISSING_INTL_API, o);
|
|
3266
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3267
|
+
A = l.options[O] || l.options.other;
|
|
3272
3268
|
}
|
|
3273
|
-
if (!
|
|
3269
|
+
if (!A)
|
|
3274
3270
|
throw new gt(l.value, f, Object.keys(l.options), o);
|
|
3275
|
-
u.push.apply(u,
|
|
3271
|
+
u.push.apply(u, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3276
3272
|
continue;
|
|
3277
3273
|
}
|
|
3278
3274
|
}
|
|
3279
|
-
return
|
|
3275
|
+
return Pn(u);
|
|
3280
3276
|
}
|
|
3281
|
-
function
|
|
3282
|
-
return t ?
|
|
3283
|
-
return r[n] =
|
|
3277
|
+
function Ln(e, t) {
|
|
3278
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3279
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3284
3280
|
}, {})) : e;
|
|
3285
3281
|
}
|
|
3286
|
-
function
|
|
3282
|
+
function In(e, t) {
|
|
3287
3283
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3288
|
-
return r[n] =
|
|
3289
|
-
},
|
|
3284
|
+
return r[n] = Ln(e[n], t[n]), r;
|
|
3285
|
+
}, x({}, e)) : e;
|
|
3290
3286
|
}
|
|
3291
|
-
function
|
|
3287
|
+
function Pe(e) {
|
|
3292
3288
|
return {
|
|
3293
3289
|
create: function() {
|
|
3294
3290
|
return {
|
|
@@ -3302,39 +3298,39 @@ function Le(e) {
|
|
|
3302
3298
|
}
|
|
3303
3299
|
};
|
|
3304
3300
|
}
|
|
3305
|
-
function
|
|
3301
|
+
function Mn(e) {
|
|
3306
3302
|
return e === void 0 && (e = {
|
|
3307
3303
|
number: {},
|
|
3308
3304
|
dateTime: {},
|
|
3309
3305
|
pluralRules: {}
|
|
3310
3306
|
}), {
|
|
3311
|
-
getNumberFormat:
|
|
3307
|
+
getNumberFormat: Se(function() {
|
|
3312
3308
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3313
3309
|
r[n] = arguments[n];
|
|
3314
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3310
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3315
3311
|
}, {
|
|
3316
|
-
cache:
|
|
3317
|
-
strategy:
|
|
3312
|
+
cache: Pe(e.number),
|
|
3313
|
+
strategy: we.variadic
|
|
3318
3314
|
}),
|
|
3319
|
-
getDateTimeFormat:
|
|
3315
|
+
getDateTimeFormat: Se(function() {
|
|
3320
3316
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3321
3317
|
r[n] = arguments[n];
|
|
3322
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3318
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3323
3319
|
}, {
|
|
3324
|
-
cache:
|
|
3325
|
-
strategy:
|
|
3320
|
+
cache: Pe(e.dateTime),
|
|
3321
|
+
strategy: we.variadic
|
|
3326
3322
|
}),
|
|
3327
|
-
getPluralRules:
|
|
3323
|
+
getPluralRules: Se(function() {
|
|
3328
3324
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3329
3325
|
r[n] = arguments[n];
|
|
3330
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3326
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3331
3327
|
}, {
|
|
3332
|
-
cache:
|
|
3333
|
-
strategy:
|
|
3328
|
+
cache: Pe(e.pluralRules),
|
|
3329
|
+
strategy: we.variadic
|
|
3334
3330
|
})
|
|
3335
3331
|
};
|
|
3336
3332
|
}
|
|
3337
|
-
var
|
|
3333
|
+
var $n = (
|
|
3338
3334
|
/** @class */
|
|
3339
3335
|
function() {
|
|
3340
3336
|
function e(t, r, n, i) {
|
|
@@ -3349,11 +3345,11 @@ var Rn = (
|
|
|
3349
3345
|
if (a.length === 1)
|
|
3350
3346
|
return a[0].value;
|
|
3351
3347
|
var l = a.reduce(function(c, f) {
|
|
3352
|
-
return !c.length || f.type !==
|
|
3348
|
+
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3353
3349
|
}, []);
|
|
3354
3350
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3355
3351
|
}, this.formatToParts = function(h) {
|
|
3356
|
-
return
|
|
3352
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3357
3353
|
}, this.resolvedOptions = function() {
|
|
3358
3354
|
var h;
|
|
3359
3355
|
return {
|
|
@@ -3367,12 +3363,12 @@ var Rn = (
|
|
|
3367
3363
|
var o = i || {};
|
|
3368
3364
|
o.formatters;
|
|
3369
3365
|
var u = Xr(o, ["formatters"]);
|
|
3370
|
-
this.ast = e.__parse(t,
|
|
3366
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3371
3367
|
} else
|
|
3372
3368
|
this.ast = t;
|
|
3373
3369
|
if (!Array.isArray(this.ast))
|
|
3374
3370
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3375
|
-
this.formats =
|
|
3371
|
+
this.formats = In(e.formats, n), this.formatters = i && i.formatters || Mn(this.formatterCache);
|
|
3376
3372
|
}
|
|
3377
3373
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3378
3374
|
get: function() {
|
|
@@ -3385,7 +3381,7 @@ var Rn = (
|
|
|
3385
3381
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3386
3382
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3387
3383
|
}
|
|
3388
|
-
}, e.__parse =
|
|
3384
|
+
}, e.__parse = Sn, e.formats = {
|
|
3389
3385
|
number: {
|
|
3390
3386
|
integer: {
|
|
3391
3387
|
maximumFractionDigits: 0
|
|
@@ -3446,7 +3442,7 @@ var Rn = (
|
|
|
3446
3442
|
}, e;
|
|
3447
3443
|
}()
|
|
3448
3444
|
);
|
|
3449
|
-
function
|
|
3445
|
+
function Rn(e, t) {
|
|
3450
3446
|
if (t == null)
|
|
3451
3447
|
return;
|
|
3452
3448
|
if (t in e)
|
|
@@ -3467,36 +3463,36 @@ function Un(e, t) {
|
|
|
3467
3463
|
n = void 0;
|
|
3468
3464
|
return n;
|
|
3469
3465
|
}
|
|
3470
|
-
const
|
|
3466
|
+
const D = {}, Un = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), zt = (e, t) => {
|
|
3471
3467
|
if (t == null)
|
|
3472
3468
|
return;
|
|
3473
|
-
if (t in
|
|
3474
|
-
return
|
|
3475
|
-
const r =
|
|
3469
|
+
if (t in D && e in D[t])
|
|
3470
|
+
return D[t][e];
|
|
3471
|
+
const r = Te(t);
|
|
3476
3472
|
for (let n = 0; n < r.length; n++) {
|
|
3477
|
-
const i = r[n], s =
|
|
3473
|
+
const i = r[n], s = Dn(i, e);
|
|
3478
3474
|
if (s)
|
|
3479
|
-
return
|
|
3475
|
+
return Un(e, t, s);
|
|
3480
3476
|
}
|
|
3481
3477
|
};
|
|
3482
3478
|
let Ze;
|
|
3483
|
-
const
|
|
3484
|
-
function
|
|
3479
|
+
const he = xe({});
|
|
3480
|
+
function Gn(e) {
|
|
3485
3481
|
return Ze[e] || null;
|
|
3486
3482
|
}
|
|
3487
3483
|
function Wt(e) {
|
|
3488
3484
|
return e in Ze;
|
|
3489
3485
|
}
|
|
3490
|
-
function
|
|
3486
|
+
function Dn(e, t) {
|
|
3491
3487
|
if (!Wt(e))
|
|
3492
3488
|
return null;
|
|
3493
|
-
const r =
|
|
3494
|
-
return
|
|
3489
|
+
const r = Gn(e);
|
|
3490
|
+
return Rn(r, t);
|
|
3495
3491
|
}
|
|
3496
|
-
function
|
|
3492
|
+
function Fn(e) {
|
|
3497
3493
|
if (e == null)
|
|
3498
3494
|
return;
|
|
3499
|
-
const t =
|
|
3495
|
+
const t = Te(e);
|
|
3500
3496
|
for (let r = 0; r < t.length; r++) {
|
|
3501
3497
|
const n = t[r];
|
|
3502
3498
|
if (Wt(n))
|
|
@@ -3504,55 +3500,55 @@ function jn(e) {
|
|
|
3504
3500
|
}
|
|
3505
3501
|
}
|
|
3506
3502
|
function Zt(e, ...t) {
|
|
3507
|
-
delete
|
|
3503
|
+
delete D[e], he.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
|
|
3508
3504
|
}
|
|
3509
|
-
|
|
3510
|
-
[
|
|
3505
|
+
ee(
|
|
3506
|
+
[he],
|
|
3511
3507
|
([e]) => Object.keys(e)
|
|
3512
3508
|
);
|
|
3513
|
-
|
|
3514
|
-
const
|
|
3515
|
-
function
|
|
3516
|
-
|
|
3509
|
+
he.subscribe((e) => Ze = e);
|
|
3510
|
+
const de = {};
|
|
3511
|
+
function jn(e, t) {
|
|
3512
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3517
3513
|
}
|
|
3518
3514
|
function Qt(e) {
|
|
3519
|
-
return
|
|
3515
|
+
return de[e];
|
|
3520
3516
|
}
|
|
3521
|
-
function
|
|
3522
|
-
return
|
|
3517
|
+
function kn(e) {
|
|
3518
|
+
return Te(e).map((t) => {
|
|
3523
3519
|
const r = Qt(t);
|
|
3524
3520
|
return [t, r ? [...r] : []];
|
|
3525
3521
|
}).filter(([, t]) => t.length > 0);
|
|
3526
3522
|
}
|
|
3527
|
-
function
|
|
3528
|
-
return e == null ? !1 :
|
|
3523
|
+
function ke(e) {
|
|
3524
|
+
return e == null ? !1 : Te(e).some(
|
|
3529
3525
|
(t) => {
|
|
3530
3526
|
var r;
|
|
3531
3527
|
return (r = Qt(t)) == null ? void 0 : r.size;
|
|
3532
3528
|
}
|
|
3533
3529
|
);
|
|
3534
3530
|
}
|
|
3535
|
-
function
|
|
3531
|
+
function Vn(e, t) {
|
|
3536
3532
|
return Promise.all(
|
|
3537
|
-
t.map((n) => (
|
|
3533
|
+
t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
|
|
3538
3534
|
).then((n) => Zt(e, ...n));
|
|
3539
3535
|
}
|
|
3540
|
-
const
|
|
3536
|
+
const ne = {};
|
|
3541
3537
|
function Jt(e) {
|
|
3542
|
-
if (!
|
|
3543
|
-
return e in
|
|
3544
|
-
const t =
|
|
3545
|
-
return
|
|
3538
|
+
if (!ke(e))
|
|
3539
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3540
|
+
const t = kn(e);
|
|
3541
|
+
return ne[e] = Promise.all(
|
|
3546
3542
|
t.map(
|
|
3547
|
-
([r, n]) =>
|
|
3543
|
+
([r, n]) => Vn(r, n)
|
|
3548
3544
|
)
|
|
3549
3545
|
).then(() => {
|
|
3550
|
-
if (
|
|
3546
|
+
if (ke(e))
|
|
3551
3547
|
return Jt(e);
|
|
3552
|
-
delete
|
|
3553
|
-
}),
|
|
3548
|
+
delete ne[e];
|
|
3549
|
+
}), ne[e];
|
|
3554
3550
|
}
|
|
3555
|
-
const
|
|
3551
|
+
const Xn = {
|
|
3556
3552
|
number: {
|
|
3557
3553
|
scientific: { notation: "scientific" },
|
|
3558
3554
|
engineering: { notation: "engineering" },
|
|
@@ -3581,141 +3577,141 @@ const zn = {
|
|
|
3581
3577
|
timeZoneName: "short"
|
|
3582
3578
|
}
|
|
3583
3579
|
}
|
|
3584
|
-
},
|
|
3580
|
+
}, zn = {
|
|
3585
3581
|
fallbackLocale: null,
|
|
3586
3582
|
loadingDelay: 200,
|
|
3587
|
-
formats:
|
|
3583
|
+
formats: Xn,
|
|
3588
3584
|
warnOnMissingMessages: !0,
|
|
3589
3585
|
handleMissingMessage: void 0,
|
|
3590
3586
|
ignoreTag: !0
|
|
3591
|
-
},
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3587
|
+
}, Wn = zn;
|
|
3588
|
+
function Y() {
|
|
3589
|
+
return Wn;
|
|
3594
3590
|
}
|
|
3595
|
-
const
|
|
3596
|
-
var
|
|
3591
|
+
const Ne = xe(!1);
|
|
3592
|
+
var Zn = Object.defineProperty, Qn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
|
|
3597
3593
|
for (var r in t || (t = {}))
|
|
3598
|
-
|
|
3594
|
+
qn.call(t, r) && pt(e, r, t[r]);
|
|
3599
3595
|
if (mt)
|
|
3600
3596
|
for (var r of mt(t))
|
|
3601
|
-
|
|
3597
|
+
Yn.call(t, r) && pt(e, r, t[r]);
|
|
3602
3598
|
return e;
|
|
3603
|
-
},
|
|
3604
|
-
let
|
|
3605
|
-
const
|
|
3599
|
+
}, ei = (e, t) => Qn(e, Jn(t));
|
|
3600
|
+
let Ve;
|
|
3601
|
+
const ye = xe(null);
|
|
3606
3602
|
function dt(e) {
|
|
3607
3603
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3608
3604
|
}
|
|
3609
|
-
function
|
|
3605
|
+
function Te(e, t = Y().fallbackLocale) {
|
|
3610
3606
|
const r = dt(e);
|
|
3611
3607
|
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3612
3608
|
}
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3609
|
+
function V() {
|
|
3610
|
+
return Ve != null ? Ve : void 0;
|
|
3615
3611
|
}
|
|
3616
|
-
|
|
3617
|
-
|
|
3612
|
+
ye.subscribe((e) => {
|
|
3613
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3618
3614
|
});
|
|
3619
|
-
const
|
|
3620
|
-
if (e &&
|
|
3621
|
-
const { loadingDelay: t } =
|
|
3615
|
+
const ti = (e) => {
|
|
3616
|
+
if (e && Fn(e) && ke(e)) {
|
|
3617
|
+
const { loadingDelay: t } = Y();
|
|
3622
3618
|
let r;
|
|
3623
|
-
return typeof window != "undefined" &&
|
|
3624
|
-
() =>
|
|
3619
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3620
|
+
() => Ne.set(!0),
|
|
3625
3621
|
t
|
|
3626
|
-
) :
|
|
3627
|
-
|
|
3622
|
+
) : Ne.set(!0), Jt(e).then(() => {
|
|
3623
|
+
ye.set(e);
|
|
3628
3624
|
}).finally(() => {
|
|
3629
|
-
clearTimeout(r),
|
|
3625
|
+
clearTimeout(r), Ne.set(!1);
|
|
3630
3626
|
});
|
|
3631
3627
|
}
|
|
3632
|
-
return
|
|
3633
|
-
},
|
|
3634
|
-
set:
|
|
3635
|
-
}),
|
|
3628
|
+
return ye.set(e);
|
|
3629
|
+
}, te = ei(Kn({}, ye), {
|
|
3630
|
+
set: ti
|
|
3631
|
+
}), He = (e) => {
|
|
3636
3632
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3637
3633
|
return (n) => {
|
|
3638
3634
|
const i = JSON.stringify(n);
|
|
3639
3635
|
return i in t ? t[i] : t[i] = e(n);
|
|
3640
3636
|
};
|
|
3641
3637
|
};
|
|
3642
|
-
var
|
|
3638
|
+
var ri = Object.defineProperty, _e = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3643
3639
|
for (var r in t || (t = {}))
|
|
3644
3640
|
qt.call(t, r) && bt(e, r, t[r]);
|
|
3645
|
-
if (
|
|
3646
|
-
for (var r of
|
|
3641
|
+
if (_e)
|
|
3642
|
+
for (var r of _e(t))
|
|
3647
3643
|
Yt.call(t, r) && bt(e, r, t[r]);
|
|
3648
3644
|
return e;
|
|
3649
|
-
},
|
|
3645
|
+
}, re = (e, t) => {
|
|
3650
3646
|
var r = {};
|
|
3651
3647
|
for (var n in e)
|
|
3652
3648
|
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3653
|
-
if (e != null &&
|
|
3654
|
-
for (var n of
|
|
3649
|
+
if (e != null && _e)
|
|
3650
|
+
for (var n of _e(e))
|
|
3655
3651
|
t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
|
|
3656
3652
|
return r;
|
|
3657
3653
|
};
|
|
3658
|
-
const
|
|
3659
|
-
const { formats: r } =
|
|
3654
|
+
const ae = (e, t) => {
|
|
3655
|
+
const { formats: r } = Y();
|
|
3660
3656
|
if (e in r && t in r[e])
|
|
3661
3657
|
return r[e][t];
|
|
3662
3658
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3663
|
-
},
|
|
3659
|
+
}, ni = He(
|
|
3664
3660
|
(e) => {
|
|
3665
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3661
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3666
3662
|
if (r == null)
|
|
3667
3663
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3668
|
-
return n && (i =
|
|
3664
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3669
3665
|
}
|
|
3670
|
-
),
|
|
3666
|
+
), ii = He(
|
|
3671
3667
|
(e) => {
|
|
3672
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3668
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3673
3669
|
if (r == null)
|
|
3674
3670
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3675
|
-
return n ? i =
|
|
3671
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3676
3672
|
}
|
|
3677
|
-
),
|
|
3673
|
+
), si = He(
|
|
3678
3674
|
(e) => {
|
|
3679
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3675
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3680
3676
|
if (r == null)
|
|
3681
3677
|
throw new Error(
|
|
3682
3678
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3683
3679
|
);
|
|
3684
|
-
return n ? i =
|
|
3680
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3685
3681
|
}
|
|
3686
|
-
),
|
|
3682
|
+
), oi = (e = {}) => {
|
|
3687
3683
|
var t = e, {
|
|
3688
|
-
locale: r =
|
|
3689
|
-
} = t, n =
|
|
3684
|
+
locale: r = V()
|
|
3685
|
+
} = t, n = re(t, [
|
|
3690
3686
|
"locale"
|
|
3691
3687
|
]);
|
|
3692
|
-
return
|
|
3693
|
-
},
|
|
3688
|
+
return ni(Qe({ locale: r }, n));
|
|
3689
|
+
}, ai = (e = {}) => {
|
|
3694
3690
|
var t = e, {
|
|
3695
|
-
locale: r =
|
|
3696
|
-
} = t, n =
|
|
3691
|
+
locale: r = V()
|
|
3692
|
+
} = t, n = re(t, [
|
|
3697
3693
|
"locale"
|
|
3698
3694
|
]);
|
|
3699
|
-
return
|
|
3700
|
-
},
|
|
3695
|
+
return ii(Qe({ locale: r }, n));
|
|
3696
|
+
}, ui = (e = {}) => {
|
|
3701
3697
|
var t = e, {
|
|
3702
|
-
locale: r =
|
|
3703
|
-
} = t, n =
|
|
3698
|
+
locale: r = V()
|
|
3699
|
+
} = t, n = re(t, [
|
|
3704
3700
|
"locale"
|
|
3705
3701
|
]);
|
|
3706
|
-
return
|
|
3707
|
-
},
|
|
3702
|
+
return si(Qe({ locale: r }, n));
|
|
3703
|
+
}, hi = He(
|
|
3708
3704
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3709
|
-
(e, t =
|
|
3710
|
-
ignoreTag:
|
|
3705
|
+
(e, t = V()) => new $n(e, t, Y().formats, {
|
|
3706
|
+
ignoreTag: Y().ignoreTag
|
|
3711
3707
|
})
|
|
3712
|
-
),
|
|
3708
|
+
), li = (e, t = {}) => {
|
|
3713
3709
|
var r, n, i, s;
|
|
3714
3710
|
let o = t;
|
|
3715
3711
|
typeof e == "object" && (o = e, e = o.id);
|
|
3716
3712
|
const {
|
|
3717
3713
|
values: u,
|
|
3718
|
-
locale: h =
|
|
3714
|
+
locale: h = V(),
|
|
3719
3715
|
default: a
|
|
3720
3716
|
} = o;
|
|
3721
3717
|
if (h == null)
|
|
@@ -3724,7 +3720,7 @@ const ue = (e, t) => {
|
|
|
3724
3720
|
);
|
|
3725
3721
|
let l = zt(e, h);
|
|
3726
3722
|
if (!l)
|
|
3727
|
-
l = (s = (i = (n = (r =
|
|
3723
|
+
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3728
3724
|
else if (typeof l != "string")
|
|
3729
3725
|
return console.warn(
|
|
3730
3726
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3733,7 +3729,7 @@ const ue = (e, t) => {
|
|
|
3733
3729
|
return l;
|
|
3734
3730
|
let c = l;
|
|
3735
3731
|
try {
|
|
3736
|
-
c =
|
|
3732
|
+
c = hi(l, h).format(u);
|
|
3737
3733
|
} catch (f) {
|
|
3738
3734
|
f instanceof Error && console.warn(
|
|
3739
3735
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3741,16 +3737,16 @@ const ue = (e, t) => {
|
|
|
3741
3737
|
);
|
|
3742
3738
|
}
|
|
3743
3739
|
return c;
|
|
3744
|
-
},
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3740
|
+
}, fi = (e, t) => ui(t).format(e), ci = (e, t) => ai(t).format(e), gi = (e, t) => oi(t).format(e), mi = (e, t = V()) => zt(e, t), pi = ee([te, he], () => li);
|
|
3741
|
+
ee([te], () => fi);
|
|
3742
|
+
ee([te], () => ci);
|
|
3743
|
+
ee([te], () => gi);
|
|
3744
|
+
ee([te, he], () => mi);
|
|
3749
3745
|
function yt(e, t) {
|
|
3750
3746
|
Zt(e, t);
|
|
3751
3747
|
}
|
|
3752
|
-
function
|
|
3753
|
-
|
|
3748
|
+
function di(e) {
|
|
3749
|
+
te.set(e);
|
|
3754
3750
|
}
|
|
3755
3751
|
const _t = {
|
|
3756
3752
|
en: {
|
|
@@ -3862,13 +3858,13 @@ const _t = {
|
|
|
3862
3858
|
games: "games"
|
|
3863
3859
|
}
|
|
3864
3860
|
};
|
|
3865
|
-
function
|
|
3861
|
+
function bi(e, t) {
|
|
3866
3862
|
if (e) {
|
|
3867
3863
|
const r = document.createElement("style");
|
|
3868
3864
|
r.innerHTML = t, e.appendChild(r);
|
|
3869
3865
|
}
|
|
3870
3866
|
}
|
|
3871
|
-
function
|
|
3867
|
+
function yi(e, t) {
|
|
3872
3868
|
if (!e || !t)
|
|
3873
3869
|
return;
|
|
3874
3870
|
const r = new URL(t);
|
|
@@ -3879,7 +3875,7 @@ function _i(e, t) {
|
|
|
3879
3875
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3880
3876
|
});
|
|
3881
3877
|
}
|
|
3882
|
-
function
|
|
3878
|
+
function _i(e, t, r) {
|
|
3883
3879
|
if (window.emMessageBus) {
|
|
3884
3880
|
const n = document.createElement("style");
|
|
3885
3881
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3890,64 +3886,64 @@ function Ei(e, t, r) {
|
|
|
3890
3886
|
function xi(e) {
|
|
3891
3887
|
ur(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3892
3888
|
}
|
|
3893
|
-
function
|
|
3889
|
+
function xt(e, t, r) {
|
|
3894
3890
|
const n = e.slice();
|
|
3895
3891
|
return n[23] = t[r], n;
|
|
3896
3892
|
}
|
|
3897
|
-
function
|
|
3893
|
+
function Et(e, t, r) {
|
|
3898
3894
|
const n = e.slice();
|
|
3899
3895
|
return n[23] = t[r], n;
|
|
3900
3896
|
}
|
|
3901
|
-
function
|
|
3897
|
+
function Ei(e) {
|
|
3902
3898
|
let t, r, n = (
|
|
3903
3899
|
/*$_*/
|
|
3904
3900
|
e[5]("topCategories") + ""
|
|
3905
3901
|
), i, s, o, u, h = (
|
|
3906
3902
|
/*$_*/
|
|
3907
3903
|
e[5]("otherCategories") + ""
|
|
3908
|
-
), a, l, c =
|
|
3904
|
+
), a, l, c = ce(
|
|
3909
3905
|
/*topCategories*/
|
|
3910
3906
|
e[3]
|
|
3911
3907
|
), f = [];
|
|
3912
3908
|
for (let g = 0; g < c.length; g += 1)
|
|
3913
|
-
f[g] = vt(
|
|
3914
|
-
let p =
|
|
3909
|
+
f[g] = vt(Et(e, c, g));
|
|
3910
|
+
let p = ce(
|
|
3915
3911
|
/*otherCategories*/
|
|
3916
3912
|
e[4]
|
|
3917
3913
|
), d = [];
|
|
3918
3914
|
for (let g = 0; g < p.length; g += 1)
|
|
3919
|
-
d[g] = Tt(
|
|
3915
|
+
d[g] = Tt(xt(e, p, g));
|
|
3920
3916
|
return {
|
|
3921
3917
|
c() {
|
|
3922
|
-
t =
|
|
3918
|
+
t = S("div"), r = S("h4"), i = G(n), s = U();
|
|
3923
3919
|
for (let g = 0; g < f.length; g += 1)
|
|
3924
3920
|
f[g].c();
|
|
3925
|
-
o =
|
|
3921
|
+
o = U(), u = S("h4"), a = G(h), l = U();
|
|
3926
3922
|
for (let g = 0; g < d.length; g += 1)
|
|
3927
3923
|
d[g].c();
|
|
3928
3924
|
I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
|
|
3929
3925
|
},
|
|
3930
3926
|
m(g, E) {
|
|
3931
|
-
|
|
3927
|
+
K(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3932
3928
|
for (let m = 0; m < f.length; m += 1)
|
|
3933
3929
|
f[m] && f[m].m(t, null);
|
|
3934
|
-
|
|
3930
|
+
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3935
3931
|
for (let m = 0; m < d.length; m += 1)
|
|
3936
3932
|
d[m] && d[m].m(t, null);
|
|
3937
3933
|
},
|
|
3938
3934
|
p(g, E) {
|
|
3939
3935
|
if (E & /*$_*/
|
|
3940
3936
|
32 && n !== (n = /*$_*/
|
|
3941
|
-
g[5]("topCategories") + "") &&
|
|
3937
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3942
3938
|
105) {
|
|
3943
|
-
c =
|
|
3939
|
+
c = ce(
|
|
3944
3940
|
/*topCategories*/
|
|
3945
3941
|
g[3]
|
|
3946
3942
|
);
|
|
3947
3943
|
let m;
|
|
3948
3944
|
for (m = 0; m < c.length; m += 1) {
|
|
3949
|
-
const
|
|
3950
|
-
f[m] ? f[m].p(
|
|
3945
|
+
const H = Et(g, c, m);
|
|
3946
|
+
f[m] ? f[m].p(H, E) : (f[m] = vt(H), f[m].c(), f[m].m(t, o));
|
|
3951
3947
|
}
|
|
3952
3948
|
for (; m < f.length; m += 1)
|
|
3953
3949
|
f[m].d(1);
|
|
@@ -3955,16 +3951,16 @@ function vi(e) {
|
|
|
3955
3951
|
}
|
|
3956
3952
|
if (E & /*$_*/
|
|
3957
3953
|
32 && h !== (h = /*$_*/
|
|
3958
|
-
g[5]("otherCategories") + "") &&
|
|
3954
|
+
g[5]("otherCategories") + "") && F(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3959
3955
|
113) {
|
|
3960
|
-
p =
|
|
3956
|
+
p = ce(
|
|
3961
3957
|
/*otherCategories*/
|
|
3962
3958
|
g[4]
|
|
3963
3959
|
);
|
|
3964
3960
|
let m;
|
|
3965
3961
|
for (m = 0; m < p.length; m += 1) {
|
|
3966
|
-
const
|
|
3967
|
-
d[m] ? d[m].p(
|
|
3962
|
+
const H = xt(g, p, m);
|
|
3963
|
+
d[m] ? d[m].p(H, E) : (d[m] = Tt(H), d[m].c(), d[m].m(t, null));
|
|
3968
3964
|
}
|
|
3969
3965
|
for (; m < d.length; m += 1)
|
|
3970
3966
|
d[m].d(1);
|
|
@@ -3972,22 +3968,22 @@ function vi(e) {
|
|
|
3972
3968
|
}
|
|
3973
3969
|
},
|
|
3974
3970
|
d(g) {
|
|
3975
|
-
g &&
|
|
3971
|
+
g && k(t), nt(f, g), nt(d, g);
|
|
3976
3972
|
}
|
|
3977
3973
|
};
|
|
3978
3974
|
}
|
|
3979
|
-
function
|
|
3975
|
+
function vi(e) {
|
|
3980
3976
|
let t;
|
|
3981
3977
|
return {
|
|
3982
3978
|
c() {
|
|
3983
|
-
t =
|
|
3979
|
+
t = S("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
|
|
3984
3980
|
},
|
|
3985
3981
|
m(r, n) {
|
|
3986
|
-
|
|
3982
|
+
K(r, t, n);
|
|
3987
3983
|
},
|
|
3988
3984
|
p: L,
|
|
3989
3985
|
d(r) {
|
|
3990
|
-
r &&
|
|
3986
|
+
r && k(t);
|
|
3991
3987
|
}
|
|
3992
3988
|
};
|
|
3993
3989
|
}
|
|
@@ -4001,8 +3997,8 @@ function vt(e) {
|
|
|
4001
3997
|
), p, d, g = (
|
|
4002
3998
|
/*$_*/
|
|
4003
3999
|
e[5]("games") + ""
|
|
4004
|
-
), E, m,
|
|
4005
|
-
function
|
|
4000
|
+
), E, m, H, A;
|
|
4001
|
+
function O() {
|
|
4006
4002
|
return (
|
|
4007
4003
|
/*click_handler*/
|
|
4008
4004
|
e[15](
|
|
@@ -4013,33 +4009,33 @@ function vt(e) {
|
|
|
4013
4009
|
}
|
|
4014
4010
|
return {
|
|
4015
4011
|
c() {
|
|
4016
|
-
t =
|
|
4012
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), p = G(f), d = U(), E = G(g), be(r.src, n = /*category*/
|
|
4017
4013
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4018
4014
|
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
|
|
4019
4015
|
(e[0] === /*category*/
|
|
4020
4016
|
e[23].id ? "Active" : ""));
|
|
4021
4017
|
},
|
|
4022
|
-
m(
|
|
4023
|
-
|
|
4018
|
+
m(B, C) {
|
|
4019
|
+
K(B, t, C), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, E), H || (A = Bt(t, "click", O), H = !0);
|
|
4024
4020
|
},
|
|
4025
|
-
p(
|
|
4026
|
-
e =
|
|
4027
|
-
8 && !
|
|
4028
|
-
e[23].icon) && R(r, "src", n),
|
|
4021
|
+
p(B, C) {
|
|
4022
|
+
e = B, C & /*topCategories*/
|
|
4023
|
+
8 && !be(r.src, n = /*category*/
|
|
4024
|
+
e[23].icon) && R(r, "src", n), C & /*topCategories*/
|
|
4029
4025
|
8 && i !== (i = /*category*/
|
|
4030
|
-
e[23].name) && R(r, "alt", i),
|
|
4026
|
+
e[23].name) && R(r, "alt", i), C & /*topCategories*/
|
|
4031
4027
|
8 && h !== (h = /*category*/
|
|
4032
|
-
e[23].name + "") &&
|
|
4028
|
+
e[23].name + "") && F(a, h), C & /*topCategories*/
|
|
4033
4029
|
8 && f !== (f = /*category*/
|
|
4034
|
-
e[23].games.count + "") &&
|
|
4030
|
+
e[23].games.count + "") && F(p, f), C & /*$_*/
|
|
4035
4031
|
32 && g !== (g = /*$_*/
|
|
4036
|
-
e[5]("games") + "") &&
|
|
4032
|
+
e[5]("games") + "") && F(E, g), C & /*activecategory, topCategories*/
|
|
4037
4033
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4038
4034
|
(e[0] === /*category*/
|
|
4039
4035
|
e[23].id ? "Active" : "")) && I(t, "class", m);
|
|
4040
4036
|
},
|
|
4041
|
-
d(
|
|
4042
|
-
|
|
4037
|
+
d(B) {
|
|
4038
|
+
B && k(t), H = !1, A();
|
|
4043
4039
|
}
|
|
4044
4040
|
};
|
|
4045
4041
|
}
|
|
@@ -4053,8 +4049,8 @@ function Tt(e) {
|
|
|
4053
4049
|
), p, d, g = (
|
|
4054
4050
|
/*$_*/
|
|
4055
4051
|
e[5]("games") + ""
|
|
4056
|
-
), E, m,
|
|
4057
|
-
function
|
|
4052
|
+
), E, m, H, A, O;
|
|
4053
|
+
function B() {
|
|
4058
4054
|
return (
|
|
4059
4055
|
/*click_handler_1*/
|
|
4060
4056
|
e[16](
|
|
@@ -4065,51 +4061,51 @@ function Tt(e) {
|
|
|
4065
4061
|
}
|
|
4066
4062
|
return {
|
|
4067
4063
|
c() {
|
|
4068
|
-
t =
|
|
4064
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), p = G(f), d = U(), E = G(g), m = U(), be(r.src, n = /*category*/
|
|
4069
4065
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4070
|
-
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class",
|
|
4066
|
+
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", H = "Category " + /*activecategory*/
|
|
4071
4067
|
(e[0] === /*category*/
|
|
4072
4068
|
e[23].id ? "Active" : ""));
|
|
4073
4069
|
},
|
|
4074
|
-
m(
|
|
4075
|
-
|
|
4070
|
+
m(C, P) {
|
|
4071
|
+
K(C, t, P), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, E), v(t, m), A || (O = Bt(t, "click", B), A = !0);
|
|
4076
4072
|
},
|
|
4077
|
-
p(
|
|
4078
|
-
e =
|
|
4079
|
-
16 && !
|
|
4073
|
+
p(C, P) {
|
|
4074
|
+
e = C, P & /*otherCategories*/
|
|
4075
|
+
16 && !be(r.src, n = /*category*/
|
|
4080
4076
|
e[23].icon) && R(r, "src", n), P & /*otherCategories*/
|
|
4081
4077
|
16 && i !== (i = /*category*/
|
|
4082
4078
|
e[23].name) && R(r, "alt", i), P & /*otherCategories*/
|
|
4083
4079
|
16 && h !== (h = /*category*/
|
|
4084
|
-
e[23].name + "") &&
|
|
4080
|
+
e[23].name + "") && F(a, h), P & /*otherCategories*/
|
|
4085
4081
|
16 && f !== (f = /*category*/
|
|
4086
|
-
e[23].games.count + "") &&
|
|
4082
|
+
e[23].games.count + "") && F(p, f), P & /*$_*/
|
|
4087
4083
|
32 && g !== (g = /*$_*/
|
|
4088
|
-
e[5]("games") + "") &&
|
|
4089
|
-
17 &&
|
|
4084
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4085
|
+
17 && H !== (H = "Category " + /*activecategory*/
|
|
4090
4086
|
(e[0] === /*category*/
|
|
4091
|
-
e[23].id ? "Active" : "")) && I(t, "class",
|
|
4087
|
+
e[23].id ? "Active" : "")) && I(t, "class", H);
|
|
4092
4088
|
},
|
|
4093
|
-
d(
|
|
4094
|
-
|
|
4089
|
+
d(C) {
|
|
4090
|
+
C && k(t), A = !1, O();
|
|
4095
4091
|
}
|
|
4096
4092
|
};
|
|
4097
4093
|
}
|
|
4098
|
-
function
|
|
4094
|
+
function Ti(e) {
|
|
4099
4095
|
let t;
|
|
4100
4096
|
function r(s, o) {
|
|
4101
4097
|
return (
|
|
4102
4098
|
/*isLoading*/
|
|
4103
|
-
s[2] ?
|
|
4099
|
+
s[2] ? vi : Ei
|
|
4104
4100
|
);
|
|
4105
4101
|
}
|
|
4106
4102
|
let n = r(e), i = n(e);
|
|
4107
4103
|
return {
|
|
4108
4104
|
c() {
|
|
4109
|
-
t =
|
|
4105
|
+
t = S("div"), i.c();
|
|
4110
4106
|
},
|
|
4111
4107
|
m(s, o) {
|
|
4112
|
-
|
|
4108
|
+
K(s, t, o), i.m(t, null), e[17](t);
|
|
4113
4109
|
},
|
|
4114
4110
|
p(s, [o]) {
|
|
4115
4111
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4117,50 +4113,50 @@ function Ci(e) {
|
|
|
4117
4113
|
i: L,
|
|
4118
4114
|
o: L,
|
|
4119
4115
|
d(s) {
|
|
4120
|
-
s &&
|
|
4116
|
+
s && k(t), i.d(), e[17](null);
|
|
4121
4117
|
}
|
|
4122
4118
|
};
|
|
4123
4119
|
}
|
|
4124
4120
|
function Hi(e, t, r) {
|
|
4125
4121
|
let n;
|
|
4126
|
-
ar(e,
|
|
4122
|
+
ar(e, pi, (b) => r(5, n = b));
|
|
4127
4123
|
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4128
4124
|
const g = [];
|
|
4129
4125
|
let E = [], m = [];
|
|
4130
4126
|
Object.keys(_t).forEach((b) => {
|
|
4131
4127
|
yt(b, _t[b]);
|
|
4132
4128
|
});
|
|
4133
|
-
const
|
|
4129
|
+
const H = () => {
|
|
4134
4130
|
fetch(c).then(($) => $.json()).then(($) => {
|
|
4135
|
-
Object.keys($).forEach((
|
|
4136
|
-
yt(
|
|
4131
|
+
Object.keys($).forEach((le) => {
|
|
4132
|
+
yt(le, $[le]);
|
|
4137
4133
|
});
|
|
4138
4134
|
}).catch(($) => {
|
|
4139
4135
|
console.log($);
|
|
4140
4136
|
});
|
|
4141
|
-
},
|
|
4137
|
+
}, A = () => {
|
|
4142
4138
|
r(2, d = !0);
|
|
4143
4139
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4144
4140
|
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4145
4141
|
r(2, d = !1);
|
|
4146
|
-
const
|
|
4142
|
+
const le = h.split(",").map((j) => j.trim());
|
|
4147
4143
|
g.push(...$.items);
|
|
4148
|
-
const Je = g.filter((
|
|
4144
|
+
const Je = g.filter((j) => !le.some((er) => {
|
|
4149
4145
|
var qe;
|
|
4150
|
-
return ((qe =
|
|
4146
|
+
return ((qe = j.flags) == null ? void 0 : qe.indexOf(er)) >= 0;
|
|
4151
4147
|
}));
|
|
4152
|
-
r(3, E = Je.filter((
|
|
4148
|
+
r(3, E = Je.filter((j) => j.isTopCategory === !0)), r(4, m = Je.filter((j) => j.isTopCategory === !1));
|
|
4153
4149
|
});
|
|
4154
|
-
},
|
|
4150
|
+
}, O = (b) => {
|
|
4155
4151
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4156
|
-
},
|
|
4157
|
-
|
|
4152
|
+
}, B = () => {
|
|
4153
|
+
di(o);
|
|
4158
4154
|
};
|
|
4159
4155
|
mr(() => () => {
|
|
4160
4156
|
});
|
|
4161
|
-
const
|
|
4157
|
+
const C = (b) => O(b.id), P = (b) => O(b.id);
|
|
4162
4158
|
function Kt(b) {
|
|
4163
|
-
|
|
4159
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4164
4160
|
p = b, r(1, p);
|
|
4165
4161
|
});
|
|
4166
4162
|
}
|
|
@@ -4168,12 +4164,12 @@ function Hi(e, t, r) {
|
|
|
4168
4164
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4169
4165
|
}, e.$$.update = () => {
|
|
4170
4166
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4171
|
-
384 && i && s &&
|
|
4172
|
-
8192 && c &&
|
|
4173
|
-
512 && o &&
|
|
4174
|
-
2050 && a && p &&
|
|
4175
|
-
4098 && l && p &&
|
|
4176
|
-
16386 && f && p &&
|
|
4167
|
+
384 && i && s && A(), e.$$.dirty & /*translationurl*/
|
|
4168
|
+
8192 && c && H(), e.$$.dirty & /*lang*/
|
|
4169
|
+
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4170
|
+
2050 && a && p && bi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4171
|
+
4098 && l && p && yi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4172
|
+
16386 && f && p && _i(p, `${f}.Style`);
|
|
4177
4173
|
}, [
|
|
4178
4174
|
u,
|
|
4179
4175
|
p,
|
|
@@ -4181,7 +4177,7 @@ function Hi(e, t, r) {
|
|
|
4181
4177
|
E,
|
|
4182
4178
|
m,
|
|
4183
4179
|
n,
|
|
4184
|
-
|
|
4180
|
+
O,
|
|
4185
4181
|
i,
|
|
4186
4182
|
s,
|
|
4187
4183
|
o,
|
|
@@ -4190,19 +4186,19 @@ function Hi(e, t, r) {
|
|
|
4190
4186
|
l,
|
|
4191
4187
|
c,
|
|
4192
4188
|
f,
|
|
4193
|
-
|
|
4189
|
+
C,
|
|
4194
4190
|
P,
|
|
4195
4191
|
Kt
|
|
4196
4192
|
];
|
|
4197
4193
|
}
|
|
4198
|
-
class
|
|
4194
|
+
class Ci extends Ar {
|
|
4199
4195
|
constructor(t) {
|
|
4200
|
-
super(),
|
|
4196
|
+
super(), Hr(
|
|
4201
4197
|
this,
|
|
4202
4198
|
t,
|
|
4203
4199
|
Hi,
|
|
4204
|
-
|
|
4205
|
-
|
|
4200
|
+
Ti,
|
|
4201
|
+
Ct,
|
|
4206
4202
|
{
|
|
4207
4203
|
endpoint: 7,
|
|
4208
4204
|
datasource: 8,
|
|
@@ -4272,7 +4268,7 @@ class Si extends Sr {
|
|
|
4272
4268
|
this.$$set({ mbsource: t }), M();
|
|
4273
4269
|
}
|
|
4274
4270
|
}
|
|
4275
|
-
|
|
4271
|
+
Cr(Ci, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4276
4272
|
export {
|
|
4277
|
-
|
|
4273
|
+
Ci as default
|
|
4278
4274
|
};
|