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