@everymatrix/casino-my-games 1.54.0 → 1.54.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoFavoritesSection-BUufWA4P.js → CasinoFavoritesSection-Dw_G4tDp.js} +867 -904
- package/components/{CasinoFilter-D5B92Ufx.js → CasinoFilter-pDoH8Yi_.js} +123 -124
- package/components/{CasinoGameThumbnail-CnwTFL89.js → CasinoGameThumbnail-DEPf9eJc.js} +661 -677
- package/components/{CasinoGamesCategorySection-kMmuvX26.js → CasinoGamesCategorySection-Dn9KPRYf.js} +1108 -1146
- package/components/{CasinoLastPlayedSection-u8NwcA35.js → CasinoLastPlayedSection-CoSEjqmY.js} +2 -2
- package/components/{CasinoMostPlayedSection-BofNupZa.js → CasinoMostPlayedSection-DIO9rwIi.js} +2 -2
- package/components/{CasinoMyGames-BULBVMNI.js → CasinoMyGames-CUe4ERsE.js} +76 -77
- package/components/{CasinoSort-CYxl-Nt2.js → CasinoSort-uzeV1HAE.js} +2 -3
- package/esnext/casino-my-games.js +14 -0
- package/package.json +10 -13
- package/components/CasinoFavoritesSection-Cil4xs2j.cjs +0 -3
- package/components/CasinoFilter-B9QhD3gZ.cjs +0 -3
- package/components/CasinoGameThumbnail-sgu6C_MN.cjs +0 -47
- package/components/CasinoGamesCategorySection-CpBYqp77.cjs +0 -1
- package/components/CasinoLastPlayedSection-DVVOYi83.cjs +0 -1
- package/components/CasinoMostPlayedSection-BsyVOAcc.cjs +0 -1
- package/components/CasinoMyGames-OeJCu-8N.cjs +0 -1
- package/components/CasinoSort-LEy0GW3D.cjs +0 -1
- package/es2015/casino-my-games.cjs +0 -1
- package/es2015/casino-my-games.js +0 -16
package/components/{CasinoFavoritesSection-BUufWA4P.js → CasinoFavoritesSection-Dw_G4tDp.js}
RENAMED
|
@@ -1,79 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
var jt = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var je = Object.getOwnPropertySymbols;
|
|
4
|
-
var kt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var pe = (e, t, n) => t in e ? Gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ke = (e, t) => {
|
|
6
|
-
for (var n in t || (t = {}))
|
|
7
|
-
kt.call(t, n) && pe(e, n, t[n]);
|
|
8
|
-
if (je)
|
|
9
|
-
for (var n of je(t))
|
|
10
|
-
Vt.call(t, n) && pe(e, n, t[n]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Ve = (e, t) => Ft(e, jt(t));
|
|
13
|
-
var S = (e, t, n) => pe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
-
var Xe = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var s = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
u(n.next(l));
|
|
18
|
-
} catch (o) {
|
|
19
|
-
i(o);
|
|
20
|
-
}
|
|
21
|
-
}, a = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
u(n.throw(l));
|
|
24
|
-
} catch (o) {
|
|
25
|
-
i(o);
|
|
26
|
-
}
|
|
27
|
-
}, u = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
-
u((n = n.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function L() {
|
|
1
|
+
function I() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function nt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function Ge() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function X(e) {
|
|
10
|
+
e.forEach(nt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Me(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function rt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
18
|
+
let re;
|
|
19
|
+
function zr(e, t) {
|
|
20
|
+
return e === t ? !0 : (re || (re = document.createElement("a")), re.href = t, e === re.href);
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function Ct(e) {
|
|
52
23
|
return Object.keys(e).length === 0;
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function it(e, ...t) {
|
|
55
26
|
if (e == null) {
|
|
56
27
|
for (const r of t)
|
|
57
28
|
r(void 0);
|
|
58
|
-
return
|
|
29
|
+
return I;
|
|
59
30
|
}
|
|
60
31
|
const n = e.subscribe(...t);
|
|
61
32
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
62
33
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Wr(e, t, n) {
|
|
35
|
+
e.$$.on_destroy.push(it(t, n));
|
|
65
36
|
}
|
|
66
|
-
function
|
|
37
|
+
function Mt(e, t) {
|
|
67
38
|
e.appendChild(t);
|
|
68
39
|
}
|
|
69
|
-
function
|
|
70
|
-
const r =
|
|
40
|
+
function Rt(e, t, n) {
|
|
41
|
+
const r = $t(e);
|
|
71
42
|
if (!r.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = n,
|
|
43
|
+
const i = te("style");
|
|
44
|
+
i.id = t, i.textContent = n, Ut(r, i);
|
|
74
45
|
}
|
|
75
46
|
}
|
|
76
|
-
function
|
|
47
|
+
function $t(e) {
|
|
77
48
|
if (!e) return document;
|
|
78
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
50
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,76 +53,76 @@ function Zt(e) {
|
|
|
82
53
|
t
|
|
83
54
|
) : e.ownerDocument;
|
|
84
55
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
56
|
+
function Ut(e, t) {
|
|
57
|
+
return Mt(
|
|
87
58
|
/** @type {Document} */
|
|
88
59
|
e.head || e,
|
|
89
60
|
t
|
|
90
61
|
), t.sheet;
|
|
91
62
|
}
|
|
92
|
-
function
|
|
63
|
+
function le(e, t, n) {
|
|
93
64
|
e.insertBefore(t, n || null);
|
|
94
65
|
}
|
|
95
|
-
function
|
|
66
|
+
function ee(e) {
|
|
96
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
68
|
}
|
|
98
|
-
function
|
|
69
|
+
function Zr(e, t) {
|
|
99
70
|
for (let n = 0; n < e.length; n += 1)
|
|
100
71
|
e[n] && e[n].d(t);
|
|
101
72
|
}
|
|
102
|
-
function
|
|
73
|
+
function te(e) {
|
|
103
74
|
return document.createElement(e);
|
|
104
75
|
}
|
|
105
|
-
function
|
|
76
|
+
function Dt(e) {
|
|
106
77
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
107
78
|
}
|
|
108
|
-
function
|
|
79
|
+
function st(e) {
|
|
109
80
|
return document.createTextNode(e);
|
|
110
81
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
82
|
+
function Qr() {
|
|
83
|
+
return st(" ");
|
|
113
84
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
85
|
+
function qr() {
|
|
86
|
+
return st("");
|
|
116
87
|
}
|
|
117
|
-
function
|
|
88
|
+
function Jr(e, t, n, r) {
|
|
118
89
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
119
90
|
}
|
|
120
|
-
function
|
|
91
|
+
function Re(e, t, n) {
|
|
121
92
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
122
93
|
}
|
|
123
94
|
function d(e, t, n) {
|
|
124
95
|
const r = t.toLowerCase();
|
|
125
|
-
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n :
|
|
96
|
+
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);
|
|
126
97
|
}
|
|
127
|
-
function
|
|
98
|
+
function Gt(e) {
|
|
128
99
|
return Array.from(e.childNodes);
|
|
129
100
|
}
|
|
130
|
-
function
|
|
101
|
+
function Yr(e, t) {
|
|
131
102
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
132
103
|
t);
|
|
133
104
|
}
|
|
134
|
-
function
|
|
135
|
-
e.value = t
|
|
105
|
+
function Kr(e, t) {
|
|
106
|
+
e.value = t ?? "";
|
|
136
107
|
}
|
|
137
|
-
function
|
|
108
|
+
function ei(e, t, n) {
|
|
138
109
|
e.classList.toggle(t, !!n);
|
|
139
110
|
}
|
|
140
|
-
class
|
|
111
|
+
class ti {
|
|
112
|
+
/**
|
|
113
|
+
* @private
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
is_svg = !1;
|
|
117
|
+
/** parent for creating node */
|
|
118
|
+
e = void 0;
|
|
119
|
+
/** html tag nodes */
|
|
120
|
+
n = void 0;
|
|
121
|
+
/** target */
|
|
122
|
+
t = void 0;
|
|
123
|
+
/** anchor */
|
|
124
|
+
a = void 0;
|
|
141
125
|
constructor(t = !1) {
|
|
142
|
-
/**
|
|
143
|
-
* @private
|
|
144
|
-
* @default false
|
|
145
|
-
*/
|
|
146
|
-
S(this, "is_svg", !1);
|
|
147
|
-
/** parent for creating node */
|
|
148
|
-
S(this, "e");
|
|
149
|
-
/** html tag nodes */
|
|
150
|
-
S(this, "n");
|
|
151
|
-
/** target */
|
|
152
|
-
S(this, "t");
|
|
153
|
-
/** anchor */
|
|
154
|
-
S(this, "a");
|
|
155
126
|
this.is_svg = t, this.e = this.n = null;
|
|
156
127
|
}
|
|
157
128
|
/**
|
|
@@ -168,10 +139,10 @@ class mi {
|
|
|
168
139
|
* @returns {void}
|
|
169
140
|
*/
|
|
170
141
|
m(t, n, r = null) {
|
|
171
|
-
this.e || (this.is_svg ? this.e =
|
|
142
|
+
this.e || (this.is_svg ? this.e = Dt(
|
|
172
143
|
/** @type {keyof SVGElementTagNameMap} */
|
|
173
144
|
n.nodeName
|
|
174
|
-
) : this.e =
|
|
145
|
+
) : this.e = te(
|
|
175
146
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
176
147
|
n.nodeType === 11 ? "TEMPLATE" : n.nodeName
|
|
177
148
|
), this.t = n.tagName !== "TEMPLATE" ? n : (
|
|
@@ -192,7 +163,7 @@ class mi {
|
|
|
192
163
|
* @returns {void} */
|
|
193
164
|
i(t) {
|
|
194
165
|
for (let n = 0; n < this.n.length; n += 1)
|
|
195
|
-
|
|
166
|
+
le(this.t, this.n[n], t);
|
|
196
167
|
}
|
|
197
168
|
/**
|
|
198
169
|
* @param {string} html
|
|
@@ -204,10 +175,10 @@ class mi {
|
|
|
204
175
|
/**
|
|
205
176
|
* @returns {void} */
|
|
206
177
|
d() {
|
|
207
|
-
this.n.forEach(
|
|
178
|
+
this.n.forEach(ee);
|
|
208
179
|
}
|
|
209
180
|
}
|
|
210
|
-
function
|
|
181
|
+
function Ft(e) {
|
|
211
182
|
const t = {};
|
|
212
183
|
return e.childNodes.forEach(
|
|
213
184
|
/** @param {Element} node */
|
|
@@ -216,127 +187,127 @@ function Yt(e) {
|
|
|
216
187
|
}
|
|
217
188
|
), t;
|
|
218
189
|
}
|
|
219
|
-
let
|
|
220
|
-
function
|
|
221
|
-
|
|
190
|
+
let J;
|
|
191
|
+
function q(e) {
|
|
192
|
+
J = e;
|
|
222
193
|
}
|
|
223
|
-
function
|
|
224
|
-
if (!
|
|
225
|
-
return
|
|
194
|
+
function jt() {
|
|
195
|
+
if (!J) throw new Error("Function called outside component initialization");
|
|
196
|
+
return J;
|
|
226
197
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
198
|
+
function ni(e) {
|
|
199
|
+
jt().$$.on_mount.push(e);
|
|
229
200
|
}
|
|
230
|
-
const
|
|
231
|
-
let
|
|
232
|
-
const
|
|
233
|
-
let
|
|
234
|
-
function
|
|
235
|
-
|
|
201
|
+
const D = [], He = [];
|
|
202
|
+
let G = [];
|
|
203
|
+
const Fe = [], at = /* @__PURE__ */ Promise.resolve();
|
|
204
|
+
let Te = !1;
|
|
205
|
+
function ot() {
|
|
206
|
+
Te || (Te = !0, at.then(H));
|
|
236
207
|
}
|
|
237
|
-
function
|
|
238
|
-
return
|
|
208
|
+
function ri() {
|
|
209
|
+
return ot(), at;
|
|
239
210
|
}
|
|
240
|
-
function
|
|
241
|
-
|
|
211
|
+
function Se(e) {
|
|
212
|
+
G.push(e);
|
|
242
213
|
}
|
|
243
|
-
const
|
|
244
|
-
let
|
|
214
|
+
const be = /* @__PURE__ */ new Set();
|
|
215
|
+
let $ = 0;
|
|
245
216
|
function H() {
|
|
246
|
-
if (
|
|
217
|
+
if ($ !== 0)
|
|
247
218
|
return;
|
|
248
|
-
const e =
|
|
219
|
+
const e = J;
|
|
249
220
|
do {
|
|
250
221
|
try {
|
|
251
|
-
for (;
|
|
252
|
-
const t =
|
|
253
|
-
|
|
222
|
+
for (; $ < D.length; ) {
|
|
223
|
+
const t = D[$];
|
|
224
|
+
$++, q(t), kt(t.$$);
|
|
254
225
|
}
|
|
255
226
|
} catch (t) {
|
|
256
|
-
throw
|
|
227
|
+
throw D.length = 0, $ = 0, t;
|
|
257
228
|
}
|
|
258
|
-
for (
|
|
259
|
-
for (let t = 0; t <
|
|
260
|
-
const n =
|
|
261
|
-
|
|
229
|
+
for (q(null), D.length = 0, $ = 0; He.length; ) He.pop()();
|
|
230
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
231
|
+
const n = G[t];
|
|
232
|
+
be.has(n) || (be.add(n), n());
|
|
262
233
|
}
|
|
263
|
-
|
|
264
|
-
} while (
|
|
265
|
-
for (;
|
|
266
|
-
|
|
267
|
-
|
|
234
|
+
G.length = 0;
|
|
235
|
+
} while (D.length);
|
|
236
|
+
for (; Fe.length; )
|
|
237
|
+
Fe.pop()();
|
|
238
|
+
Te = !1, be.clear(), q(e);
|
|
268
239
|
}
|
|
269
|
-
function
|
|
240
|
+
function kt(e) {
|
|
270
241
|
if (e.fragment !== null) {
|
|
271
|
-
e.update(),
|
|
242
|
+
e.update(), X(e.before_update);
|
|
272
243
|
const t = e.dirty;
|
|
273
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
244
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
|
|
274
245
|
}
|
|
275
246
|
}
|
|
276
|
-
function
|
|
247
|
+
function Vt(e) {
|
|
277
248
|
const t = [], n = [];
|
|
278
|
-
|
|
249
|
+
G.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), G = t;
|
|
279
250
|
}
|
|
280
|
-
const
|
|
281
|
-
function
|
|
282
|
-
e && e.i && (
|
|
251
|
+
const Xt = /* @__PURE__ */ new Set();
|
|
252
|
+
function ut(e, t) {
|
|
253
|
+
e && e.i && (Xt.delete(e), e.i(t));
|
|
283
254
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
255
|
+
function ii(e) {
|
|
256
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
286
257
|
}
|
|
287
|
-
function
|
|
258
|
+
function si(e, t) {
|
|
288
259
|
e.d(1), t.delete(e.key);
|
|
289
260
|
}
|
|
290
|
-
function
|
|
261
|
+
function ai(e, t, n, r, i, s, a, o, l, u, h, c) {
|
|
291
262
|
let f = e.length, b = s.length, y = f;
|
|
292
263
|
const v = {};
|
|
293
264
|
for (; y--; ) v[e[y].key] = y;
|
|
294
|
-
const T = [],
|
|
265
|
+
const T = [], N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), S = [];
|
|
295
266
|
for (y = b; y--; ) {
|
|
296
267
|
const x = c(i, s, y), m = n(x);
|
|
297
|
-
let
|
|
298
|
-
|
|
268
|
+
let w = a.get(m);
|
|
269
|
+
w ? S.push(() => w.p(x, t)) : (w = u(m, x), w.c()), N.set(m, T[y] = w), m in v && P.set(m, Math.abs(y - v[m]));
|
|
299
270
|
}
|
|
300
|
-
const
|
|
301
|
-
function
|
|
302
|
-
|
|
271
|
+
const B = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
|
|
272
|
+
function L(x) {
|
|
273
|
+
ut(x, 1), x.m(o, h), a.set(x.key, x), h = x.first, b--;
|
|
303
274
|
}
|
|
304
275
|
for (; f && b; ) {
|
|
305
|
-
const x = T[b - 1], m = e[f - 1],
|
|
306
|
-
x === m ? (h = x.first, f--, b--) :
|
|
276
|
+
const x = T[b - 1], m = e[f - 1], w = x.key, ne = m.key;
|
|
277
|
+
x === m ? (h = x.first, f--, b--) : N.has(ne) ? !a.has(w) || B.has(w) ? L(x) : O.has(ne) ? f-- : P.get(w) > P.get(ne) ? (O.add(w), L(x)) : (B.add(ne), f--) : (l(m, a), f--);
|
|
307
278
|
}
|
|
308
279
|
for (; f--; ) {
|
|
309
280
|
const x = e[f];
|
|
310
|
-
|
|
281
|
+
N.has(x.key) || l(x, a);
|
|
311
282
|
}
|
|
312
|
-
for (; b; )
|
|
313
|
-
return
|
|
283
|
+
for (; b; ) L(T[b - 1]);
|
|
284
|
+
return X(S), T;
|
|
314
285
|
}
|
|
315
|
-
function
|
|
286
|
+
function zt(e, t, n) {
|
|
316
287
|
const { fragment: r, after_update: i } = e.$$;
|
|
317
|
-
r && r.m(t, n),
|
|
318
|
-
const s = e.$$.on_mount.map(
|
|
319
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
320
|
-
}), i.forEach(
|
|
288
|
+
r && r.m(t, n), Se(() => {
|
|
289
|
+
const s = e.$$.on_mount.map(nt).filter(Me);
|
|
290
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : X(s), e.$$.on_mount = [];
|
|
291
|
+
}), i.forEach(Se);
|
|
321
292
|
}
|
|
322
|
-
function
|
|
293
|
+
function Wt(e, t) {
|
|
323
294
|
const n = e.$$;
|
|
324
|
-
n.fragment !== null && (
|
|
295
|
+
n.fragment !== null && (Vt(n.after_update), X(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
325
296
|
}
|
|
326
|
-
function
|
|
327
|
-
e.$$.dirty[0] === -1 && (
|
|
297
|
+
function Zt(e, t) {
|
|
298
|
+
e.$$.dirty[0] === -1 && (D.push(e), ot(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
328
299
|
}
|
|
329
|
-
function
|
|
330
|
-
const l =
|
|
331
|
-
|
|
332
|
-
const
|
|
300
|
+
function Qt(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
301
|
+
const l = J;
|
|
302
|
+
q(e);
|
|
303
|
+
const u = e.$$ = {
|
|
333
304
|
fragment: null,
|
|
334
305
|
ctx: [],
|
|
335
306
|
// state
|
|
336
307
|
props: s,
|
|
337
|
-
update:
|
|
308
|
+
update: I,
|
|
338
309
|
not_equal: i,
|
|
339
|
-
bound:
|
|
310
|
+
bound: Ge(),
|
|
340
311
|
// lifecycle
|
|
341
312
|
on_mount: [],
|
|
342
313
|
on_destroy: [],
|
|
@@ -345,150 +316,146 @@ function on(e, t, n, r, i, s, a = null, u = [-1]) {
|
|
|
345
316
|
after_update: [],
|
|
346
317
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
347
318
|
// everything else
|
|
348
|
-
callbacks:
|
|
349
|
-
dirty:
|
|
319
|
+
callbacks: Ge(),
|
|
320
|
+
dirty: o,
|
|
350
321
|
skip_bound: !1,
|
|
351
322
|
root: t.target || l.$$.root
|
|
352
323
|
};
|
|
353
|
-
a && a(
|
|
324
|
+
a && a(u.root);
|
|
354
325
|
let h = !1;
|
|
355
|
-
if (
|
|
326
|
+
if (u.ctx = n ? n(e, t.props || {}, (c, f, ...b) => {
|
|
356
327
|
const y = b.length ? b[0] : f;
|
|
357
|
-
return
|
|
358
|
-
}) : [],
|
|
328
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && Zt(e, c)), f;
|
|
329
|
+
}) : [], u.update(), h = !0, X(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
359
330
|
if (t.hydrate) {
|
|
360
|
-
const c =
|
|
361
|
-
|
|
331
|
+
const c = Gt(t.target);
|
|
332
|
+
u.fragment && u.fragment.l(c), c.forEach(ee);
|
|
362
333
|
} else
|
|
363
|
-
|
|
364
|
-
t.intro &&
|
|
334
|
+
u.fragment && u.fragment.c();
|
|
335
|
+
t.intro && ut(e.$$.fragment), zt(e, t.target, t.anchor), H();
|
|
365
336
|
}
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
let
|
|
369
|
-
typeof HTMLElement == "function" && (
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
337
|
+
q(l);
|
|
338
|
+
}
|
|
339
|
+
let ht;
|
|
340
|
+
typeof HTMLElement == "function" && (ht = class extends HTMLElement {
|
|
341
|
+
/** The Svelte component constructor */
|
|
342
|
+
$$ctor;
|
|
343
|
+
/** Slots */
|
|
344
|
+
$$s;
|
|
345
|
+
/** The Svelte component instance */
|
|
346
|
+
$$c;
|
|
347
|
+
/** Whether or not the custom element is connected */
|
|
348
|
+
$$cn = !1;
|
|
349
|
+
/** Component props data */
|
|
350
|
+
$$d = {};
|
|
351
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
352
|
+
$$r = !1;
|
|
353
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
354
|
+
$$p_d = {};
|
|
355
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
356
|
+
$$l = {};
|
|
357
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
358
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
359
|
+
constructor(e, t, n) {
|
|
360
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
391
361
|
}
|
|
392
|
-
addEventListener(t, n
|
|
393
|
-
if (this.$$l[
|
|
394
|
-
const
|
|
395
|
-
this.$$l_u.set(
|
|
362
|
+
addEventListener(e, t, n) {
|
|
363
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
364
|
+
const r = this.$$c.$on(e, t);
|
|
365
|
+
this.$$l_u.set(t, r);
|
|
396
366
|
}
|
|
397
|
-
super.addEventListener(t, n
|
|
367
|
+
super.addEventListener(e, t, n);
|
|
398
368
|
}
|
|
399
|
-
removeEventListener(t, n
|
|
400
|
-
if (super.removeEventListener(t, n
|
|
401
|
-
const
|
|
402
|
-
|
|
369
|
+
removeEventListener(e, t, n) {
|
|
370
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
371
|
+
const r = this.$$l_u.get(t);
|
|
372
|
+
r && (r(), this.$$l_u.delete(t));
|
|
403
373
|
}
|
|
404
374
|
}
|
|
405
|
-
connectedCallback() {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
};
|
|
375
|
+
async connectedCallback() {
|
|
376
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
377
|
+
let e = function(i) {
|
|
378
|
+
return () => {
|
|
379
|
+
let s;
|
|
380
|
+
return {
|
|
381
|
+
c: function() {
|
|
382
|
+
s = te("slot"), i !== "default" && Re(s, "name", i);
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
* @param {HTMLElement} target
|
|
386
|
+
* @param {HTMLElement} [anchor]
|
|
387
|
+
*/
|
|
388
|
+
m: function(l, u) {
|
|
389
|
+
le(l, s, u);
|
|
390
|
+
},
|
|
391
|
+
d: function(l) {
|
|
392
|
+
l && ee(s);
|
|
393
|
+
}
|
|
426
394
|
};
|
|
427
395
|
};
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
396
|
+
};
|
|
397
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
398
|
+
return;
|
|
399
|
+
const t = {}, n = Ft(this);
|
|
400
|
+
for (const i of this.$$s)
|
|
401
|
+
i in n && (t[i] = [e(i)]);
|
|
402
|
+
for (const i of this.attributes) {
|
|
403
|
+
const s = this.$$g_p(i.name);
|
|
404
|
+
s in this.$$d || (this.$$d[s] = se(s, i.value, this.$$p_d, "toProp"));
|
|
405
|
+
}
|
|
406
|
+
for (const i in this.$$p_d)
|
|
407
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
408
|
+
this.$$c = new this.$$ctor({
|
|
409
|
+
target: this.shadowRoot || this,
|
|
410
|
+
props: {
|
|
411
|
+
...this.$$d,
|
|
412
|
+
$$slots: t,
|
|
413
|
+
$$scope: {
|
|
414
|
+
ctx: []
|
|
415
|
+
}
|
|
436
416
|
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
this.$$
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
this.$$r = !0;
|
|
450
|
-
for (const s in this.$$p_d)
|
|
451
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
452
|
-
const a = ae(
|
|
453
|
-
s,
|
|
454
|
-
this.$$d[s],
|
|
455
|
-
this.$$p_d,
|
|
456
|
-
"toAttribute"
|
|
457
|
-
);
|
|
458
|
-
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
459
|
-
}
|
|
460
|
-
this.$$r = !1;
|
|
461
|
-
};
|
|
462
|
-
this.$$c.$$.after_update.push(i), i();
|
|
463
|
-
for (const s in this.$$l)
|
|
464
|
-
for (const a of this.$$l[s]) {
|
|
465
|
-
const u = this.$$c.$on(s, a);
|
|
466
|
-
this.$$l_u.set(a, u);
|
|
417
|
+
});
|
|
418
|
+
const r = () => {
|
|
419
|
+
this.$$r = !0;
|
|
420
|
+
for (const i in this.$$p_d)
|
|
421
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
422
|
+
const s = se(
|
|
423
|
+
i,
|
|
424
|
+
this.$$d[i],
|
|
425
|
+
this.$$p_d,
|
|
426
|
+
"toAttribute"
|
|
427
|
+
);
|
|
428
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
467
429
|
}
|
|
468
|
-
this.$$
|
|
469
|
-
}
|
|
470
|
-
|
|
430
|
+
this.$$r = !1;
|
|
431
|
+
};
|
|
432
|
+
this.$$c.$$.after_update.push(r), r();
|
|
433
|
+
for (const i in this.$$l)
|
|
434
|
+
for (const s of this.$$l[i]) {
|
|
435
|
+
const a = this.$$c.$on(i, s);
|
|
436
|
+
this.$$l_u.set(s, a);
|
|
437
|
+
}
|
|
438
|
+
this.$$l = {};
|
|
439
|
+
}
|
|
471
440
|
}
|
|
472
441
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
473
442
|
// and setting attributes through setAttribute etc, this is helpful
|
|
474
|
-
attributeChangedCallback(t, n
|
|
475
|
-
|
|
476
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ae(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
443
|
+
attributeChangedCallback(e, t, n) {
|
|
444
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = se(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
477
445
|
}
|
|
478
446
|
disconnectedCallback() {
|
|
479
447
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
480
448
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
481
449
|
});
|
|
482
450
|
}
|
|
483
|
-
$$g_p(
|
|
451
|
+
$$g_p(e) {
|
|
484
452
|
return Object.keys(this.$$p_d).find(
|
|
485
|
-
(
|
|
486
|
-
) ||
|
|
453
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
454
|
+
) || e;
|
|
487
455
|
}
|
|
488
456
|
});
|
|
489
|
-
function
|
|
490
|
-
|
|
491
|
-
const i = (s = n[e]) == null ? void 0 : s.type;
|
|
457
|
+
function se(e, t, n, r) {
|
|
458
|
+
const i = n[e]?.type;
|
|
492
459
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
493
460
|
return t;
|
|
494
461
|
if (r === "toAttribute")
|
|
@@ -499,7 +466,7 @@ function ae(e, t, n, r) {
|
|
|
499
466
|
case "Boolean":
|
|
500
467
|
return t ? "" : null;
|
|
501
468
|
case "Number":
|
|
502
|
-
return t
|
|
469
|
+
return t ?? null;
|
|
503
470
|
default:
|
|
504
471
|
return t;
|
|
505
472
|
}
|
|
@@ -516,59 +483,55 @@ function ae(e, t, n, r) {
|
|
|
516
483
|
return t;
|
|
517
484
|
}
|
|
518
485
|
}
|
|
519
|
-
function
|
|
520
|
-
let a = class extends
|
|
486
|
+
function qt(e, t, n, r, i, s) {
|
|
487
|
+
let a = class extends ht {
|
|
521
488
|
constructor() {
|
|
522
489
|
super(e, n, i), this.$$p_d = t;
|
|
523
490
|
}
|
|
524
491
|
static get observedAttributes() {
|
|
525
492
|
return Object.keys(t).map(
|
|
526
|
-
(
|
|
493
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
527
494
|
);
|
|
528
495
|
}
|
|
529
496
|
};
|
|
530
|
-
return Object.keys(t).forEach((
|
|
531
|
-
Object.defineProperty(a.prototype,
|
|
497
|
+
return Object.keys(t).forEach((o) => {
|
|
498
|
+
Object.defineProperty(a.prototype, o, {
|
|
532
499
|
get() {
|
|
533
|
-
return this.$$c &&
|
|
500
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
534
501
|
},
|
|
535
502
|
set(l) {
|
|
536
|
-
|
|
537
|
-
l = ae(u, l, t), this.$$d[u] = l, (o = this.$$c) == null || o.$set({ [u]: l });
|
|
503
|
+
l = se(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
538
504
|
}
|
|
539
505
|
});
|
|
540
|
-
}), r.forEach((
|
|
541
|
-
Object.defineProperty(a.prototype,
|
|
506
|
+
}), r.forEach((o) => {
|
|
507
|
+
Object.defineProperty(a.prototype, o, {
|
|
542
508
|
get() {
|
|
543
|
-
|
|
544
|
-
return (l = this.$$c) == null ? void 0 : l[u];
|
|
509
|
+
return this.$$c?.[o];
|
|
545
510
|
}
|
|
546
511
|
});
|
|
547
512
|
}), e.element = /** @type {any} */
|
|
548
513
|
a, a;
|
|
549
514
|
}
|
|
550
|
-
class
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
S(this, "$$set");
|
|
568
|
-
}
|
|
515
|
+
class Jt {
|
|
516
|
+
/**
|
|
517
|
+
* ### PRIVATE API
|
|
518
|
+
*
|
|
519
|
+
* Do not use, may change at any time
|
|
520
|
+
*
|
|
521
|
+
* @type {any}
|
|
522
|
+
*/
|
|
523
|
+
$$ = void 0;
|
|
524
|
+
/**
|
|
525
|
+
* ### PRIVATE API
|
|
526
|
+
*
|
|
527
|
+
* Do not use, may change at any time
|
|
528
|
+
*
|
|
529
|
+
* @type {any}
|
|
530
|
+
*/
|
|
531
|
+
$$set = void 0;
|
|
569
532
|
/** @returns {void} */
|
|
570
533
|
$destroy() {
|
|
571
|
-
|
|
534
|
+
Wt(this, 1), this.$destroy = I;
|
|
572
535
|
}
|
|
573
536
|
/**
|
|
574
537
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -577,8 +540,8 @@ class hn {
|
|
|
577
540
|
* @returns {() => void}
|
|
578
541
|
*/
|
|
579
542
|
$on(t, n) {
|
|
580
|
-
if (
|
|
581
|
-
return
|
|
543
|
+
if (!Me(n))
|
|
544
|
+
return I;
|
|
582
545
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
583
546
|
return r.push(n), () => {
|
|
584
547
|
const i = r.indexOf(n);
|
|
@@ -590,22 +553,22 @@ class hn {
|
|
|
590
553
|
* @returns {void}
|
|
591
554
|
*/
|
|
592
555
|
$set(t) {
|
|
593
|
-
this.$$set && !
|
|
556
|
+
this.$$set && !Ct(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
594
557
|
}
|
|
595
558
|
}
|
|
596
|
-
const
|
|
597
|
-
typeof window
|
|
598
|
-
var
|
|
599
|
-
return
|
|
559
|
+
const Yt = "4";
|
|
560
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yt);
|
|
561
|
+
var Be = function(e, t) {
|
|
562
|
+
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
600
563
|
n.__proto__ = r;
|
|
601
564
|
} || function(n, r) {
|
|
602
565
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
603
|
-
},
|
|
566
|
+
}, Be(e, t);
|
|
604
567
|
};
|
|
605
|
-
function
|
|
568
|
+
function fe(e, t) {
|
|
606
569
|
if (typeof t != "function" && t !== null)
|
|
607
570
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
608
|
-
|
|
571
|
+
Be(e, t);
|
|
609
572
|
function n() {
|
|
610
573
|
this.constructor = e;
|
|
611
574
|
}
|
|
@@ -620,7 +583,7 @@ var E = function() {
|
|
|
620
583
|
return t;
|
|
621
584
|
}, E.apply(this, arguments);
|
|
622
585
|
};
|
|
623
|
-
function
|
|
586
|
+
function Kt(e, t) {
|
|
624
587
|
var n = {};
|
|
625
588
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
626
589
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -628,7 +591,7 @@ function fn(e, t) {
|
|
|
628
591
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
629
592
|
return n;
|
|
630
593
|
}
|
|
631
|
-
function
|
|
594
|
+
function oi(e) {
|
|
632
595
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
633
596
|
if (n) return n.call(e);
|
|
634
597
|
if (e && typeof e.length == "number") return {
|
|
@@ -638,14 +601,14 @@ function Ei(e) {
|
|
|
638
601
|
};
|
|
639
602
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
640
603
|
}
|
|
641
|
-
function
|
|
604
|
+
function ui(e, t) {
|
|
642
605
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
643
606
|
if (!n) return e;
|
|
644
607
|
var r = n.call(e), i, s = [], a;
|
|
645
608
|
try {
|
|
646
609
|
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) s.push(i.value);
|
|
647
|
-
} catch (
|
|
648
|
-
a = { error:
|
|
610
|
+
} catch (o) {
|
|
611
|
+
a = { error: o };
|
|
649
612
|
} finally {
|
|
650
613
|
try {
|
|
651
614
|
i && !i.done && (n = r.return) && n.call(r);
|
|
@@ -655,63 +618,63 @@ function _i(e, t) {
|
|
|
655
618
|
}
|
|
656
619
|
return s;
|
|
657
620
|
}
|
|
658
|
-
function
|
|
621
|
+
function pe(e, t, n) {
|
|
659
622
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, s; r < i; r++)
|
|
660
623
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
661
624
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
662
625
|
}
|
|
663
|
-
const
|
|
664
|
-
function
|
|
626
|
+
const U = [];
|
|
627
|
+
function en(e, t) {
|
|
665
628
|
return {
|
|
666
|
-
subscribe:
|
|
629
|
+
subscribe: ce(e, t).subscribe
|
|
667
630
|
};
|
|
668
631
|
}
|
|
669
|
-
function
|
|
632
|
+
function ce(e, t = I) {
|
|
670
633
|
let n;
|
|
671
634
|
const r = /* @__PURE__ */ new Set();
|
|
672
|
-
function i(
|
|
673
|
-
if (
|
|
674
|
-
const l = !
|
|
675
|
-
for (const
|
|
676
|
-
|
|
635
|
+
function i(o) {
|
|
636
|
+
if (rt(e, o) && (e = o, n)) {
|
|
637
|
+
const l = !U.length;
|
|
638
|
+
for (const u of r)
|
|
639
|
+
u[1](), U.push(u, e);
|
|
677
640
|
if (l) {
|
|
678
|
-
for (let
|
|
679
|
-
|
|
680
|
-
|
|
641
|
+
for (let u = 0; u < U.length; u += 2)
|
|
642
|
+
U[u][0](U[u + 1]);
|
|
643
|
+
U.length = 0;
|
|
681
644
|
}
|
|
682
645
|
}
|
|
683
646
|
}
|
|
684
|
-
function s(
|
|
685
|
-
i(
|
|
647
|
+
function s(o) {
|
|
648
|
+
i(o(e));
|
|
686
649
|
}
|
|
687
|
-
function a(
|
|
688
|
-
const
|
|
689
|
-
return r.add(
|
|
690
|
-
r.delete(
|
|
650
|
+
function a(o, l = I) {
|
|
651
|
+
const u = [o, l];
|
|
652
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || I), o(e), () => {
|
|
653
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
691
654
|
};
|
|
692
655
|
}
|
|
693
656
|
return { set: i, update: s, subscribe: a };
|
|
694
657
|
}
|
|
695
|
-
function
|
|
658
|
+
function z(e, t, n) {
|
|
696
659
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
697
660
|
if (!i.every(Boolean))
|
|
698
661
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
699
662
|
const s = t.length < 2;
|
|
700
|
-
return
|
|
663
|
+
return en(n, (a, o) => {
|
|
701
664
|
let l = !1;
|
|
702
|
-
const
|
|
703
|
-
let h = 0, c =
|
|
665
|
+
const u = [];
|
|
666
|
+
let h = 0, c = I;
|
|
704
667
|
const f = () => {
|
|
705
668
|
if (h)
|
|
706
669
|
return;
|
|
707
670
|
c();
|
|
708
|
-
const y = t(r ?
|
|
709
|
-
s ? a(y) : c =
|
|
671
|
+
const y = t(r ? u[0] : u, a, o);
|
|
672
|
+
s ? a(y) : c = Me(y) ? y : I;
|
|
710
673
|
}, b = i.map(
|
|
711
|
-
(y, v) =>
|
|
674
|
+
(y, v) => it(
|
|
712
675
|
y,
|
|
713
676
|
(T) => {
|
|
714
|
-
|
|
677
|
+
u[v] = T, h &= ~(1 << v), l && f();
|
|
715
678
|
},
|
|
716
679
|
() => {
|
|
717
680
|
h |= 1 << v;
|
|
@@ -719,118 +682,118 @@ function W(e, t, n) {
|
|
|
719
682
|
)
|
|
720
683
|
);
|
|
721
684
|
return l = !0, f(), function() {
|
|
722
|
-
|
|
685
|
+
X(b), c(), l = !1;
|
|
723
686
|
};
|
|
724
687
|
});
|
|
725
688
|
}
|
|
726
|
-
function
|
|
689
|
+
function tn(e) {
|
|
727
690
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
728
691
|
}
|
|
729
|
-
var
|
|
730
|
-
return
|
|
692
|
+
var nn = function(t) {
|
|
693
|
+
return rn(t) && !sn(t);
|
|
731
694
|
};
|
|
732
|
-
function
|
|
695
|
+
function rn(e) {
|
|
733
696
|
return !!e && typeof e == "object";
|
|
734
697
|
}
|
|
735
|
-
function
|
|
698
|
+
function sn(e) {
|
|
736
699
|
var t = Object.prototype.toString.call(e);
|
|
737
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
700
|
+
return t === "[object RegExp]" || t === "[object Date]" || un(e);
|
|
738
701
|
}
|
|
739
|
-
var
|
|
740
|
-
function
|
|
741
|
-
return e.$$typeof ===
|
|
702
|
+
var an = typeof Symbol == "function" && Symbol.for, on = an ? Symbol.for("react.element") : 60103;
|
|
703
|
+
function un(e) {
|
|
704
|
+
return e.$$typeof === on;
|
|
742
705
|
}
|
|
743
|
-
function
|
|
706
|
+
function hn(e) {
|
|
744
707
|
return Array.isArray(e) ? [] : {};
|
|
745
708
|
}
|
|
746
|
-
function
|
|
747
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
709
|
+
function Y(e, t) {
|
|
710
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(hn(e), e, t) : e;
|
|
748
711
|
}
|
|
749
|
-
function
|
|
712
|
+
function ln(e, t, n) {
|
|
750
713
|
return e.concat(t).map(function(r) {
|
|
751
|
-
return
|
|
714
|
+
return Y(r, n);
|
|
752
715
|
});
|
|
753
716
|
}
|
|
754
|
-
function
|
|
717
|
+
function fn(e, t) {
|
|
755
718
|
if (!t.customMerge)
|
|
756
|
-
return
|
|
719
|
+
return F;
|
|
757
720
|
var n = t.customMerge(e);
|
|
758
|
-
return typeof n == "function" ? n :
|
|
721
|
+
return typeof n == "function" ? n : F;
|
|
759
722
|
}
|
|
760
|
-
function
|
|
723
|
+
function cn(e) {
|
|
761
724
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
762
725
|
return Object.propertyIsEnumerable.call(e, t);
|
|
763
726
|
}) : [];
|
|
764
727
|
}
|
|
765
|
-
function
|
|
766
|
-
return Object.keys(e).concat(
|
|
728
|
+
function je(e) {
|
|
729
|
+
return Object.keys(e).concat(cn(e));
|
|
767
730
|
}
|
|
768
|
-
function
|
|
731
|
+
function lt(e, t) {
|
|
769
732
|
try {
|
|
770
733
|
return t in e;
|
|
771
|
-
} catch
|
|
734
|
+
} catch {
|
|
772
735
|
return !1;
|
|
773
736
|
}
|
|
774
737
|
}
|
|
775
|
-
function
|
|
776
|
-
return
|
|
738
|
+
function mn(e, t) {
|
|
739
|
+
return lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
777
740
|
}
|
|
778
|
-
function
|
|
741
|
+
function dn(e, t, n) {
|
|
779
742
|
var r = {};
|
|
780
|
-
return n.isMergeableObject(e) &&
|
|
781
|
-
r[i] =
|
|
782
|
-
}),
|
|
783
|
-
|
|
743
|
+
return n.isMergeableObject(e) && je(e).forEach(function(i) {
|
|
744
|
+
r[i] = Y(e[i], n);
|
|
745
|
+
}), je(t).forEach(function(i) {
|
|
746
|
+
mn(e, i) || (lt(e, i) && n.isMergeableObject(t[i]) ? r[i] = fn(i, n)(e[i], t[i], n) : r[i] = Y(t[i], n));
|
|
784
747
|
}), r;
|
|
785
748
|
}
|
|
786
|
-
function
|
|
787
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
749
|
+
function F(e, t, n) {
|
|
750
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || ln, n.isMergeableObject = n.isMergeableObject || nn, n.cloneUnlessOtherwiseSpecified = Y;
|
|
788
751
|
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
789
|
-
return s ? r ? n.arrayMerge(e, t, n) :
|
|
752
|
+
return s ? r ? n.arrayMerge(e, t, n) : dn(e, t, n) : Y(t, n);
|
|
790
753
|
}
|
|
791
|
-
|
|
754
|
+
F.all = function(t, n) {
|
|
792
755
|
if (!Array.isArray(t))
|
|
793
756
|
throw new Error("first argument should be an array");
|
|
794
757
|
return t.reduce(function(r, i) {
|
|
795
|
-
return
|
|
758
|
+
return F(r, i, n);
|
|
796
759
|
}, {});
|
|
797
760
|
};
|
|
798
|
-
var
|
|
799
|
-
const
|
|
800
|
-
function
|
|
801
|
-
var n = t && t.cache ? t.cache :
|
|
761
|
+
var gn = F, bn = gn;
|
|
762
|
+
const pn = /* @__PURE__ */ tn(bn);
|
|
763
|
+
function ye(e, t) {
|
|
764
|
+
var n = t && t.cache ? t.cache : Tn, r = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : En;
|
|
802
765
|
return i(e, {
|
|
803
766
|
cache: n,
|
|
804
767
|
serializer: r
|
|
805
768
|
});
|
|
806
769
|
}
|
|
807
|
-
function
|
|
770
|
+
function yn(e) {
|
|
808
771
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
809
772
|
}
|
|
810
|
-
function
|
|
811
|
-
var i =
|
|
812
|
-
return typeof s
|
|
773
|
+
function ft(e, t, n, r) {
|
|
774
|
+
var i = yn(r) ? r : n(r), s = t.get(i);
|
|
775
|
+
return typeof s > "u" && (s = e.call(this, r), t.set(i, s)), s;
|
|
813
776
|
}
|
|
814
|
-
function
|
|
777
|
+
function ct(e, t, n) {
|
|
815
778
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
816
|
-
return typeof s
|
|
779
|
+
return typeof s > "u" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
817
780
|
}
|
|
818
|
-
function
|
|
781
|
+
function $e(e, t, n, r, i) {
|
|
819
782
|
return n.bind(t, e, r, i);
|
|
820
783
|
}
|
|
821
|
-
function
|
|
822
|
-
var n = e.length === 1 ?
|
|
823
|
-
return
|
|
784
|
+
function En(e, t) {
|
|
785
|
+
var n = e.length === 1 ? ft : ct;
|
|
786
|
+
return $e(e, this, n, t.cache.create(), t.serializer);
|
|
824
787
|
}
|
|
825
|
-
function
|
|
826
|
-
return
|
|
788
|
+
function _n(e, t) {
|
|
789
|
+
return $e(e, this, ct, t.cache.create(), t.serializer);
|
|
827
790
|
}
|
|
828
|
-
function
|
|
829
|
-
return
|
|
791
|
+
function xn(e, t) {
|
|
792
|
+
return $e(e, this, ft, t.cache.create(), t.serializer);
|
|
830
793
|
}
|
|
831
|
-
var
|
|
794
|
+
var vn = function() {
|
|
832
795
|
return JSON.stringify(arguments);
|
|
833
|
-
},
|
|
796
|
+
}, Hn = (
|
|
834
797
|
/** @class */
|
|
835
798
|
function() {
|
|
836
799
|
function e() {
|
|
@@ -842,13 +805,13 @@ var Ln = function() {
|
|
|
842
805
|
this.cache[t] = n;
|
|
843
806
|
}, e;
|
|
844
807
|
}()
|
|
845
|
-
),
|
|
808
|
+
), Tn = {
|
|
846
809
|
create: function() {
|
|
847
|
-
return new
|
|
810
|
+
return new Hn();
|
|
848
811
|
}
|
|
849
|
-
},
|
|
850
|
-
variadic:
|
|
851
|
-
monadic:
|
|
812
|
+
}, Ee = {
|
|
813
|
+
variadic: _n,
|
|
814
|
+
monadic: xn
|
|
852
815
|
}, g;
|
|
853
816
|
(function(e) {
|
|
854
817
|
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";
|
|
@@ -857,47 +820,47 @@ var _;
|
|
|
857
820
|
(function(e) {
|
|
858
821
|
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";
|
|
859
822
|
})(_ || (_ = {}));
|
|
860
|
-
var
|
|
823
|
+
var j;
|
|
861
824
|
(function(e) {
|
|
862
825
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
863
|
-
})(
|
|
864
|
-
function
|
|
826
|
+
})(j || (j = {}));
|
|
827
|
+
function ke(e) {
|
|
865
828
|
return e.type === _.literal;
|
|
866
829
|
}
|
|
867
|
-
function
|
|
830
|
+
function Sn(e) {
|
|
868
831
|
return e.type === _.argument;
|
|
869
832
|
}
|
|
870
|
-
function
|
|
833
|
+
function mt(e) {
|
|
871
834
|
return e.type === _.number;
|
|
872
835
|
}
|
|
873
|
-
function
|
|
836
|
+
function dt(e) {
|
|
874
837
|
return e.type === _.date;
|
|
875
838
|
}
|
|
876
|
-
function
|
|
839
|
+
function gt(e) {
|
|
877
840
|
return e.type === _.time;
|
|
878
841
|
}
|
|
879
|
-
function
|
|
842
|
+
function bt(e) {
|
|
880
843
|
return e.type === _.select;
|
|
881
844
|
}
|
|
882
|
-
function
|
|
845
|
+
function pt(e) {
|
|
883
846
|
return e.type === _.plural;
|
|
884
847
|
}
|
|
885
|
-
function
|
|
848
|
+
function Bn(e) {
|
|
886
849
|
return e.type === _.pound;
|
|
887
850
|
}
|
|
888
|
-
function
|
|
851
|
+
function yt(e) {
|
|
889
852
|
return e.type === _.tag;
|
|
890
853
|
}
|
|
891
|
-
function
|
|
892
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
854
|
+
function Et(e) {
|
|
855
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
893
856
|
}
|
|
894
|
-
function
|
|
895
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
857
|
+
function Ae(e) {
|
|
858
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
896
859
|
}
|
|
897
|
-
var
|
|
898
|
-
function
|
|
860
|
+
var _t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
|
|
861
|
+
function wn(e) {
|
|
899
862
|
var t = {};
|
|
900
|
-
return e.replace(
|
|
863
|
+
return e.replace(An, function(n) {
|
|
901
864
|
var r = n.length;
|
|
902
865
|
switch (n[0]) {
|
|
903
866
|
case "G":
|
|
@@ -986,36 +949,36 @@ function Dn(e) {
|
|
|
986
949
|
return "";
|
|
987
950
|
}), t;
|
|
988
951
|
}
|
|
989
|
-
var
|
|
990
|
-
function
|
|
952
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
953
|
+
function Nn(e) {
|
|
991
954
|
if (e.length === 0)
|
|
992
955
|
throw new Error("Number skeleton cannot be empty");
|
|
993
|
-
for (var t = e.split(
|
|
956
|
+
for (var t = e.split(Pn).filter(function(f) {
|
|
994
957
|
return f.length > 0;
|
|
995
958
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
996
959
|
var s = i[r], a = s.split("/");
|
|
997
960
|
if (a.length === 0)
|
|
998
961
|
throw new Error("Invalid number skeleton");
|
|
999
|
-
for (var
|
|
1000
|
-
var c = h[
|
|
962
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
963
|
+
var c = h[u];
|
|
1001
964
|
if (c.length === 0)
|
|
1002
965
|
throw new Error("Invalid number skeleton");
|
|
1003
966
|
}
|
|
1004
|
-
n.push({ stem:
|
|
967
|
+
n.push({ stem: o, options: l });
|
|
1005
968
|
}
|
|
1006
969
|
return n;
|
|
1007
970
|
}
|
|
1008
|
-
function
|
|
971
|
+
function On(e) {
|
|
1009
972
|
return e.replace(/^(.*?)-/, "");
|
|
1010
973
|
}
|
|
1011
|
-
var
|
|
1012
|
-
function
|
|
974
|
+
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xt = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, vt = /^(0+)$/;
|
|
975
|
+
function Xe(e) {
|
|
1013
976
|
var t = {};
|
|
1014
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
977
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xt, function(n, r, i) {
|
|
1015
978
|
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)), "";
|
|
1016
979
|
}), t;
|
|
1017
980
|
}
|
|
1018
|
-
function
|
|
981
|
+
function Ht(e) {
|
|
1019
982
|
switch (e) {
|
|
1020
983
|
case "sign-auto":
|
|
1021
984
|
return {
|
|
@@ -1055,7 +1018,7 @@ function Pt(e) {
|
|
|
1055
1018
|
};
|
|
1056
1019
|
}
|
|
1057
1020
|
}
|
|
1058
|
-
function
|
|
1021
|
+
function Ln(e) {
|
|
1059
1022
|
var t;
|
|
1060
1023
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1061
1024
|
notation: "engineering"
|
|
@@ -1063,17 +1026,17 @@ function Vn(e) {
|
|
|
1063
1026
|
notation: "scientific"
|
|
1064
1027
|
}, e = e.slice(1)), t) {
|
|
1065
1028
|
var n = e.slice(0, 2);
|
|
1066
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1029
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vt.test(e))
|
|
1067
1030
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1068
1031
|
t.minimumIntegerDigits = e.length;
|
|
1069
1032
|
}
|
|
1070
1033
|
return t;
|
|
1071
1034
|
}
|
|
1072
|
-
function
|
|
1073
|
-
var t = {}, n =
|
|
1035
|
+
function ze(e) {
|
|
1036
|
+
var t = {}, n = Ht(e);
|
|
1074
1037
|
return n || t;
|
|
1075
1038
|
}
|
|
1076
|
-
function
|
|
1039
|
+
function Cn(e) {
|
|
1077
1040
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1078
1041
|
var i = r[n];
|
|
1079
1042
|
switch (i.stem) {
|
|
@@ -1097,7 +1060,7 @@ function Xn(e) {
|
|
|
1097
1060
|
continue;
|
|
1098
1061
|
case "measure-unit":
|
|
1099
1062
|
case "unit":
|
|
1100
|
-
t.style = "unit", t.unit =
|
|
1063
|
+
t.style = "unit", t.unit = On(i.options[0]);
|
|
1101
1064
|
continue;
|
|
1102
1065
|
case "compact-short":
|
|
1103
1066
|
case "K":
|
|
@@ -1108,13 +1071,13 @@ function Xn(e) {
|
|
|
1108
1071
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1109
1072
|
continue;
|
|
1110
1073
|
case "scientific":
|
|
1111
|
-
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
1112
|
-
return E(E({}, l),
|
|
1074
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1075
|
+
return E(E({}, l), ze(u));
|
|
1113
1076
|
}, {}));
|
|
1114
1077
|
continue;
|
|
1115
1078
|
case "engineering":
|
|
1116
|
-
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
1117
|
-
return E(E({}, l),
|
|
1079
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1080
|
+
return E(E({}, l), ze(u));
|
|
1118
1081
|
}, {}));
|
|
1119
1082
|
continue;
|
|
1120
1083
|
case "notation-simple":
|
|
@@ -1159,8 +1122,8 @@ function Xn(e) {
|
|
|
1159
1122
|
case "integer-width":
|
|
1160
1123
|
if (i.options.length > 1)
|
|
1161
1124
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1162
|
-
i.options[0].replace(
|
|
1163
|
-
if (
|
|
1125
|
+
i.options[0].replace(In, function(l, u, h, c, f, b) {
|
|
1126
|
+
if (u)
|
|
1164
1127
|
t.minimumIntegerDigits = h.length;
|
|
1165
1128
|
else {
|
|
1166
1129
|
if (c && f)
|
|
@@ -1172,32 +1135,32 @@ function Xn(e) {
|
|
|
1172
1135
|
});
|
|
1173
1136
|
continue;
|
|
1174
1137
|
}
|
|
1175
|
-
if (
|
|
1138
|
+
if (vt.test(i.stem)) {
|
|
1176
1139
|
t.minimumIntegerDigits = i.stem.length;
|
|
1177
1140
|
continue;
|
|
1178
1141
|
}
|
|
1179
|
-
if (
|
|
1142
|
+
if (Ve.test(i.stem)) {
|
|
1180
1143
|
if (i.options.length > 1)
|
|
1181
1144
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1182
|
-
i.stem.replace(
|
|
1183
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1145
|
+
i.stem.replace(Ve, function(l, u, h, c, f, b) {
|
|
1146
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1184
1147
|
});
|
|
1185
1148
|
var s = i.options[0];
|
|
1186
|
-
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t),
|
|
1149
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), Xe(s)));
|
|
1187
1150
|
continue;
|
|
1188
1151
|
}
|
|
1189
|
-
if (
|
|
1190
|
-
t = E(E({}, t),
|
|
1152
|
+
if (xt.test(i.stem)) {
|
|
1153
|
+
t = E(E({}, t), Xe(i.stem));
|
|
1191
1154
|
continue;
|
|
1192
1155
|
}
|
|
1193
|
-
var a =
|
|
1156
|
+
var a = Ht(i.stem);
|
|
1194
1157
|
a && (t = E(E({}, t), a));
|
|
1195
|
-
var
|
|
1196
|
-
|
|
1158
|
+
var o = Ln(i.stem);
|
|
1159
|
+
o && (t = E(E({}, t), o));
|
|
1197
1160
|
}
|
|
1198
1161
|
return t;
|
|
1199
1162
|
}
|
|
1200
|
-
var
|
|
1163
|
+
var ie = {
|
|
1201
1164
|
"001": [
|
|
1202
1165
|
"H",
|
|
1203
1166
|
"h"
|
|
@@ -2612,22 +2575,22 @@ var se = {
|
|
|
2612
2575
|
"h"
|
|
2613
2576
|
]
|
|
2614
2577
|
};
|
|
2615
|
-
function
|
|
2578
|
+
function Mn(e, t) {
|
|
2616
2579
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2617
2580
|
var i = e.charAt(r);
|
|
2618
2581
|
if (i === "j") {
|
|
2619
2582
|
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2620
2583
|
s++, r++;
|
|
2621
|
-
var a = 1 + (s & 1),
|
|
2622
|
-
for ((
|
|
2584
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Rn(t);
|
|
2585
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2623
2586
|
n += l;
|
|
2624
2587
|
for (; a-- > 0; )
|
|
2625
|
-
n =
|
|
2588
|
+
n = u + n;
|
|
2626
2589
|
} else i === "J" ? n += "H" : n += i;
|
|
2627
2590
|
}
|
|
2628
2591
|
return n;
|
|
2629
2592
|
}
|
|
2630
|
-
function
|
|
2593
|
+
function Rn(e) {
|
|
2631
2594
|
var t = e.hourCycle;
|
|
2632
2595
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2633
2596
|
e.hourCycles && // @ts-ignore
|
|
@@ -2646,23 +2609,23 @@ function Wn(e) {
|
|
|
2646
2609
|
}
|
|
2647
2610
|
var n = e.language, r;
|
|
2648
2611
|
n !== "root" && (r = e.maximize().region);
|
|
2649
|
-
var i =
|
|
2612
|
+
var i = ie[r || ""] || ie[n || ""] || ie["".concat(n, "-001")] || ie["001"];
|
|
2650
2613
|
return i[0];
|
|
2651
2614
|
}
|
|
2652
|
-
var
|
|
2615
|
+
var _e, $n = new RegExp("^".concat(_t.source, "*")), Un = new RegExp("".concat(_t.source, "*$"));
|
|
2653
2616
|
function p(e, t) {
|
|
2654
2617
|
return { start: e, end: t };
|
|
2655
2618
|
}
|
|
2656
|
-
var
|
|
2619
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, Xn = !!Number.isSafeInteger, zn = Xn ? Number.isSafeInteger : function(e) {
|
|
2657
2620
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2658
|
-
},
|
|
2621
|
+
}, we = !0;
|
|
2659
2622
|
try {
|
|
2660
|
-
var
|
|
2661
|
-
|
|
2662
|
-
} catch
|
|
2663
|
-
|
|
2623
|
+
var Wn = St("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2624
|
+
we = ((_e = Wn.exec("a")) === null || _e === void 0 ? void 0 : _e[0]) === "a";
|
|
2625
|
+
} catch {
|
|
2626
|
+
we = !1;
|
|
2664
2627
|
}
|
|
2665
|
-
var
|
|
2628
|
+
var We = Dn ? (
|
|
2666
2629
|
// Native
|
|
2667
2630
|
function(t, n, r) {
|
|
2668
2631
|
return t.startsWith(n, r);
|
|
@@ -2672,7 +2635,7 @@ var Ke = qn ? (
|
|
|
2672
2635
|
function(t, n, r) {
|
|
2673
2636
|
return t.slice(r, r + n.length) === n;
|
|
2674
2637
|
}
|
|
2675
|
-
),
|
|
2638
|
+
), Pe = Gn ? String.fromCodePoint : (
|
|
2676
2639
|
// IE11
|
|
2677
2640
|
function() {
|
|
2678
2641
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2684,19 +2647,19 @@ var Ke = qn ? (
|
|
|
2684
2647
|
}
|
|
2685
2648
|
return r;
|
|
2686
2649
|
}
|
|
2687
|
-
),
|
|
2650
|
+
), Ze = (
|
|
2688
2651
|
// native
|
|
2689
|
-
|
|
2652
|
+
Fn ? Object.fromEntries : (
|
|
2690
2653
|
// Ponyfill
|
|
2691
2654
|
function(t) {
|
|
2692
2655
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2693
|
-
var s = i[r], a = s[0],
|
|
2694
|
-
n[a] =
|
|
2656
|
+
var s = i[r], a = s[0], o = s[1];
|
|
2657
|
+
n[a] = o;
|
|
2695
2658
|
}
|
|
2696
2659
|
return n;
|
|
2697
2660
|
}
|
|
2698
2661
|
)
|
|
2699
|
-
),
|
|
2662
|
+
), Tt = jn ? (
|
|
2700
2663
|
// Native
|
|
2701
2664
|
function(t, n) {
|
|
2702
2665
|
return t.codePointAt(n);
|
|
@@ -2710,7 +2673,7 @@ var Ke = qn ? (
|
|
|
2710
2673
|
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2711
2674
|
}
|
|
2712
2675
|
}
|
|
2713
|
-
),
|
|
2676
|
+
), Zn = kn ? (
|
|
2714
2677
|
// Native
|
|
2715
2678
|
function(t) {
|
|
2716
2679
|
return t.trimStart();
|
|
@@ -2718,9 +2681,9 @@ var Ke = qn ? (
|
|
|
2718
2681
|
) : (
|
|
2719
2682
|
// Ponyfill
|
|
2720
2683
|
function(t) {
|
|
2721
|
-
return t.replace(
|
|
2684
|
+
return t.replace($n, "");
|
|
2722
2685
|
}
|
|
2723
|
-
),
|
|
2686
|
+
), Qn = Vn ? (
|
|
2724
2687
|
// Native
|
|
2725
2688
|
function(t) {
|
|
2726
2689
|
return t.trimEnd();
|
|
@@ -2728,32 +2691,32 @@ var Ke = qn ? (
|
|
|
2728
2691
|
) : (
|
|
2729
2692
|
// Ponyfill
|
|
2730
2693
|
function(t) {
|
|
2731
|
-
return t.replace(
|
|
2694
|
+
return t.replace(Un, "");
|
|
2732
2695
|
}
|
|
2733
2696
|
);
|
|
2734
|
-
function
|
|
2697
|
+
function St(e, t) {
|
|
2735
2698
|
return new RegExp(e, t);
|
|
2736
2699
|
}
|
|
2737
|
-
var
|
|
2738
|
-
if (
|
|
2739
|
-
var
|
|
2740
|
-
|
|
2700
|
+
var Ne;
|
|
2701
|
+
if (we) {
|
|
2702
|
+
var Qe = St("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2703
|
+
Ne = function(t, n) {
|
|
2741
2704
|
var r;
|
|
2742
|
-
|
|
2743
|
-
var i =
|
|
2705
|
+
Qe.lastIndex = n;
|
|
2706
|
+
var i = Qe.exec(t);
|
|
2744
2707
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2745
2708
|
};
|
|
2746
2709
|
} else
|
|
2747
|
-
|
|
2710
|
+
Ne = function(t, n) {
|
|
2748
2711
|
for (var r = []; ; ) {
|
|
2749
|
-
var i =
|
|
2750
|
-
if (i === void 0 ||
|
|
2712
|
+
var i = Tt(t, n);
|
|
2713
|
+
if (i === void 0 || Bt(i) || Kn(i))
|
|
2751
2714
|
break;
|
|
2752
2715
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2753
2716
|
}
|
|
2754
|
-
return
|
|
2717
|
+
return Pe.apply(void 0, r);
|
|
2755
2718
|
};
|
|
2756
|
-
var
|
|
2719
|
+
var qn = (
|
|
2757
2720
|
/** @class */
|
|
2758
2721
|
function() {
|
|
2759
2722
|
function e(t, n) {
|
|
@@ -2775,16 +2738,16 @@ var or = (
|
|
|
2775
2738
|
if (s === 125 && t > 0)
|
|
2776
2739
|
break;
|
|
2777
2740
|
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2778
|
-
var
|
|
2741
|
+
var o = this.clonePosition();
|
|
2779
2742
|
this.bump(), i.push({
|
|
2780
2743
|
type: _.pound,
|
|
2781
|
-
location: p(
|
|
2744
|
+
location: p(o, this.clonePosition())
|
|
2782
2745
|
});
|
|
2783
2746
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2784
2747
|
if (r)
|
|
2785
2748
|
break;
|
|
2786
2749
|
return this.error(g.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2787
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2750
|
+
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
|
2788
2751
|
var a = this.parseTag(t, n);
|
|
2789
2752
|
if (a.err)
|
|
2790
2753
|
return a;
|
|
@@ -2815,12 +2778,12 @@ var or = (
|
|
|
2815
2778
|
var s = this.parseMessage(t + 1, n, !0);
|
|
2816
2779
|
if (s.err)
|
|
2817
2780
|
return s;
|
|
2818
|
-
var a = s.val,
|
|
2781
|
+
var a = s.val, o = this.clonePosition();
|
|
2819
2782
|
if (this.bumpIf("</")) {
|
|
2820
|
-
if (this.isEOF() || !
|
|
2821
|
-
return this.error(g.INVALID_TAG, p(
|
|
2822
|
-
var l = this.clonePosition(),
|
|
2823
|
-
return i !==
|
|
2783
|
+
if (this.isEOF() || !Oe(this.char()))
|
|
2784
|
+
return this.error(g.INVALID_TAG, p(o, this.clonePosition()));
|
|
2785
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2786
|
+
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2824
2787
|
val: {
|
|
2825
2788
|
type: _.tag,
|
|
2826
2789
|
value: i,
|
|
@@ -2828,14 +2791,14 @@ var or = (
|
|
|
2828
2791
|
location: p(r, this.clonePosition())
|
|
2829
2792
|
},
|
|
2830
2793
|
err: null
|
|
2831
|
-
} : this.error(g.INVALID_TAG, p(
|
|
2794
|
+
} : this.error(g.INVALID_TAG, p(o, this.clonePosition())));
|
|
2832
2795
|
} else
|
|
2833
2796
|
return this.error(g.UNCLOSED_TAG, p(r, this.clonePosition()));
|
|
2834
2797
|
} else
|
|
2835
2798
|
return this.error(g.INVALID_TAG, p(r, this.clonePosition()));
|
|
2836
2799
|
}, e.prototype.parseTagName = function() {
|
|
2837
2800
|
var t = this.offset();
|
|
2838
|
-
for (this.bump(); !this.isEOF() &&
|
|
2801
|
+
for (this.bump(); !this.isEOF() && Yn(this.char()); )
|
|
2839
2802
|
this.bump();
|
|
2840
2803
|
return this.message.slice(t, this.offset());
|
|
2841
2804
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2850,9 +2813,9 @@ var or = (
|
|
|
2850
2813
|
i += a;
|
|
2851
2814
|
continue;
|
|
2852
2815
|
}
|
|
2853
|
-
var
|
|
2854
|
-
if (
|
|
2855
|
-
i +=
|
|
2816
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2817
|
+
if (o) {
|
|
2818
|
+
i += o;
|
|
2856
2819
|
continue;
|
|
2857
2820
|
}
|
|
2858
2821
|
break;
|
|
@@ -2864,7 +2827,7 @@ var or = (
|
|
|
2864
2827
|
};
|
|
2865
2828
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2866
2829
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2867
|
-
!
|
|
2830
|
+
!Jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2868
2831
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2869
2832
|
if (this.isEOF() || this.char() !== 39)
|
|
2870
2833
|
return null;
|
|
@@ -2898,12 +2861,12 @@ var or = (
|
|
|
2898
2861
|
n.push(r);
|
|
2899
2862
|
this.bump();
|
|
2900
2863
|
}
|
|
2901
|
-
return
|
|
2864
|
+
return Pe.apply(void 0, n);
|
|
2902
2865
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2903
2866
|
if (this.isEOF())
|
|
2904
2867
|
return null;
|
|
2905
2868
|
var r = this.char();
|
|
2906
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2869
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Pe(r));
|
|
2907
2870
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2908
2871
|
var r = this.clonePosition();
|
|
2909
2872
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2932,39 +2895,39 @@ var or = (
|
|
|
2932
2895
|
return this.error(g.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
|
|
2933
2896
|
}
|
|
2934
2897
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2935
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2898
|
+
var t = this.clonePosition(), n = this.offset(), r = Ne(this.message, n), i = n + r.length;
|
|
2936
2899
|
this.bumpTo(i);
|
|
2937
2900
|
var s = this.clonePosition(), a = p(t, s);
|
|
2938
2901
|
return { value: r, location: a };
|
|
2939
2902
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2940
|
-
var s, a = this.clonePosition(),
|
|
2941
|
-
switch (
|
|
2903
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2904
|
+
switch (o) {
|
|
2942
2905
|
case "":
|
|
2943
2906
|
return this.error(g.EXPECT_ARGUMENT_TYPE, p(a, l));
|
|
2944
2907
|
case "number":
|
|
2945
2908
|
case "date":
|
|
2946
2909
|
case "time": {
|
|
2947
2910
|
this.bumpSpace();
|
|
2948
|
-
var
|
|
2911
|
+
var u = null;
|
|
2949
2912
|
if (this.bumpIf(",")) {
|
|
2950
2913
|
this.bumpSpace();
|
|
2951
2914
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2952
2915
|
if (c.err)
|
|
2953
2916
|
return c;
|
|
2954
|
-
var f =
|
|
2917
|
+
var f = Qn(c.val);
|
|
2955
2918
|
if (f.length === 0)
|
|
2956
2919
|
return this.error(g.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2957
2920
|
var b = p(h, this.clonePosition());
|
|
2958
|
-
|
|
2921
|
+
u = { style: f, styleLocation: b };
|
|
2959
2922
|
}
|
|
2960
2923
|
var y = this.tryParseArgumentClose(i);
|
|
2961
2924
|
if (y.err)
|
|
2962
2925
|
return y;
|
|
2963
2926
|
var v = p(i, this.clonePosition());
|
|
2964
|
-
if (
|
|
2965
|
-
var T =
|
|
2966
|
-
if (
|
|
2967
|
-
var c = this.parseNumberSkeletonFromString(T,
|
|
2927
|
+
if (u && We(u?.style, "::", 0)) {
|
|
2928
|
+
var T = Zn(u.style.slice(2));
|
|
2929
|
+
if (o === "number") {
|
|
2930
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2968
2931
|
return c.err ? c : {
|
|
2969
2932
|
val: { type: _.number, value: r, location: v, style: c.val },
|
|
2970
2933
|
err: null
|
|
@@ -2972,26 +2935,26 @@ var or = (
|
|
|
2972
2935
|
} else {
|
|
2973
2936
|
if (T.length === 0)
|
|
2974
2937
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, v);
|
|
2975
|
-
var
|
|
2976
|
-
this.locale && (
|
|
2938
|
+
var N = T;
|
|
2939
|
+
this.locale && (N = Mn(T, this.locale));
|
|
2977
2940
|
var f = {
|
|
2978
|
-
type:
|
|
2979
|
-
pattern:
|
|
2980
|
-
location:
|
|
2981
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2982
|
-
},
|
|
2941
|
+
type: j.dateTime,
|
|
2942
|
+
pattern: N,
|
|
2943
|
+
location: u.styleLocation,
|
|
2944
|
+
parsedOptions: this.shouldParseSkeletons ? wn(N) : {}
|
|
2945
|
+
}, P = o === "date" ? _.date : _.time;
|
|
2983
2946
|
return {
|
|
2984
|
-
val: { type:
|
|
2947
|
+
val: { type: P, value: r, location: v, style: f },
|
|
2985
2948
|
err: null
|
|
2986
2949
|
};
|
|
2987
2950
|
}
|
|
2988
2951
|
}
|
|
2989
2952
|
return {
|
|
2990
2953
|
val: {
|
|
2991
|
-
type:
|
|
2954
|
+
type: o === "number" ? _.number : o === "date" ? _.date : _.time,
|
|
2992
2955
|
value: r,
|
|
2993
2956
|
location: v,
|
|
2994
|
-
style: (s =
|
|
2957
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2995
2958
|
},
|
|
2996
2959
|
err: null
|
|
2997
2960
|
};
|
|
@@ -2999,32 +2962,32 @@ var or = (
|
|
|
2999
2962
|
case "plural":
|
|
3000
2963
|
case "selectordinal":
|
|
3001
2964
|
case "select": {
|
|
3002
|
-
var
|
|
2965
|
+
var S = this.clonePosition();
|
|
3003
2966
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3004
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, p(
|
|
2967
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, p(S, E({}, S)));
|
|
3005
2968
|
this.bumpSpace();
|
|
3006
|
-
var
|
|
3007
|
-
if (
|
|
2969
|
+
var B = this.parseIdentifierIfPossible(), O = 0;
|
|
2970
|
+
if (o !== "select" && B.value === "offset") {
|
|
3008
2971
|
if (!this.bumpIf(":"))
|
|
3009
2972
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
3010
2973
|
this.bumpSpace();
|
|
3011
2974
|
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3012
2975
|
if (c.err)
|
|
3013
2976
|
return c;
|
|
3014
|
-
this.bumpSpace(),
|
|
2977
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), O = c.val;
|
|
3015
2978
|
}
|
|
3016
|
-
var
|
|
3017
|
-
if (
|
|
3018
|
-
return
|
|
2979
|
+
var L = this.tryParsePluralOrSelectOptions(t, o, n, B);
|
|
2980
|
+
if (L.err)
|
|
2981
|
+
return L;
|
|
3019
2982
|
var y = this.tryParseArgumentClose(i);
|
|
3020
2983
|
if (y.err)
|
|
3021
2984
|
return y;
|
|
3022
2985
|
var x = p(i, this.clonePosition());
|
|
3023
|
-
return
|
|
2986
|
+
return o === "select" ? {
|
|
3024
2987
|
val: {
|
|
3025
2988
|
type: _.select,
|
|
3026
2989
|
value: r,
|
|
3027
|
-
options:
|
|
2990
|
+
options: Ze(L.val),
|
|
3028
2991
|
location: x
|
|
3029
2992
|
},
|
|
3030
2993
|
err: null
|
|
@@ -3032,9 +2995,9 @@ var or = (
|
|
|
3032
2995
|
val: {
|
|
3033
2996
|
type: _.plural,
|
|
3034
2997
|
value: r,
|
|
3035
|
-
options:
|
|
3036
|
-
offset:
|
|
3037
|
-
pluralType:
|
|
2998
|
+
options: Ze(L.val),
|
|
2999
|
+
offset: O,
|
|
3000
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3038
3001
|
location: x
|
|
3039
3002
|
},
|
|
3040
3003
|
err: null
|
|
@@ -3083,34 +3046,34 @@ var or = (
|
|
|
3083
3046
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3084
3047
|
var r = [];
|
|
3085
3048
|
try {
|
|
3086
|
-
r =
|
|
3087
|
-
} catch
|
|
3049
|
+
r = Nn(t);
|
|
3050
|
+
} catch {
|
|
3088
3051
|
return this.error(g.INVALID_NUMBER_SKELETON, n);
|
|
3089
3052
|
}
|
|
3090
3053
|
return {
|
|
3091
3054
|
val: {
|
|
3092
|
-
type:
|
|
3055
|
+
type: j.number,
|
|
3093
3056
|
tokens: r,
|
|
3094
3057
|
location: n,
|
|
3095
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3058
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(r) : {}
|
|
3096
3059
|
},
|
|
3097
3060
|
err: null
|
|
3098
3061
|
};
|
|
3099
3062
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3100
|
-
for (var s, a = !1,
|
|
3101
|
-
if (
|
|
3063
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3064
|
+
if (u.length === 0) {
|
|
3102
3065
|
var c = this.clonePosition();
|
|
3103
3066
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3104
3067
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3105
3068
|
if (f.err)
|
|
3106
3069
|
return f;
|
|
3107
|
-
h = p(c, this.clonePosition()),
|
|
3070
|
+
h = p(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3108
3071
|
} else
|
|
3109
3072
|
break;
|
|
3110
3073
|
}
|
|
3111
|
-
if (l.has(
|
|
3074
|
+
if (l.has(u))
|
|
3112
3075
|
return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3113
|
-
|
|
3076
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3114
3077
|
var b = this.clonePosition();
|
|
3115
3078
|
if (!this.bumpIf("{"))
|
|
3116
3079
|
return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
@@ -3120,27 +3083,27 @@ var or = (
|
|
|
3120
3083
|
var v = this.tryParseArgumentClose(b);
|
|
3121
3084
|
if (v.err)
|
|
3122
3085
|
return v;
|
|
3123
|
-
|
|
3124
|
-
|
|
3086
|
+
o.push([
|
|
3087
|
+
u,
|
|
3125
3088
|
{
|
|
3126
3089
|
value: y.val,
|
|
3127
3090
|
location: p(b, this.clonePosition())
|
|
3128
3091
|
}
|
|
3129
|
-
]), l.add(
|
|
3092
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3130
3093
|
}
|
|
3131
|
-
return
|
|
3094
|
+
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 };
|
|
3132
3095
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3133
3096
|
var r = 1, i = this.clonePosition();
|
|
3134
3097
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3135
3098
|
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3136
|
-
var
|
|
3137
|
-
if (
|
|
3138
|
-
s = !0, a = a * 10 + (
|
|
3099
|
+
var o = this.char();
|
|
3100
|
+
if (o >= 48 && o <= 57)
|
|
3101
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
3139
3102
|
else
|
|
3140
3103
|
break;
|
|
3141
3104
|
}
|
|
3142
3105
|
var l = p(i, this.clonePosition());
|
|
3143
|
-
return s ? (a *= r,
|
|
3106
|
+
return s ? (a *= r, zn(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3144
3107
|
}, e.prototype.offset = function() {
|
|
3145
3108
|
return this.position.offset;
|
|
3146
3109
|
}, e.prototype.isEOF = function() {
|
|
@@ -3155,7 +3118,7 @@ var or = (
|
|
|
3155
3118
|
var t = this.position.offset;
|
|
3156
3119
|
if (t >= this.message.length)
|
|
3157
3120
|
throw Error("out of bound");
|
|
3158
|
-
var n =
|
|
3121
|
+
var n = Tt(this.message, t);
|
|
3159
3122
|
if (n === void 0)
|
|
3160
3123
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3161
3124
|
return n;
|
|
@@ -3174,7 +3137,7 @@ var or = (
|
|
|
3174
3137
|
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);
|
|
3175
3138
|
}
|
|
3176
3139
|
}, e.prototype.bumpIf = function(t) {
|
|
3177
|
-
if (
|
|
3140
|
+
if (We(this.message, t, this.offset())) {
|
|
3178
3141
|
for (var n = 0; n < t.length; n++)
|
|
3179
3142
|
this.bump();
|
|
3180
3143
|
return !0;
|
|
@@ -3196,56 +3159,56 @@ var or = (
|
|
|
3196
3159
|
break;
|
|
3197
3160
|
}
|
|
3198
3161
|
}, e.prototype.bumpSpace = function() {
|
|
3199
|
-
for (; !this.isEOF() &&
|
|
3162
|
+
for (; !this.isEOF() && Bt(this.char()); )
|
|
3200
3163
|
this.bump();
|
|
3201
3164
|
}, e.prototype.peek = function() {
|
|
3202
3165
|
if (this.isEOF())
|
|
3203
3166
|
return null;
|
|
3204
3167
|
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3205
|
-
return r
|
|
3168
|
+
return r ?? null;
|
|
3206
3169
|
}, e;
|
|
3207
3170
|
}()
|
|
3208
3171
|
);
|
|
3209
|
-
function
|
|
3172
|
+
function Oe(e) {
|
|
3210
3173
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3211
3174
|
}
|
|
3212
|
-
function
|
|
3213
|
-
return
|
|
3175
|
+
function Jn(e) {
|
|
3176
|
+
return Oe(e) || e === 47;
|
|
3214
3177
|
}
|
|
3215
|
-
function
|
|
3178
|
+
function Yn(e) {
|
|
3216
3179
|
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;
|
|
3217
3180
|
}
|
|
3218
|
-
function
|
|
3181
|
+
function Bt(e) {
|
|
3219
3182
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3220
3183
|
}
|
|
3221
|
-
function
|
|
3184
|
+
function Kn(e) {
|
|
3222
3185
|
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;
|
|
3223
3186
|
}
|
|
3224
|
-
function
|
|
3187
|
+
function Ie(e) {
|
|
3225
3188
|
e.forEach(function(t) {
|
|
3226
|
-
if (delete t.location,
|
|
3189
|
+
if (delete t.location, bt(t) || pt(t))
|
|
3227
3190
|
for (var n in t.options)
|
|
3228
|
-
delete t.options[n].location,
|
|
3229
|
-
else
|
|
3191
|
+
delete t.options[n].location, Ie(t.options[n].value);
|
|
3192
|
+
else mt(t) && Et(t.style) || (dt(t) || gt(t)) && Ae(t.style) ? delete t.style.location : yt(t) && Ie(t.children);
|
|
3230
3193
|
});
|
|
3231
3194
|
}
|
|
3232
|
-
function
|
|
3195
|
+
function er(e, t) {
|
|
3233
3196
|
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3234
|
-
var n = new
|
|
3197
|
+
var n = new qn(e, t).parse();
|
|
3235
3198
|
if (n.err) {
|
|
3236
3199
|
var r = SyntaxError(g[n.err.kind]);
|
|
3237
3200
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3238
3201
|
}
|
|
3239
|
-
return t
|
|
3202
|
+
return t?.captureLocation || Ie(n.val), n.val;
|
|
3240
3203
|
}
|
|
3241
|
-
var
|
|
3204
|
+
var k;
|
|
3242
3205
|
(function(e) {
|
|
3243
3206
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3244
|
-
})(
|
|
3245
|
-
var
|
|
3207
|
+
})(k || (k = {}));
|
|
3208
|
+
var me = (
|
|
3246
3209
|
/** @class */
|
|
3247
3210
|
function(e) {
|
|
3248
|
-
|
|
3211
|
+
fe(t, e);
|
|
3249
3212
|
function t(n, r, i) {
|
|
3250
3213
|
var s = e.call(this, n) || this;
|
|
3251
3214
|
return s.code = r, s.originalMessage = i, s;
|
|
@@ -3254,155 +3217,155 @@ var de = (
|
|
|
3254
3217
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3255
3218
|
}, t;
|
|
3256
3219
|
}(Error)
|
|
3257
|
-
),
|
|
3220
|
+
), qe = (
|
|
3258
3221
|
/** @class */
|
|
3259
3222
|
function(e) {
|
|
3260
|
-
|
|
3223
|
+
fe(t, e);
|
|
3261
3224
|
function t(n, r, i, s) {
|
|
3262
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3225
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3263
3226
|
}
|
|
3264
3227
|
return t;
|
|
3265
|
-
}(
|
|
3266
|
-
),
|
|
3228
|
+
}(me)
|
|
3229
|
+
), tr = (
|
|
3267
3230
|
/** @class */
|
|
3268
3231
|
function(e) {
|
|
3269
|
-
|
|
3232
|
+
fe(t, e);
|
|
3270
3233
|
function t(n, r, i) {
|
|
3271
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3234
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), k.INVALID_VALUE, i) || this;
|
|
3272
3235
|
}
|
|
3273
3236
|
return t;
|
|
3274
|
-
}(
|
|
3275
|
-
),
|
|
3237
|
+
}(me)
|
|
3238
|
+
), nr = (
|
|
3276
3239
|
/** @class */
|
|
3277
3240
|
function(e) {
|
|
3278
|
-
|
|
3241
|
+
fe(t, e);
|
|
3279
3242
|
function t(n, r) {
|
|
3280
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3243
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), k.MISSING_VALUE, r) || this;
|
|
3281
3244
|
}
|
|
3282
3245
|
return t;
|
|
3283
|
-
}(
|
|
3284
|
-
),
|
|
3246
|
+
}(me)
|
|
3247
|
+
), A;
|
|
3285
3248
|
(function(e) {
|
|
3286
3249
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3287
|
-
})(
|
|
3288
|
-
function
|
|
3250
|
+
})(A || (A = {}));
|
|
3251
|
+
function rr(e) {
|
|
3289
3252
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3290
3253
|
var r = t[t.length - 1];
|
|
3291
|
-
return !r || r.type !==
|
|
3254
|
+
return !r || r.type !== A.literal || n.type !== A.literal ? t.push(n) : r.value += n.value, t;
|
|
3292
3255
|
}, []);
|
|
3293
3256
|
}
|
|
3294
|
-
function
|
|
3257
|
+
function ir(e) {
|
|
3295
3258
|
return typeof e == "function";
|
|
3296
3259
|
}
|
|
3297
|
-
function
|
|
3298
|
-
if (e.length === 1 &&
|
|
3260
|
+
function ae(e, t, n, r, i, s, a) {
|
|
3261
|
+
if (e.length === 1 && ke(e[0]))
|
|
3299
3262
|
return [
|
|
3300
3263
|
{
|
|
3301
|
-
type:
|
|
3264
|
+
type: A.literal,
|
|
3302
3265
|
value: e[0].value
|
|
3303
3266
|
}
|
|
3304
3267
|
];
|
|
3305
|
-
for (var
|
|
3306
|
-
var h =
|
|
3307
|
-
if (
|
|
3308
|
-
|
|
3309
|
-
type:
|
|
3268
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3269
|
+
var h = u[l];
|
|
3270
|
+
if (ke(h)) {
|
|
3271
|
+
o.push({
|
|
3272
|
+
type: A.literal,
|
|
3310
3273
|
value: h.value
|
|
3311
3274
|
});
|
|
3312
3275
|
continue;
|
|
3313
3276
|
}
|
|
3314
|
-
if (
|
|
3315
|
-
typeof s == "number" &&
|
|
3316
|
-
type:
|
|
3277
|
+
if (Bn(h)) {
|
|
3278
|
+
typeof s == "number" && o.push({
|
|
3279
|
+
type: A.literal,
|
|
3317
3280
|
value: n.getNumberFormat(t).format(s)
|
|
3318
3281
|
});
|
|
3319
3282
|
continue;
|
|
3320
3283
|
}
|
|
3321
3284
|
var c = h.value;
|
|
3322
3285
|
if (!(i && c in i))
|
|
3323
|
-
throw new
|
|
3286
|
+
throw new nr(c, a);
|
|
3324
3287
|
var f = i[c];
|
|
3325
|
-
if (
|
|
3326
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3327
|
-
type: typeof f == "string" ?
|
|
3288
|
+
if (Sn(h)) {
|
|
3289
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3290
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3328
3291
|
value: f
|
|
3329
3292
|
});
|
|
3330
3293
|
continue;
|
|
3331
3294
|
}
|
|
3332
|
-
if (
|
|
3333
|
-
var b = typeof h.style == "string" ? r.date[h.style] :
|
|
3334
|
-
|
|
3335
|
-
type:
|
|
3295
|
+
if (dt(h)) {
|
|
3296
|
+
var b = typeof h.style == "string" ? r.date[h.style] : Ae(h.style) ? h.style.parsedOptions : void 0;
|
|
3297
|
+
o.push({
|
|
3298
|
+
type: A.literal,
|
|
3336
3299
|
value: n.getDateTimeFormat(t, b).format(f)
|
|
3337
3300
|
});
|
|
3338
3301
|
continue;
|
|
3339
3302
|
}
|
|
3340
|
-
if (
|
|
3341
|
-
var b = typeof h.style == "string" ? r.time[h.style] :
|
|
3342
|
-
|
|
3343
|
-
type:
|
|
3303
|
+
if (gt(h)) {
|
|
3304
|
+
var b = typeof h.style == "string" ? r.time[h.style] : Ae(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3305
|
+
o.push({
|
|
3306
|
+
type: A.literal,
|
|
3344
3307
|
value: n.getDateTimeFormat(t, b).format(f)
|
|
3345
3308
|
});
|
|
3346
3309
|
continue;
|
|
3347
3310
|
}
|
|
3348
|
-
if (
|
|
3349
|
-
var b = typeof h.style == "string" ? r.number[h.style] :
|
|
3350
|
-
b && b.scale && (f = f * (b.scale || 1)),
|
|
3351
|
-
type:
|
|
3311
|
+
if (mt(h)) {
|
|
3312
|
+
var b = typeof h.style == "string" ? r.number[h.style] : Et(h.style) ? h.style.parsedOptions : void 0;
|
|
3313
|
+
b && b.scale && (f = f * (b.scale || 1)), o.push({
|
|
3314
|
+
type: A.literal,
|
|
3352
3315
|
value: n.getNumberFormat(t, b).format(f)
|
|
3353
3316
|
});
|
|
3354
3317
|
continue;
|
|
3355
3318
|
}
|
|
3356
|
-
if (
|
|
3319
|
+
if (yt(h)) {
|
|
3357
3320
|
var y = h.children, v = h.value, T = i[v];
|
|
3358
|
-
if (!
|
|
3359
|
-
throw new
|
|
3360
|
-
var
|
|
3361
|
-
return
|
|
3321
|
+
if (!ir(T))
|
|
3322
|
+
throw new tr(v, "function", a);
|
|
3323
|
+
var N = ae(y, t, n, r, i, s), P = T(N.map(function(O) {
|
|
3324
|
+
return O.value;
|
|
3362
3325
|
}));
|
|
3363
|
-
Array.isArray(
|
|
3326
|
+
Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(O) {
|
|
3364
3327
|
return {
|
|
3365
|
-
type: typeof
|
|
3366
|
-
value:
|
|
3328
|
+
type: typeof O == "string" ? A.literal : A.object,
|
|
3329
|
+
value: O
|
|
3367
3330
|
};
|
|
3368
3331
|
}));
|
|
3369
3332
|
}
|
|
3370
|
-
if (
|
|
3371
|
-
var
|
|
3372
|
-
if (!
|
|
3373
|
-
throw new
|
|
3374
|
-
|
|
3333
|
+
if (bt(h)) {
|
|
3334
|
+
var S = h.options[f] || h.options.other;
|
|
3335
|
+
if (!S)
|
|
3336
|
+
throw new qe(h.value, f, Object.keys(h.options), a);
|
|
3337
|
+
o.push.apply(o, ae(S.value, t, n, r, i));
|
|
3375
3338
|
continue;
|
|
3376
3339
|
}
|
|
3377
|
-
if (
|
|
3378
|
-
var
|
|
3379
|
-
if (!
|
|
3340
|
+
if (pt(h)) {
|
|
3341
|
+
var S = h.options["=".concat(f)];
|
|
3342
|
+
if (!S) {
|
|
3380
3343
|
if (!Intl.PluralRules)
|
|
3381
|
-
throw new
|
|
3344
|
+
throw new me(`Intl.PluralRules is not available in this environment.
|
|
3382
3345
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3383
|
-
`,
|
|
3384
|
-
var
|
|
3385
|
-
|
|
3346
|
+
`, k.MISSING_INTL_API, a);
|
|
3347
|
+
var B = n.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3348
|
+
S = h.options[B] || h.options.other;
|
|
3386
3349
|
}
|
|
3387
|
-
if (!
|
|
3388
|
-
throw new
|
|
3389
|
-
|
|
3350
|
+
if (!S)
|
|
3351
|
+
throw new qe(h.value, f, Object.keys(h.options), a);
|
|
3352
|
+
o.push.apply(o, ae(S.value, t, n, r, i, f - (h.offset || 0)));
|
|
3390
3353
|
continue;
|
|
3391
3354
|
}
|
|
3392
3355
|
}
|
|
3393
|
-
return
|
|
3356
|
+
return rr(o);
|
|
3394
3357
|
}
|
|
3395
|
-
function
|
|
3358
|
+
function sr(e, t) {
|
|
3396
3359
|
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3397
3360
|
return n[r] = E(E({}, e[r]), t[r] || {}), n;
|
|
3398
3361
|
}, {})) : e;
|
|
3399
3362
|
}
|
|
3400
|
-
function
|
|
3363
|
+
function ar(e, t) {
|
|
3401
3364
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3402
|
-
return n[r] =
|
|
3365
|
+
return n[r] = sr(e[r], t[r]), n;
|
|
3403
3366
|
}, E({}, e)) : e;
|
|
3404
3367
|
}
|
|
3405
|
-
function
|
|
3368
|
+
function xe(e) {
|
|
3406
3369
|
return {
|
|
3407
3370
|
create: function() {
|
|
3408
3371
|
return {
|
|
@@ -3416,39 +3379,39 @@ function He(e) {
|
|
|
3416
3379
|
}
|
|
3417
3380
|
};
|
|
3418
3381
|
}
|
|
3419
|
-
function
|
|
3382
|
+
function or(e) {
|
|
3420
3383
|
return e === void 0 && (e = {
|
|
3421
3384
|
number: {},
|
|
3422
3385
|
dateTime: {},
|
|
3423
3386
|
pluralRules: {}
|
|
3424
3387
|
}), {
|
|
3425
|
-
getNumberFormat:
|
|
3388
|
+
getNumberFormat: ye(function() {
|
|
3426
3389
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3427
3390
|
n[r] = arguments[r];
|
|
3428
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3391
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, pe([void 0], n, !1)))();
|
|
3429
3392
|
}, {
|
|
3430
|
-
cache:
|
|
3431
|
-
strategy:
|
|
3393
|
+
cache: xe(e.number),
|
|
3394
|
+
strategy: Ee.variadic
|
|
3432
3395
|
}),
|
|
3433
|
-
getDateTimeFormat:
|
|
3396
|
+
getDateTimeFormat: ye(function() {
|
|
3434
3397
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3435
3398
|
n[r] = arguments[r];
|
|
3436
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3399
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, pe([void 0], n, !1)))();
|
|
3437
3400
|
}, {
|
|
3438
|
-
cache:
|
|
3439
|
-
strategy:
|
|
3401
|
+
cache: xe(e.dateTime),
|
|
3402
|
+
strategy: Ee.variadic
|
|
3440
3403
|
}),
|
|
3441
|
-
getPluralRules:
|
|
3404
|
+
getPluralRules: ye(function() {
|
|
3442
3405
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3443
3406
|
n[r] = arguments[r];
|
|
3444
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3407
|
+
return new ((t = Intl.PluralRules).bind.apply(t, pe([void 0], n, !1)))();
|
|
3445
3408
|
}, {
|
|
3446
|
-
cache:
|
|
3447
|
-
strategy:
|
|
3409
|
+
cache: xe(e.pluralRules),
|
|
3410
|
+
strategy: Ee.variadic
|
|
3448
3411
|
})
|
|
3449
3412
|
};
|
|
3450
3413
|
}
|
|
3451
|
-
var
|
|
3414
|
+
var ur = (
|
|
3452
3415
|
/** @class */
|
|
3453
3416
|
function() {
|
|
3454
3417
|
function e(t, n, r, i) {
|
|
@@ -3459,15 +3422,15 @@ var Er = (
|
|
|
3459
3422
|
dateTime: {},
|
|
3460
3423
|
pluralRules: {}
|
|
3461
3424
|
}, this.format = function(l) {
|
|
3462
|
-
var
|
|
3463
|
-
if (
|
|
3464
|
-
return
|
|
3465
|
-
var h =
|
|
3466
|
-
return !c.length || f.type !==
|
|
3425
|
+
var u = s.formatToParts(l);
|
|
3426
|
+
if (u.length === 1)
|
|
3427
|
+
return u[0].value;
|
|
3428
|
+
var h = u.reduce(function(c, f) {
|
|
3429
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3467
3430
|
}, []);
|
|
3468
3431
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3469
3432
|
}, this.formatToParts = function(l) {
|
|
3470
|
-
return
|
|
3433
|
+
return ae(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3471
3434
|
}, this.resolvedOptions = function() {
|
|
3472
3435
|
var l;
|
|
3473
3436
|
return {
|
|
@@ -3480,13 +3443,13 @@ var Er = (
|
|
|
3480
3443
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3481
3444
|
var a = i || {};
|
|
3482
3445
|
a.formatters;
|
|
3483
|
-
var
|
|
3484
|
-
this.ast = e.__parse(t, E(E({},
|
|
3446
|
+
var o = Kt(a, ["formatters"]);
|
|
3447
|
+
this.ast = e.__parse(t, E(E({}, o), { locale: this.resolvedLocale }));
|
|
3485
3448
|
} else
|
|
3486
3449
|
this.ast = t;
|
|
3487
3450
|
if (!Array.isArray(this.ast))
|
|
3488
3451
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3489
|
-
this.formats =
|
|
3452
|
+
this.formats = ar(e.formats, r), this.formatters = i && i.formatters || or(this.formatterCache);
|
|
3490
3453
|
}
|
|
3491
3454
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3492
3455
|
get: function() {
|
|
@@ -3495,11 +3458,11 @@ var Er = (
|
|
|
3495
3458
|
enumerable: !1,
|
|
3496
3459
|
configurable: !0
|
|
3497
3460
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3498
|
-
if (typeof Intl.Locale
|
|
3461
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3499
3462
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3500
3463
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3501
3464
|
}
|
|
3502
|
-
}, e.__parse =
|
|
3465
|
+
}, e.__parse = er, e.formats = {
|
|
3503
3466
|
number: {
|
|
3504
3467
|
integer: {
|
|
3505
3468
|
maximumFractionDigits: 0
|
|
@@ -3560,7 +3523,7 @@ var Er = (
|
|
|
3560
3523
|
}, e;
|
|
3561
3524
|
}()
|
|
3562
3525
|
);
|
|
3563
|
-
function
|
|
3526
|
+
function hr(e, t) {
|
|
3564
3527
|
if (t == null)
|
|
3565
3528
|
return;
|
|
3566
3529
|
if (t in e)
|
|
@@ -3581,92 +3544,92 @@ function _r(e, t) {
|
|
|
3581
3544
|
r = void 0;
|
|
3582
3545
|
return r;
|
|
3583
3546
|
}
|
|
3584
|
-
const
|
|
3547
|
+
const C = {}, lr = (e, t, n) => n && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = n), n), At = (e, t) => {
|
|
3585
3548
|
if (t == null)
|
|
3586
3549
|
return;
|
|
3587
|
-
if (t in
|
|
3588
|
-
return
|
|
3589
|
-
const n =
|
|
3550
|
+
if (t in C && e in C[t])
|
|
3551
|
+
return C[t][e];
|
|
3552
|
+
const n = de(t);
|
|
3590
3553
|
for (let r = 0; r < n.length; r++) {
|
|
3591
|
-
const i = n[r], s =
|
|
3554
|
+
const i = n[r], s = cr(i, e);
|
|
3592
3555
|
if (s)
|
|
3593
|
-
return
|
|
3556
|
+
return lr(e, t, s);
|
|
3594
3557
|
}
|
|
3595
3558
|
};
|
|
3596
|
-
let
|
|
3597
|
-
const
|
|
3598
|
-
function
|
|
3599
|
-
return
|
|
3559
|
+
let Ue;
|
|
3560
|
+
const W = ce({});
|
|
3561
|
+
function fr(e) {
|
|
3562
|
+
return Ue[e] || null;
|
|
3600
3563
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return e in
|
|
3564
|
+
function wt(e) {
|
|
3565
|
+
return e in Ue;
|
|
3603
3566
|
}
|
|
3604
|
-
function
|
|
3605
|
-
if (!
|
|
3567
|
+
function cr(e, t) {
|
|
3568
|
+
if (!wt(e))
|
|
3606
3569
|
return null;
|
|
3607
|
-
const n =
|
|
3608
|
-
return
|
|
3570
|
+
const n = fr(e);
|
|
3571
|
+
return hr(n, t);
|
|
3609
3572
|
}
|
|
3610
|
-
function
|
|
3573
|
+
function mr(e) {
|
|
3611
3574
|
if (e == null)
|
|
3612
3575
|
return;
|
|
3613
|
-
const t =
|
|
3576
|
+
const t = de(e);
|
|
3614
3577
|
for (let n = 0; n < t.length; n++) {
|
|
3615
3578
|
const r = t[n];
|
|
3616
|
-
if (
|
|
3579
|
+
if (wt(r))
|
|
3617
3580
|
return r;
|
|
3618
3581
|
}
|
|
3619
3582
|
}
|
|
3620
|
-
function
|
|
3621
|
-
delete
|
|
3583
|
+
function dr(e, ...t) {
|
|
3584
|
+
delete C[e], W.update((n) => (n[e] = pn.all([n[e] || {}, ...t]), n));
|
|
3622
3585
|
}
|
|
3623
|
-
|
|
3624
|
-
[
|
|
3586
|
+
z(
|
|
3587
|
+
[W],
|
|
3625
3588
|
([e]) => Object.keys(e)
|
|
3626
3589
|
);
|
|
3627
|
-
|
|
3628
|
-
const
|
|
3629
|
-
function
|
|
3630
|
-
|
|
3590
|
+
W.subscribe((e) => Ue = e);
|
|
3591
|
+
const oe = {};
|
|
3592
|
+
function gr(e, t) {
|
|
3593
|
+
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
|
3631
3594
|
}
|
|
3632
|
-
function
|
|
3633
|
-
return
|
|
3595
|
+
function Pt(e) {
|
|
3596
|
+
return oe[e];
|
|
3634
3597
|
}
|
|
3635
|
-
function
|
|
3636
|
-
return
|
|
3637
|
-
const n =
|
|
3598
|
+
function br(e) {
|
|
3599
|
+
return de(e).map((t) => {
|
|
3600
|
+
const n = Pt(t);
|
|
3638
3601
|
return [t, n ? [...n] : []];
|
|
3639
3602
|
}).filter(([, t]) => t.length > 0);
|
|
3640
3603
|
}
|
|
3641
|
-
function
|
|
3642
|
-
return e == null ? !1 :
|
|
3604
|
+
function Le(e) {
|
|
3605
|
+
return e == null ? !1 : de(e).some(
|
|
3643
3606
|
(t) => {
|
|
3644
3607
|
var n;
|
|
3645
|
-
return (n =
|
|
3608
|
+
return (n = Pt(t)) == null ? void 0 : n.size;
|
|
3646
3609
|
}
|
|
3647
3610
|
);
|
|
3648
3611
|
}
|
|
3649
|
-
function
|
|
3612
|
+
function pr(e, t) {
|
|
3650
3613
|
return Promise.all(
|
|
3651
|
-
t.map((r) => (
|
|
3652
|
-
).then((r) =>
|
|
3653
|
-
}
|
|
3654
|
-
const
|
|
3655
|
-
function
|
|
3656
|
-
if (!
|
|
3657
|
-
return e in
|
|
3658
|
-
const t =
|
|
3659
|
-
return
|
|
3614
|
+
t.map((r) => (gr(e, r), r().then((i) => i.default || i)))
|
|
3615
|
+
).then((r) => dr(e, ...r));
|
|
3616
|
+
}
|
|
3617
|
+
const Q = {};
|
|
3618
|
+
function Nt(e) {
|
|
3619
|
+
if (!Le(e))
|
|
3620
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3621
|
+
const t = br(e);
|
|
3622
|
+
return Q[e] = Promise.all(
|
|
3660
3623
|
t.map(
|
|
3661
|
-
([n, r]) =>
|
|
3624
|
+
([n, r]) => pr(n, r)
|
|
3662
3625
|
)
|
|
3663
3626
|
).then(() => {
|
|
3664
|
-
if (
|
|
3665
|
-
return
|
|
3666
|
-
delete
|
|
3667
|
-
}),
|
|
3627
|
+
if (Le(e))
|
|
3628
|
+
return Nt(e);
|
|
3629
|
+
delete Q[e];
|
|
3630
|
+
}), Q[e];
|
|
3668
3631
|
}
|
|
3669
|
-
const
|
|
3632
|
+
const yr = {
|
|
3670
3633
|
number: {
|
|
3671
3634
|
scientific: { notation: "scientific" },
|
|
3672
3635
|
engineering: { notation: "engineering" },
|
|
@@ -3695,159 +3658,159 @@ const Pr = {
|
|
|
3695
3658
|
timeZoneName: "short"
|
|
3696
3659
|
}
|
|
3697
3660
|
}
|
|
3698
|
-
},
|
|
3661
|
+
}, Er = {
|
|
3699
3662
|
fallbackLocale: null,
|
|
3700
3663
|
loadingDelay: 200,
|
|
3701
|
-
formats:
|
|
3664
|
+
formats: yr,
|
|
3702
3665
|
warnOnMissingMessages: !0,
|
|
3703
3666
|
handleMissingMessage: void 0,
|
|
3704
3667
|
ignoreTag: !0
|
|
3705
|
-
},
|
|
3706
|
-
function
|
|
3707
|
-
return
|
|
3668
|
+
}, _r = Er;
|
|
3669
|
+
function V() {
|
|
3670
|
+
return _r;
|
|
3708
3671
|
}
|
|
3709
|
-
const
|
|
3710
|
-
var
|
|
3672
|
+
const ve = ce(!1);
|
|
3673
|
+
var xr = Object.defineProperty, vr = Object.defineProperties, Hr = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, Tr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Ye = (e, t, n) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Br = (e, t) => {
|
|
3711
3674
|
for (var n in t)
|
|
3712
|
-
|
|
3713
|
-
if (
|
|
3714
|
-
for (var n of
|
|
3715
|
-
|
|
3675
|
+
Tr.call(t, n) && Ye(e, n, t[n]);
|
|
3676
|
+
if (Je)
|
|
3677
|
+
for (var n of Je(t))
|
|
3678
|
+
Sr.call(t, n) && Ye(e, n, t[n]);
|
|
3716
3679
|
return e;
|
|
3717
|
-
},
|
|
3718
|
-
let
|
|
3719
|
-
const
|
|
3720
|
-
function
|
|
3680
|
+
}, Ar = (e, t) => vr(e, Hr(t));
|
|
3681
|
+
let Ce;
|
|
3682
|
+
const ue = ce(null);
|
|
3683
|
+
function Ke(e) {
|
|
3721
3684
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3722
3685
|
}
|
|
3723
|
-
function
|
|
3724
|
-
const n =
|
|
3725
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3686
|
+
function de(e, t = V().fallbackLocale) {
|
|
3687
|
+
const n = Ke(e);
|
|
3688
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Ke(t)])] : n;
|
|
3726
3689
|
}
|
|
3727
|
-
function
|
|
3728
|
-
return
|
|
3690
|
+
function R() {
|
|
3691
|
+
return Ce ?? void 0;
|
|
3729
3692
|
}
|
|
3730
|
-
|
|
3731
|
-
|
|
3693
|
+
ue.subscribe((e) => {
|
|
3694
|
+
Ce = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3732
3695
|
});
|
|
3733
|
-
const
|
|
3734
|
-
if (e &&
|
|
3735
|
-
const { loadingDelay: t } =
|
|
3696
|
+
const wr = (e) => {
|
|
3697
|
+
if (e && mr(e) && Le(e)) {
|
|
3698
|
+
const { loadingDelay: t } = V();
|
|
3736
3699
|
let n;
|
|
3737
|
-
return typeof window
|
|
3738
|
-
() =>
|
|
3700
|
+
return typeof window < "u" && R() != null && t ? n = window.setTimeout(
|
|
3701
|
+
() => ve.set(!0),
|
|
3739
3702
|
t
|
|
3740
|
-
) :
|
|
3741
|
-
|
|
3703
|
+
) : ve.set(!0), Nt(e).then(() => {
|
|
3704
|
+
ue.set(e);
|
|
3742
3705
|
}).finally(() => {
|
|
3743
|
-
clearTimeout(n),
|
|
3706
|
+
clearTimeout(n), ve.set(!1);
|
|
3744
3707
|
});
|
|
3745
3708
|
}
|
|
3746
|
-
return
|
|
3747
|
-
},
|
|
3748
|
-
set:
|
|
3749
|
-
}),
|
|
3709
|
+
return ue.set(e);
|
|
3710
|
+
}, M = Ar(Br({}, ue), {
|
|
3711
|
+
set: wr
|
|
3712
|
+
}), ge = (e) => {
|
|
3750
3713
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3751
3714
|
return (r) => {
|
|
3752
3715
|
const i = JSON.stringify(r);
|
|
3753
3716
|
return i in t ? t[i] : t[i] = e(r);
|
|
3754
3717
|
};
|
|
3755
3718
|
};
|
|
3756
|
-
var
|
|
3719
|
+
var Pr = Object.defineProperty, he = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, It = Object.prototype.propertyIsEnumerable, et = (e, t, n) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, De = (e, t) => {
|
|
3757
3720
|
for (var n in t || (t = {}))
|
|
3758
|
-
|
|
3759
|
-
if (
|
|
3760
|
-
for (var n of
|
|
3761
|
-
|
|
3721
|
+
Ot.call(t, n) && et(e, n, t[n]);
|
|
3722
|
+
if (he)
|
|
3723
|
+
for (var n of he(t))
|
|
3724
|
+
It.call(t, n) && et(e, n, t[n]);
|
|
3762
3725
|
return e;
|
|
3763
|
-
},
|
|
3726
|
+
}, Z = (e, t) => {
|
|
3764
3727
|
var n = {};
|
|
3765
3728
|
for (var r in e)
|
|
3766
|
-
|
|
3767
|
-
if (e != null &&
|
|
3768
|
-
for (var r of
|
|
3769
|
-
t.indexOf(r) < 0 &&
|
|
3729
|
+
Ot.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3730
|
+
if (e != null && he)
|
|
3731
|
+
for (var r of he(e))
|
|
3732
|
+
t.indexOf(r) < 0 && It.call(e, r) && (n[r] = e[r]);
|
|
3770
3733
|
return n;
|
|
3771
3734
|
};
|
|
3772
|
-
const
|
|
3773
|
-
const { formats: n } =
|
|
3735
|
+
const K = (e, t) => {
|
|
3736
|
+
const { formats: n } = V();
|
|
3774
3737
|
if (e in n && t in n[e])
|
|
3775
3738
|
return n[e][t];
|
|
3776
3739
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3777
|
-
},
|
|
3740
|
+
}, Nr = ge(
|
|
3778
3741
|
(e) => {
|
|
3779
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3742
|
+
var t = e, { locale: n, format: r } = t, i = Z(t, ["locale", "format"]);
|
|
3780
3743
|
if (n == null)
|
|
3781
3744
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3782
|
-
return r && (i =
|
|
3745
|
+
return r && (i = K("number", r)), new Intl.NumberFormat(n, i);
|
|
3783
3746
|
}
|
|
3784
|
-
),
|
|
3747
|
+
), Or = ge(
|
|
3785
3748
|
(e) => {
|
|
3786
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3749
|
+
var t = e, { locale: n, format: r } = t, i = Z(t, ["locale", "format"]);
|
|
3787
3750
|
if (n == null)
|
|
3788
3751
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3789
|
-
return r ? i =
|
|
3752
|
+
return r ? i = K("date", r) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3790
3753
|
}
|
|
3791
|
-
),
|
|
3754
|
+
), Ir = ge(
|
|
3792
3755
|
(e) => {
|
|
3793
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3756
|
+
var t = e, { locale: n, format: r } = t, i = Z(t, ["locale", "format"]);
|
|
3794
3757
|
if (n == null)
|
|
3795
3758
|
throw new Error(
|
|
3796
3759
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3797
3760
|
);
|
|
3798
|
-
return r ? i =
|
|
3761
|
+
return r ? i = K("time", r) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3799
3762
|
}
|
|
3800
|
-
),
|
|
3763
|
+
), Lr = (e = {}) => {
|
|
3801
3764
|
var t = e, {
|
|
3802
|
-
locale: n =
|
|
3803
|
-
} = t, r =
|
|
3765
|
+
locale: n = R()
|
|
3766
|
+
} = t, r = Z(t, [
|
|
3804
3767
|
"locale"
|
|
3805
3768
|
]);
|
|
3806
|
-
return
|
|
3807
|
-
},
|
|
3769
|
+
return Nr(De({ locale: n }, r));
|
|
3770
|
+
}, Cr = (e = {}) => {
|
|
3808
3771
|
var t = e, {
|
|
3809
|
-
locale: n =
|
|
3810
|
-
} = t, r =
|
|
3772
|
+
locale: n = R()
|
|
3773
|
+
} = t, r = Z(t, [
|
|
3811
3774
|
"locale"
|
|
3812
3775
|
]);
|
|
3813
|
-
return
|
|
3814
|
-
},
|
|
3776
|
+
return Or(De({ locale: n }, r));
|
|
3777
|
+
}, Mr = (e = {}) => {
|
|
3815
3778
|
var t = e, {
|
|
3816
|
-
locale: n =
|
|
3817
|
-
} = t, r =
|
|
3779
|
+
locale: n = R()
|
|
3780
|
+
} = t, r = Z(t, [
|
|
3818
3781
|
"locale"
|
|
3819
3782
|
]);
|
|
3820
|
-
return
|
|
3821
|
-
},
|
|
3783
|
+
return Ir(De({ locale: n }, r));
|
|
3784
|
+
}, Rr = ge(
|
|
3822
3785
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3823
|
-
(e, t =
|
|
3824
|
-
ignoreTag:
|
|
3786
|
+
(e, t = R()) => new ur(e, t, V().formats, {
|
|
3787
|
+
ignoreTag: V().ignoreTag
|
|
3825
3788
|
})
|
|
3826
|
-
),
|
|
3789
|
+
), $r = (e, t = {}) => {
|
|
3827
3790
|
var n, r, i, s;
|
|
3828
3791
|
let a = t;
|
|
3829
3792
|
typeof e == "object" && (a = e, e = a.id);
|
|
3830
3793
|
const {
|
|
3831
|
-
values:
|
|
3832
|
-
locale: l =
|
|
3833
|
-
default:
|
|
3794
|
+
values: o,
|
|
3795
|
+
locale: l = R(),
|
|
3796
|
+
default: u
|
|
3834
3797
|
} = a;
|
|
3835
3798
|
if (l == null)
|
|
3836
3799
|
throw new Error(
|
|
3837
3800
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3838
3801
|
);
|
|
3839
|
-
let h =
|
|
3802
|
+
let h = At(e, l);
|
|
3840
3803
|
if (!h)
|
|
3841
|
-
h = (s = (i = (r = (n =
|
|
3804
|
+
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;
|
|
3842
3805
|
else if (typeof h != "string")
|
|
3843
3806
|
return console.warn(
|
|
3844
3807
|
`[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.`
|
|
3845
3808
|
), h;
|
|
3846
|
-
if (!
|
|
3809
|
+
if (!o)
|
|
3847
3810
|
return h;
|
|
3848
3811
|
let c = h;
|
|
3849
3812
|
try {
|
|
3850
|
-
c =
|
|
3813
|
+
c = Rr(h, l).format(o);
|
|
3851
3814
|
} catch (f) {
|
|
3852
3815
|
f instanceof Error && console.warn(
|
|
3853
3816
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3855,17 +3818,17 @@ const ee = (e, t) => {
|
|
|
3855
3818
|
);
|
|
3856
3819
|
}
|
|
3857
3820
|
return c;
|
|
3858
|
-
},
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
function
|
|
3864
|
-
|
|
3865
|
-
n == null && (
|
|
3821
|
+
}, Ur = (e, t) => Mr(t).format(e), Dr = (e, t) => Cr(t).format(e), Gr = (e, t) => Lr(t).format(e), Fr = (e, t = R()) => At(e, t), hi = z([M, W], () => $r);
|
|
3822
|
+
z([M], () => Ur);
|
|
3823
|
+
z([M], () => Dr);
|
|
3824
|
+
z([M], () => Gr);
|
|
3825
|
+
z([M, W], () => Fr);
|
|
3826
|
+
function jr({ withLocale: e, translations: t }) {
|
|
3827
|
+
M.subscribe((n) => {
|
|
3828
|
+
n == null && (W.set(t), M.set(e));
|
|
3866
3829
|
});
|
|
3867
3830
|
}
|
|
3868
|
-
if (typeof window
|
|
3831
|
+
if (typeof window < "u") {
|
|
3869
3832
|
let e = function(t) {
|
|
3870
3833
|
return function(...n) {
|
|
3871
3834
|
try {
|
|
@@ -3877,18 +3840,18 @@ if (typeof window != "undefined") {
|
|
|
3877
3840
|
}
|
|
3878
3841
|
};
|
|
3879
3842
|
};
|
|
3880
|
-
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-
|
|
3843
|
+
customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-Dn9KPRYf.js").then(({ default: t }) => {
|
|
3881
3844
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", t.element);
|
|
3882
3845
|
});
|
|
3883
3846
|
}
|
|
3884
|
-
function
|
|
3885
|
-
|
|
3847
|
+
function kr(e) {
|
|
3848
|
+
Rt(e, "svelte-1rh2qpg", ".CasinoFavoritesSectionContainer{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
|
|
3886
3849
|
}
|
|
3887
|
-
function
|
|
3850
|
+
function tt(e) {
|
|
3888
3851
|
let t;
|
|
3889
3852
|
return {
|
|
3890
3853
|
c() {
|
|
3891
|
-
t =
|
|
3854
|
+
t = te("casino-games-category-section"), d(
|
|
3892
3855
|
t,
|
|
3893
3856
|
"session",
|
|
3894
3857
|
/*session*/
|
|
@@ -3976,7 +3939,7 @@ function ot(e) {
|
|
|
3976
3939
|
);
|
|
3977
3940
|
},
|
|
3978
3941
|
m(n, r) {
|
|
3979
|
-
|
|
3942
|
+
le(n, t, r);
|
|
3980
3943
|
},
|
|
3981
3944
|
p(n, r) {
|
|
3982
3945
|
r & /*session*/
|
|
@@ -4084,69 +4047,69 @@ function ot(e) {
|
|
|
4084
4047
|
);
|
|
4085
4048
|
},
|
|
4086
4049
|
d(n) {
|
|
4087
|
-
n &&
|
|
4050
|
+
n && ee(t);
|
|
4088
4051
|
}
|
|
4089
4052
|
};
|
|
4090
4053
|
}
|
|
4091
|
-
function
|
|
4054
|
+
function Vr(e) {
|
|
4092
4055
|
let t, n = (
|
|
4093
4056
|
/*session*/
|
|
4094
|
-
e[4] &&
|
|
4057
|
+
e[4] && tt(e)
|
|
4095
4058
|
);
|
|
4096
4059
|
return {
|
|
4097
4060
|
c() {
|
|
4098
|
-
t =
|
|
4061
|
+
t = te("div"), n && n.c(), Re(t, "class", "CasinoFavoritesSectionContainer");
|
|
4099
4062
|
},
|
|
4100
4063
|
m(r, i) {
|
|
4101
|
-
|
|
4064
|
+
le(r, t, i), n && n.m(t, null), e[18](t);
|
|
4102
4065
|
},
|
|
4103
4066
|
p(r, [i]) {
|
|
4104
4067
|
/*session*/
|
|
4105
|
-
r[4] ? n ? n.p(r, i) : (n =
|
|
4068
|
+
r[4] ? n ? n.p(r, i) : (n = tt(r), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
|
|
4106
4069
|
},
|
|
4107
|
-
i:
|
|
4108
|
-
o:
|
|
4070
|
+
i: I,
|
|
4071
|
+
o: I,
|
|
4109
4072
|
d(r) {
|
|
4110
|
-
r &&
|
|
4073
|
+
r && ee(t), n && n.d(), e[18](null);
|
|
4111
4074
|
}
|
|
4112
4075
|
};
|
|
4113
4076
|
}
|
|
4114
|
-
function
|
|
4115
|
-
let { endpoint: r = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: a = "" } = t, { session:
|
|
4116
|
-
|
|
4117
|
-
const
|
|
4077
|
+
function Xr(e, t, n) {
|
|
4078
|
+
let { endpoint: r = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: a = "" } = t, { session: o = "" } = t, { userid: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { livecasino: c = "false" } = t, { integratedgameframemobile: f = "false" } = t, { integratedgameframedesktop: b = "false" } = t, { showgamename: y = "" } = t, { gamepagemodalurl: v = "false" } = t, { visiblegames: T = "" } = t, { favorites: N = "" } = t, { casinomygames: P = "false" } = t, { fetchviaevent: S = "true" } = t, B;
|
|
4079
|
+
jr({ withLocale: "en", translations: {} });
|
|
4080
|
+
const O = () => {
|
|
4118
4081
|
let m = document.createElement("style");
|
|
4119
|
-
m.innerHTML =
|
|
4120
|
-
},
|
|
4082
|
+
m.innerHTML = u, B.appendChild(m);
|
|
4083
|
+
}, L = () => {
|
|
4121
4084
|
let m = document.createElement("style");
|
|
4122
|
-
fetch(new URL(h)).then((
|
|
4123
|
-
m.innerHTML =
|
|
4085
|
+
fetch(new URL(h)).then((w) => w.text()).then((w) => {
|
|
4086
|
+
m.innerHTML = w, setTimeout(
|
|
4124
4087
|
() => {
|
|
4125
|
-
|
|
4088
|
+
B.appendChild(m);
|
|
4126
4089
|
},
|
|
4127
4090
|
1
|
|
4128
4091
|
);
|
|
4129
4092
|
});
|
|
4130
4093
|
};
|
|
4131
4094
|
function x(m) {
|
|
4132
|
-
|
|
4133
|
-
|
|
4095
|
+
He[m ? "unshift" : "push"](() => {
|
|
4096
|
+
B = m, n(17, B);
|
|
4134
4097
|
});
|
|
4135
4098
|
}
|
|
4136
4099
|
return e.$$set = (m) => {
|
|
4137
|
-
"endpoint" in m && n(0, r = m.endpoint), "datasource" in m && n(1, i = m.datasource), "currency" in m && n(2, s = m.currency), "lang" in m && n(3, a = m.lang), "session" in m && n(4,
|
|
4100
|
+
"endpoint" in m && n(0, r = m.endpoint), "datasource" in m && n(1, i = m.datasource), "currency" in m && n(2, s = m.currency), "lang" in m && n(3, a = m.lang), "session" in m && n(4, o = m.session), "userid" in m && n(5, l = m.userid), "clientstyling" in m && n(6, u = m.clientstyling), "clientstylingurl" in m && n(7, h = m.clientstylingurl), "livecasino" in m && n(8, c = m.livecasino), "integratedgameframemobile" in m && n(9, f = m.integratedgameframemobile), "integratedgameframedesktop" in m && n(10, b = m.integratedgameframedesktop), "showgamename" in m && n(11, y = m.showgamename), "gamepagemodalurl" in m && n(12, v = m.gamepagemodalurl), "visiblegames" in m && n(13, T = m.visiblegames), "favorites" in m && n(14, N = m.favorites), "casinomygames" in m && n(15, P = m.casinomygames), "fetchviaevent" in m && n(16, S = m.fetchviaevent);
|
|
4138
4101
|
}, e.$$.update = () => {
|
|
4139
4102
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4140
|
-
131136 &&
|
|
4141
|
-
131200 && h &&
|
|
4103
|
+
131136 && u && B && O(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4104
|
+
131200 && h && B && L();
|
|
4142
4105
|
}, [
|
|
4143
4106
|
r,
|
|
4144
4107
|
i,
|
|
4145
4108
|
s,
|
|
4146
4109
|
a,
|
|
4147
|
-
u,
|
|
4148
|
-
l,
|
|
4149
4110
|
o,
|
|
4111
|
+
l,
|
|
4112
|
+
u,
|
|
4150
4113
|
h,
|
|
4151
4114
|
c,
|
|
4152
4115
|
f,
|
|
@@ -4154,21 +4117,21 @@ function ni(e, t, n) {
|
|
|
4154
4117
|
y,
|
|
4155
4118
|
v,
|
|
4156
4119
|
T,
|
|
4157
|
-
O,
|
|
4158
4120
|
N,
|
|
4121
|
+
P,
|
|
4122
|
+
S,
|
|
4159
4123
|
B,
|
|
4160
|
-
A,
|
|
4161
4124
|
x
|
|
4162
4125
|
];
|
|
4163
4126
|
}
|
|
4164
|
-
class
|
|
4127
|
+
class Lt extends Jt {
|
|
4165
4128
|
constructor(t) {
|
|
4166
|
-
super(),
|
|
4129
|
+
super(), Qt(
|
|
4167
4130
|
this,
|
|
4168
4131
|
t,
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4132
|
+
Xr,
|
|
4133
|
+
Vr,
|
|
4134
|
+
rt,
|
|
4172
4135
|
{
|
|
4173
4136
|
endpoint: 0,
|
|
4174
4137
|
datasource: 1,
|
|
@@ -4188,7 +4151,7 @@ class Dt extends hn {
|
|
|
4188
4151
|
casinomygames: 15,
|
|
4189
4152
|
fetchviaevent: 16
|
|
4190
4153
|
},
|
|
4191
|
-
|
|
4154
|
+
kr
|
|
4192
4155
|
);
|
|
4193
4156
|
}
|
|
4194
4157
|
get endpoint() {
|
|
@@ -4294,51 +4257,51 @@ class Dt extends hn {
|
|
|
4294
4257
|
this.$$set({ fetchviaevent: t }), H();
|
|
4295
4258
|
}
|
|
4296
4259
|
}
|
|
4297
|
-
|
|
4298
|
-
const
|
|
4260
|
+
qt(Lt, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {} }, [], [], !0);
|
|
4261
|
+
const li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4299
4262
|
__proto__: null,
|
|
4300
|
-
default:
|
|
4263
|
+
default: Lt
|
|
4301
4264
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4302
4265
|
export {
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4266
|
+
M as $,
|
|
4267
|
+
X as A,
|
|
4268
|
+
Kr as B,
|
|
4269
|
+
hi as C,
|
|
4270
|
+
zr as D,
|
|
4271
|
+
ei as E,
|
|
4272
|
+
qr as F,
|
|
4273
|
+
ri as G,
|
|
4274
|
+
ti as H,
|
|
4275
|
+
ai as I,
|
|
4313
4276
|
d as J,
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4277
|
+
si as K,
|
|
4278
|
+
li as L,
|
|
4279
|
+
Jt as S,
|
|
4280
|
+
oi as _,
|
|
4281
|
+
pe as a,
|
|
4282
|
+
ui as b,
|
|
4283
|
+
fe as c,
|
|
4284
|
+
W as d,
|
|
4285
|
+
dr as e,
|
|
4323
4286
|
H as f,
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4287
|
+
qt as g,
|
|
4288
|
+
Rt as h,
|
|
4289
|
+
Qt as i,
|
|
4290
|
+
te as j,
|
|
4291
|
+
le as k,
|
|
4292
|
+
ee as l,
|
|
4293
|
+
Wr as m,
|
|
4294
|
+
I as n,
|
|
4295
|
+
ni as o,
|
|
4296
|
+
He as p,
|
|
4297
|
+
ii as q,
|
|
4298
|
+
Dt as r,
|
|
4299
|
+
rt as s,
|
|
4300
|
+
Qr as t,
|
|
4301
|
+
st as u,
|
|
4302
|
+
Re as v,
|
|
4303
|
+
Mt as w,
|
|
4304
|
+
Jr as x,
|
|
4305
|
+
Yr as y,
|
|
4306
|
+
Zr as z
|
|
4344
4307
|
};
|