@everymatrix/casino-categories-vendor-bar 1.74.7 → 1.74.10
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-Bqyy8n97.js → CasinoCategoriesVendorBar-Bp-jLYV9.js} +800 -814
- package/components/CasinoCategoriesVendorBar-CFd37_hY.cjs +18 -0
- package/components/{CasinoCategoriesVendorBar-al9mcHWZ.js → CasinoCategoriesVendorBar-ZLLz2FCr.js} +829 -843
- 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-BayrDBfl.cjs +0 -18
package/components/{CasinoCategoriesVendorBar-Bqyy8n97.js → CasinoCategoriesVendorBar-Bp-jLYV9.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function D() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Ft(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function lt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function X(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Ft);
|
|
11
11
|
}
|
|
12
12
|
function Se(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function jt(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 Lr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Nr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -34,14 +34,14 @@ function Dr(e, ...t) {
|
|
|
34
34
|
function H(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function Rr(e, t, r) {
|
|
38
|
+
const n = Ur(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, Dr(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ur(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,7 +51,7 @@ function kr(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Dr(e, t) {
|
|
55
55
|
return H(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
@@ -73,7 +73,7 @@ function pe(e) {
|
|
|
73
73
|
function G() {
|
|
74
74
|
return pe(" ");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function rt() {
|
|
77
77
|
return pe("");
|
|
78
78
|
}
|
|
79
79
|
function J(e, t, r, n) {
|
|
@@ -82,14 +82,14 @@ function J(e, t, r, n) {
|
|
|
82
82
|
function E(e, t, r) {
|
|
83
83
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function $r(e) {
|
|
86
86
|
return Array.from(e.childNodes);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function nt(e, t) {
|
|
89
89
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
90
90
|
t);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function kr(e) {
|
|
93
93
|
const t = {};
|
|
94
94
|
return e.childNodes.forEach(
|
|
95
95
|
/** @param {Element} node */
|
|
@@ -98,26 +98,26 @@ function jr(e) {
|
|
|
98
98
|
}
|
|
99
99
|
), t;
|
|
100
100
|
}
|
|
101
|
-
let
|
|
101
|
+
let fe;
|
|
102
102
|
function he(e) {
|
|
103
|
-
|
|
103
|
+
fe = e;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
105
|
+
function Gr() {
|
|
106
|
+
if (!fe)
|
|
107
107
|
throw new Error("Function called outside component initialization");
|
|
108
|
-
return
|
|
108
|
+
return fe;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
110
|
+
function Fr(e) {
|
|
111
|
+
Gr().$$.on_mount.push(e);
|
|
112
112
|
}
|
|
113
113
|
const q = [], K = [];
|
|
114
114
|
let ee = [];
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
115
|
+
const ht = [], jr = /* @__PURE__ */ Promise.resolve();
|
|
116
|
+
let Ge = !1;
|
|
117
|
+
function Vr() {
|
|
118
|
+
Ge || (Ge = !0, jr.then(R));
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Fe(e) {
|
|
121
121
|
ee.push(e);
|
|
122
122
|
}
|
|
123
123
|
const Le = /* @__PURE__ */ new Set();
|
|
@@ -125,12 +125,12 @@ let Q = 0;
|
|
|
125
125
|
function R() {
|
|
126
126
|
if (Q !== 0)
|
|
127
127
|
return;
|
|
128
|
-
const e =
|
|
128
|
+
const e = fe;
|
|
129
129
|
do {
|
|
130
130
|
try {
|
|
131
131
|
for (; Q < q.length; ) {
|
|
132
132
|
const t = q[Q];
|
|
133
|
-
Q++, he(t),
|
|
133
|
+
Q++, he(t), Wr(t.$$);
|
|
134
134
|
}
|
|
135
135
|
} catch (t) {
|
|
136
136
|
throw q.length = 0, Q = 0, t;
|
|
@@ -143,113 +143,113 @@ function R() {
|
|
|
143
143
|
}
|
|
144
144
|
ee.length = 0;
|
|
145
145
|
} while (q.length);
|
|
146
|
-
for (;
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
for (; ht.length; )
|
|
147
|
+
ht.pop()();
|
|
148
|
+
Ge = !1, Le.clear(), he(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Wr(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(Fe);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Xr(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 zr = /* @__PURE__ */ new Set();
|
|
162
|
+
function Vt(e, t) {
|
|
163
|
+
e && e.i && (zr.delete(e), e.i(t));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ft(e) {
|
|
166
166
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Zr(e, t) {
|
|
169
169
|
e.d(1), t.delete(e.key);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
let
|
|
171
|
+
function Qr(e, t, r, n, i, o, s, a, u, l, h, f) {
|
|
172
|
+
let c = e.length, m = o.length, p = c;
|
|
173
173
|
const b = {};
|
|
174
174
|
for (; p--; )
|
|
175
175
|
b[e[p].key] = p;
|
|
176
176
|
const T = [], L = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = [];
|
|
177
177
|
for (p = m; p--; ) {
|
|
178
|
-
const g =
|
|
178
|
+
const g = f(i, o, p), $ = 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[p] = k), $ in b && P.set($, Math.abs(p - b[$]));
|
|
181
181
|
}
|
|
182
|
-
const
|
|
182
|
+
const O = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
183
183
|
function N(g) {
|
|
184
|
-
|
|
184
|
+
Vt(g, 1), g.m(a, h), s.set(g.key, g), h = g.first, m--;
|
|
185
185
|
}
|
|
186
|
-
for (;
|
|
187
|
-
const g = T[m - 1], $ = e[
|
|
188
|
-
g === $ ? (h = g.first,
|
|
186
|
+
for (; c && m; ) {
|
|
187
|
+
const g = T[m - 1], $ = e[c - 1], k = g.key, Z = $.key;
|
|
188
|
+
g === $ ? (h = g.first, c--, m--) : L.has(Z) ? !s.has(k) || O.has(k) ? N(g) : w.has(Z) ? c-- : P.get(k) > P.get(Z) ? (w.add(k), N(g)) : (O.add(Z), c--) : (u($, s), c--);
|
|
189
189
|
}
|
|
190
|
-
for (;
|
|
191
|
-
const g = e[
|
|
192
|
-
L.has(g.key) ||
|
|
190
|
+
for (; c--; ) {
|
|
191
|
+
const g = e[c];
|
|
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 Yr(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), Fe(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(Ft).filter(Se);
|
|
202
202
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : X(o), e.$$.on_mount = [];
|
|
203
|
-
}), i.forEach(
|
|
203
|
+
}), i.forEach(Fe);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function qr(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Xr(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 Jr(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (q.push(e), Vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
212
|
+
function Kr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
213
|
+
const u = fe;
|
|
214
214
|
he(e);
|
|
215
|
-
const
|
|
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: lt(),
|
|
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: lt(),
|
|
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 p = m.length ? m[0] :
|
|
240
|
-
return
|
|
241
|
-
})
|
|
238
|
+
if (l.ctx = r(e, t.props || {}, (f, c, ...m) => {
|
|
239
|
+
const p = m.length ? m[0] : c;
|
|
240
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), h && Jr(e, f)), c;
|
|
241
|
+
}), l.update(), h = !0, X(l.before_update), l.fragment = n(l.ctx), t.target) {
|
|
242
242
|
if (t.hydrate) {
|
|
243
|
-
const
|
|
244
|
-
|
|
243
|
+
const f = $r(t.target);
|
|
244
|
+
l.fragment && l.fragment.l(f), f.forEach(I);
|
|
245
245
|
} else
|
|
246
|
-
|
|
247
|
-
t.intro &&
|
|
246
|
+
l.fragment && l.fragment.c();
|
|
247
|
+
t.intro && Vt(e.$$.fragment), Yr(e, t.target, t.anchor), R();
|
|
248
248
|
}
|
|
249
|
-
he(
|
|
249
|
+
he(u);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let Wt;
|
|
252
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
253
253
|
/** The Svelte component constructor */
|
|
254
254
|
$$ctor;
|
|
255
255
|
/** Slots */
|
|
@@ -297,23 +297,23 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
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 = kr(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) {
|
|
315
315
|
const o = this.$$g_p(i.name);
|
|
316
|
-
o in this.$$d || (this.$$d[o] =
|
|
316
|
+
o in this.$$d || (this.$$d[o] = ye(o, i.value, this.$$p_d, "toProp"));
|
|
317
317
|
}
|
|
318
318
|
for (const i in this.$$p_d)
|
|
319
319
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
331
331
|
this.$$r = !0;
|
|
332
332
|
for (const i in this.$$p_d)
|
|
333
333
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
334
|
-
const o =
|
|
334
|
+
const o = ye(
|
|
335
335
|
i,
|
|
336
336
|
this.$$d[i],
|
|
337
337
|
this.$$p_d,
|
|
@@ -353,7 +353,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
353
353
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
354
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
355
355
|
attributeChangedCallback(e, t, r) {
|
|
356
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
356
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
357
357
|
}
|
|
358
358
|
disconnectedCallback() {
|
|
359
359
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -366,7 +366,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
366
366
|
) || e;
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
|
-
function
|
|
369
|
+
function ye(e, t, r, n) {
|
|
370
370
|
const i = r[e]?.type;
|
|
371
371
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
372
372
|
return t;
|
|
@@ -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 en(e, t, r, n, i, o) {
|
|
399
|
+
let s = class extends Wt {
|
|
400
400
|
constructor() {
|
|
401
401
|
super(e, r, i), this.$$p_d = t;
|
|
402
402
|
}
|
|
@@ -411,8 +411,8 @@ function nn(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 = ye(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 nn(e, t, r, n, i, o) {
|
|
|
424
424
|
}), e.element = /** @type {any} */
|
|
425
425
|
s, s;
|
|
426
426
|
}
|
|
427
|
-
class
|
|
427
|
+
class tn {
|
|
428
428
|
/**
|
|
429
429
|
* ### PRIVATE API
|
|
430
430
|
*
|
|
@@ -443,7 +443,7 @@ class on {
|
|
|
443
443
|
$$set = void 0;
|
|
444
444
|
/** @returns {void} */
|
|
445
445
|
$destroy() {
|
|
446
|
-
|
|
446
|
+
qr(this, 1), this.$destroy = D;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,11 +465,11 @@ class on {
|
|
|
465
465
|
* @returns {void}
|
|
466
466
|
*/
|
|
467
467
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
468
|
+
this.$$set && !Lr(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 rn = "4";
|
|
472
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rn);
|
|
473
473
|
/*! *****************************************************************************
|
|
474
474
|
Copyright (c) Microsoft Corporation.
|
|
475
475
|
|
|
@@ -484,18 +484,18 @@ 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 je = function(e, t) {
|
|
488
|
+
return je = 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
|
+
}, je(e, t);
|
|
494
494
|
};
|
|
495
495
|
function j(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
|
+
je(e, t);
|
|
499
499
|
function r() {
|
|
500
500
|
this.constructor = e;
|
|
501
501
|
}
|
|
@@ -511,7 +511,7 @@ var _ = function() {
|
|
|
511
511
|
return t;
|
|
512
512
|
}, _.apply(this, arguments);
|
|
513
513
|
};
|
|
514
|
-
function
|
|
514
|
+
function nn(e, t) {
|
|
515
515
|
var r = {};
|
|
516
516
|
for (var n in e)
|
|
517
517
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -520,7 +520,7 @@ function an(e, t) {
|
|
|
520
520
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
521
521
|
return r;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ve(e) {
|
|
524
524
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
525
525
|
if (r)
|
|
526
526
|
return r.call(e);
|
|
@@ -532,7 +532,7 @@ function We(e) {
|
|
|
532
532
|
};
|
|
533
533
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function We(e, t) {
|
|
536
536
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
537
537
|
if (!r)
|
|
538
538
|
return e;
|
|
@@ -561,13 +561,13 @@ function te(e, t, r) {
|
|
|
561
561
|
function F(e) {
|
|
562
562
|
return typeof e == "function";
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Xt(e) {
|
|
565
565
|
var t = function(n) {
|
|
566
566
|
Error.call(n), n.stack = new Error().stack;
|
|
567
567
|
}, r = e(t);
|
|
568
568
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
569
569
|
}
|
|
570
|
-
var Ne =
|
|
570
|
+
var Ne = Xt(function(e) {
|
|
571
571
|
return function(r) {
|
|
572
572
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
573
573
|
` + r.map(function(n, i) {
|
|
@@ -576,7 +576,7 @@ var Ne = Zt(function(e) {
|
|
|
576
576
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
577
577
|
};
|
|
578
578
|
});
|
|
579
|
-
function
|
|
579
|
+
function Xe(e, t) {
|
|
580
580
|
if (e) {
|
|
581
581
|
var r = e.indexOf(t);
|
|
582
582
|
0 <= r && e.splice(r, 1);
|
|
@@ -594,15 +594,15 @@ var Te = function() {
|
|
|
594
594
|
if (s)
|
|
595
595
|
if (this._parentage = null, Array.isArray(s))
|
|
596
596
|
try {
|
|
597
|
-
for (var a =
|
|
598
|
-
var
|
|
599
|
-
|
|
597
|
+
for (var a = Ve(s), u = a.next(); !u.done; u = a.next()) {
|
|
598
|
+
var l = u.value;
|
|
599
|
+
l.remove(this);
|
|
600
600
|
}
|
|
601
601
|
} catch (b) {
|
|
602
602
|
t = { error: b };
|
|
603
603
|
} finally {
|
|
604
604
|
try {
|
|
605
|
-
|
|
605
|
+
u && !u.done && (r = a.return) && r.call(a);
|
|
606
606
|
} finally {
|
|
607
607
|
if (t)
|
|
608
608
|
throw t.error;
|
|
@@ -617,23 +617,23 @@ var Te = function() {
|
|
|
617
617
|
} catch (b) {
|
|
618
618
|
o = b instanceof Ne ? b.errors : [b];
|
|
619
619
|
}
|
|
620
|
-
var
|
|
621
|
-
if (
|
|
620
|
+
var f = this._finalizers;
|
|
621
|
+
if (f) {
|
|
622
622
|
this._finalizers = null;
|
|
623
623
|
try {
|
|
624
|
-
for (var
|
|
624
|
+
for (var c = Ve(f), m = c.next(); !m.done; m = c.next()) {
|
|
625
625
|
var p = m.value;
|
|
626
626
|
try {
|
|
627
|
-
|
|
627
|
+
ct(p);
|
|
628
628
|
} catch (b) {
|
|
629
|
-
o = o ?? [], b instanceof Ne ? o = te(te([],
|
|
629
|
+
o = o ?? [], b instanceof Ne ? o = te(te([], We(o)), We(b.errors)) : o.push(b);
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
} catch (b) {
|
|
633
633
|
n = { error: b };
|
|
634
634
|
} finally {
|
|
635
635
|
try {
|
|
636
|
-
m && !m.done && (i =
|
|
636
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
637
637
|
} finally {
|
|
638
638
|
if (n)
|
|
639
639
|
throw n.error;
|
|
@@ -647,7 +647,7 @@ var Te = function() {
|
|
|
647
647
|
var r;
|
|
648
648
|
if (t && t !== this)
|
|
649
649
|
if (this.closed)
|
|
650
|
-
|
|
650
|
+
ct(t);
|
|
651
651
|
else {
|
|
652
652
|
if (t instanceof e) {
|
|
653
653
|
if (t.closed || t._hasParent(this))
|
|
@@ -664,56 +664,56 @@ var Te = function() {
|
|
|
664
664
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
665
665
|
}, e.prototype._removeParent = function(t) {
|
|
666
666
|
var r = this._parentage;
|
|
667
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
667
|
+
r === t ? this._parentage = null : Array.isArray(r) && Xe(r, t);
|
|
668
668
|
}, e.prototype.remove = function(t) {
|
|
669
669
|
var r = this._finalizers;
|
|
670
|
-
r &&
|
|
670
|
+
r && Xe(r, t), t instanceof e && t._removeParent(this);
|
|
671
671
|
}, e.EMPTY = function() {
|
|
672
672
|
var t = new e();
|
|
673
673
|
return t.closed = !0, t;
|
|
674
674
|
}(), e;
|
|
675
|
-
}(),
|
|
676
|
-
function
|
|
675
|
+
}(), zt = Te.EMPTY;
|
|
676
|
+
function Zt(e) {
|
|
677
677
|
return e instanceof Te || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ct(e) {
|
|
680
680
|
F(e) ? e() : e.unsubscribe();
|
|
681
681
|
}
|
|
682
|
-
var
|
|
682
|
+
var on = {
|
|
683
683
|
onUnhandledError: null,
|
|
684
684
|
onStoppedNotification: null,
|
|
685
685
|
Promise: void 0,
|
|
686
686
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
687
687
|
useDeprecatedNextContext: !1
|
|
688
|
-
},
|
|
688
|
+
}, sn = {
|
|
689
689
|
setTimeout: function(e, t) {
|
|
690
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
691
691
|
r[n - 2] = arguments[n];
|
|
692
|
-
return setTimeout.apply(void 0, te([e, t],
|
|
692
|
+
return setTimeout.apply(void 0, te([e, t], We(r)));
|
|
693
693
|
},
|
|
694
694
|
clearTimeout: function(e) {
|
|
695
695
|
return clearTimeout(e);
|
|
696
696
|
},
|
|
697
697
|
delegate: void 0
|
|
698
698
|
};
|
|
699
|
-
function
|
|
700
|
-
|
|
699
|
+
function an(e) {
|
|
700
|
+
sn.setTimeout(function() {
|
|
701
701
|
throw e;
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function dt() {
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function ve(e) {
|
|
707
707
|
e();
|
|
708
708
|
}
|
|
709
|
-
var
|
|
709
|
+
var Qt = function(e) {
|
|
710
710
|
j(t, e);
|
|
711
711
|
function t(r) {
|
|
712
712
|
var n = e.call(this) || this;
|
|
713
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Zt(r) && r.add(n)) : n.destination = hn, n;
|
|
714
714
|
}
|
|
715
715
|
return t.create = function(r, n, i) {
|
|
716
|
-
return new
|
|
716
|
+
return new ze(r, n, i);
|
|
717
717
|
}, t.prototype.next = function(r) {
|
|
718
718
|
this.isStopped || this._next(r);
|
|
719
719
|
}, t.prototype.error = function(r) {
|
|
@@ -737,11 +737,7 @@ var Jt = function(e) {
|
|
|
737
737
|
this.unsubscribe();
|
|
738
738
|
}
|
|
739
739
|
}, t;
|
|
740
|
-
}(Te),
|
|
741
|
-
function Re(e, t) {
|
|
742
|
-
return hn.call(e, t);
|
|
743
|
-
}
|
|
744
|
-
var cn = function() {
|
|
740
|
+
}(Te), un = function() {
|
|
745
741
|
function e(t) {
|
|
746
742
|
this.partialObserver = t;
|
|
747
743
|
}
|
|
@@ -772,55 +768,43 @@ var cn = function() {
|
|
|
772
768
|
be(r);
|
|
773
769
|
}
|
|
774
770
|
}, e;
|
|
775
|
-
}(),
|
|
771
|
+
}(), ze = function(e) {
|
|
776
772
|
j(t, e);
|
|
777
773
|
function t(r, n, i) {
|
|
778
774
|
var o = e.call(this) || this, s;
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
};
|
|
785
|
-
else {
|
|
786
|
-
var a;
|
|
787
|
-
o && qt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
788
|
-
return o.unsubscribe();
|
|
789
|
-
}, s = {
|
|
790
|
-
next: r.next && Re(r.next, a),
|
|
791
|
-
error: r.error && Re(r.error, a),
|
|
792
|
-
complete: r.complete && Re(r.complete, a)
|
|
793
|
-
}) : s = r;
|
|
794
|
-
}
|
|
795
|
-
return o.destination = new cn(s), o;
|
|
775
|
+
return F(r) || !r ? s = {
|
|
776
|
+
next: r ?? void 0,
|
|
777
|
+
error: n ?? void 0,
|
|
778
|
+
complete: i ?? void 0
|
|
779
|
+
} : s = r, o.destination = new un(s), o;
|
|
796
780
|
}
|
|
797
781
|
return t;
|
|
798
|
-
}(
|
|
782
|
+
}(Qt);
|
|
799
783
|
function be(e) {
|
|
800
|
-
|
|
784
|
+
an(e);
|
|
801
785
|
}
|
|
802
|
-
function
|
|
786
|
+
function ln(e) {
|
|
803
787
|
throw e;
|
|
804
788
|
}
|
|
805
|
-
var
|
|
789
|
+
var hn = {
|
|
806
790
|
closed: !0,
|
|
807
|
-
next:
|
|
808
|
-
error:
|
|
809
|
-
complete:
|
|
810
|
-
},
|
|
791
|
+
next: dt,
|
|
792
|
+
error: ln,
|
|
793
|
+
complete: dt
|
|
794
|
+
}, fn = function() {
|
|
811
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
812
796
|
}();
|
|
813
|
-
function
|
|
797
|
+
function cn(e) {
|
|
814
798
|
return e;
|
|
815
799
|
}
|
|
816
|
-
function
|
|
817
|
-
return e.length === 0 ?
|
|
800
|
+
function dn(e) {
|
|
801
|
+
return e.length === 0 ? cn : e.length === 1 ? e[0] : function(r) {
|
|
818
802
|
return e.reduce(function(n, i) {
|
|
819
803
|
return i(n);
|
|
820
804
|
}, r);
|
|
821
805
|
};
|
|
822
806
|
}
|
|
823
|
-
var
|
|
807
|
+
var pt = function() {
|
|
824
808
|
function e(t) {
|
|
825
809
|
t && (this._subscribe = t);
|
|
826
810
|
}
|
|
@@ -828,10 +812,10 @@ var bt = function() {
|
|
|
828
812
|
var r = new e();
|
|
829
813
|
return r.source = this, r.operator = t, r;
|
|
830
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
831
|
-
var i = this, o =
|
|
832
|
-
return
|
|
833
|
-
var s = i, a = s.operator,
|
|
834
|
-
o.add(a ? a.call(o,
|
|
815
|
+
var i = this, o = mn(t) ? t : new ze(t, r, n);
|
|
816
|
+
return ve(function() {
|
|
817
|
+
var s = i, a = s.operator, u = s.source;
|
|
818
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
835
819
|
}), o;
|
|
836
820
|
}, e.prototype._trySubscribe = function(t) {
|
|
837
821
|
try {
|
|
@@ -841,13 +825,13 @@ var bt = function() {
|
|
|
841
825
|
}
|
|
842
826
|
}, e.prototype.forEach = function(t, r) {
|
|
843
827
|
var n = this;
|
|
844
|
-
return r =
|
|
845
|
-
var s = new
|
|
828
|
+
return r = mt(r), new r(function(i, o) {
|
|
829
|
+
var s = new ze({
|
|
846
830
|
next: function(a) {
|
|
847
831
|
try {
|
|
848
832
|
t(a);
|
|
849
|
-
} catch (
|
|
850
|
-
o(
|
|
833
|
+
} catch (u) {
|
|
834
|
+
o(u), s.unsubscribe();
|
|
851
835
|
}
|
|
852
836
|
},
|
|
853
837
|
error: o,
|
|
@@ -858,15 +842,15 @@ var bt = function() {
|
|
|
858
842
|
}, e.prototype._subscribe = function(t) {
|
|
859
843
|
var r;
|
|
860
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
861
|
-
}, e.prototype[
|
|
845
|
+
}, e.prototype[fn] = function() {
|
|
862
846
|
return this;
|
|
863
847
|
}, e.prototype.pipe = function() {
|
|
864
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
865
849
|
t[r] = arguments[r];
|
|
866
|
-
return
|
|
850
|
+
return dn(t)(this);
|
|
867
851
|
}, e.prototype.toPromise = function(t) {
|
|
868
852
|
var r = this;
|
|
869
|
-
return t =
|
|
853
|
+
return t = mt(t), new t(function(n, i) {
|
|
870
854
|
var o;
|
|
871
855
|
r.subscribe(function(s) {
|
|
872
856
|
return o = s;
|
|
@@ -880,45 +864,45 @@ var bt = function() {
|
|
|
880
864
|
return new e(t);
|
|
881
865
|
}, e;
|
|
882
866
|
}();
|
|
883
|
-
function
|
|
867
|
+
function mt(e) {
|
|
884
868
|
var t;
|
|
885
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? on.Promise) !== null && t !== void 0 ? t : Promise;
|
|
886
870
|
}
|
|
887
|
-
function
|
|
871
|
+
function pn(e) {
|
|
888
872
|
return e && F(e.next) && F(e.error) && F(e.complete);
|
|
889
873
|
}
|
|
890
|
-
function
|
|
891
|
-
return e && e instanceof
|
|
874
|
+
function mn(e) {
|
|
875
|
+
return e && e instanceof Qt || pn(e) && Zt(e);
|
|
892
876
|
}
|
|
893
|
-
var
|
|
877
|
+
var bn = Xt(function(e) {
|
|
894
878
|
return function() {
|
|
895
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
896
880
|
};
|
|
897
|
-
}),
|
|
881
|
+
}), Yt = function(e) {
|
|
898
882
|
j(t, e);
|
|
899
883
|
function t() {
|
|
900
884
|
var r = e.call(this) || this;
|
|
901
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
902
886
|
}
|
|
903
887
|
return t.prototype.lift = function(r) {
|
|
904
|
-
var n = new
|
|
888
|
+
var n = new bt(this, this);
|
|
905
889
|
return n.operator = r, n;
|
|
906
890
|
}, t.prototype._throwIfClosed = function() {
|
|
907
891
|
if (this.closed)
|
|
908
|
-
throw new
|
|
892
|
+
throw new bn();
|
|
909
893
|
}, t.prototype.next = function(r) {
|
|
910
894
|
var n = this;
|
|
911
|
-
|
|
895
|
+
ve(function() {
|
|
912
896
|
var i, o;
|
|
913
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
914
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
915
899
|
try {
|
|
916
|
-
for (var s =
|
|
917
|
-
var
|
|
918
|
-
|
|
900
|
+
for (var s = Ve(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
901
|
+
var u = a.value;
|
|
902
|
+
u.next(r);
|
|
919
903
|
}
|
|
920
|
-
} catch (
|
|
921
|
-
i = { error:
|
|
904
|
+
} catch (l) {
|
|
905
|
+
i = { error: l };
|
|
922
906
|
} finally {
|
|
923
907
|
try {
|
|
924
908
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -931,7 +915,7 @@ var yn = Zt(function(e) {
|
|
|
931
915
|
});
|
|
932
916
|
}, t.prototype.error = function(r) {
|
|
933
917
|
var n = this;
|
|
934
|
-
|
|
918
|
+
ve(function() {
|
|
935
919
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
936
920
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
937
921
|
for (var i = n.observers; i.length; )
|
|
@@ -940,7 +924,7 @@ var yn = Zt(function(e) {
|
|
|
940
924
|
});
|
|
941
925
|
}, t.prototype.complete = function() {
|
|
942
926
|
var r = this;
|
|
943
|
-
|
|
927
|
+
ve(function() {
|
|
944
928
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
945
929
|
r.isStopped = !0;
|
|
946
930
|
for (var n = r.observers; n.length; )
|
|
@@ -962,19 +946,19 @@ var yn = Zt(function(e) {
|
|
|
962
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
963
947
|
}, t.prototype._innerSubscribe = function(r) {
|
|
964
948
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
965
|
-
return o || s ?
|
|
966
|
-
n.currentObservers = null,
|
|
949
|
+
return o || s ? zt : (this.currentObservers = null, a.push(r), new Te(function() {
|
|
950
|
+
n.currentObservers = null, Xe(a, r);
|
|
967
951
|
}));
|
|
968
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
969
953
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
970
954
|
i ? r.error(o) : s && r.complete();
|
|
971
955
|
}, t.prototype.asObservable = function() {
|
|
972
|
-
var r = new
|
|
956
|
+
var r = new pt();
|
|
973
957
|
return r.source = this, r;
|
|
974
958
|
}, t.create = function(r, n) {
|
|
975
|
-
return new
|
|
959
|
+
return new bt(r, n);
|
|
976
960
|
}, t;
|
|
977
|
-
}(
|
|
961
|
+
}(pt), bt = function(e) {
|
|
978
962
|
j(t, e);
|
|
979
963
|
function t(r, n) {
|
|
980
964
|
var i = e.call(this) || this;
|
|
@@ -991,45 +975,45 @@ var yn = Zt(function(e) {
|
|
|
991
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
992
976
|
}, t.prototype._subscribe = function(r) {
|
|
993
977
|
var n, i;
|
|
994
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
978
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : zt;
|
|
995
979
|
}, t;
|
|
996
|
-
}(
|
|
980
|
+
}(Yt), qt = {
|
|
997
981
|
now: function() {
|
|
998
|
-
return (
|
|
982
|
+
return (qt.delegate || Date).now();
|
|
999
983
|
},
|
|
1000
984
|
delegate: void 0
|
|
1001
|
-
},
|
|
985
|
+
}, gn = function(e) {
|
|
1002
986
|
j(t, e);
|
|
1003
987
|
function t(r, n, i) {
|
|
1004
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
988
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = qt);
|
|
1005
989
|
var o = e.call(this) || this;
|
|
1006
990
|
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;
|
|
1007
991
|
}
|
|
1008
992
|
return t.prototype.next = function(r) {
|
|
1009
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
1010
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
993
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
|
|
994
|
+
i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1011
995
|
}, t.prototype._subscribe = function(r) {
|
|
1012
996
|
this._throwIfClosed(), this._trimBuffer();
|
|
1013
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
1014
|
-
r.next(a[
|
|
997
|
+
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)
|
|
998
|
+
r.next(a[u]);
|
|
1015
999
|
return this._checkFinalizedStatuses(r), n;
|
|
1016
1000
|
}, t.prototype._trimBuffer = function() {
|
|
1017
1001
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1018
1002
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1019
|
-
for (var
|
|
1020
|
-
|
|
1021
|
-
|
|
1003
|
+
for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
1004
|
+
l = h;
|
|
1005
|
+
l && o.splice(0, l + 1);
|
|
1022
1006
|
}
|
|
1023
1007
|
}, t;
|
|
1024
|
-
}(
|
|
1025
|
-
const
|
|
1026
|
-
if (
|
|
1027
|
-
const r = new
|
|
1028
|
-
|
|
1008
|
+
}(Yt);
|
|
1009
|
+
const gt = [], yt = {}, yn = (e, t = 0) => {
|
|
1010
|
+
if (gt.indexOf(e) == -1) {
|
|
1011
|
+
const r = new gn(t);
|
|
1012
|
+
yt[e] = r, gt.push(e);
|
|
1029
1013
|
}
|
|
1030
|
-
return
|
|
1014
|
+
return yt[e];
|
|
1031
1015
|
}, Y = [];
|
|
1032
|
-
function
|
|
1016
|
+
function vn(e, t) {
|
|
1033
1017
|
return {
|
|
1034
1018
|
subscribe: He(e, t).subscribe
|
|
1035
1019
|
};
|
|
@@ -1038,13 +1022,13 @@ function He(e, t = D) {
|
|
|
1038
1022
|
let r;
|
|
1039
1023
|
const n = /* @__PURE__ */ new Set();
|
|
1040
1024
|
function i(a) {
|
|
1041
|
-
if (
|
|
1042
|
-
const
|
|
1043
|
-
for (const
|
|
1044
|
-
|
|
1045
|
-
if (
|
|
1046
|
-
for (let
|
|
1047
|
-
Y[
|
|
1025
|
+
if (jt(e, a) && (e = a, r)) {
|
|
1026
|
+
const u = !Y.length;
|
|
1027
|
+
for (const l of n)
|
|
1028
|
+
l[1](), Y.push(l, e);
|
|
1029
|
+
if (u) {
|
|
1030
|
+
for (let l = 0; l < Y.length; l += 2)
|
|
1031
|
+
Y[l][0](Y[l + 1]);
|
|
1048
1032
|
Y.length = 0;
|
|
1049
1033
|
}
|
|
1050
1034
|
}
|
|
@@ -1052,10 +1036,10 @@ function He(e, t = D) {
|
|
|
1052
1036
|
function o(a) {
|
|
1053
1037
|
i(a(e));
|
|
1054
1038
|
}
|
|
1055
|
-
function s(a,
|
|
1056
|
-
const
|
|
1057
|
-
return n.add(
|
|
1058
|
-
n.delete(
|
|
1039
|
+
function s(a, u = D) {
|
|
1040
|
+
const l = [a, u];
|
|
1041
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
1042
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1059
1043
|
};
|
|
1060
1044
|
}
|
|
1061
1045
|
return { set: i, update: o, subscribe: s };
|
|
@@ -1065,96 +1049,96 @@ function se(e, t, r) {
|
|
|
1065
1049
|
if (!i.every(Boolean))
|
|
1066
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1067
1051
|
const o = t.length < 2;
|
|
1068
|
-
return
|
|
1069
|
-
let
|
|
1070
|
-
const
|
|
1071
|
-
let h = 0,
|
|
1072
|
-
const
|
|
1052
|
+
return vn(r, (s, a) => {
|
|
1053
|
+
let u = !1;
|
|
1054
|
+
const l = [];
|
|
1055
|
+
let h = 0, f = D;
|
|
1056
|
+
const c = () => {
|
|
1073
1057
|
if (h)
|
|
1074
1058
|
return;
|
|
1075
|
-
|
|
1076
|
-
const p = t(n ?
|
|
1077
|
-
o ? s(p) :
|
|
1059
|
+
f();
|
|
1060
|
+
const p = t(n ? l[0] : l, s, a);
|
|
1061
|
+
o ? s(p) : f = Se(p) ? p : D;
|
|
1078
1062
|
}, m = i.map(
|
|
1079
|
-
(p, b) =>
|
|
1063
|
+
(p, b) => Nr(
|
|
1080
1064
|
p,
|
|
1081
1065
|
(T) => {
|
|
1082
|
-
|
|
1066
|
+
l[b] = T, h &= ~(1 << b), u && c();
|
|
1083
1067
|
},
|
|
1084
1068
|
() => {
|
|
1085
1069
|
h |= 1 << b;
|
|
1086
1070
|
}
|
|
1087
1071
|
)
|
|
1088
1072
|
);
|
|
1089
|
-
return
|
|
1090
|
-
X(m),
|
|
1073
|
+
return u = !0, c(), function() {
|
|
1074
|
+
X(m), f(), u = !1;
|
|
1091
1075
|
};
|
|
1092
1076
|
});
|
|
1093
1077
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return e
|
|
1078
|
+
function _n(e) {
|
|
1079
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1096
1080
|
}
|
|
1097
|
-
var
|
|
1098
|
-
return
|
|
1081
|
+
var xn = function(t) {
|
|
1082
|
+
return En(t) && !Cn(t);
|
|
1099
1083
|
};
|
|
1100
|
-
function
|
|
1084
|
+
function En(e) {
|
|
1101
1085
|
return !!e && typeof e == "object";
|
|
1102
1086
|
}
|
|
1103
|
-
function
|
|
1087
|
+
function Cn(e) {
|
|
1104
1088
|
var t = Object.prototype.toString.call(e);
|
|
1105
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || Tn(e);
|
|
1106
1090
|
}
|
|
1107
|
-
var
|
|
1108
|
-
function
|
|
1109
|
-
return e.$$typeof ===
|
|
1091
|
+
var wn = typeof Symbol == "function" && Symbol.for, Sn = wn ? Symbol.for("react.element") : 60103;
|
|
1092
|
+
function Tn(e) {
|
|
1093
|
+
return e.$$typeof === Sn;
|
|
1110
1094
|
}
|
|
1111
|
-
function
|
|
1095
|
+
function Hn(e) {
|
|
1112
1096
|
return Array.isArray(e) ? [] : {};
|
|
1113
1097
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? re(
|
|
1098
|
+
function ce(e, t) {
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Hn(e), e, t) : e;
|
|
1116
1100
|
}
|
|
1117
|
-
function
|
|
1101
|
+
function An(e, t, r) {
|
|
1118
1102
|
return e.concat(t).map(function(n) {
|
|
1119
|
-
return
|
|
1103
|
+
return ce(n, r);
|
|
1120
1104
|
});
|
|
1121
1105
|
}
|
|
1122
|
-
function
|
|
1106
|
+
function In(e, t) {
|
|
1123
1107
|
if (!t.customMerge)
|
|
1124
1108
|
return re;
|
|
1125
1109
|
var r = t.customMerge(e);
|
|
1126
1110
|
return typeof r == "function" ? r : re;
|
|
1127
1111
|
}
|
|
1128
|
-
function
|
|
1112
|
+
function Bn(e) {
|
|
1129
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1130
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1131
1115
|
}) : [];
|
|
1132
1116
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return Object.keys(e).concat(
|
|
1117
|
+
function vt(e) {
|
|
1118
|
+
return Object.keys(e).concat(Bn(e));
|
|
1135
1119
|
}
|
|
1136
|
-
function
|
|
1120
|
+
function Jt(e, t) {
|
|
1137
1121
|
try {
|
|
1138
1122
|
return t in e;
|
|
1139
1123
|
} catch {
|
|
1140
1124
|
return !1;
|
|
1141
1125
|
}
|
|
1142
1126
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1127
|
+
function Pn(e, t) {
|
|
1128
|
+
return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1145
1129
|
}
|
|
1146
|
-
function
|
|
1130
|
+
function On(e, t, r) {
|
|
1147
1131
|
var n = {};
|
|
1148
|
-
return r.isMergeableObject(e) &&
|
|
1149
|
-
n[i] =
|
|
1150
|
-
}),
|
|
1151
|
-
|
|
1132
|
+
return r.isMergeableObject(e) && vt(e).forEach(function(i) {
|
|
1133
|
+
n[i] = ce(e[i], r);
|
|
1134
|
+
}), vt(t).forEach(function(i) {
|
|
1135
|
+
Pn(e, i) || (Jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
1152
1136
|
}), n;
|
|
1153
1137
|
}
|
|
1154
1138
|
function re(e, t, r) {
|
|
1155
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || xn, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1156
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1157
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : On(e, t, r) : ce(t, r);
|
|
1158
1142
|
}
|
|
1159
1143
|
re.all = function(t, r) {
|
|
1160
1144
|
if (!Array.isArray(t))
|
|
@@ -1163,62 +1147,64 @@ re.all = function(t, r) {
|
|
|
1163
1147
|
return re(n, i, r);
|
|
1164
1148
|
}, {});
|
|
1165
1149
|
};
|
|
1166
|
-
var
|
|
1167
|
-
const
|
|
1168
|
-
function
|
|
1169
|
-
var r = t && t.cache ? t.cache :
|
|
1150
|
+
var Mn = re, Ln = Mn;
|
|
1151
|
+
const Nn = /* @__PURE__ */ _n(Ln);
|
|
1152
|
+
function Re(e, t) {
|
|
1153
|
+
var r = t && t.cache ? t.cache : Fn, n = t && t.serializer ? t.serializer : kn, i = t && t.strategy ? t.strategy : Un;
|
|
1170
1154
|
return i(e, {
|
|
1171
1155
|
cache: r,
|
|
1172
1156
|
serializer: n
|
|
1173
1157
|
});
|
|
1174
1158
|
}
|
|
1175
|
-
function
|
|
1159
|
+
function Rn(e) {
|
|
1176
1160
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1177
1161
|
}
|
|
1178
|
-
function
|
|
1179
|
-
var i =
|
|
1162
|
+
function Kt(e, t, r, n) {
|
|
1163
|
+
var i = Rn(n) ? n : r(n), o = t.get(i);
|
|
1180
1164
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1181
1165
|
}
|
|
1182
|
-
function
|
|
1166
|
+
function er(e, t, r) {
|
|
1183
1167
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1184
1168
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1185
1169
|
}
|
|
1186
|
-
function
|
|
1170
|
+
function it(e, t, r, n, i) {
|
|
1187
1171
|
return r.bind(t, e, n, i);
|
|
1188
1172
|
}
|
|
1189
|
-
function
|
|
1190
|
-
var r = e.length === 1 ?
|
|
1191
|
-
return
|
|
1173
|
+
function Un(e, t) {
|
|
1174
|
+
var r = e.length === 1 ? Kt : er;
|
|
1175
|
+
return it(e, this, r, t.cache.create(), t.serializer);
|
|
1192
1176
|
}
|
|
1193
|
-
function
|
|
1194
|
-
return
|
|
1177
|
+
function Dn(e, t) {
|
|
1178
|
+
return it(e, this, er, t.cache.create(), t.serializer);
|
|
1195
1179
|
}
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1180
|
+
function $n(e, t) {
|
|
1181
|
+
return it(e, this, Kt, t.cache.create(), t.serializer);
|
|
1198
1182
|
}
|
|
1199
|
-
var
|
|
1183
|
+
var kn = function() {
|
|
1200
1184
|
return JSON.stringify(arguments);
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1185
|
+
}, Gn = (
|
|
1186
|
+
/** @class */
|
|
1187
|
+
function() {
|
|
1188
|
+
function e() {
|
|
1189
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1190
|
+
}
|
|
1191
|
+
return e.prototype.get = function(t) {
|
|
1192
|
+
return this.cache[t];
|
|
1193
|
+
}, e.prototype.set = function(t, r) {
|
|
1194
|
+
this.cache[t] = r;
|
|
1195
|
+
}, e;
|
|
1196
|
+
}()
|
|
1197
|
+
), Fn = {
|
|
1212
1198
|
create: function() {
|
|
1213
|
-
return new
|
|
1199
|
+
return new Gn();
|
|
1214
1200
|
}
|
|
1215
|
-
},
|
|
1216
|
-
variadic:
|
|
1217
|
-
monadic:
|
|
1218
|
-
},
|
|
1201
|
+
}, Ue = {
|
|
1202
|
+
variadic: Dn,
|
|
1203
|
+
monadic: $n
|
|
1204
|
+
}, y;
|
|
1219
1205
|
(function(e) {
|
|
1220
1206
|
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";
|
|
1221
|
-
})(
|
|
1207
|
+
})(y || (y = {}));
|
|
1222
1208
|
var C;
|
|
1223
1209
|
(function(e) {
|
|
1224
1210
|
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";
|
|
@@ -1227,43 +1213,43 @@ var ne;
|
|
|
1227
1213
|
(function(e) {
|
|
1228
1214
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1229
1215
|
})(ne || (ne = {}));
|
|
1230
|
-
function
|
|
1216
|
+
function _t(e) {
|
|
1231
1217
|
return e.type === C.literal;
|
|
1232
1218
|
}
|
|
1233
|
-
function
|
|
1219
|
+
function jn(e) {
|
|
1234
1220
|
return e.type === C.argument;
|
|
1235
1221
|
}
|
|
1236
|
-
function
|
|
1222
|
+
function tr(e) {
|
|
1237
1223
|
return e.type === C.number;
|
|
1238
1224
|
}
|
|
1239
|
-
function
|
|
1225
|
+
function rr(e) {
|
|
1240
1226
|
return e.type === C.date;
|
|
1241
1227
|
}
|
|
1242
|
-
function
|
|
1228
|
+
function nr(e) {
|
|
1243
1229
|
return e.type === C.time;
|
|
1244
1230
|
}
|
|
1245
|
-
function
|
|
1231
|
+
function ir(e) {
|
|
1246
1232
|
return e.type === C.select;
|
|
1247
1233
|
}
|
|
1248
|
-
function
|
|
1234
|
+
function or(e) {
|
|
1249
1235
|
return e.type === C.plural;
|
|
1250
1236
|
}
|
|
1251
|
-
function
|
|
1237
|
+
function Vn(e) {
|
|
1252
1238
|
return e.type === C.pound;
|
|
1253
1239
|
}
|
|
1254
|
-
function
|
|
1240
|
+
function sr(e) {
|
|
1255
1241
|
return e.type === C.tag;
|
|
1256
1242
|
}
|
|
1257
|
-
function
|
|
1243
|
+
function ar(e) {
|
|
1258
1244
|
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1259
1245
|
}
|
|
1260
|
-
function
|
|
1246
|
+
function Ze(e) {
|
|
1261
1247
|
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1262
1248
|
}
|
|
1263
|
-
var
|
|
1264
|
-
function
|
|
1249
|
+
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wn = /(?:[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;
|
|
1250
|
+
function Xn(e) {
|
|
1265
1251
|
var t = {};
|
|
1266
|
-
return e.replace(
|
|
1252
|
+
return e.replace(Wn, function(r) {
|
|
1267
1253
|
var n = r.length;
|
|
1268
1254
|
switch (r[0]) {
|
|
1269
1255
|
case "G":
|
|
@@ -1352,36 +1338,36 @@ function Zn(e) {
|
|
|
1352
1338
|
return "";
|
|
1353
1339
|
}), t;
|
|
1354
1340
|
}
|
|
1355
|
-
var
|
|
1356
|
-
function
|
|
1341
|
+
var zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1342
|
+
function Zn(e) {
|
|
1357
1343
|
if (e.length === 0)
|
|
1358
1344
|
throw new Error("Number skeleton cannot be empty");
|
|
1359
|
-
for (var t = e.split(
|
|
1360
|
-
return
|
|
1345
|
+
for (var t = e.split(zn).filter(function(c) {
|
|
1346
|
+
return c.length > 0;
|
|
1361
1347
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1362
1348
|
var o = i[n], s = o.split("/");
|
|
1363
1349
|
if (s.length === 0)
|
|
1364
1350
|
throw new Error("Invalid number skeleton");
|
|
1365
|
-
for (var a = s[0],
|
|
1366
|
-
var
|
|
1367
|
-
if (
|
|
1351
|
+
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1352
|
+
var f = h[l];
|
|
1353
|
+
if (f.length === 0)
|
|
1368
1354
|
throw new Error("Invalid number skeleton");
|
|
1369
1355
|
}
|
|
1370
|
-
r.push({ stem: a, options:
|
|
1356
|
+
r.push({ stem: a, options: u });
|
|
1371
1357
|
}
|
|
1372
1358
|
return r;
|
|
1373
1359
|
}
|
|
1374
|
-
function
|
|
1360
|
+
function Qn(e) {
|
|
1375
1361
|
return e.replace(/^(.*?)-/, "");
|
|
1376
1362
|
}
|
|
1377
|
-
var
|
|
1378
|
-
function
|
|
1363
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, lr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, hr = /^(0+)$/;
|
|
1364
|
+
function Et(e) {
|
|
1379
1365
|
var t = {};
|
|
1380
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1366
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(lr, function(r, n, i) {
|
|
1381
1367
|
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)), "";
|
|
1382
1368
|
}), t;
|
|
1383
1369
|
}
|
|
1384
|
-
function
|
|
1370
|
+
function fr(e) {
|
|
1385
1371
|
switch (e) {
|
|
1386
1372
|
case "sign-auto":
|
|
1387
1373
|
return {
|
|
@@ -1421,7 +1407,7 @@ function pr(e) {
|
|
|
1421
1407
|
};
|
|
1422
1408
|
}
|
|
1423
1409
|
}
|
|
1424
|
-
function
|
|
1410
|
+
function qn(e) {
|
|
1425
1411
|
var t;
|
|
1426
1412
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1427
1413
|
notation: "engineering"
|
|
@@ -1429,17 +1415,17 @@ function Kn(e) {
|
|
|
1429
1415
|
notation: "scientific"
|
|
1430
1416
|
}, e = e.slice(1)), t) {
|
|
1431
1417
|
var r = e.slice(0, 2);
|
|
1432
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1418
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hr.test(e))
|
|
1433
1419
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1434
1420
|
t.minimumIntegerDigits = e.length;
|
|
1435
1421
|
}
|
|
1436
1422
|
return t;
|
|
1437
1423
|
}
|
|
1438
|
-
function
|
|
1439
|
-
var t = {}, r =
|
|
1424
|
+
function Ct(e) {
|
|
1425
|
+
var t = {}, r = fr(e);
|
|
1440
1426
|
return r || t;
|
|
1441
1427
|
}
|
|
1442
|
-
function
|
|
1428
|
+
function Jn(e) {
|
|
1443
1429
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1444
1430
|
var i = n[r];
|
|
1445
1431
|
switch (i.stem) {
|
|
@@ -1463,7 +1449,7 @@ function ei(e) {
|
|
|
1463
1449
|
continue;
|
|
1464
1450
|
case "measure-unit":
|
|
1465
1451
|
case "unit":
|
|
1466
|
-
t.style = "unit", t.unit =
|
|
1452
|
+
t.style = "unit", t.unit = Qn(i.options[0]);
|
|
1467
1453
|
continue;
|
|
1468
1454
|
case "compact-short":
|
|
1469
1455
|
case "K":
|
|
@@ -1474,13 +1460,13 @@ function ei(e) {
|
|
|
1474
1460
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1475
1461
|
continue;
|
|
1476
1462
|
case "scientific":
|
|
1477
|
-
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1478
|
-
return _(_({},
|
|
1463
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1464
|
+
return _(_({}, u), Ct(l));
|
|
1479
1465
|
}, {}));
|
|
1480
1466
|
continue;
|
|
1481
1467
|
case "engineering":
|
|
1482
|
-
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1483
|
-
return _(_({},
|
|
1468
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1469
|
+
return _(_({}, u), Ct(l));
|
|
1484
1470
|
}, {}));
|
|
1485
1471
|
continue;
|
|
1486
1472
|
case "notation-simple":
|
|
@@ -1525,11 +1511,11 @@ function ei(e) {
|
|
|
1525
1511
|
case "integer-width":
|
|
1526
1512
|
if (i.options.length > 1)
|
|
1527
1513
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1528
|
-
i.options[0].replace(
|
|
1529
|
-
if (
|
|
1514
|
+
i.options[0].replace(Yn, function(u, l, h, f, c, m) {
|
|
1515
|
+
if (l)
|
|
1530
1516
|
t.minimumIntegerDigits = h.length;
|
|
1531
1517
|
else {
|
|
1532
|
-
if (
|
|
1518
|
+
if (f && c)
|
|
1533
1519
|
throw new Error("We currently do not support maximum integer digits");
|
|
1534
1520
|
if (m)
|
|
1535
1521
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1538,27 +1524,27 @@ function ei(e) {
|
|
|
1538
1524
|
});
|
|
1539
1525
|
continue;
|
|
1540
1526
|
}
|
|
1541
|
-
if (
|
|
1527
|
+
if (hr.test(i.stem)) {
|
|
1542
1528
|
t.minimumIntegerDigits = i.stem.length;
|
|
1543
1529
|
continue;
|
|
1544
1530
|
}
|
|
1545
|
-
if (
|
|
1531
|
+
if (xt.test(i.stem)) {
|
|
1546
1532
|
if (i.options.length > 1)
|
|
1547
1533
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1548
|
-
i.stem.replace(
|
|
1549
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1534
|
+
i.stem.replace(xt, function(u, l, h, f, c, m) {
|
|
1535
|
+
return h === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1550
1536
|
});
|
|
1551
1537
|
var o = i.options[0];
|
|
1552
|
-
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t),
|
|
1538
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Et(o)));
|
|
1553
1539
|
continue;
|
|
1554
1540
|
}
|
|
1555
|
-
if (
|
|
1556
|
-
t = _(_({}, t),
|
|
1541
|
+
if (lr.test(i.stem)) {
|
|
1542
|
+
t = _(_({}, t), Et(i.stem));
|
|
1557
1543
|
continue;
|
|
1558
1544
|
}
|
|
1559
|
-
var s =
|
|
1545
|
+
var s = fr(i.stem);
|
|
1560
1546
|
s && (t = _(_({}, t), s));
|
|
1561
|
-
var a =
|
|
1547
|
+
var a = qn(i.stem);
|
|
1562
1548
|
a && (t = _(_({}, t), a));
|
|
1563
1549
|
}
|
|
1564
1550
|
return t;
|
|
@@ -2978,23 +2964,23 @@ var ge = {
|
|
|
2978
2964
|
"h"
|
|
2979
2965
|
]
|
|
2980
2966
|
};
|
|
2981
|
-
function
|
|
2967
|
+
function Kn(e, t) {
|
|
2982
2968
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2983
2969
|
var i = e.charAt(n);
|
|
2984
2970
|
if (i === "j") {
|
|
2985
2971
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2986
2972
|
o++, n++;
|
|
2987
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2988
|
-
for ((
|
|
2989
|
-
r +=
|
|
2973
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ei(t);
|
|
2974
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2975
|
+
r += u;
|
|
2990
2976
|
for (; s-- > 0; )
|
|
2991
|
-
r =
|
|
2977
|
+
r = l + r;
|
|
2992
2978
|
} else
|
|
2993
2979
|
i === "J" ? r += "H" : r += i;
|
|
2994
2980
|
}
|
|
2995
2981
|
return r;
|
|
2996
2982
|
}
|
|
2997
|
-
function
|
|
2983
|
+
function ei(e) {
|
|
2998
2984
|
var t = e.hourCycle;
|
|
2999
2985
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3000
2986
|
e.hourCycles && // @ts-ignore
|
|
@@ -3016,20 +3002,20 @@ function ri(e) {
|
|
|
3016
3002
|
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3017
3003
|
return i[0];
|
|
3018
3004
|
}
|
|
3019
|
-
var
|
|
3020
|
-
function
|
|
3005
|
+
var De, ti = new RegExp("^".concat(ur.source, "*")), ri = new RegExp("".concat(ur.source, "*$"));
|
|
3006
|
+
function v(e, t) {
|
|
3021
3007
|
return { start: e, end: t };
|
|
3022
3008
|
}
|
|
3023
|
-
var
|
|
3009
|
+
var ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), ii = !!String.fromCodePoint, oi = !!Object.fromEntries, si = !!String.prototype.codePointAt, ai = !!String.prototype.trimStart, ui = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, hi = li ? Number.isSafeInteger : function(e) {
|
|
3024
3010
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3025
|
-
},
|
|
3011
|
+
}, Qe = !0;
|
|
3026
3012
|
try {
|
|
3027
|
-
var
|
|
3028
|
-
|
|
3013
|
+
var fi = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3014
|
+
Qe = ((De = fi.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3029
3015
|
} catch {
|
|
3030
|
-
|
|
3016
|
+
Qe = !1;
|
|
3031
3017
|
}
|
|
3032
|
-
var
|
|
3018
|
+
var wt = ni ? (
|
|
3033
3019
|
// Native
|
|
3034
3020
|
function(t, r, n) {
|
|
3035
3021
|
return t.startsWith(r, n);
|
|
@@ -3039,7 +3025,7 @@ var Tt = oi ? (
|
|
|
3039
3025
|
function(t, r, n) {
|
|
3040
3026
|
return t.slice(n, n + r.length) === r;
|
|
3041
3027
|
}
|
|
3042
|
-
),
|
|
3028
|
+
), Ye = ii ? String.fromCodePoint : (
|
|
3043
3029
|
// IE11
|
|
3044
3030
|
function() {
|
|
3045
3031
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3051,9 +3037,9 @@ var Tt = oi ? (
|
|
|
3051
3037
|
}
|
|
3052
3038
|
return n;
|
|
3053
3039
|
}
|
|
3054
|
-
),
|
|
3040
|
+
), St = (
|
|
3055
3041
|
// native
|
|
3056
|
-
|
|
3042
|
+
oi ? Object.fromEntries : (
|
|
3057
3043
|
// Ponyfill
|
|
3058
3044
|
function(t) {
|
|
3059
3045
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3063,7 +3049,7 @@ var Tt = oi ? (
|
|
|
3063
3049
|
return r;
|
|
3064
3050
|
}
|
|
3065
3051
|
)
|
|
3066
|
-
),
|
|
3052
|
+
), cr = si ? (
|
|
3067
3053
|
// Native
|
|
3068
3054
|
function(t, r) {
|
|
3069
3055
|
return t.codePointAt(r);
|
|
@@ -3077,7 +3063,7 @@ var Tt = oi ? (
|
|
|
3077
3063
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3078
3064
|
}
|
|
3079
3065
|
}
|
|
3080
|
-
),
|
|
3066
|
+
), ci = ai ? (
|
|
3081
3067
|
// Native
|
|
3082
3068
|
function(t) {
|
|
3083
3069
|
return t.trimStart();
|
|
@@ -3085,9 +3071,9 @@ var Tt = oi ? (
|
|
|
3085
3071
|
) : (
|
|
3086
3072
|
// Ponyfill
|
|
3087
3073
|
function(t) {
|
|
3088
|
-
return t.replace(
|
|
3074
|
+
return t.replace(ti, "");
|
|
3089
3075
|
}
|
|
3090
|
-
),
|
|
3076
|
+
), di = ui ? (
|
|
3091
3077
|
// Native
|
|
3092
3078
|
function(t) {
|
|
3093
3079
|
return t.trimEnd();
|
|
@@ -3095,32 +3081,32 @@ var Tt = oi ? (
|
|
|
3095
3081
|
) : (
|
|
3096
3082
|
// Ponyfill
|
|
3097
3083
|
function(t) {
|
|
3098
|
-
return t.replace(
|
|
3084
|
+
return t.replace(ri, "");
|
|
3099
3085
|
}
|
|
3100
3086
|
);
|
|
3101
|
-
function
|
|
3087
|
+
function dr(e, t) {
|
|
3102
3088
|
return new RegExp(e, t);
|
|
3103
3089
|
}
|
|
3104
|
-
var
|
|
3105
|
-
if (
|
|
3106
|
-
var
|
|
3107
|
-
|
|
3090
|
+
var qe;
|
|
3091
|
+
if (Qe) {
|
|
3092
|
+
var Tt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3093
|
+
qe = function(t, r) {
|
|
3108
3094
|
var n;
|
|
3109
|
-
|
|
3110
|
-
var i =
|
|
3095
|
+
Tt.lastIndex = r;
|
|
3096
|
+
var i = Tt.exec(t);
|
|
3111
3097
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3112
3098
|
};
|
|
3113
3099
|
} else
|
|
3114
|
-
|
|
3100
|
+
qe = function(t, r) {
|
|
3115
3101
|
for (var n = []; ; ) {
|
|
3116
|
-
var i =
|
|
3117
|
-
if (i === void 0 ||
|
|
3102
|
+
var i = cr(t, r);
|
|
3103
|
+
if (i === void 0 || pr(i) || gi(i))
|
|
3118
3104
|
break;
|
|
3119
3105
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3120
3106
|
}
|
|
3121
|
-
return
|
|
3107
|
+
return Ye.apply(void 0, n);
|
|
3122
3108
|
};
|
|
3123
|
-
var
|
|
3109
|
+
var pi = (
|
|
3124
3110
|
/** @class */
|
|
3125
3111
|
function() {
|
|
3126
3112
|
function e(t, r) {
|
|
@@ -3145,13 +3131,13 @@ var bi = (
|
|
|
3145
3131
|
var a = this.clonePosition();
|
|
3146
3132
|
this.bump(), i.push({
|
|
3147
3133
|
type: C.pound,
|
|
3148
|
-
location:
|
|
3134
|
+
location: v(a, this.clonePosition())
|
|
3149
3135
|
});
|
|
3150
3136
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3151
3137
|
if (n)
|
|
3152
3138
|
break;
|
|
3153
|
-
return this.error(
|
|
3154
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3139
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3140
|
+
} else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
|
|
3155
3141
|
var s = this.parseTag(t, r);
|
|
3156
3142
|
if (s.err)
|
|
3157
3143
|
return s;
|
|
@@ -3174,7 +3160,7 @@ var bi = (
|
|
|
3174
3160
|
val: {
|
|
3175
3161
|
type: C.literal,
|
|
3176
3162
|
value: "<".concat(i, "/>"),
|
|
3177
|
-
location:
|
|
3163
|
+
location: v(n, this.clonePosition())
|
|
3178
3164
|
},
|
|
3179
3165
|
err: null
|
|
3180
3166
|
};
|
|
@@ -3184,25 +3170,25 @@ var bi = (
|
|
|
3184
3170
|
return o;
|
|
3185
3171
|
var s = o.val, a = this.clonePosition();
|
|
3186
3172
|
if (this.bumpIf("</")) {
|
|
3187
|
-
if (this.isEOF() || !
|
|
3188
|
-
return this.error(
|
|
3189
|
-
var
|
|
3190
|
-
return i !==
|
|
3173
|
+
if (this.isEOF() || !Je(this.char()))
|
|
3174
|
+
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
|
3175
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
3176
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3191
3177
|
val: {
|
|
3192
3178
|
type: C.tag,
|
|
3193
3179
|
value: i,
|
|
3194
3180
|
children: s,
|
|
3195
|
-
location:
|
|
3181
|
+
location: v(n, this.clonePosition())
|
|
3196
3182
|
},
|
|
3197
3183
|
err: null
|
|
3198
|
-
} : this.error(
|
|
3184
|
+
} : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
|
|
3199
3185
|
} else
|
|
3200
|
-
return this.error(
|
|
3186
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3201
3187
|
} else
|
|
3202
|
-
return this.error(
|
|
3188
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3203
3189
|
}, e.prototype.parseTagName = function() {
|
|
3204
3190
|
var t = this.offset();
|
|
3205
|
-
for (this.bump(); !this.isEOF() &&
|
|
3191
|
+
for (this.bump(); !this.isEOF() && bi(this.char()); )
|
|
3206
3192
|
this.bump();
|
|
3207
3193
|
return this.message.slice(t, this.offset());
|
|
3208
3194
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3224,14 +3210,14 @@ var bi = (
|
|
|
3224
3210
|
}
|
|
3225
3211
|
break;
|
|
3226
3212
|
}
|
|
3227
|
-
var
|
|
3213
|
+
var u = v(n, this.clonePosition());
|
|
3228
3214
|
return {
|
|
3229
|
-
val: { type: C.literal, value: i, location:
|
|
3215
|
+
val: { type: C.literal, value: i, location: u },
|
|
3230
3216
|
err: null
|
|
3231
3217
|
};
|
|
3232
3218
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3233
3219
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3234
|
-
!
|
|
3220
|
+
!mi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3235
3221
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3236
3222
|
if (this.isEOF() || this.char() !== 39)
|
|
3237
3223
|
return null;
|
|
@@ -3265,23 +3251,23 @@ var bi = (
|
|
|
3265
3251
|
r.push(n);
|
|
3266
3252
|
this.bump();
|
|
3267
3253
|
}
|
|
3268
|
-
return
|
|
3254
|
+
return Ye.apply(void 0, r);
|
|
3269
3255
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3270
3256
|
if (this.isEOF())
|
|
3271
3257
|
return null;
|
|
3272
3258
|
var n = this.char();
|
|
3273
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3259
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
|
|
3274
3260
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3275
3261
|
var n = this.clonePosition();
|
|
3276
3262
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3277
|
-
return this.error(
|
|
3263
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3278
3264
|
if (this.char() === 125)
|
|
3279
|
-
return this.bump(), this.error(
|
|
3265
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3280
3266
|
var i = this.parseIdentifierIfPossible().value;
|
|
3281
3267
|
if (!i)
|
|
3282
|
-
return this.error(
|
|
3268
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3283
3269
|
if (this.bumpSpace(), this.isEOF())
|
|
3284
|
-
return this.error(
|
|
3270
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3285
3271
|
switch (this.char()) {
|
|
3286
3272
|
case 125:
|
|
3287
3273
|
return this.bump(), {
|
|
@@ -3289,66 +3275,66 @@ var bi = (
|
|
|
3289
3275
|
type: C.argument,
|
|
3290
3276
|
// value does not include the opening and closing braces.
|
|
3291
3277
|
value: i,
|
|
3292
|
-
location:
|
|
3278
|
+
location: v(n, this.clonePosition())
|
|
3293
3279
|
},
|
|
3294
3280
|
err: null
|
|
3295
3281
|
};
|
|
3296
3282
|
case 44:
|
|
3297
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3283
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3298
3284
|
default:
|
|
3299
|
-
return this.error(
|
|
3285
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3300
3286
|
}
|
|
3301
3287
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3302
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3288
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
|
3303
3289
|
this.bumpTo(i);
|
|
3304
|
-
var o = this.clonePosition(), s =
|
|
3290
|
+
var o = this.clonePosition(), s = v(t, o);
|
|
3305
3291
|
return { value: n, location: s };
|
|
3306
3292
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3307
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3293
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3308
3294
|
switch (a) {
|
|
3309
3295
|
case "":
|
|
3310
|
-
return this.error(
|
|
3296
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, u));
|
|
3311
3297
|
case "number":
|
|
3312
3298
|
case "date":
|
|
3313
3299
|
case "time": {
|
|
3314
3300
|
this.bumpSpace();
|
|
3315
|
-
var
|
|
3301
|
+
var l = null;
|
|
3316
3302
|
if (this.bumpIf(",")) {
|
|
3317
3303
|
this.bumpSpace();
|
|
3318
|
-
var h = this.clonePosition(),
|
|
3319
|
-
if (
|
|
3320
|
-
return
|
|
3321
|
-
var
|
|
3322
|
-
if (
|
|
3323
|
-
return this.error(
|
|
3324
|
-
var m =
|
|
3325
|
-
|
|
3304
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3305
|
+
if (f.err)
|
|
3306
|
+
return f;
|
|
3307
|
+
var c = di(f.val);
|
|
3308
|
+
if (c.length === 0)
|
|
3309
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3310
|
+
var m = v(h, this.clonePosition());
|
|
3311
|
+
l = { style: c, styleLocation: m };
|
|
3326
3312
|
}
|
|
3327
3313
|
var p = this.tryParseArgumentClose(i);
|
|
3328
3314
|
if (p.err)
|
|
3329
3315
|
return p;
|
|
3330
|
-
var b =
|
|
3331
|
-
if (
|
|
3332
|
-
var T =
|
|
3316
|
+
var b = v(i, this.clonePosition());
|
|
3317
|
+
if (l && wt(l?.style, "::", 0)) {
|
|
3318
|
+
var T = ci(l.style.slice(2));
|
|
3333
3319
|
if (a === "number") {
|
|
3334
|
-
var
|
|
3335
|
-
return
|
|
3336
|
-
val: { type: C.number, value: n, location: b, style:
|
|
3320
|
+
var f = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
|
3321
|
+
return f.err ? f : {
|
|
3322
|
+
val: { type: C.number, value: n, location: b, style: f.val },
|
|
3337
3323
|
err: null
|
|
3338
3324
|
};
|
|
3339
3325
|
} else {
|
|
3340
3326
|
if (T.length === 0)
|
|
3341
|
-
return this.error(
|
|
3327
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
3342
3328
|
var L = T;
|
|
3343
|
-
this.locale && (L =
|
|
3344
|
-
var
|
|
3329
|
+
this.locale && (L = Kn(T, this.locale));
|
|
3330
|
+
var c = {
|
|
3345
3331
|
type: ne.dateTime,
|
|
3346
3332
|
pattern: L,
|
|
3347
|
-
location:
|
|
3348
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3333
|
+
location: l.styleLocation,
|
|
3334
|
+
parsedOptions: this.shouldParseSkeletons ? Xn(L) : {}
|
|
3349
3335
|
}, P = a === "date" ? C.date : C.time;
|
|
3350
3336
|
return {
|
|
3351
|
-
val: { type: P, value: n, location: b, style:
|
|
3337
|
+
val: { type: P, value: n, location: b, style: c },
|
|
3352
3338
|
err: null
|
|
3353
3339
|
};
|
|
3354
3340
|
}
|
|
@@ -3358,7 +3344,7 @@ var bi = (
|
|
|
3358
3344
|
type: a === "number" ? C.number : a === "date" ? C.date : C.time,
|
|
3359
3345
|
value: n,
|
|
3360
3346
|
location: b,
|
|
3361
|
-
style: (o =
|
|
3347
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
3362
3348
|
},
|
|
3363
3349
|
err: null
|
|
3364
3350
|
};
|
|
@@ -3368,30 +3354,30 @@ var bi = (
|
|
|
3368
3354
|
case "select": {
|
|
3369
3355
|
var A = this.clonePosition();
|
|
3370
3356
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3371
|
-
return this.error(
|
|
3357
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(A, _({}, A)));
|
|
3372
3358
|
this.bumpSpace();
|
|
3373
|
-
var
|
|
3374
|
-
if (a !== "select" &&
|
|
3359
|
+
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3360
|
+
if (a !== "select" && O.value === "offset") {
|
|
3375
3361
|
if (!this.bumpIf(":"))
|
|
3376
|
-
return this.error(
|
|
3362
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3377
3363
|
this.bumpSpace();
|
|
3378
|
-
var
|
|
3379
|
-
if (
|
|
3380
|
-
return
|
|
3381
|
-
this.bumpSpace(),
|
|
3364
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3365
|
+
if (f.err)
|
|
3366
|
+
return f;
|
|
3367
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w = f.val;
|
|
3382
3368
|
}
|
|
3383
|
-
var N = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3369
|
+
var N = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3384
3370
|
if (N.err)
|
|
3385
3371
|
return N;
|
|
3386
3372
|
var p = this.tryParseArgumentClose(i);
|
|
3387
3373
|
if (p.err)
|
|
3388
3374
|
return p;
|
|
3389
|
-
var g =
|
|
3375
|
+
var g = v(i, this.clonePosition());
|
|
3390
3376
|
return a === "select" ? {
|
|
3391
3377
|
val: {
|
|
3392
3378
|
type: C.select,
|
|
3393
3379
|
value: n,
|
|
3394
|
-
options:
|
|
3380
|
+
options: St(N.val),
|
|
3395
3381
|
location: g
|
|
3396
3382
|
},
|
|
3397
3383
|
err: null
|
|
@@ -3399,7 +3385,7 @@ var bi = (
|
|
|
3399
3385
|
val: {
|
|
3400
3386
|
type: C.plural,
|
|
3401
3387
|
value: n,
|
|
3402
|
-
options:
|
|
3388
|
+
options: St(N.val),
|
|
3403
3389
|
offset: w,
|
|
3404
3390
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3405
3391
|
location: g
|
|
@@ -3408,10 +3394,10 @@ var bi = (
|
|
|
3408
3394
|
};
|
|
3409
3395
|
}
|
|
3410
3396
|
default:
|
|
3411
|
-
return this.error(
|
|
3397
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(s, u));
|
|
3412
3398
|
}
|
|
3413
3399
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3414
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3400
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3415
3401
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3416
3402
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3417
3403
|
var n = this.char();
|
|
@@ -3420,7 +3406,7 @@ var bi = (
|
|
|
3420
3406
|
this.bump();
|
|
3421
3407
|
var i = this.clonePosition();
|
|
3422
3408
|
if (!this.bumpUntil("'"))
|
|
3423
|
-
return this.error(
|
|
3409
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3424
3410
|
this.bump();
|
|
3425
3411
|
break;
|
|
3426
3412
|
}
|
|
@@ -3450,37 +3436,37 @@ var bi = (
|
|
|
3450
3436
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3451
3437
|
var n = [];
|
|
3452
3438
|
try {
|
|
3453
|
-
n =
|
|
3439
|
+
n = Zn(t);
|
|
3454
3440
|
} catch {
|
|
3455
|
-
return this.error(
|
|
3441
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3456
3442
|
}
|
|
3457
3443
|
return {
|
|
3458
3444
|
val: {
|
|
3459
3445
|
type: ne.number,
|
|
3460
3446
|
tokens: n,
|
|
3461
3447
|
location: r,
|
|
3462
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3448
|
+
parsedOptions: this.shouldParseSkeletons ? Jn(n) : {}
|
|
3463
3449
|
},
|
|
3464
3450
|
err: null
|
|
3465
3451
|
};
|
|
3466
3452
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3467
|
-
for (var o, s = !1, a = [],
|
|
3468
|
-
if (
|
|
3469
|
-
var
|
|
3453
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3454
|
+
if (l.length === 0) {
|
|
3455
|
+
var f = this.clonePosition();
|
|
3470
3456
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3471
|
-
var
|
|
3472
|
-
if (
|
|
3473
|
-
return
|
|
3474
|
-
h =
|
|
3457
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3458
|
+
if (c.err)
|
|
3459
|
+
return c;
|
|
3460
|
+
h = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3475
3461
|
} else
|
|
3476
3462
|
break;
|
|
3477
3463
|
}
|
|
3478
|
-
if (
|
|
3479
|
-
return this.error(r === "select" ?
|
|
3480
|
-
|
|
3464
|
+
if (u.has(l))
|
|
3465
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3466
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3481
3467
|
var m = this.clonePosition();
|
|
3482
3468
|
if (!this.bumpIf("{"))
|
|
3483
|
-
return this.error(r === "select" ?
|
|
3469
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3484
3470
|
var p = this.parseMessage(t + 1, r, n);
|
|
3485
3471
|
if (p.err)
|
|
3486
3472
|
return p;
|
|
@@ -3488,14 +3474,14 @@ var bi = (
|
|
|
3488
3474
|
if (b.err)
|
|
3489
3475
|
return b;
|
|
3490
3476
|
a.push([
|
|
3491
|
-
|
|
3477
|
+
l,
|
|
3492
3478
|
{
|
|
3493
3479
|
value: p.val,
|
|
3494
|
-
location:
|
|
3480
|
+
location: v(m, this.clonePosition())
|
|
3495
3481
|
}
|
|
3496
|
-
]),
|
|
3482
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3497
3483
|
}
|
|
3498
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3484
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3499
3485
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3500
3486
|
var n = 1, i = this.clonePosition();
|
|
3501
3487
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3506,8 +3492,8 @@ var bi = (
|
|
|
3506
3492
|
else
|
|
3507
3493
|
break;
|
|
3508
3494
|
}
|
|
3509
|
-
var
|
|
3510
|
-
return o ? (s *= n,
|
|
3495
|
+
var u = v(i, this.clonePosition());
|
|
3496
|
+
return o ? (s *= n, hi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3511
3497
|
}, e.prototype.offset = function() {
|
|
3512
3498
|
return this.position.offset;
|
|
3513
3499
|
}, e.prototype.isEOF = function() {
|
|
@@ -3522,7 +3508,7 @@ var bi = (
|
|
|
3522
3508
|
var t = this.position.offset;
|
|
3523
3509
|
if (t >= this.message.length)
|
|
3524
3510
|
throw Error("out of bound");
|
|
3525
|
-
var r =
|
|
3511
|
+
var r = cr(this.message, t);
|
|
3526
3512
|
if (r === void 0)
|
|
3527
3513
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3528
3514
|
return r;
|
|
@@ -3541,7 +3527,7 @@ var bi = (
|
|
|
3541
3527
|
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);
|
|
3542
3528
|
}
|
|
3543
3529
|
}, e.prototype.bumpIf = function(t) {
|
|
3544
|
-
if (
|
|
3530
|
+
if (wt(this.message, t, this.offset())) {
|
|
3545
3531
|
for (var r = 0; r < t.length; r++)
|
|
3546
3532
|
this.bump();
|
|
3547
3533
|
return !0;
|
|
@@ -3563,7 +3549,7 @@ var bi = (
|
|
|
3563
3549
|
break;
|
|
3564
3550
|
}
|
|
3565
3551
|
}, e.prototype.bumpSpace = function() {
|
|
3566
|
-
for (; !this.isEOF() &&
|
|
3552
|
+
for (; !this.isEOF() && pr(this.char()); )
|
|
3567
3553
|
this.bump();
|
|
3568
3554
|
}, e.prototype.peek = function() {
|
|
3569
3555
|
if (this.isEOF())
|
|
@@ -3573,38 +3559,38 @@ var bi = (
|
|
|
3573
3559
|
}, e;
|
|
3574
3560
|
}()
|
|
3575
3561
|
);
|
|
3576
|
-
function
|
|
3562
|
+
function Je(e) {
|
|
3577
3563
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3578
3564
|
}
|
|
3579
|
-
function
|
|
3580
|
-
return
|
|
3565
|
+
function mi(e) {
|
|
3566
|
+
return Je(e) || e === 47;
|
|
3581
3567
|
}
|
|
3582
|
-
function
|
|
3568
|
+
function bi(e) {
|
|
3583
3569
|
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;
|
|
3584
3570
|
}
|
|
3585
|
-
function
|
|
3571
|
+
function pr(e) {
|
|
3586
3572
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3587
3573
|
}
|
|
3588
|
-
function
|
|
3574
|
+
function gi(e) {
|
|
3589
3575
|
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;
|
|
3590
3576
|
}
|
|
3591
|
-
function
|
|
3577
|
+
function Ke(e) {
|
|
3592
3578
|
e.forEach(function(t) {
|
|
3593
|
-
if (delete t.location,
|
|
3579
|
+
if (delete t.location, ir(t) || or(t))
|
|
3594
3580
|
for (var r in t.options)
|
|
3595
|
-
delete t.options[r].location,
|
|
3581
|
+
delete t.options[r].location, Ke(t.options[r].value);
|
|
3596
3582
|
else
|
|
3597
|
-
|
|
3583
|
+
tr(t) && ar(t.style) || (rr(t) || nr(t)) && Ze(t.style) ? delete t.style.location : sr(t) && Ke(t.children);
|
|
3598
3584
|
});
|
|
3599
3585
|
}
|
|
3600
|
-
function
|
|
3586
|
+
function yi(e, t) {
|
|
3601
3587
|
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3602
|
-
var r = new
|
|
3588
|
+
var r = new pi(e, t).parse();
|
|
3603
3589
|
if (r.err) {
|
|
3604
|
-
var n = SyntaxError(
|
|
3590
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3605
3591
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3606
3592
|
}
|
|
3607
|
-
return t?.captureLocation ||
|
|
3593
|
+
return t?.captureLocation || Ke(r.val), r.val;
|
|
3608
3594
|
}
|
|
3609
3595
|
var ie;
|
|
3610
3596
|
(function(e) {
|
|
@@ -3622,7 +3608,7 @@ var Ae = (
|
|
|
3622
3608
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3623
3609
|
}, t;
|
|
3624
3610
|
}(Error)
|
|
3625
|
-
),
|
|
3611
|
+
), Ht = (
|
|
3626
3612
|
/** @class */
|
|
3627
3613
|
function(e) {
|
|
3628
3614
|
j(t, e);
|
|
@@ -3631,7 +3617,7 @@ var Ae = (
|
|
|
3631
3617
|
}
|
|
3632
3618
|
return t;
|
|
3633
3619
|
}(Ae)
|
|
3634
|
-
),
|
|
3620
|
+
), vi = (
|
|
3635
3621
|
/** @class */
|
|
3636
3622
|
function(e) {
|
|
3637
3623
|
j(t, e);
|
|
@@ -3640,7 +3626,7 @@ var Ae = (
|
|
|
3640
3626
|
}
|
|
3641
3627
|
return t;
|
|
3642
3628
|
}(Ae)
|
|
3643
|
-
),
|
|
3629
|
+
), _i = (
|
|
3644
3630
|
/** @class */
|
|
3645
3631
|
function(e) {
|
|
3646
3632
|
j(t, e);
|
|
@@ -3649,128 +3635,128 @@ var Ae = (
|
|
|
3649
3635
|
}
|
|
3650
3636
|
return t;
|
|
3651
3637
|
}(Ae)
|
|
3652
|
-
),
|
|
3638
|
+
), M;
|
|
3653
3639
|
(function(e) {
|
|
3654
3640
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3655
|
-
})(
|
|
3656
|
-
function
|
|
3641
|
+
})(M || (M = {}));
|
|
3642
|
+
function xi(e) {
|
|
3657
3643
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3658
3644
|
var n = t[t.length - 1];
|
|
3659
|
-
return !n || n.type !==
|
|
3645
|
+
return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
|
|
3660
3646
|
}, []);
|
|
3661
3647
|
}
|
|
3662
|
-
function
|
|
3648
|
+
function Ei(e) {
|
|
3663
3649
|
return typeof e == "function";
|
|
3664
3650
|
}
|
|
3665
3651
|
function _e(e, t, r, n, i, o, s) {
|
|
3666
|
-
if (e.length === 1 &&
|
|
3652
|
+
if (e.length === 1 && _t(e[0]))
|
|
3667
3653
|
return [
|
|
3668
3654
|
{
|
|
3669
|
-
type:
|
|
3655
|
+
type: M.literal,
|
|
3670
3656
|
value: e[0].value
|
|
3671
3657
|
}
|
|
3672
3658
|
];
|
|
3673
|
-
for (var a = [],
|
|
3674
|
-
var h = u
|
|
3675
|
-
if (
|
|
3659
|
+
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3660
|
+
var h = l[u];
|
|
3661
|
+
if (_t(h)) {
|
|
3676
3662
|
a.push({
|
|
3677
|
-
type:
|
|
3663
|
+
type: M.literal,
|
|
3678
3664
|
value: h.value
|
|
3679
3665
|
});
|
|
3680
3666
|
continue;
|
|
3681
3667
|
}
|
|
3682
|
-
if (
|
|
3668
|
+
if (Vn(h)) {
|
|
3683
3669
|
typeof o == "number" && a.push({
|
|
3684
|
-
type:
|
|
3670
|
+
type: M.literal,
|
|
3685
3671
|
value: r.getNumberFormat(t).format(o)
|
|
3686
3672
|
});
|
|
3687
3673
|
continue;
|
|
3688
3674
|
}
|
|
3689
|
-
var
|
|
3690
|
-
if (!(i &&
|
|
3691
|
-
throw new
|
|
3692
|
-
var
|
|
3693
|
-
if (
|
|
3694
|
-
(!
|
|
3695
|
-
type: typeof
|
|
3696
|
-
value:
|
|
3675
|
+
var f = h.value;
|
|
3676
|
+
if (!(i && f in i))
|
|
3677
|
+
throw new _i(f, s);
|
|
3678
|
+
var c = i[f];
|
|
3679
|
+
if (jn(h)) {
|
|
3680
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3681
|
+
type: typeof c == "string" ? M.literal : M.object,
|
|
3682
|
+
value: c
|
|
3697
3683
|
});
|
|
3698
3684
|
continue;
|
|
3699
3685
|
}
|
|
3700
|
-
if (
|
|
3701
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3686
|
+
if (rr(h)) {
|
|
3687
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ze(h.style) ? h.style.parsedOptions : void 0;
|
|
3702
3688
|
a.push({
|
|
3703
|
-
type:
|
|
3704
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3689
|
+
type: M.literal,
|
|
3690
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3705
3691
|
});
|
|
3706
3692
|
continue;
|
|
3707
3693
|
}
|
|
3708
|
-
if (
|
|
3709
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3694
|
+
if (nr(h)) {
|
|
3695
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ze(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3710
3696
|
a.push({
|
|
3711
|
-
type:
|
|
3712
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3697
|
+
type: M.literal,
|
|
3698
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3713
3699
|
});
|
|
3714
3700
|
continue;
|
|
3715
3701
|
}
|
|
3716
|
-
if (
|
|
3717
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3718
|
-
m && m.scale && (
|
|
3719
|
-
type:
|
|
3720
|
-
value: r.getNumberFormat(t, m).format(
|
|
3702
|
+
if (tr(h)) {
|
|
3703
|
+
var m = typeof h.style == "string" ? n.number[h.style] : ar(h.style) ? h.style.parsedOptions : void 0;
|
|
3704
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3705
|
+
type: M.literal,
|
|
3706
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3721
3707
|
});
|
|
3722
3708
|
continue;
|
|
3723
3709
|
}
|
|
3724
|
-
if (
|
|
3710
|
+
if (sr(h)) {
|
|
3725
3711
|
var p = h.children, b = h.value, T = i[b];
|
|
3726
|
-
if (!
|
|
3727
|
-
throw new
|
|
3712
|
+
if (!Ei(T))
|
|
3713
|
+
throw new vi(b, "function", s);
|
|
3728
3714
|
var L = _e(p, t, r, n, i, o), P = T(L.map(function(w) {
|
|
3729
3715
|
return w.value;
|
|
3730
3716
|
}));
|
|
3731
3717
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
3732
3718
|
return {
|
|
3733
|
-
type: typeof w == "string" ?
|
|
3719
|
+
type: typeof w == "string" ? M.literal : M.object,
|
|
3734
3720
|
value: w
|
|
3735
3721
|
};
|
|
3736
3722
|
}));
|
|
3737
3723
|
}
|
|
3738
|
-
if (
|
|
3739
|
-
var A = h.options[
|
|
3724
|
+
if (ir(h)) {
|
|
3725
|
+
var A = h.options[c] || h.options.other;
|
|
3740
3726
|
if (!A)
|
|
3741
|
-
throw new
|
|
3727
|
+
throw new Ht(h.value, c, Object.keys(h.options), s);
|
|
3742
3728
|
a.push.apply(a, _e(A.value, t, r, n, i));
|
|
3743
3729
|
continue;
|
|
3744
3730
|
}
|
|
3745
|
-
if (
|
|
3746
|
-
var A = h.options["=".concat(
|
|
3731
|
+
if (or(h)) {
|
|
3732
|
+
var A = h.options["=".concat(c)];
|
|
3747
3733
|
if (!A) {
|
|
3748
3734
|
if (!Intl.PluralRules)
|
|
3749
3735
|
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3750
3736
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3751
3737
|
`, ie.MISSING_INTL_API, s);
|
|
3752
|
-
var
|
|
3753
|
-
A = h.options[
|
|
3738
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3739
|
+
A = h.options[O] || h.options.other;
|
|
3754
3740
|
}
|
|
3755
3741
|
if (!A)
|
|
3756
|
-
throw new
|
|
3757
|
-
a.push.apply(a, _e(A.value, t, r, n, i,
|
|
3742
|
+
throw new Ht(h.value, c, Object.keys(h.options), s);
|
|
3743
|
+
a.push.apply(a, _e(A.value, t, r, n, i, c - (h.offset || 0)));
|
|
3758
3744
|
continue;
|
|
3759
3745
|
}
|
|
3760
3746
|
}
|
|
3761
|
-
return
|
|
3747
|
+
return xi(a);
|
|
3762
3748
|
}
|
|
3763
|
-
function
|
|
3749
|
+
function Ci(e, t) {
|
|
3764
3750
|
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3765
3751
|
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3766
3752
|
}, {})) : e;
|
|
3767
3753
|
}
|
|
3768
|
-
function
|
|
3754
|
+
function wi(e, t) {
|
|
3769
3755
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3770
|
-
return r[n] =
|
|
3756
|
+
return r[n] = Ci(e[n], t[n]), r;
|
|
3771
3757
|
}, _({}, e)) : e;
|
|
3772
3758
|
}
|
|
3773
|
-
function
|
|
3759
|
+
function $e(e) {
|
|
3774
3760
|
return {
|
|
3775
3761
|
create: function() {
|
|
3776
3762
|
return {
|
|
@@ -3784,39 +3770,39 @@ function ke(e) {
|
|
|
3784
3770
|
}
|
|
3785
3771
|
};
|
|
3786
3772
|
}
|
|
3787
|
-
function
|
|
3773
|
+
function Si(e) {
|
|
3788
3774
|
return e === void 0 && (e = {
|
|
3789
3775
|
number: {},
|
|
3790
3776
|
dateTime: {},
|
|
3791
3777
|
pluralRules: {}
|
|
3792
3778
|
}), {
|
|
3793
|
-
getNumberFormat:
|
|
3779
|
+
getNumberFormat: Re(function() {
|
|
3794
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3795
3781
|
r[n] = arguments[n];
|
|
3796
3782
|
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3797
3783
|
}, {
|
|
3798
|
-
cache:
|
|
3799
|
-
strategy:
|
|
3784
|
+
cache: $e(e.number),
|
|
3785
|
+
strategy: Ue.variadic
|
|
3800
3786
|
}),
|
|
3801
|
-
getDateTimeFormat:
|
|
3787
|
+
getDateTimeFormat: Re(function() {
|
|
3802
3788
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3803
3789
|
r[n] = arguments[n];
|
|
3804
3790
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3805
3791
|
}, {
|
|
3806
|
-
cache:
|
|
3807
|
-
strategy:
|
|
3792
|
+
cache: $e(e.dateTime),
|
|
3793
|
+
strategy: Ue.variadic
|
|
3808
3794
|
}),
|
|
3809
|
-
getPluralRules:
|
|
3795
|
+
getPluralRules: Re(function() {
|
|
3810
3796
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3811
3797
|
r[n] = arguments[n];
|
|
3812
3798
|
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
|
|
3813
3799
|
}, {
|
|
3814
|
-
cache:
|
|
3815
|
-
strategy:
|
|
3800
|
+
cache: $e(e.pluralRules),
|
|
3801
|
+
strategy: Ue.variadic
|
|
3816
3802
|
})
|
|
3817
3803
|
};
|
|
3818
3804
|
}
|
|
3819
|
-
var
|
|
3805
|
+
var Ti = (
|
|
3820
3806
|
/** @class */
|
|
3821
3807
|
function() {
|
|
3822
3808
|
function e(t, r, n, i) {
|
|
@@ -3826,20 +3812,20 @@ var Ai = (
|
|
|
3826
3812
|
number: {},
|
|
3827
3813
|
dateTime: {},
|
|
3828
3814
|
pluralRules: {}
|
|
3829
|
-
}, this.format = function(
|
|
3830
|
-
var
|
|
3831
|
-
if (
|
|
3832
|
-
return
|
|
3833
|
-
var h =
|
|
3834
|
-
return !
|
|
3815
|
+
}, this.format = function(u) {
|
|
3816
|
+
var l = o.formatToParts(u);
|
|
3817
|
+
if (l.length === 1)
|
|
3818
|
+
return l[0].value;
|
|
3819
|
+
var h = l.reduce(function(f, c) {
|
|
3820
|
+
return !f.length || c.type !== M.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3835
3821
|
}, []);
|
|
3836
3822
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3837
|
-
}, this.formatToParts = function(
|
|
3838
|
-
return _e(o.ast, o.locales, o.formatters, o.formats,
|
|
3823
|
+
}, this.formatToParts = function(u) {
|
|
3824
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3839
3825
|
}, this.resolvedOptions = function() {
|
|
3840
|
-
var
|
|
3826
|
+
var u;
|
|
3841
3827
|
return {
|
|
3842
|
-
locale: ((
|
|
3828
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3843
3829
|
};
|
|
3844
3830
|
}, this.getAst = function() {
|
|
3845
3831
|
return o.ast;
|
|
@@ -3848,13 +3834,13 @@ var Ai = (
|
|
|
3848
3834
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3849
3835
|
var s = i || {};
|
|
3850
3836
|
s.formatters;
|
|
3851
|
-
var a =
|
|
3837
|
+
var a = nn(s, ["formatters"]);
|
|
3852
3838
|
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
3853
3839
|
} else
|
|
3854
3840
|
this.ast = t;
|
|
3855
3841
|
if (!Array.isArray(this.ast))
|
|
3856
3842
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3857
|
-
this.formats =
|
|
3843
|
+
this.formats = wi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
|
|
3858
3844
|
}
|
|
3859
3845
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3860
3846
|
get: function() {
|
|
@@ -3867,7 +3853,7 @@ var Ai = (
|
|
|
3867
3853
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3868
3854
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3869
3855
|
}
|
|
3870
|
-
}, e.__parse =
|
|
3856
|
+
}, e.__parse = yi, e.formats = {
|
|
3871
3857
|
number: {
|
|
3872
3858
|
integer: {
|
|
3873
3859
|
maximumFractionDigits: 0
|
|
@@ -3928,7 +3914,7 @@ var Ai = (
|
|
|
3928
3914
|
}, e;
|
|
3929
3915
|
}()
|
|
3930
3916
|
);
|
|
3931
|
-
function
|
|
3917
|
+
function Hi(e, t) {
|
|
3932
3918
|
if (t == null)
|
|
3933
3919
|
return;
|
|
3934
3920
|
if (t in e)
|
|
@@ -3949,92 +3935,92 @@ function Ii(e, t) {
|
|
|
3949
3935
|
n = void 0;
|
|
3950
3936
|
return n;
|
|
3951
3937
|
}
|
|
3952
|
-
const V = {},
|
|
3938
|
+
const V = {}, Ai = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), mr = (e, t) => {
|
|
3953
3939
|
if (t == null)
|
|
3954
3940
|
return;
|
|
3955
3941
|
if (t in V && e in V[t])
|
|
3956
3942
|
return V[t][e];
|
|
3957
3943
|
const r = Ie(t);
|
|
3958
3944
|
for (let n = 0; n < r.length; n++) {
|
|
3959
|
-
const i = r[n], o =
|
|
3945
|
+
const i = r[n], o = Bi(i, e);
|
|
3960
3946
|
if (o)
|
|
3961
|
-
return
|
|
3947
|
+
return Ai(e, t, o);
|
|
3962
3948
|
}
|
|
3963
3949
|
};
|
|
3964
|
-
let
|
|
3950
|
+
let ot;
|
|
3965
3951
|
const ae = He({});
|
|
3966
|
-
function
|
|
3967
|
-
return
|
|
3952
|
+
function Ii(e) {
|
|
3953
|
+
return ot[e] || null;
|
|
3968
3954
|
}
|
|
3969
|
-
function
|
|
3970
|
-
return e in
|
|
3955
|
+
function br(e) {
|
|
3956
|
+
return e in ot;
|
|
3971
3957
|
}
|
|
3972
|
-
function
|
|
3973
|
-
if (!
|
|
3958
|
+
function Bi(e, t) {
|
|
3959
|
+
if (!br(e))
|
|
3974
3960
|
return null;
|
|
3975
|
-
const r =
|
|
3976
|
-
return
|
|
3961
|
+
const r = Ii(e);
|
|
3962
|
+
return Hi(r, t);
|
|
3977
3963
|
}
|
|
3978
|
-
function
|
|
3964
|
+
function Pi(e) {
|
|
3979
3965
|
if (e == null)
|
|
3980
3966
|
return;
|
|
3981
3967
|
const t = Ie(e);
|
|
3982
3968
|
for (let r = 0; r < t.length; r++) {
|
|
3983
3969
|
const n = t[r];
|
|
3984
|
-
if (
|
|
3970
|
+
if (br(n))
|
|
3985
3971
|
return n;
|
|
3986
3972
|
}
|
|
3987
3973
|
}
|
|
3988
|
-
function
|
|
3989
|
-
delete V[e], ae.update((r) => (r[e] =
|
|
3974
|
+
function gr(e, ...t) {
|
|
3975
|
+
delete V[e], ae.update((r) => (r[e] = Nn.all([r[e] || {}, ...t]), r));
|
|
3990
3976
|
}
|
|
3991
3977
|
se(
|
|
3992
3978
|
[ae],
|
|
3993
3979
|
([e]) => Object.keys(e)
|
|
3994
3980
|
);
|
|
3995
|
-
ae.subscribe((e) =>
|
|
3981
|
+
ae.subscribe((e) => ot = e);
|
|
3996
3982
|
const xe = {};
|
|
3997
|
-
function
|
|
3983
|
+
function Oi(e, t) {
|
|
3998
3984
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3999
3985
|
}
|
|
4000
|
-
function
|
|
3986
|
+
function yr(e) {
|
|
4001
3987
|
return xe[e];
|
|
4002
3988
|
}
|
|
4003
|
-
function
|
|
3989
|
+
function Mi(e) {
|
|
4004
3990
|
return Ie(e).map((t) => {
|
|
4005
|
-
const r =
|
|
3991
|
+
const r = yr(t);
|
|
4006
3992
|
return [t, r ? [...r] : []];
|
|
4007
3993
|
}).filter(([, t]) => t.length > 0);
|
|
4008
3994
|
}
|
|
4009
|
-
function
|
|
3995
|
+
function et(e) {
|
|
4010
3996
|
return e == null ? !1 : Ie(e).some(
|
|
4011
3997
|
(t) => {
|
|
4012
3998
|
var r;
|
|
4013
|
-
return (r =
|
|
3999
|
+
return (r = yr(t)) == null ? void 0 : r.size;
|
|
4014
4000
|
}
|
|
4015
4001
|
);
|
|
4016
4002
|
}
|
|
4017
|
-
function
|
|
4003
|
+
function Li(e, t) {
|
|
4018
4004
|
return Promise.all(
|
|
4019
|
-
t.map((n) => (
|
|
4020
|
-
).then((n) =>
|
|
4021
|
-
}
|
|
4022
|
-
const
|
|
4023
|
-
function
|
|
4024
|
-
if (!
|
|
4025
|
-
return e in
|
|
4026
|
-
const t =
|
|
4027
|
-
return
|
|
4005
|
+
t.map((n) => (Oi(e, n), n().then((i) => i.default || i)))
|
|
4006
|
+
).then((n) => gr(e, ...n));
|
|
4007
|
+
}
|
|
4008
|
+
const le = {};
|
|
4009
|
+
function vr(e) {
|
|
4010
|
+
if (!et(e))
|
|
4011
|
+
return e in le ? le[e] : Promise.resolve();
|
|
4012
|
+
const t = Mi(e);
|
|
4013
|
+
return le[e] = Promise.all(
|
|
4028
4014
|
t.map(
|
|
4029
|
-
([r, n]) =>
|
|
4015
|
+
([r, n]) => Li(r, n)
|
|
4030
4016
|
)
|
|
4031
4017
|
).then(() => {
|
|
4032
|
-
if (
|
|
4033
|
-
return
|
|
4034
|
-
delete
|
|
4035
|
-
}),
|
|
4018
|
+
if (et(e))
|
|
4019
|
+
return vr(e);
|
|
4020
|
+
delete le[e];
|
|
4021
|
+
}), le[e];
|
|
4036
4022
|
}
|
|
4037
|
-
const
|
|
4023
|
+
const Ni = {
|
|
4038
4024
|
number: {
|
|
4039
4025
|
scientific: { notation: "scientific" },
|
|
4040
4026
|
engineering: { notation: "engineering" },
|
|
@@ -4063,57 +4049,57 @@ const Ui = {
|
|
|
4063
4049
|
timeZoneName: "short"
|
|
4064
4050
|
}
|
|
4065
4051
|
}
|
|
4066
|
-
},
|
|
4052
|
+
}, Ri = {
|
|
4067
4053
|
fallbackLocale: null,
|
|
4068
4054
|
loadingDelay: 200,
|
|
4069
|
-
formats:
|
|
4055
|
+
formats: Ni,
|
|
4070
4056
|
warnOnMissingMessages: !0,
|
|
4071
4057
|
handleMissingMessage: void 0,
|
|
4072
4058
|
ignoreTag: !0
|
|
4073
|
-
},
|
|
4059
|
+
}, Ui = Ri;
|
|
4074
4060
|
function oe() {
|
|
4075
|
-
return
|
|
4076
|
-
}
|
|
4077
|
-
const
|
|
4078
|
-
var
|
|
4079
|
-
for (var r in t
|
|
4080
|
-
|
|
4081
|
-
if (
|
|
4082
|
-
for (var r of
|
|
4083
|
-
|
|
4061
|
+
return Ui;
|
|
4062
|
+
}
|
|
4063
|
+
const ke = He(!1);
|
|
4064
|
+
var Di = Object.defineProperty, $i = Object.defineProperties, ki = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ji = (e, t) => {
|
|
4065
|
+
for (var r in t)
|
|
4066
|
+
Gi.call(t, r) && It(e, r, t[r]);
|
|
4067
|
+
if (At)
|
|
4068
|
+
for (var r of At(t))
|
|
4069
|
+
Fi.call(t, r) && It(e, r, t[r]);
|
|
4084
4070
|
return e;
|
|
4085
|
-
},
|
|
4086
|
-
let
|
|
4071
|
+
}, Vi = (e, t) => $i(e, ki(t));
|
|
4072
|
+
let tt;
|
|
4087
4073
|
const Ce = He(null);
|
|
4088
|
-
function
|
|
4074
|
+
function Bt(e) {
|
|
4089
4075
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4090
4076
|
}
|
|
4091
4077
|
function Ie(e, t = oe().fallbackLocale) {
|
|
4092
|
-
const r =
|
|
4093
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4078
|
+
const r = Bt(e);
|
|
4079
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
|
|
4094
4080
|
}
|
|
4095
4081
|
function z() {
|
|
4096
|
-
return
|
|
4082
|
+
return tt ?? void 0;
|
|
4097
4083
|
}
|
|
4098
4084
|
Ce.subscribe((e) => {
|
|
4099
|
-
|
|
4085
|
+
tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4100
4086
|
});
|
|
4101
|
-
const
|
|
4102
|
-
if (e &&
|
|
4087
|
+
const Wi = (e) => {
|
|
4088
|
+
if (e && Pi(e) && et(e)) {
|
|
4103
4089
|
const { loadingDelay: t } = oe();
|
|
4104
4090
|
let r;
|
|
4105
4091
|
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
4106
|
-
() =>
|
|
4092
|
+
() => ke.set(!0),
|
|
4107
4093
|
t
|
|
4108
|
-
) :
|
|
4094
|
+
) : ke.set(!0), vr(e).then(() => {
|
|
4109
4095
|
Ce.set(e);
|
|
4110
4096
|
}).finally(() => {
|
|
4111
|
-
clearTimeout(r),
|
|
4097
|
+
clearTimeout(r), ke.set(!1);
|
|
4112
4098
|
});
|
|
4113
4099
|
}
|
|
4114
4100
|
return Ce.set(e);
|
|
4115
|
-
}, W =
|
|
4116
|
-
set:
|
|
4101
|
+
}, W = Vi(ji({}, Ce), {
|
|
4102
|
+
set: Wi
|
|
4117
4103
|
}), Be = (e) => {
|
|
4118
4104
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4119
4105
|
return (n) => {
|
|
@@ -4121,20 +4107,20 @@ const zi = (e) => {
|
|
|
4121
4107
|
return i in t ? t[i] : t[i] = e(n);
|
|
4122
4108
|
};
|
|
4123
4109
|
};
|
|
4124
|
-
var
|
|
4110
|
+
var Xi = Object.defineProperty, we = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
|
|
4125
4111
|
for (var r in t || (t = {}))
|
|
4126
|
-
|
|
4112
|
+
_r.call(t, r) && Pt(e, r, t[r]);
|
|
4127
4113
|
if (we)
|
|
4128
4114
|
for (var r of we(t))
|
|
4129
|
-
|
|
4115
|
+
xr.call(t, r) && Pt(e, r, t[r]);
|
|
4130
4116
|
return e;
|
|
4131
|
-
},
|
|
4117
|
+
}, ue = (e, t) => {
|
|
4132
4118
|
var r = {};
|
|
4133
4119
|
for (var n in e)
|
|
4134
|
-
|
|
4120
|
+
_r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4135
4121
|
if (e != null && we)
|
|
4136
4122
|
for (var n of we(e))
|
|
4137
|
-
t.indexOf(n) < 0 &&
|
|
4123
|
+
t.indexOf(n) < 0 && xr.call(e, n) && (r[n] = e[n]);
|
|
4138
4124
|
return r;
|
|
4139
4125
|
};
|
|
4140
4126
|
const de = (e, t) => {
|
|
@@ -4142,113 +4128,113 @@ const de = (e, t) => {
|
|
|
4142
4128
|
if (e in r && t in r[e])
|
|
4143
4129
|
return r[e][t];
|
|
4144
4130
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4145
|
-
},
|
|
4131
|
+
}, zi = Be(
|
|
4146
4132
|
(e) => {
|
|
4147
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4133
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4148
4134
|
if (r == null)
|
|
4149
4135
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4150
4136
|
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4151
4137
|
}
|
|
4152
|
-
),
|
|
4138
|
+
), Zi = Be(
|
|
4153
4139
|
(e) => {
|
|
4154
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4140
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4155
4141
|
if (r == null)
|
|
4156
4142
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4157
4143
|
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4158
4144
|
}
|
|
4159
|
-
),
|
|
4145
|
+
), Qi = Be(
|
|
4160
4146
|
(e) => {
|
|
4161
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4147
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4162
4148
|
if (r == null)
|
|
4163
4149
|
throw new Error(
|
|
4164
4150
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4165
4151
|
);
|
|
4166
4152
|
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4167
4153
|
}
|
|
4168
|
-
),
|
|
4154
|
+
), Yi = (e = {}) => {
|
|
4169
4155
|
var t = e, {
|
|
4170
4156
|
locale: r = z()
|
|
4171
|
-
} = t, n =
|
|
4157
|
+
} = t, n = ue(t, [
|
|
4172
4158
|
"locale"
|
|
4173
4159
|
]);
|
|
4174
|
-
return
|
|
4175
|
-
},
|
|
4160
|
+
return zi(st({ locale: r }, n));
|
|
4161
|
+
}, qi = (e = {}) => {
|
|
4176
4162
|
var t = e, {
|
|
4177
4163
|
locale: r = z()
|
|
4178
|
-
} = t, n =
|
|
4164
|
+
} = t, n = ue(t, [
|
|
4179
4165
|
"locale"
|
|
4180
4166
|
]);
|
|
4181
|
-
return
|
|
4182
|
-
},
|
|
4167
|
+
return Zi(st({ locale: r }, n));
|
|
4168
|
+
}, Ji = (e = {}) => {
|
|
4183
4169
|
var t = e, {
|
|
4184
4170
|
locale: r = z()
|
|
4185
|
-
} = t, n =
|
|
4171
|
+
} = t, n = ue(t, [
|
|
4186
4172
|
"locale"
|
|
4187
4173
|
]);
|
|
4188
|
-
return
|
|
4189
|
-
},
|
|
4174
|
+
return Qi(st({ locale: r }, n));
|
|
4175
|
+
}, Ki = Be(
|
|
4190
4176
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4191
|
-
(e, t = z()) => new
|
|
4177
|
+
(e, t = z()) => new Ti(e, t, oe().formats, {
|
|
4192
4178
|
ignoreTag: oe().ignoreTag
|
|
4193
4179
|
})
|
|
4194
|
-
),
|
|
4180
|
+
), eo = (e, t = {}) => {
|
|
4195
4181
|
var r, n, i, o;
|
|
4196
4182
|
let s = t;
|
|
4197
4183
|
typeof e == "object" && (s = e, e = s.id);
|
|
4198
4184
|
const {
|
|
4199
4185
|
values: a,
|
|
4200
|
-
locale:
|
|
4201
|
-
default:
|
|
4186
|
+
locale: u = z(),
|
|
4187
|
+
default: l
|
|
4202
4188
|
} = s;
|
|
4203
|
-
if (
|
|
4189
|
+
if (u == null)
|
|
4204
4190
|
throw new Error(
|
|
4205
4191
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4206
4192
|
);
|
|
4207
|
-
let h =
|
|
4193
|
+
let h = mr(e, u);
|
|
4208
4194
|
if (!h)
|
|
4209
|
-
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
4195
|
+
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4210
4196
|
else if (typeof h != "string")
|
|
4211
4197
|
return console.warn(
|
|
4212
4198
|
`[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.`
|
|
4213
4199
|
), h;
|
|
4214
4200
|
if (!a)
|
|
4215
4201
|
return h;
|
|
4216
|
-
let
|
|
4202
|
+
let f = h;
|
|
4217
4203
|
try {
|
|
4218
|
-
|
|
4219
|
-
} catch (
|
|
4220
|
-
|
|
4204
|
+
f = Ki(h, u).format(a);
|
|
4205
|
+
} catch (c) {
|
|
4206
|
+
c instanceof Error && console.warn(
|
|
4221
4207
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4222
|
-
|
|
4208
|
+
c.message
|
|
4223
4209
|
);
|
|
4224
4210
|
}
|
|
4225
|
-
return
|
|
4226
|
-
},
|
|
4227
|
-
se([W, ae], () =>
|
|
4211
|
+
return f;
|
|
4212
|
+
}, to = (e, t) => Ji(t).format(e), ro = (e, t) => qi(t).format(e), no = (e, t) => Yi(t).format(e), io = (e, t = z()) => mr(e, t);
|
|
4213
|
+
se([W, ae], () => eo);
|
|
4214
|
+
se([W], () => to);
|
|
4215
|
+
se([W], () => ro);
|
|
4228
4216
|
se([W], () => no);
|
|
4229
|
-
se([W], () => io);
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
const Lt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4234
|
-
function ao({ withLocale: e, translations: t }) {
|
|
4217
|
+
se([W, ae], () => io);
|
|
4218
|
+
window.emWidgets = { topic: yn };
|
|
4219
|
+
const Ot = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4220
|
+
function oo({ withLocale: e, translations: t }) {
|
|
4235
4221
|
W.subscribe((r) => {
|
|
4236
4222
|
r == null && (ae.set(t), W.set(e));
|
|
4237
4223
|
});
|
|
4238
4224
|
}
|
|
4239
|
-
function
|
|
4240
|
-
|
|
4225
|
+
function so(e, t) {
|
|
4226
|
+
gr(e, t);
|
|
4241
4227
|
}
|
|
4242
|
-
function
|
|
4228
|
+
function ao(e) {
|
|
4243
4229
|
W.set(e);
|
|
4244
4230
|
}
|
|
4245
|
-
function
|
|
4231
|
+
function uo(e, t) {
|
|
4246
4232
|
if (e) {
|
|
4247
4233
|
const r = document.createElement("style");
|
|
4248
4234
|
r.innerHTML = t, e.appendChild(r);
|
|
4249
4235
|
}
|
|
4250
4236
|
}
|
|
4251
|
-
function
|
|
4237
|
+
function lo(e, t) {
|
|
4252
4238
|
const r = new URL(t);
|
|
4253
4239
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4254
4240
|
const i = document.createElement("style");
|
|
@@ -4257,7 +4243,7 @@ function co(e, t) {
|
|
|
4257
4243
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4258
4244
|
});
|
|
4259
4245
|
}
|
|
4260
|
-
function
|
|
4246
|
+
function ho(e, t, r) {
|
|
4261
4247
|
if (window.emMessageBus) {
|
|
4262
4248
|
const n = document.createElement("style");
|
|
4263
4249
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4265,25 +4251,25 @@ function fo(e, t, r) {
|
|
|
4265
4251
|
});
|
|
4266
4252
|
}
|
|
4267
4253
|
}
|
|
4268
|
-
function
|
|
4269
|
-
|
|
4254
|
+
function fo(e) {
|
|
4255
|
+
Rr(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}');
|
|
4270
4256
|
}
|
|
4271
|
-
function
|
|
4257
|
+
function Mt(e, t, r) {
|
|
4272
4258
|
const n = e.slice();
|
|
4273
4259
|
return n[43] = t[r], n[45] = r, n;
|
|
4274
4260
|
}
|
|
4275
|
-
function
|
|
4276
|
-
let t, r, n, i, o, s, a,
|
|
4261
|
+
function co(e) {
|
|
4262
|
+
let t, r, n, i, o, s, a, u, l, h, f, c, m, p = (
|
|
4277
4263
|
/*vendors*/
|
|
4278
|
-
e[6].length > 0 &&
|
|
4264
|
+
e[6].length > 0 && Lt(e)
|
|
4279
4265
|
);
|
|
4280
4266
|
return {
|
|
4281
4267
|
c() {
|
|
4282
|
-
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 = G(), s = S("div"), a = S("ul"),
|
|
4268
|
+
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 = G(), s = S("div"), a = S("ul"), u = S("li"), u.innerHTML = '<a href="#CarouselNav">Close Subs</a>', l = G(), p && p.c(), h = G(), f = S("div"), f.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>', E(i, "class", "CarouselLeftArrow"), E(u, "class", "TouchOnly"), E(a, "id", "CarouselNav"), E(a, "class", "CarouselItems"), E(s, "class", "CarouselNavWrap"), E(f, "class", "CarouselRightArrow"), E(n, "class", "CarouselContainer CarouselContainerMobile"), E(r, "class", "CarouselWrapper " + /*isMobile*/
|
|
4283
4269
|
(e[10] ? "CarouselWrapperMobile" : "")), E(t, "class", "CasinoVendorsContainer"), E(t, "part", "CasinoVendorsContainer");
|
|
4284
4270
|
},
|
|
4285
4271
|
m(b, T) {
|
|
4286
|
-
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a,
|
|
4272
|
+
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), p && p.m(a, null), e[28](a), e[29](s), H(n, h), H(n, f), e[30](r), c || (m = [
|
|
4287
4273
|
J(
|
|
4288
4274
|
i,
|
|
4289
4275
|
"click",
|
|
@@ -4297,29 +4283,29 @@ function mo(e) {
|
|
|
4297
4283
|
e[15]
|
|
4298
4284
|
),
|
|
4299
4285
|
J(
|
|
4300
|
-
|
|
4286
|
+
f,
|
|
4301
4287
|
"click",
|
|
4302
4288
|
/*scrollRight*/
|
|
4303
4289
|
e[13]
|
|
4304
4290
|
),
|
|
4305
4291
|
J(
|
|
4306
|
-
|
|
4292
|
+
f,
|
|
4307
4293
|
"keydown",
|
|
4308
4294
|
/*onScrollRightKeydown*/
|
|
4309
4295
|
e[14]
|
|
4310
4296
|
)
|
|
4311
|
-
],
|
|
4297
|
+
], c = !0);
|
|
4312
4298
|
},
|
|
4313
4299
|
p(b, T) {
|
|
4314
4300
|
/*vendors*/
|
|
4315
|
-
b[6].length > 0 ? p ? p.p(b, T) : (p =
|
|
4301
|
+
b[6].length > 0 ? p ? p.p(b, T) : (p = Lt(b), p.c(), p.m(a, null)) : p && (p.d(1), p = null);
|
|
4316
4302
|
},
|
|
4317
4303
|
d(b) {
|
|
4318
|
-
b && I(t), p && p.d(), e[28](null), e[29](null), e[30](null),
|
|
4304
|
+
b && I(t), p && p.d(), e[28](null), e[29](null), e[30](null), c = !1, X(m);
|
|
4319
4305
|
}
|
|
4320
4306
|
};
|
|
4321
4307
|
}
|
|
4322
|
-
function
|
|
4308
|
+
function po(e) {
|
|
4323
4309
|
let t;
|
|
4324
4310
|
return {
|
|
4325
4311
|
c() {
|
|
@@ -4334,7 +4320,7 @@ function bo(e) {
|
|
|
4334
4320
|
}
|
|
4335
4321
|
};
|
|
4336
4322
|
}
|
|
4337
|
-
function
|
|
4323
|
+
function mo(e) {
|
|
4338
4324
|
let t;
|
|
4339
4325
|
return {
|
|
4340
4326
|
c() {
|
|
@@ -4349,8 +4335,8 @@ function go(e) {
|
|
|
4349
4335
|
}
|
|
4350
4336
|
};
|
|
4351
4337
|
}
|
|
4352
|
-
function
|
|
4353
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
4338
|
+
function Lt(e) {
|
|
4339
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ft(
|
|
4354
4340
|
/*vendors*/
|
|
4355
4341
|
e[6]
|
|
4356
4342
|
);
|
|
@@ -4359,26 +4345,26 @@ function Rt(e) {
|
|
|
4359
4345
|
s[43].id
|
|
4360
4346
|
);
|
|
4361
4347
|
for (let s = 0; s < i.length; s += 1) {
|
|
4362
|
-
let a =
|
|
4363
|
-
r.set(
|
|
4348
|
+
let a = Mt(e, i, s), u = o(a);
|
|
4349
|
+
r.set(u, t[s] = Gt(u, a));
|
|
4364
4350
|
}
|
|
4365
4351
|
return {
|
|
4366
4352
|
c() {
|
|
4367
4353
|
for (let s = 0; s < t.length; s += 1)
|
|
4368
4354
|
t[s].c();
|
|
4369
|
-
n =
|
|
4355
|
+
n = rt();
|
|
4370
4356
|
},
|
|
4371
4357
|
m(s, a) {
|
|
4372
|
-
for (let
|
|
4373
|
-
t[
|
|
4358
|
+
for (let u = 0; u < t.length; u += 1)
|
|
4359
|
+
t[u] && t[u].m(s, a);
|
|
4374
4360
|
B(s, n, a);
|
|
4375
4361
|
},
|
|
4376
4362
|
p(s, a) {
|
|
4377
4363
|
a[0] & /*activevendor, vendors, handleClick, onCarouselItemKeydown, getButtonClasses, getGamesTotal, showvendorgames, showvendorname, showvendoricon, isMobile*/
|
|
4378
|
-
461903 && (i =
|
|
4364
|
+
461903 && (i = ft(
|
|
4379
4365
|
/*vendors*/
|
|
4380
4366
|
s[6]
|
|
4381
|
-
), t =
|
|
4367
|
+
), t = Qr(t, a, o, 1, s, i, r, n.parentNode, Zr, Gt, n, Mt));
|
|
4382
4368
|
},
|
|
4383
4369
|
d(s) {
|
|
4384
4370
|
s && I(n);
|
|
@@ -4387,18 +4373,18 @@ function Rt(e) {
|
|
|
4387
4373
|
}
|
|
4388
4374
|
};
|
|
4389
4375
|
}
|
|
4390
|
-
function
|
|
4376
|
+
function Nt(e) {
|
|
4391
4377
|
let t;
|
|
4392
4378
|
function r(o, s) {
|
|
4393
4379
|
return (
|
|
4394
4380
|
/*isMobile*/
|
|
4395
|
-
o[10] ?
|
|
4381
|
+
o[10] ? go : bo
|
|
4396
4382
|
);
|
|
4397
4383
|
}
|
|
4398
4384
|
let i = r(e)(e);
|
|
4399
4385
|
return {
|
|
4400
4386
|
c() {
|
|
4401
|
-
i.c(), t =
|
|
4387
|
+
i.c(), t = rt();
|
|
4402
4388
|
},
|
|
4403
4389
|
m(o, s) {
|
|
4404
4390
|
i.m(o, s), B(o, t, s);
|
|
@@ -4411,37 +4397,37 @@ function Ut(e) {
|
|
|
4411
4397
|
}
|
|
4412
4398
|
};
|
|
4413
4399
|
}
|
|
4414
|
-
function
|
|
4400
|
+
function bo(e) {
|
|
4415
4401
|
let t, r, n, i, o, s = (
|
|
4416
4402
|
/*showvendorname*/
|
|
4417
|
-
e[2] === "false" &&
|
|
4403
|
+
e[2] === "false" && Rt()
|
|
4418
4404
|
);
|
|
4419
4405
|
return {
|
|
4420
4406
|
c() {
|
|
4421
|
-
t = S("img"), i = G(), s && s.c(), o =
|
|
4407
|
+
t = S("img"), i = G(), s && s.c(), o = rt(), Ee(t.src, r = /*vendor*/
|
|
4422
4408
|
e[43].logo) || E(t, "src", r), E(t, "alt", n = /*vendor*/
|
|
4423
4409
|
e[43].displayName);
|
|
4424
4410
|
},
|
|
4425
|
-
m(a,
|
|
4426
|
-
B(a, t,
|
|
4411
|
+
m(a, u) {
|
|
4412
|
+
B(a, t, u), B(a, i, u), s && s.m(a, u), B(a, o, u);
|
|
4427
4413
|
},
|
|
4428
|
-
p(a,
|
|
4429
|
-
|
|
4414
|
+
p(a, u) {
|
|
4415
|
+
u[0] & /*vendors*/
|
|
4430
4416
|
64 && !Ee(t.src, r = /*vendor*/
|
|
4431
|
-
a[43].logo) && E(t, "src", r),
|
|
4417
|
+
a[43].logo) && E(t, "src", r), u[0] & /*vendors*/
|
|
4432
4418
|
64 && n !== (n = /*vendor*/
|
|
4433
4419
|
a[43].displayName) && E(t, "alt", n), /*showvendorname*/
|
|
4434
|
-
a[2] === "false" ? s || (s =
|
|
4420
|
+
a[2] === "false" ? s || (s = Rt(), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
|
|
4435
4421
|
},
|
|
4436
4422
|
d(a) {
|
|
4437
4423
|
a && (I(t), I(i), I(o)), s && s.d(a);
|
|
4438
4424
|
}
|
|
4439
4425
|
};
|
|
4440
4426
|
}
|
|
4441
|
-
function
|
|
4427
|
+
function go(e) {
|
|
4442
4428
|
let t, r, n, i, o, s = (
|
|
4443
4429
|
/*showvendorname*/
|
|
4444
|
-
e[2] === "false" &&
|
|
4430
|
+
e[2] === "false" && Ut()
|
|
4445
4431
|
);
|
|
4446
4432
|
return {
|
|
4447
4433
|
c() {
|
|
@@ -4449,23 +4435,23 @@ function yo(e) {
|
|
|
4449
4435
|
e[43].logo) || E(r, "src", n), E(r, "alt", i = /*vendor*/
|
|
4450
4436
|
e[43].displayName), E(t, "class", "ImageContainer");
|
|
4451
4437
|
},
|
|
4452
|
-
m(a,
|
|
4453
|
-
B(a, t,
|
|
4438
|
+
m(a, u) {
|
|
4439
|
+
B(a, t, u), H(t, r), H(t, o), s && s.m(t, null);
|
|
4454
4440
|
},
|
|
4455
|
-
p(a,
|
|
4456
|
-
|
|
4441
|
+
p(a, u) {
|
|
4442
|
+
u[0] & /*vendors*/
|
|
4457
4443
|
64 && !Ee(r.src, n = /*vendor*/
|
|
4458
|
-
a[43].logo) && E(r, "src", n),
|
|
4444
|
+
a[43].logo) && E(r, "src", n), u[0] & /*vendors*/
|
|
4459
4445
|
64 && i !== (i = /*vendor*/
|
|
4460
4446
|
a[43].displayName) && E(r, "alt", i), /*showvendorname*/
|
|
4461
|
-
a[2] === "false" ? s || (s =
|
|
4447
|
+
a[2] === "false" ? s || (s = Ut(), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4462
4448
|
},
|
|
4463
4449
|
d(a) {
|
|
4464
4450
|
a && I(t), s && s.d();
|
|
4465
4451
|
}
|
|
4466
4452
|
};
|
|
4467
4453
|
}
|
|
4468
|
-
function
|
|
4454
|
+
function Rt(e) {
|
|
4469
4455
|
let t;
|
|
4470
4456
|
return {
|
|
4471
4457
|
c() {
|
|
@@ -4479,7 +4465,7 @@ function Dt(e) {
|
|
|
4479
4465
|
}
|
|
4480
4466
|
};
|
|
4481
4467
|
}
|
|
4482
|
-
function
|
|
4468
|
+
function Ut(e) {
|
|
4483
4469
|
let t;
|
|
4484
4470
|
return {
|
|
4485
4471
|
c() {
|
|
@@ -4493,7 +4479,7 @@ function $t(e) {
|
|
|
4493
4479
|
}
|
|
4494
4480
|
};
|
|
4495
4481
|
}
|
|
4496
|
-
function
|
|
4482
|
+
function Dt(e) {
|
|
4497
4483
|
let t, r = (
|
|
4498
4484
|
/*getGamesTotal*/
|
|
4499
4485
|
e[18](
|
|
@@ -4514,21 +4500,21 @@ function kt(e) {
|
|
|
4514
4500
|
i[18](
|
|
4515
4501
|
/*vendor*/
|
|
4516
4502
|
i[43]?.games.total
|
|
4517
|
-
) + "") &&
|
|
4503
|
+
) + "") && nt(n, r);
|
|
4518
4504
|
},
|
|
4519
4505
|
d(i) {
|
|
4520
4506
|
i && I(t);
|
|
4521
4507
|
}
|
|
4522
4508
|
};
|
|
4523
4509
|
}
|
|
4524
|
-
function
|
|
4510
|
+
function $t(e) {
|
|
4525
4511
|
let t, r = (
|
|
4526
4512
|
/*vendor*/
|
|
4527
4513
|
e[43].displayName + ""
|
|
4528
4514
|
), n, i, o = (
|
|
4529
4515
|
/*showvendorgames*/
|
|
4530
4516
|
e[3] !== "false" && /*vendor*/
|
|
4531
|
-
e[43]?.games.total &&
|
|
4517
|
+
e[43]?.games.total && kt(e)
|
|
4532
4518
|
);
|
|
4533
4519
|
return {
|
|
4534
4520
|
c() {
|
|
@@ -4545,16 +4531,16 @@ function Gt(e) {
|
|
|
4545
4531
|
p(s, a) {
|
|
4546
4532
|
a[0] & /*vendors*/
|
|
4547
4533
|
64 && r !== (r = /*vendor*/
|
|
4548
|
-
s[43].displayName + "") &&
|
|
4534
|
+
s[43].displayName + "") && nt(n, r), /*showvendorgames*/
|
|
4549
4535
|
s[3] !== "false" && /*vendor*/
|
|
4550
|
-
s[43]?.games.total ? o ? o.p(s, a) : (o =
|
|
4536
|
+
s[43]?.games.total ? o ? o.p(s, a) : (o = kt(s), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
4551
4537
|
},
|
|
4552
4538
|
d(s) {
|
|
4553
4539
|
s && I(t), o && o.d();
|
|
4554
4540
|
}
|
|
4555
4541
|
};
|
|
4556
4542
|
}
|
|
4557
|
-
function
|
|
4543
|
+
function kt(e) {
|
|
4558
4544
|
let t, r = (
|
|
4559
4545
|
/*getGamesTotal*/
|
|
4560
4546
|
e[18](
|
|
@@ -4575,28 +4561,28 @@ function Ft(e) {
|
|
|
4575
4561
|
i[18](
|
|
4576
4562
|
/*vendor*/
|
|
4577
4563
|
i[43]?.games.total
|
|
4578
|
-
) + "") &&
|
|
4564
|
+
) + "") && nt(n, r);
|
|
4579
4565
|
},
|
|
4580
4566
|
d(i) {
|
|
4581
4567
|
i && I(t);
|
|
4582
4568
|
}
|
|
4583
4569
|
};
|
|
4584
4570
|
}
|
|
4585
|
-
function
|
|
4586
|
-
let r, n, i, o, s, a,
|
|
4571
|
+
function Gt(e, t) {
|
|
4572
|
+
let r, n, i, o, s, a, u, l = (
|
|
4587
4573
|
/*showvendoricon*/
|
|
4588
|
-
t[1] !== "false" &&
|
|
4574
|
+
t[1] !== "false" && Nt(t)
|
|
4589
4575
|
), h = (
|
|
4590
4576
|
/*showvendoricon*/
|
|
4591
4577
|
t[1] == "true" && /*showvendorgames*/
|
|
4592
4578
|
t[3] !== "false" && /*showvendorname*/
|
|
4593
4579
|
t[2] == "false" && /*vendor*/
|
|
4594
|
-
t[43]?.games?.total &&
|
|
4595
|
-
),
|
|
4580
|
+
t[43]?.games?.total && Dt(t)
|
|
4581
|
+
), f = (
|
|
4596
4582
|
/*showvendorname*/
|
|
4597
|
-
t[2] !== "false" &&
|
|
4583
|
+
t[2] !== "false" && $t(t)
|
|
4598
4584
|
);
|
|
4599
|
-
function
|
|
4585
|
+
function c(...m) {
|
|
4600
4586
|
return (
|
|
4601
4587
|
/*click_handler*/
|
|
4602
4588
|
t[27](
|
|
@@ -4612,7 +4598,7 @@ function jt(e, t) {
|
|
|
4612
4598
|
key: e,
|
|
4613
4599
|
first: null,
|
|
4614
4600
|
c() {
|
|
4615
|
-
r = S("li"),
|
|
4601
|
+
r = S("li"), l && l.c(), n = G(), h && h.c(), i = G(), f && f.c(), o = G(), E(r, "class", s = "CarouselItem " + (String(
|
|
4616
4602
|
/*activevendor*/
|
|
4617
4603
|
t[0]
|
|
4618
4604
|
) == String(
|
|
@@ -4621,8 +4607,8 @@ function jt(e, t) {
|
|
|
4621
4607
|
) ? "active" : "") + " SecondaryMenu"), this.first = r;
|
|
4622
4608
|
},
|
|
4623
4609
|
m(m, p) {
|
|
4624
|
-
B(m, r, p),
|
|
4625
|
-
J(r, "click",
|
|
4610
|
+
B(m, r, p), l && l.m(r, null), H(r, n), h && h.m(r, null), H(r, i), f && f.m(r, null), H(r, o), a || (u = [
|
|
4611
|
+
J(r, "click", c),
|
|
4626
4612
|
J(r, "keydown", function() {
|
|
4627
4613
|
Se(
|
|
4628
4614
|
/*onCarouselItemKeydown*/
|
|
@@ -4643,12 +4629,12 @@ function jt(e, t) {
|
|
|
4643
4629
|
},
|
|
4644
4630
|
p(m, p) {
|
|
4645
4631
|
t = m, /*showvendoricon*/
|
|
4646
|
-
t[1] !== "false" ?
|
|
4632
|
+
t[1] !== "false" ? l ? l.p(t, p) : (l = Nt(t), l.c(), l.m(r, n)) : l && (l.d(1), l = null), /*showvendoricon*/
|
|
4647
4633
|
t[1] == "true" && /*showvendorgames*/
|
|
4648
4634
|
t[3] !== "false" && /*showvendorname*/
|
|
4649
4635
|
t[2] == "false" && /*vendor*/
|
|
4650
|
-
t[43]?.games?.total ? h ? h.p(t, p) : (h =
|
|
4651
|
-
t[2] !== "false" ?
|
|
4636
|
+
t[43]?.games?.total ? h ? h.p(t, p) : (h = Dt(t), h.c(), h.m(r, i)) : h && (h.d(1), h = null), /*showvendorname*/
|
|
4637
|
+
t[2] !== "false" ? f ? f.p(t, p) : (f = $t(t), f.c(), f.m(r, o)) : f && (f.d(1), f = null), p[0] & /*activevendor, vendors*/
|
|
4652
4638
|
65 && s !== (s = "CarouselItem " + (String(
|
|
4653
4639
|
/*activevendor*/
|
|
4654
4640
|
t[0]
|
|
@@ -4658,18 +4644,18 @@ function jt(e, t) {
|
|
|
4658
4644
|
) ? "active" : "") + " SecondaryMenu") && E(r, "class", s);
|
|
4659
4645
|
},
|
|
4660
4646
|
d(m) {
|
|
4661
|
-
m && I(r),
|
|
4647
|
+
m && I(r), l && l.d(), h && h.d(), f && f.d(), a = !1, X(u);
|
|
4662
4648
|
}
|
|
4663
4649
|
};
|
|
4664
4650
|
}
|
|
4665
|
-
function
|
|
4651
|
+
function yo(e) {
|
|
4666
4652
|
let t;
|
|
4667
4653
|
function r(o, s) {
|
|
4668
4654
|
return (
|
|
4669
4655
|
/*isLoading*/
|
|
4670
|
-
o[5] ?
|
|
4656
|
+
o[5] ? mo : (
|
|
4671
4657
|
/*hasErrors*/
|
|
4672
|
-
o[7] ?
|
|
4658
|
+
o[7] ? po : co
|
|
4673
4659
|
)
|
|
4674
4660
|
);
|
|
4675
4661
|
}
|
|
@@ -4691,47 +4677,47 @@ function _o(e) {
|
|
|
4691
4677
|
}
|
|
4692
4678
|
};
|
|
4693
4679
|
}
|
|
4694
|
-
function
|
|
4695
|
-
|
|
4696
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent:
|
|
4680
|
+
function vo(e, t, r) {
|
|
4681
|
+
oo({ withLocale: "en", translations: {} });
|
|
4682
|
+
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: f = "false" } = t, { showvendorgames: c = "false" } = t, { activevendor: m = "0" } = t, { mbsource: p } = t, b = window.navigator.userAgent, T = Ot(b) !== "PC", L = !0, P, A = [], O = !1, w, N, g;
|
|
4697
4683
|
const $ = () => {
|
|
4698
|
-
fetch(
|
|
4684
|
+
fetch(l).then((x) => x.json()).then((x) => {
|
|
4699
4685
|
Object.keys(x).forEach((U) => {
|
|
4700
|
-
|
|
4686
|
+
so(U, x[U]);
|
|
4701
4687
|
});
|
|
4702
4688
|
}).catch((x) => {
|
|
4703
4689
|
console.log(x);
|
|
4704
4690
|
});
|
|
4705
4691
|
}, k = () => {
|
|
4706
|
-
|
|
4707
|
-
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7,
|
|
4692
|
+
ao(o);
|
|
4693
|
+
}, 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), Er = () => {
|
|
4708
4694
|
if (!Z()) {
|
|
4709
4695
|
let d = new URL(`${n}/v1/casino/vendors`);
|
|
4710
|
-
d.searchParams.append("datasource", i), d.searchParams.append("language", o), d.searchParams.append("platform",
|
|
4696
|
+
d.searchParams.append("datasource", i), d.searchParams.append("language", o), d.searchParams.append("platform", Ot(b)), fetch(d).then((x) => x.json()).then(
|
|
4711
4697
|
(x) => {
|
|
4712
|
-
let U = x.items.filter((
|
|
4698
|
+
let U = x.items.filter((Me) => Me.games.total > 0);
|
|
4713
4699
|
r(6, A = []), r(6, A = A.concat(U)), r(5, L = !1);
|
|
4714
4700
|
},
|
|
4715
4701
|
(x) => {
|
|
4716
|
-
r(7,
|
|
4702
|
+
r(7, O = !0), console.error("There was an error while fetching the vendors", x);
|
|
4717
4703
|
}
|
|
4718
4704
|
).catch((x) => {
|
|
4719
|
-
r(7,
|
|
4705
|
+
r(7, O = !0), console.error("There was an error while fetching the vendors", x);
|
|
4720
4706
|
});
|
|
4721
4707
|
}
|
|
4722
4708
|
};
|
|
4723
|
-
|
|
4709
|
+
Fr(() => ("ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
|
4724
4710
|
() => {
|
|
4725
|
-
g && g.addEventListener("scroll",
|
|
4711
|
+
g && g.addEventListener("scroll", Oe);
|
|
4726
4712
|
},
|
|
4727
4713
|
500
|
|
4728
4714
|
), () => {
|
|
4729
|
-
N.removeEventListener("scroll",
|
|
4715
|
+
N.removeEventListener("scroll", Oe);
|
|
4730
4716
|
}));
|
|
4731
4717
|
let Pe = (d, x) => {
|
|
4732
|
-
|
|
4718
|
+
Oe(), r(0, m = d.id), window.postMessage(
|
|
4733
4719
|
{
|
|
4734
|
-
type:
|
|
4720
|
+
type: u,
|
|
4735
4721
|
itemId: d.id,
|
|
4736
4722
|
index: x,
|
|
4737
4723
|
item: d,
|
|
@@ -4741,7 +4727,7 @@ function xo(e, t, r) {
|
|
|
4741
4727
|
},
|
|
4742
4728
|
window.location.href
|
|
4743
4729
|
);
|
|
4744
|
-
},
|
|
4730
|
+
}, at = () => {
|
|
4745
4731
|
const d = g.scrollLeft;
|
|
4746
4732
|
if (d > 0) {
|
|
4747
4733
|
const x = Math.min(250, d);
|
|
@@ -4750,105 +4736,105 @@ function xo(e, t, r) {
|
|
|
4750
4736
|
behavior: "smooth"
|
|
4751
4737
|
});
|
|
4752
4738
|
}
|
|
4753
|
-
},
|
|
4739
|
+
}, ut = () => {
|
|
4754
4740
|
const d = g.scrollLeft, x = g.scrollWidth, U = g.clientWidth;
|
|
4755
4741
|
if (d + U < x) {
|
|
4756
|
-
const
|
|
4757
|
-
g.scrollBy({ left:
|
|
4742
|
+
const Me = x - (d + U), Mr = Math.min(250, Me);
|
|
4743
|
+
g.scrollBy({ left: Mr, behavior: "smooth" });
|
|
4758
4744
|
}
|
|
4759
4745
|
};
|
|
4760
|
-
const
|
|
4746
|
+
const Oe = () => {
|
|
4761
4747
|
const d = N.querySelectorAll(".DropDown");
|
|
4762
4748
|
document.activeElement.blur(), g.classList.add("isScrolling");
|
|
4763
4749
|
for (let x = 0; x < d.length; x++)
|
|
4764
4750
|
d[x].style.transform = "translateX(-" + g.scrollLeft + "px)";
|
|
4765
4751
|
g.classList.remove("isScrolling");
|
|
4766
|
-
},
|
|
4767
|
-
(d.key === "Enter" || d.key === " ") && (ht(), d.preventDefault());
|
|
4768
|
-
}, Hr = (d) => {
|
|
4752
|
+
}, Cr = (d) => {
|
|
4769
4753
|
(d.key === "Enter" || d.key === " ") && (ut(), d.preventDefault());
|
|
4770
|
-
},
|
|
4754
|
+
}, wr = (d) => {
|
|
4755
|
+
(d.key === "Enter" || d.key === " ") && (at(), d.preventDefault());
|
|
4756
|
+
}, Sr = (d, x) => (U) => {
|
|
4771
4757
|
(U.key === "Enter" || U.key === " ") && (Pe(d, x), U.preventDefault());
|
|
4772
|
-
},
|
|
4773
|
-
if (T &&
|
|
4758
|
+
}, Tr = () => {
|
|
4759
|
+
if (T && f === "true" && h === "false")
|
|
4774
4760
|
return "MobileCategoryButton";
|
|
4775
|
-
},
|
|
4761
|
+
}, Hr = (d) => d > 1e3 ? "999+" : d, Ar = (d, x, U) => {
|
|
4776
4762
|
Pe(d, x), U.preventDefault();
|
|
4777
4763
|
};
|
|
4778
|
-
function
|
|
4764
|
+
function Ir(d) {
|
|
4779
4765
|
K[d ? "unshift" : "push"](() => {
|
|
4780
4766
|
N = d, r(8, N);
|
|
4781
4767
|
});
|
|
4782
4768
|
}
|
|
4783
|
-
function
|
|
4769
|
+
function Br(d) {
|
|
4784
4770
|
K[d ? "unshift" : "push"](() => {
|
|
4785
4771
|
g = d, r(9, g);
|
|
4786
4772
|
});
|
|
4787
4773
|
}
|
|
4788
|
-
function
|
|
4774
|
+
function Pr(d) {
|
|
4789
4775
|
K[d ? "unshift" : "push"](() => {
|
|
4790
4776
|
w = d, r(4, w);
|
|
4791
4777
|
});
|
|
4792
4778
|
}
|
|
4793
|
-
function
|
|
4779
|
+
function Or(d) {
|
|
4794
4780
|
K[d ? "unshift" : "push"](() => {
|
|
4795
4781
|
w = d, r(4, w);
|
|
4796
4782
|
});
|
|
4797
4783
|
}
|
|
4798
4784
|
return e.$$set = (d) => {
|
|
4799
|
-
"endpoint" in d && r(19, n = d.endpoint), "datasource" in d && r(20, i = d.datasource), "lang" in d && r(21, o = d.lang), "clientstyling" in d && r(22, s = d.clientstyling), "clientstylingurl" in d && r(23, a = d.clientstylingurl), "actionevent" in d && r(24,
|
|
4785
|
+
"endpoint" in d && r(19, n = d.endpoint), "datasource" in d && r(20, i = d.datasource), "lang" in d && r(21, o = d.lang), "clientstyling" in d && r(22, s = d.clientstyling), "clientstylingurl" in d && r(23, a = d.clientstylingurl), "actionevent" in d && r(24, u = d.actionevent), "translationurl" in d && r(25, l = d.translationurl), "showvendoricon" in d && r(1, h = d.showvendoricon), "showvendorname" in d && r(2, f = d.showvendorname), "showvendorgames" in d && r(3, c = d.showvendorgames), "activevendor" in d && r(0, m = d.activevendor), "mbsource" in d && r(26, p = d.mbsource);
|
|
4800
4786
|
}, e.$$.update = () => {
|
|
4801
4787
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
4802
|
-
2621440 && n && o &&
|
|
4803
|
-
33554432 &&
|
|
4788
|
+
2621440 && n && o && Er(), e.$$.dirty[0] & /*translationurl*/
|
|
4789
|
+
33554432 && l && $(), e.$$.dirty[0] & /*activevendor*/
|
|
4804
4790
|
1, e.$$.dirty[0] & /*lang*/
|
|
4805
4791
|
2097152 && o && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4806
|
-
4194320 && s && w &&
|
|
4807
|
-
8388624 && a && w &&
|
|
4808
|
-
67108880 && p && w &&
|
|
4792
|
+
4194320 && s && w && uo(w, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4793
|
+
8388624 && a && w && lo(w, a), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4794
|
+
67108880 && p && w && ho(w, `${p}.Style`);
|
|
4809
4795
|
}, [
|
|
4810
4796
|
m,
|
|
4811
4797
|
h,
|
|
4812
|
-
c,
|
|
4813
4798
|
f,
|
|
4799
|
+
c,
|
|
4814
4800
|
w,
|
|
4815
4801
|
L,
|
|
4816
4802
|
A,
|
|
4817
|
-
|
|
4803
|
+
O,
|
|
4818
4804
|
N,
|
|
4819
4805
|
g,
|
|
4820
4806
|
T,
|
|
4821
4807
|
Pe,
|
|
4808
|
+
at,
|
|
4822
4809
|
ut,
|
|
4823
|
-
|
|
4810
|
+
Cr,
|
|
4811
|
+
wr,
|
|
4812
|
+
Sr,
|
|
4824
4813
|
Tr,
|
|
4825
4814
|
Hr,
|
|
4826
|
-
Ar,
|
|
4827
|
-
Ir,
|
|
4828
|
-
Br,
|
|
4829
4815
|
n,
|
|
4830
4816
|
i,
|
|
4831
4817
|
o,
|
|
4832
4818
|
s,
|
|
4833
4819
|
a,
|
|
4834
|
-
l,
|
|
4835
4820
|
u,
|
|
4821
|
+
l,
|
|
4836
4822
|
p,
|
|
4823
|
+
Ar,
|
|
4824
|
+
Ir,
|
|
4825
|
+
Br,
|
|
4837
4826
|
Pr,
|
|
4838
|
-
|
|
4839
|
-
Or,
|
|
4840
|
-
Lr,
|
|
4841
|
-
Nr
|
|
4827
|
+
Or
|
|
4842
4828
|
];
|
|
4843
4829
|
}
|
|
4844
|
-
class
|
|
4830
|
+
class _o extends tn {
|
|
4845
4831
|
constructor(t) {
|
|
4846
|
-
super(),
|
|
4832
|
+
super(), Kr(
|
|
4847
4833
|
this,
|
|
4848
4834
|
t,
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4835
|
+
vo,
|
|
4836
|
+
yo,
|
|
4837
|
+
jt,
|
|
4852
4838
|
{
|
|
4853
4839
|
endpoint: 19,
|
|
4854
4840
|
datasource: 20,
|
|
@@ -4863,7 +4849,7 @@ class Eo extends on {
|
|
|
4863
4849
|
activevendor: 0,
|
|
4864
4850
|
mbsource: 26
|
|
4865
4851
|
},
|
|
4866
|
-
|
|
4852
|
+
fo,
|
|
4867
4853
|
[-1, -1]
|
|
4868
4854
|
);
|
|
4869
4855
|
}
|
|
@@ -4940,7 +4926,7 @@ class Eo extends on {
|
|
|
4940
4926
|
this.$$set({ mbsource: t }), R();
|
|
4941
4927
|
}
|
|
4942
4928
|
}
|
|
4943
|
-
|
|
4929
|
+
en(_o, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, actionevent: {}, translationurl: {}, showvendoricon: {}, showvendorname: {}, showvendorgames: {}, activevendor: {}, mbsource: {} }, [], [], !0);
|
|
4944
4930
|
export {
|
|
4945
|
-
|
|
4931
|
+
_o as C
|
|
4946
4932
|
};
|