@everymatrix/casino-tournaments-thumbnail-duration 1.77.19 → 1.77.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsThumbnailDuration-RzL_907I.js → CasinoTournamentsThumbnailDuration-BoXvliF0.js} +638 -644
- package/components/{CasinoTournamentsThumbnailDuration-B0xZyg3Q.js → CasinoTournamentsThumbnailDuration-CBCS5RY3.js} +629 -635
- package/components/CasinoTournamentsThumbnailDuration-cy6-nuHB.cjs +16 -0
- package/es2015/casino-tournaments-thumbnail-duration.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-duration.js +1 -1
- package/esnext/casino-tournaments-thumbnail-duration.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailDuration-C8ig5oPf.cjs +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Vt = Object.defineProperty, Xt = Object.defineProperties;
|
|
2
|
+
var zt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Xe = Object.getOwnPropertySymbols;
|
|
4
|
+
var Wt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? Vt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Wt.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (Xe)
|
|
9
|
+
for (var r of Xe(t))
|
|
10
|
+
Zt.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var C = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, We = (e, t) => Xt(e, zt(t));
|
|
13
|
+
var C = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Ze = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,25 +29,25 @@ var Je = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function dt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Qe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ae(e) {
|
|
39
|
+
e.forEach(dt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function be(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function pt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Qt(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function gt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,23 +56,23 @@ function yt(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Jt(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(gt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return e &&
|
|
62
|
+
function qt(e) {
|
|
63
|
+
return e && be(e.destroy) ? e.destroy : I;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function N(e, t) {
|
|
66
66
|
e.appendChild(t);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const n =
|
|
68
|
+
function Yt(e, t, r) {
|
|
69
|
+
const n = Kt(e);
|
|
70
70
|
if (!n.getElementById(t)) {
|
|
71
|
-
const i =
|
|
72
|
-
i.id = t, i.textContent = r,
|
|
71
|
+
const i = w("style");
|
|
72
|
+
i.id = t, i.textContent = r, er(n, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Kt(e) {
|
|
76
76
|
if (!e)
|
|
77
77
|
return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -82,8 +82,8 @@ function tr(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function er(e, t) {
|
|
86
|
+
return N(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
@@ -95,29 +95,29 @@ function $(e, t, r) {
|
|
|
95
95
|
function M(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function w(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function G(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function re() {
|
|
105
|
+
return G(" ");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function x(e, t, r) {
|
|
108
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function tr(e) {
|
|
111
111
|
return Array.from(e.childNodes);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function k(e, t) {
|
|
114
114
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
115
|
t);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Je(e, t, r, n) {
|
|
118
118
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function rr(e) {
|
|
121
121
|
const t = {};
|
|
122
122
|
return e.childNodes.forEach(
|
|
123
123
|
/** @param {Element} node */
|
|
@@ -126,87 +126,87 @@ function ir(e) {
|
|
|
126
126
|
}
|
|
127
127
|
), t;
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let ie;
|
|
130
|
+
function ne(e) {
|
|
131
|
+
ie = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
133
|
+
function nr() {
|
|
134
|
+
if (!ie)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
|
-
return
|
|
136
|
+
return ie;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function ir(e) {
|
|
139
|
+
nr().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
141
|
+
const W = [], we = [];
|
|
142
|
+
let Z = [];
|
|
143
|
+
const qe = [], sr = /* @__PURE__ */ Promise.resolve();
|
|
144
|
+
let Ie = !1;
|
|
145
|
+
function or() {
|
|
146
|
+
Ie || (Ie = !0, sr.then(D));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function Le(e) {
|
|
149
|
+
Z.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
151
|
+
const Te = /* @__PURE__ */ new Set();
|
|
152
|
+
let X = 0;
|
|
153
153
|
function D() {
|
|
154
|
-
if (
|
|
154
|
+
if (X !== 0)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = ie;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
|
-
for (;
|
|
160
|
-
const t =
|
|
161
|
-
|
|
159
|
+
for (; X < W.length; ) {
|
|
160
|
+
const t = W[X];
|
|
161
|
+
X++, ne(t), ar(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
|
-
throw
|
|
164
|
+
throw W.length = 0, X = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
168
|
-
for (let t = 0; t <
|
|
169
|
-
const r =
|
|
170
|
-
|
|
166
|
+
for (ne(null), W.length = 0, X = 0; we.length; )
|
|
167
|
+
we.pop()();
|
|
168
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
169
|
+
const r = Z[t];
|
|
170
|
+
Te.has(r) || (Te.add(r), r());
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
} while (
|
|
174
|
-
for (;
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
Z.length = 0;
|
|
173
|
+
} while (W.length);
|
|
174
|
+
for (; qe.length; )
|
|
175
|
+
qe.pop()();
|
|
176
|
+
Ie = !1, Te.clear(), ne(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function ar(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
180
|
+
e.update(), ae(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function ur(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
|
-
|
|
187
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
e && e.i && (
|
|
189
|
+
const hr = /* @__PURE__ */ new Set();
|
|
190
|
+
function lr(e, t) {
|
|
191
|
+
e && e.i && (hr.delete(e), e.i(t));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function fr(e, t, r) {
|
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
|
-
n && n.m(t, r),
|
|
196
|
-
const s = e.$$.on_mount.map(
|
|
197
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
198
|
-
}), i.forEach(
|
|
195
|
+
n && n.m(t, r), Le(() => {
|
|
196
|
+
const s = e.$$.on_mount.map(dt).filter(be);
|
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
198
|
+
}), i.forEach(Le);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function cr(e, t) {
|
|
201
201
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (
|
|
202
|
+
r.fragment !== null && (ur(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.$$.dirty[0] === -1 && (
|
|
204
|
+
function mr(e, t) {
|
|
205
|
+
e.$$.dirty[0] === -1 && (W.push(e), or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
const h =
|
|
209
|
-
|
|
207
|
+
function dr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
208
|
+
const h = ie;
|
|
209
|
+
ne(e);
|
|
210
210
|
const u = e.$$ = {
|
|
211
211
|
fragment: null,
|
|
212
212
|
ctx: [],
|
|
@@ -214,7 +214,7 @@ function gr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
214
214
|
props: s,
|
|
215
215
|
update: I,
|
|
216
216
|
not_equal: i,
|
|
217
|
-
bound:
|
|
217
|
+
bound: Qe(),
|
|
218
218
|
// lifecycle
|
|
219
219
|
on_mount: [],
|
|
220
220
|
on_destroy: [],
|
|
@@ -223,7 +223,7 @@ function gr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
223
223
|
after_update: [],
|
|
224
224
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
225
225
|
// everything else
|
|
226
|
-
callbacks:
|
|
226
|
+
callbacks: Qe(),
|
|
227
227
|
dirty: a,
|
|
228
228
|
skip_bound: !1,
|
|
229
229
|
root: t.target || h.$$.root
|
|
@@ -232,19 +232,19 @@ function gr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
232
232
|
let l = !1;
|
|
233
233
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
234
234
|
const y = d.length ? d[0] : c;
|
|
235
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l &&
|
|
236
|
-
}) : [], u.update(), l = !0,
|
|
235
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l && mr(e, f)), c;
|
|
236
|
+
}) : [], u.update(), l = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
|
-
const f =
|
|
238
|
+
const f = tr(t.target);
|
|
239
239
|
u.fragment && u.fragment.l(f), f.forEach(M);
|
|
240
240
|
} else
|
|
241
241
|
u.fragment && u.fragment.c();
|
|
242
|
-
t.intro &&
|
|
242
|
+
t.intro && lr(e.$$.fragment), fr(e, t.target, t.anchor), D();
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
ne(h);
|
|
245
245
|
}
|
|
246
|
-
let
|
|
247
|
-
typeof HTMLElement == "function" && (
|
|
246
|
+
let bt;
|
|
247
|
+
typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
248
248
|
constructor(t, r, n) {
|
|
249
249
|
super();
|
|
250
250
|
/** The Svelte component constructor */
|
|
@@ -281,14 +281,14 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
connectedCallback() {
|
|
284
|
-
return
|
|
284
|
+
return Ze(this, null, function* () {
|
|
285
285
|
if (this.$$cn = !0, !this.$$c) {
|
|
286
286
|
let t = function(s) {
|
|
287
287
|
return () => {
|
|
288
288
|
let o;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
o =
|
|
291
|
+
o = w("slot"), s !== "default" && x(o, "name", s);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
@@ -305,18 +305,18 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
305
305
|
};
|
|
306
306
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
307
|
return;
|
|
308
|
-
const r = {}, n =
|
|
308
|
+
const r = {}, n = rr(this);
|
|
309
309
|
for (const s of this.$$s)
|
|
310
310
|
s in n && (r[s] = [t(s)]);
|
|
311
311
|
for (const s of this.attributes) {
|
|
312
312
|
const o = this.$$g_p(s.name);
|
|
313
|
-
o in this.$$d || (this.$$d[o] =
|
|
313
|
+
o in this.$$d || (this.$$d[o] = ce(o, s.value, this.$$p_d, "toProp"));
|
|
314
314
|
}
|
|
315
315
|
for (const s in this.$$p_d)
|
|
316
316
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
317
317
|
this.$$c = new this.$$ctor({
|
|
318
318
|
target: this.shadowRoot || this,
|
|
319
|
-
props:
|
|
319
|
+
props: We(ze({}, this.$$d), {
|
|
320
320
|
$$slots: r,
|
|
321
321
|
$$scope: {
|
|
322
322
|
ctx: []
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
327
327
|
this.$$r = !0;
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
330
|
-
const o =
|
|
330
|
+
const o = ce(
|
|
331
331
|
s,
|
|
332
332
|
this.$$d[s],
|
|
333
333
|
this.$$p_d,
|
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
351
351
|
// and setting attributes through setAttribute etc, this is helpful
|
|
352
352
|
attributeChangedCallback(t, r, n) {
|
|
353
353
|
var i;
|
|
354
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
354
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
355
355
|
}
|
|
356
356
|
disconnectedCallback() {
|
|
357
357
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
364
364
|
) || t;
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
function
|
|
367
|
+
function ce(e, t, r, n) {
|
|
368
368
|
var s;
|
|
369
369
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
370
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -394,8 +394,8 @@ function me(e, t, r, n) {
|
|
|
394
394
|
return t;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
let o = class extends
|
|
397
|
+
function pr(e, t, r, n, i, s) {
|
|
398
|
+
let o = class extends bt {
|
|
399
399
|
constructor() {
|
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
|
401
401
|
}
|
|
@@ -412,7 +412,7 @@ function br(e, t, r, n, i, s) {
|
|
|
412
412
|
},
|
|
413
413
|
set(h) {
|
|
414
414
|
var u;
|
|
415
|
-
h =
|
|
415
|
+
h = ce(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
}), n.forEach((a) => {
|
|
@@ -425,7 +425,7 @@ function br(e, t, r, n, i, s) {
|
|
|
425
425
|
}), e.element = /** @type {any} */
|
|
426
426
|
o, o;
|
|
427
427
|
}
|
|
428
|
-
class
|
|
428
|
+
class gr {
|
|
429
429
|
constructor() {
|
|
430
430
|
/**
|
|
431
431
|
* ### PRIVATE API
|
|
@@ -446,7 +446,7 @@ class yr {
|
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
449
|
-
|
|
449
|
+
cr(this, 1), this.$destroy = I;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -455,7 +455,7 @@ class yr {
|
|
|
455
455
|
* @returns {() => void}
|
|
456
456
|
*/
|
|
457
457
|
$on(t, r) {
|
|
458
|
-
if (!
|
|
458
|
+
if (!be(r))
|
|
459
459
|
return I;
|
|
460
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
461
461
|
return n.push(r), () => {
|
|
@@ -468,29 +468,29 @@ class yr {
|
|
|
468
468
|
* @returns {void}
|
|
469
469
|
*/
|
|
470
470
|
$set(t) {
|
|
471
|
-
this.$$set && !
|
|
471
|
+
this.$$set && !Qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
476
|
-
const
|
|
477
|
-
function
|
|
474
|
+
const br = "4";
|
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(br);
|
|
476
|
+
const z = [];
|
|
477
|
+
function yr(e, t) {
|
|
478
478
|
return {
|
|
479
|
-
subscribe:
|
|
479
|
+
subscribe: ye(e, t).subscribe
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function ye(e, t = I) {
|
|
483
483
|
let r;
|
|
484
484
|
const n = /* @__PURE__ */ new Set();
|
|
485
485
|
function i(a) {
|
|
486
|
-
if (
|
|
487
|
-
const h = !
|
|
486
|
+
if (pt(e, a) && (e = a, r)) {
|
|
487
|
+
const h = !z.length;
|
|
488
488
|
for (const u of n)
|
|
489
|
-
u[1](),
|
|
489
|
+
u[1](), z.push(u, e);
|
|
490
490
|
if (h) {
|
|
491
|
-
for (let u = 0; u <
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
for (let u = 0; u < z.length; u += 2)
|
|
492
|
+
z[u][0](z[u + 1]);
|
|
493
|
+
z.length = 0;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
}
|
|
@@ -505,12 +505,12 @@ function _e(e, t = I) {
|
|
|
505
505
|
}
|
|
506
506
|
return { set: i, update: s, subscribe: o };
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function K(e, t, r) {
|
|
509
509
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
510
510
|
if (!i.every(Boolean))
|
|
511
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
512
512
|
const s = t.length < 2;
|
|
513
|
-
return
|
|
513
|
+
return yr(r, (o, a) => {
|
|
514
514
|
let h = !1;
|
|
515
515
|
const u = [];
|
|
516
516
|
let l = 0, f = I;
|
|
@@ -519,9 +519,9 @@ function ee(e, t, r) {
|
|
|
519
519
|
return;
|
|
520
520
|
f();
|
|
521
521
|
const y = t(n ? u[0] : u, o, a);
|
|
522
|
-
s ? o(y) : f =
|
|
522
|
+
s ? o(y) : f = be(y) ? y : I;
|
|
523
523
|
}, d = i.map(
|
|
524
|
-
(y, T) =>
|
|
524
|
+
(y, T) => gt(
|
|
525
525
|
y,
|
|
526
526
|
(A) => {
|
|
527
527
|
u[T] = A, l &= ~(1 << T), h && c();
|
|
@@ -532,112 +532,126 @@ function ee(e, t, r) {
|
|
|
532
532
|
)
|
|
533
533
|
);
|
|
534
534
|
return h = !0, c(), function() {
|
|
535
|
-
|
|
535
|
+
ae(d), f(), h = !1;
|
|
536
536
|
};
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Er(e) {
|
|
540
540
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
541
541
|
}
|
|
542
|
-
var
|
|
543
|
-
return
|
|
542
|
+
var _r = function(t) {
|
|
543
|
+
return xr(t) && !vr(t);
|
|
544
544
|
};
|
|
545
|
-
function
|
|
545
|
+
function xr(e) {
|
|
546
546
|
return !!e && typeof e == "object";
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function vr(e) {
|
|
549
549
|
var t = Object.prototype.toString.call(e);
|
|
550
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
550
|
+
return t === "[object RegExp]" || t === "[object Date]" || Br(e);
|
|
551
551
|
}
|
|
552
|
-
var
|
|
553
|
-
function
|
|
554
|
-
return e.$$typeof ===
|
|
552
|
+
var Hr = typeof Symbol == "function" && Symbol.for, Tr = Hr ? Symbol.for("react.element") : 60103;
|
|
553
|
+
function Br(e) {
|
|
554
|
+
return e.$$typeof === Tr;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Sr(e) {
|
|
557
557
|
return Array.isArray(e) ? [] : {};
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
559
|
+
function se(e, t) {
|
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Sr(e), e, t) : e;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Ar(e, t, r) {
|
|
563
563
|
return e.concat(t).map(function(n) {
|
|
564
|
-
return
|
|
564
|
+
return se(n, r);
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Pr(e, t) {
|
|
568
568
|
if (!t.customMerge)
|
|
569
|
-
return
|
|
569
|
+
return Q;
|
|
570
570
|
var r = t.customMerge(e);
|
|
571
|
-
return typeof r == "function" ? r :
|
|
571
|
+
return typeof r == "function" ? r : Q;
|
|
572
572
|
}
|
|
573
573
|
function Nr(e) {
|
|
574
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
575
575
|
return Object.propertyIsEnumerable.call(e, t);
|
|
576
576
|
}) : [];
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Ye(e) {
|
|
579
579
|
return Object.keys(e).concat(Nr(e));
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function yt(e, t) {
|
|
582
582
|
try {
|
|
583
583
|
return t in e;
|
|
584
584
|
} catch (r) {
|
|
585
585
|
return !1;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
588
|
+
function Or(e, t) {
|
|
589
|
+
return yt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function wr(e, t, r) {
|
|
592
592
|
var n = {};
|
|
593
|
-
return r.isMergeableObject(e) &&
|
|
594
|
-
n[i] =
|
|
595
|
-
}),
|
|
596
|
-
|
|
593
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
594
|
+
n[i] = se(e[i], r);
|
|
595
|
+
}), Ye(t).forEach(function(i) {
|
|
596
|
+
Or(e, i) || (yt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
597
597
|
}), n;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
599
|
+
function Q(e, t, r) {
|
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ar, r.isMergeableObject = r.isMergeableObject || _r, r.cloneUnlessOtherwiseSpecified = se;
|
|
601
601
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
602
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
602
|
+
return s ? n ? r.arrayMerge(e, t, r) : wr(e, t, r) : se(t, r);
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
Q.all = function(t, r) {
|
|
605
605
|
if (!Array.isArray(t))
|
|
606
606
|
throw new Error("first argument should be an array");
|
|
607
607
|
return t.reduce(function(n, i) {
|
|
608
|
-
return
|
|
608
|
+
return Q(n, i, r);
|
|
609
609
|
}, {});
|
|
610
610
|
};
|
|
611
|
-
var
|
|
612
|
-
const
|
|
613
|
-
|
|
614
|
-
|
|
611
|
+
var Ir = Q, Lr = Ir;
|
|
612
|
+
const Cr = /* @__PURE__ */ Er(Lr);
|
|
613
|
+
/*! *****************************************************************************
|
|
614
|
+
Copyright (c) Microsoft Corporation.
|
|
615
|
+
|
|
616
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
617
|
+
purpose with or without fee is hereby granted.
|
|
618
|
+
|
|
619
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
620
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
621
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
622
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
623
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
624
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
625
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
626
|
+
***************************************************************************** */
|
|
627
|
+
var Ce = function(e, t) {
|
|
628
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
615
629
|
r.__proto__ = n;
|
|
616
630
|
} || function(r, n) {
|
|
617
631
|
for (var i in n)
|
|
618
632
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
619
|
-
},
|
|
633
|
+
}, Ce(e, t);
|
|
620
634
|
};
|
|
621
|
-
function
|
|
635
|
+
function Ee(e, t) {
|
|
622
636
|
if (typeof t != "function" && t !== null)
|
|
623
637
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
624
|
-
|
|
638
|
+
Ce(e, t);
|
|
625
639
|
function r() {
|
|
626
640
|
this.constructor = e;
|
|
627
641
|
}
|
|
628
642
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
629
643
|
}
|
|
630
|
-
var
|
|
631
|
-
return
|
|
644
|
+
var E = function() {
|
|
645
|
+
return E = Object.assign || function(t) {
|
|
632
646
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
633
647
|
r = arguments[n];
|
|
634
648
|
for (var s in r)
|
|
635
649
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
636
650
|
}
|
|
637
651
|
return t;
|
|
638
|
-
},
|
|
652
|
+
}, E.apply(this, arguments);
|
|
639
653
|
};
|
|
640
|
-
function
|
|
654
|
+
function Mr(e, t) {
|
|
641
655
|
var r = {};
|
|
642
656
|
for (var n in e)
|
|
643
657
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -646,43 +660,43 @@ function Rr(e, t) {
|
|
|
646
660
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
647
661
|
return r;
|
|
648
662
|
}
|
|
649
|
-
function
|
|
650
|
-
if (
|
|
663
|
+
function Be(e, t, r) {
|
|
664
|
+
if (arguments.length === 2)
|
|
651
665
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
652
666
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
653
|
-
return e.concat(s ||
|
|
667
|
+
return e.concat(s || t);
|
|
654
668
|
}
|
|
655
|
-
function
|
|
656
|
-
var r = t && t.cache ? t.cache :
|
|
669
|
+
function Se(e, t) {
|
|
670
|
+
var r = t && t.cache ? t.cache : jr, n = t && t.serializer ? t.serializer : Fr, i = t && t.strategy ? t.strategy : Dr;
|
|
657
671
|
return i(e, {
|
|
658
672
|
cache: r,
|
|
659
673
|
serializer: n
|
|
660
674
|
});
|
|
661
675
|
}
|
|
662
|
-
function
|
|
676
|
+
function $r(e) {
|
|
663
677
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
664
678
|
}
|
|
665
|
-
function
|
|
666
|
-
var i =
|
|
679
|
+
function Rr(e, t, r, n) {
|
|
680
|
+
var i = $r(n) ? n : r(n), s = t.get(i);
|
|
667
681
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
668
682
|
}
|
|
669
|
-
function
|
|
683
|
+
function Et(e, t, r) {
|
|
670
684
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
671
685
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
672
686
|
}
|
|
673
|
-
function
|
|
687
|
+
function _t(e, t, r, n, i) {
|
|
674
688
|
return r.bind(t, e, n, i);
|
|
675
689
|
}
|
|
676
|
-
function
|
|
677
|
-
var r = e.length === 1 ?
|
|
678
|
-
return
|
|
690
|
+
function Dr(e, t) {
|
|
691
|
+
var r = e.length === 1 ? Rr : Et;
|
|
692
|
+
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
679
693
|
}
|
|
680
|
-
function
|
|
681
|
-
return
|
|
694
|
+
function Ur(e, t) {
|
|
695
|
+
return _t(e, this, Et, t.cache.create(), t.serializer);
|
|
682
696
|
}
|
|
683
|
-
var
|
|
697
|
+
var Fr = function() {
|
|
684
698
|
return JSON.stringify(arguments);
|
|
685
|
-
},
|
|
699
|
+
}, Gr = (
|
|
686
700
|
/** @class */
|
|
687
701
|
function() {
|
|
688
702
|
function e() {
|
|
@@ -694,71 +708,61 @@ var jr = function() {
|
|
|
694
708
|
this.cache[t] = r;
|
|
695
709
|
}, e;
|
|
696
710
|
}()
|
|
697
|
-
),
|
|
711
|
+
), jr = {
|
|
698
712
|
create: function() {
|
|
699
|
-
return new
|
|
713
|
+
return new Gr();
|
|
700
714
|
}
|
|
701
|
-
},
|
|
702
|
-
variadic:
|
|
703
|
-
},
|
|
704
|
-
return ge = Object.assign || function(t) {
|
|
705
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
706
|
-
r = arguments[n];
|
|
707
|
-
for (var s in r)
|
|
708
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
709
|
-
}
|
|
710
|
-
return t;
|
|
711
|
-
}, ge.apply(this, arguments);
|
|
712
|
-
};
|
|
713
|
-
var g;
|
|
715
|
+
}, Ae = {
|
|
716
|
+
variadic: Ur
|
|
717
|
+
}, g;
|
|
714
718
|
(function(e) {
|
|
715
719
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
716
720
|
})(g || (g = {}));
|
|
717
|
-
var
|
|
721
|
+
var v;
|
|
718
722
|
(function(e) {
|
|
719
723
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
720
|
-
})(
|
|
721
|
-
var
|
|
724
|
+
})(v || (v = {}));
|
|
725
|
+
var J;
|
|
722
726
|
(function(e) {
|
|
723
727
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
724
|
-
})(
|
|
725
|
-
function
|
|
726
|
-
return e.type ===
|
|
728
|
+
})(J || (J = {}));
|
|
729
|
+
function Ke(e) {
|
|
730
|
+
return e.type === v.literal;
|
|
731
|
+
}
|
|
732
|
+
function kr(e) {
|
|
733
|
+
return e.type === v.argument;
|
|
727
734
|
}
|
|
728
|
-
function
|
|
729
|
-
return e.type ===
|
|
735
|
+
function xt(e) {
|
|
736
|
+
return e.type === v.number;
|
|
737
|
+
}
|
|
738
|
+
function vt(e) {
|
|
739
|
+
return e.type === v.date;
|
|
730
740
|
}
|
|
731
741
|
function Ht(e) {
|
|
732
|
-
return e.type ===
|
|
742
|
+
return e.type === v.time;
|
|
733
743
|
}
|
|
734
744
|
function Tt(e) {
|
|
735
|
-
return e.type ===
|
|
745
|
+
return e.type === v.select;
|
|
736
746
|
}
|
|
737
747
|
function Bt(e) {
|
|
738
|
-
return e.type ===
|
|
748
|
+
return e.type === v.plural;
|
|
749
|
+
}
|
|
750
|
+
function Vr(e) {
|
|
751
|
+
return e.type === v.pound;
|
|
739
752
|
}
|
|
740
753
|
function St(e) {
|
|
741
|
-
return e.type ===
|
|
754
|
+
return e.type === v.tag;
|
|
742
755
|
}
|
|
743
756
|
function At(e) {
|
|
744
|
-
return e.type ===
|
|
745
|
-
}
|
|
746
|
-
function zr(e) {
|
|
747
|
-
return e.type === x.pound;
|
|
748
|
-
}
|
|
749
|
-
function Pt(e) {
|
|
750
|
-
return e.type === x.tag;
|
|
751
|
-
}
|
|
752
|
-
function Ot(e) {
|
|
753
|
-
return !!(e && typeof e == "object" && e.type === q.number);
|
|
757
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
754
758
|
}
|
|
755
|
-
function
|
|
756
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
759
|
+
function Me(e) {
|
|
760
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
757
761
|
}
|
|
758
|
-
var
|
|
759
|
-
function
|
|
762
|
+
var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xr = /(?:[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;
|
|
763
|
+
function zr(e) {
|
|
760
764
|
var t = {};
|
|
761
|
-
return e.replace(
|
|
765
|
+
return e.replace(Xr, function(r) {
|
|
762
766
|
var n = r.length;
|
|
763
767
|
switch (r[0]) {
|
|
764
768
|
case "G":
|
|
@@ -847,21 +851,11 @@ function Zr(e) {
|
|
|
847
851
|
return "";
|
|
848
852
|
}), t;
|
|
849
853
|
}
|
|
850
|
-
var
|
|
851
|
-
|
|
852
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
853
|
-
r = arguments[n];
|
|
854
|
-
for (var s in r)
|
|
855
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
856
|
-
}
|
|
857
|
-
return t;
|
|
858
|
-
}, v.apply(this, arguments);
|
|
859
|
-
};
|
|
860
|
-
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
861
|
-
function Jr(e) {
|
|
854
|
+
var Wr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
855
|
+
function Zr(e) {
|
|
862
856
|
if (e.length === 0)
|
|
863
857
|
throw new Error("Number skeleton cannot be empty");
|
|
864
|
-
for (var t = e.split(
|
|
858
|
+
for (var t = e.split(Wr).filter(function(c) {
|
|
865
859
|
return c.length > 0;
|
|
866
860
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
867
861
|
var s = i[n], o = s.split("/");
|
|
@@ -876,17 +870,17 @@ function Jr(e) {
|
|
|
876
870
|
}
|
|
877
871
|
return r;
|
|
878
872
|
}
|
|
879
|
-
function
|
|
873
|
+
function Qr(e) {
|
|
880
874
|
return e.replace(/^(.*?)-/, "");
|
|
881
875
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
876
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Jr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ot = /^(0+)$/;
|
|
877
|
+
function tt(e) {
|
|
884
878
|
var t = {};
|
|
885
879
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
|
|
886
880
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
887
881
|
}), t;
|
|
888
882
|
}
|
|
889
|
-
function
|
|
883
|
+
function wt(e) {
|
|
890
884
|
switch (e) {
|
|
891
885
|
case "sign-auto":
|
|
892
886
|
return {
|
|
@@ -926,7 +920,7 @@ function Lt(e) {
|
|
|
926
920
|
};
|
|
927
921
|
}
|
|
928
922
|
}
|
|
929
|
-
function
|
|
923
|
+
function qr(e) {
|
|
930
924
|
var t;
|
|
931
925
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
932
926
|
notation: "engineering"
|
|
@@ -934,17 +928,17 @@ function Kr(e) {
|
|
|
934
928
|
notation: "scientific"
|
|
935
929
|
}, e = e.slice(1)), t) {
|
|
936
930
|
var r = e.slice(0, 2);
|
|
937
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
931
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ot.test(e))
|
|
938
932
|
throw new Error("Malformed concise eng/scientific notation");
|
|
939
933
|
t.minimumIntegerDigits = e.length;
|
|
940
934
|
}
|
|
941
935
|
return t;
|
|
942
936
|
}
|
|
943
|
-
function
|
|
944
|
-
var t = {}, r =
|
|
937
|
+
function rt(e) {
|
|
938
|
+
var t = {}, r = wt(e);
|
|
945
939
|
return r || t;
|
|
946
940
|
}
|
|
947
|
-
function
|
|
941
|
+
function Yr(e) {
|
|
948
942
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
949
943
|
var i = n[r];
|
|
950
944
|
switch (i.stem) {
|
|
@@ -968,7 +962,7 @@ function en(e) {
|
|
|
968
962
|
continue;
|
|
969
963
|
case "measure-unit":
|
|
970
964
|
case "unit":
|
|
971
|
-
t.style = "unit", t.unit =
|
|
965
|
+
t.style = "unit", t.unit = Qr(i.options[0]);
|
|
972
966
|
continue;
|
|
973
967
|
case "compact-short":
|
|
974
968
|
case "K":
|
|
@@ -979,13 +973,13 @@ function en(e) {
|
|
|
979
973
|
t.notation = "compact", t.compactDisplay = "long";
|
|
980
974
|
continue;
|
|
981
975
|
case "scientific":
|
|
982
|
-
t =
|
|
983
|
-
return
|
|
976
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
977
|
+
return E(E({}, h), rt(u));
|
|
984
978
|
}, {}));
|
|
985
979
|
continue;
|
|
986
980
|
case "engineering":
|
|
987
|
-
t =
|
|
988
|
-
return
|
|
981
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
982
|
+
return E(E({}, h), rt(u));
|
|
989
983
|
}, {}));
|
|
990
984
|
continue;
|
|
991
985
|
case "notation-simple":
|
|
@@ -1030,7 +1024,7 @@ function en(e) {
|
|
|
1030
1024
|
case "integer-width":
|
|
1031
1025
|
if (i.options.length > 1)
|
|
1032
1026
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1033
|
-
i.options[0].replace(
|
|
1027
|
+
i.options[0].replace(Jr, function(h, u, l, f, c, d) {
|
|
1034
1028
|
if (u)
|
|
1035
1029
|
t.minimumIntegerDigits = l.length;
|
|
1036
1030
|
else {
|
|
@@ -1043,32 +1037,32 @@ function en(e) {
|
|
|
1043
1037
|
});
|
|
1044
1038
|
continue;
|
|
1045
1039
|
}
|
|
1046
|
-
if (
|
|
1040
|
+
if (Ot.test(i.stem)) {
|
|
1047
1041
|
t.minimumIntegerDigits = i.stem.length;
|
|
1048
1042
|
continue;
|
|
1049
1043
|
}
|
|
1050
|
-
if (
|
|
1044
|
+
if (et.test(i.stem)) {
|
|
1051
1045
|
if (i.options.length > 1)
|
|
1052
1046
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1053
|
-
i.stem.replace(
|
|
1047
|
+
i.stem.replace(et, function(h, u, l, f, c, d) {
|
|
1054
1048
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1055
1049
|
});
|
|
1056
1050
|
var s = i.options[0];
|
|
1057
|
-
s === "w" ? t =
|
|
1051
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), tt(s)));
|
|
1058
1052
|
continue;
|
|
1059
1053
|
}
|
|
1060
1054
|
if (Nt.test(i.stem)) {
|
|
1061
|
-
t =
|
|
1055
|
+
t = E(E({}, t), tt(i.stem));
|
|
1062
1056
|
continue;
|
|
1063
1057
|
}
|
|
1064
|
-
var o =
|
|
1065
|
-
o && (t =
|
|
1066
|
-
var a =
|
|
1067
|
-
a && (t =
|
|
1058
|
+
var o = wt(i.stem);
|
|
1059
|
+
o && (t = E(E({}, t), o));
|
|
1060
|
+
var a = qr(i.stem);
|
|
1061
|
+
a && (t = E(E({}, t), a));
|
|
1068
1062
|
}
|
|
1069
1063
|
return t;
|
|
1070
1064
|
}
|
|
1071
|
-
var
|
|
1065
|
+
var fe = {
|
|
1072
1066
|
"001": [
|
|
1073
1067
|
"H",
|
|
1074
1068
|
"h"
|
|
@@ -2483,13 +2477,13 @@ var ce = {
|
|
|
2483
2477
|
"h"
|
|
2484
2478
|
]
|
|
2485
2479
|
};
|
|
2486
|
-
function
|
|
2480
|
+
function Kr(e, t) {
|
|
2487
2481
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2488
2482
|
var i = e.charAt(n);
|
|
2489
2483
|
if (i === "j") {
|
|
2490
2484
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2491
2485
|
s++, n++;
|
|
2492
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
2486
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = en(t);
|
|
2493
2487
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2494
2488
|
r += h;
|
|
2495
2489
|
for (; o-- > 0; )
|
|
@@ -2499,7 +2493,7 @@ function tn(e, t) {
|
|
|
2499
2493
|
}
|
|
2500
2494
|
return r;
|
|
2501
2495
|
}
|
|
2502
|
-
function
|
|
2496
|
+
function en(e) {
|
|
2503
2497
|
var t = e.hourCycle;
|
|
2504
2498
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2505
2499
|
e.hourCycles && // @ts-ignore
|
|
@@ -2518,23 +2512,23 @@ function rn(e) {
|
|
|
2518
2512
|
}
|
|
2519
2513
|
var r = e.language, n;
|
|
2520
2514
|
r !== "root" && (n = e.maximize().region);
|
|
2521
|
-
var i =
|
|
2515
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2522
2516
|
return i[0];
|
|
2523
2517
|
}
|
|
2524
|
-
var
|
|
2518
|
+
var Pe, tn = new RegExp("^".concat(Pt.source, "*")), rn = new RegExp("".concat(Pt.source, "*$"));
|
|
2525
2519
|
function b(e, t) {
|
|
2526
2520
|
return { start: e, end: t };
|
|
2527
2521
|
}
|
|
2528
|
-
var
|
|
2522
|
+
var nn = !!String.prototype.startsWith && "_a".startsWith("a", 1), sn = !!String.fromCodePoint, on = !!Object.fromEntries, an = !!String.prototype.codePointAt, un = !!String.prototype.trimStart, hn = !!String.prototype.trimEnd, ln = !!Number.isSafeInteger, fn = ln ? Number.isSafeInteger : function(e) {
|
|
2529
2523
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2530
|
-
},
|
|
2524
|
+
}, $e = !0;
|
|
2531
2525
|
try {
|
|
2532
|
-
var
|
|
2533
|
-
|
|
2526
|
+
var cn = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2527
|
+
$e = ((Pe = cn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2534
2528
|
} catch (e) {
|
|
2535
|
-
|
|
2529
|
+
$e = !1;
|
|
2536
2530
|
}
|
|
2537
|
-
var
|
|
2531
|
+
var nt = nn ? (
|
|
2538
2532
|
// Native
|
|
2539
2533
|
function(t, r, n) {
|
|
2540
2534
|
return t.startsWith(r, n);
|
|
@@ -2544,7 +2538,7 @@ var st = on ? (
|
|
|
2544
2538
|
function(t, r, n) {
|
|
2545
2539
|
return t.slice(n, n + r.length) === r;
|
|
2546
2540
|
}
|
|
2547
|
-
),
|
|
2541
|
+
), Re = sn ? String.fromCodePoint : (
|
|
2548
2542
|
// IE11
|
|
2549
2543
|
function() {
|
|
2550
2544
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2556,9 +2550,9 @@ var st = on ? (
|
|
|
2556
2550
|
}
|
|
2557
2551
|
return n;
|
|
2558
2552
|
}
|
|
2559
|
-
),
|
|
2553
|
+
), it = (
|
|
2560
2554
|
// native
|
|
2561
|
-
|
|
2555
|
+
on ? Object.fromEntries : (
|
|
2562
2556
|
// Ponyfill
|
|
2563
2557
|
function(t) {
|
|
2564
2558
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2568,7 +2562,7 @@ var st = on ? (
|
|
|
2568
2562
|
return r;
|
|
2569
2563
|
}
|
|
2570
2564
|
)
|
|
2571
|
-
),
|
|
2565
|
+
), It = an ? (
|
|
2572
2566
|
// Native
|
|
2573
2567
|
function(t, r) {
|
|
2574
2568
|
return t.codePointAt(r);
|
|
@@ -2582,7 +2576,7 @@ var st = on ? (
|
|
|
2582
2576
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2583
2577
|
}
|
|
2584
2578
|
}
|
|
2585
|
-
),
|
|
2579
|
+
), mn = un ? (
|
|
2586
2580
|
// Native
|
|
2587
2581
|
function(t) {
|
|
2588
2582
|
return t.trimStart();
|
|
@@ -2590,9 +2584,9 @@ var st = on ? (
|
|
|
2590
2584
|
) : (
|
|
2591
2585
|
// Ponyfill
|
|
2592
2586
|
function(t) {
|
|
2593
|
-
return t.replace(
|
|
2587
|
+
return t.replace(tn, "");
|
|
2594
2588
|
}
|
|
2595
|
-
),
|
|
2589
|
+
), dn = hn ? (
|
|
2596
2590
|
// Native
|
|
2597
2591
|
function(t) {
|
|
2598
2592
|
return t.trimEnd();
|
|
@@ -2600,32 +2594,32 @@ var st = on ? (
|
|
|
2600
2594
|
) : (
|
|
2601
2595
|
// Ponyfill
|
|
2602
2596
|
function(t) {
|
|
2603
|
-
return t.replace(
|
|
2597
|
+
return t.replace(rn, "");
|
|
2604
2598
|
}
|
|
2605
2599
|
);
|
|
2606
|
-
function
|
|
2600
|
+
function Lt(e, t) {
|
|
2607
2601
|
return new RegExp(e, t);
|
|
2608
2602
|
}
|
|
2609
|
-
var
|
|
2610
|
-
if (
|
|
2611
|
-
var
|
|
2612
|
-
|
|
2603
|
+
var De;
|
|
2604
|
+
if ($e) {
|
|
2605
|
+
var st = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2606
|
+
De = function(t, r) {
|
|
2613
2607
|
var n;
|
|
2614
|
-
|
|
2615
|
-
var i =
|
|
2608
|
+
st.lastIndex = r;
|
|
2609
|
+
var i = st.exec(t);
|
|
2616
2610
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2617
2611
|
};
|
|
2618
2612
|
} else
|
|
2619
|
-
|
|
2613
|
+
De = function(t, r) {
|
|
2620
2614
|
for (var n = []; ; ) {
|
|
2621
|
-
var i =
|
|
2622
|
-
if (i === void 0 ||
|
|
2615
|
+
var i = It(t, r);
|
|
2616
|
+
if (i === void 0 || Ct(i) || yn(i))
|
|
2623
2617
|
break;
|
|
2624
2618
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2625
2619
|
}
|
|
2626
|
-
return
|
|
2620
|
+
return Re.apply(void 0, n);
|
|
2627
2621
|
};
|
|
2628
|
-
var
|
|
2622
|
+
var pn = (
|
|
2629
2623
|
/** @class */
|
|
2630
2624
|
function() {
|
|
2631
2625
|
function e(t, r) {
|
|
@@ -2649,14 +2643,14 @@ var bn = (
|
|
|
2649
2643
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2650
2644
|
var a = this.clonePosition();
|
|
2651
2645
|
this.bump(), i.push({
|
|
2652
|
-
type:
|
|
2646
|
+
type: v.pound,
|
|
2653
2647
|
location: b(a, this.clonePosition())
|
|
2654
2648
|
});
|
|
2655
2649
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2656
2650
|
if (n)
|
|
2657
2651
|
break;
|
|
2658
2652
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2659
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2653
|
+
} else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2660
2654
|
var o = this.parseTag(t, r);
|
|
2661
2655
|
if (o.err)
|
|
2662
2656
|
return o;
|
|
@@ -2677,7 +2671,7 @@ var bn = (
|
|
|
2677
2671
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2678
2672
|
return {
|
|
2679
2673
|
val: {
|
|
2680
|
-
type:
|
|
2674
|
+
type: v.literal,
|
|
2681
2675
|
value: "<".concat(i, "/>"),
|
|
2682
2676
|
location: b(n, this.clonePosition())
|
|
2683
2677
|
},
|
|
@@ -2689,12 +2683,12 @@ var bn = (
|
|
|
2689
2683
|
return s;
|
|
2690
2684
|
var o = s.val, a = this.clonePosition();
|
|
2691
2685
|
if (this.bumpIf("</")) {
|
|
2692
|
-
if (this.isEOF() || !
|
|
2686
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2693
2687
|
return this.error(g.INVALID_TAG, b(a, this.clonePosition()));
|
|
2694
2688
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2695
2689
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2696
2690
|
val: {
|
|
2697
|
-
type:
|
|
2691
|
+
type: v.tag,
|
|
2698
2692
|
value: i,
|
|
2699
2693
|
children: o,
|
|
2700
2694
|
location: b(n, this.clonePosition())
|
|
@@ -2707,7 +2701,7 @@ var bn = (
|
|
|
2707
2701
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2708
2702
|
}, e.prototype.parseTagName = function() {
|
|
2709
2703
|
var t = this.offset();
|
|
2710
|
-
for (this.bump(); !this.isEOF() &&
|
|
2704
|
+
for (this.bump(); !this.isEOF() && bn(this.char()); )
|
|
2711
2705
|
this.bump();
|
|
2712
2706
|
return this.message.slice(t, this.offset());
|
|
2713
2707
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2731,12 +2725,12 @@ var bn = (
|
|
|
2731
2725
|
}
|
|
2732
2726
|
var h = b(n, this.clonePosition());
|
|
2733
2727
|
return {
|
|
2734
|
-
val: { type:
|
|
2728
|
+
val: { type: v.literal, value: i, location: h },
|
|
2735
2729
|
err: null
|
|
2736
2730
|
};
|
|
2737
2731
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2738
2732
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2739
|
-
!
|
|
2733
|
+
!gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2740
2734
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2741
2735
|
if (this.isEOF() || this.char() !== 39)
|
|
2742
2736
|
return null;
|
|
@@ -2770,12 +2764,12 @@ var bn = (
|
|
|
2770
2764
|
r.push(n);
|
|
2771
2765
|
this.bump();
|
|
2772
2766
|
}
|
|
2773
|
-
return
|
|
2767
|
+
return Re.apply(void 0, r);
|
|
2774
2768
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2775
2769
|
if (this.isEOF())
|
|
2776
2770
|
return null;
|
|
2777
2771
|
var n = this.char();
|
|
2778
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2772
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
2779
2773
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2780
2774
|
var n = this.clonePosition();
|
|
2781
2775
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2791,7 +2785,7 @@ var bn = (
|
|
|
2791
2785
|
case 125:
|
|
2792
2786
|
return this.bump(), {
|
|
2793
2787
|
val: {
|
|
2794
|
-
type:
|
|
2788
|
+
type: v.argument,
|
|
2795
2789
|
// value does not include the opening and closing braces.
|
|
2796
2790
|
value: i,
|
|
2797
2791
|
location: b(n, this.clonePosition())
|
|
@@ -2804,7 +2798,7 @@ var bn = (
|
|
|
2804
2798
|
return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2805
2799
|
}
|
|
2806
2800
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2807
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2801
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2808
2802
|
this.bumpTo(i);
|
|
2809
2803
|
var s = this.clonePosition(), o = b(t, s);
|
|
2810
2804
|
return { value: n, location: o };
|
|
@@ -2823,7 +2817,7 @@ var bn = (
|
|
|
2823
2817
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2824
2818
|
if (f.err)
|
|
2825
2819
|
return f;
|
|
2826
|
-
var c =
|
|
2820
|
+
var c = dn(f.val);
|
|
2827
2821
|
if (c.length === 0)
|
|
2828
2822
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2829
2823
|
var d = b(l, this.clonePosition());
|
|
@@ -2833,25 +2827,25 @@ var bn = (
|
|
|
2833
2827
|
if (y.err)
|
|
2834
2828
|
return y;
|
|
2835
2829
|
var T = b(i, this.clonePosition());
|
|
2836
|
-
if (u &&
|
|
2837
|
-
var A =
|
|
2830
|
+
if (u && nt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2831
|
+
var A = mn(u.style.slice(2));
|
|
2838
2832
|
if (a === "number") {
|
|
2839
2833
|
var f = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
2840
2834
|
return f.err ? f : {
|
|
2841
|
-
val: { type:
|
|
2835
|
+
val: { type: v.number, value: n, location: T, style: f.val },
|
|
2842
2836
|
err: null
|
|
2843
2837
|
};
|
|
2844
2838
|
} else {
|
|
2845
2839
|
if (A.length === 0)
|
|
2846
2840
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2847
2841
|
var S = A;
|
|
2848
|
-
this.locale && (S =
|
|
2842
|
+
this.locale && (S = Kr(A, this.locale));
|
|
2849
2843
|
var c = {
|
|
2850
|
-
type:
|
|
2844
|
+
type: J.dateTime,
|
|
2851
2845
|
pattern: S,
|
|
2852
2846
|
location: u.styleLocation,
|
|
2853
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2854
|
-
}, L = a === "date" ?
|
|
2847
|
+
parsedOptions: this.shouldParseSkeletons ? zr(S) : {}
|
|
2848
|
+
}, L = a === "date" ? v.date : v.time;
|
|
2855
2849
|
return {
|
|
2856
2850
|
val: { type: L, value: n, location: T, style: c },
|
|
2857
2851
|
err: null
|
|
@@ -2860,7 +2854,7 @@ var bn = (
|
|
|
2860
2854
|
}
|
|
2861
2855
|
return {
|
|
2862
2856
|
val: {
|
|
2863
|
-
type: a === "number" ?
|
|
2857
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
2864
2858
|
value: n,
|
|
2865
2859
|
location: T,
|
|
2866
2860
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2873,41 +2867,41 @@ var bn = (
|
|
|
2873
2867
|
case "select": {
|
|
2874
2868
|
var H = this.clonePosition();
|
|
2875
2869
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2876
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
2870
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, E({}, H)));
|
|
2877
2871
|
this.bumpSpace();
|
|
2878
|
-
var
|
|
2879
|
-
if (a !== "select" &&
|
|
2872
|
+
var _ = this.parseIdentifierIfPossible(), p = 0;
|
|
2873
|
+
if (a !== "select" && _.value === "offset") {
|
|
2880
2874
|
if (!this.bumpIf(":"))
|
|
2881
2875
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2882
2876
|
this.bumpSpace();
|
|
2883
2877
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2884
2878
|
if (f.err)
|
|
2885
2879
|
return f;
|
|
2886
|
-
this.bumpSpace(),
|
|
2880
|
+
this.bumpSpace(), _ = this.parseIdentifierIfPossible(), p = f.val;
|
|
2887
2881
|
}
|
|
2888
|
-
var B = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
2882
|
+
var B = this.tryParsePluralOrSelectOptions(t, a, r, _);
|
|
2889
2883
|
if (B.err)
|
|
2890
2884
|
return B;
|
|
2891
2885
|
var y = this.tryParseArgumentClose(i);
|
|
2892
2886
|
if (y.err)
|
|
2893
2887
|
return y;
|
|
2894
|
-
var
|
|
2888
|
+
var le = b(i, this.clonePosition());
|
|
2895
2889
|
return a === "select" ? {
|
|
2896
2890
|
val: {
|
|
2897
|
-
type:
|
|
2891
|
+
type: v.select,
|
|
2898
2892
|
value: n,
|
|
2899
|
-
options:
|
|
2900
|
-
location:
|
|
2893
|
+
options: it(B.val),
|
|
2894
|
+
location: le
|
|
2901
2895
|
},
|
|
2902
2896
|
err: null
|
|
2903
2897
|
} : {
|
|
2904
2898
|
val: {
|
|
2905
|
-
type:
|
|
2899
|
+
type: v.plural,
|
|
2906
2900
|
value: n,
|
|
2907
|
-
options:
|
|
2901
|
+
options: it(B.val),
|
|
2908
2902
|
offset: p,
|
|
2909
2903
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2910
|
-
location:
|
|
2904
|
+
location: le
|
|
2911
2905
|
},
|
|
2912
2906
|
err: null
|
|
2913
2907
|
};
|
|
@@ -2955,16 +2949,16 @@ var bn = (
|
|
|
2955
2949
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2956
2950
|
var n = [];
|
|
2957
2951
|
try {
|
|
2958
|
-
n =
|
|
2952
|
+
n = Zr(t);
|
|
2959
2953
|
} catch (i) {
|
|
2960
2954
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2961
2955
|
}
|
|
2962
2956
|
return {
|
|
2963
2957
|
val: {
|
|
2964
|
-
type:
|
|
2958
|
+
type: J.number,
|
|
2965
2959
|
tokens: n,
|
|
2966
2960
|
location: r,
|
|
2967
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2961
|
+
parsedOptions: this.shouldParseSkeletons ? Yr(n) : {}
|
|
2968
2962
|
},
|
|
2969
2963
|
err: null
|
|
2970
2964
|
};
|
|
@@ -3012,7 +3006,7 @@ var bn = (
|
|
|
3012
3006
|
break;
|
|
3013
3007
|
}
|
|
3014
3008
|
var h = b(i, this.clonePosition());
|
|
3015
|
-
return s ? (o *= n,
|
|
3009
|
+
return s ? (o *= n, fn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3016
3010
|
}, e.prototype.offset = function() {
|
|
3017
3011
|
return this.position.offset;
|
|
3018
3012
|
}, e.prototype.isEOF = function() {
|
|
@@ -3027,7 +3021,7 @@ var bn = (
|
|
|
3027
3021
|
var t = this.position.offset;
|
|
3028
3022
|
if (t >= this.message.length)
|
|
3029
3023
|
throw Error("out of bound");
|
|
3030
|
-
var r =
|
|
3024
|
+
var r = It(this.message, t);
|
|
3031
3025
|
if (r === void 0)
|
|
3032
3026
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3033
3027
|
return r;
|
|
@@ -3046,7 +3040,7 @@ var bn = (
|
|
|
3046
3040
|
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);
|
|
3047
3041
|
}
|
|
3048
3042
|
}, e.prototype.bumpIf = function(t) {
|
|
3049
|
-
if (
|
|
3043
|
+
if (nt(this.message, t, this.offset())) {
|
|
3050
3044
|
for (var r = 0; r < t.length; r++)
|
|
3051
3045
|
this.bump();
|
|
3052
3046
|
return !0;
|
|
@@ -3068,7 +3062,7 @@ var bn = (
|
|
|
3068
3062
|
break;
|
|
3069
3063
|
}
|
|
3070
3064
|
}, e.prototype.bumpSpace = function() {
|
|
3071
|
-
for (; !this.isEOF() &&
|
|
3065
|
+
for (; !this.isEOF() && Ct(this.char()); )
|
|
3072
3066
|
this.bump();
|
|
3073
3067
|
}, e.prototype.peek = function() {
|
|
3074
3068
|
if (this.isEOF())
|
|
@@ -3078,47 +3072,47 @@ var bn = (
|
|
|
3078
3072
|
}, e;
|
|
3079
3073
|
}()
|
|
3080
3074
|
);
|
|
3081
|
-
function
|
|
3075
|
+
function Ue(e) {
|
|
3082
3076
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3083
3077
|
}
|
|
3084
|
-
function
|
|
3085
|
-
return
|
|
3078
|
+
function gn(e) {
|
|
3079
|
+
return Ue(e) || e === 47;
|
|
3086
3080
|
}
|
|
3087
|
-
function
|
|
3081
|
+
function bn(e) {
|
|
3088
3082
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3089
3083
|
}
|
|
3090
|
-
function
|
|
3084
|
+
function Ct(e) {
|
|
3091
3085
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3092
3086
|
}
|
|
3093
|
-
function
|
|
3087
|
+
function yn(e) {
|
|
3094
3088
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3095
3089
|
}
|
|
3096
|
-
function
|
|
3090
|
+
function Fe(e) {
|
|
3097
3091
|
e.forEach(function(t) {
|
|
3098
|
-
if (delete t.location,
|
|
3092
|
+
if (delete t.location, Tt(t) || Bt(t))
|
|
3099
3093
|
for (var r in t.options)
|
|
3100
|
-
delete t.options[r].location,
|
|
3094
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3101
3095
|
else
|
|
3102
|
-
|
|
3096
|
+
xt(t) && At(t.style) || (vt(t) || Ht(t)) && Me(t.style) ? delete t.style.location : St(t) && Fe(t.children);
|
|
3103
3097
|
});
|
|
3104
3098
|
}
|
|
3105
|
-
function
|
|
3106
|
-
t === void 0 && (t = {}), t =
|
|
3107
|
-
var r = new
|
|
3099
|
+
function En(e, t) {
|
|
3100
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3101
|
+
var r = new pn(e, t).parse();
|
|
3108
3102
|
if (r.err) {
|
|
3109
3103
|
var n = SyntaxError(g[r.err.kind]);
|
|
3110
3104
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3111
3105
|
}
|
|
3112
|
-
return t != null && t.captureLocation ||
|
|
3106
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3113
3107
|
}
|
|
3114
|
-
var
|
|
3108
|
+
var q;
|
|
3115
3109
|
(function(e) {
|
|
3116
3110
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3117
|
-
})(
|
|
3118
|
-
var
|
|
3111
|
+
})(q || (q = {}));
|
|
3112
|
+
var _e = (
|
|
3119
3113
|
/** @class */
|
|
3120
3114
|
function(e) {
|
|
3121
|
-
|
|
3115
|
+
Ee(t, e);
|
|
3122
3116
|
function t(r, n, i) {
|
|
3123
3117
|
var s = e.call(this, r) || this;
|
|
3124
3118
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3127,48 +3121,48 @@ var ve = (
|
|
|
3127
3121
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3128
3122
|
}, t;
|
|
3129
3123
|
}(Error)
|
|
3130
|
-
),
|
|
3124
|
+
), ot = (
|
|
3131
3125
|
/** @class */
|
|
3132
3126
|
function(e) {
|
|
3133
|
-
|
|
3127
|
+
Ee(t, e);
|
|
3134
3128
|
function t(r, n, i, s) {
|
|
3135
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3129
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3136
3130
|
}
|
|
3137
3131
|
return t;
|
|
3138
|
-
}(
|
|
3139
|
-
),
|
|
3132
|
+
}(_e)
|
|
3133
|
+
), _n = (
|
|
3140
3134
|
/** @class */
|
|
3141
3135
|
function(e) {
|
|
3142
|
-
|
|
3136
|
+
Ee(t, e);
|
|
3143
3137
|
function t(r, n, i) {
|
|
3144
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3138
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3145
3139
|
}
|
|
3146
3140
|
return t;
|
|
3147
|
-
}(
|
|
3148
|
-
),
|
|
3141
|
+
}(_e)
|
|
3142
|
+
), xn = (
|
|
3149
3143
|
/** @class */
|
|
3150
3144
|
function(e) {
|
|
3151
|
-
|
|
3145
|
+
Ee(t, e);
|
|
3152
3146
|
function t(r, n) {
|
|
3153
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3147
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3154
3148
|
}
|
|
3155
3149
|
return t;
|
|
3156
|
-
}(
|
|
3150
|
+
}(_e)
|
|
3157
3151
|
), P;
|
|
3158
3152
|
(function(e) {
|
|
3159
3153
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3160
3154
|
})(P || (P = {}));
|
|
3161
|
-
function
|
|
3155
|
+
function vn(e) {
|
|
3162
3156
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3163
3157
|
var n = t[t.length - 1];
|
|
3164
3158
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3165
3159
|
}, []);
|
|
3166
3160
|
}
|
|
3167
|
-
function
|
|
3161
|
+
function Hn(e) {
|
|
3168
3162
|
return typeof e == "function";
|
|
3169
3163
|
}
|
|
3170
|
-
function
|
|
3171
|
-
if (e.length === 1 &&
|
|
3164
|
+
function me(e, t, r, n, i, s, o) {
|
|
3165
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3172
3166
|
return [
|
|
3173
3167
|
{
|
|
3174
3168
|
type: P.literal,
|
|
@@ -3177,14 +3171,14 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3177
3171
|
];
|
|
3178
3172
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3179
3173
|
var l = u[h];
|
|
3180
|
-
if (
|
|
3174
|
+
if (Ke(l)) {
|
|
3181
3175
|
a.push({
|
|
3182
3176
|
type: P.literal,
|
|
3183
3177
|
value: l.value
|
|
3184
3178
|
});
|
|
3185
3179
|
continue;
|
|
3186
3180
|
}
|
|
3187
|
-
if (
|
|
3181
|
+
if (Vr(l)) {
|
|
3188
3182
|
typeof s == "number" && a.push({
|
|
3189
3183
|
type: P.literal,
|
|
3190
3184
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3193,44 +3187,44 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3193
3187
|
}
|
|
3194
3188
|
var f = l.value;
|
|
3195
3189
|
if (!(i && f in i))
|
|
3196
|
-
throw new
|
|
3190
|
+
throw new xn(f, o);
|
|
3197
3191
|
var c = i[f];
|
|
3198
|
-
if (
|
|
3192
|
+
if (kr(l)) {
|
|
3199
3193
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3200
3194
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3201
3195
|
value: c
|
|
3202
3196
|
});
|
|
3203
3197
|
continue;
|
|
3204
3198
|
}
|
|
3205
|
-
if (
|
|
3206
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3199
|
+
if (vt(l)) {
|
|
3200
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3207
3201
|
a.push({
|
|
3208
3202
|
type: P.literal,
|
|
3209
3203
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3210
3204
|
});
|
|
3211
3205
|
continue;
|
|
3212
3206
|
}
|
|
3213
|
-
if (
|
|
3214
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3207
|
+
if (Ht(l)) {
|
|
3208
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3215
3209
|
a.push({
|
|
3216
3210
|
type: P.literal,
|
|
3217
3211
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3218
3212
|
});
|
|
3219
3213
|
continue;
|
|
3220
3214
|
}
|
|
3221
|
-
if (
|
|
3222
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3215
|
+
if (xt(l)) {
|
|
3216
|
+
var d = typeof l.style == "string" ? n.number[l.style] : At(l.style) ? l.style.parsedOptions : void 0;
|
|
3223
3217
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3224
3218
|
type: P.literal,
|
|
3225
3219
|
value: r.getNumberFormat(t, d).format(c)
|
|
3226
3220
|
});
|
|
3227
3221
|
continue;
|
|
3228
3222
|
}
|
|
3229
|
-
if (
|
|
3223
|
+
if (St(l)) {
|
|
3230
3224
|
var y = l.children, T = l.value, A = i[T];
|
|
3231
|
-
if (!
|
|
3232
|
-
throw new
|
|
3233
|
-
var S =
|
|
3225
|
+
if (!Hn(A))
|
|
3226
|
+
throw new _n(T, "function", o);
|
|
3227
|
+
var S = me(y, t, r, n, i, s), L = A(S.map(function(p) {
|
|
3234
3228
|
return p.value;
|
|
3235
3229
|
}));
|
|
3236
3230
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(p) {
|
|
@@ -3240,40 +3234,40 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3240
3234
|
};
|
|
3241
3235
|
}));
|
|
3242
3236
|
}
|
|
3243
|
-
if (
|
|
3237
|
+
if (Tt(l)) {
|
|
3244
3238
|
var H = l.options[c] || l.options.other;
|
|
3245
3239
|
if (!H)
|
|
3246
|
-
throw new
|
|
3247
|
-
a.push.apply(a,
|
|
3240
|
+
throw new ot(l.value, c, Object.keys(l.options), o);
|
|
3241
|
+
a.push.apply(a, me(H.value, t, r, n, i));
|
|
3248
3242
|
continue;
|
|
3249
3243
|
}
|
|
3250
|
-
if (
|
|
3244
|
+
if (Bt(l)) {
|
|
3251
3245
|
var H = l.options["=".concat(c)];
|
|
3252
3246
|
if (!H) {
|
|
3253
3247
|
if (!Intl.PluralRules)
|
|
3254
|
-
throw new
|
|
3248
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3255
3249
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3256
|
-
`,
|
|
3257
|
-
var
|
|
3258
|
-
H = l.options[
|
|
3250
|
+
`, q.MISSING_INTL_API, o);
|
|
3251
|
+
var _ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3252
|
+
H = l.options[_] || l.options.other;
|
|
3259
3253
|
}
|
|
3260
3254
|
if (!H)
|
|
3261
|
-
throw new
|
|
3262
|
-
a.push.apply(a,
|
|
3255
|
+
throw new ot(l.value, c, Object.keys(l.options), o);
|
|
3256
|
+
a.push.apply(a, me(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3263
3257
|
continue;
|
|
3264
3258
|
}
|
|
3265
3259
|
}
|
|
3266
|
-
return
|
|
3260
|
+
return vn(a);
|
|
3267
3261
|
}
|
|
3268
|
-
function
|
|
3269
|
-
return t ?
|
|
3270
|
-
return r[n] =
|
|
3262
|
+
function Tn(e, t) {
|
|
3263
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3264
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3271
3265
|
}, {})) : e;
|
|
3272
3266
|
}
|
|
3273
|
-
function
|
|
3267
|
+
function Bn(e, t) {
|
|
3274
3268
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3275
|
-
return r[n] =
|
|
3276
|
-
},
|
|
3269
|
+
return r[n] = Tn(e[n], t[n]), r;
|
|
3270
|
+
}, E({}, e)) : e;
|
|
3277
3271
|
}
|
|
3278
3272
|
function Ne(e) {
|
|
3279
3273
|
return {
|
|
@@ -3289,39 +3283,39 @@ function Ne(e) {
|
|
|
3289
3283
|
}
|
|
3290
3284
|
};
|
|
3291
3285
|
}
|
|
3292
|
-
function
|
|
3286
|
+
function Sn(e) {
|
|
3293
3287
|
return e === void 0 && (e = {
|
|
3294
3288
|
number: {},
|
|
3295
3289
|
dateTime: {},
|
|
3296
3290
|
pluralRules: {}
|
|
3297
3291
|
}), {
|
|
3298
|
-
getNumberFormat:
|
|
3292
|
+
getNumberFormat: Se(function() {
|
|
3299
3293
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3300
3294
|
r[n] = arguments[n];
|
|
3301
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3295
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3302
3296
|
}, {
|
|
3303
3297
|
cache: Ne(e.number),
|
|
3304
|
-
strategy:
|
|
3298
|
+
strategy: Ae.variadic
|
|
3305
3299
|
}),
|
|
3306
|
-
getDateTimeFormat:
|
|
3300
|
+
getDateTimeFormat: Se(function() {
|
|
3307
3301
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3308
3302
|
r[n] = arguments[n];
|
|
3309
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3303
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3310
3304
|
}, {
|
|
3311
3305
|
cache: Ne(e.dateTime),
|
|
3312
|
-
strategy:
|
|
3306
|
+
strategy: Ae.variadic
|
|
3313
3307
|
}),
|
|
3314
|
-
getPluralRules:
|
|
3308
|
+
getPluralRules: Se(function() {
|
|
3315
3309
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3316
3310
|
r[n] = arguments[n];
|
|
3317
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3311
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3318
3312
|
}, {
|
|
3319
3313
|
cache: Ne(e.pluralRules),
|
|
3320
|
-
strategy:
|
|
3314
|
+
strategy: Ae.variadic
|
|
3321
3315
|
})
|
|
3322
3316
|
};
|
|
3323
3317
|
}
|
|
3324
|
-
var
|
|
3318
|
+
var An = (
|
|
3325
3319
|
/** @class */
|
|
3326
3320
|
function() {
|
|
3327
3321
|
function e(t, r, n, i) {
|
|
@@ -3340,7 +3334,7 @@ var On = (
|
|
|
3340
3334
|
}, []);
|
|
3341
3335
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3342
3336
|
}, this.formatToParts = function(h) {
|
|
3343
|
-
return
|
|
3337
|
+
return me(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3344
3338
|
}, this.resolvedOptions = function() {
|
|
3345
3339
|
var h;
|
|
3346
3340
|
return {
|
|
@@ -3353,13 +3347,13 @@ var On = (
|
|
|
3353
3347
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3354
3348
|
var o = i || {};
|
|
3355
3349
|
o.formatters;
|
|
3356
|
-
var a =
|
|
3357
|
-
this.ast = e.__parse(t,
|
|
3350
|
+
var a = Mr(o, ["formatters"]);
|
|
3351
|
+
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
|
3358
3352
|
} else
|
|
3359
3353
|
this.ast = t;
|
|
3360
3354
|
if (!Array.isArray(this.ast))
|
|
3361
3355
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3362
|
-
this.formats =
|
|
3356
|
+
this.formats = Bn(e.formats, n), this.formatters = i && i.formatters || Sn(this.formatterCache);
|
|
3363
3357
|
}
|
|
3364
3358
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3365
3359
|
get: function() {
|
|
@@ -3372,7 +3366,7 @@ var On = (
|
|
|
3372
3366
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3373
3367
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3374
3368
|
}
|
|
3375
|
-
}, e.__parse =
|
|
3369
|
+
}, e.__parse = En, e.formats = {
|
|
3376
3370
|
number: {
|
|
3377
3371
|
integer: {
|
|
3378
3372
|
maximumFractionDigits: 0
|
|
@@ -3433,7 +3427,7 @@ var On = (
|
|
|
3433
3427
|
}, e;
|
|
3434
3428
|
}()
|
|
3435
3429
|
);
|
|
3436
|
-
function
|
|
3430
|
+
function Pn(e, t) {
|
|
3437
3431
|
if (t == null)
|
|
3438
3432
|
return;
|
|
3439
3433
|
if (t in e)
|
|
@@ -3454,92 +3448,92 @@ function wn(e, t) {
|
|
|
3454
3448
|
n = void 0;
|
|
3455
3449
|
return n;
|
|
3456
3450
|
}
|
|
3457
|
-
const
|
|
3451
|
+
const F = {}, Nn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Mt = (e, t) => {
|
|
3458
3452
|
if (t == null)
|
|
3459
3453
|
return;
|
|
3460
|
-
if (t in
|
|
3461
|
-
return
|
|
3462
|
-
const r =
|
|
3454
|
+
if (t in F && e in F[t])
|
|
3455
|
+
return F[t][e];
|
|
3456
|
+
const r = xe(t);
|
|
3463
3457
|
for (let n = 0; n < r.length; n++) {
|
|
3464
|
-
const i = r[n], s =
|
|
3458
|
+
const i = r[n], s = wn(i, e);
|
|
3465
3459
|
if (s)
|
|
3466
3460
|
return Nn(e, t, s);
|
|
3467
3461
|
}
|
|
3468
3462
|
};
|
|
3469
|
-
let
|
|
3470
|
-
const
|
|
3471
|
-
function
|
|
3472
|
-
return
|
|
3463
|
+
let ke;
|
|
3464
|
+
const ue = ye({});
|
|
3465
|
+
function On(e) {
|
|
3466
|
+
return ke[e] || null;
|
|
3473
3467
|
}
|
|
3474
|
-
function
|
|
3475
|
-
return e in
|
|
3468
|
+
function $t(e) {
|
|
3469
|
+
return e in ke;
|
|
3476
3470
|
}
|
|
3477
|
-
function
|
|
3478
|
-
if (
|
|
3471
|
+
function wn(e, t) {
|
|
3472
|
+
if (!$t(e))
|
|
3479
3473
|
return null;
|
|
3480
|
-
const r =
|
|
3481
|
-
return
|
|
3474
|
+
const r = On(e);
|
|
3475
|
+
return Pn(r, t);
|
|
3482
3476
|
}
|
|
3483
|
-
function
|
|
3477
|
+
function In(e) {
|
|
3484
3478
|
if (e == null)
|
|
3485
3479
|
return;
|
|
3486
|
-
const t =
|
|
3480
|
+
const t = xe(e);
|
|
3487
3481
|
for (let r = 0; r < t.length; r++) {
|
|
3488
3482
|
const n = t[r];
|
|
3489
|
-
if (
|
|
3483
|
+
if ($t(n))
|
|
3490
3484
|
return n;
|
|
3491
3485
|
}
|
|
3492
3486
|
}
|
|
3493
|
-
function
|
|
3494
|
-
delete
|
|
3487
|
+
function Rt(e, ...t) {
|
|
3488
|
+
delete F[e], ue.update((r) => (r[e] = Cr.all([r[e] || {}, ...t]), r));
|
|
3495
3489
|
}
|
|
3496
|
-
|
|
3497
|
-
[
|
|
3490
|
+
K(
|
|
3491
|
+
[ue],
|
|
3498
3492
|
([e]) => Object.keys(e)
|
|
3499
3493
|
);
|
|
3500
|
-
|
|
3501
|
-
const
|
|
3502
|
-
function
|
|
3503
|
-
|
|
3494
|
+
ue.subscribe((e) => ke = e);
|
|
3495
|
+
const de = {};
|
|
3496
|
+
function Ln(e, t) {
|
|
3497
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3504
3498
|
}
|
|
3505
|
-
function
|
|
3506
|
-
return
|
|
3499
|
+
function Dt(e) {
|
|
3500
|
+
return de[e];
|
|
3507
3501
|
}
|
|
3508
|
-
function
|
|
3509
|
-
return
|
|
3510
|
-
const r =
|
|
3502
|
+
function Cn(e) {
|
|
3503
|
+
return xe(e).map((t) => {
|
|
3504
|
+
const r = Dt(t);
|
|
3511
3505
|
return [t, r ? [...r] : []];
|
|
3512
3506
|
}).filter(([, t]) => t.length > 0);
|
|
3513
3507
|
}
|
|
3514
|
-
function
|
|
3515
|
-
return e == null ? !1 :
|
|
3508
|
+
function Ge(e) {
|
|
3509
|
+
return e == null ? !1 : xe(e).some(
|
|
3516
3510
|
(t) => {
|
|
3517
3511
|
var r;
|
|
3518
|
-
return (r =
|
|
3512
|
+
return (r = Dt(t)) == null ? void 0 : r.size;
|
|
3519
3513
|
}
|
|
3520
3514
|
);
|
|
3521
3515
|
}
|
|
3522
|
-
function
|
|
3516
|
+
function Mn(e, t) {
|
|
3523
3517
|
return Promise.all(
|
|
3524
|
-
t.map((n) => (
|
|
3525
|
-
).then((n) =>
|
|
3526
|
-
}
|
|
3527
|
-
const
|
|
3528
|
-
function
|
|
3529
|
-
if (!
|
|
3530
|
-
return e in
|
|
3531
|
-
const t =
|
|
3532
|
-
return
|
|
3518
|
+
t.map((n) => (Ln(e, n), n().then((i) => i.default || i)))
|
|
3519
|
+
).then((n) => Rt(e, ...n));
|
|
3520
|
+
}
|
|
3521
|
+
const te = {};
|
|
3522
|
+
function Ut(e) {
|
|
3523
|
+
if (!Ge(e))
|
|
3524
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3525
|
+
const t = Cn(e);
|
|
3526
|
+
return te[e] = Promise.all(
|
|
3533
3527
|
t.map(
|
|
3534
|
-
([r, n]) =>
|
|
3528
|
+
([r, n]) => Mn(r, n)
|
|
3535
3529
|
)
|
|
3536
3530
|
).then(() => {
|
|
3537
|
-
if (
|
|
3538
|
-
return
|
|
3539
|
-
delete
|
|
3540
|
-
}),
|
|
3531
|
+
if (Ge(e))
|
|
3532
|
+
return Ut(e);
|
|
3533
|
+
delete te[e];
|
|
3534
|
+
}), te[e];
|
|
3541
3535
|
}
|
|
3542
|
-
const
|
|
3536
|
+
const $n = {
|
|
3543
3537
|
number: {
|
|
3544
3538
|
scientific: { notation: "scientific" },
|
|
3545
3539
|
engineering: { notation: "engineering" },
|
|
@@ -3568,150 +3562,150 @@ const Dn = {
|
|
|
3568
3562
|
timeZoneName: "short"
|
|
3569
3563
|
}
|
|
3570
3564
|
}
|
|
3571
|
-
},
|
|
3565
|
+
}, Rn = {
|
|
3572
3566
|
fallbackLocale: null,
|
|
3573
3567
|
loadingDelay: 200,
|
|
3574
|
-
formats:
|
|
3568
|
+
formats: $n,
|
|
3575
3569
|
warnOnMissingMessages: !0,
|
|
3576
3570
|
handleMissingMessage: void 0,
|
|
3577
3571
|
ignoreTag: !0
|
|
3578
|
-
},
|
|
3579
|
-
function
|
|
3580
|
-
return
|
|
3572
|
+
}, Dn = Rn;
|
|
3573
|
+
function Y() {
|
|
3574
|
+
return Dn;
|
|
3581
3575
|
}
|
|
3582
|
-
const
|
|
3583
|
-
var
|
|
3576
|
+
const Oe = ye(!1);
|
|
3577
|
+
var Un = Object.defineProperty, Fn = Object.defineProperties, Gn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, jn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vn = (e, t) => {
|
|
3584
3578
|
for (var r in t || (t = {}))
|
|
3585
|
-
|
|
3586
|
-
if (
|
|
3587
|
-
for (var r of
|
|
3588
|
-
|
|
3579
|
+
jn.call(t, r) && ut(e, r, t[r]);
|
|
3580
|
+
if (at)
|
|
3581
|
+
for (var r of at(t))
|
|
3582
|
+
kn.call(t, r) && ut(e, r, t[r]);
|
|
3589
3583
|
return e;
|
|
3590
|
-
},
|
|
3591
|
-
let
|
|
3592
|
-
const
|
|
3593
|
-
function
|
|
3584
|
+
}, Xn = (e, t) => Fn(e, Gn(t));
|
|
3585
|
+
let je;
|
|
3586
|
+
const pe = ye(null);
|
|
3587
|
+
function ht(e) {
|
|
3594
3588
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3595
3589
|
}
|
|
3596
|
-
function
|
|
3597
|
-
const r =
|
|
3598
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3590
|
+
function xe(e, t = Y().fallbackLocale) {
|
|
3591
|
+
const r = ht(e);
|
|
3592
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3599
3593
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3594
|
+
function V() {
|
|
3595
|
+
return je != null ? je : void 0;
|
|
3602
3596
|
}
|
|
3603
|
-
|
|
3604
|
-
|
|
3597
|
+
pe.subscribe((e) => {
|
|
3598
|
+
je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3605
3599
|
});
|
|
3606
|
-
const
|
|
3607
|
-
if (e &&
|
|
3608
|
-
const { loadingDelay: t } =
|
|
3600
|
+
const zn = (e) => {
|
|
3601
|
+
if (e && In(e) && Ge(e)) {
|
|
3602
|
+
const { loadingDelay: t } = Y();
|
|
3609
3603
|
let r;
|
|
3610
|
-
return typeof window != "undefined" &&
|
|
3611
|
-
() =>
|
|
3604
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3605
|
+
() => Oe.set(!0),
|
|
3612
3606
|
t
|
|
3613
|
-
) :
|
|
3614
|
-
|
|
3607
|
+
) : Oe.set(!0), Ut(e).then(() => {
|
|
3608
|
+
pe.set(e);
|
|
3615
3609
|
}).finally(() => {
|
|
3616
|
-
clearTimeout(r),
|
|
3610
|
+
clearTimeout(r), Oe.set(!1);
|
|
3617
3611
|
});
|
|
3618
3612
|
}
|
|
3619
|
-
return
|
|
3620
|
-
},
|
|
3621
|
-
set:
|
|
3622
|
-
}),
|
|
3613
|
+
return pe.set(e);
|
|
3614
|
+
}, he = Xn(Vn({}, pe), {
|
|
3615
|
+
set: zn
|
|
3616
|
+
}), ve = (e) => {
|
|
3623
3617
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3624
3618
|
return (n) => {
|
|
3625
3619
|
const i = JSON.stringify(n);
|
|
3626
3620
|
return i in t ? t[i] : t[i] = e(n);
|
|
3627
3621
|
};
|
|
3628
3622
|
};
|
|
3629
|
-
var
|
|
3623
|
+
var Wn = Object.defineProperty, ge = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, Gt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
|
3630
3624
|
for (var r in t || (t = {}))
|
|
3631
|
-
|
|
3632
|
-
if (
|
|
3633
|
-
for (var r of
|
|
3634
|
-
|
|
3625
|
+
Ft.call(t, r) && lt(e, r, t[r]);
|
|
3626
|
+
if (ge)
|
|
3627
|
+
for (var r of ge(t))
|
|
3628
|
+
Gt.call(t, r) && lt(e, r, t[r]);
|
|
3635
3629
|
return e;
|
|
3636
|
-
},
|
|
3630
|
+
}, ee = (e, t) => {
|
|
3637
3631
|
var r = {};
|
|
3638
3632
|
for (var n in e)
|
|
3639
|
-
|
|
3640
|
-
if (e != null &&
|
|
3641
|
-
for (var n of
|
|
3642
|
-
t.indexOf(n) < 0 &&
|
|
3633
|
+
Ft.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3634
|
+
if (e != null && ge)
|
|
3635
|
+
for (var n of ge(e))
|
|
3636
|
+
t.indexOf(n) < 0 && Gt.call(e, n) && (r[n] = e[n]);
|
|
3643
3637
|
return r;
|
|
3644
3638
|
};
|
|
3645
|
-
const
|
|
3646
|
-
const { formats: r } =
|
|
3639
|
+
const oe = (e, t) => {
|
|
3640
|
+
const { formats: r } = Y();
|
|
3647
3641
|
if (e in r && t in r[e])
|
|
3648
3642
|
return r[e][t];
|
|
3649
3643
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3650
|
-
},
|
|
3644
|
+
}, Zn = ve(
|
|
3651
3645
|
(e) => {
|
|
3652
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3646
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3653
3647
|
if (r == null)
|
|
3654
3648
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3655
|
-
return n && (i =
|
|
3649
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3656
3650
|
}
|
|
3657
|
-
),
|
|
3651
|
+
), Qn = ve(
|
|
3658
3652
|
(e) => {
|
|
3659
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3653
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3660
3654
|
if (r == null)
|
|
3661
3655
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3662
|
-
return n ? i =
|
|
3656
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3663
3657
|
}
|
|
3664
|
-
),
|
|
3658
|
+
), Jn = ve(
|
|
3665
3659
|
(e) => {
|
|
3666
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3660
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3667
3661
|
if (r == null)
|
|
3668
3662
|
throw new Error(
|
|
3669
3663
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3670
3664
|
);
|
|
3671
|
-
return n ? i =
|
|
3665
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3672
3666
|
}
|
|
3673
|
-
),
|
|
3667
|
+
), qn = (e = {}) => {
|
|
3674
3668
|
var t = e, {
|
|
3675
|
-
locale: r =
|
|
3676
|
-
} = t, n =
|
|
3669
|
+
locale: r = V()
|
|
3670
|
+
} = t, n = ee(t, [
|
|
3677
3671
|
"locale"
|
|
3678
3672
|
]);
|
|
3679
|
-
return
|
|
3680
|
-
},
|
|
3673
|
+
return Zn(Ve({ locale: r }, n));
|
|
3674
|
+
}, Yn = (e = {}) => {
|
|
3681
3675
|
var t = e, {
|
|
3682
|
-
locale: r =
|
|
3683
|
-
} = t, n =
|
|
3676
|
+
locale: r = V()
|
|
3677
|
+
} = t, n = ee(t, [
|
|
3684
3678
|
"locale"
|
|
3685
3679
|
]);
|
|
3686
|
-
return
|
|
3687
|
-
},
|
|
3680
|
+
return Qn(Ve({ locale: r }, n));
|
|
3681
|
+
}, Kn = (e = {}) => {
|
|
3688
3682
|
var t = e, {
|
|
3689
|
-
locale: r =
|
|
3690
|
-
} = t, n =
|
|
3683
|
+
locale: r = V()
|
|
3684
|
+
} = t, n = ee(t, [
|
|
3691
3685
|
"locale"
|
|
3692
3686
|
]);
|
|
3693
|
-
return
|
|
3694
|
-
},
|
|
3687
|
+
return Jn(Ve({ locale: r }, n));
|
|
3688
|
+
}, ei = ve(
|
|
3695
3689
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3696
|
-
(e, t =
|
|
3697
|
-
ignoreTag:
|
|
3690
|
+
(e, t = V()) => new An(e, t, Y().formats, {
|
|
3691
|
+
ignoreTag: Y().ignoreTag
|
|
3698
3692
|
})
|
|
3699
|
-
),
|
|
3693
|
+
), ti = (e, t = {}) => {
|
|
3700
3694
|
var r, n, i, s;
|
|
3701
3695
|
let o = t;
|
|
3702
3696
|
typeof e == "object" && (o = e, e = o.id);
|
|
3703
3697
|
const {
|
|
3704
3698
|
values: a,
|
|
3705
|
-
locale: h =
|
|
3699
|
+
locale: h = V(),
|
|
3706
3700
|
default: u
|
|
3707
3701
|
} = o;
|
|
3708
3702
|
if (h == null)
|
|
3709
3703
|
throw new Error(
|
|
3710
3704
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3711
3705
|
);
|
|
3712
|
-
let l =
|
|
3706
|
+
let l = Mt(e, h);
|
|
3713
3707
|
if (!l)
|
|
3714
|
-
l = (s = (i = (n = (r =
|
|
3708
|
+
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3715
3709
|
else if (typeof l != "string")
|
|
3716
3710
|
return console.warn(
|
|
3717
3711
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3720,7 +3714,7 @@ const ae = (e, t) => {
|
|
|
3720
3714
|
return l;
|
|
3721
3715
|
let f = l;
|
|
3722
3716
|
try {
|
|
3723
|
-
f =
|
|
3717
|
+
f = ei(l, h).format(a);
|
|
3724
3718
|
} catch (c) {
|
|
3725
3719
|
c instanceof Error && console.warn(
|
|
3726
3720
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3728,15 +3722,15 @@ const ae = (e, t) => {
|
|
|
3728
3722
|
);
|
|
3729
3723
|
}
|
|
3730
3724
|
return f;
|
|
3731
|
-
},
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
function
|
|
3737
|
-
|
|
3738
|
-
}
|
|
3739
|
-
const
|
|
3725
|
+
}, ri = (e, t) => Kn(t).format(e), ni = (e, t) => Yn(t).format(e), ii = (e, t) => qn(t).format(e), si = (e, t = V()) => Mt(e, t), oi = K([he, ue], () => ti);
|
|
3726
|
+
K([he], () => ri);
|
|
3727
|
+
K([he], () => ni);
|
|
3728
|
+
K([he], () => ii);
|
|
3729
|
+
K([he, ue], () => si);
|
|
3730
|
+
function ft(e, t) {
|
|
3731
|
+
Rt(e, t);
|
|
3732
|
+
}
|
|
3733
|
+
const ct = {
|
|
3740
3734
|
en: {
|
|
3741
3735
|
finished: "Finished",
|
|
3742
3736
|
starting: "Starting in ",
|
|
@@ -3826,13 +3820,13 @@ const dt = {
|
|
|
3826
3820
|
days: "days"
|
|
3827
3821
|
}
|
|
3828
3822
|
};
|
|
3829
|
-
function
|
|
3823
|
+
function ai(e, t) {
|
|
3830
3824
|
if (e) {
|
|
3831
3825
|
const r = document.createElement("style");
|
|
3832
3826
|
r.innerHTML = t, e.appendChild(r);
|
|
3833
3827
|
}
|
|
3834
3828
|
}
|
|
3835
|
-
function
|
|
3829
|
+
function ui(e, t) {
|
|
3836
3830
|
const r = new URL(t);
|
|
3837
3831
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3838
3832
|
const i = document.createElement("style");
|
|
@@ -3841,7 +3835,7 @@ function li(e, t) {
|
|
|
3841
3835
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3842
3836
|
});
|
|
3843
3837
|
}
|
|
3844
|
-
function
|
|
3838
|
+
function hi(e, t, r) {
|
|
3845
3839
|
if (window.emMessageBus) {
|
|
3846
3840
|
const n = document.createElement("style");
|
|
3847
3841
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3849,10 +3843,10 @@ function fi(e, t, r) {
|
|
|
3849
3843
|
});
|
|
3850
3844
|
}
|
|
3851
3845
|
}
|
|
3852
|
-
function
|
|
3853
|
-
|
|
3846
|
+
function li(e) {
|
|
3847
|
+
Yt(e, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
3854
3848
|
}
|
|
3855
|
-
function
|
|
3849
|
+
function mt(e) {
|
|
3856
3850
|
let t, r, n = (
|
|
3857
3851
|
/*formatDate*/
|
|
3858
3852
|
e[10](
|
|
@@ -3871,9 +3865,9 @@ function pt(e) {
|
|
|
3871
3865
|
/*status*/
|
|
3872
3866
|
p[2] == "Finished" || /*status*/
|
|
3873
3867
|
p[2] == "Closing" || /*status*/
|
|
3874
|
-
p[2] == "Closed" ?
|
|
3868
|
+
p[2] == "Closed" ? mi : (
|
|
3875
3869
|
/*tournamentUntilStartDays*/
|
|
3876
|
-
p[5] > 0 ?
|
|
3870
|
+
p[5] > 0 ? ci : fi
|
|
3877
3871
|
)
|
|
3878
3872
|
);
|
|
3879
3873
|
}
|
|
@@ -3885,25 +3879,25 @@ function pt(e) {
|
|
|
3885
3879
|
p[2] == "Closing" || /*status*/
|
|
3886
3880
|
p[2] == "Closed"
|
|
3887
3881
|
)
|
|
3888
|
-
return
|
|
3882
|
+
return gi;
|
|
3889
3883
|
if (
|
|
3890
3884
|
/*tournamentUntilStartDays*/
|
|
3891
3885
|
p[5] > 0
|
|
3892
3886
|
)
|
|
3893
|
-
return
|
|
3887
|
+
return pi;
|
|
3894
3888
|
if (
|
|
3895
3889
|
/*tournamentLeftDays*/
|
|
3896
3890
|
p[4] > 0
|
|
3897
3891
|
)
|
|
3898
|
-
return
|
|
3892
|
+
return di;
|
|
3899
3893
|
}
|
|
3900
|
-
let H = L(e),
|
|
3894
|
+
let H = L(e), _ = H && H(e);
|
|
3901
3895
|
return {
|
|
3902
3896
|
c() {
|
|
3903
|
-
t =
|
|
3897
|
+
t = w("div"), r = w("div"), i = G(n), s = re(), o = w("div"), h = G(a), u = re(), l = w("div"), f = w("div"), S.c(), c = re(), _ && _.c(), x(r, "class", "StartDate"), x(r, "part", "StartDate"), x(o, "class", "EndDate"), x(o, "part", "EndDate"), x(t, "class", "TournamentDates"), x(t, "part", "TournamentDates"), x(f, "class", "ProgressBar"), x(f, "part", "ProgressBar"), x(l, "class", "ProgressBarWrapper"), x(l, "part", "ProgressBarWrapper");
|
|
3904
3898
|
},
|
|
3905
3899
|
m(p, B) {
|
|
3906
|
-
$(p, t, B),
|
|
3900
|
+
$(p, t, B), N(t, r), N(r, i), N(t, s), N(t, o), N(o, h), $(p, u, B), $(p, l, B), N(l, f), S.m(f, null), N(f, c), _ && _.m(f, null), d || (y = qt(
|
|
3907
3901
|
/*getDuration*/
|
|
3908
3902
|
e[9].call(null, l)
|
|
3909
3903
|
), d = !0);
|
|
@@ -3914,23 +3908,23 @@ function pt(e) {
|
|
|
3914
3908
|
p[10](
|
|
3915
3909
|
/*startdate*/
|
|
3916
3910
|
p[0]
|
|
3917
|
-
) + "") &&
|
|
3911
|
+
) + "") && k(i, n), B & /*enddate*/
|
|
3918
3912
|
2 && a !== (a = /*formatDate*/
|
|
3919
3913
|
p[10](
|
|
3920
3914
|
/*enddate*/
|
|
3921
3915
|
p[1]
|
|
3922
|
-
) + "") &&
|
|
3916
|
+
) + "") && k(h, a), A === (A = T(p)) && S ? S.p(p, B) : (S.d(1), S = A(p), S && (S.c(), S.m(f, c))), H === (H = L(p)) && _ ? _.p(p, B) : (_ && _.d(1), _ = H && H(p), _ && (_.c(), _.m(f, null)));
|
|
3923
3917
|
},
|
|
3924
3918
|
d(p) {
|
|
3925
|
-
p && (M(t), M(u), M(l)), S.d(),
|
|
3919
|
+
p && (M(t), M(u), M(l)), S.d(), _ && _.d(), d = !1, y();
|
|
3926
3920
|
}
|
|
3927
3921
|
};
|
|
3928
3922
|
}
|
|
3929
|
-
function
|
|
3923
|
+
function fi(e) {
|
|
3930
3924
|
let t;
|
|
3931
3925
|
return {
|
|
3932
3926
|
c() {
|
|
3933
|
-
t =
|
|
3927
|
+
t = w("div"), x(t, "class", "ProgressBarFill"), x(t, "part", "ProgressBarFill"), Je(
|
|
3934
3928
|
t,
|
|
3935
3929
|
"width",
|
|
3936
3930
|
/*getProgress*/
|
|
@@ -3942,7 +3936,7 @@ function mi(e) {
|
|
|
3942
3936
|
},
|
|
3943
3937
|
p(r, n) {
|
|
3944
3938
|
n & /*getProgress*/
|
|
3945
|
-
128 &&
|
|
3939
|
+
128 && Je(
|
|
3946
3940
|
t,
|
|
3947
3941
|
"width",
|
|
3948
3942
|
/*getProgress*/
|
|
@@ -3954,11 +3948,11 @@ function mi(e) {
|
|
|
3954
3948
|
}
|
|
3955
3949
|
};
|
|
3956
3950
|
}
|
|
3957
|
-
function
|
|
3951
|
+
function ci(e) {
|
|
3958
3952
|
let t;
|
|
3959
3953
|
return {
|
|
3960
3954
|
c() {
|
|
3961
|
-
t =
|
|
3955
|
+
t = w("div"), x(t, "class", "ProgressBarFillStarting"), x(t, "part", "ProgressBarFillStarting");
|
|
3962
3956
|
},
|
|
3963
3957
|
m(r, n) {
|
|
3964
3958
|
$(r, t, n);
|
|
@@ -3969,11 +3963,11 @@ function di(e) {
|
|
|
3969
3963
|
}
|
|
3970
3964
|
};
|
|
3971
3965
|
}
|
|
3972
|
-
function
|
|
3966
|
+
function mi(e) {
|
|
3973
3967
|
let t;
|
|
3974
3968
|
return {
|
|
3975
3969
|
c() {
|
|
3976
|
-
t =
|
|
3970
|
+
t = w("div"), x(t, "class", "ProgressBarFillEnd"), x(t, "part", "ProgressBarFillEnd");
|
|
3977
3971
|
},
|
|
3978
3972
|
m(r, n) {
|
|
3979
3973
|
$(r, t, n);
|
|
@@ -3984,37 +3978,37 @@ function pi(e) {
|
|
|
3984
3978
|
}
|
|
3985
3979
|
};
|
|
3986
3980
|
}
|
|
3987
|
-
function
|
|
3981
|
+
function di(e) {
|
|
3988
3982
|
let t, r, n, i = (
|
|
3989
3983
|
/*$_*/
|
|
3990
3984
|
e[8]("left") + ""
|
|
3991
3985
|
), s;
|
|
3992
3986
|
return {
|
|
3993
3987
|
c() {
|
|
3994
|
-
t =
|
|
3988
|
+
t = w("div"), r = G(
|
|
3995
3989
|
/*showRemain*/
|
|
3996
3990
|
e[6]
|
|
3997
|
-
), n =
|
|
3991
|
+
), n = re(), s = G(i), x(t, "class", "Remaining"), x(t, "part", "Remaining");
|
|
3998
3992
|
},
|
|
3999
3993
|
m(o, a) {
|
|
4000
|
-
$(o, t, a),
|
|
3994
|
+
$(o, t, a), N(t, r), N(t, n), N(t, s);
|
|
4001
3995
|
},
|
|
4002
3996
|
p(o, a) {
|
|
4003
3997
|
a & /*showRemain*/
|
|
4004
|
-
64 &&
|
|
3998
|
+
64 && k(
|
|
4005
3999
|
r,
|
|
4006
4000
|
/*showRemain*/
|
|
4007
4001
|
o[6]
|
|
4008
4002
|
), a & /*$_*/
|
|
4009
4003
|
256 && i !== (i = /*$_*/
|
|
4010
|
-
o[8]("left") + "") &&
|
|
4004
|
+
o[8]("left") + "") && k(s, i);
|
|
4011
4005
|
},
|
|
4012
4006
|
d(o) {
|
|
4013
4007
|
o && M(t);
|
|
4014
4008
|
}
|
|
4015
4009
|
};
|
|
4016
4010
|
}
|
|
4017
|
-
function
|
|
4011
|
+
function pi(e) {
|
|
4018
4012
|
let t, r = (
|
|
4019
4013
|
/*$_*/
|
|
4020
4014
|
e[8]("starting") + ""
|
|
@@ -4027,57 +4021,57 @@ function bi(e) {
|
|
|
4027
4021
|
), o;
|
|
4028
4022
|
return {
|
|
4029
4023
|
c() {
|
|
4030
|
-
t =
|
|
4024
|
+
t = w("div"), n = G(r), i = re(), o = G(s), x(t, "class", "Remaining"), x(t, "part", "Remaining");
|
|
4031
4025
|
},
|
|
4032
4026
|
m(a, h) {
|
|
4033
|
-
$(a, t, h),
|
|
4027
|
+
$(a, t, h), N(t, n), N(t, i), N(t, o);
|
|
4034
4028
|
},
|
|
4035
4029
|
p(a, h) {
|
|
4036
4030
|
h & /*$_*/
|
|
4037
4031
|
256 && r !== (r = /*$_*/
|
|
4038
|
-
a[8]("starting") + "") &&
|
|
4032
|
+
a[8]("starting") + "") && k(n, r), h & /*tournamentUntilStartDays*/
|
|
4039
4033
|
32 && s !== (s = /*getTextByDiff*/
|
|
4040
4034
|
a[11](
|
|
4041
4035
|
/*tournamentUntilStartDays*/
|
|
4042
4036
|
a[5]
|
|
4043
|
-
) + "") &&
|
|
4037
|
+
) + "") && k(o, s);
|
|
4044
4038
|
},
|
|
4045
4039
|
d(a) {
|
|
4046
4040
|
a && M(t);
|
|
4047
4041
|
}
|
|
4048
4042
|
};
|
|
4049
4043
|
}
|
|
4050
|
-
function
|
|
4044
|
+
function gi(e) {
|
|
4051
4045
|
let t, r = (
|
|
4052
4046
|
/*$_*/
|
|
4053
4047
|
e[8]("finished") + ""
|
|
4054
4048
|
), n;
|
|
4055
4049
|
return {
|
|
4056
4050
|
c() {
|
|
4057
|
-
t =
|
|
4051
|
+
t = w("div"), n = G(r), x(t, "class", "Finished"), x(t, "part", "Finished");
|
|
4058
4052
|
},
|
|
4059
4053
|
m(i, s) {
|
|
4060
|
-
$(i, t, s),
|
|
4054
|
+
$(i, t, s), N(t, n);
|
|
4061
4055
|
},
|
|
4062
4056
|
p(i, s) {
|
|
4063
4057
|
s & /*$_*/
|
|
4064
4058
|
256 && r !== (r = /*$_*/
|
|
4065
|
-
i[8]("finished") + "") &&
|
|
4059
|
+
i[8]("finished") + "") && k(n, r);
|
|
4066
4060
|
},
|
|
4067
4061
|
d(i) {
|
|
4068
4062
|
i && M(t);
|
|
4069
4063
|
}
|
|
4070
4064
|
};
|
|
4071
4065
|
}
|
|
4072
|
-
function
|
|
4066
|
+
function bi(e) {
|
|
4073
4067
|
let t, r = (
|
|
4074
4068
|
/*startdate*/
|
|
4075
4069
|
e[0] && /*enddate*/
|
|
4076
|
-
e[1] &&
|
|
4070
|
+
e[1] && mt(e)
|
|
4077
4071
|
);
|
|
4078
4072
|
return {
|
|
4079
4073
|
c() {
|
|
4080
|
-
t =
|
|
4074
|
+
t = w("div"), r && r.c(), x(t, "class", "TournamentDuration"), x(t, "part", "TournamentDuration");
|
|
4081
4075
|
},
|
|
4082
4076
|
m(n, i) {
|
|
4083
4077
|
$(n, t, i), r && r.m(t, null), e[17](t);
|
|
@@ -4085,7 +4079,7 @@ function Ei(e) {
|
|
|
4085
4079
|
p(n, [i]) {
|
|
4086
4080
|
/*startdate*/
|
|
4087
4081
|
n[0] && /*enddate*/
|
|
4088
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
4082
|
+
n[1] ? r ? r.p(n, i) : (r = mt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4089
4083
|
},
|
|
4090
4084
|
i: I,
|
|
4091
4085
|
o: I,
|
|
@@ -4094,45 +4088,45 @@ function Ei(e) {
|
|
|
4094
4088
|
}
|
|
4095
4089
|
};
|
|
4096
4090
|
}
|
|
4097
|
-
function
|
|
4091
|
+
function yi(e, t, r) {
|
|
4098
4092
|
let n, i;
|
|
4099
|
-
|
|
4093
|
+
Jt(e, oi, (m) => r(8, i = m));
|
|
4100
4094
|
let { startdate: s = "" } = t, { enddate: o = "" } = t, { status: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, d, y = "", T = "", A = "";
|
|
4101
4095
|
const S = () => {
|
|
4102
|
-
fetch(f).then((
|
|
4103
|
-
Object.keys(
|
|
4104
|
-
|
|
4096
|
+
fetch(f).then((O) => O.json()).then((O) => {
|
|
4097
|
+
Object.keys(O).forEach((U) => {
|
|
4098
|
+
ft(U, O[U]);
|
|
4105
4099
|
});
|
|
4106
|
-
}).catch((
|
|
4107
|
-
console.log(
|
|
4100
|
+
}).catch((O) => {
|
|
4101
|
+
console.log(O);
|
|
4108
4102
|
});
|
|
4109
4103
|
};
|
|
4110
|
-
Object.keys(
|
|
4111
|
-
|
|
4104
|
+
Object.keys(ct).forEach((m) => {
|
|
4105
|
+
ft(m, ct[m]);
|
|
4112
4106
|
});
|
|
4113
|
-
const L = (m) => new Date(m).getTime(), H = (m,
|
|
4107
|
+
const L = (m) => new Date(m).getTime(), H = (m, O) => (L(O) - L(m)) / (1e3 * 60), _ = () => {
|
|
4114
4108
|
const m = /* @__PURE__ */ new Date();
|
|
4115
4109
|
r(4, y = H(m, o)), r(5, T = H(m, s)), r(6, A = B(y));
|
|
4116
4110
|
}, p = (m) => {
|
|
4117
|
-
const
|
|
4118
|
-
let
|
|
4119
|
-
return `${
|
|
4111
|
+
const O = { month: "long" };
|
|
4112
|
+
let U = new Date(m), j = new Intl.DateTimeFormat(h, O).format(U);
|
|
4113
|
+
return `${U.getDate()} ${j}, ${U.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${U.getUTCFullYear()}`;
|
|
4120
4114
|
}, B = (m) => {
|
|
4121
|
-
const
|
|
4122
|
-
const R = Math.floor(
|
|
4115
|
+
const O = (j, R) => j + " " + i(R), U = (j) => {
|
|
4116
|
+
const R = Math.floor(j);
|
|
4123
4117
|
return R < 10 ? `0${R}` : `${R}`;
|
|
4124
4118
|
};
|
|
4125
4119
|
if (m < 1440) {
|
|
4126
|
-
const
|
|
4127
|
-
return [
|
|
4120
|
+
const j = m / 60, R = m % 60, jt = (R - Math.floor(R)) * 60;
|
|
4121
|
+
return [j, R, jt].map((kt) => U(kt)).join(":");
|
|
4128
4122
|
}
|
|
4129
|
-
return
|
|
4123
|
+
return O(Math.ceil(m / (60 * 24)), "days");
|
|
4130
4124
|
};
|
|
4131
|
-
|
|
4125
|
+
ir(() => {
|
|
4132
4126
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4133
4127
|
const m = setInterval(
|
|
4134
4128
|
() => {
|
|
4135
|
-
s && o &&
|
|
4129
|
+
s && o && _();
|
|
4136
4130
|
},
|
|
4137
4131
|
1e3
|
|
4138
4132
|
);
|
|
@@ -4140,8 +4134,8 @@ function _i(e, t, r) {
|
|
|
4140
4134
|
clearInterval(m);
|
|
4141
4135
|
};
|
|
4142
4136
|
});
|
|
4143
|
-
function
|
|
4144
|
-
|
|
4137
|
+
function le(m) {
|
|
4138
|
+
we[m ? "unshift" : "push"](() => {
|
|
4145
4139
|
d = m, r(3, d);
|
|
4146
4140
|
});
|
|
4147
4141
|
}
|
|
@@ -4152,16 +4146,16 @@ function _i(e, t, r) {
|
|
|
4152
4146
|
19 && r(7, n = () => {
|
|
4153
4147
|
if (y <= 0)
|
|
4154
4148
|
return 100;
|
|
4155
|
-
const m = H(s, o),
|
|
4156
|
-
return Math.floor((m - y) *
|
|
4149
|
+
const m = H(s, o), O = 100 / m;
|
|
4150
|
+
return Math.floor((m - y) * O);
|
|
4157
4151
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4158
|
-
19 && s && o &&
|
|
4159
|
-
4096 && h &&
|
|
4152
|
+
19 && s && o && _() && B(y), e.$$.dirty & /*lang*/
|
|
4153
|
+
4096 && h && _(), e.$$.dirty & /*lang, tournamentLeftDays*/
|
|
4160
4154
|
4112 && h && B(y), e.$$.dirty & /*translationurl*/
|
|
4161
4155
|
32768 && f && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4162
|
-
8200 && u && d &&
|
|
4163
|
-
16392 && l && d &&
|
|
4164
|
-
65544 && c && d &&
|
|
4156
|
+
8200 && u && d && ai(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4157
|
+
16392 && l && d && ui(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4158
|
+
65544 && c && d && hi(d, `${c}.Style`);
|
|
4165
4159
|
}, [
|
|
4166
4160
|
s,
|
|
4167
4161
|
o,
|
|
@@ -4172,7 +4166,7 @@ function _i(e, t, r) {
|
|
|
4172
4166
|
A,
|
|
4173
4167
|
n,
|
|
4174
4168
|
i,
|
|
4175
|
-
|
|
4169
|
+
_,
|
|
4176
4170
|
p,
|
|
4177
4171
|
B,
|
|
4178
4172
|
h,
|
|
@@ -4180,17 +4174,17 @@ function _i(e, t, r) {
|
|
|
4180
4174
|
l,
|
|
4181
4175
|
f,
|
|
4182
4176
|
c,
|
|
4183
|
-
|
|
4177
|
+
le
|
|
4184
4178
|
];
|
|
4185
4179
|
}
|
|
4186
|
-
class
|
|
4180
|
+
class Ei extends gr {
|
|
4187
4181
|
constructor(t) {
|
|
4188
|
-
super(),
|
|
4182
|
+
super(), dr(
|
|
4189
4183
|
this,
|
|
4190
4184
|
t,
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4185
|
+
yi,
|
|
4186
|
+
bi,
|
|
4187
|
+
pt,
|
|
4194
4188
|
{
|
|
4195
4189
|
startdate: 0,
|
|
4196
4190
|
enddate: 1,
|
|
@@ -4201,7 +4195,7 @@ class xi extends yr {
|
|
|
4201
4195
|
translationurl: 15,
|
|
4202
4196
|
mbsource: 16
|
|
4203
4197
|
},
|
|
4204
|
-
|
|
4198
|
+
li
|
|
4205
4199
|
);
|
|
4206
4200
|
}
|
|
4207
4201
|
get startdate() {
|
|
@@ -4253,7 +4247,7 @@ class xi extends yr {
|
|
|
4253
4247
|
this.$$set({ mbsource: t }), D();
|
|
4254
4248
|
}
|
|
4255
4249
|
}
|
|
4256
|
-
|
|
4250
|
+
pr(Ei, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4257
4251
|
export {
|
|
4258
|
-
|
|
4252
|
+
Ei as default
|
|
4259
4253
|
};
|