@everymatrix/casino-tournaments-thumbnail-duration 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsThumbnailDuration-DY_Rw8AI.js → CasinoTournamentsThumbnailDuration-6l1nej4L.js} +391 -362
- package/components/CasinoTournamentsThumbnailDuration-D0HB4CR5.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailDuration-BdlmRy4_.js → CasinoTournamentsThumbnailDuration-DICQG_Cu.js} +397 -368
- 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-leqpslnj.cjs +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var He = (e, t, r) => t in e ?
|
|
1
|
+
var Wt = Object.defineProperty, Zt = Object.defineProperties;
|
|
2
|
+
var Qt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var We = Object.getOwnPropertySymbols;
|
|
4
|
+
var Jt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable;
|
|
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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Jt.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (We)
|
|
9
|
+
for (var r of We(t))
|
|
10
|
+
qt.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var M = (e, t, r) => He(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var
|
|
12
|
+
}, Qe = (e, t) => Zt(e, Qt(t));
|
|
13
|
+
var M = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Je = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,25 +29,25 @@ var Ze = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function w() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function gt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function qe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ae(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(gt);
|
|
40
40
|
}
|
|
41
41
|
function be(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function bt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Yt(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function yt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,24 +56,25 @@ function gt(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Kt(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(yt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function er(e) {
|
|
63
63
|
return e && be(e.destroy) ? e.destroy : w;
|
|
64
64
|
}
|
|
65
65
|
function O(e, t) {
|
|
66
66
|
e.appendChild(t);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const n =
|
|
68
|
+
function tr(e, t, r) {
|
|
69
|
+
const n = rr(e);
|
|
70
70
|
if (!n.getElementById(t)) {
|
|
71
71
|
const i = I("style");
|
|
72
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
i.id = t, i.textContent = r, nr(n, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
if (!e)
|
|
75
|
+
function rr(e) {
|
|
76
|
+
if (!e)
|
|
77
|
+
return document;
|
|
77
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
78
79
|
return t && /** @type {ShadowRoot} */
|
|
79
80
|
t.host ? (
|
|
@@ -81,7 +82,7 @@ function er(e) {
|
|
|
81
82
|
t
|
|
82
83
|
) : e.ownerDocument;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function nr(e, t) {
|
|
85
86
|
return O(
|
|
86
87
|
/** @type {Document} */
|
|
87
88
|
e.head || e,
|
|
@@ -106,17 +107,17 @@ function re() {
|
|
|
106
107
|
function _(e, t, r) {
|
|
107
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
+
function ir(e) {
|
|
110
111
|
return Array.from(e.childNodes);
|
|
111
112
|
}
|
|
112
113
|
function k(e, t) {
|
|
113
114
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
114
115
|
t);
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
+
function Ye(e, t, r, n) {
|
|
117
118
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function sr(e) {
|
|
120
121
|
const t = {};
|
|
121
122
|
return e.childNodes.forEach(
|
|
122
123
|
/** @param {Element} node */
|
|
@@ -129,19 +130,20 @@ let ie;
|
|
|
129
130
|
function ne(e) {
|
|
130
131
|
ie = e;
|
|
131
132
|
}
|
|
132
|
-
function
|
|
133
|
-
if (!ie)
|
|
133
|
+
function or() {
|
|
134
|
+
if (!ie)
|
|
135
|
+
throw new Error("Function called outside component initialization");
|
|
134
136
|
return ie;
|
|
135
137
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
+
function ar(e) {
|
|
139
|
+
or().$$.on_mount.push(e);
|
|
138
140
|
}
|
|
139
141
|
const W = [], Ie = [];
|
|
140
142
|
let Z = [];
|
|
141
|
-
const
|
|
143
|
+
const Ke = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
142
144
|
let we = !1;
|
|
143
|
-
function
|
|
144
|
-
we || (we = !0,
|
|
145
|
+
function hr() {
|
|
146
|
+
we || (we = !0, ur.then(U));
|
|
145
147
|
}
|
|
146
148
|
function Le(e) {
|
|
147
149
|
Z.push(e);
|
|
@@ -156,52 +158,53 @@ function U() {
|
|
|
156
158
|
try {
|
|
157
159
|
for (; X < W.length; ) {
|
|
158
160
|
const t = W[X];
|
|
159
|
-
X++, ne(t),
|
|
161
|
+
X++, ne(t), lr(t.$$);
|
|
160
162
|
}
|
|
161
163
|
} catch (t) {
|
|
162
164
|
throw W.length = 0, X = 0, t;
|
|
163
165
|
}
|
|
164
|
-
for (ne(null), W.length = 0, X = 0; Ie.length; )
|
|
166
|
+
for (ne(null), W.length = 0, X = 0; Ie.length; )
|
|
167
|
+
Ie.pop()();
|
|
165
168
|
for (let t = 0; t < Z.length; t += 1) {
|
|
166
169
|
const r = Z[t];
|
|
167
170
|
Te.has(r) || (Te.add(r), r());
|
|
168
171
|
}
|
|
169
172
|
Z.length = 0;
|
|
170
173
|
} while (W.length);
|
|
171
|
-
for (;
|
|
172
|
-
|
|
174
|
+
for (; Ke.length; )
|
|
175
|
+
Ke.pop()();
|
|
173
176
|
we = !1, Te.clear(), ne(e);
|
|
174
177
|
}
|
|
175
|
-
function
|
|
178
|
+
function lr(e) {
|
|
176
179
|
if (e.fragment !== null) {
|
|
177
180
|
e.update(), ae(e.before_update);
|
|
178
181
|
const t = e.dirty;
|
|
179
182
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
180
183
|
}
|
|
181
184
|
}
|
|
182
|
-
function
|
|
185
|
+
function fr(e) {
|
|
183
186
|
const t = [], r = [];
|
|
184
187
|
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
185
188
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
188
|
-
e && e.i && (
|
|
189
|
+
const cr = /* @__PURE__ */ new Set();
|
|
190
|
+
function mr(e, t) {
|
|
191
|
+
e && e.i && (cr.delete(e), e.i(t));
|
|
189
192
|
}
|
|
190
|
-
function
|
|
193
|
+
function dr(e, t, r) {
|
|
191
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
192
195
|
n && n.m(t, r), Le(() => {
|
|
193
|
-
const s = e.$$.on_mount.map(
|
|
196
|
+
const s = e.$$.on_mount.map(gt).filter(be);
|
|
194
197
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
195
198
|
}), i.forEach(Le);
|
|
196
199
|
}
|
|
197
|
-
function
|
|
200
|
+
function pr(e, t) {
|
|
198
201
|
const r = e.$$;
|
|
199
|
-
r.fragment !== null && (
|
|
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 = []);
|
|
200
203
|
}
|
|
201
|
-
function
|
|
202
|
-
e.$$.dirty[0] === -1 && (W.push(e),
|
|
204
|
+
function gr(e, t) {
|
|
205
|
+
e.$$.dirty[0] === -1 && (W.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
203
206
|
}
|
|
204
|
-
function
|
|
207
|
+
function br(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
205
208
|
const h = ie;
|
|
206
209
|
ne(e);
|
|
207
210
|
const u = e.$$ = {
|
|
@@ -211,7 +214,7 @@ function pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
211
214
|
props: s,
|
|
212
215
|
update: w,
|
|
213
216
|
not_equal: i,
|
|
214
|
-
bound:
|
|
217
|
+
bound: qe(),
|
|
215
218
|
// lifecycle
|
|
216
219
|
on_mount: [],
|
|
217
220
|
on_destroy: [],
|
|
@@ -220,7 +223,7 @@ function pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
220
223
|
after_update: [],
|
|
221
224
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
222
225
|
// everything else
|
|
223
|
-
callbacks:
|
|
226
|
+
callbacks: qe(),
|
|
224
227
|
dirty: a,
|
|
225
228
|
skip_bound: !1,
|
|
226
229
|
root: t.target || h.$$.root
|
|
@@ -229,19 +232,19 @@ function pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
229
232
|
let l = !1;
|
|
230
233
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
231
234
|
const E = p.length ? p[0] : c;
|
|
232
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = E) && (!u.skip_bound && u.bound[f] && u.bound[f](E), l &&
|
|
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;
|
|
233
236
|
}) : [], u.update(), l = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
234
237
|
if (t.hydrate) {
|
|
235
|
-
const f =
|
|
238
|
+
const f = ir(t.target);
|
|
236
239
|
u.fragment && u.fragment.l(f), f.forEach($);
|
|
237
240
|
} else
|
|
238
241
|
u.fragment && u.fragment.c();
|
|
239
|
-
t.intro &&
|
|
242
|
+
t.intro && mr(e.$$.fragment), dr(e, t.target, t.anchor), U();
|
|
240
243
|
}
|
|
241
244
|
ne(h);
|
|
242
245
|
}
|
|
243
|
-
let
|
|
244
|
-
typeof HTMLElement == "function" && (
|
|
246
|
+
let Et;
|
|
247
|
+
typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
245
248
|
constructor(t, r, n) {
|
|
246
249
|
super();
|
|
247
250
|
/** The Svelte component constructor */
|
|
@@ -278,7 +281,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
278
281
|
}
|
|
279
282
|
}
|
|
280
283
|
connectedCallback() {
|
|
281
|
-
return
|
|
284
|
+
return Je(this, null, function* () {
|
|
282
285
|
if (this.$$cn = !0, !this.$$c) {
|
|
283
286
|
let t = function(s) {
|
|
284
287
|
return () => {
|
|
@@ -302,7 +305,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
302
305
|
};
|
|
303
306
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
304
307
|
return;
|
|
305
|
-
const r = {}, n =
|
|
308
|
+
const r = {}, n = sr(this);
|
|
306
309
|
for (const s of this.$$s)
|
|
307
310
|
s in n && (r[s] = [t(s)]);
|
|
308
311
|
for (const s of this.attributes) {
|
|
@@ -313,7 +316,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
313
316
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
314
317
|
this.$$c = new this.$$ctor({
|
|
315
318
|
target: this.shadowRoot || this,
|
|
316
|
-
props:
|
|
319
|
+
props: Qe(Ze({}, this.$$d), {
|
|
317
320
|
$$slots: r,
|
|
318
321
|
$$scope: {
|
|
319
322
|
ctx: []
|
|
@@ -391,8 +394,8 @@ function ce(e, t, r, n) {
|
|
|
391
394
|
return t;
|
|
392
395
|
}
|
|
393
396
|
}
|
|
394
|
-
function
|
|
395
|
-
let o = class extends
|
|
397
|
+
function yr(e, t, r, n, i, s) {
|
|
398
|
+
let o = class extends Et {
|
|
396
399
|
constructor() {
|
|
397
400
|
super(e, r, i), this.$$p_d = t;
|
|
398
401
|
}
|
|
@@ -422,7 +425,7 @@ function gr(e, t, r, n, i, s) {
|
|
|
422
425
|
}), e.element = /** @type {any} */
|
|
423
426
|
o, o;
|
|
424
427
|
}
|
|
425
|
-
class
|
|
428
|
+
class Er {
|
|
426
429
|
constructor() {
|
|
427
430
|
/**
|
|
428
431
|
* ### PRIVATE API
|
|
@@ -443,7 +446,7 @@ class br {
|
|
|
443
446
|
}
|
|
444
447
|
/** @returns {void} */
|
|
445
448
|
$destroy() {
|
|
446
|
-
|
|
449
|
+
pr(this, 1), this.$destroy = w;
|
|
447
450
|
}
|
|
448
451
|
/**
|
|
449
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,13 +468,13 @@ class br {
|
|
|
465
468
|
* @returns {void}
|
|
466
469
|
*/
|
|
467
470
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
471
|
+
this.$$set && !Yt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
469
472
|
}
|
|
470
473
|
}
|
|
471
|
-
const
|
|
472
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
474
|
+
const _r = "4";
|
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
|
|
473
476
|
const z = [];
|
|
474
|
-
function
|
|
477
|
+
function xr(e, t) {
|
|
475
478
|
return {
|
|
476
479
|
subscribe: ye(e, t).subscribe
|
|
477
480
|
};
|
|
@@ -480,7 +483,7 @@ function ye(e, t = w) {
|
|
|
480
483
|
let r;
|
|
481
484
|
const n = /* @__PURE__ */ new Set();
|
|
482
485
|
function i(a) {
|
|
483
|
-
if (
|
|
486
|
+
if (bt(e, a) && (e = a, r)) {
|
|
484
487
|
const h = !z.length;
|
|
485
488
|
for (const u of n)
|
|
486
489
|
u[1](), z.push(u, e);
|
|
@@ -507,7 +510,7 @@ function K(e, t, r) {
|
|
|
507
510
|
if (!i.every(Boolean))
|
|
508
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
509
512
|
const s = t.length < 2;
|
|
510
|
-
return
|
|
513
|
+
return xr(r, (o, a) => {
|
|
511
514
|
let h = !1;
|
|
512
515
|
const u = [];
|
|
513
516
|
let l = 0, f = w;
|
|
@@ -518,7 +521,7 @@ function K(e, t, r) {
|
|
|
518
521
|
const E = t(n ? u[0] : u, o, a);
|
|
519
522
|
s ? o(E) : f = be(E) ? E : w;
|
|
520
523
|
}, p = i.map(
|
|
521
|
-
(E, T) =>
|
|
524
|
+
(E, T) => yt(
|
|
522
525
|
E,
|
|
523
526
|
(P) => {
|
|
524
527
|
u[T] = P, l &= ~(1 << T), h && c();
|
|
@@ -533,70 +536,70 @@ function K(e, t, r) {
|
|
|
533
536
|
};
|
|
534
537
|
});
|
|
535
538
|
}
|
|
536
|
-
function
|
|
539
|
+
function vr(e) {
|
|
537
540
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
538
541
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
542
|
+
var Hr = function(t) {
|
|
543
|
+
return Tr(t) && !Br(t);
|
|
541
544
|
};
|
|
542
|
-
function
|
|
545
|
+
function Tr(e) {
|
|
543
546
|
return !!e && typeof e == "object";
|
|
544
547
|
}
|
|
545
|
-
function
|
|
548
|
+
function Br(e) {
|
|
546
549
|
var t = Object.prototype.toString.call(e);
|
|
547
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
550
|
+
return t === "[object RegExp]" || t === "[object Date]" || Pr(e);
|
|
548
551
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
return e.$$typeof ===
|
|
552
|
+
var Sr = typeof Symbol == "function" && Symbol.for, Ar = Sr ? Symbol.for("react.element") : 60103;
|
|
553
|
+
function Pr(e) {
|
|
554
|
+
return e.$$typeof === Ar;
|
|
552
555
|
}
|
|
553
|
-
function
|
|
556
|
+
function Nr(e) {
|
|
554
557
|
return Array.isArray(e) ? [] : {};
|
|
555
558
|
}
|
|
556
559
|
function se(e, t) {
|
|
557
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Nr(e), e, t) : e;
|
|
558
561
|
}
|
|
559
|
-
function
|
|
562
|
+
function Or(e, t, r) {
|
|
560
563
|
return e.concat(t).map(function(n) {
|
|
561
564
|
return se(n, r);
|
|
562
565
|
});
|
|
563
566
|
}
|
|
564
|
-
function
|
|
567
|
+
function Ir(e, t) {
|
|
565
568
|
if (!t.customMerge)
|
|
566
569
|
return Q;
|
|
567
570
|
var r = t.customMerge(e);
|
|
568
571
|
return typeof r == "function" ? r : Q;
|
|
569
572
|
}
|
|
570
|
-
function
|
|
573
|
+
function wr(e) {
|
|
571
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
572
575
|
return Object.propertyIsEnumerable.call(e, t);
|
|
573
576
|
}) : [];
|
|
574
577
|
}
|
|
575
|
-
function
|
|
576
|
-
return Object.keys(e).concat(
|
|
578
|
+
function et(e) {
|
|
579
|
+
return Object.keys(e).concat(wr(e));
|
|
577
580
|
}
|
|
578
|
-
function
|
|
581
|
+
function _t(e, t) {
|
|
579
582
|
try {
|
|
580
583
|
return t in e;
|
|
581
584
|
} catch (r) {
|
|
582
585
|
return !1;
|
|
583
586
|
}
|
|
584
587
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
588
|
+
function Lr(e, t) {
|
|
589
|
+
return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
587
590
|
}
|
|
588
|
-
function
|
|
591
|
+
function Cr(e, t, r) {
|
|
589
592
|
var n = {};
|
|
590
|
-
return r.isMergeableObject(e) &&
|
|
593
|
+
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
591
594
|
n[i] = se(e[i], r);
|
|
592
|
-
}),
|
|
593
|
-
|
|
595
|
+
}), et(t).forEach(function(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));
|
|
594
597
|
}), n;
|
|
595
598
|
}
|
|
596
599
|
function Q(e, t, r) {
|
|
597
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = se;
|
|
598
601
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
599
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
602
|
+
return s ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) : se(t, r);
|
|
600
603
|
}
|
|
601
604
|
Q.all = function(t, r) {
|
|
602
605
|
if (!Array.isArray(t))
|
|
@@ -605,13 +608,28 @@ Q.all = function(t, r) {
|
|
|
605
608
|
return Q(n, i, r);
|
|
606
609
|
}, {});
|
|
607
610
|
};
|
|
608
|
-
var
|
|
609
|
-
const
|
|
611
|
+
var Mr = Q, $r = Mr;
|
|
612
|
+
const Rr = /* @__PURE__ */ vr($r);
|
|
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
|
+
***************************************************************************** */
|
|
610
627
|
var Ce = function(e, t) {
|
|
611
628
|
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
612
629
|
r.__proto__ = n;
|
|
613
630
|
} || function(r, n) {
|
|
614
|
-
for (var i in n)
|
|
631
|
+
for (var i in n)
|
|
632
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
615
633
|
}, Ce(e, t);
|
|
616
634
|
};
|
|
617
635
|
function Ee(e, t) {
|
|
@@ -627,72 +645,77 @@ var y = function() {
|
|
|
627
645
|
return y = Object.assign || function(t) {
|
|
628
646
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
629
647
|
r = arguments[n];
|
|
630
|
-
for (var s in r)
|
|
648
|
+
for (var s in r)
|
|
649
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
631
650
|
}
|
|
632
651
|
return t;
|
|
633
652
|
}, y.apply(this, arguments);
|
|
634
653
|
};
|
|
635
|
-
function
|
|
654
|
+
function Dr(e, t) {
|
|
636
655
|
var r = {};
|
|
637
|
-
for (var n in e)
|
|
656
|
+
for (var n in e)
|
|
657
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
638
658
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
639
659
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
640
660
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
641
661
|
return r;
|
|
642
662
|
}
|
|
643
663
|
function Be(e, t, r) {
|
|
644
|
-
if (
|
|
645
|
-
(
|
|
646
|
-
|
|
664
|
+
if (arguments.length === 2)
|
|
665
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
666
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
667
|
+
return e.concat(s || t);
|
|
647
668
|
}
|
|
648
669
|
function Se(e, t) {
|
|
649
|
-
var r = t && t.cache ? t.cache :
|
|
670
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
650
671
|
return i(e, {
|
|
651
672
|
cache: r,
|
|
652
673
|
serializer: n
|
|
653
674
|
});
|
|
654
675
|
}
|
|
655
|
-
function
|
|
676
|
+
function Ur(e) {
|
|
656
677
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
657
678
|
}
|
|
658
|
-
function
|
|
659
|
-
var i =
|
|
679
|
+
function xt(e, t, r, n) {
|
|
680
|
+
var i = Ur(n) ? n : r(n), s = t.get(i);
|
|
660
681
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
661
682
|
}
|
|
662
|
-
function
|
|
683
|
+
function vt(e, t, r) {
|
|
663
684
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
664
685
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
665
686
|
}
|
|
666
|
-
function
|
|
687
|
+
function ke(e, t, r, n, i) {
|
|
667
688
|
return r.bind(t, e, n, i);
|
|
668
689
|
}
|
|
669
|
-
function Ur(e, t) {
|
|
670
|
-
var r = e.length === 1 ? Dr : Et;
|
|
671
|
-
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
672
|
-
}
|
|
673
690
|
function Fr(e, t) {
|
|
674
|
-
|
|
691
|
+
var r = e.length === 1 ? xt : vt;
|
|
692
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
693
|
+
}
|
|
694
|
+
function Gr(e, t) {
|
|
695
|
+
return ke(e, this, vt, t.cache.create(), t.serializer);
|
|
675
696
|
}
|
|
676
|
-
|
|
697
|
+
function jr(e, t) {
|
|
698
|
+
return ke(e, this, xt, t.cache.create(), t.serializer);
|
|
699
|
+
}
|
|
700
|
+
var kr = function() {
|
|
677
701
|
return JSON.stringify(arguments);
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}()
|
|
690
|
-
), kr = {
|
|
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 = {
|
|
691
713
|
create: function() {
|
|
692
|
-
return new
|
|
714
|
+
return new Ve();
|
|
693
715
|
}
|
|
694
716
|
}, Ae = {
|
|
695
|
-
variadic:
|
|
717
|
+
variadic: Gr,
|
|
718
|
+
monadic: jr
|
|
696
719
|
}, g;
|
|
697
720
|
(function(e) {
|
|
698
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";
|
|
@@ -705,43 +728,43 @@ var J;
|
|
|
705
728
|
(function(e) {
|
|
706
729
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
707
730
|
})(J || (J = {}));
|
|
708
|
-
function
|
|
731
|
+
function tt(e) {
|
|
709
732
|
return e.type === x.literal;
|
|
710
733
|
}
|
|
711
|
-
function
|
|
734
|
+
function Xr(e) {
|
|
712
735
|
return e.type === x.argument;
|
|
713
736
|
}
|
|
714
|
-
function
|
|
737
|
+
function Ht(e) {
|
|
715
738
|
return e.type === x.number;
|
|
716
739
|
}
|
|
717
|
-
function
|
|
740
|
+
function Tt(e) {
|
|
718
741
|
return e.type === x.date;
|
|
719
742
|
}
|
|
720
|
-
function
|
|
743
|
+
function Bt(e) {
|
|
721
744
|
return e.type === x.time;
|
|
722
745
|
}
|
|
723
|
-
function
|
|
746
|
+
function St(e) {
|
|
724
747
|
return e.type === x.select;
|
|
725
748
|
}
|
|
726
|
-
function
|
|
749
|
+
function At(e) {
|
|
727
750
|
return e.type === x.plural;
|
|
728
751
|
}
|
|
729
|
-
function
|
|
752
|
+
function zr(e) {
|
|
730
753
|
return e.type === x.pound;
|
|
731
754
|
}
|
|
732
|
-
function
|
|
755
|
+
function Pt(e) {
|
|
733
756
|
return e.type === x.tag;
|
|
734
757
|
}
|
|
735
|
-
function
|
|
758
|
+
function Nt(e) {
|
|
736
759
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
737
760
|
}
|
|
738
761
|
function Me(e) {
|
|
739
762
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
740
763
|
}
|
|
741
|
-
var
|
|
742
|
-
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) {
|
|
743
766
|
var t = {};
|
|
744
|
-
return e.replace(
|
|
767
|
+
return e.replace(Wr, function(r) {
|
|
745
768
|
var n = r.length;
|
|
746
769
|
switch (r[0]) {
|
|
747
770
|
case "G":
|
|
@@ -830,11 +853,11 @@ function Wr(e) {
|
|
|
830
853
|
return "";
|
|
831
854
|
}), t;
|
|
832
855
|
}
|
|
833
|
-
var
|
|
834
|
-
function
|
|
856
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
857
|
+
function Jr(e) {
|
|
835
858
|
if (e.length === 0)
|
|
836
859
|
throw new Error("Number skeleton cannot be empty");
|
|
837
|
-
for (var t = e.split(
|
|
860
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
838
861
|
return c.length > 0;
|
|
839
862
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
840
863
|
var s = i[n], o = s.split("/");
|
|
@@ -849,17 +872,17 @@ function Qr(e) {
|
|
|
849
872
|
}
|
|
850
873
|
return r;
|
|
851
874
|
}
|
|
852
|
-
function
|
|
875
|
+
function qr(e) {
|
|
853
876
|
return e.replace(/^(.*?)-/, "");
|
|
854
877
|
}
|
|
855
|
-
var
|
|
856
|
-
function
|
|
878
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, It = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
879
|
+
function nt(e) {
|
|
857
880
|
var t = {};
|
|
858
|
-
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) {
|
|
859
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)), "";
|
|
860
883
|
}), t;
|
|
861
884
|
}
|
|
862
|
-
function
|
|
885
|
+
function Lt(e) {
|
|
863
886
|
switch (e) {
|
|
864
887
|
case "sign-auto":
|
|
865
888
|
return {
|
|
@@ -899,7 +922,7 @@ function It(e) {
|
|
|
899
922
|
};
|
|
900
923
|
}
|
|
901
924
|
}
|
|
902
|
-
function
|
|
925
|
+
function Kr(e) {
|
|
903
926
|
var t;
|
|
904
927
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
905
928
|
notation: "engineering"
|
|
@@ -907,17 +930,17 @@ function Yr(e) {
|
|
|
907
930
|
notation: "scientific"
|
|
908
931
|
}, e = e.slice(1)), t) {
|
|
909
932
|
var r = e.slice(0, 2);
|
|
910
|
-
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))
|
|
911
934
|
throw new Error("Malformed concise eng/scientific notation");
|
|
912
935
|
t.minimumIntegerDigits = e.length;
|
|
913
936
|
}
|
|
914
937
|
return t;
|
|
915
938
|
}
|
|
916
|
-
function
|
|
917
|
-
var t = {}, r =
|
|
939
|
+
function it(e) {
|
|
940
|
+
var t = {}, r = Lt(e);
|
|
918
941
|
return r || t;
|
|
919
942
|
}
|
|
920
|
-
function
|
|
943
|
+
function en(e) {
|
|
921
944
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
922
945
|
var i = n[r];
|
|
923
946
|
switch (i.stem) {
|
|
@@ -941,7 +964,7 @@ function Kr(e) {
|
|
|
941
964
|
continue;
|
|
942
965
|
case "measure-unit":
|
|
943
966
|
case "unit":
|
|
944
|
-
t.style = "unit", t.unit =
|
|
967
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
945
968
|
continue;
|
|
946
969
|
case "compact-short":
|
|
947
970
|
case "K":
|
|
@@ -953,12 +976,12 @@ function Kr(e) {
|
|
|
953
976
|
continue;
|
|
954
977
|
case "scientific":
|
|
955
978
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
956
|
-
return y(y({}, h),
|
|
979
|
+
return y(y({}, h), it(u));
|
|
957
980
|
}, {}));
|
|
958
981
|
continue;
|
|
959
982
|
case "engineering":
|
|
960
983
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
961
|
-
return y(y({}, h),
|
|
984
|
+
return y(y({}, h), it(u));
|
|
962
985
|
}, {}));
|
|
963
986
|
continue;
|
|
964
987
|
case "notation-simple":
|
|
@@ -1003,7 +1026,7 @@ function Kr(e) {
|
|
|
1003
1026
|
case "integer-width":
|
|
1004
1027
|
if (i.options.length > 1)
|
|
1005
1028
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1006
|
-
i.options[0].replace(
|
|
1029
|
+
i.options[0].replace(Yr, function(h, u, l, f, c, p) {
|
|
1007
1030
|
if (u)
|
|
1008
1031
|
t.minimumIntegerDigits = l.length;
|
|
1009
1032
|
else {
|
|
@@ -1016,27 +1039,27 @@ function Kr(e) {
|
|
|
1016
1039
|
});
|
|
1017
1040
|
continue;
|
|
1018
1041
|
}
|
|
1019
|
-
if (
|
|
1042
|
+
if (wt.test(i.stem)) {
|
|
1020
1043
|
t.minimumIntegerDigits = i.stem.length;
|
|
1021
1044
|
continue;
|
|
1022
1045
|
}
|
|
1023
|
-
if (
|
|
1046
|
+
if (rt.test(i.stem)) {
|
|
1024
1047
|
if (i.options.length > 1)
|
|
1025
1048
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1026
|
-
i.stem.replace(
|
|
1049
|
+
i.stem.replace(rt, function(h, u, l, f, c, p) {
|
|
1027
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), "";
|
|
1028
1051
|
});
|
|
1029
1052
|
var s = i.options[0];
|
|
1030
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1053
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), nt(s)));
|
|
1031
1054
|
continue;
|
|
1032
1055
|
}
|
|
1033
|
-
if (
|
|
1034
|
-
t = y(y({}, t),
|
|
1056
|
+
if (It.test(i.stem)) {
|
|
1057
|
+
t = y(y({}, t), nt(i.stem));
|
|
1035
1058
|
continue;
|
|
1036
1059
|
}
|
|
1037
|
-
var o =
|
|
1060
|
+
var o = Lt(i.stem);
|
|
1038
1061
|
o && (t = y(y({}, t), o));
|
|
1039
|
-
var a =
|
|
1062
|
+
var a = Kr(i.stem);
|
|
1040
1063
|
a && (t = y(y({}, t), a));
|
|
1041
1064
|
}
|
|
1042
1065
|
return t;
|
|
@@ -2456,22 +2479,23 @@ var fe = {
|
|
|
2456
2479
|
"h"
|
|
2457
2480
|
]
|
|
2458
2481
|
};
|
|
2459
|
-
function
|
|
2482
|
+
function tn(e, t) {
|
|
2460
2483
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2461
2484
|
var i = e.charAt(n);
|
|
2462
2485
|
if (i === "j") {
|
|
2463
2486
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2464
2487
|
s++, n++;
|
|
2465
|
-
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);
|
|
2466
2489
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2467
2490
|
r += h;
|
|
2468
2491
|
for (; o-- > 0; )
|
|
2469
2492
|
r = u + r;
|
|
2470
|
-
} else
|
|
2493
|
+
} else
|
|
2494
|
+
i === "J" ? r += "H" : r += i;
|
|
2471
2495
|
}
|
|
2472
2496
|
return r;
|
|
2473
2497
|
}
|
|
2474
|
-
function
|
|
2498
|
+
function rn(e) {
|
|
2475
2499
|
var t = e.hourCycle;
|
|
2476
2500
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2477
2501
|
e.hourCycles && // @ts-ignore
|
|
@@ -2493,20 +2517,20 @@ function tn(e) {
|
|
|
2493
2517
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2494
2518
|
return i[0];
|
|
2495
2519
|
}
|
|
2496
|
-
var Pe,
|
|
2520
|
+
var Pe, nn = new RegExp("^".concat(Ot.source, "*")), sn = new RegExp("".concat(Ot.source, "*$"));
|
|
2497
2521
|
function b(e, t) {
|
|
2498
2522
|
return { start: e, end: t };
|
|
2499
2523
|
}
|
|
2500
|
-
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) {
|
|
2501
2525
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2502
2526
|
}, $e = !0;
|
|
2503
2527
|
try {
|
|
2504
|
-
var
|
|
2505
|
-
$e = ((Pe =
|
|
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";
|
|
2506
2530
|
} catch (e) {
|
|
2507
2531
|
$e = !1;
|
|
2508
2532
|
}
|
|
2509
|
-
var
|
|
2533
|
+
var st = on ? (
|
|
2510
2534
|
// Native
|
|
2511
2535
|
function(t, r, n) {
|
|
2512
2536
|
return t.startsWith(r, n);
|
|
@@ -2516,7 +2540,7 @@ var nt = sn ? (
|
|
|
2516
2540
|
function(t, r, n) {
|
|
2517
2541
|
return t.slice(n, n + r.length) === r;
|
|
2518
2542
|
}
|
|
2519
|
-
), Re =
|
|
2543
|
+
), Re = an ? String.fromCodePoint : (
|
|
2520
2544
|
// IE11
|
|
2521
2545
|
function() {
|
|
2522
2546
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2528,9 +2552,9 @@ var nt = sn ? (
|
|
|
2528
2552
|
}
|
|
2529
2553
|
return n;
|
|
2530
2554
|
}
|
|
2531
|
-
),
|
|
2555
|
+
), ot = (
|
|
2532
2556
|
// native
|
|
2533
|
-
|
|
2557
|
+
un ? Object.fromEntries : (
|
|
2534
2558
|
// Ponyfill
|
|
2535
2559
|
function(t) {
|
|
2536
2560
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2540,7 +2564,7 @@ var nt = sn ? (
|
|
|
2540
2564
|
return r;
|
|
2541
2565
|
}
|
|
2542
2566
|
)
|
|
2543
|
-
),
|
|
2567
|
+
), Ct = hn ? (
|
|
2544
2568
|
// Native
|
|
2545
2569
|
function(t, r) {
|
|
2546
2570
|
return t.codePointAt(r);
|
|
@@ -2554,7 +2578,7 @@ var nt = sn ? (
|
|
|
2554
2578
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2555
2579
|
}
|
|
2556
2580
|
}
|
|
2557
|
-
),
|
|
2581
|
+
), pn = ln ? (
|
|
2558
2582
|
// Native
|
|
2559
2583
|
function(t) {
|
|
2560
2584
|
return t.trimStart();
|
|
@@ -2562,9 +2586,9 @@ var nt = sn ? (
|
|
|
2562
2586
|
) : (
|
|
2563
2587
|
// Ponyfill
|
|
2564
2588
|
function(t) {
|
|
2565
|
-
return t.replace(
|
|
2589
|
+
return t.replace(nn, "");
|
|
2566
2590
|
}
|
|
2567
|
-
),
|
|
2591
|
+
), gn = fn ? (
|
|
2568
2592
|
// Native
|
|
2569
2593
|
function(t) {
|
|
2570
2594
|
return t.trimEnd();
|
|
@@ -2572,32 +2596,32 @@ var nt = sn ? (
|
|
|
2572
2596
|
) : (
|
|
2573
2597
|
// Ponyfill
|
|
2574
2598
|
function(t) {
|
|
2575
|
-
return t.replace(
|
|
2599
|
+
return t.replace(sn, "");
|
|
2576
2600
|
}
|
|
2577
2601
|
);
|
|
2578
|
-
function
|
|
2602
|
+
function Mt(e, t) {
|
|
2579
2603
|
return new RegExp(e, t);
|
|
2580
2604
|
}
|
|
2581
2605
|
var De;
|
|
2582
2606
|
if ($e) {
|
|
2583
|
-
var
|
|
2607
|
+
var at = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2584
2608
|
De = function(t, r) {
|
|
2585
2609
|
var n;
|
|
2586
|
-
|
|
2587
|
-
var i =
|
|
2610
|
+
at.lastIndex = r;
|
|
2611
|
+
var i = at.exec(t);
|
|
2588
2612
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2589
2613
|
};
|
|
2590
2614
|
} else
|
|
2591
2615
|
De = function(t, r) {
|
|
2592
2616
|
for (var n = []; ; ) {
|
|
2593
|
-
var i =
|
|
2594
|
-
if (i === void 0 ||
|
|
2617
|
+
var i = Ct(t, r);
|
|
2618
|
+
if (i === void 0 || $t(i) || _n(i))
|
|
2595
2619
|
break;
|
|
2596
2620
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2597
2621
|
}
|
|
2598
2622
|
return Re.apply(void 0, n);
|
|
2599
2623
|
};
|
|
2600
|
-
var
|
|
2624
|
+
var bn = (
|
|
2601
2625
|
/** @class */
|
|
2602
2626
|
function() {
|
|
2603
2627
|
function e(t, r) {
|
|
@@ -2679,7 +2703,7 @@ var gn = (
|
|
|
2679
2703
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2680
2704
|
}, e.prototype.parseTagName = function() {
|
|
2681
2705
|
var t = this.offset();
|
|
2682
|
-
for (this.bump(); !this.isEOF() &&
|
|
2706
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2683
2707
|
this.bump();
|
|
2684
2708
|
return this.message.slice(t, this.offset());
|
|
2685
2709
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2708,7 +2732,7 @@ var gn = (
|
|
|
2708
2732
|
};
|
|
2709
2733
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2710
2734
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2711
|
-
!
|
|
2735
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2712
2736
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2713
2737
|
if (this.isEOF() || this.char() !== 39)
|
|
2714
2738
|
return null;
|
|
@@ -2795,7 +2819,7 @@ var gn = (
|
|
|
2795
2819
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2796
2820
|
if (f.err)
|
|
2797
2821
|
return f;
|
|
2798
|
-
var c =
|
|
2822
|
+
var c = gn(f.val);
|
|
2799
2823
|
if (c.length === 0)
|
|
2800
2824
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2801
2825
|
var p = b(l, this.clonePosition());
|
|
@@ -2805,8 +2829,8 @@ var gn = (
|
|
|
2805
2829
|
if (E.err)
|
|
2806
2830
|
return E;
|
|
2807
2831
|
var T = b(i, this.clonePosition());
|
|
2808
|
-
if (u &&
|
|
2809
|
-
var P =
|
|
2832
|
+
if (u && st(u == null ? void 0 : u.style, "::", 0)) {
|
|
2833
|
+
var P = pn(u.style.slice(2));
|
|
2810
2834
|
if (a === "number") {
|
|
2811
2835
|
var f = this.parseNumberSkeletonFromString(P, u.styleLocation);
|
|
2812
2836
|
return f.err ? f : {
|
|
@@ -2817,12 +2841,12 @@ var gn = (
|
|
|
2817
2841
|
if (P.length === 0)
|
|
2818
2842
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2819
2843
|
var B = P;
|
|
2820
|
-
this.locale && (B =
|
|
2844
|
+
this.locale && (B = tn(P, this.locale));
|
|
2821
2845
|
var c = {
|
|
2822
2846
|
type: J.dateTime,
|
|
2823
2847
|
pattern: B,
|
|
2824
2848
|
location: u.styleLocation,
|
|
2825
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2849
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(B) : {}
|
|
2826
2850
|
}, L = a === "date" ? x.date : x.time;
|
|
2827
2851
|
return {
|
|
2828
2852
|
val: { type: L, value: n, location: T, style: c },
|
|
@@ -2868,7 +2892,7 @@ var gn = (
|
|
|
2868
2892
|
val: {
|
|
2869
2893
|
type: x.select,
|
|
2870
2894
|
value: n,
|
|
2871
|
-
options:
|
|
2895
|
+
options: ot(S.val),
|
|
2872
2896
|
location: le
|
|
2873
2897
|
},
|
|
2874
2898
|
err: null
|
|
@@ -2876,7 +2900,7 @@ var gn = (
|
|
|
2876
2900
|
val: {
|
|
2877
2901
|
type: x.plural,
|
|
2878
2902
|
value: n,
|
|
2879
|
-
options:
|
|
2903
|
+
options: ot(S.val),
|
|
2880
2904
|
offset: d,
|
|
2881
2905
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2882
2906
|
location: le
|
|
@@ -2927,7 +2951,7 @@ var gn = (
|
|
|
2927
2951
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2928
2952
|
var n = [];
|
|
2929
2953
|
try {
|
|
2930
|
-
n =
|
|
2954
|
+
n = Jr(t);
|
|
2931
2955
|
} catch (i) {
|
|
2932
2956
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2933
2957
|
}
|
|
@@ -2936,7 +2960,7 @@ var gn = (
|
|
|
2936
2960
|
type: J.number,
|
|
2937
2961
|
tokens: n,
|
|
2938
2962
|
location: r,
|
|
2939
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2963
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2940
2964
|
},
|
|
2941
2965
|
err: null
|
|
2942
2966
|
};
|
|
@@ -2984,7 +3008,7 @@ var gn = (
|
|
|
2984
3008
|
break;
|
|
2985
3009
|
}
|
|
2986
3010
|
var h = b(i, this.clonePosition());
|
|
2987
|
-
return s ? (o *= n,
|
|
3011
|
+
return s ? (o *= n, mn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2988
3012
|
}, e.prototype.offset = function() {
|
|
2989
3013
|
return this.position.offset;
|
|
2990
3014
|
}, e.prototype.isEOF = function() {
|
|
@@ -2999,7 +3023,7 @@ var gn = (
|
|
|
2999
3023
|
var t = this.position.offset;
|
|
3000
3024
|
if (t >= this.message.length)
|
|
3001
3025
|
throw Error("out of bound");
|
|
3002
|
-
var r =
|
|
3026
|
+
var r = Ct(this.message, t);
|
|
3003
3027
|
if (r === void 0)
|
|
3004
3028
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3005
3029
|
return r;
|
|
@@ -3018,7 +3042,7 @@ var gn = (
|
|
|
3018
3042
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3019
3043
|
}
|
|
3020
3044
|
}, e.prototype.bumpIf = function(t) {
|
|
3021
|
-
if (
|
|
3045
|
+
if (st(this.message, t, this.offset())) {
|
|
3022
3046
|
for (var r = 0; r < t.length; r++)
|
|
3023
3047
|
this.bump();
|
|
3024
3048
|
return !0;
|
|
@@ -3040,7 +3064,7 @@ var gn = (
|
|
|
3040
3064
|
break;
|
|
3041
3065
|
}
|
|
3042
3066
|
}, e.prototype.bumpSpace = function() {
|
|
3043
|
-
for (; !this.isEOF() &&
|
|
3067
|
+
for (; !this.isEOF() && $t(this.char()); )
|
|
3044
3068
|
this.bump();
|
|
3045
3069
|
}, e.prototype.peek = function() {
|
|
3046
3070
|
if (this.isEOF())
|
|
@@ -3053,29 +3077,30 @@ var gn = (
|
|
|
3053
3077
|
function Ue(e) {
|
|
3054
3078
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3055
3079
|
}
|
|
3056
|
-
function
|
|
3080
|
+
function yn(e) {
|
|
3057
3081
|
return Ue(e) || e === 47;
|
|
3058
3082
|
}
|
|
3059
|
-
function
|
|
3083
|
+
function En(e) {
|
|
3060
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;
|
|
3061
3085
|
}
|
|
3062
|
-
function
|
|
3086
|
+
function $t(e) {
|
|
3063
3087
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3064
3088
|
}
|
|
3065
|
-
function
|
|
3089
|
+
function _n(e) {
|
|
3066
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;
|
|
3067
3091
|
}
|
|
3068
3092
|
function Fe(e) {
|
|
3069
3093
|
e.forEach(function(t) {
|
|
3070
|
-
if (delete t.location,
|
|
3094
|
+
if (delete t.location, St(t) || At(t))
|
|
3071
3095
|
for (var r in t.options)
|
|
3072
3096
|
delete t.options[r].location, Fe(t.options[r].value);
|
|
3073
|
-
else
|
|
3097
|
+
else
|
|
3098
|
+
Ht(t) && Nt(t.style) || (Tt(t) || Bt(t)) && Me(t.style) ? delete t.style.location : Pt(t) && Fe(t.children);
|
|
3074
3099
|
});
|
|
3075
3100
|
}
|
|
3076
|
-
function
|
|
3101
|
+
function xn(e, t) {
|
|
3077
3102
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3078
|
-
var r = new
|
|
3103
|
+
var r = new bn(e, t).parse();
|
|
3079
3104
|
if (r.err) {
|
|
3080
3105
|
var n = SyntaxError(g[r.err.kind]);
|
|
3081
3106
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3098,7 +3123,7 @@ var _e = (
|
|
|
3098
3123
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3099
3124
|
}, t;
|
|
3100
3125
|
}(Error)
|
|
3101
|
-
),
|
|
3126
|
+
), ut = (
|
|
3102
3127
|
/** @class */
|
|
3103
3128
|
function(e) {
|
|
3104
3129
|
Ee(t, e);
|
|
@@ -3107,7 +3132,7 @@ var _e = (
|
|
|
3107
3132
|
}
|
|
3108
3133
|
return t;
|
|
3109
3134
|
}(_e)
|
|
3110
|
-
),
|
|
3135
|
+
), vn = (
|
|
3111
3136
|
/** @class */
|
|
3112
3137
|
function(e) {
|
|
3113
3138
|
Ee(t, e);
|
|
@@ -3116,7 +3141,7 @@ var _e = (
|
|
|
3116
3141
|
}
|
|
3117
3142
|
return t;
|
|
3118
3143
|
}(_e)
|
|
3119
|
-
),
|
|
3144
|
+
), Hn = (
|
|
3120
3145
|
/** @class */
|
|
3121
3146
|
function(e) {
|
|
3122
3147
|
Ee(t, e);
|
|
@@ -3129,17 +3154,17 @@ var _e = (
|
|
|
3129
3154
|
(function(e) {
|
|
3130
3155
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3131
3156
|
})(N || (N = {}));
|
|
3132
|
-
function
|
|
3157
|
+
function Tn(e) {
|
|
3133
3158
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3134
3159
|
var n = t[t.length - 1];
|
|
3135
3160
|
return !n || n.type !== N.literal || r.type !== N.literal ? t.push(r) : n.value += r.value, t;
|
|
3136
3161
|
}, []);
|
|
3137
3162
|
}
|
|
3138
|
-
function
|
|
3163
|
+
function Bn(e) {
|
|
3139
3164
|
return typeof e == "function";
|
|
3140
3165
|
}
|
|
3141
3166
|
function me(e, t, r, n, i, s, o) {
|
|
3142
|
-
if (e.length === 1 &&
|
|
3167
|
+
if (e.length === 1 && tt(e[0]))
|
|
3143
3168
|
return [
|
|
3144
3169
|
{
|
|
3145
3170
|
type: N.literal,
|
|
@@ -3148,14 +3173,14 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3148
3173
|
];
|
|
3149
3174
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3150
3175
|
var l = u[h];
|
|
3151
|
-
if (
|
|
3176
|
+
if (tt(l)) {
|
|
3152
3177
|
a.push({
|
|
3153
3178
|
type: N.literal,
|
|
3154
3179
|
value: l.value
|
|
3155
3180
|
});
|
|
3156
3181
|
continue;
|
|
3157
3182
|
}
|
|
3158
|
-
if (
|
|
3183
|
+
if (zr(l)) {
|
|
3159
3184
|
typeof s == "number" && a.push({
|
|
3160
3185
|
type: N.literal,
|
|
3161
3186
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3164,16 +3189,16 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3164
3189
|
}
|
|
3165
3190
|
var f = l.value;
|
|
3166
3191
|
if (!(i && f in i))
|
|
3167
|
-
throw new
|
|
3192
|
+
throw new Hn(f, o);
|
|
3168
3193
|
var c = i[f];
|
|
3169
|
-
if (
|
|
3194
|
+
if (Xr(l)) {
|
|
3170
3195
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3171
3196
|
type: typeof c == "string" ? N.literal : N.object,
|
|
3172
3197
|
value: c
|
|
3173
3198
|
});
|
|
3174
3199
|
continue;
|
|
3175
3200
|
}
|
|
3176
|
-
if (
|
|
3201
|
+
if (Tt(l)) {
|
|
3177
3202
|
var p = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3178
3203
|
a.push({
|
|
3179
3204
|
type: N.literal,
|
|
@@ -3181,7 +3206,7 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3181
3206
|
});
|
|
3182
3207
|
continue;
|
|
3183
3208
|
}
|
|
3184
|
-
if (
|
|
3209
|
+
if (Bt(l)) {
|
|
3185
3210
|
var p = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3186
3211
|
a.push({
|
|
3187
3212
|
type: N.literal,
|
|
@@ -3189,18 +3214,18 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3189
3214
|
});
|
|
3190
3215
|
continue;
|
|
3191
3216
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3217
|
+
if (Ht(l)) {
|
|
3218
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
|
|
3194
3219
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3195
3220
|
type: N.literal,
|
|
3196
3221
|
value: r.getNumberFormat(t, p).format(c)
|
|
3197
3222
|
});
|
|
3198
3223
|
continue;
|
|
3199
3224
|
}
|
|
3200
|
-
if (
|
|
3225
|
+
if (Pt(l)) {
|
|
3201
3226
|
var E = l.children, T = l.value, P = i[T];
|
|
3202
|
-
if (!
|
|
3203
|
-
throw new
|
|
3227
|
+
if (!Bn(P))
|
|
3228
|
+
throw new vn(T, "function", o);
|
|
3204
3229
|
var B = me(E, t, r, n, i, s), L = P(B.map(function(d) {
|
|
3205
3230
|
return d.value;
|
|
3206
3231
|
}));
|
|
@@ -3211,14 +3236,14 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3211
3236
|
};
|
|
3212
3237
|
}));
|
|
3213
3238
|
}
|
|
3214
|
-
if (
|
|
3239
|
+
if (St(l)) {
|
|
3215
3240
|
var v = l.options[c] || l.options.other;
|
|
3216
3241
|
if (!v)
|
|
3217
|
-
throw new
|
|
3242
|
+
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3218
3243
|
a.push.apply(a, me(v.value, t, r, n, i));
|
|
3219
3244
|
continue;
|
|
3220
3245
|
}
|
|
3221
|
-
if (
|
|
3246
|
+
if (At(l)) {
|
|
3222
3247
|
var v = l.options["=".concat(c)];
|
|
3223
3248
|
if (!v) {
|
|
3224
3249
|
if (!Intl.PluralRules)
|
|
@@ -3229,21 +3254,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3229
3254
|
v = l.options[H] || l.options.other;
|
|
3230
3255
|
}
|
|
3231
3256
|
if (!v)
|
|
3232
|
-
throw new
|
|
3257
|
+
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3233
3258
|
a.push.apply(a, me(v.value, t, r, n, i, c - (l.offset || 0)));
|
|
3234
3259
|
continue;
|
|
3235
3260
|
}
|
|
3236
3261
|
}
|
|
3237
|
-
return
|
|
3262
|
+
return Tn(a);
|
|
3238
3263
|
}
|
|
3239
|
-
function
|
|
3264
|
+
function Sn(e, t) {
|
|
3240
3265
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3241
3266
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3242
3267
|
}, {})) : e;
|
|
3243
3268
|
}
|
|
3244
|
-
function
|
|
3269
|
+
function An(e, t) {
|
|
3245
3270
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3246
|
-
return r[n] =
|
|
3271
|
+
return r[n] = Sn(e[n], t[n]), r;
|
|
3247
3272
|
}, y({}, e)) : e;
|
|
3248
3273
|
}
|
|
3249
3274
|
function Ne(e) {
|
|
@@ -3260,7 +3285,7 @@ function Ne(e) {
|
|
|
3260
3285
|
}
|
|
3261
3286
|
};
|
|
3262
3287
|
}
|
|
3263
|
-
function
|
|
3288
|
+
function Pn(e) {
|
|
3264
3289
|
return e === void 0 && (e = {
|
|
3265
3290
|
number: {},
|
|
3266
3291
|
dateTime: {},
|
|
@@ -3292,7 +3317,7 @@ function An(e) {
|
|
|
3292
3317
|
})
|
|
3293
3318
|
};
|
|
3294
3319
|
}
|
|
3295
|
-
var
|
|
3320
|
+
var Nn = (
|
|
3296
3321
|
/** @class */
|
|
3297
3322
|
function() {
|
|
3298
3323
|
function e(t, r, n, i) {
|
|
@@ -3324,13 +3349,13 @@ var Pn = (
|
|
|
3324
3349
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3325
3350
|
var o = i || {};
|
|
3326
3351
|
o.formatters;
|
|
3327
|
-
var a =
|
|
3352
|
+
var a = Dr(o, ["formatters"]);
|
|
3328
3353
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3329
3354
|
} else
|
|
3330
3355
|
this.ast = t;
|
|
3331
3356
|
if (!Array.isArray(this.ast))
|
|
3332
3357
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3333
|
-
this.formats =
|
|
3358
|
+
this.formats = An(e.formats, n), this.formatters = i && i.formatters || Pn(this.formatterCache);
|
|
3334
3359
|
}
|
|
3335
3360
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3336
3361
|
get: function() {
|
|
@@ -3343,7 +3368,7 @@ var Pn = (
|
|
|
3343
3368
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3344
3369
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3345
3370
|
}
|
|
3346
|
-
}, e.__parse =
|
|
3371
|
+
}, e.__parse = xn, e.formats = {
|
|
3347
3372
|
number: {
|
|
3348
3373
|
integer: {
|
|
3349
3374
|
maximumFractionDigits: 0
|
|
@@ -3404,7 +3429,7 @@ var Pn = (
|
|
|
3404
3429
|
}, e;
|
|
3405
3430
|
}()
|
|
3406
3431
|
);
|
|
3407
|
-
function
|
|
3432
|
+
function On(e, t) {
|
|
3408
3433
|
if (t == null)
|
|
3409
3434
|
return;
|
|
3410
3435
|
if (t in e)
|
|
@@ -3425,60 +3450,60 @@ function Nn(e, t) {
|
|
|
3425
3450
|
n = void 0;
|
|
3426
3451
|
return n;
|
|
3427
3452
|
}
|
|
3428
|
-
const F = {},
|
|
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) => {
|
|
3429
3454
|
if (t == null)
|
|
3430
3455
|
return;
|
|
3431
3456
|
if (t in F && e in F[t])
|
|
3432
3457
|
return F[t][e];
|
|
3433
3458
|
const r = xe(t);
|
|
3434
3459
|
for (let n = 0; n < r.length; n++) {
|
|
3435
|
-
const i = r[n], s =
|
|
3460
|
+
const i = r[n], s = Ln(i, e);
|
|
3436
3461
|
if (s)
|
|
3437
|
-
return
|
|
3462
|
+
return In(e, t, s);
|
|
3438
3463
|
}
|
|
3439
3464
|
};
|
|
3440
|
-
let
|
|
3465
|
+
let Xe;
|
|
3441
3466
|
const ue = ye({});
|
|
3442
|
-
function
|
|
3443
|
-
return
|
|
3467
|
+
function wn(e) {
|
|
3468
|
+
return Xe[e] || null;
|
|
3444
3469
|
}
|
|
3445
|
-
function
|
|
3446
|
-
return e in
|
|
3470
|
+
function Dt(e) {
|
|
3471
|
+
return e in Xe;
|
|
3447
3472
|
}
|
|
3448
|
-
function
|
|
3449
|
-
if (
|
|
3473
|
+
function Ln(e, t) {
|
|
3474
|
+
if (!Dt(e))
|
|
3450
3475
|
return null;
|
|
3451
|
-
const r =
|
|
3452
|
-
return
|
|
3476
|
+
const r = wn(e);
|
|
3477
|
+
return On(r, t);
|
|
3453
3478
|
}
|
|
3454
|
-
function
|
|
3479
|
+
function Cn(e) {
|
|
3455
3480
|
if (e == null)
|
|
3456
3481
|
return;
|
|
3457
3482
|
const t = xe(e);
|
|
3458
3483
|
for (let r = 0; r < t.length; r++) {
|
|
3459
3484
|
const n = t[r];
|
|
3460
|
-
if (
|
|
3485
|
+
if (Dt(n))
|
|
3461
3486
|
return n;
|
|
3462
3487
|
}
|
|
3463
3488
|
}
|
|
3464
|
-
function
|
|
3465
|
-
delete F[e], ue.update((r) => (r[e] =
|
|
3489
|
+
function Ut(e, ...t) {
|
|
3490
|
+
delete F[e], ue.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3466
3491
|
}
|
|
3467
3492
|
K(
|
|
3468
3493
|
[ue],
|
|
3469
3494
|
([e]) => Object.keys(e)
|
|
3470
3495
|
);
|
|
3471
|
-
ue.subscribe((e) =>
|
|
3496
|
+
ue.subscribe((e) => Xe = e);
|
|
3472
3497
|
const de = {};
|
|
3473
|
-
function
|
|
3498
|
+
function Mn(e, t) {
|
|
3474
3499
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3475
3500
|
}
|
|
3476
|
-
function
|
|
3501
|
+
function Ft(e) {
|
|
3477
3502
|
return de[e];
|
|
3478
3503
|
}
|
|
3479
|
-
function
|
|
3504
|
+
function $n(e) {
|
|
3480
3505
|
return xe(e).map((t) => {
|
|
3481
|
-
const r =
|
|
3506
|
+
const r = Ft(t);
|
|
3482
3507
|
return [t, r ? [...r] : []];
|
|
3483
3508
|
}).filter(([, t]) => t.length > 0);
|
|
3484
3509
|
}
|
|
@@ -3486,31 +3511,31 @@ function Ge(e) {
|
|
|
3486
3511
|
return e == null ? !1 : xe(e).some(
|
|
3487
3512
|
(t) => {
|
|
3488
3513
|
var r;
|
|
3489
|
-
return (r =
|
|
3514
|
+
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3490
3515
|
}
|
|
3491
3516
|
);
|
|
3492
3517
|
}
|
|
3493
|
-
function
|
|
3518
|
+
function Rn(e, t) {
|
|
3494
3519
|
return Promise.all(
|
|
3495
|
-
t.map((n) => (
|
|
3496
|
-
).then((n) =>
|
|
3520
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3521
|
+
).then((n) => Ut(e, ...n));
|
|
3497
3522
|
}
|
|
3498
3523
|
const te = {};
|
|
3499
|
-
function
|
|
3524
|
+
function Gt(e) {
|
|
3500
3525
|
if (!Ge(e))
|
|
3501
3526
|
return e in te ? te[e] : Promise.resolve();
|
|
3502
|
-
const t =
|
|
3527
|
+
const t = $n(e);
|
|
3503
3528
|
return te[e] = Promise.all(
|
|
3504
3529
|
t.map(
|
|
3505
|
-
([r, n]) =>
|
|
3530
|
+
([r, n]) => Rn(r, n)
|
|
3506
3531
|
)
|
|
3507
3532
|
).then(() => {
|
|
3508
3533
|
if (Ge(e))
|
|
3509
|
-
return
|
|
3534
|
+
return Gt(e);
|
|
3510
3535
|
delete te[e];
|
|
3511
3536
|
}), te[e];
|
|
3512
3537
|
}
|
|
3513
|
-
const
|
|
3538
|
+
const Dn = {
|
|
3514
3539
|
number: {
|
|
3515
3540
|
scientific: { notation: "scientific" },
|
|
3516
3541
|
engineering: { notation: "engineering" },
|
|
@@ -3539,34 +3564,34 @@ const Rn = {
|
|
|
3539
3564
|
timeZoneName: "short"
|
|
3540
3565
|
}
|
|
3541
3566
|
}
|
|
3542
|
-
},
|
|
3567
|
+
}, Un = {
|
|
3543
3568
|
fallbackLocale: null,
|
|
3544
3569
|
loadingDelay: 200,
|
|
3545
|
-
formats:
|
|
3570
|
+
formats: Dn,
|
|
3546
3571
|
warnOnMissingMessages: !0,
|
|
3547
3572
|
handleMissingMessage: void 0,
|
|
3548
3573
|
ignoreTag: !0
|
|
3549
|
-
},
|
|
3574
|
+
}, Fn = Un;
|
|
3550
3575
|
function Y() {
|
|
3551
|
-
return
|
|
3576
|
+
return Fn;
|
|
3552
3577
|
}
|
|
3553
3578
|
const Oe = ye(!1);
|
|
3554
|
-
var
|
|
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) => {
|
|
3555
3580
|
for (var r in t || (t = {}))
|
|
3556
|
-
|
|
3557
|
-
if (
|
|
3558
|
-
for (var r of
|
|
3559
|
-
|
|
3581
|
+
Vn.call(t, r) && lt(e, r, t[r]);
|
|
3582
|
+
if (ht)
|
|
3583
|
+
for (var r of ht(t))
|
|
3584
|
+
Xn.call(t, r) && lt(e, r, t[r]);
|
|
3560
3585
|
return e;
|
|
3561
|
-
},
|
|
3586
|
+
}, Wn = (e, t) => jn(e, kn(t));
|
|
3562
3587
|
let je;
|
|
3563
3588
|
const pe = ye(null);
|
|
3564
|
-
function
|
|
3589
|
+
function ft(e) {
|
|
3565
3590
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3566
3591
|
}
|
|
3567
3592
|
function xe(e, t = Y().fallbackLocale) {
|
|
3568
|
-
const r =
|
|
3569
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3593
|
+
const r = ft(e);
|
|
3594
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3570
3595
|
}
|
|
3571
3596
|
function V() {
|
|
3572
3597
|
return je != null ? je : void 0;
|
|
@@ -3574,22 +3599,22 @@ function V() {
|
|
|
3574
3599
|
pe.subscribe((e) => {
|
|
3575
3600
|
je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3576
3601
|
});
|
|
3577
|
-
const
|
|
3578
|
-
if (e &&
|
|
3602
|
+
const Zn = (e) => {
|
|
3603
|
+
if (e && Cn(e) && Ge(e)) {
|
|
3579
3604
|
const { loadingDelay: t } = Y();
|
|
3580
3605
|
let r;
|
|
3581
3606
|
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3582
3607
|
() => Oe.set(!0),
|
|
3583
3608
|
t
|
|
3584
|
-
) : Oe.set(!0),
|
|
3609
|
+
) : Oe.set(!0), Gt(e).then(() => {
|
|
3585
3610
|
pe.set(e);
|
|
3586
3611
|
}).finally(() => {
|
|
3587
3612
|
clearTimeout(r), Oe.set(!1);
|
|
3588
3613
|
});
|
|
3589
3614
|
}
|
|
3590
3615
|
return pe.set(e);
|
|
3591
|
-
}, he = zn(
|
|
3592
|
-
set:
|
|
3616
|
+
}, he = Wn(zn({}, pe), {
|
|
3617
|
+
set: Zn
|
|
3593
3618
|
}), ve = (e) => {
|
|
3594
3619
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3595
3620
|
return (n) => {
|
|
@@ -3597,20 +3622,20 @@ const Wn = (e) => {
|
|
|
3597
3622
|
return i in t ? t[i] : t[i] = e(n);
|
|
3598
3623
|
};
|
|
3599
3624
|
};
|
|
3600
|
-
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) => {
|
|
3601
3626
|
for (var r in t || (t = {}))
|
|
3602
|
-
|
|
3627
|
+
jt.call(t, r) && ct(e, r, t[r]);
|
|
3603
3628
|
if (ge)
|
|
3604
3629
|
for (var r of ge(t))
|
|
3605
|
-
|
|
3630
|
+
kt.call(t, r) && ct(e, r, t[r]);
|
|
3606
3631
|
return e;
|
|
3607
3632
|
}, ee = (e, t) => {
|
|
3608
3633
|
var r = {};
|
|
3609
3634
|
for (var n in e)
|
|
3610
|
-
|
|
3635
|
+
jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3611
3636
|
if (e != null && ge)
|
|
3612
3637
|
for (var n of ge(e))
|
|
3613
|
-
t.indexOf(n) < 0 &&
|
|
3638
|
+
t.indexOf(n) < 0 && kt.call(e, n) && (r[n] = e[n]);
|
|
3614
3639
|
return r;
|
|
3615
3640
|
};
|
|
3616
3641
|
const oe = (e, t) => {
|
|
@@ -3618,21 +3643,21 @@ const oe = (e, t) => {
|
|
|
3618
3643
|
if (e in r && t in r[e])
|
|
3619
3644
|
return r[e][t];
|
|
3620
3645
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3621
|
-
},
|
|
3646
|
+
}, Jn = ve(
|
|
3622
3647
|
(e) => {
|
|
3623
3648
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3624
3649
|
if (r == null)
|
|
3625
3650
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3626
3651
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3627
3652
|
}
|
|
3628
|
-
),
|
|
3653
|
+
), qn = ve(
|
|
3629
3654
|
(e) => {
|
|
3630
3655
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3631
3656
|
if (r == null)
|
|
3632
3657
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3633
3658
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3634
3659
|
}
|
|
3635
|
-
),
|
|
3660
|
+
), Yn = ve(
|
|
3636
3661
|
(e) => {
|
|
3637
3662
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3638
3663
|
if (r == null)
|
|
@@ -3641,33 +3666,33 @@ const oe = (e, t) => {
|
|
|
3641
3666
|
);
|
|
3642
3667
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3643
3668
|
}
|
|
3644
|
-
),
|
|
3669
|
+
), Kn = (e = {}) => {
|
|
3645
3670
|
var t = e, {
|
|
3646
3671
|
locale: r = V()
|
|
3647
3672
|
} = t, n = ee(t, [
|
|
3648
3673
|
"locale"
|
|
3649
3674
|
]);
|
|
3650
|
-
return
|
|
3651
|
-
},
|
|
3675
|
+
return Jn(ze({ locale: r }, n));
|
|
3676
|
+
}, ei = (e = {}) => {
|
|
3652
3677
|
var t = e, {
|
|
3653
3678
|
locale: r = V()
|
|
3654
3679
|
} = t, n = ee(t, [
|
|
3655
3680
|
"locale"
|
|
3656
3681
|
]);
|
|
3657
|
-
return
|
|
3658
|
-
},
|
|
3682
|
+
return qn(ze({ locale: r }, n));
|
|
3683
|
+
}, ti = (e = {}) => {
|
|
3659
3684
|
var t = e, {
|
|
3660
3685
|
locale: r = V()
|
|
3661
3686
|
} = t, n = ee(t, [
|
|
3662
3687
|
"locale"
|
|
3663
3688
|
]);
|
|
3664
|
-
return
|
|
3665
|
-
},
|
|
3689
|
+
return Yn(ze({ locale: r }, n));
|
|
3690
|
+
}, ri = ve(
|
|
3666
3691
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3667
|
-
(e, t = V()) => new
|
|
3692
|
+
(e, t = V()) => new Nn(e, t, Y().formats, {
|
|
3668
3693
|
ignoreTag: Y().ignoreTag
|
|
3669
3694
|
})
|
|
3670
|
-
),
|
|
3695
|
+
), ni = (e, t = {}) => {
|
|
3671
3696
|
var r, n, i, s;
|
|
3672
3697
|
let o = t;
|
|
3673
3698
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -3680,7 +3705,7 @@ const oe = (e, t) => {
|
|
|
3680
3705
|
throw new Error(
|
|
3681
3706
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3682
3707
|
);
|
|
3683
|
-
let l =
|
|
3708
|
+
let l = Rt(e, h);
|
|
3684
3709
|
if (!l)
|
|
3685
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;
|
|
3686
3711
|
else if (typeof l != "string")
|
|
@@ -3691,7 +3716,7 @@ const oe = (e, t) => {
|
|
|
3691
3716
|
return l;
|
|
3692
3717
|
let f = l;
|
|
3693
3718
|
try {
|
|
3694
|
-
f =
|
|
3719
|
+
f = ri(l, h).format(a);
|
|
3695
3720
|
} catch (c) {
|
|
3696
3721
|
c instanceof Error && console.warn(
|
|
3697
3722
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3699,15 +3724,15 @@ const oe = (e, t) => {
|
|
|
3699
3724
|
);
|
|
3700
3725
|
}
|
|
3701
3726
|
return f;
|
|
3702
|
-
},
|
|
3703
|
-
K([he], () => ni);
|
|
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);
|
|
3704
3728
|
K([he], () => ii);
|
|
3705
3729
|
K([he], () => si);
|
|
3706
|
-
K([he
|
|
3707
|
-
|
|
3708
|
-
|
|
3730
|
+
K([he], () => oi);
|
|
3731
|
+
K([he, ue], () => ai);
|
|
3732
|
+
function mt(e, t) {
|
|
3733
|
+
Ut(e, t);
|
|
3709
3734
|
}
|
|
3710
|
-
const
|
|
3735
|
+
const dt = {
|
|
3711
3736
|
en: {
|
|
3712
3737
|
finished: "Finished",
|
|
3713
3738
|
starting: "Starting in ",
|
|
@@ -3797,10 +3822,10 @@ const ct = {
|
|
|
3797
3822
|
days: "days"
|
|
3798
3823
|
}
|
|
3799
3824
|
};
|
|
3800
|
-
function
|
|
3801
|
-
|
|
3825
|
+
function hi(e) {
|
|
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)}");
|
|
3802
3827
|
}
|
|
3803
|
-
function
|
|
3828
|
+
function pt(e) {
|
|
3804
3829
|
let t, r, n = (
|
|
3805
3830
|
/*formatDate*/
|
|
3806
3831
|
e[10](
|
|
@@ -3819,9 +3844,9 @@ function mt(e) {
|
|
|
3819
3844
|
/*status*/
|
|
3820
3845
|
d[2] == "Finished" || /*status*/
|
|
3821
3846
|
d[2] == "Closing" || /*status*/
|
|
3822
|
-
d[2] == "Closed" ?
|
|
3847
|
+
d[2] == "Closed" ? ci : (
|
|
3823
3848
|
/*tournamentUntilStartDays*/
|
|
3824
|
-
d[5] > 0 ?
|
|
3849
|
+
d[5] > 0 ? fi : li
|
|
3825
3850
|
)
|
|
3826
3851
|
);
|
|
3827
3852
|
}
|
|
@@ -3832,15 +3857,18 @@ function mt(e) {
|
|
|
3832
3857
|
d[2] == "Finished" || /*status*/
|
|
3833
3858
|
d[2] == "Closing" || /*status*/
|
|
3834
3859
|
d[2] == "Closed"
|
|
3835
|
-
)
|
|
3860
|
+
)
|
|
3861
|
+
return pi;
|
|
3836
3862
|
if (
|
|
3837
3863
|
/*tournamentUntilStartDays*/
|
|
3838
3864
|
d[5] > 0
|
|
3839
|
-
)
|
|
3865
|
+
)
|
|
3866
|
+
return di;
|
|
3840
3867
|
if (
|
|
3841
3868
|
/*tournamentLeftDays*/
|
|
3842
3869
|
d[4] > 0
|
|
3843
|
-
)
|
|
3870
|
+
)
|
|
3871
|
+
return mi;
|
|
3844
3872
|
}
|
|
3845
3873
|
let v = L(e), H = v && v(e);
|
|
3846
3874
|
return {
|
|
@@ -3848,7 +3876,7 @@ function mt(e) {
|
|
|
3848
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");
|
|
3849
3877
|
},
|
|
3850
3878
|
m(d, S) {
|
|
3851
|
-
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 =
|
|
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(
|
|
3852
3880
|
/*getDuration*/
|
|
3853
3881
|
e[9].call(null, l)
|
|
3854
3882
|
), p = !0);
|
|
@@ -3871,11 +3899,11 @@ function mt(e) {
|
|
|
3871
3899
|
}
|
|
3872
3900
|
};
|
|
3873
3901
|
}
|
|
3874
|
-
function
|
|
3902
|
+
function li(e) {
|
|
3875
3903
|
let t;
|
|
3876
3904
|
return {
|
|
3877
3905
|
c() {
|
|
3878
|
-
t = I("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"),
|
|
3906
|
+
t = I("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"), Ye(
|
|
3879
3907
|
t,
|
|
3880
3908
|
"width",
|
|
3881
3909
|
/*getProgress*/
|
|
@@ -3887,7 +3915,7 @@ function hi(e) {
|
|
|
3887
3915
|
},
|
|
3888
3916
|
p(r, n) {
|
|
3889
3917
|
n & /*getProgress*/
|
|
3890
|
-
128 &&
|
|
3918
|
+
128 && Ye(
|
|
3891
3919
|
t,
|
|
3892
3920
|
"width",
|
|
3893
3921
|
/*getProgress*/
|
|
@@ -3899,7 +3927,7 @@ function hi(e) {
|
|
|
3899
3927
|
}
|
|
3900
3928
|
};
|
|
3901
3929
|
}
|
|
3902
|
-
function
|
|
3930
|
+
function fi(e) {
|
|
3903
3931
|
let t;
|
|
3904
3932
|
return {
|
|
3905
3933
|
c() {
|
|
@@ -3914,7 +3942,7 @@ function li(e) {
|
|
|
3914
3942
|
}
|
|
3915
3943
|
};
|
|
3916
3944
|
}
|
|
3917
|
-
function
|
|
3945
|
+
function ci(e) {
|
|
3918
3946
|
let t;
|
|
3919
3947
|
return {
|
|
3920
3948
|
c() {
|
|
@@ -3929,7 +3957,7 @@ function fi(e) {
|
|
|
3929
3957
|
}
|
|
3930
3958
|
};
|
|
3931
3959
|
}
|
|
3932
|
-
function
|
|
3960
|
+
function mi(e) {
|
|
3933
3961
|
let t, r, n, i = (
|
|
3934
3962
|
/*$_*/
|
|
3935
3963
|
e[8]("left") + ""
|
|
@@ -3959,7 +3987,7 @@ function ci(e) {
|
|
|
3959
3987
|
}
|
|
3960
3988
|
};
|
|
3961
3989
|
}
|
|
3962
|
-
function
|
|
3990
|
+
function di(e) {
|
|
3963
3991
|
let t, r = (
|
|
3964
3992
|
/*$_*/
|
|
3965
3993
|
e[8]("starting") + ""
|
|
@@ -3992,7 +4020,7 @@ function mi(e) {
|
|
|
3992
4020
|
}
|
|
3993
4021
|
};
|
|
3994
4022
|
}
|
|
3995
|
-
function
|
|
4023
|
+
function pi(e) {
|
|
3996
4024
|
let t, r = (
|
|
3997
4025
|
/*$_*/
|
|
3998
4026
|
e[8]("finished") + ""
|
|
@@ -4014,11 +4042,11 @@ function di(e) {
|
|
|
4014
4042
|
}
|
|
4015
4043
|
};
|
|
4016
4044
|
}
|
|
4017
|
-
function
|
|
4045
|
+
function gi(e) {
|
|
4018
4046
|
let t, r = (
|
|
4019
4047
|
/*startdate*/
|
|
4020
4048
|
e[0] && /*enddate*/
|
|
4021
|
-
e[1] &&
|
|
4049
|
+
e[1] && pt(e)
|
|
4022
4050
|
);
|
|
4023
4051
|
return {
|
|
4024
4052
|
c() {
|
|
@@ -4030,7 +4058,7 @@ function pi(e) {
|
|
|
4030
4058
|
p(n, [i]) {
|
|
4031
4059
|
/*startdate*/
|
|
4032
4060
|
n[0] && /*enddate*/
|
|
4033
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
4061
|
+
n[1] ? r ? r.p(n, i) : (r = pt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4034
4062
|
},
|
|
4035
4063
|
i: w,
|
|
4036
4064
|
o: w,
|
|
@@ -4039,21 +4067,21 @@ function pi(e) {
|
|
|
4039
4067
|
}
|
|
4040
4068
|
};
|
|
4041
4069
|
}
|
|
4042
|
-
function
|
|
4070
|
+
function bi(e, t, r) {
|
|
4043
4071
|
let n, i;
|
|
4044
|
-
|
|
4072
|
+
Kt(e, ui, (m) => r(8, i = m));
|
|
4045
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 = "";
|
|
4046
4074
|
const P = () => {
|
|
4047
4075
|
fetch(f).then((A) => A.json()).then((A) => {
|
|
4048
4076
|
Object.keys(A).forEach((C) => {
|
|
4049
|
-
|
|
4077
|
+
mt(C, A[C]);
|
|
4050
4078
|
});
|
|
4051
4079
|
}).catch((A) => {
|
|
4052
4080
|
console.log(A);
|
|
4053
4081
|
});
|
|
4054
4082
|
};
|
|
4055
|
-
Object.keys(
|
|
4056
|
-
|
|
4083
|
+
Object.keys(dt).forEach((m) => {
|
|
4084
|
+
mt(m, dt[m]);
|
|
4057
4085
|
});
|
|
4058
4086
|
const B = (m) => new Date(m).getTime(), L = (m, A) => (B(A) - B(m)) / (1e3 * 60), v = () => {
|
|
4059
4087
|
const m = /* @__PURE__ */ new Date();
|
|
@@ -4068,8 +4096,8 @@ function gi(e, t, r) {
|
|
|
4068
4096
|
return D < 10 ? `0${D}` : `${D}`;
|
|
4069
4097
|
};
|
|
4070
4098
|
if (m < 1440) {
|
|
4071
|
-
const j = m / 60, D = m % 60,
|
|
4072
|
-
return [j, D,
|
|
4099
|
+
const j = m / 60, D = m % 60, Xt = (D - Math.floor(D)) * 60;
|
|
4100
|
+
return [j, D, Xt].map((zt) => C(zt)).join(":");
|
|
4073
4101
|
}
|
|
4074
4102
|
return A(Math.ceil(m / (60 * 24)), "days");
|
|
4075
4103
|
}, S = () => {
|
|
@@ -4090,7 +4118,7 @@ function gi(e, t, r) {
|
|
|
4090
4118
|
);
|
|
4091
4119
|
});
|
|
4092
4120
|
};
|
|
4093
|
-
|
|
4121
|
+
ar(() => {
|
|
4094
4122
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4095
4123
|
const m = setInterval(
|
|
4096
4124
|
() => {
|
|
@@ -4100,7 +4128,7 @@ function gi(e, t, r) {
|
|
|
4100
4128
|
);
|
|
4101
4129
|
return () => clearInterval(m);
|
|
4102
4130
|
});
|
|
4103
|
-
function
|
|
4131
|
+
function Vt(m) {
|
|
4104
4132
|
Ie[m ? "unshift" : "push"](() => {
|
|
4105
4133
|
c = m, r(3, c);
|
|
4106
4134
|
});
|
|
@@ -4110,7 +4138,8 @@ function gi(e, t, r) {
|
|
|
4110
4138
|
}, e.$$.update = () => {
|
|
4111
4139
|
e.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
4112
4140
|
19 && r(7, n = () => {
|
|
4113
|
-
if (p <= 0)
|
|
4141
|
+
if (p <= 0)
|
|
4142
|
+
return 100;
|
|
4114
4143
|
const m = L(s, o), A = 100 / m;
|
|
4115
4144
|
return Math.floor((m - p) * A);
|
|
4116
4145
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
@@ -4137,17 +4166,17 @@ function gi(e, t, r) {
|
|
|
4137
4166
|
u,
|
|
4138
4167
|
l,
|
|
4139
4168
|
f,
|
|
4140
|
-
|
|
4169
|
+
Vt
|
|
4141
4170
|
];
|
|
4142
4171
|
}
|
|
4143
|
-
class
|
|
4172
|
+
class yi extends Er {
|
|
4144
4173
|
constructor(t) {
|
|
4145
|
-
super(),
|
|
4174
|
+
super(), br(
|
|
4146
4175
|
this,
|
|
4147
4176
|
t,
|
|
4177
|
+
bi,
|
|
4148
4178
|
gi,
|
|
4149
|
-
|
|
4150
|
-
pt,
|
|
4179
|
+
bt,
|
|
4151
4180
|
{
|
|
4152
4181
|
startdate: 0,
|
|
4153
4182
|
enddate: 1,
|
|
@@ -4157,7 +4186,7 @@ class bi extends br {
|
|
|
4157
4186
|
clientstylingurl: 14,
|
|
4158
4187
|
translationurl: 15
|
|
4159
4188
|
},
|
|
4160
|
-
|
|
4189
|
+
hi
|
|
4161
4190
|
);
|
|
4162
4191
|
}
|
|
4163
4192
|
get startdate() {
|
|
@@ -4203,7 +4232,7 @@ class bi extends br {
|
|
|
4203
4232
|
this.$$set({ translationurl: t }), U();
|
|
4204
4233
|
}
|
|
4205
4234
|
}
|
|
4206
|
-
|
|
4235
|
+
yr(yi, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4207
4236
|
export {
|
|
4208
|
-
|
|
4237
|
+
yi as default
|
|
4209
4238
|
};
|