@everymatrix/casino-tournaments-thumbnail-prizes 1.86.4 → 1.86.5
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/CasinoTournamentsThumbnailPrizes-Cub338de.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailPrizes-CjlXRt65.js → CasinoTournamentsThumbnailPrizes-KWys1PqP.js} +559 -555
- package/components/{CasinoTournamentsThumbnailPrizes-CzzsMaWv.js → CasinoTournamentsThumbnailPrizes-mHmzY5O2.js} +543 -539
- package/es2015/casino-tournaments-thumbnail-prizes.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-prizes.js +1 -1
- package/esnext/casino-tournaments-thumbnail-prizes.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailPrizes-2IuSQazp.cjs +0 -16
|
@@ -6,10 +6,10 @@ function ut(e) {
|
|
|
6
6
|
function Ge() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function K(e) {
|
|
10
10
|
e.forEach(ut);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ce(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function ht(e, t) {
|
|
@@ -57,10 +57,10 @@ function Gt(e, t) {
|
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ee(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function z(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function Ft(e, t) {
|
|
@@ -70,13 +70,13 @@ function Ft(e, t) {
|
|
|
70
70
|
function T(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function O(e) {
|
|
74
74
|
return document.createTextNode(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function ue() {
|
|
77
|
+
return O(" ");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function x(e, t, r) {
|
|
80
80
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
81
81
|
}
|
|
82
82
|
function zt(e) {
|
|
@@ -95,65 +95,65 @@ function jt(e) {
|
|
|
95
95
|
}
|
|
96
96
|
), t;
|
|
97
97
|
}
|
|
98
|
-
let
|
|
99
|
-
function
|
|
100
|
-
|
|
98
|
+
let J;
|
|
99
|
+
function Q(e) {
|
|
100
|
+
J = e;
|
|
101
101
|
}
|
|
102
102
|
function kt() {
|
|
103
|
-
if (!
|
|
103
|
+
if (!J)
|
|
104
104
|
throw new Error("Function called outside component initialization");
|
|
105
|
-
return
|
|
105
|
+
return J;
|
|
106
106
|
}
|
|
107
107
|
function Vt(e) {
|
|
108
108
|
kt().$$.on_mount.push(e);
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
110
|
+
const C = [], Te = [];
|
|
111
|
+
let R = [];
|
|
112
112
|
const Fe = [], Xt = /* @__PURE__ */ Promise.resolve();
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
113
|
+
let Pe = !1;
|
|
114
|
+
function Wt() {
|
|
115
|
+
Pe || (Pe = !0, Xt.then(w));
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
function Se(e) {
|
|
118
|
+
R.push(e);
|
|
119
119
|
}
|
|
120
|
-
const
|
|
121
|
-
let
|
|
122
|
-
function
|
|
123
|
-
if (
|
|
120
|
+
const ge = /* @__PURE__ */ new Set();
|
|
121
|
+
let $ = 0;
|
|
122
|
+
function w() {
|
|
123
|
+
if ($ !== 0)
|
|
124
124
|
return;
|
|
125
|
-
const e =
|
|
125
|
+
const e = J;
|
|
126
126
|
do {
|
|
127
127
|
try {
|
|
128
|
-
for (;
|
|
129
|
-
const t =
|
|
130
|
-
|
|
128
|
+
for (; $ < C.length; ) {
|
|
129
|
+
const t = C[$];
|
|
130
|
+
$++, Q(t), Zt(t.$$);
|
|
131
131
|
}
|
|
132
132
|
} catch (t) {
|
|
133
|
-
throw
|
|
133
|
+
throw C.length = 0, $ = 0, t;
|
|
134
134
|
}
|
|
135
|
-
for (
|
|
136
|
-
|
|
137
|
-
for (let t = 0; t <
|
|
138
|
-
const r =
|
|
139
|
-
|
|
135
|
+
for (Q(null), C.length = 0, $ = 0; Te.length; )
|
|
136
|
+
Te.pop()();
|
|
137
|
+
for (let t = 0; t < R.length; t += 1) {
|
|
138
|
+
const r = R[t];
|
|
139
|
+
ge.has(r) || (ge.add(r), r());
|
|
140
140
|
}
|
|
141
|
-
|
|
142
|
-
} while (
|
|
141
|
+
R.length = 0;
|
|
142
|
+
} while (C.length);
|
|
143
143
|
for (; Fe.length; )
|
|
144
144
|
Fe.pop()();
|
|
145
|
-
|
|
145
|
+
Pe = !1, ge.clear(), Q(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Zt(e) {
|
|
148
148
|
if (e.fragment !== null) {
|
|
149
|
-
e.update(),
|
|
149
|
+
e.update(), K(e.before_update);
|
|
150
150
|
const t = e.dirty;
|
|
151
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
151
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
function Qt(e) {
|
|
155
155
|
const t = [], r = [];
|
|
156
|
-
|
|
156
|
+
R.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), R = t;
|
|
157
157
|
}
|
|
158
158
|
const Jt = /* @__PURE__ */ new Set();
|
|
159
159
|
function qt(e, t) {
|
|
@@ -164,21 +164,21 @@ function ze(e) {
|
|
|
164
164
|
}
|
|
165
165
|
function Yt(e, t, r) {
|
|
166
166
|
const { fragment: n, after_update: i } = e.$$;
|
|
167
|
-
n && n.m(t, r),
|
|
168
|
-
const s = e.$$.on_mount.map(ut).filter(
|
|
169
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
170
|
-
}), i.forEach(
|
|
167
|
+
n && n.m(t, r), Se(() => {
|
|
168
|
+
const s = e.$$.on_mount.map(ut).filter(Ce);
|
|
169
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
|
170
|
+
}), i.forEach(Se);
|
|
171
171
|
}
|
|
172
172
|
function Kt(e, t) {
|
|
173
173
|
const r = e.$$;
|
|
174
|
-
r.fragment !== null && (Qt(r.after_update),
|
|
174
|
+
r.fragment !== null && (Qt(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
175
175
|
}
|
|
176
176
|
function er(e, t) {
|
|
177
|
-
e.$$.dirty[0] === -1 && (
|
|
177
|
+
e.$$.dirty[0] === -1 && (C.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
178
178
|
}
|
|
179
179
|
function tr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
180
|
-
const l =
|
|
181
|
-
|
|
180
|
+
const l = J;
|
|
181
|
+
Q(e);
|
|
182
182
|
const a = e.$$ = {
|
|
183
183
|
fragment: null,
|
|
184
184
|
ctx: [],
|
|
@@ -202,18 +202,18 @@ function tr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
202
202
|
};
|
|
203
203
|
u && u(a.root);
|
|
204
204
|
let h = !1;
|
|
205
|
-
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
206
|
-
const
|
|
207
|
-
return a.ctx && i(a.ctx[f], a.ctx[f] =
|
|
208
|
-
}) : [], a.update(), h = !0,
|
|
205
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
206
|
+
const p = m.length ? m[0] : c;
|
|
207
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = p) && (!a.skip_bound && a.bound[f] && a.bound[f](p), h && er(e, f)), c;
|
|
208
|
+
}) : [], a.update(), h = !0, K(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
209
209
|
if (t.hydrate) {
|
|
210
210
|
const f = zt(t.target);
|
|
211
|
-
a.fragment && a.fragment.l(f), f.forEach(
|
|
211
|
+
a.fragment && a.fragment.l(f), f.forEach(z);
|
|
212
212
|
} else
|
|
213
213
|
a.fragment && a.fragment.c();
|
|
214
|
-
t.intro && qt(e.$$.fragment), Yt(e, t.target, t.anchor),
|
|
214
|
+
t.intro && qt(e.$$.fragment), Yt(e, t.target, t.anchor), w();
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
Q(l);
|
|
217
217
|
}
|
|
218
218
|
let ft;
|
|
219
219
|
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
@@ -258,17 +258,17 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
258
258
|
let s;
|
|
259
259
|
return {
|
|
260
260
|
c: function() {
|
|
261
|
-
s = T("slot"), i !== "default" &&
|
|
261
|
+
s = T("slot"), i !== "default" && x(s, "name", i);
|
|
262
262
|
},
|
|
263
263
|
/**
|
|
264
264
|
* @param {HTMLElement} target
|
|
265
265
|
* @param {HTMLElement} [anchor]
|
|
266
266
|
*/
|
|
267
267
|
m: function(l, a) {
|
|
268
|
-
|
|
268
|
+
ee(l, s, a);
|
|
269
269
|
},
|
|
270
270
|
d: function(l) {
|
|
271
|
-
l &&
|
|
271
|
+
l && z(s);
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
};
|
|
@@ -280,7 +280,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
280
280
|
i in r && (t[i] = [e(i)]);
|
|
281
281
|
for (const i of this.attributes) {
|
|
282
282
|
const s = this.$$g_p(i.name);
|
|
283
|
-
s in this.$$d || (this.$$d[s] =
|
|
283
|
+
s in this.$$d || (this.$$d[s] = se(s, i.value, this.$$p_d, "toProp"));
|
|
284
284
|
}
|
|
285
285
|
for (const i in this.$$p_d)
|
|
286
286
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -298,7 +298,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
298
298
|
this.$$r = !0;
|
|
299
299
|
for (const i in this.$$p_d)
|
|
300
300
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
301
|
-
const s =
|
|
301
|
+
const s = se(
|
|
302
302
|
i,
|
|
303
303
|
this.$$d[i],
|
|
304
304
|
this.$$p_d,
|
|
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
320
320
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
321
321
|
// and setting attributes through setAttribute etc, this is helpful
|
|
322
322
|
attributeChangedCallback(e, t, r) {
|
|
323
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
323
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = se(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
324
324
|
}
|
|
325
325
|
disconnectedCallback() {
|
|
326
326
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -333,7 +333,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
333
333
|
) || e;
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
|
-
function
|
|
336
|
+
function se(e, t, r, n) {
|
|
337
337
|
const i = r[e]?.type;
|
|
338
338
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
339
339
|
return t;
|
|
@@ -379,7 +379,7 @@ function rr(e, t, r, n, i, s) {
|
|
|
379
379
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
380
380
|
},
|
|
381
381
|
set(l) {
|
|
382
|
-
l =
|
|
382
|
+
l = se(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
}), n.forEach((o) => {
|
|
@@ -419,7 +419,7 @@ class nr {
|
|
|
419
419
|
* @returns {() => void}
|
|
420
420
|
*/
|
|
421
421
|
$on(t, r) {
|
|
422
|
-
if (
|
|
422
|
+
if (!Ce(r))
|
|
423
423
|
return P;
|
|
424
424
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
425
425
|
return n.push(r), () => {
|
|
@@ -437,24 +437,24 @@ class nr {
|
|
|
437
437
|
}
|
|
438
438
|
const ir = "4";
|
|
439
439
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ir);
|
|
440
|
-
const
|
|
440
|
+
const M = [];
|
|
441
441
|
function sr(e, t) {
|
|
442
442
|
return {
|
|
443
|
-
subscribe:
|
|
443
|
+
subscribe: ce(e, t).subscribe
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function ce(e, t = P) {
|
|
447
447
|
let r;
|
|
448
448
|
const n = /* @__PURE__ */ new Set();
|
|
449
449
|
function i(o) {
|
|
450
450
|
if (ht(e, o) && (e = o, r)) {
|
|
451
|
-
const l =
|
|
451
|
+
const l = !M.length;
|
|
452
452
|
for (const a of n)
|
|
453
|
-
a[1](),
|
|
453
|
+
a[1](), M.push(a, e);
|
|
454
454
|
if (l) {
|
|
455
|
-
for (let a = 0; a <
|
|
456
|
-
|
|
457
|
-
|
|
455
|
+
for (let a = 0; a < M.length; a += 2)
|
|
456
|
+
M[a][0](M[a + 1]);
|
|
457
|
+
M.length = 0;
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
}
|
|
@@ -469,7 +469,7 @@ function le(e, t = P) {
|
|
|
469
469
|
}
|
|
470
470
|
return { set: i, update: s, subscribe: u };
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function j(e, t, r) {
|
|
473
473
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
474
474
|
if (!i.every(Boolean))
|
|
475
475
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -482,21 +482,21 @@ function z(e, t, r) {
|
|
|
482
482
|
if (h)
|
|
483
483
|
return;
|
|
484
484
|
f();
|
|
485
|
-
const
|
|
486
|
-
s ? u(
|
|
487
|
-
},
|
|
488
|
-
(
|
|
489
|
-
|
|
485
|
+
const p = t(n ? a[0] : a, u, o);
|
|
486
|
+
s ? u(p) : f = Ce(p) ? p : P;
|
|
487
|
+
}, m = i.map(
|
|
488
|
+
(p, y) => lt(
|
|
489
|
+
p,
|
|
490
490
|
(H) => {
|
|
491
|
-
a[
|
|
491
|
+
a[y] = H, h &= ~(1 << y), l && c();
|
|
492
492
|
},
|
|
493
493
|
() => {
|
|
494
|
-
h |= 1 <<
|
|
494
|
+
h |= 1 << y;
|
|
495
495
|
}
|
|
496
496
|
)
|
|
497
497
|
);
|
|
498
498
|
return l = !0, c(), function() {
|
|
499
|
-
|
|
499
|
+
K(m), f(), l = !1;
|
|
500
500
|
};
|
|
501
501
|
});
|
|
502
502
|
}
|
|
@@ -517,22 +517,22 @@ var lr = typeof Symbol == "function" && Symbol.for, fr = lr ? Symbol.for("react.
|
|
|
517
517
|
function cr(e) {
|
|
518
518
|
return e.$$typeof === fr;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function pr(e) {
|
|
521
521
|
return Array.isArray(e) ? [] : {};
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
523
|
+
function q(e, t) {
|
|
524
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? U(pr(e), e, t) : e;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function mr(e, t, r) {
|
|
527
527
|
return e.concat(t).map(function(n) {
|
|
528
|
-
return
|
|
528
|
+
return q(n, r);
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
function dr(e, t) {
|
|
532
532
|
if (!t.customMerge)
|
|
533
|
-
return
|
|
533
|
+
return U;
|
|
534
534
|
var r = t.customMerge(e);
|
|
535
|
-
return typeof r == "function" ? r :
|
|
535
|
+
return typeof r == "function" ? r : U;
|
|
536
536
|
}
|
|
537
537
|
function br(e) {
|
|
538
538
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -555,65 +555,51 @@ function gr(e, t) {
|
|
|
555
555
|
function Er(e, t, r) {
|
|
556
556
|
var n = {};
|
|
557
557
|
return r.isMergeableObject(e) && je(e).forEach(function(i) {
|
|
558
|
-
n[i] =
|
|
558
|
+
n[i] = q(e[i], r);
|
|
559
559
|
}), je(t).forEach(function(i) {
|
|
560
|
-
gr(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = dr(i, r)(e[i], t[i], r) : n[i] =
|
|
560
|
+
gr(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = dr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
561
561
|
}), n;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
563
|
+
function U(e, t, r) {
|
|
564
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mr, r.isMergeableObject = r.isMergeableObject || ar, r.cloneUnlessOtherwiseSpecified = q;
|
|
565
565
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
566
|
-
return s ? n ? r.arrayMerge(e, t, r) : Er(e, t, r) :
|
|
566
|
+
return s ? n ? r.arrayMerge(e, t, r) : Er(e, t, r) : q(t, r);
|
|
567
567
|
}
|
|
568
|
-
|
|
568
|
+
U.all = function(t, r) {
|
|
569
569
|
if (!Array.isArray(t))
|
|
570
570
|
throw new Error("first argument should be an array");
|
|
571
571
|
return t.reduce(function(n, i) {
|
|
572
|
-
return
|
|
572
|
+
return U(n, i, r);
|
|
573
573
|
}, {});
|
|
574
574
|
};
|
|
575
|
-
var
|
|
576
|
-
const _r = /* @__PURE__ */ or(
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
581
|
-
purpose with or without fee is hereby granted.
|
|
582
|
-
|
|
583
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
584
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
585
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
586
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
587
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
588
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
589
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
590
|
-
***************************************************************************** */
|
|
591
|
-
var Pe = function(e, t) {
|
|
592
|
-
return Pe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
575
|
+
var yr = U, xr = yr;
|
|
576
|
+
const _r = /* @__PURE__ */ or(xr);
|
|
577
|
+
var Be = function(e, t) {
|
|
578
|
+
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
593
579
|
r.__proto__ = n;
|
|
594
580
|
} || function(r, n) {
|
|
595
581
|
for (var i in n)
|
|
596
582
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
597
|
-
},
|
|
583
|
+
}, Be(e, t);
|
|
598
584
|
};
|
|
599
|
-
function
|
|
585
|
+
function pe(e, t) {
|
|
600
586
|
if (typeof t != "function" && t !== null)
|
|
601
587
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
602
|
-
|
|
588
|
+
Be(e, t);
|
|
603
589
|
function r() {
|
|
604
590
|
this.constructor = e;
|
|
605
591
|
}
|
|
606
592
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
607
593
|
}
|
|
608
|
-
var
|
|
609
|
-
return
|
|
594
|
+
var B = function() {
|
|
595
|
+
return B = Object.assign || function(t) {
|
|
610
596
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
611
597
|
r = arguments[n];
|
|
612
598
|
for (var s in r)
|
|
613
599
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
614
600
|
}
|
|
615
601
|
return t;
|
|
616
|
-
},
|
|
602
|
+
}, B.apply(this, arguments);
|
|
617
603
|
};
|
|
618
604
|
function vr(e, t) {
|
|
619
605
|
var r = {};
|
|
@@ -624,14 +610,14 @@ function vr(e, t) {
|
|
|
624
610
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
625
611
|
return r;
|
|
626
612
|
}
|
|
627
|
-
function
|
|
628
|
-
if (arguments.length === 2)
|
|
613
|
+
function Ee(e, t, r) {
|
|
614
|
+
if (r || arguments.length === 2)
|
|
629
615
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
630
616
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
631
|
-
return e.concat(s || t);
|
|
617
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
632
618
|
}
|
|
633
|
-
function
|
|
634
|
-
var r = t && t.cache ? t.cache :
|
|
619
|
+
function ye(e, t) {
|
|
620
|
+
var r = t && t.cache ? t.cache : Nr, n = t && t.serializer ? t.serializer : Br, i = t && t.strategy ? t.strategy : Pr;
|
|
635
621
|
return i(e, {
|
|
636
622
|
cache: r,
|
|
637
623
|
serializer: n
|
|
@@ -640,7 +626,7 @@ function ge(e, t) {
|
|
|
640
626
|
function Hr(e) {
|
|
641
627
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
642
628
|
}
|
|
643
|
-
function
|
|
629
|
+
function Tr(e, t, r, n) {
|
|
644
630
|
var i = Hr(n) ? n : r(n), s = t.get(i);
|
|
645
631
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
646
632
|
}
|
|
@@ -648,87 +634,95 @@ function pt(e, t, r) {
|
|
|
648
634
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
649
635
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
650
636
|
}
|
|
651
|
-
function
|
|
637
|
+
function mt(e, t, r, n, i) {
|
|
652
638
|
return r.bind(t, e, n, i);
|
|
653
639
|
}
|
|
654
|
-
function Tr(e, t) {
|
|
655
|
-
var r = e.length === 1 ? mt : pt;
|
|
656
|
-
return Me(e, this, r, t.cache.create(), t.serializer);
|
|
657
|
-
}
|
|
658
640
|
function Pr(e, t) {
|
|
659
|
-
|
|
641
|
+
var r = e.length === 1 ? Tr : pt;
|
|
642
|
+
return mt(e, this, r, t.cache.create(), t.serializer);
|
|
660
643
|
}
|
|
661
|
-
function
|
|
662
|
-
return
|
|
644
|
+
function Sr(e, t) {
|
|
645
|
+
return mt(e, this, pt, t.cache.create(), t.serializer);
|
|
663
646
|
}
|
|
664
|
-
var
|
|
647
|
+
var Br = function() {
|
|
665
648
|
return JSON.stringify(arguments);
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
649
|
+
}, Ar = (
|
|
650
|
+
/** @class */
|
|
651
|
+
function() {
|
|
652
|
+
function e() {
|
|
653
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
654
|
+
}
|
|
655
|
+
return e.prototype.get = function(t) {
|
|
656
|
+
return this.cache[t];
|
|
657
|
+
}, e.prototype.set = function(t, r) {
|
|
658
|
+
this.cache[t] = r;
|
|
659
|
+
}, e;
|
|
660
|
+
}()
|
|
661
|
+
), Nr = {
|
|
677
662
|
create: function() {
|
|
678
|
-
return new
|
|
663
|
+
return new Ar();
|
|
679
664
|
}
|
|
680
|
-
},
|
|
681
|
-
variadic:
|
|
682
|
-
|
|
683
|
-
|
|
665
|
+
}, xe = {
|
|
666
|
+
variadic: Sr
|
|
667
|
+
}, he = function() {
|
|
668
|
+
return he = Object.assign || function(t) {
|
|
669
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
670
|
+
r = arguments[n];
|
|
671
|
+
for (var s in r)
|
|
672
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
673
|
+
}
|
|
674
|
+
return t;
|
|
675
|
+
}, he.apply(this, arguments);
|
|
676
|
+
};
|
|
677
|
+
var d;
|
|
684
678
|
(function(e) {
|
|
685
679
|
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";
|
|
686
680
|
})(d || (d = {}));
|
|
687
|
-
var
|
|
681
|
+
var g;
|
|
688
682
|
(function(e) {
|
|
689
683
|
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";
|
|
690
|
-
})(
|
|
691
|
-
var
|
|
684
|
+
})(g || (g = {}));
|
|
685
|
+
var D;
|
|
692
686
|
(function(e) {
|
|
693
687
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
694
|
-
})(
|
|
688
|
+
})(D || (D = {}));
|
|
695
689
|
function ke(e) {
|
|
696
|
-
return e.type ===
|
|
690
|
+
return e.type === g.literal;
|
|
697
691
|
}
|
|
698
|
-
function
|
|
699
|
-
return e.type ===
|
|
692
|
+
function wr(e) {
|
|
693
|
+
return e.type === g.argument;
|
|
700
694
|
}
|
|
701
695
|
function dt(e) {
|
|
702
|
-
return e.type ===
|
|
696
|
+
return e.type === g.number;
|
|
703
697
|
}
|
|
704
698
|
function bt(e) {
|
|
705
|
-
return e.type ===
|
|
699
|
+
return e.type === g.date;
|
|
706
700
|
}
|
|
707
701
|
function gt(e) {
|
|
708
|
-
return e.type ===
|
|
702
|
+
return e.type === g.time;
|
|
709
703
|
}
|
|
710
704
|
function Et(e) {
|
|
711
|
-
return e.type ===
|
|
705
|
+
return e.type === g.select;
|
|
712
706
|
}
|
|
713
|
-
function
|
|
714
|
-
return e.type ===
|
|
707
|
+
function yt(e) {
|
|
708
|
+
return e.type === g.plural;
|
|
715
709
|
}
|
|
716
|
-
function
|
|
717
|
-
return e.type ===
|
|
710
|
+
function Or(e) {
|
|
711
|
+
return e.type === g.pound;
|
|
718
712
|
}
|
|
719
|
-
function
|
|
720
|
-
return e.type ===
|
|
713
|
+
function xt(e) {
|
|
714
|
+
return e.type === g.tag;
|
|
721
715
|
}
|
|
722
716
|
function _t(e) {
|
|
723
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
717
|
+
return !!(e && typeof e == "object" && e.type === D.number);
|
|
724
718
|
}
|
|
725
|
-
function
|
|
726
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
719
|
+
function Ae(e) {
|
|
720
|
+
return !!(e && typeof e == "object" && e.type === D.dateTime);
|
|
727
721
|
}
|
|
728
|
-
var vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
729
|
-
function
|
|
722
|
+
var vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ir = /(?:[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;
|
|
723
|
+
function Lr(e) {
|
|
730
724
|
var t = {};
|
|
731
|
-
return e.replace(
|
|
725
|
+
return e.replace(Ir, function(r) {
|
|
732
726
|
var n = r.length;
|
|
733
727
|
switch (r[0]) {
|
|
734
728
|
case "G":
|
|
@@ -817,11 +811,21 @@ function Ir(e) {
|
|
|
817
811
|
return "";
|
|
818
812
|
}), t;
|
|
819
813
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
814
|
+
var E = function() {
|
|
815
|
+
return E = Object.assign || function(t) {
|
|
816
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
817
|
+
r = arguments[n];
|
|
818
|
+
for (var s in r)
|
|
819
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
820
|
+
}
|
|
821
|
+
return t;
|
|
822
|
+
}, E.apply(this, arguments);
|
|
823
|
+
};
|
|
824
|
+
var $r = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
825
|
+
function Mr(e) {
|
|
822
826
|
if (e.length === 0)
|
|
823
827
|
throw new Error("Number skeleton cannot be empty");
|
|
824
|
-
for (var t = e.split(
|
|
828
|
+
for (var t = e.split($r).filter(function(c) {
|
|
825
829
|
return c.length > 0;
|
|
826
830
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
827
831
|
var s = i[n], u = s.split("/");
|
|
@@ -836,10 +840,10 @@ function $r(e) {
|
|
|
836
840
|
}
|
|
837
841
|
return r;
|
|
838
842
|
}
|
|
839
|
-
function
|
|
843
|
+
function Cr(e) {
|
|
840
844
|
return e.replace(/^(.*?)-/, "");
|
|
841
845
|
}
|
|
842
|
-
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
846
|
+
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Rr = /(\*)(0+)|(#+)(0+)|(0+)/g, Tt = /^(0+)$/;
|
|
843
847
|
function Xe(e) {
|
|
844
848
|
var t = {};
|
|
845
849
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(r, n, i) {
|
|
@@ -886,7 +890,7 @@ function Pt(e) {
|
|
|
886
890
|
};
|
|
887
891
|
}
|
|
888
892
|
}
|
|
889
|
-
function
|
|
893
|
+
function Ur(e) {
|
|
890
894
|
var t;
|
|
891
895
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
892
896
|
notation: "engineering"
|
|
@@ -900,11 +904,11 @@ function Rr(e) {
|
|
|
900
904
|
}
|
|
901
905
|
return t;
|
|
902
906
|
}
|
|
903
|
-
function
|
|
907
|
+
function We(e) {
|
|
904
908
|
var t = {}, r = Pt(e);
|
|
905
909
|
return r || t;
|
|
906
910
|
}
|
|
907
|
-
function
|
|
911
|
+
function Dr(e) {
|
|
908
912
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
909
913
|
var i = n[r];
|
|
910
914
|
switch (i.stem) {
|
|
@@ -928,7 +932,7 @@ function Ur(e) {
|
|
|
928
932
|
continue;
|
|
929
933
|
case "measure-unit":
|
|
930
934
|
case "unit":
|
|
931
|
-
t.style = "unit", t.unit =
|
|
935
|
+
t.style = "unit", t.unit = Cr(i.options[0]);
|
|
932
936
|
continue;
|
|
933
937
|
case "compact-short":
|
|
934
938
|
case "K":
|
|
@@ -939,13 +943,13 @@ function Ur(e) {
|
|
|
939
943
|
t.notation = "compact", t.compactDisplay = "long";
|
|
940
944
|
continue;
|
|
941
945
|
case "scientific":
|
|
942
|
-
t =
|
|
943
|
-
return
|
|
946
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
947
|
+
return E(E({}, l), We(a));
|
|
944
948
|
}, {}));
|
|
945
949
|
continue;
|
|
946
950
|
case "engineering":
|
|
947
|
-
t =
|
|
948
|
-
return
|
|
951
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
952
|
+
return E(E({}, l), We(a));
|
|
949
953
|
}, {}));
|
|
950
954
|
continue;
|
|
951
955
|
case "notation-simple":
|
|
@@ -990,13 +994,13 @@ function Ur(e) {
|
|
|
990
994
|
case "integer-width":
|
|
991
995
|
if (i.options.length > 1)
|
|
992
996
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
993
|
-
i.options[0].replace(
|
|
997
|
+
i.options[0].replace(Rr, function(l, a, h, f, c, m) {
|
|
994
998
|
if (a)
|
|
995
999
|
t.minimumIntegerDigits = h.length;
|
|
996
1000
|
else {
|
|
997
1001
|
if (f && c)
|
|
998
1002
|
throw new Error("We currently do not support maximum integer digits");
|
|
999
|
-
if (
|
|
1003
|
+
if (m)
|
|
1000
1004
|
throw new Error("We currently do not support exact integer digits");
|
|
1001
1005
|
}
|
|
1002
1006
|
return "";
|
|
@@ -1010,25 +1014,25 @@ function Ur(e) {
|
|
|
1010
1014
|
if (Ve.test(i.stem)) {
|
|
1011
1015
|
if (i.options.length > 1)
|
|
1012
1016
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1013
|
-
i.stem.replace(Ve, function(l, a, h, f, c,
|
|
1014
|
-
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1017
|
+
i.stem.replace(Ve, function(l, a, h, f, c, m) {
|
|
1018
|
+
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1015
1019
|
});
|
|
1016
1020
|
var s = i.options[0];
|
|
1017
|
-
s === "w" ? t =
|
|
1021
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), Xe(s)));
|
|
1018
1022
|
continue;
|
|
1019
1023
|
}
|
|
1020
1024
|
if (Ht.test(i.stem)) {
|
|
1021
|
-
t =
|
|
1025
|
+
t = E(E({}, t), Xe(i.stem));
|
|
1022
1026
|
continue;
|
|
1023
1027
|
}
|
|
1024
1028
|
var u = Pt(i.stem);
|
|
1025
|
-
u && (t =
|
|
1026
|
-
var o =
|
|
1027
|
-
o && (t =
|
|
1029
|
+
u && (t = E(E({}, t), u));
|
|
1030
|
+
var o = Ur(i.stem);
|
|
1031
|
+
o && (t = E(E({}, t), o));
|
|
1028
1032
|
}
|
|
1029
1033
|
return t;
|
|
1030
1034
|
}
|
|
1031
|
-
var
|
|
1035
|
+
var ie = {
|
|
1032
1036
|
"001": [
|
|
1033
1037
|
"H",
|
|
1034
1038
|
"h"
|
|
@@ -2443,13 +2447,13 @@ var ne = {
|
|
|
2443
2447
|
"h"
|
|
2444
2448
|
]
|
|
2445
2449
|
};
|
|
2446
|
-
function
|
|
2450
|
+
function Gr(e, t) {
|
|
2447
2451
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2448
2452
|
var i = e.charAt(n);
|
|
2449
2453
|
if (i === "j") {
|
|
2450
2454
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2451
2455
|
s++, n++;
|
|
2452
|
-
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2456
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = Fr(t);
|
|
2453
2457
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2454
2458
|
r += l;
|
|
2455
2459
|
for (; u-- > 0; )
|
|
@@ -2459,7 +2463,7 @@ function Dr(e, t) {
|
|
|
2459
2463
|
}
|
|
2460
2464
|
return r;
|
|
2461
2465
|
}
|
|
2462
|
-
function
|
|
2466
|
+
function Fr(e) {
|
|
2463
2467
|
var t = e.hourCycle;
|
|
2464
2468
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2465
2469
|
e.hourCycles && // @ts-ignore
|
|
@@ -2478,23 +2482,23 @@ function Gr(e) {
|
|
|
2478
2482
|
}
|
|
2479
2483
|
var r = e.language, n;
|
|
2480
2484
|
r !== "root" && (n = e.maximize().region);
|
|
2481
|
-
var i =
|
|
2485
|
+
var i = ie[n || ""] || ie[r || ""] || ie["".concat(r, "-001")] || ie["001"];
|
|
2482
2486
|
return i[0];
|
|
2483
2487
|
}
|
|
2484
|
-
var
|
|
2488
|
+
var _e, zr = new RegExp("^".concat(vt.source, "*")), jr = new RegExp("".concat(vt.source, "*$"));
|
|
2485
2489
|
function b(e, t) {
|
|
2486
2490
|
return { start: e, end: t };
|
|
2487
2491
|
}
|
|
2488
|
-
var
|
|
2492
|
+
var kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vr = !!String.fromCodePoint, Xr = !!Object.fromEntries, Wr = !!String.prototype.codePointAt, Zr = !!String.prototype.trimStart, Qr = !!String.prototype.trimEnd, Jr = !!Number.isSafeInteger, qr = Jr ? Number.isSafeInteger : function(e) {
|
|
2489
2493
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2490
|
-
},
|
|
2494
|
+
}, Ne = !0;
|
|
2491
2495
|
try {
|
|
2492
|
-
var
|
|
2493
|
-
|
|
2496
|
+
var Yr = Bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2497
|
+
Ne = ((_e = Yr.exec("a")) === null || _e === void 0 ? void 0 : _e[0]) === "a";
|
|
2494
2498
|
} catch {
|
|
2495
|
-
|
|
2499
|
+
Ne = !1;
|
|
2496
2500
|
}
|
|
2497
|
-
var
|
|
2501
|
+
var Ze = kr ? (
|
|
2498
2502
|
// Native
|
|
2499
2503
|
function(t, r, n) {
|
|
2500
2504
|
return t.startsWith(r, n);
|
|
@@ -2504,7 +2508,7 @@ var We = jr ? (
|
|
|
2504
2508
|
function(t, r, n) {
|
|
2505
2509
|
return t.slice(n, n + r.length) === r;
|
|
2506
2510
|
}
|
|
2507
|
-
),
|
|
2511
|
+
), we = Vr ? String.fromCodePoint : (
|
|
2508
2512
|
// IE11
|
|
2509
2513
|
function() {
|
|
2510
2514
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2518,7 +2522,7 @@ var We = jr ? (
|
|
|
2518
2522
|
}
|
|
2519
2523
|
), Qe = (
|
|
2520
2524
|
// native
|
|
2521
|
-
|
|
2525
|
+
Xr ? Object.fromEntries : (
|
|
2522
2526
|
// Ponyfill
|
|
2523
2527
|
function(t) {
|
|
2524
2528
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2528,7 +2532,7 @@ var We = jr ? (
|
|
|
2528
2532
|
return r;
|
|
2529
2533
|
}
|
|
2530
2534
|
)
|
|
2531
|
-
),
|
|
2535
|
+
), St = Wr ? (
|
|
2532
2536
|
// Native
|
|
2533
2537
|
function(t, r) {
|
|
2534
2538
|
return t.codePointAt(r);
|
|
@@ -2542,7 +2546,7 @@ var We = jr ? (
|
|
|
2542
2546
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2543
2547
|
}
|
|
2544
2548
|
}
|
|
2545
|
-
),
|
|
2549
|
+
), Kr = Zr ? (
|
|
2546
2550
|
// Native
|
|
2547
2551
|
function(t) {
|
|
2548
2552
|
return t.trimStart();
|
|
@@ -2550,9 +2554,9 @@ var We = jr ? (
|
|
|
2550
2554
|
) : (
|
|
2551
2555
|
// Ponyfill
|
|
2552
2556
|
function(t) {
|
|
2553
|
-
return t.replace(
|
|
2557
|
+
return t.replace(zr, "");
|
|
2554
2558
|
}
|
|
2555
|
-
),
|
|
2559
|
+
), en = Qr ? (
|
|
2556
2560
|
// Native
|
|
2557
2561
|
function(t) {
|
|
2558
2562
|
return t.trimEnd();
|
|
@@ -2560,32 +2564,32 @@ var We = jr ? (
|
|
|
2560
2564
|
) : (
|
|
2561
2565
|
// Ponyfill
|
|
2562
2566
|
function(t) {
|
|
2563
|
-
return t.replace(
|
|
2567
|
+
return t.replace(jr, "");
|
|
2564
2568
|
}
|
|
2565
2569
|
);
|
|
2566
|
-
function
|
|
2570
|
+
function Bt(e, t) {
|
|
2567
2571
|
return new RegExp(e, t);
|
|
2568
2572
|
}
|
|
2569
|
-
var
|
|
2570
|
-
if (
|
|
2571
|
-
var Je =
|
|
2572
|
-
|
|
2573
|
+
var Oe;
|
|
2574
|
+
if (Ne) {
|
|
2575
|
+
var Je = Bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2576
|
+
Oe = function(t, r) {
|
|
2573
2577
|
var n;
|
|
2574
2578
|
Je.lastIndex = r;
|
|
2575
2579
|
var i = Je.exec(t);
|
|
2576
2580
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2577
2581
|
};
|
|
2578
2582
|
} else
|
|
2579
|
-
|
|
2583
|
+
Oe = function(t, r) {
|
|
2580
2584
|
for (var n = []; ; ) {
|
|
2581
|
-
var i =
|
|
2582
|
-
if (i === void 0 || At(i) ||
|
|
2585
|
+
var i = St(t, r);
|
|
2586
|
+
if (i === void 0 || At(i) || sn(i))
|
|
2583
2587
|
break;
|
|
2584
2588
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2585
2589
|
}
|
|
2586
|
-
return
|
|
2590
|
+
return we.apply(void 0, n);
|
|
2587
2591
|
};
|
|
2588
|
-
var
|
|
2592
|
+
var tn = (
|
|
2589
2593
|
/** @class */
|
|
2590
2594
|
function() {
|
|
2591
2595
|
function e(t, r) {
|
|
@@ -2609,14 +2613,14 @@ var en = (
|
|
|
2609
2613
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2610
2614
|
var o = this.clonePosition();
|
|
2611
2615
|
this.bump(), i.push({
|
|
2612
|
-
type:
|
|
2616
|
+
type: g.pound,
|
|
2613
2617
|
location: b(o, this.clonePosition())
|
|
2614
2618
|
});
|
|
2615
2619
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2616
2620
|
if (n)
|
|
2617
2621
|
break;
|
|
2618
2622
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2619
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2623
|
+
} else if (s === 60 && !this.ignoreTag && Ie(this.peek() || 0)) {
|
|
2620
2624
|
var u = this.parseTag(t, r);
|
|
2621
2625
|
if (u.err)
|
|
2622
2626
|
return u;
|
|
@@ -2637,7 +2641,7 @@ var en = (
|
|
|
2637
2641
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2638
2642
|
return {
|
|
2639
2643
|
val: {
|
|
2640
|
-
type:
|
|
2644
|
+
type: g.literal,
|
|
2641
2645
|
value: "<".concat(i, "/>"),
|
|
2642
2646
|
location: b(n, this.clonePosition())
|
|
2643
2647
|
},
|
|
@@ -2649,12 +2653,12 @@ var en = (
|
|
|
2649
2653
|
return s;
|
|
2650
2654
|
var u = s.val, o = this.clonePosition();
|
|
2651
2655
|
if (this.bumpIf("</")) {
|
|
2652
|
-
if (this.isEOF() || !
|
|
2656
|
+
if (this.isEOF() || !Ie(this.char()))
|
|
2653
2657
|
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2654
2658
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2655
2659
|
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2656
2660
|
val: {
|
|
2657
|
-
type:
|
|
2661
|
+
type: g.tag,
|
|
2658
2662
|
value: i,
|
|
2659
2663
|
children: u,
|
|
2660
2664
|
location: b(n, this.clonePosition())
|
|
@@ -2667,7 +2671,7 @@ var en = (
|
|
|
2667
2671
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2668
2672
|
}, e.prototype.parseTagName = function() {
|
|
2669
2673
|
var t = this.offset();
|
|
2670
|
-
for (this.bump(); !this.isEOF() &&
|
|
2674
|
+
for (this.bump(); !this.isEOF() && nn(this.char()); )
|
|
2671
2675
|
this.bump();
|
|
2672
2676
|
return this.message.slice(t, this.offset());
|
|
2673
2677
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2691,12 +2695,12 @@ var en = (
|
|
|
2691
2695
|
}
|
|
2692
2696
|
var l = b(n, this.clonePosition());
|
|
2693
2697
|
return {
|
|
2694
|
-
val: { type:
|
|
2698
|
+
val: { type: g.literal, value: i, location: l },
|
|
2695
2699
|
err: null
|
|
2696
2700
|
};
|
|
2697
2701
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2698
2702
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2699
|
-
!
|
|
2703
|
+
!rn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2700
2704
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2701
2705
|
if (this.isEOF() || this.char() !== 39)
|
|
2702
2706
|
return null;
|
|
@@ -2730,12 +2734,12 @@ var en = (
|
|
|
2730
2734
|
r.push(n);
|
|
2731
2735
|
this.bump();
|
|
2732
2736
|
}
|
|
2733
|
-
return
|
|
2737
|
+
return we.apply(void 0, r);
|
|
2734
2738
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2735
2739
|
if (this.isEOF())
|
|
2736
2740
|
return null;
|
|
2737
2741
|
var n = this.char();
|
|
2738
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2742
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), we(n));
|
|
2739
2743
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2740
2744
|
var n = this.clonePosition();
|
|
2741
2745
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2751,7 +2755,7 @@ var en = (
|
|
|
2751
2755
|
case 125:
|
|
2752
2756
|
return this.bump(), {
|
|
2753
2757
|
val: {
|
|
2754
|
-
type:
|
|
2758
|
+
type: g.argument,
|
|
2755
2759
|
// value does not include the opening and closing braces.
|
|
2756
2760
|
value: i,
|
|
2757
2761
|
location: b(n, this.clonePosition())
|
|
@@ -2764,7 +2768,7 @@ var en = (
|
|
|
2764
2768
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2765
2769
|
}
|
|
2766
2770
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2767
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2771
|
+
var t = this.clonePosition(), r = this.offset(), n = Oe(this.message, r), i = r + n.length;
|
|
2768
2772
|
this.bumpTo(i);
|
|
2769
2773
|
var s = this.clonePosition(), u = b(t, s);
|
|
2770
2774
|
return { value: n, location: u };
|
|
@@ -2783,46 +2787,46 @@ var en = (
|
|
|
2783
2787
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2784
2788
|
if (f.err)
|
|
2785
2789
|
return f;
|
|
2786
|
-
var c =
|
|
2790
|
+
var c = en(f.val);
|
|
2787
2791
|
if (c.length === 0)
|
|
2788
2792
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2789
|
-
var
|
|
2790
|
-
a = { style: c, styleLocation:
|
|
2793
|
+
var m = b(h, this.clonePosition());
|
|
2794
|
+
a = { style: c, styleLocation: m };
|
|
2791
2795
|
}
|
|
2792
|
-
var
|
|
2793
|
-
if (
|
|
2794
|
-
return
|
|
2795
|
-
var
|
|
2796
|
-
if (a &&
|
|
2797
|
-
var H =
|
|
2796
|
+
var p = this.tryParseArgumentClose(i);
|
|
2797
|
+
if (p.err)
|
|
2798
|
+
return p;
|
|
2799
|
+
var y = b(i, this.clonePosition());
|
|
2800
|
+
if (a && Ze(a?.style, "::", 0)) {
|
|
2801
|
+
var H = Kr(a.style.slice(2));
|
|
2798
2802
|
if (o === "number") {
|
|
2799
2803
|
var f = this.parseNumberSkeletonFromString(H, a.styleLocation);
|
|
2800
2804
|
return f.err ? f : {
|
|
2801
|
-
val: { type:
|
|
2805
|
+
val: { type: g.number, value: n, location: y, style: f.val },
|
|
2802
2806
|
err: null
|
|
2803
2807
|
};
|
|
2804
2808
|
} else {
|
|
2805
2809
|
if (H.length === 0)
|
|
2806
|
-
return this.error(d.EXPECT_DATE_TIME_SKELETON,
|
|
2807
|
-
var
|
|
2808
|
-
this.locale && (
|
|
2810
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, y);
|
|
2811
|
+
var V = H;
|
|
2812
|
+
this.locale && (V = Gr(H, this.locale));
|
|
2809
2813
|
var c = {
|
|
2810
|
-
type:
|
|
2811
|
-
pattern:
|
|
2814
|
+
type: D.dateTime,
|
|
2815
|
+
pattern: V,
|
|
2812
2816
|
location: a.styleLocation,
|
|
2813
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2814
|
-
},
|
|
2817
|
+
parsedOptions: this.shouldParseSkeletons ? Lr(V) : {}
|
|
2818
|
+
}, L = o === "date" ? g.date : g.time;
|
|
2815
2819
|
return {
|
|
2816
|
-
val: { type:
|
|
2820
|
+
val: { type: L, value: n, location: y, style: c },
|
|
2817
2821
|
err: null
|
|
2818
2822
|
};
|
|
2819
2823
|
}
|
|
2820
2824
|
}
|
|
2821
2825
|
return {
|
|
2822
2826
|
val: {
|
|
2823
|
-
type: o === "number" ?
|
|
2827
|
+
type: o === "number" ? g.number : o === "date" ? g.date : g.time,
|
|
2824
2828
|
value: n,
|
|
2825
|
-
location:
|
|
2829
|
+
location: y,
|
|
2826
2830
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2827
2831
|
},
|
|
2828
2832
|
err: null
|
|
@@ -2831,41 +2835,41 @@ var en = (
|
|
|
2831
2835
|
case "plural":
|
|
2832
2836
|
case "selectordinal":
|
|
2833
2837
|
case "select": {
|
|
2834
|
-
var
|
|
2838
|
+
var S = this.clonePosition();
|
|
2835
2839
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2836
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2840
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, he({}, S)));
|
|
2837
2841
|
this.bumpSpace();
|
|
2838
|
-
var
|
|
2839
|
-
if (o !== "select" &&
|
|
2842
|
+
var X = this.parseIdentifierIfPossible(), N = 0;
|
|
2843
|
+
if (o !== "select" && X.value === "offset") {
|
|
2840
2844
|
if (!this.bumpIf(":"))
|
|
2841
2845
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2842
2846
|
this.bumpSpace();
|
|
2843
2847
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2844
2848
|
if (f.err)
|
|
2845
2849
|
return f;
|
|
2846
|
-
this.bumpSpace(),
|
|
2850
|
+
this.bumpSpace(), X = this.parseIdentifierIfPossible(), N = f.val;
|
|
2847
2851
|
}
|
|
2848
|
-
var
|
|
2849
|
-
if (
|
|
2850
|
-
return
|
|
2851
|
-
var
|
|
2852
|
-
if (
|
|
2853
|
-
return
|
|
2852
|
+
var ne = this.tryParsePluralOrSelectOptions(t, o, r, X);
|
|
2853
|
+
if (ne.err)
|
|
2854
|
+
return ne;
|
|
2855
|
+
var p = this.tryParseArgumentClose(i);
|
|
2856
|
+
if (p.err)
|
|
2857
|
+
return p;
|
|
2854
2858
|
var De = b(i, this.clonePosition());
|
|
2855
2859
|
return o === "select" ? {
|
|
2856
2860
|
val: {
|
|
2857
|
-
type:
|
|
2861
|
+
type: g.select,
|
|
2858
2862
|
value: n,
|
|
2859
|
-
options: Qe(
|
|
2863
|
+
options: Qe(ne.val),
|
|
2860
2864
|
location: De
|
|
2861
2865
|
},
|
|
2862
2866
|
err: null
|
|
2863
2867
|
} : {
|
|
2864
2868
|
val: {
|
|
2865
|
-
type:
|
|
2869
|
+
type: g.plural,
|
|
2866
2870
|
value: n,
|
|
2867
|
-
options: Qe(
|
|
2868
|
-
offset:
|
|
2871
|
+
options: Qe(ne.val),
|
|
2872
|
+
offset: N,
|
|
2869
2873
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2870
2874
|
location: De
|
|
2871
2875
|
},
|
|
@@ -2915,16 +2919,16 @@ var en = (
|
|
|
2915
2919
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2916
2920
|
var n = [];
|
|
2917
2921
|
try {
|
|
2918
|
-
n =
|
|
2922
|
+
n = Mr(t);
|
|
2919
2923
|
} catch {
|
|
2920
2924
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2921
2925
|
}
|
|
2922
2926
|
return {
|
|
2923
2927
|
val: {
|
|
2924
|
-
type:
|
|
2928
|
+
type: D.number,
|
|
2925
2929
|
tokens: n,
|
|
2926
2930
|
location: r,
|
|
2927
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2931
|
+
parsedOptions: this.shouldParseSkeletons ? Dr(n) : {}
|
|
2928
2932
|
},
|
|
2929
2933
|
err: null
|
|
2930
2934
|
};
|
|
@@ -2943,20 +2947,20 @@ var en = (
|
|
|
2943
2947
|
if (l.has(a))
|
|
2944
2948
|
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2945
2949
|
a === "other" && (u = !0), this.bumpSpace();
|
|
2946
|
-
var
|
|
2950
|
+
var m = this.clonePosition();
|
|
2947
2951
|
if (!this.bumpIf("{"))
|
|
2948
2952
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2949
|
-
var
|
|
2950
|
-
if (
|
|
2951
|
-
return
|
|
2952
|
-
var
|
|
2953
|
-
if (
|
|
2954
|
-
return
|
|
2953
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
2954
|
+
if (p.err)
|
|
2955
|
+
return p;
|
|
2956
|
+
var y = this.tryParseArgumentClose(m);
|
|
2957
|
+
if (y.err)
|
|
2958
|
+
return y;
|
|
2955
2959
|
o.push([
|
|
2956
2960
|
a,
|
|
2957
2961
|
{
|
|
2958
|
-
value:
|
|
2959
|
-
location: b(
|
|
2962
|
+
value: p.val,
|
|
2963
|
+
location: b(m, this.clonePosition())
|
|
2960
2964
|
}
|
|
2961
2965
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
2962
2966
|
}
|
|
@@ -2972,7 +2976,7 @@ var en = (
|
|
|
2972
2976
|
break;
|
|
2973
2977
|
}
|
|
2974
2978
|
var l = b(i, this.clonePosition());
|
|
2975
|
-
return s ? (u *= n,
|
|
2979
|
+
return s ? (u *= n, qr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2976
2980
|
}, e.prototype.offset = function() {
|
|
2977
2981
|
return this.position.offset;
|
|
2978
2982
|
}, e.prototype.isEOF = function() {
|
|
@@ -2987,7 +2991,7 @@ var en = (
|
|
|
2987
2991
|
var t = this.position.offset;
|
|
2988
2992
|
if (t >= this.message.length)
|
|
2989
2993
|
throw Error("out of bound");
|
|
2990
|
-
var r =
|
|
2994
|
+
var r = St(this.message, t);
|
|
2991
2995
|
if (r === void 0)
|
|
2992
2996
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2993
2997
|
return r;
|
|
@@ -3006,7 +3010,7 @@ var en = (
|
|
|
3006
3010
|
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);
|
|
3007
3011
|
}
|
|
3008
3012
|
}, e.prototype.bumpIf = function(t) {
|
|
3009
|
-
if (
|
|
3013
|
+
if (Ze(this.message, t, this.offset())) {
|
|
3010
3014
|
for (var r = 0; r < t.length; r++)
|
|
3011
3015
|
this.bump();
|
|
3012
3016
|
return !0;
|
|
@@ -3038,47 +3042,47 @@ var en = (
|
|
|
3038
3042
|
}, e;
|
|
3039
3043
|
}()
|
|
3040
3044
|
);
|
|
3041
|
-
function
|
|
3045
|
+
function Ie(e) {
|
|
3042
3046
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3043
3047
|
}
|
|
3044
|
-
function tn(e) {
|
|
3045
|
-
return we(e) || e === 47;
|
|
3046
|
-
}
|
|
3047
3048
|
function rn(e) {
|
|
3049
|
+
return Ie(e) || e === 47;
|
|
3050
|
+
}
|
|
3051
|
+
function nn(e) {
|
|
3048
3052
|
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;
|
|
3049
3053
|
}
|
|
3050
3054
|
function At(e) {
|
|
3051
3055
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3052
3056
|
}
|
|
3053
|
-
function
|
|
3057
|
+
function sn(e) {
|
|
3054
3058
|
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;
|
|
3055
3059
|
}
|
|
3056
|
-
function
|
|
3060
|
+
function Le(e) {
|
|
3057
3061
|
e.forEach(function(t) {
|
|
3058
|
-
if (delete t.location, Et(t) ||
|
|
3062
|
+
if (delete t.location, Et(t) || yt(t))
|
|
3059
3063
|
for (var r in t.options)
|
|
3060
|
-
delete t.options[r].location,
|
|
3064
|
+
delete t.options[r].location, Le(t.options[r].value);
|
|
3061
3065
|
else
|
|
3062
|
-
dt(t) && _t(t.style) || (bt(t) || gt(t)) &&
|
|
3066
|
+
dt(t) && _t(t.style) || (bt(t) || gt(t)) && Ae(t.style) ? delete t.style.location : xt(t) && Le(t.children);
|
|
3063
3067
|
});
|
|
3064
3068
|
}
|
|
3065
|
-
function
|
|
3066
|
-
t === void 0 && (t = {}), t =
|
|
3067
|
-
var r = new
|
|
3069
|
+
function on(e, t) {
|
|
3070
|
+
t === void 0 && (t = {}), t = he({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3071
|
+
var r = new tn(e, t).parse();
|
|
3068
3072
|
if (r.err) {
|
|
3069
3073
|
var n = SyntaxError(d[r.err.kind]);
|
|
3070
3074
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3071
3075
|
}
|
|
3072
|
-
return t?.captureLocation ||
|
|
3076
|
+
return t?.captureLocation || Le(r.val), r.val;
|
|
3073
3077
|
}
|
|
3074
|
-
var
|
|
3078
|
+
var G;
|
|
3075
3079
|
(function(e) {
|
|
3076
3080
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3077
|
-
})(
|
|
3078
|
-
var
|
|
3081
|
+
})(G || (G = {}));
|
|
3082
|
+
var me = (
|
|
3079
3083
|
/** @class */
|
|
3080
3084
|
function(e) {
|
|
3081
|
-
|
|
3085
|
+
pe(t, e);
|
|
3082
3086
|
function t(r, n, i) {
|
|
3083
3087
|
var s = e.call(this, r) || this;
|
|
3084
3088
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3090,44 +3094,44 @@ var ce = (
|
|
|
3090
3094
|
), qe = (
|
|
3091
3095
|
/** @class */
|
|
3092
3096
|
function(e) {
|
|
3093
|
-
|
|
3097
|
+
pe(t, e);
|
|
3094
3098
|
function t(r, n, i, s) {
|
|
3095
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3099
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), G.INVALID_VALUE, s) || this;
|
|
3096
3100
|
}
|
|
3097
3101
|
return t;
|
|
3098
|
-
}(
|
|
3099
|
-
),
|
|
3102
|
+
}(me)
|
|
3103
|
+
), an = (
|
|
3100
3104
|
/** @class */
|
|
3101
3105
|
function(e) {
|
|
3102
|
-
|
|
3106
|
+
pe(t, e);
|
|
3103
3107
|
function t(r, n, i) {
|
|
3104
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3108
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), G.INVALID_VALUE, i) || this;
|
|
3105
3109
|
}
|
|
3106
3110
|
return t;
|
|
3107
|
-
}(
|
|
3108
|
-
),
|
|
3111
|
+
}(me)
|
|
3112
|
+
), un = (
|
|
3109
3113
|
/** @class */
|
|
3110
3114
|
function(e) {
|
|
3111
|
-
|
|
3115
|
+
pe(t, e);
|
|
3112
3116
|
function t(r, n) {
|
|
3113
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3117
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), G.MISSING_VALUE, n) || this;
|
|
3114
3118
|
}
|
|
3115
3119
|
return t;
|
|
3116
|
-
}(
|
|
3120
|
+
}(me)
|
|
3117
3121
|
), v;
|
|
3118
3122
|
(function(e) {
|
|
3119
3123
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3120
3124
|
})(v || (v = {}));
|
|
3121
|
-
function
|
|
3125
|
+
function hn(e) {
|
|
3122
3126
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3123
3127
|
var n = t[t.length - 1];
|
|
3124
3128
|
return !n || n.type !== v.literal || r.type !== v.literal ? t.push(r) : n.value += r.value, t;
|
|
3125
3129
|
}, []);
|
|
3126
3130
|
}
|
|
3127
|
-
function
|
|
3131
|
+
function ln(e) {
|
|
3128
3132
|
return typeof e == "function";
|
|
3129
3133
|
}
|
|
3130
|
-
function
|
|
3134
|
+
function oe(e, t, r, n, i, s, u) {
|
|
3131
3135
|
if (e.length === 1 && ke(e[0]))
|
|
3132
3136
|
return [
|
|
3133
3137
|
{
|
|
@@ -3144,7 +3148,7 @@ function se(e, t, r, n, i, s, u) {
|
|
|
3144
3148
|
});
|
|
3145
3149
|
continue;
|
|
3146
3150
|
}
|
|
3147
|
-
if (
|
|
3151
|
+
if (Or(h)) {
|
|
3148
3152
|
typeof s == "number" && o.push({
|
|
3149
3153
|
type: v.literal,
|
|
3150
3154
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3153,9 +3157,9 @@ function se(e, t, r, n, i, s, u) {
|
|
|
3153
3157
|
}
|
|
3154
3158
|
var f = h.value;
|
|
3155
3159
|
if (!(i && f in i))
|
|
3156
|
-
throw new
|
|
3160
|
+
throw new un(f, u);
|
|
3157
3161
|
var c = i[f];
|
|
3158
|
-
if (
|
|
3162
|
+
if (wr(h)) {
|
|
3159
3163
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3160
3164
|
type: typeof c == "string" ? v.literal : v.object,
|
|
3161
3165
|
value: c
|
|
@@ -3163,79 +3167,79 @@ function se(e, t, r, n, i, s, u) {
|
|
|
3163
3167
|
continue;
|
|
3164
3168
|
}
|
|
3165
3169
|
if (bt(h)) {
|
|
3166
|
-
var
|
|
3170
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ae(h.style) ? h.style.parsedOptions : void 0;
|
|
3167
3171
|
o.push({
|
|
3168
3172
|
type: v.literal,
|
|
3169
|
-
value: r.getDateTimeFormat(t,
|
|
3173
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3170
3174
|
});
|
|
3171
3175
|
continue;
|
|
3172
3176
|
}
|
|
3173
3177
|
if (gt(h)) {
|
|
3174
|
-
var
|
|
3178
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ae(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3175
3179
|
o.push({
|
|
3176
3180
|
type: v.literal,
|
|
3177
|
-
value: r.getDateTimeFormat(t,
|
|
3181
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3178
3182
|
});
|
|
3179
3183
|
continue;
|
|
3180
3184
|
}
|
|
3181
3185
|
if (dt(h)) {
|
|
3182
|
-
var
|
|
3183
|
-
|
|
3186
|
+
var m = typeof h.style == "string" ? n.number[h.style] : _t(h.style) ? h.style.parsedOptions : void 0;
|
|
3187
|
+
m && m.scale && (c = c * (m.scale || 1)), o.push({
|
|
3184
3188
|
type: v.literal,
|
|
3185
|
-
value: r.getNumberFormat(t,
|
|
3189
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3186
3190
|
});
|
|
3187
3191
|
continue;
|
|
3188
3192
|
}
|
|
3189
|
-
if (
|
|
3190
|
-
var
|
|
3191
|
-
if (!
|
|
3192
|
-
throw new
|
|
3193
|
-
var
|
|
3194
|
-
return
|
|
3193
|
+
if (xt(h)) {
|
|
3194
|
+
var p = h.children, y = h.value, H = i[y];
|
|
3195
|
+
if (!ln(H))
|
|
3196
|
+
throw new an(y, "function", u);
|
|
3197
|
+
var V = oe(p, t, r, n, i, s), L = H(V.map(function(N) {
|
|
3198
|
+
return N.value;
|
|
3195
3199
|
}));
|
|
3196
|
-
Array.isArray(
|
|
3200
|
+
Array.isArray(L) || (L = [L]), o.push.apply(o, L.map(function(N) {
|
|
3197
3201
|
return {
|
|
3198
|
-
type: typeof
|
|
3199
|
-
value:
|
|
3202
|
+
type: typeof N == "string" ? v.literal : v.object,
|
|
3203
|
+
value: N
|
|
3200
3204
|
};
|
|
3201
3205
|
}));
|
|
3202
3206
|
}
|
|
3203
3207
|
if (Et(h)) {
|
|
3204
|
-
var
|
|
3205
|
-
if (!
|
|
3208
|
+
var S = h.options[c] || h.options.other;
|
|
3209
|
+
if (!S)
|
|
3206
3210
|
throw new qe(h.value, c, Object.keys(h.options), u);
|
|
3207
|
-
o.push.apply(o,
|
|
3211
|
+
o.push.apply(o, oe(S.value, t, r, n, i));
|
|
3208
3212
|
continue;
|
|
3209
3213
|
}
|
|
3210
|
-
if (
|
|
3211
|
-
var
|
|
3212
|
-
if (!
|
|
3214
|
+
if (yt(h)) {
|
|
3215
|
+
var S = h.options["=".concat(c)];
|
|
3216
|
+
if (!S) {
|
|
3213
3217
|
if (!Intl.PluralRules)
|
|
3214
|
-
throw new
|
|
3218
|
+
throw new me(`Intl.PluralRules is not available in this environment.
|
|
3215
3219
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3216
|
-
`,
|
|
3217
|
-
var
|
|
3218
|
-
|
|
3220
|
+
`, G.MISSING_INTL_API, u);
|
|
3221
|
+
var X = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3222
|
+
S = h.options[X] || h.options.other;
|
|
3219
3223
|
}
|
|
3220
|
-
if (!
|
|
3224
|
+
if (!S)
|
|
3221
3225
|
throw new qe(h.value, c, Object.keys(h.options), u);
|
|
3222
|
-
o.push.apply(o,
|
|
3226
|
+
o.push.apply(o, oe(S.value, t, r, n, i, c - (h.offset || 0)));
|
|
3223
3227
|
continue;
|
|
3224
3228
|
}
|
|
3225
3229
|
}
|
|
3226
|
-
return
|
|
3230
|
+
return hn(o);
|
|
3227
3231
|
}
|
|
3228
|
-
function
|
|
3229
|
-
return t ?
|
|
3230
|
-
return r[n] =
|
|
3232
|
+
function fn(e, t) {
|
|
3233
|
+
return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3234
|
+
return r[n] = B(B({}, e[n]), t[n] || {}), r;
|
|
3231
3235
|
}, {})) : e;
|
|
3232
3236
|
}
|
|
3233
|
-
function
|
|
3237
|
+
function cn(e, t) {
|
|
3234
3238
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3235
|
-
return r[n] =
|
|
3236
|
-
},
|
|
3239
|
+
return r[n] = fn(e[n], t[n]), r;
|
|
3240
|
+
}, B({}, e)) : e;
|
|
3237
3241
|
}
|
|
3238
|
-
function
|
|
3242
|
+
function ve(e) {
|
|
3239
3243
|
return {
|
|
3240
3244
|
create: function() {
|
|
3241
3245
|
return {
|
|
@@ -3249,35 +3253,35 @@ function ye(e) {
|
|
|
3249
3253
|
}
|
|
3250
3254
|
};
|
|
3251
3255
|
}
|
|
3252
|
-
function
|
|
3256
|
+
function pn(e) {
|
|
3253
3257
|
return e === void 0 && (e = {
|
|
3254
3258
|
number: {},
|
|
3255
3259
|
dateTime: {},
|
|
3256
3260
|
pluralRules: {}
|
|
3257
3261
|
}), {
|
|
3258
|
-
getNumberFormat:
|
|
3262
|
+
getNumberFormat: ye(function() {
|
|
3259
3263
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3260
3264
|
r[n] = arguments[n];
|
|
3261
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3265
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3262
3266
|
}, {
|
|
3263
|
-
cache:
|
|
3264
|
-
strategy:
|
|
3267
|
+
cache: ve(e.number),
|
|
3268
|
+
strategy: xe.variadic
|
|
3265
3269
|
}),
|
|
3266
|
-
getDateTimeFormat:
|
|
3270
|
+
getDateTimeFormat: ye(function() {
|
|
3267
3271
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3268
3272
|
r[n] = arguments[n];
|
|
3269
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3273
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3270
3274
|
}, {
|
|
3271
|
-
cache:
|
|
3272
|
-
strategy:
|
|
3275
|
+
cache: ve(e.dateTime),
|
|
3276
|
+
strategy: xe.variadic
|
|
3273
3277
|
}),
|
|
3274
|
-
getPluralRules:
|
|
3278
|
+
getPluralRules: ye(function() {
|
|
3275
3279
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3276
3280
|
r[n] = arguments[n];
|
|
3277
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3281
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3278
3282
|
}, {
|
|
3279
|
-
cache:
|
|
3280
|
-
strategy:
|
|
3283
|
+
cache: ve(e.pluralRules),
|
|
3284
|
+
strategy: xe.variadic
|
|
3281
3285
|
})
|
|
3282
3286
|
};
|
|
3283
3287
|
}
|
|
@@ -3300,7 +3304,7 @@ var mn = (
|
|
|
3300
3304
|
}, []);
|
|
3301
3305
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3302
3306
|
}, this.formatToParts = function(l) {
|
|
3303
|
-
return
|
|
3307
|
+
return oe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3304
3308
|
}, this.resolvedOptions = function() {
|
|
3305
3309
|
var l;
|
|
3306
3310
|
return {
|
|
@@ -3314,12 +3318,12 @@ var mn = (
|
|
|
3314
3318
|
var u = i || {};
|
|
3315
3319
|
u.formatters;
|
|
3316
3320
|
var o = vr(u, ["formatters"]);
|
|
3317
|
-
this.ast = e.__parse(t,
|
|
3321
|
+
this.ast = e.__parse(t, B(B({}, o), { locale: this.resolvedLocale }));
|
|
3318
3322
|
} else
|
|
3319
3323
|
this.ast = t;
|
|
3320
3324
|
if (!Array.isArray(this.ast))
|
|
3321
3325
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3322
|
-
this.formats =
|
|
3326
|
+
this.formats = cn(e.formats, n), this.formatters = i && i.formatters || pn(this.formatterCache);
|
|
3323
3327
|
}
|
|
3324
3328
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3325
3329
|
get: function() {
|
|
@@ -3332,7 +3336,7 @@ var mn = (
|
|
|
3332
3336
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3333
3337
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3334
3338
|
}
|
|
3335
|
-
}, e.__parse =
|
|
3339
|
+
}, e.__parse = on, e.formats = {
|
|
3336
3340
|
number: {
|
|
3337
3341
|
integer: {
|
|
3338
3342
|
maximumFractionDigits: 0
|
|
@@ -3393,7 +3397,7 @@ var mn = (
|
|
|
3393
3397
|
}, e;
|
|
3394
3398
|
}()
|
|
3395
3399
|
);
|
|
3396
|
-
function
|
|
3400
|
+
function dn(e, t) {
|
|
3397
3401
|
if (t == null)
|
|
3398
3402
|
return;
|
|
3399
3403
|
if (t in e)
|
|
@@ -3414,36 +3418,36 @@ function pn(e, t) {
|
|
|
3414
3418
|
n = void 0;
|
|
3415
3419
|
return n;
|
|
3416
3420
|
}
|
|
3417
|
-
const
|
|
3421
|
+
const A = {}, bn = (e, t, r) => r && (t in A || (A[t] = {}), e in A[t] || (A[t][e] = r), r), Nt = (e, t) => {
|
|
3418
3422
|
if (t == null)
|
|
3419
3423
|
return;
|
|
3420
|
-
if (t in
|
|
3421
|
-
return
|
|
3422
|
-
const r =
|
|
3424
|
+
if (t in A && e in A[t])
|
|
3425
|
+
return A[t][e];
|
|
3426
|
+
const r = de(t);
|
|
3423
3427
|
for (let n = 0; n < r.length; n++) {
|
|
3424
|
-
const i = r[n], s =
|
|
3428
|
+
const i = r[n], s = En(i, e);
|
|
3425
3429
|
if (s)
|
|
3426
|
-
return
|
|
3430
|
+
return bn(e, t, s);
|
|
3427
3431
|
}
|
|
3428
3432
|
};
|
|
3429
3433
|
let Re;
|
|
3430
|
-
const
|
|
3431
|
-
function
|
|
3434
|
+
const te = ce({});
|
|
3435
|
+
function gn(e) {
|
|
3432
3436
|
return Re[e] || null;
|
|
3433
3437
|
}
|
|
3434
3438
|
function wt(e) {
|
|
3435
3439
|
return e in Re;
|
|
3436
3440
|
}
|
|
3437
|
-
function
|
|
3441
|
+
function En(e, t) {
|
|
3438
3442
|
if (!wt(e))
|
|
3439
3443
|
return null;
|
|
3440
|
-
const r =
|
|
3441
|
-
return
|
|
3444
|
+
const r = gn(e);
|
|
3445
|
+
return dn(r, t);
|
|
3442
3446
|
}
|
|
3443
|
-
function
|
|
3447
|
+
function yn(e) {
|
|
3444
3448
|
if (e == null)
|
|
3445
3449
|
return;
|
|
3446
|
-
const t =
|
|
3450
|
+
const t = de(e);
|
|
3447
3451
|
for (let r = 0; r < t.length; r++) {
|
|
3448
3452
|
const n = t[r];
|
|
3449
3453
|
if (wt(n))
|
|
@@ -3451,55 +3455,55 @@ function En(e) {
|
|
|
3451
3455
|
}
|
|
3452
3456
|
}
|
|
3453
3457
|
function Ot(e, ...t) {
|
|
3454
|
-
delete
|
|
3458
|
+
delete A[e], te.update((r) => (r[e] = _r.all([r[e] || {}, ...t]), r));
|
|
3455
3459
|
}
|
|
3456
|
-
|
|
3457
|
-
[
|
|
3460
|
+
j(
|
|
3461
|
+
[te],
|
|
3458
3462
|
([e]) => Object.keys(e)
|
|
3459
3463
|
);
|
|
3460
|
-
|
|
3461
|
-
const
|
|
3464
|
+
te.subscribe((e) => Re = e);
|
|
3465
|
+
const ae = {};
|
|
3462
3466
|
function xn(e, t) {
|
|
3463
|
-
|
|
3467
|
+
ae[e].delete(t), ae[e].size === 0 && delete ae[e];
|
|
3464
3468
|
}
|
|
3465
3469
|
function It(e) {
|
|
3466
|
-
return
|
|
3470
|
+
return ae[e];
|
|
3467
3471
|
}
|
|
3468
|
-
function
|
|
3469
|
-
return
|
|
3472
|
+
function _n(e) {
|
|
3473
|
+
return de(e).map((t) => {
|
|
3470
3474
|
const r = It(t);
|
|
3471
3475
|
return [t, r ? [...r] : []];
|
|
3472
3476
|
}).filter(([, t]) => t.length > 0);
|
|
3473
3477
|
}
|
|
3474
|
-
function
|
|
3475
|
-
return e == null ? !1 :
|
|
3478
|
+
function $e(e) {
|
|
3479
|
+
return e == null ? !1 : de(e).some(
|
|
3476
3480
|
(t) => {
|
|
3477
3481
|
var r;
|
|
3478
3482
|
return (r = It(t)) == null ? void 0 : r.size;
|
|
3479
3483
|
}
|
|
3480
3484
|
);
|
|
3481
3485
|
}
|
|
3482
|
-
function
|
|
3486
|
+
function vn(e, t) {
|
|
3483
3487
|
return Promise.all(
|
|
3484
3488
|
t.map((n) => (xn(e, n), n().then((i) => i.default || i)))
|
|
3485
3489
|
).then((n) => Ot(e, ...n));
|
|
3486
3490
|
}
|
|
3487
|
-
const
|
|
3491
|
+
const W = {};
|
|
3488
3492
|
function Lt(e) {
|
|
3489
|
-
if (
|
|
3490
|
-
return e in
|
|
3491
|
-
const t =
|
|
3492
|
-
return
|
|
3493
|
+
if (!$e(e))
|
|
3494
|
+
return e in W ? W[e] : Promise.resolve();
|
|
3495
|
+
const t = _n(e);
|
|
3496
|
+
return W[e] = Promise.all(
|
|
3493
3497
|
t.map(
|
|
3494
|
-
([r, n]) =>
|
|
3498
|
+
([r, n]) => vn(r, n)
|
|
3495
3499
|
)
|
|
3496
3500
|
).then(() => {
|
|
3497
|
-
if (
|
|
3501
|
+
if ($e(e))
|
|
3498
3502
|
return Lt(e);
|
|
3499
|
-
delete
|
|
3500
|
-
}),
|
|
3503
|
+
delete W[e];
|
|
3504
|
+
}), W[e];
|
|
3501
3505
|
}
|
|
3502
|
-
const
|
|
3506
|
+
const Hn = {
|
|
3503
3507
|
number: {
|
|
3504
3508
|
scientific: { notation: "scientific" },
|
|
3505
3509
|
engineering: { notation: "engineering" },
|
|
@@ -3528,141 +3532,141 @@ const vn = {
|
|
|
3528
3532
|
timeZoneName: "short"
|
|
3529
3533
|
}
|
|
3530
3534
|
}
|
|
3531
|
-
},
|
|
3535
|
+
}, Tn = {
|
|
3532
3536
|
fallbackLocale: null,
|
|
3533
3537
|
loadingDelay: 200,
|
|
3534
|
-
formats:
|
|
3538
|
+
formats: Hn,
|
|
3535
3539
|
warnOnMissingMessages: !0,
|
|
3536
3540
|
handleMissingMessage: void 0,
|
|
3537
3541
|
ignoreTag: !0
|
|
3538
|
-
},
|
|
3539
|
-
function
|
|
3540
|
-
return
|
|
3542
|
+
}, Pn = Tn;
|
|
3543
|
+
function F() {
|
|
3544
|
+
return Pn;
|
|
3541
3545
|
}
|
|
3542
|
-
const
|
|
3543
|
-
var
|
|
3546
|
+
const He = ce(!1);
|
|
3547
|
+
var Sn = Object.defineProperty, Bn = Object.defineProperties, An = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Nn = Object.prototype.hasOwnProperty, wn = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, On = (e, t) => {
|
|
3544
3548
|
for (var r in t || (t = {}))
|
|
3545
|
-
|
|
3549
|
+
Nn.call(t, r) && Ke(e, r, t[r]);
|
|
3546
3550
|
if (Ye)
|
|
3547
3551
|
for (var r of Ye(t))
|
|
3548
|
-
|
|
3552
|
+
wn.call(t, r) && Ke(e, r, t[r]);
|
|
3549
3553
|
return e;
|
|
3550
|
-
},
|
|
3551
|
-
let
|
|
3552
|
-
const
|
|
3554
|
+
}, In = (e, t) => Bn(e, An(t));
|
|
3555
|
+
let Me;
|
|
3556
|
+
const le = ce(null);
|
|
3553
3557
|
function et(e) {
|
|
3554
3558
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3555
3559
|
}
|
|
3556
|
-
function
|
|
3560
|
+
function de(e, t = F().fallbackLocale) {
|
|
3557
3561
|
const r = et(e);
|
|
3558
3562
|
return t ? [.../* @__PURE__ */ new Set([...r, ...et(t)])] : r;
|
|
3559
3563
|
}
|
|
3560
|
-
function
|
|
3561
|
-
return
|
|
3564
|
+
function I() {
|
|
3565
|
+
return Me ?? void 0;
|
|
3562
3566
|
}
|
|
3563
|
-
|
|
3564
|
-
|
|
3567
|
+
le.subscribe((e) => {
|
|
3568
|
+
Me = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3565
3569
|
});
|
|
3566
|
-
const
|
|
3567
|
-
if (e &&
|
|
3568
|
-
const { loadingDelay: t } =
|
|
3570
|
+
const Ln = (e) => {
|
|
3571
|
+
if (e && yn(e) && $e(e)) {
|
|
3572
|
+
const { loadingDelay: t } = F();
|
|
3569
3573
|
let r;
|
|
3570
|
-
return typeof window < "u" &&
|
|
3571
|
-
() =>
|
|
3574
|
+
return typeof window < "u" && I() != null && t ? r = window.setTimeout(
|
|
3575
|
+
() => He.set(!0),
|
|
3572
3576
|
t
|
|
3573
|
-
) :
|
|
3574
|
-
|
|
3577
|
+
) : He.set(!0), Lt(e).then(() => {
|
|
3578
|
+
le.set(e);
|
|
3575
3579
|
}).finally(() => {
|
|
3576
|
-
clearTimeout(r),
|
|
3580
|
+
clearTimeout(r), He.set(!1);
|
|
3577
3581
|
});
|
|
3578
3582
|
}
|
|
3579
|
-
return
|
|
3580
|
-
},
|
|
3581
|
-
set:
|
|
3582
|
-
}),
|
|
3583
|
+
return le.set(e);
|
|
3584
|
+
}, re = In(On({}, le), {
|
|
3585
|
+
set: Ln
|
|
3586
|
+
}), be = (e) => {
|
|
3583
3587
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3584
3588
|
return (n) => {
|
|
3585
3589
|
const i = JSON.stringify(n);
|
|
3586
3590
|
return i in t ? t[i] : t[i] = e(n);
|
|
3587
3591
|
};
|
|
3588
3592
|
};
|
|
3589
|
-
var
|
|
3593
|
+
var $n = Object.defineProperty, fe = Object.getOwnPropertySymbols, $t = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, tt = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t) => {
|
|
3590
3594
|
for (var r in t || (t = {}))
|
|
3591
3595
|
$t.call(t, r) && tt(e, r, t[r]);
|
|
3592
|
-
if (
|
|
3593
|
-
for (var r of
|
|
3596
|
+
if (fe)
|
|
3597
|
+
for (var r of fe(t))
|
|
3594
3598
|
Mt.call(t, r) && tt(e, r, t[r]);
|
|
3595
3599
|
return e;
|
|
3596
|
-
},
|
|
3600
|
+
}, k = (e, t) => {
|
|
3597
3601
|
var r = {};
|
|
3598
3602
|
for (var n in e)
|
|
3599
3603
|
$t.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3600
|
-
if (e != null &&
|
|
3601
|
-
for (var n of
|
|
3604
|
+
if (e != null && fe)
|
|
3605
|
+
for (var n of fe(e))
|
|
3602
3606
|
t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
|
|
3603
3607
|
return r;
|
|
3604
3608
|
};
|
|
3605
|
-
const
|
|
3606
|
-
const { formats: r } =
|
|
3609
|
+
const Y = (e, t) => {
|
|
3610
|
+
const { formats: r } = F();
|
|
3607
3611
|
if (e in r && t in r[e])
|
|
3608
3612
|
return r[e][t];
|
|
3609
3613
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3610
|
-
},
|
|
3614
|
+
}, Mn = be(
|
|
3611
3615
|
(e) => {
|
|
3612
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3616
|
+
var t = e, { locale: r, format: n } = t, i = k(t, ["locale", "format"]);
|
|
3613
3617
|
if (r == null)
|
|
3614
3618
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3615
|
-
return n && (i =
|
|
3619
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
|
3616
3620
|
}
|
|
3617
|
-
),
|
|
3621
|
+
), Cn = be(
|
|
3618
3622
|
(e) => {
|
|
3619
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3623
|
+
var t = e, { locale: r, format: n } = t, i = k(t, ["locale", "format"]);
|
|
3620
3624
|
if (r == null)
|
|
3621
3625
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3622
|
-
return n ? i =
|
|
3626
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3623
3627
|
}
|
|
3624
|
-
),
|
|
3628
|
+
), Rn = be(
|
|
3625
3629
|
(e) => {
|
|
3626
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3630
|
+
var t = e, { locale: r, format: n } = t, i = k(t, ["locale", "format"]);
|
|
3627
3631
|
if (r == null)
|
|
3628
3632
|
throw new Error(
|
|
3629
3633
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3630
3634
|
);
|
|
3631
|
-
return n ? i =
|
|
3635
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3632
3636
|
}
|
|
3633
|
-
),
|
|
3637
|
+
), Un = (e = {}) => {
|
|
3634
3638
|
var t = e, {
|
|
3635
|
-
locale: r =
|
|
3636
|
-
} = t, n =
|
|
3637
|
-
"locale"
|
|
3638
|
-
]);
|
|
3639
|
-
return $n(Ue({ locale: r }, n));
|
|
3640
|
-
}, Un = (e = {}) => {
|
|
3641
|
-
var t = e, {
|
|
3642
|
-
locale: r = O()
|
|
3643
|
-
} = t, n = j(t, [
|
|
3639
|
+
locale: r = I()
|
|
3640
|
+
} = t, n = k(t, [
|
|
3644
3641
|
"locale"
|
|
3645
3642
|
]);
|
|
3646
3643
|
return Mn(Ue({ locale: r }, n));
|
|
3647
3644
|
}, Dn = (e = {}) => {
|
|
3648
3645
|
var t = e, {
|
|
3649
|
-
locale: r =
|
|
3650
|
-
} = t, n =
|
|
3646
|
+
locale: r = I()
|
|
3647
|
+
} = t, n = k(t, [
|
|
3651
3648
|
"locale"
|
|
3652
3649
|
]);
|
|
3653
3650
|
return Cn(Ue({ locale: r }, n));
|
|
3654
|
-
}, Gn =
|
|
3651
|
+
}, Gn = (e = {}) => {
|
|
3652
|
+
var t = e, {
|
|
3653
|
+
locale: r = I()
|
|
3654
|
+
} = t, n = k(t, [
|
|
3655
|
+
"locale"
|
|
3656
|
+
]);
|
|
3657
|
+
return Rn(Ue({ locale: r }, n));
|
|
3658
|
+
}, Fn = be(
|
|
3655
3659
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3656
|
-
(e, t =
|
|
3657
|
-
ignoreTag:
|
|
3660
|
+
(e, t = I()) => new mn(e, t, F().formats, {
|
|
3661
|
+
ignoreTag: F().ignoreTag
|
|
3658
3662
|
})
|
|
3659
|
-
),
|
|
3663
|
+
), zn = (e, t = {}) => {
|
|
3660
3664
|
var r, n, i, s;
|
|
3661
3665
|
let u = t;
|
|
3662
3666
|
typeof e == "object" && (u = e, e = u.id);
|
|
3663
3667
|
const {
|
|
3664
3668
|
values: o,
|
|
3665
|
-
locale: l =
|
|
3669
|
+
locale: l = I(),
|
|
3666
3670
|
default: a
|
|
3667
3671
|
} = u;
|
|
3668
3672
|
if (l == null)
|
|
@@ -3671,7 +3675,7 @@ const q = (e, t) => {
|
|
|
3671
3675
|
);
|
|
3672
3676
|
let h = Nt(e, l);
|
|
3673
3677
|
if (!h)
|
|
3674
|
-
h = (s = (i = (n = (r =
|
|
3678
|
+
h = (s = (i = (n = (r = F()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3675
3679
|
else if (typeof h != "string")
|
|
3676
3680
|
return console.warn(
|
|
3677
3681
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3680,7 +3684,7 @@ const q = (e, t) => {
|
|
|
3680
3684
|
return h;
|
|
3681
3685
|
let f = h;
|
|
3682
3686
|
try {
|
|
3683
|
-
f =
|
|
3687
|
+
f = Fn(h, l).format(o);
|
|
3684
3688
|
} catch (c) {
|
|
3685
3689
|
c instanceof Error && console.warn(
|
|
3686
3690
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3688,11 +3692,11 @@ const q = (e, t) => {
|
|
|
3688
3692
|
);
|
|
3689
3693
|
}
|
|
3690
3694
|
return f;
|
|
3691
|
-
},
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3695
|
+
}, jn = (e, t) => Gn(t).format(e), kn = (e, t) => Dn(t).format(e), Vn = (e, t) => Un(t).format(e), Xn = (e, t = I()) => Nt(e, t), Wn = j([re, te], () => zn);
|
|
3696
|
+
j([re], () => jn);
|
|
3697
|
+
j([re], () => kn);
|
|
3698
|
+
j([re], () => Vn);
|
|
3699
|
+
j([re, te], () => Xn);
|
|
3696
3700
|
function rt(e, t) {
|
|
3697
3701
|
Ot(e, t);
|
|
3698
3702
|
}
|
|
@@ -3759,7 +3763,7 @@ function Zn(e, t) {
|
|
|
3759
3763
|
r.innerHTML = t, e.appendChild(r);
|
|
3760
3764
|
}
|
|
3761
3765
|
}
|
|
3762
|
-
function
|
|
3766
|
+
function Qn(e, t) {
|
|
3763
3767
|
if (!e || !t)
|
|
3764
3768
|
return;
|
|
3765
3769
|
const r = new URL(t);
|
|
@@ -3770,7 +3774,7 @@ function Wn(e, t) {
|
|
|
3770
3774
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3771
3775
|
});
|
|
3772
3776
|
}
|
|
3773
|
-
function
|
|
3777
|
+
function Jn(e, t, r) {
|
|
3774
3778
|
if (window.emMessageBus) {
|
|
3775
3779
|
const n = document.createElement("style");
|
|
3776
3780
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3778,7 +3782,7 @@ function Qn(e, t, r) {
|
|
|
3778
3782
|
});
|
|
3779
3783
|
}
|
|
3780
3784
|
}
|
|
3781
|
-
function
|
|
3785
|
+
function qn(e) {
|
|
3782
3786
|
Ut(e, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
|
|
3783
3787
|
}
|
|
3784
3788
|
function it(e, t, r) {
|
|
@@ -3798,10 +3802,10 @@ function st(e) {
|
|
|
3798
3802
|
t = T("div");
|
|
3799
3803
|
for (let s = 0; s < n.length; s += 1)
|
|
3800
3804
|
n[s].c();
|
|
3801
|
-
i && i.c(),
|
|
3805
|
+
i && i.c(), x(t, "class", "Prizes"), x(t, "part", "Prizes");
|
|
3802
3806
|
},
|
|
3803
3807
|
m(s, u) {
|
|
3804
|
-
|
|
3808
|
+
ee(s, t, u);
|
|
3805
3809
|
for (let o = 0; o < n.length; o += 1)
|
|
3806
3810
|
n[o] && n[o].m(t, null);
|
|
3807
3811
|
i && i.m(t, null);
|
|
@@ -3824,7 +3828,7 @@ function st(e) {
|
|
|
3824
3828
|
}
|
|
3825
3829
|
},
|
|
3826
3830
|
d(s) {
|
|
3827
|
-
s &&
|
|
3831
|
+
s && z(t), Ft(n, s), i && i.d();
|
|
3828
3832
|
}
|
|
3829
3833
|
};
|
|
3830
3834
|
}
|
|
@@ -3835,10 +3839,10 @@ function ot(e) {
|
|
|
3835
3839
|
), n;
|
|
3836
3840
|
return {
|
|
3837
3841
|
c() {
|
|
3838
|
-
t = T("p"), n =
|
|
3842
|
+
t = T("p"), n = O(r);
|
|
3839
3843
|
},
|
|
3840
3844
|
m(i, s) {
|
|
3841
|
-
|
|
3845
|
+
ee(i, t, s), _(t, n);
|
|
3842
3846
|
},
|
|
3843
3847
|
p(i, s) {
|
|
3844
3848
|
s & /*$_*/
|
|
@@ -3846,7 +3850,7 @@ function ot(e) {
|
|
|
3846
3850
|
i[2]("noprizes") + "") && Z(n, r);
|
|
3847
3851
|
},
|
|
3848
3852
|
d(i) {
|
|
3849
|
-
i &&
|
|
3853
|
+
i && z(t);
|
|
3850
3854
|
}
|
|
3851
3855
|
};
|
|
3852
3856
|
}
|
|
@@ -3869,34 +3873,34 @@ function at(e) {
|
|
|
3869
3873
|
), f, c;
|
|
3870
3874
|
return {
|
|
3871
3875
|
c() {
|
|
3872
|
-
t = T("div"), r = T("p"), n = T("span"), s =
|
|
3873
|
-
e[14]),
|
|
3876
|
+
t = T("div"), r = T("p"), n = T("span"), s = O(i), u = ue(), l = O(o), a = O(": "), f = O(h), c = ue(), x(n, "class", "PrizeRank"), x(n, "part", "PrizeRank"), x(r, "class", "PrizeText"), x(r, "part", "PrizeText"), x(t, "class", "Prize Prize" + /*index*/
|
|
3877
|
+
e[14]), x(t, "part", "Prize Prize" + /*index*/
|
|
3874
3878
|
e[14]);
|
|
3875
3879
|
},
|
|
3876
|
-
m(
|
|
3877
|
-
|
|
3880
|
+
m(m, p) {
|
|
3881
|
+
ee(m, t, p), _(t, r), _(r, n), _(n, s), _(r, u), _(r, l), _(r, a), _(r, f), _(t, c);
|
|
3878
3882
|
},
|
|
3879
|
-
p(
|
|
3880
|
-
|
|
3883
|
+
p(m, p) {
|
|
3884
|
+
p & /*prizes*/
|
|
3881
3885
|
2 && i !== (i = /*prize*/
|
|
3882
|
-
(
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
+
(m[12].count > 1 ? `${/*prize*/
|
|
3887
|
+
m[12].rank}~${/*prize*/
|
|
3888
|
+
m[12].rank + /*prize*/
|
|
3889
|
+
m[12].count - 1}` : (
|
|
3886
3890
|
/*prize*/
|
|
3887
|
-
|
|
3888
|
-
)) + "") && Z(s, i),
|
|
3891
|
+
m[12].rank
|
|
3892
|
+
)) + "") && Z(s, i), p & /*$_*/
|
|
3889
3893
|
4 && o !== (o = /*$_*/
|
|
3890
|
-
|
|
3894
|
+
m[2]("place") + "") && Z(l, o), p & /*prizes*/
|
|
3891
3895
|
2 && h !== (h = /*prize*/
|
|
3892
|
-
|
|
3896
|
+
m[12].name + "") && Z(f, h);
|
|
3893
3897
|
},
|
|
3894
|
-
d(
|
|
3895
|
-
|
|
3898
|
+
d(m) {
|
|
3899
|
+
m && z(t);
|
|
3896
3900
|
}
|
|
3897
3901
|
};
|
|
3898
3902
|
}
|
|
3899
|
-
function
|
|
3903
|
+
function Yn(e) {
|
|
3900
3904
|
let t, r, n, i, s, u = (
|
|
3901
3905
|
/*$_*/
|
|
3902
3906
|
e[2]("prizes") + ""
|
|
@@ -3906,10 +3910,10 @@ function qn(e) {
|
|
|
3906
3910
|
);
|
|
3907
3911
|
return {
|
|
3908
3912
|
c() {
|
|
3909
|
-
t = T("div"), r = T("div"), n = T("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', i =
|
|
3913
|
+
t = T("div"), r = T("div"), n = T("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', i = ue(), s = T("p"), o = O(u), l = ue(), a && a.c(), x(n, "class", "TournamentPrizesIconWrapper"), x(n, "part", "TournamentPrizesIconWrapper"), x(s, "class", "PrizesTitle"), x(s, "part", "PrizesTitle"), x(r, "class", "TournamentPrizesIconSection"), x(r, "part", "TournamentPrizesIconSection"), x(t, "class", "TournamentPrizes"), x(t, "part", "TournamentPrizes");
|
|
3910
3914
|
},
|
|
3911
3915
|
m(h, f) {
|
|
3912
|
-
|
|
3916
|
+
ee(h, t, f), _(t, r), _(r, n), _(r, i), _(r, s), _(s, o), _(t, l), a && a.m(t, null), e[8](t);
|
|
3913
3917
|
},
|
|
3914
3918
|
p(h, [f]) {
|
|
3915
3919
|
f & /*$_*/
|
|
@@ -3920,44 +3924,44 @@ function qn(e) {
|
|
|
3920
3924
|
i: P,
|
|
3921
3925
|
o: P,
|
|
3922
3926
|
d(h) {
|
|
3923
|
-
h &&
|
|
3927
|
+
h && z(t), a && a.d(), e[8](null);
|
|
3924
3928
|
}
|
|
3925
3929
|
};
|
|
3926
3930
|
}
|
|
3927
|
-
function
|
|
3931
|
+
function Kn(e, t, r) {
|
|
3928
3932
|
let n;
|
|
3929
|
-
Rt(e,
|
|
3933
|
+
Rt(e, Wn, (p) => r(2, n = p));
|
|
3930
3934
|
let { tourid: i = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: o = "" } = t, { mbsource: l } = t, a, h;
|
|
3931
3935
|
const f = () => {
|
|
3932
|
-
fetch(o).then((
|
|
3933
|
-
Object.keys(
|
|
3934
|
-
rt(H,
|
|
3936
|
+
fetch(o).then((y) => y.json()).then((y) => {
|
|
3937
|
+
Object.keys(y).forEach((H) => {
|
|
3938
|
+
rt(H, y[H]);
|
|
3935
3939
|
});
|
|
3936
|
-
}).catch((
|
|
3937
|
-
console.log(
|
|
3940
|
+
}).catch((y) => {
|
|
3941
|
+
console.log(y);
|
|
3938
3942
|
});
|
|
3939
3943
|
};
|
|
3940
|
-
Object.keys(nt).forEach((
|
|
3941
|
-
rt(
|
|
3944
|
+
Object.keys(nt).forEach((p) => {
|
|
3945
|
+
rt(p, nt[p]);
|
|
3942
3946
|
});
|
|
3943
|
-
const c = (
|
|
3944
|
-
|
|
3947
|
+
const c = (p) => {
|
|
3948
|
+
p.data && p.data.type == `TournamentPrizes_${i}` && r(1, h = p.data.prizes);
|
|
3945
3949
|
};
|
|
3946
3950
|
Vt(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", c, !1), () => {
|
|
3947
3951
|
window.removeEventListener("message", c);
|
|
3948
3952
|
}));
|
|
3949
|
-
function p
|
|
3950
|
-
|
|
3951
|
-
a =
|
|
3953
|
+
function m(p) {
|
|
3954
|
+
Te[p ? "unshift" : "push"](() => {
|
|
3955
|
+
a = p, r(0, a);
|
|
3952
3956
|
});
|
|
3953
3957
|
}
|
|
3954
|
-
return e.$$set = (
|
|
3955
|
-
"tourid" in
|
|
3958
|
+
return e.$$set = (p) => {
|
|
3959
|
+
"tourid" in p && r(3, i = p.tourid), "clientstyling" in p && r(4, s = p.clientstyling), "clientstylingurl" in p && r(5, u = p.clientstylingurl), "translationurl" in p && r(6, o = p.translationurl), "mbsource" in p && r(7, l = p.mbsource);
|
|
3956
3960
|
}, e.$$.update = () => {
|
|
3957
3961
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
3958
3962
|
17 && s && a && Zn(a, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
3959
|
-
33 && u && a &&
|
|
3960
|
-
129 && l && a &&
|
|
3963
|
+
33 && u && a && Qn(a, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
3964
|
+
129 && l && a && Jn(a, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
3961
3965
|
64 && o && f();
|
|
3962
3966
|
}, [
|
|
3963
3967
|
a,
|
|
@@ -3968,16 +3972,16 @@ function Yn(e, t, r) {
|
|
|
3968
3972
|
u,
|
|
3969
3973
|
o,
|
|
3970
3974
|
l,
|
|
3971
|
-
|
|
3975
|
+
m
|
|
3972
3976
|
];
|
|
3973
3977
|
}
|
|
3974
|
-
class
|
|
3978
|
+
class ei extends nr {
|
|
3975
3979
|
constructor(t) {
|
|
3976
3980
|
super(), tr(
|
|
3977
3981
|
this,
|
|
3978
3982
|
t,
|
|
3983
|
+
Kn,
|
|
3979
3984
|
Yn,
|
|
3980
|
-
qn,
|
|
3981
3985
|
ht,
|
|
3982
3986
|
{
|
|
3983
3987
|
tourid: 3,
|
|
@@ -3986,41 +3990,41 @@ class Kn extends nr {
|
|
|
3986
3990
|
translationurl: 6,
|
|
3987
3991
|
mbsource: 7
|
|
3988
3992
|
},
|
|
3989
|
-
|
|
3993
|
+
qn
|
|
3990
3994
|
);
|
|
3991
3995
|
}
|
|
3992
3996
|
get tourid() {
|
|
3993
3997
|
return this.$$.ctx[3];
|
|
3994
3998
|
}
|
|
3995
3999
|
set tourid(t) {
|
|
3996
|
-
this.$$set({ tourid: t }),
|
|
4000
|
+
this.$$set({ tourid: t }), w();
|
|
3997
4001
|
}
|
|
3998
4002
|
get clientstyling() {
|
|
3999
4003
|
return this.$$.ctx[4];
|
|
4000
4004
|
}
|
|
4001
4005
|
set clientstyling(t) {
|
|
4002
|
-
this.$$set({ clientstyling: t }),
|
|
4006
|
+
this.$$set({ clientstyling: t }), w();
|
|
4003
4007
|
}
|
|
4004
4008
|
get clientstylingurl() {
|
|
4005
4009
|
return this.$$.ctx[5];
|
|
4006
4010
|
}
|
|
4007
4011
|
set clientstylingurl(t) {
|
|
4008
|
-
this.$$set({ clientstylingurl: t }),
|
|
4012
|
+
this.$$set({ clientstylingurl: t }), w();
|
|
4009
4013
|
}
|
|
4010
4014
|
get translationurl() {
|
|
4011
4015
|
return this.$$.ctx[6];
|
|
4012
4016
|
}
|
|
4013
4017
|
set translationurl(t) {
|
|
4014
|
-
this.$$set({ translationurl: t }),
|
|
4018
|
+
this.$$set({ translationurl: t }), w();
|
|
4015
4019
|
}
|
|
4016
4020
|
get mbsource() {
|
|
4017
4021
|
return this.$$.ctx[7];
|
|
4018
4022
|
}
|
|
4019
4023
|
set mbsource(t) {
|
|
4020
|
-
this.$$set({ mbsource: t }),
|
|
4024
|
+
this.$$set({ mbsource: t }), w();
|
|
4021
4025
|
}
|
|
4022
4026
|
}
|
|
4023
|
-
rr(
|
|
4027
|
+
rr(ei, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4024
4028
|
export {
|
|
4025
|
-
|
|
4029
|
+
ei as C
|
|
4026
4030
|
};
|