@everymatrix/casino-tournaments-thumbnail 1.71.0 → 1.72.0
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-DsERE9_c.js → CasinoTournamentsThumbnail-BF_ZcAB8.js} +557 -553
- package/components/{CasinoTournamentsThumbnail-mo54AlrO.js → CasinoTournamentsThumbnail-DVCxWHv9.js} +546 -542
- package/components/CasinoTournamentsThumbnail-DsH13c6v.cjs +6 -0
- package/es2015/casino-tournaments-thumbnail.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail.js +1 -1
- package/esnext/casino-tournaments-thumbnail.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/index-b2193545-BS7xFIk4.js +503 -0
- package/stencil/index-b2193545-BTdVi7--.cjs +1 -0
- package/stencil/index-b2193545-rfNAj6ri.js +519 -0
- package/stencil/{ui-image-CDCn_LHy.cjs → ui-image-Bk8cIvcH.cjs} +1 -1
- package/stencil/{ui-image-CNrnXPP3.js → ui-image-CXqPvnQ2.js} +1 -1
- package/stencil/{ui-image-CDGN3Ekj.js → ui-image-DgbODkuX.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-Caiy-FEL.cjs → ui-skeleton-B0BB970e.cjs} +1 -1
- package/stencil/{ui-skeleton-CzV3R1-p.js → ui-skeleton-D8L-WY77.js} +2 -2
- package/stencil/{ui-skeleton-C73UqtBQ.js → ui-skeleton-DSebcnN1.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CLOd38Ia.js → ui-skeleton-ae35c6f2-BH4D8vHD.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-SCby2j53.js → ui-skeleton-ae35c6f2-CcPx4a2P.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-C9l5j8aK.cjs → ui-skeleton-ae35c6f2-DDiK5zGt.cjs} +1 -1
- package/components/CasinoTournamentsThumbnail-CKQ-RBYz.cjs +0 -19
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
- package/stencil/index-b2193545-CF9C6kiu.cjs +0 -1
- package/stencil/index-b2193545-OH6E7v51.js +0 -519
- package/stencil/index-b2193545-eoIiLcDl.js +0 -503
package/components/{CasinoTournamentsThumbnail-DsERE9_c.js → CasinoTournamentsThumbnail-BF_ZcAB8.js}
RENAMED
|
@@ -2,15 +2,15 @@ var mr = Object.defineProperty, dr = Object.defineProperties;
|
|
|
2
2
|
var br = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var nt = Object.getOwnPropertySymbols;
|
|
4
4
|
var gr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Pe = (e, t, r) => t in e ? mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
gr.call(t, r) &&
|
|
7
|
+
gr.call(t, r) && Pe(e, r, t[r]);
|
|
8
8
|
if (nt)
|
|
9
9
|
for (var r of nt(t))
|
|
10
|
-
pr.call(t, r) &&
|
|
10
|
+
pr.call(t, r) && Pe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, st = (e, t) => dr(e, br(t));
|
|
13
|
-
var k = (e, t, r) => (
|
|
13
|
+
var k = (e, t, r) => (Pe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var at = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,8 +27,8 @@ var at = (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-D8L-WY77.js";
|
|
31
|
+
import "../stencil/ui-image-DgbODkuX.js";
|
|
32
32
|
function U() {
|
|
33
33
|
}
|
|
34
34
|
function Nt(e) {
|
|
@@ -37,23 +37,23 @@ function Nt(e) {
|
|
|
37
37
|
function ot() {
|
|
38
38
|
return /* @__PURE__ */ Object.create(null);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function se(e) {
|
|
41
41
|
e.forEach(Nt);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function de(e) {
|
|
44
44
|
return typeof e == "function";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ot(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 ge;
|
|
50
|
+
function Ge(e, t) {
|
|
51
|
+
return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
|
|
52
52
|
}
|
|
53
53
|
function yr(e) {
|
|
54
54
|
return Object.keys(e).length === 0;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Pt(e, ...t) {
|
|
57
57
|
if (e == null) {
|
|
58
58
|
for (const n of t)
|
|
59
59
|
n(void 0);
|
|
@@ -63,22 +63,22 @@ function Ot(e, ...t) {
|
|
|
63
63
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
64
64
|
}
|
|
65
65
|
function _r(e, t, r) {
|
|
66
|
-
e.$$.on_destroy.push(
|
|
66
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return e &&
|
|
68
|
+
function be(e) {
|
|
69
|
+
return e && de(e.destroy) ? e.destroy : U;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function x(e, t) {
|
|
72
72
|
e.appendChild(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const n =
|
|
74
|
+
function Er(e, t, r) {
|
|
75
|
+
const n = vr(e);
|
|
76
76
|
if (!n.getElementById(t)) {
|
|
77
77
|
const i = B("style");
|
|
78
|
-
i.id = t, i.textContent = r,
|
|
78
|
+
i.id = t, i.textContent = r, xr(n, i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function vr(e) {
|
|
82
82
|
if (!e)
|
|
83
83
|
return document;
|
|
84
84
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -88,14 +88,14 @@ function Er(e) {
|
|
|
88
88
|
t
|
|
89
89
|
) : e.ownerDocument;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function xr(e, t) {
|
|
92
|
+
return x(
|
|
93
93
|
/** @type {Document} */
|
|
94
94
|
e.head || e,
|
|
95
95
|
t
|
|
96
96
|
), t.sheet;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function P(e, t, r) {
|
|
99
99
|
e.insertBefore(t, r || null);
|
|
100
100
|
}
|
|
101
101
|
function w(e) {
|
|
@@ -119,7 +119,7 @@ function Tr(e, t, r, n) {
|
|
|
119
119
|
function p(e, t, r) {
|
|
120
120
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function K(e, t, r) {
|
|
123
123
|
const n = t.toLowerCase();
|
|
124
124
|
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);
|
|
125
125
|
}
|
|
@@ -139,87 +139,87 @@ function Hr(e) {
|
|
|
139
139
|
}
|
|
140
140
|
), t;
|
|
141
141
|
}
|
|
142
|
-
let
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
let ce;
|
|
143
|
+
function he(e) {
|
|
144
|
+
ce = e;
|
|
145
145
|
}
|
|
146
146
|
function Cr() {
|
|
147
|
-
if (!
|
|
147
|
+
if (!ce)
|
|
148
148
|
throw new Error("Function called outside component initialization");
|
|
149
|
-
return
|
|
149
|
+
return ce;
|
|
150
150
|
}
|
|
151
151
|
function Br(e) {
|
|
152
152
|
Cr().$$.on_mount.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
154
|
+
const Y = [], $e = [];
|
|
155
|
+
let ee = [];
|
|
156
156
|
const ut = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
157
|
-
let
|
|
157
|
+
let je = !1;
|
|
158
158
|
function Ir() {
|
|
159
|
-
|
|
159
|
+
je || (je = !0, wr.then(C));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
161
|
+
function Ve(e) {
|
|
162
|
+
ee.push(e);
|
|
163
163
|
}
|
|
164
164
|
const Me = /* @__PURE__ */ new Set();
|
|
165
|
-
let
|
|
165
|
+
let q = 0;
|
|
166
166
|
function C() {
|
|
167
|
-
if (
|
|
167
|
+
if (q !== 0)
|
|
168
168
|
return;
|
|
169
|
-
const e =
|
|
169
|
+
const e = ce;
|
|
170
170
|
do {
|
|
171
171
|
try {
|
|
172
|
-
for (;
|
|
173
|
-
const t =
|
|
174
|
-
|
|
172
|
+
for (; q < Y.length; ) {
|
|
173
|
+
const t = Y[q];
|
|
174
|
+
q++, he(t), Nr(t.$$);
|
|
175
175
|
}
|
|
176
176
|
} catch (t) {
|
|
177
|
-
throw
|
|
177
|
+
throw Y.length = 0, q = 0, t;
|
|
178
178
|
}
|
|
179
|
-
for (
|
|
180
|
-
|
|
181
|
-
for (let t = 0; t <
|
|
182
|
-
const r =
|
|
179
|
+
for (he(null), Y.length = 0, q = 0; $e.length; )
|
|
180
|
+
$e.pop()();
|
|
181
|
+
for (let t = 0; t < ee.length; t += 1) {
|
|
182
|
+
const r = ee[t];
|
|
183
183
|
Me.has(r) || (Me.add(r), r());
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
} while (
|
|
185
|
+
ee.length = 0;
|
|
186
|
+
} while (Y.length);
|
|
187
187
|
for (; ut.length; )
|
|
188
188
|
ut.pop()();
|
|
189
|
-
|
|
189
|
+
je = !1, Me.clear(), he(e);
|
|
190
190
|
}
|
|
191
191
|
function Nr(e) {
|
|
192
192
|
if (e.fragment !== null) {
|
|
193
|
-
e.update(),
|
|
193
|
+
e.update(), se(e.before_update);
|
|
194
194
|
const t = e.dirty;
|
|
195
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
195
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Or(e) {
|
|
199
199
|
const t = [], r = [];
|
|
200
|
-
|
|
200
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
203
|
-
function
|
|
204
|
-
e && e.i && (
|
|
202
|
+
const Pr = /* @__PURE__ */ new Set();
|
|
203
|
+
function Mr(e, t) {
|
|
204
|
+
e && e.i && (Pr.delete(e), e.i(t));
|
|
205
205
|
}
|
|
206
206
|
function Lr(e, t, r) {
|
|
207
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
-
n && n.m(t, r),
|
|
209
|
-
const s = e.$$.on_mount.map(Nt).filter(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
211
|
-
}), i.forEach(
|
|
208
|
+
n && n.m(t, r), Ve(() => {
|
|
209
|
+
const s = e.$$.on_mount.map(Nt).filter(de);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : se(s), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(Ve);
|
|
212
212
|
}
|
|
213
213
|
function Rr(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (Or(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
217
|
function Dr(e, t) {
|
|
218
|
-
e.$$.dirty[0] === -1 && (
|
|
218
|
+
e.$$.dirty[0] === -1 && (Y.push(e), Ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
220
|
function kr(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
221
|
-
const l =
|
|
222
|
-
|
|
221
|
+
const l = ce;
|
|
222
|
+
he(e);
|
|
223
223
|
const o = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
@@ -246,18 +246,18 @@ function kr(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
|
246
246
|
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...g) => {
|
|
247
247
|
const b = g.length ? g[0] : c;
|
|
248
248
|
return o.ctx && i(o.ctx[f], o.ctx[f] = b) && (!o.skip_bound && o.bound[f] && o.bound[f](b), h && Dr(e, f)), c;
|
|
249
|
-
}) : [], o.update(), h = !0,
|
|
249
|
+
}) : [], o.update(), h = !0, se(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
251
|
const f = Ar(t.target);
|
|
252
252
|
o.fragment && o.fragment.l(f), f.forEach(w);
|
|
253
253
|
} else
|
|
254
254
|
o.fragment && o.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && Mr(e.$$.fragment), Lr(e, t.target, t.anchor), C();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
he(l);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let Mt;
|
|
260
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(o, h) {
|
|
311
|
-
|
|
311
|
+
P(o, a, h);
|
|
312
312
|
},
|
|
313
313
|
d: function(o) {
|
|
314
314
|
o && w(a);
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
323
323
|
s in n && (r[s] = [t(s)]);
|
|
324
324
|
for (const s of this.attributes) {
|
|
325
325
|
const a = this.$$g_p(s.name);
|
|
326
|
-
a in this.$$d || (this.$$d[a] =
|
|
326
|
+
a in this.$$d || (this.$$d[a] = ye(a, s.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const s in this.$$p_d)
|
|
342
342
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
343
|
-
const a =
|
|
343
|
+
const a = ye(
|
|
344
344
|
s,
|
|
345
345
|
this.$$d[s],
|
|
346
346
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
364
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
365
|
attributeChangedCallback(t, r, n) {
|
|
366
366
|
var i;
|
|
367
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
367
|
+
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] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
377
377
|
) || t;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function ye(e, t, r, n) {
|
|
381
381
|
var s;
|
|
382
382
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
383
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -408,7 +408,7 @@ function pe(e, t, r, n) {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
function Ur(e, t, r, n, i, s) {
|
|
411
|
-
let a = class extends
|
|
411
|
+
let a = class extends Mt {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
|
414
414
|
}
|
|
@@ -425,7 +425,7 @@ function Ur(e, t, r, n, i, s) {
|
|
|
425
425
|
},
|
|
426
426
|
set(l) {
|
|
427
427
|
var o;
|
|
428
|
-
l =
|
|
428
|
+
l = ye(u, l, t), this.$$d[u] = l, (o = this.$$c) == null || o.$set({ [u]: l });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}), n.forEach((u) => {
|
|
@@ -468,7 +468,7 @@ class Fr {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
|
-
if (!
|
|
471
|
+
if (!de(r))
|
|
472
472
|
return U;
|
|
473
473
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return n.push(r), () => {
|
|
@@ -486,24 +486,24 @@ class Fr {
|
|
|
486
486
|
}
|
|
487
487
|
const Gr = "4";
|
|
488
488
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
|
|
489
|
-
const
|
|
489
|
+
const Q = [];
|
|
490
490
|
function $r(e, t) {
|
|
491
491
|
return {
|
|
492
|
-
subscribe:
|
|
492
|
+
subscribe: Te(e, t).subscribe
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Te(e, t = U) {
|
|
496
496
|
let r;
|
|
497
497
|
const n = /* @__PURE__ */ new Set();
|
|
498
498
|
function i(u) {
|
|
499
|
-
if (
|
|
500
|
-
const l = !
|
|
499
|
+
if (Ot(e, u) && (e = u, r)) {
|
|
500
|
+
const l = !Q.length;
|
|
501
501
|
for (const o of n)
|
|
502
|
-
o[1](),
|
|
502
|
+
o[1](), Q.push(o, e);
|
|
503
503
|
if (l) {
|
|
504
|
-
for (let o = 0; o <
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
for (let o = 0; o < Q.length; o += 2)
|
|
505
|
+
Q[o][0](Q[o + 1]);
|
|
506
|
+
Q.length = 0;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
@@ -518,7 +518,7 @@ function ve(e, t = U) {
|
|
|
518
518
|
}
|
|
519
519
|
return { set: i, update: s, subscribe: a };
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function ae(e, t, r) {
|
|
522
522
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
523
523
|
if (!i.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -532,9 +532,9 @@ function se(e, t, r) {
|
|
|
532
532
|
return;
|
|
533
533
|
f();
|
|
534
534
|
const b = t(n ? o[0] : o, a, u);
|
|
535
|
-
s ? a(b) : f =
|
|
535
|
+
s ? a(b) : f = de(b) ? b : U;
|
|
536
536
|
}, g = i.map(
|
|
537
|
-
(b, y) =>
|
|
537
|
+
(b, y) => Pt(
|
|
538
538
|
b,
|
|
539
539
|
(d) => {
|
|
540
540
|
o[y] = d, h &= ~(1 << y), l && c();
|
|
@@ -545,7 +545,7 @@ function se(e, t, r) {
|
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
547
|
return l = !0, c(), function() {
|
|
548
|
-
|
|
548
|
+
se(g), f(), l = !1;
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
@@ -569,19 +569,19 @@ function Zr(e) {
|
|
|
569
569
|
function qr(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function fe(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(qr(e), e, t) : e;
|
|
574
574
|
}
|
|
575
575
|
function Qr(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(n) {
|
|
577
|
-
return
|
|
577
|
+
return fe(n, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
580
|
function Yr(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
|
-
return
|
|
582
|
+
return te;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : te;
|
|
585
585
|
}
|
|
586
586
|
function Kr(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -604,65 +604,51 @@ function en(e, t) {
|
|
|
604
604
|
function tn(e, t, r) {
|
|
605
605
|
var n = {};
|
|
606
606
|
return r.isMergeableObject(e) && lt(e).forEach(function(i) {
|
|
607
|
-
n[i] =
|
|
607
|
+
n[i] = fe(e[i], r);
|
|
608
608
|
}), lt(t).forEach(function(i) {
|
|
609
|
-
en(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yr(i, r)(e[i], t[i], r) : n[i] =
|
|
609
|
+
en(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yr(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
610
610
|
}), n;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified =
|
|
612
|
+
function te(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified = fe;
|
|
614
614
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
615
|
-
return s ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) :
|
|
615
|
+
return s ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : fe(t, r);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
te.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
619
619
|
throw new Error("first argument should be an array");
|
|
620
620
|
return t.reduce(function(n, i) {
|
|
621
|
-
return
|
|
621
|
+
return te(n, i, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var rn =
|
|
624
|
+
var rn = te, nn = rn;
|
|
625
625
|
const sn = /* @__PURE__ */ jr(nn);
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
630
|
-
purpose with or without fee is hereby granted.
|
|
631
|
-
|
|
632
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
633
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
634
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
635
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
636
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
637
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
638
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
639
|
-
***************************************************************************** */
|
|
640
|
-
var je = function(e, t) {
|
|
641
|
-
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
626
|
+
var Je = function(e, t) {
|
|
627
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
642
628
|
r.__proto__ = n;
|
|
643
629
|
} || function(r, n) {
|
|
644
630
|
for (var i in n)
|
|
645
631
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
646
|
-
},
|
|
632
|
+
}, Je(e, t);
|
|
647
633
|
};
|
|
648
|
-
function
|
|
634
|
+
function Ae(e, t) {
|
|
649
635
|
if (typeof t != "function" && t !== null)
|
|
650
636
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
651
|
-
|
|
637
|
+
Je(e, t);
|
|
652
638
|
function r() {
|
|
653
639
|
this.constructor = e;
|
|
654
640
|
}
|
|
655
641
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
656
642
|
}
|
|
657
|
-
var
|
|
658
|
-
return
|
|
643
|
+
var j = function() {
|
|
644
|
+
return j = Object.assign || function(t) {
|
|
659
645
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
660
646
|
r = arguments[n];
|
|
661
647
|
for (var s in r)
|
|
662
648
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
663
649
|
}
|
|
664
650
|
return t;
|
|
665
|
-
},
|
|
651
|
+
}, j.apply(this, arguments);
|
|
666
652
|
};
|
|
667
653
|
function an(e, t) {
|
|
668
654
|
var r = {};
|
|
@@ -673,14 +659,14 @@ function an(e, t) {
|
|
|
673
659
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
674
660
|
return r;
|
|
675
661
|
}
|
|
676
|
-
function
|
|
677
|
-
if (arguments.length === 2)
|
|
662
|
+
function Le(e, t, r) {
|
|
663
|
+
if (r || arguments.length === 2)
|
|
678
664
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
679
665
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
680
|
-
return e.concat(s || t);
|
|
666
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
681
667
|
}
|
|
682
|
-
function
|
|
683
|
-
var r = t && t.cache ? t.cache :
|
|
668
|
+
function Re(e, t) {
|
|
669
|
+
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : ln;
|
|
684
670
|
return i(e, {
|
|
685
671
|
cache: r,
|
|
686
672
|
serializer: n
|
|
@@ -689,95 +675,103 @@ function Pe(e, t) {
|
|
|
689
675
|
function on(e) {
|
|
690
676
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
691
677
|
}
|
|
692
|
-
function
|
|
678
|
+
function un(e, t, r, n) {
|
|
693
679
|
var i = on(n) ? n : r(n), s = t.get(i);
|
|
694
680
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
695
681
|
}
|
|
696
|
-
function
|
|
682
|
+
function Rt(e, t, r) {
|
|
697
683
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
698
684
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
699
685
|
}
|
|
700
|
-
function
|
|
686
|
+
function Dt(e, t, r, n, i) {
|
|
701
687
|
return r.bind(t, e, n, i);
|
|
702
688
|
}
|
|
703
|
-
function un(e, t) {
|
|
704
|
-
var r = e.length === 1 ? Rt : Dt;
|
|
705
|
-
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
706
|
-
}
|
|
707
689
|
function ln(e, t) {
|
|
708
|
-
|
|
690
|
+
var r = e.length === 1 ? un : Rt;
|
|
691
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
709
692
|
}
|
|
710
693
|
function hn(e, t) {
|
|
711
|
-
return
|
|
694
|
+
return Dt(e, this, Rt, t.cache.create(), t.serializer);
|
|
712
695
|
}
|
|
713
696
|
var cn = function() {
|
|
714
697
|
return JSON.stringify(arguments);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
698
|
+
}, fn = (
|
|
699
|
+
/** @class */
|
|
700
|
+
function() {
|
|
701
|
+
function e() {
|
|
702
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
703
|
+
}
|
|
704
|
+
return e.prototype.get = function(t) {
|
|
705
|
+
return this.cache[t];
|
|
706
|
+
}, e.prototype.set = function(t, r) {
|
|
707
|
+
this.cache[t] = r;
|
|
708
|
+
}, e;
|
|
709
|
+
}()
|
|
710
|
+
), mn = {
|
|
726
711
|
create: function() {
|
|
727
|
-
return new
|
|
712
|
+
return new fn();
|
|
728
713
|
}
|
|
729
|
-
},
|
|
730
|
-
variadic:
|
|
731
|
-
|
|
732
|
-
|
|
714
|
+
}, De = {
|
|
715
|
+
variadic: hn
|
|
716
|
+
}, ve = function() {
|
|
717
|
+
return ve = Object.assign || function(t) {
|
|
718
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
719
|
+
r = arguments[n];
|
|
720
|
+
for (var s in r)
|
|
721
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
722
|
+
}
|
|
723
|
+
return t;
|
|
724
|
+
}, ve.apply(this, arguments);
|
|
725
|
+
};
|
|
726
|
+
var _;
|
|
733
727
|
(function(e) {
|
|
734
728
|
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";
|
|
735
729
|
})(_ || (_ = {}));
|
|
736
|
-
var
|
|
730
|
+
var S;
|
|
737
731
|
(function(e) {
|
|
738
732
|
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";
|
|
739
|
-
})(
|
|
740
|
-
var
|
|
733
|
+
})(S || (S = {}));
|
|
734
|
+
var re;
|
|
741
735
|
(function(e) {
|
|
742
736
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
743
|
-
})(
|
|
737
|
+
})(re || (re = {}));
|
|
744
738
|
function ht(e) {
|
|
745
|
-
return e.type ===
|
|
739
|
+
return e.type === S.literal;
|
|
746
740
|
}
|
|
747
|
-
function
|
|
748
|
-
return e.type ===
|
|
741
|
+
function dn(e) {
|
|
742
|
+
return e.type === S.argument;
|
|
749
743
|
}
|
|
750
744
|
function kt(e) {
|
|
751
|
-
return e.type ===
|
|
745
|
+
return e.type === S.number;
|
|
752
746
|
}
|
|
753
747
|
function Ut(e) {
|
|
754
|
-
return e.type ===
|
|
748
|
+
return e.type === S.date;
|
|
755
749
|
}
|
|
756
750
|
function Ft(e) {
|
|
757
|
-
return e.type ===
|
|
751
|
+
return e.type === S.time;
|
|
758
752
|
}
|
|
759
753
|
function Gt(e) {
|
|
760
|
-
return e.type ===
|
|
754
|
+
return e.type === S.select;
|
|
761
755
|
}
|
|
762
756
|
function $t(e) {
|
|
763
|
-
return e.type ===
|
|
757
|
+
return e.type === S.plural;
|
|
764
758
|
}
|
|
765
|
-
function
|
|
766
|
-
return e.type ===
|
|
759
|
+
function bn(e) {
|
|
760
|
+
return e.type === S.pound;
|
|
767
761
|
}
|
|
768
762
|
function jt(e) {
|
|
769
|
-
return e.type ===
|
|
763
|
+
return e.type === S.tag;
|
|
770
764
|
}
|
|
771
765
|
function Vt(e) {
|
|
772
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
766
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
773
767
|
}
|
|
774
|
-
function
|
|
775
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
768
|
+
function ze(e) {
|
|
769
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
776
770
|
}
|
|
777
|
-
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
778
|
-
function
|
|
771
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
|
|
772
|
+
function pn(e) {
|
|
779
773
|
var t = {};
|
|
780
|
-
return e.replace(
|
|
774
|
+
return e.replace(gn, function(r) {
|
|
781
775
|
var n = r.length;
|
|
782
776
|
switch (r[0]) {
|
|
783
777
|
case "G":
|
|
@@ -866,11 +860,21 @@ function gn(e) {
|
|
|
866
860
|
return "";
|
|
867
861
|
}), t;
|
|
868
862
|
}
|
|
869
|
-
var
|
|
870
|
-
function
|
|
863
|
+
var T = function() {
|
|
864
|
+
return T = Object.assign || function(t) {
|
|
865
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
866
|
+
r = arguments[n];
|
|
867
|
+
for (var s in r)
|
|
868
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
869
|
+
}
|
|
870
|
+
return t;
|
|
871
|
+
}, T.apply(this, arguments);
|
|
872
|
+
};
|
|
873
|
+
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
+
function _n(e) {
|
|
871
875
|
if (e.length === 0)
|
|
872
876
|
throw new Error("Number skeleton cannot be empty");
|
|
873
|
-
for (var t = e.split(
|
|
877
|
+
for (var t = e.split(yn).filter(function(c) {
|
|
874
878
|
return c.length > 0;
|
|
875
879
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
876
880
|
var s = i[n], a = s.split("/");
|
|
@@ -885,10 +889,10 @@ function yn(e) {
|
|
|
885
889
|
}
|
|
886
890
|
return r;
|
|
887
891
|
}
|
|
888
|
-
function
|
|
892
|
+
function En(e) {
|
|
889
893
|
return e.replace(/^(.*?)-/, "");
|
|
890
894
|
}
|
|
891
|
-
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
895
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
892
896
|
function ft(e) {
|
|
893
897
|
var t = {};
|
|
894
898
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
@@ -935,7 +939,7 @@ function Xt(e) {
|
|
|
935
939
|
};
|
|
936
940
|
}
|
|
937
941
|
}
|
|
938
|
-
function
|
|
942
|
+
function xn(e) {
|
|
939
943
|
var t;
|
|
940
944
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
941
945
|
notation: "engineering"
|
|
@@ -953,7 +957,7 @@ function mt(e) {
|
|
|
953
957
|
var t = {}, r = Xt(e);
|
|
954
958
|
return r || t;
|
|
955
959
|
}
|
|
956
|
-
function
|
|
960
|
+
function Sn(e) {
|
|
957
961
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
958
962
|
var i = n[r];
|
|
959
963
|
switch (i.stem) {
|
|
@@ -977,7 +981,7 @@ function vn(e) {
|
|
|
977
981
|
continue;
|
|
978
982
|
case "measure-unit":
|
|
979
983
|
case "unit":
|
|
980
|
-
t.style = "unit", t.unit =
|
|
984
|
+
t.style = "unit", t.unit = En(i.options[0]);
|
|
981
985
|
continue;
|
|
982
986
|
case "compact-short":
|
|
983
987
|
case "K":
|
|
@@ -988,13 +992,13 @@ function vn(e) {
|
|
|
988
992
|
t.notation = "compact", t.compactDisplay = "long";
|
|
989
993
|
continue;
|
|
990
994
|
case "scientific":
|
|
991
|
-
t =
|
|
992
|
-
return
|
|
995
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
|
|
996
|
+
return T(T({}, l), mt(o));
|
|
993
997
|
}, {}));
|
|
994
998
|
continue;
|
|
995
999
|
case "engineering":
|
|
996
|
-
t =
|
|
997
|
-
return
|
|
1000
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
|
|
1001
|
+
return T(T({}, l), mt(o));
|
|
998
1002
|
}, {}));
|
|
999
1003
|
continue;
|
|
1000
1004
|
case "notation-simple":
|
|
@@ -1039,7 +1043,7 @@ function vn(e) {
|
|
|
1039
1043
|
case "integer-width":
|
|
1040
1044
|
if (i.options.length > 1)
|
|
1041
1045
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1042
|
-
i.options[0].replace(
|
|
1046
|
+
i.options[0].replace(vn, function(l, o, h, f, c, g) {
|
|
1043
1047
|
if (o)
|
|
1044
1048
|
t.minimumIntegerDigits = h.length;
|
|
1045
1049
|
else {
|
|
@@ -1063,21 +1067,21 @@ function vn(e) {
|
|
|
1063
1067
|
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), "";
|
|
1064
1068
|
});
|
|
1065
1069
|
var s = i.options[0];
|
|
1066
|
-
s === "w" ? t =
|
|
1070
|
+
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), ft(s)));
|
|
1067
1071
|
continue;
|
|
1068
1072
|
}
|
|
1069
1073
|
if (zt.test(i.stem)) {
|
|
1070
|
-
t =
|
|
1074
|
+
t = T(T({}, t), ft(i.stem));
|
|
1071
1075
|
continue;
|
|
1072
1076
|
}
|
|
1073
1077
|
var a = Xt(i.stem);
|
|
1074
|
-
a && (t =
|
|
1075
|
-
var u =
|
|
1076
|
-
u && (t =
|
|
1078
|
+
a && (t = T(T({}, t), a));
|
|
1079
|
+
var u = xn(i.stem);
|
|
1080
|
+
u && (t = T(T({}, t), u));
|
|
1077
1081
|
}
|
|
1078
1082
|
return t;
|
|
1079
1083
|
}
|
|
1080
|
-
var
|
|
1084
|
+
var pe = {
|
|
1081
1085
|
"001": [
|
|
1082
1086
|
"H",
|
|
1083
1087
|
"h"
|
|
@@ -2492,13 +2496,13 @@ var ge = {
|
|
|
2492
2496
|
"h"
|
|
2493
2497
|
]
|
|
2494
2498
|
};
|
|
2495
|
-
function
|
|
2499
|
+
function Tn(e, t) {
|
|
2496
2500
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2497
2501
|
var i = e.charAt(n);
|
|
2498
2502
|
if (i === "j") {
|
|
2499
2503
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2500
2504
|
s++, n++;
|
|
2501
|
-
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", o =
|
|
2505
|
+
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = An(t);
|
|
2502
2506
|
for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
|
|
2503
2507
|
r += l;
|
|
2504
2508
|
for (; a-- > 0; )
|
|
@@ -2508,7 +2512,7 @@ function Sn(e, t) {
|
|
|
2508
2512
|
}
|
|
2509
2513
|
return r;
|
|
2510
2514
|
}
|
|
2511
|
-
function
|
|
2515
|
+
function An(e) {
|
|
2512
2516
|
var t = e.hourCycle;
|
|
2513
2517
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2514
2518
|
e.hourCycles && // @ts-ignore
|
|
@@ -2527,23 +2531,23 @@ function Tn(e) {
|
|
|
2527
2531
|
}
|
|
2528
2532
|
var r = e.language, n;
|
|
2529
2533
|
r !== "root" && (n = e.maximize().region);
|
|
2530
|
-
var i =
|
|
2534
|
+
var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
|
|
2531
2535
|
return i[0];
|
|
2532
2536
|
}
|
|
2533
|
-
var
|
|
2534
|
-
function
|
|
2537
|
+
var ke, Hn = new RegExp("^".concat(Jt.source, "*")), Cn = new RegExp("".concat(Jt.source, "*$"));
|
|
2538
|
+
function E(e, t) {
|
|
2535
2539
|
return { start: e, end: t };
|
|
2536
2540
|
}
|
|
2537
|
-
var
|
|
2541
|
+
var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), wn = !!String.fromCodePoint, In = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, On = !!String.prototype.trimStart, Pn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, Ln = Mn ? Number.isSafeInteger : function(e) {
|
|
2538
2542
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2539
|
-
},
|
|
2543
|
+
}, We = !0;
|
|
2540
2544
|
try {
|
|
2541
|
-
var
|
|
2542
|
-
|
|
2545
|
+
var Rn = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2546
|
+
We = ((ke = Rn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
2543
2547
|
} catch (e) {
|
|
2544
|
-
|
|
2548
|
+
We = !1;
|
|
2545
2549
|
}
|
|
2546
|
-
var dt =
|
|
2550
|
+
var dt = Bn ? (
|
|
2547
2551
|
// Native
|
|
2548
2552
|
function(t, r, n) {
|
|
2549
2553
|
return t.startsWith(r, n);
|
|
@@ -2553,7 +2557,7 @@ var dt = Cn ? (
|
|
|
2553
2557
|
function(t, r, n) {
|
|
2554
2558
|
return t.slice(n, n + r.length) === r;
|
|
2555
2559
|
}
|
|
2556
|
-
),
|
|
2560
|
+
), Xe = wn ? String.fromCodePoint : (
|
|
2557
2561
|
// IE11
|
|
2558
2562
|
function() {
|
|
2559
2563
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2567,7 +2571,7 @@ var dt = Cn ? (
|
|
|
2567
2571
|
}
|
|
2568
2572
|
), bt = (
|
|
2569
2573
|
// native
|
|
2570
|
-
|
|
2574
|
+
In ? Object.fromEntries : (
|
|
2571
2575
|
// Ponyfill
|
|
2572
2576
|
function(t) {
|
|
2573
2577
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2577,7 +2581,7 @@ var dt = Cn ? (
|
|
|
2577
2581
|
return r;
|
|
2578
2582
|
}
|
|
2579
2583
|
)
|
|
2580
|
-
), Zt =
|
|
2584
|
+
), Zt = Nn ? (
|
|
2581
2585
|
// Native
|
|
2582
2586
|
function(t, r) {
|
|
2583
2587
|
return t.codePointAt(r);
|
|
@@ -2591,7 +2595,7 @@ var dt = Cn ? (
|
|
|
2591
2595
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2592
2596
|
}
|
|
2593
2597
|
}
|
|
2594
|
-
),
|
|
2598
|
+
), Dn = On ? (
|
|
2595
2599
|
// Native
|
|
2596
2600
|
function(t) {
|
|
2597
2601
|
return t.trimStart();
|
|
@@ -2599,9 +2603,9 @@ var dt = Cn ? (
|
|
|
2599
2603
|
) : (
|
|
2600
2604
|
// Ponyfill
|
|
2601
2605
|
function(t) {
|
|
2602
|
-
return t.replace(
|
|
2606
|
+
return t.replace(Hn, "");
|
|
2603
2607
|
}
|
|
2604
|
-
),
|
|
2608
|
+
), kn = Pn ? (
|
|
2605
2609
|
// Native
|
|
2606
2610
|
function(t) {
|
|
2607
2611
|
return t.trimEnd();
|
|
@@ -2609,32 +2613,32 @@ var dt = Cn ? (
|
|
|
2609
2613
|
) : (
|
|
2610
2614
|
// Ponyfill
|
|
2611
2615
|
function(t) {
|
|
2612
|
-
return t.replace(
|
|
2616
|
+
return t.replace(Cn, "");
|
|
2613
2617
|
}
|
|
2614
2618
|
);
|
|
2615
2619
|
function qt(e, t) {
|
|
2616
2620
|
return new RegExp(e, t);
|
|
2617
2621
|
}
|
|
2618
|
-
var
|
|
2619
|
-
if (
|
|
2622
|
+
var Ze;
|
|
2623
|
+
if (We) {
|
|
2620
2624
|
var gt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2621
|
-
|
|
2625
|
+
Ze = function(t, r) {
|
|
2622
2626
|
var n;
|
|
2623
2627
|
gt.lastIndex = r;
|
|
2624
2628
|
var i = gt.exec(t);
|
|
2625
2629
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2626
2630
|
};
|
|
2627
2631
|
} else
|
|
2628
|
-
|
|
2632
|
+
Ze = function(t, r) {
|
|
2629
2633
|
for (var n = []; ; ) {
|
|
2630
2634
|
var i = Zt(t, r);
|
|
2631
|
-
if (i === void 0 || Qt(i) ||
|
|
2635
|
+
if (i === void 0 || Qt(i) || $n(i))
|
|
2632
2636
|
break;
|
|
2633
2637
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2634
2638
|
}
|
|
2635
|
-
return
|
|
2639
|
+
return Xe.apply(void 0, n);
|
|
2636
2640
|
};
|
|
2637
|
-
var
|
|
2641
|
+
var Un = (
|
|
2638
2642
|
/** @class */
|
|
2639
2643
|
function() {
|
|
2640
2644
|
function e(t, r) {
|
|
@@ -2658,14 +2662,14 @@ var kn = (
|
|
|
2658
2662
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2659
2663
|
var u = this.clonePosition();
|
|
2660
2664
|
this.bump(), i.push({
|
|
2661
|
-
type:
|
|
2662
|
-
location:
|
|
2665
|
+
type: S.pound,
|
|
2666
|
+
location: E(u, this.clonePosition())
|
|
2663
2667
|
});
|
|
2664
2668
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2665
2669
|
if (n)
|
|
2666
2670
|
break;
|
|
2667
|
-
return this.error(_.UNMATCHED_CLOSING_TAG,
|
|
2668
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2671
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
2672
|
+
} else if (s === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
2669
2673
|
var a = this.parseTag(t, r);
|
|
2670
2674
|
if (a.err)
|
|
2671
2675
|
return a;
|
|
@@ -2686,9 +2690,9 @@ var kn = (
|
|
|
2686
2690
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2687
2691
|
return {
|
|
2688
2692
|
val: {
|
|
2689
|
-
type:
|
|
2693
|
+
type: S.literal,
|
|
2690
2694
|
value: "<".concat(i, "/>"),
|
|
2691
|
-
location:
|
|
2695
|
+
location: E(n, this.clonePosition())
|
|
2692
2696
|
},
|
|
2693
2697
|
err: null
|
|
2694
2698
|
};
|
|
@@ -2698,25 +2702,25 @@ var kn = (
|
|
|
2698
2702
|
return s;
|
|
2699
2703
|
var a = s.val, u = this.clonePosition();
|
|
2700
2704
|
if (this.bumpIf("</")) {
|
|
2701
|
-
if (this.isEOF() || !
|
|
2702
|
-
return this.error(_.INVALID_TAG,
|
|
2705
|
+
if (this.isEOF() || !qe(this.char()))
|
|
2706
|
+
return this.error(_.INVALID_TAG, E(u, this.clonePosition()));
|
|
2703
2707
|
var l = this.clonePosition(), o = this.parseTagName();
|
|
2704
|
-
return i !== o ? this.error(_.UNMATCHED_CLOSING_TAG,
|
|
2708
|
+
return i !== o ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2705
2709
|
val: {
|
|
2706
|
-
type:
|
|
2710
|
+
type: S.tag,
|
|
2707
2711
|
value: i,
|
|
2708
2712
|
children: a,
|
|
2709
|
-
location:
|
|
2713
|
+
location: E(n, this.clonePosition())
|
|
2710
2714
|
},
|
|
2711
2715
|
err: null
|
|
2712
|
-
} : this.error(_.INVALID_TAG,
|
|
2716
|
+
} : this.error(_.INVALID_TAG, E(u, this.clonePosition())));
|
|
2713
2717
|
} else
|
|
2714
|
-
return this.error(_.UNCLOSED_TAG,
|
|
2718
|
+
return this.error(_.UNCLOSED_TAG, E(n, this.clonePosition()));
|
|
2715
2719
|
} else
|
|
2716
|
-
return this.error(_.INVALID_TAG,
|
|
2720
|
+
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
2717
2721
|
}, e.prototype.parseTagName = function() {
|
|
2718
2722
|
var t = this.offset();
|
|
2719
|
-
for (this.bump(); !this.isEOF() &&
|
|
2723
|
+
for (this.bump(); !this.isEOF() && Gn(this.char()); )
|
|
2720
2724
|
this.bump();
|
|
2721
2725
|
return this.message.slice(t, this.offset());
|
|
2722
2726
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2738,14 +2742,14 @@ var kn = (
|
|
|
2738
2742
|
}
|
|
2739
2743
|
break;
|
|
2740
2744
|
}
|
|
2741
|
-
var l =
|
|
2745
|
+
var l = E(n, this.clonePosition());
|
|
2742
2746
|
return {
|
|
2743
|
-
val: { type:
|
|
2747
|
+
val: { type: S.literal, value: i, location: l },
|
|
2744
2748
|
err: null
|
|
2745
2749
|
};
|
|
2746
2750
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2747
2751
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2748
|
-
!
|
|
2752
|
+
!Fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2749
2753
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2750
2754
|
if (this.isEOF() || this.char() !== 39)
|
|
2751
2755
|
return null;
|
|
@@ -2779,49 +2783,49 @@ var kn = (
|
|
|
2779
2783
|
r.push(n);
|
|
2780
2784
|
this.bump();
|
|
2781
2785
|
}
|
|
2782
|
-
return
|
|
2786
|
+
return Xe.apply(void 0, r);
|
|
2783
2787
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2784
2788
|
if (this.isEOF())
|
|
2785
2789
|
return null;
|
|
2786
2790
|
var n = this.char();
|
|
2787
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2791
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xe(n));
|
|
2788
2792
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2789
2793
|
var n = this.clonePosition();
|
|
2790
2794
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2791
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2795
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
2792
2796
|
if (this.char() === 125)
|
|
2793
|
-
return this.bump(), this.error(_.EMPTY_ARGUMENT,
|
|
2797
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, E(n, this.clonePosition()));
|
|
2794
2798
|
var i = this.parseIdentifierIfPossible().value;
|
|
2795
2799
|
if (!i)
|
|
2796
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
2800
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2797
2801
|
if (this.bumpSpace(), this.isEOF())
|
|
2798
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2802
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
2799
2803
|
switch (this.char()) {
|
|
2800
2804
|
case 125:
|
|
2801
2805
|
return this.bump(), {
|
|
2802
2806
|
val: {
|
|
2803
|
-
type:
|
|
2807
|
+
type: S.argument,
|
|
2804
2808
|
// value does not include the opening and closing braces.
|
|
2805
2809
|
value: i,
|
|
2806
|
-
location:
|
|
2810
|
+
location: E(n, this.clonePosition())
|
|
2807
2811
|
},
|
|
2808
2812
|
err: null
|
|
2809
2813
|
};
|
|
2810
2814
|
case 44:
|
|
2811
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2815
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2812
2816
|
default:
|
|
2813
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
2817
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2814
2818
|
}
|
|
2815
2819
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2816
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2820
|
+
var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
|
|
2817
2821
|
this.bumpTo(i);
|
|
2818
|
-
var s = this.clonePosition(), a =
|
|
2822
|
+
var s = this.clonePosition(), a = E(t, s);
|
|
2819
2823
|
return { value: n, location: a };
|
|
2820
2824
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2821
2825
|
var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2822
2826
|
switch (u) {
|
|
2823
2827
|
case "":
|
|
2824
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE,
|
|
2828
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
|
|
2825
2829
|
case "number":
|
|
2826
2830
|
case "date":
|
|
2827
2831
|
case "time": {
|
|
@@ -2832,35 +2836,35 @@ var kn = (
|
|
|
2832
2836
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2833
2837
|
if (f.err)
|
|
2834
2838
|
return f;
|
|
2835
|
-
var c =
|
|
2839
|
+
var c = kn(f.val);
|
|
2836
2840
|
if (c.length === 0)
|
|
2837
|
-
return this.error(_.EXPECT_ARGUMENT_STYLE,
|
|
2838
|
-
var g =
|
|
2841
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
2842
|
+
var g = E(h, this.clonePosition());
|
|
2839
2843
|
o = { style: c, styleLocation: g };
|
|
2840
2844
|
}
|
|
2841
2845
|
var b = this.tryParseArgumentClose(i);
|
|
2842
2846
|
if (b.err)
|
|
2843
2847
|
return b;
|
|
2844
|
-
var y =
|
|
2848
|
+
var y = E(i, this.clonePosition());
|
|
2845
2849
|
if (o && dt(o == null ? void 0 : o.style, "::", 0)) {
|
|
2846
|
-
var d =
|
|
2850
|
+
var d = Dn(o.style.slice(2));
|
|
2847
2851
|
if (u === "number") {
|
|
2848
2852
|
var f = this.parseNumberSkeletonFromString(d, o.styleLocation);
|
|
2849
2853
|
return f.err ? f : {
|
|
2850
|
-
val: { type:
|
|
2854
|
+
val: { type: S.number, value: n, location: y, style: f.val },
|
|
2851
2855
|
err: null
|
|
2852
2856
|
};
|
|
2853
2857
|
} else {
|
|
2854
2858
|
if (d.length === 0)
|
|
2855
2859
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, y);
|
|
2856
2860
|
var v = d;
|
|
2857
|
-
this.locale && (v =
|
|
2861
|
+
this.locale && (v = Tn(d, this.locale));
|
|
2858
2862
|
var c = {
|
|
2859
|
-
type:
|
|
2863
|
+
type: re.dateTime,
|
|
2860
2864
|
pattern: v,
|
|
2861
2865
|
location: o.styleLocation,
|
|
2862
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2863
|
-
}, L = u === "date" ?
|
|
2866
|
+
parsedOptions: this.shouldParseSkeletons ? pn(v) : {}
|
|
2867
|
+
}, L = u === "date" ? S.date : S.time;
|
|
2864
2868
|
return {
|
|
2865
2869
|
val: { type: L, value: n, location: y, style: c },
|
|
2866
2870
|
err: null
|
|
@@ -2869,7 +2873,7 @@ var kn = (
|
|
|
2869
2873
|
}
|
|
2870
2874
|
return {
|
|
2871
2875
|
val: {
|
|
2872
|
-
type: u === "number" ?
|
|
2876
|
+
type: u === "number" ? S.number : u === "date" ? S.date : S.time,
|
|
2873
2877
|
value: n,
|
|
2874
2878
|
location: y,
|
|
2875
2879
|
style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
|
|
@@ -2882,17 +2886,17 @@ var kn = (
|
|
|
2882
2886
|
case "select": {
|
|
2883
2887
|
var I = this.clonePosition();
|
|
2884
2888
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2885
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2889
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(I, ve({}, I)));
|
|
2886
2890
|
this.bumpSpace();
|
|
2887
|
-
var A = this.parseIdentifierIfPossible(),
|
|
2891
|
+
var A = this.parseIdentifierIfPossible(), M = 0;
|
|
2888
2892
|
if (u !== "select" && A.value === "offset") {
|
|
2889
2893
|
if (!this.bumpIf(":"))
|
|
2890
|
-
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2894
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
2891
2895
|
this.bumpSpace();
|
|
2892
2896
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2893
2897
|
if (f.err)
|
|
2894
2898
|
return f;
|
|
2895
|
-
this.bumpSpace(), A = this.parseIdentifierIfPossible(),
|
|
2899
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), M = f.val;
|
|
2896
2900
|
}
|
|
2897
2901
|
var N = this.tryParsePluralOrSelectOptions(t, u, r, A);
|
|
2898
2902
|
if (N.err)
|
|
@@ -2900,10 +2904,10 @@ var kn = (
|
|
|
2900
2904
|
var b = this.tryParseArgumentClose(i);
|
|
2901
2905
|
if (b.err)
|
|
2902
2906
|
return b;
|
|
2903
|
-
var F =
|
|
2907
|
+
var F = E(i, this.clonePosition());
|
|
2904
2908
|
return u === "select" ? {
|
|
2905
2909
|
val: {
|
|
2906
|
-
type:
|
|
2910
|
+
type: S.select,
|
|
2907
2911
|
value: n,
|
|
2908
2912
|
options: bt(N.val),
|
|
2909
2913
|
location: F
|
|
@@ -2911,10 +2915,10 @@ var kn = (
|
|
|
2911
2915
|
err: null
|
|
2912
2916
|
} : {
|
|
2913
2917
|
val: {
|
|
2914
|
-
type:
|
|
2918
|
+
type: S.plural,
|
|
2915
2919
|
value: n,
|
|
2916
2920
|
options: bt(N.val),
|
|
2917
|
-
offset:
|
|
2921
|
+
offset: M,
|
|
2918
2922
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2919
2923
|
location: F
|
|
2920
2924
|
},
|
|
@@ -2922,10 +2926,10 @@ var kn = (
|
|
|
2922
2926
|
};
|
|
2923
2927
|
}
|
|
2924
2928
|
default:
|
|
2925
|
-
return this.error(_.INVALID_ARGUMENT_TYPE,
|
|
2929
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
|
|
2926
2930
|
}
|
|
2927
2931
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2928
|
-
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2932
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2929
2933
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2930
2934
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2931
2935
|
var n = this.char();
|
|
@@ -2934,7 +2938,7 @@ var kn = (
|
|
|
2934
2938
|
this.bump();
|
|
2935
2939
|
var i = this.clonePosition();
|
|
2936
2940
|
if (!this.bumpUntil("'"))
|
|
2937
|
-
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2941
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
|
|
2938
2942
|
this.bump();
|
|
2939
2943
|
break;
|
|
2940
2944
|
}
|
|
@@ -2964,16 +2968,16 @@ var kn = (
|
|
|
2964
2968
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2965
2969
|
var n = [];
|
|
2966
2970
|
try {
|
|
2967
|
-
n =
|
|
2971
|
+
n = _n(t);
|
|
2968
2972
|
} catch (i) {
|
|
2969
2973
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
2970
2974
|
}
|
|
2971
2975
|
return {
|
|
2972
2976
|
val: {
|
|
2973
|
-
type:
|
|
2977
|
+
type: re.number,
|
|
2974
2978
|
tokens: n,
|
|
2975
2979
|
location: r,
|
|
2976
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2980
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
|
|
2977
2981
|
},
|
|
2978
2982
|
err: null
|
|
2979
2983
|
};
|
|
@@ -2985,7 +2989,7 @@ var kn = (
|
|
|
2985
2989
|
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2986
2990
|
if (c.err)
|
|
2987
2991
|
return c;
|
|
2988
|
-
h =
|
|
2992
|
+
h = E(f, this.clonePosition()), o = this.message.slice(f.offset, this.offset());
|
|
2989
2993
|
} else
|
|
2990
2994
|
break;
|
|
2991
2995
|
}
|
|
@@ -2994,7 +2998,7 @@ var kn = (
|
|
|
2994
2998
|
o === "other" && (a = !0), this.bumpSpace();
|
|
2995
2999
|
var g = this.clonePosition();
|
|
2996
3000
|
if (!this.bumpIf("{"))
|
|
2997
|
-
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3001
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
2998
3002
|
var b = this.parseMessage(t + 1, r, n);
|
|
2999
3003
|
if (b.err)
|
|
3000
3004
|
return b;
|
|
@@ -3005,11 +3009,11 @@ var kn = (
|
|
|
3005
3009
|
o,
|
|
3006
3010
|
{
|
|
3007
3011
|
value: b.val,
|
|
3008
|
-
location:
|
|
3012
|
+
location: E(g, this.clonePosition())
|
|
3009
3013
|
}
|
|
3010
3014
|
]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
|
|
3011
3015
|
}
|
|
3012
|
-
return u.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3016
|
+
return u.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3013
3017
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3014
3018
|
var n = 1, i = this.clonePosition();
|
|
3015
3019
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3020,8 +3024,8 @@ var kn = (
|
|
|
3020
3024
|
else
|
|
3021
3025
|
break;
|
|
3022
3026
|
}
|
|
3023
|
-
var l =
|
|
3024
|
-
return s ? (a *= n,
|
|
3027
|
+
var l = E(i, this.clonePosition());
|
|
3028
|
+
return s ? (a *= n, Ln(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3025
3029
|
}, e.prototype.offset = function() {
|
|
3026
3030
|
return this.position.offset;
|
|
3027
3031
|
}, e.prototype.isEOF = function() {
|
|
@@ -3087,47 +3091,47 @@ var kn = (
|
|
|
3087
3091
|
}, e;
|
|
3088
3092
|
}()
|
|
3089
3093
|
);
|
|
3090
|
-
function
|
|
3094
|
+
function qe(e) {
|
|
3091
3095
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3092
3096
|
}
|
|
3093
|
-
function Un(e) {
|
|
3094
|
-
return Xe(e) || e === 47;
|
|
3095
|
-
}
|
|
3096
3097
|
function Fn(e) {
|
|
3098
|
+
return qe(e) || e === 47;
|
|
3099
|
+
}
|
|
3100
|
+
function Gn(e) {
|
|
3097
3101
|
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;
|
|
3098
3102
|
}
|
|
3099
3103
|
function Qt(e) {
|
|
3100
3104
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3101
3105
|
}
|
|
3102
|
-
function
|
|
3106
|
+
function $n(e) {
|
|
3103
3107
|
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;
|
|
3104
3108
|
}
|
|
3105
|
-
function
|
|
3109
|
+
function Qe(e) {
|
|
3106
3110
|
e.forEach(function(t) {
|
|
3107
3111
|
if (delete t.location, Gt(t) || $t(t))
|
|
3108
3112
|
for (var r in t.options)
|
|
3109
|
-
delete t.options[r].location,
|
|
3113
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3110
3114
|
else
|
|
3111
|
-
kt(t) && Vt(t.style) || (Ut(t) || Ft(t)) &&
|
|
3115
|
+
kt(t) && Vt(t.style) || (Ut(t) || Ft(t)) && ze(t.style) ? delete t.style.location : jt(t) && Qe(t.children);
|
|
3112
3116
|
});
|
|
3113
3117
|
}
|
|
3114
|
-
function
|
|
3115
|
-
t === void 0 && (t = {}), t =
|
|
3116
|
-
var r = new
|
|
3118
|
+
function jn(e, t) {
|
|
3119
|
+
t === void 0 && (t = {}), t = ve({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3120
|
+
var r = new Un(e, t).parse();
|
|
3117
3121
|
if (r.err) {
|
|
3118
3122
|
var n = SyntaxError(_[r.err.kind]);
|
|
3119
3123
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3120
3124
|
}
|
|
3121
|
-
return t != null && t.captureLocation ||
|
|
3125
|
+
return t != null && t.captureLocation || Qe(r.val), r.val;
|
|
3122
3126
|
}
|
|
3123
|
-
var
|
|
3127
|
+
var ne;
|
|
3124
3128
|
(function(e) {
|
|
3125
3129
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3126
|
-
})(
|
|
3127
|
-
var
|
|
3130
|
+
})(ne || (ne = {}));
|
|
3131
|
+
var He = (
|
|
3128
3132
|
/** @class */
|
|
3129
3133
|
function(e) {
|
|
3130
|
-
|
|
3134
|
+
Ae(t, e);
|
|
3131
3135
|
function t(r, n, i) {
|
|
3132
3136
|
var s = e.call(this, r) || this;
|
|
3133
3137
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3139,44 +3143,44 @@ var Te = (
|
|
|
3139
3143
|
), pt = (
|
|
3140
3144
|
/** @class */
|
|
3141
3145
|
function(e) {
|
|
3142
|
-
|
|
3146
|
+
Ae(t, e);
|
|
3143
3147
|
function t(r, n, i, s) {
|
|
3144
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3148
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, s) || this;
|
|
3145
3149
|
}
|
|
3146
3150
|
return t;
|
|
3147
|
-
}(
|
|
3148
|
-
),
|
|
3151
|
+
}(He)
|
|
3152
|
+
), Vn = (
|
|
3149
3153
|
/** @class */
|
|
3150
3154
|
function(e) {
|
|
3151
|
-
|
|
3155
|
+
Ae(t, e);
|
|
3152
3156
|
function t(r, n, i) {
|
|
3153
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3157
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3154
3158
|
}
|
|
3155
3159
|
return t;
|
|
3156
|
-
}(
|
|
3157
|
-
),
|
|
3160
|
+
}(He)
|
|
3161
|
+
), Jn = (
|
|
3158
3162
|
/** @class */
|
|
3159
3163
|
function(e) {
|
|
3160
|
-
|
|
3164
|
+
Ae(t, e);
|
|
3161
3165
|
function t(r, n) {
|
|
3162
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3166
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3163
3167
|
}
|
|
3164
3168
|
return t;
|
|
3165
|
-
}(
|
|
3169
|
+
}(He)
|
|
3166
3170
|
), R;
|
|
3167
3171
|
(function(e) {
|
|
3168
3172
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3169
3173
|
})(R || (R = {}));
|
|
3170
|
-
function
|
|
3174
|
+
function zn(e) {
|
|
3171
3175
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3172
3176
|
var n = t[t.length - 1];
|
|
3173
3177
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
3174
3178
|
}, []);
|
|
3175
3179
|
}
|
|
3176
|
-
function
|
|
3180
|
+
function Wn(e) {
|
|
3177
3181
|
return typeof e == "function";
|
|
3178
3182
|
}
|
|
3179
|
-
function
|
|
3183
|
+
function _e(e, t, r, n, i, s, a) {
|
|
3180
3184
|
if (e.length === 1 && ht(e[0]))
|
|
3181
3185
|
return [
|
|
3182
3186
|
{
|
|
@@ -3193,7 +3197,7 @@ function ye(e, t, r, n, i, s, a) {
|
|
|
3193
3197
|
});
|
|
3194
3198
|
continue;
|
|
3195
3199
|
}
|
|
3196
|
-
if (
|
|
3200
|
+
if (bn(h)) {
|
|
3197
3201
|
typeof s == "number" && u.push({
|
|
3198
3202
|
type: R.literal,
|
|
3199
3203
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3202,9 +3206,9 @@ function ye(e, t, r, n, i, s, a) {
|
|
|
3202
3206
|
}
|
|
3203
3207
|
var f = h.value;
|
|
3204
3208
|
if (!(i && f in i))
|
|
3205
|
-
throw new
|
|
3209
|
+
throw new Jn(f, a);
|
|
3206
3210
|
var c = i[f];
|
|
3207
|
-
if (
|
|
3211
|
+
if (dn(h)) {
|
|
3208
3212
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
|
3209
3213
|
type: typeof c == "string" ? R.literal : R.object,
|
|
3210
3214
|
value: c
|
|
@@ -3212,7 +3216,7 @@ function ye(e, t, r, n, i, s, a) {
|
|
|
3212
3216
|
continue;
|
|
3213
3217
|
}
|
|
3214
3218
|
if (Ut(h)) {
|
|
3215
|
-
var g = typeof h.style == "string" ? n.date[h.style] :
|
|
3219
|
+
var g = typeof h.style == "string" ? n.date[h.style] : ze(h.style) ? h.style.parsedOptions : void 0;
|
|
3216
3220
|
u.push({
|
|
3217
3221
|
type: R.literal,
|
|
3218
3222
|
value: r.getDateTimeFormat(t, g).format(c)
|
|
@@ -3220,7 +3224,7 @@ function ye(e, t, r, n, i, s, a) {
|
|
|
3220
3224
|
continue;
|
|
3221
3225
|
}
|
|
3222
3226
|
if (Ft(h)) {
|
|
3223
|
-
var g = typeof h.style == "string" ? n.time[h.style] :
|
|
3227
|
+
var g = typeof h.style == "string" ? n.time[h.style] : ze(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3224
3228
|
u.push({
|
|
3225
3229
|
type: R.literal,
|
|
3226
3230
|
value: r.getDateTimeFormat(t, g).format(c)
|
|
@@ -3237,15 +3241,15 @@ function ye(e, t, r, n, i, s, a) {
|
|
|
3237
3241
|
}
|
|
3238
3242
|
if (jt(h)) {
|
|
3239
3243
|
var b = h.children, y = h.value, d = i[y];
|
|
3240
|
-
if (!
|
|
3241
|
-
throw new
|
|
3242
|
-
var v =
|
|
3243
|
-
return
|
|
3244
|
+
if (!Wn(d))
|
|
3245
|
+
throw new Vn(y, "function", a);
|
|
3246
|
+
var v = _e(b, t, r, n, i, s), L = d(v.map(function(M) {
|
|
3247
|
+
return M.value;
|
|
3244
3248
|
}));
|
|
3245
|
-
Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(
|
|
3249
|
+
Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(M) {
|
|
3246
3250
|
return {
|
|
3247
|
-
type: typeof
|
|
3248
|
-
value:
|
|
3251
|
+
type: typeof M == "string" ? R.literal : R.object,
|
|
3252
|
+
value: M
|
|
3249
3253
|
};
|
|
3250
3254
|
}));
|
|
3251
3255
|
}
|
|
@@ -3253,38 +3257,38 @@ function ye(e, t, r, n, i, s, a) {
|
|
|
3253
3257
|
var I = h.options[c] || h.options.other;
|
|
3254
3258
|
if (!I)
|
|
3255
3259
|
throw new pt(h.value, c, Object.keys(h.options), a);
|
|
3256
|
-
u.push.apply(u,
|
|
3260
|
+
u.push.apply(u, _e(I.value, t, r, n, i));
|
|
3257
3261
|
continue;
|
|
3258
3262
|
}
|
|
3259
3263
|
if ($t(h)) {
|
|
3260
3264
|
var I = h.options["=".concat(c)];
|
|
3261
3265
|
if (!I) {
|
|
3262
3266
|
if (!Intl.PluralRules)
|
|
3263
|
-
throw new
|
|
3267
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3264
3268
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3265
|
-
`,
|
|
3269
|
+
`, ne.MISSING_INTL_API, a);
|
|
3266
3270
|
var A = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3267
3271
|
I = h.options[A] || h.options.other;
|
|
3268
3272
|
}
|
|
3269
3273
|
if (!I)
|
|
3270
3274
|
throw new pt(h.value, c, Object.keys(h.options), a);
|
|
3271
|
-
u.push.apply(u,
|
|
3275
|
+
u.push.apply(u, _e(I.value, t, r, n, i, c - (h.offset || 0)));
|
|
3272
3276
|
continue;
|
|
3273
3277
|
}
|
|
3274
3278
|
}
|
|
3275
|
-
return
|
|
3279
|
+
return zn(u);
|
|
3276
3280
|
}
|
|
3277
|
-
function
|
|
3278
|
-
return t ?
|
|
3279
|
-
return r[n] =
|
|
3281
|
+
function Xn(e, t) {
|
|
3282
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3283
|
+
return r[n] = j(j({}, e[n]), t[n] || {}), r;
|
|
3280
3284
|
}, {})) : e;
|
|
3281
3285
|
}
|
|
3282
|
-
function
|
|
3286
|
+
function Zn(e, t) {
|
|
3283
3287
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3284
|
-
return r[n] =
|
|
3285
|
-
},
|
|
3288
|
+
return r[n] = Xn(e[n], t[n]), r;
|
|
3289
|
+
}, j({}, e)) : e;
|
|
3286
3290
|
}
|
|
3287
|
-
function
|
|
3291
|
+
function Ue(e) {
|
|
3288
3292
|
return {
|
|
3289
3293
|
create: function() {
|
|
3290
3294
|
return {
|
|
@@ -3298,39 +3302,39 @@ function De(e) {
|
|
|
3298
3302
|
}
|
|
3299
3303
|
};
|
|
3300
3304
|
}
|
|
3301
|
-
function
|
|
3305
|
+
function qn(e) {
|
|
3302
3306
|
return e === void 0 && (e = {
|
|
3303
3307
|
number: {},
|
|
3304
3308
|
dateTime: {},
|
|
3305
3309
|
pluralRules: {}
|
|
3306
3310
|
}), {
|
|
3307
|
-
getNumberFormat:
|
|
3311
|
+
getNumberFormat: Re(function() {
|
|
3308
3312
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3309
3313
|
r[n] = arguments[n];
|
|
3310
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Le([void 0], r, !1)))();
|
|
3311
3315
|
}, {
|
|
3312
|
-
cache:
|
|
3313
|
-
strategy:
|
|
3316
|
+
cache: Ue(e.number),
|
|
3317
|
+
strategy: De.variadic
|
|
3314
3318
|
}),
|
|
3315
|
-
getDateTimeFormat:
|
|
3319
|
+
getDateTimeFormat: Re(function() {
|
|
3316
3320
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3317
3321
|
r[n] = arguments[n];
|
|
3318
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3322
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Le([void 0], r, !1)))();
|
|
3319
3323
|
}, {
|
|
3320
|
-
cache:
|
|
3321
|
-
strategy:
|
|
3324
|
+
cache: Ue(e.dateTime),
|
|
3325
|
+
strategy: De.variadic
|
|
3322
3326
|
}),
|
|
3323
|
-
getPluralRules:
|
|
3327
|
+
getPluralRules: Re(function() {
|
|
3324
3328
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3325
3329
|
r[n] = arguments[n];
|
|
3326
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Le([void 0], r, !1)))();
|
|
3327
3331
|
}, {
|
|
3328
|
-
cache:
|
|
3329
|
-
strategy:
|
|
3332
|
+
cache: Ue(e.pluralRules),
|
|
3333
|
+
strategy: De.variadic
|
|
3330
3334
|
})
|
|
3331
3335
|
};
|
|
3332
3336
|
}
|
|
3333
|
-
var
|
|
3337
|
+
var Qn = (
|
|
3334
3338
|
/** @class */
|
|
3335
3339
|
function() {
|
|
3336
3340
|
function e(t, r, n, i) {
|
|
@@ -3349,7 +3353,7 @@ var qn = (
|
|
|
3349
3353
|
}, []);
|
|
3350
3354
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3351
3355
|
}, this.formatToParts = function(l) {
|
|
3352
|
-
return
|
|
3356
|
+
return _e(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3353
3357
|
}, this.resolvedOptions = function() {
|
|
3354
3358
|
var l;
|
|
3355
3359
|
return {
|
|
@@ -3363,12 +3367,12 @@ var qn = (
|
|
|
3363
3367
|
var a = i || {};
|
|
3364
3368
|
a.formatters;
|
|
3365
3369
|
var u = an(a, ["formatters"]);
|
|
3366
|
-
this.ast = e.__parse(t,
|
|
3370
|
+
this.ast = e.__parse(t, j(j({}, u), { locale: this.resolvedLocale }));
|
|
3367
3371
|
} else
|
|
3368
3372
|
this.ast = t;
|
|
3369
3373
|
if (!Array.isArray(this.ast))
|
|
3370
3374
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3371
|
-
this.formats =
|
|
3375
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || qn(this.formatterCache);
|
|
3372
3376
|
}
|
|
3373
3377
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3374
3378
|
get: function() {
|
|
@@ -3381,7 +3385,7 @@ var qn = (
|
|
|
3381
3385
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3382
3386
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3383
3387
|
}
|
|
3384
|
-
}, e.__parse =
|
|
3388
|
+
}, e.__parse = jn, e.formats = {
|
|
3385
3389
|
number: {
|
|
3386
3390
|
integer: {
|
|
3387
3391
|
maximumFractionDigits: 0
|
|
@@ -3442,7 +3446,7 @@ var qn = (
|
|
|
3442
3446
|
}, e;
|
|
3443
3447
|
}()
|
|
3444
3448
|
);
|
|
3445
|
-
function
|
|
3449
|
+
function Yn(e, t) {
|
|
3446
3450
|
if (t == null)
|
|
3447
3451
|
return;
|
|
3448
3452
|
if (t in e)
|
|
@@ -3463,36 +3467,36 @@ function Qn(e, t) {
|
|
|
3463
3467
|
n = void 0;
|
|
3464
3468
|
return n;
|
|
3465
3469
|
}
|
|
3466
|
-
const
|
|
3470
|
+
const J = {}, Kn = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), Yt = (e, t) => {
|
|
3467
3471
|
if (t == null)
|
|
3468
3472
|
return;
|
|
3469
|
-
if (t in
|
|
3470
|
-
return
|
|
3471
|
-
const r =
|
|
3473
|
+
if (t in J && e in J[t])
|
|
3474
|
+
return J[t][e];
|
|
3475
|
+
const r = Ce(t);
|
|
3472
3476
|
for (let n = 0; n < r.length; n++) {
|
|
3473
|
-
const i = r[n], s =
|
|
3477
|
+
const i = r[n], s = ti(i, e);
|
|
3474
3478
|
if (s)
|
|
3475
|
-
return
|
|
3479
|
+
return Kn(e, t, s);
|
|
3476
3480
|
}
|
|
3477
3481
|
};
|
|
3478
3482
|
let et;
|
|
3479
|
-
const
|
|
3480
|
-
function
|
|
3483
|
+
const oe = Te({});
|
|
3484
|
+
function ei(e) {
|
|
3481
3485
|
return et[e] || null;
|
|
3482
3486
|
}
|
|
3483
3487
|
function Kt(e) {
|
|
3484
3488
|
return e in et;
|
|
3485
3489
|
}
|
|
3486
|
-
function
|
|
3490
|
+
function ti(e, t) {
|
|
3487
3491
|
if (!Kt(e))
|
|
3488
3492
|
return null;
|
|
3489
|
-
const r =
|
|
3490
|
-
return
|
|
3493
|
+
const r = ei(e);
|
|
3494
|
+
return Yn(r, t);
|
|
3491
3495
|
}
|
|
3492
|
-
function
|
|
3496
|
+
function ri(e) {
|
|
3493
3497
|
if (e == null)
|
|
3494
3498
|
return;
|
|
3495
|
-
const t =
|
|
3499
|
+
const t = Ce(e);
|
|
3496
3500
|
for (let r = 0; r < t.length; r++) {
|
|
3497
3501
|
const n = t[r];
|
|
3498
3502
|
if (Kt(n))
|
|
@@ -3500,55 +3504,55 @@ function ti(e) {
|
|
|
3500
3504
|
}
|
|
3501
3505
|
}
|
|
3502
3506
|
function er(e, ...t) {
|
|
3503
|
-
delete
|
|
3507
|
+
delete J[e], oe.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3504
3508
|
}
|
|
3505
|
-
|
|
3506
|
-
[
|
|
3509
|
+
ae(
|
|
3510
|
+
[oe],
|
|
3507
3511
|
([e]) => Object.keys(e)
|
|
3508
3512
|
);
|
|
3509
|
-
|
|
3510
|
-
const
|
|
3511
|
-
function
|
|
3512
|
-
|
|
3513
|
+
oe.subscribe((e) => et = e);
|
|
3514
|
+
const Ee = {};
|
|
3515
|
+
function ni(e, t) {
|
|
3516
|
+
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
3513
3517
|
}
|
|
3514
3518
|
function tr(e) {
|
|
3515
|
-
return
|
|
3519
|
+
return Ee[e];
|
|
3516
3520
|
}
|
|
3517
|
-
function
|
|
3518
|
-
return
|
|
3521
|
+
function ii(e) {
|
|
3522
|
+
return Ce(e).map((t) => {
|
|
3519
3523
|
const r = tr(t);
|
|
3520
3524
|
return [t, r ? [...r] : []];
|
|
3521
3525
|
}).filter(([, t]) => t.length > 0);
|
|
3522
3526
|
}
|
|
3523
|
-
function
|
|
3524
|
-
return e == null ? !1 :
|
|
3527
|
+
function Ye(e) {
|
|
3528
|
+
return e == null ? !1 : Ce(e).some(
|
|
3525
3529
|
(t) => {
|
|
3526
3530
|
var r;
|
|
3527
3531
|
return (r = tr(t)) == null ? void 0 : r.size;
|
|
3528
3532
|
}
|
|
3529
3533
|
);
|
|
3530
3534
|
}
|
|
3531
|
-
function
|
|
3535
|
+
function si(e, t) {
|
|
3532
3536
|
return Promise.all(
|
|
3533
|
-
t.map((n) => (
|
|
3537
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
3534
3538
|
).then((n) => er(e, ...n));
|
|
3535
3539
|
}
|
|
3536
|
-
const
|
|
3540
|
+
const le = {};
|
|
3537
3541
|
function rr(e) {
|
|
3538
|
-
if (!
|
|
3539
|
-
return e in
|
|
3540
|
-
const t =
|
|
3541
|
-
return
|
|
3542
|
+
if (!Ye(e))
|
|
3543
|
+
return e in le ? le[e] : Promise.resolve();
|
|
3544
|
+
const t = ii(e);
|
|
3545
|
+
return le[e] = Promise.all(
|
|
3542
3546
|
t.map(
|
|
3543
|
-
([r, n]) =>
|
|
3547
|
+
([r, n]) => si(r, n)
|
|
3544
3548
|
)
|
|
3545
3549
|
).then(() => {
|
|
3546
|
-
if (
|
|
3550
|
+
if (Ye(e))
|
|
3547
3551
|
return rr(e);
|
|
3548
|
-
delete
|
|
3549
|
-
}),
|
|
3552
|
+
delete le[e];
|
|
3553
|
+
}), le[e];
|
|
3550
3554
|
}
|
|
3551
|
-
const
|
|
3555
|
+
const ai = {
|
|
3552
3556
|
number: {
|
|
3553
3557
|
scientific: { notation: "scientific" },
|
|
3554
3558
|
engineering: { notation: "engineering" },
|
|
@@ -3577,141 +3581,141 @@ const si = {
|
|
|
3577
3581
|
timeZoneName: "short"
|
|
3578
3582
|
}
|
|
3579
3583
|
}
|
|
3580
|
-
},
|
|
3584
|
+
}, oi = {
|
|
3581
3585
|
fallbackLocale: null,
|
|
3582
3586
|
loadingDelay: 200,
|
|
3583
|
-
formats:
|
|
3587
|
+
formats: ai,
|
|
3584
3588
|
warnOnMissingMessages: !0,
|
|
3585
3589
|
handleMissingMessage: void 0,
|
|
3586
3590
|
ignoreTag: !0
|
|
3587
|
-
},
|
|
3588
|
-
function
|
|
3589
|
-
return
|
|
3591
|
+
}, ui = oi;
|
|
3592
|
+
function ie() {
|
|
3593
|
+
return ui;
|
|
3590
3594
|
}
|
|
3591
|
-
const
|
|
3592
|
-
var
|
|
3595
|
+
const Fe = Te(!1);
|
|
3596
|
+
var li = Object.defineProperty, hi = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
3593
3597
|
for (var r in t || (t = {}))
|
|
3594
|
-
|
|
3598
|
+
fi.call(t, r) && _t(e, r, t[r]);
|
|
3595
3599
|
if (yt)
|
|
3596
3600
|
for (var r of yt(t))
|
|
3597
|
-
|
|
3601
|
+
mi.call(t, r) && _t(e, r, t[r]);
|
|
3598
3602
|
return e;
|
|
3599
|
-
},
|
|
3600
|
-
let
|
|
3601
|
-
const xe =
|
|
3602
|
-
function
|
|
3603
|
+
}, bi = (e, t) => hi(e, ci(t));
|
|
3604
|
+
let Ke;
|
|
3605
|
+
const xe = Te(null);
|
|
3606
|
+
function Et(e) {
|
|
3603
3607
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3604
3608
|
}
|
|
3605
|
-
function
|
|
3606
|
-
const r =
|
|
3607
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3609
|
+
function Ce(e, t = ie().fallbackLocale) {
|
|
3610
|
+
const r = Et(e);
|
|
3611
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
3608
3612
|
}
|
|
3609
|
-
function
|
|
3610
|
-
return
|
|
3613
|
+
function X() {
|
|
3614
|
+
return Ke != null ? Ke : void 0;
|
|
3611
3615
|
}
|
|
3612
3616
|
xe.subscribe((e) => {
|
|
3613
|
-
|
|
3617
|
+
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3614
3618
|
});
|
|
3615
|
-
const
|
|
3616
|
-
if (e &&
|
|
3617
|
-
const { loadingDelay: t } =
|
|
3619
|
+
const gi = (e) => {
|
|
3620
|
+
if (e && ri(e) && Ye(e)) {
|
|
3621
|
+
const { loadingDelay: t } = ie();
|
|
3618
3622
|
let r;
|
|
3619
|
-
return typeof window != "undefined" &&
|
|
3620
|
-
() =>
|
|
3623
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
3624
|
+
() => Fe.set(!0),
|
|
3621
3625
|
t
|
|
3622
|
-
) :
|
|
3626
|
+
) : Fe.set(!0), rr(e).then(() => {
|
|
3623
3627
|
xe.set(e);
|
|
3624
3628
|
}).finally(() => {
|
|
3625
|
-
clearTimeout(r),
|
|
3629
|
+
clearTimeout(r), Fe.set(!1);
|
|
3626
3630
|
});
|
|
3627
3631
|
}
|
|
3628
3632
|
return xe.set(e);
|
|
3629
|
-
},
|
|
3630
|
-
set:
|
|
3631
|
-
}),
|
|
3633
|
+
}, z = bi(di({}, xe), {
|
|
3634
|
+
set: gi
|
|
3635
|
+
}), Be = (e) => {
|
|
3632
3636
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3633
3637
|
return (n) => {
|
|
3634
3638
|
const i = JSON.stringify(n);
|
|
3635
3639
|
return i in t ? t[i] : t[i] = e(n);
|
|
3636
3640
|
};
|
|
3637
3641
|
};
|
|
3638
|
-
var
|
|
3642
|
+
var pi = Object.defineProperty, Se = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
3639
3643
|
for (var r in t || (t = {}))
|
|
3640
|
-
nr.call(t, r) &&
|
|
3641
|
-
if (
|
|
3642
|
-
for (var r of
|
|
3643
|
-
ir.call(t, r) &&
|
|
3644
|
+
nr.call(t, r) && vt(e, r, t[r]);
|
|
3645
|
+
if (Se)
|
|
3646
|
+
for (var r of Se(t))
|
|
3647
|
+
ir.call(t, r) && vt(e, r, t[r]);
|
|
3644
3648
|
return e;
|
|
3645
|
-
},
|
|
3649
|
+
}, ue = (e, t) => {
|
|
3646
3650
|
var r = {};
|
|
3647
3651
|
for (var n in e)
|
|
3648
3652
|
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3649
|
-
if (e != null &&
|
|
3650
|
-
for (var n of
|
|
3653
|
+
if (e != null && Se)
|
|
3654
|
+
for (var n of Se(e))
|
|
3651
3655
|
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
3652
3656
|
return r;
|
|
3653
3657
|
};
|
|
3654
|
-
const
|
|
3655
|
-
const { formats: r } =
|
|
3658
|
+
const me = (e, t) => {
|
|
3659
|
+
const { formats: r } = ie();
|
|
3656
3660
|
if (e in r && t in r[e])
|
|
3657
3661
|
return r[e][t];
|
|
3658
3662
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3659
|
-
},
|
|
3663
|
+
}, yi = Be(
|
|
3660
3664
|
(e) => {
|
|
3661
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3665
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3662
3666
|
if (r == null)
|
|
3663
3667
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3664
|
-
return n && (i =
|
|
3668
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
3665
3669
|
}
|
|
3666
|
-
),
|
|
3670
|
+
), _i = Be(
|
|
3667
3671
|
(e) => {
|
|
3668
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3672
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3669
3673
|
if (r == null)
|
|
3670
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3671
|
-
return n ? i =
|
|
3675
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3672
3676
|
}
|
|
3673
|
-
),
|
|
3677
|
+
), Ei = Be(
|
|
3674
3678
|
(e) => {
|
|
3675
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3679
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3676
3680
|
if (r == null)
|
|
3677
3681
|
throw new Error(
|
|
3678
3682
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3679
3683
|
);
|
|
3680
|
-
return n ? i =
|
|
3684
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3681
3685
|
}
|
|
3682
|
-
),
|
|
3686
|
+
), vi = (e = {}) => {
|
|
3683
3687
|
var t = e, {
|
|
3684
|
-
locale: r =
|
|
3685
|
-
} = t, n =
|
|
3688
|
+
locale: r = X()
|
|
3689
|
+
} = t, n = ue(t, [
|
|
3686
3690
|
"locale"
|
|
3687
3691
|
]);
|
|
3688
|
-
return
|
|
3689
|
-
},
|
|
3692
|
+
return yi(tt({ locale: r }, n));
|
|
3693
|
+
}, xi = (e = {}) => {
|
|
3690
3694
|
var t = e, {
|
|
3691
|
-
locale: r =
|
|
3692
|
-
} = t, n =
|
|
3695
|
+
locale: r = X()
|
|
3696
|
+
} = t, n = ue(t, [
|
|
3693
3697
|
"locale"
|
|
3694
3698
|
]);
|
|
3695
|
-
return
|
|
3696
|
-
},
|
|
3699
|
+
return _i(tt({ locale: r }, n));
|
|
3700
|
+
}, Si = (e = {}) => {
|
|
3697
3701
|
var t = e, {
|
|
3698
|
-
locale: r =
|
|
3699
|
-
} = t, n =
|
|
3702
|
+
locale: r = X()
|
|
3703
|
+
} = t, n = ue(t, [
|
|
3700
3704
|
"locale"
|
|
3701
3705
|
]);
|
|
3702
|
-
return
|
|
3703
|
-
},
|
|
3706
|
+
return Ei(tt({ locale: r }, n));
|
|
3707
|
+
}, Ti = Be(
|
|
3704
3708
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3705
|
-
(e, t =
|
|
3706
|
-
ignoreTag:
|
|
3709
|
+
(e, t = X()) => new Qn(e, t, ie().formats, {
|
|
3710
|
+
ignoreTag: ie().ignoreTag
|
|
3707
3711
|
})
|
|
3708
|
-
),
|
|
3712
|
+
), Ai = (e, t = {}) => {
|
|
3709
3713
|
var r, n, i, s;
|
|
3710
3714
|
let a = t;
|
|
3711
3715
|
typeof e == "object" && (a = e, e = a.id);
|
|
3712
3716
|
const {
|
|
3713
3717
|
values: u,
|
|
3714
|
-
locale: l =
|
|
3718
|
+
locale: l = X(),
|
|
3715
3719
|
default: o
|
|
3716
3720
|
} = a;
|
|
3717
3721
|
if (l == null)
|
|
@@ -3720,7 +3724,7 @@ const fe = (e, t) => {
|
|
|
3720
3724
|
);
|
|
3721
3725
|
let h = Yt(e, l);
|
|
3722
3726
|
if (!h)
|
|
3723
|
-
h = (s = (i = (n = (r =
|
|
3727
|
+
h = (s = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3724
3728
|
else if (typeof h != "string")
|
|
3725
3729
|
return console.warn(
|
|
3726
3730
|
`[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.`
|
|
@@ -3729,7 +3733,7 @@ const fe = (e, t) => {
|
|
|
3729
3733
|
return h;
|
|
3730
3734
|
let f = h;
|
|
3731
3735
|
try {
|
|
3732
|
-
f =
|
|
3736
|
+
f = Ti(h, l).format(u);
|
|
3733
3737
|
} catch (c) {
|
|
3734
3738
|
c instanceof Error && console.warn(
|
|
3735
3739
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3737,21 +3741,21 @@ const fe = (e, t) => {
|
|
|
3737
3741
|
);
|
|
3738
3742
|
}
|
|
3739
3743
|
return f;
|
|
3740
|
-
},
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
function
|
|
3746
|
-
|
|
3747
|
-
r == null && (
|
|
3744
|
+
}, Hi = (e, t) => Si(t).format(e), Ci = (e, t) => xi(t).format(e), Bi = (e, t) => vi(t).format(e), wi = (e, t = X()) => Yt(e, t), Ii = ae([z, oe], () => Ai);
|
|
3745
|
+
ae([z], () => Hi);
|
|
3746
|
+
ae([z], () => Ci);
|
|
3747
|
+
ae([z], () => Bi);
|
|
3748
|
+
ae([z, oe], () => wi);
|
|
3749
|
+
function Ni({ withLocale: e, translations: t }) {
|
|
3750
|
+
z.subscribe((r) => {
|
|
3751
|
+
r == null && (oe.set(t), z.set(e));
|
|
3748
3752
|
});
|
|
3749
3753
|
}
|
|
3750
|
-
function
|
|
3754
|
+
function xt(e, t) {
|
|
3751
3755
|
er(e, t);
|
|
3752
3756
|
}
|
|
3753
|
-
function
|
|
3754
|
-
|
|
3757
|
+
function Oi(e) {
|
|
3758
|
+
z.set(e);
|
|
3755
3759
|
}
|
|
3756
3760
|
const St = {
|
|
3757
3761
|
en: {
|
|
@@ -4085,13 +4089,13 @@ const St = {
|
|
|
4085
4089
|
December: "December"
|
|
4086
4090
|
}
|
|
4087
4091
|
};
|
|
4088
|
-
function
|
|
4092
|
+
function Pi(e, t) {
|
|
4089
4093
|
if (e) {
|
|
4090
4094
|
const r = document.createElement("style");
|
|
4091
4095
|
r.innerHTML = t, e.appendChild(r);
|
|
4092
4096
|
}
|
|
4093
4097
|
}
|
|
4094
|
-
function
|
|
4098
|
+
function Mi(e, t) {
|
|
4095
4099
|
const r = new URL(t);
|
|
4096
4100
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4097
4101
|
const i = document.createElement("style");
|
|
@@ -4100,7 +4104,7 @@ function Oi(e, t) {
|
|
|
4100
4104
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4101
4105
|
});
|
|
4102
4106
|
}
|
|
4103
|
-
function
|
|
4107
|
+
function Li(e, t, r) {
|
|
4104
4108
|
if (window.emMessageBus) {
|
|
4105
4109
|
const n = document.createElement("style");
|
|
4106
4110
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4108,8 +4112,8 @@ function Pi(e, t, r) {
|
|
|
4108
4112
|
});
|
|
4109
4113
|
}
|
|
4110
4114
|
}
|
|
4111
|
-
function
|
|
4112
|
-
|
|
4115
|
+
function Ri(e) {
|
|
4116
|
+
Er(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}');
|
|
4113
4117
|
}
|
|
4114
4118
|
function Tt(e) {
|
|
4115
4119
|
let t, r, n;
|
|
@@ -4118,7 +4122,7 @@ function Tt(e) {
|
|
|
4118
4122
|
t = B("div"), t.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', r = $(), n = B("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");
|
|
4119
4123
|
},
|
|
4120
4124
|
m(i, s) {
|
|
4121
|
-
|
|
4125
|
+
P(i, t, s), P(i, r, s), P(i, n, s);
|
|
4122
4126
|
},
|
|
4123
4127
|
d(i) {
|
|
4124
4128
|
i && (w(t), w(r), w(n));
|
|
@@ -4136,7 +4140,7 @@ function At(e) {
|
|
|
4136
4140
|
function f(d, v) {
|
|
4137
4141
|
return (
|
|
4138
4142
|
/*thumbnail*/
|
|
4139
|
-
d[3] ?
|
|
4143
|
+
d[3] ? ki : Di
|
|
4140
4144
|
);
|
|
4141
4145
|
}
|
|
4142
4146
|
let c = f(e), g = c(e), b = (
|
|
@@ -4154,7 +4158,7 @@ function At(e) {
|
|
|
4154
4158
|
), u = $(), b && b.c(), l = $(), y && y.c(), p(s, "class", "Title"), p(s, "part", "Title"), p(i, "class", "Details"), p(i, "part", "Details");
|
|
4155
4159
|
},
|
|
4156
4160
|
m(d, v) {
|
|
4157
|
-
o && o.m(d, v),
|
|
4161
|
+
o && o.m(d, v), P(d, t, v), h && h.m(d, v), P(d, r, v), g.m(d, v), P(d, n, v), P(d, i, v), x(i, s), x(s, a), x(i, u), b && b.m(i, null), x(i, l), y && y.m(i, null);
|
|
4158
4162
|
},
|
|
4159
4163
|
p(d, v) {
|
|
4160
4164
|
/*status*/
|
|
@@ -4185,7 +4189,7 @@ function Ht(e) {
|
|
|
4185
4189
|
e[14]);
|
|
4186
4190
|
},
|
|
4187
4191
|
m(u, l) {
|
|
4188
|
-
|
|
4192
|
+
P(u, t, l), x(t, r), s || (a = be(
|
|
4189
4193
|
/*matchStatus*/
|
|
4190
4194
|
e[17].call(null, t)
|
|
4191
4195
|
), s = !0);
|
|
@@ -4217,7 +4221,7 @@ function Ct(e) {
|
|
|
4217
4221
|
r && r.c(), t = Sr();
|
|
4218
4222
|
},
|
|
4219
4223
|
m(n, i) {
|
|
4220
|
-
r && r.m(n, i),
|
|
4224
|
+
r && r.m(n, i), P(n, t, i);
|
|
4221
4225
|
},
|
|
4222
4226
|
p(n, i) {
|
|
4223
4227
|
/*userenrolled*/
|
|
@@ -4238,7 +4242,7 @@ function Bt(e) {
|
|
|
4238
4242
|
t = B("div"), n = D(r), p(t, "class", "Enrolled"), p(t, "part", "Enrolled");
|
|
4239
4243
|
},
|
|
4240
4244
|
m(i, s) {
|
|
4241
|
-
|
|
4245
|
+
P(i, t, s), x(t, n);
|
|
4242
4246
|
},
|
|
4243
4247
|
p(i, s) {
|
|
4244
4248
|
s[0] & /*$_*/
|
|
@@ -4250,18 +4254,18 @@ function Bt(e) {
|
|
|
4250
4254
|
}
|
|
4251
4255
|
};
|
|
4252
4256
|
}
|
|
4253
|
-
function
|
|
4257
|
+
function Di(e) {
|
|
4254
4258
|
let t, r, n, i, s, a, u;
|
|
4255
4259
|
return {
|
|
4256
4260
|
c() {
|
|
4257
|
-
t = B("div"), r = B("ui-image"),
|
|
4261
|
+
t = B("div"), r = B("ui-image"), Ge(r.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || K(r, "src", n), K(r, "alt", "icon"), p(t, "class", i = "CardImg " + /*status*/
|
|
4258
4262
|
(e[0] == "Closing" || /*status*/
|
|
4259
4263
|
e[0] == "Closed" ? "CardImgFinished" : "")), p(t, "part", s = "CardImg " + /*status*/
|
|
4260
4264
|
(e[0] == "Closing" || /*status*/
|
|
4261
4265
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4262
4266
|
},
|
|
4263
4267
|
m(l, o) {
|
|
4264
|
-
|
|
4268
|
+
P(l, t, o), x(t, r), a || (u = be(
|
|
4265
4269
|
/*matchStatus*/
|
|
4266
4270
|
e[17].call(null, t)
|
|
4267
4271
|
), a = !0);
|
|
@@ -4280,27 +4284,27 @@ function Ri(e) {
|
|
|
4280
4284
|
}
|
|
4281
4285
|
};
|
|
4282
4286
|
}
|
|
4283
|
-
function
|
|
4287
|
+
function ki(e) {
|
|
4284
4288
|
let t, r, n, i, s, a, u;
|
|
4285
4289
|
return {
|
|
4286
4290
|
c() {
|
|
4287
|
-
t = B("div"), r = B("ui-image"),
|
|
4288
|
-
e[3]) ||
|
|
4291
|
+
t = B("div"), r = B("ui-image"), K(r, "class", "UIImage"), Ge(r.src, n = /*thumbnail*/
|
|
4292
|
+
e[3]) || K(r, "src", n), K(r, "alt", "icon"), p(t, "class", i = "CardImg " + /*status*/
|
|
4289
4293
|
(e[0] == "Closing" || /*status*/
|
|
4290
4294
|
e[0] == "Closed" ? "CardImgFinished" : "")), p(t, "part", s = "CardImg " + /*status*/
|
|
4291
4295
|
(e[0] == "Closing" || /*status*/
|
|
4292
4296
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4293
4297
|
},
|
|
4294
4298
|
m(l, o) {
|
|
4295
|
-
|
|
4299
|
+
P(l, t, o), x(t, r), a || (u = be(
|
|
4296
4300
|
/*matchStatus*/
|
|
4297
4301
|
e[17].call(null, t)
|
|
4298
4302
|
), a = !0);
|
|
4299
4303
|
},
|
|
4300
4304
|
p(l, o) {
|
|
4301
4305
|
o[0] & /*thumbnail*/
|
|
4302
|
-
8 && !
|
|
4303
|
-
l[3]) &&
|
|
4306
|
+
8 && !Ge(r.src, n = /*thumbnail*/
|
|
4307
|
+
l[3]) && K(r, "src", n), o[0] & /*status*/
|
|
4304
4308
|
1 && i !== (i = "CardImg " + /*status*/
|
|
4305
4309
|
(l[0] == "Closing" || /*status*/
|
|
4306
4310
|
l[0] == "Closed" ? "CardImgFinished" : "")) && p(t, "class", i), o[0] & /*status*/
|
|
@@ -4323,7 +4327,7 @@ function wt(e) {
|
|
|
4323
4327
|
), p(t, "class", "Date"), p(t, "part", "Date");
|
|
4324
4328
|
},
|
|
4325
4329
|
m(a, u) {
|
|
4326
|
-
|
|
4330
|
+
P(a, t, u), x(t, r), i || (s = be(n = /*formatDate*/
|
|
4327
4331
|
e[16].call(
|
|
4328
4332
|
null,
|
|
4329
4333
|
t,
|
|
@@ -4337,7 +4341,7 @@ function wt(e) {
|
|
|
4337
4341
|
r,
|
|
4338
4342
|
/*shownDate*/
|
|
4339
4343
|
a[10]
|
|
4340
|
-
), n &&
|
|
4344
|
+
), n && de(n.update) && u[0] & /*startdate*/
|
|
4341
4345
|
4 && n.update.call(
|
|
4342
4346
|
null,
|
|
4343
4347
|
/*startdate*/
|
|
@@ -4359,10 +4363,10 @@ function It(e) {
|
|
|
4359
4363
|
), h, f, c, g, b, y, d, v = (
|
|
4360
4364
|
/*$_*/
|
|
4361
4365
|
e[15]("seegames") + ""
|
|
4362
|
-
), L, I, A,
|
|
4366
|
+
), L, I, A, M = (
|
|
4363
4367
|
/*$_*/
|
|
4364
4368
|
e[15]("here") + ""
|
|
4365
|
-
), N, F,
|
|
4369
|
+
), N, F, V, W;
|
|
4366
4370
|
return {
|
|
4367
4371
|
c() {
|
|
4368
4372
|
t = B("div"), r = B("p"), i = D(n), s = D(`:
|
|
@@ -4374,7 +4378,7 @@ function It(e) {
|
|
|
4374
4378
|
(`), h = D(o), f = $(), c = D(
|
|
4375
4379
|
/*minbetcount*/
|
|
4376
4380
|
e[5]
|
|
4377
|
-
), g = D(")"), b = $(), y = B("div"), d = B("p"), L = D(v), I = $(), A = B("a"), N = D(
|
|
4381
|
+
), g = D(")"), b = $(), y = B("div"), d = B("p"), L = D(v), I = $(), A = B("a"), N = D(M), p(a, "part", "ScoreCriteriaSpan"), p(r, "part", "ScoreCriteriaP"), p(t, "class", "ScoreCriteria"), p(t, "part", "ScoreCriteria"), p(A, "part", "GamesAnchor"), p(
|
|
4378
4382
|
A,
|
|
4379
4383
|
"href",
|
|
4380
4384
|
/*gameurl*/
|
|
@@ -4382,9 +4386,9 @@ function It(e) {
|
|
|
4382
4386
|
), p(A, "target", F = /*keepbrowsercontext*/
|
|
4383
4387
|
e[8] === "true" ? "_self" : "_blank"), p(d, "part", "GamesP"), p(y, "class", "Games"), p(y, "part", "Games");
|
|
4384
4388
|
},
|
|
4385
|
-
m(H,
|
|
4386
|
-
|
|
4387
|
-
|
|
4389
|
+
m(H, O) {
|
|
4390
|
+
P(H, t, O), x(t, r), x(r, i), x(r, s), x(r, a), x(a, u), x(r, l), x(r, h), x(r, f), x(r, c), x(r, g), P(H, b, O), P(H, y, O), x(y, d), x(d, L), x(d, I), x(d, A), x(A, N), V || (W = [
|
|
4391
|
+
be(
|
|
4388
4392
|
/*matchScoreCriteria*/
|
|
4389
4393
|
e[18].call(null, a)
|
|
4390
4394
|
),
|
|
@@ -4394,43 +4398,43 @@ function It(e) {
|
|
|
4394
4398
|
/*tournamentGamesClicked*/
|
|
4395
4399
|
e[19]
|
|
4396
4400
|
)
|
|
4397
|
-
],
|
|
4401
|
+
], V = !0);
|
|
4398
4402
|
},
|
|
4399
|
-
p(H,
|
|
4400
|
-
|
|
4403
|
+
p(H, O) {
|
|
4404
|
+
O[0] & /*$_*/
|
|
4401
4405
|
32768 && n !== (n = /*$_*/
|
|
4402
|
-
H[15]("scoreCriteria") + "") && G(i, n),
|
|
4406
|
+
H[15]("scoreCriteria") + "") && G(i, n), O[0] & /*showScoreCriteria*/
|
|
4403
4407
|
8192 && G(
|
|
4404
4408
|
u,
|
|
4405
4409
|
/*showScoreCriteria*/
|
|
4406
4410
|
H[13]
|
|
4407
|
-
),
|
|
4411
|
+
), O[0] & /*$_*/
|
|
4408
4412
|
32768 && o !== (o = /*$_*/
|
|
4409
|
-
H[15]("minbet") + "") && G(h, o),
|
|
4413
|
+
H[15]("minbet") + "") && G(h, o), O[0] & /*minbetcount*/
|
|
4410
4414
|
32 && G(
|
|
4411
4415
|
c,
|
|
4412
4416
|
/*minbetcount*/
|
|
4413
4417
|
H[5]
|
|
4414
|
-
),
|
|
4418
|
+
), O[0] & /*$_*/
|
|
4415
4419
|
32768 && v !== (v = /*$_*/
|
|
4416
|
-
H[15]("seegames") + "") && G(L, v),
|
|
4417
|
-
32768 &&
|
|
4418
|
-
H[15]("here") + "") && G(N,
|
|
4420
|
+
H[15]("seegames") + "") && G(L, v), O[0] & /*$_*/
|
|
4421
|
+
32768 && M !== (M = /*$_*/
|
|
4422
|
+
H[15]("here") + "") && G(N, M), O[0] & /*gameurl*/
|
|
4419
4423
|
128 && p(
|
|
4420
4424
|
A,
|
|
4421
4425
|
"href",
|
|
4422
4426
|
/*gameurl*/
|
|
4423
4427
|
H[7]
|
|
4424
|
-
),
|
|
4428
|
+
), O[0] & /*keepbrowsercontext*/
|
|
4425
4429
|
256 && F !== (F = /*keepbrowsercontext*/
|
|
4426
4430
|
H[8] === "true" ? "_self" : "_blank") && p(A, "target", F);
|
|
4427
4431
|
},
|
|
4428
4432
|
d(H) {
|
|
4429
|
-
H && (w(t), w(b), w(y)),
|
|
4433
|
+
H && (w(t), w(b), w(y)), V = !1, se(W);
|
|
4430
4434
|
}
|
|
4431
4435
|
};
|
|
4432
4436
|
}
|
|
4433
|
-
function
|
|
4437
|
+
function Ui(e) {
|
|
4434
4438
|
let t, r, n, i = (
|
|
4435
4439
|
/*title*/
|
|
4436
4440
|
e[1] === "undefined" && Tt()
|
|
@@ -4444,7 +4448,7 @@ function ki(e) {
|
|
|
4444
4448
|
e[1] === "undefined" ? "Loading" : ""}`), p(t, "part", "Thumbnail");
|
|
4445
4449
|
},
|
|
4446
4450
|
m(a, u) {
|
|
4447
|
-
|
|
4451
|
+
P(a, t, u), i && i.m(t, null), x(t, r), s && s.m(t, null), e[29](t);
|
|
4448
4452
|
},
|
|
4449
4453
|
p(a, u) {
|
|
4450
4454
|
/*title*/
|
|
@@ -4460,67 +4464,67 @@ function ki(e) {
|
|
|
4460
4464
|
}
|
|
4461
4465
|
};
|
|
4462
4466
|
}
|
|
4463
|
-
function
|
|
4467
|
+
function Fi(e, t, r) {
|
|
4464
4468
|
let n;
|
|
4465
|
-
_r(e,
|
|
4466
|
-
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: v = "false" } = t, { clientstyling: L = "" } = t, { clientstylingurl: I = "" } = t, { translationurl: A = "" } = t, { mbsource:
|
|
4467
|
-
|
|
4469
|
+
_r(e, Ii, (m) => r(15, n = m));
|
|
4470
|
+
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: v = "false" } = t, { clientstyling: L = "" } = t, { clientstylingurl: I = "" } = t, { translationurl: A = "" } = t, { mbsource: M } = t, N, F = "", V = !1, W = "", H = "", O = "";
|
|
4471
|
+
Ni({ withLocale: "en", translations: {} });
|
|
4468
4472
|
const sr = () => {
|
|
4469
4473
|
fetch(A).then((m) => m.json()).then((m) => {
|
|
4470
|
-
Object.keys(m).forEach((
|
|
4471
|
-
|
|
4472
|
-
}), u &&
|
|
4474
|
+
Object.keys(m).forEach((Z) => {
|
|
4475
|
+
xt(Z, m[Z]);
|
|
4476
|
+
}), u && Oe();
|
|
4473
4477
|
}).catch((m) => {
|
|
4474
4478
|
console.log(m);
|
|
4475
4479
|
});
|
|
4476
4480
|
};
|
|
4477
4481
|
Object.keys(St).forEach((m) => {
|
|
4478
|
-
|
|
4482
|
+
xt(m, St[m]);
|
|
4479
4483
|
});
|
|
4480
4484
|
const rt = (m) => {
|
|
4481
|
-
m.data && (m.data && m.data.type == "SessionID" && r(11,
|
|
4482
|
-
},
|
|
4485
|
+
m.data && (m.data && m.data.type == "SessionID" && r(11, V = !0), m.data.type == `TournamentStatus_${o}` && r(0, l = m.data.status));
|
|
4486
|
+
}, we = () => {
|
|
4483
4487
|
const m = { month: "long" };
|
|
4484
|
-
let
|
|
4488
|
+
let Z = new Date(u), lr = new Intl.DateTimeFormat("en", m).format(Z), hr = Z.getDate(), cr = Z.toLocaleString("en-GB", {
|
|
4485
4489
|
hour: "numeric",
|
|
4486
4490
|
minute: "numeric",
|
|
4487
4491
|
hour12: !1
|
|
4488
4492
|
});
|
|
4489
4493
|
const fr = () => n(l === "Running" ? "startedAt" : "startingAt");
|
|
4490
4494
|
r(10, F = `${hr} ` + n(`${lr}`) + ", " + fr() + ` ${cr}`);
|
|
4491
|
-
},
|
|
4492
|
-
l == "Unstarted" && (r(12,
|
|
4493
|
-
},
|
|
4495
|
+
}, Ie = () => {
|
|
4496
|
+
l == "Unstarted" && (r(12, W = n("scheduled")), r(14, O = "StatusUnstarted")), l == "Running" && (r(12, W = n("ongoing")), r(14, O = "StatusRunning")), (l == "Closed" || l == "Closing") && r(12, W = n("finished")), l == "Closed" && r(14, O = "StatusClosed"), l == "Closing" && r(14, O = "StatusClosing");
|
|
4497
|
+
}, Ne = () => {
|
|
4494
4498
|
c == "BetCount" && r(13, H = n("betCount")), c == "MaxWinStakeRatio" && r(13, H = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(13, H = n("winStakeRatio")), c == "Stake" && r(13, H = n("stake"));
|
|
4495
4499
|
}, ar = () => {
|
|
4496
4500
|
window.postMessage({ type: "tournamentGamesClicked", tourid: o }, window.location.href);
|
|
4497
4501
|
}, or = () => {
|
|
4498
|
-
i.length > 0 && i != "false" ? r(11,
|
|
4502
|
+
i.length > 0 && i != "false" ? r(11, V = !0) : r(11, V = !1);
|
|
4499
4503
|
};
|
|
4500
|
-
Br(() => (setTimeout(() =>
|
|
4504
|
+
Br(() => (setTimeout(() => Oe(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", rt, !1), () => {
|
|
4501
4505
|
window.removeEventListener("message", rt);
|
|
4502
4506
|
}));
|
|
4503
|
-
const
|
|
4504
|
-
|
|
4507
|
+
const Oe = () => {
|
|
4508
|
+
Oi(d), Ne(), Ie(), u && we();
|
|
4505
4509
|
};
|
|
4506
4510
|
function ur(m) {
|
|
4507
|
-
|
|
4511
|
+
$e[m ? "unshift" : "push"](() => {
|
|
4508
4512
|
N = m, r(9, N);
|
|
4509
4513
|
});
|
|
4510
4514
|
}
|
|
4511
4515
|
return e.$$set = (m) => {
|
|
4512
|
-
"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, v = m.keepbrowsercontext), "clientstyling" in m && r(25, L = m.clientstyling), "clientstylingurl" in m && r(26, I = m.clientstylingurl), "translationurl" in m && r(27, A = m.translationurl), "mbsource" in m && r(28,
|
|
4516
|
+
"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, v = m.keepbrowsercontext), "clientstyling" in m && r(25, L = m.clientstyling), "clientstylingurl" in m && r(26, I = m.clientstylingurl), "translationurl" in m && r(27, A = m.translationurl), "mbsource" in m && r(28, M = m.mbsource);
|
|
4513
4517
|
}, e.$$.update = () => {
|
|
4514
4518
|
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4515
|
-
33554944 && L && N &&
|
|
4516
|
-
67109376 && I && N &&
|
|
4517
|
-
268435968 &&
|
|
4519
|
+
33554944 && L && N && Pi(N, L), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4520
|
+
67109376 && I && N && Mi(N, I), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4521
|
+
268435968 && M && N && Li(N, `${M}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4518
4522
|
134217728 && A && sr(), e.$$.dirty[0] & /*session*/
|
|
4519
4523
|
1048576 && i && or(), e.$$.dirty[0] & /*status*/
|
|
4520
|
-
1 && l &&
|
|
4521
|
-
16777218 && a && d &&
|
|
4522
|
-
4 && u &&
|
|
4523
|
-
8388608 && c &&
|
|
4524
|
+
1 && l && Ie(), e.$$.dirty[0] & /*title, lang*/
|
|
4525
|
+
16777218 && a && d && Oe(), e.$$.dirty[0] & /*startdate*/
|
|
4526
|
+
4 && u && we(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4527
|
+
8388608 && c && Ne();
|
|
4524
4528
|
}, [
|
|
4525
4529
|
l,
|
|
4526
4530
|
a,
|
|
@@ -4533,14 +4537,14 @@ function Ui(e, t, r) {
|
|
|
4533
4537
|
v,
|
|
4534
4538
|
N,
|
|
4535
4539
|
F,
|
|
4536
|
-
|
|
4537
|
-
|
|
4540
|
+
V,
|
|
4541
|
+
W,
|
|
4538
4542
|
H,
|
|
4539
|
-
|
|
4543
|
+
O,
|
|
4540
4544
|
n,
|
|
4541
|
-
Ce,
|
|
4542
|
-
Be,
|
|
4543
4545
|
we,
|
|
4546
|
+
Ie,
|
|
4547
|
+
Ne,
|
|
4544
4548
|
ar,
|
|
4545
4549
|
i,
|
|
4546
4550
|
s,
|
|
@@ -4550,18 +4554,18 @@ function Ui(e, t, r) {
|
|
|
4550
4554
|
L,
|
|
4551
4555
|
I,
|
|
4552
4556
|
A,
|
|
4553
|
-
|
|
4557
|
+
M,
|
|
4554
4558
|
ur
|
|
4555
4559
|
];
|
|
4556
4560
|
}
|
|
4557
|
-
class
|
|
4561
|
+
class Gi extends Fr {
|
|
4558
4562
|
constructor(t) {
|
|
4559
4563
|
super(), kr(
|
|
4560
4564
|
this,
|
|
4561
4565
|
t,
|
|
4566
|
+
Fi,
|
|
4562
4567
|
Ui,
|
|
4563
|
-
|
|
4564
|
-
Mt,
|
|
4568
|
+
Ot,
|
|
4565
4569
|
{
|
|
4566
4570
|
session: 20,
|
|
4567
4571
|
userid: 21,
|
|
@@ -4582,7 +4586,7 @@ class Fi extends Fr {
|
|
|
4582
4586
|
translationurl: 27,
|
|
4583
4587
|
mbsource: 28
|
|
4584
4588
|
},
|
|
4585
|
-
|
|
4589
|
+
Ri,
|
|
4586
4590
|
[-1, -1]
|
|
4587
4591
|
);
|
|
4588
4592
|
}
|
|
@@ -4695,7 +4699,7 @@ class Fi extends Fr {
|
|
|
4695
4699
|
this.$$set({ mbsource: t }), C();
|
|
4696
4700
|
}
|
|
4697
4701
|
}
|
|
4698
|
-
Ur(
|
|
4702
|
+
Ur(Gi, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4699
4703
|
export {
|
|
4700
|
-
|
|
4704
|
+
Gi as default
|
|
4701
4705
|
};
|