@everymatrix/casino-tournaments-thumbnail-duration 1.64.7 → 1.65.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/{CasinoTournamentsThumbnailDuration-CR6iNWLj.js → CasinoTournamentsThumbnailDuration-6l1nej4L.js} +541 -545
- package/components/CasinoTournamentsThumbnailDuration-D0HB4CR5.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailDuration-CPNCbhSV.js → CasinoTournamentsThumbnailDuration-DICQG_Cu.js} +550 -554
- package/es2015/casino-tournaments-thumbnail-duration.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-duration.js +1 -1
- package/esnext/casino-tournaments-thumbnail-duration.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailDuration-DPC3g-WE.cjs +0 -3
|
@@ -2,15 +2,15 @@ var Wt = Object.defineProperty, Zt = Object.defineProperties;
|
|
|
2
2
|
var Qt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var We = Object.getOwnPropertySymbols;
|
|
4
4
|
var Jt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var He = (e, t, r) => t in e ? Wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Jt.call(t, r) &&
|
|
7
|
+
Jt.call(t, r) && He(e, r, t[r]);
|
|
8
8
|
if (We)
|
|
9
9
|
for (var r of We(t))
|
|
10
|
-
qt.call(t, r) &&
|
|
10
|
+
qt.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Qe = (e, t) => Zt(e, Qt(t));
|
|
13
|
-
var M = (e, t, r) => (
|
|
13
|
+
var M = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Je = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
@@ -27,7 +27,7 @@ var Je = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function w() {
|
|
31
31
|
}
|
|
32
32
|
function gt(e) {
|
|
33
33
|
return e();
|
|
@@ -35,10 +35,10 @@ function gt(e) {
|
|
|
35
35
|
function qe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ae(e) {
|
|
39
39
|
e.forEach(gt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function be(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function bt(e, t) {
|
|
@@ -51,7 +51,7 @@ function yt(e, ...t) {
|
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return w;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -60,15 +60,15 @@ function Kt(e, t, r) {
|
|
|
60
60
|
e.$$.on_destroy.push(yt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function er(e) {
|
|
63
|
-
return e &&
|
|
63
|
+
return e && be(e.destroy) ? e.destroy : w;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function O(e, t) {
|
|
66
66
|
e.appendChild(t);
|
|
67
67
|
}
|
|
68
68
|
function tr(e, t, r) {
|
|
69
69
|
const n = rr(e);
|
|
70
70
|
if (!n.getElementById(t)) {
|
|
71
|
-
const i =
|
|
71
|
+
const i = I("style");
|
|
72
72
|
i.id = t, i.textContent = r, nr(n, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -83,7 +83,7 @@ function rr(e) {
|
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
85
|
function nr(e, t) {
|
|
86
|
-
return
|
|
86
|
+
return O(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
@@ -95,22 +95,22 @@ function R(e, t, r) {
|
|
|
95
95
|
function $(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function I(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function G(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function re() {
|
|
105
|
+
return G(" ");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function _(e, t, r) {
|
|
108
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
109
|
}
|
|
110
110
|
function ir(e) {
|
|
111
111
|
return Array.from(e.childNodes);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function k(e, t) {
|
|
114
114
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
115
|
t);
|
|
116
116
|
}
|
|
@@ -126,65 +126,65 @@ function sr(e) {
|
|
|
126
126
|
}
|
|
127
127
|
), t;
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let ie;
|
|
130
|
+
function ne(e) {
|
|
131
|
+
ie = e;
|
|
132
132
|
}
|
|
133
133
|
function or() {
|
|
134
|
-
if (!
|
|
134
|
+
if (!ie)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
|
-
return
|
|
136
|
+
return ie;
|
|
137
137
|
}
|
|
138
138
|
function ar(e) {
|
|
139
139
|
or().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
let
|
|
141
|
+
const W = [], Ie = [];
|
|
142
|
+
let Z = [];
|
|
143
143
|
const Ke = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
144
|
-
let
|
|
144
|
+
let we = !1;
|
|
145
145
|
function hr() {
|
|
146
|
-
|
|
146
|
+
we || (we = !0, ur.then(U));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function Le(e) {
|
|
149
|
+
Z.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
function
|
|
154
|
-
if (
|
|
151
|
+
const Te = /* @__PURE__ */ new Set();
|
|
152
|
+
let X = 0;
|
|
153
|
+
function U() {
|
|
154
|
+
if (X !== 0)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = ie;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
|
-
for (;
|
|
160
|
-
const t =
|
|
161
|
-
|
|
159
|
+
for (; X < W.length; ) {
|
|
160
|
+
const t = W[X];
|
|
161
|
+
X++, ne(t), lr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
|
-
throw
|
|
164
|
+
throw W.length = 0, X = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
168
|
-
for (let t = 0; t <
|
|
169
|
-
const r =
|
|
170
|
-
|
|
166
|
+
for (ne(null), W.length = 0, X = 0; Ie.length; )
|
|
167
|
+
Ie.pop()();
|
|
168
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
169
|
+
const r = Z[t];
|
|
170
|
+
Te.has(r) || (Te.add(r), r());
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
} while (
|
|
172
|
+
Z.length = 0;
|
|
173
|
+
} while (W.length);
|
|
174
174
|
for (; Ke.length; )
|
|
175
175
|
Ke.pop()();
|
|
176
|
-
|
|
176
|
+
we = !1, Te.clear(), ne(e);
|
|
177
177
|
}
|
|
178
178
|
function lr(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
180
|
+
e.update(), ae(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
function fr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
|
-
|
|
187
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
188
188
|
}
|
|
189
189
|
const cr = /* @__PURE__ */ new Set();
|
|
190
190
|
function mr(e, t) {
|
|
@@ -192,27 +192,27 @@ function mr(e, t) {
|
|
|
192
192
|
}
|
|
193
193
|
function dr(e, t, r) {
|
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
|
-
n && n.m(t, r),
|
|
196
|
-
const s = e.$$.on_mount.map(gt).filter(
|
|
197
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
198
|
-
}), i.forEach(
|
|
195
|
+
n && n.m(t, r), Le(() => {
|
|
196
|
+
const s = e.$$.on_mount.map(gt).filter(be);
|
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
198
|
+
}), i.forEach(Le);
|
|
199
199
|
}
|
|
200
200
|
function pr(e, t) {
|
|
201
201
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (fr(r.after_update),
|
|
202
|
+
r.fragment !== null && (fr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
204
|
function gr(e, t) {
|
|
205
|
-
e.$$.dirty[0] === -1 && (
|
|
205
|
+
e.$$.dirty[0] === -1 && (W.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
207
|
function br(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
208
|
-
const h =
|
|
209
|
-
|
|
208
|
+
const h = ie;
|
|
209
|
+
ne(e);
|
|
210
210
|
const u = e.$$ = {
|
|
211
211
|
fragment: null,
|
|
212
212
|
ctx: [],
|
|
213
213
|
// state
|
|
214
214
|
props: s,
|
|
215
|
-
update:
|
|
215
|
+
update: w,
|
|
216
216
|
not_equal: i,
|
|
217
217
|
bound: qe(),
|
|
218
218
|
// lifecycle
|
|
@@ -231,17 +231,17 @@ function br(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
231
231
|
o && o(u.root);
|
|
232
232
|
let l = !1;
|
|
233
233
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
234
|
-
const
|
|
235
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
236
|
-
}) : [], u.update(), l = !0,
|
|
234
|
+
const E = p.length ? p[0] : c;
|
|
235
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = E) && (!u.skip_bound && u.bound[f] && u.bound[f](E), l && gr(e, f)), c;
|
|
236
|
+
}) : [], u.update(), l = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
238
|
const f = ir(t.target);
|
|
239
239
|
u.fragment && u.fragment.l(f), f.forEach($);
|
|
240
240
|
} else
|
|
241
241
|
u.fragment && u.fragment.c();
|
|
242
|
-
t.intro && mr(e.$$.fragment), dr(e, t.target, t.anchor),
|
|
242
|
+
t.intro && mr(e.$$.fragment), dr(e, t.target, t.anchor), U();
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
ne(h);
|
|
245
245
|
}
|
|
246
246
|
let Et;
|
|
247
247
|
typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
288
288
|
let o;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
o =
|
|
291
|
+
o = I("slot"), s !== "default" && _(o, "name", s);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
310
310
|
s in n && (r[s] = [t(s)]);
|
|
311
311
|
for (const s of this.attributes) {
|
|
312
312
|
const o = this.$$g_p(s.name);
|
|
313
|
-
o in this.$$d || (this.$$d[o] =
|
|
313
|
+
o in this.$$d || (this.$$d[o] = ce(o, s.value, this.$$p_d, "toProp"));
|
|
314
314
|
}
|
|
315
315
|
for (const s in this.$$p_d)
|
|
316
316
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
327
327
|
this.$$r = !0;
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
330
|
-
const o =
|
|
330
|
+
const o = ce(
|
|
331
331
|
s,
|
|
332
332
|
this.$$d[s],
|
|
333
333
|
this.$$p_d,
|
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
351
351
|
// and setting attributes through setAttribute etc, this is helpful
|
|
352
352
|
attributeChangedCallback(t, r, n) {
|
|
353
353
|
var i;
|
|
354
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
354
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
355
355
|
}
|
|
356
356
|
disconnectedCallback() {
|
|
357
357
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
364
364
|
) || t;
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
function
|
|
367
|
+
function ce(e, t, r, n) {
|
|
368
368
|
var s;
|
|
369
369
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
370
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -412,7 +412,7 @@ function yr(e, t, r, n, i, s) {
|
|
|
412
412
|
},
|
|
413
413
|
set(h) {
|
|
414
414
|
var u;
|
|
415
|
-
h =
|
|
415
|
+
h = ce(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
}), n.forEach((a) => {
|
|
@@ -446,7 +446,7 @@ class Er {
|
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
449
|
-
pr(this, 1), this.$destroy =
|
|
449
|
+
pr(this, 1), this.$destroy = w;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -455,8 +455,8 @@ class Er {
|
|
|
455
455
|
* @returns {() => void}
|
|
456
456
|
*/
|
|
457
457
|
$on(t, r) {
|
|
458
|
-
if (!
|
|
459
|
-
return
|
|
458
|
+
if (!be(r))
|
|
459
|
+
return w;
|
|
460
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
461
461
|
return n.push(r), () => {
|
|
462
462
|
const i = n.indexOf(r);
|
|
@@ -473,39 +473,39 @@ class Er {
|
|
|
473
473
|
}
|
|
474
474
|
const _r = "4";
|
|
475
475
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
|
|
476
|
-
const
|
|
476
|
+
const z = [];
|
|
477
477
|
function xr(e, t) {
|
|
478
478
|
return {
|
|
479
|
-
subscribe:
|
|
479
|
+
subscribe: ye(e, t).subscribe
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function ye(e, t = w) {
|
|
483
483
|
let r;
|
|
484
484
|
const n = /* @__PURE__ */ new Set();
|
|
485
485
|
function i(a) {
|
|
486
486
|
if (bt(e, a) && (e = a, r)) {
|
|
487
|
-
const h = !
|
|
487
|
+
const h = !z.length;
|
|
488
488
|
for (const u of n)
|
|
489
|
-
u[1](),
|
|
489
|
+
u[1](), z.push(u, e);
|
|
490
490
|
if (h) {
|
|
491
|
-
for (let u = 0; u <
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
for (let u = 0; u < z.length; u += 2)
|
|
492
|
+
z[u][0](z[u + 1]);
|
|
493
|
+
z.length = 0;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
function s(a) {
|
|
498
498
|
i(a(e));
|
|
499
499
|
}
|
|
500
|
-
function o(a, h =
|
|
500
|
+
function o(a, h = w) {
|
|
501
501
|
const u = [a, h];
|
|
502
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
502
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || w), a(e), () => {
|
|
503
503
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
return { set: i, update: s, subscribe: o };
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function K(e, t, r) {
|
|
509
509
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
510
510
|
if (!i.every(Boolean))
|
|
511
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -513,16 +513,16 @@ function ee(e, t, r) {
|
|
|
513
513
|
return xr(r, (o, a) => {
|
|
514
514
|
let h = !1;
|
|
515
515
|
const u = [];
|
|
516
|
-
let l = 0, f =
|
|
516
|
+
let l = 0, f = w;
|
|
517
517
|
const c = () => {
|
|
518
518
|
if (l)
|
|
519
519
|
return;
|
|
520
520
|
f();
|
|
521
|
-
const
|
|
522
|
-
s ? o(
|
|
521
|
+
const E = t(n ? u[0] : u, o, a);
|
|
522
|
+
s ? o(E) : f = be(E) ? E : w;
|
|
523
523
|
}, p = i.map(
|
|
524
|
-
(
|
|
525
|
-
|
|
524
|
+
(E, T) => yt(
|
|
525
|
+
E,
|
|
526
526
|
(P) => {
|
|
527
527
|
u[T] = P, l &= ~(1 << T), h && c();
|
|
528
528
|
},
|
|
@@ -532,7 +532,7 @@ function ee(e, t, r) {
|
|
|
532
532
|
)
|
|
533
533
|
);
|
|
534
534
|
return h = !0, c(), function() {
|
|
535
|
-
|
|
535
|
+
ae(p), f(), h = !1;
|
|
536
536
|
};
|
|
537
537
|
});
|
|
538
538
|
}
|
|
@@ -553,30 +553,30 @@ var Sr = typeof Symbol == "function" && Symbol.for, Ar = Sr ? Symbol.for("react.
|
|
|
553
553
|
function Pr(e) {
|
|
554
554
|
return e.$$typeof === Ar;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Nr(e) {
|
|
557
557
|
return Array.isArray(e) ? [] : {};
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
559
|
+
function se(e, t) {
|
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Nr(e), e, t) : e;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Or(e, t, r) {
|
|
563
563
|
return e.concat(t).map(function(n) {
|
|
564
|
-
return
|
|
564
|
+
return se(n, r);
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ir(e, t) {
|
|
568
568
|
if (!t.customMerge)
|
|
569
|
-
return
|
|
569
|
+
return Q;
|
|
570
570
|
var r = t.customMerge(e);
|
|
571
|
-
return typeof r == "function" ? r :
|
|
571
|
+
return typeof r == "function" ? r : Q;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function wr(e) {
|
|
574
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
575
575
|
return Object.propertyIsEnumerable.call(e, t);
|
|
576
576
|
}) : [];
|
|
577
577
|
}
|
|
578
578
|
function et(e) {
|
|
579
|
-
return Object.keys(e).concat(
|
|
579
|
+
return Object.keys(e).concat(wr(e));
|
|
580
580
|
}
|
|
581
581
|
function _t(e, t) {
|
|
582
582
|
try {
|
|
@@ -591,51 +591,65 @@ function Lr(e, t) {
|
|
|
591
591
|
function Cr(e, t, r) {
|
|
592
592
|
var n = {};
|
|
593
593
|
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
594
|
-
n[i] =
|
|
594
|
+
n[i] = se(e[i], r);
|
|
595
595
|
}), et(t).forEach(function(i) {
|
|
596
|
-
Lr(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] =
|
|
596
|
+
Lr(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ir(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
597
597
|
}), n;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
599
|
+
function Q(e, t, r) {
|
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = se;
|
|
601
601
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
602
|
-
return s ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) :
|
|
602
|
+
return s ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) : se(t, r);
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
Q.all = function(t, r) {
|
|
605
605
|
if (!Array.isArray(t))
|
|
606
606
|
throw new Error("first argument should be an array");
|
|
607
607
|
return t.reduce(function(n, i) {
|
|
608
|
-
return
|
|
608
|
+
return Q(n, i, r);
|
|
609
609
|
}, {});
|
|
610
610
|
};
|
|
611
|
-
var Mr =
|
|
611
|
+
var Mr = Q, $r = Mr;
|
|
612
612
|
const Rr = /* @__PURE__ */ vr($r);
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
/*! *****************************************************************************
|
|
614
|
+
Copyright (c) Microsoft Corporation.
|
|
615
|
+
|
|
616
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
617
|
+
purpose with or without fee is hereby granted.
|
|
618
|
+
|
|
619
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
620
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
621
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
622
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
623
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
624
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
625
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
626
|
+
***************************************************************************** */
|
|
627
|
+
var Ce = function(e, t) {
|
|
628
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
615
629
|
r.__proto__ = n;
|
|
616
630
|
} || function(r, n) {
|
|
617
631
|
for (var i in n)
|
|
618
632
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
619
|
-
},
|
|
633
|
+
}, Ce(e, t);
|
|
620
634
|
};
|
|
621
|
-
function
|
|
635
|
+
function Ee(e, t) {
|
|
622
636
|
if (typeof t != "function" && t !== null)
|
|
623
637
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
624
|
-
|
|
638
|
+
Ce(e, t);
|
|
625
639
|
function r() {
|
|
626
640
|
this.constructor = e;
|
|
627
641
|
}
|
|
628
642
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
629
643
|
}
|
|
630
|
-
var
|
|
631
|
-
return
|
|
644
|
+
var y = function() {
|
|
645
|
+
return y = Object.assign || function(t) {
|
|
632
646
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
633
647
|
r = arguments[n];
|
|
634
648
|
for (var s in r)
|
|
635
649
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
636
650
|
}
|
|
637
651
|
return t;
|
|
638
|
-
},
|
|
652
|
+
}, y.apply(this, arguments);
|
|
639
653
|
};
|
|
640
654
|
function Dr(e, t) {
|
|
641
655
|
var r = {};
|
|
@@ -646,14 +660,14 @@ function Dr(e, t) {
|
|
|
646
660
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
647
661
|
return r;
|
|
648
662
|
}
|
|
649
|
-
function
|
|
650
|
-
if (
|
|
663
|
+
function Be(e, t, r) {
|
|
664
|
+
if (arguments.length === 2)
|
|
651
665
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
652
666
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
653
|
-
return e.concat(s ||
|
|
667
|
+
return e.concat(s || t);
|
|
654
668
|
}
|
|
655
|
-
function
|
|
656
|
-
var r = t && t.cache ? t.cache :
|
|
669
|
+
function Se(e, t) {
|
|
670
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
657
671
|
return i(e, {
|
|
658
672
|
cache: r,
|
|
659
673
|
serializer: n
|
|
@@ -662,103 +676,95 @@ function Pe(e, t) {
|
|
|
662
676
|
function Ur(e) {
|
|
663
677
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
664
678
|
}
|
|
665
|
-
function
|
|
679
|
+
function xt(e, t, r, n) {
|
|
666
680
|
var i = Ur(n) ? n : r(n), s = t.get(i);
|
|
667
681
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
668
682
|
}
|
|
669
|
-
function
|
|
683
|
+
function vt(e, t, r) {
|
|
670
684
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
671
685
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
672
686
|
}
|
|
673
|
-
function
|
|
687
|
+
function ke(e, t, r, n, i) {
|
|
674
688
|
return r.bind(t, e, n, i);
|
|
675
689
|
}
|
|
690
|
+
function Fr(e, t) {
|
|
691
|
+
var r = e.length === 1 ? xt : vt;
|
|
692
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
693
|
+
}
|
|
676
694
|
function Gr(e, t) {
|
|
677
|
-
|
|
678
|
-
return vt(e, this, r, t.cache.create(), t.serializer);
|
|
695
|
+
return ke(e, this, vt, t.cache.create(), t.serializer);
|
|
679
696
|
}
|
|
680
697
|
function jr(e, t) {
|
|
681
|
-
return
|
|
698
|
+
return ke(e, this, xt, t.cache.create(), t.serializer);
|
|
682
699
|
}
|
|
683
700
|
var kr = function() {
|
|
684
701
|
return JSON.stringify(arguments);
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}()
|
|
697
|
-
), Xr = {
|
|
702
|
+
};
|
|
703
|
+
function Ve() {
|
|
704
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
705
|
+
}
|
|
706
|
+
Ve.prototype.get = function(e) {
|
|
707
|
+
return this.cache[e];
|
|
708
|
+
};
|
|
709
|
+
Ve.prototype.set = function(e, t) {
|
|
710
|
+
this.cache[e] = t;
|
|
711
|
+
};
|
|
712
|
+
var Vr = {
|
|
698
713
|
create: function() {
|
|
699
|
-
return new
|
|
714
|
+
return new Ve();
|
|
700
715
|
}
|
|
701
|
-
},
|
|
702
|
-
variadic:
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
706
|
-
r = arguments[n];
|
|
707
|
-
for (var s in r)
|
|
708
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
709
|
-
}
|
|
710
|
-
return t;
|
|
711
|
-
}, ge.apply(this, arguments);
|
|
712
|
-
};
|
|
713
|
-
var g;
|
|
716
|
+
}, Ae = {
|
|
717
|
+
variadic: Gr,
|
|
718
|
+
monadic: jr
|
|
719
|
+
}, g;
|
|
714
720
|
(function(e) {
|
|
715
721
|
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";
|
|
716
722
|
})(g || (g = {}));
|
|
717
|
-
var
|
|
723
|
+
var x;
|
|
718
724
|
(function(e) {
|
|
719
725
|
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";
|
|
720
|
-
})(
|
|
721
|
-
var
|
|
726
|
+
})(x || (x = {}));
|
|
727
|
+
var J;
|
|
722
728
|
(function(e) {
|
|
723
729
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
724
|
-
})(
|
|
730
|
+
})(J || (J = {}));
|
|
725
731
|
function tt(e) {
|
|
726
|
-
return e.type ===
|
|
732
|
+
return e.type === x.literal;
|
|
727
733
|
}
|
|
728
|
-
function
|
|
729
|
-
return e.type ===
|
|
734
|
+
function Xr(e) {
|
|
735
|
+
return e.type === x.argument;
|
|
730
736
|
}
|
|
731
737
|
function Ht(e) {
|
|
732
|
-
return e.type ===
|
|
738
|
+
return e.type === x.number;
|
|
733
739
|
}
|
|
734
740
|
function Tt(e) {
|
|
735
|
-
return e.type ===
|
|
741
|
+
return e.type === x.date;
|
|
736
742
|
}
|
|
737
743
|
function Bt(e) {
|
|
738
|
-
return e.type ===
|
|
744
|
+
return e.type === x.time;
|
|
739
745
|
}
|
|
740
746
|
function St(e) {
|
|
741
|
-
return e.type ===
|
|
747
|
+
return e.type === x.select;
|
|
742
748
|
}
|
|
743
749
|
function At(e) {
|
|
744
|
-
return e.type ===
|
|
750
|
+
return e.type === x.plural;
|
|
745
751
|
}
|
|
746
|
-
function
|
|
747
|
-
return e.type ===
|
|
752
|
+
function zr(e) {
|
|
753
|
+
return e.type === x.pound;
|
|
748
754
|
}
|
|
749
755
|
function Pt(e) {
|
|
750
|
-
return e.type ===
|
|
756
|
+
return e.type === x.tag;
|
|
751
757
|
}
|
|
752
|
-
function
|
|
753
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
758
|
+
function Nt(e) {
|
|
759
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
754
760
|
}
|
|
755
|
-
function
|
|
756
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
761
|
+
function Me(e) {
|
|
762
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
757
763
|
}
|
|
758
|
-
var
|
|
759
|
-
function
|
|
764
|
+
var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wr = /(?:[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;
|
|
765
|
+
function Zr(e) {
|
|
760
766
|
var t = {};
|
|
761
|
-
return e.replace(
|
|
767
|
+
return e.replace(Wr, function(r) {
|
|
762
768
|
var n = r.length;
|
|
763
769
|
switch (r[0]) {
|
|
764
770
|
case "G":
|
|
@@ -847,21 +853,11 @@ function Qr(e) {
|
|
|
847
853
|
return "";
|
|
848
854
|
}), t;
|
|
849
855
|
}
|
|
850
|
-
var
|
|
851
|
-
|
|
852
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
853
|
-
r = arguments[n];
|
|
854
|
-
for (var s in r)
|
|
855
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
856
|
-
}
|
|
857
|
-
return t;
|
|
858
|
-
}, H.apply(this, arguments);
|
|
859
|
-
};
|
|
860
|
-
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
861
|
-
function qr(e) {
|
|
856
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
857
|
+
function Jr(e) {
|
|
862
858
|
if (e.length === 0)
|
|
863
859
|
throw new Error("Number skeleton cannot be empty");
|
|
864
|
-
for (var t = e.split(
|
|
860
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
865
861
|
return c.length > 0;
|
|
866
862
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
867
863
|
var s = i[n], o = s.split("/");
|
|
@@ -876,13 +872,13 @@ function qr(e) {
|
|
|
876
872
|
}
|
|
877
873
|
return r;
|
|
878
874
|
}
|
|
879
|
-
function
|
|
875
|
+
function qr(e) {
|
|
880
876
|
return e.replace(/^(.*?)-/, "");
|
|
881
877
|
}
|
|
882
|
-
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
878
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, It = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
883
879
|
function nt(e) {
|
|
884
880
|
var t = {};
|
|
885
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
881
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(It, function(r, n, i) {
|
|
886
882
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
887
883
|
}), t;
|
|
888
884
|
}
|
|
@@ -926,7 +922,7 @@ function Lt(e) {
|
|
|
926
922
|
};
|
|
927
923
|
}
|
|
928
924
|
}
|
|
929
|
-
function
|
|
925
|
+
function Kr(e) {
|
|
930
926
|
var t;
|
|
931
927
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
932
928
|
notation: "engineering"
|
|
@@ -934,7 +930,7 @@ function en(e) {
|
|
|
934
930
|
notation: "scientific"
|
|
935
931
|
}, e = e.slice(1)), t) {
|
|
936
932
|
var r = e.slice(0, 2);
|
|
937
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
933
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wt.test(e))
|
|
938
934
|
throw new Error("Malformed concise eng/scientific notation");
|
|
939
935
|
t.minimumIntegerDigits = e.length;
|
|
940
936
|
}
|
|
@@ -944,7 +940,7 @@ function it(e) {
|
|
|
944
940
|
var t = {}, r = Lt(e);
|
|
945
941
|
return r || t;
|
|
946
942
|
}
|
|
947
|
-
function
|
|
943
|
+
function en(e) {
|
|
948
944
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
949
945
|
var i = n[r];
|
|
950
946
|
switch (i.stem) {
|
|
@@ -968,7 +964,7 @@ function tn(e) {
|
|
|
968
964
|
continue;
|
|
969
965
|
case "measure-unit":
|
|
970
966
|
case "unit":
|
|
971
|
-
t.style = "unit", t.unit =
|
|
967
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
972
968
|
continue;
|
|
973
969
|
case "compact-short":
|
|
974
970
|
case "K":
|
|
@@ -979,13 +975,13 @@ function tn(e) {
|
|
|
979
975
|
t.notation = "compact", t.compactDisplay = "long";
|
|
980
976
|
continue;
|
|
981
977
|
case "scientific":
|
|
982
|
-
t =
|
|
983
|
-
return
|
|
978
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
979
|
+
return y(y({}, h), it(u));
|
|
984
980
|
}, {}));
|
|
985
981
|
continue;
|
|
986
982
|
case "engineering":
|
|
987
|
-
t =
|
|
988
|
-
return
|
|
983
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
984
|
+
return y(y({}, h), it(u));
|
|
989
985
|
}, {}));
|
|
990
986
|
continue;
|
|
991
987
|
case "notation-simple":
|
|
@@ -1030,7 +1026,7 @@ function tn(e) {
|
|
|
1030
1026
|
case "integer-width":
|
|
1031
1027
|
if (i.options.length > 1)
|
|
1032
1028
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1033
|
-
i.options[0].replace(
|
|
1029
|
+
i.options[0].replace(Yr, function(h, u, l, f, c, p) {
|
|
1034
1030
|
if (u)
|
|
1035
1031
|
t.minimumIntegerDigits = l.length;
|
|
1036
1032
|
else {
|
|
@@ -1043,7 +1039,7 @@ function tn(e) {
|
|
|
1043
1039
|
});
|
|
1044
1040
|
continue;
|
|
1045
1041
|
}
|
|
1046
|
-
if (
|
|
1042
|
+
if (wt.test(i.stem)) {
|
|
1047
1043
|
t.minimumIntegerDigits = i.stem.length;
|
|
1048
1044
|
continue;
|
|
1049
1045
|
}
|
|
@@ -1054,21 +1050,21 @@ function tn(e) {
|
|
|
1054
1050
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1055
1051
|
});
|
|
1056
1052
|
var s = i.options[0];
|
|
1057
|
-
s === "w" ? t =
|
|
1053
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), nt(s)));
|
|
1058
1054
|
continue;
|
|
1059
1055
|
}
|
|
1060
|
-
if (
|
|
1061
|
-
t =
|
|
1056
|
+
if (It.test(i.stem)) {
|
|
1057
|
+
t = y(y({}, t), nt(i.stem));
|
|
1062
1058
|
continue;
|
|
1063
1059
|
}
|
|
1064
1060
|
var o = Lt(i.stem);
|
|
1065
|
-
o && (t =
|
|
1066
|
-
var a =
|
|
1067
|
-
a && (t =
|
|
1061
|
+
o && (t = y(y({}, t), o));
|
|
1062
|
+
var a = Kr(i.stem);
|
|
1063
|
+
a && (t = y(y({}, t), a));
|
|
1068
1064
|
}
|
|
1069
1065
|
return t;
|
|
1070
1066
|
}
|
|
1071
|
-
var
|
|
1067
|
+
var fe = {
|
|
1072
1068
|
"001": [
|
|
1073
1069
|
"H",
|
|
1074
1070
|
"h"
|
|
@@ -2483,13 +2479,13 @@ var ce = {
|
|
|
2483
2479
|
"h"
|
|
2484
2480
|
]
|
|
2485
2481
|
};
|
|
2486
|
-
function
|
|
2482
|
+
function tn(e, t) {
|
|
2487
2483
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2488
2484
|
var i = e.charAt(n);
|
|
2489
2485
|
if (i === "j") {
|
|
2490
2486
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2491
2487
|
s++, n++;
|
|
2492
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
2488
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = rn(t);
|
|
2493
2489
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2494
2490
|
r += h;
|
|
2495
2491
|
for (; o-- > 0; )
|
|
@@ -2499,7 +2495,7 @@ function rn(e, t) {
|
|
|
2499
2495
|
}
|
|
2500
2496
|
return r;
|
|
2501
2497
|
}
|
|
2502
|
-
function
|
|
2498
|
+
function rn(e) {
|
|
2503
2499
|
var t = e.hourCycle;
|
|
2504
2500
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2505
2501
|
e.hourCycles && // @ts-ignore
|
|
@@ -2518,23 +2514,23 @@ function nn(e) {
|
|
|
2518
2514
|
}
|
|
2519
2515
|
var r = e.language, n;
|
|
2520
2516
|
r !== "root" && (n = e.maximize().region);
|
|
2521
|
-
var i =
|
|
2517
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2522
2518
|
return i[0];
|
|
2523
2519
|
}
|
|
2524
|
-
var
|
|
2520
|
+
var Pe, nn = new RegExp("^".concat(Ot.source, "*")), sn = new RegExp("".concat(Ot.source, "*$"));
|
|
2525
2521
|
function b(e, t) {
|
|
2526
2522
|
return { start: e, end: t };
|
|
2527
2523
|
}
|
|
2528
|
-
var
|
|
2524
|
+
var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, un = !!Object.fromEntries, hn = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, fn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, mn = cn ? Number.isSafeInteger : function(e) {
|
|
2529
2525
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2530
|
-
},
|
|
2526
|
+
}, $e = !0;
|
|
2531
2527
|
try {
|
|
2532
|
-
var
|
|
2533
|
-
|
|
2528
|
+
var dn = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2529
|
+
$e = ((Pe = dn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2534
2530
|
} catch (e) {
|
|
2535
|
-
|
|
2531
|
+
$e = !1;
|
|
2536
2532
|
}
|
|
2537
|
-
var st =
|
|
2533
|
+
var st = on ? (
|
|
2538
2534
|
// Native
|
|
2539
2535
|
function(t, r, n) {
|
|
2540
2536
|
return t.startsWith(r, n);
|
|
@@ -2544,7 +2540,7 @@ var st = an ? (
|
|
|
2544
2540
|
function(t, r, n) {
|
|
2545
2541
|
return t.slice(n, n + r.length) === r;
|
|
2546
2542
|
}
|
|
2547
|
-
),
|
|
2543
|
+
), Re = an ? String.fromCodePoint : (
|
|
2548
2544
|
// IE11
|
|
2549
2545
|
function() {
|
|
2550
2546
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2558,7 +2554,7 @@ var st = an ? (
|
|
|
2558
2554
|
}
|
|
2559
2555
|
), ot = (
|
|
2560
2556
|
// native
|
|
2561
|
-
|
|
2557
|
+
un ? Object.fromEntries : (
|
|
2562
2558
|
// Ponyfill
|
|
2563
2559
|
function(t) {
|
|
2564
2560
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2568,7 +2564,7 @@ var st = an ? (
|
|
|
2568
2564
|
return r;
|
|
2569
2565
|
}
|
|
2570
2566
|
)
|
|
2571
|
-
), Ct =
|
|
2567
|
+
), Ct = hn ? (
|
|
2572
2568
|
// Native
|
|
2573
2569
|
function(t, r) {
|
|
2574
2570
|
return t.codePointAt(r);
|
|
@@ -2582,7 +2578,7 @@ var st = an ? (
|
|
|
2582
2578
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2583
2579
|
}
|
|
2584
2580
|
}
|
|
2585
|
-
),
|
|
2581
|
+
), pn = ln ? (
|
|
2586
2582
|
// Native
|
|
2587
2583
|
function(t) {
|
|
2588
2584
|
return t.trimStart();
|
|
@@ -2590,9 +2586,9 @@ var st = an ? (
|
|
|
2590
2586
|
) : (
|
|
2591
2587
|
// Ponyfill
|
|
2592
2588
|
function(t) {
|
|
2593
|
-
return t.replace(
|
|
2589
|
+
return t.replace(nn, "");
|
|
2594
2590
|
}
|
|
2595
|
-
),
|
|
2591
|
+
), gn = fn ? (
|
|
2596
2592
|
// Native
|
|
2597
2593
|
function(t) {
|
|
2598
2594
|
return t.trimEnd();
|
|
@@ -2600,32 +2596,32 @@ var st = an ? (
|
|
|
2600
2596
|
) : (
|
|
2601
2597
|
// Ponyfill
|
|
2602
2598
|
function(t) {
|
|
2603
|
-
return t.replace(
|
|
2599
|
+
return t.replace(sn, "");
|
|
2604
2600
|
}
|
|
2605
2601
|
);
|
|
2606
2602
|
function Mt(e, t) {
|
|
2607
2603
|
return new RegExp(e, t);
|
|
2608
2604
|
}
|
|
2609
|
-
var
|
|
2610
|
-
if (
|
|
2605
|
+
var De;
|
|
2606
|
+
if ($e) {
|
|
2611
2607
|
var at = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2612
|
-
|
|
2608
|
+
De = function(t, r) {
|
|
2613
2609
|
var n;
|
|
2614
2610
|
at.lastIndex = r;
|
|
2615
2611
|
var i = at.exec(t);
|
|
2616
2612
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2617
2613
|
};
|
|
2618
2614
|
} else
|
|
2619
|
-
|
|
2615
|
+
De = function(t, r) {
|
|
2620
2616
|
for (var n = []; ; ) {
|
|
2621
2617
|
var i = Ct(t, r);
|
|
2622
|
-
if (i === void 0 || $t(i) ||
|
|
2618
|
+
if (i === void 0 || $t(i) || _n(i))
|
|
2623
2619
|
break;
|
|
2624
2620
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2625
2621
|
}
|
|
2626
|
-
return
|
|
2622
|
+
return Re.apply(void 0, n);
|
|
2627
2623
|
};
|
|
2628
|
-
var
|
|
2624
|
+
var bn = (
|
|
2629
2625
|
/** @class */
|
|
2630
2626
|
function() {
|
|
2631
2627
|
function e(t, r) {
|
|
@@ -2649,14 +2645,14 @@ var yn = (
|
|
|
2649
2645
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2650
2646
|
var a = this.clonePosition();
|
|
2651
2647
|
this.bump(), i.push({
|
|
2652
|
-
type:
|
|
2648
|
+
type: x.pound,
|
|
2653
2649
|
location: b(a, this.clonePosition())
|
|
2654
2650
|
});
|
|
2655
2651
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2656
2652
|
if (n)
|
|
2657
2653
|
break;
|
|
2658
2654
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2659
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2655
|
+
} else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2660
2656
|
var o = this.parseTag(t, r);
|
|
2661
2657
|
if (o.err)
|
|
2662
2658
|
return o;
|
|
@@ -2677,7 +2673,7 @@ var yn = (
|
|
|
2677
2673
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2678
2674
|
return {
|
|
2679
2675
|
val: {
|
|
2680
|
-
type:
|
|
2676
|
+
type: x.literal,
|
|
2681
2677
|
value: "<".concat(i, "/>"),
|
|
2682
2678
|
location: b(n, this.clonePosition())
|
|
2683
2679
|
},
|
|
@@ -2689,12 +2685,12 @@ var yn = (
|
|
|
2689
2685
|
return s;
|
|
2690
2686
|
var o = s.val, a = this.clonePosition();
|
|
2691
2687
|
if (this.bumpIf("</")) {
|
|
2692
|
-
if (this.isEOF() || !
|
|
2688
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2693
2689
|
return this.error(g.INVALID_TAG, b(a, this.clonePosition()));
|
|
2694
2690
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2695
2691
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2696
2692
|
val: {
|
|
2697
|
-
type:
|
|
2693
|
+
type: x.tag,
|
|
2698
2694
|
value: i,
|
|
2699
2695
|
children: o,
|
|
2700
2696
|
location: b(n, this.clonePosition())
|
|
@@ -2707,7 +2703,7 @@ var yn = (
|
|
|
2707
2703
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2708
2704
|
}, e.prototype.parseTagName = function() {
|
|
2709
2705
|
var t = this.offset();
|
|
2710
|
-
for (this.bump(); !this.isEOF() &&
|
|
2706
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2711
2707
|
this.bump();
|
|
2712
2708
|
return this.message.slice(t, this.offset());
|
|
2713
2709
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2731,12 +2727,12 @@ var yn = (
|
|
|
2731
2727
|
}
|
|
2732
2728
|
var h = b(n, this.clonePosition());
|
|
2733
2729
|
return {
|
|
2734
|
-
val: { type:
|
|
2730
|
+
val: { type: x.literal, value: i, location: h },
|
|
2735
2731
|
err: null
|
|
2736
2732
|
};
|
|
2737
2733
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2738
2734
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2739
|
-
!
|
|
2735
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2740
2736
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2741
2737
|
if (this.isEOF() || this.char() !== 39)
|
|
2742
2738
|
return null;
|
|
@@ -2770,12 +2766,12 @@ var yn = (
|
|
|
2770
2766
|
r.push(n);
|
|
2771
2767
|
this.bump();
|
|
2772
2768
|
}
|
|
2773
|
-
return
|
|
2769
|
+
return Re.apply(void 0, r);
|
|
2774
2770
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2775
2771
|
if (this.isEOF())
|
|
2776
2772
|
return null;
|
|
2777
2773
|
var n = this.char();
|
|
2778
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2774
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
2779
2775
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2780
2776
|
var n = this.clonePosition();
|
|
2781
2777
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2791,7 +2787,7 @@ var yn = (
|
|
|
2791
2787
|
case 125:
|
|
2792
2788
|
return this.bump(), {
|
|
2793
2789
|
val: {
|
|
2794
|
-
type:
|
|
2790
|
+
type: x.argument,
|
|
2795
2791
|
// value does not include the opening and closing braces.
|
|
2796
2792
|
value: i,
|
|
2797
2793
|
location: b(n, this.clonePosition())
|
|
@@ -2804,7 +2800,7 @@ var yn = (
|
|
|
2804
2800
|
return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2805
2801
|
}
|
|
2806
2802
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2807
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2803
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2808
2804
|
this.bumpTo(i);
|
|
2809
2805
|
var s = this.clonePosition(), o = b(t, s);
|
|
2810
2806
|
return { value: n, location: o };
|
|
@@ -2823,35 +2819,35 @@ var yn = (
|
|
|
2823
2819
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2824
2820
|
if (f.err)
|
|
2825
2821
|
return f;
|
|
2826
|
-
var c =
|
|
2822
|
+
var c = gn(f.val);
|
|
2827
2823
|
if (c.length === 0)
|
|
2828
2824
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2829
2825
|
var p = b(l, this.clonePosition());
|
|
2830
2826
|
u = { style: c, styleLocation: p };
|
|
2831
2827
|
}
|
|
2832
|
-
var
|
|
2833
|
-
if (
|
|
2834
|
-
return
|
|
2828
|
+
var E = this.tryParseArgumentClose(i);
|
|
2829
|
+
if (E.err)
|
|
2830
|
+
return E;
|
|
2835
2831
|
var T = b(i, this.clonePosition());
|
|
2836
2832
|
if (u && st(u == null ? void 0 : u.style, "::", 0)) {
|
|
2837
|
-
var P =
|
|
2833
|
+
var P = pn(u.style.slice(2));
|
|
2838
2834
|
if (a === "number") {
|
|
2839
2835
|
var f = this.parseNumberSkeletonFromString(P, u.styleLocation);
|
|
2840
2836
|
return f.err ? f : {
|
|
2841
|
-
val: { type:
|
|
2837
|
+
val: { type: x.number, value: n, location: T, style: f.val },
|
|
2842
2838
|
err: null
|
|
2843
2839
|
};
|
|
2844
2840
|
} else {
|
|
2845
2841
|
if (P.length === 0)
|
|
2846
2842
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2847
2843
|
var B = P;
|
|
2848
|
-
this.locale && (B =
|
|
2844
|
+
this.locale && (B = tn(P, this.locale));
|
|
2849
2845
|
var c = {
|
|
2850
|
-
type:
|
|
2846
|
+
type: J.dateTime,
|
|
2851
2847
|
pattern: B,
|
|
2852
2848
|
location: u.styleLocation,
|
|
2853
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2854
|
-
}, L = a === "date" ?
|
|
2849
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(B) : {}
|
|
2850
|
+
}, L = a === "date" ? x.date : x.time;
|
|
2855
2851
|
return {
|
|
2856
2852
|
val: { type: L, value: n, location: T, style: c },
|
|
2857
2853
|
err: null
|
|
@@ -2860,7 +2856,7 @@ var yn = (
|
|
|
2860
2856
|
}
|
|
2861
2857
|
return {
|
|
2862
2858
|
val: {
|
|
2863
|
-
type: a === "number" ?
|
|
2859
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2864
2860
|
value: n,
|
|
2865
2861
|
location: T,
|
|
2866
2862
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2871,43 +2867,43 @@ var yn = (
|
|
|
2871
2867
|
case "plural":
|
|
2872
2868
|
case "selectordinal":
|
|
2873
2869
|
case "select": {
|
|
2874
|
-
var
|
|
2870
|
+
var v = this.clonePosition();
|
|
2875
2871
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2876
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2872
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, y({}, v)));
|
|
2877
2873
|
this.bumpSpace();
|
|
2878
|
-
var
|
|
2879
|
-
if (a !== "select" &&
|
|
2874
|
+
var H = this.parseIdentifierIfPossible(), d = 0;
|
|
2875
|
+
if (a !== "select" && H.value === "offset") {
|
|
2880
2876
|
if (!this.bumpIf(":"))
|
|
2881
2877
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2882
2878
|
this.bumpSpace();
|
|
2883
2879
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2884
2880
|
if (f.err)
|
|
2885
2881
|
return f;
|
|
2886
|
-
this.bumpSpace(),
|
|
2882
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), d = f.val;
|
|
2887
2883
|
}
|
|
2888
|
-
var S = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
2884
|
+
var S = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
2889
2885
|
if (S.err)
|
|
2890
2886
|
return S;
|
|
2891
|
-
var
|
|
2892
|
-
if (
|
|
2893
|
-
return
|
|
2894
|
-
var
|
|
2887
|
+
var E = this.tryParseArgumentClose(i);
|
|
2888
|
+
if (E.err)
|
|
2889
|
+
return E;
|
|
2890
|
+
var le = b(i, this.clonePosition());
|
|
2895
2891
|
return a === "select" ? {
|
|
2896
2892
|
val: {
|
|
2897
|
-
type:
|
|
2893
|
+
type: x.select,
|
|
2898
2894
|
value: n,
|
|
2899
2895
|
options: ot(S.val),
|
|
2900
|
-
location:
|
|
2896
|
+
location: le
|
|
2901
2897
|
},
|
|
2902
2898
|
err: null
|
|
2903
2899
|
} : {
|
|
2904
2900
|
val: {
|
|
2905
|
-
type:
|
|
2901
|
+
type: x.plural,
|
|
2906
2902
|
value: n,
|
|
2907
2903
|
options: ot(S.val),
|
|
2908
2904
|
offset: d,
|
|
2909
2905
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2910
|
-
location:
|
|
2906
|
+
location: le
|
|
2911
2907
|
},
|
|
2912
2908
|
err: null
|
|
2913
2909
|
};
|
|
@@ -2955,16 +2951,16 @@ var yn = (
|
|
|
2955
2951
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2956
2952
|
var n = [];
|
|
2957
2953
|
try {
|
|
2958
|
-
n =
|
|
2954
|
+
n = Jr(t);
|
|
2959
2955
|
} catch (i) {
|
|
2960
2956
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2961
2957
|
}
|
|
2962
2958
|
return {
|
|
2963
2959
|
val: {
|
|
2964
|
-
type:
|
|
2960
|
+
type: J.number,
|
|
2965
2961
|
tokens: n,
|
|
2966
2962
|
location: r,
|
|
2967
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2963
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2968
2964
|
},
|
|
2969
2965
|
err: null
|
|
2970
2966
|
};
|
|
@@ -2986,16 +2982,16 @@ var yn = (
|
|
|
2986
2982
|
var p = this.clonePosition();
|
|
2987
2983
|
if (!this.bumpIf("{"))
|
|
2988
2984
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2989
|
-
var
|
|
2990
|
-
if (
|
|
2991
|
-
return
|
|
2985
|
+
var E = this.parseMessage(t + 1, r, n);
|
|
2986
|
+
if (E.err)
|
|
2987
|
+
return E;
|
|
2992
2988
|
var T = this.tryParseArgumentClose(p);
|
|
2993
2989
|
if (T.err)
|
|
2994
2990
|
return T;
|
|
2995
2991
|
a.push([
|
|
2996
2992
|
u,
|
|
2997
2993
|
{
|
|
2998
|
-
value:
|
|
2994
|
+
value: E.val,
|
|
2999
2995
|
location: b(p, this.clonePosition())
|
|
3000
2996
|
}
|
|
3001
2997
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
@@ -3012,7 +3008,7 @@ var yn = (
|
|
|
3012
3008
|
break;
|
|
3013
3009
|
}
|
|
3014
3010
|
var h = b(i, this.clonePosition());
|
|
3015
|
-
return s ? (o *= n,
|
|
3011
|
+
return s ? (o *= n, mn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3016
3012
|
}, e.prototype.offset = function() {
|
|
3017
3013
|
return this.position.offset;
|
|
3018
3014
|
}, e.prototype.isEOF = function() {
|
|
@@ -3078,47 +3074,47 @@ var yn = (
|
|
|
3078
3074
|
}, e;
|
|
3079
3075
|
}()
|
|
3080
3076
|
);
|
|
3081
|
-
function
|
|
3077
|
+
function Ue(e) {
|
|
3082
3078
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3083
3079
|
}
|
|
3084
|
-
function
|
|
3085
|
-
return
|
|
3080
|
+
function yn(e) {
|
|
3081
|
+
return Ue(e) || e === 47;
|
|
3086
3082
|
}
|
|
3087
|
-
function
|
|
3083
|
+
function En(e) {
|
|
3088
3084
|
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;
|
|
3089
3085
|
}
|
|
3090
3086
|
function $t(e) {
|
|
3091
3087
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3092
3088
|
}
|
|
3093
|
-
function
|
|
3089
|
+
function _n(e) {
|
|
3094
3090
|
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;
|
|
3095
3091
|
}
|
|
3096
|
-
function
|
|
3092
|
+
function Fe(e) {
|
|
3097
3093
|
e.forEach(function(t) {
|
|
3098
3094
|
if (delete t.location, St(t) || At(t))
|
|
3099
3095
|
for (var r in t.options)
|
|
3100
|
-
delete t.options[r].location,
|
|
3096
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3101
3097
|
else
|
|
3102
|
-
Ht(t) &&
|
|
3098
|
+
Ht(t) && Nt(t.style) || (Tt(t) || Bt(t)) && Me(t.style) ? delete t.style.location : Pt(t) && Fe(t.children);
|
|
3103
3099
|
});
|
|
3104
3100
|
}
|
|
3105
|
-
function
|
|
3106
|
-
t === void 0 && (t = {}), t =
|
|
3107
|
-
var r = new
|
|
3101
|
+
function xn(e, t) {
|
|
3102
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3103
|
+
var r = new bn(e, t).parse();
|
|
3108
3104
|
if (r.err) {
|
|
3109
3105
|
var n = SyntaxError(g[r.err.kind]);
|
|
3110
3106
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3111
3107
|
}
|
|
3112
|
-
return t != null && t.captureLocation ||
|
|
3108
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3113
3109
|
}
|
|
3114
|
-
var
|
|
3110
|
+
var q;
|
|
3115
3111
|
(function(e) {
|
|
3116
3112
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3117
|
-
})(
|
|
3118
|
-
var
|
|
3113
|
+
})(q || (q = {}));
|
|
3114
|
+
var _e = (
|
|
3119
3115
|
/** @class */
|
|
3120
3116
|
function(e) {
|
|
3121
|
-
|
|
3117
|
+
Ee(t, e);
|
|
3122
3118
|
function t(r, n, i) {
|
|
3123
3119
|
var s = e.call(this, r) || this;
|
|
3124
3120
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3130,48 +3126,48 @@ var ve = (
|
|
|
3130
3126
|
), ut = (
|
|
3131
3127
|
/** @class */
|
|
3132
3128
|
function(e) {
|
|
3133
|
-
|
|
3129
|
+
Ee(t, e);
|
|
3134
3130
|
function t(r, n, i, s) {
|
|
3135
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3131
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3136
3132
|
}
|
|
3137
3133
|
return t;
|
|
3138
|
-
}(
|
|
3139
|
-
),
|
|
3134
|
+
}(_e)
|
|
3135
|
+
), vn = (
|
|
3140
3136
|
/** @class */
|
|
3141
3137
|
function(e) {
|
|
3142
|
-
|
|
3138
|
+
Ee(t, e);
|
|
3143
3139
|
function t(r, n, i) {
|
|
3144
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3140
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3145
3141
|
}
|
|
3146
3142
|
return t;
|
|
3147
|
-
}(
|
|
3148
|
-
),
|
|
3143
|
+
}(_e)
|
|
3144
|
+
), Hn = (
|
|
3149
3145
|
/** @class */
|
|
3150
3146
|
function(e) {
|
|
3151
|
-
|
|
3147
|
+
Ee(t, e);
|
|
3152
3148
|
function t(r, n) {
|
|
3153
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3149
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3154
3150
|
}
|
|
3155
3151
|
return t;
|
|
3156
|
-
}(
|
|
3157
|
-
),
|
|
3152
|
+
}(_e)
|
|
3153
|
+
), N;
|
|
3158
3154
|
(function(e) {
|
|
3159
3155
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3160
|
-
})(
|
|
3161
|
-
function
|
|
3156
|
+
})(N || (N = {}));
|
|
3157
|
+
function Tn(e) {
|
|
3162
3158
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3163
3159
|
var n = t[t.length - 1];
|
|
3164
|
-
return !n || n.type !==
|
|
3160
|
+
return !n || n.type !== N.literal || r.type !== N.literal ? t.push(r) : n.value += r.value, t;
|
|
3165
3161
|
}, []);
|
|
3166
3162
|
}
|
|
3167
|
-
function
|
|
3163
|
+
function Bn(e) {
|
|
3168
3164
|
return typeof e == "function";
|
|
3169
3165
|
}
|
|
3170
|
-
function
|
|
3166
|
+
function me(e, t, r, n, i, s, o) {
|
|
3171
3167
|
if (e.length === 1 && tt(e[0]))
|
|
3172
3168
|
return [
|
|
3173
3169
|
{
|
|
3174
|
-
type:
|
|
3170
|
+
type: N.literal,
|
|
3175
3171
|
value: e[0].value
|
|
3176
3172
|
}
|
|
3177
3173
|
];
|
|
@@ -3179,103 +3175,103 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3179
3175
|
var l = u[h];
|
|
3180
3176
|
if (tt(l)) {
|
|
3181
3177
|
a.push({
|
|
3182
|
-
type:
|
|
3178
|
+
type: N.literal,
|
|
3183
3179
|
value: l.value
|
|
3184
3180
|
});
|
|
3185
3181
|
continue;
|
|
3186
3182
|
}
|
|
3187
|
-
if (
|
|
3183
|
+
if (zr(l)) {
|
|
3188
3184
|
typeof s == "number" && a.push({
|
|
3189
|
-
type:
|
|
3185
|
+
type: N.literal,
|
|
3190
3186
|
value: r.getNumberFormat(t).format(s)
|
|
3191
3187
|
});
|
|
3192
3188
|
continue;
|
|
3193
3189
|
}
|
|
3194
3190
|
var f = l.value;
|
|
3195
3191
|
if (!(i && f in i))
|
|
3196
|
-
throw new
|
|
3192
|
+
throw new Hn(f, o);
|
|
3197
3193
|
var c = i[f];
|
|
3198
|
-
if (
|
|
3194
|
+
if (Xr(l)) {
|
|
3199
3195
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3200
|
-
type: typeof c == "string" ?
|
|
3196
|
+
type: typeof c == "string" ? N.literal : N.object,
|
|
3201
3197
|
value: c
|
|
3202
3198
|
});
|
|
3203
3199
|
continue;
|
|
3204
3200
|
}
|
|
3205
3201
|
if (Tt(l)) {
|
|
3206
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3202
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3207
3203
|
a.push({
|
|
3208
|
-
type:
|
|
3204
|
+
type: N.literal,
|
|
3209
3205
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3210
3206
|
});
|
|
3211
3207
|
continue;
|
|
3212
3208
|
}
|
|
3213
3209
|
if (Bt(l)) {
|
|
3214
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3210
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3215
3211
|
a.push({
|
|
3216
|
-
type:
|
|
3212
|
+
type: N.literal,
|
|
3217
3213
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3218
3214
|
});
|
|
3219
3215
|
continue;
|
|
3220
3216
|
}
|
|
3221
3217
|
if (Ht(l)) {
|
|
3222
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3218
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
|
|
3223
3219
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3224
|
-
type:
|
|
3220
|
+
type: N.literal,
|
|
3225
3221
|
value: r.getNumberFormat(t, p).format(c)
|
|
3226
3222
|
});
|
|
3227
3223
|
continue;
|
|
3228
3224
|
}
|
|
3229
3225
|
if (Pt(l)) {
|
|
3230
|
-
var
|
|
3231
|
-
if (!
|
|
3232
|
-
throw new
|
|
3233
|
-
var B =
|
|
3226
|
+
var E = l.children, T = l.value, P = i[T];
|
|
3227
|
+
if (!Bn(P))
|
|
3228
|
+
throw new vn(T, "function", o);
|
|
3229
|
+
var B = me(E, t, r, n, i, s), L = P(B.map(function(d) {
|
|
3234
3230
|
return d.value;
|
|
3235
3231
|
}));
|
|
3236
3232
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(d) {
|
|
3237
3233
|
return {
|
|
3238
|
-
type: typeof d == "string" ?
|
|
3234
|
+
type: typeof d == "string" ? N.literal : N.object,
|
|
3239
3235
|
value: d
|
|
3240
3236
|
};
|
|
3241
3237
|
}));
|
|
3242
3238
|
}
|
|
3243
3239
|
if (St(l)) {
|
|
3244
|
-
var
|
|
3245
|
-
if (!
|
|
3240
|
+
var v = l.options[c] || l.options.other;
|
|
3241
|
+
if (!v)
|
|
3246
3242
|
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3247
|
-
a.push.apply(a,
|
|
3243
|
+
a.push.apply(a, me(v.value, t, r, n, i));
|
|
3248
3244
|
continue;
|
|
3249
3245
|
}
|
|
3250
3246
|
if (At(l)) {
|
|
3251
|
-
var
|
|
3252
|
-
if (!
|
|
3247
|
+
var v = l.options["=".concat(c)];
|
|
3248
|
+
if (!v) {
|
|
3253
3249
|
if (!Intl.PluralRules)
|
|
3254
|
-
throw new
|
|
3250
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3255
3251
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3256
|
-
`,
|
|
3257
|
-
var
|
|
3258
|
-
|
|
3252
|
+
`, q.MISSING_INTL_API, o);
|
|
3253
|
+
var H = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3254
|
+
v = l.options[H] || l.options.other;
|
|
3259
3255
|
}
|
|
3260
|
-
if (!
|
|
3256
|
+
if (!v)
|
|
3261
3257
|
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3262
|
-
a.push.apply(a,
|
|
3258
|
+
a.push.apply(a, me(v.value, t, r, n, i, c - (l.offset || 0)));
|
|
3263
3259
|
continue;
|
|
3264
3260
|
}
|
|
3265
3261
|
}
|
|
3266
|
-
return
|
|
3262
|
+
return Tn(a);
|
|
3267
3263
|
}
|
|
3268
|
-
function
|
|
3269
|
-
return t ?
|
|
3270
|
-
return r[n] =
|
|
3264
|
+
function Sn(e, t) {
|
|
3265
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3266
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3271
3267
|
}, {})) : e;
|
|
3272
3268
|
}
|
|
3273
|
-
function
|
|
3269
|
+
function An(e, t) {
|
|
3274
3270
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3275
|
-
return r[n] =
|
|
3276
|
-
},
|
|
3271
|
+
return r[n] = Sn(e[n], t[n]), r;
|
|
3272
|
+
}, y({}, e)) : e;
|
|
3277
3273
|
}
|
|
3278
|
-
function
|
|
3274
|
+
function Ne(e) {
|
|
3279
3275
|
return {
|
|
3280
3276
|
create: function() {
|
|
3281
3277
|
return {
|
|
@@ -3289,35 +3285,35 @@ function we(e) {
|
|
|
3289
3285
|
}
|
|
3290
3286
|
};
|
|
3291
3287
|
}
|
|
3292
|
-
function
|
|
3288
|
+
function Pn(e) {
|
|
3293
3289
|
return e === void 0 && (e = {
|
|
3294
3290
|
number: {},
|
|
3295
3291
|
dateTime: {},
|
|
3296
3292
|
pluralRules: {}
|
|
3297
3293
|
}), {
|
|
3298
|
-
getNumberFormat:
|
|
3294
|
+
getNumberFormat: Se(function() {
|
|
3299
3295
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3300
3296
|
r[n] = arguments[n];
|
|
3301
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3297
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3302
3298
|
}, {
|
|
3303
|
-
cache:
|
|
3304
|
-
strategy:
|
|
3299
|
+
cache: Ne(e.number),
|
|
3300
|
+
strategy: Ae.variadic
|
|
3305
3301
|
}),
|
|
3306
|
-
getDateTimeFormat:
|
|
3302
|
+
getDateTimeFormat: Se(function() {
|
|
3307
3303
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3308
3304
|
r[n] = arguments[n];
|
|
3309
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3305
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3310
3306
|
}, {
|
|
3311
|
-
cache:
|
|
3312
|
-
strategy:
|
|
3307
|
+
cache: Ne(e.dateTime),
|
|
3308
|
+
strategy: Ae.variadic
|
|
3313
3309
|
}),
|
|
3314
|
-
getPluralRules:
|
|
3310
|
+
getPluralRules: Se(function() {
|
|
3315
3311
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3316
3312
|
r[n] = arguments[n];
|
|
3317
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3313
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3318
3314
|
}, {
|
|
3319
|
-
cache:
|
|
3320
|
-
strategy:
|
|
3315
|
+
cache: Ne(e.pluralRules),
|
|
3316
|
+
strategy: Ae.variadic
|
|
3321
3317
|
})
|
|
3322
3318
|
};
|
|
3323
3319
|
}
|
|
@@ -3336,11 +3332,11 @@ var Nn = (
|
|
|
3336
3332
|
if (u.length === 1)
|
|
3337
3333
|
return u[0].value;
|
|
3338
3334
|
var l = u.reduce(function(f, c) {
|
|
3339
|
-
return !f.length || c.type !==
|
|
3335
|
+
return !f.length || c.type !== N.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3340
3336
|
}, []);
|
|
3341
3337
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3342
3338
|
}, this.formatToParts = function(h) {
|
|
3343
|
-
return
|
|
3339
|
+
return me(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3344
3340
|
}, this.resolvedOptions = function() {
|
|
3345
3341
|
var h;
|
|
3346
3342
|
return {
|
|
@@ -3354,12 +3350,12 @@ var Nn = (
|
|
|
3354
3350
|
var o = i || {};
|
|
3355
3351
|
o.formatters;
|
|
3356
3352
|
var a = Dr(o, ["formatters"]);
|
|
3357
|
-
this.ast = e.__parse(t,
|
|
3353
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3358
3354
|
} else
|
|
3359
3355
|
this.ast = t;
|
|
3360
3356
|
if (!Array.isArray(this.ast))
|
|
3361
3357
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3362
|
-
this.formats =
|
|
3358
|
+
this.formats = An(e.formats, n), this.formatters = i && i.formatters || Pn(this.formatterCache);
|
|
3363
3359
|
}
|
|
3364
3360
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3365
3361
|
get: function() {
|
|
@@ -3372,7 +3368,7 @@ var Nn = (
|
|
|
3372
3368
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3373
3369
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3374
3370
|
}
|
|
3375
|
-
}, e.__parse =
|
|
3371
|
+
}, e.__parse = xn, e.formats = {
|
|
3376
3372
|
number: {
|
|
3377
3373
|
integer: {
|
|
3378
3374
|
maximumFractionDigits: 0
|
|
@@ -3433,7 +3429,7 @@ var Nn = (
|
|
|
3433
3429
|
}, e;
|
|
3434
3430
|
}()
|
|
3435
3431
|
);
|
|
3436
|
-
function
|
|
3432
|
+
function On(e, t) {
|
|
3437
3433
|
if (t == null)
|
|
3438
3434
|
return;
|
|
3439
3435
|
if (t in e)
|
|
@@ -3454,36 +3450,36 @@ function wn(e, t) {
|
|
|
3454
3450
|
n = void 0;
|
|
3455
3451
|
return n;
|
|
3456
3452
|
}
|
|
3457
|
-
const
|
|
3453
|
+
const F = {}, In = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Rt = (e, t) => {
|
|
3458
3454
|
if (t == null)
|
|
3459
3455
|
return;
|
|
3460
|
-
if (t in
|
|
3461
|
-
return
|
|
3462
|
-
const r =
|
|
3456
|
+
if (t in F && e in F[t])
|
|
3457
|
+
return F[t][e];
|
|
3458
|
+
const r = xe(t);
|
|
3463
3459
|
for (let n = 0; n < r.length; n++) {
|
|
3464
|
-
const i = r[n], s =
|
|
3460
|
+
const i = r[n], s = Ln(i, e);
|
|
3465
3461
|
if (s)
|
|
3466
3462
|
return In(e, t, s);
|
|
3467
3463
|
}
|
|
3468
3464
|
};
|
|
3469
3465
|
let Xe;
|
|
3470
|
-
const
|
|
3471
|
-
function
|
|
3466
|
+
const ue = ye({});
|
|
3467
|
+
function wn(e) {
|
|
3472
3468
|
return Xe[e] || null;
|
|
3473
3469
|
}
|
|
3474
3470
|
function Dt(e) {
|
|
3475
3471
|
return e in Xe;
|
|
3476
3472
|
}
|
|
3477
|
-
function
|
|
3473
|
+
function Ln(e, t) {
|
|
3478
3474
|
if (!Dt(e))
|
|
3479
3475
|
return null;
|
|
3480
|
-
const r =
|
|
3481
|
-
return
|
|
3476
|
+
const r = wn(e);
|
|
3477
|
+
return On(r, t);
|
|
3482
3478
|
}
|
|
3483
|
-
function
|
|
3479
|
+
function Cn(e) {
|
|
3484
3480
|
if (e == null)
|
|
3485
3481
|
return;
|
|
3486
|
-
const t =
|
|
3482
|
+
const t = xe(e);
|
|
3487
3483
|
for (let r = 0; r < t.length; r++) {
|
|
3488
3484
|
const n = t[r];
|
|
3489
3485
|
if (Dt(n))
|
|
@@ -3491,55 +3487,55 @@ function Mn(e) {
|
|
|
3491
3487
|
}
|
|
3492
3488
|
}
|
|
3493
3489
|
function Ut(e, ...t) {
|
|
3494
|
-
delete
|
|
3490
|
+
delete F[e], ue.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3495
3491
|
}
|
|
3496
|
-
|
|
3497
|
-
[
|
|
3492
|
+
K(
|
|
3493
|
+
[ue],
|
|
3498
3494
|
([e]) => Object.keys(e)
|
|
3499
3495
|
);
|
|
3500
|
-
|
|
3501
|
-
const
|
|
3502
|
-
function
|
|
3503
|
-
|
|
3496
|
+
ue.subscribe((e) => Xe = e);
|
|
3497
|
+
const de = {};
|
|
3498
|
+
function Mn(e, t) {
|
|
3499
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3504
3500
|
}
|
|
3505
3501
|
function Ft(e) {
|
|
3506
|
-
return
|
|
3502
|
+
return de[e];
|
|
3507
3503
|
}
|
|
3508
|
-
function
|
|
3509
|
-
return
|
|
3504
|
+
function $n(e) {
|
|
3505
|
+
return xe(e).map((t) => {
|
|
3510
3506
|
const r = Ft(t);
|
|
3511
3507
|
return [t, r ? [...r] : []];
|
|
3512
3508
|
}).filter(([, t]) => t.length > 0);
|
|
3513
3509
|
}
|
|
3514
|
-
function
|
|
3515
|
-
return e == null ? !1 :
|
|
3510
|
+
function Ge(e) {
|
|
3511
|
+
return e == null ? !1 : xe(e).some(
|
|
3516
3512
|
(t) => {
|
|
3517
3513
|
var r;
|
|
3518
3514
|
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3519
3515
|
}
|
|
3520
3516
|
);
|
|
3521
3517
|
}
|
|
3522
|
-
function
|
|
3518
|
+
function Rn(e, t) {
|
|
3523
3519
|
return Promise.all(
|
|
3524
|
-
t.map((n) => (
|
|
3520
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3525
3521
|
).then((n) => Ut(e, ...n));
|
|
3526
3522
|
}
|
|
3527
|
-
const
|
|
3523
|
+
const te = {};
|
|
3528
3524
|
function Gt(e) {
|
|
3529
|
-
if (!
|
|
3530
|
-
return e in
|
|
3531
|
-
const t =
|
|
3532
|
-
return
|
|
3525
|
+
if (!Ge(e))
|
|
3526
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3527
|
+
const t = $n(e);
|
|
3528
|
+
return te[e] = Promise.all(
|
|
3533
3529
|
t.map(
|
|
3534
|
-
([r, n]) =>
|
|
3530
|
+
([r, n]) => Rn(r, n)
|
|
3535
3531
|
)
|
|
3536
3532
|
).then(() => {
|
|
3537
|
-
if (
|
|
3533
|
+
if (Ge(e))
|
|
3538
3534
|
return Gt(e);
|
|
3539
|
-
delete
|
|
3540
|
-
}),
|
|
3535
|
+
delete te[e];
|
|
3536
|
+
}), te[e];
|
|
3541
3537
|
}
|
|
3542
|
-
const
|
|
3538
|
+
const Dn = {
|
|
3543
3539
|
number: {
|
|
3544
3540
|
scientific: { notation: "scientific" },
|
|
3545
3541
|
engineering: { notation: "engineering" },
|
|
@@ -3568,141 +3564,141 @@ const Un = {
|
|
|
3568
3564
|
timeZoneName: "short"
|
|
3569
3565
|
}
|
|
3570
3566
|
}
|
|
3571
|
-
},
|
|
3567
|
+
}, Un = {
|
|
3572
3568
|
fallbackLocale: null,
|
|
3573
3569
|
loadingDelay: 200,
|
|
3574
|
-
formats:
|
|
3570
|
+
formats: Dn,
|
|
3575
3571
|
warnOnMissingMessages: !0,
|
|
3576
3572
|
handleMissingMessage: void 0,
|
|
3577
3573
|
ignoreTag: !0
|
|
3578
|
-
},
|
|
3579
|
-
function
|
|
3580
|
-
return
|
|
3574
|
+
}, Fn = Un;
|
|
3575
|
+
function Y() {
|
|
3576
|
+
return Fn;
|
|
3581
3577
|
}
|
|
3582
|
-
const
|
|
3583
|
-
var
|
|
3578
|
+
const Oe = ye(!1);
|
|
3579
|
+
var Gn = Object.defineProperty, jn = Object.defineProperties, kn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Vn = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zn = (e, t) => {
|
|
3584
3580
|
for (var r in t || (t = {}))
|
|
3585
|
-
|
|
3581
|
+
Vn.call(t, r) && lt(e, r, t[r]);
|
|
3586
3582
|
if (ht)
|
|
3587
3583
|
for (var r of ht(t))
|
|
3588
|
-
|
|
3584
|
+
Xn.call(t, r) && lt(e, r, t[r]);
|
|
3589
3585
|
return e;
|
|
3590
|
-
},
|
|
3591
|
-
let
|
|
3592
|
-
const
|
|
3586
|
+
}, Wn = (e, t) => jn(e, kn(t));
|
|
3587
|
+
let je;
|
|
3588
|
+
const pe = ye(null);
|
|
3593
3589
|
function ft(e) {
|
|
3594
3590
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3595
3591
|
}
|
|
3596
|
-
function
|
|
3592
|
+
function xe(e, t = Y().fallbackLocale) {
|
|
3597
3593
|
const r = ft(e);
|
|
3598
3594
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3599
3595
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3596
|
+
function V() {
|
|
3597
|
+
return je != null ? je : void 0;
|
|
3602
3598
|
}
|
|
3603
|
-
|
|
3604
|
-
|
|
3599
|
+
pe.subscribe((e) => {
|
|
3600
|
+
je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3605
3601
|
});
|
|
3606
|
-
const
|
|
3607
|
-
if (e &&
|
|
3608
|
-
const { loadingDelay: t } =
|
|
3602
|
+
const Zn = (e) => {
|
|
3603
|
+
if (e && Cn(e) && Ge(e)) {
|
|
3604
|
+
const { loadingDelay: t } = Y();
|
|
3609
3605
|
let r;
|
|
3610
|
-
return typeof window != "undefined" &&
|
|
3611
|
-
() =>
|
|
3606
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3607
|
+
() => Oe.set(!0),
|
|
3612
3608
|
t
|
|
3613
|
-
) :
|
|
3614
|
-
|
|
3609
|
+
) : Oe.set(!0), Gt(e).then(() => {
|
|
3610
|
+
pe.set(e);
|
|
3615
3611
|
}).finally(() => {
|
|
3616
|
-
clearTimeout(r),
|
|
3612
|
+
clearTimeout(r), Oe.set(!1);
|
|
3617
3613
|
});
|
|
3618
3614
|
}
|
|
3619
|
-
return
|
|
3620
|
-
},
|
|
3621
|
-
set:
|
|
3622
|
-
}),
|
|
3615
|
+
return pe.set(e);
|
|
3616
|
+
}, he = Wn(zn({}, pe), {
|
|
3617
|
+
set: Zn
|
|
3618
|
+
}), ve = (e) => {
|
|
3623
3619
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3624
3620
|
return (n) => {
|
|
3625
3621
|
const i = JSON.stringify(n);
|
|
3626
3622
|
return i in t ? t[i] : t[i] = e(n);
|
|
3627
3623
|
};
|
|
3628
3624
|
};
|
|
3629
|
-
var
|
|
3625
|
+
var Qn = Object.defineProperty, ge = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
3630
3626
|
for (var r in t || (t = {}))
|
|
3631
3627
|
jt.call(t, r) && ct(e, r, t[r]);
|
|
3632
|
-
if (
|
|
3633
|
-
for (var r of
|
|
3628
|
+
if (ge)
|
|
3629
|
+
for (var r of ge(t))
|
|
3634
3630
|
kt.call(t, r) && ct(e, r, t[r]);
|
|
3635
3631
|
return e;
|
|
3636
|
-
},
|
|
3632
|
+
}, ee = (e, t) => {
|
|
3637
3633
|
var r = {};
|
|
3638
3634
|
for (var n in e)
|
|
3639
3635
|
jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3640
|
-
if (e != null &&
|
|
3641
|
-
for (var n of
|
|
3636
|
+
if (e != null && ge)
|
|
3637
|
+
for (var n of ge(e))
|
|
3642
3638
|
t.indexOf(n) < 0 && kt.call(e, n) && (r[n] = e[n]);
|
|
3643
3639
|
return r;
|
|
3644
3640
|
};
|
|
3645
|
-
const
|
|
3646
|
-
const { formats: r } =
|
|
3641
|
+
const oe = (e, t) => {
|
|
3642
|
+
const { formats: r } = Y();
|
|
3647
3643
|
if (e in r && t in r[e])
|
|
3648
3644
|
return r[e][t];
|
|
3649
3645
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3650
|
-
},
|
|
3646
|
+
}, Jn = ve(
|
|
3651
3647
|
(e) => {
|
|
3652
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3648
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3653
3649
|
if (r == null)
|
|
3654
3650
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3655
|
-
return n && (i =
|
|
3651
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3656
3652
|
}
|
|
3657
|
-
),
|
|
3653
|
+
), qn = ve(
|
|
3658
3654
|
(e) => {
|
|
3659
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3655
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3660
3656
|
if (r == null)
|
|
3661
3657
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3662
|
-
return n ? i =
|
|
3658
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3663
3659
|
}
|
|
3664
|
-
),
|
|
3660
|
+
), Yn = ve(
|
|
3665
3661
|
(e) => {
|
|
3666
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3662
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3667
3663
|
if (r == null)
|
|
3668
3664
|
throw new Error(
|
|
3669
3665
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3670
3666
|
);
|
|
3671
|
-
return n ? i =
|
|
3667
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3672
3668
|
}
|
|
3673
|
-
),
|
|
3669
|
+
), Kn = (e = {}) => {
|
|
3674
3670
|
var t = e, {
|
|
3675
|
-
locale: r =
|
|
3676
|
-
} = t, n =
|
|
3671
|
+
locale: r = V()
|
|
3672
|
+
} = t, n = ee(t, [
|
|
3677
3673
|
"locale"
|
|
3678
3674
|
]);
|
|
3679
|
-
return
|
|
3680
|
-
},
|
|
3675
|
+
return Jn(ze({ locale: r }, n));
|
|
3676
|
+
}, ei = (e = {}) => {
|
|
3681
3677
|
var t = e, {
|
|
3682
|
-
locale: r =
|
|
3683
|
-
} = t, n =
|
|
3678
|
+
locale: r = V()
|
|
3679
|
+
} = t, n = ee(t, [
|
|
3684
3680
|
"locale"
|
|
3685
3681
|
]);
|
|
3686
|
-
return
|
|
3687
|
-
},
|
|
3682
|
+
return qn(ze({ locale: r }, n));
|
|
3683
|
+
}, ti = (e = {}) => {
|
|
3688
3684
|
var t = e, {
|
|
3689
|
-
locale: r =
|
|
3690
|
-
} = t, n =
|
|
3685
|
+
locale: r = V()
|
|
3686
|
+
} = t, n = ee(t, [
|
|
3691
3687
|
"locale"
|
|
3692
3688
|
]);
|
|
3693
|
-
return
|
|
3694
|
-
},
|
|
3689
|
+
return Yn(ze({ locale: r }, n));
|
|
3690
|
+
}, ri = ve(
|
|
3695
3691
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3696
|
-
(e, t =
|
|
3697
|
-
ignoreTag:
|
|
3692
|
+
(e, t = V()) => new Nn(e, t, Y().formats, {
|
|
3693
|
+
ignoreTag: Y().ignoreTag
|
|
3698
3694
|
})
|
|
3699
|
-
),
|
|
3695
|
+
), ni = (e, t = {}) => {
|
|
3700
3696
|
var r, n, i, s;
|
|
3701
3697
|
let o = t;
|
|
3702
3698
|
typeof e == "object" && (o = e, e = o.id);
|
|
3703
3699
|
const {
|
|
3704
3700
|
values: a,
|
|
3705
|
-
locale: h =
|
|
3701
|
+
locale: h = V(),
|
|
3706
3702
|
default: u
|
|
3707
3703
|
} = o;
|
|
3708
3704
|
if (h == null)
|
|
@@ -3711,7 +3707,7 @@ const ae = (e, t) => {
|
|
|
3711
3707
|
);
|
|
3712
3708
|
let l = Rt(e, h);
|
|
3713
3709
|
if (!l)
|
|
3714
|
-
l = (s = (i = (n = (r =
|
|
3710
|
+
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3715
3711
|
else if (typeof l != "string")
|
|
3716
3712
|
return console.warn(
|
|
3717
3713
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3720,7 +3716,7 @@ const ae = (e, t) => {
|
|
|
3720
3716
|
return l;
|
|
3721
3717
|
let f = l;
|
|
3722
3718
|
try {
|
|
3723
|
-
f =
|
|
3719
|
+
f = ri(l, h).format(a);
|
|
3724
3720
|
} catch (c) {
|
|
3725
3721
|
c instanceof Error && console.warn(
|
|
3726
3722
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3728,11 +3724,11 @@ const ae = (e, t) => {
|
|
|
3728
3724
|
);
|
|
3729
3725
|
}
|
|
3730
3726
|
return f;
|
|
3731
|
-
},
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3727
|
+
}, ii = (e, t) => ti(t).format(e), si = (e, t) => ei(t).format(e), oi = (e, t) => Kn(t).format(e), ai = (e, t = V()) => Rt(e, t), ui = K([he, ue], () => ni);
|
|
3728
|
+
K([he], () => ii);
|
|
3729
|
+
K([he], () => si);
|
|
3730
|
+
K([he], () => oi);
|
|
3731
|
+
K([he, ue], () => ai);
|
|
3736
3732
|
function mt(e, t) {
|
|
3737
3733
|
Ut(e, t);
|
|
3738
3734
|
}
|
|
@@ -3826,7 +3822,7 @@ const dt = {
|
|
|
3826
3822
|
days: "days"
|
|
3827
3823
|
}
|
|
3828
3824
|
};
|
|
3829
|
-
function
|
|
3825
|
+
function hi(e) {
|
|
3830
3826
|
tr(e, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
3831
3827
|
}
|
|
3832
3828
|
function pt(e) {
|
|
@@ -3842,15 +3838,15 @@ function pt(e) {
|
|
|
3842
3838
|
/*enddate*/
|
|
3843
3839
|
e[1]
|
|
3844
3840
|
) + ""
|
|
3845
|
-
), h, u, l, f, c, p,
|
|
3841
|
+
), h, u, l, f, c, p, E;
|
|
3846
3842
|
function T(d, S) {
|
|
3847
3843
|
return (
|
|
3848
3844
|
/*status*/
|
|
3849
3845
|
d[2] == "Finished" || /*status*/
|
|
3850
3846
|
d[2] == "Closing" || /*status*/
|
|
3851
|
-
d[2] == "Closed" ?
|
|
3847
|
+
d[2] == "Closed" ? ci : (
|
|
3852
3848
|
/*tournamentUntilStartDays*/
|
|
3853
|
-
d[5] > 0 ?
|
|
3849
|
+
d[5] > 0 ? fi : li
|
|
3854
3850
|
)
|
|
3855
3851
|
);
|
|
3856
3852
|
}
|
|
@@ -3862,25 +3858,25 @@ function pt(e) {
|
|
|
3862
3858
|
d[2] == "Closing" || /*status*/
|
|
3863
3859
|
d[2] == "Closed"
|
|
3864
3860
|
)
|
|
3865
|
-
return
|
|
3861
|
+
return pi;
|
|
3866
3862
|
if (
|
|
3867
3863
|
/*tournamentUntilStartDays*/
|
|
3868
3864
|
d[5] > 0
|
|
3869
3865
|
)
|
|
3870
|
-
return
|
|
3866
|
+
return di;
|
|
3871
3867
|
if (
|
|
3872
3868
|
/*tournamentLeftDays*/
|
|
3873
3869
|
d[4] > 0
|
|
3874
3870
|
)
|
|
3875
|
-
return
|
|
3871
|
+
return mi;
|
|
3876
3872
|
}
|
|
3877
|
-
let
|
|
3873
|
+
let v = L(e), H = v && v(e);
|
|
3878
3874
|
return {
|
|
3879
3875
|
c() {
|
|
3880
|
-
t =
|
|
3876
|
+
t = I("div"), r = I("div"), i = G(n), s = re(), o = I("div"), h = G(a), u = re(), l = I("div"), f = I("div"), B.c(), c = re(), H && H.c(), _(r, "class", "StartDate"), _(r, "part", "StartDate"), _(o, "class", "EndDate"), _(o, "part", "EndDate"), _(t, "class", "TournamentDates"), _(t, "part", "TournamentDates"), _(f, "class", "ProgressBar"), _(f, "part", "ProgressBar"), _(l, "class", "ProgressBarWrapper"), _(l, "part", "ProgressBarWrapper");
|
|
3881
3877
|
},
|
|
3882
3878
|
m(d, S) {
|
|
3883
|
-
R(d, t, S),
|
|
3879
|
+
R(d, t, S), O(t, r), O(r, i), O(t, s), O(t, o), O(o, h), R(d, u, S), R(d, l, S), O(l, f), B.m(f, null), O(f, c), H && H.m(f, null), p || (E = er(
|
|
3884
3880
|
/*getDuration*/
|
|
3885
3881
|
e[9].call(null, l)
|
|
3886
3882
|
), p = !0);
|
|
@@ -3891,23 +3887,23 @@ function pt(e) {
|
|
|
3891
3887
|
d[10](
|
|
3892
3888
|
/*startdate*/
|
|
3893
3889
|
d[0]
|
|
3894
|
-
) + "") &&
|
|
3890
|
+
) + "") && k(i, n), S & /*enddate*/
|
|
3895
3891
|
2 && a !== (a = /*formatDate*/
|
|
3896
3892
|
d[10](
|
|
3897
3893
|
/*enddate*/
|
|
3898
3894
|
d[1]
|
|
3899
|
-
) + "") &&
|
|
3895
|
+
) + "") && k(h, a), P === (P = T(d)) && B ? B.p(d, S) : (B.d(1), B = P(d), B && (B.c(), B.m(f, c))), v === (v = L(d)) && H ? H.p(d, S) : (H && H.d(1), H = v && v(d), H && (H.c(), H.m(f, null)));
|
|
3900
3896
|
},
|
|
3901
3897
|
d(d) {
|
|
3902
|
-
d && ($(t), $(u), $(l)), B.d(),
|
|
3898
|
+
d && ($(t), $(u), $(l)), B.d(), H && H.d(), p = !1, E();
|
|
3903
3899
|
}
|
|
3904
3900
|
};
|
|
3905
3901
|
}
|
|
3906
|
-
function
|
|
3902
|
+
function li(e) {
|
|
3907
3903
|
let t;
|
|
3908
3904
|
return {
|
|
3909
3905
|
c() {
|
|
3910
|
-
t =
|
|
3906
|
+
t = I("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"), Ye(
|
|
3911
3907
|
t,
|
|
3912
3908
|
"width",
|
|
3913
3909
|
/*getProgress*/
|
|
@@ -3931,67 +3927,67 @@ function fi(e) {
|
|
|
3931
3927
|
}
|
|
3932
3928
|
};
|
|
3933
3929
|
}
|
|
3934
|
-
function
|
|
3930
|
+
function fi(e) {
|
|
3935
3931
|
let t;
|
|
3936
3932
|
return {
|
|
3937
3933
|
c() {
|
|
3938
|
-
t =
|
|
3934
|
+
t = I("div"), _(t, "class", "ProgressBarFillStarting"), _(t, "part", "ProgressBarFillStarting");
|
|
3939
3935
|
},
|
|
3940
3936
|
m(r, n) {
|
|
3941
3937
|
R(r, t, n);
|
|
3942
3938
|
},
|
|
3943
|
-
p:
|
|
3939
|
+
p: w,
|
|
3944
3940
|
d(r) {
|
|
3945
3941
|
r && $(t);
|
|
3946
3942
|
}
|
|
3947
3943
|
};
|
|
3948
3944
|
}
|
|
3949
|
-
function
|
|
3945
|
+
function ci(e) {
|
|
3950
3946
|
let t;
|
|
3951
3947
|
return {
|
|
3952
3948
|
c() {
|
|
3953
|
-
t =
|
|
3949
|
+
t = I("div"), _(t, "class", "ProgressBarFillEnd"), _(t, "part", "ProgressBarFillEnd");
|
|
3954
3950
|
},
|
|
3955
3951
|
m(r, n) {
|
|
3956
3952
|
R(r, t, n);
|
|
3957
3953
|
},
|
|
3958
|
-
p:
|
|
3954
|
+
p: w,
|
|
3959
3955
|
d(r) {
|
|
3960
3956
|
r && $(t);
|
|
3961
3957
|
}
|
|
3962
3958
|
};
|
|
3963
3959
|
}
|
|
3964
|
-
function
|
|
3960
|
+
function mi(e) {
|
|
3965
3961
|
let t, r, n, i = (
|
|
3966
3962
|
/*$_*/
|
|
3967
3963
|
e[8]("left") + ""
|
|
3968
3964
|
), s;
|
|
3969
3965
|
return {
|
|
3970
3966
|
c() {
|
|
3971
|
-
t =
|
|
3967
|
+
t = I("div"), r = G(
|
|
3972
3968
|
/*showRemain*/
|
|
3973
3969
|
e[6]
|
|
3974
|
-
), n =
|
|
3970
|
+
), n = re(), s = G(i), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
3975
3971
|
},
|
|
3976
3972
|
m(o, a) {
|
|
3977
|
-
R(o, t, a),
|
|
3973
|
+
R(o, t, a), O(t, r), O(t, n), O(t, s);
|
|
3978
3974
|
},
|
|
3979
3975
|
p(o, a) {
|
|
3980
3976
|
a & /*showRemain*/
|
|
3981
|
-
64 &&
|
|
3977
|
+
64 && k(
|
|
3982
3978
|
r,
|
|
3983
3979
|
/*showRemain*/
|
|
3984
3980
|
o[6]
|
|
3985
3981
|
), a & /*$_*/
|
|
3986
3982
|
256 && i !== (i = /*$_*/
|
|
3987
|
-
o[8]("left") + "") &&
|
|
3983
|
+
o[8]("left") + "") && k(s, i);
|
|
3988
3984
|
},
|
|
3989
3985
|
d(o) {
|
|
3990
3986
|
o && $(t);
|
|
3991
3987
|
}
|
|
3992
3988
|
};
|
|
3993
3989
|
}
|
|
3994
|
-
function
|
|
3990
|
+
function di(e) {
|
|
3995
3991
|
let t, r = (
|
|
3996
3992
|
/*$_*/
|
|
3997
3993
|
e[8]("starting") + ""
|
|
@@ -4004,49 +4000,49 @@ function pi(e) {
|
|
|
4004
4000
|
), o;
|
|
4005
4001
|
return {
|
|
4006
4002
|
c() {
|
|
4007
|
-
t =
|
|
4003
|
+
t = I("div"), n = G(r), i = re(), o = G(s), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
4008
4004
|
},
|
|
4009
4005
|
m(a, h) {
|
|
4010
|
-
R(a, t, h),
|
|
4006
|
+
R(a, t, h), O(t, n), O(t, i), O(t, o);
|
|
4011
4007
|
},
|
|
4012
4008
|
p(a, h) {
|
|
4013
4009
|
h & /*$_*/
|
|
4014
4010
|
256 && r !== (r = /*$_*/
|
|
4015
|
-
a[8]("starting") + "") &&
|
|
4011
|
+
a[8]("starting") + "") && k(n, r), h & /*tournamentUntilStartDays*/
|
|
4016
4012
|
32 && s !== (s = /*getTextByDiff*/
|
|
4017
4013
|
a[11](
|
|
4018
4014
|
/*tournamentUntilStartDays*/
|
|
4019
4015
|
a[5]
|
|
4020
|
-
) + "") &&
|
|
4016
|
+
) + "") && k(o, s);
|
|
4021
4017
|
},
|
|
4022
4018
|
d(a) {
|
|
4023
4019
|
a && $(t);
|
|
4024
4020
|
}
|
|
4025
4021
|
};
|
|
4026
4022
|
}
|
|
4027
|
-
function
|
|
4023
|
+
function pi(e) {
|
|
4028
4024
|
let t, r = (
|
|
4029
4025
|
/*$_*/
|
|
4030
4026
|
e[8]("finished") + ""
|
|
4031
4027
|
), n;
|
|
4032
4028
|
return {
|
|
4033
4029
|
c() {
|
|
4034
|
-
t =
|
|
4030
|
+
t = I("div"), n = G(r), _(t, "class", "Finished"), _(t, "part", "Finished");
|
|
4035
4031
|
},
|
|
4036
4032
|
m(i, s) {
|
|
4037
|
-
R(i, t, s),
|
|
4033
|
+
R(i, t, s), O(t, n);
|
|
4038
4034
|
},
|
|
4039
4035
|
p(i, s) {
|
|
4040
4036
|
s & /*$_*/
|
|
4041
4037
|
256 && r !== (r = /*$_*/
|
|
4042
|
-
i[8]("finished") + "") &&
|
|
4038
|
+
i[8]("finished") + "") && k(n, r);
|
|
4043
4039
|
},
|
|
4044
4040
|
d(i) {
|
|
4045
4041
|
i && $(t);
|
|
4046
4042
|
}
|
|
4047
4043
|
};
|
|
4048
4044
|
}
|
|
4049
|
-
function
|
|
4045
|
+
function gi(e) {
|
|
4050
4046
|
let t, r = (
|
|
4051
4047
|
/*startdate*/
|
|
4052
4048
|
e[0] && /*enddate*/
|
|
@@ -4054,7 +4050,7 @@ function bi(e) {
|
|
|
4054
4050
|
);
|
|
4055
4051
|
return {
|
|
4056
4052
|
c() {
|
|
4057
|
-
t =
|
|
4053
|
+
t = I("div"), r && r.c(), _(t, "class", "TournamentDuration"), _(t, "part", "TournamentDuration");
|
|
4058
4054
|
},
|
|
4059
4055
|
m(n, i) {
|
|
4060
4056
|
R(n, t, i), r && r.m(t, null), e[16](t);
|
|
@@ -4064,17 +4060,17 @@ function bi(e) {
|
|
|
4064
4060
|
n[0] && /*enddate*/
|
|
4065
4061
|
n[1] ? r ? r.p(n, i) : (r = pt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4066
4062
|
},
|
|
4067
|
-
i:
|
|
4068
|
-
o:
|
|
4063
|
+
i: w,
|
|
4064
|
+
o: w,
|
|
4069
4065
|
d(n) {
|
|
4070
4066
|
n && $(t), r && r.d(), e[16](null);
|
|
4071
4067
|
}
|
|
4072
4068
|
};
|
|
4073
4069
|
}
|
|
4074
|
-
function
|
|
4070
|
+
function bi(e, t, r) {
|
|
4075
4071
|
let n, i;
|
|
4076
|
-
Kt(e,
|
|
4077
|
-
let { startdate: s = "" } = t, { enddate: o = "" } = t, { status: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c, p = "",
|
|
4072
|
+
Kt(e, ui, (m) => r(8, i = m));
|
|
4073
|
+
let { startdate: s = "" } = t, { enddate: o = "" } = t, { status: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c, p = "", E = "", T = "";
|
|
4078
4074
|
const P = () => {
|
|
4079
4075
|
fetch(f).then((A) => A.json()).then((A) => {
|
|
4080
4076
|
Object.keys(A).forEach((C) => {
|
|
@@ -4087,27 +4083,27 @@ function yi(e, t, r) {
|
|
|
4087
4083
|
Object.keys(dt).forEach((m) => {
|
|
4088
4084
|
mt(m, dt[m]);
|
|
4089
4085
|
});
|
|
4090
|
-
const B = (m) => new Date(m).getTime(), L = (m, A) => (B(A) - B(m)) / (1e3 * 60),
|
|
4086
|
+
const B = (m) => new Date(m).getTime(), L = (m, A) => (B(A) - B(m)) / (1e3 * 60), v = () => {
|
|
4091
4087
|
const m = /* @__PURE__ */ new Date();
|
|
4092
|
-
r(4, p = L(m, o)), r(5,
|
|
4093
|
-
},
|
|
4088
|
+
r(4, p = L(m, o)), r(5, E = L(m, s)), r(6, T = d(p));
|
|
4089
|
+
}, H = (m) => {
|
|
4094
4090
|
const A = { month: "long" };
|
|
4095
|
-
let C = new Date(m),
|
|
4096
|
-
return `${C.getDate()} ${
|
|
4091
|
+
let C = new Date(m), j = new Intl.DateTimeFormat(h, A).format(C);
|
|
4092
|
+
return `${C.getDate()} ${j}, ${C.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${C.getUTCFullYear()}`;
|
|
4097
4093
|
}, d = (m) => {
|
|
4098
|
-
const A = (
|
|
4099
|
-
const D = Math.floor(
|
|
4094
|
+
const A = (j, D) => j + " " + i(D), C = (j) => {
|
|
4095
|
+
const D = Math.floor(j);
|
|
4100
4096
|
return D < 10 ? `0${D}` : `${D}`;
|
|
4101
4097
|
};
|
|
4102
4098
|
if (m < 1440) {
|
|
4103
|
-
const
|
|
4104
|
-
return [
|
|
4099
|
+
const j = m / 60, D = m % 60, Xt = (D - Math.floor(D)) * 60;
|
|
4100
|
+
return [j, D, Xt].map((zt) => C(zt)).join(":");
|
|
4105
4101
|
}
|
|
4106
4102
|
return A(Math.ceil(m / (60 * 24)), "days");
|
|
4107
4103
|
}, S = () => {
|
|
4108
4104
|
let m = document.createElement("style");
|
|
4109
4105
|
m.innerHTML = u, c.appendChild(m);
|
|
4110
|
-
},
|
|
4106
|
+
}, le = () => {
|
|
4111
4107
|
let m = new URL(l), A = document.createElement("style");
|
|
4112
4108
|
fetch(m.href).then((C) => C.text()).then((C) => {
|
|
4113
4109
|
A.innerHTML = C, setTimeout(
|
|
@@ -4126,14 +4122,14 @@ function yi(e, t, r) {
|
|
|
4126
4122
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4127
4123
|
const m = setInterval(
|
|
4128
4124
|
() => {
|
|
4129
|
-
s && o &&
|
|
4125
|
+
s && o && v();
|
|
4130
4126
|
},
|
|
4131
4127
|
1e3
|
|
4132
4128
|
);
|
|
4133
4129
|
return () => clearInterval(m);
|
|
4134
4130
|
});
|
|
4135
4131
|
function Vt(m) {
|
|
4136
|
-
|
|
4132
|
+
Ie[m ? "unshift" : "push"](() => {
|
|
4137
4133
|
c = m, r(3, c);
|
|
4138
4134
|
});
|
|
4139
4135
|
}
|
|
@@ -4147,24 +4143,24 @@ function yi(e, t, r) {
|
|
|
4147
4143
|
const m = L(s, o), A = 100 / m;
|
|
4148
4144
|
return Math.floor((m - p) * A);
|
|
4149
4145
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4150
|
-
19 && s && o &&
|
|
4151
|
-
4096 && h &&
|
|
4146
|
+
19 && s && o && v() && d(p), e.$$.dirty & /*lang*/
|
|
4147
|
+
4096 && h && v(), e.$$.dirty & /*lang, tournamentLeftDays*/
|
|
4152
4148
|
4112 && h && d(p), e.$$.dirty & /*translationurl*/
|
|
4153
4149
|
32768 && f && P(), e.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
4154
4150
|
8200 && c && u && S(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
4155
|
-
16392 && c && l &&
|
|
4151
|
+
16392 && c && l && le();
|
|
4156
4152
|
}, [
|
|
4157
4153
|
s,
|
|
4158
4154
|
o,
|
|
4159
4155
|
a,
|
|
4160
4156
|
c,
|
|
4161
4157
|
p,
|
|
4162
|
-
|
|
4158
|
+
E,
|
|
4163
4159
|
T,
|
|
4164
4160
|
n,
|
|
4165
4161
|
i,
|
|
4166
|
-
x,
|
|
4167
4162
|
v,
|
|
4163
|
+
H,
|
|
4168
4164
|
d,
|
|
4169
4165
|
h,
|
|
4170
4166
|
u,
|
|
@@ -4173,13 +4169,13 @@ function yi(e, t, r) {
|
|
|
4173
4169
|
Vt
|
|
4174
4170
|
];
|
|
4175
4171
|
}
|
|
4176
|
-
class
|
|
4172
|
+
class yi extends Er {
|
|
4177
4173
|
constructor(t) {
|
|
4178
4174
|
super(), br(
|
|
4179
4175
|
this,
|
|
4180
4176
|
t,
|
|
4181
|
-
yi,
|
|
4182
4177
|
bi,
|
|
4178
|
+
gi,
|
|
4183
4179
|
bt,
|
|
4184
4180
|
{
|
|
4185
4181
|
startdate: 0,
|
|
@@ -4190,53 +4186,53 @@ class Ei extends Er {
|
|
|
4190
4186
|
clientstylingurl: 14,
|
|
4191
4187
|
translationurl: 15
|
|
4192
4188
|
},
|
|
4193
|
-
|
|
4189
|
+
hi
|
|
4194
4190
|
);
|
|
4195
4191
|
}
|
|
4196
4192
|
get startdate() {
|
|
4197
4193
|
return this.$$.ctx[0];
|
|
4198
4194
|
}
|
|
4199
4195
|
set startdate(t) {
|
|
4200
|
-
this.$$set({ startdate: t }),
|
|
4196
|
+
this.$$set({ startdate: t }), U();
|
|
4201
4197
|
}
|
|
4202
4198
|
get enddate() {
|
|
4203
4199
|
return this.$$.ctx[1];
|
|
4204
4200
|
}
|
|
4205
4201
|
set enddate(t) {
|
|
4206
|
-
this.$$set({ enddate: t }),
|
|
4202
|
+
this.$$set({ enddate: t }), U();
|
|
4207
4203
|
}
|
|
4208
4204
|
get status() {
|
|
4209
4205
|
return this.$$.ctx[2];
|
|
4210
4206
|
}
|
|
4211
4207
|
set status(t) {
|
|
4212
|
-
this.$$set({ status: t }),
|
|
4208
|
+
this.$$set({ status: t }), U();
|
|
4213
4209
|
}
|
|
4214
4210
|
get lang() {
|
|
4215
4211
|
return this.$$.ctx[12];
|
|
4216
4212
|
}
|
|
4217
4213
|
set lang(t) {
|
|
4218
|
-
this.$$set({ lang: t }),
|
|
4214
|
+
this.$$set({ lang: t }), U();
|
|
4219
4215
|
}
|
|
4220
4216
|
get clientstyling() {
|
|
4221
4217
|
return this.$$.ctx[13];
|
|
4222
4218
|
}
|
|
4223
4219
|
set clientstyling(t) {
|
|
4224
|
-
this.$$set({ clientstyling: t }),
|
|
4220
|
+
this.$$set({ clientstyling: t }), U();
|
|
4225
4221
|
}
|
|
4226
4222
|
get clientstylingurl() {
|
|
4227
4223
|
return this.$$.ctx[14];
|
|
4228
4224
|
}
|
|
4229
4225
|
set clientstylingurl(t) {
|
|
4230
|
-
this.$$set({ clientstylingurl: t }),
|
|
4226
|
+
this.$$set({ clientstylingurl: t }), U();
|
|
4231
4227
|
}
|
|
4232
4228
|
get translationurl() {
|
|
4233
4229
|
return this.$$.ctx[15];
|
|
4234
4230
|
}
|
|
4235
4231
|
set translationurl(t) {
|
|
4236
|
-
this.$$set({ translationurl: t }),
|
|
4232
|
+
this.$$set({ translationurl: t }), U();
|
|
4237
4233
|
}
|
|
4238
4234
|
}
|
|
4239
|
-
yr(
|
|
4235
|
+
yr(yi, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4240
4236
|
export {
|
|
4241
|
-
|
|
4237
|
+
yi as default
|
|
4242
4238
|
};
|