@everymatrix/casino-categories-providers 1.66.2 → 1.67.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-BW9C1Ea7.js → CasinoCategories-BdJoUcfA.js} +744 -746
- package/components/CasinoCategories-CR0QyxMe.cjs +16 -0
- package/components/{CasinoCategories-COraBb47.js → CasinoCategories-DzFeQu1u.js} +726 -728
- package/components/{CasinoCategoriesProviders-343EVVnl.js → CasinoCategoriesProviders-Cc3ynGka.js} +18 -18
- package/components/{CasinoCategoriesProviders-CC3sRUIE.cjs → CasinoCategoriesProviders-CjE0XNEa.cjs} +1 -1
- package/components/{CasinoCategoriesProviders-DvJCGTEt.js → CasinoCategoriesProviders-De5DE_xJ.js} +16 -16
- package/components/{CasinoProviders-CYMMEzB5.js → CasinoProviders-133h61tT.js} +33 -33
- package/components/{CasinoProviders-CrOov54G.cjs → CasinoProviders-Dqq0jvih.cjs} +1 -1
- package/components/{CasinoProviders-yxmLGZns.js → CasinoProviders-jjpHBcq_.js} +33 -33
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +1 -1
- package/esnext/casino-categories-providers.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-ChRvzjAp.js} +186 -186
- package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-DKsTmN3Z.js} +175 -175
- package/stencil/index-97d17652-qWThG1U9.cjs +1 -0
- package/stencil/{ui-image-CMb1eK44.cjs → ui-image-B2ynFkLT.cjs} +1 -1
- package/stencil/{ui-image-CQQDA5b0.js → ui-image-D7A7MInC.js} +1 -1
- package/stencil/{ui-image-CmwNU-jf.js → ui-image-D_Js9Evk.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-B43lELFk.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-CRQDt62Z.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-DVcK_myk.js} +1 -1
- package/stencil/{ui-image_2-YkYxLKu7.cjs → ui-image_2-CyHaM9Na.cjs} +1 -1
- package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-Df0q0jE8.js} +2 -2
- package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-EP2dwjfi.js} +2 -2
- package/components/CasinoCategories-ZuL2uLcF.cjs +0 -3
- package/stencil/index-97d17652-D5_8Vwfn.cjs +0 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-D_Js9Evk.js";
|
|
2
2
|
function N() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function pt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Ze() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function ae(e) {
|
|
11
|
+
e.forEach(pt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function ke(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function bt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
|
-
let
|
|
20
|
-
function
|
|
21
|
-
return e === t ? !0 : (
|
|
19
|
+
let le;
|
|
20
|
+
function pe(e, t) {
|
|
21
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Zt(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
26
|
function _t(e, ...t) {
|
|
@@ -32,20 +32,20 @@ function _t(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Qt(e, t, r) {
|
|
36
36
|
e.$$.on_destroy.push(_t(t, r));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function v(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function qt(e, t, r) {
|
|
42
|
+
const n = Jt(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
const i = S("style");
|
|
45
|
+
i.id = t, i.textContent = r, Yt(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Jt(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,36 +55,36 @@ function Yt(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function Yt(e, t) {
|
|
59
|
+
return v(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Y(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function j(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Qe(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function S(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function U(e) {
|
|
79
79
|
return document.createTextNode(e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function R() {
|
|
82
|
+
return U(" ");
|
|
83
83
|
}
|
|
84
84
|
function di() {
|
|
85
|
-
return
|
|
85
|
+
return U("");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function yt(e, t, r, n) {
|
|
88
88
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
89
89
|
}
|
|
90
90
|
function L(e, t, r) {
|
|
@@ -94,14 +94,14 @@ function $(e, t, r) {
|
|
|
94
94
|
const n = t.toLowerCase();
|
|
95
95
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : L(e, t, r);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Kt(e) {
|
|
98
98
|
return Array.from(e.childNodes);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function G(e, t) {
|
|
101
101
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
102
102
|
t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function er(e) {
|
|
105
105
|
const t = {};
|
|
106
106
|
return e.childNodes.forEach(
|
|
107
107
|
/** @param {Element} node */
|
|
@@ -110,90 +110,90 @@ function tr(e) {
|
|
|
110
110
|
}
|
|
111
111
|
), t;
|
|
112
112
|
}
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
113
|
+
let ie;
|
|
114
|
+
function ne(e) {
|
|
115
|
+
ie = e;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
if (!
|
|
117
|
+
function tr() {
|
|
118
|
+
if (!ie)
|
|
119
119
|
throw new Error("Function called outside component initialization");
|
|
120
|
-
return
|
|
120
|
+
return ie;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function rr(e) {
|
|
123
|
+
tr().$$.on_mount.push(e);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
let
|
|
127
|
-
const
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
125
|
+
const z = [], Pe = [];
|
|
126
|
+
let W = [];
|
|
127
|
+
const qe = [], nr = /* @__PURE__ */ Promise.resolve();
|
|
128
|
+
let Ne = !1;
|
|
129
|
+
function ir() {
|
|
130
|
+
Ne || (Ne = !0, nr.then(I));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function Le(e) {
|
|
133
|
+
W.push(e);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
let
|
|
135
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
136
|
+
let V = 0;
|
|
137
137
|
function I() {
|
|
138
|
-
if (
|
|
138
|
+
if (V !== 0)
|
|
139
139
|
return;
|
|
140
|
-
const e =
|
|
140
|
+
const e = ie;
|
|
141
141
|
do {
|
|
142
142
|
try {
|
|
143
|
-
for (;
|
|
144
|
-
const t =
|
|
145
|
-
|
|
143
|
+
for (; V < z.length; ) {
|
|
144
|
+
const t = z[V];
|
|
145
|
+
V++, ne(t), sr(t.$$);
|
|
146
146
|
}
|
|
147
147
|
} catch (t) {
|
|
148
|
-
throw
|
|
148
|
+
throw z.length = 0, V = 0, t;
|
|
149
149
|
}
|
|
150
|
-
for (
|
|
151
|
-
|
|
152
|
-
for (let t = 0; t <
|
|
153
|
-
const r =
|
|
154
|
-
|
|
150
|
+
for (ne(null), z.length = 0, V = 0; Pe.length; )
|
|
151
|
+
Pe.pop()();
|
|
152
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
153
|
+
const r = W[t];
|
|
154
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
155
155
|
}
|
|
156
|
-
|
|
157
|
-
} while (
|
|
158
|
-
for (;
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
W.length = 0;
|
|
157
|
+
} while (z.length);
|
|
158
|
+
for (; qe.length; )
|
|
159
|
+
qe.pop()();
|
|
160
|
+
Ne = !1, Ce.clear(), ne(e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function sr(e) {
|
|
163
163
|
if (e.fragment !== null) {
|
|
164
|
-
e.update(),
|
|
164
|
+
e.update(), ae(e.before_update);
|
|
165
165
|
const t = e.dirty;
|
|
166
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
166
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function or(e) {
|
|
170
170
|
const t = [], r = [];
|
|
171
|
-
|
|
171
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
function
|
|
175
|
-
e && e.i && (
|
|
173
|
+
const ar = /* @__PURE__ */ new Set();
|
|
174
|
+
function ur(e, t) {
|
|
175
|
+
e && e.i && (ar.delete(e), e.i(t));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function fe(e) {
|
|
178
178
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function hr(e, t, r) {
|
|
181
181
|
const { fragment: n, after_update: i } = e.$$;
|
|
182
|
-
n && n.m(t, r),
|
|
183
|
-
const s = e.$$.on_mount.map(
|
|
184
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
185
|
-
}), i.forEach(
|
|
182
|
+
n && n.m(t, r), Le(() => {
|
|
183
|
+
const s = e.$$.on_mount.map(pt).filter(ke);
|
|
184
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
185
|
+
}), i.forEach(Le);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function lr(e, t) {
|
|
188
188
|
const r = e.$$;
|
|
189
|
-
r.fragment !== null && (
|
|
189
|
+
r.fragment !== null && (or(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
e.$$.dirty[0] === -1 && (
|
|
191
|
+
function fr(e, t) {
|
|
192
|
+
e.$$.dirty[0] === -1 && (z.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
const l =
|
|
196
|
-
|
|
194
|
+
function cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
195
|
+
const l = ie;
|
|
196
|
+
ne(e);
|
|
197
197
|
const a = e.$$ = {
|
|
198
198
|
fragment: null,
|
|
199
199
|
ctx: [],
|
|
@@ -201,7 +201,7 @@ function gr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
201
201
|
props: s,
|
|
202
202
|
update: N,
|
|
203
203
|
not_equal: i,
|
|
204
|
-
bound:
|
|
204
|
+
bound: Ze(),
|
|
205
205
|
// lifecycle
|
|
206
206
|
on_mount: [],
|
|
207
207
|
on_destroy: [],
|
|
@@ -210,25 +210,25 @@ function gr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
210
210
|
after_update: [],
|
|
211
211
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
212
212
|
// everything else
|
|
213
|
-
callbacks:
|
|
213
|
+
callbacks: Ze(),
|
|
214
214
|
dirty: u,
|
|
215
215
|
skip_bound: !1,
|
|
216
216
|
root: t.target || l.$$.root
|
|
217
217
|
};
|
|
218
218
|
o && o(a.root);
|
|
219
219
|
let h = !1;
|
|
220
|
-
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
221
|
-
const
|
|
222
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] =
|
|
223
|
-
}) : [], a.update(), h = !0,
|
|
220
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
221
|
+
const p = d.length ? d[0] : f;
|
|
222
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p), h && fr(e, c)), f;
|
|
223
|
+
}) : [], a.update(), h = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
224
224
|
if (t.hydrate) {
|
|
225
|
-
const c =
|
|
226
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
225
|
+
const c = Kt(t.target);
|
|
226
|
+
a.fragment && a.fragment.l(c), c.forEach(j);
|
|
227
227
|
} else
|
|
228
228
|
a.fragment && a.fragment.c();
|
|
229
|
-
t.intro &&
|
|
229
|
+
t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor), I();
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
ne(l);
|
|
232
232
|
}
|
|
233
233
|
let xt;
|
|
234
234
|
typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
@@ -273,29 +273,29 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
273
273
|
let s;
|
|
274
274
|
return {
|
|
275
275
|
c: function() {
|
|
276
|
-
s =
|
|
276
|
+
s = S("slot"), i !== "default" && L(s, "name", i);
|
|
277
277
|
},
|
|
278
278
|
/**
|
|
279
279
|
* @param {HTMLElement} target
|
|
280
280
|
* @param {HTMLElement} [anchor]
|
|
281
281
|
*/
|
|
282
282
|
m: function(l, a) {
|
|
283
|
-
|
|
283
|
+
Y(l, s, a);
|
|
284
284
|
},
|
|
285
285
|
d: function(l) {
|
|
286
|
-
l &&
|
|
286
|
+
l && j(s);
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
};
|
|
290
290
|
};
|
|
291
291
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
292
292
|
return;
|
|
293
|
-
const t = {}, r =
|
|
293
|
+
const t = {}, r = er(this);
|
|
294
294
|
for (const i of this.$$s)
|
|
295
295
|
i in r && (t[i] = [e(i)]);
|
|
296
296
|
for (const i of this.attributes) {
|
|
297
297
|
const s = this.$$g_p(i.name);
|
|
298
|
-
s in this.$$d || (this.$$d[s] =
|
|
298
|
+
s in this.$$d || (this.$$d[s] = ge(s, i.value, this.$$p_d, "toProp"));
|
|
299
299
|
}
|
|
300
300
|
for (const i in this.$$p_d)
|
|
301
301
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -313,7 +313,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
313
313
|
this.$$r = !0;
|
|
314
314
|
for (const i in this.$$p_d)
|
|
315
315
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
316
|
-
const s =
|
|
316
|
+
const s = ge(
|
|
317
317
|
i,
|
|
318
318
|
this.$$d[i],
|
|
319
319
|
this.$$p_d,
|
|
@@ -335,7 +335,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
335
335
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
336
336
|
// and setting attributes through setAttribute etc, this is helpful
|
|
337
337
|
attributeChangedCallback(e, t, r) {
|
|
338
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
338
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
339
339
|
}
|
|
340
340
|
disconnectedCallback() {
|
|
341
341
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
348
348
|
) || e;
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
|
-
function
|
|
351
|
+
function ge(e, t, r, n) {
|
|
352
352
|
const i = r[e]?.type;
|
|
353
353
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
354
354
|
return t;
|
|
@@ -377,7 +377,7 @@ function me(e, t, r, n) {
|
|
|
377
377
|
return t;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function gr(e, t, r, n, i, s) {
|
|
381
381
|
let o = class extends xt {
|
|
382
382
|
constructor() {
|
|
383
383
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -394,7 +394,7 @@ function mr(e, t, r, n, i, s) {
|
|
|
394
394
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
395
395
|
},
|
|
396
396
|
set(l) {
|
|
397
|
-
l =
|
|
397
|
+
l = ge(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
400
|
}), n.forEach((u) => {
|
|
@@ -406,7 +406,7 @@ function mr(e, t, r, n, i, s) {
|
|
|
406
406
|
}), e.element = /** @type {any} */
|
|
407
407
|
o, o;
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class mr {
|
|
410
410
|
/**
|
|
411
411
|
* ### PRIVATE API
|
|
412
412
|
*
|
|
@@ -425,7 +425,7 @@ class pr {
|
|
|
425
425
|
$$set = void 0;
|
|
426
426
|
/** @returns {void} */
|
|
427
427
|
$destroy() {
|
|
428
|
-
|
|
428
|
+
lr(this, 1), this.$destroy = N;
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
431
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -434,7 +434,7 @@ class pr {
|
|
|
434
434
|
* @returns {() => void}
|
|
435
435
|
*/
|
|
436
436
|
$on(t, r) {
|
|
437
|
-
if (!
|
|
437
|
+
if (!ke(r))
|
|
438
438
|
return N;
|
|
439
439
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
440
440
|
return n.push(r), () => {
|
|
@@ -447,29 +447,29 @@ class pr {
|
|
|
447
447
|
* @returns {void}
|
|
448
448
|
*/
|
|
449
449
|
$set(t) {
|
|
450
|
-
this.$$set && !
|
|
450
|
+
this.$$set && !Zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
const dr = "4";
|
|
454
454
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
|
|
455
|
-
const
|
|
456
|
-
function
|
|
455
|
+
const X = [];
|
|
456
|
+
function pr(e, t) {
|
|
457
457
|
return {
|
|
458
|
-
subscribe:
|
|
458
|
+
subscribe: ye(e, t).subscribe
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function ye(e, t = N) {
|
|
462
462
|
let r;
|
|
463
463
|
const n = /* @__PURE__ */ new Set();
|
|
464
464
|
function i(u) {
|
|
465
|
-
if (
|
|
466
|
-
const l = !
|
|
465
|
+
if (bt(e, u) && (e = u, r)) {
|
|
466
|
+
const l = !X.length;
|
|
467
467
|
for (const a of n)
|
|
468
|
-
a[1](),
|
|
468
|
+
a[1](), X.push(a, e);
|
|
469
469
|
if (l) {
|
|
470
|
-
for (let a = 0; a <
|
|
471
|
-
|
|
472
|
-
|
|
470
|
+
for (let a = 0; a < X.length; a += 2)
|
|
471
|
+
X[a][0](X[a + 1]);
|
|
472
|
+
X.length = 0;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
}
|
|
@@ -484,12 +484,12 @@ function xe(e, t = N) {
|
|
|
484
484
|
}
|
|
485
485
|
return { set: i, update: s, subscribe: o };
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function K(e, t, r) {
|
|
488
488
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
489
489
|
if (!i.every(Boolean))
|
|
490
490
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
491
491
|
const s = t.length < 2;
|
|
492
|
-
return
|
|
492
|
+
return pr(r, (o, u) => {
|
|
493
493
|
let l = !1;
|
|
494
494
|
const a = [];
|
|
495
495
|
let h = 0, c = N;
|
|
@@ -497,11 +497,11 @@ function ee(e, t, r) {
|
|
|
497
497
|
if (h)
|
|
498
498
|
return;
|
|
499
499
|
c();
|
|
500
|
-
const
|
|
501
|
-
s ? o(
|
|
502
|
-
},
|
|
503
|
-
(
|
|
504
|
-
|
|
500
|
+
const p = t(n ? a[0] : a, o, u);
|
|
501
|
+
s ? o(p) : c = ke(p) ? p : N;
|
|
502
|
+
}, d = i.map(
|
|
503
|
+
(p, g) => _t(
|
|
504
|
+
p,
|
|
505
505
|
(E) => {
|
|
506
506
|
a[g] = E, h &= ~(1 << g), l && f();
|
|
507
507
|
},
|
|
@@ -511,112 +511,126 @@ function ee(e, t, r) {
|
|
|
511
511
|
)
|
|
512
512
|
);
|
|
513
513
|
return l = !0, f(), function() {
|
|
514
|
-
|
|
514
|
+
ae(d), c(), l = !1;
|
|
515
515
|
};
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return e
|
|
518
|
+
function br(e) {
|
|
519
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
520
520
|
}
|
|
521
521
|
var _r = function(t) {
|
|
522
|
-
return
|
|
522
|
+
return yr(t) && !xr(t);
|
|
523
523
|
};
|
|
524
|
-
function
|
|
524
|
+
function yr(e) {
|
|
525
525
|
return !!e && typeof e == "object";
|
|
526
526
|
}
|
|
527
527
|
function xr(e) {
|
|
528
528
|
var t = Object.prototype.toString.call(e);
|
|
529
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
529
|
+
return t === "[object RegExp]" || t === "[object Date]" || Tr(e);
|
|
530
530
|
}
|
|
531
|
-
var
|
|
532
|
-
function
|
|
533
|
-
return e.$$typeof ===
|
|
531
|
+
var Er = typeof Symbol == "function" && Symbol.for, vr = Er ? Symbol.for("react.element") : 60103;
|
|
532
|
+
function Tr(e) {
|
|
533
|
+
return e.$$typeof === vr;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Cr(e) {
|
|
536
536
|
return Array.isArray(e) ? [] : {};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
538
|
+
function se(e, t) {
|
|
539
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Cr(e), e, t) : e;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Hr(e, t, r) {
|
|
542
542
|
return e.concat(t).map(function(n) {
|
|
543
|
-
return
|
|
543
|
+
return se(n, r);
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
546
|
function Ar(e, t) {
|
|
547
547
|
if (!t.customMerge)
|
|
548
|
-
return
|
|
548
|
+
return Z;
|
|
549
549
|
var r = t.customMerge(e);
|
|
550
|
-
return typeof r == "function" ? r :
|
|
550
|
+
return typeof r == "function" ? r : Z;
|
|
551
551
|
}
|
|
552
552
|
function Br(e) {
|
|
553
553
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
554
554
|
return Object.propertyIsEnumerable.call(e, t);
|
|
555
555
|
}) : [];
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Je(e) {
|
|
558
558
|
return Object.keys(e).concat(Br(e));
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Et(e, t) {
|
|
561
561
|
try {
|
|
562
562
|
return t in e;
|
|
563
563
|
} catch {
|
|
564
564
|
return !1;
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
return
|
|
567
|
+
function Sr(e, t) {
|
|
568
|
+
return Et(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Or(e, t, r) {
|
|
571
571
|
var n = {};
|
|
572
|
-
return r.isMergeableObject(e) &&
|
|
573
|
-
n[i] =
|
|
574
|
-
}),
|
|
575
|
-
|
|
572
|
+
return r.isMergeableObject(e) && Je(e).forEach(function(i) {
|
|
573
|
+
n[i] = se(e[i], r);
|
|
574
|
+
}), Je(t).forEach(function(i) {
|
|
575
|
+
Sr(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ar(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
576
576
|
}), n;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
578
|
+
function Z(e, t, r) {
|
|
579
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || _r, r.cloneUnlessOtherwiseSpecified = se;
|
|
580
580
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
581
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
581
|
+
return s ? n ? r.arrayMerge(e, t, r) : Or(e, t, r) : se(t, r);
|
|
582
582
|
}
|
|
583
|
-
|
|
583
|
+
Z.all = function(t, r) {
|
|
584
584
|
if (!Array.isArray(t))
|
|
585
585
|
throw new Error("first argument should be an array");
|
|
586
586
|
return t.reduce(function(n, i) {
|
|
587
|
-
return
|
|
587
|
+
return Z(n, i, r);
|
|
588
588
|
}, {});
|
|
589
589
|
};
|
|
590
|
-
var
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
|
|
590
|
+
var wr = Z, Pr = wr;
|
|
591
|
+
const Nr = /* @__PURE__ */ br(Pr);
|
|
592
|
+
/*! *****************************************************************************
|
|
593
|
+
Copyright (c) Microsoft Corporation.
|
|
594
|
+
|
|
595
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
596
|
+
purpose with or without fee is hereby granted.
|
|
597
|
+
|
|
598
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
599
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
600
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
601
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
602
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
603
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
604
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
605
|
+
***************************************************************************** */
|
|
606
|
+
var Ie = function(e, t) {
|
|
607
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
594
608
|
r.__proto__ = n;
|
|
595
609
|
} || function(r, n) {
|
|
596
610
|
for (var i in n)
|
|
597
611
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
598
|
-
},
|
|
612
|
+
}, Ie(e, t);
|
|
599
613
|
};
|
|
600
|
-
function
|
|
614
|
+
function xe(e, t) {
|
|
601
615
|
if (typeof t != "function" && t !== null)
|
|
602
616
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
603
|
-
|
|
617
|
+
Ie(e, t);
|
|
604
618
|
function r() {
|
|
605
619
|
this.constructor = e;
|
|
606
620
|
}
|
|
607
621
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
608
622
|
}
|
|
609
|
-
var
|
|
610
|
-
return
|
|
623
|
+
var x = function() {
|
|
624
|
+
return x = Object.assign || function(t) {
|
|
611
625
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
612
626
|
r = arguments[n];
|
|
613
627
|
for (var s in r)
|
|
614
628
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
615
629
|
}
|
|
616
630
|
return t;
|
|
617
|
-
},
|
|
631
|
+
}, x.apply(this, arguments);
|
|
618
632
|
};
|
|
619
|
-
function
|
|
633
|
+
function Lr(e, t) {
|
|
620
634
|
var r = {};
|
|
621
635
|
for (var n in e)
|
|
622
636
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -625,43 +639,46 @@ function Ir(e, t) {
|
|
|
625
639
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
626
640
|
return r;
|
|
627
641
|
}
|
|
628
|
-
function
|
|
629
|
-
if (
|
|
642
|
+
function He(e, t, r) {
|
|
643
|
+
if (arguments.length === 2)
|
|
630
644
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
631
645
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
632
|
-
return e.concat(s ||
|
|
646
|
+
return e.concat(s || t);
|
|
633
647
|
}
|
|
634
|
-
function
|
|
635
|
-
var r = t && t.cache ? t.cache :
|
|
648
|
+
function Ae(e, t) {
|
|
649
|
+
var r = t && t.cache ? t.cache : Gr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Mr;
|
|
636
650
|
return i(e, {
|
|
637
651
|
cache: r,
|
|
638
652
|
serializer: n
|
|
639
653
|
});
|
|
640
654
|
}
|
|
641
|
-
function
|
|
655
|
+
function Ir(e) {
|
|
642
656
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
643
657
|
}
|
|
644
|
-
function
|
|
645
|
-
var i =
|
|
658
|
+
function vt(e, t, r, n) {
|
|
659
|
+
var i = Ir(n) ? n : r(n), s = t.get(i);
|
|
646
660
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
647
661
|
}
|
|
648
662
|
function Tt(e, t, r) {
|
|
649
663
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
650
664
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
651
665
|
}
|
|
652
|
-
function
|
|
666
|
+
function Ve(e, t, r, n, i) {
|
|
653
667
|
return r.bind(t, e, n, i);
|
|
654
668
|
}
|
|
655
|
-
function
|
|
656
|
-
var r = e.length === 1 ?
|
|
657
|
-
return
|
|
669
|
+
function Mr(e, t) {
|
|
670
|
+
var r = e.length === 1 ? vt : Tt;
|
|
671
|
+
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
658
672
|
}
|
|
659
|
-
function
|
|
660
|
-
return
|
|
673
|
+
function $r(e, t) {
|
|
674
|
+
return Ve(e, this, Tt, t.cache.create(), t.serializer);
|
|
661
675
|
}
|
|
662
|
-
|
|
676
|
+
function Rr(e, t) {
|
|
677
|
+
return Ve(e, this, vt, t.cache.create(), t.serializer);
|
|
678
|
+
}
|
|
679
|
+
var Ur = function() {
|
|
663
680
|
return JSON.stringify(arguments);
|
|
664
|
-
},
|
|
681
|
+
}, Dr = (
|
|
665
682
|
/** @class */
|
|
666
683
|
function() {
|
|
667
684
|
function e() {
|
|
@@ -673,71 +690,62 @@ var Dr = function() {
|
|
|
673
690
|
this.cache[t] = r;
|
|
674
691
|
}, e;
|
|
675
692
|
}()
|
|
676
|
-
),
|
|
693
|
+
), Gr = {
|
|
677
694
|
create: function() {
|
|
678
|
-
return new
|
|
695
|
+
return new Dr();
|
|
679
696
|
}
|
|
680
|
-
},
|
|
681
|
-
variadic:
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
685
|
-
r = arguments[n];
|
|
686
|
-
for (var s in r)
|
|
687
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
688
|
-
}
|
|
689
|
-
return t;
|
|
690
|
-
}, ye.apply(this, arguments);
|
|
691
|
-
};
|
|
692
|
-
var y;
|
|
697
|
+
}, Be = {
|
|
698
|
+
variadic: $r,
|
|
699
|
+
monadic: Rr
|
|
700
|
+
}, _;
|
|
693
701
|
(function(e) {
|
|
694
702
|
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";
|
|
695
|
-
})(
|
|
696
|
-
var
|
|
703
|
+
})(_ || (_ = {}));
|
|
704
|
+
var T;
|
|
697
705
|
(function(e) {
|
|
698
706
|
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";
|
|
699
|
-
})(
|
|
700
|
-
var
|
|
707
|
+
})(T || (T = {}));
|
|
708
|
+
var Q;
|
|
701
709
|
(function(e) {
|
|
702
710
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
703
|
-
})(
|
|
704
|
-
function
|
|
705
|
-
return e.type ===
|
|
711
|
+
})(Q || (Q = {}));
|
|
712
|
+
function Ye(e) {
|
|
713
|
+
return e.type === T.literal;
|
|
706
714
|
}
|
|
707
|
-
function
|
|
708
|
-
return e.type ===
|
|
715
|
+
function Fr(e) {
|
|
716
|
+
return e.type === T.argument;
|
|
709
717
|
}
|
|
710
|
-
function
|
|
711
|
-
return e.type ===
|
|
718
|
+
function Ct(e) {
|
|
719
|
+
return e.type === T.number;
|
|
712
720
|
}
|
|
713
|
-
function
|
|
714
|
-
return e.type ===
|
|
721
|
+
function Ht(e) {
|
|
722
|
+
return e.type === T.date;
|
|
715
723
|
}
|
|
716
724
|
function At(e) {
|
|
717
|
-
return e.type ===
|
|
725
|
+
return e.type === T.time;
|
|
718
726
|
}
|
|
719
727
|
function Bt(e) {
|
|
720
|
-
return e.type ===
|
|
728
|
+
return e.type === T.select;
|
|
721
729
|
}
|
|
722
|
-
function
|
|
723
|
-
return e.type ===
|
|
730
|
+
function St(e) {
|
|
731
|
+
return e.type === T.plural;
|
|
724
732
|
}
|
|
725
|
-
function
|
|
726
|
-
return e.type ===
|
|
733
|
+
function jr(e) {
|
|
734
|
+
return e.type === T.pound;
|
|
727
735
|
}
|
|
728
|
-
function
|
|
729
|
-
return e.type ===
|
|
736
|
+
function Ot(e) {
|
|
737
|
+
return e.type === T.tag;
|
|
730
738
|
}
|
|
731
|
-
function
|
|
732
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
739
|
+
function wt(e) {
|
|
740
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
733
741
|
}
|
|
734
|
-
function
|
|
735
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
742
|
+
function Me(e) {
|
|
743
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
736
744
|
}
|
|
737
|
-
var
|
|
738
|
-
function
|
|
745
|
+
var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kr = /(?:[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;
|
|
746
|
+
function Vr(e) {
|
|
739
747
|
var t = {};
|
|
740
|
-
return e.replace(
|
|
748
|
+
return e.replace(kr, function(r) {
|
|
741
749
|
var n = r.length;
|
|
742
750
|
switch (r[0]) {
|
|
743
751
|
case "G":
|
|
@@ -826,21 +834,11 @@ function Xr(e) {
|
|
|
826
834
|
return "";
|
|
827
835
|
}), t;
|
|
828
836
|
}
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
832
|
-
r = arguments[n];
|
|
833
|
-
for (var s in r)
|
|
834
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
835
|
-
}
|
|
836
|
-
return t;
|
|
837
|
-
}, C.apply(this, arguments);
|
|
838
|
-
};
|
|
839
|
-
var zr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
840
|
-
function Wr(e) {
|
|
837
|
+
var Xr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
838
|
+
function zr(e) {
|
|
841
839
|
if (e.length === 0)
|
|
842
840
|
throw new Error("Number skeleton cannot be empty");
|
|
843
|
-
for (var t = e.split(
|
|
841
|
+
for (var t = e.split(Xr).filter(function(f) {
|
|
844
842
|
return f.length > 0;
|
|
845
843
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
846
844
|
var s = i[n], o = s.split("/");
|
|
@@ -855,17 +853,17 @@ function Wr(e) {
|
|
|
855
853
|
}
|
|
856
854
|
return r;
|
|
857
855
|
}
|
|
858
|
-
function
|
|
856
|
+
function Wr(e) {
|
|
859
857
|
return e.replace(/^(.*?)-/, "");
|
|
860
858
|
}
|
|
861
|
-
var
|
|
862
|
-
function
|
|
859
|
+
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Lt = /^(0+)$/;
|
|
860
|
+
function et(e) {
|
|
863
861
|
var t = {};
|
|
864
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
862
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
|
|
865
863
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
866
864
|
}), t;
|
|
867
865
|
}
|
|
868
|
-
function
|
|
866
|
+
function It(e) {
|
|
869
867
|
switch (e) {
|
|
870
868
|
case "sign-auto":
|
|
871
869
|
return {
|
|
@@ -905,7 +903,7 @@ function Mt(e) {
|
|
|
905
903
|
};
|
|
906
904
|
}
|
|
907
905
|
}
|
|
908
|
-
function
|
|
906
|
+
function Qr(e) {
|
|
909
907
|
var t;
|
|
910
908
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
911
909
|
notation: "engineering"
|
|
@@ -913,17 +911,17 @@ function qr(e) {
|
|
|
913
911
|
notation: "scientific"
|
|
914
912
|
}, e = e.slice(1)), t) {
|
|
915
913
|
var r = e.slice(0, 2);
|
|
916
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
914
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Lt.test(e))
|
|
917
915
|
throw new Error("Malformed concise eng/scientific notation");
|
|
918
916
|
t.minimumIntegerDigits = e.length;
|
|
919
917
|
}
|
|
920
918
|
return t;
|
|
921
919
|
}
|
|
922
|
-
function
|
|
923
|
-
var t = {}, r =
|
|
920
|
+
function tt(e) {
|
|
921
|
+
var t = {}, r = It(e);
|
|
924
922
|
return r || t;
|
|
925
923
|
}
|
|
926
|
-
function
|
|
924
|
+
function qr(e) {
|
|
927
925
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
928
926
|
var i = n[r];
|
|
929
927
|
switch (i.stem) {
|
|
@@ -947,7 +945,7 @@ function Jr(e) {
|
|
|
947
945
|
continue;
|
|
948
946
|
case "measure-unit":
|
|
949
947
|
case "unit":
|
|
950
|
-
t.style = "unit", t.unit =
|
|
948
|
+
t.style = "unit", t.unit = Wr(i.options[0]);
|
|
951
949
|
continue;
|
|
952
950
|
case "compact-short":
|
|
953
951
|
case "K":
|
|
@@ -958,13 +956,13 @@ function Jr(e) {
|
|
|
958
956
|
t.notation = "compact", t.compactDisplay = "long";
|
|
959
957
|
continue;
|
|
960
958
|
case "scientific":
|
|
961
|
-
t =
|
|
962
|
-
return
|
|
959
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
960
|
+
return x(x({}, l), tt(a));
|
|
963
961
|
}, {}));
|
|
964
962
|
continue;
|
|
965
963
|
case "engineering":
|
|
966
|
-
t =
|
|
967
|
-
return
|
|
964
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
965
|
+
return x(x({}, l), tt(a));
|
|
968
966
|
}, {}));
|
|
969
967
|
continue;
|
|
970
968
|
case "notation-simple":
|
|
@@ -1009,45 +1007,45 @@ function Jr(e) {
|
|
|
1009
1007
|
case "integer-width":
|
|
1010
1008
|
if (i.options.length > 1)
|
|
1011
1009
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1012
|
-
i.options[0].replace(
|
|
1010
|
+
i.options[0].replace(Zr, function(l, a, h, c, f, d) {
|
|
1013
1011
|
if (a)
|
|
1014
1012
|
t.minimumIntegerDigits = h.length;
|
|
1015
1013
|
else {
|
|
1016
1014
|
if (c && f)
|
|
1017
1015
|
throw new Error("We currently do not support maximum integer digits");
|
|
1018
|
-
if (
|
|
1016
|
+
if (d)
|
|
1019
1017
|
throw new Error("We currently do not support exact integer digits");
|
|
1020
1018
|
}
|
|
1021
1019
|
return "";
|
|
1022
1020
|
});
|
|
1023
1021
|
continue;
|
|
1024
1022
|
}
|
|
1025
|
-
if (
|
|
1023
|
+
if (Lt.test(i.stem)) {
|
|
1026
1024
|
t.minimumIntegerDigits = i.stem.length;
|
|
1027
1025
|
continue;
|
|
1028
1026
|
}
|
|
1029
|
-
if (
|
|
1027
|
+
if (Ke.test(i.stem)) {
|
|
1030
1028
|
if (i.options.length > 1)
|
|
1031
1029
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1032
|
-
i.stem.replace(
|
|
1033
|
-
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1030
|
+
i.stem.replace(Ke, function(l, a, h, c, f, d) {
|
|
1031
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1034
1032
|
});
|
|
1035
1033
|
var s = i.options[0];
|
|
1036
|
-
s === "w" ? t =
|
|
1034
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), et(s)));
|
|
1037
1035
|
continue;
|
|
1038
1036
|
}
|
|
1039
|
-
if (
|
|
1040
|
-
t =
|
|
1037
|
+
if (Nt.test(i.stem)) {
|
|
1038
|
+
t = x(x({}, t), et(i.stem));
|
|
1041
1039
|
continue;
|
|
1042
1040
|
}
|
|
1043
|
-
var o =
|
|
1044
|
-
o && (t =
|
|
1045
|
-
var u =
|
|
1046
|
-
u && (t =
|
|
1041
|
+
var o = It(i.stem);
|
|
1042
|
+
o && (t = x(x({}, t), o));
|
|
1043
|
+
var u = Qr(i.stem);
|
|
1044
|
+
u && (t = x(x({}, t), u));
|
|
1047
1045
|
}
|
|
1048
1046
|
return t;
|
|
1049
1047
|
}
|
|
1050
|
-
var
|
|
1048
|
+
var ce = {
|
|
1051
1049
|
"001": [
|
|
1052
1050
|
"H",
|
|
1053
1051
|
"h"
|
|
@@ -2462,13 +2460,13 @@ var ge = {
|
|
|
2462
2460
|
"h"
|
|
2463
2461
|
]
|
|
2464
2462
|
};
|
|
2465
|
-
function
|
|
2463
|
+
function Jr(e, t) {
|
|
2466
2464
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2467
2465
|
var i = e.charAt(n);
|
|
2468
2466
|
if (i === "j") {
|
|
2469
2467
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2470
2468
|
s++, n++;
|
|
2471
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2469
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = Yr(t);
|
|
2472
2470
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2473
2471
|
r += l;
|
|
2474
2472
|
for (; o-- > 0; )
|
|
@@ -2478,7 +2476,7 @@ function Yr(e, t) {
|
|
|
2478
2476
|
}
|
|
2479
2477
|
return r;
|
|
2480
2478
|
}
|
|
2481
|
-
function
|
|
2479
|
+
function Yr(e) {
|
|
2482
2480
|
var t = e.hourCycle;
|
|
2483
2481
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2484
2482
|
e.hourCycles && // @ts-ignore
|
|
@@ -2497,23 +2495,23 @@ function Kr(e) {
|
|
|
2497
2495
|
}
|
|
2498
2496
|
var r = e.language, n;
|
|
2499
2497
|
r !== "root" && (n = e.maximize().region);
|
|
2500
|
-
var i =
|
|
2498
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2501
2499
|
return i[0];
|
|
2502
2500
|
}
|
|
2503
|
-
var
|
|
2504
|
-
function
|
|
2501
|
+
var Se, Kr = new RegExp("^".concat(Pt.source, "*")), en = new RegExp("".concat(Pt.source, "*$"));
|
|
2502
|
+
function y(e, t) {
|
|
2505
2503
|
return { start: e, end: t };
|
|
2506
2504
|
}
|
|
2507
|
-
var
|
|
2505
|
+
var tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), rn = !!String.fromCodePoint, nn = !!Object.fromEntries, sn = !!String.prototype.codePointAt, on = !!String.prototype.trimStart, an = !!String.prototype.trimEnd, un = !!Number.isSafeInteger, hn = un ? Number.isSafeInteger : function(e) {
|
|
2508
2506
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2509
|
-
},
|
|
2507
|
+
}, $e = !0;
|
|
2510
2508
|
try {
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2509
|
+
var ln = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2510
|
+
$e = ((Se = ln.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2513
2511
|
} catch {
|
|
2514
|
-
|
|
2512
|
+
$e = !1;
|
|
2515
2513
|
}
|
|
2516
|
-
var
|
|
2514
|
+
var rt = tn ? (
|
|
2517
2515
|
// Native
|
|
2518
2516
|
function(t, r, n) {
|
|
2519
2517
|
return t.startsWith(r, n);
|
|
@@ -2523,7 +2521,7 @@ var nt = rn ? (
|
|
|
2523
2521
|
function(t, r, n) {
|
|
2524
2522
|
return t.slice(n, n + r.length) === r;
|
|
2525
2523
|
}
|
|
2526
|
-
),
|
|
2524
|
+
), Re = rn ? String.fromCodePoint : (
|
|
2527
2525
|
// IE11
|
|
2528
2526
|
function() {
|
|
2529
2527
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2535,9 +2533,9 @@ var nt = rn ? (
|
|
|
2535
2533
|
}
|
|
2536
2534
|
return n;
|
|
2537
2535
|
}
|
|
2538
|
-
),
|
|
2536
|
+
), nt = (
|
|
2539
2537
|
// native
|
|
2540
|
-
|
|
2538
|
+
nn ? Object.fromEntries : (
|
|
2541
2539
|
// Ponyfill
|
|
2542
2540
|
function(t) {
|
|
2543
2541
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2547,7 +2545,7 @@ var nt = rn ? (
|
|
|
2547
2545
|
return r;
|
|
2548
2546
|
}
|
|
2549
2547
|
)
|
|
2550
|
-
),
|
|
2548
|
+
), Mt = sn ? (
|
|
2551
2549
|
// Native
|
|
2552
2550
|
function(t, r) {
|
|
2553
2551
|
return t.codePointAt(r);
|
|
@@ -2561,7 +2559,7 @@ var nt = rn ? (
|
|
|
2561
2559
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2562
2560
|
}
|
|
2563
2561
|
}
|
|
2564
|
-
),
|
|
2562
|
+
), fn = on ? (
|
|
2565
2563
|
// Native
|
|
2566
2564
|
function(t) {
|
|
2567
2565
|
return t.trimStart();
|
|
@@ -2569,9 +2567,9 @@ var nt = rn ? (
|
|
|
2569
2567
|
) : (
|
|
2570
2568
|
// Ponyfill
|
|
2571
2569
|
function(t) {
|
|
2572
|
-
return t.replace(
|
|
2570
|
+
return t.replace(Kr, "");
|
|
2573
2571
|
}
|
|
2574
|
-
),
|
|
2572
|
+
), cn = an ? (
|
|
2575
2573
|
// Native
|
|
2576
2574
|
function(t) {
|
|
2577
2575
|
return t.trimEnd();
|
|
@@ -2579,32 +2577,32 @@ var nt = rn ? (
|
|
|
2579
2577
|
) : (
|
|
2580
2578
|
// Ponyfill
|
|
2581
2579
|
function(t) {
|
|
2582
|
-
return t.replace(
|
|
2580
|
+
return t.replace(en, "");
|
|
2583
2581
|
}
|
|
2584
2582
|
);
|
|
2585
|
-
function
|
|
2583
|
+
function $t(e, t) {
|
|
2586
2584
|
return new RegExp(e, t);
|
|
2587
2585
|
}
|
|
2588
|
-
var
|
|
2589
|
-
if (
|
|
2590
|
-
var
|
|
2591
|
-
|
|
2586
|
+
var Ue;
|
|
2587
|
+
if ($e) {
|
|
2588
|
+
var it = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2589
|
+
Ue = function(t, r) {
|
|
2592
2590
|
var n;
|
|
2593
|
-
|
|
2594
|
-
var i =
|
|
2591
|
+
it.lastIndex = r;
|
|
2592
|
+
var i = it.exec(t);
|
|
2595
2593
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2596
2594
|
};
|
|
2597
2595
|
} else
|
|
2598
|
-
|
|
2596
|
+
Ue = function(t, r) {
|
|
2599
2597
|
for (var n = []; ; ) {
|
|
2600
|
-
var i =
|
|
2601
|
-
if (i === void 0 ||
|
|
2598
|
+
var i = Mt(t, r);
|
|
2599
|
+
if (i === void 0 || Rt(i) || pn(i))
|
|
2602
2600
|
break;
|
|
2603
2601
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2604
2602
|
}
|
|
2605
|
-
return
|
|
2603
|
+
return Re.apply(void 0, n);
|
|
2606
2604
|
};
|
|
2607
|
-
var
|
|
2605
|
+
var gn = (
|
|
2608
2606
|
/** @class */
|
|
2609
2607
|
function() {
|
|
2610
2608
|
function e(t, r) {
|
|
@@ -2628,14 +2626,14 @@ var mn = (
|
|
|
2628
2626
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2629
2627
|
var u = this.clonePosition();
|
|
2630
2628
|
this.bump(), i.push({
|
|
2631
|
-
type:
|
|
2632
|
-
location:
|
|
2629
|
+
type: T.pound,
|
|
2630
|
+
location: y(u, this.clonePosition())
|
|
2633
2631
|
});
|
|
2634
2632
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2635
2633
|
if (n)
|
|
2636
2634
|
break;
|
|
2637
|
-
return this.error(
|
|
2638
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2635
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2636
|
+
} else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
2639
2637
|
var o = this.parseTag(t, r);
|
|
2640
2638
|
if (o.err)
|
|
2641
2639
|
return o;
|
|
@@ -2656,9 +2654,9 @@ var mn = (
|
|
|
2656
2654
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2657
2655
|
return {
|
|
2658
2656
|
val: {
|
|
2659
|
-
type:
|
|
2657
|
+
type: T.literal,
|
|
2660
2658
|
value: "<".concat(i, "/>"),
|
|
2661
|
-
location:
|
|
2659
|
+
location: y(n, this.clonePosition())
|
|
2662
2660
|
},
|
|
2663
2661
|
err: null
|
|
2664
2662
|
};
|
|
@@ -2668,22 +2666,22 @@ var mn = (
|
|
|
2668
2666
|
return s;
|
|
2669
2667
|
var o = s.val, u = this.clonePosition();
|
|
2670
2668
|
if (this.bumpIf("</")) {
|
|
2671
|
-
if (this.isEOF() || !
|
|
2672
|
-
return this.error(
|
|
2669
|
+
if (this.isEOF() || !De(this.char()))
|
|
2670
|
+
return this.error(_.INVALID_TAG, y(u, this.clonePosition()));
|
|
2673
2671
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2674
|
-
return i !== a ? this.error(
|
|
2672
|
+
return i !== a ? this.error(_.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2675
2673
|
val: {
|
|
2676
|
-
type:
|
|
2674
|
+
type: T.tag,
|
|
2677
2675
|
value: i,
|
|
2678
2676
|
children: o,
|
|
2679
|
-
location:
|
|
2677
|
+
location: y(n, this.clonePosition())
|
|
2680
2678
|
},
|
|
2681
2679
|
err: null
|
|
2682
|
-
} : this.error(
|
|
2680
|
+
} : this.error(_.INVALID_TAG, y(u, this.clonePosition())));
|
|
2683
2681
|
} else
|
|
2684
|
-
return this.error(
|
|
2682
|
+
return this.error(_.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2685
2683
|
} else
|
|
2686
|
-
return this.error(
|
|
2684
|
+
return this.error(_.INVALID_TAG, y(n, this.clonePosition()));
|
|
2687
2685
|
}, e.prototype.parseTagName = function() {
|
|
2688
2686
|
var t = this.offset();
|
|
2689
2687
|
for (this.bump(); !this.isEOF() && dn(this.char()); )
|
|
@@ -2708,14 +2706,14 @@ var mn = (
|
|
|
2708
2706
|
}
|
|
2709
2707
|
break;
|
|
2710
2708
|
}
|
|
2711
|
-
var l =
|
|
2709
|
+
var l = y(n, this.clonePosition());
|
|
2712
2710
|
return {
|
|
2713
|
-
val: { type:
|
|
2711
|
+
val: { type: T.literal, value: i, location: l },
|
|
2714
2712
|
err: null
|
|
2715
2713
|
};
|
|
2716
2714
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2717
2715
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2718
|
-
!
|
|
2716
|
+
!mn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2719
2717
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2720
2718
|
if (this.isEOF() || this.char() !== 39)
|
|
2721
2719
|
return null;
|
|
@@ -2749,49 +2747,49 @@ var mn = (
|
|
|
2749
2747
|
r.push(n);
|
|
2750
2748
|
this.bump();
|
|
2751
2749
|
}
|
|
2752
|
-
return
|
|
2750
|
+
return Re.apply(void 0, r);
|
|
2753
2751
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2754
2752
|
if (this.isEOF())
|
|
2755
2753
|
return null;
|
|
2756
2754
|
var n = this.char();
|
|
2757
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2755
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
2758
2756
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2759
2757
|
var n = this.clonePosition();
|
|
2760
2758
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2761
|
-
return this.error(
|
|
2759
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2762
2760
|
if (this.char() === 125)
|
|
2763
|
-
return this.bump(), this.error(
|
|
2761
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2764
2762
|
var i = this.parseIdentifierIfPossible().value;
|
|
2765
2763
|
if (!i)
|
|
2766
|
-
return this.error(
|
|
2764
|
+
return this.error(_.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2767
2765
|
if (this.bumpSpace(), this.isEOF())
|
|
2768
|
-
return this.error(
|
|
2766
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2769
2767
|
switch (this.char()) {
|
|
2770
2768
|
case 125:
|
|
2771
2769
|
return this.bump(), {
|
|
2772
2770
|
val: {
|
|
2773
|
-
type:
|
|
2771
|
+
type: T.argument,
|
|
2774
2772
|
// value does not include the opening and closing braces.
|
|
2775
2773
|
value: i,
|
|
2776
|
-
location:
|
|
2774
|
+
location: y(n, this.clonePosition())
|
|
2777
2775
|
},
|
|
2778
2776
|
err: null
|
|
2779
2777
|
};
|
|
2780
2778
|
case 44:
|
|
2781
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2779
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2782
2780
|
default:
|
|
2783
|
-
return this.error(
|
|
2781
|
+
return this.error(_.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2784
2782
|
}
|
|
2785
2783
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2786
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2784
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
2787
2785
|
this.bumpTo(i);
|
|
2788
|
-
var s = this.clonePosition(), o =
|
|
2786
|
+
var s = this.clonePosition(), o = y(t, s);
|
|
2789
2787
|
return { value: n, location: o };
|
|
2790
2788
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2791
2789
|
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2792
2790
|
switch (u) {
|
|
2793
2791
|
case "":
|
|
2794
|
-
return this.error(
|
|
2792
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, y(o, l));
|
|
2795
2793
|
case "number":
|
|
2796
2794
|
case "date":
|
|
2797
2795
|
case "time": {
|
|
@@ -2802,44 +2800,44 @@ var mn = (
|
|
|
2802
2800
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2803
2801
|
if (c.err)
|
|
2804
2802
|
return c;
|
|
2805
|
-
var f =
|
|
2803
|
+
var f = cn(c.val);
|
|
2806
2804
|
if (f.length === 0)
|
|
2807
|
-
return this.error(
|
|
2808
|
-
var
|
|
2809
|
-
a = { style: f, styleLocation:
|
|
2805
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2806
|
+
var d = y(h, this.clonePosition());
|
|
2807
|
+
a = { style: f, styleLocation: d };
|
|
2810
2808
|
}
|
|
2811
|
-
var
|
|
2812
|
-
if (
|
|
2813
|
-
return
|
|
2814
|
-
var g =
|
|
2815
|
-
if (a &&
|
|
2816
|
-
var E =
|
|
2809
|
+
var p = this.tryParseArgumentClose(i);
|
|
2810
|
+
if (p.err)
|
|
2811
|
+
return p;
|
|
2812
|
+
var g = y(i, this.clonePosition());
|
|
2813
|
+
if (a && rt(a?.style, "::", 0)) {
|
|
2814
|
+
var E = fn(a.style.slice(2));
|
|
2817
2815
|
if (u === "number") {
|
|
2818
2816
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2819
2817
|
return c.err ? c : {
|
|
2820
|
-
val: { type:
|
|
2818
|
+
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2821
2819
|
err: null
|
|
2822
2820
|
};
|
|
2823
2821
|
} else {
|
|
2824
2822
|
if (E.length === 0)
|
|
2825
|
-
return this.error(
|
|
2823
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
2826
2824
|
var m = E;
|
|
2827
|
-
this.locale && (m =
|
|
2825
|
+
this.locale && (m = Jr(E, this.locale));
|
|
2828
2826
|
var f = {
|
|
2829
|
-
type:
|
|
2827
|
+
type: Q.dateTime,
|
|
2830
2828
|
pattern: m,
|
|
2831
2829
|
location: a.styleLocation,
|
|
2832
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2833
|
-
},
|
|
2830
|
+
parsedOptions: this.shouldParseSkeletons ? Vr(m) : {}
|
|
2831
|
+
}, C = u === "date" ? T.date : T.time;
|
|
2834
2832
|
return {
|
|
2835
|
-
val: { type:
|
|
2833
|
+
val: { type: C, value: n, location: g, style: f },
|
|
2836
2834
|
err: null
|
|
2837
2835
|
};
|
|
2838
2836
|
}
|
|
2839
2837
|
}
|
|
2840
2838
|
return {
|
|
2841
2839
|
val: {
|
|
2842
|
-
type: u === "number" ?
|
|
2840
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2843
2841
|
value: n,
|
|
2844
2842
|
location: g,
|
|
2845
2843
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2850,41 +2848,41 @@ var mn = (
|
|
|
2850
2848
|
case "plural":
|
|
2851
2849
|
case "selectordinal":
|
|
2852
2850
|
case "select": {
|
|
2853
|
-
var
|
|
2851
|
+
var A = this.clonePosition();
|
|
2854
2852
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2855
|
-
return this.error(
|
|
2853
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, x({}, A)));
|
|
2856
2854
|
this.bumpSpace();
|
|
2857
|
-
var w = this.parseIdentifierIfPossible(),
|
|
2855
|
+
var w = this.parseIdentifierIfPossible(), B = 0;
|
|
2858
2856
|
if (u !== "select" && w.value === "offset") {
|
|
2859
2857
|
if (!this.bumpIf(":"))
|
|
2860
|
-
return this.error(
|
|
2858
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2861
2859
|
this.bumpSpace();
|
|
2862
|
-
var c = this.tryParseDecimalInteger(
|
|
2860
|
+
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2863
2861
|
if (c.err)
|
|
2864
2862
|
return c;
|
|
2865
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(),
|
|
2863
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), B = c.val;
|
|
2866
2864
|
}
|
|
2867
2865
|
var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
|
|
2868
2866
|
if (H.err)
|
|
2869
2867
|
return H;
|
|
2870
|
-
var
|
|
2871
|
-
if (
|
|
2872
|
-
return
|
|
2873
|
-
var P =
|
|
2868
|
+
var p = this.tryParseArgumentClose(i);
|
|
2869
|
+
if (p.err)
|
|
2870
|
+
return p;
|
|
2871
|
+
var P = y(i, this.clonePosition());
|
|
2874
2872
|
return u === "select" ? {
|
|
2875
2873
|
val: {
|
|
2876
|
-
type:
|
|
2874
|
+
type: T.select,
|
|
2877
2875
|
value: n,
|
|
2878
|
-
options:
|
|
2876
|
+
options: nt(H.val),
|
|
2879
2877
|
location: P
|
|
2880
2878
|
},
|
|
2881
2879
|
err: null
|
|
2882
2880
|
} : {
|
|
2883
2881
|
val: {
|
|
2884
|
-
type:
|
|
2882
|
+
type: T.plural,
|
|
2885
2883
|
value: n,
|
|
2886
|
-
options:
|
|
2887
|
-
offset:
|
|
2884
|
+
options: nt(H.val),
|
|
2885
|
+
offset: B,
|
|
2888
2886
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2889
2887
|
location: P
|
|
2890
2888
|
},
|
|
@@ -2892,10 +2890,10 @@ var mn = (
|
|
|
2892
2890
|
};
|
|
2893
2891
|
}
|
|
2894
2892
|
default:
|
|
2895
|
-
return this.error(
|
|
2893
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, y(o, l));
|
|
2896
2894
|
}
|
|
2897
2895
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2898
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2896
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2899
2897
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2900
2898
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2901
2899
|
var n = this.char();
|
|
@@ -2904,7 +2902,7 @@ var mn = (
|
|
|
2904
2902
|
this.bump();
|
|
2905
2903
|
var i = this.clonePosition();
|
|
2906
2904
|
if (!this.bumpUntil("'"))
|
|
2907
|
-
return this.error(
|
|
2905
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
2908
2906
|
this.bump();
|
|
2909
2907
|
break;
|
|
2910
2908
|
}
|
|
@@ -2934,16 +2932,16 @@ var mn = (
|
|
|
2934
2932
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2935
2933
|
var n = [];
|
|
2936
2934
|
try {
|
|
2937
|
-
n =
|
|
2935
|
+
n = zr(t);
|
|
2938
2936
|
} catch {
|
|
2939
|
-
return this.error(
|
|
2937
|
+
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
2940
2938
|
}
|
|
2941
2939
|
return {
|
|
2942
2940
|
val: {
|
|
2943
|
-
type:
|
|
2941
|
+
type: Q.number,
|
|
2944
2942
|
tokens: n,
|
|
2945
2943
|
location: r,
|
|
2946
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2944
|
+
parsedOptions: this.shouldParseSkeletons ? qr(n) : {}
|
|
2947
2945
|
},
|
|
2948
2946
|
err: null
|
|
2949
2947
|
};
|
|
@@ -2952,34 +2950,34 @@ var mn = (
|
|
|
2952
2950
|
if (a.length === 0) {
|
|
2953
2951
|
var c = this.clonePosition();
|
|
2954
2952
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2955
|
-
var f = this.tryParseDecimalInteger(
|
|
2953
|
+
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2956
2954
|
if (f.err)
|
|
2957
2955
|
return f;
|
|
2958
|
-
h =
|
|
2956
|
+
h = y(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2959
2957
|
} else
|
|
2960
2958
|
break;
|
|
2961
2959
|
}
|
|
2962
2960
|
if (l.has(a))
|
|
2963
|
-
return this.error(r === "select" ?
|
|
2961
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2964
2962
|
a === "other" && (o = !0), this.bumpSpace();
|
|
2965
|
-
var
|
|
2963
|
+
var d = this.clonePosition();
|
|
2966
2964
|
if (!this.bumpIf("{"))
|
|
2967
|
-
return this.error(r === "select" ?
|
|
2968
|
-
var
|
|
2969
|
-
if (
|
|
2970
|
-
return
|
|
2971
|
-
var g = this.tryParseArgumentClose(
|
|
2965
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
2966
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
2967
|
+
if (p.err)
|
|
2968
|
+
return p;
|
|
2969
|
+
var g = this.tryParseArgumentClose(d);
|
|
2972
2970
|
if (g.err)
|
|
2973
2971
|
return g;
|
|
2974
2972
|
u.push([
|
|
2975
2973
|
a,
|
|
2976
2974
|
{
|
|
2977
|
-
value:
|
|
2978
|
-
location:
|
|
2975
|
+
value: p.val,
|
|
2976
|
+
location: y(d, this.clonePosition())
|
|
2979
2977
|
}
|
|
2980
2978
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
2981
2979
|
}
|
|
2982
|
-
return u.length === 0 ? this.error(r === "select" ?
|
|
2980
|
+
return u.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2983
2981
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2984
2982
|
var n = 1, i = this.clonePosition();
|
|
2985
2983
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2990,8 +2988,8 @@ var mn = (
|
|
|
2990
2988
|
else
|
|
2991
2989
|
break;
|
|
2992
2990
|
}
|
|
2993
|
-
var l =
|
|
2994
|
-
return s ? (o *= n,
|
|
2991
|
+
var l = y(i, this.clonePosition());
|
|
2992
|
+
return s ? (o *= n, hn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2995
2993
|
}, e.prototype.offset = function() {
|
|
2996
2994
|
return this.position.offset;
|
|
2997
2995
|
}, e.prototype.isEOF = function() {
|
|
@@ -3006,7 +3004,7 @@ var mn = (
|
|
|
3006
3004
|
var t = this.position.offset;
|
|
3007
3005
|
if (t >= this.message.length)
|
|
3008
3006
|
throw Error("out of bound");
|
|
3009
|
-
var r =
|
|
3007
|
+
var r = Mt(this.message, t);
|
|
3010
3008
|
if (r === void 0)
|
|
3011
3009
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3012
3010
|
return r;
|
|
@@ -3025,7 +3023,7 @@ var mn = (
|
|
|
3025
3023
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3026
3024
|
}
|
|
3027
3025
|
}, e.prototype.bumpIf = function(t) {
|
|
3028
|
-
if (
|
|
3026
|
+
if (rt(this.message, t, this.offset())) {
|
|
3029
3027
|
for (var r = 0; r < t.length; r++)
|
|
3030
3028
|
this.bump();
|
|
3031
3029
|
return !0;
|
|
@@ -3047,7 +3045,7 @@ var mn = (
|
|
|
3047
3045
|
break;
|
|
3048
3046
|
}
|
|
3049
3047
|
}, e.prototype.bumpSpace = function() {
|
|
3050
|
-
for (; !this.isEOF() &&
|
|
3048
|
+
for (; !this.isEOF() && Rt(this.char()); )
|
|
3051
3049
|
this.bump();
|
|
3052
3050
|
}, e.prototype.peek = function() {
|
|
3053
3051
|
if (this.isEOF())
|
|
@@ -3057,47 +3055,47 @@ var mn = (
|
|
|
3057
3055
|
}, e;
|
|
3058
3056
|
}()
|
|
3059
3057
|
);
|
|
3060
|
-
function
|
|
3058
|
+
function De(e) {
|
|
3061
3059
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3062
3060
|
}
|
|
3063
|
-
function
|
|
3064
|
-
return
|
|
3061
|
+
function mn(e) {
|
|
3062
|
+
return De(e) || e === 47;
|
|
3065
3063
|
}
|
|
3066
3064
|
function dn(e) {
|
|
3067
3065
|
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;
|
|
3068
3066
|
}
|
|
3069
|
-
function
|
|
3067
|
+
function Rt(e) {
|
|
3070
3068
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3071
3069
|
}
|
|
3072
|
-
function
|
|
3070
|
+
function pn(e) {
|
|
3073
3071
|
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;
|
|
3074
3072
|
}
|
|
3075
|
-
function
|
|
3073
|
+
function Ge(e) {
|
|
3076
3074
|
e.forEach(function(t) {
|
|
3077
|
-
if (delete t.location, Bt(t) ||
|
|
3075
|
+
if (delete t.location, Bt(t) || St(t))
|
|
3078
3076
|
for (var r in t.options)
|
|
3079
|
-
delete t.options[r].location,
|
|
3077
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3080
3078
|
else
|
|
3081
|
-
|
|
3079
|
+
Ct(t) && wt(t.style) || (Ht(t) || At(t)) && Me(t.style) ? delete t.style.location : Ot(t) && Ge(t.children);
|
|
3082
3080
|
});
|
|
3083
3081
|
}
|
|
3084
|
-
function
|
|
3085
|
-
t === void 0 && (t = {}), t =
|
|
3086
|
-
var r = new
|
|
3082
|
+
function bn(e, t) {
|
|
3083
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3084
|
+
var r = new gn(e, t).parse();
|
|
3087
3085
|
if (r.err) {
|
|
3088
|
-
var n = SyntaxError(
|
|
3086
|
+
var n = SyntaxError(_[r.err.kind]);
|
|
3089
3087
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3090
3088
|
}
|
|
3091
|
-
return t?.captureLocation ||
|
|
3089
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3092
3090
|
}
|
|
3093
|
-
var
|
|
3091
|
+
var q;
|
|
3094
3092
|
(function(e) {
|
|
3095
3093
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3096
|
-
})(
|
|
3097
|
-
var
|
|
3094
|
+
})(q || (q = {}));
|
|
3095
|
+
var Ee = (
|
|
3098
3096
|
/** @class */
|
|
3099
3097
|
function(e) {
|
|
3100
|
-
|
|
3098
|
+
xe(t, e);
|
|
3101
3099
|
function t(r, n, i) {
|
|
3102
3100
|
var s = e.call(this, r) || this;
|
|
3103
3101
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3106,33 +3104,33 @@ var Te = (
|
|
|
3106
3104
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3107
3105
|
}, t;
|
|
3108
3106
|
}(Error)
|
|
3109
|
-
),
|
|
3107
|
+
), st = (
|
|
3110
3108
|
/** @class */
|
|
3111
3109
|
function(e) {
|
|
3112
|
-
|
|
3110
|
+
xe(t, e);
|
|
3113
3111
|
function t(r, n, i, s) {
|
|
3114
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3112
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3115
3113
|
}
|
|
3116
3114
|
return t;
|
|
3117
|
-
}(
|
|
3115
|
+
}(Ee)
|
|
3118
3116
|
), _n = (
|
|
3119
3117
|
/** @class */
|
|
3120
3118
|
function(e) {
|
|
3121
|
-
|
|
3119
|
+
xe(t, e);
|
|
3122
3120
|
function t(r, n, i) {
|
|
3123
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3121
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3124
3122
|
}
|
|
3125
3123
|
return t;
|
|
3126
|
-
}(
|
|
3127
|
-
),
|
|
3124
|
+
}(Ee)
|
|
3125
|
+
), yn = (
|
|
3128
3126
|
/** @class */
|
|
3129
3127
|
function(e) {
|
|
3130
|
-
|
|
3128
|
+
xe(t, e);
|
|
3131
3129
|
function t(r, n) {
|
|
3132
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3130
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3133
3131
|
}
|
|
3134
3132
|
return t;
|
|
3135
|
-
}(
|
|
3133
|
+
}(Ee)
|
|
3136
3134
|
), O;
|
|
3137
3135
|
(function(e) {
|
|
3138
3136
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3143,11 +3141,11 @@ function xn(e) {
|
|
|
3143
3141
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3144
3142
|
}, []);
|
|
3145
3143
|
}
|
|
3146
|
-
function
|
|
3144
|
+
function En(e) {
|
|
3147
3145
|
return typeof e == "function";
|
|
3148
3146
|
}
|
|
3149
|
-
function
|
|
3150
|
-
if (e.length === 1 &&
|
|
3147
|
+
function me(e, t, r, n, i, s, o) {
|
|
3148
|
+
if (e.length === 1 && Ye(e[0]))
|
|
3151
3149
|
return [
|
|
3152
3150
|
{
|
|
3153
3151
|
type: O.literal,
|
|
@@ -3156,14 +3154,14 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3156
3154
|
];
|
|
3157
3155
|
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3158
3156
|
var h = a[l];
|
|
3159
|
-
if (
|
|
3157
|
+
if (Ye(h)) {
|
|
3160
3158
|
u.push({
|
|
3161
3159
|
type: O.literal,
|
|
3162
3160
|
value: h.value
|
|
3163
3161
|
});
|
|
3164
3162
|
continue;
|
|
3165
3163
|
}
|
|
3166
|
-
if (
|
|
3164
|
+
if (jr(h)) {
|
|
3167
3165
|
typeof s == "number" && u.push({
|
|
3168
3166
|
type: O.literal,
|
|
3169
3167
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3172,89 +3170,89 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3172
3170
|
}
|
|
3173
3171
|
var c = h.value;
|
|
3174
3172
|
if (!(i && c in i))
|
|
3175
|
-
throw new
|
|
3173
|
+
throw new yn(c, o);
|
|
3176
3174
|
var f = i[c];
|
|
3177
|
-
if (
|
|
3175
|
+
if (Fr(h)) {
|
|
3178
3176
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3179
3177
|
type: typeof f == "string" ? O.literal : O.object,
|
|
3180
3178
|
value: f
|
|
3181
3179
|
});
|
|
3182
3180
|
continue;
|
|
3183
3181
|
}
|
|
3184
|
-
if (
|
|
3185
|
-
var
|
|
3182
|
+
if (Ht(h)) {
|
|
3183
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3186
3184
|
u.push({
|
|
3187
3185
|
type: O.literal,
|
|
3188
|
-
value: r.getDateTimeFormat(t,
|
|
3186
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3189
3187
|
});
|
|
3190
3188
|
continue;
|
|
3191
3189
|
}
|
|
3192
3190
|
if (At(h)) {
|
|
3193
|
-
var
|
|
3191
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3194
3192
|
u.push({
|
|
3195
3193
|
type: O.literal,
|
|
3196
|
-
value: r.getDateTimeFormat(t,
|
|
3194
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3197
3195
|
});
|
|
3198
3196
|
continue;
|
|
3199
3197
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var
|
|
3202
|
-
|
|
3198
|
+
if (Ct(h)) {
|
|
3199
|
+
var d = typeof h.style == "string" ? n.number[h.style] : wt(h.style) ? h.style.parsedOptions : void 0;
|
|
3200
|
+
d && d.scale && (f = f * (d.scale || 1)), u.push({
|
|
3203
3201
|
type: O.literal,
|
|
3204
|
-
value: r.getNumberFormat(t,
|
|
3202
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3205
3203
|
});
|
|
3206
3204
|
continue;
|
|
3207
3205
|
}
|
|
3208
|
-
if (
|
|
3209
|
-
var
|
|
3210
|
-
if (!
|
|
3206
|
+
if (Ot(h)) {
|
|
3207
|
+
var p = h.children, g = h.value, E = i[g];
|
|
3208
|
+
if (!En(E))
|
|
3211
3209
|
throw new _n(g, "function", o);
|
|
3212
|
-
var m =
|
|
3213
|
-
return
|
|
3210
|
+
var m = me(p, t, r, n, i, s), C = E(m.map(function(B) {
|
|
3211
|
+
return B.value;
|
|
3214
3212
|
}));
|
|
3215
|
-
Array.isArray(
|
|
3213
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
3216
3214
|
return {
|
|
3217
|
-
type: typeof
|
|
3218
|
-
value:
|
|
3215
|
+
type: typeof B == "string" ? O.literal : O.object,
|
|
3216
|
+
value: B
|
|
3219
3217
|
};
|
|
3220
3218
|
}));
|
|
3221
3219
|
}
|
|
3222
3220
|
if (Bt(h)) {
|
|
3223
|
-
var
|
|
3224
|
-
if (!
|
|
3225
|
-
throw new
|
|
3226
|
-
u.push.apply(u,
|
|
3221
|
+
var A = h.options[f] || h.options.other;
|
|
3222
|
+
if (!A)
|
|
3223
|
+
throw new st(h.value, f, Object.keys(h.options), o);
|
|
3224
|
+
u.push.apply(u, me(A.value, t, r, n, i));
|
|
3227
3225
|
continue;
|
|
3228
3226
|
}
|
|
3229
|
-
if (
|
|
3230
|
-
var
|
|
3231
|
-
if (!
|
|
3227
|
+
if (St(h)) {
|
|
3228
|
+
var A = h.options["=".concat(f)];
|
|
3229
|
+
if (!A) {
|
|
3232
3230
|
if (!Intl.PluralRules)
|
|
3233
|
-
throw new
|
|
3231
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3234
3232
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3235
|
-
`,
|
|
3233
|
+
`, q.MISSING_INTL_API, o);
|
|
3236
3234
|
var w = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3237
|
-
|
|
3235
|
+
A = h.options[w] || h.options.other;
|
|
3238
3236
|
}
|
|
3239
|
-
if (!
|
|
3240
|
-
throw new
|
|
3241
|
-
u.push.apply(u,
|
|
3237
|
+
if (!A)
|
|
3238
|
+
throw new st(h.value, f, Object.keys(h.options), o);
|
|
3239
|
+
u.push.apply(u, me(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3242
3240
|
continue;
|
|
3243
3241
|
}
|
|
3244
3242
|
}
|
|
3245
3243
|
return xn(u);
|
|
3246
3244
|
}
|
|
3247
|
-
function
|
|
3248
|
-
return t ?
|
|
3249
|
-
return r[n] =
|
|
3245
|
+
function vn(e, t) {
|
|
3246
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3247
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3250
3248
|
}, {})) : e;
|
|
3251
3249
|
}
|
|
3252
|
-
function
|
|
3250
|
+
function Tn(e, t) {
|
|
3253
3251
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3254
|
-
return r[n] =
|
|
3255
|
-
},
|
|
3252
|
+
return r[n] = vn(e[n], t[n]), r;
|
|
3253
|
+
}, x({}, e)) : e;
|
|
3256
3254
|
}
|
|
3257
|
-
function
|
|
3255
|
+
function Oe(e) {
|
|
3258
3256
|
return {
|
|
3259
3257
|
create: function() {
|
|
3260
3258
|
return {
|
|
@@ -3268,39 +3266,39 @@ function Pe(e) {
|
|
|
3268
3266
|
}
|
|
3269
3267
|
};
|
|
3270
3268
|
}
|
|
3271
|
-
function
|
|
3269
|
+
function Cn(e) {
|
|
3272
3270
|
return e === void 0 && (e = {
|
|
3273
3271
|
number: {},
|
|
3274
3272
|
dateTime: {},
|
|
3275
3273
|
pluralRules: {}
|
|
3276
3274
|
}), {
|
|
3277
|
-
getNumberFormat:
|
|
3275
|
+
getNumberFormat: Ae(function() {
|
|
3278
3276
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3277
|
r[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3278
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3281
3279
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3280
|
+
cache: Oe(e.number),
|
|
3281
|
+
strategy: Be.variadic
|
|
3284
3282
|
}),
|
|
3285
|
-
getDateTimeFormat:
|
|
3283
|
+
getDateTimeFormat: Ae(function() {
|
|
3286
3284
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3287
3285
|
r[n] = arguments[n];
|
|
3288
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3286
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3289
3287
|
}, {
|
|
3290
|
-
cache:
|
|
3291
|
-
strategy:
|
|
3288
|
+
cache: Oe(e.dateTime),
|
|
3289
|
+
strategy: Be.variadic
|
|
3292
3290
|
}),
|
|
3293
|
-
getPluralRules:
|
|
3291
|
+
getPluralRules: Ae(function() {
|
|
3294
3292
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3295
3293
|
r[n] = arguments[n];
|
|
3296
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3294
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3297
3295
|
}, {
|
|
3298
|
-
cache:
|
|
3299
|
-
strategy:
|
|
3296
|
+
cache: Oe(e.pluralRules),
|
|
3297
|
+
strategy: Be.variadic
|
|
3300
3298
|
})
|
|
3301
3299
|
};
|
|
3302
3300
|
}
|
|
3303
|
-
var
|
|
3301
|
+
var Hn = (
|
|
3304
3302
|
/** @class */
|
|
3305
3303
|
function() {
|
|
3306
3304
|
function e(t, r, n, i) {
|
|
@@ -3319,7 +3317,7 @@ var Sn = (
|
|
|
3319
3317
|
}, []);
|
|
3320
3318
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3321
3319
|
}, this.formatToParts = function(l) {
|
|
3322
|
-
return
|
|
3320
|
+
return me(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3323
3321
|
}, this.resolvedOptions = function() {
|
|
3324
3322
|
var l;
|
|
3325
3323
|
return {
|
|
@@ -3332,13 +3330,13 @@ var Sn = (
|
|
|
3332
3330
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3333
3331
|
var o = i || {};
|
|
3334
3332
|
o.formatters;
|
|
3335
|
-
var u =
|
|
3336
|
-
this.ast = e.__parse(t,
|
|
3333
|
+
var u = Lr(o, ["formatters"]);
|
|
3334
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3337
3335
|
} else
|
|
3338
3336
|
this.ast = t;
|
|
3339
3337
|
if (!Array.isArray(this.ast))
|
|
3340
3338
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3341
|
-
this.formats =
|
|
3339
|
+
this.formats = Tn(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
|
|
3342
3340
|
}
|
|
3343
3341
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3344
3342
|
get: function() {
|
|
@@ -3351,7 +3349,7 @@ var Sn = (
|
|
|
3351
3349
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3352
3350
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3353
3351
|
}
|
|
3354
|
-
}, e.__parse =
|
|
3352
|
+
}, e.__parse = bn, e.formats = {
|
|
3355
3353
|
number: {
|
|
3356
3354
|
integer: {
|
|
3357
3355
|
maximumFractionDigits: 0
|
|
@@ -3433,92 +3431,92 @@ function An(e, t) {
|
|
|
3433
3431
|
n = void 0;
|
|
3434
3432
|
return n;
|
|
3435
3433
|
}
|
|
3436
|
-
const
|
|
3434
|
+
const D = {}, Bn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Ut = (e, t) => {
|
|
3437
3435
|
if (t == null)
|
|
3438
3436
|
return;
|
|
3439
|
-
if (t in
|
|
3440
|
-
return
|
|
3441
|
-
const r =
|
|
3437
|
+
if (t in D && e in D[t])
|
|
3438
|
+
return D[t][e];
|
|
3439
|
+
const r = ve(t);
|
|
3442
3440
|
for (let n = 0; n < r.length; n++) {
|
|
3443
|
-
const i = r[n], s =
|
|
3441
|
+
const i = r[n], s = On(i, e);
|
|
3444
3442
|
if (s)
|
|
3445
3443
|
return Bn(e, t, s);
|
|
3446
3444
|
}
|
|
3447
3445
|
};
|
|
3448
|
-
let
|
|
3449
|
-
const
|
|
3450
|
-
function
|
|
3451
|
-
return
|
|
3446
|
+
let Xe;
|
|
3447
|
+
const ue = ye({});
|
|
3448
|
+
function Sn(e) {
|
|
3449
|
+
return Xe[e] || null;
|
|
3452
3450
|
}
|
|
3453
|
-
function
|
|
3454
|
-
return e in
|
|
3451
|
+
function Dt(e) {
|
|
3452
|
+
return e in Xe;
|
|
3455
3453
|
}
|
|
3456
|
-
function
|
|
3457
|
-
if (!
|
|
3454
|
+
function On(e, t) {
|
|
3455
|
+
if (!Dt(e))
|
|
3458
3456
|
return null;
|
|
3459
|
-
const r =
|
|
3457
|
+
const r = Sn(e);
|
|
3460
3458
|
return An(r, t);
|
|
3461
3459
|
}
|
|
3462
|
-
function
|
|
3460
|
+
function wn(e) {
|
|
3463
3461
|
if (e == null)
|
|
3464
3462
|
return;
|
|
3465
|
-
const t =
|
|
3463
|
+
const t = ve(e);
|
|
3466
3464
|
for (let r = 0; r < t.length; r++) {
|
|
3467
3465
|
const n = t[r];
|
|
3468
|
-
if (
|
|
3466
|
+
if (Dt(n))
|
|
3469
3467
|
return n;
|
|
3470
3468
|
}
|
|
3471
3469
|
}
|
|
3472
|
-
function
|
|
3473
|
-
delete
|
|
3470
|
+
function Gt(e, ...t) {
|
|
3471
|
+
delete D[e], ue.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
|
|
3474
3472
|
}
|
|
3475
|
-
|
|
3476
|
-
[
|
|
3473
|
+
K(
|
|
3474
|
+
[ue],
|
|
3477
3475
|
([e]) => Object.keys(e)
|
|
3478
3476
|
);
|
|
3479
|
-
|
|
3477
|
+
ue.subscribe((e) => Xe = e);
|
|
3480
3478
|
const de = {};
|
|
3481
|
-
function
|
|
3479
|
+
function Pn(e, t) {
|
|
3482
3480
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3483
3481
|
}
|
|
3484
|
-
function
|
|
3482
|
+
function Ft(e) {
|
|
3485
3483
|
return de[e];
|
|
3486
3484
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return
|
|
3489
|
-
const r =
|
|
3485
|
+
function Nn(e) {
|
|
3486
|
+
return ve(e).map((t) => {
|
|
3487
|
+
const r = Ft(t);
|
|
3490
3488
|
return [t, r ? [...r] : []];
|
|
3491
3489
|
}).filter(([, t]) => t.length > 0);
|
|
3492
3490
|
}
|
|
3493
|
-
function
|
|
3494
|
-
return e == null ? !1 :
|
|
3491
|
+
function Fe(e) {
|
|
3492
|
+
return e == null ? !1 : ve(e).some(
|
|
3495
3493
|
(t) => {
|
|
3496
3494
|
var r;
|
|
3497
|
-
return (r =
|
|
3495
|
+
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3498
3496
|
}
|
|
3499
3497
|
);
|
|
3500
3498
|
}
|
|
3501
|
-
function
|
|
3499
|
+
function Ln(e, t) {
|
|
3502
3500
|
return Promise.all(
|
|
3503
|
-
t.map((n) => (
|
|
3504
|
-
).then((n) =>
|
|
3505
|
-
}
|
|
3506
|
-
const
|
|
3507
|
-
function
|
|
3508
|
-
if (!
|
|
3509
|
-
return e in
|
|
3510
|
-
const t =
|
|
3511
|
-
return
|
|
3501
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
|
3502
|
+
).then((n) => Gt(e, ...n));
|
|
3503
|
+
}
|
|
3504
|
+
const re = {};
|
|
3505
|
+
function jt(e) {
|
|
3506
|
+
if (!Fe(e))
|
|
3507
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3508
|
+
const t = Nn(e);
|
|
3509
|
+
return re[e] = Promise.all(
|
|
3512
3510
|
t.map(
|
|
3513
|
-
([r, n]) =>
|
|
3511
|
+
([r, n]) => Ln(r, n)
|
|
3514
3512
|
)
|
|
3515
3513
|
).then(() => {
|
|
3516
|
-
if (
|
|
3517
|
-
return
|
|
3518
|
-
delete
|
|
3519
|
-
}),
|
|
3514
|
+
if (Fe(e))
|
|
3515
|
+
return jt(e);
|
|
3516
|
+
delete re[e];
|
|
3517
|
+
}), re[e];
|
|
3520
3518
|
}
|
|
3521
|
-
const
|
|
3519
|
+
const In = {
|
|
3522
3520
|
number: {
|
|
3523
3521
|
scientific: { notation: "scientific" },
|
|
3524
3522
|
engineering: { notation: "engineering" },
|
|
@@ -3547,150 +3545,150 @@ const Mn = {
|
|
|
3547
3545
|
timeZoneName: "short"
|
|
3548
3546
|
}
|
|
3549
3547
|
}
|
|
3550
|
-
},
|
|
3548
|
+
}, Mn = {
|
|
3551
3549
|
fallbackLocale: null,
|
|
3552
3550
|
loadingDelay: 200,
|
|
3553
|
-
formats:
|
|
3551
|
+
formats: In,
|
|
3554
3552
|
warnOnMissingMessages: !0,
|
|
3555
3553
|
handleMissingMessage: void 0,
|
|
3556
3554
|
ignoreTag: !0
|
|
3557
|
-
},
|
|
3558
|
-
function
|
|
3559
|
-
return
|
|
3560
|
-
}
|
|
3561
|
-
const
|
|
3562
|
-
var
|
|
3563
|
-
for (var r in t
|
|
3564
|
-
|
|
3565
|
-
if (
|
|
3566
|
-
for (var r of
|
|
3567
|
-
|
|
3555
|
+
}, $n = Mn;
|
|
3556
|
+
function J() {
|
|
3557
|
+
return $n;
|
|
3558
|
+
}
|
|
3559
|
+
const we = ye(!1);
|
|
3560
|
+
var Rn = Object.defineProperty, Un = Object.defineProperties, Dn = Object.getOwnPropertyDescriptors, ot = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jn = (e, t) => {
|
|
3561
|
+
for (var r in t)
|
|
3562
|
+
Gn.call(t, r) && at(e, r, t[r]);
|
|
3563
|
+
if (ot)
|
|
3564
|
+
for (var r of ot(t))
|
|
3565
|
+
Fn.call(t, r) && at(e, r, t[r]);
|
|
3568
3566
|
return e;
|
|
3569
|
-
},
|
|
3570
|
-
let
|
|
3571
|
-
const
|
|
3572
|
-
function
|
|
3567
|
+
}, kn = (e, t) => Un(e, Dn(t));
|
|
3568
|
+
let je;
|
|
3569
|
+
const be = ye(null);
|
|
3570
|
+
function ut(e) {
|
|
3573
3571
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3574
3572
|
}
|
|
3575
|
-
function
|
|
3576
|
-
const r =
|
|
3577
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3573
|
+
function ve(e, t = J().fallbackLocale) {
|
|
3574
|
+
const r = ut(e);
|
|
3575
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ut(t)])] : r;
|
|
3578
3576
|
}
|
|
3579
|
-
function
|
|
3580
|
-
return
|
|
3577
|
+
function k() {
|
|
3578
|
+
return je ?? void 0;
|
|
3581
3579
|
}
|
|
3582
|
-
|
|
3583
|
-
|
|
3580
|
+
be.subscribe((e) => {
|
|
3581
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3584
3582
|
});
|
|
3585
|
-
const
|
|
3586
|
-
if (e &&
|
|
3587
|
-
const { loadingDelay: t } =
|
|
3583
|
+
const Vn = (e) => {
|
|
3584
|
+
if (e && wn(e) && Fe(e)) {
|
|
3585
|
+
const { loadingDelay: t } = J();
|
|
3588
3586
|
let r;
|
|
3589
|
-
return typeof window < "u" &&
|
|
3590
|
-
() =>
|
|
3587
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3588
|
+
() => we.set(!0),
|
|
3591
3589
|
t
|
|
3592
|
-
) :
|
|
3593
|
-
|
|
3590
|
+
) : we.set(!0), jt(e).then(() => {
|
|
3591
|
+
be.set(e);
|
|
3594
3592
|
}).finally(() => {
|
|
3595
|
-
clearTimeout(r),
|
|
3593
|
+
clearTimeout(r), we.set(!1);
|
|
3596
3594
|
});
|
|
3597
3595
|
}
|
|
3598
|
-
return
|
|
3599
|
-
},
|
|
3600
|
-
set:
|
|
3601
|
-
}),
|
|
3596
|
+
return be.set(e);
|
|
3597
|
+
}, ee = kn(jn({}, be), {
|
|
3598
|
+
set: Vn
|
|
3599
|
+
}), Te = (e) => {
|
|
3602
3600
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3603
3601
|
return (n) => {
|
|
3604
3602
|
const i = JSON.stringify(n);
|
|
3605
3603
|
return i in t ? t[i] : t[i] = e(n);
|
|
3606
3604
|
};
|
|
3607
3605
|
};
|
|
3608
|
-
var
|
|
3606
|
+
var Xn = Object.defineProperty, _e = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
3609
3607
|
for (var r in t || (t = {}))
|
|
3610
|
-
|
|
3611
|
-
if (
|
|
3612
|
-
for (var r of
|
|
3613
|
-
|
|
3608
|
+
kt.call(t, r) && ht(e, r, t[r]);
|
|
3609
|
+
if (_e)
|
|
3610
|
+
for (var r of _e(t))
|
|
3611
|
+
Vt.call(t, r) && ht(e, r, t[r]);
|
|
3614
3612
|
return e;
|
|
3615
|
-
},
|
|
3613
|
+
}, te = (e, t) => {
|
|
3616
3614
|
var r = {};
|
|
3617
3615
|
for (var n in e)
|
|
3618
|
-
|
|
3619
|
-
if (e != null &&
|
|
3620
|
-
for (var n of
|
|
3621
|
-
t.indexOf(n) < 0 &&
|
|
3616
|
+
kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3617
|
+
if (e != null && _e)
|
|
3618
|
+
for (var n of _e(e))
|
|
3619
|
+
t.indexOf(n) < 0 && Vt.call(e, n) && (r[n] = e[n]);
|
|
3622
3620
|
return r;
|
|
3623
3621
|
};
|
|
3624
|
-
const
|
|
3625
|
-
const { formats: r } =
|
|
3622
|
+
const oe = (e, t) => {
|
|
3623
|
+
const { formats: r } = J();
|
|
3626
3624
|
if (e in r && t in r[e])
|
|
3627
3625
|
return r[e][t];
|
|
3628
3626
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3629
|
-
},
|
|
3627
|
+
}, zn = Te(
|
|
3630
3628
|
(e) => {
|
|
3631
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3629
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3632
3630
|
if (r == null)
|
|
3633
3631
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3634
|
-
return n && (i =
|
|
3632
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3635
3633
|
}
|
|
3636
|
-
),
|
|
3634
|
+
), Wn = Te(
|
|
3637
3635
|
(e) => {
|
|
3638
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3636
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3639
3637
|
if (r == null)
|
|
3640
3638
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3641
|
-
return n ? i =
|
|
3639
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3642
3640
|
}
|
|
3643
|
-
),
|
|
3641
|
+
), Zn = Te(
|
|
3644
3642
|
(e) => {
|
|
3645
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3643
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3646
3644
|
if (r == null)
|
|
3647
3645
|
throw new Error(
|
|
3648
3646
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3649
3647
|
);
|
|
3650
|
-
return n ? i =
|
|
3648
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3651
3649
|
}
|
|
3652
|
-
),
|
|
3650
|
+
), Qn = (e = {}) => {
|
|
3653
3651
|
var t = e, {
|
|
3654
|
-
locale: r =
|
|
3655
|
-
} = t, n =
|
|
3652
|
+
locale: r = k()
|
|
3653
|
+
} = t, n = te(t, [
|
|
3656
3654
|
"locale"
|
|
3657
3655
|
]);
|
|
3658
|
-
return
|
|
3659
|
-
},
|
|
3656
|
+
return zn(ze({ locale: r }, n));
|
|
3657
|
+
}, qn = (e = {}) => {
|
|
3660
3658
|
var t = e, {
|
|
3661
|
-
locale: r =
|
|
3662
|
-
} = t, n =
|
|
3659
|
+
locale: r = k()
|
|
3660
|
+
} = t, n = te(t, [
|
|
3663
3661
|
"locale"
|
|
3664
3662
|
]);
|
|
3665
|
-
return
|
|
3666
|
-
},
|
|
3663
|
+
return Wn(ze({ locale: r }, n));
|
|
3664
|
+
}, Jn = (e = {}) => {
|
|
3667
3665
|
var t = e, {
|
|
3668
|
-
locale: r =
|
|
3669
|
-
} = t, n =
|
|
3666
|
+
locale: r = k()
|
|
3667
|
+
} = t, n = te(t, [
|
|
3670
3668
|
"locale"
|
|
3671
3669
|
]);
|
|
3672
|
-
return
|
|
3673
|
-
},
|
|
3670
|
+
return Zn(ze({ locale: r }, n));
|
|
3671
|
+
}, Yn = Te(
|
|
3674
3672
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3675
|
-
(e, t =
|
|
3676
|
-
ignoreTag:
|
|
3673
|
+
(e, t = k()) => new Hn(e, t, J().formats, {
|
|
3674
|
+
ignoreTag: J().ignoreTag
|
|
3677
3675
|
})
|
|
3678
|
-
),
|
|
3676
|
+
), Kn = (e, t = {}) => {
|
|
3679
3677
|
var r, n, i, s;
|
|
3680
3678
|
let o = t;
|
|
3681
3679
|
typeof e == "object" && (o = e, e = o.id);
|
|
3682
3680
|
const {
|
|
3683
3681
|
values: u,
|
|
3684
|
-
locale: l =
|
|
3682
|
+
locale: l = k(),
|
|
3685
3683
|
default: a
|
|
3686
3684
|
} = o;
|
|
3687
3685
|
if (l == null)
|
|
3688
3686
|
throw new Error(
|
|
3689
3687
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3690
3688
|
);
|
|
3691
|
-
let h =
|
|
3689
|
+
let h = Ut(e, l);
|
|
3692
3690
|
if (!h)
|
|
3693
|
-
h = (s = (i = (n = (r =
|
|
3691
|
+
h = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3694
3692
|
else if (typeof h != "string")
|
|
3695
3693
|
return console.warn(
|
|
3696
3694
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3699,7 +3697,7 @@ const ae = (e, t) => {
|
|
|
3699
3697
|
return h;
|
|
3700
3698
|
let c = h;
|
|
3701
3699
|
try {
|
|
3702
|
-
c =
|
|
3700
|
+
c = Yn(h, l).format(u);
|
|
3703
3701
|
} catch (f) {
|
|
3704
3702
|
f instanceof Error && console.warn(
|
|
3705
3703
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3707,18 +3705,18 @@ const ae = (e, t) => {
|
|
|
3707
3705
|
);
|
|
3708
3706
|
}
|
|
3709
3707
|
return c;
|
|
3710
|
-
},
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
function
|
|
3708
|
+
}, ei = (e, t) => Jn(t).format(e), ti = (e, t) => qn(t).format(e), ri = (e, t) => Qn(t).format(e), ni = (e, t = k()) => Ut(e, t), ii = K([ee, ue], () => Kn);
|
|
3709
|
+
K([ee], () => ei);
|
|
3710
|
+
K([ee], () => ti);
|
|
3711
|
+
K([ee], () => ri);
|
|
3712
|
+
K([ee, ue], () => ni);
|
|
3713
|
+
function si(e, t) {
|
|
3716
3714
|
if (e) {
|
|
3717
3715
|
const r = document.createElement("style");
|
|
3718
3716
|
r.innerHTML = t, e.appendChild(r);
|
|
3719
3717
|
}
|
|
3720
3718
|
}
|
|
3721
|
-
function
|
|
3719
|
+
function oi(e, t) {
|
|
3722
3720
|
const r = new URL(t);
|
|
3723
3721
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3724
3722
|
const i = document.createElement("style");
|
|
@@ -3727,7 +3725,7 @@ function ai(e, t) {
|
|
|
3727
3725
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3728
3726
|
});
|
|
3729
3727
|
}
|
|
3730
|
-
function
|
|
3728
|
+
function ai(e, t, r) {
|
|
3731
3729
|
if (window.emMessageBus) {
|
|
3732
3730
|
const n = document.createElement("style");
|
|
3733
3731
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3735,13 +3733,13 @@ function ui(e, t, r) {
|
|
|
3735
3733
|
});
|
|
3736
3734
|
}
|
|
3737
3735
|
}
|
|
3738
|
-
function
|
|
3739
|
-
|
|
3736
|
+
function lt(e, t) {
|
|
3737
|
+
Gt(e, t);
|
|
3740
3738
|
}
|
|
3741
|
-
function
|
|
3742
|
-
|
|
3739
|
+
function ui(e) {
|
|
3740
|
+
ee.set(e);
|
|
3743
3741
|
}
|
|
3744
|
-
const
|
|
3742
|
+
const ft = {
|
|
3745
3743
|
en: {
|
|
3746
3744
|
topCategories: "Top Categories",
|
|
3747
3745
|
otherCategories: "Other Categories",
|
|
@@ -3851,67 +3849,67 @@ const ct = {
|
|
|
3851
3849
|
games: "games"
|
|
3852
3850
|
}
|
|
3853
3851
|
};
|
|
3854
|
-
function
|
|
3855
|
-
|
|
3852
|
+
function hi(e) {
|
|
3853
|
+
qt(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}");
|
|
3856
3854
|
}
|
|
3857
|
-
function
|
|
3855
|
+
function ct(e, t, r) {
|
|
3858
3856
|
const n = e.slice();
|
|
3859
3857
|
return n[23] = t[r], n;
|
|
3860
3858
|
}
|
|
3861
|
-
function
|
|
3859
|
+
function gt(e, t, r) {
|
|
3862
3860
|
const n = e.slice();
|
|
3863
3861
|
return n[23] = t[r], n;
|
|
3864
3862
|
}
|
|
3865
|
-
function
|
|
3863
|
+
function li(e) {
|
|
3866
3864
|
let t, r, n = (
|
|
3867
3865
|
/*$_*/
|
|
3868
3866
|
e[5]("topCategories") + ""
|
|
3869
3867
|
), i, s, o, u, l = (
|
|
3870
3868
|
/*$_*/
|
|
3871
3869
|
e[5]("otherCategories") + ""
|
|
3872
|
-
), a, h, c =
|
|
3870
|
+
), a, h, c = fe(
|
|
3873
3871
|
/*topCategories*/
|
|
3874
3872
|
e[3]
|
|
3875
3873
|
), f = [];
|
|
3876
3874
|
for (let g = 0; g < c.length; g += 1)
|
|
3877
|
-
f[g] =
|
|
3878
|
-
let
|
|
3875
|
+
f[g] = mt(gt(e, c, g));
|
|
3876
|
+
let d = fe(
|
|
3879
3877
|
/*otherCategories*/
|
|
3880
3878
|
e[4]
|
|
3881
|
-
),
|
|
3882
|
-
for (let g = 0; g <
|
|
3883
|
-
|
|
3879
|
+
), p = [];
|
|
3880
|
+
for (let g = 0; g < d.length; g += 1)
|
|
3881
|
+
p[g] = dt(ct(e, d, g));
|
|
3884
3882
|
return {
|
|
3885
3883
|
c() {
|
|
3886
|
-
t =
|
|
3884
|
+
t = S("div"), r = S("h4"), i = U(n), s = R();
|
|
3887
3885
|
for (let g = 0; g < f.length; g += 1)
|
|
3888
3886
|
f[g].c();
|
|
3889
|
-
o =
|
|
3890
|
-
for (let g = 0; g <
|
|
3891
|
-
|
|
3887
|
+
o = R(), u = S("h4"), a = U(l), h = R();
|
|
3888
|
+
for (let g = 0; g < p.length; g += 1)
|
|
3889
|
+
p[g].c();
|
|
3892
3890
|
L(r, "class", "CategoryTitle"), L(u, "class", "CategoryTitle"), L(t, "class", "CasinoCategories");
|
|
3893
3891
|
},
|
|
3894
3892
|
m(g, E) {
|
|
3895
|
-
|
|
3893
|
+
Y(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3896
3894
|
for (let m = 0; m < f.length; m += 1)
|
|
3897
3895
|
f[m] && f[m].m(t, null);
|
|
3898
|
-
|
|
3899
|
-
for (let m = 0; m <
|
|
3900
|
-
|
|
3896
|
+
v(t, o), v(t, u), v(u, a), v(t, h);
|
|
3897
|
+
for (let m = 0; m < p.length; m += 1)
|
|
3898
|
+
p[m] && p[m].m(t, null);
|
|
3901
3899
|
},
|
|
3902
3900
|
p(g, E) {
|
|
3903
3901
|
if (E & /*$_*/
|
|
3904
3902
|
32 && n !== (n = /*$_*/
|
|
3905
|
-
g[5]("topCategories") + "") &&
|
|
3903
|
+
g[5]("topCategories") + "") && G(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3906
3904
|
105) {
|
|
3907
|
-
c =
|
|
3905
|
+
c = fe(
|
|
3908
3906
|
/*topCategories*/
|
|
3909
3907
|
g[3]
|
|
3910
3908
|
);
|
|
3911
3909
|
let m;
|
|
3912
3910
|
for (m = 0; m < c.length; m += 1) {
|
|
3913
|
-
const
|
|
3914
|
-
f[m] ? f[m].p(
|
|
3911
|
+
const C = gt(g, c, m);
|
|
3912
|
+
f[m] ? f[m].p(C, E) : (f[m] = mt(C), f[m].c(), f[m].m(t, o));
|
|
3915
3913
|
}
|
|
3916
3914
|
for (; m < f.length; m += 1)
|
|
3917
3915
|
f[m].d(1);
|
|
@@ -3919,53 +3917,53 @@ function fi(e) {
|
|
|
3919
3917
|
}
|
|
3920
3918
|
if (E & /*$_*/
|
|
3921
3919
|
32 && l !== (l = /*$_*/
|
|
3922
|
-
g[5]("otherCategories") + "") &&
|
|
3920
|
+
g[5]("otherCategories") + "") && G(a, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3923
3921
|
113) {
|
|
3924
|
-
|
|
3922
|
+
d = fe(
|
|
3925
3923
|
/*otherCategories*/
|
|
3926
3924
|
g[4]
|
|
3927
3925
|
);
|
|
3928
3926
|
let m;
|
|
3929
|
-
for (m = 0; m <
|
|
3930
|
-
const
|
|
3931
|
-
|
|
3927
|
+
for (m = 0; m < d.length; m += 1) {
|
|
3928
|
+
const C = ct(g, d, m);
|
|
3929
|
+
p[m] ? p[m].p(C, E) : (p[m] = dt(C), p[m].c(), p[m].m(t, null));
|
|
3932
3930
|
}
|
|
3933
|
-
for (; m <
|
|
3934
|
-
|
|
3935
|
-
|
|
3931
|
+
for (; m < p.length; m += 1)
|
|
3932
|
+
p[m].d(1);
|
|
3933
|
+
p.length = d.length;
|
|
3936
3934
|
}
|
|
3937
3935
|
},
|
|
3938
3936
|
d(g) {
|
|
3939
|
-
g &&
|
|
3937
|
+
g && j(t), Qe(f, g), Qe(p, g);
|
|
3940
3938
|
}
|
|
3941
3939
|
};
|
|
3942
3940
|
}
|
|
3943
|
-
function
|
|
3941
|
+
function fi(e) {
|
|
3944
3942
|
let t;
|
|
3945
3943
|
return {
|
|
3946
3944
|
c() {
|
|
3947
|
-
t =
|
|
3945
|
+
t = S("p"), t.textContent = "Loading, please wait...", L(t, "class", "Message");
|
|
3948
3946
|
},
|
|
3949
3947
|
m(r, n) {
|
|
3950
|
-
|
|
3948
|
+
Y(r, t, n);
|
|
3951
3949
|
},
|
|
3952
3950
|
p: N,
|
|
3953
3951
|
d(r) {
|
|
3954
|
-
r &&
|
|
3952
|
+
r && j(t);
|
|
3955
3953
|
}
|
|
3956
3954
|
};
|
|
3957
3955
|
}
|
|
3958
|
-
function
|
|
3956
|
+
function mt(e) {
|
|
3959
3957
|
let t, r, n, i, s, o, u, l = (
|
|
3960
3958
|
/*category*/
|
|
3961
3959
|
e[23].name + ""
|
|
3962
3960
|
), a, h, c, f = (
|
|
3963
3961
|
/*category*/
|
|
3964
3962
|
e[23].games.count + ""
|
|
3965
|
-
),
|
|
3963
|
+
), d, p, g = (
|
|
3966
3964
|
/*$_*/
|
|
3967
3965
|
e[5]("games") + ""
|
|
3968
|
-
), E, m,
|
|
3966
|
+
), E, m, C, A;
|
|
3969
3967
|
function w() {
|
|
3970
3968
|
return (
|
|
3971
3969
|
/*click_handler*/
|
|
@@ -3977,33 +3975,33 @@ function pt(e) {
|
|
|
3977
3975
|
}
|
|
3978
3976
|
return {
|
|
3979
3977
|
c() {
|
|
3980
|
-
t =
|
|
3978
|
+
t = S("div"), r = S("ui-image"), s = R(), o = S("div"), u = S("p"), a = U(l), h = R(), c = S("p"), d = U(f), p = R(), E = U(g), pe(r.src, n = /*category*/
|
|
3981
3979
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
3982
3980
|
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class", m = "Category " + /*activecategory*/
|
|
3983
3981
|
(e[0] === /*category*/
|
|
3984
3982
|
e[23].id ? "Active" : ""));
|
|
3985
3983
|
},
|
|
3986
|
-
m(
|
|
3987
|
-
|
|
3984
|
+
m(B, H) {
|
|
3985
|
+
Y(B, t, H), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, d), v(c, p), v(c, E), C || (A = yt(t, "click", w), C = !0);
|
|
3988
3986
|
},
|
|
3989
|
-
p(
|
|
3990
|
-
e =
|
|
3991
|
-
8 && !
|
|
3987
|
+
p(B, H) {
|
|
3988
|
+
e = B, H & /*topCategories*/
|
|
3989
|
+
8 && !pe(r.src, n = /*category*/
|
|
3992
3990
|
e[23].icon) && $(r, "src", n), H & /*topCategories*/
|
|
3993
3991
|
8 && i !== (i = /*category*/
|
|
3994
3992
|
e[23].name) && $(r, "alt", i), H & /*topCategories*/
|
|
3995
3993
|
8 && l !== (l = /*category*/
|
|
3996
|
-
e[23].name + "") &&
|
|
3994
|
+
e[23].name + "") && G(a, l), H & /*topCategories*/
|
|
3997
3995
|
8 && f !== (f = /*category*/
|
|
3998
|
-
e[23].games.count + "") &&
|
|
3996
|
+
e[23].games.count + "") && G(d, f), H & /*$_*/
|
|
3999
3997
|
32 && g !== (g = /*$_*/
|
|
4000
|
-
e[5]("games") + "") &&
|
|
3998
|
+
e[5]("games") + "") && G(E, g), H & /*activecategory, topCategories*/
|
|
4001
3999
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4002
4000
|
(e[0] === /*category*/
|
|
4003
4001
|
e[23].id ? "Active" : "")) && L(t, "class", m);
|
|
4004
4002
|
},
|
|
4005
|
-
d(
|
|
4006
|
-
|
|
4003
|
+
d(B) {
|
|
4004
|
+
B && j(t), C = !1, A();
|
|
4007
4005
|
}
|
|
4008
4006
|
};
|
|
4009
4007
|
}
|
|
@@ -4014,11 +4012,11 @@ function dt(e) {
|
|
|
4014
4012
|
), a, h, c, f = (
|
|
4015
4013
|
/*category*/
|
|
4016
4014
|
e[23].games.count + ""
|
|
4017
|
-
),
|
|
4015
|
+
), d, p, g = (
|
|
4018
4016
|
/*$_*/
|
|
4019
4017
|
e[5]("games") + ""
|
|
4020
|
-
), E, m,
|
|
4021
|
-
function
|
|
4018
|
+
), E, m, C, A, w;
|
|
4019
|
+
function B() {
|
|
4022
4020
|
return (
|
|
4023
4021
|
/*click_handler_1*/
|
|
4024
4022
|
e[16](
|
|
@@ -4029,51 +4027,51 @@ function dt(e) {
|
|
|
4029
4027
|
}
|
|
4030
4028
|
return {
|
|
4031
4029
|
c() {
|
|
4032
|
-
t =
|
|
4030
|
+
t = S("div"), r = S("ui-image"), s = R(), o = S("div"), u = S("p"), a = U(l), h = R(), c = S("p"), d = U(f), p = R(), E = U(g), m = R(), pe(r.src, n = /*category*/
|
|
4033
4031
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4034
|
-
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class",
|
|
4032
|
+
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class", C = "Category " + /*activecategory*/
|
|
4035
4033
|
(e[0] === /*category*/
|
|
4036
4034
|
e[23].id ? "Active" : ""));
|
|
4037
4035
|
},
|
|
4038
4036
|
m(H, P) {
|
|
4039
|
-
|
|
4037
|
+
Y(H, t, P), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, d), v(c, p), v(c, E), v(t, m), A || (w = yt(t, "click", B), A = !0);
|
|
4040
4038
|
},
|
|
4041
4039
|
p(H, P) {
|
|
4042
4040
|
e = H, P & /*otherCategories*/
|
|
4043
|
-
16 && !
|
|
4041
|
+
16 && !pe(r.src, n = /*category*/
|
|
4044
4042
|
e[23].icon) && $(r, "src", n), P & /*otherCategories*/
|
|
4045
4043
|
16 && i !== (i = /*category*/
|
|
4046
4044
|
e[23].name) && $(r, "alt", i), P & /*otherCategories*/
|
|
4047
4045
|
16 && l !== (l = /*category*/
|
|
4048
|
-
e[23].name + "") &&
|
|
4046
|
+
e[23].name + "") && G(a, l), P & /*otherCategories*/
|
|
4049
4047
|
16 && f !== (f = /*category*/
|
|
4050
|
-
e[23].games.count + "") &&
|
|
4048
|
+
e[23].games.count + "") && G(d, f), P & /*$_*/
|
|
4051
4049
|
32 && g !== (g = /*$_*/
|
|
4052
|
-
e[5]("games") + "") &&
|
|
4053
|
-
17 &&
|
|
4050
|
+
e[5]("games") + "") && G(E, g), P & /*activecategory, otherCategories*/
|
|
4051
|
+
17 && C !== (C = "Category " + /*activecategory*/
|
|
4054
4052
|
(e[0] === /*category*/
|
|
4055
|
-
e[23].id ? "Active" : "")) && L(t, "class",
|
|
4053
|
+
e[23].id ? "Active" : "")) && L(t, "class", C);
|
|
4056
4054
|
},
|
|
4057
4055
|
d(H) {
|
|
4058
|
-
H &&
|
|
4056
|
+
H && j(t), A = !1, w();
|
|
4059
4057
|
}
|
|
4060
4058
|
};
|
|
4061
4059
|
}
|
|
4062
|
-
function
|
|
4060
|
+
function ci(e) {
|
|
4063
4061
|
let t;
|
|
4064
4062
|
function r(s, o) {
|
|
4065
4063
|
return (
|
|
4066
4064
|
/*isLoading*/
|
|
4067
|
-
s[2] ?
|
|
4065
|
+
s[2] ? fi : li
|
|
4068
4066
|
);
|
|
4069
4067
|
}
|
|
4070
4068
|
let n = r(e), i = n(e);
|
|
4071
4069
|
return {
|
|
4072
4070
|
c() {
|
|
4073
|
-
t =
|
|
4071
|
+
t = S("div"), i.c();
|
|
4074
4072
|
},
|
|
4075
4073
|
m(s, o) {
|
|
4076
|
-
|
|
4074
|
+
Y(s, t, o), i.m(t, null), e[17](t);
|
|
4077
4075
|
},
|
|
4078
4076
|
p(s, [o]) {
|
|
4079
4077
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4081,64 +4079,64 @@ function gi(e) {
|
|
|
4081
4079
|
i: N,
|
|
4082
4080
|
o: N,
|
|
4083
4081
|
d(s) {
|
|
4084
|
-
s &&
|
|
4082
|
+
s && j(t), i.d(), e[17](null);
|
|
4085
4083
|
}
|
|
4086
4084
|
};
|
|
4087
4085
|
}
|
|
4088
|
-
function
|
|
4086
|
+
function gi(e, t, r) {
|
|
4089
4087
|
let n;
|
|
4090
|
-
|
|
4091
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t,
|
|
4088
|
+
Qt(e, ii, (b) => r(5, n = b));
|
|
4089
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, d, p = !1;
|
|
4092
4090
|
const g = [];
|
|
4093
4091
|
let E = [], m = [];
|
|
4094
|
-
Object.keys(
|
|
4095
|
-
|
|
4092
|
+
Object.keys(ft).forEach((b) => {
|
|
4093
|
+
lt(b, ft[b]);
|
|
4096
4094
|
});
|
|
4097
|
-
const
|
|
4095
|
+
const C = () => {
|
|
4098
4096
|
fetch(c).then((M) => M.json()).then((M) => {
|
|
4099
|
-
Object.keys(M).forEach((
|
|
4100
|
-
|
|
4097
|
+
Object.keys(M).forEach((he) => {
|
|
4098
|
+
lt(he, M[he]);
|
|
4101
4099
|
});
|
|
4102
4100
|
}).catch((M) => {
|
|
4103
4101
|
console.log(M);
|
|
4104
4102
|
});
|
|
4105
|
-
},
|
|
4106
|
-
r(2,
|
|
4103
|
+
}, A = () => {
|
|
4104
|
+
r(2, p = !0);
|
|
4107
4105
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4108
4106
|
b.searchParams.append("language", o), fetch(b).then((M) => M.json()).then((M) => {
|
|
4109
|
-
r(2,
|
|
4110
|
-
const
|
|
4107
|
+
r(2, p = !1);
|
|
4108
|
+
const he = l.split(",").map((F) => F.trim());
|
|
4111
4109
|
g.push(...M.items);
|
|
4112
|
-
const
|
|
4113
|
-
r(3, E =
|
|
4110
|
+
const We = g.filter((F) => !he.some((Wt) => F.flags?.indexOf(Wt) >= 0));
|
|
4111
|
+
r(3, E = We.filter((F) => F.isTopCategory === !0)), r(4, m = We.filter((F) => F.isTopCategory === !1));
|
|
4114
4112
|
});
|
|
4115
4113
|
}, w = (b) => {
|
|
4116
4114
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4117
|
-
},
|
|
4118
|
-
|
|
4115
|
+
}, B = () => {
|
|
4116
|
+
ui(o);
|
|
4119
4117
|
};
|
|
4120
|
-
|
|
4118
|
+
rr(() => () => {
|
|
4121
4119
|
});
|
|
4122
4120
|
const H = (b) => w(b.id), P = (b) => w(b.id);
|
|
4123
|
-
function
|
|
4124
|
-
|
|
4125
|
-
|
|
4121
|
+
function zt(b) {
|
|
4122
|
+
Pe[b ? "unshift" : "push"](() => {
|
|
4123
|
+
d = b, r(1, d);
|
|
4126
4124
|
});
|
|
4127
4125
|
}
|
|
4128
4126
|
return e.$$set = (b) => {
|
|
4129
4127
|
"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, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4130
4128
|
}, e.$$.update = () => {
|
|
4131
4129
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4132
|
-
384 && i && s &&
|
|
4133
|
-
8192 && c &&
|
|
4134
|
-
512 && o &&
|
|
4135
|
-
2050 && a &&
|
|
4136
|
-
4098 && h &&
|
|
4137
|
-
16386 && f &&
|
|
4130
|
+
384 && i && s && A(), e.$$.dirty & /*translationurl*/
|
|
4131
|
+
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4132
|
+
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4133
|
+
2050 && a && d && si(d, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4134
|
+
4098 && h && d && oi(d, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4135
|
+
16386 && f && d && ai(d, `${f}.Style`);
|
|
4138
4136
|
}, [
|
|
4139
4137
|
u,
|
|
4140
|
-
p,
|
|
4141
4138
|
d,
|
|
4139
|
+
p,
|
|
4142
4140
|
E,
|
|
4143
4141
|
m,
|
|
4144
4142
|
n,
|
|
@@ -4153,17 +4151,17 @@ function mi(e, t, r) {
|
|
|
4153
4151
|
f,
|
|
4154
4152
|
H,
|
|
4155
4153
|
P,
|
|
4156
|
-
|
|
4154
|
+
zt
|
|
4157
4155
|
];
|
|
4158
4156
|
}
|
|
4159
|
-
class
|
|
4157
|
+
class Xt extends mr {
|
|
4160
4158
|
constructor(t) {
|
|
4161
|
-
super(),
|
|
4159
|
+
super(), cr(
|
|
4162
4160
|
this,
|
|
4163
4161
|
t,
|
|
4164
|
-
mi,
|
|
4165
4162
|
gi,
|
|
4166
|
-
|
|
4163
|
+
ci,
|
|
4164
|
+
bt,
|
|
4167
4165
|
{
|
|
4168
4166
|
endpoint: 7,
|
|
4169
4167
|
datasource: 8,
|
|
@@ -4175,7 +4173,7 @@ class zt extends pr {
|
|
|
4175
4173
|
translationurl: 13,
|
|
4176
4174
|
mbsource: 14
|
|
4177
4175
|
},
|
|
4178
|
-
|
|
4176
|
+
hi
|
|
4179
4177
|
);
|
|
4180
4178
|
}
|
|
4181
4179
|
get endpoint() {
|
|
@@ -4233,42 +4231,42 @@ class zt extends pr {
|
|
|
4233
4231
|
this.$$set({ mbsource: t }), I();
|
|
4234
4232
|
}
|
|
4235
4233
|
}
|
|
4236
|
-
|
|
4237
|
-
const
|
|
4234
|
+
gr(Xt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4235
|
+
const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4238
4236
|
__proto__: null,
|
|
4239
|
-
default:
|
|
4237
|
+
default: Xt
|
|
4240
4238
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4241
4239
|
export {
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4240
|
+
ee as $,
|
|
4241
|
+
di as A,
|
|
4242
|
+
Qe as B,
|
|
4243
|
+
pe as C,
|
|
4244
|
+
pi as D,
|
|
4245
|
+
mr as S,
|
|
4246
|
+
Gt as a,
|
|
4247
|
+
qt as b,
|
|
4248
|
+
gr as c,
|
|
4249
|
+
R as d,
|
|
4250
|
+
S as e,
|
|
4253
4251
|
I as f,
|
|
4254
4252
|
L as g,
|
|
4255
4253
|
$ as h,
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4254
|
+
cr as i,
|
|
4255
|
+
Y as j,
|
|
4256
|
+
v as k,
|
|
4257
|
+
yt as l,
|
|
4258
|
+
G as m,
|
|
4261
4259
|
N as n,
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4260
|
+
j as o,
|
|
4261
|
+
Qt as p,
|
|
4262
|
+
rr as q,
|
|
4263
|
+
ae as r,
|
|
4264
|
+
bt as s,
|
|
4265
|
+
U as t,
|
|
4266
|
+
Pe as u,
|
|
4269
4267
|
si as v,
|
|
4270
4268
|
oi as w,
|
|
4271
4269
|
ai as x,
|
|
4272
|
-
|
|
4273
|
-
|
|
4270
|
+
ii as y,
|
|
4271
|
+
fe as z
|
|
4274
4272
|
};
|