@everymatrix/casino-tournaments-thumbnail-controller 1.74.0 → 1.74.2
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/{CasinoTournamentsThumbnail-CxQkObpW.js → CasinoTournamentsThumbnail-8tZUVwpW.js} +654 -622
- package/components/CasinoTournamentsThumbnail-BqmTEoM7.cjs +19 -0
- package/components/{CasinoTournamentsThumbnail-nb4O1lys.js → CasinoTournamentsThumbnail-Fpn9STTw.js} +648 -616
- package/components/{CasinoTournamentsThumbnailController-CrMLGUQi.js → CasinoTournamentsThumbnailController-BdvLstu8.js} +567 -616
- package/components/CasinoTournamentsThumbnailController-CjdKfspJ.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailController-CaW34Mlj.js → CasinoTournamentsThumbnailController-_UnZLd20.js} +542 -591
- package/components/{CasinoTournamentsThumbnailDuration-Biu-7U94.cjs → CasinoTournamentsThumbnailDuration-D-S7Iwje.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DjCh4ZoZ.js → CasinoTournamentsThumbnailDuration-DYEIBge5.js} +65 -65
- package/components/{CasinoTournamentsThumbnailDuration-3lfQUW4z.js → CasinoTournamentsThumbnailDuration-QdA9AyQW.js} +65 -65
- package/components/{CasinoTournamentsThumbnailGamesSlider-CtPvYCAP.cjs → CasinoTournamentsThumbnailGamesSlider-B2HrXtpF.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-DoxK5jEv.js → CasinoTournamentsThumbnailGamesSlider-BPAxOuRT.js} +87 -87
- package/components/{CasinoTournamentsThumbnailGamesSlider-CToyMtzk.js → CasinoTournamentsThumbnailGamesSlider-BYsVs8RZ.js} +87 -87
- package/components/{CasinoTournamentsThumbnailPrizes-BJ7xmSkt.js → CasinoTournamentsThumbnailPrizes-BkMNU5um.js} +85 -85
- package/components/{CasinoTournamentsThumbnailPrizes-DK_fUB1g.js → CasinoTournamentsThumbnailPrizes-K8u53EX4.js} +85 -85
- package/components/{CasinoTournamentsThumbnailPrizes-DP-eIAcR.cjs → CasinoTournamentsThumbnailPrizes-ipmM8zIn.cjs} +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BD-QREJe.js +558 -0
- package/stencil/index-97d17652-DJqGt8q2.js +542 -0
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/index-b2193545-CF9C6kiu.cjs +1 -0
- package/stencil/index-b2193545-OH6E7v51.js +519 -0
- package/stencil/index-b2193545-eoIiLcDl.js +503 -0
- package/stencil/{ui-image-Bk8cIvcH.cjs → ui-image-CDCn_LHy.cjs} +1 -1
- package/stencil/{ui-image-DgbODkuX.js → ui-image-CDGN3Ekj.js} +1 -1
- package/stencil/{ui-image-CXqPvnQ2.js → ui-image-CNrnXPP3.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/stencil/{ui-skeleton-DSebcnN1.js → ui-skeleton-C73UqtBQ.js} +2 -2
- package/stencil/{ui-skeleton-B0BB970e.cjs → ui-skeleton-Caiy-FEL.cjs} +1 -1
- package/stencil/{ui-skeleton-D8L-WY77.js → ui-skeleton-CzV3R1-p.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-DDiK5zGt.cjs → ui-skeleton-ae35c6f2-C9l5j8aK.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CcPx4a2P.js → ui-skeleton-ae35c6f2-CLOd38Ia.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BH4D8vHD.js → ui-skeleton-ae35c6f2-SCby2j53.js} +1 -1
- package/components/CasinoTournamentsThumbnail-AXGrVnsY.cjs +0 -6
- package/components/CasinoTournamentsThumbnailController-HARgYRHq.cjs +0 -16
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
- package/stencil/index-b2193545-BS7xFIk4.js +0 -503
- package/stencil/index-b2193545-BTdVi7--.cjs +0 -1
- package/stencil/index-b2193545-rfNAj6ri.js +0 -519
package/components/{CasinoTournamentsThumbnail-CxQkObpW.js → CasinoTournamentsThumbnail-8tZUVwpW.js}
RENAMED
|
@@ -27,30 +27,30 @@ var ut = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
31
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-skeleton-CzV3R1-p.js";
|
|
31
|
+
import "../stencil/ui-image-CDGN3Ekj.js";
|
|
32
32
|
function U() {
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Ot(e) {
|
|
35
35
|
return e();
|
|
36
36
|
}
|
|
37
37
|
function lt() {
|
|
38
38
|
return /* @__PURE__ */ Object.create(null);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
e.forEach(
|
|
40
|
+
function ie(e) {
|
|
41
|
+
e.forEach(Ot);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function me(e) {
|
|
44
44
|
return typeof e == "function";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Pt(e, t) {
|
|
47
47
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
48
48
|
}
|
|
49
|
-
let
|
|
50
|
-
function
|
|
51
|
-
return e === t ? !0 : (
|
|
49
|
+
let be;
|
|
50
|
+
function Fe(e, t) {
|
|
51
|
+
return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function xr(e) {
|
|
54
54
|
return Object.keys(e).length === 0;
|
|
55
55
|
}
|
|
56
56
|
function Lt(e, ...t) {
|
|
@@ -62,13 +62,13 @@ function Lt(e, ...t) {
|
|
|
62
62
|
const r = e.subscribe(...t);
|
|
63
63
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Er(e, t, r) {
|
|
66
66
|
e.$$.on_destroy.push(Lt(t, r));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return e &&
|
|
68
|
+
function de(e) {
|
|
69
|
+
return e && me(e.destroy) ? e.destroy : U;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function S(e, t) {
|
|
72
72
|
e.appendChild(t);
|
|
73
73
|
}
|
|
74
74
|
function Sr(e, t, r) {
|
|
@@ -89,26 +89,26 @@ function Tr(e) {
|
|
|
89
89
|
) : e.ownerDocument;
|
|
90
90
|
}
|
|
91
91
|
function Ar(e, t) {
|
|
92
|
-
return
|
|
92
|
+
return S(
|
|
93
93
|
/** @type {Document} */
|
|
94
94
|
e.head || e,
|
|
95
95
|
t
|
|
96
96
|
), t.sheet;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function O(e, t, r) {
|
|
99
99
|
e.insertBefore(t, r || null);
|
|
100
100
|
}
|
|
101
101
|
function B(e) {
|
|
102
102
|
e.parentNode && e.parentNode.removeChild(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ji(e, t) {
|
|
105
105
|
for (let r = 0; r < e.length; r += 1)
|
|
106
106
|
e[r] && e[r].d(t);
|
|
107
107
|
}
|
|
108
108
|
function A(e) {
|
|
109
109
|
return document.createElement(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Wi(e) {
|
|
112
112
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
113
113
|
}
|
|
114
114
|
function D(e) {
|
|
@@ -120,13 +120,13 @@ function $() {
|
|
|
120
120
|
function Hr() {
|
|
121
121
|
return D("");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ge(e, t, r, n) {
|
|
124
124
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
125
125
|
}
|
|
126
126
|
function p(e, t, r) {
|
|
127
127
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Y(e, t, r) {
|
|
130
130
|
const n = t.toLowerCase();
|
|
131
131
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : p(e, t, r);
|
|
132
132
|
}
|
|
@@ -137,22 +137,22 @@ function G(e, t) {
|
|
|
137
137
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
138
138
|
t);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Xi(e, t, r, n) {
|
|
141
141
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
142
142
|
}
|
|
143
|
-
let
|
|
143
|
+
let ge;
|
|
144
144
|
function wr() {
|
|
145
|
-
if (
|
|
146
|
-
|
|
145
|
+
if (ge === void 0) {
|
|
146
|
+
ge = !1;
|
|
147
147
|
try {
|
|
148
148
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
149
149
|
} catch (e) {
|
|
150
|
-
|
|
150
|
+
ge = !0;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
return
|
|
153
|
+
return ge;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Zi(e, t) {
|
|
156
156
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
157
157
|
const n = A("iframe");
|
|
158
158
|
n.setAttribute(
|
|
@@ -161,7 +161,7 @@ function qi(e, t) {
|
|
|
161
161
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
162
162
|
const i = wr();
|
|
163
163
|
let s;
|
|
164
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
164
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = Ge(
|
|
165
165
|
window,
|
|
166
166
|
"message",
|
|
167
167
|
/** @param {MessageEvent} event */
|
|
@@ -169,12 +169,12 @@ function qi(e, t) {
|
|
|
169
169
|
a.source === n.contentWindow && t();
|
|
170
170
|
}
|
|
171
171
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
172
|
-
s =
|
|
173
|
-
}),
|
|
172
|
+
s = Ge(n.contentWindow, "resize", t), t();
|
|
173
|
+
}), S(e, n), () => {
|
|
174
174
|
(i || s && n.contentWindow) && s(), B(n);
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function qi(e, t, r) {
|
|
178
178
|
e.classList.toggle(t, !!r);
|
|
179
179
|
}
|
|
180
180
|
function Br(e) {
|
|
@@ -186,90 +186,90 @@ function Br(e) {
|
|
|
186
186
|
}
|
|
187
187
|
), t;
|
|
188
188
|
}
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
|
|
189
|
+
let he;
|
|
190
|
+
function le(e) {
|
|
191
|
+
he = e;
|
|
192
192
|
}
|
|
193
193
|
function Ir() {
|
|
194
|
-
if (!
|
|
194
|
+
if (!he)
|
|
195
195
|
throw new Error("Function called outside component initialization");
|
|
196
|
-
return
|
|
196
|
+
return he;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Nr(e) {
|
|
199
199
|
Ir().$$.on_mount.push(e);
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
const ht = [],
|
|
204
|
-
let
|
|
205
|
-
function
|
|
206
|
-
|
|
201
|
+
const Q = [], $e = [];
|
|
202
|
+
let K = [];
|
|
203
|
+
const ht = [], Mr = /* @__PURE__ */ Promise.resolve();
|
|
204
|
+
let je = !1;
|
|
205
|
+
function Or() {
|
|
206
|
+
je || (je = !0, Mr.then(w));
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
|
|
208
|
+
function Ve(e) {
|
|
209
|
+
K.push(e);
|
|
210
210
|
}
|
|
211
|
-
const
|
|
212
|
-
let
|
|
211
|
+
const Oe = /* @__PURE__ */ new Set();
|
|
212
|
+
let Z = 0;
|
|
213
213
|
function w() {
|
|
214
|
-
if (
|
|
214
|
+
if (Z !== 0)
|
|
215
215
|
return;
|
|
216
|
-
const e =
|
|
216
|
+
const e = he;
|
|
217
217
|
do {
|
|
218
218
|
try {
|
|
219
|
-
for (;
|
|
220
|
-
const t =
|
|
221
|
-
|
|
219
|
+
for (; Z < Q.length; ) {
|
|
220
|
+
const t = Q[Z];
|
|
221
|
+
Z++, le(t), Pr(t.$$);
|
|
222
222
|
}
|
|
223
223
|
} catch (t) {
|
|
224
|
-
throw
|
|
224
|
+
throw Q.length = 0, Z = 0, t;
|
|
225
225
|
}
|
|
226
|
-
for (
|
|
227
|
-
|
|
228
|
-
for (let t = 0; t <
|
|
229
|
-
const r =
|
|
230
|
-
|
|
226
|
+
for (le(null), Q.length = 0, Z = 0; $e.length; )
|
|
227
|
+
$e.pop()();
|
|
228
|
+
for (let t = 0; t < K.length; t += 1) {
|
|
229
|
+
const r = K[t];
|
|
230
|
+
Oe.has(r) || (Oe.add(r), r());
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
} while (
|
|
232
|
+
K.length = 0;
|
|
233
|
+
} while (Q.length);
|
|
234
234
|
for (; ht.length; )
|
|
235
235
|
ht.pop()();
|
|
236
|
-
|
|
236
|
+
je = !1, Oe.clear(), le(e);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function Pr(e) {
|
|
239
239
|
if (e.fragment !== null) {
|
|
240
|
-
e.update(),
|
|
240
|
+
e.update(), ie(e.before_update);
|
|
241
241
|
const t = e.dirty;
|
|
242
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
242
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
function Lr(e) {
|
|
246
246
|
const t = [], r = [];
|
|
247
|
-
|
|
247
|
+
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
|
248
248
|
}
|
|
249
249
|
const Rr = /* @__PURE__ */ new Set();
|
|
250
250
|
function Dr(e, t) {
|
|
251
251
|
e && e.i && (Rr.delete(e), e.i(t));
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Qi(e) {
|
|
254
254
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
255
255
|
}
|
|
256
256
|
function kr(e, t, r) {
|
|
257
257
|
const { fragment: n, after_update: i } = e.$$;
|
|
258
|
-
n && n.m(t, r),
|
|
259
|
-
const s = e.$$.on_mount.map(
|
|
260
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
261
|
-
}), i.forEach(
|
|
258
|
+
n && n.m(t, r), Ve(() => {
|
|
259
|
+
const s = e.$$.on_mount.map(Ot).filter(me);
|
|
260
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ie(s), e.$$.on_mount = [];
|
|
261
|
+
}), i.forEach(Ve);
|
|
262
262
|
}
|
|
263
263
|
function Ur(e, t) {
|
|
264
264
|
const r = e.$$;
|
|
265
|
-
r.fragment !== null && (Lr(r.after_update),
|
|
265
|
+
r.fragment !== null && (Lr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
266
266
|
}
|
|
267
267
|
function Fr(e, t) {
|
|
268
|
-
e.$$.dirty[0] === -1 && (
|
|
268
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
269
269
|
}
|
|
270
270
|
function Gr(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
271
|
-
const l =
|
|
272
|
-
|
|
271
|
+
const l = he;
|
|
272
|
+
le(e);
|
|
273
273
|
const o = e.$$ = {
|
|
274
274
|
fragment: null,
|
|
275
275
|
ctx: [],
|
|
@@ -296,7 +296,7 @@ function Gr(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
|
296
296
|
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...g) => {
|
|
297
297
|
const b = g.length ? g[0] : c;
|
|
298
298
|
return o.ctx && i(o.ctx[f], o.ctx[f] = b) && (!o.skip_bound && o.bound[f] && o.bound[f](b), h && Fr(e, f)), c;
|
|
299
|
-
}) : [], o.update(), h = !0,
|
|
299
|
+
}) : [], o.update(), h = !0, ie(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
300
300
|
if (t.hydrate) {
|
|
301
301
|
const f = Cr(t.target);
|
|
302
302
|
o.fragment && o.fragment.l(f), f.forEach(B);
|
|
@@ -304,7 +304,7 @@ function Gr(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
|
304
304
|
o.fragment && o.fragment.c();
|
|
305
305
|
t.intro && Dr(e.$$.fragment), kr(e, t.target, t.anchor), w();
|
|
306
306
|
}
|
|
307
|
-
|
|
307
|
+
le(l);
|
|
308
308
|
}
|
|
309
309
|
let Rt;
|
|
310
310
|
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
358
358
|
* @param {HTMLElement} [anchor]
|
|
359
359
|
*/
|
|
360
360
|
m: function(o, h) {
|
|
361
|
-
|
|
361
|
+
O(o, a, h);
|
|
362
362
|
},
|
|
363
363
|
d: function(o) {
|
|
364
364
|
o && B(a);
|
|
@@ -373,7 +373,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
373
373
|
s in n && (r[s] = [t(s)]);
|
|
374
374
|
for (const s of this.attributes) {
|
|
375
375
|
const a = this.$$g_p(s.name);
|
|
376
|
-
a in this.$$d || (this.$$d[a] =
|
|
376
|
+
a in this.$$d || (this.$$d[a] = ye(a, s.value, this.$$p_d, "toProp"));
|
|
377
377
|
}
|
|
378
378
|
for (const s in this.$$p_d)
|
|
379
379
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -390,7 +390,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
390
390
|
this.$$r = !0;
|
|
391
391
|
for (const s in this.$$p_d)
|
|
392
392
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
393
|
-
const a =
|
|
393
|
+
const a = ye(
|
|
394
394
|
s,
|
|
395
395
|
this.$$d[s],
|
|
396
396
|
this.$$p_d,
|
|
@@ -414,7 +414,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
414
414
|
// and setting attributes through setAttribute etc, this is helpful
|
|
415
415
|
attributeChangedCallback(t, r, n) {
|
|
416
416
|
var i;
|
|
417
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
417
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
418
418
|
}
|
|
419
419
|
disconnectedCallback() {
|
|
420
420
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -427,7 +427,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
427
427
|
) || t;
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
|
-
function
|
|
430
|
+
function ye(e, t, r, n) {
|
|
431
431
|
var s;
|
|
432
432
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
433
433
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -475,7 +475,7 @@ function $r(e, t, r, n, i, s) {
|
|
|
475
475
|
},
|
|
476
476
|
set(l) {
|
|
477
477
|
var o;
|
|
478
|
-
l =
|
|
478
|
+
l = ye(u, l, t), this.$$d[u] = l, (o = this.$$c) == null || o.$set({ [u]: l });
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
481
|
}), n.forEach((u) => {
|
|
@@ -518,7 +518,7 @@ class jr {
|
|
|
518
518
|
* @returns {() => void}
|
|
519
519
|
*/
|
|
520
520
|
$on(t, r) {
|
|
521
|
-
if (!
|
|
521
|
+
if (!me(r))
|
|
522
522
|
return U;
|
|
523
523
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
524
524
|
return n.push(r), () => {
|
|
@@ -531,29 +531,117 @@ class jr {
|
|
|
531
531
|
* @returns {void}
|
|
532
532
|
*/
|
|
533
533
|
$set(t) {
|
|
534
|
-
this.$$set && !
|
|
534
|
+
this.$$set && !xr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
const Vr = "4";
|
|
538
538
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vr);
|
|
539
|
-
|
|
539
|
+
/*! *****************************************************************************
|
|
540
|
+
Copyright (c) Microsoft Corporation.
|
|
541
|
+
|
|
542
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
543
|
+
purpose with or without fee is hereby granted.
|
|
544
|
+
|
|
545
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
546
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
547
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
548
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
549
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
550
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
551
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
552
|
+
***************************************************************************** */
|
|
553
|
+
var ze = function(e, t) {
|
|
554
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
555
|
+
r.__proto__ = n;
|
|
556
|
+
} || function(r, n) {
|
|
557
|
+
for (var i in n)
|
|
558
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
559
|
+
}, ze(e, t);
|
|
560
|
+
};
|
|
561
|
+
function Se(e, t) {
|
|
562
|
+
if (typeof t != "function" && t !== null)
|
|
563
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
564
|
+
ze(e, t);
|
|
565
|
+
function r() {
|
|
566
|
+
this.constructor = e;
|
|
567
|
+
}
|
|
568
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
569
|
+
}
|
|
570
|
+
var x = function() {
|
|
571
|
+
return x = Object.assign || function(t) {
|
|
572
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
573
|
+
r = arguments[n];
|
|
574
|
+
for (var s in r)
|
|
575
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
576
|
+
}
|
|
577
|
+
return t;
|
|
578
|
+
}, x.apply(this, arguments);
|
|
579
|
+
};
|
|
540
580
|
function zr(e, t) {
|
|
581
|
+
var r = {};
|
|
582
|
+
for (var n in e)
|
|
583
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
584
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
585
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
586
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
587
|
+
return r;
|
|
588
|
+
}
|
|
589
|
+
function Yi(e) {
|
|
590
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
591
|
+
if (r)
|
|
592
|
+
return r.call(e);
|
|
593
|
+
if (e && typeof e.length == "number")
|
|
594
|
+
return {
|
|
595
|
+
next: function() {
|
|
596
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
600
|
+
}
|
|
601
|
+
function Ki(e, t) {
|
|
602
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
603
|
+
if (!r)
|
|
604
|
+
return e;
|
|
605
|
+
var n = r.call(e), i, s = [], a;
|
|
606
|
+
try {
|
|
607
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
608
|
+
s.push(i.value);
|
|
609
|
+
} catch (u) {
|
|
610
|
+
a = { error: u };
|
|
611
|
+
} finally {
|
|
612
|
+
try {
|
|
613
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
614
|
+
} finally {
|
|
615
|
+
if (a)
|
|
616
|
+
throw a.error;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
return s;
|
|
620
|
+
}
|
|
621
|
+
function Pe(e, t, r) {
|
|
622
|
+
if (r || arguments.length === 2)
|
|
623
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
624
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
625
|
+
return e.concat(s || t);
|
|
626
|
+
}
|
|
627
|
+
const q = [];
|
|
628
|
+
function Jr(e, t) {
|
|
541
629
|
return {
|
|
542
|
-
subscribe:
|
|
630
|
+
subscribe: Te(e, t).subscribe
|
|
543
631
|
};
|
|
544
632
|
}
|
|
545
|
-
function
|
|
633
|
+
function Te(e, t = U) {
|
|
546
634
|
let r;
|
|
547
635
|
const n = /* @__PURE__ */ new Set();
|
|
548
636
|
function i(u) {
|
|
549
|
-
if (
|
|
550
|
-
const l = !
|
|
637
|
+
if (Pt(e, u) && (e = u, r)) {
|
|
638
|
+
const l = !q.length;
|
|
551
639
|
for (const o of n)
|
|
552
|
-
o[1](),
|
|
640
|
+
o[1](), q.push(o, e);
|
|
553
641
|
if (l) {
|
|
554
|
-
for (let o = 0; o <
|
|
555
|
-
|
|
556
|
-
|
|
642
|
+
for (let o = 0; o < q.length; o += 2)
|
|
643
|
+
q[o][0](q[o + 1]);
|
|
644
|
+
q.length = 0;
|
|
557
645
|
}
|
|
558
646
|
}
|
|
559
647
|
}
|
|
@@ -568,12 +656,12 @@ function Ae(e, t = U) {
|
|
|
568
656
|
}
|
|
569
657
|
return { set: i, update: s, subscribe: a };
|
|
570
658
|
}
|
|
571
|
-
function
|
|
659
|
+
function se(e, t, r) {
|
|
572
660
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
573
661
|
if (!i.every(Boolean))
|
|
574
662
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
575
663
|
const s = t.length < 2;
|
|
576
|
-
return
|
|
664
|
+
return Jr(r, (a, u) => {
|
|
577
665
|
let l = !1;
|
|
578
666
|
const o = [];
|
|
579
667
|
let h = 0, f = U;
|
|
@@ -582,7 +670,7 @@ function ae(e, t, r) {
|
|
|
582
670
|
return;
|
|
583
671
|
f();
|
|
584
672
|
const b = t(n ? o[0] : o, a, u);
|
|
585
|
-
s ? a(b) : f =
|
|
673
|
+
s ? a(b) : f = me(b) ? b : U;
|
|
586
674
|
}, g = i.map(
|
|
587
675
|
(b, y) => Lt(
|
|
588
676
|
b,
|
|
@@ -595,51 +683,51 @@ function ae(e, t, r) {
|
|
|
595
683
|
)
|
|
596
684
|
);
|
|
597
685
|
return l = !0, c(), function() {
|
|
598
|
-
|
|
686
|
+
ie(g), f(), l = !1;
|
|
599
687
|
};
|
|
600
688
|
});
|
|
601
689
|
}
|
|
602
|
-
function
|
|
690
|
+
function Wr(e) {
|
|
603
691
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
604
692
|
}
|
|
605
|
-
var
|
|
606
|
-
return
|
|
693
|
+
var Xr = function(t) {
|
|
694
|
+
return Zr(t) && !qr(t);
|
|
607
695
|
};
|
|
608
|
-
function
|
|
696
|
+
function Zr(e) {
|
|
609
697
|
return !!e && typeof e == "object";
|
|
610
698
|
}
|
|
611
|
-
function
|
|
699
|
+
function qr(e) {
|
|
612
700
|
var t = Object.prototype.toString.call(e);
|
|
613
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
614
|
-
}
|
|
615
|
-
var qr = typeof Symbol == "function" && Symbol.for, Qr = qr ? Symbol.for("react.element") : 60103;
|
|
616
|
-
function Yr(e) {
|
|
617
|
-
return e.$$typeof === Qr;
|
|
701
|
+
return t === "[object RegExp]" || t === "[object Date]" || Kr(e);
|
|
618
702
|
}
|
|
703
|
+
var Qr = typeof Symbol == "function" && Symbol.for, Yr = Qr ? Symbol.for("react.element") : 60103;
|
|
619
704
|
function Kr(e) {
|
|
705
|
+
return e.$$typeof === Yr;
|
|
706
|
+
}
|
|
707
|
+
function en(e) {
|
|
620
708
|
return Array.isArray(e) ? [] : {};
|
|
621
709
|
}
|
|
622
|
-
function
|
|
623
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
710
|
+
function ce(e, t) {
|
|
711
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(en(e), e, t) : e;
|
|
624
712
|
}
|
|
625
|
-
function
|
|
713
|
+
function tn(e, t, r) {
|
|
626
714
|
return e.concat(t).map(function(n) {
|
|
627
|
-
return
|
|
715
|
+
return ce(n, r);
|
|
628
716
|
});
|
|
629
717
|
}
|
|
630
|
-
function
|
|
718
|
+
function rn(e, t) {
|
|
631
719
|
if (!t.customMerge)
|
|
632
|
-
return
|
|
720
|
+
return ee;
|
|
633
721
|
var r = t.customMerge(e);
|
|
634
|
-
return typeof r == "function" ? r :
|
|
722
|
+
return typeof r == "function" ? r : ee;
|
|
635
723
|
}
|
|
636
|
-
function
|
|
724
|
+
function nn(e) {
|
|
637
725
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
638
726
|
return Object.propertyIsEnumerable.call(e, t);
|
|
639
727
|
}) : [];
|
|
640
728
|
}
|
|
641
729
|
function ct(e) {
|
|
642
|
-
return Object.keys(e).concat(
|
|
730
|
+
return Object.keys(e).concat(nn(e));
|
|
643
731
|
}
|
|
644
732
|
function Dt(e, t) {
|
|
645
733
|
try {
|
|
@@ -648,75 +736,33 @@ function Dt(e, t) {
|
|
|
648
736
|
return !1;
|
|
649
737
|
}
|
|
650
738
|
}
|
|
651
|
-
function
|
|
739
|
+
function sn(e, t) {
|
|
652
740
|
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
653
741
|
}
|
|
654
|
-
function
|
|
742
|
+
function an(e, t, r) {
|
|
655
743
|
var n = {};
|
|
656
744
|
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
657
|
-
n[i] =
|
|
745
|
+
n[i] = ce(e[i], r);
|
|
658
746
|
}), ct(t).forEach(function(i) {
|
|
659
|
-
|
|
747
|
+
sn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
660
748
|
}), n;
|
|
661
749
|
}
|
|
662
|
-
function
|
|
663
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
750
|
+
function ee(e, t, r) {
|
|
751
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified = ce;
|
|
664
752
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
665
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
753
|
+
return s ? n ? r.arrayMerge(e, t, r) : an(e, t, r) : ce(t, r);
|
|
666
754
|
}
|
|
667
|
-
|
|
755
|
+
ee.all = function(t, r) {
|
|
668
756
|
if (!Array.isArray(t))
|
|
669
757
|
throw new Error("first argument should be an array");
|
|
670
758
|
return t.reduce(function(n, i) {
|
|
671
|
-
return
|
|
759
|
+
return ee(n, i, r);
|
|
672
760
|
}, {});
|
|
673
761
|
};
|
|
674
|
-
var
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
r.__proto__ = n;
|
|
679
|
-
} || function(r, n) {
|
|
680
|
-
for (var i in n)
|
|
681
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
682
|
-
}, We(e, t);
|
|
683
|
-
};
|
|
684
|
-
function He(e, t) {
|
|
685
|
-
if (typeof t != "function" && t !== null)
|
|
686
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
687
|
-
We(e, t);
|
|
688
|
-
function r() {
|
|
689
|
-
this.constructor = e;
|
|
690
|
-
}
|
|
691
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
692
|
-
}
|
|
693
|
-
var j = function() {
|
|
694
|
-
return j = Object.assign || function(t) {
|
|
695
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
696
|
-
r = arguments[n];
|
|
697
|
-
for (var s in r)
|
|
698
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
699
|
-
}
|
|
700
|
-
return t;
|
|
701
|
-
}, j.apply(this, arguments);
|
|
702
|
-
};
|
|
703
|
-
function ln(e, t) {
|
|
704
|
-
var r = {};
|
|
705
|
-
for (var n in e)
|
|
706
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
707
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
708
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
709
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
710
|
-
return r;
|
|
711
|
-
}
|
|
712
|
-
function Re(e, t, r) {
|
|
713
|
-
if (r || arguments.length === 2)
|
|
714
|
-
for (var n = 0, i = t.length, s; n < i; n++)
|
|
715
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
716
|
-
return e.concat(s || Array.prototype.slice.call(t));
|
|
717
|
-
}
|
|
718
|
-
function De(e, t) {
|
|
719
|
-
var r = t && t.cache ? t.cache : gn, n = t && t.serializer ? t.serializer : dn, i = t && t.strategy ? t.strategy : fn;
|
|
762
|
+
var on = ee, un = on;
|
|
763
|
+
const ln = /* @__PURE__ */ Wr(un);
|
|
764
|
+
function Le(e, t) {
|
|
765
|
+
var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : dn, i = t && t.strategy ? t.strategy : cn;
|
|
720
766
|
return i(e, {
|
|
721
767
|
cache: r,
|
|
722
768
|
serializer: n
|
|
@@ -725,103 +771,95 @@ function De(e, t) {
|
|
|
725
771
|
function hn(e) {
|
|
726
772
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
727
773
|
}
|
|
728
|
-
function
|
|
774
|
+
function kt(e, t, r, n) {
|
|
729
775
|
var i = hn(n) ? n : r(n), s = t.get(i);
|
|
730
776
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
731
777
|
}
|
|
732
|
-
function
|
|
778
|
+
function Ut(e, t, r) {
|
|
733
779
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
734
780
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
735
781
|
}
|
|
736
|
-
function
|
|
782
|
+
function et(e, t, r, n, i) {
|
|
737
783
|
return r.bind(t, e, n, i);
|
|
738
784
|
}
|
|
785
|
+
function cn(e, t) {
|
|
786
|
+
var r = e.length === 1 ? kt : Ut;
|
|
787
|
+
return et(e, this, r, t.cache.create(), t.serializer);
|
|
788
|
+
}
|
|
739
789
|
function fn(e, t) {
|
|
740
|
-
|
|
741
|
-
return Ut(e, this, r, t.cache.create(), t.serializer);
|
|
790
|
+
return et(e, this, Ut, t.cache.create(), t.serializer);
|
|
742
791
|
}
|
|
743
792
|
function mn(e, t) {
|
|
744
|
-
return
|
|
793
|
+
return et(e, this, kt, t.cache.create(), t.serializer);
|
|
745
794
|
}
|
|
746
795
|
var dn = function() {
|
|
747
796
|
return JSON.stringify(arguments);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
}()
|
|
760
|
-
), gn = {
|
|
797
|
+
};
|
|
798
|
+
function tt() {
|
|
799
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
800
|
+
}
|
|
801
|
+
tt.prototype.get = function(e) {
|
|
802
|
+
return this.cache[e];
|
|
803
|
+
};
|
|
804
|
+
tt.prototype.set = function(e, t) {
|
|
805
|
+
this.cache[e] = t;
|
|
806
|
+
};
|
|
807
|
+
var bn = {
|
|
761
808
|
create: function() {
|
|
762
|
-
return new
|
|
809
|
+
return new tt();
|
|
763
810
|
}
|
|
764
|
-
},
|
|
765
|
-
variadic:
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
769
|
-
r = arguments[n];
|
|
770
|
-
for (var s in r)
|
|
771
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
772
|
-
}
|
|
773
|
-
return t;
|
|
774
|
-
}, xe.apply(this, arguments);
|
|
775
|
-
};
|
|
776
|
-
var _;
|
|
811
|
+
}, Re = {
|
|
812
|
+
variadic: fn,
|
|
813
|
+
monadic: mn
|
|
814
|
+
}, _;
|
|
777
815
|
(function(e) {
|
|
778
816
|
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";
|
|
779
817
|
})(_ || (_ = {}));
|
|
780
|
-
var
|
|
818
|
+
var T;
|
|
781
819
|
(function(e) {
|
|
782
820
|
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";
|
|
783
|
-
})(
|
|
784
|
-
var
|
|
821
|
+
})(T || (T = {}));
|
|
822
|
+
var te;
|
|
785
823
|
(function(e) {
|
|
786
824
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
787
|
-
})(
|
|
825
|
+
})(te || (te = {}));
|
|
788
826
|
function ft(e) {
|
|
789
|
-
return e.type ===
|
|
827
|
+
return e.type === T.literal;
|
|
790
828
|
}
|
|
791
|
-
function
|
|
792
|
-
return e.type ===
|
|
829
|
+
function gn(e) {
|
|
830
|
+
return e.type === T.argument;
|
|
793
831
|
}
|
|
794
832
|
function Ft(e) {
|
|
795
|
-
return e.type ===
|
|
833
|
+
return e.type === T.number;
|
|
796
834
|
}
|
|
797
835
|
function Gt(e) {
|
|
798
|
-
return e.type ===
|
|
836
|
+
return e.type === T.date;
|
|
799
837
|
}
|
|
800
838
|
function $t(e) {
|
|
801
|
-
return e.type ===
|
|
839
|
+
return e.type === T.time;
|
|
802
840
|
}
|
|
803
841
|
function jt(e) {
|
|
804
|
-
return e.type ===
|
|
842
|
+
return e.type === T.select;
|
|
805
843
|
}
|
|
806
844
|
function Vt(e) {
|
|
807
|
-
return e.type ===
|
|
845
|
+
return e.type === T.plural;
|
|
808
846
|
}
|
|
809
|
-
function
|
|
810
|
-
return e.type ===
|
|
847
|
+
function pn(e) {
|
|
848
|
+
return e.type === T.pound;
|
|
811
849
|
}
|
|
812
850
|
function zt(e) {
|
|
813
|
-
return e.type ===
|
|
851
|
+
return e.type === T.tag;
|
|
814
852
|
}
|
|
815
853
|
function Jt(e) {
|
|
816
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
854
|
+
return !!(e && typeof e == "object" && e.type === te.number);
|
|
817
855
|
}
|
|
818
|
-
function
|
|
819
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
856
|
+
function Je(e) {
|
|
857
|
+
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
820
858
|
}
|
|
821
|
-
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
822
|
-
function
|
|
859
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
|
|
860
|
+
function _n(e) {
|
|
823
861
|
var t = {};
|
|
824
|
-
return e.replace(
|
|
862
|
+
return e.replace(yn, function(r) {
|
|
825
863
|
var n = r.length;
|
|
826
864
|
switch (r[0]) {
|
|
827
865
|
case "G":
|
|
@@ -910,21 +948,11 @@ function vn(e) {
|
|
|
910
948
|
return "";
|
|
911
949
|
}), t;
|
|
912
950
|
}
|
|
913
|
-
var
|
|
914
|
-
return T = Object.assign || function(t) {
|
|
915
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
916
|
-
r = arguments[n];
|
|
917
|
-
for (var s in r)
|
|
918
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
919
|
-
}
|
|
920
|
-
return t;
|
|
921
|
-
}, T.apply(this, arguments);
|
|
922
|
-
};
|
|
923
|
-
var En = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
951
|
+
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
924
952
|
function xn(e) {
|
|
925
953
|
if (e.length === 0)
|
|
926
954
|
throw new Error("Number skeleton cannot be empty");
|
|
927
|
-
for (var t = e.split(
|
|
955
|
+
for (var t = e.split(vn).filter(function(c) {
|
|
928
956
|
return c.length > 0;
|
|
929
957
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
930
958
|
var s = i[n], a = s.split("/");
|
|
@@ -939,10 +967,10 @@ function xn(e) {
|
|
|
939
967
|
}
|
|
940
968
|
return r;
|
|
941
969
|
}
|
|
942
|
-
function
|
|
970
|
+
function En(e) {
|
|
943
971
|
return e.replace(/^(.*?)-/, "");
|
|
944
972
|
}
|
|
945
|
-
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
973
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
946
974
|
function dt(e) {
|
|
947
975
|
var t = {};
|
|
948
976
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
@@ -989,7 +1017,7 @@ function qt(e) {
|
|
|
989
1017
|
};
|
|
990
1018
|
}
|
|
991
1019
|
}
|
|
992
|
-
function
|
|
1020
|
+
function Tn(e) {
|
|
993
1021
|
var t;
|
|
994
1022
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
995
1023
|
notation: "engineering"
|
|
@@ -1007,7 +1035,7 @@ function bt(e) {
|
|
|
1007
1035
|
var t = {}, r = qt(e);
|
|
1008
1036
|
return r || t;
|
|
1009
1037
|
}
|
|
1010
|
-
function
|
|
1038
|
+
function An(e) {
|
|
1011
1039
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1012
1040
|
var i = n[r];
|
|
1013
1041
|
switch (i.stem) {
|
|
@@ -1031,7 +1059,7 @@ function Hn(e) {
|
|
|
1031
1059
|
continue;
|
|
1032
1060
|
case "measure-unit":
|
|
1033
1061
|
case "unit":
|
|
1034
|
-
t.style = "unit", t.unit =
|
|
1062
|
+
t.style = "unit", t.unit = En(i.options[0]);
|
|
1035
1063
|
continue;
|
|
1036
1064
|
case "compact-short":
|
|
1037
1065
|
case "K":
|
|
@@ -1042,13 +1070,13 @@ function Hn(e) {
|
|
|
1042
1070
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1043
1071
|
continue;
|
|
1044
1072
|
case "scientific":
|
|
1045
|
-
t =
|
|
1046
|
-
return
|
|
1073
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
|
|
1074
|
+
return x(x({}, l), bt(o));
|
|
1047
1075
|
}, {}));
|
|
1048
1076
|
continue;
|
|
1049
1077
|
case "engineering":
|
|
1050
|
-
t =
|
|
1051
|
-
return
|
|
1078
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
|
|
1079
|
+
return x(x({}, l), bt(o));
|
|
1052
1080
|
}, {}));
|
|
1053
1081
|
continue;
|
|
1054
1082
|
case "notation-simple":
|
|
@@ -1093,7 +1121,7 @@ function Hn(e) {
|
|
|
1093
1121
|
case "integer-width":
|
|
1094
1122
|
if (i.options.length > 1)
|
|
1095
1123
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1096
|
-
i.options[0].replace(
|
|
1124
|
+
i.options[0].replace(Sn, function(l, o, h, f, c, g) {
|
|
1097
1125
|
if (o)
|
|
1098
1126
|
t.minimumIntegerDigits = h.length;
|
|
1099
1127
|
else {
|
|
@@ -1117,21 +1145,21 @@ function Hn(e) {
|
|
|
1117
1145
|
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1118
1146
|
});
|
|
1119
1147
|
var s = i.options[0];
|
|
1120
|
-
s === "w" ? t =
|
|
1148
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), dt(s)));
|
|
1121
1149
|
continue;
|
|
1122
1150
|
}
|
|
1123
1151
|
if (Xt.test(i.stem)) {
|
|
1124
|
-
t =
|
|
1152
|
+
t = x(x({}, t), dt(i.stem));
|
|
1125
1153
|
continue;
|
|
1126
1154
|
}
|
|
1127
1155
|
var a = qt(i.stem);
|
|
1128
|
-
a && (t =
|
|
1129
|
-
var u =
|
|
1130
|
-
u && (t =
|
|
1156
|
+
a && (t = x(x({}, t), a));
|
|
1157
|
+
var u = Tn(i.stem);
|
|
1158
|
+
u && (t = x(x({}, t), u));
|
|
1131
1159
|
}
|
|
1132
1160
|
return t;
|
|
1133
1161
|
}
|
|
1134
|
-
var
|
|
1162
|
+
var pe = {
|
|
1135
1163
|
"001": [
|
|
1136
1164
|
"H",
|
|
1137
1165
|
"h"
|
|
@@ -2546,13 +2574,13 @@ var ye = {
|
|
|
2546
2574
|
"h"
|
|
2547
2575
|
]
|
|
2548
2576
|
};
|
|
2549
|
-
function
|
|
2577
|
+
function Hn(e, t) {
|
|
2550
2578
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2551
2579
|
var i = e.charAt(n);
|
|
2552
2580
|
if (i === "j") {
|
|
2553
2581
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2554
2582
|
s++, n++;
|
|
2555
|
-
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", o =
|
|
2583
|
+
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Cn(t);
|
|
2556
2584
|
for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
|
|
2557
2585
|
r += l;
|
|
2558
2586
|
for (; a-- > 0; )
|
|
@@ -2562,7 +2590,7 @@ function Cn(e, t) {
|
|
|
2562
2590
|
}
|
|
2563
2591
|
return r;
|
|
2564
2592
|
}
|
|
2565
|
-
function
|
|
2593
|
+
function Cn(e) {
|
|
2566
2594
|
var t = e.hourCycle;
|
|
2567
2595
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2568
2596
|
e.hourCycles && // @ts-ignore
|
|
@@ -2581,23 +2609,23 @@ function wn(e) {
|
|
|
2581
2609
|
}
|
|
2582
2610
|
var r = e.language, n;
|
|
2583
2611
|
r !== "root" && (n = e.maximize().region);
|
|
2584
|
-
var i =
|
|
2612
|
+
var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
|
|
2585
2613
|
return i[0];
|
|
2586
2614
|
}
|
|
2587
|
-
var
|
|
2615
|
+
var De, wn = new RegExp("^".concat(Wt.source, "*")), Bn = new RegExp("".concat(Wt.source, "*$"));
|
|
2588
2616
|
function v(e, t) {
|
|
2589
2617
|
return { start: e, end: t };
|
|
2590
2618
|
}
|
|
2591
|
-
var
|
|
2619
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Mn = !!Object.fromEntries, On = !!String.prototype.codePointAt, Pn = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Dn = Rn ? Number.isSafeInteger : function(e) {
|
|
2592
2620
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2593
|
-
},
|
|
2621
|
+
}, We = !0;
|
|
2594
2622
|
try {
|
|
2595
|
-
var
|
|
2596
|
-
|
|
2623
|
+
var kn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2624
|
+
We = ((De = kn.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
2597
2625
|
} catch (e) {
|
|
2598
|
-
|
|
2626
|
+
We = !1;
|
|
2599
2627
|
}
|
|
2600
|
-
var gt =
|
|
2628
|
+
var gt = In ? (
|
|
2601
2629
|
// Native
|
|
2602
2630
|
function(t, r, n) {
|
|
2603
2631
|
return t.startsWith(r, n);
|
|
@@ -2607,7 +2635,7 @@ var gt = On ? (
|
|
|
2607
2635
|
function(t, r, n) {
|
|
2608
2636
|
return t.slice(n, n + r.length) === r;
|
|
2609
2637
|
}
|
|
2610
|
-
),
|
|
2638
|
+
), Xe = Nn ? String.fromCodePoint : (
|
|
2611
2639
|
// IE11
|
|
2612
2640
|
function() {
|
|
2613
2641
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2621,7 +2649,7 @@ var gt = On ? (
|
|
|
2621
2649
|
}
|
|
2622
2650
|
), pt = (
|
|
2623
2651
|
// native
|
|
2624
|
-
|
|
2652
|
+
Mn ? Object.fromEntries : (
|
|
2625
2653
|
// Ponyfill
|
|
2626
2654
|
function(t) {
|
|
2627
2655
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2631,7 +2659,7 @@ var gt = On ? (
|
|
|
2631
2659
|
return r;
|
|
2632
2660
|
}
|
|
2633
2661
|
)
|
|
2634
|
-
), Qt =
|
|
2662
|
+
), Qt = On ? (
|
|
2635
2663
|
// Native
|
|
2636
2664
|
function(t, r) {
|
|
2637
2665
|
return t.codePointAt(r);
|
|
@@ -2645,7 +2673,7 @@ var gt = On ? (
|
|
|
2645
2673
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2646
2674
|
}
|
|
2647
2675
|
}
|
|
2648
|
-
),
|
|
2676
|
+
), Un = Pn ? (
|
|
2649
2677
|
// Native
|
|
2650
2678
|
function(t) {
|
|
2651
2679
|
return t.trimStart();
|
|
@@ -2653,9 +2681,9 @@ var gt = On ? (
|
|
|
2653
2681
|
) : (
|
|
2654
2682
|
// Ponyfill
|
|
2655
2683
|
function(t) {
|
|
2656
|
-
return t.replace(
|
|
2684
|
+
return t.replace(wn, "");
|
|
2657
2685
|
}
|
|
2658
|
-
),
|
|
2686
|
+
), Fn = Ln ? (
|
|
2659
2687
|
// Native
|
|
2660
2688
|
function(t) {
|
|
2661
2689
|
return t.trimEnd();
|
|
@@ -2663,32 +2691,32 @@ var gt = On ? (
|
|
|
2663
2691
|
) : (
|
|
2664
2692
|
// Ponyfill
|
|
2665
2693
|
function(t) {
|
|
2666
|
-
return t.replace(
|
|
2694
|
+
return t.replace(Bn, "");
|
|
2667
2695
|
}
|
|
2668
2696
|
);
|
|
2669
2697
|
function Yt(e, t) {
|
|
2670
2698
|
return new RegExp(e, t);
|
|
2671
2699
|
}
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
2700
|
+
var Ze;
|
|
2701
|
+
if (We) {
|
|
2674
2702
|
var yt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2675
|
-
|
|
2703
|
+
Ze = function(t, r) {
|
|
2676
2704
|
var n;
|
|
2677
2705
|
yt.lastIndex = r;
|
|
2678
2706
|
var i = yt.exec(t);
|
|
2679
2707
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2680
2708
|
};
|
|
2681
2709
|
} else
|
|
2682
|
-
|
|
2710
|
+
Ze = function(t, r) {
|
|
2683
2711
|
for (var n = []; ; ) {
|
|
2684
2712
|
var i = Qt(t, r);
|
|
2685
|
-
if (i === void 0 || Kt(i) ||
|
|
2713
|
+
if (i === void 0 || Kt(i) || Vn(i))
|
|
2686
2714
|
break;
|
|
2687
2715
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2688
2716
|
}
|
|
2689
|
-
return
|
|
2717
|
+
return Xe.apply(void 0, n);
|
|
2690
2718
|
};
|
|
2691
|
-
var
|
|
2719
|
+
var Gn = (
|
|
2692
2720
|
/** @class */
|
|
2693
2721
|
function() {
|
|
2694
2722
|
function e(t, r) {
|
|
@@ -2712,14 +2740,14 @@ var $n = (
|
|
|
2712
2740
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2713
2741
|
var u = this.clonePosition();
|
|
2714
2742
|
this.bump(), i.push({
|
|
2715
|
-
type:
|
|
2743
|
+
type: T.pound,
|
|
2716
2744
|
location: v(u, this.clonePosition())
|
|
2717
2745
|
});
|
|
2718
2746
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2719
2747
|
if (n)
|
|
2720
2748
|
break;
|
|
2721
2749
|
return this.error(_.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2722
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2750
|
+
} else if (s === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
2723
2751
|
var a = this.parseTag(t, r);
|
|
2724
2752
|
if (a.err)
|
|
2725
2753
|
return a;
|
|
@@ -2740,7 +2768,7 @@ var $n = (
|
|
|
2740
2768
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2741
2769
|
return {
|
|
2742
2770
|
val: {
|
|
2743
|
-
type:
|
|
2771
|
+
type: T.literal,
|
|
2744
2772
|
value: "<".concat(i, "/>"),
|
|
2745
2773
|
location: v(n, this.clonePosition())
|
|
2746
2774
|
},
|
|
@@ -2752,12 +2780,12 @@ var $n = (
|
|
|
2752
2780
|
return s;
|
|
2753
2781
|
var a = s.val, u = this.clonePosition();
|
|
2754
2782
|
if (this.bumpIf("</")) {
|
|
2755
|
-
if (this.isEOF() || !
|
|
2783
|
+
if (this.isEOF() || !qe(this.char()))
|
|
2756
2784
|
return this.error(_.INVALID_TAG, v(u, this.clonePosition()));
|
|
2757
2785
|
var l = this.clonePosition(), o = this.parseTagName();
|
|
2758
2786
|
return i !== o ? this.error(_.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2759
2787
|
val: {
|
|
2760
|
-
type:
|
|
2788
|
+
type: T.tag,
|
|
2761
2789
|
value: i,
|
|
2762
2790
|
children: a,
|
|
2763
2791
|
location: v(n, this.clonePosition())
|
|
@@ -2770,7 +2798,7 @@ var $n = (
|
|
|
2770
2798
|
return this.error(_.INVALID_TAG, v(n, this.clonePosition()));
|
|
2771
2799
|
}, e.prototype.parseTagName = function() {
|
|
2772
2800
|
var t = this.offset();
|
|
2773
|
-
for (this.bump(); !this.isEOF() &&
|
|
2801
|
+
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
2774
2802
|
this.bump();
|
|
2775
2803
|
return this.message.slice(t, this.offset());
|
|
2776
2804
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2794,12 +2822,12 @@ var $n = (
|
|
|
2794
2822
|
}
|
|
2795
2823
|
var l = v(n, this.clonePosition());
|
|
2796
2824
|
return {
|
|
2797
|
-
val: { type:
|
|
2825
|
+
val: { type: T.literal, value: i, location: l },
|
|
2798
2826
|
err: null
|
|
2799
2827
|
};
|
|
2800
2828
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2801
2829
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2802
|
-
|
|
2830
|
+
!$n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2803
2831
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2804
2832
|
if (this.isEOF() || this.char() !== 39)
|
|
2805
2833
|
return null;
|
|
@@ -2833,12 +2861,12 @@ var $n = (
|
|
|
2833
2861
|
r.push(n);
|
|
2834
2862
|
this.bump();
|
|
2835
2863
|
}
|
|
2836
|
-
return
|
|
2864
|
+
return Xe.apply(void 0, r);
|
|
2837
2865
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2838
2866
|
if (this.isEOF())
|
|
2839
2867
|
return null;
|
|
2840
2868
|
var n = this.char();
|
|
2841
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2869
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xe(n));
|
|
2842
2870
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2843
2871
|
var n = this.clonePosition();
|
|
2844
2872
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2854,7 +2882,7 @@ var $n = (
|
|
|
2854
2882
|
case 125:
|
|
2855
2883
|
return this.bump(), {
|
|
2856
2884
|
val: {
|
|
2857
|
-
type:
|
|
2885
|
+
type: T.argument,
|
|
2858
2886
|
// value does not include the opening and closing braces.
|
|
2859
2887
|
value: i,
|
|
2860
2888
|
location: v(n, this.clonePosition())
|
|
@@ -2867,7 +2895,7 @@ var $n = (
|
|
|
2867
2895
|
return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2868
2896
|
}
|
|
2869
2897
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2870
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2898
|
+
var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
|
|
2871
2899
|
this.bumpTo(i);
|
|
2872
2900
|
var s = this.clonePosition(), a = v(t, s);
|
|
2873
2901
|
return { value: n, location: a };
|
|
@@ -2886,7 +2914,7 @@ var $n = (
|
|
|
2886
2914
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2887
2915
|
if (f.err)
|
|
2888
2916
|
return f;
|
|
2889
|
-
var c =
|
|
2917
|
+
var c = Fn(f.val);
|
|
2890
2918
|
if (c.length === 0)
|
|
2891
2919
|
return this.error(_.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
2892
2920
|
var g = v(h, this.clonePosition());
|
|
@@ -2897,24 +2925,24 @@ var $n = (
|
|
|
2897
2925
|
return b;
|
|
2898
2926
|
var y = v(i, this.clonePosition());
|
|
2899
2927
|
if (o && gt(o == null ? void 0 : o.style, "::", 0)) {
|
|
2900
|
-
var d =
|
|
2928
|
+
var d = Un(o.style.slice(2));
|
|
2901
2929
|
if (u === "number") {
|
|
2902
2930
|
var f = this.parseNumberSkeletonFromString(d, o.styleLocation);
|
|
2903
2931
|
return f.err ? f : {
|
|
2904
|
-
val: { type:
|
|
2932
|
+
val: { type: T.number, value: n, location: y, style: f.val },
|
|
2905
2933
|
err: null
|
|
2906
2934
|
};
|
|
2907
2935
|
} else {
|
|
2908
2936
|
if (d.length === 0)
|
|
2909
2937
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, y);
|
|
2910
2938
|
var E = d;
|
|
2911
|
-
this.locale && (E =
|
|
2939
|
+
this.locale && (E = Hn(d, this.locale));
|
|
2912
2940
|
var c = {
|
|
2913
|
-
type:
|
|
2941
|
+
type: te.dateTime,
|
|
2914
2942
|
pattern: E,
|
|
2915
2943
|
location: o.styleLocation,
|
|
2916
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2917
|
-
}, L = u === "date" ?
|
|
2944
|
+
parsedOptions: this.shouldParseSkeletons ? _n(E) : {}
|
|
2945
|
+
}, L = u === "date" ? T.date : T.time;
|
|
2918
2946
|
return {
|
|
2919
2947
|
val: { type: L, value: n, location: y, style: c },
|
|
2920
2948
|
err: null
|
|
@@ -2923,7 +2951,7 @@ var $n = (
|
|
|
2923
2951
|
}
|
|
2924
2952
|
return {
|
|
2925
2953
|
val: {
|
|
2926
|
-
type: u === "number" ?
|
|
2954
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2927
2955
|
value: n,
|
|
2928
2956
|
location: y,
|
|
2929
2957
|
style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
|
|
@@ -2936,9 +2964,9 @@ var $n = (
|
|
|
2936
2964
|
case "select": {
|
|
2937
2965
|
var I = this.clonePosition();
|
|
2938
2966
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2939
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, v(I,
|
|
2967
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, v(I, x({}, I)));
|
|
2940
2968
|
this.bumpSpace();
|
|
2941
|
-
var H = this.parseIdentifierIfPossible(),
|
|
2969
|
+
var H = this.parseIdentifierIfPossible(), P = 0;
|
|
2942
2970
|
if (u !== "select" && H.value === "offset") {
|
|
2943
2971
|
if (!this.bumpIf(":"))
|
|
2944
2972
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
@@ -2946,29 +2974,29 @@ var $n = (
|
|
|
2946
2974
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2947
2975
|
if (f.err)
|
|
2948
2976
|
return f;
|
|
2949
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
2977
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), P = f.val;
|
|
2950
2978
|
}
|
|
2951
|
-
var
|
|
2952
|
-
if (
|
|
2953
|
-
return
|
|
2979
|
+
var N = this.tryParsePluralOrSelectOptions(t, u, r, H);
|
|
2980
|
+
if (N.err)
|
|
2981
|
+
return N;
|
|
2954
2982
|
var b = this.tryParseArgumentClose(i);
|
|
2955
2983
|
if (b.err)
|
|
2956
2984
|
return b;
|
|
2957
2985
|
var F = v(i, this.clonePosition());
|
|
2958
2986
|
return u === "select" ? {
|
|
2959
2987
|
val: {
|
|
2960
|
-
type:
|
|
2988
|
+
type: T.select,
|
|
2961
2989
|
value: n,
|
|
2962
|
-
options: pt(
|
|
2990
|
+
options: pt(N.val),
|
|
2963
2991
|
location: F
|
|
2964
2992
|
},
|
|
2965
2993
|
err: null
|
|
2966
2994
|
} : {
|
|
2967
2995
|
val: {
|
|
2968
|
-
type:
|
|
2996
|
+
type: T.plural,
|
|
2969
2997
|
value: n,
|
|
2970
|
-
options: pt(
|
|
2971
|
-
offset:
|
|
2998
|
+
options: pt(N.val),
|
|
2999
|
+
offset: P,
|
|
2972
3000
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2973
3001
|
location: F
|
|
2974
3002
|
},
|
|
@@ -3024,10 +3052,10 @@ var $n = (
|
|
|
3024
3052
|
}
|
|
3025
3053
|
return {
|
|
3026
3054
|
val: {
|
|
3027
|
-
type:
|
|
3055
|
+
type: te.number,
|
|
3028
3056
|
tokens: n,
|
|
3029
3057
|
location: r,
|
|
3030
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3058
|
+
parsedOptions: this.shouldParseSkeletons ? An(n) : {}
|
|
3031
3059
|
},
|
|
3032
3060
|
err: null
|
|
3033
3061
|
};
|
|
@@ -3075,7 +3103,7 @@ var $n = (
|
|
|
3075
3103
|
break;
|
|
3076
3104
|
}
|
|
3077
3105
|
var l = v(i, this.clonePosition());
|
|
3078
|
-
return s ? (a *= n,
|
|
3106
|
+
return s ? (a *= n, Dn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3079
3107
|
}, e.prototype.offset = function() {
|
|
3080
3108
|
return this.position.offset;
|
|
3081
3109
|
}, e.prototype.isEOF = function() {
|
|
@@ -3141,47 +3169,47 @@ var $n = (
|
|
|
3141
3169
|
}, e;
|
|
3142
3170
|
}()
|
|
3143
3171
|
);
|
|
3144
|
-
function
|
|
3172
|
+
function qe(e) {
|
|
3145
3173
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3146
3174
|
}
|
|
3147
|
-
function
|
|
3148
|
-
return
|
|
3175
|
+
function $n(e) {
|
|
3176
|
+
return qe(e) || e === 47;
|
|
3149
3177
|
}
|
|
3150
|
-
function
|
|
3178
|
+
function jn(e) {
|
|
3151
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;
|
|
3152
3180
|
}
|
|
3153
3181
|
function Kt(e) {
|
|
3154
3182
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3155
3183
|
}
|
|
3156
|
-
function
|
|
3184
|
+
function Vn(e) {
|
|
3157
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;
|
|
3158
3186
|
}
|
|
3159
|
-
function
|
|
3187
|
+
function Qe(e) {
|
|
3160
3188
|
e.forEach(function(t) {
|
|
3161
3189
|
if (delete t.location, jt(t) || Vt(t))
|
|
3162
3190
|
for (var r in t.options)
|
|
3163
|
-
delete t.options[r].location,
|
|
3191
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3164
3192
|
else
|
|
3165
|
-
Ft(t) && Jt(t.style) || (Gt(t) || $t(t)) &&
|
|
3193
|
+
Ft(t) && Jt(t.style) || (Gt(t) || $t(t)) && Je(t.style) ? delete t.style.location : zt(t) && Qe(t.children);
|
|
3166
3194
|
});
|
|
3167
3195
|
}
|
|
3168
|
-
function
|
|
3169
|
-
t === void 0 && (t = {}), t =
|
|
3170
|
-
var r = new
|
|
3196
|
+
function zn(e, t) {
|
|
3197
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3198
|
+
var r = new Gn(e, t).parse();
|
|
3171
3199
|
if (r.err) {
|
|
3172
3200
|
var n = SyntaxError(_[r.err.kind]);
|
|
3173
3201
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3174
3202
|
}
|
|
3175
|
-
return t != null && t.captureLocation ||
|
|
3203
|
+
return t != null && t.captureLocation || Qe(r.val), r.val;
|
|
3176
3204
|
}
|
|
3177
|
-
var
|
|
3205
|
+
var re;
|
|
3178
3206
|
(function(e) {
|
|
3179
3207
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3180
|
-
})(
|
|
3181
|
-
var
|
|
3208
|
+
})(re || (re = {}));
|
|
3209
|
+
var Ae = (
|
|
3182
3210
|
/** @class */
|
|
3183
3211
|
function(e) {
|
|
3184
|
-
|
|
3212
|
+
Se(t, e);
|
|
3185
3213
|
function t(r, n, i) {
|
|
3186
3214
|
var s = e.call(this, r) || this;
|
|
3187
3215
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3193,44 +3221,44 @@ var Ce = (
|
|
|
3193
3221
|
), _t = (
|
|
3194
3222
|
/** @class */
|
|
3195
3223
|
function(e) {
|
|
3196
|
-
|
|
3224
|
+
Se(t, e);
|
|
3197
3225
|
function t(r, n, i, s) {
|
|
3198
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3226
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, s) || this;
|
|
3199
3227
|
}
|
|
3200
3228
|
return t;
|
|
3201
|
-
}(
|
|
3202
|
-
),
|
|
3229
|
+
}(Ae)
|
|
3230
|
+
), Jn = (
|
|
3203
3231
|
/** @class */
|
|
3204
3232
|
function(e) {
|
|
3205
|
-
|
|
3233
|
+
Se(t, e);
|
|
3206
3234
|
function t(r, n, i) {
|
|
3207
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3235
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
|
|
3208
3236
|
}
|
|
3209
3237
|
return t;
|
|
3210
|
-
}(
|
|
3211
|
-
),
|
|
3238
|
+
}(Ae)
|
|
3239
|
+
), Wn = (
|
|
3212
3240
|
/** @class */
|
|
3213
3241
|
function(e) {
|
|
3214
|
-
|
|
3242
|
+
Se(t, e);
|
|
3215
3243
|
function t(r, n) {
|
|
3216
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3244
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
|
|
3217
3245
|
}
|
|
3218
3246
|
return t;
|
|
3219
|
-
}(
|
|
3247
|
+
}(Ae)
|
|
3220
3248
|
), R;
|
|
3221
3249
|
(function(e) {
|
|
3222
3250
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3223
3251
|
})(R || (R = {}));
|
|
3224
|
-
function
|
|
3252
|
+
function Xn(e) {
|
|
3225
3253
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3226
3254
|
var n = t[t.length - 1];
|
|
3227
3255
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
3228
3256
|
}, []);
|
|
3229
3257
|
}
|
|
3230
|
-
function
|
|
3258
|
+
function Zn(e) {
|
|
3231
3259
|
return typeof e == "function";
|
|
3232
3260
|
}
|
|
3233
|
-
function
|
|
3261
|
+
function _e(e, t, r, n, i, s, a) {
|
|
3234
3262
|
if (e.length === 1 && ft(e[0]))
|
|
3235
3263
|
return [
|
|
3236
3264
|
{
|
|
@@ -3247,7 +3275,7 @@ function ve(e, t, r, n, i, s, a) {
|
|
|
3247
3275
|
});
|
|
3248
3276
|
continue;
|
|
3249
3277
|
}
|
|
3250
|
-
if (
|
|
3278
|
+
if (pn(h)) {
|
|
3251
3279
|
typeof s == "number" && u.push({
|
|
3252
3280
|
type: R.literal,
|
|
3253
3281
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3256,9 +3284,9 @@ function ve(e, t, r, n, i, s, a) {
|
|
|
3256
3284
|
}
|
|
3257
3285
|
var f = h.value;
|
|
3258
3286
|
if (!(i && f in i))
|
|
3259
|
-
throw new
|
|
3287
|
+
throw new Wn(f, a);
|
|
3260
3288
|
var c = i[f];
|
|
3261
|
-
if (
|
|
3289
|
+
if (gn(h)) {
|
|
3262
3290
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
|
3263
3291
|
type: typeof c == "string" ? R.literal : R.object,
|
|
3264
3292
|
value: c
|
|
@@ -3266,7 +3294,7 @@ function ve(e, t, r, n, i, s, a) {
|
|
|
3266
3294
|
continue;
|
|
3267
3295
|
}
|
|
3268
3296
|
if (Gt(h)) {
|
|
3269
|
-
var g = typeof h.style == "string" ? n.date[h.style] :
|
|
3297
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Je(h.style) ? h.style.parsedOptions : void 0;
|
|
3270
3298
|
u.push({
|
|
3271
3299
|
type: R.literal,
|
|
3272
3300
|
value: r.getDateTimeFormat(t, g).format(c)
|
|
@@ -3274,7 +3302,7 @@ function ve(e, t, r, n, i, s, a) {
|
|
|
3274
3302
|
continue;
|
|
3275
3303
|
}
|
|
3276
3304
|
if ($t(h)) {
|
|
3277
|
-
var g = typeof h.style == "string" ? n.time[h.style] :
|
|
3305
|
+
var g = typeof h.style == "string" ? n.time[h.style] : Je(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3278
3306
|
u.push({
|
|
3279
3307
|
type: R.literal,
|
|
3280
3308
|
value: r.getDateTimeFormat(t, g).format(c)
|
|
@@ -3291,15 +3319,15 @@ function ve(e, t, r, n, i, s, a) {
|
|
|
3291
3319
|
}
|
|
3292
3320
|
if (zt(h)) {
|
|
3293
3321
|
var b = h.children, y = h.value, d = i[y];
|
|
3294
|
-
if (!
|
|
3295
|
-
throw new
|
|
3296
|
-
var E =
|
|
3297
|
-
return
|
|
3322
|
+
if (!Zn(d))
|
|
3323
|
+
throw new Jn(y, "function", a);
|
|
3324
|
+
var E = _e(b, t, r, n, i, s), L = d(E.map(function(P) {
|
|
3325
|
+
return P.value;
|
|
3298
3326
|
}));
|
|
3299
|
-
Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(
|
|
3327
|
+
Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(P) {
|
|
3300
3328
|
return {
|
|
3301
|
-
type: typeof
|
|
3302
|
-
value:
|
|
3329
|
+
type: typeof P == "string" ? R.literal : R.object,
|
|
3330
|
+
value: P
|
|
3303
3331
|
};
|
|
3304
3332
|
}));
|
|
3305
3333
|
}
|
|
@@ -3307,38 +3335,38 @@ function ve(e, t, r, n, i, s, a) {
|
|
|
3307
3335
|
var I = h.options[c] || h.options.other;
|
|
3308
3336
|
if (!I)
|
|
3309
3337
|
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3310
|
-
u.push.apply(u,
|
|
3338
|
+
u.push.apply(u, _e(I.value, t, r, n, i));
|
|
3311
3339
|
continue;
|
|
3312
3340
|
}
|
|
3313
3341
|
if (Vt(h)) {
|
|
3314
3342
|
var I = h.options["=".concat(c)];
|
|
3315
3343
|
if (!I) {
|
|
3316
3344
|
if (!Intl.PluralRules)
|
|
3317
|
-
throw new
|
|
3345
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3318
3346
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3319
|
-
`,
|
|
3347
|
+
`, re.MISSING_INTL_API, a);
|
|
3320
3348
|
var H = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3321
3349
|
I = h.options[H] || h.options.other;
|
|
3322
3350
|
}
|
|
3323
3351
|
if (!I)
|
|
3324
3352
|
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3325
|
-
u.push.apply(u,
|
|
3353
|
+
u.push.apply(u, _e(I.value, t, r, n, i, c - (h.offset || 0)));
|
|
3326
3354
|
continue;
|
|
3327
3355
|
}
|
|
3328
3356
|
}
|
|
3329
|
-
return
|
|
3357
|
+
return Xn(u);
|
|
3330
3358
|
}
|
|
3331
|
-
function
|
|
3332
|
-
return t ?
|
|
3333
|
-
return r[n] =
|
|
3359
|
+
function qn(e, t) {
|
|
3360
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3361
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3334
3362
|
}, {})) : e;
|
|
3335
3363
|
}
|
|
3336
|
-
function
|
|
3364
|
+
function Qn(e, t) {
|
|
3337
3365
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3338
|
-
return r[n] =
|
|
3339
|
-
},
|
|
3366
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3367
|
+
}, x({}, e)) : e;
|
|
3340
3368
|
}
|
|
3341
|
-
function
|
|
3369
|
+
function ke(e) {
|
|
3342
3370
|
return {
|
|
3343
3371
|
create: function() {
|
|
3344
3372
|
return {
|
|
@@ -3352,39 +3380,39 @@ function Fe(e) {
|
|
|
3352
3380
|
}
|
|
3353
3381
|
};
|
|
3354
3382
|
}
|
|
3355
|
-
function
|
|
3383
|
+
function Yn(e) {
|
|
3356
3384
|
return e === void 0 && (e = {
|
|
3357
3385
|
number: {},
|
|
3358
3386
|
dateTime: {},
|
|
3359
3387
|
pluralRules: {}
|
|
3360
3388
|
}), {
|
|
3361
|
-
getNumberFormat:
|
|
3389
|
+
getNumberFormat: Le(function() {
|
|
3362
3390
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3363
3391
|
r[n] = arguments[n];
|
|
3364
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3392
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3365
3393
|
}, {
|
|
3366
|
-
cache:
|
|
3367
|
-
strategy:
|
|
3394
|
+
cache: ke(e.number),
|
|
3395
|
+
strategy: Re.variadic
|
|
3368
3396
|
}),
|
|
3369
|
-
getDateTimeFormat:
|
|
3397
|
+
getDateTimeFormat: Le(function() {
|
|
3370
3398
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3371
3399
|
r[n] = arguments[n];
|
|
3372
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3400
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3373
3401
|
}, {
|
|
3374
|
-
cache:
|
|
3375
|
-
strategy:
|
|
3402
|
+
cache: ke(e.dateTime),
|
|
3403
|
+
strategy: Re.variadic
|
|
3376
3404
|
}),
|
|
3377
|
-
getPluralRules:
|
|
3405
|
+
getPluralRules: Le(function() {
|
|
3378
3406
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3379
3407
|
r[n] = arguments[n];
|
|
3380
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3408
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3381
3409
|
}, {
|
|
3382
|
-
cache:
|
|
3383
|
-
strategy:
|
|
3410
|
+
cache: ke(e.pluralRules),
|
|
3411
|
+
strategy: Re.variadic
|
|
3384
3412
|
})
|
|
3385
3413
|
};
|
|
3386
3414
|
}
|
|
3387
|
-
var
|
|
3415
|
+
var Kn = (
|
|
3388
3416
|
/** @class */
|
|
3389
3417
|
function() {
|
|
3390
3418
|
function e(t, r, n, i) {
|
|
@@ -3403,7 +3431,7 @@ var ei = (
|
|
|
3403
3431
|
}, []);
|
|
3404
3432
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3405
3433
|
}, this.formatToParts = function(l) {
|
|
3406
|
-
return
|
|
3434
|
+
return _e(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3407
3435
|
}, this.resolvedOptions = function() {
|
|
3408
3436
|
var l;
|
|
3409
3437
|
return {
|
|
@@ -3416,13 +3444,13 @@ var ei = (
|
|
|
3416
3444
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3417
3445
|
var a = i || {};
|
|
3418
3446
|
a.formatters;
|
|
3419
|
-
var u =
|
|
3420
|
-
this.ast = e.__parse(t,
|
|
3447
|
+
var u = zr(a, ["formatters"]);
|
|
3448
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3421
3449
|
} else
|
|
3422
3450
|
this.ast = t;
|
|
3423
3451
|
if (!Array.isArray(this.ast))
|
|
3424
3452
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3425
|
-
this.formats =
|
|
3453
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3426
3454
|
}
|
|
3427
3455
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3428
3456
|
get: function() {
|
|
@@ -3435,7 +3463,7 @@ var ei = (
|
|
|
3435
3463
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3436
3464
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3437
3465
|
}
|
|
3438
|
-
}, e.__parse =
|
|
3466
|
+
}, e.__parse = zn, e.formats = {
|
|
3439
3467
|
number: {
|
|
3440
3468
|
integer: {
|
|
3441
3469
|
maximumFractionDigits: 0
|
|
@@ -3496,7 +3524,7 @@ var ei = (
|
|
|
3496
3524
|
}, e;
|
|
3497
3525
|
}()
|
|
3498
3526
|
);
|
|
3499
|
-
function
|
|
3527
|
+
function ei(e, t) {
|
|
3500
3528
|
if (t == null)
|
|
3501
3529
|
return;
|
|
3502
3530
|
if (t in e)
|
|
@@ -3517,36 +3545,36 @@ function ti(e, t) {
|
|
|
3517
3545
|
n = void 0;
|
|
3518
3546
|
return n;
|
|
3519
3547
|
}
|
|
3520
|
-
const
|
|
3548
|
+
const V = {}, ti = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), er = (e, t) => {
|
|
3521
3549
|
if (t == null)
|
|
3522
3550
|
return;
|
|
3523
|
-
if (t in
|
|
3524
|
-
return
|
|
3525
|
-
const r =
|
|
3551
|
+
if (t in V && e in V[t])
|
|
3552
|
+
return V[t][e];
|
|
3553
|
+
const r = He(t);
|
|
3526
3554
|
for (let n = 0; n < r.length; n++) {
|
|
3527
|
-
const i = r[n], s =
|
|
3555
|
+
const i = r[n], s = ni(i, e);
|
|
3528
3556
|
if (s)
|
|
3529
|
-
return
|
|
3557
|
+
return ti(e, t, s);
|
|
3530
3558
|
}
|
|
3531
3559
|
};
|
|
3532
3560
|
let rt;
|
|
3533
|
-
const
|
|
3534
|
-
function
|
|
3561
|
+
const ae = Te({});
|
|
3562
|
+
function ri(e) {
|
|
3535
3563
|
return rt[e] || null;
|
|
3536
3564
|
}
|
|
3537
3565
|
function tr(e) {
|
|
3538
3566
|
return e in rt;
|
|
3539
3567
|
}
|
|
3540
|
-
function
|
|
3568
|
+
function ni(e, t) {
|
|
3541
3569
|
if (!tr(e))
|
|
3542
3570
|
return null;
|
|
3543
|
-
const r =
|
|
3544
|
-
return
|
|
3571
|
+
const r = ri(e);
|
|
3572
|
+
return ei(r, t);
|
|
3545
3573
|
}
|
|
3546
|
-
function
|
|
3574
|
+
function ii(e) {
|
|
3547
3575
|
if (e == null)
|
|
3548
3576
|
return;
|
|
3549
|
-
const t =
|
|
3577
|
+
const t = He(e);
|
|
3550
3578
|
for (let r = 0; r < t.length; r++) {
|
|
3551
3579
|
const n = t[r];
|
|
3552
3580
|
if (tr(n))
|
|
@@ -3554,55 +3582,55 @@ function si(e) {
|
|
|
3554
3582
|
}
|
|
3555
3583
|
}
|
|
3556
3584
|
function rr(e, ...t) {
|
|
3557
|
-
delete
|
|
3585
|
+
delete V[e], ae.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
|
|
3558
3586
|
}
|
|
3559
|
-
|
|
3560
|
-
[
|
|
3587
|
+
se(
|
|
3588
|
+
[ae],
|
|
3561
3589
|
([e]) => Object.keys(e)
|
|
3562
3590
|
);
|
|
3563
|
-
|
|
3564
|
-
const
|
|
3565
|
-
function
|
|
3566
|
-
|
|
3591
|
+
ae.subscribe((e) => rt = e);
|
|
3592
|
+
const ve = {};
|
|
3593
|
+
function si(e, t) {
|
|
3594
|
+
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
|
3567
3595
|
}
|
|
3568
3596
|
function nr(e) {
|
|
3569
|
-
return
|
|
3597
|
+
return ve[e];
|
|
3570
3598
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3599
|
+
function ai(e) {
|
|
3600
|
+
return He(e).map((t) => {
|
|
3573
3601
|
const r = nr(t);
|
|
3574
3602
|
return [t, r ? [...r] : []];
|
|
3575
3603
|
}).filter(([, t]) => t.length > 0);
|
|
3576
3604
|
}
|
|
3577
|
-
function
|
|
3578
|
-
return e == null ? !1 :
|
|
3605
|
+
function Ye(e) {
|
|
3606
|
+
return e == null ? !1 : He(e).some(
|
|
3579
3607
|
(t) => {
|
|
3580
3608
|
var r;
|
|
3581
3609
|
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3582
3610
|
}
|
|
3583
3611
|
);
|
|
3584
3612
|
}
|
|
3585
|
-
function
|
|
3613
|
+
function oi(e, t) {
|
|
3586
3614
|
return Promise.all(
|
|
3587
|
-
t.map((n) => (
|
|
3615
|
+
t.map((n) => (si(e, n), n().then((i) => i.default || i)))
|
|
3588
3616
|
).then((n) => rr(e, ...n));
|
|
3589
3617
|
}
|
|
3590
|
-
const
|
|
3618
|
+
const ue = {};
|
|
3591
3619
|
function ir(e) {
|
|
3592
|
-
if (!
|
|
3593
|
-
return e in
|
|
3594
|
-
const t =
|
|
3595
|
-
return
|
|
3620
|
+
if (!Ye(e))
|
|
3621
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
3622
|
+
const t = ai(e);
|
|
3623
|
+
return ue[e] = Promise.all(
|
|
3596
3624
|
t.map(
|
|
3597
|
-
([r, n]) =>
|
|
3625
|
+
([r, n]) => oi(r, n)
|
|
3598
3626
|
)
|
|
3599
3627
|
).then(() => {
|
|
3600
|
-
if (
|
|
3628
|
+
if (Ye(e))
|
|
3601
3629
|
return ir(e);
|
|
3602
|
-
delete
|
|
3603
|
-
}),
|
|
3630
|
+
delete ue[e];
|
|
3631
|
+
}), ue[e];
|
|
3604
3632
|
}
|
|
3605
|
-
const
|
|
3633
|
+
const ui = {
|
|
3606
3634
|
number: {
|
|
3607
3635
|
scientific: { notation: "scientific" },
|
|
3608
3636
|
engineering: { notation: "engineering" },
|
|
@@ -3631,141 +3659,141 @@ const li = {
|
|
|
3631
3659
|
timeZoneName: "short"
|
|
3632
3660
|
}
|
|
3633
3661
|
}
|
|
3634
|
-
},
|
|
3662
|
+
}, li = {
|
|
3635
3663
|
fallbackLocale: null,
|
|
3636
3664
|
loadingDelay: 200,
|
|
3637
|
-
formats:
|
|
3665
|
+
formats: ui,
|
|
3638
3666
|
warnOnMissingMessages: !0,
|
|
3639
3667
|
handleMissingMessage: void 0,
|
|
3640
3668
|
ignoreTag: !0
|
|
3641
|
-
},
|
|
3642
|
-
function
|
|
3643
|
-
return
|
|
3669
|
+
}, hi = li;
|
|
3670
|
+
function ne() {
|
|
3671
|
+
return hi;
|
|
3644
3672
|
}
|
|
3645
|
-
const
|
|
3646
|
-
var
|
|
3673
|
+
const Ue = Te(!1);
|
|
3674
|
+
var ci = Object.defineProperty, fi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gi = (e, t) => {
|
|
3647
3675
|
for (var r in t || (t = {}))
|
|
3648
|
-
|
|
3676
|
+
di.call(t, r) && xt(e, r, t[r]);
|
|
3649
3677
|
if (vt)
|
|
3650
3678
|
for (var r of vt(t))
|
|
3651
|
-
|
|
3679
|
+
bi.call(t, r) && xt(e, r, t[r]);
|
|
3652
3680
|
return e;
|
|
3653
|
-
},
|
|
3654
|
-
let
|
|
3655
|
-
const
|
|
3656
|
-
function
|
|
3681
|
+
}, pi = (e, t) => fi(e, mi(t));
|
|
3682
|
+
let Ke;
|
|
3683
|
+
const xe = Te(null);
|
|
3684
|
+
function Et(e) {
|
|
3657
3685
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3658
3686
|
}
|
|
3659
|
-
function
|
|
3660
|
-
const r =
|
|
3661
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3687
|
+
function He(e, t = ne().fallbackLocale) {
|
|
3688
|
+
const r = Et(e);
|
|
3689
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
3662
3690
|
}
|
|
3663
|
-
function
|
|
3664
|
-
return
|
|
3691
|
+
function W() {
|
|
3692
|
+
return Ke != null ? Ke : void 0;
|
|
3665
3693
|
}
|
|
3666
|
-
|
|
3667
|
-
|
|
3694
|
+
xe.subscribe((e) => {
|
|
3695
|
+
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3668
3696
|
});
|
|
3669
|
-
const
|
|
3670
|
-
if (e &&
|
|
3671
|
-
const { loadingDelay: t } =
|
|
3697
|
+
const yi = (e) => {
|
|
3698
|
+
if (e && ii(e) && Ye(e)) {
|
|
3699
|
+
const { loadingDelay: t } = ne();
|
|
3672
3700
|
let r;
|
|
3673
|
-
return typeof window != "undefined" &&
|
|
3674
|
-
() =>
|
|
3701
|
+
return typeof window != "undefined" && W() != null && t ? r = window.setTimeout(
|
|
3702
|
+
() => Ue.set(!0),
|
|
3675
3703
|
t
|
|
3676
|
-
) :
|
|
3677
|
-
|
|
3704
|
+
) : Ue.set(!0), ir(e).then(() => {
|
|
3705
|
+
xe.set(e);
|
|
3678
3706
|
}).finally(() => {
|
|
3679
|
-
clearTimeout(r),
|
|
3707
|
+
clearTimeout(r), Ue.set(!1);
|
|
3680
3708
|
});
|
|
3681
3709
|
}
|
|
3682
|
-
return
|
|
3683
|
-
},
|
|
3684
|
-
set:
|
|
3685
|
-
}),
|
|
3710
|
+
return xe.set(e);
|
|
3711
|
+
}, z = pi(gi({}, xe), {
|
|
3712
|
+
set: yi
|
|
3713
|
+
}), Ce = (e) => {
|
|
3686
3714
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3687
3715
|
return (n) => {
|
|
3688
3716
|
const i = JSON.stringify(n);
|
|
3689
3717
|
return i in t ? t[i] : t[i] = e(n);
|
|
3690
3718
|
};
|
|
3691
3719
|
};
|
|
3692
|
-
var
|
|
3720
|
+
var _i = Object.defineProperty, Ee = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
3693
3721
|
for (var r in t || (t = {}))
|
|
3694
3722
|
sr.call(t, r) && St(e, r, t[r]);
|
|
3695
|
-
if (
|
|
3696
|
-
for (var r of
|
|
3723
|
+
if (Ee)
|
|
3724
|
+
for (var r of Ee(t))
|
|
3697
3725
|
ar.call(t, r) && St(e, r, t[r]);
|
|
3698
3726
|
return e;
|
|
3699
|
-
},
|
|
3727
|
+
}, oe = (e, t) => {
|
|
3700
3728
|
var r = {};
|
|
3701
3729
|
for (var n in e)
|
|
3702
3730
|
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3703
|
-
if (e != null &&
|
|
3704
|
-
for (var n of
|
|
3731
|
+
if (e != null && Ee)
|
|
3732
|
+
for (var n of Ee(e))
|
|
3705
3733
|
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
3706
3734
|
return r;
|
|
3707
3735
|
};
|
|
3708
|
-
const
|
|
3709
|
-
const { formats: r } =
|
|
3736
|
+
const fe = (e, t) => {
|
|
3737
|
+
const { formats: r } = ne();
|
|
3710
3738
|
if (e in r && t in r[e])
|
|
3711
3739
|
return r[e][t];
|
|
3712
3740
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3713
|
-
},
|
|
3741
|
+
}, vi = Ce(
|
|
3714
3742
|
(e) => {
|
|
3715
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3743
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3716
3744
|
if (r == null)
|
|
3717
3745
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3718
|
-
return n && (i =
|
|
3746
|
+
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
|
3719
3747
|
}
|
|
3720
|
-
), xi =
|
|
3748
|
+
), xi = Ce(
|
|
3721
3749
|
(e) => {
|
|
3722
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3750
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3723
3751
|
if (r == null)
|
|
3724
3752
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3725
|
-
return n ? i =
|
|
3753
|
+
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3726
3754
|
}
|
|
3727
|
-
),
|
|
3755
|
+
), Ei = Ce(
|
|
3728
3756
|
(e) => {
|
|
3729
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3757
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3730
3758
|
if (r == null)
|
|
3731
3759
|
throw new Error(
|
|
3732
3760
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3733
3761
|
);
|
|
3734
|
-
return n ? i =
|
|
3762
|
+
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3735
3763
|
}
|
|
3736
|
-
),
|
|
3764
|
+
), Si = (e = {}) => {
|
|
3737
3765
|
var t = e, {
|
|
3738
|
-
locale: r =
|
|
3739
|
-
} = t, n =
|
|
3766
|
+
locale: r = W()
|
|
3767
|
+
} = t, n = oe(t, [
|
|
3740
3768
|
"locale"
|
|
3741
3769
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3770
|
+
return vi(nt({ locale: r }, n));
|
|
3771
|
+
}, Ti = (e = {}) => {
|
|
3744
3772
|
var t = e, {
|
|
3745
|
-
locale: r =
|
|
3746
|
-
} = t, n =
|
|
3773
|
+
locale: r = W()
|
|
3774
|
+
} = t, n = oe(t, [
|
|
3747
3775
|
"locale"
|
|
3748
3776
|
]);
|
|
3749
3777
|
return xi(nt({ locale: r }, n));
|
|
3750
|
-
},
|
|
3778
|
+
}, Ai = (e = {}) => {
|
|
3751
3779
|
var t = e, {
|
|
3752
|
-
locale: r =
|
|
3753
|
-
} = t, n =
|
|
3780
|
+
locale: r = W()
|
|
3781
|
+
} = t, n = oe(t, [
|
|
3754
3782
|
"locale"
|
|
3755
3783
|
]);
|
|
3756
|
-
return
|
|
3757
|
-
},
|
|
3784
|
+
return Ei(nt({ locale: r }, n));
|
|
3785
|
+
}, Hi = Ce(
|
|
3758
3786
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3759
|
-
(e, t =
|
|
3760
|
-
ignoreTag:
|
|
3787
|
+
(e, t = W()) => new Kn(e, t, ne().formats, {
|
|
3788
|
+
ignoreTag: ne().ignoreTag
|
|
3761
3789
|
})
|
|
3762
|
-
),
|
|
3790
|
+
), Ci = (e, t = {}) => {
|
|
3763
3791
|
var r, n, i, s;
|
|
3764
3792
|
let a = t;
|
|
3765
3793
|
typeof e == "object" && (a = e, e = a.id);
|
|
3766
3794
|
const {
|
|
3767
3795
|
values: u,
|
|
3768
|
-
locale: l =
|
|
3796
|
+
locale: l = W(),
|
|
3769
3797
|
default: o
|
|
3770
3798
|
} = a;
|
|
3771
3799
|
if (l == null)
|
|
@@ -3774,7 +3802,7 @@ const me = (e, t) => {
|
|
|
3774
3802
|
);
|
|
3775
3803
|
let h = er(e, l);
|
|
3776
3804
|
if (!h)
|
|
3777
|
-
h = (s = (i = (n = (r =
|
|
3805
|
+
h = (s = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3778
3806
|
else if (typeof h != "string")
|
|
3779
3807
|
return console.warn(
|
|
3780
3808
|
`[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.`
|
|
@@ -3783,7 +3811,7 @@ const me = (e, t) => {
|
|
|
3783
3811
|
return h;
|
|
3784
3812
|
let f = h;
|
|
3785
3813
|
try {
|
|
3786
|
-
f =
|
|
3814
|
+
f = Hi(h, l).format(u);
|
|
3787
3815
|
} catch (c) {
|
|
3788
3816
|
c instanceof Error && console.warn(
|
|
3789
3817
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3791,18 +3819,18 @@ const me = (e, t) => {
|
|
|
3791
3819
|
);
|
|
3792
3820
|
}
|
|
3793
3821
|
return f;
|
|
3794
|
-
},
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
function
|
|
3822
|
+
}, wi = (e, t) => Ai(t).format(e), Bi = (e, t) => Ti(t).format(e), Ii = (e, t) => Si(t).format(e), Ni = (e, t = W()) => er(e, t), Mi = se([z, ae], () => Ci);
|
|
3823
|
+
se([z], () => wi);
|
|
3824
|
+
se([z], () => Bi);
|
|
3825
|
+
se([z], () => Ii);
|
|
3826
|
+
se([z, ae], () => Ni);
|
|
3827
|
+
function Oi(e, t) {
|
|
3800
3828
|
if (e) {
|
|
3801
3829
|
const r = document.createElement("style");
|
|
3802
3830
|
r.innerHTML = t, e.appendChild(r);
|
|
3803
3831
|
}
|
|
3804
3832
|
}
|
|
3805
|
-
function
|
|
3833
|
+
function Pi(e, t) {
|
|
3806
3834
|
const r = new URL(t);
|
|
3807
3835
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3808
3836
|
const i = document.createElement("style");
|
|
@@ -3811,7 +3839,7 @@ function Li(e, t) {
|
|
|
3811
3839
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3812
3840
|
});
|
|
3813
3841
|
}
|
|
3814
|
-
function
|
|
3842
|
+
function Li(e, t, r) {
|
|
3815
3843
|
if (window.emMessageBus) {
|
|
3816
3844
|
const n = document.createElement("style");
|
|
3817
3845
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3819,16 +3847,16 @@ function Ri(e, t, r) {
|
|
|
3819
3847
|
});
|
|
3820
3848
|
}
|
|
3821
3849
|
}
|
|
3822
|
-
function
|
|
3823
|
-
|
|
3824
|
-
r == null && (
|
|
3850
|
+
function Ri({ withLocale: e, translations: t }) {
|
|
3851
|
+
z.subscribe((r) => {
|
|
3852
|
+
r == null && (ae.set(t), z.set(e));
|
|
3825
3853
|
});
|
|
3826
3854
|
}
|
|
3827
3855
|
function Tt(e, t) {
|
|
3828
3856
|
rr(e, t);
|
|
3829
3857
|
}
|
|
3830
|
-
function
|
|
3831
|
-
|
|
3858
|
+
function Di(e) {
|
|
3859
|
+
z.set(e);
|
|
3832
3860
|
}
|
|
3833
3861
|
const At = {
|
|
3834
3862
|
en: {
|
|
@@ -4162,7 +4190,7 @@ const At = {
|
|
|
4162
4190
|
December: "December"
|
|
4163
4191
|
}
|
|
4164
4192
|
};
|
|
4165
|
-
function
|
|
4193
|
+
function ki(e) {
|
|
4166
4194
|
Sr(e, "svelte-1bncdcr", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
|
|
4167
4195
|
}
|
|
4168
4196
|
function Ht(e) {
|
|
@@ -4172,7 +4200,7 @@ function Ht(e) {
|
|
|
4172
4200
|
t = A("div"), t.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', r = $(), n = A("div"), n.innerHTML = '<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>', p(t, "class", "Skeleton CardImg"), p(n, "class", "Details"), p(n, "part", "Details");
|
|
4173
4201
|
},
|
|
4174
4202
|
m(i, s) {
|
|
4175
|
-
|
|
4203
|
+
O(i, t, s), O(i, r, s), O(i, n, s);
|
|
4176
4204
|
},
|
|
4177
4205
|
d(i) {
|
|
4178
4206
|
i && (B(t), B(r), B(n));
|
|
@@ -4190,15 +4218,15 @@ function Ct(e) {
|
|
|
4190
4218
|
function f(d, E) {
|
|
4191
4219
|
return (
|
|
4192
4220
|
/*thumbnail*/
|
|
4193
|
-
d[3] ?
|
|
4221
|
+
d[3] ? Fi : Ui
|
|
4194
4222
|
);
|
|
4195
4223
|
}
|
|
4196
4224
|
let c = f(e), g = c(e), b = (
|
|
4197
4225
|
/*startdate*/
|
|
4198
|
-
e[2] &&
|
|
4226
|
+
e[2] && Nt(e)
|
|
4199
4227
|
), y = (
|
|
4200
4228
|
/*isLoggedIn*/
|
|
4201
|
-
e[11] &&
|
|
4229
|
+
e[11] && Mt(e)
|
|
4202
4230
|
);
|
|
4203
4231
|
return {
|
|
4204
4232
|
c() {
|
|
@@ -4208,7 +4236,7 @@ function Ct(e) {
|
|
|
4208
4236
|
), u = $(), b && b.c(), l = $(), y && y.c(), p(s, "class", "Title"), p(s, "part", "Title"), p(i, "class", "Details"), p(i, "part", "Details");
|
|
4209
4237
|
},
|
|
4210
4238
|
m(d, E) {
|
|
4211
|
-
o && o.m(d, E),
|
|
4239
|
+
o && o.m(d, E), O(d, t, E), h && h.m(d, E), O(d, r, E), g.m(d, E), O(d, n, E), O(d, i, E), S(i, s), S(s, a), S(i, u), b && b.m(i, null), S(i, l), y && y.m(i, null);
|
|
4212
4240
|
},
|
|
4213
4241
|
p(d, E) {
|
|
4214
4242
|
/*status*/
|
|
@@ -4219,8 +4247,8 @@ function Ct(e) {
|
|
|
4219
4247
|
/*title*/
|
|
4220
4248
|
d[1]
|
|
4221
4249
|
), /*startdate*/
|
|
4222
|
-
d[2] ? b ? b.p(d, E) : (b =
|
|
4223
|
-
d[11] ? y ? y.p(d, E) : (y =
|
|
4250
|
+
d[2] ? b ? b.p(d, E) : (b = Nt(d), b.c(), b.m(i, l)) : b && (b.d(1), b = null), /*isLoggedIn*/
|
|
4251
|
+
d[11] ? y ? y.p(d, E) : (y = Mt(d), y.c(), y.m(i, null)) : y && (y.d(1), y = null);
|
|
4224
4252
|
},
|
|
4225
4253
|
d(d) {
|
|
4226
4254
|
d && (B(t), B(r), B(n), B(i)), o && o.d(d), h && h.d(d), g.d(d), b && b.d(), y && y.d();
|
|
@@ -4239,7 +4267,7 @@ function wt(e) {
|
|
|
4239
4267
|
e[14]);
|
|
4240
4268
|
},
|
|
4241
4269
|
m(u, l) {
|
|
4242
|
-
|
|
4270
|
+
O(u, t, l), S(t, r), s || (a = de(
|
|
4243
4271
|
/*matchStatus*/
|
|
4244
4272
|
e[17].call(null, t)
|
|
4245
4273
|
), s = !0);
|
|
@@ -4271,7 +4299,7 @@ function Bt(e) {
|
|
|
4271
4299
|
r && r.c(), t = Hr();
|
|
4272
4300
|
},
|
|
4273
4301
|
m(n, i) {
|
|
4274
|
-
r && r.m(n, i),
|
|
4302
|
+
r && r.m(n, i), O(n, t, i);
|
|
4275
4303
|
},
|
|
4276
4304
|
p(n, i) {
|
|
4277
4305
|
/*userenrolled*/
|
|
@@ -4292,7 +4320,7 @@ function It(e) {
|
|
|
4292
4320
|
t = A("div"), n = D(r), p(t, "class", "Enrolled"), p(t, "part", "Enrolled");
|
|
4293
4321
|
},
|
|
4294
4322
|
m(i, s) {
|
|
4295
|
-
|
|
4323
|
+
O(i, t, s), S(t, n);
|
|
4296
4324
|
},
|
|
4297
4325
|
p(i, s) {
|
|
4298
4326
|
s[0] & /*$_*/
|
|
@@ -4304,18 +4332,18 @@ function It(e) {
|
|
|
4304
4332
|
}
|
|
4305
4333
|
};
|
|
4306
4334
|
}
|
|
4307
|
-
function
|
|
4335
|
+
function Ui(e) {
|
|
4308
4336
|
let t, r, n, i, s, a, u;
|
|
4309
4337
|
return {
|
|
4310
4338
|
c() {
|
|
4311
|
-
t = A("div"), r = A("ui-image"),
|
|
4339
|
+
t = A("div"), r = A("ui-image"), Fe(r.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || Y(r, "src", n), Y(r, "alt", "icon"), p(t, "class", i = "CardImg " + /*status*/
|
|
4312
4340
|
(e[0] == "Closing" || /*status*/
|
|
4313
4341
|
e[0] == "Closed" ? "CardImgFinished" : "")), p(t, "part", s = "CardImg " + /*status*/
|
|
4314
4342
|
(e[0] == "Closing" || /*status*/
|
|
4315
4343
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4316
4344
|
},
|
|
4317
4345
|
m(l, o) {
|
|
4318
|
-
|
|
4346
|
+
O(l, t, o), S(t, r), a || (u = de(
|
|
4319
4347
|
/*matchStatus*/
|
|
4320
4348
|
e[17].call(null, t)
|
|
4321
4349
|
), a = !0);
|
|
@@ -4334,27 +4362,27 @@ function Fi(e) {
|
|
|
4334
4362
|
}
|
|
4335
4363
|
};
|
|
4336
4364
|
}
|
|
4337
|
-
function
|
|
4365
|
+
function Fi(e) {
|
|
4338
4366
|
let t, r, n, i, s, a, u;
|
|
4339
4367
|
return {
|
|
4340
4368
|
c() {
|
|
4341
|
-
t = A("div"), r = A("ui-image"),
|
|
4342
|
-
e[3]) ||
|
|
4369
|
+
t = A("div"), r = A("ui-image"), Y(r, "class", "UIImage"), Fe(r.src, n = /*thumbnail*/
|
|
4370
|
+
e[3]) || Y(r, "src", n), Y(r, "alt", "icon"), p(t, "class", i = "CardImg " + /*status*/
|
|
4343
4371
|
(e[0] == "Closing" || /*status*/
|
|
4344
4372
|
e[0] == "Closed" ? "CardImgFinished" : "")), p(t, "part", s = "CardImg " + /*status*/
|
|
4345
4373
|
(e[0] == "Closing" || /*status*/
|
|
4346
4374
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4347
4375
|
},
|
|
4348
4376
|
m(l, o) {
|
|
4349
|
-
|
|
4377
|
+
O(l, t, o), S(t, r), a || (u = de(
|
|
4350
4378
|
/*matchStatus*/
|
|
4351
4379
|
e[17].call(null, t)
|
|
4352
4380
|
), a = !0);
|
|
4353
4381
|
},
|
|
4354
4382
|
p(l, o) {
|
|
4355
4383
|
o[0] & /*thumbnail*/
|
|
4356
|
-
8 &&
|
|
4357
|
-
l[3]) &&
|
|
4384
|
+
8 && !Fe(r.src, n = /*thumbnail*/
|
|
4385
|
+
l[3]) && Y(r, "src", n), o[0] & /*status*/
|
|
4358
4386
|
1 && i !== (i = "CardImg " + /*status*/
|
|
4359
4387
|
(l[0] == "Closing" || /*status*/
|
|
4360
4388
|
l[0] == "Closed" ? "CardImgFinished" : "")) && p(t, "class", i), o[0] & /*status*/
|
|
@@ -4367,7 +4395,7 @@ function Gi(e) {
|
|
|
4367
4395
|
}
|
|
4368
4396
|
};
|
|
4369
4397
|
}
|
|
4370
|
-
function
|
|
4398
|
+
function Nt(e) {
|
|
4371
4399
|
let t, r, n, i, s;
|
|
4372
4400
|
return {
|
|
4373
4401
|
c() {
|
|
@@ -4377,7 +4405,7 @@ function Ot(e) {
|
|
|
4377
4405
|
), p(t, "class", "Date"), p(t, "part", "Date");
|
|
4378
4406
|
},
|
|
4379
4407
|
m(a, u) {
|
|
4380
|
-
|
|
4408
|
+
O(a, t, u), S(t, r), i || (s = de(n = /*formatDate*/
|
|
4381
4409
|
e[16].call(
|
|
4382
4410
|
null,
|
|
4383
4411
|
t,
|
|
@@ -4391,7 +4419,7 @@ function Ot(e) {
|
|
|
4391
4419
|
r,
|
|
4392
4420
|
/*shownDate*/
|
|
4393
4421
|
a[10]
|
|
4394
|
-
), n &&
|
|
4422
|
+
), n && me(n.update) && u[0] & /*startdate*/
|
|
4395
4423
|
4 && n.update.call(
|
|
4396
4424
|
null,
|
|
4397
4425
|
/*startdate*/
|
|
@@ -4403,7 +4431,7 @@ function Ot(e) {
|
|
|
4403
4431
|
}
|
|
4404
4432
|
};
|
|
4405
4433
|
}
|
|
4406
|
-
function
|
|
4434
|
+
function Mt(e) {
|
|
4407
4435
|
let t, r, n = (
|
|
4408
4436
|
/*$_*/
|
|
4409
4437
|
e[15]("scoreCriteria") + ""
|
|
@@ -4413,10 +4441,10 @@ function Nt(e) {
|
|
|
4413
4441
|
), h, f, c, g, b, y, d, E = (
|
|
4414
4442
|
/*$_*/
|
|
4415
4443
|
e[15]("seegames") + ""
|
|
4416
|
-
), L, I, H,
|
|
4444
|
+
), L, I, H, P = (
|
|
4417
4445
|
/*$_*/
|
|
4418
4446
|
e[15]("here") + ""
|
|
4419
|
-
),
|
|
4447
|
+
), N, F, j, J;
|
|
4420
4448
|
return {
|
|
4421
4449
|
c() {
|
|
4422
4450
|
t = A("div"), r = A("p"), i = D(n), s = D(`:
|
|
@@ -4428,7 +4456,7 @@ function Nt(e) {
|
|
|
4428
4456
|
(`), h = D(o), f = $(), c = D(
|
|
4429
4457
|
/*minbetcount*/
|
|
4430
4458
|
e[5]
|
|
4431
|
-
), g = D(")"), b = $(), y = A("div"), d = A("p"), L = D(E), I = $(), H = A("a"),
|
|
4459
|
+
), g = D(")"), b = $(), y = A("div"), d = A("p"), L = D(E), I = $(), H = A("a"), N = D(P), p(a, "part", "ScoreCriteriaSpan"), p(r, "part", "ScoreCriteriaP"), p(t, "class", "ScoreCriteria"), p(t, "part", "ScoreCriteria"), p(H, "part", "GamesAnchor"), p(
|
|
4432
4460
|
H,
|
|
4433
4461
|
"href",
|
|
4434
4462
|
/*gameurl*/
|
|
@@ -4436,55 +4464,55 @@ function Nt(e) {
|
|
|
4436
4464
|
), p(H, "target", F = /*keepbrowsercontext*/
|
|
4437
4465
|
e[8] === "true" ? "_self" : "_blank"), p(d, "part", "GamesP"), p(y, "class", "Games"), p(y, "part", "Games");
|
|
4438
4466
|
},
|
|
4439
|
-
m(C,
|
|
4440
|
-
|
|
4441
|
-
|
|
4467
|
+
m(C, M) {
|
|
4468
|
+
O(C, t, M), S(t, r), S(r, i), S(r, s), S(r, a), S(a, u), S(r, l), S(r, h), S(r, f), S(r, c), S(r, g), O(C, b, M), O(C, y, M), S(y, d), S(d, L), S(d, I), S(d, H), S(H, N), j || (J = [
|
|
4469
|
+
de(
|
|
4442
4470
|
/*matchScoreCriteria*/
|
|
4443
4471
|
e[18].call(null, a)
|
|
4444
4472
|
),
|
|
4445
|
-
|
|
4473
|
+
Ge(
|
|
4446
4474
|
H,
|
|
4447
4475
|
"click",
|
|
4448
4476
|
/*tournamentGamesClicked*/
|
|
4449
4477
|
e[19]
|
|
4450
4478
|
)
|
|
4451
|
-
],
|
|
4479
|
+
], j = !0);
|
|
4452
4480
|
},
|
|
4453
|
-
p(C,
|
|
4454
|
-
|
|
4481
|
+
p(C, M) {
|
|
4482
|
+
M[0] & /*$_*/
|
|
4455
4483
|
32768 && n !== (n = /*$_*/
|
|
4456
|
-
C[15]("scoreCriteria") + "") && G(i, n),
|
|
4484
|
+
C[15]("scoreCriteria") + "") && G(i, n), M[0] & /*showScoreCriteria*/
|
|
4457
4485
|
8192 && G(
|
|
4458
4486
|
u,
|
|
4459
4487
|
/*showScoreCriteria*/
|
|
4460
4488
|
C[13]
|
|
4461
|
-
),
|
|
4489
|
+
), M[0] & /*$_*/
|
|
4462
4490
|
32768 && o !== (o = /*$_*/
|
|
4463
|
-
C[15]("minbet") + "") && G(h, o),
|
|
4491
|
+
C[15]("minbet") + "") && G(h, o), M[0] & /*minbetcount*/
|
|
4464
4492
|
32 && G(
|
|
4465
4493
|
c,
|
|
4466
4494
|
/*minbetcount*/
|
|
4467
4495
|
C[5]
|
|
4468
|
-
),
|
|
4496
|
+
), M[0] & /*$_*/
|
|
4469
4497
|
32768 && E !== (E = /*$_*/
|
|
4470
|
-
C[15]("seegames") + "") && G(L, E),
|
|
4471
|
-
32768 &&
|
|
4472
|
-
C[15]("here") + "") && G(
|
|
4498
|
+
C[15]("seegames") + "") && G(L, E), M[0] & /*$_*/
|
|
4499
|
+
32768 && P !== (P = /*$_*/
|
|
4500
|
+
C[15]("here") + "") && G(N, P), M[0] & /*gameurl*/
|
|
4473
4501
|
128 && p(
|
|
4474
4502
|
H,
|
|
4475
4503
|
"href",
|
|
4476
4504
|
/*gameurl*/
|
|
4477
4505
|
C[7]
|
|
4478
|
-
),
|
|
4506
|
+
), M[0] & /*keepbrowsercontext*/
|
|
4479
4507
|
256 && F !== (F = /*keepbrowsercontext*/
|
|
4480
4508
|
C[8] === "true" ? "_self" : "_blank") && p(H, "target", F);
|
|
4481
4509
|
},
|
|
4482
4510
|
d(C) {
|
|
4483
|
-
C && (B(t), B(b), B(y)),
|
|
4511
|
+
C && (B(t), B(b), B(y)), j = !1, ie(J);
|
|
4484
4512
|
}
|
|
4485
4513
|
};
|
|
4486
4514
|
}
|
|
4487
|
-
function
|
|
4515
|
+
function Gi(e) {
|
|
4488
4516
|
let t, r, n, i = (
|
|
4489
4517
|
/*title*/
|
|
4490
4518
|
e[1] === "undefined" && Ht()
|
|
@@ -4498,7 +4526,7 @@ function $i(e) {
|
|
|
4498
4526
|
e[1] === "undefined" ? "Loading" : ""}`), p(t, "part", "Thumbnail");
|
|
4499
4527
|
},
|
|
4500
4528
|
m(a, u) {
|
|
4501
|
-
|
|
4529
|
+
O(a, t, u), i && i.m(t, null), S(t, r), s && s.m(t, null), e[29](t);
|
|
4502
4530
|
},
|
|
4503
4531
|
p(a, u) {
|
|
4504
4532
|
/*title*/
|
|
@@ -4514,16 +4542,16 @@ function $i(e) {
|
|
|
4514
4542
|
}
|
|
4515
4543
|
};
|
|
4516
4544
|
}
|
|
4517
|
-
function
|
|
4545
|
+
function $i(e, t, r) {
|
|
4518
4546
|
let n;
|
|
4519
|
-
|
|
4520
|
-
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: u = "" } = t, { status: l = "" } = t, { tourid: o = "" } = t, { thumbnail: h = "" } = t, { userenrolled: f = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: g = "" } = t, { showenrolled: b = "false" } = t, { gameurl: y = "" } = t, { lang: d = "en" } = t, { keepbrowsercontext: E = "false" } = t, { clientstyling: L = "" } = t, { clientstylingurl: I = "" } = t, { translationurl: H = "" } = t, { mbsource:
|
|
4521
|
-
|
|
4547
|
+
Er(e, Mi, (m) => r(15, n = m));
|
|
4548
|
+
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: u = "" } = t, { status: l = "" } = t, { tourid: o = "" } = t, { thumbnail: h = "" } = t, { userenrolled: f = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: g = "" } = t, { showenrolled: b = "false" } = t, { gameurl: y = "" } = t, { lang: d = "en" } = t, { keepbrowsercontext: E = "false" } = t, { clientstyling: L = "" } = t, { clientstylingurl: I = "" } = t, { translationurl: H = "" } = t, { mbsource: P } = t, N, F = "", j = !1, J = "", C = "", M = "";
|
|
4549
|
+
Ri({ withLocale: "en", translations: {} });
|
|
4522
4550
|
const ur = () => {
|
|
4523
4551
|
fetch(H).then((m) => m.json()).then((m) => {
|
|
4524
|
-
Object.keys(m).forEach((
|
|
4525
|
-
Tt(
|
|
4526
|
-
}), u &&
|
|
4552
|
+
Object.keys(m).forEach((X) => {
|
|
4553
|
+
Tt(X, m[X]);
|
|
4554
|
+
}), u && Ne();
|
|
4527
4555
|
}).catch((m) => {
|
|
4528
4556
|
console.log(m);
|
|
4529
4557
|
});
|
|
@@ -4532,49 +4560,49 @@ function ji(e, t, r) {
|
|
|
4532
4560
|
Tt(m, At[m]);
|
|
4533
4561
|
});
|
|
4534
4562
|
const it = (m) => {
|
|
4535
|
-
m.data && (m.data && m.data.type == "SessionID" && r(11,
|
|
4536
|
-
},
|
|
4563
|
+
m.data && (m.data && m.data.type == "SessionID" && r(11, j = !0), m.data.type == `TournamentStatus_${o}` && r(0, l = m.data.status));
|
|
4564
|
+
}, we = () => {
|
|
4537
4565
|
const m = { month: "long" };
|
|
4538
|
-
let
|
|
4566
|
+
let X = new Date(u), fr = new Intl.DateTimeFormat("en", m).format(X), mr = X.getDate(), dr = X.toLocaleString("en-GB", {
|
|
4539
4567
|
hour: "numeric",
|
|
4540
4568
|
minute: "numeric",
|
|
4541
4569
|
hour12: !1
|
|
4542
4570
|
});
|
|
4543
4571
|
const br = () => n(l === "Running" ? "startedAt" : "startingAt");
|
|
4544
4572
|
r(10, F = `${mr} ` + n(`${fr}`) + ", " + br() + ` ${dr}`);
|
|
4545
|
-
},
|
|
4546
|
-
l == "Unstarted" && (r(12,
|
|
4547
|
-
},
|
|
4573
|
+
}, Be = () => {
|
|
4574
|
+
l == "Unstarted" && (r(12, J = n("scheduled")), r(14, M = "StatusUnstarted")), l == "Running" && (r(12, J = n("ongoing")), r(14, M = "StatusRunning")), (l == "Closed" || l == "Closing") && r(12, J = n("finished")), l == "Closed" && r(14, M = "StatusClosed"), l == "Closing" && r(14, M = "StatusClosing");
|
|
4575
|
+
}, Ie = () => {
|
|
4548
4576
|
c == "BetCount" && r(13, C = n("betCount")), c == "MaxWinStakeRatio" && r(13, C = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(13, C = n("winStakeRatio")), c == "Stake" && r(13, C = n("stake"));
|
|
4549
4577
|
}, lr = () => {
|
|
4550
4578
|
window.postMessage({ type: "tournamentGamesClicked", tourid: o }, window.location.href);
|
|
4551
4579
|
}, hr = () => {
|
|
4552
|
-
i.length > 0 && i != "false" ? r(11,
|
|
4580
|
+
i.length > 0 && i != "false" ? r(11, j = !0) : r(11, j = !1);
|
|
4553
4581
|
};
|
|
4554
|
-
|
|
4582
|
+
Nr(() => (setTimeout(() => Ne(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", it, !1), () => {
|
|
4555
4583
|
window.removeEventListener("message", it);
|
|
4556
4584
|
}));
|
|
4557
|
-
const
|
|
4558
|
-
|
|
4585
|
+
const Ne = () => {
|
|
4586
|
+
Di(d), Ie(), Be(), u && we();
|
|
4559
4587
|
};
|
|
4560
4588
|
function cr(m) {
|
|
4561
|
-
|
|
4562
|
-
|
|
4589
|
+
$e[m ? "unshift" : "push"](() => {
|
|
4590
|
+
N = m, r(9, N);
|
|
4563
4591
|
});
|
|
4564
4592
|
}
|
|
4565
4593
|
return e.$$set = (m) => {
|
|
4566
|
-
"session" in m && r(20, i = m.session), "userid" in m && r(21, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, u = m.startdate), "status" in m && r(0, l = m.status), "tourid" in m && r(22, o = m.tourid), "thumbnail" in m && r(3, h = m.thumbnail), "userenrolled" in m && r(4, f = m.userenrolled), "scorecriteria" in m && r(23, c = m.scorecriteria), "minbetcount" in m && r(5, g = m.minbetcount), "showenrolled" in m && r(6, b = m.showenrolled), "gameurl" in m && r(7, y = m.gameurl), "lang" in m && r(24, d = m.lang), "keepbrowsercontext" in m && r(8, E = m.keepbrowsercontext), "clientstyling" in m && r(25, L = m.clientstyling), "clientstylingurl" in m && r(26, I = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl), "mbsource" in m && r(28,
|
|
4594
|
+
"session" in m && r(20, i = m.session), "userid" in m && r(21, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, u = m.startdate), "status" in m && r(0, l = m.status), "tourid" in m && r(22, o = m.tourid), "thumbnail" in m && r(3, h = m.thumbnail), "userenrolled" in m && r(4, f = m.userenrolled), "scorecriteria" in m && r(23, c = m.scorecriteria), "minbetcount" in m && r(5, g = m.minbetcount), "showenrolled" in m && r(6, b = m.showenrolled), "gameurl" in m && r(7, y = m.gameurl), "lang" in m && r(24, d = m.lang), "keepbrowsercontext" in m && r(8, E = m.keepbrowsercontext), "clientstyling" in m && r(25, L = m.clientstyling), "clientstylingurl" in m && r(26, I = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl), "mbsource" in m && r(28, P = m.mbsource);
|
|
4567
4595
|
}, e.$$.update = () => {
|
|
4568
4596
|
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4569
|
-
33554944 && L &&
|
|
4570
|
-
67109376 && I &&
|
|
4571
|
-
268435968 &&
|
|
4597
|
+
33554944 && L && N && Oi(N, L), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4598
|
+
67109376 && I && N && Pi(N, I), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4599
|
+
268435968 && P && N && Li(N, `${P}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4572
4600
|
134217728 && H && ur(), e.$$.dirty[0] & /*session*/
|
|
4573
4601
|
1048576 && i && hr(), e.$$.dirty[0] & /*status*/
|
|
4574
|
-
1 && l &&
|
|
4575
|
-
16777218 && a && d &&
|
|
4576
|
-
4 && u &&
|
|
4577
|
-
8388608 && c &&
|
|
4602
|
+
1 && l && Be(), e.$$.dirty[0] & /*title, lang*/
|
|
4603
|
+
16777218 && a && d && Ne(), e.$$.dirty[0] & /*startdate*/
|
|
4604
|
+
4 && u && we(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4605
|
+
8388608 && c && Ie();
|
|
4578
4606
|
}, [
|
|
4579
4607
|
l,
|
|
4580
4608
|
a,
|
|
@@ -4585,16 +4613,16 @@ function ji(e, t, r) {
|
|
|
4585
4613
|
b,
|
|
4586
4614
|
y,
|
|
4587
4615
|
E,
|
|
4588
|
-
|
|
4616
|
+
N,
|
|
4589
4617
|
F,
|
|
4590
|
-
|
|
4591
|
-
|
|
4618
|
+
j,
|
|
4619
|
+
J,
|
|
4592
4620
|
C,
|
|
4593
|
-
|
|
4621
|
+
M,
|
|
4594
4622
|
n,
|
|
4623
|
+
we,
|
|
4624
|
+
Be,
|
|
4595
4625
|
Ie,
|
|
4596
|
-
Oe,
|
|
4597
|
-
Ne,
|
|
4598
4626
|
lr,
|
|
4599
4627
|
i,
|
|
4600
4628
|
s,
|
|
@@ -4604,7 +4632,7 @@ function ji(e, t, r) {
|
|
|
4604
4632
|
L,
|
|
4605
4633
|
I,
|
|
4606
4634
|
H,
|
|
4607
|
-
|
|
4635
|
+
P,
|
|
4608
4636
|
cr
|
|
4609
4637
|
];
|
|
4610
4638
|
}
|
|
@@ -4613,9 +4641,9 @@ class or extends jr {
|
|
|
4613
4641
|
super(), Gr(
|
|
4614
4642
|
this,
|
|
4615
4643
|
t,
|
|
4616
|
-
ji,
|
|
4617
4644
|
$i,
|
|
4618
|
-
|
|
4645
|
+
Gi,
|
|
4646
|
+
Pt,
|
|
4619
4647
|
{
|
|
4620
4648
|
session: 20,
|
|
4621
4649
|
userid: 21,
|
|
@@ -4636,7 +4664,7 @@ class or extends jr {
|
|
|
4636
4664
|
translationurl: 27,
|
|
4637
4665
|
mbsource: 28
|
|
4638
4666
|
},
|
|
4639
|
-
|
|
4667
|
+
ki,
|
|
4640
4668
|
[-1, -1]
|
|
4641
4669
|
);
|
|
4642
4670
|
}
|
|
@@ -4750,49 +4778,53 @@ class or extends jr {
|
|
|
4750
4778
|
}
|
|
4751
4779
|
}
|
|
4752
4780
|
$r(or, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4753
|
-
const
|
|
4781
|
+
const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4754
4782
|
__proto__: null,
|
|
4755
4783
|
default: or
|
|
4756
4784
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4757
4785
|
export {
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4786
|
+
z as $,
|
|
4787
|
+
me as A,
|
|
4788
|
+
D as B,
|
|
4789
|
+
G as C,
|
|
4790
|
+
Mi as D,
|
|
4791
|
+
Ge as E,
|
|
4792
|
+
ie as F,
|
|
4765
4793
|
Wi as G,
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4794
|
+
Xi as H,
|
|
4795
|
+
Qi as I,
|
|
4796
|
+
qi as J,
|
|
4797
|
+
Ve as K,
|
|
4798
|
+
Zi as L,
|
|
4799
|
+
Ji as M,
|
|
4800
|
+
Fe as N,
|
|
4801
|
+
es as O,
|
|
4771
4802
|
jr as S,
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4803
|
+
Yi as _,
|
|
4804
|
+
Pe as a,
|
|
4805
|
+
Ki as b,
|
|
4806
|
+
Se as c,
|
|
4807
|
+
ae as d,
|
|
4808
|
+
rr as e,
|
|
4777
4809
|
w as f,
|
|
4778
|
-
|
|
4779
|
-
|
|
4810
|
+
$r as g,
|
|
4811
|
+
Sr as h,
|
|
4780
4812
|
Gr as i,
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4813
|
+
A as j,
|
|
4814
|
+
$ as k,
|
|
4815
|
+
Y as l,
|
|
4816
|
+
p as m,
|
|
4817
|
+
O as n,
|
|
4818
|
+
S as o,
|
|
4819
|
+
U as p,
|
|
4820
|
+
B as q,
|
|
4821
|
+
Er as r,
|
|
4822
|
+
Pt as s,
|
|
4823
|
+
Nr as t,
|
|
4824
|
+
Pi as u,
|
|
4825
|
+
Li as v,
|
|
4826
|
+
$e as w,
|
|
4827
|
+
Oi as x,
|
|
4828
|
+
Hr as y,
|
|
4797
4829
|
de as z
|
|
4798
4830
|
};
|