@everymatrix/casino-providers 1.76.3 → 1.76.4
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/{CasinoProviders-ofpGnWLA.js → CasinoProviders-BqMPCH3r.js} +702 -700
- package/components/CasinoProviders-D2WegCyi.cjs +3 -0
- package/components/{CasinoProviders-LwC7cLP2.js → CasinoProviders-qQkwlKEj.js} +689 -687
- package/es2015/casino-providers.cjs +1 -1
- package/es2015/casino-providers.js +1 -1
- package/esnext/casino-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoProviders-BYYBUFLe.cjs +0 -16
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function M() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function mt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ze() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function oe(e) {
|
|
10
|
+
e.forEach(mt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function je(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function dt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let ue;
|
|
19
|
+
function me(e, t) {
|
|
20
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function kt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function gt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function pt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Vt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(gt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function y(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Xt(e, t, r) {
|
|
41
|
+
const n = zt(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = A("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Wt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function zt(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function Xt(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Wt(e, t) {
|
|
58
58
|
return y(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,7 +67,7 @@ function C(e, t, r) {
|
|
|
67
67
|
function I(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function We(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -77,26 +77,26 @@ function A(e) {
|
|
|
77
77
|
function $(e) {
|
|
78
78
|
return document.createTextNode(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function U() {
|
|
81
81
|
return $(" ");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Zt() {
|
|
84
84
|
return $("");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function bt(e, t, r, n) {
|
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
88
88
|
}
|
|
89
89
|
function S(e, t, r) {
|
|
90
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Qt(e) {
|
|
93
93
|
return Array.from(e.childNodes);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function F(e, t) {
|
|
96
96
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
97
97
|
t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function qt(e) {
|
|
100
100
|
const t = {};
|
|
101
101
|
return e.childNodes.forEach(
|
|
102
102
|
/** @param {Element} node */
|
|
@@ -105,82 +105,82 @@ function Qt(e) {
|
|
|
105
105
|
}
|
|
106
106
|
), t;
|
|
107
107
|
}
|
|
108
|
-
let
|
|
109
|
-
function
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
108
|
+
let ke;
|
|
109
|
+
function ne(e) {
|
|
110
|
+
ke = e;
|
|
111
|
+
}
|
|
112
|
+
const W = [], we = [];
|
|
113
|
+
let Z = [];
|
|
114
|
+
const Ze = [], Jt = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Ne = !1;
|
|
116
|
+
function Yt() {
|
|
117
|
+
Ne || (Ne = !0, Jt.then(D));
|
|
118
|
+
}
|
|
119
|
+
function Le(e) {
|
|
120
|
+
Z.push(e);
|
|
121
|
+
}
|
|
122
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
123
|
+
let X = 0;
|
|
124
|
+
function D() {
|
|
125
|
+
if (X !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = ke;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t =
|
|
132
|
-
|
|
130
|
+
for (; X < W.length; ) {
|
|
131
|
+
const t = W[X];
|
|
132
|
+
X++, ne(t), Kt(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw W.length = 0, X = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
141
|
-
|
|
137
|
+
for (ne(null), W.length = 0, X = 0; we.length; )
|
|
138
|
+
we.pop()();
|
|
139
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
140
|
+
const r = Z[t];
|
|
141
|
+
Pe.has(r) || (Pe.add(r), r());
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
} while (
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
Z.length = 0;
|
|
144
|
+
} while (W.length);
|
|
145
|
+
for (; Ze.length; )
|
|
146
|
+
Ze.pop()();
|
|
147
|
+
Ne = !1, Pe.clear(), ne(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Kt(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), oe(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function er(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
|
-
|
|
158
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const tr = /* @__PURE__ */ new Set();
|
|
161
|
+
function rr(e, t) {
|
|
162
|
+
e && e.i && (tr.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function he(e) {
|
|
165
165
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function nr(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const s = e.$$.on_mount.map(
|
|
171
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
172
|
-
}), i.forEach(
|
|
169
|
+
n && n.m(t, r), Le(() => {
|
|
170
|
+
const s = e.$$.on_mount.map(mt).filter(je);
|
|
171
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
|
|
172
|
+
}), i.forEach(Le);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function ir(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (er(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && (
|
|
178
|
+
function sr(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (W.push(e), Yt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
const l =
|
|
183
|
-
|
|
181
|
+
function or(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
182
|
+
const l = ke;
|
|
183
|
+
ne(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
@@ -188,7 +188,7 @@ function sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
188
188
|
props: s,
|
|
189
189
|
update: M,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: ze(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,28 +197,28 @@ function sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: ze(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || l.$$.root
|
|
204
204
|
};
|
|
205
205
|
o && o(u.root);
|
|
206
206
|
let h = !1;
|
|
207
|
-
if (u.ctx = r(e, t.props || {}, (c, f, ...g) => {
|
|
208
|
-
const
|
|
209
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
210
|
-
}), u.update(), h = !0,
|
|
207
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...g) => {
|
|
208
|
+
const d = g.length ? g[0] : f;
|
|
209
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && sr(e, c)), f;
|
|
210
|
+
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const c =
|
|
212
|
+
const c = Qt(t.target);
|
|
213
213
|
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && rr(e.$$.fragment), nr(e, t.target, t.anchor), D();
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
ne(l);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let vt;
|
|
221
|
+
typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -277,12 +277,12 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = qt(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
284
284
|
const s = this.$$g_p(i.name);
|
|
285
|
-
s in this.$$d || (this.$$d[s] =
|
|
285
|
+
s in this.$$d || (this.$$d[s] = fe(s, i.value, this.$$p_d, "toProp"));
|
|
286
286
|
}
|
|
287
287
|
for (const i in this.$$p_d)
|
|
288
288
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
300
300
|
this.$$r = !0;
|
|
301
301
|
for (const i in this.$$p_d)
|
|
302
302
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
303
|
-
const s =
|
|
303
|
+
const s = fe(
|
|
304
304
|
i,
|
|
305
305
|
this.$$d[i],
|
|
306
306
|
this.$$p_d,
|
|
@@ -322,7 +322,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
322
322
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
323
323
|
// and setting attributes through setAttribute etc, this is helpful
|
|
324
324
|
attributeChangedCallback(e, t, r) {
|
|
325
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
325
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
326
326
|
}
|
|
327
327
|
disconnectedCallback() {
|
|
328
328
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -335,7 +335,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
335
335
|
) || e;
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
|
-
function
|
|
338
|
+
function fe(e, t, r, n) {
|
|
339
339
|
const i = r[e]?.type;
|
|
340
340
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
341
341
|
return t;
|
|
@@ -364,8 +364,8 @@ function le(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let o = class extends
|
|
367
|
+
function ar(e, t, r, n, i, s) {
|
|
368
|
+
let o = class extends vt {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -381,7 +381,7 @@ function or(e, t, r, n, i, s) {
|
|
|
381
381
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
382
382
|
},
|
|
383
383
|
set(l) {
|
|
384
|
-
l =
|
|
384
|
+
l = fe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
387
|
}), n.forEach((a) => {
|
|
@@ -393,7 +393,7 @@ function or(e, t, r, n, i, s) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
o, o;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class ur {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class ar {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
ir(this, 1), this.$destroy = M;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,7 +421,7 @@ class ar {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
424
|
+
if (!je(r))
|
|
425
425
|
return M;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
@@ -434,12 +434,12 @@ class ar {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
442
|
-
const
|
|
440
|
+
const hr = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(hr);
|
|
442
|
+
const Qe = {
|
|
443
443
|
en: {
|
|
444
444
|
popularProviders: "Popular Suppliers",
|
|
445
445
|
otherProviders: "Other Suppliers",
|
|
@@ -548,24 +548,24 @@ const Ze = {
|
|
|
548
548
|
loading: "Loading, please wait...",
|
|
549
549
|
games: "games"
|
|
550
550
|
}
|
|
551
|
-
},
|
|
552
|
-
function
|
|
551
|
+
}, z = [];
|
|
552
|
+
function lr(e, t) {
|
|
553
553
|
return {
|
|
554
|
-
subscribe:
|
|
554
|
+
subscribe: ve(e, t).subscribe
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function ve(e, t = M) {
|
|
558
558
|
let r;
|
|
559
559
|
const n = /* @__PURE__ */ new Set();
|
|
560
560
|
function i(a) {
|
|
561
|
-
if (
|
|
562
|
-
const l = !
|
|
561
|
+
if (dt(e, a) && (e = a, r)) {
|
|
562
|
+
const l = !z.length;
|
|
563
563
|
for (const u of n)
|
|
564
|
-
u[1](),
|
|
564
|
+
u[1](), z.push(u, e);
|
|
565
565
|
if (l) {
|
|
566
|
-
for (let u = 0; u <
|
|
567
|
-
|
|
568
|
-
|
|
566
|
+
for (let u = 0; u < z.length; u += 2)
|
|
567
|
+
z[u][0](z[u + 1]);
|
|
568
|
+
z.length = 0;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
}
|
|
@@ -580,12 +580,12 @@ function ge(e, t = M) {
|
|
|
580
580
|
}
|
|
581
581
|
return { set: i, update: s, subscribe: o };
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function K(e, t, r) {
|
|
584
584
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
585
585
|
if (!i.every(Boolean))
|
|
586
586
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
587
587
|
const s = t.length < 2;
|
|
588
|
-
return
|
|
588
|
+
return lr(r, (o, a) => {
|
|
589
589
|
let l = !1;
|
|
590
590
|
const u = [];
|
|
591
591
|
let h = 0, c = M;
|
|
@@ -593,67 +593,67 @@ function Y(e, t, r) {
|
|
|
593
593
|
if (h)
|
|
594
594
|
return;
|
|
595
595
|
c();
|
|
596
|
-
const
|
|
597
|
-
s ? o(
|
|
596
|
+
const d = t(n ? u[0] : u, o, a);
|
|
597
|
+
s ? o(d) : c = je(d) ? d : M;
|
|
598
598
|
}, g = i.map(
|
|
599
|
-
(
|
|
600
|
-
|
|
599
|
+
(d, p) => gt(
|
|
600
|
+
d,
|
|
601
601
|
(v) => {
|
|
602
|
-
u[
|
|
602
|
+
u[p] = v, h &= ~(1 << p), l && f();
|
|
603
603
|
},
|
|
604
604
|
() => {
|
|
605
|
-
h |= 1 <<
|
|
605
|
+
h |= 1 << p;
|
|
606
606
|
}
|
|
607
607
|
)
|
|
608
608
|
);
|
|
609
609
|
return l = !0, f(), function() {
|
|
610
|
-
|
|
610
|
+
oe(g), c(), l = !1;
|
|
611
611
|
};
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
614
|
+
function fr(e) {
|
|
615
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
616
616
|
}
|
|
617
|
-
var
|
|
618
|
-
return
|
|
617
|
+
var cr = function(t) {
|
|
618
|
+
return pr(t) && !mr(t);
|
|
619
619
|
};
|
|
620
|
-
function
|
|
620
|
+
function pr(e) {
|
|
621
621
|
return !!e && typeof e == "object";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function mr(e) {
|
|
624
624
|
var t = Object.prototype.toString.call(e);
|
|
625
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
626
|
-
}
|
|
627
|
-
var mr = typeof Symbol == "function" && Symbol.for, pr = mr ? Symbol.for("react.element") : 60103;
|
|
628
|
-
function gr(e) {
|
|
629
|
-
return e.$$typeof === pr;
|
|
625
|
+
return t === "[object RegExp]" || t === "[object Date]" || br(e);
|
|
630
626
|
}
|
|
627
|
+
var dr = typeof Symbol == "function" && Symbol.for, gr = dr ? Symbol.for("react.element") : 60103;
|
|
631
628
|
function br(e) {
|
|
629
|
+
return e.$$typeof === gr;
|
|
630
|
+
}
|
|
631
|
+
function vr(e) {
|
|
632
632
|
return Array.isArray(e) ? [] : {};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
634
|
+
function ie(e, t) {
|
|
635
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(vr(e), e, t) : e;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function _r(e, t, r) {
|
|
638
638
|
return e.concat(t).map(function(n) {
|
|
639
|
-
return
|
|
639
|
+
return ie(n, r);
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Er(e, t) {
|
|
643
643
|
if (!t.customMerge)
|
|
644
|
-
return
|
|
644
|
+
return Q;
|
|
645
645
|
var r = t.customMerge(e);
|
|
646
|
-
return typeof r == "function" ? r :
|
|
646
|
+
return typeof r == "function" ? r : Q;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function yr(e) {
|
|
649
649
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
650
650
|
return Object.propertyIsEnumerable.call(e, t);
|
|
651
651
|
}) : [];
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return Object.keys(e).concat(
|
|
653
|
+
function qe(e) {
|
|
654
|
+
return Object.keys(e).concat(yr(e));
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function _t(e, t) {
|
|
657
657
|
try {
|
|
658
658
|
return t in e;
|
|
659
659
|
} catch {
|
|
@@ -661,72 +661,58 @@ function vt(e, t) {
|
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
function xr(e, t) {
|
|
664
|
-
return
|
|
664
|
+
return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function Pr(e, t, r) {
|
|
667
667
|
var n = {};
|
|
668
|
-
return r.isMergeableObject(e) &&
|
|
669
|
-
n[i] =
|
|
670
|
-
}),
|
|
671
|
-
xr(e, i) || (
|
|
668
|
+
return r.isMergeableObject(e) && qe(e).forEach(function(i) {
|
|
669
|
+
n[i] = ie(e[i], r);
|
|
670
|
+
}), qe(t).forEach(function(i) {
|
|
671
|
+
xr(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Er(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
672
672
|
}), n;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
674
|
+
function Q(e, t, r) {
|
|
675
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || cr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
676
676
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
677
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
677
|
+
return s ? n ? r.arrayMerge(e, t, r) : Pr(e, t, r) : ie(t, r);
|
|
678
678
|
}
|
|
679
|
-
|
|
679
|
+
Q.all = function(t, r) {
|
|
680
680
|
if (!Array.isArray(t))
|
|
681
681
|
throw new Error("first argument should be an array");
|
|
682
682
|
return t.reduce(function(n, i) {
|
|
683
|
-
return
|
|
683
|
+
return Q(n, i, r);
|
|
684
684
|
}, {});
|
|
685
685
|
};
|
|
686
|
-
var
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
692
|
-
purpose with or without fee is hereby granted.
|
|
693
|
-
|
|
694
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
695
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
696
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
697
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
698
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
699
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
700
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
701
|
-
***************************************************************************** */
|
|
702
|
-
var Ne = function(e, t) {
|
|
703
|
-
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
686
|
+
var Hr = Q, Tr = Hr;
|
|
687
|
+
const Sr = /* @__PURE__ */ fr(Tr);
|
|
688
|
+
var Ie = function(e, t) {
|
|
689
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
704
690
|
r.__proto__ = n;
|
|
705
691
|
} || function(r, n) {
|
|
706
692
|
for (var i in n)
|
|
707
693
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
708
|
-
},
|
|
694
|
+
}, Ie(e, t);
|
|
709
695
|
};
|
|
710
|
-
function
|
|
696
|
+
function _e(e, t) {
|
|
711
697
|
if (typeof t != "function" && t !== null)
|
|
712
698
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
713
|
-
|
|
699
|
+
Ie(e, t);
|
|
714
700
|
function r() {
|
|
715
701
|
this.constructor = e;
|
|
716
702
|
}
|
|
717
703
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
718
704
|
}
|
|
719
|
-
var
|
|
720
|
-
return
|
|
705
|
+
var R = function() {
|
|
706
|
+
return R = Object.assign || function(t) {
|
|
721
707
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
722
708
|
r = arguments[n];
|
|
723
709
|
for (var s in r)
|
|
724
710
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
725
711
|
}
|
|
726
712
|
return t;
|
|
727
|
-
},
|
|
713
|
+
}, R.apply(this, arguments);
|
|
728
714
|
};
|
|
729
|
-
function
|
|
715
|
+
function Br(e, t) {
|
|
730
716
|
var r = {};
|
|
731
717
|
for (var n in e)
|
|
732
718
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -735,46 +721,43 @@ function Sr(e, t) {
|
|
|
735
721
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
736
722
|
return r;
|
|
737
723
|
}
|
|
738
|
-
function
|
|
739
|
-
if (arguments.length === 2)
|
|
724
|
+
function He(e, t, r) {
|
|
725
|
+
if (r || arguments.length === 2)
|
|
740
726
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
741
727
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
742
|
-
return e.concat(s || t);
|
|
728
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
743
729
|
}
|
|
744
|
-
function
|
|
745
|
-
var r = t && t.cache ? t.cache :
|
|
730
|
+
function Te(e, t) {
|
|
731
|
+
var r = t && t.cache ? t.cache : Cr, n = t && t.serializer ? t.serializer : Lr, i = t && t.strategy ? t.strategy : wr;
|
|
746
732
|
return i(e, {
|
|
747
733
|
cache: r,
|
|
748
734
|
serializer: n
|
|
749
735
|
});
|
|
750
736
|
}
|
|
751
|
-
function
|
|
737
|
+
function Ar(e) {
|
|
752
738
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
753
739
|
}
|
|
754
|
-
function
|
|
755
|
-
var i =
|
|
740
|
+
function Or(e, t, r, n) {
|
|
741
|
+
var i = Ar(n) ? n : r(n), s = t.get(i);
|
|
756
742
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
757
743
|
}
|
|
758
744
|
function Et(e, t, r) {
|
|
759
745
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
760
746
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
761
747
|
}
|
|
762
|
-
function
|
|
748
|
+
function yt(e, t, r, n, i) {
|
|
763
749
|
return r.bind(t, e, n, i);
|
|
764
750
|
}
|
|
765
|
-
function Ar(e, t) {
|
|
766
|
-
var r = e.length === 1 ? _t : Et;
|
|
767
|
-
return je(e, this, r, t.cache.create(), t.serializer);
|
|
768
|
-
}
|
|
769
|
-
function Or(e, t) {
|
|
770
|
-
return je(e, this, Et, t.cache.create(), t.serializer);
|
|
771
|
-
}
|
|
772
751
|
function wr(e, t) {
|
|
773
|
-
|
|
752
|
+
var r = e.length === 1 ? Or : Et;
|
|
753
|
+
return yt(e, this, r, t.cache.create(), t.serializer);
|
|
754
|
+
}
|
|
755
|
+
function Nr(e, t) {
|
|
756
|
+
return yt(e, this, Et, t.cache.create(), t.serializer);
|
|
774
757
|
}
|
|
775
|
-
var
|
|
758
|
+
var Lr = function() {
|
|
776
759
|
return JSON.stringify(arguments);
|
|
777
|
-
},
|
|
760
|
+
}, Ir = (
|
|
778
761
|
/** @class */
|
|
779
762
|
function() {
|
|
780
763
|
function e() {
|
|
@@ -786,62 +769,71 @@ var Nr = function() {
|
|
|
786
769
|
this.cache[t] = r;
|
|
787
770
|
}, e;
|
|
788
771
|
}()
|
|
789
|
-
),
|
|
772
|
+
), Cr = {
|
|
790
773
|
create: function() {
|
|
791
|
-
return new
|
|
774
|
+
return new Ir();
|
|
792
775
|
}
|
|
793
|
-
},
|
|
794
|
-
variadic:
|
|
795
|
-
|
|
796
|
-
|
|
776
|
+
}, Se = {
|
|
777
|
+
variadic: Nr
|
|
778
|
+
}, de = function() {
|
|
779
|
+
return de = Object.assign || function(t) {
|
|
780
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
781
|
+
r = arguments[n];
|
|
782
|
+
for (var s in r)
|
|
783
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
784
|
+
}
|
|
785
|
+
return t;
|
|
786
|
+
}, de.apply(this, arguments);
|
|
787
|
+
};
|
|
788
|
+
var _;
|
|
797
789
|
(function(e) {
|
|
798
790
|
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";
|
|
799
791
|
})(_ || (_ = {}));
|
|
800
|
-
var
|
|
792
|
+
var x;
|
|
801
793
|
(function(e) {
|
|
802
794
|
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";
|
|
803
|
-
})(
|
|
804
|
-
var
|
|
795
|
+
})(x || (x = {}));
|
|
796
|
+
var q;
|
|
805
797
|
(function(e) {
|
|
806
798
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
807
|
-
})(
|
|
808
|
-
function
|
|
809
|
-
return e.type ===
|
|
799
|
+
})(q || (q = {}));
|
|
800
|
+
function Je(e) {
|
|
801
|
+
return e.type === x.literal;
|
|
810
802
|
}
|
|
811
|
-
function
|
|
812
|
-
return e.type ===
|
|
803
|
+
function Mr(e) {
|
|
804
|
+
return e.type === x.argument;
|
|
813
805
|
}
|
|
814
806
|
function xt(e) {
|
|
815
|
-
return e.type ===
|
|
816
|
-
}
|
|
817
|
-
function yt(e) {
|
|
818
|
-
return e.type === P.date;
|
|
807
|
+
return e.type === x.number;
|
|
819
808
|
}
|
|
820
809
|
function Pt(e) {
|
|
821
|
-
return e.type ===
|
|
810
|
+
return e.type === x.date;
|
|
822
811
|
}
|
|
823
812
|
function Ht(e) {
|
|
824
|
-
return e.type ===
|
|
813
|
+
return e.type === x.time;
|
|
825
814
|
}
|
|
826
815
|
function Tt(e) {
|
|
827
|
-
return e.type ===
|
|
828
|
-
}
|
|
829
|
-
function Mr(e) {
|
|
830
|
-
return e.type === P.pound;
|
|
816
|
+
return e.type === x.select;
|
|
831
817
|
}
|
|
832
818
|
function St(e) {
|
|
833
|
-
return e.type ===
|
|
819
|
+
return e.type === x.plural;
|
|
820
|
+
}
|
|
821
|
+
function $r(e) {
|
|
822
|
+
return e.type === x.pound;
|
|
834
823
|
}
|
|
835
824
|
function Bt(e) {
|
|
836
|
-
return
|
|
825
|
+
return e.type === x.tag;
|
|
837
826
|
}
|
|
838
|
-
function
|
|
839
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
827
|
+
function At(e) {
|
|
828
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
829
|
+
}
|
|
830
|
+
function Ce(e) {
|
|
831
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
840
832
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
833
|
+
var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rr = /(?:[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;
|
|
834
|
+
function Ur(e) {
|
|
843
835
|
var t = {};
|
|
844
|
-
return e.replace(
|
|
836
|
+
return e.replace(Rr, function(r) {
|
|
845
837
|
var n = r.length;
|
|
846
838
|
switch (r[0]) {
|
|
847
839
|
case "G":
|
|
@@ -930,11 +922,21 @@ function Rr(e) {
|
|
|
930
922
|
return "";
|
|
931
923
|
}), t;
|
|
932
924
|
}
|
|
933
|
-
var
|
|
934
|
-
function
|
|
925
|
+
var T = function() {
|
|
926
|
+
return T = Object.assign || function(t) {
|
|
927
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
928
|
+
r = arguments[n];
|
|
929
|
+
for (var s in r)
|
|
930
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
931
|
+
}
|
|
932
|
+
return t;
|
|
933
|
+
}, T.apply(this, arguments);
|
|
934
|
+
};
|
|
935
|
+
var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
936
|
+
function Dr(e) {
|
|
935
937
|
if (e.length === 0)
|
|
936
938
|
throw new Error("Number skeleton cannot be empty");
|
|
937
|
-
for (var t = e.split(
|
|
939
|
+
for (var t = e.split(Gr).filter(function(f) {
|
|
938
940
|
return f.length > 0;
|
|
939
941
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
940
942
|
var s = i[n], o = s.split("/");
|
|
@@ -949,17 +951,17 @@ function Gr(e) {
|
|
|
949
951
|
}
|
|
950
952
|
return r;
|
|
951
953
|
}
|
|
952
|
-
function
|
|
954
|
+
function Fr(e) {
|
|
953
955
|
return e.replace(/^(.*?)-/, "");
|
|
954
956
|
}
|
|
955
|
-
var
|
|
956
|
-
function
|
|
957
|
+
var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wt = /^(@+)?(\+|#+)?[rs]?$/g, jr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
|
|
958
|
+
function Ke(e) {
|
|
957
959
|
var t = {};
|
|
958
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
960
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wt, function(r, n, i) {
|
|
959
961
|
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)), "";
|
|
960
962
|
}), t;
|
|
961
963
|
}
|
|
962
|
-
function
|
|
964
|
+
function Lt(e) {
|
|
963
965
|
switch (e) {
|
|
964
966
|
case "sign-auto":
|
|
965
967
|
return {
|
|
@@ -999,7 +1001,7 @@ function Nt(e) {
|
|
|
999
1001
|
};
|
|
1000
1002
|
}
|
|
1001
1003
|
}
|
|
1002
|
-
function
|
|
1004
|
+
function kr(e) {
|
|
1003
1005
|
var t;
|
|
1004
1006
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1005
1007
|
notation: "engineering"
|
|
@@ -1007,17 +1009,17 @@ function jr(e) {
|
|
|
1007
1009
|
notation: "scientific"
|
|
1008
1010
|
}, e = e.slice(1)), t) {
|
|
1009
1011
|
var r = e.slice(0, 2);
|
|
1010
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1012
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
|
|
1011
1013
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1012
1014
|
t.minimumIntegerDigits = e.length;
|
|
1013
1015
|
}
|
|
1014
1016
|
return t;
|
|
1015
1017
|
}
|
|
1016
|
-
function
|
|
1017
|
-
var t = {}, r =
|
|
1018
|
+
function et(e) {
|
|
1019
|
+
var t = {}, r = Lt(e);
|
|
1018
1020
|
return r || t;
|
|
1019
1021
|
}
|
|
1020
|
-
function
|
|
1022
|
+
function Vr(e) {
|
|
1021
1023
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1022
1024
|
var i = n[r];
|
|
1023
1025
|
switch (i.stem) {
|
|
@@ -1041,7 +1043,7 @@ function kr(e) {
|
|
|
1041
1043
|
continue;
|
|
1042
1044
|
case "measure-unit":
|
|
1043
1045
|
case "unit":
|
|
1044
|
-
t.style = "unit", t.unit =
|
|
1046
|
+
t.style = "unit", t.unit = Fr(i.options[0]);
|
|
1045
1047
|
continue;
|
|
1046
1048
|
case "compact-short":
|
|
1047
1049
|
case "K":
|
|
@@ -1052,13 +1054,13 @@ function kr(e) {
|
|
|
1052
1054
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1053
1055
|
continue;
|
|
1054
1056
|
case "scientific":
|
|
1055
|
-
t =
|
|
1056
|
-
return
|
|
1057
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1058
|
+
return T(T({}, l), et(u));
|
|
1057
1059
|
}, {}));
|
|
1058
1060
|
continue;
|
|
1059
1061
|
case "engineering":
|
|
1060
|
-
t =
|
|
1061
|
-
return
|
|
1062
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1063
|
+
return T(T({}, l), et(u));
|
|
1062
1064
|
}, {}));
|
|
1063
1065
|
continue;
|
|
1064
1066
|
case "notation-simple":
|
|
@@ -1103,7 +1105,7 @@ function kr(e) {
|
|
|
1103
1105
|
case "integer-width":
|
|
1104
1106
|
if (i.options.length > 1)
|
|
1105
1107
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1106
|
-
i.options[0].replace(
|
|
1108
|
+
i.options[0].replace(jr, function(l, u, h, c, f, g) {
|
|
1107
1109
|
if (u)
|
|
1108
1110
|
t.minimumIntegerDigits = h.length;
|
|
1109
1111
|
else {
|
|
@@ -1116,32 +1118,32 @@ function kr(e) {
|
|
|
1116
1118
|
});
|
|
1117
1119
|
continue;
|
|
1118
1120
|
}
|
|
1119
|
-
if (
|
|
1121
|
+
if (Nt.test(i.stem)) {
|
|
1120
1122
|
t.minimumIntegerDigits = i.stem.length;
|
|
1121
1123
|
continue;
|
|
1122
1124
|
}
|
|
1123
|
-
if (
|
|
1125
|
+
if (Ye.test(i.stem)) {
|
|
1124
1126
|
if (i.options.length > 1)
|
|
1125
1127
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1126
|
-
i.stem.replace(
|
|
1128
|
+
i.stem.replace(Ye, function(l, u, h, c, f, g) {
|
|
1127
1129
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1128
1130
|
});
|
|
1129
1131
|
var s = i.options[0];
|
|
1130
|
-
s === "w" ? t =
|
|
1132
|
+
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), Ke(s)));
|
|
1131
1133
|
continue;
|
|
1132
1134
|
}
|
|
1133
|
-
if (
|
|
1134
|
-
t =
|
|
1135
|
+
if (wt.test(i.stem)) {
|
|
1136
|
+
t = T(T({}, t), Ke(i.stem));
|
|
1135
1137
|
continue;
|
|
1136
1138
|
}
|
|
1137
|
-
var o =
|
|
1138
|
-
o && (t =
|
|
1139
|
-
var a =
|
|
1140
|
-
a && (t =
|
|
1139
|
+
var o = Lt(i.stem);
|
|
1140
|
+
o && (t = T(T({}, t), o));
|
|
1141
|
+
var a = kr(i.stem);
|
|
1142
|
+
a && (t = T(T({}, t), a));
|
|
1141
1143
|
}
|
|
1142
1144
|
return t;
|
|
1143
1145
|
}
|
|
1144
|
-
var
|
|
1146
|
+
var le = {
|
|
1145
1147
|
"001": [
|
|
1146
1148
|
"H",
|
|
1147
1149
|
"h"
|
|
@@ -2556,13 +2558,13 @@ var he = {
|
|
|
2556
2558
|
"h"
|
|
2557
2559
|
]
|
|
2558
2560
|
};
|
|
2559
|
-
function
|
|
2561
|
+
function Xr(e, t) {
|
|
2560
2562
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2561
2563
|
var i = e.charAt(n);
|
|
2562
2564
|
if (i === "j") {
|
|
2563
2565
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2564
2566
|
s++, n++;
|
|
2565
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2567
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = zr(t);
|
|
2566
2568
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2567
2569
|
r += l;
|
|
2568
2570
|
for (; o-- > 0; )
|
|
@@ -2572,7 +2574,7 @@ function Vr(e, t) {
|
|
|
2572
2574
|
}
|
|
2573
2575
|
return r;
|
|
2574
2576
|
}
|
|
2575
|
-
function
|
|
2577
|
+
function zr(e) {
|
|
2576
2578
|
var t = e.hourCycle;
|
|
2577
2579
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2578
2580
|
e.hourCycles && // @ts-ignore
|
|
@@ -2591,23 +2593,23 @@ function Xr(e) {
|
|
|
2591
2593
|
}
|
|
2592
2594
|
var r = e.language, n;
|
|
2593
2595
|
r !== "root" && (n = e.maximize().region);
|
|
2594
|
-
var i =
|
|
2596
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2595
2597
|
return i[0];
|
|
2596
2598
|
}
|
|
2597
|
-
var
|
|
2599
|
+
var Be, Wr = new RegExp("^".concat(Ot.source, "*")), Zr = new RegExp("".concat(Ot.source, "*$"));
|
|
2598
2600
|
function E(e, t) {
|
|
2599
2601
|
return { start: e, end: t };
|
|
2600
2602
|
}
|
|
2601
|
-
var
|
|
2603
|
+
var Qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), qr = !!String.fromCodePoint, Jr = !!Object.fromEntries, Yr = !!String.prototype.codePointAt, Kr = !!String.prototype.trimStart, en = !!String.prototype.trimEnd, tn = !!Number.isSafeInteger, rn = tn ? Number.isSafeInteger : function(e) {
|
|
2602
2604
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2603
|
-
},
|
|
2605
|
+
}, Me = !0;
|
|
2604
2606
|
try {
|
|
2605
|
-
var
|
|
2606
|
-
|
|
2607
|
+
var nn = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2608
|
+
Me = ((Be = nn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
2607
2609
|
} catch {
|
|
2608
|
-
|
|
2610
|
+
Me = !1;
|
|
2609
2611
|
}
|
|
2610
|
-
var
|
|
2612
|
+
var tt = Qr ? (
|
|
2611
2613
|
// Native
|
|
2612
2614
|
function(t, r, n) {
|
|
2613
2615
|
return t.startsWith(r, n);
|
|
@@ -2617,7 +2619,7 @@ var et = Zr ? (
|
|
|
2617
2619
|
function(t, r, n) {
|
|
2618
2620
|
return t.slice(n, n + r.length) === r;
|
|
2619
2621
|
}
|
|
2620
|
-
),
|
|
2622
|
+
), $e = qr ? String.fromCodePoint : (
|
|
2621
2623
|
// IE11
|
|
2622
2624
|
function() {
|
|
2623
2625
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2629,9 +2631,9 @@ var et = Zr ? (
|
|
|
2629
2631
|
}
|
|
2630
2632
|
return n;
|
|
2631
2633
|
}
|
|
2632
|
-
),
|
|
2634
|
+
), rt = (
|
|
2633
2635
|
// native
|
|
2634
|
-
|
|
2636
|
+
Jr ? Object.fromEntries : (
|
|
2635
2637
|
// Ponyfill
|
|
2636
2638
|
function(t) {
|
|
2637
2639
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2641,7 +2643,7 @@ var et = Zr ? (
|
|
|
2641
2643
|
return r;
|
|
2642
2644
|
}
|
|
2643
2645
|
)
|
|
2644
|
-
),
|
|
2646
|
+
), It = Yr ? (
|
|
2645
2647
|
// Native
|
|
2646
2648
|
function(t, r) {
|
|
2647
2649
|
return t.codePointAt(r);
|
|
@@ -2655,7 +2657,7 @@ var et = Zr ? (
|
|
|
2655
2657
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2656
2658
|
}
|
|
2657
2659
|
}
|
|
2658
|
-
),
|
|
2660
|
+
), sn = Kr ? (
|
|
2659
2661
|
// Native
|
|
2660
2662
|
function(t) {
|
|
2661
2663
|
return t.trimStart();
|
|
@@ -2663,9 +2665,9 @@ var et = Zr ? (
|
|
|
2663
2665
|
) : (
|
|
2664
2666
|
// Ponyfill
|
|
2665
2667
|
function(t) {
|
|
2666
|
-
return t.replace(
|
|
2668
|
+
return t.replace(Wr, "");
|
|
2667
2669
|
}
|
|
2668
|
-
),
|
|
2670
|
+
), on = en ? (
|
|
2669
2671
|
// Native
|
|
2670
2672
|
function(t) {
|
|
2671
2673
|
return t.trimEnd();
|
|
@@ -2673,32 +2675,32 @@ var et = Zr ? (
|
|
|
2673
2675
|
) : (
|
|
2674
2676
|
// Ponyfill
|
|
2675
2677
|
function(t) {
|
|
2676
|
-
return t.replace(
|
|
2678
|
+
return t.replace(Zr, "");
|
|
2677
2679
|
}
|
|
2678
2680
|
);
|
|
2679
|
-
function
|
|
2681
|
+
function Ct(e, t) {
|
|
2680
2682
|
return new RegExp(e, t);
|
|
2681
2683
|
}
|
|
2682
|
-
var
|
|
2683
|
-
if (
|
|
2684
|
-
var
|
|
2685
|
-
|
|
2684
|
+
var Re;
|
|
2685
|
+
if (Me) {
|
|
2686
|
+
var nt = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2687
|
+
Re = function(t, r) {
|
|
2686
2688
|
var n;
|
|
2687
|
-
|
|
2688
|
-
var i =
|
|
2689
|
+
nt.lastIndex = r;
|
|
2690
|
+
var i = nt.exec(t);
|
|
2689
2691
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2690
2692
|
};
|
|
2691
2693
|
} else
|
|
2692
|
-
|
|
2694
|
+
Re = function(t, r) {
|
|
2693
2695
|
for (var n = []; ; ) {
|
|
2694
|
-
var i =
|
|
2695
|
-
if (i === void 0 ||
|
|
2696
|
+
var i = It(t, r);
|
|
2697
|
+
if (i === void 0 || Mt(i) || ln(i))
|
|
2696
2698
|
break;
|
|
2697
2699
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2698
2700
|
}
|
|
2699
|
-
return
|
|
2701
|
+
return $e.apply(void 0, n);
|
|
2700
2702
|
};
|
|
2701
|
-
var
|
|
2703
|
+
var an = (
|
|
2702
2704
|
/** @class */
|
|
2703
2705
|
function() {
|
|
2704
2706
|
function e(t, r) {
|
|
@@ -2722,14 +2724,14 @@ var on = (
|
|
|
2722
2724
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2723
2725
|
var a = this.clonePosition();
|
|
2724
2726
|
this.bump(), i.push({
|
|
2725
|
-
type:
|
|
2727
|
+
type: x.pound,
|
|
2726
2728
|
location: E(a, this.clonePosition())
|
|
2727
2729
|
});
|
|
2728
2730
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2729
2731
|
if (n)
|
|
2730
2732
|
break;
|
|
2731
2733
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
2732
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2734
|
+
} else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2733
2735
|
var o = this.parseTag(t, r);
|
|
2734
2736
|
if (o.err)
|
|
2735
2737
|
return o;
|
|
@@ -2750,7 +2752,7 @@ var on = (
|
|
|
2750
2752
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2751
2753
|
return {
|
|
2752
2754
|
val: {
|
|
2753
|
-
type:
|
|
2755
|
+
type: x.literal,
|
|
2754
2756
|
value: "<".concat(i, "/>"),
|
|
2755
2757
|
location: E(n, this.clonePosition())
|
|
2756
2758
|
},
|
|
@@ -2762,12 +2764,12 @@ var on = (
|
|
|
2762
2764
|
return s;
|
|
2763
2765
|
var o = s.val, a = this.clonePosition();
|
|
2764
2766
|
if (this.bumpIf("</")) {
|
|
2765
|
-
if (this.isEOF() ||
|
|
2767
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2766
2768
|
return this.error(_.INVALID_TAG, E(a, this.clonePosition()));
|
|
2767
2769
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2768
2770
|
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2769
2771
|
val: {
|
|
2770
|
-
type:
|
|
2772
|
+
type: x.tag,
|
|
2771
2773
|
value: i,
|
|
2772
2774
|
children: o,
|
|
2773
2775
|
location: E(n, this.clonePosition())
|
|
@@ -2780,7 +2782,7 @@ var on = (
|
|
|
2780
2782
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
2781
2783
|
}, e.prototype.parseTagName = function() {
|
|
2782
2784
|
var t = this.offset();
|
|
2783
|
-
for (this.bump(); !this.isEOF() &&
|
|
2785
|
+
for (this.bump(); !this.isEOF() && hn(this.char()); )
|
|
2784
2786
|
this.bump();
|
|
2785
2787
|
return this.message.slice(t, this.offset());
|
|
2786
2788
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2804,12 +2806,12 @@ var on = (
|
|
|
2804
2806
|
}
|
|
2805
2807
|
var l = E(n, this.clonePosition());
|
|
2806
2808
|
return {
|
|
2807
|
-
val: { type:
|
|
2809
|
+
val: { type: x.literal, value: i, location: l },
|
|
2808
2810
|
err: null
|
|
2809
2811
|
};
|
|
2810
2812
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2811
2813
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2812
|
-
!
|
|
2814
|
+
!un(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2813
2815
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2814
2816
|
if (this.isEOF() || this.char() !== 39)
|
|
2815
2817
|
return null;
|
|
@@ -2843,12 +2845,12 @@ var on = (
|
|
|
2843
2845
|
r.push(n);
|
|
2844
2846
|
this.bump();
|
|
2845
2847
|
}
|
|
2846
|
-
return
|
|
2848
|
+
return $e.apply(void 0, r);
|
|
2847
2849
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2848
2850
|
if (this.isEOF())
|
|
2849
2851
|
return null;
|
|
2850
2852
|
var n = this.char();
|
|
2851
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2853
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
|
|
2852
2854
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2853
2855
|
var n = this.clonePosition();
|
|
2854
2856
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2864,7 +2866,7 @@ var on = (
|
|
|
2864
2866
|
case 125:
|
|
2865
2867
|
return this.bump(), {
|
|
2866
2868
|
val: {
|
|
2867
|
-
type:
|
|
2869
|
+
type: x.argument,
|
|
2868
2870
|
// value does not include the opening and closing braces.
|
|
2869
2871
|
value: i,
|
|
2870
2872
|
location: E(n, this.clonePosition())
|
|
@@ -2877,7 +2879,7 @@ var on = (
|
|
|
2877
2879
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2878
2880
|
}
|
|
2879
2881
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2880
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2882
|
+
var t = this.clonePosition(), r = this.offset(), n = Re(this.message, r), i = r + n.length;
|
|
2881
2883
|
this.bumpTo(i);
|
|
2882
2884
|
var s = this.clonePosition(), o = E(t, s);
|
|
2883
2885
|
return { value: n, location: o };
|
|
@@ -2896,46 +2898,46 @@ var on = (
|
|
|
2896
2898
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2897
2899
|
if (c.err)
|
|
2898
2900
|
return c;
|
|
2899
|
-
var f =
|
|
2901
|
+
var f = on(c.val);
|
|
2900
2902
|
if (f.length === 0)
|
|
2901
2903
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
2902
2904
|
var g = E(h, this.clonePosition());
|
|
2903
2905
|
u = { style: f, styleLocation: g };
|
|
2904
2906
|
}
|
|
2905
|
-
var
|
|
2906
|
-
if (
|
|
2907
|
-
return
|
|
2908
|
-
var
|
|
2909
|
-
if (u &&
|
|
2910
|
-
var v =
|
|
2907
|
+
var d = this.tryParseArgumentClose(i);
|
|
2908
|
+
if (d.err)
|
|
2909
|
+
return d;
|
|
2910
|
+
var p = E(i, this.clonePosition());
|
|
2911
|
+
if (u && tt(u?.style, "::", 0)) {
|
|
2912
|
+
var v = sn(u.style.slice(2));
|
|
2911
2913
|
if (a === "number") {
|
|
2912
2914
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2913
2915
|
return c.err ? c : {
|
|
2914
|
-
val: { type:
|
|
2916
|
+
val: { type: x.number, value: n, location: p, style: c.val },
|
|
2915
2917
|
err: null
|
|
2916
2918
|
};
|
|
2917
2919
|
} else {
|
|
2918
2920
|
if (v.length === 0)
|
|
2919
|
-
return this.error(_.EXPECT_DATE_TIME_SKELETON,
|
|
2921
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, p);
|
|
2920
2922
|
var m = v;
|
|
2921
|
-
this.locale && (m =
|
|
2923
|
+
this.locale && (m = Xr(v, this.locale));
|
|
2922
2924
|
var f = {
|
|
2923
|
-
type:
|
|
2925
|
+
type: q.dateTime,
|
|
2924
2926
|
pattern: m,
|
|
2925
2927
|
location: u.styleLocation,
|
|
2926
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2927
|
-
},
|
|
2928
|
+
parsedOptions: this.shouldParseSkeletons ? Ur(m) : {}
|
|
2929
|
+
}, P = a === "date" ? x.date : x.time;
|
|
2928
2930
|
return {
|
|
2929
|
-
val: { type:
|
|
2931
|
+
val: { type: P, value: n, location: p, style: f },
|
|
2930
2932
|
err: null
|
|
2931
2933
|
};
|
|
2932
2934
|
}
|
|
2933
2935
|
}
|
|
2934
2936
|
return {
|
|
2935
2937
|
val: {
|
|
2936
|
-
type: a === "number" ?
|
|
2938
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2937
2939
|
value: n,
|
|
2938
|
-
location:
|
|
2940
|
+
location: p,
|
|
2939
2941
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2940
2942
|
},
|
|
2941
2943
|
err: null
|
|
@@ -2946,9 +2948,9 @@ var on = (
|
|
|
2946
2948
|
case "select": {
|
|
2947
2949
|
var B = this.clonePosition();
|
|
2948
2950
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2949
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(B,
|
|
2951
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(B, de({}, B)));
|
|
2950
2952
|
this.bumpSpace();
|
|
2951
|
-
var O = this.parseIdentifierIfPossible(),
|
|
2953
|
+
var O = this.parseIdentifierIfPossible(), H = 0;
|
|
2952
2954
|
if (a !== "select" && O.value === "offset") {
|
|
2953
2955
|
if (!this.bumpIf(":"))
|
|
2954
2956
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
@@ -2956,29 +2958,29 @@ var on = (
|
|
|
2956
2958
|
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2957
2959
|
if (c.err)
|
|
2958
2960
|
return c;
|
|
2959
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(),
|
|
2961
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), H = c.val;
|
|
2960
2962
|
}
|
|
2961
2963
|
var N = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
2962
2964
|
if (N.err)
|
|
2963
2965
|
return N;
|
|
2964
|
-
var
|
|
2965
|
-
if (
|
|
2966
|
-
return
|
|
2966
|
+
var d = this.tryParseArgumentClose(i);
|
|
2967
|
+
if (d.err)
|
|
2968
|
+
return d;
|
|
2967
2969
|
var b = E(i, this.clonePosition());
|
|
2968
2970
|
return a === "select" ? {
|
|
2969
2971
|
val: {
|
|
2970
|
-
type:
|
|
2972
|
+
type: x.select,
|
|
2971
2973
|
value: n,
|
|
2972
|
-
options:
|
|
2974
|
+
options: rt(N.val),
|
|
2973
2975
|
location: b
|
|
2974
2976
|
},
|
|
2975
2977
|
err: null
|
|
2976
2978
|
} : {
|
|
2977
2979
|
val: {
|
|
2978
|
-
type:
|
|
2980
|
+
type: x.plural,
|
|
2979
2981
|
value: n,
|
|
2980
|
-
options:
|
|
2981
|
-
offset:
|
|
2982
|
+
options: rt(N.val),
|
|
2983
|
+
offset: H,
|
|
2982
2984
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2983
2985
|
location: b
|
|
2984
2986
|
},
|
|
@@ -3028,16 +3030,16 @@ var on = (
|
|
|
3028
3030
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3029
3031
|
var n = [];
|
|
3030
3032
|
try {
|
|
3031
|
-
n =
|
|
3033
|
+
n = Dr(t);
|
|
3032
3034
|
} catch {
|
|
3033
3035
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3034
3036
|
}
|
|
3035
3037
|
return {
|
|
3036
3038
|
val: {
|
|
3037
|
-
type:
|
|
3039
|
+
type: q.number,
|
|
3038
3040
|
tokens: n,
|
|
3039
3041
|
location: r,
|
|
3040
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3042
|
+
parsedOptions: this.shouldParseSkeletons ? Vr(n) : {}
|
|
3041
3043
|
},
|
|
3042
3044
|
err: null
|
|
3043
3045
|
};
|
|
@@ -3059,16 +3061,16 @@ var on = (
|
|
|
3059
3061
|
var g = this.clonePosition();
|
|
3060
3062
|
if (!this.bumpIf("{"))
|
|
3061
3063
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3062
|
-
var
|
|
3063
|
-
if (p.err)
|
|
3064
|
-
return p;
|
|
3065
|
-
var d = this.tryParseArgumentClose(g);
|
|
3064
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3066
3065
|
if (d.err)
|
|
3067
3066
|
return d;
|
|
3067
|
+
var p = this.tryParseArgumentClose(g);
|
|
3068
|
+
if (p.err)
|
|
3069
|
+
return p;
|
|
3068
3070
|
a.push([
|
|
3069
3071
|
u,
|
|
3070
3072
|
{
|
|
3071
|
-
value:
|
|
3073
|
+
value: d.val,
|
|
3072
3074
|
location: E(g, this.clonePosition())
|
|
3073
3075
|
}
|
|
3074
3076
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
@@ -3085,7 +3087,7 @@ var on = (
|
|
|
3085
3087
|
break;
|
|
3086
3088
|
}
|
|
3087
3089
|
var l = E(i, this.clonePosition());
|
|
3088
|
-
return s ? (o *= n,
|
|
3090
|
+
return s ? (o *= n, rn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3089
3091
|
}, e.prototype.offset = function() {
|
|
3090
3092
|
return this.position.offset;
|
|
3091
3093
|
}, e.prototype.isEOF = function() {
|
|
@@ -3100,7 +3102,7 @@ var on = (
|
|
|
3100
3102
|
var t = this.position.offset;
|
|
3101
3103
|
if (t >= this.message.length)
|
|
3102
3104
|
throw Error("out of bound");
|
|
3103
|
-
var r =
|
|
3105
|
+
var r = It(this.message, t);
|
|
3104
3106
|
if (r === void 0)
|
|
3105
3107
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3106
3108
|
return r;
|
|
@@ -3119,7 +3121,7 @@ var on = (
|
|
|
3119
3121
|
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);
|
|
3120
3122
|
}
|
|
3121
3123
|
}, e.prototype.bumpIf = function(t) {
|
|
3122
|
-
if (
|
|
3124
|
+
if (tt(this.message, t, this.offset())) {
|
|
3123
3125
|
for (var r = 0; r < t.length; r++)
|
|
3124
3126
|
this.bump();
|
|
3125
3127
|
return !0;
|
|
@@ -3141,7 +3143,7 @@ var on = (
|
|
|
3141
3143
|
break;
|
|
3142
3144
|
}
|
|
3143
3145
|
}, e.prototype.bumpSpace = function() {
|
|
3144
|
-
for (; !this.isEOF() &&
|
|
3146
|
+
for (; !this.isEOF() && Mt(this.char()); )
|
|
3145
3147
|
this.bump();
|
|
3146
3148
|
}, e.prototype.peek = function() {
|
|
3147
3149
|
if (this.isEOF())
|
|
@@ -3151,47 +3153,47 @@ var on = (
|
|
|
3151
3153
|
}, e;
|
|
3152
3154
|
}()
|
|
3153
3155
|
);
|
|
3154
|
-
function
|
|
3156
|
+
function Ue(e) {
|
|
3155
3157
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3156
3158
|
}
|
|
3157
|
-
function an(e) {
|
|
3158
|
-
return $e(e) || e === 47;
|
|
3159
|
-
}
|
|
3160
3159
|
function un(e) {
|
|
3160
|
+
return Ue(e) || e === 47;
|
|
3161
|
+
}
|
|
3162
|
+
function hn(e) {
|
|
3161
3163
|
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;
|
|
3162
3164
|
}
|
|
3163
|
-
function
|
|
3165
|
+
function Mt(e) {
|
|
3164
3166
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3165
3167
|
}
|
|
3166
|
-
function
|
|
3168
|
+
function ln(e) {
|
|
3167
3169
|
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;
|
|
3168
3170
|
}
|
|
3169
|
-
function
|
|
3171
|
+
function Ge(e) {
|
|
3170
3172
|
e.forEach(function(t) {
|
|
3171
|
-
if (delete t.location,
|
|
3173
|
+
if (delete t.location, Tt(t) || St(t))
|
|
3172
3174
|
for (var r in t.options)
|
|
3173
|
-
delete t.options[r].location,
|
|
3175
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3174
3176
|
else
|
|
3175
|
-
xt(t) &&
|
|
3177
|
+
xt(t) && At(t.style) || (Pt(t) || Ht(t)) && Ce(t.style) ? delete t.style.location : Bt(t) && Ge(t.children);
|
|
3176
3178
|
});
|
|
3177
3179
|
}
|
|
3178
|
-
function
|
|
3179
|
-
t === void 0 && (t = {}), t =
|
|
3180
|
-
var r = new
|
|
3180
|
+
function fn(e, t) {
|
|
3181
|
+
t === void 0 && (t = {}), t = de({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3182
|
+
var r = new an(e, t).parse();
|
|
3181
3183
|
if (r.err) {
|
|
3182
3184
|
var n = SyntaxError(_[r.err.kind]);
|
|
3183
3185
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3184
3186
|
}
|
|
3185
|
-
return t?.captureLocation ||
|
|
3187
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3186
3188
|
}
|
|
3187
|
-
var
|
|
3189
|
+
var J;
|
|
3188
3190
|
(function(e) {
|
|
3189
3191
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3190
|
-
})(
|
|
3191
|
-
var
|
|
3192
|
+
})(J || (J = {}));
|
|
3193
|
+
var Ee = (
|
|
3192
3194
|
/** @class */
|
|
3193
3195
|
function(e) {
|
|
3194
|
-
|
|
3196
|
+
_e(t, e);
|
|
3195
3197
|
function t(r, n, i) {
|
|
3196
3198
|
var s = e.call(this, r) || this;
|
|
3197
3199
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3200,48 +3202,48 @@ var ve = (
|
|
|
3200
3202
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3201
3203
|
}, t;
|
|
3202
3204
|
}(Error)
|
|
3203
|
-
),
|
|
3205
|
+
), it = (
|
|
3204
3206
|
/** @class */
|
|
3205
3207
|
function(e) {
|
|
3206
|
-
|
|
3208
|
+
_e(t, e);
|
|
3207
3209
|
function t(r, n, i, s) {
|
|
3208
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3210
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3209
3211
|
}
|
|
3210
3212
|
return t;
|
|
3211
|
-
}(
|
|
3212
|
-
),
|
|
3213
|
+
}(Ee)
|
|
3214
|
+
), cn = (
|
|
3213
3215
|
/** @class */
|
|
3214
3216
|
function(e) {
|
|
3215
|
-
|
|
3217
|
+
_e(t, e);
|
|
3216
3218
|
function t(r, n, i) {
|
|
3217
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3219
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3218
3220
|
}
|
|
3219
3221
|
return t;
|
|
3220
|
-
}(
|
|
3221
|
-
),
|
|
3222
|
+
}(Ee)
|
|
3223
|
+
), pn = (
|
|
3222
3224
|
/** @class */
|
|
3223
3225
|
function(e) {
|
|
3224
|
-
|
|
3226
|
+
_e(t, e);
|
|
3225
3227
|
function t(r, n) {
|
|
3226
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3228
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3227
3229
|
}
|
|
3228
3230
|
return t;
|
|
3229
|
-
}(
|
|
3231
|
+
}(Ee)
|
|
3230
3232
|
), w;
|
|
3231
3233
|
(function(e) {
|
|
3232
3234
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3233
3235
|
})(w || (w = {}));
|
|
3234
|
-
function
|
|
3236
|
+
function mn(e) {
|
|
3235
3237
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3236
3238
|
var n = t[t.length - 1];
|
|
3237
3239
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3238
3240
|
}, []);
|
|
3239
3241
|
}
|
|
3240
|
-
function
|
|
3242
|
+
function dn(e) {
|
|
3241
3243
|
return typeof e == "function";
|
|
3242
3244
|
}
|
|
3243
|
-
function
|
|
3244
|
-
if (e.length === 1 &&
|
|
3245
|
+
function ce(e, t, r, n, i, s, o) {
|
|
3246
|
+
if (e.length === 1 && Je(e[0]))
|
|
3245
3247
|
return [
|
|
3246
3248
|
{
|
|
3247
3249
|
type: w.literal,
|
|
@@ -3250,14 +3252,14 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3250
3252
|
];
|
|
3251
3253
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3252
3254
|
var h = u[l];
|
|
3253
|
-
if (
|
|
3255
|
+
if (Je(h)) {
|
|
3254
3256
|
a.push({
|
|
3255
3257
|
type: w.literal,
|
|
3256
3258
|
value: h.value
|
|
3257
3259
|
});
|
|
3258
3260
|
continue;
|
|
3259
3261
|
}
|
|
3260
|
-
if (
|
|
3262
|
+
if ($r(h)) {
|
|
3261
3263
|
typeof s == "number" && a.push({
|
|
3262
3264
|
type: w.literal,
|
|
3263
3265
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3266,25 +3268,25 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3266
3268
|
}
|
|
3267
3269
|
var c = h.value;
|
|
3268
3270
|
if (!(i && c in i))
|
|
3269
|
-
throw new
|
|
3271
|
+
throw new pn(c, o);
|
|
3270
3272
|
var f = i[c];
|
|
3271
|
-
if (
|
|
3273
|
+
if (Mr(h)) {
|
|
3272
3274
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3273
3275
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3274
3276
|
value: f
|
|
3275
3277
|
});
|
|
3276
3278
|
continue;
|
|
3277
3279
|
}
|
|
3278
|
-
if (
|
|
3279
|
-
var g = typeof h.style == "string" ? n.date[h.style] :
|
|
3280
|
+
if (Pt(h)) {
|
|
3281
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Ce(h.style) ? h.style.parsedOptions : void 0;
|
|
3280
3282
|
a.push({
|
|
3281
3283
|
type: w.literal,
|
|
3282
3284
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3283
3285
|
});
|
|
3284
3286
|
continue;
|
|
3285
3287
|
}
|
|
3286
|
-
if (
|
|
3287
|
-
var g = typeof h.style == "string" ? n.time[h.style] :
|
|
3288
|
+
if (Ht(h)) {
|
|
3289
|
+
var g = typeof h.style == "string" ? n.time[h.style] : Ce(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3288
3290
|
a.push({
|
|
3289
3291
|
type: w.literal,
|
|
3290
3292
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
@@ -3292,63 +3294,63 @@ function fe(e, t, r, n, i, s, o) {
|
|
|
3292
3294
|
continue;
|
|
3293
3295
|
}
|
|
3294
3296
|
if (xt(h)) {
|
|
3295
|
-
var g = typeof h.style == "string" ? n.number[h.style] :
|
|
3297
|
+
var g = typeof h.style == "string" ? n.number[h.style] : At(h.style) ? h.style.parsedOptions : void 0;
|
|
3296
3298
|
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
|
3297
3299
|
type: w.literal,
|
|
3298
3300
|
value: r.getNumberFormat(t, g).format(f)
|
|
3299
3301
|
});
|
|
3300
3302
|
continue;
|
|
3301
3303
|
}
|
|
3302
|
-
if (
|
|
3303
|
-
var
|
|
3304
|
-
if (!
|
|
3305
|
-
throw new
|
|
3306
|
-
var m =
|
|
3307
|
-
return
|
|
3304
|
+
if (Bt(h)) {
|
|
3305
|
+
var d = h.children, p = h.value, v = i[p];
|
|
3306
|
+
if (!dn(v))
|
|
3307
|
+
throw new cn(p, "function", o);
|
|
3308
|
+
var m = ce(d, t, r, n, i, s), P = v(m.map(function(H) {
|
|
3309
|
+
return H.value;
|
|
3308
3310
|
}));
|
|
3309
|
-
Array.isArray(
|
|
3311
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(H) {
|
|
3310
3312
|
return {
|
|
3311
|
-
type: typeof
|
|
3312
|
-
value:
|
|
3313
|
+
type: typeof H == "string" ? w.literal : w.object,
|
|
3314
|
+
value: H
|
|
3313
3315
|
};
|
|
3314
3316
|
}));
|
|
3315
3317
|
}
|
|
3316
|
-
if (
|
|
3318
|
+
if (Tt(h)) {
|
|
3317
3319
|
var B = h.options[f] || h.options.other;
|
|
3318
3320
|
if (!B)
|
|
3319
|
-
throw new
|
|
3320
|
-
a.push.apply(a,
|
|
3321
|
+
throw new it(h.value, f, Object.keys(h.options), o);
|
|
3322
|
+
a.push.apply(a, ce(B.value, t, r, n, i));
|
|
3321
3323
|
continue;
|
|
3322
3324
|
}
|
|
3323
|
-
if (
|
|
3325
|
+
if (St(h)) {
|
|
3324
3326
|
var B = h.options["=".concat(f)];
|
|
3325
3327
|
if (!B) {
|
|
3326
3328
|
if (!Intl.PluralRules)
|
|
3327
|
-
throw new
|
|
3329
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3328
3330
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3329
|
-
`,
|
|
3331
|
+
`, J.MISSING_INTL_API, o);
|
|
3330
3332
|
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3331
3333
|
B = h.options[O] || h.options.other;
|
|
3332
3334
|
}
|
|
3333
3335
|
if (!B)
|
|
3334
|
-
throw new
|
|
3335
|
-
a.push.apply(a,
|
|
3336
|
+
throw new it(h.value, f, Object.keys(h.options), o);
|
|
3337
|
+
a.push.apply(a, ce(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3336
3338
|
continue;
|
|
3337
3339
|
}
|
|
3338
3340
|
}
|
|
3339
|
-
return
|
|
3341
|
+
return mn(a);
|
|
3340
3342
|
}
|
|
3341
|
-
function
|
|
3342
|
-
return t ?
|
|
3343
|
-
return r[n] =
|
|
3343
|
+
function gn(e, t) {
|
|
3344
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3345
|
+
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
|
3344
3346
|
}, {})) : e;
|
|
3345
3347
|
}
|
|
3346
|
-
function
|
|
3348
|
+
function bn(e, t) {
|
|
3347
3349
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3348
|
-
return r[n] =
|
|
3349
|
-
},
|
|
3350
|
+
return r[n] = gn(e[n], t[n]), r;
|
|
3351
|
+
}, R({}, e)) : e;
|
|
3350
3352
|
}
|
|
3351
|
-
function
|
|
3353
|
+
function Ae(e) {
|
|
3352
3354
|
return {
|
|
3353
3355
|
create: function() {
|
|
3354
3356
|
return {
|
|
@@ -3362,39 +3364,39 @@ function Se(e) {
|
|
|
3362
3364
|
}
|
|
3363
3365
|
};
|
|
3364
3366
|
}
|
|
3365
|
-
function
|
|
3367
|
+
function vn(e) {
|
|
3366
3368
|
return e === void 0 && (e = {
|
|
3367
3369
|
number: {},
|
|
3368
3370
|
dateTime: {},
|
|
3369
3371
|
pluralRules: {}
|
|
3370
3372
|
}), {
|
|
3371
|
-
getNumberFormat:
|
|
3373
|
+
getNumberFormat: Te(function() {
|
|
3372
3374
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3373
3375
|
r[n] = arguments[n];
|
|
3374
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3376
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3375
3377
|
}, {
|
|
3376
|
-
cache:
|
|
3377
|
-
strategy:
|
|
3378
|
+
cache: Ae(e.number),
|
|
3379
|
+
strategy: Se.variadic
|
|
3378
3380
|
}),
|
|
3379
|
-
getDateTimeFormat:
|
|
3381
|
+
getDateTimeFormat: Te(function() {
|
|
3380
3382
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3381
3383
|
r[n] = arguments[n];
|
|
3382
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3384
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3383
3385
|
}, {
|
|
3384
|
-
cache:
|
|
3385
|
-
strategy:
|
|
3386
|
+
cache: Ae(e.dateTime),
|
|
3387
|
+
strategy: Se.variadic
|
|
3386
3388
|
}),
|
|
3387
|
-
getPluralRules:
|
|
3389
|
+
getPluralRules: Te(function() {
|
|
3388
3390
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3389
3391
|
r[n] = arguments[n];
|
|
3390
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3392
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3391
3393
|
}, {
|
|
3392
|
-
cache:
|
|
3393
|
-
strategy:
|
|
3394
|
+
cache: Ae(e.pluralRules),
|
|
3395
|
+
strategy: Se.variadic
|
|
3394
3396
|
})
|
|
3395
3397
|
};
|
|
3396
3398
|
}
|
|
3397
|
-
var
|
|
3399
|
+
var _n = (
|
|
3398
3400
|
/** @class */
|
|
3399
3401
|
function() {
|
|
3400
3402
|
function e(t, r, n, i) {
|
|
@@ -3413,7 +3415,7 @@ var vn = (
|
|
|
3413
3415
|
}, []);
|
|
3414
3416
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3415
3417
|
}, this.formatToParts = function(l) {
|
|
3416
|
-
return
|
|
3418
|
+
return ce(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3417
3419
|
}, this.resolvedOptions = function() {
|
|
3418
3420
|
var l;
|
|
3419
3421
|
return {
|
|
@@ -3426,13 +3428,13 @@ var vn = (
|
|
|
3426
3428
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3427
3429
|
var o = i || {};
|
|
3428
3430
|
o.formatters;
|
|
3429
|
-
var a =
|
|
3430
|
-
this.ast = e.__parse(t,
|
|
3431
|
+
var a = Br(o, ["formatters"]);
|
|
3432
|
+
this.ast = e.__parse(t, R(R({}, a), { locale: this.resolvedLocale }));
|
|
3431
3433
|
} else
|
|
3432
3434
|
this.ast = t;
|
|
3433
3435
|
if (!Array.isArray(this.ast))
|
|
3434
3436
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3435
|
-
this.formats =
|
|
3437
|
+
this.formats = bn(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
|
|
3436
3438
|
}
|
|
3437
3439
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3438
3440
|
get: function() {
|
|
@@ -3445,7 +3447,7 @@ var vn = (
|
|
|
3445
3447
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3446
3448
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3447
3449
|
}
|
|
3448
|
-
}, e.__parse =
|
|
3450
|
+
}, e.__parse = fn, e.formats = {
|
|
3449
3451
|
number: {
|
|
3450
3452
|
integer: {
|
|
3451
3453
|
maximumFractionDigits: 0
|
|
@@ -3506,7 +3508,7 @@ var vn = (
|
|
|
3506
3508
|
}, e;
|
|
3507
3509
|
}()
|
|
3508
3510
|
);
|
|
3509
|
-
function
|
|
3511
|
+
function En(e, t) {
|
|
3510
3512
|
if (t == null)
|
|
3511
3513
|
return;
|
|
3512
3514
|
if (t in e)
|
|
@@ -3527,92 +3529,92 @@ function _n(e, t) {
|
|
|
3527
3529
|
n = void 0;
|
|
3528
3530
|
return n;
|
|
3529
3531
|
}
|
|
3530
|
-
const
|
|
3532
|
+
const j = {}, yn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), $t = (e, t) => {
|
|
3531
3533
|
if (t == null)
|
|
3532
3534
|
return;
|
|
3533
|
-
if (t in
|
|
3534
|
-
return
|
|
3535
|
-
const r =
|
|
3535
|
+
if (t in j && e in j[t])
|
|
3536
|
+
return j[t][e];
|
|
3537
|
+
const r = ye(t);
|
|
3536
3538
|
for (let n = 0; n < r.length; n++) {
|
|
3537
|
-
const i = r[n], s =
|
|
3539
|
+
const i = r[n], s = Pn(i, e);
|
|
3538
3540
|
if (s)
|
|
3539
|
-
return
|
|
3541
|
+
return yn(e, t, s);
|
|
3540
3542
|
}
|
|
3541
3543
|
};
|
|
3542
|
-
let
|
|
3543
|
-
const
|
|
3544
|
+
let Ve;
|
|
3545
|
+
const ae = ve({});
|
|
3544
3546
|
function xn(e) {
|
|
3545
|
-
return
|
|
3547
|
+
return Ve[e] || null;
|
|
3546
3548
|
}
|
|
3547
|
-
function
|
|
3548
|
-
return e in
|
|
3549
|
+
function Rt(e) {
|
|
3550
|
+
return e in Ve;
|
|
3549
3551
|
}
|
|
3550
|
-
function
|
|
3551
|
-
if (
|
|
3552
|
+
function Pn(e, t) {
|
|
3553
|
+
if (!Rt(e))
|
|
3552
3554
|
return null;
|
|
3553
3555
|
const r = xn(e);
|
|
3554
|
-
return
|
|
3556
|
+
return En(r, t);
|
|
3555
3557
|
}
|
|
3556
|
-
function
|
|
3558
|
+
function Hn(e) {
|
|
3557
3559
|
if (e == null)
|
|
3558
3560
|
return;
|
|
3559
|
-
const t =
|
|
3561
|
+
const t = ye(e);
|
|
3560
3562
|
for (let r = 0; r < t.length; r++) {
|
|
3561
3563
|
const n = t[r];
|
|
3562
|
-
if (
|
|
3564
|
+
if (Rt(n))
|
|
3563
3565
|
return n;
|
|
3564
3566
|
}
|
|
3565
3567
|
}
|
|
3566
|
-
function
|
|
3567
|
-
delete
|
|
3568
|
+
function Ut(e, ...t) {
|
|
3569
|
+
delete j[e], ae.update((r) => (r[e] = Sr.all([r[e] || {}, ...t]), r));
|
|
3568
3570
|
}
|
|
3569
|
-
|
|
3570
|
-
[
|
|
3571
|
+
K(
|
|
3572
|
+
[ae],
|
|
3571
3573
|
([e]) => Object.keys(e)
|
|
3572
3574
|
);
|
|
3573
|
-
|
|
3574
|
-
const
|
|
3575
|
-
function
|
|
3576
|
-
|
|
3575
|
+
ae.subscribe((e) => Ve = e);
|
|
3576
|
+
const pe = {};
|
|
3577
|
+
function Tn(e, t) {
|
|
3578
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3577
3579
|
}
|
|
3578
|
-
function
|
|
3579
|
-
return
|
|
3580
|
+
function Gt(e) {
|
|
3581
|
+
return pe[e];
|
|
3580
3582
|
}
|
|
3581
|
-
function
|
|
3582
|
-
return
|
|
3583
|
-
const r =
|
|
3583
|
+
function Sn(e) {
|
|
3584
|
+
return ye(e).map((t) => {
|
|
3585
|
+
const r = Gt(t);
|
|
3584
3586
|
return [t, r ? [...r] : []];
|
|
3585
3587
|
}).filter(([, t]) => t.length > 0);
|
|
3586
3588
|
}
|
|
3587
|
-
function
|
|
3588
|
-
return e == null ? !1 :
|
|
3589
|
+
function De(e) {
|
|
3590
|
+
return e == null ? !1 : ye(e).some(
|
|
3589
3591
|
(t) => {
|
|
3590
3592
|
var r;
|
|
3591
|
-
return (r =
|
|
3593
|
+
return (r = Gt(t)) == null ? void 0 : r.size;
|
|
3592
3594
|
}
|
|
3593
3595
|
);
|
|
3594
3596
|
}
|
|
3595
|
-
function
|
|
3597
|
+
function Bn(e, t) {
|
|
3596
3598
|
return Promise.all(
|
|
3597
|
-
t.map((n) => (
|
|
3598
|
-
).then((n) =>
|
|
3599
|
-
}
|
|
3600
|
-
const
|
|
3601
|
-
function
|
|
3602
|
-
if (!
|
|
3603
|
-
return e in
|
|
3604
|
-
const t =
|
|
3605
|
-
return
|
|
3599
|
+
t.map((n) => (Tn(e, n), n().then((i) => i.default || i)))
|
|
3600
|
+
).then((n) => Ut(e, ...n));
|
|
3601
|
+
}
|
|
3602
|
+
const re = {};
|
|
3603
|
+
function Dt(e) {
|
|
3604
|
+
if (!De(e))
|
|
3605
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3606
|
+
const t = Sn(e);
|
|
3607
|
+
return re[e] = Promise.all(
|
|
3606
3608
|
t.map(
|
|
3607
|
-
([r, n]) =>
|
|
3609
|
+
([r, n]) => Bn(r, n)
|
|
3608
3610
|
)
|
|
3609
3611
|
).then(() => {
|
|
3610
|
-
if (
|
|
3611
|
-
return
|
|
3612
|
-
delete
|
|
3613
|
-
}),
|
|
3612
|
+
if (De(e))
|
|
3613
|
+
return Dt(e);
|
|
3614
|
+
delete re[e];
|
|
3615
|
+
}), re[e];
|
|
3614
3616
|
}
|
|
3615
|
-
const
|
|
3617
|
+
const An = {
|
|
3616
3618
|
number: {
|
|
3617
3619
|
scientific: { notation: "scientific" },
|
|
3618
3620
|
engineering: { notation: "engineering" },
|
|
@@ -3641,150 +3643,150 @@ const Bn = {
|
|
|
3641
3643
|
timeZoneName: "short"
|
|
3642
3644
|
}
|
|
3643
3645
|
}
|
|
3644
|
-
},
|
|
3646
|
+
}, On = {
|
|
3645
3647
|
fallbackLocale: null,
|
|
3646
3648
|
loadingDelay: 200,
|
|
3647
|
-
formats:
|
|
3649
|
+
formats: An,
|
|
3648
3650
|
warnOnMissingMessages: !0,
|
|
3649
3651
|
handleMissingMessage: void 0,
|
|
3650
3652
|
ignoreTag: !0
|
|
3651
|
-
},
|
|
3652
|
-
function
|
|
3653
|
-
return
|
|
3654
|
-
}
|
|
3655
|
-
const
|
|
3656
|
-
var
|
|
3657
|
-
for (var r in t)
|
|
3658
|
-
|
|
3659
|
-
if (
|
|
3660
|
-
for (var r of
|
|
3661
|
-
|
|
3653
|
+
}, wn = On;
|
|
3654
|
+
function Y() {
|
|
3655
|
+
return wn;
|
|
3656
|
+
}
|
|
3657
|
+
const Oe = ve(!1);
|
|
3658
|
+
var Nn = Object.defineProperty, Ln = Object.defineProperties, In = Object.getOwnPropertyDescriptors, st = Object.getOwnPropertySymbols, Cn = Object.prototype.hasOwnProperty, Mn = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $n = (e, t) => {
|
|
3659
|
+
for (var r in t || (t = {}))
|
|
3660
|
+
Cn.call(t, r) && ot(e, r, t[r]);
|
|
3661
|
+
if (st)
|
|
3662
|
+
for (var r of st(t))
|
|
3663
|
+
Mn.call(t, r) && ot(e, r, t[r]);
|
|
3662
3664
|
return e;
|
|
3663
|
-
},
|
|
3664
|
-
let
|
|
3665
|
-
const
|
|
3666
|
-
function
|
|
3665
|
+
}, Rn = (e, t) => Ln(e, In(t));
|
|
3666
|
+
let Fe;
|
|
3667
|
+
const ge = ve(null);
|
|
3668
|
+
function at(e) {
|
|
3667
3669
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3668
3670
|
}
|
|
3669
|
-
function
|
|
3670
|
-
const r =
|
|
3671
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3671
|
+
function ye(e, t = Y().fallbackLocale) {
|
|
3672
|
+
const r = at(e);
|
|
3673
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
|
|
3672
3674
|
}
|
|
3673
|
-
function
|
|
3674
|
-
return
|
|
3675
|
+
function V() {
|
|
3676
|
+
return Fe ?? void 0;
|
|
3675
3677
|
}
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
+
ge.subscribe((e) => {
|
|
3679
|
+
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3678
3680
|
});
|
|
3679
|
-
const
|
|
3680
|
-
if (e &&
|
|
3681
|
-
const { loadingDelay: t } =
|
|
3681
|
+
const Un = (e) => {
|
|
3682
|
+
if (e && Hn(e) && De(e)) {
|
|
3683
|
+
const { loadingDelay: t } = Y();
|
|
3682
3684
|
let r;
|
|
3683
|
-
return typeof window < "u" &&
|
|
3684
|
-
() =>
|
|
3685
|
+
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
3686
|
+
() => Oe.set(!0),
|
|
3685
3687
|
t
|
|
3686
|
-
) :
|
|
3687
|
-
|
|
3688
|
+
) : Oe.set(!0), Dt(e).then(() => {
|
|
3689
|
+
ge.set(e);
|
|
3688
3690
|
}).finally(() => {
|
|
3689
|
-
clearTimeout(r),
|
|
3691
|
+
clearTimeout(r), Oe.set(!1);
|
|
3690
3692
|
});
|
|
3691
3693
|
}
|
|
3692
|
-
return
|
|
3693
|
-
},
|
|
3694
|
-
set:
|
|
3695
|
-
}),
|
|
3694
|
+
return ge.set(e);
|
|
3695
|
+
}, ee = Rn($n({}, ge), {
|
|
3696
|
+
set: Un
|
|
3697
|
+
}), xe = (e) => {
|
|
3696
3698
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3697
3699
|
return (n) => {
|
|
3698
3700
|
const i = JSON.stringify(n);
|
|
3699
3701
|
return i in t ? t[i] : t[i] = e(n);
|
|
3700
3702
|
};
|
|
3701
3703
|
};
|
|
3702
|
-
var
|
|
3704
|
+
var Gn = Object.defineProperty, be = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
3703
3705
|
for (var r in t || (t = {}))
|
|
3704
|
-
|
|
3705
|
-
if (
|
|
3706
|
-
for (var r of
|
|
3707
|
-
|
|
3706
|
+
Ft.call(t, r) && ut(e, r, t[r]);
|
|
3707
|
+
if (be)
|
|
3708
|
+
for (var r of be(t))
|
|
3709
|
+
jt.call(t, r) && ut(e, r, t[r]);
|
|
3708
3710
|
return e;
|
|
3709
|
-
},
|
|
3711
|
+
}, te = (e, t) => {
|
|
3710
3712
|
var r = {};
|
|
3711
3713
|
for (var n in e)
|
|
3712
|
-
|
|
3713
|
-
if (e != null &&
|
|
3714
|
-
for (var n of
|
|
3715
|
-
t.indexOf(n) < 0 &&
|
|
3714
|
+
Ft.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3715
|
+
if (e != null && be)
|
|
3716
|
+
for (var n of be(e))
|
|
3717
|
+
t.indexOf(n) < 0 && jt.call(e, n) && (r[n] = e[n]);
|
|
3716
3718
|
return r;
|
|
3717
3719
|
};
|
|
3718
|
-
const
|
|
3719
|
-
const { formats: r } =
|
|
3720
|
+
const se = (e, t) => {
|
|
3721
|
+
const { formats: r } = Y();
|
|
3720
3722
|
if (e in r && t in r[e])
|
|
3721
3723
|
return r[e][t];
|
|
3722
3724
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3723
|
-
},
|
|
3725
|
+
}, Dn = xe(
|
|
3724
3726
|
(e) => {
|
|
3725
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3727
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3726
3728
|
if (r == null)
|
|
3727
3729
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3728
|
-
return n && (i =
|
|
3730
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3729
3731
|
}
|
|
3730
|
-
),
|
|
3732
|
+
), Fn = xe(
|
|
3731
3733
|
(e) => {
|
|
3732
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3734
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3733
3735
|
if (r == null)
|
|
3734
3736
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3735
|
-
return n ? i =
|
|
3737
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3736
3738
|
}
|
|
3737
|
-
),
|
|
3739
|
+
), jn = xe(
|
|
3738
3740
|
(e) => {
|
|
3739
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3741
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3740
3742
|
if (r == null)
|
|
3741
3743
|
throw new Error(
|
|
3742
3744
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3743
3745
|
);
|
|
3744
|
-
return n ? i =
|
|
3746
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3745
3747
|
}
|
|
3746
|
-
),
|
|
3748
|
+
), kn = (e = {}) => {
|
|
3747
3749
|
var t = e, {
|
|
3748
|
-
locale: r =
|
|
3749
|
-
} = t, n =
|
|
3750
|
+
locale: r = V()
|
|
3751
|
+
} = t, n = te(t, [
|
|
3750
3752
|
"locale"
|
|
3751
3753
|
]);
|
|
3752
|
-
return
|
|
3753
|
-
},
|
|
3754
|
+
return Dn(Xe({ locale: r }, n));
|
|
3755
|
+
}, Vn = (e = {}) => {
|
|
3754
3756
|
var t = e, {
|
|
3755
|
-
locale: r =
|
|
3756
|
-
} = t, n =
|
|
3757
|
+
locale: r = V()
|
|
3758
|
+
} = t, n = te(t, [
|
|
3757
3759
|
"locale"
|
|
3758
3760
|
]);
|
|
3759
|
-
return
|
|
3760
|
-
},
|
|
3761
|
+
return Fn(Xe({ locale: r }, n));
|
|
3762
|
+
}, Xn = (e = {}) => {
|
|
3761
3763
|
var t = e, {
|
|
3762
|
-
locale: r =
|
|
3763
|
-
} = t, n =
|
|
3764
|
+
locale: r = V()
|
|
3765
|
+
} = t, n = te(t, [
|
|
3764
3766
|
"locale"
|
|
3765
3767
|
]);
|
|
3766
|
-
return
|
|
3767
|
-
},
|
|
3768
|
+
return jn(Xe({ locale: r }, n));
|
|
3769
|
+
}, zn = xe(
|
|
3768
3770
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3769
|
-
(e, t =
|
|
3770
|
-
ignoreTag:
|
|
3771
|
+
(e, t = V()) => new _n(e, t, Y().formats, {
|
|
3772
|
+
ignoreTag: Y().ignoreTag
|
|
3771
3773
|
})
|
|
3772
|
-
),
|
|
3774
|
+
), Wn = (e, t = {}) => {
|
|
3773
3775
|
var r, n, i, s;
|
|
3774
3776
|
let o = t;
|
|
3775
3777
|
typeof e == "object" && (o = e, e = o.id);
|
|
3776
3778
|
const {
|
|
3777
3779
|
values: a,
|
|
3778
|
-
locale: l =
|
|
3780
|
+
locale: l = V(),
|
|
3779
3781
|
default: u
|
|
3780
3782
|
} = o;
|
|
3781
3783
|
if (l == null)
|
|
3782
3784
|
throw new Error(
|
|
3783
3785
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3784
3786
|
);
|
|
3785
|
-
let h =
|
|
3787
|
+
let h = $t(e, l);
|
|
3786
3788
|
if (!h)
|
|
3787
|
-
h = (s = (i = (n = (r =
|
|
3789
|
+
h = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3788
3790
|
else if (typeof h != "string")
|
|
3789
3791
|
return console.warn(
|
|
3790
3792
|
`[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.`
|
|
@@ -3793,7 +3795,7 @@ const ie = (e, t) => {
|
|
|
3793
3795
|
return h;
|
|
3794
3796
|
let c = h;
|
|
3795
3797
|
try {
|
|
3796
|
-
c =
|
|
3798
|
+
c = zn(h, l).format(a);
|
|
3797
3799
|
} catch (f) {
|
|
3798
3800
|
f instanceof Error && console.warn(
|
|
3799
3801
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3801,24 +3803,24 @@ const ie = (e, t) => {
|
|
|
3801
3803
|
);
|
|
3802
3804
|
}
|
|
3803
3805
|
return c;
|
|
3804
|
-
},
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
function
|
|
3810
|
-
|
|
3811
|
-
}
|
|
3812
|
-
function
|
|
3813
|
-
|
|
3814
|
-
}
|
|
3815
|
-
function
|
|
3806
|
+
}, Zn = (e, t) => Xn(t).format(e), Qn = (e, t) => Vn(t).format(e), qn = (e, t) => kn(t).format(e), Jn = (e, t = V()) => $t(e, t), Yn = K([ee, ae], () => Wn);
|
|
3807
|
+
K([ee], () => Zn);
|
|
3808
|
+
K([ee], () => Qn);
|
|
3809
|
+
K([ee], () => qn);
|
|
3810
|
+
K([ee, ae], () => Jn);
|
|
3811
|
+
function ht(e, t) {
|
|
3812
|
+
Ut(e, t);
|
|
3813
|
+
}
|
|
3814
|
+
function Kn(e) {
|
|
3815
|
+
ee.set(e);
|
|
3816
|
+
}
|
|
3817
|
+
function ei(e, t) {
|
|
3816
3818
|
if (e) {
|
|
3817
3819
|
const r = document.createElement("style");
|
|
3818
3820
|
r.innerHTML = t, e.appendChild(r);
|
|
3819
3821
|
}
|
|
3820
3822
|
}
|
|
3821
|
-
function
|
|
3823
|
+
function ti(e, t) {
|
|
3822
3824
|
const r = new URL(t);
|
|
3823
3825
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3824
3826
|
const i = document.createElement("style");
|
|
@@ -3827,7 +3829,7 @@ function ei(e, t) {
|
|
|
3827
3829
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3828
3830
|
});
|
|
3829
3831
|
}
|
|
3830
|
-
function
|
|
3832
|
+
function ri(e, t, r) {
|
|
3831
3833
|
if (window.emMessageBus) {
|
|
3832
3834
|
const n = document.createElement("style");
|
|
3833
3835
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3835,68 +3837,68 @@ function ti(e, t, r) {
|
|
|
3835
3837
|
});
|
|
3836
3838
|
}
|
|
3837
3839
|
}
|
|
3838
|
-
function
|
|
3839
|
-
|
|
3840
|
+
function ni(e) {
|
|
3841
|
+
Xt(e, "svelte-1bsli1q", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}");
|
|
3840
3842
|
}
|
|
3841
|
-
function
|
|
3843
|
+
function lt(e, t, r) {
|
|
3842
3844
|
const n = e.slice();
|
|
3843
3845
|
return n[21] = t[r], n;
|
|
3844
3846
|
}
|
|
3845
|
-
function
|
|
3847
|
+
function ft(e, t, r) {
|
|
3846
3848
|
const n = e.slice();
|
|
3847
3849
|
return n[21] = t[r], n;
|
|
3848
3850
|
}
|
|
3849
|
-
function
|
|
3851
|
+
function ii(e) {
|
|
3850
3852
|
let t, r = (
|
|
3851
3853
|
/*$_*/
|
|
3852
3854
|
e[4]("popularProviders") + ""
|
|
3853
3855
|
), n, i, s, o, a = (
|
|
3854
3856
|
/*$_*/
|
|
3855
3857
|
e[4]("otherProviders") + ""
|
|
3856
|
-
), l, u, h, c =
|
|
3858
|
+
), l, u, h, c = he(
|
|
3857
3859
|
/*topProviders*/
|
|
3858
3860
|
e[1]
|
|
3859
3861
|
), f = [];
|
|
3860
|
-
for (let
|
|
3861
|
-
f[
|
|
3862
|
-
let g =
|
|
3862
|
+
for (let p = 0; p < c.length; p += 1)
|
|
3863
|
+
f[p] = ct(ft(e, c, p));
|
|
3864
|
+
let g = he(
|
|
3863
3865
|
/*otherProviders*/
|
|
3864
3866
|
e[2]
|
|
3865
|
-
),
|
|
3866
|
-
for (let
|
|
3867
|
-
p
|
|
3867
|
+
), d = [];
|
|
3868
|
+
for (let p = 0; p < g.length; p += 1)
|
|
3869
|
+
d[p] = pt(lt(e, g, p));
|
|
3868
3870
|
return {
|
|
3869
3871
|
c() {
|
|
3870
|
-
t = A("h4"), n = $(r), i =
|
|
3871
|
-
for (let
|
|
3872
|
-
f[
|
|
3873
|
-
s =
|
|
3874
|
-
for (let
|
|
3875
|
-
p
|
|
3876
|
-
h =
|
|
3872
|
+
t = A("h4"), n = $(r), i = U();
|
|
3873
|
+
for (let p = 0; p < f.length; p += 1)
|
|
3874
|
+
f[p].c();
|
|
3875
|
+
s = U(), o = A("h4"), l = $(a), u = U();
|
|
3876
|
+
for (let p = 0; p < d.length; p += 1)
|
|
3877
|
+
d[p].c();
|
|
3878
|
+
h = Zt(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3877
3879
|
},
|
|
3878
|
-
m(
|
|
3879
|
-
C(
|
|
3880
|
+
m(p, v) {
|
|
3881
|
+
C(p, t, v), y(t, n), C(p, i, v);
|
|
3880
3882
|
for (let m = 0; m < f.length; m += 1)
|
|
3881
|
-
f[m] && f[m].m(
|
|
3882
|
-
C(
|
|
3883
|
-
for (let m = 0; m <
|
|
3884
|
-
|
|
3885
|
-
C(
|
|
3883
|
+
f[m] && f[m].m(p, v);
|
|
3884
|
+
C(p, s, v), C(p, o, v), y(o, l), C(p, u, v);
|
|
3885
|
+
for (let m = 0; m < d.length; m += 1)
|
|
3886
|
+
d[m] && d[m].m(p, v);
|
|
3887
|
+
C(p, h, v);
|
|
3886
3888
|
},
|
|
3887
|
-
p(
|
|
3889
|
+
p(p, v) {
|
|
3888
3890
|
if (v & /*$_*/
|
|
3889
3891
|
16 && r !== (r = /*$_*/
|
|
3890
|
-
|
|
3892
|
+
p[4]("popularProviders") + "") && F(n, r), v & /*openGameProviderPage, topProviders, $_*/
|
|
3891
3893
|
50) {
|
|
3892
|
-
c =
|
|
3894
|
+
c = he(
|
|
3893
3895
|
/*topProviders*/
|
|
3894
|
-
|
|
3896
|
+
p[1]
|
|
3895
3897
|
);
|
|
3896
3898
|
let m;
|
|
3897
3899
|
for (m = 0; m < c.length; m += 1) {
|
|
3898
|
-
const
|
|
3899
|
-
f[m] ? f[m].p(
|
|
3900
|
+
const P = ft(p, c, m);
|
|
3901
|
+
f[m] ? f[m].p(P, v) : (f[m] = ct(P), f[m].c(), f[m].m(s.parentNode, s));
|
|
3900
3902
|
}
|
|
3901
3903
|
for (; m < f.length; m += 1)
|
|
3902
3904
|
f[m].d(1);
|
|
@@ -3904,28 +3906,28 @@ function ni(e) {
|
|
|
3904
3906
|
}
|
|
3905
3907
|
if (v & /*$_*/
|
|
3906
3908
|
16 && a !== (a = /*$_*/
|
|
3907
|
-
|
|
3909
|
+
p[4]("otherProviders") + "") && F(l, a), v & /*openGameProviderPage, otherProviders, $_*/
|
|
3908
3910
|
52) {
|
|
3909
|
-
g =
|
|
3911
|
+
g = he(
|
|
3910
3912
|
/*otherProviders*/
|
|
3911
|
-
|
|
3913
|
+
p[2]
|
|
3912
3914
|
);
|
|
3913
3915
|
let m;
|
|
3914
3916
|
for (m = 0; m < g.length; m += 1) {
|
|
3915
|
-
const
|
|
3916
|
-
|
|
3917
|
+
const P = lt(p, g, m);
|
|
3918
|
+
d[m] ? d[m].p(P, v) : (d[m] = pt(P), d[m].c(), d[m].m(h.parentNode, h));
|
|
3917
3919
|
}
|
|
3918
|
-
for (; m <
|
|
3919
|
-
|
|
3920
|
-
|
|
3920
|
+
for (; m < d.length; m += 1)
|
|
3921
|
+
d[m].d(1);
|
|
3922
|
+
d.length = g.length;
|
|
3921
3923
|
}
|
|
3922
3924
|
},
|
|
3923
|
-
d(
|
|
3924
|
-
|
|
3925
|
+
d(p) {
|
|
3926
|
+
p && (I(t), I(i), I(s), I(o), I(u), I(h)), We(f, p), We(d, p);
|
|
3925
3927
|
}
|
|
3926
3928
|
};
|
|
3927
3929
|
}
|
|
3928
|
-
function
|
|
3930
|
+
function si(e) {
|
|
3929
3931
|
let t, r = (
|
|
3930
3932
|
/*$_*/
|
|
3931
3933
|
e[4]("loading") + ""
|
|
@@ -3940,24 +3942,24 @@ function ii(e) {
|
|
|
3940
3942
|
p(i, s) {
|
|
3941
3943
|
s & /*$_*/
|
|
3942
3944
|
16 && r !== (r = /*$_*/
|
|
3943
|
-
i[4]("loading") + "") &&
|
|
3945
|
+
i[4]("loading") + "") && F(n, r);
|
|
3944
3946
|
},
|
|
3945
3947
|
d(i) {
|
|
3946
3948
|
i && I(t);
|
|
3947
3949
|
}
|
|
3948
3950
|
};
|
|
3949
3951
|
}
|
|
3950
|
-
function
|
|
3952
|
+
function ct(e) {
|
|
3951
3953
|
let t, r, n, i, s, o, a, l = (
|
|
3952
3954
|
/*provider*/
|
|
3953
3955
|
e[21].name + ""
|
|
3954
3956
|
), u, h, c, f = (
|
|
3955
3957
|
/*provider*/
|
|
3956
3958
|
e[21].games.count + ""
|
|
3957
|
-
), g,
|
|
3959
|
+
), g, d, p = (
|
|
3958
3960
|
/*$_*/
|
|
3959
3961
|
e[4]("games") + ""
|
|
3960
|
-
), v, m,
|
|
3962
|
+
), v, m, P;
|
|
3961
3963
|
function B() {
|
|
3962
3964
|
return (
|
|
3963
3965
|
/*click_handler*/
|
|
@@ -3969,42 +3971,42 @@ function ft(e) {
|
|
|
3969
3971
|
}
|
|
3970
3972
|
return {
|
|
3971
3973
|
c() {
|
|
3972
|
-
t = A("div"), r = A("img"), s =
|
|
3974
|
+
t = A("div"), r = A("img"), s = U(), o = A("div"), a = A("p"), u = $(l), h = U(), c = A("p"), g = $(f), d = U(), v = $(p), me(r.src, n = /*provider*/
|
|
3973
3975
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
3974
3976
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
3975
3977
|
},
|
|
3976
|
-
m(O,
|
|
3977
|
-
C(O, t,
|
|
3978
|
+
m(O, H) {
|
|
3979
|
+
C(O, t, H), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, d), y(c, v), m || (P = bt(t, "click", B), m = !0);
|
|
3978
3980
|
},
|
|
3979
|
-
p(O,
|
|
3980
|
-
e = O,
|
|
3981
|
-
2 && !
|
|
3982
|
-
e[21].logo) && S(r, "src", n),
|
|
3981
|
+
p(O, H) {
|
|
3982
|
+
e = O, H & /*topProviders*/
|
|
3983
|
+
2 && !me(r.src, n = /*provider*/
|
|
3984
|
+
e[21].logo) && S(r, "src", n), H & /*topProviders*/
|
|
3983
3985
|
2 && i !== (i = /*provider*/
|
|
3984
|
-
e[21].name) && S(r, "alt", i),
|
|
3986
|
+
e[21].name) && S(r, "alt", i), H & /*topProviders*/
|
|
3985
3987
|
2 && l !== (l = /*provider*/
|
|
3986
|
-
e[21].name + "") &&
|
|
3988
|
+
e[21].name + "") && F(u, l), H & /*topProviders*/
|
|
3987
3989
|
2 && f !== (f = /*provider*/
|
|
3988
|
-
e[21].games.count + "") &&
|
|
3989
|
-
16 &&
|
|
3990
|
-
e[4]("games") + "") &&
|
|
3990
|
+
e[21].games.count + "") && F(g, f), H & /*$_*/
|
|
3991
|
+
16 && p !== (p = /*$_*/
|
|
3992
|
+
e[4]("games") + "") && F(v, p);
|
|
3991
3993
|
},
|
|
3992
3994
|
d(O) {
|
|
3993
|
-
O && I(t), m = !1,
|
|
3995
|
+
O && I(t), m = !1, P();
|
|
3994
3996
|
}
|
|
3995
3997
|
};
|
|
3996
3998
|
}
|
|
3997
|
-
function
|
|
3999
|
+
function pt(e) {
|
|
3998
4000
|
let t, r, n, i, s, o, a, l = (
|
|
3999
4001
|
/*provider*/
|
|
4000
4002
|
e[21].name + ""
|
|
4001
4003
|
), u, h, c, f = (
|
|
4002
4004
|
/*provider*/
|
|
4003
4005
|
e[21].games.count + ""
|
|
4004
|
-
), g,
|
|
4006
|
+
), g, d, p = (
|
|
4005
4007
|
/*$_*/
|
|
4006
4008
|
e[4]("games") + ""
|
|
4007
|
-
), v, m,
|
|
4009
|
+
), v, m, P, B;
|
|
4008
4010
|
function O() {
|
|
4009
4011
|
return (
|
|
4010
4012
|
/*click_handler_1*/
|
|
@@ -4016,37 +4018,37 @@ function ct(e) {
|
|
|
4016
4018
|
}
|
|
4017
4019
|
return {
|
|
4018
4020
|
c() {
|
|
4019
|
-
t = A("div"), r = A("img"), s =
|
|
4021
|
+
t = A("div"), r = A("img"), s = U(), o = A("div"), a = A("p"), u = $(l), h = U(), c = A("p"), g = $(f), d = U(), v = $(p), m = U(), me(r.src, n = /*provider*/
|
|
4020
4022
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4021
4023
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4022
4024
|
},
|
|
4023
|
-
m(
|
|
4024
|
-
C(
|
|
4025
|
+
m(H, N) {
|
|
4026
|
+
C(H, t, N), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, d), y(c, v), y(t, m), P || (B = bt(t, "click", O), P = !0);
|
|
4025
4027
|
},
|
|
4026
|
-
p(
|
|
4027
|
-
e =
|
|
4028
|
-
4 && !
|
|
4028
|
+
p(H, N) {
|
|
4029
|
+
e = H, N & /*otherProviders*/
|
|
4030
|
+
4 && !me(r.src, n = /*provider*/
|
|
4029
4031
|
e[21].logo) && S(r, "src", n), N & /*otherProviders*/
|
|
4030
4032
|
4 && i !== (i = /*provider*/
|
|
4031
4033
|
e[21].name) && S(r, "alt", i), N & /*otherProviders*/
|
|
4032
4034
|
4 && l !== (l = /*provider*/
|
|
4033
|
-
e[21].name + "") &&
|
|
4035
|
+
e[21].name + "") && F(u, l), N & /*otherProviders*/
|
|
4034
4036
|
4 && f !== (f = /*provider*/
|
|
4035
|
-
e[21].games.count + "") &&
|
|
4036
|
-
16 &&
|
|
4037
|
-
e[4]("games") + "") &&
|
|
4037
|
+
e[21].games.count + "") && F(g, f), N & /*$_*/
|
|
4038
|
+
16 && p !== (p = /*$_*/
|
|
4039
|
+
e[4]("games") + "") && F(v, p);
|
|
4038
4040
|
},
|
|
4039
|
-
d(
|
|
4040
|
-
|
|
4041
|
+
d(H) {
|
|
4042
|
+
H && I(t), P = !1, B();
|
|
4041
4043
|
}
|
|
4042
4044
|
};
|
|
4043
4045
|
}
|
|
4044
|
-
function
|
|
4046
|
+
function oi(e) {
|
|
4045
4047
|
let t;
|
|
4046
4048
|
function r(s, o) {
|
|
4047
4049
|
return (
|
|
4048
4050
|
/*isLoading*/
|
|
4049
|
-
s[3] === !0 ?
|
|
4051
|
+
s[3] === !0 ? si : ii
|
|
4050
4052
|
);
|
|
4051
4053
|
}
|
|
4052
4054
|
let n = r(e), i = n(e);
|
|
@@ -4067,46 +4069,46 @@ function si(e) {
|
|
|
4067
4069
|
}
|
|
4068
4070
|
};
|
|
4069
4071
|
}
|
|
4070
|
-
function
|
|
4072
|
+
function ai(e, t, r) {
|
|
4071
4073
|
let n;
|
|
4072
|
-
|
|
4073
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, c = [], f = [], g = [],
|
|
4074
|
+
Vt(e, Yn, (b) => r(4, n = b));
|
|
4075
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { mbsource: h } = t, c = [], f = [], g = [], d = !1, p;
|
|
4074
4076
|
const v = () => {
|
|
4075
4077
|
fetch(u).then((L) => L.json()).then((L) => {
|
|
4076
|
-
Object.keys(L).forEach((
|
|
4077
|
-
|
|
4078
|
+
Object.keys(L).forEach((k) => {
|
|
4079
|
+
ht(k, L[k]);
|
|
4078
4080
|
});
|
|
4079
4081
|
}).catch((L) => {
|
|
4080
4082
|
console.log(L);
|
|
4081
4083
|
});
|
|
4082
4084
|
};
|
|
4083
|
-
Object.keys(
|
|
4084
|
-
|
|
4085
|
+
Object.keys(Qe).forEach((b) => {
|
|
4086
|
+
ht(b, Qe[b]);
|
|
4085
4087
|
});
|
|
4086
4088
|
const m = () => {
|
|
4087
|
-
r(3,
|
|
4089
|
+
r(3, d = !0);
|
|
4088
4090
|
const b = new URL(`${i}/v1/casino/vendors`);
|
|
4089
4091
|
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((L) => L.json()).then((L) => {
|
|
4090
|
-
r(3,
|
|
4091
|
-
let
|
|
4092
|
-
|
|
4092
|
+
r(3, d = !1), c = L.items.map((G) => G), r(1, f = c.filter((G) => G.isTopVendor === !0)), r(2, g = c.filter((G) => G.isTopVendor === !1));
|
|
4093
|
+
let k = [];
|
|
4094
|
+
k = c.flatMap((G) => G.subVendors), g.push(...k.filter((G) => G.games.count > 0));
|
|
4093
4095
|
});
|
|
4094
|
-
},
|
|
4096
|
+
}, P = (b, L, k) => {
|
|
4095
4097
|
window.postMessage(
|
|
4096
4098
|
{
|
|
4097
4099
|
type: "OpenGameProvider",
|
|
4098
4100
|
providerId: b,
|
|
4099
4101
|
providerName: L,
|
|
4100
|
-
providerLogo:
|
|
4102
|
+
providerLogo: k
|
|
4101
4103
|
},
|
|
4102
4104
|
window.location.href
|
|
4103
4105
|
);
|
|
4104
4106
|
}, B = () => {
|
|
4105
|
-
|
|
4106
|
-
}, O = (b) =>
|
|
4107
|
+
Kn(o);
|
|
4108
|
+
}, O = (b) => P(b.id, b.name, b.logo), H = (b) => P(b.id, b.name, b.logo);
|
|
4107
4109
|
function N(b) {
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
+
we[b ? "unshift" : "push"](() => {
|
|
4111
|
+
p = b, r(0, p);
|
|
4110
4112
|
});
|
|
4111
4113
|
}
|
|
4112
4114
|
return e.$$set = (b) => {
|
|
@@ -4116,16 +4118,16 @@ function oi(e, t, r) {
|
|
|
4116
4118
|
448 && i && o && s && m(), e.$$.dirty & /*lang*/
|
|
4117
4119
|
256 && o && B(), e.$$.dirty & /*translationurl*/
|
|
4118
4120
|
2048 && u && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4119
|
-
513 && a &&
|
|
4120
|
-
1025 && l &&
|
|
4121
|
-
4097 && h &&
|
|
4121
|
+
513 && a && p && ei(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4122
|
+
1025 && l && p && ti(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4123
|
+
4097 && h && p && ri(p, `${h}.Style`);
|
|
4122
4124
|
}, [
|
|
4123
|
-
|
|
4125
|
+
p,
|
|
4124
4126
|
f,
|
|
4125
4127
|
g,
|
|
4126
|
-
|
|
4128
|
+
d,
|
|
4127
4129
|
n,
|
|
4128
|
-
|
|
4130
|
+
P,
|
|
4129
4131
|
i,
|
|
4130
4132
|
s,
|
|
4131
4133
|
o,
|
|
@@ -4134,18 +4136,18 @@ function oi(e, t, r) {
|
|
|
4134
4136
|
u,
|
|
4135
4137
|
h,
|
|
4136
4138
|
O,
|
|
4137
|
-
|
|
4139
|
+
H,
|
|
4138
4140
|
N
|
|
4139
4141
|
];
|
|
4140
4142
|
}
|
|
4141
|
-
class
|
|
4143
|
+
class ui extends ur {
|
|
4142
4144
|
constructor(t) {
|
|
4143
|
-
super(),
|
|
4145
|
+
super(), or(
|
|
4144
4146
|
this,
|
|
4145
4147
|
t,
|
|
4148
|
+
ai,
|
|
4146
4149
|
oi,
|
|
4147
|
-
|
|
4148
|
-
mt,
|
|
4150
|
+
dt,
|
|
4149
4151
|
{
|
|
4150
4152
|
endpoint: 6,
|
|
4151
4153
|
datasource: 7,
|
|
@@ -4155,53 +4157,53 @@ class ai extends ar {
|
|
|
4155
4157
|
translationurl: 11,
|
|
4156
4158
|
mbsource: 12
|
|
4157
4159
|
},
|
|
4158
|
-
|
|
4160
|
+
ni
|
|
4159
4161
|
);
|
|
4160
4162
|
}
|
|
4161
4163
|
get endpoint() {
|
|
4162
4164
|
return this.$$.ctx[6];
|
|
4163
4165
|
}
|
|
4164
4166
|
set endpoint(t) {
|
|
4165
|
-
this.$$set({ endpoint: t }),
|
|
4167
|
+
this.$$set({ endpoint: t }), D();
|
|
4166
4168
|
}
|
|
4167
4169
|
get datasource() {
|
|
4168
4170
|
return this.$$.ctx[7];
|
|
4169
4171
|
}
|
|
4170
4172
|
set datasource(t) {
|
|
4171
|
-
this.$$set({ datasource: t }),
|
|
4173
|
+
this.$$set({ datasource: t }), D();
|
|
4172
4174
|
}
|
|
4173
4175
|
get lang() {
|
|
4174
4176
|
return this.$$.ctx[8];
|
|
4175
4177
|
}
|
|
4176
4178
|
set lang(t) {
|
|
4177
|
-
this.$$set({ lang: t }),
|
|
4179
|
+
this.$$set({ lang: t }), D();
|
|
4178
4180
|
}
|
|
4179
4181
|
get clientstyling() {
|
|
4180
4182
|
return this.$$.ctx[9];
|
|
4181
4183
|
}
|
|
4182
4184
|
set clientstyling(t) {
|
|
4183
|
-
this.$$set({ clientstyling: t }),
|
|
4185
|
+
this.$$set({ clientstyling: t }), D();
|
|
4184
4186
|
}
|
|
4185
4187
|
get clientstylingurl() {
|
|
4186
4188
|
return this.$$.ctx[10];
|
|
4187
4189
|
}
|
|
4188
4190
|
set clientstylingurl(t) {
|
|
4189
|
-
this.$$set({ clientstylingurl: t }),
|
|
4191
|
+
this.$$set({ clientstylingurl: t }), D();
|
|
4190
4192
|
}
|
|
4191
4193
|
get translationurl() {
|
|
4192
4194
|
return this.$$.ctx[11];
|
|
4193
4195
|
}
|
|
4194
4196
|
set translationurl(t) {
|
|
4195
|
-
this.$$set({ translationurl: t }),
|
|
4197
|
+
this.$$set({ translationurl: t }), D();
|
|
4196
4198
|
}
|
|
4197
4199
|
get mbsource() {
|
|
4198
4200
|
return this.$$.ctx[12];
|
|
4199
4201
|
}
|
|
4200
4202
|
set mbsource(t) {
|
|
4201
|
-
this.$$set({ mbsource: t }),
|
|
4203
|
+
this.$$set({ mbsource: t }), D();
|
|
4202
4204
|
}
|
|
4203
4205
|
}
|
|
4204
|
-
|
|
4206
|
+
ar(ui, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4205
4207
|
export {
|
|
4206
|
-
|
|
4208
|
+
ui as C
|
|
4207
4209
|
};
|