@everymatrix/casino-categories-slider 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategoriesSlider-DsCJHycs.js → CasinoCategoriesSlider-BqLThLVf.js} +614 -559
- package/components/{CasinoCategoriesSlider-D-Hw4YqW.js → CasinoCategoriesSlider-BqvBYmnN.js} +630 -575
- package/components/CasinoCategoriesSlider-sdcky7us.cjs +18 -0
- package/components/{CasinoSlider-N_Ph_cLc.cjs → CasinoSlider-BBYyrb_2.cjs} +1 -1
- package/components/{CasinoSlider-DPIZ5CnV.js → CasinoSlider-DUHx05Lk.js} +32 -32
- package/components/{CasinoSlider-EFId2L7-.js → CasinoSlider-F9zfPd1C.js} +34 -34
- package/es2015/casino-categories-slider.cjs +1 -1
- package/es2015/casino-categories-slider.js +1 -1
- package/esnext/casino-categories-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSlider-B-t2GyDd.cjs +0 -5
package/components/{CasinoCategoriesSlider-DsCJHycs.js → CasinoCategoriesSlider-BqLThLVf.js}
RENAMED
@@ -1,28 +1,28 @@
|
|
1
1
|
function P() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Ut(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function dt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function re(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(Ut);
|
11
11
|
}
|
12
12
|
function Te(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Dt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
18
|
let pe;
|
19
|
-
function
|
19
|
+
function bs(e, t) {
|
20
20
|
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Ir(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Ft(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -31,24 +31,25 @@ function Rt(e, ...t) {
|
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
35
|
-
e.$$.on_destroy.push(
|
34
|
+
function Cr(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(Ft(t, r));
|
36
36
|
}
|
37
|
-
function
|
37
|
+
function Mr(e) {
|
38
38
|
return e && Te(e.destroy) ? e.destroy : P;
|
39
39
|
}
|
40
|
-
function
|
40
|
+
function $t(e, t) {
|
41
41
|
e.appendChild(t);
|
42
42
|
}
|
43
|
-
function
|
44
|
-
const n =
|
43
|
+
function Rr(e, t, r) {
|
44
|
+
const n = Gr(e);
|
45
45
|
if (!n.getElementById(t)) {
|
46
46
|
const i = k("style");
|
47
|
-
i.id = t, i.textContent = r,
|
47
|
+
i.id = t, i.textContent = r, Ur(n, i);
|
48
48
|
}
|
49
49
|
}
|
50
|
-
function
|
51
|
-
if (!e)
|
50
|
+
function Gr(e) {
|
51
|
+
if (!e)
|
52
|
+
return document;
|
52
53
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
53
54
|
return t && /** @type {ShadowRoot} */
|
54
55
|
t.host ? (
|
@@ -56,8 +57,8 @@ function Lr(e) {
|
|
56
57
|
t
|
57
58
|
) : e.ownerDocument;
|
58
59
|
}
|
59
|
-
function
|
60
|
-
return
|
60
|
+
function Ur(e, t) {
|
61
|
+
return $t(
|
61
62
|
/** @type {Document} */
|
62
63
|
e.head || e,
|
63
64
|
t
|
@@ -69,23 +70,23 @@ function ce(e, t, r) {
|
|
69
70
|
function ne(e) {
|
70
71
|
e.parentNode && e.parentNode.removeChild(e);
|
71
72
|
}
|
72
|
-
function
|
73
|
+
function ps(e, t) {
|
73
74
|
for (let r = 0; r < e.length; r += 1)
|
74
75
|
e[r] && e[r].d(t);
|
75
76
|
}
|
76
77
|
function k(e) {
|
77
78
|
return document.createElement(e);
|
78
79
|
}
|
79
|
-
function
|
80
|
+
function jt(e) {
|
80
81
|
return document.createTextNode(e);
|
81
82
|
}
|
82
|
-
function
|
83
|
-
return
|
83
|
+
function gs() {
|
84
|
+
return jt(" ");
|
84
85
|
}
|
85
|
-
function
|
86
|
-
return
|
86
|
+
function ys() {
|
87
|
+
return jt("");
|
87
88
|
}
|
88
|
-
function
|
89
|
+
function vs(e, t, r, n) {
|
89
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
90
91
|
}
|
91
92
|
function fe(e, t, r) {
|
@@ -95,14 +96,14 @@ function _(e, t, r) {
|
|
95
96
|
const n = t.toLowerCase();
|
96
97
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : fe(e, t, r);
|
97
98
|
}
|
98
|
-
function
|
99
|
+
function Dr(e) {
|
99
100
|
return Array.from(e.childNodes);
|
100
101
|
}
|
101
|
-
function
|
102
|
+
function _s(e, t) {
|
102
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
103
104
|
t);
|
104
105
|
}
|
105
|
-
function
|
106
|
+
function Fr(e) {
|
106
107
|
const t = {};
|
107
108
|
return e.childNodes.forEach(
|
108
109
|
/** @param {Element} node */
|
@@ -115,24 +116,25 @@ let ue;
|
|
115
116
|
function ae(e) {
|
116
117
|
ue = e;
|
117
118
|
}
|
118
|
-
function
|
119
|
-
if (!ue)
|
119
|
+
function $r() {
|
120
|
+
if (!ue)
|
121
|
+
throw new Error("Function called outside component initialization");
|
120
122
|
return ue;
|
121
123
|
}
|
122
|
-
function
|
123
|
-
|
124
|
+
function jr(e) {
|
125
|
+
$r().$$.on_mount.push(e);
|
124
126
|
}
|
125
|
-
const Q = [],
|
127
|
+
const Q = [], je = [];
|
126
128
|
let Y = [];
|
127
|
-
const
|
128
|
-
let
|
129
|
-
function
|
130
|
-
|
129
|
+
const bt = [], kt = /* @__PURE__ */ Promise.resolve();
|
130
|
+
let ke = !1;
|
131
|
+
function Vt() {
|
132
|
+
ke || (ke = !0, kt.then(S));
|
131
133
|
}
|
132
|
-
function
|
133
|
-
return
|
134
|
+
function kr() {
|
135
|
+
return Vt(), kt;
|
134
136
|
}
|
135
|
-
function
|
137
|
+
function Ve(e) {
|
136
138
|
Y.push(e);
|
137
139
|
}
|
138
140
|
const Ce = /* @__PURE__ */ new Set();
|
@@ -145,47 +147,49 @@ function S() {
|
|
145
147
|
try {
|
146
148
|
for (; z < Q.length; ) {
|
147
149
|
const t = Q[z];
|
148
|
-
z++, ae(t),
|
150
|
+
z++, ae(t), Vr(t.$$);
|
149
151
|
}
|
150
152
|
} catch (t) {
|
151
153
|
throw Q.length = 0, z = 0, t;
|
152
154
|
}
|
153
|
-
for (ae(null), Q.length = 0, z = 0;
|
155
|
+
for (ae(null), Q.length = 0, z = 0; je.length; )
|
156
|
+
je.pop()();
|
154
157
|
for (let t = 0; t < Y.length; t += 1) {
|
155
158
|
const r = Y[t];
|
156
159
|
Ce.has(r) || (Ce.add(r), r());
|
157
160
|
}
|
158
161
|
Y.length = 0;
|
159
162
|
} while (Q.length);
|
160
|
-
for (;
|
161
|
-
|
162
|
-
|
163
|
+
for (; bt.length; )
|
164
|
+
bt.pop()();
|
165
|
+
ke = !1, Ce.clear(), ae(e);
|
163
166
|
}
|
164
|
-
function
|
167
|
+
function Vr(e) {
|
165
168
|
if (e.fragment !== null) {
|
166
169
|
e.update(), re(e.before_update);
|
167
170
|
const t = e.dirty;
|
168
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
171
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
169
172
|
}
|
170
173
|
}
|
171
|
-
function
|
174
|
+
function Xr(e) {
|
172
175
|
const t = [], r = [];
|
173
176
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
174
177
|
}
|
175
|
-
const
|
176
|
-
function
|
177
|
-
e && e.i && (
|
178
|
+
const Wr = /* @__PURE__ */ new Set();
|
179
|
+
function Xt(e, t) {
|
180
|
+
e && e.i && (Wr.delete(e), e.i(t));
|
178
181
|
}
|
179
|
-
function
|
182
|
+
function Es(e) {
|
180
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
181
184
|
}
|
182
|
-
function
|
185
|
+
function xs(e, t) {
|
183
186
|
e.d(1), t.delete(e.key);
|
184
187
|
}
|
185
|
-
function
|
188
|
+
function Ss(e, t, r, n, i, s, o, a, h, u, l, m) {
|
186
189
|
let c = e.length, d = s.length, b = c;
|
187
190
|
const y = {};
|
188
|
-
for (; b--; )
|
191
|
+
for (; b--; )
|
192
|
+
y[e[b].key] = b;
|
189
193
|
const T = [], C = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), w = [];
|
190
194
|
for (b = d; b--; ) {
|
191
195
|
const E = m(i, s, b), A = r(E);
|
@@ -194,7 +198,7 @@ function vs(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
194
198
|
}
|
195
199
|
const O = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
196
200
|
function M(E) {
|
197
|
-
|
201
|
+
Xt(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, d--;
|
198
202
|
}
|
199
203
|
for (; c && d; ) {
|
200
204
|
const E = T[d - 1], A = e[c - 1], I = E.key, F = A.key;
|
@@ -204,24 +208,25 @@ function vs(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
204
208
|
const E = e[c];
|
205
209
|
C.has(E.key) || h(E, o);
|
206
210
|
}
|
207
|
-
for (; d; )
|
211
|
+
for (; d; )
|
212
|
+
M(T[d - 1]);
|
208
213
|
return re(w), T;
|
209
214
|
}
|
210
|
-
function
|
215
|
+
function zr(e, t, r) {
|
211
216
|
const { fragment: n, after_update: i } = e.$$;
|
212
|
-
n && n.m(t, r),
|
213
|
-
const s = e.$$.on_mount.map(
|
217
|
+
n && n.m(t, r), Ve(() => {
|
218
|
+
const s = e.$$.on_mount.map(Ut).filter(Te);
|
214
219
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
215
|
-
}), i.forEach(
|
220
|
+
}), i.forEach(Ve);
|
216
221
|
}
|
217
|
-
function
|
222
|
+
function Zr(e, t) {
|
218
223
|
const r = e.$$;
|
219
|
-
r.fragment !== null && (
|
224
|
+
r.fragment !== null && (Xr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
220
225
|
}
|
221
|
-
function
|
222
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
226
|
+
function Qr(e, t) {
|
227
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
223
228
|
}
|
224
|
-
function
|
229
|
+
function Yr(e, t, r, n, i, s, o = null, a = [-1]) {
|
225
230
|
const h = ue;
|
226
231
|
ae(e);
|
227
232
|
const u = e.$$ = {
|
@@ -231,7 +236,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
231
236
|
props: s,
|
232
237
|
update: P,
|
233
238
|
not_equal: i,
|
234
|
-
bound:
|
239
|
+
bound: dt(),
|
235
240
|
// lifecycle
|
236
241
|
on_mount: [],
|
237
242
|
on_destroy: [],
|
@@ -240,7 +245,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
240
245
|
after_update: [],
|
241
246
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
242
247
|
// everything else
|
243
|
-
callbacks:
|
248
|
+
callbacks: dt(),
|
244
249
|
dirty: a,
|
245
250
|
skip_bound: !1,
|
246
251
|
root: t.target || h.$$.root
|
@@ -249,19 +254,19 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
249
254
|
let l = !1;
|
250
255
|
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
251
256
|
const b = d.length ? d[0] : c;
|
252
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l &&
|
257
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l && Qr(e, m)), c;
|
253
258
|
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
254
259
|
if (t.hydrate) {
|
255
|
-
const m =
|
260
|
+
const m = Dr(t.target);
|
256
261
|
u.fragment && u.fragment.l(m), m.forEach(ne);
|
257
262
|
} else
|
258
263
|
u.fragment && u.fragment.c();
|
259
|
-
t.intro &&
|
264
|
+
t.intro && Xt(e.$$.fragment), zr(e, t.target, t.anchor), S();
|
260
265
|
}
|
261
266
|
ae(h);
|
262
267
|
}
|
263
|
-
let
|
264
|
-
typeof HTMLElement == "function" && (
|
268
|
+
let Wt;
|
269
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
265
270
|
/** The Svelte component constructor */
|
266
271
|
$$ctor;
|
267
272
|
/** Slots */
|
@@ -320,7 +325,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
320
325
|
};
|
321
326
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
322
327
|
return;
|
323
|
-
const t = {}, r =
|
328
|
+
const t = {}, r = Fr(this);
|
324
329
|
for (const i of this.$$s)
|
325
330
|
i in r && (t[i] = [e(i)]);
|
326
331
|
for (const i of this.attributes) {
|
@@ -407,8 +412,8 @@ function ve(e, t, r, n) {
|
|
407
412
|
return t;
|
408
413
|
}
|
409
414
|
}
|
410
|
-
function
|
411
|
-
let o = class extends
|
415
|
+
function qr(e, t, r, n, i, s) {
|
416
|
+
let o = class extends Wt {
|
412
417
|
constructor() {
|
413
418
|
super(e, r, i), this.$$p_d = t;
|
414
419
|
}
|
@@ -436,7 +441,7 @@ function Wr(e, t, r, n, i, s) {
|
|
436
441
|
}), e.element = /** @type {any} */
|
437
442
|
o, o;
|
438
443
|
}
|
439
|
-
class
|
444
|
+
class Jr {
|
440
445
|
/**
|
441
446
|
* ### PRIVATE API
|
442
447
|
*
|
@@ -455,7 +460,7 @@ class zr {
|
|
455
460
|
$$set = void 0;
|
456
461
|
/** @returns {void} */
|
457
462
|
$destroy() {
|
458
|
-
|
463
|
+
Zr(this, 1), this.$destroy = P;
|
459
464
|
}
|
460
465
|
/**
|
461
466
|
* @template {Extract<keyof Events, string>} K
|
@@ -477,22 +482,37 @@ class zr {
|
|
477
482
|
* @returns {void}
|
478
483
|
*/
|
479
484
|
$set(t) {
|
480
|
-
this.$$set && !
|
485
|
+
this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
481
486
|
}
|
482
487
|
}
|
483
|
-
const
|
484
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
485
|
-
|
486
|
-
|
488
|
+
const Kr = "4";
|
489
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kr);
|
490
|
+
/*! *****************************************************************************
|
491
|
+
Copyright (c) Microsoft Corporation.
|
492
|
+
|
493
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
494
|
+
purpose with or without fee is hereby granted.
|
495
|
+
|
496
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
497
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
498
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
499
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
500
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
501
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
502
|
+
PERFORMANCE OF THIS SOFTWARE.
|
503
|
+
***************************************************************************** */
|
504
|
+
var Xe = function(e, t) {
|
505
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
487
506
|
r.__proto__ = n;
|
488
507
|
} || function(r, n) {
|
489
|
-
for (var i in n)
|
490
|
-
|
508
|
+
for (var i in n)
|
509
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
510
|
+
}, Xe(e, t);
|
491
511
|
};
|
492
512
|
function U(e, t) {
|
493
513
|
if (typeof t != "function" && t !== null)
|
494
514
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
495
|
-
|
515
|
+
Xe(e, t);
|
496
516
|
function r() {
|
497
517
|
this.constructor = e;
|
498
518
|
}
|
@@ -502,61 +522,69 @@ var v = function() {
|
|
502
522
|
return v = Object.assign || function(t) {
|
503
523
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
504
524
|
r = arguments[n];
|
505
|
-
for (var s in r)
|
525
|
+
for (var s in r)
|
526
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
506
527
|
}
|
507
528
|
return t;
|
508
529
|
}, v.apply(this, arguments);
|
509
530
|
};
|
510
|
-
function
|
531
|
+
function en(e, t) {
|
511
532
|
var r = {};
|
512
|
-
for (var n in e)
|
533
|
+
for (var n in e)
|
534
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
513
535
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
514
536
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
515
537
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
516
538
|
return r;
|
517
539
|
}
|
518
|
-
function
|
540
|
+
function We(e) {
|
519
541
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
520
|
-
if (r)
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
542
|
+
if (r)
|
543
|
+
return r.call(e);
|
544
|
+
if (e && typeof e.length == "number")
|
545
|
+
return {
|
546
|
+
next: function() {
|
547
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
548
|
+
}
|
549
|
+
};
|
526
550
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
527
551
|
}
|
528
|
-
function
|
552
|
+
function ze(e, t) {
|
529
553
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
530
|
-
if (!r)
|
554
|
+
if (!r)
|
555
|
+
return e;
|
531
556
|
var n = r.call(e), i, s = [], o;
|
532
557
|
try {
|
533
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
558
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
559
|
+
s.push(i.value);
|
534
560
|
} catch (a) {
|
535
561
|
o = { error: a };
|
536
562
|
} finally {
|
537
563
|
try {
|
538
564
|
i && !i.done && (r = n.return) && r.call(n);
|
539
565
|
} finally {
|
540
|
-
if (o)
|
566
|
+
if (o)
|
567
|
+
throw o.error;
|
541
568
|
}
|
542
569
|
}
|
543
570
|
return s;
|
544
571
|
}
|
545
572
|
function q(e, t, r) {
|
546
|
-
if (r || arguments.length === 2)
|
547
|
-
(
|
548
|
-
|
573
|
+
if (r || arguments.length === 2)
|
574
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
575
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
576
|
+
return e.concat(s || t);
|
549
577
|
}
|
550
578
|
function G(e) {
|
551
579
|
return typeof e == "function";
|
552
580
|
}
|
553
|
-
function
|
581
|
+
function zt(e) {
|
554
582
|
var t = function(n) {
|
555
583
|
Error.call(n), n.stack = new Error().stack;
|
556
584
|
}, r = e(t);
|
557
585
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
558
586
|
}
|
559
|
-
var Me =
|
587
|
+
var Me = zt(function(e) {
|
560
588
|
return function(r) {
|
561
589
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
562
590
|
` + r.map(function(n, i) {
|
@@ -565,7 +593,7 @@ var Me = kt(function(e) {
|
|
565
593
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
566
594
|
};
|
567
595
|
});
|
568
|
-
function
|
596
|
+
function Ze(e, t) {
|
569
597
|
if (e) {
|
570
598
|
var r = e.indexOf(t);
|
571
599
|
0 <= r && e.splice(r, 1);
|
@@ -583,7 +611,7 @@ var He = function() {
|
|
583
611
|
if (o)
|
584
612
|
if (this._parentage = null, Array.isArray(o))
|
585
613
|
try {
|
586
|
-
for (var a =
|
614
|
+
for (var a = We(o), h = a.next(); !h.done; h = a.next()) {
|
587
615
|
var u = h.value;
|
588
616
|
u.remove(this);
|
589
617
|
}
|
@@ -593,7 +621,8 @@ var He = function() {
|
|
593
621
|
try {
|
594
622
|
h && !h.done && (r = a.return) && r.call(a);
|
595
623
|
} finally {
|
596
|
-
if (t)
|
624
|
+
if (t)
|
625
|
+
throw t.error;
|
597
626
|
}
|
598
627
|
}
|
599
628
|
else
|
@@ -609,12 +638,12 @@ var He = function() {
|
|
609
638
|
if (m) {
|
610
639
|
this._finalizers = null;
|
611
640
|
try {
|
612
|
-
for (var c =
|
641
|
+
for (var c = We(m), d = c.next(); !d.done; d = c.next()) {
|
613
642
|
var b = d.value;
|
614
643
|
try {
|
615
|
-
|
644
|
+
pt(b);
|
616
645
|
} catch (y) {
|
617
|
-
s = s ?? [], y instanceof Me ? s = q(q([],
|
646
|
+
s = s ?? [], y instanceof Me ? s = q(q([], ze(s)), ze(y.errors)) : s.push(y);
|
618
647
|
}
|
619
648
|
}
|
620
649
|
} catch (y) {
|
@@ -623,7 +652,8 @@ var He = function() {
|
|
623
652
|
try {
|
624
653
|
d && !d.done && (i = c.return) && i.call(c);
|
625
654
|
} finally {
|
626
|
-
if (n)
|
655
|
+
if (n)
|
656
|
+
throw n.error;
|
627
657
|
}
|
628
658
|
}
|
629
659
|
}
|
@@ -634,7 +664,7 @@ var He = function() {
|
|
634
664
|
var r;
|
635
665
|
if (t && t !== this)
|
636
666
|
if (this.closed)
|
637
|
-
|
667
|
+
pt(t);
|
638
668
|
else {
|
639
669
|
if (t instanceof e) {
|
640
670
|
if (t.closed || t._hasParent(this))
|
@@ -651,52 +681,56 @@ var He = function() {
|
|
651
681
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
652
682
|
}, e.prototype._removeParent = function(t) {
|
653
683
|
var r = this._parentage;
|
654
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
684
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
|
655
685
|
}, e.prototype.remove = function(t) {
|
656
686
|
var r = this._finalizers;
|
657
|
-
r &&
|
687
|
+
r && Ze(r, t), t instanceof e && t._removeParent(this);
|
658
688
|
}, e.EMPTY = function() {
|
659
689
|
var t = new e();
|
660
690
|
return t.closed = !0, t;
|
661
691
|
}(), e;
|
662
|
-
}(),
|
663
|
-
function
|
692
|
+
}(), Zt = He.EMPTY;
|
693
|
+
function Qt(e) {
|
664
694
|
return e instanceof He || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
665
695
|
}
|
666
|
-
function
|
696
|
+
function pt(e) {
|
667
697
|
G(e) ? e() : e.unsubscribe();
|
668
698
|
}
|
669
|
-
var
|
670
|
-
|
671
|
-
|
699
|
+
var Yt = {
|
700
|
+
onUnhandledError: null,
|
701
|
+
onStoppedNotification: null,
|
702
|
+
Promise: void 0,
|
703
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
704
|
+
useDeprecatedNextContext: !1
|
705
|
+
}, tn = {
|
672
706
|
setTimeout: function(e, t) {
|
673
707
|
for (var r = [], n = 2; n < arguments.length; n++)
|
674
708
|
r[n - 2] = arguments[n];
|
675
|
-
return setTimeout.apply(void 0, q([e, t],
|
709
|
+
return setTimeout.apply(void 0, q([e, t], ze(r)));
|
676
710
|
},
|
677
711
|
clearTimeout: function(e) {
|
678
712
|
return clearTimeout(e);
|
679
713
|
},
|
680
714
|
delegate: void 0
|
681
715
|
};
|
682
|
-
function
|
683
|
-
|
716
|
+
function rn(e) {
|
717
|
+
tn.setTimeout(function() {
|
684
718
|
throw e;
|
685
719
|
});
|
686
720
|
}
|
687
|
-
function
|
721
|
+
function gt() {
|
688
722
|
}
|
689
723
|
function _e(e) {
|
690
724
|
e();
|
691
725
|
}
|
692
|
-
var
|
726
|
+
var qt = function(e) {
|
693
727
|
U(t, e);
|
694
728
|
function t(r) {
|
695
729
|
var n = e.call(this) || this;
|
696
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
730
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = an, n;
|
697
731
|
}
|
698
732
|
return t.create = function(r, n, i) {
|
699
|
-
return new
|
733
|
+
return new Qe(r, n, i);
|
700
734
|
}, t.prototype.next = function(r) {
|
701
735
|
this.isStopped || this._next(r);
|
702
736
|
}, t.prototype.error = function(r) {
|
@@ -720,7 +754,11 @@ var Wt = function(e) {
|
|
720
754
|
this.unsubscribe();
|
721
755
|
}
|
722
756
|
}, t;
|
723
|
-
}(He),
|
757
|
+
}(He), nn = Function.prototype.bind;
|
758
|
+
function Re(e, t) {
|
759
|
+
return nn.call(e, t);
|
760
|
+
}
|
761
|
+
var sn = function() {
|
724
762
|
function e(t) {
|
725
763
|
this.partialObserver = t;
|
726
764
|
}
|
@@ -751,43 +789,55 @@ var Wt = function(e) {
|
|
751
789
|
ge(r);
|
752
790
|
}
|
753
791
|
}, e;
|
754
|
-
}(),
|
792
|
+
}(), Qe = function(e) {
|
755
793
|
U(t, e);
|
756
794
|
function t(r, n, i) {
|
757
795
|
var s = e.call(this) || this, o;
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
796
|
+
if (G(r) || !r)
|
797
|
+
o = {
|
798
|
+
next: r ?? void 0,
|
799
|
+
error: n ?? void 0,
|
800
|
+
complete: i ?? void 0
|
801
|
+
};
|
802
|
+
else {
|
803
|
+
var a;
|
804
|
+
s && Yt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
805
|
+
return s.unsubscribe();
|
806
|
+
}, o = {
|
807
|
+
next: r.next && Re(r.next, a),
|
808
|
+
error: r.error && Re(r.error, a),
|
809
|
+
complete: r.complete && Re(r.complete, a)
|
810
|
+
}) : o = r;
|
811
|
+
}
|
812
|
+
return s.destination = new sn(o), s;
|
763
813
|
}
|
764
814
|
return t;
|
765
|
-
}(
|
815
|
+
}(qt);
|
766
816
|
function ge(e) {
|
767
|
-
|
817
|
+
rn(e);
|
768
818
|
}
|
769
|
-
function
|
819
|
+
function on(e) {
|
770
820
|
throw e;
|
771
821
|
}
|
772
|
-
var
|
822
|
+
var an = {
|
773
823
|
closed: !0,
|
774
|
-
next:
|
775
|
-
error:
|
776
|
-
complete:
|
777
|
-
},
|
824
|
+
next: gt,
|
825
|
+
error: on,
|
826
|
+
complete: gt
|
827
|
+
}, un = function() {
|
778
828
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
779
829
|
}();
|
780
|
-
function
|
830
|
+
function hn(e) {
|
781
831
|
return e;
|
782
832
|
}
|
783
|
-
function
|
784
|
-
return e.length === 0 ?
|
833
|
+
function ln(e) {
|
834
|
+
return e.length === 0 ? hn : e.length === 1 ? e[0] : function(r) {
|
785
835
|
return e.reduce(function(n, i) {
|
786
836
|
return i(n);
|
787
837
|
}, r);
|
788
838
|
};
|
789
839
|
}
|
790
|
-
var
|
840
|
+
var yt = function() {
|
791
841
|
function e(t) {
|
792
842
|
t && (this._subscribe = t);
|
793
843
|
}
|
@@ -795,7 +845,7 @@ var dt = function() {
|
|
795
845
|
var r = new e();
|
796
846
|
return r.source = this, r.operator = t, r;
|
797
847
|
}, e.prototype.subscribe = function(t, r, n) {
|
798
|
-
var i = this, s =
|
848
|
+
var i = this, s = fn(t) ? t : new Qe(t, r, n);
|
799
849
|
return _e(function() {
|
800
850
|
var o = i, a = o.operator, h = o.source;
|
801
851
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
@@ -808,8 +858,8 @@ var dt = function() {
|
|
808
858
|
}
|
809
859
|
}, e.prototype.forEach = function(t, r) {
|
810
860
|
var n = this;
|
811
|
-
return r =
|
812
|
-
var o = new
|
861
|
+
return r = vt(r), new r(function(i, s) {
|
862
|
+
var o = new Qe({
|
813
863
|
next: function(a) {
|
814
864
|
try {
|
815
865
|
t(a);
|
@@ -825,15 +875,15 @@ var dt = function() {
|
|
825
875
|
}, e.prototype._subscribe = function(t) {
|
826
876
|
var r;
|
827
877
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
828
|
-
}, e.prototype[
|
878
|
+
}, e.prototype[un] = function() {
|
829
879
|
return this;
|
830
880
|
}, e.prototype.pipe = function() {
|
831
881
|
for (var t = [], r = 0; r < arguments.length; r++)
|
832
882
|
t[r] = arguments[r];
|
833
|
-
return
|
883
|
+
return ln(t)(this);
|
834
884
|
}, e.prototype.toPromise = function(t) {
|
835
885
|
var r = this;
|
836
|
-
return t =
|
886
|
+
return t = vt(t), new t(function(n, i) {
|
837
887
|
var s;
|
838
888
|
r.subscribe(function(o) {
|
839
889
|
return s = o;
|
@@ -847,32 +897,32 @@ var dt = function() {
|
|
847
897
|
return new e(t);
|
848
898
|
}, e;
|
849
899
|
}();
|
850
|
-
function
|
900
|
+
function vt(e) {
|
851
901
|
var t;
|
852
|
-
return (t = e ??
|
902
|
+
return (t = e ?? Yt.Promise) !== null && t !== void 0 ? t : Promise;
|
853
903
|
}
|
854
|
-
function
|
904
|
+
function cn(e) {
|
855
905
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
856
906
|
}
|
857
|
-
function
|
858
|
-
return e && e instanceof
|
907
|
+
function fn(e) {
|
908
|
+
return e && e instanceof qt || cn(e) && Qt(e);
|
859
909
|
}
|
860
|
-
var
|
910
|
+
var mn = zt(function(e) {
|
861
911
|
return function() {
|
862
912
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
863
913
|
};
|
864
|
-
}),
|
914
|
+
}), Jt = function(e) {
|
865
915
|
U(t, e);
|
866
916
|
function t() {
|
867
917
|
var r = e.call(this) || this;
|
868
918
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
869
919
|
}
|
870
920
|
return t.prototype.lift = function(r) {
|
871
|
-
var n = new
|
921
|
+
var n = new _t(this, this);
|
872
922
|
return n.operator = r, n;
|
873
923
|
}, t.prototype._throwIfClosed = function() {
|
874
924
|
if (this.closed)
|
875
|
-
throw new
|
925
|
+
throw new mn();
|
876
926
|
}, t.prototype.next = function(r) {
|
877
927
|
var n = this;
|
878
928
|
_e(function() {
|
@@ -880,7 +930,7 @@ var un = kt(function(e) {
|
|
880
930
|
if (n._throwIfClosed(), !n.isStopped) {
|
881
931
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
882
932
|
try {
|
883
|
-
for (var o =
|
933
|
+
for (var o = We(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
884
934
|
var h = a.value;
|
885
935
|
h.next(r);
|
886
936
|
}
|
@@ -890,7 +940,8 @@ var un = kt(function(e) {
|
|
890
940
|
try {
|
891
941
|
a && !a.done && (s = o.return) && s.call(o);
|
892
942
|
} finally {
|
893
|
-
if (i)
|
943
|
+
if (i)
|
944
|
+
throw i.error;
|
894
945
|
}
|
895
946
|
}
|
896
947
|
}
|
@@ -928,19 +979,19 @@ var un = kt(function(e) {
|
|
928
979
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
929
980
|
}, t.prototype._innerSubscribe = function(r) {
|
930
981
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
931
|
-
return s || o ?
|
932
|
-
n.currentObservers = null,
|
982
|
+
return s || o ? Zt : (this.currentObservers = null, a.push(r), new He(function() {
|
983
|
+
n.currentObservers = null, Ze(a, r);
|
933
984
|
}));
|
934
985
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
935
986
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
936
987
|
i ? r.error(s) : o && r.complete();
|
937
988
|
}, t.prototype.asObservable = function() {
|
938
|
-
var r = new
|
989
|
+
var r = new yt();
|
939
990
|
return r.source = this, r;
|
940
991
|
}, t.create = function(r, n) {
|
941
|
-
return new
|
992
|
+
return new _t(r, n);
|
942
993
|
}, t;
|
943
|
-
}(
|
994
|
+
}(yt), _t = function(e) {
|
944
995
|
U(t, e);
|
945
996
|
function t(r, n) {
|
946
997
|
var i = e.call(this) || this;
|
@@ -957,17 +1008,17 @@ var un = kt(function(e) {
|
|
957
1008
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
958
1009
|
}, t.prototype._subscribe = function(r) {
|
959
1010
|
var n, i;
|
960
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1011
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zt;
|
961
1012
|
}, t;
|
962
|
-
}(
|
1013
|
+
}(Jt), Kt = {
|
963
1014
|
now: function() {
|
964
|
-
return (
|
1015
|
+
return (Kt.delegate || Date).now();
|
965
1016
|
},
|
966
1017
|
delegate: void 0
|
967
|
-
},
|
1018
|
+
}, dn = function(e) {
|
968
1019
|
U(t, e);
|
969
1020
|
function t(r, n, i) {
|
970
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1021
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
971
1022
|
var s = e.call(this) || this;
|
972
1023
|
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;
|
973
1024
|
}
|
@@ -987,15 +1038,15 @@ var un = kt(function(e) {
|
|
987
1038
|
u && s.splice(0, u + 1);
|
988
1039
|
}
|
989
1040
|
}, t;
|
990
|
-
}(
|
991
|
-
const
|
992
|
-
if (
|
993
|
-
const r = new
|
994
|
-
|
1041
|
+
}(Jt);
|
1042
|
+
const Et = [], xt = {}, bn = (e, t = 0) => {
|
1043
|
+
if (Et.indexOf(e) == -1) {
|
1044
|
+
const r = new dn(t);
|
1045
|
+
xt[e] = r, Et.push(e);
|
995
1046
|
}
|
996
|
-
return
|
1047
|
+
return xt[e];
|
997
1048
|
}, Z = [];
|
998
|
-
function
|
1049
|
+
function pn(e, t) {
|
999
1050
|
return {
|
1000
1051
|
subscribe: Ae(e, t).subscribe
|
1001
1052
|
};
|
@@ -1004,7 +1055,7 @@ function Ae(e, t = P) {
|
|
1004
1055
|
let r;
|
1005
1056
|
const n = /* @__PURE__ */ new Set();
|
1006
1057
|
function i(a) {
|
1007
|
-
if (
|
1058
|
+
if (Dt(e, a) && (e = a, r)) {
|
1008
1059
|
const h = !Z.length;
|
1009
1060
|
for (const u of n)
|
1010
1061
|
u[1](), Z.push(u, e);
|
@@ -1031,7 +1082,7 @@ function ie(e, t, r) {
|
|
1031
1082
|
if (!i.every(Boolean))
|
1032
1083
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1033
1084
|
const s = t.length < 2;
|
1034
|
-
return
|
1085
|
+
return pn(r, (o, a) => {
|
1035
1086
|
let h = !1;
|
1036
1087
|
const u = [];
|
1037
1088
|
let l = 0, m = P;
|
@@ -1042,7 +1093,7 @@ function ie(e, t, r) {
|
|
1042
1093
|
const b = t(n ? u[0] : u, o, a);
|
1043
1094
|
s ? o(b) : m = Te(b) ? b : P;
|
1044
1095
|
}, d = i.map(
|
1045
|
-
(b, y) =>
|
1096
|
+
(b, y) => Ft(
|
1046
1097
|
b,
|
1047
1098
|
(T) => {
|
1048
1099
|
u[y] = T, l &= ~(1 << y), h && c();
|
@@ -1057,70 +1108,70 @@ function ie(e, t, r) {
|
|
1057
1108
|
};
|
1058
1109
|
});
|
1059
1110
|
}
|
1060
|
-
function
|
1111
|
+
function gn(e) {
|
1061
1112
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1062
1113
|
}
|
1063
|
-
var
|
1064
|
-
return
|
1114
|
+
var yn = function(t) {
|
1115
|
+
return vn(t) && !_n(t);
|
1065
1116
|
};
|
1066
|
-
function
|
1117
|
+
function vn(e) {
|
1067
1118
|
return !!e && typeof e == "object";
|
1068
1119
|
}
|
1069
|
-
function
|
1120
|
+
function _n(e) {
|
1070
1121
|
var t = Object.prototype.toString.call(e);
|
1071
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1122
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
1072
1123
|
}
|
1073
|
-
var
|
1074
|
-
function
|
1075
|
-
return e.$$typeof ===
|
1124
|
+
var En = typeof Symbol == "function" && Symbol.for, xn = En ? Symbol.for("react.element") : 60103;
|
1125
|
+
function Sn(e) {
|
1126
|
+
return e.$$typeof === xn;
|
1076
1127
|
}
|
1077
|
-
function
|
1128
|
+
function wn(e) {
|
1078
1129
|
return Array.isArray(e) ? [] : {};
|
1079
1130
|
}
|
1080
1131
|
function he(e, t) {
|
1081
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? J(
|
1132
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(wn(e), e, t) : e;
|
1082
1133
|
}
|
1083
|
-
function
|
1134
|
+
function Tn(e, t, r) {
|
1084
1135
|
return e.concat(t).map(function(n) {
|
1085
1136
|
return he(n, r);
|
1086
1137
|
});
|
1087
1138
|
}
|
1088
|
-
function
|
1139
|
+
function Hn(e, t) {
|
1089
1140
|
if (!t.customMerge)
|
1090
1141
|
return J;
|
1091
1142
|
var r = t.customMerge(e);
|
1092
1143
|
return typeof r == "function" ? r : J;
|
1093
1144
|
}
|
1094
|
-
function
|
1145
|
+
function An(e) {
|
1095
1146
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1096
1147
|
return Object.propertyIsEnumerable.call(e, t);
|
1097
1148
|
}) : [];
|
1098
1149
|
}
|
1099
|
-
function
|
1100
|
-
return Object.keys(e).concat(
|
1150
|
+
function St(e) {
|
1151
|
+
return Object.keys(e).concat(An(e));
|
1101
1152
|
}
|
1102
|
-
function
|
1153
|
+
function er(e, t) {
|
1103
1154
|
try {
|
1104
1155
|
return t in e;
|
1105
1156
|
} catch {
|
1106
1157
|
return !1;
|
1107
1158
|
}
|
1108
1159
|
}
|
1109
|
-
function
|
1110
|
-
return
|
1160
|
+
function Bn(e, t) {
|
1161
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1111
1162
|
}
|
1112
|
-
function
|
1163
|
+
function Pn(e, t, r) {
|
1113
1164
|
var n = {};
|
1114
|
-
return r.isMergeableObject(e) &&
|
1165
|
+
return r.isMergeableObject(e) && St(e).forEach(function(i) {
|
1115
1166
|
n[i] = he(e[i], r);
|
1116
|
-
}),
|
1117
|
-
|
1167
|
+
}), St(t).forEach(function(i) {
|
1168
|
+
Bn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
1118
1169
|
}), n;
|
1119
1170
|
}
|
1120
1171
|
function J(e, t, r) {
|
1121
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1172
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tn, r.isMergeableObject = r.isMergeableObject || yn, r.cloneUnlessOtherwiseSpecified = he;
|
1122
1173
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
1123
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
1174
|
+
return s ? n ? r.arrayMerge(e, t, r) : Pn(e, t, r) : he(t, r);
|
1124
1175
|
}
|
1125
1176
|
J.all = function(t, r) {
|
1126
1177
|
if (!Array.isArray(t))
|
@@ -1129,56 +1180,58 @@ J.all = function(t, r) {
|
|
1129
1180
|
return J(n, i, r);
|
1130
1181
|
}, {});
|
1131
1182
|
};
|
1132
|
-
var
|
1133
|
-
const
|
1134
|
-
function
|
1135
|
-
var r = t && t.cache ? t.cache :
|
1183
|
+
var Nn = J, On = Nn;
|
1184
|
+
const Ln = /* @__PURE__ */ gn(On);
|
1185
|
+
function Ge(e, t) {
|
1186
|
+
var r = t && t.cache ? t.cache : Un, n = t && t.serializer ? t.serializer : Gn, i = t && t.strategy ? t.strategy : Cn;
|
1136
1187
|
return i(e, {
|
1137
1188
|
cache: r,
|
1138
1189
|
serializer: n
|
1139
1190
|
});
|
1140
1191
|
}
|
1141
|
-
function
|
1192
|
+
function In(e) {
|
1142
1193
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1143
1194
|
}
|
1144
|
-
function
|
1145
|
-
var i =
|
1195
|
+
function tr(e, t, r, n) {
|
1196
|
+
var i = In(n) ? n : r(n), s = t.get(i);
|
1146
1197
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
1147
1198
|
}
|
1148
|
-
function
|
1199
|
+
function rr(e, t, r) {
|
1149
1200
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
1150
1201
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
1151
1202
|
}
|
1152
|
-
function
|
1203
|
+
function st(e, t, r, n, i) {
|
1153
1204
|
return r.bind(t, e, n, i);
|
1154
1205
|
}
|
1155
|
-
function
|
1156
|
-
var r = e.length === 1 ?
|
1157
|
-
return
|
1206
|
+
function Cn(e, t) {
|
1207
|
+
var r = e.length === 1 ? tr : rr;
|
1208
|
+
return st(e, this, r, t.cache.create(), t.serializer);
|
1158
1209
|
}
|
1159
|
-
function
|
1160
|
-
return
|
1210
|
+
function Mn(e, t) {
|
1211
|
+
return st(e, this, rr, t.cache.create(), t.serializer);
|
1161
1212
|
}
|
1162
|
-
|
1213
|
+
function Rn(e, t) {
|
1214
|
+
return st(e, this, tr, t.cache.create(), t.serializer);
|
1215
|
+
}
|
1216
|
+
var Gn = function() {
|
1163
1217
|
return JSON.stringify(arguments);
|
1164
|
-
}
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
}()
|
1176
|
-
), Cn = {
|
1218
|
+
};
|
1219
|
+
function ot() {
|
1220
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1221
|
+
}
|
1222
|
+
ot.prototype.get = function(e) {
|
1223
|
+
return this.cache[e];
|
1224
|
+
};
|
1225
|
+
ot.prototype.set = function(e, t) {
|
1226
|
+
this.cache[e] = t;
|
1227
|
+
};
|
1228
|
+
var Un = {
|
1177
1229
|
create: function() {
|
1178
|
-
return new
|
1230
|
+
return new ot();
|
1179
1231
|
}
|
1180
|
-
},
|
1181
|
-
variadic:
|
1232
|
+
}, Ue = {
|
1233
|
+
variadic: Mn,
|
1234
|
+
monadic: Rn
|
1182
1235
|
}, p;
|
1183
1236
|
(function(e) {
|
1184
1237
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
@@ -1191,43 +1244,43 @@ var K;
|
|
1191
1244
|
(function(e) {
|
1192
1245
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1193
1246
|
})(K || (K = {}));
|
1194
|
-
function
|
1247
|
+
function wt(e) {
|
1195
1248
|
return e.type === x.literal;
|
1196
1249
|
}
|
1197
|
-
function
|
1250
|
+
function Dn(e) {
|
1198
1251
|
return e.type === x.argument;
|
1199
1252
|
}
|
1200
|
-
function
|
1253
|
+
function nr(e) {
|
1201
1254
|
return e.type === x.number;
|
1202
1255
|
}
|
1203
|
-
function
|
1256
|
+
function ir(e) {
|
1204
1257
|
return e.type === x.date;
|
1205
1258
|
}
|
1206
|
-
function
|
1259
|
+
function sr(e) {
|
1207
1260
|
return e.type === x.time;
|
1208
1261
|
}
|
1209
|
-
function
|
1262
|
+
function or(e) {
|
1210
1263
|
return e.type === x.select;
|
1211
1264
|
}
|
1212
|
-
function
|
1265
|
+
function ar(e) {
|
1213
1266
|
return e.type === x.plural;
|
1214
1267
|
}
|
1215
|
-
function
|
1268
|
+
function Fn(e) {
|
1216
1269
|
return e.type === x.pound;
|
1217
1270
|
}
|
1218
|
-
function
|
1271
|
+
function ur(e) {
|
1219
1272
|
return e.type === x.tag;
|
1220
1273
|
}
|
1221
|
-
function
|
1274
|
+
function hr(e) {
|
1222
1275
|
return !!(e && typeof e == "object" && e.type === K.number);
|
1223
1276
|
}
|
1224
|
-
function
|
1277
|
+
function Ye(e) {
|
1225
1278
|
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
1226
1279
|
}
|
1227
|
-
var
|
1228
|
-
function
|
1280
|
+
var lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $n = /(?:[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;
|
1281
|
+
function jn(e) {
|
1229
1282
|
var t = {};
|
1230
|
-
return e.replace(
|
1283
|
+
return e.replace($n, function(r) {
|
1231
1284
|
var n = r.length;
|
1232
1285
|
switch (r[0]) {
|
1233
1286
|
case "G":
|
@@ -1316,11 +1369,11 @@ function Un(e) {
|
|
1316
1369
|
return "";
|
1317
1370
|
}), t;
|
1318
1371
|
}
|
1319
|
-
var
|
1320
|
-
function
|
1372
|
+
var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1373
|
+
function Vn(e) {
|
1321
1374
|
if (e.length === 0)
|
1322
1375
|
throw new Error("Number skeleton cannot be empty");
|
1323
|
-
for (var t = e.split(
|
1376
|
+
for (var t = e.split(kn).filter(function(c) {
|
1324
1377
|
return c.length > 0;
|
1325
1378
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1326
1379
|
var s = i[n], o = s.split("/");
|
@@ -1335,17 +1388,17 @@ function Fn(e) {
|
|
1335
1388
|
}
|
1336
1389
|
return r;
|
1337
1390
|
}
|
1338
|
-
function
|
1391
|
+
function Xn(e) {
|
1339
1392
|
return e.replace(/^(.*?)-/, "");
|
1340
1393
|
}
|
1341
|
-
var
|
1342
|
-
function
|
1394
|
+
var Tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
1395
|
+
function Ht(e) {
|
1343
1396
|
var t = {};
|
1344
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1397
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
1345
1398
|
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)), "";
|
1346
1399
|
}), t;
|
1347
1400
|
}
|
1348
|
-
function
|
1401
|
+
function mr(e) {
|
1349
1402
|
switch (e) {
|
1350
1403
|
case "sign-auto":
|
1351
1404
|
return {
|
@@ -1385,7 +1438,7 @@ function ur(e) {
|
|
1385
1438
|
};
|
1386
1439
|
}
|
1387
1440
|
}
|
1388
|
-
function
|
1441
|
+
function zn(e) {
|
1389
1442
|
var t;
|
1390
1443
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1391
1444
|
notation: "engineering"
|
@@ -1393,17 +1446,17 @@ function kn(e) {
|
|
1393
1446
|
notation: "scientific"
|
1394
1447
|
}, e = e.slice(1)), t) {
|
1395
1448
|
var r = e.slice(0, 2);
|
1396
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1449
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
1397
1450
|
throw new Error("Malformed concise eng/scientific notation");
|
1398
1451
|
t.minimumIntegerDigits = e.length;
|
1399
1452
|
}
|
1400
1453
|
return t;
|
1401
1454
|
}
|
1402
|
-
function
|
1403
|
-
var t = {}, r =
|
1455
|
+
function At(e) {
|
1456
|
+
var t = {}, r = mr(e);
|
1404
1457
|
return r || t;
|
1405
1458
|
}
|
1406
|
-
function
|
1459
|
+
function Zn(e) {
|
1407
1460
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1408
1461
|
var i = n[r];
|
1409
1462
|
switch (i.stem) {
|
@@ -1427,7 +1480,7 @@ function Vn(e) {
|
|
1427
1480
|
continue;
|
1428
1481
|
case "measure-unit":
|
1429
1482
|
case "unit":
|
1430
|
-
t.style = "unit", t.unit =
|
1483
|
+
t.style = "unit", t.unit = Xn(i.options[0]);
|
1431
1484
|
continue;
|
1432
1485
|
case "compact-short":
|
1433
1486
|
case "K":
|
@@ -1439,12 +1492,12 @@ function Vn(e) {
|
|
1439
1492
|
continue;
|
1440
1493
|
case "scientific":
|
1441
1494
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
1442
|
-
return v(v({}, h),
|
1495
|
+
return v(v({}, h), At(u));
|
1443
1496
|
}, {}));
|
1444
1497
|
continue;
|
1445
1498
|
case "engineering":
|
1446
1499
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
1447
|
-
return v(v({}, h),
|
1500
|
+
return v(v({}, h), At(u));
|
1448
1501
|
}, {}));
|
1449
1502
|
continue;
|
1450
1503
|
case "notation-simple":
|
@@ -1489,7 +1542,7 @@ function Vn(e) {
|
|
1489
1542
|
case "integer-width":
|
1490
1543
|
if (i.options.length > 1)
|
1491
1544
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1492
|
-
i.options[0].replace(
|
1545
|
+
i.options[0].replace(Wn, function(h, u, l, m, c, d) {
|
1493
1546
|
if (u)
|
1494
1547
|
t.minimumIntegerDigits = l.length;
|
1495
1548
|
else {
|
@@ -1502,27 +1555,27 @@ function Vn(e) {
|
|
1502
1555
|
});
|
1503
1556
|
continue;
|
1504
1557
|
}
|
1505
|
-
if (
|
1558
|
+
if (fr.test(i.stem)) {
|
1506
1559
|
t.minimumIntegerDigits = i.stem.length;
|
1507
1560
|
continue;
|
1508
1561
|
}
|
1509
|
-
if (
|
1562
|
+
if (Tt.test(i.stem)) {
|
1510
1563
|
if (i.options.length > 1)
|
1511
1564
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1512
|
-
i.stem.replace(
|
1565
|
+
i.stem.replace(Tt, function(h, u, l, m, c, d) {
|
1513
1566
|
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), "";
|
1514
1567
|
});
|
1515
1568
|
var s = i.options[0];
|
1516
|
-
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t),
|
1569
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), Ht(s)));
|
1517
1570
|
continue;
|
1518
1571
|
}
|
1519
|
-
if (
|
1520
|
-
t = v(v({}, t),
|
1572
|
+
if (cr.test(i.stem)) {
|
1573
|
+
t = v(v({}, t), Ht(i.stem));
|
1521
1574
|
continue;
|
1522
1575
|
}
|
1523
|
-
var o =
|
1576
|
+
var o = mr(i.stem);
|
1524
1577
|
o && (t = v(v({}, t), o));
|
1525
|
-
var a =
|
1578
|
+
var a = zn(i.stem);
|
1526
1579
|
a && (t = v(v({}, t), a));
|
1527
1580
|
}
|
1528
1581
|
return t;
|
@@ -2942,22 +2995,23 @@ var ye = {
|
|
2942
2995
|
"h"
|
2943
2996
|
]
|
2944
2997
|
};
|
2945
|
-
function
|
2998
|
+
function Qn(e, t) {
|
2946
2999
|
for (var r = "", n = 0; n < e.length; n++) {
|
2947
3000
|
var i = e.charAt(n);
|
2948
3001
|
if (i === "j") {
|
2949
3002
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2950
3003
|
s++, n++;
|
2951
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
3004
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Yn(t);
|
2952
3005
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2953
3006
|
r += h;
|
2954
3007
|
for (; o-- > 0; )
|
2955
3008
|
r = u + r;
|
2956
|
-
} else
|
3009
|
+
} else
|
3010
|
+
i === "J" ? r += "H" : r += i;
|
2957
3011
|
}
|
2958
3012
|
return r;
|
2959
3013
|
}
|
2960
|
-
function
|
3014
|
+
function Yn(e) {
|
2961
3015
|
var t = e.hourCycle;
|
2962
3016
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2963
3017
|
e.hourCycles && // @ts-ignore
|
@@ -2979,20 +3033,20 @@ function Wn(e) {
|
|
2979
3033
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
2980
3034
|
return i[0];
|
2981
3035
|
}
|
2982
|
-
var
|
3036
|
+
var De, qn = new RegExp("^".concat(lr.source, "*")), Jn = new RegExp("".concat(lr.source, "*$"));
|
2983
3037
|
function g(e, t) {
|
2984
3038
|
return { start: e, end: t };
|
2985
3039
|
}
|
2986
|
-
var
|
3040
|
+
var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, oi = si ? Number.isSafeInteger : function(e) {
|
2987
3041
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2988
|
-
},
|
3042
|
+
}, qe = !0;
|
2989
3043
|
try {
|
2990
|
-
var
|
2991
|
-
|
3044
|
+
var ai = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3045
|
+
qe = ((De = ai.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
2992
3046
|
} catch {
|
2993
|
-
|
3047
|
+
qe = !1;
|
2994
3048
|
}
|
2995
|
-
var
|
3049
|
+
var Bt = Kn ? (
|
2996
3050
|
// Native
|
2997
3051
|
function(t, r, n) {
|
2998
3052
|
return t.startsWith(r, n);
|
@@ -3002,7 +3056,7 @@ var wt = Qn ? (
|
|
3002
3056
|
function(t, r, n) {
|
3003
3057
|
return t.slice(n, n + r.length) === r;
|
3004
3058
|
}
|
3005
|
-
),
|
3059
|
+
), Je = ei ? String.fromCodePoint : (
|
3006
3060
|
// IE11
|
3007
3061
|
function() {
|
3008
3062
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3014,9 +3068,9 @@ var wt = Qn ? (
|
|
3014
3068
|
}
|
3015
3069
|
return n;
|
3016
3070
|
}
|
3017
|
-
),
|
3071
|
+
), Pt = (
|
3018
3072
|
// native
|
3019
|
-
|
3073
|
+
ti ? Object.fromEntries : (
|
3020
3074
|
// Ponyfill
|
3021
3075
|
function(t) {
|
3022
3076
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3026,7 +3080,7 @@ var wt = Qn ? (
|
|
3026
3080
|
return r;
|
3027
3081
|
}
|
3028
3082
|
)
|
3029
|
-
),
|
3083
|
+
), dr = ri ? (
|
3030
3084
|
// Native
|
3031
3085
|
function(t, r) {
|
3032
3086
|
return t.codePointAt(r);
|
@@ -3040,7 +3094,7 @@ var wt = Qn ? (
|
|
3040
3094
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
3041
3095
|
}
|
3042
3096
|
}
|
3043
|
-
),
|
3097
|
+
), ui = ni ? (
|
3044
3098
|
// Native
|
3045
3099
|
function(t) {
|
3046
3100
|
return t.trimStart();
|
@@ -3048,9 +3102,9 @@ var wt = Qn ? (
|
|
3048
3102
|
) : (
|
3049
3103
|
// Ponyfill
|
3050
3104
|
function(t) {
|
3051
|
-
return t.replace(
|
3105
|
+
return t.replace(qn, "");
|
3052
3106
|
}
|
3053
|
-
),
|
3107
|
+
), hi = ii ? (
|
3054
3108
|
// Native
|
3055
3109
|
function(t) {
|
3056
3110
|
return t.trimEnd();
|
@@ -3058,32 +3112,32 @@ var wt = Qn ? (
|
|
3058
3112
|
) : (
|
3059
3113
|
// Ponyfill
|
3060
3114
|
function(t) {
|
3061
|
-
return t.replace(
|
3115
|
+
return t.replace(Jn, "");
|
3062
3116
|
}
|
3063
3117
|
);
|
3064
|
-
function
|
3118
|
+
function br(e, t) {
|
3065
3119
|
return new RegExp(e, t);
|
3066
3120
|
}
|
3067
|
-
var
|
3068
|
-
if (
|
3069
|
-
var
|
3070
|
-
|
3121
|
+
var Ke;
|
3122
|
+
if (qe) {
|
3123
|
+
var Nt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3124
|
+
Ke = function(t, r) {
|
3071
3125
|
var n;
|
3072
|
-
|
3073
|
-
var i =
|
3126
|
+
Nt.lastIndex = r;
|
3127
|
+
var i = Nt.exec(t);
|
3074
3128
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3075
3129
|
};
|
3076
3130
|
} else
|
3077
|
-
|
3131
|
+
Ke = function(t, r) {
|
3078
3132
|
for (var n = []; ; ) {
|
3079
|
-
var i =
|
3080
|
-
if (i === void 0 ||
|
3133
|
+
var i = dr(t, r);
|
3134
|
+
if (i === void 0 || pr(i) || mi(i))
|
3081
3135
|
break;
|
3082
3136
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3083
3137
|
}
|
3084
|
-
return
|
3138
|
+
return Je.apply(void 0, n);
|
3085
3139
|
};
|
3086
|
-
var
|
3140
|
+
var li = (
|
3087
3141
|
/** @class */
|
3088
3142
|
function() {
|
3089
3143
|
function e(t, r) {
|
@@ -3114,7 +3168,7 @@ var oi = (
|
|
3114
3168
|
if (n)
|
3115
3169
|
break;
|
3116
3170
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
3117
|
-
} else if (s === 60 && !this.ignoreTag &&
|
3171
|
+
} else if (s === 60 && !this.ignoreTag && et(this.peek() || 0)) {
|
3118
3172
|
var o = this.parseTag(t, r);
|
3119
3173
|
if (o.err)
|
3120
3174
|
return o;
|
@@ -3147,7 +3201,7 @@ var oi = (
|
|
3147
3201
|
return s;
|
3148
3202
|
var o = s.val, a = this.clonePosition();
|
3149
3203
|
if (this.bumpIf("</")) {
|
3150
|
-
if (this.isEOF() || !
|
3204
|
+
if (this.isEOF() || !et(this.char()))
|
3151
3205
|
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
3152
3206
|
var h = this.clonePosition(), u = this.parseTagName();
|
3153
3207
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -3165,7 +3219,7 @@ var oi = (
|
|
3165
3219
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
3166
3220
|
}, e.prototype.parseTagName = function() {
|
3167
3221
|
var t = this.offset();
|
3168
|
-
for (this.bump(); !this.isEOF() &&
|
3222
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
3169
3223
|
this.bump();
|
3170
3224
|
return this.message.slice(t, this.offset());
|
3171
3225
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3194,7 +3248,7 @@ var oi = (
|
|
3194
3248
|
};
|
3195
3249
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3196
3250
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3197
|
-
!
|
3251
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3198
3252
|
}, e.prototype.tryParseQuote = function(t) {
|
3199
3253
|
if (this.isEOF() || this.char() !== 39)
|
3200
3254
|
return null;
|
@@ -3228,12 +3282,12 @@ var oi = (
|
|
3228
3282
|
r.push(n);
|
3229
3283
|
this.bump();
|
3230
3284
|
}
|
3231
|
-
return
|
3285
|
+
return Je.apply(void 0, r);
|
3232
3286
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3233
3287
|
if (this.isEOF())
|
3234
3288
|
return null;
|
3235
3289
|
var n = this.char();
|
3236
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3290
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
|
3237
3291
|
}, e.prototype.parseArgument = function(t, r) {
|
3238
3292
|
var n = this.clonePosition();
|
3239
3293
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3262,7 +3316,7 @@ var oi = (
|
|
3262
3316
|
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
3263
3317
|
}
|
3264
3318
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3265
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3319
|
+
var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
|
3266
3320
|
this.bumpTo(i);
|
3267
3321
|
var s = this.clonePosition(), o = g(t, s);
|
3268
3322
|
return { value: n, location: o };
|
@@ -3281,7 +3335,7 @@ var oi = (
|
|
3281
3335
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
3282
3336
|
if (m.err)
|
3283
3337
|
return m;
|
3284
|
-
var c =
|
3338
|
+
var c = hi(m.val);
|
3285
3339
|
if (c.length === 0)
|
3286
3340
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
3287
3341
|
var d = g(l, this.clonePosition());
|
@@ -3291,8 +3345,8 @@ var oi = (
|
|
3291
3345
|
if (b.err)
|
3292
3346
|
return b;
|
3293
3347
|
var y = g(i, this.clonePosition());
|
3294
|
-
if (u &&
|
3295
|
-
var T =
|
3348
|
+
if (u && Bt(u?.style, "::", 0)) {
|
3349
|
+
var T = ui(u.style.slice(2));
|
3296
3350
|
if (a === "number") {
|
3297
3351
|
var m = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
3298
3352
|
return m.err ? m : {
|
@@ -3303,12 +3357,12 @@ var oi = (
|
|
3303
3357
|
if (T.length === 0)
|
3304
3358
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, y);
|
3305
3359
|
var C = T;
|
3306
|
-
this.locale && (C =
|
3360
|
+
this.locale && (C = Qn(T, this.locale));
|
3307
3361
|
var c = {
|
3308
3362
|
type: K.dateTime,
|
3309
3363
|
pattern: C,
|
3310
3364
|
location: u.styleLocation,
|
3311
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3365
|
+
parsedOptions: this.shouldParseSkeletons ? jn(C) : {}
|
3312
3366
|
}, N = a === "date" ? x.date : x.time;
|
3313
3367
|
return {
|
3314
3368
|
val: { type: N, value: n, location: y, style: c },
|
@@ -3354,7 +3408,7 @@ var oi = (
|
|
3354
3408
|
val: {
|
3355
3409
|
type: x.select,
|
3356
3410
|
value: n,
|
3357
|
-
options:
|
3411
|
+
options: Pt(M.val),
|
3358
3412
|
location: E
|
3359
3413
|
},
|
3360
3414
|
err: null
|
@@ -3362,7 +3416,7 @@ var oi = (
|
|
3362
3416
|
val: {
|
3363
3417
|
type: x.plural,
|
3364
3418
|
value: n,
|
3365
|
-
options:
|
3419
|
+
options: Pt(M.val),
|
3366
3420
|
offset: L,
|
3367
3421
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3368
3422
|
location: E
|
@@ -3413,7 +3467,7 @@ var oi = (
|
|
3413
3467
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3414
3468
|
var n = [];
|
3415
3469
|
try {
|
3416
|
-
n =
|
3470
|
+
n = Vn(t);
|
3417
3471
|
} catch {
|
3418
3472
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
3419
3473
|
}
|
@@ -3422,7 +3476,7 @@ var oi = (
|
|
3422
3476
|
type: K.number,
|
3423
3477
|
tokens: n,
|
3424
3478
|
location: r,
|
3425
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3479
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(n) : {}
|
3426
3480
|
},
|
3427
3481
|
err: null
|
3428
3482
|
};
|
@@ -3470,7 +3524,7 @@ var oi = (
|
|
3470
3524
|
break;
|
3471
3525
|
}
|
3472
3526
|
var h = g(i, this.clonePosition());
|
3473
|
-
return s ? (o *= n,
|
3527
|
+
return s ? (o *= n, oi(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3474
3528
|
}, e.prototype.offset = function() {
|
3475
3529
|
return this.position.offset;
|
3476
3530
|
}, e.prototype.isEOF = function() {
|
@@ -3485,7 +3539,7 @@ var oi = (
|
|
3485
3539
|
var t = this.position.offset;
|
3486
3540
|
if (t >= this.message.length)
|
3487
3541
|
throw Error("out of bound");
|
3488
|
-
var r =
|
3542
|
+
var r = dr(this.message, t);
|
3489
3543
|
if (r === void 0)
|
3490
3544
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3491
3545
|
return r;
|
@@ -3504,7 +3558,7 @@ var oi = (
|
|
3504
3558
|
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);
|
3505
3559
|
}
|
3506
3560
|
}, e.prototype.bumpIf = function(t) {
|
3507
|
-
if (
|
3561
|
+
if (Bt(this.message, t, this.offset())) {
|
3508
3562
|
for (var r = 0; r < t.length; r++)
|
3509
3563
|
this.bump();
|
3510
3564
|
return !0;
|
@@ -3526,7 +3580,7 @@ var oi = (
|
|
3526
3580
|
break;
|
3527
3581
|
}
|
3528
3582
|
}, e.prototype.bumpSpace = function() {
|
3529
|
-
for (; !this.isEOF() &&
|
3583
|
+
for (; !this.isEOF() && pr(this.char()); )
|
3530
3584
|
this.bump();
|
3531
3585
|
}, e.prototype.peek = function() {
|
3532
3586
|
if (this.isEOF())
|
@@ -3536,37 +3590,38 @@ var oi = (
|
|
3536
3590
|
}, e;
|
3537
3591
|
}()
|
3538
3592
|
);
|
3539
|
-
function
|
3593
|
+
function et(e) {
|
3540
3594
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3541
3595
|
}
|
3542
|
-
function
|
3543
|
-
return
|
3596
|
+
function ci(e) {
|
3597
|
+
return et(e) || e === 47;
|
3544
3598
|
}
|
3545
|
-
function
|
3599
|
+
function fi(e) {
|
3546
3600
|
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;
|
3547
3601
|
}
|
3548
|
-
function
|
3602
|
+
function pr(e) {
|
3549
3603
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3550
3604
|
}
|
3551
|
-
function
|
3605
|
+
function mi(e) {
|
3552
3606
|
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;
|
3553
3607
|
}
|
3554
|
-
function
|
3608
|
+
function tt(e) {
|
3555
3609
|
e.forEach(function(t) {
|
3556
|
-
if (delete t.location,
|
3610
|
+
if (delete t.location, or(t) || ar(t))
|
3557
3611
|
for (var r in t.options)
|
3558
|
-
delete t.options[r].location,
|
3559
|
-
else
|
3612
|
+
delete t.options[r].location, tt(t.options[r].value);
|
3613
|
+
else
|
3614
|
+
nr(t) && hr(t.style) || (ir(t) || sr(t)) && Ye(t.style) ? delete t.style.location : ur(t) && tt(t.children);
|
3560
3615
|
});
|
3561
3616
|
}
|
3562
|
-
function
|
3617
|
+
function di(e, t) {
|
3563
3618
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3564
|
-
var r = new
|
3619
|
+
var r = new li(e, t).parse();
|
3565
3620
|
if (r.err) {
|
3566
3621
|
var n = SyntaxError(p[r.err.kind]);
|
3567
3622
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3568
3623
|
}
|
3569
|
-
return t?.captureLocation ||
|
3624
|
+
return t?.captureLocation || tt(r.val), r.val;
|
3570
3625
|
}
|
3571
3626
|
var ee;
|
3572
3627
|
(function(e) {
|
@@ -3584,7 +3639,7 @@ var Be = (
|
|
3584
3639
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3585
3640
|
}, t;
|
3586
3641
|
}(Error)
|
3587
|
-
),
|
3642
|
+
), Ot = (
|
3588
3643
|
/** @class */
|
3589
3644
|
function(e) {
|
3590
3645
|
U(t, e);
|
@@ -3593,7 +3648,7 @@ var Be = (
|
|
3593
3648
|
}
|
3594
3649
|
return t;
|
3595
3650
|
}(Be)
|
3596
|
-
),
|
3651
|
+
), bi = (
|
3597
3652
|
/** @class */
|
3598
3653
|
function(e) {
|
3599
3654
|
U(t, e);
|
@@ -3602,7 +3657,7 @@ var Be = (
|
|
3602
3657
|
}
|
3603
3658
|
return t;
|
3604
3659
|
}(Be)
|
3605
|
-
),
|
3660
|
+
), pi = (
|
3606
3661
|
/** @class */
|
3607
3662
|
function(e) {
|
3608
3663
|
U(t, e);
|
@@ -3615,17 +3670,17 @@ var Be = (
|
|
3615
3670
|
(function(e) {
|
3616
3671
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3617
3672
|
})(H || (H = {}));
|
3618
|
-
function
|
3673
|
+
function gi(e) {
|
3619
3674
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3620
3675
|
var n = t[t.length - 1];
|
3621
3676
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3622
3677
|
}, []);
|
3623
3678
|
}
|
3624
|
-
function
|
3679
|
+
function yi(e) {
|
3625
3680
|
return typeof e == "function";
|
3626
3681
|
}
|
3627
3682
|
function Ee(e, t, r, n, i, s, o) {
|
3628
|
-
if (e.length === 1 &&
|
3683
|
+
if (e.length === 1 && wt(e[0]))
|
3629
3684
|
return [
|
3630
3685
|
{
|
3631
3686
|
type: H.literal,
|
@@ -3634,14 +3689,14 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3634
3689
|
];
|
3635
3690
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3636
3691
|
var l = u[h];
|
3637
|
-
if (
|
3692
|
+
if (wt(l)) {
|
3638
3693
|
a.push({
|
3639
3694
|
type: H.literal,
|
3640
3695
|
value: l.value
|
3641
3696
|
});
|
3642
3697
|
continue;
|
3643
3698
|
}
|
3644
|
-
if (
|
3699
|
+
if (Fn(l)) {
|
3645
3700
|
typeof s == "number" && a.push({
|
3646
3701
|
type: H.literal,
|
3647
3702
|
value: r.getNumberFormat(t).format(s)
|
@@ -3650,43 +3705,43 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3650
3705
|
}
|
3651
3706
|
var m = l.value;
|
3652
3707
|
if (!(i && m in i))
|
3653
|
-
throw new
|
3708
|
+
throw new pi(m, o);
|
3654
3709
|
var c = i[m];
|
3655
|
-
if (
|
3710
|
+
if (Dn(l)) {
|
3656
3711
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3657
3712
|
type: typeof c == "string" ? H.literal : H.object,
|
3658
3713
|
value: c
|
3659
3714
|
});
|
3660
3715
|
continue;
|
3661
3716
|
}
|
3662
|
-
if (
|
3663
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
3717
|
+
if (ir(l)) {
|
3718
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ye(l.style) ? l.style.parsedOptions : void 0;
|
3664
3719
|
a.push({
|
3665
3720
|
type: H.literal,
|
3666
3721
|
value: r.getDateTimeFormat(t, d).format(c)
|
3667
3722
|
});
|
3668
3723
|
continue;
|
3669
3724
|
}
|
3670
|
-
if (
|
3671
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
3725
|
+
if (sr(l)) {
|
3726
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ye(l.style) ? l.style.parsedOptions : n.time.medium;
|
3672
3727
|
a.push({
|
3673
3728
|
type: H.literal,
|
3674
3729
|
value: r.getDateTimeFormat(t, d).format(c)
|
3675
3730
|
});
|
3676
3731
|
continue;
|
3677
3732
|
}
|
3678
|
-
if (
|
3679
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
3733
|
+
if (nr(l)) {
|
3734
|
+
var d = typeof l.style == "string" ? n.number[l.style] : hr(l.style) ? l.style.parsedOptions : void 0;
|
3680
3735
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3681
3736
|
type: H.literal,
|
3682
3737
|
value: r.getNumberFormat(t, d).format(c)
|
3683
3738
|
});
|
3684
3739
|
continue;
|
3685
3740
|
}
|
3686
|
-
if (
|
3741
|
+
if (ur(l)) {
|
3687
3742
|
var b = l.children, y = l.value, T = i[y];
|
3688
|
-
if (!
|
3689
|
-
throw new
|
3743
|
+
if (!yi(T))
|
3744
|
+
throw new bi(y, "function", o);
|
3690
3745
|
var C = Ee(b, t, r, n, i, s), N = T(C.map(function(L) {
|
3691
3746
|
return L.value;
|
3692
3747
|
}));
|
@@ -3697,14 +3752,14 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3697
3752
|
};
|
3698
3753
|
}));
|
3699
3754
|
}
|
3700
|
-
if (
|
3755
|
+
if (or(l)) {
|
3701
3756
|
var w = l.options[c] || l.options.other;
|
3702
3757
|
if (!w)
|
3703
|
-
throw new
|
3758
|
+
throw new Ot(l.value, c, Object.keys(l.options), o);
|
3704
3759
|
a.push.apply(a, Ee(w.value, t, r, n, i));
|
3705
3760
|
continue;
|
3706
3761
|
}
|
3707
|
-
if (
|
3762
|
+
if (ar(l)) {
|
3708
3763
|
var w = l.options["=".concat(c)];
|
3709
3764
|
if (!w) {
|
3710
3765
|
if (!Intl.PluralRules)
|
@@ -3715,24 +3770,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3715
3770
|
w = l.options[O] || l.options.other;
|
3716
3771
|
}
|
3717
3772
|
if (!w)
|
3718
|
-
throw new
|
3773
|
+
throw new Ot(l.value, c, Object.keys(l.options), o);
|
3719
3774
|
a.push.apply(a, Ee(w.value, t, r, n, i, c - (l.offset || 0)));
|
3720
3775
|
continue;
|
3721
3776
|
}
|
3722
3777
|
}
|
3723
|
-
return
|
3778
|
+
return gi(a);
|
3724
3779
|
}
|
3725
|
-
function
|
3780
|
+
function vi(e, t) {
|
3726
3781
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3727
3782
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
3728
3783
|
}, {})) : e;
|
3729
3784
|
}
|
3730
|
-
function
|
3785
|
+
function _i(e, t) {
|
3731
3786
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3732
|
-
return r[n] =
|
3787
|
+
return r[n] = vi(e[n], t[n]), r;
|
3733
3788
|
}, v({}, e)) : e;
|
3734
3789
|
}
|
3735
|
-
function
|
3790
|
+
function Fe(e) {
|
3736
3791
|
return {
|
3737
3792
|
create: function() {
|
3738
3793
|
return {
|
@@ -3746,39 +3801,39 @@ function De(e) {
|
|
3746
3801
|
}
|
3747
3802
|
};
|
3748
3803
|
}
|
3749
|
-
function
|
3804
|
+
function Ei(e) {
|
3750
3805
|
return e === void 0 && (e = {
|
3751
3806
|
number: {},
|
3752
3807
|
dateTime: {},
|
3753
3808
|
pluralRules: {}
|
3754
3809
|
}), {
|
3755
|
-
getNumberFormat:
|
3810
|
+
getNumberFormat: Ge(function() {
|
3756
3811
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3757
3812
|
r[n] = arguments[n];
|
3758
3813
|
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
|
3759
3814
|
}, {
|
3760
|
-
cache:
|
3761
|
-
strategy:
|
3815
|
+
cache: Fe(e.number),
|
3816
|
+
strategy: Ue.variadic
|
3762
3817
|
}),
|
3763
|
-
getDateTimeFormat:
|
3818
|
+
getDateTimeFormat: Ge(function() {
|
3764
3819
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3765
3820
|
r[n] = arguments[n];
|
3766
3821
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
|
3767
3822
|
}, {
|
3768
|
-
cache:
|
3769
|
-
strategy:
|
3823
|
+
cache: Fe(e.dateTime),
|
3824
|
+
strategy: Ue.variadic
|
3770
3825
|
}),
|
3771
|
-
getPluralRules:
|
3826
|
+
getPluralRules: Ge(function() {
|
3772
3827
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3773
3828
|
r[n] = arguments[n];
|
3774
3829
|
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
|
3775
3830
|
}, {
|
3776
|
-
cache:
|
3777
|
-
strategy:
|
3831
|
+
cache: Fe(e.pluralRules),
|
3832
|
+
strategy: Ue.variadic
|
3778
3833
|
})
|
3779
3834
|
};
|
3780
3835
|
}
|
3781
|
-
var
|
3836
|
+
var xi = (
|
3782
3837
|
/** @class */
|
3783
3838
|
function() {
|
3784
3839
|
function e(t, r, n, i) {
|
@@ -3810,13 +3865,13 @@ var yi = (
|
|
3810
3865
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3811
3866
|
var o = i || {};
|
3812
3867
|
o.formatters;
|
3813
|
-
var a =
|
3868
|
+
var a = en(o, ["formatters"]);
|
3814
3869
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
3815
3870
|
} else
|
3816
3871
|
this.ast = t;
|
3817
3872
|
if (!Array.isArray(this.ast))
|
3818
3873
|
throw new TypeError("A message must be provided as a String or AST.");
|
3819
|
-
this.formats =
|
3874
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
3820
3875
|
}
|
3821
3876
|
return Object.defineProperty(e, "defaultLocale", {
|
3822
3877
|
get: function() {
|
@@ -3829,7 +3884,7 @@ var yi = (
|
|
3829
3884
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3830
3885
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3831
3886
|
}
|
3832
|
-
}, e.__parse =
|
3887
|
+
}, e.__parse = di, e.formats = {
|
3833
3888
|
number: {
|
3834
3889
|
integer: {
|
3835
3890
|
maximumFractionDigits: 0
|
@@ -3890,7 +3945,7 @@ var yi = (
|
|
3890
3945
|
}, e;
|
3891
3946
|
}()
|
3892
3947
|
);
|
3893
|
-
function
|
3948
|
+
function Si(e, t) {
|
3894
3949
|
if (t == null)
|
3895
3950
|
return;
|
3896
3951
|
if (t in e)
|
@@ -3911,92 +3966,92 @@ function vi(e, t) {
|
|
3911
3966
|
n = void 0;
|
3912
3967
|
return n;
|
3913
3968
|
}
|
3914
|
-
const D = {},
|
3969
|
+
const D = {}, wi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), gr = (e, t) => {
|
3915
3970
|
if (t == null)
|
3916
3971
|
return;
|
3917
3972
|
if (t in D && e in D[t])
|
3918
3973
|
return D[t][e];
|
3919
3974
|
const r = Pe(t);
|
3920
3975
|
for (let n = 0; n < r.length; n++) {
|
3921
|
-
const i = r[n], s =
|
3976
|
+
const i = r[n], s = Hi(i, e);
|
3922
3977
|
if (s)
|
3923
|
-
return
|
3978
|
+
return wi(e, t, s);
|
3924
3979
|
}
|
3925
3980
|
};
|
3926
|
-
let
|
3981
|
+
let at;
|
3927
3982
|
const me = Ae({});
|
3928
|
-
function
|
3929
|
-
return
|
3983
|
+
function Ti(e) {
|
3984
|
+
return at[e] || null;
|
3930
3985
|
}
|
3931
|
-
function
|
3932
|
-
return e in
|
3986
|
+
function yr(e) {
|
3987
|
+
return e in at;
|
3933
3988
|
}
|
3934
|
-
function
|
3935
|
-
if (!
|
3989
|
+
function Hi(e, t) {
|
3990
|
+
if (!yr(e))
|
3936
3991
|
return null;
|
3937
|
-
const r =
|
3938
|
-
return
|
3992
|
+
const r = Ti(e);
|
3993
|
+
return Si(r, t);
|
3939
3994
|
}
|
3940
|
-
function
|
3995
|
+
function Ai(e) {
|
3941
3996
|
if (e == null)
|
3942
3997
|
return;
|
3943
3998
|
const t = Pe(e);
|
3944
3999
|
for (let r = 0; r < t.length; r++) {
|
3945
4000
|
const n = t[r];
|
3946
|
-
if (
|
4001
|
+
if (yr(n))
|
3947
4002
|
return n;
|
3948
4003
|
}
|
3949
4004
|
}
|
3950
|
-
function
|
3951
|
-
delete D[e], me.update((r) => (r[e] =
|
4005
|
+
function vr(e, ...t) {
|
4006
|
+
delete D[e], me.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
|
3952
4007
|
}
|
3953
4008
|
ie(
|
3954
4009
|
[me],
|
3955
4010
|
([e]) => Object.keys(e)
|
3956
4011
|
);
|
3957
|
-
me.subscribe((e) =>
|
4012
|
+
me.subscribe((e) => at = e);
|
3958
4013
|
const xe = {};
|
3959
|
-
function
|
4014
|
+
function Bi(e, t) {
|
3960
4015
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
3961
4016
|
}
|
3962
|
-
function
|
4017
|
+
function _r(e) {
|
3963
4018
|
return xe[e];
|
3964
4019
|
}
|
3965
|
-
function
|
4020
|
+
function Pi(e) {
|
3966
4021
|
return Pe(e).map((t) => {
|
3967
|
-
const r =
|
4022
|
+
const r = _r(t);
|
3968
4023
|
return [t, r ? [...r] : []];
|
3969
4024
|
}).filter(([, t]) => t.length > 0);
|
3970
4025
|
}
|
3971
|
-
function
|
4026
|
+
function rt(e) {
|
3972
4027
|
return e == null ? !1 : Pe(e).some(
|
3973
4028
|
(t) => {
|
3974
4029
|
var r;
|
3975
|
-
return (r =
|
4030
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
3976
4031
|
}
|
3977
4032
|
);
|
3978
4033
|
}
|
3979
|
-
function
|
4034
|
+
function Ni(e, t) {
|
3980
4035
|
return Promise.all(
|
3981
|
-
t.map((n) => (
|
3982
|
-
).then((n) =>
|
4036
|
+
t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
|
4037
|
+
).then((n) => vr(e, ...n));
|
3983
4038
|
}
|
3984
4039
|
const oe = {};
|
3985
|
-
function
|
3986
|
-
if (!
|
4040
|
+
function Er(e) {
|
4041
|
+
if (!rt(e))
|
3987
4042
|
return e in oe ? oe[e] : Promise.resolve();
|
3988
|
-
const t =
|
4043
|
+
const t = Pi(e);
|
3989
4044
|
return oe[e] = Promise.all(
|
3990
4045
|
t.map(
|
3991
|
-
([r, n]) =>
|
4046
|
+
([r, n]) => Ni(r, n)
|
3992
4047
|
)
|
3993
4048
|
).then(() => {
|
3994
|
-
if (
|
3995
|
-
return
|
4049
|
+
if (rt(e))
|
4050
|
+
return Er(e);
|
3996
4051
|
delete oe[e];
|
3997
4052
|
}), oe[e];
|
3998
4053
|
}
|
3999
|
-
const
|
4054
|
+
const Oi = {
|
4000
4055
|
number: {
|
4001
4056
|
scientific: { notation: "scientific" },
|
4002
4057
|
engineering: { notation: "engineering" },
|
@@ -4025,57 +4080,57 @@ const Ai = {
|
|
4025
4080
|
timeZoneName: "short"
|
4026
4081
|
}
|
4027
4082
|
}
|
4028
|
-
},
|
4083
|
+
}, Li = {
|
4029
4084
|
fallbackLocale: null,
|
4030
4085
|
loadingDelay: 200,
|
4031
|
-
formats:
|
4086
|
+
formats: Oi,
|
4032
4087
|
warnOnMissingMessages: !0,
|
4033
4088
|
handleMissingMessage: void 0,
|
4034
4089
|
ignoreTag: !0
|
4035
|
-
},
|
4090
|
+
}, Ii = Li;
|
4036
4091
|
function te() {
|
4037
|
-
return
|
4092
|
+
return Ii;
|
4038
4093
|
}
|
4039
|
-
const
|
4040
|
-
var
|
4094
|
+
const $e = Ae(!1);
|
4095
|
+
var Ci = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
|
4041
4096
|
for (var r in t || (t = {}))
|
4042
|
-
|
4043
|
-
if (
|
4044
|
-
for (var r of
|
4045
|
-
|
4097
|
+
Gi.call(t, r) && It(e, r, t[r]);
|
4098
|
+
if (Lt)
|
4099
|
+
for (var r of Lt(t))
|
4100
|
+
Ui.call(t, r) && It(e, r, t[r]);
|
4046
4101
|
return e;
|
4047
|
-
},
|
4048
|
-
let
|
4102
|
+
}, Fi = (e, t) => Mi(e, Ri(t));
|
4103
|
+
let nt;
|
4049
4104
|
const Se = Ae(null);
|
4050
|
-
function
|
4105
|
+
function Ct(e) {
|
4051
4106
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4052
4107
|
}
|
4053
4108
|
function Pe(e, t = te().fallbackLocale) {
|
4054
|
-
const r =
|
4055
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4109
|
+
const r = Ct(e);
|
4110
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
4056
4111
|
}
|
4057
4112
|
function V() {
|
4058
|
-
return
|
4113
|
+
return nt ?? void 0;
|
4059
4114
|
}
|
4060
4115
|
Se.subscribe((e) => {
|
4061
|
-
|
4116
|
+
nt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4062
4117
|
});
|
4063
|
-
const
|
4064
|
-
if (e &&
|
4118
|
+
const $i = (e) => {
|
4119
|
+
if (e && Ai(e) && rt(e)) {
|
4065
4120
|
const { loadingDelay: t } = te();
|
4066
4121
|
let r;
|
4067
4122
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
4068
|
-
() =>
|
4123
|
+
() => $e.set(!0),
|
4069
4124
|
t
|
4070
|
-
) :
|
4125
|
+
) : $e.set(!0), Er(e).then(() => {
|
4071
4126
|
Se.set(e);
|
4072
4127
|
}).finally(() => {
|
4073
|
-
clearTimeout(r),
|
4128
|
+
clearTimeout(r), $e.set(!1);
|
4074
4129
|
});
|
4075
4130
|
}
|
4076
4131
|
return Se.set(e);
|
4077
|
-
}, de =
|
4078
|
-
set:
|
4132
|
+
}, de = Fi(Di({}, Se), {
|
4133
|
+
set: $i
|
4079
4134
|
}), Ne = (e) => {
|
4080
4135
|
const t = /* @__PURE__ */ Object.create(null);
|
4081
4136
|
return (n) => {
|
@@ -4083,20 +4138,20 @@ const Gi = (e) => {
|
|
4083
4138
|
return i in t ? t[i] : t[i] = e(n);
|
4084
4139
|
};
|
4085
4140
|
};
|
4086
|
-
var
|
4141
|
+
var ji = Object.defineProperty, we = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
|
4087
4142
|
for (var r in t || (t = {}))
|
4088
|
-
|
4143
|
+
xr.call(t, r) && Mt(e, r, t[r]);
|
4089
4144
|
if (we)
|
4090
4145
|
for (var r of we(t))
|
4091
|
-
|
4146
|
+
Sr.call(t, r) && Mt(e, r, t[r]);
|
4092
4147
|
return e;
|
4093
4148
|
}, se = (e, t) => {
|
4094
4149
|
var r = {};
|
4095
4150
|
for (var n in e)
|
4096
|
-
|
4151
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4097
4152
|
if (e != null && we)
|
4098
4153
|
for (var n of we(e))
|
4099
|
-
t.indexOf(n) < 0 &&
|
4154
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
4100
4155
|
return r;
|
4101
4156
|
};
|
4102
4157
|
const le = (e, t) => {
|
@@ -4104,21 +4159,21 @@ const le = (e, t) => {
|
|
4104
4159
|
if (e in r && t in r[e])
|
4105
4160
|
return r[e][t];
|
4106
4161
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4107
|
-
},
|
4162
|
+
}, ki = Ne(
|
4108
4163
|
(e) => {
|
4109
4164
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4110
4165
|
if (r == null)
|
4111
4166
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4112
4167
|
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
4113
4168
|
}
|
4114
|
-
),
|
4169
|
+
), Vi = Ne(
|
4115
4170
|
(e) => {
|
4116
4171
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4117
4172
|
if (r == null)
|
4118
4173
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4119
4174
|
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
4120
4175
|
}
|
4121
|
-
),
|
4176
|
+
), Xi = Ne(
|
4122
4177
|
(e) => {
|
4123
4178
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4124
4179
|
if (r == null)
|
@@ -4127,33 +4182,33 @@ const le = (e, t) => {
|
|
4127
4182
|
);
|
4128
4183
|
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
4129
4184
|
}
|
4130
|
-
),
|
4185
|
+
), Wi = (e = {}) => {
|
4131
4186
|
var t = e, {
|
4132
4187
|
locale: r = V()
|
4133
4188
|
} = t, n = se(t, [
|
4134
4189
|
"locale"
|
4135
4190
|
]);
|
4136
|
-
return
|
4137
|
-
},
|
4191
|
+
return ki(ut({ locale: r }, n));
|
4192
|
+
}, zi = (e = {}) => {
|
4138
4193
|
var t = e, {
|
4139
4194
|
locale: r = V()
|
4140
4195
|
} = t, n = se(t, [
|
4141
4196
|
"locale"
|
4142
4197
|
]);
|
4143
|
-
return
|
4144
|
-
},
|
4198
|
+
return Vi(ut({ locale: r }, n));
|
4199
|
+
}, Zi = (e = {}) => {
|
4145
4200
|
var t = e, {
|
4146
4201
|
locale: r = V()
|
4147
4202
|
} = t, n = se(t, [
|
4148
4203
|
"locale"
|
4149
4204
|
]);
|
4150
|
-
return
|
4151
|
-
},
|
4205
|
+
return Xi(ut({ locale: r }, n));
|
4206
|
+
}, Qi = Ne(
|
4152
4207
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4153
|
-
(e, t = V()) => new
|
4208
|
+
(e, t = V()) => new xi(e, t, te().formats, {
|
4154
4209
|
ignoreTag: te().ignoreTag
|
4155
4210
|
})
|
4156
|
-
),
|
4211
|
+
), Yi = (e, t = {}) => {
|
4157
4212
|
var r, n, i, s;
|
4158
4213
|
let o = t;
|
4159
4214
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -4166,7 +4221,7 @@ const le = (e, t) => {
|
|
4166
4221
|
throw new Error(
|
4167
4222
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4168
4223
|
);
|
4169
|
-
let l =
|
4224
|
+
let l = gr(e, h);
|
4170
4225
|
if (!l)
|
4171
4226
|
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;
|
4172
4227
|
else if (typeof l != "string")
|
@@ -4177,7 +4232,7 @@ const le = (e, t) => {
|
|
4177
4232
|
return l;
|
4178
4233
|
let m = l;
|
4179
4234
|
try {
|
4180
|
-
m =
|
4235
|
+
m = Qi(l, h).format(a);
|
4181
4236
|
} catch (c) {
|
4182
4237
|
c instanceof Error && console.warn(
|
4183
4238
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -4185,20 +4240,20 @@ const le = (e, t) => {
|
|
4185
4240
|
);
|
4186
4241
|
}
|
4187
4242
|
return m;
|
4188
|
-
},
|
4189
|
-
ie([de], () =>
|
4190
|
-
ie([de], () =>
|
4191
|
-
ie([de], () =>
|
4192
|
-
ie([de, me], () =>
|
4193
|
-
window.emWidgets = { topic:
|
4194
|
-
const
|
4195
|
-
function
|
4243
|
+
}, qi = (e, t) => Zi(t).format(e), Ji = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), es = (e, t = V()) => gr(e, t), ts = ie([de, me], () => Yi);
|
4244
|
+
ie([de], () => qi);
|
4245
|
+
ie([de], () => Ji);
|
4246
|
+
ie([de], () => Ki);
|
4247
|
+
ie([de, me], () => es);
|
4248
|
+
window.emWidgets = { topic: bn };
|
4249
|
+
const rs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4250
|
+
function ns(e, t) {
|
4196
4251
|
if (e) {
|
4197
4252
|
const r = document.createElement("style");
|
4198
4253
|
r.innerHTML = t, e.appendChild(r);
|
4199
4254
|
}
|
4200
4255
|
}
|
4201
|
-
function
|
4256
|
+
function is(e, t) {
|
4202
4257
|
const r = new URL(t);
|
4203
4258
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4204
4259
|
const i = document.createElement("style");
|
@@ -4207,7 +4262,7 @@ function es(e, t) {
|
|
4207
4262
|
console.error("There was an error while trying to load client styling from URL", n);
|
4208
4263
|
});
|
4209
4264
|
}
|
4210
|
-
function
|
4265
|
+
function ss(e, t, r) {
|
4211
4266
|
if (window.emMessageBus) {
|
4212
4267
|
const n = document.createElement("style");
|
4213
4268
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4215,10 +4270,10 @@ function ts(e, t, r) {
|
|
4215
4270
|
});
|
4216
4271
|
}
|
4217
4272
|
}
|
4218
|
-
function
|
4219
|
-
|
4273
|
+
function Rt(e, t) {
|
4274
|
+
vr(e, t);
|
4220
4275
|
}
|
4221
|
-
const
|
4276
|
+
const Gt = {
|
4222
4277
|
en: {
|
4223
4278
|
lobbyName: "Lobby",
|
4224
4279
|
myGamesName: "My games"
|
@@ -4304,14 +4359,14 @@ if (typeof window < "u") {
|
|
4304
4359
|
}
|
4305
4360
|
};
|
4306
4361
|
};
|
4307
|
-
customElements.define = e(customElements.define), import("./CasinoSlider-
|
4362
|
+
customElements.define = e(customElements.define), import("./CasinoSlider-DUHx05Lk.js").then(({ default: t }) => {
|
4308
4363
|
!customElements.get("casino-slider") && customElements.define("casino-slider", t.element);
|
4309
4364
|
});
|
4310
4365
|
}
|
4311
|
-
function
|
4312
|
-
|
4366
|
+
function os(e) {
|
4367
|
+
Rr(e, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
|
4313
4368
|
}
|
4314
|
-
function
|
4369
|
+
function as(e) {
|
4315
4370
|
let t, r, n, i;
|
4316
4371
|
return {
|
4317
4372
|
c() {
|
@@ -4330,7 +4385,7 @@ function ns(e) {
|
|
4330
4385
|
"endpoint",
|
4331
4386
|
/*endpoint*/
|
4332
4387
|
e[1]
|
4333
|
-
), _(r, "identity",
|
4388
|
+
), _(r, "identity", it), _(
|
4334
4389
|
r,
|
4335
4390
|
"favoritesnumber",
|
4336
4391
|
/*numberOfFavoredGames*/
|
@@ -4388,7 +4443,7 @@ function ns(e) {
|
|
4388
4443
|
), fe(t, "class", "CasinoCategoriesContainer svelte-2g6deg");
|
4389
4444
|
},
|
4390
4445
|
m(s, o) {
|
4391
|
-
ce(s, t, o),
|
4446
|
+
ce(s, t, o), $t(t, r), n || (i = Mr(
|
4392
4447
|
/*sendSliderData*/
|
4393
4448
|
e[17].call(null, r)
|
4394
4449
|
), n = !0);
|
@@ -4485,7 +4540,7 @@ function ns(e) {
|
|
4485
4540
|
}
|
4486
4541
|
};
|
4487
4542
|
}
|
4488
|
-
function
|
4543
|
+
function us(e) {
|
4489
4544
|
let t;
|
4490
4545
|
return {
|
4491
4546
|
c() {
|
@@ -4500,7 +4555,7 @@ function is(e) {
|
|
4500
4555
|
}
|
4501
4556
|
};
|
4502
4557
|
}
|
4503
|
-
function
|
4558
|
+
function hs(e) {
|
4504
4559
|
let t;
|
4505
4560
|
return {
|
4506
4561
|
c() {
|
@@ -4515,14 +4570,14 @@ function ss(e) {
|
|
4515
4570
|
}
|
4516
4571
|
};
|
4517
4572
|
}
|
4518
|
-
function
|
4573
|
+
function ls(e) {
|
4519
4574
|
let t;
|
4520
4575
|
function r(s, o) {
|
4521
4576
|
return (
|
4522
4577
|
/*isLoading*/
|
4523
|
-
s[13] ||
|
4578
|
+
s[13] || cs || fs ? hs : (
|
4524
4579
|
/*hasErrors*/
|
4525
|
-
s[15] ?
|
4580
|
+
s[15] ? us : as
|
4526
4581
|
)
|
4527
4582
|
);
|
4528
4583
|
}
|
@@ -4544,47 +4599,47 @@ function os(e) {
|
|
4544
4599
|
}
|
4545
4600
|
};
|
4546
4601
|
}
|
4547
|
-
let
|
4548
|
-
function
|
4602
|
+
let it = "CasinoSliderData", cs = !1, fs = !1;
|
4603
|
+
function ms(e, t, r) {
|
4549
4604
|
let n;
|
4550
|
-
|
4551
|
-
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, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: N = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: L = "" } = t, { lobbyiconimage: M = "" } = t, { mygamesiconimage: E = "" } = t, { mbsource: A } = t, I, F, $ = !0, X, W = [], j = !1,
|
4552
|
-
const
|
4605
|
+
Cr(e, ts, (f) => r(33, n = f));
|
4606
|
+
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, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: N = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: L = "" } = t, { lobbyiconimage: M = "" } = t, { mygamesiconimage: E = "" } = t, { mbsource: A } = t, I, F, ht, $ = !0, X, W = [], j = !1, wr = window.navigator.userAgent, R, lt, ct = !1, Oe = !1;
|
4607
|
+
const Tr = () => {
|
4553
4608
|
fetch(O).then((B) => B.json()).then((B) => {
|
4554
4609
|
Object.keys(B).forEach((be) => {
|
4555
|
-
|
4610
|
+
Rt(be, B[be]);
|
4556
4611
|
});
|
4557
4612
|
}).catch((B) => {
|
4558
4613
|
console.log(B);
|
4559
4614
|
});
|
4560
4615
|
};
|
4561
|
-
Object.keys(
|
4562
|
-
|
4616
|
+
Object.keys(Gt).forEach((f) => {
|
4617
|
+
Rt(f, Gt[f]);
|
4563
4618
|
});
|
4564
|
-
const
|
4565
|
-
|
4619
|
+
const Hr = () => {
|
4620
|
+
ct == !1 && (m == "true" || u == "true" || l == "true") && W.splice(1, 0, {
|
4566
4621
|
// @ts-ignore
|
4567
4622
|
id: "MYGAMES",
|
4568
|
-
name:
|
4623
|
+
name: F,
|
4569
4624
|
href: "",
|
4570
4625
|
games: []
|
4571
|
-
}),
|
4572
|
-
},
|
4573
|
-
if (
|
4626
|
+
}), kr(), ct = !0, r(26, Oe = !0), Le();
|
4627
|
+
}, Ar = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, $ = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, $ = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, $ = !1), console.error(X)), j), Br = () => {
|
4628
|
+
if (F = n("myGamesName"), ht = n("lobbyName"), !Ar()) {
|
4574
4629
|
let f = new URL(`${i}/v1/casino/groups/${s}`);
|
4575
|
-
f.searchParams.append("datasource", s), f.searchParams.append("language", o), f.searchParams.append("platform",
|
4630
|
+
f.searchParams.append("datasource", s), f.searchParams.append("language", o), f.searchParams.append("platform", rs(wr)), fetch(f).then((B) => B.json()).then(
|
4576
4631
|
(B) => {
|
4577
|
-
let be = w.split(","),
|
4632
|
+
let be = w.split(","), Or = B.items.filter((mt) => {
|
4578
4633
|
let Ie = !1;
|
4579
|
-
if (
|
4580
|
-
for (let
|
4581
|
-
|
4634
|
+
if (mt.games.total > 0 && (Ie = !0, w))
|
4635
|
+
for (let Lr of be)
|
4636
|
+
mt.flags == Lr && (Ie = !1);
|
4582
4637
|
return Ie;
|
4583
4638
|
});
|
4584
|
-
W = [], W = W.concat(
|
4639
|
+
W = [], W = W.concat(Or), W.unshift({
|
4585
4640
|
// @ts-ignore
|
4586
4641
|
id: "LOBBY",
|
4587
|
-
name:
|
4642
|
+
name: ht,
|
4588
4643
|
href: "",
|
4589
4644
|
games: []
|
4590
4645
|
}), r(13, $ = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
@@ -4596,26 +4651,26 @@ function hs(e, t, r) {
|
|
4596
4651
|
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
4597
4652
|
});
|
4598
4653
|
}
|
4599
|
-
},
|
4654
|
+
}, Pr = () => {
|
4600
4655
|
let f = b.split("$");
|
4601
4656
|
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
4602
4657
|
}, Le = () => {
|
4603
4658
|
window.postMessage(
|
4604
4659
|
{
|
4605
4660
|
type: "SliderData",
|
4606
|
-
identity:
|
4661
|
+
identity: it,
|
4607
4662
|
data: W
|
4608
4663
|
},
|
4609
4664
|
window.location.href
|
4610
4665
|
);
|
4611
|
-
},
|
4612
|
-
f.data && f.data.type == "SliderLoaded" &&
|
4666
|
+
}, ft = (f) => {
|
4667
|
+
f.data && f.data.type == "SliderLoaded" && it == f.data.identity && Le();
|
4613
4668
|
};
|
4614
|
-
|
4615
|
-
window.removeEventListener("message",
|
4669
|
+
jr(() => (window.addEventListener("message", ft, !1), () => {
|
4670
|
+
window.emMessageBus && I && I.unsubscribe(), window.removeEventListener("message", ft);
|
4616
4671
|
}));
|
4617
|
-
function
|
4618
|
-
|
4672
|
+
function Nr(f) {
|
4673
|
+
je[f ? "unshift" : "push"](() => {
|
4619
4674
|
R = f, r(14, R);
|
4620
4675
|
});
|
4621
4676
|
}
|
@@ -4623,14 +4678,14 @@ function hs(e, t, r) {
|
|
4623
4678
|
"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(18, a = f.userid), "session" in f && r(19, h = f.session), "mostplayed" in f && r(20, u = f.mostplayed), "lastplayed" in f && r(21, l = f.lastplayed), "favorites" in f && r(22, m = f.favorites), "clientstyling" in f && r(4, c = f.clientstyling), "clientstylingurl" in f && r(5, d = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(6, y = f.actionevent), "sessioncheck" in f && r(23, T = f.sessioncheck), "location" in f && r(7, C = f.location), "showsubgroups" in f && r(8, N = f.showsubgroups), "filteredcategories" in f && r(24, w = f.filteredcategories), "translationurl" in f && r(25, O = f.translationurl), "categoriesicon" in f && r(9, L = f.categoriesicon), "lobbyiconimage" in f && r(10, M = f.lobbyiconimage), "mygamesiconimage" in f && r(11, E = f.mygamesiconimage), "mbsource" in f && r(12, A = f.mbsource);
|
4624
4679
|
}, e.$$.update = () => {
|
4625
4680
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4626
|
-
14 && i && s && o &&
|
4627
|
-
7872514 && i && h && (u || l || m) && !$ &&
|
4628
|
-
67641345 && !$ && b && (!h || Oe) &&
|
4629
|
-
33554432 && O &&
|
4630
|
-
16400 && c && R &&
|
4631
|
-
16416 && d && R &&
|
4632
|
-
20480 && R &&
|
4633
|
-
}, r(16,
|
4681
|
+
14 && i && s && o && Br(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
4682
|
+
7872514 && i && h && (u || l || m) && !$ && Hr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
4683
|
+
67641345 && !$ && b && (!h || Oe) && Pr(), e.$$.dirty[0] & /*translationurl*/
|
4684
|
+
33554432 && O && Tr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4685
|
+
16400 && c && R && ns(R, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4686
|
+
16416 && d && R && is(R, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4687
|
+
20480 && R && ss(R, `${A}.Style`);
|
4688
|
+
}, r(16, lt = 0), [
|
4634
4689
|
b,
|
4635
4690
|
i,
|
4636
4691
|
s,
|
@@ -4647,7 +4702,7 @@ function hs(e, t, r) {
|
|
4647
4702
|
$,
|
4648
4703
|
R,
|
4649
4704
|
j,
|
4650
|
-
|
4705
|
+
lt,
|
4651
4706
|
Le,
|
4652
4707
|
a,
|
4653
4708
|
h,
|
@@ -4658,17 +4713,17 @@ function hs(e, t, r) {
|
|
4658
4713
|
w,
|
4659
4714
|
O,
|
4660
4715
|
Oe,
|
4661
|
-
|
4716
|
+
Nr
|
4662
4717
|
];
|
4663
4718
|
}
|
4664
|
-
class
|
4719
|
+
class ds extends Jr {
|
4665
4720
|
constructor(t) {
|
4666
|
-
super(),
|
4721
|
+
super(), Yr(
|
4667
4722
|
this,
|
4668
4723
|
t,
|
4669
|
-
|
4670
|
-
|
4671
|
-
|
4724
|
+
ms,
|
4725
|
+
ls,
|
4726
|
+
Dt,
|
4672
4727
|
{
|
4673
4728
|
endpoint: 1,
|
4674
4729
|
datasource: 2,
|
@@ -4692,7 +4747,7 @@ class ls extends zr {
|
|
4692
4747
|
mygamesiconimage: 11,
|
4693
4748
|
mbsource: 12
|
4694
4749
|
},
|
4695
|
-
|
4750
|
+
os,
|
4696
4751
|
[-1, -1]
|
4697
4752
|
);
|
4698
4753
|
}
|
@@ -4823,38 +4878,38 @@ class ls extends zr {
|
|
4823
4878
|
this.$$set({ mbsource: t }), S();
|
4824
4879
|
}
|
4825
4880
|
}
|
4826
|
-
|
4881
|
+
qr(ds, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4827
4882
|
export {
|
4828
4883
|
de as $,
|
4829
|
-
|
4830
|
-
|
4831
|
-
|
4832
|
-
|
4833
|
-
|
4884
|
+
ps as A,
|
4885
|
+
jt as B,
|
4886
|
+
_s as C,
|
4887
|
+
ds as D,
|
4888
|
+
Jr as S,
|
4834
4889
|
me as a,
|
4835
|
-
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4890
|
+
vr as b,
|
4891
|
+
qr as c,
|
4892
|
+
Rr as d,
|
4893
|
+
k as e,
|
4839
4894
|
S as f,
|
4840
|
-
|
4841
|
-
|
4842
|
-
|
4843
|
-
|
4844
|
-
k,
|
4845
|
-
|
4846
|
-
|
4895
|
+
gs as g,
|
4896
|
+
fe as h,
|
4897
|
+
Yr as i,
|
4898
|
+
ce as j,
|
4899
|
+
$t as k,
|
4900
|
+
vs as l,
|
4901
|
+
ne as m,
|
4847
4902
|
P as n,
|
4848
|
-
|
4849
|
-
|
4850
|
-
|
4903
|
+
jr as o,
|
4904
|
+
is as p,
|
4905
|
+
ss as q,
|
4851
4906
|
re as r,
|
4852
|
-
|
4853
|
-
|
4854
|
-
|
4855
|
-
|
4856
|
-
|
4857
|
-
|
4858
|
-
|
4859
|
-
|
4907
|
+
Dt as s,
|
4908
|
+
Es as t,
|
4909
|
+
ys as u,
|
4910
|
+
Ss as v,
|
4911
|
+
bs as w,
|
4912
|
+
je as x,
|
4913
|
+
ns as y,
|
4914
|
+
xs as z
|
4860
4915
|
};
|