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