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