@everymatrix/casino-jackpot-banner 1.62.0 → 1.62.2
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/{CasinoJackpotBanner-DwU8pcrc.js → CasinoJackpotBanner-CnytcBLZ.js} +796 -775
- package/components/{CasinoJackpotBanner-Dft_vosS.js → CasinoJackpotBanner-D9C488wZ.js} +785 -764
- package/components/CasinoJackpotBanner-DCF8nNV4.cjs +18 -0
- package/es2015/casino-jackpot-banner.cjs +1 -1
- package/es2015/casino-jackpot-banner.js +1 -1
- package/esnext/casino-jackpot-banner.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-B8yQdy7J.js +542 -0
- package/stencil/index-97d17652-C616IYj2.js +558 -0
- package/stencil/index-97d17652-C9Ph2JiE.cjs +1 -0
- package/stencil/ui-image-7da92f1f-26DzsVFt.js +39 -0
- package/stencil/ui-image-7da92f1f-BAghvEDf.js +39 -0
- package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +1 -0
- package/stencil/ui-image-Bz0nQwNJ.cjs +1 -0
- package/stencil/ui-image-DX8NqsyA.js +25 -0
- package/stencil/ui-image-o9dMcntc.js +7 -0
- package/stencil/ui-image_2-BXgptLvl.js +154 -0
- package/stencil/ui-image_2-Cctik3aF.cjs +73 -0
- package/stencil/ui-image_2-Cyqb4u7k.js +154 -0
- package/components/CasinoJackpotBanner-B5M6ErSR.cjs +0 -18
- package/stencil/index-b7bbd57e-6KaMTlNN.js +0 -534
- package/stencil/index-b7bbd57e-BSagye0B.js +0 -550
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +0 -1
- package/stencil/ui-image-38c3c15f-CumwWbNu.js +0 -39
- package/stencil/ui-image-38c3c15f-Dxl-aZb-.js +0 -39
- package/stencil/ui-image-38c3c15f-y5t5ZLG0.cjs +0 -1
- package/stencil/ui-image-BQa5UbqU.js +0 -11
- package/stencil/ui-image-Bi4jDe3D.js +0 -29
- package/stencil/ui-image-z441BZiX.cjs +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-o9dMcntc.js";
|
|
2
2
|
function k() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function mr(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function $t() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function Ge(e) {
|
|
11
|
+
e.forEach(mr);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Dt(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function br(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let ze;
|
|
20
|
-
function
|
|
20
|
+
function G(e, t) {
|
|
21
21
|
return e === t ? !0 : (ze || (ze = document.createElement("a")), ze.href = t, e === ze.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Zr(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Qr(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -35,14 +35,14 @@ function Zr(e, ...t) {
|
|
|
35
35
|
function d(e, t) {
|
|
36
36
|
e.appendChild(t);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const n =
|
|
38
|
+
function Yr(e, t, r) {
|
|
39
|
+
const n = qr(e);
|
|
40
40
|
if (!n.getElementById(t)) {
|
|
41
41
|
const i = b("style");
|
|
42
|
-
i.id = t, i.textContent = r,
|
|
42
|
+
i.id = t, i.textContent = r, Kr(n, i);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function qr(e) {
|
|
46
46
|
if (!e)
|
|
47
47
|
return document;
|
|
48
48
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -52,20 +52,20 @@ function Yr(e) {
|
|
|
52
52
|
t
|
|
53
53
|
) : e.ownerDocument;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Kr(e, t) {
|
|
56
56
|
return d(
|
|
57
57
|
/** @type {Document} */
|
|
58
58
|
e.head || e,
|
|
59
59
|
t
|
|
60
60
|
), t.sheet;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ee(e, t, r) {
|
|
63
63
|
e.insertBefore(t, r || null);
|
|
64
64
|
}
|
|
65
65
|
function W(e) {
|
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function en(e, t) {
|
|
69
69
|
for (let r = 0; r < e.length; r += 1)
|
|
70
70
|
e[r] && e[r].d(t);
|
|
71
71
|
}
|
|
@@ -78,20 +78,20 @@ function M(e) {
|
|
|
78
78
|
function q() {
|
|
79
79
|
return M(" ");
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function tn() {
|
|
82
82
|
return M("");
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function rn(e, t, r, n) {
|
|
85
85
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
86
86
|
}
|
|
87
87
|
function v(e, t, r) {
|
|
88
88
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function P(e, t, r) {
|
|
91
91
|
const n = t.toLowerCase();
|
|
92
92
|
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);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function nn(e) {
|
|
95
95
|
return Array.from(e.childNodes);
|
|
96
96
|
}
|
|
97
97
|
function D(e, t) {
|
|
@@ -101,7 +101,7 @@ function D(e, t) {
|
|
|
101
101
|
function Je(e, t, r, n) {
|
|
102
102
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function on(e) {
|
|
105
105
|
const t = {};
|
|
106
106
|
return e.childNodes.forEach(
|
|
107
107
|
/** @param {Element} node */
|
|
@@ -110,93 +110,93 @@ function nn(e) {
|
|
|
110
110
|
}
|
|
111
111
|
), t;
|
|
112
112
|
}
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
113
|
+
let De;
|
|
114
|
+
function Ue(e) {
|
|
115
|
+
De = e;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
if (!
|
|
117
|
+
function gr() {
|
|
118
|
+
if (!De)
|
|
119
119
|
throw new Error("Function called outside component initialization");
|
|
120
|
-
return
|
|
121
|
-
}
|
|
122
|
-
function on(e) {
|
|
123
|
-
mr().$$.on_mount.push(e);
|
|
120
|
+
return De;
|
|
124
121
|
}
|
|
125
122
|
function sn(e) {
|
|
126
|
-
|
|
123
|
+
gr().$$.on_mount.push(e);
|
|
127
124
|
}
|
|
128
|
-
|
|
125
|
+
function an(e) {
|
|
126
|
+
gr().$$.on_destroy.push(e);
|
|
127
|
+
}
|
|
128
|
+
const Se = [], _t = [];
|
|
129
129
|
let Te = [];
|
|
130
|
-
const
|
|
131
|
-
let
|
|
132
|
-
function
|
|
133
|
-
|
|
130
|
+
const Ft = [], un = /* @__PURE__ */ Promise.resolve();
|
|
131
|
+
let Et = !1;
|
|
132
|
+
function ln() {
|
|
133
|
+
Et || (Et = !0, un.then(L));
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function xt(e) {
|
|
136
136
|
Te.push(e);
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const ft = /* @__PURE__ */ new Set();
|
|
139
139
|
let Ee = 0;
|
|
140
140
|
function L() {
|
|
141
141
|
if (Ee !== 0)
|
|
142
142
|
return;
|
|
143
|
-
const e =
|
|
143
|
+
const e = De;
|
|
144
144
|
do {
|
|
145
145
|
try {
|
|
146
146
|
for (; Ee < Se.length; ) {
|
|
147
147
|
const t = Se[Ee];
|
|
148
|
-
Ee++,
|
|
148
|
+
Ee++, Ue(t), hn(t.$$);
|
|
149
149
|
}
|
|
150
150
|
} catch (t) {
|
|
151
151
|
throw Se.length = 0, Ee = 0, t;
|
|
152
152
|
}
|
|
153
|
-
for (
|
|
154
|
-
|
|
153
|
+
for (Ue(null), Se.length = 0, Ee = 0; _t.length; )
|
|
154
|
+
_t.pop()();
|
|
155
155
|
for (let t = 0; t < Te.length; t += 1) {
|
|
156
156
|
const r = Te[t];
|
|
157
|
-
|
|
157
|
+
ft.has(r) || (ft.add(r), r());
|
|
158
158
|
}
|
|
159
159
|
Te.length = 0;
|
|
160
160
|
} while (Se.length);
|
|
161
|
-
for (;
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
for (; Ft.length; )
|
|
162
|
+
Ft.pop()();
|
|
163
|
+
Et = !1, ft.clear(), Ue(e);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function hn(e) {
|
|
166
166
|
if (e.fragment !== null) {
|
|
167
|
-
e.update(),
|
|
167
|
+
e.update(), Ge(e.before_update);
|
|
168
168
|
const t = e.dirty;
|
|
169
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
169
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(xt);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function cn(e) {
|
|
173
173
|
const t = [], r = [];
|
|
174
174
|
Te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Te = t;
|
|
175
175
|
}
|
|
176
|
-
const
|
|
177
|
-
function
|
|
178
|
-
e && e.i && (
|
|
176
|
+
const fn = /* @__PURE__ */ new Set();
|
|
177
|
+
function pn(e, t) {
|
|
178
|
+
e && e.i && (fn.delete(e), e.i(t));
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Vt(e) {
|
|
181
181
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function dn(e, t, r) {
|
|
184
184
|
const { fragment: n, after_update: i } = e.$$;
|
|
185
|
-
n && n.m(t, r),
|
|
186
|
-
const o = e.$$.on_mount.map(
|
|
187
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
188
|
-
}), i.forEach(
|
|
185
|
+
n && n.m(t, r), xt(() => {
|
|
186
|
+
const o = e.$$.on_mount.map(mr).filter(Dt);
|
|
187
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ge(o), e.$$.on_mount = [];
|
|
188
|
+
}), i.forEach(xt);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function mn(e, t) {
|
|
191
191
|
const r = e.$$;
|
|
192
|
-
r.fragment !== null && (
|
|
192
|
+
r.fragment !== null && (cn(r.after_update), Ge(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
e.$$.dirty[0] === -1 && (Se.push(e),
|
|
194
|
+
function bn(e, t) {
|
|
195
|
+
e.$$.dirty[0] === -1 && (Se.push(e), ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
const l =
|
|
199
|
-
|
|
197
|
+
function gn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
198
|
+
const l = De;
|
|
199
|
+
Ue(e);
|
|
200
200
|
const u = e.$$ = {
|
|
201
201
|
fragment: null,
|
|
202
202
|
ctx: [],
|
|
@@ -204,7 +204,7 @@ function bn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
204
204
|
props: o,
|
|
205
205
|
update: k,
|
|
206
206
|
not_equal: i,
|
|
207
|
-
bound:
|
|
207
|
+
bound: $t(),
|
|
208
208
|
// lifecycle
|
|
209
209
|
on_mount: [],
|
|
210
210
|
on_destroy: [],
|
|
@@ -213,7 +213,7 @@ function bn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
213
213
|
after_update: [],
|
|
214
214
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
215
215
|
// everything else
|
|
216
|
-
callbacks:
|
|
216
|
+
callbacks: $t(),
|
|
217
217
|
dirty: a,
|
|
218
218
|
skip_bound: !1,
|
|
219
219
|
root: t.target || l.$$.root
|
|
@@ -222,19 +222,19 @@ function bn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
222
222
|
let h = !1;
|
|
223
223
|
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...g) => {
|
|
224
224
|
const y = g.length ? g[0] : p;
|
|
225
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h &&
|
|
226
|
-
}) : [], u.update(), h = !0,
|
|
225
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && bn(e, c)), p;
|
|
226
|
+
}) : [], u.update(), h = !0, Ge(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
227
227
|
if (t.hydrate) {
|
|
228
|
-
const c =
|
|
228
|
+
const c = nn(t.target);
|
|
229
229
|
u.fragment && u.fragment.l(c), c.forEach(W);
|
|
230
230
|
} else
|
|
231
231
|
u.fragment && u.fragment.c();
|
|
232
|
-
t.intro &&
|
|
232
|
+
t.intro && pn(e.$$.fragment), dn(e, t.target, t.anchor), L();
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
Ue(l);
|
|
235
235
|
}
|
|
236
|
-
let
|
|
237
|
-
typeof HTMLElement == "function" && (
|
|
236
|
+
let yr;
|
|
237
|
+
typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
238
238
|
/** The Svelte component constructor */
|
|
239
239
|
$$ctor;
|
|
240
240
|
/** Slots */
|
|
@@ -283,7 +283,7 @@ typeof HTMLElement == "function" && (br = class extends HTMLElement {
|
|
|
283
283
|
* @param {HTMLElement} [anchor]
|
|
284
284
|
*/
|
|
285
285
|
m: function(l, u) {
|
|
286
|
-
|
|
286
|
+
ee(l, o, u);
|
|
287
287
|
},
|
|
288
288
|
d: function(l) {
|
|
289
289
|
l && W(o);
|
|
@@ -293,7 +293,7 @@ typeof HTMLElement == "function" && (br = class extends HTMLElement {
|
|
|
293
293
|
};
|
|
294
294
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
295
295
|
return;
|
|
296
|
-
const t = {}, r =
|
|
296
|
+
const t = {}, r = on(this);
|
|
297
297
|
for (const i of this.$$s)
|
|
298
298
|
i in r && (t[i] = [e(i)]);
|
|
299
299
|
for (const i of this.attributes) {
|
|
@@ -380,8 +380,8 @@ function Ye(e, t, r, n) {
|
|
|
380
380
|
return t;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
let s = class extends
|
|
383
|
+
function yn(e, t, r, n, i, o) {
|
|
384
|
+
let s = class extends yr {
|
|
385
385
|
constructor() {
|
|
386
386
|
super(e, r, i), this.$$p_d = t;
|
|
387
387
|
}
|
|
@@ -409,7 +409,7 @@ function gn(e, t, r, n, i, o) {
|
|
|
409
409
|
}), e.element = /** @type {any} */
|
|
410
410
|
s, s;
|
|
411
411
|
}
|
|
412
|
-
class
|
|
412
|
+
class vn {
|
|
413
413
|
/**
|
|
414
414
|
* ### PRIVATE API
|
|
415
415
|
*
|
|
@@ -428,7 +428,7 @@ class yn {
|
|
|
428
428
|
$$set = void 0;
|
|
429
429
|
/** @returns {void} */
|
|
430
430
|
$destroy() {
|
|
431
|
-
|
|
431
|
+
mn(this, 1), this.$destroy = k;
|
|
432
432
|
}
|
|
433
433
|
/**
|
|
434
434
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -437,7 +437,7 @@ class yn {
|
|
|
437
437
|
* @returns {() => void}
|
|
438
438
|
*/
|
|
439
439
|
$on(t, r) {
|
|
440
|
-
if (!
|
|
440
|
+
if (!Dt(r))
|
|
441
441
|
return k;
|
|
442
442
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
443
443
|
return n.push(r), () => {
|
|
@@ -450,11 +450,11 @@ class yn {
|
|
|
450
450
|
* @returns {void}
|
|
451
451
|
*/
|
|
452
452
|
$set(t) {
|
|
453
|
-
this.$$set && !
|
|
453
|
+
this.$$set && !Zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
const
|
|
457
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
456
|
+
const _n = "4";
|
|
457
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_n);
|
|
458
458
|
/*! *****************************************************************************
|
|
459
459
|
Copyright (c) Microsoft Corporation.
|
|
460
460
|
|
|
@@ -469,43 +469,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
469
469
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
470
470
|
PERFORMANCE OF THIS SOFTWARE.
|
|
471
471
|
***************************************************************************** */
|
|
472
|
-
var
|
|
473
|
-
return
|
|
472
|
+
var St = function(e, t) {
|
|
473
|
+
return St = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
474
474
|
r.__proto__ = n;
|
|
475
475
|
} || function(r, n) {
|
|
476
476
|
for (var i in n)
|
|
477
477
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
478
|
-
},
|
|
478
|
+
}, St(e, t);
|
|
479
479
|
};
|
|
480
|
-
function
|
|
480
|
+
function $e(e, t) {
|
|
481
481
|
if (typeof t != "function" && t !== null)
|
|
482
482
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
483
|
-
|
|
483
|
+
St(e, t);
|
|
484
484
|
function r() {
|
|
485
485
|
this.constructor = e;
|
|
486
486
|
}
|
|
487
487
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
488
488
|
}
|
|
489
|
-
|
|
490
|
-
return T = Object.assign || function(t) {
|
|
491
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
492
|
-
r = arguments[n];
|
|
493
|
-
for (var o in r)
|
|
494
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
495
|
-
}
|
|
496
|
-
return t;
|
|
497
|
-
}, T.apply(this, arguments);
|
|
498
|
-
};
|
|
499
|
-
function _n(e, t) {
|
|
500
|
-
var r = {};
|
|
501
|
-
for (var n in e)
|
|
502
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
503
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
504
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
505
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
506
|
-
return r;
|
|
507
|
-
}
|
|
508
|
-
function xt(e) {
|
|
489
|
+
function Tt(e) {
|
|
509
490
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
510
491
|
if (r)
|
|
511
492
|
return r.call(e);
|
|
@@ -517,7 +498,7 @@ function xt(e) {
|
|
|
517
498
|
};
|
|
518
499
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
519
500
|
}
|
|
520
|
-
function
|
|
501
|
+
function wt(e, t) {
|
|
521
502
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
522
503
|
if (!r)
|
|
523
504
|
return e;
|
|
@@ -537,22 +518,22 @@ function St(e, t) {
|
|
|
537
518
|
}
|
|
538
519
|
return o;
|
|
539
520
|
}
|
|
540
|
-
function
|
|
541
|
-
if (
|
|
521
|
+
function Ht(e, t, r) {
|
|
522
|
+
if (arguments.length === 2)
|
|
542
523
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
543
524
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
544
525
|
return e.concat(o || t);
|
|
545
526
|
}
|
|
546
|
-
function
|
|
527
|
+
function re(e) {
|
|
547
528
|
return typeof e == "function";
|
|
548
529
|
}
|
|
549
|
-
function
|
|
530
|
+
function vr(e) {
|
|
550
531
|
var t = function(n) {
|
|
551
532
|
Error.call(n), n.stack = new Error().stack;
|
|
552
533
|
}, r = e(t);
|
|
553
534
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
554
535
|
}
|
|
555
|
-
var
|
|
536
|
+
var pt = vr(function(e) {
|
|
556
537
|
return function(r) {
|
|
557
538
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
558
539
|
` + r.map(function(n, i) {
|
|
@@ -561,13 +542,13 @@ var ct = gr(function(e) {
|
|
|
561
542
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
562
543
|
};
|
|
563
544
|
});
|
|
564
|
-
function
|
|
545
|
+
function At(e, t) {
|
|
565
546
|
if (e) {
|
|
566
547
|
var r = e.indexOf(t);
|
|
567
548
|
0 <= r && e.splice(r, 1);
|
|
568
549
|
}
|
|
569
550
|
}
|
|
570
|
-
var
|
|
551
|
+
var it = function() {
|
|
571
552
|
function e(t) {
|
|
572
553
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
573
554
|
}
|
|
@@ -579,7 +560,7 @@ var nt = function() {
|
|
|
579
560
|
if (s)
|
|
580
561
|
if (this._parentage = null, Array.isArray(s))
|
|
581
562
|
try {
|
|
582
|
-
for (var a =
|
|
563
|
+
for (var a = Tt(s), l = a.next(); !l.done; l = a.next()) {
|
|
583
564
|
var u = l.value;
|
|
584
565
|
u.remove(this);
|
|
585
566
|
}
|
|
@@ -596,22 +577,22 @@ var nt = function() {
|
|
|
596
577
|
else
|
|
597
578
|
s.remove(this);
|
|
598
579
|
var h = this.initialTeardown;
|
|
599
|
-
if (
|
|
580
|
+
if (re(h))
|
|
600
581
|
try {
|
|
601
582
|
h();
|
|
602
583
|
} catch (m) {
|
|
603
|
-
o = m instanceof
|
|
584
|
+
o = m instanceof pt ? m.errors : [m];
|
|
604
585
|
}
|
|
605
586
|
var c = this._finalizers;
|
|
606
587
|
if (c) {
|
|
607
588
|
this._finalizers = null;
|
|
608
589
|
try {
|
|
609
|
-
for (var p =
|
|
590
|
+
for (var p = Tt(c), g = p.next(); !g.done; g = p.next()) {
|
|
610
591
|
var y = g.value;
|
|
611
592
|
try {
|
|
612
|
-
|
|
593
|
+
Wt(y);
|
|
613
594
|
} catch (m) {
|
|
614
|
-
o = o ?? [], m instanceof
|
|
595
|
+
o = o ?? [], m instanceof pt ? o = Ht(Ht([], wt(o)), wt(m.errors)) : o.push(m);
|
|
615
596
|
}
|
|
616
597
|
}
|
|
617
598
|
} catch (m) {
|
|
@@ -626,13 +607,13 @@ var nt = function() {
|
|
|
626
607
|
}
|
|
627
608
|
}
|
|
628
609
|
if (o)
|
|
629
|
-
throw new
|
|
610
|
+
throw new pt(o);
|
|
630
611
|
}
|
|
631
612
|
}, e.prototype.add = function(t) {
|
|
632
613
|
var r;
|
|
633
614
|
if (t && t !== this)
|
|
634
615
|
if (this.closed)
|
|
635
|
-
|
|
616
|
+
Wt(t);
|
|
636
617
|
else {
|
|
637
618
|
if (t instanceof e) {
|
|
638
619
|
if (t.closed || t._hasParent(this))
|
|
@@ -649,56 +630,52 @@ var nt = function() {
|
|
|
649
630
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
650
631
|
}, e.prototype._removeParent = function(t) {
|
|
651
632
|
var r = this._parentage;
|
|
652
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
633
|
+
r === t ? this._parentage = null : Array.isArray(r) && At(r, t);
|
|
653
634
|
}, e.prototype.remove = function(t) {
|
|
654
635
|
var r = this._finalizers;
|
|
655
|
-
r &&
|
|
636
|
+
r && At(r, t), t instanceof e && t._removeParent(this);
|
|
656
637
|
}, e.EMPTY = function() {
|
|
657
638
|
var t = new e();
|
|
658
639
|
return t.closed = !0, t;
|
|
659
640
|
}(), e;
|
|
660
|
-
}(),
|
|
661
|
-
function
|
|
662
|
-
return e instanceof
|
|
663
|
-
}
|
|
664
|
-
function
|
|
665
|
-
|
|
666
|
-
}
|
|
667
|
-
var
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
Promise: void 0,
|
|
671
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
672
|
-
useDeprecatedNextContext: !1
|
|
673
|
-
}, En = {
|
|
641
|
+
}(), _r = it.EMPTY;
|
|
642
|
+
function Er(e) {
|
|
643
|
+
return e instanceof it || e && "closed" in e && re(e.remove) && re(e.add) && re(e.unsubscribe);
|
|
644
|
+
}
|
|
645
|
+
function Wt(e) {
|
|
646
|
+
re(e) ? e() : e.unsubscribe();
|
|
647
|
+
}
|
|
648
|
+
var En = {
|
|
649
|
+
Promise: void 0
|
|
650
|
+
}, xn = {
|
|
674
651
|
setTimeout: function(e, t) {
|
|
675
652
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
676
653
|
r[n - 2] = arguments[n];
|
|
677
|
-
return setTimeout.apply(void 0,
|
|
654
|
+
return setTimeout.apply(void 0, Ht([e, t], wt(r)));
|
|
678
655
|
},
|
|
679
656
|
clearTimeout: function(e) {
|
|
680
657
|
return clearTimeout(e);
|
|
681
658
|
},
|
|
682
659
|
delegate: void 0
|
|
683
660
|
};
|
|
684
|
-
function
|
|
685
|
-
|
|
661
|
+
function Sn(e) {
|
|
662
|
+
xn.setTimeout(function() {
|
|
686
663
|
throw e;
|
|
687
664
|
});
|
|
688
665
|
}
|
|
689
|
-
function
|
|
666
|
+
function Xt() {
|
|
690
667
|
}
|
|
691
668
|
function qe(e) {
|
|
692
669
|
e();
|
|
693
670
|
}
|
|
694
|
-
var
|
|
695
|
-
|
|
671
|
+
var xr = function(e) {
|
|
672
|
+
$e(t, e);
|
|
696
673
|
function t(r) {
|
|
697
674
|
var n = e.call(this) || this;
|
|
698
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
675
|
+
return n.isStopped = !1, r ? (n.destination = r, Er(r) && r.add(n)) : n.destination = Hn, n;
|
|
699
676
|
}
|
|
700
677
|
return t.create = function(r, n, i) {
|
|
701
|
-
return new
|
|
678
|
+
return new Bt(r, n, i);
|
|
702
679
|
}, t.prototype.next = function(r) {
|
|
703
680
|
this.isStopped || this._next(r);
|
|
704
681
|
}, t.prototype.error = function(r) {
|
|
@@ -722,11 +699,7 @@ var Er = function(e) {
|
|
|
722
699
|
this.unsubscribe();
|
|
723
700
|
}
|
|
724
701
|
}, t;
|
|
725
|
-
}(
|
|
726
|
-
function ft(e, t) {
|
|
727
|
-
return Sn.call(e, t);
|
|
728
|
-
}
|
|
729
|
-
var Tn = function() {
|
|
702
|
+
}(it), Tn = function() {
|
|
730
703
|
function e(t) {
|
|
731
704
|
this.partialObserver = t;
|
|
732
705
|
}
|
|
@@ -757,41 +730,29 @@ var Tn = function() {
|
|
|
757
730
|
Ze(r);
|
|
758
731
|
}
|
|
759
732
|
}, e;
|
|
760
|
-
}(),
|
|
761
|
-
|
|
733
|
+
}(), Bt = function(e) {
|
|
734
|
+
$e(t, e);
|
|
762
735
|
function t(r, n, i) {
|
|
763
736
|
var o = e.call(this) || this, s;
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
};
|
|
770
|
-
else {
|
|
771
|
-
var a;
|
|
772
|
-
o && _r.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
773
|
-
return o.unsubscribe();
|
|
774
|
-
}, s = {
|
|
775
|
-
next: r.next && ft(r.next, a),
|
|
776
|
-
error: r.error && ft(r.error, a),
|
|
777
|
-
complete: r.complete && ft(r.complete, a)
|
|
778
|
-
}) : s = r;
|
|
779
|
-
}
|
|
780
|
-
return o.destination = new Tn(s), o;
|
|
737
|
+
return re(r) || !r ? s = {
|
|
738
|
+
next: r ?? void 0,
|
|
739
|
+
error: n ?? void 0,
|
|
740
|
+
complete: i ?? void 0
|
|
741
|
+
} : s = r, o.destination = new Tn(s), o;
|
|
781
742
|
}
|
|
782
743
|
return t;
|
|
783
|
-
}(
|
|
744
|
+
}(xr);
|
|
784
745
|
function Ze(e) {
|
|
785
|
-
|
|
746
|
+
Sn(e);
|
|
786
747
|
}
|
|
787
748
|
function wn(e) {
|
|
788
749
|
throw e;
|
|
789
750
|
}
|
|
790
751
|
var Hn = {
|
|
791
752
|
closed: !0,
|
|
792
|
-
next:
|
|
753
|
+
next: Xt,
|
|
793
754
|
error: wn,
|
|
794
|
-
complete:
|
|
755
|
+
complete: Xt
|
|
795
756
|
}, An = function() {
|
|
796
757
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
797
758
|
}();
|
|
@@ -805,7 +766,7 @@ function Pn(e) {
|
|
|
805
766
|
}, r);
|
|
806
767
|
};
|
|
807
768
|
}
|
|
808
|
-
var
|
|
769
|
+
var zt = function() {
|
|
809
770
|
function e(t) {
|
|
810
771
|
t && (this._subscribe = t);
|
|
811
772
|
}
|
|
@@ -813,7 +774,7 @@ var Wt = function() {
|
|
|
813
774
|
var r = new e();
|
|
814
775
|
return r.source = this, r.operator = t, r;
|
|
815
776
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
816
|
-
var i = this, o = Ln(t) ? t : new
|
|
777
|
+
var i = this, o = Ln(t) ? t : new Bt(t, r, n);
|
|
817
778
|
return qe(function() {
|
|
818
779
|
var s = i, a = s.operator, l = s.source;
|
|
819
780
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -826,8 +787,8 @@ var Wt = function() {
|
|
|
826
787
|
}
|
|
827
788
|
}, e.prototype.forEach = function(t, r) {
|
|
828
789
|
var n = this;
|
|
829
|
-
return r =
|
|
830
|
-
var s = new
|
|
790
|
+
return r = Jt(r), new r(function(i, o) {
|
|
791
|
+
var s = new Bt({
|
|
831
792
|
next: function(a) {
|
|
832
793
|
try {
|
|
833
794
|
t(a);
|
|
@@ -851,7 +812,7 @@ var Wt = function() {
|
|
|
851
812
|
return Pn(t)(this);
|
|
852
813
|
}, e.prototype.toPromise = function(t) {
|
|
853
814
|
var r = this;
|
|
854
|
-
return t =
|
|
815
|
+
return t = Jt(t), new t(function(n, i) {
|
|
855
816
|
var o;
|
|
856
817
|
r.subscribe(function(s) {
|
|
857
818
|
return o = s;
|
|
@@ -865,32 +826,32 @@ var Wt = function() {
|
|
|
865
826
|
return new e(t);
|
|
866
827
|
}, e;
|
|
867
828
|
}();
|
|
868
|
-
function
|
|
829
|
+
function Jt(e) {
|
|
869
830
|
var t;
|
|
870
|
-
return (t = e ??
|
|
831
|
+
return (t = e ?? En.Promise) !== null && t !== void 0 ? t : Promise;
|
|
871
832
|
}
|
|
872
|
-
function
|
|
873
|
-
return e &&
|
|
833
|
+
function On(e) {
|
|
834
|
+
return e && re(e.next) && re(e.error) && re(e.complete);
|
|
874
835
|
}
|
|
875
836
|
function Ln(e) {
|
|
876
|
-
return e && e instanceof
|
|
837
|
+
return e && e instanceof xr || On(e) && Er(e);
|
|
877
838
|
}
|
|
878
|
-
var
|
|
839
|
+
var Cn = vr(function(e) {
|
|
879
840
|
return function() {
|
|
880
841
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
881
842
|
};
|
|
882
|
-
}),
|
|
883
|
-
|
|
843
|
+
}), Sr = function(e) {
|
|
844
|
+
$e(t, e);
|
|
884
845
|
function t() {
|
|
885
846
|
var r = e.call(this) || this;
|
|
886
847
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
887
848
|
}
|
|
888
849
|
return t.prototype.lift = function(r) {
|
|
889
|
-
var n = new
|
|
850
|
+
var n = new Zt(this, this);
|
|
890
851
|
return n.operator = r, n;
|
|
891
852
|
}, t.prototype._throwIfClosed = function() {
|
|
892
853
|
if (this.closed)
|
|
893
|
-
throw new
|
|
854
|
+
throw new Cn();
|
|
894
855
|
}, t.prototype.next = function(r) {
|
|
895
856
|
var n = this;
|
|
896
857
|
qe(function() {
|
|
@@ -898,7 +859,7 @@ var In = gr(function(e) {
|
|
|
898
859
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
899
860
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
900
861
|
try {
|
|
901
|
-
for (var s =
|
|
862
|
+
for (var s = Tt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
902
863
|
var l = a.value;
|
|
903
864
|
l.next(r);
|
|
904
865
|
}
|
|
@@ -947,20 +908,20 @@ var In = gr(function(e) {
|
|
|
947
908
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
948
909
|
}, t.prototype._innerSubscribe = function(r) {
|
|
949
910
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
950
|
-
return o || s ?
|
|
951
|
-
n.currentObservers = null,
|
|
911
|
+
return o || s ? _r : (this.currentObservers = null, a.push(r), new it(function() {
|
|
912
|
+
n.currentObservers = null, At(a, r);
|
|
952
913
|
}));
|
|
953
914
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
954
915
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
955
916
|
i ? r.error(o) : s && r.complete();
|
|
956
917
|
}, t.prototype.asObservable = function() {
|
|
957
|
-
var r = new
|
|
918
|
+
var r = new zt();
|
|
958
919
|
return r.source = this, r;
|
|
959
920
|
}, t.create = function(r, n) {
|
|
960
|
-
return new
|
|
921
|
+
return new Zt(r, n);
|
|
961
922
|
}, t;
|
|
962
|
-
}(
|
|
963
|
-
|
|
923
|
+
}(zt), Zt = function(e) {
|
|
924
|
+
$e(t, e);
|
|
964
925
|
function t(r, n) {
|
|
965
926
|
var i = e.call(this) || this;
|
|
966
927
|
return i.destination = r, i.source = n, i;
|
|
@@ -976,17 +937,17 @@ var In = gr(function(e) {
|
|
|
976
937
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
977
938
|
}, t.prototype._subscribe = function(r) {
|
|
978
939
|
var n, i;
|
|
979
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
940
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : _r;
|
|
980
941
|
}, t;
|
|
981
|
-
}(
|
|
942
|
+
}(Sr), Tr = {
|
|
982
943
|
now: function() {
|
|
983
|
-
return (
|
|
944
|
+
return (Tr.delegate || Date).now();
|
|
984
945
|
},
|
|
985
946
|
delegate: void 0
|
|
986
|
-
},
|
|
987
|
-
|
|
947
|
+
}, In = function(e) {
|
|
948
|
+
$e(t, e);
|
|
988
949
|
function t(r, n, i) {
|
|
989
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
950
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Tr);
|
|
990
951
|
var o = e.call(this) || this;
|
|
991
952
|
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;
|
|
992
953
|
}
|
|
@@ -1006,24 +967,24 @@ var In = gr(function(e) {
|
|
|
1006
967
|
u && o.splice(0, u + 1);
|
|
1007
968
|
}
|
|
1008
969
|
}, t;
|
|
1009
|
-
}(
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1012
|
-
const r = new
|
|
1013
|
-
|
|
970
|
+
}(Sr);
|
|
971
|
+
const Qt = [], Yt = {}, Nn = (e, t = 0) => {
|
|
972
|
+
if (Qt.indexOf(e) == -1) {
|
|
973
|
+
const r = new In(t);
|
|
974
|
+
Yt[e] = r, Qt.push(e);
|
|
1014
975
|
}
|
|
1015
|
-
return
|
|
976
|
+
return Yt[e];
|
|
1016
977
|
}, xe = [];
|
|
1017
978
|
function Mn(e, t) {
|
|
1018
979
|
return {
|
|
1019
|
-
subscribe:
|
|
980
|
+
subscribe: ot(e, t).subscribe
|
|
1020
981
|
};
|
|
1021
982
|
}
|
|
1022
|
-
function
|
|
983
|
+
function ot(e, t = k) {
|
|
1023
984
|
let r;
|
|
1024
985
|
const n = /* @__PURE__ */ new Set();
|
|
1025
986
|
function i(a) {
|
|
1026
|
-
if (
|
|
987
|
+
if (br(e, a) && (e = a, r)) {
|
|
1027
988
|
const l = !xe.length;
|
|
1028
989
|
for (const u of n)
|
|
1029
990
|
u[1](), xe.push(u, e);
|
|
@@ -1045,7 +1006,7 @@ function it(e, t = k) {
|
|
|
1045
1006
|
}
|
|
1046
1007
|
return { set: i, update: o, subscribe: s };
|
|
1047
1008
|
}
|
|
1048
|
-
function
|
|
1009
|
+
function Pe(e, t, r) {
|
|
1049
1010
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1050
1011
|
if (!i.every(Boolean))
|
|
1051
1012
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1059,9 +1020,9 @@ function Ce(e, t, r) {
|
|
|
1059
1020
|
return;
|
|
1060
1021
|
c();
|
|
1061
1022
|
const y = t(n ? u[0] : u, s, a);
|
|
1062
|
-
o ? s(y) : c =
|
|
1023
|
+
o ? s(y) : c = Dt(y) ? y : k;
|
|
1063
1024
|
}, g = i.map(
|
|
1064
|
-
(y, m) =>
|
|
1025
|
+
(y, m) => Qr(
|
|
1065
1026
|
y,
|
|
1066
1027
|
(_) => {
|
|
1067
1028
|
u[m] = _, h &= ~(1 << m), l && p();
|
|
@@ -1072,7 +1033,7 @@ function Ce(e, t, r) {
|
|
|
1072
1033
|
)
|
|
1073
1034
|
);
|
|
1074
1035
|
return l = !0, p(), function() {
|
|
1075
|
-
|
|
1036
|
+
Ge(g), c(), l = !1;
|
|
1076
1037
|
};
|
|
1077
1038
|
});
|
|
1078
1039
|
}
|
|
@@ -1080,45 +1041,45 @@ function Rn(e) {
|
|
|
1080
1041
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1081
1042
|
}
|
|
1082
1043
|
var Un = function(t) {
|
|
1083
|
-
return Dn(t) && !
|
|
1044
|
+
return Dn(t) && !jn(t);
|
|
1084
1045
|
};
|
|
1085
1046
|
function Dn(e) {
|
|
1086
1047
|
return !!e && typeof e == "object";
|
|
1087
1048
|
}
|
|
1088
|
-
function
|
|
1049
|
+
function jn(e) {
|
|
1089
1050
|
var t = Object.prototype.toString.call(e);
|
|
1090
1051
|
return t === "[object RegExp]" || t === "[object Date]" || $n(e);
|
|
1091
1052
|
}
|
|
1092
|
-
var kn = typeof Symbol == "function" && Symbol.for,
|
|
1053
|
+
var kn = typeof Symbol == "function" && Symbol.for, Gn = kn ? Symbol.for("react.element") : 60103;
|
|
1093
1054
|
function $n(e) {
|
|
1094
|
-
return e.$$typeof ===
|
|
1055
|
+
return e.$$typeof === Gn;
|
|
1095
1056
|
}
|
|
1096
1057
|
function Fn(e) {
|
|
1097
1058
|
return Array.isArray(e) ? [] : {};
|
|
1098
1059
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1060
|
+
function je(e, t) {
|
|
1061
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? we(Fn(e), e, t) : e;
|
|
1101
1062
|
}
|
|
1102
1063
|
function Vn(e, t, r) {
|
|
1103
1064
|
return e.concat(t).map(function(n) {
|
|
1104
|
-
return
|
|
1065
|
+
return je(n, r);
|
|
1105
1066
|
});
|
|
1106
1067
|
}
|
|
1107
1068
|
function Wn(e, t) {
|
|
1108
1069
|
if (!t.customMerge)
|
|
1109
|
-
return
|
|
1070
|
+
return we;
|
|
1110
1071
|
var r = t.customMerge(e);
|
|
1111
|
-
return typeof r == "function" ? r :
|
|
1072
|
+
return typeof r == "function" ? r : we;
|
|
1112
1073
|
}
|
|
1113
1074
|
function Xn(e) {
|
|
1114
1075
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1115
1076
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1116
1077
|
}) : [];
|
|
1117
1078
|
}
|
|
1118
|
-
function
|
|
1079
|
+
function qt(e) {
|
|
1119
1080
|
return Object.keys(e).concat(Xn(e));
|
|
1120
1081
|
}
|
|
1121
|
-
function
|
|
1082
|
+
function wr(e, t) {
|
|
1122
1083
|
try {
|
|
1123
1084
|
return t in e;
|
|
1124
1085
|
} catch {
|
|
@@ -1126,129 +1087,179 @@ function Tr(e, t) {
|
|
|
1126
1087
|
}
|
|
1127
1088
|
}
|
|
1128
1089
|
function zn(e, t) {
|
|
1129
|
-
return
|
|
1090
|
+
return wr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1130
1091
|
}
|
|
1131
1092
|
function Jn(e, t, r) {
|
|
1132
1093
|
var n = {};
|
|
1133
|
-
return r.isMergeableObject(e) &&
|
|
1134
|
-
n[i] =
|
|
1135
|
-
}),
|
|
1136
|
-
zn(e, i) || (
|
|
1094
|
+
return r.isMergeableObject(e) && qt(e).forEach(function(i) {
|
|
1095
|
+
n[i] = je(e[i], r);
|
|
1096
|
+
}), qt(t).forEach(function(i) {
|
|
1097
|
+
zn(e, i) || (wr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Wn(i, r)(e[i], t[i], r) : n[i] = je(t[i], r));
|
|
1137
1098
|
}), n;
|
|
1138
1099
|
}
|
|
1139
|
-
function
|
|
1140
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Vn, r.isMergeableObject = r.isMergeableObject || Un, r.cloneUnlessOtherwiseSpecified =
|
|
1100
|
+
function we(e, t, r) {
|
|
1101
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Vn, r.isMergeableObject = r.isMergeableObject || Un, r.cloneUnlessOtherwiseSpecified = je;
|
|
1141
1102
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1142
|
-
return o ? n ? r.arrayMerge(e, t, r) : Jn(e, t, r) :
|
|
1103
|
+
return o ? n ? r.arrayMerge(e, t, r) : Jn(e, t, r) : je(t, r);
|
|
1143
1104
|
}
|
|
1144
|
-
|
|
1105
|
+
we.all = function(t, r) {
|
|
1145
1106
|
if (!Array.isArray(t))
|
|
1146
1107
|
throw new Error("first argument should be an array");
|
|
1147
1108
|
return t.reduce(function(n, i) {
|
|
1148
|
-
return
|
|
1109
|
+
return we(n, i, r);
|
|
1149
1110
|
}, {});
|
|
1150
1111
|
};
|
|
1151
|
-
var Zn =
|
|
1112
|
+
var Zn = we, Qn = Zn;
|
|
1152
1113
|
const Yn = /* @__PURE__ */ Rn(Qn);
|
|
1153
|
-
function
|
|
1154
|
-
|
|
1114
|
+
var Pt = function(e, t) {
|
|
1115
|
+
return Pt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1116
|
+
r.__proto__ = n;
|
|
1117
|
+
} || function(r, n) {
|
|
1118
|
+
for (var i in n)
|
|
1119
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1120
|
+
}, Pt(e, t);
|
|
1121
|
+
};
|
|
1122
|
+
function st(e, t) {
|
|
1123
|
+
if (typeof t != "function" && t !== null)
|
|
1124
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1125
|
+
Pt(e, t);
|
|
1126
|
+
function r() {
|
|
1127
|
+
this.constructor = e;
|
|
1128
|
+
}
|
|
1129
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1130
|
+
}
|
|
1131
|
+
var K = function() {
|
|
1132
|
+
return K = Object.assign || function(t) {
|
|
1133
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1134
|
+
r = arguments[n];
|
|
1135
|
+
for (var o in r)
|
|
1136
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1137
|
+
}
|
|
1138
|
+
return t;
|
|
1139
|
+
}, K.apply(this, arguments);
|
|
1140
|
+
};
|
|
1141
|
+
function qn(e, t) {
|
|
1142
|
+
var r = {};
|
|
1143
|
+
for (var n in e)
|
|
1144
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1145
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1146
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1147
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1148
|
+
return r;
|
|
1149
|
+
}
|
|
1150
|
+
function dt(e, t, r) {
|
|
1151
|
+
if (r || arguments.length === 2)
|
|
1152
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1153
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1154
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1155
|
+
}
|
|
1156
|
+
function mt(e, t) {
|
|
1157
|
+
var r = t && t.cache ? t.cache : oi, n = t && t.serializer ? t.serializer : ni, i = t && t.strategy ? t.strategy : ti;
|
|
1155
1158
|
return i(e, {
|
|
1156
1159
|
cache: r,
|
|
1157
1160
|
serializer: n
|
|
1158
1161
|
});
|
|
1159
1162
|
}
|
|
1160
|
-
function
|
|
1163
|
+
function Kn(e) {
|
|
1161
1164
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1162
1165
|
}
|
|
1163
|
-
function
|
|
1164
|
-
var i =
|
|
1166
|
+
function ei(e, t, r, n) {
|
|
1167
|
+
var i = Kn(n) ? n : r(n), o = t.get(i);
|
|
1165
1168
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1166
1169
|
}
|
|
1167
1170
|
function Hr(e, t, r) {
|
|
1168
1171
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1169
1172
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1170
1173
|
}
|
|
1171
|
-
function
|
|
1174
|
+
function Ar(e, t, r, n, i) {
|
|
1172
1175
|
return r.bind(t, e, n, i);
|
|
1173
1176
|
}
|
|
1174
|
-
function Kn(e, t) {
|
|
1175
|
-
var r = e.length === 1 ? wr : Hr;
|
|
1176
|
-
return Mt(e, this, r, t.cache.create(), t.serializer);
|
|
1177
|
-
}
|
|
1178
|
-
function ei(e, t) {
|
|
1179
|
-
return Mt(e, this, Hr, t.cache.create(), t.serializer);
|
|
1180
|
-
}
|
|
1181
1177
|
function ti(e, t) {
|
|
1182
|
-
|
|
1178
|
+
var r = e.length === 1 ? ei : Hr;
|
|
1179
|
+
return Ar(e, this, r, t.cache.create(), t.serializer);
|
|
1183
1180
|
}
|
|
1184
|
-
|
|
1185
|
-
return
|
|
1186
|
-
};
|
|
1187
|
-
function Rt() {
|
|
1188
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1181
|
+
function ri(e, t) {
|
|
1182
|
+
return Ar(e, this, Hr, t.cache.create(), t.serializer);
|
|
1189
1183
|
}
|
|
1190
|
-
|
|
1191
|
-
return
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1184
|
+
var ni = function() {
|
|
1185
|
+
return JSON.stringify(arguments);
|
|
1186
|
+
}, ii = (
|
|
1187
|
+
/** @class */
|
|
1188
|
+
function() {
|
|
1189
|
+
function e() {
|
|
1190
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1191
|
+
}
|
|
1192
|
+
return e.prototype.get = function(t) {
|
|
1193
|
+
return this.cache[t];
|
|
1194
|
+
}, e.prototype.set = function(t, r) {
|
|
1195
|
+
this.cache[t] = r;
|
|
1196
|
+
}, e;
|
|
1197
|
+
}()
|
|
1198
|
+
), oi = {
|
|
1197
1199
|
create: function() {
|
|
1198
|
-
return new
|
|
1200
|
+
return new ii();
|
|
1199
1201
|
}
|
|
1200
|
-
},
|
|
1201
|
-
variadic:
|
|
1202
|
-
|
|
1203
|
-
|
|
1202
|
+
}, bt = {
|
|
1203
|
+
variadic: ri
|
|
1204
|
+
}, tt = function() {
|
|
1205
|
+
return tt = Object.assign || function(t) {
|
|
1206
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1207
|
+
r = arguments[n];
|
|
1208
|
+
for (var o in r)
|
|
1209
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1210
|
+
}
|
|
1211
|
+
return t;
|
|
1212
|
+
}, tt.apply(this, arguments);
|
|
1213
|
+
};
|
|
1214
|
+
var E;
|
|
1204
1215
|
(function(e) {
|
|
1205
1216
|
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";
|
|
1206
1217
|
})(E || (E = {}));
|
|
1207
|
-
var
|
|
1218
|
+
var B;
|
|
1208
1219
|
(function(e) {
|
|
1209
1220
|
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";
|
|
1210
|
-
})(
|
|
1211
|
-
var
|
|
1221
|
+
})(B || (B = {}));
|
|
1222
|
+
var He;
|
|
1212
1223
|
(function(e) {
|
|
1213
1224
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1214
|
-
})(
|
|
1215
|
-
function
|
|
1216
|
-
return e.type ===
|
|
1217
|
-
}
|
|
1218
|
-
function ii(e) {
|
|
1219
|
-
return e.type === P.argument;
|
|
1225
|
+
})(He || (He = {}));
|
|
1226
|
+
function Kt(e) {
|
|
1227
|
+
return e.type === B.literal;
|
|
1220
1228
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return e.type ===
|
|
1229
|
+
function si(e) {
|
|
1230
|
+
return e.type === B.argument;
|
|
1223
1231
|
}
|
|
1224
1232
|
function Br(e) {
|
|
1225
|
-
return e.type ===
|
|
1233
|
+
return e.type === B.number;
|
|
1226
1234
|
}
|
|
1227
1235
|
function Pr(e) {
|
|
1228
|
-
return e.type ===
|
|
1236
|
+
return e.type === B.date;
|
|
1229
1237
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return e.type ===
|
|
1238
|
+
function Or(e) {
|
|
1239
|
+
return e.type === B.time;
|
|
1232
1240
|
}
|
|
1233
1241
|
function Lr(e) {
|
|
1234
|
-
return e.type ===
|
|
1242
|
+
return e.type === B.select;
|
|
1235
1243
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1244
|
+
function Cr(e) {
|
|
1245
|
+
return e.type === B.plural;
|
|
1246
|
+
}
|
|
1247
|
+
function ai(e) {
|
|
1248
|
+
return e.type === B.pound;
|
|
1238
1249
|
}
|
|
1239
1250
|
function Ir(e) {
|
|
1240
|
-
return e.type ===
|
|
1251
|
+
return e.type === B.tag;
|
|
1241
1252
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1253
|
+
function Nr(e) {
|
|
1254
|
+
return !!(e && typeof e == "object" && e.type === He.number);
|
|
1244
1255
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1256
|
+
function Ot(e) {
|
|
1257
|
+
return !!(e && typeof e == "object" && e.type === He.dateTime);
|
|
1247
1258
|
}
|
|
1248
|
-
var
|
|
1249
|
-
function
|
|
1259
|
+
var Mr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ui = /(?:[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;
|
|
1260
|
+
function li(e) {
|
|
1250
1261
|
var t = {};
|
|
1251
|
-
return e.replace(
|
|
1262
|
+
return e.replace(ui, function(r) {
|
|
1252
1263
|
var n = r.length;
|
|
1253
1264
|
switch (r[0]) {
|
|
1254
1265
|
case "G":
|
|
@@ -1337,11 +1348,21 @@ function ai(e) {
|
|
|
1337
1348
|
return "";
|
|
1338
1349
|
}), t;
|
|
1339
1350
|
}
|
|
1340
|
-
var
|
|
1341
|
-
function
|
|
1351
|
+
var O = function() {
|
|
1352
|
+
return O = Object.assign || function(t) {
|
|
1353
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1354
|
+
r = arguments[n];
|
|
1355
|
+
for (var o in r)
|
|
1356
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1357
|
+
}
|
|
1358
|
+
return t;
|
|
1359
|
+
}, O.apply(this, arguments);
|
|
1360
|
+
};
|
|
1361
|
+
var hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1362
|
+
function ci(e) {
|
|
1342
1363
|
if (e.length === 0)
|
|
1343
1364
|
throw new Error("Number skeleton cannot be empty");
|
|
1344
|
-
for (var t = e.split(
|
|
1365
|
+
for (var t = e.split(hi).filter(function(p) {
|
|
1345
1366
|
return p.length > 0;
|
|
1346
1367
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1347
1368
|
var o = i[n], s = o.split("/");
|
|
@@ -1356,17 +1377,17 @@ function li(e) {
|
|
|
1356
1377
|
}
|
|
1357
1378
|
return r;
|
|
1358
1379
|
}
|
|
1359
|
-
function
|
|
1380
|
+
function fi(e) {
|
|
1360
1381
|
return e.replace(/^(.*?)-/, "");
|
|
1361
1382
|
}
|
|
1362
|
-
var
|
|
1363
|
-
function
|
|
1383
|
+
var er = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rr = /^(@+)?(\+|#+)?[rs]?$/g, pi = /(\*)(0+)|(#+)(0+)|(0+)/g, Ur = /^(0+)$/;
|
|
1384
|
+
function tr(e) {
|
|
1364
1385
|
var t = {};
|
|
1365
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1386
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rr, function(r, n, i) {
|
|
1366
1387
|
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)), "";
|
|
1367
1388
|
}), t;
|
|
1368
1389
|
}
|
|
1369
|
-
function
|
|
1390
|
+
function Dr(e) {
|
|
1370
1391
|
switch (e) {
|
|
1371
1392
|
case "sign-auto":
|
|
1372
1393
|
return {
|
|
@@ -1406,7 +1427,7 @@ function Ur(e) {
|
|
|
1406
1427
|
};
|
|
1407
1428
|
}
|
|
1408
1429
|
}
|
|
1409
|
-
function
|
|
1430
|
+
function di(e) {
|
|
1410
1431
|
var t;
|
|
1411
1432
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1412
1433
|
notation: "engineering"
|
|
@@ -1414,17 +1435,17 @@ function fi(e) {
|
|
|
1414
1435
|
notation: "scientific"
|
|
1415
1436
|
}, e = e.slice(1)), t) {
|
|
1416
1437
|
var r = e.slice(0, 2);
|
|
1417
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1438
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ur.test(e))
|
|
1418
1439
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1419
1440
|
t.minimumIntegerDigits = e.length;
|
|
1420
1441
|
}
|
|
1421
1442
|
return t;
|
|
1422
1443
|
}
|
|
1423
|
-
function
|
|
1424
|
-
var t = {}, r =
|
|
1444
|
+
function rr(e) {
|
|
1445
|
+
var t = {}, r = Dr(e);
|
|
1425
1446
|
return r || t;
|
|
1426
1447
|
}
|
|
1427
|
-
function
|
|
1448
|
+
function mi(e) {
|
|
1428
1449
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1429
1450
|
var i = n[r];
|
|
1430
1451
|
switch (i.stem) {
|
|
@@ -1448,7 +1469,7 @@ function pi(e) {
|
|
|
1448
1469
|
continue;
|
|
1449
1470
|
case "measure-unit":
|
|
1450
1471
|
case "unit":
|
|
1451
|
-
t.style = "unit", t.unit =
|
|
1472
|
+
t.style = "unit", t.unit = fi(i.options[0]);
|
|
1452
1473
|
continue;
|
|
1453
1474
|
case "compact-short":
|
|
1454
1475
|
case "K":
|
|
@@ -1459,13 +1480,13 @@ function pi(e) {
|
|
|
1459
1480
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1460
1481
|
continue;
|
|
1461
1482
|
case "scientific":
|
|
1462
|
-
t =
|
|
1463
|
-
return
|
|
1483
|
+
t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1484
|
+
return O(O({}, l), rr(u));
|
|
1464
1485
|
}, {}));
|
|
1465
1486
|
continue;
|
|
1466
1487
|
case "engineering":
|
|
1467
|
-
t =
|
|
1468
|
-
return
|
|
1488
|
+
t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1489
|
+
return O(O({}, l), rr(u));
|
|
1469
1490
|
}, {}));
|
|
1470
1491
|
continue;
|
|
1471
1492
|
case "notation-simple":
|
|
@@ -1510,7 +1531,7 @@ function pi(e) {
|
|
|
1510
1531
|
case "integer-width":
|
|
1511
1532
|
if (i.options.length > 1)
|
|
1512
1533
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1513
|
-
i.options[0].replace(
|
|
1534
|
+
i.options[0].replace(pi, function(l, u, h, c, p, g) {
|
|
1514
1535
|
if (u)
|
|
1515
1536
|
t.minimumIntegerDigits = h.length;
|
|
1516
1537
|
else {
|
|
@@ -1523,28 +1544,28 @@ function pi(e) {
|
|
|
1523
1544
|
});
|
|
1524
1545
|
continue;
|
|
1525
1546
|
}
|
|
1526
|
-
if (
|
|
1547
|
+
if (Ur.test(i.stem)) {
|
|
1527
1548
|
t.minimumIntegerDigits = i.stem.length;
|
|
1528
1549
|
continue;
|
|
1529
1550
|
}
|
|
1530
|
-
if (
|
|
1551
|
+
if (er.test(i.stem)) {
|
|
1531
1552
|
if (i.options.length > 1)
|
|
1532
1553
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1533
|
-
i.stem.replace(
|
|
1554
|
+
i.stem.replace(er, function(l, u, h, c, p, g) {
|
|
1534
1555
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && g ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1535
1556
|
});
|
|
1536
1557
|
var o = i.options[0];
|
|
1537
|
-
o === "w" ? t =
|
|
1558
|
+
o === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = O(O({}, t), tr(o)));
|
|
1538
1559
|
continue;
|
|
1539
1560
|
}
|
|
1540
|
-
if (
|
|
1541
|
-
t =
|
|
1561
|
+
if (Rr.test(i.stem)) {
|
|
1562
|
+
t = O(O({}, t), tr(i.stem));
|
|
1542
1563
|
continue;
|
|
1543
1564
|
}
|
|
1544
|
-
var s =
|
|
1545
|
-
s && (t =
|
|
1546
|
-
var a =
|
|
1547
|
-
a && (t =
|
|
1565
|
+
var s = Dr(i.stem);
|
|
1566
|
+
s && (t = O(O({}, t), s));
|
|
1567
|
+
var a = di(i.stem);
|
|
1568
|
+
a && (t = O(O({}, t), a));
|
|
1548
1569
|
}
|
|
1549
1570
|
return t;
|
|
1550
1571
|
}
|
|
@@ -2963,13 +2984,13 @@ var Qe = {
|
|
|
2963
2984
|
"h"
|
|
2964
2985
|
]
|
|
2965
2986
|
};
|
|
2966
|
-
function
|
|
2987
|
+
function bi(e, t) {
|
|
2967
2988
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2968
2989
|
var i = e.charAt(n);
|
|
2969
2990
|
if (i === "j") {
|
|
2970
2991
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2971
2992
|
o++, n++;
|
|
2972
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2993
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = gi(t);
|
|
2973
2994
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2974
2995
|
r += l;
|
|
2975
2996
|
for (; s-- > 0; )
|
|
@@ -2979,7 +3000,7 @@ function di(e, t) {
|
|
|
2979
3000
|
}
|
|
2980
3001
|
return r;
|
|
2981
3002
|
}
|
|
2982
|
-
function
|
|
3003
|
+
function gi(e) {
|
|
2983
3004
|
var t = e.hourCycle;
|
|
2984
3005
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2985
3006
|
e.hourCycles && // @ts-ignore
|
|
@@ -3001,20 +3022,20 @@ function mi(e) {
|
|
|
3001
3022
|
var i = Qe[n || ""] || Qe[r || ""] || Qe["".concat(r, "-001")] || Qe["001"];
|
|
3002
3023
|
return i[0];
|
|
3003
3024
|
}
|
|
3004
|
-
var
|
|
3025
|
+
var gt, yi = new RegExp("^".concat(Mr.source, "*")), vi = new RegExp("".concat(Mr.source, "*$"));
|
|
3005
3026
|
function x(e, t) {
|
|
3006
3027
|
return { start: e, end: t };
|
|
3007
3028
|
}
|
|
3008
|
-
var
|
|
3029
|
+
var _i = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ei = !!String.fromCodePoint, xi = !!Object.fromEntries, Si = !!String.prototype.codePointAt, Ti = !!String.prototype.trimStart, wi = !!String.prototype.trimEnd, Hi = !!Number.isSafeInteger, Ai = Hi ? Number.isSafeInteger : function(e) {
|
|
3009
3030
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3010
|
-
},
|
|
3031
|
+
}, Lt = !0;
|
|
3011
3032
|
try {
|
|
3012
|
-
var
|
|
3013
|
-
|
|
3033
|
+
var Bi = kr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3034
|
+
Lt = ((gt = Bi.exec("a")) === null || gt === void 0 ? void 0 : gt[0]) === "a";
|
|
3014
3035
|
} catch {
|
|
3015
|
-
|
|
3036
|
+
Lt = !1;
|
|
3016
3037
|
}
|
|
3017
|
-
var
|
|
3038
|
+
var nr = _i ? (
|
|
3018
3039
|
// Native
|
|
3019
3040
|
function(t, r, n) {
|
|
3020
3041
|
return t.startsWith(r, n);
|
|
@@ -3024,7 +3045,7 @@ var tr = yi ? (
|
|
|
3024
3045
|
function(t, r, n) {
|
|
3025
3046
|
return t.slice(n, n + r.length) === r;
|
|
3026
3047
|
}
|
|
3027
|
-
),
|
|
3048
|
+
), Ct = Ei ? String.fromCodePoint : (
|
|
3028
3049
|
// IE11
|
|
3029
3050
|
function() {
|
|
3030
3051
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3036,9 +3057,9 @@ var tr = yi ? (
|
|
|
3036
3057
|
}
|
|
3037
3058
|
return n;
|
|
3038
3059
|
}
|
|
3039
|
-
),
|
|
3060
|
+
), ir = (
|
|
3040
3061
|
// native
|
|
3041
|
-
|
|
3062
|
+
xi ? Object.fromEntries : (
|
|
3042
3063
|
// Ponyfill
|
|
3043
3064
|
function(t) {
|
|
3044
3065
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3048,7 +3069,7 @@ var tr = yi ? (
|
|
|
3048
3069
|
return r;
|
|
3049
3070
|
}
|
|
3050
3071
|
)
|
|
3051
|
-
),
|
|
3072
|
+
), jr = Si ? (
|
|
3052
3073
|
// Native
|
|
3053
3074
|
function(t, r) {
|
|
3054
3075
|
return t.codePointAt(r);
|
|
@@ -3062,7 +3083,7 @@ var tr = yi ? (
|
|
|
3062
3083
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3063
3084
|
}
|
|
3064
3085
|
}
|
|
3065
|
-
),
|
|
3086
|
+
), Pi = Ti ? (
|
|
3066
3087
|
// Native
|
|
3067
3088
|
function(t) {
|
|
3068
3089
|
return t.trimStart();
|
|
@@ -3070,9 +3091,9 @@ var tr = yi ? (
|
|
|
3070
3091
|
) : (
|
|
3071
3092
|
// Ponyfill
|
|
3072
3093
|
function(t) {
|
|
3073
|
-
return t.replace(
|
|
3094
|
+
return t.replace(yi, "");
|
|
3074
3095
|
}
|
|
3075
|
-
),
|
|
3096
|
+
), Oi = wi ? (
|
|
3076
3097
|
// Native
|
|
3077
3098
|
function(t) {
|
|
3078
3099
|
return t.trimEnd();
|
|
@@ -3080,32 +3101,32 @@ var tr = yi ? (
|
|
|
3080
3101
|
) : (
|
|
3081
3102
|
// Ponyfill
|
|
3082
3103
|
function(t) {
|
|
3083
|
-
return t.replace(
|
|
3104
|
+
return t.replace(vi, "");
|
|
3084
3105
|
}
|
|
3085
3106
|
);
|
|
3086
|
-
function
|
|
3107
|
+
function kr(e, t) {
|
|
3087
3108
|
return new RegExp(e, t);
|
|
3088
3109
|
}
|
|
3089
|
-
var
|
|
3090
|
-
if (
|
|
3091
|
-
var
|
|
3092
|
-
|
|
3110
|
+
var It;
|
|
3111
|
+
if (Lt) {
|
|
3112
|
+
var or = kr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3113
|
+
It = function(t, r) {
|
|
3093
3114
|
var n;
|
|
3094
|
-
|
|
3095
|
-
var i =
|
|
3115
|
+
or.lastIndex = r;
|
|
3116
|
+
var i = or.exec(t);
|
|
3096
3117
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3097
3118
|
};
|
|
3098
3119
|
} else
|
|
3099
|
-
|
|
3120
|
+
It = function(t, r) {
|
|
3100
3121
|
for (var n = []; ; ) {
|
|
3101
|
-
var i =
|
|
3102
|
-
if (i === void 0 ||
|
|
3122
|
+
var i = jr(t, r);
|
|
3123
|
+
if (i === void 0 || Gr(i) || Ni(i))
|
|
3103
3124
|
break;
|
|
3104
3125
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3105
3126
|
}
|
|
3106
|
-
return
|
|
3127
|
+
return Ct.apply(void 0, n);
|
|
3107
3128
|
};
|
|
3108
|
-
var
|
|
3129
|
+
var Li = (
|
|
3109
3130
|
/** @class */
|
|
3110
3131
|
function() {
|
|
3111
3132
|
function e(t, r) {
|
|
@@ -3129,14 +3150,14 @@ var Pi = (
|
|
|
3129
3150
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3130
3151
|
var a = this.clonePosition();
|
|
3131
3152
|
this.bump(), i.push({
|
|
3132
|
-
type:
|
|
3153
|
+
type: B.pound,
|
|
3133
3154
|
location: x(a, this.clonePosition())
|
|
3134
3155
|
});
|
|
3135
3156
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3136
3157
|
if (n)
|
|
3137
3158
|
break;
|
|
3138
3159
|
return this.error(E.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
|
|
3139
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3160
|
+
} else if (o === 60 && !this.ignoreTag && Nt(this.peek() || 0)) {
|
|
3140
3161
|
var s = this.parseTag(t, r);
|
|
3141
3162
|
if (s.err)
|
|
3142
3163
|
return s;
|
|
@@ -3157,7 +3178,7 @@ var Pi = (
|
|
|
3157
3178
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3158
3179
|
return {
|
|
3159
3180
|
val: {
|
|
3160
|
-
type:
|
|
3181
|
+
type: B.literal,
|
|
3161
3182
|
value: "<".concat(i, "/>"),
|
|
3162
3183
|
location: x(n, this.clonePosition())
|
|
3163
3184
|
},
|
|
@@ -3169,12 +3190,12 @@ var Pi = (
|
|
|
3169
3190
|
return o;
|
|
3170
3191
|
var s = o.val, a = this.clonePosition();
|
|
3171
3192
|
if (this.bumpIf("</")) {
|
|
3172
|
-
if (this.isEOF() || !
|
|
3193
|
+
if (this.isEOF() || !Nt(this.char()))
|
|
3173
3194
|
return this.error(E.INVALID_TAG, x(a, this.clonePosition()));
|
|
3174
3195
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3175
3196
|
return i !== u ? this.error(E.UNMATCHED_CLOSING_TAG, x(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3176
3197
|
val: {
|
|
3177
|
-
type:
|
|
3198
|
+
type: B.tag,
|
|
3178
3199
|
value: i,
|
|
3179
3200
|
children: s,
|
|
3180
3201
|
location: x(n, this.clonePosition())
|
|
@@ -3187,7 +3208,7 @@ var Pi = (
|
|
|
3187
3208
|
return this.error(E.INVALID_TAG, x(n, this.clonePosition()));
|
|
3188
3209
|
}, e.prototype.parseTagName = function() {
|
|
3189
3210
|
var t = this.offset();
|
|
3190
|
-
for (this.bump(); !this.isEOF() &&
|
|
3211
|
+
for (this.bump(); !this.isEOF() && Ii(this.char()); )
|
|
3191
3212
|
this.bump();
|
|
3192
3213
|
return this.message.slice(t, this.offset());
|
|
3193
3214
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3211,7 +3232,7 @@ var Pi = (
|
|
|
3211
3232
|
}
|
|
3212
3233
|
var l = x(n, this.clonePosition());
|
|
3213
3234
|
return {
|
|
3214
|
-
val: { type:
|
|
3235
|
+
val: { type: B.literal, value: i, location: l },
|
|
3215
3236
|
err: null
|
|
3216
3237
|
};
|
|
3217
3238
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3250,12 +3271,12 @@ var Pi = (
|
|
|
3250
3271
|
r.push(n);
|
|
3251
3272
|
this.bump();
|
|
3252
3273
|
}
|
|
3253
|
-
return
|
|
3274
|
+
return Ct.apply(void 0, r);
|
|
3254
3275
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3255
3276
|
if (this.isEOF())
|
|
3256
3277
|
return null;
|
|
3257
3278
|
var n = this.char();
|
|
3258
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3279
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ct(n));
|
|
3259
3280
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3260
3281
|
var n = this.clonePosition();
|
|
3261
3282
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3271,7 +3292,7 @@ var Pi = (
|
|
|
3271
3292
|
case 125:
|
|
3272
3293
|
return this.bump(), {
|
|
3273
3294
|
val: {
|
|
3274
|
-
type:
|
|
3295
|
+
type: B.argument,
|
|
3275
3296
|
// value does not include the opening and closing braces.
|
|
3276
3297
|
value: i,
|
|
3277
3298
|
location: x(n, this.clonePosition())
|
|
@@ -3284,7 +3305,7 @@ var Pi = (
|
|
|
3284
3305
|
return this.error(E.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3285
3306
|
}
|
|
3286
3307
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3287
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3308
|
+
var t = this.clonePosition(), r = this.offset(), n = It(this.message, r), i = r + n.length;
|
|
3288
3309
|
this.bumpTo(i);
|
|
3289
3310
|
var o = this.clonePosition(), s = x(t, o);
|
|
3290
3311
|
return { value: n, location: s };
|
|
@@ -3303,7 +3324,7 @@ var Pi = (
|
|
|
3303
3324
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3304
3325
|
if (c.err)
|
|
3305
3326
|
return c;
|
|
3306
|
-
var p =
|
|
3327
|
+
var p = Oi(c.val);
|
|
3307
3328
|
if (p.length === 0)
|
|
3308
3329
|
return this.error(E.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
|
|
3309
3330
|
var g = x(h, this.clonePosition());
|
|
@@ -3313,34 +3334,34 @@ var Pi = (
|
|
|
3313
3334
|
if (y.err)
|
|
3314
3335
|
return y;
|
|
3315
3336
|
var m = x(i, this.clonePosition());
|
|
3316
|
-
if (u &&
|
|
3317
|
-
var _ =
|
|
3337
|
+
if (u && nr(u?.style, "::", 0)) {
|
|
3338
|
+
var _ = Pi(u.style.slice(2));
|
|
3318
3339
|
if (a === "number") {
|
|
3319
3340
|
var c = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
3320
3341
|
return c.err ? c : {
|
|
3321
|
-
val: { type:
|
|
3342
|
+
val: { type: B.number, value: n, location: m, style: c.val },
|
|
3322
3343
|
err: null
|
|
3323
3344
|
};
|
|
3324
3345
|
} else {
|
|
3325
3346
|
if (_.length === 0)
|
|
3326
3347
|
return this.error(E.EXPECT_DATE_TIME_SKELETON, m);
|
|
3327
3348
|
var S = _;
|
|
3328
|
-
this.locale && (S =
|
|
3349
|
+
this.locale && (S = bi(_, this.locale));
|
|
3329
3350
|
var p = {
|
|
3330
|
-
type:
|
|
3351
|
+
type: He.dateTime,
|
|
3331
3352
|
pattern: S,
|
|
3332
3353
|
location: u.styleLocation,
|
|
3333
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3334
|
-
},
|
|
3354
|
+
parsedOptions: this.shouldParseSkeletons ? li(S) : {}
|
|
3355
|
+
}, T = a === "date" ? B.date : B.time;
|
|
3335
3356
|
return {
|
|
3336
|
-
val: { type:
|
|
3357
|
+
val: { type: T, value: n, location: m, style: p },
|
|
3337
3358
|
err: null
|
|
3338
3359
|
};
|
|
3339
3360
|
}
|
|
3340
3361
|
}
|
|
3341
3362
|
return {
|
|
3342
3363
|
val: {
|
|
3343
|
-
type: a === "number" ?
|
|
3364
|
+
type: a === "number" ? B.number : a === "date" ? B.date : B.time,
|
|
3344
3365
|
value: n,
|
|
3345
3366
|
location: m,
|
|
3346
3367
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3351,11 +3372,11 @@ var Pi = (
|
|
|
3351
3372
|
case "plural":
|
|
3352
3373
|
case "selectordinal":
|
|
3353
3374
|
case "select": {
|
|
3354
|
-
var
|
|
3375
|
+
var A = this.clonePosition();
|
|
3355
3376
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3356
|
-
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, x(
|
|
3377
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, x(A, tt({}, A)));
|
|
3357
3378
|
this.bumpSpace();
|
|
3358
|
-
var U = this.parseIdentifierIfPossible(),
|
|
3379
|
+
var U = this.parseIdentifierIfPossible(), I = 0;
|
|
3359
3380
|
if (a !== "select" && U.value === "offset") {
|
|
3360
3381
|
if (!this.bumpIf(":"))
|
|
3361
3382
|
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
|
|
@@ -3363,7 +3384,7 @@ var Pi = (
|
|
|
3363
3384
|
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3364
3385
|
if (c.err)
|
|
3365
3386
|
return c;
|
|
3366
|
-
this.bumpSpace(), U = this.parseIdentifierIfPossible(),
|
|
3387
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), I = c.val;
|
|
3367
3388
|
}
|
|
3368
3389
|
var $ = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3369
3390
|
if ($.err)
|
|
@@ -3374,18 +3395,18 @@ var Pi = (
|
|
|
3374
3395
|
var X = x(i, this.clonePosition());
|
|
3375
3396
|
return a === "select" ? {
|
|
3376
3397
|
val: {
|
|
3377
|
-
type:
|
|
3398
|
+
type: B.select,
|
|
3378
3399
|
value: n,
|
|
3379
|
-
options:
|
|
3400
|
+
options: ir($.val),
|
|
3380
3401
|
location: X
|
|
3381
3402
|
},
|
|
3382
3403
|
err: null
|
|
3383
3404
|
} : {
|
|
3384
3405
|
val: {
|
|
3385
|
-
type:
|
|
3406
|
+
type: B.plural,
|
|
3386
3407
|
value: n,
|
|
3387
|
-
options:
|
|
3388
|
-
offset:
|
|
3408
|
+
options: ir($.val),
|
|
3409
|
+
offset: I,
|
|
3389
3410
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3390
3411
|
location: X
|
|
3391
3412
|
},
|
|
@@ -3435,16 +3456,16 @@ var Pi = (
|
|
|
3435
3456
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3436
3457
|
var n = [];
|
|
3437
3458
|
try {
|
|
3438
|
-
n =
|
|
3459
|
+
n = ci(t);
|
|
3439
3460
|
} catch {
|
|
3440
3461
|
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
|
3441
3462
|
}
|
|
3442
3463
|
return {
|
|
3443
3464
|
val: {
|
|
3444
|
-
type:
|
|
3465
|
+
type: He.number,
|
|
3445
3466
|
tokens: n,
|
|
3446
3467
|
location: r,
|
|
3447
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3468
|
+
parsedOptions: this.shouldParseSkeletons ? mi(n) : {}
|
|
3448
3469
|
},
|
|
3449
3470
|
err: null
|
|
3450
3471
|
};
|
|
@@ -3492,7 +3513,7 @@ var Pi = (
|
|
|
3492
3513
|
break;
|
|
3493
3514
|
}
|
|
3494
3515
|
var l = x(i, this.clonePosition());
|
|
3495
|
-
return o ? (s *= n,
|
|
3516
|
+
return o ? (s *= n, Ai(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3496
3517
|
}, e.prototype.offset = function() {
|
|
3497
3518
|
return this.position.offset;
|
|
3498
3519
|
}, e.prototype.isEOF = function() {
|
|
@@ -3507,7 +3528,7 @@ var Pi = (
|
|
|
3507
3528
|
var t = this.position.offset;
|
|
3508
3529
|
if (t >= this.message.length)
|
|
3509
3530
|
throw Error("out of bound");
|
|
3510
|
-
var r =
|
|
3531
|
+
var r = jr(this.message, t);
|
|
3511
3532
|
if (r === void 0)
|
|
3512
3533
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3513
3534
|
return r;
|
|
@@ -3526,7 +3547,7 @@ var Pi = (
|
|
|
3526
3547
|
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);
|
|
3527
3548
|
}
|
|
3528
3549
|
}, e.prototype.bumpIf = function(t) {
|
|
3529
|
-
if (
|
|
3550
|
+
if (nr(this.message, t, this.offset())) {
|
|
3530
3551
|
for (var r = 0; r < t.length; r++)
|
|
3531
3552
|
this.bump();
|
|
3532
3553
|
return !0;
|
|
@@ -3548,7 +3569,7 @@ var Pi = (
|
|
|
3548
3569
|
break;
|
|
3549
3570
|
}
|
|
3550
3571
|
}, e.prototype.bumpSpace = function() {
|
|
3551
|
-
for (; !this.isEOF() &&
|
|
3572
|
+
for (; !this.isEOF() && Gr(this.char()); )
|
|
3552
3573
|
this.bump();
|
|
3553
3574
|
}, e.prototype.peek = function() {
|
|
3554
3575
|
if (this.isEOF())
|
|
@@ -3558,47 +3579,47 @@ var Pi = (
|
|
|
3558
3579
|
}, e;
|
|
3559
3580
|
}()
|
|
3560
3581
|
);
|
|
3561
|
-
function
|
|
3582
|
+
function Nt(e) {
|
|
3562
3583
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3563
3584
|
}
|
|
3564
3585
|
function Ci(e) {
|
|
3565
|
-
return
|
|
3586
|
+
return Nt(e) || e === 47;
|
|
3566
3587
|
}
|
|
3567
|
-
function
|
|
3588
|
+
function Ii(e) {
|
|
3568
3589
|
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;
|
|
3569
3590
|
}
|
|
3570
|
-
function
|
|
3591
|
+
function Gr(e) {
|
|
3571
3592
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3572
3593
|
}
|
|
3573
|
-
function
|
|
3594
|
+
function Ni(e) {
|
|
3574
3595
|
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;
|
|
3575
3596
|
}
|
|
3576
|
-
function
|
|
3597
|
+
function Mt(e) {
|
|
3577
3598
|
e.forEach(function(t) {
|
|
3578
|
-
if (delete t.location,
|
|
3599
|
+
if (delete t.location, Lr(t) || Cr(t))
|
|
3579
3600
|
for (var r in t.options)
|
|
3580
|
-
delete t.options[r].location,
|
|
3601
|
+
delete t.options[r].location, Mt(t.options[r].value);
|
|
3581
3602
|
else
|
|
3582
|
-
|
|
3603
|
+
Br(t) && Nr(t.style) || (Pr(t) || Or(t)) && Ot(t.style) ? delete t.style.location : Ir(t) && Mt(t.children);
|
|
3583
3604
|
});
|
|
3584
3605
|
}
|
|
3585
|
-
function
|
|
3586
|
-
t === void 0 && (t = {}), t =
|
|
3587
|
-
var r = new
|
|
3606
|
+
function Mi(e, t) {
|
|
3607
|
+
t === void 0 && (t = {}), t = tt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3608
|
+
var r = new Li(e, t).parse();
|
|
3588
3609
|
if (r.err) {
|
|
3589
3610
|
var n = SyntaxError(E[r.err.kind]);
|
|
3590
3611
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3591
3612
|
}
|
|
3592
|
-
return t?.captureLocation ||
|
|
3613
|
+
return t?.captureLocation || Mt(r.val), r.val;
|
|
3593
3614
|
}
|
|
3594
|
-
var
|
|
3615
|
+
var Ae;
|
|
3595
3616
|
(function(e) {
|
|
3596
3617
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3597
|
-
})(
|
|
3598
|
-
var
|
|
3618
|
+
})(Ae || (Ae = {}));
|
|
3619
|
+
var at = (
|
|
3599
3620
|
/** @class */
|
|
3600
3621
|
function(e) {
|
|
3601
|
-
|
|
3622
|
+
st(t, e);
|
|
3602
3623
|
function t(r, n, i) {
|
|
3603
3624
|
var o = e.call(this, r) || this;
|
|
3604
3625
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3607,155 +3628,155 @@ var ot = (
|
|
|
3607
3628
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3608
3629
|
}, t;
|
|
3609
3630
|
}(Error)
|
|
3610
|
-
),
|
|
3631
|
+
), sr = (
|
|
3611
3632
|
/** @class */
|
|
3612
3633
|
function(e) {
|
|
3613
|
-
|
|
3634
|
+
st(t, e);
|
|
3614
3635
|
function t(r, n, i, o) {
|
|
3615
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3636
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ae.INVALID_VALUE, o) || this;
|
|
3616
3637
|
}
|
|
3617
3638
|
return t;
|
|
3618
|
-
}(
|
|
3619
|
-
),
|
|
3639
|
+
}(at)
|
|
3640
|
+
), Ri = (
|
|
3620
3641
|
/** @class */
|
|
3621
3642
|
function(e) {
|
|
3622
|
-
|
|
3643
|
+
st(t, e);
|
|
3623
3644
|
function t(r, n, i) {
|
|
3624
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3645
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ae.INVALID_VALUE, i) || this;
|
|
3625
3646
|
}
|
|
3626
3647
|
return t;
|
|
3627
|
-
}(
|
|
3628
|
-
),
|
|
3648
|
+
}(at)
|
|
3649
|
+
), Ui = (
|
|
3629
3650
|
/** @class */
|
|
3630
3651
|
function(e) {
|
|
3631
|
-
|
|
3652
|
+
st(t, e);
|
|
3632
3653
|
function t(r, n) {
|
|
3633
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3654
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ae.MISSING_VALUE, n) || this;
|
|
3634
3655
|
}
|
|
3635
3656
|
return t;
|
|
3636
|
-
}(
|
|
3637
|
-
),
|
|
3657
|
+
}(at)
|
|
3658
|
+
), j;
|
|
3638
3659
|
(function(e) {
|
|
3639
3660
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3640
|
-
})(
|
|
3641
|
-
function
|
|
3661
|
+
})(j || (j = {}));
|
|
3662
|
+
function Di(e) {
|
|
3642
3663
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3643
3664
|
var n = t[t.length - 1];
|
|
3644
|
-
return !n || n.type !==
|
|
3665
|
+
return !n || n.type !== j.literal || r.type !== j.literal ? t.push(r) : n.value += r.value, t;
|
|
3645
3666
|
}, []);
|
|
3646
3667
|
}
|
|
3647
|
-
function
|
|
3668
|
+
function ji(e) {
|
|
3648
3669
|
return typeof e == "function";
|
|
3649
3670
|
}
|
|
3650
3671
|
function Ke(e, t, r, n, i, o, s) {
|
|
3651
|
-
if (e.length === 1 &&
|
|
3672
|
+
if (e.length === 1 && Kt(e[0]))
|
|
3652
3673
|
return [
|
|
3653
3674
|
{
|
|
3654
|
-
type:
|
|
3675
|
+
type: j.literal,
|
|
3655
3676
|
value: e[0].value
|
|
3656
3677
|
}
|
|
3657
3678
|
];
|
|
3658
3679
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3659
3680
|
var h = u[l];
|
|
3660
|
-
if (
|
|
3681
|
+
if (Kt(h)) {
|
|
3661
3682
|
a.push({
|
|
3662
|
-
type:
|
|
3683
|
+
type: j.literal,
|
|
3663
3684
|
value: h.value
|
|
3664
3685
|
});
|
|
3665
3686
|
continue;
|
|
3666
3687
|
}
|
|
3667
|
-
if (
|
|
3688
|
+
if (ai(h)) {
|
|
3668
3689
|
typeof o == "number" && a.push({
|
|
3669
|
-
type:
|
|
3690
|
+
type: j.literal,
|
|
3670
3691
|
value: r.getNumberFormat(t).format(o)
|
|
3671
3692
|
});
|
|
3672
3693
|
continue;
|
|
3673
3694
|
}
|
|
3674
3695
|
var c = h.value;
|
|
3675
3696
|
if (!(i && c in i))
|
|
3676
|
-
throw new
|
|
3697
|
+
throw new Ui(c, s);
|
|
3677
3698
|
var p = i[c];
|
|
3678
|
-
if (
|
|
3699
|
+
if (si(h)) {
|
|
3679
3700
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
|
|
3680
|
-
type: typeof p == "string" ?
|
|
3701
|
+
type: typeof p == "string" ? j.literal : j.object,
|
|
3681
3702
|
value: p
|
|
3682
3703
|
});
|
|
3683
3704
|
continue;
|
|
3684
3705
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var g = typeof h.style == "string" ? n.date[h.style] :
|
|
3706
|
+
if (Pr(h)) {
|
|
3707
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Ot(h.style) ? h.style.parsedOptions : void 0;
|
|
3687
3708
|
a.push({
|
|
3688
|
-
type:
|
|
3709
|
+
type: j.literal,
|
|
3689
3710
|
value: r.getDateTimeFormat(t, g).format(p)
|
|
3690
3711
|
});
|
|
3691
3712
|
continue;
|
|
3692
3713
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
var g = typeof h.style == "string" ? n.time[h.style] :
|
|
3714
|
+
if (Or(h)) {
|
|
3715
|
+
var g = typeof h.style == "string" ? n.time[h.style] : Ot(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3695
3716
|
a.push({
|
|
3696
|
-
type:
|
|
3717
|
+
type: j.literal,
|
|
3697
3718
|
value: r.getDateTimeFormat(t, g).format(p)
|
|
3698
3719
|
});
|
|
3699
3720
|
continue;
|
|
3700
3721
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
var g = typeof h.style == "string" ? n.number[h.style] :
|
|
3722
|
+
if (Br(h)) {
|
|
3723
|
+
var g = typeof h.style == "string" ? n.number[h.style] : Nr(h.style) ? h.style.parsedOptions : void 0;
|
|
3703
3724
|
g && g.scale && (p = p * (g.scale || 1)), a.push({
|
|
3704
|
-
type:
|
|
3725
|
+
type: j.literal,
|
|
3705
3726
|
value: r.getNumberFormat(t, g).format(p)
|
|
3706
3727
|
});
|
|
3707
3728
|
continue;
|
|
3708
3729
|
}
|
|
3709
3730
|
if (Ir(h)) {
|
|
3710
3731
|
var y = h.children, m = h.value, _ = i[m];
|
|
3711
|
-
if (!
|
|
3712
|
-
throw new
|
|
3713
|
-
var S = Ke(y, t, r, n, i, o),
|
|
3714
|
-
return
|
|
3732
|
+
if (!ji(_))
|
|
3733
|
+
throw new Ri(m, "function", s);
|
|
3734
|
+
var S = Ke(y, t, r, n, i, o), T = _(S.map(function(I) {
|
|
3735
|
+
return I.value;
|
|
3715
3736
|
}));
|
|
3716
|
-
Array.isArray(
|
|
3737
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(I) {
|
|
3717
3738
|
return {
|
|
3718
|
-
type: typeof
|
|
3719
|
-
value:
|
|
3739
|
+
type: typeof I == "string" ? j.literal : j.object,
|
|
3740
|
+
value: I
|
|
3720
3741
|
};
|
|
3721
3742
|
}));
|
|
3722
3743
|
}
|
|
3723
|
-
if (
|
|
3724
|
-
var
|
|
3725
|
-
if (!
|
|
3726
|
-
throw new
|
|
3727
|
-
a.push.apply(a, Ke(
|
|
3744
|
+
if (Lr(h)) {
|
|
3745
|
+
var A = h.options[p] || h.options.other;
|
|
3746
|
+
if (!A)
|
|
3747
|
+
throw new sr(h.value, p, Object.keys(h.options), s);
|
|
3748
|
+
a.push.apply(a, Ke(A.value, t, r, n, i));
|
|
3728
3749
|
continue;
|
|
3729
3750
|
}
|
|
3730
|
-
if (
|
|
3731
|
-
var
|
|
3732
|
-
if (!
|
|
3751
|
+
if (Cr(h)) {
|
|
3752
|
+
var A = h.options["=".concat(p)];
|
|
3753
|
+
if (!A) {
|
|
3733
3754
|
if (!Intl.PluralRules)
|
|
3734
|
-
throw new
|
|
3755
|
+
throw new at(`Intl.PluralRules is not available in this environment.
|
|
3735
3756
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3736
|
-
`,
|
|
3757
|
+
`, Ae.MISSING_INTL_API, s);
|
|
3737
3758
|
var U = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3738
|
-
|
|
3759
|
+
A = h.options[U] || h.options.other;
|
|
3739
3760
|
}
|
|
3740
|
-
if (!
|
|
3741
|
-
throw new
|
|
3742
|
-
a.push.apply(a, Ke(
|
|
3761
|
+
if (!A)
|
|
3762
|
+
throw new sr(h.value, p, Object.keys(h.options), s);
|
|
3763
|
+
a.push.apply(a, Ke(A.value, t, r, n, i, p - (h.offset || 0)));
|
|
3743
3764
|
continue;
|
|
3744
3765
|
}
|
|
3745
3766
|
}
|
|
3746
|
-
return
|
|
3767
|
+
return Di(a);
|
|
3747
3768
|
}
|
|
3748
|
-
function
|
|
3749
|
-
return t ?
|
|
3750
|
-
return r[n] =
|
|
3769
|
+
function ki(e, t) {
|
|
3770
|
+
return t ? K(K(K({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3771
|
+
return r[n] = K(K({}, e[n]), t[n] || {}), r;
|
|
3751
3772
|
}, {})) : e;
|
|
3752
3773
|
}
|
|
3753
3774
|
function Gi(e, t) {
|
|
3754
3775
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3755
|
-
return r[n] =
|
|
3756
|
-
},
|
|
3776
|
+
return r[n] = ki(e[n], t[n]), r;
|
|
3777
|
+
}, K({}, e)) : e;
|
|
3757
3778
|
}
|
|
3758
|
-
function
|
|
3779
|
+
function yt(e) {
|
|
3759
3780
|
return {
|
|
3760
3781
|
create: function() {
|
|
3761
3782
|
return {
|
|
@@ -3769,39 +3790,39 @@ function bt(e) {
|
|
|
3769
3790
|
}
|
|
3770
3791
|
};
|
|
3771
3792
|
}
|
|
3772
|
-
function
|
|
3793
|
+
function $i(e) {
|
|
3773
3794
|
return e === void 0 && (e = {
|
|
3774
3795
|
number: {},
|
|
3775
3796
|
dateTime: {},
|
|
3776
3797
|
pluralRules: {}
|
|
3777
3798
|
}), {
|
|
3778
|
-
getNumberFormat:
|
|
3799
|
+
getNumberFormat: mt(function() {
|
|
3779
3800
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3780
3801
|
r[n] = arguments[n];
|
|
3781
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3802
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, dt([void 0], r, !1)))();
|
|
3782
3803
|
}, {
|
|
3783
|
-
cache:
|
|
3784
|
-
strategy:
|
|
3804
|
+
cache: yt(e.number),
|
|
3805
|
+
strategy: bt.variadic
|
|
3785
3806
|
}),
|
|
3786
|
-
getDateTimeFormat:
|
|
3807
|
+
getDateTimeFormat: mt(function() {
|
|
3787
3808
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3788
3809
|
r[n] = arguments[n];
|
|
3789
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3810
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, dt([void 0], r, !1)))();
|
|
3790
3811
|
}, {
|
|
3791
|
-
cache:
|
|
3792
|
-
strategy:
|
|
3812
|
+
cache: yt(e.dateTime),
|
|
3813
|
+
strategy: bt.variadic
|
|
3793
3814
|
}),
|
|
3794
|
-
getPluralRules:
|
|
3815
|
+
getPluralRules: mt(function() {
|
|
3795
3816
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3796
3817
|
r[n] = arguments[n];
|
|
3797
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3818
|
+
return new ((t = Intl.PluralRules).bind.apply(t, dt([void 0], r, !1)))();
|
|
3798
3819
|
}, {
|
|
3799
|
-
cache:
|
|
3800
|
-
strategy:
|
|
3820
|
+
cache: yt(e.pluralRules),
|
|
3821
|
+
strategy: bt.variadic
|
|
3801
3822
|
})
|
|
3802
3823
|
};
|
|
3803
3824
|
}
|
|
3804
|
-
var
|
|
3825
|
+
var Fi = (
|
|
3805
3826
|
/** @class */
|
|
3806
3827
|
function() {
|
|
3807
3828
|
function e(t, r, n, i) {
|
|
@@ -3816,7 +3837,7 @@ var ji = (
|
|
|
3816
3837
|
if (u.length === 1)
|
|
3817
3838
|
return u[0].value;
|
|
3818
3839
|
var h = u.reduce(function(c, p) {
|
|
3819
|
-
return !c.length || p.type !==
|
|
3840
|
+
return !c.length || p.type !== j.literal || typeof c[c.length - 1] != "string" ? c.push(p.value) : c[c.length - 1] += p.value, c;
|
|
3820
3841
|
}, []);
|
|
3821
3842
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3822
3843
|
}, this.formatToParts = function(l) {
|
|
@@ -3833,13 +3854,13 @@ var ji = (
|
|
|
3833
3854
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3834
3855
|
var s = i || {};
|
|
3835
3856
|
s.formatters;
|
|
3836
|
-
var a =
|
|
3837
|
-
this.ast = e.__parse(t,
|
|
3857
|
+
var a = qn(s, ["formatters"]);
|
|
3858
|
+
this.ast = e.__parse(t, K(K({}, a), { locale: this.resolvedLocale }));
|
|
3838
3859
|
} else
|
|
3839
3860
|
this.ast = t;
|
|
3840
3861
|
if (!Array.isArray(this.ast))
|
|
3841
3862
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3842
|
-
this.formats = Gi(e.formats, n), this.formatters = i && i.formatters ||
|
|
3863
|
+
this.formats = Gi(e.formats, n), this.formatters = i && i.formatters || $i(this.formatterCache);
|
|
3843
3864
|
}
|
|
3844
3865
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3845
3866
|
get: function() {
|
|
@@ -3852,7 +3873,7 @@ var ji = (
|
|
|
3852
3873
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3853
3874
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3854
3875
|
}
|
|
3855
|
-
}, e.__parse =
|
|
3876
|
+
}, e.__parse = Mi, e.formats = {
|
|
3856
3877
|
number: {
|
|
3857
3878
|
integer: {
|
|
3858
3879
|
maximumFractionDigits: 0
|
|
@@ -3913,7 +3934,7 @@ var ji = (
|
|
|
3913
3934
|
}, e;
|
|
3914
3935
|
}()
|
|
3915
3936
|
);
|
|
3916
|
-
function
|
|
3937
|
+
function Vi(e, t) {
|
|
3917
3938
|
if (t == null)
|
|
3918
3939
|
return;
|
|
3919
3940
|
if (t in e)
|
|
@@ -3934,92 +3955,92 @@ function $i(e, t) {
|
|
|
3934
3955
|
n = void 0;
|
|
3935
3956
|
return n;
|
|
3936
3957
|
}
|
|
3937
|
-
const ae = {},
|
|
3958
|
+
const ae = {}, Wi = (e, t, r) => r && (t in ae || (ae[t] = {}), e in ae[t] || (ae[t][e] = r), r), $r = (e, t) => {
|
|
3938
3959
|
if (t == null)
|
|
3939
3960
|
return;
|
|
3940
3961
|
if (t in ae && e in ae[t])
|
|
3941
3962
|
return ae[t][e];
|
|
3942
|
-
const r =
|
|
3963
|
+
const r = ut(t);
|
|
3943
3964
|
for (let n = 0; n < r.length; n++) {
|
|
3944
|
-
const i = r[n], o =
|
|
3965
|
+
const i = r[n], o = zi(i, e);
|
|
3945
3966
|
if (o)
|
|
3946
|
-
return
|
|
3967
|
+
return Wi(e, t, o);
|
|
3947
3968
|
}
|
|
3948
3969
|
};
|
|
3949
|
-
let
|
|
3950
|
-
const Fe =
|
|
3951
|
-
function
|
|
3952
|
-
return
|
|
3970
|
+
let jt;
|
|
3971
|
+
const Fe = ot({});
|
|
3972
|
+
function Xi(e) {
|
|
3973
|
+
return jt[e] || null;
|
|
3953
3974
|
}
|
|
3954
|
-
function
|
|
3955
|
-
return e in
|
|
3975
|
+
function Fr(e) {
|
|
3976
|
+
return e in jt;
|
|
3956
3977
|
}
|
|
3957
|
-
function
|
|
3958
|
-
if (
|
|
3978
|
+
function zi(e, t) {
|
|
3979
|
+
if (!Fr(e))
|
|
3959
3980
|
return null;
|
|
3960
|
-
const r =
|
|
3961
|
-
return
|
|
3981
|
+
const r = Xi(e);
|
|
3982
|
+
return Vi(r, t);
|
|
3962
3983
|
}
|
|
3963
|
-
function
|
|
3984
|
+
function Ji(e) {
|
|
3964
3985
|
if (e == null)
|
|
3965
3986
|
return;
|
|
3966
|
-
const t =
|
|
3987
|
+
const t = ut(e);
|
|
3967
3988
|
for (let r = 0; r < t.length; r++) {
|
|
3968
3989
|
const n = t[r];
|
|
3969
|
-
if (
|
|
3990
|
+
if (Fr(n))
|
|
3970
3991
|
return n;
|
|
3971
3992
|
}
|
|
3972
3993
|
}
|
|
3973
|
-
function
|
|
3994
|
+
function Vr(e, ...t) {
|
|
3974
3995
|
delete ae[e], Fe.update((r) => (r[e] = Yn.all([r[e] || {}, ...t]), r));
|
|
3975
3996
|
}
|
|
3976
|
-
|
|
3997
|
+
Pe(
|
|
3977
3998
|
[Fe],
|
|
3978
3999
|
([e]) => Object.keys(e)
|
|
3979
4000
|
);
|
|
3980
|
-
Fe.subscribe((e) =>
|
|
4001
|
+
Fe.subscribe((e) => jt = e);
|
|
3981
4002
|
const et = {};
|
|
3982
|
-
function
|
|
4003
|
+
function Zi(e, t) {
|
|
3983
4004
|
et[e].delete(t), et[e].size === 0 && delete et[e];
|
|
3984
4005
|
}
|
|
3985
|
-
function
|
|
4006
|
+
function Wr(e) {
|
|
3986
4007
|
return et[e];
|
|
3987
4008
|
}
|
|
3988
|
-
function
|
|
3989
|
-
return
|
|
3990
|
-
const r =
|
|
4009
|
+
function Qi(e) {
|
|
4010
|
+
return ut(e).map((t) => {
|
|
4011
|
+
const r = Wr(t);
|
|
3991
4012
|
return [t, r ? [...r] : []];
|
|
3992
4013
|
}).filter(([, t]) => t.length > 0);
|
|
3993
4014
|
}
|
|
3994
|
-
function
|
|
3995
|
-
return e == null ? !1 :
|
|
4015
|
+
function Rt(e) {
|
|
4016
|
+
return e == null ? !1 : ut(e).some(
|
|
3996
4017
|
(t) => {
|
|
3997
4018
|
var r;
|
|
3998
|
-
return (r =
|
|
4019
|
+
return (r = Wr(t)) == null ? void 0 : r.size;
|
|
3999
4020
|
}
|
|
4000
4021
|
);
|
|
4001
4022
|
}
|
|
4002
|
-
function
|
|
4023
|
+
function Yi(e, t) {
|
|
4003
4024
|
return Promise.all(
|
|
4004
|
-
t.map((n) => (
|
|
4005
|
-
).then((n) =>
|
|
4006
|
-
}
|
|
4007
|
-
const
|
|
4008
|
-
function
|
|
4009
|
-
if (!
|
|
4010
|
-
return e in
|
|
4011
|
-
const t =
|
|
4012
|
-
return
|
|
4025
|
+
t.map((n) => (Zi(e, n), n().then((i) => i.default || i)))
|
|
4026
|
+
).then((n) => Vr(e, ...n));
|
|
4027
|
+
}
|
|
4028
|
+
const Re = {};
|
|
4029
|
+
function Xr(e) {
|
|
4030
|
+
if (!Rt(e))
|
|
4031
|
+
return e in Re ? Re[e] : Promise.resolve();
|
|
4032
|
+
const t = Qi(e);
|
|
4033
|
+
return Re[e] = Promise.all(
|
|
4013
4034
|
t.map(
|
|
4014
|
-
([r, n]) =>
|
|
4035
|
+
([r, n]) => Yi(r, n)
|
|
4015
4036
|
)
|
|
4016
4037
|
).then(() => {
|
|
4017
|
-
if (
|
|
4018
|
-
return
|
|
4019
|
-
delete
|
|
4020
|
-
}),
|
|
4038
|
+
if (Rt(e))
|
|
4039
|
+
return Xr(e);
|
|
4040
|
+
delete Re[e];
|
|
4041
|
+
}), Re[e];
|
|
4021
4042
|
}
|
|
4022
|
-
const
|
|
4043
|
+
const qi = {
|
|
4023
4044
|
number: {
|
|
4024
4045
|
scientific: { notation: "scientific" },
|
|
4025
4046
|
engineering: { notation: "engineering" },
|
|
@@ -4048,135 +4069,135 @@ const Qi = {
|
|
|
4048
4069
|
timeZoneName: "short"
|
|
4049
4070
|
}
|
|
4050
4071
|
}
|
|
4051
|
-
},
|
|
4072
|
+
}, Ki = {
|
|
4052
4073
|
fallbackLocale: null,
|
|
4053
4074
|
loadingDelay: 200,
|
|
4054
|
-
formats:
|
|
4075
|
+
formats: qi,
|
|
4055
4076
|
warnOnMissingMessages: !0,
|
|
4056
4077
|
handleMissingMessage: void 0,
|
|
4057
4078
|
ignoreTag: !0
|
|
4058
|
-
},
|
|
4059
|
-
function
|
|
4060
|
-
return
|
|
4079
|
+
}, eo = Ki;
|
|
4080
|
+
function Be() {
|
|
4081
|
+
return eo;
|
|
4061
4082
|
}
|
|
4062
|
-
const
|
|
4063
|
-
var
|
|
4083
|
+
const vt = ot(!1);
|
|
4084
|
+
var to = Object.defineProperty, ro = Object.defineProperties, no = Object.getOwnPropertyDescriptors, ar = Object.getOwnPropertySymbols, io = Object.prototype.hasOwnProperty, oo = Object.prototype.propertyIsEnumerable, ur = (e, t, r) => t in e ? to(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, so = (e, t) => {
|
|
4064
4085
|
for (var r in t || (t = {}))
|
|
4065
|
-
|
|
4066
|
-
if (
|
|
4067
|
-
for (var r of
|
|
4068
|
-
|
|
4086
|
+
io.call(t, r) && ur(e, r, t[r]);
|
|
4087
|
+
if (ar)
|
|
4088
|
+
for (var r of ar(t))
|
|
4089
|
+
oo.call(t, r) && ur(e, r, t[r]);
|
|
4069
4090
|
return e;
|
|
4070
|
-
},
|
|
4071
|
-
let
|
|
4072
|
-
const
|
|
4073
|
-
function
|
|
4091
|
+
}, ao = (e, t) => ro(e, no(t));
|
|
4092
|
+
let Ut;
|
|
4093
|
+
const rt = ot(null);
|
|
4094
|
+
function lr(e) {
|
|
4074
4095
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4075
4096
|
}
|
|
4076
|
-
function
|
|
4077
|
-
const r =
|
|
4078
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4097
|
+
function ut(e, t = Be().fallbackLocale) {
|
|
4098
|
+
const r = lr(e);
|
|
4099
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...lr(t)])] : r;
|
|
4079
4100
|
}
|
|
4080
4101
|
function fe() {
|
|
4081
|
-
return
|
|
4102
|
+
return Ut ?? void 0;
|
|
4082
4103
|
}
|
|
4083
|
-
|
|
4084
|
-
|
|
4104
|
+
rt.subscribe((e) => {
|
|
4105
|
+
Ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4085
4106
|
});
|
|
4086
|
-
const
|
|
4087
|
-
if (e &&
|
|
4088
|
-
const { loadingDelay: t } =
|
|
4107
|
+
const uo = (e) => {
|
|
4108
|
+
if (e && Ji(e) && Rt(e)) {
|
|
4109
|
+
const { loadingDelay: t } = Be();
|
|
4089
4110
|
let r;
|
|
4090
4111
|
return typeof window < "u" && fe() != null && t ? r = window.setTimeout(
|
|
4091
|
-
() =>
|
|
4112
|
+
() => vt.set(!0),
|
|
4092
4113
|
t
|
|
4093
|
-
) :
|
|
4094
|
-
|
|
4114
|
+
) : vt.set(!0), Xr(e).then(() => {
|
|
4115
|
+
rt.set(e);
|
|
4095
4116
|
}).finally(() => {
|
|
4096
|
-
clearTimeout(r),
|
|
4117
|
+
clearTimeout(r), vt.set(!1);
|
|
4097
4118
|
});
|
|
4098
4119
|
}
|
|
4099
|
-
return
|
|
4100
|
-
},
|
|
4101
|
-
set:
|
|
4102
|
-
}),
|
|
4120
|
+
return rt.set(e);
|
|
4121
|
+
}, Oe = ao(so({}, rt), {
|
|
4122
|
+
set: uo
|
|
4123
|
+
}), lt = (e) => {
|
|
4103
4124
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4104
4125
|
return (n) => {
|
|
4105
4126
|
const i = JSON.stringify(n);
|
|
4106
4127
|
return i in t ? t[i] : t[i] = e(n);
|
|
4107
4128
|
};
|
|
4108
4129
|
};
|
|
4109
|
-
var
|
|
4130
|
+
var lo = Object.defineProperty, nt = Object.getOwnPropertySymbols, zr = Object.prototype.hasOwnProperty, Jr = Object.prototype.propertyIsEnumerable, hr = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, kt = (e, t) => {
|
|
4110
4131
|
for (var r in t || (t = {}))
|
|
4111
|
-
|
|
4112
|
-
if (
|
|
4113
|
-
for (var r of
|
|
4114
|
-
|
|
4132
|
+
zr.call(t, r) && hr(e, r, t[r]);
|
|
4133
|
+
if (nt)
|
|
4134
|
+
for (var r of nt(t))
|
|
4135
|
+
Jr.call(t, r) && hr(e, r, t[r]);
|
|
4115
4136
|
return e;
|
|
4116
|
-
},
|
|
4137
|
+
}, Le = (e, t) => {
|
|
4117
4138
|
var r = {};
|
|
4118
4139
|
for (var n in e)
|
|
4119
|
-
|
|
4120
|
-
if (e != null &&
|
|
4121
|
-
for (var n of
|
|
4122
|
-
t.indexOf(n) < 0 &&
|
|
4140
|
+
zr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4141
|
+
if (e != null && nt)
|
|
4142
|
+
for (var n of nt(e))
|
|
4143
|
+
t.indexOf(n) < 0 && Jr.call(e, n) && (r[n] = e[n]);
|
|
4123
4144
|
return r;
|
|
4124
4145
|
};
|
|
4125
|
-
const
|
|
4126
|
-
const { formats: r } =
|
|
4146
|
+
const ke = (e, t) => {
|
|
4147
|
+
const { formats: r } = Be();
|
|
4127
4148
|
if (e in r && t in r[e])
|
|
4128
4149
|
return r[e][t];
|
|
4129
4150
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4130
|
-
},
|
|
4151
|
+
}, ho = lt(
|
|
4131
4152
|
(e) => {
|
|
4132
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4153
|
+
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
4133
4154
|
if (r == null)
|
|
4134
4155
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4135
|
-
return n && (i =
|
|
4156
|
+
return n && (i = ke("number", n)), new Intl.NumberFormat(r, i);
|
|
4136
4157
|
}
|
|
4137
|
-
),
|
|
4158
|
+
), co = lt(
|
|
4138
4159
|
(e) => {
|
|
4139
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4160
|
+
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
4140
4161
|
if (r == null)
|
|
4141
4162
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4142
|
-
return n ? i =
|
|
4163
|
+
return n ? i = ke("date", n) : Object.keys(i).length === 0 && (i = ke("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4143
4164
|
}
|
|
4144
|
-
),
|
|
4165
|
+
), fo = lt(
|
|
4145
4166
|
(e) => {
|
|
4146
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4167
|
+
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
4147
4168
|
if (r == null)
|
|
4148
4169
|
throw new Error(
|
|
4149
4170
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4150
4171
|
);
|
|
4151
|
-
return n ? i =
|
|
4172
|
+
return n ? i = ke("time", n) : Object.keys(i).length === 0 && (i = ke("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4152
4173
|
}
|
|
4153
|
-
),
|
|
4174
|
+
), po = (e = {}) => {
|
|
4154
4175
|
var t = e, {
|
|
4155
4176
|
locale: r = fe()
|
|
4156
|
-
} = t, n =
|
|
4177
|
+
} = t, n = Le(t, [
|
|
4157
4178
|
"locale"
|
|
4158
4179
|
]);
|
|
4159
|
-
return
|
|
4160
|
-
},
|
|
4180
|
+
return ho(kt({ locale: r }, n));
|
|
4181
|
+
}, mo = (e = {}) => {
|
|
4161
4182
|
var t = e, {
|
|
4162
4183
|
locale: r = fe()
|
|
4163
|
-
} = t, n =
|
|
4184
|
+
} = t, n = Le(t, [
|
|
4164
4185
|
"locale"
|
|
4165
4186
|
]);
|
|
4166
|
-
return
|
|
4167
|
-
},
|
|
4187
|
+
return co(kt({ locale: r }, n));
|
|
4188
|
+
}, bo = (e = {}) => {
|
|
4168
4189
|
var t = e, {
|
|
4169
4190
|
locale: r = fe()
|
|
4170
|
-
} = t, n =
|
|
4191
|
+
} = t, n = Le(t, [
|
|
4171
4192
|
"locale"
|
|
4172
4193
|
]);
|
|
4173
|
-
return
|
|
4174
|
-
},
|
|
4194
|
+
return fo(kt({ locale: r }, n));
|
|
4195
|
+
}, go = lt(
|
|
4175
4196
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4176
|
-
(e, t = fe()) => new
|
|
4177
|
-
ignoreTag:
|
|
4197
|
+
(e, t = fe()) => new Fi(e, t, Be().formats, {
|
|
4198
|
+
ignoreTag: Be().ignoreTag
|
|
4178
4199
|
})
|
|
4179
|
-
),
|
|
4200
|
+
), yo = (e, t = {}) => {
|
|
4180
4201
|
var r, n, i, o;
|
|
4181
4202
|
let s = t;
|
|
4182
4203
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4189,9 +4210,9 @@ const je = (e, t) => {
|
|
|
4189
4210
|
throw new Error(
|
|
4190
4211
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4191
4212
|
);
|
|
4192
|
-
let h =
|
|
4213
|
+
let h = $r(e, l);
|
|
4193
4214
|
if (!h)
|
|
4194
|
-
h = (o = (i = (n = (r =
|
|
4215
|
+
h = (o = (i = (n = (r = Be()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4195
4216
|
else if (typeof h != "string")
|
|
4196
4217
|
return console.warn(
|
|
4197
4218
|
`[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.`
|
|
@@ -4200,7 +4221,7 @@ const je = (e, t) => {
|
|
|
4200
4221
|
return h;
|
|
4201
4222
|
let c = h;
|
|
4202
4223
|
try {
|
|
4203
|
-
c =
|
|
4224
|
+
c = go(h, l).format(a);
|
|
4204
4225
|
} catch (p) {
|
|
4205
4226
|
p instanceof Error && console.warn(
|
|
4206
4227
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4208,21 +4229,21 @@ const je = (e, t) => {
|
|
|
4208
4229
|
);
|
|
4209
4230
|
}
|
|
4210
4231
|
return c;
|
|
4211
|
-
},
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4232
|
+
}, vo = (e, t) => bo(t).format(e), _o = (e, t) => mo(t).format(e), Eo = (e, t) => po(t).format(e), xo = (e, t = fe()) => $r(e, t);
|
|
4233
|
+
Pe([Oe, Fe], () => yo);
|
|
4234
|
+
Pe([Oe], () => vo);
|
|
4235
|
+
Pe([Oe], () => _o);
|
|
4236
|
+
Pe([Oe], () => Eo);
|
|
4237
|
+
Pe([Oe, Fe], () => xo);
|
|
4217
4238
|
window.emWidgets = { topic: Nn };
|
|
4218
|
-
const
|
|
4219
|
-
function
|
|
4239
|
+
const So = (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));
|
|
4240
|
+
function To(e, t) {
|
|
4220
4241
|
if (e) {
|
|
4221
4242
|
const r = document.createElement("style");
|
|
4222
4243
|
r.innerHTML = t, e.appendChild(r);
|
|
4223
4244
|
}
|
|
4224
4245
|
}
|
|
4225
|
-
function
|
|
4246
|
+
function wo(e, t) {
|
|
4226
4247
|
const r = new URL(t);
|
|
4227
4248
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4228
4249
|
const i = document.createElement("style");
|
|
@@ -4231,7 +4252,7 @@ function So(e, t) {
|
|
|
4231
4252
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4232
4253
|
});
|
|
4233
4254
|
}
|
|
4234
|
-
function
|
|
4255
|
+
function Ho(e, t, r) {
|
|
4235
4256
|
if (window.emMessageBus) {
|
|
4236
4257
|
const n = document.createElement("style");
|
|
4237
4258
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4239,13 +4260,13 @@ function To(e, t, r) {
|
|
|
4239
4260
|
});
|
|
4240
4261
|
}
|
|
4241
4262
|
}
|
|
4242
|
-
function
|
|
4243
|
-
|
|
4263
|
+
function cr(e, t) {
|
|
4264
|
+
Vr(e, t);
|
|
4244
4265
|
}
|
|
4245
|
-
function
|
|
4246
|
-
|
|
4266
|
+
function Ao(e) {
|
|
4267
|
+
Oe.set(e);
|
|
4247
4268
|
}
|
|
4248
|
-
const
|
|
4269
|
+
const fr = {
|
|
4249
4270
|
en: {
|
|
4250
4271
|
loadingText: "Loading, please wait..."
|
|
4251
4272
|
},
|
|
@@ -4283,27 +4304,27 @@ const hr = {
|
|
|
4283
4304
|
loadingText: "Loading, please wait..."
|
|
4284
4305
|
}
|
|
4285
4306
|
};
|
|
4286
|
-
function
|
|
4287
|
-
|
|
4307
|
+
function Bo(e) {
|
|
4308
|
+
Yr(e, "svelte-hxpfl0", ':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title ui-image img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:auto;gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:44px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title ui-image img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--color-primary, #D0046C);border-color:var(--emw--color-primary, #D0046C) transparent var(--emw--color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4288
4309
|
}
|
|
4289
|
-
function
|
|
4310
|
+
function pr(e, t, r) {
|
|
4290
4311
|
const n = e.slice();
|
|
4291
4312
|
return n[53] = t[r], n[55] = r, n;
|
|
4292
4313
|
}
|
|
4293
|
-
function
|
|
4314
|
+
function Po(e) {
|
|
4294
4315
|
let t, r, n, i, o, s, a, l, u, h, c, p, g;
|
|
4295
|
-
function y(S,
|
|
4316
|
+
function y(S, T) {
|
|
4296
4317
|
return (
|
|
4297
4318
|
/*tabletView*/
|
|
4298
|
-
S[6] ? Co :
|
|
4319
|
+
S[6] ? Co : Io
|
|
4299
4320
|
);
|
|
4300
4321
|
}
|
|
4301
4322
|
let m = y(e), _ = m(e);
|
|
4302
4323
|
return {
|
|
4303
4324
|
c() {
|
|
4304
4325
|
t = b("div"), r = b("div"), n = b("div"), i = b("div"), o = q(), s = b("div"), _.c(), a = q(), l = b("div"), u = b("ui-image"), v(i, "class", "vendorLogo"), Je(i, "background-image", "url(" + /*vendorIcon*/
|
|
4305
|
-
e[7] + ")"), v(s, "class", "displayContainer"),
|
|
4306
|
-
e[12]) ||
|
|
4326
|
+
e[7] + ")"), v(s, "class", "displayContainer"), G(u.src, h = /*titleLogoImg*/
|
|
4327
|
+
e[12]) || P(u, "src", h), P(u, "alt", ""), v(l, "class", "title"), v(n, "class", c = "mainWrapper " + /*visualstructure*/
|
|
4307
4328
|
e[0] + " " + /*mobileView*/
|
|
4308
4329
|
(e[5] && !/*tabletView*/
|
|
4309
4330
|
e[6] ? "mobile" : (
|
|
@@ -4312,27 +4333,27 @@ function Ao(e) {
|
|
|
4312
4333
|
))), Je(n, "background", "url(" + /*backgroundImg*/
|
|
4313
4334
|
e[11] + ")"), v(r, "class", "jackpotBanner"), v(t, "class", "");
|
|
4314
4335
|
},
|
|
4315
|
-
m(S,
|
|
4316
|
-
|
|
4336
|
+
m(S, T) {
|
|
4337
|
+
ee(S, t, T), d(t, r), d(r, n), d(n, i), d(n, o), d(n, s), _.m(s, null), d(n, a), d(n, l), d(l, u), p || (g = rn(
|
|
4317
4338
|
r,
|
|
4318
4339
|
"click",
|
|
4319
4340
|
/*click_handler*/
|
|
4320
4341
|
e[33]
|
|
4321
4342
|
), p = !0);
|
|
4322
4343
|
},
|
|
4323
|
-
p(S,
|
|
4324
|
-
|
|
4344
|
+
p(S, T) {
|
|
4345
|
+
T[0] & /*vendorIcon*/
|
|
4325
4346
|
128 && Je(i, "background-image", "url(" + /*vendorIcon*/
|
|
4326
|
-
S[7] + ")"), m === (m = y(S)) && _ ? _.p(S,
|
|
4327
|
-
4096 && !
|
|
4328
|
-
S[12]) &&
|
|
4347
|
+
S[7] + ")"), m === (m = y(S)) && _ ? _.p(S, T) : (_.d(1), _ = m(S), _ && (_.c(), _.m(s, null))), T[0] & /*titleLogoImg*/
|
|
4348
|
+
4096 && !G(u.src, h = /*titleLogoImg*/
|
|
4349
|
+
S[12]) && P(u, "src", h), T[0] & /*visualstructure, mobileView, tabletView*/
|
|
4329
4350
|
97 && c !== (c = "mainWrapper " + /*visualstructure*/
|
|
4330
4351
|
S[0] + " " + /*mobileView*/
|
|
4331
4352
|
(S[5] && !/*tabletView*/
|
|
4332
4353
|
S[6] ? "mobile" : (
|
|
4333
4354
|
/*tabletView*/
|
|
4334
4355
|
S[6] ? "tablet" : ""
|
|
4335
|
-
))) && v(n, "class", c),
|
|
4356
|
+
))) && v(n, "class", c), T[0] & /*backgroundImg*/
|
|
4336
4357
|
2048 && Je(n, "background", "url(" + /*backgroundImg*/
|
|
4337
4358
|
S[11] + ")");
|
|
4338
4359
|
},
|
|
@@ -4341,14 +4362,14 @@ function Ao(e) {
|
|
|
4341
4362
|
}
|
|
4342
4363
|
};
|
|
4343
4364
|
}
|
|
4344
|
-
function
|
|
4365
|
+
function Oo(e) {
|
|
4345
4366
|
let t;
|
|
4346
4367
|
return {
|
|
4347
4368
|
c() {
|
|
4348
4369
|
t = b("div"), v(t, "class", "LoadingSpinner");
|
|
4349
4370
|
},
|
|
4350
4371
|
m(r, n) {
|
|
4351
|
-
|
|
4372
|
+
ee(r, t, n);
|
|
4352
4373
|
},
|
|
4353
4374
|
p: k,
|
|
4354
4375
|
d(r) {
|
|
@@ -4356,14 +4377,14 @@ function Bo(e) {
|
|
|
4356
4377
|
}
|
|
4357
4378
|
};
|
|
4358
4379
|
}
|
|
4359
|
-
function
|
|
4380
|
+
function Lo(e) {
|
|
4360
4381
|
let t;
|
|
4361
4382
|
return {
|
|
4362
4383
|
c() {
|
|
4363
4384
|
t = b("p"), t.textContent = "500 Server error";
|
|
4364
4385
|
},
|
|
4365
4386
|
m(r, n) {
|
|
4366
|
-
|
|
4387
|
+
ee(r, t, n);
|
|
4367
4388
|
},
|
|
4368
4389
|
p: k,
|
|
4369
4390
|
d(r) {
|
|
@@ -4384,7 +4405,7 @@ function Co(e) {
|
|
|
4384
4405
|
/*formattedJackpotValues*/
|
|
4385
4406
|
e[8][0]
|
|
4386
4407
|
)) + ""
|
|
4387
|
-
), p, g, y, m, _, S,
|
|
4408
|
+
), p, g, y, m, _, S, T, A, U, I, $ = (
|
|
4388
4409
|
/*formattedLabels*/
|
|
4389
4410
|
e[9][1] + ""
|
|
4390
4411
|
), X, z, ue, ne = (
|
|
@@ -4396,10 +4417,10 @@ function Co(e) {
|
|
|
4396
4417
|
/*formattedJackpotValues*/
|
|
4397
4418
|
e[8][1]
|
|
4398
4419
|
)) + ""
|
|
4399
|
-
), ie,
|
|
4420
|
+
), ie, Ce, le, pe, de, J, R, Z, F, oe, V, te = (
|
|
4400
4421
|
/*formattedLabels*/
|
|
4401
4422
|
e[9][2] + ""
|
|
4402
|
-
),
|
|
4423
|
+
), Ie, Q, me, be = (
|
|
4403
4424
|
/*realtimeupdate*/
|
|
4404
4425
|
(e[2] === "true" ? (
|
|
4405
4426
|
/*updatedJackpotValues*/
|
|
@@ -4408,10 +4429,10 @@ function Co(e) {
|
|
|
4408
4429
|
/*formattedJackpotValues*/
|
|
4409
4430
|
e[8][2]
|
|
4410
4431
|
)) + ""
|
|
4411
|
-
),
|
|
4432
|
+
), Ne, Ve, ge, ye, We, he, se, Y, ce, ve, _e = (
|
|
4412
4433
|
/*formattedLabels*/
|
|
4413
4434
|
e[9][3] + ""
|
|
4414
|
-
),
|
|
4435
|
+
), Me, f, H, N = (
|
|
4415
4436
|
/*realtimeupdate*/
|
|
4416
4437
|
(e[2] === "true" ? (
|
|
4417
4438
|
/*updatedJackpotValues*/
|
|
@@ -4420,129 +4441,129 @@ function Co(e) {
|
|
|
4420
4441
|
/*formattedJackpotValues*/
|
|
4421
4442
|
e[8][3]
|
|
4422
4443
|
)) + ""
|
|
4423
|
-
),
|
|
4444
|
+
), ht, Gt, Xe, ct;
|
|
4424
4445
|
return {
|
|
4425
4446
|
c() {
|
|
4426
4447
|
t = b("div"), r = b("div"), n = b("div"), i = b("ui-image"), s = b("span"), l = M(a), u = b("span"), h = b("span"), p = M(c), g = q(), y = b("span"), m = M(
|
|
4427
4448
|
/*currency*/
|
|
4428
4449
|
e[1]
|
|
4429
|
-
), _ = q(), S = b("div"),
|
|
4450
|
+
), _ = q(), S = b("div"), T = b("div"), A = b("ui-image"), I = b("span"), X = M($), z = b("span"), ue = b("span"), ie = M(ne), Ce = q(), le = b("span"), pe = M(
|
|
4430
4451
|
/*currency*/
|
|
4431
4452
|
e[1]
|
|
4432
|
-
), de = q(), J = b("div"), R = b("div"), Z = b("div"), F = b("ui-image"), V = b("span"),
|
|
4453
|
+
), de = q(), J = b("div"), R = b("div"), Z = b("div"), F = b("ui-image"), V = b("span"), Ie = M(te), Q = b("span"), me = b("span"), Ne = M(be), Ve = q(), ge = b("span"), ye = M(
|
|
4433
4454
|
/*currency*/
|
|
4434
4455
|
e[1]
|
|
4435
|
-
), We = q(), he = b("div"), se = b("div"), Y = b("ui-image"), ve = b("span"),
|
|
4456
|
+
), We = q(), he = b("div"), se = b("div"), Y = b("ui-image"), ve = b("span"), Me = M(_e), f = b("span"), H = b("span"), ht = M(N), Gt = q(), Xe = b("span"), ct = M(
|
|
4436
4457
|
/*currency*/
|
|
4437
4458
|
e[1]
|
|
4438
|
-
),
|
|
4439
|
-
e[10][0]) ||
|
|
4440
|
-
e[10][1]) ||
|
|
4441
|
-
e[10][2]) ||
|
|
4442
|
-
e[10][3]) ||
|
|
4459
|
+
), P(i, "class", "displayCardIcon"), G(i.src, o = /*caticons*/
|
|
4460
|
+
e[10][0]) || P(i, "src", o), P(i, "alt", ""), v(s, "class", "cardLabel"), v(n, "class", "iconWrapper"), v(h, "class", "jackpotValue"), v(y, "class", "jackpot-currency"), v(u, "class", "cardTextWrapper"), v(r, "class", "displayCard"), P(A, "class", "displayCardIcon"), G(A.src, U = /*caticons*/
|
|
4461
|
+
e[10][1]) || P(A, "src", U), P(A, "alt", ""), v(I, "class", "cardLabel"), v(T, "class", "iconWrapper"), v(ue, "class", "jackpotValue"), v(le, "class", "jackpot-currency"), v(z, "class", "cardTextWrapper"), v(S, "class", "displayCard"), v(t, "class", "pairWrapper"), P(F, "class", "displayCardIcon"), G(F.src, oe = /*caticons*/
|
|
4462
|
+
e[10][2]) || P(F, "src", oe), P(F, "alt", ""), v(V, "class", "cardLabel"), v(Z, "class", "iconWrapper"), v(me, "class", "jackpotValue"), v(ge, "class", "jackpot-currency"), v(Q, "class", "cardTextWrapper"), v(R, "class", "displayCard"), P(Y, "class", "displayCardIcon"), G(Y.src, ce = /*caticons*/
|
|
4463
|
+
e[10][3]) || P(Y, "src", ce), P(Y, "alt", ""), v(ve, "class", "cardLabel"), v(se, "class", "iconWrapper"), v(H, "class", "jackpotValue"), v(Xe, "class", "jackpot-currency"), v(f, "class", "cardTextWrapper"), v(he, "class", "displayCard"), v(J, "class", "pairWrapper");
|
|
4443
4464
|
},
|
|
4444
|
-
m(
|
|
4445
|
-
|
|
4465
|
+
m(w, C) {
|
|
4466
|
+
ee(w, t, C), d(t, r), d(r, n), d(n, i), d(n, s), d(s, l), d(r, u), d(u, h), d(h, p), d(u, g), d(u, y), d(y, m), d(t, _), d(t, S), d(S, T), d(T, A), d(T, I), d(I, X), d(S, z), d(z, ue), d(ue, ie), d(z, Ce), d(z, le), d(le, pe), ee(w, de, C), ee(w, J, C), d(J, R), d(R, Z), d(Z, F), d(Z, V), d(V, Ie), d(R, Q), d(Q, me), d(me, Ne), d(Q, Ve), d(Q, ge), d(ge, ye), d(J, We), d(J, he), d(he, se), d(se, Y), d(se, ve), d(ve, Me), d(he, f), d(f, H), d(H, ht), d(f, Gt), d(f, Xe), d(Xe, ct);
|
|
4446
4467
|
},
|
|
4447
|
-
p(
|
|
4448
|
-
|
|
4449
|
-
1024 && !
|
|
4450
|
-
|
|
4468
|
+
p(w, C) {
|
|
4469
|
+
C[0] & /*caticons*/
|
|
4470
|
+
1024 && !G(i.src, o = /*caticons*/
|
|
4471
|
+
w[10][0]) && P(i, "src", o), C[0] & /*formattedLabels*/
|
|
4451
4472
|
512 && a !== (a = /*formattedLabels*/
|
|
4452
|
-
|
|
4473
|
+
w[9][0] + "") && D(l, a), C[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4453
4474
|
16644 && c !== (c = /*realtimeupdate*/
|
|
4454
|
-
(
|
|
4475
|
+
(w[2] === "true" ? (
|
|
4455
4476
|
/*updatedJackpotValues*/
|
|
4456
|
-
|
|
4477
|
+
w[14][0]
|
|
4457
4478
|
) : (
|
|
4458
4479
|
/*formattedJackpotValues*/
|
|
4459
|
-
|
|
4460
|
-
)) + "") && D(p, c),
|
|
4480
|
+
w[8][0]
|
|
4481
|
+
)) + "") && D(p, c), C[0] & /*currency*/
|
|
4461
4482
|
2 && D(
|
|
4462
4483
|
m,
|
|
4463
4484
|
/*currency*/
|
|
4464
|
-
|
|
4465
|
-
),
|
|
4466
|
-
1024 && !
|
|
4467
|
-
|
|
4485
|
+
w[1]
|
|
4486
|
+
), C[0] & /*caticons*/
|
|
4487
|
+
1024 && !G(A.src, U = /*caticons*/
|
|
4488
|
+
w[10][1]) && P(A, "src", U), C[0] & /*formattedLabels*/
|
|
4468
4489
|
512 && $ !== ($ = /*formattedLabels*/
|
|
4469
|
-
|
|
4490
|
+
w[9][1] + "") && D(X, $), C[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4470
4491
|
16644 && ne !== (ne = /*realtimeupdate*/
|
|
4471
|
-
(
|
|
4492
|
+
(w[2] === "true" ? (
|
|
4472
4493
|
/*updatedJackpotValues*/
|
|
4473
|
-
|
|
4494
|
+
w[14][1]
|
|
4474
4495
|
) : (
|
|
4475
4496
|
/*formattedJackpotValues*/
|
|
4476
|
-
|
|
4477
|
-
)) + "") && D(ie, ne),
|
|
4497
|
+
w[8][1]
|
|
4498
|
+
)) + "") && D(ie, ne), C[0] & /*currency*/
|
|
4478
4499
|
2 && D(
|
|
4479
4500
|
pe,
|
|
4480
4501
|
/*currency*/
|
|
4481
|
-
|
|
4482
|
-
),
|
|
4483
|
-
1024 && !
|
|
4484
|
-
|
|
4485
|
-
512 &&
|
|
4486
|
-
|
|
4502
|
+
w[1]
|
|
4503
|
+
), C[0] & /*caticons*/
|
|
4504
|
+
1024 && !G(F.src, oe = /*caticons*/
|
|
4505
|
+
w[10][2]) && P(F, "src", oe), C[0] & /*formattedLabels*/
|
|
4506
|
+
512 && te !== (te = /*formattedLabels*/
|
|
4507
|
+
w[9][2] + "") && D(Ie, te), C[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4487
4508
|
16644 && be !== (be = /*realtimeupdate*/
|
|
4488
|
-
(
|
|
4509
|
+
(w[2] === "true" ? (
|
|
4489
4510
|
/*updatedJackpotValues*/
|
|
4490
|
-
|
|
4511
|
+
w[14][2]
|
|
4491
4512
|
) : (
|
|
4492
4513
|
/*formattedJackpotValues*/
|
|
4493
|
-
|
|
4494
|
-
)) + "") && D(
|
|
4514
|
+
w[8][2]
|
|
4515
|
+
)) + "") && D(Ne, be), C[0] & /*currency*/
|
|
4495
4516
|
2 && D(
|
|
4496
4517
|
ye,
|
|
4497
4518
|
/*currency*/
|
|
4498
|
-
|
|
4499
|
-
),
|
|
4500
|
-
1024 && !
|
|
4501
|
-
|
|
4519
|
+
w[1]
|
|
4520
|
+
), C[0] & /*caticons*/
|
|
4521
|
+
1024 && !G(Y.src, ce = /*caticons*/
|
|
4522
|
+
w[10][3]) && P(Y, "src", ce), C[0] & /*formattedLabels*/
|
|
4502
4523
|
512 && _e !== (_e = /*formattedLabels*/
|
|
4503
|
-
|
|
4524
|
+
w[9][3] + "") && D(Me, _e), C[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4504
4525
|
16644 && N !== (N = /*realtimeupdate*/
|
|
4505
|
-
(
|
|
4526
|
+
(w[2] === "true" ? (
|
|
4506
4527
|
/*updatedJackpotValues*/
|
|
4507
|
-
|
|
4528
|
+
w[14][3]
|
|
4508
4529
|
) : (
|
|
4509
4530
|
/*formattedJackpotValues*/
|
|
4510
|
-
|
|
4511
|
-
)) + "") && D(
|
|
4531
|
+
w[8][3]
|
|
4532
|
+
)) + "") && D(ht, N), C[0] & /*currency*/
|
|
4512
4533
|
2 && D(
|
|
4513
|
-
|
|
4534
|
+
ct,
|
|
4514
4535
|
/*currency*/
|
|
4515
|
-
|
|
4536
|
+
w[1]
|
|
4516
4537
|
);
|
|
4517
4538
|
},
|
|
4518
|
-
d(
|
|
4519
|
-
|
|
4539
|
+
d(w) {
|
|
4540
|
+
w && (W(t), W(de), W(J));
|
|
4520
4541
|
}
|
|
4521
4542
|
};
|
|
4522
4543
|
}
|
|
4523
|
-
function
|
|
4524
|
-
let t, r =
|
|
4544
|
+
function Io(e) {
|
|
4545
|
+
let t, r = Vt(Array(4)), n = [];
|
|
4525
4546
|
for (let i = 0; i < r.length; i += 1)
|
|
4526
|
-
n[i] =
|
|
4547
|
+
n[i] = dr(pr(e, r, i));
|
|
4527
4548
|
return {
|
|
4528
4549
|
c() {
|
|
4529
4550
|
for (let i = 0; i < n.length; i += 1)
|
|
4530
4551
|
n[i].c();
|
|
4531
|
-
t =
|
|
4552
|
+
t = tn();
|
|
4532
4553
|
},
|
|
4533
4554
|
m(i, o) {
|
|
4534
4555
|
for (let s = 0; s < n.length; s += 1)
|
|
4535
4556
|
n[s] && n[s].m(i, o);
|
|
4536
|
-
|
|
4557
|
+
ee(i, t, o);
|
|
4537
4558
|
},
|
|
4538
4559
|
p(i, o) {
|
|
4539
4560
|
if (o[0] & /*currency, realtimeupdate, updatedJackpotValues, formattedJackpotValues, formattedLabels, caticons*/
|
|
4540
4561
|
18182) {
|
|
4541
|
-
r =
|
|
4562
|
+
r = Vt(Array(4));
|
|
4542
4563
|
let s;
|
|
4543
4564
|
for (s = 0; s < r.length; s += 1) {
|
|
4544
|
-
const a =
|
|
4545
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4565
|
+
const a = pr(i, r, s);
|
|
4566
|
+
n[s] ? n[s].p(a, o) : (n[s] = dr(a), n[s].c(), n[s].m(t.parentNode, t));
|
|
4546
4567
|
}
|
|
4547
4568
|
for (; s < n.length; s += 1)
|
|
4548
4569
|
n[s].d(1);
|
|
@@ -4550,11 +4571,11 @@ function Lo(e) {
|
|
|
4550
4571
|
}
|
|
4551
4572
|
},
|
|
4552
4573
|
d(i) {
|
|
4553
|
-
i && W(t),
|
|
4574
|
+
i && W(t), en(n, i);
|
|
4554
4575
|
}
|
|
4555
4576
|
};
|
|
4556
4577
|
}
|
|
4557
|
-
function
|
|
4578
|
+
function dr(e) {
|
|
4558
4579
|
let t, r, n, i, o, s = (
|
|
4559
4580
|
/*formattedLabels*/
|
|
4560
4581
|
e[9][
|
|
@@ -4582,22 +4603,22 @@ function fr(e) {
|
|
|
4582
4603
|
t = b("div"), r = b("div"), n = b("ui-image"), o = b("span"), a = M(s), l = b("span"), u = b("span"), c = M(h), p = q(), g = b("span"), y = M(
|
|
4583
4604
|
/*currency*/
|
|
4584
4605
|
e[1]
|
|
4585
|
-
),
|
|
4606
|
+
), P(n, "class", "displayCardIcon"), G(n.src, i = /*caticons*/
|
|
4586
4607
|
e[10][
|
|
4587
4608
|
/*i*/
|
|
4588
4609
|
e[55]
|
|
4589
|
-
]) ||
|
|
4610
|
+
]) || P(n, "src", i), P(n, "alt", ""), v(o, "class", "cardLabel"), v(r, "class", "iconWrapper"), v(u, "class", "jackpotValue"), v(g, "class", "jackpot-currency"), v(l, "class", "cardTextWrapper"), v(t, "class", "displayCard");
|
|
4590
4611
|
},
|
|
4591
4612
|
m(m, _) {
|
|
4592
|
-
|
|
4613
|
+
ee(m, t, _), d(t, r), d(r, n), d(r, o), d(o, a), d(t, l), d(l, u), d(u, c), d(l, p), d(l, g), d(g, y);
|
|
4593
4614
|
},
|
|
4594
4615
|
p(m, _) {
|
|
4595
4616
|
_[0] & /*caticons*/
|
|
4596
|
-
1024 && !
|
|
4617
|
+
1024 && !G(n.src, i = /*caticons*/
|
|
4597
4618
|
m[10][
|
|
4598
4619
|
/*i*/
|
|
4599
4620
|
m[55]
|
|
4600
|
-
]) &&
|
|
4621
|
+
]) && P(n, "src", i), _[0] & /*formattedLabels*/
|
|
4601
4622
|
512 && s !== (s = /*formattedLabels*/
|
|
4602
4623
|
m[9][
|
|
4603
4624
|
/*i*/
|
|
@@ -4628,14 +4649,14 @@ function fr(e) {
|
|
|
4628
4649
|
}
|
|
4629
4650
|
};
|
|
4630
4651
|
}
|
|
4631
|
-
function
|
|
4652
|
+
function No(e) {
|
|
4632
4653
|
let t;
|
|
4633
4654
|
function r(o, s) {
|
|
4634
4655
|
return (
|
|
4635
4656
|
/*hasErrors*/
|
|
4636
|
-
o[13] ?
|
|
4657
|
+
o[13] ? Lo : (
|
|
4637
4658
|
/*isLoading*/
|
|
4638
|
-
o[4] ?
|
|
4659
|
+
o[4] ? Oo : Po
|
|
4639
4660
|
)
|
|
4640
4661
|
);
|
|
4641
4662
|
}
|
|
@@ -4645,7 +4666,7 @@ function Io(e) {
|
|
|
4645
4666
|
t = b("div"), i.c();
|
|
4646
4667
|
},
|
|
4647
4668
|
m(o, s) {
|
|
4648
|
-
|
|
4669
|
+
ee(o, t, s), i.m(t, null), e[34](t);
|
|
4649
4670
|
},
|
|
4650
4671
|
p(o, s) {
|
|
4651
4672
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4657,30 +4678,30 @@ function Io(e) {
|
|
|
4657
4678
|
}
|
|
4658
4679
|
};
|
|
4659
4680
|
}
|
|
4660
|
-
function
|
|
4661
|
-
let { visualstructure: n = "" } = t, { title: i = "" } = t, { caticon0: o = "" } = t, { caticon1: s = "" } = t, { caticon2: a = "" } = t, { caticon3: l = "" } = t, { iconlabels: u = "" } = t, { backgroundsrc: h = "" } = t, { currency: c = "" } = t, { backgroundsrcmobile: p = "" } = t, { titlelogopath: g = "" } = t, { lang: y = "en" } = t, { clientstyling: m = "" } = t, { clientstylingurl: _ = "" } = t, { translationurl: S = "" } = t, { endpoint:
|
|
4662
|
-
const
|
|
4663
|
-
fetch(S).then((
|
|
4664
|
-
Object.keys(
|
|
4665
|
-
|
|
4681
|
+
function Mo(e, t, r) {
|
|
4682
|
+
let { visualstructure: n = "" } = t, { title: i = "" } = t, { caticon0: o = "" } = t, { caticon1: s = "" } = t, { caticon2: a = "" } = t, { caticon3: l = "" } = t, { iconlabels: u = "" } = t, { backgroundsrc: h = "" } = t, { currency: c = "" } = t, { backgroundsrcmobile: p = "" } = t, { titlelogopath: g = "" } = t, { lang: y = "en" } = t, { clientstyling: m = "" } = t, { clientstylingurl: _ = "" } = t, { translationurl: S = "" } = t, { endpoint: T = "" } = t, { gameid: A = "" } = t, { mbsource: U } = t, { realtimeupdate: I = "false" } = t, $ = window.navigator.userAgent, X = !1, z = !1, ue = "", ne = [], ie = [], Ce = [], le = [], pe = [], de = "", J = "", R, Z = !0, F = !1, oe, V = null, te = [];
|
|
4683
|
+
const Ie = () => {
|
|
4684
|
+
fetch(S).then((H) => H.json()).then((H) => {
|
|
4685
|
+
Object.keys(H).forEach((N) => {
|
|
4686
|
+
cr(N, H[N]);
|
|
4666
4687
|
});
|
|
4667
|
-
}).catch((
|
|
4668
|
-
console.log(
|
|
4688
|
+
}).catch((H) => {
|
|
4689
|
+
console.log(H);
|
|
4669
4690
|
});
|
|
4670
4691
|
};
|
|
4671
|
-
Object.keys(
|
|
4672
|
-
|
|
4692
|
+
Object.keys(fr).forEach((f) => {
|
|
4693
|
+
cr(f, fr[f]);
|
|
4673
4694
|
});
|
|
4674
4695
|
const Q = ["typeSpread", "typeLeft"], me = (f) => {
|
|
4675
|
-
const
|
|
4676
|
-
|
|
4696
|
+
const H = f?.items[0]?.additionalData;
|
|
4697
|
+
H && Object.values(H).forEach((N) => ne.push(+N));
|
|
4677
4698
|
}, be = (f) => {
|
|
4678
4699
|
r(7, ue = f?.items[0]?.vendorLogo || "");
|
|
4679
|
-
},
|
|
4680
|
-
if (
|
|
4681
|
-
let f = new URL(`${
|
|
4682
|
-
f.searchParams.append("filter", `id=${
|
|
4683
|
-
r(4, Z = !1), oe = N, ie.includes(
|
|
4700
|
+
}, Ne = () => {
|
|
4701
|
+
if (T && y && c) {
|
|
4702
|
+
let f = new URL(`${T}/v1/casino/jackpots`);
|
|
4703
|
+
f.searchParams.append("filter", `id=${A}`), f.searchParams.append("language", y), f.searchParams.append("additionalDataCurrency", c), fetch(f.href).then((H) => H.json().then((N) => {
|
|
4704
|
+
r(4, Z = !1), oe = N, ie.includes(A) && (me(oe), be(oe));
|
|
4684
4705
|
}).catch((N) => {
|
|
4685
4706
|
r(13, F = !0), r(4, Z = !1), console.error(N);
|
|
4686
4707
|
}).finally(() => {
|
|
@@ -4691,72 +4712,72 @@ function Oo(e, t, r) {
|
|
|
4691
4712
|
const f = R.getRootNode().host;
|
|
4692
4713
|
f.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: f } }));
|
|
4693
4714
|
}, ge = () => {
|
|
4694
|
-
let f = new URL(`${
|
|
4695
|
-
fetch(f.href).then((
|
|
4696
|
-
r(32, ie =
|
|
4715
|
+
let f = new URL(`${T}/v1/casino/jackpots/config`);
|
|
4716
|
+
fetch(f.href).then((H) => H.json()).then((H) => {
|
|
4717
|
+
r(32, ie = H.egtJackpotIds.map((N) => N));
|
|
4697
4718
|
});
|
|
4698
4719
|
}, ye = () => {
|
|
4699
|
-
r(5, X =
|
|
4700
|
-
}, We = (f) => f.map((
|
|
4720
|
+
r(5, X = So($) && window.innerHeight / window.innerWidth > 1), r(6, z = he()), ne.length !== 0 && r(8, Ce = We(ne)), r(9, le = u ? u.split(",").map((f) => f.trim().toUpperCase()) : new Array(4).fill("")), Q.includes(n.trim()) ? r(0, n = n.trim()) : (console.warn(`Invalid Attribute Value: "${n}" is not a valid value for the "visualstructure" attribute. Defaulting to "${Q[0]}"`), r(0, n = Q[0])), r(11, de = p && X && !z ? p : h), r(12, J = g), r(10, pe = [o, s, a, l]);
|
|
4721
|
+
}, We = (f) => f.map((H) => Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(H)), he = () => {
|
|
4701
4722
|
const f = window.innerHeight / window.innerWidth;
|
|
4702
4723
|
return 0.75 < f && f < 1.6;
|
|
4703
4724
|
}, se = () => {
|
|
4704
|
-
window.postMessage({ type: "JackpotBannerClicked", gameid:
|
|
4725
|
+
window.postMessage({ type: "JackpotBannerClicked", gameid: A }, window.location.href), typeof gtag == "function" && gtag("event", "JackpotBannerClicked", {
|
|
4705
4726
|
context: "JackpotBanner",
|
|
4706
|
-
gameId: `${
|
|
4727
|
+
gameId: `${A}`
|
|
4707
4728
|
});
|
|
4708
4729
|
}, Y = () => {
|
|
4709
|
-
|
|
4730
|
+
Ao(y);
|
|
4710
4731
|
}, ce = (f) => {
|
|
4711
|
-
const
|
|
4712
|
-
if (
|
|
4713
|
-
const N = Number(
|
|
4714
|
-
r(14,
|
|
4732
|
+
const H = JSON.parse(f.data);
|
|
4733
|
+
if (H.success && H.data.messageType === "UpdateEgtJackpotBalance" && H.data.jackpotAlias.split("_")[0] === A) {
|
|
4734
|
+
const N = Number(H.data.jackpotAlias.split("_")[1]) - 1;
|
|
4735
|
+
r(14, te[N] = H.data.data[`${c}`].balance.toString(), te);
|
|
4715
4736
|
}
|
|
4716
4737
|
}, ve = () => {
|
|
4717
|
-
|
|
4738
|
+
I === "true" && (ye(), r(14, te = ["", "", "", ""]), V = new EventSource(`${T}/v1/encoder/jackpot/*/update`), V.addEventListener("message", ce));
|
|
4718
4739
|
};
|
|
4719
|
-
|
|
4720
|
-
}),
|
|
4740
|
+
sn(() => () => {
|
|
4741
|
+
}), an(() => {
|
|
4721
4742
|
V && (V.removeEventListener("message", ce), V.close(), V = null);
|
|
4722
4743
|
});
|
|
4723
4744
|
const _e = () => se();
|
|
4724
|
-
function
|
|
4725
|
-
|
|
4745
|
+
function Me(f) {
|
|
4746
|
+
_t[f ? "unshift" : "push"](() => {
|
|
4726
4747
|
R = f, r(3, R);
|
|
4727
4748
|
});
|
|
4728
4749
|
}
|
|
4729
4750
|
return e.$$set = (f) => {
|
|
4730
|
-
"visualstructure" in f && r(0, n = f.visualstructure), "title" in f && r(16, i = f.title), "caticon0" in f && r(17, o = f.caticon0), "caticon1" in f && r(18, s = f.caticon1), "caticon2" in f && r(19, a = f.caticon2), "caticon3" in f && r(20, l = f.caticon3), "iconlabels" in f && r(21, u = f.iconlabels), "backgroundsrc" in f && r(22, h = f.backgroundsrc), "currency" in f && r(1, c = f.currency), "backgroundsrcmobile" in f && r(23, p = f.backgroundsrcmobile), "titlelogopath" in f && r(24, g = f.titlelogopath), "lang" in f && r(25, y = f.lang), "clientstyling" in f && r(26, m = f.clientstyling), "clientstylingurl" in f && r(27, _ = f.clientstylingurl), "translationurl" in f && r(28, S = f.translationurl), "endpoint" in f && r(29,
|
|
4751
|
+
"visualstructure" in f && r(0, n = f.visualstructure), "title" in f && r(16, i = f.title), "caticon0" in f && r(17, o = f.caticon0), "caticon1" in f && r(18, s = f.caticon1), "caticon2" in f && r(19, a = f.caticon2), "caticon3" in f && r(20, l = f.caticon3), "iconlabels" in f && r(21, u = f.iconlabels), "backgroundsrc" in f && r(22, h = f.backgroundsrc), "currency" in f && r(1, c = f.currency), "backgroundsrcmobile" in f && r(23, p = f.backgroundsrcmobile), "titlelogopath" in f && r(24, g = f.titlelogopath), "lang" in f && r(25, y = f.lang), "clientstyling" in f && r(26, m = f.clientstyling), "clientstylingurl" in f && r(27, _ = f.clientstylingurl), "translationurl" in f && r(28, S = f.translationurl), "endpoint" in f && r(29, T = f.endpoint), "gameid" in f && r(30, A = f.gameid), "mbsource" in f && r(31, U = f.mbsource), "realtimeupdate" in f && r(2, I = f.realtimeupdate);
|
|
4731
4752
|
}, e.$$.update = () => {
|
|
4732
4753
|
e.$$.dirty[0] & /*endpoint*/
|
|
4733
|
-
536870912 &&
|
|
4734
|
-
67108872 && m && R &&
|
|
4735
|
-
134217736 && _ && R &&
|
|
4754
|
+
536870912 && T && ge(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4755
|
+
67108872 && m && R && To(R, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4756
|
+
134217736 && _ && R && wo(R, _), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4736
4757
|
8 | e.$$.dirty[1] & /*mbsource*/
|
|
4737
|
-
1 && U && R &&
|
|
4758
|
+
1 && U && R && Ho(R, `${U}.Style`), e.$$.dirty[0] & /*endpoint, lang, currency*/
|
|
4738
4759
|
570425346 | e.$$.dirty[1] & /*validGameIds*/
|
|
4739
|
-
2 &&
|
|
4760
|
+
2 && T && y && c && ie.length > 0 && Ne(), e.$$.dirty[0] & /*currency, lang, isLoading*/
|
|
4740
4761
|
33554450 && c && y && !Z && ye(), e.$$.dirty[0] & /*lang*/
|
|
4741
4762
|
33554432 && y && Y(), e.$$.dirty[0] & /*translationurl*/
|
|
4742
|
-
268435456 && S &&
|
|
4743
|
-
4 &&
|
|
4763
|
+
268435456 && S && Ie(), e.$$.dirty[0] & /*realtimeupdate*/
|
|
4764
|
+
4 && I && ve();
|
|
4744
4765
|
}, [
|
|
4745
4766
|
n,
|
|
4746
4767
|
c,
|
|
4747
|
-
|
|
4768
|
+
I,
|
|
4748
4769
|
R,
|
|
4749
4770
|
Z,
|
|
4750
4771
|
X,
|
|
4751
4772
|
z,
|
|
4752
4773
|
ue,
|
|
4753
|
-
|
|
4774
|
+
Ce,
|
|
4754
4775
|
le,
|
|
4755
4776
|
pe,
|
|
4756
4777
|
de,
|
|
4757
4778
|
J,
|
|
4758
4779
|
F,
|
|
4759
|
-
|
|
4780
|
+
te,
|
|
4760
4781
|
se,
|
|
4761
4782
|
i,
|
|
4762
4783
|
o,
|
|
@@ -4771,22 +4792,22 @@ function Oo(e, t, r) {
|
|
|
4771
4792
|
m,
|
|
4772
4793
|
_,
|
|
4773
4794
|
S,
|
|
4774
|
-
|
|
4775
|
-
|
|
4795
|
+
T,
|
|
4796
|
+
A,
|
|
4776
4797
|
U,
|
|
4777
4798
|
ie,
|
|
4778
4799
|
_e,
|
|
4779
|
-
|
|
4800
|
+
Me
|
|
4780
4801
|
];
|
|
4781
4802
|
}
|
|
4782
|
-
class
|
|
4803
|
+
class Ro extends vn {
|
|
4783
4804
|
constructor(t) {
|
|
4784
|
-
super(),
|
|
4805
|
+
super(), gn(
|
|
4785
4806
|
this,
|
|
4786
4807
|
t,
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4808
|
+
Mo,
|
|
4809
|
+
No,
|
|
4810
|
+
br,
|
|
4790
4811
|
{
|
|
4791
4812
|
visualstructure: 0,
|
|
4792
4813
|
title: 16,
|
|
@@ -4808,7 +4829,7 @@ class No extends yn {
|
|
|
4808
4829
|
mbsource: 31,
|
|
4809
4830
|
realtimeupdate: 2
|
|
4810
4831
|
},
|
|
4811
|
-
|
|
4832
|
+
Bo,
|
|
4812
4833
|
[-1, -1]
|
|
4813
4834
|
);
|
|
4814
4835
|
}
|
|
@@ -4927,7 +4948,7 @@ class No extends yn {
|
|
|
4927
4948
|
this.$$set({ realtimeupdate: t }), L();
|
|
4928
4949
|
}
|
|
4929
4950
|
}
|
|
4930
|
-
|
|
4951
|
+
yn(Ro, { visualstructure: {}, title: {}, caticon0: {}, caticon1: {}, caticon2: {}, caticon3: {}, iconlabels: {}, backgroundsrc: {}, currency: {}, backgroundsrcmobile: {}, titlelogopath: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, endpoint: {}, gameid: {}, mbsource: {}, realtimeupdate: {} }, [], [], !0);
|
|
4931
4952
|
export {
|
|
4932
|
-
|
|
4953
|
+
Ro as C
|
|
4933
4954
|
};
|