@everymatrix/casino-categories-vendor-bar 1.77.20 → 1.77.22
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/{CasinoCategoriesVendorBar-4-CrahYH.js → CasinoCategoriesVendorBar-Bt5i-Va9.js} +906 -863
- package/components/{CasinoCategoriesVendorBar-BA8kCeqw.js → CasinoCategoriesVendorBar-CNYocAMP.js} +942 -899
- package/components/CasinoCategoriesVendorBar-DhkOvI_O.cjs +18 -0
- package/es2015/casino-categories-vendor-bar.cjs +1 -1
- package/es2015/casino-categories-vendor-bar.js +1 -1
- package/esnext/casino-categories-vendor-bar.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesVendorBar-BMNv3a09.cjs +0 -18
package/components/{CasinoCategoriesVendorBar-4-CrahYH.js → CasinoCategoriesVendorBar-Bt5i-Va9.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function D() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Xt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function pt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function X(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Xt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Te(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function zt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let me;
|
|
19
19
|
function Ee(e, t) {
|
|
20
20
|
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Dr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function $r(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -34,14 +34,14 @@ function Lr(e, ...t) {
|
|
|
34
34
|
function H(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function kr(e, t, r) {
|
|
38
|
+
const n = Gr(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
40
|
const i = S("style");
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
41
|
+
i.id = t, i.textContent = r, Fr(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Gr(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,7 +51,7 @@ function Rr(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Fr(e, t) {
|
|
55
55
|
return H(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
@@ -70,26 +70,26 @@ function S(e) {
|
|
|
70
70
|
function pe(e) {
|
|
71
71
|
return document.createTextNode(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function F() {
|
|
74
74
|
return pe(" ");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function at() {
|
|
77
77
|
return pe("");
|
|
78
78
|
}
|
|
79
79
|
function J(e, t, r, n) {
|
|
80
80
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function x(e, t, r) {
|
|
83
83
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function jr(e) {
|
|
86
86
|
return Array.from(e.childNodes);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function ut(e, t) {
|
|
89
89
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
90
90
|
t);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Vr(e) {
|
|
93
93
|
const t = {};
|
|
94
94
|
return e.childNodes.forEach(
|
|
95
95
|
/** @param {Element} node */
|
|
@@ -98,158 +98,158 @@ function $r(e) {
|
|
|
98
98
|
}
|
|
99
99
|
), t;
|
|
100
100
|
}
|
|
101
|
-
let
|
|
102
|
-
function
|
|
103
|
-
|
|
101
|
+
let he;
|
|
102
|
+
function le(e) {
|
|
103
|
+
he = e;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
105
|
+
function Wr() {
|
|
106
|
+
if (!he)
|
|
107
107
|
throw new Error("Function called outside component initialization");
|
|
108
|
-
return
|
|
108
|
+
return he;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
110
|
+
function Xr(e) {
|
|
111
|
+
Wr().$$.on_mount.push(e);
|
|
112
112
|
}
|
|
113
113
|
const q = [], K = [];
|
|
114
114
|
let ee = [];
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
115
|
+
const dt = [], zr = /* @__PURE__ */ Promise.resolve();
|
|
116
|
+
let Ve = !1;
|
|
117
|
+
function Zr() {
|
|
118
|
+
Ve || (Ve = !0, zr.then(R));
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function We(e) {
|
|
121
121
|
ee.push(e);
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const Re = /* @__PURE__ */ new Set();
|
|
124
124
|
let Q = 0;
|
|
125
125
|
function R() {
|
|
126
126
|
if (Q !== 0)
|
|
127
127
|
return;
|
|
128
|
-
const e =
|
|
128
|
+
const e = he;
|
|
129
129
|
do {
|
|
130
130
|
try {
|
|
131
131
|
for (; Q < q.length; ) {
|
|
132
132
|
const t = q[Q];
|
|
133
|
-
Q++,
|
|
133
|
+
Q++, le(t), Qr(t.$$);
|
|
134
134
|
}
|
|
135
135
|
} catch (t) {
|
|
136
136
|
throw q.length = 0, Q = 0, t;
|
|
137
137
|
}
|
|
138
|
-
for (
|
|
138
|
+
for (le(null), q.length = 0, Q = 0; K.length; )
|
|
139
139
|
K.pop()();
|
|
140
140
|
for (let t = 0; t < ee.length; t += 1) {
|
|
141
141
|
const r = ee[t];
|
|
142
|
-
|
|
142
|
+
Re.has(r) || (Re.add(r), r());
|
|
143
143
|
}
|
|
144
144
|
ee.length = 0;
|
|
145
145
|
} while (q.length);
|
|
146
|
-
for (;
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
for (; dt.length; )
|
|
147
|
+
dt.pop()();
|
|
148
|
+
Ve = !1, Re.clear(), le(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Qr(e) {
|
|
151
151
|
if (e.fragment !== null) {
|
|
152
152
|
e.update(), X(e.before_update);
|
|
153
153
|
const t = e.dirty;
|
|
154
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
154
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Yr(e) {
|
|
158
158
|
const t = [], r = [];
|
|
159
159
|
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
function
|
|
163
|
-
e && e.i && (
|
|
161
|
+
const qr = /* @__PURE__ */ new Set();
|
|
162
|
+
function Zt(e, t) {
|
|
163
|
+
e && e.i && (qr.delete(e), e.i(t));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function mt(e) {
|
|
166
166
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Jr(e, t) {
|
|
169
169
|
e.d(1), t.delete(e.key);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
let f = e.length, m = o.length,
|
|
171
|
+
function Kr(e, t, r, n, i, o, s, a, u, l, h, c) {
|
|
172
|
+
let f = e.length, m = o.length, d = f;
|
|
173
173
|
const b = {};
|
|
174
|
-
for (;
|
|
175
|
-
b[e[
|
|
174
|
+
for (; d--; )
|
|
175
|
+
b[e[d].key] = d;
|
|
176
176
|
const T = [], L = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = [];
|
|
177
|
-
for (
|
|
178
|
-
const g = c(i, o,
|
|
177
|
+
for (d = m; d--; ) {
|
|
178
|
+
const g = c(i, o, d), $ = r(g);
|
|
179
179
|
let k = s.get($);
|
|
180
|
-
k ? A.push(() => k.p(g, t)) : (k =
|
|
180
|
+
k ? A.push(() => k.p(g, t)) : (k = l($, g), k.c()), L.set($, T[d] = k), $ in b && P.set($, Math.abs(d - b[$]));
|
|
181
181
|
}
|
|
182
182
|
const O = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
183
183
|
function N(g) {
|
|
184
|
-
|
|
184
|
+
Zt(g, 1), g.m(a, h), s.set(g.key, g), h = g.first, m--;
|
|
185
185
|
}
|
|
186
186
|
for (; f && m; ) {
|
|
187
187
|
const g = T[m - 1], $ = e[f - 1], k = g.key, Z = $.key;
|
|
188
|
-
g === $ ? (h = g.first, f--, m--) : L.has(Z) ? !s.has(k) || O.has(k) ? N(g) : w.has(Z) ? f-- : P.get(k) > P.get(Z) ? (w.add(k), N(g)) : (O.add(Z), f--) : (
|
|
188
|
+
g === $ ? (h = g.first, f--, m--) : L.has(Z) ? !s.has(k) || O.has(k) ? N(g) : w.has(Z) ? f-- : P.get(k) > P.get(Z) ? (w.add(k), N(g)) : (O.add(Z), f--) : (u($, s), f--);
|
|
189
189
|
}
|
|
190
190
|
for (; f--; ) {
|
|
191
191
|
const g = e[f];
|
|
192
|
-
L.has(g.key) ||
|
|
192
|
+
L.has(g.key) || u(g, s);
|
|
193
193
|
}
|
|
194
194
|
for (; m; )
|
|
195
195
|
N(T[m - 1]);
|
|
196
196
|
return X(A), T;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function en(e, t, r) {
|
|
199
199
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const o = e.$$.on_mount.map(
|
|
200
|
+
n && n.m(t, r), We(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(Xt).filter(Te);
|
|
202
202
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : X(o), e.$$.on_mount = [];
|
|
203
|
-
}), i.forEach(
|
|
203
|
+
}), i.forEach(We);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function tn(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Yr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
209
|
+
function rn(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (q.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
const
|
|
212
|
+
function nn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
213
|
+
const u = he;
|
|
214
|
+
le(e);
|
|
215
|
+
const l = e.$$ = {
|
|
216
216
|
fragment: null,
|
|
217
217
|
ctx: [],
|
|
218
218
|
// state
|
|
219
219
|
props: o,
|
|
220
220
|
update: D,
|
|
221
221
|
not_equal: i,
|
|
222
|
-
bound:
|
|
222
|
+
bound: pt(),
|
|
223
223
|
// lifecycle
|
|
224
224
|
on_mount: [],
|
|
225
225
|
on_destroy: [],
|
|
226
226
|
on_disconnect: [],
|
|
227
227
|
before_update: [],
|
|
228
228
|
after_update: [],
|
|
229
|
-
context: new Map(t.context || (
|
|
229
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
230
230
|
// everything else
|
|
231
|
-
callbacks:
|
|
231
|
+
callbacks: pt(),
|
|
232
232
|
dirty: a,
|
|
233
233
|
skip_bound: !1,
|
|
234
|
-
root: t.target ||
|
|
234
|
+
root: t.target || u.$$.root
|
|
235
235
|
};
|
|
236
|
-
s && s(
|
|
236
|
+
s && s(l.root);
|
|
237
237
|
let h = !1;
|
|
238
|
-
if (
|
|
239
|
-
const
|
|
240
|
-
return
|
|
241
|
-
}) : [],
|
|
238
|
+
if (l.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
239
|
+
const d = m.length ? m[0] : f;
|
|
240
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && rn(e, c)), f;
|
|
241
|
+
}) : [], l.update(), h = !0, X(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
242
242
|
if (t.hydrate) {
|
|
243
|
-
const c =
|
|
244
|
-
|
|
243
|
+
const c = jr(t.target);
|
|
244
|
+
l.fragment && l.fragment.l(c), c.forEach(I);
|
|
245
245
|
} else
|
|
246
|
-
|
|
247
|
-
t.intro &&
|
|
246
|
+
l.fragment && l.fragment.c();
|
|
247
|
+
t.intro && Zt(e.$$.fragment), en(e, t.target, t.anchor), R();
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
le(u);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let Qt;
|
|
252
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
253
253
|
/** The Svelte component constructor */
|
|
254
254
|
$$ctor;
|
|
255
255
|
/** Slots */
|
|
@@ -291,24 +291,24 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
291
291
|
let o;
|
|
292
292
|
return {
|
|
293
293
|
c: function() {
|
|
294
|
-
o = S("slot"), i !== "default" &&
|
|
294
|
+
o = S("slot"), i !== "default" && x(o, "name", i);
|
|
295
295
|
},
|
|
296
296
|
/**
|
|
297
297
|
* @param {HTMLElement} target
|
|
298
298
|
* @param {HTMLElement} [anchor]
|
|
299
299
|
*/
|
|
300
|
-
m: function(
|
|
301
|
-
B(
|
|
300
|
+
m: function(u, l) {
|
|
301
|
+
B(u, o, l);
|
|
302
302
|
},
|
|
303
|
-
d: function(
|
|
304
|
-
|
|
303
|
+
d: function(u) {
|
|
304
|
+
u && I(o);
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const t = {}, r =
|
|
311
|
+
const t = {}, r = Vr(this);
|
|
312
312
|
for (const i of this.$$s)
|
|
313
313
|
i in r && (t[i] = [e(i)]);
|
|
314
314
|
for (const i of this.attributes) {
|
|
@@ -395,8 +395,8 @@ function ve(e, t, r, n) {
|
|
|
395
395
|
return t;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
let s = class extends
|
|
398
|
+
function on(e, t, r, n, i, o) {
|
|
399
|
+
let s = class extends Qt {
|
|
400
400
|
constructor() {
|
|
401
401
|
super(e, r, i), this.$$p_d = t;
|
|
402
402
|
}
|
|
@@ -411,8 +411,8 @@ function Kr(e, t, r, n, i, o) {
|
|
|
411
411
|
get() {
|
|
412
412
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
413
413
|
},
|
|
414
|
-
set(
|
|
415
|
-
|
|
414
|
+
set(u) {
|
|
415
|
+
u = ve(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
}), n.forEach((a) => {
|
|
@@ -424,7 +424,7 @@ function Kr(e, t, r, n, i, o) {
|
|
|
424
424
|
}), e.element = /** @type {any} */
|
|
425
425
|
s, s;
|
|
426
426
|
}
|
|
427
|
-
class
|
|
427
|
+
class sn {
|
|
428
428
|
/**
|
|
429
429
|
* ### PRIVATE API
|
|
430
430
|
*
|
|
@@ -443,7 +443,7 @@ class en {
|
|
|
443
443
|
$$set = void 0;
|
|
444
444
|
/** @returns {void} */
|
|
445
445
|
$destroy() {
|
|
446
|
-
|
|
446
|
+
tn(this, 1), this.$destroy = D;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -452,7 +452,7 @@ class en {
|
|
|
452
452
|
* @returns {() => void}
|
|
453
453
|
*/
|
|
454
454
|
$on(t, r) {
|
|
455
|
-
if (!
|
|
455
|
+
if (!Te(r))
|
|
456
456
|
return D;
|
|
457
457
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
458
458
|
return n.push(r), () => {
|
|
@@ -465,11 +465,11 @@ class en {
|
|
|
465
465
|
* @returns {void}
|
|
466
466
|
*/
|
|
467
467
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
468
|
+
this.$$set && !Dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
471
|
+
const an = "4";
|
|
472
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(an);
|
|
473
473
|
/*! *****************************************************************************
|
|
474
474
|
Copyright (c) Microsoft Corporation.
|
|
475
475
|
|
|
@@ -484,43 +484,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
484
484
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
485
485
|
PERFORMANCE OF THIS SOFTWARE.
|
|
486
486
|
***************************************************************************** */
|
|
487
|
-
var
|
|
488
|
-
return
|
|
487
|
+
var Xe = function(e, t) {
|
|
488
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
489
489
|
r.__proto__ = n;
|
|
490
490
|
} || function(r, n) {
|
|
491
491
|
for (var i in n)
|
|
492
492
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
493
|
-
},
|
|
493
|
+
}, Xe(e, t);
|
|
494
494
|
};
|
|
495
|
-
function
|
|
495
|
+
function de(e, t) {
|
|
496
496
|
if (typeof t != "function" && t !== null)
|
|
497
497
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
498
|
-
|
|
498
|
+
Xe(e, t);
|
|
499
499
|
function r() {
|
|
500
500
|
this.constructor = e;
|
|
501
501
|
}
|
|
502
502
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
503
503
|
}
|
|
504
|
-
|
|
505
|
-
return _ = Object.assign || function(t) {
|
|
506
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
507
|
-
r = arguments[n];
|
|
508
|
-
for (var o in r)
|
|
509
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
510
|
-
}
|
|
511
|
-
return t;
|
|
512
|
-
}, _.apply(this, arguments);
|
|
513
|
-
};
|
|
514
|
-
function rn(e, t) {
|
|
515
|
-
var r = {};
|
|
516
|
-
for (var n in e)
|
|
517
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
518
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
519
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
520
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
521
|
-
return r;
|
|
522
|
-
}
|
|
523
|
-
function Ve(e) {
|
|
504
|
+
function ze(e) {
|
|
524
505
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
525
506
|
if (r)
|
|
526
507
|
return r.call(e);
|
|
@@ -532,7 +513,7 @@ function Ve(e) {
|
|
|
532
513
|
};
|
|
533
514
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
534
515
|
}
|
|
535
|
-
function
|
|
516
|
+
function Ze(e, t) {
|
|
536
517
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
537
518
|
if (!r)
|
|
538
519
|
return e;
|
|
@@ -552,22 +533,22 @@ function We(e, t) {
|
|
|
552
533
|
}
|
|
553
534
|
return o;
|
|
554
535
|
}
|
|
555
|
-
function
|
|
556
|
-
if (
|
|
536
|
+
function Qe(e, t, r) {
|
|
537
|
+
if (arguments.length === 2)
|
|
557
538
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
558
539
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
559
540
|
return e.concat(o || t);
|
|
560
541
|
}
|
|
561
|
-
function
|
|
542
|
+
function j(e) {
|
|
562
543
|
return typeof e == "function";
|
|
563
544
|
}
|
|
564
|
-
function
|
|
545
|
+
function Yt(e) {
|
|
565
546
|
var t = function(n) {
|
|
566
547
|
Error.call(n), n.stack = new Error().stack;
|
|
567
548
|
}, r = e(t);
|
|
568
549
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
569
550
|
}
|
|
570
|
-
var
|
|
551
|
+
var Ue = Yt(function(e) {
|
|
571
552
|
return function(r) {
|
|
572
553
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
573
554
|
` + r.map(function(n, i) {
|
|
@@ -576,13 +557,13 @@ var Ne = Wt(function(e) {
|
|
|
576
557
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
577
558
|
};
|
|
578
559
|
});
|
|
579
|
-
function
|
|
560
|
+
function Ye(e, t) {
|
|
580
561
|
if (e) {
|
|
581
562
|
var r = e.indexOf(t);
|
|
582
563
|
0 <= r && e.splice(r, 1);
|
|
583
564
|
}
|
|
584
565
|
}
|
|
585
|
-
var
|
|
566
|
+
var He = function() {
|
|
586
567
|
function e(t) {
|
|
587
568
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
588
569
|
}
|
|
@@ -594,15 +575,15 @@ var Te = function() {
|
|
|
594
575
|
if (s)
|
|
595
576
|
if (this._parentage = null, Array.isArray(s))
|
|
596
577
|
try {
|
|
597
|
-
for (var a =
|
|
598
|
-
var
|
|
599
|
-
|
|
578
|
+
for (var a = ze(s), u = a.next(); !u.done; u = a.next()) {
|
|
579
|
+
var l = u.value;
|
|
580
|
+
l.remove(this);
|
|
600
581
|
}
|
|
601
582
|
} catch (b) {
|
|
602
583
|
t = { error: b };
|
|
603
584
|
} finally {
|
|
604
585
|
try {
|
|
605
|
-
|
|
586
|
+
u && !u.done && (r = a.return) && r.call(a);
|
|
606
587
|
} finally {
|
|
607
588
|
if (t)
|
|
608
589
|
throw t.error;
|
|
@@ -611,22 +592,22 @@ var Te = function() {
|
|
|
611
592
|
else
|
|
612
593
|
s.remove(this);
|
|
613
594
|
var h = this.initialTeardown;
|
|
614
|
-
if (
|
|
595
|
+
if (j(h))
|
|
615
596
|
try {
|
|
616
597
|
h();
|
|
617
598
|
} catch (b) {
|
|
618
|
-
o = b instanceof
|
|
599
|
+
o = b instanceof Ue ? b.errors : [b];
|
|
619
600
|
}
|
|
620
601
|
var c = this._finalizers;
|
|
621
602
|
if (c) {
|
|
622
603
|
this._finalizers = null;
|
|
623
604
|
try {
|
|
624
|
-
for (var f =
|
|
625
|
-
var
|
|
605
|
+
for (var f = ze(c), m = f.next(); !m.done; m = f.next()) {
|
|
606
|
+
var d = m.value;
|
|
626
607
|
try {
|
|
627
|
-
|
|
608
|
+
bt(d);
|
|
628
609
|
} catch (b) {
|
|
629
|
-
o = o ?? [], b instanceof
|
|
610
|
+
o = o ?? [], b instanceof Ue ? o = Qe(Qe([], Ze(o)), Ze(b.errors)) : o.push(b);
|
|
630
611
|
}
|
|
631
612
|
}
|
|
632
613
|
} catch (b) {
|
|
@@ -641,13 +622,13 @@ var Te = function() {
|
|
|
641
622
|
}
|
|
642
623
|
}
|
|
643
624
|
if (o)
|
|
644
|
-
throw new
|
|
625
|
+
throw new Ue(o);
|
|
645
626
|
}
|
|
646
627
|
}, e.prototype.add = function(t) {
|
|
647
628
|
var r;
|
|
648
629
|
if (t && t !== this)
|
|
649
630
|
if (this.closed)
|
|
650
|
-
|
|
631
|
+
bt(t);
|
|
651
632
|
else {
|
|
652
633
|
if (t instanceof e) {
|
|
653
634
|
if (t.closed || t._hasParent(this))
|
|
@@ -664,52 +645,52 @@ var Te = function() {
|
|
|
664
645
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
665
646
|
}, e.prototype._removeParent = function(t) {
|
|
666
647
|
var r = this._parentage;
|
|
667
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
648
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ye(r, t);
|
|
668
649
|
}, e.prototype.remove = function(t) {
|
|
669
650
|
var r = this._finalizers;
|
|
670
|
-
r &&
|
|
651
|
+
r && Ye(r, t), t instanceof e && t._removeParent(this);
|
|
671
652
|
}, e.EMPTY = function() {
|
|
672
653
|
var t = new e();
|
|
673
654
|
return t.closed = !0, t;
|
|
674
655
|
}(), e;
|
|
675
|
-
}(),
|
|
676
|
-
function
|
|
677
|
-
return e instanceof
|
|
656
|
+
}(), qt = He.EMPTY;
|
|
657
|
+
function Jt(e) {
|
|
658
|
+
return e instanceof He || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
|
|
678
659
|
}
|
|
679
|
-
function
|
|
680
|
-
|
|
660
|
+
function bt(e) {
|
|
661
|
+
j(e) ? e() : e.unsubscribe();
|
|
681
662
|
}
|
|
682
|
-
var
|
|
663
|
+
var un = {
|
|
683
664
|
Promise: void 0
|
|
684
|
-
},
|
|
665
|
+
}, ln = {
|
|
685
666
|
setTimeout: function(e, t) {
|
|
686
667
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
687
668
|
r[n - 2] = arguments[n];
|
|
688
|
-
return setTimeout.apply(void 0,
|
|
669
|
+
return setTimeout.apply(void 0, Qe([e, t], Ze(r)));
|
|
689
670
|
},
|
|
690
671
|
clearTimeout: function(e) {
|
|
691
672
|
return clearTimeout(e);
|
|
692
673
|
},
|
|
693
674
|
delegate: void 0
|
|
694
675
|
};
|
|
695
|
-
function
|
|
696
|
-
|
|
676
|
+
function hn(e) {
|
|
677
|
+
ln.setTimeout(function() {
|
|
697
678
|
throw e;
|
|
698
679
|
});
|
|
699
680
|
}
|
|
700
|
-
function
|
|
681
|
+
function gt() {
|
|
701
682
|
}
|
|
702
683
|
function ye(e) {
|
|
703
684
|
e();
|
|
704
685
|
}
|
|
705
|
-
var
|
|
706
|
-
|
|
686
|
+
var Kt = function(e) {
|
|
687
|
+
de(t, e);
|
|
707
688
|
function t(r) {
|
|
708
689
|
var n = e.call(this) || this;
|
|
709
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
690
|
+
return n.isStopped = !1, r ? (n.destination = r, Jt(r) && r.add(n)) : n.destination = pn, n;
|
|
710
691
|
}
|
|
711
692
|
return t.create = function(r, n, i) {
|
|
712
|
-
return new
|
|
693
|
+
return new qe(r, n, i);
|
|
713
694
|
}, t.prototype.next = function(r) {
|
|
714
695
|
this.isStopped || this._next(r);
|
|
715
696
|
}, t.prototype.error = function(r) {
|
|
@@ -733,7 +714,7 @@ var Zt = function(e) {
|
|
|
733
714
|
this.unsubscribe();
|
|
734
715
|
}
|
|
735
716
|
}, t;
|
|
736
|
-
}(
|
|
717
|
+
}(He), cn = function() {
|
|
737
718
|
function e(t) {
|
|
738
719
|
this.partialObserver = t;
|
|
739
720
|
}
|
|
@@ -764,43 +745,43 @@ var Zt = function(e) {
|
|
|
764
745
|
be(r);
|
|
765
746
|
}
|
|
766
747
|
}, e;
|
|
767
|
-
}(),
|
|
768
|
-
|
|
748
|
+
}(), qe = function(e) {
|
|
749
|
+
de(t, e);
|
|
769
750
|
function t(r, n, i) {
|
|
770
751
|
var o = e.call(this) || this, s;
|
|
771
|
-
return
|
|
752
|
+
return j(r) || !r ? s = {
|
|
772
753
|
next: r ?? void 0,
|
|
773
754
|
error: n ?? void 0,
|
|
774
755
|
complete: i ?? void 0
|
|
775
|
-
} : s = r, o.destination = new
|
|
756
|
+
} : s = r, o.destination = new cn(s), o;
|
|
776
757
|
}
|
|
777
758
|
return t;
|
|
778
|
-
}(
|
|
759
|
+
}(Kt);
|
|
779
760
|
function be(e) {
|
|
780
|
-
|
|
761
|
+
hn(e);
|
|
781
762
|
}
|
|
782
|
-
function
|
|
763
|
+
function fn(e) {
|
|
783
764
|
throw e;
|
|
784
765
|
}
|
|
785
|
-
var
|
|
766
|
+
var pn = {
|
|
786
767
|
closed: !0,
|
|
787
|
-
next:
|
|
788
|
-
error:
|
|
789
|
-
complete:
|
|
790
|
-
},
|
|
768
|
+
next: gt,
|
|
769
|
+
error: fn,
|
|
770
|
+
complete: gt
|
|
771
|
+
}, dn = function() {
|
|
791
772
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
792
773
|
}();
|
|
793
|
-
function
|
|
774
|
+
function mn(e) {
|
|
794
775
|
return e;
|
|
795
776
|
}
|
|
796
|
-
function
|
|
797
|
-
return e.length === 0 ?
|
|
777
|
+
function bn(e) {
|
|
778
|
+
return e.length === 0 ? mn : e.length === 1 ? e[0] : function(r) {
|
|
798
779
|
return e.reduce(function(n, i) {
|
|
799
780
|
return i(n);
|
|
800
781
|
}, r);
|
|
801
782
|
};
|
|
802
783
|
}
|
|
803
|
-
var
|
|
784
|
+
var vt = function() {
|
|
804
785
|
function e(t) {
|
|
805
786
|
t && (this._subscribe = t);
|
|
806
787
|
}
|
|
@@ -808,10 +789,10 @@ var dt = function() {
|
|
|
808
789
|
var r = new e();
|
|
809
790
|
return r.source = this, r.operator = t, r;
|
|
810
791
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
811
|
-
var i = this, o =
|
|
792
|
+
var i = this, o = vn(t) ? t : new qe(t, r, n);
|
|
812
793
|
return ye(function() {
|
|
813
|
-
var s = i, a = s.operator,
|
|
814
|
-
o.add(a ? a.call(o,
|
|
794
|
+
var s = i, a = s.operator, u = s.source;
|
|
795
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
815
796
|
}), o;
|
|
816
797
|
}, e.prototype._trySubscribe = function(t) {
|
|
817
798
|
try {
|
|
@@ -821,13 +802,13 @@ var dt = function() {
|
|
|
821
802
|
}
|
|
822
803
|
}, e.prototype.forEach = function(t, r) {
|
|
823
804
|
var n = this;
|
|
824
|
-
return r =
|
|
825
|
-
var s = new
|
|
805
|
+
return r = yt(r), new r(function(i, o) {
|
|
806
|
+
var s = new qe({
|
|
826
807
|
next: function(a) {
|
|
827
808
|
try {
|
|
828
809
|
t(a);
|
|
829
|
-
} catch (
|
|
830
|
-
o(
|
|
810
|
+
} catch (u) {
|
|
811
|
+
o(u), s.unsubscribe();
|
|
831
812
|
}
|
|
832
813
|
},
|
|
833
814
|
error: o,
|
|
@@ -838,15 +819,15 @@ var dt = function() {
|
|
|
838
819
|
}, e.prototype._subscribe = function(t) {
|
|
839
820
|
var r;
|
|
840
821
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
841
|
-
}, e.prototype[
|
|
822
|
+
}, e.prototype[dn] = function() {
|
|
842
823
|
return this;
|
|
843
824
|
}, e.prototype.pipe = function() {
|
|
844
825
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
845
826
|
t[r] = arguments[r];
|
|
846
|
-
return
|
|
827
|
+
return bn(t)(this);
|
|
847
828
|
}, e.prototype.toPromise = function(t) {
|
|
848
829
|
var r = this;
|
|
849
|
-
return t =
|
|
830
|
+
return t = yt(t), new t(function(n, i) {
|
|
850
831
|
var o;
|
|
851
832
|
r.subscribe(function(s) {
|
|
852
833
|
return o = s;
|
|
@@ -860,32 +841,32 @@ var dt = function() {
|
|
|
860
841
|
return new e(t);
|
|
861
842
|
}, e;
|
|
862
843
|
}();
|
|
863
|
-
function
|
|
844
|
+
function yt(e) {
|
|
864
845
|
var t;
|
|
865
|
-
return (t = e ??
|
|
846
|
+
return (t = e ?? un.Promise) !== null && t !== void 0 ? t : Promise;
|
|
866
847
|
}
|
|
867
|
-
function
|
|
868
|
-
return e &&
|
|
848
|
+
function gn(e) {
|
|
849
|
+
return e && j(e.next) && j(e.error) && j(e.complete);
|
|
869
850
|
}
|
|
870
|
-
function
|
|
871
|
-
return e && e instanceof
|
|
851
|
+
function vn(e) {
|
|
852
|
+
return e && e instanceof Kt || gn(e) && Jt(e);
|
|
872
853
|
}
|
|
873
|
-
var
|
|
854
|
+
var yn = Yt(function(e) {
|
|
874
855
|
return function() {
|
|
875
856
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
876
857
|
};
|
|
877
|
-
}),
|
|
878
|
-
|
|
858
|
+
}), er = function(e) {
|
|
859
|
+
de(t, e);
|
|
879
860
|
function t() {
|
|
880
861
|
var r = e.call(this) || this;
|
|
881
862
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
882
863
|
}
|
|
883
864
|
return t.prototype.lift = function(r) {
|
|
884
|
-
var n = new
|
|
865
|
+
var n = new _t(this, this);
|
|
885
866
|
return n.operator = r, n;
|
|
886
867
|
}, t.prototype._throwIfClosed = function() {
|
|
887
868
|
if (this.closed)
|
|
888
|
-
throw new
|
|
869
|
+
throw new yn();
|
|
889
870
|
}, t.prototype.next = function(r) {
|
|
890
871
|
var n = this;
|
|
891
872
|
ye(function() {
|
|
@@ -893,12 +874,12 @@ var mn = Wt(function(e) {
|
|
|
893
874
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
894
875
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
895
876
|
try {
|
|
896
|
-
for (var s =
|
|
897
|
-
var
|
|
898
|
-
|
|
877
|
+
for (var s = ze(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
878
|
+
var u = a.value;
|
|
879
|
+
u.next(r);
|
|
899
880
|
}
|
|
900
|
-
} catch (
|
|
901
|
-
i = { error:
|
|
881
|
+
} catch (l) {
|
|
882
|
+
i = { error: l };
|
|
902
883
|
} finally {
|
|
903
884
|
try {
|
|
904
885
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -942,20 +923,20 @@ var mn = Wt(function(e) {
|
|
|
942
923
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
943
924
|
}, t.prototype._innerSubscribe = function(r) {
|
|
944
925
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
945
|
-
return o || s ?
|
|
946
|
-
n.currentObservers = null,
|
|
926
|
+
return o || s ? qt : (this.currentObservers = null, a.push(r), new He(function() {
|
|
927
|
+
n.currentObservers = null, Ye(a, r);
|
|
947
928
|
}));
|
|
948
929
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
949
930
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
950
931
|
i ? r.error(o) : s && r.complete();
|
|
951
932
|
}, t.prototype.asObservable = function() {
|
|
952
|
-
var r = new
|
|
933
|
+
var r = new vt();
|
|
953
934
|
return r.source = this, r;
|
|
954
935
|
}, t.create = function(r, n) {
|
|
955
|
-
return new
|
|
936
|
+
return new _t(r, n);
|
|
956
937
|
}, t;
|
|
957
|
-
}(
|
|
958
|
-
|
|
938
|
+
}(vt), _t = function(e) {
|
|
939
|
+
de(t, e);
|
|
959
940
|
function t(r, n) {
|
|
960
941
|
var i = e.call(this) || this;
|
|
961
942
|
return i.destination = r, i.source = n, i;
|
|
@@ -971,60 +952,60 @@ var mn = Wt(function(e) {
|
|
|
971
952
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
972
953
|
}, t.prototype._subscribe = function(r) {
|
|
973
954
|
var n, i;
|
|
974
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
955
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : qt;
|
|
975
956
|
}, t;
|
|
976
|
-
}(
|
|
957
|
+
}(er), tr = {
|
|
977
958
|
now: function() {
|
|
978
|
-
return (
|
|
959
|
+
return (tr.delegate || Date).now();
|
|
979
960
|
},
|
|
980
961
|
delegate: void 0
|
|
981
|
-
},
|
|
982
|
-
|
|
962
|
+
}, _n = function(e) {
|
|
963
|
+
de(t, e);
|
|
983
964
|
function t(r, n, i) {
|
|
984
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
965
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = tr);
|
|
985
966
|
var o = e.call(this) || this;
|
|
986
967
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
987
968
|
}
|
|
988
969
|
return t.prototype.next = function(r) {
|
|
989
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
990
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
970
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
|
|
971
|
+
i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
991
972
|
}, t.prototype._subscribe = function(r) {
|
|
992
973
|
this._throwIfClosed(), this._trimBuffer();
|
|
993
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
994
|
-
r.next(a[
|
|
974
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
|
|
975
|
+
r.next(a[u]);
|
|
995
976
|
return this._checkFinalizedStatuses(r), n;
|
|
996
977
|
}, t.prototype._trimBuffer = function() {
|
|
997
978
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
998
979
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
999
|
-
for (var
|
|
1000
|
-
|
|
1001
|
-
|
|
980
|
+
for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
981
|
+
l = h;
|
|
982
|
+
l && o.splice(0, l + 1);
|
|
1002
983
|
}
|
|
1003
984
|
}, t;
|
|
1004
|
-
}(
|
|
1005
|
-
const
|
|
1006
|
-
if (
|
|
1007
|
-
const r = new
|
|
1008
|
-
|
|
985
|
+
}(er);
|
|
986
|
+
const xt = [], Et = {}, xn = (e, t = 0) => {
|
|
987
|
+
if (xt.indexOf(e) == -1) {
|
|
988
|
+
const r = new _n(t);
|
|
989
|
+
Et[e] = r, xt.push(e);
|
|
1009
990
|
}
|
|
1010
|
-
return
|
|
991
|
+
return Et[e];
|
|
1011
992
|
}, Y = [];
|
|
1012
|
-
function
|
|
993
|
+
function En(e, t) {
|
|
1013
994
|
return {
|
|
1014
|
-
subscribe:
|
|
995
|
+
subscribe: Ae(e, t).subscribe
|
|
1015
996
|
};
|
|
1016
997
|
}
|
|
1017
|
-
function
|
|
998
|
+
function Ae(e, t = D) {
|
|
1018
999
|
let r;
|
|
1019
1000
|
const n = /* @__PURE__ */ new Set();
|
|
1020
1001
|
function i(a) {
|
|
1021
|
-
if (
|
|
1022
|
-
const
|
|
1023
|
-
for (const
|
|
1024
|
-
|
|
1025
|
-
if (
|
|
1026
|
-
for (let
|
|
1027
|
-
Y[
|
|
1002
|
+
if (zt(e, a) && (e = a, r)) {
|
|
1003
|
+
const u = !Y.length;
|
|
1004
|
+
for (const l of n)
|
|
1005
|
+
l[1](), Y.push(l, e);
|
|
1006
|
+
if (u) {
|
|
1007
|
+
for (let l = 0; l < Y.length; l += 2)
|
|
1008
|
+
Y[l][0](Y[l + 1]);
|
|
1028
1009
|
Y.length = 0;
|
|
1029
1010
|
}
|
|
1030
1011
|
}
|
|
@@ -1032,150 +1013,192 @@ function He(e, t = D) {
|
|
|
1032
1013
|
function o(a) {
|
|
1033
1014
|
i(a(e));
|
|
1034
1015
|
}
|
|
1035
|
-
function s(a,
|
|
1036
|
-
const
|
|
1037
|
-
return n.add(
|
|
1038
|
-
n.delete(
|
|
1016
|
+
function s(a, u = D) {
|
|
1017
|
+
const l = [a, u];
|
|
1018
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
1019
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1039
1020
|
};
|
|
1040
1021
|
}
|
|
1041
1022
|
return { set: i, update: o, subscribe: s };
|
|
1042
1023
|
}
|
|
1043
|
-
function
|
|
1024
|
+
function oe(e, t, r) {
|
|
1044
1025
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1045
1026
|
if (!i.every(Boolean))
|
|
1046
1027
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1047
1028
|
const o = t.length < 2;
|
|
1048
|
-
return
|
|
1049
|
-
let
|
|
1050
|
-
const
|
|
1029
|
+
return En(r, (s, a) => {
|
|
1030
|
+
let u = !1;
|
|
1031
|
+
const l = [];
|
|
1051
1032
|
let h = 0, c = D;
|
|
1052
1033
|
const f = () => {
|
|
1053
1034
|
if (h)
|
|
1054
1035
|
return;
|
|
1055
1036
|
c();
|
|
1056
|
-
const
|
|
1057
|
-
o ? s(
|
|
1037
|
+
const d = t(n ? l[0] : l, s, a);
|
|
1038
|
+
o ? s(d) : c = Te(d) ? d : D;
|
|
1058
1039
|
}, m = i.map(
|
|
1059
|
-
(
|
|
1060
|
-
|
|
1040
|
+
(d, b) => $r(
|
|
1041
|
+
d,
|
|
1061
1042
|
(T) => {
|
|
1062
|
-
|
|
1043
|
+
l[b] = T, h &= ~(1 << b), u && f();
|
|
1063
1044
|
},
|
|
1064
1045
|
() => {
|
|
1065
1046
|
h |= 1 << b;
|
|
1066
1047
|
}
|
|
1067
1048
|
)
|
|
1068
1049
|
);
|
|
1069
|
-
return
|
|
1070
|
-
X(m), c(),
|
|
1050
|
+
return u = !0, f(), function() {
|
|
1051
|
+
X(m), c(), u = !1;
|
|
1071
1052
|
};
|
|
1072
1053
|
});
|
|
1073
1054
|
}
|
|
1074
|
-
function
|
|
1055
|
+
function wn(e) {
|
|
1075
1056
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1076
1057
|
}
|
|
1077
|
-
var
|
|
1078
|
-
return
|
|
1058
|
+
var Cn = function(t) {
|
|
1059
|
+
return Sn(t) && !Tn(t);
|
|
1079
1060
|
};
|
|
1080
|
-
function
|
|
1061
|
+
function Sn(e) {
|
|
1081
1062
|
return !!e && typeof e == "object";
|
|
1082
1063
|
}
|
|
1083
|
-
function
|
|
1064
|
+
function Tn(e) {
|
|
1084
1065
|
var t = Object.prototype.toString.call(e);
|
|
1085
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1066
|
+
return t === "[object RegExp]" || t === "[object Date]" || In(e);
|
|
1086
1067
|
}
|
|
1087
|
-
var
|
|
1088
|
-
function
|
|
1089
|
-
return e.$$typeof ===
|
|
1068
|
+
var Hn = typeof Symbol == "function" && Symbol.for, An = Hn ? Symbol.for("react.element") : 60103;
|
|
1069
|
+
function In(e) {
|
|
1070
|
+
return e.$$typeof === An;
|
|
1090
1071
|
}
|
|
1091
|
-
function
|
|
1072
|
+
function Bn(e) {
|
|
1092
1073
|
return Array.isArray(e) ? [] : {};
|
|
1093
1074
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1075
|
+
function ce(e, t) {
|
|
1076
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Bn(e), e, t) : e;
|
|
1096
1077
|
}
|
|
1097
|
-
function
|
|
1078
|
+
function Pn(e, t, r) {
|
|
1098
1079
|
return e.concat(t).map(function(n) {
|
|
1099
|
-
return
|
|
1080
|
+
return ce(n, r);
|
|
1100
1081
|
});
|
|
1101
1082
|
}
|
|
1102
|
-
function
|
|
1083
|
+
function On(e, t) {
|
|
1103
1084
|
if (!t.customMerge)
|
|
1104
|
-
return
|
|
1085
|
+
return te;
|
|
1105
1086
|
var r = t.customMerge(e);
|
|
1106
|
-
return typeof r == "function" ? r :
|
|
1087
|
+
return typeof r == "function" ? r : te;
|
|
1107
1088
|
}
|
|
1108
|
-
function
|
|
1089
|
+
function Mn(e) {
|
|
1109
1090
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1110
1091
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1111
1092
|
}) : [];
|
|
1112
1093
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return Object.keys(e).concat(
|
|
1094
|
+
function wt(e) {
|
|
1095
|
+
return Object.keys(e).concat(Mn(e));
|
|
1115
1096
|
}
|
|
1116
|
-
function
|
|
1097
|
+
function rr(e, t) {
|
|
1117
1098
|
try {
|
|
1118
1099
|
return t in e;
|
|
1119
1100
|
} catch {
|
|
1120
1101
|
return !1;
|
|
1121
1102
|
}
|
|
1122
1103
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return
|
|
1104
|
+
function Ln(e, t) {
|
|
1105
|
+
return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1125
1106
|
}
|
|
1126
|
-
function
|
|
1107
|
+
function Nn(e, t, r) {
|
|
1127
1108
|
var n = {};
|
|
1128
|
-
return r.isMergeableObject(e) &&
|
|
1129
|
-
n[i] =
|
|
1130
|
-
}),
|
|
1131
|
-
|
|
1109
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
1110
|
+
n[i] = ce(e[i], r);
|
|
1111
|
+
}), wt(t).forEach(function(i) {
|
|
1112
|
+
Ln(e, i) || (rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = On(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
1132
1113
|
}), n;
|
|
1133
1114
|
}
|
|
1134
|
-
function
|
|
1135
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1115
|
+
function te(e, t, r) {
|
|
1116
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pn, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1136
1117
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1137
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1118
|
+
return o ? n ? r.arrayMerge(e, t, r) : Nn(e, t, r) : ce(t, r);
|
|
1138
1119
|
}
|
|
1139
|
-
|
|
1120
|
+
te.all = function(t, r) {
|
|
1140
1121
|
if (!Array.isArray(t))
|
|
1141
1122
|
throw new Error("first argument should be an array");
|
|
1142
1123
|
return t.reduce(function(n, i) {
|
|
1143
|
-
return
|
|
1124
|
+
return te(n, i, r);
|
|
1144
1125
|
}, {});
|
|
1145
1126
|
};
|
|
1146
|
-
var
|
|
1147
|
-
const
|
|
1148
|
-
function
|
|
1149
|
-
|
|
1127
|
+
var Rn = te, Un = Rn;
|
|
1128
|
+
const Dn = /* @__PURE__ */ wn(Un);
|
|
1129
|
+
var Je = function(e, t) {
|
|
1130
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1131
|
+
r.__proto__ = n;
|
|
1132
|
+
} || function(r, n) {
|
|
1133
|
+
for (var i in n)
|
|
1134
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1135
|
+
}, Je(e, t);
|
|
1136
|
+
};
|
|
1137
|
+
function Ie(e, t) {
|
|
1138
|
+
if (typeof t != "function" && t !== null)
|
|
1139
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1140
|
+
Je(e, t);
|
|
1141
|
+
function r() {
|
|
1142
|
+
this.constructor = e;
|
|
1143
|
+
}
|
|
1144
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1145
|
+
}
|
|
1146
|
+
var G = function() {
|
|
1147
|
+
return G = Object.assign || function(t) {
|
|
1148
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1149
|
+
r = arguments[n];
|
|
1150
|
+
for (var o in r)
|
|
1151
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1152
|
+
}
|
|
1153
|
+
return t;
|
|
1154
|
+
}, G.apply(this, arguments);
|
|
1155
|
+
};
|
|
1156
|
+
function $n(e, t) {
|
|
1157
|
+
var r = {};
|
|
1158
|
+
for (var n in e)
|
|
1159
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1160
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1161
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1162
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1163
|
+
return r;
|
|
1164
|
+
}
|
|
1165
|
+
function De(e, t, r) {
|
|
1166
|
+
if (r || arguments.length === 2)
|
|
1167
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1168
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1169
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1170
|
+
}
|
|
1171
|
+
function $e(e, t) {
|
|
1172
|
+
var r = t && t.cache ? t.cache : Xn, n = t && t.serializer ? t.serializer : Vn, i = t && t.strategy ? t.strategy : Fn;
|
|
1150
1173
|
return i(e, {
|
|
1151
1174
|
cache: r,
|
|
1152
1175
|
serializer: n
|
|
1153
1176
|
});
|
|
1154
1177
|
}
|
|
1155
|
-
function
|
|
1178
|
+
function kn(e) {
|
|
1156
1179
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1157
1180
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var i =
|
|
1181
|
+
function Gn(e, t, r, n) {
|
|
1182
|
+
var i = kn(n) ? n : r(n), o = t.get(i);
|
|
1160
1183
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1161
1184
|
}
|
|
1162
|
-
function
|
|
1185
|
+
function nr(e, t, r) {
|
|
1163
1186
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1164
1187
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1165
1188
|
}
|
|
1166
|
-
function
|
|
1189
|
+
function ir(e, t, r, n, i) {
|
|
1167
1190
|
return r.bind(t, e, n, i);
|
|
1168
1191
|
}
|
|
1169
|
-
function
|
|
1170
|
-
var r = e.length === 1 ?
|
|
1171
|
-
return
|
|
1192
|
+
function Fn(e, t) {
|
|
1193
|
+
var r = e.length === 1 ? Gn : nr;
|
|
1194
|
+
return ir(e, this, r, t.cache.create(), t.serializer);
|
|
1172
1195
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return
|
|
1196
|
+
function jn(e, t) {
|
|
1197
|
+
return ir(e, this, nr, t.cache.create(), t.serializer);
|
|
1175
1198
|
}
|
|
1176
|
-
var
|
|
1199
|
+
var Vn = function() {
|
|
1177
1200
|
return JSON.stringify(arguments);
|
|
1178
|
-
},
|
|
1201
|
+
}, Wn = (
|
|
1179
1202
|
/** @class */
|
|
1180
1203
|
function() {
|
|
1181
1204
|
function e() {
|
|
@@ -1187,61 +1210,71 @@ var $n = function() {
|
|
|
1187
1210
|
this.cache[t] = r;
|
|
1188
1211
|
}, e;
|
|
1189
1212
|
}()
|
|
1190
|
-
),
|
|
1213
|
+
), Xn = {
|
|
1191
1214
|
create: function() {
|
|
1192
|
-
return new
|
|
1215
|
+
return new Wn();
|
|
1193
1216
|
}
|
|
1194
|
-
},
|
|
1195
|
-
variadic:
|
|
1196
|
-
},
|
|
1217
|
+
}, ke = {
|
|
1218
|
+
variadic: jn
|
|
1219
|
+
}, we = function() {
|
|
1220
|
+
return we = Object.assign || function(t) {
|
|
1221
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1222
|
+
r = arguments[n];
|
|
1223
|
+
for (var o in r)
|
|
1224
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1225
|
+
}
|
|
1226
|
+
return t;
|
|
1227
|
+
}, we.apply(this, arguments);
|
|
1228
|
+
};
|
|
1229
|
+
var v;
|
|
1197
1230
|
(function(e) {
|
|
1198
1231
|
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";
|
|
1199
1232
|
})(v || (v = {}));
|
|
1200
|
-
var
|
|
1233
|
+
var E;
|
|
1201
1234
|
(function(e) {
|
|
1202
1235
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1203
|
-
})(
|
|
1204
|
-
var
|
|
1236
|
+
})(E || (E = {}));
|
|
1237
|
+
var re;
|
|
1205
1238
|
(function(e) {
|
|
1206
1239
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1207
|
-
})(
|
|
1208
|
-
function
|
|
1209
|
-
return e.type ===
|
|
1240
|
+
})(re || (re = {}));
|
|
1241
|
+
function Ct(e) {
|
|
1242
|
+
return e.type === E.literal;
|
|
1210
1243
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return e.type ===
|
|
1244
|
+
function zn(e) {
|
|
1245
|
+
return e.type === E.argument;
|
|
1213
1246
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return e.type ===
|
|
1247
|
+
function or(e) {
|
|
1248
|
+
return e.type === E.number;
|
|
1216
1249
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return e.type ===
|
|
1250
|
+
function sr(e) {
|
|
1251
|
+
return e.type === E.date;
|
|
1219
1252
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return e.type ===
|
|
1253
|
+
function ar(e) {
|
|
1254
|
+
return e.type === E.time;
|
|
1222
1255
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return e.type ===
|
|
1256
|
+
function ur(e) {
|
|
1257
|
+
return e.type === E.select;
|
|
1225
1258
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return e.type ===
|
|
1259
|
+
function lr(e) {
|
|
1260
|
+
return e.type === E.plural;
|
|
1228
1261
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return e.type ===
|
|
1262
|
+
function Zn(e) {
|
|
1263
|
+
return e.type === E.pound;
|
|
1231
1264
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return e.type ===
|
|
1265
|
+
function hr(e) {
|
|
1266
|
+
return e.type === E.tag;
|
|
1234
1267
|
}
|
|
1235
|
-
function
|
|
1236
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1268
|
+
function cr(e) {
|
|
1269
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
1237
1270
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1271
|
+
function Ke(e) {
|
|
1272
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
1240
1273
|
}
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1274
|
+
var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qn = /(?:[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;
|
|
1275
|
+
function Yn(e) {
|
|
1243
1276
|
var t = {};
|
|
1244
|
-
return e.replace(
|
|
1277
|
+
return e.replace(Qn, function(r) {
|
|
1245
1278
|
var n = r.length;
|
|
1246
1279
|
switch (r[0]) {
|
|
1247
1280
|
case "G":
|
|
@@ -1330,36 +1363,46 @@ function Wn(e) {
|
|
|
1330
1363
|
return "";
|
|
1331
1364
|
}), t;
|
|
1332
1365
|
}
|
|
1333
|
-
var
|
|
1334
|
-
function
|
|
1366
|
+
var C = function() {
|
|
1367
|
+
return C = Object.assign || function(t) {
|
|
1368
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1369
|
+
r = arguments[n];
|
|
1370
|
+
for (var o in r)
|
|
1371
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1372
|
+
}
|
|
1373
|
+
return t;
|
|
1374
|
+
}, C.apply(this, arguments);
|
|
1375
|
+
};
|
|
1376
|
+
var qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1377
|
+
function Jn(e) {
|
|
1335
1378
|
if (e.length === 0)
|
|
1336
1379
|
throw new Error("Number skeleton cannot be empty");
|
|
1337
|
-
for (var t = e.split(
|
|
1380
|
+
for (var t = e.split(qn).filter(function(f) {
|
|
1338
1381
|
return f.length > 0;
|
|
1339
1382
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1340
1383
|
var o = i[n], s = o.split("/");
|
|
1341
1384
|
if (s.length === 0)
|
|
1342
1385
|
throw new Error("Invalid number skeleton");
|
|
1343
|
-
for (var a = s[0],
|
|
1344
|
-
var c = h[
|
|
1386
|
+
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1387
|
+
var c = h[l];
|
|
1345
1388
|
if (c.length === 0)
|
|
1346
1389
|
throw new Error("Invalid number skeleton");
|
|
1347
1390
|
}
|
|
1348
|
-
r.push({ stem: a, options:
|
|
1391
|
+
r.push({ stem: a, options: u });
|
|
1349
1392
|
}
|
|
1350
1393
|
return r;
|
|
1351
1394
|
}
|
|
1352
|
-
function
|
|
1395
|
+
function Kn(e) {
|
|
1353
1396
|
return e.replace(/^(.*?)-/, "");
|
|
1354
1397
|
}
|
|
1355
|
-
var
|
|
1356
|
-
function
|
|
1398
|
+
var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, ei = /(\*)(0+)|(#+)(0+)|(0+)/g, dr = /^(0+)$/;
|
|
1399
|
+
function Tt(e) {
|
|
1357
1400
|
var t = {};
|
|
1358
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1401
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
|
|
1359
1402
|
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)), "";
|
|
1360
1403
|
}), t;
|
|
1361
1404
|
}
|
|
1362
|
-
function
|
|
1405
|
+
function mr(e) {
|
|
1363
1406
|
switch (e) {
|
|
1364
1407
|
case "sign-auto":
|
|
1365
1408
|
return {
|
|
@@ -1399,7 +1442,7 @@ function hr(e) {
|
|
|
1399
1442
|
};
|
|
1400
1443
|
}
|
|
1401
1444
|
}
|
|
1402
|
-
function
|
|
1445
|
+
function ti(e) {
|
|
1403
1446
|
var t;
|
|
1404
1447
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1405
1448
|
notation: "engineering"
|
|
@@ -1407,17 +1450,17 @@ function Yn(e) {
|
|
|
1407
1450
|
notation: "scientific"
|
|
1408
1451
|
}, e = e.slice(1)), t) {
|
|
1409
1452
|
var r = e.slice(0, 2);
|
|
1410
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1453
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dr.test(e))
|
|
1411
1454
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1412
1455
|
t.minimumIntegerDigits = e.length;
|
|
1413
1456
|
}
|
|
1414
1457
|
return t;
|
|
1415
1458
|
}
|
|
1416
|
-
function
|
|
1417
|
-
var t = {}, r =
|
|
1459
|
+
function Ht(e) {
|
|
1460
|
+
var t = {}, r = mr(e);
|
|
1418
1461
|
return r || t;
|
|
1419
1462
|
}
|
|
1420
|
-
function
|
|
1463
|
+
function ri(e) {
|
|
1421
1464
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1422
1465
|
var i = n[r];
|
|
1423
1466
|
switch (i.stem) {
|
|
@@ -1441,7 +1484,7 @@ function qn(e) {
|
|
|
1441
1484
|
continue;
|
|
1442
1485
|
case "measure-unit":
|
|
1443
1486
|
case "unit":
|
|
1444
|
-
t.style = "unit", t.unit =
|
|
1487
|
+
t.style = "unit", t.unit = Kn(i.options[0]);
|
|
1445
1488
|
continue;
|
|
1446
1489
|
case "compact-short":
|
|
1447
1490
|
case "K":
|
|
@@ -1452,13 +1495,13 @@ function qn(e) {
|
|
|
1452
1495
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1453
1496
|
continue;
|
|
1454
1497
|
case "scientific":
|
|
1455
|
-
t =
|
|
1456
|
-
return
|
|
1498
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1499
|
+
return C(C({}, u), Ht(l));
|
|
1457
1500
|
}, {}));
|
|
1458
1501
|
continue;
|
|
1459
1502
|
case "engineering":
|
|
1460
|
-
t =
|
|
1461
|
-
return
|
|
1503
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1504
|
+
return C(C({}, u), Ht(l));
|
|
1462
1505
|
}, {}));
|
|
1463
1506
|
continue;
|
|
1464
1507
|
case "notation-simple":
|
|
@@ -1503,8 +1546,8 @@ function qn(e) {
|
|
|
1503
1546
|
case "integer-width":
|
|
1504
1547
|
if (i.options.length > 1)
|
|
1505
1548
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1506
|
-
i.options[0].replace(
|
|
1507
|
-
if (
|
|
1549
|
+
i.options[0].replace(ei, function(u, l, h, c, f, m) {
|
|
1550
|
+
if (l)
|
|
1508
1551
|
t.minimumIntegerDigits = h.length;
|
|
1509
1552
|
else {
|
|
1510
1553
|
if (c && f)
|
|
@@ -1516,28 +1559,28 @@ function qn(e) {
|
|
|
1516
1559
|
});
|
|
1517
1560
|
continue;
|
|
1518
1561
|
}
|
|
1519
|
-
if (
|
|
1562
|
+
if (dr.test(i.stem)) {
|
|
1520
1563
|
t.minimumIntegerDigits = i.stem.length;
|
|
1521
1564
|
continue;
|
|
1522
1565
|
}
|
|
1523
|
-
if (
|
|
1566
|
+
if (St.test(i.stem)) {
|
|
1524
1567
|
if (i.options.length > 1)
|
|
1525
1568
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1526
|
-
i.stem.replace(
|
|
1527
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1569
|
+
i.stem.replace(St, function(u, l, h, c, f, m) {
|
|
1570
|
+
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1528
1571
|
});
|
|
1529
1572
|
var o = i.options[0];
|
|
1530
|
-
o === "w" ? t =
|
|
1573
|
+
o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), Tt(o)));
|
|
1531
1574
|
continue;
|
|
1532
1575
|
}
|
|
1533
|
-
if (
|
|
1534
|
-
t =
|
|
1576
|
+
if (pr.test(i.stem)) {
|
|
1577
|
+
t = C(C({}, t), Tt(i.stem));
|
|
1535
1578
|
continue;
|
|
1536
1579
|
}
|
|
1537
|
-
var s =
|
|
1538
|
-
s && (t =
|
|
1539
|
-
var a =
|
|
1540
|
-
a && (t =
|
|
1580
|
+
var s = mr(i.stem);
|
|
1581
|
+
s && (t = C(C({}, t), s));
|
|
1582
|
+
var a = ti(i.stem);
|
|
1583
|
+
a && (t = C(C({}, t), a));
|
|
1541
1584
|
}
|
|
1542
1585
|
return t;
|
|
1543
1586
|
}
|
|
@@ -2956,23 +2999,23 @@ var ge = {
|
|
|
2956
2999
|
"h"
|
|
2957
3000
|
]
|
|
2958
3001
|
};
|
|
2959
|
-
function
|
|
3002
|
+
function ni(e, t) {
|
|
2960
3003
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2961
3004
|
var i = e.charAt(n);
|
|
2962
3005
|
if (i === "j") {
|
|
2963
3006
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2964
3007
|
o++, n++;
|
|
2965
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2966
|
-
for ((
|
|
2967
|
-
r +=
|
|
3008
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ii(t);
|
|
3009
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
3010
|
+
r += u;
|
|
2968
3011
|
for (; s-- > 0; )
|
|
2969
|
-
r =
|
|
3012
|
+
r = l + r;
|
|
2970
3013
|
} else
|
|
2971
3014
|
i === "J" ? r += "H" : r += i;
|
|
2972
3015
|
}
|
|
2973
3016
|
return r;
|
|
2974
3017
|
}
|
|
2975
|
-
function
|
|
3018
|
+
function ii(e) {
|
|
2976
3019
|
var t = e.hourCycle;
|
|
2977
3020
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2978
3021
|
e.hourCycles && // @ts-ignore
|
|
@@ -2994,20 +3037,20 @@ function Kn(e) {
|
|
|
2994
3037
|
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2995
3038
|
return i[0];
|
|
2996
3039
|
}
|
|
2997
|
-
var
|
|
3040
|
+
var Ge, oi = new RegExp("^".concat(fr.source, "*")), si = new RegExp("".concat(fr.source, "*$"));
|
|
2998
3041
|
function y(e, t) {
|
|
2999
3042
|
return { start: e, end: t };
|
|
3000
3043
|
}
|
|
3001
|
-
var
|
|
3044
|
+
var ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), ui = !!String.fromCodePoint, li = !!Object.fromEntries, hi = !!String.prototype.codePointAt, ci = !!String.prototype.trimStart, fi = !!String.prototype.trimEnd, pi = !!Number.isSafeInteger, di = pi ? Number.isSafeInteger : function(e) {
|
|
3002
3045
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3003
|
-
},
|
|
3046
|
+
}, et = !0;
|
|
3004
3047
|
try {
|
|
3005
|
-
var
|
|
3006
|
-
|
|
3048
|
+
var mi = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3049
|
+
et = ((Ge = mi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3007
3050
|
} catch {
|
|
3008
|
-
|
|
3051
|
+
et = !1;
|
|
3009
3052
|
}
|
|
3010
|
-
var
|
|
3053
|
+
var At = ai ? (
|
|
3011
3054
|
// Native
|
|
3012
3055
|
function(t, r, n) {
|
|
3013
3056
|
return t.startsWith(r, n);
|
|
@@ -3017,7 +3060,7 @@ var Ct = ri ? (
|
|
|
3017
3060
|
function(t, r, n) {
|
|
3018
3061
|
return t.slice(n, n + r.length) === r;
|
|
3019
3062
|
}
|
|
3020
|
-
),
|
|
3063
|
+
), tt = ui ? String.fromCodePoint : (
|
|
3021
3064
|
// IE11
|
|
3022
3065
|
function() {
|
|
3023
3066
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3029,9 +3072,9 @@ var Ct = ri ? (
|
|
|
3029
3072
|
}
|
|
3030
3073
|
return n;
|
|
3031
3074
|
}
|
|
3032
|
-
),
|
|
3075
|
+
), It = (
|
|
3033
3076
|
// native
|
|
3034
|
-
|
|
3077
|
+
li ? Object.fromEntries : (
|
|
3035
3078
|
// Ponyfill
|
|
3036
3079
|
function(t) {
|
|
3037
3080
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3041,7 +3084,7 @@ var Ct = ri ? (
|
|
|
3041
3084
|
return r;
|
|
3042
3085
|
}
|
|
3043
3086
|
)
|
|
3044
|
-
),
|
|
3087
|
+
), br = hi ? (
|
|
3045
3088
|
// Native
|
|
3046
3089
|
function(t, r) {
|
|
3047
3090
|
return t.codePointAt(r);
|
|
@@ -3055,7 +3098,7 @@ var Ct = ri ? (
|
|
|
3055
3098
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3056
3099
|
}
|
|
3057
3100
|
}
|
|
3058
|
-
),
|
|
3101
|
+
), bi = ci ? (
|
|
3059
3102
|
// Native
|
|
3060
3103
|
function(t) {
|
|
3061
3104
|
return t.trimStart();
|
|
@@ -3063,9 +3106,9 @@ var Ct = ri ? (
|
|
|
3063
3106
|
) : (
|
|
3064
3107
|
// Ponyfill
|
|
3065
3108
|
function(t) {
|
|
3066
|
-
return t.replace(
|
|
3109
|
+
return t.replace(oi, "");
|
|
3067
3110
|
}
|
|
3068
|
-
),
|
|
3111
|
+
), gi = fi ? (
|
|
3069
3112
|
// Native
|
|
3070
3113
|
function(t) {
|
|
3071
3114
|
return t.trimEnd();
|
|
@@ -3073,32 +3116,32 @@ var Ct = ri ? (
|
|
|
3073
3116
|
) : (
|
|
3074
3117
|
// Ponyfill
|
|
3075
3118
|
function(t) {
|
|
3076
|
-
return t.replace(
|
|
3119
|
+
return t.replace(si, "");
|
|
3077
3120
|
}
|
|
3078
3121
|
);
|
|
3079
|
-
function
|
|
3122
|
+
function gr(e, t) {
|
|
3080
3123
|
return new RegExp(e, t);
|
|
3081
3124
|
}
|
|
3082
|
-
var
|
|
3083
|
-
if (
|
|
3084
|
-
var
|
|
3085
|
-
|
|
3125
|
+
var rt;
|
|
3126
|
+
if (et) {
|
|
3127
|
+
var Bt = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3128
|
+
rt = function(t, r) {
|
|
3086
3129
|
var n;
|
|
3087
|
-
|
|
3088
|
-
var i =
|
|
3130
|
+
Bt.lastIndex = r;
|
|
3131
|
+
var i = Bt.exec(t);
|
|
3089
3132
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3090
3133
|
};
|
|
3091
3134
|
} else
|
|
3092
|
-
|
|
3135
|
+
rt = function(t, r) {
|
|
3093
3136
|
for (var n = []; ; ) {
|
|
3094
|
-
var i =
|
|
3095
|
-
if (i === void 0 ||
|
|
3137
|
+
var i = br(t, r);
|
|
3138
|
+
if (i === void 0 || vr(i) || xi(i))
|
|
3096
3139
|
break;
|
|
3097
3140
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3098
3141
|
}
|
|
3099
|
-
return
|
|
3142
|
+
return tt.apply(void 0, n);
|
|
3100
3143
|
};
|
|
3101
|
-
var
|
|
3144
|
+
var vi = (
|
|
3102
3145
|
/** @class */
|
|
3103
3146
|
function() {
|
|
3104
3147
|
function e(t, r) {
|
|
@@ -3122,14 +3165,14 @@ var di = (
|
|
|
3122
3165
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3123
3166
|
var a = this.clonePosition();
|
|
3124
3167
|
this.bump(), i.push({
|
|
3125
|
-
type:
|
|
3168
|
+
type: E.pound,
|
|
3126
3169
|
location: y(a, this.clonePosition())
|
|
3127
3170
|
});
|
|
3128
3171
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3129
3172
|
if (n)
|
|
3130
3173
|
break;
|
|
3131
3174
|
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3132
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3175
|
+
} else if (o === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
|
|
3133
3176
|
var s = this.parseTag(t, r);
|
|
3134
3177
|
if (s.err)
|
|
3135
3178
|
return s;
|
|
@@ -3150,7 +3193,7 @@ var di = (
|
|
|
3150
3193
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3151
3194
|
return {
|
|
3152
3195
|
val: {
|
|
3153
|
-
type:
|
|
3196
|
+
type: E.literal,
|
|
3154
3197
|
value: "<".concat(i, "/>"),
|
|
3155
3198
|
location: y(n, this.clonePosition())
|
|
3156
3199
|
},
|
|
@@ -3162,12 +3205,12 @@ var di = (
|
|
|
3162
3205
|
return o;
|
|
3163
3206
|
var s = o.val, a = this.clonePosition();
|
|
3164
3207
|
if (this.bumpIf("</")) {
|
|
3165
|
-
if (this.isEOF() || !
|
|
3208
|
+
if (this.isEOF() || !nt(this.char()))
|
|
3166
3209
|
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
|
3167
|
-
var
|
|
3168
|
-
return i !==
|
|
3210
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
3211
|
+
return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3169
3212
|
val: {
|
|
3170
|
-
type:
|
|
3213
|
+
type: E.tag,
|
|
3171
3214
|
value: i,
|
|
3172
3215
|
children: s,
|
|
3173
3216
|
location: y(n, this.clonePosition())
|
|
@@ -3180,7 +3223,7 @@ var di = (
|
|
|
3180
3223
|
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
|
3181
3224
|
}, e.prototype.parseTagName = function() {
|
|
3182
3225
|
var t = this.offset();
|
|
3183
|
-
for (this.bump(); !this.isEOF() &&
|
|
3226
|
+
for (this.bump(); !this.isEOF() && _i(this.char()); )
|
|
3184
3227
|
this.bump();
|
|
3185
3228
|
return this.message.slice(t, this.offset());
|
|
3186
3229
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3202,14 +3245,14 @@ var di = (
|
|
|
3202
3245
|
}
|
|
3203
3246
|
break;
|
|
3204
3247
|
}
|
|
3205
|
-
var
|
|
3248
|
+
var u = y(n, this.clonePosition());
|
|
3206
3249
|
return {
|
|
3207
|
-
val: { type:
|
|
3250
|
+
val: { type: E.literal, value: i, location: u },
|
|
3208
3251
|
err: null
|
|
3209
3252
|
};
|
|
3210
3253
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3211
3254
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3212
|
-
!
|
|
3255
|
+
!yi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3213
3256
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3214
3257
|
if (this.isEOF() || this.char() !== 39)
|
|
3215
3258
|
return null;
|
|
@@ -3243,12 +3286,12 @@ var di = (
|
|
|
3243
3286
|
r.push(n);
|
|
3244
3287
|
this.bump();
|
|
3245
3288
|
}
|
|
3246
|
-
return
|
|
3289
|
+
return tt.apply(void 0, r);
|
|
3247
3290
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3248
3291
|
if (this.isEOF())
|
|
3249
3292
|
return null;
|
|
3250
3293
|
var n = this.char();
|
|
3251
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3294
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tt(n));
|
|
3252
3295
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3253
3296
|
var n = this.clonePosition();
|
|
3254
3297
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3264,7 +3307,7 @@ var di = (
|
|
|
3264
3307
|
case 125:
|
|
3265
3308
|
return this.bump(), {
|
|
3266
3309
|
val: {
|
|
3267
|
-
type:
|
|
3310
|
+
type: E.argument,
|
|
3268
3311
|
// value does not include the opening and closing braces.
|
|
3269
3312
|
value: i,
|
|
3270
3313
|
location: y(n, this.clonePosition())
|
|
@@ -3277,54 +3320,54 @@ var di = (
|
|
|
3277
3320
|
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3278
3321
|
}
|
|
3279
3322
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3280
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3323
|
+
var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
|
|
3281
3324
|
this.bumpTo(i);
|
|
3282
3325
|
var o = this.clonePosition(), s = y(t, o);
|
|
3283
3326
|
return { value: n, location: s };
|
|
3284
3327
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3285
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3328
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3286
3329
|
switch (a) {
|
|
3287
3330
|
case "":
|
|
3288
|
-
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s,
|
|
3331
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s, u));
|
|
3289
3332
|
case "number":
|
|
3290
3333
|
case "date":
|
|
3291
3334
|
case "time": {
|
|
3292
3335
|
this.bumpSpace();
|
|
3293
|
-
var
|
|
3336
|
+
var l = null;
|
|
3294
3337
|
if (this.bumpIf(",")) {
|
|
3295
3338
|
this.bumpSpace();
|
|
3296
3339
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3297
3340
|
if (c.err)
|
|
3298
3341
|
return c;
|
|
3299
|
-
var f =
|
|
3342
|
+
var f = gi(c.val);
|
|
3300
3343
|
if (f.length === 0)
|
|
3301
3344
|
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3302
3345
|
var m = y(h, this.clonePosition());
|
|
3303
|
-
|
|
3346
|
+
l = { style: f, styleLocation: m };
|
|
3304
3347
|
}
|
|
3305
|
-
var
|
|
3306
|
-
if (
|
|
3307
|
-
return
|
|
3348
|
+
var d = this.tryParseArgumentClose(i);
|
|
3349
|
+
if (d.err)
|
|
3350
|
+
return d;
|
|
3308
3351
|
var b = y(i, this.clonePosition());
|
|
3309
|
-
if (
|
|
3310
|
-
var T =
|
|
3352
|
+
if (l && At(l?.style, "::", 0)) {
|
|
3353
|
+
var T = bi(l.style.slice(2));
|
|
3311
3354
|
if (a === "number") {
|
|
3312
|
-
var c = this.parseNumberSkeletonFromString(T,
|
|
3355
|
+
var c = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
|
3313
3356
|
return c.err ? c : {
|
|
3314
|
-
val: { type:
|
|
3357
|
+
val: { type: E.number, value: n, location: b, style: c.val },
|
|
3315
3358
|
err: null
|
|
3316
3359
|
};
|
|
3317
3360
|
} else {
|
|
3318
3361
|
if (T.length === 0)
|
|
3319
3362
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
|
3320
3363
|
var L = T;
|
|
3321
|
-
this.locale && (L =
|
|
3364
|
+
this.locale && (L = ni(T, this.locale));
|
|
3322
3365
|
var f = {
|
|
3323
|
-
type:
|
|
3366
|
+
type: re.dateTime,
|
|
3324
3367
|
pattern: L,
|
|
3325
|
-
location:
|
|
3326
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3327
|
-
}, P = a === "date" ?
|
|
3368
|
+
location: l.styleLocation,
|
|
3369
|
+
parsedOptions: this.shouldParseSkeletons ? Yn(L) : {}
|
|
3370
|
+
}, P = a === "date" ? E.date : E.time;
|
|
3328
3371
|
return {
|
|
3329
3372
|
val: { type: P, value: n, location: b, style: f },
|
|
3330
3373
|
err: null
|
|
@@ -3333,10 +3376,10 @@ var di = (
|
|
|
3333
3376
|
}
|
|
3334
3377
|
return {
|
|
3335
3378
|
val: {
|
|
3336
|
-
type: a === "number" ?
|
|
3379
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3337
3380
|
value: n,
|
|
3338
3381
|
location: b,
|
|
3339
|
-
style: (o =
|
|
3382
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
3340
3383
|
},
|
|
3341
3384
|
err: null
|
|
3342
3385
|
};
|
|
@@ -3346,7 +3389,7 @@ var di = (
|
|
|
3346
3389
|
case "select": {
|
|
3347
3390
|
var A = this.clonePosition();
|
|
3348
3391
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3349
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A,
|
|
3392
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, we({}, A)));
|
|
3350
3393
|
this.bumpSpace();
|
|
3351
3394
|
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3352
3395
|
if (a !== "select" && O.value === "offset") {
|
|
@@ -3361,23 +3404,23 @@ var di = (
|
|
|
3361
3404
|
var N = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3362
3405
|
if (N.err)
|
|
3363
3406
|
return N;
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3366
|
-
return
|
|
3407
|
+
var d = this.tryParseArgumentClose(i);
|
|
3408
|
+
if (d.err)
|
|
3409
|
+
return d;
|
|
3367
3410
|
var g = y(i, this.clonePosition());
|
|
3368
3411
|
return a === "select" ? {
|
|
3369
3412
|
val: {
|
|
3370
|
-
type:
|
|
3413
|
+
type: E.select,
|
|
3371
3414
|
value: n,
|
|
3372
|
-
options:
|
|
3415
|
+
options: It(N.val),
|
|
3373
3416
|
location: g
|
|
3374
3417
|
},
|
|
3375
3418
|
err: null
|
|
3376
3419
|
} : {
|
|
3377
3420
|
val: {
|
|
3378
|
-
type:
|
|
3421
|
+
type: E.plural,
|
|
3379
3422
|
value: n,
|
|
3380
|
-
options:
|
|
3423
|
+
options: It(N.val),
|
|
3381
3424
|
offset: w,
|
|
3382
3425
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3383
3426
|
location: g
|
|
@@ -3386,7 +3429,7 @@ var di = (
|
|
|
3386
3429
|
};
|
|
3387
3430
|
}
|
|
3388
3431
|
default:
|
|
3389
|
-
return this.error(v.INVALID_ARGUMENT_TYPE, y(s,
|
|
3432
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, y(s, u));
|
|
3390
3433
|
}
|
|
3391
3434
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3392
3435
|
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3428,50 +3471,50 @@ var di = (
|
|
|
3428
3471
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3429
3472
|
var n = [];
|
|
3430
3473
|
try {
|
|
3431
|
-
n =
|
|
3474
|
+
n = Jn(t);
|
|
3432
3475
|
} catch {
|
|
3433
3476
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3434
3477
|
}
|
|
3435
3478
|
return {
|
|
3436
3479
|
val: {
|
|
3437
|
-
type:
|
|
3480
|
+
type: re.number,
|
|
3438
3481
|
tokens: n,
|
|
3439
3482
|
location: r,
|
|
3440
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3483
|
+
parsedOptions: this.shouldParseSkeletons ? ri(n) : {}
|
|
3441
3484
|
},
|
|
3442
3485
|
err: null
|
|
3443
3486
|
};
|
|
3444
3487
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3445
|
-
for (var o, s = !1, a = [],
|
|
3446
|
-
if (
|
|
3488
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3489
|
+
if (l.length === 0) {
|
|
3447
3490
|
var c = this.clonePosition();
|
|
3448
3491
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3449
3492
|
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3450
3493
|
if (f.err)
|
|
3451
3494
|
return f;
|
|
3452
|
-
h = y(c, this.clonePosition()),
|
|
3495
|
+
h = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
3453
3496
|
} else
|
|
3454
3497
|
break;
|
|
3455
3498
|
}
|
|
3456
|
-
if (
|
|
3499
|
+
if (u.has(l))
|
|
3457
3500
|
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3458
|
-
|
|
3501
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3459
3502
|
var m = this.clonePosition();
|
|
3460
3503
|
if (!this.bumpIf("{"))
|
|
3461
3504
|
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3462
|
-
var
|
|
3463
|
-
if (
|
|
3464
|
-
return
|
|
3505
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3506
|
+
if (d.err)
|
|
3507
|
+
return d;
|
|
3465
3508
|
var b = this.tryParseArgumentClose(m);
|
|
3466
3509
|
if (b.err)
|
|
3467
3510
|
return b;
|
|
3468
3511
|
a.push([
|
|
3469
|
-
|
|
3512
|
+
l,
|
|
3470
3513
|
{
|
|
3471
|
-
value:
|
|
3514
|
+
value: d.val,
|
|
3472
3515
|
location: y(m, this.clonePosition())
|
|
3473
3516
|
}
|
|
3474
|
-
]),
|
|
3517
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3475
3518
|
}
|
|
3476
3519
|
return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3477
3520
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3484,8 +3527,8 @@ var di = (
|
|
|
3484
3527
|
else
|
|
3485
3528
|
break;
|
|
3486
3529
|
}
|
|
3487
|
-
var
|
|
3488
|
-
return o ? (s *= n,
|
|
3530
|
+
var u = y(i, this.clonePosition());
|
|
3531
|
+
return o ? (s *= n, di(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3489
3532
|
}, e.prototype.offset = function() {
|
|
3490
3533
|
return this.position.offset;
|
|
3491
3534
|
}, e.prototype.isEOF = function() {
|
|
@@ -3500,7 +3543,7 @@ var di = (
|
|
|
3500
3543
|
var t = this.position.offset;
|
|
3501
3544
|
if (t >= this.message.length)
|
|
3502
3545
|
throw Error("out of bound");
|
|
3503
|
-
var r =
|
|
3546
|
+
var r = br(this.message, t);
|
|
3504
3547
|
if (r === void 0)
|
|
3505
3548
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3506
3549
|
return r;
|
|
@@ -3519,7 +3562,7 @@ var di = (
|
|
|
3519
3562
|
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);
|
|
3520
3563
|
}
|
|
3521
3564
|
}, e.prototype.bumpIf = function(t) {
|
|
3522
|
-
if (
|
|
3565
|
+
if (At(this.message, t, this.offset())) {
|
|
3523
3566
|
for (var r = 0; r < t.length; r++)
|
|
3524
3567
|
this.bump();
|
|
3525
3568
|
return !0;
|
|
@@ -3541,7 +3584,7 @@ var di = (
|
|
|
3541
3584
|
break;
|
|
3542
3585
|
}
|
|
3543
3586
|
}, e.prototype.bumpSpace = function() {
|
|
3544
|
-
for (; !this.isEOF() &&
|
|
3587
|
+
for (; !this.isEOF() && vr(this.char()); )
|
|
3545
3588
|
this.bump();
|
|
3546
3589
|
}, e.prototype.peek = function() {
|
|
3547
3590
|
if (this.isEOF())
|
|
@@ -3551,47 +3594,47 @@ var di = (
|
|
|
3551
3594
|
}, e;
|
|
3552
3595
|
}()
|
|
3553
3596
|
);
|
|
3554
|
-
function
|
|
3597
|
+
function nt(e) {
|
|
3555
3598
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3556
3599
|
}
|
|
3557
|
-
function
|
|
3558
|
-
return
|
|
3600
|
+
function yi(e) {
|
|
3601
|
+
return nt(e) || e === 47;
|
|
3559
3602
|
}
|
|
3560
|
-
function
|
|
3603
|
+
function _i(e) {
|
|
3561
3604
|
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;
|
|
3562
3605
|
}
|
|
3563
|
-
function
|
|
3606
|
+
function vr(e) {
|
|
3564
3607
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3565
3608
|
}
|
|
3566
|
-
function
|
|
3609
|
+
function xi(e) {
|
|
3567
3610
|
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;
|
|
3568
3611
|
}
|
|
3569
|
-
function
|
|
3612
|
+
function it(e) {
|
|
3570
3613
|
e.forEach(function(t) {
|
|
3571
|
-
if (delete t.location,
|
|
3614
|
+
if (delete t.location, ur(t) || lr(t))
|
|
3572
3615
|
for (var r in t.options)
|
|
3573
|
-
delete t.options[r].location,
|
|
3616
|
+
delete t.options[r].location, it(t.options[r].value);
|
|
3574
3617
|
else
|
|
3575
|
-
|
|
3618
|
+
or(t) && cr(t.style) || (sr(t) || ar(t)) && Ke(t.style) ? delete t.style.location : hr(t) && it(t.children);
|
|
3576
3619
|
});
|
|
3577
3620
|
}
|
|
3578
|
-
function
|
|
3579
|
-
t === void 0 && (t = {}), t =
|
|
3580
|
-
var r = new
|
|
3621
|
+
function Ei(e, t) {
|
|
3622
|
+
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3623
|
+
var r = new vi(e, t).parse();
|
|
3581
3624
|
if (r.err) {
|
|
3582
3625
|
var n = SyntaxError(v[r.err.kind]);
|
|
3583
3626
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3584
3627
|
}
|
|
3585
|
-
return t?.captureLocation ||
|
|
3628
|
+
return t?.captureLocation || it(r.val), r.val;
|
|
3586
3629
|
}
|
|
3587
|
-
var
|
|
3630
|
+
var ne;
|
|
3588
3631
|
(function(e) {
|
|
3589
3632
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3590
|
-
})(
|
|
3591
|
-
var
|
|
3633
|
+
})(ne || (ne = {}));
|
|
3634
|
+
var Be = (
|
|
3592
3635
|
/** @class */
|
|
3593
3636
|
function(e) {
|
|
3594
|
-
|
|
3637
|
+
Ie(t, e);
|
|
3595
3638
|
function t(r, n, i) {
|
|
3596
3639
|
var o = e.call(this, r) || this;
|
|
3597
3640
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3600,64 +3643,64 @@ var Ae = (
|
|
|
3600
3643
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3601
3644
|
}, t;
|
|
3602
3645
|
}(Error)
|
|
3603
|
-
),
|
|
3646
|
+
), Pt = (
|
|
3604
3647
|
/** @class */
|
|
3605
3648
|
function(e) {
|
|
3606
|
-
|
|
3649
|
+
Ie(t, e);
|
|
3607
3650
|
function t(r, n, i, o) {
|
|
3608
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3651
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3609
3652
|
}
|
|
3610
3653
|
return t;
|
|
3611
|
-
}(
|
|
3612
|
-
),
|
|
3654
|
+
}(Be)
|
|
3655
|
+
), wi = (
|
|
3613
3656
|
/** @class */
|
|
3614
3657
|
function(e) {
|
|
3615
|
-
|
|
3658
|
+
Ie(t, e);
|
|
3616
3659
|
function t(r, n, i) {
|
|
3617
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3660
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3618
3661
|
}
|
|
3619
3662
|
return t;
|
|
3620
|
-
}(
|
|
3621
|
-
),
|
|
3663
|
+
}(Be)
|
|
3664
|
+
), Ci = (
|
|
3622
3665
|
/** @class */
|
|
3623
3666
|
function(e) {
|
|
3624
|
-
|
|
3667
|
+
Ie(t, e);
|
|
3625
3668
|
function t(r, n) {
|
|
3626
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3669
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3627
3670
|
}
|
|
3628
3671
|
return t;
|
|
3629
|
-
}(
|
|
3672
|
+
}(Be)
|
|
3630
3673
|
), M;
|
|
3631
3674
|
(function(e) {
|
|
3632
3675
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3633
3676
|
})(M || (M = {}));
|
|
3634
|
-
function
|
|
3677
|
+
function Si(e) {
|
|
3635
3678
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3636
3679
|
var n = t[t.length - 1];
|
|
3637
3680
|
return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
|
|
3638
3681
|
}, []);
|
|
3639
3682
|
}
|
|
3640
|
-
function
|
|
3683
|
+
function Ti(e) {
|
|
3641
3684
|
return typeof e == "function";
|
|
3642
3685
|
}
|
|
3643
3686
|
function _e(e, t, r, n, i, o, s) {
|
|
3644
|
-
if (e.length === 1 &&
|
|
3687
|
+
if (e.length === 1 && Ct(e[0]))
|
|
3645
3688
|
return [
|
|
3646
3689
|
{
|
|
3647
3690
|
type: M.literal,
|
|
3648
3691
|
value: e[0].value
|
|
3649
3692
|
}
|
|
3650
3693
|
];
|
|
3651
|
-
for (var a = [],
|
|
3652
|
-
var h = u
|
|
3653
|
-
if (
|
|
3694
|
+
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3695
|
+
var h = l[u];
|
|
3696
|
+
if (Ct(h)) {
|
|
3654
3697
|
a.push({
|
|
3655
3698
|
type: M.literal,
|
|
3656
3699
|
value: h.value
|
|
3657
3700
|
});
|
|
3658
3701
|
continue;
|
|
3659
3702
|
}
|
|
3660
|
-
if (
|
|
3703
|
+
if (Zn(h)) {
|
|
3661
3704
|
typeof o == "number" && a.push({
|
|
3662
3705
|
type: M.literal,
|
|
3663
3706
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3666,44 +3709,44 @@ function _e(e, t, r, n, i, o, s) {
|
|
|
3666
3709
|
}
|
|
3667
3710
|
var c = h.value;
|
|
3668
3711
|
if (!(i && c in i))
|
|
3669
|
-
throw new
|
|
3712
|
+
throw new Ci(c, s);
|
|
3670
3713
|
var f = i[c];
|
|
3671
|
-
if (
|
|
3714
|
+
if (zn(h)) {
|
|
3672
3715
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3673
3716
|
type: typeof f == "string" ? M.literal : M.object,
|
|
3674
3717
|
value: f
|
|
3675
3718
|
});
|
|
3676
3719
|
continue;
|
|
3677
3720
|
}
|
|
3678
|
-
if (
|
|
3679
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3721
|
+
if (sr(h)) {
|
|
3722
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3680
3723
|
a.push({
|
|
3681
3724
|
type: M.literal,
|
|
3682
3725
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3683
3726
|
});
|
|
3684
3727
|
continue;
|
|
3685
3728
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3729
|
+
if (ar(h)) {
|
|
3730
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ke(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3688
3731
|
a.push({
|
|
3689
3732
|
type: M.literal,
|
|
3690
3733
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3691
3734
|
});
|
|
3692
3735
|
continue;
|
|
3693
3736
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3737
|
+
if (or(h)) {
|
|
3738
|
+
var m = typeof h.style == "string" ? n.number[h.style] : cr(h.style) ? h.style.parsedOptions : void 0;
|
|
3696
3739
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3697
3740
|
type: M.literal,
|
|
3698
3741
|
value: r.getNumberFormat(t, m).format(f)
|
|
3699
3742
|
});
|
|
3700
3743
|
continue;
|
|
3701
3744
|
}
|
|
3702
|
-
if (
|
|
3703
|
-
var
|
|
3704
|
-
if (!
|
|
3705
|
-
throw new
|
|
3706
|
-
var L = _e(
|
|
3745
|
+
if (hr(h)) {
|
|
3746
|
+
var d = h.children, b = h.value, T = i[b];
|
|
3747
|
+
if (!Ti(T))
|
|
3748
|
+
throw new wi(b, "function", s);
|
|
3749
|
+
var L = _e(d, t, r, n, i, o), P = T(L.map(function(w) {
|
|
3707
3750
|
return w.value;
|
|
3708
3751
|
}));
|
|
3709
3752
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
@@ -3713,42 +3756,42 @@ function _e(e, t, r, n, i, o, s) {
|
|
|
3713
3756
|
};
|
|
3714
3757
|
}));
|
|
3715
3758
|
}
|
|
3716
|
-
if (
|
|
3759
|
+
if (ur(h)) {
|
|
3717
3760
|
var A = h.options[f] || h.options.other;
|
|
3718
3761
|
if (!A)
|
|
3719
|
-
throw new
|
|
3762
|
+
throw new Pt(h.value, f, Object.keys(h.options), s);
|
|
3720
3763
|
a.push.apply(a, _e(A.value, t, r, n, i));
|
|
3721
3764
|
continue;
|
|
3722
3765
|
}
|
|
3723
|
-
if (
|
|
3766
|
+
if (lr(h)) {
|
|
3724
3767
|
var A = h.options["=".concat(f)];
|
|
3725
3768
|
if (!A) {
|
|
3726
3769
|
if (!Intl.PluralRules)
|
|
3727
|
-
throw new
|
|
3770
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3728
3771
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3729
|
-
`,
|
|
3772
|
+
`, ne.MISSING_INTL_API, s);
|
|
3730
3773
|
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3731
3774
|
A = h.options[O] || h.options.other;
|
|
3732
3775
|
}
|
|
3733
3776
|
if (!A)
|
|
3734
|
-
throw new
|
|
3777
|
+
throw new Pt(h.value, f, Object.keys(h.options), s);
|
|
3735
3778
|
a.push.apply(a, _e(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3736
3779
|
continue;
|
|
3737
3780
|
}
|
|
3738
3781
|
}
|
|
3739
|
-
return
|
|
3782
|
+
return Si(a);
|
|
3740
3783
|
}
|
|
3741
|
-
function
|
|
3742
|
-
return t ?
|
|
3743
|
-
return r[n] =
|
|
3784
|
+
function Hi(e, t) {
|
|
3785
|
+
return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3786
|
+
return r[n] = G(G({}, e[n]), t[n] || {}), r;
|
|
3744
3787
|
}, {})) : e;
|
|
3745
3788
|
}
|
|
3746
|
-
function
|
|
3789
|
+
function Ai(e, t) {
|
|
3747
3790
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3748
|
-
return r[n] =
|
|
3749
|
-
},
|
|
3791
|
+
return r[n] = Hi(e[n], t[n]), r;
|
|
3792
|
+
}, G({}, e)) : e;
|
|
3750
3793
|
}
|
|
3751
|
-
function
|
|
3794
|
+
function Fe(e) {
|
|
3752
3795
|
return {
|
|
3753
3796
|
create: function() {
|
|
3754
3797
|
return {
|
|
@@ -3762,39 +3805,39 @@ function $e(e) {
|
|
|
3762
3805
|
}
|
|
3763
3806
|
};
|
|
3764
3807
|
}
|
|
3765
|
-
function
|
|
3808
|
+
function Ii(e) {
|
|
3766
3809
|
return e === void 0 && (e = {
|
|
3767
3810
|
number: {},
|
|
3768
3811
|
dateTime: {},
|
|
3769
3812
|
pluralRules: {}
|
|
3770
3813
|
}), {
|
|
3771
|
-
getNumberFormat:
|
|
3814
|
+
getNumberFormat: $e(function() {
|
|
3772
3815
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3773
3816
|
r[n] = arguments[n];
|
|
3774
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3817
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3775
3818
|
}, {
|
|
3776
|
-
cache:
|
|
3777
|
-
strategy:
|
|
3819
|
+
cache: Fe(e.number),
|
|
3820
|
+
strategy: ke.variadic
|
|
3778
3821
|
}),
|
|
3779
|
-
getDateTimeFormat:
|
|
3822
|
+
getDateTimeFormat: $e(function() {
|
|
3780
3823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3781
3824
|
r[n] = arguments[n];
|
|
3782
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3825
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3783
3826
|
}, {
|
|
3784
|
-
cache:
|
|
3785
|
-
strategy:
|
|
3827
|
+
cache: Fe(e.dateTime),
|
|
3828
|
+
strategy: ke.variadic
|
|
3786
3829
|
}),
|
|
3787
|
-
getPluralRules:
|
|
3830
|
+
getPluralRules: $e(function() {
|
|
3788
3831
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3789
3832
|
r[n] = arguments[n];
|
|
3790
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3833
|
+
return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
|
|
3791
3834
|
}, {
|
|
3792
|
-
cache:
|
|
3793
|
-
strategy:
|
|
3835
|
+
cache: Fe(e.pluralRules),
|
|
3836
|
+
strategy: ke.variadic
|
|
3794
3837
|
})
|
|
3795
3838
|
};
|
|
3796
3839
|
}
|
|
3797
|
-
var
|
|
3840
|
+
var Bi = (
|
|
3798
3841
|
/** @class */
|
|
3799
3842
|
function() {
|
|
3800
3843
|
function e(t, r, n, i) {
|
|
@@ -3804,20 +3847,20 @@ var Si = (
|
|
|
3804
3847
|
number: {},
|
|
3805
3848
|
dateTime: {},
|
|
3806
3849
|
pluralRules: {}
|
|
3807
|
-
}, this.format = function(
|
|
3808
|
-
var
|
|
3809
|
-
if (
|
|
3810
|
-
return
|
|
3811
|
-
var h =
|
|
3850
|
+
}, this.format = function(u) {
|
|
3851
|
+
var l = o.formatToParts(u);
|
|
3852
|
+
if (l.length === 1)
|
|
3853
|
+
return l[0].value;
|
|
3854
|
+
var h = l.reduce(function(c, f) {
|
|
3812
3855
|
return !c.length || f.type !== M.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3813
3856
|
}, []);
|
|
3814
3857
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3815
|
-
}, this.formatToParts = function(
|
|
3816
|
-
return _e(o.ast, o.locales, o.formatters, o.formats,
|
|
3858
|
+
}, this.formatToParts = function(u) {
|
|
3859
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3817
3860
|
}, this.resolvedOptions = function() {
|
|
3818
|
-
var
|
|
3861
|
+
var u;
|
|
3819
3862
|
return {
|
|
3820
|
-
locale: ((
|
|
3863
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3821
3864
|
};
|
|
3822
3865
|
}, this.getAst = function() {
|
|
3823
3866
|
return o.ast;
|
|
@@ -3826,13 +3869,13 @@ var Si = (
|
|
|
3826
3869
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3827
3870
|
var s = i || {};
|
|
3828
3871
|
s.formatters;
|
|
3829
|
-
var a =
|
|
3830
|
-
this.ast = e.__parse(t,
|
|
3872
|
+
var a = $n(s, ["formatters"]);
|
|
3873
|
+
this.ast = e.__parse(t, G(G({}, a), { locale: this.resolvedLocale }));
|
|
3831
3874
|
} else
|
|
3832
3875
|
this.ast = t;
|
|
3833
3876
|
if (!Array.isArray(this.ast))
|
|
3834
3877
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3835
|
-
this.formats =
|
|
3878
|
+
this.formats = Ai(e.formats, n), this.formatters = i && i.formatters || Ii(this.formatterCache);
|
|
3836
3879
|
}
|
|
3837
3880
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3838
3881
|
get: function() {
|
|
@@ -3845,7 +3888,7 @@ var Si = (
|
|
|
3845
3888
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3846
3889
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3847
3890
|
}
|
|
3848
|
-
}, e.__parse =
|
|
3891
|
+
}, e.__parse = Ei, e.formats = {
|
|
3849
3892
|
number: {
|
|
3850
3893
|
integer: {
|
|
3851
3894
|
maximumFractionDigits: 0
|
|
@@ -3906,7 +3949,7 @@ var Si = (
|
|
|
3906
3949
|
}, e;
|
|
3907
3950
|
}()
|
|
3908
3951
|
);
|
|
3909
|
-
function
|
|
3952
|
+
function Pi(e, t) {
|
|
3910
3953
|
if (t == null)
|
|
3911
3954
|
return;
|
|
3912
3955
|
if (t in e)
|
|
@@ -3927,92 +3970,92 @@ function Ti(e, t) {
|
|
|
3927
3970
|
n = void 0;
|
|
3928
3971
|
return n;
|
|
3929
3972
|
}
|
|
3930
|
-
const V = {},
|
|
3973
|
+
const V = {}, Oi = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), yr = (e, t) => {
|
|
3931
3974
|
if (t == null)
|
|
3932
3975
|
return;
|
|
3933
3976
|
if (t in V && e in V[t])
|
|
3934
3977
|
return V[t][e];
|
|
3935
|
-
const r =
|
|
3978
|
+
const r = Pe(t);
|
|
3936
3979
|
for (let n = 0; n < r.length; n++) {
|
|
3937
|
-
const i = r[n], o =
|
|
3980
|
+
const i = r[n], o = Li(i, e);
|
|
3938
3981
|
if (o)
|
|
3939
|
-
return
|
|
3982
|
+
return Oi(e, t, o);
|
|
3940
3983
|
}
|
|
3941
3984
|
};
|
|
3942
|
-
let
|
|
3943
|
-
const
|
|
3944
|
-
function
|
|
3945
|
-
return
|
|
3985
|
+
let lt;
|
|
3986
|
+
const se = Ae({});
|
|
3987
|
+
function Mi(e) {
|
|
3988
|
+
return lt[e] || null;
|
|
3946
3989
|
}
|
|
3947
|
-
function
|
|
3948
|
-
return e in
|
|
3990
|
+
function _r(e) {
|
|
3991
|
+
return e in lt;
|
|
3949
3992
|
}
|
|
3950
|
-
function
|
|
3951
|
-
if (!
|
|
3993
|
+
function Li(e, t) {
|
|
3994
|
+
if (!_r(e))
|
|
3952
3995
|
return null;
|
|
3953
|
-
const r =
|
|
3954
|
-
return
|
|
3996
|
+
const r = Mi(e);
|
|
3997
|
+
return Pi(r, t);
|
|
3955
3998
|
}
|
|
3956
|
-
function
|
|
3999
|
+
function Ni(e) {
|
|
3957
4000
|
if (e == null)
|
|
3958
4001
|
return;
|
|
3959
|
-
const t =
|
|
4002
|
+
const t = Pe(e);
|
|
3960
4003
|
for (let r = 0; r < t.length; r++) {
|
|
3961
4004
|
const n = t[r];
|
|
3962
|
-
if (
|
|
4005
|
+
if (_r(n))
|
|
3963
4006
|
return n;
|
|
3964
4007
|
}
|
|
3965
4008
|
}
|
|
3966
|
-
function
|
|
3967
|
-
delete V[e],
|
|
4009
|
+
function xr(e, ...t) {
|
|
4010
|
+
delete V[e], se.update((r) => (r[e] = Dn.all([r[e] || {}, ...t]), r));
|
|
3968
4011
|
}
|
|
3969
|
-
|
|
3970
|
-
[
|
|
4012
|
+
oe(
|
|
4013
|
+
[se],
|
|
3971
4014
|
([e]) => Object.keys(e)
|
|
3972
4015
|
);
|
|
3973
|
-
|
|
4016
|
+
se.subscribe((e) => lt = e);
|
|
3974
4017
|
const xe = {};
|
|
3975
|
-
function
|
|
4018
|
+
function Ri(e, t) {
|
|
3976
4019
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3977
4020
|
}
|
|
3978
|
-
function
|
|
4021
|
+
function Er(e) {
|
|
3979
4022
|
return xe[e];
|
|
3980
4023
|
}
|
|
3981
|
-
function
|
|
3982
|
-
return
|
|
3983
|
-
const r =
|
|
4024
|
+
function Ui(e) {
|
|
4025
|
+
return Pe(e).map((t) => {
|
|
4026
|
+
const r = Er(t);
|
|
3984
4027
|
return [t, r ? [...r] : []];
|
|
3985
4028
|
}).filter(([, t]) => t.length > 0);
|
|
3986
4029
|
}
|
|
3987
|
-
function
|
|
3988
|
-
return e == null ? !1 :
|
|
4030
|
+
function ot(e) {
|
|
4031
|
+
return e == null ? !1 : Pe(e).some(
|
|
3989
4032
|
(t) => {
|
|
3990
4033
|
var r;
|
|
3991
|
-
return (r =
|
|
4034
|
+
return (r = Er(t)) == null ? void 0 : r.size;
|
|
3992
4035
|
}
|
|
3993
4036
|
);
|
|
3994
4037
|
}
|
|
3995
|
-
function
|
|
4038
|
+
function Di(e, t) {
|
|
3996
4039
|
return Promise.all(
|
|
3997
|
-
t.map((n) => (
|
|
3998
|
-
).then((n) =>
|
|
4040
|
+
t.map((n) => (Ri(e, n), n().then((i) => i.default || i)))
|
|
4041
|
+
).then((n) => xr(e, ...n));
|
|
3999
4042
|
}
|
|
4000
4043
|
const ue = {};
|
|
4001
|
-
function
|
|
4002
|
-
if (!
|
|
4044
|
+
function wr(e) {
|
|
4045
|
+
if (!ot(e))
|
|
4003
4046
|
return e in ue ? ue[e] : Promise.resolve();
|
|
4004
|
-
const t =
|
|
4047
|
+
const t = Ui(e);
|
|
4005
4048
|
return ue[e] = Promise.all(
|
|
4006
4049
|
t.map(
|
|
4007
|
-
([r, n]) =>
|
|
4050
|
+
([r, n]) => Di(r, n)
|
|
4008
4051
|
)
|
|
4009
4052
|
).then(() => {
|
|
4010
|
-
if (
|
|
4011
|
-
return
|
|
4053
|
+
if (ot(e))
|
|
4054
|
+
return wr(e);
|
|
4012
4055
|
delete ue[e];
|
|
4013
4056
|
}), ue[e];
|
|
4014
4057
|
}
|
|
4015
|
-
const
|
|
4058
|
+
const $i = {
|
|
4016
4059
|
number: {
|
|
4017
4060
|
scientific: { notation: "scientific" },
|
|
4018
4061
|
engineering: { notation: "engineering" },
|
|
@@ -4041,150 +4084,150 @@ const Li = {
|
|
|
4041
4084
|
timeZoneName: "short"
|
|
4042
4085
|
}
|
|
4043
4086
|
}
|
|
4044
|
-
},
|
|
4087
|
+
}, ki = {
|
|
4045
4088
|
fallbackLocale: null,
|
|
4046
4089
|
loadingDelay: 200,
|
|
4047
|
-
formats:
|
|
4090
|
+
formats: $i,
|
|
4048
4091
|
warnOnMissingMessages: !0,
|
|
4049
4092
|
handleMissingMessage: void 0,
|
|
4050
4093
|
ignoreTag: !0
|
|
4051
|
-
},
|
|
4052
|
-
function
|
|
4053
|
-
return
|
|
4094
|
+
}, Gi = ki;
|
|
4095
|
+
function ie() {
|
|
4096
|
+
return Gi;
|
|
4054
4097
|
}
|
|
4055
|
-
const
|
|
4056
|
-
var
|
|
4098
|
+
const je = Ae(!1);
|
|
4099
|
+
var Fi = Object.defineProperty, ji = Object.defineProperties, Vi = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, Xi = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zi = (e, t) => {
|
|
4057
4100
|
for (var r in t || (t = {}))
|
|
4058
|
-
|
|
4059
|
-
if (
|
|
4060
|
-
for (var r of
|
|
4061
|
-
|
|
4101
|
+
Wi.call(t, r) && Mt(e, r, t[r]);
|
|
4102
|
+
if (Ot)
|
|
4103
|
+
for (var r of Ot(t))
|
|
4104
|
+
Xi.call(t, r) && Mt(e, r, t[r]);
|
|
4062
4105
|
return e;
|
|
4063
|
-
},
|
|
4064
|
-
let
|
|
4065
|
-
const Ce =
|
|
4066
|
-
function
|
|
4106
|
+
}, Zi = (e, t) => ji(e, Vi(t));
|
|
4107
|
+
let st;
|
|
4108
|
+
const Ce = Ae(null);
|
|
4109
|
+
function Lt(e) {
|
|
4067
4110
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4068
4111
|
}
|
|
4069
|
-
function
|
|
4070
|
-
const r =
|
|
4071
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4112
|
+
function Pe(e, t = ie().fallbackLocale) {
|
|
4113
|
+
const r = Lt(e);
|
|
4114
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Lt(t)])] : r;
|
|
4072
4115
|
}
|
|
4073
4116
|
function z() {
|
|
4074
|
-
return
|
|
4117
|
+
return st ?? void 0;
|
|
4075
4118
|
}
|
|
4076
4119
|
Ce.subscribe((e) => {
|
|
4077
|
-
|
|
4120
|
+
st = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4078
4121
|
});
|
|
4079
|
-
const
|
|
4080
|
-
if (e &&
|
|
4081
|
-
const { loadingDelay: t } =
|
|
4122
|
+
const Qi = (e) => {
|
|
4123
|
+
if (e && Ni(e) && ot(e)) {
|
|
4124
|
+
const { loadingDelay: t } = ie();
|
|
4082
4125
|
let r;
|
|
4083
4126
|
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
4084
|
-
() =>
|
|
4127
|
+
() => je.set(!0),
|
|
4085
4128
|
t
|
|
4086
|
-
) :
|
|
4129
|
+
) : je.set(!0), wr(e).then(() => {
|
|
4087
4130
|
Ce.set(e);
|
|
4088
4131
|
}).finally(() => {
|
|
4089
|
-
clearTimeout(r),
|
|
4132
|
+
clearTimeout(r), je.set(!1);
|
|
4090
4133
|
});
|
|
4091
4134
|
}
|
|
4092
4135
|
return Ce.set(e);
|
|
4093
|
-
}, W =
|
|
4094
|
-
set:
|
|
4095
|
-
}),
|
|
4136
|
+
}, W = Zi(zi({}, Ce), {
|
|
4137
|
+
set: Qi
|
|
4138
|
+
}), Oe = (e) => {
|
|
4096
4139
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4097
4140
|
return (n) => {
|
|
4098
4141
|
const i = JSON.stringify(n);
|
|
4099
4142
|
return i in t ? t[i] : t[i] = e(n);
|
|
4100
4143
|
};
|
|
4101
4144
|
};
|
|
4102
|
-
var
|
|
4145
|
+
var Yi = Object.defineProperty, Se = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
4103
4146
|
for (var r in t || (t = {}))
|
|
4104
|
-
|
|
4105
|
-
if (
|
|
4106
|
-
for (var r of
|
|
4107
|
-
|
|
4147
|
+
Cr.call(t, r) && Nt(e, r, t[r]);
|
|
4148
|
+
if (Se)
|
|
4149
|
+
for (var r of Se(t))
|
|
4150
|
+
Sr.call(t, r) && Nt(e, r, t[r]);
|
|
4108
4151
|
return e;
|
|
4109
|
-
},
|
|
4152
|
+
}, ae = (e, t) => {
|
|
4110
4153
|
var r = {};
|
|
4111
4154
|
for (var n in e)
|
|
4112
|
-
|
|
4113
|
-
if (e != null &&
|
|
4114
|
-
for (var n of
|
|
4115
|
-
t.indexOf(n) < 0 &&
|
|
4155
|
+
Cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4156
|
+
if (e != null && Se)
|
|
4157
|
+
for (var n of Se(e))
|
|
4158
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
|
4116
4159
|
return r;
|
|
4117
4160
|
};
|
|
4118
|
-
const
|
|
4119
|
-
const { formats: r } =
|
|
4161
|
+
const fe = (e, t) => {
|
|
4162
|
+
const { formats: r } = ie();
|
|
4120
4163
|
if (e in r && t in r[e])
|
|
4121
4164
|
return r[e][t];
|
|
4122
4165
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4123
|
-
},
|
|
4166
|
+
}, qi = Oe(
|
|
4124
4167
|
(e) => {
|
|
4125
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4168
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4126
4169
|
if (r == null)
|
|
4127
4170
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4128
|
-
return n && (i =
|
|
4171
|
+
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
|
4129
4172
|
}
|
|
4130
|
-
),
|
|
4173
|
+
), Ji = Oe(
|
|
4131
4174
|
(e) => {
|
|
4132
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4175
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4133
4176
|
if (r == null)
|
|
4134
4177
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4135
|
-
return n ? i =
|
|
4178
|
+
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4136
4179
|
}
|
|
4137
|
-
),
|
|
4180
|
+
), Ki = Oe(
|
|
4138
4181
|
(e) => {
|
|
4139
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4182
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4140
4183
|
if (r == null)
|
|
4141
4184
|
throw new Error(
|
|
4142
4185
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4143
4186
|
);
|
|
4144
|
-
return n ? i =
|
|
4187
|
+
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4145
4188
|
}
|
|
4146
|
-
),
|
|
4189
|
+
), eo = (e = {}) => {
|
|
4147
4190
|
var t = e, {
|
|
4148
4191
|
locale: r = z()
|
|
4149
|
-
} = t, n =
|
|
4192
|
+
} = t, n = ae(t, [
|
|
4150
4193
|
"locale"
|
|
4151
4194
|
]);
|
|
4152
|
-
return
|
|
4153
|
-
},
|
|
4195
|
+
return qi(ht({ locale: r }, n));
|
|
4196
|
+
}, to = (e = {}) => {
|
|
4154
4197
|
var t = e, {
|
|
4155
4198
|
locale: r = z()
|
|
4156
|
-
} = t, n =
|
|
4199
|
+
} = t, n = ae(t, [
|
|
4157
4200
|
"locale"
|
|
4158
4201
|
]);
|
|
4159
|
-
return
|
|
4160
|
-
},
|
|
4202
|
+
return Ji(ht({ locale: r }, n));
|
|
4203
|
+
}, ro = (e = {}) => {
|
|
4161
4204
|
var t = e, {
|
|
4162
4205
|
locale: r = z()
|
|
4163
|
-
} = t, n =
|
|
4206
|
+
} = t, n = ae(t, [
|
|
4164
4207
|
"locale"
|
|
4165
4208
|
]);
|
|
4166
|
-
return
|
|
4167
|
-
},
|
|
4209
|
+
return Ki(ht({ locale: r }, n));
|
|
4210
|
+
}, no = Oe(
|
|
4168
4211
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4169
|
-
(e, t = z()) => new
|
|
4170
|
-
ignoreTag:
|
|
4212
|
+
(e, t = z()) => new Bi(e, t, ie().formats, {
|
|
4213
|
+
ignoreTag: ie().ignoreTag
|
|
4171
4214
|
})
|
|
4172
|
-
),
|
|
4215
|
+
), io = (e, t = {}) => {
|
|
4173
4216
|
var r, n, i, o;
|
|
4174
4217
|
let s = t;
|
|
4175
4218
|
typeof e == "object" && (s = e, e = s.id);
|
|
4176
4219
|
const {
|
|
4177
4220
|
values: a,
|
|
4178
|
-
locale:
|
|
4179
|
-
default:
|
|
4221
|
+
locale: u = z(),
|
|
4222
|
+
default: l
|
|
4180
4223
|
} = s;
|
|
4181
|
-
if (
|
|
4224
|
+
if (u == null)
|
|
4182
4225
|
throw new Error(
|
|
4183
4226
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4184
4227
|
);
|
|
4185
|
-
let h =
|
|
4228
|
+
let h = yr(e, u);
|
|
4186
4229
|
if (!h)
|
|
4187
|
-
h = (o = (i = (n = (r =
|
|
4230
|
+
h = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4188
4231
|
else if (typeof h != "string")
|
|
4189
4232
|
return console.warn(
|
|
4190
4233
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4193,7 +4236,7 @@ const de = (e, t) => {
|
|
|
4193
4236
|
return h;
|
|
4194
4237
|
let c = h;
|
|
4195
4238
|
try {
|
|
4196
|
-
c =
|
|
4239
|
+
c = no(h, u).format(a);
|
|
4197
4240
|
} catch (f) {
|
|
4198
4241
|
f instanceof Error && console.warn(
|
|
4199
4242
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4201,32 +4244,32 @@ const de = (e, t) => {
|
|
|
4201
4244
|
);
|
|
4202
4245
|
}
|
|
4203
4246
|
return c;
|
|
4204
|
-
},
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
window.emWidgets = { topic:
|
|
4211
|
-
const
|
|
4212
|
-
function
|
|
4247
|
+
}, oo = (e, t) => ro(t).format(e), so = (e, t) => to(t).format(e), ao = (e, t) => eo(t).format(e), uo = (e, t = z()) => yr(e, t);
|
|
4248
|
+
oe([W, se], () => io);
|
|
4249
|
+
oe([W], () => oo);
|
|
4250
|
+
oe([W], () => so);
|
|
4251
|
+
oe([W], () => ao);
|
|
4252
|
+
oe([W, se], () => uo);
|
|
4253
|
+
window.emWidgets = { topic: xn };
|
|
4254
|
+
const Rt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4255
|
+
function lo({ withLocale: e, translations: t }) {
|
|
4213
4256
|
W.subscribe((r) => {
|
|
4214
|
-
r == null && (
|
|
4257
|
+
r == null && (se.set(t), W.set(e));
|
|
4215
4258
|
});
|
|
4216
4259
|
}
|
|
4217
|
-
function
|
|
4218
|
-
|
|
4260
|
+
function ho(e, t) {
|
|
4261
|
+
xr(e, t);
|
|
4219
4262
|
}
|
|
4220
|
-
function
|
|
4263
|
+
function co(e) {
|
|
4221
4264
|
W.set(e);
|
|
4222
4265
|
}
|
|
4223
|
-
function
|
|
4266
|
+
function fo(e, t) {
|
|
4224
4267
|
if (e) {
|
|
4225
4268
|
const r = document.createElement("style");
|
|
4226
4269
|
r.innerHTML = t, e.appendChild(r);
|
|
4227
4270
|
}
|
|
4228
4271
|
}
|
|
4229
|
-
function
|
|
4272
|
+
function po(e, t) {
|
|
4230
4273
|
const r = new URL(t);
|
|
4231
4274
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4232
4275
|
const i = document.createElement("style");
|
|
@@ -4235,7 +4278,7 @@ function lo(e, t) {
|
|
|
4235
4278
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4236
4279
|
});
|
|
4237
4280
|
}
|
|
4238
|
-
function
|
|
4281
|
+
function mo(e, t, r) {
|
|
4239
4282
|
if (window.emMessageBus) {
|
|
4240
4283
|
const n = document.createElement("style");
|
|
4241
4284
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4243,25 +4286,25 @@ function uo(e, t, r) {
|
|
|
4243
4286
|
});
|
|
4244
4287
|
}
|
|
4245
4288
|
}
|
|
4246
|
-
function
|
|
4247
|
-
|
|
4289
|
+
function bo(e) {
|
|
4290
|
+
kr(e, "svelte-14514rm", '.CasinoVendorsLoading{height:52px}p{color:var(--emw--categories-typography, var(--emw--color-white) #ffffff);text-align:center}.CasinoVendorsContainer{background:transparent;border-radius:var(--emw--border-radius-medium, 10px)}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{min-height:72px;max-height:75px;background:var(--emw--color-primary, #194127);border-radius:var(--emw--border-radius-medium, 10px);max-width:1300px;margin:0 auto}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));margin:0 auto;max-width:1300px;min-height:72px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer .CarouselItems{overflow-x:auto;overflow-y:hidden;scroll-snap-align:center}.CarouselContainer ul{align-items:center;list-style:none;padding:0;margin:0}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{align-items:center;font-size:var(--emw--font-size-medium, 15px);font-weight:500;line-height:34px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal;position:relative}.CarouselContainer ul li>a{position:relative;border-bottom:2px solid transparent}.CarouselContainer ul li.SecondaryMenu button,.CarouselContainer ul li.SecondaryMenu .ActiveImg{border-bottom:2px solid transparent;position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{cursor:pointer}.CarouselContainer ul li.SecondaryMenu:hover button,.CarouselContainer ul li.SecondaryMenu:hover .ActiveImg,.CarouselContainer ul li.SecondaryMenu.active button,.CarouselContainer ul li.SecondaryMenu.active .ActiveImg,.CarouselContainer ul li.SecondaryMenu:focus button,.CarouselContainer ul li.SecondaryMenu:focus .ActiveImg,.CarouselContainer ul li.SecondaryMenu:focus-within button,.CarouselContainer ul li.SecondaryMenu:focus-within .ActiveImg{border-bottom:2px solid var(--emw--color-green, #23b04e);position:relative}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:22px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #ffffff))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center;height:100%}.CarouselContainer .CarouselItems li{text-align:left;padding:18px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems li svg,.CarouselContainer .CarouselItems li img{height:100%;margin-right:5px;position:relative;top:5px;max-height:25px;line-height:25px;font-size:var(--emw--font-size-2x-small, 11px);overflow:auto}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));text-decoration:none;white-space:nowrap;position:relative;padding-bottom:5px}.CarouselContainer .CarouselItems span{position:absolute;bottom:15px;right:-15px;background:var(--emw--pam-color-primary, var(--emw--color-primary, #23b04e));border-radius:50%;padding:3px;min-width:20px;max-width:30px;height:20px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-2x-small, 11px)}.CarouselContainer .CarouselItems .categoryImgButtonCount{top:15px;right:8px}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072a))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d));background:linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d))}.CarouselContainer .CarouselItems .TouchOnly{display:none}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072a));color:var(--emw--categories-typography, var(--emw--color-white, #ffffff))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #ffffff)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #ffffff);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #ffffff)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #ffffff)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #ffffff)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #ffffff)}.CategoryIconImg{height:20px;margin:0 auto;display:block}.CarouselWrapperMobile{margin:0 10px;border-radius:10px;max-height:75px}.CarouselWrapperMobile .MobileCategoryButton{margin-top:5px}.CarouselWrapperMobile .CarouselLeftArrow,.CarouselWrapperMobile .CarouselRightArrow{display:flex;max-height:75px}.CarouselWrapperMobile .CarouselLeftArrow svg,.CarouselWrapperMobile .CarouselRightArrow svg{max-width:15px}.CarouselWrapperMobile .CarouselItems li{display:inline-flex;flex-direction:column;justify-content:center;height:inherit;gap:5px;padding:15px 25px}.CarouselWrapperMobile .CarouselItems li svg{position:unset;top:unset}.CarouselWrapperMobile .CategoryIconContainer{position:relative;height:25px}.CarouselWrapperMobile .CategoryIconContainer span{top:-5px;right:-10px}.CarouselWrapperMobile .ImageContainer{display:block;height:25px}.CarouselWrapperMobile .CarouselContainer .CarouselItems li svg,.CarouselWrapperMobile .CarouselContainer .CarouselItems li img{margin:0;top:unset;position:static;overflow:auto}');
|
|
4248
4291
|
}
|
|
4249
|
-
function
|
|
4292
|
+
function Ut(e, t, r) {
|
|
4250
4293
|
const n = e.slice();
|
|
4251
4294
|
return n[43] = t[r], n[45] = r, n;
|
|
4252
4295
|
}
|
|
4253
|
-
function
|
|
4254
|
-
let t, r, n, i, o, s, a,
|
|
4296
|
+
function go(e) {
|
|
4297
|
+
let t, r, n, i, o, s, a, u, l, h, c, f, m, d = (
|
|
4255
4298
|
/*vendors*/
|
|
4256
|
-
e[6].length > 0 &&
|
|
4299
|
+
e[6].length > 0 && Dt(e)
|
|
4257
4300
|
);
|
|
4258
4301
|
return {
|
|
4259
4302
|
c() {
|
|
4260
|
-
t = S("div"), r = S("div"), n = S("div"), i = S("div"), i.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M15 19l-7-7 7-7"></path></svg>', o =
|
|
4261
|
-
(e[10] ? "CarouselWrapperMobile" : "")),
|
|
4303
|
+
t = S("div"), r = S("div"), n = S("div"), i = S("div"), i.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M15 19l-7-7 7-7"></path></svg>', o = F(), s = S("div"), a = S("ul"), u = S("li"), u.innerHTML = '<a href="#CarouselNav">Close Subs</a>', l = F(), d && d.c(), h = F(), c = S("div"), c.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M9 5l7 7-7 7"></path></svg>', x(i, "class", "CarouselLeftArrow"), x(u, "class", "TouchOnly"), x(a, "id", "CarouselNav"), x(a, "class", "CarouselItems"), x(s, "class", "CarouselNavWrap"), x(c, "class", "CarouselRightArrow"), x(n, "class", "CarouselContainer CarouselContainerMobile"), x(r, "class", "CarouselWrapper " + /*isMobile*/
|
|
4304
|
+
(e[10] ? "CarouselWrapperMobile" : "")), x(t, "class", "CasinoVendorsContainer"), x(t, "part", "CasinoVendorsContainer");
|
|
4262
4305
|
},
|
|
4263
4306
|
m(b, T) {
|
|
4264
|
-
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a,
|
|
4307
|
+
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a, u), H(a, l), d && d.m(a, null), e[28](a), e[29](s), H(n, h), H(n, c), e[30](r), f || (m = [
|
|
4265
4308
|
J(
|
|
4266
4309
|
i,
|
|
4267
4310
|
"click",
|
|
@@ -4290,18 +4333,18 @@ function co(e) {
|
|
|
4290
4333
|
},
|
|
4291
4334
|
p(b, T) {
|
|
4292
4335
|
/*vendors*/
|
|
4293
|
-
b[6].length > 0 ?
|
|
4336
|
+
b[6].length > 0 ? d ? d.p(b, T) : (d = Dt(b), d.c(), d.m(a, null)) : d && (d.d(1), d = null);
|
|
4294
4337
|
},
|
|
4295
4338
|
d(b) {
|
|
4296
|
-
b && I(t),
|
|
4339
|
+
b && I(t), d && d.d(), e[28](null), e[29](null), e[30](null), f = !1, X(m);
|
|
4297
4340
|
}
|
|
4298
4341
|
};
|
|
4299
4342
|
}
|
|
4300
|
-
function
|
|
4343
|
+
function vo(e) {
|
|
4301
4344
|
let t;
|
|
4302
4345
|
return {
|
|
4303
4346
|
c() {
|
|
4304
|
-
t = S("p"), t.textContent = "500 Error - Internal Server Error.",
|
|
4347
|
+
t = S("p"), t.textContent = "500 Error - Internal Server Error.", x(t, "class", "SearchLoading");
|
|
4305
4348
|
},
|
|
4306
4349
|
m(r, n) {
|
|
4307
4350
|
B(r, t, n);
|
|
@@ -4312,11 +4355,11 @@ function fo(e) {
|
|
|
4312
4355
|
}
|
|
4313
4356
|
};
|
|
4314
4357
|
}
|
|
4315
|
-
function
|
|
4358
|
+
function yo(e) {
|
|
4316
4359
|
let t;
|
|
4317
4360
|
return {
|
|
4318
4361
|
c() {
|
|
4319
|
-
t = S("div"),
|
|
4362
|
+
t = S("div"), x(t, "class", "CasinoVendorsLoading");
|
|
4320
4363
|
},
|
|
4321
4364
|
m(r, n) {
|
|
4322
4365
|
B(r, t, n);
|
|
@@ -4327,8 +4370,8 @@ function po(e) {
|
|
|
4327
4370
|
}
|
|
4328
4371
|
};
|
|
4329
4372
|
}
|
|
4330
|
-
function
|
|
4331
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
4373
|
+
function Dt(e) {
|
|
4374
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = mt(
|
|
4332
4375
|
/*vendors*/
|
|
4333
4376
|
e[6]
|
|
4334
4377
|
);
|
|
@@ -4337,26 +4380,26 @@ function Mt(e) {
|
|
|
4337
4380
|
s[43].id
|
|
4338
4381
|
);
|
|
4339
4382
|
for (let s = 0; s < i.length; s += 1) {
|
|
4340
|
-
let a =
|
|
4341
|
-
r.set(
|
|
4383
|
+
let a = Ut(e, i, s), u = o(a);
|
|
4384
|
+
r.set(u, t[s] = Wt(u, a));
|
|
4342
4385
|
}
|
|
4343
4386
|
return {
|
|
4344
4387
|
c() {
|
|
4345
4388
|
for (let s = 0; s < t.length; s += 1)
|
|
4346
4389
|
t[s].c();
|
|
4347
|
-
n =
|
|
4390
|
+
n = at();
|
|
4348
4391
|
},
|
|
4349
4392
|
m(s, a) {
|
|
4350
|
-
for (let
|
|
4351
|
-
t[
|
|
4393
|
+
for (let u = 0; u < t.length; u += 1)
|
|
4394
|
+
t[u] && t[u].m(s, a);
|
|
4352
4395
|
B(s, n, a);
|
|
4353
4396
|
},
|
|
4354
4397
|
p(s, a) {
|
|
4355
4398
|
a[0] & /*activevendor, vendors, handleClick, onCarouselItemKeydown, getButtonClasses, getGamesTotal, showvendorgames, showvendorname, showvendoricon, isMobile*/
|
|
4356
|
-
461903 && (i =
|
|
4399
|
+
461903 && (i = mt(
|
|
4357
4400
|
/*vendors*/
|
|
4358
4401
|
s[6]
|
|
4359
|
-
), t =
|
|
4402
|
+
), t = Kr(t, a, o, 1, s, i, r, n.parentNode, Jr, Wt, n, Ut));
|
|
4360
4403
|
},
|
|
4361
4404
|
d(s) {
|
|
4362
4405
|
s && I(n);
|
|
@@ -4365,18 +4408,18 @@ function Mt(e) {
|
|
|
4365
4408
|
}
|
|
4366
4409
|
};
|
|
4367
4410
|
}
|
|
4368
|
-
function
|
|
4411
|
+
function $t(e) {
|
|
4369
4412
|
let t;
|
|
4370
4413
|
function r(o, s) {
|
|
4371
4414
|
return (
|
|
4372
4415
|
/*isMobile*/
|
|
4373
|
-
o[10] ?
|
|
4416
|
+
o[10] ? xo : _o
|
|
4374
4417
|
);
|
|
4375
4418
|
}
|
|
4376
4419
|
let i = r(e)(e);
|
|
4377
4420
|
return {
|
|
4378
4421
|
c() {
|
|
4379
|
-
i.c(), t =
|
|
4422
|
+
i.c(), t = at();
|
|
4380
4423
|
},
|
|
4381
4424
|
m(o, s) {
|
|
4382
4425
|
i.m(o, s), B(o, t, s);
|
|
@@ -4389,65 +4432,65 @@ function Lt(e) {
|
|
|
4389
4432
|
}
|
|
4390
4433
|
};
|
|
4391
4434
|
}
|
|
4392
|
-
function
|
|
4435
|
+
function _o(e) {
|
|
4393
4436
|
let t, r, n, i, o, s = (
|
|
4394
4437
|
/*showvendorname*/
|
|
4395
|
-
e[2] === "false" &&
|
|
4438
|
+
e[2] === "false" && kt()
|
|
4396
4439
|
);
|
|
4397
4440
|
return {
|
|
4398
4441
|
c() {
|
|
4399
|
-
t = S("img"), i =
|
|
4400
|
-
e[43].logo) ||
|
|
4442
|
+
t = S("img"), i = F(), s && s.c(), o = at(), Ee(t.src, r = /*vendor*/
|
|
4443
|
+
e[43].logo) || x(t, "src", r), x(t, "alt", n = /*vendor*/
|
|
4401
4444
|
e[43].displayName);
|
|
4402
4445
|
},
|
|
4403
|
-
m(a,
|
|
4404
|
-
B(a, t,
|
|
4446
|
+
m(a, u) {
|
|
4447
|
+
B(a, t, u), B(a, i, u), s && s.m(a, u), B(a, o, u);
|
|
4405
4448
|
},
|
|
4406
|
-
p(a,
|
|
4407
|
-
|
|
4449
|
+
p(a, u) {
|
|
4450
|
+
u[0] & /*vendors*/
|
|
4408
4451
|
64 && !Ee(t.src, r = /*vendor*/
|
|
4409
|
-
a[43].logo) &&
|
|
4452
|
+
a[43].logo) && x(t, "src", r), u[0] & /*vendors*/
|
|
4410
4453
|
64 && n !== (n = /*vendor*/
|
|
4411
|
-
a[43].displayName) &&
|
|
4412
|
-
a[2] === "false" ? s || (s =
|
|
4454
|
+
a[43].displayName) && x(t, "alt", n), /*showvendorname*/
|
|
4455
|
+
a[2] === "false" ? s || (s = kt(), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
|
|
4413
4456
|
},
|
|
4414
4457
|
d(a) {
|
|
4415
4458
|
a && (I(t), I(i), I(o)), s && s.d(a);
|
|
4416
4459
|
}
|
|
4417
4460
|
};
|
|
4418
4461
|
}
|
|
4419
|
-
function
|
|
4462
|
+
function xo(e) {
|
|
4420
4463
|
let t, r, n, i, o, s = (
|
|
4421
4464
|
/*showvendorname*/
|
|
4422
|
-
e[2] === "false" &&
|
|
4465
|
+
e[2] === "false" && Gt()
|
|
4423
4466
|
);
|
|
4424
4467
|
return {
|
|
4425
4468
|
c() {
|
|
4426
|
-
t = S("div"), r = S("img"), o =
|
|
4427
|
-
e[43].logo) ||
|
|
4428
|
-
e[43].displayName),
|
|
4469
|
+
t = S("div"), r = S("img"), o = F(), s && s.c(), Ee(r.src, n = /*vendor*/
|
|
4470
|
+
e[43].logo) || x(r, "src", n), x(r, "alt", i = /*vendor*/
|
|
4471
|
+
e[43].displayName), x(t, "class", "ImageContainer");
|
|
4429
4472
|
},
|
|
4430
|
-
m(a,
|
|
4431
|
-
B(a, t,
|
|
4473
|
+
m(a, u) {
|
|
4474
|
+
B(a, t, u), H(t, r), H(t, o), s && s.m(t, null);
|
|
4432
4475
|
},
|
|
4433
|
-
p(a,
|
|
4434
|
-
|
|
4476
|
+
p(a, u) {
|
|
4477
|
+
u[0] & /*vendors*/
|
|
4435
4478
|
64 && !Ee(r.src, n = /*vendor*/
|
|
4436
|
-
a[43].logo) &&
|
|
4479
|
+
a[43].logo) && x(r, "src", n), u[0] & /*vendors*/
|
|
4437
4480
|
64 && i !== (i = /*vendor*/
|
|
4438
|
-
a[43].displayName) &&
|
|
4439
|
-
a[2] === "false" ? s || (s =
|
|
4481
|
+
a[43].displayName) && x(r, "alt", i), /*showvendorname*/
|
|
4482
|
+
a[2] === "false" ? s || (s = Gt(), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4440
4483
|
},
|
|
4441
4484
|
d(a) {
|
|
4442
4485
|
a && I(t), s && s.d();
|
|
4443
4486
|
}
|
|
4444
4487
|
};
|
|
4445
4488
|
}
|
|
4446
|
-
function
|
|
4489
|
+
function kt(e) {
|
|
4447
4490
|
let t;
|
|
4448
4491
|
return {
|
|
4449
4492
|
c() {
|
|
4450
|
-
t = S("div"),
|
|
4493
|
+
t = S("div"), x(t, "class", "ActiveImg");
|
|
4451
4494
|
},
|
|
4452
4495
|
m(r, n) {
|
|
4453
4496
|
B(r, t, n);
|
|
@@ -4457,11 +4500,11 @@ function Nt(e) {
|
|
|
4457
4500
|
}
|
|
4458
4501
|
};
|
|
4459
4502
|
}
|
|
4460
|
-
function
|
|
4503
|
+
function Gt(e) {
|
|
4461
4504
|
let t;
|
|
4462
4505
|
return {
|
|
4463
4506
|
c() {
|
|
4464
|
-
t = S("div"),
|
|
4507
|
+
t = S("div"), x(t, "class", "ActiveImg");
|
|
4465
4508
|
},
|
|
4466
4509
|
m(r, n) {
|
|
4467
4510
|
B(r, t, n);
|
|
@@ -4471,7 +4514,7 @@ function Rt(e) {
|
|
|
4471
4514
|
}
|
|
4472
4515
|
};
|
|
4473
4516
|
}
|
|
4474
|
-
function
|
|
4517
|
+
function Ft(e) {
|
|
4475
4518
|
let t, r = (
|
|
4476
4519
|
/*getGamesTotal*/
|
|
4477
4520
|
e[18](
|
|
@@ -4481,7 +4524,7 @@ function Ut(e) {
|
|
|
4481
4524
|
), n;
|
|
4482
4525
|
return {
|
|
4483
4526
|
c() {
|
|
4484
|
-
t = S("span"), n = pe(r),
|
|
4527
|
+
t = S("span"), n = pe(r), x(t, "class", "categoryImgButtonCount");
|
|
4485
4528
|
},
|
|
4486
4529
|
m(i, o) {
|
|
4487
4530
|
B(i, t, o), H(t, n);
|
|
@@ -4492,25 +4535,25 @@ function Ut(e) {
|
|
|
4492
4535
|
i[18](
|
|
4493
4536
|
/*vendor*/
|
|
4494
4537
|
i[43]?.games.total
|
|
4495
|
-
) + "") &&
|
|
4538
|
+
) + "") && ut(n, r);
|
|
4496
4539
|
},
|
|
4497
4540
|
d(i) {
|
|
4498
4541
|
i && I(t);
|
|
4499
4542
|
}
|
|
4500
4543
|
};
|
|
4501
4544
|
}
|
|
4502
|
-
function
|
|
4545
|
+
function jt(e) {
|
|
4503
4546
|
let t, r = (
|
|
4504
4547
|
/*vendor*/
|
|
4505
4548
|
e[43].displayName + ""
|
|
4506
4549
|
), n, i, o = (
|
|
4507
4550
|
/*showvendorgames*/
|
|
4508
4551
|
e[3] !== "false" && /*vendor*/
|
|
4509
|
-
e[43]?.games.total &&
|
|
4552
|
+
e[43]?.games.total && Vt(e)
|
|
4510
4553
|
);
|
|
4511
4554
|
return {
|
|
4512
4555
|
c() {
|
|
4513
|
-
t = S("button"), n = pe(r), i =
|
|
4556
|
+
t = S("button"), n = pe(r), i = F(), o && o.c(), x(
|
|
4514
4557
|
t,
|
|
4515
4558
|
"class",
|
|
4516
4559
|
/*getButtonClasses*/
|
|
@@ -4523,16 +4566,16 @@ function Dt(e) {
|
|
|
4523
4566
|
p(s, a) {
|
|
4524
4567
|
a[0] & /*vendors*/
|
|
4525
4568
|
64 && r !== (r = /*vendor*/
|
|
4526
|
-
s[43].displayName + "") &&
|
|
4569
|
+
s[43].displayName + "") && ut(n, r), /*showvendorgames*/
|
|
4527
4570
|
s[3] !== "false" && /*vendor*/
|
|
4528
|
-
s[43]?.games.total ? o ? o.p(s, a) : (o =
|
|
4571
|
+
s[43]?.games.total ? o ? o.p(s, a) : (o = Vt(s), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
4529
4572
|
},
|
|
4530
4573
|
d(s) {
|
|
4531
4574
|
s && I(t), o && o.d();
|
|
4532
4575
|
}
|
|
4533
4576
|
};
|
|
4534
4577
|
}
|
|
4535
|
-
function
|
|
4578
|
+
function Vt(e) {
|
|
4536
4579
|
let t, r = (
|
|
4537
4580
|
/*getGamesTotal*/
|
|
4538
4581
|
e[18](
|
|
@@ -4542,7 +4585,7 @@ function $t(e) {
|
|
|
4542
4585
|
), n;
|
|
4543
4586
|
return {
|
|
4544
4587
|
c() {
|
|
4545
|
-
t = S("span"), n = pe(r),
|
|
4588
|
+
t = S("span"), n = pe(r), x(t, "class", "CategoryButtonCount");
|
|
4546
4589
|
},
|
|
4547
4590
|
m(i, o) {
|
|
4548
4591
|
B(i, t, o), H(t, n);
|
|
@@ -4553,26 +4596,26 @@ function $t(e) {
|
|
|
4553
4596
|
i[18](
|
|
4554
4597
|
/*vendor*/
|
|
4555
4598
|
i[43]?.games.total
|
|
4556
|
-
) + "") &&
|
|
4599
|
+
) + "") && ut(n, r);
|
|
4557
4600
|
},
|
|
4558
4601
|
d(i) {
|
|
4559
4602
|
i && I(t);
|
|
4560
4603
|
}
|
|
4561
4604
|
};
|
|
4562
4605
|
}
|
|
4563
|
-
function
|
|
4564
|
-
let r, n, i, o, s, a,
|
|
4606
|
+
function Wt(e, t) {
|
|
4607
|
+
let r, n, i, o, s, a, u, l = (
|
|
4565
4608
|
/*showvendoricon*/
|
|
4566
|
-
t[1] !== "false" &&
|
|
4609
|
+
t[1] !== "false" && $t(t)
|
|
4567
4610
|
), h = (
|
|
4568
4611
|
/*showvendoricon*/
|
|
4569
4612
|
t[1] == "true" && /*showvendorgames*/
|
|
4570
4613
|
t[3] !== "false" && /*showvendorname*/
|
|
4571
4614
|
t[2] == "false" && /*vendor*/
|
|
4572
|
-
t[43]?.games?.total &&
|
|
4615
|
+
t[43]?.games?.total && Ft(t)
|
|
4573
4616
|
), c = (
|
|
4574
4617
|
/*showvendorname*/
|
|
4575
|
-
t[2] !== "false" &&
|
|
4618
|
+
t[2] !== "false" && jt(t)
|
|
4576
4619
|
);
|
|
4577
4620
|
function f(...m) {
|
|
4578
4621
|
return (
|
|
@@ -4590,7 +4633,7 @@ function kt(e, t) {
|
|
|
4590
4633
|
key: e,
|
|
4591
4634
|
first: null,
|
|
4592
4635
|
c() {
|
|
4593
|
-
r = S("li"),
|
|
4636
|
+
r = S("li"), l && l.c(), n = F(), h && h.c(), i = F(), c && c.c(), o = F(), x(r, "class", s = "CarouselItem " + (String(
|
|
4594
4637
|
/*activevendor*/
|
|
4595
4638
|
t[0]
|
|
4596
4639
|
) == String(
|
|
@@ -4598,11 +4641,11 @@ function kt(e, t) {
|
|
|
4598
4641
|
t[43].id
|
|
4599
4642
|
) ? "active" : "") + " SecondaryMenu"), this.first = r;
|
|
4600
4643
|
},
|
|
4601
|
-
m(m,
|
|
4602
|
-
B(m, r,
|
|
4644
|
+
m(m, d) {
|
|
4645
|
+
B(m, r, d), l && l.m(r, null), H(r, n), h && h.m(r, null), H(r, i), c && c.m(r, null), H(r, o), a || (u = [
|
|
4603
4646
|
J(r, "click", f),
|
|
4604
4647
|
J(r, "keydown", function() {
|
|
4605
|
-
|
|
4648
|
+
Te(
|
|
4606
4649
|
/*onCarouselItemKeydown*/
|
|
4607
4650
|
t[16](
|
|
4608
4651
|
/*vendor*/
|
|
@@ -4619,35 +4662,35 @@ function kt(e, t) {
|
|
|
4619
4662
|
})
|
|
4620
4663
|
], a = !0);
|
|
4621
4664
|
},
|
|
4622
|
-
p(m,
|
|
4665
|
+
p(m, d) {
|
|
4623
4666
|
t = m, /*showvendoricon*/
|
|
4624
|
-
t[1] !== "false" ?
|
|
4667
|
+
t[1] !== "false" ? l ? l.p(t, d) : (l = $t(t), l.c(), l.m(r, n)) : l && (l.d(1), l = null), /*showvendoricon*/
|
|
4625
4668
|
t[1] == "true" && /*showvendorgames*/
|
|
4626
4669
|
t[3] !== "false" && /*showvendorname*/
|
|
4627
4670
|
t[2] == "false" && /*vendor*/
|
|
4628
|
-
t[43]?.games?.total ? h ? h.p(t,
|
|
4629
|
-
t[2] !== "false" ? c ? c.p(t,
|
|
4671
|
+
t[43]?.games?.total ? h ? h.p(t, d) : (h = Ft(t), h.c(), h.m(r, i)) : h && (h.d(1), h = null), /*showvendorname*/
|
|
4672
|
+
t[2] !== "false" ? c ? c.p(t, d) : (c = jt(t), c.c(), c.m(r, o)) : c && (c.d(1), c = null), d[0] & /*activevendor, vendors*/
|
|
4630
4673
|
65 && s !== (s = "CarouselItem " + (String(
|
|
4631
4674
|
/*activevendor*/
|
|
4632
4675
|
t[0]
|
|
4633
4676
|
) == String(
|
|
4634
4677
|
/*vendor*/
|
|
4635
4678
|
t[43].id
|
|
4636
|
-
) ? "active" : "") + " SecondaryMenu") &&
|
|
4679
|
+
) ? "active" : "") + " SecondaryMenu") && x(r, "class", s);
|
|
4637
4680
|
},
|
|
4638
4681
|
d(m) {
|
|
4639
|
-
m && I(r),
|
|
4682
|
+
m && I(r), l && l.d(), h && h.d(), c && c.d(), a = !1, X(u);
|
|
4640
4683
|
}
|
|
4641
4684
|
};
|
|
4642
4685
|
}
|
|
4643
|
-
function
|
|
4686
|
+
function Eo(e) {
|
|
4644
4687
|
let t;
|
|
4645
4688
|
function r(o, s) {
|
|
4646
4689
|
return (
|
|
4647
4690
|
/*isLoading*/
|
|
4648
|
-
o[5] ?
|
|
4691
|
+
o[5] ? yo : (
|
|
4649
4692
|
/*hasErrors*/
|
|
4650
|
-
o[7] ?
|
|
4693
|
+
o[7] ? vo : go
|
|
4651
4694
|
)
|
|
4652
4695
|
);
|
|
4653
4696
|
}
|
|
@@ -4669,121 +4712,121 @@ function go(e) {
|
|
|
4669
4712
|
}
|
|
4670
4713
|
};
|
|
4671
4714
|
}
|
|
4672
|
-
function
|
|
4673
|
-
|
|
4674
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent:
|
|
4715
|
+
function wo(e, t, r) {
|
|
4716
|
+
lo({ withLocale: "en", translations: {} });
|
|
4717
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent: u = "defaultevent" } = t, { translationurl: l = "" } = t, { showvendoricon: h = "true" } = t, { showvendorname: c = "false" } = t, { showvendorgames: f = "false" } = t, { activevendor: m = "0" } = t, { mbsource: d } = t, b = window.navigator.userAgent, T = Rt(b) !== "PC", L = !0, P, A = [], O = !1, w, N, g;
|
|
4675
4718
|
const $ = () => {
|
|
4676
|
-
fetch(
|
|
4677
|
-
Object.keys(
|
|
4678
|
-
|
|
4719
|
+
fetch(l).then((_) => _.json()).then((_) => {
|
|
4720
|
+
Object.keys(_).forEach((U) => {
|
|
4721
|
+
ho(U, _[U]);
|
|
4679
4722
|
});
|
|
4680
|
-
}).catch((
|
|
4681
|
-
console.log(
|
|
4723
|
+
}).catch((_) => {
|
|
4724
|
+
console.log(_);
|
|
4682
4725
|
});
|
|
4683
4726
|
}, k = () => {
|
|
4684
|
-
|
|
4685
|
-
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7, O = !0), r(5, L = !1), console.error(P)), (!o || o.length < 2) && (P = "Language is missing! Please provide a valid language (alpha2code)", r(7, O = !0), r(5, L = !1), console.error(P)), O),
|
|
4727
|
+
co(o);
|
|
4728
|
+
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7, O = !0), r(5, L = !1), console.error(P)), (!o || o.length < 2) && (P = "Language is missing! Please provide a valid language (alpha2code)", r(7, O = !0), r(5, L = !1), console.error(P)), O), Tr = () => {
|
|
4686
4729
|
if (!Z()) {
|
|
4687
|
-
let
|
|
4688
|
-
|
|
4689
|
-
(
|
|
4690
|
-
let U =
|
|
4730
|
+
let p = new URL(`${n}/v1/casino/vendors`);
|
|
4731
|
+
p.searchParams.append("datasource", i), p.searchParams.append("language", o), p.searchParams.append("platform", Rt(b)), fetch(p).then((_) => _.json()).then(
|
|
4732
|
+
(_) => {
|
|
4733
|
+
let U = _.items.filter((Ne) => Ne.games.total > 0);
|
|
4691
4734
|
r(6, A = []), r(6, A = A.concat(U)), r(5, L = !1);
|
|
4692
4735
|
},
|
|
4693
|
-
(
|
|
4694
|
-
r(7, O = !0), console.error("There was an error while fetching the vendors",
|
|
4736
|
+
(_) => {
|
|
4737
|
+
r(7, O = !0), console.error("There was an error while fetching the vendors", _);
|
|
4695
4738
|
}
|
|
4696
|
-
).catch((
|
|
4697
|
-
r(7, O = !0), console.error("There was an error while fetching the vendors",
|
|
4739
|
+
).catch((_) => {
|
|
4740
|
+
r(7, O = !0), console.error("There was an error while fetching the vendors", _);
|
|
4698
4741
|
});
|
|
4699
4742
|
}
|
|
4700
4743
|
};
|
|
4701
|
-
|
|
4744
|
+
Xr(() => ("ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
|
4702
4745
|
() => {
|
|
4703
|
-
g && g.addEventListener("scroll",
|
|
4746
|
+
g && g.addEventListener("scroll", Le);
|
|
4704
4747
|
},
|
|
4705
4748
|
500
|
|
4706
4749
|
), () => {
|
|
4707
|
-
N.removeEventListener("scroll",
|
|
4750
|
+
N.removeEventListener("scroll", Le);
|
|
4708
4751
|
}));
|
|
4709
|
-
let
|
|
4710
|
-
|
|
4752
|
+
let Me = (p, _) => {
|
|
4753
|
+
Le(), r(0, m = p.id), window.postMessage(
|
|
4711
4754
|
{
|
|
4712
|
-
type:
|
|
4713
|
-
itemId:
|
|
4714
|
-
index:
|
|
4715
|
-
item:
|
|
4716
|
-
path:
|
|
4717
|
-
externalLink:
|
|
4718
|
-
target:
|
|
4755
|
+
type: u,
|
|
4756
|
+
itemId: p.id,
|
|
4757
|
+
index: _,
|
|
4758
|
+
item: p,
|
|
4759
|
+
path: p.path,
|
|
4760
|
+
externalLink: p.externalLink || !1,
|
|
4761
|
+
target: p.attrs?.target || null
|
|
4719
4762
|
},
|
|
4720
4763
|
window.location.href
|
|
4721
4764
|
);
|
|
4722
|
-
},
|
|
4723
|
-
const
|
|
4724
|
-
if (
|
|
4725
|
-
const
|
|
4765
|
+
}, ct = () => {
|
|
4766
|
+
const p = g.scrollLeft;
|
|
4767
|
+
if (p > 0) {
|
|
4768
|
+
const _ = Math.min(250, p);
|
|
4726
4769
|
g.scrollBy({
|
|
4727
|
-
left: -
|
|
4770
|
+
left: -_,
|
|
4728
4771
|
behavior: "smooth"
|
|
4729
4772
|
});
|
|
4730
4773
|
}
|
|
4731
|
-
},
|
|
4732
|
-
const
|
|
4733
|
-
if (
|
|
4734
|
-
const
|
|
4735
|
-
g.scrollBy({ left:
|
|
4774
|
+
}, ft = () => {
|
|
4775
|
+
const p = g.scrollLeft, _ = g.scrollWidth, U = g.clientWidth;
|
|
4776
|
+
if (p + U < _) {
|
|
4777
|
+
const Ne = _ - (p + U), Ur = Math.min(250, Ne);
|
|
4778
|
+
g.scrollBy({ left: Ur, behavior: "smooth" });
|
|
4736
4779
|
}
|
|
4737
4780
|
};
|
|
4738
|
-
const
|
|
4739
|
-
const
|
|
4781
|
+
const Le = () => {
|
|
4782
|
+
const p = N.querySelectorAll(".DropDown");
|
|
4740
4783
|
document.activeElement.blur(), g.classList.add("isScrolling");
|
|
4741
|
-
for (let
|
|
4742
|
-
|
|
4784
|
+
for (let _ = 0; _ < p.length; _++)
|
|
4785
|
+
p[_].style.transform = "translateX(-" + g.scrollLeft + "px)";
|
|
4743
4786
|
g.classList.remove("isScrolling");
|
|
4744
|
-
},
|
|
4745
|
-
(
|
|
4746
|
-
},
|
|
4747
|
-
(
|
|
4748
|
-
},
|
|
4749
|
-
(U.key === "Enter" || U.key === " ") && (
|
|
4750
|
-
},
|
|
4787
|
+
}, Hr = (p) => {
|
|
4788
|
+
(p.key === "Enter" || p.key === " ") && (ft(), p.preventDefault());
|
|
4789
|
+
}, Ar = (p) => {
|
|
4790
|
+
(p.key === "Enter" || p.key === " ") && (ct(), p.preventDefault());
|
|
4791
|
+
}, Ir = (p, _) => (U) => {
|
|
4792
|
+
(U.key === "Enter" || U.key === " ") && (Me(p, _), U.preventDefault());
|
|
4793
|
+
}, Br = () => {
|
|
4751
4794
|
if (T && c === "true" && h === "false")
|
|
4752
4795
|
return "MobileCategoryButton";
|
|
4753
|
-
},
|
|
4754
|
-
|
|
4796
|
+
}, Pr = (p) => p > 1e3 ? "999+" : p, Or = (p, _, U) => {
|
|
4797
|
+
Me(p, _), U.preventDefault();
|
|
4755
4798
|
};
|
|
4756
|
-
function
|
|
4757
|
-
K[
|
|
4758
|
-
N =
|
|
4799
|
+
function Mr(p) {
|
|
4800
|
+
K[p ? "unshift" : "push"](() => {
|
|
4801
|
+
N = p, r(8, N);
|
|
4759
4802
|
});
|
|
4760
4803
|
}
|
|
4761
|
-
function
|
|
4762
|
-
K[
|
|
4763
|
-
g =
|
|
4804
|
+
function Lr(p) {
|
|
4805
|
+
K[p ? "unshift" : "push"](() => {
|
|
4806
|
+
g = p, r(9, g);
|
|
4764
4807
|
});
|
|
4765
4808
|
}
|
|
4766
|
-
function
|
|
4767
|
-
K[
|
|
4768
|
-
w =
|
|
4809
|
+
function Nr(p) {
|
|
4810
|
+
K[p ? "unshift" : "push"](() => {
|
|
4811
|
+
w = p, r(4, w);
|
|
4769
4812
|
});
|
|
4770
4813
|
}
|
|
4771
|
-
function
|
|
4772
|
-
K[
|
|
4773
|
-
w =
|
|
4814
|
+
function Rr(p) {
|
|
4815
|
+
K[p ? "unshift" : "push"](() => {
|
|
4816
|
+
w = p, r(4, w);
|
|
4774
4817
|
});
|
|
4775
4818
|
}
|
|
4776
|
-
return e.$$set = (
|
|
4777
|
-
"endpoint" in
|
|
4819
|
+
return e.$$set = (p) => {
|
|
4820
|
+
"endpoint" in p && r(19, n = p.endpoint), "datasource" in p && r(20, i = p.datasource), "lang" in p && r(21, o = p.lang), "clientstyling" in p && r(22, s = p.clientstyling), "clientstylingurl" in p && r(23, a = p.clientstylingurl), "actionevent" in p && r(24, u = p.actionevent), "translationurl" in p && r(25, l = p.translationurl), "showvendoricon" in p && r(1, h = p.showvendoricon), "showvendorname" in p && r(2, c = p.showvendorname), "showvendorgames" in p && r(3, f = p.showvendorgames), "activevendor" in p && r(0, m = p.activevendor), "mbsource" in p && r(26, d = p.mbsource);
|
|
4778
4821
|
}, e.$$.update = () => {
|
|
4779
4822
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
4780
|
-
2621440 && n && o &&
|
|
4781
|
-
33554432 &&
|
|
4823
|
+
2621440 && n && o && Tr(), e.$$.dirty[0] & /*translationurl*/
|
|
4824
|
+
33554432 && l && $(), e.$$.dirty[0] & /*activevendor*/
|
|
4782
4825
|
1, e.$$.dirty[0] & /*lang*/
|
|
4783
4826
|
2097152 && o && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4784
|
-
4194320 && s && w &&
|
|
4785
|
-
8388624 && a && w &&
|
|
4786
|
-
67108880 &&
|
|
4827
|
+
4194320 && s && w && fo(w, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4828
|
+
8388624 && a && w && po(w, a), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4829
|
+
67108880 && d && w && mo(w, `${d}.Style`);
|
|
4787
4830
|
}, [
|
|
4788
4831
|
m,
|
|
4789
4832
|
h,
|
|
@@ -4796,37 +4839,37 @@ function vo(e, t, r) {
|
|
|
4796
4839
|
N,
|
|
4797
4840
|
g,
|
|
4798
4841
|
T,
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4842
|
+
Me,
|
|
4843
|
+
ct,
|
|
4844
|
+
ft,
|
|
4845
|
+
Hr,
|
|
4846
|
+
Ar,
|
|
4847
|
+
Ir,
|
|
4848
|
+
Br,
|
|
4849
|
+
Pr,
|
|
4807
4850
|
n,
|
|
4808
4851
|
i,
|
|
4809
4852
|
o,
|
|
4810
4853
|
s,
|
|
4811
4854
|
a,
|
|
4812
|
-
l,
|
|
4813
4855
|
u,
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4856
|
+
l,
|
|
4857
|
+
d,
|
|
4858
|
+
Or,
|
|
4859
|
+
Mr,
|
|
4860
|
+
Lr,
|
|
4861
|
+
Nr,
|
|
4862
|
+
Rr
|
|
4820
4863
|
];
|
|
4821
4864
|
}
|
|
4822
|
-
class
|
|
4865
|
+
class Co extends sn {
|
|
4823
4866
|
constructor(t) {
|
|
4824
|
-
super(),
|
|
4867
|
+
super(), nn(
|
|
4825
4868
|
this,
|
|
4826
4869
|
t,
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4870
|
+
wo,
|
|
4871
|
+
Eo,
|
|
4872
|
+
zt,
|
|
4830
4873
|
{
|
|
4831
4874
|
endpoint: 19,
|
|
4832
4875
|
datasource: 20,
|
|
@@ -4841,7 +4884,7 @@ class yo extends en {
|
|
|
4841
4884
|
activevendor: 0,
|
|
4842
4885
|
mbsource: 26
|
|
4843
4886
|
},
|
|
4844
|
-
|
|
4887
|
+
bo,
|
|
4845
4888
|
[-1, -1]
|
|
4846
4889
|
);
|
|
4847
4890
|
}
|
|
@@ -4918,7 +4961,7 @@ class yo extends en {
|
|
|
4918
4961
|
this.$$set({ mbsource: t }), R();
|
|
4919
4962
|
}
|
|
4920
4963
|
}
|
|
4921
|
-
|
|
4964
|
+
on(Co, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, actionevent: {}, translationurl: {}, showvendoricon: {}, showvendorname: {}, showvendorgames: {}, activevendor: {}, mbsource: {} }, [], [], !0);
|
|
4922
4965
|
export {
|
|
4923
|
-
|
|
4966
|
+
Co as C
|
|
4924
4967
|
};
|