@everymatrix/casino-lobby-mini-games 0.2.3 → 0.3.0
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/{CasinoLobbyMiniGames-BryWSr_q.js → CasinoLobbyMiniGames-BY57Q6t9.js} +874 -839
- package/components/{CasinoLobbyMiniGames-sNUyjxD5.js → CasinoLobbyMiniGames-Bh5LeG52.js} +839 -804
- package/components/CasinoLobbyMiniGames-CajMXLVl.cjs +20 -0
- package/components/{CasinoMysteryChestContainer-CdhHMGFs.js → CasinoMysteryChestContainer-IiI_otYE.js} +16 -16
- package/components/{CasinoMysteryChestContainer-D15BPVsB.cjs → CasinoMysteryChestContainer-Z25Fea_T.cjs} +1 -1
- package/components/{CasinoMysteryChestContainer-D7JtkMJ9.js → CasinoMysteryChestContainer-wxjkuWy1.js} +18 -18
- package/components/{CasinoMysteryChestDetails-D5dMcrfJ.js → CasinoMysteryChestDetails-Chfd66X8.js} +183 -183
- package/components/{CasinoMysteryChestDetails--0wC24zE.js → CasinoMysteryChestDetails-Dqlj_CKW.js} +169 -169
- package/components/{CasinoMysteryChestDetails-xS_2_kXB.cjs → CasinoMysteryChestDetails-foimB6DB.cjs} +2 -2
- package/components/{CasinoMysteryChestModal-Dg8ZAcJN.js → CasinoMysteryChestModal-CC3ky83r.js} +13 -13
- package/components/{CasinoMysteryChestModal-GMfH3Nfr.js → CasinoMysteryChestModal-CePqroCF.js} +16 -16
- package/components/{CasinoMysteryChestModal-DoD9hwC0.cjs → CasinoMysteryChestModal-a-4F-9oK.cjs} +1 -1
- package/components/CasinoMysteryChestsList-Bub2sm61.cjs +1 -0
- package/components/{CasinoMysteryChestsList-BT105bIk.js → CasinoMysteryChestsList-DK9sWaBi.js} +563 -565
- package/components/{CasinoMysteryChestsList-D2r8u6uw.js → CasinoMysteryChestsList-IyypXB58.js} +591 -593
- package/components/{GeneralAnimationLoading-5lYCjCwv.js → GeneralAnimationLoading-C5zco7Jv.js} +17 -17
- package/components/{GeneralAnimationLoading-CRL3xtro.cjs → GeneralAnimationLoading-ie71G-dL.cjs} +1 -1
- package/components/{GeneralAnimationLoading-5QXKFRlL.js → GeneralAnimationLoading-kV60Vm7G.js} +13 -13
- package/es2015/casino-lobby-mini-games.cjs +1 -1
- package/es2015/casino-lobby-mini-games.js +1 -1
- package/esnext/casino-lobby-mini-games.js +1 -1
- package/package.json +1 -1
- package/components/CasinoLobbyMiniGames-n4MOHFqS.cjs +0 -20
- package/components/CasinoMysteryChestsList-6U8-I26u.cjs +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Mt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ht() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function te(e) {
|
|
10
|
+
e.forEach(Mt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function st(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Nt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let me;
|
|
19
|
-
function
|
|
19
|
+
function ns(e, t) {
|
|
20
20
|
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function br(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function $t(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function It(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function yr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push($t(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function H(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function gr(e, t, r) {
|
|
41
|
+
const n = vr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = C("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, _r(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function vr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,20 +54,20 @@ function mr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function _r(e, t) {
|
|
58
|
+
return H(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function re(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
67
|
function k(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function is(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -80,20 +80,20 @@ function Q(e) {
|
|
|
80
80
|
function be() {
|
|
81
81
|
return Q(" ");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ss() {
|
|
84
84
|
return Q("");
|
|
85
85
|
}
|
|
86
86
|
function ye(e, t, r, n) {
|
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function O(e, t, r) {
|
|
90
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
91
91
|
}
|
|
92
92
|
function $(e, t, r) {
|
|
93
93
|
const n = t.toLowerCase();
|
|
94
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
94
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : O(e, t, r);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Er(e) {
|
|
97
97
|
return Array.from(e.childNodes);
|
|
98
98
|
}
|
|
99
99
|
function ge(e, t) {
|
|
@@ -103,7 +103,7 @@ function ge(e, t) {
|
|
|
103
103
|
function G(e, t, r) {
|
|
104
104
|
e.classList.toggle(t, !!r);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function xr(e) {
|
|
107
107
|
const t = {};
|
|
108
108
|
return e.childNodes.forEach(
|
|
109
109
|
/** @param {Element} node */
|
|
@@ -112,90 +112,90 @@ function gr(e) {
|
|
|
112
112
|
}
|
|
113
113
|
), t;
|
|
114
114
|
}
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
115
|
+
let he;
|
|
116
|
+
function ue(e) {
|
|
117
|
+
he = e;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
if (!
|
|
119
|
+
function Sr() {
|
|
120
|
+
if (!he)
|
|
121
121
|
throw new Error("Function called outside component initialization");
|
|
122
|
-
return
|
|
122
|
+
return he;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
124
|
+
function wr(e) {
|
|
125
|
+
Sr().$$.on_mount.push(e);
|
|
126
126
|
}
|
|
127
|
-
const Z = [],
|
|
127
|
+
const Z = [], je = [];
|
|
128
128
|
let q = [];
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
|
|
129
|
+
const lt = [], Tr = /* @__PURE__ */ Promise.resolve();
|
|
130
|
+
let ke = !1;
|
|
131
|
+
function Hr() {
|
|
132
|
+
ke || (ke = !0, Tr.then(U));
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ve(e) {
|
|
135
135
|
q.push(e);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const Me = /* @__PURE__ */ new Set();
|
|
138
138
|
let W = 0;
|
|
139
|
-
function
|
|
139
|
+
function U() {
|
|
140
140
|
if (W !== 0)
|
|
141
141
|
return;
|
|
142
|
-
const e =
|
|
142
|
+
const e = he;
|
|
143
143
|
do {
|
|
144
144
|
try {
|
|
145
145
|
for (; W < Z.length; ) {
|
|
146
146
|
const t = Z[W];
|
|
147
|
-
W++,
|
|
147
|
+
W++, ue(t), Or(t.$$);
|
|
148
148
|
}
|
|
149
149
|
} catch (t) {
|
|
150
150
|
throw Z.length = 0, W = 0, t;
|
|
151
151
|
}
|
|
152
|
-
for (
|
|
153
|
-
|
|
152
|
+
for (ue(null), Z.length = 0, W = 0; je.length; )
|
|
153
|
+
je.pop()();
|
|
154
154
|
for (let t = 0; t < q.length; t += 1) {
|
|
155
155
|
const r = q[t];
|
|
156
|
-
|
|
156
|
+
Me.has(r) || (Me.add(r), r());
|
|
157
157
|
}
|
|
158
158
|
q.length = 0;
|
|
159
159
|
} while (Z.length);
|
|
160
|
-
for (;
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
for (; lt.length; )
|
|
161
|
+
lt.pop()();
|
|
162
|
+
ke = !1, Me.clear(), ue(e);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Or(e) {
|
|
165
165
|
if (e.fragment !== null) {
|
|
166
|
-
e.update(),
|
|
166
|
+
e.update(), te(e.before_update);
|
|
167
167
|
const t = e.dirty;
|
|
168
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
168
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Ar(e) {
|
|
172
172
|
const t = [], r = [];
|
|
173
173
|
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
function
|
|
177
|
-
e && e.i && (
|
|
175
|
+
const Br = /* @__PURE__ */ new Set();
|
|
176
|
+
function Pr(e, t) {
|
|
177
|
+
e && e.i && (Br.delete(e), e.i(t));
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function os(e) {
|
|
180
180
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Cr(e, t, r) {
|
|
183
183
|
const { fragment: n, after_update: i } = e.$$;
|
|
184
|
-
n && n.m(t, r),
|
|
185
|
-
const s = e.$$.on_mount.map(
|
|
186
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
187
|
-
}), i.forEach(
|
|
184
|
+
n && n.m(t, r), Ve(() => {
|
|
185
|
+
const s = e.$$.on_mount.map(Mt).filter(st);
|
|
186
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
187
|
+
}), i.forEach(Ve);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ir(e, t) {
|
|
190
190
|
const r = e.$$;
|
|
191
|
-
r.fragment !== null && (
|
|
191
|
+
r.fragment !== null && (Ar(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
e.$$.dirty[0] === -1 && (Z.push(e),
|
|
193
|
+
function Lr(e, t) {
|
|
194
|
+
e.$$.dirty[0] === -1 && (Z.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
const h =
|
|
198
|
-
|
|
196
|
+
function Mr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
197
|
+
const h = he;
|
|
198
|
+
ue(e);
|
|
199
199
|
const u = e.$$ = {
|
|
200
200
|
fragment: null,
|
|
201
201
|
ctx: [],
|
|
@@ -203,7 +203,7 @@ function Pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
203
203
|
props: s,
|
|
204
204
|
update: I,
|
|
205
205
|
not_equal: i,
|
|
206
|
-
bound:
|
|
206
|
+
bound: ht(),
|
|
207
207
|
// lifecycle
|
|
208
208
|
on_mount: [],
|
|
209
209
|
on_destroy: [],
|
|
@@ -212,28 +212,28 @@ function Pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
212
212
|
after_update: [],
|
|
213
213
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
214
214
|
// everything else
|
|
215
|
-
callbacks:
|
|
215
|
+
callbacks: ht(),
|
|
216
216
|
dirty: a,
|
|
217
217
|
skip_bound: !1,
|
|
218
218
|
root: t.target || h.$$.root
|
|
219
219
|
};
|
|
220
220
|
o && o(u.root);
|
|
221
221
|
let l = !1;
|
|
222
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
223
|
-
const y =
|
|
224
|
-
return u.ctx && i(u.ctx[
|
|
225
|
-
}) : [], u.update(), l = !0,
|
|
222
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
223
|
+
const y = p.length ? p[0] : f;
|
|
224
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Lr(e, c)), f;
|
|
225
|
+
}) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
226
226
|
if (t.hydrate) {
|
|
227
|
-
const
|
|
228
|
-
u.fragment && u.fragment.l(
|
|
227
|
+
const c = Er(t.target);
|
|
228
|
+
u.fragment && u.fragment.l(c), c.forEach(k);
|
|
229
229
|
} else
|
|
230
230
|
u.fragment && u.fragment.c();
|
|
231
|
-
t.intro &&
|
|
231
|
+
t.intro && Pr(e.$$.fragment), Cr(e, t.target, t.anchor), U();
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
ue(h);
|
|
234
234
|
}
|
|
235
|
-
let
|
|
236
|
-
typeof HTMLElement == "function" && (
|
|
235
|
+
let Rt;
|
|
236
|
+
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
237
237
|
/** The Svelte component constructor */
|
|
238
238
|
$$ctor;
|
|
239
239
|
/** Slots */
|
|
@@ -275,14 +275,14 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
275
275
|
let s;
|
|
276
276
|
return {
|
|
277
277
|
c: function() {
|
|
278
|
-
s = C("slot"), i !== "default" &&
|
|
278
|
+
s = C("slot"), i !== "default" && O(s, "name", i);
|
|
279
279
|
},
|
|
280
280
|
/**
|
|
281
281
|
* @param {HTMLElement} target
|
|
282
282
|
* @param {HTMLElement} [anchor]
|
|
283
283
|
*/
|
|
284
284
|
m: function(h, u) {
|
|
285
|
-
|
|
285
|
+
re(h, s, u);
|
|
286
286
|
},
|
|
287
287
|
d: function(h) {
|
|
288
288
|
h && k(s);
|
|
@@ -292,7 +292,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
292
292
|
};
|
|
293
293
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
294
294
|
return;
|
|
295
|
-
const t = {}, r =
|
|
295
|
+
const t = {}, r = xr(this);
|
|
296
296
|
for (const i of this.$$s)
|
|
297
297
|
i in r && (t[i] = [e(i)]);
|
|
298
298
|
for (const i of this.attributes) {
|
|
@@ -379,8 +379,8 @@ function Ee(e, t, r, n) {
|
|
|
379
379
|
return t;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
let o = class extends
|
|
382
|
+
function Nr(e, t, r, n, i, s) {
|
|
383
|
+
let o = class extends Rt {
|
|
384
384
|
constructor() {
|
|
385
385
|
super(e, r, i), this.$$p_d = t;
|
|
386
386
|
}
|
|
@@ -408,7 +408,7 @@ function Cr(e, t, r, n, i, s) {
|
|
|
408
408
|
}), e.element = /** @type {any} */
|
|
409
409
|
o, o;
|
|
410
410
|
}
|
|
411
|
-
class
|
|
411
|
+
class $r {
|
|
412
412
|
/**
|
|
413
413
|
* ### PRIVATE API
|
|
414
414
|
*
|
|
@@ -427,7 +427,7 @@ class Ir {
|
|
|
427
427
|
$$set = void 0;
|
|
428
428
|
/** @returns {void} */
|
|
429
429
|
$destroy() {
|
|
430
|
-
|
|
430
|
+
Ir(this, 1), this.$destroy = I;
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
433
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -436,7 +436,7 @@ class Ir {
|
|
|
436
436
|
* @returns {() => void}
|
|
437
437
|
*/
|
|
438
438
|
$on(t, r) {
|
|
439
|
-
if (!
|
|
439
|
+
if (!st(r))
|
|
440
440
|
return I;
|
|
441
441
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
442
442
|
return n.push(r), () => {
|
|
@@ -449,11 +449,11 @@ class Ir {
|
|
|
449
449
|
* @returns {void}
|
|
450
450
|
*/
|
|
451
451
|
$set(t) {
|
|
452
|
-
this.$$set && !
|
|
452
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
const
|
|
456
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
455
|
+
const Rr = "4";
|
|
456
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rr);
|
|
457
457
|
if (typeof window < "u") {
|
|
458
458
|
let e = function(t) {
|
|
459
459
|
return function(...r) {
|
|
@@ -466,7 +466,7 @@ if (typeof window < "u") {
|
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
468
|
};
|
|
469
|
-
customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-
|
|
469
|
+
customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-IiI_otYE.js").then(({ default: t }) => {
|
|
470
470
|
!customElements.get("casino-mystery-chest-container") && customElements.define("casino-mystery-chest-container", t.element);
|
|
471
471
|
});
|
|
472
472
|
}
|
|
@@ -484,43 +484,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
484
484
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
485
485
|
PERFORMANCE OF THIS SOFTWARE.
|
|
486
486
|
***************************************************************************** */
|
|
487
|
-
var
|
|
488
|
-
return
|
|
487
|
+
var Xe = function(e, t) {
|
|
488
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
489
489
|
r.__proto__ = n;
|
|
490
490
|
} || function(r, n) {
|
|
491
491
|
for (var i in n)
|
|
492
492
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
493
|
-
},
|
|
493
|
+
}, Xe(e, t);
|
|
494
494
|
};
|
|
495
|
-
function
|
|
495
|
+
function fe(e, t) {
|
|
496
496
|
if (typeof t != "function" && t !== null)
|
|
497
497
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
498
|
-
|
|
498
|
+
Xe(e, t);
|
|
499
499
|
function r() {
|
|
500
500
|
this.constructor = e;
|
|
501
501
|
}
|
|
502
502
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
503
503
|
}
|
|
504
|
-
|
|
505
|
-
return _ = Object.assign || function(t) {
|
|
506
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
507
|
-
r = arguments[n];
|
|
508
|
-
for (var s in r)
|
|
509
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
510
|
-
}
|
|
511
|
-
return t;
|
|
512
|
-
}, _.apply(this, arguments);
|
|
513
|
-
};
|
|
514
|
-
function Mr(e, t) {
|
|
515
|
-
var r = {};
|
|
516
|
-
for (var n in e)
|
|
517
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
518
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
519
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
520
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
521
|
-
return r;
|
|
522
|
-
}
|
|
523
|
-
function ke(e) {
|
|
504
|
+
function We(e) {
|
|
524
505
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
525
506
|
if (r)
|
|
526
507
|
return r.call(e);
|
|
@@ -532,7 +513,7 @@ function ke(e) {
|
|
|
532
513
|
};
|
|
533
514
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
534
515
|
}
|
|
535
|
-
function
|
|
516
|
+
function ze(e, t) {
|
|
536
517
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
537
518
|
if (!r)
|
|
538
519
|
return e;
|
|
@@ -552,22 +533,22 @@ function Ve(e, t) {
|
|
|
552
533
|
}
|
|
553
534
|
return s;
|
|
554
535
|
}
|
|
555
|
-
function
|
|
556
|
-
if (
|
|
536
|
+
function Ze(e, t, r) {
|
|
537
|
+
if (arguments.length === 2)
|
|
557
538
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
558
539
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
559
540
|
return e.concat(s || t);
|
|
560
541
|
}
|
|
561
|
-
function
|
|
542
|
+
function D(e) {
|
|
562
543
|
return typeof e == "function";
|
|
563
544
|
}
|
|
564
|
-
function
|
|
545
|
+
function Ut(e) {
|
|
565
546
|
var t = function(n) {
|
|
566
547
|
Error.call(n), n.stack = new Error().stack;
|
|
567
548
|
}, r = e(t);
|
|
568
549
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
569
550
|
}
|
|
570
|
-
var
|
|
551
|
+
var Ne = Ut(function(e) {
|
|
571
552
|
return function(r) {
|
|
572
553
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
573
554
|
` + r.map(function(n, i) {
|
|
@@ -576,13 +557,13 @@ var Le = Mt(function(e) {
|
|
|
576
557
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
577
558
|
};
|
|
578
559
|
});
|
|
579
|
-
function
|
|
560
|
+
function Qe(e, t) {
|
|
580
561
|
if (e) {
|
|
581
562
|
var r = e.indexOf(t);
|
|
582
563
|
0 <= r && e.splice(r, 1);
|
|
583
564
|
}
|
|
584
565
|
}
|
|
585
|
-
var
|
|
566
|
+
var Be = function() {
|
|
586
567
|
function e(t) {
|
|
587
568
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
588
569
|
}
|
|
@@ -594,7 +575,7 @@ var Ae = function() {
|
|
|
594
575
|
if (o)
|
|
595
576
|
if (this._parentage = null, Array.isArray(o))
|
|
596
577
|
try {
|
|
597
|
-
for (var a =
|
|
578
|
+
for (var a = We(o), h = a.next(); !h.done; h = a.next()) {
|
|
598
579
|
var u = h.value;
|
|
599
580
|
u.remove(this);
|
|
600
581
|
}
|
|
@@ -611,29 +592,29 @@ var Ae = function() {
|
|
|
611
592
|
else
|
|
612
593
|
o.remove(this);
|
|
613
594
|
var l = this.initialTeardown;
|
|
614
|
-
if (
|
|
595
|
+
if (D(l))
|
|
615
596
|
try {
|
|
616
597
|
l();
|
|
617
598
|
} catch (g) {
|
|
618
|
-
s = g instanceof
|
|
599
|
+
s = g instanceof Ne ? g.errors : [g];
|
|
619
600
|
}
|
|
620
|
-
var
|
|
621
|
-
if (
|
|
601
|
+
var c = this._finalizers;
|
|
602
|
+
if (c) {
|
|
622
603
|
this._finalizers = null;
|
|
623
604
|
try {
|
|
624
|
-
for (var
|
|
625
|
-
var y =
|
|
605
|
+
for (var f = We(c), p = f.next(); !p.done; p = f.next()) {
|
|
606
|
+
var y = p.value;
|
|
626
607
|
try {
|
|
627
|
-
|
|
608
|
+
ct(y);
|
|
628
609
|
} catch (g) {
|
|
629
|
-
s = s ?? [], g instanceof
|
|
610
|
+
s = s ?? [], g instanceof Ne ? s = Ze(Ze([], ze(s)), ze(g.errors)) : s.push(g);
|
|
630
611
|
}
|
|
631
612
|
}
|
|
632
613
|
} catch (g) {
|
|
633
614
|
n = { error: g };
|
|
634
615
|
} finally {
|
|
635
616
|
try {
|
|
636
|
-
|
|
617
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
637
618
|
} finally {
|
|
638
619
|
if (n)
|
|
639
620
|
throw n.error;
|
|
@@ -641,13 +622,13 @@ var Ae = function() {
|
|
|
641
622
|
}
|
|
642
623
|
}
|
|
643
624
|
if (s)
|
|
644
|
-
throw new
|
|
625
|
+
throw new Ne(s);
|
|
645
626
|
}
|
|
646
627
|
}, e.prototype.add = function(t) {
|
|
647
628
|
var r;
|
|
648
629
|
if (t && t !== this)
|
|
649
630
|
if (this.closed)
|
|
650
|
-
|
|
631
|
+
ct(t);
|
|
651
632
|
else {
|
|
652
633
|
if (t instanceof e) {
|
|
653
634
|
if (t.closed || t._hasParent(this))
|
|
@@ -664,56 +645,52 @@ var Ae = function() {
|
|
|
664
645
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
665
646
|
}, e.prototype._removeParent = function(t) {
|
|
666
647
|
var r = this._parentage;
|
|
667
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
648
|
+
r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
|
|
668
649
|
}, e.prototype.remove = function(t) {
|
|
669
650
|
var r = this._finalizers;
|
|
670
|
-
r &&
|
|
651
|
+
r && Qe(r, t), t instanceof e && t._removeParent(this);
|
|
671
652
|
}, e.EMPTY = function() {
|
|
672
653
|
var t = new e();
|
|
673
654
|
return t.closed = !0, t;
|
|
674
655
|
}(), e;
|
|
675
|
-
}(),
|
|
676
|
-
function
|
|
677
|
-
return e instanceof
|
|
678
|
-
}
|
|
679
|
-
function
|
|
680
|
-
|
|
681
|
-
}
|
|
682
|
-
var
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
Promise: void 0,
|
|
686
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
687
|
-
useDeprecatedNextContext: !1
|
|
688
|
-
}, $r = {
|
|
656
|
+
}(), Dt = Be.EMPTY;
|
|
657
|
+
function Gt(e) {
|
|
658
|
+
return e instanceof Be || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
659
|
+
}
|
|
660
|
+
function ct(e) {
|
|
661
|
+
D(e) ? e() : e.unsubscribe();
|
|
662
|
+
}
|
|
663
|
+
var Ur = {
|
|
664
|
+
Promise: void 0
|
|
665
|
+
}, Dr = {
|
|
689
666
|
setTimeout: function(e, t) {
|
|
690
667
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
691
668
|
r[n - 2] = arguments[n];
|
|
692
|
-
return setTimeout.apply(void 0,
|
|
669
|
+
return setTimeout.apply(void 0, Ze([e, t], ze(r)));
|
|
693
670
|
},
|
|
694
671
|
clearTimeout: function(e) {
|
|
695
672
|
return clearTimeout(e);
|
|
696
673
|
},
|
|
697
674
|
delegate: void 0
|
|
698
675
|
};
|
|
699
|
-
function
|
|
700
|
-
|
|
676
|
+
function Gr(e) {
|
|
677
|
+
Dr.setTimeout(function() {
|
|
701
678
|
throw e;
|
|
702
679
|
});
|
|
703
680
|
}
|
|
704
|
-
function
|
|
681
|
+
function ft() {
|
|
705
682
|
}
|
|
706
683
|
function xe(e) {
|
|
707
684
|
e();
|
|
708
685
|
}
|
|
709
|
-
var
|
|
710
|
-
|
|
686
|
+
var Ft = function(e) {
|
|
687
|
+
fe(t, e);
|
|
711
688
|
function t(r) {
|
|
712
689
|
var n = e.call(this) || this;
|
|
713
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
690
|
+
return n.isStopped = !1, r ? (n.destination = r, Gt(r) && r.add(n)) : n.destination = kr, n;
|
|
714
691
|
}
|
|
715
692
|
return t.create = function(r, n, i) {
|
|
716
|
-
return new
|
|
693
|
+
return new qe(r, n, i);
|
|
717
694
|
}, t.prototype.next = function(r) {
|
|
718
695
|
this.isStopped || this._next(r);
|
|
719
696
|
}, t.prototype.error = function(r) {
|
|
@@ -737,7 +714,7 @@ var Rt = function(e) {
|
|
|
737
714
|
this.unsubscribe();
|
|
738
715
|
}
|
|
739
716
|
}, t;
|
|
740
|
-
}(
|
|
717
|
+
}(Be), Fr = function() {
|
|
741
718
|
function e(t) {
|
|
742
719
|
this.partialObserver = t;
|
|
743
720
|
}
|
|
@@ -747,7 +724,7 @@ var Rt = function(e) {
|
|
|
747
724
|
try {
|
|
748
725
|
r.next(t);
|
|
749
726
|
} catch (n) {
|
|
750
|
-
|
|
727
|
+
ve(n);
|
|
751
728
|
}
|
|
752
729
|
}, e.prototype.error = function(t) {
|
|
753
730
|
var r = this.partialObserver;
|
|
@@ -755,56 +732,56 @@ var Rt = function(e) {
|
|
|
755
732
|
try {
|
|
756
733
|
r.error(t);
|
|
757
734
|
} catch (n) {
|
|
758
|
-
|
|
735
|
+
ve(n);
|
|
759
736
|
}
|
|
760
737
|
else
|
|
761
|
-
|
|
738
|
+
ve(t);
|
|
762
739
|
}, e.prototype.complete = function() {
|
|
763
740
|
var t = this.partialObserver;
|
|
764
741
|
if (t.complete)
|
|
765
742
|
try {
|
|
766
743
|
t.complete();
|
|
767
744
|
} catch (r) {
|
|
768
|
-
|
|
745
|
+
ve(r);
|
|
769
746
|
}
|
|
770
747
|
}, e;
|
|
771
|
-
}(),
|
|
772
|
-
|
|
748
|
+
}(), qe = function(e) {
|
|
749
|
+
fe(t, e);
|
|
773
750
|
function t(r, n, i) {
|
|
774
751
|
var s = e.call(this) || this, o;
|
|
775
|
-
return
|
|
752
|
+
return D(r) || !r ? o = {
|
|
776
753
|
next: r ?? void 0,
|
|
777
754
|
error: n ?? void 0,
|
|
778
755
|
complete: i ?? void 0
|
|
779
|
-
} : o = r, s.destination = new
|
|
756
|
+
} : o = r, s.destination = new Fr(o), s;
|
|
780
757
|
}
|
|
781
758
|
return t;
|
|
782
|
-
}(
|
|
783
|
-
function
|
|
784
|
-
|
|
759
|
+
}(Ft);
|
|
760
|
+
function ve(e) {
|
|
761
|
+
Gr(e);
|
|
785
762
|
}
|
|
786
|
-
function
|
|
763
|
+
function jr(e) {
|
|
787
764
|
throw e;
|
|
788
765
|
}
|
|
789
|
-
var
|
|
766
|
+
var kr = {
|
|
790
767
|
closed: !0,
|
|
791
|
-
next:
|
|
792
|
-
error:
|
|
793
|
-
complete:
|
|
794
|
-
},
|
|
768
|
+
next: ft,
|
|
769
|
+
error: jr,
|
|
770
|
+
complete: ft
|
|
771
|
+
}, Vr = function() {
|
|
795
772
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
796
773
|
}();
|
|
797
|
-
function
|
|
774
|
+
function Xr(e) {
|
|
798
775
|
return e;
|
|
799
776
|
}
|
|
800
|
-
function
|
|
801
|
-
return e.length === 0 ?
|
|
777
|
+
function Wr(e) {
|
|
778
|
+
return e.length === 0 ? Xr : e.length === 1 ? e[0] : function(r) {
|
|
802
779
|
return e.reduce(function(n, i) {
|
|
803
780
|
return i(n);
|
|
804
781
|
}, r);
|
|
805
782
|
};
|
|
806
783
|
}
|
|
807
|
-
var
|
|
784
|
+
var pt = function() {
|
|
808
785
|
function e(t) {
|
|
809
786
|
t && (this._subscribe = t);
|
|
810
787
|
}
|
|
@@ -812,7 +789,7 @@ var ht = function() {
|
|
|
812
789
|
var r = new e();
|
|
813
790
|
return r.source = this, r.operator = t, r;
|
|
814
791
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
815
|
-
var i = this, s =
|
|
792
|
+
var i = this, s = Zr(t) ? t : new qe(t, r, n);
|
|
816
793
|
return xe(function() {
|
|
817
794
|
var o = i, a = o.operator, h = o.source;
|
|
818
795
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -825,8 +802,8 @@ var ht = function() {
|
|
|
825
802
|
}
|
|
826
803
|
}, e.prototype.forEach = function(t, r) {
|
|
827
804
|
var n = this;
|
|
828
|
-
return r =
|
|
829
|
-
var o = new
|
|
805
|
+
return r = dt(r), new r(function(i, s) {
|
|
806
|
+
var o = new qe({
|
|
830
807
|
next: function(a) {
|
|
831
808
|
try {
|
|
832
809
|
t(a);
|
|
@@ -842,15 +819,15 @@ var ht = function() {
|
|
|
842
819
|
}, e.prototype._subscribe = function(t) {
|
|
843
820
|
var r;
|
|
844
821
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
845
|
-
}, e.prototype[
|
|
822
|
+
}, e.prototype[Vr] = function() {
|
|
846
823
|
return this;
|
|
847
824
|
}, e.prototype.pipe = function() {
|
|
848
825
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
849
826
|
t[r] = arguments[r];
|
|
850
|
-
return
|
|
827
|
+
return Wr(t)(this);
|
|
851
828
|
}, e.prototype.toPromise = function(t) {
|
|
852
829
|
var r = this;
|
|
853
|
-
return t =
|
|
830
|
+
return t = dt(t), new t(function(n, i) {
|
|
854
831
|
var s;
|
|
855
832
|
r.subscribe(function(o) {
|
|
856
833
|
return s = o;
|
|
@@ -864,32 +841,32 @@ var ht = function() {
|
|
|
864
841
|
return new e(t);
|
|
865
842
|
}, e;
|
|
866
843
|
}();
|
|
867
|
-
function
|
|
844
|
+
function dt(e) {
|
|
868
845
|
var t;
|
|
869
|
-
return (t = e ??
|
|
846
|
+
return (t = e ?? Ur.Promise) !== null && t !== void 0 ? t : Promise;
|
|
870
847
|
}
|
|
871
|
-
function
|
|
872
|
-
return e &&
|
|
848
|
+
function zr(e) {
|
|
849
|
+
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
873
850
|
}
|
|
874
|
-
function
|
|
875
|
-
return e && e instanceof
|
|
851
|
+
function Zr(e) {
|
|
852
|
+
return e && e instanceof Ft || zr(e) && Gt(e);
|
|
876
853
|
}
|
|
877
|
-
var
|
|
854
|
+
var Qr = Ut(function(e) {
|
|
878
855
|
return function() {
|
|
879
856
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
880
857
|
};
|
|
881
|
-
}),
|
|
882
|
-
|
|
858
|
+
}), jt = function(e) {
|
|
859
|
+
fe(t, e);
|
|
883
860
|
function t() {
|
|
884
861
|
var r = e.call(this) || this;
|
|
885
862
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
886
863
|
}
|
|
887
864
|
return t.prototype.lift = function(r) {
|
|
888
|
-
var n = new
|
|
865
|
+
var n = new mt(this, this);
|
|
889
866
|
return n.operator = r, n;
|
|
890
867
|
}, t.prototype._throwIfClosed = function() {
|
|
891
868
|
if (this.closed)
|
|
892
|
-
throw new
|
|
869
|
+
throw new Qr();
|
|
893
870
|
}, t.prototype.next = function(r) {
|
|
894
871
|
var n = this;
|
|
895
872
|
xe(function() {
|
|
@@ -897,7 +874,7 @@ var Wr = Mt(function(e) {
|
|
|
897
874
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
898
875
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
899
876
|
try {
|
|
900
|
-
for (var o =
|
|
877
|
+
for (var o = We(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
901
878
|
var h = a.value;
|
|
902
879
|
h.next(r);
|
|
903
880
|
}
|
|
@@ -946,20 +923,20 @@ var Wr = Mt(function(e) {
|
|
|
946
923
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
947
924
|
}, t.prototype._innerSubscribe = function(r) {
|
|
948
925
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
949
|
-
return s || o ?
|
|
950
|
-
n.currentObservers = null,
|
|
926
|
+
return s || o ? Dt : (this.currentObservers = null, a.push(r), new Be(function() {
|
|
927
|
+
n.currentObservers = null, Qe(a, r);
|
|
951
928
|
}));
|
|
952
929
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
953
930
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
954
931
|
i ? r.error(s) : o && r.complete();
|
|
955
932
|
}, t.prototype.asObservable = function() {
|
|
956
|
-
var r = new
|
|
933
|
+
var r = new pt();
|
|
957
934
|
return r.source = this, r;
|
|
958
935
|
}, t.create = function(r, n) {
|
|
959
|
-
return new
|
|
936
|
+
return new mt(r, n);
|
|
960
937
|
}, t;
|
|
961
|
-
}(
|
|
962
|
-
|
|
938
|
+
}(pt), mt = function(e) {
|
|
939
|
+
fe(t, e);
|
|
963
940
|
function t(r, n) {
|
|
964
941
|
var i = e.call(this) || this;
|
|
965
942
|
return i.destination = r, i.source = n, i;
|
|
@@ -975,17 +952,17 @@ var Wr = Mt(function(e) {
|
|
|
975
952
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
976
953
|
}, t.prototype._subscribe = function(r) {
|
|
977
954
|
var n, i;
|
|
978
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
955
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Dt;
|
|
979
956
|
}, t;
|
|
980
|
-
}(
|
|
957
|
+
}(jt), kt = {
|
|
981
958
|
now: function() {
|
|
982
|
-
return (
|
|
959
|
+
return (kt.delegate || Date).now();
|
|
983
960
|
},
|
|
984
961
|
delegate: void 0
|
|
985
|
-
},
|
|
986
|
-
|
|
962
|
+
}, qr = function(e) {
|
|
963
|
+
fe(t, e);
|
|
987
964
|
function t(r, n, i) {
|
|
988
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
965
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = kt);
|
|
989
966
|
var s = e.call(this) || this;
|
|
990
967
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
991
968
|
}
|
|
@@ -1005,24 +982,24 @@ var Wr = Mt(function(e) {
|
|
|
1005
982
|
u && s.splice(0, u + 1);
|
|
1006
983
|
}
|
|
1007
984
|
}, t;
|
|
1008
|
-
}(
|
|
1009
|
-
const
|
|
1010
|
-
if (
|
|
1011
|
-
const r = new
|
|
1012
|
-
|
|
985
|
+
}(jt);
|
|
986
|
+
const bt = [], yt = {}, Jr = (e, t = 0) => {
|
|
987
|
+
if (bt.indexOf(e) == -1) {
|
|
988
|
+
const r = new qr(t);
|
|
989
|
+
yt[e] = r, bt.push(e);
|
|
1013
990
|
}
|
|
1014
|
-
return
|
|
991
|
+
return yt[e];
|
|
1015
992
|
}, z = [];
|
|
1016
|
-
function
|
|
993
|
+
function Yr(e, t) {
|
|
1017
994
|
return {
|
|
1018
|
-
subscribe:
|
|
995
|
+
subscribe: Pe(e, t).subscribe
|
|
1019
996
|
};
|
|
1020
997
|
}
|
|
1021
|
-
function
|
|
998
|
+
function Pe(e, t = I) {
|
|
1022
999
|
let r;
|
|
1023
1000
|
const n = /* @__PURE__ */ new Set();
|
|
1024
1001
|
function i(a) {
|
|
1025
|
-
if (
|
|
1002
|
+
if (Nt(e, a) && (e = a, r)) {
|
|
1026
1003
|
const h = !z.length;
|
|
1027
1004
|
for (const u of n)
|
|
1028
1005
|
u[1](), z.push(u, e);
|
|
@@ -1044,145 +1021,184 @@ function Oe(e, t = I) {
|
|
|
1044
1021
|
}
|
|
1045
1022
|
return { set: i, update: s, subscribe: o };
|
|
1046
1023
|
}
|
|
1047
|
-
function
|
|
1024
|
+
function ne(e, t, r) {
|
|
1048
1025
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1049
1026
|
if (!i.every(Boolean))
|
|
1050
1027
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1051
1028
|
const s = t.length < 2;
|
|
1052
|
-
return
|
|
1029
|
+
return Yr(r, (o, a) => {
|
|
1053
1030
|
let h = !1;
|
|
1054
1031
|
const u = [];
|
|
1055
|
-
let l = 0,
|
|
1056
|
-
const
|
|
1032
|
+
let l = 0, c = I;
|
|
1033
|
+
const f = () => {
|
|
1057
1034
|
if (l)
|
|
1058
1035
|
return;
|
|
1059
|
-
|
|
1036
|
+
c();
|
|
1060
1037
|
const y = t(n ? u[0] : u, o, a);
|
|
1061
|
-
s ? o(y) :
|
|
1062
|
-
},
|
|
1063
|
-
(y, g) =>
|
|
1038
|
+
s ? o(y) : c = st(y) ? y : I;
|
|
1039
|
+
}, p = i.map(
|
|
1040
|
+
(y, g) => $t(
|
|
1064
1041
|
y,
|
|
1065
|
-
(
|
|
1066
|
-
u[g] =
|
|
1042
|
+
(B) => {
|
|
1043
|
+
u[g] = B, l &= ~(1 << g), h && f();
|
|
1067
1044
|
},
|
|
1068
1045
|
() => {
|
|
1069
1046
|
l |= 1 << g;
|
|
1070
1047
|
}
|
|
1071
1048
|
)
|
|
1072
1049
|
);
|
|
1073
|
-
return h = !0,
|
|
1074
|
-
|
|
1050
|
+
return h = !0, f(), function() {
|
|
1051
|
+
te(p), c(), h = !1;
|
|
1075
1052
|
};
|
|
1076
1053
|
});
|
|
1077
1054
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1055
|
+
function Kr(e) {
|
|
1056
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1080
1057
|
}
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1058
|
+
var en = function(t) {
|
|
1059
|
+
return tn(t) && !rn(t);
|
|
1083
1060
|
};
|
|
1084
|
-
function
|
|
1061
|
+
function tn(e) {
|
|
1085
1062
|
return !!e && typeof e == "object";
|
|
1086
1063
|
}
|
|
1087
|
-
function
|
|
1064
|
+
function rn(e) {
|
|
1088
1065
|
var t = Object.prototype.toString.call(e);
|
|
1089
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1066
|
+
return t === "[object RegExp]" || t === "[object Date]" || on(e);
|
|
1090
1067
|
}
|
|
1091
|
-
var
|
|
1092
|
-
function
|
|
1093
|
-
return e.$$typeof ===
|
|
1068
|
+
var nn = typeof Symbol == "function" && Symbol.for, sn = nn ? Symbol.for("react.element") : 60103;
|
|
1069
|
+
function on(e) {
|
|
1070
|
+
return e.$$typeof === sn;
|
|
1094
1071
|
}
|
|
1095
|
-
function
|
|
1072
|
+
function an(e) {
|
|
1096
1073
|
return Array.isArray(e) ? [] : {};
|
|
1097
1074
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1075
|
+
function le(e, t) {
|
|
1076
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(an(e), e, t) : e;
|
|
1100
1077
|
}
|
|
1101
|
-
function
|
|
1078
|
+
function un(e, t, r) {
|
|
1102
1079
|
return e.concat(t).map(function(n) {
|
|
1103
|
-
return
|
|
1080
|
+
return le(n, r);
|
|
1104
1081
|
});
|
|
1105
1082
|
}
|
|
1106
|
-
function
|
|
1083
|
+
function hn(e, t) {
|
|
1107
1084
|
if (!t.customMerge)
|
|
1108
|
-
return
|
|
1085
|
+
return J;
|
|
1109
1086
|
var r = t.customMerge(e);
|
|
1110
|
-
return typeof r == "function" ? r :
|
|
1087
|
+
return typeof r == "function" ? r : J;
|
|
1111
1088
|
}
|
|
1112
|
-
function
|
|
1089
|
+
function ln(e) {
|
|
1113
1090
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1114
1091
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1115
1092
|
}) : [];
|
|
1116
1093
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return Object.keys(e).concat(
|
|
1094
|
+
function gt(e) {
|
|
1095
|
+
return Object.keys(e).concat(ln(e));
|
|
1119
1096
|
}
|
|
1120
|
-
function
|
|
1097
|
+
function Vt(e, t) {
|
|
1121
1098
|
try {
|
|
1122
1099
|
return t in e;
|
|
1123
1100
|
} catch {
|
|
1124
1101
|
return !1;
|
|
1125
1102
|
}
|
|
1126
1103
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1104
|
+
function cn(e, t) {
|
|
1105
|
+
return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1129
1106
|
}
|
|
1130
|
-
function
|
|
1107
|
+
function fn(e, t, r) {
|
|
1131
1108
|
var n = {};
|
|
1132
|
-
return r.isMergeableObject(e) &&
|
|
1133
|
-
n[i] =
|
|
1134
|
-
}),
|
|
1135
|
-
|
|
1109
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
1110
|
+
n[i] = le(e[i], r);
|
|
1111
|
+
}), gt(t).forEach(function(i) {
|
|
1112
|
+
cn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
|
1136
1113
|
}), n;
|
|
1137
1114
|
}
|
|
1138
|
-
function
|
|
1139
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1115
|
+
function J(e, t, r) {
|
|
1116
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = le;
|
|
1140
1117
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1141
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1118
|
+
return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : le(t, r);
|
|
1142
1119
|
}
|
|
1143
|
-
|
|
1120
|
+
J.all = function(t, r) {
|
|
1144
1121
|
if (!Array.isArray(t))
|
|
1145
1122
|
throw new Error("first argument should be an array");
|
|
1146
1123
|
return t.reduce(function(n, i) {
|
|
1147
|
-
return
|
|
1124
|
+
return J(n, i, r);
|
|
1148
1125
|
}, {});
|
|
1149
1126
|
};
|
|
1150
|
-
var
|
|
1151
|
-
const
|
|
1152
|
-
function
|
|
1153
|
-
|
|
1127
|
+
var pn = J, dn = pn;
|
|
1128
|
+
const mn = /* @__PURE__ */ Kr(dn);
|
|
1129
|
+
var Je = function(e, t) {
|
|
1130
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1131
|
+
r.__proto__ = n;
|
|
1132
|
+
} || function(r, n) {
|
|
1133
|
+
for (var i in n)
|
|
1134
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1135
|
+
}, Je(e, t);
|
|
1136
|
+
};
|
|
1137
|
+
function Ce(e, t) {
|
|
1138
|
+
if (typeof t != "function" && t !== null)
|
|
1139
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1140
|
+
Je(e, t);
|
|
1141
|
+
function r() {
|
|
1142
|
+
this.constructor = e;
|
|
1143
|
+
}
|
|
1144
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1145
|
+
}
|
|
1146
|
+
var R = function() {
|
|
1147
|
+
return R = Object.assign || function(t) {
|
|
1148
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1149
|
+
r = arguments[n];
|
|
1150
|
+
for (var s in r)
|
|
1151
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1152
|
+
}
|
|
1153
|
+
return t;
|
|
1154
|
+
}, R.apply(this, arguments);
|
|
1155
|
+
};
|
|
1156
|
+
function bn(e, t) {
|
|
1157
|
+
var r = {};
|
|
1158
|
+
for (var n in e)
|
|
1159
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1160
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1161
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1162
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1163
|
+
return r;
|
|
1164
|
+
}
|
|
1165
|
+
function $e(e, t, r) {
|
|
1166
|
+
if (r || arguments.length === 2)
|
|
1167
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1168
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1169
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
1170
|
+
}
|
|
1171
|
+
function Re(e, t) {
|
|
1172
|
+
var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : vn;
|
|
1154
1173
|
return i(e, {
|
|
1155
1174
|
cache: r,
|
|
1156
1175
|
serializer: n
|
|
1157
1176
|
});
|
|
1158
1177
|
}
|
|
1159
|
-
function
|
|
1178
|
+
function yn(e) {
|
|
1160
1179
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1161
1180
|
}
|
|
1162
|
-
function
|
|
1163
|
-
var i =
|
|
1181
|
+
function gn(e, t, r, n) {
|
|
1182
|
+
var i = yn(n) ? n : r(n), s = t.get(i);
|
|
1164
1183
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1165
1184
|
}
|
|
1166
|
-
function
|
|
1185
|
+
function Xt(e, t, r) {
|
|
1167
1186
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1168
1187
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1169
1188
|
}
|
|
1170
|
-
function
|
|
1189
|
+
function Wt(e, t, r, n, i) {
|
|
1171
1190
|
return r.bind(t, e, n, i);
|
|
1172
1191
|
}
|
|
1173
|
-
function
|
|
1174
|
-
var r = e.length === 1 ?
|
|
1175
|
-
return
|
|
1192
|
+
function vn(e, t) {
|
|
1193
|
+
var r = e.length === 1 ? gn : Xt;
|
|
1194
|
+
return Wt(e, this, r, t.cache.create(), t.serializer);
|
|
1176
1195
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return
|
|
1196
|
+
function _n(e, t) {
|
|
1197
|
+
return Wt(e, this, Xt, t.cache.create(), t.serializer);
|
|
1179
1198
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return tt(e, this, Ft, t.cache.create(), t.serializer);
|
|
1182
|
-
}
|
|
1183
|
-
var yn = function() {
|
|
1199
|
+
var En = function() {
|
|
1184
1200
|
return JSON.stringify(arguments);
|
|
1185
|
-
},
|
|
1201
|
+
}, xn = (
|
|
1186
1202
|
/** @class */
|
|
1187
1203
|
function() {
|
|
1188
1204
|
function e() {
|
|
@@ -1194,62 +1210,71 @@ var yn = function() {
|
|
|
1194
1210
|
this.cache[t] = r;
|
|
1195
1211
|
}, e;
|
|
1196
1212
|
}()
|
|
1197
|
-
),
|
|
1213
|
+
), Sn = {
|
|
1198
1214
|
create: function() {
|
|
1199
|
-
return new
|
|
1215
|
+
return new xn();
|
|
1200
1216
|
}
|
|
1201
|
-
},
|
|
1202
|
-
variadic:
|
|
1203
|
-
|
|
1204
|
-
|
|
1217
|
+
}, Ue = {
|
|
1218
|
+
variadic: _n
|
|
1219
|
+
}, Te = function() {
|
|
1220
|
+
return Te = Object.assign || function(t) {
|
|
1221
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1222
|
+
r = arguments[n];
|
|
1223
|
+
for (var s in r)
|
|
1224
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1225
|
+
}
|
|
1226
|
+
return t;
|
|
1227
|
+
}, Te.apply(this, arguments);
|
|
1228
|
+
};
|
|
1229
|
+
var d;
|
|
1205
1230
|
(function(e) {
|
|
1206
1231
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1207
|
-
})(
|
|
1232
|
+
})(d || (d = {}));
|
|
1208
1233
|
var v;
|
|
1209
1234
|
(function(e) {
|
|
1210
1235
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1211
1236
|
})(v || (v = {}));
|
|
1212
|
-
var
|
|
1237
|
+
var Y;
|
|
1213
1238
|
(function(e) {
|
|
1214
1239
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1215
|
-
})(
|
|
1216
|
-
function
|
|
1240
|
+
})(Y || (Y = {}));
|
|
1241
|
+
function vt(e) {
|
|
1217
1242
|
return e.type === v.literal;
|
|
1218
1243
|
}
|
|
1219
|
-
function
|
|
1244
|
+
function wn(e) {
|
|
1220
1245
|
return e.type === v.argument;
|
|
1221
1246
|
}
|
|
1222
|
-
function
|
|
1247
|
+
function zt(e) {
|
|
1223
1248
|
return e.type === v.number;
|
|
1224
1249
|
}
|
|
1225
|
-
function
|
|
1250
|
+
function Zt(e) {
|
|
1226
1251
|
return e.type === v.date;
|
|
1227
1252
|
}
|
|
1228
|
-
function
|
|
1253
|
+
function Qt(e) {
|
|
1229
1254
|
return e.type === v.time;
|
|
1230
1255
|
}
|
|
1231
|
-
function
|
|
1256
|
+
function qt(e) {
|
|
1232
1257
|
return e.type === v.select;
|
|
1233
1258
|
}
|
|
1234
|
-
function
|
|
1259
|
+
function Jt(e) {
|
|
1235
1260
|
return e.type === v.plural;
|
|
1236
1261
|
}
|
|
1237
|
-
function
|
|
1262
|
+
function Tn(e) {
|
|
1238
1263
|
return e.type === v.pound;
|
|
1239
1264
|
}
|
|
1240
|
-
function
|
|
1265
|
+
function Yt(e) {
|
|
1241
1266
|
return e.type === v.tag;
|
|
1242
1267
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1268
|
+
function Kt(e) {
|
|
1269
|
+
return !!(e && typeof e == "object" && e.type === Y.number);
|
|
1245
1270
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1271
|
+
function Ye(e) {
|
|
1272
|
+
return !!(e && typeof e == "object" && e.type === Y.dateTime);
|
|
1248
1273
|
}
|
|
1249
|
-
var
|
|
1250
|
-
function
|
|
1274
|
+
var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1275
|
+
function On(e) {
|
|
1251
1276
|
var t = {};
|
|
1252
|
-
return e.replace(
|
|
1277
|
+
return e.replace(Hn, function(r) {
|
|
1253
1278
|
var n = r.length;
|
|
1254
1279
|
switch (r[0]) {
|
|
1255
1280
|
case "G":
|
|
@@ -1338,36 +1363,46 @@ function Sn(e) {
|
|
|
1338
1363
|
return "";
|
|
1339
1364
|
}), t;
|
|
1340
1365
|
}
|
|
1341
|
-
var
|
|
1342
|
-
function
|
|
1366
|
+
var _ = function() {
|
|
1367
|
+
return _ = Object.assign || function(t) {
|
|
1368
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1369
|
+
r = arguments[n];
|
|
1370
|
+
for (var s in r)
|
|
1371
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1372
|
+
}
|
|
1373
|
+
return t;
|
|
1374
|
+
}, _.apply(this, arguments);
|
|
1375
|
+
};
|
|
1376
|
+
var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1377
|
+
function Bn(e) {
|
|
1343
1378
|
if (e.length === 0)
|
|
1344
1379
|
throw new Error("Number skeleton cannot be empty");
|
|
1345
|
-
for (var t = e.split(
|
|
1346
|
-
return
|
|
1380
|
+
for (var t = e.split(An).filter(function(f) {
|
|
1381
|
+
return f.length > 0;
|
|
1347
1382
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1348
1383
|
var s = i[n], o = s.split("/");
|
|
1349
1384
|
if (o.length === 0)
|
|
1350
1385
|
throw new Error("Invalid number skeleton");
|
|
1351
1386
|
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1352
|
-
var
|
|
1353
|
-
if (
|
|
1387
|
+
var c = l[u];
|
|
1388
|
+
if (c.length === 0)
|
|
1354
1389
|
throw new Error("Invalid number skeleton");
|
|
1355
1390
|
}
|
|
1356
1391
|
r.push({ stem: a, options: h });
|
|
1357
1392
|
}
|
|
1358
1393
|
return r;
|
|
1359
1394
|
}
|
|
1360
|
-
function
|
|
1395
|
+
function Pn(e) {
|
|
1361
1396
|
return e.replace(/^(.*?)-/, "");
|
|
1362
1397
|
}
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1398
|
+
var _t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
|
1399
|
+
function Et(e) {
|
|
1365
1400
|
var t = {};
|
|
1366
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1401
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tr, function(r, n, i) {
|
|
1367
1402
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1368
1403
|
}), t;
|
|
1369
1404
|
}
|
|
1370
|
-
function
|
|
1405
|
+
function nr(e) {
|
|
1371
1406
|
switch (e) {
|
|
1372
1407
|
case "sign-auto":
|
|
1373
1408
|
return {
|
|
@@ -1407,7 +1442,7 @@ function Kt(e) {
|
|
|
1407
1442
|
};
|
|
1408
1443
|
}
|
|
1409
1444
|
}
|
|
1410
|
-
function
|
|
1445
|
+
function In(e) {
|
|
1411
1446
|
var t;
|
|
1412
1447
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1413
1448
|
notation: "engineering"
|
|
@@ -1415,17 +1450,17 @@ function An(e) {
|
|
|
1415
1450
|
notation: "scientific"
|
|
1416
1451
|
}, e = e.slice(1)), t) {
|
|
1417
1452
|
var r = e.slice(0, 2);
|
|
1418
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1453
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
|
|
1419
1454
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1420
1455
|
t.minimumIntegerDigits = e.length;
|
|
1421
1456
|
}
|
|
1422
1457
|
return t;
|
|
1423
1458
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var t = {}, r =
|
|
1459
|
+
function xt(e) {
|
|
1460
|
+
var t = {}, r = nr(e);
|
|
1426
1461
|
return r || t;
|
|
1427
1462
|
}
|
|
1428
|
-
function
|
|
1463
|
+
function Ln(e) {
|
|
1429
1464
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1430
1465
|
var i = n[r];
|
|
1431
1466
|
switch (i.stem) {
|
|
@@ -1449,7 +1484,7 @@ function On(e) {
|
|
|
1449
1484
|
continue;
|
|
1450
1485
|
case "measure-unit":
|
|
1451
1486
|
case "unit":
|
|
1452
|
-
t.style = "unit", t.unit =
|
|
1487
|
+
t.style = "unit", t.unit = Pn(i.options[0]);
|
|
1453
1488
|
continue;
|
|
1454
1489
|
case "compact-short":
|
|
1455
1490
|
case "K":
|
|
@@ -1461,12 +1496,12 @@ function On(e) {
|
|
|
1461
1496
|
continue;
|
|
1462
1497
|
case "scientific":
|
|
1463
1498
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1464
|
-
return _(_({}, h),
|
|
1499
|
+
return _(_({}, h), xt(u));
|
|
1465
1500
|
}, {}));
|
|
1466
1501
|
continue;
|
|
1467
1502
|
case "engineering":
|
|
1468
1503
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1469
|
-
return _(_({}, h),
|
|
1504
|
+
return _(_({}, h), xt(u));
|
|
1470
1505
|
}, {}));
|
|
1471
1506
|
continue;
|
|
1472
1507
|
case "notation-simple":
|
|
@@ -1511,45 +1546,45 @@ function On(e) {
|
|
|
1511
1546
|
case "integer-width":
|
|
1512
1547
|
if (i.options.length > 1)
|
|
1513
1548
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1514
|
-
i.options[0].replace(
|
|
1549
|
+
i.options[0].replace(Cn, function(h, u, l, c, f, p) {
|
|
1515
1550
|
if (u)
|
|
1516
1551
|
t.minimumIntegerDigits = l.length;
|
|
1517
1552
|
else {
|
|
1518
|
-
if (
|
|
1553
|
+
if (c && f)
|
|
1519
1554
|
throw new Error("We currently do not support maximum integer digits");
|
|
1520
|
-
if (
|
|
1555
|
+
if (p)
|
|
1521
1556
|
throw new Error("We currently do not support exact integer digits");
|
|
1522
1557
|
}
|
|
1523
1558
|
return "";
|
|
1524
1559
|
});
|
|
1525
1560
|
continue;
|
|
1526
1561
|
}
|
|
1527
|
-
if (
|
|
1562
|
+
if (rr.test(i.stem)) {
|
|
1528
1563
|
t.minimumIntegerDigits = i.stem.length;
|
|
1529
1564
|
continue;
|
|
1530
1565
|
}
|
|
1531
|
-
if (
|
|
1566
|
+
if (_t.test(i.stem)) {
|
|
1532
1567
|
if (i.options.length > 1)
|
|
1533
1568
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1534
|
-
i.stem.replace(
|
|
1535
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1569
|
+
i.stem.replace(_t, function(h, u, l, c, f, p) {
|
|
1570
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1536
1571
|
});
|
|
1537
1572
|
var s = i.options[0];
|
|
1538
|
-
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t),
|
|
1573
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), Et(s)));
|
|
1539
1574
|
continue;
|
|
1540
1575
|
}
|
|
1541
|
-
if (
|
|
1542
|
-
t = _(_({}, t),
|
|
1576
|
+
if (tr.test(i.stem)) {
|
|
1577
|
+
t = _(_({}, t), Et(i.stem));
|
|
1543
1578
|
continue;
|
|
1544
1579
|
}
|
|
1545
|
-
var o =
|
|
1580
|
+
var o = nr(i.stem);
|
|
1546
1581
|
o && (t = _(_({}, t), o));
|
|
1547
|
-
var a =
|
|
1582
|
+
var a = In(i.stem);
|
|
1548
1583
|
a && (t = _(_({}, t), a));
|
|
1549
1584
|
}
|
|
1550
1585
|
return t;
|
|
1551
1586
|
}
|
|
1552
|
-
var
|
|
1587
|
+
var _e = {
|
|
1553
1588
|
"001": [
|
|
1554
1589
|
"H",
|
|
1555
1590
|
"h"
|
|
@@ -2964,13 +2999,13 @@ var ve = {
|
|
|
2964
2999
|
"h"
|
|
2965
3000
|
]
|
|
2966
3001
|
};
|
|
2967
|
-
function
|
|
3002
|
+
function Mn(e, t) {
|
|
2968
3003
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2969
3004
|
var i = e.charAt(n);
|
|
2970
3005
|
if (i === "j") {
|
|
2971
3006
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2972
3007
|
s++, n++;
|
|
2973
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
3008
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Nn(t);
|
|
2974
3009
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2975
3010
|
r += h;
|
|
2976
3011
|
for (; o-- > 0; )
|
|
@@ -2980,7 +3015,7 @@ function Pn(e, t) {
|
|
|
2980
3015
|
}
|
|
2981
3016
|
return r;
|
|
2982
3017
|
}
|
|
2983
|
-
function
|
|
3018
|
+
function Nn(e) {
|
|
2984
3019
|
var t = e.hourCycle;
|
|
2985
3020
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2986
3021
|
e.hourCycles && // @ts-ignore
|
|
@@ -2999,23 +3034,23 @@ function Cn(e) {
|
|
|
2999
3034
|
}
|
|
3000
3035
|
var r = e.language, n;
|
|
3001
3036
|
r !== "root" && (n = e.maximize().region);
|
|
3002
|
-
var i =
|
|
3037
|
+
var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
|
|
3003
3038
|
return i[0];
|
|
3004
3039
|
}
|
|
3005
|
-
var
|
|
3040
|
+
var De, $n = new RegExp("^".concat(er.source, "*")), Rn = new RegExp("".concat(er.source, "*$"));
|
|
3006
3041
|
function b(e, t) {
|
|
3007
3042
|
return { start: e, end: t };
|
|
3008
3043
|
}
|
|
3009
|
-
var
|
|
3044
|
+
var Un = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Gn = !!Object.fromEntries, Fn = !!String.prototype.codePointAt, jn = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
|
|
3010
3045
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3011
|
-
},
|
|
3046
|
+
}, Ke = !0;
|
|
3012
3047
|
try {
|
|
3013
|
-
var
|
|
3014
|
-
|
|
3048
|
+
var Wn = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3049
|
+
Ke = ((De = Wn.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3015
3050
|
} catch {
|
|
3016
|
-
|
|
3051
|
+
Ke = !1;
|
|
3017
3052
|
}
|
|
3018
|
-
var
|
|
3053
|
+
var St = Un ? (
|
|
3019
3054
|
// Native
|
|
3020
3055
|
function(t, r, n) {
|
|
3021
3056
|
return t.startsWith(r, n);
|
|
@@ -3025,7 +3060,7 @@ var _t = Mn ? (
|
|
|
3025
3060
|
function(t, r, n) {
|
|
3026
3061
|
return t.slice(n, n + r.length) === r;
|
|
3027
3062
|
}
|
|
3028
|
-
),
|
|
3063
|
+
), et = Dn ? String.fromCodePoint : (
|
|
3029
3064
|
// IE11
|
|
3030
3065
|
function() {
|
|
3031
3066
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3037,9 +3072,9 @@ var _t = Mn ? (
|
|
|
3037
3072
|
}
|
|
3038
3073
|
return n;
|
|
3039
3074
|
}
|
|
3040
|
-
),
|
|
3075
|
+
), wt = (
|
|
3041
3076
|
// native
|
|
3042
|
-
|
|
3077
|
+
Gn ? Object.fromEntries : (
|
|
3043
3078
|
// Ponyfill
|
|
3044
3079
|
function(t) {
|
|
3045
3080
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3049,7 +3084,7 @@ var _t = Mn ? (
|
|
|
3049
3084
|
return r;
|
|
3050
3085
|
}
|
|
3051
3086
|
)
|
|
3052
|
-
),
|
|
3087
|
+
), ir = Fn ? (
|
|
3053
3088
|
// Native
|
|
3054
3089
|
function(t, r) {
|
|
3055
3090
|
return t.codePointAt(r);
|
|
@@ -3063,7 +3098,7 @@ var _t = Mn ? (
|
|
|
3063
3098
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3064
3099
|
}
|
|
3065
3100
|
}
|
|
3066
|
-
),
|
|
3101
|
+
), zn = jn ? (
|
|
3067
3102
|
// Native
|
|
3068
3103
|
function(t) {
|
|
3069
3104
|
return t.trimStart();
|
|
@@ -3071,9 +3106,9 @@ var _t = Mn ? (
|
|
|
3071
3106
|
) : (
|
|
3072
3107
|
// Ponyfill
|
|
3073
3108
|
function(t) {
|
|
3074
|
-
return t.replace(
|
|
3109
|
+
return t.replace($n, "");
|
|
3075
3110
|
}
|
|
3076
|
-
),
|
|
3111
|
+
), Zn = kn ? (
|
|
3077
3112
|
// Native
|
|
3078
3113
|
function(t) {
|
|
3079
3114
|
return t.trimEnd();
|
|
@@ -3081,32 +3116,32 @@ var _t = Mn ? (
|
|
|
3081
3116
|
) : (
|
|
3082
3117
|
// Ponyfill
|
|
3083
3118
|
function(t) {
|
|
3084
|
-
return t.replace(
|
|
3119
|
+
return t.replace(Rn, "");
|
|
3085
3120
|
}
|
|
3086
3121
|
);
|
|
3087
|
-
function
|
|
3122
|
+
function sr(e, t) {
|
|
3088
3123
|
return new RegExp(e, t);
|
|
3089
3124
|
}
|
|
3090
|
-
var
|
|
3091
|
-
if (
|
|
3092
|
-
var
|
|
3093
|
-
|
|
3125
|
+
var tt;
|
|
3126
|
+
if (Ke) {
|
|
3127
|
+
var Tt = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3128
|
+
tt = function(t, r) {
|
|
3094
3129
|
var n;
|
|
3095
|
-
|
|
3096
|
-
var i =
|
|
3130
|
+
Tt.lastIndex = r;
|
|
3131
|
+
var i = Tt.exec(t);
|
|
3097
3132
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3098
3133
|
};
|
|
3099
3134
|
} else
|
|
3100
|
-
|
|
3135
|
+
tt = function(t, r) {
|
|
3101
3136
|
for (var n = []; ; ) {
|
|
3102
|
-
var i =
|
|
3103
|
-
if (i === void 0 ||
|
|
3137
|
+
var i = ir(t, r);
|
|
3138
|
+
if (i === void 0 || or(i) || Yn(i))
|
|
3104
3139
|
break;
|
|
3105
3140
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3106
3141
|
}
|
|
3107
|
-
return
|
|
3142
|
+
return et.apply(void 0, n);
|
|
3108
3143
|
};
|
|
3109
|
-
var
|
|
3144
|
+
var Qn = (
|
|
3110
3145
|
/** @class */
|
|
3111
3146
|
function() {
|
|
3112
3147
|
function e(t, r) {
|
|
@@ -3136,8 +3171,8 @@ var Xn = (
|
|
|
3136
3171
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3137
3172
|
if (n)
|
|
3138
3173
|
break;
|
|
3139
|
-
return this.error(
|
|
3140
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3174
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3175
|
+
} else if (s === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3141
3176
|
var o = this.parseTag(t, r);
|
|
3142
3177
|
if (o.err)
|
|
3143
3178
|
return o;
|
|
@@ -3170,10 +3205,10 @@ var Xn = (
|
|
|
3170
3205
|
return s;
|
|
3171
3206
|
var o = s.val, a = this.clonePosition();
|
|
3172
3207
|
if (this.bumpIf("</")) {
|
|
3173
|
-
if (this.isEOF() || !
|
|
3174
|
-
return this.error(
|
|
3208
|
+
if (this.isEOF() || !rt(this.char()))
|
|
3209
|
+
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3175
3210
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3176
|
-
return i !== u ? this.error(
|
|
3211
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3177
3212
|
val: {
|
|
3178
3213
|
type: v.tag,
|
|
3179
3214
|
value: i,
|
|
@@ -3181,14 +3216,14 @@ var Xn = (
|
|
|
3181
3216
|
location: b(n, this.clonePosition())
|
|
3182
3217
|
},
|
|
3183
3218
|
err: null
|
|
3184
|
-
} : this.error(
|
|
3219
|
+
} : this.error(d.INVALID_TAG, b(a, this.clonePosition())));
|
|
3185
3220
|
} else
|
|
3186
|
-
return this.error(
|
|
3221
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3187
3222
|
} else
|
|
3188
|
-
return this.error(
|
|
3223
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3189
3224
|
}, e.prototype.parseTagName = function() {
|
|
3190
3225
|
var t = this.offset();
|
|
3191
|
-
for (this.bump(); !this.isEOF() &&
|
|
3226
|
+
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
|
3192
3227
|
this.bump();
|
|
3193
3228
|
return this.message.slice(t, this.offset());
|
|
3194
3229
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3217,7 +3252,7 @@ var Xn = (
|
|
|
3217
3252
|
};
|
|
3218
3253
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3219
3254
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3220
|
-
!
|
|
3255
|
+
!qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3221
3256
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3222
3257
|
if (this.isEOF() || this.char() !== 39)
|
|
3223
3258
|
return null;
|
|
@@ -3251,23 +3286,23 @@ var Xn = (
|
|
|
3251
3286
|
r.push(n);
|
|
3252
3287
|
this.bump();
|
|
3253
3288
|
}
|
|
3254
|
-
return
|
|
3289
|
+
return et.apply(void 0, r);
|
|
3255
3290
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3256
3291
|
if (this.isEOF())
|
|
3257
3292
|
return null;
|
|
3258
3293
|
var n = this.char();
|
|
3259
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3294
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
|
3260
3295
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3261
3296
|
var n = this.clonePosition();
|
|
3262
3297
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3263
|
-
return this.error(
|
|
3298
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3264
3299
|
if (this.char() === 125)
|
|
3265
|
-
return this.bump(), this.error(
|
|
3300
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3266
3301
|
var i = this.parseIdentifierIfPossible().value;
|
|
3267
3302
|
if (!i)
|
|
3268
|
-
return this.error(
|
|
3303
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3269
3304
|
if (this.bumpSpace(), this.isEOF())
|
|
3270
|
-
return this.error(
|
|
3305
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3271
3306
|
switch (this.char()) {
|
|
3272
3307
|
case 125:
|
|
3273
3308
|
return this.bump(), {
|
|
@@ -3280,12 +3315,12 @@ var Xn = (
|
|
|
3280
3315
|
err: null
|
|
3281
3316
|
};
|
|
3282
3317
|
case 44:
|
|
3283
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3318
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3284
3319
|
default:
|
|
3285
|
-
return this.error(
|
|
3320
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3286
3321
|
}
|
|
3287
3322
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3288
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3323
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3289
3324
|
this.bumpTo(i);
|
|
3290
3325
|
var s = this.clonePosition(), o = b(t, s);
|
|
3291
3326
|
return { value: n, location: o };
|
|
@@ -3293,7 +3328,7 @@ var Xn = (
|
|
|
3293
3328
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3294
3329
|
switch (a) {
|
|
3295
3330
|
case "":
|
|
3296
|
-
return this.error(
|
|
3331
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(o, h));
|
|
3297
3332
|
case "number":
|
|
3298
3333
|
case "date":
|
|
3299
3334
|
case "time": {
|
|
@@ -3301,40 +3336,40 @@ var Xn = (
|
|
|
3301
3336
|
var u = null;
|
|
3302
3337
|
if (this.bumpIf(",")) {
|
|
3303
3338
|
this.bumpSpace();
|
|
3304
|
-
var l = this.clonePosition(),
|
|
3305
|
-
if (
|
|
3306
|
-
return
|
|
3307
|
-
var
|
|
3308
|
-
if (
|
|
3309
|
-
return this.error(
|
|
3310
|
-
var
|
|
3311
|
-
u = { style:
|
|
3339
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3340
|
+
if (c.err)
|
|
3341
|
+
return c;
|
|
3342
|
+
var f = Zn(c.val);
|
|
3343
|
+
if (f.length === 0)
|
|
3344
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3345
|
+
var p = b(l, this.clonePosition());
|
|
3346
|
+
u = { style: f, styleLocation: p };
|
|
3312
3347
|
}
|
|
3313
3348
|
var y = this.tryParseArgumentClose(i);
|
|
3314
3349
|
if (y.err)
|
|
3315
3350
|
return y;
|
|
3316
3351
|
var g = b(i, this.clonePosition());
|
|
3317
|
-
if (u &&
|
|
3318
|
-
var
|
|
3352
|
+
if (u && St(u?.style, "::", 0)) {
|
|
3353
|
+
var B = zn(u.style.slice(2));
|
|
3319
3354
|
if (a === "number") {
|
|
3320
|
-
var
|
|
3321
|
-
return
|
|
3322
|
-
val: { type: v.number, value: n, location: g, style:
|
|
3355
|
+
var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
3356
|
+
return c.err ? c : {
|
|
3357
|
+
val: { type: v.number, value: n, location: g, style: c.val },
|
|
3323
3358
|
err: null
|
|
3324
3359
|
};
|
|
3325
3360
|
} else {
|
|
3326
|
-
if (
|
|
3327
|
-
return this.error(
|
|
3328
|
-
var
|
|
3329
|
-
this.locale && (
|
|
3330
|
-
var
|
|
3331
|
-
type:
|
|
3332
|
-
pattern:
|
|
3361
|
+
if (B.length === 0)
|
|
3362
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
3363
|
+
var w = B;
|
|
3364
|
+
this.locale && (w = Mn(B, this.locale));
|
|
3365
|
+
var f = {
|
|
3366
|
+
type: Y.dateTime,
|
|
3367
|
+
pattern: w,
|
|
3333
3368
|
location: u.styleLocation,
|
|
3334
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3369
|
+
parsedOptions: this.shouldParseSkeletons ? On(w) : {}
|
|
3335
3370
|
}, L = a === "date" ? v.date : v.time;
|
|
3336
3371
|
return {
|
|
3337
|
-
val: { type: L, value: n, location: g, style:
|
|
3372
|
+
val: { type: L, value: n, location: g, style: f },
|
|
3338
3373
|
err: null
|
|
3339
3374
|
};
|
|
3340
3375
|
}
|
|
@@ -3352,19 +3387,19 @@ var Xn = (
|
|
|
3352
3387
|
case "plural":
|
|
3353
3388
|
case "selectordinal":
|
|
3354
3389
|
case "select": {
|
|
3355
|
-
var
|
|
3390
|
+
var T = this.clonePosition();
|
|
3356
3391
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3357
|
-
return this.error(
|
|
3392
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(T, Te({}, T)));
|
|
3358
3393
|
this.bumpSpace();
|
|
3359
3394
|
var m = this.parseIdentifierIfPossible(), S = 0;
|
|
3360
3395
|
if (a !== "select" && m.value === "offset") {
|
|
3361
3396
|
if (!this.bumpIf(":"))
|
|
3362
|
-
return this.error(
|
|
3397
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3363
3398
|
this.bumpSpace();
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3366
|
-
return
|
|
3367
|
-
this.bumpSpace(), m = this.parseIdentifierIfPossible(), S =
|
|
3399
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3400
|
+
if (c.err)
|
|
3401
|
+
return c;
|
|
3402
|
+
this.bumpSpace(), m = this.parseIdentifierIfPossible(), S = c.val;
|
|
3368
3403
|
}
|
|
3369
3404
|
var N = this.tryParsePluralOrSelectOptions(t, a, r, m);
|
|
3370
3405
|
if (N.err)
|
|
@@ -3372,32 +3407,32 @@ var Xn = (
|
|
|
3372
3407
|
var y = this.tryParseArgumentClose(i);
|
|
3373
3408
|
if (y.err)
|
|
3374
3409
|
return y;
|
|
3375
|
-
var
|
|
3410
|
+
var se = b(i, this.clonePosition());
|
|
3376
3411
|
return a === "select" ? {
|
|
3377
3412
|
val: {
|
|
3378
3413
|
type: v.select,
|
|
3379
3414
|
value: n,
|
|
3380
|
-
options:
|
|
3381
|
-
location:
|
|
3415
|
+
options: wt(N.val),
|
|
3416
|
+
location: se
|
|
3382
3417
|
},
|
|
3383
3418
|
err: null
|
|
3384
3419
|
} : {
|
|
3385
3420
|
val: {
|
|
3386
3421
|
type: v.plural,
|
|
3387
3422
|
value: n,
|
|
3388
|
-
options:
|
|
3423
|
+
options: wt(N.val),
|
|
3389
3424
|
offset: S,
|
|
3390
3425
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3391
|
-
location:
|
|
3426
|
+
location: se
|
|
3392
3427
|
},
|
|
3393
3428
|
err: null
|
|
3394
3429
|
};
|
|
3395
3430
|
}
|
|
3396
3431
|
default:
|
|
3397
|
-
return this.error(
|
|
3432
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(o, h));
|
|
3398
3433
|
}
|
|
3399
3434
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3400
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3435
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3401
3436
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3402
3437
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3403
3438
|
var n = this.char();
|
|
@@ -3406,7 +3441,7 @@ var Xn = (
|
|
|
3406
3441
|
this.bump();
|
|
3407
3442
|
var i = this.clonePosition();
|
|
3408
3443
|
if (!this.bumpUntil("'"))
|
|
3409
|
-
return this.error(
|
|
3444
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3410
3445
|
this.bump();
|
|
3411
3446
|
break;
|
|
3412
3447
|
}
|
|
@@ -3436,52 +3471,52 @@ var Xn = (
|
|
|
3436
3471
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3437
3472
|
var n = [];
|
|
3438
3473
|
try {
|
|
3439
|
-
n =
|
|
3474
|
+
n = Bn(t);
|
|
3440
3475
|
} catch {
|
|
3441
|
-
return this.error(
|
|
3476
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3442
3477
|
}
|
|
3443
3478
|
return {
|
|
3444
3479
|
val: {
|
|
3445
|
-
type:
|
|
3480
|
+
type: Y.number,
|
|
3446
3481
|
tokens: n,
|
|
3447
3482
|
location: r,
|
|
3448
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3483
|
+
parsedOptions: this.shouldParseSkeletons ? Ln(n) : {}
|
|
3449
3484
|
},
|
|
3450
3485
|
err: null
|
|
3451
3486
|
};
|
|
3452
3487
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3453
3488
|
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3454
3489
|
if (u.length === 0) {
|
|
3455
|
-
var
|
|
3490
|
+
var c = this.clonePosition();
|
|
3456
3491
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3457
|
-
var
|
|
3458
|
-
if (
|
|
3459
|
-
return
|
|
3460
|
-
l = b(
|
|
3492
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3493
|
+
if (f.err)
|
|
3494
|
+
return f;
|
|
3495
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3461
3496
|
} else
|
|
3462
3497
|
break;
|
|
3463
3498
|
}
|
|
3464
3499
|
if (h.has(u))
|
|
3465
|
-
return this.error(r === "select" ?
|
|
3500
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3466
3501
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3467
|
-
var
|
|
3502
|
+
var p = this.clonePosition();
|
|
3468
3503
|
if (!this.bumpIf("{"))
|
|
3469
|
-
return this.error(r === "select" ?
|
|
3504
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3470
3505
|
var y = this.parseMessage(t + 1, r, n);
|
|
3471
3506
|
if (y.err)
|
|
3472
3507
|
return y;
|
|
3473
|
-
var g = this.tryParseArgumentClose(
|
|
3508
|
+
var g = this.tryParseArgumentClose(p);
|
|
3474
3509
|
if (g.err)
|
|
3475
3510
|
return g;
|
|
3476
3511
|
a.push([
|
|
3477
3512
|
u,
|
|
3478
3513
|
{
|
|
3479
3514
|
value: y.val,
|
|
3480
|
-
location: b(
|
|
3515
|
+
location: b(p, this.clonePosition())
|
|
3481
3516
|
}
|
|
3482
3517
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3483
3518
|
}
|
|
3484
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3519
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3485
3520
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3486
3521
|
var n = 1, i = this.clonePosition();
|
|
3487
3522
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3493,7 +3528,7 @@ var Xn = (
|
|
|
3493
3528
|
break;
|
|
3494
3529
|
}
|
|
3495
3530
|
var h = b(i, this.clonePosition());
|
|
3496
|
-
return s ? (o *= n,
|
|
3531
|
+
return s ? (o *= n, Xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3497
3532
|
}, e.prototype.offset = function() {
|
|
3498
3533
|
return this.position.offset;
|
|
3499
3534
|
}, e.prototype.isEOF = function() {
|
|
@@ -3508,7 +3543,7 @@ var Xn = (
|
|
|
3508
3543
|
var t = this.position.offset;
|
|
3509
3544
|
if (t >= this.message.length)
|
|
3510
3545
|
throw Error("out of bound");
|
|
3511
|
-
var r =
|
|
3546
|
+
var r = ir(this.message, t);
|
|
3512
3547
|
if (r === void 0)
|
|
3513
3548
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3514
3549
|
return r;
|
|
@@ -3527,7 +3562,7 @@ var Xn = (
|
|
|
3527
3562
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3528
3563
|
}
|
|
3529
3564
|
}, e.prototype.bumpIf = function(t) {
|
|
3530
|
-
if (
|
|
3565
|
+
if (St(this.message, t, this.offset())) {
|
|
3531
3566
|
for (var r = 0; r < t.length; r++)
|
|
3532
3567
|
this.bump();
|
|
3533
3568
|
return !0;
|
|
@@ -3549,7 +3584,7 @@ var Xn = (
|
|
|
3549
3584
|
break;
|
|
3550
3585
|
}
|
|
3551
3586
|
}, e.prototype.bumpSpace = function() {
|
|
3552
|
-
for (; !this.isEOF() &&
|
|
3587
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3553
3588
|
this.bump();
|
|
3554
3589
|
}, e.prototype.peek = function() {
|
|
3555
3590
|
if (this.isEOF())
|
|
@@ -3559,47 +3594,47 @@ var Xn = (
|
|
|
3559
3594
|
}, e;
|
|
3560
3595
|
}()
|
|
3561
3596
|
);
|
|
3562
|
-
function
|
|
3597
|
+
function rt(e) {
|
|
3563
3598
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3564
3599
|
}
|
|
3565
|
-
function
|
|
3566
|
-
return
|
|
3600
|
+
function qn(e) {
|
|
3601
|
+
return rt(e) || e === 47;
|
|
3567
3602
|
}
|
|
3568
|
-
function
|
|
3603
|
+
function Jn(e) {
|
|
3569
3604
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3570
3605
|
}
|
|
3571
|
-
function
|
|
3606
|
+
function or(e) {
|
|
3572
3607
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3573
3608
|
}
|
|
3574
|
-
function
|
|
3609
|
+
function Yn(e) {
|
|
3575
3610
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3576
3611
|
}
|
|
3577
|
-
function
|
|
3612
|
+
function nt(e) {
|
|
3578
3613
|
e.forEach(function(t) {
|
|
3579
|
-
if (delete t.location,
|
|
3614
|
+
if (delete t.location, qt(t) || Jt(t))
|
|
3580
3615
|
for (var r in t.options)
|
|
3581
|
-
delete t.options[r].location,
|
|
3616
|
+
delete t.options[r].location, nt(t.options[r].value);
|
|
3582
3617
|
else
|
|
3583
|
-
|
|
3618
|
+
zt(t) && Kt(t.style) || (Zt(t) || Qt(t)) && Ye(t.style) ? delete t.style.location : Yt(t) && nt(t.children);
|
|
3584
3619
|
});
|
|
3585
3620
|
}
|
|
3586
|
-
function
|
|
3587
|
-
t === void 0 && (t = {}), t =
|
|
3588
|
-
var r = new
|
|
3621
|
+
function Kn(e, t) {
|
|
3622
|
+
t === void 0 && (t = {}), t = Te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3623
|
+
var r = new Qn(e, t).parse();
|
|
3589
3624
|
if (r.err) {
|
|
3590
|
-
var n = SyntaxError(
|
|
3625
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3591
3626
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3592
3627
|
}
|
|
3593
|
-
return t?.captureLocation ||
|
|
3628
|
+
return t?.captureLocation || nt(r.val), r.val;
|
|
3594
3629
|
}
|
|
3595
|
-
var
|
|
3630
|
+
var K;
|
|
3596
3631
|
(function(e) {
|
|
3597
3632
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3598
|
-
})(
|
|
3599
|
-
var
|
|
3633
|
+
})(K || (K = {}));
|
|
3634
|
+
var Ie = (
|
|
3600
3635
|
/** @class */
|
|
3601
3636
|
function(e) {
|
|
3602
|
-
|
|
3637
|
+
Ce(t, e);
|
|
3603
3638
|
function t(r, n, i) {
|
|
3604
3639
|
var s = e.call(this, r) || this;
|
|
3605
3640
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3608,48 +3643,48 @@ var Pe = (
|
|
|
3608
3643
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3609
3644
|
}, t;
|
|
3610
3645
|
}(Error)
|
|
3611
|
-
),
|
|
3646
|
+
), Ht = (
|
|
3612
3647
|
/** @class */
|
|
3613
3648
|
function(e) {
|
|
3614
|
-
|
|
3649
|
+
Ce(t, e);
|
|
3615
3650
|
function t(r, n, i, s) {
|
|
3616
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3651
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, s) || this;
|
|
3617
3652
|
}
|
|
3618
3653
|
return t;
|
|
3619
|
-
}(
|
|
3620
|
-
),
|
|
3654
|
+
}(Ie)
|
|
3655
|
+
), ei = (
|
|
3621
3656
|
/** @class */
|
|
3622
3657
|
function(e) {
|
|
3623
|
-
|
|
3658
|
+
Ce(t, e);
|
|
3624
3659
|
function t(r, n, i) {
|
|
3625
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3660
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
|
|
3626
3661
|
}
|
|
3627
3662
|
return t;
|
|
3628
|
-
}(
|
|
3629
|
-
),
|
|
3663
|
+
}(Ie)
|
|
3664
|
+
), ti = (
|
|
3630
3665
|
/** @class */
|
|
3631
3666
|
function(e) {
|
|
3632
|
-
|
|
3667
|
+
Ce(t, e);
|
|
3633
3668
|
function t(r, n) {
|
|
3634
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3669
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
|
|
3635
3670
|
}
|
|
3636
3671
|
return t;
|
|
3637
|
-
}(
|
|
3672
|
+
}(Ie)
|
|
3638
3673
|
), A;
|
|
3639
3674
|
(function(e) {
|
|
3640
3675
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3641
3676
|
})(A || (A = {}));
|
|
3642
|
-
function
|
|
3677
|
+
function ri(e) {
|
|
3643
3678
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3644
3679
|
var n = t[t.length - 1];
|
|
3645
3680
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3646
3681
|
}, []);
|
|
3647
3682
|
}
|
|
3648
|
-
function
|
|
3683
|
+
function ni(e) {
|
|
3649
3684
|
return typeof e == "function";
|
|
3650
3685
|
}
|
|
3651
3686
|
function Se(e, t, r, n, i, s, o) {
|
|
3652
|
-
if (e.length === 1 &&
|
|
3687
|
+
if (e.length === 1 && vt(e[0]))
|
|
3653
3688
|
return [
|
|
3654
3689
|
{
|
|
3655
3690
|
type: A.literal,
|
|
@@ -3658,60 +3693,60 @@ function Se(e, t, r, n, i, s, o) {
|
|
|
3658
3693
|
];
|
|
3659
3694
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3660
3695
|
var l = u[h];
|
|
3661
|
-
if (
|
|
3696
|
+
if (vt(l)) {
|
|
3662
3697
|
a.push({
|
|
3663
3698
|
type: A.literal,
|
|
3664
3699
|
value: l.value
|
|
3665
3700
|
});
|
|
3666
3701
|
continue;
|
|
3667
3702
|
}
|
|
3668
|
-
if (
|
|
3703
|
+
if (Tn(l)) {
|
|
3669
3704
|
typeof s == "number" && a.push({
|
|
3670
3705
|
type: A.literal,
|
|
3671
3706
|
value: r.getNumberFormat(t).format(s)
|
|
3672
3707
|
});
|
|
3673
3708
|
continue;
|
|
3674
3709
|
}
|
|
3675
|
-
var
|
|
3676
|
-
if (!(i &&
|
|
3677
|
-
throw new
|
|
3678
|
-
var
|
|
3679
|
-
if (
|
|
3680
|
-
(!
|
|
3681
|
-
type: typeof
|
|
3682
|
-
value:
|
|
3710
|
+
var c = l.value;
|
|
3711
|
+
if (!(i && c in i))
|
|
3712
|
+
throw new ti(c, o);
|
|
3713
|
+
var f = i[c];
|
|
3714
|
+
if (wn(l)) {
|
|
3715
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3716
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3717
|
+
value: f
|
|
3683
3718
|
});
|
|
3684
3719
|
continue;
|
|
3685
3720
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
var
|
|
3721
|
+
if (Zt(l)) {
|
|
3722
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ye(l.style) ? l.style.parsedOptions : void 0;
|
|
3688
3723
|
a.push({
|
|
3689
3724
|
type: A.literal,
|
|
3690
|
-
value: r.getDateTimeFormat(t,
|
|
3725
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3691
3726
|
});
|
|
3692
3727
|
continue;
|
|
3693
3728
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var
|
|
3729
|
+
if (Qt(l)) {
|
|
3730
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ye(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3696
3731
|
a.push({
|
|
3697
3732
|
type: A.literal,
|
|
3698
|
-
value: r.getDateTimeFormat(t,
|
|
3733
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3699
3734
|
});
|
|
3700
3735
|
continue;
|
|
3701
3736
|
}
|
|
3702
|
-
if (
|
|
3703
|
-
var
|
|
3704
|
-
|
|
3737
|
+
if (zt(l)) {
|
|
3738
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Kt(l.style) ? l.style.parsedOptions : void 0;
|
|
3739
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3705
3740
|
type: A.literal,
|
|
3706
|
-
value: r.getNumberFormat(t,
|
|
3741
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3707
3742
|
});
|
|
3708
3743
|
continue;
|
|
3709
3744
|
}
|
|
3710
|
-
if (
|
|
3711
|
-
var y = l.children, g = l.value,
|
|
3712
|
-
if (!
|
|
3713
|
-
throw new
|
|
3714
|
-
var
|
|
3745
|
+
if (Yt(l)) {
|
|
3746
|
+
var y = l.children, g = l.value, B = i[g];
|
|
3747
|
+
if (!ni(B))
|
|
3748
|
+
throw new ei(g, "function", o);
|
|
3749
|
+
var w = Se(y, t, r, n, i, s), L = B(w.map(function(S) {
|
|
3715
3750
|
return S.value;
|
|
3716
3751
|
}));
|
|
3717
3752
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(S) {
|
|
@@ -3721,42 +3756,42 @@ function Se(e, t, r, n, i, s, o) {
|
|
|
3721
3756
|
};
|
|
3722
3757
|
}));
|
|
3723
3758
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var
|
|
3726
|
-
if (!
|
|
3727
|
-
throw new
|
|
3728
|
-
a.push.apply(a, Se(
|
|
3759
|
+
if (qt(l)) {
|
|
3760
|
+
var T = l.options[f] || l.options.other;
|
|
3761
|
+
if (!T)
|
|
3762
|
+
throw new Ht(l.value, f, Object.keys(l.options), o);
|
|
3763
|
+
a.push.apply(a, Se(T.value, t, r, n, i));
|
|
3729
3764
|
continue;
|
|
3730
3765
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var
|
|
3733
|
-
if (!
|
|
3766
|
+
if (Jt(l)) {
|
|
3767
|
+
var T = l.options["=".concat(f)];
|
|
3768
|
+
if (!T) {
|
|
3734
3769
|
if (!Intl.PluralRules)
|
|
3735
|
-
throw new
|
|
3770
|
+
throw new Ie(`Intl.PluralRules is not available in this environment.
|
|
3736
3771
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3737
|
-
`,
|
|
3738
|
-
var m = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3739
|
-
|
|
3772
|
+
`, K.MISSING_INTL_API, o);
|
|
3773
|
+
var m = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3774
|
+
T = l.options[m] || l.options.other;
|
|
3740
3775
|
}
|
|
3741
|
-
if (!
|
|
3742
|
-
throw new
|
|
3743
|
-
a.push.apply(a, Se(
|
|
3776
|
+
if (!T)
|
|
3777
|
+
throw new Ht(l.value, f, Object.keys(l.options), o);
|
|
3778
|
+
a.push.apply(a, Se(T.value, t, r, n, i, f - (l.offset || 0)));
|
|
3744
3779
|
continue;
|
|
3745
3780
|
}
|
|
3746
3781
|
}
|
|
3747
|
-
return
|
|
3782
|
+
return ri(a);
|
|
3748
3783
|
}
|
|
3749
|
-
function
|
|
3750
|
-
return t ?
|
|
3751
|
-
return r[n] =
|
|
3784
|
+
function ii(e, t) {
|
|
3785
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3786
|
+
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
|
3752
3787
|
}, {})) : e;
|
|
3753
3788
|
}
|
|
3754
|
-
function
|
|
3789
|
+
function si(e, t) {
|
|
3755
3790
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3756
|
-
return r[n] =
|
|
3757
|
-
},
|
|
3791
|
+
return r[n] = ii(e[n], t[n]), r;
|
|
3792
|
+
}, R({}, e)) : e;
|
|
3758
3793
|
}
|
|
3759
|
-
function
|
|
3794
|
+
function Ge(e) {
|
|
3760
3795
|
return {
|
|
3761
3796
|
create: function() {
|
|
3762
3797
|
return {
|
|
@@ -3770,39 +3805,39 @@ function Re(e) {
|
|
|
3770
3805
|
}
|
|
3771
3806
|
};
|
|
3772
3807
|
}
|
|
3773
|
-
function
|
|
3808
|
+
function oi(e) {
|
|
3774
3809
|
return e === void 0 && (e = {
|
|
3775
3810
|
number: {},
|
|
3776
3811
|
dateTime: {},
|
|
3777
3812
|
pluralRules: {}
|
|
3778
3813
|
}), {
|
|
3779
|
-
getNumberFormat:
|
|
3814
|
+
getNumberFormat: Re(function() {
|
|
3780
3815
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3781
3816
|
r[n] = arguments[n];
|
|
3782
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3817
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3783
3818
|
}, {
|
|
3784
|
-
cache:
|
|
3785
|
-
strategy:
|
|
3819
|
+
cache: Ge(e.number),
|
|
3820
|
+
strategy: Ue.variadic
|
|
3786
3821
|
}),
|
|
3787
|
-
getDateTimeFormat:
|
|
3822
|
+
getDateTimeFormat: Re(function() {
|
|
3788
3823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3789
3824
|
r[n] = arguments[n];
|
|
3790
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3825
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3791
3826
|
}, {
|
|
3792
|
-
cache:
|
|
3793
|
-
strategy:
|
|
3827
|
+
cache: Ge(e.dateTime),
|
|
3828
|
+
strategy: Ue.variadic
|
|
3794
3829
|
}),
|
|
3795
|
-
getPluralRules:
|
|
3830
|
+
getPluralRules: Re(function() {
|
|
3796
3831
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3797
3832
|
r[n] = arguments[n];
|
|
3798
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3833
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
|
3799
3834
|
}, {
|
|
3800
|
-
cache:
|
|
3801
|
-
strategy:
|
|
3835
|
+
cache: Ge(e.pluralRules),
|
|
3836
|
+
strategy: Ue.variadic
|
|
3802
3837
|
})
|
|
3803
3838
|
};
|
|
3804
3839
|
}
|
|
3805
|
-
var
|
|
3840
|
+
var ar = (
|
|
3806
3841
|
/** @class */
|
|
3807
3842
|
function() {
|
|
3808
3843
|
function e(t, r, n, i) {
|
|
@@ -3816,8 +3851,8 @@ var nr = (
|
|
|
3816
3851
|
var u = s.formatToParts(h);
|
|
3817
3852
|
if (u.length === 1)
|
|
3818
3853
|
return u[0].value;
|
|
3819
|
-
var l = u.reduce(function(
|
|
3820
|
-
return !
|
|
3854
|
+
var l = u.reduce(function(c, f) {
|
|
3855
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3821
3856
|
}, []);
|
|
3822
3857
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3823
3858
|
}, this.formatToParts = function(h) {
|
|
@@ -3834,13 +3869,13 @@ var nr = (
|
|
|
3834
3869
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3835
3870
|
var o = i || {};
|
|
3836
3871
|
o.formatters;
|
|
3837
|
-
var a =
|
|
3838
|
-
this.ast = e.__parse(t,
|
|
3872
|
+
var a = bn(o, ["formatters"]);
|
|
3873
|
+
this.ast = e.__parse(t, R(R({}, a), { locale: this.resolvedLocale }));
|
|
3839
3874
|
} else
|
|
3840
3875
|
this.ast = t;
|
|
3841
3876
|
if (!Array.isArray(this.ast))
|
|
3842
3877
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3843
|
-
this.formats =
|
|
3878
|
+
this.formats = si(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
|
3844
3879
|
}
|
|
3845
3880
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3846
3881
|
get: function() {
|
|
@@ -3853,7 +3888,7 @@ var nr = (
|
|
|
3853
3888
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3854
3889
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3855
3890
|
}
|
|
3856
|
-
}, e.__parse =
|
|
3891
|
+
}, e.__parse = Kn, e.formats = {
|
|
3857
3892
|
number: {
|
|
3858
3893
|
integer: {
|
|
3859
3894
|
maximumFractionDigits: 0
|
|
@@ -3914,7 +3949,7 @@ var nr = (
|
|
|
3914
3949
|
}, e;
|
|
3915
3950
|
}()
|
|
3916
3951
|
);
|
|
3917
|
-
function
|
|
3952
|
+
function ai(e, t) {
|
|
3918
3953
|
if (t == null)
|
|
3919
3954
|
return;
|
|
3920
3955
|
if (t in e)
|
|
@@ -3935,101 +3970,101 @@ function ni(e, t) {
|
|
|
3935
3970
|
n = void 0;
|
|
3936
3971
|
return n;
|
|
3937
3972
|
}
|
|
3938
|
-
const F = {},
|
|
3973
|
+
const F = {}, ui = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), ur = (e, t) => {
|
|
3939
3974
|
if (t == null)
|
|
3940
3975
|
return;
|
|
3941
3976
|
if (t in F && e in F[t])
|
|
3942
3977
|
return F[t][e];
|
|
3943
|
-
const r =
|
|
3978
|
+
const r = de(t);
|
|
3944
3979
|
for (let n = 0; n < r.length; n++) {
|
|
3945
|
-
const i = r[n], s =
|
|
3980
|
+
const i = r[n], s = li(i, e);
|
|
3946
3981
|
if (s)
|
|
3947
|
-
return
|
|
3982
|
+
return ui(e, t, s);
|
|
3948
3983
|
}
|
|
3949
3984
|
};
|
|
3950
|
-
let
|
|
3951
|
-
const
|
|
3952
|
-
function
|
|
3953
|
-
return
|
|
3985
|
+
let ot;
|
|
3986
|
+
const pe = Pe({});
|
|
3987
|
+
function hi(e) {
|
|
3988
|
+
return ot[e] || null;
|
|
3954
3989
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return e in
|
|
3990
|
+
function hr(e) {
|
|
3991
|
+
return e in ot;
|
|
3957
3992
|
}
|
|
3958
|
-
function
|
|
3959
|
-
if (!
|
|
3993
|
+
function li(e, t) {
|
|
3994
|
+
if (!hr(e))
|
|
3960
3995
|
return null;
|
|
3961
|
-
const r =
|
|
3962
|
-
return
|
|
3996
|
+
const r = hi(e);
|
|
3997
|
+
return ai(r, t);
|
|
3963
3998
|
}
|
|
3964
|
-
function
|
|
3999
|
+
function ci(e) {
|
|
3965
4000
|
if (e == null)
|
|
3966
4001
|
return;
|
|
3967
|
-
const t =
|
|
4002
|
+
const t = de(e);
|
|
3968
4003
|
for (let r = 0; r < t.length; r++) {
|
|
3969
4004
|
const n = t[r];
|
|
3970
|
-
if (
|
|
4005
|
+
if (hr(n))
|
|
3971
4006
|
return n;
|
|
3972
4007
|
}
|
|
3973
4008
|
}
|
|
3974
|
-
function
|
|
3975
|
-
delete F[e],
|
|
4009
|
+
function lr(e, ...t) {
|
|
4010
|
+
delete F[e], pe.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
|
|
3976
4011
|
}
|
|
3977
|
-
|
|
3978
|
-
[
|
|
4012
|
+
ne(
|
|
4013
|
+
[pe],
|
|
3979
4014
|
([e]) => Object.keys(e)
|
|
3980
4015
|
);
|
|
3981
|
-
|
|
3982
|
-
const
|
|
3983
|
-
function
|
|
3984
|
-
|
|
4016
|
+
pe.subscribe((e) => ot = e);
|
|
4017
|
+
const we = {};
|
|
4018
|
+
function fi(e, t) {
|
|
4019
|
+
we[e].delete(t), we[e].size === 0 && delete we[e];
|
|
3985
4020
|
}
|
|
3986
|
-
function
|
|
3987
|
-
return
|
|
4021
|
+
function cr(e) {
|
|
4022
|
+
return we[e];
|
|
3988
4023
|
}
|
|
3989
|
-
function
|
|
3990
|
-
return
|
|
3991
|
-
const r =
|
|
4024
|
+
function pi(e) {
|
|
4025
|
+
return de(e).map((t) => {
|
|
4026
|
+
const r = cr(t);
|
|
3992
4027
|
return [t, r ? [...r] : []];
|
|
3993
4028
|
}).filter(([, t]) => t.length > 0);
|
|
3994
4029
|
}
|
|
3995
4030
|
function He(e) {
|
|
3996
|
-
return e == null ? !1 :
|
|
4031
|
+
return e == null ? !1 : de(e).some(
|
|
3997
4032
|
(t) => {
|
|
3998
4033
|
var r;
|
|
3999
|
-
return (r =
|
|
4034
|
+
return (r = cr(t)) == null ? void 0 : r.size;
|
|
4000
4035
|
}
|
|
4001
4036
|
);
|
|
4002
4037
|
}
|
|
4003
|
-
function
|
|
4038
|
+
function di(e, t) {
|
|
4004
4039
|
return Promise.all(
|
|
4005
|
-
t.map((n) => (
|
|
4006
|
-
).then((n) =>
|
|
4040
|
+
t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
|
|
4041
|
+
).then((n) => lr(e, ...n));
|
|
4007
4042
|
}
|
|
4008
|
-
const
|
|
4009
|
-
function
|
|
4043
|
+
const oe = {};
|
|
4044
|
+
function fr(e) {
|
|
4010
4045
|
if (!He(e))
|
|
4011
|
-
return e in
|
|
4012
|
-
const t =
|
|
4013
|
-
return
|
|
4046
|
+
return e in oe ? oe[e] : Promise.resolve();
|
|
4047
|
+
const t = pi(e);
|
|
4048
|
+
return oe[e] = Promise.all(
|
|
4014
4049
|
t.map(
|
|
4015
|
-
([r, n]) =>
|
|
4050
|
+
([r, n]) => di(r, n)
|
|
4016
4051
|
)
|
|
4017
4052
|
).then(() => {
|
|
4018
4053
|
if (He(e))
|
|
4019
|
-
return
|
|
4020
|
-
delete
|
|
4021
|
-
}),
|
|
4054
|
+
return fr(e);
|
|
4055
|
+
delete oe[e];
|
|
4056
|
+
}), oe[e];
|
|
4022
4057
|
}
|
|
4023
|
-
var
|
|
4058
|
+
var Ot = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, yi = (e, t) => {
|
|
4024
4059
|
var r = {};
|
|
4025
4060
|
for (var n in e)
|
|
4026
|
-
|
|
4027
|
-
if (e != null &&
|
|
4028
|
-
for (var n of
|
|
4029
|
-
t.indexOf(n) < 0 &&
|
|
4061
|
+
mi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4062
|
+
if (e != null && Ot)
|
|
4063
|
+
for (var n of Ot(e))
|
|
4064
|
+
t.indexOf(n) < 0 && bi.call(e, n) && (r[n] = e[n]);
|
|
4030
4065
|
return r;
|
|
4031
4066
|
};
|
|
4032
|
-
const
|
|
4067
|
+
const gi = {
|
|
4033
4068
|
number: {
|
|
4034
4069
|
scientific: { notation: "scientific" },
|
|
4035
4070
|
engineering: { notation: "engineering" },
|
|
@@ -4059,159 +4094,159 @@ const pi = {
|
|
|
4059
4094
|
}
|
|
4060
4095
|
}
|
|
4061
4096
|
};
|
|
4062
|
-
function
|
|
4097
|
+
function vi({ locale: e, id: t }) {
|
|
4063
4098
|
console.warn(
|
|
4064
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
4099
|
+
`[svelte-i18n] The message "${t}" was not found in "${de(
|
|
4065
4100
|
e
|
|
4066
4101
|
).join('", "')}".${He(j()) ? `
|
|
4067
4102
|
|
|
4068
4103
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
4069
4104
|
);
|
|
4070
4105
|
}
|
|
4071
|
-
const
|
|
4106
|
+
const _i = {
|
|
4072
4107
|
fallbackLocale: null,
|
|
4073
4108
|
loadingDelay: 200,
|
|
4074
|
-
formats:
|
|
4109
|
+
formats: gi,
|
|
4075
4110
|
warnOnMissingMessages: !0,
|
|
4076
4111
|
handleMissingMessage: void 0,
|
|
4077
4112
|
ignoreTag: !0
|
|
4078
|
-
},
|
|
4079
|
-
function
|
|
4080
|
-
return
|
|
4113
|
+
}, ae = _i;
|
|
4114
|
+
function ee() {
|
|
4115
|
+
return ae;
|
|
4081
4116
|
}
|
|
4082
|
-
function
|
|
4083
|
-
const t = e, { formats: r } = t, n =
|
|
4117
|
+
function Ei(e) {
|
|
4118
|
+
const t = e, { formats: r } = t, n = yi(t, ["formats"]);
|
|
4084
4119
|
let i = e.fallbackLocale;
|
|
4085
4120
|
if (e.initialLocale)
|
|
4086
4121
|
try {
|
|
4087
|
-
|
|
4122
|
+
ar.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
4088
4123
|
} catch {
|
|
4089
4124
|
console.warn(
|
|
4090
4125
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
4091
4126
|
);
|
|
4092
4127
|
}
|
|
4093
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
4128
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = vi : console.warn(
|
|
4094
4129
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
4095
|
-
)), Object.assign(
|
|
4096
|
-
}
|
|
4097
|
-
const
|
|
4098
|
-
var
|
|
4099
|
-
for (var r in t)
|
|
4100
|
-
|
|
4101
|
-
if (
|
|
4102
|
-
for (var r of
|
|
4103
|
-
|
|
4130
|
+
)), Object.assign(ae, n, { initialLocale: i }), r && ("number" in r && Object.assign(ae.formats.number, r.number), "date" in r && Object.assign(ae.formats.date, r.date), "time" in r && Object.assign(ae.formats.time, r.time)), V.set(i);
|
|
4131
|
+
}
|
|
4132
|
+
const Fe = Pe(!1);
|
|
4133
|
+
var xi = Object.defineProperty, Si = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oi = (e, t) => {
|
|
4134
|
+
for (var r in t || (t = {}))
|
|
4135
|
+
Ti.call(t, r) && Bt(e, r, t[r]);
|
|
4136
|
+
if (At)
|
|
4137
|
+
for (var r of At(t))
|
|
4138
|
+
Hi.call(t, r) && Bt(e, r, t[r]);
|
|
4104
4139
|
return e;
|
|
4105
|
-
},
|
|
4106
|
-
let
|
|
4107
|
-
const
|
|
4108
|
-
function
|
|
4140
|
+
}, Ai = (e, t) => Si(e, wi(t));
|
|
4141
|
+
let it;
|
|
4142
|
+
const Oe = Pe(null);
|
|
4143
|
+
function Pt(e) {
|
|
4109
4144
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4110
4145
|
}
|
|
4111
|
-
function
|
|
4112
|
-
const r =
|
|
4113
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4146
|
+
function de(e, t = ee().fallbackLocale) {
|
|
4147
|
+
const r = Pt(e);
|
|
4148
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
|
|
4114
4149
|
}
|
|
4115
4150
|
function j() {
|
|
4116
|
-
return
|
|
4151
|
+
return it ?? void 0;
|
|
4117
4152
|
}
|
|
4118
|
-
|
|
4119
|
-
|
|
4153
|
+
Oe.subscribe((e) => {
|
|
4154
|
+
it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4120
4155
|
});
|
|
4121
|
-
const
|
|
4122
|
-
if (e &&
|
|
4123
|
-
const { loadingDelay: t } =
|
|
4156
|
+
const Bi = (e) => {
|
|
4157
|
+
if (e && ci(e) && He(e)) {
|
|
4158
|
+
const { loadingDelay: t } = ee();
|
|
4124
4159
|
let r;
|
|
4125
4160
|
return typeof window < "u" && j() != null && t ? r = window.setTimeout(
|
|
4126
|
-
() =>
|
|
4161
|
+
() => Fe.set(!0),
|
|
4127
4162
|
t
|
|
4128
|
-
) :
|
|
4129
|
-
|
|
4163
|
+
) : Fe.set(!0), fr(e).then(() => {
|
|
4164
|
+
Oe.set(e);
|
|
4130
4165
|
}).finally(() => {
|
|
4131
|
-
clearTimeout(r),
|
|
4166
|
+
clearTimeout(r), Fe.set(!1);
|
|
4132
4167
|
});
|
|
4133
4168
|
}
|
|
4134
|
-
return
|
|
4135
|
-
}, V =
|
|
4136
|
-
set:
|
|
4137
|
-
}),
|
|
4169
|
+
return Oe.set(e);
|
|
4170
|
+
}, V = Ai(Oi({}, Oe), {
|
|
4171
|
+
set: Bi
|
|
4172
|
+
}), Le = (e) => {
|
|
4138
4173
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4139
4174
|
return (n) => {
|
|
4140
4175
|
const i = JSON.stringify(n);
|
|
4141
4176
|
return i in t ? t[i] : t[i] = e(n);
|
|
4142
4177
|
};
|
|
4143
4178
|
};
|
|
4144
|
-
var
|
|
4179
|
+
var Pi = Object.defineProperty, Ae = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
4145
4180
|
for (var r in t || (t = {}))
|
|
4146
|
-
|
|
4147
|
-
if (
|
|
4148
|
-
for (var r of
|
|
4149
|
-
|
|
4181
|
+
pr.call(t, r) && Ct(e, r, t[r]);
|
|
4182
|
+
if (Ae)
|
|
4183
|
+
for (var r of Ae(t))
|
|
4184
|
+
dr.call(t, r) && Ct(e, r, t[r]);
|
|
4150
4185
|
return e;
|
|
4151
|
-
},
|
|
4186
|
+
}, ie = (e, t) => {
|
|
4152
4187
|
var r = {};
|
|
4153
4188
|
for (var n in e)
|
|
4154
|
-
|
|
4155
|
-
if (e != null &&
|
|
4156
|
-
for (var n of
|
|
4157
|
-
t.indexOf(n) < 0 &&
|
|
4189
|
+
pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4190
|
+
if (e != null && Ae)
|
|
4191
|
+
for (var n of Ae(e))
|
|
4192
|
+
t.indexOf(n) < 0 && dr.call(e, n) && (r[n] = e[n]);
|
|
4158
4193
|
return r;
|
|
4159
4194
|
};
|
|
4160
4195
|
const ce = (e, t) => {
|
|
4161
|
-
const { formats: r } =
|
|
4196
|
+
const { formats: r } = ee();
|
|
4162
4197
|
if (e in r && t in r[e])
|
|
4163
4198
|
return r[e][t];
|
|
4164
4199
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4165
|
-
},
|
|
4200
|
+
}, Ci = Le(
|
|
4166
4201
|
(e) => {
|
|
4167
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4202
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4168
4203
|
if (r == null)
|
|
4169
4204
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4170
4205
|
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4171
4206
|
}
|
|
4172
|
-
),
|
|
4207
|
+
), Ii = Le(
|
|
4173
4208
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4209
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4175
4210
|
if (r == null)
|
|
4176
4211
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4177
4212
|
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4178
4213
|
}
|
|
4179
|
-
),
|
|
4214
|
+
), Li = Le(
|
|
4180
4215
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4216
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4182
4217
|
if (r == null)
|
|
4183
4218
|
throw new Error(
|
|
4184
4219
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4185
4220
|
);
|
|
4186
4221
|
return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4187
4222
|
}
|
|
4188
|
-
),
|
|
4223
|
+
), Mi = (e = {}) => {
|
|
4189
4224
|
var t = e, {
|
|
4190
4225
|
locale: r = j()
|
|
4191
|
-
} = t, n =
|
|
4226
|
+
} = t, n = ie(t, [
|
|
4192
4227
|
"locale"
|
|
4193
4228
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4229
|
+
return Ci(at({ locale: r }, n));
|
|
4230
|
+
}, Ni = (e = {}) => {
|
|
4196
4231
|
var t = e, {
|
|
4197
4232
|
locale: r = j()
|
|
4198
|
-
} = t, n =
|
|
4233
|
+
} = t, n = ie(t, [
|
|
4199
4234
|
"locale"
|
|
4200
4235
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4236
|
+
return Ii(at({ locale: r }, n));
|
|
4237
|
+
}, $i = (e = {}) => {
|
|
4203
4238
|
var t = e, {
|
|
4204
4239
|
locale: r = j()
|
|
4205
|
-
} = t, n =
|
|
4240
|
+
} = t, n = ie(t, [
|
|
4206
4241
|
"locale"
|
|
4207
4242
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4243
|
+
return Li(at({ locale: r }, n));
|
|
4244
|
+
}, Ri = Le(
|
|
4210
4245
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4211
|
-
(e, t = j()) => new
|
|
4212
|
-
ignoreTag:
|
|
4246
|
+
(e, t = j()) => new ar(e, t, ee().formats, {
|
|
4247
|
+
ignoreTag: ee().ignoreTag
|
|
4213
4248
|
})
|
|
4214
|
-
),
|
|
4249
|
+
), Ui = (e, t = {}) => {
|
|
4215
4250
|
var r, n, i, s;
|
|
4216
4251
|
let o = t;
|
|
4217
4252
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4224,39 +4259,39 @@ const ce = (e, t) => {
|
|
|
4224
4259
|
throw new Error(
|
|
4225
4260
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4226
4261
|
);
|
|
4227
|
-
let l =
|
|
4262
|
+
let l = ur(e, h);
|
|
4228
4263
|
if (!l)
|
|
4229
|
-
l = (s = (i = (n = (r =
|
|
4264
|
+
l = (s = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4230
4265
|
else if (typeof l != "string")
|
|
4231
4266
|
return console.warn(
|
|
4232
4267
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4233
4268
|
), l;
|
|
4234
4269
|
if (!a)
|
|
4235
4270
|
return l;
|
|
4236
|
-
let
|
|
4271
|
+
let c = l;
|
|
4237
4272
|
try {
|
|
4238
|
-
|
|
4239
|
-
} catch (
|
|
4240
|
-
|
|
4273
|
+
c = Ri(l, h).format(a);
|
|
4274
|
+
} catch (f) {
|
|
4275
|
+
f instanceof Error && console.warn(
|
|
4241
4276
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4242
|
-
|
|
4277
|
+
f.message
|
|
4243
4278
|
);
|
|
4244
4279
|
}
|
|
4245
|
-
return
|
|
4246
|
-
},
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
window.emWidgets = { topic:
|
|
4252
|
-
const
|
|
4253
|
-
function
|
|
4280
|
+
return c;
|
|
4281
|
+
}, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Ni(t).format(e), Fi = (e, t) => Mi(t).format(e), ji = (e, t = j()) => ur(e, t), ki = ne([V, pe], () => Ui);
|
|
4282
|
+
ne([V], () => Di);
|
|
4283
|
+
ne([V], () => Gi);
|
|
4284
|
+
ne([V], () => Fi);
|
|
4285
|
+
ne([V, pe], () => ji);
|
|
4286
|
+
window.emWidgets = { topic: Jr };
|
|
4287
|
+
const Vi = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4288
|
+
function Xi(e, t) {
|
|
4254
4289
|
if (e) {
|
|
4255
4290
|
const r = document.createElement("style");
|
|
4256
4291
|
r.innerHTML = t, e.appendChild(r);
|
|
4257
4292
|
}
|
|
4258
4293
|
}
|
|
4259
|
-
function
|
|
4294
|
+
function Wi(e, t) {
|
|
4260
4295
|
const r = new URL(t);
|
|
4261
4296
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4262
4297
|
const i = document.createElement("style");
|
|
@@ -4265,7 +4300,7 @@ function ji(e, t) {
|
|
|
4265
4300
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4266
4301
|
});
|
|
4267
4302
|
}
|
|
4268
|
-
function
|
|
4303
|
+
function zi(e, t, r) {
|
|
4269
4304
|
if (window.emMessageBus) {
|
|
4270
4305
|
const n = document.createElement("style");
|
|
4271
4306
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4273,8 +4308,8 @@ function ki(e, t, r) {
|
|
|
4273
4308
|
});
|
|
4274
4309
|
}
|
|
4275
4310
|
}
|
|
4276
|
-
var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}),
|
|
4277
|
-
const
|
|
4311
|
+
var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}), mr = /* @__PURE__ */ ((e) => (e.Showed = "Showed", e.Hiden = "Hiden", e))(mr || {});
|
|
4312
|
+
const It = {
|
|
4278
4313
|
en: {
|
|
4279
4314
|
mysteryChest: "Mystery Chest",
|
|
4280
4315
|
luckyWheel: "LuckyWheel",
|
|
@@ -4282,25 +4317,25 @@ const At = {
|
|
|
4282
4317
|
flipCoin: "Flip Coin"
|
|
4283
4318
|
}
|
|
4284
4319
|
};
|
|
4285
|
-
function
|
|
4286
|
-
|
|
4320
|
+
function Lt(e, t) {
|
|
4321
|
+
lr(e, t);
|
|
4287
4322
|
}
|
|
4288
|
-
function
|
|
4289
|
-
|
|
4323
|
+
function Zi(e) {
|
|
4324
|
+
Ei({
|
|
4290
4325
|
fallbackLocale: "en"
|
|
4291
4326
|
}), V.set(e);
|
|
4292
4327
|
}
|
|
4293
|
-
function
|
|
4294
|
-
|
|
4328
|
+
function Qi(e) {
|
|
4329
|
+
gr(e, "svelte-dp9rm6", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.container{padding:0 16.5%}.container.mobile{padding:0 28px}.container.mobile .header{padding:16px 0 13px}.container.mobile .header .slider__container{gap:16px;justify-content:space-between;padding:0 24px}.container.mobile .header .slider__container__tab{font-size:var(--emw--font-size-2x-small, 10px)}.header{background:linear-gradient(89.94deg, var(--emw--color-background, #003e5c) 0.05%, var(--emw--color-background-secondary, #113b21) 87.69%);padding:23px 0 17px;border-radius:12px}.header .slider__container{display:flex;position:relative;gap:60px;justify-content:center}.header .slider__tab{padding:8px 0 13px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.header .slider__tab.active{color:var(--emw--color-typography, #fff);border-bottom:2px solid var(--emw--button-border-color, #00b74f);margin-bottom:-2px}");
|
|
4295
4330
|
}
|
|
4296
|
-
function
|
|
4331
|
+
function qi(e) {
|
|
4297
4332
|
let t;
|
|
4298
4333
|
return {
|
|
4299
4334
|
c() {
|
|
4300
4335
|
t = C("div"), t.textContent = "Comming soon";
|
|
4301
4336
|
},
|
|
4302
4337
|
m(r, n) {
|
|
4303
|
-
|
|
4338
|
+
re(r, t, n);
|
|
4304
4339
|
},
|
|
4305
4340
|
p: I,
|
|
4306
4341
|
d(r) {
|
|
@@ -4308,14 +4343,14 @@ function Wi(e) {
|
|
|
4308
4343
|
}
|
|
4309
4344
|
};
|
|
4310
4345
|
}
|
|
4311
|
-
function
|
|
4346
|
+
function Ji(e) {
|
|
4312
4347
|
let t;
|
|
4313
4348
|
return {
|
|
4314
4349
|
c() {
|
|
4315
4350
|
t = C("div"), t.textContent = "Comming soon";
|
|
4316
4351
|
},
|
|
4317
4352
|
m(r, n) {
|
|
4318
|
-
|
|
4353
|
+
re(r, t, n);
|
|
4319
4354
|
},
|
|
4320
4355
|
p: I,
|
|
4321
4356
|
d(r) {
|
|
@@ -4323,14 +4358,14 @@ function zi(e) {
|
|
|
4323
4358
|
}
|
|
4324
4359
|
};
|
|
4325
4360
|
}
|
|
4326
|
-
function
|
|
4361
|
+
function Yi(e) {
|
|
4327
4362
|
let t;
|
|
4328
4363
|
return {
|
|
4329
4364
|
c() {
|
|
4330
4365
|
t = C("div"), t.textContent = "Comming soon";
|
|
4331
4366
|
},
|
|
4332
4367
|
m(r, n) {
|
|
4333
|
-
|
|
4368
|
+
re(r, t, n);
|
|
4334
4369
|
},
|
|
4335
4370
|
p: I,
|
|
4336
4371
|
d(r) {
|
|
@@ -4338,7 +4373,7 @@ function Zi(e) {
|
|
|
4338
4373
|
}
|
|
4339
4374
|
};
|
|
4340
4375
|
}
|
|
4341
|
-
function
|
|
4376
|
+
function Ki(e) {
|
|
4342
4377
|
let t;
|
|
4343
4378
|
return {
|
|
4344
4379
|
c() {
|
|
@@ -4362,7 +4397,7 @@ function Qi(e) {
|
|
|
4362
4397
|
"clientstylingurl",
|
|
4363
4398
|
/*clientstylingurl*/
|
|
4364
4399
|
e[0]
|
|
4365
|
-
), $(t, "gameoverlay",
|
|
4400
|
+
), $(t, "gameoverlay", mr.Hiden), $(t, "openedbydefauls", !0), $(
|
|
4366
4401
|
t,
|
|
4367
4402
|
"clientstyling",
|
|
4368
4403
|
/*mysteryChestDrawerStyles*/
|
|
@@ -4370,7 +4405,7 @@ function Qi(e) {
|
|
|
4370
4405
|
);
|
|
4371
4406
|
},
|
|
4372
4407
|
m(r, n) {
|
|
4373
|
-
|
|
4408
|
+
re(r, t, n);
|
|
4374
4409
|
},
|
|
4375
4410
|
p(r, n) {
|
|
4376
4411
|
n & /*endpoint*/
|
|
@@ -4404,70 +4439,70 @@ function Qi(e) {
|
|
|
4404
4439
|
}
|
|
4405
4440
|
};
|
|
4406
4441
|
}
|
|
4407
|
-
function
|
|
4442
|
+
function es(e) {
|
|
4408
4443
|
let t, r, n, i, s, o = (
|
|
4409
4444
|
/*$_*/
|
|
4410
4445
|
e[7]("mysteryChest") + ""
|
|
4411
4446
|
), a, h, u, l = (
|
|
4412
4447
|
/*$_*/
|
|
4413
4448
|
e[7]("flipCoin") + ""
|
|
4414
|
-
),
|
|
4449
|
+
), c, f, p, y = (
|
|
4415
4450
|
/*$_*/
|
|
4416
4451
|
e[7]("luckyWheel") + ""
|
|
4417
|
-
), g,
|
|
4452
|
+
), g, B, w, L = (
|
|
4418
4453
|
/*$_*/
|
|
4419
4454
|
e[7]("dices") + ""
|
|
4420
|
-
),
|
|
4421
|
-
function
|
|
4455
|
+
), T, m, S, N, se;
|
|
4456
|
+
function ut(E, M) {
|
|
4422
4457
|
if (
|
|
4423
4458
|
/*activeTab*/
|
|
4424
4459
|
E[6] === x.MysteryChests
|
|
4425
4460
|
)
|
|
4426
|
-
return
|
|
4461
|
+
return Ki;
|
|
4427
4462
|
if (
|
|
4428
4463
|
/*activeTab*/
|
|
4429
4464
|
E[6] === x.LuckyWheels
|
|
4430
4465
|
)
|
|
4431
|
-
return
|
|
4466
|
+
return Yi;
|
|
4432
4467
|
if (
|
|
4433
4468
|
/*activeTab*/
|
|
4434
4469
|
E[6] === x.FlipCoin
|
|
4435
4470
|
)
|
|
4436
|
-
return
|
|
4471
|
+
return Ji;
|
|
4437
4472
|
if (
|
|
4438
4473
|
/*activeTab*/
|
|
4439
4474
|
E[6] === x.Dices
|
|
4440
4475
|
)
|
|
4441
|
-
return
|
|
4476
|
+
return qi;
|
|
4442
4477
|
}
|
|
4443
|
-
let X =
|
|
4478
|
+
let X = ut(e), P = X && X(e);
|
|
4444
4479
|
return {
|
|
4445
4480
|
c() {
|
|
4446
|
-
t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = Q(o), h = be(), u = C("button"),
|
|
4481
|
+
t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = Q(o), h = be(), u = C("button"), c = Q(l), f = be(), p = C("button"), g = Q(y), B = be(), w = C("button"), T = Q(L), m = be(), P && P.c(), O(s, "data-index", x.MysteryChests), O(s, "class", "slider__tab"), G(
|
|
4447
4482
|
s,
|
|
4448
4483
|
"active",
|
|
4449
4484
|
/*activeTab*/
|
|
4450
4485
|
e[6] === x.MysteryChests
|
|
4451
|
-
),
|
|
4486
|
+
), O(u, "data-index", x.FlipCoin), O(u, "class", "slider__tab"), G(
|
|
4452
4487
|
u,
|
|
4453
4488
|
"active",
|
|
4454
4489
|
/*activeTab*/
|
|
4455
4490
|
e[6] === x.FlipCoin
|
|
4456
|
-
),
|
|
4457
|
-
|
|
4491
|
+
), O(p, "data-index", x.LuckyWheels), O(p, "class", "slider__tab"), G(
|
|
4492
|
+
p,
|
|
4458
4493
|
"active",
|
|
4459
4494
|
/*activeTab*/
|
|
4460
4495
|
e[6] === x.LuckyWheels
|
|
4461
|
-
),
|
|
4462
|
-
|
|
4496
|
+
), O(w, "data-index", x.Dices), O(w, "class", "slider__tab"), G(
|
|
4497
|
+
w,
|
|
4463
4498
|
"active",
|
|
4464
4499
|
/*activeTab*/
|
|
4465
4500
|
e[6] === x.Dices
|
|
4466
|
-
),
|
|
4501
|
+
), O(i, "class", "slider__container"), O(n, "class", "slider"), O(r, "class", "header"), O(t, "class", S = "container " + /*mobileView*/
|
|
4467
4502
|
(e[5] ? "mobile" : ""));
|
|
4468
4503
|
},
|
|
4469
4504
|
m(E, M) {
|
|
4470
|
-
|
|
4505
|
+
re(E, t, M), H(t, r), H(r, n), H(n, i), H(i, s), H(s, a), H(i, h), H(i, u), H(u, c), H(i, f), H(i, p), H(p, g), H(i, B), H(i, w), H(w, T), H(t, m), P && P.m(t, null), e[13](t), N || (se = [
|
|
4471
4506
|
ye(
|
|
4472
4507
|
s,
|
|
4473
4508
|
"click",
|
|
@@ -4481,13 +4516,13 @@ function qi(e) {
|
|
|
4481
4516
|
e[9]
|
|
4482
4517
|
),
|
|
4483
4518
|
ye(
|
|
4484
|
-
|
|
4519
|
+
p,
|
|
4485
4520
|
"click",
|
|
4486
4521
|
/*handleTabChange*/
|
|
4487
4522
|
e[9]
|
|
4488
4523
|
),
|
|
4489
4524
|
ye(
|
|
4490
|
-
|
|
4525
|
+
w,
|
|
4491
4526
|
"click",
|
|
4492
4527
|
/*handleTabChange*/
|
|
4493
4528
|
e[9]
|
|
@@ -4505,7 +4540,7 @@ function qi(e) {
|
|
|
4505
4540
|
E[6] === x.MysteryChests
|
|
4506
4541
|
), M & /*$_*/
|
|
4507
4542
|
128 && l !== (l = /*$_*/
|
|
4508
|
-
E[7]("flipCoin") + "") && ge(
|
|
4543
|
+
E[7]("flipCoin") + "") && ge(c, l), M & /*activeTab*/
|
|
4509
4544
|
64 && G(
|
|
4510
4545
|
u,
|
|
4511
4546
|
"active",
|
|
@@ -4515,87 +4550,87 @@ function qi(e) {
|
|
|
4515
4550
|
128 && y !== (y = /*$_*/
|
|
4516
4551
|
E[7]("luckyWheel") + "") && ge(g, y), M & /*activeTab*/
|
|
4517
4552
|
64 && G(
|
|
4518
|
-
|
|
4553
|
+
p,
|
|
4519
4554
|
"active",
|
|
4520
4555
|
/*activeTab*/
|
|
4521
4556
|
E[6] === x.LuckyWheels
|
|
4522
4557
|
), M & /*$_*/
|
|
4523
4558
|
128 && L !== (L = /*$_*/
|
|
4524
|
-
E[7]("dices") + "") && ge(
|
|
4559
|
+
E[7]("dices") + "") && ge(T, L), M & /*activeTab*/
|
|
4525
4560
|
64 && G(
|
|
4526
|
-
|
|
4561
|
+
w,
|
|
4527
4562
|
"active",
|
|
4528
4563
|
/*activeTab*/
|
|
4529
4564
|
E[6] === x.Dices
|
|
4530
|
-
), X === (X =
|
|
4565
|
+
), X === (X = ut(E)) && P ? P.p(E, M) : (P && P.d(1), P = X && X(E), P && (P.c(), P.m(t, null))), M & /*mobileView*/
|
|
4531
4566
|
32 && S !== (S = "container " + /*mobileView*/
|
|
4532
|
-
(E[5] ? "mobile" : "")) &&
|
|
4567
|
+
(E[5] ? "mobile" : "")) && O(t, "class", S);
|
|
4533
4568
|
},
|
|
4534
4569
|
i: I,
|
|
4535
4570
|
o: I,
|
|
4536
4571
|
d(E) {
|
|
4537
|
-
E && k(t), P && P.d(), e[13](null), N = !1,
|
|
4572
|
+
E && k(t), P && P.d(), e[13](null), N = !1, te(se);
|
|
4538
4573
|
}
|
|
4539
4574
|
};
|
|
4540
4575
|
}
|
|
4541
|
-
function
|
|
4576
|
+
function ts(e, t, r) {
|
|
4542
4577
|
let n;
|
|
4543
|
-
|
|
4544
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t,
|
|
4545
|
-
const g = ".overlay { display: none; } .drawer { position: unset; transform: none; background: transparent; width: initial; height: initial; padding: 0; border-radius: 0; } .chests-header,.close,.chest-header__title { display: none } .mobile.drawer { padding: 0 } .back { height: 40px; width: 40px;} .chest-header {padding: 20px 0 0}",
|
|
4578
|
+
yr(e, ki, (m) => r(7, n = m));
|
|
4579
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t, c = !0, f = window.navigator.userAgent, p, y = x.MysteryChests;
|
|
4580
|
+
const g = ".overlay { display: none; } .drawer { position: unset; transform: none; background: transparent; width: initial; height: initial; padding: 0; border-radius: 0; } .chests-header,.close,.chest-header__title { display: none } .mobile.drawer { padding: 0 } .back { height: 40px; width: 40px;} .chest-header {padding: 20px 0 0}", B = async (m) => {
|
|
4546
4581
|
r(6, y = m.target.getAttribute("data-index")), y === x.MysteryChests && window.postMessage({ type: "OpenMysteryChestDrawer" });
|
|
4547
|
-
},
|
|
4548
|
-
|
|
4582
|
+
}, w = () => {
|
|
4583
|
+
Zi(l);
|
|
4549
4584
|
}, L = () => {
|
|
4550
4585
|
fetch(o).then((S) => S.json()).then((S) => {
|
|
4551
4586
|
Object.keys(S).forEach((N) => {
|
|
4552
|
-
|
|
4587
|
+
Lt(N, S[N]);
|
|
4553
4588
|
});
|
|
4554
4589
|
});
|
|
4555
4590
|
};
|
|
4556
|
-
Object.keys(
|
|
4557
|
-
|
|
4558
|
-
}),
|
|
4591
|
+
Object.keys(It).forEach((m) => {
|
|
4592
|
+
Lt(m, It[m]);
|
|
4593
|
+
}), wr(() => (r(5, c = Vi(f)), () => {
|
|
4559
4594
|
}));
|
|
4560
|
-
function
|
|
4561
|
-
|
|
4562
|
-
|
|
4595
|
+
function T(m) {
|
|
4596
|
+
je[m ? "unshift" : "push"](() => {
|
|
4597
|
+
p = m, r(4, p);
|
|
4563
4598
|
});
|
|
4564
4599
|
}
|
|
4565
4600
|
return e.$$set = (m) => {
|
|
4566
4601
|
"clientstyling" in m && r(10, i = m.clientstyling), "clientstylingurl" in m && r(0, s = m.clientstylingurl), "translationurl" in m && r(11, o = m.translationurl), "mbsource" in m && r(12, a = m.mbsource), "endpoint" in m && r(1, h = m.endpoint), "session" in m && r(2, u = m.session), "lang" in m && r(3, l = m.lang);
|
|
4567
4602
|
}, e.$$.update = () => {
|
|
4568
4603
|
e.$$.dirty & /*lang*/
|
|
4569
|
-
8 && l &&
|
|
4604
|
+
8 && l && w(), e.$$.dirty & /*translationurl*/
|
|
4570
4605
|
2048 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4571
|
-
1040 && i &&
|
|
4572
|
-
17 && s &&
|
|
4573
|
-
4112 && a &&
|
|
4606
|
+
1040 && i && p && Xi(p, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4607
|
+
17 && s && p && Wi(p, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4608
|
+
4112 && a && p && zi(p, `${a}.Style`);
|
|
4574
4609
|
}, [
|
|
4575
4610
|
s,
|
|
4576
4611
|
h,
|
|
4577
4612
|
u,
|
|
4578
4613
|
l,
|
|
4579
|
-
|
|
4580
|
-
|
|
4614
|
+
p,
|
|
4615
|
+
c,
|
|
4581
4616
|
y,
|
|
4582
4617
|
n,
|
|
4583
4618
|
g,
|
|
4584
|
-
|
|
4619
|
+
B,
|
|
4585
4620
|
i,
|
|
4586
4621
|
o,
|
|
4587
4622
|
a,
|
|
4588
|
-
|
|
4623
|
+
T
|
|
4589
4624
|
];
|
|
4590
4625
|
}
|
|
4591
|
-
class
|
|
4626
|
+
class rs extends $r {
|
|
4592
4627
|
constructor(t) {
|
|
4593
|
-
super(),
|
|
4628
|
+
super(), Mr(
|
|
4594
4629
|
this,
|
|
4595
4630
|
t,
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4631
|
+
ts,
|
|
4632
|
+
es,
|
|
4633
|
+
Nt,
|
|
4599
4634
|
{
|
|
4600
4635
|
clientstyling: 10,
|
|
4601
4636
|
clientstylingurl: 0,
|
|
@@ -4605,86 +4640,86 @@ class Yi extends Ir {
|
|
|
4605
4640
|
session: 2,
|
|
4606
4641
|
lang: 3
|
|
4607
4642
|
},
|
|
4608
|
-
|
|
4643
|
+
Qi
|
|
4609
4644
|
);
|
|
4610
4645
|
}
|
|
4611
4646
|
get clientstyling() {
|
|
4612
4647
|
return this.$$.ctx[10];
|
|
4613
4648
|
}
|
|
4614
4649
|
set clientstyling(t) {
|
|
4615
|
-
this.$$set({ clientstyling: t }),
|
|
4650
|
+
this.$$set({ clientstyling: t }), U();
|
|
4616
4651
|
}
|
|
4617
4652
|
get clientstylingurl() {
|
|
4618
4653
|
return this.$$.ctx[0];
|
|
4619
4654
|
}
|
|
4620
4655
|
set clientstylingurl(t) {
|
|
4621
|
-
this.$$set({ clientstylingurl: t }),
|
|
4656
|
+
this.$$set({ clientstylingurl: t }), U();
|
|
4622
4657
|
}
|
|
4623
4658
|
get translationurl() {
|
|
4624
4659
|
return this.$$.ctx[11];
|
|
4625
4660
|
}
|
|
4626
4661
|
set translationurl(t) {
|
|
4627
|
-
this.$$set({ translationurl: t }),
|
|
4662
|
+
this.$$set({ translationurl: t }), U();
|
|
4628
4663
|
}
|
|
4629
4664
|
get mbsource() {
|
|
4630
4665
|
return this.$$.ctx[12];
|
|
4631
4666
|
}
|
|
4632
4667
|
set mbsource(t) {
|
|
4633
|
-
this.$$set({ mbsource: t }),
|
|
4668
|
+
this.$$set({ mbsource: t }), U();
|
|
4634
4669
|
}
|
|
4635
4670
|
get endpoint() {
|
|
4636
4671
|
return this.$$.ctx[1];
|
|
4637
4672
|
}
|
|
4638
4673
|
set endpoint(t) {
|
|
4639
|
-
this.$$set({ endpoint: t }),
|
|
4674
|
+
this.$$set({ endpoint: t }), U();
|
|
4640
4675
|
}
|
|
4641
4676
|
get session() {
|
|
4642
4677
|
return this.$$.ctx[2];
|
|
4643
4678
|
}
|
|
4644
4679
|
set session(t) {
|
|
4645
|
-
this.$$set({ session: t }),
|
|
4680
|
+
this.$$set({ session: t }), U();
|
|
4646
4681
|
}
|
|
4647
4682
|
get lang() {
|
|
4648
4683
|
return this.$$.ctx[3];
|
|
4649
4684
|
}
|
|
4650
4685
|
set lang(t) {
|
|
4651
|
-
this.$$set({ lang: t }),
|
|
4686
|
+
this.$$set({ lang: t }), U();
|
|
4652
4687
|
}
|
|
4653
4688
|
}
|
|
4654
|
-
|
|
4689
|
+
Nr(rs, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, endpoint: {}, session: {}, lang: {} }, [], [], !0);
|
|
4655
4690
|
export {
|
|
4656
4691
|
V as $,
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4692
|
+
os as A,
|
|
4693
|
+
is as B,
|
|
4694
|
+
Xi as C,
|
|
4695
|
+
Wi as D,
|
|
4696
|
+
zi as E,
|
|
4697
|
+
rs as F,
|
|
4698
|
+
$r as S,
|
|
4699
|
+
gr as a,
|
|
4700
|
+
re as b,
|
|
4701
|
+
Nr as c,
|
|
4702
|
+
k as d,
|
|
4703
|
+
be as e,
|
|
4704
|
+
U as f,
|
|
4705
|
+
ss as g,
|
|
4706
|
+
Vi as h,
|
|
4707
|
+
Mr as i,
|
|
4708
|
+
$ as j,
|
|
4709
|
+
C as k,
|
|
4710
|
+
O as l,
|
|
4711
|
+
H as m,
|
|
4677
4712
|
I as n,
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4713
|
+
wr as o,
|
|
4714
|
+
ye as p,
|
|
4715
|
+
ns as q,
|
|
4716
|
+
lr as r,
|
|
4717
|
+
Nt as s,
|
|
4718
|
+
te as t,
|
|
4684
4719
|
ge as u,
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4720
|
+
Q as v,
|
|
4721
|
+
yr as w,
|
|
4722
|
+
je as x,
|
|
4723
|
+
ki as y,
|
|
4689
4724
|
G as z
|
|
4690
4725
|
};
|