@everymatrix/casino-tournaments-tab 1.76.1 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsTab-QRzasMOm.js → CasinoTournamentsTab-BAyHxjvF.js} +655 -669
- package/components/CasinoTournamentsTab-C8FtpPWb.cjs +18 -0
- package/components/{CasinoTournamentsTab-BkyLzpm8.js → CasinoTournamentsTab-ogbJHHp_.js} +600 -614
- package/es2015/casino-tournaments-tab.cjs +1 -1
- package/es2015/casino-tournaments-tab.js +1 -1
- package/esnext/casino-tournaments-tab.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsTab-B516b9oL.cjs +0 -18
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var hr = Object.defineProperty, lr = Object.defineProperties;
|
|
2
|
+
var fr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var se = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Ye = Object.prototype.hasOwnProperty, qe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ee = (e, t, r) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, R = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Ye.call(t, r) && Ee(e, r, t[r]);
|
|
8
8
|
if (se)
|
|
9
9
|
for (var r of se(t))
|
|
10
|
-
|
|
10
|
+
qe.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, ae = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, ae = (e, t) => lr(e, fr(t));
|
|
13
|
+
var Ke = (e, t) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var n in e)
|
|
16
|
-
|
|
16
|
+
Ye.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
17
17
|
if (e != null && se)
|
|
18
18
|
for (var n of se(e))
|
|
19
|
-
t.indexOf(n) < 0 &&
|
|
19
|
+
t.indexOf(n) < 0 && qe.call(e, n) && (r[n] = e[n]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var x = (e, t, r) => (
|
|
23
|
-
var
|
|
22
|
+
var x = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
23
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
24
24
|
var o = (h) => {
|
|
25
25
|
try {
|
|
26
26
|
a(r.next(h));
|
|
@@ -38,25 +38,25 @@ var rt = (e, t, r) => new Promise((n, i) => {
|
|
|
38
38
|
});
|
|
39
39
|
function w() {
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Pt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function tt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function te(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(Pt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Xe(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ot(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function cr(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function pr(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
61
|
for (const n of t)
|
|
62
62
|
n(void 0);
|
|
@@ -68,14 +68,14 @@ function dr(e, ...t) {
|
|
|
68
68
|
function C(e, t) {
|
|
69
69
|
e.appendChild(t);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const n =
|
|
71
|
+
function dr(e, t, r) {
|
|
72
|
+
const n = mr(e);
|
|
73
73
|
if (!n.getElementById(t)) {
|
|
74
74
|
const i = I("style");
|
|
75
|
-
i.id = t, i.textContent = r,
|
|
75
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function mr(e) {
|
|
79
79
|
if (!e)
|
|
80
80
|
return document;
|
|
81
81
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -85,7 +85,7 @@ function vr(e) {
|
|
|
85
85
|
t
|
|
86
86
|
) : e.ownerDocument;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function br(e, t) {
|
|
89
89
|
return C(
|
|
90
90
|
/** @type {Document} */
|
|
91
91
|
e.head || e,
|
|
@@ -98,33 +98,33 @@ function re(e, t, r) {
|
|
|
98
98
|
function z(e) {
|
|
99
99
|
e.parentNode && e.parentNode.removeChild(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function gr(e, t) {
|
|
102
102
|
for (let r = 0; r < e.length; r += 1)
|
|
103
103
|
e[r] && e[r].d(t);
|
|
104
104
|
}
|
|
105
105
|
function I(e) {
|
|
106
106
|
return document.createElement(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ze(e) {
|
|
109
109
|
return document.createTextNode(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function rt() {
|
|
112
|
+
return ze(" ");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function yr(e, t, r, n) {
|
|
115
115
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
116
|
}
|
|
117
117
|
function S(e, t, r) {
|
|
118
118
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function vr(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function It(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function _r(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
@@ -137,22 +137,22 @@ let q;
|
|
|
137
137
|
function Y(e) {
|
|
138
138
|
q = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Er() {
|
|
141
141
|
if (!q)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
143
|
return q;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function Nt(e) {
|
|
146
|
+
Er().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const D = [],
|
|
148
|
+
const D = [], Pe = [];
|
|
149
149
|
let G = [];
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
|
|
150
|
+
const nt = [], xr = /* @__PURE__ */ Promise.resolve();
|
|
151
|
+
let Oe = !1;
|
|
152
|
+
function Tr() {
|
|
153
|
+
Oe || (Oe = !0, xr.then(P));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ie(e) {
|
|
156
156
|
G.push(e);
|
|
157
157
|
}
|
|
158
158
|
const xe = /* @__PURE__ */ new Set();
|
|
@@ -165,56 +165,56 @@ function P() {
|
|
|
165
165
|
try {
|
|
166
166
|
for (; $ < D.length; ) {
|
|
167
167
|
const t = D[$];
|
|
168
|
-
$++, Y(t),
|
|
168
|
+
$++, Y(t), Sr(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
171
|
throw D.length = 0, $ = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (Y(null), D.length = 0, $ = 0;
|
|
174
|
-
|
|
173
|
+
for (Y(null), D.length = 0, $ = 0; Pe.length; )
|
|
174
|
+
Pe.pop()();
|
|
175
175
|
for (let t = 0; t < G.length; t += 1) {
|
|
176
176
|
const r = G[t];
|
|
177
177
|
xe.has(r) || (xe.add(r), r());
|
|
178
178
|
}
|
|
179
179
|
G.length = 0;
|
|
180
180
|
} while (D.length);
|
|
181
|
-
for (;
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
for (; nt.length; )
|
|
182
|
+
nt.pop()();
|
|
183
|
+
Oe = !1, xe.clear(), Y(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Sr(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
187
|
e.update(), te(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
189
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function wr(e) {
|
|
193
193
|
const t = [], r = [];
|
|
194
194
|
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
e && e.i && (
|
|
196
|
+
const Hr = /* @__PURE__ */ new Set();
|
|
197
|
+
function Br(e, t) {
|
|
198
|
+
e && e.i && (Hr.delete(e), e.i(t));
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function it(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ar(e, t, r) {
|
|
204
204
|
const { fragment: n, after_update: i } = e.$$;
|
|
205
|
-
n && n.m(t, r),
|
|
206
|
-
const o = e.$$.on_mount.map(
|
|
205
|
+
n && n.m(t, r), Ie(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(Pt).filter(Xe);
|
|
207
207
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
208
|
-
}), i.forEach(
|
|
208
|
+
}), i.forEach(Ie);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Pr(e, t) {
|
|
211
211
|
const r = e.$$;
|
|
212
|
-
r.fragment !== null && (
|
|
212
|
+
r.fragment !== null && (wr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
214
|
+
function Or(e, t) {
|
|
215
|
+
e.$$.dirty[0] === -1 && (D.push(e), Tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
218
218
|
const h = q;
|
|
219
219
|
Y(e);
|
|
220
220
|
const u = e.$$ = {
|
|
@@ -224,7 +224,7 @@ function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
224
224
|
props: o,
|
|
225
225
|
update: w,
|
|
226
226
|
not_equal: i,
|
|
227
|
-
bound:
|
|
227
|
+
bound: tt(),
|
|
228
228
|
// lifecycle
|
|
229
229
|
on_mount: [],
|
|
230
230
|
on_destroy: [],
|
|
@@ -233,28 +233,28 @@ function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
233
233
|
after_update: [],
|
|
234
234
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
|
-
callbacks:
|
|
236
|
+
callbacks: tt(),
|
|
237
237
|
dirty: a,
|
|
238
238
|
skip_bound: !1,
|
|
239
239
|
root: t.target || h.$$.root
|
|
240
240
|
};
|
|
241
241
|
s && s(u.root);
|
|
242
242
|
let l = !1;
|
|
243
|
-
if (u.ctx = r
|
|
244
|
-
const
|
|
245
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
246
|
-
})
|
|
243
|
+
if (u.ctx = r(e, t.props || {}, (f, c, ...p) => {
|
|
244
|
+
const m = p.length ? p[0] : c;
|
|
245
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), l && Or(e, f)), c;
|
|
246
|
+
}), u.update(), l = !0, te(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
|
-
const f =
|
|
248
|
+
const f = vr(t.target);
|
|
249
249
|
u.fragment && u.fragment.l(f), f.forEach(z);
|
|
250
250
|
} else
|
|
251
251
|
u.fragment && u.fragment.c();
|
|
252
|
-
t.intro &&
|
|
252
|
+
t.intro && Br(e.$$.fragment), Ar(e, t.target, t.anchor), P();
|
|
253
253
|
}
|
|
254
254
|
Y(h);
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
256
|
+
let Lt;
|
|
257
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
258
258
|
constructor(t, r, n) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
@@ -291,7 +291,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
connectedCallback() {
|
|
294
|
-
return
|
|
294
|
+
return et(this, null, function* () {
|
|
295
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
296
296
|
let t = function(o) {
|
|
297
297
|
return () => {
|
|
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
315
315
|
};
|
|
316
316
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
317
317
|
return;
|
|
318
|
-
const r = {}, n =
|
|
318
|
+
const r = {}, n = _r(this);
|
|
319
319
|
for (const o of this.$$s)
|
|
320
320
|
o in n && (r[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
@@ -404,8 +404,8 @@ function le(e, t, r, n) {
|
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
let s = class extends
|
|
407
|
+
function Nr(e, t, r, n, i, o) {
|
|
408
|
+
let s = class extends Lt {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(e, r, i), this.$$p_d = t;
|
|
411
411
|
}
|
|
@@ -435,7 +435,7 @@ function Mr(e, t, r, n, i, o) {
|
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
436
|
s, s;
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class Lr {
|
|
439
439
|
constructor() {
|
|
440
440
|
/**
|
|
441
441
|
* ### PRIVATE API
|
|
@@ -456,7 +456,7 @@ class Rr {
|
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
|
|
459
|
+
Pr(this, 1), this.$destroy = w;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,7 +465,7 @@ class Rr {
|
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
467
|
$on(t, r) {
|
|
468
|
-
if (!
|
|
468
|
+
if (!Xe(r))
|
|
469
469
|
return w;
|
|
470
470
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
471
|
return n.push(r), () => {
|
|
@@ -478,21 +478,21 @@ class Rr {
|
|
|
478
478
|
* @returns {void}
|
|
479
479
|
*/
|
|
480
480
|
$set(t) {
|
|
481
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
const
|
|
485
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
486
|
-
const
|
|
484
|
+
const Cr = "4";
|
|
485
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
|
|
486
|
+
const Mr = (e) => (r) => {
|
|
487
487
|
Object.keys(e).map((n) => {
|
|
488
488
|
if (r.data && r.data.type == n) {
|
|
489
|
-
const i = r.data, { type: o } = i, s =
|
|
489
|
+
const i = r.data, { type: o } = i, s = Ke(i, ["type"]);
|
|
490
490
|
e[n](s);
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
|
-
},
|
|
494
|
-
const t =
|
|
495
|
-
|
|
493
|
+
}, Rr = (e) => {
|
|
494
|
+
const t = Mr(e);
|
|
495
|
+
Nt(() => (window.addEventListener("message", t, !1), () => {
|
|
496
496
|
window.removeEventListener("message", t);
|
|
497
497
|
}));
|
|
498
498
|
};
|
|
@@ -527,17 +527,17 @@ function A(e, t) {
|
|
|
527
527
|
}
|
|
528
528
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
529
529
|
}
|
|
530
|
-
var
|
|
531
|
-
return
|
|
530
|
+
var v = function() {
|
|
531
|
+
return v = Object.assign || function(t) {
|
|
532
532
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
533
533
|
r = arguments[n];
|
|
534
534
|
for (var o in r)
|
|
535
535
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
536
536
|
}
|
|
537
537
|
return t;
|
|
538
|
-
},
|
|
538
|
+
}, v.apply(this, arguments);
|
|
539
539
|
};
|
|
540
|
-
function
|
|
540
|
+
function $r(e, t) {
|
|
541
541
|
var r = {};
|
|
542
542
|
for (var n in e)
|
|
543
543
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -546,7 +546,7 @@ function Gr(e, t) {
|
|
|
546
546
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
547
547
|
return r;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Le(e) {
|
|
550
550
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
551
551
|
if (r)
|
|
552
552
|
return r.call(e);
|
|
@@ -558,7 +558,7 @@ function Ce(e) {
|
|
|
558
558
|
};
|
|
559
559
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Ce(e, t) {
|
|
562
562
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
563
563
|
if (!r)
|
|
564
564
|
return e;
|
|
@@ -587,13 +587,13 @@ function F(e, t, r) {
|
|
|
587
587
|
function B(e) {
|
|
588
588
|
return typeof e == "function";
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Ct(e) {
|
|
591
591
|
var t = function(n) {
|
|
592
592
|
Error.call(n), n.stack = new Error().stack;
|
|
593
593
|
}, r = e(t);
|
|
594
594
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
595
595
|
}
|
|
596
|
-
var Te =
|
|
596
|
+
var Te = Ct(function(e) {
|
|
597
597
|
return function(r) {
|
|
598
598
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
599
599
|
` + r.map(function(n, i) {
|
|
@@ -602,13 +602,13 @@ var Te = Rt(function(e) {
|
|
|
602
602
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
603
603
|
};
|
|
604
604
|
});
|
|
605
|
-
function
|
|
605
|
+
function Me(e, t) {
|
|
606
606
|
if (e) {
|
|
607
607
|
var r = e.indexOf(t);
|
|
608
608
|
0 <= r && e.splice(r, 1);
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
var
|
|
611
|
+
var be = function() {
|
|
612
612
|
function e(t) {
|
|
613
613
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
614
614
|
}
|
|
@@ -620,12 +620,12 @@ var de = function() {
|
|
|
620
620
|
if (s)
|
|
621
621
|
if (this._parentage = null, Array.isArray(s))
|
|
622
622
|
try {
|
|
623
|
-
for (var a =
|
|
623
|
+
for (var a = Le(s), h = a.next(); !h.done; h = a.next()) {
|
|
624
624
|
var u = h.value;
|
|
625
625
|
u.remove(this);
|
|
626
626
|
}
|
|
627
|
-
} catch (
|
|
628
|
-
t = { error:
|
|
627
|
+
} catch (y) {
|
|
628
|
+
t = { error: y };
|
|
629
629
|
} finally {
|
|
630
630
|
try {
|
|
631
631
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -640,23 +640,23 @@ var de = function() {
|
|
|
640
640
|
if (B(l))
|
|
641
641
|
try {
|
|
642
642
|
l();
|
|
643
|
-
} catch (
|
|
644
|
-
o =
|
|
643
|
+
} catch (y) {
|
|
644
|
+
o = y instanceof Te ? y.errors : [y];
|
|
645
645
|
}
|
|
646
646
|
var f = this._finalizers;
|
|
647
647
|
if (f) {
|
|
648
648
|
this._finalizers = null;
|
|
649
649
|
try {
|
|
650
|
-
for (var c =
|
|
651
|
-
var
|
|
650
|
+
for (var c = Le(f), p = c.next(); !p.done; p = c.next()) {
|
|
651
|
+
var m = p.value;
|
|
652
652
|
try {
|
|
653
|
-
|
|
654
|
-
} catch (
|
|
655
|
-
o = o != null ? o : [],
|
|
653
|
+
ot(m);
|
|
654
|
+
} catch (y) {
|
|
655
|
+
o = o != null ? o : [], y instanceof Te ? o = F(F([], Ce(o)), Ce(y.errors)) : o.push(y);
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
} catch (
|
|
659
|
-
n = { error:
|
|
658
|
+
} catch (y) {
|
|
659
|
+
n = { error: y };
|
|
660
660
|
} finally {
|
|
661
661
|
try {
|
|
662
662
|
p && !p.done && (i = c.return) && i.call(c);
|
|
@@ -673,7 +673,7 @@ var de = function() {
|
|
|
673
673
|
var r;
|
|
674
674
|
if (t && t !== this)
|
|
675
675
|
if (this.closed)
|
|
676
|
-
|
|
676
|
+
ot(t);
|
|
677
677
|
else {
|
|
678
678
|
if (t instanceof e) {
|
|
679
679
|
if (t.closed || t._hasParent(this))
|
|
@@ -690,56 +690,56 @@ var de = function() {
|
|
|
690
690
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
691
691
|
}, e.prototype._removeParent = function(t) {
|
|
692
692
|
var r = this._parentage;
|
|
693
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
693
|
+
r === t ? this._parentage = null : Array.isArray(r) && Me(r, t);
|
|
694
694
|
}, e.prototype.remove = function(t) {
|
|
695
695
|
var r = this._finalizers;
|
|
696
|
-
r &&
|
|
696
|
+
r && Me(r, t), t instanceof e && t._removeParent(this);
|
|
697
697
|
}, e.EMPTY = function() {
|
|
698
698
|
var t = new e();
|
|
699
699
|
return t.closed = !0, t;
|
|
700
700
|
}(), e;
|
|
701
|
-
}(),
|
|
702
|
-
function
|
|
703
|
-
return e instanceof
|
|
701
|
+
}(), Mt = be.EMPTY;
|
|
702
|
+
function Rt(e) {
|
|
703
|
+
return e instanceof be || e && "closed" in e && B(e.remove) && B(e.add) && B(e.unsubscribe);
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function ot(e) {
|
|
706
706
|
B(e) ? e() : e.unsubscribe();
|
|
707
707
|
}
|
|
708
|
-
var
|
|
708
|
+
var Ur = {
|
|
709
709
|
onUnhandledError: null,
|
|
710
710
|
onStoppedNotification: null,
|
|
711
711
|
Promise: void 0,
|
|
712
712
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
713
713
|
useDeprecatedNextContext: !1
|
|
714
|
-
},
|
|
714
|
+
}, Dr = {
|
|
715
715
|
setTimeout: function(e, t) {
|
|
716
716
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
717
717
|
r[n - 2] = arguments[n];
|
|
718
|
-
return setTimeout.apply(void 0, F([e, t],
|
|
718
|
+
return setTimeout.apply(void 0, F([e, t], Ce(r)));
|
|
719
719
|
},
|
|
720
720
|
clearTimeout: function(e) {
|
|
721
721
|
return clearTimeout(e);
|
|
722
722
|
},
|
|
723
723
|
delegate: void 0
|
|
724
724
|
};
|
|
725
|
-
function
|
|
726
|
-
|
|
725
|
+
function Gr(e) {
|
|
726
|
+
Dr.setTimeout(function() {
|
|
727
727
|
throw e;
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function st() {
|
|
731
731
|
}
|
|
732
732
|
function fe(e) {
|
|
733
733
|
e();
|
|
734
734
|
}
|
|
735
|
-
var
|
|
735
|
+
var $t = function(e) {
|
|
736
736
|
A(t, e);
|
|
737
737
|
function t(r) {
|
|
738
738
|
var n = e.call(this) || this;
|
|
739
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
739
|
+
return n.isStopped = !1, r ? (n.destination = r, Rt(r) && r.add(n)) : n.destination = kr, n;
|
|
740
740
|
}
|
|
741
741
|
return t.create = function(r, n, i) {
|
|
742
|
-
return new
|
|
742
|
+
return new Re(r, n, i);
|
|
743
743
|
}, t.prototype.next = function(r) {
|
|
744
744
|
this.isStopped || this._next(r);
|
|
745
745
|
}, t.prototype.error = function(r) {
|
|
@@ -763,11 +763,7 @@ var Gt = function(e) {
|
|
|
763
763
|
this.unsubscribe();
|
|
764
764
|
}
|
|
765
765
|
}, t;
|
|
766
|
-
}(
|
|
767
|
-
function Se(e, t) {
|
|
768
|
-
return kr.call(e, t);
|
|
769
|
-
}
|
|
770
|
-
var Vr = function() {
|
|
766
|
+
}(be), Fr = function() {
|
|
771
767
|
function e(t) {
|
|
772
768
|
this.partialObserver = t;
|
|
773
769
|
}
|
|
@@ -798,55 +794,43 @@ var Vr = function() {
|
|
|
798
794
|
ue(r);
|
|
799
795
|
}
|
|
800
796
|
}, e;
|
|
801
|
-
}(),
|
|
797
|
+
}(), Re = function(e) {
|
|
802
798
|
A(t, e);
|
|
803
799
|
function t(r, n, i) {
|
|
804
800
|
var o = e.call(this) || this, s;
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
};
|
|
811
|
-
else {
|
|
812
|
-
var a;
|
|
813
|
-
o && Dt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
814
|
-
return o.unsubscribe();
|
|
815
|
-
}, s = {
|
|
816
|
-
next: r.next && Se(r.next, a),
|
|
817
|
-
error: r.error && Se(r.error, a),
|
|
818
|
-
complete: r.complete && Se(r.complete, a)
|
|
819
|
-
}) : s = r;
|
|
820
|
-
}
|
|
821
|
-
return o.destination = new Vr(s), o;
|
|
801
|
+
return B(r) || !r ? s = {
|
|
802
|
+
next: r != null ? r : void 0,
|
|
803
|
+
error: n != null ? n : void 0,
|
|
804
|
+
complete: i != null ? i : void 0
|
|
805
|
+
} : s = r, o.destination = new Fr(s), o;
|
|
822
806
|
}
|
|
823
807
|
return t;
|
|
824
|
-
}(
|
|
808
|
+
}($t);
|
|
825
809
|
function ue(e) {
|
|
826
|
-
|
|
810
|
+
Gr(e);
|
|
827
811
|
}
|
|
828
|
-
function
|
|
812
|
+
function jr(e) {
|
|
829
813
|
throw e;
|
|
830
814
|
}
|
|
831
|
-
var
|
|
815
|
+
var kr = {
|
|
832
816
|
closed: !0,
|
|
833
|
-
next:
|
|
834
|
-
error:
|
|
835
|
-
complete:
|
|
836
|
-
},
|
|
817
|
+
next: st,
|
|
818
|
+
error: jr,
|
|
819
|
+
complete: st
|
|
820
|
+
}, Vr = function() {
|
|
837
821
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
838
822
|
}();
|
|
839
|
-
function
|
|
823
|
+
function Xr(e) {
|
|
840
824
|
return e;
|
|
841
825
|
}
|
|
842
|
-
function
|
|
843
|
-
return e.length === 0 ?
|
|
826
|
+
function zr(e) {
|
|
827
|
+
return e.length === 0 ? Xr : e.length === 1 ? e[0] : function(r) {
|
|
844
828
|
return e.reduce(function(n, i) {
|
|
845
829
|
return i(n);
|
|
846
830
|
}, r);
|
|
847
831
|
};
|
|
848
832
|
}
|
|
849
|
-
var
|
|
833
|
+
var at = function() {
|
|
850
834
|
function e(t) {
|
|
851
835
|
t && (this._subscribe = t);
|
|
852
836
|
}
|
|
@@ -854,7 +838,7 @@ var ht = function() {
|
|
|
854
838
|
var r = new e();
|
|
855
839
|
return r.source = this, r.operator = t, r;
|
|
856
840
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
857
|
-
var i = this, o =
|
|
841
|
+
var i = this, o = Zr(t) ? t : new Re(t, r, n);
|
|
858
842
|
return fe(function() {
|
|
859
843
|
var s = i, a = s.operator, h = s.source;
|
|
860
844
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -867,8 +851,8 @@ var ht = function() {
|
|
|
867
851
|
}
|
|
868
852
|
}, e.prototype.forEach = function(t, r) {
|
|
869
853
|
var n = this;
|
|
870
|
-
return r =
|
|
871
|
-
var s = new
|
|
854
|
+
return r = ut(r), new r(function(i, o) {
|
|
855
|
+
var s = new Re({
|
|
872
856
|
next: function(a) {
|
|
873
857
|
try {
|
|
874
858
|
t(a);
|
|
@@ -884,15 +868,15 @@ var ht = function() {
|
|
|
884
868
|
}, e.prototype._subscribe = function(t) {
|
|
885
869
|
var r;
|
|
886
870
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
887
|
-
}, e.prototype[
|
|
871
|
+
}, e.prototype[Vr] = function() {
|
|
888
872
|
return this;
|
|
889
873
|
}, e.prototype.pipe = function() {
|
|
890
874
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
891
875
|
t[r] = arguments[r];
|
|
892
|
-
return
|
|
876
|
+
return zr(t)(this);
|
|
893
877
|
}, e.prototype.toPromise = function(t) {
|
|
894
878
|
var r = this;
|
|
895
|
-
return t =
|
|
879
|
+
return t = ut(t), new t(function(n, i) {
|
|
896
880
|
var o;
|
|
897
881
|
r.subscribe(function(s) {
|
|
898
882
|
return o = s;
|
|
@@ -906,32 +890,32 @@ var ht = function() {
|
|
|
906
890
|
return new e(t);
|
|
907
891
|
}, e;
|
|
908
892
|
}();
|
|
909
|
-
function
|
|
893
|
+
function ut(e) {
|
|
910
894
|
var t;
|
|
911
|
-
return (t = e != null ? e :
|
|
895
|
+
return (t = e != null ? e : Ur.Promise) !== null && t !== void 0 ? t : Promise;
|
|
912
896
|
}
|
|
913
|
-
function
|
|
897
|
+
function Wr(e) {
|
|
914
898
|
return e && B(e.next) && B(e.error) && B(e.complete);
|
|
915
899
|
}
|
|
916
|
-
function
|
|
917
|
-
return e && e instanceof
|
|
900
|
+
function Zr(e) {
|
|
901
|
+
return e && e instanceof $t || Wr(e) && Rt(e);
|
|
918
902
|
}
|
|
919
|
-
var
|
|
903
|
+
var Qr = Ct(function(e) {
|
|
920
904
|
return function() {
|
|
921
905
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
922
906
|
};
|
|
923
|
-
}),
|
|
907
|
+
}), Ut = function(e) {
|
|
924
908
|
A(t, e);
|
|
925
909
|
function t() {
|
|
926
910
|
var r = e.call(this) || this;
|
|
927
911
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
928
912
|
}
|
|
929
913
|
return t.prototype.lift = function(r) {
|
|
930
|
-
var n = new
|
|
914
|
+
var n = new ht(this, this);
|
|
931
915
|
return n.operator = r, n;
|
|
932
916
|
}, t.prototype._throwIfClosed = function() {
|
|
933
917
|
if (this.closed)
|
|
934
|
-
throw new
|
|
918
|
+
throw new Qr();
|
|
935
919
|
}, t.prototype.next = function(r) {
|
|
936
920
|
var n = this;
|
|
937
921
|
fe(function() {
|
|
@@ -939,7 +923,7 @@ var qr = Rt(function(e) {
|
|
|
939
923
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
940
924
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
941
925
|
try {
|
|
942
|
-
for (var s =
|
|
926
|
+
for (var s = Le(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
943
927
|
var h = a.value;
|
|
944
928
|
h.next(r);
|
|
945
929
|
}
|
|
@@ -988,19 +972,19 @@ var qr = Rt(function(e) {
|
|
|
988
972
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
989
973
|
}, t.prototype._innerSubscribe = function(r) {
|
|
990
974
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
991
|
-
return o || s ?
|
|
992
|
-
n.currentObservers = null,
|
|
975
|
+
return o || s ? Mt : (this.currentObservers = null, a.push(r), new be(function() {
|
|
976
|
+
n.currentObservers = null, Me(a, r);
|
|
993
977
|
}));
|
|
994
978
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
995
979
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
996
980
|
i ? r.error(o) : s && r.complete();
|
|
997
981
|
}, t.prototype.asObservable = function() {
|
|
998
|
-
var r = new
|
|
982
|
+
var r = new at();
|
|
999
983
|
return r.source = this, r;
|
|
1000
984
|
}, t.create = function(r, n) {
|
|
1001
|
-
return new
|
|
985
|
+
return new ht(r, n);
|
|
1002
986
|
}, t;
|
|
1003
|
-
}(
|
|
987
|
+
}(at), ht = function(e) {
|
|
1004
988
|
A(t, e);
|
|
1005
989
|
function t(r, n) {
|
|
1006
990
|
var i = e.call(this) || this;
|
|
@@ -1017,17 +1001,17 @@ var qr = Rt(function(e) {
|
|
|
1017
1001
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1018
1002
|
}, t.prototype._subscribe = function(r) {
|
|
1019
1003
|
var n, i;
|
|
1020
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1004
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
1021
1005
|
}, t;
|
|
1022
|
-
}(
|
|
1006
|
+
}(Ut), Dt = {
|
|
1023
1007
|
now: function() {
|
|
1024
|
-
return (
|
|
1008
|
+
return (Dt.delegate || Date).now();
|
|
1025
1009
|
},
|
|
1026
1010
|
delegate: void 0
|
|
1027
|
-
},
|
|
1011
|
+
}, Jr = function(e) {
|
|
1028
1012
|
A(t, e);
|
|
1029
1013
|
function t(r, n, i) {
|
|
1030
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1014
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
1031
1015
|
var o = e.call(this) || this;
|
|
1032
1016
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1033
1017
|
}
|
|
@@ -1047,15 +1031,15 @@ var qr = Rt(function(e) {
|
|
|
1047
1031
|
u && o.splice(0, u + 1);
|
|
1048
1032
|
}
|
|
1049
1033
|
}, t;
|
|
1050
|
-
}(
|
|
1051
|
-
const
|
|
1052
|
-
if (
|
|
1053
|
-
const r = new
|
|
1054
|
-
|
|
1034
|
+
}(Ut);
|
|
1035
|
+
const lt = [], ft = {}, Yr = (e, t = 0) => {
|
|
1036
|
+
if (lt.indexOf(e) == -1) {
|
|
1037
|
+
const r = new Jr(t);
|
|
1038
|
+
ft[e] = r, lt.push(e);
|
|
1055
1039
|
}
|
|
1056
|
-
return
|
|
1040
|
+
return ft[e];
|
|
1057
1041
|
}, U = [];
|
|
1058
|
-
function
|
|
1042
|
+
function qr(e, t) {
|
|
1059
1043
|
return {
|
|
1060
1044
|
subscribe: ge(e, t).subscribe
|
|
1061
1045
|
};
|
|
@@ -1064,7 +1048,7 @@ function ge(e, t = w) {
|
|
|
1064
1048
|
let r;
|
|
1065
1049
|
const n = /* @__PURE__ */ new Set();
|
|
1066
1050
|
function i(a) {
|
|
1067
|
-
if (
|
|
1051
|
+
if (Ot(e, a) && (e = a, r)) {
|
|
1068
1052
|
const h = !U.length;
|
|
1069
1053
|
for (const u of n)
|
|
1070
1054
|
u[1](), U.push(u, e);
|
|
@@ -1091,7 +1075,7 @@ function W(e, t, r) {
|
|
|
1091
1075
|
if (!i.every(Boolean))
|
|
1092
1076
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1093
1077
|
const o = t.length < 2;
|
|
1094
|
-
return
|
|
1078
|
+
return qr(r, (s, a) => {
|
|
1095
1079
|
let h = !1;
|
|
1096
1080
|
const u = [];
|
|
1097
1081
|
let l = 0, f = w;
|
|
@@ -1099,16 +1083,16 @@ function W(e, t, r) {
|
|
|
1099
1083
|
if (l)
|
|
1100
1084
|
return;
|
|
1101
1085
|
f();
|
|
1102
|
-
const
|
|
1103
|
-
o ? s(
|
|
1086
|
+
const m = t(n ? u[0] : u, s, a);
|
|
1087
|
+
o ? s(m) : f = Xe(m) ? m : w;
|
|
1104
1088
|
}, p = i.map(
|
|
1105
|
-
(
|
|
1106
|
-
|
|
1089
|
+
(m, y) => pr(
|
|
1090
|
+
m,
|
|
1107
1091
|
(T) => {
|
|
1108
|
-
u[
|
|
1092
|
+
u[y] = T, l &= ~(1 << y), h && c();
|
|
1109
1093
|
},
|
|
1110
1094
|
() => {
|
|
1111
|
-
l |= 1 <<
|
|
1095
|
+
l |= 1 << y;
|
|
1112
1096
|
}
|
|
1113
1097
|
)
|
|
1114
1098
|
);
|
|
@@ -1117,70 +1101,70 @@ function W(e, t, r) {
|
|
|
1117
1101
|
};
|
|
1118
1102
|
});
|
|
1119
1103
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return e
|
|
1104
|
+
function Kr(e) {
|
|
1105
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1122
1106
|
}
|
|
1123
|
-
var
|
|
1124
|
-
return
|
|
1107
|
+
var en = function(t) {
|
|
1108
|
+
return tn(t) && !rn(t);
|
|
1125
1109
|
};
|
|
1126
|
-
function
|
|
1110
|
+
function tn(e) {
|
|
1127
1111
|
return !!e && typeof e == "object";
|
|
1128
1112
|
}
|
|
1129
|
-
function
|
|
1113
|
+
function rn(e) {
|
|
1130
1114
|
var t = Object.prototype.toString.call(e);
|
|
1131
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1115
|
+
return t === "[object RegExp]" || t === "[object Date]" || sn(e);
|
|
1132
1116
|
}
|
|
1133
|
-
var
|
|
1134
|
-
function
|
|
1135
|
-
return e.$$typeof ===
|
|
1117
|
+
var nn = typeof Symbol == "function" && Symbol.for, on = nn ? Symbol.for("react.element") : 60103;
|
|
1118
|
+
function sn(e) {
|
|
1119
|
+
return e.$$typeof === on;
|
|
1136
1120
|
}
|
|
1137
|
-
function
|
|
1121
|
+
function an(e) {
|
|
1138
1122
|
return Array.isArray(e) ? [] : {};
|
|
1139
1123
|
}
|
|
1140
1124
|
function K(e, t) {
|
|
1141
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? j(
|
|
1125
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(an(e), e, t) : e;
|
|
1142
1126
|
}
|
|
1143
|
-
function
|
|
1127
|
+
function un(e, t, r) {
|
|
1144
1128
|
return e.concat(t).map(function(n) {
|
|
1145
1129
|
return K(n, r);
|
|
1146
1130
|
});
|
|
1147
1131
|
}
|
|
1148
|
-
function
|
|
1132
|
+
function hn(e, t) {
|
|
1149
1133
|
if (!t.customMerge)
|
|
1150
1134
|
return j;
|
|
1151
1135
|
var r = t.customMerge(e);
|
|
1152
1136
|
return typeof r == "function" ? r : j;
|
|
1153
1137
|
}
|
|
1154
|
-
function
|
|
1138
|
+
function ln(e) {
|
|
1155
1139
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1156
1140
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1157
1141
|
}) : [];
|
|
1158
1142
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return Object.keys(e).concat(
|
|
1143
|
+
function ct(e) {
|
|
1144
|
+
return Object.keys(e).concat(ln(e));
|
|
1161
1145
|
}
|
|
1162
|
-
function
|
|
1146
|
+
function Gt(e, t) {
|
|
1163
1147
|
try {
|
|
1164
1148
|
return t in e;
|
|
1165
1149
|
} catch (r) {
|
|
1166
1150
|
return !1;
|
|
1167
1151
|
}
|
|
1168
1152
|
}
|
|
1169
|
-
function
|
|
1170
|
-
return
|
|
1153
|
+
function fn(e, t) {
|
|
1154
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1171
1155
|
}
|
|
1172
|
-
function
|
|
1156
|
+
function cn(e, t, r) {
|
|
1173
1157
|
var n = {};
|
|
1174
|
-
return r.isMergeableObject(e) &&
|
|
1158
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1175
1159
|
n[i] = K(e[i], r);
|
|
1176
|
-
}),
|
|
1177
|
-
|
|
1160
|
+
}), ct(t).forEach(function(i) {
|
|
1161
|
+
fn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1178
1162
|
}), n;
|
|
1179
1163
|
}
|
|
1180
1164
|
function j(e, t, r) {
|
|
1181
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1165
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = K;
|
|
1182
1166
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1183
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1167
|
+
return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : K(t, r);
|
|
1184
1168
|
}
|
|
1185
1169
|
j.all = function(t, r) {
|
|
1186
1170
|
if (!Array.isArray(t))
|
|
@@ -1189,107 +1173,109 @@ j.all = function(t, r) {
|
|
|
1189
1173
|
return j(n, i, r);
|
|
1190
1174
|
}, {});
|
|
1191
1175
|
};
|
|
1192
|
-
var
|
|
1193
|
-
const
|
|
1194
|
-
function
|
|
1195
|
-
var r = t && t.cache ? t.cache :
|
|
1176
|
+
var pn = j, dn = pn;
|
|
1177
|
+
const mn = /* @__PURE__ */ Kr(dn);
|
|
1178
|
+
function Se(e, t) {
|
|
1179
|
+
var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : _n, i = t && t.strategy ? t.strategy : gn;
|
|
1196
1180
|
return i(e, {
|
|
1197
1181
|
cache: r,
|
|
1198
1182
|
serializer: n
|
|
1199
1183
|
});
|
|
1200
1184
|
}
|
|
1201
|
-
function
|
|
1185
|
+
function bn(e) {
|
|
1202
1186
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1203
1187
|
}
|
|
1204
|
-
function
|
|
1205
|
-
var i =
|
|
1188
|
+
function Ft(e, t, r, n) {
|
|
1189
|
+
var i = bn(n) ? n : r(n), o = t.get(i);
|
|
1206
1190
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1207
1191
|
}
|
|
1208
|
-
function
|
|
1192
|
+
function jt(e, t, r) {
|
|
1209
1193
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1210
1194
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1211
1195
|
}
|
|
1212
|
-
function
|
|
1196
|
+
function We(e, t, r, n, i) {
|
|
1213
1197
|
return r.bind(t, e, n, i);
|
|
1214
1198
|
}
|
|
1215
|
-
function
|
|
1216
|
-
var r = e.length === 1 ?
|
|
1217
|
-
return
|
|
1199
|
+
function gn(e, t) {
|
|
1200
|
+
var r = e.length === 1 ? Ft : jt;
|
|
1201
|
+
return We(e, this, r, t.cache.create(), t.serializer);
|
|
1218
1202
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
1203
|
+
function yn(e, t) {
|
|
1204
|
+
return We(e, this, jt, t.cache.create(), t.serializer);
|
|
1221
1205
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1206
|
+
function vn(e, t) {
|
|
1207
|
+
return We(e, this, Ft, t.cache.create(), t.serializer);
|
|
1224
1208
|
}
|
|
1225
|
-
var
|
|
1209
|
+
var _n = function() {
|
|
1226
1210
|
return JSON.stringify(arguments);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1211
|
+
}, En = (
|
|
1212
|
+
/** @class */
|
|
1213
|
+
function() {
|
|
1214
|
+
function e() {
|
|
1215
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1216
|
+
}
|
|
1217
|
+
return e.prototype.get = function(t) {
|
|
1218
|
+
return this.cache[t];
|
|
1219
|
+
}, e.prototype.set = function(t, r) {
|
|
1220
|
+
this.cache[t] = r;
|
|
1221
|
+
}, e;
|
|
1222
|
+
}()
|
|
1223
|
+
), xn = {
|
|
1238
1224
|
create: function() {
|
|
1239
|
-
return new
|
|
1225
|
+
return new En();
|
|
1240
1226
|
}
|
|
1241
|
-
},
|
|
1242
|
-
variadic:
|
|
1243
|
-
monadic:
|
|
1244
|
-
},
|
|
1227
|
+
}, we = {
|
|
1228
|
+
variadic: yn,
|
|
1229
|
+
monadic: vn
|
|
1230
|
+
}, d;
|
|
1245
1231
|
(function(e) {
|
|
1246
1232
|
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";
|
|
1247
|
-
})(
|
|
1248
|
-
var
|
|
1233
|
+
})(d || (d = {}));
|
|
1234
|
+
var _;
|
|
1249
1235
|
(function(e) {
|
|
1250
1236
|
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";
|
|
1251
|
-
})(
|
|
1237
|
+
})(_ || (_ = {}));
|
|
1252
1238
|
var k;
|
|
1253
1239
|
(function(e) {
|
|
1254
1240
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1255
1241
|
})(k || (k = {}));
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1242
|
+
function pt(e) {
|
|
1243
|
+
return e.type === _.literal;
|
|
1258
1244
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1245
|
+
function Tn(e) {
|
|
1246
|
+
return e.type === _.argument;
|
|
1261
1247
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1248
|
+
function kt(e) {
|
|
1249
|
+
return e.type === _.number;
|
|
1264
1250
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e.type ===
|
|
1251
|
+
function Vt(e) {
|
|
1252
|
+
return e.type === _.date;
|
|
1267
1253
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return e.type ===
|
|
1254
|
+
function Xt(e) {
|
|
1255
|
+
return e.type === _.time;
|
|
1270
1256
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return e.type ===
|
|
1257
|
+
function zt(e) {
|
|
1258
|
+
return e.type === _.select;
|
|
1273
1259
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return e.type ===
|
|
1260
|
+
function Wt(e) {
|
|
1261
|
+
return e.type === _.plural;
|
|
1276
1262
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return e.type ===
|
|
1263
|
+
function Sn(e) {
|
|
1264
|
+
return e.type === _.pound;
|
|
1279
1265
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return e.type ===
|
|
1266
|
+
function Zt(e) {
|
|
1267
|
+
return e.type === _.tag;
|
|
1282
1268
|
}
|
|
1283
|
-
function
|
|
1269
|
+
function Qt(e) {
|
|
1284
1270
|
return !!(e && typeof e == "object" && e.type === k.number);
|
|
1285
1271
|
}
|
|
1286
|
-
function
|
|
1272
|
+
function $e(e) {
|
|
1287
1273
|
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
1288
1274
|
}
|
|
1289
|
-
var
|
|
1290
|
-
function
|
|
1275
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
|
|
1276
|
+
function Hn(e) {
|
|
1291
1277
|
var t = {};
|
|
1292
|
-
return e.replace(
|
|
1278
|
+
return e.replace(wn, function(r) {
|
|
1293
1279
|
var n = r.length;
|
|
1294
1280
|
switch (r[0]) {
|
|
1295
1281
|
case "G":
|
|
@@ -1378,11 +1364,11 @@ function An(e) {
|
|
|
1378
1364
|
return "";
|
|
1379
1365
|
}), t;
|
|
1380
1366
|
}
|
|
1381
|
-
var
|
|
1382
|
-
function
|
|
1367
|
+
var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1368
|
+
function An(e) {
|
|
1383
1369
|
if (e.length === 0)
|
|
1384
1370
|
throw new Error("Number skeleton cannot be empty");
|
|
1385
|
-
for (var t = e.split(
|
|
1371
|
+
for (var t = e.split(Bn).filter(function(c) {
|
|
1386
1372
|
return c.length > 0;
|
|
1387
1373
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1388
1374
|
var o = i[n], s = o.split("/");
|
|
@@ -1397,17 +1383,17 @@ function On(e) {
|
|
|
1397
1383
|
}
|
|
1398
1384
|
return r;
|
|
1399
1385
|
}
|
|
1400
|
-
function
|
|
1386
|
+
function Pn(e) {
|
|
1401
1387
|
return e.replace(/^(.*?)-/, "");
|
|
1402
1388
|
}
|
|
1403
|
-
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1404
|
-
function
|
|
1389
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1390
|
+
function mt(e) {
|
|
1405
1391
|
var t = {};
|
|
1406
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1392
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yt, function(r, n, i) {
|
|
1407
1393
|
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)), "";
|
|
1408
1394
|
}), t;
|
|
1409
1395
|
}
|
|
1410
|
-
function
|
|
1396
|
+
function Kt(e) {
|
|
1411
1397
|
switch (e) {
|
|
1412
1398
|
case "sign-auto":
|
|
1413
1399
|
return {
|
|
@@ -1447,7 +1433,7 @@ function rr(e) {
|
|
|
1447
1433
|
};
|
|
1448
1434
|
}
|
|
1449
1435
|
}
|
|
1450
|
-
function
|
|
1436
|
+
function In(e) {
|
|
1451
1437
|
var t;
|
|
1452
1438
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1453
1439
|
notation: "engineering"
|
|
@@ -1455,17 +1441,17 @@ function Nn(e) {
|
|
|
1455
1441
|
notation: "scientific"
|
|
1456
1442
|
}, e = e.slice(1)), t) {
|
|
1457
1443
|
var r = e.slice(0, 2);
|
|
1458
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1444
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1459
1445
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1460
1446
|
t.minimumIntegerDigits = e.length;
|
|
1461
1447
|
}
|
|
1462
1448
|
return t;
|
|
1463
1449
|
}
|
|
1464
|
-
function
|
|
1465
|
-
var t = {}, r =
|
|
1450
|
+
function bt(e) {
|
|
1451
|
+
var t = {}, r = Kt(e);
|
|
1466
1452
|
return r || t;
|
|
1467
1453
|
}
|
|
1468
|
-
function
|
|
1454
|
+
function Nn(e) {
|
|
1469
1455
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1470
1456
|
var i = n[r];
|
|
1471
1457
|
switch (i.stem) {
|
|
@@ -1489,7 +1475,7 @@ function Cn(e) {
|
|
|
1489
1475
|
continue;
|
|
1490
1476
|
case "measure-unit":
|
|
1491
1477
|
case "unit":
|
|
1492
|
-
t.style = "unit", t.unit =
|
|
1478
|
+
t.style = "unit", t.unit = Pn(i.options[0]);
|
|
1493
1479
|
continue;
|
|
1494
1480
|
case "compact-short":
|
|
1495
1481
|
case "K":
|
|
@@ -1500,13 +1486,13 @@ function Cn(e) {
|
|
|
1500
1486
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1501
1487
|
continue;
|
|
1502
1488
|
case "scientific":
|
|
1503
|
-
t =
|
|
1504
|
-
return
|
|
1489
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1490
|
+
return v(v({}, h), bt(u));
|
|
1505
1491
|
}, {}));
|
|
1506
1492
|
continue;
|
|
1507
1493
|
case "engineering":
|
|
1508
|
-
t =
|
|
1509
|
-
return
|
|
1494
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1495
|
+
return v(v({}, h), bt(u));
|
|
1510
1496
|
}, {}));
|
|
1511
1497
|
continue;
|
|
1512
1498
|
case "notation-simple":
|
|
@@ -1551,7 +1537,7 @@ function Cn(e) {
|
|
|
1551
1537
|
case "integer-width":
|
|
1552
1538
|
if (i.options.length > 1)
|
|
1553
1539
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1554
|
-
i.options[0].replace(
|
|
1540
|
+
i.options[0].replace(On, function(h, u, l, f, c, p) {
|
|
1555
1541
|
if (u)
|
|
1556
1542
|
t.minimumIntegerDigits = l.length;
|
|
1557
1543
|
else {
|
|
@@ -1564,7 +1550,7 @@ function Cn(e) {
|
|
|
1564
1550
|
});
|
|
1565
1551
|
continue;
|
|
1566
1552
|
}
|
|
1567
|
-
if (
|
|
1553
|
+
if (qt.test(i.stem)) {
|
|
1568
1554
|
t.minimumIntegerDigits = i.stem.length;
|
|
1569
1555
|
continue;
|
|
1570
1556
|
}
|
|
@@ -1575,17 +1561,17 @@ function Cn(e) {
|
|
|
1575
1561
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1576
1562
|
});
|
|
1577
1563
|
var o = i.options[0];
|
|
1578
|
-
o === "w" ? t =
|
|
1564
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), mt(o)));
|
|
1579
1565
|
continue;
|
|
1580
1566
|
}
|
|
1581
|
-
if (
|
|
1582
|
-
t =
|
|
1567
|
+
if (Yt.test(i.stem)) {
|
|
1568
|
+
t = v(v({}, t), mt(i.stem));
|
|
1583
1569
|
continue;
|
|
1584
1570
|
}
|
|
1585
|
-
var s =
|
|
1586
|
-
s && (t =
|
|
1587
|
-
var a =
|
|
1588
|
-
a && (t =
|
|
1571
|
+
var s = Kt(i.stem);
|
|
1572
|
+
s && (t = v(v({}, t), s));
|
|
1573
|
+
var a = In(i.stem);
|
|
1574
|
+
a && (t = v(v({}, t), a));
|
|
1589
1575
|
}
|
|
1590
1576
|
return t;
|
|
1591
1577
|
}
|
|
@@ -3004,13 +2990,13 @@ var he = {
|
|
|
3004
2990
|
"h"
|
|
3005
2991
|
]
|
|
3006
2992
|
};
|
|
3007
|
-
function
|
|
2993
|
+
function Ln(e, t) {
|
|
3008
2994
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3009
2995
|
var i = e.charAt(n);
|
|
3010
2996
|
if (i === "j") {
|
|
3011
2997
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3012
2998
|
o++, n++;
|
|
3013
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2999
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Cn(t);
|
|
3014
3000
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3015
3001
|
r += h;
|
|
3016
3002
|
for (; s-- > 0; )
|
|
@@ -3020,7 +3006,7 @@ function Mn(e, t) {
|
|
|
3020
3006
|
}
|
|
3021
3007
|
return r;
|
|
3022
3008
|
}
|
|
3023
|
-
function
|
|
3009
|
+
function Cn(e) {
|
|
3024
3010
|
var t = e.hourCycle;
|
|
3025
3011
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3026
3012
|
e.hourCycles && // @ts-ignore
|
|
@@ -3042,20 +3028,20 @@ function Rn(e) {
|
|
|
3042
3028
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3043
3029
|
return i[0];
|
|
3044
3030
|
}
|
|
3045
|
-
var
|
|
3046
|
-
function
|
|
3031
|
+
var He, Mn = new RegExp("^".concat(Jt.source, "*")), Rn = new RegExp("".concat(Jt.source, "*$"));
|
|
3032
|
+
function b(e, t) {
|
|
3047
3033
|
return { start: e, end: t };
|
|
3048
3034
|
}
|
|
3049
|
-
var
|
|
3035
|
+
var $n = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Dn = !!Object.fromEntries, Gn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, Vn = kn ? Number.isSafeInteger : function(e) {
|
|
3050
3036
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3051
|
-
},
|
|
3037
|
+
}, Ue = !0;
|
|
3052
3038
|
try {
|
|
3053
|
-
var
|
|
3054
|
-
|
|
3039
|
+
var Xn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3040
|
+
Ue = ((He = Xn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3055
3041
|
} catch (e) {
|
|
3056
|
-
|
|
3042
|
+
Ue = !1;
|
|
3057
3043
|
}
|
|
3058
|
-
var
|
|
3044
|
+
var gt = $n ? (
|
|
3059
3045
|
// Native
|
|
3060
3046
|
function(t, r, n) {
|
|
3061
3047
|
return t.startsWith(r, n);
|
|
@@ -3065,7 +3051,7 @@ var yt = Dn ? (
|
|
|
3065
3051
|
function(t, r, n) {
|
|
3066
3052
|
return t.slice(n, n + r.length) === r;
|
|
3067
3053
|
}
|
|
3068
|
-
),
|
|
3054
|
+
), De = Un ? String.fromCodePoint : (
|
|
3069
3055
|
// IE11
|
|
3070
3056
|
function() {
|
|
3071
3057
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3077,9 +3063,9 @@ var yt = Dn ? (
|
|
|
3077
3063
|
}
|
|
3078
3064
|
return n;
|
|
3079
3065
|
}
|
|
3080
|
-
),
|
|
3066
|
+
), yt = (
|
|
3081
3067
|
// native
|
|
3082
|
-
|
|
3068
|
+
Dn ? Object.fromEntries : (
|
|
3083
3069
|
// Ponyfill
|
|
3084
3070
|
function(t) {
|
|
3085
3071
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3089,7 +3075,7 @@ var yt = Dn ? (
|
|
|
3089
3075
|
return r;
|
|
3090
3076
|
}
|
|
3091
3077
|
)
|
|
3092
|
-
),
|
|
3078
|
+
), er = Gn ? (
|
|
3093
3079
|
// Native
|
|
3094
3080
|
function(t, r) {
|
|
3095
3081
|
return t.codePointAt(r);
|
|
@@ -3103,7 +3089,7 @@ var yt = Dn ? (
|
|
|
3103
3089
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3104
3090
|
}
|
|
3105
3091
|
}
|
|
3106
|
-
),
|
|
3092
|
+
), zn = Fn ? (
|
|
3107
3093
|
// Native
|
|
3108
3094
|
function(t) {
|
|
3109
3095
|
return t.trimStart();
|
|
@@ -3111,9 +3097,9 @@ var yt = Dn ? (
|
|
|
3111
3097
|
) : (
|
|
3112
3098
|
// Ponyfill
|
|
3113
3099
|
function(t) {
|
|
3114
|
-
return t.replace(
|
|
3100
|
+
return t.replace(Mn, "");
|
|
3115
3101
|
}
|
|
3116
|
-
),
|
|
3102
|
+
), Wn = jn ? (
|
|
3117
3103
|
// Native
|
|
3118
3104
|
function(t) {
|
|
3119
3105
|
return t.trimEnd();
|
|
@@ -3121,32 +3107,32 @@ var yt = Dn ? (
|
|
|
3121
3107
|
) : (
|
|
3122
3108
|
// Ponyfill
|
|
3123
3109
|
function(t) {
|
|
3124
|
-
return t.replace(
|
|
3110
|
+
return t.replace(Rn, "");
|
|
3125
3111
|
}
|
|
3126
3112
|
);
|
|
3127
|
-
function
|
|
3113
|
+
function tr(e, t) {
|
|
3128
3114
|
return new RegExp(e, t);
|
|
3129
3115
|
}
|
|
3130
|
-
var
|
|
3131
|
-
if (
|
|
3132
|
-
var
|
|
3133
|
-
|
|
3116
|
+
var Ge;
|
|
3117
|
+
if (Ue) {
|
|
3118
|
+
var vt = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3119
|
+
Ge = function(t, r) {
|
|
3134
3120
|
var n;
|
|
3135
|
-
|
|
3136
|
-
var i =
|
|
3121
|
+
vt.lastIndex = r;
|
|
3122
|
+
var i = vt.exec(t);
|
|
3137
3123
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3138
3124
|
};
|
|
3139
3125
|
} else
|
|
3140
|
-
|
|
3126
|
+
Ge = function(t, r) {
|
|
3141
3127
|
for (var n = []; ; ) {
|
|
3142
|
-
var i =
|
|
3143
|
-
if (i === void 0 ||
|
|
3128
|
+
var i = er(t, r);
|
|
3129
|
+
if (i === void 0 || rr(i) || Yn(i))
|
|
3144
3130
|
break;
|
|
3145
3131
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3146
3132
|
}
|
|
3147
|
-
return
|
|
3133
|
+
return De.apply(void 0, n);
|
|
3148
3134
|
};
|
|
3149
|
-
var
|
|
3135
|
+
var Zn = (
|
|
3150
3136
|
/** @class */
|
|
3151
3137
|
function() {
|
|
3152
3138
|
function e(t, r) {
|
|
@@ -3170,14 +3156,14 @@ var Jn = (
|
|
|
3170
3156
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3171
3157
|
var a = this.clonePosition();
|
|
3172
3158
|
this.bump(), i.push({
|
|
3173
|
-
type:
|
|
3174
|
-
location:
|
|
3159
|
+
type: _.pound,
|
|
3160
|
+
location: b(a, this.clonePosition())
|
|
3175
3161
|
});
|
|
3176
3162
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3177
3163
|
if (n)
|
|
3178
3164
|
break;
|
|
3179
|
-
return this.error(
|
|
3180
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3165
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3166
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
3181
3167
|
var s = this.parseTag(t, r);
|
|
3182
3168
|
if (s.err)
|
|
3183
3169
|
return s;
|
|
@@ -3198,9 +3184,9 @@ var Jn = (
|
|
|
3198
3184
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3199
3185
|
return {
|
|
3200
3186
|
val: {
|
|
3201
|
-
type:
|
|
3187
|
+
type: _.literal,
|
|
3202
3188
|
value: "<".concat(i, "/>"),
|
|
3203
|
-
location:
|
|
3189
|
+
location: b(n, this.clonePosition())
|
|
3204
3190
|
},
|
|
3205
3191
|
err: null
|
|
3206
3192
|
};
|
|
@@ -3210,25 +3196,25 @@ var Jn = (
|
|
|
3210
3196
|
return o;
|
|
3211
3197
|
var s = o.val, a = this.clonePosition();
|
|
3212
3198
|
if (this.bumpIf("</")) {
|
|
3213
|
-
if (this.isEOF() || !
|
|
3214
|
-
return this.error(
|
|
3199
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
3200
|
+
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3215
3201
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3216
|
-
return i !== u ? this.error(
|
|
3202
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3217
3203
|
val: {
|
|
3218
|
-
type:
|
|
3204
|
+
type: _.tag,
|
|
3219
3205
|
value: i,
|
|
3220
3206
|
children: s,
|
|
3221
|
-
location:
|
|
3207
|
+
location: b(n, this.clonePosition())
|
|
3222
3208
|
},
|
|
3223
3209
|
err: null
|
|
3224
|
-
} : this.error(
|
|
3210
|
+
} : this.error(d.INVALID_TAG, b(a, this.clonePosition())));
|
|
3225
3211
|
} else
|
|
3226
|
-
return this.error(
|
|
3212
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3227
3213
|
} else
|
|
3228
|
-
return this.error(
|
|
3214
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3229
3215
|
}, e.prototype.parseTagName = function() {
|
|
3230
3216
|
var t = this.offset();
|
|
3231
|
-
for (this.bump(); !this.isEOF() &&
|
|
3217
|
+
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
|
3232
3218
|
this.bump();
|
|
3233
3219
|
return this.message.slice(t, this.offset());
|
|
3234
3220
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3250,14 +3236,14 @@ var Jn = (
|
|
|
3250
3236
|
}
|
|
3251
3237
|
break;
|
|
3252
3238
|
}
|
|
3253
|
-
var h =
|
|
3239
|
+
var h = b(n, this.clonePosition());
|
|
3254
3240
|
return {
|
|
3255
|
-
val: { type:
|
|
3241
|
+
val: { type: _.literal, value: i, location: h },
|
|
3256
3242
|
err: null
|
|
3257
3243
|
};
|
|
3258
3244
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3259
3245
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3260
|
-
!
|
|
3246
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3261
3247
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3262
3248
|
if (this.isEOF() || this.char() !== 39)
|
|
3263
3249
|
return null;
|
|
@@ -3291,49 +3277,49 @@ var Jn = (
|
|
|
3291
3277
|
r.push(n);
|
|
3292
3278
|
this.bump();
|
|
3293
3279
|
}
|
|
3294
|
-
return
|
|
3280
|
+
return De.apply(void 0, r);
|
|
3295
3281
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3296
3282
|
if (this.isEOF())
|
|
3297
3283
|
return null;
|
|
3298
3284
|
var n = this.char();
|
|
3299
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3285
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3300
3286
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3301
3287
|
var n = this.clonePosition();
|
|
3302
3288
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3303
|
-
return this.error(
|
|
3289
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3304
3290
|
if (this.char() === 125)
|
|
3305
|
-
return this.bump(), this.error(
|
|
3291
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3306
3292
|
var i = this.parseIdentifierIfPossible().value;
|
|
3307
3293
|
if (!i)
|
|
3308
|
-
return this.error(
|
|
3294
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3309
3295
|
if (this.bumpSpace(), this.isEOF())
|
|
3310
|
-
return this.error(
|
|
3296
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3311
3297
|
switch (this.char()) {
|
|
3312
3298
|
case 125:
|
|
3313
3299
|
return this.bump(), {
|
|
3314
3300
|
val: {
|
|
3315
|
-
type:
|
|
3301
|
+
type: _.argument,
|
|
3316
3302
|
// value does not include the opening and closing braces.
|
|
3317
3303
|
value: i,
|
|
3318
|
-
location:
|
|
3304
|
+
location: b(n, this.clonePosition())
|
|
3319
3305
|
},
|
|
3320
3306
|
err: null
|
|
3321
3307
|
};
|
|
3322
3308
|
case 44:
|
|
3323
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3309
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3324
3310
|
default:
|
|
3325
|
-
return this.error(
|
|
3311
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3326
3312
|
}
|
|
3327
3313
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3328
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3314
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
3329
3315
|
this.bumpTo(i);
|
|
3330
|
-
var o = this.clonePosition(), s =
|
|
3316
|
+
var o = this.clonePosition(), s = b(t, o);
|
|
3331
3317
|
return { value: n, location: s };
|
|
3332
3318
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3333
3319
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3334
3320
|
switch (a) {
|
|
3335
3321
|
case "":
|
|
3336
|
-
return this.error(
|
|
3322
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3337
3323
|
case "number":
|
|
3338
3324
|
case "date":
|
|
3339
3325
|
case "time": {
|
|
@@ -3344,46 +3330,46 @@ var Jn = (
|
|
|
3344
3330
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3345
3331
|
if (f.err)
|
|
3346
3332
|
return f;
|
|
3347
|
-
var c =
|
|
3333
|
+
var c = Wn(f.val);
|
|
3348
3334
|
if (c.length === 0)
|
|
3349
|
-
return this.error(
|
|
3350
|
-
var p =
|
|
3335
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3336
|
+
var p = b(l, this.clonePosition());
|
|
3351
3337
|
u = { style: c, styleLocation: p };
|
|
3352
3338
|
}
|
|
3353
|
-
var
|
|
3354
|
-
if (
|
|
3355
|
-
return
|
|
3356
|
-
var
|
|
3357
|
-
if (u &&
|
|
3358
|
-
var T =
|
|
3339
|
+
var m = this.tryParseArgumentClose(i);
|
|
3340
|
+
if (m.err)
|
|
3341
|
+
return m;
|
|
3342
|
+
var y = b(i, this.clonePosition());
|
|
3343
|
+
if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3344
|
+
var T = zn(u.style.slice(2));
|
|
3359
3345
|
if (a === "number") {
|
|
3360
3346
|
var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3361
3347
|
return f.err ? f : {
|
|
3362
|
-
val: { type:
|
|
3348
|
+
val: { type: _.number, value: n, location: y, style: f.val },
|
|
3363
3349
|
err: null
|
|
3364
3350
|
};
|
|
3365
3351
|
} else {
|
|
3366
3352
|
if (T.length === 0)
|
|
3367
|
-
return this.error(
|
|
3368
|
-
var
|
|
3369
|
-
this.locale && (
|
|
3353
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, y);
|
|
3354
|
+
var N = T;
|
|
3355
|
+
this.locale && (N = Ln(T, this.locale));
|
|
3370
3356
|
var c = {
|
|
3371
3357
|
type: k.dateTime,
|
|
3372
|
-
pattern:
|
|
3358
|
+
pattern: N,
|
|
3373
3359
|
location: u.styleLocation,
|
|
3374
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3375
|
-
}, g = a === "date" ?
|
|
3360
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(N) : {}
|
|
3361
|
+
}, g = a === "date" ? _.date : _.time;
|
|
3376
3362
|
return {
|
|
3377
|
-
val: { type: g, value: n, location:
|
|
3363
|
+
val: { type: g, value: n, location: y, style: c },
|
|
3378
3364
|
err: null
|
|
3379
3365
|
};
|
|
3380
3366
|
}
|
|
3381
3367
|
}
|
|
3382
3368
|
return {
|
|
3383
3369
|
val: {
|
|
3384
|
-
type: a === "number" ?
|
|
3370
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3385
3371
|
value: n,
|
|
3386
|
-
location:
|
|
3372
|
+
location: y,
|
|
3387
3373
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3388
3374
|
},
|
|
3389
3375
|
err: null
|
|
@@ -3394,50 +3380,50 @@ var Jn = (
|
|
|
3394
3380
|
case "select": {
|
|
3395
3381
|
var H = this.clonePosition();
|
|
3396
3382
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3397
|
-
return this.error(
|
|
3383
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, v({}, H)));
|
|
3398
3384
|
this.bumpSpace();
|
|
3399
|
-
var Q = this.parseIdentifierIfPossible(),
|
|
3385
|
+
var Q = this.parseIdentifierIfPossible(), L = 0;
|
|
3400
3386
|
if (a !== "select" && Q.value === "offset") {
|
|
3401
3387
|
if (!this.bumpIf(":"))
|
|
3402
|
-
return this.error(
|
|
3388
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3403
3389
|
this.bumpSpace();
|
|
3404
|
-
var f = this.tryParseDecimalInteger(
|
|
3390
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3405
3391
|
if (f.err)
|
|
3406
3392
|
return f;
|
|
3407
|
-
this.bumpSpace(), Q = this.parseIdentifierIfPossible(),
|
|
3393
|
+
this.bumpSpace(), Q = this.parseIdentifierIfPossible(), L = f.val;
|
|
3408
3394
|
}
|
|
3409
3395
|
var oe = this.tryParsePluralOrSelectOptions(t, a, r, Q);
|
|
3410
3396
|
if (oe.err)
|
|
3411
3397
|
return oe;
|
|
3412
|
-
var
|
|
3413
|
-
if (
|
|
3414
|
-
return
|
|
3415
|
-
var
|
|
3398
|
+
var m = this.tryParseArgumentClose(i);
|
|
3399
|
+
if (m.err)
|
|
3400
|
+
return m;
|
|
3401
|
+
var Je = b(i, this.clonePosition());
|
|
3416
3402
|
return a === "select" ? {
|
|
3417
3403
|
val: {
|
|
3418
|
-
type:
|
|
3404
|
+
type: _.select,
|
|
3419
3405
|
value: n,
|
|
3420
|
-
options:
|
|
3421
|
-
location:
|
|
3406
|
+
options: yt(oe.val),
|
|
3407
|
+
location: Je
|
|
3422
3408
|
},
|
|
3423
3409
|
err: null
|
|
3424
3410
|
} : {
|
|
3425
3411
|
val: {
|
|
3426
|
-
type:
|
|
3412
|
+
type: _.plural,
|
|
3427
3413
|
value: n,
|
|
3428
|
-
options:
|
|
3429
|
-
offset:
|
|
3414
|
+
options: yt(oe.val),
|
|
3415
|
+
offset: L,
|
|
3430
3416
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3431
|
-
location:
|
|
3417
|
+
location: Je
|
|
3432
3418
|
},
|
|
3433
3419
|
err: null
|
|
3434
3420
|
};
|
|
3435
3421
|
}
|
|
3436
3422
|
default:
|
|
3437
|
-
return this.error(
|
|
3423
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3438
3424
|
}
|
|
3439
3425
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3440
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3426
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3441
3427
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3442
3428
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3443
3429
|
var n = this.char();
|
|
@@ -3446,7 +3432,7 @@ var Jn = (
|
|
|
3446
3432
|
this.bump();
|
|
3447
3433
|
var i = this.clonePosition();
|
|
3448
3434
|
if (!this.bumpUntil("'"))
|
|
3449
|
-
return this.error(
|
|
3435
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3450
3436
|
this.bump();
|
|
3451
3437
|
break;
|
|
3452
3438
|
}
|
|
@@ -3476,16 +3462,16 @@ var Jn = (
|
|
|
3476
3462
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3477
3463
|
var n = [];
|
|
3478
3464
|
try {
|
|
3479
|
-
n =
|
|
3465
|
+
n = An(t);
|
|
3480
3466
|
} catch (i) {
|
|
3481
|
-
return this.error(
|
|
3467
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3482
3468
|
}
|
|
3483
3469
|
return {
|
|
3484
3470
|
val: {
|
|
3485
3471
|
type: k.number,
|
|
3486
3472
|
tokens: n,
|
|
3487
3473
|
location: r,
|
|
3488
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3474
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
|
3489
3475
|
},
|
|
3490
3476
|
err: null
|
|
3491
3477
|
};
|
|
@@ -3494,34 +3480,34 @@ var Jn = (
|
|
|
3494
3480
|
if (u.length === 0) {
|
|
3495
3481
|
var f = this.clonePosition();
|
|
3496
3482
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3497
|
-
var c = this.tryParseDecimalInteger(
|
|
3483
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3498
3484
|
if (c.err)
|
|
3499
3485
|
return c;
|
|
3500
|
-
l =
|
|
3486
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3501
3487
|
} else
|
|
3502
3488
|
break;
|
|
3503
3489
|
}
|
|
3504
3490
|
if (h.has(u))
|
|
3505
|
-
return this.error(r === "select" ?
|
|
3491
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3506
3492
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3507
3493
|
var p = this.clonePosition();
|
|
3508
3494
|
if (!this.bumpIf("{"))
|
|
3509
|
-
return this.error(r === "select" ?
|
|
3510
|
-
var
|
|
3511
|
-
if (
|
|
3512
|
-
return
|
|
3513
|
-
var
|
|
3514
|
-
if (
|
|
3515
|
-
return
|
|
3495
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3496
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
3497
|
+
if (m.err)
|
|
3498
|
+
return m;
|
|
3499
|
+
var y = this.tryParseArgumentClose(p);
|
|
3500
|
+
if (y.err)
|
|
3501
|
+
return y;
|
|
3516
3502
|
a.push([
|
|
3517
3503
|
u,
|
|
3518
3504
|
{
|
|
3519
|
-
value:
|
|
3520
|
-
location:
|
|
3505
|
+
value: m.val,
|
|
3506
|
+
location: b(p, this.clonePosition())
|
|
3521
3507
|
}
|
|
3522
3508
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3523
3509
|
}
|
|
3524
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3510
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3525
3511
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3526
3512
|
var n = 1, i = this.clonePosition();
|
|
3527
3513
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3532,8 +3518,8 @@ var Jn = (
|
|
|
3532
3518
|
else
|
|
3533
3519
|
break;
|
|
3534
3520
|
}
|
|
3535
|
-
var h =
|
|
3536
|
-
return o ? (s *= n,
|
|
3521
|
+
var h = b(i, this.clonePosition());
|
|
3522
|
+
return o ? (s *= n, Vn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3537
3523
|
}, e.prototype.offset = function() {
|
|
3538
3524
|
return this.position.offset;
|
|
3539
3525
|
}, e.prototype.isEOF = function() {
|
|
@@ -3548,7 +3534,7 @@ var Jn = (
|
|
|
3548
3534
|
var t = this.position.offset;
|
|
3549
3535
|
if (t >= this.message.length)
|
|
3550
3536
|
throw Error("out of bound");
|
|
3551
|
-
var r =
|
|
3537
|
+
var r = er(this.message, t);
|
|
3552
3538
|
if (r === void 0)
|
|
3553
3539
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3554
3540
|
return r;
|
|
@@ -3567,7 +3553,7 @@ var Jn = (
|
|
|
3567
3553
|
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);
|
|
3568
3554
|
}
|
|
3569
3555
|
}, e.prototype.bumpIf = function(t) {
|
|
3570
|
-
if (
|
|
3556
|
+
if (gt(this.message, t, this.offset())) {
|
|
3571
3557
|
for (var r = 0; r < t.length; r++)
|
|
3572
3558
|
this.bump();
|
|
3573
3559
|
return !0;
|
|
@@ -3589,7 +3575,7 @@ var Jn = (
|
|
|
3589
3575
|
break;
|
|
3590
3576
|
}
|
|
3591
3577
|
}, e.prototype.bumpSpace = function() {
|
|
3592
|
-
for (; !this.isEOF() &&
|
|
3578
|
+
for (; !this.isEOF() && rr(this.char()); )
|
|
3593
3579
|
this.bump();
|
|
3594
3580
|
}, e.prototype.peek = function() {
|
|
3595
3581
|
if (this.isEOF())
|
|
@@ -3599,44 +3585,44 @@ var Jn = (
|
|
|
3599
3585
|
}, e;
|
|
3600
3586
|
}()
|
|
3601
3587
|
);
|
|
3602
|
-
function
|
|
3588
|
+
function Fe(e) {
|
|
3603
3589
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3604
3590
|
}
|
|
3605
|
-
function
|
|
3606
|
-
return
|
|
3591
|
+
function Qn(e) {
|
|
3592
|
+
return Fe(e) || e === 47;
|
|
3607
3593
|
}
|
|
3608
|
-
function
|
|
3594
|
+
function Jn(e) {
|
|
3609
3595
|
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;
|
|
3610
3596
|
}
|
|
3611
|
-
function
|
|
3597
|
+
function rr(e) {
|
|
3612
3598
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3613
3599
|
}
|
|
3614
|
-
function
|
|
3600
|
+
function Yn(e) {
|
|
3615
3601
|
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;
|
|
3616
3602
|
}
|
|
3617
|
-
function
|
|
3603
|
+
function je(e) {
|
|
3618
3604
|
e.forEach(function(t) {
|
|
3619
|
-
if (delete t.location,
|
|
3605
|
+
if (delete t.location, zt(t) || Wt(t))
|
|
3620
3606
|
for (var r in t.options)
|
|
3621
|
-
delete t.options[r].location,
|
|
3607
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3622
3608
|
else
|
|
3623
|
-
|
|
3609
|
+
kt(t) && Qt(t.style) || (Vt(t) || Xt(t)) && $e(t.style) ? delete t.style.location : Zt(t) && je(t.children);
|
|
3624
3610
|
});
|
|
3625
3611
|
}
|
|
3626
|
-
function
|
|
3627
|
-
t === void 0 && (t = {}), t =
|
|
3628
|
-
var r = new
|
|
3612
|
+
function qn(e, t) {
|
|
3613
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3614
|
+
var r = new Zn(e, t).parse();
|
|
3629
3615
|
if (r.err) {
|
|
3630
|
-
var n = SyntaxError(
|
|
3616
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3631
3617
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3632
3618
|
}
|
|
3633
|
-
return t != null && t.captureLocation ||
|
|
3619
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3634
3620
|
}
|
|
3635
3621
|
var V;
|
|
3636
3622
|
(function(e) {
|
|
3637
3623
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3638
3624
|
})(V || (V = {}));
|
|
3639
|
-
var
|
|
3625
|
+
var ye = (
|
|
3640
3626
|
/** @class */
|
|
3641
3627
|
function(e) {
|
|
3642
3628
|
A(t, e);
|
|
@@ -3648,7 +3634,7 @@ var ve = (
|
|
|
3648
3634
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3649
3635
|
}, t;
|
|
3650
3636
|
}(Error)
|
|
3651
|
-
),
|
|
3637
|
+
), _t = (
|
|
3652
3638
|
/** @class */
|
|
3653
3639
|
function(e) {
|
|
3654
3640
|
A(t, e);
|
|
@@ -3656,8 +3642,8 @@ var ve = (
|
|
|
3656
3642
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
|
3657
3643
|
}
|
|
3658
3644
|
return t;
|
|
3659
|
-
}(
|
|
3660
|
-
),
|
|
3645
|
+
}(ye)
|
|
3646
|
+
), Kn = (
|
|
3661
3647
|
/** @class */
|
|
3662
3648
|
function(e) {
|
|
3663
3649
|
A(t, e);
|
|
@@ -3665,8 +3651,8 @@ var ve = (
|
|
|
3665
3651
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3666
3652
|
}
|
|
3667
3653
|
return t;
|
|
3668
|
-
}(
|
|
3669
|
-
),
|
|
3654
|
+
}(ye)
|
|
3655
|
+
), ei = (
|
|
3670
3656
|
/** @class */
|
|
3671
3657
|
function(e) {
|
|
3672
3658
|
A(t, e);
|
|
@@ -3674,129 +3660,129 @@ var ve = (
|
|
|
3674
3660
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3675
3661
|
}
|
|
3676
3662
|
return t;
|
|
3677
|
-
}(
|
|
3678
|
-
),
|
|
3663
|
+
}(ye)
|
|
3664
|
+
), E;
|
|
3679
3665
|
(function(e) {
|
|
3680
3666
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3681
|
-
})(
|
|
3682
|
-
function
|
|
3667
|
+
})(E || (E = {}));
|
|
3668
|
+
function ti(e) {
|
|
3683
3669
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3684
3670
|
var n = t[t.length - 1];
|
|
3685
|
-
return !n || n.type !==
|
|
3671
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3686
3672
|
}, []);
|
|
3687
3673
|
}
|
|
3688
|
-
function
|
|
3674
|
+
function ri(e) {
|
|
3689
3675
|
return typeof e == "function";
|
|
3690
3676
|
}
|
|
3691
3677
|
function ce(e, t, r, n, i, o, s) {
|
|
3692
|
-
if (e.length === 1 &&
|
|
3678
|
+
if (e.length === 1 && pt(e[0]))
|
|
3693
3679
|
return [
|
|
3694
3680
|
{
|
|
3695
|
-
type:
|
|
3681
|
+
type: E.literal,
|
|
3696
3682
|
value: e[0].value
|
|
3697
3683
|
}
|
|
3698
3684
|
];
|
|
3699
3685
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3700
3686
|
var l = u[h];
|
|
3701
|
-
if (
|
|
3687
|
+
if (pt(l)) {
|
|
3702
3688
|
a.push({
|
|
3703
|
-
type:
|
|
3689
|
+
type: E.literal,
|
|
3704
3690
|
value: l.value
|
|
3705
3691
|
});
|
|
3706
3692
|
continue;
|
|
3707
3693
|
}
|
|
3708
|
-
if (
|
|
3694
|
+
if (Sn(l)) {
|
|
3709
3695
|
typeof o == "number" && a.push({
|
|
3710
|
-
type:
|
|
3696
|
+
type: E.literal,
|
|
3711
3697
|
value: r.getNumberFormat(t).format(o)
|
|
3712
3698
|
});
|
|
3713
3699
|
continue;
|
|
3714
3700
|
}
|
|
3715
3701
|
var f = l.value;
|
|
3716
3702
|
if (!(i && f in i))
|
|
3717
|
-
throw new
|
|
3703
|
+
throw new ei(f, s);
|
|
3718
3704
|
var c = i[f];
|
|
3719
|
-
if (
|
|
3705
|
+
if (Tn(l)) {
|
|
3720
3706
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3721
|
-
type: typeof c == "string" ?
|
|
3707
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3722
3708
|
value: c
|
|
3723
3709
|
});
|
|
3724
3710
|
continue;
|
|
3725
3711
|
}
|
|
3726
|
-
if (
|
|
3727
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3712
|
+
if (Vt(l)) {
|
|
3713
|
+
var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3728
3714
|
a.push({
|
|
3729
|
-
type:
|
|
3715
|
+
type: E.literal,
|
|
3730
3716
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3731
3717
|
});
|
|
3732
3718
|
continue;
|
|
3733
3719
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3720
|
+
if (Xt(l)) {
|
|
3721
|
+
var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3736
3722
|
a.push({
|
|
3737
|
-
type:
|
|
3723
|
+
type: E.literal,
|
|
3738
3724
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3739
3725
|
});
|
|
3740
3726
|
continue;
|
|
3741
3727
|
}
|
|
3742
|
-
if (
|
|
3743
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3728
|
+
if (kt(l)) {
|
|
3729
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3744
3730
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3745
|
-
type:
|
|
3731
|
+
type: E.literal,
|
|
3746
3732
|
value: r.getNumberFormat(t, p).format(c)
|
|
3747
3733
|
});
|
|
3748
3734
|
continue;
|
|
3749
3735
|
}
|
|
3750
|
-
if (
|
|
3751
|
-
var
|
|
3752
|
-
if (!
|
|
3753
|
-
throw new
|
|
3754
|
-
var
|
|
3755
|
-
return
|
|
3736
|
+
if (Zt(l)) {
|
|
3737
|
+
var m = l.children, y = l.value, T = i[y];
|
|
3738
|
+
if (!ri(T))
|
|
3739
|
+
throw new Kn(y, "function", s);
|
|
3740
|
+
var N = ce(m, t, r, n, i, o), g = T(N.map(function(L) {
|
|
3741
|
+
return L.value;
|
|
3756
3742
|
}));
|
|
3757
|
-
Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(
|
|
3743
|
+
Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(L) {
|
|
3758
3744
|
return {
|
|
3759
|
-
type: typeof
|
|
3760
|
-
value:
|
|
3745
|
+
type: typeof L == "string" ? E.literal : E.object,
|
|
3746
|
+
value: L
|
|
3761
3747
|
};
|
|
3762
3748
|
}));
|
|
3763
3749
|
}
|
|
3764
|
-
if (
|
|
3750
|
+
if (zt(l)) {
|
|
3765
3751
|
var H = l.options[c] || l.options.other;
|
|
3766
3752
|
if (!H)
|
|
3767
|
-
throw new
|
|
3753
|
+
throw new _t(l.value, c, Object.keys(l.options), s);
|
|
3768
3754
|
a.push.apply(a, ce(H.value, t, r, n, i));
|
|
3769
3755
|
continue;
|
|
3770
3756
|
}
|
|
3771
|
-
if (
|
|
3757
|
+
if (Wt(l)) {
|
|
3772
3758
|
var H = l.options["=".concat(c)];
|
|
3773
3759
|
if (!H) {
|
|
3774
3760
|
if (!Intl.PluralRules)
|
|
3775
|
-
throw new
|
|
3761
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3776
3762
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3777
3763
|
`, V.MISSING_INTL_API, s);
|
|
3778
3764
|
var Q = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3779
3765
|
H = l.options[Q] || l.options.other;
|
|
3780
3766
|
}
|
|
3781
3767
|
if (!H)
|
|
3782
|
-
throw new
|
|
3768
|
+
throw new _t(l.value, c, Object.keys(l.options), s);
|
|
3783
3769
|
a.push.apply(a, ce(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3784
3770
|
continue;
|
|
3785
3771
|
}
|
|
3786
3772
|
}
|
|
3787
|
-
return
|
|
3773
|
+
return ti(a);
|
|
3788
3774
|
}
|
|
3789
|
-
function
|
|
3790
|
-
return t ?
|
|
3791
|
-
return r[n] =
|
|
3775
|
+
function ni(e, t) {
|
|
3776
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3777
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3792
3778
|
}, {})) : e;
|
|
3793
3779
|
}
|
|
3794
|
-
function
|
|
3780
|
+
function ii(e, t) {
|
|
3795
3781
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3796
|
-
return r[n] =
|
|
3797
|
-
},
|
|
3782
|
+
return r[n] = ni(e[n], t[n]), r;
|
|
3783
|
+
}, v({}, e)) : e;
|
|
3798
3784
|
}
|
|
3799
|
-
function
|
|
3785
|
+
function Be(e) {
|
|
3800
3786
|
return {
|
|
3801
3787
|
create: function() {
|
|
3802
3788
|
return {
|
|
@@ -3810,39 +3796,39 @@ function Ae(e) {
|
|
|
3810
3796
|
}
|
|
3811
3797
|
};
|
|
3812
3798
|
}
|
|
3813
|
-
function
|
|
3799
|
+
function oi(e) {
|
|
3814
3800
|
return e === void 0 && (e = {
|
|
3815
3801
|
number: {},
|
|
3816
3802
|
dateTime: {},
|
|
3817
3803
|
pluralRules: {}
|
|
3818
3804
|
}), {
|
|
3819
|
-
getNumberFormat:
|
|
3805
|
+
getNumberFormat: Se(function() {
|
|
3820
3806
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3821
3807
|
r[n] = arguments[n];
|
|
3822
3808
|
return new ((t = Intl.NumberFormat).bind.apply(t, F([void 0], r, !1)))();
|
|
3823
3809
|
}, {
|
|
3824
|
-
cache:
|
|
3825
|
-
strategy:
|
|
3810
|
+
cache: Be(e.number),
|
|
3811
|
+
strategy: we.variadic
|
|
3826
3812
|
}),
|
|
3827
|
-
getDateTimeFormat:
|
|
3813
|
+
getDateTimeFormat: Se(function() {
|
|
3828
3814
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3829
3815
|
r[n] = arguments[n];
|
|
3830
3816
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, F([void 0], r, !1)))();
|
|
3831
3817
|
}, {
|
|
3832
|
-
cache:
|
|
3833
|
-
strategy:
|
|
3818
|
+
cache: Be(e.dateTime),
|
|
3819
|
+
strategy: we.variadic
|
|
3834
3820
|
}),
|
|
3835
|
-
getPluralRules:
|
|
3821
|
+
getPluralRules: Se(function() {
|
|
3836
3822
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3837
3823
|
r[n] = arguments[n];
|
|
3838
3824
|
return new ((t = Intl.PluralRules).bind.apply(t, F([void 0], r, !1)))();
|
|
3839
3825
|
}, {
|
|
3840
|
-
cache:
|
|
3841
|
-
strategy:
|
|
3826
|
+
cache: Be(e.pluralRules),
|
|
3827
|
+
strategy: we.variadic
|
|
3842
3828
|
})
|
|
3843
3829
|
};
|
|
3844
3830
|
}
|
|
3845
|
-
var
|
|
3831
|
+
var si = (
|
|
3846
3832
|
/** @class */
|
|
3847
3833
|
function() {
|
|
3848
3834
|
function e(t, r, n, i) {
|
|
@@ -3857,7 +3843,7 @@ var ui = (
|
|
|
3857
3843
|
if (u.length === 1)
|
|
3858
3844
|
return u[0].value;
|
|
3859
3845
|
var l = u.reduce(function(f, c) {
|
|
3860
|
-
return !f.length || c.type !==
|
|
3846
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3861
3847
|
}, []);
|
|
3862
3848
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3863
3849
|
}, this.formatToParts = function(h) {
|
|
@@ -3874,13 +3860,13 @@ var ui = (
|
|
|
3874
3860
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3875
3861
|
var s = i || {};
|
|
3876
3862
|
s.formatters;
|
|
3877
|
-
var a =
|
|
3878
|
-
this.ast = e.__parse(t,
|
|
3863
|
+
var a = $r(s, ["formatters"]);
|
|
3864
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3879
3865
|
} else
|
|
3880
3866
|
this.ast = t;
|
|
3881
3867
|
if (!Array.isArray(this.ast))
|
|
3882
3868
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3883
|
-
this.formats =
|
|
3869
|
+
this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
|
3884
3870
|
}
|
|
3885
3871
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3886
3872
|
get: function() {
|
|
@@ -3893,7 +3879,7 @@ var ui = (
|
|
|
3893
3879
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3894
3880
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3895
3881
|
}
|
|
3896
|
-
}, e.__parse =
|
|
3882
|
+
}, e.__parse = qn, e.formats = {
|
|
3897
3883
|
number: {
|
|
3898
3884
|
integer: {
|
|
3899
3885
|
maximumFractionDigits: 0
|
|
@@ -3954,7 +3940,7 @@ var ui = (
|
|
|
3954
3940
|
}, e;
|
|
3955
3941
|
}()
|
|
3956
3942
|
);
|
|
3957
|
-
function
|
|
3943
|
+
function ai(e, t) {
|
|
3958
3944
|
if (t == null)
|
|
3959
3945
|
return;
|
|
3960
3946
|
if (t in e)
|
|
@@ -3975,92 +3961,92 @@ function hi(e, t) {
|
|
|
3975
3961
|
n = void 0;
|
|
3976
3962
|
return n;
|
|
3977
3963
|
}
|
|
3978
|
-
const O = {},
|
|
3964
|
+
const O = {}, ui = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), nr = (e, t) => {
|
|
3979
3965
|
if (t == null)
|
|
3980
3966
|
return;
|
|
3981
3967
|
if (t in O && e in O[t])
|
|
3982
3968
|
return O[t][e];
|
|
3983
|
-
const r =
|
|
3969
|
+
const r = ve(t);
|
|
3984
3970
|
for (let n = 0; n < r.length; n++) {
|
|
3985
|
-
const i = r[n], o =
|
|
3971
|
+
const i = r[n], o = li(i, e);
|
|
3986
3972
|
if (o)
|
|
3987
|
-
return
|
|
3973
|
+
return ui(e, t, o);
|
|
3988
3974
|
}
|
|
3989
3975
|
};
|
|
3990
|
-
let
|
|
3976
|
+
let Ze;
|
|
3991
3977
|
const ne = ge({});
|
|
3992
|
-
function
|
|
3993
|
-
return
|
|
3978
|
+
function hi(e) {
|
|
3979
|
+
return Ze[e] || null;
|
|
3994
3980
|
}
|
|
3995
|
-
function
|
|
3996
|
-
return e in
|
|
3981
|
+
function ir(e) {
|
|
3982
|
+
return e in Ze;
|
|
3997
3983
|
}
|
|
3998
|
-
function
|
|
3999
|
-
if (!
|
|
3984
|
+
function li(e, t) {
|
|
3985
|
+
if (!ir(e))
|
|
4000
3986
|
return null;
|
|
4001
|
-
const r =
|
|
4002
|
-
return
|
|
3987
|
+
const r = hi(e);
|
|
3988
|
+
return ai(r, t);
|
|
4003
3989
|
}
|
|
4004
|
-
function
|
|
3990
|
+
function fi(e) {
|
|
4005
3991
|
if (e == null)
|
|
4006
3992
|
return;
|
|
4007
|
-
const t =
|
|
3993
|
+
const t = ve(e);
|
|
4008
3994
|
for (let r = 0; r < t.length; r++) {
|
|
4009
3995
|
const n = t[r];
|
|
4010
|
-
if (
|
|
3996
|
+
if (ir(n))
|
|
4011
3997
|
return n;
|
|
4012
3998
|
}
|
|
4013
3999
|
}
|
|
4014
|
-
function
|
|
4015
|
-
delete O[e], ne.update((r) => (r[e] =
|
|
4000
|
+
function ci(e, ...t) {
|
|
4001
|
+
delete O[e], ne.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
|
|
4016
4002
|
}
|
|
4017
4003
|
W(
|
|
4018
4004
|
[ne],
|
|
4019
4005
|
([e]) => Object.keys(e)
|
|
4020
4006
|
);
|
|
4021
|
-
ne.subscribe((e) =>
|
|
4007
|
+
ne.subscribe((e) => Ze = e);
|
|
4022
4008
|
const pe = {};
|
|
4023
|
-
function
|
|
4009
|
+
function pi(e, t) {
|
|
4024
4010
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4025
4011
|
}
|
|
4026
|
-
function
|
|
4012
|
+
function or(e) {
|
|
4027
4013
|
return pe[e];
|
|
4028
4014
|
}
|
|
4029
4015
|
function di(e) {
|
|
4030
|
-
return
|
|
4031
|
-
const r =
|
|
4016
|
+
return ve(e).map((t) => {
|
|
4017
|
+
const r = or(t);
|
|
4032
4018
|
return [t, r ? [...r] : []];
|
|
4033
4019
|
}).filter(([, t]) => t.length > 0);
|
|
4034
4020
|
}
|
|
4035
|
-
function
|
|
4036
|
-
return e == null ? !1 :
|
|
4021
|
+
function ke(e) {
|
|
4022
|
+
return e == null ? !1 : ve(e).some(
|
|
4037
4023
|
(t) => {
|
|
4038
4024
|
var r;
|
|
4039
|
-
return (r =
|
|
4025
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
4040
4026
|
}
|
|
4041
4027
|
);
|
|
4042
4028
|
}
|
|
4043
|
-
function
|
|
4029
|
+
function mi(e, t) {
|
|
4044
4030
|
return Promise.all(
|
|
4045
|
-
t.map((n) => (
|
|
4046
|
-
).then((n) =>
|
|
4031
|
+
t.map((n) => (pi(e, n), n().then((i) => i.default || i)))
|
|
4032
|
+
).then((n) => ci(e, ...n));
|
|
4047
4033
|
}
|
|
4048
4034
|
const J = {};
|
|
4049
|
-
function
|
|
4050
|
-
if (!
|
|
4035
|
+
function sr(e) {
|
|
4036
|
+
if (!ke(e))
|
|
4051
4037
|
return e in J ? J[e] : Promise.resolve();
|
|
4052
4038
|
const t = di(e);
|
|
4053
4039
|
return J[e] = Promise.all(
|
|
4054
4040
|
t.map(
|
|
4055
|
-
([r, n]) =>
|
|
4041
|
+
([r, n]) => mi(r, n)
|
|
4056
4042
|
)
|
|
4057
4043
|
).then(() => {
|
|
4058
|
-
if (
|
|
4059
|
-
return
|
|
4044
|
+
if (ke(e))
|
|
4045
|
+
return sr(e);
|
|
4060
4046
|
delete J[e];
|
|
4061
4047
|
}), J[e];
|
|
4062
4048
|
}
|
|
4063
|
-
const
|
|
4049
|
+
const bi = {
|
|
4064
4050
|
number: {
|
|
4065
4051
|
scientific: { notation: "scientific" },
|
|
4066
4052
|
engineering: { notation: "engineering" },
|
|
@@ -4089,78 +4075,78 @@ const vi = {
|
|
|
4089
4075
|
timeZoneName: "short"
|
|
4090
4076
|
}
|
|
4091
4077
|
}
|
|
4092
|
-
},
|
|
4078
|
+
}, gi = {
|
|
4093
4079
|
fallbackLocale: null,
|
|
4094
4080
|
loadingDelay: 200,
|
|
4095
|
-
formats:
|
|
4081
|
+
formats: bi,
|
|
4096
4082
|
warnOnMissingMessages: !0,
|
|
4097
4083
|
handleMissingMessage: void 0,
|
|
4098
4084
|
ignoreTag: !0
|
|
4099
|
-
},
|
|
4085
|
+
}, yi = gi;
|
|
4100
4086
|
function X() {
|
|
4101
|
-
return
|
|
4102
|
-
}
|
|
4103
|
-
const
|
|
4104
|
-
var
|
|
4105
|
-
for (var r in t
|
|
4106
|
-
|
|
4107
|
-
if (
|
|
4108
|
-
for (var r of
|
|
4109
|
-
|
|
4087
|
+
return yi;
|
|
4088
|
+
}
|
|
4089
|
+
const Ae = ge(!1);
|
|
4090
|
+
var vi = Object.defineProperty, _i = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Si = (e, t) => {
|
|
4091
|
+
for (var r in t)
|
|
4092
|
+
xi.call(t, r) && xt(e, r, t[r]);
|
|
4093
|
+
if (Et)
|
|
4094
|
+
for (var r of Et(t))
|
|
4095
|
+
Ti.call(t, r) && xt(e, r, t[r]);
|
|
4110
4096
|
return e;
|
|
4111
|
-
},
|
|
4112
|
-
let
|
|
4113
|
-
const
|
|
4114
|
-
function
|
|
4097
|
+
}, wi = (e, t) => _i(e, Ei(t));
|
|
4098
|
+
let Ve;
|
|
4099
|
+
const de = ge(null);
|
|
4100
|
+
function Tt(e) {
|
|
4115
4101
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4116
4102
|
}
|
|
4117
|
-
function
|
|
4118
|
-
const r =
|
|
4119
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4103
|
+
function ve(e, t = X().fallbackLocale) {
|
|
4104
|
+
const r = Tt(e);
|
|
4105
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4120
4106
|
}
|
|
4121
4107
|
function M() {
|
|
4122
|
-
return
|
|
4108
|
+
return Ve != null ? Ve : void 0;
|
|
4123
4109
|
}
|
|
4124
|
-
|
|
4125
|
-
|
|
4110
|
+
de.subscribe((e) => {
|
|
4111
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4126
4112
|
});
|
|
4127
|
-
const
|
|
4128
|
-
if (e &&
|
|
4113
|
+
const Hi = (e) => {
|
|
4114
|
+
if (e && fi(e) && ke(e)) {
|
|
4129
4115
|
const { loadingDelay: t } = X();
|
|
4130
4116
|
let r;
|
|
4131
4117
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
4132
|
-
() =>
|
|
4118
|
+
() => Ae.set(!0),
|
|
4133
4119
|
t
|
|
4134
|
-
) :
|
|
4135
|
-
|
|
4120
|
+
) : Ae.set(!0), sr(e).then(() => {
|
|
4121
|
+
de.set(e);
|
|
4136
4122
|
}).finally(() => {
|
|
4137
|
-
clearTimeout(r),
|
|
4123
|
+
clearTimeout(r), Ae.set(!1);
|
|
4138
4124
|
});
|
|
4139
4125
|
}
|
|
4140
|
-
return
|
|
4141
|
-
}, ie =
|
|
4142
|
-
set:
|
|
4143
|
-
}),
|
|
4126
|
+
return de.set(e);
|
|
4127
|
+
}, ie = wi(Si({}, de), {
|
|
4128
|
+
set: Hi
|
|
4129
|
+
}), _e = (e) => {
|
|
4144
4130
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4145
4131
|
return (n) => {
|
|
4146
4132
|
const i = JSON.stringify(n);
|
|
4147
4133
|
return i in t ? t[i] : t[i] = e(n);
|
|
4148
4134
|
};
|
|
4149
4135
|
};
|
|
4150
|
-
var
|
|
4136
|
+
var Bi = Object.defineProperty, me = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
4151
4137
|
for (var r in t || (t = {}))
|
|
4152
|
-
|
|
4153
|
-
if (
|
|
4154
|
-
for (var r of
|
|
4155
|
-
|
|
4138
|
+
ar.call(t, r) && St(e, r, t[r]);
|
|
4139
|
+
if (me)
|
|
4140
|
+
for (var r of me(t))
|
|
4141
|
+
ur.call(t, r) && St(e, r, t[r]);
|
|
4156
4142
|
return e;
|
|
4157
4143
|
}, Z = (e, t) => {
|
|
4158
4144
|
var r = {};
|
|
4159
4145
|
for (var n in e)
|
|
4160
|
-
|
|
4161
|
-
if (e != null &&
|
|
4162
|
-
for (var n of
|
|
4163
|
-
t.indexOf(n) < 0 &&
|
|
4146
|
+
ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4147
|
+
if (e != null && me)
|
|
4148
|
+
for (var n of me(e))
|
|
4149
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
|
4164
4150
|
return r;
|
|
4165
4151
|
};
|
|
4166
4152
|
const ee = (e, t) => {
|
|
@@ -4168,21 +4154,21 @@ const ee = (e, t) => {
|
|
|
4168
4154
|
if (e in r && t in r[e])
|
|
4169
4155
|
return r[e][t];
|
|
4170
4156
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4171
|
-
},
|
|
4157
|
+
}, Ai = _e(
|
|
4172
4158
|
(e) => {
|
|
4173
4159
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4174
4160
|
if (r == null)
|
|
4175
4161
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4176
4162
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4177
4163
|
}
|
|
4178
|
-
),
|
|
4164
|
+
), Pi = _e(
|
|
4179
4165
|
(e) => {
|
|
4180
4166
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4181
4167
|
if (r == null)
|
|
4182
4168
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4183
4169
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4184
4170
|
}
|
|
4185
|
-
),
|
|
4171
|
+
), Oi = _e(
|
|
4186
4172
|
(e) => {
|
|
4187
4173
|
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4188
4174
|
if (r == null)
|
|
@@ -4191,33 +4177,33 @@ const ee = (e, t) => {
|
|
|
4191
4177
|
);
|
|
4192
4178
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4193
4179
|
}
|
|
4194
|
-
),
|
|
4180
|
+
), Ii = (e = {}) => {
|
|
4195
4181
|
var t = e, {
|
|
4196
4182
|
locale: r = M()
|
|
4197
4183
|
} = t, n = Z(t, [
|
|
4198
4184
|
"locale"
|
|
4199
4185
|
]);
|
|
4200
|
-
return
|
|
4201
|
-
},
|
|
4186
|
+
return Ai(Qe({ locale: r }, n));
|
|
4187
|
+
}, Ni = (e = {}) => {
|
|
4202
4188
|
var t = e, {
|
|
4203
4189
|
locale: r = M()
|
|
4204
4190
|
} = t, n = Z(t, [
|
|
4205
4191
|
"locale"
|
|
4206
4192
|
]);
|
|
4207
|
-
return
|
|
4208
|
-
},
|
|
4193
|
+
return Pi(Qe({ locale: r }, n));
|
|
4194
|
+
}, Li = (e = {}) => {
|
|
4209
4195
|
var t = e, {
|
|
4210
4196
|
locale: r = M()
|
|
4211
4197
|
} = t, n = Z(t, [
|
|
4212
4198
|
"locale"
|
|
4213
4199
|
]);
|
|
4214
|
-
return
|
|
4215
|
-
},
|
|
4200
|
+
return Oi(Qe({ locale: r }, n));
|
|
4201
|
+
}, Ci = _e(
|
|
4216
4202
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4217
|
-
(e, t = M()) => new
|
|
4203
|
+
(e, t = M()) => new si(e, t, X().formats, {
|
|
4218
4204
|
ignoreTag: X().ignoreTag
|
|
4219
4205
|
})
|
|
4220
|
-
),
|
|
4206
|
+
), Mi = (e, t = {}) => {
|
|
4221
4207
|
var r, n, i, o;
|
|
4222
4208
|
let s = t;
|
|
4223
4209
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4230,7 +4216,7 @@ const ee = (e, t) => {
|
|
|
4230
4216
|
throw new Error(
|
|
4231
4217
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4232
4218
|
);
|
|
4233
|
-
let l =
|
|
4219
|
+
let l = nr(e, h);
|
|
4234
4220
|
if (!l)
|
|
4235
4221
|
l = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4236
4222
|
else if (typeof l != "string")
|
|
@@ -4241,7 +4227,7 @@ const ee = (e, t) => {
|
|
|
4241
4227
|
return l;
|
|
4242
4228
|
let f = l;
|
|
4243
4229
|
try {
|
|
4244
|
-
f =
|
|
4230
|
+
f = Ci(l, h).format(a);
|
|
4245
4231
|
} catch (c) {
|
|
4246
4232
|
c instanceof Error && console.warn(
|
|
4247
4233
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4249,21 +4235,21 @@ const ee = (e, t) => {
|
|
|
4249
4235
|
);
|
|
4250
4236
|
}
|
|
4251
4237
|
return f;
|
|
4252
|
-
},
|
|
4253
|
-
W([ie, ne], () =>
|
|
4238
|
+
}, Ri = (e, t) => Li(t).format(e), $i = (e, t) => Ni(t).format(e), Ui = (e, t) => Ii(t).format(e), Di = (e, t = M()) => nr(e, t);
|
|
4239
|
+
W([ie, ne], () => Mi);
|
|
4240
|
+
W([ie], () => Ri);
|
|
4241
|
+
W([ie], () => $i);
|
|
4254
4242
|
W([ie], () => Ui);
|
|
4255
|
-
W([ie], () => Di);
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
const ji = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4260
|
-
function ki(e, t) {
|
|
4243
|
+
W([ie, ne], () => Di);
|
|
4244
|
+
window.emWidgets = { topic: Yr };
|
|
4245
|
+
const Gi = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4246
|
+
function Fi(e, t) {
|
|
4261
4247
|
if (e) {
|
|
4262
4248
|
const r = document.createElement("style");
|
|
4263
4249
|
r.innerHTML = t, e.appendChild(r);
|
|
4264
4250
|
}
|
|
4265
4251
|
}
|
|
4266
|
-
function
|
|
4252
|
+
function ji(e, t) {
|
|
4267
4253
|
const r = new URL(t);
|
|
4268
4254
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4269
4255
|
const i = document.createElement("style");
|
|
@@ -4272,7 +4258,7 @@ function Vi(e, t) {
|
|
|
4272
4258
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4273
4259
|
});
|
|
4274
4260
|
}
|
|
4275
|
-
function
|
|
4261
|
+
function ki(e, t, r) {
|
|
4276
4262
|
if (window.emMessageBus) {
|
|
4277
4263
|
const n = document.createElement("style");
|
|
4278
4264
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4280,20 +4266,20 @@ function Xi(e, t, r) {
|
|
|
4280
4266
|
});
|
|
4281
4267
|
}
|
|
4282
4268
|
}
|
|
4283
|
-
function
|
|
4284
|
-
|
|
4269
|
+
function Vi(e) {
|
|
4270
|
+
dr(e, "svelte-qazmct", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:var(--emw--color-primary, #F7F7F7);font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw var(--emw--color-grey-105, #424242) solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;font-size:var(--emw--font-size-small, 14px);flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}.TabDesktop.casino-tournaments-tab{margin:10px}.TabDesktop.casino-tournaments-tab ul{font-size:inherit;border-bottom:2px var(--emw--color-grey-105, #424242) solid}.TabDesktop.casino-tournaments-tab ul li{padding:10px 20px;cursor:pointer}.TabDesktop.casino-tournaments-tab ul li.active{color:var(--emw--color-primary, #FF8364);border-bottom:3px var(--emw--color-primary, #FF8364) solid}.TabDesktop.casino-tournaments-tab ul li span{margin:auto 0}");
|
|
4285
4271
|
}
|
|
4286
|
-
function
|
|
4272
|
+
function wt(e, t, r) {
|
|
4287
4273
|
const n = e.slice();
|
|
4288
4274
|
return n[16] = t[r], n;
|
|
4289
4275
|
}
|
|
4290
|
-
function
|
|
4291
|
-
let t, r =
|
|
4276
|
+
function Ht(e) {
|
|
4277
|
+
let t, r = it(
|
|
4292
4278
|
/*__tabs*/
|
|
4293
4279
|
e[6]
|
|
4294
4280
|
), n = [];
|
|
4295
4281
|
for (let i = 0; i < r.length; i += 1)
|
|
4296
|
-
n[i] =
|
|
4282
|
+
n[i] = At(wt(e, r, i));
|
|
4297
4283
|
return {
|
|
4298
4284
|
c() {
|
|
4299
4285
|
t = I("ul");
|
|
@@ -4309,14 +4295,14 @@ function At(e) {
|
|
|
4309
4295
|
p(i, o) {
|
|
4310
4296
|
if (o & /*__tab, __tabs, window, tid, totalReceiver, textReceiver*/
|
|
4311
4297
|
121) {
|
|
4312
|
-
r =
|
|
4298
|
+
r = it(
|
|
4313
4299
|
/*__tabs*/
|
|
4314
4300
|
i[6]
|
|
4315
4301
|
);
|
|
4316
4302
|
let s;
|
|
4317
4303
|
for (s = 0; s < r.length; s += 1) {
|
|
4318
|
-
const a =
|
|
4319
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4304
|
+
const a = wt(i, r, s);
|
|
4305
|
+
n[s] ? n[s].p(a, o) : (n[s] = At(a), n[s].c(), n[s].m(t, null));
|
|
4320
4306
|
}
|
|
4321
4307
|
for (; s < n.length; s += 1)
|
|
4322
4308
|
n[s].d(1);
|
|
@@ -4324,11 +4310,11 @@ function At(e) {
|
|
|
4324
4310
|
}
|
|
4325
4311
|
},
|
|
4326
4312
|
d(i) {
|
|
4327
|
-
i && z(t),
|
|
4313
|
+
i && z(t), gr(n, i);
|
|
4328
4314
|
}
|
|
4329
4315
|
};
|
|
4330
4316
|
}
|
|
4331
|
-
function
|
|
4317
|
+
function Bt(e) {
|
|
4332
4318
|
let t, r, n = (
|
|
4333
4319
|
/*totalReceiver*/
|
|
4334
4320
|
e[3][
|
|
@@ -4338,7 +4324,7 @@ function Pt(e) {
|
|
|
4338
4324
|
), i;
|
|
4339
4325
|
return {
|
|
4340
4326
|
c() {
|
|
4341
|
-
t = I("sup"), r = I("span"), i =
|
|
4327
|
+
t = I("sup"), r = I("span"), i = ze(n), S(r, "part", "SupText"), S(t, "part", "sup");
|
|
4342
4328
|
},
|
|
4343
4329
|
m(o, s) {
|
|
4344
4330
|
re(o, t, s), C(t, r), C(r, i);
|
|
@@ -4349,14 +4335,14 @@ function Pt(e) {
|
|
|
4349
4335
|
o[3][
|
|
4350
4336
|
/*_tab*/
|
|
4351
4337
|
o[16]
|
|
4352
|
-
] + "") &&
|
|
4338
|
+
] + "") && It(i, n);
|
|
4353
4339
|
},
|
|
4354
4340
|
d(o) {
|
|
4355
4341
|
o && z(t);
|
|
4356
4342
|
}
|
|
4357
4343
|
};
|
|
4358
4344
|
}
|
|
4359
|
-
function
|
|
4345
|
+
function At(e) {
|
|
4360
4346
|
let t, r, n = (
|
|
4361
4347
|
/*textReceiver*/
|
|
4362
4348
|
e[4][
|
|
@@ -4368,7 +4354,7 @@ function Ot(e) {
|
|
|
4368
4354
|
e[3][
|
|
4369
4355
|
/*_tab*/
|
|
4370
4356
|
e[16]
|
|
4371
|
-
] >= 0 &&
|
|
4357
|
+
] >= 0 && Bt(e)
|
|
4372
4358
|
);
|
|
4373
4359
|
function c() {
|
|
4374
4360
|
return (
|
|
@@ -4381,30 +4367,30 @@ function Ot(e) {
|
|
|
4381
4367
|
}
|
|
4382
4368
|
return {
|
|
4383
4369
|
c() {
|
|
4384
|
-
t = I("li"), r = I("span"), i =
|
|
4370
|
+
t = I("li"), r = I("span"), i = ze(n), o = rt(), f && f.c(), s = rt(), S(r, "part", "LiText"), S(t, "class", a = /*__tab*/
|
|
4385
4371
|
e[5] === /*_tab*/
|
|
4386
4372
|
e[16] ? "active" : ""), S(t, "part", h = `${/*_tab*/
|
|
4387
4373
|
e[16]} li ` + /*__tab*/
|
|
4388
4374
|
(e[5] === /*_tab*/
|
|
4389
4375
|
e[16] ? "active" : ""));
|
|
4390
4376
|
},
|
|
4391
|
-
m(p,
|
|
4392
|
-
re(p, t,
|
|
4377
|
+
m(p, m) {
|
|
4378
|
+
re(p, t, m), C(t, r), C(r, i), C(t, o), f && f.m(t, null), C(t, s), u || (l = yr(t, "click", c), u = !0);
|
|
4393
4379
|
},
|
|
4394
|
-
p(p,
|
|
4395
|
-
e = p,
|
|
4380
|
+
p(p, m) {
|
|
4381
|
+
e = p, m & /*textReceiver, __tabs*/
|
|
4396
4382
|
80 && n !== (n = /*textReceiver*/
|
|
4397
4383
|
e[4][
|
|
4398
4384
|
/*_tab*/
|
|
4399
4385
|
e[16]
|
|
4400
|
-
] + "") &&
|
|
4386
|
+
] + "") && It(i, n), /*totalReceiver*/
|
|
4401
4387
|
e[3][
|
|
4402
4388
|
/*_tab*/
|
|
4403
4389
|
e[16]
|
|
4404
|
-
] >= 0 ? f ? f.p(e,
|
|
4390
|
+
] >= 0 ? f ? f.p(e, m) : (f = Bt(e), f.c(), f.m(t, s)) : f && (f.d(1), f = null), m & /*__tab, __tabs*/
|
|
4405
4391
|
96 && a !== (a = /*__tab*/
|
|
4406
4392
|
e[5] === /*_tab*/
|
|
4407
|
-
e[16] ? "active" : "") && S(t, "class", a),
|
|
4393
|
+
e[16] ? "active" : "") && S(t, "class", a), m & /*__tabs, __tab*/
|
|
4408
4394
|
96 && h !== (h = `${/*_tab*/
|
|
4409
4395
|
e[16]} li ` + /*__tab*/
|
|
4410
4396
|
(e[5] === /*_tab*/
|
|
@@ -4415,14 +4401,14 @@ function Ot(e) {
|
|
|
4415
4401
|
}
|
|
4416
4402
|
};
|
|
4417
4403
|
}
|
|
4418
|
-
function
|
|
4404
|
+
function Xi(e) {
|
|
4419
4405
|
let t, r = (
|
|
4420
4406
|
/*isTitleInited*/
|
|
4421
|
-
e[2] &&
|
|
4407
|
+
e[2] && Ht(e)
|
|
4422
4408
|
);
|
|
4423
4409
|
return {
|
|
4424
4410
|
c() {
|
|
4425
|
-
t = I("div"), r && r.c(), S(t, "class", "casino-tournaments-tab " + (
|
|
4411
|
+
t = I("div"), r && r.c(), S(t, "class", "casino-tournaments-tab " + (Gi(
|
|
4426
4412
|
/*userAgent*/
|
|
4427
4413
|
e[7]
|
|
4428
4414
|
) ? "TabMobile" : "TabDesktop")), S(t, "part", "CustomStylingContainer");
|
|
@@ -4432,7 +4418,7 @@ function Wi(e) {
|
|
|
4432
4418
|
},
|
|
4433
4419
|
p(n, [i]) {
|
|
4434
4420
|
/*isTitleInited*/
|
|
4435
|
-
n[2] ? r ? r.p(n, i) : (r =
|
|
4421
|
+
n[2] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4436
4422
|
},
|
|
4437
4423
|
i: w,
|
|
4438
4424
|
o: w,
|
|
@@ -4441,23 +4427,23 @@ function Wi(e) {
|
|
|
4441
4427
|
}
|
|
4442
4428
|
};
|
|
4443
4429
|
}
|
|
4444
|
-
function
|
|
4430
|
+
function zi(e, t, r) {
|
|
4445
4431
|
let n, i, { tabs: o = "" } = t, { tab: s = void 0 } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { tid: l = "pageTab" } = t, f, c = !1;
|
|
4446
4432
|
const p = window.navigator.userAgent;
|
|
4447
|
-
let
|
|
4448
|
-
|
|
4433
|
+
let m = {}, y = {};
|
|
4434
|
+
Rr({
|
|
4449
4435
|
TournamentsTabTotalUpdate: (g) => {
|
|
4450
|
-
r(3,
|
|
4436
|
+
r(3, m = ae(R({}, m), {
|
|
4451
4437
|
[g.state]: g.total
|
|
4452
4438
|
}));
|
|
4453
4439
|
},
|
|
4454
4440
|
TournamentsTabsLocalize: (g) => {
|
|
4455
|
-
r(2, c = !0), r(4,
|
|
4441
|
+
r(2, c = !0), r(4, y = R(R({}, y), g.tabTitleTranslations));
|
|
4456
4442
|
},
|
|
4457
4443
|
TournamentsTabLocaleTextUpdate: (g) => {
|
|
4458
|
-
r(2, c = !0), r(4,
|
|
4444
|
+
r(2, c = !0), r(4, y = ae(R({}, y), { [g.state]: g.text }));
|
|
4459
4445
|
}
|
|
4460
|
-
}),
|
|
4446
|
+
}), Nt(() => (window.postMessage(
|
|
4461
4447
|
{
|
|
4462
4448
|
type: "TournamentsTabListenerLoaded",
|
|
4463
4449
|
tid: l
|
|
@@ -4475,8 +4461,8 @@ function Zi(e, t, r) {
|
|
|
4475
4461
|
window.location.href
|
|
4476
4462
|
);
|
|
4477
4463
|
};
|
|
4478
|
-
function
|
|
4479
|
-
|
|
4464
|
+
function N(g) {
|
|
4465
|
+
Pe[g ? "unshift" : "push"](() => {
|
|
4480
4466
|
f = g, r(1, f);
|
|
4481
4467
|
});
|
|
4482
4468
|
}
|
|
@@ -4484,17 +4470,17 @@ function Zi(e, t, r) {
|
|
|
4484
4470
|
"tabs" in g && r(8, o = g.tabs), "tab" in g && r(9, s = g.tab), "clientstyling" in g && r(10, a = g.clientstyling), "clientstylingurl" in g && r(11, h = g.clientstylingurl), "mbsource" in g && r(12, u = g.mbsource), "tid" in g && r(0, l = g.tid);
|
|
4485
4471
|
}, e.$$.update = () => {
|
|
4486
4472
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4487
|
-
1026 && a && f &&
|
|
4488
|
-
2050 && h && f &&
|
|
4489
|
-
4098 && u && f &&
|
|
4473
|
+
1026 && a && f && Fi(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4474
|
+
2050 && h && f && ji(f, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4475
|
+
4098 && u && f && ki(f, `${u}.Style`), e.$$.dirty & /*tabs*/
|
|
4490
4476
|
256 && r(6, n = o.split(",")), e.$$.dirty & /*tab*/
|
|
4491
4477
|
512 && r(5, i = s);
|
|
4492
4478
|
}, [
|
|
4493
4479
|
l,
|
|
4494
4480
|
f,
|
|
4495
4481
|
c,
|
|
4496
|
-
|
|
4497
|
-
|
|
4482
|
+
m,
|
|
4483
|
+
y,
|
|
4498
4484
|
i,
|
|
4499
4485
|
n,
|
|
4500
4486
|
p,
|
|
@@ -4504,17 +4490,17 @@ function Zi(e, t, r) {
|
|
|
4504
4490
|
h,
|
|
4505
4491
|
u,
|
|
4506
4492
|
T,
|
|
4507
|
-
|
|
4493
|
+
N
|
|
4508
4494
|
];
|
|
4509
4495
|
}
|
|
4510
|
-
class
|
|
4496
|
+
class Wi extends Lr {
|
|
4511
4497
|
constructor(t) {
|
|
4512
|
-
super(),
|
|
4498
|
+
super(), Ir(
|
|
4513
4499
|
this,
|
|
4514
4500
|
t,
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4501
|
+
zi,
|
|
4502
|
+
Xi,
|
|
4503
|
+
Ot,
|
|
4518
4504
|
{
|
|
4519
4505
|
tabs: 8,
|
|
4520
4506
|
tab: 9,
|
|
@@ -4523,7 +4509,7 @@ class Qi extends Rr {
|
|
|
4523
4509
|
mbsource: 12,
|
|
4524
4510
|
tid: 0
|
|
4525
4511
|
},
|
|
4526
|
-
|
|
4512
|
+
Vi
|
|
4527
4513
|
);
|
|
4528
4514
|
}
|
|
4529
4515
|
get tabs() {
|
|
@@ -4563,7 +4549,7 @@ class Qi extends Rr {
|
|
|
4563
4549
|
this.$$set({ tid: t }), P();
|
|
4564
4550
|
}
|
|
4565
4551
|
}
|
|
4566
|
-
|
|
4552
|
+
Nr(Wi, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, tid: {} }, [], [], !0);
|
|
4567
4553
|
export {
|
|
4568
|
-
|
|
4554
|
+
Wi as default
|
|
4569
4555
|
};
|