@everymatrix/casino-tournaments-thumbnail-games 1.77.25 → 1.77.26
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/{CasinoTournamentsThumbnailGames-DVwtSIOX.js → CasinoTournamentsThumbnailGames-C7DsRwAo.js} +751 -772
- package/components/{CasinoTournamentsThumbnailGames-D0pYbVi1.js → CasinoTournamentsThumbnailGames-DBsz9ve0.js} +803 -824
- package/components/CasinoTournamentsThumbnailGames-JC9us6Fn.cjs +18 -0
- package/es2015/casino-tournaments-thumbnail-games.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-games.js +1 -1
- package/esnext/casino-tournaments-thumbnail-games.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BD-QREJe.js +558 -0
- package/stencil/index-97d17652-DJqGt8q2.js +542 -0
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-BMiZteNE.cjs} +1 -1
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-BW8AeEVd.js} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-CX3MBBZL.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/components/CasinoTournamentsThumbnailGames-DbrFRheL.cjs +0 -18
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-BW8AeEVd.js";
|
|
2
2
|
function G() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Ft(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function ct() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function se(e) {
|
|
11
|
+
e.forEach(Ft);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Be(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function jt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let de;
|
|
20
|
-
function
|
|
20
|
+
function ft(e, t) {
|
|
21
21
|
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Pr(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function kt(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,20 +32,20 @@ function Xt(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
e.$$.on_destroy.push(
|
|
35
|
+
function Ar(e, t, r) {
|
|
36
|
+
e.$$.on_destroy.push(kt(t, r));
|
|
37
37
|
}
|
|
38
38
|
function x(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function Or(e, t, r) {
|
|
42
|
+
const n = Nr(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
44
|
const i = P("style");
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
45
|
+
i.id = t, i.textContent = r, Cr(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Nr(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,20 +55,20 @@ function Cr(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Cr(e, t) {
|
|
59
59
|
return x(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function D(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
68
|
function $(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Vt(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
@@ -78,16 +78,16 @@ function P(e) {
|
|
|
78
78
|
function be(e) {
|
|
79
79
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function U(e) {
|
|
82
82
|
return document.createTextNode(e);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function F() {
|
|
85
|
+
return U(" ");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function Ir() {
|
|
88
|
+
return U("");
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Fe(e, t, r, n) {
|
|
91
91
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
92
92
|
}
|
|
93
93
|
function v(e, t, r) {
|
|
@@ -97,14 +97,14 @@ function O(e, t, r) {
|
|
|
97
97
|
const n = t.toLowerCase();
|
|
98
98
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : v(e, t, r);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Lr(e) {
|
|
101
101
|
return Array.from(e.childNodes);
|
|
102
102
|
}
|
|
103
103
|
function X(e, t) {
|
|
104
104
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
105
105
|
t);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Mr(e) {
|
|
108
108
|
const t = {};
|
|
109
109
|
return e.childNodes.forEach(
|
|
110
110
|
/** @param {Element} node */
|
|
@@ -113,93 +113,93 @@ function Rr(e) {
|
|
|
113
113
|
}
|
|
114
114
|
), t;
|
|
115
115
|
}
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
116
|
+
let fe;
|
|
117
|
+
function ce(e) {
|
|
118
|
+
fe = e;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
if (!
|
|
120
|
+
function Xt() {
|
|
121
|
+
if (!fe)
|
|
122
122
|
throw new Error("Function called outside component initialization");
|
|
123
|
-
return
|
|
123
|
+
return fe;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function Rr(e) {
|
|
126
|
+
Xt().$$.on_mount.push(e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
128
|
+
function Gr(e) {
|
|
129
|
+
Xt().$$.on_destroy.push(e);
|
|
130
130
|
}
|
|
131
131
|
const K = [], we = [];
|
|
132
132
|
let ee = [];
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
133
|
+
const mt = [], $r = /* @__PURE__ */ Promise.resolve();
|
|
134
|
+
let je = !1;
|
|
135
|
+
function Ur() {
|
|
136
|
+
je || (je = !0, $r.then(Q));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ke(e) {
|
|
139
139
|
ee.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const Ie = /* @__PURE__ */ new Set();
|
|
142
142
|
let q = 0;
|
|
143
143
|
function Q() {
|
|
144
144
|
if (q !== 0)
|
|
145
145
|
return;
|
|
146
|
-
const e =
|
|
146
|
+
const e = fe;
|
|
147
147
|
do {
|
|
148
148
|
try {
|
|
149
149
|
for (; q < K.length; ) {
|
|
150
150
|
const t = K[q];
|
|
151
|
-
q++,
|
|
151
|
+
q++, ce(t), Dr(t.$$);
|
|
152
152
|
}
|
|
153
153
|
} catch (t) {
|
|
154
154
|
throw K.length = 0, q = 0, t;
|
|
155
155
|
}
|
|
156
|
-
for (
|
|
156
|
+
for (ce(null), K.length = 0, q = 0; we.length; )
|
|
157
157
|
we.pop()();
|
|
158
158
|
for (let t = 0; t < ee.length; t += 1) {
|
|
159
159
|
const r = ee[t];
|
|
160
|
-
|
|
160
|
+
Ie.has(r) || (Ie.add(r), r());
|
|
161
161
|
}
|
|
162
162
|
ee.length = 0;
|
|
163
163
|
} while (K.length);
|
|
164
|
-
for (;
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
for (; mt.length; )
|
|
165
|
+
mt.pop()();
|
|
166
|
+
je = !1, Ie.clear(), ce(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Dr(e) {
|
|
169
169
|
if (e.fragment !== null) {
|
|
170
|
-
e.update(),
|
|
170
|
+
e.update(), se(e.before_update);
|
|
171
171
|
const t = e.dirty;
|
|
172
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
172
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Fr(e) {
|
|
176
176
|
const t = [], r = [];
|
|
177
177
|
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
181
|
-
e && e.i && (
|
|
179
|
+
const jr = /* @__PURE__ */ new Set();
|
|
180
|
+
function kr(e, t) {
|
|
181
|
+
e && e.i && (jr.delete(e), e.i(t));
|
|
182
182
|
}
|
|
183
183
|
function Te(e) {
|
|
184
184
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Vr(e, t, r) {
|
|
187
187
|
const { fragment: n, after_update: i } = e.$$;
|
|
188
|
-
n && n.m(t, r),
|
|
189
|
-
const o = e.$$.on_mount.map(
|
|
190
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
191
|
-
}), i.forEach(
|
|
188
|
+
n && n.m(t, r), ke(() => {
|
|
189
|
+
const o = e.$$.on_mount.map(Ft).filter(Be);
|
|
190
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
191
|
+
}), i.forEach(ke);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Xr(e, t) {
|
|
194
194
|
const r = e.$$;
|
|
195
|
-
r.fragment !== null && (
|
|
195
|
+
r.fragment !== null && (Fr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
197
|
+
function Wr(e, t) {
|
|
198
|
+
e.$$.dirty[0] === -1 && (K.push(e), Ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const l =
|
|
202
|
-
|
|
200
|
+
function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
201
|
+
const l = fe;
|
|
202
|
+
ce(e);
|
|
203
203
|
const u = e.$$ = {
|
|
204
204
|
fragment: null,
|
|
205
205
|
ctx: [],
|
|
@@ -207,7 +207,7 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
207
207
|
props: o,
|
|
208
208
|
update: G,
|
|
209
209
|
not_equal: i,
|
|
210
|
-
bound:
|
|
210
|
+
bound: ct(),
|
|
211
211
|
// lifecycle
|
|
212
212
|
on_mount: [],
|
|
213
213
|
on_destroy: [],
|
|
@@ -216,7 +216,7 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
216
216
|
after_update: [],
|
|
217
217
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
218
218
|
// everything else
|
|
219
|
-
callbacks:
|
|
219
|
+
callbacks: ct(),
|
|
220
220
|
dirty: a,
|
|
221
221
|
skip_bound: !1,
|
|
222
222
|
root: t.target || l.$$.root
|
|
@@ -225,19 +225,19 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
225
225
|
let h = !1;
|
|
226
226
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
227
227
|
const b = d.length ? d[0] : c;
|
|
228
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h &&
|
|
229
|
-
}) : [], u.update(), h = !0,
|
|
228
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Wr(e, f)), c;
|
|
229
|
+
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
230
230
|
if (t.hydrate) {
|
|
231
|
-
const f =
|
|
231
|
+
const f = Lr(t.target);
|
|
232
232
|
u.fragment && u.fragment.l(f), f.forEach($);
|
|
233
233
|
} else
|
|
234
234
|
u.fragment && u.fragment.c();
|
|
235
|
-
t.intro &&
|
|
235
|
+
t.intro && kr(e.$$.fragment), Vr(e, t.target, t.anchor), Q();
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
ce(l);
|
|
238
238
|
}
|
|
239
|
-
let
|
|
240
|
-
typeof HTMLElement == "function" && (
|
|
239
|
+
let Wt;
|
|
240
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
241
241
|
/** The Svelte component constructor */
|
|
242
242
|
$$ctor;
|
|
243
243
|
/** Slots */
|
|
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
286
286
|
* @param {HTMLElement} [anchor]
|
|
287
287
|
*/
|
|
288
288
|
m: function(l, u) {
|
|
289
|
-
|
|
289
|
+
D(l, o, u);
|
|
290
290
|
},
|
|
291
291
|
d: function(l) {
|
|
292
292
|
l && $(o);
|
|
@@ -296,7 +296,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
296
296
|
};
|
|
297
297
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
298
298
|
return;
|
|
299
|
-
const t = {}, r =
|
|
299
|
+
const t = {}, r = Mr(this);
|
|
300
300
|
for (const i of this.$$s)
|
|
301
301
|
i in r && (t[i] = [e(i)]);
|
|
302
302
|
for (const i of this.attributes) {
|
|
@@ -383,8 +383,8 @@ function ye(e, t, r, n) {
|
|
|
383
383
|
return t;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
let s = class extends
|
|
386
|
+
function Zr(e, t, r, n, i, o) {
|
|
387
|
+
let s = class extends Wt {
|
|
388
388
|
constructor() {
|
|
389
389
|
super(e, r, i), this.$$p_d = t;
|
|
390
390
|
}
|
|
@@ -412,7 +412,7 @@ function Qr(e, t, r, n, i, o) {
|
|
|
412
412
|
}), e.element = /** @type {any} */
|
|
413
413
|
s, s;
|
|
414
414
|
}
|
|
415
|
-
class
|
|
415
|
+
class Qr {
|
|
416
416
|
/**
|
|
417
417
|
* ### PRIVATE API
|
|
418
418
|
*
|
|
@@ -431,7 +431,7 @@ class Jr {
|
|
|
431
431
|
$$set = void 0;
|
|
432
432
|
/** @returns {void} */
|
|
433
433
|
$destroy() {
|
|
434
|
-
|
|
434
|
+
Xr(this, 1), this.$destroy = G;
|
|
435
435
|
}
|
|
436
436
|
/**
|
|
437
437
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -440,7 +440,7 @@ class Jr {
|
|
|
440
440
|
* @returns {() => void}
|
|
441
441
|
*/
|
|
442
442
|
$on(t, r) {
|
|
443
|
-
if (!
|
|
443
|
+
if (!Be(r))
|
|
444
444
|
return G;
|
|
445
445
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
446
446
|
return n.push(r), () => {
|
|
@@ -453,18 +453,18 @@ class Jr {
|
|
|
453
453
|
* @returns {void}
|
|
454
454
|
*/
|
|
455
455
|
$set(t) {
|
|
456
|
-
this.$$set && !
|
|
456
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
const
|
|
460
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
461
|
-
function
|
|
459
|
+
const Jr = "4";
|
|
460
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
|
461
|
+
function qr(e, t) {
|
|
462
462
|
if (e) {
|
|
463
463
|
const r = document.createElement("style");
|
|
464
464
|
r.innerHTML = t, e.appendChild(r);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Yr(e, t) {
|
|
468
468
|
const r = new URL(t);
|
|
469
469
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
470
470
|
const i = document.createElement("style");
|
|
@@ -473,7 +473,7 @@ function Kr(e, t) {
|
|
|
473
473
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Kr(e, t, r) {
|
|
477
477
|
if (window.emMessageBus) {
|
|
478
478
|
const n = document.createElement("style");
|
|
479
479
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -495,24 +495,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
495
495
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
496
496
|
PERFORMANCE OF THIS SOFTWARE.
|
|
497
497
|
***************************************************************************** */
|
|
498
|
-
var
|
|
499
|
-
return
|
|
498
|
+
var Ve = function(e, t) {
|
|
499
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
500
500
|
r.__proto__ = n;
|
|
501
501
|
} || function(r, n) {
|
|
502
502
|
for (var i in n)
|
|
503
503
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
504
|
-
},
|
|
504
|
+
}, Ve(e, t);
|
|
505
505
|
};
|
|
506
|
-
function
|
|
506
|
+
function k(e, t) {
|
|
507
507
|
if (typeof t != "function" && t !== null)
|
|
508
508
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
509
|
-
|
|
509
|
+
Ve(e, t);
|
|
510
510
|
function r() {
|
|
511
511
|
this.constructor = e;
|
|
512
512
|
}
|
|
513
513
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
var T = function() {
|
|
516
|
+
return T = Object.assign || function(t) {
|
|
517
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
518
|
+
r = arguments[n];
|
|
519
|
+
for (var o in r)
|
|
520
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
521
|
+
}
|
|
522
|
+
return t;
|
|
523
|
+
}, T.apply(this, arguments);
|
|
524
|
+
};
|
|
525
|
+
function en(e, t) {
|
|
526
|
+
var r = {};
|
|
527
|
+
for (var n in e)
|
|
528
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
529
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
530
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
531
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
532
|
+
return r;
|
|
533
|
+
}
|
|
534
|
+
function Xe(e) {
|
|
516
535
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
517
536
|
if (r)
|
|
518
537
|
return r.call(e);
|
|
@@ -524,7 +543,7 @@ function ze(e) {
|
|
|
524
543
|
};
|
|
525
544
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
526
545
|
}
|
|
527
|
-
function
|
|
546
|
+
function We(e, t) {
|
|
528
547
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
529
548
|
if (!r)
|
|
530
549
|
return e;
|
|
@@ -544,22 +563,22 @@ function Ze(e, t) {
|
|
|
544
563
|
}
|
|
545
564
|
return o;
|
|
546
565
|
}
|
|
547
|
-
function
|
|
548
|
-
if (arguments.length === 2)
|
|
566
|
+
function te(e, t, r) {
|
|
567
|
+
if (r || arguments.length === 2)
|
|
549
568
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
550
569
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
551
570
|
return e.concat(o || t);
|
|
552
571
|
}
|
|
553
|
-
function
|
|
572
|
+
function j(e) {
|
|
554
573
|
return typeof e == "function";
|
|
555
574
|
}
|
|
556
|
-
function
|
|
575
|
+
function zt(e) {
|
|
557
576
|
var t = function(n) {
|
|
558
577
|
Error.call(n), n.stack = new Error().stack;
|
|
559
578
|
}, r = e(t);
|
|
560
579
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
561
580
|
}
|
|
562
|
-
var
|
|
581
|
+
var Le = zt(function(e) {
|
|
563
582
|
return function(r) {
|
|
564
583
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
565
584
|
` + r.map(function(n, i) {
|
|
@@ -568,13 +587,13 @@ var Re = Qt(function(e) {
|
|
|
568
587
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
569
588
|
};
|
|
570
589
|
});
|
|
571
|
-
function
|
|
590
|
+
function ze(e, t) {
|
|
572
591
|
if (e) {
|
|
573
592
|
var r = e.indexOf(t);
|
|
574
593
|
0 <= r && e.splice(r, 1);
|
|
575
594
|
}
|
|
576
595
|
}
|
|
577
|
-
var
|
|
596
|
+
var Pe = function() {
|
|
578
597
|
function e(t) {
|
|
579
598
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
580
599
|
}
|
|
@@ -586,7 +605,7 @@ var Ae = function() {
|
|
|
586
605
|
if (s)
|
|
587
606
|
if (this._parentage = null, Array.isArray(s))
|
|
588
607
|
try {
|
|
589
|
-
for (var a =
|
|
608
|
+
for (var a = Xe(s), l = a.next(); !l.done; l = a.next()) {
|
|
590
609
|
var u = l.value;
|
|
591
610
|
u.remove(this);
|
|
592
611
|
}
|
|
@@ -603,22 +622,22 @@ var Ae = function() {
|
|
|
603
622
|
else
|
|
604
623
|
s.remove(this);
|
|
605
624
|
var h = this.initialTeardown;
|
|
606
|
-
if (
|
|
625
|
+
if (j(h))
|
|
607
626
|
try {
|
|
608
627
|
h();
|
|
609
628
|
} catch (g) {
|
|
610
|
-
o = g instanceof
|
|
629
|
+
o = g instanceof Le ? g.errors : [g];
|
|
611
630
|
}
|
|
612
631
|
var f = this._finalizers;
|
|
613
632
|
if (f) {
|
|
614
633
|
this._finalizers = null;
|
|
615
634
|
try {
|
|
616
|
-
for (var c =
|
|
635
|
+
for (var c = Xe(f), d = c.next(); !d.done; d = c.next()) {
|
|
617
636
|
var b = d.value;
|
|
618
637
|
try {
|
|
619
|
-
|
|
638
|
+
pt(b);
|
|
620
639
|
} catch (g) {
|
|
621
|
-
o = o ?? [], g instanceof
|
|
640
|
+
o = o ?? [], g instanceof Le ? o = te(te([], We(o)), We(g.errors)) : o.push(g);
|
|
622
641
|
}
|
|
623
642
|
}
|
|
624
643
|
} catch (g) {
|
|
@@ -633,13 +652,13 @@ var Ae = function() {
|
|
|
633
652
|
}
|
|
634
653
|
}
|
|
635
654
|
if (o)
|
|
636
|
-
throw new
|
|
655
|
+
throw new Le(o);
|
|
637
656
|
}
|
|
638
657
|
}, e.prototype.add = function(t) {
|
|
639
658
|
var r;
|
|
640
659
|
if (t && t !== this)
|
|
641
660
|
if (this.closed)
|
|
642
|
-
|
|
661
|
+
pt(t);
|
|
643
662
|
else {
|
|
644
663
|
if (t instanceof e) {
|
|
645
664
|
if (t.closed || t._hasParent(this))
|
|
@@ -656,52 +675,56 @@ var Ae = function() {
|
|
|
656
675
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
657
676
|
}, e.prototype._removeParent = function(t) {
|
|
658
677
|
var r = this._parentage;
|
|
659
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
678
|
+
r === t ? this._parentage = null : Array.isArray(r) && ze(r, t);
|
|
660
679
|
}, e.prototype.remove = function(t) {
|
|
661
680
|
var r = this._finalizers;
|
|
662
|
-
r &&
|
|
681
|
+
r && ze(r, t), t instanceof e && t._removeParent(this);
|
|
663
682
|
}, e.EMPTY = function() {
|
|
664
683
|
var t = new e();
|
|
665
684
|
return t.closed = !0, t;
|
|
666
685
|
}(), e;
|
|
667
|
-
}(),
|
|
668
|
-
function
|
|
669
|
-
return e instanceof
|
|
670
|
-
}
|
|
671
|
-
function
|
|
672
|
-
|
|
673
|
-
}
|
|
674
|
-
var
|
|
675
|
-
|
|
676
|
-
|
|
686
|
+
}(), Zt = Pe.EMPTY;
|
|
687
|
+
function Qt(e) {
|
|
688
|
+
return e instanceof Pe || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
|
|
689
|
+
}
|
|
690
|
+
function pt(e) {
|
|
691
|
+
j(e) ? e() : e.unsubscribe();
|
|
692
|
+
}
|
|
693
|
+
var Jt = {
|
|
694
|
+
onUnhandledError: null,
|
|
695
|
+
onStoppedNotification: null,
|
|
696
|
+
Promise: void 0,
|
|
697
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
698
|
+
useDeprecatedNextContext: !1
|
|
699
|
+
}, tn = {
|
|
677
700
|
setTimeout: function(e, t) {
|
|
678
701
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
679
702
|
r[n - 2] = arguments[n];
|
|
680
|
-
return setTimeout.apply(void 0,
|
|
703
|
+
return setTimeout.apply(void 0, te([e, t], We(r)));
|
|
681
704
|
},
|
|
682
705
|
clearTimeout: function(e) {
|
|
683
706
|
return clearTimeout(e);
|
|
684
707
|
},
|
|
685
708
|
delegate: void 0
|
|
686
709
|
};
|
|
687
|
-
function
|
|
688
|
-
|
|
710
|
+
function rn(e) {
|
|
711
|
+
tn.setTimeout(function() {
|
|
689
712
|
throw e;
|
|
690
713
|
});
|
|
691
714
|
}
|
|
692
|
-
function
|
|
715
|
+
function dt() {
|
|
693
716
|
}
|
|
694
717
|
function _e(e) {
|
|
695
718
|
e();
|
|
696
719
|
}
|
|
697
|
-
var
|
|
698
|
-
|
|
720
|
+
var qt = function(e) {
|
|
721
|
+
k(t, e);
|
|
699
722
|
function t(r) {
|
|
700
723
|
var n = e.call(this) || this;
|
|
701
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
724
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = an, n;
|
|
702
725
|
}
|
|
703
726
|
return t.create = function(r, n, i) {
|
|
704
|
-
return new
|
|
727
|
+
return new Ze(r, n, i);
|
|
705
728
|
}, t.prototype.next = function(r) {
|
|
706
729
|
this.isStopped || this._next(r);
|
|
707
730
|
}, t.prototype.error = function(r) {
|
|
@@ -725,7 +748,11 @@ var Yt = function(e) {
|
|
|
725
748
|
this.unsubscribe();
|
|
726
749
|
}
|
|
727
750
|
}, t;
|
|
728
|
-
}(
|
|
751
|
+
}(Pe), nn = Function.prototype.bind;
|
|
752
|
+
function Me(e, t) {
|
|
753
|
+
return nn.call(e, t);
|
|
754
|
+
}
|
|
755
|
+
var on = function() {
|
|
729
756
|
function e(t) {
|
|
730
757
|
this.partialObserver = t;
|
|
731
758
|
}
|
|
@@ -756,29 +783,41 @@ var Yt = function(e) {
|
|
|
756
783
|
ge(r);
|
|
757
784
|
}
|
|
758
785
|
}, e;
|
|
759
|
-
}(),
|
|
760
|
-
|
|
786
|
+
}(), Ze = function(e) {
|
|
787
|
+
k(t, e);
|
|
761
788
|
function t(r, n, i) {
|
|
762
789
|
var o = e.call(this) || this, s;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
790
|
+
if (j(r) || !r)
|
|
791
|
+
s = {
|
|
792
|
+
next: r ?? void 0,
|
|
793
|
+
error: n ?? void 0,
|
|
794
|
+
complete: i ?? void 0
|
|
795
|
+
};
|
|
796
|
+
else {
|
|
797
|
+
var a;
|
|
798
|
+
o && Jt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
799
|
+
return o.unsubscribe();
|
|
800
|
+
}, s = {
|
|
801
|
+
next: r.next && Me(r.next, a),
|
|
802
|
+
error: r.error && Me(r.error, a),
|
|
803
|
+
complete: r.complete && Me(r.complete, a)
|
|
804
|
+
}) : s = r;
|
|
805
|
+
}
|
|
806
|
+
return o.destination = new on(s), o;
|
|
768
807
|
}
|
|
769
808
|
return t;
|
|
770
|
-
}(
|
|
809
|
+
}(qt);
|
|
771
810
|
function ge(e) {
|
|
772
|
-
|
|
811
|
+
rn(e);
|
|
773
812
|
}
|
|
774
813
|
function sn(e) {
|
|
775
814
|
throw e;
|
|
776
815
|
}
|
|
777
816
|
var an = {
|
|
778
817
|
closed: !0,
|
|
779
|
-
next:
|
|
818
|
+
next: dt,
|
|
780
819
|
error: sn,
|
|
781
|
-
complete:
|
|
820
|
+
complete: dt
|
|
782
821
|
}, un = function() {
|
|
783
822
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
784
823
|
}();
|
|
@@ -792,7 +831,7 @@ function hn(e) {
|
|
|
792
831
|
}, r);
|
|
793
832
|
};
|
|
794
833
|
}
|
|
795
|
-
var
|
|
834
|
+
var bt = function() {
|
|
796
835
|
function e(t) {
|
|
797
836
|
t && (this._subscribe = t);
|
|
798
837
|
}
|
|
@@ -800,7 +839,7 @@ var vt = function() {
|
|
|
800
839
|
var r = new e();
|
|
801
840
|
return r.source = this, r.operator = t, r;
|
|
802
841
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
803
|
-
var i = this, o = fn(t) ? t : new
|
|
842
|
+
var i = this, o = fn(t) ? t : new Ze(t, r, n);
|
|
804
843
|
return _e(function() {
|
|
805
844
|
var s = i, a = s.operator, l = s.source;
|
|
806
845
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -813,8 +852,8 @@ var vt = function() {
|
|
|
813
852
|
}
|
|
814
853
|
}, e.prototype.forEach = function(t, r) {
|
|
815
854
|
var n = this;
|
|
816
|
-
return r =
|
|
817
|
-
var s = new
|
|
855
|
+
return r = gt(r), new r(function(i, o) {
|
|
856
|
+
var s = new Ze({
|
|
818
857
|
next: function(a) {
|
|
819
858
|
try {
|
|
820
859
|
t(a);
|
|
@@ -838,7 +877,7 @@ var vt = function() {
|
|
|
838
877
|
return hn(t)(this);
|
|
839
878
|
}, e.prototype.toPromise = function(t) {
|
|
840
879
|
var r = this;
|
|
841
|
-
return t =
|
|
880
|
+
return t = gt(t), new t(function(n, i) {
|
|
842
881
|
var o;
|
|
843
882
|
r.subscribe(function(s) {
|
|
844
883
|
return o = s;
|
|
@@ -852,32 +891,32 @@ var vt = function() {
|
|
|
852
891
|
return new e(t);
|
|
853
892
|
}, e;
|
|
854
893
|
}();
|
|
855
|
-
function
|
|
894
|
+
function gt(e) {
|
|
856
895
|
var t;
|
|
857
|
-
return (t = e ??
|
|
896
|
+
return (t = e ?? Jt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
858
897
|
}
|
|
859
898
|
function cn(e) {
|
|
860
|
-
return e &&
|
|
899
|
+
return e && j(e.next) && j(e.error) && j(e.complete);
|
|
861
900
|
}
|
|
862
901
|
function fn(e) {
|
|
863
|
-
return e && e instanceof
|
|
902
|
+
return e && e instanceof qt || cn(e) && Qt(e);
|
|
864
903
|
}
|
|
865
|
-
var
|
|
904
|
+
var mn = zt(function(e) {
|
|
866
905
|
return function() {
|
|
867
906
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
868
907
|
};
|
|
869
|
-
}),
|
|
870
|
-
|
|
908
|
+
}), Yt = function(e) {
|
|
909
|
+
k(t, e);
|
|
871
910
|
function t() {
|
|
872
911
|
var r = e.call(this) || this;
|
|
873
912
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
874
913
|
}
|
|
875
914
|
return t.prototype.lift = function(r) {
|
|
876
|
-
var n = new
|
|
915
|
+
var n = new vt(this, this);
|
|
877
916
|
return n.operator = r, n;
|
|
878
917
|
}, t.prototype._throwIfClosed = function() {
|
|
879
918
|
if (this.closed)
|
|
880
|
-
throw new
|
|
919
|
+
throw new mn();
|
|
881
920
|
}, t.prototype.next = function(r) {
|
|
882
921
|
var n = this;
|
|
883
922
|
_e(function() {
|
|
@@ -885,7 +924,7 @@ var pn = Qt(function(e) {
|
|
|
885
924
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
886
925
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
887
926
|
try {
|
|
888
|
-
for (var s =
|
|
927
|
+
for (var s = Xe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
889
928
|
var l = a.value;
|
|
890
929
|
l.next(r);
|
|
891
930
|
}
|
|
@@ -934,20 +973,20 @@ var pn = Qt(function(e) {
|
|
|
934
973
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
935
974
|
}, t.prototype._innerSubscribe = function(r) {
|
|
936
975
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
937
|
-
return o || s ?
|
|
938
|
-
n.currentObservers = null,
|
|
976
|
+
return o || s ? Zt : (this.currentObservers = null, a.push(r), new Pe(function() {
|
|
977
|
+
n.currentObservers = null, ze(a, r);
|
|
939
978
|
}));
|
|
940
979
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
941
980
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
942
981
|
i ? r.error(o) : s && r.complete();
|
|
943
982
|
}, t.prototype.asObservable = function() {
|
|
944
|
-
var r = new
|
|
983
|
+
var r = new bt();
|
|
945
984
|
return r.source = this, r;
|
|
946
985
|
}, t.create = function(r, n) {
|
|
947
|
-
return new
|
|
986
|
+
return new vt(r, n);
|
|
948
987
|
}, t;
|
|
949
|
-
}(
|
|
950
|
-
|
|
988
|
+
}(bt), vt = function(e) {
|
|
989
|
+
k(t, e);
|
|
951
990
|
function t(r, n) {
|
|
952
991
|
var i = e.call(this) || this;
|
|
953
992
|
return i.destination = r, i.source = n, i;
|
|
@@ -963,17 +1002,17 @@ var pn = Qt(function(e) {
|
|
|
963
1002
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
964
1003
|
}, t.prototype._subscribe = function(r) {
|
|
965
1004
|
var n, i;
|
|
966
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1005
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zt;
|
|
967
1006
|
}, t;
|
|
968
|
-
}(
|
|
1007
|
+
}(Yt), Kt = {
|
|
969
1008
|
now: function() {
|
|
970
|
-
return (
|
|
1009
|
+
return (Kt.delegate || Date).now();
|
|
971
1010
|
},
|
|
972
1011
|
delegate: void 0
|
|
973
|
-
},
|
|
974
|
-
|
|
1012
|
+
}, pn = function(e) {
|
|
1013
|
+
k(t, e);
|
|
975
1014
|
function t(r, n, i) {
|
|
976
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1015
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
|
977
1016
|
var o = e.call(this) || this;
|
|
978
1017
|
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;
|
|
979
1018
|
}
|
|
@@ -993,24 +1032,24 @@ var pn = Qt(function(e) {
|
|
|
993
1032
|
u && o.splice(0, u + 1);
|
|
994
1033
|
}
|
|
995
1034
|
}, t;
|
|
996
|
-
}(
|
|
997
|
-
const
|
|
998
|
-
if (
|
|
999
|
-
const r = new
|
|
1000
|
-
|
|
1035
|
+
}(Yt);
|
|
1036
|
+
const yt = [], _t = {}, dn = (e, t = 0) => {
|
|
1037
|
+
if (yt.indexOf(e) == -1) {
|
|
1038
|
+
const r = new pn(t);
|
|
1039
|
+
_t[e] = r, yt.push(e);
|
|
1001
1040
|
}
|
|
1002
|
-
return
|
|
1041
|
+
return _t[e];
|
|
1003
1042
|
}, Y = [];
|
|
1004
1043
|
function bn(e, t) {
|
|
1005
1044
|
return {
|
|
1006
|
-
subscribe:
|
|
1045
|
+
subscribe: Ae(e, t).subscribe
|
|
1007
1046
|
};
|
|
1008
1047
|
}
|
|
1009
|
-
function
|
|
1048
|
+
function Ae(e, t = G) {
|
|
1010
1049
|
let r;
|
|
1011
1050
|
const n = /* @__PURE__ */ new Set();
|
|
1012
1051
|
function i(a) {
|
|
1013
|
-
if (
|
|
1052
|
+
if (jt(e, a) && (e = a, r)) {
|
|
1014
1053
|
const l = !Y.length;
|
|
1015
1054
|
for (const u of n)
|
|
1016
1055
|
u[1](), Y.push(u, e);
|
|
@@ -1032,7 +1071,7 @@ function Oe(e, t = G) {
|
|
|
1032
1071
|
}
|
|
1033
1072
|
return { set: i, update: o, subscribe: s };
|
|
1034
1073
|
}
|
|
1035
|
-
function
|
|
1074
|
+
function ae(e, t, r) {
|
|
1036
1075
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1037
1076
|
if (!i.every(Boolean))
|
|
1038
1077
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1046,12 +1085,12 @@ function se(e, t, r) {
|
|
|
1046
1085
|
return;
|
|
1047
1086
|
f();
|
|
1048
1087
|
const b = t(n ? u[0] : u, s, a);
|
|
1049
|
-
o ? s(b) : f =
|
|
1088
|
+
o ? s(b) : f = Be(b) ? b : G;
|
|
1050
1089
|
}, d = i.map(
|
|
1051
|
-
(b, g) =>
|
|
1090
|
+
(b, g) => kt(
|
|
1052
1091
|
b,
|
|
1053
|
-
(
|
|
1054
|
-
u[g] =
|
|
1092
|
+
(S) => {
|
|
1093
|
+
u[g] = S, h &= ~(1 << g), l && c();
|
|
1055
1094
|
},
|
|
1056
1095
|
() => {
|
|
1057
1096
|
h |= 1 << g;
|
|
@@ -1059,7 +1098,7 @@ function se(e, t, r) {
|
|
|
1059
1098
|
)
|
|
1060
1099
|
);
|
|
1061
1100
|
return l = !0, c(), function() {
|
|
1062
|
-
|
|
1101
|
+
se(d), f(), l = !1;
|
|
1063
1102
|
};
|
|
1064
1103
|
});
|
|
1065
1104
|
}
|
|
@@ -1083,29 +1122,29 @@ function wn(e) {
|
|
|
1083
1122
|
function Tn(e) {
|
|
1084
1123
|
return Array.isArray(e) ? [] : {};
|
|
1085
1124
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1125
|
+
function me(e, t) {
|
|
1126
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Tn(e), e, t) : e;
|
|
1088
1127
|
}
|
|
1089
1128
|
function Sn(e, t, r) {
|
|
1090
1129
|
return e.concat(t).map(function(n) {
|
|
1091
|
-
return
|
|
1130
|
+
return me(n, r);
|
|
1092
1131
|
});
|
|
1093
1132
|
}
|
|
1094
1133
|
function Hn(e, t) {
|
|
1095
1134
|
if (!t.customMerge)
|
|
1096
|
-
return
|
|
1135
|
+
return re;
|
|
1097
1136
|
var r = t.customMerge(e);
|
|
1098
|
-
return typeof r == "function" ? r :
|
|
1137
|
+
return typeof r == "function" ? r : re;
|
|
1099
1138
|
}
|
|
1100
1139
|
function Bn(e) {
|
|
1101
1140
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1102
1141
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1103
1142
|
}) : [];
|
|
1104
1143
|
}
|
|
1105
|
-
function
|
|
1144
|
+
function Et(e) {
|
|
1106
1145
|
return Object.keys(e).concat(Bn(e));
|
|
1107
1146
|
}
|
|
1108
|
-
function
|
|
1147
|
+
function er(e, t) {
|
|
1109
1148
|
try {
|
|
1110
1149
|
return t in e;
|
|
1111
1150
|
} catch {
|
|
@@ -1113,179 +1152,129 @@ function tr(e, t) {
|
|
|
1113
1152
|
}
|
|
1114
1153
|
}
|
|
1115
1154
|
function Pn(e, t) {
|
|
1116
|
-
return
|
|
1155
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1117
1156
|
}
|
|
1118
1157
|
function An(e, t, r) {
|
|
1119
1158
|
var n = {};
|
|
1120
|
-
return r.isMergeableObject(e) &&
|
|
1121
|
-
n[i] =
|
|
1122
|
-
}),
|
|
1123
|
-
Pn(e, i) || (
|
|
1159
|
+
return r.isMergeableObject(e) && Et(e).forEach(function(i) {
|
|
1160
|
+
n[i] = me(e[i], r);
|
|
1161
|
+
}), Et(t).forEach(function(i) {
|
|
1162
|
+
Pn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
1124
1163
|
}), n;
|
|
1125
1164
|
}
|
|
1126
|
-
function
|
|
1127
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || vn, r.cloneUnlessOtherwiseSpecified =
|
|
1165
|
+
function re(e, t, r) {
|
|
1166
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || vn, r.cloneUnlessOtherwiseSpecified = me;
|
|
1128
1167
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1129
|
-
return o ? n ? r.arrayMerge(e, t, r) : An(e, t, r) :
|
|
1168
|
+
return o ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : me(t, r);
|
|
1130
1169
|
}
|
|
1131
|
-
|
|
1170
|
+
re.all = function(t, r) {
|
|
1132
1171
|
if (!Array.isArray(t))
|
|
1133
1172
|
throw new Error("first argument should be an array");
|
|
1134
1173
|
return t.reduce(function(n, i) {
|
|
1135
|
-
return
|
|
1174
|
+
return re(n, i, r);
|
|
1136
1175
|
}, {});
|
|
1137
1176
|
};
|
|
1138
|
-
var On =
|
|
1177
|
+
var On = re, Nn = On;
|
|
1139
1178
|
const Cn = /* @__PURE__ */ gn(Nn);
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
r.__proto__ = n;
|
|
1143
|
-
} || function(r, n) {
|
|
1144
|
-
for (var i in n)
|
|
1145
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1146
|
-
}, Ye(e, t);
|
|
1147
|
-
};
|
|
1148
|
-
function Ne(e, t) {
|
|
1149
|
-
if (typeof t != "function" && t !== null)
|
|
1150
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1151
|
-
Ye(e, t);
|
|
1152
|
-
function r() {
|
|
1153
|
-
this.constructor = e;
|
|
1154
|
-
}
|
|
1155
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1156
|
-
}
|
|
1157
|
-
var U = function() {
|
|
1158
|
-
return U = Object.assign || function(t) {
|
|
1159
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1160
|
-
r = arguments[n];
|
|
1161
|
-
for (var o in r)
|
|
1162
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1163
|
-
}
|
|
1164
|
-
return t;
|
|
1165
|
-
}, U.apply(this, arguments);
|
|
1166
|
-
};
|
|
1167
|
-
function In(e, t) {
|
|
1168
|
-
var r = {};
|
|
1169
|
-
for (var n in e)
|
|
1170
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1171
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1172
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1173
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1174
|
-
return r;
|
|
1175
|
-
}
|
|
1176
|
-
function Ge(e, t, r) {
|
|
1177
|
-
if (r || arguments.length === 2)
|
|
1178
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1179
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1180
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1181
|
-
}
|
|
1182
|
-
function $e(e, t) {
|
|
1183
|
-
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Rn;
|
|
1179
|
+
function Re(e, t) {
|
|
1180
|
+
var r = t && t.cache ? t.cache : $n, n = t && t.serializer ? t.serializer : Gn, i = t && t.strategy ? t.strategy : Ln;
|
|
1184
1181
|
return i(e, {
|
|
1185
1182
|
cache: r,
|
|
1186
1183
|
serializer: n
|
|
1187
1184
|
});
|
|
1188
1185
|
}
|
|
1189
|
-
function
|
|
1186
|
+
function In(e) {
|
|
1190
1187
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1191
1188
|
}
|
|
1192
|
-
function
|
|
1193
|
-
var i =
|
|
1189
|
+
function tr(e, t, r, n) {
|
|
1190
|
+
var i = In(n) ? n : r(n), o = t.get(i);
|
|
1194
1191
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1195
1192
|
}
|
|
1196
1193
|
function rr(e, t, r) {
|
|
1197
1194
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1198
1195
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1199
1196
|
}
|
|
1200
|
-
function
|
|
1197
|
+
function it(e, t, r, n, i) {
|
|
1201
1198
|
return r.bind(t, e, n, i);
|
|
1202
1199
|
}
|
|
1203
|
-
function
|
|
1204
|
-
var r = e.length === 1 ?
|
|
1205
|
-
return
|
|
1200
|
+
function Ln(e, t) {
|
|
1201
|
+
var r = e.length === 1 ? tr : rr;
|
|
1202
|
+
return it(e, this, r, t.cache.create(), t.serializer);
|
|
1203
|
+
}
|
|
1204
|
+
function Mn(e, t) {
|
|
1205
|
+
return it(e, this, rr, t.cache.create(), t.serializer);
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return
|
|
1207
|
+
function Rn(e, t) {
|
|
1208
|
+
return it(e, this, tr, t.cache.create(), t.serializer);
|
|
1209
1209
|
}
|
|
1210
|
-
var
|
|
1210
|
+
var Gn = function() {
|
|
1211
1211
|
return JSON.stringify(arguments);
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
}()
|
|
1224
|
-
), Dn = {
|
|
1212
|
+
};
|
|
1213
|
+
function ot() {
|
|
1214
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1215
|
+
}
|
|
1216
|
+
ot.prototype.get = function(e) {
|
|
1217
|
+
return this.cache[e];
|
|
1218
|
+
};
|
|
1219
|
+
ot.prototype.set = function(e, t) {
|
|
1220
|
+
this.cache[e] = t;
|
|
1221
|
+
};
|
|
1222
|
+
var $n = {
|
|
1225
1223
|
create: function() {
|
|
1226
|
-
return new
|
|
1224
|
+
return new ot();
|
|
1227
1225
|
}
|
|
1228
|
-
},
|
|
1229
|
-
variadic:
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1233
|
-
r = arguments[n];
|
|
1234
|
-
for (var o in r)
|
|
1235
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1236
|
-
}
|
|
1237
|
-
return t;
|
|
1238
|
-
}, Se.apply(this, arguments);
|
|
1239
|
-
};
|
|
1240
|
-
var y;
|
|
1226
|
+
}, Ge = {
|
|
1227
|
+
variadic: Mn,
|
|
1228
|
+
monadic: Rn
|
|
1229
|
+
}, y;
|
|
1241
1230
|
(function(e) {
|
|
1242
1231
|
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";
|
|
1243
1232
|
})(y || (y = {}));
|
|
1244
|
-
var
|
|
1233
|
+
var H;
|
|
1245
1234
|
(function(e) {
|
|
1246
1235
|
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";
|
|
1247
|
-
})(
|
|
1248
|
-
var
|
|
1236
|
+
})(H || (H = {}));
|
|
1237
|
+
var ne;
|
|
1249
1238
|
(function(e) {
|
|
1250
1239
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1251
|
-
})(
|
|
1252
|
-
function
|
|
1253
|
-
return e.type ===
|
|
1240
|
+
})(ne || (ne = {}));
|
|
1241
|
+
function xt(e) {
|
|
1242
|
+
return e.type === H.literal;
|
|
1243
|
+
}
|
|
1244
|
+
function Un(e) {
|
|
1245
|
+
return e.type === H.argument;
|
|
1254
1246
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return e.type ===
|
|
1247
|
+
function nr(e) {
|
|
1248
|
+
return e.type === H.number;
|
|
1257
1249
|
}
|
|
1258
1250
|
function ir(e) {
|
|
1259
|
-
return e.type ===
|
|
1251
|
+
return e.type === H.date;
|
|
1260
1252
|
}
|
|
1261
1253
|
function or(e) {
|
|
1262
|
-
return e.type ===
|
|
1254
|
+
return e.type === H.time;
|
|
1263
1255
|
}
|
|
1264
1256
|
function sr(e) {
|
|
1265
|
-
return e.type ===
|
|
1257
|
+
return e.type === H.select;
|
|
1266
1258
|
}
|
|
1267
1259
|
function ar(e) {
|
|
1268
|
-
return e.type ===
|
|
1260
|
+
return e.type === H.plural;
|
|
1269
1261
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return e.type ===
|
|
1262
|
+
function Dn(e) {
|
|
1263
|
+
return e.type === H.pound;
|
|
1272
1264
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return e.type ===
|
|
1265
|
+
function ur(e) {
|
|
1266
|
+
return e.type === H.tag;
|
|
1275
1267
|
}
|
|
1276
1268
|
function lr(e) {
|
|
1277
|
-
return e.type ===
|
|
1269
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1278
1270
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1271
|
+
function Qe(e) {
|
|
1272
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1281
1273
|
}
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
}
|
|
1285
|
-
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kn = /(?:[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;
|
|
1286
|
-
function Vn(e) {
|
|
1274
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[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;
|
|
1275
|
+
function jn(e) {
|
|
1287
1276
|
var t = {};
|
|
1288
|
-
return e.replace(
|
|
1277
|
+
return e.replace(Fn, function(r) {
|
|
1289
1278
|
var n = r.length;
|
|
1290
1279
|
switch (r[0]) {
|
|
1291
1280
|
case "G":
|
|
@@ -1374,21 +1363,11 @@ function Vn(e) {
|
|
|
1374
1363
|
return "";
|
|
1375
1364
|
}), t;
|
|
1376
1365
|
}
|
|
1377
|
-
var
|
|
1378
|
-
|
|
1379
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1380
|
-
r = arguments[n];
|
|
1381
|
-
for (var o in r)
|
|
1382
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1383
|
-
}
|
|
1384
|
-
return t;
|
|
1385
|
-
}, B.apply(this, arguments);
|
|
1386
|
-
};
|
|
1387
|
-
var Xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1388
|
-
function Wn(e) {
|
|
1366
|
+
var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1367
|
+
function Vn(e) {
|
|
1389
1368
|
if (e.length === 0)
|
|
1390
1369
|
throw new Error("Number skeleton cannot be empty");
|
|
1391
|
-
for (var t = e.split(
|
|
1370
|
+
for (var t = e.split(kn).filter(function(c) {
|
|
1392
1371
|
return c.length > 0;
|
|
1393
1372
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1394
1373
|
var o = i[n], s = o.split("/");
|
|
@@ -1403,13 +1382,13 @@ function Wn(e) {
|
|
|
1403
1382
|
}
|
|
1404
1383
|
return r;
|
|
1405
1384
|
}
|
|
1406
|
-
function
|
|
1385
|
+
function Xn(e) {
|
|
1407
1386
|
return e.replace(/^(.*?)-/, "");
|
|
1408
1387
|
}
|
|
1409
|
-
var
|
|
1410
|
-
function
|
|
1388
|
+
var wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
|
1389
|
+
function Tt(e) {
|
|
1411
1390
|
var t = {};
|
|
1412
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1391
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
|
1413
1392
|
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)), "";
|
|
1414
1393
|
}), t;
|
|
1415
1394
|
}
|
|
@@ -1453,7 +1432,7 @@ function mr(e) {
|
|
|
1453
1432
|
};
|
|
1454
1433
|
}
|
|
1455
1434
|
}
|
|
1456
|
-
function
|
|
1435
|
+
function zn(e) {
|
|
1457
1436
|
var t;
|
|
1458
1437
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1459
1438
|
notation: "engineering"
|
|
@@ -1461,17 +1440,17 @@ function Qn(e) {
|
|
|
1461
1440
|
notation: "scientific"
|
|
1462
1441
|
}, e = e.slice(1)), t) {
|
|
1463
1442
|
var r = e.slice(0, 2);
|
|
1464
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1443
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
|
1465
1444
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1466
1445
|
t.minimumIntegerDigits = e.length;
|
|
1467
1446
|
}
|
|
1468
1447
|
return t;
|
|
1469
1448
|
}
|
|
1470
|
-
function
|
|
1449
|
+
function St(e) {
|
|
1471
1450
|
var t = {}, r = mr(e);
|
|
1472
1451
|
return r || t;
|
|
1473
1452
|
}
|
|
1474
|
-
function
|
|
1453
|
+
function Zn(e) {
|
|
1475
1454
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1476
1455
|
var i = n[r];
|
|
1477
1456
|
switch (i.stem) {
|
|
@@ -1495,7 +1474,7 @@ function Jn(e) {
|
|
|
1495
1474
|
continue;
|
|
1496
1475
|
case "measure-unit":
|
|
1497
1476
|
case "unit":
|
|
1498
|
-
t.style = "unit", t.unit =
|
|
1477
|
+
t.style = "unit", t.unit = Xn(i.options[0]);
|
|
1499
1478
|
continue;
|
|
1500
1479
|
case "compact-short":
|
|
1501
1480
|
case "K":
|
|
@@ -1506,13 +1485,13 @@ function Jn(e) {
|
|
|
1506
1485
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1507
1486
|
continue;
|
|
1508
1487
|
case "scientific":
|
|
1509
|
-
t =
|
|
1510
|
-
return
|
|
1488
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1489
|
+
return T(T({}, l), St(u));
|
|
1511
1490
|
}, {}));
|
|
1512
1491
|
continue;
|
|
1513
1492
|
case "engineering":
|
|
1514
|
-
t =
|
|
1515
|
-
return
|
|
1493
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1494
|
+
return T(T({}, l), St(u));
|
|
1516
1495
|
}, {}));
|
|
1517
1496
|
continue;
|
|
1518
1497
|
case "notation-simple":
|
|
@@ -1557,7 +1536,7 @@ function Jn(e) {
|
|
|
1557
1536
|
case "integer-width":
|
|
1558
1537
|
if (i.options.length > 1)
|
|
1559
1538
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1560
|
-
i.options[0].replace(
|
|
1539
|
+
i.options[0].replace(Wn, function(l, u, h, f, c, d) {
|
|
1561
1540
|
if (u)
|
|
1562
1541
|
t.minimumIntegerDigits = h.length;
|
|
1563
1542
|
else {
|
|
@@ -1570,28 +1549,28 @@ function Jn(e) {
|
|
|
1570
1549
|
});
|
|
1571
1550
|
continue;
|
|
1572
1551
|
}
|
|
1573
|
-
if (
|
|
1552
|
+
if (fr.test(i.stem)) {
|
|
1574
1553
|
t.minimumIntegerDigits = i.stem.length;
|
|
1575
1554
|
continue;
|
|
1576
1555
|
}
|
|
1577
|
-
if (
|
|
1556
|
+
if (wt.test(i.stem)) {
|
|
1578
1557
|
if (i.options.length > 1)
|
|
1579
1558
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1580
|
-
i.stem.replace(
|
|
1559
|
+
i.stem.replace(wt, function(l, u, h, f, c, d) {
|
|
1581
1560
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1582
1561
|
});
|
|
1583
1562
|
var o = i.options[0];
|
|
1584
|
-
o === "w" ? t =
|
|
1563
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), Tt(o)));
|
|
1585
1564
|
continue;
|
|
1586
1565
|
}
|
|
1587
|
-
if (
|
|
1588
|
-
t =
|
|
1566
|
+
if (cr.test(i.stem)) {
|
|
1567
|
+
t = T(T({}, t), Tt(i.stem));
|
|
1589
1568
|
continue;
|
|
1590
1569
|
}
|
|
1591
1570
|
var s = mr(i.stem);
|
|
1592
|
-
s && (t =
|
|
1593
|
-
var a =
|
|
1594
|
-
a && (t =
|
|
1571
|
+
s && (t = T(T({}, t), s));
|
|
1572
|
+
var a = zn(i.stem);
|
|
1573
|
+
a && (t = T(T({}, t), a));
|
|
1595
1574
|
}
|
|
1596
1575
|
return t;
|
|
1597
1576
|
}
|
|
@@ -3010,13 +2989,13 @@ var ve = {
|
|
|
3010
2989
|
"h"
|
|
3011
2990
|
]
|
|
3012
2991
|
};
|
|
3013
|
-
function
|
|
2992
|
+
function Qn(e, t) {
|
|
3014
2993
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3015
2994
|
var i = e.charAt(n);
|
|
3016
2995
|
if (i === "j") {
|
|
3017
2996
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3018
2997
|
o++, n++;
|
|
3019
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2998
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Jn(t);
|
|
3020
2999
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3021
3000
|
r += l;
|
|
3022
3001
|
for (; s-- > 0; )
|
|
@@ -3026,7 +3005,7 @@ function qn(e, t) {
|
|
|
3026
3005
|
}
|
|
3027
3006
|
return r;
|
|
3028
3007
|
}
|
|
3029
|
-
function
|
|
3008
|
+
function Jn(e) {
|
|
3030
3009
|
var t = e.hourCycle;
|
|
3031
3010
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3032
3011
|
e.hourCycles && // @ts-ignore
|
|
@@ -3048,20 +3027,20 @@ function Yn(e) {
|
|
|
3048
3027
|
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
3049
3028
|
return i[0];
|
|
3050
3029
|
}
|
|
3051
|
-
var
|
|
3030
|
+
var $e, qn = new RegExp("^".concat(hr.source, "*")), Yn = new RegExp("".concat(hr.source, "*$"));
|
|
3052
3031
|
function E(e, t) {
|
|
3053
3032
|
return { start: e, end: t };
|
|
3054
3033
|
}
|
|
3055
|
-
var
|
|
3034
|
+
var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, oi = !!Number.isSafeInteger, si = oi ? Number.isSafeInteger : function(e) {
|
|
3056
3035
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3057
|
-
},
|
|
3036
|
+
}, Je = !0;
|
|
3058
3037
|
try {
|
|
3059
|
-
var
|
|
3060
|
-
|
|
3038
|
+
var ai = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3039
|
+
Je = (($e = ai.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
|
3061
3040
|
} catch {
|
|
3062
|
-
|
|
3041
|
+
Je = !1;
|
|
3063
3042
|
}
|
|
3064
|
-
var
|
|
3043
|
+
var Ht = Kn ? (
|
|
3065
3044
|
// Native
|
|
3066
3045
|
function(t, r, n) {
|
|
3067
3046
|
return t.startsWith(r, n);
|
|
@@ -3071,7 +3050,7 @@ var Pt = ti ? (
|
|
|
3071
3050
|
function(t, r, n) {
|
|
3072
3051
|
return t.slice(n, n + r.length) === r;
|
|
3073
3052
|
}
|
|
3074
|
-
),
|
|
3053
|
+
), qe = ei ? String.fromCodePoint : (
|
|
3075
3054
|
// IE11
|
|
3076
3055
|
function() {
|
|
3077
3056
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3083,9 +3062,9 @@ var Pt = ti ? (
|
|
|
3083
3062
|
}
|
|
3084
3063
|
return n;
|
|
3085
3064
|
}
|
|
3086
|
-
),
|
|
3065
|
+
), Bt = (
|
|
3087
3066
|
// native
|
|
3088
|
-
|
|
3067
|
+
ti ? Object.fromEntries : (
|
|
3089
3068
|
// Ponyfill
|
|
3090
3069
|
function(t) {
|
|
3091
3070
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3095,7 +3074,7 @@ var Pt = ti ? (
|
|
|
3095
3074
|
return r;
|
|
3096
3075
|
}
|
|
3097
3076
|
)
|
|
3098
|
-
),
|
|
3077
|
+
), pr = ri ? (
|
|
3099
3078
|
// Native
|
|
3100
3079
|
function(t, r) {
|
|
3101
3080
|
return t.codePointAt(r);
|
|
@@ -3109,7 +3088,7 @@ var Pt = ti ? (
|
|
|
3109
3088
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3110
3089
|
}
|
|
3111
3090
|
}
|
|
3112
|
-
),
|
|
3091
|
+
), ui = ni ? (
|
|
3113
3092
|
// Native
|
|
3114
3093
|
function(t) {
|
|
3115
3094
|
return t.trimStart();
|
|
@@ -3117,9 +3096,9 @@ var Pt = ti ? (
|
|
|
3117
3096
|
) : (
|
|
3118
3097
|
// Ponyfill
|
|
3119
3098
|
function(t) {
|
|
3120
|
-
return t.replace(
|
|
3099
|
+
return t.replace(qn, "");
|
|
3121
3100
|
}
|
|
3122
|
-
),
|
|
3101
|
+
), li = ii ? (
|
|
3123
3102
|
// Native
|
|
3124
3103
|
function(t) {
|
|
3125
3104
|
return t.trimEnd();
|
|
@@ -3127,32 +3106,32 @@ var Pt = ti ? (
|
|
|
3127
3106
|
) : (
|
|
3128
3107
|
// Ponyfill
|
|
3129
3108
|
function(t) {
|
|
3130
|
-
return t.replace(
|
|
3109
|
+
return t.replace(Yn, "");
|
|
3131
3110
|
}
|
|
3132
3111
|
);
|
|
3133
|
-
function
|
|
3112
|
+
function dr(e, t) {
|
|
3134
3113
|
return new RegExp(e, t);
|
|
3135
3114
|
}
|
|
3136
|
-
var
|
|
3137
|
-
if (
|
|
3138
|
-
var
|
|
3139
|
-
|
|
3115
|
+
var Ye;
|
|
3116
|
+
if (Je) {
|
|
3117
|
+
var Pt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3118
|
+
Ye = function(t, r) {
|
|
3140
3119
|
var n;
|
|
3141
|
-
|
|
3142
|
-
var i =
|
|
3120
|
+
Pt.lastIndex = r;
|
|
3121
|
+
var i = Pt.exec(t);
|
|
3143
3122
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3144
3123
|
};
|
|
3145
3124
|
} else
|
|
3146
|
-
|
|
3125
|
+
Ye = function(t, r) {
|
|
3147
3126
|
for (var n = []; ; ) {
|
|
3148
|
-
var i =
|
|
3149
|
-
if (i === void 0 ||
|
|
3127
|
+
var i = pr(t, r);
|
|
3128
|
+
if (i === void 0 || br(i) || mi(i))
|
|
3150
3129
|
break;
|
|
3151
3130
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3152
3131
|
}
|
|
3153
|
-
return
|
|
3132
|
+
return qe.apply(void 0, n);
|
|
3154
3133
|
};
|
|
3155
|
-
var
|
|
3134
|
+
var hi = (
|
|
3156
3135
|
/** @class */
|
|
3157
3136
|
function() {
|
|
3158
3137
|
function e(t, r) {
|
|
@@ -3176,14 +3155,14 @@ var fi = (
|
|
|
3176
3155
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3177
3156
|
var a = this.clonePosition();
|
|
3178
3157
|
this.bump(), i.push({
|
|
3179
|
-
type:
|
|
3158
|
+
type: H.pound,
|
|
3180
3159
|
location: E(a, this.clonePosition())
|
|
3181
3160
|
});
|
|
3182
3161
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3183
3162
|
if (n)
|
|
3184
3163
|
break;
|
|
3185
3164
|
return this.error(y.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3186
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3165
|
+
} else if (o === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
3187
3166
|
var s = this.parseTag(t, r);
|
|
3188
3167
|
if (s.err)
|
|
3189
3168
|
return s;
|
|
@@ -3204,7 +3183,7 @@ var fi = (
|
|
|
3204
3183
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3205
3184
|
return {
|
|
3206
3185
|
val: {
|
|
3207
|
-
type:
|
|
3186
|
+
type: H.literal,
|
|
3208
3187
|
value: "<".concat(i, "/>"),
|
|
3209
3188
|
location: E(n, this.clonePosition())
|
|
3210
3189
|
},
|
|
@@ -3216,12 +3195,12 @@ var fi = (
|
|
|
3216
3195
|
return o;
|
|
3217
3196
|
var s = o.val, a = this.clonePosition();
|
|
3218
3197
|
if (this.bumpIf("</")) {
|
|
3219
|
-
if (this.isEOF() || !
|
|
3198
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
3220
3199
|
return this.error(y.INVALID_TAG, E(a, this.clonePosition()));
|
|
3221
3200
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3222
3201
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3223
3202
|
val: {
|
|
3224
|
-
type:
|
|
3203
|
+
type: H.tag,
|
|
3225
3204
|
value: i,
|
|
3226
3205
|
children: s,
|
|
3227
3206
|
location: E(n, this.clonePosition())
|
|
@@ -3234,7 +3213,7 @@ var fi = (
|
|
|
3234
3213
|
return this.error(y.INVALID_TAG, E(n, this.clonePosition()));
|
|
3235
3214
|
}, e.prototype.parseTagName = function() {
|
|
3236
3215
|
var t = this.offset();
|
|
3237
|
-
for (this.bump(); !this.isEOF() &&
|
|
3216
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
|
3238
3217
|
this.bump();
|
|
3239
3218
|
return this.message.slice(t, this.offset());
|
|
3240
3219
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3258,12 +3237,12 @@ var fi = (
|
|
|
3258
3237
|
}
|
|
3259
3238
|
var l = E(n, this.clonePosition());
|
|
3260
3239
|
return {
|
|
3261
|
-
val: { type:
|
|
3240
|
+
val: { type: H.literal, value: i, location: l },
|
|
3262
3241
|
err: null
|
|
3263
3242
|
};
|
|
3264
3243
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3265
3244
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3266
|
-
!
|
|
3245
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3267
3246
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3268
3247
|
if (this.isEOF() || this.char() !== 39)
|
|
3269
3248
|
return null;
|
|
@@ -3297,12 +3276,12 @@ var fi = (
|
|
|
3297
3276
|
r.push(n);
|
|
3298
3277
|
this.bump();
|
|
3299
3278
|
}
|
|
3300
|
-
return
|
|
3279
|
+
return qe.apply(void 0, r);
|
|
3301
3280
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3302
3281
|
if (this.isEOF())
|
|
3303
3282
|
return null;
|
|
3304
3283
|
var n = this.char();
|
|
3305
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3284
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
3306
3285
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3307
3286
|
var n = this.clonePosition();
|
|
3308
3287
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3318,7 +3297,7 @@ var fi = (
|
|
|
3318
3297
|
case 125:
|
|
3319
3298
|
return this.bump(), {
|
|
3320
3299
|
val: {
|
|
3321
|
-
type:
|
|
3300
|
+
type: H.argument,
|
|
3322
3301
|
// value does not include the opening and closing braces.
|
|
3323
3302
|
value: i,
|
|
3324
3303
|
location: E(n, this.clonePosition())
|
|
@@ -3331,7 +3310,7 @@ var fi = (
|
|
|
3331
3310
|
return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3332
3311
|
}
|
|
3333
3312
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3334
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3313
|
+
var t = this.clonePosition(), r = this.offset(), n = Ye(this.message, r), i = r + n.length;
|
|
3335
3314
|
this.bumpTo(i);
|
|
3336
3315
|
var o = this.clonePosition(), s = E(t, o);
|
|
3337
3316
|
return { value: n, location: s };
|
|
@@ -3350,7 +3329,7 @@ var fi = (
|
|
|
3350
3329
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3351
3330
|
if (f.err)
|
|
3352
3331
|
return f;
|
|
3353
|
-
var c =
|
|
3332
|
+
var c = li(f.val);
|
|
3354
3333
|
if (c.length === 0)
|
|
3355
3334
|
return this.error(y.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3356
3335
|
var d = E(h, this.clonePosition());
|
|
@@ -3360,25 +3339,25 @@ var fi = (
|
|
|
3360
3339
|
if (b.err)
|
|
3361
3340
|
return b;
|
|
3362
3341
|
var g = E(i, this.clonePosition());
|
|
3363
|
-
if (u &&
|
|
3364
|
-
var
|
|
3342
|
+
if (u && Ht(u?.style, "::", 0)) {
|
|
3343
|
+
var S = ui(u.style.slice(2));
|
|
3365
3344
|
if (a === "number") {
|
|
3366
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3345
|
+
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3367
3346
|
return f.err ? f : {
|
|
3368
|
-
val: { type:
|
|
3347
|
+
val: { type: H.number, value: n, location: g, style: f.val },
|
|
3369
3348
|
err: null
|
|
3370
3349
|
};
|
|
3371
3350
|
} else {
|
|
3372
|
-
if (
|
|
3351
|
+
if (S.length === 0)
|
|
3373
3352
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3374
|
-
var A =
|
|
3375
|
-
this.locale && (A =
|
|
3353
|
+
var A = S;
|
|
3354
|
+
this.locale && (A = Qn(S, this.locale));
|
|
3376
3355
|
var c = {
|
|
3377
|
-
type:
|
|
3356
|
+
type: ne.dateTime,
|
|
3378
3357
|
pattern: A,
|
|
3379
3358
|
location: u.styleLocation,
|
|
3380
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3381
|
-
}, _ = a === "date" ?
|
|
3359
|
+
parsedOptions: this.shouldParseSkeletons ? jn(A) : {}
|
|
3360
|
+
}, _ = a === "date" ? H.date : H.time;
|
|
3382
3361
|
return {
|
|
3383
3362
|
val: { type: _, value: n, location: g, style: c },
|
|
3384
3363
|
err: null
|
|
@@ -3387,7 +3366,7 @@ var fi = (
|
|
|
3387
3366
|
}
|
|
3388
3367
|
return {
|
|
3389
3368
|
val: {
|
|
3390
|
-
type: a === "number" ?
|
|
3369
|
+
type: a === "number" ? H.number : a === "date" ? H.date : H.time,
|
|
3391
3370
|
value: n,
|
|
3392
3371
|
location: g,
|
|
3393
3372
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3398,21 +3377,21 @@ var fi = (
|
|
|
3398
3377
|
case "plural":
|
|
3399
3378
|
case "selectordinal":
|
|
3400
3379
|
case "select": {
|
|
3401
|
-
var
|
|
3380
|
+
var p = this.clonePosition();
|
|
3402
3381
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3403
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
|
3382
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(p, T({}, p)));
|
|
3404
3383
|
this.bumpSpace();
|
|
3405
|
-
var
|
|
3406
|
-
if (a !== "select" &&
|
|
3384
|
+
var B = this.parseIdentifierIfPossible(), w = 0;
|
|
3385
|
+
if (a !== "select" && B.value === "offset") {
|
|
3407
3386
|
if (!this.bumpIf(":"))
|
|
3408
3387
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3409
3388
|
this.bumpSpace();
|
|
3410
3389
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3411
3390
|
if (f.err)
|
|
3412
3391
|
return f;
|
|
3413
|
-
this.bumpSpace(),
|
|
3392
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), w = f.val;
|
|
3414
3393
|
}
|
|
3415
|
-
var I = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3394
|
+
var I = this.tryParsePluralOrSelectOptions(t, a, r, B);
|
|
3416
3395
|
if (I.err)
|
|
3417
3396
|
return I;
|
|
3418
3397
|
var b = this.tryParseArgumentClose(i);
|
|
@@ -3421,17 +3400,17 @@ var fi = (
|
|
|
3421
3400
|
var M = E(i, this.clonePosition());
|
|
3422
3401
|
return a === "select" ? {
|
|
3423
3402
|
val: {
|
|
3424
|
-
type:
|
|
3403
|
+
type: H.select,
|
|
3425
3404
|
value: n,
|
|
3426
|
-
options:
|
|
3405
|
+
options: Bt(I.val),
|
|
3427
3406
|
location: M
|
|
3428
3407
|
},
|
|
3429
3408
|
err: null
|
|
3430
3409
|
} : {
|
|
3431
3410
|
val: {
|
|
3432
|
-
type:
|
|
3411
|
+
type: H.plural,
|
|
3433
3412
|
value: n,
|
|
3434
|
-
options:
|
|
3413
|
+
options: Bt(I.val),
|
|
3435
3414
|
offset: w,
|
|
3436
3415
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3437
3416
|
location: M
|
|
@@ -3482,16 +3461,16 @@ var fi = (
|
|
|
3482
3461
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3483
3462
|
var n = [];
|
|
3484
3463
|
try {
|
|
3485
|
-
n =
|
|
3464
|
+
n = Vn(t);
|
|
3486
3465
|
} catch {
|
|
3487
3466
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3488
3467
|
}
|
|
3489
3468
|
return {
|
|
3490
3469
|
val: {
|
|
3491
|
-
type:
|
|
3470
|
+
type: ne.number,
|
|
3492
3471
|
tokens: n,
|
|
3493
3472
|
location: r,
|
|
3494
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3473
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(n) : {}
|
|
3495
3474
|
},
|
|
3496
3475
|
err: null
|
|
3497
3476
|
};
|
|
@@ -3539,7 +3518,7 @@ var fi = (
|
|
|
3539
3518
|
break;
|
|
3540
3519
|
}
|
|
3541
3520
|
var l = E(i, this.clonePosition());
|
|
3542
|
-
return o ? (s *= n,
|
|
3521
|
+
return o ? (s *= n, si(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3543
3522
|
}, e.prototype.offset = function() {
|
|
3544
3523
|
return this.position.offset;
|
|
3545
3524
|
}, e.prototype.isEOF = function() {
|
|
@@ -3554,7 +3533,7 @@ var fi = (
|
|
|
3554
3533
|
var t = this.position.offset;
|
|
3555
3534
|
if (t >= this.message.length)
|
|
3556
3535
|
throw Error("out of bound");
|
|
3557
|
-
var r =
|
|
3536
|
+
var r = pr(this.message, t);
|
|
3558
3537
|
if (r === void 0)
|
|
3559
3538
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3560
3539
|
return r;
|
|
@@ -3573,7 +3552,7 @@ var fi = (
|
|
|
3573
3552
|
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);
|
|
3574
3553
|
}
|
|
3575
3554
|
}, e.prototype.bumpIf = function(t) {
|
|
3576
|
-
if (
|
|
3555
|
+
if (Ht(this.message, t, this.offset())) {
|
|
3577
3556
|
for (var r = 0; r < t.length; r++)
|
|
3578
3557
|
this.bump();
|
|
3579
3558
|
return !0;
|
|
@@ -3595,7 +3574,7 @@ var fi = (
|
|
|
3595
3574
|
break;
|
|
3596
3575
|
}
|
|
3597
3576
|
}, e.prototype.bumpSpace = function() {
|
|
3598
|
-
for (; !this.isEOF() &&
|
|
3577
|
+
for (; !this.isEOF() && br(this.char()); )
|
|
3599
3578
|
this.bump();
|
|
3600
3579
|
}, e.prototype.peek = function() {
|
|
3601
3580
|
if (this.isEOF())
|
|
@@ -3605,47 +3584,47 @@ var fi = (
|
|
|
3605
3584
|
}, e;
|
|
3606
3585
|
}()
|
|
3607
3586
|
);
|
|
3608
|
-
function
|
|
3587
|
+
function Ke(e) {
|
|
3609
3588
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3610
3589
|
}
|
|
3611
|
-
function
|
|
3612
|
-
return
|
|
3590
|
+
function ci(e) {
|
|
3591
|
+
return Ke(e) || e === 47;
|
|
3613
3592
|
}
|
|
3614
|
-
function
|
|
3593
|
+
function fi(e) {
|
|
3615
3594
|
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;
|
|
3616
3595
|
}
|
|
3617
|
-
function
|
|
3596
|
+
function br(e) {
|
|
3618
3597
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3619
3598
|
}
|
|
3620
|
-
function
|
|
3599
|
+
function mi(e) {
|
|
3621
3600
|
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;
|
|
3622
3601
|
}
|
|
3623
|
-
function
|
|
3602
|
+
function et(e) {
|
|
3624
3603
|
e.forEach(function(t) {
|
|
3625
|
-
if (delete t.location,
|
|
3604
|
+
if (delete t.location, sr(t) || ar(t))
|
|
3626
3605
|
for (var r in t.options)
|
|
3627
|
-
delete t.options[r].location,
|
|
3606
|
+
delete t.options[r].location, et(t.options[r].value);
|
|
3628
3607
|
else
|
|
3629
|
-
|
|
3608
|
+
nr(t) && lr(t.style) || (ir(t) || or(t)) && Qe(t.style) ? delete t.style.location : ur(t) && et(t.children);
|
|
3630
3609
|
});
|
|
3631
3610
|
}
|
|
3632
|
-
function
|
|
3633
|
-
t === void 0 && (t = {}), t =
|
|
3634
|
-
var r = new
|
|
3611
|
+
function pi(e, t) {
|
|
3612
|
+
t === void 0 && (t = {}), t = T({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3613
|
+
var r = new hi(e, t).parse();
|
|
3635
3614
|
if (r.err) {
|
|
3636
3615
|
var n = SyntaxError(y[r.err.kind]);
|
|
3637
3616
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3638
3617
|
}
|
|
3639
|
-
return t?.captureLocation ||
|
|
3618
|
+
return t?.captureLocation || et(r.val), r.val;
|
|
3640
3619
|
}
|
|
3641
|
-
var
|
|
3620
|
+
var ie;
|
|
3642
3621
|
(function(e) {
|
|
3643
3622
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3644
|
-
})(
|
|
3645
|
-
var
|
|
3623
|
+
})(ie || (ie = {}));
|
|
3624
|
+
var Oe = (
|
|
3646
3625
|
/** @class */
|
|
3647
3626
|
function(e) {
|
|
3648
|
-
|
|
3627
|
+
k(t, e);
|
|
3649
3628
|
function t(r, n, i) {
|
|
3650
3629
|
var o = e.call(this, r) || this;
|
|
3651
3630
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3654,48 +3633,48 @@ var Ce = (
|
|
|
3654
3633
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3655
3634
|
}, t;
|
|
3656
3635
|
}(Error)
|
|
3657
|
-
),
|
|
3636
|
+
), At = (
|
|
3658
3637
|
/** @class */
|
|
3659
3638
|
function(e) {
|
|
3660
|
-
|
|
3639
|
+
k(t, e);
|
|
3661
3640
|
function t(r, n, i, o) {
|
|
3662
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3641
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
|
3663
3642
|
}
|
|
3664
3643
|
return t;
|
|
3665
|
-
}(
|
|
3666
|
-
),
|
|
3644
|
+
}(Oe)
|
|
3645
|
+
), di = (
|
|
3667
3646
|
/** @class */
|
|
3668
3647
|
function(e) {
|
|
3669
|
-
|
|
3648
|
+
k(t, e);
|
|
3670
3649
|
function t(r, n, i) {
|
|
3671
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3650
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3672
3651
|
}
|
|
3673
3652
|
return t;
|
|
3674
|
-
}(
|
|
3675
|
-
),
|
|
3653
|
+
}(Oe)
|
|
3654
|
+
), bi = (
|
|
3676
3655
|
/** @class */
|
|
3677
3656
|
function(e) {
|
|
3678
|
-
|
|
3657
|
+
k(t, e);
|
|
3679
3658
|
function t(r, n) {
|
|
3680
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3659
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3681
3660
|
}
|
|
3682
3661
|
return t;
|
|
3683
|
-
}(
|
|
3662
|
+
}(Oe)
|
|
3684
3663
|
), C;
|
|
3685
3664
|
(function(e) {
|
|
3686
3665
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3687
3666
|
})(C || (C = {}));
|
|
3688
|
-
function
|
|
3667
|
+
function gi(e) {
|
|
3689
3668
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3690
3669
|
var n = t[t.length - 1];
|
|
3691
3670
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3692
3671
|
}, []);
|
|
3693
3672
|
}
|
|
3694
|
-
function
|
|
3673
|
+
function vi(e) {
|
|
3695
3674
|
return typeof e == "function";
|
|
3696
3675
|
}
|
|
3697
3676
|
function Ee(e, t, r, n, i, o, s) {
|
|
3698
|
-
if (e.length === 1 &&
|
|
3677
|
+
if (e.length === 1 && xt(e[0]))
|
|
3699
3678
|
return [
|
|
3700
3679
|
{
|
|
3701
3680
|
type: C.literal,
|
|
@@ -3704,14 +3683,14 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3704
3683
|
];
|
|
3705
3684
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3706
3685
|
var h = u[l];
|
|
3707
|
-
if (
|
|
3686
|
+
if (xt(h)) {
|
|
3708
3687
|
a.push({
|
|
3709
3688
|
type: C.literal,
|
|
3710
3689
|
value: h.value
|
|
3711
3690
|
});
|
|
3712
3691
|
continue;
|
|
3713
3692
|
}
|
|
3714
|
-
if (
|
|
3693
|
+
if (Dn(h)) {
|
|
3715
3694
|
typeof o == "number" && a.push({
|
|
3716
3695
|
type: C.literal,
|
|
3717
3696
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3720,44 +3699,44 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3720
3699
|
}
|
|
3721
3700
|
var f = h.value;
|
|
3722
3701
|
if (!(i && f in i))
|
|
3723
|
-
throw new
|
|
3702
|
+
throw new bi(f, s);
|
|
3724
3703
|
var c = i[f];
|
|
3725
|
-
if (
|
|
3704
|
+
if (Un(h)) {
|
|
3726
3705
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3727
3706
|
type: typeof c == "string" ? C.literal : C.object,
|
|
3728
3707
|
value: c
|
|
3729
3708
|
});
|
|
3730
3709
|
continue;
|
|
3731
3710
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3711
|
+
if (ir(h)) {
|
|
3712
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Qe(h.style) ? h.style.parsedOptions : void 0;
|
|
3734
3713
|
a.push({
|
|
3735
3714
|
type: C.literal,
|
|
3736
3715
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3737
3716
|
});
|
|
3738
3717
|
continue;
|
|
3739
3718
|
}
|
|
3740
|
-
if (
|
|
3741
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3719
|
+
if (or(h)) {
|
|
3720
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Qe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3742
3721
|
a.push({
|
|
3743
3722
|
type: C.literal,
|
|
3744
3723
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3745
3724
|
});
|
|
3746
3725
|
continue;
|
|
3747
3726
|
}
|
|
3748
|
-
if (
|
|
3749
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3727
|
+
if (nr(h)) {
|
|
3728
|
+
var d = typeof h.style == "string" ? n.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3750
3729
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3751
3730
|
type: C.literal,
|
|
3752
3731
|
value: r.getNumberFormat(t, d).format(c)
|
|
3753
3732
|
});
|
|
3754
3733
|
continue;
|
|
3755
3734
|
}
|
|
3756
|
-
if (
|
|
3757
|
-
var b = h.children, g = h.value,
|
|
3758
|
-
if (!
|
|
3759
|
-
throw new
|
|
3760
|
-
var A = Ee(b, t, r, n, i, o), _ =
|
|
3735
|
+
if (ur(h)) {
|
|
3736
|
+
var b = h.children, g = h.value, S = i[g];
|
|
3737
|
+
if (!vi(S))
|
|
3738
|
+
throw new di(g, "function", s);
|
|
3739
|
+
var A = Ee(b, t, r, n, i, o), _ = S(A.map(function(w) {
|
|
3761
3740
|
return w.value;
|
|
3762
3741
|
}));
|
|
3763
3742
|
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(w) {
|
|
@@ -3767,42 +3746,42 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3767
3746
|
};
|
|
3768
3747
|
}));
|
|
3769
3748
|
}
|
|
3770
|
-
if (
|
|
3771
|
-
var
|
|
3772
|
-
if (!
|
|
3773
|
-
throw new
|
|
3774
|
-
a.push.apply(a, Ee(
|
|
3749
|
+
if (sr(h)) {
|
|
3750
|
+
var p = h.options[c] || h.options.other;
|
|
3751
|
+
if (!p)
|
|
3752
|
+
throw new At(h.value, c, Object.keys(h.options), s);
|
|
3753
|
+
a.push.apply(a, Ee(p.value, t, r, n, i));
|
|
3775
3754
|
continue;
|
|
3776
3755
|
}
|
|
3777
|
-
if (
|
|
3778
|
-
var
|
|
3779
|
-
if (!
|
|
3756
|
+
if (ar(h)) {
|
|
3757
|
+
var p = h.options["=".concat(c)];
|
|
3758
|
+
if (!p) {
|
|
3780
3759
|
if (!Intl.PluralRules)
|
|
3781
|
-
throw new
|
|
3760
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3782
3761
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3783
|
-
`,
|
|
3784
|
-
var
|
|
3785
|
-
|
|
3762
|
+
`, ie.MISSING_INTL_API, s);
|
|
3763
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3764
|
+
p = h.options[B] || h.options.other;
|
|
3786
3765
|
}
|
|
3787
|
-
if (!
|
|
3788
|
-
throw new
|
|
3789
|
-
a.push.apply(a, Ee(
|
|
3766
|
+
if (!p)
|
|
3767
|
+
throw new At(h.value, c, Object.keys(h.options), s);
|
|
3768
|
+
a.push.apply(a, Ee(p.value, t, r, n, i, c - (h.offset || 0)));
|
|
3790
3769
|
continue;
|
|
3791
3770
|
}
|
|
3792
3771
|
}
|
|
3793
|
-
return
|
|
3772
|
+
return gi(a);
|
|
3794
3773
|
}
|
|
3795
|
-
function
|
|
3796
|
-
return t ?
|
|
3797
|
-
return r[n] =
|
|
3774
|
+
function yi(e, t) {
|
|
3775
|
+
return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3776
|
+
return r[n] = T(T({}, e[n]), t[n] || {}), r;
|
|
3798
3777
|
}, {})) : e;
|
|
3799
3778
|
}
|
|
3800
|
-
function
|
|
3779
|
+
function _i(e, t) {
|
|
3801
3780
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3802
|
-
return r[n] =
|
|
3803
|
-
},
|
|
3781
|
+
return r[n] = yi(e[n], t[n]), r;
|
|
3782
|
+
}, T({}, e)) : e;
|
|
3804
3783
|
}
|
|
3805
|
-
function
|
|
3784
|
+
function Ue(e) {
|
|
3806
3785
|
return {
|
|
3807
3786
|
create: function() {
|
|
3808
3787
|
return {
|
|
@@ -3816,39 +3795,39 @@ function Fe(e) {
|
|
|
3816
3795
|
}
|
|
3817
3796
|
};
|
|
3818
3797
|
}
|
|
3819
|
-
function
|
|
3798
|
+
function Ei(e) {
|
|
3820
3799
|
return e === void 0 && (e = {
|
|
3821
3800
|
number: {},
|
|
3822
3801
|
dateTime: {},
|
|
3823
3802
|
pluralRules: {}
|
|
3824
3803
|
}), {
|
|
3825
|
-
getNumberFormat:
|
|
3804
|
+
getNumberFormat: Re(function() {
|
|
3826
3805
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3827
3806
|
r[n] = arguments[n];
|
|
3828
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3807
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3829
3808
|
}, {
|
|
3830
|
-
cache:
|
|
3831
|
-
strategy:
|
|
3809
|
+
cache: Ue(e.number),
|
|
3810
|
+
strategy: Ge.variadic
|
|
3832
3811
|
}),
|
|
3833
|
-
getDateTimeFormat:
|
|
3812
|
+
getDateTimeFormat: Re(function() {
|
|
3834
3813
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3835
3814
|
r[n] = arguments[n];
|
|
3836
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3815
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3837
3816
|
}, {
|
|
3838
|
-
cache:
|
|
3839
|
-
strategy:
|
|
3817
|
+
cache: Ue(e.dateTime),
|
|
3818
|
+
strategy: Ge.variadic
|
|
3840
3819
|
}),
|
|
3841
|
-
getPluralRules:
|
|
3820
|
+
getPluralRules: Re(function() {
|
|
3842
3821
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3843
3822
|
r[n] = arguments[n];
|
|
3844
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3823
|
+
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
|
|
3845
3824
|
}, {
|
|
3846
|
-
cache:
|
|
3847
|
-
strategy:
|
|
3825
|
+
cache: Ue(e.pluralRules),
|
|
3826
|
+
strategy: Ge.variadic
|
|
3848
3827
|
})
|
|
3849
3828
|
};
|
|
3850
3829
|
}
|
|
3851
|
-
var
|
|
3830
|
+
var xi = (
|
|
3852
3831
|
/** @class */
|
|
3853
3832
|
function() {
|
|
3854
3833
|
function e(t, r, n, i) {
|
|
@@ -3880,13 +3859,13 @@ var Ti = (
|
|
|
3880
3859
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3881
3860
|
var s = i || {};
|
|
3882
3861
|
s.formatters;
|
|
3883
|
-
var a =
|
|
3884
|
-
this.ast = e.__parse(t,
|
|
3862
|
+
var a = en(s, ["formatters"]);
|
|
3863
|
+
this.ast = e.__parse(t, T(T({}, a), { locale: this.resolvedLocale }));
|
|
3885
3864
|
} else
|
|
3886
3865
|
this.ast = t;
|
|
3887
3866
|
if (!Array.isArray(this.ast))
|
|
3888
3867
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3889
|
-
this.formats =
|
|
3868
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
3890
3869
|
}
|
|
3891
3870
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3892
3871
|
get: function() {
|
|
@@ -3899,7 +3878,7 @@ var Ti = (
|
|
|
3899
3878
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3900
3879
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3901
3880
|
}
|
|
3902
|
-
}, e.__parse =
|
|
3881
|
+
}, e.__parse = pi, e.formats = {
|
|
3903
3882
|
number: {
|
|
3904
3883
|
integer: {
|
|
3905
3884
|
maximumFractionDigits: 0
|
|
@@ -3960,7 +3939,7 @@ var Ti = (
|
|
|
3960
3939
|
}, e;
|
|
3961
3940
|
}()
|
|
3962
3941
|
);
|
|
3963
|
-
function
|
|
3942
|
+
function wi(e, t) {
|
|
3964
3943
|
if (t == null)
|
|
3965
3944
|
return;
|
|
3966
3945
|
if (t in e)
|
|
@@ -3981,92 +3960,92 @@ function Si(e, t) {
|
|
|
3981
3960
|
n = void 0;
|
|
3982
3961
|
return n;
|
|
3983
3962
|
}
|
|
3984
|
-
const V = {},
|
|
3963
|
+
const V = {}, Ti = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), gr = (e, t) => {
|
|
3985
3964
|
if (t == null)
|
|
3986
3965
|
return;
|
|
3987
3966
|
if (t in V && e in V[t])
|
|
3988
3967
|
return V[t][e];
|
|
3989
|
-
const r =
|
|
3968
|
+
const r = Ne(t);
|
|
3990
3969
|
for (let n = 0; n < r.length; n++) {
|
|
3991
|
-
const i = r[n], o =
|
|
3970
|
+
const i = r[n], o = Hi(i, e);
|
|
3992
3971
|
if (o)
|
|
3993
|
-
return
|
|
3972
|
+
return Ti(e, t, o);
|
|
3994
3973
|
}
|
|
3995
3974
|
};
|
|
3996
|
-
let
|
|
3997
|
-
const
|
|
3998
|
-
function
|
|
3999
|
-
return
|
|
3975
|
+
let st;
|
|
3976
|
+
const ue = Ae({});
|
|
3977
|
+
function Si(e) {
|
|
3978
|
+
return st[e] || null;
|
|
4000
3979
|
}
|
|
4001
|
-
function
|
|
4002
|
-
return e in
|
|
3980
|
+
function vr(e) {
|
|
3981
|
+
return e in st;
|
|
4003
3982
|
}
|
|
4004
|
-
function
|
|
4005
|
-
if (!
|
|
3983
|
+
function Hi(e, t) {
|
|
3984
|
+
if (!vr(e))
|
|
4006
3985
|
return null;
|
|
4007
|
-
const r =
|
|
4008
|
-
return
|
|
3986
|
+
const r = Si(e);
|
|
3987
|
+
return wi(r, t);
|
|
4009
3988
|
}
|
|
4010
|
-
function
|
|
3989
|
+
function Bi(e) {
|
|
4011
3990
|
if (e == null)
|
|
4012
3991
|
return;
|
|
4013
|
-
const t =
|
|
3992
|
+
const t = Ne(e);
|
|
4014
3993
|
for (let r = 0; r < t.length; r++) {
|
|
4015
3994
|
const n = t[r];
|
|
4016
|
-
if (
|
|
3995
|
+
if (vr(n))
|
|
4017
3996
|
return n;
|
|
4018
3997
|
}
|
|
4019
3998
|
}
|
|
4020
|
-
function
|
|
4021
|
-
delete V[e],
|
|
3999
|
+
function yr(e, ...t) {
|
|
4000
|
+
delete V[e], ue.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
|
|
4022
4001
|
}
|
|
4023
|
-
|
|
4024
|
-
[
|
|
4002
|
+
ae(
|
|
4003
|
+
[ue],
|
|
4025
4004
|
([e]) => Object.keys(e)
|
|
4026
4005
|
);
|
|
4027
|
-
|
|
4006
|
+
ue.subscribe((e) => st = e);
|
|
4028
4007
|
const xe = {};
|
|
4029
|
-
function
|
|
4008
|
+
function Pi(e, t) {
|
|
4030
4009
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
4031
4010
|
}
|
|
4032
|
-
function
|
|
4011
|
+
function _r(e) {
|
|
4033
4012
|
return xe[e];
|
|
4034
4013
|
}
|
|
4035
|
-
function
|
|
4036
|
-
return
|
|
4037
|
-
const r =
|
|
4014
|
+
function Ai(e) {
|
|
4015
|
+
return Ne(e).map((t) => {
|
|
4016
|
+
const r = _r(t);
|
|
4038
4017
|
return [t, r ? [...r] : []];
|
|
4039
4018
|
}).filter(([, t]) => t.length > 0);
|
|
4040
4019
|
}
|
|
4041
|
-
function
|
|
4042
|
-
return e == null ? !1 :
|
|
4020
|
+
function tt(e) {
|
|
4021
|
+
return e == null ? !1 : Ne(e).some(
|
|
4043
4022
|
(t) => {
|
|
4044
4023
|
var r;
|
|
4045
|
-
return (r =
|
|
4024
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
|
4046
4025
|
}
|
|
4047
4026
|
);
|
|
4048
4027
|
}
|
|
4049
|
-
function
|
|
4028
|
+
function Oi(e, t) {
|
|
4050
4029
|
return Promise.all(
|
|
4051
|
-
t.map((n) => (
|
|
4052
|
-
).then((n) =>
|
|
4053
|
-
}
|
|
4054
|
-
const
|
|
4055
|
-
function
|
|
4056
|
-
if (!
|
|
4057
|
-
return e in
|
|
4058
|
-
const t =
|
|
4059
|
-
return
|
|
4030
|
+
t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
|
|
4031
|
+
).then((n) => yr(e, ...n));
|
|
4032
|
+
}
|
|
4033
|
+
const he = {};
|
|
4034
|
+
function Er(e) {
|
|
4035
|
+
if (!tt(e))
|
|
4036
|
+
return e in he ? he[e] : Promise.resolve();
|
|
4037
|
+
const t = Ai(e);
|
|
4038
|
+
return he[e] = Promise.all(
|
|
4060
4039
|
t.map(
|
|
4061
|
-
([r, n]) =>
|
|
4040
|
+
([r, n]) => Oi(r, n)
|
|
4062
4041
|
)
|
|
4063
4042
|
).then(() => {
|
|
4064
|
-
if (
|
|
4065
|
-
return
|
|
4066
|
-
delete
|
|
4067
|
-
}),
|
|
4043
|
+
if (tt(e))
|
|
4044
|
+
return Er(e);
|
|
4045
|
+
delete he[e];
|
|
4046
|
+
}), he[e];
|
|
4068
4047
|
}
|
|
4069
|
-
const
|
|
4048
|
+
const Ni = {
|
|
4070
4049
|
number: {
|
|
4071
4050
|
scientific: { notation: "scientific" },
|
|
4072
4051
|
engineering: { notation: "engineering" },
|
|
@@ -4095,135 +4074,135 @@ const Ii = {
|
|
|
4095
4074
|
timeZoneName: "short"
|
|
4096
4075
|
}
|
|
4097
4076
|
}
|
|
4098
|
-
},
|
|
4077
|
+
}, Ci = {
|
|
4099
4078
|
fallbackLocale: null,
|
|
4100
4079
|
loadingDelay: 200,
|
|
4101
|
-
formats:
|
|
4080
|
+
formats: Ni,
|
|
4102
4081
|
warnOnMissingMessages: !0,
|
|
4103
4082
|
handleMissingMessage: void 0,
|
|
4104
4083
|
ignoreTag: !0
|
|
4105
|
-
},
|
|
4106
|
-
function
|
|
4107
|
-
return
|
|
4084
|
+
}, Ii = Ci;
|
|
4085
|
+
function oe() {
|
|
4086
|
+
return Ii;
|
|
4108
4087
|
}
|
|
4109
|
-
const
|
|
4110
|
-
var
|
|
4088
|
+
const De = Ae(!1);
|
|
4089
|
+
var Li = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ui = (e, t) => {
|
|
4111
4090
|
for (var r in t || (t = {}))
|
|
4112
|
-
|
|
4113
|
-
if (
|
|
4114
|
-
for (var r of
|
|
4115
|
-
|
|
4091
|
+
Gi.call(t, r) && Nt(e, r, t[r]);
|
|
4092
|
+
if (Ot)
|
|
4093
|
+
for (var r of Ot(t))
|
|
4094
|
+
$i.call(t, r) && Nt(e, r, t[r]);
|
|
4116
4095
|
return e;
|
|
4117
|
-
},
|
|
4118
|
-
let
|
|
4119
|
-
const
|
|
4120
|
-
function
|
|
4096
|
+
}, Di = (e, t) => Mi(e, Ri(t));
|
|
4097
|
+
let rt;
|
|
4098
|
+
const Se = Ae(null);
|
|
4099
|
+
function Ct(e) {
|
|
4121
4100
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4122
4101
|
}
|
|
4123
|
-
function
|
|
4124
|
-
const r =
|
|
4125
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4102
|
+
function Ne(e, t = oe().fallbackLocale) {
|
|
4103
|
+
const r = Ct(e);
|
|
4104
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
4126
4105
|
}
|
|
4127
4106
|
function J() {
|
|
4128
|
-
return
|
|
4107
|
+
return rt ?? void 0;
|
|
4129
4108
|
}
|
|
4130
|
-
|
|
4131
|
-
|
|
4109
|
+
Se.subscribe((e) => {
|
|
4110
|
+
rt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4132
4111
|
});
|
|
4133
|
-
const
|
|
4134
|
-
if (e &&
|
|
4135
|
-
const { loadingDelay: t } =
|
|
4112
|
+
const Fi = (e) => {
|
|
4113
|
+
if (e && Bi(e) && tt(e)) {
|
|
4114
|
+
const { loadingDelay: t } = oe();
|
|
4136
4115
|
let r;
|
|
4137
4116
|
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
|
4138
|
-
() =>
|
|
4117
|
+
() => De.set(!0),
|
|
4139
4118
|
t
|
|
4140
|
-
) :
|
|
4141
|
-
|
|
4119
|
+
) : De.set(!0), Er(e).then(() => {
|
|
4120
|
+
Se.set(e);
|
|
4142
4121
|
}).finally(() => {
|
|
4143
|
-
clearTimeout(r),
|
|
4122
|
+
clearTimeout(r), De.set(!1);
|
|
4144
4123
|
});
|
|
4145
4124
|
}
|
|
4146
|
-
return
|
|
4147
|
-
}, W =
|
|
4148
|
-
set:
|
|
4149
|
-
}),
|
|
4125
|
+
return Se.set(e);
|
|
4126
|
+
}, W = Di(Ui({}, Se), {
|
|
4127
|
+
set: Fi
|
|
4128
|
+
}), Ce = (e) => {
|
|
4150
4129
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4151
4130
|
return (n) => {
|
|
4152
4131
|
const i = JSON.stringify(n);
|
|
4153
4132
|
return i in t ? t[i] : t[i] = e(n);
|
|
4154
4133
|
};
|
|
4155
4134
|
};
|
|
4156
|
-
var
|
|
4135
|
+
var ji = Object.defineProperty, He = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
4157
4136
|
for (var r in t || (t = {}))
|
|
4158
|
-
|
|
4159
|
-
if (
|
|
4160
|
-
for (var r of
|
|
4161
|
-
|
|
4137
|
+
xr.call(t, r) && It(e, r, t[r]);
|
|
4138
|
+
if (He)
|
|
4139
|
+
for (var r of He(t))
|
|
4140
|
+
wr.call(t, r) && It(e, r, t[r]);
|
|
4162
4141
|
return e;
|
|
4163
|
-
},
|
|
4142
|
+
}, le = (e, t) => {
|
|
4164
4143
|
var r = {};
|
|
4165
4144
|
for (var n in e)
|
|
4166
|
-
|
|
4167
|
-
if (e != null &&
|
|
4168
|
-
for (var n of
|
|
4169
|
-
t.indexOf(n) < 0 &&
|
|
4145
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4146
|
+
if (e != null && He)
|
|
4147
|
+
for (var n of He(e))
|
|
4148
|
+
t.indexOf(n) < 0 && wr.call(e, n) && (r[n] = e[n]);
|
|
4170
4149
|
return r;
|
|
4171
4150
|
};
|
|
4172
4151
|
const pe = (e, t) => {
|
|
4173
|
-
const { formats: r } =
|
|
4152
|
+
const { formats: r } = oe();
|
|
4174
4153
|
if (e in r && t in r[e])
|
|
4175
4154
|
return r[e][t];
|
|
4176
4155
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4177
|
-
},
|
|
4156
|
+
}, ki = Ce(
|
|
4178
4157
|
(e) => {
|
|
4179
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4158
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4180
4159
|
if (r == null)
|
|
4181
4160
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4182
4161
|
return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
|
|
4183
4162
|
}
|
|
4184
|
-
),
|
|
4163
|
+
), Vi = Ce(
|
|
4185
4164
|
(e) => {
|
|
4186
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4165
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4187
4166
|
if (r == null)
|
|
4188
4167
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4189
4168
|
return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4190
4169
|
}
|
|
4191
|
-
),
|
|
4170
|
+
), Xi = Ce(
|
|
4192
4171
|
(e) => {
|
|
4193
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4172
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4194
4173
|
if (r == null)
|
|
4195
4174
|
throw new Error(
|
|
4196
4175
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4197
4176
|
);
|
|
4198
4177
|
return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4199
4178
|
}
|
|
4200
|
-
),
|
|
4179
|
+
), Wi = (e = {}) => {
|
|
4201
4180
|
var t = e, {
|
|
4202
4181
|
locale: r = J()
|
|
4203
|
-
} = t, n =
|
|
4182
|
+
} = t, n = le(t, [
|
|
4204
4183
|
"locale"
|
|
4205
4184
|
]);
|
|
4206
|
-
return
|
|
4207
|
-
},
|
|
4185
|
+
return ki(at({ locale: r }, n));
|
|
4186
|
+
}, zi = (e = {}) => {
|
|
4208
4187
|
var t = e, {
|
|
4209
4188
|
locale: r = J()
|
|
4210
|
-
} = t, n =
|
|
4189
|
+
} = t, n = le(t, [
|
|
4211
4190
|
"locale"
|
|
4212
4191
|
]);
|
|
4213
|
-
return
|
|
4214
|
-
},
|
|
4192
|
+
return Vi(at({ locale: r }, n));
|
|
4193
|
+
}, Zi = (e = {}) => {
|
|
4215
4194
|
var t = e, {
|
|
4216
4195
|
locale: r = J()
|
|
4217
|
-
} = t, n =
|
|
4196
|
+
} = t, n = le(t, [
|
|
4218
4197
|
"locale"
|
|
4219
4198
|
]);
|
|
4220
|
-
return
|
|
4221
|
-
},
|
|
4199
|
+
return Xi(at({ locale: r }, n));
|
|
4200
|
+
}, Qi = Ce(
|
|
4222
4201
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4223
|
-
(e, t = J()) => new
|
|
4224
|
-
ignoreTag:
|
|
4202
|
+
(e, t = J()) => new xi(e, t, oe().formats, {
|
|
4203
|
+
ignoreTag: oe().ignoreTag
|
|
4225
4204
|
})
|
|
4226
|
-
),
|
|
4205
|
+
), Ji = (e, t = {}) => {
|
|
4227
4206
|
var r, n, i, o;
|
|
4228
4207
|
let s = t;
|
|
4229
4208
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4236,9 +4215,9 @@ const pe = (e, t) => {
|
|
|
4236
4215
|
throw new Error(
|
|
4237
4216
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4238
4217
|
);
|
|
4239
|
-
let h =
|
|
4218
|
+
let h = gr(e, l);
|
|
4240
4219
|
if (!h)
|
|
4241
|
-
h = (o = (i = (n = (r =
|
|
4220
|
+
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4242
4221
|
else if (typeof h != "string")
|
|
4243
4222
|
return console.warn(
|
|
4244
4223
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4247,7 +4226,7 @@ const pe = (e, t) => {
|
|
|
4247
4226
|
return h;
|
|
4248
4227
|
let f = h;
|
|
4249
4228
|
try {
|
|
4250
|
-
f =
|
|
4229
|
+
f = Qi(h, l).format(a);
|
|
4251
4230
|
} catch (c) {
|
|
4252
4231
|
c instanceof Error && console.warn(
|
|
4253
4232
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4255,25 +4234,25 @@ const pe = (e, t) => {
|
|
|
4255
4234
|
);
|
|
4256
4235
|
}
|
|
4257
4236
|
return f;
|
|
4258
|
-
},
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4237
|
+
}, qi = (e, t) => Zi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), eo = (e, t = J()) => gr(e, t), to = ae([W, ue], () => Ji);
|
|
4238
|
+
ae([W], () => qi);
|
|
4239
|
+
ae([W], () => Yi);
|
|
4240
|
+
ae([W], () => Ki);
|
|
4241
|
+
ae([W, ue], () => eo);
|
|
4263
4242
|
window.emWidgets = { topic: dn };
|
|
4264
|
-
const
|
|
4265
|
-
function
|
|
4243
|
+
const ro = (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));
|
|
4244
|
+
function no({ withLocale: e, translations: t }) {
|
|
4266
4245
|
W.subscribe((r) => {
|
|
4267
|
-
r == null && (
|
|
4246
|
+
r == null && (ue.set(t), W.set(e));
|
|
4268
4247
|
});
|
|
4269
4248
|
}
|
|
4270
|
-
function
|
|
4271
|
-
|
|
4249
|
+
function Lt(e, t) {
|
|
4250
|
+
yr(e, t);
|
|
4272
4251
|
}
|
|
4273
|
-
function
|
|
4252
|
+
function io(e) {
|
|
4274
4253
|
W.set(e);
|
|
4275
4254
|
}
|
|
4276
|
-
const
|
|
4255
|
+
const Mt = {
|
|
4277
4256
|
en: {
|
|
4278
4257
|
loading: "Loading, please wait ...",
|
|
4279
4258
|
playNow: "Play Now",
|
|
@@ -4284,22 +4263,22 @@ const Gt = {
|
|
|
4284
4263
|
noMoreGames: "No more games"
|
|
4285
4264
|
}
|
|
4286
4265
|
};
|
|
4287
|
-
function
|
|
4288
|
-
|
|
4266
|
+
function oo(e) {
|
|
4267
|
+
Or(e, "svelte-xv9pd7", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}");
|
|
4289
4268
|
}
|
|
4290
|
-
function
|
|
4269
|
+
function Rt(e, t, r) {
|
|
4291
4270
|
const n = e.slice();
|
|
4292
4271
|
return n[32] = t[r], n;
|
|
4293
4272
|
}
|
|
4294
|
-
function
|
|
4273
|
+
function Gt(e, t, r) {
|
|
4295
4274
|
const n = e.slice();
|
|
4296
4275
|
return n[32] = t[r], n[36] = r, n;
|
|
4297
4276
|
}
|
|
4298
|
-
function
|
|
4277
|
+
function $t(e) {
|
|
4299
4278
|
let t, r;
|
|
4300
4279
|
return {
|
|
4301
4280
|
c() {
|
|
4302
|
-
t = P("div"), r = P("casino-tournaments-tab"), O(r, "part", "TournamentGames"), O(r, "tabs", "casino,sports"), O(r, "tab", "casino"), O(r, "tid",
|
|
4281
|
+
t = P("div"), r = P("casino-tournaments-tab"), O(r, "part", "TournamentGames"), O(r, "tabs", "casino,sports"), O(r, "tab", "casino"), O(r, "tid", nt), O(
|
|
4303
4282
|
r,
|
|
4304
4283
|
"clientstyling",
|
|
4305
4284
|
/*clientstyling*/
|
|
@@ -4317,7 +4296,7 @@ function Dt(e) {
|
|
|
4317
4296
|
), v(t, "class", "GamesTabNav");
|
|
4318
4297
|
},
|
|
4319
4298
|
m(n, i) {
|
|
4320
|
-
|
|
4299
|
+
D(n, t, i), x(t, r);
|
|
4321
4300
|
},
|
|
4322
4301
|
p(n, i) {
|
|
4323
4302
|
i[0] & /*clientstyling*/
|
|
@@ -4345,17 +4324,17 @@ function Dt(e) {
|
|
|
4345
4324
|
}
|
|
4346
4325
|
};
|
|
4347
4326
|
}
|
|
4348
|
-
function
|
|
4327
|
+
function so(e) {
|
|
4349
4328
|
let t, r = (
|
|
4350
4329
|
/*$_*/
|
|
4351
4330
|
e[13]("noGamesAvailable") + ""
|
|
4352
4331
|
), n;
|
|
4353
4332
|
return {
|
|
4354
4333
|
c() {
|
|
4355
|
-
t = P("div"), n =
|
|
4334
|
+
t = P("div"), n = U(r), v(t, "class", "NoGames");
|
|
4356
4335
|
},
|
|
4357
4336
|
m(i, o) {
|
|
4358
|
-
|
|
4337
|
+
D(i, t, o), x(t, n);
|
|
4359
4338
|
},
|
|
4360
4339
|
p(i, o) {
|
|
4361
4340
|
o[0] & /*$_*/
|
|
@@ -4367,17 +4346,17 @@ function uo(e) {
|
|
|
4367
4346
|
}
|
|
4368
4347
|
};
|
|
4369
4348
|
}
|
|
4370
|
-
function
|
|
4349
|
+
function ao(e) {
|
|
4371
4350
|
let t, r = (
|
|
4372
4351
|
/*$_*/
|
|
4373
4352
|
e[13]("noMoreGames") + ""
|
|
4374
4353
|
), n;
|
|
4375
4354
|
return {
|
|
4376
4355
|
c() {
|
|
4377
|
-
t = P("div"), n =
|
|
4356
|
+
t = P("div"), n = U(r), v(t, "class", "NoGames");
|
|
4378
4357
|
},
|
|
4379
4358
|
m(i, o) {
|
|
4380
|
-
|
|
4359
|
+
D(i, t, o), x(t, n);
|
|
4381
4360
|
},
|
|
4382
4361
|
p(i, o) {
|
|
4383
4362
|
o[0] & /*$_*/
|
|
@@ -4389,17 +4368,17 @@ function lo(e) {
|
|
|
4389
4368
|
}
|
|
4390
4369
|
};
|
|
4391
4370
|
}
|
|
4392
|
-
function
|
|
4371
|
+
function uo(e) {
|
|
4393
4372
|
let t, r = (
|
|
4394
4373
|
/*$_*/
|
|
4395
4374
|
e[13]("loading") + ""
|
|
4396
4375
|
), n;
|
|
4397
4376
|
return {
|
|
4398
4377
|
c() {
|
|
4399
|
-
t = P("div"), n =
|
|
4378
|
+
t = P("div"), n = U(r), v(t, "class", "LoadingGames");
|
|
4400
4379
|
},
|
|
4401
4380
|
m(i, o) {
|
|
4402
|
-
|
|
4381
|
+
D(i, t, o), x(t, n);
|
|
4403
4382
|
},
|
|
4404
4383
|
p(i, o) {
|
|
4405
4384
|
o[0] & /*$_*/
|
|
@@ -4411,23 +4390,23 @@ function ho(e) {
|
|
|
4411
4390
|
}
|
|
4412
4391
|
};
|
|
4413
4392
|
}
|
|
4414
|
-
function
|
|
4393
|
+
function lo(e) {
|
|
4415
4394
|
let t, r = Te(
|
|
4416
4395
|
/*casinoGames*/
|
|
4417
4396
|
e[8]
|
|
4418
4397
|
), n = [];
|
|
4419
4398
|
for (let i = 0; i < r.length; i += 1)
|
|
4420
|
-
n[i] =
|
|
4399
|
+
n[i] = Ut(Gt(e, r, i));
|
|
4421
4400
|
return {
|
|
4422
4401
|
c() {
|
|
4423
4402
|
for (let i = 0; i < n.length; i += 1)
|
|
4424
4403
|
n[i].c();
|
|
4425
|
-
t =
|
|
4404
|
+
t = Ir();
|
|
4426
4405
|
},
|
|
4427
4406
|
m(i, o) {
|
|
4428
4407
|
for (let s = 0; s < n.length; s += 1)
|
|
4429
4408
|
n[s] && n[s].m(i, o);
|
|
4430
|
-
|
|
4409
|
+
D(i, t, o);
|
|
4431
4410
|
},
|
|
4432
4411
|
p(i, o) {
|
|
4433
4412
|
if (o[0] & /*gameClicked, casinoGames, $_*/
|
|
@@ -4438,8 +4417,8 @@ function co(e) {
|
|
|
4438
4417
|
);
|
|
4439
4418
|
let s;
|
|
4440
4419
|
for (s = 0; s < r.length; s += 1) {
|
|
4441
|
-
const a =
|
|
4442
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4420
|
+
const a = Gt(i, r, s);
|
|
4421
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ut(a), n[s].c(), n[s].m(t.parentNode, t));
|
|
4443
4422
|
}
|
|
4444
4423
|
for (; s < n.length; s += 1)
|
|
4445
4424
|
n[s].d(1);
|
|
@@ -4447,26 +4426,26 @@ function co(e) {
|
|
|
4447
4426
|
}
|
|
4448
4427
|
},
|
|
4449
4428
|
d(i) {
|
|
4450
|
-
i && $(t),
|
|
4429
|
+
i && $(t), Vt(n, i);
|
|
4451
4430
|
}
|
|
4452
4431
|
};
|
|
4453
4432
|
}
|
|
4454
|
-
function
|
|
4433
|
+
function Ut(e) {
|
|
4455
4434
|
let t, r, n = (
|
|
4456
4435
|
/*$_*/
|
|
4457
4436
|
e[13]("playNow") + ""
|
|
4458
4437
|
), i, o, s, a, l, u, h, f, c;
|
|
4459
4438
|
return {
|
|
4460
4439
|
c() {
|
|
4461
|
-
t = P("div"), r = P("span"), i =
|
|
4440
|
+
t = P("div"), r = P("span"), i = U(n), o = F(), s = P("ui-image"), h = F(), v(r, "class", "PlayNowButton"), ft(s.src, a = /*item*/
|
|
4462
4441
|
e[32].thumbnail) || O(s, "src", a), O(s, "width", "132px"), O(s, "height", "100px"), O(s, "alt", l = /*item*/
|
|
4463
4442
|
e[32].name), O(s, "title", u = /*item*/
|
|
4464
4443
|
e[32].name), v(t, "class", "item"), v(t, "id", "g_" + /*idx*/
|
|
4465
4444
|
e[36]), v(t, "role", "button"), v(t, "tabindex", "0");
|
|
4466
4445
|
},
|
|
4467
4446
|
m(d, b) {
|
|
4468
|
-
|
|
4469
|
-
|
|
4447
|
+
D(d, t, b), x(t, r), x(r, i), x(t, o), x(t, s), x(t, h), f || (c = Fe(t, "click", function() {
|
|
4448
|
+
Be(
|
|
4470
4449
|
/*gameClicked*/
|
|
4471
4450
|
e[15](
|
|
4472
4451
|
/*item*/
|
|
@@ -4482,7 +4461,7 @@ function Ft(e) {
|
|
|
4482
4461
|
e = d, b[0] & /*$_*/
|
|
4483
4462
|
8192 && n !== (n = /*$_*/
|
|
4484
4463
|
e[13]("playNow") + "") && X(i, n), b[0] & /*casinoGames*/
|
|
4485
|
-
256 && !
|
|
4464
|
+
256 && !ft(s.src, a = /*item*/
|
|
4486
4465
|
e[32].thumbnail) && O(s, "src", a), b[0] & /*casinoGames*/
|
|
4487
4466
|
256 && l !== (l = /*item*/
|
|
4488
4467
|
e[32].name) && O(s, "alt", l), b[0] & /*casinoGames*/
|
|
@@ -4494,33 +4473,33 @@ function Ft(e) {
|
|
|
4494
4473
|
}
|
|
4495
4474
|
};
|
|
4496
4475
|
}
|
|
4497
|
-
function
|
|
4476
|
+
function ho(e) {
|
|
4498
4477
|
let t, r, n, i, o, s, a, l = (
|
|
4499
4478
|
/*$_*/
|
|
4500
4479
|
e[13]("previous") + ""
|
|
4501
4480
|
), u, h, f, c, d, b, g = (
|
|
4502
4481
|
/*$_*/
|
|
4503
4482
|
e[13]("next") + ""
|
|
4504
|
-
),
|
|
4483
|
+
), S, A, _, p, B, w, I, M, z;
|
|
4505
4484
|
return {
|
|
4506
4485
|
c() {
|
|
4507
|
-
t = P("div"), r = P("button"), n = be("svg"), i = be("path"), s =
|
|
4486
|
+
t = P("div"), r = P("button"), n = be("svg"), i = be("path"), s = F(), a = P("span"), u = U(l), c = F(), d = P("button"), b = P("span"), S = U(g), A = F(), _ = be("svg"), p = be("path"), v(i, "fill", o = /*hasPreviousPage*/
|
|
4508
4487
|
e[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(i, "class", "a"), v(i, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(i, "transform", "translate(19.246 -6.188) rotate(90)"), v(n, "xmlns", "http://www.w3.org/2000/svg"), v(n, "width", "8"), v(n, "height", "13.992"), v(n, "viewBox", "0 0 8 13.992"), v(a, "class", "TournamentsPaginationControlsText"), v(r, "class", h = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
|
|
4509
4488
|
e[10] ? "" : "Disabled")), r.disabled = f = /*hasPreviousPage*/
|
|
4510
|
-
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(
|
|
4511
|
-
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(
|
|
4489
|
+
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(p, "fill", B = /*hasNextPage*/
|
|
4490
|
+
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(p, "class", "a"), v(p, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(p, "transform", "translate(-11.246 20.179) rotate(-90)"), v(_, "xmlns", "http://www.w3.org/2000/svg"), v(_, "width", "8"), v(_, "height", "13.992"), v(_, "viewBox", "0 0 8 13.992"), v(d, "class", w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4512
4491
|
e[11] ? "" : "Disabled")), d.disabled = I = /*hasNextPage*/
|
|
4513
4492
|
!e[11], v(t, "class", "TournamentsPaginationControlsArea");
|
|
4514
4493
|
},
|
|
4515
4494
|
m(N, L) {
|
|
4516
|
-
|
|
4517
|
-
|
|
4495
|
+
D(N, t, L), x(t, r), x(r, n), x(n, i), x(r, s), x(r, a), x(a, u), x(t, c), x(t, d), x(d, b), x(b, S), x(d, A), x(d, _), x(_, p), M || (z = [
|
|
4496
|
+
Fe(
|
|
4518
4497
|
r,
|
|
4519
4498
|
"click",
|
|
4520
4499
|
/*gotoPage*/
|
|
4521
4500
|
e[16].bind(this, -1)
|
|
4522
4501
|
),
|
|
4523
|
-
|
|
4502
|
+
Fe(
|
|
4524
4503
|
d,
|
|
4525
4504
|
"click",
|
|
4526
4505
|
/*gotoPage*/
|
|
@@ -4539,20 +4518,20 @@ function fo(e) {
|
|
|
4539
4518
|
1024 && f !== (f = /*hasPreviousPage*/
|
|
4540
4519
|
!N[10]) && (r.disabled = f), L[0] & /*$_*/
|
|
4541
4520
|
8192 && g !== (g = /*$_*/
|
|
4542
|
-
N[13]("next") + "") && X(
|
|
4543
|
-
2048 &&
|
|
4544
|
-
N[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(
|
|
4521
|
+
N[13]("next") + "") && X(S, g), L[0] & /*hasNextPage*/
|
|
4522
|
+
2048 && B !== (B = /*hasNextPage*/
|
|
4523
|
+
N[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(p, "fill", B), L[0] & /*hasNextPage*/
|
|
4545
4524
|
2048 && w !== (w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4546
4525
|
N[11] ? "" : "Disabled")) && v(d, "class", w), L[0] & /*hasNextPage*/
|
|
4547
4526
|
2048 && I !== (I = /*hasNextPage*/
|
|
4548
4527
|
!N[11]) && (d.disabled = I);
|
|
4549
4528
|
},
|
|
4550
4529
|
d(N) {
|
|
4551
|
-
N && $(t), M = !1,
|
|
4530
|
+
N && $(t), M = !1, se(z);
|
|
4552
4531
|
}
|
|
4553
4532
|
};
|
|
4554
4533
|
}
|
|
4555
|
-
function
|
|
4534
|
+
function Dt(e) {
|
|
4556
4535
|
let t, r = (
|
|
4557
4536
|
/*item*/
|
|
4558
4537
|
e[32].rule + ""
|
|
@@ -4562,10 +4541,10 @@ function jt(e) {
|
|
|
4562
4541
|
), s;
|
|
4563
4542
|
return {
|
|
4564
4543
|
c() {
|
|
4565
|
-
t = P("li"), n =
|
|
4544
|
+
t = P("li"), n = U(r), i = F(), s = U(o), v(t, "part", "li"), v(t, "class", "Market");
|
|
4566
4545
|
},
|
|
4567
4546
|
m(a, l) {
|
|
4568
|
-
|
|
4547
|
+
D(a, t, l), x(t, n), x(t, i), x(t, s);
|
|
4569
4548
|
},
|
|
4570
4549
|
p(a, l) {
|
|
4571
4550
|
l[0] & /*sportsRules*/
|
|
@@ -4579,37 +4558,37 @@ function jt(e) {
|
|
|
4579
4558
|
}
|
|
4580
4559
|
};
|
|
4581
4560
|
}
|
|
4582
|
-
function
|
|
4561
|
+
function co(e) {
|
|
4583
4562
|
let t, r, n, i, o, s, a, l, u, h, f, c = (
|
|
4584
4563
|
/*tournamentdetails*/
|
|
4585
4564
|
e[3] && /*tournamentdetails*/
|
|
4586
4565
|
e[3].wallet?.sports && /*tournamentdetails*/
|
|
4587
|
-
e[3].wallet?.casino &&
|
|
4566
|
+
e[3].wallet?.casino && $t(e)
|
|
4588
4567
|
);
|
|
4589
|
-
function d(
|
|
4568
|
+
function d(p, B) {
|
|
4590
4569
|
return (
|
|
4591
4570
|
/*casinoGames*/
|
|
4592
|
-
|
|
4571
|
+
p[8]?.length ? lo : (
|
|
4593
4572
|
/*isLoadingGames*/
|
|
4594
|
-
|
|
4573
|
+
p[12] ? uo : (
|
|
4595
4574
|
/*noMoreGamesWhenPagination*/
|
|
4596
|
-
|
|
4575
|
+
p[9] ? ao : so
|
|
4597
4576
|
)
|
|
4598
4577
|
)
|
|
4599
4578
|
);
|
|
4600
4579
|
}
|
|
4601
|
-
let b = d(e), g = b(e),
|
|
4602
|
-
e[14] &&
|
|
4580
|
+
let b = d(e), g = b(e), S = !/*isMobileDevice*/
|
|
4581
|
+
e[14] && ho(e), A = Te(
|
|
4603
4582
|
/*sportsRules*/
|
|
4604
4583
|
e[7]
|
|
4605
4584
|
), _ = [];
|
|
4606
|
-
for (let
|
|
4607
|
-
_[
|
|
4585
|
+
for (let p = 0; p < A.length; p += 1)
|
|
4586
|
+
_[p] = Dt(Rt(e, A, p));
|
|
4608
4587
|
return {
|
|
4609
4588
|
c() {
|
|
4610
|
-
t = P("div"), c && c.c(), r =
|
|
4611
|
-
for (let
|
|
4612
|
-
_[
|
|
4589
|
+
t = P("div"), c && c.c(), r = F(), n = P("div"), i = P("div"), o = P("div"), g.c(), s = F(), S && S.c(), l = F(), u = P("div"), h = P("ul");
|
|
4590
|
+
for (let p = 0; p < _.length; p += 1)
|
|
4591
|
+
_[p].c();
|
|
4613
4592
|
v(o, "class", "GameList items"), v(i, "class", a = "TabContent GamesContent " + /*activeTab*/
|
|
4614
4593
|
(e[6] != "casino" ? "hidden" : "")), v(h, "class", "SportsPage"), v(u, "class", f = "TabContent GamesContent " + /*activeTab*/
|
|
4615
4594
|
(e[6] != "sports" ? "hidden" : "")), v(n, "class", "GamesWrapper"), v(
|
|
@@ -4619,65 +4598,65 @@ function po(e) {
|
|
|
4619
4598
|
e[14] ? "MobileClass" : ""
|
|
4620
4599
|
);
|
|
4621
4600
|
},
|
|
4622
|
-
m(
|
|
4623
|
-
|
|
4601
|
+
m(p, B) {
|
|
4602
|
+
D(p, t, B), c && c.m(t, null), x(t, r), x(t, n), x(n, i), x(i, o), g.m(o, null), e[19](o), x(i, s), S && S.m(i, null), x(n, l), x(n, u), x(u, h);
|
|
4624
4603
|
for (let w = 0; w < _.length; w += 1)
|
|
4625
4604
|
_[w] && _[w].m(h, null);
|
|
4626
4605
|
e[20](t);
|
|
4627
4606
|
},
|
|
4628
|
-
p(
|
|
4607
|
+
p(p, B) {
|
|
4629
4608
|
if (/*tournamentdetails*/
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4609
|
+
p[3] && /*tournamentdetails*/
|
|
4610
|
+
p[3].wallet?.sports && /*tournamentdetails*/
|
|
4611
|
+
p[3].wallet?.casino ? c ? c.p(p, B) : (c = $t(p), c.c(), c.m(t, r)) : c && (c.d(1), c = null), b === (b = d(p)) && g ? g.p(p, B) : (g.d(1), g = b(p), g && (g.c(), g.m(o, null))), /*isMobileDevice*/
|
|
4612
|
+
p[14] || S.p(p, B), B[0] & /*activeTab*/
|
|
4634
4613
|
64 && a !== (a = "TabContent GamesContent " + /*activeTab*/
|
|
4635
|
-
(
|
|
4614
|
+
(p[6] != "casino" ? "hidden" : "")) && v(i, "class", a), B[0] & /*$_, sportsRules*/
|
|
4636
4615
|
8320) {
|
|
4637
4616
|
A = Te(
|
|
4638
4617
|
/*sportsRules*/
|
|
4639
|
-
|
|
4618
|
+
p[7]
|
|
4640
4619
|
);
|
|
4641
4620
|
let w;
|
|
4642
4621
|
for (w = 0; w < A.length; w += 1) {
|
|
4643
|
-
const I =
|
|
4644
|
-
_[w] ? _[w].p(I,
|
|
4622
|
+
const I = Rt(p, A, w);
|
|
4623
|
+
_[w] ? _[w].p(I, B) : (_[w] = Dt(I), _[w].c(), _[w].m(h, null));
|
|
4645
4624
|
}
|
|
4646
4625
|
for (; w < _.length; w += 1)
|
|
4647
4626
|
_[w].d(1);
|
|
4648
4627
|
_.length = A.length;
|
|
4649
4628
|
}
|
|
4650
|
-
|
|
4629
|
+
B[0] & /*activeTab*/
|
|
4651
4630
|
64 && f !== (f = "TabContent GamesContent " + /*activeTab*/
|
|
4652
|
-
(
|
|
4631
|
+
(p[6] != "sports" ? "hidden" : "")) && v(u, "class", f);
|
|
4653
4632
|
},
|
|
4654
4633
|
i: G,
|
|
4655
4634
|
o: G,
|
|
4656
|
-
d(
|
|
4657
|
-
|
|
4635
|
+
d(p) {
|
|
4636
|
+
p && $(t), c && c.d(), g.d(), e[19](null), S && S.d(), Vt(_, p), e[20](null);
|
|
4658
4637
|
}
|
|
4659
4638
|
};
|
|
4660
4639
|
}
|
|
4661
|
-
let
|
|
4662
|
-
function
|
|
4640
|
+
let nt = "gameTab";
|
|
4641
|
+
function fo(e, t, r) {
|
|
4663
4642
|
let n;
|
|
4664
|
-
|
|
4665
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, d = window.navigator.userAgent, b, g,
|
|
4666
|
-
|
|
4667
|
-
const
|
|
4668
|
-
fetch(a).then((
|
|
4669
|
-
Object.keys(
|
|
4670
|
-
|
|
4643
|
+
Ar(e, to, (m) => r(13, n = m));
|
|
4644
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, d = window.navigator.userAgent, b, g, S, A = ro(d), _ = !1;
|
|
4645
|
+
no({ withLocale: "en", translations: {} });
|
|
4646
|
+
const p = () => {
|
|
4647
|
+
fetch(a).then((m) => m.json()).then((m) => {
|
|
4648
|
+
Object.keys(m).forEach((R) => {
|
|
4649
|
+
Lt(R, m[R]);
|
|
4671
4650
|
});
|
|
4672
|
-
}).catch((
|
|
4673
|
-
console.log(
|
|
4651
|
+
}).catch((m) => {
|
|
4652
|
+
console.log(m);
|
|
4674
4653
|
});
|
|
4675
4654
|
};
|
|
4676
|
-
Object.keys(
|
|
4677
|
-
|
|
4655
|
+
Object.keys(Mt).forEach((m) => {
|
|
4656
|
+
Lt(m, Mt[m]);
|
|
4678
4657
|
});
|
|
4679
|
-
const
|
|
4680
|
-
|
|
4658
|
+
const B = () => {
|
|
4659
|
+
io(l), setTimeout(
|
|
4681
4660
|
() => {
|
|
4682
4661
|
w();
|
|
4683
4662
|
},
|
|
@@ -4694,66 +4673,66 @@ function mo(e, t, r) {
|
|
|
4694
4673
|
},
|
|
4695
4674
|
window.location.href
|
|
4696
4675
|
);
|
|
4697
|
-
}, I = (
|
|
4676
|
+
}, I = (m) => {
|
|
4698
4677
|
window.postMessage(
|
|
4699
4678
|
{
|
|
4700
4679
|
type: "TournamentGameAction",
|
|
4701
|
-
gameId:
|
|
4702
|
-
name:
|
|
4703
|
-
launchUrl:
|
|
4680
|
+
gameId: m.id,
|
|
4681
|
+
name: m.name,
|
|
4682
|
+
launchUrl: m.launchUrl
|
|
4704
4683
|
},
|
|
4705
4684
|
window.location.href
|
|
4706
4685
|
);
|
|
4707
4686
|
};
|
|
4708
4687
|
let M = !1, z = !1, N = !1;
|
|
4709
|
-
const L = (
|
|
4710
|
-
!M &&
|
|
4688
|
+
const L = (m) => {
|
|
4689
|
+
!M && m === -1 || !z && m === 1 || (r(12, N = !0), r(8, f = []), window.postMessage(
|
|
4711
4690
|
{
|
|
4712
4691
|
type: "TournamentsLoadMoreGames",
|
|
4713
4692
|
id: c.id,
|
|
4714
|
-
isNext:
|
|
4693
|
+
isNext: m > 0
|
|
4715
4694
|
},
|
|
4716
4695
|
window.location.href
|
|
4717
4696
|
));
|
|
4718
|
-
},
|
|
4719
|
-
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, z = c.games?.total > c.games?.items.length),
|
|
4720
|
-
const
|
|
4721
|
-
if (
|
|
4697
|
+
}, ut = () => {
|
|
4698
|
+
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, z = c.games?.total > c.games?.items.length), ht();
|
|
4699
|
+
const m = c.metadata?.sports?.rules;
|
|
4700
|
+
if (m) {
|
|
4722
4701
|
r(6, u = c.wallet.casino ? "casino" : "sports");
|
|
4723
4702
|
try {
|
|
4724
|
-
const R = JSON.parse(
|
|
4703
|
+
const R = JSON.parse(m);
|
|
4725
4704
|
r(7, h = R[l] || R["*"]);
|
|
4726
4705
|
} catch (R) {
|
|
4727
4706
|
console.error("Error parsing tournament rules", R);
|
|
4728
4707
|
}
|
|
4729
4708
|
}
|
|
4730
|
-
},
|
|
4731
|
-
if (!
|
|
4709
|
+
}, lt = (m) => {
|
|
4710
|
+
if (!m.data || !m.data.type)
|
|
4732
4711
|
return;
|
|
4733
|
-
const R =
|
|
4734
|
-
switch (
|
|
4712
|
+
const R = m.data.tid || "";
|
|
4713
|
+
switch (m.data.type) {
|
|
4735
4714
|
case "TournamentsTabSwitch":
|
|
4736
|
-
R ===
|
|
4715
|
+
R === nt && r(6, u = m.data.tab);
|
|
4737
4716
|
break;
|
|
4738
4717
|
case "TournamentsTabListenerLoaded":
|
|
4739
4718
|
w();
|
|
4740
4719
|
break;
|
|
4741
4720
|
case "TournamentsGamesUpdate":
|
|
4742
|
-
r(3, c =
|
|
4721
|
+
r(3, c = m.data.details), ut();
|
|
4743
4722
|
break;
|
|
4744
4723
|
case "TournamentsLoadedMoreGames":
|
|
4745
|
-
A ?
|
|
4724
|
+
A ? m.data.games?.items.length && (r(8, f = [...f, ...m.data.games.items]), ht()) : (r(12, N = !1), r(8, f = [...m.data.games.items]), r(11, z = m.data.hasNextPage), r(10, M = m.data.hasPreviousPage), r(9, _ = !f.length));
|
|
4746
4725
|
break;
|
|
4747
4726
|
default:
|
|
4748
|
-
console.warn(`Unhandled message type: ${
|
|
4727
|
+
console.warn(`Unhandled message type: ${m.data.type}`);
|
|
4749
4728
|
break;
|
|
4750
4729
|
}
|
|
4751
4730
|
};
|
|
4752
4731
|
let Z;
|
|
4753
|
-
const
|
|
4754
|
-
Z =
|
|
4755
|
-
R.forEach((
|
|
4756
|
-
|
|
4732
|
+
const Tr = (m) => {
|
|
4733
|
+
Z = m?.lastElementChild, !(!A || S || !m || !Z) && (S = new IntersectionObserver((R) => {
|
|
4734
|
+
R.forEach((Br) => {
|
|
4735
|
+
Br.isIntersecting && (S.unobserve(Z), window.postMessage(
|
|
4757
4736
|
{
|
|
4758
4737
|
type: "TournamentsLoadMoreGames",
|
|
4759
4738
|
id: c.id,
|
|
@@ -4763,39 +4742,39 @@ function mo(e, t, r) {
|
|
|
4763
4742
|
));
|
|
4764
4743
|
});
|
|
4765
4744
|
}));
|
|
4766
|
-
},
|
|
4767
|
-
!A || !Z || !
|
|
4745
|
+
}, ht = () => {
|
|
4746
|
+
!A || !Z || !S || !f.length || (S.unobserve(Z), Z = g.lastElementChild, S.observe(Z));
|
|
4768
4747
|
};
|
|
4769
|
-
|
|
4748
|
+
Gr(() => A && S && S.disconnect()), Rr(() => (window.postMessage(
|
|
4770
4749
|
{
|
|
4771
4750
|
type: "TournamentsGamesListenerLoaded",
|
|
4772
|
-
gamesTabTid:
|
|
4751
|
+
gamesTabTid: nt
|
|
4773
4752
|
},
|
|
4774
4753
|
window.location.href
|
|
4775
|
-
), window.addEventListener("message",
|
|
4776
|
-
window.removeEventListener("message",
|
|
4754
|
+
), window.addEventListener("message", lt, !1), () => {
|
|
4755
|
+
window.removeEventListener("message", lt);
|
|
4777
4756
|
}));
|
|
4778
|
-
function
|
|
4779
|
-
we[
|
|
4780
|
-
g =
|
|
4757
|
+
function Sr(m) {
|
|
4758
|
+
we[m ? "unshift" : "push"](() => {
|
|
4759
|
+
g = m, r(5, g);
|
|
4781
4760
|
});
|
|
4782
4761
|
}
|
|
4783
|
-
function
|
|
4784
|
-
we[
|
|
4785
|
-
b =
|
|
4762
|
+
function Hr(m) {
|
|
4763
|
+
we[m ? "unshift" : "push"](() => {
|
|
4764
|
+
b = m, r(4, b);
|
|
4786
4765
|
});
|
|
4787
4766
|
}
|
|
4788
|
-
return e.$$set = (
|
|
4789
|
-
"clientstyling" in
|
|
4767
|
+
return e.$$set = (m) => {
|
|
4768
|
+
"clientstyling" in m && r(0, i = m.clientstyling), "clientstylingurl" in m && r(1, o = m.clientstylingurl), "mbsource" in m && r(2, s = m.mbsource), "translationurl" in m && r(17, a = m.translationurl), "lang" in m && r(18, l = m.lang);
|
|
4790
4769
|
}, e.$$.update = () => {
|
|
4791
4770
|
e.$$.dirty[0] & /*tournamentdetails*/
|
|
4792
|
-
8 && c &&
|
|
4793
|
-
262144 && l &&
|
|
4794
|
-
131072 && a &&
|
|
4795
|
-
17 && i && b &&
|
|
4796
|
-
18 && o && b &&
|
|
4797
|
-
20 && s && b &&
|
|
4798
|
-
32 && g &&
|
|
4771
|
+
8 && c && ut(), e.$$.dirty[0] & /*lang*/
|
|
4772
|
+
262144 && l && B(), e.$$.dirty[0] & /*translationurl*/
|
|
4773
|
+
131072 && a && p(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4774
|
+
17 && i && b && qr(b, i), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4775
|
+
18 && o && b && Yr(b, o), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4776
|
+
20 && s && b && Kr(b, `${s}.Style`), e.$$.dirty[0] & /*gameListEle*/
|
|
4777
|
+
32 && g && Tr(g);
|
|
4799
4778
|
}, [
|
|
4800
4779
|
i,
|
|
4801
4780
|
o,
|
|
@@ -4816,18 +4795,18 @@ function mo(e, t, r) {
|
|
|
4816
4795
|
L,
|
|
4817
4796
|
a,
|
|
4818
4797
|
l,
|
|
4819
|
-
|
|
4820
|
-
|
|
4798
|
+
Sr,
|
|
4799
|
+
Hr
|
|
4821
4800
|
];
|
|
4822
4801
|
}
|
|
4823
|
-
class
|
|
4802
|
+
class mo extends Qr {
|
|
4824
4803
|
constructor(t) {
|
|
4825
|
-
super(),
|
|
4804
|
+
super(), zr(
|
|
4826
4805
|
this,
|
|
4827
4806
|
t,
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4807
|
+
fo,
|
|
4808
|
+
co,
|
|
4809
|
+
jt,
|
|
4831
4810
|
{
|
|
4832
4811
|
clientstyling: 0,
|
|
4833
4812
|
clientstylingurl: 1,
|
|
@@ -4835,7 +4814,7 @@ class bo extends Jr {
|
|
|
4835
4814
|
translationurl: 17,
|
|
4836
4815
|
lang: 18
|
|
4837
4816
|
},
|
|
4838
|
-
|
|
4817
|
+
oo,
|
|
4839
4818
|
[-1, -1]
|
|
4840
4819
|
);
|
|
4841
4820
|
}
|
|
@@ -4870,7 +4849,7 @@ class bo extends Jr {
|
|
|
4870
4849
|
this.$$set({ lang: t }), Q();
|
|
4871
4850
|
}
|
|
4872
4851
|
}
|
|
4873
|
-
|
|
4852
|
+
Zr(mo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
4874
4853
|
export {
|
|
4875
|
-
|
|
4854
|
+
mo as C
|
|
4876
4855
|
};
|