@everymatrix/casino-my-games 1.76.13 → 1.76.14
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/{CasinoFavoritesSection-B3pEkaj2.js → CasinoFavoritesSection-B-MRzqhl.js} +1046 -1014
- package/components/CasinoFavoritesSection-D_1sxmH7.cjs +16 -0
- package/components/{CasinoFavoritesSection-CQr8UvU0.js → CasinoFavoritesSection-DnCwpRS8.js} +1080 -1048
- package/components/{CasinoFilter-B3CTNpq8.js → CasinoFilter-6hSlqzNN.js} +394 -442
- package/components/CasinoFilter-WaXxmOoP.cjs +3 -0
- package/components/{CasinoFilter-DHOg5r46.js → CasinoFilter-hTik_DMi.js} +368 -418
- package/components/{CasinoGameThumbnail-5QPfcvz6.js → CasinoGameThumbnail-Cdh7FWMx.js} +763 -779
- package/components/CasinoGameThumbnail-CoE-2CoV.cjs +47 -0
- package/components/{CasinoGameThumbnail-CeRl29M_.js → CasinoGameThumbnail-Dqgnxloz.js} +1269 -1253
- package/components/{CasinoGamesCategorySection-DC-cLwC0.js → CasinoGamesCategorySection-CflCzpHG.js} +250 -250
- package/components/{CasinoGamesCategorySection-D-EjQJEe.js → CasinoGamesCategorySection-DLajhbPV.js} +279 -279
- package/components/{CasinoGamesCategorySection-pkgXmHpr.cjs → CasinoGamesCategorySection-DqMzTzfr.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-B7NfjaUA.js → CasinoLastPlayedSection-BtB2lxBj.js} +44 -44
- package/components/{CasinoLastPlayedSection-Box-W61n.cjs → CasinoLastPlayedSection-ByuOEjhF.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-CpOHO02C.js → CasinoLastPlayedSection-MME2evx3.js} +44 -44
- package/components/{CasinoMostPlayedSection-uXYqxGsV.cjs → CasinoMostPlayedSection-Vsrl2AWP.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-D0VW-UT-.js → CasinoMostPlayedSection-g707ETXH.js} +40 -40
- package/components/{CasinoMostPlayedSection-vPRUC_tQ.js → CasinoMostPlayedSection-nlGuFJds.js} +40 -40
- package/components/{CasinoMyGames-B6J7jjL7.js → CasinoMyGames-BhyDz3QX.js} +26 -26
- package/components/{CasinoMyGames-2ynHpG_q.js → CasinoMyGames-BnrJCCrf.js} +31 -31
- package/components/{CasinoMyGames-J6rqicMH.cjs → CasinoMyGames-Zo-odYpg.cjs} +1 -1
- package/components/{CasinoSort-DBaVaajA.js → CasinoSort-DNsAGtM_.js} +108 -109
- package/components/{CasinoSort-ObufKJx-.cjs → CasinoSort-DpJCipkG.cjs} +1 -1
- package/components/{CasinoSort-Ufv6G2Hh.js → CasinoSort-_TMBCgdb.js} +117 -116
- package/es2015/casino-my-games.cjs +1 -1
- package/es2015/casino-my-games.js +1 -1
- package/esnext/casino-my-games.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
- package/stencil/index-242ac81a-Czg480dJ.js +554 -0
- package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
- package/stencil/{ui-image-DmRWEjrp.js → ui-image-BhXCYysO.js} +1 -1
- package/stencil/{ui-image-C0Jfm_O4.js → ui-image-CVwHW7a_.js} +1 -1
- package/stencil/{ui-image-EfKW3THf.cjs → ui-image-DrDalrqH.cjs} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-ID_1Oi3k.js} +2 -2
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-exO7RXKL.js} +2 -2
- package/components/CasinoFavoritesSection-CvKna4UX.cjs +0 -3
- package/components/CasinoFilter-Dh8MLWo7.cjs +0 -16
- package/components/CasinoGameThumbnail-DrUhuXvu.cjs +0 -47
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
package/components/{CasinoFavoritesSection-B3pEkaj2.js → CasinoFavoritesSection-B-MRzqhl.js}
RENAMED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function rt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
6
|
function Fe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function X(e) {
|
|
10
|
+
e.forEach(rt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Me(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function it(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let re;
|
|
19
|
+
function qr(e, t) {
|
|
20
|
+
return e === t ? !0 : (re || (re = document.createElement("a")), re.href = t, e === re.href);
|
|
21
21
|
}
|
|
22
22
|
function Rt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
25
|
function st(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
|
-
for (const
|
|
28
|
-
|
|
27
|
+
for (const r of t)
|
|
28
|
+
r(void 0);
|
|
29
29
|
return I;
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
return
|
|
31
|
+
const n = e.subscribe(...t);
|
|
32
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(st(t,
|
|
34
|
+
function Jr(e, t, n) {
|
|
35
|
+
e.$$.on_destroy.push(st(t, n));
|
|
36
36
|
}
|
|
37
37
|
function $t(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function Ut(e, t,
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent =
|
|
40
|
+
function Ut(e, t, n) {
|
|
41
|
+
const r = Dt(e);
|
|
42
|
+
if (!r.getElementById(t)) {
|
|
43
|
+
const i = te("style");
|
|
44
|
+
i.id = t, i.textContent = n, Gt(r, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
function Dt(e) {
|
|
@@ -61,17 +61,17 @@ function Gt(e, t) {
|
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.insertBefore(t,
|
|
64
|
+
function le(e, t, n) {
|
|
65
|
+
e.insertBefore(t, n || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ee(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
for (let
|
|
72
|
-
e[
|
|
70
|
+
function Yr(e, t) {
|
|
71
|
+
for (let n = 0; n < e.length; n += 1)
|
|
72
|
+
e[n] && e[n].d(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function te(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
77
|
function Ft(e) {
|
|
@@ -80,21 +80,21 @@ function Ft(e) {
|
|
|
80
80
|
function at(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Kr() {
|
|
84
84
|
return at(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ei() {
|
|
87
87
|
return at("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return e.addEventListener(t,
|
|
89
|
+
function ti(e, t, n, r) {
|
|
90
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
92
|
+
function Re(e, t, n) {
|
|
93
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
94
94
|
}
|
|
95
|
-
function g(e, t,
|
|
96
|
-
const
|
|
97
|
-
|
|
95
|
+
function g(e, t, n) {
|
|
96
|
+
const r = t.toLowerCase();
|
|
97
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : Re(e, t, n);
|
|
98
98
|
}
|
|
99
99
|
function jt(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
@@ -103,13 +103,13 @@ function ni(e, t) {
|
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ri(e, t) {
|
|
107
107
|
e.value = t ?? "";
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
e.classList.toggle(t, !!
|
|
109
|
+
function ii(e, t, n) {
|
|
110
|
+
e.classList.toggle(t, !!n);
|
|
111
111
|
}
|
|
112
|
-
class
|
|
112
|
+
class si {
|
|
113
113
|
/**
|
|
114
114
|
* @private
|
|
115
115
|
* @default false
|
|
@@ -139,17 +139,17 @@ class ai {
|
|
|
139
139
|
* @param {HTMLElement | SVGElement} anchor
|
|
140
140
|
* @returns {void}
|
|
141
141
|
*/
|
|
142
|
-
m(t,
|
|
142
|
+
m(t, n, r = null) {
|
|
143
143
|
this.e || (this.is_svg ? this.e = Ft(
|
|
144
144
|
/** @type {keyof SVGElementTagNameMap} */
|
|
145
|
-
|
|
146
|
-
) : this.e =
|
|
145
|
+
n.nodeName
|
|
146
|
+
) : this.e = te(
|
|
147
147
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
148
|
-
|
|
149
|
-
), this.t =
|
|
148
|
+
n.nodeType === 11 ? "TEMPLATE" : n.nodeName
|
|
149
|
+
), this.t = n.tagName !== "TEMPLATE" ? n : (
|
|
150
150
|
/** @type {HTMLTemplateElement} */
|
|
151
|
-
|
|
152
|
-
), this.c(t)), this.i(
|
|
151
|
+
n.content
|
|
152
|
+
), this.c(t)), this.i(r);
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
155
|
* @param {string} html
|
|
@@ -163,8 +163,8 @@ class ai {
|
|
|
163
163
|
/**
|
|
164
164
|
* @returns {void} */
|
|
165
165
|
i(t) {
|
|
166
|
-
for (let
|
|
167
|
-
|
|
166
|
+
for (let n = 0; n < this.n.length; n += 1)
|
|
167
|
+
le(this.t, this.n[n], t);
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* @param {string} html
|
|
@@ -176,139 +176,139 @@ class ai {
|
|
|
176
176
|
/**
|
|
177
177
|
* @returns {void} */
|
|
178
178
|
d() {
|
|
179
|
-
this.n.forEach(
|
|
179
|
+
this.n.forEach(ee);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
function kt(e) {
|
|
183
183
|
const t = {};
|
|
184
184
|
return e.childNodes.forEach(
|
|
185
185
|
/** @param {Element} node */
|
|
186
|
-
(
|
|
187
|
-
t[
|
|
186
|
+
(n) => {
|
|
187
|
+
t[n.slot || "default"] = !0;
|
|
188
188
|
}
|
|
189
189
|
), t;
|
|
190
190
|
}
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
|
|
191
|
+
let J;
|
|
192
|
+
function q(e) {
|
|
193
|
+
J = e;
|
|
194
194
|
}
|
|
195
195
|
function ot() {
|
|
196
|
-
if (!
|
|
196
|
+
if (!J)
|
|
197
197
|
throw new Error("Function called outside component initialization");
|
|
198
|
-
return
|
|
198
|
+
return J;
|
|
199
199
|
}
|
|
200
200
|
function Vt(e) {
|
|
201
201
|
ot().$$.on_mount.push(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ai(e) {
|
|
204
204
|
ot().$$.on_destroy.push(e);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
207
|
-
let
|
|
206
|
+
const D = [], He = [];
|
|
207
|
+
let G = [];
|
|
208
208
|
const je = [], ut = /* @__PURE__ */ Promise.resolve();
|
|
209
|
-
let
|
|
209
|
+
let Te = !1;
|
|
210
210
|
function ht() {
|
|
211
|
-
|
|
211
|
+
Te || (Te = !0, ut.then(H));
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function oi() {
|
|
214
214
|
return ht(), ut;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
216
|
+
function Se(e) {
|
|
217
|
+
G.push(e);
|
|
218
218
|
}
|
|
219
|
-
const
|
|
220
|
-
let
|
|
219
|
+
const be = /* @__PURE__ */ new Set();
|
|
220
|
+
let $ = 0;
|
|
221
221
|
function H() {
|
|
222
|
-
if (
|
|
222
|
+
if ($ !== 0)
|
|
223
223
|
return;
|
|
224
|
-
const e =
|
|
224
|
+
const e = J;
|
|
225
225
|
do {
|
|
226
226
|
try {
|
|
227
|
-
for (;
|
|
228
|
-
const t =
|
|
229
|
-
|
|
227
|
+
for (; $ < D.length; ) {
|
|
228
|
+
const t = D[$];
|
|
229
|
+
$++, q(t), Xt(t.$$);
|
|
230
230
|
}
|
|
231
231
|
} catch (t) {
|
|
232
|
-
throw
|
|
232
|
+
throw D.length = 0, $ = 0, t;
|
|
233
233
|
}
|
|
234
|
-
for (
|
|
235
|
-
|
|
236
|
-
for (let t = 0; t <
|
|
237
|
-
const
|
|
238
|
-
|
|
234
|
+
for (q(null), D.length = 0, $ = 0; He.length; )
|
|
235
|
+
He.pop()();
|
|
236
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
237
|
+
const n = G[t];
|
|
238
|
+
be.has(n) || (be.add(n), n());
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
} while (
|
|
240
|
+
G.length = 0;
|
|
241
|
+
} while (D.length);
|
|
242
242
|
for (; je.length; )
|
|
243
243
|
je.pop()();
|
|
244
|
-
|
|
244
|
+
Te = !1, be.clear(), q(e);
|
|
245
245
|
}
|
|
246
246
|
function Xt(e) {
|
|
247
247
|
if (e.fragment !== null) {
|
|
248
|
-
e.update(),
|
|
248
|
+
e.update(), X(e.before_update);
|
|
249
249
|
const t = e.dirty;
|
|
250
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
250
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
function zt(e) {
|
|
254
|
-
const t = [],
|
|
255
|
-
|
|
254
|
+
const t = [], n = [];
|
|
255
|
+
G.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), G = t;
|
|
256
256
|
}
|
|
257
257
|
const Wt = /* @__PURE__ */ new Set();
|
|
258
258
|
function lt(e, t) {
|
|
259
259
|
e && e.i && (Wt.delete(e), e.i(t));
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function ui(e) {
|
|
262
262
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function hi(e, t) {
|
|
265
265
|
e.d(1), t.delete(e.key);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function li(e, t, n, r, i, s, a, o, l, u, h, c) {
|
|
268
268
|
let f = e.length, b = s.length, y = f;
|
|
269
269
|
const x = {};
|
|
270
270
|
for (; y--; )
|
|
271
271
|
x[e[y].key] = y;
|
|
272
|
-
const S = [],
|
|
272
|
+
const S = [], N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), B = [];
|
|
273
273
|
for (y = b; y--; ) {
|
|
274
|
-
const
|
|
275
|
-
let L =
|
|
276
|
-
L ? B.push(() => L.p(
|
|
274
|
+
const _ = c(i, s, y), m = n(_);
|
|
275
|
+
let L = a.get(m);
|
|
276
|
+
L ? B.push(() => L.p(_, t)) : (L = u(m, _), L.c()), N.set(m, S[y] = L), m in x && P.set(m, Math.abs(y - x[m]));
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
function T(
|
|
280
|
-
lt(
|
|
278
|
+
const O = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
279
|
+
function T(_) {
|
|
280
|
+
lt(_, 1), _.m(o, h), a.set(_.key, _), h = _.first, b--;
|
|
281
281
|
}
|
|
282
282
|
for (; f && b; ) {
|
|
283
|
-
const
|
|
284
|
-
|
|
283
|
+
const _ = S[b - 1], m = e[f - 1], L = _.key, ne = m.key;
|
|
284
|
+
_ === m ? (h = _.first, f--, b--) : N.has(ne) ? !a.has(L) || O.has(L) ? T(_) : w.has(ne) ? f-- : P.get(L) > P.get(ne) ? (w.add(L), T(_)) : (O.add(ne), f--) : (l(m, a), f--);
|
|
285
285
|
}
|
|
286
286
|
for (; f--; ) {
|
|
287
|
-
const
|
|
288
|
-
|
|
287
|
+
const _ = e[f];
|
|
288
|
+
N.has(_.key) || l(_, a);
|
|
289
289
|
}
|
|
290
290
|
for (; b; )
|
|
291
291
|
T(S[b - 1]);
|
|
292
|
-
return
|
|
292
|
+
return X(B), S;
|
|
293
293
|
}
|
|
294
|
-
function Zt(e, t,
|
|
295
|
-
const { fragment:
|
|
296
|
-
|
|
297
|
-
const s = e.$$.on_mount.map(
|
|
298
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
299
|
-
}), i.forEach(
|
|
294
|
+
function Zt(e, t, n) {
|
|
295
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
296
|
+
r && r.m(t, n), Se(() => {
|
|
297
|
+
const s = e.$$.on_mount.map(rt).filter(Me);
|
|
298
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : X(s), e.$$.on_mount = [];
|
|
299
|
+
}), i.forEach(Se);
|
|
300
300
|
}
|
|
301
301
|
function Qt(e, t) {
|
|
302
|
-
const
|
|
303
|
-
|
|
302
|
+
const n = e.$$;
|
|
303
|
+
n.fragment !== null && (zt(n.after_update), X(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
304
304
|
}
|
|
305
305
|
function qt(e, t) {
|
|
306
|
-
e.$$.dirty[0] === -1 && (
|
|
306
|
+
e.$$.dirty[0] === -1 && (D.push(e), ht(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
307
307
|
}
|
|
308
|
-
function Jt(e, t,
|
|
309
|
-
const l =
|
|
310
|
-
|
|
311
|
-
const
|
|
308
|
+
function Jt(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
309
|
+
const l = J;
|
|
310
|
+
q(e);
|
|
311
|
+
const u = e.$$ = {
|
|
312
312
|
fragment: null,
|
|
313
313
|
ctx: [],
|
|
314
314
|
// state
|
|
@@ -329,20 +329,20 @@ function Jt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
329
329
|
skip_bound: !1,
|
|
330
330
|
root: t.target || l.$$.root
|
|
331
331
|
};
|
|
332
|
-
|
|
332
|
+
a && a(u.root);
|
|
333
333
|
let h = !1;
|
|
334
|
-
if (
|
|
334
|
+
if (u.ctx = n ? n(e, t.props || {}, (c, f, ...b) => {
|
|
335
335
|
const y = b.length ? b[0] : f;
|
|
336
|
-
return
|
|
337
|
-
}) : [],
|
|
336
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && qt(e, c)), f;
|
|
337
|
+
}) : [], u.update(), h = !0, X(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
338
338
|
if (t.hydrate) {
|
|
339
339
|
const c = jt(t.target);
|
|
340
|
-
|
|
340
|
+
u.fragment && u.fragment.l(c), c.forEach(ee);
|
|
341
341
|
} else
|
|
342
|
-
|
|
342
|
+
u.fragment && u.fragment.c();
|
|
343
343
|
t.intro && lt(e.$$.fragment), Zt(e, t.target, t.anchor), H();
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
q(l);
|
|
346
346
|
}
|
|
347
347
|
let ft;
|
|
348
348
|
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
@@ -364,20 +364,20 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
364
364
|
$$l = {};
|
|
365
365
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
366
366
|
$$l_u = /* @__PURE__ */ new Map();
|
|
367
|
-
constructor(e, t,
|
|
368
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
367
|
+
constructor(e, t, n) {
|
|
368
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
369
369
|
}
|
|
370
|
-
addEventListener(e, t,
|
|
370
|
+
addEventListener(e, t, n) {
|
|
371
371
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
372
|
-
const
|
|
373
|
-
this.$$l_u.set(t,
|
|
372
|
+
const r = this.$$c.$on(e, t);
|
|
373
|
+
this.$$l_u.set(t, r);
|
|
374
374
|
}
|
|
375
|
-
super.addEventListener(e, t,
|
|
375
|
+
super.addEventListener(e, t, n);
|
|
376
376
|
}
|
|
377
|
-
removeEventListener(e, t,
|
|
378
|
-
if (super.removeEventListener(e, t,
|
|
379
|
-
const
|
|
380
|
-
|
|
377
|
+
removeEventListener(e, t, n) {
|
|
378
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
379
|
+
const r = this.$$l_u.get(t);
|
|
380
|
+
r && (r(), this.$$l_u.delete(t));
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
async connectedCallback() {
|
|
@@ -387,29 +387,29 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
387
387
|
let s;
|
|
388
388
|
return {
|
|
389
389
|
c: function() {
|
|
390
|
-
s =
|
|
390
|
+
s = te("slot"), i !== "default" && Re(s, "name", i);
|
|
391
391
|
},
|
|
392
392
|
/**
|
|
393
393
|
* @param {HTMLElement} target
|
|
394
394
|
* @param {HTMLElement} [anchor]
|
|
395
395
|
*/
|
|
396
|
-
m: function(l,
|
|
397
|
-
|
|
396
|
+
m: function(l, u) {
|
|
397
|
+
le(l, s, u);
|
|
398
398
|
},
|
|
399
399
|
d: function(l) {
|
|
400
|
-
l &&
|
|
400
|
+
l && ee(s);
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
};
|
|
404
404
|
};
|
|
405
405
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
406
406
|
return;
|
|
407
|
-
const t = {},
|
|
407
|
+
const t = {}, n = kt(this);
|
|
408
408
|
for (const i of this.$$s)
|
|
409
|
-
i in
|
|
409
|
+
i in n && (t[i] = [e(i)]);
|
|
410
410
|
for (const i of this.attributes) {
|
|
411
411
|
const s = this.$$g_p(i.name);
|
|
412
|
-
s in this.$$d || (this.$$d[s] =
|
|
412
|
+
s in this.$$d || (this.$$d[s] = se(s, i.value, this.$$p_d, "toProp"));
|
|
413
413
|
}
|
|
414
414
|
for (const i in this.$$p_d)
|
|
415
415
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -423,11 +423,11 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
const
|
|
426
|
+
const r = () => {
|
|
427
427
|
this.$$r = !0;
|
|
428
428
|
for (const i in this.$$p_d)
|
|
429
429
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
430
|
-
const s =
|
|
430
|
+
const s = se(
|
|
431
431
|
i,
|
|
432
432
|
this.$$d[i],
|
|
433
433
|
this.$$p_d,
|
|
@@ -437,19 +437,19 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
437
437
|
}
|
|
438
438
|
this.$$r = !1;
|
|
439
439
|
};
|
|
440
|
-
this.$$c.$$.after_update.push(
|
|
440
|
+
this.$$c.$$.after_update.push(r), r();
|
|
441
441
|
for (const i in this.$$l)
|
|
442
442
|
for (const s of this.$$l[i]) {
|
|
443
|
-
const
|
|
444
|
-
this.$$l_u.set(s,
|
|
443
|
+
const a = this.$$c.$on(i, s);
|
|
444
|
+
this.$$l_u.set(s, a);
|
|
445
445
|
}
|
|
446
446
|
this.$$l = {};
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
450
450
|
// and setting attributes through setAttribute etc, this is helpful
|
|
451
|
-
attributeChangedCallback(e, t,
|
|
452
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
451
|
+
attributeChangedCallback(e, t, n) {
|
|
452
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = se(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
453
453
|
}
|
|
454
454
|
disconnectedCallback() {
|
|
455
455
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -462,11 +462,11 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
462
462
|
) || e;
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
|
-
function
|
|
466
|
-
const i =
|
|
467
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
465
|
+
function se(e, t, n, r) {
|
|
466
|
+
const i = n[e]?.type;
|
|
467
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
468
468
|
return t;
|
|
469
|
-
if (
|
|
469
|
+
if (r === "toAttribute")
|
|
470
470
|
switch (i) {
|
|
471
471
|
case "Object":
|
|
472
472
|
case "Array":
|
|
@@ -491,10 +491,10 @@ function ae(e, t, r, n) {
|
|
|
491
491
|
return t;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function Yt(e, t,
|
|
495
|
-
let
|
|
494
|
+
function Yt(e, t, n, r, i, s) {
|
|
495
|
+
let a = class extends ft {
|
|
496
496
|
constructor() {
|
|
497
|
-
super(e,
|
|
497
|
+
super(e, n, i), this.$$p_d = t;
|
|
498
498
|
}
|
|
499
499
|
static get observedAttributes() {
|
|
500
500
|
return Object.keys(t).map(
|
|
@@ -503,22 +503,22 @@ function Yt(e, t, r, n, i, s) {
|
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
505
|
return Object.keys(t).forEach((o) => {
|
|
506
|
-
Object.defineProperty(
|
|
506
|
+
Object.defineProperty(a.prototype, o, {
|
|
507
507
|
get() {
|
|
508
508
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
509
509
|
},
|
|
510
510
|
set(l) {
|
|
511
|
-
l =
|
|
511
|
+
l = se(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
|
-
}),
|
|
515
|
-
Object.defineProperty(
|
|
514
|
+
}), r.forEach((o) => {
|
|
515
|
+
Object.defineProperty(a.prototype, o, {
|
|
516
516
|
get() {
|
|
517
517
|
return this.$$c?.[o];
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
520
|
}), e.element = /** @type {any} */
|
|
521
|
-
|
|
521
|
+
a, a;
|
|
522
522
|
}
|
|
523
523
|
class Kt {
|
|
524
524
|
/**
|
|
@@ -547,13 +547,13 @@ class Kt {
|
|
|
547
547
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
548
548
|
* @returns {() => void}
|
|
549
549
|
*/
|
|
550
|
-
$on(t,
|
|
551
|
-
if (
|
|
550
|
+
$on(t, n) {
|
|
551
|
+
if (!Me(n))
|
|
552
552
|
return I;
|
|
553
|
-
const
|
|
554
|
-
return
|
|
555
|
-
const i =
|
|
556
|
-
i !== -1 &&
|
|
553
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
554
|
+
return r.push(n), () => {
|
|
555
|
+
const i = r.indexOf(n);
|
|
556
|
+
i !== -1 && r.splice(i, 1);
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
/**
|
|
@@ -564,60 +564,148 @@ class Kt {
|
|
|
564
564
|
this.$$set && !Rt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
const
|
|
568
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
569
|
-
|
|
570
|
-
|
|
567
|
+
const en = "4";
|
|
568
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(en);
|
|
569
|
+
/*! *****************************************************************************
|
|
570
|
+
Copyright (c) Microsoft Corporation.
|
|
571
|
+
|
|
572
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
573
|
+
purpose with or without fee is hereby granted.
|
|
574
|
+
|
|
575
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
576
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
577
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
578
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
579
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
580
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
581
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
582
|
+
***************************************************************************** */
|
|
583
|
+
var Be = function(e, t) {
|
|
584
|
+
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
585
|
+
n.__proto__ = r;
|
|
586
|
+
} || function(n, r) {
|
|
587
|
+
for (var i in r)
|
|
588
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
589
|
+
}, Be(e, t);
|
|
590
|
+
};
|
|
591
|
+
function fe(e, t) {
|
|
592
|
+
if (typeof t != "function" && t !== null)
|
|
593
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
594
|
+
Be(e, t);
|
|
595
|
+
function n() {
|
|
596
|
+
this.constructor = e;
|
|
597
|
+
}
|
|
598
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
599
|
+
}
|
|
600
|
+
var E = function() {
|
|
601
|
+
return E = Object.assign || function(t) {
|
|
602
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
603
|
+
n = arguments[r];
|
|
604
|
+
for (var s in n)
|
|
605
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
606
|
+
}
|
|
607
|
+
return t;
|
|
608
|
+
}, E.apply(this, arguments);
|
|
609
|
+
};
|
|
610
|
+
function tn(e, t) {
|
|
611
|
+
var n = {};
|
|
612
|
+
for (var r in e)
|
|
613
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
614
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
615
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
616
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
617
|
+
return n;
|
|
618
|
+
}
|
|
619
|
+
function fi(e) {
|
|
620
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
621
|
+
if (n)
|
|
622
|
+
return n.call(e);
|
|
623
|
+
if (e && typeof e.length == "number")
|
|
624
|
+
return {
|
|
625
|
+
next: function() {
|
|
626
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
630
|
+
}
|
|
631
|
+
function ci(e, t) {
|
|
632
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
633
|
+
if (!n)
|
|
634
|
+
return e;
|
|
635
|
+
var r = n.call(e), i, s = [], a;
|
|
636
|
+
try {
|
|
637
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
638
|
+
s.push(i.value);
|
|
639
|
+
} catch (o) {
|
|
640
|
+
a = { error: o };
|
|
641
|
+
} finally {
|
|
642
|
+
try {
|
|
643
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
644
|
+
} finally {
|
|
645
|
+
if (a)
|
|
646
|
+
throw a.error;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
return s;
|
|
650
|
+
}
|
|
651
|
+
function pe(e, t, n) {
|
|
652
|
+
if (n || arguments.length === 2)
|
|
653
|
+
for (var r = 0, i = t.length, s; r < i; r++)
|
|
654
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
655
|
+
return e.concat(s || t);
|
|
656
|
+
}
|
|
657
|
+
const U = [];
|
|
658
|
+
function nn(e, t) {
|
|
571
659
|
return {
|
|
572
|
-
subscribe:
|
|
660
|
+
subscribe: ce(e, t).subscribe
|
|
573
661
|
};
|
|
574
662
|
}
|
|
575
|
-
function
|
|
576
|
-
let
|
|
577
|
-
const
|
|
663
|
+
function ce(e, t = I) {
|
|
664
|
+
let n;
|
|
665
|
+
const r = /* @__PURE__ */ new Set();
|
|
578
666
|
function i(o) {
|
|
579
|
-
if (it(e, o) && (e = o,
|
|
580
|
-
const l = !
|
|
581
|
-
for (const
|
|
582
|
-
|
|
667
|
+
if (it(e, o) && (e = o, n)) {
|
|
668
|
+
const l = !U.length;
|
|
669
|
+
for (const u of r)
|
|
670
|
+
u[1](), U.push(u, e);
|
|
583
671
|
if (l) {
|
|
584
|
-
for (let
|
|
585
|
-
|
|
586
|
-
|
|
672
|
+
for (let u = 0; u < U.length; u += 2)
|
|
673
|
+
U[u][0](U[u + 1]);
|
|
674
|
+
U.length = 0;
|
|
587
675
|
}
|
|
588
676
|
}
|
|
589
677
|
}
|
|
590
678
|
function s(o) {
|
|
591
679
|
i(o(e));
|
|
592
680
|
}
|
|
593
|
-
function
|
|
594
|
-
const
|
|
595
|
-
return
|
|
596
|
-
|
|
681
|
+
function a(o, l = I) {
|
|
682
|
+
const u = [o, l];
|
|
683
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || I), o(e), () => {
|
|
684
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
597
685
|
};
|
|
598
686
|
}
|
|
599
|
-
return { set: i, update: s, subscribe:
|
|
687
|
+
return { set: i, update: s, subscribe: a };
|
|
600
688
|
}
|
|
601
|
-
function
|
|
602
|
-
const
|
|
689
|
+
function z(e, t, n) {
|
|
690
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
603
691
|
if (!i.every(Boolean))
|
|
604
692
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
605
693
|
const s = t.length < 2;
|
|
606
|
-
return
|
|
694
|
+
return nn(n, (a, o) => {
|
|
607
695
|
let l = !1;
|
|
608
|
-
const
|
|
696
|
+
const u = [];
|
|
609
697
|
let h = 0, c = I;
|
|
610
698
|
const f = () => {
|
|
611
699
|
if (h)
|
|
612
700
|
return;
|
|
613
701
|
c();
|
|
614
|
-
const y = t(
|
|
615
|
-
s ?
|
|
702
|
+
const y = t(r ? u[0] : u, a, o);
|
|
703
|
+
s ? a(y) : c = Me(y) ? y : I;
|
|
616
704
|
}, b = i.map(
|
|
617
705
|
(y, x) => st(
|
|
618
706
|
y,
|
|
619
707
|
(S) => {
|
|
620
|
-
|
|
708
|
+
u[x] = S, h &= ~(1 << x), l && f();
|
|
621
709
|
},
|
|
622
710
|
() => {
|
|
623
711
|
h |= 1 << x;
|
|
@@ -625,51 +713,51 @@ function W(e, t, r) {
|
|
|
625
713
|
)
|
|
626
714
|
);
|
|
627
715
|
return l = !0, f(), function() {
|
|
628
|
-
|
|
716
|
+
X(b), c(), l = !1;
|
|
629
717
|
};
|
|
630
718
|
});
|
|
631
719
|
}
|
|
632
|
-
function
|
|
720
|
+
function rn(e) {
|
|
633
721
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
634
722
|
}
|
|
635
|
-
var
|
|
636
|
-
return
|
|
723
|
+
var sn = function(t) {
|
|
724
|
+
return an(t) && !on(t);
|
|
637
725
|
};
|
|
638
|
-
function
|
|
726
|
+
function an(e) {
|
|
639
727
|
return !!e && typeof e == "object";
|
|
640
728
|
}
|
|
641
|
-
function
|
|
729
|
+
function on(e) {
|
|
642
730
|
var t = Object.prototype.toString.call(e);
|
|
643
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
731
|
+
return t === "[object RegExp]" || t === "[object Date]" || ln(e);
|
|
644
732
|
}
|
|
645
|
-
var
|
|
646
|
-
function
|
|
647
|
-
return e.$$typeof ===
|
|
733
|
+
var un = typeof Symbol == "function" && Symbol.for, hn = un ? Symbol.for("react.element") : 60103;
|
|
734
|
+
function ln(e) {
|
|
735
|
+
return e.$$typeof === hn;
|
|
648
736
|
}
|
|
649
|
-
function
|
|
737
|
+
function fn(e) {
|
|
650
738
|
return Array.isArray(e) ? [] : {};
|
|
651
739
|
}
|
|
652
|
-
function
|
|
653
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
740
|
+
function Y(e, t) {
|
|
741
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(fn(e), e, t) : e;
|
|
654
742
|
}
|
|
655
|
-
function
|
|
656
|
-
return e.concat(t).map(function(
|
|
657
|
-
return
|
|
743
|
+
function cn(e, t, n) {
|
|
744
|
+
return e.concat(t).map(function(r) {
|
|
745
|
+
return Y(r, n);
|
|
658
746
|
});
|
|
659
747
|
}
|
|
660
|
-
function
|
|
748
|
+
function mn(e, t) {
|
|
661
749
|
if (!t.customMerge)
|
|
662
|
-
return
|
|
663
|
-
var
|
|
664
|
-
return typeof
|
|
750
|
+
return F;
|
|
751
|
+
var n = t.customMerge(e);
|
|
752
|
+
return typeof n == "function" ? n : F;
|
|
665
753
|
}
|
|
666
|
-
function
|
|
754
|
+
function gn(e) {
|
|
667
755
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
668
756
|
return Object.propertyIsEnumerable.call(e, t);
|
|
669
757
|
}) : [];
|
|
670
758
|
}
|
|
671
759
|
function ke(e) {
|
|
672
|
-
return Object.keys(e).concat(
|
|
760
|
+
return Object.keys(e).concat(gn(e));
|
|
673
761
|
}
|
|
674
762
|
function ct(e, t) {
|
|
675
763
|
try {
|
|
@@ -678,187 +766,137 @@ function ct(e, t) {
|
|
|
678
766
|
return !1;
|
|
679
767
|
}
|
|
680
768
|
}
|
|
681
|
-
function
|
|
769
|
+
function dn(e, t) {
|
|
682
770
|
return ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
683
771
|
}
|
|
684
|
-
function
|
|
685
|
-
var
|
|
686
|
-
return
|
|
687
|
-
|
|
772
|
+
function bn(e, t, n) {
|
|
773
|
+
var r = {};
|
|
774
|
+
return n.isMergeableObject(e) && ke(e).forEach(function(i) {
|
|
775
|
+
r[i] = Y(e[i], n);
|
|
688
776
|
}), ke(t).forEach(function(i) {
|
|
689
|
-
|
|
690
|
-
}),
|
|
777
|
+
dn(e, i) || (ct(e, i) && n.isMergeableObject(t[i]) ? r[i] = mn(i, n)(e[i], t[i], n) : r[i] = Y(t[i], n));
|
|
778
|
+
}), r;
|
|
691
779
|
}
|
|
692
|
-
function
|
|
693
|
-
|
|
694
|
-
var
|
|
695
|
-
return s ?
|
|
780
|
+
function F(e, t, n) {
|
|
781
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || cn, n.isMergeableObject = n.isMergeableObject || sn, n.cloneUnlessOtherwiseSpecified = Y;
|
|
782
|
+
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
783
|
+
return s ? r ? n.arrayMerge(e, t, n) : bn(e, t, n) : Y(t, n);
|
|
696
784
|
}
|
|
697
|
-
|
|
785
|
+
F.all = function(t, n) {
|
|
698
786
|
if (!Array.isArray(t))
|
|
699
787
|
throw new Error("first argument should be an array");
|
|
700
|
-
return t.reduce(function(
|
|
701
|
-
return
|
|
788
|
+
return t.reduce(function(r, i) {
|
|
789
|
+
return F(r, i, n);
|
|
702
790
|
}, {});
|
|
703
791
|
};
|
|
704
|
-
var
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
r.__proto__ = n;
|
|
709
|
-
} || function(r, n) {
|
|
710
|
-
for (var i in n)
|
|
711
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
712
|
-
}, we(e, t);
|
|
713
|
-
};
|
|
714
|
-
function ge(e, t) {
|
|
715
|
-
if (typeof t != "function" && t !== null)
|
|
716
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
717
|
-
we(e, t);
|
|
718
|
-
function r() {
|
|
719
|
-
this.constructor = e;
|
|
720
|
-
}
|
|
721
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
722
|
-
}
|
|
723
|
-
var C = function() {
|
|
724
|
-
return C = Object.assign || function(t) {
|
|
725
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
726
|
-
r = arguments[n];
|
|
727
|
-
for (var s in r)
|
|
728
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
729
|
-
}
|
|
730
|
-
return t;
|
|
731
|
-
}, C.apply(this, arguments);
|
|
732
|
-
};
|
|
733
|
-
function yr(e, t) {
|
|
734
|
-
var r = {};
|
|
735
|
-
for (var n in e)
|
|
736
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
737
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
738
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
739
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
740
|
-
return r;
|
|
741
|
-
}
|
|
742
|
-
function Ee(e, t, r) {
|
|
743
|
-
if (r || arguments.length === 2)
|
|
744
|
-
for (var n = 0, i = t.length, s; n < i; n++)
|
|
745
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
746
|
-
return e.concat(s || Array.prototype.slice.call(t));
|
|
747
|
-
}
|
|
748
|
-
function ve(e, t) {
|
|
749
|
-
var r = t && t.cache ? t.cache : Sr, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : _r;
|
|
792
|
+
var pn = F, yn = pn;
|
|
793
|
+
const En = /* @__PURE__ */ rn(yn);
|
|
794
|
+
function ye(e, t) {
|
|
795
|
+
var n = t && t.cache ? t.cache : Sn, r = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : _n;
|
|
750
796
|
return i(e, {
|
|
751
|
-
cache:
|
|
752
|
-
serializer:
|
|
797
|
+
cache: n,
|
|
798
|
+
serializer: r
|
|
753
799
|
});
|
|
754
800
|
}
|
|
755
|
-
function
|
|
801
|
+
function vn(e) {
|
|
756
802
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
757
803
|
}
|
|
758
|
-
function
|
|
759
|
-
var i =
|
|
760
|
-
return typeof s > "u" && (s = e.call(this,
|
|
804
|
+
function mt(e, t, n, r) {
|
|
805
|
+
var i = vn(r) ? r : n(r), s = t.get(i);
|
|
806
|
+
return typeof s > "u" && (s = e.call(this, r), t.set(i, s)), s;
|
|
761
807
|
}
|
|
762
|
-
function
|
|
763
|
-
var
|
|
764
|
-
return typeof s > "u" && (s = e.apply(this,
|
|
808
|
+
function gt(e, t, n) {
|
|
809
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
810
|
+
return typeof s > "u" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
765
811
|
}
|
|
766
|
-
function
|
|
767
|
-
return
|
|
812
|
+
function $e(e, t, n, r, i) {
|
|
813
|
+
return n.bind(t, e, r, i);
|
|
768
814
|
}
|
|
769
|
-
function
|
|
770
|
-
var
|
|
771
|
-
return
|
|
815
|
+
function _n(e, t) {
|
|
816
|
+
var n = e.length === 1 ? mt : gt;
|
|
817
|
+
return $e(e, this, n, t.cache.create(), t.serializer);
|
|
772
818
|
}
|
|
773
|
-
function
|
|
774
|
-
return
|
|
819
|
+
function xn(e, t) {
|
|
820
|
+
return $e(e, this, gt, t.cache.create(), t.serializer);
|
|
775
821
|
}
|
|
776
|
-
|
|
822
|
+
function Hn(e, t) {
|
|
823
|
+
return $e(e, this, mt, t.cache.create(), t.serializer);
|
|
824
|
+
}
|
|
825
|
+
var Tn = function() {
|
|
777
826
|
return JSON.stringify(arguments);
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}()
|
|
790
|
-
), Sr = {
|
|
827
|
+
};
|
|
828
|
+
function Ue() {
|
|
829
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
830
|
+
}
|
|
831
|
+
Ue.prototype.get = function(e) {
|
|
832
|
+
return this.cache[e];
|
|
833
|
+
};
|
|
834
|
+
Ue.prototype.set = function(e, t) {
|
|
835
|
+
this.cache[e] = t;
|
|
836
|
+
};
|
|
837
|
+
var Sn = {
|
|
791
838
|
create: function() {
|
|
792
|
-
return new
|
|
839
|
+
return new Ue();
|
|
793
840
|
}
|
|
794
|
-
},
|
|
795
|
-
variadic:
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
799
|
-
r = arguments[n];
|
|
800
|
-
for (var s in r)
|
|
801
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
802
|
-
}
|
|
803
|
-
return t;
|
|
804
|
-
}, he.apply(this, arguments);
|
|
805
|
-
};
|
|
806
|
-
var d;
|
|
841
|
+
}, Ee = {
|
|
842
|
+
variadic: xn,
|
|
843
|
+
monadic: Hn
|
|
844
|
+
}, d;
|
|
807
845
|
(function(e) {
|
|
808
846
|
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";
|
|
809
847
|
})(d || (d = {}));
|
|
810
|
-
var
|
|
848
|
+
var v;
|
|
811
849
|
(function(e) {
|
|
812
850
|
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";
|
|
813
|
-
})(
|
|
814
|
-
var
|
|
851
|
+
})(v || (v = {}));
|
|
852
|
+
var j;
|
|
815
853
|
(function(e) {
|
|
816
854
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
817
|
-
})(
|
|
855
|
+
})(j || (j = {}));
|
|
818
856
|
function Ve(e) {
|
|
819
|
-
return e.type ===
|
|
857
|
+
return e.type === v.literal;
|
|
820
858
|
}
|
|
821
|
-
function
|
|
822
|
-
return e.type ===
|
|
859
|
+
function Bn(e) {
|
|
860
|
+
return e.type === v.argument;
|
|
823
861
|
}
|
|
824
862
|
function dt(e) {
|
|
825
|
-
return e.type ===
|
|
863
|
+
return e.type === v.number;
|
|
826
864
|
}
|
|
827
865
|
function bt(e) {
|
|
828
|
-
return e.type ===
|
|
866
|
+
return e.type === v.date;
|
|
829
867
|
}
|
|
830
868
|
function pt(e) {
|
|
831
|
-
return e.type ===
|
|
869
|
+
return e.type === v.time;
|
|
832
870
|
}
|
|
833
871
|
function yt(e) {
|
|
834
|
-
return e.type ===
|
|
872
|
+
return e.type === v.select;
|
|
835
873
|
}
|
|
836
874
|
function Et(e) {
|
|
837
|
-
return e.type ===
|
|
875
|
+
return e.type === v.plural;
|
|
838
876
|
}
|
|
839
|
-
function
|
|
840
|
-
return e.type ===
|
|
877
|
+
function An(e) {
|
|
878
|
+
return e.type === v.pound;
|
|
841
879
|
}
|
|
842
880
|
function vt(e) {
|
|
843
|
-
return e.type ===
|
|
881
|
+
return e.type === v.tag;
|
|
844
882
|
}
|
|
845
883
|
function _t(e) {
|
|
846
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
884
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
847
885
|
}
|
|
848
|
-
function
|
|
849
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
886
|
+
function Ae(e) {
|
|
887
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
850
888
|
}
|
|
851
|
-
var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
852
|
-
function
|
|
889
|
+
var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
|
|
890
|
+
function Pn(e) {
|
|
853
891
|
var t = {};
|
|
854
|
-
return e.replace(
|
|
855
|
-
var
|
|
856
|
-
switch (
|
|
892
|
+
return e.replace(wn, function(n) {
|
|
893
|
+
var r = n.length;
|
|
894
|
+
switch (n[0]) {
|
|
857
895
|
case "G":
|
|
858
|
-
t.era =
|
|
896
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
859
897
|
break;
|
|
860
898
|
case "y":
|
|
861
|
-
t.year =
|
|
899
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
862
900
|
break;
|
|
863
901
|
case "Y":
|
|
864
902
|
case "u":
|
|
@@ -870,30 +908,30 @@ function Pr(e) {
|
|
|
870
908
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
871
909
|
case "M":
|
|
872
910
|
case "L":
|
|
873
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
911
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
874
912
|
break;
|
|
875
913
|
case "w":
|
|
876
914
|
case "W":
|
|
877
915
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
878
916
|
case "d":
|
|
879
|
-
t.day = ["numeric", "2-digit"][
|
|
917
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
880
918
|
break;
|
|
881
919
|
case "D":
|
|
882
920
|
case "F":
|
|
883
921
|
case "g":
|
|
884
922
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
885
923
|
case "E":
|
|
886
|
-
t.weekday =
|
|
924
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
887
925
|
break;
|
|
888
926
|
case "e":
|
|
889
|
-
if (
|
|
927
|
+
if (r < 4)
|
|
890
928
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
891
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
929
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
892
930
|
break;
|
|
893
931
|
case "c":
|
|
894
|
-
if (
|
|
932
|
+
if (r < 4)
|
|
895
933
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
896
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
934
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
897
935
|
break;
|
|
898
936
|
case "a":
|
|
899
937
|
t.hour12 = !0;
|
|
@@ -902,32 +940,32 @@ function Pr(e) {
|
|
|
902
940
|
case "B":
|
|
903
941
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
904
942
|
case "h":
|
|
905
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
943
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
906
944
|
break;
|
|
907
945
|
case "H":
|
|
908
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
946
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
909
947
|
break;
|
|
910
948
|
case "K":
|
|
911
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
949
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
912
950
|
break;
|
|
913
951
|
case "k":
|
|
914
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
952
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
915
953
|
break;
|
|
916
954
|
case "j":
|
|
917
955
|
case "J":
|
|
918
956
|
case "C":
|
|
919
957
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
920
958
|
case "m":
|
|
921
|
-
t.minute = ["numeric", "2-digit"][
|
|
959
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
922
960
|
break;
|
|
923
961
|
case "s":
|
|
924
|
-
t.second = ["numeric", "2-digit"][
|
|
962
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
925
963
|
break;
|
|
926
964
|
case "S":
|
|
927
965
|
case "A":
|
|
928
966
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
929
967
|
case "z":
|
|
930
|
-
t.timeZoneName =
|
|
968
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
931
969
|
break;
|
|
932
970
|
case "Z":
|
|
933
971
|
case "O":
|
|
@@ -940,43 +978,33 @@ function Pr(e) {
|
|
|
940
978
|
return "";
|
|
941
979
|
}), t;
|
|
942
980
|
}
|
|
943
|
-
var
|
|
944
|
-
|
|
945
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
946
|
-
r = arguments[n];
|
|
947
|
-
for (var s in r)
|
|
948
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
949
|
-
}
|
|
950
|
-
return t;
|
|
951
|
-
}, _.apply(this, arguments);
|
|
952
|
-
};
|
|
953
|
-
var Or = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
954
|
-
function Nr(e) {
|
|
981
|
+
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
982
|
+
function On(e) {
|
|
955
983
|
if (e.length === 0)
|
|
956
984
|
throw new Error("Number skeleton cannot be empty");
|
|
957
|
-
for (var t = e.split(
|
|
985
|
+
for (var t = e.split(Nn).filter(function(f) {
|
|
958
986
|
return f.length > 0;
|
|
959
|
-
}),
|
|
960
|
-
var s = i[
|
|
961
|
-
if (
|
|
987
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
988
|
+
var s = i[r], a = s.split("/");
|
|
989
|
+
if (a.length === 0)
|
|
962
990
|
throw new Error("Invalid number skeleton");
|
|
963
|
-
for (var o =
|
|
964
|
-
var c = h[
|
|
991
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
992
|
+
var c = h[u];
|
|
965
993
|
if (c.length === 0)
|
|
966
994
|
throw new Error("Invalid number skeleton");
|
|
967
995
|
}
|
|
968
|
-
|
|
996
|
+
n.push({ stem: o, options: l });
|
|
969
997
|
}
|
|
970
|
-
return
|
|
998
|
+
return n;
|
|
971
999
|
}
|
|
972
|
-
function
|
|
1000
|
+
function In(e) {
|
|
973
1001
|
return e.replace(/^(.*?)-/, "");
|
|
974
1002
|
}
|
|
975
|
-
var Xe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1003
|
+
var Xe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, Tt = /^(0+)$/;
|
|
976
1004
|
function ze(e) {
|
|
977
1005
|
var t = {};
|
|
978
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(
|
|
979
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1006
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(n, r, i) {
|
|
1007
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
980
1008
|
}), t;
|
|
981
1009
|
}
|
|
982
1010
|
function St(e) {
|
|
@@ -1019,27 +1047,27 @@ function St(e) {
|
|
|
1019
1047
|
};
|
|
1020
1048
|
}
|
|
1021
1049
|
}
|
|
1022
|
-
function
|
|
1050
|
+
function Cn(e) {
|
|
1023
1051
|
var t;
|
|
1024
1052
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1025
1053
|
notation: "engineering"
|
|
1026
1054
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1027
1055
|
notation: "scientific"
|
|
1028
1056
|
}, e = e.slice(1)), t) {
|
|
1029
|
-
var
|
|
1030
|
-
if (
|
|
1057
|
+
var n = e.slice(0, 2);
|
|
1058
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tt.test(e))
|
|
1031
1059
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1032
1060
|
t.minimumIntegerDigits = e.length;
|
|
1033
1061
|
}
|
|
1034
1062
|
return t;
|
|
1035
1063
|
}
|
|
1036
1064
|
function We(e) {
|
|
1037
|
-
var t = {},
|
|
1038
|
-
return
|
|
1065
|
+
var t = {}, n = St(e);
|
|
1066
|
+
return n || t;
|
|
1039
1067
|
}
|
|
1040
|
-
function
|
|
1041
|
-
for (var t = {},
|
|
1042
|
-
var i = n
|
|
1068
|
+
function Mn(e) {
|
|
1069
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1070
|
+
var i = r[n];
|
|
1043
1071
|
switch (i.stem) {
|
|
1044
1072
|
case "percent":
|
|
1045
1073
|
case "%":
|
|
@@ -1061,7 +1089,7 @@ function Mr(e) {
|
|
|
1061
1089
|
continue;
|
|
1062
1090
|
case "measure-unit":
|
|
1063
1091
|
case "unit":
|
|
1064
|
-
t.style = "unit", t.unit =
|
|
1092
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1065
1093
|
continue;
|
|
1066
1094
|
case "compact-short":
|
|
1067
1095
|
case "K":
|
|
@@ -1072,13 +1100,13 @@ function Mr(e) {
|
|
|
1072
1100
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1073
1101
|
continue;
|
|
1074
1102
|
case "scientific":
|
|
1075
|
-
t =
|
|
1076
|
-
return
|
|
1103
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1104
|
+
return E(E({}, l), We(u));
|
|
1077
1105
|
}, {}));
|
|
1078
1106
|
continue;
|
|
1079
1107
|
case "engineering":
|
|
1080
|
-
t =
|
|
1081
|
-
return
|
|
1108
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1109
|
+
return E(E({}, l), We(u));
|
|
1082
1110
|
}, {}));
|
|
1083
1111
|
continue;
|
|
1084
1112
|
case "notation-simple":
|
|
@@ -1123,8 +1151,8 @@ function Mr(e) {
|
|
|
1123
1151
|
case "integer-width":
|
|
1124
1152
|
if (i.options.length > 1)
|
|
1125
1153
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1126
|
-
i.options[0].replace(
|
|
1127
|
-
if (
|
|
1154
|
+
i.options[0].replace(Ln, function(l, u, h, c, f, b) {
|
|
1155
|
+
if (u)
|
|
1128
1156
|
t.minimumIntegerDigits = h.length;
|
|
1129
1157
|
else {
|
|
1130
1158
|
if (c && f)
|
|
@@ -1143,25 +1171,25 @@ function Mr(e) {
|
|
|
1143
1171
|
if (Xe.test(i.stem)) {
|
|
1144
1172
|
if (i.options.length > 1)
|
|
1145
1173
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1146
|
-
i.stem.replace(Xe, function(l,
|
|
1147
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1174
|
+
i.stem.replace(Xe, function(l, u, h, c, f, b) {
|
|
1175
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1148
1176
|
});
|
|
1149
1177
|
var s = i.options[0];
|
|
1150
|
-
s === "w" ? t =
|
|
1178
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ze(s)));
|
|
1151
1179
|
continue;
|
|
1152
1180
|
}
|
|
1153
1181
|
if (Ht.test(i.stem)) {
|
|
1154
|
-
t =
|
|
1182
|
+
t = E(E({}, t), ze(i.stem));
|
|
1155
1183
|
continue;
|
|
1156
1184
|
}
|
|
1157
|
-
var
|
|
1158
|
-
|
|
1159
|
-
var o =
|
|
1160
|
-
o && (t =
|
|
1185
|
+
var a = St(i.stem);
|
|
1186
|
+
a && (t = E(E({}, t), a));
|
|
1187
|
+
var o = Cn(i.stem);
|
|
1188
|
+
o && (t = E(E({}, t), o));
|
|
1161
1189
|
}
|
|
1162
1190
|
return t;
|
|
1163
1191
|
}
|
|
1164
|
-
var
|
|
1192
|
+
var ie = {
|
|
1165
1193
|
"001": [
|
|
1166
1194
|
"H",
|
|
1167
1195
|
"h"
|
|
@@ -2576,23 +2604,23 @@ var se = {
|
|
|
2576
2604
|
"h"
|
|
2577
2605
|
]
|
|
2578
2606
|
};
|
|
2579
|
-
function
|
|
2580
|
-
for (var
|
|
2581
|
-
var i = e.charAt(
|
|
2607
|
+
function Rn(e, t) {
|
|
2608
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2609
|
+
var i = e.charAt(r);
|
|
2582
2610
|
if (i === "j") {
|
|
2583
|
-
for (var s = 0;
|
|
2584
|
-
s++,
|
|
2585
|
-
var
|
|
2586
|
-
for ((
|
|
2587
|
-
|
|
2588
|
-
for (;
|
|
2589
|
-
|
|
2611
|
+
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2612
|
+
s++, r++;
|
|
2613
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = $n(t);
|
|
2614
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2615
|
+
n += l;
|
|
2616
|
+
for (; a-- > 0; )
|
|
2617
|
+
n = u + n;
|
|
2590
2618
|
} else
|
|
2591
|
-
i === "J" ?
|
|
2619
|
+
i === "J" ? n += "H" : n += i;
|
|
2592
2620
|
}
|
|
2593
|
-
return
|
|
2621
|
+
return n;
|
|
2594
2622
|
}
|
|
2595
|
-
function $
|
|
2623
|
+
function $n(e) {
|
|
2596
2624
|
var t = e.hourCycle;
|
|
2597
2625
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2598
2626
|
e.hourCycles && // @ts-ignore
|
|
@@ -2609,73 +2637,73 @@ function $r(e) {
|
|
|
2609
2637
|
default:
|
|
2610
2638
|
throw new Error("Invalid hourCycle");
|
|
2611
2639
|
}
|
|
2612
|
-
var
|
|
2613
|
-
|
|
2614
|
-
var i =
|
|
2640
|
+
var n = e.language, r;
|
|
2641
|
+
n !== "root" && (r = e.maximize().region);
|
|
2642
|
+
var i = ie[r || ""] || ie[n || ""] || ie["".concat(n, "-001")] || ie["001"];
|
|
2615
2643
|
return i[0];
|
|
2616
2644
|
}
|
|
2617
|
-
var
|
|
2645
|
+
var ve, Un = new RegExp("^".concat(xt.source, "*")), Dn = new RegExp("".concat(xt.source, "*$"));
|
|
2618
2646
|
function p(e, t) {
|
|
2619
2647
|
return { start: e, end: t };
|
|
2620
2648
|
}
|
|
2621
|
-
var
|
|
2649
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Wn = zn ? Number.isSafeInteger : function(e) {
|
|
2622
2650
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2623
|
-
},
|
|
2651
|
+
}, we = !0;
|
|
2624
2652
|
try {
|
|
2625
|
-
var
|
|
2626
|
-
|
|
2653
|
+
var Zn = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2654
|
+
we = ((ve = Zn.exec("a")) === null || ve === void 0 ? void 0 : ve[0]) === "a";
|
|
2627
2655
|
} catch {
|
|
2628
|
-
|
|
2656
|
+
we = !1;
|
|
2629
2657
|
}
|
|
2630
|
-
var Ze =
|
|
2658
|
+
var Ze = Gn ? (
|
|
2631
2659
|
// Native
|
|
2632
|
-
function(t,
|
|
2633
|
-
return t.startsWith(
|
|
2660
|
+
function(t, n, r) {
|
|
2661
|
+
return t.startsWith(n, r);
|
|
2634
2662
|
}
|
|
2635
2663
|
) : (
|
|
2636
2664
|
// For IE11
|
|
2637
|
-
function(t,
|
|
2638
|
-
return t.slice(
|
|
2665
|
+
function(t, n, r) {
|
|
2666
|
+
return t.slice(r, r + n.length) === n;
|
|
2639
2667
|
}
|
|
2640
|
-
),
|
|
2668
|
+
), Pe = Fn ? String.fromCodePoint : (
|
|
2641
2669
|
// IE11
|
|
2642
2670
|
function() {
|
|
2643
|
-
for (var t = [],
|
|
2644
|
-
t[
|
|
2645
|
-
for (var
|
|
2646
|
-
if (
|
|
2647
|
-
throw RangeError(
|
|
2648
|
-
|
|
2671
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2672
|
+
t[n] = arguments[n];
|
|
2673
|
+
for (var r = "", i = t.length, s = 0, a; i > s; ) {
|
|
2674
|
+
if (a = t[s++], a > 1114111)
|
|
2675
|
+
throw RangeError(a + " is not a valid code point");
|
|
2676
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2649
2677
|
}
|
|
2650
|
-
return
|
|
2678
|
+
return r;
|
|
2651
2679
|
}
|
|
2652
2680
|
), Qe = (
|
|
2653
2681
|
// native
|
|
2654
|
-
|
|
2682
|
+
jn ? Object.fromEntries : (
|
|
2655
2683
|
// Ponyfill
|
|
2656
2684
|
function(t) {
|
|
2657
|
-
for (var
|
|
2658
|
-
var s = i[
|
|
2659
|
-
|
|
2685
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2686
|
+
var s = i[r], a = s[0], o = s[1];
|
|
2687
|
+
n[a] = o;
|
|
2660
2688
|
}
|
|
2661
|
-
return
|
|
2689
|
+
return n;
|
|
2662
2690
|
}
|
|
2663
2691
|
)
|
|
2664
|
-
), Bt =
|
|
2692
|
+
), Bt = kn ? (
|
|
2665
2693
|
// Native
|
|
2666
|
-
function(t,
|
|
2667
|
-
return t.codePointAt(
|
|
2694
|
+
function(t, n) {
|
|
2695
|
+
return t.codePointAt(n);
|
|
2668
2696
|
}
|
|
2669
2697
|
) : (
|
|
2670
2698
|
// IE 11
|
|
2671
|
-
function(t,
|
|
2672
|
-
var
|
|
2673
|
-
if (!(
|
|
2674
|
-
var i = t.charCodeAt(
|
|
2675
|
-
return i < 55296 || i > 56319 ||
|
|
2699
|
+
function(t, n) {
|
|
2700
|
+
var r = t.length;
|
|
2701
|
+
if (!(n < 0 || n >= r)) {
|
|
2702
|
+
var i = t.charCodeAt(n), s;
|
|
2703
|
+
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2676
2704
|
}
|
|
2677
2705
|
}
|
|
2678
|
-
),
|
|
2706
|
+
), Qn = Vn ? (
|
|
2679
2707
|
// Native
|
|
2680
2708
|
function(t) {
|
|
2681
2709
|
return t.trimStart();
|
|
@@ -2683,9 +2711,9 @@ var Ze = Gr ? (
|
|
|
2683
2711
|
) : (
|
|
2684
2712
|
// Ponyfill
|
|
2685
2713
|
function(t) {
|
|
2686
|
-
return t.replace(
|
|
2714
|
+
return t.replace(Un, "");
|
|
2687
2715
|
}
|
|
2688
|
-
),
|
|
2716
|
+
), qn = Xn ? (
|
|
2689
2717
|
// Native
|
|
2690
2718
|
function(t) {
|
|
2691
2719
|
return t.trimEnd();
|
|
@@ -2693,126 +2721,126 @@ var Ze = Gr ? (
|
|
|
2693
2721
|
) : (
|
|
2694
2722
|
// Ponyfill
|
|
2695
2723
|
function(t) {
|
|
2696
|
-
return t.replace(
|
|
2724
|
+
return t.replace(Dn, "");
|
|
2697
2725
|
}
|
|
2698
2726
|
);
|
|
2699
2727
|
function At(e, t) {
|
|
2700
2728
|
return new RegExp(e, t);
|
|
2701
2729
|
}
|
|
2702
|
-
var
|
|
2703
|
-
if (
|
|
2730
|
+
var Ne;
|
|
2731
|
+
if (we) {
|
|
2704
2732
|
var qe = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2705
|
-
|
|
2706
|
-
var
|
|
2707
|
-
qe.lastIndex =
|
|
2733
|
+
Ne = function(t, n) {
|
|
2734
|
+
var r;
|
|
2735
|
+
qe.lastIndex = n;
|
|
2708
2736
|
var i = qe.exec(t);
|
|
2709
|
-
return (
|
|
2737
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2710
2738
|
};
|
|
2711
2739
|
} else
|
|
2712
|
-
|
|
2713
|
-
for (var
|
|
2714
|
-
var i = Bt(t,
|
|
2715
|
-
if (i === void 0 || wt(i) ||
|
|
2740
|
+
Ne = function(t, n) {
|
|
2741
|
+
for (var r = []; ; ) {
|
|
2742
|
+
var i = Bt(t, n);
|
|
2743
|
+
if (i === void 0 || wt(i) || er(i))
|
|
2716
2744
|
break;
|
|
2717
|
-
|
|
2745
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2718
2746
|
}
|
|
2719
|
-
return
|
|
2747
|
+
return Pe.apply(void 0, r);
|
|
2720
2748
|
};
|
|
2721
|
-
var
|
|
2749
|
+
var Jn = (
|
|
2722
2750
|
/** @class */
|
|
2723
2751
|
function() {
|
|
2724
|
-
function e(t,
|
|
2725
|
-
|
|
2752
|
+
function e(t, n) {
|
|
2753
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2726
2754
|
}
|
|
2727
2755
|
return e.prototype.parse = function() {
|
|
2728
2756
|
if (this.offset() !== 0)
|
|
2729
2757
|
throw Error("parser can only be used once");
|
|
2730
2758
|
return this.parseMessage(0, "", !1);
|
|
2731
|
-
}, e.prototype.parseMessage = function(t,
|
|
2759
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2732
2760
|
for (var i = []; !this.isEOF(); ) {
|
|
2733
2761
|
var s = this.char();
|
|
2734
2762
|
if (s === 123) {
|
|
2735
|
-
var
|
|
2736
|
-
if (
|
|
2737
|
-
return
|
|
2738
|
-
i.push(
|
|
2763
|
+
var a = this.parseArgument(t, r);
|
|
2764
|
+
if (a.err)
|
|
2765
|
+
return a;
|
|
2766
|
+
i.push(a.val);
|
|
2739
2767
|
} else {
|
|
2740
2768
|
if (s === 125 && t > 0)
|
|
2741
2769
|
break;
|
|
2742
|
-
if (s === 35 && (
|
|
2770
|
+
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2743
2771
|
var o = this.clonePosition();
|
|
2744
2772
|
this.bump(), i.push({
|
|
2745
|
-
type:
|
|
2773
|
+
type: v.pound,
|
|
2746
2774
|
location: p(o, this.clonePosition())
|
|
2747
2775
|
});
|
|
2748
2776
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2749
|
-
if (
|
|
2777
|
+
if (r)
|
|
2750
2778
|
break;
|
|
2751
2779
|
return this.error(d.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2752
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2753
|
-
var
|
|
2754
|
-
if (
|
|
2755
|
-
return
|
|
2756
|
-
i.push(
|
|
2780
|
+
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
|
2781
|
+
var a = this.parseTag(t, n);
|
|
2782
|
+
if (a.err)
|
|
2783
|
+
return a;
|
|
2784
|
+
i.push(a.val);
|
|
2757
2785
|
} else {
|
|
2758
|
-
var
|
|
2759
|
-
if (
|
|
2760
|
-
return
|
|
2761
|
-
i.push(
|
|
2786
|
+
var a = this.parseLiteral(t, n);
|
|
2787
|
+
if (a.err)
|
|
2788
|
+
return a;
|
|
2789
|
+
i.push(a.val);
|
|
2762
2790
|
}
|
|
2763
2791
|
}
|
|
2764
2792
|
}
|
|
2765
2793
|
return { val: i, err: null };
|
|
2766
|
-
}, e.prototype.parseTag = function(t,
|
|
2767
|
-
var
|
|
2794
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2795
|
+
var r = this.clonePosition();
|
|
2768
2796
|
this.bump();
|
|
2769
2797
|
var i = this.parseTagName();
|
|
2770
2798
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2771
2799
|
return {
|
|
2772
2800
|
val: {
|
|
2773
|
-
type:
|
|
2801
|
+
type: v.literal,
|
|
2774
2802
|
value: "<".concat(i, "/>"),
|
|
2775
|
-
location: p(
|
|
2803
|
+
location: p(r, this.clonePosition())
|
|
2776
2804
|
},
|
|
2777
2805
|
err: null
|
|
2778
2806
|
};
|
|
2779
2807
|
if (this.bumpIf(">")) {
|
|
2780
|
-
var s = this.parseMessage(t + 1,
|
|
2808
|
+
var s = this.parseMessage(t + 1, n, !0);
|
|
2781
2809
|
if (s.err)
|
|
2782
2810
|
return s;
|
|
2783
|
-
var
|
|
2811
|
+
var a = s.val, o = this.clonePosition();
|
|
2784
2812
|
if (this.bumpIf("</")) {
|
|
2785
|
-
if (this.isEOF() || !
|
|
2813
|
+
if (this.isEOF() || !Oe(this.char()))
|
|
2786
2814
|
return this.error(d.INVALID_TAG, p(o, this.clonePosition()));
|
|
2787
|
-
var l = this.clonePosition(),
|
|
2788
|
-
return i !==
|
|
2815
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2816
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2789
2817
|
val: {
|
|
2790
|
-
type:
|
|
2818
|
+
type: v.tag,
|
|
2791
2819
|
value: i,
|
|
2792
|
-
children:
|
|
2793
|
-
location: p(
|
|
2820
|
+
children: a,
|
|
2821
|
+
location: p(r, this.clonePosition())
|
|
2794
2822
|
},
|
|
2795
2823
|
err: null
|
|
2796
2824
|
} : this.error(d.INVALID_TAG, p(o, this.clonePosition())));
|
|
2797
2825
|
} else
|
|
2798
|
-
return this.error(d.UNCLOSED_TAG, p(
|
|
2826
|
+
return this.error(d.UNCLOSED_TAG, p(r, this.clonePosition()));
|
|
2799
2827
|
} else
|
|
2800
|
-
return this.error(d.INVALID_TAG, p(
|
|
2828
|
+
return this.error(d.INVALID_TAG, p(r, this.clonePosition()));
|
|
2801
2829
|
}, e.prototype.parseTagName = function() {
|
|
2802
2830
|
var t = this.offset();
|
|
2803
|
-
for (this.bump(); !this.isEOF() &&
|
|
2831
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
2804
2832
|
this.bump();
|
|
2805
2833
|
return this.message.slice(t, this.offset());
|
|
2806
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2807
|
-
for (var
|
|
2808
|
-
var s = this.tryParseQuote(
|
|
2834
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2835
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2836
|
+
var s = this.tryParseQuote(n);
|
|
2809
2837
|
if (s) {
|
|
2810
2838
|
i += s;
|
|
2811
2839
|
continue;
|
|
2812
2840
|
}
|
|
2813
|
-
var
|
|
2814
|
-
if (
|
|
2815
|
-
i +=
|
|
2841
|
+
var a = this.tryParseUnquoted(t, n);
|
|
2842
|
+
if (a) {
|
|
2843
|
+
i += a;
|
|
2816
2844
|
continue;
|
|
2817
2845
|
}
|
|
2818
2846
|
var o = this.tryParseLeftAngleBracket();
|
|
@@ -2822,14 +2850,14 @@ var Jr = (
|
|
|
2822
2850
|
}
|
|
2823
2851
|
break;
|
|
2824
2852
|
}
|
|
2825
|
-
var l = p(
|
|
2853
|
+
var l = p(r, this.clonePosition());
|
|
2826
2854
|
return {
|
|
2827
|
-
val: { type:
|
|
2855
|
+
val: { type: v.literal, value: i, location: l },
|
|
2828
2856
|
err: null
|
|
2829
2857
|
};
|
|
2830
2858
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2831
2859
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2832
|
-
!
|
|
2860
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2833
2861
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2834
2862
|
if (this.isEOF() || this.char() !== 39)
|
|
2835
2863
|
return null;
|
|
@@ -2849,114 +2877,114 @@ var Jr = (
|
|
|
2849
2877
|
return null;
|
|
2850
2878
|
}
|
|
2851
2879
|
this.bump();
|
|
2852
|
-
var
|
|
2880
|
+
var n = [this.char()];
|
|
2853
2881
|
for (this.bump(); !this.isEOF(); ) {
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2882
|
+
var r = this.char();
|
|
2883
|
+
if (r === 39)
|
|
2856
2884
|
if (this.peek() === 39)
|
|
2857
|
-
|
|
2885
|
+
n.push(39), this.bump();
|
|
2858
2886
|
else {
|
|
2859
2887
|
this.bump();
|
|
2860
2888
|
break;
|
|
2861
2889
|
}
|
|
2862
2890
|
else
|
|
2863
|
-
|
|
2891
|
+
n.push(r);
|
|
2864
2892
|
this.bump();
|
|
2865
2893
|
}
|
|
2866
|
-
return
|
|
2867
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2894
|
+
return Pe.apply(void 0, n);
|
|
2895
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2868
2896
|
if (this.isEOF())
|
|
2869
2897
|
return null;
|
|
2870
|
-
var
|
|
2871
|
-
return
|
|
2872
|
-
}, e.prototype.parseArgument = function(t,
|
|
2873
|
-
var
|
|
2898
|
+
var r = this.char();
|
|
2899
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Pe(r));
|
|
2900
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
2901
|
+
var r = this.clonePosition();
|
|
2874
2902
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2875
|
-
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(
|
|
2903
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition()));
|
|
2876
2904
|
if (this.char() === 125)
|
|
2877
|
-
return this.bump(), this.error(d.EMPTY_ARGUMENT, p(
|
|
2905
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, p(r, this.clonePosition()));
|
|
2878
2906
|
var i = this.parseIdentifierIfPossible().value;
|
|
2879
2907
|
if (!i)
|
|
2880
|
-
return this.error(d.MALFORMED_ARGUMENT, p(
|
|
2908
|
+
return this.error(d.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
|
|
2881
2909
|
if (this.bumpSpace(), this.isEOF())
|
|
2882
|
-
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(
|
|
2910
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition()));
|
|
2883
2911
|
switch (this.char()) {
|
|
2884
2912
|
case 125:
|
|
2885
2913
|
return this.bump(), {
|
|
2886
2914
|
val: {
|
|
2887
|
-
type:
|
|
2915
|
+
type: v.argument,
|
|
2888
2916
|
// value does not include the opening and closing braces.
|
|
2889
2917
|
value: i,
|
|
2890
|
-
location: p(
|
|
2918
|
+
location: p(r, this.clonePosition())
|
|
2891
2919
|
},
|
|
2892
2920
|
err: null
|
|
2893
2921
|
};
|
|
2894
2922
|
case 44:
|
|
2895
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(
|
|
2923
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2896
2924
|
default:
|
|
2897
|
-
return this.error(d.MALFORMED_ARGUMENT, p(
|
|
2925
|
+
return this.error(d.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
|
|
2898
2926
|
}
|
|
2899
2927
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2900
|
-
var t = this.clonePosition(),
|
|
2928
|
+
var t = this.clonePosition(), n = this.offset(), r = Ne(this.message, n), i = n + r.length;
|
|
2901
2929
|
this.bumpTo(i);
|
|
2902
|
-
var s = this.clonePosition(),
|
|
2903
|
-
return { value:
|
|
2904
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2905
|
-
var s,
|
|
2930
|
+
var s = this.clonePosition(), a = p(t, s);
|
|
2931
|
+
return { value: r, location: a };
|
|
2932
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2933
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2906
2934
|
switch (o) {
|
|
2907
2935
|
case "":
|
|
2908
|
-
return this.error(d.EXPECT_ARGUMENT_TYPE, p(
|
|
2936
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, p(a, l));
|
|
2909
2937
|
case "number":
|
|
2910
2938
|
case "date":
|
|
2911
2939
|
case "time": {
|
|
2912
2940
|
this.bumpSpace();
|
|
2913
|
-
var
|
|
2941
|
+
var u = null;
|
|
2914
2942
|
if (this.bumpIf(",")) {
|
|
2915
2943
|
this.bumpSpace();
|
|
2916
2944
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2917
2945
|
if (c.err)
|
|
2918
2946
|
return c;
|
|
2919
|
-
var f =
|
|
2947
|
+
var f = qn(c.val);
|
|
2920
2948
|
if (f.length === 0)
|
|
2921
2949
|
return this.error(d.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2922
2950
|
var b = p(h, this.clonePosition());
|
|
2923
|
-
|
|
2951
|
+
u = { style: f, styleLocation: b };
|
|
2924
2952
|
}
|
|
2925
2953
|
var y = this.tryParseArgumentClose(i);
|
|
2926
2954
|
if (y.err)
|
|
2927
2955
|
return y;
|
|
2928
2956
|
var x = p(i, this.clonePosition());
|
|
2929
|
-
if (
|
|
2930
|
-
var S =
|
|
2957
|
+
if (u && Ze(u?.style, "::", 0)) {
|
|
2958
|
+
var S = Qn(u.style.slice(2));
|
|
2931
2959
|
if (o === "number") {
|
|
2932
|
-
var c = this.parseNumberSkeletonFromString(S,
|
|
2960
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2933
2961
|
return c.err ? c : {
|
|
2934
|
-
val: { type:
|
|
2962
|
+
val: { type: v.number, value: r, location: x, style: c.val },
|
|
2935
2963
|
err: null
|
|
2936
2964
|
};
|
|
2937
2965
|
} else {
|
|
2938
2966
|
if (S.length === 0)
|
|
2939
2967
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, x);
|
|
2940
|
-
var
|
|
2941
|
-
this.locale && (
|
|
2968
|
+
var N = S;
|
|
2969
|
+
this.locale && (N = Rn(S, this.locale));
|
|
2942
2970
|
var f = {
|
|
2943
|
-
type:
|
|
2944
|
-
pattern:
|
|
2945
|
-
location:
|
|
2946
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2947
|
-
}, P = o === "date" ?
|
|
2971
|
+
type: j.dateTime,
|
|
2972
|
+
pattern: N,
|
|
2973
|
+
location: u.styleLocation,
|
|
2974
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(N) : {}
|
|
2975
|
+
}, P = o === "date" ? v.date : v.time;
|
|
2948
2976
|
return {
|
|
2949
|
-
val: { type: P, value:
|
|
2977
|
+
val: { type: P, value: r, location: x, style: f },
|
|
2950
2978
|
err: null
|
|
2951
2979
|
};
|
|
2952
2980
|
}
|
|
2953
2981
|
}
|
|
2954
2982
|
return {
|
|
2955
2983
|
val: {
|
|
2956
|
-
type: o === "number" ?
|
|
2957
|
-
value:
|
|
2984
|
+
type: o === "number" ? v.number : o === "date" ? v.date : v.time,
|
|
2985
|
+
value: r,
|
|
2958
2986
|
location: x,
|
|
2959
|
-
style: (s =
|
|
2987
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2960
2988
|
},
|
|
2961
2989
|
err: null
|
|
2962
2990
|
};
|
|
@@ -2966,54 +2994,54 @@ var Jr = (
|
|
|
2966
2994
|
case "select": {
|
|
2967
2995
|
var B = this.clonePosition();
|
|
2968
2996
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2969
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(B,
|
|
2997
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(B, E({}, B)));
|
|
2970
2998
|
this.bumpSpace();
|
|
2971
|
-
var
|
|
2972
|
-
if (o !== "select" &&
|
|
2999
|
+
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3000
|
+
if (o !== "select" && O.value === "offset") {
|
|
2973
3001
|
if (!this.bumpIf(":"))
|
|
2974
3002
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2975
3003
|
this.bumpSpace();
|
|
2976
3004
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2977
3005
|
if (c.err)
|
|
2978
3006
|
return c;
|
|
2979
|
-
this.bumpSpace(),
|
|
3007
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w = c.val;
|
|
2980
3008
|
}
|
|
2981
|
-
var T = this.tryParsePluralOrSelectOptions(t, o,
|
|
3009
|
+
var T = this.tryParsePluralOrSelectOptions(t, o, n, O);
|
|
2982
3010
|
if (T.err)
|
|
2983
3011
|
return T;
|
|
2984
3012
|
var y = this.tryParseArgumentClose(i);
|
|
2985
3013
|
if (y.err)
|
|
2986
3014
|
return y;
|
|
2987
|
-
var
|
|
3015
|
+
var _ = p(i, this.clonePosition());
|
|
2988
3016
|
return o === "select" ? {
|
|
2989
3017
|
val: {
|
|
2990
|
-
type:
|
|
2991
|
-
value:
|
|
3018
|
+
type: v.select,
|
|
3019
|
+
value: r,
|
|
2992
3020
|
options: Qe(T.val),
|
|
2993
|
-
location:
|
|
3021
|
+
location: _
|
|
2994
3022
|
},
|
|
2995
3023
|
err: null
|
|
2996
3024
|
} : {
|
|
2997
3025
|
val: {
|
|
2998
|
-
type:
|
|
2999
|
-
value:
|
|
3026
|
+
type: v.plural,
|
|
3027
|
+
value: r,
|
|
3000
3028
|
options: Qe(T.val),
|
|
3001
3029
|
offset: w,
|
|
3002
3030
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3003
|
-
location:
|
|
3031
|
+
location: _
|
|
3004
3032
|
},
|
|
3005
3033
|
err: null
|
|
3006
3034
|
};
|
|
3007
3035
|
}
|
|
3008
3036
|
default:
|
|
3009
|
-
return this.error(d.INVALID_ARGUMENT_TYPE, p(
|
|
3037
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, p(a, l));
|
|
3010
3038
|
}
|
|
3011
3039
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3012
3040
|
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3013
3041
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3014
|
-
for (var t = 0,
|
|
3015
|
-
var
|
|
3016
|
-
switch (
|
|
3042
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3043
|
+
var r = this.char();
|
|
3044
|
+
switch (r) {
|
|
3017
3045
|
case 39: {
|
|
3018
3046
|
this.bump();
|
|
3019
3047
|
var i = this.clonePosition();
|
|
@@ -3031,7 +3059,7 @@ var Jr = (
|
|
|
3031
3059
|
t -= 1;
|
|
3032
3060
|
else
|
|
3033
3061
|
return {
|
|
3034
|
-
val: this.message.slice(
|
|
3062
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3035
3063
|
err: null
|
|
3036
3064
|
};
|
|
3037
3065
|
break;
|
|
@@ -3042,70 +3070,70 @@ var Jr = (
|
|
|
3042
3070
|
}
|
|
3043
3071
|
}
|
|
3044
3072
|
return {
|
|
3045
|
-
val: this.message.slice(
|
|
3073
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3046
3074
|
err: null
|
|
3047
3075
|
};
|
|
3048
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3049
|
-
var
|
|
3076
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3077
|
+
var r = [];
|
|
3050
3078
|
try {
|
|
3051
|
-
|
|
3079
|
+
r = On(t);
|
|
3052
3080
|
} catch {
|
|
3053
|
-
return this.error(d.INVALID_NUMBER_SKELETON,
|
|
3081
|
+
return this.error(d.INVALID_NUMBER_SKELETON, n);
|
|
3054
3082
|
}
|
|
3055
3083
|
return {
|
|
3056
3084
|
val: {
|
|
3057
|
-
type:
|
|
3058
|
-
tokens:
|
|
3059
|
-
location:
|
|
3060
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3085
|
+
type: j.number,
|
|
3086
|
+
tokens: r,
|
|
3087
|
+
location: n,
|
|
3088
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(r) : {}
|
|
3061
3089
|
},
|
|
3062
3090
|
err: null
|
|
3063
3091
|
};
|
|
3064
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3065
|
-
for (var s,
|
|
3066
|
-
if (
|
|
3092
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3093
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3094
|
+
if (u.length === 0) {
|
|
3067
3095
|
var c = this.clonePosition();
|
|
3068
|
-
if (
|
|
3096
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3069
3097
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3070
3098
|
if (f.err)
|
|
3071
3099
|
return f;
|
|
3072
|
-
h = p(c, this.clonePosition()),
|
|
3100
|
+
h = p(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3073
3101
|
} else
|
|
3074
3102
|
break;
|
|
3075
3103
|
}
|
|
3076
|
-
if (l.has(
|
|
3077
|
-
return this.error(
|
|
3078
|
-
|
|
3104
|
+
if (l.has(u))
|
|
3105
|
+
return this.error(n === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3106
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3079
3107
|
var b = this.clonePosition();
|
|
3080
3108
|
if (!this.bumpIf("{"))
|
|
3081
|
-
return this.error(
|
|
3082
|
-
var y = this.parseMessage(t + 1,
|
|
3109
|
+
return this.error(n === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3110
|
+
var y = this.parseMessage(t + 1, n, r);
|
|
3083
3111
|
if (y.err)
|
|
3084
3112
|
return y;
|
|
3085
3113
|
var x = this.tryParseArgumentClose(b);
|
|
3086
3114
|
if (x.err)
|
|
3087
3115
|
return x;
|
|
3088
3116
|
o.push([
|
|
3089
|
-
|
|
3117
|
+
u,
|
|
3090
3118
|
{
|
|
3091
3119
|
value: y.val,
|
|
3092
3120
|
location: p(b, this.clonePosition())
|
|
3093
3121
|
}
|
|
3094
|
-
]), l.add(
|
|
3122
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3095
3123
|
}
|
|
3096
|
-
return o.length === 0 ? this.error(
|
|
3097
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3098
|
-
var
|
|
3099
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3100
|
-
for (var s = !1,
|
|
3124
|
+
return o.length === 0 ? this.error(n === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3125
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3126
|
+
var r = 1, i = this.clonePosition();
|
|
3127
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3128
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3101
3129
|
var o = this.char();
|
|
3102
3130
|
if (o >= 48 && o <= 57)
|
|
3103
|
-
s = !0,
|
|
3131
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
3104
3132
|
else
|
|
3105
3133
|
break;
|
|
3106
3134
|
}
|
|
3107
3135
|
var l = p(i, this.clonePosition());
|
|
3108
|
-
return s ? (
|
|
3136
|
+
return s ? (a *= r, Wn(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3109
3137
|
}, e.prototype.offset = function() {
|
|
3110
3138
|
return this.position.offset;
|
|
3111
3139
|
}, e.prototype.isEOF = function() {
|
|
@@ -3120,17 +3148,17 @@ var Jr = (
|
|
|
3120
3148
|
var t = this.position.offset;
|
|
3121
3149
|
if (t >= this.message.length)
|
|
3122
3150
|
throw Error("out of bound");
|
|
3123
|
-
var
|
|
3124
|
-
if (
|
|
3151
|
+
var n = Bt(this.message, t);
|
|
3152
|
+
if (n === void 0)
|
|
3125
3153
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3126
|
-
return
|
|
3127
|
-
}, e.prototype.error = function(t,
|
|
3154
|
+
return n;
|
|
3155
|
+
}, e.prototype.error = function(t, n) {
|
|
3128
3156
|
return {
|
|
3129
3157
|
val: null,
|
|
3130
3158
|
err: {
|
|
3131
3159
|
kind: t,
|
|
3132
3160
|
message: this.message,
|
|
3133
|
-
location:
|
|
3161
|
+
location: n
|
|
3134
3162
|
}
|
|
3135
3163
|
};
|
|
3136
3164
|
}, e.prototype.bump = function() {
|
|
@@ -3140,22 +3168,22 @@ var Jr = (
|
|
|
3140
3168
|
}
|
|
3141
3169
|
}, e.prototype.bumpIf = function(t) {
|
|
3142
3170
|
if (Ze(this.message, t, this.offset())) {
|
|
3143
|
-
for (var
|
|
3171
|
+
for (var n = 0; n < t.length; n++)
|
|
3144
3172
|
this.bump();
|
|
3145
3173
|
return !0;
|
|
3146
3174
|
}
|
|
3147
3175
|
return !1;
|
|
3148
3176
|
}, e.prototype.bumpUntil = function(t) {
|
|
3149
|
-
var
|
|
3150
|
-
return
|
|
3177
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3178
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3151
3179
|
}, e.prototype.bumpTo = function(t) {
|
|
3152
3180
|
if (this.offset() > t)
|
|
3153
3181
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3154
3182
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3155
|
-
var
|
|
3156
|
-
if (
|
|
3183
|
+
var n = this.offset();
|
|
3184
|
+
if (n === t)
|
|
3157
3185
|
break;
|
|
3158
|
-
if (
|
|
3186
|
+
if (n > t)
|
|
3159
3187
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3160
3188
|
if (this.bump(), this.isEOF())
|
|
3161
3189
|
break;
|
|
@@ -3166,55 +3194,55 @@ var Jr = (
|
|
|
3166
3194
|
}, e.prototype.peek = function() {
|
|
3167
3195
|
if (this.isEOF())
|
|
3168
3196
|
return null;
|
|
3169
|
-
var t = this.char(),
|
|
3170
|
-
return
|
|
3197
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3198
|
+
return r ?? null;
|
|
3171
3199
|
}, e;
|
|
3172
3200
|
}()
|
|
3173
3201
|
);
|
|
3174
|
-
function
|
|
3202
|
+
function Oe(e) {
|
|
3175
3203
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3176
3204
|
}
|
|
3177
|
-
function
|
|
3178
|
-
return
|
|
3205
|
+
function Yn(e) {
|
|
3206
|
+
return Oe(e) || e === 47;
|
|
3179
3207
|
}
|
|
3180
|
-
function
|
|
3208
|
+
function Kn(e) {
|
|
3181
3209
|
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;
|
|
3182
3210
|
}
|
|
3183
3211
|
function wt(e) {
|
|
3184
3212
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3185
3213
|
}
|
|
3186
|
-
function
|
|
3214
|
+
function er(e) {
|
|
3187
3215
|
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;
|
|
3188
3216
|
}
|
|
3189
|
-
function
|
|
3217
|
+
function Ie(e) {
|
|
3190
3218
|
e.forEach(function(t) {
|
|
3191
3219
|
if (delete t.location, yt(t) || Et(t))
|
|
3192
|
-
for (var
|
|
3193
|
-
delete t.options[
|
|
3220
|
+
for (var n in t.options)
|
|
3221
|
+
delete t.options[n].location, Ie(t.options[n].value);
|
|
3194
3222
|
else
|
|
3195
|
-
dt(t) && _t(t.style) || (bt(t) || pt(t)) &&
|
|
3223
|
+
dt(t) && _t(t.style) || (bt(t) || pt(t)) && Ae(t.style) ? delete t.style.location : vt(t) && Ie(t.children);
|
|
3196
3224
|
});
|
|
3197
3225
|
}
|
|
3198
|
-
function
|
|
3199
|
-
t === void 0 && (t = {}), t =
|
|
3200
|
-
var
|
|
3201
|
-
if (
|
|
3202
|
-
var
|
|
3203
|
-
throw
|
|
3226
|
+
function tr(e, t) {
|
|
3227
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3228
|
+
var n = new Jn(e, t).parse();
|
|
3229
|
+
if (n.err) {
|
|
3230
|
+
var r = SyntaxError(d[n.err.kind]);
|
|
3231
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3204
3232
|
}
|
|
3205
|
-
return t?.captureLocation ||
|
|
3233
|
+
return t?.captureLocation || Ie(n.val), n.val;
|
|
3206
3234
|
}
|
|
3207
|
-
var
|
|
3235
|
+
var k;
|
|
3208
3236
|
(function(e) {
|
|
3209
3237
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3210
|
-
})(
|
|
3211
|
-
var
|
|
3238
|
+
})(k || (k = {}));
|
|
3239
|
+
var me = (
|
|
3212
3240
|
/** @class */
|
|
3213
3241
|
function(e) {
|
|
3214
|
-
|
|
3215
|
-
function t(
|
|
3216
|
-
var s = e.call(this,
|
|
3217
|
-
return s.code =
|
|
3242
|
+
fe(t, e);
|
|
3243
|
+
function t(n, r, i) {
|
|
3244
|
+
var s = e.call(this, n) || this;
|
|
3245
|
+
return s.code = r, s.originalMessage = i, s;
|
|
3218
3246
|
}
|
|
3219
3247
|
return t.prototype.toString = function() {
|
|
3220
3248
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3223,44 +3251,44 @@ var de = (
|
|
|
3223
3251
|
), Je = (
|
|
3224
3252
|
/** @class */
|
|
3225
3253
|
function(e) {
|
|
3226
|
-
|
|
3227
|
-
function t(
|
|
3228
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3254
|
+
fe(t, e);
|
|
3255
|
+
function t(n, r, i, s) {
|
|
3256
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3229
3257
|
}
|
|
3230
3258
|
return t;
|
|
3231
|
-
}(
|
|
3232
|
-
),
|
|
3259
|
+
}(me)
|
|
3260
|
+
), nr = (
|
|
3233
3261
|
/** @class */
|
|
3234
3262
|
function(e) {
|
|
3235
|
-
|
|
3236
|
-
function t(
|
|
3237
|
-
return e.call(this, 'Value for "'.concat(
|
|
3263
|
+
fe(t, e);
|
|
3264
|
+
function t(n, r, i) {
|
|
3265
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), k.INVALID_VALUE, i) || this;
|
|
3238
3266
|
}
|
|
3239
3267
|
return t;
|
|
3240
|
-
}(
|
|
3241
|
-
),
|
|
3268
|
+
}(me)
|
|
3269
|
+
), rr = (
|
|
3242
3270
|
/** @class */
|
|
3243
3271
|
function(e) {
|
|
3244
|
-
|
|
3245
|
-
function t(
|
|
3246
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3272
|
+
fe(t, e);
|
|
3273
|
+
function t(n, r) {
|
|
3274
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), k.MISSING_VALUE, r) || this;
|
|
3247
3275
|
}
|
|
3248
3276
|
return t;
|
|
3249
|
-
}(
|
|
3277
|
+
}(me)
|
|
3250
3278
|
), A;
|
|
3251
3279
|
(function(e) {
|
|
3252
3280
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3253
3281
|
})(A || (A = {}));
|
|
3254
|
-
function
|
|
3255
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3256
|
-
var
|
|
3257
|
-
return !
|
|
3282
|
+
function ir(e) {
|
|
3283
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3284
|
+
var r = t[t.length - 1];
|
|
3285
|
+
return !r || r.type !== A.literal || n.type !== A.literal ? t.push(n) : r.value += n.value, t;
|
|
3258
3286
|
}, []);
|
|
3259
3287
|
}
|
|
3260
|
-
function
|
|
3288
|
+
function sr(e) {
|
|
3261
3289
|
return typeof e == "function";
|
|
3262
3290
|
}
|
|
3263
|
-
function
|
|
3291
|
+
function ae(e, t, n, r, i, s, a) {
|
|
3264
3292
|
if (e.length === 1 && Ve(e[0]))
|
|
3265
3293
|
return [
|
|
3266
3294
|
{
|
|
@@ -3268,8 +3296,8 @@ function oe(e, t, r, n, i, s, u) {
|
|
|
3268
3296
|
value: e[0].value
|
|
3269
3297
|
}
|
|
3270
3298
|
];
|
|
3271
|
-
for (var o = [], l = 0,
|
|
3272
|
-
var h =
|
|
3299
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3300
|
+
var h = u[l];
|
|
3273
3301
|
if (Ve(h)) {
|
|
3274
3302
|
o.push({
|
|
3275
3303
|
type: A.literal,
|
|
@@ -3277,18 +3305,18 @@ function oe(e, t, r, n, i, s, u) {
|
|
|
3277
3305
|
});
|
|
3278
3306
|
continue;
|
|
3279
3307
|
}
|
|
3280
|
-
if (
|
|
3308
|
+
if (An(h)) {
|
|
3281
3309
|
typeof s == "number" && o.push({
|
|
3282
3310
|
type: A.literal,
|
|
3283
|
-
value:
|
|
3311
|
+
value: n.getNumberFormat(t).format(s)
|
|
3284
3312
|
});
|
|
3285
3313
|
continue;
|
|
3286
3314
|
}
|
|
3287
3315
|
var c = h.value;
|
|
3288
3316
|
if (!(i && c in i))
|
|
3289
|
-
throw new
|
|
3317
|
+
throw new rr(c, a);
|
|
3290
3318
|
var f = i[c];
|
|
3291
|
-
if (
|
|
3319
|
+
if (Bn(h)) {
|
|
3292
3320
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3293
3321
|
type: typeof f == "string" ? A.literal : A.object,
|
|
3294
3322
|
value: f
|
|
@@ -3296,34 +3324,34 @@ function oe(e, t, r, n, i, s, u) {
|
|
|
3296
3324
|
continue;
|
|
3297
3325
|
}
|
|
3298
3326
|
if (bt(h)) {
|
|
3299
|
-
var b = typeof h.style == "string" ?
|
|
3327
|
+
var b = typeof h.style == "string" ? r.date[h.style] : Ae(h.style) ? h.style.parsedOptions : void 0;
|
|
3300
3328
|
o.push({
|
|
3301
3329
|
type: A.literal,
|
|
3302
|
-
value:
|
|
3330
|
+
value: n.getDateTimeFormat(t, b).format(f)
|
|
3303
3331
|
});
|
|
3304
3332
|
continue;
|
|
3305
3333
|
}
|
|
3306
3334
|
if (pt(h)) {
|
|
3307
|
-
var b = typeof h.style == "string" ?
|
|
3335
|
+
var b = typeof h.style == "string" ? r.time[h.style] : Ae(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3308
3336
|
o.push({
|
|
3309
3337
|
type: A.literal,
|
|
3310
|
-
value:
|
|
3338
|
+
value: n.getDateTimeFormat(t, b).format(f)
|
|
3311
3339
|
});
|
|
3312
3340
|
continue;
|
|
3313
3341
|
}
|
|
3314
3342
|
if (dt(h)) {
|
|
3315
|
-
var b = typeof h.style == "string" ?
|
|
3343
|
+
var b = typeof h.style == "string" ? r.number[h.style] : _t(h.style) ? h.style.parsedOptions : void 0;
|
|
3316
3344
|
b && b.scale && (f = f * (b.scale || 1)), o.push({
|
|
3317
3345
|
type: A.literal,
|
|
3318
|
-
value:
|
|
3346
|
+
value: n.getNumberFormat(t, b).format(f)
|
|
3319
3347
|
});
|
|
3320
3348
|
continue;
|
|
3321
3349
|
}
|
|
3322
3350
|
if (vt(h)) {
|
|
3323
3351
|
var y = h.children, x = h.value, S = i[x];
|
|
3324
|
-
if (!
|
|
3325
|
-
throw new
|
|
3326
|
-
var
|
|
3352
|
+
if (!sr(S))
|
|
3353
|
+
throw new nr(x, "function", a);
|
|
3354
|
+
var N = ae(y, t, n, r, i, s), P = S(N.map(function(w) {
|
|
3327
3355
|
return w.value;
|
|
3328
3356
|
}));
|
|
3329
3357
|
Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(w) {
|
|
@@ -3336,104 +3364,104 @@ function oe(e, t, r, n, i, s, u) {
|
|
|
3336
3364
|
if (yt(h)) {
|
|
3337
3365
|
var B = h.options[f] || h.options.other;
|
|
3338
3366
|
if (!B)
|
|
3339
|
-
throw new Je(h.value, f, Object.keys(h.options),
|
|
3340
|
-
o.push.apply(o,
|
|
3367
|
+
throw new Je(h.value, f, Object.keys(h.options), a);
|
|
3368
|
+
o.push.apply(o, ae(B.value, t, n, r, i));
|
|
3341
3369
|
continue;
|
|
3342
3370
|
}
|
|
3343
3371
|
if (Et(h)) {
|
|
3344
3372
|
var B = h.options["=".concat(f)];
|
|
3345
3373
|
if (!B) {
|
|
3346
3374
|
if (!Intl.PluralRules)
|
|
3347
|
-
throw new
|
|
3375
|
+
throw new me(`Intl.PluralRules is not available in this environment.
|
|
3348
3376
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3349
|
-
`,
|
|
3350
|
-
var
|
|
3351
|
-
B = h.options[
|
|
3377
|
+
`, k.MISSING_INTL_API, a);
|
|
3378
|
+
var O = n.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3379
|
+
B = h.options[O] || h.options.other;
|
|
3352
3380
|
}
|
|
3353
3381
|
if (!B)
|
|
3354
|
-
throw new Je(h.value, f, Object.keys(h.options),
|
|
3355
|
-
o.push.apply(o,
|
|
3382
|
+
throw new Je(h.value, f, Object.keys(h.options), a);
|
|
3383
|
+
o.push.apply(o, ae(B.value, t, n, r, i, f - (h.offset || 0)));
|
|
3356
3384
|
continue;
|
|
3357
3385
|
}
|
|
3358
3386
|
}
|
|
3359
|
-
return
|
|
3387
|
+
return ir(o);
|
|
3360
3388
|
}
|
|
3361
|
-
function
|
|
3362
|
-
return t ?
|
|
3363
|
-
return r
|
|
3389
|
+
function ar(e, t) {
|
|
3390
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3391
|
+
return n[r] = E(E({}, e[r]), t[r] || {}), n;
|
|
3364
3392
|
}, {})) : e;
|
|
3365
3393
|
}
|
|
3366
|
-
function
|
|
3367
|
-
return t ? Object.keys(e).reduce(function(
|
|
3368
|
-
return r
|
|
3369
|
-
},
|
|
3394
|
+
function or(e, t) {
|
|
3395
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3396
|
+
return n[r] = ar(e[r], t[r]), n;
|
|
3397
|
+
}, E({}, e)) : e;
|
|
3370
3398
|
}
|
|
3371
|
-
function
|
|
3399
|
+
function _e(e) {
|
|
3372
3400
|
return {
|
|
3373
3401
|
create: function() {
|
|
3374
3402
|
return {
|
|
3375
3403
|
get: function(t) {
|
|
3376
3404
|
return e[t];
|
|
3377
3405
|
},
|
|
3378
|
-
set: function(t,
|
|
3379
|
-
e[t] =
|
|
3406
|
+
set: function(t, n) {
|
|
3407
|
+
e[t] = n;
|
|
3380
3408
|
}
|
|
3381
3409
|
};
|
|
3382
3410
|
}
|
|
3383
3411
|
};
|
|
3384
3412
|
}
|
|
3385
|
-
function
|
|
3413
|
+
function ur(e) {
|
|
3386
3414
|
return e === void 0 && (e = {
|
|
3387
3415
|
number: {},
|
|
3388
3416
|
dateTime: {},
|
|
3389
3417
|
pluralRules: {}
|
|
3390
3418
|
}), {
|
|
3391
|
-
getNumberFormat:
|
|
3392
|
-
for (var t,
|
|
3393
|
-
r
|
|
3394
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3419
|
+
getNumberFormat: ye(function() {
|
|
3420
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3421
|
+
n[r] = arguments[r];
|
|
3422
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, pe([void 0], n, !1)))();
|
|
3395
3423
|
}, {
|
|
3396
|
-
cache:
|
|
3397
|
-
strategy:
|
|
3424
|
+
cache: _e(e.number),
|
|
3425
|
+
strategy: Ee.variadic
|
|
3398
3426
|
}),
|
|
3399
|
-
getDateTimeFormat:
|
|
3400
|
-
for (var t,
|
|
3401
|
-
r
|
|
3402
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3427
|
+
getDateTimeFormat: ye(function() {
|
|
3428
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3429
|
+
n[r] = arguments[r];
|
|
3430
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, pe([void 0], n, !1)))();
|
|
3403
3431
|
}, {
|
|
3404
|
-
cache:
|
|
3405
|
-
strategy:
|
|
3432
|
+
cache: _e(e.dateTime),
|
|
3433
|
+
strategy: Ee.variadic
|
|
3406
3434
|
}),
|
|
3407
|
-
getPluralRules:
|
|
3408
|
-
for (var t,
|
|
3409
|
-
r
|
|
3410
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3435
|
+
getPluralRules: ye(function() {
|
|
3436
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3437
|
+
n[r] = arguments[r];
|
|
3438
|
+
return new ((t = Intl.PluralRules).bind.apply(t, pe([void 0], n, !1)))();
|
|
3411
3439
|
}, {
|
|
3412
|
-
cache:
|
|
3413
|
-
strategy:
|
|
3440
|
+
cache: _e(e.pluralRules),
|
|
3441
|
+
strategy: Ee.variadic
|
|
3414
3442
|
})
|
|
3415
3443
|
};
|
|
3416
3444
|
}
|
|
3417
|
-
var
|
|
3445
|
+
var hr = (
|
|
3418
3446
|
/** @class */
|
|
3419
3447
|
function() {
|
|
3420
|
-
function e(t,
|
|
3421
|
-
|
|
3448
|
+
function e(t, n, r, i) {
|
|
3449
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3422
3450
|
var s = this;
|
|
3423
3451
|
if (this.formatterCache = {
|
|
3424
3452
|
number: {},
|
|
3425
3453
|
dateTime: {},
|
|
3426
3454
|
pluralRules: {}
|
|
3427
3455
|
}, this.format = function(l) {
|
|
3428
|
-
var
|
|
3429
|
-
if (
|
|
3430
|
-
return
|
|
3431
|
-
var h =
|
|
3456
|
+
var u = s.formatToParts(l);
|
|
3457
|
+
if (u.length === 1)
|
|
3458
|
+
return u[0].value;
|
|
3459
|
+
var h = u.reduce(function(c, f) {
|
|
3432
3460
|
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3433
3461
|
}, []);
|
|
3434
3462
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3435
3463
|
}, this.formatToParts = function(l) {
|
|
3436
|
-
return
|
|
3464
|
+
return ae(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3437
3465
|
}, this.resolvedOptions = function() {
|
|
3438
3466
|
var l;
|
|
3439
3467
|
return {
|
|
@@ -3441,18 +3469,18 @@ var ln = (
|
|
|
3441
3469
|
};
|
|
3442
3470
|
}, this.getAst = function() {
|
|
3443
3471
|
return s.ast;
|
|
3444
|
-
}, this.locales =
|
|
3472
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3445
3473
|
if (this.message = t, !e.__parse)
|
|
3446
3474
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3447
|
-
var
|
|
3448
|
-
|
|
3449
|
-
var o =
|
|
3450
|
-
this.ast = e.__parse(t,
|
|
3475
|
+
var a = i || {};
|
|
3476
|
+
a.formatters;
|
|
3477
|
+
var o = tn(a, ["formatters"]);
|
|
3478
|
+
this.ast = e.__parse(t, E(E({}, o), { locale: this.resolvedLocale }));
|
|
3451
3479
|
} else
|
|
3452
3480
|
this.ast = t;
|
|
3453
3481
|
if (!Array.isArray(this.ast))
|
|
3454
3482
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3455
|
-
this.formats =
|
|
3483
|
+
this.formats = or(e.formats, r), this.formatters = i && i.formatters || ur(this.formatterCache);
|
|
3456
3484
|
}
|
|
3457
3485
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3458
3486
|
get: function() {
|
|
@@ -3462,10 +3490,10 @@ var ln = (
|
|
|
3462
3490
|
configurable: !0
|
|
3463
3491
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3464
3492
|
if (!(typeof Intl.Locale > "u")) {
|
|
3465
|
-
var
|
|
3466
|
-
return
|
|
3493
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3494
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3467
3495
|
}
|
|
3468
|
-
}, e.__parse =
|
|
3496
|
+
}, e.__parse = tr, e.formats = {
|
|
3469
3497
|
number: {
|
|
3470
3498
|
integer: {
|
|
3471
3499
|
maximumFractionDigits: 0
|
|
@@ -3526,113 +3554,113 @@ var ln = (
|
|
|
3526
3554
|
}, e;
|
|
3527
3555
|
}()
|
|
3528
3556
|
);
|
|
3529
|
-
function
|
|
3557
|
+
function lr(e, t) {
|
|
3530
3558
|
if (t == null)
|
|
3531
3559
|
return;
|
|
3532
3560
|
if (t in e)
|
|
3533
3561
|
return e[t];
|
|
3534
|
-
const
|
|
3535
|
-
let
|
|
3536
|
-
for (let i = 0; i <
|
|
3537
|
-
if (typeof
|
|
3562
|
+
const n = t.split(".");
|
|
3563
|
+
let r = e;
|
|
3564
|
+
for (let i = 0; i < n.length; i++)
|
|
3565
|
+
if (typeof r == "object") {
|
|
3538
3566
|
if (i > 0) {
|
|
3539
|
-
const s =
|
|
3540
|
-
if (s in
|
|
3541
|
-
|
|
3567
|
+
const s = n.slice(i, n.length).join(".");
|
|
3568
|
+
if (s in r) {
|
|
3569
|
+
r = r[s];
|
|
3542
3570
|
break;
|
|
3543
3571
|
}
|
|
3544
3572
|
}
|
|
3545
|
-
|
|
3573
|
+
r = r[n[i]];
|
|
3546
3574
|
} else
|
|
3547
|
-
|
|
3548
|
-
return
|
|
3575
|
+
r = void 0;
|
|
3576
|
+
return r;
|
|
3549
3577
|
}
|
|
3550
|
-
const
|
|
3578
|
+
const C = {}, fr = (e, t, n) => n && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = n), n), Pt = (e, t) => {
|
|
3551
3579
|
if (t == null)
|
|
3552
3580
|
return;
|
|
3553
|
-
if (t in
|
|
3554
|
-
return
|
|
3555
|
-
const
|
|
3556
|
-
for (let
|
|
3557
|
-
const i = r
|
|
3581
|
+
if (t in C && e in C[t])
|
|
3582
|
+
return C[t][e];
|
|
3583
|
+
const n = ge(t);
|
|
3584
|
+
for (let r = 0; r < n.length; r++) {
|
|
3585
|
+
const i = n[r], s = mr(i, e);
|
|
3558
3586
|
if (s)
|
|
3559
|
-
return
|
|
3587
|
+
return fr(e, t, s);
|
|
3560
3588
|
}
|
|
3561
3589
|
};
|
|
3562
3590
|
let De;
|
|
3563
|
-
const
|
|
3564
|
-
function
|
|
3591
|
+
const W = ce({});
|
|
3592
|
+
function cr(e) {
|
|
3565
3593
|
return De[e] || null;
|
|
3566
3594
|
}
|
|
3567
|
-
function
|
|
3595
|
+
function Nt(e) {
|
|
3568
3596
|
return e in De;
|
|
3569
3597
|
}
|
|
3570
|
-
function
|
|
3571
|
-
if (!
|
|
3598
|
+
function mr(e, t) {
|
|
3599
|
+
if (!Nt(e))
|
|
3572
3600
|
return null;
|
|
3573
|
-
const
|
|
3574
|
-
return
|
|
3601
|
+
const n = cr(e);
|
|
3602
|
+
return lr(n, t);
|
|
3575
3603
|
}
|
|
3576
|
-
function
|
|
3604
|
+
function gr(e) {
|
|
3577
3605
|
if (e == null)
|
|
3578
3606
|
return;
|
|
3579
|
-
const t =
|
|
3580
|
-
for (let
|
|
3581
|
-
const
|
|
3582
|
-
if (
|
|
3583
|
-
return
|
|
3607
|
+
const t = ge(e);
|
|
3608
|
+
for (let n = 0; n < t.length; n++) {
|
|
3609
|
+
const r = t[n];
|
|
3610
|
+
if (Nt(r))
|
|
3611
|
+
return r;
|
|
3584
3612
|
}
|
|
3585
3613
|
}
|
|
3586
|
-
function
|
|
3587
|
-
delete
|
|
3614
|
+
function dr(e, ...t) {
|
|
3615
|
+
delete C[e], W.update((n) => (n[e] = En.all([n[e] || {}, ...t]), n));
|
|
3588
3616
|
}
|
|
3589
|
-
|
|
3590
|
-
[
|
|
3617
|
+
z(
|
|
3618
|
+
[W],
|
|
3591
3619
|
([e]) => Object.keys(e)
|
|
3592
3620
|
);
|
|
3593
|
-
|
|
3594
|
-
const
|
|
3595
|
-
function
|
|
3596
|
-
|
|
3621
|
+
W.subscribe((e) => De = e);
|
|
3622
|
+
const oe = {};
|
|
3623
|
+
function br(e, t) {
|
|
3624
|
+
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
|
3597
3625
|
}
|
|
3598
|
-
function
|
|
3599
|
-
return
|
|
3626
|
+
function Ot(e) {
|
|
3627
|
+
return oe[e];
|
|
3600
3628
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return
|
|
3603
|
-
const
|
|
3604
|
-
return [t,
|
|
3629
|
+
function pr(e) {
|
|
3630
|
+
return ge(e).map((t) => {
|
|
3631
|
+
const n = Ot(t);
|
|
3632
|
+
return [t, n ? [...n] : []];
|
|
3605
3633
|
}).filter(([, t]) => t.length > 0);
|
|
3606
3634
|
}
|
|
3607
|
-
function
|
|
3608
|
-
return e == null ? !1 :
|
|
3635
|
+
function Le(e) {
|
|
3636
|
+
return e == null ? !1 : ge(e).some(
|
|
3609
3637
|
(t) => {
|
|
3610
|
-
var
|
|
3611
|
-
return (
|
|
3638
|
+
var n;
|
|
3639
|
+
return (n = Ot(t)) == null ? void 0 : n.size;
|
|
3612
3640
|
}
|
|
3613
3641
|
);
|
|
3614
3642
|
}
|
|
3615
|
-
function
|
|
3643
|
+
function yr(e, t) {
|
|
3616
3644
|
return Promise.all(
|
|
3617
|
-
t.map((
|
|
3618
|
-
).then((
|
|
3645
|
+
t.map((r) => (br(e, r), r().then((i) => i.default || i)))
|
|
3646
|
+
).then((r) => dr(e, ...r));
|
|
3619
3647
|
}
|
|
3620
|
-
const
|
|
3648
|
+
const Q = {};
|
|
3621
3649
|
function It(e) {
|
|
3622
|
-
if (!
|
|
3623
|
-
return e in
|
|
3624
|
-
const t =
|
|
3625
|
-
return
|
|
3650
|
+
if (!Le(e))
|
|
3651
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3652
|
+
const t = pr(e);
|
|
3653
|
+
return Q[e] = Promise.all(
|
|
3626
3654
|
t.map(
|
|
3627
|
-
([
|
|
3655
|
+
([n, r]) => yr(n, r)
|
|
3628
3656
|
)
|
|
3629
3657
|
).then(() => {
|
|
3630
|
-
if (
|
|
3658
|
+
if (Le(e))
|
|
3631
3659
|
return It(e);
|
|
3632
|
-
delete
|
|
3633
|
-
}),
|
|
3660
|
+
delete Q[e];
|
|
3661
|
+
}), Q[e];
|
|
3634
3662
|
}
|
|
3635
|
-
const
|
|
3663
|
+
const Er = {
|
|
3636
3664
|
number: {
|
|
3637
3665
|
scientific: { notation: "scientific" },
|
|
3638
3666
|
engineering: { notation: "engineering" },
|
|
@@ -3661,150 +3689,150 @@ const vn = {
|
|
|
3661
3689
|
timeZoneName: "short"
|
|
3662
3690
|
}
|
|
3663
3691
|
}
|
|
3664
|
-
},
|
|
3692
|
+
}, vr = {
|
|
3665
3693
|
fallbackLocale: null,
|
|
3666
3694
|
loadingDelay: 200,
|
|
3667
|
-
formats:
|
|
3695
|
+
formats: Er,
|
|
3668
3696
|
warnOnMissingMessages: !0,
|
|
3669
3697
|
handleMissingMessage: void 0,
|
|
3670
3698
|
ignoreTag: !0
|
|
3671
|
-
},
|
|
3672
|
-
function
|
|
3673
|
-
return
|
|
3674
|
-
}
|
|
3675
|
-
const
|
|
3676
|
-
var
|
|
3677
|
-
for (var
|
|
3678
|
-
|
|
3699
|
+
}, _r = vr;
|
|
3700
|
+
function V() {
|
|
3701
|
+
return _r;
|
|
3702
|
+
}
|
|
3703
|
+
const xe = ce(!1);
|
|
3704
|
+
var xr = Object.defineProperty, Hr = Object.defineProperties, Tr = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Ke = (e, t, n) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ar = (e, t) => {
|
|
3705
|
+
for (var n in t || (t = {}))
|
|
3706
|
+
Sr.call(t, n) && Ke(e, n, t[n]);
|
|
3679
3707
|
if (Ye)
|
|
3680
|
-
for (var
|
|
3681
|
-
|
|
3708
|
+
for (var n of Ye(t))
|
|
3709
|
+
Br.call(t, n) && Ke(e, n, t[n]);
|
|
3682
3710
|
return e;
|
|
3683
|
-
},
|
|
3684
|
-
let
|
|
3685
|
-
const
|
|
3711
|
+
}, wr = (e, t) => Hr(e, Tr(t));
|
|
3712
|
+
let Ce;
|
|
3713
|
+
const ue = ce(null);
|
|
3686
3714
|
function et(e) {
|
|
3687
|
-
return e.split("-").map((t,
|
|
3715
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3688
3716
|
}
|
|
3689
|
-
function
|
|
3690
|
-
const
|
|
3691
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3717
|
+
function ge(e, t = V().fallbackLocale) {
|
|
3718
|
+
const n = et(e);
|
|
3719
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...et(t)])] : n;
|
|
3692
3720
|
}
|
|
3693
|
-
function
|
|
3694
|
-
return
|
|
3721
|
+
function R() {
|
|
3722
|
+
return Ce ?? void 0;
|
|
3695
3723
|
}
|
|
3696
|
-
|
|
3697
|
-
|
|
3724
|
+
ue.subscribe((e) => {
|
|
3725
|
+
Ce = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3698
3726
|
});
|
|
3699
|
-
const
|
|
3700
|
-
if (e &&
|
|
3701
|
-
const { loadingDelay: t } =
|
|
3702
|
-
let
|
|
3703
|
-
return typeof window < "u" &&
|
|
3704
|
-
() =>
|
|
3727
|
+
const Pr = (e) => {
|
|
3728
|
+
if (e && gr(e) && Le(e)) {
|
|
3729
|
+
const { loadingDelay: t } = V();
|
|
3730
|
+
let n;
|
|
3731
|
+
return typeof window < "u" && R() != null && t ? n = window.setTimeout(
|
|
3732
|
+
() => xe.set(!0),
|
|
3705
3733
|
t
|
|
3706
|
-
) :
|
|
3707
|
-
|
|
3734
|
+
) : xe.set(!0), It(e).then(() => {
|
|
3735
|
+
ue.set(e);
|
|
3708
3736
|
}).finally(() => {
|
|
3709
|
-
clearTimeout(
|
|
3737
|
+
clearTimeout(n), xe.set(!1);
|
|
3710
3738
|
});
|
|
3711
3739
|
}
|
|
3712
|
-
return
|
|
3713
|
-
},
|
|
3714
|
-
set:
|
|
3715
|
-
}),
|
|
3740
|
+
return ue.set(e);
|
|
3741
|
+
}, M = wr(Ar({}, ue), {
|
|
3742
|
+
set: Pr
|
|
3743
|
+
}), de = (e) => {
|
|
3716
3744
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3717
|
-
return (
|
|
3718
|
-
const i = JSON.stringify(
|
|
3719
|
-
return i in t ? t[i] : t[i] = e(
|
|
3745
|
+
return (r) => {
|
|
3746
|
+
const i = JSON.stringify(r);
|
|
3747
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3720
3748
|
};
|
|
3721
3749
|
};
|
|
3722
|
-
var
|
|
3723
|
-
for (var
|
|
3724
|
-
Lt.call(t,
|
|
3725
|
-
if (
|
|
3726
|
-
for (var
|
|
3727
|
-
Ct.call(t,
|
|
3750
|
+
var Nr = Object.defineProperty, he = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable, tt = (e, t, n) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ge = (e, t) => {
|
|
3751
|
+
for (var n in t || (t = {}))
|
|
3752
|
+
Lt.call(t, n) && tt(e, n, t[n]);
|
|
3753
|
+
if (he)
|
|
3754
|
+
for (var n of he(t))
|
|
3755
|
+
Ct.call(t, n) && tt(e, n, t[n]);
|
|
3728
3756
|
return e;
|
|
3729
|
-
},
|
|
3730
|
-
var
|
|
3731
|
-
for (var
|
|
3732
|
-
Lt.call(e,
|
|
3733
|
-
if (e != null &&
|
|
3734
|
-
for (var
|
|
3735
|
-
t.indexOf(
|
|
3736
|
-
return
|
|
3757
|
+
}, Z = (e, t) => {
|
|
3758
|
+
var n = {};
|
|
3759
|
+
for (var r in e)
|
|
3760
|
+
Lt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3761
|
+
if (e != null && he)
|
|
3762
|
+
for (var r of he(e))
|
|
3763
|
+
t.indexOf(r) < 0 && Ct.call(e, r) && (n[r] = e[r]);
|
|
3764
|
+
return n;
|
|
3737
3765
|
};
|
|
3738
|
-
const
|
|
3739
|
-
const { formats:
|
|
3740
|
-
if (e in
|
|
3741
|
-
return
|
|
3766
|
+
const K = (e, t) => {
|
|
3767
|
+
const { formats: n } = V();
|
|
3768
|
+
if (e in n && t in n[e])
|
|
3769
|
+
return n[e][t];
|
|
3742
3770
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3743
|
-
},
|
|
3771
|
+
}, Or = de(
|
|
3744
3772
|
(e) => {
|
|
3745
|
-
var t = e, { locale:
|
|
3746
|
-
if (
|
|
3773
|
+
var t = e, { locale: n, format: r } = t, i = Z(t, ["locale", "format"]);
|
|
3774
|
+
if (n == null)
|
|
3747
3775
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3748
|
-
return
|
|
3776
|
+
return r && (i = K("number", r)), new Intl.NumberFormat(n, i);
|
|
3749
3777
|
}
|
|
3750
|
-
),
|
|
3778
|
+
), Ir = de(
|
|
3751
3779
|
(e) => {
|
|
3752
|
-
var t = e, { locale:
|
|
3753
|
-
if (
|
|
3780
|
+
var t = e, { locale: n, format: r } = t, i = Z(t, ["locale", "format"]);
|
|
3781
|
+
if (n == null)
|
|
3754
3782
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3755
|
-
return
|
|
3783
|
+
return r ? i = K("date", r) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3756
3784
|
}
|
|
3757
|
-
),
|
|
3785
|
+
), Lr = de(
|
|
3758
3786
|
(e) => {
|
|
3759
|
-
var t = e, { locale:
|
|
3760
|
-
if (
|
|
3787
|
+
var t = e, { locale: n, format: r } = t, i = Z(t, ["locale", "format"]);
|
|
3788
|
+
if (n == null)
|
|
3761
3789
|
throw new Error(
|
|
3762
3790
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3763
3791
|
);
|
|
3764
|
-
return
|
|
3792
|
+
return r ? i = K("time", r) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3765
3793
|
}
|
|
3766
|
-
),
|
|
3794
|
+
), Cr = (e = {}) => {
|
|
3767
3795
|
var t = e, {
|
|
3768
|
-
locale:
|
|
3769
|
-
} = t,
|
|
3796
|
+
locale: n = R()
|
|
3797
|
+
} = t, r = Z(t, [
|
|
3770
3798
|
"locale"
|
|
3771
3799
|
]);
|
|
3772
|
-
return
|
|
3773
|
-
},
|
|
3800
|
+
return Or(Ge({ locale: n }, r));
|
|
3801
|
+
}, Mr = (e = {}) => {
|
|
3774
3802
|
var t = e, {
|
|
3775
|
-
locale:
|
|
3776
|
-
} = t,
|
|
3803
|
+
locale: n = R()
|
|
3804
|
+
} = t, r = Z(t, [
|
|
3777
3805
|
"locale"
|
|
3778
3806
|
]);
|
|
3779
|
-
return
|
|
3780
|
-
},
|
|
3807
|
+
return Ir(Ge({ locale: n }, r));
|
|
3808
|
+
}, Rr = (e = {}) => {
|
|
3781
3809
|
var t = e, {
|
|
3782
|
-
locale:
|
|
3783
|
-
} = t,
|
|
3810
|
+
locale: n = R()
|
|
3811
|
+
} = t, r = Z(t, [
|
|
3784
3812
|
"locale"
|
|
3785
3813
|
]);
|
|
3786
|
-
return
|
|
3787
|
-
},
|
|
3814
|
+
return Lr(Ge({ locale: n }, r));
|
|
3815
|
+
}, $r = de(
|
|
3788
3816
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3789
|
-
(e, t =
|
|
3790
|
-
ignoreTag:
|
|
3817
|
+
(e, t = R()) => new hr(e, t, V().formats, {
|
|
3818
|
+
ignoreTag: V().ignoreTag
|
|
3791
3819
|
})
|
|
3792
|
-
),
|
|
3793
|
-
var
|
|
3794
|
-
let
|
|
3795
|
-
typeof e == "object" && (
|
|
3820
|
+
), Ur = (e, t = {}) => {
|
|
3821
|
+
var n, r, i, s;
|
|
3822
|
+
let a = t;
|
|
3823
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3796
3824
|
const {
|
|
3797
3825
|
values: o,
|
|
3798
|
-
locale: l =
|
|
3799
|
-
default:
|
|
3800
|
-
} =
|
|
3826
|
+
locale: l = R(),
|
|
3827
|
+
default: u
|
|
3828
|
+
} = a;
|
|
3801
3829
|
if (l == null)
|
|
3802
3830
|
throw new Error(
|
|
3803
3831
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3804
3832
|
);
|
|
3805
3833
|
let h = Pt(e, l);
|
|
3806
3834
|
if (!h)
|
|
3807
|
-
h = (s = (i = (
|
|
3835
|
+
h = (s = (i = (r = (n = V()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3808
3836
|
else if (typeof h != "string")
|
|
3809
3837
|
return console.warn(
|
|
3810
3838
|
`[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.`
|
|
@@ -3813,7 +3841,7 @@ const ee = (e, t) => {
|
|
|
3813
3841
|
return h;
|
|
3814
3842
|
let c = h;
|
|
3815
3843
|
try {
|
|
3816
|
-
c =
|
|
3844
|
+
c = $r(h, l).format(o);
|
|
3817
3845
|
} catch (f) {
|
|
3818
3846
|
f instanceof Error && console.warn(
|
|
3819
3847
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3821,63 +3849,63 @@ const ee = (e, t) => {
|
|
|
3821
3849
|
);
|
|
3822
3850
|
}
|
|
3823
3851
|
return c;
|
|
3824
|
-
},
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
function
|
|
3852
|
+
}, Dr = (e, t) => Rr(t).format(e), Gr = (e, t) => Mr(t).format(e), Fr = (e, t) => Cr(t).format(e), jr = (e, t = R()) => Pt(e, t), mi = z([M, W], () => Ur);
|
|
3853
|
+
z([M], () => Dr);
|
|
3854
|
+
z([M], () => Gr);
|
|
3855
|
+
z([M], () => Fr);
|
|
3856
|
+
z([M, W], () => jr);
|
|
3857
|
+
function kr(e, t) {
|
|
3830
3858
|
if (e) {
|
|
3831
|
-
const
|
|
3832
|
-
|
|
3859
|
+
const n = document.createElement("style");
|
|
3860
|
+
n.innerHTML = t, e.appendChild(n);
|
|
3833
3861
|
}
|
|
3834
3862
|
}
|
|
3835
|
-
function
|
|
3836
|
-
const
|
|
3837
|
-
fetch(
|
|
3863
|
+
function Vr(e, t) {
|
|
3864
|
+
const n = new URL(t);
|
|
3865
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
3838
3866
|
const i = document.createElement("style");
|
|
3839
|
-
i.innerHTML =
|
|
3840
|
-
}).catch((
|
|
3841
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
3867
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
3868
|
+
}).catch((r) => {
|
|
3869
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
3842
3870
|
});
|
|
3843
3871
|
}
|
|
3844
|
-
function
|
|
3872
|
+
function Xr(e, t, n) {
|
|
3845
3873
|
if (window.emMessageBus) {
|
|
3846
|
-
const
|
|
3874
|
+
const r = document.createElement("style");
|
|
3847
3875
|
window.emMessageBus.subscribe(t, (i) => {
|
|
3848
|
-
|
|
3876
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
3849
3877
|
});
|
|
3850
3878
|
}
|
|
3851
3879
|
}
|
|
3852
|
-
function
|
|
3853
|
-
|
|
3854
|
-
|
|
3880
|
+
function zr({ withLocale: e, translations: t }) {
|
|
3881
|
+
M.subscribe((n) => {
|
|
3882
|
+
n == null && (W.set(t), M.set(e));
|
|
3855
3883
|
});
|
|
3856
3884
|
}
|
|
3857
3885
|
if (typeof window < "u") {
|
|
3858
3886
|
let e = function(t) {
|
|
3859
|
-
return function(...
|
|
3887
|
+
return function(...n) {
|
|
3860
3888
|
try {
|
|
3861
|
-
return t.apply(this,
|
|
3862
|
-
} catch (
|
|
3863
|
-
if (
|
|
3889
|
+
return t.apply(this, n);
|
|
3890
|
+
} catch (r) {
|
|
3891
|
+
if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
3864
3892
|
return !1;
|
|
3865
|
-
throw
|
|
3893
|
+
throw r;
|
|
3866
3894
|
}
|
|
3867
3895
|
};
|
|
3868
3896
|
};
|
|
3869
|
-
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-
|
|
3897
|
+
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-DLajhbPV.js").then(({ default: t }) => {
|
|
3870
3898
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", t.element);
|
|
3871
3899
|
});
|
|
3872
3900
|
}
|
|
3873
|
-
function
|
|
3901
|
+
function Wr(e) {
|
|
3874
3902
|
Ut(e, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
|
|
3875
3903
|
}
|
|
3876
|
-
function
|
|
3904
|
+
function nt(e) {
|
|
3877
3905
|
let t;
|
|
3878
3906
|
return {
|
|
3879
3907
|
c() {
|
|
3880
|
-
t =
|
|
3908
|
+
t = te("casino-games-category-section"), g(
|
|
3881
3909
|
t,
|
|
3882
3910
|
"session",
|
|
3883
3911
|
/*session*/
|
|
@@ -3974,178 +4002,178 @@ function rt(e) {
|
|
|
3974
4002
|
e[16]
|
|
3975
4003
|
);
|
|
3976
4004
|
},
|
|
3977
|
-
m(
|
|
3978
|
-
|
|
4005
|
+
m(n, r) {
|
|
4006
|
+
le(n, t, r);
|
|
3979
4007
|
},
|
|
3980
|
-
p(
|
|
3981
|
-
|
|
4008
|
+
p(n, r) {
|
|
4009
|
+
r & /*session*/
|
|
3982
4010
|
16 && g(
|
|
3983
4011
|
t,
|
|
3984
4012
|
"session",
|
|
3985
4013
|
/*session*/
|
|
3986
|
-
|
|
3987
|
-
),
|
|
4014
|
+
n[4]
|
|
4015
|
+
), r & /*userid*/
|
|
3988
4016
|
32 && g(
|
|
3989
4017
|
t,
|
|
3990
4018
|
"userid",
|
|
3991
4019
|
/*userid*/
|
|
3992
|
-
|
|
3993
|
-
),
|
|
4020
|
+
n[5]
|
|
4021
|
+
), r & /*endpoint*/
|
|
3994
4022
|
1 && g(
|
|
3995
4023
|
t,
|
|
3996
4024
|
"endpoint",
|
|
3997
4025
|
/*endpoint*/
|
|
3998
|
-
|
|
3999
|
-
),
|
|
4026
|
+
n[0]
|
|
4027
|
+
), r & /*datasource*/
|
|
4000
4028
|
2 && g(
|
|
4001
4029
|
t,
|
|
4002
4030
|
"datasource",
|
|
4003
4031
|
/*datasource*/
|
|
4004
|
-
|
|
4005
|
-
),
|
|
4032
|
+
n[1]
|
|
4033
|
+
), r & /*lang*/
|
|
4006
4034
|
8 && g(
|
|
4007
4035
|
t,
|
|
4008
4036
|
"lang",
|
|
4009
4037
|
/*lang*/
|
|
4010
|
-
|
|
4011
|
-
),
|
|
4038
|
+
n[3]
|
|
4039
|
+
), r & /*currency*/
|
|
4012
4040
|
4 && g(
|
|
4013
4041
|
t,
|
|
4014
4042
|
"currency",
|
|
4015
4043
|
/*currency*/
|
|
4016
|
-
|
|
4017
|
-
),
|
|
4044
|
+
n[2]
|
|
4045
|
+
), r & /*favorites*/
|
|
4018
4046
|
32768 && g(
|
|
4019
4047
|
t,
|
|
4020
4048
|
"favorites",
|
|
4021
4049
|
/*favorites*/
|
|
4022
|
-
|
|
4023
|
-
),
|
|
4050
|
+
n[15]
|
|
4051
|
+
), r & /*fetchviaevent*/
|
|
4024
4052
|
131072 && g(
|
|
4025
4053
|
t,
|
|
4026
4054
|
"fetchviaevent",
|
|
4027
4055
|
/*fetchviaevent*/
|
|
4028
|
-
|
|
4029
|
-
),
|
|
4056
|
+
n[17]
|
|
4057
|
+
), r & /*mbsource*/
|
|
4030
4058
|
262144 && g(
|
|
4031
4059
|
t,
|
|
4032
4060
|
"mbsource",
|
|
4033
4061
|
/*mbsource*/
|
|
4034
|
-
|
|
4035
|
-
),
|
|
4062
|
+
n[18]
|
|
4063
|
+
), r & /*showgamename*/
|
|
4036
4064
|
4096 && g(
|
|
4037
4065
|
t,
|
|
4038
4066
|
"showgamename",
|
|
4039
4067
|
/*showgamename*/
|
|
4040
|
-
|
|
4041
|
-
),
|
|
4068
|
+
n[12]
|
|
4069
|
+
), r & /*clientstyling*/
|
|
4042
4070
|
64 && g(
|
|
4043
4071
|
t,
|
|
4044
4072
|
"clientstyling",
|
|
4045
4073
|
/*clientstyling*/
|
|
4046
|
-
|
|
4047
|
-
),
|
|
4074
|
+
n[6]
|
|
4075
|
+
), r & /*clientstylingurl*/
|
|
4048
4076
|
128 && g(
|
|
4049
4077
|
t,
|
|
4050
4078
|
"clientstylingurl",
|
|
4051
4079
|
/*clientstylingurl*/
|
|
4052
|
-
|
|
4053
|
-
),
|
|
4080
|
+
n[7]
|
|
4081
|
+
), r & /*translationurl*/
|
|
4054
4082
|
256 && g(
|
|
4055
4083
|
t,
|
|
4056
4084
|
"translationurl",
|
|
4057
4085
|
/*translationurl*/
|
|
4058
|
-
|
|
4059
|
-
),
|
|
4086
|
+
n[8]
|
|
4087
|
+
), r & /*livecasino*/
|
|
4060
4088
|
512 && g(
|
|
4061
4089
|
t,
|
|
4062
4090
|
"livecasino",
|
|
4063
4091
|
/*livecasino*/
|
|
4064
|
-
|
|
4065
|
-
),
|
|
4092
|
+
n[9]
|
|
4093
|
+
), r & /*visiblegames*/
|
|
4066
4094
|
16384 && g(
|
|
4067
4095
|
t,
|
|
4068
4096
|
"visiblegames",
|
|
4069
4097
|
/*visiblegames*/
|
|
4070
|
-
|
|
4071
|
-
),
|
|
4098
|
+
n[14]
|
|
4099
|
+
), r & /*gamepagemodalurl*/
|
|
4072
4100
|
8192 && g(
|
|
4073
4101
|
t,
|
|
4074
4102
|
"gamepagemodalurl",
|
|
4075
4103
|
/*gamepagemodalurl*/
|
|
4076
|
-
|
|
4077
|
-
),
|
|
4104
|
+
n[13]
|
|
4105
|
+
), r & /*integratedgameframedesktop*/
|
|
4078
4106
|
2048 && g(
|
|
4079
4107
|
t,
|
|
4080
4108
|
"integratedgameframedesktop",
|
|
4081
4109
|
/*integratedgameframedesktop*/
|
|
4082
|
-
|
|
4083
|
-
),
|
|
4110
|
+
n[11]
|
|
4111
|
+
), r & /*integratedgameframemobile*/
|
|
4084
4112
|
1024 && g(
|
|
4085
4113
|
t,
|
|
4086
4114
|
"integratedgameframemobile",
|
|
4087
4115
|
/*integratedgameframemobile*/
|
|
4088
|
-
|
|
4089
|
-
),
|
|
4116
|
+
n[10]
|
|
4117
|
+
), r & /*casinomygames*/
|
|
4090
4118
|
65536 && g(
|
|
4091
4119
|
t,
|
|
4092
4120
|
"casinomygames",
|
|
4093
4121
|
/*casinomygames*/
|
|
4094
|
-
|
|
4122
|
+
n[16]
|
|
4095
4123
|
);
|
|
4096
4124
|
},
|
|
4097
|
-
d(
|
|
4098
|
-
|
|
4125
|
+
d(n) {
|
|
4126
|
+
n && ee(t);
|
|
4099
4127
|
}
|
|
4100
4128
|
};
|
|
4101
4129
|
}
|
|
4102
|
-
function
|
|
4103
|
-
let t,
|
|
4130
|
+
function Zr(e) {
|
|
4131
|
+
let t, n = (
|
|
4104
4132
|
/*session*/
|
|
4105
|
-
e[4] &&
|
|
4133
|
+
e[4] && nt(e)
|
|
4106
4134
|
);
|
|
4107
4135
|
return {
|
|
4108
4136
|
c() {
|
|
4109
|
-
t =
|
|
4137
|
+
t = te("div"), n && n.c(), Re(t, "class", "CasinoFavoritesSectionContainer");
|
|
4110
4138
|
},
|
|
4111
|
-
m(
|
|
4112
|
-
|
|
4139
|
+
m(r, i) {
|
|
4140
|
+
le(r, t, i), n && n.m(t, null), e[20](t);
|
|
4113
4141
|
},
|
|
4114
|
-
p(
|
|
4142
|
+
p(r, [i]) {
|
|
4115
4143
|
/*session*/
|
|
4116
|
-
|
|
4144
|
+
r[4] ? n ? n.p(r, i) : (n = nt(r), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
|
|
4117
4145
|
},
|
|
4118
4146
|
i: I,
|
|
4119
4147
|
o: I,
|
|
4120
|
-
d(
|
|
4121
|
-
|
|
4148
|
+
d(r) {
|
|
4149
|
+
r && ee(t), n && n.d(), e[20](null);
|
|
4122
4150
|
}
|
|
4123
4151
|
};
|
|
4124
4152
|
}
|
|
4125
|
-
function
|
|
4126
|
-
let { endpoint:
|
|
4127
|
-
|
|
4153
|
+
function Qr(e, t, n) {
|
|
4154
|
+
let { endpoint: r = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: a = "" } = t, { session: o = "" } = t, { userid: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { livecasino: f = "false" } = t, { integratedgameframemobile: b = "false" } = t, { integratedgameframedesktop: y = "false" } = t, { showgamename: x = "" } = t, { gamepagemodalurl: S = "false" } = t, { visiblegames: N = "" } = t, { favorites: P = "" } = t, { casinomygames: B = "false" } = t, { fetchviaevent: O = "true" } = t, { mbsource: w } = t, T;
|
|
4155
|
+
zr({ withLocale: "en", translations: {} }), Vt(() => () => {
|
|
4128
4156
|
});
|
|
4129
|
-
function
|
|
4130
|
-
|
|
4131
|
-
T = m,
|
|
4157
|
+
function _(m) {
|
|
4158
|
+
He[m ? "unshift" : "push"](() => {
|
|
4159
|
+
T = m, n(19, T);
|
|
4132
4160
|
});
|
|
4133
4161
|
}
|
|
4134
4162
|
return e.$$set = (m) => {
|
|
4135
|
-
"endpoint" in m &&
|
|
4163
|
+
"endpoint" in m && n(0, r = m.endpoint), "datasource" in m && n(1, i = m.datasource), "currency" in m && n(2, s = m.currency), "lang" in m && n(3, a = m.lang), "session" in m && n(4, o = m.session), "userid" in m && n(5, l = m.userid), "clientstyling" in m && n(6, u = m.clientstyling), "clientstylingurl" in m && n(7, h = m.clientstylingurl), "translationurl" in m && n(8, c = m.translationurl), "livecasino" in m && n(9, f = m.livecasino), "integratedgameframemobile" in m && n(10, b = m.integratedgameframemobile), "integratedgameframedesktop" in m && n(11, y = m.integratedgameframedesktop), "showgamename" in m && n(12, x = m.showgamename), "gamepagemodalurl" in m && n(13, S = m.gamepagemodalurl), "visiblegames" in m && n(14, N = m.visiblegames), "favorites" in m && n(15, P = m.favorites), "casinomygames" in m && n(16, B = m.casinomygames), "fetchviaevent" in m && n(17, O = m.fetchviaevent), "mbsource" in m && n(18, w = m.mbsource);
|
|
4136
4164
|
}, e.$$.update = () => {
|
|
4137
4165
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4138
|
-
524352 &&
|
|
4139
|
-
524416 && h && T &&
|
|
4140
|
-
786432 && T &&
|
|
4166
|
+
524352 && u && T && kr(T, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4167
|
+
524416 && h && T && Vr(T, h), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4168
|
+
786432 && T && Xr(T, `${w}.Style`);
|
|
4141
4169
|
}, [
|
|
4142
|
-
|
|
4170
|
+
r,
|
|
4143
4171
|
i,
|
|
4144
4172
|
s,
|
|
4145
|
-
|
|
4173
|
+
a,
|
|
4146
4174
|
o,
|
|
4147
4175
|
l,
|
|
4148
|
-
|
|
4176
|
+
u,
|
|
4149
4177
|
h,
|
|
4150
4178
|
c,
|
|
4151
4179
|
f,
|
|
@@ -4153,13 +4181,13 @@ function qn(e, t, r) {
|
|
|
4153
4181
|
y,
|
|
4154
4182
|
x,
|
|
4155
4183
|
S,
|
|
4156
|
-
|
|
4184
|
+
N,
|
|
4157
4185
|
P,
|
|
4158
4186
|
B,
|
|
4159
|
-
|
|
4187
|
+
O,
|
|
4160
4188
|
w,
|
|
4161
4189
|
T,
|
|
4162
|
-
|
|
4190
|
+
_
|
|
4163
4191
|
];
|
|
4164
4192
|
}
|
|
4165
4193
|
class Mt extends Kt {
|
|
@@ -4167,8 +4195,8 @@ class Mt extends Kt {
|
|
|
4167
4195
|
super(), Jt(
|
|
4168
4196
|
this,
|
|
4169
4197
|
t,
|
|
4170
|
-
|
|
4171
|
-
|
|
4198
|
+
Qr,
|
|
4199
|
+
Zr,
|
|
4172
4200
|
it,
|
|
4173
4201
|
{
|
|
4174
4202
|
endpoint: 0,
|
|
@@ -4191,7 +4219,7 @@ class Mt extends Kt {
|
|
|
4191
4219
|
fetchviaevent: 17,
|
|
4192
4220
|
mbsource: 18
|
|
4193
4221
|
},
|
|
4194
|
-
|
|
4222
|
+
Wr
|
|
4195
4223
|
);
|
|
4196
4224
|
}
|
|
4197
4225
|
get endpoint() {
|
|
@@ -4310,50 +4338,54 @@ class Mt extends Kt {
|
|
|
4310
4338
|
}
|
|
4311
4339
|
}
|
|
4312
4340
|
Yt(Mt, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
|
|
4313
|
-
const
|
|
4341
|
+
const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4314
4342
|
__proto__: null,
|
|
4315
4343
|
default: Mt
|
|
4316
4344
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4317
4345
|
export {
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4346
|
+
M as $,
|
|
4347
|
+
ti as A,
|
|
4348
|
+
ni as B,
|
|
4349
|
+
Yr as C,
|
|
4350
|
+
X as D,
|
|
4351
|
+
ri as E,
|
|
4352
|
+
mi as F,
|
|
4353
|
+
qr as G,
|
|
4354
|
+
g as H,
|
|
4355
|
+
ii as I,
|
|
4356
|
+
ei as J,
|
|
4357
|
+
si as K,
|
|
4358
|
+
oi as L,
|
|
4359
|
+
ai as M,
|
|
4360
|
+
li as N,
|
|
4361
|
+
hi as O,
|
|
4362
|
+
gi as P,
|
|
4332
4363
|
Kt as S,
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4364
|
+
fi as _,
|
|
4365
|
+
pe as a,
|
|
4366
|
+
ci as b,
|
|
4367
|
+
fe as c,
|
|
4368
|
+
W as d,
|
|
4369
|
+
dr as e,
|
|
4338
4370
|
H as f,
|
|
4339
|
-
|
|
4340
|
-
|
|
4371
|
+
Yt as g,
|
|
4372
|
+
Ut as h,
|
|
4341
4373
|
Jt as i,
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4374
|
+
te as j,
|
|
4375
|
+
le as k,
|
|
4376
|
+
ee as l,
|
|
4377
|
+
Jr as m,
|
|
4346
4378
|
I as n,
|
|
4347
4379
|
Vt as o,
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4380
|
+
Vr as p,
|
|
4381
|
+
He as q,
|
|
4382
|
+
kr as r,
|
|
4351
4383
|
it as s,
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4384
|
+
Xr as t,
|
|
4385
|
+
ui as u,
|
|
4386
|
+
Ft as v,
|
|
4387
|
+
Kr as w,
|
|
4388
|
+
at as x,
|
|
4389
|
+
Re as y,
|
|
4390
|
+
$t as z
|
|
4359
4391
|
};
|