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