@everymatrix/casino-jackpot-banner 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoJackpotBanner-C4ARReIt.cjs +18 -0
- package/components/{CasinoJackpotBanner-CBsjExI3.js → CasinoJackpotBanner-D3tmVTCd.js} +990 -1025
- package/components/{CasinoJackpotBanner-C06wch9B.js → CasinoJackpotBanner-alOj6ZGt.js} +1014 -1049
- 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-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-C7V2DWFg.js} +176 -176
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-DIpvPU9H.js} +187 -187
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-CYuYAlOX.js} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-D3_FGUyo.js} +1 -1
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-DJWD4G-S.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/components/CasinoJackpotBanner-B4RmJHSE.cjs +0 -18
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var an = Object.defineProperty, un = Object.defineProperties;
|
|
2
|
+
var ln = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Vt = Object.getOwnPropertySymbols;
|
|
4
|
+
var hn = Object.prototype.hasOwnProperty, cn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var bt = (e, t, r) => t in e ? an(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
hn.call(t, r) && bt(e, r, t[r]);
|
|
8
|
+
if (Vt)
|
|
9
|
+
for (var r of Vt(t))
|
|
10
|
+
cn.call(t, r) && bt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var Q = (e, t, r) => (
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, Xt = (e, t) => un(e, ln(t));
|
|
13
|
+
var Q = (e, t, r) => (bt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var zt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
a(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-D3_FGUyo.js";
|
|
31
31
|
function Z() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Hr(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Jt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function Je(e) {
|
|
40
|
+
e.forEach(Hr);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function kt(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ar(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
48
|
let tt;
|
|
49
49
|
function Y(e, t) {
|
|
50
50
|
return e === t ? !0 : (tt || (tt = document.createElement("a")), tt.href = t, e === tt.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function fn(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function dn(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -61,17 +61,17 @@ function gn(e, ...t) {
|
|
|
61
61
|
const r = e.subscribe(...t);
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function p(e, t) {
|
|
65
65
|
e.appendChild(t);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const n =
|
|
67
|
+
function pn(e, t, r) {
|
|
68
|
+
const n = mn(e);
|
|
69
69
|
if (!n.getElementById(t)) {
|
|
70
70
|
const i = m("style");
|
|
71
|
-
i.id = t, i.textContent = r,
|
|
71
|
+
i.id = t, i.textContent = r, bn(n, i);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function mn(e) {
|
|
75
75
|
if (!e)
|
|
76
76
|
return document;
|
|
77
77
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -81,20 +81,20 @@ function vn(e) {
|
|
|
81
81
|
t
|
|
82
82
|
) : e.ownerDocument;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function bn(e, t) {
|
|
85
|
+
return p(
|
|
86
86
|
/** @type {Document} */
|
|
87
87
|
e.head || e,
|
|
88
88
|
t
|
|
89
89
|
), t.sheet;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function F(e, t, r) {
|
|
92
92
|
e.insertBefore(t, r || null);
|
|
93
93
|
}
|
|
94
94
|
function D(e) {
|
|
95
95
|
e.parentNode && e.parentNode.removeChild(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function gn(e, t) {
|
|
98
98
|
for (let r = 0; r < e.length; r += 1)
|
|
99
99
|
e[r] && e[r].d(t);
|
|
100
100
|
}
|
|
@@ -107,20 +107,20 @@ function U(e) {
|
|
|
107
107
|
function I() {
|
|
108
108
|
return U(" ");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function yn() {
|
|
111
111
|
return U("");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function vn(e, t, r, n) {
|
|
114
114
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
115
115
|
}
|
|
116
116
|
function _(e, t, r) {
|
|
117
117
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function O(e, t, r) {
|
|
120
120
|
const n = t.toLowerCase();
|
|
121
121
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : _(e, t, r);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function _n(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
126
|
function j(e, t) {
|
|
@@ -130,7 +130,7 @@ function j(e, t) {
|
|
|
130
130
|
function rt(e, t, r, n) {
|
|
131
131
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function En(e) {
|
|
134
134
|
const t = {};
|
|
135
135
|
return e.childNodes.forEach(
|
|
136
136
|
/** @param {Element} node */
|
|
@@ -139,101 +139,101 @@ function wn(e) {
|
|
|
139
139
|
}
|
|
140
140
|
), t;
|
|
141
141
|
}
|
|
142
|
-
let
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
let We;
|
|
143
|
+
function Ve(e) {
|
|
144
|
+
We = e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
if (!
|
|
146
|
+
function Br() {
|
|
147
|
+
if (!We)
|
|
148
148
|
throw new Error("Function called outside component initialization");
|
|
149
|
-
return
|
|
149
|
+
return We;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function xn(e) {
|
|
152
|
+
Br().$$.on_mount.push(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
154
|
+
function Sn(e) {
|
|
155
|
+
Br().$$.on_destroy.push(e);
|
|
156
156
|
}
|
|
157
|
-
const Be = [],
|
|
157
|
+
const Be = [], Tt = [];
|
|
158
158
|
let Pe = [];
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
function
|
|
162
|
-
|
|
159
|
+
const Zt = [], Tn = /* @__PURE__ */ Promise.resolve();
|
|
160
|
+
let wt = !1;
|
|
161
|
+
function wn() {
|
|
162
|
+
wt || (wt = !0, Tn.then(L));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ht(e) {
|
|
165
165
|
Pe.push(e);
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const gt = /* @__PURE__ */ new Set();
|
|
168
168
|
let He = 0;
|
|
169
|
-
function
|
|
169
|
+
function L() {
|
|
170
170
|
if (He !== 0)
|
|
171
171
|
return;
|
|
172
|
-
const e =
|
|
172
|
+
const e = We;
|
|
173
173
|
do {
|
|
174
174
|
try {
|
|
175
175
|
for (; He < Be.length; ) {
|
|
176
176
|
const t = Be[He];
|
|
177
|
-
He++,
|
|
177
|
+
He++, Ve(t), Hn(t.$$);
|
|
178
178
|
}
|
|
179
179
|
} catch (t) {
|
|
180
180
|
throw Be.length = 0, He = 0, t;
|
|
181
181
|
}
|
|
182
|
-
for (
|
|
183
|
-
|
|
182
|
+
for (Ve(null), Be.length = 0, He = 0; Tt.length; )
|
|
183
|
+
Tt.pop()();
|
|
184
184
|
for (let t = 0; t < Pe.length; t += 1) {
|
|
185
185
|
const r = Pe[t];
|
|
186
|
-
|
|
186
|
+
gt.has(r) || (gt.add(r), r());
|
|
187
187
|
}
|
|
188
188
|
Pe.length = 0;
|
|
189
189
|
} while (Be.length);
|
|
190
|
-
for (;
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
for (; Zt.length; )
|
|
191
|
+
Zt.pop()();
|
|
192
|
+
wt = !1, gt.clear(), Ve(e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Hn(e) {
|
|
195
195
|
if (e.fragment !== null) {
|
|
196
|
-
e.update(),
|
|
196
|
+
e.update(), Je(e.before_update);
|
|
197
197
|
const t = e.dirty;
|
|
198
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
198
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ht);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function An(e) {
|
|
202
202
|
const t = [], r = [];
|
|
203
203
|
Pe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Pe = t;
|
|
204
204
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
207
|
-
e && e.i && (
|
|
205
|
+
const Bn = /* @__PURE__ */ new Set();
|
|
206
|
+
function Pn(e, t) {
|
|
207
|
+
e && e.i && (Bn.delete(e), e.i(t));
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Qt(e) {
|
|
210
210
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function On(e, t, r) {
|
|
213
213
|
const { fragment: n, after_update: i } = e.$$;
|
|
214
|
-
n && n.m(t, r),
|
|
215
|
-
const
|
|
216
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
217
|
-
}), i.forEach(
|
|
214
|
+
n && n.m(t, r), Ht(() => {
|
|
215
|
+
const s = e.$$.on_mount.map(Hr).filter(kt);
|
|
216
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Je(s), e.$$.on_mount = [];
|
|
217
|
+
}), i.forEach(Ht);
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Ln(e, t) {
|
|
220
220
|
const r = e.$$;
|
|
221
|
-
r.fragment !== null && (
|
|
221
|
+
r.fragment !== null && (An(r.after_update), Je(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
e.$$.dirty[0] === -1 && (Be.push(e),
|
|
223
|
+
function Cn(e, t) {
|
|
224
|
+
e.$$.dirty[0] === -1 && (Be.push(e), wn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
const l =
|
|
228
|
-
|
|
226
|
+
function In(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
227
|
+
const l = We;
|
|
228
|
+
Ve(e);
|
|
229
229
|
const u = e.$$ = {
|
|
230
230
|
fragment: null,
|
|
231
231
|
ctx: [],
|
|
232
232
|
// state
|
|
233
|
-
props:
|
|
233
|
+
props: s,
|
|
234
234
|
update: Z,
|
|
235
235
|
not_equal: i,
|
|
236
|
-
bound:
|
|
236
|
+
bound: Jt(),
|
|
237
237
|
// lifecycle
|
|
238
238
|
on_mount: [],
|
|
239
239
|
on_destroy: [],
|
|
@@ -242,28 +242,28 @@ function Un(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
242
242
|
after_update: [],
|
|
243
243
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
244
244
|
// everything else
|
|
245
|
-
callbacks:
|
|
245
|
+
callbacks: Jt(),
|
|
246
246
|
dirty: a,
|
|
247
247
|
skip_bound: !1,
|
|
248
248
|
root: t.target || l.$$.root
|
|
249
249
|
};
|
|
250
|
-
|
|
251
|
-
let
|
|
252
|
-
if (u.ctx = r
|
|
250
|
+
o && o(u.root);
|
|
251
|
+
let h = !1;
|
|
252
|
+
if (u.ctx = r(e, t.props || {}, (d, f, ...b) => {
|
|
253
253
|
const x = b.length ? b[0] : f;
|
|
254
|
-
return u.ctx && i(u.ctx[
|
|
255
|
-
})
|
|
254
|
+
return u.ctx && i(u.ctx[d], u.ctx[d] = x) && (!u.skip_bound && u.bound[d] && u.bound[d](x), h && Cn(e, d)), f;
|
|
255
|
+
}), u.update(), h = !0, Je(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
256
256
|
if (t.hydrate) {
|
|
257
|
-
const
|
|
258
|
-
u.fragment && u.fragment.l(
|
|
257
|
+
const d = _n(t.target);
|
|
258
|
+
u.fragment && u.fragment.l(d), d.forEach(D);
|
|
259
259
|
} else
|
|
260
260
|
u.fragment && u.fragment.c();
|
|
261
|
-
t.intro &&
|
|
261
|
+
t.intro && Pn(e.$$.fragment), On(e, t.target, t.anchor), L();
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
Ve(l);
|
|
264
264
|
}
|
|
265
|
-
let
|
|
266
|
-
typeof HTMLElement == "function" && (
|
|
265
|
+
let Pr;
|
|
266
|
+
typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
|
|
267
267
|
constructor(t, r, n) {
|
|
268
268
|
super();
|
|
269
269
|
/** The Svelte component constructor */
|
|
@@ -300,42 +300,42 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
connectedCallback() {
|
|
303
|
-
return
|
|
303
|
+
return zt(this, null, function* () {
|
|
304
304
|
if (this.$$cn = !0, !this.$$c) {
|
|
305
|
-
let t = function(
|
|
305
|
+
let t = function(s) {
|
|
306
306
|
return () => {
|
|
307
|
-
let
|
|
307
|
+
let o;
|
|
308
308
|
return {
|
|
309
309
|
c: function() {
|
|
310
|
-
|
|
310
|
+
o = m("slot"), s !== "default" && _(o, "name", s);
|
|
311
311
|
},
|
|
312
312
|
/**
|
|
313
313
|
* @param {HTMLElement} target
|
|
314
314
|
* @param {HTMLElement} [anchor]
|
|
315
315
|
*/
|
|
316
|
-
m: function(u,
|
|
317
|
-
|
|
316
|
+
m: function(u, h) {
|
|
317
|
+
F(u, o, h);
|
|
318
318
|
},
|
|
319
319
|
d: function(u) {
|
|
320
|
-
u && D(
|
|
320
|
+
u && D(o);
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
324
|
};
|
|
325
325
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
326
326
|
return;
|
|
327
|
-
const r = {}, n =
|
|
328
|
-
for (const
|
|
329
|
-
|
|
330
|
-
for (const
|
|
331
|
-
const
|
|
332
|
-
|
|
327
|
+
const r = {}, n = En(this);
|
|
328
|
+
for (const s of this.$$s)
|
|
329
|
+
s in n && (r[s] = [t(s)]);
|
|
330
|
+
for (const s of this.attributes) {
|
|
331
|
+
const o = this.$$g_p(s.name);
|
|
332
|
+
o in this.$$d || (this.$$d[o] = st(o, s.value, this.$$p_d, "toProp"));
|
|
333
333
|
}
|
|
334
|
-
for (const
|
|
335
|
-
!(
|
|
334
|
+
for (const s in this.$$p_d)
|
|
335
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
336
336
|
this.$$c = new this.$$ctor({
|
|
337
337
|
target: this.shadowRoot || this,
|
|
338
|
-
props:
|
|
338
|
+
props: Xt(Wt({}, this.$$d), {
|
|
339
339
|
$$slots: r,
|
|
340
340
|
$$scope: {
|
|
341
341
|
ctx: []
|
|
@@ -344,23 +344,23 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
344
344
|
});
|
|
345
345
|
const i = () => {
|
|
346
346
|
this.$$r = !0;
|
|
347
|
-
for (const
|
|
348
|
-
if (this.$$d[
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
this.$$d[
|
|
347
|
+
for (const s in this.$$p_d)
|
|
348
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
349
|
+
const o = st(
|
|
350
|
+
s,
|
|
351
|
+
this.$$d[s],
|
|
352
352
|
this.$$p_d,
|
|
353
353
|
"toAttribute"
|
|
354
354
|
);
|
|
355
|
-
|
|
355
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
356
356
|
}
|
|
357
357
|
this.$$r = !1;
|
|
358
358
|
};
|
|
359
359
|
this.$$c.$$.after_update.push(i), i();
|
|
360
|
-
for (const
|
|
361
|
-
for (const
|
|
362
|
-
const a = this.$$c.$on(
|
|
363
|
-
this.$$l_u.set(
|
|
360
|
+
for (const s in this.$$l)
|
|
361
|
+
for (const o of this.$$l[s]) {
|
|
362
|
+
const a = this.$$c.$on(s, o);
|
|
363
|
+
this.$$l_u.set(o, a);
|
|
364
364
|
}
|
|
365
365
|
this.$$l = {};
|
|
366
366
|
}
|
|
@@ -370,7 +370,7 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
370
370
|
// and setting attributes through setAttribute etc, this is helpful
|
|
371
371
|
attributeChangedCallback(t, r, n) {
|
|
372
372
|
var i;
|
|
373
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
373
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = st(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
374
374
|
}
|
|
375
375
|
disconnectedCallback() {
|
|
376
376
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -383,9 +383,9 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
383
383
|
) || t;
|
|
384
384
|
}
|
|
385
385
|
});
|
|
386
|
-
function
|
|
387
|
-
var
|
|
388
|
-
const i = (
|
|
386
|
+
function st(e, t, r, n) {
|
|
387
|
+
var s;
|
|
388
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
389
389
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
390
390
|
return t;
|
|
391
391
|
if (n === "toAttribute")
|
|
@@ -413,8 +413,8 @@ function ot(e, t, r, n) {
|
|
|
413
413
|
return t;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
let
|
|
416
|
+
function Nn(e, t, r, n, i, s) {
|
|
417
|
+
let o = class extends Pr {
|
|
418
418
|
constructor() {
|
|
419
419
|
super(e, r, i), this.$$p_d = t;
|
|
420
420
|
}
|
|
@@ -425,26 +425,26 @@ function Dn(e, t, r, n, i, o) {
|
|
|
425
425
|
}
|
|
426
426
|
};
|
|
427
427
|
return Object.keys(t).forEach((a) => {
|
|
428
|
-
Object.defineProperty(
|
|
428
|
+
Object.defineProperty(o.prototype, a, {
|
|
429
429
|
get() {
|
|
430
430
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
431
431
|
},
|
|
432
432
|
set(l) {
|
|
433
433
|
var u;
|
|
434
|
-
l =
|
|
434
|
+
l = st(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
}), n.forEach((a) => {
|
|
438
|
-
Object.defineProperty(
|
|
438
|
+
Object.defineProperty(o.prototype, a, {
|
|
439
439
|
get() {
|
|
440
440
|
var l;
|
|
441
441
|
return (l = this.$$c) == null ? void 0 : l[a];
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
}), e.element = /** @type {any} */
|
|
445
|
-
|
|
445
|
+
o, o;
|
|
446
446
|
}
|
|
447
|
-
class
|
|
447
|
+
class Mn {
|
|
448
448
|
constructor() {
|
|
449
449
|
/**
|
|
450
450
|
* ### PRIVATE API
|
|
@@ -465,7 +465,7 @@ class Gn {
|
|
|
465
465
|
}
|
|
466
466
|
/** @returns {void} */
|
|
467
467
|
$destroy() {
|
|
468
|
-
|
|
468
|
+
Ln(this, 1), this.$destroy = Z;
|
|
469
469
|
}
|
|
470
470
|
/**
|
|
471
471
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -474,7 +474,7 @@ class Gn {
|
|
|
474
474
|
* @returns {() => void}
|
|
475
475
|
*/
|
|
476
476
|
$on(t, r) {
|
|
477
|
-
if (!
|
|
477
|
+
if (!kt(r))
|
|
478
478
|
return Z;
|
|
479
479
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
480
480
|
return n.push(r), () => {
|
|
@@ -487,11 +487,11 @@ class Gn {
|
|
|
487
487
|
* @returns {void}
|
|
488
488
|
*/
|
|
489
489
|
$set(t) {
|
|
490
|
-
this.$$set && !
|
|
490
|
+
this.$$set && !fn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
const
|
|
494
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
493
|
+
const Rn = "4";
|
|
494
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rn);
|
|
495
495
|
/*! *****************************************************************************
|
|
496
496
|
Copyright (c) Microsoft Corporation.
|
|
497
497
|
|
|
@@ -506,24 +506,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
506
506
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
507
507
|
PERFORMANCE OF THIS SOFTWARE.
|
|
508
508
|
***************************************************************************** */
|
|
509
|
-
var
|
|
510
|
-
return
|
|
509
|
+
var At = function(e, t) {
|
|
510
|
+
return At = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
511
511
|
r.__proto__ = n;
|
|
512
512
|
} || function(r, n) {
|
|
513
513
|
for (var i in n)
|
|
514
514
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
515
|
-
},
|
|
515
|
+
}, At(e, t);
|
|
516
516
|
};
|
|
517
|
-
function
|
|
517
|
+
function ce(e, t) {
|
|
518
518
|
if (typeof t != "function" && t !== null)
|
|
519
519
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
520
|
-
|
|
520
|
+
At(e, t);
|
|
521
521
|
function r() {
|
|
522
522
|
this.constructor = e;
|
|
523
523
|
}
|
|
524
524
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
var B = function() {
|
|
527
|
+
return B = Object.assign || function(t) {
|
|
528
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
529
|
+
r = arguments[n];
|
|
530
|
+
for (var s in r)
|
|
531
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
532
|
+
}
|
|
533
|
+
return t;
|
|
534
|
+
}, B.apply(this, arguments);
|
|
535
|
+
};
|
|
536
|
+
function Un(e, t) {
|
|
537
|
+
var r = {};
|
|
538
|
+
for (var n in e)
|
|
539
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
540
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
541
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
542
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
543
|
+
return r;
|
|
544
|
+
}
|
|
545
|
+
function Bt(e) {
|
|
527
546
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
528
547
|
if (r)
|
|
529
548
|
return r.call(e);
|
|
@@ -535,42 +554,42 @@ function Lt(e) {
|
|
|
535
554
|
};
|
|
536
555
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
537
556
|
}
|
|
538
|
-
function
|
|
557
|
+
function Pt(e, t) {
|
|
539
558
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
540
559
|
if (!r)
|
|
541
560
|
return e;
|
|
542
|
-
var n = r.call(e), i,
|
|
561
|
+
var n = r.call(e), i, s = [], o;
|
|
543
562
|
try {
|
|
544
563
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
545
|
-
|
|
564
|
+
s.push(i.value);
|
|
546
565
|
} catch (a) {
|
|
547
|
-
|
|
566
|
+
o = { error: a };
|
|
548
567
|
} finally {
|
|
549
568
|
try {
|
|
550
569
|
i && !i.done && (r = n.return) && r.call(n);
|
|
551
570
|
} finally {
|
|
552
|
-
if (
|
|
553
|
-
throw
|
|
571
|
+
if (o)
|
|
572
|
+
throw o.error;
|
|
554
573
|
}
|
|
555
574
|
}
|
|
556
|
-
return
|
|
575
|
+
return s;
|
|
557
576
|
}
|
|
558
|
-
function
|
|
559
|
-
if (arguments.length === 2)
|
|
560
|
-
for (var n = 0, i = t.length,
|
|
561
|
-
(
|
|
562
|
-
return e.concat(
|
|
577
|
+
function Oe(e, t, r) {
|
|
578
|
+
if (r || arguments.length === 2)
|
|
579
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
580
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
581
|
+
return e.concat(s || t);
|
|
563
582
|
}
|
|
564
583
|
function he(e) {
|
|
565
584
|
return typeof e == "function";
|
|
566
585
|
}
|
|
567
|
-
function
|
|
586
|
+
function Or(e) {
|
|
568
587
|
var t = function(n) {
|
|
569
588
|
Error.call(n), n.stack = new Error().stack;
|
|
570
589
|
}, r = e(t);
|
|
571
590
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
572
591
|
}
|
|
573
|
-
var
|
|
592
|
+
var yt = Or(function(e) {
|
|
574
593
|
return function(r) {
|
|
575
594
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
576
595
|
` + r.map(function(n, i) {
|
|
@@ -579,25 +598,25 @@ var _t = Nr(function(e) {
|
|
|
579
598
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
580
599
|
};
|
|
581
600
|
});
|
|
582
|
-
function
|
|
601
|
+
function Ot(e, t) {
|
|
583
602
|
if (e) {
|
|
584
603
|
var r = e.indexOf(t);
|
|
585
604
|
0 <= r && e.splice(r, 1);
|
|
586
605
|
}
|
|
587
606
|
}
|
|
588
|
-
var
|
|
607
|
+
var ct = function() {
|
|
589
608
|
function e(t) {
|
|
590
609
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
591
610
|
}
|
|
592
611
|
return e.prototype.unsubscribe = function() {
|
|
593
|
-
var t, r, n, i,
|
|
612
|
+
var t, r, n, i, s;
|
|
594
613
|
if (!this.closed) {
|
|
595
614
|
this.closed = !0;
|
|
596
|
-
var
|
|
597
|
-
if (
|
|
598
|
-
if (this._parentage = null, Array.isArray(
|
|
615
|
+
var o = this._parentage;
|
|
616
|
+
if (o)
|
|
617
|
+
if (this._parentage = null, Array.isArray(o))
|
|
599
618
|
try {
|
|
600
|
-
for (var a =
|
|
619
|
+
for (var a = Bt(o), l = a.next(); !l.done; l = a.next()) {
|
|
601
620
|
var u = l.value;
|
|
602
621
|
u.remove(this);
|
|
603
622
|
}
|
|
@@ -612,24 +631,24 @@ var ft = function() {
|
|
|
612
631
|
}
|
|
613
632
|
}
|
|
614
633
|
else
|
|
615
|
-
|
|
616
|
-
var
|
|
617
|
-
if (he(
|
|
634
|
+
o.remove(this);
|
|
635
|
+
var h = this.initialTeardown;
|
|
636
|
+
if (he(h))
|
|
618
637
|
try {
|
|
619
|
-
|
|
638
|
+
h();
|
|
620
639
|
} catch (g) {
|
|
621
|
-
|
|
640
|
+
s = g instanceof yt ? g.errors : [g];
|
|
622
641
|
}
|
|
623
|
-
var
|
|
624
|
-
if (
|
|
642
|
+
var d = this._finalizers;
|
|
643
|
+
if (d) {
|
|
625
644
|
this._finalizers = null;
|
|
626
645
|
try {
|
|
627
|
-
for (var f =
|
|
646
|
+
for (var f = Bt(d), b = f.next(); !b.done; b = f.next()) {
|
|
628
647
|
var x = b.value;
|
|
629
648
|
try {
|
|
630
|
-
|
|
649
|
+
Yt(x);
|
|
631
650
|
} catch (g) {
|
|
632
|
-
|
|
651
|
+
s = s != null ? s : [], g instanceof yt ? s = Oe(Oe([], Pt(s)), Pt(g.errors)) : s.push(g);
|
|
633
652
|
}
|
|
634
653
|
}
|
|
635
654
|
} catch (g) {
|
|
@@ -643,14 +662,14 @@ var ft = function() {
|
|
|
643
662
|
}
|
|
644
663
|
}
|
|
645
664
|
}
|
|
646
|
-
if (
|
|
647
|
-
throw new
|
|
665
|
+
if (s)
|
|
666
|
+
throw new yt(s);
|
|
648
667
|
}
|
|
649
668
|
}, e.prototype.add = function(t) {
|
|
650
669
|
var r;
|
|
651
670
|
if (t && t !== this)
|
|
652
671
|
if (this.closed)
|
|
653
|
-
|
|
672
|
+
Yt(t);
|
|
654
673
|
else {
|
|
655
674
|
if (t instanceof e) {
|
|
656
675
|
if (t.closed || t._hasParent(this))
|
|
@@ -667,52 +686,56 @@ var ft = function() {
|
|
|
667
686
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
668
687
|
}, e.prototype._removeParent = function(t) {
|
|
669
688
|
var r = this._parentage;
|
|
670
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
689
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ot(r, t);
|
|
671
690
|
}, e.prototype.remove = function(t) {
|
|
672
691
|
var r = this._finalizers;
|
|
673
|
-
r &&
|
|
692
|
+
r && Ot(r, t), t instanceof e && t._removeParent(this);
|
|
674
693
|
}, e.EMPTY = function() {
|
|
675
694
|
var t = new e();
|
|
676
695
|
return t.closed = !0, t;
|
|
677
696
|
}(), e;
|
|
678
|
-
}(),
|
|
679
|
-
function
|
|
680
|
-
return e instanceof
|
|
697
|
+
}(), Lr = ct.EMPTY;
|
|
698
|
+
function Cr(e) {
|
|
699
|
+
return e instanceof ct || e && "closed" in e && he(e.remove) && he(e.add) && he(e.unsubscribe);
|
|
681
700
|
}
|
|
682
|
-
function
|
|
701
|
+
function Yt(e) {
|
|
683
702
|
he(e) ? e() : e.unsubscribe();
|
|
684
703
|
}
|
|
685
|
-
var
|
|
686
|
-
|
|
687
|
-
|
|
704
|
+
var Dn = {
|
|
705
|
+
onUnhandledError: null,
|
|
706
|
+
onStoppedNotification: null,
|
|
707
|
+
Promise: void 0,
|
|
708
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
709
|
+
useDeprecatedNextContext: !1
|
|
710
|
+
}, Gn = {
|
|
688
711
|
setTimeout: function(e, t) {
|
|
689
712
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
690
713
|
r[n - 2] = arguments[n];
|
|
691
|
-
return setTimeout.apply(void 0,
|
|
714
|
+
return setTimeout.apply(void 0, Oe([e, t], Pt(r)));
|
|
692
715
|
},
|
|
693
716
|
clearTimeout: function(e) {
|
|
694
717
|
return clearTimeout(e);
|
|
695
718
|
},
|
|
696
719
|
delegate: void 0
|
|
697
720
|
};
|
|
698
|
-
function
|
|
699
|
-
|
|
721
|
+
function kn(e) {
|
|
722
|
+
Gn.setTimeout(function() {
|
|
700
723
|
throw e;
|
|
701
724
|
});
|
|
702
725
|
}
|
|
703
|
-
function
|
|
726
|
+
function qt() {
|
|
704
727
|
}
|
|
705
|
-
function
|
|
728
|
+
function ot(e) {
|
|
706
729
|
e();
|
|
707
730
|
}
|
|
708
|
-
var
|
|
709
|
-
|
|
731
|
+
var Ir = function(e) {
|
|
732
|
+
ce(t, e);
|
|
710
733
|
function t(r) {
|
|
711
734
|
var n = e.call(this) || this;
|
|
712
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
735
|
+
return n.isStopped = !1, r ? (n.destination = r, Cr(r) && r.add(n)) : n.destination = $n, n;
|
|
713
736
|
}
|
|
714
737
|
return t.create = function(r, n, i) {
|
|
715
|
-
return new
|
|
738
|
+
return new Lt(r, n, i);
|
|
716
739
|
}, t.prototype.next = function(r) {
|
|
717
740
|
this.isStopped || this._next(r);
|
|
718
741
|
}, t.prototype.error = function(r) {
|
|
@@ -736,7 +759,7 @@ var Ur = function(e) {
|
|
|
736
759
|
this.unsubscribe();
|
|
737
760
|
}
|
|
738
761
|
}, t;
|
|
739
|
-
}(
|
|
762
|
+
}(ct), jn = function() {
|
|
740
763
|
function e(t) {
|
|
741
764
|
this.partialObserver = t;
|
|
742
765
|
}
|
|
@@ -767,43 +790,43 @@ var Ur = function(e) {
|
|
|
767
790
|
nt(r);
|
|
768
791
|
}
|
|
769
792
|
}, e;
|
|
770
|
-
}(),
|
|
771
|
-
|
|
793
|
+
}(), Lt = function(e) {
|
|
794
|
+
ce(t, e);
|
|
772
795
|
function t(r, n, i) {
|
|
773
|
-
var
|
|
774
|
-
return he(r) || !r ?
|
|
796
|
+
var s = e.call(this) || this, o;
|
|
797
|
+
return he(r) || !r ? o = {
|
|
775
798
|
next: r != null ? r : void 0,
|
|
776
799
|
error: n != null ? n : void 0,
|
|
777
800
|
complete: i != null ? i : void 0
|
|
778
|
-
} :
|
|
801
|
+
} : o = r, s.destination = new jn(o), s;
|
|
779
802
|
}
|
|
780
803
|
return t;
|
|
781
|
-
}(
|
|
804
|
+
}(Ir);
|
|
782
805
|
function nt(e) {
|
|
783
|
-
|
|
806
|
+
kn(e);
|
|
784
807
|
}
|
|
785
|
-
function
|
|
808
|
+
function Fn(e) {
|
|
786
809
|
throw e;
|
|
787
810
|
}
|
|
788
|
-
var
|
|
811
|
+
var $n = {
|
|
789
812
|
closed: !0,
|
|
790
|
-
next:
|
|
791
|
-
error:
|
|
792
|
-
complete:
|
|
793
|
-
},
|
|
813
|
+
next: qt,
|
|
814
|
+
error: Fn,
|
|
815
|
+
complete: qt
|
|
816
|
+
}, Vn = function() {
|
|
794
817
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
795
818
|
}();
|
|
796
|
-
function
|
|
819
|
+
function Wn(e) {
|
|
797
820
|
return e;
|
|
798
821
|
}
|
|
799
|
-
function
|
|
800
|
-
return e.length === 0 ?
|
|
822
|
+
function Xn(e) {
|
|
823
|
+
return e.length === 0 ? Wn : e.length === 1 ? e[0] : function(r) {
|
|
801
824
|
return e.reduce(function(n, i) {
|
|
802
825
|
return i(n);
|
|
803
826
|
}, r);
|
|
804
827
|
};
|
|
805
828
|
}
|
|
806
|
-
var
|
|
829
|
+
var Kt = function() {
|
|
807
830
|
function e(t) {
|
|
808
831
|
t && (this._subscribe = t);
|
|
809
832
|
}
|
|
@@ -811,11 +834,11 @@ var nr = function() {
|
|
|
811
834
|
var r = new e();
|
|
812
835
|
return r.source = this, r.operator = t, r;
|
|
813
836
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
814
|
-
var i = this,
|
|
815
|
-
return
|
|
816
|
-
var
|
|
817
|
-
|
|
818
|
-
}),
|
|
837
|
+
var i = this, s = Jn(t) ? t : new Lt(t, r, n);
|
|
838
|
+
return ot(function() {
|
|
839
|
+
var o = i, a = o.operator, l = o.source;
|
|
840
|
+
s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
|
|
841
|
+
}), s;
|
|
819
842
|
}, e.prototype._trySubscribe = function(t) {
|
|
820
843
|
try {
|
|
821
844
|
return this._subscribe(t);
|
|
@@ -824,79 +847,79 @@ var nr = function() {
|
|
|
824
847
|
}
|
|
825
848
|
}, e.prototype.forEach = function(t, r) {
|
|
826
849
|
var n = this;
|
|
827
|
-
return r =
|
|
828
|
-
var
|
|
850
|
+
return r = er(r), new r(function(i, s) {
|
|
851
|
+
var o = new Lt({
|
|
829
852
|
next: function(a) {
|
|
830
853
|
try {
|
|
831
854
|
t(a);
|
|
832
855
|
} catch (l) {
|
|
833
|
-
|
|
856
|
+
s(l), o.unsubscribe();
|
|
834
857
|
}
|
|
835
858
|
},
|
|
836
|
-
error:
|
|
859
|
+
error: s,
|
|
837
860
|
complete: i
|
|
838
861
|
});
|
|
839
|
-
n.subscribe(
|
|
862
|
+
n.subscribe(o);
|
|
840
863
|
});
|
|
841
864
|
}, e.prototype._subscribe = function(t) {
|
|
842
865
|
var r;
|
|
843
866
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
844
|
-
}, e.prototype[
|
|
867
|
+
}, e.prototype[Vn] = function() {
|
|
845
868
|
return this;
|
|
846
869
|
}, e.prototype.pipe = function() {
|
|
847
870
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
848
871
|
t[r] = arguments[r];
|
|
849
|
-
return
|
|
872
|
+
return Xn(t)(this);
|
|
850
873
|
}, e.prototype.toPromise = function(t) {
|
|
851
874
|
var r = this;
|
|
852
|
-
return t =
|
|
853
|
-
var
|
|
854
|
-
r.subscribe(function(
|
|
855
|
-
return
|
|
856
|
-
}, function(
|
|
857
|
-
return i(
|
|
875
|
+
return t = er(t), new t(function(n, i) {
|
|
876
|
+
var s;
|
|
877
|
+
r.subscribe(function(o) {
|
|
878
|
+
return s = o;
|
|
879
|
+
}, function(o) {
|
|
880
|
+
return i(o);
|
|
858
881
|
}, function() {
|
|
859
|
-
return n(
|
|
882
|
+
return n(s);
|
|
860
883
|
});
|
|
861
884
|
});
|
|
862
885
|
}, e.create = function(t) {
|
|
863
886
|
return new e(t);
|
|
864
887
|
}, e;
|
|
865
888
|
}();
|
|
866
|
-
function
|
|
889
|
+
function er(e) {
|
|
867
890
|
var t;
|
|
868
|
-
return (t = e != null ? e :
|
|
891
|
+
return (t = e != null ? e : Dn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
869
892
|
}
|
|
870
|
-
function
|
|
893
|
+
function zn(e) {
|
|
871
894
|
return e && he(e.next) && he(e.error) && he(e.complete);
|
|
872
895
|
}
|
|
873
|
-
function
|
|
874
|
-
return e && e instanceof
|
|
896
|
+
function Jn(e) {
|
|
897
|
+
return e && e instanceof Ir || zn(e) && Cr(e);
|
|
875
898
|
}
|
|
876
|
-
var
|
|
899
|
+
var Zn = Or(function(e) {
|
|
877
900
|
return function() {
|
|
878
901
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
879
902
|
};
|
|
880
|
-
}),
|
|
881
|
-
|
|
903
|
+
}), Nr = function(e) {
|
|
904
|
+
ce(t, e);
|
|
882
905
|
function t() {
|
|
883
906
|
var r = e.call(this) || this;
|
|
884
907
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
885
908
|
}
|
|
886
909
|
return t.prototype.lift = function(r) {
|
|
887
|
-
var n = new
|
|
910
|
+
var n = new tr(this, this);
|
|
888
911
|
return n.operator = r, n;
|
|
889
912
|
}, t.prototype._throwIfClosed = function() {
|
|
890
913
|
if (this.closed)
|
|
891
|
-
throw new
|
|
914
|
+
throw new Zn();
|
|
892
915
|
}, t.prototype.next = function(r) {
|
|
893
916
|
var n = this;
|
|
894
|
-
|
|
895
|
-
var i,
|
|
917
|
+
ot(function() {
|
|
918
|
+
var i, s;
|
|
896
919
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
897
920
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
898
921
|
try {
|
|
899
|
-
for (var
|
|
922
|
+
for (var o = Bt(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
900
923
|
var l = a.value;
|
|
901
924
|
l.next(r);
|
|
902
925
|
}
|
|
@@ -904,7 +927,7 @@ var qn = Nr(function(e) {
|
|
|
904
927
|
i = { error: u };
|
|
905
928
|
} finally {
|
|
906
929
|
try {
|
|
907
|
-
a && !a.done && (
|
|
930
|
+
a && !a.done && (s = o.return) && s.call(o);
|
|
908
931
|
} finally {
|
|
909
932
|
if (i)
|
|
910
933
|
throw i.error;
|
|
@@ -914,7 +937,7 @@ var qn = Nr(function(e) {
|
|
|
914
937
|
});
|
|
915
938
|
}, t.prototype.error = function(r) {
|
|
916
939
|
var n = this;
|
|
917
|
-
|
|
940
|
+
ot(function() {
|
|
918
941
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
919
942
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
920
943
|
for (var i = n.observers; i.length; )
|
|
@@ -923,7 +946,7 @@ var qn = Nr(function(e) {
|
|
|
923
946
|
});
|
|
924
947
|
}, t.prototype.complete = function() {
|
|
925
948
|
var r = this;
|
|
926
|
-
|
|
949
|
+
ot(function() {
|
|
927
950
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
928
951
|
r.isStopped = !0;
|
|
929
952
|
for (var n = r.observers; n.length; )
|
|
@@ -944,21 +967,21 @@ var qn = Nr(function(e) {
|
|
|
944
967
|
}, t.prototype._subscribe = function(r) {
|
|
945
968
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
946
969
|
}, t.prototype._innerSubscribe = function(r) {
|
|
947
|
-
var n = this, i = this,
|
|
948
|
-
return
|
|
949
|
-
n.currentObservers = null,
|
|
970
|
+
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
971
|
+
return s || o ? Lr : (this.currentObservers = null, a.push(r), new ct(function() {
|
|
972
|
+
n.currentObservers = null, Ot(a, r);
|
|
950
973
|
}));
|
|
951
974
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
952
|
-
var n = this, i = n.hasError,
|
|
953
|
-
i ? r.error(
|
|
975
|
+
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
976
|
+
i ? r.error(s) : o && r.complete();
|
|
954
977
|
}, t.prototype.asObservable = function() {
|
|
955
|
-
var r = new
|
|
978
|
+
var r = new Kt();
|
|
956
979
|
return r.source = this, r;
|
|
957
980
|
}, t.create = function(r, n) {
|
|
958
|
-
return new
|
|
981
|
+
return new tr(r, n);
|
|
959
982
|
}, t;
|
|
960
|
-
}(
|
|
961
|
-
|
|
983
|
+
}(Kt), tr = function(e) {
|
|
984
|
+
ce(t, e);
|
|
962
985
|
function t(r, n) {
|
|
963
986
|
var i = e.call(this) || this;
|
|
964
987
|
return i.destination = r, i.source = n, i;
|
|
@@ -974,54 +997,54 @@ var qn = Nr(function(e) {
|
|
|
974
997
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
975
998
|
}, t.prototype._subscribe = function(r) {
|
|
976
999
|
var n, i;
|
|
977
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1000
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Lr;
|
|
978
1001
|
}, t;
|
|
979
|
-
}(
|
|
1002
|
+
}(Nr), Mr = {
|
|
980
1003
|
now: function() {
|
|
981
|
-
return (
|
|
1004
|
+
return (Mr.delegate || Date).now();
|
|
982
1005
|
},
|
|
983
1006
|
delegate: void 0
|
|
984
|
-
},
|
|
985
|
-
|
|
1007
|
+
}, Qn = function(e) {
|
|
1008
|
+
ce(t, e);
|
|
986
1009
|
function t(r, n, i) {
|
|
987
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
988
|
-
var
|
|
989
|
-
return
|
|
1010
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mr);
|
|
1011
|
+
var s = e.call(this) || this;
|
|
1012
|
+
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
990
1013
|
}
|
|
991
1014
|
return t.prototype.next = function(r) {
|
|
992
|
-
var n = this, i = n.isStopped,
|
|
993
|
-
i || (
|
|
1015
|
+
var n = this, i = n.isStopped, s = n._buffer, o = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
1016
|
+
i || (s.push(r), !o && s.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
994
1017
|
}, t.prototype._subscribe = function(r) {
|
|
995
1018
|
this._throwIfClosed(), this._trimBuffer();
|
|
996
|
-
for (var n = this._innerSubscribe(r), i = this,
|
|
1019
|
+
for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, o = i._buffer, a = o.slice(), l = 0; l < a.length && !r.closed; l += s ? 1 : 2)
|
|
997
1020
|
r.next(a[l]);
|
|
998
1021
|
return this._checkFinalizedStatuses(r), n;
|
|
999
1022
|
}, t.prototype._trimBuffer = function() {
|
|
1000
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider,
|
|
1001
|
-
if (n < 1 / 0 && a <
|
|
1002
|
-
for (var l = i.now(), u = 0,
|
|
1003
|
-
u =
|
|
1004
|
-
u &&
|
|
1023
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, o = r._infiniteTimeWindow, a = (o ? 1 : 2) * n;
|
|
1024
|
+
if (n < 1 / 0 && a < s.length && s.splice(0, s.length - a), !o) {
|
|
1025
|
+
for (var l = i.now(), u = 0, h = 1; h < s.length && s[h] <= l; h += 2)
|
|
1026
|
+
u = h;
|
|
1027
|
+
u && s.splice(0, u + 1);
|
|
1005
1028
|
}
|
|
1006
1029
|
}, t;
|
|
1007
|
-
}(
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
1010
|
-
const r = new
|
|
1011
|
-
|
|
1030
|
+
}(Nr);
|
|
1031
|
+
const rr = [], nr = {}, Yn = (e, t = 0) => {
|
|
1032
|
+
if (rr.indexOf(e) == -1) {
|
|
1033
|
+
const r = new Qn(t);
|
|
1034
|
+
nr[e] = r, rr.push(e);
|
|
1012
1035
|
}
|
|
1013
|
-
return
|
|
1036
|
+
return nr[e];
|
|
1014
1037
|
}, Ae = [];
|
|
1015
|
-
function
|
|
1038
|
+
function qn(e, t) {
|
|
1016
1039
|
return {
|
|
1017
|
-
subscribe:
|
|
1040
|
+
subscribe: ft(e, t).subscribe
|
|
1018
1041
|
};
|
|
1019
1042
|
}
|
|
1020
|
-
function
|
|
1043
|
+
function ft(e, t = Z) {
|
|
1021
1044
|
let r;
|
|
1022
1045
|
const n = /* @__PURE__ */ new Set();
|
|
1023
1046
|
function i(a) {
|
|
1024
|
-
if (
|
|
1047
|
+
if (Ar(e, a) && (e = a, r)) {
|
|
1025
1048
|
const l = !Ae.length;
|
|
1026
1049
|
for (const u of n)
|
|
1027
1050
|
u[1](), Ae.push(u, e);
|
|
@@ -1032,195 +1055,156 @@ function pt(e, t = Z) {
|
|
|
1032
1055
|
}
|
|
1033
1056
|
}
|
|
1034
1057
|
}
|
|
1035
|
-
function
|
|
1058
|
+
function s(a) {
|
|
1036
1059
|
i(a(e));
|
|
1037
1060
|
}
|
|
1038
|
-
function
|
|
1061
|
+
function o(a, l = Z) {
|
|
1039
1062
|
const u = [a, l];
|
|
1040
|
-
return n.add(u), n.size === 1 && (r = t(i,
|
|
1063
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || Z), a(e), () => {
|
|
1041
1064
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1042
1065
|
};
|
|
1043
1066
|
}
|
|
1044
|
-
return { set: i, update:
|
|
1067
|
+
return { set: i, update: s, subscribe: o };
|
|
1045
1068
|
}
|
|
1046
|
-
function
|
|
1069
|
+
function Me(e, t, r) {
|
|
1047
1070
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1048
1071
|
if (!i.every(Boolean))
|
|
1049
1072
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1050
|
-
const
|
|
1051
|
-
return
|
|
1073
|
+
const s = t.length < 2;
|
|
1074
|
+
return qn(r, (o, a) => {
|
|
1052
1075
|
let l = !1;
|
|
1053
1076
|
const u = [];
|
|
1054
|
-
let
|
|
1077
|
+
let h = 0, d = Z;
|
|
1055
1078
|
const f = () => {
|
|
1056
|
-
if (
|
|
1079
|
+
if (h)
|
|
1057
1080
|
return;
|
|
1058
|
-
|
|
1059
|
-
const x = t(n ? u[0] : u,
|
|
1060
|
-
|
|
1081
|
+
d();
|
|
1082
|
+
const x = t(n ? u[0] : u, o, a);
|
|
1083
|
+
s ? o(x) : d = kt(x) ? x : Z;
|
|
1061
1084
|
}, b = i.map(
|
|
1062
|
-
(x, g) =>
|
|
1085
|
+
(x, g) => dn(
|
|
1063
1086
|
x,
|
|
1064
1087
|
(v) => {
|
|
1065
|
-
u[g] = v,
|
|
1088
|
+
u[g] = v, h &= ~(1 << g), l && f();
|
|
1066
1089
|
},
|
|
1067
1090
|
() => {
|
|
1068
|
-
|
|
1091
|
+
h |= 1 << g;
|
|
1069
1092
|
}
|
|
1070
1093
|
)
|
|
1071
1094
|
);
|
|
1072
1095
|
return l = !0, f(), function() {
|
|
1073
|
-
|
|
1096
|
+
Je(b), d(), l = !1;
|
|
1074
1097
|
};
|
|
1075
1098
|
});
|
|
1076
1099
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return e
|
|
1100
|
+
function Kn(e) {
|
|
1101
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1079
1102
|
}
|
|
1080
|
-
var
|
|
1081
|
-
return
|
|
1103
|
+
var ei = function(t) {
|
|
1104
|
+
return ti(t) && !ri(t);
|
|
1082
1105
|
};
|
|
1083
|
-
function
|
|
1106
|
+
function ti(e) {
|
|
1084
1107
|
return !!e && typeof e == "object";
|
|
1085
1108
|
}
|
|
1086
|
-
function
|
|
1109
|
+
function ri(e) {
|
|
1087
1110
|
var t = Object.prototype.toString.call(e);
|
|
1088
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1111
|
+
return t === "[object RegExp]" || t === "[object Date]" || si(e);
|
|
1089
1112
|
}
|
|
1090
|
-
var
|
|
1091
|
-
function
|
|
1092
|
-
return e.$$typeof ===
|
|
1113
|
+
var ni = typeof Symbol == "function" && Symbol.for, ii = ni ? Symbol.for("react.element") : 60103;
|
|
1114
|
+
function si(e) {
|
|
1115
|
+
return e.$$typeof === ii;
|
|
1093
1116
|
}
|
|
1094
|
-
function
|
|
1117
|
+
function oi(e) {
|
|
1095
1118
|
return Array.isArray(e) ? [] : {};
|
|
1096
1119
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1120
|
+
function Xe(e, t) {
|
|
1121
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Le(oi(e), e, t) : e;
|
|
1099
1122
|
}
|
|
1100
|
-
function
|
|
1123
|
+
function ai(e, t, r) {
|
|
1101
1124
|
return e.concat(t).map(function(n) {
|
|
1102
|
-
return
|
|
1125
|
+
return Xe(n, r);
|
|
1103
1126
|
});
|
|
1104
1127
|
}
|
|
1105
|
-
function
|
|
1128
|
+
function ui(e, t) {
|
|
1106
1129
|
if (!t.customMerge)
|
|
1107
|
-
return
|
|
1130
|
+
return Le;
|
|
1108
1131
|
var r = t.customMerge(e);
|
|
1109
|
-
return typeof r == "function" ? r :
|
|
1132
|
+
return typeof r == "function" ? r : Le;
|
|
1110
1133
|
}
|
|
1111
|
-
function
|
|
1134
|
+
function li(e) {
|
|
1112
1135
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1113
1136
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1114
1137
|
}) : [];
|
|
1115
1138
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return Object.keys(e).concat(
|
|
1139
|
+
function ir(e) {
|
|
1140
|
+
return Object.keys(e).concat(li(e));
|
|
1118
1141
|
}
|
|
1119
|
-
function
|
|
1142
|
+
function Rr(e, t) {
|
|
1120
1143
|
try {
|
|
1121
1144
|
return t in e;
|
|
1122
1145
|
} catch (r) {
|
|
1123
1146
|
return !1;
|
|
1124
1147
|
}
|
|
1125
1148
|
}
|
|
1126
|
-
function
|
|
1127
|
-
return
|
|
1149
|
+
function hi(e, t) {
|
|
1150
|
+
return Rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1128
1151
|
}
|
|
1129
|
-
function
|
|
1152
|
+
function ci(e, t, r) {
|
|
1130
1153
|
var n = {};
|
|
1131
|
-
return r.isMergeableObject(e) &&
|
|
1132
|
-
n[i] =
|
|
1133
|
-
}),
|
|
1134
|
-
|
|
1154
|
+
return r.isMergeableObject(e) && ir(e).forEach(function(i) {
|
|
1155
|
+
n[i] = Xe(e[i], r);
|
|
1156
|
+
}), ir(t).forEach(function(i) {
|
|
1157
|
+
hi(e, i) || (Rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ui(i, r)(e[i], t[i], r) : n[i] = Xe(t[i], r));
|
|
1135
1158
|
}), n;
|
|
1136
1159
|
}
|
|
1137
|
-
function
|
|
1138
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1139
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
1140
|
-
return
|
|
1160
|
+
function Le(e, t, r) {
|
|
1161
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ai, r.isMergeableObject = r.isMergeableObject || ei, r.cloneUnlessOtherwiseSpecified = Xe;
|
|
1162
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1163
|
+
return s ? n ? r.arrayMerge(e, t, r) : ci(e, t, r) : Xe(t, r);
|
|
1141
1164
|
}
|
|
1142
|
-
|
|
1165
|
+
Le.all = function(t, r) {
|
|
1143
1166
|
if (!Array.isArray(t))
|
|
1144
1167
|
throw new Error("first argument should be an array");
|
|
1145
1168
|
return t.reduce(function(n, i) {
|
|
1146
|
-
return
|
|
1169
|
+
return Le(n, i, r);
|
|
1147
1170
|
}, {});
|
|
1148
1171
|
};
|
|
1149
|
-
var
|
|
1150
|
-
const
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
r.__proto__ = n;
|
|
1154
|
-
} || function(r, n) {
|
|
1155
|
-
for (var i in n)
|
|
1156
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1157
|
-
}, Rt(e, t);
|
|
1158
|
-
};
|
|
1159
|
-
function dt(e, t) {
|
|
1160
|
-
if (typeof t != "function" && t !== null)
|
|
1161
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1162
|
-
Rt(e, t);
|
|
1163
|
-
function r() {
|
|
1164
|
-
this.constructor = e;
|
|
1165
|
-
}
|
|
1166
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1167
|
-
}
|
|
1168
|
-
var ne = function() {
|
|
1169
|
-
return ne = Object.assign || function(t) {
|
|
1170
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1171
|
-
r = arguments[n];
|
|
1172
|
-
for (var o in r)
|
|
1173
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1174
|
-
}
|
|
1175
|
-
return t;
|
|
1176
|
-
}, ne.apply(this, arguments);
|
|
1177
|
-
};
|
|
1178
|
-
function yi(e, t) {
|
|
1179
|
-
var r = {};
|
|
1180
|
-
for (var n in e)
|
|
1181
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1182
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1183
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1184
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1185
|
-
return r;
|
|
1186
|
-
}
|
|
1187
|
-
function Et(e, t, r) {
|
|
1188
|
-
if (r || arguments.length === 2)
|
|
1189
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1190
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1191
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1192
|
-
}
|
|
1193
|
-
function xt(e, t) {
|
|
1194
|
-
var r = t && t.cache ? t.cache : wi, n = t && t.serializer ? t.serializer : Si, i = t && t.strategy ? t.strategy : Ei;
|
|
1172
|
+
var fi = Le, di = fi;
|
|
1173
|
+
const pi = /* @__PURE__ */ Kn(di);
|
|
1174
|
+
function vt(e, t) {
|
|
1175
|
+
var r = t && t.cache ? t.cache : Ei, n = t && t.serializer ? t.serializer : vi, i = t && t.strategy ? t.strategy : bi;
|
|
1195
1176
|
return i(e, {
|
|
1196
1177
|
cache: r,
|
|
1197
1178
|
serializer: n
|
|
1198
1179
|
});
|
|
1199
1180
|
}
|
|
1200
|
-
function
|
|
1181
|
+
function mi(e) {
|
|
1201
1182
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1202
1183
|
}
|
|
1203
|
-
function
|
|
1204
|
-
var i =
|
|
1205
|
-
return typeof
|
|
1184
|
+
function Ur(e, t, r, n) {
|
|
1185
|
+
var i = mi(n) ? n : r(n), s = t.get(i);
|
|
1186
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1206
1187
|
}
|
|
1207
|
-
function
|
|
1208
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
1209
|
-
return typeof
|
|
1188
|
+
function Dr(e, t, r) {
|
|
1189
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1190
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1210
1191
|
}
|
|
1211
|
-
function
|
|
1192
|
+
function jt(e, t, r, n, i) {
|
|
1212
1193
|
return r.bind(t, e, n, i);
|
|
1213
1194
|
}
|
|
1214
|
-
function
|
|
1215
|
-
var r = e.length === 1 ?
|
|
1216
|
-
return
|
|
1195
|
+
function bi(e, t) {
|
|
1196
|
+
var r = e.length === 1 ? Ur : Dr;
|
|
1197
|
+
return jt(e, this, r, t.cache.create(), t.serializer);
|
|
1217
1198
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return
|
|
1199
|
+
function gi(e, t) {
|
|
1200
|
+
return jt(e, this, Dr, t.cache.create(), t.serializer);
|
|
1220
1201
|
}
|
|
1221
|
-
|
|
1202
|
+
function yi(e, t) {
|
|
1203
|
+
return jt(e, this, Ur, t.cache.create(), t.serializer);
|
|
1204
|
+
}
|
|
1205
|
+
var vi = function() {
|
|
1222
1206
|
return JSON.stringify(arguments);
|
|
1223
|
-
},
|
|
1207
|
+
}, _i = (
|
|
1224
1208
|
/** @class */
|
|
1225
1209
|
function() {
|
|
1226
1210
|
function e() {
|
|
@@ -1232,71 +1216,62 @@ var Si = function() {
|
|
|
1232
1216
|
this.cache[t] = r;
|
|
1233
1217
|
}, e;
|
|
1234
1218
|
}()
|
|
1235
|
-
),
|
|
1219
|
+
), Ei = {
|
|
1236
1220
|
create: function() {
|
|
1237
|
-
return new
|
|
1221
|
+
return new _i();
|
|
1238
1222
|
}
|
|
1239
|
-
},
|
|
1240
|
-
variadic:
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1244
|
-
r = arguments[n];
|
|
1245
|
-
for (var o in r)
|
|
1246
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1247
|
-
}
|
|
1248
|
-
return t;
|
|
1249
|
-
}, lt.apply(this, arguments);
|
|
1250
|
-
};
|
|
1251
|
-
var w;
|
|
1223
|
+
}, _t = {
|
|
1224
|
+
variadic: gi,
|
|
1225
|
+
monadic: yi
|
|
1226
|
+
}, w;
|
|
1252
1227
|
(function(e) {
|
|
1253
1228
|
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";
|
|
1254
1229
|
})(w || (w = {}));
|
|
1255
|
-
var
|
|
1230
|
+
var P;
|
|
1256
1231
|
(function(e) {
|
|
1257
1232
|
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";
|
|
1258
|
-
})(
|
|
1259
|
-
var
|
|
1233
|
+
})(P || (P = {}));
|
|
1234
|
+
var Ce;
|
|
1260
1235
|
(function(e) {
|
|
1261
1236
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1262
|
-
})(
|
|
1263
|
-
function
|
|
1264
|
-
return e.type ===
|
|
1237
|
+
})(Ce || (Ce = {}));
|
|
1238
|
+
function sr(e) {
|
|
1239
|
+
return e.type === P.literal;
|
|
1265
1240
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return e.type ===
|
|
1241
|
+
function xi(e) {
|
|
1242
|
+
return e.type === P.argument;
|
|
1268
1243
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return e.type ===
|
|
1244
|
+
function Gr(e) {
|
|
1245
|
+
return e.type === P.number;
|
|
1271
1246
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return e.type ===
|
|
1247
|
+
function kr(e) {
|
|
1248
|
+
return e.type === P.date;
|
|
1274
1249
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return e.type ===
|
|
1250
|
+
function jr(e) {
|
|
1251
|
+
return e.type === P.time;
|
|
1277
1252
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return e.type ===
|
|
1253
|
+
function Fr(e) {
|
|
1254
|
+
return e.type === P.select;
|
|
1280
1255
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return e.type ===
|
|
1256
|
+
function $r(e) {
|
|
1257
|
+
return e.type === P.plural;
|
|
1283
1258
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return e.type ===
|
|
1259
|
+
function Si(e) {
|
|
1260
|
+
return e.type === P.pound;
|
|
1286
1261
|
}
|
|
1287
|
-
function
|
|
1288
|
-
return e.type ===
|
|
1262
|
+
function Vr(e) {
|
|
1263
|
+
return e.type === P.tag;
|
|
1289
1264
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1265
|
+
function Wr(e) {
|
|
1266
|
+
return !!(e && typeof e == "object" && e.type === Ce.number);
|
|
1292
1267
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1268
|
+
function Ct(e) {
|
|
1269
|
+
return !!(e && typeof e == "object" && e.type === Ce.dateTime);
|
|
1295
1270
|
}
|
|
1296
|
-
var
|
|
1297
|
-
function
|
|
1271
|
+
var Xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ti = /(?:[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;
|
|
1272
|
+
function wi(e) {
|
|
1298
1273
|
var t = {};
|
|
1299
|
-
return e.replace(
|
|
1274
|
+
return e.replace(Ti, function(r) {
|
|
1300
1275
|
var n = r.length;
|
|
1301
1276
|
switch (r[0]) {
|
|
1302
1277
|
case "G":
|
|
@@ -1385,46 +1360,36 @@ function Pi(e) {
|
|
|
1385
1360
|
return "";
|
|
1386
1361
|
}), t;
|
|
1387
1362
|
}
|
|
1388
|
-
var
|
|
1389
|
-
|
|
1390
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1391
|
-
r = arguments[n];
|
|
1392
|
-
for (var o in r)
|
|
1393
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1394
|
-
}
|
|
1395
|
-
return t;
|
|
1396
|
-
}, L.apply(this, arguments);
|
|
1397
|
-
};
|
|
1398
|
-
var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1399
|
-
function Li(e) {
|
|
1363
|
+
var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1364
|
+
function Ai(e) {
|
|
1400
1365
|
if (e.length === 0)
|
|
1401
1366
|
throw new Error("Number skeleton cannot be empty");
|
|
1402
|
-
for (var t = e.split(
|
|
1367
|
+
for (var t = e.split(Hi).filter(function(f) {
|
|
1403
1368
|
return f.length > 0;
|
|
1404
1369
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1405
|
-
var
|
|
1406
|
-
if (
|
|
1370
|
+
var s = i[n], o = s.split("/");
|
|
1371
|
+
if (o.length === 0)
|
|
1407
1372
|
throw new Error("Invalid number skeleton");
|
|
1408
|
-
for (var a =
|
|
1409
|
-
var
|
|
1410
|
-
if (
|
|
1373
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1374
|
+
var d = h[u];
|
|
1375
|
+
if (d.length === 0)
|
|
1411
1376
|
throw new Error("Invalid number skeleton");
|
|
1412
1377
|
}
|
|
1413
1378
|
r.push({ stem: a, options: l });
|
|
1414
1379
|
}
|
|
1415
1380
|
return r;
|
|
1416
1381
|
}
|
|
1417
|
-
function
|
|
1382
|
+
function Bi(e) {
|
|
1418
1383
|
return e.replace(/^(.*?)-/, "");
|
|
1419
1384
|
}
|
|
1420
|
-
var
|
|
1421
|
-
function
|
|
1385
|
+
var or = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zr = /^(@+)?(\+|#+)?[rs]?$/g, Pi = /(\*)(0+)|(#+)(0+)|(0+)/g, Jr = /^(0+)$/;
|
|
1386
|
+
function ar(e) {
|
|
1422
1387
|
var t = {};
|
|
1423
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1388
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zr, function(r, n, i) {
|
|
1424
1389
|
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)), "";
|
|
1425
1390
|
}), t;
|
|
1426
1391
|
}
|
|
1427
|
-
function
|
|
1392
|
+
function Zr(e) {
|
|
1428
1393
|
switch (e) {
|
|
1429
1394
|
case "sign-auto":
|
|
1430
1395
|
return {
|
|
@@ -1464,7 +1429,7 @@ function Kr(e) {
|
|
|
1464
1429
|
};
|
|
1465
1430
|
}
|
|
1466
1431
|
}
|
|
1467
|
-
function
|
|
1432
|
+
function Oi(e) {
|
|
1468
1433
|
var t;
|
|
1469
1434
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1470
1435
|
notation: "engineering"
|
|
@@ -1472,17 +1437,17 @@ function Ni(e) {
|
|
|
1472
1437
|
notation: "scientific"
|
|
1473
1438
|
}, e = e.slice(1)), t) {
|
|
1474
1439
|
var r = e.slice(0, 2);
|
|
1475
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1440
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jr.test(e))
|
|
1476
1441
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1477
1442
|
t.minimumIntegerDigits = e.length;
|
|
1478
1443
|
}
|
|
1479
1444
|
return t;
|
|
1480
1445
|
}
|
|
1481
|
-
function
|
|
1482
|
-
var t = {}, r =
|
|
1446
|
+
function ur(e) {
|
|
1447
|
+
var t = {}, r = Zr(e);
|
|
1483
1448
|
return r || t;
|
|
1484
1449
|
}
|
|
1485
|
-
function
|
|
1450
|
+
function Li(e) {
|
|
1486
1451
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1487
1452
|
var i = n[r];
|
|
1488
1453
|
switch (i.stem) {
|
|
@@ -1506,7 +1471,7 @@ function Mi(e) {
|
|
|
1506
1471
|
continue;
|
|
1507
1472
|
case "measure-unit":
|
|
1508
1473
|
case "unit":
|
|
1509
|
-
t.style = "unit", t.unit =
|
|
1474
|
+
t.style = "unit", t.unit = Bi(i.options[0]);
|
|
1510
1475
|
continue;
|
|
1511
1476
|
case "compact-short":
|
|
1512
1477
|
case "K":
|
|
@@ -1517,13 +1482,13 @@ function Mi(e) {
|
|
|
1517
1482
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1518
1483
|
continue;
|
|
1519
1484
|
case "scientific":
|
|
1520
|
-
t =
|
|
1521
|
-
return
|
|
1485
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1486
|
+
return B(B({}, l), ur(u));
|
|
1522
1487
|
}, {}));
|
|
1523
1488
|
continue;
|
|
1524
1489
|
case "engineering":
|
|
1525
|
-
t =
|
|
1526
|
-
return
|
|
1490
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1491
|
+
return B(B({}, l), ur(u));
|
|
1527
1492
|
}, {}));
|
|
1528
1493
|
continue;
|
|
1529
1494
|
case "notation-simple":
|
|
@@ -1568,11 +1533,11 @@ function Mi(e) {
|
|
|
1568
1533
|
case "integer-width":
|
|
1569
1534
|
if (i.options.length > 1)
|
|
1570
1535
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1571
|
-
i.options[0].replace(
|
|
1536
|
+
i.options[0].replace(Pi, function(l, u, h, d, f, b) {
|
|
1572
1537
|
if (u)
|
|
1573
|
-
t.minimumIntegerDigits =
|
|
1538
|
+
t.minimumIntegerDigits = h.length;
|
|
1574
1539
|
else {
|
|
1575
|
-
if (
|
|
1540
|
+
if (d && f)
|
|
1576
1541
|
throw new Error("We currently do not support maximum integer digits");
|
|
1577
1542
|
if (b)
|
|
1578
1543
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1581,28 +1546,28 @@ function Mi(e) {
|
|
|
1581
1546
|
});
|
|
1582
1547
|
continue;
|
|
1583
1548
|
}
|
|
1584
|
-
if (
|
|
1549
|
+
if (Jr.test(i.stem)) {
|
|
1585
1550
|
t.minimumIntegerDigits = i.stem.length;
|
|
1586
1551
|
continue;
|
|
1587
1552
|
}
|
|
1588
|
-
if (
|
|
1553
|
+
if (or.test(i.stem)) {
|
|
1589
1554
|
if (i.options.length > 1)
|
|
1590
1555
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1591
|
-
i.stem.replace(
|
|
1592
|
-
return
|
|
1556
|
+
i.stem.replace(or, function(l, u, h, d, f, b) {
|
|
1557
|
+
return h === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1593
1558
|
});
|
|
1594
|
-
var
|
|
1595
|
-
|
|
1559
|
+
var s = i.options[0];
|
|
1560
|
+
s === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = B(B({}, t), ar(s)));
|
|
1596
1561
|
continue;
|
|
1597
1562
|
}
|
|
1598
|
-
if (
|
|
1599
|
-
t =
|
|
1563
|
+
if (zr.test(i.stem)) {
|
|
1564
|
+
t = B(B({}, t), ar(i.stem));
|
|
1600
1565
|
continue;
|
|
1601
1566
|
}
|
|
1602
|
-
var
|
|
1603
|
-
|
|
1604
|
-
var a =
|
|
1605
|
-
a && (t =
|
|
1567
|
+
var o = Zr(i.stem);
|
|
1568
|
+
o && (t = B(B({}, t), o));
|
|
1569
|
+
var a = Oi(i.stem);
|
|
1570
|
+
a && (t = B(B({}, t), a));
|
|
1606
1571
|
}
|
|
1607
1572
|
return t;
|
|
1608
1573
|
}
|
|
@@ -3021,23 +2986,23 @@ var it = {
|
|
|
3021
2986
|
"h"
|
|
3022
2987
|
]
|
|
3023
2988
|
};
|
|
3024
|
-
function
|
|
2989
|
+
function Ci(e, t) {
|
|
3025
2990
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3026
2991
|
var i = e.charAt(n);
|
|
3027
2992
|
if (i === "j") {
|
|
3028
|
-
for (var
|
|
3029
|
-
|
|
3030
|
-
var
|
|
2993
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2994
|
+
s++, n++;
|
|
2995
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ii(t);
|
|
3031
2996
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3032
2997
|
r += l;
|
|
3033
|
-
for (;
|
|
2998
|
+
for (; o-- > 0; )
|
|
3034
2999
|
r = u + r;
|
|
3035
3000
|
} else
|
|
3036
3001
|
i === "J" ? r += "H" : r += i;
|
|
3037
3002
|
}
|
|
3038
3003
|
return r;
|
|
3039
3004
|
}
|
|
3040
|
-
function
|
|
3005
|
+
function Ii(e) {
|
|
3041
3006
|
var t = e.hourCycle;
|
|
3042
3007
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3043
3008
|
e.hourCycles && // @ts-ignore
|
|
@@ -3059,20 +3024,20 @@ function Ui(e) {
|
|
|
3059
3024
|
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
3060
3025
|
return i[0];
|
|
3061
3026
|
}
|
|
3062
|
-
var
|
|
3027
|
+
var Et, Ni = new RegExp("^".concat(Xr.source, "*")), Mi = new RegExp("".concat(Xr.source, "*$"));
|
|
3063
3028
|
function A(e, t) {
|
|
3064
3029
|
return { start: e, end: t };
|
|
3065
3030
|
}
|
|
3066
|
-
var
|
|
3031
|
+
var Ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ui = !!String.fromCodePoint, Di = !!Object.fromEntries, Gi = !!String.prototype.codePointAt, ki = !!String.prototype.trimStart, ji = !!String.prototype.trimEnd, Fi = !!Number.isSafeInteger, $i = Fi ? Number.isSafeInteger : function(e) {
|
|
3067
3032
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3068
|
-
},
|
|
3033
|
+
}, It = !0;
|
|
3069
3034
|
try {
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3035
|
+
var Vi = Yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3036
|
+
It = ((Et = Vi.exec("a")) === null || Et === void 0 ? void 0 : Et[0]) === "a";
|
|
3072
3037
|
} catch (e) {
|
|
3073
|
-
|
|
3038
|
+
It = !1;
|
|
3074
3039
|
}
|
|
3075
|
-
var
|
|
3040
|
+
var lr = Ri ? (
|
|
3076
3041
|
// Native
|
|
3077
3042
|
function(t, r, n) {
|
|
3078
3043
|
return t.startsWith(r, n);
|
|
@@ -3082,31 +3047,31 @@ var pr = ki ? (
|
|
|
3082
3047
|
function(t, r, n) {
|
|
3083
3048
|
return t.slice(n, n + r.length) === r;
|
|
3084
3049
|
}
|
|
3085
|
-
),
|
|
3050
|
+
), Nt = Ui ? String.fromCodePoint : (
|
|
3086
3051
|
// IE11
|
|
3087
3052
|
function() {
|
|
3088
3053
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3089
3054
|
t[r] = arguments[r];
|
|
3090
|
-
for (var n = "", i = t.length,
|
|
3091
|
-
if (
|
|
3092
|
-
throw RangeError(
|
|
3093
|
-
n +=
|
|
3055
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
3056
|
+
if (o = t[s++], o > 1114111)
|
|
3057
|
+
throw RangeError(o + " is not a valid code point");
|
|
3058
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
3094
3059
|
}
|
|
3095
3060
|
return n;
|
|
3096
3061
|
}
|
|
3097
|
-
),
|
|
3062
|
+
), hr = (
|
|
3098
3063
|
// native
|
|
3099
|
-
|
|
3064
|
+
Di ? Object.fromEntries : (
|
|
3100
3065
|
// Ponyfill
|
|
3101
3066
|
function(t) {
|
|
3102
3067
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3103
|
-
var
|
|
3104
|
-
r[
|
|
3068
|
+
var s = i[n], o = s[0], a = s[1];
|
|
3069
|
+
r[o] = a;
|
|
3105
3070
|
}
|
|
3106
3071
|
return r;
|
|
3107
3072
|
}
|
|
3108
3073
|
)
|
|
3109
|
-
),
|
|
3074
|
+
), Qr = Gi ? (
|
|
3110
3075
|
// Native
|
|
3111
3076
|
function(t, r) {
|
|
3112
3077
|
return t.codePointAt(r);
|
|
@@ -3116,11 +3081,11 @@ var pr = ki ? (
|
|
|
3116
3081
|
function(t, r) {
|
|
3117
3082
|
var n = t.length;
|
|
3118
3083
|
if (!(r < 0 || r >= n)) {
|
|
3119
|
-
var i = t.charCodeAt(r),
|
|
3120
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
3084
|
+
var i = t.charCodeAt(r), s;
|
|
3085
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3121
3086
|
}
|
|
3122
3087
|
}
|
|
3123
|
-
),
|
|
3088
|
+
), Wi = ki ? (
|
|
3124
3089
|
// Native
|
|
3125
3090
|
function(t) {
|
|
3126
3091
|
return t.trimStart();
|
|
@@ -3128,9 +3093,9 @@ var pr = ki ? (
|
|
|
3128
3093
|
) : (
|
|
3129
3094
|
// Ponyfill
|
|
3130
3095
|
function(t) {
|
|
3131
|
-
return t.replace(
|
|
3096
|
+
return t.replace(Ni, "");
|
|
3132
3097
|
}
|
|
3133
|
-
),
|
|
3098
|
+
), Xi = ji ? (
|
|
3134
3099
|
// Native
|
|
3135
3100
|
function(t) {
|
|
3136
3101
|
return t.trimEnd();
|
|
@@ -3138,32 +3103,32 @@ var pr = ki ? (
|
|
|
3138
3103
|
) : (
|
|
3139
3104
|
// Ponyfill
|
|
3140
3105
|
function(t) {
|
|
3141
|
-
return t.replace(
|
|
3106
|
+
return t.replace(Mi, "");
|
|
3142
3107
|
}
|
|
3143
3108
|
);
|
|
3144
|
-
function
|
|
3109
|
+
function Yr(e, t) {
|
|
3145
3110
|
return new RegExp(e, t);
|
|
3146
3111
|
}
|
|
3147
|
-
var
|
|
3148
|
-
if (
|
|
3149
|
-
var
|
|
3150
|
-
|
|
3112
|
+
var Mt;
|
|
3113
|
+
if (It) {
|
|
3114
|
+
var cr = Yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3115
|
+
Mt = function(t, r) {
|
|
3151
3116
|
var n;
|
|
3152
|
-
|
|
3153
|
-
var i =
|
|
3117
|
+
cr.lastIndex = r;
|
|
3118
|
+
var i = cr.exec(t);
|
|
3154
3119
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3155
3120
|
};
|
|
3156
3121
|
} else
|
|
3157
|
-
|
|
3122
|
+
Mt = function(t, r) {
|
|
3158
3123
|
for (var n = []; ; ) {
|
|
3159
|
-
var i =
|
|
3160
|
-
if (i === void 0 ||
|
|
3124
|
+
var i = Qr(t, r);
|
|
3125
|
+
if (i === void 0 || qr(i) || Qi(i))
|
|
3161
3126
|
break;
|
|
3162
3127
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3163
3128
|
}
|
|
3164
|
-
return
|
|
3129
|
+
return Nt.apply(void 0, n);
|
|
3165
3130
|
};
|
|
3166
|
-
var
|
|
3131
|
+
var zi = (
|
|
3167
3132
|
/** @class */
|
|
3168
3133
|
function() {
|
|
3169
3134
|
function e(t, r) {
|
|
@@ -3175,35 +3140,35 @@ var Yi = (
|
|
|
3175
3140
|
return this.parseMessage(0, "", !1);
|
|
3176
3141
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3177
3142
|
for (var i = []; !this.isEOF(); ) {
|
|
3178
|
-
var
|
|
3179
|
-
if (
|
|
3180
|
-
var
|
|
3181
|
-
if (
|
|
3182
|
-
return
|
|
3183
|
-
i.push(
|
|
3143
|
+
var s = this.char();
|
|
3144
|
+
if (s === 123) {
|
|
3145
|
+
var o = this.parseArgument(t, n);
|
|
3146
|
+
if (o.err)
|
|
3147
|
+
return o;
|
|
3148
|
+
i.push(o.val);
|
|
3184
3149
|
} else {
|
|
3185
|
-
if (
|
|
3150
|
+
if (s === 125 && t > 0)
|
|
3186
3151
|
break;
|
|
3187
|
-
if (
|
|
3152
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3188
3153
|
var a = this.clonePosition();
|
|
3189
3154
|
this.bump(), i.push({
|
|
3190
|
-
type:
|
|
3155
|
+
type: P.pound,
|
|
3191
3156
|
location: A(a, this.clonePosition())
|
|
3192
3157
|
});
|
|
3193
|
-
} else if (
|
|
3158
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3194
3159
|
if (n)
|
|
3195
3160
|
break;
|
|
3196
3161
|
return this.error(w.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
|
|
3197
|
-
} else if (
|
|
3198
|
-
var
|
|
3199
|
-
if (
|
|
3200
|
-
return
|
|
3201
|
-
i.push(
|
|
3162
|
+
} else if (s === 60 && !this.ignoreTag && Rt(this.peek() || 0)) {
|
|
3163
|
+
var o = this.parseTag(t, r);
|
|
3164
|
+
if (o.err)
|
|
3165
|
+
return o;
|
|
3166
|
+
i.push(o.val);
|
|
3202
3167
|
} else {
|
|
3203
|
-
var
|
|
3204
|
-
if (
|
|
3205
|
-
return
|
|
3206
|
-
i.push(
|
|
3168
|
+
var o = this.parseLiteral(t, r);
|
|
3169
|
+
if (o.err)
|
|
3170
|
+
return o;
|
|
3171
|
+
i.push(o.val);
|
|
3207
3172
|
}
|
|
3208
3173
|
}
|
|
3209
3174
|
}
|
|
@@ -3215,26 +3180,26 @@ var Yi = (
|
|
|
3215
3180
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3216
3181
|
return {
|
|
3217
3182
|
val: {
|
|
3218
|
-
type:
|
|
3183
|
+
type: P.literal,
|
|
3219
3184
|
value: "<".concat(i, "/>"),
|
|
3220
3185
|
location: A(n, this.clonePosition())
|
|
3221
3186
|
},
|
|
3222
3187
|
err: null
|
|
3223
3188
|
};
|
|
3224
3189
|
if (this.bumpIf(">")) {
|
|
3225
|
-
var
|
|
3226
|
-
if (
|
|
3227
|
-
return
|
|
3228
|
-
var
|
|
3190
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
3191
|
+
if (s.err)
|
|
3192
|
+
return s;
|
|
3193
|
+
var o = s.val, a = this.clonePosition();
|
|
3229
3194
|
if (this.bumpIf("</")) {
|
|
3230
|
-
if (this.isEOF() || !
|
|
3195
|
+
if (this.isEOF() || !Rt(this.char()))
|
|
3231
3196
|
return this.error(w.INVALID_TAG, A(a, this.clonePosition()));
|
|
3232
3197
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3233
3198
|
return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, A(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3234
3199
|
val: {
|
|
3235
|
-
type:
|
|
3200
|
+
type: P.tag,
|
|
3236
3201
|
value: i,
|
|
3237
|
-
children:
|
|
3202
|
+
children: o,
|
|
3238
3203
|
location: A(n, this.clonePosition())
|
|
3239
3204
|
},
|
|
3240
3205
|
err: null
|
|
@@ -3245,21 +3210,21 @@ var Yi = (
|
|
|
3245
3210
|
return this.error(w.INVALID_TAG, A(n, this.clonePosition()));
|
|
3246
3211
|
}, e.prototype.parseTagName = function() {
|
|
3247
3212
|
var t = this.offset();
|
|
3248
|
-
for (this.bump(); !this.isEOF() &&
|
|
3213
|
+
for (this.bump(); !this.isEOF() && Zi(this.char()); )
|
|
3249
3214
|
this.bump();
|
|
3250
3215
|
return this.message.slice(t, this.offset());
|
|
3251
3216
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3252
3217
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3253
|
-
var
|
|
3254
|
-
if (o) {
|
|
3255
|
-
i += o;
|
|
3256
|
-
continue;
|
|
3257
|
-
}
|
|
3258
|
-
var s = this.tryParseUnquoted(t, r);
|
|
3218
|
+
var s = this.tryParseQuote(r);
|
|
3259
3219
|
if (s) {
|
|
3260
3220
|
i += s;
|
|
3261
3221
|
continue;
|
|
3262
3222
|
}
|
|
3223
|
+
var o = this.tryParseUnquoted(t, r);
|
|
3224
|
+
if (o) {
|
|
3225
|
+
i += o;
|
|
3226
|
+
continue;
|
|
3227
|
+
}
|
|
3263
3228
|
var a = this.tryParseLeftAngleBracket();
|
|
3264
3229
|
if (a) {
|
|
3265
3230
|
i += a;
|
|
@@ -3269,12 +3234,12 @@ var Yi = (
|
|
|
3269
3234
|
}
|
|
3270
3235
|
var l = A(n, this.clonePosition());
|
|
3271
3236
|
return {
|
|
3272
|
-
val: { type:
|
|
3237
|
+
val: { type: P.literal, value: i, location: l },
|
|
3273
3238
|
err: null
|
|
3274
3239
|
};
|
|
3275
3240
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3276
3241
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3277
|
-
!
|
|
3242
|
+
!Ji(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3278
3243
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3279
3244
|
if (this.isEOF() || this.char() !== 39)
|
|
3280
3245
|
return null;
|
|
@@ -3308,12 +3273,12 @@ var Yi = (
|
|
|
3308
3273
|
r.push(n);
|
|
3309
3274
|
this.bump();
|
|
3310
3275
|
}
|
|
3311
|
-
return
|
|
3276
|
+
return Nt.apply(void 0, r);
|
|
3312
3277
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3313
3278
|
if (this.isEOF())
|
|
3314
3279
|
return null;
|
|
3315
3280
|
var n = this.char();
|
|
3316
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3281
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Nt(n));
|
|
3317
3282
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3318
3283
|
var n = this.clonePosition();
|
|
3319
3284
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3329,7 +3294,7 @@ var Yi = (
|
|
|
3329
3294
|
case 125:
|
|
3330
3295
|
return this.bump(), {
|
|
3331
3296
|
val: {
|
|
3332
|
-
type:
|
|
3297
|
+
type: P.argument,
|
|
3333
3298
|
// value does not include the opening and closing braces.
|
|
3334
3299
|
value: i,
|
|
3335
3300
|
location: A(n, this.clonePosition())
|
|
@@ -3342,15 +3307,15 @@ var Yi = (
|
|
|
3342
3307
|
return this.error(w.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
3343
3308
|
}
|
|
3344
3309
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3345
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3310
|
+
var t = this.clonePosition(), r = this.offset(), n = Mt(this.message, r), i = r + n.length;
|
|
3346
3311
|
this.bumpTo(i);
|
|
3347
|
-
var
|
|
3348
|
-
return { value: n, location:
|
|
3312
|
+
var s = this.clonePosition(), o = A(t, s);
|
|
3313
|
+
return { value: n, location: o };
|
|
3349
3314
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3350
|
-
var
|
|
3315
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3351
3316
|
switch (a) {
|
|
3352
3317
|
case "":
|
|
3353
|
-
return this.error(w.EXPECT_ARGUMENT_TYPE, A(
|
|
3318
|
+
return this.error(w.EXPECT_ARGUMENT_TYPE, A(o, l));
|
|
3354
3319
|
case "number":
|
|
3355
3320
|
case "date":
|
|
3356
3321
|
case "time": {
|
|
@@ -3358,38 +3323,38 @@ var Yi = (
|
|
|
3358
3323
|
var u = null;
|
|
3359
3324
|
if (this.bumpIf(",")) {
|
|
3360
3325
|
this.bumpSpace();
|
|
3361
|
-
var
|
|
3362
|
-
if (
|
|
3363
|
-
return
|
|
3364
|
-
var f =
|
|
3326
|
+
var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
3327
|
+
if (d.err)
|
|
3328
|
+
return d;
|
|
3329
|
+
var f = Xi(d.val);
|
|
3365
3330
|
if (f.length === 0)
|
|
3366
3331
|
return this.error(w.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
|
|
3367
|
-
var b = A(
|
|
3332
|
+
var b = A(h, this.clonePosition());
|
|
3368
3333
|
u = { style: f, styleLocation: b };
|
|
3369
3334
|
}
|
|
3370
3335
|
var x = this.tryParseArgumentClose(i);
|
|
3371
3336
|
if (x.err)
|
|
3372
3337
|
return x;
|
|
3373
3338
|
var g = A(i, this.clonePosition());
|
|
3374
|
-
if (u &&
|
|
3375
|
-
var v =
|
|
3339
|
+
if (u && lr(u == null ? void 0 : u.style, "::", 0)) {
|
|
3340
|
+
var v = Wi(u.style.slice(2));
|
|
3376
3341
|
if (a === "number") {
|
|
3377
|
-
var
|
|
3378
|
-
return
|
|
3379
|
-
val: { type:
|
|
3342
|
+
var d = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3343
|
+
return d.err ? d : {
|
|
3344
|
+
val: { type: P.number, value: n, location: g, style: d.val },
|
|
3380
3345
|
err: null
|
|
3381
3346
|
};
|
|
3382
3347
|
} else {
|
|
3383
3348
|
if (v.length === 0)
|
|
3384
3349
|
return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
|
|
3385
3350
|
var S = v;
|
|
3386
|
-
this.locale && (S =
|
|
3351
|
+
this.locale && (S = Ci(v, this.locale));
|
|
3387
3352
|
var f = {
|
|
3388
|
-
type:
|
|
3353
|
+
type: Ce.dateTime,
|
|
3389
3354
|
pattern: S,
|
|
3390
3355
|
location: u.styleLocation,
|
|
3391
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3392
|
-
}, y = a === "date" ?
|
|
3356
|
+
parsedOptions: this.shouldParseSkeletons ? wi(S) : {}
|
|
3357
|
+
}, y = a === "date" ? P.date : P.time;
|
|
3393
3358
|
return {
|
|
3394
3359
|
val: { type: y, value: n, location: g, style: f },
|
|
3395
3360
|
err: null
|
|
@@ -3398,10 +3363,10 @@ var Yi = (
|
|
|
3398
3363
|
}
|
|
3399
3364
|
return {
|
|
3400
3365
|
val: {
|
|
3401
|
-
type: a === "number" ?
|
|
3366
|
+
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
3402
3367
|
value: n,
|
|
3403
3368
|
location: g,
|
|
3404
|
-
style: (
|
|
3369
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
3405
3370
|
},
|
|
3406
3371
|
err: null
|
|
3407
3372
|
};
|
|
@@ -3411,38 +3376,38 @@ var Yi = (
|
|
|
3411
3376
|
case "select": {
|
|
3412
3377
|
var T = this.clonePosition();
|
|
3413
3378
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3414
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, A(T,
|
|
3379
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, A(T, B({}, T)));
|
|
3415
3380
|
this.bumpSpace();
|
|
3416
3381
|
var C = this.parseIdentifierIfPossible(), G = 0;
|
|
3417
3382
|
if (a !== "select" && C.value === "offset") {
|
|
3418
3383
|
if (!this.bumpIf(":"))
|
|
3419
3384
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
|
|
3420
3385
|
this.bumpSpace();
|
|
3421
|
-
var
|
|
3422
|
-
if (
|
|
3423
|
-
return
|
|
3424
|
-
this.bumpSpace(), C = this.parseIdentifierIfPossible(), G =
|
|
3386
|
+
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3387
|
+
if (d.err)
|
|
3388
|
+
return d;
|
|
3389
|
+
this.bumpSpace(), C = this.parseIdentifierIfPossible(), G = d.val;
|
|
3425
3390
|
}
|
|
3426
|
-
var
|
|
3427
|
-
if (
|
|
3428
|
-
return
|
|
3391
|
+
var $ = this.tryParsePluralOrSelectOptions(t, a, r, C);
|
|
3392
|
+
if ($.err)
|
|
3393
|
+
return $;
|
|
3429
3394
|
var x = this.tryParseArgumentClose(i);
|
|
3430
3395
|
if (x.err)
|
|
3431
3396
|
return x;
|
|
3432
3397
|
var J = A(i, this.clonePosition());
|
|
3433
3398
|
return a === "select" ? {
|
|
3434
3399
|
val: {
|
|
3435
|
-
type:
|
|
3400
|
+
type: P.select,
|
|
3436
3401
|
value: n,
|
|
3437
|
-
options:
|
|
3402
|
+
options: hr($.val),
|
|
3438
3403
|
location: J
|
|
3439
3404
|
},
|
|
3440
3405
|
err: null
|
|
3441
3406
|
} : {
|
|
3442
3407
|
val: {
|
|
3443
|
-
type:
|
|
3408
|
+
type: P.plural,
|
|
3444
3409
|
value: n,
|
|
3445
|
-
options:
|
|
3410
|
+
options: hr($.val),
|
|
3446
3411
|
offset: G,
|
|
3447
3412
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3448
3413
|
location: J
|
|
@@ -3451,7 +3416,7 @@ var Yi = (
|
|
|
3451
3416
|
};
|
|
3452
3417
|
}
|
|
3453
3418
|
default:
|
|
3454
|
-
return this.error(w.INVALID_ARGUMENT_TYPE, A(
|
|
3419
|
+
return this.error(w.INVALID_ARGUMENT_TYPE, A(o, l));
|
|
3455
3420
|
}
|
|
3456
3421
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3457
3422
|
return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3493,34 +3458,34 @@ var Yi = (
|
|
|
3493
3458
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3494
3459
|
var n = [];
|
|
3495
3460
|
try {
|
|
3496
|
-
n =
|
|
3461
|
+
n = Ai(t);
|
|
3497
3462
|
} catch (i) {
|
|
3498
3463
|
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
3499
3464
|
}
|
|
3500
3465
|
return {
|
|
3501
3466
|
val: {
|
|
3502
|
-
type:
|
|
3467
|
+
type: Ce.number,
|
|
3503
3468
|
tokens: n,
|
|
3504
3469
|
location: r,
|
|
3505
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3470
|
+
parsedOptions: this.shouldParseSkeletons ? Li(n) : {}
|
|
3506
3471
|
},
|
|
3507
3472
|
err: null
|
|
3508
3473
|
};
|
|
3509
3474
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3510
|
-
for (var
|
|
3475
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3511
3476
|
if (u.length === 0) {
|
|
3512
|
-
var
|
|
3477
|
+
var d = this.clonePosition();
|
|
3513
3478
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3514
3479
|
var f = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3515
3480
|
if (f.err)
|
|
3516
3481
|
return f;
|
|
3517
|
-
|
|
3482
|
+
h = A(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
3518
3483
|
} else
|
|
3519
3484
|
break;
|
|
3520
3485
|
}
|
|
3521
3486
|
if (l.has(u))
|
|
3522
|
-
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3523
|
-
u === "other" && (
|
|
3487
|
+
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3488
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3524
3489
|
var b = this.clonePosition();
|
|
3525
3490
|
if (!this.bumpIf("{"))
|
|
3526
3491
|
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
|
|
@@ -3536,21 +3501,21 @@ var Yi = (
|
|
|
3536
3501
|
value: x.val,
|
|
3537
3502
|
location: A(b, this.clonePosition())
|
|
3538
3503
|
}
|
|
3539
|
-
]), l.add(u), this.bumpSpace(),
|
|
3504
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3540
3505
|
}
|
|
3541
|
-
return a.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3506
|
+
return a.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(w.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3542
3507
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3543
3508
|
var n = 1, i = this.clonePosition();
|
|
3544
3509
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3545
|
-
for (var
|
|
3510
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3546
3511
|
var a = this.char();
|
|
3547
3512
|
if (a >= 48 && a <= 57)
|
|
3548
|
-
|
|
3513
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3549
3514
|
else
|
|
3550
3515
|
break;
|
|
3551
3516
|
}
|
|
3552
3517
|
var l = A(i, this.clonePosition());
|
|
3553
|
-
return
|
|
3518
|
+
return s ? (o *= n, $i(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3554
3519
|
}, e.prototype.offset = function() {
|
|
3555
3520
|
return this.position.offset;
|
|
3556
3521
|
}, e.prototype.isEOF = function() {
|
|
@@ -3565,7 +3530,7 @@ var Yi = (
|
|
|
3565
3530
|
var t = this.position.offset;
|
|
3566
3531
|
if (t >= this.message.length)
|
|
3567
3532
|
throw Error("out of bound");
|
|
3568
|
-
var r =
|
|
3533
|
+
var r = Qr(this.message, t);
|
|
3569
3534
|
if (r === void 0)
|
|
3570
3535
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3571
3536
|
return r;
|
|
@@ -3584,7 +3549,7 @@ var Yi = (
|
|
|
3584
3549
|
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);
|
|
3585
3550
|
}
|
|
3586
3551
|
}, e.prototype.bumpIf = function(t) {
|
|
3587
|
-
if (
|
|
3552
|
+
if (lr(this.message, t, this.offset())) {
|
|
3588
3553
|
for (var r = 0; r < t.length; r++)
|
|
3589
3554
|
this.bump();
|
|
3590
3555
|
return !0;
|
|
@@ -3606,7 +3571,7 @@ var Yi = (
|
|
|
3606
3571
|
break;
|
|
3607
3572
|
}
|
|
3608
3573
|
}, e.prototype.bumpSpace = function() {
|
|
3609
|
-
for (; !this.isEOF() &&
|
|
3574
|
+
for (; !this.isEOF() && qr(this.char()); )
|
|
3610
3575
|
this.bump();
|
|
3611
3576
|
}, e.prototype.peek = function() {
|
|
3612
3577
|
if (this.isEOF())
|
|
@@ -3616,97 +3581,97 @@ var Yi = (
|
|
|
3616
3581
|
}, e;
|
|
3617
3582
|
}()
|
|
3618
3583
|
);
|
|
3619
|
-
function
|
|
3584
|
+
function Rt(e) {
|
|
3620
3585
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3621
3586
|
}
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3587
|
+
function Ji(e) {
|
|
3588
|
+
return Rt(e) || e === 47;
|
|
3624
3589
|
}
|
|
3625
|
-
function
|
|
3590
|
+
function Zi(e) {
|
|
3626
3591
|
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;
|
|
3627
3592
|
}
|
|
3628
|
-
function
|
|
3593
|
+
function qr(e) {
|
|
3629
3594
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3630
3595
|
}
|
|
3631
|
-
function
|
|
3596
|
+
function Qi(e) {
|
|
3632
3597
|
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;
|
|
3633
3598
|
}
|
|
3634
|
-
function
|
|
3599
|
+
function Ut(e) {
|
|
3635
3600
|
e.forEach(function(t) {
|
|
3636
|
-
if (delete t.location,
|
|
3601
|
+
if (delete t.location, Fr(t) || $r(t))
|
|
3637
3602
|
for (var r in t.options)
|
|
3638
|
-
delete t.options[r].location,
|
|
3603
|
+
delete t.options[r].location, Ut(t.options[r].value);
|
|
3639
3604
|
else
|
|
3640
|
-
|
|
3605
|
+
Gr(t) && Wr(t.style) || (kr(t) || jr(t)) && Ct(t.style) ? delete t.style.location : Vr(t) && Ut(t.children);
|
|
3641
3606
|
});
|
|
3642
3607
|
}
|
|
3643
|
-
function
|
|
3644
|
-
t === void 0 && (t = {}), t =
|
|
3645
|
-
var r = new
|
|
3608
|
+
function Yi(e, t) {
|
|
3609
|
+
t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3610
|
+
var r = new zi(e, t).parse();
|
|
3646
3611
|
if (r.err) {
|
|
3647
3612
|
var n = SyntaxError(w[r.err.kind]);
|
|
3648
3613
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3649
3614
|
}
|
|
3650
|
-
return t != null && t.captureLocation ||
|
|
3615
|
+
return t != null && t.captureLocation || Ut(r.val), r.val;
|
|
3651
3616
|
}
|
|
3652
|
-
var
|
|
3617
|
+
var Ie;
|
|
3653
3618
|
(function(e) {
|
|
3654
3619
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3655
|
-
})(
|
|
3656
|
-
var
|
|
3620
|
+
})(Ie || (Ie = {}));
|
|
3621
|
+
var dt = (
|
|
3657
3622
|
/** @class */
|
|
3658
3623
|
function(e) {
|
|
3659
|
-
|
|
3624
|
+
ce(t, e);
|
|
3660
3625
|
function t(r, n, i) {
|
|
3661
|
-
var
|
|
3662
|
-
return
|
|
3626
|
+
var s = e.call(this, r) || this;
|
|
3627
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3663
3628
|
}
|
|
3664
3629
|
return t.prototype.toString = function() {
|
|
3665
3630
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3666
3631
|
}, t;
|
|
3667
3632
|
}(Error)
|
|
3668
|
-
),
|
|
3633
|
+
), fr = (
|
|
3669
3634
|
/** @class */
|
|
3670
3635
|
function(e) {
|
|
3671
|
-
|
|
3672
|
-
function t(r, n, i,
|
|
3673
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3636
|
+
ce(t, e);
|
|
3637
|
+
function t(r, n, i, s) {
|
|
3638
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ie.INVALID_VALUE, s) || this;
|
|
3674
3639
|
}
|
|
3675
3640
|
return t;
|
|
3676
|
-
}(
|
|
3677
|
-
),
|
|
3641
|
+
}(dt)
|
|
3642
|
+
), qi = (
|
|
3678
3643
|
/** @class */
|
|
3679
3644
|
function(e) {
|
|
3680
|
-
|
|
3645
|
+
ce(t, e);
|
|
3681
3646
|
function t(r, n, i) {
|
|
3682
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3647
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ie.INVALID_VALUE, i) || this;
|
|
3683
3648
|
}
|
|
3684
3649
|
return t;
|
|
3685
|
-
}(
|
|
3686
|
-
),
|
|
3650
|
+
}(dt)
|
|
3651
|
+
), Ki = (
|
|
3687
3652
|
/** @class */
|
|
3688
3653
|
function(e) {
|
|
3689
|
-
|
|
3654
|
+
ce(t, e);
|
|
3690
3655
|
function t(r, n) {
|
|
3691
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3656
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ie.MISSING_VALUE, n) || this;
|
|
3692
3657
|
}
|
|
3693
3658
|
return t;
|
|
3694
|
-
}(
|
|
3659
|
+
}(dt)
|
|
3695
3660
|
), k;
|
|
3696
3661
|
(function(e) {
|
|
3697
3662
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3698
3663
|
})(k || (k = {}));
|
|
3699
|
-
function
|
|
3664
|
+
function es(e) {
|
|
3700
3665
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3701
3666
|
var n = t[t.length - 1];
|
|
3702
3667
|
return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
|
|
3703
3668
|
}, []);
|
|
3704
3669
|
}
|
|
3705
|
-
function
|
|
3670
|
+
function ts(e) {
|
|
3706
3671
|
return typeof e == "function";
|
|
3707
3672
|
}
|
|
3708
|
-
function at(e, t, r, n, i,
|
|
3709
|
-
if (e.length === 1 &&
|
|
3673
|
+
function at(e, t, r, n, i, s, o) {
|
|
3674
|
+
if (e.length === 1 && sr(e[0]))
|
|
3710
3675
|
return [
|
|
3711
3676
|
{
|
|
3712
3677
|
type: k.literal,
|
|
@@ -3714,61 +3679,61 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3714
3679
|
}
|
|
3715
3680
|
];
|
|
3716
3681
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3717
|
-
var
|
|
3718
|
-
if (
|
|
3682
|
+
var h = u[l];
|
|
3683
|
+
if (sr(h)) {
|
|
3719
3684
|
a.push({
|
|
3720
3685
|
type: k.literal,
|
|
3721
|
-
value:
|
|
3686
|
+
value: h.value
|
|
3722
3687
|
});
|
|
3723
3688
|
continue;
|
|
3724
3689
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
typeof
|
|
3690
|
+
if (Si(h)) {
|
|
3691
|
+
typeof s == "number" && a.push({
|
|
3727
3692
|
type: k.literal,
|
|
3728
|
-
value: r.getNumberFormat(t).format(
|
|
3693
|
+
value: r.getNumberFormat(t).format(s)
|
|
3729
3694
|
});
|
|
3730
3695
|
continue;
|
|
3731
3696
|
}
|
|
3732
|
-
var
|
|
3733
|
-
if (!(i &&
|
|
3734
|
-
throw new
|
|
3735
|
-
var f = i[
|
|
3736
|
-
if (
|
|
3697
|
+
var d = h.value;
|
|
3698
|
+
if (!(i && d in i))
|
|
3699
|
+
throw new Ki(d, o);
|
|
3700
|
+
var f = i[d];
|
|
3701
|
+
if (xi(h)) {
|
|
3737
3702
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3738
3703
|
type: typeof f == "string" ? k.literal : k.object,
|
|
3739
3704
|
value: f
|
|
3740
3705
|
});
|
|
3741
3706
|
continue;
|
|
3742
3707
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var b = typeof
|
|
3708
|
+
if (kr(h)) {
|
|
3709
|
+
var b = typeof h.style == "string" ? n.date[h.style] : Ct(h.style) ? h.style.parsedOptions : void 0;
|
|
3745
3710
|
a.push({
|
|
3746
3711
|
type: k.literal,
|
|
3747
3712
|
value: r.getDateTimeFormat(t, b).format(f)
|
|
3748
3713
|
});
|
|
3749
3714
|
continue;
|
|
3750
3715
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var b = typeof
|
|
3716
|
+
if (jr(h)) {
|
|
3717
|
+
var b = typeof h.style == "string" ? n.time[h.style] : Ct(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3753
3718
|
a.push({
|
|
3754
3719
|
type: k.literal,
|
|
3755
3720
|
value: r.getDateTimeFormat(t, b).format(f)
|
|
3756
3721
|
});
|
|
3757
3722
|
continue;
|
|
3758
3723
|
}
|
|
3759
|
-
if (
|
|
3760
|
-
var b = typeof
|
|
3724
|
+
if (Gr(h)) {
|
|
3725
|
+
var b = typeof h.style == "string" ? n.number[h.style] : Wr(h.style) ? h.style.parsedOptions : void 0;
|
|
3761
3726
|
b && b.scale && (f = f * (b.scale || 1)), a.push({
|
|
3762
3727
|
type: k.literal,
|
|
3763
3728
|
value: r.getNumberFormat(t, b).format(f)
|
|
3764
3729
|
});
|
|
3765
3730
|
continue;
|
|
3766
3731
|
}
|
|
3767
|
-
if (
|
|
3768
|
-
var x =
|
|
3769
|
-
if (!
|
|
3770
|
-
throw new
|
|
3771
|
-
var S = at(x, t, r, n, i,
|
|
3732
|
+
if (Vr(h)) {
|
|
3733
|
+
var x = h.children, g = h.value, v = i[g];
|
|
3734
|
+
if (!ts(v))
|
|
3735
|
+
throw new qi(g, "function", o);
|
|
3736
|
+
var S = at(x, t, r, n, i, s), y = v(S.map(function(G) {
|
|
3772
3737
|
return G.value;
|
|
3773
3738
|
}));
|
|
3774
3739
|
Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(G) {
|
|
@@ -3778,42 +3743,42 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3778
3743
|
};
|
|
3779
3744
|
}));
|
|
3780
3745
|
}
|
|
3781
|
-
if (
|
|
3782
|
-
var T =
|
|
3746
|
+
if (Fr(h)) {
|
|
3747
|
+
var T = h.options[f] || h.options.other;
|
|
3783
3748
|
if (!T)
|
|
3784
|
-
throw new
|
|
3749
|
+
throw new fr(h.value, f, Object.keys(h.options), o);
|
|
3785
3750
|
a.push.apply(a, at(T.value, t, r, n, i));
|
|
3786
3751
|
continue;
|
|
3787
3752
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var T =
|
|
3753
|
+
if ($r(h)) {
|
|
3754
|
+
var T = h.options["=".concat(f)];
|
|
3790
3755
|
if (!T) {
|
|
3791
3756
|
if (!Intl.PluralRules)
|
|
3792
|
-
throw new
|
|
3757
|
+
throw new dt(`Intl.PluralRules is not available in this environment.
|
|
3793
3758
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3794
|
-
`,
|
|
3795
|
-
var C = r.getPluralRules(t, { type:
|
|
3796
|
-
T =
|
|
3759
|
+
`, Ie.MISSING_INTL_API, o);
|
|
3760
|
+
var C = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3761
|
+
T = h.options[C] || h.options.other;
|
|
3797
3762
|
}
|
|
3798
3763
|
if (!T)
|
|
3799
|
-
throw new
|
|
3800
|
-
a.push.apply(a, at(T.value, t, r, n, i, f - (
|
|
3764
|
+
throw new fr(h.value, f, Object.keys(h.options), o);
|
|
3765
|
+
a.push.apply(a, at(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3801
3766
|
continue;
|
|
3802
3767
|
}
|
|
3803
3768
|
}
|
|
3804
|
-
return
|
|
3769
|
+
return es(a);
|
|
3805
3770
|
}
|
|
3806
|
-
function
|
|
3807
|
-
return t ?
|
|
3808
|
-
return r[n] =
|
|
3771
|
+
function rs(e, t) {
|
|
3772
|
+
return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3773
|
+
return r[n] = B(B({}, e[n]), t[n] || {}), r;
|
|
3809
3774
|
}, {})) : e;
|
|
3810
3775
|
}
|
|
3811
|
-
function
|
|
3776
|
+
function ns(e, t) {
|
|
3812
3777
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3813
|
-
return r[n] =
|
|
3814
|
-
},
|
|
3778
|
+
return r[n] = rs(e[n], t[n]), r;
|
|
3779
|
+
}, B({}, e)) : e;
|
|
3815
3780
|
}
|
|
3816
|
-
function
|
|
3781
|
+
function xt(e) {
|
|
3817
3782
|
return {
|
|
3818
3783
|
create: function() {
|
|
3819
3784
|
return {
|
|
@@ -3827,77 +3792,77 @@ function wt(e) {
|
|
|
3827
3792
|
}
|
|
3828
3793
|
};
|
|
3829
3794
|
}
|
|
3830
|
-
function
|
|
3795
|
+
function is(e) {
|
|
3831
3796
|
return e === void 0 && (e = {
|
|
3832
3797
|
number: {},
|
|
3833
3798
|
dateTime: {},
|
|
3834
3799
|
pluralRules: {}
|
|
3835
3800
|
}), {
|
|
3836
|
-
getNumberFormat:
|
|
3801
|
+
getNumberFormat: vt(function() {
|
|
3837
3802
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3803
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3804
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3840
3805
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3806
|
+
cache: xt(e.number),
|
|
3807
|
+
strategy: _t.variadic
|
|
3843
3808
|
}),
|
|
3844
|
-
getDateTimeFormat:
|
|
3809
|
+
getDateTimeFormat: vt(function() {
|
|
3845
3810
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3846
3811
|
r[n] = arguments[n];
|
|
3847
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3812
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3848
3813
|
}, {
|
|
3849
|
-
cache:
|
|
3850
|
-
strategy:
|
|
3814
|
+
cache: xt(e.dateTime),
|
|
3815
|
+
strategy: _t.variadic
|
|
3851
3816
|
}),
|
|
3852
|
-
getPluralRules:
|
|
3817
|
+
getPluralRules: vt(function() {
|
|
3853
3818
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3854
3819
|
r[n] = arguments[n];
|
|
3855
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3820
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3856
3821
|
}, {
|
|
3857
|
-
cache:
|
|
3858
|
-
strategy:
|
|
3822
|
+
cache: xt(e.pluralRules),
|
|
3823
|
+
strategy: _t.variadic
|
|
3859
3824
|
})
|
|
3860
3825
|
};
|
|
3861
3826
|
}
|
|
3862
|
-
var
|
|
3827
|
+
var ss = (
|
|
3863
3828
|
/** @class */
|
|
3864
3829
|
function() {
|
|
3865
3830
|
function e(t, r, n, i) {
|
|
3866
3831
|
r === void 0 && (r = e.defaultLocale);
|
|
3867
|
-
var
|
|
3832
|
+
var s = this;
|
|
3868
3833
|
if (this.formatterCache = {
|
|
3869
3834
|
number: {},
|
|
3870
3835
|
dateTime: {},
|
|
3871
3836
|
pluralRules: {}
|
|
3872
3837
|
}, this.format = function(l) {
|
|
3873
|
-
var u =
|
|
3838
|
+
var u = s.formatToParts(l);
|
|
3874
3839
|
if (u.length === 1)
|
|
3875
3840
|
return u[0].value;
|
|
3876
|
-
var
|
|
3877
|
-
return !
|
|
3841
|
+
var h = u.reduce(function(d, f) {
|
|
3842
|
+
return !d.length || f.type !== k.literal || typeof d[d.length - 1] != "string" ? d.push(f.value) : d[d.length - 1] += f.value, d;
|
|
3878
3843
|
}, []);
|
|
3879
|
-
return
|
|
3844
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3880
3845
|
}, this.formatToParts = function(l) {
|
|
3881
|
-
return at(
|
|
3846
|
+
return at(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3882
3847
|
}, this.resolvedOptions = function() {
|
|
3883
3848
|
var l;
|
|
3884
3849
|
return {
|
|
3885
|
-
locale: ((l =
|
|
3850
|
+
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3886
3851
|
};
|
|
3887
3852
|
}, this.getAst = function() {
|
|
3888
|
-
return
|
|
3853
|
+
return s.ast;
|
|
3889
3854
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3890
3855
|
if (this.message = t, !e.__parse)
|
|
3891
3856
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3892
|
-
var
|
|
3893
|
-
|
|
3894
|
-
var a =
|
|
3895
|
-
this.ast = e.__parse(t,
|
|
3857
|
+
var o = i || {};
|
|
3858
|
+
o.formatters;
|
|
3859
|
+
var a = Un(o, ["formatters"]);
|
|
3860
|
+
this.ast = e.__parse(t, B(B({}, a), { locale: this.resolvedLocale }));
|
|
3896
3861
|
} else
|
|
3897
3862
|
this.ast = t;
|
|
3898
3863
|
if (!Array.isArray(this.ast))
|
|
3899
3864
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3900
|
-
this.formats =
|
|
3865
|
+
this.formats = ns(e.formats, n), this.formatters = i && i.formatters || is(this.formatterCache);
|
|
3901
3866
|
}
|
|
3902
3867
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3903
3868
|
get: function() {
|
|
@@ -3910,7 +3875,7 @@ var lo = (
|
|
|
3910
3875
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3911
3876
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3912
3877
|
}
|
|
3913
|
-
}, e.__parse =
|
|
3878
|
+
}, e.__parse = Yi, e.formats = {
|
|
3914
3879
|
number: {
|
|
3915
3880
|
integer: {
|
|
3916
3881
|
maximumFractionDigits: 0
|
|
@@ -3971,7 +3936,7 @@ var lo = (
|
|
|
3971
3936
|
}, e;
|
|
3972
3937
|
}()
|
|
3973
3938
|
);
|
|
3974
|
-
function
|
|
3939
|
+
function os(e, t) {
|
|
3975
3940
|
if (t == null)
|
|
3976
3941
|
return;
|
|
3977
3942
|
if (t in e)
|
|
@@ -3981,9 +3946,9 @@ function co(e, t) {
|
|
|
3981
3946
|
for (let i = 0; i < r.length; i++)
|
|
3982
3947
|
if (typeof n == "object") {
|
|
3983
3948
|
if (i > 0) {
|
|
3984
|
-
const
|
|
3985
|
-
if (
|
|
3986
|
-
n = n[
|
|
3949
|
+
const s = r.slice(i, r.length).join(".");
|
|
3950
|
+
if (s in n) {
|
|
3951
|
+
n = n[s];
|
|
3987
3952
|
break;
|
|
3988
3953
|
}
|
|
3989
3954
|
}
|
|
@@ -3992,92 +3957,92 @@ function co(e, t) {
|
|
|
3992
3957
|
n = void 0;
|
|
3993
3958
|
return n;
|
|
3994
3959
|
}
|
|
3995
|
-
const me = {},
|
|
3960
|
+
const me = {}, as = (e, t, r) => r && (t in me || (me[t] = {}), e in me[t] || (me[t][e] = r), r), Kr = (e, t) => {
|
|
3996
3961
|
if (t == null)
|
|
3997
3962
|
return;
|
|
3998
3963
|
if (t in me && e in me[t])
|
|
3999
3964
|
return me[t][e];
|
|
4000
|
-
const r =
|
|
3965
|
+
const r = pt(t);
|
|
4001
3966
|
for (let n = 0; n < r.length; n++) {
|
|
4002
|
-
const i = r[n],
|
|
4003
|
-
if (
|
|
4004
|
-
return
|
|
3967
|
+
const i = r[n], s = ls(i, e);
|
|
3968
|
+
if (s)
|
|
3969
|
+
return as(e, t, s);
|
|
4005
3970
|
}
|
|
4006
3971
|
};
|
|
4007
|
-
let
|
|
4008
|
-
const Ze =
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
3972
|
+
let Ft;
|
|
3973
|
+
const Ze = ft({});
|
|
3974
|
+
function us(e) {
|
|
3975
|
+
return Ft[e] || null;
|
|
4011
3976
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return e in
|
|
3977
|
+
function en(e) {
|
|
3978
|
+
return e in Ft;
|
|
4014
3979
|
}
|
|
4015
|
-
function
|
|
4016
|
-
if (!
|
|
3980
|
+
function ls(e, t) {
|
|
3981
|
+
if (!en(e))
|
|
4017
3982
|
return null;
|
|
4018
|
-
const r =
|
|
4019
|
-
return
|
|
3983
|
+
const r = us(e);
|
|
3984
|
+
return os(r, t);
|
|
4020
3985
|
}
|
|
4021
|
-
function
|
|
3986
|
+
function hs(e) {
|
|
4022
3987
|
if (e == null)
|
|
4023
3988
|
return;
|
|
4024
|
-
const t =
|
|
3989
|
+
const t = pt(e);
|
|
4025
3990
|
for (let r = 0; r < t.length; r++) {
|
|
4026
3991
|
const n = t[r];
|
|
4027
|
-
if (
|
|
3992
|
+
if (en(n))
|
|
4028
3993
|
return n;
|
|
4029
3994
|
}
|
|
4030
3995
|
}
|
|
4031
|
-
function
|
|
4032
|
-
delete me[e], Ze.update((r) => (r[e] =
|
|
3996
|
+
function tn(e, ...t) {
|
|
3997
|
+
delete me[e], Ze.update((r) => (r[e] = pi.all([r[e] || {}, ...t]), r));
|
|
4033
3998
|
}
|
|
4034
|
-
|
|
3999
|
+
Me(
|
|
4035
4000
|
[Ze],
|
|
4036
4001
|
([e]) => Object.keys(e)
|
|
4037
4002
|
);
|
|
4038
|
-
Ze.subscribe((e) =>
|
|
4003
|
+
Ze.subscribe((e) => Ft = e);
|
|
4039
4004
|
const ut = {};
|
|
4040
|
-
function
|
|
4005
|
+
function cs(e, t) {
|
|
4041
4006
|
ut[e].delete(t), ut[e].size === 0 && delete ut[e];
|
|
4042
4007
|
}
|
|
4043
|
-
function
|
|
4008
|
+
function rn(e) {
|
|
4044
4009
|
return ut[e];
|
|
4045
4010
|
}
|
|
4046
|
-
function
|
|
4047
|
-
return
|
|
4048
|
-
const r =
|
|
4011
|
+
function fs(e) {
|
|
4012
|
+
return pt(e).map((t) => {
|
|
4013
|
+
const r = rn(t);
|
|
4049
4014
|
return [t, r ? [...r] : []];
|
|
4050
4015
|
}).filter(([, t]) => t.length > 0);
|
|
4051
4016
|
}
|
|
4052
|
-
function
|
|
4053
|
-
return e == null ? !1 :
|
|
4017
|
+
function Dt(e) {
|
|
4018
|
+
return e == null ? !1 : pt(e).some(
|
|
4054
4019
|
(t) => {
|
|
4055
4020
|
var r;
|
|
4056
|
-
return (r =
|
|
4021
|
+
return (r = rn(t)) == null ? void 0 : r.size;
|
|
4057
4022
|
}
|
|
4058
4023
|
);
|
|
4059
4024
|
}
|
|
4060
|
-
function
|
|
4025
|
+
function ds(e, t) {
|
|
4061
4026
|
return Promise.all(
|
|
4062
|
-
t.map((n) => (
|
|
4063
|
-
).then((n) =>
|
|
4027
|
+
t.map((n) => (cs(e, n), n().then((i) => i.default || i)))
|
|
4028
|
+
).then((n) => tn(e, ...n));
|
|
4064
4029
|
}
|
|
4065
4030
|
const $e = {};
|
|
4066
|
-
function
|
|
4067
|
-
if (!
|
|
4031
|
+
function nn(e) {
|
|
4032
|
+
if (!Dt(e))
|
|
4068
4033
|
return e in $e ? $e[e] : Promise.resolve();
|
|
4069
|
-
const t =
|
|
4034
|
+
const t = fs(e);
|
|
4070
4035
|
return $e[e] = Promise.all(
|
|
4071
4036
|
t.map(
|
|
4072
|
-
([r, n]) =>
|
|
4037
|
+
([r, n]) => ds(r, n)
|
|
4073
4038
|
)
|
|
4074
4039
|
).then(() => {
|
|
4075
|
-
if (
|
|
4076
|
-
return
|
|
4040
|
+
if (Dt(e))
|
|
4041
|
+
return nn(e);
|
|
4077
4042
|
delete $e[e];
|
|
4078
4043
|
}), $e[e];
|
|
4079
4044
|
}
|
|
4080
|
-
const
|
|
4045
|
+
const ps = {
|
|
4081
4046
|
number: {
|
|
4082
4047
|
scientific: { notation: "scientific" },
|
|
4083
4048
|
engineering: { notation: "engineering" },
|
|
@@ -4106,181 +4071,181 @@ const vo = {
|
|
|
4106
4071
|
timeZoneName: "short"
|
|
4107
4072
|
}
|
|
4108
4073
|
}
|
|
4109
|
-
},
|
|
4074
|
+
}, ms = {
|
|
4110
4075
|
fallbackLocale: null,
|
|
4111
4076
|
loadingDelay: 200,
|
|
4112
|
-
formats:
|
|
4077
|
+
formats: ps,
|
|
4113
4078
|
warnOnMissingMessages: !0,
|
|
4114
4079
|
handleMissingMessage: void 0,
|
|
4115
4080
|
ignoreTag: !0
|
|
4116
|
-
},
|
|
4117
|
-
function
|
|
4118
|
-
return
|
|
4119
|
-
}
|
|
4120
|
-
const
|
|
4121
|
-
var
|
|
4122
|
-
for (var r in t
|
|
4123
|
-
|
|
4124
|
-
if (
|
|
4125
|
-
for (var r of
|
|
4126
|
-
|
|
4081
|
+
}, bs = ms;
|
|
4082
|
+
function Ne() {
|
|
4083
|
+
return bs;
|
|
4084
|
+
}
|
|
4085
|
+
const St = ft(!1);
|
|
4086
|
+
var gs = Object.defineProperty, ys = Object.defineProperties, vs = Object.getOwnPropertyDescriptors, dr = Object.getOwnPropertySymbols, _s = Object.prototype.hasOwnProperty, Es = Object.prototype.propertyIsEnumerable, pr = (e, t, r) => t in e ? gs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xs = (e, t) => {
|
|
4087
|
+
for (var r in t)
|
|
4088
|
+
_s.call(t, r) && pr(e, r, t[r]);
|
|
4089
|
+
if (dr)
|
|
4090
|
+
for (var r of dr(t))
|
|
4091
|
+
Es.call(t, r) && pr(e, r, t[r]);
|
|
4127
4092
|
return e;
|
|
4128
|
-
},
|
|
4129
|
-
let
|
|
4130
|
-
const
|
|
4131
|
-
function
|
|
4093
|
+
}, Ss = (e, t) => ys(e, vs(t));
|
|
4094
|
+
let Gt;
|
|
4095
|
+
const lt = ft(null);
|
|
4096
|
+
function mr(e) {
|
|
4132
4097
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4133
4098
|
}
|
|
4134
|
-
function
|
|
4135
|
-
const r =
|
|
4136
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4099
|
+
function pt(e, t = Ne().fallbackLocale) {
|
|
4100
|
+
const r = mr(e);
|
|
4101
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mr(t)])] : r;
|
|
4137
4102
|
}
|
|
4138
4103
|
function ye() {
|
|
4139
|
-
return
|
|
4104
|
+
return Gt != null ? Gt : void 0;
|
|
4140
4105
|
}
|
|
4141
|
-
|
|
4142
|
-
|
|
4106
|
+
lt.subscribe((e) => {
|
|
4107
|
+
Gt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4143
4108
|
});
|
|
4144
|
-
const
|
|
4145
|
-
if (e &&
|
|
4146
|
-
const { loadingDelay: t } =
|
|
4109
|
+
const Ts = (e) => {
|
|
4110
|
+
if (e && hs(e) && Dt(e)) {
|
|
4111
|
+
const { loadingDelay: t } = Ne();
|
|
4147
4112
|
let r;
|
|
4148
4113
|
return typeof window != "undefined" && ye() != null && t ? r = window.setTimeout(
|
|
4149
|
-
() =>
|
|
4114
|
+
() => St.set(!0),
|
|
4150
4115
|
t
|
|
4151
|
-
) :
|
|
4152
|
-
|
|
4116
|
+
) : St.set(!0), nn(e).then(() => {
|
|
4117
|
+
lt.set(e);
|
|
4153
4118
|
}).finally(() => {
|
|
4154
|
-
clearTimeout(r),
|
|
4119
|
+
clearTimeout(r), St.set(!1);
|
|
4155
4120
|
});
|
|
4156
4121
|
}
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4159
|
-
set:
|
|
4160
|
-
}),
|
|
4122
|
+
return lt.set(e);
|
|
4123
|
+
}, Re = Ss(xs({}, lt), {
|
|
4124
|
+
set: Ts
|
|
4125
|
+
}), mt = (e) => {
|
|
4161
4126
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4162
4127
|
return (n) => {
|
|
4163
4128
|
const i = JSON.stringify(n);
|
|
4164
4129
|
return i in t ? t[i] : t[i] = e(n);
|
|
4165
4130
|
};
|
|
4166
4131
|
};
|
|
4167
|
-
var
|
|
4132
|
+
var ws = Object.defineProperty, ht = Object.getOwnPropertySymbols, sn = Object.prototype.hasOwnProperty, on = Object.prototype.propertyIsEnumerable, br = (e, t, r) => t in e ? ws(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $t = (e, t) => {
|
|
4168
4133
|
for (var r in t || (t = {}))
|
|
4169
|
-
|
|
4134
|
+
sn.call(t, r) && br(e, r, t[r]);
|
|
4170
4135
|
if (ht)
|
|
4171
4136
|
for (var r of ht(t))
|
|
4172
|
-
|
|
4137
|
+
on.call(t, r) && br(e, r, t[r]);
|
|
4173
4138
|
return e;
|
|
4174
|
-
},
|
|
4139
|
+
}, Ue = (e, t) => {
|
|
4175
4140
|
var r = {};
|
|
4176
4141
|
for (var n in e)
|
|
4177
|
-
|
|
4142
|
+
sn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4178
4143
|
if (e != null && ht)
|
|
4179
4144
|
for (var n of ht(e))
|
|
4180
|
-
t.indexOf(n) < 0 &&
|
|
4145
|
+
t.indexOf(n) < 0 && on.call(e, n) && (r[n] = e[n]);
|
|
4181
4146
|
return r;
|
|
4182
4147
|
};
|
|
4183
|
-
const
|
|
4184
|
-
const { formats: r } =
|
|
4148
|
+
const ze = (e, t) => {
|
|
4149
|
+
const { formats: r } = Ne();
|
|
4185
4150
|
if (e in r && t in r[e])
|
|
4186
4151
|
return r[e][t];
|
|
4187
4152
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4188
|
-
},
|
|
4153
|
+
}, Hs = mt(
|
|
4189
4154
|
(e) => {
|
|
4190
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4155
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4191
4156
|
if (r == null)
|
|
4192
4157
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4193
|
-
return n && (i =
|
|
4158
|
+
return n && (i = ze("number", n)), new Intl.NumberFormat(r, i);
|
|
4194
4159
|
}
|
|
4195
|
-
),
|
|
4160
|
+
), As = mt(
|
|
4196
4161
|
(e) => {
|
|
4197
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4162
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4198
4163
|
if (r == null)
|
|
4199
4164
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4200
|
-
return n ? i =
|
|
4165
|
+
return n ? i = ze("date", n) : Object.keys(i).length === 0 && (i = ze("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4201
4166
|
}
|
|
4202
|
-
),
|
|
4167
|
+
), Bs = mt(
|
|
4203
4168
|
(e) => {
|
|
4204
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4169
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4205
4170
|
if (r == null)
|
|
4206
4171
|
throw new Error(
|
|
4207
4172
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4208
4173
|
);
|
|
4209
|
-
return n ? i =
|
|
4174
|
+
return n ? i = ze("time", n) : Object.keys(i).length === 0 && (i = ze("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4210
4175
|
}
|
|
4211
|
-
),
|
|
4176
|
+
), Ps = (e = {}) => {
|
|
4212
4177
|
var t = e, {
|
|
4213
4178
|
locale: r = ye()
|
|
4214
|
-
} = t, n =
|
|
4179
|
+
} = t, n = Ue(t, [
|
|
4215
4180
|
"locale"
|
|
4216
4181
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4182
|
+
return Hs($t({ locale: r }, n));
|
|
4183
|
+
}, Os = (e = {}) => {
|
|
4219
4184
|
var t = e, {
|
|
4220
4185
|
locale: r = ye()
|
|
4221
|
-
} = t, n =
|
|
4186
|
+
} = t, n = Ue(t, [
|
|
4222
4187
|
"locale"
|
|
4223
4188
|
]);
|
|
4224
|
-
return
|
|
4225
|
-
},
|
|
4189
|
+
return As($t({ locale: r }, n));
|
|
4190
|
+
}, Ls = (e = {}) => {
|
|
4226
4191
|
var t = e, {
|
|
4227
4192
|
locale: r = ye()
|
|
4228
|
-
} = t, n =
|
|
4193
|
+
} = t, n = Ue(t, [
|
|
4229
4194
|
"locale"
|
|
4230
4195
|
]);
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4196
|
+
return Bs($t({ locale: r }, n));
|
|
4197
|
+
}, Cs = mt(
|
|
4233
4198
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4234
|
-
(e, t = ye()) => new
|
|
4235
|
-
ignoreTag:
|
|
4199
|
+
(e, t = ye()) => new ss(e, t, Ne().formats, {
|
|
4200
|
+
ignoreTag: Ne().ignoreTag
|
|
4236
4201
|
})
|
|
4237
|
-
),
|
|
4238
|
-
var r, n, i,
|
|
4239
|
-
let
|
|
4240
|
-
typeof e == "object" && (
|
|
4202
|
+
), Is = (e, t = {}) => {
|
|
4203
|
+
var r, n, i, s;
|
|
4204
|
+
let o = t;
|
|
4205
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
4241
4206
|
const {
|
|
4242
4207
|
values: a,
|
|
4243
4208
|
locale: l = ye(),
|
|
4244
4209
|
default: u
|
|
4245
|
-
} =
|
|
4210
|
+
} = o;
|
|
4246
4211
|
if (l == null)
|
|
4247
4212
|
throw new Error(
|
|
4248
4213
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4249
4214
|
);
|
|
4250
|
-
let
|
|
4251
|
-
if (!
|
|
4252
|
-
|
|
4253
|
-
else if (typeof
|
|
4215
|
+
let h = Kr(e, l);
|
|
4216
|
+
if (!h)
|
|
4217
|
+
h = (s = (i = (n = (r = Ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4218
|
+
else if (typeof h != "string")
|
|
4254
4219
|
return console.warn(
|
|
4255
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4256
|
-
),
|
|
4220
|
+
`[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.`
|
|
4221
|
+
), h;
|
|
4257
4222
|
if (!a)
|
|
4258
|
-
return
|
|
4259
|
-
let
|
|
4223
|
+
return h;
|
|
4224
|
+
let d = h;
|
|
4260
4225
|
try {
|
|
4261
|
-
|
|
4226
|
+
d = Cs(h, l).format(a);
|
|
4262
4227
|
} catch (f) {
|
|
4263
4228
|
f instanceof Error && console.warn(
|
|
4264
4229
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4265
4230
|
f.message
|
|
4266
4231
|
);
|
|
4267
4232
|
}
|
|
4268
|
-
return
|
|
4269
|
-
},
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
window.emWidgets = { topic:
|
|
4276
|
-
const
|
|
4277
|
-
function
|
|
4233
|
+
return d;
|
|
4234
|
+
}, Ns = (e, t) => Ls(t).format(e), Ms = (e, t) => Os(t).format(e), Rs = (e, t) => Ps(t).format(e), Us = (e, t = ye()) => Kr(e, t);
|
|
4235
|
+
Me([Re, Ze], () => Is);
|
|
4236
|
+
Me([Re], () => Ns);
|
|
4237
|
+
Me([Re], () => Ms);
|
|
4238
|
+
Me([Re], () => Rs);
|
|
4239
|
+
Me([Re, Ze], () => Us);
|
|
4240
|
+
window.emWidgets = { topic: Yn };
|
|
4241
|
+
const Ds = (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));
|
|
4242
|
+
function Gs(e, t) {
|
|
4278
4243
|
if (e) {
|
|
4279
4244
|
const r = document.createElement("style");
|
|
4280
4245
|
r.innerHTML = t, e.appendChild(r);
|
|
4281
4246
|
}
|
|
4282
4247
|
}
|
|
4283
|
-
function
|
|
4248
|
+
function ks(e, t) {
|
|
4284
4249
|
const r = new URL(t);
|
|
4285
4250
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4286
4251
|
const i = document.createElement("style");
|
|
@@ -4289,7 +4254,7 @@ function Wo(e, t) {
|
|
|
4289
4254
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4290
4255
|
});
|
|
4291
4256
|
}
|
|
4292
|
-
function
|
|
4257
|
+
function js(e, t, r) {
|
|
4293
4258
|
if (window.emMessageBus) {
|
|
4294
4259
|
const n = document.createElement("style");
|
|
4295
4260
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4297,13 +4262,13 @@ function Xo(e, t, r) {
|
|
|
4297
4262
|
});
|
|
4298
4263
|
}
|
|
4299
4264
|
}
|
|
4300
|
-
function
|
|
4301
|
-
|
|
4265
|
+
function gr(e, t) {
|
|
4266
|
+
tn(e, t);
|
|
4302
4267
|
}
|
|
4303
|
-
function
|
|
4304
|
-
|
|
4268
|
+
function Fs(e) {
|
|
4269
|
+
Re.set(e);
|
|
4305
4270
|
}
|
|
4306
|
-
const
|
|
4271
|
+
const yr = {
|
|
4307
4272
|
en: {
|
|
4308
4273
|
loadingText: "Loading, please wait..."
|
|
4309
4274
|
},
|
|
@@ -4341,27 +4306,27 @@ const xr = {
|
|
|
4341
4306
|
loadingText: "Loading, please wait..."
|
|
4342
4307
|
}
|
|
4343
4308
|
};
|
|
4344
|
-
function
|
|
4345
|
-
|
|
4309
|
+
function $s(e) {
|
|
4310
|
+
pn(e, "svelte-w5pa6u", ':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, #22B04E);border-color:var(--emw--color-primary, #22B04E) transparent var(--emw--color-primary, #22B04E) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4346
4311
|
}
|
|
4347
|
-
function
|
|
4312
|
+
function vr(e, t, r) {
|
|
4348
4313
|
const n = e.slice();
|
|
4349
4314
|
return n[56] = t[r], n[58] = r, n;
|
|
4350
4315
|
}
|
|
4351
|
-
function
|
|
4352
|
-
let t, r, n, i,
|
|
4316
|
+
function Vs(e) {
|
|
4317
|
+
let t, r, n, i, s, o, a, l, u, h, d, f, b;
|
|
4353
4318
|
function x(S, y) {
|
|
4354
4319
|
return (
|
|
4355
4320
|
/*tabletView*/
|
|
4356
|
-
S[8] ?
|
|
4321
|
+
S[8] ? zs : Js
|
|
4357
4322
|
);
|
|
4358
4323
|
}
|
|
4359
4324
|
let g = x(e), v = g(e);
|
|
4360
4325
|
return {
|
|
4361
4326
|
c() {
|
|
4362
|
-
t = m("div"), r = m("div"), n = m("div"), i = m("div"),
|
|
4363
|
-
e[9] + ")"), _(
|
|
4364
|
-
e[14]) ||
|
|
4327
|
+
t = m("div"), r = m("div"), n = m("div"), i = m("div"), s = I(), o = m("div"), v.c(), a = I(), l = m("div"), u = m("ui-image"), _(i, "class", "vendorLogo"), rt(i, "background-image", "url(" + /*vendorIcon*/
|
|
4328
|
+
e[9] + ")"), _(o, "class", "displayContainer"), Y(u.src, h = /*titleLogoImg*/
|
|
4329
|
+
e[14]) || O(u, "src", h), O(u, "alt", ""), _(l, "class", "title"), _(n, "class", d = "mainWrapper " + /*visualstructure*/
|
|
4365
4330
|
e[0] + " " + /*mobileView*/
|
|
4366
4331
|
(e[7] && !/*tabletView*/
|
|
4367
4332
|
e[8] ? "mobile" : (
|
|
@@ -4371,7 +4336,7 @@ function Zo(e) {
|
|
|
4371
4336
|
e[13] + ")"), _(r, "class", "jackpotBanner"), _(t, "class", "");
|
|
4372
4337
|
},
|
|
4373
4338
|
m(S, y) {
|
|
4374
|
-
|
|
4339
|
+
F(S, t, y), p(t, r), p(r, n), p(n, i), p(n, s), p(n, o), v.m(o, null), p(n, a), p(n, l), p(l, u), f || (b = vn(
|
|
4375
4340
|
r,
|
|
4376
4341
|
"click",
|
|
4377
4342
|
/*click_handler*/
|
|
@@ -4381,16 +4346,16 @@ function Zo(e) {
|
|
|
4381
4346
|
p(S, y) {
|
|
4382
4347
|
y[0] & /*vendorIcon*/
|
|
4383
4348
|
512 && rt(i, "background-image", "url(" + /*vendorIcon*/
|
|
4384
|
-
S[9] + ")"), g === (g = x(S)) && v ? v.p(S, y) : (v.d(1), v = g(S), v && (v.c(), v.m(
|
|
4385
|
-
16384 && !Y(u.src,
|
|
4386
|
-
S[14]) &&
|
|
4387
|
-
385 &&
|
|
4349
|
+
S[9] + ")"), g === (g = x(S)) && v ? v.p(S, y) : (v.d(1), v = g(S), v && (v.c(), v.m(o, null))), y[0] & /*titleLogoImg*/
|
|
4350
|
+
16384 && !Y(u.src, h = /*titleLogoImg*/
|
|
4351
|
+
S[14]) && O(u, "src", h), y[0] & /*visualstructure, mobileView, tabletView*/
|
|
4352
|
+
385 && d !== (d = "mainWrapper " + /*visualstructure*/
|
|
4388
4353
|
S[0] + " " + /*mobileView*/
|
|
4389
4354
|
(S[7] && !/*tabletView*/
|
|
4390
4355
|
S[8] ? "mobile" : (
|
|
4391
4356
|
/*tabletView*/
|
|
4392
4357
|
S[8] ? "tablet" : ""
|
|
4393
|
-
))) && _(n, "class",
|
|
4358
|
+
))) && _(n, "class", d), y[0] & /*backgroundImg*/
|
|
4394
4359
|
8192 && rt(n, "background", "url(" + /*backgroundImg*/
|
|
4395
4360
|
S[13] + ")");
|
|
4396
4361
|
},
|
|
@@ -4399,14 +4364,14 @@ function Zo(e) {
|
|
|
4399
4364
|
}
|
|
4400
4365
|
};
|
|
4401
4366
|
}
|
|
4402
|
-
function
|
|
4367
|
+
function Ws(e) {
|
|
4403
4368
|
let t;
|
|
4404
4369
|
return {
|
|
4405
4370
|
c() {
|
|
4406
4371
|
t = m("div"), _(t, "class", "LoadingSpinner");
|
|
4407
4372
|
},
|
|
4408
4373
|
m(r, n) {
|
|
4409
|
-
|
|
4374
|
+
F(r, t, n);
|
|
4410
4375
|
},
|
|
4411
4376
|
p: Z,
|
|
4412
4377
|
d(r) {
|
|
@@ -4414,14 +4379,14 @@ function Qo(e) {
|
|
|
4414
4379
|
}
|
|
4415
4380
|
};
|
|
4416
4381
|
}
|
|
4417
|
-
function
|
|
4382
|
+
function Xs(e) {
|
|
4418
4383
|
let t;
|
|
4419
4384
|
return {
|
|
4420
4385
|
c() {
|
|
4421
4386
|
t = m("p"), t.textContent = "500 Server error";
|
|
4422
4387
|
},
|
|
4423
4388
|
m(r, n) {
|
|
4424
|
-
|
|
4389
|
+
F(r, t, n);
|
|
4425
4390
|
},
|
|
4426
4391
|
p: Z,
|
|
4427
4392
|
d(r) {
|
|
@@ -4429,11 +4394,11 @@ function Yo(e) {
|
|
|
4429
4394
|
}
|
|
4430
4395
|
};
|
|
4431
4396
|
}
|
|
4432
|
-
function
|
|
4433
|
-
let t, r, n, i,
|
|
4397
|
+
function zs(e) {
|
|
4398
|
+
let t, r, n, i, s, o, a, l = (
|
|
4434
4399
|
/*formattedLabels*/
|
|
4435
4400
|
e[11][0] + ""
|
|
4436
|
-
), u,
|
|
4401
|
+
), u, h, d, f, b = (
|
|
4437
4402
|
/*realtimeupdate*/
|
|
4438
4403
|
(e[2] === "true" ? (
|
|
4439
4404
|
/*reversedJackpotValues*/
|
|
@@ -4442,10 +4407,10 @@ function qo(e) {
|
|
|
4442
4407
|
/*formattedJackpotValues*/
|
|
4443
4408
|
e[10][0]
|
|
4444
4409
|
)) + ""
|
|
4445
|
-
), x, g, v, S, y, T, C, G,
|
|
4410
|
+
), x, g, v, S, y, T, C, G, $, J = (
|
|
4446
4411
|
/*formattedLabels*/
|
|
4447
4412
|
e[11][1] + ""
|
|
4448
|
-
),
|
|
4413
|
+
), De, ve, q, be, fe = (
|
|
4449
4414
|
/*realtimeupdate*/
|
|
4450
4415
|
(e[2] === "true" ? (
|
|
4451
4416
|
/*reversedJackpotValues*/
|
|
@@ -4454,10 +4419,10 @@ function qo(e) {
|
|
|
4454
4419
|
/*formattedJackpotValues*/
|
|
4455
4420
|
e[10][1]
|
|
4456
4421
|
)) + ""
|
|
4457
|
-
),
|
|
4422
|
+
), de, _e, Ee, te, ne, ie, M, se, Ge, pe, K = (
|
|
4458
4423
|
/*formattedLabels*/
|
|
4459
4424
|
e[11][2] + ""
|
|
4460
|
-
),
|
|
4425
|
+
), oe, Qe, ee, xe, Se = (
|
|
4461
4426
|
/*realtimeupdate*/
|
|
4462
4427
|
(e[2] === "true" ? (
|
|
4463
4428
|
/*updatedJackpotValues*/
|
|
@@ -4466,10 +4431,10 @@ function qo(e) {
|
|
|
4466
4431
|
/*formattedJackpotValues*/
|
|
4467
4432
|
e[10][2]
|
|
4468
4433
|
)) + ""
|
|
4469
|
-
),
|
|
4434
|
+
), ke, Ye, qe, ae, ue, re, Te, je, we, ge = (
|
|
4470
4435
|
/*formattedLabels*/
|
|
4471
4436
|
e[11][3] + ""
|
|
4472
|
-
),
|
|
4437
|
+
), Fe, Ke, le, c, H = (
|
|
4473
4438
|
/*realtimeupdate*/
|
|
4474
4439
|
(e[2] === "true" ? (
|
|
4475
4440
|
/*updatedJackpotValues*/
|
|
@@ -4479,25 +4444,25 @@ function qo(e) {
|
|
|
4479
4444
|
e[10][3]
|
|
4480
4445
|
)) + ""
|
|
4481
4446
|
), R, et, V = !/*currencylocale*/
|
|
4482
|
-
e[3] &&
|
|
4483
|
-
e[3] &&
|
|
4484
|
-
e[3] &&
|
|
4485
|
-
e[3] &&
|
|
4447
|
+
e[3] && _r(e), W = !/*currencylocale*/
|
|
4448
|
+
e[3] && Er(e), X = !/*currencylocale*/
|
|
4449
|
+
e[3] && xr(e), z = !/*currencylocale*/
|
|
4450
|
+
e[3] && Sr(e);
|
|
4486
4451
|
return {
|
|
4487
4452
|
c() {
|
|
4488
|
-
t = m("div"), r = m("div"), n = m("div"), i = m("ui-image"),
|
|
4489
|
-
e[12][0]) ||
|
|
4490
|
-
e[12][1]) ||
|
|
4491
|
-
e[12][2]) ||
|
|
4492
|
-
e[12][3]) ||
|
|
4453
|
+
t = m("div"), r = m("div"), n = m("div"), i = m("ui-image"), o = I(), a = m("span"), u = U(l), h = I(), d = m("span"), f = m("span"), x = U(b), g = I(), V && V.c(), v = I(), S = m("div"), y = m("div"), T = m("ui-image"), G = I(), $ = m("span"), De = U(J), ve = I(), q = m("span"), be = m("span"), de = U(fe), _e = I(), W && W.c(), Ee = I(), te = m("div"), ne = m("div"), ie = m("div"), M = m("ui-image"), Ge = I(), pe = m("span"), oe = U(K), Qe = I(), ee = m("span"), xe = m("span"), ke = U(Se), Ye = I(), X && X.c(), qe = I(), ae = m("div"), ue = m("div"), re = m("ui-image"), je = I(), we = m("span"), Fe = U(ge), Ke = I(), le = m("span"), c = m("span"), R = U(H), et = I(), z && z.c(), O(i, "class", "displayCardIcon"), Y(i.src, s = /*caticons*/
|
|
4454
|
+
e[12][0]) || O(i, "src", s), O(i, "alt", ""), _(a, "class", "cardLabel"), _(n, "class", "iconWrapper"), _(f, "class", "jackpotValue"), _(d, "class", "cardTextWrapper"), _(r, "class", "displayCard"), O(T, "class", "displayCardIcon"), Y(T.src, C = /*caticons*/
|
|
4455
|
+
e[12][1]) || O(T, "src", C), O(T, "alt", ""), _($, "class", "cardLabel"), _(y, "class", "iconWrapper"), _(be, "class", "jackpotValue"), _(q, "class", "cardTextWrapper"), _(S, "class", "displayCard"), _(t, "class", "pairWrapper"), O(M, "class", "displayCardIcon"), Y(M.src, se = /*caticons*/
|
|
4456
|
+
e[12][2]) || O(M, "src", se), O(M, "alt", ""), _(pe, "class", "cardLabel"), _(ie, "class", "iconWrapper"), _(xe, "class", "jackpotValue"), _(ee, "class", "cardTextWrapper"), _(ne, "class", "displayCard"), O(re, "class", "displayCardIcon"), Y(re.src, Te = /*caticons*/
|
|
4457
|
+
e[12][3]) || O(re, "src", Te), O(re, "alt", ""), _(we, "class", "cardLabel"), _(ue, "class", "iconWrapper"), _(c, "class", "jackpotValue"), _(le, "class", "cardTextWrapper"), _(ae, "class", "displayCard"), _(te, "class", "pairWrapper");
|
|
4493
4458
|
},
|
|
4494
4459
|
m(E, N) {
|
|
4495
|
-
|
|
4460
|
+
F(E, t, N), p(t, r), p(r, n), p(n, i), p(n, o), p(n, a), p(a, u), p(r, h), p(r, d), p(d, f), p(f, x), p(d, g), V && V.m(d, null), p(t, v), p(t, S), p(S, y), p(y, T), p(y, G), p(y, $), p($, De), p(S, ve), p(S, q), p(q, be), p(be, de), p(q, _e), W && W.m(q, null), F(E, Ee, N), F(E, te, N), p(te, ne), p(ne, ie), p(ie, M), p(ie, Ge), p(ie, pe), p(pe, oe), p(ne, Qe), p(ne, ee), p(ee, xe), p(xe, ke), p(ee, Ye), X && X.m(ee, null), p(te, qe), p(te, ae), p(ae, ue), p(ue, re), p(ue, je), p(ue, we), p(we, Fe), p(ae, Ke), p(ae, le), p(le, c), p(c, R), p(le, et), z && z.m(le, null);
|
|
4496
4461
|
},
|
|
4497
4462
|
p(E, N) {
|
|
4498
4463
|
N[0] & /*caticons*/
|
|
4499
|
-
4096 && !Y(i.src,
|
|
4500
|
-
E[12][0]) &&
|
|
4464
|
+
4096 && !Y(i.src, s = /*caticons*/
|
|
4465
|
+
E[12][0]) && O(i, "src", s), N[0] & /*formattedLabels*/
|
|
4501
4466
|
2048 && l !== (l = /*formattedLabels*/
|
|
4502
4467
|
E[11][0] + "") && j(u, l), N[0] & /*realtimeupdate, reversedJackpotValues, formattedJackpotValues*/
|
|
4503
4468
|
66564 && b !== (b = /*realtimeupdate*/
|
|
@@ -4508,11 +4473,11 @@ function qo(e) {
|
|
|
4508
4473
|
/*formattedJackpotValues*/
|
|
4509
4474
|
E[10][0]
|
|
4510
4475
|
)) + "") && j(x, b), /*currencylocale*/
|
|
4511
|
-
E[3] ? V && (V.d(1), V = null) : V ? V.p(E, N) : (V =
|
|
4476
|
+
E[3] ? V && (V.d(1), V = null) : V ? V.p(E, N) : (V = _r(E), V.c(), V.m(d, null)), N[0] & /*caticons*/
|
|
4512
4477
|
4096 && !Y(T.src, C = /*caticons*/
|
|
4513
|
-
E[12][1]) &&
|
|
4478
|
+
E[12][1]) && O(T, "src", C), N[0] & /*formattedLabels*/
|
|
4514
4479
|
2048 && J !== (J = /*formattedLabels*/
|
|
4515
|
-
E[11][1] + "") && j(
|
|
4480
|
+
E[11][1] + "") && j(De, J), N[0] & /*realtimeupdate, reversedJackpotValues, formattedJackpotValues*/
|
|
4516
4481
|
66564 && fe !== (fe = /*realtimeupdate*/
|
|
4517
4482
|
(E[2] === "true" ? (
|
|
4518
4483
|
/*reversedJackpotValues*/
|
|
@@ -4520,12 +4485,12 @@ function qo(e) {
|
|
|
4520
4485
|
) : (
|
|
4521
4486
|
/*formattedJackpotValues*/
|
|
4522
4487
|
E[10][1]
|
|
4523
|
-
)) + "") && j(
|
|
4524
|
-
E[3] ? W && (W.d(1), W = null) : W ? W.p(E, N) : (W =
|
|
4488
|
+
)) + "") && j(de, fe), /*currencylocale*/
|
|
4489
|
+
E[3] ? W && (W.d(1), W = null) : W ? W.p(E, N) : (W = Er(E), W.c(), W.m(q, null)), N[0] & /*caticons*/
|
|
4525
4490
|
4096 && !Y(M.src, se = /*caticons*/
|
|
4526
|
-
E[12][2]) &&
|
|
4491
|
+
E[12][2]) && O(M, "src", se), N[0] & /*formattedLabels*/
|
|
4527
4492
|
2048 && K !== (K = /*formattedLabels*/
|
|
4528
|
-
E[11][2] + "") && j(
|
|
4493
|
+
E[11][2] + "") && j(oe, K), N[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4529
4494
|
1092 && Se !== (Se = /*realtimeupdate*/
|
|
4530
4495
|
(E[2] === "true" ? (
|
|
4531
4496
|
/*updatedJackpotValues*/
|
|
@@ -4533,12 +4498,12 @@ function qo(e) {
|
|
|
4533
4498
|
) : (
|
|
4534
4499
|
/*formattedJackpotValues*/
|
|
4535
4500
|
E[10][2]
|
|
4536
|
-
)) + "") && j(
|
|
4537
|
-
E[3] ? X && (X.d(1), X = null) : X ? X.p(E, N) : (X =
|
|
4501
|
+
)) + "") && j(ke, Se), /*currencylocale*/
|
|
4502
|
+
E[3] ? X && (X.d(1), X = null) : X ? X.p(E, N) : (X = xr(E), X.c(), X.m(ee, null)), N[0] & /*caticons*/
|
|
4538
4503
|
4096 && !Y(re.src, Te = /*caticons*/
|
|
4539
|
-
E[12][3]) &&
|
|
4504
|
+
E[12][3]) && O(re, "src", Te), N[0] & /*formattedLabels*/
|
|
4540
4505
|
2048 && ge !== (ge = /*formattedLabels*/
|
|
4541
|
-
E[11][3] + "") && j(
|
|
4506
|
+
E[11][3] + "") && j(Fe, ge), N[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4542
4507
|
1092 && H !== (H = /*realtimeupdate*/
|
|
4543
4508
|
(E[2] === "true" ? (
|
|
4544
4509
|
/*updatedJackpotValues*/
|
|
@@ -4547,48 +4512,48 @@ function qo(e) {
|
|
|
4547
4512
|
/*formattedJackpotValues*/
|
|
4548
4513
|
E[10][3]
|
|
4549
4514
|
)) + "") && j(R, H), /*currencylocale*/
|
|
4550
|
-
E[3] ? z && (z.d(1), z = null) : z ? z.p(E, N) : (z =
|
|
4515
|
+
E[3] ? z && (z.d(1), z = null) : z ? z.p(E, N) : (z = Sr(E), z.c(), z.m(le, null));
|
|
4551
4516
|
},
|
|
4552
4517
|
d(E) {
|
|
4553
4518
|
E && (D(t), D(Ee), D(te)), V && V.d(), W && W.d(), X && X.d(), z && z.d();
|
|
4554
4519
|
}
|
|
4555
4520
|
};
|
|
4556
4521
|
}
|
|
4557
|
-
function
|
|
4558
|
-
let t, r =
|
|
4522
|
+
function Js(e) {
|
|
4523
|
+
let t, r = Qt(Array(4)), n = [];
|
|
4559
4524
|
for (let i = 0; i < r.length; i += 1)
|
|
4560
|
-
n[i] =
|
|
4525
|
+
n[i] = wr(vr(e, r, i));
|
|
4561
4526
|
return {
|
|
4562
4527
|
c() {
|
|
4563
4528
|
for (let i = 0; i < n.length; i += 1)
|
|
4564
4529
|
n[i].c();
|
|
4565
|
-
t =
|
|
4530
|
+
t = yn();
|
|
4566
4531
|
},
|
|
4567
|
-
m(i,
|
|
4568
|
-
for (let
|
|
4569
|
-
n[
|
|
4570
|
-
|
|
4532
|
+
m(i, s) {
|
|
4533
|
+
for (let o = 0; o < n.length; o += 1)
|
|
4534
|
+
n[o] && n[o].m(i, s);
|
|
4535
|
+
F(i, t, s);
|
|
4571
4536
|
},
|
|
4572
|
-
p(i,
|
|
4573
|
-
if (
|
|
4537
|
+
p(i, s) {
|
|
4538
|
+
if (s[0] & /*currency, currencylocale, realtimeupdate, reversedJackpotValues, formattedJackpotValues, formattedLabels, caticons*/
|
|
4574
4539
|
72718) {
|
|
4575
|
-
r =
|
|
4576
|
-
let
|
|
4577
|
-
for (
|
|
4578
|
-
const a =
|
|
4579
|
-
n[
|
|
4540
|
+
r = Qt(Array(4));
|
|
4541
|
+
let o;
|
|
4542
|
+
for (o = 0; o < r.length; o += 1) {
|
|
4543
|
+
const a = vr(i, r, o);
|
|
4544
|
+
n[o] ? n[o].p(a, s) : (n[o] = wr(a), n[o].c(), n[o].m(t.parentNode, t));
|
|
4580
4545
|
}
|
|
4581
|
-
for (;
|
|
4582
|
-
n[
|
|
4546
|
+
for (; o < n.length; o += 1)
|
|
4547
|
+
n[o].d(1);
|
|
4583
4548
|
n.length = r.length;
|
|
4584
4549
|
}
|
|
4585
4550
|
},
|
|
4586
4551
|
d(i) {
|
|
4587
|
-
i && D(t),
|
|
4552
|
+
i && D(t), gn(n, i);
|
|
4588
4553
|
}
|
|
4589
4554
|
};
|
|
4590
4555
|
}
|
|
4591
|
-
function
|
|
4556
|
+
function _r(e) {
|
|
4592
4557
|
let t, r;
|
|
4593
4558
|
return {
|
|
4594
4559
|
c() {
|
|
@@ -4598,7 +4563,7 @@ function Tr(e) {
|
|
|
4598
4563
|
), _(t, "class", "jackpot-currency");
|
|
4599
4564
|
},
|
|
4600
4565
|
m(n, i) {
|
|
4601
|
-
|
|
4566
|
+
F(n, t, i), p(t, r);
|
|
4602
4567
|
},
|
|
4603
4568
|
p(n, i) {
|
|
4604
4569
|
i[0] & /*currency*/
|
|
@@ -4613,7 +4578,7 @@ function Tr(e) {
|
|
|
4613
4578
|
}
|
|
4614
4579
|
};
|
|
4615
4580
|
}
|
|
4616
|
-
function
|
|
4581
|
+
function Er(e) {
|
|
4617
4582
|
let t, r;
|
|
4618
4583
|
return {
|
|
4619
4584
|
c() {
|
|
@@ -4623,7 +4588,7 @@ function wr(e) {
|
|
|
4623
4588
|
), _(t, "class", "jackpot-currency");
|
|
4624
4589
|
},
|
|
4625
4590
|
m(n, i) {
|
|
4626
|
-
|
|
4591
|
+
F(n, t, i), p(t, r);
|
|
4627
4592
|
},
|
|
4628
4593
|
p(n, i) {
|
|
4629
4594
|
i[0] & /*currency*/
|
|
@@ -4638,7 +4603,7 @@ function wr(e) {
|
|
|
4638
4603
|
}
|
|
4639
4604
|
};
|
|
4640
4605
|
}
|
|
4641
|
-
function
|
|
4606
|
+
function xr(e) {
|
|
4642
4607
|
let t, r;
|
|
4643
4608
|
return {
|
|
4644
4609
|
c() {
|
|
@@ -4648,7 +4613,7 @@ function Hr(e) {
|
|
|
4648
4613
|
), _(t, "class", "jackpot-currency");
|
|
4649
4614
|
},
|
|
4650
4615
|
m(n, i) {
|
|
4651
|
-
|
|
4616
|
+
F(n, t, i), p(t, r);
|
|
4652
4617
|
},
|
|
4653
4618
|
p(n, i) {
|
|
4654
4619
|
i[0] & /*currency*/
|
|
@@ -4663,7 +4628,7 @@ function Hr(e) {
|
|
|
4663
4628
|
}
|
|
4664
4629
|
};
|
|
4665
4630
|
}
|
|
4666
|
-
function
|
|
4631
|
+
function Sr(e) {
|
|
4667
4632
|
let t, r;
|
|
4668
4633
|
return {
|
|
4669
4634
|
c() {
|
|
@@ -4673,7 +4638,7 @@ function Ar(e) {
|
|
|
4673
4638
|
), _(t, "class", "jackpot-currency");
|
|
4674
4639
|
},
|
|
4675
4640
|
m(n, i) {
|
|
4676
|
-
|
|
4641
|
+
F(n, t, i), p(t, r);
|
|
4677
4642
|
},
|
|
4678
4643
|
p(n, i) {
|
|
4679
4644
|
i[0] & /*currency*/
|
|
@@ -4688,7 +4653,7 @@ function Ar(e) {
|
|
|
4688
4653
|
}
|
|
4689
4654
|
};
|
|
4690
4655
|
}
|
|
4691
|
-
function
|
|
4656
|
+
function Tr(e) {
|
|
4692
4657
|
let t, r;
|
|
4693
4658
|
return {
|
|
4694
4659
|
c() {
|
|
@@ -4698,7 +4663,7 @@ function Br(e) {
|
|
|
4698
4663
|
), _(t, "class", "jackpot-currency");
|
|
4699
4664
|
},
|
|
4700
4665
|
m(n, i) {
|
|
4701
|
-
|
|
4666
|
+
F(n, t, i), p(t, r);
|
|
4702
4667
|
},
|
|
4703
4668
|
p(n, i) {
|
|
4704
4669
|
i[0] & /*currency*/
|
|
@@ -4713,15 +4678,15 @@ function Br(e) {
|
|
|
4713
4678
|
}
|
|
4714
4679
|
};
|
|
4715
4680
|
}
|
|
4716
|
-
function
|
|
4681
|
+
function wr(e) {
|
|
4717
4682
|
var S;
|
|
4718
|
-
let t, r, n, i,
|
|
4683
|
+
let t, r, n, i, s, o, a = (
|
|
4719
4684
|
/*formattedLabels*/
|
|
4720
4685
|
e[11][
|
|
4721
4686
|
/*i*/
|
|
4722
4687
|
e[58]
|
|
4723
4688
|
] + ""
|
|
4724
|
-
), l, u,
|
|
4689
|
+
), l, u, h, d, f = (
|
|
4725
4690
|
/*realtimeupdate*/
|
|
4726
4691
|
(e[2] === "true" ? (
|
|
4727
4692
|
/*reversedJackpotValues*/
|
|
@@ -4737,17 +4702,17 @@ function Pr(e) {
|
|
|
4737
4702
|
]) != null ? S : ""
|
|
4738
4703
|
)) + ""
|
|
4739
4704
|
), b, x, g, v = !/*currencylocale*/
|
|
4740
|
-
e[3] &&
|
|
4705
|
+
e[3] && Tr(e);
|
|
4741
4706
|
return {
|
|
4742
4707
|
c() {
|
|
4743
|
-
t = m("div"), r = m("div"), n = m("ui-image"),
|
|
4708
|
+
t = m("div"), r = m("div"), n = m("ui-image"), s = I(), o = m("span"), l = U(a), u = I(), h = m("span"), d = m("span"), b = U(f), x = I(), v && v.c(), g = I(), O(n, "class", "displayCardIcon"), Y(n.src, i = /*caticons*/
|
|
4744
4709
|
e[12][
|
|
4745
4710
|
/*i*/
|
|
4746
4711
|
e[58]
|
|
4747
|
-
]) ||
|
|
4712
|
+
]) || O(n, "src", i), O(n, "alt", ""), _(o, "class", "cardLabel"), _(r, "class", "iconWrapper"), _(d, "class", "jackpotValue"), _(h, "class", "cardTextWrapper"), _(t, "class", "displayCard");
|
|
4748
4713
|
},
|
|
4749
4714
|
m(y, T) {
|
|
4750
|
-
|
|
4715
|
+
F(y, t, T), p(t, r), p(r, n), p(r, s), p(r, o), p(o, l), p(t, u), p(t, h), p(h, d), p(d, b), p(h, x), v && v.m(h, null), p(t, g);
|
|
4751
4716
|
},
|
|
4752
4717
|
p(y, T) {
|
|
4753
4718
|
var C;
|
|
@@ -4756,7 +4721,7 @@ function Pr(e) {
|
|
|
4756
4721
|
y[12][
|
|
4757
4722
|
/*i*/
|
|
4758
4723
|
y[58]
|
|
4759
|
-
]) &&
|
|
4724
|
+
]) && O(n, "src", i), T[0] & /*formattedLabels*/
|
|
4760
4725
|
2048 && a !== (a = /*formattedLabels*/
|
|
4761
4726
|
y[11][
|
|
4762
4727
|
/*i*/
|
|
@@ -4776,21 +4741,21 @@ function Pr(e) {
|
|
|
4776
4741
|
y[58]
|
|
4777
4742
|
]) != null ? C : ""
|
|
4778
4743
|
)) + "") && j(b, f), /*currencylocale*/
|
|
4779
|
-
y[3] ? v && (v.d(1), v = null) : v ? v.p(y, T) : (v =
|
|
4744
|
+
y[3] ? v && (v.d(1), v = null) : v ? v.p(y, T) : (v = Tr(y), v.c(), v.m(h, null));
|
|
4780
4745
|
},
|
|
4781
4746
|
d(y) {
|
|
4782
4747
|
y && D(t), v && v.d();
|
|
4783
4748
|
}
|
|
4784
4749
|
};
|
|
4785
4750
|
}
|
|
4786
|
-
function
|
|
4751
|
+
function Zs(e) {
|
|
4787
4752
|
let t;
|
|
4788
|
-
function r(
|
|
4753
|
+
function r(s, o) {
|
|
4789
4754
|
return (
|
|
4790
4755
|
/*hasErrors*/
|
|
4791
|
-
|
|
4756
|
+
s[15] ? Xs : (
|
|
4792
4757
|
/*isLoading*/
|
|
4793
|
-
|
|
4758
|
+
s[5] ? Ws : Vs
|
|
4794
4759
|
)
|
|
4795
4760
|
);
|
|
4796
4761
|
}
|
|
@@ -4799,141 +4764,141 @@ function es(e) {
|
|
|
4799
4764
|
c() {
|
|
4800
4765
|
t = m("div"), i.c();
|
|
4801
4766
|
},
|
|
4802
|
-
m(
|
|
4803
|
-
|
|
4767
|
+
m(s, o) {
|
|
4768
|
+
F(s, t, o), i.m(t, null), e[36](t);
|
|
4804
4769
|
},
|
|
4805
|
-
p(
|
|
4806
|
-
n === (n = r(
|
|
4770
|
+
p(s, o) {
|
|
4771
|
+
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4807
4772
|
},
|
|
4808
4773
|
i: Z,
|
|
4809
4774
|
o: Z,
|
|
4810
|
-
d(
|
|
4811
|
-
|
|
4775
|
+
d(s) {
|
|
4776
|
+
s && D(t), i.d(), e[36](null);
|
|
4812
4777
|
}
|
|
4813
4778
|
};
|
|
4814
4779
|
}
|
|
4815
|
-
function
|
|
4816
|
-
let n, { visualstructure: i = "" } = t, { title:
|
|
4780
|
+
function Qs(e, t, r) {
|
|
4781
|
+
let n, { visualstructure: i = "" } = t, { title: s = "" } = t, { caticon0: o = "" } = t, { caticon1: a = "" } = t, { caticon2: l = "" } = t, { caticon3: u = "" } = t, { iconlabels: h = "" } = t, { backgroundsrc: d = "" } = t, { currency: f = "" } = t, { backgroundsrcmobile: b = "" } = t, { titlelogopath: x = "" } = t, { lang: g = "en" } = t, { clientstyling: v = "" } = t, { clientstylingurl: S = "" } = t, { translationurl: y = "" } = t, { endpoint: T = "" } = t, { gameid: C = "" } = t, { mbsource: G } = t, { realtimeupdate: $ = "false" } = t, { currencylocale: J = "" } = t, De = window.navigator.userAgent, ve = !1, q = !1, be = "", fe = [], de = [], _e = [], Ee = [], te = [], ne = "", ie = "", M, se = !0, Ge = !1, pe, K = null, oe = [];
|
|
4817
4782
|
const Qe = () => {
|
|
4818
4783
|
fetch(y).then((H) => H.json()).then((H) => {
|
|
4819
4784
|
Object.keys(H).forEach((R) => {
|
|
4820
|
-
|
|
4785
|
+
gr(R, H[R]);
|
|
4821
4786
|
});
|
|
4822
4787
|
}).catch((H) => {
|
|
4823
4788
|
console.log(H);
|
|
4824
4789
|
});
|
|
4825
4790
|
};
|
|
4826
|
-
Object.keys(
|
|
4827
|
-
|
|
4791
|
+
Object.keys(yr).forEach((c) => {
|
|
4792
|
+
gr(c, yr[c]);
|
|
4828
4793
|
});
|
|
4829
|
-
const ee = ["typeSpread", "typeLeft"], xe = (
|
|
4794
|
+
const ee = ["typeSpread", "typeLeft"], xe = (c) => {
|
|
4830
4795
|
var R;
|
|
4831
|
-
const H = (R =
|
|
4796
|
+
const H = (R = c == null ? void 0 : c.items[0]) == null ? void 0 : R.additionalData;
|
|
4832
4797
|
H && Object.values(H).forEach((et) => fe.push(+et));
|
|
4833
|
-
}, Se = (
|
|
4798
|
+
}, Se = (c) => {
|
|
4834
4799
|
var H;
|
|
4835
|
-
r(9, be = ((H =
|
|
4836
|
-
},
|
|
4800
|
+
r(9, be = ((H = c == null ? void 0 : c.items[0]) == null ? void 0 : H.vendorLogo) || "");
|
|
4801
|
+
}, ke = () => {
|
|
4837
4802
|
if (T && g && f) {
|
|
4838
|
-
let
|
|
4839
|
-
|
|
4840
|
-
r(5, se = !1),
|
|
4803
|
+
let c = new URL(`${T}/v1/casino/jackpots`);
|
|
4804
|
+
c.searchParams.append("filter", `id=${C}`), c.searchParams.append("language", g), c.searchParams.append("additionalDataCurrency", f), fetch(c.href).then((H) => H.json().then((R) => {
|
|
4805
|
+
r(5, se = !1), pe = R, de.includes(C) && (xe(pe), Se(pe));
|
|
4841
4806
|
}).catch((R) => {
|
|
4842
|
-
r(15,
|
|
4807
|
+
r(15, Ge = !0), r(5, se = !1), console.error(R);
|
|
4843
4808
|
}).finally(() => {
|
|
4844
4809
|
Ye();
|
|
4845
4810
|
}));
|
|
4846
4811
|
}
|
|
4847
4812
|
}, Ye = () => {
|
|
4848
|
-
const
|
|
4849
|
-
|
|
4813
|
+
const c = M.getRootNode().host;
|
|
4814
|
+
c.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: c } }));
|
|
4850
4815
|
}, qe = () => {
|
|
4851
|
-
let
|
|
4852
|
-
fetch(
|
|
4853
|
-
r(34,
|
|
4816
|
+
let c = new URL(`${T}/v1/casino/jackpots/config`);
|
|
4817
|
+
fetch(c.href).then((H) => H.json()).then((H) => {
|
|
4818
|
+
r(34, de = H.egtJackpotIds.map((R) => R));
|
|
4854
4819
|
});
|
|
4855
|
-
},
|
|
4856
|
-
r(7, ve =
|
|
4857
|
-
},
|
|
4820
|
+
}, ae = () => {
|
|
4821
|
+
r(7, ve = Ds(De) && window.innerHeight / window.innerWidth > 1), r(8, q = Te()), fe.length !== 0 && (r(10, _e = re(fe)), _e.reverse()), r(11, Ee = h ? h.split(",").map((c) => c.trim().toUpperCase()) : new Array(4).fill("")), ee.includes(i.trim()) ? r(0, i = i.trim()) : (console.warn(`Invalid Attribute Value: "${i}" is not a valid value for the "visualstructure" attribute. Defaulting to "${ee[0]}"`), r(0, i = ee[0])), r(13, ne = b && ve && !q ? b : d), r(14, ie = x), r(12, te = [o, a, l, u]);
|
|
4822
|
+
}, ue = (c) => Intl.NumberFormat(J, {
|
|
4858
4823
|
minimumFractionDigits: 2,
|
|
4859
4824
|
maximumFractionDigits: 2,
|
|
4860
4825
|
style: "currency",
|
|
4861
4826
|
currency: f
|
|
4862
|
-
}).format(
|
|
4863
|
-
const
|
|
4864
|
-
return 0.75 <
|
|
4865
|
-
},
|
|
4827
|
+
}).format(c).replace(/\s/g, ""), re = (c) => J ? c.map((H) => ue(H)) : c.map((H) => Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(H)), Te = () => {
|
|
4828
|
+
const c = window.innerHeight / window.innerWidth;
|
|
4829
|
+
return 0.75 < c && c < 1.6;
|
|
4830
|
+
}, je = () => {
|
|
4866
4831
|
window.postMessage({ type: "JackpotBannerClicked", gameid: C }, window.location.href), typeof gtag == "function" && gtag("event", "JackpotBannerClicked", {
|
|
4867
4832
|
context: "JackpotBanner",
|
|
4868
4833
|
gameId: `${C}`
|
|
4869
4834
|
});
|
|
4870
4835
|
}, we = () => {
|
|
4871
|
-
|
|
4872
|
-
}, ge = (
|
|
4873
|
-
const H = JSON.parse(
|
|
4836
|
+
Fs(g);
|
|
4837
|
+
}, ge = (c) => {
|
|
4838
|
+
const H = JSON.parse(c.data);
|
|
4874
4839
|
if (H.success && H.data.messageType === "UpdateEgtJackpotBalance" && H.data.jackpotAlias.split("_")[0] === C) {
|
|
4875
4840
|
const R = Number(H.data.jackpotAlias.split("_")[1]) - 1;
|
|
4876
4841
|
r(
|
|
4877
4842
|
6,
|
|
4878
|
-
|
|
4879
|
-
|
|
4843
|
+
oe[R] = J ? ue(H.data.data[`${f}`].balance) : H.data.data[`${f}`].balance.toString(),
|
|
4844
|
+
oe
|
|
4880
4845
|
);
|
|
4881
4846
|
}
|
|
4882
|
-
},
|
|
4883
|
-
|
|
4847
|
+
}, Fe = () => {
|
|
4848
|
+
$ === "true" && (ae(), r(6, oe = ["", "", "", ""]), K = new EventSource(`${T}/v1/encoder/jackpot/*/update`), K.addEventListener("message", ge));
|
|
4884
4849
|
};
|
|
4885
|
-
|
|
4886
|
-
}),
|
|
4850
|
+
xn(() => () => {
|
|
4851
|
+
}), Sn(() => {
|
|
4887
4852
|
K && (K.removeEventListener("message", ge), K.close(), K = null);
|
|
4888
4853
|
});
|
|
4889
|
-
const Ke = () =>
|
|
4890
|
-
function
|
|
4891
|
-
|
|
4892
|
-
M =
|
|
4854
|
+
const Ke = () => je();
|
|
4855
|
+
function le(c) {
|
|
4856
|
+
Tt[c ? "unshift" : "push"](() => {
|
|
4857
|
+
M = c, r(4, M);
|
|
4893
4858
|
});
|
|
4894
4859
|
}
|
|
4895
|
-
return e.$$set = (
|
|
4896
|
-
"visualstructure" in
|
|
4860
|
+
return e.$$set = (c) => {
|
|
4861
|
+
"visualstructure" in c && r(0, i = c.visualstructure), "title" in c && r(18, s = c.title), "caticon0" in c && r(19, o = c.caticon0), "caticon1" in c && r(20, a = c.caticon1), "caticon2" in c && r(21, l = c.caticon2), "caticon3" in c && r(22, u = c.caticon3), "iconlabels" in c && r(23, h = c.iconlabels), "backgroundsrc" in c && r(24, d = c.backgroundsrc), "currency" in c && r(1, f = c.currency), "backgroundsrcmobile" in c && r(25, b = c.backgroundsrcmobile), "titlelogopath" in c && r(26, x = c.titlelogopath), "lang" in c && r(27, g = c.lang), "clientstyling" in c && r(28, v = c.clientstyling), "clientstylingurl" in c && r(29, S = c.clientstylingurl), "translationurl" in c && r(30, y = c.translationurl), "endpoint" in c && r(31, T = c.endpoint), "gameid" in c && r(32, C = c.gameid), "mbsource" in c && r(33, G = c.mbsource), "realtimeupdate" in c && r(2, $ = c.realtimeupdate), "currencylocale" in c && r(3, J = c.currencylocale);
|
|
4897
4862
|
}, e.$$.update = () => {
|
|
4898
4863
|
e.$$.dirty[1] & /*endpoint*/
|
|
4899
4864
|
1 && T && qe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4900
|
-
268435472 && v && M &&
|
|
4901
|
-
536870928 && S && M &&
|
|
4865
|
+
268435472 && v && M && Gs(M, v), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4866
|
+
536870928 && S && M && ks(M, S), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4902
4867
|
16 | e.$$.dirty[1] & /*mbsource*/
|
|
4903
|
-
4 && G && M &&
|
|
4868
|
+
4 && G && M && js(M, `${G}.Style`), e.$$.dirty[0] & /*lang, currency*/
|
|
4904
4869
|
134217730 | e.$$.dirty[1] & /*endpoint, validGameIds*/
|
|
4905
|
-
9 && T && g && f &&
|
|
4906
|
-
134217762 && f && g && !se &&
|
|
4870
|
+
9 && T && g && f && de.length > 0 && ke(), e.$$.dirty[0] & /*currency, lang, isLoading*/
|
|
4871
|
+
134217762 && f && g && !se && ae(), e.$$.dirty[0] & /*lang*/
|
|
4907
4872
|
134217728 && g && we(), e.$$.dirty[0] & /*translationurl*/
|
|
4908
4873
|
1073741824 && y && Qe(), e.$$.dirty[0] & /*realtimeupdate*/
|
|
4909
|
-
4 &&
|
|
4910
|
-
64 && r(16, n = [...
|
|
4874
|
+
4 && $ && Fe(), e.$$.dirty[0] & /*updatedJackpotValues*/
|
|
4875
|
+
64 && r(16, n = [...oe].reverse());
|
|
4911
4876
|
}, [
|
|
4912
4877
|
i,
|
|
4913
4878
|
f,
|
|
4914
|
-
|
|
4879
|
+
$,
|
|
4915
4880
|
J,
|
|
4916
4881
|
M,
|
|
4917
4882
|
se,
|
|
4918
|
-
|
|
4883
|
+
oe,
|
|
4919
4884
|
ve,
|
|
4920
4885
|
q,
|
|
4921
4886
|
be,
|
|
4922
4887
|
_e,
|
|
4923
4888
|
Ee,
|
|
4924
4889
|
te,
|
|
4890
|
+
ne,
|
|
4925
4891
|
ie,
|
|
4926
|
-
|
|
4927
|
-
De,
|
|
4892
|
+
Ge,
|
|
4928
4893
|
n,
|
|
4929
|
-
|
|
4930
|
-
o,
|
|
4894
|
+
je,
|
|
4931
4895
|
s,
|
|
4896
|
+
o,
|
|
4932
4897
|
a,
|
|
4933
4898
|
l,
|
|
4934
4899
|
u,
|
|
4935
|
-
|
|
4936
|
-
|
|
4900
|
+
h,
|
|
4901
|
+
d,
|
|
4937
4902
|
b,
|
|
4938
4903
|
x,
|
|
4939
4904
|
g,
|
|
@@ -4943,19 +4908,19 @@ function ts(e, t, r) {
|
|
|
4943
4908
|
T,
|
|
4944
4909
|
C,
|
|
4945
4910
|
G,
|
|
4946
|
-
|
|
4911
|
+
de,
|
|
4947
4912
|
Ke,
|
|
4948
|
-
|
|
4913
|
+
le
|
|
4949
4914
|
];
|
|
4950
4915
|
}
|
|
4951
|
-
class
|
|
4916
|
+
class Ys extends Mn {
|
|
4952
4917
|
constructor(t) {
|
|
4953
|
-
super(),
|
|
4918
|
+
super(), In(
|
|
4954
4919
|
this,
|
|
4955
4920
|
t,
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4921
|
+
Qs,
|
|
4922
|
+
Zs,
|
|
4923
|
+
Ar,
|
|
4959
4924
|
{
|
|
4960
4925
|
visualstructure: 0,
|
|
4961
4926
|
title: 18,
|
|
@@ -4978,7 +4943,7 @@ class rs extends Gn {
|
|
|
4978
4943
|
realtimeupdate: 2,
|
|
4979
4944
|
currencylocale: 3
|
|
4980
4945
|
},
|
|
4981
|
-
|
|
4946
|
+
$s,
|
|
4982
4947
|
[-1, -1]
|
|
4983
4948
|
);
|
|
4984
4949
|
}
|
|
@@ -4986,124 +4951,124 @@ class rs extends Gn {
|
|
|
4986
4951
|
return this.$$.ctx[0];
|
|
4987
4952
|
}
|
|
4988
4953
|
set visualstructure(t) {
|
|
4989
|
-
this.$$set({ visualstructure: t }),
|
|
4954
|
+
this.$$set({ visualstructure: t }), L();
|
|
4990
4955
|
}
|
|
4991
4956
|
get title() {
|
|
4992
4957
|
return this.$$.ctx[18];
|
|
4993
4958
|
}
|
|
4994
4959
|
set title(t) {
|
|
4995
|
-
this.$$set({ title: t }),
|
|
4960
|
+
this.$$set({ title: t }), L();
|
|
4996
4961
|
}
|
|
4997
4962
|
get caticon0() {
|
|
4998
4963
|
return this.$$.ctx[19];
|
|
4999
4964
|
}
|
|
5000
4965
|
set caticon0(t) {
|
|
5001
|
-
this.$$set({ caticon0: t }),
|
|
4966
|
+
this.$$set({ caticon0: t }), L();
|
|
5002
4967
|
}
|
|
5003
4968
|
get caticon1() {
|
|
5004
4969
|
return this.$$.ctx[20];
|
|
5005
4970
|
}
|
|
5006
4971
|
set caticon1(t) {
|
|
5007
|
-
this.$$set({ caticon1: t }),
|
|
4972
|
+
this.$$set({ caticon1: t }), L();
|
|
5008
4973
|
}
|
|
5009
4974
|
get caticon2() {
|
|
5010
4975
|
return this.$$.ctx[21];
|
|
5011
4976
|
}
|
|
5012
4977
|
set caticon2(t) {
|
|
5013
|
-
this.$$set({ caticon2: t }),
|
|
4978
|
+
this.$$set({ caticon2: t }), L();
|
|
5014
4979
|
}
|
|
5015
4980
|
get caticon3() {
|
|
5016
4981
|
return this.$$.ctx[22];
|
|
5017
4982
|
}
|
|
5018
4983
|
set caticon3(t) {
|
|
5019
|
-
this.$$set({ caticon3: t }),
|
|
4984
|
+
this.$$set({ caticon3: t }), L();
|
|
5020
4985
|
}
|
|
5021
4986
|
get iconlabels() {
|
|
5022
4987
|
return this.$$.ctx[23];
|
|
5023
4988
|
}
|
|
5024
4989
|
set iconlabels(t) {
|
|
5025
|
-
this.$$set({ iconlabels: t }),
|
|
4990
|
+
this.$$set({ iconlabels: t }), L();
|
|
5026
4991
|
}
|
|
5027
4992
|
get backgroundsrc() {
|
|
5028
4993
|
return this.$$.ctx[24];
|
|
5029
4994
|
}
|
|
5030
4995
|
set backgroundsrc(t) {
|
|
5031
|
-
this.$$set({ backgroundsrc: t }),
|
|
4996
|
+
this.$$set({ backgroundsrc: t }), L();
|
|
5032
4997
|
}
|
|
5033
4998
|
get currency() {
|
|
5034
4999
|
return this.$$.ctx[1];
|
|
5035
5000
|
}
|
|
5036
5001
|
set currency(t) {
|
|
5037
|
-
this.$$set({ currency: t }),
|
|
5002
|
+
this.$$set({ currency: t }), L();
|
|
5038
5003
|
}
|
|
5039
5004
|
get backgroundsrcmobile() {
|
|
5040
5005
|
return this.$$.ctx[25];
|
|
5041
5006
|
}
|
|
5042
5007
|
set backgroundsrcmobile(t) {
|
|
5043
|
-
this.$$set({ backgroundsrcmobile: t }),
|
|
5008
|
+
this.$$set({ backgroundsrcmobile: t }), L();
|
|
5044
5009
|
}
|
|
5045
5010
|
get titlelogopath() {
|
|
5046
5011
|
return this.$$.ctx[26];
|
|
5047
5012
|
}
|
|
5048
5013
|
set titlelogopath(t) {
|
|
5049
|
-
this.$$set({ titlelogopath: t }),
|
|
5014
|
+
this.$$set({ titlelogopath: t }), L();
|
|
5050
5015
|
}
|
|
5051
5016
|
get lang() {
|
|
5052
5017
|
return this.$$.ctx[27];
|
|
5053
5018
|
}
|
|
5054
5019
|
set lang(t) {
|
|
5055
|
-
this.$$set({ lang: t }),
|
|
5020
|
+
this.$$set({ lang: t }), L();
|
|
5056
5021
|
}
|
|
5057
5022
|
get clientstyling() {
|
|
5058
5023
|
return this.$$.ctx[28];
|
|
5059
5024
|
}
|
|
5060
5025
|
set clientstyling(t) {
|
|
5061
|
-
this.$$set({ clientstyling: t }),
|
|
5026
|
+
this.$$set({ clientstyling: t }), L();
|
|
5062
5027
|
}
|
|
5063
5028
|
get clientstylingurl() {
|
|
5064
5029
|
return this.$$.ctx[29];
|
|
5065
5030
|
}
|
|
5066
5031
|
set clientstylingurl(t) {
|
|
5067
|
-
this.$$set({ clientstylingurl: t }),
|
|
5032
|
+
this.$$set({ clientstylingurl: t }), L();
|
|
5068
5033
|
}
|
|
5069
5034
|
get translationurl() {
|
|
5070
5035
|
return this.$$.ctx[30];
|
|
5071
5036
|
}
|
|
5072
5037
|
set translationurl(t) {
|
|
5073
|
-
this.$$set({ translationurl: t }),
|
|
5038
|
+
this.$$set({ translationurl: t }), L();
|
|
5074
5039
|
}
|
|
5075
5040
|
get endpoint() {
|
|
5076
5041
|
return this.$$.ctx[31];
|
|
5077
5042
|
}
|
|
5078
5043
|
set endpoint(t) {
|
|
5079
|
-
this.$$set({ endpoint: t }),
|
|
5044
|
+
this.$$set({ endpoint: t }), L();
|
|
5080
5045
|
}
|
|
5081
5046
|
get gameid() {
|
|
5082
5047
|
return this.$$.ctx[32];
|
|
5083
5048
|
}
|
|
5084
5049
|
set gameid(t) {
|
|
5085
|
-
this.$$set({ gameid: t }),
|
|
5050
|
+
this.$$set({ gameid: t }), L();
|
|
5086
5051
|
}
|
|
5087
5052
|
get mbsource() {
|
|
5088
5053
|
return this.$$.ctx[33];
|
|
5089
5054
|
}
|
|
5090
5055
|
set mbsource(t) {
|
|
5091
|
-
this.$$set({ mbsource: t }),
|
|
5056
|
+
this.$$set({ mbsource: t }), L();
|
|
5092
5057
|
}
|
|
5093
5058
|
get realtimeupdate() {
|
|
5094
5059
|
return this.$$.ctx[2];
|
|
5095
5060
|
}
|
|
5096
5061
|
set realtimeupdate(t) {
|
|
5097
|
-
this.$$set({ realtimeupdate: t }),
|
|
5062
|
+
this.$$set({ realtimeupdate: t }), L();
|
|
5098
5063
|
}
|
|
5099
5064
|
get currencylocale() {
|
|
5100
5065
|
return this.$$.ctx[3];
|
|
5101
5066
|
}
|
|
5102
5067
|
set currencylocale(t) {
|
|
5103
|
-
this.$$set({ currencylocale: t }),
|
|
5068
|
+
this.$$set({ currencylocale: t }), L();
|
|
5104
5069
|
}
|
|
5105
5070
|
}
|
|
5106
|
-
|
|
5071
|
+
Nn(Ys, { visualstructure: {}, title: {}, caticon0: {}, caticon1: {}, caticon2: {}, caticon3: {}, iconlabels: {}, backgroundsrc: {}, currency: {}, backgroundsrcmobile: {}, titlelogopath: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, endpoint: {}, gameid: {}, mbsource: {}, realtimeupdate: {}, currencylocale: {} }, [], [], !0);
|
|
5107
5072
|
export {
|
|
5108
|
-
|
|
5073
|
+
Ys as default
|
|
5109
5074
|
};
|