@everymatrix/casino-categories-slider-nd 1.63.0 → 1.63.1
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/{CasinoCategoriesSliderNd-Bi5joG0s.js → CasinoCategoriesSliderNd-CbaKvkr1.js} +478 -482
- package/components/{CasinoCategoriesSliderNd-DUNY5-YS.cjs → CasinoCategoriesSliderNd-Cl9FmbD9.cjs} +4 -4
- package/components/{CasinoCategoriesSliderNd-Jel1oMaQ.js → CasinoCategoriesSliderNd-D4gyC8Ua.js} +470 -474
- package/components/{CasinoSliderNd-B3r0Y9EG.js → CasinoSliderNd-BhYWksZS.js} +207 -207
- package/components/{CasinoSliderNd-CM82RowC.js → CasinoSliderNd-DRh1JyOI.js} +194 -194
- package/components/{CasinoSliderNd-jXTiQf2W.cjs → CasinoSliderNd-DiP0e5v9.cjs} +1 -1
- package/es2015/casino-categories-slider-nd.cjs +1 -1
- package/es2015/casino-categories-slider-nd.js +1 -1
- package/esnext/casino-categories-slider-nd.js +1 -1
- package/package.json +1 -1
package/components/{CasinoCategoriesSliderNd-Bi5joG0s.js → CasinoCategoriesSliderNd-CbaKvkr1.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var $r = Object.defineProperty, Fr = Object.defineProperties;
|
|
2
|
+
var jr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var gt = Object.getOwnPropertySymbols;
|
|
4
|
+
var kr = Object.prototype.hasOwnProperty, Vr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Me = (e, t, r) => t in e ? $r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
kr.call(t, r) && Me(e, r, t[r]);
|
|
8
|
+
if (gt)
|
|
9
|
+
for (var r of gt(t))
|
|
10
|
+
Vr.call(t, r) && Me(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var M = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, vt = (e, t) => Fr(e, jr(t));
|
|
13
|
+
var M = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var _t = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -27,46 +27,43 @@ var yt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Xt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Et() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function re(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Xt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ht(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Wt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let ge;
|
|
48
48
|
function As(e, t) {
|
|
49
49
|
return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Xr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function zt(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
58
|
-
return
|
|
58
|
+
return I;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
65
|
-
}
|
|
66
|
-
function Wr(e) {
|
|
67
|
-
return e && Ae(e.destroy) ? e.destroy : P;
|
|
63
|
+
function Wr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(zt(t, r));
|
|
68
65
|
}
|
|
69
|
-
function
|
|
66
|
+
function Zt(e, t) {
|
|
70
67
|
e.appendChild(t);
|
|
71
68
|
}
|
|
72
69
|
function zr(e, t, r) {
|
|
@@ -87,7 +84,7 @@ function Zr(e) {
|
|
|
87
84
|
) : e.ownerDocument;
|
|
88
85
|
}
|
|
89
86
|
function Qr(e, t) {
|
|
90
|
-
return
|
|
87
|
+
return Zt(
|
|
91
88
|
/** @type {Document} */
|
|
92
89
|
e.head || e,
|
|
93
90
|
t
|
|
@@ -109,14 +106,14 @@ function V(e) {
|
|
|
109
106
|
function Ps(e) {
|
|
110
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
111
108
|
}
|
|
112
|
-
function
|
|
109
|
+
function Qt(e) {
|
|
113
110
|
return document.createTextNode(e);
|
|
114
111
|
}
|
|
115
112
|
function Os() {
|
|
116
|
-
return
|
|
113
|
+
return Qt(" ");
|
|
117
114
|
}
|
|
118
115
|
function Ns() {
|
|
119
|
-
return
|
|
116
|
+
return Qt("");
|
|
120
117
|
}
|
|
121
118
|
function Ls(e, t, r, n) {
|
|
122
119
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -156,20 +153,20 @@ function Jr() {
|
|
|
156
153
|
function Kr(e) {
|
|
157
154
|
Jr().$$.on_mount.push(e);
|
|
158
155
|
}
|
|
159
|
-
const Y = [],
|
|
156
|
+
const Y = [], Ve = [];
|
|
160
157
|
let q = [];
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
158
|
+
const xt = [], Yt = /* @__PURE__ */ Promise.resolve();
|
|
159
|
+
let Xe = !1;
|
|
160
|
+
function qt() {
|
|
161
|
+
Xe || (Xe = !0, Yt.then(x));
|
|
165
162
|
}
|
|
166
163
|
function en() {
|
|
167
|
-
return
|
|
164
|
+
return qt(), Yt;
|
|
168
165
|
}
|
|
169
|
-
function
|
|
166
|
+
function We(e) {
|
|
170
167
|
q.push(e);
|
|
171
168
|
}
|
|
172
|
-
const
|
|
169
|
+
const Re = /* @__PURE__ */ new Set();
|
|
173
170
|
let Z = 0;
|
|
174
171
|
function x() {
|
|
175
172
|
if (Z !== 0)
|
|
@@ -184,23 +181,23 @@ function x() {
|
|
|
184
181
|
} catch (t) {
|
|
185
182
|
throw Y.length = 0, Z = 0, t;
|
|
186
183
|
}
|
|
187
|
-
for (ue(null), Y.length = 0, Z = 0;
|
|
188
|
-
|
|
184
|
+
for (ue(null), Y.length = 0, Z = 0; Ve.length; )
|
|
185
|
+
Ve.pop()();
|
|
189
186
|
for (let t = 0; t < q.length; t += 1) {
|
|
190
187
|
const r = q[t];
|
|
191
|
-
|
|
188
|
+
Re.has(r) || (Re.add(r), r());
|
|
192
189
|
}
|
|
193
190
|
q.length = 0;
|
|
194
191
|
} while (Y.length);
|
|
195
|
-
for (;
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
for (; xt.length; )
|
|
193
|
+
xt.pop()();
|
|
194
|
+
Xe = !1, Re.clear(), ue(e);
|
|
198
195
|
}
|
|
199
196
|
function tn(e) {
|
|
200
197
|
if (e.fragment !== null) {
|
|
201
198
|
e.update(), re(e.before_update);
|
|
202
199
|
const t = e.dirty;
|
|
203
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
|
|
204
201
|
}
|
|
205
202
|
}
|
|
206
203
|
function rn(e) {
|
|
@@ -208,7 +205,7 @@ function rn(e) {
|
|
|
208
205
|
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
|
209
206
|
}
|
|
210
207
|
const nn = /* @__PURE__ */ new Set();
|
|
211
|
-
function
|
|
208
|
+
function Jt(e, t) {
|
|
212
209
|
e && e.i && (nn.delete(e), e.i(t));
|
|
213
210
|
}
|
|
214
211
|
function Cs(e) {
|
|
@@ -217,24 +214,24 @@ function Cs(e) {
|
|
|
217
214
|
function Ms(e, t) {
|
|
218
215
|
e.d(1), t.delete(e.key);
|
|
219
216
|
}
|
|
220
|
-
function Rs(e, t, r, n, i, s, o, a, h, u, l,
|
|
217
|
+
function Rs(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
221
218
|
let c = e.length, d = s.length, p = c;
|
|
222
219
|
const b = {};
|
|
223
220
|
for (; p--; )
|
|
224
221
|
b[e[p].key] = p;
|
|
225
|
-
const w = [], C = /* @__PURE__ */ new Map(),
|
|
222
|
+
const w = [], C = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), T = [];
|
|
226
223
|
for (p = d; p--; ) {
|
|
227
|
-
const _ =
|
|
228
|
-
let
|
|
229
|
-
|
|
224
|
+
const _ = m(i, s, p), N = r(_);
|
|
225
|
+
let L = o.get(N);
|
|
226
|
+
L ? T.push(() => L.p(_, t)) : (L = u(N, _), L.c()), C.set(N, w[p] = L), N in b && P.set(N, Math.abs(p - b[N]));
|
|
230
227
|
}
|
|
231
|
-
const
|
|
228
|
+
const O = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
|
|
232
229
|
function R(_) {
|
|
233
|
-
|
|
230
|
+
Jt(_, 1), _.m(a, l), o.set(_.key, _), l = _.first, d--;
|
|
234
231
|
}
|
|
235
232
|
for (; c && d; ) {
|
|
236
|
-
const _ = w[d - 1],
|
|
237
|
-
_ ===
|
|
233
|
+
const _ = w[d - 1], N = e[c - 1], L = _.key, F = N.key;
|
|
234
|
+
_ === N ? (l = _.first, c--, d--) : C.has(F) ? !o.has(L) || O.has(L) ? R(_) : H.has(F) ? c-- : P.get(L) > P.get(F) ? (H.add(L), R(_)) : (O.add(F), c--) : (h(N, o), c--);
|
|
238
235
|
}
|
|
239
236
|
for (; c--; ) {
|
|
240
237
|
const _ = e[c];
|
|
@@ -246,17 +243,17 @@ function Rs(e, t, r, n, i, s, o, a, h, u, l, f) {
|
|
|
246
243
|
}
|
|
247
244
|
function sn(e, t, r) {
|
|
248
245
|
const { fragment: n, after_update: i } = e.$$;
|
|
249
|
-
n && n.m(t, r),
|
|
250
|
-
const s = e.$$.on_mount.map(
|
|
246
|
+
n && n.m(t, r), We(() => {
|
|
247
|
+
const s = e.$$.on_mount.map(Xt).filter(ht);
|
|
251
248
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
252
|
-
}), i.forEach(
|
|
249
|
+
}), i.forEach(We);
|
|
253
250
|
}
|
|
254
251
|
function on(e, t) {
|
|
255
252
|
const r = e.$$;
|
|
256
253
|
r.fragment !== null && (rn(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
257
254
|
}
|
|
258
255
|
function an(e, t) {
|
|
259
|
-
e.$$.dirty[0] === -1 && (Y.push(e),
|
|
256
|
+
e.$$.dirty[0] === -1 && (Y.push(e), qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
260
257
|
}
|
|
261
258
|
function un(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
262
259
|
const h = he;
|
|
@@ -266,9 +263,9 @@ function un(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
266
263
|
ctx: [],
|
|
267
264
|
// state
|
|
268
265
|
props: s,
|
|
269
|
-
update:
|
|
266
|
+
update: I,
|
|
270
267
|
not_equal: i,
|
|
271
|
-
bound:
|
|
268
|
+
bound: Et(),
|
|
272
269
|
// lifecycle
|
|
273
270
|
on_mount: [],
|
|
274
271
|
on_destroy: [],
|
|
@@ -277,28 +274,28 @@ function un(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
277
274
|
after_update: [],
|
|
278
275
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
279
276
|
// everything else
|
|
280
|
-
callbacks:
|
|
277
|
+
callbacks: Et(),
|
|
281
278
|
dirty: a,
|
|
282
279
|
skip_bound: !1,
|
|
283
280
|
root: t.target || h.$$.root
|
|
284
281
|
};
|
|
285
282
|
o && o(u.root);
|
|
286
283
|
let l = !1;
|
|
287
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
284
|
+
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
|
288
285
|
const p = d.length ? d[0] : c;
|
|
289
|
-
return u.ctx && i(u.ctx[
|
|
286
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = p) && (!u.skip_bound && u.bound[m] && u.bound[m](p), l && an(e, m)), c;
|
|
290
287
|
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
291
288
|
if (t.hydrate) {
|
|
292
|
-
const
|
|
293
|
-
u.fragment && u.fragment.l(
|
|
289
|
+
const m = Yr(t.target);
|
|
290
|
+
u.fragment && u.fragment.l(m), m.forEach(ne);
|
|
294
291
|
} else
|
|
295
292
|
u.fragment && u.fragment.c();
|
|
296
|
-
t.intro &&
|
|
293
|
+
t.intro && Jt(e.$$.fragment), sn(e, t.target, t.anchor), x();
|
|
297
294
|
}
|
|
298
295
|
ue(h);
|
|
299
296
|
}
|
|
300
|
-
let
|
|
301
|
-
typeof HTMLElement == "function" && (
|
|
297
|
+
let Kt;
|
|
298
|
+
typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
302
299
|
constructor(t, r, n) {
|
|
303
300
|
super();
|
|
304
301
|
/** The Svelte component constructor */
|
|
@@ -335,7 +332,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
335
332
|
}
|
|
336
333
|
}
|
|
337
334
|
connectedCallback() {
|
|
338
|
-
return
|
|
335
|
+
return _t(this, null, function* () {
|
|
339
336
|
if (this.$$cn = !0, !this.$$c) {
|
|
340
337
|
let t = function(s) {
|
|
341
338
|
return () => {
|
|
@@ -370,7 +367,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
370
367
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
371
368
|
this.$$c = new this.$$ctor({
|
|
372
369
|
target: this.shadowRoot || this,
|
|
373
|
-
props:
|
|
370
|
+
props: vt(yt({}, this.$$d), {
|
|
374
371
|
$$slots: r,
|
|
375
372
|
$$scope: {
|
|
376
373
|
ctx: []
|
|
@@ -449,7 +446,7 @@ function _e(e, t, r, n) {
|
|
|
449
446
|
}
|
|
450
447
|
}
|
|
451
448
|
function hn(e, t, r, n, i, s) {
|
|
452
|
-
let o = class extends
|
|
449
|
+
let o = class extends Kt {
|
|
453
450
|
constructor() {
|
|
454
451
|
super(e, r, i), this.$$p_d = t;
|
|
455
452
|
}
|
|
@@ -500,7 +497,7 @@ class ln {
|
|
|
500
497
|
}
|
|
501
498
|
/** @returns {void} */
|
|
502
499
|
$destroy() {
|
|
503
|
-
on(this, 1), this.$destroy =
|
|
500
|
+
on(this, 1), this.$destroy = I;
|
|
504
501
|
}
|
|
505
502
|
/**
|
|
506
503
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -509,8 +506,8 @@ class ln {
|
|
|
509
506
|
* @returns {() => void}
|
|
510
507
|
*/
|
|
511
508
|
$on(t, r) {
|
|
512
|
-
if (!
|
|
513
|
-
return
|
|
509
|
+
if (!ht(r))
|
|
510
|
+
return I;
|
|
514
511
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
515
512
|
return n.push(r), () => {
|
|
516
513
|
const i = n.indexOf(r);
|
|
@@ -522,7 +519,7 @@ class ln {
|
|
|
522
519
|
* @returns {void}
|
|
523
520
|
*/
|
|
524
521
|
$set(t) {
|
|
525
|
-
this.$$set && !
|
|
522
|
+
this.$$set && !Xr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
526
523
|
}
|
|
527
524
|
}
|
|
528
525
|
const cn = "4";
|
|
@@ -541,24 +538,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
541
538
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
542
539
|
PERFORMANCE OF THIS SOFTWARE.
|
|
543
540
|
***************************************************************************** */
|
|
544
|
-
var
|
|
545
|
-
return
|
|
541
|
+
var ze = function(e, t) {
|
|
542
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
546
543
|
r.__proto__ = n;
|
|
547
544
|
} || function(r, n) {
|
|
548
545
|
for (var i in n)
|
|
549
546
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
550
|
-
},
|
|
547
|
+
}, ze(e, t);
|
|
551
548
|
};
|
|
552
549
|
function me(e, t) {
|
|
553
550
|
if (typeof t != "function" && t !== null)
|
|
554
551
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
555
|
-
|
|
552
|
+
ze(e, t);
|
|
556
553
|
function r() {
|
|
557
554
|
this.constructor = e;
|
|
558
555
|
}
|
|
559
556
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
560
557
|
}
|
|
561
|
-
function
|
|
558
|
+
function Ze(e) {
|
|
562
559
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
563
560
|
if (r)
|
|
564
561
|
return r.call(e);
|
|
@@ -570,7 +567,7 @@ function Qe(e) {
|
|
|
570
567
|
};
|
|
571
568
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
572
569
|
}
|
|
573
|
-
function
|
|
570
|
+
function Qe(e, t) {
|
|
574
571
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
575
572
|
if (!r)
|
|
576
573
|
return e;
|
|
@@ -590,7 +587,7 @@ function Ye(e, t) {
|
|
|
590
587
|
}
|
|
591
588
|
return s;
|
|
592
589
|
}
|
|
593
|
-
function
|
|
590
|
+
function Ye(e, t, r) {
|
|
594
591
|
if (arguments.length === 2)
|
|
595
592
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
596
593
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
@@ -599,13 +596,13 @@ function qe(e, t, r) {
|
|
|
599
596
|
function D(e) {
|
|
600
597
|
return typeof e == "function";
|
|
601
598
|
}
|
|
602
|
-
function
|
|
599
|
+
function er(e) {
|
|
603
600
|
var t = function(n) {
|
|
604
601
|
Error.call(n), n.stack = new Error().stack;
|
|
605
602
|
}, r = e(t);
|
|
606
603
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
607
604
|
}
|
|
608
|
-
var
|
|
605
|
+
var Ge = er(function(e) {
|
|
609
606
|
return function(r) {
|
|
610
607
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
611
608
|
` + r.map(function(n, i) {
|
|
@@ -614,13 +611,13 @@ var Ue = Jt(function(e) {
|
|
|
614
611
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
615
612
|
};
|
|
616
613
|
});
|
|
617
|
-
function
|
|
614
|
+
function qe(e, t) {
|
|
618
615
|
if (e) {
|
|
619
616
|
var r = e.indexOf(t);
|
|
620
617
|
0 <= r && e.splice(r, 1);
|
|
621
618
|
}
|
|
622
619
|
}
|
|
623
|
-
var
|
|
620
|
+
var Ae = function() {
|
|
624
621
|
function e(t) {
|
|
625
622
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
626
623
|
}
|
|
@@ -632,7 +629,7 @@ var Be = function() {
|
|
|
632
629
|
if (o)
|
|
633
630
|
if (this._parentage = null, Array.isArray(o))
|
|
634
631
|
try {
|
|
635
|
-
for (var a =
|
|
632
|
+
for (var a = Ze(o), h = a.next(); !h.done; h = a.next()) {
|
|
636
633
|
var u = h.value;
|
|
637
634
|
u.remove(this);
|
|
638
635
|
}
|
|
@@ -653,18 +650,18 @@ var Be = function() {
|
|
|
653
650
|
try {
|
|
654
651
|
l();
|
|
655
652
|
} catch (b) {
|
|
656
|
-
s = b instanceof
|
|
653
|
+
s = b instanceof Ge ? b.errors : [b];
|
|
657
654
|
}
|
|
658
|
-
var
|
|
659
|
-
if (
|
|
655
|
+
var m = this._finalizers;
|
|
656
|
+
if (m) {
|
|
660
657
|
this._finalizers = null;
|
|
661
658
|
try {
|
|
662
|
-
for (var c =
|
|
659
|
+
for (var c = Ze(m), d = c.next(); !d.done; d = c.next()) {
|
|
663
660
|
var p = d.value;
|
|
664
661
|
try {
|
|
665
|
-
|
|
662
|
+
St(p);
|
|
666
663
|
} catch (b) {
|
|
667
|
-
s = s != null ? s : [], b instanceof
|
|
664
|
+
s = s != null ? s : [], b instanceof Ge ? s = Ye(Ye([], Qe(s)), Qe(b.errors)) : s.push(b);
|
|
668
665
|
}
|
|
669
666
|
}
|
|
670
667
|
} catch (b) {
|
|
@@ -679,13 +676,13 @@ var Be = function() {
|
|
|
679
676
|
}
|
|
680
677
|
}
|
|
681
678
|
if (s)
|
|
682
|
-
throw new
|
|
679
|
+
throw new Ge(s);
|
|
683
680
|
}
|
|
684
681
|
}, e.prototype.add = function(t) {
|
|
685
682
|
var r;
|
|
686
683
|
if (t && t !== this)
|
|
687
684
|
if (this.closed)
|
|
688
|
-
|
|
685
|
+
St(t);
|
|
689
686
|
else {
|
|
690
687
|
if (t instanceof e) {
|
|
691
688
|
if (t.closed || t._hasParent(this))
|
|
@@ -702,19 +699,19 @@ var Be = function() {
|
|
|
702
699
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
703
700
|
}, e.prototype._removeParent = function(t) {
|
|
704
701
|
var r = this._parentage;
|
|
705
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
702
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
|
706
703
|
}, e.prototype.remove = function(t) {
|
|
707
704
|
var r = this._finalizers;
|
|
708
|
-
r &&
|
|
705
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
|
709
706
|
}, e.EMPTY = function() {
|
|
710
707
|
var t = new e();
|
|
711
708
|
return t.closed = !0, t;
|
|
712
709
|
}(), e;
|
|
713
|
-
}(),
|
|
714
|
-
function
|
|
715
|
-
return e instanceof
|
|
710
|
+
}(), tr = Ae.EMPTY;
|
|
711
|
+
function rr(e) {
|
|
712
|
+
return e instanceof Ae || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
716
713
|
}
|
|
717
|
-
function
|
|
714
|
+
function St(e) {
|
|
718
715
|
D(e) ? e() : e.unsubscribe();
|
|
719
716
|
}
|
|
720
717
|
var fn = {
|
|
@@ -723,7 +720,7 @@ var fn = {
|
|
|
723
720
|
setTimeout: function(e, t) {
|
|
724
721
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
725
722
|
r[n - 2] = arguments[n];
|
|
726
|
-
return setTimeout.apply(void 0,
|
|
723
|
+
return setTimeout.apply(void 0, Ye([e, t], Qe(r)));
|
|
727
724
|
},
|
|
728
725
|
clearTimeout: function(e) {
|
|
729
726
|
return clearTimeout(e);
|
|
@@ -735,19 +732,19 @@ function dn(e) {
|
|
|
735
732
|
throw e;
|
|
736
733
|
});
|
|
737
734
|
}
|
|
738
|
-
function
|
|
735
|
+
function wt() {
|
|
739
736
|
}
|
|
740
737
|
function Ee(e) {
|
|
741
738
|
e();
|
|
742
739
|
}
|
|
743
|
-
var
|
|
740
|
+
var nr = function(e) {
|
|
744
741
|
me(t, e);
|
|
745
742
|
function t(r) {
|
|
746
743
|
var n = e.call(this) || this;
|
|
747
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
744
|
+
return n.isStopped = !1, r ? (n.destination = r, rr(r) && r.add(n)) : n.destination = gn, n;
|
|
748
745
|
}
|
|
749
746
|
return t.create = function(r, n, i) {
|
|
750
|
-
return new
|
|
747
|
+
return new Je(r, n, i);
|
|
751
748
|
}, t.prototype.next = function(r) {
|
|
752
749
|
this.isStopped || this._next(r);
|
|
753
750
|
}, t.prototype.error = function(r) {
|
|
@@ -771,7 +768,7 @@ var tr = function(e) {
|
|
|
771
768
|
this.unsubscribe();
|
|
772
769
|
}
|
|
773
770
|
}, t;
|
|
774
|
-
}(
|
|
771
|
+
}(Ae), bn = function() {
|
|
775
772
|
function e(t) {
|
|
776
773
|
this.partialObserver = t;
|
|
777
774
|
}
|
|
@@ -802,7 +799,7 @@ var tr = function(e) {
|
|
|
802
799
|
ye(r);
|
|
803
800
|
}
|
|
804
801
|
}, e;
|
|
805
|
-
}(),
|
|
802
|
+
}(), Je = function(e) {
|
|
806
803
|
me(t, e);
|
|
807
804
|
function t(r, n, i) {
|
|
808
805
|
var s = e.call(this) || this, o;
|
|
@@ -813,7 +810,7 @@ var tr = function(e) {
|
|
|
813
810
|
} : o = r, s.destination = new bn(o), s;
|
|
814
811
|
}
|
|
815
812
|
return t;
|
|
816
|
-
}(
|
|
813
|
+
}(nr);
|
|
817
814
|
function ye(e) {
|
|
818
815
|
dn(e);
|
|
819
816
|
}
|
|
@@ -822,9 +819,9 @@ function pn(e) {
|
|
|
822
819
|
}
|
|
823
820
|
var gn = {
|
|
824
821
|
closed: !0,
|
|
825
|
-
next:
|
|
822
|
+
next: wt,
|
|
826
823
|
error: pn,
|
|
827
|
-
complete:
|
|
824
|
+
complete: wt
|
|
828
825
|
}, yn = function() {
|
|
829
826
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
830
827
|
}();
|
|
@@ -838,7 +835,7 @@ function _n(e) {
|
|
|
838
835
|
}, r);
|
|
839
836
|
};
|
|
840
837
|
}
|
|
841
|
-
var
|
|
838
|
+
var Tt = function() {
|
|
842
839
|
function e(t) {
|
|
843
840
|
t && (this._subscribe = t);
|
|
844
841
|
}
|
|
@@ -846,7 +843,7 @@ var St = function() {
|
|
|
846
843
|
var r = new e();
|
|
847
844
|
return r.source = this, r.operator = t, r;
|
|
848
845
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
849
|
-
var i = this, s = xn(t) ? t : new
|
|
846
|
+
var i = this, s = xn(t) ? t : new Je(t, r, n);
|
|
850
847
|
return Ee(function() {
|
|
851
848
|
var o = i, a = o.operator, h = o.source;
|
|
852
849
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -859,8 +856,8 @@ var St = function() {
|
|
|
859
856
|
}
|
|
860
857
|
}, e.prototype.forEach = function(t, r) {
|
|
861
858
|
var n = this;
|
|
862
|
-
return r =
|
|
863
|
-
var o = new
|
|
859
|
+
return r = Ht(r), new r(function(i, s) {
|
|
860
|
+
var o = new Je({
|
|
864
861
|
next: function(a) {
|
|
865
862
|
try {
|
|
866
863
|
t(a);
|
|
@@ -884,7 +881,7 @@ var St = function() {
|
|
|
884
881
|
return _n(t)(this);
|
|
885
882
|
}, e.prototype.toPromise = function(t) {
|
|
886
883
|
var r = this;
|
|
887
|
-
return t =
|
|
884
|
+
return t = Ht(t), new t(function(n, i) {
|
|
888
885
|
var s;
|
|
889
886
|
r.subscribe(function(o) {
|
|
890
887
|
return s = o;
|
|
@@ -898,7 +895,7 @@ var St = function() {
|
|
|
898
895
|
return new e(t);
|
|
899
896
|
}, e;
|
|
900
897
|
}();
|
|
901
|
-
function
|
|
898
|
+
function Ht(e) {
|
|
902
899
|
var t;
|
|
903
900
|
return (t = e != null ? e : fn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
904
901
|
}
|
|
@@ -906,20 +903,20 @@ function En(e) {
|
|
|
906
903
|
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
907
904
|
}
|
|
908
905
|
function xn(e) {
|
|
909
|
-
return e && e instanceof
|
|
906
|
+
return e && e instanceof nr || En(e) && rr(e);
|
|
910
907
|
}
|
|
911
|
-
var Sn =
|
|
908
|
+
var Sn = er(function(e) {
|
|
912
909
|
return function() {
|
|
913
910
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
914
911
|
};
|
|
915
|
-
}),
|
|
912
|
+
}), ir = function(e) {
|
|
916
913
|
me(t, e);
|
|
917
914
|
function t() {
|
|
918
915
|
var r = e.call(this) || this;
|
|
919
916
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
920
917
|
}
|
|
921
918
|
return t.prototype.lift = function(r) {
|
|
922
|
-
var n = new
|
|
919
|
+
var n = new At(this, this);
|
|
923
920
|
return n.operator = r, n;
|
|
924
921
|
}, t.prototype._throwIfClosed = function() {
|
|
925
922
|
if (this.closed)
|
|
@@ -931,7 +928,7 @@ var Sn = Jt(function(e) {
|
|
|
931
928
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
932
929
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
933
930
|
try {
|
|
934
|
-
for (var o =
|
|
931
|
+
for (var o = Ze(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
935
932
|
var h = a.value;
|
|
936
933
|
h.next(r);
|
|
937
934
|
}
|
|
@@ -980,19 +977,19 @@ var Sn = Jt(function(e) {
|
|
|
980
977
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
981
978
|
}, t.prototype._innerSubscribe = function(r) {
|
|
982
979
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
983
|
-
return s || o ?
|
|
984
|
-
n.currentObservers = null,
|
|
980
|
+
return s || o ? tr : (this.currentObservers = null, a.push(r), new Ae(function() {
|
|
981
|
+
n.currentObservers = null, qe(a, r);
|
|
985
982
|
}));
|
|
986
983
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
987
984
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
988
985
|
i ? r.error(s) : o && r.complete();
|
|
989
986
|
}, t.prototype.asObservable = function() {
|
|
990
|
-
var r = new
|
|
987
|
+
var r = new Tt();
|
|
991
988
|
return r.source = this, r;
|
|
992
989
|
}, t.create = function(r, n) {
|
|
993
|
-
return new
|
|
990
|
+
return new At(r, n);
|
|
994
991
|
}, t;
|
|
995
|
-
}(
|
|
992
|
+
}(Tt), At = function(e) {
|
|
996
993
|
me(t, e);
|
|
997
994
|
function t(r, n) {
|
|
998
995
|
var i = e.call(this) || this;
|
|
@@ -1009,17 +1006,17 @@ var Sn = Jt(function(e) {
|
|
|
1009
1006
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1010
1007
|
}, t.prototype._subscribe = function(r) {
|
|
1011
1008
|
var n, i;
|
|
1012
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1009
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : tr;
|
|
1013
1010
|
}, t;
|
|
1014
|
-
}(
|
|
1011
|
+
}(ir), sr = {
|
|
1015
1012
|
now: function() {
|
|
1016
|
-
return (
|
|
1013
|
+
return (sr.delegate || Date).now();
|
|
1017
1014
|
},
|
|
1018
1015
|
delegate: void 0
|
|
1019
1016
|
}, wn = function(e) {
|
|
1020
1017
|
me(t, e);
|
|
1021
1018
|
function t(r, n, i) {
|
|
1022
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1019
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = sr);
|
|
1023
1020
|
var s = e.call(this) || this;
|
|
1024
1021
|
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;
|
|
1025
1022
|
}
|
|
@@ -1039,24 +1036,24 @@ var Sn = Jt(function(e) {
|
|
|
1039
1036
|
u && s.splice(0, u + 1);
|
|
1040
1037
|
}
|
|
1041
1038
|
}, t;
|
|
1042
|
-
}(
|
|
1043
|
-
const
|
|
1044
|
-
if (
|
|
1039
|
+
}(ir);
|
|
1040
|
+
const Bt = [], Pt = {}, Tn = (e, t = 0) => {
|
|
1041
|
+
if (Bt.indexOf(e) == -1) {
|
|
1045
1042
|
const r = new wn(t);
|
|
1046
|
-
|
|
1043
|
+
Pt[e] = r, Bt.push(e);
|
|
1047
1044
|
}
|
|
1048
|
-
return
|
|
1045
|
+
return Pt[e];
|
|
1049
1046
|
}, Q = [];
|
|
1050
1047
|
function Hn(e, t) {
|
|
1051
1048
|
return {
|
|
1052
|
-
subscribe:
|
|
1049
|
+
subscribe: Be(e, t).subscribe
|
|
1053
1050
|
};
|
|
1054
1051
|
}
|
|
1055
|
-
function
|
|
1052
|
+
function Be(e, t = I) {
|
|
1056
1053
|
let r;
|
|
1057
1054
|
const n = /* @__PURE__ */ new Set();
|
|
1058
1055
|
function i(a) {
|
|
1059
|
-
if (
|
|
1056
|
+
if (Wt(e, a) && (e = a, r)) {
|
|
1060
1057
|
const h = !Q.length;
|
|
1061
1058
|
for (const u of n)
|
|
1062
1059
|
u[1](), Q.push(u, e);
|
|
@@ -1070,9 +1067,9 @@ function Pe(e, t = P) {
|
|
|
1070
1067
|
function s(a) {
|
|
1071
1068
|
i(a(e));
|
|
1072
1069
|
}
|
|
1073
|
-
function o(a, h =
|
|
1070
|
+
function o(a, h = I) {
|
|
1074
1071
|
const u = [a, h];
|
|
1075
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
1072
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || I), a(e), () => {
|
|
1076
1073
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1077
1074
|
};
|
|
1078
1075
|
}
|
|
@@ -1086,15 +1083,15 @@ function se(e, t, r) {
|
|
|
1086
1083
|
return Hn(r, (o, a) => {
|
|
1087
1084
|
let h = !1;
|
|
1088
1085
|
const u = [];
|
|
1089
|
-
let l = 0,
|
|
1086
|
+
let l = 0, m = I;
|
|
1090
1087
|
const c = () => {
|
|
1091
1088
|
if (l)
|
|
1092
1089
|
return;
|
|
1093
|
-
|
|
1090
|
+
m();
|
|
1094
1091
|
const p = t(n ? u[0] : u, o, a);
|
|
1095
|
-
s ? o(p) :
|
|
1092
|
+
s ? o(p) : m = ht(p) ? p : I;
|
|
1096
1093
|
}, d = i.map(
|
|
1097
|
-
(p, b) =>
|
|
1094
|
+
(p, b) => zt(
|
|
1098
1095
|
p,
|
|
1099
1096
|
(w) => {
|
|
1100
1097
|
u[b] = w, l &= ~(1 << b), h && c();
|
|
@@ -1105,7 +1102,7 @@ function se(e, t, r) {
|
|
|
1105
1102
|
)
|
|
1106
1103
|
);
|
|
1107
1104
|
return h = !0, c(), function() {
|
|
1108
|
-
re(d),
|
|
1105
|
+
re(d), m(), h = !1;
|
|
1109
1106
|
};
|
|
1110
1107
|
});
|
|
1111
1108
|
}
|
|
@@ -1148,10 +1145,10 @@ function Gn(e) {
|
|
|
1148
1145
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1149
1146
|
}) : [];
|
|
1150
1147
|
}
|
|
1151
|
-
function
|
|
1148
|
+
function Ot(e) {
|
|
1152
1149
|
return Object.keys(e).concat(Gn(e));
|
|
1153
1150
|
}
|
|
1154
|
-
function
|
|
1151
|
+
function or(e, t) {
|
|
1155
1152
|
try {
|
|
1156
1153
|
return t in e;
|
|
1157
1154
|
} catch (r) {
|
|
@@ -1159,14 +1156,14 @@ function ir(e, t) {
|
|
|
1159
1156
|
}
|
|
1160
1157
|
}
|
|
1161
1158
|
function Un(e, t) {
|
|
1162
|
-
return
|
|
1159
|
+
return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1163
1160
|
}
|
|
1164
1161
|
function Dn(e, t, r) {
|
|
1165
1162
|
var n = {};
|
|
1166
|
-
return r.isMergeableObject(e) &&
|
|
1163
|
+
return r.isMergeableObject(e) && Ot(e).forEach(function(i) {
|
|
1167
1164
|
n[i] = le(e[i], r);
|
|
1168
|
-
}),
|
|
1169
|
-
Un(e, i) || (
|
|
1165
|
+
}), Ot(t).forEach(function(i) {
|
|
1166
|
+
Un(e, i) || (or(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
|
1170
1167
|
}), n;
|
|
1171
1168
|
}
|
|
1172
1169
|
function J(e, t, r) {
|
|
@@ -1183,18 +1180,18 @@ J.all = function(t, r) {
|
|
|
1183
1180
|
};
|
|
1184
1181
|
var $n = J, Fn = $n;
|
|
1185
1182
|
const jn = /* @__PURE__ */ An(Fn);
|
|
1186
|
-
var
|
|
1187
|
-
return
|
|
1183
|
+
var Ke = function(e, t) {
|
|
1184
|
+
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1188
1185
|
r.__proto__ = n;
|
|
1189
1186
|
} || function(r, n) {
|
|
1190
1187
|
for (var i in n)
|
|
1191
1188
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1192
|
-
},
|
|
1189
|
+
}, Ke(e, t);
|
|
1193
1190
|
};
|
|
1194
|
-
function
|
|
1191
|
+
function Pe(e, t) {
|
|
1195
1192
|
if (typeof t != "function" && t !== null)
|
|
1196
1193
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1197
|
-
|
|
1194
|
+
Ke(e, t);
|
|
1198
1195
|
function r() {
|
|
1199
1196
|
this.constructor = e;
|
|
1200
1197
|
}
|
|
@@ -1219,13 +1216,13 @@ function kn(e, t) {
|
|
|
1219
1216
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1220
1217
|
return r;
|
|
1221
1218
|
}
|
|
1222
|
-
function
|
|
1219
|
+
function Ue(e, t, r) {
|
|
1223
1220
|
if (r || arguments.length === 2)
|
|
1224
1221
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1225
1222
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1226
1223
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
1227
1224
|
}
|
|
1228
|
-
function
|
|
1225
|
+
function De(e, t) {
|
|
1229
1226
|
var r = t && t.cache ? t.cache : Yn, n = t && t.serializer ? t.serializer : Zn, i = t && t.strategy ? t.strategy : Wn;
|
|
1230
1227
|
return i(e, {
|
|
1231
1228
|
cache: r,
|
|
@@ -1239,19 +1236,19 @@ function Xn(e, t, r, n) {
|
|
|
1239
1236
|
var i = Vn(n) ? n : r(n), s = t.get(i);
|
|
1240
1237
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1241
1238
|
}
|
|
1242
|
-
function
|
|
1239
|
+
function ar(e, t, r) {
|
|
1243
1240
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1244
1241
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1245
1242
|
}
|
|
1246
|
-
function
|
|
1243
|
+
function ur(e, t, r, n, i) {
|
|
1247
1244
|
return r.bind(t, e, n, i);
|
|
1248
1245
|
}
|
|
1249
1246
|
function Wn(e, t) {
|
|
1250
|
-
var r = e.length === 1 ? Xn :
|
|
1251
|
-
return
|
|
1247
|
+
var r = e.length === 1 ? Xn : ar;
|
|
1248
|
+
return ur(e, this, r, t.cache.create(), t.serializer);
|
|
1252
1249
|
}
|
|
1253
1250
|
function zn(e, t) {
|
|
1254
|
-
return
|
|
1251
|
+
return ur(e, this, ar, t.cache.create(), t.serializer);
|
|
1255
1252
|
}
|
|
1256
1253
|
var Zn = function() {
|
|
1257
1254
|
return JSON.stringify(arguments);
|
|
@@ -1271,7 +1268,7 @@ var Zn = function() {
|
|
|
1271
1268
|
create: function() {
|
|
1272
1269
|
return new Qn();
|
|
1273
1270
|
}
|
|
1274
|
-
},
|
|
1271
|
+
}, $e = {
|
|
1275
1272
|
variadic: zn
|
|
1276
1273
|
}, we = function() {
|
|
1277
1274
|
return we = Object.assign || function(t) {
|
|
@@ -1295,40 +1292,40 @@ var K;
|
|
|
1295
1292
|
(function(e) {
|
|
1296
1293
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1297
1294
|
})(K || (K = {}));
|
|
1298
|
-
function
|
|
1295
|
+
function Nt(e) {
|
|
1299
1296
|
return e.type === E.literal;
|
|
1300
1297
|
}
|
|
1301
1298
|
function qn(e) {
|
|
1302
1299
|
return e.type === E.argument;
|
|
1303
1300
|
}
|
|
1304
|
-
function
|
|
1301
|
+
function hr(e) {
|
|
1305
1302
|
return e.type === E.number;
|
|
1306
1303
|
}
|
|
1307
|
-
function
|
|
1304
|
+
function lr(e) {
|
|
1308
1305
|
return e.type === E.date;
|
|
1309
1306
|
}
|
|
1310
|
-
function
|
|
1307
|
+
function cr(e) {
|
|
1311
1308
|
return e.type === E.time;
|
|
1312
1309
|
}
|
|
1313
|
-
function
|
|
1310
|
+
function fr(e) {
|
|
1314
1311
|
return e.type === E.select;
|
|
1315
1312
|
}
|
|
1316
|
-
function
|
|
1313
|
+
function mr(e) {
|
|
1317
1314
|
return e.type === E.plural;
|
|
1318
1315
|
}
|
|
1319
1316
|
function Jn(e) {
|
|
1320
1317
|
return e.type === E.pound;
|
|
1321
1318
|
}
|
|
1322
|
-
function
|
|
1319
|
+
function dr(e) {
|
|
1323
1320
|
return e.type === E.tag;
|
|
1324
1321
|
}
|
|
1325
|
-
function
|
|
1322
|
+
function br(e) {
|
|
1326
1323
|
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1327
1324
|
}
|
|
1328
|
-
function
|
|
1325
|
+
function et(e) {
|
|
1329
1326
|
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1330
1327
|
}
|
|
1331
|
-
var
|
|
1328
|
+
var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1332
1329
|
function ei(e) {
|
|
1333
1330
|
var t = {};
|
|
1334
1331
|
return e.replace(Kn, function(r) {
|
|
@@ -1441,8 +1438,8 @@ function ri(e) {
|
|
|
1441
1438
|
if (o.length === 0)
|
|
1442
1439
|
throw new Error("Invalid number skeleton");
|
|
1443
1440
|
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1444
|
-
var
|
|
1445
|
-
if (
|
|
1441
|
+
var m = l[u];
|
|
1442
|
+
if (m.length === 0)
|
|
1446
1443
|
throw new Error("Invalid number skeleton");
|
|
1447
1444
|
}
|
|
1448
1445
|
r.push({ stem: a, options: h });
|
|
@@ -1452,14 +1449,14 @@ function ri(e) {
|
|
|
1452
1449
|
function ni(e) {
|
|
1453
1450
|
return e.replace(/^(.*?)-/, "");
|
|
1454
1451
|
}
|
|
1455
|
-
var
|
|
1456
|
-
function
|
|
1452
|
+
var Lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gr = /^(@+)?(\+|#+)?[rs]?$/g, ii = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
1453
|
+
function It(e) {
|
|
1457
1454
|
var t = {};
|
|
1458
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1455
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gr, function(r, n, i) {
|
|
1459
1456
|
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)), "";
|
|
1460
1457
|
}), t;
|
|
1461
1458
|
}
|
|
1462
|
-
function
|
|
1459
|
+
function vr(e) {
|
|
1463
1460
|
switch (e) {
|
|
1464
1461
|
case "sign-auto":
|
|
1465
1462
|
return {
|
|
@@ -1507,14 +1504,14 @@ function si(e) {
|
|
|
1507
1504
|
notation: "scientific"
|
|
1508
1505
|
}, e = e.slice(1)), t) {
|
|
1509
1506
|
var r = e.slice(0, 2);
|
|
1510
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1507
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
|
|
1511
1508
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1512
1509
|
t.minimumIntegerDigits = e.length;
|
|
1513
1510
|
}
|
|
1514
1511
|
return t;
|
|
1515
1512
|
}
|
|
1516
|
-
function
|
|
1517
|
-
var t = {}, r =
|
|
1513
|
+
function Ct(e) {
|
|
1514
|
+
var t = {}, r = vr(e);
|
|
1518
1515
|
return r || t;
|
|
1519
1516
|
}
|
|
1520
1517
|
function oi(e) {
|
|
@@ -1553,12 +1550,12 @@ function oi(e) {
|
|
|
1553
1550
|
continue;
|
|
1554
1551
|
case "scientific":
|
|
1555
1552
|
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1556
|
-
return S(S({}, h),
|
|
1553
|
+
return S(S({}, h), Ct(u));
|
|
1557
1554
|
}, {}));
|
|
1558
1555
|
continue;
|
|
1559
1556
|
case "engineering":
|
|
1560
1557
|
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1561
|
-
return S(S({}, h),
|
|
1558
|
+
return S(S({}, h), Ct(u));
|
|
1562
1559
|
}, {}));
|
|
1563
1560
|
continue;
|
|
1564
1561
|
case "notation-simple":
|
|
@@ -1603,11 +1600,11 @@ function oi(e) {
|
|
|
1603
1600
|
case "integer-width":
|
|
1604
1601
|
if (i.options.length > 1)
|
|
1605
1602
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1606
|
-
i.options[0].replace(ii, function(h, u, l,
|
|
1603
|
+
i.options[0].replace(ii, function(h, u, l, m, c, d) {
|
|
1607
1604
|
if (u)
|
|
1608
1605
|
t.minimumIntegerDigits = l.length;
|
|
1609
1606
|
else {
|
|
1610
|
-
if (
|
|
1607
|
+
if (m && c)
|
|
1611
1608
|
throw new Error("We currently do not support maximum integer digits");
|
|
1612
1609
|
if (d)
|
|
1613
1610
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1616,25 +1613,25 @@ function oi(e) {
|
|
|
1616
1613
|
});
|
|
1617
1614
|
continue;
|
|
1618
1615
|
}
|
|
1619
|
-
if (
|
|
1616
|
+
if (yr.test(i.stem)) {
|
|
1620
1617
|
t.minimumIntegerDigits = i.stem.length;
|
|
1621
1618
|
continue;
|
|
1622
1619
|
}
|
|
1623
|
-
if (
|
|
1620
|
+
if (Lt.test(i.stem)) {
|
|
1624
1621
|
if (i.options.length > 1)
|
|
1625
1622
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1626
|
-
i.stem.replace(
|
|
1627
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1623
|
+
i.stem.replace(Lt, function(h, u, l, m, c, d) {
|
|
1624
|
+
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1628
1625
|
});
|
|
1629
1626
|
var s = i.options[0];
|
|
1630
|
-
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t),
|
|
1627
|
+
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), It(s)));
|
|
1631
1628
|
continue;
|
|
1632
1629
|
}
|
|
1633
|
-
if (
|
|
1634
|
-
t = S(S({}, t),
|
|
1630
|
+
if (gr.test(i.stem)) {
|
|
1631
|
+
t = S(S({}, t), It(i.stem));
|
|
1635
1632
|
continue;
|
|
1636
1633
|
}
|
|
1637
|
-
var o =
|
|
1634
|
+
var o = vr(i.stem);
|
|
1638
1635
|
o && (t = S(S({}, t), o));
|
|
1639
1636
|
var a = si(i.stem);
|
|
1640
1637
|
a && (t = S(S({}, t), a));
|
|
@@ -3094,20 +3091,20 @@ function ui(e) {
|
|
|
3094
3091
|
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
3095
3092
|
return i[0];
|
|
3096
3093
|
}
|
|
3097
|
-
var
|
|
3094
|
+
var Fe, hi = new RegExp("^".concat(pr.source, "*")), li = new RegExp("".concat(pr.source, "*$"));
|
|
3098
3095
|
function y(e, t) {
|
|
3099
3096
|
return { start: e, end: t };
|
|
3100
3097
|
}
|
|
3101
3098
|
var ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), fi = !!String.fromCodePoint, mi = !!Object.fromEntries, di = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, pi = !!String.prototype.trimEnd, gi = !!Number.isSafeInteger, yi = gi ? Number.isSafeInteger : function(e) {
|
|
3102
3099
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3103
|
-
},
|
|
3100
|
+
}, tt = !0;
|
|
3104
3101
|
try {
|
|
3105
|
-
var vi =
|
|
3106
|
-
|
|
3102
|
+
var vi = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3103
|
+
tt = ((Fe = vi.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
|
|
3107
3104
|
} catch (e) {
|
|
3108
|
-
|
|
3105
|
+
tt = !1;
|
|
3109
3106
|
}
|
|
3110
|
-
var
|
|
3107
|
+
var Mt = ci ? (
|
|
3111
3108
|
// Native
|
|
3112
3109
|
function(t, r, n) {
|
|
3113
3110
|
return t.startsWith(r, n);
|
|
@@ -3117,7 +3114,7 @@ var It = ci ? (
|
|
|
3117
3114
|
function(t, r, n) {
|
|
3118
3115
|
return t.slice(n, n + r.length) === r;
|
|
3119
3116
|
}
|
|
3120
|
-
),
|
|
3117
|
+
), rt = fi ? String.fromCodePoint : (
|
|
3121
3118
|
// IE11
|
|
3122
3119
|
function() {
|
|
3123
3120
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3129,7 +3126,7 @@ var It = ci ? (
|
|
|
3129
3126
|
}
|
|
3130
3127
|
return n;
|
|
3131
3128
|
}
|
|
3132
|
-
),
|
|
3129
|
+
), Rt = (
|
|
3133
3130
|
// native
|
|
3134
3131
|
mi ? Object.fromEntries : (
|
|
3135
3132
|
// Ponyfill
|
|
@@ -3141,7 +3138,7 @@ var It = ci ? (
|
|
|
3141
3138
|
return r;
|
|
3142
3139
|
}
|
|
3143
3140
|
)
|
|
3144
|
-
),
|
|
3141
|
+
), _r = di ? (
|
|
3145
3142
|
// Native
|
|
3146
3143
|
function(t, r) {
|
|
3147
3144
|
return t.codePointAt(r);
|
|
@@ -3176,27 +3173,27 @@ var It = ci ? (
|
|
|
3176
3173
|
return t.replace(li, "");
|
|
3177
3174
|
}
|
|
3178
3175
|
);
|
|
3179
|
-
function
|
|
3176
|
+
function Er(e, t) {
|
|
3180
3177
|
return new RegExp(e, t);
|
|
3181
3178
|
}
|
|
3182
|
-
var
|
|
3183
|
-
if (
|
|
3184
|
-
var
|
|
3185
|
-
|
|
3179
|
+
var nt;
|
|
3180
|
+
if (tt) {
|
|
3181
|
+
var Gt = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3182
|
+
nt = function(t, r) {
|
|
3186
3183
|
var n;
|
|
3187
|
-
|
|
3188
|
-
var i =
|
|
3184
|
+
Gt.lastIndex = r;
|
|
3185
|
+
var i = Gt.exec(t);
|
|
3189
3186
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3190
3187
|
};
|
|
3191
3188
|
} else
|
|
3192
|
-
|
|
3189
|
+
nt = function(t, r) {
|
|
3193
3190
|
for (var n = []; ; ) {
|
|
3194
|
-
var i =
|
|
3195
|
-
if (i === void 0 ||
|
|
3191
|
+
var i = _r(t, r);
|
|
3192
|
+
if (i === void 0 || xr(i) || Ti(i))
|
|
3196
3193
|
break;
|
|
3197
3194
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3198
3195
|
}
|
|
3199
|
-
return
|
|
3196
|
+
return rt.apply(void 0, n);
|
|
3200
3197
|
};
|
|
3201
3198
|
var xi = (
|
|
3202
3199
|
/** @class */
|
|
@@ -3229,7 +3226,7 @@ var xi = (
|
|
|
3229
3226
|
if (n)
|
|
3230
3227
|
break;
|
|
3231
3228
|
return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3232
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3229
|
+
} else if (s === 60 && !this.ignoreTag && it(this.peek() || 0)) {
|
|
3233
3230
|
var o = this.parseTag(t, r);
|
|
3234
3231
|
if (o.err)
|
|
3235
3232
|
return o;
|
|
@@ -3262,7 +3259,7 @@ var xi = (
|
|
|
3262
3259
|
return s;
|
|
3263
3260
|
var o = s.val, a = this.clonePosition();
|
|
3264
3261
|
if (this.bumpIf("</")) {
|
|
3265
|
-
if (this.isEOF() || !
|
|
3262
|
+
if (this.isEOF() || !it(this.char()))
|
|
3266
3263
|
return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
|
|
3267
3264
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3268
3265
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3343,12 +3340,12 @@ var xi = (
|
|
|
3343
3340
|
r.push(n);
|
|
3344
3341
|
this.bump();
|
|
3345
3342
|
}
|
|
3346
|
-
return
|
|
3343
|
+
return rt.apply(void 0, r);
|
|
3347
3344
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3348
3345
|
if (this.isEOF())
|
|
3349
3346
|
return null;
|
|
3350
3347
|
var n = this.char();
|
|
3351
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3348
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rt(n));
|
|
3352
3349
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3353
3350
|
var n = this.clonePosition();
|
|
3354
3351
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3377,7 +3374,7 @@ var xi = (
|
|
|
3377
3374
|
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3378
3375
|
}
|
|
3379
3376
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3380
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3377
|
+
var t = this.clonePosition(), r = this.offset(), n = nt(this.message, r), i = r + n.length;
|
|
3381
3378
|
this.bumpTo(i);
|
|
3382
3379
|
var s = this.clonePosition(), o = y(t, s);
|
|
3383
3380
|
return { value: n, location: o };
|
|
@@ -3393,10 +3390,10 @@ var xi = (
|
|
|
3393
3390
|
var u = null;
|
|
3394
3391
|
if (this.bumpIf(",")) {
|
|
3395
3392
|
this.bumpSpace();
|
|
3396
|
-
var l = this.clonePosition(),
|
|
3397
|
-
if (
|
|
3398
|
-
return
|
|
3399
|
-
var c = Ei(
|
|
3393
|
+
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
3394
|
+
if (m.err)
|
|
3395
|
+
return m;
|
|
3396
|
+
var c = Ei(m.val);
|
|
3400
3397
|
if (c.length === 0)
|
|
3401
3398
|
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3402
3399
|
var d = y(l, this.clonePosition());
|
|
@@ -3406,12 +3403,12 @@ var xi = (
|
|
|
3406
3403
|
if (p.err)
|
|
3407
3404
|
return p;
|
|
3408
3405
|
var b = y(i, this.clonePosition());
|
|
3409
|
-
if (u &&
|
|
3406
|
+
if (u && Mt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3410
3407
|
var w = _i(u.style.slice(2));
|
|
3411
3408
|
if (a === "number") {
|
|
3412
|
-
var
|
|
3413
|
-
return
|
|
3414
|
-
val: { type: E.number, value: n, location: b, style:
|
|
3409
|
+
var m = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3410
|
+
return m.err ? m : {
|
|
3411
|
+
val: { type: E.number, value: n, location: b, style: m.val },
|
|
3415
3412
|
err: null
|
|
3416
3413
|
};
|
|
3417
3414
|
} else {
|
|
@@ -3424,9 +3421,9 @@ var xi = (
|
|
|
3424
3421
|
pattern: C,
|
|
3425
3422
|
location: u.styleLocation,
|
|
3426
3423
|
parsedOptions: this.shouldParseSkeletons ? ei(C) : {}
|
|
3427
|
-
},
|
|
3424
|
+
}, P = a === "date" ? E.date : E.time;
|
|
3428
3425
|
return {
|
|
3429
|
-
val: { type:
|
|
3426
|
+
val: { type: P, value: n, location: b, style: c },
|
|
3430
3427
|
err: null
|
|
3431
3428
|
};
|
|
3432
3429
|
}
|
|
@@ -3448,17 +3445,17 @@ var xi = (
|
|
|
3448
3445
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3449
3446
|
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, we({}, T)));
|
|
3450
3447
|
this.bumpSpace();
|
|
3451
|
-
var
|
|
3452
|
-
if (a !== "select" &&
|
|
3448
|
+
var O = this.parseIdentifierIfPossible(), H = 0;
|
|
3449
|
+
if (a !== "select" && O.value === "offset") {
|
|
3453
3450
|
if (!this.bumpIf(":"))
|
|
3454
3451
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3455
3452
|
this.bumpSpace();
|
|
3456
|
-
var
|
|
3457
|
-
if (
|
|
3458
|
-
return
|
|
3459
|
-
this.bumpSpace(),
|
|
3453
|
+
var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3454
|
+
if (m.err)
|
|
3455
|
+
return m;
|
|
3456
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), H = m.val;
|
|
3460
3457
|
}
|
|
3461
|
-
var R = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3458
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3462
3459
|
if (R.err)
|
|
3463
3460
|
return R;
|
|
3464
3461
|
var p = this.tryParseArgumentClose(i);
|
|
@@ -3469,7 +3466,7 @@ var xi = (
|
|
|
3469
3466
|
val: {
|
|
3470
3467
|
type: E.select,
|
|
3471
3468
|
value: n,
|
|
3472
|
-
options:
|
|
3469
|
+
options: Rt(R.val),
|
|
3473
3470
|
location: _
|
|
3474
3471
|
},
|
|
3475
3472
|
err: null
|
|
@@ -3477,7 +3474,7 @@ var xi = (
|
|
|
3477
3474
|
val: {
|
|
3478
3475
|
type: E.plural,
|
|
3479
3476
|
value: n,
|
|
3480
|
-
options:
|
|
3477
|
+
options: Rt(R.val),
|
|
3481
3478
|
offset: H,
|
|
3482
3479
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3483
3480
|
location: _
|
|
@@ -3544,12 +3541,12 @@ var xi = (
|
|
|
3544
3541
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3545
3542
|
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3546
3543
|
if (u.length === 0) {
|
|
3547
|
-
var
|
|
3544
|
+
var m = this.clonePosition();
|
|
3548
3545
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3549
3546
|
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3550
3547
|
if (c.err)
|
|
3551
3548
|
return c;
|
|
3552
|
-
l = y(
|
|
3549
|
+
l = y(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
|
3553
3550
|
} else
|
|
3554
3551
|
break;
|
|
3555
3552
|
}
|
|
@@ -3600,7 +3597,7 @@ var xi = (
|
|
|
3600
3597
|
var t = this.position.offset;
|
|
3601
3598
|
if (t >= this.message.length)
|
|
3602
3599
|
throw Error("out of bound");
|
|
3603
|
-
var r =
|
|
3600
|
+
var r = _r(this.message, t);
|
|
3604
3601
|
if (r === void 0)
|
|
3605
3602
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3606
3603
|
return r;
|
|
@@ -3619,7 +3616,7 @@ var xi = (
|
|
|
3619
3616
|
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);
|
|
3620
3617
|
}
|
|
3621
3618
|
}, e.prototype.bumpIf = function(t) {
|
|
3622
|
-
if (
|
|
3619
|
+
if (Mt(this.message, t, this.offset())) {
|
|
3623
3620
|
for (var r = 0; r < t.length; r++)
|
|
3624
3621
|
this.bump();
|
|
3625
3622
|
return !0;
|
|
@@ -3641,7 +3638,7 @@ var xi = (
|
|
|
3641
3638
|
break;
|
|
3642
3639
|
}
|
|
3643
3640
|
}, e.prototype.bumpSpace = function() {
|
|
3644
|
-
for (; !this.isEOF() &&
|
|
3641
|
+
for (; !this.isEOF() && xr(this.char()); )
|
|
3645
3642
|
this.bump();
|
|
3646
3643
|
}, e.prototype.peek = function() {
|
|
3647
3644
|
if (this.isEOF())
|
|
@@ -3651,28 +3648,28 @@ var xi = (
|
|
|
3651
3648
|
}, e;
|
|
3652
3649
|
}()
|
|
3653
3650
|
);
|
|
3654
|
-
function
|
|
3651
|
+
function it(e) {
|
|
3655
3652
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3656
3653
|
}
|
|
3657
3654
|
function Si(e) {
|
|
3658
|
-
return
|
|
3655
|
+
return it(e) || e === 47;
|
|
3659
3656
|
}
|
|
3660
3657
|
function wi(e) {
|
|
3661
3658
|
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;
|
|
3662
3659
|
}
|
|
3663
|
-
function
|
|
3660
|
+
function xr(e) {
|
|
3664
3661
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3665
3662
|
}
|
|
3666
3663
|
function Ti(e) {
|
|
3667
3664
|
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;
|
|
3668
3665
|
}
|
|
3669
|
-
function
|
|
3666
|
+
function st(e) {
|
|
3670
3667
|
e.forEach(function(t) {
|
|
3671
|
-
if (delete t.location,
|
|
3668
|
+
if (delete t.location, fr(t) || mr(t))
|
|
3672
3669
|
for (var r in t.options)
|
|
3673
|
-
delete t.options[r].location,
|
|
3670
|
+
delete t.options[r].location, st(t.options[r].value);
|
|
3674
3671
|
else
|
|
3675
|
-
|
|
3672
|
+
hr(t) && br(t.style) || (lr(t) || cr(t)) && et(t.style) ? delete t.style.location : dr(t) && st(t.children);
|
|
3676
3673
|
});
|
|
3677
3674
|
}
|
|
3678
3675
|
function Hi(e, t) {
|
|
@@ -3682,16 +3679,16 @@ function Hi(e, t) {
|
|
|
3682
3679
|
var n = SyntaxError(g[r.err.kind]);
|
|
3683
3680
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3684
3681
|
}
|
|
3685
|
-
return t != null && t.captureLocation ||
|
|
3682
|
+
return t != null && t.captureLocation || st(r.val), r.val;
|
|
3686
3683
|
}
|
|
3687
3684
|
var ee;
|
|
3688
3685
|
(function(e) {
|
|
3689
3686
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3690
3687
|
})(ee || (ee = {}));
|
|
3691
|
-
var
|
|
3688
|
+
var Oe = (
|
|
3692
3689
|
/** @class */
|
|
3693
3690
|
function(e) {
|
|
3694
|
-
|
|
3691
|
+
Pe(t, e);
|
|
3695
3692
|
function t(r, n, i) {
|
|
3696
3693
|
var s = e.call(this, r) || this;
|
|
3697
3694
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3700,33 +3697,33 @@ var Ne = (
|
|
|
3700
3697
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3701
3698
|
}, t;
|
|
3702
3699
|
}(Error)
|
|
3703
|
-
),
|
|
3700
|
+
), Ut = (
|
|
3704
3701
|
/** @class */
|
|
3705
3702
|
function(e) {
|
|
3706
|
-
|
|
3703
|
+
Pe(t, e);
|
|
3707
3704
|
function t(r, n, i, s) {
|
|
3708
3705
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
|
|
3709
3706
|
}
|
|
3710
3707
|
return t;
|
|
3711
|
-
}(
|
|
3708
|
+
}(Oe)
|
|
3712
3709
|
), Ai = (
|
|
3713
3710
|
/** @class */
|
|
3714
3711
|
function(e) {
|
|
3715
|
-
|
|
3712
|
+
Pe(t, e);
|
|
3716
3713
|
function t(r, n, i) {
|
|
3717
3714
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3718
3715
|
}
|
|
3719
3716
|
return t;
|
|
3720
|
-
}(
|
|
3717
|
+
}(Oe)
|
|
3721
3718
|
), Bi = (
|
|
3722
3719
|
/** @class */
|
|
3723
3720
|
function(e) {
|
|
3724
|
-
|
|
3721
|
+
Pe(t, e);
|
|
3725
3722
|
function t(r, n) {
|
|
3726
3723
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3727
3724
|
}
|
|
3728
3725
|
return t;
|
|
3729
|
-
}(
|
|
3726
|
+
}(Oe)
|
|
3730
3727
|
), A;
|
|
3731
3728
|
(function(e) {
|
|
3732
3729
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3741,7 +3738,7 @@ function Oi(e) {
|
|
|
3741
3738
|
return typeof e == "function";
|
|
3742
3739
|
}
|
|
3743
3740
|
function xe(e, t, r, n, i, s, o) {
|
|
3744
|
-
if (e.length === 1 &&
|
|
3741
|
+
if (e.length === 1 && Nt(e[0]))
|
|
3745
3742
|
return [
|
|
3746
3743
|
{
|
|
3747
3744
|
type: A.literal,
|
|
@@ -3750,7 +3747,7 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3750
3747
|
];
|
|
3751
3748
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3752
3749
|
var l = u[h];
|
|
3753
|
-
if (
|
|
3750
|
+
if (Nt(l)) {
|
|
3754
3751
|
a.push({
|
|
3755
3752
|
type: A.literal,
|
|
3756
3753
|
value: l.value
|
|
@@ -3764,10 +3761,10 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3764
3761
|
});
|
|
3765
3762
|
continue;
|
|
3766
3763
|
}
|
|
3767
|
-
var
|
|
3768
|
-
if (!(i &&
|
|
3769
|
-
throw new Bi(
|
|
3770
|
-
var c = i[
|
|
3764
|
+
var m = l.value;
|
|
3765
|
+
if (!(i && m in i))
|
|
3766
|
+
throw new Bi(m, o);
|
|
3767
|
+
var c = i[m];
|
|
3771
3768
|
if (qn(l)) {
|
|
3772
3769
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3773
3770
|
type: typeof c == "string" ? A.literal : A.object,
|
|
@@ -3775,63 +3772,63 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3775
3772
|
});
|
|
3776
3773
|
continue;
|
|
3777
3774
|
}
|
|
3778
|
-
if (
|
|
3779
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3775
|
+
if (lr(l)) {
|
|
3776
|
+
var d = typeof l.style == "string" ? n.date[l.style] : et(l.style) ? l.style.parsedOptions : void 0;
|
|
3780
3777
|
a.push({
|
|
3781
3778
|
type: A.literal,
|
|
3782
3779
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3783
3780
|
});
|
|
3784
3781
|
continue;
|
|
3785
3782
|
}
|
|
3786
|
-
if (
|
|
3787
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3783
|
+
if (cr(l)) {
|
|
3784
|
+
var d = typeof l.style == "string" ? n.time[l.style] : et(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3788
3785
|
a.push({
|
|
3789
3786
|
type: A.literal,
|
|
3790
3787
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3791
3788
|
});
|
|
3792
3789
|
continue;
|
|
3793
3790
|
}
|
|
3794
|
-
if (
|
|
3795
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3791
|
+
if (hr(l)) {
|
|
3792
|
+
var d = typeof l.style == "string" ? n.number[l.style] : br(l.style) ? l.style.parsedOptions : void 0;
|
|
3796
3793
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3797
3794
|
type: A.literal,
|
|
3798
3795
|
value: r.getNumberFormat(t, d).format(c)
|
|
3799
3796
|
});
|
|
3800
3797
|
continue;
|
|
3801
3798
|
}
|
|
3802
|
-
if (
|
|
3799
|
+
if (dr(l)) {
|
|
3803
3800
|
var p = l.children, b = l.value, w = i[b];
|
|
3804
3801
|
if (!Oi(w))
|
|
3805
3802
|
throw new Ai(b, "function", o);
|
|
3806
|
-
var C = xe(p, t, r, n, i, s),
|
|
3803
|
+
var C = xe(p, t, r, n, i, s), P = w(C.map(function(H) {
|
|
3807
3804
|
return H.value;
|
|
3808
3805
|
}));
|
|
3809
|
-
Array.isArray(
|
|
3806
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(H) {
|
|
3810
3807
|
return {
|
|
3811
3808
|
type: typeof H == "string" ? A.literal : A.object,
|
|
3812
3809
|
value: H
|
|
3813
3810
|
};
|
|
3814
3811
|
}));
|
|
3815
3812
|
}
|
|
3816
|
-
if (
|
|
3813
|
+
if (fr(l)) {
|
|
3817
3814
|
var T = l.options[c] || l.options.other;
|
|
3818
3815
|
if (!T)
|
|
3819
|
-
throw new
|
|
3816
|
+
throw new Ut(l.value, c, Object.keys(l.options), o);
|
|
3820
3817
|
a.push.apply(a, xe(T.value, t, r, n, i));
|
|
3821
3818
|
continue;
|
|
3822
3819
|
}
|
|
3823
|
-
if (
|
|
3820
|
+
if (mr(l)) {
|
|
3824
3821
|
var T = l.options["=".concat(c)];
|
|
3825
3822
|
if (!T) {
|
|
3826
3823
|
if (!Intl.PluralRules)
|
|
3827
|
-
throw new
|
|
3824
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3828
3825
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3829
3826
|
`, ee.MISSING_INTL_API, o);
|
|
3830
|
-
var
|
|
3831
|
-
T = l.options[
|
|
3827
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3828
|
+
T = l.options[O] || l.options.other;
|
|
3832
3829
|
}
|
|
3833
3830
|
if (!T)
|
|
3834
|
-
throw new
|
|
3831
|
+
throw new Ut(l.value, c, Object.keys(l.options), o);
|
|
3835
3832
|
a.push.apply(a, xe(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3836
3833
|
continue;
|
|
3837
3834
|
}
|
|
@@ -3848,7 +3845,7 @@ function Li(e, t) {
|
|
|
3848
3845
|
return r[n] = Ni(e[n], t[n]), r;
|
|
3849
3846
|
}, G({}, e)) : e;
|
|
3850
3847
|
}
|
|
3851
|
-
function
|
|
3848
|
+
function je(e) {
|
|
3852
3849
|
return {
|
|
3853
3850
|
create: function() {
|
|
3854
3851
|
return {
|
|
@@ -3868,29 +3865,29 @@ function Ii(e) {
|
|
|
3868
3865
|
dateTime: {},
|
|
3869
3866
|
pluralRules: {}
|
|
3870
3867
|
}), {
|
|
3871
|
-
getNumberFormat:
|
|
3868
|
+
getNumberFormat: De(function() {
|
|
3872
3869
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3873
3870
|
r[n] = arguments[n];
|
|
3874
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3871
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ue([void 0], r, !1)))();
|
|
3875
3872
|
}, {
|
|
3876
|
-
cache:
|
|
3877
|
-
strategy:
|
|
3873
|
+
cache: je(e.number),
|
|
3874
|
+
strategy: $e.variadic
|
|
3878
3875
|
}),
|
|
3879
|
-
getDateTimeFormat:
|
|
3876
|
+
getDateTimeFormat: De(function() {
|
|
3880
3877
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3881
3878
|
r[n] = arguments[n];
|
|
3882
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3879
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ue([void 0], r, !1)))();
|
|
3883
3880
|
}, {
|
|
3884
|
-
cache:
|
|
3885
|
-
strategy:
|
|
3881
|
+
cache: je(e.dateTime),
|
|
3882
|
+
strategy: $e.variadic
|
|
3886
3883
|
}),
|
|
3887
|
-
getPluralRules:
|
|
3884
|
+
getPluralRules: De(function() {
|
|
3888
3885
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3889
3886
|
r[n] = arguments[n];
|
|
3890
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3887
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ue([void 0], r, !1)))();
|
|
3891
3888
|
}, {
|
|
3892
|
-
cache:
|
|
3893
|
-
strategy:
|
|
3889
|
+
cache: je(e.pluralRules),
|
|
3890
|
+
strategy: $e.variadic
|
|
3894
3891
|
})
|
|
3895
3892
|
};
|
|
3896
3893
|
}
|
|
@@ -3908,8 +3905,8 @@ var Ci = (
|
|
|
3908
3905
|
var u = s.formatToParts(h);
|
|
3909
3906
|
if (u.length === 1)
|
|
3910
3907
|
return u[0].value;
|
|
3911
|
-
var l = u.reduce(function(
|
|
3912
|
-
return !
|
|
3908
|
+
var l = u.reduce(function(m, c) {
|
|
3909
|
+
return !m.length || c.type !== A.literal || typeof m[m.length - 1] != "string" ? m.push(c.value) : m[m.length - 1] += c.value, m;
|
|
3913
3910
|
}, []);
|
|
3914
3911
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3915
3912
|
}, this.formatToParts = function(h) {
|
|
@@ -4027,28 +4024,28 @@ function Mi(e, t) {
|
|
|
4027
4024
|
n = void 0;
|
|
4028
4025
|
return n;
|
|
4029
4026
|
}
|
|
4030
|
-
const $ = {}, Ri = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r),
|
|
4027
|
+
const $ = {}, Ri = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), Sr = (e, t) => {
|
|
4031
4028
|
if (t == null)
|
|
4032
4029
|
return;
|
|
4033
4030
|
if (t in $ && e in $[t])
|
|
4034
4031
|
return $[t][e];
|
|
4035
|
-
const r =
|
|
4032
|
+
const r = Ne(t);
|
|
4036
4033
|
for (let n = 0; n < r.length; n++) {
|
|
4037
4034
|
const i = r[n], s = Ui(i, e);
|
|
4038
4035
|
if (s)
|
|
4039
4036
|
return Ri(e, t, s);
|
|
4040
4037
|
}
|
|
4041
4038
|
};
|
|
4042
|
-
let
|
|
4043
|
-
const de =
|
|
4039
|
+
let lt;
|
|
4040
|
+
const de = Be({});
|
|
4044
4041
|
function Gi(e) {
|
|
4045
|
-
return
|
|
4042
|
+
return lt[e] || null;
|
|
4046
4043
|
}
|
|
4047
|
-
function
|
|
4048
|
-
return e in
|
|
4044
|
+
function wr(e) {
|
|
4045
|
+
return e in lt;
|
|
4049
4046
|
}
|
|
4050
4047
|
function Ui(e, t) {
|
|
4051
|
-
if (!
|
|
4048
|
+
if (!wr(e))
|
|
4052
4049
|
return null;
|
|
4053
4050
|
const r = Gi(e);
|
|
4054
4051
|
return Mi(r, t);
|
|
@@ -4056,50 +4053,50 @@ function Ui(e, t) {
|
|
|
4056
4053
|
function Di(e) {
|
|
4057
4054
|
if (e == null)
|
|
4058
4055
|
return;
|
|
4059
|
-
const t =
|
|
4056
|
+
const t = Ne(e);
|
|
4060
4057
|
for (let r = 0; r < t.length; r++) {
|
|
4061
4058
|
const n = t[r];
|
|
4062
|
-
if (
|
|
4059
|
+
if (wr(n))
|
|
4063
4060
|
return n;
|
|
4064
4061
|
}
|
|
4065
4062
|
}
|
|
4066
|
-
function
|
|
4063
|
+
function Tr(e, ...t) {
|
|
4067
4064
|
delete $[e], de.update((r) => (r[e] = jn.all([r[e] || {}, ...t]), r));
|
|
4068
4065
|
}
|
|
4069
4066
|
se(
|
|
4070
4067
|
[de],
|
|
4071
4068
|
([e]) => Object.keys(e)
|
|
4072
4069
|
);
|
|
4073
|
-
de.subscribe((e) =>
|
|
4070
|
+
de.subscribe((e) => lt = e);
|
|
4074
4071
|
const Se = {};
|
|
4075
4072
|
function $i(e, t) {
|
|
4076
4073
|
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
4077
4074
|
}
|
|
4078
|
-
function
|
|
4075
|
+
function Hr(e) {
|
|
4079
4076
|
return Se[e];
|
|
4080
4077
|
}
|
|
4081
4078
|
function Fi(e) {
|
|
4082
|
-
return
|
|
4083
|
-
const r =
|
|
4079
|
+
return Ne(e).map((t) => {
|
|
4080
|
+
const r = Hr(t);
|
|
4084
4081
|
return [t, r ? [...r] : []];
|
|
4085
4082
|
}).filter(([, t]) => t.length > 0);
|
|
4086
4083
|
}
|
|
4087
|
-
function
|
|
4088
|
-
return e == null ? !1 :
|
|
4084
|
+
function ot(e) {
|
|
4085
|
+
return e == null ? !1 : Ne(e).some(
|
|
4089
4086
|
(t) => {
|
|
4090
4087
|
var r;
|
|
4091
|
-
return (r =
|
|
4088
|
+
return (r = Hr(t)) == null ? void 0 : r.size;
|
|
4092
4089
|
}
|
|
4093
4090
|
);
|
|
4094
4091
|
}
|
|
4095
4092
|
function ji(e, t) {
|
|
4096
4093
|
return Promise.all(
|
|
4097
4094
|
t.map((n) => ($i(e, n), n().then((i) => i.default || i)))
|
|
4098
|
-
).then((n) =>
|
|
4095
|
+
).then((n) => Tr(e, ...n));
|
|
4099
4096
|
}
|
|
4100
4097
|
const ae = {};
|
|
4101
|
-
function
|
|
4102
|
-
if (!
|
|
4098
|
+
function Ar(e) {
|
|
4099
|
+
if (!ot(e))
|
|
4103
4100
|
return e in ae ? ae[e] : Promise.resolve();
|
|
4104
4101
|
const t = Fi(e);
|
|
4105
4102
|
return ae[e] = Promise.all(
|
|
@@ -4107,8 +4104,8 @@ function Tr(e) {
|
|
|
4107
4104
|
([r, n]) => ji(r, n)
|
|
4108
4105
|
)
|
|
4109
4106
|
).then(() => {
|
|
4110
|
-
if (
|
|
4111
|
-
return
|
|
4107
|
+
if (ot(e))
|
|
4108
|
+
return Ar(e);
|
|
4112
4109
|
delete ae[e];
|
|
4113
4110
|
}), ae[e];
|
|
4114
4111
|
}
|
|
@@ -4152,67 +4149,67 @@ const ki = {
|
|
|
4152
4149
|
function te() {
|
|
4153
4150
|
return Xi;
|
|
4154
4151
|
}
|
|
4155
|
-
const
|
|
4156
|
-
var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors,
|
|
4152
|
+
const ke = Be(!1);
|
|
4153
|
+
var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qi = (e, t) => {
|
|
4157
4154
|
for (var r in t || (t = {}))
|
|
4158
|
-
Qi.call(t, r) &&
|
|
4159
|
-
if (
|
|
4160
|
-
for (var r of
|
|
4161
|
-
Yi.call(t, r) &&
|
|
4155
|
+
Qi.call(t, r) && $t(e, r, t[r]);
|
|
4156
|
+
if (Dt)
|
|
4157
|
+
for (var r of Dt(t))
|
|
4158
|
+
Yi.call(t, r) && $t(e, r, t[r]);
|
|
4162
4159
|
return e;
|
|
4163
4160
|
}, Ji = (e, t) => zi(e, Zi(t));
|
|
4164
|
-
let
|
|
4165
|
-
const Te =
|
|
4166
|
-
function
|
|
4161
|
+
let at;
|
|
4162
|
+
const Te = Be(null);
|
|
4163
|
+
function Ft(e) {
|
|
4167
4164
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4168
4165
|
}
|
|
4169
|
-
function
|
|
4170
|
-
const r =
|
|
4171
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4166
|
+
function Ne(e, t = te().fallbackLocale) {
|
|
4167
|
+
const r = Ft(e);
|
|
4168
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ft(t)])] : r;
|
|
4172
4169
|
}
|
|
4173
4170
|
function X() {
|
|
4174
|
-
return
|
|
4171
|
+
return at != null ? at : void 0;
|
|
4175
4172
|
}
|
|
4176
4173
|
Te.subscribe((e) => {
|
|
4177
|
-
|
|
4174
|
+
at = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4178
4175
|
});
|
|
4179
4176
|
const Ki = (e) => {
|
|
4180
|
-
if (e && Di(e) &&
|
|
4177
|
+
if (e && Di(e) && ot(e)) {
|
|
4181
4178
|
const { loadingDelay: t } = te();
|
|
4182
4179
|
let r;
|
|
4183
4180
|
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
4184
|
-
() =>
|
|
4181
|
+
() => ke.set(!0),
|
|
4185
4182
|
t
|
|
4186
|
-
) :
|
|
4183
|
+
) : ke.set(!0), Ar(e).then(() => {
|
|
4187
4184
|
Te.set(e);
|
|
4188
4185
|
}).finally(() => {
|
|
4189
|
-
clearTimeout(r),
|
|
4186
|
+
clearTimeout(r), ke.set(!1);
|
|
4190
4187
|
});
|
|
4191
4188
|
}
|
|
4192
4189
|
return Te.set(e);
|
|
4193
4190
|
}, be = Ji(qi({}, Te), {
|
|
4194
4191
|
set: Ki
|
|
4195
|
-
}),
|
|
4192
|
+
}), Le = (e) => {
|
|
4196
4193
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4197
4194
|
return (n) => {
|
|
4198
4195
|
const i = JSON.stringify(n);
|
|
4199
4196
|
return i in t ? t[i] : t[i] = e(n);
|
|
4200
4197
|
};
|
|
4201
4198
|
};
|
|
4202
|
-
var es = Object.defineProperty, He = Object.getOwnPropertySymbols,
|
|
4199
|
+
var es = Object.defineProperty, He = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? es(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
|
4203
4200
|
for (var r in t || (t = {}))
|
|
4204
|
-
|
|
4201
|
+
Br.call(t, r) && jt(e, r, t[r]);
|
|
4205
4202
|
if (He)
|
|
4206
4203
|
for (var r of He(t))
|
|
4207
|
-
|
|
4204
|
+
Pr.call(t, r) && jt(e, r, t[r]);
|
|
4208
4205
|
return e;
|
|
4209
4206
|
}, oe = (e, t) => {
|
|
4210
4207
|
var r = {};
|
|
4211
4208
|
for (var n in e)
|
|
4212
|
-
|
|
4209
|
+
Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4213
4210
|
if (e != null && He)
|
|
4214
4211
|
for (var n of He(e))
|
|
4215
|
-
t.indexOf(n) < 0 &&
|
|
4212
|
+
t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
|
|
4216
4213
|
return r;
|
|
4217
4214
|
};
|
|
4218
4215
|
const ce = (e, t) => {
|
|
@@ -4220,21 +4217,21 @@ const ce = (e, t) => {
|
|
|
4220
4217
|
if (e in r && t in r[e])
|
|
4221
4218
|
return r[e][t];
|
|
4222
4219
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4223
|
-
}, ts =
|
|
4220
|
+
}, ts = Le(
|
|
4224
4221
|
(e) => {
|
|
4225
4222
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4226
4223
|
if (r == null)
|
|
4227
4224
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4228
4225
|
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4229
4226
|
}
|
|
4230
|
-
), rs =
|
|
4227
|
+
), rs = Le(
|
|
4231
4228
|
(e) => {
|
|
4232
4229
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4233
4230
|
if (r == null)
|
|
4234
4231
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4235
4232
|
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4236
4233
|
}
|
|
4237
|
-
), ns =
|
|
4234
|
+
), ns = Le(
|
|
4238
4235
|
(e) => {
|
|
4239
4236
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4240
4237
|
if (r == null)
|
|
@@ -4249,22 +4246,22 @@ const ce = (e, t) => {
|
|
|
4249
4246
|
} = t, n = oe(t, [
|
|
4250
4247
|
"locale"
|
|
4251
4248
|
]);
|
|
4252
|
-
return ts(
|
|
4249
|
+
return ts(ct({ locale: r }, n));
|
|
4253
4250
|
}, ss = (e = {}) => {
|
|
4254
4251
|
var t = e, {
|
|
4255
4252
|
locale: r = X()
|
|
4256
4253
|
} = t, n = oe(t, [
|
|
4257
4254
|
"locale"
|
|
4258
4255
|
]);
|
|
4259
|
-
return rs(
|
|
4256
|
+
return rs(ct({ locale: r }, n));
|
|
4260
4257
|
}, os = (e = {}) => {
|
|
4261
4258
|
var t = e, {
|
|
4262
4259
|
locale: r = X()
|
|
4263
4260
|
} = t, n = oe(t, [
|
|
4264
4261
|
"locale"
|
|
4265
4262
|
]);
|
|
4266
|
-
return ns(
|
|
4267
|
-
}, as =
|
|
4263
|
+
return ns(ct({ locale: r }, n));
|
|
4264
|
+
}, as = Le(
|
|
4268
4265
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4269
4266
|
(e, t = X()) => new Ci(e, t, te().formats, {
|
|
4270
4267
|
ignoreTag: te().ignoreTag
|
|
@@ -4282,7 +4279,7 @@ const ce = (e, t) => {
|
|
|
4282
4279
|
throw new Error(
|
|
4283
4280
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4284
4281
|
);
|
|
4285
|
-
let l =
|
|
4282
|
+
let l = Sr(e, h);
|
|
4286
4283
|
if (!l)
|
|
4287
4284
|
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4288
4285
|
else if (typeof l != "string")
|
|
@@ -4291,27 +4288,27 @@ const ce = (e, t) => {
|
|
|
4291
4288
|
), l;
|
|
4292
4289
|
if (!a)
|
|
4293
4290
|
return l;
|
|
4294
|
-
let
|
|
4291
|
+
let m = l;
|
|
4295
4292
|
try {
|
|
4296
|
-
|
|
4293
|
+
m = as(l, h).format(a);
|
|
4297
4294
|
} catch (c) {
|
|
4298
4295
|
c instanceof Error && console.warn(
|
|
4299
4296
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4300
4297
|
c.message
|
|
4301
4298
|
);
|
|
4302
4299
|
}
|
|
4303
|
-
return
|
|
4304
|
-
}, hs = (e, t) => os(t).format(e), ls = (e, t) => ss(t).format(e), cs = (e, t) => is(t).format(e), fs = (e, t = X()) =>
|
|
4300
|
+
return m;
|
|
4301
|
+
}, hs = (e, t) => os(t).format(e), ls = (e, t) => ss(t).format(e), cs = (e, t) => is(t).format(e), fs = (e, t = X()) => Sr(e, t), ms = se([be, de], () => us);
|
|
4305
4302
|
se([be], () => hs);
|
|
4306
4303
|
se([be], () => ls);
|
|
4307
4304
|
se([be], () => cs);
|
|
4308
4305
|
se([be, de], () => fs);
|
|
4309
4306
|
window.emWidgets = { topic: Tn };
|
|
4310
4307
|
const ds = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4311
|
-
function
|
|
4312
|
-
|
|
4308
|
+
function kt(e, t) {
|
|
4309
|
+
Tr(e, t);
|
|
4313
4310
|
}
|
|
4314
|
-
const
|
|
4311
|
+
const Vt = {
|
|
4315
4312
|
en: {
|
|
4316
4313
|
lobbyName: "Lobby",
|
|
4317
4314
|
myGamesName: "My games"
|
|
@@ -4420,7 +4417,7 @@ if (typeof window != "undefined") {
|
|
|
4420
4417
|
}
|
|
4421
4418
|
};
|
|
4422
4419
|
};
|
|
4423
|
-
customElements.define = e(customElements.define), import("./CasinoSliderNd-
|
|
4420
|
+
customElements.define = e(customElements.define), import("./CasinoSliderNd-BhYWksZS.js").then(({ default: t }) => {
|
|
4424
4421
|
!customElements.get("casino-slider-nd") && customElements.define("casino-slider-nd", t.element);
|
|
4425
4422
|
});
|
|
4426
4423
|
}
|
|
@@ -4428,7 +4425,7 @@ function ys(e) {
|
|
|
4428
4425
|
zr(e, "svelte-4b6cjp", ".svelte-4b6cjp{font-family:inherit}.CasinoCategoriesLoading.svelte-4b6cjp{height:52px}p.svelte-4b6cjp{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-4b6cjp{background:transparent;border-radius:var(--emw--border-radius-medium, 20px)}");
|
|
4429
4426
|
}
|
|
4430
4427
|
function vs(e) {
|
|
4431
|
-
let t, r
|
|
4428
|
+
let t, r;
|
|
4432
4429
|
return {
|
|
4433
4430
|
c() {
|
|
4434
4431
|
t = V("div"), r = V("casino-slider-nd"), v(
|
|
@@ -4446,7 +4443,7 @@ function vs(e) {
|
|
|
4446
4443
|
"endpoint",
|
|
4447
4444
|
/*endpoint*/
|
|
4448
4445
|
e[1]
|
|
4449
|
-
), v(r, "identity",
|
|
4446
|
+
), v(r, "identity", ut), v(
|
|
4450
4447
|
r,
|
|
4451
4448
|
"favoritesnumber",
|
|
4452
4449
|
/*numberOfFavoredGames*/
|
|
@@ -4503,101 +4500,98 @@ function vs(e) {
|
|
|
4503
4500
|
e[4]
|
|
4504
4501
|
), v(r, "class", "svelte-4b6cjp"), ie(t, "class", "CasinoCategoriesContainer svelte-4b6cjp");
|
|
4505
4502
|
},
|
|
4506
|
-
m(
|
|
4507
|
-
fe(
|
|
4508
|
-
/*sendSliderData*/
|
|
4509
|
-
e[17].call(null, r)
|
|
4510
|
-
), n = !0);
|
|
4503
|
+
m(n, i) {
|
|
4504
|
+
fe(n, t, i), Zt(t, r);
|
|
4511
4505
|
},
|
|
4512
|
-
p(
|
|
4513
|
-
|
|
4506
|
+
p(n, i) {
|
|
4507
|
+
i[0] & /*lang*/
|
|
4514
4508
|
8 && v(
|
|
4515
4509
|
r,
|
|
4516
4510
|
"lang",
|
|
4517
4511
|
/*lang*/
|
|
4518
|
-
|
|
4519
|
-
),
|
|
4512
|
+
n[3]
|
|
4513
|
+
), i[0] & /*datasource*/
|
|
4520
4514
|
4 && v(
|
|
4521
4515
|
r,
|
|
4522
4516
|
"datasource",
|
|
4523
4517
|
/*datasource*/
|
|
4524
|
-
|
|
4525
|
-
),
|
|
4518
|
+
n[2]
|
|
4519
|
+
), i[0] & /*endpoint*/
|
|
4526
4520
|
2 && v(
|
|
4527
4521
|
r,
|
|
4528
4522
|
"endpoint",
|
|
4529
4523
|
/*endpoint*/
|
|
4530
|
-
|
|
4531
|
-
),
|
|
4524
|
+
n[1]
|
|
4525
|
+
), i[0] & /*numberOfFavoredGames*/
|
|
4532
4526
|
65536 && v(
|
|
4533
4527
|
r,
|
|
4534
4528
|
"favoritesnumber",
|
|
4535
4529
|
/*numberOfFavoredGames*/
|
|
4536
|
-
|
|
4537
|
-
),
|
|
4530
|
+
n[16]
|
|
4531
|
+
), i[0] & /*showsubgroups*/
|
|
4538
4532
|
512 && v(
|
|
4539
4533
|
r,
|
|
4540
4534
|
"showsubgroups",
|
|
4541
4535
|
/*showsubgroups*/
|
|
4542
|
-
|
|
4543
|
-
),
|
|
4536
|
+
n[9]
|
|
4537
|
+
), i[0] & /*clientstyling*/
|
|
4544
4538
|
32 && v(
|
|
4545
4539
|
r,
|
|
4546
4540
|
"clientstyling",
|
|
4547
4541
|
/*clientstyling*/
|
|
4548
|
-
|
|
4549
|
-
),
|
|
4542
|
+
n[5]
|
|
4543
|
+
), i[0] & /*clientstylingurl*/
|
|
4550
4544
|
64 && v(
|
|
4551
4545
|
r,
|
|
4552
4546
|
"clientstylingurl",
|
|
4553
4547
|
/*clientstylingurl*/
|
|
4554
|
-
|
|
4555
|
-
),
|
|
4548
|
+
n[6]
|
|
4549
|
+
), i[0] & /*activecategory*/
|
|
4556
4550
|
1 && v(
|
|
4557
4551
|
r,
|
|
4558
4552
|
"activeindex",
|
|
4559
4553
|
/*activecategory*/
|
|
4560
|
-
|
|
4561
|
-
),
|
|
4554
|
+
n[0]
|
|
4555
|
+
), i[0] & /*actionevent*/
|
|
4562
4556
|
128 && v(
|
|
4563
4557
|
r,
|
|
4564
4558
|
"actionevent",
|
|
4565
4559
|
/*actionevent*/
|
|
4566
|
-
|
|
4567
|
-
),
|
|
4560
|
+
n[7]
|
|
4561
|
+
), i[0] & /*location*/
|
|
4568
4562
|
256 && v(
|
|
4569
4563
|
r,
|
|
4570
4564
|
"location",
|
|
4571
4565
|
/*location*/
|
|
4572
|
-
|
|
4573
|
-
),
|
|
4566
|
+
n[8]
|
|
4567
|
+
), i[0] & /*categoriesicon*/
|
|
4574
4568
|
1024 && v(
|
|
4575
4569
|
r,
|
|
4576
4570
|
"categoriesicon",
|
|
4577
4571
|
/*categoriesicon*/
|
|
4578
|
-
|
|
4579
|
-
),
|
|
4572
|
+
n[10]
|
|
4573
|
+
), i[0] & /*lobbyiconimage*/
|
|
4580
4574
|
2048 && v(
|
|
4581
4575
|
r,
|
|
4582
4576
|
"lobbyiconimage",
|
|
4583
4577
|
/*lobbyiconimage*/
|
|
4584
|
-
|
|
4585
|
-
),
|
|
4578
|
+
n[11]
|
|
4579
|
+
), i[0] & /*mygamesiconimage*/
|
|
4586
4580
|
4096 && v(
|
|
4587
4581
|
r,
|
|
4588
4582
|
"mygamesiconimage",
|
|
4589
4583
|
/*mygamesiconimage*/
|
|
4590
|
-
|
|
4591
|
-
),
|
|
4584
|
+
n[12]
|
|
4585
|
+
), i[0] & /*mbsource*/
|
|
4592
4586
|
16 && v(
|
|
4593
4587
|
r,
|
|
4594
4588
|
"mbsource",
|
|
4595
4589
|
/*mbsource*/
|
|
4596
|
-
|
|
4590
|
+
n[4]
|
|
4597
4591
|
);
|
|
4598
4592
|
},
|
|
4599
|
-
d(
|
|
4600
|
-
|
|
4593
|
+
d(n) {
|
|
4594
|
+
n && ne(t);
|
|
4601
4595
|
}
|
|
4602
4596
|
};
|
|
4603
4597
|
}
|
|
@@ -4610,7 +4604,7 @@ function _s(e) {
|
|
|
4610
4604
|
m(r, n) {
|
|
4611
4605
|
fe(r, t, n);
|
|
4612
4606
|
},
|
|
4613
|
-
p:
|
|
4607
|
+
p: I,
|
|
4614
4608
|
d(r) {
|
|
4615
4609
|
r && ne(t);
|
|
4616
4610
|
}
|
|
@@ -4625,7 +4619,7 @@ function Es(e) {
|
|
|
4625
4619
|
m(r, n) {
|
|
4626
4620
|
fe(r, t, n);
|
|
4627
4621
|
},
|
|
4628
|
-
p:
|
|
4622
|
+
p: I,
|
|
4629
4623
|
d(r) {
|
|
4630
4624
|
r && ne(t);
|
|
4631
4625
|
}
|
|
@@ -4648,62 +4642,62 @@ function xs(e) {
|
|
|
4648
4642
|
t = V("div"), i.c(), ie(t, "class", "svelte-4b6cjp");
|
|
4649
4643
|
},
|
|
4650
4644
|
m(s, o) {
|
|
4651
|
-
fe(s, t, o), i.m(t, null), e[
|
|
4645
|
+
fe(s, t, o), i.m(t, null), e[26](t);
|
|
4652
4646
|
},
|
|
4653
4647
|
p(s, o) {
|
|
4654
4648
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4655
4649
|
},
|
|
4656
|
-
i:
|
|
4657
|
-
o:
|
|
4650
|
+
i: I,
|
|
4651
|
+
o: I,
|
|
4658
4652
|
d(s) {
|
|
4659
|
-
s && ne(t), i.d(), e[
|
|
4653
|
+
s && ne(t), i.d(), e[26](null);
|
|
4660
4654
|
}
|
|
4661
4655
|
};
|
|
4662
4656
|
}
|
|
4663
|
-
let
|
|
4657
|
+
let ut = "CasinoSliderData", Ss = !1, ws = !1;
|
|
4664
4658
|
function Ts(e, t, r) {
|
|
4665
4659
|
let n;
|
|
4666
|
-
|
|
4667
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites:
|
|
4668
|
-
const
|
|
4660
|
+
Wr(e, ms, (f) => r(32, n = f));
|
|
4661
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { mbsource: c } = t, { clientstyling: d = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: b = "" } = t, { actionevent: w = "" } = t, { sessioncheck: C = "" } = t, { location: P = "secondaryMenu" } = t, { showsubgroups: T = "false" } = t, { filteredcategories: O = "" } = t, { translationurl: H = "" } = t, { categoriesicon: R = "" } = t, { lobbyiconimage: _ = "" } = t, { mygamesiconimage: N = "" } = t, L, F, j = !0, W, z = [], k = !1, Nr = window.navigator.userAgent, U, ft, mt = !1, Ie = !1;
|
|
4662
|
+
const Lr = () => {
|
|
4669
4663
|
fetch(H).then((B) => B.json()).then((B) => {
|
|
4670
4664
|
Object.keys(B).forEach((pe) => {
|
|
4671
|
-
|
|
4665
|
+
kt(pe, B[pe]);
|
|
4672
4666
|
});
|
|
4673
4667
|
}).catch((B) => {
|
|
4674
4668
|
console.log(B);
|
|
4675
4669
|
});
|
|
4676
4670
|
};
|
|
4677
|
-
Object.keys(
|
|
4678
|
-
|
|
4671
|
+
Object.keys(Vt).forEach((f) => {
|
|
4672
|
+
kt(f, Vt[f]);
|
|
4679
4673
|
});
|
|
4680
|
-
const
|
|
4681
|
-
|
|
4674
|
+
const Ir = () => {
|
|
4675
|
+
mt == !1 && (m == "true" || u == "true" || l == "true") && z.splice(1, 0, {
|
|
4682
4676
|
// @ts-ignore
|
|
4683
4677
|
id: "MYGAMES",
|
|
4684
|
-
name:
|
|
4678
|
+
name: L,
|
|
4685
4679
|
href: "",
|
|
4686
4680
|
games: []
|
|
4687
|
-
}), en(),
|
|
4688
|
-
},
|
|
4689
|
-
if (
|
|
4690
|
-
let
|
|
4691
|
-
|
|
4681
|
+
}), en(), mt = !0, r(25, Ie = !0), dt();
|
|
4682
|
+
}, Cr = () => (i || (W = "Endpoint is missing! Please provide a valid endpointURL.", r(15, k = !0), r(13, j = !1), console.error(W)), s || (W = "Datasource is missing! Please provide a valid datasource.", r(15, k = !0), r(13, j = !1), console.error(W)), (!o || o.length < 2) && (W = "Language is missing! Please provide a valid language (alpha2code)", r(15, k = !0), r(13, j = !1), console.error(W)), k), Mr = () => {
|
|
4683
|
+
if (L = n("myGamesName"), F = n("lobbyName"), !Cr()) {
|
|
4684
|
+
let f = new URL(`${i}/v2/casino/groups/${s}`);
|
|
4685
|
+
f.searchParams.append("language", o), f.searchParams.append("platform", ds(Nr)), f.searchParams.append("fields", "id,name,games(href)"), fetch(f).then((B) => B.json()).then(
|
|
4692
4686
|
(B) => {
|
|
4693
|
-
let pe =
|
|
4694
|
-
let
|
|
4695
|
-
if (
|
|
4696
|
-
for (let
|
|
4697
|
-
|
|
4698
|
-
return
|
|
4687
|
+
let pe = O.split(","), Ur = B.items.filter((pt) => {
|
|
4688
|
+
let Ce = !1;
|
|
4689
|
+
if (pt.games.total > 0 && (Ce = !0, O))
|
|
4690
|
+
for (let Dr of pe)
|
|
4691
|
+
pt.flags == Dr && (Ce = !1);
|
|
4692
|
+
return Ce;
|
|
4699
4693
|
});
|
|
4700
|
-
z = [], z = z.concat(
|
|
4694
|
+
z = [], z = z.concat(Ur), z.unshift({
|
|
4701
4695
|
// @ts-ignore
|
|
4702
4696
|
id: "LOBBY",
|
|
4703
4697
|
name: F,
|
|
4704
4698
|
href: "",
|
|
4705
4699
|
games: []
|
|
4706
|
-
}), r(13, j = !1)
|
|
4700
|
+
}), r(13, j = !1);
|
|
4707
4701
|
},
|
|
4708
4702
|
(B) => {
|
|
4709
4703
|
r(15, k = !0), console.error("There was an error while fetching the categories", B);
|
|
@@ -4712,38 +4706,41 @@ function Ts(e, t, r) {
|
|
|
4712
4706
|
r(15, k = !0), console.error("There was an error while fetching the categories", B);
|
|
4713
4707
|
});
|
|
4714
4708
|
}
|
|
4715
|
-
},
|
|
4716
|
-
let
|
|
4717
|
-
r(0, b =
|
|
4718
|
-
},
|
|
4709
|
+
}, Rr = () => {
|
|
4710
|
+
let f = b.split("$");
|
|
4711
|
+
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
|
4712
|
+
}, dt = () => {
|
|
4719
4713
|
window.postMessage(
|
|
4720
4714
|
{
|
|
4721
4715
|
type: "SliderData",
|
|
4722
|
-
identity:
|
|
4716
|
+
identity: ut,
|
|
4723
4717
|
data: z
|
|
4724
4718
|
},
|
|
4725
4719
|
window.location.href
|
|
4726
4720
|
);
|
|
4721
|
+
}, bt = (f) => {
|
|
4722
|
+
f.data && f.data.type == "SliderMounted" && f.data.identity == ut && dt();
|
|
4727
4723
|
};
|
|
4728
|
-
Kr(() => () => {
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4724
|
+
Kr(() => (window.addEventListener("message", bt), () => {
|
|
4725
|
+
window.removeEventListener("message", bt);
|
|
4726
|
+
}));
|
|
4727
|
+
function Gr(f) {
|
|
4728
|
+
Ve[f ? "unshift" : "push"](() => {
|
|
4729
|
+
U = f, r(14, U);
|
|
4733
4730
|
});
|
|
4734
4731
|
}
|
|
4735
|
-
return e.$$set = (
|
|
4736
|
-
"endpoint" in
|
|
4732
|
+
return e.$$set = (f) => {
|
|
4733
|
+
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, m = f.favorites), "mbsource" in f && r(4, c = f.mbsource), "clientstyling" in f && r(5, d = f.clientstyling), "clientstylingurl" in f && r(6, p = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(7, w = f.actionevent), "sessioncheck" in f && r(22, C = f.sessioncheck), "location" in f && r(8, P = f.location), "showsubgroups" in f && r(9, T = f.showsubgroups), "filteredcategories" in f && r(23, O = f.filteredcategories), "translationurl" in f && r(24, H = f.translationurl), "categoriesicon" in f && r(10, R = f.categoriesicon), "lobbyiconimage" in f && r(11, _ = f.lobbyiconimage), "mygamesiconimage" in f && r(12, N = f.mygamesiconimage);
|
|
4737
4734
|
}, e.$$.update = () => {
|
|
4738
4735
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
4739
|
-
14 && i && s && o &&
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4736
|
+
14 && i && s && o && Mr(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
4737
|
+
3940354 && i && h && (u || l || m) && !j && Ir(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
4738
|
+
33824769 && !j && b && (!h || Ie) && Rr(), e.$$.dirty[0] & /*translationurl*/
|
|
4739
|
+
16777216 && H && Lr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4743
4740
|
16416 && d && U && bs(U, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4744
4741
|
16448 && p && U && ps(U, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4745
4742
|
16400 && c && U && gs(U, `${c}.Style`);
|
|
4746
|
-
}, r(16,
|
|
4743
|
+
}, r(16, ft = 0), [
|
|
4747
4744
|
b,
|
|
4748
4745
|
i,
|
|
4749
4746
|
s,
|
|
@@ -4752,55 +4749,54 @@ function Ts(e, t, r) {
|
|
|
4752
4749
|
d,
|
|
4753
4750
|
p,
|
|
4754
4751
|
w,
|
|
4755
|
-
|
|
4752
|
+
P,
|
|
4756
4753
|
T,
|
|
4757
4754
|
R,
|
|
4758
4755
|
_,
|
|
4759
|
-
|
|
4756
|
+
N,
|
|
4760
4757
|
j,
|
|
4761
4758
|
U,
|
|
4762
4759
|
k,
|
|
4763
|
-
|
|
4764
|
-
mt,
|
|
4760
|
+
ft,
|
|
4765
4761
|
a,
|
|
4766
4762
|
h,
|
|
4767
4763
|
u,
|
|
4768
4764
|
l,
|
|
4769
|
-
|
|
4765
|
+
m,
|
|
4770
4766
|
C,
|
|
4771
|
-
|
|
4767
|
+
O,
|
|
4772
4768
|
H,
|
|
4773
|
-
|
|
4774
|
-
|
|
4769
|
+
Ie,
|
|
4770
|
+
Gr
|
|
4775
4771
|
];
|
|
4776
4772
|
}
|
|
4777
|
-
class
|
|
4773
|
+
class Or extends ln {
|
|
4778
4774
|
constructor(t) {
|
|
4779
4775
|
super(), un(
|
|
4780
4776
|
this,
|
|
4781
4777
|
t,
|
|
4782
4778
|
Ts,
|
|
4783
4779
|
xs,
|
|
4784
|
-
|
|
4780
|
+
Wt,
|
|
4785
4781
|
{
|
|
4786
4782
|
endpoint: 1,
|
|
4787
4783
|
datasource: 2,
|
|
4788
4784
|
lang: 3,
|
|
4789
|
-
userid:
|
|
4790
|
-
session:
|
|
4791
|
-
mostplayed:
|
|
4792
|
-
lastplayed:
|
|
4793
|
-
favorites:
|
|
4785
|
+
userid: 17,
|
|
4786
|
+
session: 18,
|
|
4787
|
+
mostplayed: 19,
|
|
4788
|
+
lastplayed: 20,
|
|
4789
|
+
favorites: 21,
|
|
4794
4790
|
mbsource: 4,
|
|
4795
4791
|
clientstyling: 5,
|
|
4796
4792
|
clientstylingurl: 6,
|
|
4797
4793
|
activecategory: 0,
|
|
4798
4794
|
actionevent: 7,
|
|
4799
|
-
sessioncheck:
|
|
4795
|
+
sessioncheck: 22,
|
|
4800
4796
|
location: 8,
|
|
4801
4797
|
showsubgroups: 9,
|
|
4802
|
-
filteredcategories:
|
|
4803
|
-
translationurl:
|
|
4798
|
+
filteredcategories: 23,
|
|
4799
|
+
translationurl: 24,
|
|
4804
4800
|
categoriesicon: 10,
|
|
4805
4801
|
lobbyiconimage: 11,
|
|
4806
4802
|
mygamesiconimage: 12
|
|
@@ -4828,31 +4824,31 @@ class Pr extends ln {
|
|
|
4828
4824
|
this.$$set({ lang: t }), x();
|
|
4829
4825
|
}
|
|
4830
4826
|
get userid() {
|
|
4831
|
-
return this.$$.ctx[
|
|
4827
|
+
return this.$$.ctx[17];
|
|
4832
4828
|
}
|
|
4833
4829
|
set userid(t) {
|
|
4834
4830
|
this.$$set({ userid: t }), x();
|
|
4835
4831
|
}
|
|
4836
4832
|
get session() {
|
|
4837
|
-
return this.$$.ctx[
|
|
4833
|
+
return this.$$.ctx[18];
|
|
4838
4834
|
}
|
|
4839
4835
|
set session(t) {
|
|
4840
4836
|
this.$$set({ session: t }), x();
|
|
4841
4837
|
}
|
|
4842
4838
|
get mostplayed() {
|
|
4843
|
-
return this.$$.ctx[
|
|
4839
|
+
return this.$$.ctx[19];
|
|
4844
4840
|
}
|
|
4845
4841
|
set mostplayed(t) {
|
|
4846
4842
|
this.$$set({ mostplayed: t }), x();
|
|
4847
4843
|
}
|
|
4848
4844
|
get lastplayed() {
|
|
4849
|
-
return this.$$.ctx[
|
|
4845
|
+
return this.$$.ctx[20];
|
|
4850
4846
|
}
|
|
4851
4847
|
set lastplayed(t) {
|
|
4852
4848
|
this.$$set({ lastplayed: t }), x();
|
|
4853
4849
|
}
|
|
4854
4850
|
get favorites() {
|
|
4855
|
-
return this.$$.ctx[
|
|
4851
|
+
return this.$$.ctx[21];
|
|
4856
4852
|
}
|
|
4857
4853
|
set favorites(t) {
|
|
4858
4854
|
this.$$set({ favorites: t }), x();
|
|
@@ -4888,7 +4884,7 @@ class Pr extends ln {
|
|
|
4888
4884
|
this.$$set({ actionevent: t }), x();
|
|
4889
4885
|
}
|
|
4890
4886
|
get sessioncheck() {
|
|
4891
|
-
return this.$$.ctx[
|
|
4887
|
+
return this.$$.ctx[22];
|
|
4892
4888
|
}
|
|
4893
4889
|
set sessioncheck(t) {
|
|
4894
4890
|
this.$$set({ sessioncheck: t }), x();
|
|
@@ -4906,13 +4902,13 @@ class Pr extends ln {
|
|
|
4906
4902
|
this.$$set({ showsubgroups: t }), x();
|
|
4907
4903
|
}
|
|
4908
4904
|
get filteredcategories() {
|
|
4909
|
-
return this.$$.ctx[
|
|
4905
|
+
return this.$$.ctx[23];
|
|
4910
4906
|
}
|
|
4911
4907
|
set filteredcategories(t) {
|
|
4912
4908
|
this.$$set({ filteredcategories: t }), x();
|
|
4913
4909
|
}
|
|
4914
4910
|
get translationurl() {
|
|
4915
|
-
return this.$$.ctx[
|
|
4911
|
+
return this.$$.ctx[24];
|
|
4916
4912
|
}
|
|
4917
4913
|
set translationurl(t) {
|
|
4918
4914
|
this.$$set({ translationurl: t }), x();
|
|
@@ -4936,10 +4932,10 @@ class Pr extends ln {
|
|
|
4936
4932
|
this.$$set({ mygamesiconimage: t }), x();
|
|
4937
4933
|
}
|
|
4938
4934
|
}
|
|
4939
|
-
hn(
|
|
4935
|
+
hn(Or, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
|
4940
4936
|
const Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4941
4937
|
__proto__: null,
|
|
4942
|
-
default:
|
|
4938
|
+
default: Or
|
|
4943
4939
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4944
4940
|
export {
|
|
4945
4941
|
be as $,
|
|
@@ -4951,28 +4947,28 @@ export {
|
|
|
4951
4947
|
Gs as F,
|
|
4952
4948
|
ln as S,
|
|
4953
4949
|
de as a,
|
|
4954
|
-
|
|
4950
|
+
Tr as b,
|
|
4955
4951
|
zr as c,
|
|
4956
4952
|
ne as d,
|
|
4957
4953
|
ie as e,
|
|
4958
4954
|
x as f,
|
|
4959
4955
|
fe as g,
|
|
4960
|
-
|
|
4956
|
+
Zt as h,
|
|
4961
4957
|
un as i,
|
|
4962
4958
|
V as j,
|
|
4963
4959
|
Os as k,
|
|
4964
4960
|
Ls as l,
|
|
4965
4961
|
ds as m,
|
|
4966
|
-
|
|
4962
|
+
I as n,
|
|
4967
4963
|
Kr as o,
|
|
4968
4964
|
Cs as p,
|
|
4969
4965
|
Ns as q,
|
|
4970
4966
|
re as r,
|
|
4971
|
-
|
|
4972
|
-
|
|
4967
|
+
Wt as s,
|
|
4968
|
+
Ve as t,
|
|
4973
4969
|
Rs as u,
|
|
4974
4970
|
Is as v,
|
|
4975
|
-
|
|
4971
|
+
Qt as w,
|
|
4976
4972
|
Bs as x,
|
|
4977
4973
|
Ms as y,
|
|
4978
4974
|
Ps as z
|