@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,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Sr = Object.defineProperty, wr = Object.defineProperties;
|
|
2
|
+
var Tr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ft = Object.getOwnPropertySymbols;
|
|
4
|
+
var Hr = Object.prototype.hasOwnProperty, Or = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ne = (e, t, r) => t in e ? Sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Hr.call(t, r) && Ne(e, r, t[r]);
|
|
8
|
+
if (ft)
|
|
9
|
+
for (var r of ft(t))
|
|
10
|
+
Or.call(t, r) && Ne(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, dt = (e, t) => wr(e, Tr(t));
|
|
13
|
+
var N = (e, t, r) => (Ne(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var $e = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,29 +29,29 @@ var Me = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Gt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function mt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function re(e) {
|
|
39
|
+
e.forEach(Gt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ut(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ft(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let be;
|
|
48
|
-
function
|
|
48
|
+
function ms(e, t) {
|
|
49
49
|
return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Ar(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function jt(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function Ut(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Br(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(jt(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function H(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function Pr(e, t, r) {
|
|
70
|
+
const n = Cr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = C("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, Ir(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Cr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,20 +83,20 @@ function Br(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Ir(e, t) {
|
|
87
|
+
return H(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ne(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
96
|
function V(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function bs(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
@@ -109,20 +109,20 @@ function q(e) {
|
|
|
109
109
|
function ye() {
|
|
110
110
|
return q(" ");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ys() {
|
|
113
113
|
return q("");
|
|
114
114
|
}
|
|
115
115
|
function ge(e, t, r, n) {
|
|
116
116
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function O(e, t, r) {
|
|
119
119
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
120
120
|
}
|
|
121
121
|
function R(e, t, r) {
|
|
122
122
|
const n = t.toLowerCase();
|
|
123
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
123
|
+
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);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Lr(e) {
|
|
126
126
|
return Array.from(e.childNodes);
|
|
127
127
|
}
|
|
128
128
|
function ve(e, t) {
|
|
@@ -132,7 +132,7 @@ function ve(e, t) {
|
|
|
132
132
|
function F(e, t, r) {
|
|
133
133
|
e.classList.toggle(t, !!r);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Mr(e) {
|
|
136
136
|
const t = {};
|
|
137
137
|
return e.childNodes.forEach(
|
|
138
138
|
/** @param {Element} node */
|
|
@@ -141,90 +141,90 @@ function Pr(e) {
|
|
|
141
141
|
}
|
|
142
142
|
), t;
|
|
143
143
|
}
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
144
|
+
let le;
|
|
145
|
+
function he(e) {
|
|
146
|
+
le = e;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
if (!
|
|
148
|
+
function Nr() {
|
|
149
|
+
if (!le)
|
|
150
150
|
throw new Error("Function called outside component initialization");
|
|
151
|
-
return
|
|
151
|
+
return le;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
153
|
+
function $r(e) {
|
|
154
|
+
Nr().$$.on_mount.push(e);
|
|
155
155
|
}
|
|
156
|
-
const Q = [],
|
|
156
|
+
const Q = [], Xe = [];
|
|
157
157
|
let J = [];
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
|
|
158
|
+
const bt = [], Rr = /* @__PURE__ */ Promise.resolve();
|
|
159
|
+
let We = !1;
|
|
160
|
+
function Ur() {
|
|
161
|
+
We || (We = !0, Rr.then(D));
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function ze(e) {
|
|
164
164
|
J.push(e);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const Re = /* @__PURE__ */ new Set();
|
|
167
167
|
let z = 0;
|
|
168
|
-
function
|
|
168
|
+
function D() {
|
|
169
169
|
if (z !== 0)
|
|
170
170
|
return;
|
|
171
|
-
const e =
|
|
171
|
+
const e = le;
|
|
172
172
|
do {
|
|
173
173
|
try {
|
|
174
174
|
for (; z < Q.length; ) {
|
|
175
175
|
const t = Q[z];
|
|
176
|
-
z++,
|
|
176
|
+
z++, he(t), Dr(t.$$);
|
|
177
177
|
}
|
|
178
178
|
} catch (t) {
|
|
179
179
|
throw Q.length = 0, z = 0, t;
|
|
180
180
|
}
|
|
181
|
-
for (
|
|
182
|
-
|
|
181
|
+
for (he(null), Q.length = 0, z = 0; Xe.length; )
|
|
182
|
+
Xe.pop()();
|
|
183
183
|
for (let t = 0; t < J.length; t += 1) {
|
|
184
184
|
const r = J[t];
|
|
185
|
-
|
|
185
|
+
Re.has(r) || (Re.add(r), r());
|
|
186
186
|
}
|
|
187
187
|
J.length = 0;
|
|
188
188
|
} while (Q.length);
|
|
189
|
-
for (;
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
for (; bt.length; )
|
|
190
|
+
bt.pop()();
|
|
191
|
+
We = !1, Re.clear(), he(e);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Dr(e) {
|
|
194
194
|
if (e.fragment !== null) {
|
|
195
|
-
e.update(),
|
|
195
|
+
e.update(), re(e.before_update);
|
|
196
196
|
const t = e.dirty;
|
|
197
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
197
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ze);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Gr(e) {
|
|
201
201
|
const t = [], r = [];
|
|
202
202
|
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
|
203
203
|
}
|
|
204
|
-
const
|
|
205
|
-
function
|
|
206
|
-
e && e.i && (
|
|
204
|
+
const Fr = /* @__PURE__ */ new Set();
|
|
205
|
+
function jr(e, t) {
|
|
206
|
+
e && e.i && (Fr.delete(e), e.i(t));
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function gs(e) {
|
|
209
209
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function kr(e, t, r) {
|
|
212
212
|
const { fragment: n, after_update: i } = e.$$;
|
|
213
|
-
n && n.m(t, r),
|
|
214
|
-
const s = e.$$.on_mount.map(
|
|
215
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
216
|
-
}), i.forEach(
|
|
213
|
+
n && n.m(t, r), ze(() => {
|
|
214
|
+
const s = e.$$.on_mount.map(Gt).filter(ut);
|
|
215
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
216
|
+
}), i.forEach(ze);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Vr(e, t) {
|
|
219
219
|
const r = e.$$;
|
|
220
|
-
r.fragment !== null && (
|
|
220
|
+
r.fragment !== null && (Gr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
222
|
+
function Xr(e, t) {
|
|
223
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
const h =
|
|
227
|
-
|
|
225
|
+
function Wr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
226
|
+
const h = le;
|
|
227
|
+
he(e);
|
|
228
228
|
const u = e.$$ = {
|
|
229
229
|
fragment: null,
|
|
230
230
|
ctx: [],
|
|
@@ -232,7 +232,7 @@ function jr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
232
232
|
props: s,
|
|
233
233
|
update: I,
|
|
234
234
|
not_equal: i,
|
|
235
|
-
bound:
|
|
235
|
+
bound: mt(),
|
|
236
236
|
// lifecycle
|
|
237
237
|
on_mount: [],
|
|
238
238
|
on_destroy: [],
|
|
@@ -241,28 +241,28 @@ function jr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
241
241
|
after_update: [],
|
|
242
242
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
243
243
|
// everything else
|
|
244
|
-
callbacks:
|
|
244
|
+
callbacks: mt(),
|
|
245
245
|
dirty: a,
|
|
246
246
|
skip_bound: !1,
|
|
247
247
|
root: t.target || h.$$.root
|
|
248
248
|
};
|
|
249
249
|
o && o(u.root);
|
|
250
250
|
let l = !1;
|
|
251
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
252
|
-
const y =
|
|
253
|
-
return u.ctx && i(u.ctx[
|
|
254
|
-
}) : [], u.update(), l = !0,
|
|
251
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
252
|
+
const y = p.length ? p[0] : f;
|
|
253
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Xr(e, c)), f;
|
|
254
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
255
255
|
if (t.hydrate) {
|
|
256
|
-
const
|
|
257
|
-
u.fragment && u.fragment.l(
|
|
256
|
+
const c = Lr(t.target);
|
|
257
|
+
u.fragment && u.fragment.l(c), c.forEach(V);
|
|
258
258
|
} else
|
|
259
259
|
u.fragment && u.fragment.c();
|
|
260
|
-
t.intro &&
|
|
260
|
+
t.intro && jr(e.$$.fragment), kr(e, t.target, t.anchor), D();
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
he(h);
|
|
263
263
|
}
|
|
264
|
-
let
|
|
265
|
-
typeof HTMLElement == "function" && (
|
|
264
|
+
let kt;
|
|
265
|
+
typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
266
266
|
constructor(t, r, n) {
|
|
267
267
|
super();
|
|
268
268
|
/** The Svelte component constructor */
|
|
@@ -299,21 +299,21 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
connectedCallback() {
|
|
302
|
-
return
|
|
302
|
+
return $e(this, null, function* () {
|
|
303
303
|
if (this.$$cn = !0, !this.$$c) {
|
|
304
304
|
let t = function(s) {
|
|
305
305
|
return () => {
|
|
306
306
|
let o;
|
|
307
307
|
return {
|
|
308
308
|
c: function() {
|
|
309
|
-
o = C("slot"), s !== "default" &&
|
|
309
|
+
o = C("slot"), s !== "default" && O(o, "name", s);
|
|
310
310
|
},
|
|
311
311
|
/**
|
|
312
312
|
* @param {HTMLElement} target
|
|
313
313
|
* @param {HTMLElement} [anchor]
|
|
314
314
|
*/
|
|
315
315
|
m: function(u, l) {
|
|
316
|
-
|
|
316
|
+
ne(u, o, l);
|
|
317
317
|
},
|
|
318
318
|
d: function(u) {
|
|
319
319
|
u && V(o);
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
|
323
323
|
};
|
|
324
324
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
325
325
|
return;
|
|
326
|
-
const r = {}, n =
|
|
326
|
+
const r = {}, n = Mr(this);
|
|
327
327
|
for (const s of this.$$s)
|
|
328
328
|
s in n && (r[s] = [t(s)]);
|
|
329
329
|
for (const s of this.attributes) {
|
|
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
|
334
334
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
335
335
|
this.$$c = new this.$$ctor({
|
|
336
336
|
target: this.shadowRoot || this,
|
|
337
|
-
props:
|
|
337
|
+
props: dt(pt({}, this.$$d), {
|
|
338
338
|
$$slots: r,
|
|
339
339
|
$$scope: {
|
|
340
340
|
ctx: []
|
|
@@ -412,8 +412,8 @@ function xe(e, t, r, n) {
|
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
let o = class extends
|
|
415
|
+
function zr(e, t, r, n, i, s) {
|
|
416
|
+
let o = class extends kt {
|
|
417
417
|
constructor() {
|
|
418
418
|
super(e, r, i), this.$$p_d = t;
|
|
419
419
|
}
|
|
@@ -443,7 +443,7 @@ function kr(e, t, r, n, i, s) {
|
|
|
443
443
|
}), e.element = /** @type {any} */
|
|
444
444
|
o, o;
|
|
445
445
|
}
|
|
446
|
-
class
|
|
446
|
+
class Zr {
|
|
447
447
|
constructor() {
|
|
448
448
|
/**
|
|
449
449
|
* ### PRIVATE API
|
|
@@ -464,7 +464,7 @@ class Vr {
|
|
|
464
464
|
}
|
|
465
465
|
/** @returns {void} */
|
|
466
466
|
$destroy() {
|
|
467
|
-
|
|
467
|
+
Vr(this, 1), this.$destroy = I;
|
|
468
468
|
}
|
|
469
469
|
/**
|
|
470
470
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -473,7 +473,7 @@ class Vr {
|
|
|
473
473
|
* @returns {() => void}
|
|
474
474
|
*/
|
|
475
475
|
$on(t, r) {
|
|
476
|
-
if (!
|
|
476
|
+
if (!ut(r))
|
|
477
477
|
return I;
|
|
478
478
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
479
479
|
return n.push(r), () => {
|
|
@@ -486,11 +486,11 @@ class Vr {
|
|
|
486
486
|
* @returns {void}
|
|
487
487
|
*/
|
|
488
488
|
$set(t) {
|
|
489
|
-
this.$$set && !
|
|
489
|
+
this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
const
|
|
493
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
492
|
+
const Qr = "4";
|
|
493
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qr);
|
|
494
494
|
if (typeof window != "undefined") {
|
|
495
495
|
let e = function(t) {
|
|
496
496
|
return function(...r) {
|
|
@@ -503,7 +503,7 @@ if (typeof window != "undefined") {
|
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
505
|
};
|
|
506
|
-
customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-
|
|
506
|
+
customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-wxjkuWy1.js").then(({ default: t }) => {
|
|
507
507
|
!customElements.get("casino-mystery-chest-container") && customElements.define("casino-mystery-chest-container", t.element);
|
|
508
508
|
});
|
|
509
509
|
}
|
|
@@ -521,43 +521,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
521
521
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
522
522
|
PERFORMANCE OF THIS SOFTWARE.
|
|
523
523
|
***************************************************************************** */
|
|
524
|
-
var
|
|
525
|
-
return
|
|
524
|
+
var Ze = function(e, t) {
|
|
525
|
+
return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
526
526
|
r.__proto__ = n;
|
|
527
527
|
} || function(r, n) {
|
|
528
528
|
for (var i in n)
|
|
529
529
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
530
|
-
},
|
|
530
|
+
}, Ze(e, t);
|
|
531
531
|
};
|
|
532
|
-
function
|
|
532
|
+
function pe(e, t) {
|
|
533
533
|
if (typeof t != "function" && t !== null)
|
|
534
534
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
535
|
-
|
|
535
|
+
Ze(e, t);
|
|
536
536
|
function r() {
|
|
537
537
|
this.constructor = e;
|
|
538
538
|
}
|
|
539
539
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
540
540
|
}
|
|
541
|
-
|
|
542
|
-
return v = Object.assign || function(t) {
|
|
543
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
544
|
-
r = arguments[n];
|
|
545
|
-
for (var s in r)
|
|
546
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
547
|
-
}
|
|
548
|
-
return t;
|
|
549
|
-
}, v.apply(this, arguments);
|
|
550
|
-
};
|
|
551
|
-
function Wr(e, t) {
|
|
552
|
-
var r = {};
|
|
553
|
-
for (var n in e)
|
|
554
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
555
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
556
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
557
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
558
|
-
return r;
|
|
559
|
-
}
|
|
560
|
-
function We(e) {
|
|
541
|
+
function Qe(e) {
|
|
561
542
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
562
543
|
if (r)
|
|
563
544
|
return r.call(e);
|
|
@@ -569,7 +550,7 @@ function We(e) {
|
|
|
569
550
|
};
|
|
570
551
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
571
552
|
}
|
|
572
|
-
function
|
|
553
|
+
function qe(e, t) {
|
|
573
554
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
574
555
|
if (!r)
|
|
575
556
|
return e;
|
|
@@ -589,22 +570,22 @@ function ze(e, t) {
|
|
|
589
570
|
}
|
|
590
571
|
return s;
|
|
591
572
|
}
|
|
592
|
-
function
|
|
593
|
-
if (
|
|
573
|
+
function Je(e, t, r) {
|
|
574
|
+
if (arguments.length === 2)
|
|
594
575
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
595
576
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
596
577
|
return e.concat(s || t);
|
|
597
578
|
}
|
|
598
|
-
function
|
|
579
|
+
function G(e) {
|
|
599
580
|
return typeof e == "function";
|
|
600
581
|
}
|
|
601
|
-
function
|
|
582
|
+
function Vt(e) {
|
|
602
583
|
var t = function(n) {
|
|
603
584
|
Error.call(n), n.stack = new Error().stack;
|
|
604
585
|
}, r = e(t);
|
|
605
586
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
606
587
|
}
|
|
607
|
-
var
|
|
588
|
+
var Ue = Vt(function(e) {
|
|
608
589
|
return function(r) {
|
|
609
590
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
610
591
|
` + r.map(function(n, i) {
|
|
@@ -613,13 +594,13 @@ var $e = Gt(function(e) {
|
|
|
613
594
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
614
595
|
};
|
|
615
596
|
});
|
|
616
|
-
function
|
|
597
|
+
function Ye(e, t) {
|
|
617
598
|
if (e) {
|
|
618
599
|
var r = e.indexOf(t);
|
|
619
600
|
0 <= r && e.splice(r, 1);
|
|
620
601
|
}
|
|
621
602
|
}
|
|
622
|
-
var
|
|
603
|
+
var Pe = function() {
|
|
623
604
|
function e(t) {
|
|
624
605
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
625
606
|
}
|
|
@@ -631,7 +612,7 @@ var Oe = function() {
|
|
|
631
612
|
if (o)
|
|
632
613
|
if (this._parentage = null, Array.isArray(o))
|
|
633
614
|
try {
|
|
634
|
-
for (var a =
|
|
615
|
+
for (var a = Qe(o), h = a.next(); !h.done; h = a.next()) {
|
|
635
616
|
var u = h.value;
|
|
636
617
|
u.remove(this);
|
|
637
618
|
}
|
|
@@ -648,29 +629,29 @@ var Oe = function() {
|
|
|
648
629
|
else
|
|
649
630
|
o.remove(this);
|
|
650
631
|
var l = this.initialTeardown;
|
|
651
|
-
if (
|
|
632
|
+
if (G(l))
|
|
652
633
|
try {
|
|
653
634
|
l();
|
|
654
635
|
} catch (g) {
|
|
655
|
-
s = g instanceof
|
|
636
|
+
s = g instanceof Ue ? g.errors : [g];
|
|
656
637
|
}
|
|
657
|
-
var
|
|
658
|
-
if (
|
|
638
|
+
var c = this._finalizers;
|
|
639
|
+
if (c) {
|
|
659
640
|
this._finalizers = null;
|
|
660
641
|
try {
|
|
661
|
-
for (var
|
|
662
|
-
var y =
|
|
642
|
+
for (var f = Qe(c), p = f.next(); !p.done; p = f.next()) {
|
|
643
|
+
var y = p.value;
|
|
663
644
|
try {
|
|
664
|
-
|
|
645
|
+
yt(y);
|
|
665
646
|
} catch (g) {
|
|
666
|
-
s = s != null ? s : [], g instanceof
|
|
647
|
+
s = s != null ? s : [], g instanceof Ue ? s = Je(Je([], qe(s)), qe(g.errors)) : s.push(g);
|
|
667
648
|
}
|
|
668
649
|
}
|
|
669
650
|
} catch (g) {
|
|
670
651
|
n = { error: g };
|
|
671
652
|
} finally {
|
|
672
653
|
try {
|
|
673
|
-
|
|
654
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
674
655
|
} finally {
|
|
675
656
|
if (n)
|
|
676
657
|
throw n.error;
|
|
@@ -678,13 +659,13 @@ var Oe = function() {
|
|
|
678
659
|
}
|
|
679
660
|
}
|
|
680
661
|
if (s)
|
|
681
|
-
throw new
|
|
662
|
+
throw new Ue(s);
|
|
682
663
|
}
|
|
683
664
|
}, e.prototype.add = function(t) {
|
|
684
665
|
var r;
|
|
685
666
|
if (t && t !== this)
|
|
686
667
|
if (this.closed)
|
|
687
|
-
|
|
668
|
+
yt(t);
|
|
688
669
|
else {
|
|
689
670
|
if (t instanceof e) {
|
|
690
671
|
if (t.closed || t._hasParent(this))
|
|
@@ -701,56 +682,52 @@ var Oe = function() {
|
|
|
701
682
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
702
683
|
}, e.prototype._removeParent = function(t) {
|
|
703
684
|
var r = this._parentage;
|
|
704
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
685
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ye(r, t);
|
|
705
686
|
}, e.prototype.remove = function(t) {
|
|
706
687
|
var r = this._finalizers;
|
|
707
|
-
r &&
|
|
688
|
+
r && Ye(r, t), t instanceof e && t._removeParent(this);
|
|
708
689
|
}, e.EMPTY = function() {
|
|
709
690
|
var t = new e();
|
|
710
691
|
return t.closed = !0, t;
|
|
711
692
|
}(), e;
|
|
712
|
-
}(),
|
|
713
|
-
function
|
|
714
|
-
return e instanceof
|
|
715
|
-
}
|
|
716
|
-
function
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
var
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
Promise: void 0,
|
|
723
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
724
|
-
useDeprecatedNextContext: !1
|
|
725
|
-
}, Zr = {
|
|
693
|
+
}(), Xt = Pe.EMPTY;
|
|
694
|
+
function Wt(e) {
|
|
695
|
+
return e instanceof Pe || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
696
|
+
}
|
|
697
|
+
function yt(e) {
|
|
698
|
+
G(e) ? e() : e.unsubscribe();
|
|
699
|
+
}
|
|
700
|
+
var qr = {
|
|
701
|
+
Promise: void 0
|
|
702
|
+
}, Jr = {
|
|
726
703
|
setTimeout: function(e, t) {
|
|
727
704
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
728
705
|
r[n - 2] = arguments[n];
|
|
729
|
-
return setTimeout.apply(void 0,
|
|
706
|
+
return setTimeout.apply(void 0, Je([e, t], qe(r)));
|
|
730
707
|
},
|
|
731
708
|
clearTimeout: function(e) {
|
|
732
709
|
return clearTimeout(e);
|
|
733
710
|
},
|
|
734
711
|
delegate: void 0
|
|
735
712
|
};
|
|
736
|
-
function
|
|
737
|
-
|
|
713
|
+
function Yr(e) {
|
|
714
|
+
Jr.setTimeout(function() {
|
|
738
715
|
throw e;
|
|
739
716
|
});
|
|
740
717
|
}
|
|
741
|
-
function
|
|
718
|
+
function gt() {
|
|
742
719
|
}
|
|
743
720
|
function Se(e) {
|
|
744
721
|
e();
|
|
745
722
|
}
|
|
746
|
-
var
|
|
747
|
-
|
|
723
|
+
var zt = function(e) {
|
|
724
|
+
pe(t, e);
|
|
748
725
|
function t(r) {
|
|
749
726
|
var n = e.call(this) || this;
|
|
750
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
727
|
+
return n.isStopped = !1, r ? (n.destination = r, Wt(r) && r.add(n)) : n.destination = tn, n;
|
|
751
728
|
}
|
|
752
729
|
return t.create = function(r, n, i) {
|
|
753
|
-
return new
|
|
730
|
+
return new Ke(r, n, i);
|
|
754
731
|
}, t.prototype.next = function(r) {
|
|
755
732
|
this.isStopped || this._next(r);
|
|
756
733
|
}, t.prototype.error = function(r) {
|
|
@@ -774,7 +751,7 @@ var kt = function(e) {
|
|
|
774
751
|
this.unsubscribe();
|
|
775
752
|
}
|
|
776
753
|
}, t;
|
|
777
|
-
}(
|
|
754
|
+
}(Pe), Kr = function() {
|
|
778
755
|
function e(t) {
|
|
779
756
|
this.partialObserver = t;
|
|
780
757
|
}
|
|
@@ -805,43 +782,43 @@ var kt = function(e) {
|
|
|
805
782
|
_e(r);
|
|
806
783
|
}
|
|
807
784
|
}, e;
|
|
808
|
-
}(),
|
|
809
|
-
|
|
785
|
+
}(), Ke = function(e) {
|
|
786
|
+
pe(t, e);
|
|
810
787
|
function t(r, n, i) {
|
|
811
788
|
var s = e.call(this) || this, o;
|
|
812
|
-
return
|
|
789
|
+
return G(r) || !r ? o = {
|
|
813
790
|
next: r != null ? r : void 0,
|
|
814
791
|
error: n != null ? n : void 0,
|
|
815
792
|
complete: i != null ? i : void 0
|
|
816
|
-
} : o = r, s.destination = new
|
|
793
|
+
} : o = r, s.destination = new Kr(o), s;
|
|
817
794
|
}
|
|
818
795
|
return t;
|
|
819
|
-
}(
|
|
796
|
+
}(zt);
|
|
820
797
|
function _e(e) {
|
|
821
|
-
|
|
798
|
+
Yr(e);
|
|
822
799
|
}
|
|
823
|
-
function
|
|
800
|
+
function en(e) {
|
|
824
801
|
throw e;
|
|
825
802
|
}
|
|
826
|
-
var
|
|
803
|
+
var tn = {
|
|
827
804
|
closed: !0,
|
|
828
|
-
next:
|
|
829
|
-
error:
|
|
830
|
-
complete:
|
|
831
|
-
},
|
|
805
|
+
next: gt,
|
|
806
|
+
error: en,
|
|
807
|
+
complete: gt
|
|
808
|
+
}, rn = function() {
|
|
832
809
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
833
810
|
}();
|
|
834
|
-
function
|
|
811
|
+
function nn(e) {
|
|
835
812
|
return e;
|
|
836
813
|
}
|
|
837
|
-
function
|
|
838
|
-
return e.length === 0 ?
|
|
814
|
+
function sn(e) {
|
|
815
|
+
return e.length === 0 ? nn : e.length === 1 ? e[0] : function(r) {
|
|
839
816
|
return e.reduce(function(n, i) {
|
|
840
817
|
return i(n);
|
|
841
818
|
}, r);
|
|
842
819
|
};
|
|
843
820
|
}
|
|
844
|
-
var
|
|
821
|
+
var vt = function() {
|
|
845
822
|
function e(t) {
|
|
846
823
|
t && (this._subscribe = t);
|
|
847
824
|
}
|
|
@@ -849,7 +826,7 @@ var mt = function() {
|
|
|
849
826
|
var r = new e();
|
|
850
827
|
return r.source = this, r.operator = t, r;
|
|
851
828
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
852
|
-
var i = this, s =
|
|
829
|
+
var i = this, s = an(t) ? t : new Ke(t, r, n);
|
|
853
830
|
return Se(function() {
|
|
854
831
|
var o = i, a = o.operator, h = o.source;
|
|
855
832
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -862,8 +839,8 @@ var mt = function() {
|
|
|
862
839
|
}
|
|
863
840
|
}, e.prototype.forEach = function(t, r) {
|
|
864
841
|
var n = this;
|
|
865
|
-
return r =
|
|
866
|
-
var o = new
|
|
842
|
+
return r = _t(r), new r(function(i, s) {
|
|
843
|
+
var o = new Ke({
|
|
867
844
|
next: function(a) {
|
|
868
845
|
try {
|
|
869
846
|
t(a);
|
|
@@ -879,15 +856,15 @@ var mt = function() {
|
|
|
879
856
|
}, e.prototype._subscribe = function(t) {
|
|
880
857
|
var r;
|
|
881
858
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
882
|
-
}, e.prototype[
|
|
859
|
+
}, e.prototype[rn] = function() {
|
|
883
860
|
return this;
|
|
884
861
|
}, e.prototype.pipe = function() {
|
|
885
862
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
886
863
|
t[r] = arguments[r];
|
|
887
|
-
return
|
|
864
|
+
return sn(t)(this);
|
|
888
865
|
}, e.prototype.toPromise = function(t) {
|
|
889
866
|
var r = this;
|
|
890
|
-
return t =
|
|
867
|
+
return t = _t(t), new t(function(n, i) {
|
|
891
868
|
var s;
|
|
892
869
|
r.subscribe(function(o) {
|
|
893
870
|
return s = o;
|
|
@@ -901,32 +878,32 @@ var mt = function() {
|
|
|
901
878
|
return new e(t);
|
|
902
879
|
}, e;
|
|
903
880
|
}();
|
|
904
|
-
function
|
|
881
|
+
function _t(e) {
|
|
905
882
|
var t;
|
|
906
|
-
return (t = e != null ? e :
|
|
883
|
+
return (t = e != null ? e : qr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
907
884
|
}
|
|
908
|
-
function
|
|
909
|
-
return e &&
|
|
885
|
+
function on(e) {
|
|
886
|
+
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
910
887
|
}
|
|
911
|
-
function
|
|
912
|
-
return e && e instanceof
|
|
888
|
+
function an(e) {
|
|
889
|
+
return e && e instanceof zt || on(e) && Wt(e);
|
|
913
890
|
}
|
|
914
|
-
var
|
|
891
|
+
var un = Vt(function(e) {
|
|
915
892
|
return function() {
|
|
916
893
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
917
894
|
};
|
|
918
|
-
}),
|
|
919
|
-
|
|
895
|
+
}), Zt = function(e) {
|
|
896
|
+
pe(t, e);
|
|
920
897
|
function t() {
|
|
921
898
|
var r = e.call(this) || this;
|
|
922
899
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
923
900
|
}
|
|
924
901
|
return t.prototype.lift = function(r) {
|
|
925
|
-
var n = new
|
|
902
|
+
var n = new Et(this, this);
|
|
926
903
|
return n.operator = r, n;
|
|
927
904
|
}, t.prototype._throwIfClosed = function() {
|
|
928
905
|
if (this.closed)
|
|
929
|
-
throw new
|
|
906
|
+
throw new un();
|
|
930
907
|
}, t.prototype.next = function(r) {
|
|
931
908
|
var n = this;
|
|
932
909
|
Se(function() {
|
|
@@ -934,7 +911,7 @@ var sn = Gt(function(e) {
|
|
|
934
911
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
935
912
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
936
913
|
try {
|
|
937
|
-
for (var o =
|
|
914
|
+
for (var o = Qe(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
938
915
|
var h = a.value;
|
|
939
916
|
h.next(r);
|
|
940
917
|
}
|
|
@@ -983,20 +960,20 @@ var sn = Gt(function(e) {
|
|
|
983
960
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
984
961
|
}, t.prototype._innerSubscribe = function(r) {
|
|
985
962
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
986
|
-
return s || o ?
|
|
987
|
-
n.currentObservers = null,
|
|
963
|
+
return s || o ? Xt : (this.currentObservers = null, a.push(r), new Pe(function() {
|
|
964
|
+
n.currentObservers = null, Ye(a, r);
|
|
988
965
|
}));
|
|
989
966
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
990
967
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
991
968
|
i ? r.error(s) : o && r.complete();
|
|
992
969
|
}, t.prototype.asObservable = function() {
|
|
993
|
-
var r = new
|
|
970
|
+
var r = new vt();
|
|
994
971
|
return r.source = this, r;
|
|
995
972
|
}, t.create = function(r, n) {
|
|
996
|
-
return new
|
|
973
|
+
return new Et(r, n);
|
|
997
974
|
}, t;
|
|
998
|
-
}(
|
|
999
|
-
|
|
975
|
+
}(vt), Et = function(e) {
|
|
976
|
+
pe(t, e);
|
|
1000
977
|
function t(r, n) {
|
|
1001
978
|
var i = e.call(this) || this;
|
|
1002
979
|
return i.destination = r, i.source = n, i;
|
|
@@ -1012,17 +989,17 @@ var sn = Gt(function(e) {
|
|
|
1012
989
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1013
990
|
}, t.prototype._subscribe = function(r) {
|
|
1014
991
|
var n, i;
|
|
1015
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
992
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xt;
|
|
1016
993
|
}, t;
|
|
1017
|
-
}(
|
|
994
|
+
}(Zt), Qt = {
|
|
1018
995
|
now: function() {
|
|
1019
|
-
return (
|
|
996
|
+
return (Qt.delegate || Date).now();
|
|
1020
997
|
},
|
|
1021
998
|
delegate: void 0
|
|
1022
|
-
},
|
|
1023
|
-
|
|
999
|
+
}, hn = function(e) {
|
|
1000
|
+
pe(t, e);
|
|
1024
1001
|
function t(r, n, i) {
|
|
1025
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1002
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Qt);
|
|
1026
1003
|
var s = e.call(this) || this;
|
|
1027
1004
|
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;
|
|
1028
1005
|
}
|
|
@@ -1042,24 +1019,24 @@ var sn = Gt(function(e) {
|
|
|
1042
1019
|
u && s.splice(0, u + 1);
|
|
1043
1020
|
}
|
|
1044
1021
|
}, t;
|
|
1045
|
-
}(
|
|
1046
|
-
const
|
|
1047
|
-
if (
|
|
1048
|
-
const r = new
|
|
1049
|
-
|
|
1022
|
+
}(Zt);
|
|
1023
|
+
const xt = [], St = {}, ln = (e, t = 0) => {
|
|
1024
|
+
if (xt.indexOf(e) == -1) {
|
|
1025
|
+
const r = new hn(t);
|
|
1026
|
+
St[e] = r, xt.push(e);
|
|
1050
1027
|
}
|
|
1051
|
-
return
|
|
1028
|
+
return St[e];
|
|
1052
1029
|
}, Z = [];
|
|
1053
|
-
function
|
|
1030
|
+
function cn(e, t) {
|
|
1054
1031
|
return {
|
|
1055
|
-
subscribe:
|
|
1032
|
+
subscribe: Ce(e, t).subscribe
|
|
1056
1033
|
};
|
|
1057
1034
|
}
|
|
1058
|
-
function
|
|
1035
|
+
function Ce(e, t = I) {
|
|
1059
1036
|
let r;
|
|
1060
1037
|
const n = /* @__PURE__ */ new Set();
|
|
1061
1038
|
function i(a) {
|
|
1062
|
-
if (
|
|
1039
|
+
if (Ft(e, a) && (e = a, r)) {
|
|
1063
1040
|
const h = !Z.length;
|
|
1064
1041
|
for (const u of n)
|
|
1065
1042
|
u[1](), Z.push(u, e);
|
|
@@ -1081,145 +1058,184 @@ function Pe(e, t = I) {
|
|
|
1081
1058
|
}
|
|
1082
1059
|
return { set: i, update: s, subscribe: o };
|
|
1083
1060
|
}
|
|
1084
|
-
function
|
|
1061
|
+
function ie(e, t, r) {
|
|
1085
1062
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1086
1063
|
if (!i.every(Boolean))
|
|
1087
1064
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1088
1065
|
const s = t.length < 2;
|
|
1089
|
-
return
|
|
1066
|
+
return cn(r, (o, a) => {
|
|
1090
1067
|
let h = !1;
|
|
1091
1068
|
const u = [];
|
|
1092
|
-
let l = 0,
|
|
1093
|
-
const
|
|
1069
|
+
let l = 0, c = I;
|
|
1070
|
+
const f = () => {
|
|
1094
1071
|
if (l)
|
|
1095
1072
|
return;
|
|
1096
|
-
|
|
1073
|
+
c();
|
|
1097
1074
|
const y = t(n ? u[0] : u, o, a);
|
|
1098
|
-
s ? o(y) :
|
|
1099
|
-
},
|
|
1100
|
-
(y, g) =>
|
|
1075
|
+
s ? o(y) : c = ut(y) ? y : I;
|
|
1076
|
+
}, p = i.map(
|
|
1077
|
+
(y, g) => jt(
|
|
1101
1078
|
y,
|
|
1102
|
-
(
|
|
1103
|
-
u[g] =
|
|
1079
|
+
(B) => {
|
|
1080
|
+
u[g] = B, l &= ~(1 << g), h && f();
|
|
1104
1081
|
},
|
|
1105
1082
|
() => {
|
|
1106
1083
|
l |= 1 << g;
|
|
1107
1084
|
}
|
|
1108
1085
|
)
|
|
1109
1086
|
);
|
|
1110
|
-
return h = !0,
|
|
1111
|
-
|
|
1087
|
+
return h = !0, f(), function() {
|
|
1088
|
+
re(p), c(), h = !1;
|
|
1112
1089
|
};
|
|
1113
1090
|
});
|
|
1114
1091
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1092
|
+
function fn(e) {
|
|
1093
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1117
1094
|
}
|
|
1118
|
-
var
|
|
1119
|
-
return
|
|
1095
|
+
var pn = function(t) {
|
|
1096
|
+
return dn(t) && !mn(t);
|
|
1120
1097
|
};
|
|
1121
|
-
function
|
|
1098
|
+
function dn(e) {
|
|
1122
1099
|
return !!e && typeof e == "object";
|
|
1123
1100
|
}
|
|
1124
|
-
function
|
|
1101
|
+
function mn(e) {
|
|
1125
1102
|
var t = Object.prototype.toString.call(e);
|
|
1126
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1103
|
+
return t === "[object RegExp]" || t === "[object Date]" || gn(e);
|
|
1127
1104
|
}
|
|
1128
|
-
var
|
|
1129
|
-
function
|
|
1130
|
-
return e.$$typeof ===
|
|
1105
|
+
var bn = typeof Symbol == "function" && Symbol.for, yn = bn ? Symbol.for("react.element") : 60103;
|
|
1106
|
+
function gn(e) {
|
|
1107
|
+
return e.$$typeof === yn;
|
|
1131
1108
|
}
|
|
1132
|
-
function
|
|
1109
|
+
function vn(e) {
|
|
1133
1110
|
return Array.isArray(e) ? [] : {};
|
|
1134
1111
|
}
|
|
1135
1112
|
function ce(e, t) {
|
|
1136
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1113
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(vn(e), e, t) : e;
|
|
1137
1114
|
}
|
|
1138
|
-
function
|
|
1115
|
+
function _n(e, t, r) {
|
|
1139
1116
|
return e.concat(t).map(function(n) {
|
|
1140
1117
|
return ce(n, r);
|
|
1141
1118
|
});
|
|
1142
1119
|
}
|
|
1143
|
-
function
|
|
1120
|
+
function En(e, t) {
|
|
1144
1121
|
if (!t.customMerge)
|
|
1145
|
-
return
|
|
1122
|
+
return Y;
|
|
1146
1123
|
var r = t.customMerge(e);
|
|
1147
|
-
return typeof r == "function" ? r :
|
|
1124
|
+
return typeof r == "function" ? r : Y;
|
|
1148
1125
|
}
|
|
1149
|
-
function
|
|
1126
|
+
function xn(e) {
|
|
1150
1127
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1151
1128
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1152
1129
|
}) : [];
|
|
1153
1130
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return Object.keys(e).concat(
|
|
1131
|
+
function wt(e) {
|
|
1132
|
+
return Object.keys(e).concat(xn(e));
|
|
1156
1133
|
}
|
|
1157
|
-
function
|
|
1134
|
+
function qt(e, t) {
|
|
1158
1135
|
try {
|
|
1159
1136
|
return t in e;
|
|
1160
1137
|
} catch (r) {
|
|
1161
1138
|
return !1;
|
|
1162
1139
|
}
|
|
1163
1140
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1141
|
+
function Sn(e, t) {
|
|
1142
|
+
return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1166
1143
|
}
|
|
1167
|
-
function
|
|
1144
|
+
function wn(e, t, r) {
|
|
1168
1145
|
var n = {};
|
|
1169
|
-
return r.isMergeableObject(e) &&
|
|
1146
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
1170
1147
|
n[i] = ce(e[i], r);
|
|
1171
|
-
}),
|
|
1172
|
-
|
|
1148
|
+
}), wt(t).forEach(function(i) {
|
|
1149
|
+
Sn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = En(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
1173
1150
|
}), n;
|
|
1174
1151
|
}
|
|
1175
|
-
function
|
|
1176
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1152
|
+
function Y(e, t, r) {
|
|
1153
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _n, r.isMergeableObject = r.isMergeableObject || pn, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1177
1154
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1178
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1155
|
+
return s ? n ? r.arrayMerge(e, t, r) : wn(e, t, r) : ce(t, r);
|
|
1179
1156
|
}
|
|
1180
|
-
|
|
1157
|
+
Y.all = function(t, r) {
|
|
1181
1158
|
if (!Array.isArray(t))
|
|
1182
1159
|
throw new Error("first argument should be an array");
|
|
1183
1160
|
return t.reduce(function(n, i) {
|
|
1184
|
-
return
|
|
1161
|
+
return Y(n, i, r);
|
|
1185
1162
|
}, {});
|
|
1186
1163
|
};
|
|
1187
|
-
var
|
|
1188
|
-
const
|
|
1189
|
-
function
|
|
1190
|
-
|
|
1164
|
+
var Tn = Y, Hn = Tn;
|
|
1165
|
+
const On = /* @__PURE__ */ fn(Hn);
|
|
1166
|
+
var et = function(e, t) {
|
|
1167
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1168
|
+
r.__proto__ = n;
|
|
1169
|
+
} || function(r, n) {
|
|
1170
|
+
for (var i in n)
|
|
1171
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1172
|
+
}, et(e, t);
|
|
1173
|
+
};
|
|
1174
|
+
function Ie(e, t) {
|
|
1175
|
+
if (typeof t != "function" && t !== null)
|
|
1176
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1177
|
+
et(e, t);
|
|
1178
|
+
function r() {
|
|
1179
|
+
this.constructor = e;
|
|
1180
|
+
}
|
|
1181
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1182
|
+
}
|
|
1183
|
+
var U = function() {
|
|
1184
|
+
return U = Object.assign || function(t) {
|
|
1185
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1186
|
+
r = arguments[n];
|
|
1187
|
+
for (var s in r)
|
|
1188
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1189
|
+
}
|
|
1190
|
+
return t;
|
|
1191
|
+
}, U.apply(this, arguments);
|
|
1192
|
+
};
|
|
1193
|
+
function An(e, t) {
|
|
1194
|
+
var r = {};
|
|
1195
|
+
for (var n in e)
|
|
1196
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1197
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1198
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1199
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1200
|
+
return r;
|
|
1201
|
+
}
|
|
1202
|
+
function De(e, t, r) {
|
|
1203
|
+
if (r || arguments.length === 2)
|
|
1204
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1205
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1206
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
1207
|
+
}
|
|
1208
|
+
function Ge(e, t) {
|
|
1209
|
+
var r = t && t.cache ? t.cache : Nn, n = t && t.serializer ? t.serializer : Ln, i = t && t.strategy ? t.strategy : Cn;
|
|
1191
1210
|
return i(e, {
|
|
1192
1211
|
cache: r,
|
|
1193
1212
|
serializer: n
|
|
1194
1213
|
});
|
|
1195
1214
|
}
|
|
1196
|
-
function
|
|
1215
|
+
function Bn(e) {
|
|
1197
1216
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1198
1217
|
}
|
|
1199
|
-
function
|
|
1200
|
-
var i =
|
|
1218
|
+
function Pn(e, t, r, n) {
|
|
1219
|
+
var i = Bn(n) ? n : r(n), s = t.get(i);
|
|
1201
1220
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1202
1221
|
}
|
|
1203
|
-
function
|
|
1222
|
+
function Jt(e, t, r) {
|
|
1204
1223
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1205
1224
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1206
1225
|
}
|
|
1207
|
-
function
|
|
1226
|
+
function Yt(e, t, r, n, i) {
|
|
1208
1227
|
return r.bind(t, e, n, i);
|
|
1209
1228
|
}
|
|
1210
|
-
function
|
|
1211
|
-
var r = e.length === 1 ?
|
|
1212
|
-
return
|
|
1229
|
+
function Cn(e, t) {
|
|
1230
|
+
var r = e.length === 1 ? Pn : Jt;
|
|
1231
|
+
return Yt(e, this, r, t.cache.create(), t.serializer);
|
|
1213
1232
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return
|
|
1233
|
+
function In(e, t) {
|
|
1234
|
+
return Yt(e, this, Jt, t.cache.create(), t.serializer);
|
|
1216
1235
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return it(e, this, zt, t.cache.create(), t.serializer);
|
|
1219
|
-
}
|
|
1220
|
-
var On = function() {
|
|
1236
|
+
var Ln = function() {
|
|
1221
1237
|
return JSON.stringify(arguments);
|
|
1222
|
-
},
|
|
1238
|
+
}, Mn = (
|
|
1223
1239
|
/** @class */
|
|
1224
1240
|
function() {
|
|
1225
1241
|
function e() {
|
|
@@ -1231,62 +1247,71 @@ var On = function() {
|
|
|
1231
1247
|
this.cache[t] = r;
|
|
1232
1248
|
}, e;
|
|
1233
1249
|
}()
|
|
1234
|
-
),
|
|
1250
|
+
), Nn = {
|
|
1235
1251
|
create: function() {
|
|
1236
|
-
return new
|
|
1252
|
+
return new Mn();
|
|
1237
1253
|
}
|
|
1238
|
-
},
|
|
1239
|
-
variadic:
|
|
1240
|
-
|
|
1241
|
-
|
|
1254
|
+
}, Fe = {
|
|
1255
|
+
variadic: In
|
|
1256
|
+
}, He = function() {
|
|
1257
|
+
return He = Object.assign || function(t) {
|
|
1258
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1259
|
+
r = arguments[n];
|
|
1260
|
+
for (var s in r)
|
|
1261
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1262
|
+
}
|
|
1263
|
+
return t;
|
|
1264
|
+
}, He.apply(this, arguments);
|
|
1265
|
+
};
|
|
1266
|
+
var d;
|
|
1242
1267
|
(function(e) {
|
|
1243
1268
|
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";
|
|
1244
|
-
})(
|
|
1245
|
-
var
|
|
1269
|
+
})(d || (d = {}));
|
|
1270
|
+
var v;
|
|
1246
1271
|
(function(e) {
|
|
1247
1272
|
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";
|
|
1248
|
-
})(
|
|
1249
|
-
var
|
|
1273
|
+
})(v || (v = {}));
|
|
1274
|
+
var K;
|
|
1250
1275
|
(function(e) {
|
|
1251
1276
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1252
|
-
})(
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1277
|
+
})(K || (K = {}));
|
|
1278
|
+
function Tt(e) {
|
|
1279
|
+
return e.type === v.literal;
|
|
1255
1280
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1281
|
+
function $n(e) {
|
|
1282
|
+
return e.type === v.argument;
|
|
1258
1283
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1284
|
+
function Kt(e) {
|
|
1285
|
+
return e.type === v.number;
|
|
1261
1286
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1287
|
+
function er(e) {
|
|
1288
|
+
return e.type === v.date;
|
|
1264
1289
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e.type ===
|
|
1290
|
+
function tr(e) {
|
|
1291
|
+
return e.type === v.time;
|
|
1267
1292
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return e.type ===
|
|
1293
|
+
function rr(e) {
|
|
1294
|
+
return e.type === v.select;
|
|
1270
1295
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return e.type ===
|
|
1296
|
+
function nr(e) {
|
|
1297
|
+
return e.type === v.plural;
|
|
1273
1298
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return e.type ===
|
|
1299
|
+
function Rn(e) {
|
|
1300
|
+
return e.type === v.pound;
|
|
1276
1301
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return e.type ===
|
|
1302
|
+
function ir(e) {
|
|
1303
|
+
return e.type === v.tag;
|
|
1279
1304
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1305
|
+
function sr(e) {
|
|
1306
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1282
1307
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1308
|
+
function tt(e) {
|
|
1309
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1285
1310
|
}
|
|
1286
|
-
var
|
|
1287
|
-
function
|
|
1311
|
+
var or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Un = /(?:[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;
|
|
1312
|
+
function Dn(e) {
|
|
1288
1313
|
var t = {};
|
|
1289
|
-
return e.replace(
|
|
1314
|
+
return e.replace(Un, function(r) {
|
|
1290
1315
|
var n = r.length;
|
|
1291
1316
|
switch (r[0]) {
|
|
1292
1317
|
case "G":
|
|
@@ -1375,36 +1400,46 @@ function Nn(e) {
|
|
|
1375
1400
|
return "";
|
|
1376
1401
|
}), t;
|
|
1377
1402
|
}
|
|
1378
|
-
var
|
|
1379
|
-
function
|
|
1403
|
+
var _ = function() {
|
|
1404
|
+
return _ = Object.assign || function(t) {
|
|
1405
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1406
|
+
r = arguments[n];
|
|
1407
|
+
for (var s in r)
|
|
1408
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1409
|
+
}
|
|
1410
|
+
return t;
|
|
1411
|
+
}, _.apply(this, arguments);
|
|
1412
|
+
};
|
|
1413
|
+
var Gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1414
|
+
function Fn(e) {
|
|
1380
1415
|
if (e.length === 0)
|
|
1381
1416
|
throw new Error("Number skeleton cannot be empty");
|
|
1382
|
-
for (var t = e.split(
|
|
1383
|
-
return
|
|
1417
|
+
for (var t = e.split(Gn).filter(function(f) {
|
|
1418
|
+
return f.length > 0;
|
|
1384
1419
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1385
1420
|
var s = i[n], o = s.split("/");
|
|
1386
1421
|
if (o.length === 0)
|
|
1387
1422
|
throw new Error("Invalid number skeleton");
|
|
1388
1423
|
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1389
|
-
var
|
|
1390
|
-
if (
|
|
1424
|
+
var c = l[u];
|
|
1425
|
+
if (c.length === 0)
|
|
1391
1426
|
throw new Error("Invalid number skeleton");
|
|
1392
1427
|
}
|
|
1393
1428
|
r.push({ stem: a, options: h });
|
|
1394
1429
|
}
|
|
1395
1430
|
return r;
|
|
1396
1431
|
}
|
|
1397
|
-
function
|
|
1432
|
+
function jn(e) {
|
|
1398
1433
|
return e.replace(/^(.*?)-/, "");
|
|
1399
1434
|
}
|
|
1400
|
-
var
|
|
1401
|
-
function
|
|
1435
|
+
var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ar = /^(@+)?(\+|#+)?[rs]?$/g, kn = /(\*)(0+)|(#+)(0+)|(0+)/g, ur = /^(0+)$/;
|
|
1436
|
+
function Ot(e) {
|
|
1402
1437
|
var t = {};
|
|
1403
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1438
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ar, function(r, n, i) {
|
|
1404
1439
|
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)), "";
|
|
1405
1440
|
}), t;
|
|
1406
1441
|
}
|
|
1407
|
-
function
|
|
1442
|
+
function hr(e) {
|
|
1408
1443
|
switch (e) {
|
|
1409
1444
|
case "sign-auto":
|
|
1410
1445
|
return {
|
|
@@ -1444,7 +1479,7 @@ function sr(e) {
|
|
|
1444
1479
|
};
|
|
1445
1480
|
}
|
|
1446
1481
|
}
|
|
1447
|
-
function
|
|
1482
|
+
function Vn(e) {
|
|
1448
1483
|
var t;
|
|
1449
1484
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1450
1485
|
notation: "engineering"
|
|
@@ -1452,17 +1487,17 @@ function Gn(e) {
|
|
|
1452
1487
|
notation: "scientific"
|
|
1453
1488
|
}, e = e.slice(1)), t) {
|
|
1454
1489
|
var r = e.slice(0, 2);
|
|
1455
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1490
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ur.test(e))
|
|
1456
1491
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1457
1492
|
t.minimumIntegerDigits = e.length;
|
|
1458
1493
|
}
|
|
1459
1494
|
return t;
|
|
1460
1495
|
}
|
|
1461
|
-
function
|
|
1462
|
-
var t = {}, r =
|
|
1496
|
+
function At(e) {
|
|
1497
|
+
var t = {}, r = hr(e);
|
|
1463
1498
|
return r || t;
|
|
1464
1499
|
}
|
|
1465
|
-
function
|
|
1500
|
+
function Xn(e) {
|
|
1466
1501
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1467
1502
|
var i = n[r];
|
|
1468
1503
|
switch (i.stem) {
|
|
@@ -1486,7 +1521,7 @@ function Fn(e) {
|
|
|
1486
1521
|
continue;
|
|
1487
1522
|
case "measure-unit":
|
|
1488
1523
|
case "unit":
|
|
1489
|
-
t.style = "unit", t.unit =
|
|
1524
|
+
t.style = "unit", t.unit = jn(i.options[0]);
|
|
1490
1525
|
continue;
|
|
1491
1526
|
case "compact-short":
|
|
1492
1527
|
case "K":
|
|
@@ -1497,13 +1532,13 @@ function Fn(e) {
|
|
|
1497
1532
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1498
1533
|
continue;
|
|
1499
1534
|
case "scientific":
|
|
1500
|
-
t =
|
|
1501
|
-
return
|
|
1535
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1536
|
+
return _(_({}, h), At(u));
|
|
1502
1537
|
}, {}));
|
|
1503
1538
|
continue;
|
|
1504
1539
|
case "engineering":
|
|
1505
|
-
t =
|
|
1506
|
-
return
|
|
1540
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1541
|
+
return _(_({}, h), At(u));
|
|
1507
1542
|
}, {}));
|
|
1508
1543
|
continue;
|
|
1509
1544
|
case "notation-simple":
|
|
@@ -1548,41 +1583,41 @@ function Fn(e) {
|
|
|
1548
1583
|
case "integer-width":
|
|
1549
1584
|
if (i.options.length > 1)
|
|
1550
1585
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1551
|
-
i.options[0].replace(
|
|
1586
|
+
i.options[0].replace(kn, function(h, u, l, c, f, p) {
|
|
1552
1587
|
if (u)
|
|
1553
1588
|
t.minimumIntegerDigits = l.length;
|
|
1554
1589
|
else {
|
|
1555
|
-
if (
|
|
1590
|
+
if (c && f)
|
|
1556
1591
|
throw new Error("We currently do not support maximum integer digits");
|
|
1557
|
-
if (
|
|
1592
|
+
if (p)
|
|
1558
1593
|
throw new Error("We currently do not support exact integer digits");
|
|
1559
1594
|
}
|
|
1560
1595
|
return "";
|
|
1561
1596
|
});
|
|
1562
1597
|
continue;
|
|
1563
1598
|
}
|
|
1564
|
-
if (
|
|
1599
|
+
if (ur.test(i.stem)) {
|
|
1565
1600
|
t.minimumIntegerDigits = i.stem.length;
|
|
1566
1601
|
continue;
|
|
1567
1602
|
}
|
|
1568
|
-
if (
|
|
1603
|
+
if (Ht.test(i.stem)) {
|
|
1569
1604
|
if (i.options.length > 1)
|
|
1570
1605
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1571
|
-
i.stem.replace(
|
|
1572
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1606
|
+
i.stem.replace(Ht, function(h, u, l, c, f, p) {
|
|
1607
|
+
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), "";
|
|
1573
1608
|
});
|
|
1574
1609
|
var s = i.options[0];
|
|
1575
|
-
s === "w" ? t =
|
|
1610
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), Ot(s)));
|
|
1576
1611
|
continue;
|
|
1577
1612
|
}
|
|
1578
|
-
if (
|
|
1579
|
-
t =
|
|
1613
|
+
if (ar.test(i.stem)) {
|
|
1614
|
+
t = _(_({}, t), Ot(i.stem));
|
|
1580
1615
|
continue;
|
|
1581
1616
|
}
|
|
1582
|
-
var o =
|
|
1583
|
-
o && (t =
|
|
1584
|
-
var a =
|
|
1585
|
-
a && (t =
|
|
1617
|
+
var o = hr(i.stem);
|
|
1618
|
+
o && (t = _(_({}, t), o));
|
|
1619
|
+
var a = Vn(i.stem);
|
|
1620
|
+
a && (t = _(_({}, t), a));
|
|
1586
1621
|
}
|
|
1587
1622
|
return t;
|
|
1588
1623
|
}
|
|
@@ -3001,13 +3036,13 @@ var Ee = {
|
|
|
3001
3036
|
"h"
|
|
3002
3037
|
]
|
|
3003
3038
|
};
|
|
3004
|
-
function
|
|
3039
|
+
function Wn(e, t) {
|
|
3005
3040
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3006
3041
|
var i = e.charAt(n);
|
|
3007
3042
|
if (i === "j") {
|
|
3008
3043
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3009
3044
|
s++, n++;
|
|
3010
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
3045
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = zn(t);
|
|
3011
3046
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3012
3047
|
r += h;
|
|
3013
3048
|
for (; o-- > 0; )
|
|
@@ -3017,7 +3052,7 @@ function jn(e, t) {
|
|
|
3017
3052
|
}
|
|
3018
3053
|
return r;
|
|
3019
3054
|
}
|
|
3020
|
-
function
|
|
3055
|
+
function zn(e) {
|
|
3021
3056
|
var t = e.hourCycle;
|
|
3022
3057
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3023
3058
|
e.hourCycles && // @ts-ignore
|
|
@@ -3039,20 +3074,20 @@ function kn(e) {
|
|
|
3039
3074
|
var i = Ee[n || ""] || Ee[r || ""] || Ee["".concat(r, "-001")] || Ee["001"];
|
|
3040
3075
|
return i[0];
|
|
3041
3076
|
}
|
|
3042
|
-
var
|
|
3077
|
+
var je, Zn = new RegExp("^".concat(or.source, "*")), Qn = new RegExp("".concat(or.source, "*$"));
|
|
3043
3078
|
function b(e, t) {
|
|
3044
3079
|
return { start: e, end: t };
|
|
3045
3080
|
}
|
|
3046
|
-
var
|
|
3081
|
+
var qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jn = !!String.fromCodePoint, Yn = !!Object.fromEntries, Kn = !!String.prototype.codePointAt, ei = !!String.prototype.trimStart, ti = !!String.prototype.trimEnd, ri = !!Number.isSafeInteger, ni = ri ? Number.isSafeInteger : function(e) {
|
|
3047
3082
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3048
|
-
},
|
|
3083
|
+
}, rt = !0;
|
|
3049
3084
|
try {
|
|
3050
|
-
var
|
|
3051
|
-
|
|
3085
|
+
var ii = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3086
|
+
rt = ((je = ii.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
|
|
3052
3087
|
} catch (e) {
|
|
3053
|
-
|
|
3088
|
+
rt = !1;
|
|
3054
3089
|
}
|
|
3055
|
-
var
|
|
3090
|
+
var Bt = qn ? (
|
|
3056
3091
|
// Native
|
|
3057
3092
|
function(t, r, n) {
|
|
3058
3093
|
return t.startsWith(r, n);
|
|
@@ -3062,7 +3097,7 @@ var Ht = Wn ? (
|
|
|
3062
3097
|
function(t, r, n) {
|
|
3063
3098
|
return t.slice(n, n + r.length) === r;
|
|
3064
3099
|
}
|
|
3065
|
-
),
|
|
3100
|
+
), nt = Jn ? String.fromCodePoint : (
|
|
3066
3101
|
// IE11
|
|
3067
3102
|
function() {
|
|
3068
3103
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3074,9 +3109,9 @@ var Ht = Wn ? (
|
|
|
3074
3109
|
}
|
|
3075
3110
|
return n;
|
|
3076
3111
|
}
|
|
3077
|
-
),
|
|
3112
|
+
), Pt = (
|
|
3078
3113
|
// native
|
|
3079
|
-
|
|
3114
|
+
Yn ? Object.fromEntries : (
|
|
3080
3115
|
// Ponyfill
|
|
3081
3116
|
function(t) {
|
|
3082
3117
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3086,7 +3121,7 @@ var Ht = Wn ? (
|
|
|
3086
3121
|
return r;
|
|
3087
3122
|
}
|
|
3088
3123
|
)
|
|
3089
|
-
),
|
|
3124
|
+
), lr = Kn ? (
|
|
3090
3125
|
// Native
|
|
3091
3126
|
function(t, r) {
|
|
3092
3127
|
return t.codePointAt(r);
|
|
@@ -3100,7 +3135,7 @@ var Ht = Wn ? (
|
|
|
3100
3135
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3101
3136
|
}
|
|
3102
3137
|
}
|
|
3103
|
-
),
|
|
3138
|
+
), si = ei ? (
|
|
3104
3139
|
// Native
|
|
3105
3140
|
function(t) {
|
|
3106
3141
|
return t.trimStart();
|
|
@@ -3108,9 +3143,9 @@ var Ht = Wn ? (
|
|
|
3108
3143
|
) : (
|
|
3109
3144
|
// Ponyfill
|
|
3110
3145
|
function(t) {
|
|
3111
|
-
return t.replace(
|
|
3146
|
+
return t.replace(Zn, "");
|
|
3112
3147
|
}
|
|
3113
|
-
),
|
|
3148
|
+
), oi = ti ? (
|
|
3114
3149
|
// Native
|
|
3115
3150
|
function(t) {
|
|
3116
3151
|
return t.trimEnd();
|
|
@@ -3118,32 +3153,32 @@ var Ht = Wn ? (
|
|
|
3118
3153
|
) : (
|
|
3119
3154
|
// Ponyfill
|
|
3120
3155
|
function(t) {
|
|
3121
|
-
return t.replace(
|
|
3156
|
+
return t.replace(Qn, "");
|
|
3122
3157
|
}
|
|
3123
3158
|
);
|
|
3124
|
-
function
|
|
3159
|
+
function cr(e, t) {
|
|
3125
3160
|
return new RegExp(e, t);
|
|
3126
3161
|
}
|
|
3127
|
-
var
|
|
3128
|
-
if (
|
|
3129
|
-
var
|
|
3130
|
-
|
|
3162
|
+
var it;
|
|
3163
|
+
if (rt) {
|
|
3164
|
+
var Ct = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3165
|
+
it = function(t, r) {
|
|
3131
3166
|
var n;
|
|
3132
|
-
|
|
3133
|
-
var i =
|
|
3167
|
+
Ct.lastIndex = r;
|
|
3168
|
+
var i = Ct.exec(t);
|
|
3134
3169
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3135
3170
|
};
|
|
3136
3171
|
} else
|
|
3137
|
-
|
|
3172
|
+
it = function(t, r) {
|
|
3138
3173
|
for (var n = []; ; ) {
|
|
3139
|
-
var i =
|
|
3140
|
-
if (i === void 0 ||
|
|
3174
|
+
var i = lr(t, r);
|
|
3175
|
+
if (i === void 0 || fr(i) || li(i))
|
|
3141
3176
|
break;
|
|
3142
3177
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3143
3178
|
}
|
|
3144
|
-
return
|
|
3179
|
+
return nt.apply(void 0, n);
|
|
3145
3180
|
};
|
|
3146
|
-
var
|
|
3181
|
+
var ai = (
|
|
3147
3182
|
/** @class */
|
|
3148
3183
|
function() {
|
|
3149
3184
|
function e(t, r) {
|
|
@@ -3167,14 +3202,14 @@ var ni = (
|
|
|
3167
3202
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3168
3203
|
var a = this.clonePosition();
|
|
3169
3204
|
this.bump(), i.push({
|
|
3170
|
-
type:
|
|
3205
|
+
type: v.pound,
|
|
3171
3206
|
location: b(a, this.clonePosition())
|
|
3172
3207
|
});
|
|
3173
3208
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3174
3209
|
if (n)
|
|
3175
3210
|
break;
|
|
3176
|
-
return this.error(
|
|
3177
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3211
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3212
|
+
} else if (s === 60 && !this.ignoreTag && st(this.peek() || 0)) {
|
|
3178
3213
|
var o = this.parseTag(t, r);
|
|
3179
3214
|
if (o.err)
|
|
3180
3215
|
return o;
|
|
@@ -3195,7 +3230,7 @@ var ni = (
|
|
|
3195
3230
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3196
3231
|
return {
|
|
3197
3232
|
val: {
|
|
3198
|
-
type:
|
|
3233
|
+
type: v.literal,
|
|
3199
3234
|
value: "<".concat(i, "/>"),
|
|
3200
3235
|
location: b(n, this.clonePosition())
|
|
3201
3236
|
},
|
|
@@ -3207,25 +3242,25 @@ var ni = (
|
|
|
3207
3242
|
return s;
|
|
3208
3243
|
var o = s.val, a = this.clonePosition();
|
|
3209
3244
|
if (this.bumpIf("</")) {
|
|
3210
|
-
if (this.isEOF() || !
|
|
3211
|
-
return this.error(
|
|
3245
|
+
if (this.isEOF() || !st(this.char()))
|
|
3246
|
+
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3212
3247
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3213
|
-
return i !== u ? this.error(
|
|
3248
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3214
3249
|
val: {
|
|
3215
|
-
type:
|
|
3250
|
+
type: v.tag,
|
|
3216
3251
|
value: i,
|
|
3217
3252
|
children: o,
|
|
3218
3253
|
location: b(n, this.clonePosition())
|
|
3219
3254
|
},
|
|
3220
3255
|
err: null
|
|
3221
|
-
} : this.error(
|
|
3256
|
+
} : this.error(d.INVALID_TAG, b(a, this.clonePosition())));
|
|
3222
3257
|
} else
|
|
3223
|
-
return this.error(
|
|
3258
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3224
3259
|
} else
|
|
3225
|
-
return this.error(
|
|
3260
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3226
3261
|
}, e.prototype.parseTagName = function() {
|
|
3227
3262
|
var t = this.offset();
|
|
3228
|
-
for (this.bump(); !this.isEOF() &&
|
|
3263
|
+
for (this.bump(); !this.isEOF() && hi(this.char()); )
|
|
3229
3264
|
this.bump();
|
|
3230
3265
|
return this.message.slice(t, this.offset());
|
|
3231
3266
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3249,12 +3284,12 @@ var ni = (
|
|
|
3249
3284
|
}
|
|
3250
3285
|
var h = b(n, this.clonePosition());
|
|
3251
3286
|
return {
|
|
3252
|
-
val: { type:
|
|
3287
|
+
val: { type: v.literal, value: i, location: h },
|
|
3253
3288
|
err: null
|
|
3254
3289
|
};
|
|
3255
3290
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3256
3291
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3257
|
-
!
|
|
3292
|
+
!ui(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3258
3293
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3259
3294
|
if (this.isEOF() || this.char() !== 39)
|
|
3260
3295
|
return null;
|
|
@@ -3288,28 +3323,28 @@ var ni = (
|
|
|
3288
3323
|
r.push(n);
|
|
3289
3324
|
this.bump();
|
|
3290
3325
|
}
|
|
3291
|
-
return
|
|
3326
|
+
return nt.apply(void 0, r);
|
|
3292
3327
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3293
3328
|
if (this.isEOF())
|
|
3294
3329
|
return null;
|
|
3295
3330
|
var n = this.char();
|
|
3296
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3331
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), nt(n));
|
|
3297
3332
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3298
3333
|
var n = this.clonePosition();
|
|
3299
3334
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3300
|
-
return this.error(
|
|
3335
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3301
3336
|
if (this.char() === 125)
|
|
3302
|
-
return this.bump(), this.error(
|
|
3337
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3303
3338
|
var i = this.parseIdentifierIfPossible().value;
|
|
3304
3339
|
if (!i)
|
|
3305
|
-
return this.error(
|
|
3340
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3306
3341
|
if (this.bumpSpace(), this.isEOF())
|
|
3307
|
-
return this.error(
|
|
3342
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3308
3343
|
switch (this.char()) {
|
|
3309
3344
|
case 125:
|
|
3310
3345
|
return this.bump(), {
|
|
3311
3346
|
val: {
|
|
3312
|
-
type:
|
|
3347
|
+
type: v.argument,
|
|
3313
3348
|
// value does not include the opening and closing braces.
|
|
3314
3349
|
value: i,
|
|
3315
3350
|
location: b(n, this.clonePosition())
|
|
@@ -3317,12 +3352,12 @@ var ni = (
|
|
|
3317
3352
|
err: null
|
|
3318
3353
|
};
|
|
3319
3354
|
case 44:
|
|
3320
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3355
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3321
3356
|
default:
|
|
3322
|
-
return this.error(
|
|
3357
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3323
3358
|
}
|
|
3324
3359
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3325
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3360
|
+
var t = this.clonePosition(), r = this.offset(), n = it(this.message, r), i = r + n.length;
|
|
3326
3361
|
this.bumpTo(i);
|
|
3327
3362
|
var s = this.clonePosition(), o = b(t, s);
|
|
3328
3363
|
return { value: n, location: o };
|
|
@@ -3330,7 +3365,7 @@ var ni = (
|
|
|
3330
3365
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3331
3366
|
switch (a) {
|
|
3332
3367
|
case "":
|
|
3333
|
-
return this.error(
|
|
3368
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(o, h));
|
|
3334
3369
|
case "number":
|
|
3335
3370
|
case "date":
|
|
3336
3371
|
case "time": {
|
|
@@ -3338,47 +3373,47 @@ var ni = (
|
|
|
3338
3373
|
var u = null;
|
|
3339
3374
|
if (this.bumpIf(",")) {
|
|
3340
3375
|
this.bumpSpace();
|
|
3341
|
-
var l = this.clonePosition(),
|
|
3342
|
-
if (
|
|
3343
|
-
return
|
|
3344
|
-
var
|
|
3345
|
-
if (
|
|
3346
|
-
return this.error(
|
|
3347
|
-
var
|
|
3348
|
-
u = { style:
|
|
3376
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3377
|
+
if (c.err)
|
|
3378
|
+
return c;
|
|
3379
|
+
var f = oi(c.val);
|
|
3380
|
+
if (f.length === 0)
|
|
3381
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3382
|
+
var p = b(l, this.clonePosition());
|
|
3383
|
+
u = { style: f, styleLocation: p };
|
|
3349
3384
|
}
|
|
3350
3385
|
var y = this.tryParseArgumentClose(i);
|
|
3351
3386
|
if (y.err)
|
|
3352
3387
|
return y;
|
|
3353
3388
|
var g = b(i, this.clonePosition());
|
|
3354
|
-
if (u &&
|
|
3355
|
-
var
|
|
3389
|
+
if (u && Bt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3390
|
+
var B = si(u.style.slice(2));
|
|
3356
3391
|
if (a === "number") {
|
|
3357
|
-
var
|
|
3358
|
-
return
|
|
3359
|
-
val: { type:
|
|
3392
|
+
var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
3393
|
+
return c.err ? c : {
|
|
3394
|
+
val: { type: v.number, value: n, location: g, style: c.val },
|
|
3360
3395
|
err: null
|
|
3361
3396
|
};
|
|
3362
3397
|
} else {
|
|
3363
|
-
if (
|
|
3364
|
-
return this.error(
|
|
3365
|
-
var
|
|
3366
|
-
this.locale && (
|
|
3367
|
-
var
|
|
3368
|
-
type:
|
|
3369
|
-
pattern:
|
|
3398
|
+
if (B.length === 0)
|
|
3399
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
3400
|
+
var w = B;
|
|
3401
|
+
this.locale && (w = Wn(B, this.locale));
|
|
3402
|
+
var f = {
|
|
3403
|
+
type: K.dateTime,
|
|
3404
|
+
pattern: w,
|
|
3370
3405
|
location: u.styleLocation,
|
|
3371
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3372
|
-
}, L = a === "date" ?
|
|
3406
|
+
parsedOptions: this.shouldParseSkeletons ? Dn(w) : {}
|
|
3407
|
+
}, L = a === "date" ? v.date : v.time;
|
|
3373
3408
|
return {
|
|
3374
|
-
val: { type: L, value: n, location: g, style:
|
|
3409
|
+
val: { type: L, value: n, location: g, style: f },
|
|
3375
3410
|
err: null
|
|
3376
3411
|
};
|
|
3377
3412
|
}
|
|
3378
3413
|
}
|
|
3379
3414
|
return {
|
|
3380
3415
|
val: {
|
|
3381
|
-
type: a === "number" ?
|
|
3416
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3382
3417
|
value: n,
|
|
3383
3418
|
location: g,
|
|
3384
3419
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -3389,19 +3424,19 @@ var ni = (
|
|
|
3389
3424
|
case "plural":
|
|
3390
3425
|
case "selectordinal":
|
|
3391
3426
|
case "select": {
|
|
3392
|
-
var
|
|
3427
|
+
var T = this.clonePosition();
|
|
3393
3428
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3394
|
-
return this.error(
|
|
3429
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(T, He({}, T)));
|
|
3395
3430
|
this.bumpSpace();
|
|
3396
3431
|
var m = this.parseIdentifierIfPossible(), S = 0;
|
|
3397
3432
|
if (a !== "select" && m.value === "offset") {
|
|
3398
3433
|
if (!this.bumpIf(":"))
|
|
3399
|
-
return this.error(
|
|
3434
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3400
3435
|
this.bumpSpace();
|
|
3401
|
-
var
|
|
3402
|
-
if (
|
|
3403
|
-
return
|
|
3404
|
-
this.bumpSpace(), m = this.parseIdentifierIfPossible(), S =
|
|
3436
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3437
|
+
if (c.err)
|
|
3438
|
+
return c;
|
|
3439
|
+
this.bumpSpace(), m = this.parseIdentifierIfPossible(), S = c.val;
|
|
3405
3440
|
}
|
|
3406
3441
|
var $ = this.tryParsePluralOrSelectOptions(t, a, r, m);
|
|
3407
3442
|
if ($.err)
|
|
@@ -3409,32 +3444,32 @@ var ni = (
|
|
|
3409
3444
|
var y = this.tryParseArgumentClose(i);
|
|
3410
3445
|
if (y.err)
|
|
3411
3446
|
return y;
|
|
3412
|
-
var
|
|
3447
|
+
var oe = b(i, this.clonePosition());
|
|
3413
3448
|
return a === "select" ? {
|
|
3414
3449
|
val: {
|
|
3415
|
-
type:
|
|
3450
|
+
type: v.select,
|
|
3416
3451
|
value: n,
|
|
3417
|
-
options:
|
|
3418
|
-
location:
|
|
3452
|
+
options: Pt($.val),
|
|
3453
|
+
location: oe
|
|
3419
3454
|
},
|
|
3420
3455
|
err: null
|
|
3421
3456
|
} : {
|
|
3422
3457
|
val: {
|
|
3423
|
-
type:
|
|
3458
|
+
type: v.plural,
|
|
3424
3459
|
value: n,
|
|
3425
|
-
options:
|
|
3460
|
+
options: Pt($.val),
|
|
3426
3461
|
offset: S,
|
|
3427
3462
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3428
|
-
location:
|
|
3463
|
+
location: oe
|
|
3429
3464
|
},
|
|
3430
3465
|
err: null
|
|
3431
3466
|
};
|
|
3432
3467
|
}
|
|
3433
3468
|
default:
|
|
3434
|
-
return this.error(
|
|
3469
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(o, h));
|
|
3435
3470
|
}
|
|
3436
3471
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3437
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3472
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3438
3473
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3439
3474
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3440
3475
|
var n = this.char();
|
|
@@ -3443,7 +3478,7 @@ var ni = (
|
|
|
3443
3478
|
this.bump();
|
|
3444
3479
|
var i = this.clonePosition();
|
|
3445
3480
|
if (!this.bumpUntil("'"))
|
|
3446
|
-
return this.error(
|
|
3481
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3447
3482
|
this.bump();
|
|
3448
3483
|
break;
|
|
3449
3484
|
}
|
|
@@ -3473,52 +3508,52 @@ var ni = (
|
|
|
3473
3508
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3474
3509
|
var n = [];
|
|
3475
3510
|
try {
|
|
3476
|
-
n =
|
|
3511
|
+
n = Fn(t);
|
|
3477
3512
|
} catch (i) {
|
|
3478
|
-
return this.error(
|
|
3513
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3479
3514
|
}
|
|
3480
3515
|
return {
|
|
3481
3516
|
val: {
|
|
3482
|
-
type:
|
|
3517
|
+
type: K.number,
|
|
3483
3518
|
tokens: n,
|
|
3484
3519
|
location: r,
|
|
3485
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3520
|
+
parsedOptions: this.shouldParseSkeletons ? Xn(n) : {}
|
|
3486
3521
|
},
|
|
3487
3522
|
err: null
|
|
3488
3523
|
};
|
|
3489
3524
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3490
3525
|
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3491
3526
|
if (u.length === 0) {
|
|
3492
|
-
var
|
|
3527
|
+
var c = this.clonePosition();
|
|
3493
3528
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3494
|
-
var
|
|
3495
|
-
if (
|
|
3496
|
-
return
|
|
3497
|
-
l = b(
|
|
3529
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3530
|
+
if (f.err)
|
|
3531
|
+
return f;
|
|
3532
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3498
3533
|
} else
|
|
3499
3534
|
break;
|
|
3500
3535
|
}
|
|
3501
3536
|
if (h.has(u))
|
|
3502
|
-
return this.error(r === "select" ?
|
|
3537
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3503
3538
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3504
|
-
var
|
|
3539
|
+
var p = this.clonePosition();
|
|
3505
3540
|
if (!this.bumpIf("{"))
|
|
3506
|
-
return this.error(r === "select" ?
|
|
3541
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3507
3542
|
var y = this.parseMessage(t + 1, r, n);
|
|
3508
3543
|
if (y.err)
|
|
3509
3544
|
return y;
|
|
3510
|
-
var g = this.tryParseArgumentClose(
|
|
3545
|
+
var g = this.tryParseArgumentClose(p);
|
|
3511
3546
|
if (g.err)
|
|
3512
3547
|
return g;
|
|
3513
3548
|
a.push([
|
|
3514
3549
|
u,
|
|
3515
3550
|
{
|
|
3516
3551
|
value: y.val,
|
|
3517
|
-
location: b(
|
|
3552
|
+
location: b(p, this.clonePosition())
|
|
3518
3553
|
}
|
|
3519
3554
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3520
3555
|
}
|
|
3521
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3556
|
+
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 };
|
|
3522
3557
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3523
3558
|
var n = 1, i = this.clonePosition();
|
|
3524
3559
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3530,7 +3565,7 @@ var ni = (
|
|
|
3530
3565
|
break;
|
|
3531
3566
|
}
|
|
3532
3567
|
var h = b(i, this.clonePosition());
|
|
3533
|
-
return s ? (o *= n,
|
|
3568
|
+
return s ? (o *= n, ni(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3534
3569
|
}, e.prototype.offset = function() {
|
|
3535
3570
|
return this.position.offset;
|
|
3536
3571
|
}, e.prototype.isEOF = function() {
|
|
@@ -3545,7 +3580,7 @@ var ni = (
|
|
|
3545
3580
|
var t = this.position.offset;
|
|
3546
3581
|
if (t >= this.message.length)
|
|
3547
3582
|
throw Error("out of bound");
|
|
3548
|
-
var r =
|
|
3583
|
+
var r = lr(this.message, t);
|
|
3549
3584
|
if (r === void 0)
|
|
3550
3585
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3551
3586
|
return r;
|
|
@@ -3564,7 +3599,7 @@ var ni = (
|
|
|
3564
3599
|
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);
|
|
3565
3600
|
}
|
|
3566
3601
|
}, e.prototype.bumpIf = function(t) {
|
|
3567
|
-
if (
|
|
3602
|
+
if (Bt(this.message, t, this.offset())) {
|
|
3568
3603
|
for (var r = 0; r < t.length; r++)
|
|
3569
3604
|
this.bump();
|
|
3570
3605
|
return !0;
|
|
@@ -3586,7 +3621,7 @@ var ni = (
|
|
|
3586
3621
|
break;
|
|
3587
3622
|
}
|
|
3588
3623
|
}, e.prototype.bumpSpace = function() {
|
|
3589
|
-
for (; !this.isEOF() &&
|
|
3624
|
+
for (; !this.isEOF() && fr(this.char()); )
|
|
3590
3625
|
this.bump();
|
|
3591
3626
|
}, e.prototype.peek = function() {
|
|
3592
3627
|
if (this.isEOF())
|
|
@@ -3596,47 +3631,47 @@ var ni = (
|
|
|
3596
3631
|
}, e;
|
|
3597
3632
|
}()
|
|
3598
3633
|
);
|
|
3599
|
-
function
|
|
3634
|
+
function st(e) {
|
|
3600
3635
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3601
3636
|
}
|
|
3602
|
-
function
|
|
3603
|
-
return
|
|
3637
|
+
function ui(e) {
|
|
3638
|
+
return st(e) || e === 47;
|
|
3604
3639
|
}
|
|
3605
|
-
function
|
|
3640
|
+
function hi(e) {
|
|
3606
3641
|
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;
|
|
3607
3642
|
}
|
|
3608
|
-
function
|
|
3643
|
+
function fr(e) {
|
|
3609
3644
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3610
3645
|
}
|
|
3611
|
-
function
|
|
3646
|
+
function li(e) {
|
|
3612
3647
|
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;
|
|
3613
3648
|
}
|
|
3614
|
-
function
|
|
3649
|
+
function ot(e) {
|
|
3615
3650
|
e.forEach(function(t) {
|
|
3616
|
-
if (delete t.location,
|
|
3651
|
+
if (delete t.location, rr(t) || nr(t))
|
|
3617
3652
|
for (var r in t.options)
|
|
3618
|
-
delete t.options[r].location,
|
|
3653
|
+
delete t.options[r].location, ot(t.options[r].value);
|
|
3619
3654
|
else
|
|
3620
|
-
|
|
3655
|
+
Kt(t) && sr(t.style) || (er(t) || tr(t)) && tt(t.style) ? delete t.style.location : ir(t) && ot(t.children);
|
|
3621
3656
|
});
|
|
3622
3657
|
}
|
|
3623
|
-
function
|
|
3624
|
-
t === void 0 && (t = {}), t =
|
|
3625
|
-
var r = new
|
|
3658
|
+
function ci(e, t) {
|
|
3659
|
+
t === void 0 && (t = {}), t = He({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3660
|
+
var r = new ai(e, t).parse();
|
|
3626
3661
|
if (r.err) {
|
|
3627
|
-
var n = SyntaxError(
|
|
3662
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3628
3663
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3629
3664
|
}
|
|
3630
|
-
return t != null && t.captureLocation ||
|
|
3665
|
+
return t != null && t.captureLocation || ot(r.val), r.val;
|
|
3631
3666
|
}
|
|
3632
|
-
var
|
|
3667
|
+
var ee;
|
|
3633
3668
|
(function(e) {
|
|
3634
3669
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3635
|
-
})(
|
|
3636
|
-
var
|
|
3670
|
+
})(ee || (ee = {}));
|
|
3671
|
+
var Le = (
|
|
3637
3672
|
/** @class */
|
|
3638
3673
|
function(e) {
|
|
3639
|
-
|
|
3674
|
+
Ie(t, e);
|
|
3640
3675
|
function t(r, n, i) {
|
|
3641
3676
|
var s = e.call(this, r) || this;
|
|
3642
3677
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3645,48 +3680,48 @@ var Ce = (
|
|
|
3645
3680
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3646
3681
|
}, t;
|
|
3647
3682
|
}(Error)
|
|
3648
|
-
),
|
|
3683
|
+
), It = (
|
|
3649
3684
|
/** @class */
|
|
3650
3685
|
function(e) {
|
|
3651
|
-
|
|
3686
|
+
Ie(t, e);
|
|
3652
3687
|
function t(r, n, i, s) {
|
|
3653
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3688
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
|
|
3654
3689
|
}
|
|
3655
3690
|
return t;
|
|
3656
|
-
}(
|
|
3657
|
-
),
|
|
3691
|
+
}(Le)
|
|
3692
|
+
), fi = (
|
|
3658
3693
|
/** @class */
|
|
3659
3694
|
function(e) {
|
|
3660
|
-
|
|
3695
|
+
Ie(t, e);
|
|
3661
3696
|
function t(r, n, i) {
|
|
3662
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3697
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3663
3698
|
}
|
|
3664
3699
|
return t;
|
|
3665
|
-
}(
|
|
3666
|
-
),
|
|
3700
|
+
}(Le)
|
|
3701
|
+
), pi = (
|
|
3667
3702
|
/** @class */
|
|
3668
3703
|
function(e) {
|
|
3669
|
-
|
|
3704
|
+
Ie(t, e);
|
|
3670
3705
|
function t(r, n) {
|
|
3671
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3706
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3672
3707
|
}
|
|
3673
3708
|
return t;
|
|
3674
|
-
}(
|
|
3709
|
+
}(Le)
|
|
3675
3710
|
), A;
|
|
3676
3711
|
(function(e) {
|
|
3677
3712
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3678
3713
|
})(A || (A = {}));
|
|
3679
|
-
function
|
|
3714
|
+
function di(e) {
|
|
3680
3715
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3681
3716
|
var n = t[t.length - 1];
|
|
3682
3717
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3683
3718
|
}, []);
|
|
3684
3719
|
}
|
|
3685
|
-
function
|
|
3720
|
+
function mi(e) {
|
|
3686
3721
|
return typeof e == "function";
|
|
3687
3722
|
}
|
|
3688
|
-
function
|
|
3689
|
-
if (e.length === 1 &&
|
|
3723
|
+
function we(e, t, r, n, i, s, o) {
|
|
3724
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3690
3725
|
return [
|
|
3691
3726
|
{
|
|
3692
3727
|
type: A.literal,
|
|
@@ -3695,60 +3730,60 @@ function Te(e, t, r, n, i, s, o) {
|
|
|
3695
3730
|
];
|
|
3696
3731
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3697
3732
|
var l = u[h];
|
|
3698
|
-
if (
|
|
3733
|
+
if (Tt(l)) {
|
|
3699
3734
|
a.push({
|
|
3700
3735
|
type: A.literal,
|
|
3701
3736
|
value: l.value
|
|
3702
3737
|
});
|
|
3703
3738
|
continue;
|
|
3704
3739
|
}
|
|
3705
|
-
if (
|
|
3740
|
+
if (Rn(l)) {
|
|
3706
3741
|
typeof s == "number" && a.push({
|
|
3707
3742
|
type: A.literal,
|
|
3708
3743
|
value: r.getNumberFormat(t).format(s)
|
|
3709
3744
|
});
|
|
3710
3745
|
continue;
|
|
3711
3746
|
}
|
|
3712
|
-
var
|
|
3713
|
-
if (!(i &&
|
|
3714
|
-
throw new
|
|
3715
|
-
var
|
|
3716
|
-
if (
|
|
3717
|
-
(!
|
|
3718
|
-
type: typeof
|
|
3719
|
-
value:
|
|
3747
|
+
var c = l.value;
|
|
3748
|
+
if (!(i && c in i))
|
|
3749
|
+
throw new pi(c, o);
|
|
3750
|
+
var f = i[c];
|
|
3751
|
+
if ($n(l)) {
|
|
3752
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3753
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3754
|
+
value: f
|
|
3720
3755
|
});
|
|
3721
3756
|
continue;
|
|
3722
3757
|
}
|
|
3723
|
-
if (
|
|
3724
|
-
var
|
|
3758
|
+
if (er(l)) {
|
|
3759
|
+
var p = typeof l.style == "string" ? n.date[l.style] : tt(l.style) ? l.style.parsedOptions : void 0;
|
|
3725
3760
|
a.push({
|
|
3726
3761
|
type: A.literal,
|
|
3727
|
-
value: r.getDateTimeFormat(t,
|
|
3762
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3728
3763
|
});
|
|
3729
3764
|
continue;
|
|
3730
3765
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var
|
|
3766
|
+
if (tr(l)) {
|
|
3767
|
+
var p = typeof l.style == "string" ? n.time[l.style] : tt(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3733
3768
|
a.push({
|
|
3734
3769
|
type: A.literal,
|
|
3735
|
-
value: r.getDateTimeFormat(t,
|
|
3770
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3736
3771
|
});
|
|
3737
3772
|
continue;
|
|
3738
3773
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
var
|
|
3741
|
-
|
|
3774
|
+
if (Kt(l)) {
|
|
3775
|
+
var p = typeof l.style == "string" ? n.number[l.style] : sr(l.style) ? l.style.parsedOptions : void 0;
|
|
3776
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3742
3777
|
type: A.literal,
|
|
3743
|
-
value: r.getNumberFormat(t,
|
|
3778
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3744
3779
|
});
|
|
3745
3780
|
continue;
|
|
3746
3781
|
}
|
|
3747
|
-
if (
|
|
3748
|
-
var y = l.children, g = l.value,
|
|
3749
|
-
if (!
|
|
3750
|
-
throw new
|
|
3751
|
-
var
|
|
3782
|
+
if (ir(l)) {
|
|
3783
|
+
var y = l.children, g = l.value, B = i[g];
|
|
3784
|
+
if (!mi(B))
|
|
3785
|
+
throw new fi(g, "function", o);
|
|
3786
|
+
var w = we(y, t, r, n, i, s), L = B(w.map(function(S) {
|
|
3752
3787
|
return S.value;
|
|
3753
3788
|
}));
|
|
3754
3789
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(S) {
|
|
@@ -3758,42 +3793,42 @@ function Te(e, t, r, n, i, s, o) {
|
|
|
3758
3793
|
};
|
|
3759
3794
|
}));
|
|
3760
3795
|
}
|
|
3761
|
-
if (
|
|
3762
|
-
var
|
|
3763
|
-
if (!
|
|
3764
|
-
throw new
|
|
3765
|
-
a.push.apply(a,
|
|
3796
|
+
if (rr(l)) {
|
|
3797
|
+
var T = l.options[f] || l.options.other;
|
|
3798
|
+
if (!T)
|
|
3799
|
+
throw new It(l.value, f, Object.keys(l.options), o);
|
|
3800
|
+
a.push.apply(a, we(T.value, t, r, n, i));
|
|
3766
3801
|
continue;
|
|
3767
3802
|
}
|
|
3768
|
-
if (
|
|
3769
|
-
var
|
|
3770
|
-
if (!
|
|
3803
|
+
if (nr(l)) {
|
|
3804
|
+
var T = l.options["=".concat(f)];
|
|
3805
|
+
if (!T) {
|
|
3771
3806
|
if (!Intl.PluralRules)
|
|
3772
|
-
throw new
|
|
3807
|
+
throw new Le(`Intl.PluralRules is not available in this environment.
|
|
3773
3808
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3774
|
-
`,
|
|
3775
|
-
var m = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3776
|
-
|
|
3809
|
+
`, ee.MISSING_INTL_API, o);
|
|
3810
|
+
var m = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3811
|
+
T = l.options[m] || l.options.other;
|
|
3777
3812
|
}
|
|
3778
|
-
if (!
|
|
3779
|
-
throw new
|
|
3780
|
-
a.push.apply(a,
|
|
3813
|
+
if (!T)
|
|
3814
|
+
throw new It(l.value, f, Object.keys(l.options), o);
|
|
3815
|
+
a.push.apply(a, we(T.value, t, r, n, i, f - (l.offset || 0)));
|
|
3781
3816
|
continue;
|
|
3782
3817
|
}
|
|
3783
3818
|
}
|
|
3784
|
-
return
|
|
3819
|
+
return di(a);
|
|
3785
3820
|
}
|
|
3786
|
-
function
|
|
3787
|
-
return t ?
|
|
3788
|
-
return r[n] =
|
|
3821
|
+
function bi(e, t) {
|
|
3822
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3823
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3789
3824
|
}, {})) : e;
|
|
3790
3825
|
}
|
|
3791
|
-
function
|
|
3826
|
+
function yi(e, t) {
|
|
3792
3827
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3793
|
-
return r[n] =
|
|
3794
|
-
},
|
|
3828
|
+
return r[n] = bi(e[n], t[n]), r;
|
|
3829
|
+
}, U({}, e)) : e;
|
|
3795
3830
|
}
|
|
3796
|
-
function
|
|
3831
|
+
function ke(e) {
|
|
3797
3832
|
return {
|
|
3798
3833
|
create: function() {
|
|
3799
3834
|
return {
|
|
@@ -3807,39 +3842,39 @@ function Ge(e) {
|
|
|
3807
3842
|
}
|
|
3808
3843
|
};
|
|
3809
3844
|
}
|
|
3810
|
-
function
|
|
3845
|
+
function gi(e) {
|
|
3811
3846
|
return e === void 0 && (e = {
|
|
3812
3847
|
number: {},
|
|
3813
3848
|
dateTime: {},
|
|
3814
3849
|
pluralRules: {}
|
|
3815
3850
|
}), {
|
|
3816
|
-
getNumberFormat:
|
|
3851
|
+
getNumberFormat: Ge(function() {
|
|
3817
3852
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3818
3853
|
r[n] = arguments[n];
|
|
3819
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3854
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3820
3855
|
}, {
|
|
3821
|
-
cache:
|
|
3822
|
-
strategy:
|
|
3856
|
+
cache: ke(e.number),
|
|
3857
|
+
strategy: Fe.variadic
|
|
3823
3858
|
}),
|
|
3824
|
-
getDateTimeFormat:
|
|
3859
|
+
getDateTimeFormat: Ge(function() {
|
|
3825
3860
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3826
3861
|
r[n] = arguments[n];
|
|
3827
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3862
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3828
3863
|
}, {
|
|
3829
|
-
cache:
|
|
3830
|
-
strategy:
|
|
3864
|
+
cache: ke(e.dateTime),
|
|
3865
|
+
strategy: Fe.variadic
|
|
3831
3866
|
}),
|
|
3832
|
-
getPluralRules:
|
|
3867
|
+
getPluralRules: Ge(function() {
|
|
3833
3868
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3834
3869
|
r[n] = arguments[n];
|
|
3835
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3870
|
+
return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
|
|
3836
3871
|
}, {
|
|
3837
|
-
cache:
|
|
3838
|
-
strategy:
|
|
3872
|
+
cache: ke(e.pluralRules),
|
|
3873
|
+
strategy: Fe.variadic
|
|
3839
3874
|
})
|
|
3840
3875
|
};
|
|
3841
3876
|
}
|
|
3842
|
-
var
|
|
3877
|
+
var pr = (
|
|
3843
3878
|
/** @class */
|
|
3844
3879
|
function() {
|
|
3845
3880
|
function e(t, r, n, i) {
|
|
@@ -3853,12 +3888,12 @@ var hr = (
|
|
|
3853
3888
|
var u = s.formatToParts(h);
|
|
3854
3889
|
if (u.length === 1)
|
|
3855
3890
|
return u[0].value;
|
|
3856
|
-
var l = u.reduce(function(
|
|
3857
|
-
return !
|
|
3891
|
+
var l = u.reduce(function(c, f) {
|
|
3892
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3858
3893
|
}, []);
|
|
3859
3894
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3860
3895
|
}, this.formatToParts = function(h) {
|
|
3861
|
-
return
|
|
3896
|
+
return we(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3862
3897
|
}, this.resolvedOptions = function() {
|
|
3863
3898
|
var h;
|
|
3864
3899
|
return {
|
|
@@ -3871,13 +3906,13 @@ var hr = (
|
|
|
3871
3906
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3872
3907
|
var o = i || {};
|
|
3873
3908
|
o.formatters;
|
|
3874
|
-
var a =
|
|
3875
|
-
this.ast = e.__parse(t,
|
|
3909
|
+
var a = An(o, ["formatters"]);
|
|
3910
|
+
this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
|
|
3876
3911
|
} else
|
|
3877
3912
|
this.ast = t;
|
|
3878
3913
|
if (!Array.isArray(this.ast))
|
|
3879
3914
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3880
|
-
this.formats =
|
|
3915
|
+
this.formats = yi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
|
3881
3916
|
}
|
|
3882
3917
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3883
3918
|
get: function() {
|
|
@@ -3890,7 +3925,7 @@ var hr = (
|
|
|
3890
3925
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3891
3926
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3892
3927
|
}
|
|
3893
|
-
}, e.__parse =
|
|
3928
|
+
}, e.__parse = ci, e.formats = {
|
|
3894
3929
|
number: {
|
|
3895
3930
|
integer: {
|
|
3896
3931
|
maximumFractionDigits: 0
|
|
@@ -3951,7 +3986,7 @@ var hr = (
|
|
|
3951
3986
|
}, e;
|
|
3952
3987
|
}()
|
|
3953
3988
|
);
|
|
3954
|
-
function
|
|
3989
|
+
function vi(e, t) {
|
|
3955
3990
|
if (t == null)
|
|
3956
3991
|
return;
|
|
3957
3992
|
if (t in e)
|
|
@@ -3972,101 +4007,101 @@ function mi(e, t) {
|
|
|
3972
4007
|
n = void 0;
|
|
3973
4008
|
return n;
|
|
3974
4009
|
}
|
|
3975
|
-
const j = {},
|
|
4010
|
+
const j = {}, _i = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), dr = (e, t) => {
|
|
3976
4011
|
if (t == null)
|
|
3977
4012
|
return;
|
|
3978
4013
|
if (t in j && e in j[t])
|
|
3979
4014
|
return j[t][e];
|
|
3980
4015
|
const r = me(t);
|
|
3981
4016
|
for (let n = 0; n < r.length; n++) {
|
|
3982
|
-
const i = r[n], s =
|
|
4017
|
+
const i = r[n], s = xi(i, e);
|
|
3983
4018
|
if (s)
|
|
3984
|
-
return
|
|
4019
|
+
return _i(e, t, s);
|
|
3985
4020
|
}
|
|
3986
4021
|
};
|
|
3987
|
-
let
|
|
3988
|
-
const
|
|
3989
|
-
function
|
|
3990
|
-
return
|
|
4022
|
+
let ht;
|
|
4023
|
+
const de = Ce({});
|
|
4024
|
+
function Ei(e) {
|
|
4025
|
+
return ht[e] || null;
|
|
3991
4026
|
}
|
|
3992
|
-
function
|
|
3993
|
-
return e in
|
|
4027
|
+
function mr(e) {
|
|
4028
|
+
return e in ht;
|
|
3994
4029
|
}
|
|
3995
|
-
function
|
|
3996
|
-
if (!
|
|
4030
|
+
function xi(e, t) {
|
|
4031
|
+
if (!mr(e))
|
|
3997
4032
|
return null;
|
|
3998
|
-
const r =
|
|
3999
|
-
return
|
|
4033
|
+
const r = Ei(e);
|
|
4034
|
+
return vi(r, t);
|
|
4000
4035
|
}
|
|
4001
|
-
function
|
|
4036
|
+
function Si(e) {
|
|
4002
4037
|
if (e == null)
|
|
4003
4038
|
return;
|
|
4004
4039
|
const t = me(e);
|
|
4005
4040
|
for (let r = 0; r < t.length; r++) {
|
|
4006
4041
|
const n = t[r];
|
|
4007
|
-
if (
|
|
4042
|
+
if (mr(n))
|
|
4008
4043
|
return n;
|
|
4009
4044
|
}
|
|
4010
4045
|
}
|
|
4011
|
-
function
|
|
4012
|
-
delete j[e],
|
|
4046
|
+
function br(e, ...t) {
|
|
4047
|
+
delete j[e], de.update((r) => (r[e] = On.all([r[e] || {}, ...t]), r));
|
|
4013
4048
|
}
|
|
4014
|
-
|
|
4015
|
-
[
|
|
4049
|
+
ie(
|
|
4050
|
+
[de],
|
|
4016
4051
|
([e]) => Object.keys(e)
|
|
4017
4052
|
);
|
|
4018
|
-
|
|
4019
|
-
const
|
|
4020
|
-
function
|
|
4021
|
-
|
|
4053
|
+
de.subscribe((e) => ht = e);
|
|
4054
|
+
const Te = {};
|
|
4055
|
+
function wi(e, t) {
|
|
4056
|
+
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
|
4022
4057
|
}
|
|
4023
|
-
function
|
|
4024
|
-
return
|
|
4058
|
+
function yr(e) {
|
|
4059
|
+
return Te[e];
|
|
4025
4060
|
}
|
|
4026
|
-
function
|
|
4061
|
+
function Ti(e) {
|
|
4027
4062
|
return me(e).map((t) => {
|
|
4028
|
-
const r =
|
|
4063
|
+
const r = yr(t);
|
|
4029
4064
|
return [t, r ? [...r] : []];
|
|
4030
4065
|
}).filter(([, t]) => t.length > 0);
|
|
4031
4066
|
}
|
|
4032
|
-
function
|
|
4067
|
+
function Oe(e) {
|
|
4033
4068
|
return e == null ? !1 : me(e).some(
|
|
4034
4069
|
(t) => {
|
|
4035
4070
|
var r;
|
|
4036
|
-
return (r =
|
|
4071
|
+
return (r = yr(t)) == null ? void 0 : r.size;
|
|
4037
4072
|
}
|
|
4038
4073
|
);
|
|
4039
4074
|
}
|
|
4040
|
-
function
|
|
4075
|
+
function Hi(e, t) {
|
|
4041
4076
|
return Promise.all(
|
|
4042
|
-
t.map((n) => (
|
|
4043
|
-
).then((n) =>
|
|
4044
|
-
}
|
|
4045
|
-
const
|
|
4046
|
-
function
|
|
4047
|
-
if (!
|
|
4048
|
-
return e in
|
|
4049
|
-
const t =
|
|
4050
|
-
return
|
|
4077
|
+
t.map((n) => (wi(e, n), n().then((i) => i.default || i)))
|
|
4078
|
+
).then((n) => br(e, ...n));
|
|
4079
|
+
}
|
|
4080
|
+
const ae = {};
|
|
4081
|
+
function gr(e) {
|
|
4082
|
+
if (!Oe(e))
|
|
4083
|
+
return e in ae ? ae[e] : Promise.resolve();
|
|
4084
|
+
const t = Ti(e);
|
|
4085
|
+
return ae[e] = Promise.all(
|
|
4051
4086
|
t.map(
|
|
4052
|
-
([r, n]) =>
|
|
4087
|
+
([r, n]) => Hi(r, n)
|
|
4053
4088
|
)
|
|
4054
4089
|
).then(() => {
|
|
4055
|
-
if (
|
|
4056
|
-
return
|
|
4057
|
-
delete
|
|
4058
|
-
}),
|
|
4090
|
+
if (Oe(e))
|
|
4091
|
+
return gr(e);
|
|
4092
|
+
delete ae[e];
|
|
4093
|
+
}), ae[e];
|
|
4059
4094
|
}
|
|
4060
|
-
var
|
|
4095
|
+
var Lt = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable, Bi = (e, t) => {
|
|
4061
4096
|
var r = {};
|
|
4062
4097
|
for (var n in e)
|
|
4063
|
-
|
|
4064
|
-
if (e != null &&
|
|
4065
|
-
for (var n of
|
|
4066
|
-
t.indexOf(n) < 0 &&
|
|
4098
|
+
Oi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4099
|
+
if (e != null && Lt)
|
|
4100
|
+
for (var n of Lt(e))
|
|
4101
|
+
t.indexOf(n) < 0 && Ai.call(e, n) && (r[n] = e[n]);
|
|
4067
4102
|
return r;
|
|
4068
4103
|
};
|
|
4069
|
-
const
|
|
4104
|
+
const Pi = {
|
|
4070
4105
|
number: {
|
|
4071
4106
|
scientific: { notation: "scientific" },
|
|
4072
4107
|
engineering: { notation: "engineering" },
|
|
@@ -4096,159 +4131,159 @@ const wi = {
|
|
|
4096
4131
|
}
|
|
4097
4132
|
}
|
|
4098
4133
|
};
|
|
4099
|
-
function
|
|
4134
|
+
function Ci({ locale: e, id: t }) {
|
|
4100
4135
|
console.warn(
|
|
4101
4136
|
`[svelte-i18n] The message "${t}" was not found in "${me(
|
|
4102
4137
|
e
|
|
4103
|
-
).join('", "')}".${
|
|
4138
|
+
).join('", "')}".${Oe(k()) ? `
|
|
4104
4139
|
|
|
4105
4140
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
4106
4141
|
);
|
|
4107
4142
|
}
|
|
4108
|
-
const
|
|
4143
|
+
const Ii = {
|
|
4109
4144
|
fallbackLocale: null,
|
|
4110
4145
|
loadingDelay: 200,
|
|
4111
|
-
formats:
|
|
4146
|
+
formats: Pi,
|
|
4112
4147
|
warnOnMissingMessages: !0,
|
|
4113
4148
|
handleMissingMessage: void 0,
|
|
4114
4149
|
ignoreTag: !0
|
|
4115
|
-
},
|
|
4116
|
-
function
|
|
4117
|
-
return
|
|
4150
|
+
}, ue = Ii;
|
|
4151
|
+
function te() {
|
|
4152
|
+
return ue;
|
|
4118
4153
|
}
|
|
4119
|
-
function
|
|
4120
|
-
const t = e, { formats: r } = t, n =
|
|
4154
|
+
function Li(e) {
|
|
4155
|
+
const t = e, { formats: r } = t, n = Bi(t, ["formats"]);
|
|
4121
4156
|
let i = e.fallbackLocale;
|
|
4122
4157
|
if (e.initialLocale)
|
|
4123
4158
|
try {
|
|
4124
|
-
|
|
4159
|
+
pr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
4125
4160
|
} catch (s) {
|
|
4126
4161
|
console.warn(
|
|
4127
4162
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
4128
4163
|
);
|
|
4129
4164
|
}
|
|
4130
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
4165
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Ci : console.warn(
|
|
4131
4166
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
4132
|
-
)), Object.assign(
|
|
4133
|
-
}
|
|
4134
|
-
const
|
|
4135
|
-
var
|
|
4136
|
-
for (var r in t)
|
|
4137
|
-
|
|
4138
|
-
if (
|
|
4139
|
-
for (var r of
|
|
4140
|
-
|
|
4167
|
+
)), Object.assign(ue, n, { initialLocale: i }), r && ("number" in r && Object.assign(ue.formats.number, r.number), "date" in r && Object.assign(ue.formats.date, r.date), "time" in r && Object.assign(ue.formats.time, r.time)), X.set(i);
|
|
4168
|
+
}
|
|
4169
|
+
const Ve = Ce(!1);
|
|
4170
|
+
var Mi = Object.defineProperty, Ni = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
|
|
4171
|
+
for (var r in t || (t = {}))
|
|
4172
|
+
Ri.call(t, r) && Nt(e, r, t[r]);
|
|
4173
|
+
if (Mt)
|
|
4174
|
+
for (var r of Mt(t))
|
|
4175
|
+
Ui.call(t, r) && Nt(e, r, t[r]);
|
|
4141
4176
|
return e;
|
|
4142
|
-
},
|
|
4143
|
-
let
|
|
4144
|
-
const
|
|
4145
|
-
function
|
|
4177
|
+
}, Gi = (e, t) => Ni(e, $i(t));
|
|
4178
|
+
let at;
|
|
4179
|
+
const Ae = Ce(null);
|
|
4180
|
+
function $t(e) {
|
|
4146
4181
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4147
4182
|
}
|
|
4148
|
-
function me(e, t =
|
|
4149
|
-
const r =
|
|
4150
|
-
return t ? [.../* @__PURE__ */ new Set([...r,
|
|
4183
|
+
function me(e, t = te().fallbackLocale) {
|
|
4184
|
+
const r = $t(e);
|
|
4185
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...$t(t)])] : r;
|
|
4151
4186
|
}
|
|
4152
4187
|
function k() {
|
|
4153
|
-
return
|
|
4188
|
+
return at != null ? at : void 0;
|
|
4154
4189
|
}
|
|
4155
|
-
|
|
4156
|
-
|
|
4190
|
+
Ae.subscribe((e) => {
|
|
4191
|
+
at = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4157
4192
|
});
|
|
4158
|
-
const
|
|
4159
|
-
if (e &&
|
|
4160
|
-
const { loadingDelay: t } =
|
|
4193
|
+
const Fi = (e) => {
|
|
4194
|
+
if (e && Si(e) && Oe(e)) {
|
|
4195
|
+
const { loadingDelay: t } = te();
|
|
4161
4196
|
let r;
|
|
4162
4197
|
return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
|
|
4163
|
-
() =>
|
|
4198
|
+
() => Ve.set(!0),
|
|
4164
4199
|
t
|
|
4165
|
-
) :
|
|
4166
|
-
|
|
4200
|
+
) : Ve.set(!0), gr(e).then(() => {
|
|
4201
|
+
Ae.set(e);
|
|
4167
4202
|
}).finally(() => {
|
|
4168
|
-
clearTimeout(r),
|
|
4203
|
+
clearTimeout(r), Ve.set(!1);
|
|
4169
4204
|
});
|
|
4170
4205
|
}
|
|
4171
|
-
return
|
|
4172
|
-
}, X =
|
|
4173
|
-
set:
|
|
4174
|
-
}),
|
|
4206
|
+
return Ae.set(e);
|
|
4207
|
+
}, X = Gi(Di({}, Ae), {
|
|
4208
|
+
set: Fi
|
|
4209
|
+
}), Me = (e) => {
|
|
4175
4210
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4176
4211
|
return (n) => {
|
|
4177
4212
|
const i = JSON.stringify(n);
|
|
4178
4213
|
return i in t ? t[i] : t[i] = e(n);
|
|
4179
4214
|
};
|
|
4180
4215
|
};
|
|
4181
|
-
var
|
|
4216
|
+
var ji = Object.defineProperty, Be = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4182
4217
|
for (var r in t || (t = {}))
|
|
4183
|
-
|
|
4184
|
-
if (
|
|
4185
|
-
for (var r of
|
|
4186
|
-
|
|
4218
|
+
vr.call(t, r) && Rt(e, r, t[r]);
|
|
4219
|
+
if (Be)
|
|
4220
|
+
for (var r of Be(t))
|
|
4221
|
+
_r.call(t, r) && Rt(e, r, t[r]);
|
|
4187
4222
|
return e;
|
|
4188
|
-
},
|
|
4223
|
+
}, se = (e, t) => {
|
|
4189
4224
|
var r = {};
|
|
4190
4225
|
for (var n in e)
|
|
4191
|
-
|
|
4192
|
-
if (e != null &&
|
|
4193
|
-
for (var n of
|
|
4194
|
-
t.indexOf(n) < 0 &&
|
|
4226
|
+
vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4227
|
+
if (e != null && Be)
|
|
4228
|
+
for (var n of Be(e))
|
|
4229
|
+
t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
|
|
4195
4230
|
return r;
|
|
4196
4231
|
};
|
|
4197
|
-
const
|
|
4198
|
-
const { formats: r } =
|
|
4232
|
+
const fe = (e, t) => {
|
|
4233
|
+
const { formats: r } = te();
|
|
4199
4234
|
if (e in r && t in r[e])
|
|
4200
4235
|
return r[e][t];
|
|
4201
4236
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4202
|
-
},
|
|
4237
|
+
}, ki = Me(
|
|
4203
4238
|
(e) => {
|
|
4204
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4239
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4205
4240
|
if (r == null)
|
|
4206
4241
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4207
|
-
return n && (i =
|
|
4242
|
+
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
|
4208
4243
|
}
|
|
4209
|
-
),
|
|
4244
|
+
), Vi = Me(
|
|
4210
4245
|
(e) => {
|
|
4211
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4246
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4212
4247
|
if (r == null)
|
|
4213
4248
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4214
|
-
return n ? i =
|
|
4249
|
+
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4215
4250
|
}
|
|
4216
|
-
),
|
|
4251
|
+
), Xi = Me(
|
|
4217
4252
|
(e) => {
|
|
4218
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4253
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4219
4254
|
if (r == null)
|
|
4220
4255
|
throw new Error(
|
|
4221
4256
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4222
4257
|
);
|
|
4223
|
-
return n ? i =
|
|
4258
|
+
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4224
4259
|
}
|
|
4225
|
-
),
|
|
4260
|
+
), Wi = (e = {}) => {
|
|
4226
4261
|
var t = e, {
|
|
4227
4262
|
locale: r = k()
|
|
4228
|
-
} = t, n =
|
|
4263
|
+
} = t, n = se(t, [
|
|
4229
4264
|
"locale"
|
|
4230
4265
|
]);
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4266
|
+
return ki(lt({ locale: r }, n));
|
|
4267
|
+
}, zi = (e = {}) => {
|
|
4233
4268
|
var t = e, {
|
|
4234
4269
|
locale: r = k()
|
|
4235
|
-
} = t, n =
|
|
4270
|
+
} = t, n = se(t, [
|
|
4236
4271
|
"locale"
|
|
4237
4272
|
]);
|
|
4238
|
-
return
|
|
4239
|
-
},
|
|
4273
|
+
return Vi(lt({ locale: r }, n));
|
|
4274
|
+
}, Zi = (e = {}) => {
|
|
4240
4275
|
var t = e, {
|
|
4241
4276
|
locale: r = k()
|
|
4242
|
-
} = t, n =
|
|
4277
|
+
} = t, n = se(t, [
|
|
4243
4278
|
"locale"
|
|
4244
4279
|
]);
|
|
4245
|
-
return
|
|
4246
|
-
},
|
|
4280
|
+
return Xi(lt({ locale: r }, n));
|
|
4281
|
+
}, Qi = Me(
|
|
4247
4282
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4248
|
-
(e, t = k()) => new
|
|
4249
|
-
ignoreTag:
|
|
4283
|
+
(e, t = k()) => new pr(e, t, te().formats, {
|
|
4284
|
+
ignoreTag: te().ignoreTag
|
|
4250
4285
|
})
|
|
4251
|
-
),
|
|
4286
|
+
), qi = (e, t = {}) => {
|
|
4252
4287
|
var r, n, i, s;
|
|
4253
4288
|
let o = t;
|
|
4254
4289
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4261,39 +4296,39 @@ const de = (e, t) => {
|
|
|
4261
4296
|
throw new Error(
|
|
4262
4297
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4263
4298
|
);
|
|
4264
|
-
let l =
|
|
4299
|
+
let l = dr(e, h);
|
|
4265
4300
|
if (!l)
|
|
4266
|
-
l = (s = (i = (n = (r =
|
|
4301
|
+
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4267
4302
|
else if (typeof l != "string")
|
|
4268
4303
|
return console.warn(
|
|
4269
4304
|
`[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.`
|
|
4270
4305
|
), l;
|
|
4271
4306
|
if (!a)
|
|
4272
4307
|
return l;
|
|
4273
|
-
let
|
|
4308
|
+
let c = l;
|
|
4274
4309
|
try {
|
|
4275
|
-
|
|
4276
|
-
} catch (
|
|
4277
|
-
|
|
4310
|
+
c = Qi(l, h).format(a);
|
|
4311
|
+
} catch (f) {
|
|
4312
|
+
f instanceof Error && console.warn(
|
|
4278
4313
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4279
|
-
|
|
4314
|
+
f.message
|
|
4280
4315
|
);
|
|
4281
4316
|
}
|
|
4282
|
-
return
|
|
4283
|
-
},
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
window.emWidgets = { topic:
|
|
4289
|
-
const
|
|
4290
|
-
function
|
|
4317
|
+
return c;
|
|
4318
|
+
}, Ji = (e, t) => Zi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), es = (e, t = k()) => dr(e, t), ts = ie([X, de], () => qi);
|
|
4319
|
+
ie([X], () => Ji);
|
|
4320
|
+
ie([X], () => Yi);
|
|
4321
|
+
ie([X], () => Ki);
|
|
4322
|
+
ie([X, de], () => es);
|
|
4323
|
+
window.emWidgets = { topic: ln };
|
|
4324
|
+
const rs = (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));
|
|
4325
|
+
function ns(e, t) {
|
|
4291
4326
|
if (e) {
|
|
4292
4327
|
const r = document.createElement("style");
|
|
4293
4328
|
r.innerHTML = t, e.appendChild(r);
|
|
4294
4329
|
}
|
|
4295
4330
|
}
|
|
4296
|
-
function
|
|
4331
|
+
function is(e, t) {
|
|
4297
4332
|
const r = new URL(t);
|
|
4298
4333
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4299
4334
|
const i = document.createElement("style");
|
|
@@ -4302,7 +4337,7 @@ function es(e, t) {
|
|
|
4302
4337
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4303
4338
|
});
|
|
4304
4339
|
}
|
|
4305
|
-
function
|
|
4340
|
+
function ss(e, t, r) {
|
|
4306
4341
|
if (window.emMessageBus) {
|
|
4307
4342
|
const n = document.createElement("style");
|
|
4308
4343
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4310,8 +4345,8 @@ function ts(e, t, r) {
|
|
|
4310
4345
|
});
|
|
4311
4346
|
}
|
|
4312
4347
|
}
|
|
4313
|
-
var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}),
|
|
4314
|
-
const
|
|
4348
|
+
var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}), Er = /* @__PURE__ */ ((e) => (e.Showed = "Showed", e.Hiden = "Hiden", e))(Er || {});
|
|
4349
|
+
const Ut = {
|
|
4315
4350
|
en: {
|
|
4316
4351
|
mysteryChest: "Mystery Chest",
|
|
4317
4352
|
luckyWheel: "LuckyWheel",
|
|
@@ -4319,25 +4354,25 @@ const Mt = {
|
|
|
4319
4354
|
flipCoin: "Flip Coin"
|
|
4320
4355
|
}
|
|
4321
4356
|
};
|
|
4322
|
-
function
|
|
4323
|
-
|
|
4357
|
+
function Dt(e, t) {
|
|
4358
|
+
br(e, t);
|
|
4324
4359
|
}
|
|
4325
|
-
function
|
|
4326
|
-
|
|
4360
|
+
function os(e) {
|
|
4361
|
+
Li({
|
|
4327
4362
|
fallbackLocale: "en"
|
|
4328
4363
|
}), X.set(e);
|
|
4329
4364
|
}
|
|
4330
|
-
function
|
|
4331
|
-
|
|
4365
|
+
function as(e) {
|
|
4366
|
+
Pr(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}");
|
|
4332
4367
|
}
|
|
4333
|
-
function
|
|
4368
|
+
function us(e) {
|
|
4334
4369
|
let t;
|
|
4335
4370
|
return {
|
|
4336
4371
|
c() {
|
|
4337
4372
|
t = C("div"), t.textContent = "Comming soon";
|
|
4338
4373
|
},
|
|
4339
4374
|
m(r, n) {
|
|
4340
|
-
|
|
4375
|
+
ne(r, t, n);
|
|
4341
4376
|
},
|
|
4342
4377
|
p: I,
|
|
4343
4378
|
d(r) {
|
|
@@ -4345,14 +4380,14 @@ function is(e) {
|
|
|
4345
4380
|
}
|
|
4346
4381
|
};
|
|
4347
4382
|
}
|
|
4348
|
-
function
|
|
4383
|
+
function hs(e) {
|
|
4349
4384
|
let t;
|
|
4350
4385
|
return {
|
|
4351
4386
|
c() {
|
|
4352
4387
|
t = C("div"), t.textContent = "Comming soon";
|
|
4353
4388
|
},
|
|
4354
4389
|
m(r, n) {
|
|
4355
|
-
|
|
4390
|
+
ne(r, t, n);
|
|
4356
4391
|
},
|
|
4357
4392
|
p: I,
|
|
4358
4393
|
d(r) {
|
|
@@ -4360,14 +4395,14 @@ function ss(e) {
|
|
|
4360
4395
|
}
|
|
4361
4396
|
};
|
|
4362
4397
|
}
|
|
4363
|
-
function
|
|
4398
|
+
function ls(e) {
|
|
4364
4399
|
let t;
|
|
4365
4400
|
return {
|
|
4366
4401
|
c() {
|
|
4367
4402
|
t = C("div"), t.textContent = "Comming soon";
|
|
4368
4403
|
},
|
|
4369
4404
|
m(r, n) {
|
|
4370
|
-
|
|
4405
|
+
ne(r, t, n);
|
|
4371
4406
|
},
|
|
4372
4407
|
p: I,
|
|
4373
4408
|
d(r) {
|
|
@@ -4375,7 +4410,7 @@ function os(e) {
|
|
|
4375
4410
|
}
|
|
4376
4411
|
};
|
|
4377
4412
|
}
|
|
4378
|
-
function
|
|
4413
|
+
function cs(e) {
|
|
4379
4414
|
let t;
|
|
4380
4415
|
return {
|
|
4381
4416
|
c() {
|
|
@@ -4399,7 +4434,7 @@ function as(e) {
|
|
|
4399
4434
|
"clientstylingurl",
|
|
4400
4435
|
/*clientstylingurl*/
|
|
4401
4436
|
e[0]
|
|
4402
|
-
), R(t, "gameoverlay",
|
|
4437
|
+
), R(t, "gameoverlay", Er.Hiden), R(t, "openedbydefauls", !0), R(
|
|
4403
4438
|
t,
|
|
4404
4439
|
"clientstyling",
|
|
4405
4440
|
/*mysteryChestDrawerStyles*/
|
|
@@ -4407,7 +4442,7 @@ function as(e) {
|
|
|
4407
4442
|
);
|
|
4408
4443
|
},
|
|
4409
4444
|
m(r, n) {
|
|
4410
|
-
|
|
4445
|
+
ne(r, t, n);
|
|
4411
4446
|
},
|
|
4412
4447
|
p(r, n) {
|
|
4413
4448
|
n & /*endpoint*/
|
|
@@ -4441,70 +4476,70 @@ function as(e) {
|
|
|
4441
4476
|
}
|
|
4442
4477
|
};
|
|
4443
4478
|
}
|
|
4444
|
-
function
|
|
4479
|
+
function fs(e) {
|
|
4445
4480
|
let t, r, n, i, s, o = (
|
|
4446
4481
|
/*$_*/
|
|
4447
4482
|
e[7]("mysteryChest") + ""
|
|
4448
4483
|
), a, h, u, l = (
|
|
4449
4484
|
/*$_*/
|
|
4450
4485
|
e[7]("flipCoin") + ""
|
|
4451
|
-
),
|
|
4486
|
+
), c, f, p, y = (
|
|
4452
4487
|
/*$_*/
|
|
4453
4488
|
e[7]("luckyWheel") + ""
|
|
4454
|
-
), g,
|
|
4489
|
+
), g, B, w, L = (
|
|
4455
4490
|
/*$_*/
|
|
4456
4491
|
e[7]("dices") + ""
|
|
4457
|
-
),
|
|
4458
|
-
function
|
|
4492
|
+
), T, m, S, $, oe;
|
|
4493
|
+
function ct(E, M) {
|
|
4459
4494
|
if (
|
|
4460
4495
|
/*activeTab*/
|
|
4461
4496
|
E[6] === x.MysteryChests
|
|
4462
4497
|
)
|
|
4463
|
-
return
|
|
4498
|
+
return cs;
|
|
4464
4499
|
if (
|
|
4465
4500
|
/*activeTab*/
|
|
4466
4501
|
E[6] === x.LuckyWheels
|
|
4467
4502
|
)
|
|
4468
|
-
return
|
|
4503
|
+
return ls;
|
|
4469
4504
|
if (
|
|
4470
4505
|
/*activeTab*/
|
|
4471
4506
|
E[6] === x.FlipCoin
|
|
4472
4507
|
)
|
|
4473
|
-
return
|
|
4508
|
+
return hs;
|
|
4474
4509
|
if (
|
|
4475
4510
|
/*activeTab*/
|
|
4476
4511
|
E[6] === x.Dices
|
|
4477
4512
|
)
|
|
4478
|
-
return
|
|
4513
|
+
return us;
|
|
4479
4514
|
}
|
|
4480
|
-
let W =
|
|
4515
|
+
let W = ct(e), P = W && W(e);
|
|
4481
4516
|
return {
|
|
4482
4517
|
c() {
|
|
4483
|
-
t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = q(o), h = ye(), u = C("button"),
|
|
4518
|
+
t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = q(o), h = ye(), u = C("button"), c = q(l), f = ye(), p = C("button"), g = q(y), B = ye(), w = C("button"), T = q(L), m = ye(), P && P.c(), O(s, "data-index", x.MysteryChests), O(s, "class", "slider__tab"), F(
|
|
4484
4519
|
s,
|
|
4485
4520
|
"active",
|
|
4486
4521
|
/*activeTab*/
|
|
4487
4522
|
e[6] === x.MysteryChests
|
|
4488
|
-
),
|
|
4523
|
+
), O(u, "data-index", x.FlipCoin), O(u, "class", "slider__tab"), F(
|
|
4489
4524
|
u,
|
|
4490
4525
|
"active",
|
|
4491
4526
|
/*activeTab*/
|
|
4492
4527
|
e[6] === x.FlipCoin
|
|
4493
|
-
),
|
|
4494
|
-
|
|
4528
|
+
), O(p, "data-index", x.LuckyWheels), O(p, "class", "slider__tab"), F(
|
|
4529
|
+
p,
|
|
4495
4530
|
"active",
|
|
4496
4531
|
/*activeTab*/
|
|
4497
4532
|
e[6] === x.LuckyWheels
|
|
4498
|
-
),
|
|
4499
|
-
|
|
4533
|
+
), O(w, "data-index", x.Dices), O(w, "class", "slider__tab"), F(
|
|
4534
|
+
w,
|
|
4500
4535
|
"active",
|
|
4501
4536
|
/*activeTab*/
|
|
4502
4537
|
e[6] === x.Dices
|
|
4503
|
-
),
|
|
4538
|
+
), O(i, "class", "slider__container"), O(n, "class", "slider"), O(r, "class", "header"), O(t, "class", S = "container " + /*mobileView*/
|
|
4504
4539
|
(e[5] ? "mobile" : ""));
|
|
4505
4540
|
},
|
|
4506
4541
|
m(E, M) {
|
|
4507
|
-
|
|
4542
|
+
ne(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), $ || (oe = [
|
|
4508
4543
|
ge(
|
|
4509
4544
|
s,
|
|
4510
4545
|
"click",
|
|
@@ -4518,13 +4553,13 @@ function us(e) {
|
|
|
4518
4553
|
e[9]
|
|
4519
4554
|
),
|
|
4520
4555
|
ge(
|
|
4521
|
-
|
|
4556
|
+
p,
|
|
4522
4557
|
"click",
|
|
4523
4558
|
/*handleTabChange*/
|
|
4524
4559
|
e[9]
|
|
4525
4560
|
),
|
|
4526
4561
|
ge(
|
|
4527
|
-
|
|
4562
|
+
w,
|
|
4528
4563
|
"click",
|
|
4529
4564
|
/*handleTabChange*/
|
|
4530
4565
|
e[9]
|
|
@@ -4542,7 +4577,7 @@ function us(e) {
|
|
|
4542
4577
|
E[6] === x.MysteryChests
|
|
4543
4578
|
), M & /*$_*/
|
|
4544
4579
|
128 && l !== (l = /*$_*/
|
|
4545
|
-
E[7]("flipCoin") + "") && ve(
|
|
4580
|
+
E[7]("flipCoin") + "") && ve(c, l), M & /*activeTab*/
|
|
4546
4581
|
64 && F(
|
|
4547
4582
|
u,
|
|
4548
4583
|
"active",
|
|
@@ -4552,87 +4587,87 @@ function us(e) {
|
|
|
4552
4587
|
128 && y !== (y = /*$_*/
|
|
4553
4588
|
E[7]("luckyWheel") + "") && ve(g, y), M & /*activeTab*/
|
|
4554
4589
|
64 && F(
|
|
4555
|
-
|
|
4590
|
+
p,
|
|
4556
4591
|
"active",
|
|
4557
4592
|
/*activeTab*/
|
|
4558
4593
|
E[6] === x.LuckyWheels
|
|
4559
4594
|
), M & /*$_*/
|
|
4560
4595
|
128 && L !== (L = /*$_*/
|
|
4561
|
-
E[7]("dices") + "") && ve(
|
|
4596
|
+
E[7]("dices") + "") && ve(T, L), M & /*activeTab*/
|
|
4562
4597
|
64 && F(
|
|
4563
|
-
|
|
4598
|
+
w,
|
|
4564
4599
|
"active",
|
|
4565
4600
|
/*activeTab*/
|
|
4566
4601
|
E[6] === x.Dices
|
|
4567
|
-
), W === (W =
|
|
4602
|
+
), W === (W = ct(E)) && P ? P.p(E, M) : (P && P.d(1), P = W && W(E), P && (P.c(), P.m(t, null))), M & /*mobileView*/
|
|
4568
4603
|
32 && S !== (S = "container " + /*mobileView*/
|
|
4569
|
-
(E[5] ? "mobile" : "")) &&
|
|
4604
|
+
(E[5] ? "mobile" : "")) && O(t, "class", S);
|
|
4570
4605
|
},
|
|
4571
4606
|
i: I,
|
|
4572
4607
|
o: I,
|
|
4573
4608
|
d(E) {
|
|
4574
|
-
E && V(t), P && P.d(), e[13](null), $ = !1,
|
|
4609
|
+
E && V(t), P && P.d(), e[13](null), $ = !1, re(oe);
|
|
4575
4610
|
}
|
|
4576
4611
|
};
|
|
4577
4612
|
}
|
|
4578
|
-
function
|
|
4613
|
+
function ps(e, t, r) {
|
|
4579
4614
|
let n;
|
|
4580
|
-
|
|
4581
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t,
|
|
4582
|
-
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}",
|
|
4615
|
+
Br(e, ts, (m) => r(7, n = m));
|
|
4616
|
+
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;
|
|
4617
|
+
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 = (m) => $e(this, null, function* () {
|
|
4583
4618
|
r(6, y = m.target.getAttribute("data-index")), y === x.MysteryChests && window.postMessage({ type: "OpenMysteryChestDrawer" });
|
|
4584
|
-
}),
|
|
4585
|
-
|
|
4619
|
+
}), w = () => {
|
|
4620
|
+
os(l);
|
|
4586
4621
|
}, L = () => {
|
|
4587
4622
|
fetch(o).then((S) => S.json()).then((S) => {
|
|
4588
4623
|
Object.keys(S).forEach(($) => {
|
|
4589
|
-
|
|
4624
|
+
Dt($, S[$]);
|
|
4590
4625
|
});
|
|
4591
4626
|
});
|
|
4592
4627
|
};
|
|
4593
|
-
Object.keys(
|
|
4594
|
-
|
|
4595
|
-
}),
|
|
4628
|
+
Object.keys(Ut).forEach((m) => {
|
|
4629
|
+
Dt(m, Ut[m]);
|
|
4630
|
+
}), $r(() => (r(5, c = rs(f)), () => {
|
|
4596
4631
|
}));
|
|
4597
|
-
function
|
|
4598
|
-
|
|
4599
|
-
|
|
4632
|
+
function T(m) {
|
|
4633
|
+
Xe[m ? "unshift" : "push"](() => {
|
|
4634
|
+
p = m, r(4, p);
|
|
4600
4635
|
});
|
|
4601
4636
|
}
|
|
4602
4637
|
return e.$$set = (m) => {
|
|
4603
4638
|
"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);
|
|
4604
4639
|
}, e.$$.update = () => {
|
|
4605
4640
|
e.$$.dirty & /*lang*/
|
|
4606
|
-
8 && l &&
|
|
4641
|
+
8 && l && w(), e.$$.dirty & /*translationurl*/
|
|
4607
4642
|
2048 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4608
|
-
1040 && i &&
|
|
4609
|
-
17 && s &&
|
|
4610
|
-
4112 && a &&
|
|
4643
|
+
1040 && i && p && ns(p, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4644
|
+
17 && s && p && is(p, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4645
|
+
4112 && a && p && ss(p, `${a}.Style`);
|
|
4611
4646
|
}, [
|
|
4612
4647
|
s,
|
|
4613
4648
|
h,
|
|
4614
4649
|
u,
|
|
4615
4650
|
l,
|
|
4616
|
-
|
|
4617
|
-
|
|
4651
|
+
p,
|
|
4652
|
+
c,
|
|
4618
4653
|
y,
|
|
4619
4654
|
n,
|
|
4620
4655
|
g,
|
|
4621
|
-
|
|
4656
|
+
B,
|
|
4622
4657
|
i,
|
|
4623
4658
|
o,
|
|
4624
4659
|
a,
|
|
4625
|
-
|
|
4660
|
+
T
|
|
4626
4661
|
];
|
|
4627
4662
|
}
|
|
4628
|
-
class
|
|
4663
|
+
class xr extends Zr {
|
|
4629
4664
|
constructor(t) {
|
|
4630
|
-
super(),
|
|
4665
|
+
super(), Wr(
|
|
4631
4666
|
this,
|
|
4632
4667
|
t,
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4668
|
+
ps,
|
|
4669
|
+
fs,
|
|
4670
|
+
Ft,
|
|
4636
4671
|
{
|
|
4637
4672
|
clientstyling: 10,
|
|
4638
4673
|
clientstylingurl: 0,
|
|
@@ -4642,90 +4677,90 @@ class gr extends Vr {
|
|
|
4642
4677
|
session: 2,
|
|
4643
4678
|
lang: 3
|
|
4644
4679
|
},
|
|
4645
|
-
|
|
4680
|
+
as
|
|
4646
4681
|
);
|
|
4647
4682
|
}
|
|
4648
4683
|
get clientstyling() {
|
|
4649
4684
|
return this.$$.ctx[10];
|
|
4650
4685
|
}
|
|
4651
4686
|
set clientstyling(t) {
|
|
4652
|
-
this.$$set({ clientstyling: t }),
|
|
4687
|
+
this.$$set({ clientstyling: t }), D();
|
|
4653
4688
|
}
|
|
4654
4689
|
get clientstylingurl() {
|
|
4655
4690
|
return this.$$.ctx[0];
|
|
4656
4691
|
}
|
|
4657
4692
|
set clientstylingurl(t) {
|
|
4658
|
-
this.$$set({ clientstylingurl: t }),
|
|
4693
|
+
this.$$set({ clientstylingurl: t }), D();
|
|
4659
4694
|
}
|
|
4660
4695
|
get translationurl() {
|
|
4661
4696
|
return this.$$.ctx[11];
|
|
4662
4697
|
}
|
|
4663
4698
|
set translationurl(t) {
|
|
4664
|
-
this.$$set({ translationurl: t }),
|
|
4699
|
+
this.$$set({ translationurl: t }), D();
|
|
4665
4700
|
}
|
|
4666
4701
|
get mbsource() {
|
|
4667
4702
|
return this.$$.ctx[12];
|
|
4668
4703
|
}
|
|
4669
4704
|
set mbsource(t) {
|
|
4670
|
-
this.$$set({ mbsource: t }),
|
|
4705
|
+
this.$$set({ mbsource: t }), D();
|
|
4671
4706
|
}
|
|
4672
4707
|
get endpoint() {
|
|
4673
4708
|
return this.$$.ctx[1];
|
|
4674
4709
|
}
|
|
4675
4710
|
set endpoint(t) {
|
|
4676
|
-
this.$$set({ endpoint: t }),
|
|
4711
|
+
this.$$set({ endpoint: t }), D();
|
|
4677
4712
|
}
|
|
4678
4713
|
get session() {
|
|
4679
4714
|
return this.$$.ctx[2];
|
|
4680
4715
|
}
|
|
4681
4716
|
set session(t) {
|
|
4682
|
-
this.$$set({ session: t }),
|
|
4717
|
+
this.$$set({ session: t }), D();
|
|
4683
4718
|
}
|
|
4684
4719
|
get lang() {
|
|
4685
4720
|
return this.$$.ctx[3];
|
|
4686
4721
|
}
|
|
4687
4722
|
set lang(t) {
|
|
4688
|
-
this.$$set({ lang: t }),
|
|
4723
|
+
this.$$set({ lang: t }), D();
|
|
4689
4724
|
}
|
|
4690
4725
|
}
|
|
4691
|
-
|
|
4692
|
-
const
|
|
4726
|
+
zr(xr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, endpoint: {}, session: {}, lang: {} }, [], [], !0);
|
|
4727
|
+
const vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4693
4728
|
__proto__: null,
|
|
4694
|
-
default:
|
|
4729
|
+
default: xr
|
|
4695
4730
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4696
4731
|
export {
|
|
4697
4732
|
X as $,
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4733
|
+
gs as A,
|
|
4734
|
+
bs as B,
|
|
4735
|
+
ns as C,
|
|
4736
|
+
is as D,
|
|
4737
|
+
ss as E,
|
|
4738
|
+
vs as F,
|
|
4739
|
+
Zr as S,
|
|
4740
|
+
Pr as a,
|
|
4741
|
+
ne as b,
|
|
4742
|
+
ye as c,
|
|
4743
|
+
V as d,
|
|
4744
|
+
ys as e,
|
|
4745
|
+
D as f,
|
|
4746
|
+
rs as g,
|
|
4747
|
+
R as h,
|
|
4748
|
+
Wr as i,
|
|
4714
4749
|
C as j,
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4750
|
+
O as k,
|
|
4751
|
+
H as l,
|
|
4752
|
+
ge as m,
|
|
4718
4753
|
I as n,
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4754
|
+
$r as o,
|
|
4755
|
+
ms as p,
|
|
4756
|
+
zr as q,
|
|
4757
|
+
br as r,
|
|
4758
|
+
Ft as s,
|
|
4759
|
+
re as t,
|
|
4725
4760
|
ve as u,
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4761
|
+
q as v,
|
|
4762
|
+
Br as w,
|
|
4763
|
+
Xe as x,
|
|
4764
|
+
ts as y,
|
|
4730
4765
|
F as z
|
|
4731
4766
|
};
|