@everymatrix/player-account-gaming-limits 1.75.0 → 1.76.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/{PlayerAccountGamingLimits-DtzP7G6K.js → PlayerAccountGamingLimits-B8dVy1dw.js} +937 -916
- package/components/PlayerAccountGamingLimits-BFWvpDsh.cjs +21 -0
- package/components/{PlayerAccountGamingLimits-DZxeJ9O6.js → PlayerAccountGamingLimits-Csz1rGwm.js} +935 -914
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Cojk6mIA.js → PlayerAccountGamingLimitsConfirmationModal-BSyUmrl3.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Coe5msP4.js → PlayerAccountGamingLimitsConfirmationModal-Ct3UzL1l.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DsRj01Df.cjs → PlayerAccountGamingLimitsConfirmationModal-beH99OjB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-CuYXb_Td.js → PlayerAccountGamingLimitsGroupEdit-56lXVmhz.js} +54 -56
- package/components/{PlayerAccountGamingLimitsGroupEdit-DnDtGiqd.js → PlayerAccountGamingLimitsGroupEdit-5CQm4ZCc.js} +54 -56
- package/components/PlayerAccountGamingLimitsGroupEdit-C6B13sEM.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-x9MVFt7G.js → PlayerAccountGamingLimitsInfoCard-DJVcHz9f.js} +95 -95
- package/components/{PlayerAccountGamingLimitsInfoCard-DDFrYx0M.js → PlayerAccountGamingLimitsInfoCard-DYnNmpCR.js} +91 -91
- package/components/{PlayerAccountGamingLimitsInfoCard-CtpmE0je.cjs → PlayerAccountGamingLimitsInfoCard-Fw7CHUvq.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BHOTrnnB.js → PlayerAccountGamingLimitsPopup-BgSqCL5f.js} +26 -26
- package/components/{PlayerAccountGamingLimitsPopup-DjnXMxiO.cjs → PlayerAccountGamingLimitsPopup-CjUttWsG.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-9t0My0ez.js → PlayerAccountGamingLimitsPopup-ky7XPDCp.js} +26 -26
- package/components/{PlayerAccountModal-CUiC1zgO.cjs → PlayerAccountModal-CfM5jG9-.cjs} +1 -1
- package/components/{PlayerAccountModal-BaTp6xqc.js → PlayerAccountModal-ChUAMeqV.js} +33 -33
- package/components/{PlayerAccountModal-Dv-RPvC_.js → PlayerAccountModal-woh_9W4B.js} +33 -33
- package/es2015/player-account-gaming-limits.cjs +1 -1
- package/es2015/player-account-gaming-limits.js +1 -1
- package/esnext/player-account-gaming-limits.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimits-B7Ae4m4I.cjs +0 -21
- package/components/PlayerAccountGamingLimitsGroupEdit-oQYdpkFq.cjs +0 -1
package/components/{PlayerAccountGamingLimits-DtzP7G6K.js → PlayerAccountGamingLimits-B8dVy1dw.js}
RENAMED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
var Nr = Object.defineProperty, Cr = Object.defineProperties;
|
|
2
2
|
var Rr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var Gr = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
3
|
+
var gt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Gr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Re = (e, t, r) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Gr.call(t, r) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Gr.call(t, r) && Re(e, r, t[r]);
|
|
8
|
+
if (gt)
|
|
9
|
+
for (var r of gt(t))
|
|
10
|
+
$r.call(t, r) && Re(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, yt = (e, t) => Cr(e, Rr(t));
|
|
13
|
+
var I = (e, t, r) => (Re(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var vt = (e, t, r) => new Promise((i, n) => {
|
|
15
|
+
var o = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(r.next(u));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
n(l);
|
|
20
20
|
}
|
|
21
21
|
}, a = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(r.throw(u));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
n(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function M() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const Dr = (e) => e;
|
|
33
|
+
function Ur(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -38,25 +38,25 @@ function $r(e, t) {
|
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Xt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function _t() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function j(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(Xt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pe(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Wt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
56
|
function Fr(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function zt(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
61
|
for (const i of t)
|
|
62
62
|
i(void 0);
|
|
@@ -66,39 +66,39 @@ function Wt(e, ...t) {
|
|
|
66
66
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
67
67
|
}
|
|
68
68
|
function jr(e, t, r) {
|
|
69
|
-
e.$$.on_destroy.push(
|
|
69
|
+
e.$$.on_destroy.push(zt(t, r));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function $o(e, t, r, i) {
|
|
72
72
|
if (e) {
|
|
73
|
-
const n =
|
|
73
|
+
const n = Zt(e, t, r, i);
|
|
74
74
|
return e[0](n);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return e[1] && i ?
|
|
77
|
+
function Zt(e, t, r, i) {
|
|
78
|
+
return e[1] && i ? Ur(r.ctx.slice(), e[1](i(t))) : r.ctx;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Do(e, t, r, i) {
|
|
81
81
|
if (e[2] && i) {
|
|
82
82
|
const n = e[2](i(r));
|
|
83
83
|
if (t.dirty === void 0)
|
|
84
84
|
return n;
|
|
85
85
|
if (typeof n == "object") {
|
|
86
|
-
const
|
|
87
|
-
for (let
|
|
88
|
-
s
|
|
89
|
-
return
|
|
86
|
+
const o = [], a = Math.max(t.dirty.length, n.length);
|
|
87
|
+
for (let s = 0; s < a; s += 1)
|
|
88
|
+
o[s] = t.dirty[s] | n[s];
|
|
89
|
+
return o;
|
|
90
90
|
}
|
|
91
91
|
return t.dirty | n;
|
|
92
92
|
}
|
|
93
93
|
return t.dirty;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Uo(e, t, r, i, n, o) {
|
|
96
96
|
if (n) {
|
|
97
|
-
const a =
|
|
97
|
+
const a = Zt(t, r, i, o);
|
|
98
98
|
e.p(a, n);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Fo(e) {
|
|
102
102
|
if (e.ctx.length > 32) {
|
|
103
103
|
const t = [], r = e.ctx.length / 32;
|
|
104
104
|
for (let i = 0; i < r; i++)
|
|
@@ -107,36 +107,36 @@ function Us(e) {
|
|
|
107
107
|
}
|
|
108
108
|
return -1;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let kr =
|
|
112
|
-
const
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
t.c(e) || (
|
|
116
|
-
}),
|
|
110
|
+
const Qt = typeof window != "undefined";
|
|
111
|
+
let kr = Qt ? () => window.performance.now() : () => Date.now(), lt = Qt ? (e) => requestAnimationFrame(e) : M;
|
|
112
|
+
const q = /* @__PURE__ */ new Set();
|
|
113
|
+
function qt(e) {
|
|
114
|
+
q.forEach((t) => {
|
|
115
|
+
t.c(e) || (q.delete(t), t.f());
|
|
116
|
+
}), q.size !== 0 && lt(qt);
|
|
117
117
|
}
|
|
118
118
|
function Vr(e) {
|
|
119
119
|
let t;
|
|
120
|
-
return
|
|
120
|
+
return q.size === 0 && lt(qt), {
|
|
121
121
|
promise: new Promise((r) => {
|
|
122
|
-
|
|
122
|
+
q.add(t = { c: e, f: r });
|
|
123
123
|
}),
|
|
124
124
|
abort() {
|
|
125
|
-
|
|
125
|
+
q.delete(t);
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function w(e, t) {
|
|
130
130
|
e.appendChild(t);
|
|
131
131
|
}
|
|
132
132
|
function Xr(e, t, r) {
|
|
133
|
-
const i =
|
|
133
|
+
const i = ht(e);
|
|
134
134
|
if (!i.getElementById(t)) {
|
|
135
|
-
const n =
|
|
136
|
-
n.id = t, n.textContent = r,
|
|
135
|
+
const n = O("style");
|
|
136
|
+
n.id = t, n.textContent = r, Jt(i, n);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function ht(e) {
|
|
140
140
|
if (!e)
|
|
141
141
|
return document;
|
|
142
142
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -147,11 +147,11 @@ function at(e) {
|
|
|
147
147
|
) : e.ownerDocument;
|
|
148
148
|
}
|
|
149
149
|
function Wr(e) {
|
|
150
|
-
const t =
|
|
151
|
-
return t.textContent = "/* empty */",
|
|
150
|
+
const t = O("style");
|
|
151
|
+
return t.textContent = "/* empty */", Jt(ht(e), t), t.sheet;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Jt(e, t) {
|
|
154
|
+
return w(
|
|
155
155
|
/** @type {Document} */
|
|
156
156
|
e.head || e,
|
|
157
157
|
t
|
|
@@ -163,29 +163,29 @@ function re(e, t, r) {
|
|
|
163
163
|
function F(e) {
|
|
164
164
|
e.parentNode && e.parentNode.removeChild(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function jo(e, t) {
|
|
167
167
|
for (let r = 0; r < e.length; r += 1)
|
|
168
168
|
e[r] && e[r].d(t);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function O(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function X(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function le(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function Z() {
|
|
180
|
+
return le(" ");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
182
|
+
function ko() {
|
|
183
|
+
return le("");
|
|
184
184
|
}
|
|
185
185
|
function zr(e, t, r, i) {
|
|
186
186
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Vo(e) {
|
|
189
189
|
return function(t) {
|
|
190
190
|
return t.preventDefault(), e.call(this, t);
|
|
191
191
|
};
|
|
@@ -197,20 +197,20 @@ function m(e, t, r) {
|
|
|
197
197
|
const i = t.toLowerCase();
|
|
198
198
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Xo(e) {
|
|
201
201
|
return e === "" ? null : +e;
|
|
202
202
|
}
|
|
203
203
|
function Zr(e) {
|
|
204
204
|
return Array.from(e.childNodes);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Yt(e, t) {
|
|
207
207
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
208
208
|
t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Wo(e, t) {
|
|
211
211
|
e.value = t == null ? "" : t;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function zo(e, t, r) {
|
|
214
214
|
for (let i = 0; i < e.options.length; i += 1) {
|
|
215
215
|
const n = e.options[i];
|
|
216
216
|
if (n.__value === t) {
|
|
@@ -220,7 +220,7 @@ function Xs(e, t, r) {
|
|
|
220
220
|
}
|
|
221
221
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Zo(e) {
|
|
224
224
|
const t = e.querySelector(":checked");
|
|
225
225
|
return t && t.__value;
|
|
226
226
|
}
|
|
@@ -248,134 +248,134 @@ function Yr(e, t) {
|
|
|
248
248
|
const r = { stylesheet: Wr(t), rules: {} };
|
|
249
249
|
return xe.set(e, r), r;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Et(e, t, r, i, n, o, a, s = 0) {
|
|
252
252
|
const u = 16.666 / i;
|
|
253
253
|
let l = `{
|
|
254
254
|
`;
|
|
255
255
|
for (let d = 0; d <= 1; d += u) {
|
|
256
|
-
const v = t + (r - t) *
|
|
256
|
+
const v = t + (r - t) * o(d);
|
|
257
257
|
l += d * 100 + `%{${a(v, 1 - v)}}
|
|
258
258
|
`;
|
|
259
259
|
}
|
|
260
260
|
const h = l + `100% {${a(r, 1 - r)}}
|
|
261
|
-
}`, f = `__svelte_${Jr(h)}_${
|
|
261
|
+
}`, f = `__svelte_${Jr(h)}_${s}`, c = ht(e), { stylesheet: b, rules: p } = xe.get(c) || Yr(c, e);
|
|
262
262
|
p[f] || (p[f] = !0, b.insertRule(`@keyframes ${f} ${h}`, b.cssRules.length));
|
|
263
263
|
const g = e.style.animation || "";
|
|
264
264
|
return e.style.animation = `${g ? `${g}, ` : ""}${f} ${i}ms linear ${n}ms 1 both`, we += 1, f;
|
|
265
265
|
}
|
|
266
266
|
function Kr(e, t) {
|
|
267
267
|
const r = (e.style.animation || "").split(", "), i = r.filter(
|
|
268
|
-
t ? (
|
|
268
|
+
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
269
269
|
// remove all Svelte animations
|
|
270
270
|
), n = r.length - i.length;
|
|
271
271
|
n && (e.style.animation = i.join(", "), we -= n, we || ei());
|
|
272
272
|
}
|
|
273
273
|
function ei() {
|
|
274
|
-
|
|
274
|
+
lt(() => {
|
|
275
275
|
we || (xe.forEach((e) => {
|
|
276
276
|
const { ownerNode: t } = e.stylesheet;
|
|
277
277
|
t && F(t);
|
|
278
278
|
}), xe.clear());
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
let
|
|
282
|
-
function
|
|
283
|
-
|
|
281
|
+
let he;
|
|
282
|
+
function ue(e) {
|
|
283
|
+
he = e;
|
|
284
284
|
}
|
|
285
285
|
function ti() {
|
|
286
|
-
if (!
|
|
286
|
+
if (!he)
|
|
287
287
|
throw new Error("Function called outside component initialization");
|
|
288
|
-
return
|
|
288
|
+
return he;
|
|
289
289
|
}
|
|
290
290
|
function ri(e) {
|
|
291
291
|
ti().$$.on_mount.push(e);
|
|
292
292
|
}
|
|
293
|
-
const
|
|
294
|
-
let
|
|
295
|
-
const
|
|
296
|
-
let
|
|
293
|
+
const Q = [], We = [];
|
|
294
|
+
let J = [];
|
|
295
|
+
const xt = [], ii = /* @__PURE__ */ Promise.resolve();
|
|
296
|
+
let ze = !1;
|
|
297
297
|
function ni() {
|
|
298
|
-
|
|
298
|
+
ze || (ze = !0, ii.then(A));
|
|
299
299
|
}
|
|
300
300
|
function Le(e) {
|
|
301
|
-
|
|
301
|
+
J.push(e);
|
|
302
302
|
}
|
|
303
|
-
const
|
|
304
|
-
let
|
|
303
|
+
const Ge = /* @__PURE__ */ new Set();
|
|
304
|
+
let W = 0;
|
|
305
305
|
function A() {
|
|
306
|
-
if (
|
|
306
|
+
if (W !== 0)
|
|
307
307
|
return;
|
|
308
|
-
const e =
|
|
308
|
+
const e = he;
|
|
309
309
|
do {
|
|
310
310
|
try {
|
|
311
|
-
for (;
|
|
312
|
-
const t =
|
|
313
|
-
|
|
311
|
+
for (; W < Q.length; ) {
|
|
312
|
+
const t = Q[W];
|
|
313
|
+
W++, ue(t), oi(t.$$);
|
|
314
314
|
}
|
|
315
315
|
} catch (t) {
|
|
316
|
-
throw
|
|
316
|
+
throw Q.length = 0, W = 0, t;
|
|
317
317
|
}
|
|
318
|
-
for (
|
|
319
|
-
|
|
320
|
-
for (let t = 0; t <
|
|
321
|
-
const r =
|
|
322
|
-
|
|
318
|
+
for (ue(null), Q.length = 0, W = 0; We.length; )
|
|
319
|
+
We.pop()();
|
|
320
|
+
for (let t = 0; t < J.length; t += 1) {
|
|
321
|
+
const r = J[t];
|
|
322
|
+
Ge.has(r) || (Ge.add(r), r());
|
|
323
323
|
}
|
|
324
|
-
|
|
325
|
-
} while (
|
|
326
|
-
for (;
|
|
327
|
-
|
|
328
|
-
|
|
324
|
+
J.length = 0;
|
|
325
|
+
} while (Q.length);
|
|
326
|
+
for (; xt.length; )
|
|
327
|
+
xt.pop()();
|
|
328
|
+
ze = !1, Ge.clear(), ue(e);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function oi(e) {
|
|
331
331
|
if (e.fragment !== null) {
|
|
332
332
|
e.update(), j(e.before_update);
|
|
333
333
|
const t = e.dirty;
|
|
334
334
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function si(e) {
|
|
338
338
|
const t = [], r = [];
|
|
339
|
-
|
|
339
|
+
J.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), J = t;
|
|
340
340
|
}
|
|
341
|
-
let
|
|
341
|
+
let se;
|
|
342
342
|
function ai() {
|
|
343
|
-
return
|
|
344
|
-
|
|
345
|
-
})),
|
|
343
|
+
return se || (se = Promise.resolve(), se.then(() => {
|
|
344
|
+
se = null;
|
|
345
|
+
})), se;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function $e(e, t, r) {
|
|
348
348
|
e.dispatchEvent(Qr(`${t ? "intro" : "outro"}${r}`));
|
|
349
349
|
}
|
|
350
350
|
const be = /* @__PURE__ */ new Set();
|
|
351
|
-
let
|
|
352
|
-
function
|
|
353
|
-
|
|
351
|
+
let G;
|
|
352
|
+
function Qo() {
|
|
353
|
+
G = {
|
|
354
354
|
r: 0,
|
|
355
355
|
c: [],
|
|
356
|
-
p:
|
|
356
|
+
p: G
|
|
357
357
|
// parent group
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
360
|
+
function qo() {
|
|
361
|
+
G.r || j(G.c), G = G.p;
|
|
362
362
|
}
|
|
363
363
|
function ui(e, t) {
|
|
364
364
|
e && e.i && (be.delete(e), e.i(t));
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Jo(e, t, r, i) {
|
|
367
367
|
if (e && e.o) {
|
|
368
368
|
if (be.has(e))
|
|
369
369
|
return;
|
|
370
|
-
be.add(e),
|
|
370
|
+
be.add(e), G.c.push(() => {
|
|
371
371
|
be.delete(e), i && (r && e.d(1), i());
|
|
372
372
|
}), e.o(t);
|
|
373
373
|
} else
|
|
374
374
|
i && i();
|
|
375
375
|
}
|
|
376
376
|
const li = { duration: 0 };
|
|
377
|
-
function
|
|
378
|
-
let
|
|
377
|
+
function Yo(e, t, r, i) {
|
|
378
|
+
let o = t(e, r, { direction: "both" }), a = i ? 0 : 1, s = null, u = null, l = null, h;
|
|
379
379
|
function f() {
|
|
380
380
|
l && Kr(e, l);
|
|
381
381
|
}
|
|
@@ -398,73 +398,73 @@ function qs(e, t, r, i) {
|
|
|
398
398
|
const {
|
|
399
399
|
delay: g = 0,
|
|
400
400
|
duration: d = 300,
|
|
401
|
-
easing: v =
|
|
401
|
+
easing: v = Dr,
|
|
402
402
|
tick: T = M,
|
|
403
403
|
css: S
|
|
404
|
-
} =
|
|
404
|
+
} = o || li, N = {
|
|
405
405
|
start: kr() + g,
|
|
406
406
|
b: p
|
|
407
407
|
};
|
|
408
|
-
p || (
|
|
409
|
-
e.inert, e.inert = !0)),
|
|
410
|
-
if (u &&
|
|
408
|
+
p || (N.group = G, G.r += 1), "inert" in e && (p ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
409
|
+
e.inert, e.inert = !0)), s || u ? u = N : (S && (f(), l = Et(e, a, p, d, g, v, S)), p && T(0, 1), s = c(N, d), Le(() => $e(e, p, "start")), Vr((P) => {
|
|
410
|
+
if (u && P > u.start && (s = c(u, d), u = null, $e(e, s.b, "start"), S && (f(), l = Et(
|
|
411
411
|
e,
|
|
412
412
|
a,
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
s.b,
|
|
414
|
+
s.duration,
|
|
415
415
|
0,
|
|
416
416
|
v,
|
|
417
|
-
|
|
418
|
-
))),
|
|
419
|
-
if (
|
|
420
|
-
T(a =
|
|
421
|
-
else if (
|
|
422
|
-
const
|
|
423
|
-
a =
|
|
417
|
+
o.css
|
|
418
|
+
))), s) {
|
|
419
|
+
if (P >= s.end)
|
|
420
|
+
T(a = s.b, 1 - a), $e(e, s.b, "end"), u || (s.b ? f() : --s.group.r || j(s.group.c)), s = null;
|
|
421
|
+
else if (P >= s.start) {
|
|
422
|
+
const R = P - s.start;
|
|
423
|
+
a = s.a + s.d * v(R / s.duration), T(a, 1 - a);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
return !!(
|
|
426
|
+
return !!(s || u);
|
|
427
427
|
}));
|
|
428
428
|
}
|
|
429
429
|
return {
|
|
430
430
|
run(p) {
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
Pe(o) ? ai().then(() => {
|
|
432
|
+
o = o({ direction: p ? "in" : "out" }), b(p);
|
|
433
433
|
}) : b(p);
|
|
434
434
|
},
|
|
435
435
|
end() {
|
|
436
|
-
f(),
|
|
436
|
+
f(), s = u = null;
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Ko(e) {
|
|
441
441
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
442
442
|
}
|
|
443
443
|
function hi(e, t, r) {
|
|
444
444
|
const { fragment: i, after_update: n } = e.$$;
|
|
445
445
|
i && i.m(t, r), Le(() => {
|
|
446
|
-
const
|
|
447
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
446
|
+
const o = e.$$.on_mount.map(Xt).filter(Pe);
|
|
447
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : j(o), e.$$.on_mount = [];
|
|
448
448
|
}), n.forEach(Le);
|
|
449
449
|
}
|
|
450
450
|
function ci(e, t) {
|
|
451
451
|
const r = e.$$;
|
|
452
|
-
r.fragment !== null && (
|
|
452
|
+
r.fragment !== null && (si(r.after_update), j(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
453
453
|
}
|
|
454
454
|
function fi(e, t) {
|
|
455
|
-
e.$$.dirty[0] === -1 && (
|
|
455
|
+
e.$$.dirty[0] === -1 && (Q.push(e), ni(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
456
456
|
}
|
|
457
|
-
function mi(e, t, r, i, n,
|
|
458
|
-
const u =
|
|
459
|
-
|
|
457
|
+
function mi(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
458
|
+
const u = he;
|
|
459
|
+
ue(e);
|
|
460
460
|
const l = e.$$ = {
|
|
461
461
|
fragment: null,
|
|
462
462
|
ctx: [],
|
|
463
463
|
// state
|
|
464
|
-
props:
|
|
464
|
+
props: o,
|
|
465
465
|
update: M,
|
|
466
466
|
not_equal: n,
|
|
467
|
-
bound:
|
|
467
|
+
bound: _t(),
|
|
468
468
|
// lifecycle
|
|
469
469
|
on_mount: [],
|
|
470
470
|
on_destroy: [],
|
|
@@ -473,8 +473,8 @@ function mi(e, t, r, i, n, s, a = null, o = [-1]) {
|
|
|
473
473
|
after_update: [],
|
|
474
474
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
475
475
|
// everything else
|
|
476
|
-
callbacks:
|
|
477
|
-
dirty:
|
|
476
|
+
callbacks: _t(),
|
|
477
|
+
dirty: s,
|
|
478
478
|
skip_bound: !1,
|
|
479
479
|
root: t.target || u.$$.root
|
|
480
480
|
};
|
|
@@ -491,30 +491,30 @@ function mi(e, t, r, i, n, s, a = null, o = [-1]) {
|
|
|
491
491
|
l.fragment && l.fragment.c();
|
|
492
492
|
t.intro && ui(e.$$.fragment), hi(e, t.target, t.anchor), A();
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
ue(u);
|
|
495
495
|
}
|
|
496
|
-
let
|
|
497
|
-
typeof HTMLElement == "function" && (
|
|
496
|
+
let Kt;
|
|
497
|
+
typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
498
498
|
constructor(t, r, i) {
|
|
499
499
|
super();
|
|
500
500
|
/** The Svelte component constructor */
|
|
501
|
-
|
|
501
|
+
I(this, "$$ctor");
|
|
502
502
|
/** Slots */
|
|
503
|
-
|
|
503
|
+
I(this, "$$s");
|
|
504
504
|
/** The Svelte component instance */
|
|
505
|
-
|
|
505
|
+
I(this, "$$c");
|
|
506
506
|
/** Whether or not the custom element is connected */
|
|
507
|
-
|
|
507
|
+
I(this, "$$cn", !1);
|
|
508
508
|
/** Component props data */
|
|
509
|
-
|
|
509
|
+
I(this, "$$d", {});
|
|
510
510
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
511
|
-
|
|
511
|
+
I(this, "$$r", !1);
|
|
512
512
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
513
|
-
|
|
513
|
+
I(this, "$$p_d", {});
|
|
514
514
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
515
|
-
|
|
515
|
+
I(this, "$$l", {});
|
|
516
516
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
517
|
-
|
|
517
|
+
I(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
518
518
|
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
519
519
|
}
|
|
520
520
|
addEventListener(t, r, i) {
|
|
@@ -531,14 +531,14 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
connectedCallback() {
|
|
534
|
-
return
|
|
534
|
+
return vt(this, null, function* () {
|
|
535
535
|
if (this.$$cn = !0, !this.$$c) {
|
|
536
|
-
let t = function(
|
|
536
|
+
let t = function(o) {
|
|
537
537
|
return () => {
|
|
538
538
|
let a;
|
|
539
539
|
return {
|
|
540
540
|
c: function() {
|
|
541
|
-
a =
|
|
541
|
+
a = O("slot"), o !== "default" && H(a, "name", o);
|
|
542
542
|
},
|
|
543
543
|
/**
|
|
544
544
|
* @param {HTMLElement} target
|
|
@@ -556,17 +556,17 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
556
556
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
557
557
|
return;
|
|
558
558
|
const r = {}, i = qr(this);
|
|
559
|
-
for (const
|
|
560
|
-
|
|
561
|
-
for (const
|
|
562
|
-
const a = this.$$g_p(
|
|
563
|
-
a in this.$$d || (this.$$d[a] = ye(a,
|
|
559
|
+
for (const o of this.$$s)
|
|
560
|
+
o in i && (r[o] = [t(o)]);
|
|
561
|
+
for (const o of this.attributes) {
|
|
562
|
+
const a = this.$$g_p(o.name);
|
|
563
|
+
a in this.$$d || (this.$$d[a] = ye(a, o.value, this.$$p_d, "toProp"));
|
|
564
564
|
}
|
|
565
|
-
for (const
|
|
566
|
-
!(
|
|
565
|
+
for (const o in this.$$p_d)
|
|
566
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
567
567
|
this.$$c = new this.$$ctor({
|
|
568
568
|
target: this.shadowRoot || this,
|
|
569
|
-
props: bt(
|
|
569
|
+
props: yt(bt({}, this.$$d), {
|
|
570
570
|
$$slots: r,
|
|
571
571
|
$$scope: {
|
|
572
572
|
ctx: []
|
|
@@ -575,23 +575,23 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
575
575
|
});
|
|
576
576
|
const n = () => {
|
|
577
577
|
this.$$r = !0;
|
|
578
|
-
for (const
|
|
579
|
-
if (this.$$d[
|
|
578
|
+
for (const o in this.$$p_d)
|
|
579
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
580
580
|
const a = ye(
|
|
581
|
-
|
|
582
|
-
this.$$d[
|
|
581
|
+
o,
|
|
582
|
+
this.$$d[o],
|
|
583
583
|
this.$$p_d,
|
|
584
584
|
"toAttribute"
|
|
585
585
|
);
|
|
586
|
-
a == null ? this.removeAttribute(this.$$p_d[
|
|
586
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
587
587
|
}
|
|
588
588
|
this.$$r = !1;
|
|
589
589
|
};
|
|
590
590
|
this.$$c.$$.after_update.push(n), n();
|
|
591
|
-
for (const
|
|
592
|
-
for (const a of this.$$l[
|
|
593
|
-
const
|
|
594
|
-
this.$$l_u.set(a,
|
|
591
|
+
for (const o in this.$$l)
|
|
592
|
+
for (const a of this.$$l[o]) {
|
|
593
|
+
const s = this.$$c.$on(o, a);
|
|
594
|
+
this.$$l_u.set(a, s);
|
|
595
595
|
}
|
|
596
596
|
this.$$l = {};
|
|
597
597
|
}
|
|
@@ -615,8 +615,8 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
617
|
function ye(e, t, r, i) {
|
|
618
|
-
var
|
|
619
|
-
const n = (
|
|
618
|
+
var o;
|
|
619
|
+
const n = (o = r[e]) == null ? void 0 : o.type;
|
|
620
620
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
621
621
|
return t;
|
|
622
622
|
if (i === "toAttribute")
|
|
@@ -644,32 +644,32 @@ function ye(e, t, r, i) {
|
|
|
644
644
|
return t;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
function pi(e, t, r, i, n,
|
|
648
|
-
let a = class extends
|
|
647
|
+
function pi(e, t, r, i, n, o) {
|
|
648
|
+
let a = class extends Kt {
|
|
649
649
|
constructor() {
|
|
650
650
|
super(e, r, n), this.$$p_d = t;
|
|
651
651
|
}
|
|
652
652
|
static get observedAttributes() {
|
|
653
653
|
return Object.keys(t).map(
|
|
654
|
-
(
|
|
654
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
};
|
|
658
|
-
return Object.keys(t).forEach((
|
|
659
|
-
Object.defineProperty(a.prototype,
|
|
658
|
+
return Object.keys(t).forEach((s) => {
|
|
659
|
+
Object.defineProperty(a.prototype, s, {
|
|
660
660
|
get() {
|
|
661
|
-
return this.$$c &&
|
|
661
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
662
662
|
},
|
|
663
663
|
set(u) {
|
|
664
664
|
var l;
|
|
665
|
-
u = ye(
|
|
665
|
+
u = ye(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
}), i.forEach((
|
|
669
|
-
Object.defineProperty(a.prototype,
|
|
668
|
+
}), i.forEach((s) => {
|
|
669
|
+
Object.defineProperty(a.prototype, s, {
|
|
670
670
|
get() {
|
|
671
671
|
var u;
|
|
672
|
-
return (u = this.$$c) == null ? void 0 : u[
|
|
672
|
+
return (u = this.$$c) == null ? void 0 : u[s];
|
|
673
673
|
}
|
|
674
674
|
});
|
|
675
675
|
}), e.element = /** @type {any} */
|
|
@@ -684,7 +684,7 @@ class di {
|
|
|
684
684
|
*
|
|
685
685
|
* @type {any}
|
|
686
686
|
*/
|
|
687
|
-
|
|
687
|
+
I(this, "$$");
|
|
688
688
|
/**
|
|
689
689
|
* ### PRIVATE API
|
|
690
690
|
*
|
|
@@ -692,7 +692,7 @@ class di {
|
|
|
692
692
|
*
|
|
693
693
|
* @type {any}
|
|
694
694
|
*/
|
|
695
|
-
|
|
695
|
+
I(this, "$$set");
|
|
696
696
|
}
|
|
697
697
|
/** @returns {void} */
|
|
698
698
|
$destroy() {
|
|
@@ -705,7 +705,7 @@ class di {
|
|
|
705
705
|
* @returns {() => void}
|
|
706
706
|
*/
|
|
707
707
|
$on(t, r) {
|
|
708
|
-
if (!
|
|
708
|
+
if (!Pe(r))
|
|
709
709
|
return M;
|
|
710
710
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
711
711
|
return i.push(r), () => {
|
|
@@ -737,43 +737,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
737
737
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
738
738
|
PERFORMANCE OF THIS SOFTWARE.
|
|
739
739
|
***************************************************************************** */
|
|
740
|
-
var
|
|
741
|
-
return
|
|
740
|
+
var Ze = function(e, t) {
|
|
741
|
+
return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
742
742
|
r.__proto__ = i;
|
|
743
743
|
} || function(r, i) {
|
|
744
744
|
for (var n in i)
|
|
745
745
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
746
|
-
},
|
|
746
|
+
}, Ze(e, t);
|
|
747
747
|
};
|
|
748
|
-
function
|
|
748
|
+
function me(e, t) {
|
|
749
749
|
if (typeof t != "function" && t !== null)
|
|
750
750
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
751
|
-
|
|
751
|
+
Ze(e, t);
|
|
752
752
|
function r() {
|
|
753
753
|
this.constructor = e;
|
|
754
754
|
}
|
|
755
755
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
756
756
|
}
|
|
757
|
-
|
|
758
|
-
return x = Object.assign || function(t) {
|
|
759
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
760
|
-
r = arguments[i];
|
|
761
|
-
for (var s in r)
|
|
762
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
763
|
-
}
|
|
764
|
-
return t;
|
|
765
|
-
}, x.apply(this, arguments);
|
|
766
|
-
};
|
|
767
|
-
function bi(e, t) {
|
|
768
|
-
var r = {};
|
|
769
|
-
for (var i in e)
|
|
770
|
-
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
771
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
772
|
-
for (var n = 0, i = Object.getOwnPropertySymbols(e); n < i.length; n++)
|
|
773
|
-
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
774
|
-
return r;
|
|
775
|
-
}
|
|
776
|
-
function Ze(e) {
|
|
757
|
+
function Qe(e) {
|
|
777
758
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
778
759
|
if (r)
|
|
779
760
|
return r.call(e);
|
|
@@ -785,16 +766,16 @@ function Ze(e) {
|
|
|
785
766
|
};
|
|
786
767
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
787
768
|
}
|
|
788
|
-
function
|
|
769
|
+
function qe(e, t) {
|
|
789
770
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
790
771
|
if (!r)
|
|
791
772
|
return e;
|
|
792
|
-
var i = r.call(e), n,
|
|
773
|
+
var i = r.call(e), n, o = [], a;
|
|
793
774
|
try {
|
|
794
775
|
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
795
|
-
|
|
796
|
-
} catch (
|
|
797
|
-
a = { error:
|
|
776
|
+
o.push(n.value);
|
|
777
|
+
} catch (s) {
|
|
778
|
+
a = { error: s };
|
|
798
779
|
} finally {
|
|
799
780
|
try {
|
|
800
781
|
n && !n.done && (r = i.return) && r.call(i);
|
|
@@ -803,24 +784,24 @@ function Qe(e, t) {
|
|
|
803
784
|
throw a.error;
|
|
804
785
|
}
|
|
805
786
|
}
|
|
806
|
-
return
|
|
787
|
+
return o;
|
|
807
788
|
}
|
|
808
|
-
function
|
|
809
|
-
if (
|
|
810
|
-
for (var i = 0, n = t.length,
|
|
811
|
-
(
|
|
812
|
-
return e.concat(
|
|
789
|
+
function Je(e, t, r) {
|
|
790
|
+
if (arguments.length === 2)
|
|
791
|
+
for (var i = 0, n = t.length, o; i < n; i++)
|
|
792
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
793
|
+
return e.concat(o || t);
|
|
813
794
|
}
|
|
814
|
-
function
|
|
795
|
+
function $(e) {
|
|
815
796
|
return typeof e == "function";
|
|
816
797
|
}
|
|
817
|
-
function
|
|
798
|
+
function er(e) {
|
|
818
799
|
var t = function(i) {
|
|
819
800
|
Error.call(i), i.stack = new Error().stack;
|
|
820
801
|
}, r = e(t);
|
|
821
802
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
822
803
|
}
|
|
823
|
-
var De =
|
|
804
|
+
var De = er(function(e) {
|
|
824
805
|
return function(r) {
|
|
825
806
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
826
807
|
` + r.map(function(i, n) {
|
|
@@ -829,7 +810,7 @@ var De = Kt(function(e) {
|
|
|
829
810
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
830
811
|
};
|
|
831
812
|
});
|
|
832
|
-
function
|
|
813
|
+
function Ye(e, t) {
|
|
833
814
|
if (e) {
|
|
834
815
|
var r = e.indexOf(t);
|
|
835
816
|
0 <= r && e.splice(r, 1);
|
|
@@ -840,14 +821,14 @@ var Ae = function() {
|
|
|
840
821
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
841
822
|
}
|
|
842
823
|
return e.prototype.unsubscribe = function() {
|
|
843
|
-
var t, r, i, n,
|
|
824
|
+
var t, r, i, n, o;
|
|
844
825
|
if (!this.closed) {
|
|
845
826
|
this.closed = !0;
|
|
846
827
|
var a = this._parentage;
|
|
847
828
|
if (a)
|
|
848
829
|
if (this._parentage = null, Array.isArray(a))
|
|
849
830
|
try {
|
|
850
|
-
for (var
|
|
831
|
+
for (var s = Qe(a), u = s.next(); !u.done; u = s.next()) {
|
|
851
832
|
var l = u.value;
|
|
852
833
|
l.remove(this);
|
|
853
834
|
}
|
|
@@ -855,7 +836,7 @@ var Ae = function() {
|
|
|
855
836
|
t = { error: g };
|
|
856
837
|
} finally {
|
|
857
838
|
try {
|
|
858
|
-
u && !u.done && (r =
|
|
839
|
+
u && !u.done && (r = s.return) && r.call(s);
|
|
859
840
|
} finally {
|
|
860
841
|
if (t)
|
|
861
842
|
throw t.error;
|
|
@@ -864,22 +845,22 @@ var Ae = function() {
|
|
|
864
845
|
else
|
|
865
846
|
a.remove(this);
|
|
866
847
|
var h = this.initialTeardown;
|
|
867
|
-
if (
|
|
848
|
+
if ($(h))
|
|
868
849
|
try {
|
|
869
850
|
h();
|
|
870
851
|
} catch (g) {
|
|
871
|
-
|
|
852
|
+
o = g instanceof De ? g.errors : [g];
|
|
872
853
|
}
|
|
873
854
|
var f = this._finalizers;
|
|
874
855
|
if (f) {
|
|
875
856
|
this._finalizers = null;
|
|
876
857
|
try {
|
|
877
|
-
for (var c =
|
|
858
|
+
for (var c = Qe(f), b = c.next(); !b.done; b = c.next()) {
|
|
878
859
|
var p = b.value;
|
|
879
860
|
try {
|
|
880
|
-
|
|
861
|
+
wt(p);
|
|
881
862
|
} catch (g) {
|
|
882
|
-
|
|
863
|
+
o = o != null ? o : [], g instanceof De ? o = Je(Je([], qe(o)), qe(g.errors)) : o.push(g);
|
|
883
864
|
}
|
|
884
865
|
}
|
|
885
866
|
} catch (g) {
|
|
@@ -893,14 +874,14 @@ var Ae = function() {
|
|
|
893
874
|
}
|
|
894
875
|
}
|
|
895
876
|
}
|
|
896
|
-
if (
|
|
897
|
-
throw new De(
|
|
877
|
+
if (o)
|
|
878
|
+
throw new De(o);
|
|
898
879
|
}
|
|
899
880
|
}, e.prototype.add = function(t) {
|
|
900
881
|
var r;
|
|
901
882
|
if (t && t !== this)
|
|
902
883
|
if (this.closed)
|
|
903
|
-
|
|
884
|
+
wt(t);
|
|
904
885
|
else {
|
|
905
886
|
if (t instanceof e) {
|
|
906
887
|
if (t.closed || t._hasParent(this))
|
|
@@ -917,32 +898,28 @@ var Ae = function() {
|
|
|
917
898
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
918
899
|
}, e.prototype._removeParent = function(t) {
|
|
919
900
|
var r = this._parentage;
|
|
920
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
901
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ye(r, t);
|
|
921
902
|
}, e.prototype.remove = function(t) {
|
|
922
903
|
var r = this._finalizers;
|
|
923
|
-
r &&
|
|
904
|
+
r && Ye(r, t), t instanceof e && t._removeParent(this);
|
|
924
905
|
}, e.EMPTY = function() {
|
|
925
906
|
var t = new e();
|
|
926
907
|
return t.closed = !0, t;
|
|
927
908
|
}(), e;
|
|
928
|
-
}(),
|
|
929
|
-
function
|
|
930
|
-
return e instanceof Ae || e && "closed" in e &&
|
|
931
|
-
}
|
|
932
|
-
function
|
|
933
|
-
|
|
934
|
-
}
|
|
935
|
-
var
|
|
936
|
-
|
|
937
|
-
onStoppedNotification: null,
|
|
938
|
-
Promise: void 0,
|
|
939
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
940
|
-
useDeprecatedNextContext: !1
|
|
909
|
+
}(), tr = Ae.EMPTY;
|
|
910
|
+
function rr(e) {
|
|
911
|
+
return e instanceof Ae || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
912
|
+
}
|
|
913
|
+
function wt(e) {
|
|
914
|
+
$(e) ? e() : e.unsubscribe();
|
|
915
|
+
}
|
|
916
|
+
var bi = {
|
|
917
|
+
Promise: void 0
|
|
941
918
|
}, yi = {
|
|
942
919
|
setTimeout: function(e, t) {
|
|
943
920
|
for (var r = [], i = 2; i < arguments.length; i++)
|
|
944
921
|
r[i - 2] = arguments[i];
|
|
945
|
-
return setTimeout.apply(void 0,
|
|
922
|
+
return setTimeout.apply(void 0, Je([e, t], qe(r)));
|
|
946
923
|
},
|
|
947
924
|
clearTimeout: function(e) {
|
|
948
925
|
return clearTimeout(e);
|
|
@@ -954,19 +931,19 @@ function vi(e) {
|
|
|
954
931
|
throw e;
|
|
955
932
|
});
|
|
956
933
|
}
|
|
957
|
-
function
|
|
934
|
+
function Lt() {
|
|
958
935
|
}
|
|
959
936
|
function ve(e) {
|
|
960
937
|
e();
|
|
961
938
|
}
|
|
962
939
|
var ir = function(e) {
|
|
963
|
-
|
|
940
|
+
me(t, e);
|
|
964
941
|
function t(r) {
|
|
965
942
|
var i = e.call(this) || this;
|
|
966
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
943
|
+
return i.isStopped = !1, r ? (i.destination = r, rr(r) && r.add(i)) : i.destination = xi, i;
|
|
967
944
|
}
|
|
968
945
|
return t.create = function(r, i, n) {
|
|
969
|
-
return new
|
|
946
|
+
return new Ke(r, i, n);
|
|
970
947
|
}, t.prototype.next = function(r) {
|
|
971
948
|
this.isStopped || this._next(r);
|
|
972
949
|
}, t.prototype.error = function(r) {
|
|
@@ -990,11 +967,7 @@ var ir = function(e) {
|
|
|
990
967
|
this.unsubscribe();
|
|
991
968
|
}
|
|
992
969
|
}, t;
|
|
993
|
-
}(Ae), _i =
|
|
994
|
-
function Ue(e, t) {
|
|
995
|
-
return _i.call(e, t);
|
|
996
|
-
}
|
|
997
|
-
var Ei = function() {
|
|
970
|
+
}(Ae), _i = function() {
|
|
998
971
|
function e(t) {
|
|
999
972
|
this.partialObserver = t;
|
|
1000
973
|
}
|
|
@@ -1025,55 +998,43 @@ var Ei = function() {
|
|
|
1025
998
|
de(r);
|
|
1026
999
|
}
|
|
1027
1000
|
}, e;
|
|
1028
|
-
}(),
|
|
1029
|
-
|
|
1001
|
+
}(), Ke = function(e) {
|
|
1002
|
+
me(t, e);
|
|
1030
1003
|
function t(r, i, n) {
|
|
1031
|
-
var
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
};
|
|
1038
|
-
else {
|
|
1039
|
-
var o;
|
|
1040
|
-
s && rr.useDeprecatedNextContext ? (o = Object.create(r), o.unsubscribe = function() {
|
|
1041
|
-
return s.unsubscribe();
|
|
1042
|
-
}, a = {
|
|
1043
|
-
next: r.next && Ue(r.next, o),
|
|
1044
|
-
error: r.error && Ue(r.error, o),
|
|
1045
|
-
complete: r.complete && Ue(r.complete, o)
|
|
1046
|
-
}) : a = r;
|
|
1047
|
-
}
|
|
1048
|
-
return s.destination = new Ei(a), s;
|
|
1004
|
+
var o = e.call(this) || this, a;
|
|
1005
|
+
return $(r) || !r ? a = {
|
|
1006
|
+
next: r != null ? r : void 0,
|
|
1007
|
+
error: i != null ? i : void 0,
|
|
1008
|
+
complete: n != null ? n : void 0
|
|
1009
|
+
} : a = r, o.destination = new _i(a), o;
|
|
1049
1010
|
}
|
|
1050
1011
|
return t;
|
|
1051
1012
|
}(ir);
|
|
1052
1013
|
function de(e) {
|
|
1053
1014
|
vi(e);
|
|
1054
1015
|
}
|
|
1055
|
-
function
|
|
1016
|
+
function Ei(e) {
|
|
1056
1017
|
throw e;
|
|
1057
1018
|
}
|
|
1058
|
-
var
|
|
1019
|
+
var xi = {
|
|
1059
1020
|
closed: !0,
|
|
1060
|
-
next:
|
|
1061
|
-
error:
|
|
1062
|
-
complete:
|
|
1063
|
-
},
|
|
1021
|
+
next: Lt,
|
|
1022
|
+
error: Ei,
|
|
1023
|
+
complete: Lt
|
|
1024
|
+
}, wi = function() {
|
|
1064
1025
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1065
1026
|
}();
|
|
1066
|
-
function
|
|
1027
|
+
function Li(e) {
|
|
1067
1028
|
return e;
|
|
1068
1029
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return e.length === 0 ?
|
|
1030
|
+
function Ti(e) {
|
|
1031
|
+
return e.length === 0 ? Li : e.length === 1 ? e[0] : function(r) {
|
|
1071
1032
|
return e.reduce(function(i, n) {
|
|
1072
1033
|
return n(i);
|
|
1073
1034
|
}, r);
|
|
1074
1035
|
};
|
|
1075
1036
|
}
|
|
1076
|
-
var
|
|
1037
|
+
var Tt = function() {
|
|
1077
1038
|
function e(t) {
|
|
1078
1039
|
t && (this._subscribe = t);
|
|
1079
1040
|
}
|
|
@@ -1081,11 +1042,11 @@ var Lt = function() {
|
|
|
1081
1042
|
var r = new e();
|
|
1082
1043
|
return r.source = this, r.operator = t, r;
|
|
1083
1044
|
}, e.prototype.subscribe = function(t, r, i) {
|
|
1084
|
-
var n = this,
|
|
1045
|
+
var n = this, o = Hi(t) ? t : new Ke(t, r, i);
|
|
1085
1046
|
return ve(function() {
|
|
1086
|
-
var a = n,
|
|
1087
|
-
|
|
1088
|
-
}),
|
|
1047
|
+
var a = n, s = a.operator, u = a.source;
|
|
1048
|
+
o.add(s ? s.call(o, u) : u ? n._subscribe(o) : n._trySubscribe(o));
|
|
1049
|
+
}), o;
|
|
1089
1050
|
}, e.prototype._trySubscribe = function(t) {
|
|
1090
1051
|
try {
|
|
1091
1052
|
return this._subscribe(t);
|
|
@@ -1094,16 +1055,16 @@ var Lt = function() {
|
|
|
1094
1055
|
}
|
|
1095
1056
|
}, e.prototype.forEach = function(t, r) {
|
|
1096
1057
|
var i = this;
|
|
1097
|
-
return r =
|
|
1098
|
-
var a = new
|
|
1099
|
-
next: function(
|
|
1058
|
+
return r = St(r), new r(function(n, o) {
|
|
1059
|
+
var a = new Ke({
|
|
1060
|
+
next: function(s) {
|
|
1100
1061
|
try {
|
|
1101
|
-
t(
|
|
1062
|
+
t(s);
|
|
1102
1063
|
} catch (u) {
|
|
1103
|
-
|
|
1064
|
+
o(u), a.unsubscribe();
|
|
1104
1065
|
}
|
|
1105
1066
|
},
|
|
1106
|
-
error:
|
|
1067
|
+
error: o,
|
|
1107
1068
|
complete: n
|
|
1108
1069
|
});
|
|
1109
1070
|
i.subscribe(a);
|
|
@@ -1111,70 +1072,70 @@ var Lt = function() {
|
|
|
1111
1072
|
}, e.prototype._subscribe = function(t) {
|
|
1112
1073
|
var r;
|
|
1113
1074
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1114
|
-
}, e.prototype[
|
|
1075
|
+
}, e.prototype[wi] = function() {
|
|
1115
1076
|
return this;
|
|
1116
1077
|
}, e.prototype.pipe = function() {
|
|
1117
1078
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1118
1079
|
t[r] = arguments[r];
|
|
1119
|
-
return
|
|
1080
|
+
return Ti(t)(this);
|
|
1120
1081
|
}, e.prototype.toPromise = function(t) {
|
|
1121
1082
|
var r = this;
|
|
1122
|
-
return t =
|
|
1123
|
-
var
|
|
1083
|
+
return t = St(t), new t(function(i, n) {
|
|
1084
|
+
var o;
|
|
1124
1085
|
r.subscribe(function(a) {
|
|
1125
|
-
return
|
|
1086
|
+
return o = a;
|
|
1126
1087
|
}, function(a) {
|
|
1127
1088
|
return n(a);
|
|
1128
1089
|
}, function() {
|
|
1129
|
-
return i(
|
|
1090
|
+
return i(o);
|
|
1130
1091
|
});
|
|
1131
1092
|
});
|
|
1132
1093
|
}, e.create = function(t) {
|
|
1133
1094
|
return new e(t);
|
|
1134
1095
|
}, e;
|
|
1135
1096
|
}();
|
|
1136
|
-
function
|
|
1097
|
+
function St(e) {
|
|
1137
1098
|
var t;
|
|
1138
|
-
return (t = e != null ? e :
|
|
1099
|
+
return (t = e != null ? e : bi.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1139
1100
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return e &&
|
|
1101
|
+
function Si(e) {
|
|
1102
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
1142
1103
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return e && e instanceof ir ||
|
|
1104
|
+
function Hi(e) {
|
|
1105
|
+
return e && e instanceof ir || Si(e) && rr(e);
|
|
1145
1106
|
}
|
|
1146
|
-
var
|
|
1107
|
+
var Pi = er(function(e) {
|
|
1147
1108
|
return function() {
|
|
1148
1109
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1149
1110
|
};
|
|
1150
1111
|
}), nr = function(e) {
|
|
1151
|
-
|
|
1112
|
+
me(t, e);
|
|
1152
1113
|
function t() {
|
|
1153
1114
|
var r = e.call(this) || this;
|
|
1154
1115
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1155
1116
|
}
|
|
1156
1117
|
return t.prototype.lift = function(r) {
|
|
1157
|
-
var i = new
|
|
1118
|
+
var i = new Ht(this, this);
|
|
1158
1119
|
return i.operator = r, i;
|
|
1159
1120
|
}, t.prototype._throwIfClosed = function() {
|
|
1160
1121
|
if (this.closed)
|
|
1161
|
-
throw new
|
|
1122
|
+
throw new Pi();
|
|
1162
1123
|
}, t.prototype.next = function(r) {
|
|
1163
1124
|
var i = this;
|
|
1164
1125
|
ve(function() {
|
|
1165
|
-
var n,
|
|
1126
|
+
var n, o;
|
|
1166
1127
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
1167
1128
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
1168
1129
|
try {
|
|
1169
|
-
for (var a =
|
|
1170
|
-
var u =
|
|
1130
|
+
for (var a = Qe(i.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1131
|
+
var u = s.value;
|
|
1171
1132
|
u.next(r);
|
|
1172
1133
|
}
|
|
1173
1134
|
} catch (l) {
|
|
1174
1135
|
n = { error: l };
|
|
1175
1136
|
} finally {
|
|
1176
1137
|
try {
|
|
1177
|
-
|
|
1138
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
1178
1139
|
} finally {
|
|
1179
1140
|
if (n)
|
|
1180
1141
|
throw n.error;
|
|
@@ -1214,21 +1175,21 @@ var Bi = Kt(function(e) {
|
|
|
1214
1175
|
}, t.prototype._subscribe = function(r) {
|
|
1215
1176
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1216
1177
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1217
|
-
var i = this, n = this,
|
|
1218
|
-
return
|
|
1219
|
-
i.currentObservers = null,
|
|
1178
|
+
var i = this, n = this, o = n.hasError, a = n.isStopped, s = n.observers;
|
|
1179
|
+
return o || a ? tr : (this.currentObservers = null, s.push(r), new Ae(function() {
|
|
1180
|
+
i.currentObservers = null, Ye(s, r);
|
|
1220
1181
|
}));
|
|
1221
1182
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1222
|
-
var i = this, n = i.hasError,
|
|
1223
|
-
n ? r.error(
|
|
1183
|
+
var i = this, n = i.hasError, o = i.thrownError, a = i.isStopped;
|
|
1184
|
+
n ? r.error(o) : a && r.complete();
|
|
1224
1185
|
}, t.prototype.asObservable = function() {
|
|
1225
|
-
var r = new
|
|
1186
|
+
var r = new Tt();
|
|
1226
1187
|
return r.source = this, r;
|
|
1227
1188
|
}, t.create = function(r, i) {
|
|
1228
|
-
return new
|
|
1189
|
+
return new Ht(r, i);
|
|
1229
1190
|
}, t;
|
|
1230
|
-
}(
|
|
1231
|
-
|
|
1191
|
+
}(Tt), Ht = function(e) {
|
|
1192
|
+
me(t, e);
|
|
1232
1193
|
function t(r, i) {
|
|
1233
1194
|
var n = e.call(this) || this;
|
|
1234
1195
|
return n.destination = r, n.source = i, n;
|
|
@@ -1244,45 +1205,45 @@ var Bi = Kt(function(e) {
|
|
|
1244
1205
|
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || i === void 0 || i.call(r);
|
|
1245
1206
|
}, t.prototype._subscribe = function(r) {
|
|
1246
1207
|
var i, n;
|
|
1247
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n :
|
|
1208
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : tr;
|
|
1248
1209
|
}, t;
|
|
1249
|
-
}(nr),
|
|
1210
|
+
}(nr), or = {
|
|
1250
1211
|
now: function() {
|
|
1251
|
-
return (
|
|
1212
|
+
return (or.delegate || Date).now();
|
|
1252
1213
|
},
|
|
1253
1214
|
delegate: void 0
|
|
1254
|
-
},
|
|
1255
|
-
|
|
1215
|
+
}, Ai = function(e) {
|
|
1216
|
+
me(t, e);
|
|
1256
1217
|
function t(r, i, n) {
|
|
1257
|
-
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n =
|
|
1258
|
-
var
|
|
1259
|
-
return
|
|
1218
|
+
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = or);
|
|
1219
|
+
var o = e.call(this) || this;
|
|
1220
|
+
return o._bufferSize = r, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, i), o;
|
|
1260
1221
|
}
|
|
1261
1222
|
return t.prototype.next = function(r) {
|
|
1262
|
-
var i = this, n = i.isStopped,
|
|
1263
|
-
n || (
|
|
1223
|
+
var i = this, n = i.isStopped, o = i._buffer, a = i._infiniteTimeWindow, s = i._timestampProvider, u = i._windowTime;
|
|
1224
|
+
n || (o.push(r), !a && o.push(s.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1264
1225
|
}, t.prototype._subscribe = function(r) {
|
|
1265
1226
|
this._throwIfClosed(), this._trimBuffer();
|
|
1266
|
-
for (var i = this._innerSubscribe(r), n = this,
|
|
1267
|
-
r.next(
|
|
1227
|
+
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, a = n._buffer, s = a.slice(), u = 0; u < s.length && !r.closed; u += o ? 1 : 2)
|
|
1228
|
+
r.next(s[u]);
|
|
1268
1229
|
return this._checkFinalizedStatuses(r), i;
|
|
1269
1230
|
}, t.prototype._trimBuffer = function() {
|
|
1270
|
-
var r = this, i = r._bufferSize, n = r._timestampProvider,
|
|
1271
|
-
if (i < 1 / 0 &&
|
|
1272
|
-
for (var u = n.now(), l = 0, h = 1; h <
|
|
1231
|
+
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * i;
|
|
1232
|
+
if (i < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1233
|
+
for (var u = n.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
1273
1234
|
l = h;
|
|
1274
|
-
l &&
|
|
1235
|
+
l && o.splice(0, l + 1);
|
|
1275
1236
|
}
|
|
1276
1237
|
}, t;
|
|
1277
1238
|
}(nr);
|
|
1278
|
-
const
|
|
1279
|
-
if (
|
|
1280
|
-
const r = new
|
|
1281
|
-
At[e] = r,
|
|
1239
|
+
const Pt = [], At = {}, Bi = (e, t = 0) => {
|
|
1240
|
+
if (Pt.indexOf(e) == -1) {
|
|
1241
|
+
const r = new Ai(t);
|
|
1242
|
+
At[e] = r, Pt.push(e);
|
|
1282
1243
|
}
|
|
1283
1244
|
return At[e];
|
|
1284
|
-
},
|
|
1285
|
-
function
|
|
1245
|
+
}, z = [];
|
|
1246
|
+
function Oi(e, t) {
|
|
1286
1247
|
return {
|
|
1287
1248
|
subscribe: Be(e, t).subscribe
|
|
1288
1249
|
};
|
|
@@ -1290,35 +1251,35 @@ function Mi(e, t) {
|
|
|
1290
1251
|
function Be(e, t = M) {
|
|
1291
1252
|
let r;
|
|
1292
1253
|
const i = /* @__PURE__ */ new Set();
|
|
1293
|
-
function n(
|
|
1294
|
-
if (
|
|
1295
|
-
const u = !
|
|
1254
|
+
function n(s) {
|
|
1255
|
+
if (Wt(e, s) && (e = s, r)) {
|
|
1256
|
+
const u = !z.length;
|
|
1296
1257
|
for (const l of i)
|
|
1297
|
-
l[1](),
|
|
1258
|
+
l[1](), z.push(l, e);
|
|
1298
1259
|
if (u) {
|
|
1299
|
-
for (let l = 0; l <
|
|
1300
|
-
|
|
1301
|
-
|
|
1260
|
+
for (let l = 0; l < z.length; l += 2)
|
|
1261
|
+
z[l][0](z[l + 1]);
|
|
1262
|
+
z.length = 0;
|
|
1302
1263
|
}
|
|
1303
1264
|
}
|
|
1304
1265
|
}
|
|
1305
|
-
function s
|
|
1306
|
-
n(
|
|
1266
|
+
function o(s) {
|
|
1267
|
+
n(s(e));
|
|
1307
1268
|
}
|
|
1308
|
-
function a(
|
|
1309
|
-
const l = [
|
|
1310
|
-
return i.add(l), i.size === 1 && (r = t(n,
|
|
1269
|
+
function a(s, u = M) {
|
|
1270
|
+
const l = [s, u];
|
|
1271
|
+
return i.add(l), i.size === 1 && (r = t(n, o) || M), s(e), () => {
|
|
1311
1272
|
i.delete(l), i.size === 0 && r && (r(), r = null);
|
|
1312
1273
|
};
|
|
1313
1274
|
}
|
|
1314
|
-
return { set: n, update:
|
|
1275
|
+
return { set: n, update: o, subscribe: a };
|
|
1315
1276
|
}
|
|
1316
1277
|
function ie(e, t, r) {
|
|
1317
1278
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
1318
1279
|
if (!n.every(Boolean))
|
|
1319
1280
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1320
|
-
const
|
|
1321
|
-
return
|
|
1281
|
+
const o = t.length < 2;
|
|
1282
|
+
return Oi(r, (a, s) => {
|
|
1322
1283
|
let u = !1;
|
|
1323
1284
|
const l = [];
|
|
1324
1285
|
let h = 0, f = M;
|
|
@@ -1326,10 +1287,10 @@ function ie(e, t, r) {
|
|
|
1326
1287
|
if (h)
|
|
1327
1288
|
return;
|
|
1328
1289
|
f();
|
|
1329
|
-
const p = t(i ? l[0] : l, a,
|
|
1330
|
-
|
|
1290
|
+
const p = t(i ? l[0] : l, a, s);
|
|
1291
|
+
o ? a(p) : f = Pe(p) ? p : M;
|
|
1331
1292
|
}, b = n.map(
|
|
1332
|
-
(p, g) =>
|
|
1293
|
+
(p, g) => zt(
|
|
1333
1294
|
p,
|
|
1334
1295
|
(d) => {
|
|
1335
1296
|
l[g] = d, h &= ~(1 << g), u && c();
|
|
@@ -1344,70 +1305,70 @@ function ie(e, t, r) {
|
|
|
1344
1305
|
};
|
|
1345
1306
|
});
|
|
1346
1307
|
}
|
|
1347
|
-
function
|
|
1308
|
+
function Mi(e) {
|
|
1348
1309
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1349
1310
|
}
|
|
1350
|
-
var
|
|
1351
|
-
return
|
|
1311
|
+
var Ii = function(t) {
|
|
1312
|
+
return Ni(t) && !Ci(t);
|
|
1352
1313
|
};
|
|
1353
|
-
function
|
|
1314
|
+
function Ni(e) {
|
|
1354
1315
|
return !!e && typeof e == "object";
|
|
1355
1316
|
}
|
|
1356
|
-
function
|
|
1317
|
+
function Ci(e) {
|
|
1357
1318
|
var t = Object.prototype.toString.call(e);
|
|
1358
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1359
|
-
}
|
|
1360
|
-
var Gi = typeof Symbol == "function" && Symbol.for, Di = Gi ? Symbol.for("react.element") : 60103;
|
|
1361
|
-
function Ui(e) {
|
|
1362
|
-
return e.$$typeof === Di;
|
|
1319
|
+
return t === "[object RegExp]" || t === "[object Date]" || $i(e);
|
|
1363
1320
|
}
|
|
1321
|
+
var Ri = typeof Symbol == "function" && Symbol.for, Gi = Ri ? Symbol.for("react.element") : 60103;
|
|
1364
1322
|
function $i(e) {
|
|
1323
|
+
return e.$$typeof === Gi;
|
|
1324
|
+
}
|
|
1325
|
+
function Di(e) {
|
|
1365
1326
|
return Array.isArray(e) ? [] : {};
|
|
1366
1327
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Y(
|
|
1328
|
+
function ce(e, t) {
|
|
1329
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(Di(e), e, t) : e;
|
|
1369
1330
|
}
|
|
1370
|
-
function
|
|
1331
|
+
function Ui(e, t, r) {
|
|
1371
1332
|
return e.concat(t).map(function(i) {
|
|
1372
|
-
return
|
|
1333
|
+
return ce(i, r);
|
|
1373
1334
|
});
|
|
1374
1335
|
}
|
|
1375
|
-
function
|
|
1336
|
+
function Fi(e, t) {
|
|
1376
1337
|
if (!t.customMerge)
|
|
1377
1338
|
return Y;
|
|
1378
1339
|
var r = t.customMerge(e);
|
|
1379
1340
|
return typeof r == "function" ? r : Y;
|
|
1380
1341
|
}
|
|
1381
|
-
function
|
|
1342
|
+
function ji(e) {
|
|
1382
1343
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1383
1344
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1384
1345
|
}) : [];
|
|
1385
1346
|
}
|
|
1386
1347
|
function Bt(e) {
|
|
1387
|
-
return Object.keys(e).concat(
|
|
1348
|
+
return Object.keys(e).concat(ji(e));
|
|
1388
1349
|
}
|
|
1389
|
-
function
|
|
1350
|
+
function sr(e, t) {
|
|
1390
1351
|
try {
|
|
1391
1352
|
return t in e;
|
|
1392
1353
|
} catch (r) {
|
|
1393
1354
|
return !1;
|
|
1394
1355
|
}
|
|
1395
1356
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return
|
|
1357
|
+
function ki(e, t) {
|
|
1358
|
+
return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1398
1359
|
}
|
|
1399
|
-
function
|
|
1360
|
+
function Vi(e, t, r) {
|
|
1400
1361
|
var i = {};
|
|
1401
1362
|
return r.isMergeableObject(e) && Bt(e).forEach(function(n) {
|
|
1402
|
-
i[n] =
|
|
1363
|
+
i[n] = ce(e[n], r);
|
|
1403
1364
|
}), Bt(t).forEach(function(n) {
|
|
1404
|
-
|
|
1365
|
+
ki(e, n) || (sr(e, n) && r.isMergeableObject(t[n]) ? i[n] = Fi(n, r)(e[n], t[n], r) : i[n] = ce(t[n], r));
|
|
1405
1366
|
}), i;
|
|
1406
1367
|
}
|
|
1407
1368
|
function Y(e, t, r) {
|
|
1408
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1409
|
-
var i = Array.isArray(t), n = Array.isArray(e),
|
|
1410
|
-
return
|
|
1369
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ui, r.isMergeableObject = r.isMergeableObject || Ii, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1370
|
+
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
1371
|
+
return o ? i ? r.arrayMerge(e, t, r) : Vi(e, t, r) : ce(t, r);
|
|
1411
1372
|
}
|
|
1412
1373
|
Y.all = function(t, r) {
|
|
1413
1374
|
if (!Array.isArray(t))
|
|
@@ -1416,10 +1377,52 @@ Y.all = function(t, r) {
|
|
|
1416
1377
|
return Y(i, n, r);
|
|
1417
1378
|
}, {});
|
|
1418
1379
|
};
|
|
1419
|
-
var
|
|
1420
|
-
const
|
|
1421
|
-
function
|
|
1422
|
-
|
|
1380
|
+
var Xi = Y, Wi = Xi;
|
|
1381
|
+
const zi = /* @__PURE__ */ Mi(Wi);
|
|
1382
|
+
var et = function(e, t) {
|
|
1383
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
1384
|
+
r.__proto__ = i;
|
|
1385
|
+
} || function(r, i) {
|
|
1386
|
+
for (var n in i)
|
|
1387
|
+
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
1388
|
+
}, et(e, t);
|
|
1389
|
+
};
|
|
1390
|
+
function Oe(e, t) {
|
|
1391
|
+
if (typeof t != "function" && t !== null)
|
|
1392
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1393
|
+
et(e, t);
|
|
1394
|
+
function r() {
|
|
1395
|
+
this.constructor = e;
|
|
1396
|
+
}
|
|
1397
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1398
|
+
}
|
|
1399
|
+
var C = function() {
|
|
1400
|
+
return C = Object.assign || function(t) {
|
|
1401
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
1402
|
+
r = arguments[i];
|
|
1403
|
+
for (var o in r)
|
|
1404
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1405
|
+
}
|
|
1406
|
+
return t;
|
|
1407
|
+
}, C.apply(this, arguments);
|
|
1408
|
+
};
|
|
1409
|
+
function Zi(e, t) {
|
|
1410
|
+
var r = {};
|
|
1411
|
+
for (var i in e)
|
|
1412
|
+
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
1413
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1414
|
+
for (var n = 0, i = Object.getOwnPropertySymbols(e); n < i.length; n++)
|
|
1415
|
+
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
1416
|
+
return r;
|
|
1417
|
+
}
|
|
1418
|
+
function Ue(e, t, r) {
|
|
1419
|
+
if (r || arguments.length === 2)
|
|
1420
|
+
for (var i = 0, n = t.length, o; i < n; i++)
|
|
1421
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
1422
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1423
|
+
}
|
|
1424
|
+
function Fe(e, t) {
|
|
1425
|
+
var r = t && t.cache ? t.cache : tn, i = t && t.serializer ? t.serializer : Ki, n = t && t.strategy ? t.strategy : Ji;
|
|
1423
1426
|
return n(e, {
|
|
1424
1427
|
cache: r,
|
|
1425
1428
|
serializer: i
|
|
@@ -1428,95 +1431,103 @@ function $e(e, t) {
|
|
|
1428
1431
|
function Qi(e) {
|
|
1429
1432
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1430
1433
|
}
|
|
1431
|
-
function
|
|
1432
|
-
var n = Qi(i) ? i : r(i),
|
|
1433
|
-
return typeof
|
|
1434
|
+
function qi(e, t, r, i) {
|
|
1435
|
+
var n = Qi(i) ? i : r(i), o = t.get(n);
|
|
1436
|
+
return typeof o == "undefined" && (o = e.call(this, i), t.set(n, o)), o;
|
|
1434
1437
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var i = Array.prototype.slice.call(arguments, 3), n = r(i),
|
|
1437
|
-
return typeof
|
|
1438
|
+
function ar(e, t, r) {
|
|
1439
|
+
var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
|
|
1440
|
+
return typeof o == "undefined" && (o = e.apply(this, i), t.set(n, o)), o;
|
|
1438
1441
|
}
|
|
1439
|
-
function
|
|
1442
|
+
function ur(e, t, r, i, n) {
|
|
1440
1443
|
return r.bind(t, e, i, n);
|
|
1441
1444
|
}
|
|
1442
|
-
function qi(e, t) {
|
|
1443
|
-
var r = e.length === 1 ? ar : ur;
|
|
1444
|
-
return ut(e, this, r, t.cache.create(), t.serializer);
|
|
1445
|
-
}
|
|
1446
1445
|
function Ji(e, t) {
|
|
1447
|
-
|
|
1446
|
+
var r = e.length === 1 ? qi : ar;
|
|
1447
|
+
return ur(e, this, r, t.cache.create(), t.serializer);
|
|
1448
1448
|
}
|
|
1449
1449
|
function Yi(e, t) {
|
|
1450
|
-
return
|
|
1450
|
+
return ur(e, this, ar, t.cache.create(), t.serializer);
|
|
1451
1451
|
}
|
|
1452
1452
|
var Ki = function() {
|
|
1453
1453
|
return JSON.stringify(arguments);
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1454
|
+
}, en = (
|
|
1455
|
+
/** @class */
|
|
1456
|
+
function() {
|
|
1457
|
+
function e() {
|
|
1458
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1459
|
+
}
|
|
1460
|
+
return e.prototype.get = function(t) {
|
|
1461
|
+
return this.cache[t];
|
|
1462
|
+
}, e.prototype.set = function(t, r) {
|
|
1463
|
+
this.cache[t] = r;
|
|
1464
|
+
}, e;
|
|
1465
|
+
}()
|
|
1466
|
+
), tn = {
|
|
1465
1467
|
create: function() {
|
|
1466
|
-
return new
|
|
1468
|
+
return new en();
|
|
1467
1469
|
}
|
|
1468
|
-
},
|
|
1469
|
-
variadic:
|
|
1470
|
-
|
|
1471
|
-
|
|
1470
|
+
}, je = {
|
|
1471
|
+
variadic: Yi
|
|
1472
|
+
}, Te = function() {
|
|
1473
|
+
return Te = Object.assign || function(t) {
|
|
1474
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
1475
|
+
r = arguments[i];
|
|
1476
|
+
for (var o in r)
|
|
1477
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1478
|
+
}
|
|
1479
|
+
return t;
|
|
1480
|
+
}, Te.apply(this, arguments);
|
|
1481
|
+
};
|
|
1482
|
+
var _;
|
|
1472
1483
|
(function(e) {
|
|
1473
1484
|
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";
|
|
1474
1485
|
})(_ || (_ = {}));
|
|
1475
|
-
var
|
|
1486
|
+
var x;
|
|
1476
1487
|
(function(e) {
|
|
1477
1488
|
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";
|
|
1478
|
-
})(
|
|
1489
|
+
})(x || (x = {}));
|
|
1479
1490
|
var K;
|
|
1480
1491
|
(function(e) {
|
|
1481
1492
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1482
1493
|
})(K || (K = {}));
|
|
1483
|
-
function
|
|
1484
|
-
return e.type ===
|
|
1494
|
+
function Ot(e) {
|
|
1495
|
+
return e.type === x.literal;
|
|
1485
1496
|
}
|
|
1486
|
-
function
|
|
1487
|
-
return e.type ===
|
|
1497
|
+
function rn(e) {
|
|
1498
|
+
return e.type === x.argument;
|
|
1488
1499
|
}
|
|
1489
1500
|
function lr(e) {
|
|
1490
|
-
return e.type ===
|
|
1501
|
+
return e.type === x.number;
|
|
1491
1502
|
}
|
|
1492
1503
|
function hr(e) {
|
|
1493
|
-
return e.type ===
|
|
1504
|
+
return e.type === x.date;
|
|
1494
1505
|
}
|
|
1495
1506
|
function cr(e) {
|
|
1496
|
-
return e.type ===
|
|
1507
|
+
return e.type === x.time;
|
|
1497
1508
|
}
|
|
1498
1509
|
function fr(e) {
|
|
1499
|
-
return e.type ===
|
|
1510
|
+
return e.type === x.select;
|
|
1500
1511
|
}
|
|
1501
1512
|
function mr(e) {
|
|
1502
|
-
return e.type ===
|
|
1513
|
+
return e.type === x.plural;
|
|
1503
1514
|
}
|
|
1504
|
-
function
|
|
1505
|
-
return e.type ===
|
|
1515
|
+
function nn(e) {
|
|
1516
|
+
return e.type === x.pound;
|
|
1506
1517
|
}
|
|
1507
1518
|
function pr(e) {
|
|
1508
|
-
return e.type ===
|
|
1519
|
+
return e.type === x.tag;
|
|
1509
1520
|
}
|
|
1510
1521
|
function dr(e) {
|
|
1511
1522
|
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1512
1523
|
}
|
|
1513
|
-
function
|
|
1524
|
+
function tt(e) {
|
|
1514
1525
|
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1515
1526
|
}
|
|
1516
|
-
var gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1527
|
+
var gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
|
|
1517
1528
|
function sn(e) {
|
|
1518
1529
|
var t = {};
|
|
1519
|
-
return e.replace(
|
|
1530
|
+
return e.replace(on, function(r) {
|
|
1520
1531
|
var i = r.length;
|
|
1521
1532
|
switch (r[0]) {
|
|
1522
1533
|
case "G":
|
|
@@ -1605,30 +1616,40 @@ function sn(e) {
|
|
|
1605
1616
|
return "";
|
|
1606
1617
|
}), t;
|
|
1607
1618
|
}
|
|
1608
|
-
var
|
|
1609
|
-
function
|
|
1619
|
+
var L = function() {
|
|
1620
|
+
return L = Object.assign || function(t) {
|
|
1621
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
1622
|
+
r = arguments[i];
|
|
1623
|
+
for (var o in r)
|
|
1624
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1625
|
+
}
|
|
1626
|
+
return t;
|
|
1627
|
+
}, L.apply(this, arguments);
|
|
1628
|
+
};
|
|
1629
|
+
var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1630
|
+
function un(e) {
|
|
1610
1631
|
if (e.length === 0)
|
|
1611
1632
|
throw new Error("Number skeleton cannot be empty");
|
|
1612
|
-
for (var t = e.split(
|
|
1633
|
+
for (var t = e.split(an).filter(function(c) {
|
|
1613
1634
|
return c.length > 0;
|
|
1614
1635
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
1615
|
-
var
|
|
1636
|
+
var o = n[i], a = o.split("/");
|
|
1616
1637
|
if (a.length === 0)
|
|
1617
1638
|
throw new Error("Invalid number skeleton");
|
|
1618
|
-
for (var
|
|
1639
|
+
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1619
1640
|
var f = h[l];
|
|
1620
1641
|
if (f.length === 0)
|
|
1621
1642
|
throw new Error("Invalid number skeleton");
|
|
1622
1643
|
}
|
|
1623
|
-
r.push({ stem:
|
|
1644
|
+
r.push({ stem: s, options: u });
|
|
1624
1645
|
}
|
|
1625
1646
|
return r;
|
|
1626
1647
|
}
|
|
1627
|
-
function
|
|
1648
|
+
function ln(e) {
|
|
1628
1649
|
return e.replace(/^(.*?)-/, "");
|
|
1629
1650
|
}
|
|
1630
|
-
var
|
|
1631
|
-
function
|
|
1651
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, hn = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
1652
|
+
function It(e) {
|
|
1632
1653
|
var t = {};
|
|
1633
1654
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, i, n) {
|
|
1634
1655
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
@@ -1674,7 +1695,7 @@ function vr(e) {
|
|
|
1674
1695
|
};
|
|
1675
1696
|
}
|
|
1676
1697
|
}
|
|
1677
|
-
function
|
|
1698
|
+
function cn(e) {
|
|
1678
1699
|
var t;
|
|
1679
1700
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1680
1701
|
notation: "engineering"
|
|
@@ -1688,11 +1709,11 @@ function hn(e) {
|
|
|
1688
1709
|
}
|
|
1689
1710
|
return t;
|
|
1690
1711
|
}
|
|
1691
|
-
function
|
|
1712
|
+
function Nt(e) {
|
|
1692
1713
|
var t = {}, r = vr(e);
|
|
1693
1714
|
return r || t;
|
|
1694
1715
|
}
|
|
1695
|
-
function
|
|
1716
|
+
function fn(e) {
|
|
1696
1717
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
1697
1718
|
var n = i[r];
|
|
1698
1719
|
switch (n.stem) {
|
|
@@ -1716,7 +1737,7 @@ function cn(e) {
|
|
|
1716
1737
|
continue;
|
|
1717
1738
|
case "measure-unit":
|
|
1718
1739
|
case "unit":
|
|
1719
|
-
t.style = "unit", t.unit =
|
|
1740
|
+
t.style = "unit", t.unit = ln(n.options[0]);
|
|
1720
1741
|
continue;
|
|
1721
1742
|
case "compact-short":
|
|
1722
1743
|
case "K":
|
|
@@ -1727,13 +1748,13 @@ function cn(e) {
|
|
|
1727
1748
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1728
1749
|
continue;
|
|
1729
1750
|
case "scientific":
|
|
1730
|
-
t =
|
|
1731
|
-
return
|
|
1751
|
+
t = L(L(L({}, t), { notation: "scientific" }), n.options.reduce(function(u, l) {
|
|
1752
|
+
return L(L({}, u), Nt(l));
|
|
1732
1753
|
}, {}));
|
|
1733
1754
|
continue;
|
|
1734
1755
|
case "engineering":
|
|
1735
|
-
t =
|
|
1736
|
-
return
|
|
1756
|
+
t = L(L(L({}, t), { notation: "engineering" }), n.options.reduce(function(u, l) {
|
|
1757
|
+
return L(L({}, u), Nt(l));
|
|
1737
1758
|
}, {}));
|
|
1738
1759
|
continue;
|
|
1739
1760
|
case "notation-simple":
|
|
@@ -1778,7 +1799,7 @@ function cn(e) {
|
|
|
1778
1799
|
case "integer-width":
|
|
1779
1800
|
if (n.options.length > 1)
|
|
1780
1801
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1781
|
-
n.options[0].replace(
|
|
1802
|
+
n.options[0].replace(hn, function(u, l, h, f, c, b) {
|
|
1782
1803
|
if (l)
|
|
1783
1804
|
t.minimumIntegerDigits = h.length;
|
|
1784
1805
|
else {
|
|
@@ -1795,24 +1816,24 @@ function cn(e) {
|
|
|
1795
1816
|
t.minimumIntegerDigits = n.stem.length;
|
|
1796
1817
|
continue;
|
|
1797
1818
|
}
|
|
1798
|
-
if (
|
|
1819
|
+
if (Mt.test(n.stem)) {
|
|
1799
1820
|
if (n.options.length > 1)
|
|
1800
1821
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1801
|
-
n.stem.replace(
|
|
1822
|
+
n.stem.replace(Mt, function(u, l, h, f, c, b) {
|
|
1802
1823
|
return h === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1803
1824
|
});
|
|
1804
|
-
var
|
|
1805
|
-
|
|
1825
|
+
var o = n.options[0];
|
|
1826
|
+
o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), It(o)));
|
|
1806
1827
|
continue;
|
|
1807
1828
|
}
|
|
1808
1829
|
if (br.test(n.stem)) {
|
|
1809
|
-
t =
|
|
1830
|
+
t = L(L({}, t), It(n.stem));
|
|
1810
1831
|
continue;
|
|
1811
1832
|
}
|
|
1812
1833
|
var a = vr(n.stem);
|
|
1813
|
-
a && (t =
|
|
1814
|
-
var
|
|
1815
|
-
|
|
1834
|
+
a && (t = L(L({}, t), a));
|
|
1835
|
+
var s = cn(n.stem);
|
|
1836
|
+
s && (t = L(L({}, t), s));
|
|
1816
1837
|
}
|
|
1817
1838
|
return t;
|
|
1818
1839
|
}
|
|
@@ -3231,14 +3252,14 @@ var ge = {
|
|
|
3231
3252
|
"h"
|
|
3232
3253
|
]
|
|
3233
3254
|
};
|
|
3234
|
-
function
|
|
3255
|
+
function mn(e, t) {
|
|
3235
3256
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
3236
3257
|
var n = e.charAt(i);
|
|
3237
3258
|
if (n === "j") {
|
|
3238
|
-
for (var
|
|
3239
|
-
|
|
3240
|
-
var a = 1 + (
|
|
3241
|
-
for ((l == "H" || l == "k") && (
|
|
3259
|
+
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
3260
|
+
o++, i++;
|
|
3261
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = pn(t);
|
|
3262
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3242
3263
|
r += u;
|
|
3243
3264
|
for (; a-- > 0; )
|
|
3244
3265
|
r = l + r;
|
|
@@ -3247,7 +3268,7 @@ function fn(e, t) {
|
|
|
3247
3268
|
}
|
|
3248
3269
|
return r;
|
|
3249
3270
|
}
|
|
3250
|
-
function
|
|
3271
|
+
function pn(e) {
|
|
3251
3272
|
var t = e.hourCycle;
|
|
3252
3273
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3253
3274
|
e.hourCycles && // @ts-ignore
|
|
@@ -3269,20 +3290,20 @@ function mn(e) {
|
|
|
3269
3290
|
var n = ge[i || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3270
3291
|
return n[0];
|
|
3271
3292
|
}
|
|
3272
|
-
var
|
|
3293
|
+
var ke, dn = new RegExp("^".concat(gr.source, "*")), gn = new RegExp("".concat(gr.source, "*$"));
|
|
3273
3294
|
function E(e, t) {
|
|
3274
3295
|
return { start: e, end: t };
|
|
3275
3296
|
}
|
|
3276
|
-
var
|
|
3297
|
+
var bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, vn = !!Object.fromEntries, _n = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, xn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Ln = wn ? Number.isSafeInteger : function(e) {
|
|
3277
3298
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3278
|
-
},
|
|
3299
|
+
}, rt = !0;
|
|
3279
3300
|
try {
|
|
3280
|
-
var
|
|
3281
|
-
|
|
3301
|
+
var Tn = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3302
|
+
rt = ((ke = Tn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
3282
3303
|
} catch (e) {
|
|
3283
|
-
|
|
3304
|
+
rt = !1;
|
|
3284
3305
|
}
|
|
3285
|
-
var
|
|
3306
|
+
var Ct = bn ? (
|
|
3286
3307
|
// Native
|
|
3287
3308
|
function(t, r, i) {
|
|
3288
3309
|
return t.startsWith(r, i);
|
|
@@ -3292,31 +3313,31 @@ var Nt = gn ? (
|
|
|
3292
3313
|
function(t, r, i) {
|
|
3293
3314
|
return t.slice(i, i + r.length) === r;
|
|
3294
3315
|
}
|
|
3295
|
-
),
|
|
3316
|
+
), it = yn ? String.fromCodePoint : (
|
|
3296
3317
|
// IE11
|
|
3297
3318
|
function() {
|
|
3298
3319
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3299
3320
|
t[r] = arguments[r];
|
|
3300
|
-
for (var i = "", n = t.length,
|
|
3301
|
-
if (a = t[
|
|
3321
|
+
for (var i = "", n = t.length, o = 0, a; n > o; ) {
|
|
3322
|
+
if (a = t[o++], a > 1114111)
|
|
3302
3323
|
throw RangeError(a + " is not a valid code point");
|
|
3303
3324
|
i += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3304
3325
|
}
|
|
3305
3326
|
return i;
|
|
3306
3327
|
}
|
|
3307
|
-
),
|
|
3328
|
+
), Rt = (
|
|
3308
3329
|
// native
|
|
3309
|
-
|
|
3330
|
+
vn ? Object.fromEntries : (
|
|
3310
3331
|
// Ponyfill
|
|
3311
3332
|
function(t) {
|
|
3312
3333
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
3313
|
-
var
|
|
3314
|
-
r[a] =
|
|
3334
|
+
var o = n[i], a = o[0], s = o[1];
|
|
3335
|
+
r[a] = s;
|
|
3315
3336
|
}
|
|
3316
3337
|
return r;
|
|
3317
3338
|
}
|
|
3318
3339
|
)
|
|
3319
|
-
), _r =
|
|
3340
|
+
), _r = _n ? (
|
|
3320
3341
|
// Native
|
|
3321
3342
|
function(t, r) {
|
|
3322
3343
|
return t.codePointAt(r);
|
|
@@ -3326,11 +3347,11 @@ var Nt = gn ? (
|
|
|
3326
3347
|
function(t, r) {
|
|
3327
3348
|
var i = t.length;
|
|
3328
3349
|
if (!(r < 0 || r >= i)) {
|
|
3329
|
-
var n = t.charCodeAt(r),
|
|
3330
|
-
return n < 55296 || n > 56319 || r + 1 === i || (
|
|
3350
|
+
var n = t.charCodeAt(r), o;
|
|
3351
|
+
return n < 55296 || n > 56319 || r + 1 === i || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
3331
3352
|
}
|
|
3332
3353
|
}
|
|
3333
|
-
),
|
|
3354
|
+
), Sn = En ? (
|
|
3334
3355
|
// Native
|
|
3335
3356
|
function(t) {
|
|
3336
3357
|
return t.trimStart();
|
|
@@ -3338,9 +3359,9 @@ var Nt = gn ? (
|
|
|
3338
3359
|
) : (
|
|
3339
3360
|
// Ponyfill
|
|
3340
3361
|
function(t) {
|
|
3341
|
-
return t.replace(
|
|
3362
|
+
return t.replace(dn, "");
|
|
3342
3363
|
}
|
|
3343
|
-
),
|
|
3364
|
+
), Hn = xn ? (
|
|
3344
3365
|
// Native
|
|
3345
3366
|
function(t) {
|
|
3346
3367
|
return t.trimEnd();
|
|
@@ -3348,32 +3369,32 @@ var Nt = gn ? (
|
|
|
3348
3369
|
) : (
|
|
3349
3370
|
// Ponyfill
|
|
3350
3371
|
function(t) {
|
|
3351
|
-
return t.replace(
|
|
3372
|
+
return t.replace(gn, "");
|
|
3352
3373
|
}
|
|
3353
3374
|
);
|
|
3354
3375
|
function Er(e, t) {
|
|
3355
3376
|
return new RegExp(e, t);
|
|
3356
3377
|
}
|
|
3357
|
-
var
|
|
3358
|
-
if (
|
|
3359
|
-
var
|
|
3360
|
-
|
|
3378
|
+
var nt;
|
|
3379
|
+
if (rt) {
|
|
3380
|
+
var Gt = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3381
|
+
nt = function(t, r) {
|
|
3361
3382
|
var i;
|
|
3362
|
-
|
|
3363
|
-
var n =
|
|
3383
|
+
Gt.lastIndex = r;
|
|
3384
|
+
var n = Gt.exec(t);
|
|
3364
3385
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
3365
3386
|
};
|
|
3366
3387
|
} else
|
|
3367
|
-
|
|
3388
|
+
nt = function(t, r) {
|
|
3368
3389
|
for (var i = []; ; ) {
|
|
3369
3390
|
var n = _r(t, r);
|
|
3370
|
-
if (n === void 0 || xr(n) ||
|
|
3391
|
+
if (n === void 0 || xr(n) || On(n))
|
|
3371
3392
|
break;
|
|
3372
3393
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
3373
3394
|
}
|
|
3374
|
-
return
|
|
3395
|
+
return it.apply(void 0, i);
|
|
3375
3396
|
};
|
|
3376
|
-
var
|
|
3397
|
+
var Pn = (
|
|
3377
3398
|
/** @class */
|
|
3378
3399
|
function() {
|
|
3379
3400
|
function e(t, r) {
|
|
@@ -3385,26 +3406,26 @@ var Hn = (
|
|
|
3385
3406
|
return this.parseMessage(0, "", !1);
|
|
3386
3407
|
}, e.prototype.parseMessage = function(t, r, i) {
|
|
3387
3408
|
for (var n = []; !this.isEOF(); ) {
|
|
3388
|
-
var
|
|
3389
|
-
if (
|
|
3409
|
+
var o = this.char();
|
|
3410
|
+
if (o === 123) {
|
|
3390
3411
|
var a = this.parseArgument(t, i);
|
|
3391
3412
|
if (a.err)
|
|
3392
3413
|
return a;
|
|
3393
3414
|
n.push(a.val);
|
|
3394
3415
|
} else {
|
|
3395
|
-
if (
|
|
3416
|
+
if (o === 125 && t > 0)
|
|
3396
3417
|
break;
|
|
3397
|
-
if (
|
|
3398
|
-
var
|
|
3418
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3419
|
+
var s = this.clonePosition();
|
|
3399
3420
|
this.bump(), n.push({
|
|
3400
|
-
type:
|
|
3401
|
-
location: E(
|
|
3421
|
+
type: x.pound,
|
|
3422
|
+
location: E(s, this.clonePosition())
|
|
3402
3423
|
});
|
|
3403
|
-
} else if (
|
|
3424
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3404
3425
|
if (i)
|
|
3405
3426
|
break;
|
|
3406
3427
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3407
|
-
} else if (
|
|
3428
|
+
} else if (o === 60 && !this.ignoreTag && ot(this.peek() || 0)) {
|
|
3408
3429
|
var a = this.parseTag(t, r);
|
|
3409
3430
|
if (a.err)
|
|
3410
3431
|
return a;
|
|
@@ -3425,30 +3446,30 @@ var Hn = (
|
|
|
3425
3446
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3426
3447
|
return {
|
|
3427
3448
|
val: {
|
|
3428
|
-
type:
|
|
3449
|
+
type: x.literal,
|
|
3429
3450
|
value: "<".concat(n, "/>"),
|
|
3430
3451
|
location: E(i, this.clonePosition())
|
|
3431
3452
|
},
|
|
3432
3453
|
err: null
|
|
3433
3454
|
};
|
|
3434
3455
|
if (this.bumpIf(">")) {
|
|
3435
|
-
var
|
|
3436
|
-
if (
|
|
3437
|
-
return
|
|
3438
|
-
var a =
|
|
3456
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3457
|
+
if (o.err)
|
|
3458
|
+
return o;
|
|
3459
|
+
var a = o.val, s = this.clonePosition();
|
|
3439
3460
|
if (this.bumpIf("</")) {
|
|
3440
|
-
if (this.isEOF() || !
|
|
3441
|
-
return this.error(_.INVALID_TAG, E(
|
|
3461
|
+
if (this.isEOF() || !ot(this.char()))
|
|
3462
|
+
return this.error(_.INVALID_TAG, E(s, this.clonePosition()));
|
|
3442
3463
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3443
3464
|
return n !== l ? this.error(_.UNMATCHED_CLOSING_TAG, E(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3444
3465
|
val: {
|
|
3445
|
-
type:
|
|
3466
|
+
type: x.tag,
|
|
3446
3467
|
value: n,
|
|
3447
3468
|
children: a,
|
|
3448
3469
|
location: E(i, this.clonePosition())
|
|
3449
3470
|
},
|
|
3450
3471
|
err: null
|
|
3451
|
-
} : this.error(_.INVALID_TAG, E(
|
|
3472
|
+
} : this.error(_.INVALID_TAG, E(s, this.clonePosition())));
|
|
3452
3473
|
} else
|
|
3453
3474
|
return this.error(_.UNCLOSED_TAG, E(i, this.clonePosition()));
|
|
3454
3475
|
} else
|
|
@@ -3460,9 +3481,9 @@ var Hn = (
|
|
|
3460
3481
|
return this.message.slice(t, this.offset());
|
|
3461
3482
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3462
3483
|
for (var i = this.clonePosition(), n = ""; ; ) {
|
|
3463
|
-
var
|
|
3464
|
-
if (
|
|
3465
|
-
n +=
|
|
3484
|
+
var o = this.tryParseQuote(r);
|
|
3485
|
+
if (o) {
|
|
3486
|
+
n += o;
|
|
3466
3487
|
continue;
|
|
3467
3488
|
}
|
|
3468
3489
|
var a = this.tryParseUnquoted(t, r);
|
|
@@ -3470,16 +3491,16 @@ var Hn = (
|
|
|
3470
3491
|
n += a;
|
|
3471
3492
|
continue;
|
|
3472
3493
|
}
|
|
3473
|
-
var
|
|
3474
|
-
if (
|
|
3475
|
-
n +=
|
|
3494
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3495
|
+
if (s) {
|
|
3496
|
+
n += s;
|
|
3476
3497
|
continue;
|
|
3477
3498
|
}
|
|
3478
3499
|
break;
|
|
3479
3500
|
}
|
|
3480
3501
|
var u = E(i, this.clonePosition());
|
|
3481
3502
|
return {
|
|
3482
|
-
val: { type:
|
|
3503
|
+
val: { type: x.literal, value: n, location: u },
|
|
3483
3504
|
err: null
|
|
3484
3505
|
};
|
|
3485
3506
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3518,12 +3539,12 @@ var Hn = (
|
|
|
3518
3539
|
r.push(i);
|
|
3519
3540
|
this.bump();
|
|
3520
3541
|
}
|
|
3521
|
-
return
|
|
3542
|
+
return it.apply(void 0, r);
|
|
3522
3543
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3523
3544
|
if (this.isEOF())
|
|
3524
3545
|
return null;
|
|
3525
3546
|
var i = this.char();
|
|
3526
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
3547
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), it(i));
|
|
3527
3548
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3528
3549
|
var i = this.clonePosition();
|
|
3529
3550
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3539,7 +3560,7 @@ var Hn = (
|
|
|
3539
3560
|
case 125:
|
|
3540
3561
|
return this.bump(), {
|
|
3541
3562
|
val: {
|
|
3542
|
-
type:
|
|
3563
|
+
type: x.argument,
|
|
3543
3564
|
// value does not include the opening and closing braces.
|
|
3544
3565
|
value: n,
|
|
3545
3566
|
location: E(i, this.clonePosition())
|
|
@@ -3552,13 +3573,13 @@ var Hn = (
|
|
|
3552
3573
|
return this.error(_.MALFORMED_ARGUMENT, E(i, this.clonePosition()));
|
|
3553
3574
|
}
|
|
3554
3575
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3555
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
3576
|
+
var t = this.clonePosition(), r = this.offset(), i = nt(this.message, r), n = r + i.length;
|
|
3556
3577
|
this.bumpTo(n);
|
|
3557
|
-
var
|
|
3578
|
+
var o = this.clonePosition(), a = E(t, o);
|
|
3558
3579
|
return { value: i, location: a };
|
|
3559
3580
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
3560
|
-
var
|
|
3561
|
-
switch (
|
|
3581
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3582
|
+
switch (s) {
|
|
3562
3583
|
case "":
|
|
3563
3584
|
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, u));
|
|
3564
3585
|
case "number":
|
|
@@ -3571,7 +3592,7 @@ var Hn = (
|
|
|
3571
3592
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3572
3593
|
if (f.err)
|
|
3573
3594
|
return f;
|
|
3574
|
-
var c =
|
|
3595
|
+
var c = Hn(f.val);
|
|
3575
3596
|
if (c.length === 0)
|
|
3576
3597
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3577
3598
|
var b = E(h, this.clonePosition());
|
|
@@ -3581,25 +3602,25 @@ var Hn = (
|
|
|
3581
3602
|
if (p.err)
|
|
3582
3603
|
return p;
|
|
3583
3604
|
var g = E(n, this.clonePosition());
|
|
3584
|
-
if (l &&
|
|
3585
|
-
var d =
|
|
3586
|
-
if (
|
|
3605
|
+
if (l && Ct(l == null ? void 0 : l.style, "::", 0)) {
|
|
3606
|
+
var d = Sn(l.style.slice(2));
|
|
3607
|
+
if (s === "number") {
|
|
3587
3608
|
var f = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
|
3588
3609
|
return f.err ? f : {
|
|
3589
|
-
val: { type:
|
|
3610
|
+
val: { type: x.number, value: i, location: g, style: f.val },
|
|
3590
3611
|
err: null
|
|
3591
3612
|
};
|
|
3592
3613
|
} else {
|
|
3593
3614
|
if (d.length === 0)
|
|
3594
3615
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3595
3616
|
var v = d;
|
|
3596
|
-
this.locale && (v =
|
|
3617
|
+
this.locale && (v = mn(d, this.locale));
|
|
3597
3618
|
var c = {
|
|
3598
3619
|
type: K.dateTime,
|
|
3599
3620
|
pattern: v,
|
|
3600
3621
|
location: l.styleLocation,
|
|
3601
3622
|
parsedOptions: this.shouldParseSkeletons ? sn(v) : {}
|
|
3602
|
-
}, T =
|
|
3623
|
+
}, T = s === "date" ? x.date : x.time;
|
|
3603
3624
|
return {
|
|
3604
3625
|
val: { type: T, value: i, location: g, style: c },
|
|
3605
3626
|
err: null
|
|
@@ -3608,10 +3629,10 @@ var Hn = (
|
|
|
3608
3629
|
}
|
|
3609
3630
|
return {
|
|
3610
3631
|
val: {
|
|
3611
|
-
type:
|
|
3632
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3612
3633
|
value: i,
|
|
3613
3634
|
location: g,
|
|
3614
|
-
style: (
|
|
3635
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3615
3636
|
},
|
|
3616
3637
|
err: null
|
|
3617
3638
|
};
|
|
@@ -3621,41 +3642,41 @@ var Hn = (
|
|
|
3621
3642
|
case "select": {
|
|
3622
3643
|
var S = this.clonePosition();
|
|
3623
3644
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3624
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S,
|
|
3645
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S, Te({}, S)));
|
|
3625
3646
|
this.bumpSpace();
|
|
3626
|
-
var
|
|
3627
|
-
if (
|
|
3647
|
+
var N = this.parseIdentifierIfPossible(), P = 0;
|
|
3648
|
+
if (s !== "select" && N.value === "offset") {
|
|
3628
3649
|
if (!this.bumpIf(":"))
|
|
3629
3650
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3630
3651
|
this.bumpSpace();
|
|
3631
3652
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3632
3653
|
if (f.err)
|
|
3633
3654
|
return f;
|
|
3634
|
-
this.bumpSpace(),
|
|
3655
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), P = f.val;
|
|
3635
3656
|
}
|
|
3636
|
-
var
|
|
3637
|
-
if (
|
|
3638
|
-
return
|
|
3657
|
+
var R = this.tryParsePluralOrSelectOptions(t, s, r, N);
|
|
3658
|
+
if (R.err)
|
|
3659
|
+
return R;
|
|
3639
3660
|
var p = this.tryParseArgumentClose(n);
|
|
3640
3661
|
if (p.err)
|
|
3641
3662
|
return p;
|
|
3642
|
-
var
|
|
3643
|
-
return
|
|
3663
|
+
var V = E(n, this.clonePosition());
|
|
3664
|
+
return s === "select" ? {
|
|
3644
3665
|
val: {
|
|
3645
|
-
type:
|
|
3666
|
+
type: x.select,
|
|
3646
3667
|
value: i,
|
|
3647
|
-
options:
|
|
3648
|
-
location:
|
|
3668
|
+
options: Rt(R.val),
|
|
3669
|
+
location: V
|
|
3649
3670
|
},
|
|
3650
3671
|
err: null
|
|
3651
3672
|
} : {
|
|
3652
3673
|
val: {
|
|
3653
|
-
type:
|
|
3674
|
+
type: x.plural,
|
|
3654
3675
|
value: i,
|
|
3655
|
-
options:
|
|
3656
|
-
offset:
|
|
3657
|
-
pluralType:
|
|
3658
|
-
location:
|
|
3676
|
+
options: Rt(R.val),
|
|
3677
|
+
offset: P,
|
|
3678
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3679
|
+
location: V
|
|
3659
3680
|
},
|
|
3660
3681
|
err: null
|
|
3661
3682
|
};
|
|
@@ -3703,7 +3724,7 @@ var Hn = (
|
|
|
3703
3724
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3704
3725
|
var i = [];
|
|
3705
3726
|
try {
|
|
3706
|
-
i =
|
|
3727
|
+
i = un(t);
|
|
3707
3728
|
} catch (n) {
|
|
3708
3729
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3709
3730
|
}
|
|
@@ -3712,12 +3733,12 @@ var Hn = (
|
|
|
3712
3733
|
type: K.number,
|
|
3713
3734
|
tokens: i,
|
|
3714
3735
|
location: r,
|
|
3715
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3736
|
+
parsedOptions: this.shouldParseSkeletons ? fn(i) : {}
|
|
3716
3737
|
},
|
|
3717
3738
|
err: null
|
|
3718
3739
|
};
|
|
3719
3740
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
3720
|
-
for (var
|
|
3741
|
+
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = n.value, h = n.location; ; ) {
|
|
3721
3742
|
if (l.length === 0) {
|
|
3722
3743
|
var f = this.clonePosition();
|
|
3723
3744
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3740,27 +3761,27 @@ var Hn = (
|
|
|
3740
3761
|
var g = this.tryParseArgumentClose(b);
|
|
3741
3762
|
if (g.err)
|
|
3742
3763
|
return g;
|
|
3743
|
-
|
|
3764
|
+
s.push([
|
|
3744
3765
|
l,
|
|
3745
3766
|
{
|
|
3746
3767
|
value: p.val,
|
|
3747
3768
|
location: E(b, this.clonePosition())
|
|
3748
3769
|
}
|
|
3749
|
-
]), u.add(l), this.bumpSpace(),
|
|
3770
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3750
3771
|
}
|
|
3751
|
-
return
|
|
3772
|
+
return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3752
3773
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3753
3774
|
var i = 1, n = this.clonePosition();
|
|
3754
3775
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
3755
|
-
for (var
|
|
3756
|
-
var
|
|
3757
|
-
if (
|
|
3758
|
-
|
|
3776
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3777
|
+
var s = this.char();
|
|
3778
|
+
if (s >= 48 && s <= 57)
|
|
3779
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3759
3780
|
else
|
|
3760
3781
|
break;
|
|
3761
3782
|
}
|
|
3762
3783
|
var u = E(n, this.clonePosition());
|
|
3763
|
-
return
|
|
3784
|
+
return o ? (a *= i, Ln(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3764
3785
|
}, e.prototype.offset = function() {
|
|
3765
3786
|
return this.position.offset;
|
|
3766
3787
|
}, e.prototype.isEOF = function() {
|
|
@@ -3794,7 +3815,7 @@ var Hn = (
|
|
|
3794
3815
|
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);
|
|
3795
3816
|
}
|
|
3796
3817
|
}, e.prototype.bumpIf = function(t) {
|
|
3797
|
-
if (
|
|
3818
|
+
if (Ct(this.message, t, this.offset())) {
|
|
3798
3819
|
for (var r = 0; r < t.length; r++)
|
|
3799
3820
|
this.bump();
|
|
3800
3821
|
return !0;
|
|
@@ -3826,11 +3847,11 @@ var Hn = (
|
|
|
3826
3847
|
}, e;
|
|
3827
3848
|
}()
|
|
3828
3849
|
);
|
|
3829
|
-
function
|
|
3850
|
+
function ot(e) {
|
|
3830
3851
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3831
3852
|
}
|
|
3832
3853
|
function An(e) {
|
|
3833
|
-
return
|
|
3854
|
+
return ot(e) || e === 47;
|
|
3834
3855
|
}
|
|
3835
3856
|
function Bn(e) {
|
|
3836
3857
|
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;
|
|
@@ -3838,129 +3859,129 @@ function Bn(e) {
|
|
|
3838
3859
|
function xr(e) {
|
|
3839
3860
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3840
3861
|
}
|
|
3841
|
-
function
|
|
3862
|
+
function On(e) {
|
|
3842
3863
|
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;
|
|
3843
3864
|
}
|
|
3844
|
-
function
|
|
3865
|
+
function st(e) {
|
|
3845
3866
|
e.forEach(function(t) {
|
|
3846
3867
|
if (delete t.location, fr(t) || mr(t))
|
|
3847
3868
|
for (var r in t.options)
|
|
3848
|
-
delete t.options[r].location,
|
|
3869
|
+
delete t.options[r].location, st(t.options[r].value);
|
|
3849
3870
|
else
|
|
3850
|
-
lr(t) && dr(t.style) || (hr(t) || cr(t)) &&
|
|
3871
|
+
lr(t) && dr(t.style) || (hr(t) || cr(t)) && tt(t.style) ? delete t.style.location : pr(t) && st(t.children);
|
|
3851
3872
|
});
|
|
3852
3873
|
}
|
|
3853
|
-
function
|
|
3854
|
-
t === void 0 && (t = {}), t =
|
|
3855
|
-
var r = new
|
|
3874
|
+
function Mn(e, t) {
|
|
3875
|
+
t === void 0 && (t = {}), t = Te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3876
|
+
var r = new Pn(e, t).parse();
|
|
3856
3877
|
if (r.err) {
|
|
3857
3878
|
var i = SyntaxError(_[r.err.kind]);
|
|
3858
3879
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3859
3880
|
}
|
|
3860
|
-
return t != null && t.captureLocation ||
|
|
3881
|
+
return t != null && t.captureLocation || st(r.val), r.val;
|
|
3861
3882
|
}
|
|
3862
3883
|
var ee;
|
|
3863
3884
|
(function(e) {
|
|
3864
3885
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3865
3886
|
})(ee || (ee = {}));
|
|
3866
|
-
var
|
|
3887
|
+
var Me = (
|
|
3867
3888
|
/** @class */
|
|
3868
3889
|
function(e) {
|
|
3869
|
-
|
|
3890
|
+
Oe(t, e);
|
|
3870
3891
|
function t(r, i, n) {
|
|
3871
|
-
var
|
|
3872
|
-
return
|
|
3892
|
+
var o = e.call(this, r) || this;
|
|
3893
|
+
return o.code = i, o.originalMessage = n, o;
|
|
3873
3894
|
}
|
|
3874
3895
|
return t.prototype.toString = function() {
|
|
3875
3896
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3876
3897
|
}, t;
|
|
3877
3898
|
}(Error)
|
|
3878
|
-
),
|
|
3899
|
+
), $t = (
|
|
3879
3900
|
/** @class */
|
|
3880
3901
|
function(e) {
|
|
3881
|
-
|
|
3882
|
-
function t(r, i, n,
|
|
3883
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), ee.INVALID_VALUE,
|
|
3902
|
+
Oe(t, e);
|
|
3903
|
+
function t(r, i, n, o) {
|
|
3904
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3884
3905
|
}
|
|
3885
3906
|
return t;
|
|
3886
|
-
}(
|
|
3887
|
-
),
|
|
3907
|
+
}(Me)
|
|
3908
|
+
), In = (
|
|
3888
3909
|
/** @class */
|
|
3889
3910
|
function(e) {
|
|
3890
|
-
|
|
3911
|
+
Oe(t, e);
|
|
3891
3912
|
function t(r, i, n) {
|
|
3892
3913
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), ee.INVALID_VALUE, n) || this;
|
|
3893
3914
|
}
|
|
3894
3915
|
return t;
|
|
3895
|
-
}(
|
|
3896
|
-
),
|
|
3916
|
+
}(Me)
|
|
3917
|
+
), Nn = (
|
|
3897
3918
|
/** @class */
|
|
3898
3919
|
function(e) {
|
|
3899
|
-
|
|
3920
|
+
Oe(t, e);
|
|
3900
3921
|
function t(r, i) {
|
|
3901
3922
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), ee.MISSING_VALUE, i) || this;
|
|
3902
3923
|
}
|
|
3903
3924
|
return t;
|
|
3904
|
-
}(
|
|
3925
|
+
}(Me)
|
|
3905
3926
|
), B;
|
|
3906
3927
|
(function(e) {
|
|
3907
3928
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3908
3929
|
})(B || (B = {}));
|
|
3909
|
-
function
|
|
3930
|
+
function Cn(e) {
|
|
3910
3931
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3911
3932
|
var i = t[t.length - 1];
|
|
3912
3933
|
return !i || i.type !== B.literal || r.type !== B.literal ? t.push(r) : i.value += r.value, t;
|
|
3913
3934
|
}, []);
|
|
3914
3935
|
}
|
|
3915
|
-
function
|
|
3936
|
+
function Rn(e) {
|
|
3916
3937
|
return typeof e == "function";
|
|
3917
3938
|
}
|
|
3918
|
-
function _e(e, t, r, i, n,
|
|
3919
|
-
if (e.length === 1 &&
|
|
3939
|
+
function _e(e, t, r, i, n, o, a) {
|
|
3940
|
+
if (e.length === 1 && Ot(e[0]))
|
|
3920
3941
|
return [
|
|
3921
3942
|
{
|
|
3922
3943
|
type: B.literal,
|
|
3923
3944
|
value: e[0].value
|
|
3924
3945
|
}
|
|
3925
3946
|
];
|
|
3926
|
-
for (var
|
|
3947
|
+
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3927
3948
|
var h = l[u];
|
|
3928
|
-
if (
|
|
3929
|
-
|
|
3949
|
+
if (Ot(h)) {
|
|
3950
|
+
s.push({
|
|
3930
3951
|
type: B.literal,
|
|
3931
3952
|
value: h.value
|
|
3932
3953
|
});
|
|
3933
3954
|
continue;
|
|
3934
3955
|
}
|
|
3935
|
-
if (
|
|
3936
|
-
typeof
|
|
3956
|
+
if (nn(h)) {
|
|
3957
|
+
typeof o == "number" && s.push({
|
|
3937
3958
|
type: B.literal,
|
|
3938
|
-
value: r.getNumberFormat(t).format(
|
|
3959
|
+
value: r.getNumberFormat(t).format(o)
|
|
3939
3960
|
});
|
|
3940
3961
|
continue;
|
|
3941
3962
|
}
|
|
3942
3963
|
var f = h.value;
|
|
3943
3964
|
if (!(n && f in n))
|
|
3944
|
-
throw new
|
|
3965
|
+
throw new Nn(f, a);
|
|
3945
3966
|
var c = n[f];
|
|
3946
|
-
if (
|
|
3947
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3967
|
+
if (rn(h)) {
|
|
3968
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3948
3969
|
type: typeof c == "string" ? B.literal : B.object,
|
|
3949
3970
|
value: c
|
|
3950
3971
|
});
|
|
3951
3972
|
continue;
|
|
3952
3973
|
}
|
|
3953
3974
|
if (hr(h)) {
|
|
3954
|
-
var b = typeof h.style == "string" ? i.date[h.style] :
|
|
3955
|
-
|
|
3975
|
+
var b = typeof h.style == "string" ? i.date[h.style] : tt(h.style) ? h.style.parsedOptions : void 0;
|
|
3976
|
+
s.push({
|
|
3956
3977
|
type: B.literal,
|
|
3957
3978
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3958
3979
|
});
|
|
3959
3980
|
continue;
|
|
3960
3981
|
}
|
|
3961
3982
|
if (cr(h)) {
|
|
3962
|
-
var b = typeof h.style == "string" ? i.time[h.style] :
|
|
3963
|
-
|
|
3983
|
+
var b = typeof h.style == "string" ? i.time[h.style] : tt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3984
|
+
s.push({
|
|
3964
3985
|
type: B.literal,
|
|
3965
3986
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3966
3987
|
});
|
|
@@ -3968,7 +3989,7 @@ function _e(e, t, r, i, n, s, a) {
|
|
|
3968
3989
|
}
|
|
3969
3990
|
if (lr(h)) {
|
|
3970
3991
|
var b = typeof h.style == "string" ? i.number[h.style] : dr(h.style) ? h.style.parsedOptions : void 0;
|
|
3971
|
-
b && b.scale && (c = c * (b.scale || 1)),
|
|
3992
|
+
b && b.scale && (c = c * (b.scale || 1)), s.push({
|
|
3972
3993
|
type: B.literal,
|
|
3973
3994
|
value: r.getNumberFormat(t, b).format(c)
|
|
3974
3995
|
});
|
|
@@ -3976,54 +3997,54 @@ function _e(e, t, r, i, n, s, a) {
|
|
|
3976
3997
|
}
|
|
3977
3998
|
if (pr(h)) {
|
|
3978
3999
|
var p = h.children, g = h.value, d = n[g];
|
|
3979
|
-
if (!
|
|
3980
|
-
throw new
|
|
3981
|
-
var v = _e(p, t, r, i, n,
|
|
3982
|
-
return
|
|
4000
|
+
if (!Rn(d))
|
|
4001
|
+
throw new In(g, "function", a);
|
|
4002
|
+
var v = _e(p, t, r, i, n, o), T = d(v.map(function(P) {
|
|
4003
|
+
return P.value;
|
|
3983
4004
|
}));
|
|
3984
|
-
Array.isArray(T) || (T = [T]),
|
|
4005
|
+
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(P) {
|
|
3985
4006
|
return {
|
|
3986
|
-
type: typeof
|
|
3987
|
-
value:
|
|
4007
|
+
type: typeof P == "string" ? B.literal : B.object,
|
|
4008
|
+
value: P
|
|
3988
4009
|
};
|
|
3989
4010
|
}));
|
|
3990
4011
|
}
|
|
3991
4012
|
if (fr(h)) {
|
|
3992
4013
|
var S = h.options[c] || h.options.other;
|
|
3993
4014
|
if (!S)
|
|
3994
|
-
throw new
|
|
3995
|
-
|
|
4015
|
+
throw new $t(h.value, c, Object.keys(h.options), a);
|
|
4016
|
+
s.push.apply(s, _e(S.value, t, r, i, n));
|
|
3996
4017
|
continue;
|
|
3997
4018
|
}
|
|
3998
4019
|
if (mr(h)) {
|
|
3999
4020
|
var S = h.options["=".concat(c)];
|
|
4000
4021
|
if (!S) {
|
|
4001
4022
|
if (!Intl.PluralRules)
|
|
4002
|
-
throw new
|
|
4023
|
+
throw new Me(`Intl.PluralRules is not available in this environment.
|
|
4003
4024
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4004
4025
|
`, ee.MISSING_INTL_API, a);
|
|
4005
|
-
var
|
|
4006
|
-
S = h.options[
|
|
4026
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
4027
|
+
S = h.options[N] || h.options.other;
|
|
4007
4028
|
}
|
|
4008
4029
|
if (!S)
|
|
4009
|
-
throw new
|
|
4010
|
-
|
|
4030
|
+
throw new $t(h.value, c, Object.keys(h.options), a);
|
|
4031
|
+
s.push.apply(s, _e(S.value, t, r, i, n, c - (h.offset || 0)));
|
|
4011
4032
|
continue;
|
|
4012
4033
|
}
|
|
4013
4034
|
}
|
|
4014
|
-
return
|
|
4035
|
+
return Cn(s);
|
|
4015
4036
|
}
|
|
4016
|
-
function
|
|
4017
|
-
return t ?
|
|
4018
|
-
return r[i] =
|
|
4037
|
+
function Gn(e, t) {
|
|
4038
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
4039
|
+
return r[i] = C(C({}, e[i]), t[i] || {}), r;
|
|
4019
4040
|
}, {})) : e;
|
|
4020
4041
|
}
|
|
4021
|
-
function
|
|
4042
|
+
function $n(e, t) {
|
|
4022
4043
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
4023
|
-
return r[i] =
|
|
4024
|
-
},
|
|
4044
|
+
return r[i] = Gn(e[i], t[i]), r;
|
|
4045
|
+
}, C({}, e)) : e;
|
|
4025
4046
|
}
|
|
4026
|
-
function
|
|
4047
|
+
function Ve(e) {
|
|
4027
4048
|
return {
|
|
4028
4049
|
create: function() {
|
|
4029
4050
|
return {
|
|
@@ -4043,29 +4064,29 @@ function Dn(e) {
|
|
|
4043
4064
|
dateTime: {},
|
|
4044
4065
|
pluralRules: {}
|
|
4045
4066
|
}), {
|
|
4046
|
-
getNumberFormat:
|
|
4067
|
+
getNumberFormat: Fe(function() {
|
|
4047
4068
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
4048
4069
|
r[i] = arguments[i];
|
|
4049
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4070
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ue([void 0], r, !1)))();
|
|
4050
4071
|
}, {
|
|
4051
|
-
cache:
|
|
4052
|
-
strategy:
|
|
4072
|
+
cache: Ve(e.number),
|
|
4073
|
+
strategy: je.variadic
|
|
4053
4074
|
}),
|
|
4054
|
-
getDateTimeFormat:
|
|
4075
|
+
getDateTimeFormat: Fe(function() {
|
|
4055
4076
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
4056
4077
|
r[i] = arguments[i];
|
|
4057
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4078
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ue([void 0], r, !1)))();
|
|
4058
4079
|
}, {
|
|
4059
|
-
cache:
|
|
4060
|
-
strategy:
|
|
4080
|
+
cache: Ve(e.dateTime),
|
|
4081
|
+
strategy: je.variadic
|
|
4061
4082
|
}),
|
|
4062
|
-
getPluralRules:
|
|
4083
|
+
getPluralRules: Fe(function() {
|
|
4063
4084
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
4064
4085
|
r[i] = arguments[i];
|
|
4065
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4086
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ue([void 0], r, !1)))();
|
|
4066
4087
|
}, {
|
|
4067
|
-
cache:
|
|
4068
|
-
strategy:
|
|
4088
|
+
cache: Ve(e.pluralRules),
|
|
4089
|
+
strategy: je.variadic
|
|
4069
4090
|
})
|
|
4070
4091
|
};
|
|
4071
4092
|
}
|
|
@@ -4074,13 +4095,13 @@ var Un = (
|
|
|
4074
4095
|
function() {
|
|
4075
4096
|
function e(t, r, i, n) {
|
|
4076
4097
|
r === void 0 && (r = e.defaultLocale);
|
|
4077
|
-
var
|
|
4098
|
+
var o = this;
|
|
4078
4099
|
if (this.formatterCache = {
|
|
4079
4100
|
number: {},
|
|
4080
4101
|
dateTime: {},
|
|
4081
4102
|
pluralRules: {}
|
|
4082
4103
|
}, this.format = function(u) {
|
|
4083
|
-
var l =
|
|
4104
|
+
var l = o.formatToParts(u);
|
|
4084
4105
|
if (l.length === 1)
|
|
4085
4106
|
return l[0].value;
|
|
4086
4107
|
var h = l.reduce(function(f, c) {
|
|
@@ -4088,26 +4109,26 @@ var Un = (
|
|
|
4088
4109
|
}, []);
|
|
4089
4110
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4090
4111
|
}, this.formatToParts = function(u) {
|
|
4091
|
-
return _e(
|
|
4112
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
4092
4113
|
}, this.resolvedOptions = function() {
|
|
4093
4114
|
var u;
|
|
4094
4115
|
return {
|
|
4095
|
-
locale: ((u =
|
|
4116
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
4096
4117
|
};
|
|
4097
4118
|
}, this.getAst = function() {
|
|
4098
|
-
return
|
|
4119
|
+
return o.ast;
|
|
4099
4120
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4100
4121
|
if (this.message = t, !e.__parse)
|
|
4101
4122
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4102
4123
|
var a = n || {};
|
|
4103
4124
|
a.formatters;
|
|
4104
|
-
var
|
|
4105
|
-
this.ast = e.__parse(t,
|
|
4125
|
+
var s = Zi(a, ["formatters"]);
|
|
4126
|
+
this.ast = e.__parse(t, C(C({}, s), { locale: this.resolvedLocale }));
|
|
4106
4127
|
} else
|
|
4107
4128
|
this.ast = t;
|
|
4108
4129
|
if (!Array.isArray(this.ast))
|
|
4109
4130
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4110
|
-
this.formats =
|
|
4131
|
+
this.formats = $n(e.formats, i), this.formatters = n && n.formatters || Dn(this.formatterCache);
|
|
4111
4132
|
}
|
|
4112
4133
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4113
4134
|
get: function() {
|
|
@@ -4120,7 +4141,7 @@ var Un = (
|
|
|
4120
4141
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4121
4142
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4122
4143
|
}
|
|
4123
|
-
}, e.__parse =
|
|
4144
|
+
}, e.__parse = Mn, e.formats = {
|
|
4124
4145
|
number: {
|
|
4125
4146
|
integer: {
|
|
4126
4147
|
maximumFractionDigits: 0
|
|
@@ -4181,7 +4202,7 @@ var Un = (
|
|
|
4181
4202
|
}, e;
|
|
4182
4203
|
}()
|
|
4183
4204
|
);
|
|
4184
|
-
function
|
|
4205
|
+
function Fn(e, t) {
|
|
4185
4206
|
if (t == null)
|
|
4186
4207
|
return;
|
|
4187
4208
|
if (t in e)
|
|
@@ -4191,9 +4212,9 @@ function $n(e, t) {
|
|
|
4191
4212
|
for (let n = 0; n < r.length; n++)
|
|
4192
4213
|
if (typeof i == "object") {
|
|
4193
4214
|
if (n > 0) {
|
|
4194
|
-
const
|
|
4195
|
-
if (
|
|
4196
|
-
i = i[
|
|
4215
|
+
const o = r.slice(n, r.length).join(".");
|
|
4216
|
+
if (o in i) {
|
|
4217
|
+
i = i[o];
|
|
4197
4218
|
break;
|
|
4198
4219
|
}
|
|
4199
4220
|
}
|
|
@@ -4202,36 +4223,36 @@ function $n(e, t) {
|
|
|
4202
4223
|
i = void 0;
|
|
4203
4224
|
return i;
|
|
4204
4225
|
}
|
|
4205
|
-
const
|
|
4226
|
+
const U = {}, jn = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), wr = (e, t) => {
|
|
4206
4227
|
if (t == null)
|
|
4207
4228
|
return;
|
|
4208
|
-
if (t in
|
|
4209
|
-
return
|
|
4210
|
-
const r =
|
|
4229
|
+
if (t in U && e in U[t])
|
|
4230
|
+
return U[t][e];
|
|
4231
|
+
const r = Ie(t);
|
|
4211
4232
|
for (let i = 0; i < r.length; i++) {
|
|
4212
|
-
const n = r[i],
|
|
4213
|
-
if (
|
|
4214
|
-
return
|
|
4233
|
+
const n = r[i], o = Vn(n, e);
|
|
4234
|
+
if (o)
|
|
4235
|
+
return jn(e, t, o);
|
|
4215
4236
|
}
|
|
4216
4237
|
};
|
|
4217
|
-
let
|
|
4238
|
+
let ct;
|
|
4218
4239
|
const pe = Be({});
|
|
4219
|
-
function
|
|
4220
|
-
return
|
|
4240
|
+
function kn(e) {
|
|
4241
|
+
return ct[e] || null;
|
|
4221
4242
|
}
|
|
4222
4243
|
function Lr(e) {
|
|
4223
|
-
return e in
|
|
4244
|
+
return e in ct;
|
|
4224
4245
|
}
|
|
4225
|
-
function
|
|
4246
|
+
function Vn(e, t) {
|
|
4226
4247
|
if (!Lr(e))
|
|
4227
4248
|
return null;
|
|
4228
|
-
const r =
|
|
4229
|
-
return
|
|
4249
|
+
const r = kn(e);
|
|
4250
|
+
return Fn(r, t);
|
|
4230
4251
|
}
|
|
4231
|
-
function
|
|
4252
|
+
function Xn(e) {
|
|
4232
4253
|
if (e == null)
|
|
4233
4254
|
return;
|
|
4234
|
-
const t =
|
|
4255
|
+
const t = Ie(e);
|
|
4235
4256
|
for (let r = 0; r < t.length; r++) {
|
|
4236
4257
|
const i = t[r];
|
|
4237
4258
|
if (Lr(i))
|
|
@@ -4239,55 +4260,55 @@ function Vn(e) {
|
|
|
4239
4260
|
}
|
|
4240
4261
|
}
|
|
4241
4262
|
function Tr(e, ...t) {
|
|
4242
|
-
delete
|
|
4263
|
+
delete U[e], pe.update((r) => (r[e] = zi.all([r[e] || {}, ...t]), r));
|
|
4243
4264
|
}
|
|
4244
4265
|
ie(
|
|
4245
4266
|
[pe],
|
|
4246
4267
|
([e]) => Object.keys(e)
|
|
4247
4268
|
);
|
|
4248
|
-
pe.subscribe((e) =>
|
|
4269
|
+
pe.subscribe((e) => ct = e);
|
|
4249
4270
|
const Ee = {};
|
|
4250
|
-
function
|
|
4271
|
+
function Wn(e, t) {
|
|
4251
4272
|
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
4252
4273
|
}
|
|
4253
4274
|
function Sr(e) {
|
|
4254
4275
|
return Ee[e];
|
|
4255
4276
|
}
|
|
4256
|
-
function
|
|
4257
|
-
return
|
|
4277
|
+
function zn(e) {
|
|
4278
|
+
return Ie(e).map((t) => {
|
|
4258
4279
|
const r = Sr(t);
|
|
4259
4280
|
return [t, r ? [...r] : []];
|
|
4260
4281
|
}).filter(([, t]) => t.length > 0);
|
|
4261
4282
|
}
|
|
4262
|
-
function
|
|
4263
|
-
return e == null ? !1 :
|
|
4283
|
+
function at(e) {
|
|
4284
|
+
return e == null ? !1 : Ie(e).some(
|
|
4264
4285
|
(t) => {
|
|
4265
4286
|
var r;
|
|
4266
4287
|
return (r = Sr(t)) == null ? void 0 : r.size;
|
|
4267
4288
|
}
|
|
4268
4289
|
);
|
|
4269
4290
|
}
|
|
4270
|
-
function
|
|
4291
|
+
function Zn(e, t) {
|
|
4271
4292
|
return Promise.all(
|
|
4272
|
-
t.map((i) => (
|
|
4293
|
+
t.map((i) => (Wn(e, i), i().then((n) => n.default || n)))
|
|
4273
4294
|
).then((i) => Tr(e, ...i));
|
|
4274
4295
|
}
|
|
4275
|
-
const
|
|
4296
|
+
const ae = {};
|
|
4276
4297
|
function Hr(e) {
|
|
4277
|
-
if (!
|
|
4278
|
-
return e in
|
|
4279
|
-
const t =
|
|
4280
|
-
return
|
|
4298
|
+
if (!at(e))
|
|
4299
|
+
return e in ae ? ae[e] : Promise.resolve();
|
|
4300
|
+
const t = zn(e);
|
|
4301
|
+
return ae[e] = Promise.all(
|
|
4281
4302
|
t.map(
|
|
4282
|
-
([r, i]) =>
|
|
4303
|
+
([r, i]) => Zn(r, i)
|
|
4283
4304
|
)
|
|
4284
4305
|
).then(() => {
|
|
4285
|
-
if (
|
|
4306
|
+
if (at(e))
|
|
4286
4307
|
return Hr(e);
|
|
4287
|
-
delete
|
|
4288
|
-
}),
|
|
4308
|
+
delete ae[e];
|
|
4309
|
+
}), ae[e];
|
|
4289
4310
|
}
|
|
4290
|
-
const
|
|
4311
|
+
const Qn = {
|
|
4291
4312
|
number: {
|
|
4292
4313
|
scientific: { notation: "scientific" },
|
|
4293
4314
|
engineering: { notation: "engineering" },
|
|
@@ -4316,140 +4337,140 @@ const Zn = {
|
|
|
4316
4337
|
timeZoneName: "short"
|
|
4317
4338
|
}
|
|
4318
4339
|
}
|
|
4319
|
-
},
|
|
4340
|
+
}, qn = {
|
|
4320
4341
|
fallbackLocale: null,
|
|
4321
4342
|
loadingDelay: 200,
|
|
4322
|
-
formats:
|
|
4343
|
+
formats: Qn,
|
|
4323
4344
|
warnOnMissingMessages: !0,
|
|
4324
4345
|
handleMissingMessage: void 0,
|
|
4325
4346
|
ignoreTag: !0
|
|
4326
|
-
},
|
|
4347
|
+
}, Jn = qn;
|
|
4327
4348
|
function te() {
|
|
4328
|
-
return
|
|
4349
|
+
return Jn;
|
|
4329
4350
|
}
|
|
4330
|
-
const
|
|
4331
|
-
var
|
|
4351
|
+
const Xe = Be(!1);
|
|
4352
|
+
var Yn = Object.defineProperty, Kn = Object.defineProperties, eo = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, to = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, io = (e, t) => {
|
|
4332
4353
|
for (var r in t || (t = {}))
|
|
4333
|
-
|
|
4354
|
+
to.call(t, r) && Ut(e, r, t[r]);
|
|
4334
4355
|
if (Dt)
|
|
4335
4356
|
for (var r of Dt(t))
|
|
4336
|
-
|
|
4357
|
+
ro.call(t, r) && Ut(e, r, t[r]);
|
|
4337
4358
|
return e;
|
|
4338
|
-
},
|
|
4339
|
-
let
|
|
4340
|
-
const
|
|
4341
|
-
function
|
|
4359
|
+
}, no = (e, t) => Kn(e, eo(t));
|
|
4360
|
+
let ut;
|
|
4361
|
+
const Se = Be(null);
|
|
4362
|
+
function Ft(e) {
|
|
4342
4363
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
4343
4364
|
}
|
|
4344
|
-
function
|
|
4345
|
-
const r =
|
|
4346
|
-
return t ? [.../* @__PURE__ */ new Set([...r,
|
|
4365
|
+
function Ie(e, t = te().fallbackLocale) {
|
|
4366
|
+
const r = Ft(e);
|
|
4367
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ft(t)])] : r;
|
|
4347
4368
|
}
|
|
4348
4369
|
function k() {
|
|
4349
|
-
return
|
|
4370
|
+
return ut != null ? ut : void 0;
|
|
4350
4371
|
}
|
|
4351
|
-
|
|
4352
|
-
|
|
4372
|
+
Se.subscribe((e) => {
|
|
4373
|
+
ut = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4353
4374
|
});
|
|
4354
|
-
const
|
|
4355
|
-
if (e &&
|
|
4375
|
+
const oo = (e) => {
|
|
4376
|
+
if (e && Xn(e) && at(e)) {
|
|
4356
4377
|
const { loadingDelay: t } = te();
|
|
4357
4378
|
let r;
|
|
4358
4379
|
return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
|
|
4359
|
-
() =>
|
|
4380
|
+
() => Xe.set(!0),
|
|
4360
4381
|
t
|
|
4361
|
-
) :
|
|
4362
|
-
|
|
4382
|
+
) : Xe.set(!0), Hr(e).then(() => {
|
|
4383
|
+
Se.set(e);
|
|
4363
4384
|
}).finally(() => {
|
|
4364
|
-
clearTimeout(r),
|
|
4385
|
+
clearTimeout(r), Xe.set(!1);
|
|
4365
4386
|
});
|
|
4366
4387
|
}
|
|
4367
|
-
return
|
|
4368
|
-
}, ne =
|
|
4369
|
-
set:
|
|
4370
|
-
}),
|
|
4388
|
+
return Se.set(e);
|
|
4389
|
+
}, ne = no(io({}, Se), {
|
|
4390
|
+
set: oo
|
|
4391
|
+
}), Ne = (e) => {
|
|
4371
4392
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4372
4393
|
return (i) => {
|
|
4373
4394
|
const n = JSON.stringify(i);
|
|
4374
4395
|
return n in t ? t[n] : t[n] = e(i);
|
|
4375
4396
|
};
|
|
4376
4397
|
};
|
|
4377
|
-
var
|
|
4398
|
+
var so = Object.defineProperty, He = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
4378
4399
|
for (var r in t || (t = {}))
|
|
4379
|
-
|
|
4380
|
-
if (
|
|
4381
|
-
for (var r of
|
|
4382
|
-
|
|
4400
|
+
Pr.call(t, r) && jt(e, r, t[r]);
|
|
4401
|
+
if (He)
|
|
4402
|
+
for (var r of He(t))
|
|
4403
|
+
Ar.call(t, r) && jt(e, r, t[r]);
|
|
4383
4404
|
return e;
|
|
4384
|
-
},
|
|
4405
|
+
}, oe = (e, t) => {
|
|
4385
4406
|
var r = {};
|
|
4386
4407
|
for (var i in e)
|
|
4387
|
-
|
|
4388
|
-
if (e != null &&
|
|
4389
|
-
for (var i of
|
|
4390
|
-
t.indexOf(i) < 0 &&
|
|
4408
|
+
Pr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
4409
|
+
if (e != null && He)
|
|
4410
|
+
for (var i of He(e))
|
|
4411
|
+
t.indexOf(i) < 0 && Ar.call(e, i) && (r[i] = e[i]);
|
|
4391
4412
|
return r;
|
|
4392
4413
|
};
|
|
4393
|
-
const
|
|
4414
|
+
const fe = (e, t) => {
|
|
4394
4415
|
const { formats: r } = te();
|
|
4395
4416
|
if (e in r && t in r[e])
|
|
4396
4417
|
return r[e][t];
|
|
4397
4418
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4398
|
-
},
|
|
4419
|
+
}, ao = Ne(
|
|
4399
4420
|
(e) => {
|
|
4400
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4421
|
+
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
4401
4422
|
if (r == null)
|
|
4402
4423
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4403
|
-
return i && (n =
|
|
4424
|
+
return i && (n = fe("number", i)), new Intl.NumberFormat(r, n);
|
|
4404
4425
|
}
|
|
4405
|
-
),
|
|
4426
|
+
), uo = Ne(
|
|
4406
4427
|
(e) => {
|
|
4407
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4428
|
+
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
4408
4429
|
if (r == null)
|
|
4409
4430
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4410
|
-
return i ? n =
|
|
4431
|
+
return i ? n = fe("date", i) : Object.keys(n).length === 0 && (n = fe("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
4411
4432
|
}
|
|
4412
|
-
),
|
|
4433
|
+
), lo = Ne(
|
|
4413
4434
|
(e) => {
|
|
4414
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4435
|
+
var t = e, { locale: r, format: i } = t, n = oe(t, ["locale", "format"]);
|
|
4415
4436
|
if (r == null)
|
|
4416
4437
|
throw new Error(
|
|
4417
4438
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4418
4439
|
);
|
|
4419
|
-
return i ? n =
|
|
4440
|
+
return i ? n = fe("time", i) : Object.keys(n).length === 0 && (n = fe("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
4420
4441
|
}
|
|
4421
|
-
),
|
|
4442
|
+
), ho = (e = {}) => {
|
|
4422
4443
|
var t = e, {
|
|
4423
4444
|
locale: r = k()
|
|
4424
|
-
} = t, i =
|
|
4445
|
+
} = t, i = oe(t, [
|
|
4425
4446
|
"locale"
|
|
4426
4447
|
]);
|
|
4427
|
-
return
|
|
4428
|
-
},
|
|
4448
|
+
return ao(ft({ locale: r }, i));
|
|
4449
|
+
}, co = (e = {}) => {
|
|
4429
4450
|
var t = e, {
|
|
4430
4451
|
locale: r = k()
|
|
4431
|
-
} = t, i =
|
|
4452
|
+
} = t, i = oe(t, [
|
|
4432
4453
|
"locale"
|
|
4433
4454
|
]);
|
|
4434
|
-
return
|
|
4435
|
-
},
|
|
4455
|
+
return uo(ft({ locale: r }, i));
|
|
4456
|
+
}, fo = (e = {}) => {
|
|
4436
4457
|
var t = e, {
|
|
4437
4458
|
locale: r = k()
|
|
4438
|
-
} = t, i =
|
|
4459
|
+
} = t, i = oe(t, [
|
|
4439
4460
|
"locale"
|
|
4440
4461
|
]);
|
|
4441
|
-
return
|
|
4442
|
-
},
|
|
4462
|
+
return lo(ft({ locale: r }, i));
|
|
4463
|
+
}, mo = Ne(
|
|
4443
4464
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4444
4465
|
(e, t = k()) => new Un(e, t, te().formats, {
|
|
4445
4466
|
ignoreTag: te().ignoreTag
|
|
4446
4467
|
})
|
|
4447
|
-
),
|
|
4448
|
-
var r, i, n,
|
|
4468
|
+
), po = (e, t = {}) => {
|
|
4469
|
+
var r, i, n, o;
|
|
4449
4470
|
let a = t;
|
|
4450
4471
|
typeof e == "object" && (a = e, e = a.id);
|
|
4451
4472
|
const {
|
|
4452
|
-
values:
|
|
4473
|
+
values: s,
|
|
4453
4474
|
locale: u = k(),
|
|
4454
4475
|
default: l
|
|
4455
4476
|
} = a;
|
|
@@ -4459,16 +4480,16 @@ const me = (e, t) => {
|
|
|
4459
4480
|
);
|
|
4460
4481
|
let h = wr(e, u);
|
|
4461
4482
|
if (!h)
|
|
4462
|
-
h = (
|
|
4483
|
+
h = (o = (n = (i = (r = te()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: u, id: e, defaultValue: l })) != null ? n : l) != null ? o : e;
|
|
4463
4484
|
else if (typeof h != "string")
|
|
4464
4485
|
return console.warn(
|
|
4465
4486
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4466
4487
|
), h;
|
|
4467
|
-
if (!
|
|
4488
|
+
if (!s)
|
|
4468
4489
|
return h;
|
|
4469
4490
|
let f = h;
|
|
4470
4491
|
try {
|
|
4471
|
-
f =
|
|
4492
|
+
f = mo(h, u).format(s);
|
|
4472
4493
|
} catch (c) {
|
|
4473
4494
|
c instanceof Error && console.warn(
|
|
4474
4495
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4476,20 +4497,20 @@ const me = (e, t) => {
|
|
|
4476
4497
|
);
|
|
4477
4498
|
}
|
|
4478
4499
|
return f;
|
|
4479
|
-
},
|
|
4480
|
-
ie([ne], () =>
|
|
4481
|
-
ie([ne], () =>
|
|
4482
|
-
ie([ne], () =>
|
|
4483
|
-
ie([ne, pe], () =>
|
|
4484
|
-
window.emWidgets = { topic:
|
|
4485
|
-
const
|
|
4486
|
-
function
|
|
4500
|
+
}, go = (e, t) => fo(t).format(e), bo = (e, t) => co(t).format(e), yo = (e, t) => ho(t).format(e), vo = (e, t = k()) => wr(e, t), _o = ie([ne, pe], () => po);
|
|
4501
|
+
ie([ne], () => go);
|
|
4502
|
+
ie([ne], () => bo);
|
|
4503
|
+
ie([ne], () => yo);
|
|
4504
|
+
ie([ne, pe], () => vo);
|
|
4505
|
+
window.emWidgets = { topic: Bi };
|
|
4506
|
+
const Eo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4507
|
+
function kt(e, t) {
|
|
4487
4508
|
Tr(e, t);
|
|
4488
4509
|
}
|
|
4489
|
-
function
|
|
4510
|
+
function xo(e) {
|
|
4490
4511
|
ne.set(e);
|
|
4491
4512
|
}
|
|
4492
|
-
const
|
|
4513
|
+
const Vt = {
|
|
4493
4514
|
en: {
|
|
4494
4515
|
returnToMenu: "Return to menu",
|
|
4495
4516
|
gamingLimitsText: "Gaming limits",
|
|
@@ -4579,13 +4600,13 @@ const kt = {
|
|
|
4579
4600
|
lossLimit: "Loss Limit"
|
|
4580
4601
|
}
|
|
4581
4602
|
};
|
|
4582
|
-
function
|
|
4603
|
+
function wo(e, t) {
|
|
4583
4604
|
if (e) {
|
|
4584
4605
|
const r = document.createElement("style");
|
|
4585
4606
|
r.innerHTML = t, e.appendChild(r);
|
|
4586
4607
|
}
|
|
4587
4608
|
}
|
|
4588
|
-
function
|
|
4609
|
+
function Lo(e, t) {
|
|
4589
4610
|
const r = new URL(t);
|
|
4590
4611
|
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
4591
4612
|
const n = document.createElement("style");
|
|
@@ -4594,7 +4615,7 @@ function xs(e, t) {
|
|
|
4594
4615
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
4595
4616
|
});
|
|
4596
4617
|
}
|
|
4597
|
-
function
|
|
4618
|
+
function To(e, t, r) {
|
|
4598
4619
|
if (window.emMessageBus) {
|
|
4599
4620
|
const i = document.createElement("style");
|
|
4600
4621
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -4614,21 +4635,21 @@ if (typeof window != "undefined") {
|
|
|
4614
4635
|
}
|
|
4615
4636
|
};
|
|
4616
4637
|
};
|
|
4617
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-
|
|
4638
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-DJVcHz9f.js").then(({ default: t }) => {
|
|
4618
4639
|
!customElements.get("player-account-gaming-limits-info-card") && customElements.define(
|
|
4619
4640
|
"player-account-gaming-limits-info-card",
|
|
4620
4641
|
t.element
|
|
4621
4642
|
);
|
|
4622
4643
|
});
|
|
4623
4644
|
}
|
|
4624
|
-
function
|
|
4645
|
+
function So(e) {
|
|
4625
4646
|
Xr(e, "svelte-pgwzq8", '.PlayerAccountGamingLimitsWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;max-width:760px}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader h3{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader .PlayerAccountGamingLimitsMobileTitle{font-size:16px;font-weight:400}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emw--color-white, #FFFFFF);max-width:unset}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.PlayerAccountSuccessfulRemoveContainer{background:var(--emw--color-primary-50, #FBECF4);border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;padding:10px;margin-bottom:20px}.PlayerAccountSuccessfulRemoveContainer p{margin:0}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4626
4647
|
}
|
|
4627
|
-
function
|
|
4648
|
+
function Ho(e) {
|
|
4628
4649
|
let t;
|
|
4629
4650
|
return {
|
|
4630
4651
|
c() {
|
|
4631
|
-
t =
|
|
4652
|
+
t = O("player-account-gaming-limits-group-edit"), m(
|
|
4632
4653
|
t,
|
|
4633
4654
|
"limitsdata",
|
|
4634
4655
|
/*editLimitData*/
|
|
@@ -4751,23 +4772,23 @@ function Ts(e) {
|
|
|
4751
4772
|
}
|
|
4752
4773
|
};
|
|
4753
4774
|
}
|
|
4754
|
-
function
|
|
4775
|
+
function Po(e) {
|
|
4755
4776
|
let t, r, i, n = (
|
|
4756
4777
|
/*$_*/
|
|
4757
4778
|
e[17]("gamingLimitsText") + ""
|
|
4758
|
-
),
|
|
4779
|
+
), o, a, s, u, l, h, f, c, b, p, g = (
|
|
4759
4780
|
/*isMobile*/
|
|
4760
|
-
e[18] &&
|
|
4781
|
+
e[18] && Bo(e)
|
|
4761
4782
|
);
|
|
4762
4783
|
return {
|
|
4763
4784
|
c() {
|
|
4764
|
-
t =
|
|
4785
|
+
t = O("div"), g && g.c(), r = Z(), i = O("h2"), o = le(n), a = Z(), s = O("div"), u = O("player-account-gaming-limits-info-card"), l = Z(), h = O("player-account-gaming-limits-info-card"), f = Z(), c = O("player-account-gaming-limits-info-card"), b = Z(), p = O("player-account-gaming-limits-info-card"), H(i, "class", "PlayerGamingLimitsTitle " + /*isMobile*/
|
|
4765
4786
|
(e[18] ? "PlayerGamingLimitsTitleNone" : "")), m(
|
|
4766
4787
|
u,
|
|
4767
4788
|
"limitsdata",
|
|
4768
4789
|
/*depositlimit*/
|
|
4769
4790
|
e[1]
|
|
4770
|
-
), m(u, "limitname",
|
|
4791
|
+
), m(u, "limitname", Mo), m(
|
|
4771
4792
|
u,
|
|
4772
4793
|
"currency",
|
|
4773
4794
|
/*currency*/
|
|
@@ -4797,7 +4818,7 @@ function Ss(e) {
|
|
|
4797
4818
|
"limitsdata",
|
|
4798
4819
|
/*wageringlimit*/
|
|
4799
4820
|
e[2]
|
|
4800
|
-
), m(h, "limitname",
|
|
4821
|
+
), m(h, "limitname", Io), m(
|
|
4801
4822
|
h,
|
|
4802
4823
|
"currency",
|
|
4803
4824
|
/*currency*/
|
|
@@ -4827,7 +4848,7 @@ function Ss(e) {
|
|
|
4827
4848
|
"limitsdata",
|
|
4828
4849
|
/*losslimit*/
|
|
4829
4850
|
e[3]
|
|
4830
|
-
), m(c, "limitname",
|
|
4851
|
+
), m(c, "limitname", No), m(
|
|
4831
4852
|
c,
|
|
4832
4853
|
"currency",
|
|
4833
4854
|
/*currency*/
|
|
@@ -4857,7 +4878,7 @@ function Ss(e) {
|
|
|
4857
4878
|
"limitsdata",
|
|
4858
4879
|
/*timelimit*/
|
|
4859
4880
|
e[4]
|
|
4860
|
-
), m(p, "limitname",
|
|
4881
|
+
), m(p, "limitname", Co), m(
|
|
4861
4882
|
p,
|
|
4862
4883
|
"currency",
|
|
4863
4884
|
/*currency*/
|
|
@@ -4882,17 +4903,17 @@ function Ss(e) {
|
|
|
4882
4903
|
"mbsource",
|
|
4883
4904
|
/*mbsource*/
|
|
4884
4905
|
e[11]
|
|
4885
|
-
), H(
|
|
4906
|
+
), H(s, "class", "PlayerAccountGamingLimitsContainer"), H(t, "class", "PlayerAccountGamingLimitsWrapper " + /*isMobile*/
|
|
4886
4907
|
(e[18] ? "PlayerAccountMobileGamingLimitsWrapper" : ""));
|
|
4887
4908
|
},
|
|
4888
4909
|
m(d, v) {
|
|
4889
|
-
re(d, t, v), g && g.m(t, null),
|
|
4910
|
+
re(d, t, v), g && g.m(t, null), w(t, r), w(t, i), w(i, o), w(t, a), w(t, s), w(s, u), w(s, l), w(s, h), w(s, f), w(s, c), w(s, b), w(s, p);
|
|
4890
4911
|
},
|
|
4891
4912
|
p(d, v) {
|
|
4892
4913
|
/*isMobile*/
|
|
4893
4914
|
d[18] && g.p(d, v), v & /*$_*/
|
|
4894
4915
|
131072 && n !== (n = /*$_*/
|
|
4895
|
-
d[17]("gamingLimitsText") + "") &&
|
|
4916
|
+
d[17]("gamingLimitsText") + "") && Yt(o, n), v & /*depositlimit*/
|
|
4896
4917
|
2 && m(
|
|
4897
4918
|
u,
|
|
4898
4919
|
"limitsdata",
|
|
@@ -5043,11 +5064,11 @@ function Ss(e) {
|
|
|
5043
5064
|
}
|
|
5044
5065
|
};
|
|
5045
5066
|
}
|
|
5046
|
-
function
|
|
5067
|
+
function Ao(e) {
|
|
5047
5068
|
let t;
|
|
5048
5069
|
return {
|
|
5049
5070
|
c() {
|
|
5050
|
-
t =
|
|
5071
|
+
t = O("div"), H(t, "class", "ModalLoader");
|
|
5051
5072
|
},
|
|
5052
5073
|
m(r, i) {
|
|
5053
5074
|
re(r, t, i);
|
|
@@ -5058,17 +5079,17 @@ function Hs(e) {
|
|
|
5058
5079
|
}
|
|
5059
5080
|
};
|
|
5060
5081
|
}
|
|
5061
|
-
function
|
|
5062
|
-
let t, r, i, n,
|
|
5082
|
+
function Bo(e) {
|
|
5083
|
+
let t, r, i, n, o, a, s, u, l, h, f = (
|
|
5063
5084
|
/*$_*/
|
|
5064
5085
|
e[17]("gamingLimitsText") + ""
|
|
5065
5086
|
), c, b, p;
|
|
5066
5087
|
return {
|
|
5067
5088
|
c() {
|
|
5068
|
-
t =
|
|
5089
|
+
t = O("div"), r = X("svg"), i = X("defs"), n = X("style"), o = le(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = X("g"), s = X("g"), u = X("path"), l = Z(), h = O("h2"), c = le(f), H(u, "class", "aaa"), H(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), H(u, "transform", "translate(15 15) rotate(180)"), H(s, "transform", "translate(20 158)"), H(a, "transform", "translate(-20 -158)"), H(r, "xmlns", "http://www.w3.org/2000/svg"), H(r, "width", "15"), H(r, "height", "15"), H(r, "viewBox", "0 0 15 15"), H(h, "class", "PlayerGamingLimitsTitleMobile"), H(t, "class", "MenuReturnButton");
|
|
5069
5090
|
},
|
|
5070
5091
|
m(g, d) {
|
|
5071
|
-
re(g, t, d),
|
|
5092
|
+
re(g, t, d), w(t, r), w(r, i), w(i, n), w(n, o), w(r, a), w(a, s), w(s, u), w(t, l), w(t, h), w(h, c), b || (p = zr(
|
|
5072
5093
|
t,
|
|
5073
5094
|
"click",
|
|
5074
5095
|
/*click_handler*/
|
|
@@ -5078,119 +5099,119 @@ function As(e) {
|
|
|
5078
5099
|
p(g, d) {
|
|
5079
5100
|
d & /*$_*/
|
|
5080
5101
|
131072 && f !== (f = /*$_*/
|
|
5081
|
-
g[17]("gamingLimitsText") + "") &&
|
|
5102
|
+
g[17]("gamingLimitsText") + "") && Yt(c, f);
|
|
5082
5103
|
},
|
|
5083
5104
|
d(g) {
|
|
5084
5105
|
g && F(t), b = !1, p();
|
|
5085
5106
|
}
|
|
5086
5107
|
};
|
|
5087
5108
|
}
|
|
5088
|
-
function
|
|
5109
|
+
function Oo(e) {
|
|
5089
5110
|
let t;
|
|
5090
|
-
function r(
|
|
5111
|
+
function r(o, a) {
|
|
5091
5112
|
return (
|
|
5092
5113
|
/*isLoading*/
|
|
5093
|
-
|
|
5114
|
+
o[13] ? Ao : (
|
|
5094
5115
|
/*limitsGroupView*/
|
|
5095
|
-
|
|
5116
|
+
o[16] ? Po : Ho
|
|
5096
5117
|
)
|
|
5097
5118
|
);
|
|
5098
5119
|
}
|
|
5099
5120
|
let i = r(e), n = i(e);
|
|
5100
5121
|
return {
|
|
5101
5122
|
c() {
|
|
5102
|
-
t =
|
|
5123
|
+
t = O("div"), n.c();
|
|
5103
5124
|
},
|
|
5104
|
-
m(
|
|
5105
|
-
re(
|
|
5125
|
+
m(o, a) {
|
|
5126
|
+
re(o, t, a), n.m(t, null), e[22](t);
|
|
5106
5127
|
},
|
|
5107
|
-
p(
|
|
5108
|
-
i === (i = r(
|
|
5128
|
+
p(o, [a]) {
|
|
5129
|
+
i === (i = r(o)) && n ? n.p(o, a) : (n.d(1), n = i(o), n && (n.c(), n.m(t, null)));
|
|
5109
5130
|
},
|
|
5110
5131
|
i: M,
|
|
5111
5132
|
o: M,
|
|
5112
|
-
d(
|
|
5113
|
-
|
|
5133
|
+
d(o) {
|
|
5134
|
+
o && F(t), n.d(), e[22](null);
|
|
5114
5135
|
}
|
|
5115
5136
|
};
|
|
5116
5137
|
}
|
|
5117
|
-
let
|
|
5118
|
-
function
|
|
5138
|
+
let Mo = "Deposit Limit", Io = "Wagering Limit", No = "Loss Limit", Co = "Time Limit";
|
|
5139
|
+
function Ro(e, t, r) {
|
|
5119
5140
|
let i;
|
|
5120
|
-
jr(e,
|
|
5121
|
-
let { depositlimit: n } = t, { wageringlimit:
|
|
5141
|
+
jr(e, _o, (y) => r(17, i = y));
|
|
5142
|
+
let { depositlimit: n } = t, { wageringlimit: o } = t, { losslimit: a } = t, { timelimit: s } = t, { showdeletenotification: u = !1 } = t, { showsuccessnotification: l = !1 } = t, { lang: h = "en" } = t, { currency: f = "" } = t, { separatelimits: c = "true" } = t, { clientstyling: b = "" } = t, { clientstylingurl: p = "" } = t, { mbsource: g } = t, { translationurl: d = "" } = t;
|
|
5122
5143
|
const v = () => {
|
|
5123
|
-
fetch(d).then((
|
|
5124
|
-
Object.keys(
|
|
5125
|
-
|
|
5144
|
+
fetch(d).then((D) => D.json()).then((D) => {
|
|
5145
|
+
Object.keys(D).forEach((dt) => {
|
|
5146
|
+
kt(dt, D[dt]);
|
|
5126
5147
|
});
|
|
5127
|
-
}).catch((
|
|
5128
|
-
console.log(
|
|
5148
|
+
}).catch((D) => {
|
|
5149
|
+
console.log(D);
|
|
5129
5150
|
});
|
|
5130
5151
|
};
|
|
5131
|
-
Object.keys(
|
|
5132
|
-
|
|
5152
|
+
Object.keys(Vt).forEach((y) => {
|
|
5153
|
+
kt(y, Vt[y]);
|
|
5133
5154
|
});
|
|
5134
|
-
let T, S
|
|
5155
|
+
let T, S = !0, N = window.navigator.userAgent, P = Eo(N) !== "PC", R, V = "", Ce = !0;
|
|
5135
5156
|
window.matchMedia("(min-width: 768px)");
|
|
5136
|
-
const
|
|
5157
|
+
const mt = () => {
|
|
5137
5158
|
window.postMessage(
|
|
5138
5159
|
{
|
|
5139
5160
|
type: "PlayerAccountMenuActive",
|
|
5140
|
-
isMobile:
|
|
5161
|
+
isMobile: P
|
|
5141
5162
|
},
|
|
5142
5163
|
window.location.href
|
|
5143
5164
|
);
|
|
5144
5165
|
}, Or = () => {
|
|
5145
|
-
|
|
5146
|
-
},
|
|
5166
|
+
xo(h);
|
|
5167
|
+
}, pt = (y) => {
|
|
5147
5168
|
if (y.data)
|
|
5148
5169
|
switch (y.data.type) {
|
|
5149
5170
|
case "PlayerLimitsData":
|
|
5150
|
-
r(0, h = y.data.limits.lang), r(1, n = y.data.limits.depositlimit), r(2,
|
|
5171
|
+
r(0, h = y.data.limits.lang), r(1, n = y.data.limits.depositlimit), r(2, o = y.data.limits.wageringlimit), r(3, a = y.data.limits.losslimit), r(4, s = y.data.limits.timelimit), r(13, S = !1);
|
|
5151
5172
|
break;
|
|
5152
5173
|
case "EditPlayerAccountGamingLimits":
|
|
5153
|
-
r(14,
|
|
5174
|
+
r(14, R = y.data.edit), r(15, V = y.data.name), r(16, Ce = !1), window.postMessage(
|
|
5154
5175
|
{
|
|
5155
5176
|
type: "EditPlayerLimit",
|
|
5156
|
-
name:
|
|
5177
|
+
name: V
|
|
5157
5178
|
},
|
|
5158
5179
|
window.location.href
|
|
5159
5180
|
), window.postMessage({ type: "ScrollToTop" }, window.location.href);
|
|
5160
5181
|
break;
|
|
5161
5182
|
case "PlayerAccountBackToLimitsView":
|
|
5162
|
-
r(16,
|
|
5183
|
+
r(16, Ce = !0);
|
|
5163
5184
|
break;
|
|
5164
5185
|
case "ProfileDetailsData":
|
|
5165
|
-
let
|
|
5166
|
-
r(5, f =
|
|
5186
|
+
let D = y.data.profileDetails;
|
|
5187
|
+
r(5, f = D.currency);
|
|
5167
5188
|
break;
|
|
5168
5189
|
}
|
|
5169
5190
|
};
|
|
5170
|
-
ri(() => (window.addEventListener("message",
|
|
5171
|
-
window.
|
|
5191
|
+
ri(() => (window.addEventListener("message", pt, !1), () => {
|
|
5192
|
+
window.removeEventListener("message", pt);
|
|
5172
5193
|
}));
|
|
5173
|
-
const Mr = () =>
|
|
5194
|
+
const Mr = () => mt();
|
|
5174
5195
|
function Ir(y) {
|
|
5175
|
-
|
|
5196
|
+
We[y ? "unshift" : "push"](() => {
|
|
5176
5197
|
T = y, r(12, T);
|
|
5177
5198
|
});
|
|
5178
5199
|
}
|
|
5179
5200
|
return e.$$set = (y) => {
|
|
5180
|
-
"depositlimit" in y && r(1, n = y.depositlimit), "wageringlimit" in y && r(2,
|
|
5201
|
+
"depositlimit" in y && r(1, n = y.depositlimit), "wageringlimit" in y && r(2, o = y.wageringlimit), "losslimit" in y && r(3, a = y.losslimit), "timelimit" in y && r(4, s = y.timelimit), "showdeletenotification" in y && r(6, u = y.showdeletenotification), "showsuccessnotification" in y && r(7, l = y.showsuccessnotification), "lang" in y && r(0, h = y.lang), "currency" in y && r(5, f = y.currency), "separatelimits" in y && r(8, c = y.separatelimits), "clientstyling" in y && r(9, b = y.clientstyling), "clientstylingurl" in y && r(10, p = y.clientstylingurl), "mbsource" in y && r(11, g = y.mbsource), "translationurl" in y && r(20, d = y.translationurl);
|
|
5181
5202
|
}, e.$$.update = () => {
|
|
5182
5203
|
e.$$.dirty & /*lang*/
|
|
5183
5204
|
1 && h && Or(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
5184
|
-
4608 && b && T &&
|
|
5185
|
-
5120 && p && T &&
|
|
5186
|
-
6144 && g && T &&
|
|
5205
|
+
4608 && b && T && wo(T, b), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
5206
|
+
5120 && p && T && Lo(T, p), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
5207
|
+
6144 && g && T && To(T, `${g}.Style`), e.$$.dirty & /*translationurl*/
|
|
5187
5208
|
1048576 && d && v();
|
|
5188
5209
|
}, [
|
|
5189
5210
|
h,
|
|
5190
5211
|
n,
|
|
5191
|
-
s,
|
|
5192
|
-
a,
|
|
5193
5212
|
o,
|
|
5213
|
+
a,
|
|
5214
|
+
s,
|
|
5194
5215
|
f,
|
|
5195
5216
|
u,
|
|
5196
5217
|
l,
|
|
@@ -5199,26 +5220,26 @@ function Ns(e, t, r) {
|
|
|
5199
5220
|
p,
|
|
5200
5221
|
g,
|
|
5201
5222
|
T,
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5223
|
+
S,
|
|
5224
|
+
R,
|
|
5225
|
+
V,
|
|
5226
|
+
Ce,
|
|
5206
5227
|
i,
|
|
5207
|
-
|
|
5208
|
-
|
|
5228
|
+
P,
|
|
5229
|
+
mt,
|
|
5209
5230
|
d,
|
|
5210
5231
|
Mr,
|
|
5211
5232
|
Ir
|
|
5212
5233
|
];
|
|
5213
5234
|
}
|
|
5214
|
-
class
|
|
5235
|
+
class Br extends di {
|
|
5215
5236
|
constructor(t) {
|
|
5216
5237
|
super(), mi(
|
|
5217
5238
|
this,
|
|
5218
5239
|
t,
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5240
|
+
Ro,
|
|
5241
|
+
Oo,
|
|
5242
|
+
Wt,
|
|
5222
5243
|
{
|
|
5223
5244
|
depositlimit: 1,
|
|
5224
5245
|
wageringlimit: 2,
|
|
@@ -5234,7 +5255,7 @@ class Pr extends di {
|
|
|
5234
5255
|
mbsource: 11,
|
|
5235
5256
|
translationurl: 20
|
|
5236
5257
|
},
|
|
5237
|
-
|
|
5258
|
+
So
|
|
5238
5259
|
);
|
|
5239
5260
|
}
|
|
5240
5261
|
get depositlimit() {
|
|
@@ -5316,60 +5337,60 @@ class Pr extends di {
|
|
|
5316
5337
|
this.$$set({ translationurl: t }), A();
|
|
5317
5338
|
}
|
|
5318
5339
|
}
|
|
5319
|
-
pi(
|
|
5320
|
-
const
|
|
5340
|
+
pi(Br, { depositlimit: {}, wageringlimit: {}, losslimit: {}, timelimit: {}, showdeletenotification: { type: "Boolean" }, showsuccessnotification: { type: "Boolean" }, lang: {}, currency: {}, separatelimits: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5341
|
+
const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5321
5342
|
__proto__: null,
|
|
5322
|
-
default:
|
|
5343
|
+
default: Br
|
|
5323
5344
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5324
5345
|
export {
|
|
5325
5346
|
ne as $,
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5347
|
+
We as A,
|
|
5348
|
+
wo as B,
|
|
5349
|
+
Lo as C,
|
|
5350
|
+
To as D,
|
|
5351
|
+
pi as E,
|
|
5352
|
+
_o as F,
|
|
5332
5353
|
m as G,
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5354
|
+
Vo as H,
|
|
5355
|
+
Ko as I,
|
|
5356
|
+
jo as J,
|
|
5357
|
+
Zo as K,
|
|
5358
|
+
Xo as L,
|
|
5359
|
+
ko as M,
|
|
5360
|
+
zo as N,
|
|
5361
|
+
Pe as O,
|
|
5362
|
+
Wo as P,
|
|
5363
|
+
Le as Q,
|
|
5364
|
+
Dr as R,
|
|
5344
5365
|
di as S,
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5366
|
+
qo as T,
|
|
5367
|
+
Yo as U,
|
|
5368
|
+
Qo as V,
|
|
5369
|
+
es as W,
|
|
5349
5370
|
Tr as a,
|
|
5350
5371
|
Xr as b,
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5372
|
+
$o as c,
|
|
5373
|
+
F as d,
|
|
5374
|
+
ui as e,
|
|
5354
5375
|
A as f,
|
|
5355
|
-
|
|
5356
|
-
|
|
5376
|
+
Fo as g,
|
|
5377
|
+
Do as h,
|
|
5357
5378
|
mi as i,
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5379
|
+
Yt as j,
|
|
5380
|
+
re as k,
|
|
5381
|
+
w as l,
|
|
5382
|
+
zr as m,
|
|
5383
|
+
O as n,
|
|
5384
|
+
Z as o,
|
|
5385
|
+
le as p,
|
|
5386
|
+
H as q,
|
|
5387
|
+
j as r,
|
|
5388
|
+
Wt as s,
|
|
5389
|
+
Jo as t,
|
|
5390
|
+
Uo as u,
|
|
5391
|
+
jr as v,
|
|
5392
|
+
Eo as w,
|
|
5393
|
+
ri as x,
|
|
5394
|
+
M as y,
|
|
5395
|
+
X as z
|
|
5375
5396
|
};
|