@everymatrix/casino-random-game 1.86.2 → 1.86.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/{CasinoRandomGame-C7wTtBHD.js → CasinoRandomGame-BlDVc3bv.js} +779 -800
- package/components/{CasinoRandomGame-B0w2ICaH.js → CasinoRandomGame-D3gInu3z.js} +784 -805
- package/components/CasinoRandomGame-sQqe-0Il.cjs +19 -0
- package/es2015/casino-random-game.cjs +1 -1
- package/es2015/casino-random-game.js +1 -1
- package/esnext/casino-random-game.js +1 -1
- package/package.json +1 -1
- package/components/CasinoRandomGame-CW-B_XJF.cjs +0 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function
|
|
1
|
+
function N() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function jr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,50 +8,50 @@ function kr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Vt(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function mt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
17
|
function z(e) {
|
|
18
|
-
e.forEach(
|
|
18
|
+
e.forEach(Vt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function ot(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Wt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
26
|
let ge;
|
|
27
|
-
function
|
|
27
|
+
function dt(e, t) {
|
|
28
28
|
return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function kr(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Xt(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
37
|
-
return
|
|
37
|
+
return N;
|
|
38
38
|
}
|
|
39
39
|
const r = e.subscribe(...t);
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
e.$$.on_destroy.push(
|
|
42
|
+
function Vr(e, t, r) {
|
|
43
|
+
e.$$.on_destroy.push(Xt(t, r));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Wr(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
|
-
const i =
|
|
47
|
+
const i = zt(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e[1] && n ?
|
|
51
|
+
function zt(e, t, r, n) {
|
|
52
|
+
return e[1] && n ? jr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Xr(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
56
56
|
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
@@ -66,13 +66,13 @@ function zr(e, t, r, n) {
|
|
|
66
66
|
}
|
|
67
67
|
return t.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function zr(e, t, r, n, i, o) {
|
|
70
70
|
if (i) {
|
|
71
|
-
const a =
|
|
71
|
+
const a = zt(t, r, n, o);
|
|
72
72
|
e.p(a, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Jr(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
77
|
const t = [], r = e.ctx.length / 32;
|
|
78
78
|
for (let n = 0; n < r; n++)
|
|
@@ -81,17 +81,17 @@ function Zr(e) {
|
|
|
81
81
|
}
|
|
82
82
|
return -1;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function x(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const n =
|
|
87
|
+
function Zr(e, t, r) {
|
|
88
|
+
const n = Qr(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
|
-
const i =
|
|
91
|
-
i.id = t, i.textContent = r,
|
|
90
|
+
const i = S("style");
|
|
91
|
+
i.id = t, i.textContent = r, Yr(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Qr(e) {
|
|
95
95
|
if (!e)
|
|
96
96
|
return document;
|
|
97
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -101,27 +101,27 @@ function Yr(e) {
|
|
|
101
101
|
t
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function Yr(e, t) {
|
|
105
|
+
return x(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
108
108
|
t
|
|
109
109
|
), t.sheet;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function O(e, t, r) {
|
|
112
112
|
e.insertBefore(t, r || null);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function R(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function qr(e, t) {
|
|
118
118
|
for (let r = 0; r < e.length; r += 1)
|
|
119
119
|
e[r] && e[r].d(t);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function S(e) {
|
|
122
122
|
return document.createElement(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function pt(e) {
|
|
125
125
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
126
126
|
}
|
|
127
127
|
function j(e) {
|
|
@@ -136,14 +136,14 @@ function Te(e, t, r, n) {
|
|
|
136
136
|
function g(e, t, r) {
|
|
137
137
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Kr(e) {
|
|
140
140
|
return Array.from(e.childNodes);
|
|
141
141
|
}
|
|
142
142
|
function X(e, t) {
|
|
143
143
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
144
144
|
t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function en(e) {
|
|
147
147
|
const t = {};
|
|
148
148
|
return e.childNodes.forEach(
|
|
149
149
|
/** @param {Element} node */
|
|
@@ -152,72 +152,72 @@ function tn(e) {
|
|
|
152
152
|
}
|
|
153
153
|
), t;
|
|
154
154
|
}
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
155
|
+
let fe;
|
|
156
|
+
function he(e) {
|
|
157
|
+
fe = e;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
if (!
|
|
159
|
+
function tn() {
|
|
160
|
+
if (!fe)
|
|
161
161
|
throw new Error("Function called outside component initialization");
|
|
162
|
-
return
|
|
162
|
+
return fe;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
164
|
+
function rn(e) {
|
|
165
|
+
tn().$$.on_mount.push(e);
|
|
166
166
|
}
|
|
167
167
|
const q = [], He = [];
|
|
168
168
|
let K = [];
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
function
|
|
172
|
-
|
|
169
|
+
const bt = [], Jt = /* @__PURE__ */ Promise.resolve();
|
|
170
|
+
let ke = !1;
|
|
171
|
+
function Zt() {
|
|
172
|
+
ke || (ke = !0, Jt.then(I));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
174
|
+
function nn() {
|
|
175
|
+
return Zt(), Jt;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ve(e) {
|
|
178
178
|
K.push(e);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
181
181
|
let Q = 0;
|
|
182
|
-
function
|
|
182
|
+
function I() {
|
|
183
183
|
if (Q !== 0)
|
|
184
184
|
return;
|
|
185
|
-
const e =
|
|
185
|
+
const e = fe;
|
|
186
186
|
do {
|
|
187
187
|
try {
|
|
188
188
|
for (; Q < q.length; ) {
|
|
189
189
|
const t = q[Q];
|
|
190
|
-
Q++,
|
|
190
|
+
Q++, he(t), on(t.$$);
|
|
191
191
|
}
|
|
192
192
|
} catch (t) {
|
|
193
193
|
throw q.length = 0, Q = 0, t;
|
|
194
194
|
}
|
|
195
|
-
for (
|
|
195
|
+
for (he(null), q.length = 0, Q = 0; He.length; )
|
|
196
196
|
He.pop()();
|
|
197
197
|
for (let t = 0; t < K.length; t += 1) {
|
|
198
198
|
const r = K[t];
|
|
199
|
-
|
|
199
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
200
200
|
}
|
|
201
201
|
K.length = 0;
|
|
202
202
|
} while (q.length);
|
|
203
|
-
for (;
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
for (; bt.length; )
|
|
204
|
+
bt.pop()();
|
|
205
|
+
ke = !1, Ne.clear(), he(e);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function on(e) {
|
|
208
208
|
if (e.fragment !== null) {
|
|
209
209
|
e.update(), z(e.before_update);
|
|
210
210
|
const t = e.dirty;
|
|
211
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
211
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function an(e) {
|
|
215
215
|
const t = [], r = [];
|
|
216
216
|
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
|
217
217
|
}
|
|
218
218
|
const _e = /* @__PURE__ */ new Set();
|
|
219
219
|
let W;
|
|
220
|
-
function
|
|
220
|
+
function sn() {
|
|
221
221
|
W = {
|
|
222
222
|
r: 0,
|
|
223
223
|
c: [],
|
|
@@ -225,13 +225,13 @@ function un() {
|
|
|
225
225
|
// parent group
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function un() {
|
|
229
229
|
W.r || z(W.c), W = W.p;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function ce(e, t) {
|
|
232
232
|
e && e.i && (_e.delete(e), e.i(t));
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function We(e, t, r, n) {
|
|
235
235
|
if (e && e.o) {
|
|
236
236
|
if (_e.has(e))
|
|
237
237
|
return;
|
|
@@ -241,34 +241,34 @@ function ze(e, t, r, n) {
|
|
|
241
241
|
} else
|
|
242
242
|
n && n();
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function gt(e) {
|
|
245
245
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function ln(e, t, r) {
|
|
248
248
|
const { fragment: n, after_update: i } = e.$$;
|
|
249
|
-
n && n.m(t, r),
|
|
250
|
-
const o = e.$$.on_mount.map(
|
|
249
|
+
n && n.m(t, r), Ve(() => {
|
|
250
|
+
const o = e.$$.on_mount.map(Vt).filter(ot);
|
|
251
251
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : z(o), e.$$.on_mount = [];
|
|
252
|
-
}), i.forEach(
|
|
252
|
+
}), i.forEach(Ve);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function hn(e, t) {
|
|
255
255
|
const r = e.$$;
|
|
256
|
-
r.fragment !== null && (
|
|
256
|
+
r.fragment !== null && (an(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
258
|
+
function cn(e, t) {
|
|
259
|
+
e.$$.dirty[0] === -1 && (q.push(e), Zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
const h =
|
|
263
|
-
|
|
261
|
+
function fn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
262
|
+
const h = fe;
|
|
263
|
+
he(e);
|
|
264
264
|
const l = e.$$ = {
|
|
265
265
|
fragment: null,
|
|
266
266
|
ctx: [],
|
|
267
267
|
// state
|
|
268
268
|
props: o,
|
|
269
|
-
update:
|
|
269
|
+
update: N,
|
|
270
270
|
not_equal: i,
|
|
271
|
-
bound:
|
|
271
|
+
bound: mt(),
|
|
272
272
|
// lifecycle
|
|
273
273
|
on_mount: [],
|
|
274
274
|
on_destroy: [],
|
|
@@ -277,7 +277,7 @@ function mn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
277
277
|
after_update: [],
|
|
278
278
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
279
279
|
// everything else
|
|
280
|
-
callbacks:
|
|
280
|
+
callbacks: mt(),
|
|
281
281
|
dirty: s,
|
|
282
282
|
skip_bound: !1,
|
|
283
283
|
root: t.target || h.$$.root
|
|
@@ -286,19 +286,19 @@ function mn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
286
286
|
let u = !1;
|
|
287
287
|
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
288
288
|
const d = m.length ? m[0] : c;
|
|
289
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u &&
|
|
289
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && cn(e, f)), c;
|
|
290
290
|
}) : [], l.update(), u = !0, z(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
291
291
|
if (t.hydrate) {
|
|
292
|
-
const f =
|
|
293
|
-
l.fragment && l.fragment.l(f), f.forEach(
|
|
292
|
+
const f = Kr(t.target);
|
|
293
|
+
l.fragment && l.fragment.l(f), f.forEach(R);
|
|
294
294
|
} else
|
|
295
295
|
l.fragment && l.fragment.c();
|
|
296
|
-
t.intro &&
|
|
296
|
+
t.intro && ce(e.$$.fragment), ln(e, t.target, t.anchor), I();
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
he(h);
|
|
299
299
|
}
|
|
300
|
-
let
|
|
301
|
-
typeof HTMLElement == "function" && (
|
|
300
|
+
let Qt;
|
|
301
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
302
302
|
/** The Svelte component constructor */
|
|
303
303
|
$$ctor;
|
|
304
304
|
/** Slots */
|
|
@@ -340,24 +340,24 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
340
340
|
let o;
|
|
341
341
|
return {
|
|
342
342
|
c: function() {
|
|
343
|
-
o =
|
|
343
|
+
o = S("slot"), i !== "default" && g(o, "name", i);
|
|
344
344
|
},
|
|
345
345
|
/**
|
|
346
346
|
* @param {HTMLElement} target
|
|
347
347
|
* @param {HTMLElement} [anchor]
|
|
348
348
|
*/
|
|
349
349
|
m: function(h, l) {
|
|
350
|
-
|
|
350
|
+
O(h, o, l);
|
|
351
351
|
},
|
|
352
352
|
d: function(h) {
|
|
353
|
-
h &&
|
|
353
|
+
h && R(o);
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
358
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
359
359
|
return;
|
|
360
|
-
const t = {}, r =
|
|
360
|
+
const t = {}, r = en(this);
|
|
361
361
|
for (const i of this.$$s)
|
|
362
362
|
i in r && (t[i] = [e(i)]);
|
|
363
363
|
for (const i of this.attributes) {
|
|
@@ -444,8 +444,8 @@ function xe(e, t, r, n) {
|
|
|
444
444
|
return t;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
let a = class extends
|
|
447
|
+
function mn(e, t, r, n, i, o) {
|
|
448
|
+
let a = class extends Qt {
|
|
449
449
|
constructor() {
|
|
450
450
|
super(e, r, i), this.$$p_d = t;
|
|
451
451
|
}
|
|
@@ -473,7 +473,7 @@ function dn(e, t, r, n, i, o) {
|
|
|
473
473
|
}), e.element = /** @type {any} */
|
|
474
474
|
a, a;
|
|
475
475
|
}
|
|
476
|
-
class
|
|
476
|
+
class dn {
|
|
477
477
|
/**
|
|
478
478
|
* ### PRIVATE API
|
|
479
479
|
*
|
|
@@ -492,7 +492,7 @@ class pn {
|
|
|
492
492
|
$$set = void 0;
|
|
493
493
|
/** @returns {void} */
|
|
494
494
|
$destroy() {
|
|
495
|
-
|
|
495
|
+
hn(this, 1), this.$destroy = N;
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
498
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -501,8 +501,8 @@ class pn {
|
|
|
501
501
|
* @returns {() => void}
|
|
502
502
|
*/
|
|
503
503
|
$on(t, r) {
|
|
504
|
-
if (!
|
|
505
|
-
return
|
|
504
|
+
if (!ot(r))
|
|
505
|
+
return N;
|
|
506
506
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
507
507
|
return n.push(r), () => {
|
|
508
508
|
const i = n.indexOf(r);
|
|
@@ -514,11 +514,11 @@ class pn {
|
|
|
514
514
|
* @returns {void}
|
|
515
515
|
*/
|
|
516
516
|
$set(t) {
|
|
517
|
-
this.$$set && !
|
|
517
|
+
this.$$set && !kr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
const
|
|
521
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
520
|
+
const pn = "4";
|
|
521
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pn);
|
|
522
522
|
/*! *****************************************************************************
|
|
523
523
|
Copyright (c) Microsoft Corporation.
|
|
524
524
|
|
|
@@ -533,24 +533,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
533
533
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
534
534
|
PERFORMANCE OF THIS SOFTWARE.
|
|
535
535
|
***************************************************************************** */
|
|
536
|
-
var
|
|
537
|
-
return
|
|
536
|
+
var Xe = function(e, t) {
|
|
537
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
538
538
|
r.__proto__ = n;
|
|
539
539
|
} || function(r, n) {
|
|
540
540
|
for (var i in n)
|
|
541
541
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
542
|
-
},
|
|
542
|
+
}, Xe(e, t);
|
|
543
543
|
};
|
|
544
|
-
function
|
|
544
|
+
function D(e, t) {
|
|
545
545
|
if (typeof t != "function" && t !== null)
|
|
546
546
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
547
|
-
|
|
547
|
+
Xe(e, t);
|
|
548
548
|
function r() {
|
|
549
549
|
this.constructor = e;
|
|
550
550
|
}
|
|
551
551
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
var _ = function() {
|
|
554
|
+
return _ = Object.assign || function(t) {
|
|
555
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
556
|
+
r = arguments[n];
|
|
557
|
+
for (var o in r)
|
|
558
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
559
|
+
}
|
|
560
|
+
return t;
|
|
561
|
+
}, _.apply(this, arguments);
|
|
562
|
+
};
|
|
563
|
+
function bn(e, t) {
|
|
564
|
+
var r = {};
|
|
565
|
+
for (var n in e)
|
|
566
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
567
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
568
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
569
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
570
|
+
return r;
|
|
571
|
+
}
|
|
572
|
+
function ze(e) {
|
|
554
573
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
555
574
|
if (r)
|
|
556
575
|
return r.call(e);
|
|
@@ -562,7 +581,7 @@ function Ze(e) {
|
|
|
562
581
|
};
|
|
563
582
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
564
583
|
}
|
|
565
|
-
function
|
|
584
|
+
function Je(e, t) {
|
|
566
585
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
567
586
|
if (!r)
|
|
568
587
|
return e;
|
|
@@ -582,22 +601,22 @@ function Qe(e, t) {
|
|
|
582
601
|
}
|
|
583
602
|
return o;
|
|
584
603
|
}
|
|
585
|
-
function
|
|
586
|
-
if (arguments.length === 2)
|
|
604
|
+
function ee(e, t, r) {
|
|
605
|
+
if (r || arguments.length === 2)
|
|
587
606
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
588
607
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
589
608
|
return e.concat(o || t);
|
|
590
609
|
}
|
|
591
|
-
function
|
|
610
|
+
function F(e) {
|
|
592
611
|
return typeof e == "function";
|
|
593
612
|
}
|
|
594
|
-
function
|
|
613
|
+
function Yt(e) {
|
|
595
614
|
var t = function(n) {
|
|
596
615
|
Error.call(n), n.stack = new Error().stack;
|
|
597
616
|
}, r = e(t);
|
|
598
617
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
599
618
|
}
|
|
600
|
-
var
|
|
619
|
+
var Ce = Yt(function(e) {
|
|
601
620
|
return function(r) {
|
|
602
621
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
603
622
|
` + r.map(function(n, i) {
|
|
@@ -606,13 +625,13 @@ var Ue = Kt(function(e) {
|
|
|
606
625
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
607
626
|
};
|
|
608
627
|
});
|
|
609
|
-
function
|
|
628
|
+
function Ze(e, t) {
|
|
610
629
|
if (e) {
|
|
611
630
|
var r = e.indexOf(t);
|
|
612
631
|
0 <= r && e.splice(r, 1);
|
|
613
632
|
}
|
|
614
633
|
}
|
|
615
|
-
var
|
|
634
|
+
var Pe = function() {
|
|
616
635
|
function e(t) {
|
|
617
636
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
618
637
|
}
|
|
@@ -624,7 +643,7 @@ var Oe = function() {
|
|
|
624
643
|
if (a)
|
|
625
644
|
if (this._parentage = null, Array.isArray(a))
|
|
626
645
|
try {
|
|
627
|
-
for (var s =
|
|
646
|
+
for (var s = ze(a), h = s.next(); !h.done; h = s.next()) {
|
|
628
647
|
var l = h.value;
|
|
629
648
|
l.remove(this);
|
|
630
649
|
}
|
|
@@ -641,22 +660,22 @@ var Oe = function() {
|
|
|
641
660
|
else
|
|
642
661
|
a.remove(this);
|
|
643
662
|
var u = this.initialTeardown;
|
|
644
|
-
if (
|
|
663
|
+
if (F(u))
|
|
645
664
|
try {
|
|
646
665
|
u();
|
|
647
666
|
} catch (p) {
|
|
648
|
-
o = p instanceof
|
|
667
|
+
o = p instanceof Ce ? p.errors : [p];
|
|
649
668
|
}
|
|
650
669
|
var f = this._finalizers;
|
|
651
670
|
if (f) {
|
|
652
671
|
this._finalizers = null;
|
|
653
672
|
try {
|
|
654
|
-
for (var c =
|
|
673
|
+
for (var c = ze(f), m = c.next(); !m.done; m = c.next()) {
|
|
655
674
|
var d = m.value;
|
|
656
675
|
try {
|
|
657
|
-
|
|
676
|
+
yt(d);
|
|
658
677
|
} catch (p) {
|
|
659
|
-
o = o ?? [], p instanceof
|
|
678
|
+
o = o ?? [], p instanceof Ce ? o = ee(ee([], Je(o)), Je(p.errors)) : o.push(p);
|
|
660
679
|
}
|
|
661
680
|
}
|
|
662
681
|
} catch (p) {
|
|
@@ -671,13 +690,13 @@ var Oe = function() {
|
|
|
671
690
|
}
|
|
672
691
|
}
|
|
673
692
|
if (o)
|
|
674
|
-
throw new
|
|
693
|
+
throw new Ce(o);
|
|
675
694
|
}
|
|
676
695
|
}, e.prototype.add = function(t) {
|
|
677
696
|
var r;
|
|
678
697
|
if (t && t !== this)
|
|
679
698
|
if (this.closed)
|
|
680
|
-
|
|
699
|
+
yt(t);
|
|
681
700
|
else {
|
|
682
701
|
if (t instanceof e) {
|
|
683
702
|
if (t.closed || t._hasParent(this))
|
|
@@ -694,52 +713,56 @@ var Oe = function() {
|
|
|
694
713
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
695
714
|
}, e.prototype._removeParent = function(t) {
|
|
696
715
|
var r = this._parentage;
|
|
697
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
716
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
|
|
698
717
|
}, e.prototype.remove = function(t) {
|
|
699
718
|
var r = this._finalizers;
|
|
700
|
-
r &&
|
|
719
|
+
r && Ze(r, t), t instanceof e && t._removeParent(this);
|
|
701
720
|
}, e.EMPTY = function() {
|
|
702
721
|
var t = new e();
|
|
703
722
|
return t.closed = !0, t;
|
|
704
723
|
}(), e;
|
|
705
|
-
}(),
|
|
706
|
-
function
|
|
707
|
-
return e instanceof
|
|
708
|
-
}
|
|
709
|
-
function
|
|
710
|
-
|
|
711
|
-
}
|
|
712
|
-
var
|
|
713
|
-
|
|
714
|
-
|
|
724
|
+
}(), qt = Pe.EMPTY;
|
|
725
|
+
function Kt(e) {
|
|
726
|
+
return e instanceof Pe || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
|
|
727
|
+
}
|
|
728
|
+
function yt(e) {
|
|
729
|
+
F(e) ? e() : e.unsubscribe();
|
|
730
|
+
}
|
|
731
|
+
var er = {
|
|
732
|
+
onUnhandledError: null,
|
|
733
|
+
onStoppedNotification: null,
|
|
734
|
+
Promise: void 0,
|
|
735
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
736
|
+
useDeprecatedNextContext: !1
|
|
737
|
+
}, gn = {
|
|
715
738
|
setTimeout: function(e, t) {
|
|
716
739
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
717
740
|
r[n - 2] = arguments[n];
|
|
718
|
-
return setTimeout.apply(void 0,
|
|
741
|
+
return setTimeout.apply(void 0, ee([e, t], Je(r)));
|
|
719
742
|
},
|
|
720
743
|
clearTimeout: function(e) {
|
|
721
744
|
return clearTimeout(e);
|
|
722
745
|
},
|
|
723
746
|
delegate: void 0
|
|
724
747
|
};
|
|
725
|
-
function
|
|
726
|
-
|
|
748
|
+
function yn(e) {
|
|
749
|
+
gn.setTimeout(function() {
|
|
727
750
|
throw e;
|
|
728
751
|
});
|
|
729
752
|
}
|
|
730
|
-
function
|
|
753
|
+
function vt() {
|
|
731
754
|
}
|
|
732
755
|
function Ee(e) {
|
|
733
756
|
e();
|
|
734
757
|
}
|
|
735
|
-
var
|
|
736
|
-
|
|
758
|
+
var tr = function(e) {
|
|
759
|
+
D(t, e);
|
|
737
760
|
function t(r) {
|
|
738
761
|
var n = e.call(this) || this;
|
|
739
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
762
|
+
return n.isStopped = !1, r ? (n.destination = r, Kt(r) && r.add(n)) : n.destination = En, n;
|
|
740
763
|
}
|
|
741
764
|
return t.create = function(r, n, i) {
|
|
742
|
-
return new
|
|
765
|
+
return new Qe(r, n, i);
|
|
743
766
|
}, t.prototype.next = function(r) {
|
|
744
767
|
this.isStopped || this._next(r);
|
|
745
768
|
}, t.prototype.error = function(r) {
|
|
@@ -763,7 +786,11 @@ var rr = function(e) {
|
|
|
763
786
|
this.unsubscribe();
|
|
764
787
|
}
|
|
765
788
|
}, t;
|
|
766
|
-
}(
|
|
789
|
+
}(Pe), vn = Function.prototype.bind;
|
|
790
|
+
function Ge(e, t) {
|
|
791
|
+
return vn.call(e, t);
|
|
792
|
+
}
|
|
793
|
+
var _n = function() {
|
|
767
794
|
function e(t) {
|
|
768
795
|
this.partialObserver = t;
|
|
769
796
|
}
|
|
@@ -794,29 +821,41 @@ var rr = function(e) {
|
|
|
794
821
|
ye(r);
|
|
795
822
|
}
|
|
796
823
|
}, e;
|
|
797
|
-
}(),
|
|
798
|
-
|
|
824
|
+
}(), Qe = function(e) {
|
|
825
|
+
D(t, e);
|
|
799
826
|
function t(r, n, i) {
|
|
800
827
|
var o = e.call(this) || this, a;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
828
|
+
if (F(r) || !r)
|
|
829
|
+
a = {
|
|
830
|
+
next: r ?? void 0,
|
|
831
|
+
error: n ?? void 0,
|
|
832
|
+
complete: i ?? void 0
|
|
833
|
+
};
|
|
834
|
+
else {
|
|
835
|
+
var s;
|
|
836
|
+
o && er.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
837
|
+
return o.unsubscribe();
|
|
838
|
+
}, a = {
|
|
839
|
+
next: r.next && Ge(r.next, s),
|
|
840
|
+
error: r.error && Ge(r.error, s),
|
|
841
|
+
complete: r.complete && Ge(r.complete, s)
|
|
842
|
+
}) : a = r;
|
|
843
|
+
}
|
|
844
|
+
return o.destination = new _n(a), o;
|
|
806
845
|
}
|
|
807
846
|
return t;
|
|
808
|
-
}(
|
|
847
|
+
}(tr);
|
|
809
848
|
function ye(e) {
|
|
810
|
-
|
|
849
|
+
yn(e);
|
|
811
850
|
}
|
|
812
851
|
function xn(e) {
|
|
813
852
|
throw e;
|
|
814
853
|
}
|
|
815
854
|
var En = {
|
|
816
855
|
closed: !0,
|
|
817
|
-
next:
|
|
856
|
+
next: vt,
|
|
818
857
|
error: xn,
|
|
819
|
-
complete:
|
|
858
|
+
complete: vt
|
|
820
859
|
}, wn = function() {
|
|
821
860
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
822
861
|
}();
|
|
@@ -830,7 +869,7 @@ function Tn(e) {
|
|
|
830
869
|
}, r);
|
|
831
870
|
};
|
|
832
871
|
}
|
|
833
|
-
var
|
|
872
|
+
var _t = function() {
|
|
834
873
|
function e(t) {
|
|
835
874
|
t && (this._subscribe = t);
|
|
836
875
|
}
|
|
@@ -838,7 +877,7 @@ var Et = function() {
|
|
|
838
877
|
var r = new e();
|
|
839
878
|
return r.source = this, r.operator = t, r;
|
|
840
879
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
841
|
-
var i = this, o = Bn(t) ? t : new
|
|
880
|
+
var i = this, o = Bn(t) ? t : new Qe(t, r, n);
|
|
842
881
|
return Ee(function() {
|
|
843
882
|
var a = i, s = a.operator, h = a.source;
|
|
844
883
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -851,8 +890,8 @@ var Et = function() {
|
|
|
851
890
|
}
|
|
852
891
|
}, e.prototype.forEach = function(t, r) {
|
|
853
892
|
var n = this;
|
|
854
|
-
return r =
|
|
855
|
-
var a = new
|
|
893
|
+
return r = xt(r), new r(function(i, o) {
|
|
894
|
+
var a = new Qe({
|
|
856
895
|
next: function(s) {
|
|
857
896
|
try {
|
|
858
897
|
t(s);
|
|
@@ -876,7 +915,7 @@ var Et = function() {
|
|
|
876
915
|
return Tn(t)(this);
|
|
877
916
|
}, e.prototype.toPromise = function(t) {
|
|
878
917
|
var r = this;
|
|
879
|
-
return t =
|
|
918
|
+
return t = xt(t), new t(function(n, i) {
|
|
880
919
|
var o;
|
|
881
920
|
r.subscribe(function(a) {
|
|
882
921
|
return o = a;
|
|
@@ -890,28 +929,28 @@ var Et = function() {
|
|
|
890
929
|
return new e(t);
|
|
891
930
|
}, e;
|
|
892
931
|
}();
|
|
893
|
-
function
|
|
932
|
+
function xt(e) {
|
|
894
933
|
var t;
|
|
895
|
-
return (t = e ??
|
|
934
|
+
return (t = e ?? er.Promise) !== null && t !== void 0 ? t : Promise;
|
|
896
935
|
}
|
|
897
936
|
function Hn(e) {
|
|
898
|
-
return e &&
|
|
937
|
+
return e && F(e.next) && F(e.error) && F(e.complete);
|
|
899
938
|
}
|
|
900
939
|
function Bn(e) {
|
|
901
|
-
return e && e instanceof
|
|
940
|
+
return e && e instanceof tr || Hn(e) && Kt(e);
|
|
902
941
|
}
|
|
903
|
-
var An =
|
|
942
|
+
var An = Yt(function(e) {
|
|
904
943
|
return function() {
|
|
905
944
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
906
945
|
};
|
|
907
|
-
}),
|
|
908
|
-
|
|
946
|
+
}), rr = function(e) {
|
|
947
|
+
D(t, e);
|
|
909
948
|
function t() {
|
|
910
949
|
var r = e.call(this) || this;
|
|
911
950
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
912
951
|
}
|
|
913
952
|
return t.prototype.lift = function(r) {
|
|
914
|
-
var n = new
|
|
953
|
+
var n = new Et(this, this);
|
|
915
954
|
return n.operator = r, n;
|
|
916
955
|
}, t.prototype._throwIfClosed = function() {
|
|
917
956
|
if (this.closed)
|
|
@@ -923,7 +962,7 @@ var An = Kt(function(e) {
|
|
|
923
962
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
924
963
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
925
964
|
try {
|
|
926
|
-
for (var a =
|
|
965
|
+
for (var a = ze(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
927
966
|
var h = s.value;
|
|
928
967
|
h.next(r);
|
|
929
968
|
}
|
|
@@ -972,20 +1011,20 @@ var An = Kt(function(e) {
|
|
|
972
1011
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
973
1012
|
}, t.prototype._innerSubscribe = function(r) {
|
|
974
1013
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
975
|
-
return o || a ?
|
|
976
|
-
n.currentObservers = null,
|
|
1014
|
+
return o || a ? qt : (this.currentObservers = null, s.push(r), new Pe(function() {
|
|
1015
|
+
n.currentObservers = null, Ze(s, r);
|
|
977
1016
|
}));
|
|
978
1017
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
979
1018
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
980
1019
|
i ? r.error(o) : a && r.complete();
|
|
981
1020
|
}, t.prototype.asObservable = function() {
|
|
982
|
-
var r = new
|
|
1021
|
+
var r = new _t();
|
|
983
1022
|
return r.source = this, r;
|
|
984
1023
|
}, t.create = function(r, n) {
|
|
985
|
-
return new
|
|
1024
|
+
return new Et(r, n);
|
|
986
1025
|
}, t;
|
|
987
|
-
}(
|
|
988
|
-
|
|
1026
|
+
}(_t), Et = function(e) {
|
|
1027
|
+
D(t, e);
|
|
989
1028
|
function t(r, n) {
|
|
990
1029
|
var i = e.call(this) || this;
|
|
991
1030
|
return i.destination = r, i.source = n, i;
|
|
@@ -1001,17 +1040,17 @@ var An = Kt(function(e) {
|
|
|
1001
1040
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1002
1041
|
}, t.prototype._subscribe = function(r) {
|
|
1003
1042
|
var n, i;
|
|
1004
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1043
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : qt;
|
|
1005
1044
|
}, t;
|
|
1006
|
-
}(
|
|
1045
|
+
}(rr), nr = {
|
|
1007
1046
|
now: function() {
|
|
1008
|
-
return (
|
|
1047
|
+
return (nr.delegate || Date).now();
|
|
1009
1048
|
},
|
|
1010
1049
|
delegate: void 0
|
|
1011
1050
|
}, Pn = function(e) {
|
|
1012
|
-
|
|
1051
|
+
D(t, e);
|
|
1013
1052
|
function t(r, n, i) {
|
|
1014
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1053
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nr);
|
|
1015
1054
|
var o = e.call(this) || this;
|
|
1016
1055
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1017
1056
|
}
|
|
@@ -1031,24 +1070,24 @@ var An = Kt(function(e) {
|
|
|
1031
1070
|
l && o.splice(0, l + 1);
|
|
1032
1071
|
}
|
|
1033
1072
|
}, t;
|
|
1034
|
-
}(
|
|
1035
|
-
const
|
|
1036
|
-
if (
|
|
1073
|
+
}(rr);
|
|
1074
|
+
const wt = [], St = {}, Rn = (e, t = 0) => {
|
|
1075
|
+
if (wt.indexOf(e) == -1) {
|
|
1037
1076
|
const r = new Pn(t);
|
|
1038
|
-
|
|
1077
|
+
St[e] = r, wt.push(e);
|
|
1039
1078
|
}
|
|
1040
|
-
return
|
|
1079
|
+
return St[e];
|
|
1041
1080
|
}, Y = [];
|
|
1042
|
-
function
|
|
1081
|
+
function In(e, t) {
|
|
1043
1082
|
return {
|
|
1044
1083
|
subscribe: Re(e, t).subscribe
|
|
1045
1084
|
};
|
|
1046
1085
|
}
|
|
1047
|
-
function Re(e, t =
|
|
1086
|
+
function Re(e, t = N) {
|
|
1048
1087
|
let r;
|
|
1049
1088
|
const n = /* @__PURE__ */ new Set();
|
|
1050
1089
|
function i(s) {
|
|
1051
|
-
if (
|
|
1090
|
+
if (Wt(e, s) && (e = s, r)) {
|
|
1052
1091
|
const h = !Y.length;
|
|
1053
1092
|
for (const l of n)
|
|
1054
1093
|
l[1](), Y.push(l, e);
|
|
@@ -1062,31 +1101,31 @@ function Re(e, t = C) {
|
|
|
1062
1101
|
function o(s) {
|
|
1063
1102
|
i(s(e));
|
|
1064
1103
|
}
|
|
1065
|
-
function a(s, h =
|
|
1104
|
+
function a(s, h = N) {
|
|
1066
1105
|
const l = [s, h];
|
|
1067
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
|
1106
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || N), s(e), () => {
|
|
1068
1107
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1069
1108
|
};
|
|
1070
1109
|
}
|
|
1071
1110
|
return { set: i, update: o, subscribe: a };
|
|
1072
1111
|
}
|
|
1073
|
-
function
|
|
1112
|
+
function oe(e, t, r) {
|
|
1074
1113
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1075
1114
|
if (!i.every(Boolean))
|
|
1076
1115
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1077
1116
|
const o = t.length < 2;
|
|
1078
|
-
return
|
|
1117
|
+
return In(r, (a, s) => {
|
|
1079
1118
|
let h = !1;
|
|
1080
1119
|
const l = [];
|
|
1081
|
-
let u = 0, f =
|
|
1120
|
+
let u = 0, f = N;
|
|
1082
1121
|
const c = () => {
|
|
1083
1122
|
if (u)
|
|
1084
1123
|
return;
|
|
1085
1124
|
f();
|
|
1086
1125
|
const d = t(n ? l[0] : l, a, s);
|
|
1087
|
-
o ? a(d) : f =
|
|
1126
|
+
o ? a(d) : f = ot(d) ? d : N;
|
|
1088
1127
|
}, m = i.map(
|
|
1089
|
-
(d, p) =>
|
|
1128
|
+
(d, p) => Xt(
|
|
1090
1129
|
d,
|
|
1091
1130
|
(A) => {
|
|
1092
1131
|
l[p] = A, u &= ~(1 << p), h && c();
|
|
@@ -1101,16 +1140,16 @@ function ie(e, t, r) {
|
|
|
1101
1140
|
};
|
|
1102
1141
|
});
|
|
1103
1142
|
}
|
|
1104
|
-
function
|
|
1143
|
+
function On(e) {
|
|
1105
1144
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1106
1145
|
}
|
|
1107
|
-
var
|
|
1108
|
-
return
|
|
1146
|
+
var Mn = function(t) {
|
|
1147
|
+
return Ln(t) && !Nn(t);
|
|
1109
1148
|
};
|
|
1110
|
-
function
|
|
1149
|
+
function Ln(e) {
|
|
1111
1150
|
return !!e && typeof e == "object";
|
|
1112
1151
|
}
|
|
1113
|
-
function
|
|
1152
|
+
function Nn(e) {
|
|
1114
1153
|
var t = Object.prototype.toString.call(e);
|
|
1115
1154
|
return t === "[object RegExp]" || t === "[object Date]" || Un(e);
|
|
1116
1155
|
}
|
|
@@ -1121,29 +1160,29 @@ function Un(e) {
|
|
|
1121
1160
|
function Fn(e) {
|
|
1122
1161
|
return Array.isArray(e) ? [] : {};
|
|
1123
1162
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1163
|
+
function me(e, t) {
|
|
1164
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Fn(e), e, t) : e;
|
|
1126
1165
|
}
|
|
1127
|
-
function
|
|
1166
|
+
function Dn(e, t, r) {
|
|
1128
1167
|
return e.concat(t).map(function(n) {
|
|
1129
|
-
return
|
|
1168
|
+
return me(n, r);
|
|
1130
1169
|
});
|
|
1131
1170
|
}
|
|
1132
|
-
function
|
|
1171
|
+
function $n(e, t) {
|
|
1133
1172
|
if (!t.customMerge)
|
|
1134
|
-
return
|
|
1173
|
+
return te;
|
|
1135
1174
|
var r = t.customMerge(e);
|
|
1136
|
-
return typeof r == "function" ? r :
|
|
1175
|
+
return typeof r == "function" ? r : te;
|
|
1137
1176
|
}
|
|
1138
1177
|
function jn(e) {
|
|
1139
1178
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1140
1179
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1141
1180
|
}) : [];
|
|
1142
1181
|
}
|
|
1143
|
-
function
|
|
1182
|
+
function Tt(e) {
|
|
1144
1183
|
return Object.keys(e).concat(jn(e));
|
|
1145
1184
|
}
|
|
1146
|
-
function
|
|
1185
|
+
function ir(e, t) {
|
|
1147
1186
|
try {
|
|
1148
1187
|
return t in e;
|
|
1149
1188
|
} catch {
|
|
@@ -1151,179 +1190,129 @@ function or(e, t) {
|
|
|
1151
1190
|
}
|
|
1152
1191
|
}
|
|
1153
1192
|
function kn(e, t) {
|
|
1154
|
-
return
|
|
1193
|
+
return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1155
1194
|
}
|
|
1156
1195
|
function Vn(e, t, r) {
|
|
1157
1196
|
var n = {};
|
|
1158
|
-
return r.isMergeableObject(e) &&
|
|
1159
|
-
n[i] =
|
|
1160
|
-
}),
|
|
1161
|
-
kn(e, i) || (
|
|
1197
|
+
return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
|
|
1198
|
+
n[i] = me(e[i], r);
|
|
1199
|
+
}), Tt(t).forEach(function(i) {
|
|
1200
|
+
kn(e, i) || (ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = $n(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
1162
1201
|
}), n;
|
|
1163
1202
|
}
|
|
1164
|
-
function
|
|
1165
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1203
|
+
function te(e, t, r) {
|
|
1204
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || Mn, r.cloneUnlessOtherwiseSpecified = me;
|
|
1166
1205
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1167
|
-
return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) :
|
|
1206
|
+
return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) : me(t, r);
|
|
1168
1207
|
}
|
|
1169
|
-
|
|
1208
|
+
te.all = function(t, r) {
|
|
1170
1209
|
if (!Array.isArray(t))
|
|
1171
1210
|
throw new Error("first argument should be an array");
|
|
1172
1211
|
return t.reduce(function(n, i) {
|
|
1173
|
-
return
|
|
1212
|
+
return te(n, i, r);
|
|
1174
1213
|
}, {});
|
|
1175
1214
|
};
|
|
1176
|
-
var Wn =
|
|
1177
|
-
const zn = /* @__PURE__ */
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
r.__proto__ = n;
|
|
1181
|
-
} || function(r, n) {
|
|
1182
|
-
for (var i in n)
|
|
1183
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1184
|
-
}, et(e, t);
|
|
1185
|
-
};
|
|
1186
|
-
function Ie(e, t) {
|
|
1187
|
-
if (typeof t != "function" && t !== null)
|
|
1188
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1189
|
-
et(e, t);
|
|
1190
|
-
function r() {
|
|
1191
|
-
this.constructor = e;
|
|
1192
|
-
}
|
|
1193
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1194
|
-
}
|
|
1195
|
-
var L = function() {
|
|
1196
|
-
return L = Object.assign || function(t) {
|
|
1197
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1198
|
-
r = arguments[n];
|
|
1199
|
-
for (var o in r)
|
|
1200
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1201
|
-
}
|
|
1202
|
-
return t;
|
|
1203
|
-
}, L.apply(this, arguments);
|
|
1204
|
-
};
|
|
1205
|
-
function Jn(e, t) {
|
|
1206
|
-
var r = {};
|
|
1207
|
-
for (var n in e)
|
|
1208
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1209
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1210
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1211
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1212
|
-
return r;
|
|
1213
|
-
}
|
|
1214
|
-
function Fe(e, t, r) {
|
|
1215
|
-
if (r || arguments.length === 2)
|
|
1216
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1217
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1218
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1219
|
-
}
|
|
1220
|
-
function $e(e, t) {
|
|
1221
|
-
var r = t && t.cache ? t.cache : ti, n = t && t.serializer ? t.serializer : Kn, i = t && t.strategy ? t.strategy : Yn;
|
|
1215
|
+
var Wn = te, Xn = Wn;
|
|
1216
|
+
const zn = /* @__PURE__ */ On(Xn);
|
|
1217
|
+
function Ue(e, t) {
|
|
1218
|
+
var r = t && t.cache ? t.cache : Kn, n = t && t.serializer ? t.serializer : qn, i = t && t.strategy ? t.strategy : Zn;
|
|
1222
1219
|
return i(e, {
|
|
1223
1220
|
cache: r,
|
|
1224
1221
|
serializer: n
|
|
1225
1222
|
});
|
|
1226
1223
|
}
|
|
1227
|
-
function
|
|
1224
|
+
function Jn(e) {
|
|
1228
1225
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1229
1226
|
}
|
|
1230
|
-
function
|
|
1231
|
-
var i =
|
|
1227
|
+
function or(e, t, r, n) {
|
|
1228
|
+
var i = Jn(n) ? n : r(n), o = t.get(i);
|
|
1232
1229
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1233
1230
|
}
|
|
1234
1231
|
function ar(e, t, r) {
|
|
1235
1232
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1236
1233
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1237
1234
|
}
|
|
1238
|
-
function
|
|
1235
|
+
function at(e, t, r, n, i) {
|
|
1239
1236
|
return r.bind(t, e, n, i);
|
|
1240
1237
|
}
|
|
1241
|
-
function
|
|
1242
|
-
var r = e.length === 1 ?
|
|
1243
|
-
return
|
|
1238
|
+
function Zn(e, t) {
|
|
1239
|
+
var r = e.length === 1 ? or : ar;
|
|
1240
|
+
return at(e, this, r, t.cache.create(), t.serializer);
|
|
1241
|
+
}
|
|
1242
|
+
function Qn(e, t) {
|
|
1243
|
+
return at(e, this, ar, t.cache.create(), t.serializer);
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return
|
|
1245
|
+
function Yn(e, t) {
|
|
1246
|
+
return at(e, this, or, t.cache.create(), t.serializer);
|
|
1247
1247
|
}
|
|
1248
|
-
var
|
|
1248
|
+
var qn = function() {
|
|
1249
1249
|
return JSON.stringify(arguments);
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
}()
|
|
1262
|
-
), ti = {
|
|
1250
|
+
};
|
|
1251
|
+
function st() {
|
|
1252
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1253
|
+
}
|
|
1254
|
+
st.prototype.get = function(e) {
|
|
1255
|
+
return this.cache[e];
|
|
1256
|
+
};
|
|
1257
|
+
st.prototype.set = function(e, t) {
|
|
1258
|
+
this.cache[e] = t;
|
|
1259
|
+
};
|
|
1260
|
+
var Kn = {
|
|
1263
1261
|
create: function() {
|
|
1264
|
-
return new
|
|
1262
|
+
return new st();
|
|
1265
1263
|
}
|
|
1266
|
-
},
|
|
1267
|
-
variadic:
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1271
|
-
r = arguments[n];
|
|
1272
|
-
for (var o in r)
|
|
1273
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1274
|
-
}
|
|
1275
|
-
return t;
|
|
1276
|
-
}, Be.apply(this, arguments);
|
|
1277
|
-
};
|
|
1278
|
-
var y;
|
|
1264
|
+
}, Fe = {
|
|
1265
|
+
variadic: Qn,
|
|
1266
|
+
monadic: Yn
|
|
1267
|
+
}, y;
|
|
1279
1268
|
(function(e) {
|
|
1280
1269
|
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";
|
|
1281
1270
|
})(y || (y = {}));
|
|
1282
|
-
var
|
|
1271
|
+
var w;
|
|
1283
1272
|
(function(e) {
|
|
1284
1273
|
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";
|
|
1285
|
-
})(
|
|
1286
|
-
var
|
|
1274
|
+
})(w || (w = {}));
|
|
1275
|
+
var re;
|
|
1287
1276
|
(function(e) {
|
|
1288
1277
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1289
|
-
})(
|
|
1290
|
-
function
|
|
1291
|
-
return e.type ===
|
|
1278
|
+
})(re || (re = {}));
|
|
1279
|
+
function Ht(e) {
|
|
1280
|
+
return e.type === w.literal;
|
|
1292
1281
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return e.type ===
|
|
1282
|
+
function ei(e) {
|
|
1283
|
+
return e.type === w.argument;
|
|
1284
|
+
}
|
|
1285
|
+
function sr(e) {
|
|
1286
|
+
return e.type === w.number;
|
|
1295
1287
|
}
|
|
1296
1288
|
function ur(e) {
|
|
1297
|
-
return e.type ===
|
|
1289
|
+
return e.type === w.date;
|
|
1298
1290
|
}
|
|
1299
1291
|
function lr(e) {
|
|
1300
|
-
return e.type ===
|
|
1292
|
+
return e.type === w.time;
|
|
1301
1293
|
}
|
|
1302
1294
|
function hr(e) {
|
|
1303
|
-
return e.type ===
|
|
1295
|
+
return e.type === w.select;
|
|
1304
1296
|
}
|
|
1305
1297
|
function cr(e) {
|
|
1306
|
-
return e.type ===
|
|
1298
|
+
return e.type === w.plural;
|
|
1307
1299
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return e.type ===
|
|
1300
|
+
function ti(e) {
|
|
1301
|
+
return e.type === w.pound;
|
|
1310
1302
|
}
|
|
1311
|
-
function
|
|
1312
|
-
return e.type ===
|
|
1303
|
+
function fr(e) {
|
|
1304
|
+
return e.type === w.tag;
|
|
1313
1305
|
}
|
|
1314
1306
|
function mr(e) {
|
|
1315
|
-
return e.type ===
|
|
1316
|
-
}
|
|
1317
|
-
function dr(e) {
|
|
1318
|
-
return !!(e && typeof e == "object" && e.type === te.number);
|
|
1307
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
1319
1308
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1309
|
+
function Ye(e) {
|
|
1310
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
1322
1311
|
}
|
|
1323
|
-
var
|
|
1324
|
-
function
|
|
1312
|
+
var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ri = /(?:[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;
|
|
1313
|
+
function ni(e) {
|
|
1325
1314
|
var t = {};
|
|
1326
|
-
return e.replace(
|
|
1315
|
+
return e.replace(ri, function(r) {
|
|
1327
1316
|
var n = r.length;
|
|
1328
1317
|
switch (r[0]) {
|
|
1329
1318
|
case "G":
|
|
@@ -1412,21 +1401,11 @@ function oi(e) {
|
|
|
1412
1401
|
return "";
|
|
1413
1402
|
}), t;
|
|
1414
1403
|
}
|
|
1415
|
-
var
|
|
1416
|
-
|
|
1417
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1418
|
-
r = arguments[n];
|
|
1419
|
-
for (var o in r)
|
|
1420
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1421
|
-
}
|
|
1422
|
-
return t;
|
|
1423
|
-
}, S.apply(this, arguments);
|
|
1424
|
-
};
|
|
1425
|
-
var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1426
|
-
function si(e) {
|
|
1404
|
+
var ii = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1405
|
+
function oi(e) {
|
|
1427
1406
|
if (e.length === 0)
|
|
1428
1407
|
throw new Error("Number skeleton cannot be empty");
|
|
1429
|
-
for (var t = e.split(
|
|
1408
|
+
for (var t = e.split(ii).filter(function(c) {
|
|
1430
1409
|
return c.length > 0;
|
|
1431
1410
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1432
1411
|
var o = i[n], a = o.split("/");
|
|
@@ -1441,17 +1420,17 @@ function si(e) {
|
|
|
1441
1420
|
}
|
|
1442
1421
|
return r;
|
|
1443
1422
|
}
|
|
1444
|
-
function
|
|
1423
|
+
function ai(e) {
|
|
1445
1424
|
return e.replace(/^(.*?)-/, "");
|
|
1446
1425
|
}
|
|
1447
|
-
var
|
|
1448
|
-
function
|
|
1426
|
+
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, si = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
|
|
1427
|
+
function At(e) {
|
|
1449
1428
|
var t = {};
|
|
1450
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1429
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
|
|
1451
1430
|
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)), "";
|
|
1452
1431
|
}), t;
|
|
1453
1432
|
}
|
|
1454
|
-
function
|
|
1433
|
+
function gr(e) {
|
|
1455
1434
|
switch (e) {
|
|
1456
1435
|
case "sign-auto":
|
|
1457
1436
|
return {
|
|
@@ -1491,7 +1470,7 @@ function yr(e) {
|
|
|
1491
1470
|
};
|
|
1492
1471
|
}
|
|
1493
1472
|
}
|
|
1494
|
-
function
|
|
1473
|
+
function ui(e) {
|
|
1495
1474
|
var t;
|
|
1496
1475
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1497
1476
|
notation: "engineering"
|
|
@@ -1499,17 +1478,17 @@ function hi(e) {
|
|
|
1499
1478
|
notation: "scientific"
|
|
1500
1479
|
}, e = e.slice(1)), t) {
|
|
1501
1480
|
var r = e.slice(0, 2);
|
|
1502
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1481
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
|
|
1503
1482
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1504
1483
|
t.minimumIntegerDigits = e.length;
|
|
1505
1484
|
}
|
|
1506
1485
|
return t;
|
|
1507
1486
|
}
|
|
1508
|
-
function
|
|
1509
|
-
var t = {}, r =
|
|
1487
|
+
function Pt(e) {
|
|
1488
|
+
var t = {}, r = gr(e);
|
|
1510
1489
|
return r || t;
|
|
1511
1490
|
}
|
|
1512
|
-
function
|
|
1491
|
+
function li(e) {
|
|
1513
1492
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1514
1493
|
var i = n[r];
|
|
1515
1494
|
switch (i.stem) {
|
|
@@ -1533,7 +1512,7 @@ function ci(e) {
|
|
|
1533
1512
|
continue;
|
|
1534
1513
|
case "measure-unit":
|
|
1535
1514
|
case "unit":
|
|
1536
|
-
t.style = "unit", t.unit =
|
|
1515
|
+
t.style = "unit", t.unit = ai(i.options[0]);
|
|
1537
1516
|
continue;
|
|
1538
1517
|
case "compact-short":
|
|
1539
1518
|
case "K":
|
|
@@ -1544,13 +1523,13 @@ function ci(e) {
|
|
|
1544
1523
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1545
1524
|
continue;
|
|
1546
1525
|
case "scientific":
|
|
1547
|
-
t =
|
|
1548
|
-
return
|
|
1526
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1527
|
+
return _(_({}, h), Pt(l));
|
|
1549
1528
|
}, {}));
|
|
1550
1529
|
continue;
|
|
1551
1530
|
case "engineering":
|
|
1552
|
-
t =
|
|
1553
|
-
return
|
|
1531
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1532
|
+
return _(_({}, h), Pt(l));
|
|
1554
1533
|
}, {}));
|
|
1555
1534
|
continue;
|
|
1556
1535
|
case "notation-simple":
|
|
@@ -1595,7 +1574,7 @@ function ci(e) {
|
|
|
1595
1574
|
case "integer-width":
|
|
1596
1575
|
if (i.options.length > 1)
|
|
1597
1576
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1598
|
-
i.options[0].replace(
|
|
1577
|
+
i.options[0].replace(si, function(h, l, u, f, c, m) {
|
|
1599
1578
|
if (l)
|
|
1600
1579
|
t.minimumIntegerDigits = u.length;
|
|
1601
1580
|
else {
|
|
@@ -1608,28 +1587,28 @@ function ci(e) {
|
|
|
1608
1587
|
});
|
|
1609
1588
|
continue;
|
|
1610
1589
|
}
|
|
1611
|
-
if (
|
|
1590
|
+
if (br.test(i.stem)) {
|
|
1612
1591
|
t.minimumIntegerDigits = i.stem.length;
|
|
1613
1592
|
continue;
|
|
1614
1593
|
}
|
|
1615
|
-
if (
|
|
1594
|
+
if (Bt.test(i.stem)) {
|
|
1616
1595
|
if (i.options.length > 1)
|
|
1617
1596
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1618
|
-
i.stem.replace(
|
|
1597
|
+
i.stem.replace(Bt, function(h, l, u, f, c, m) {
|
|
1619
1598
|
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1620
1599
|
});
|
|
1621
1600
|
var o = i.options[0];
|
|
1622
|
-
o === "w" ? t =
|
|
1601
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), At(o)));
|
|
1623
1602
|
continue;
|
|
1624
1603
|
}
|
|
1625
|
-
if (
|
|
1626
|
-
t =
|
|
1604
|
+
if (pr.test(i.stem)) {
|
|
1605
|
+
t = _(_({}, t), At(i.stem));
|
|
1627
1606
|
continue;
|
|
1628
1607
|
}
|
|
1629
|
-
var a =
|
|
1630
|
-
a && (t =
|
|
1631
|
-
var s =
|
|
1632
|
-
s && (t =
|
|
1608
|
+
var a = gr(i.stem);
|
|
1609
|
+
a && (t = _(_({}, t), a));
|
|
1610
|
+
var s = ui(i.stem);
|
|
1611
|
+
s && (t = _(_({}, t), s));
|
|
1633
1612
|
}
|
|
1634
1613
|
return t;
|
|
1635
1614
|
}
|
|
@@ -3048,13 +3027,13 @@ var ve = {
|
|
|
3048
3027
|
"h"
|
|
3049
3028
|
]
|
|
3050
3029
|
};
|
|
3051
|
-
function
|
|
3030
|
+
function hi(e, t) {
|
|
3052
3031
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3053
3032
|
var i = e.charAt(n);
|
|
3054
3033
|
if (i === "j") {
|
|
3055
3034
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3056
3035
|
o++, n++;
|
|
3057
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
3036
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = ci(t);
|
|
3058
3037
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3059
3038
|
r += h;
|
|
3060
3039
|
for (; a-- > 0; )
|
|
@@ -3064,7 +3043,7 @@ function fi(e, t) {
|
|
|
3064
3043
|
}
|
|
3065
3044
|
return r;
|
|
3066
3045
|
}
|
|
3067
|
-
function
|
|
3046
|
+
function ci(e) {
|
|
3068
3047
|
var t = e.hourCycle;
|
|
3069
3048
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3070
3049
|
e.hourCycles && // @ts-ignore
|
|
@@ -3086,20 +3065,20 @@ function mi(e) {
|
|
|
3086
3065
|
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
3087
3066
|
return i[0];
|
|
3088
3067
|
}
|
|
3089
|
-
var
|
|
3068
|
+
var De, fi = new RegExp("^".concat(dr.source, "*")), mi = new RegExp("".concat(dr.source, "*$"));
|
|
3090
3069
|
function v(e, t) {
|
|
3091
3070
|
return { start: e, end: t };
|
|
3092
3071
|
}
|
|
3093
|
-
var
|
|
3072
|
+
var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, bi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, yi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, xi = _i ? Number.isSafeInteger : function(e) {
|
|
3094
3073
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3095
|
-
},
|
|
3074
|
+
}, qe = !0;
|
|
3096
3075
|
try {
|
|
3097
|
-
var
|
|
3098
|
-
|
|
3076
|
+
var Ei = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3077
|
+
qe = ((De = Ei.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3099
3078
|
} catch {
|
|
3100
|
-
|
|
3079
|
+
qe = !1;
|
|
3101
3080
|
}
|
|
3102
|
-
var
|
|
3081
|
+
var Rt = di ? (
|
|
3103
3082
|
// Native
|
|
3104
3083
|
function(t, r, n) {
|
|
3105
3084
|
return t.startsWith(r, n);
|
|
@@ -3109,7 +3088,7 @@ var It = bi ? (
|
|
|
3109
3088
|
function(t, r, n) {
|
|
3110
3089
|
return t.slice(n, n + r.length) === r;
|
|
3111
3090
|
}
|
|
3112
|
-
),
|
|
3091
|
+
), Ke = pi ? String.fromCodePoint : (
|
|
3113
3092
|
// IE11
|
|
3114
3093
|
function() {
|
|
3115
3094
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3121,9 +3100,9 @@ var It = bi ? (
|
|
|
3121
3100
|
}
|
|
3122
3101
|
return n;
|
|
3123
3102
|
}
|
|
3124
|
-
),
|
|
3103
|
+
), It = (
|
|
3125
3104
|
// native
|
|
3126
|
-
|
|
3105
|
+
bi ? Object.fromEntries : (
|
|
3127
3106
|
// Ponyfill
|
|
3128
3107
|
function(t) {
|
|
3129
3108
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3133,7 +3112,7 @@ var It = bi ? (
|
|
|
3133
3112
|
return r;
|
|
3134
3113
|
}
|
|
3135
3114
|
)
|
|
3136
|
-
),
|
|
3115
|
+
), yr = gi ? (
|
|
3137
3116
|
// Native
|
|
3138
3117
|
function(t, r) {
|
|
3139
3118
|
return t.codePointAt(r);
|
|
@@ -3147,7 +3126,7 @@ var It = bi ? (
|
|
|
3147
3126
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3148
3127
|
}
|
|
3149
3128
|
}
|
|
3150
|
-
),
|
|
3129
|
+
), wi = yi ? (
|
|
3151
3130
|
// Native
|
|
3152
3131
|
function(t) {
|
|
3153
3132
|
return t.trimStart();
|
|
@@ -3155,9 +3134,9 @@ var It = bi ? (
|
|
|
3155
3134
|
) : (
|
|
3156
3135
|
// Ponyfill
|
|
3157
3136
|
function(t) {
|
|
3158
|
-
return t.replace(
|
|
3137
|
+
return t.replace(fi, "");
|
|
3159
3138
|
}
|
|
3160
|
-
),
|
|
3139
|
+
), Si = vi ? (
|
|
3161
3140
|
// Native
|
|
3162
3141
|
function(t) {
|
|
3163
3142
|
return t.trimEnd();
|
|
@@ -3165,32 +3144,32 @@ var It = bi ? (
|
|
|
3165
3144
|
) : (
|
|
3166
3145
|
// Ponyfill
|
|
3167
3146
|
function(t) {
|
|
3168
|
-
return t.replace(
|
|
3147
|
+
return t.replace(mi, "");
|
|
3169
3148
|
}
|
|
3170
3149
|
);
|
|
3171
|
-
function
|
|
3150
|
+
function vr(e, t) {
|
|
3172
3151
|
return new RegExp(e, t);
|
|
3173
3152
|
}
|
|
3174
|
-
var
|
|
3175
|
-
if (
|
|
3176
|
-
var
|
|
3177
|
-
|
|
3153
|
+
var et;
|
|
3154
|
+
if (qe) {
|
|
3155
|
+
var Ot = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3156
|
+
et = function(t, r) {
|
|
3178
3157
|
var n;
|
|
3179
|
-
|
|
3180
|
-
var i =
|
|
3158
|
+
Ot.lastIndex = r;
|
|
3159
|
+
var i = Ot.exec(t);
|
|
3181
3160
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3182
3161
|
};
|
|
3183
3162
|
} else
|
|
3184
|
-
|
|
3163
|
+
et = function(t, r) {
|
|
3185
3164
|
for (var n = []; ; ) {
|
|
3186
|
-
var i =
|
|
3187
|
-
if (i === void 0 ||
|
|
3165
|
+
var i = yr(t, r);
|
|
3166
|
+
if (i === void 0 || _r(i) || Ai(i))
|
|
3188
3167
|
break;
|
|
3189
3168
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3190
3169
|
}
|
|
3191
|
-
return
|
|
3170
|
+
return Ke.apply(void 0, n);
|
|
3192
3171
|
};
|
|
3193
|
-
var
|
|
3172
|
+
var Ti = (
|
|
3194
3173
|
/** @class */
|
|
3195
3174
|
function() {
|
|
3196
3175
|
function e(t, r) {
|
|
@@ -3214,14 +3193,14 @@ var Bi = (
|
|
|
3214
3193
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3215
3194
|
var s = this.clonePosition();
|
|
3216
3195
|
this.bump(), i.push({
|
|
3217
|
-
type:
|
|
3196
|
+
type: w.pound,
|
|
3218
3197
|
location: v(s, this.clonePosition())
|
|
3219
3198
|
});
|
|
3220
3199
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3221
3200
|
if (n)
|
|
3222
3201
|
break;
|
|
3223
3202
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3224
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3203
|
+
} else if (o === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
|
|
3225
3204
|
var a = this.parseTag(t, r);
|
|
3226
3205
|
if (a.err)
|
|
3227
3206
|
return a;
|
|
@@ -3242,7 +3221,7 @@ var Bi = (
|
|
|
3242
3221
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3243
3222
|
return {
|
|
3244
3223
|
val: {
|
|
3245
|
-
type:
|
|
3224
|
+
type: w.literal,
|
|
3246
3225
|
value: "<".concat(i, "/>"),
|
|
3247
3226
|
location: v(n, this.clonePosition())
|
|
3248
3227
|
},
|
|
@@ -3254,12 +3233,12 @@ var Bi = (
|
|
|
3254
3233
|
return o;
|
|
3255
3234
|
var a = o.val, s = this.clonePosition();
|
|
3256
3235
|
if (this.bumpIf("</")) {
|
|
3257
|
-
if (this.isEOF() || !
|
|
3236
|
+
if (this.isEOF() || !tt(this.char()))
|
|
3258
3237
|
return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
|
|
3259
3238
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3260
3239
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3261
3240
|
val: {
|
|
3262
|
-
type:
|
|
3241
|
+
type: w.tag,
|
|
3263
3242
|
value: i,
|
|
3264
3243
|
children: a,
|
|
3265
3244
|
location: v(n, this.clonePosition())
|
|
@@ -3272,7 +3251,7 @@ var Bi = (
|
|
|
3272
3251
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3273
3252
|
}, e.prototype.parseTagName = function() {
|
|
3274
3253
|
var t = this.offset();
|
|
3275
|
-
for (this.bump(); !this.isEOF() &&
|
|
3254
|
+
for (this.bump(); !this.isEOF() && Bi(this.char()); )
|
|
3276
3255
|
this.bump();
|
|
3277
3256
|
return this.message.slice(t, this.offset());
|
|
3278
3257
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3296,12 +3275,12 @@ var Bi = (
|
|
|
3296
3275
|
}
|
|
3297
3276
|
var h = v(n, this.clonePosition());
|
|
3298
3277
|
return {
|
|
3299
|
-
val: { type:
|
|
3278
|
+
val: { type: w.literal, value: i, location: h },
|
|
3300
3279
|
err: null
|
|
3301
3280
|
};
|
|
3302
3281
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3303
3282
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3304
|
-
!
|
|
3283
|
+
!Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3305
3284
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3306
3285
|
if (this.isEOF() || this.char() !== 39)
|
|
3307
3286
|
return null;
|
|
@@ -3335,12 +3314,12 @@ var Bi = (
|
|
|
3335
3314
|
r.push(n);
|
|
3336
3315
|
this.bump();
|
|
3337
3316
|
}
|
|
3338
|
-
return
|
|
3317
|
+
return Ke.apply(void 0, r);
|
|
3339
3318
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3340
3319
|
if (this.isEOF())
|
|
3341
3320
|
return null;
|
|
3342
3321
|
var n = this.char();
|
|
3343
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3322
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
|
|
3344
3323
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3345
3324
|
var n = this.clonePosition();
|
|
3346
3325
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3356,7 +3335,7 @@ var Bi = (
|
|
|
3356
3335
|
case 125:
|
|
3357
3336
|
return this.bump(), {
|
|
3358
3337
|
val: {
|
|
3359
|
-
type:
|
|
3338
|
+
type: w.argument,
|
|
3360
3339
|
// value does not include the opening and closing braces.
|
|
3361
3340
|
value: i,
|
|
3362
3341
|
location: v(n, this.clonePosition())
|
|
@@ -3369,7 +3348,7 @@ var Bi = (
|
|
|
3369
3348
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3370
3349
|
}
|
|
3371
3350
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3372
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3351
|
+
var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
|
|
3373
3352
|
this.bumpTo(i);
|
|
3374
3353
|
var o = this.clonePosition(), a = v(t, o);
|
|
3375
3354
|
return { value: n, location: a };
|
|
@@ -3388,7 +3367,7 @@ var Bi = (
|
|
|
3388
3367
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3389
3368
|
if (f.err)
|
|
3390
3369
|
return f;
|
|
3391
|
-
var c =
|
|
3370
|
+
var c = Si(f.val);
|
|
3392
3371
|
if (c.length === 0)
|
|
3393
3372
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3394
3373
|
var m = v(u, this.clonePosition());
|
|
@@ -3398,25 +3377,25 @@ var Bi = (
|
|
|
3398
3377
|
if (d.err)
|
|
3399
3378
|
return d;
|
|
3400
3379
|
var p = v(i, this.clonePosition());
|
|
3401
|
-
if (l &&
|
|
3402
|
-
var A =
|
|
3380
|
+
if (l && Rt(l?.style, "::", 0)) {
|
|
3381
|
+
var A = wi(l.style.slice(2));
|
|
3403
3382
|
if (s === "number") {
|
|
3404
3383
|
var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
|
|
3405
3384
|
return f.err ? f : {
|
|
3406
|
-
val: { type:
|
|
3385
|
+
val: { type: w.number, value: n, location: p, style: f.val },
|
|
3407
3386
|
err: null
|
|
3408
3387
|
};
|
|
3409
3388
|
} else {
|
|
3410
3389
|
if (A.length === 0)
|
|
3411
3390
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
|
|
3412
3391
|
var H = A;
|
|
3413
|
-
this.locale && (H =
|
|
3392
|
+
this.locale && (H = hi(A, this.locale));
|
|
3414
3393
|
var c = {
|
|
3415
|
-
type:
|
|
3394
|
+
type: re.dateTime,
|
|
3416
3395
|
pattern: H,
|
|
3417
3396
|
location: l.styleLocation,
|
|
3418
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3419
|
-
}, T = s === "date" ?
|
|
3397
|
+
parsedOptions: this.shouldParseSkeletons ? ni(H) : {}
|
|
3398
|
+
}, T = s === "date" ? w.date : w.time;
|
|
3420
3399
|
return {
|
|
3421
3400
|
val: { type: T, value: n, location: p, style: c },
|
|
3422
3401
|
err: null
|
|
@@ -3425,7 +3404,7 @@ var Bi = (
|
|
|
3425
3404
|
}
|
|
3426
3405
|
return {
|
|
3427
3406
|
val: {
|
|
3428
|
-
type: s === "number" ?
|
|
3407
|
+
type: s === "number" ? w.number : s === "date" ? w.date : w.time,
|
|
3429
3408
|
value: n,
|
|
3430
3409
|
location: p,
|
|
3431
3410
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3438,39 +3417,39 @@ var Bi = (
|
|
|
3438
3417
|
case "select": {
|
|
3439
3418
|
var B = this.clonePosition();
|
|
3440
3419
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3441
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B,
|
|
3420
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, _({}, B)));
|
|
3442
3421
|
this.bumpSpace();
|
|
3443
|
-
var
|
|
3444
|
-
if (s !== "select" &&
|
|
3422
|
+
var M = this.parseIdentifierIfPossible(), L = 0;
|
|
3423
|
+
if (s !== "select" && M.value === "offset") {
|
|
3445
3424
|
if (!this.bumpIf(":"))
|
|
3446
3425
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3447
3426
|
this.bumpSpace();
|
|
3448
3427
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3449
3428
|
if (f.err)
|
|
3450
3429
|
return f;
|
|
3451
|
-
this.bumpSpace(),
|
|
3430
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), L = f.val;
|
|
3452
3431
|
}
|
|
3453
|
-
var
|
|
3454
|
-
if (
|
|
3455
|
-
return
|
|
3432
|
+
var C = this.tryParsePluralOrSelectOptions(t, s, r, M);
|
|
3433
|
+
if (C.err)
|
|
3434
|
+
return C;
|
|
3456
3435
|
var d = this.tryParseArgumentClose(i);
|
|
3457
3436
|
if (d.err)
|
|
3458
3437
|
return d;
|
|
3459
3438
|
var pe = v(i, this.clonePosition());
|
|
3460
3439
|
return s === "select" ? {
|
|
3461
3440
|
val: {
|
|
3462
|
-
type:
|
|
3441
|
+
type: w.select,
|
|
3463
3442
|
value: n,
|
|
3464
|
-
options:
|
|
3443
|
+
options: It(C.val),
|
|
3465
3444
|
location: pe
|
|
3466
3445
|
},
|
|
3467
3446
|
err: null
|
|
3468
3447
|
} : {
|
|
3469
3448
|
val: {
|
|
3470
|
-
type:
|
|
3449
|
+
type: w.plural,
|
|
3471
3450
|
value: n,
|
|
3472
|
-
options:
|
|
3473
|
-
offset:
|
|
3451
|
+
options: It(C.val),
|
|
3452
|
+
offset: L,
|
|
3474
3453
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3475
3454
|
location: pe
|
|
3476
3455
|
},
|
|
@@ -3520,16 +3499,16 @@ var Bi = (
|
|
|
3520
3499
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3521
3500
|
var n = [];
|
|
3522
3501
|
try {
|
|
3523
|
-
n =
|
|
3502
|
+
n = oi(t);
|
|
3524
3503
|
} catch {
|
|
3525
3504
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3526
3505
|
}
|
|
3527
3506
|
return {
|
|
3528
3507
|
val: {
|
|
3529
|
-
type:
|
|
3508
|
+
type: re.number,
|
|
3530
3509
|
tokens: n,
|
|
3531
3510
|
location: r,
|
|
3532
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3511
|
+
parsedOptions: this.shouldParseSkeletons ? li(n) : {}
|
|
3533
3512
|
},
|
|
3534
3513
|
err: null
|
|
3535
3514
|
};
|
|
@@ -3577,7 +3556,7 @@ var Bi = (
|
|
|
3577
3556
|
break;
|
|
3578
3557
|
}
|
|
3579
3558
|
var h = v(i, this.clonePosition());
|
|
3580
|
-
return o ? (a *= n,
|
|
3559
|
+
return o ? (a *= n, xi(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3581
3560
|
}, e.prototype.offset = function() {
|
|
3582
3561
|
return this.position.offset;
|
|
3583
3562
|
}, e.prototype.isEOF = function() {
|
|
@@ -3592,7 +3571,7 @@ var Bi = (
|
|
|
3592
3571
|
var t = this.position.offset;
|
|
3593
3572
|
if (t >= this.message.length)
|
|
3594
3573
|
throw Error("out of bound");
|
|
3595
|
-
var r =
|
|
3574
|
+
var r = yr(this.message, t);
|
|
3596
3575
|
if (r === void 0)
|
|
3597
3576
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3598
3577
|
return r;
|
|
@@ -3611,7 +3590,7 @@ var Bi = (
|
|
|
3611
3590
|
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);
|
|
3612
3591
|
}
|
|
3613
3592
|
}, e.prototype.bumpIf = function(t) {
|
|
3614
|
-
if (
|
|
3593
|
+
if (Rt(this.message, t, this.offset())) {
|
|
3615
3594
|
for (var r = 0; r < t.length; r++)
|
|
3616
3595
|
this.bump();
|
|
3617
3596
|
return !0;
|
|
@@ -3633,7 +3612,7 @@ var Bi = (
|
|
|
3633
3612
|
break;
|
|
3634
3613
|
}
|
|
3635
3614
|
}, e.prototype.bumpSpace = function() {
|
|
3636
|
-
for (; !this.isEOF() &&
|
|
3615
|
+
for (; !this.isEOF() && _r(this.char()); )
|
|
3637
3616
|
this.bump();
|
|
3638
3617
|
}, e.prototype.peek = function() {
|
|
3639
3618
|
if (this.isEOF())
|
|
@@ -3643,47 +3622,47 @@ var Bi = (
|
|
|
3643
3622
|
}, e;
|
|
3644
3623
|
}()
|
|
3645
3624
|
);
|
|
3646
|
-
function
|
|
3625
|
+
function tt(e) {
|
|
3647
3626
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3648
3627
|
}
|
|
3649
|
-
function
|
|
3650
|
-
return
|
|
3628
|
+
function Hi(e) {
|
|
3629
|
+
return tt(e) || e === 47;
|
|
3651
3630
|
}
|
|
3652
|
-
function
|
|
3631
|
+
function Bi(e) {
|
|
3653
3632
|
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;
|
|
3654
3633
|
}
|
|
3655
|
-
function
|
|
3634
|
+
function _r(e) {
|
|
3656
3635
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3657
3636
|
}
|
|
3658
|
-
function
|
|
3637
|
+
function Ai(e) {
|
|
3659
3638
|
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;
|
|
3660
3639
|
}
|
|
3661
|
-
function
|
|
3640
|
+
function rt(e) {
|
|
3662
3641
|
e.forEach(function(t) {
|
|
3663
|
-
if (delete t.location,
|
|
3642
|
+
if (delete t.location, hr(t) || cr(t))
|
|
3664
3643
|
for (var r in t.options)
|
|
3665
|
-
delete t.options[r].location,
|
|
3644
|
+
delete t.options[r].location, rt(t.options[r].value);
|
|
3666
3645
|
else
|
|
3667
|
-
|
|
3646
|
+
sr(t) && mr(t.style) || (ur(t) || lr(t)) && Ye(t.style) ? delete t.style.location : fr(t) && rt(t.children);
|
|
3668
3647
|
});
|
|
3669
3648
|
}
|
|
3670
|
-
function
|
|
3671
|
-
t === void 0 && (t = {}), t =
|
|
3672
|
-
var r = new
|
|
3649
|
+
function Pi(e, t) {
|
|
3650
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3651
|
+
var r = new Ti(e, t).parse();
|
|
3673
3652
|
if (r.err) {
|
|
3674
3653
|
var n = SyntaxError(y[r.err.kind]);
|
|
3675
3654
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3676
3655
|
}
|
|
3677
|
-
return t?.captureLocation ||
|
|
3656
|
+
return t?.captureLocation || rt(r.val), r.val;
|
|
3678
3657
|
}
|
|
3679
|
-
var
|
|
3658
|
+
var ne;
|
|
3680
3659
|
(function(e) {
|
|
3681
3660
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3682
|
-
})(
|
|
3683
|
-
var
|
|
3661
|
+
})(ne || (ne = {}));
|
|
3662
|
+
var Ie = (
|
|
3684
3663
|
/** @class */
|
|
3685
3664
|
function(e) {
|
|
3686
|
-
|
|
3665
|
+
D(t, e);
|
|
3687
3666
|
function t(r, n, i) {
|
|
3688
3667
|
var o = e.call(this, r) || this;
|
|
3689
3668
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3692,48 +3671,48 @@ var Ne = (
|
|
|
3692
3671
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3693
3672
|
}, t;
|
|
3694
3673
|
}(Error)
|
|
3695
|
-
),
|
|
3674
|
+
), Mt = (
|
|
3696
3675
|
/** @class */
|
|
3697
3676
|
function(e) {
|
|
3698
|
-
|
|
3677
|
+
D(t, e);
|
|
3699
3678
|
function t(r, n, i, o) {
|
|
3700
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3679
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3701
3680
|
}
|
|
3702
3681
|
return t;
|
|
3703
|
-
}(
|
|
3704
|
-
),
|
|
3682
|
+
}(Ie)
|
|
3683
|
+
), Ri = (
|
|
3705
3684
|
/** @class */
|
|
3706
3685
|
function(e) {
|
|
3707
|
-
|
|
3686
|
+
D(t, e);
|
|
3708
3687
|
function t(r, n, i) {
|
|
3709
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3688
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3710
3689
|
}
|
|
3711
3690
|
return t;
|
|
3712
|
-
}(
|
|
3713
|
-
),
|
|
3691
|
+
}(Ie)
|
|
3692
|
+
), Ii = (
|
|
3714
3693
|
/** @class */
|
|
3715
3694
|
function(e) {
|
|
3716
|
-
|
|
3695
|
+
D(t, e);
|
|
3717
3696
|
function t(r, n) {
|
|
3718
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3697
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3719
3698
|
}
|
|
3720
3699
|
return t;
|
|
3721
|
-
}(
|
|
3700
|
+
}(Ie)
|
|
3722
3701
|
), P;
|
|
3723
3702
|
(function(e) {
|
|
3724
3703
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3725
3704
|
})(P || (P = {}));
|
|
3726
|
-
function
|
|
3705
|
+
function Oi(e) {
|
|
3727
3706
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3728
3707
|
var n = t[t.length - 1];
|
|
3729
3708
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3730
3709
|
}, []);
|
|
3731
3710
|
}
|
|
3732
|
-
function
|
|
3711
|
+
function Mi(e) {
|
|
3733
3712
|
return typeof e == "function";
|
|
3734
3713
|
}
|
|
3735
3714
|
function we(e, t, r, n, i, o, a) {
|
|
3736
|
-
if (e.length === 1 &&
|
|
3715
|
+
if (e.length === 1 && Ht(e[0]))
|
|
3737
3716
|
return [
|
|
3738
3717
|
{
|
|
3739
3718
|
type: P.literal,
|
|
@@ -3742,14 +3721,14 @@ function we(e, t, r, n, i, o, a) {
|
|
|
3742
3721
|
];
|
|
3743
3722
|
for (var s = [], h = 0, l = e; h < l.length; h++) {
|
|
3744
3723
|
var u = l[h];
|
|
3745
|
-
if (
|
|
3724
|
+
if (Ht(u)) {
|
|
3746
3725
|
s.push({
|
|
3747
3726
|
type: P.literal,
|
|
3748
3727
|
value: u.value
|
|
3749
3728
|
});
|
|
3750
3729
|
continue;
|
|
3751
3730
|
}
|
|
3752
|
-
if (
|
|
3731
|
+
if (ti(u)) {
|
|
3753
3732
|
typeof o == "number" && s.push({
|
|
3754
3733
|
type: P.literal,
|
|
3755
3734
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3758,89 +3737,89 @@ function we(e, t, r, n, i, o, a) {
|
|
|
3758
3737
|
}
|
|
3759
3738
|
var f = u.value;
|
|
3760
3739
|
if (!(i && f in i))
|
|
3761
|
-
throw new
|
|
3740
|
+
throw new Ii(f, a);
|
|
3762
3741
|
var c = i[f];
|
|
3763
|
-
if (
|
|
3742
|
+
if (ei(u)) {
|
|
3764
3743
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3765
3744
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3766
3745
|
value: c
|
|
3767
3746
|
});
|
|
3768
3747
|
continue;
|
|
3769
3748
|
}
|
|
3770
|
-
if (
|
|
3771
|
-
var m = typeof u.style == "string" ? n.date[u.style] :
|
|
3749
|
+
if (ur(u)) {
|
|
3750
|
+
var m = typeof u.style == "string" ? n.date[u.style] : Ye(u.style) ? u.style.parsedOptions : void 0;
|
|
3772
3751
|
s.push({
|
|
3773
3752
|
type: P.literal,
|
|
3774
3753
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3775
3754
|
});
|
|
3776
3755
|
continue;
|
|
3777
3756
|
}
|
|
3778
|
-
if (
|
|
3779
|
-
var m = typeof u.style == "string" ? n.time[u.style] :
|
|
3757
|
+
if (lr(u)) {
|
|
3758
|
+
var m = typeof u.style == "string" ? n.time[u.style] : Ye(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3780
3759
|
s.push({
|
|
3781
3760
|
type: P.literal,
|
|
3782
3761
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3783
3762
|
});
|
|
3784
3763
|
continue;
|
|
3785
3764
|
}
|
|
3786
|
-
if (
|
|
3787
|
-
var m = typeof u.style == "string" ? n.number[u.style] :
|
|
3765
|
+
if (sr(u)) {
|
|
3766
|
+
var m = typeof u.style == "string" ? n.number[u.style] : mr(u.style) ? u.style.parsedOptions : void 0;
|
|
3788
3767
|
m && m.scale && (c = c * (m.scale || 1)), s.push({
|
|
3789
3768
|
type: P.literal,
|
|
3790
3769
|
value: r.getNumberFormat(t, m).format(c)
|
|
3791
3770
|
});
|
|
3792
3771
|
continue;
|
|
3793
3772
|
}
|
|
3794
|
-
if (
|
|
3773
|
+
if (fr(u)) {
|
|
3795
3774
|
var d = u.children, p = u.value, A = i[p];
|
|
3796
|
-
if (!
|
|
3797
|
-
throw new
|
|
3798
|
-
var H = we(d, t, r, n, i, o), T = A(H.map(function(
|
|
3799
|
-
return
|
|
3775
|
+
if (!Mi(A))
|
|
3776
|
+
throw new Ri(p, "function", a);
|
|
3777
|
+
var H = we(d, t, r, n, i, o), T = A(H.map(function(L) {
|
|
3778
|
+
return L.value;
|
|
3800
3779
|
}));
|
|
3801
|
-
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(
|
|
3780
|
+
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(L) {
|
|
3802
3781
|
return {
|
|
3803
|
-
type: typeof
|
|
3804
|
-
value:
|
|
3782
|
+
type: typeof L == "string" ? P.literal : P.object,
|
|
3783
|
+
value: L
|
|
3805
3784
|
};
|
|
3806
3785
|
}));
|
|
3807
3786
|
}
|
|
3808
|
-
if (
|
|
3787
|
+
if (hr(u)) {
|
|
3809
3788
|
var B = u.options[c] || u.options.other;
|
|
3810
3789
|
if (!B)
|
|
3811
|
-
throw new
|
|
3790
|
+
throw new Mt(u.value, c, Object.keys(u.options), a);
|
|
3812
3791
|
s.push.apply(s, we(B.value, t, r, n, i));
|
|
3813
3792
|
continue;
|
|
3814
3793
|
}
|
|
3815
|
-
if (
|
|
3794
|
+
if (cr(u)) {
|
|
3816
3795
|
var B = u.options["=".concat(c)];
|
|
3817
3796
|
if (!B) {
|
|
3818
3797
|
if (!Intl.PluralRules)
|
|
3819
|
-
throw new
|
|
3798
|
+
throw new Ie(`Intl.PluralRules is not available in this environment.
|
|
3820
3799
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3821
|
-
`,
|
|
3822
|
-
var
|
|
3823
|
-
B = u.options[
|
|
3800
|
+
`, ne.MISSING_INTL_API, a);
|
|
3801
|
+
var M = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3802
|
+
B = u.options[M] || u.options.other;
|
|
3824
3803
|
}
|
|
3825
3804
|
if (!B)
|
|
3826
|
-
throw new
|
|
3805
|
+
throw new Mt(u.value, c, Object.keys(u.options), a);
|
|
3827
3806
|
s.push.apply(s, we(B.value, t, r, n, i, c - (u.offset || 0)));
|
|
3828
3807
|
continue;
|
|
3829
3808
|
}
|
|
3830
3809
|
}
|
|
3831
|
-
return
|
|
3810
|
+
return Oi(s);
|
|
3832
3811
|
}
|
|
3833
|
-
function
|
|
3834
|
-
return t ?
|
|
3835
|
-
return r[n] =
|
|
3812
|
+
function Li(e, t) {
|
|
3813
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3814
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3836
3815
|
}, {})) : e;
|
|
3837
3816
|
}
|
|
3838
|
-
function
|
|
3817
|
+
function Ni(e, t) {
|
|
3839
3818
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3840
|
-
return r[n] =
|
|
3841
|
-
},
|
|
3819
|
+
return r[n] = Li(e[n], t[n]), r;
|
|
3820
|
+
}, _({}, e)) : e;
|
|
3842
3821
|
}
|
|
3843
|
-
function
|
|
3822
|
+
function $e(e) {
|
|
3844
3823
|
return {
|
|
3845
3824
|
create: function() {
|
|
3846
3825
|
return {
|
|
@@ -3854,39 +3833,39 @@ function ke(e) {
|
|
|
3854
3833
|
}
|
|
3855
3834
|
};
|
|
3856
3835
|
}
|
|
3857
|
-
function
|
|
3836
|
+
function Ci(e) {
|
|
3858
3837
|
return e === void 0 && (e = {
|
|
3859
3838
|
number: {},
|
|
3860
3839
|
dateTime: {},
|
|
3861
3840
|
pluralRules: {}
|
|
3862
3841
|
}), {
|
|
3863
|
-
getNumberFormat:
|
|
3842
|
+
getNumberFormat: Ue(function() {
|
|
3864
3843
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3865
3844
|
r[n] = arguments[n];
|
|
3866
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3845
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ee([void 0], r, !1)))();
|
|
3867
3846
|
}, {
|
|
3868
|
-
cache:
|
|
3869
|
-
strategy:
|
|
3847
|
+
cache: $e(e.number),
|
|
3848
|
+
strategy: Fe.variadic
|
|
3870
3849
|
}),
|
|
3871
|
-
getDateTimeFormat:
|
|
3850
|
+
getDateTimeFormat: Ue(function() {
|
|
3872
3851
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3873
3852
|
r[n] = arguments[n];
|
|
3874
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3853
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ee([void 0], r, !1)))();
|
|
3875
3854
|
}, {
|
|
3876
|
-
cache:
|
|
3877
|
-
strategy:
|
|
3855
|
+
cache: $e(e.dateTime),
|
|
3856
|
+
strategy: Fe.variadic
|
|
3878
3857
|
}),
|
|
3879
|
-
getPluralRules:
|
|
3858
|
+
getPluralRules: Ue(function() {
|
|
3880
3859
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3881
3860
|
r[n] = arguments[n];
|
|
3882
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3861
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ee([void 0], r, !1)))();
|
|
3883
3862
|
}, {
|
|
3884
|
-
cache:
|
|
3885
|
-
strategy:
|
|
3863
|
+
cache: $e(e.pluralRules),
|
|
3864
|
+
strategy: Fe.variadic
|
|
3886
3865
|
})
|
|
3887
3866
|
};
|
|
3888
3867
|
}
|
|
3889
|
-
var
|
|
3868
|
+
var Gi = (
|
|
3890
3869
|
/** @class */
|
|
3891
3870
|
function() {
|
|
3892
3871
|
function e(t, r, n, i) {
|
|
@@ -3918,13 +3897,13 @@ var Fi = (
|
|
|
3918
3897
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3919
3898
|
var a = i || {};
|
|
3920
3899
|
a.formatters;
|
|
3921
|
-
var s =
|
|
3922
|
-
this.ast = e.__parse(t,
|
|
3900
|
+
var s = bn(a, ["formatters"]);
|
|
3901
|
+
this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
|
|
3923
3902
|
} else
|
|
3924
3903
|
this.ast = t;
|
|
3925
3904
|
if (!Array.isArray(this.ast))
|
|
3926
3905
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3927
|
-
this.formats =
|
|
3906
|
+
this.formats = Ni(e.formats, n), this.formatters = i && i.formatters || Ci(this.formatterCache);
|
|
3928
3907
|
}
|
|
3929
3908
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3930
3909
|
get: function() {
|
|
@@ -3937,7 +3916,7 @@ var Fi = (
|
|
|
3937
3916
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3938
3917
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3939
3918
|
}
|
|
3940
|
-
}, e.__parse =
|
|
3919
|
+
}, e.__parse = Pi, e.formats = {
|
|
3941
3920
|
number: {
|
|
3942
3921
|
integer: {
|
|
3943
3922
|
maximumFractionDigits: 0
|
|
@@ -3998,7 +3977,7 @@ var Fi = (
|
|
|
3998
3977
|
}, e;
|
|
3999
3978
|
}()
|
|
4000
3979
|
);
|
|
4001
|
-
function
|
|
3980
|
+
function Ui(e, t) {
|
|
4002
3981
|
if (t == null)
|
|
4003
3982
|
return;
|
|
4004
3983
|
if (t in e)
|
|
@@ -4019,92 +3998,92 @@ function $i(e, t) {
|
|
|
4019
3998
|
n = void 0;
|
|
4020
3999
|
return n;
|
|
4021
4000
|
}
|
|
4022
|
-
const
|
|
4001
|
+
const $ = {}, Fi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), xr = (e, t) => {
|
|
4023
4002
|
if (t == null)
|
|
4024
4003
|
return;
|
|
4025
|
-
if (t in
|
|
4026
|
-
return
|
|
4027
|
-
const r =
|
|
4004
|
+
if (t in $ && e in $[t])
|
|
4005
|
+
return $[t][e];
|
|
4006
|
+
const r = Oe(t);
|
|
4028
4007
|
for (let n = 0; n < r.length; n++) {
|
|
4029
|
-
const i = r[n], o =
|
|
4008
|
+
const i = r[n], o = $i(i, e);
|
|
4030
4009
|
if (o)
|
|
4031
|
-
return
|
|
4010
|
+
return Fi(e, t, o);
|
|
4032
4011
|
}
|
|
4033
4012
|
};
|
|
4034
|
-
let
|
|
4035
|
-
const
|
|
4036
|
-
function
|
|
4037
|
-
return
|
|
4013
|
+
let ut;
|
|
4014
|
+
const ae = Re({});
|
|
4015
|
+
function Di(e) {
|
|
4016
|
+
return ut[e] || null;
|
|
4038
4017
|
}
|
|
4039
|
-
function
|
|
4040
|
-
return e in
|
|
4018
|
+
function Er(e) {
|
|
4019
|
+
return e in ut;
|
|
4041
4020
|
}
|
|
4042
|
-
function
|
|
4043
|
-
if (!
|
|
4021
|
+
function $i(e, t) {
|
|
4022
|
+
if (!Er(e))
|
|
4044
4023
|
return null;
|
|
4045
|
-
const r =
|
|
4046
|
-
return
|
|
4024
|
+
const r = Di(e);
|
|
4025
|
+
return Ui(r, t);
|
|
4047
4026
|
}
|
|
4048
|
-
function
|
|
4027
|
+
function ji(e) {
|
|
4049
4028
|
if (e == null)
|
|
4050
4029
|
return;
|
|
4051
|
-
const t =
|
|
4030
|
+
const t = Oe(e);
|
|
4052
4031
|
for (let r = 0; r < t.length; r++) {
|
|
4053
4032
|
const n = t[r];
|
|
4054
|
-
if (
|
|
4033
|
+
if (Er(n))
|
|
4055
4034
|
return n;
|
|
4056
4035
|
}
|
|
4057
4036
|
}
|
|
4058
|
-
function
|
|
4059
|
-
delete
|
|
4037
|
+
function wr(e, ...t) {
|
|
4038
|
+
delete $[e], ae.update((r) => (r[e] = zn.all([r[e] || {}, ...t]), r));
|
|
4060
4039
|
}
|
|
4061
|
-
|
|
4062
|
-
[
|
|
4040
|
+
oe(
|
|
4041
|
+
[ae],
|
|
4063
4042
|
([e]) => Object.keys(e)
|
|
4064
4043
|
);
|
|
4065
|
-
|
|
4044
|
+
ae.subscribe((e) => ut = e);
|
|
4066
4045
|
const Se = {};
|
|
4067
|
-
function
|
|
4046
|
+
function ki(e, t) {
|
|
4068
4047
|
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
4069
4048
|
}
|
|
4070
|
-
function
|
|
4049
|
+
function Sr(e) {
|
|
4071
4050
|
return Se[e];
|
|
4072
4051
|
}
|
|
4073
|
-
function
|
|
4074
|
-
return
|
|
4075
|
-
const r =
|
|
4052
|
+
function Vi(e) {
|
|
4053
|
+
return Oe(e).map((t) => {
|
|
4054
|
+
const r = Sr(t);
|
|
4076
4055
|
return [t, r ? [...r] : []];
|
|
4077
4056
|
}).filter(([, t]) => t.length > 0);
|
|
4078
4057
|
}
|
|
4079
|
-
function
|
|
4080
|
-
return e == null ? !1 :
|
|
4058
|
+
function nt(e) {
|
|
4059
|
+
return e == null ? !1 : Oe(e).some(
|
|
4081
4060
|
(t) => {
|
|
4082
4061
|
var r;
|
|
4083
|
-
return (r =
|
|
4062
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
|
4084
4063
|
}
|
|
4085
4064
|
);
|
|
4086
4065
|
}
|
|
4087
|
-
function
|
|
4066
|
+
function Wi(e, t) {
|
|
4088
4067
|
return Promise.all(
|
|
4089
|
-
t.map((n) => (
|
|
4090
|
-
).then((n) =>
|
|
4091
|
-
}
|
|
4092
|
-
const
|
|
4093
|
-
function
|
|
4094
|
-
if (!
|
|
4095
|
-
return e in
|
|
4096
|
-
const t =
|
|
4097
|
-
return
|
|
4068
|
+
t.map((n) => (ki(e, n), n().then((i) => i.default || i)))
|
|
4069
|
+
).then((n) => wr(e, ...n));
|
|
4070
|
+
}
|
|
4071
|
+
const le = {};
|
|
4072
|
+
function Tr(e) {
|
|
4073
|
+
if (!nt(e))
|
|
4074
|
+
return e in le ? le[e] : Promise.resolve();
|
|
4075
|
+
const t = Vi(e);
|
|
4076
|
+
return le[e] = Promise.all(
|
|
4098
4077
|
t.map(
|
|
4099
|
-
([r, n]) =>
|
|
4078
|
+
([r, n]) => Wi(r, n)
|
|
4100
4079
|
)
|
|
4101
4080
|
).then(() => {
|
|
4102
|
-
if (
|
|
4103
|
-
return
|
|
4104
|
-
delete
|
|
4105
|
-
}),
|
|
4081
|
+
if (nt(e))
|
|
4082
|
+
return Tr(e);
|
|
4083
|
+
delete le[e];
|
|
4084
|
+
}), le[e];
|
|
4106
4085
|
}
|
|
4107
|
-
const
|
|
4086
|
+
const Xi = {
|
|
4108
4087
|
number: {
|
|
4109
4088
|
scientific: { notation: "scientific" },
|
|
4110
4089
|
engineering: { notation: "engineering" },
|
|
@@ -4133,135 +4112,135 @@ const Ji = {
|
|
|
4133
4112
|
timeZoneName: "short"
|
|
4134
4113
|
}
|
|
4135
4114
|
}
|
|
4136
|
-
},
|
|
4115
|
+
}, zi = {
|
|
4137
4116
|
fallbackLocale: null,
|
|
4138
4117
|
loadingDelay: 200,
|
|
4139
|
-
formats:
|
|
4118
|
+
formats: Xi,
|
|
4140
4119
|
warnOnMissingMessages: !0,
|
|
4141
4120
|
handleMissingMessage: void 0,
|
|
4142
4121
|
ignoreTag: !0
|
|
4143
|
-
},
|
|
4144
|
-
function
|
|
4145
|
-
return
|
|
4122
|
+
}, Ji = zi;
|
|
4123
|
+
function ie() {
|
|
4124
|
+
return Ji;
|
|
4146
4125
|
}
|
|
4147
|
-
const
|
|
4148
|
-
var
|
|
4126
|
+
const je = Re(!1);
|
|
4127
|
+
var Zi = Object.defineProperty, Qi = Object.defineProperties, Yi = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, qi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, eo = (e, t) => {
|
|
4149
4128
|
for (var r in t || (t = {}))
|
|
4150
|
-
|
|
4151
|
-
if (
|
|
4152
|
-
for (var r of
|
|
4153
|
-
|
|
4129
|
+
qi.call(t, r) && Nt(e, r, t[r]);
|
|
4130
|
+
if (Lt)
|
|
4131
|
+
for (var r of Lt(t))
|
|
4132
|
+
Ki.call(t, r) && Nt(e, r, t[r]);
|
|
4154
4133
|
return e;
|
|
4155
|
-
},
|
|
4156
|
-
let
|
|
4157
|
-
const
|
|
4158
|
-
function
|
|
4134
|
+
}, to = (e, t) => Qi(e, Yi(t));
|
|
4135
|
+
let it;
|
|
4136
|
+
const Be = Re(null);
|
|
4137
|
+
function Ct(e) {
|
|
4159
4138
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4160
4139
|
}
|
|
4161
|
-
function
|
|
4162
|
-
const r =
|
|
4163
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4140
|
+
function Oe(e, t = ie().fallbackLocale) {
|
|
4141
|
+
const r = Ct(e);
|
|
4142
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
4164
4143
|
}
|
|
4165
4144
|
function J() {
|
|
4166
|
-
return
|
|
4145
|
+
return it ?? void 0;
|
|
4167
4146
|
}
|
|
4168
|
-
|
|
4169
|
-
|
|
4147
|
+
Be.subscribe((e) => {
|
|
4148
|
+
it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4170
4149
|
});
|
|
4171
|
-
const
|
|
4172
|
-
if (e &&
|
|
4173
|
-
const { loadingDelay: t } =
|
|
4150
|
+
const ro = (e) => {
|
|
4151
|
+
if (e && ji(e) && nt(e)) {
|
|
4152
|
+
const { loadingDelay: t } = ie();
|
|
4174
4153
|
let r;
|
|
4175
4154
|
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
|
4176
|
-
() =>
|
|
4155
|
+
() => je.set(!0),
|
|
4177
4156
|
t
|
|
4178
|
-
) :
|
|
4179
|
-
|
|
4157
|
+
) : je.set(!0), Tr(e).then(() => {
|
|
4158
|
+
Be.set(e);
|
|
4180
4159
|
}).finally(() => {
|
|
4181
|
-
clearTimeout(r),
|
|
4160
|
+
clearTimeout(r), je.set(!1);
|
|
4182
4161
|
});
|
|
4183
4162
|
}
|
|
4184
|
-
return
|
|
4185
|
-
}, V =
|
|
4186
|
-
set:
|
|
4187
|
-
}),
|
|
4163
|
+
return Be.set(e);
|
|
4164
|
+
}, V = to(eo({}, Be), {
|
|
4165
|
+
set: ro
|
|
4166
|
+
}), Me = (e) => {
|
|
4188
4167
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4189
4168
|
return (n) => {
|
|
4190
4169
|
const i = JSON.stringify(n);
|
|
4191
4170
|
return i in t ? t[i] : t[i] = e(n);
|
|
4192
4171
|
};
|
|
4193
4172
|
};
|
|
4194
|
-
var
|
|
4173
|
+
var no = Object.defineProperty, Ae = Object.getOwnPropertySymbols, Hr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4195
4174
|
for (var r in t || (t = {}))
|
|
4196
|
-
|
|
4197
|
-
if (
|
|
4198
|
-
for (var r of
|
|
4199
|
-
|
|
4175
|
+
Hr.call(t, r) && Gt(e, r, t[r]);
|
|
4176
|
+
if (Ae)
|
|
4177
|
+
for (var r of Ae(t))
|
|
4178
|
+
Br.call(t, r) && Gt(e, r, t[r]);
|
|
4200
4179
|
return e;
|
|
4201
|
-
},
|
|
4180
|
+
}, se = (e, t) => {
|
|
4202
4181
|
var r = {};
|
|
4203
4182
|
for (var n in e)
|
|
4204
|
-
|
|
4205
|
-
if (e != null &&
|
|
4206
|
-
for (var n of
|
|
4207
|
-
t.indexOf(n) < 0 &&
|
|
4183
|
+
Hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4184
|
+
if (e != null && Ae)
|
|
4185
|
+
for (var n of Ae(e))
|
|
4186
|
+
t.indexOf(n) < 0 && Br.call(e, n) && (r[n] = e[n]);
|
|
4208
4187
|
return r;
|
|
4209
4188
|
};
|
|
4210
|
-
const
|
|
4211
|
-
const { formats: r } =
|
|
4189
|
+
const de = (e, t) => {
|
|
4190
|
+
const { formats: r } = ie();
|
|
4212
4191
|
if (e in r && t in r[e])
|
|
4213
4192
|
return r[e][t];
|
|
4214
4193
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4215
|
-
},
|
|
4194
|
+
}, io = Me(
|
|
4216
4195
|
(e) => {
|
|
4217
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4196
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4218
4197
|
if (r == null)
|
|
4219
4198
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4220
|
-
return n && (i =
|
|
4199
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4221
4200
|
}
|
|
4222
|
-
),
|
|
4201
|
+
), oo = Me(
|
|
4223
4202
|
(e) => {
|
|
4224
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4203
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4225
4204
|
if (r == null)
|
|
4226
4205
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4227
|
-
return n ? i =
|
|
4206
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4228
4207
|
}
|
|
4229
|
-
),
|
|
4208
|
+
), ao = Me(
|
|
4230
4209
|
(e) => {
|
|
4231
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4210
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4232
4211
|
if (r == null)
|
|
4233
4212
|
throw new Error(
|
|
4234
4213
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4235
4214
|
);
|
|
4236
|
-
return n ? i =
|
|
4215
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4237
4216
|
}
|
|
4238
|
-
),
|
|
4217
|
+
), so = (e = {}) => {
|
|
4239
4218
|
var t = e, {
|
|
4240
4219
|
locale: r = J()
|
|
4241
|
-
} = t, n =
|
|
4220
|
+
} = t, n = se(t, [
|
|
4242
4221
|
"locale"
|
|
4243
4222
|
]);
|
|
4244
|
-
return
|
|
4245
|
-
},
|
|
4223
|
+
return io(lt({ locale: r }, n));
|
|
4224
|
+
}, uo = (e = {}) => {
|
|
4246
4225
|
var t = e, {
|
|
4247
4226
|
locale: r = J()
|
|
4248
|
-
} = t, n =
|
|
4227
|
+
} = t, n = se(t, [
|
|
4249
4228
|
"locale"
|
|
4250
4229
|
]);
|
|
4251
|
-
return
|
|
4252
|
-
},
|
|
4230
|
+
return oo(lt({ locale: r }, n));
|
|
4231
|
+
}, lo = (e = {}) => {
|
|
4253
4232
|
var t = e, {
|
|
4254
4233
|
locale: r = J()
|
|
4255
|
-
} = t, n =
|
|
4234
|
+
} = t, n = se(t, [
|
|
4256
4235
|
"locale"
|
|
4257
4236
|
]);
|
|
4258
|
-
return
|
|
4259
|
-
},
|
|
4237
|
+
return ao(lt({ locale: r }, n));
|
|
4238
|
+
}, ho = Me(
|
|
4260
4239
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4261
|
-
(e, t = J()) => new
|
|
4262
|
-
ignoreTag:
|
|
4240
|
+
(e, t = J()) => new Gi(e, t, ie().formats, {
|
|
4241
|
+
ignoreTag: ie().ignoreTag
|
|
4263
4242
|
})
|
|
4264
|
-
),
|
|
4243
|
+
), co = (e, t = {}) => {
|
|
4265
4244
|
var r, n, i, o;
|
|
4266
4245
|
let a = t;
|
|
4267
4246
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4274,9 +4253,9 @@ const me = (e, t) => {
|
|
|
4274
4253
|
throw new Error(
|
|
4275
4254
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4276
4255
|
);
|
|
4277
|
-
let u =
|
|
4256
|
+
let u = xr(e, h);
|
|
4278
4257
|
if (!u)
|
|
4279
|
-
u = (o = (i = (n = (r =
|
|
4258
|
+
u = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4280
4259
|
else if (typeof u != "string")
|
|
4281
4260
|
return console.warn(
|
|
4282
4261
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4285,7 +4264,7 @@ const me = (e, t) => {
|
|
|
4285
4264
|
return u;
|
|
4286
4265
|
let f = u;
|
|
4287
4266
|
try {
|
|
4288
|
-
f =
|
|
4267
|
+
f = ho(u, h).format(s);
|
|
4289
4268
|
} catch (c) {
|
|
4290
4269
|
c instanceof Error && console.warn(
|
|
4291
4270
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4293,21 +4272,21 @@ const me = (e, t) => {
|
|
|
4293
4272
|
);
|
|
4294
4273
|
}
|
|
4295
4274
|
return f;
|
|
4296
|
-
},
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
window.emWidgets = { topic:
|
|
4302
|
-
const
|
|
4275
|
+
}, fo = (e, t) => lo(t).format(e), mo = (e, t) => uo(t).format(e), po = (e, t) => so(t).format(e), bo = (e, t = J()) => xr(e, t), go = oe([V, ae], () => co);
|
|
4276
|
+
oe([V], () => fo);
|
|
4277
|
+
oe([V], () => mo);
|
|
4278
|
+
oe([V], () => po);
|
|
4279
|
+
oe([V, ae], () => bo);
|
|
4280
|
+
window.emWidgets = { topic: Rn };
|
|
4281
|
+
const yo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4303
4282
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4304
|
-
function
|
|
4283
|
+
function vo(e, t) {
|
|
4305
4284
|
if (e) {
|
|
4306
4285
|
const r = document.createElement("style");
|
|
4307
4286
|
r.innerHTML = t, e.appendChild(r);
|
|
4308
4287
|
}
|
|
4309
4288
|
}
|
|
4310
|
-
function
|
|
4289
|
+
function _o(e, t) {
|
|
4311
4290
|
if (!e || !t)
|
|
4312
4291
|
return;
|
|
4313
4292
|
const r = new URL(t);
|
|
@@ -4318,7 +4297,7 @@ function Eo(e, t) {
|
|
|
4318
4297
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4319
4298
|
});
|
|
4320
4299
|
}
|
|
4321
|
-
function
|
|
4300
|
+
function xo(e, t, r) {
|
|
4322
4301
|
if (window.emMessageBus) {
|
|
4323
4302
|
const n = document.createElement("style");
|
|
4324
4303
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4326,18 +4305,18 @@ function wo(e, t, r) {
|
|
|
4326
4305
|
});
|
|
4327
4306
|
}
|
|
4328
4307
|
}
|
|
4329
|
-
function
|
|
4308
|
+
function Eo({ withLocale: e, translations: t }) {
|
|
4330
4309
|
V.subscribe((r) => {
|
|
4331
|
-
r == null && (
|
|
4310
|
+
r == null && (ae.set(t), V.set(e));
|
|
4332
4311
|
});
|
|
4333
4312
|
}
|
|
4334
|
-
function
|
|
4335
|
-
|
|
4313
|
+
function Ut(e, t) {
|
|
4314
|
+
wr(e, t);
|
|
4336
4315
|
}
|
|
4337
|
-
function
|
|
4316
|
+
function wo(e) {
|
|
4338
4317
|
V.set(e);
|
|
4339
4318
|
}
|
|
4340
|
-
const
|
|
4319
|
+
const Ft = {
|
|
4341
4320
|
en: {
|
|
4342
4321
|
playRandomGame: "Play a random game",
|
|
4343
4322
|
randomGameLoading: "Selecting ...",
|
|
@@ -4411,39 +4390,39 @@ const Dt = {
|
|
|
4411
4390
|
noGames: "There are no random games to play"
|
|
4412
4391
|
}
|
|
4413
4392
|
};
|
|
4414
|
-
function
|
|
4415
|
-
|
|
4393
|
+
function So(e) {
|
|
4394
|
+
Zr(e, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
|
|
4416
4395
|
}
|
|
4417
|
-
function
|
|
4396
|
+
function Dt(e, t, r) {
|
|
4418
4397
|
const n = e.slice();
|
|
4419
4398
|
return n[41] = t[r], n;
|
|
4420
4399
|
}
|
|
4421
|
-
const
|
|
4422
|
-
function
|
|
4400
|
+
const To = (e) => ({}), $t = (e) => ({});
|
|
4401
|
+
function jt(e) {
|
|
4423
4402
|
let t, r, n, i, o, a, s;
|
|
4424
4403
|
const h = (
|
|
4425
4404
|
/*#slots*/
|
|
4426
4405
|
e[23].close
|
|
4427
|
-
), l =
|
|
4406
|
+
), l = Wr(
|
|
4428
4407
|
h,
|
|
4429
4408
|
e,
|
|
4430
4409
|
/*$$scope*/
|
|
4431
4410
|
e[22],
|
|
4432
|
-
|
|
4433
|
-
), u = l ||
|
|
4411
|
+
$t
|
|
4412
|
+
), u = l || Ho();
|
|
4434
4413
|
function f(d, p) {
|
|
4435
4414
|
return (
|
|
4436
4415
|
/*hasRandomGames*/
|
|
4437
|
-
d[7] ?
|
|
4416
|
+
d[7] ? Ao : Bo
|
|
4438
4417
|
);
|
|
4439
4418
|
}
|
|
4440
4419
|
let c = f(e), m = c(e);
|
|
4441
4420
|
return {
|
|
4442
4421
|
c() {
|
|
4443
|
-
t =
|
|
4422
|
+
t = S("div"), r = S("div"), n = S("span"), u && u.c(), i = k(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
|
|
4444
4423
|
},
|
|
4445
4424
|
m(d, p) {
|
|
4446
|
-
|
|
4425
|
+
O(d, t, p), x(t, r), x(r, n), u && u.m(n, null), x(r, i), m.m(r, null), o = !0, a || (s = Te(
|
|
4447
4426
|
n,
|
|
4448
4427
|
"click",
|
|
4449
4428
|
/*closeModal*/
|
|
@@ -4452,62 +4431,62 @@ function Vt(e) {
|
|
|
4452
4431
|
},
|
|
4453
4432
|
p(d, p) {
|
|
4454
4433
|
l && l.p && (!o || p[0] & /*$$scope*/
|
|
4455
|
-
4194304) &&
|
|
4434
|
+
4194304) && zr(
|
|
4456
4435
|
l,
|
|
4457
4436
|
h,
|
|
4458
4437
|
d,
|
|
4459
4438
|
/*$$scope*/
|
|
4460
4439
|
d[22],
|
|
4461
|
-
o ?
|
|
4440
|
+
o ? Xr(
|
|
4462
4441
|
h,
|
|
4463
4442
|
/*$$scope*/
|
|
4464
4443
|
d[22],
|
|
4465
4444
|
p,
|
|
4466
|
-
|
|
4467
|
-
) :
|
|
4445
|
+
To
|
|
4446
|
+
) : Jr(
|
|
4468
4447
|
/*$$scope*/
|
|
4469
4448
|
d[22]
|
|
4470
4449
|
),
|
|
4471
|
-
|
|
4450
|
+
$t
|
|
4472
4451
|
), c === (c = f(d)) && m ? m.p(d, p) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
|
|
4473
4452
|
},
|
|
4474
4453
|
i(d) {
|
|
4475
|
-
o || (
|
|
4454
|
+
o || (ce(u, d), o = !0);
|
|
4476
4455
|
},
|
|
4477
4456
|
o(d) {
|
|
4478
|
-
|
|
4457
|
+
We(u, d), o = !1;
|
|
4479
4458
|
},
|
|
4480
4459
|
d(d) {
|
|
4481
|
-
d &&
|
|
4460
|
+
d && R(t), u && u.d(d), m.d(), a = !1, s();
|
|
4482
4461
|
}
|
|
4483
4462
|
};
|
|
4484
4463
|
}
|
|
4485
|
-
function
|
|
4464
|
+
function Ho(e) {
|
|
4486
4465
|
let t, r;
|
|
4487
4466
|
return {
|
|
4488
4467
|
c() {
|
|
4489
|
-
t =
|
|
4468
|
+
t = pt("svg"), r = pt("path"), g(r, "stroke-linecap", "round"), g(r, "stroke-linejoin", "round"), g(r, "stroke-width", "2"), g(r, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4490
4469
|
},
|
|
4491
4470
|
m(n, i) {
|
|
4492
|
-
|
|
4471
|
+
O(n, t, i), x(t, r);
|
|
4493
4472
|
},
|
|
4494
|
-
p:
|
|
4473
|
+
p: N,
|
|
4495
4474
|
d(n) {
|
|
4496
|
-
n &&
|
|
4475
|
+
n && R(t);
|
|
4497
4476
|
}
|
|
4498
4477
|
};
|
|
4499
4478
|
}
|
|
4500
|
-
function
|
|
4479
|
+
function Bo(e) {
|
|
4501
4480
|
let t, r = (
|
|
4502
4481
|
/*$_*/
|
|
4503
4482
|
e[9]("noGames") + ""
|
|
4504
4483
|
), n;
|
|
4505
4484
|
return {
|
|
4506
4485
|
c() {
|
|
4507
|
-
t =
|
|
4486
|
+
t = S("p"), n = j(r), g(t, "class", "RandomGameLoading");
|
|
4508
4487
|
},
|
|
4509
4488
|
m(i, o) {
|
|
4510
|
-
|
|
4489
|
+
O(i, t, o), x(t, n);
|
|
4511
4490
|
},
|
|
4512
4491
|
p(i, o) {
|
|
4513
4492
|
o[0] & /*$_*/
|
|
@@ -4515,48 +4494,48 @@ function Po(e) {
|
|
|
4515
4494
|
i[9]("noGames") + "") && X(n, r);
|
|
4516
4495
|
},
|
|
4517
4496
|
d(i) {
|
|
4518
|
-
i &&
|
|
4497
|
+
i && R(t);
|
|
4519
4498
|
}
|
|
4520
4499
|
};
|
|
4521
4500
|
}
|
|
4522
|
-
function
|
|
4523
|
-
let t, r, n, i, o =
|
|
4501
|
+
function Ao(e) {
|
|
4502
|
+
let t, r, n, i, o = gt(
|
|
4524
4503
|
/*gamesToShow*/
|
|
4525
4504
|
e[4]
|
|
4526
4505
|
), a = [];
|
|
4527
4506
|
for (let u = 0; u < o.length; u += 1)
|
|
4528
|
-
a[u] =
|
|
4507
|
+
a[u] = kt(Dt(e, o, u));
|
|
4529
4508
|
function s(u, f) {
|
|
4530
4509
|
return (
|
|
4531
4510
|
/*animationDone*/
|
|
4532
|
-
u[6] ?
|
|
4511
|
+
u[6] ? Ro : Po
|
|
4533
4512
|
);
|
|
4534
4513
|
}
|
|
4535
4514
|
let h = s(e), l = h(e);
|
|
4536
4515
|
return {
|
|
4537
4516
|
c() {
|
|
4538
|
-
t =
|
|
4517
|
+
t = S("div"), r = S("main"), n = S("div");
|
|
4539
4518
|
for (let u = 0; u < a.length; u += 1)
|
|
4540
4519
|
a[u].c();
|
|
4541
4520
|
i = k(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
|
|
4542
4521
|
},
|
|
4543
4522
|
m(u, f) {
|
|
4544
|
-
|
|
4523
|
+
O(u, t, f), x(t, r), x(r, n);
|
|
4545
4524
|
for (let c = 0; c < a.length; c += 1)
|
|
4546
4525
|
a[c] && a[c].m(n, null);
|
|
4547
|
-
e[24](n),
|
|
4526
|
+
e[24](n), x(t, i), l.m(t, null);
|
|
4548
4527
|
},
|
|
4549
4528
|
p(u, f) {
|
|
4550
4529
|
if (f[0] & /*gamesToShow*/
|
|
4551
4530
|
16) {
|
|
4552
|
-
o =
|
|
4531
|
+
o = gt(
|
|
4553
4532
|
/*gamesToShow*/
|
|
4554
4533
|
u[4]
|
|
4555
4534
|
);
|
|
4556
4535
|
let c;
|
|
4557
4536
|
for (c = 0; c < o.length; c += 1) {
|
|
4558
|
-
const m =
|
|
4559
|
-
a[c] ? a[c].p(m, f) : (a[c] =
|
|
4537
|
+
const m = Dt(u, o, c);
|
|
4538
|
+
a[c] ? a[c].p(m, f) : (a[c] = kt(m), a[c].c(), a[c].m(n, null));
|
|
4560
4539
|
}
|
|
4561
4540
|
for (; c < a.length; c += 1)
|
|
4562
4541
|
a[c].d(1);
|
|
@@ -4565,25 +4544,25 @@ function Oo(e) {
|
|
|
4565
4544
|
h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
|
|
4566
4545
|
},
|
|
4567
4546
|
d(u) {
|
|
4568
|
-
u &&
|
|
4547
|
+
u && R(t), qr(a, u), e[24](null), l.d();
|
|
4569
4548
|
}
|
|
4570
4549
|
};
|
|
4571
4550
|
}
|
|
4572
|
-
function
|
|
4551
|
+
function kt(e) {
|
|
4573
4552
|
let t, r, n, i, o, a;
|
|
4574
4553
|
return {
|
|
4575
4554
|
c() {
|
|
4576
|
-
t =
|
|
4555
|
+
t = S("div"), r = S("img"), a = k(), g(r, "class", "RandomGameImage"), dt(r.src, n = /*game*/
|
|
4577
4556
|
e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
|
|
4578
4557
|
e[41].name), g(r, "title", o = /*game*/
|
|
4579
4558
|
e[41].name), g(t, "class", "item");
|
|
4580
4559
|
},
|
|
4581
4560
|
m(s, h) {
|
|
4582
|
-
|
|
4561
|
+
O(s, t, h), x(t, r), x(t, a);
|
|
4583
4562
|
},
|
|
4584
4563
|
p(s, h) {
|
|
4585
4564
|
h[0] & /*gamesToShow*/
|
|
4586
|
-
16 && !
|
|
4565
|
+
16 && !dt(r.src, n = /*game*/
|
|
4587
4566
|
s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
|
|
4588
4567
|
16 && i !== (i = /*game*/
|
|
4589
4568
|
s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
|
|
@@ -4591,21 +4570,21 @@ function Wt(e) {
|
|
|
4591
4570
|
s[41].name) && g(r, "title", o);
|
|
4592
4571
|
},
|
|
4593
4572
|
d(s) {
|
|
4594
|
-
s &&
|
|
4573
|
+
s && R(t);
|
|
4595
4574
|
}
|
|
4596
4575
|
};
|
|
4597
4576
|
}
|
|
4598
|
-
function
|
|
4577
|
+
function Po(e) {
|
|
4599
4578
|
let t, r = (
|
|
4600
4579
|
/*$_*/
|
|
4601
4580
|
e[9]("randomGameLoading") + ""
|
|
4602
4581
|
), n;
|
|
4603
4582
|
return {
|
|
4604
4583
|
c() {
|
|
4605
|
-
t =
|
|
4584
|
+
t = S("p"), n = j(r), g(t, "class", "RandomGameLoading");
|
|
4606
4585
|
},
|
|
4607
4586
|
m(i, o) {
|
|
4608
|
-
|
|
4587
|
+
O(i, t, o), x(t, n);
|
|
4609
4588
|
},
|
|
4610
4589
|
p(i, o) {
|
|
4611
4590
|
o[0] & /*$_*/
|
|
@@ -4613,11 +4592,11 @@ function Ro(e) {
|
|
|
4613
4592
|
i[9]("randomGameLoading") + "") && X(n, r);
|
|
4614
4593
|
},
|
|
4615
4594
|
d(i) {
|
|
4616
|
-
i &&
|
|
4595
|
+
i && R(t);
|
|
4617
4596
|
}
|
|
4618
4597
|
};
|
|
4619
4598
|
}
|
|
4620
|
-
function
|
|
4599
|
+
function Ro(e) {
|
|
4621
4600
|
let t, r, n, i, o = (
|
|
4622
4601
|
/*randomGame*/
|
|
4623
4602
|
e[3].name + ""
|
|
@@ -4630,11 +4609,11 @@ function Io(e) {
|
|
|
4630
4609
|
), d, p, A;
|
|
4631
4610
|
return {
|
|
4632
4611
|
c() {
|
|
4633
|
-
t =
|
|
4634
|
-
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, r = k(), n =
|
|
4612
|
+
t = S("button"), t.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
|
|
4613
|
+
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, r = k(), n = S("div"), i = S("p"), a = j(o), s = k(), h = S("p"), u = j(l), f = k(), c = S("button"), d = j(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
|
|
4635
4614
|
},
|
|
4636
4615
|
m(H, T) {
|
|
4637
|
-
|
|
4616
|
+
O(H, t, T), O(H, r, T), O(H, n, T), x(n, i), x(i, a), x(n, s), x(n, h), x(h, u), x(n, f), x(n, c), x(c, d), p || (A = [
|
|
4638
4617
|
Te(
|
|
4639
4618
|
t,
|
|
4640
4619
|
"click",
|
|
@@ -4659,21 +4638,21 @@ function Io(e) {
|
|
|
4659
4638
|
H[9]("playNowRandomGame") + "") && X(d, m);
|
|
4660
4639
|
},
|
|
4661
4640
|
d(H) {
|
|
4662
|
-
H && (
|
|
4641
|
+
H && (R(t), R(r), R(n)), p = !1, z(A);
|
|
4663
4642
|
}
|
|
4664
4643
|
};
|
|
4665
4644
|
}
|
|
4666
|
-
function
|
|
4645
|
+
function Io(e) {
|
|
4667
4646
|
let t, r = (
|
|
4668
4647
|
/*$_*/
|
|
4669
4648
|
e[9]("playRandomGame") + ""
|
|
4670
4649
|
), n;
|
|
4671
4650
|
return {
|
|
4672
4651
|
c() {
|
|
4673
|
-
t =
|
|
4652
|
+
t = S("span"), n = j(r), g(t, "class", "RandomButtonText");
|
|
4674
4653
|
},
|
|
4675
4654
|
m(i, o) {
|
|
4676
|
-
|
|
4655
|
+
O(i, t, o), x(t, n);
|
|
4677
4656
|
},
|
|
4678
4657
|
p(i, o) {
|
|
4679
4658
|
o[0] & /*$_*/
|
|
@@ -4681,21 +4660,21 @@ function No(e) {
|
|
|
4681
4660
|
i[9]("playRandomGame") + "") && X(n, r);
|
|
4682
4661
|
},
|
|
4683
4662
|
d(i) {
|
|
4684
|
-
i &&
|
|
4663
|
+
i && R(t);
|
|
4685
4664
|
}
|
|
4686
4665
|
};
|
|
4687
4666
|
}
|
|
4688
|
-
function
|
|
4667
|
+
function Oo(e) {
|
|
4689
4668
|
let t, r;
|
|
4690
4669
|
return {
|
|
4691
4670
|
c() {
|
|
4692
|
-
t =
|
|
4671
|
+
t = S("span"), r = j(
|
|
4693
4672
|
/*buttontext*/
|
|
4694
4673
|
e[1]
|
|
4695
4674
|
), g(t, "class", "RandomButtonText");
|
|
4696
4675
|
},
|
|
4697
4676
|
m(n, i) {
|
|
4698
|
-
|
|
4677
|
+
O(n, t, i), x(t, r);
|
|
4699
4678
|
},
|
|
4700
4679
|
p(n, i) {
|
|
4701
4680
|
i[0] & /*buttontext*/
|
|
@@ -4706,32 +4685,32 @@ function Mo(e) {
|
|
|
4706
4685
|
);
|
|
4707
4686
|
},
|
|
4708
4687
|
d(n) {
|
|
4709
|
-
n &&
|
|
4688
|
+
n && R(t);
|
|
4710
4689
|
}
|
|
4711
4690
|
};
|
|
4712
4691
|
}
|
|
4713
|
-
function
|
|
4692
|
+
function Mo(e) {
|
|
4714
4693
|
let t, r, n, i, o, a, s, h, l, u = (
|
|
4715
4694
|
/*show*/
|
|
4716
|
-
e[5] &&
|
|
4695
|
+
e[5] && jt(e)
|
|
4717
4696
|
);
|
|
4718
4697
|
function f(d, p) {
|
|
4719
4698
|
if (
|
|
4720
4699
|
/*buttontext*/
|
|
4721
4700
|
d[1]
|
|
4722
4701
|
)
|
|
4723
|
-
return
|
|
4702
|
+
return Oo;
|
|
4724
4703
|
if (!/*buttontext*/
|
|
4725
4704
|
d[1])
|
|
4726
|
-
return
|
|
4705
|
+
return Io;
|
|
4727
4706
|
}
|
|
4728
4707
|
let c = f(e), m = c && c(e);
|
|
4729
4708
|
return {
|
|
4730
4709
|
c() {
|
|
4731
|
-
t =
|
|
4710
|
+
t = S("div"), u && u.c(), r = k(), n = S("div"), i = S("button"), m && m.c(), o = k(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
|
|
4732
4711
|
},
|
|
4733
4712
|
m(d, p) {
|
|
4734
|
-
|
|
4713
|
+
O(d, t, p), u && u.m(t, null), x(t, r), x(t, n), x(n, i), m && m.m(i, null), x(i, o), x(i, a), a.innerHTML = /*randombuttonicon*/
|
|
4735
4714
|
e[0], e[28](t), s = !0, h || (l = Te(
|
|
4736
4715
|
i,
|
|
4737
4716
|
"click",
|
|
@@ -4742,101 +4721,101 @@ function Lo(e) {
|
|
|
4742
4721
|
p(d, p) {
|
|
4743
4722
|
/*show*/
|
|
4744
4723
|
d[5] ? u ? (u.p(d, p), p[0] & /*show*/
|
|
4745
|
-
32 &&
|
|
4724
|
+
32 && ce(u, 1)) : (u = jt(d), u.c(), ce(u, 1), u.m(t, r)) : u && (sn(), We(u, 1, 1, () => {
|
|
4746
4725
|
u = null;
|
|
4747
|
-
}),
|
|
4726
|
+
}), un()), c === (c = f(d)) && m ? m.p(d, p) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(i, o))), (!s || p[0] & /*randombuttonicon*/
|
|
4748
4727
|
1) && (a.innerHTML = /*randombuttonicon*/
|
|
4749
4728
|
d[0]);
|
|
4750
4729
|
},
|
|
4751
4730
|
i(d) {
|
|
4752
|
-
s || (
|
|
4731
|
+
s || (ce(u), s = !0);
|
|
4753
4732
|
},
|
|
4754
4733
|
o(d) {
|
|
4755
|
-
|
|
4734
|
+
We(u), s = !1;
|
|
4756
4735
|
},
|
|
4757
4736
|
d(d) {
|
|
4758
|
-
d &&
|
|
4737
|
+
d && R(t), u && u.d(), m && m.d(), e[28](null), h = !1, l();
|
|
4759
4738
|
}
|
|
4760
4739
|
};
|
|
4761
4740
|
}
|
|
4762
|
-
function
|
|
4741
|
+
function Lo(e, t, r) {
|
|
4763
4742
|
let n;
|
|
4764
|
-
|
|
4765
|
-
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B,
|
|
4766
|
-
|
|
4767
|
-
const
|
|
4768
|
-
fetch(c).then((
|
|
4769
|
-
Object.keys(
|
|
4770
|
-
|
|
4743
|
+
Vr(e, go, (b) => r(9, n = b));
|
|
4744
|
+
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, M = !1, L = !1, C = !1, pe = window.navigator.userAgent, G, Z, ht, be, ct = null;
|
|
4745
|
+
Eo({ withLocale: "en", translations: {} });
|
|
4746
|
+
const Ar = () => {
|
|
4747
|
+
fetch(c).then((E) => E.json()).then((E) => {
|
|
4748
|
+
Object.keys(E).forEach((U) => {
|
|
4749
|
+
Ut(U, E[U]);
|
|
4771
4750
|
});
|
|
4772
|
-
}).catch((
|
|
4773
|
-
console.log(
|
|
4751
|
+
}).catch((E) => {
|
|
4752
|
+
console.log(E);
|
|
4774
4753
|
});
|
|
4775
4754
|
};
|
|
4776
|
-
Object.keys(
|
|
4777
|
-
|
|
4755
|
+
Object.keys(Ft).forEach((b) => {
|
|
4756
|
+
Ut(b, Ft[b]);
|
|
4778
4757
|
});
|
|
4779
|
-
const
|
|
4758
|
+
const Pr = () => {
|
|
4780
4759
|
let b = new URL(`${a}/v1/casino/games`);
|
|
4781
|
-
b.searchParams.append("platform",
|
|
4782
|
-
H =
|
|
4783
|
-
}).catch((
|
|
4784
|
-
console.log(
|
|
4760
|
+
b.searchParams.append("platform", yo(pe)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((E) => E.json()).then((E) => {
|
|
4761
|
+
H = E.items, H.length ? (r(4, B = Rr(H.slice(0, 19))), r(7, C = !0)) : (r(4, B = []), r(7, C = !1));
|
|
4762
|
+
}).catch((E) => {
|
|
4763
|
+
console.log(E), r(7, C = !1);
|
|
4785
4764
|
});
|
|
4786
4765
|
}, Rr = (b) => {
|
|
4787
|
-
const
|
|
4788
|
-
return
|
|
4766
|
+
const E = Or(b);
|
|
4767
|
+
return E.concat(E);
|
|
4789
4768
|
}, Ir = async () => {
|
|
4790
|
-
await
|
|
4791
|
-
},
|
|
4792
|
-
r(6,
|
|
4793
|
-
const b = window.getComputedStyle(Z).getPropertyValue("gap"),
|
|
4769
|
+
await nn(), be = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[be]), ht = Z.children[be];
|
|
4770
|
+
}, Le = async () => {
|
|
4771
|
+
r(6, L = !1), r(5, M = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await Ir();
|
|
4772
|
+
const b = window.getComputedStyle(Z).getPropertyValue("gap"), E = parseInt(b, 10) || 0, ue = (ht.offsetHeight + E) * be, Dr = [
|
|
4794
4773
|
{ transform: "translateX(0px)" },
|
|
4795
4774
|
{ filter: "blur(5px)" },
|
|
4796
4775
|
{
|
|
4797
|
-
transform: `translateY(-${
|
|
4776
|
+
transform: `translateY(-${ue}px)`
|
|
4798
4777
|
}
|
|
4799
|
-
],
|
|
4778
|
+
], $r = {
|
|
4800
4779
|
duration: 2e3,
|
|
4801
4780
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
4802
4781
|
fill: "forwards"
|
|
4803
4782
|
};
|
|
4804
|
-
|
|
4805
|
-
r(6,
|
|
4783
|
+
ct = Z.animate(Dr, $r), ct.onfinish = () => {
|
|
4784
|
+
r(6, L = !0);
|
|
4806
4785
|
};
|
|
4807
|
-
},
|
|
4808
|
-
const
|
|
4809
|
-
let
|
|
4810
|
-
for (;
|
|
4811
|
-
|
|
4812
|
-
return
|
|
4813
|
-
},
|
|
4786
|
+
}, Or = (b) => {
|
|
4787
|
+
const E = structuredClone(b);
|
|
4788
|
+
let U = E.length, ue;
|
|
4789
|
+
for (; U != 0; )
|
|
4790
|
+
ue = Math.floor(Math.random() * U), U--, [E[U], E[ue]] = [E[ue], E[U]];
|
|
4791
|
+
return E;
|
|
4792
|
+
}, ft = () => {
|
|
4814
4793
|
window.postMessage(
|
|
4815
4794
|
{
|
|
4816
4795
|
type: h,
|
|
4817
4796
|
gameId: T.gId || T.id
|
|
4818
4797
|
},
|
|
4819
4798
|
window.location.href
|
|
4820
|
-
), r(5,
|
|
4799
|
+
), r(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
4821
4800
|
context: "RandomGameWidget",
|
|
4822
4801
|
gameId: `${T.gId || T.id}`
|
|
4823
4802
|
});
|
|
4824
4803
|
}, Mr = () => {
|
|
4825
|
-
r(5,
|
|
4804
|
+
r(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: M }, window.location.href);
|
|
4826
4805
|
}, Lr = () => {
|
|
4827
|
-
|
|
4806
|
+
wo(l);
|
|
4828
4807
|
};
|
|
4829
|
-
|
|
4808
|
+
rn(() => () => {
|
|
4830
4809
|
});
|
|
4831
|
-
function
|
|
4810
|
+
function Nr(b) {
|
|
4832
4811
|
He[b ? "unshift" : "push"](() => {
|
|
4833
4812
|
Z = b, r(8, Z);
|
|
4834
4813
|
});
|
|
4835
4814
|
}
|
|
4836
|
-
const
|
|
4837
|
-
function
|
|
4815
|
+
const Cr = () => Le(), Gr = () => ft(), Ur = () => Le();
|
|
4816
|
+
function Fr(b) {
|
|
4838
4817
|
He[b ? "unshift" : "push"](() => {
|
|
4839
|
-
|
|
4818
|
+
G = b, r(2, G);
|
|
4840
4819
|
});
|
|
4841
4820
|
}
|
|
4842
4821
|
return e.$$set = (b) => {
|
|
@@ -4844,24 +4823,24 @@ function Co(e, t, r) {
|
|
|
4844
4823
|
}, e.$$.update = () => {
|
|
4845
4824
|
e.$$.dirty[0] & /*lang*/
|
|
4846
4825
|
65536 && l && Lr(), e.$$.dirty[0] & /*translationurl*/
|
|
4847
|
-
131072 && c &&
|
|
4848
|
-
24576 && a && s &&
|
|
4849
|
-
262148 && m &&
|
|
4850
|
-
524292 && d &&
|
|
4851
|
-
2097156 &&
|
|
4826
|
+
131072 && c && Ar(), e.$$.dirty[0] & /*endpoint, datasource*/
|
|
4827
|
+
24576 && a && s && Pr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4828
|
+
262148 && m && G && vo(G, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4829
|
+
524292 && d && G && _o(G, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4830
|
+
2097156 && G && xo(G, `${A}.Style`);
|
|
4852
4831
|
}, [
|
|
4853
4832
|
u,
|
|
4854
4833
|
f,
|
|
4855
|
-
|
|
4834
|
+
G,
|
|
4856
4835
|
T,
|
|
4857
4836
|
B,
|
|
4858
|
-
N,
|
|
4859
4837
|
M,
|
|
4860
|
-
|
|
4838
|
+
L,
|
|
4839
|
+
C,
|
|
4861
4840
|
Z,
|
|
4862
4841
|
n,
|
|
4863
|
-
|
|
4864
|
-
|
|
4842
|
+
Le,
|
|
4843
|
+
ft,
|
|
4865
4844
|
Mr,
|
|
4866
4845
|
a,
|
|
4867
4846
|
s,
|
|
@@ -4874,21 +4853,21 @@ function Co(e, t, r) {
|
|
|
4874
4853
|
A,
|
|
4875
4854
|
o,
|
|
4876
4855
|
i,
|
|
4856
|
+
Nr,
|
|
4877
4857
|
Cr,
|
|
4878
4858
|
Gr,
|
|
4879
4859
|
Ur,
|
|
4880
|
-
Fr
|
|
4881
|
-
$r
|
|
4860
|
+
Fr
|
|
4882
4861
|
];
|
|
4883
4862
|
}
|
|
4884
|
-
class
|
|
4863
|
+
class No extends dn {
|
|
4885
4864
|
constructor(t) {
|
|
4886
|
-
super(),
|
|
4865
|
+
super(), fn(
|
|
4887
4866
|
this,
|
|
4888
4867
|
t,
|
|
4889
|
-
Co,
|
|
4890
4868
|
Lo,
|
|
4891
|
-
|
|
4869
|
+
Mo,
|
|
4870
|
+
Wt,
|
|
4892
4871
|
{
|
|
4893
4872
|
endpoint: 13,
|
|
4894
4873
|
datasource: 14,
|
|
@@ -4902,7 +4881,7 @@ class Go extends pn {
|
|
|
4902
4881
|
filteredrandomgamecategories: 20,
|
|
4903
4882
|
mbsource: 21
|
|
4904
4883
|
},
|
|
4905
|
-
|
|
4884
|
+
So,
|
|
4906
4885
|
[-1, -1]
|
|
4907
4886
|
);
|
|
4908
4887
|
}
|
|
@@ -4910,70 +4889,70 @@ class Go extends pn {
|
|
|
4910
4889
|
return this.$$.ctx[13];
|
|
4911
4890
|
}
|
|
4912
4891
|
set endpoint(t) {
|
|
4913
|
-
this.$$set({ endpoint: t }),
|
|
4892
|
+
this.$$set({ endpoint: t }), I();
|
|
4914
4893
|
}
|
|
4915
4894
|
get datasource() {
|
|
4916
4895
|
return this.$$.ctx[14];
|
|
4917
4896
|
}
|
|
4918
4897
|
set datasource(t) {
|
|
4919
|
-
this.$$set({ datasource: t }),
|
|
4898
|
+
this.$$set({ datasource: t }), I();
|
|
4920
4899
|
}
|
|
4921
4900
|
get gameevent() {
|
|
4922
4901
|
return this.$$.ctx[15];
|
|
4923
4902
|
}
|
|
4924
4903
|
set gameevent(t) {
|
|
4925
|
-
this.$$set({ gameevent: t }),
|
|
4904
|
+
this.$$set({ gameevent: t }), I();
|
|
4926
4905
|
}
|
|
4927
4906
|
get lang() {
|
|
4928
4907
|
return this.$$.ctx[16];
|
|
4929
4908
|
}
|
|
4930
4909
|
set lang(t) {
|
|
4931
|
-
this.$$set({ lang: t }),
|
|
4910
|
+
this.$$set({ lang: t }), I();
|
|
4932
4911
|
}
|
|
4933
4912
|
get randombuttonicon() {
|
|
4934
4913
|
return this.$$.ctx[0];
|
|
4935
4914
|
}
|
|
4936
4915
|
set randombuttonicon(t) {
|
|
4937
|
-
this.$$set({ randombuttonicon: t }),
|
|
4916
|
+
this.$$set({ randombuttonicon: t }), I();
|
|
4938
4917
|
}
|
|
4939
4918
|
get buttontext() {
|
|
4940
4919
|
return this.$$.ctx[1];
|
|
4941
4920
|
}
|
|
4942
4921
|
set buttontext(t) {
|
|
4943
|
-
this.$$set({ buttontext: t }),
|
|
4922
|
+
this.$$set({ buttontext: t }), I();
|
|
4944
4923
|
}
|
|
4945
4924
|
get translationurl() {
|
|
4946
4925
|
return this.$$.ctx[17];
|
|
4947
4926
|
}
|
|
4948
4927
|
set translationurl(t) {
|
|
4949
|
-
this.$$set({ translationurl: t }),
|
|
4928
|
+
this.$$set({ translationurl: t }), I();
|
|
4950
4929
|
}
|
|
4951
4930
|
get clientstyling() {
|
|
4952
4931
|
return this.$$.ctx[18];
|
|
4953
4932
|
}
|
|
4954
4933
|
set clientstyling(t) {
|
|
4955
|
-
this.$$set({ clientstyling: t }),
|
|
4934
|
+
this.$$set({ clientstyling: t }), I();
|
|
4956
4935
|
}
|
|
4957
4936
|
get clientstylingurl() {
|
|
4958
4937
|
return this.$$.ctx[19];
|
|
4959
4938
|
}
|
|
4960
4939
|
set clientstylingurl(t) {
|
|
4961
|
-
this.$$set({ clientstylingurl: t }),
|
|
4940
|
+
this.$$set({ clientstylingurl: t }), I();
|
|
4962
4941
|
}
|
|
4963
4942
|
get filteredrandomgamecategories() {
|
|
4964
4943
|
return this.$$.ctx[20];
|
|
4965
4944
|
}
|
|
4966
4945
|
set filteredrandomgamecategories(t) {
|
|
4967
|
-
this.$$set({ filteredrandomgamecategories: t }),
|
|
4946
|
+
this.$$set({ filteredrandomgamecategories: t }), I();
|
|
4968
4947
|
}
|
|
4969
4948
|
get mbsource() {
|
|
4970
4949
|
return this.$$.ctx[21];
|
|
4971
4950
|
}
|
|
4972
4951
|
set mbsource(t) {
|
|
4973
|
-
this.$$set({ mbsource: t }),
|
|
4952
|
+
this.$$set({ mbsource: t }), I();
|
|
4974
4953
|
}
|
|
4975
4954
|
}
|
|
4976
|
-
|
|
4955
|
+
mn(No, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
|
|
4977
4956
|
export {
|
|
4978
|
-
|
|
4957
|
+
No as C
|
|
4979
4958
|
};
|