@everymatrix/player-account-gaming-limits-group-edit 1.76.1 → 1.76.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/{PlayerAccountGamingLimitsConfirmationModal-AL7PieRc.js → PlayerAccountGamingLimitsConfirmationModal-DT5Y2gCB.js} +1274 -1288
- package/components/PlayerAccountGamingLimitsConfirmationModal-DkEkFkSs.cjs +21 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-YHKBhTQY.js → PlayerAccountGamingLimitsConfirmationModal-rnfl53qp.js} +748 -762
- package/components/{PlayerAccountGamingLimitsGroupEdit-C0NlGVyK.cjs → PlayerAccountGamingLimitsGroupEdit-BKWoEXUd.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BWKMuoEc.js → PlayerAccountGamingLimitsGroupEdit-D7ZhgIQn.js} +376 -376
- package/components/{PlayerAccountGamingLimitsGroupEdit-UARqHqfV.js → PlayerAccountGamingLimitsGroupEdit-DFPbnVtf.js} +376 -376
- package/components/{PlayerAccountGamingLimitsPopup-Bs4BiL4I.js → PlayerAccountGamingLimitsPopup-3-k3_WPP.js} +29 -29
- package/components/{PlayerAccountGamingLimitsPopup-B5Q5hoHt.cjs → PlayerAccountGamingLimitsPopup-CeT2c12X.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-D1tvMy40.js → PlayerAccountGamingLimitsPopup-tTjXmkaa.js} +29 -29
- package/components/{PlayerAccountModal-C5ZTAAQs.js → PlayerAccountModal-BrzLaYAb.js} +25 -25
- package/components/{PlayerAccountModal-BoAEKlyU.cjs → PlayerAccountModal-DO1sUUOW.cjs} +1 -1
- package/components/{PlayerAccountModal-CNeDzB40.js → PlayerAccountModal-DTxRhSso.js} +25 -25
- package/es2015/player-account-gaming-limits-group-edit.cjs +1 -1
- package/es2015/player-account-gaming-limits-group-edit.js +1 -1
- package/esnext/player-account-gaming-limits-group-edit.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-B2vkjnwF.cjs +0 -21
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ae = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var An = Object.defineProperty, Pn = Object.defineProperties;
|
|
2
|
+
var Ln = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var lt = Object.getOwnPropertySymbols;
|
|
4
|
+
var On = Object.prototype.hasOwnProperty, In = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, n) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ht = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
On.call(t, n) && Ae(e, n, t[n]);
|
|
8
|
+
if (lt)
|
|
9
|
+
for (var n of lt(t))
|
|
10
|
+
In.call(t, n) && Ae(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var O = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, ft = (e, t) => Pn(e, Ln(t));
|
|
13
|
+
var O = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var ct = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
17
|
+
s(n.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
23
|
+
s(n.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, s = (l) => l.done ?
|
|
28
|
-
s((
|
|
27
|
+
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
+
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function I() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
for (const
|
|
35
|
-
e[
|
|
32
|
+
const Mn = (e) => e;
|
|
33
|
+
function Nn(e, t) {
|
|
34
|
+
for (const n in t)
|
|
35
|
+
e[n] = t[n];
|
|
36
36
|
return (
|
|
37
37
|
/** @type {T & S} */
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Dt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function mt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function D(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(Dt);
|
|
49
49
|
}
|
|
50
50
|
function we(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ft(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function $n(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function jt(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
|
-
for (const
|
|
62
|
-
|
|
61
|
+
for (const r of t)
|
|
62
|
+
r(void 0);
|
|
63
63
|
return I;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
return
|
|
65
|
+
const n = e.subscribe(...t);
|
|
66
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
e.$$.on_destroy.push(
|
|
68
|
+
function Rn(e, t, n) {
|
|
69
|
+
e.$$.on_destroy.push(jt(t, n));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Gn(e, t, n, r) {
|
|
72
72
|
if (e) {
|
|
73
|
-
const i =
|
|
73
|
+
const i = kt(e, t, n, r);
|
|
74
74
|
return e[0](i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return e[1] &&
|
|
77
|
+
function kt(e, t, n, r) {
|
|
78
|
+
return e[1] && r ? Nn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
if (e[2] &&
|
|
82
|
-
const i = e[2](n
|
|
80
|
+
function Un(e, t, n, r) {
|
|
81
|
+
if (e[2] && r) {
|
|
82
|
+
const i = e[2](r(n));
|
|
83
83
|
if (t.dirty === void 0)
|
|
84
84
|
return i;
|
|
85
85
|
if (typeof i == "object") {
|
|
@@ -92,34 +92,34 @@ function Fr(e, t, r, n) {
|
|
|
92
92
|
}
|
|
93
93
|
return t.dirty;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Dn(e, t, n, r, i, o) {
|
|
96
96
|
if (i) {
|
|
97
|
-
const a =
|
|
97
|
+
const a = kt(t, n, r, o);
|
|
98
98
|
e.p(a, i);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Fn(e) {
|
|
102
102
|
if (e.ctx.length > 32) {
|
|
103
|
-
const t = [],
|
|
104
|
-
for (let
|
|
105
|
-
t[
|
|
103
|
+
const t = [], n = e.ctx.length / 32;
|
|
104
|
+
for (let r = 0; r < n; r++)
|
|
105
|
+
t[r] = -1;
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
108
|
return -1;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
110
|
+
const Vt = typeof window != "undefined";
|
|
111
|
+
let jn = Vt ? () => window.performance.now() : () => Date.now(), nt = Vt ? (e) => requestAnimationFrame(e) : I;
|
|
112
112
|
const z = /* @__PURE__ */ new Set();
|
|
113
|
-
function
|
|
113
|
+
function Xt(e) {
|
|
114
114
|
z.forEach((t) => {
|
|
115
115
|
t.c(e) || (z.delete(t), t.f());
|
|
116
|
-
}), z.size !== 0 && nt(
|
|
116
|
+
}), z.size !== 0 && nt(Xt);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function kn(e) {
|
|
119
119
|
let t;
|
|
120
|
-
return z.size === 0 && nt(
|
|
121
|
-
promise: new Promise((
|
|
122
|
-
z.add(t = { c: e, f:
|
|
120
|
+
return z.size === 0 && nt(Xt), {
|
|
121
|
+
promise: new Promise((n) => {
|
|
122
|
+
z.add(t = { c: e, f: n });
|
|
123
123
|
}),
|
|
124
124
|
abort() {
|
|
125
125
|
z.delete(t);
|
|
@@ -129,14 +129,14 @@ function Xr(e) {
|
|
|
129
129
|
function P(e, t) {
|
|
130
130
|
e.appendChild(t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const
|
|
134
|
-
if (!
|
|
132
|
+
function Vn(e, t, n) {
|
|
133
|
+
const r = rt(e);
|
|
134
|
+
if (!r.getElementById(t)) {
|
|
135
135
|
const i = M("style");
|
|
136
|
-
i.id = t, i.textContent =
|
|
136
|
+
i.id = t, i.textContent = n, zt(r, i);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function rt(e) {
|
|
140
140
|
if (!e)
|
|
141
141
|
return document;
|
|
142
142
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -146,31 +146,31 @@ function it(e) {
|
|
|
146
146
|
t
|
|
147
147
|
) : e.ownerDocument;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Xn(e) {
|
|
150
150
|
const t = M("style");
|
|
151
|
-
return t.textContent = "/* empty */",
|
|
151
|
+
return t.textContent = "/* empty */", zt(rt(e), t), t.sheet;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function zt(e, t) {
|
|
154
154
|
return P(
|
|
155
155
|
/** @type {Document} */
|
|
156
156
|
e.head || e,
|
|
157
157
|
t
|
|
158
158
|
), t.sheet;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
e.insertBefore(t,
|
|
160
|
+
function it(e, t, n) {
|
|
161
|
+
e.insertBefore(t, n || null);
|
|
162
162
|
}
|
|
163
163
|
function le(e) {
|
|
164
164
|
e.parentNode && e.parentNode.removeChild(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
for (let
|
|
168
|
-
e[
|
|
166
|
+
function Ao(e, t) {
|
|
167
|
+
for (let n = 0; n < e.length; n += 1)
|
|
168
|
+
e[n] && e[n].d(t);
|
|
169
169
|
}
|
|
170
170
|
function M(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function dt(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
176
|
function ie(e) {
|
|
@@ -179,98 +179,98 @@ function ie(e) {
|
|
|
179
179
|
function Pe() {
|
|
180
180
|
return ie(" ");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Po() {
|
|
183
183
|
return ie("");
|
|
184
184
|
}
|
|
185
|
-
function Le(e, t,
|
|
186
|
-
return e.addEventListener(t,
|
|
185
|
+
function Le(e, t, n, r) {
|
|
186
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Lo(e) {
|
|
189
189
|
return function(t) {
|
|
190
190
|
return t.preventDefault(), e.call(this, t);
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function H(e, t,
|
|
194
|
-
|
|
193
|
+
function H(e, t, n) {
|
|
194
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
const
|
|
198
|
-
|
|
196
|
+
function Oo(e, t, n) {
|
|
197
|
+
const r = t.toLowerCase();
|
|
198
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : H(e, t, n);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Io(e) {
|
|
201
201
|
return e === "" ? null : +e;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function zn(e) {
|
|
204
204
|
return Array.from(e.childNodes);
|
|
205
205
|
}
|
|
206
206
|
function Oe(e, t) {
|
|
207
207
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
208
208
|
t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Mo(e, t) {
|
|
211
211
|
e.value = t == null ? "" : t;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
for (let
|
|
215
|
-
const i = e.options[
|
|
213
|
+
function No(e, t, n) {
|
|
214
|
+
for (let r = 0; r < e.options.length; r += 1) {
|
|
215
|
+
const i = e.options[r];
|
|
216
216
|
if (i.__value === t) {
|
|
217
217
|
i.selected = !0;
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
(!
|
|
221
|
+
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function $o(e) {
|
|
224
224
|
const t = e.querySelector(":checked");
|
|
225
225
|
return t && t.__value;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
227
|
+
function Wn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
228
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Zn(e) {
|
|
231
231
|
const t = {};
|
|
232
232
|
return e.childNodes.forEach(
|
|
233
233
|
/** @param {Element} node */
|
|
234
|
-
(
|
|
235
|
-
t[
|
|
234
|
+
(n) => {
|
|
235
|
+
t[n.slot || "default"] = !0;
|
|
236
236
|
}
|
|
237
237
|
), t;
|
|
238
238
|
}
|
|
239
239
|
const ye = /* @__PURE__ */ new Map();
|
|
240
240
|
let ve = 0;
|
|
241
|
-
function
|
|
242
|
-
let t = 5381,
|
|
243
|
-
for (;
|
|
244
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
241
|
+
function Qn(e) {
|
|
242
|
+
let t = 5381, n = e.length;
|
|
243
|
+
for (; n--; )
|
|
244
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
245
245
|
return t >>> 0;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
return ye.set(e,
|
|
247
|
+
function Jn(e, t) {
|
|
248
|
+
const n = { stylesheet: Xn(t), rules: {} };
|
|
249
|
+
return ye.set(e, n), n;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const l = 16.666 /
|
|
251
|
+
function pt(e, t, n, r, i, o, a, s = 0) {
|
|
252
|
+
const l = 16.666 / r;
|
|
253
253
|
let u = `{
|
|
254
254
|
`;
|
|
255
255
|
for (let v = 0; v <= 1; v += l) {
|
|
256
|
-
const T = t + (
|
|
256
|
+
const T = t + (n - t) * o(v);
|
|
257
257
|
u += v * 100 + `%{${a(T, 1 - T)}}
|
|
258
258
|
`;
|
|
259
259
|
}
|
|
260
|
-
const h = u + `100% {${a(
|
|
261
|
-
}`,
|
|
262
|
-
m[
|
|
263
|
-
const
|
|
264
|
-
return e.style.animation = `${
|
|
265
|
-
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
260
|
+
const h = u + `100% {${a(n, 1 - n)}}
|
|
261
|
+
}`, f = `__svelte_${Qn(h)}_${s}`, c = rt(e), { stylesheet: d, rules: m } = ye.get(c) || Jn(c, e);
|
|
262
|
+
m[f] || (m[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
|
|
263
|
+
const p = e.style.animation || "";
|
|
264
|
+
return e.style.animation = `${p ? `${p}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, ve += 1, f;
|
|
265
|
+
}
|
|
266
|
+
function qn(e, t) {
|
|
267
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
268
268
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
269
269
|
// remove all Svelte animations
|
|
270
|
-
), i =
|
|
271
|
-
i && (e.style.animation =
|
|
270
|
+
), i = n.length - r.length;
|
|
271
|
+
i && (e.style.animation = r.join(", "), ve -= i, ve || Yn());
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Yn() {
|
|
274
274
|
nt(() => {
|
|
275
275
|
ve || (ye.forEach((e) => {
|
|
276
276
|
const { ownerNode: t } = e.stylesheet;
|
|
@@ -282,22 +282,22 @@ let se;
|
|
|
282
282
|
function oe(e) {
|
|
283
283
|
se = e;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Kn() {
|
|
286
286
|
if (!se)
|
|
287
287
|
throw new Error("Function called outside component initialization");
|
|
288
288
|
return se;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function er(e) {
|
|
291
|
+
Kn().$$.on_mount.push(e);
|
|
292
292
|
}
|
|
293
|
-
const X = [],
|
|
293
|
+
const X = [], Fe = [];
|
|
294
294
|
let W = [];
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
|
|
295
|
+
const bt = [], tr = /* @__PURE__ */ Promise.resolve();
|
|
296
|
+
let je = !1;
|
|
297
|
+
function nr() {
|
|
298
|
+
je || (je = !0, tr.then(N));
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function xe(e) {
|
|
301
301
|
W.push(e);
|
|
302
302
|
}
|
|
303
303
|
const Ie = /* @__PURE__ */ new Set();
|
|
@@ -310,46 +310,46 @@ function N() {
|
|
|
310
310
|
try {
|
|
311
311
|
for (; k < X.length; ) {
|
|
312
312
|
const t = X[k];
|
|
313
|
-
k++, oe(t),
|
|
313
|
+
k++, oe(t), rr(t.$$);
|
|
314
314
|
}
|
|
315
315
|
} catch (t) {
|
|
316
316
|
throw X.length = 0, k = 0, t;
|
|
317
317
|
}
|
|
318
|
-
for (oe(null), X.length = 0, k = 0;
|
|
319
|
-
|
|
318
|
+
for (oe(null), X.length = 0, k = 0; Fe.length; )
|
|
319
|
+
Fe.pop()();
|
|
320
320
|
for (let t = 0; t < W.length; t += 1) {
|
|
321
|
-
const
|
|
322
|
-
Ie.has(
|
|
321
|
+
const n = W[t];
|
|
322
|
+
Ie.has(n) || (Ie.add(n), n());
|
|
323
323
|
}
|
|
324
324
|
W.length = 0;
|
|
325
325
|
} while (X.length);
|
|
326
|
-
for (;
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
for (; bt.length; )
|
|
327
|
+
bt.pop()();
|
|
328
|
+
je = !1, Ie.clear(), oe(e);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function rr(e) {
|
|
331
331
|
if (e.fragment !== null) {
|
|
332
332
|
e.update(), D(e.before_update);
|
|
333
333
|
const t = e.dirty;
|
|
334
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
334
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(xe);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
const t = [],
|
|
339
|
-
W.forEach((
|
|
337
|
+
function ir(e) {
|
|
338
|
+
const t = [], n = [];
|
|
339
|
+
W.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), W = t;
|
|
340
340
|
}
|
|
341
|
-
let
|
|
342
|
-
function
|
|
343
|
-
return
|
|
344
|
-
|
|
345
|
-
})),
|
|
341
|
+
let ne;
|
|
342
|
+
function or() {
|
|
343
|
+
return ne || (ne = Promise.resolve(), ne.then(() => {
|
|
344
|
+
ne = null;
|
|
345
|
+
})), ne;
|
|
346
346
|
}
|
|
347
|
-
function Me(e, t,
|
|
348
|
-
e.dispatchEvent(
|
|
347
|
+
function Me(e, t, n) {
|
|
348
|
+
e.dispatchEvent(Wn(`${t ? "intro" : "outro"}${n}`));
|
|
349
349
|
}
|
|
350
350
|
const me = /* @__PURE__ */ new Set();
|
|
351
351
|
let $;
|
|
352
|
-
function
|
|
352
|
+
function Ro() {
|
|
353
353
|
$ = {
|
|
354
354
|
r: 0,
|
|
355
355
|
c: [],
|
|
@@ -357,57 +357,57 @@ function Uo() {
|
|
|
357
357
|
// parent group
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Go() {
|
|
361
361
|
$.r || D($.c), $ = $.p;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Wt(e, t) {
|
|
364
364
|
e && e.i && (me.delete(e), e.i(t));
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function sr(e, t, n, r) {
|
|
367
367
|
if (e && e.o) {
|
|
368
368
|
if (me.has(e))
|
|
369
369
|
return;
|
|
370
370
|
me.add(e), $.c.push(() => {
|
|
371
|
-
me.delete(e),
|
|
371
|
+
me.delete(e), r && (n && e.d(1), r());
|
|
372
372
|
}), e.o(t);
|
|
373
373
|
} else
|
|
374
|
-
|
|
374
|
+
r && r();
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
function
|
|
378
|
-
let o = t(e,
|
|
379
|
-
function
|
|
380
|
-
u &&
|
|
376
|
+
const ar = { duration: 0 };
|
|
377
|
+
function Uo(e, t, n, r) {
|
|
378
|
+
let o = t(e, n, { direction: "both" }), a = r ? 0 : 1, s = null, l = null, u = null, h;
|
|
379
|
+
function f() {
|
|
380
|
+
u && qn(e, u);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function c(m, p) {
|
|
383
383
|
const v = (
|
|
384
384
|
/** @type {Program['d']} */
|
|
385
385
|
m.b - a
|
|
386
386
|
);
|
|
387
|
-
return
|
|
387
|
+
return p *= Math.abs(v), {
|
|
388
388
|
a,
|
|
389
389
|
b: m.b,
|
|
390
390
|
d: v,
|
|
391
|
-
duration:
|
|
391
|
+
duration: p,
|
|
392
392
|
start: m.start,
|
|
393
|
-
end: m.start +
|
|
393
|
+
end: m.start + p,
|
|
394
394
|
group: m.group
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function d(m) {
|
|
398
398
|
const {
|
|
399
|
-
delay:
|
|
399
|
+
delay: p = 0,
|
|
400
400
|
duration: v = 300,
|
|
401
|
-
easing: T =
|
|
401
|
+
easing: T = Mn,
|
|
402
402
|
tick: C = I,
|
|
403
|
-
css:
|
|
404
|
-
} = o ||
|
|
405
|
-
start:
|
|
403
|
+
css: w
|
|
404
|
+
} = o || ar, B = {
|
|
405
|
+
start: jn() + p,
|
|
406
406
|
b: m
|
|
407
407
|
};
|
|
408
408
|
m || (B.group = $, $.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
409
|
-
e.inert, e.inert = !0)), s || l ? l = B : (
|
|
410
|
-
if (l &&
|
|
409
|
+
e.inert, e.inert = !0)), s || l ? l = B : (w && (f(), u = pt(e, a, m, v, p, T, w)), m && C(0, 1), s = c(B, v), xe(() => Me(e, m, "start")), kn((S) => {
|
|
410
|
+
if (l && S > l.start && (s = c(l, v), l = null, Me(e, s.b, "start"), w && (f(), u = pt(
|
|
411
411
|
e,
|
|
412
412
|
a,
|
|
413
413
|
s.b,
|
|
@@ -416,11 +416,11 @@ function Fo(e, t, r, n) {
|
|
|
416
416
|
T,
|
|
417
417
|
o.css
|
|
418
418
|
))), s) {
|
|
419
|
-
if (
|
|
420
|
-
C(a = s.b, 1 - a), Me(e, s.b, "end"), l || (s.b ?
|
|
421
|
-
else if (
|
|
422
|
-
const
|
|
423
|
-
a = s.a + s.d * T(
|
|
419
|
+
if (S >= s.end)
|
|
420
|
+
C(a = s.b, 1 - a), Me(e, s.b, "end"), l || (s.b ? f() : --s.group.r || D(s.group.c)), s = null;
|
|
421
|
+
else if (S >= s.start) {
|
|
422
|
+
const _ = S - s.start;
|
|
423
|
+
a = s.a + s.d * T(_ / s.duration), C(a, 1 - a);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
return !!(s || l);
|
|
@@ -428,33 +428,33 @@ function Fo(e, t, r, n) {
|
|
|
428
428
|
}
|
|
429
429
|
return {
|
|
430
430
|
run(m) {
|
|
431
|
-
we(o) ?
|
|
432
|
-
o = o({ direction: m ? "in" : "out" }),
|
|
433
|
-
}) :
|
|
431
|
+
we(o) ? or().then(() => {
|
|
432
|
+
o = o({ direction: m ? "in" : "out" }), d(m);
|
|
433
|
+
}) : d(m);
|
|
434
434
|
},
|
|
435
435
|
end() {
|
|
436
|
-
|
|
436
|
+
f(), s = l = null;
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Do(e) {
|
|
441
441
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
const { fragment:
|
|
445
|
-
|
|
446
|
-
const o = e.$$.on_mount.map(
|
|
443
|
+
function ur(e, t, n) {
|
|
444
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
445
|
+
r && r.m(t, n), xe(() => {
|
|
446
|
+
const o = e.$$.on_mount.map(Dt).filter(we);
|
|
447
447
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : D(o), e.$$.on_mount = [];
|
|
448
|
-
}), i.forEach(
|
|
448
|
+
}), i.forEach(xe);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
const
|
|
452
|
-
|
|
450
|
+
function lr(e, t) {
|
|
451
|
+
const n = e.$$;
|
|
452
|
+
n.fragment !== null && (ir(n.after_update), D(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
454
|
+
function hr(e, t) {
|
|
455
|
+
e.$$.dirty[0] === -1 && (X.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function fr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
458
458
|
const l = se;
|
|
459
459
|
oe(e);
|
|
460
460
|
const u = e.$$ = {
|
|
@@ -464,7 +464,7 @@ function pn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
464
464
|
props: o,
|
|
465
465
|
update: I,
|
|
466
466
|
not_equal: i,
|
|
467
|
-
bound:
|
|
467
|
+
bound: mt(),
|
|
468
468
|
// lifecycle
|
|
469
469
|
on_mount: [],
|
|
470
470
|
on_destroy: [],
|
|
@@ -473,29 +473,29 @@ function pn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
473
473
|
after_update: [],
|
|
474
474
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
475
475
|
// everything else
|
|
476
|
-
callbacks:
|
|
476
|
+
callbacks: mt(),
|
|
477
477
|
dirty: s,
|
|
478
478
|
skip_bound: !1,
|
|
479
479
|
root: t.target || l.$$.root
|
|
480
480
|
};
|
|
481
481
|
a && a(u.root);
|
|
482
482
|
let h = !1;
|
|
483
|
-
if (u.ctx =
|
|
484
|
-
const m =
|
|
485
|
-
return u.ctx && i(u.ctx[
|
|
486
|
-
}) : [], u.update(), h = !0, D(u.before_update), u.fragment =
|
|
483
|
+
if (u.ctx = n ? n(e, t.props || {}, (f, c, ...d) => {
|
|
484
|
+
const m = d.length ? d[0] : c;
|
|
485
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && hr(e, f)), c;
|
|
486
|
+
}) : [], u.update(), h = !0, D(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
487
487
|
if (t.hydrate) {
|
|
488
|
-
const
|
|
489
|
-
u.fragment && u.fragment.l(
|
|
488
|
+
const f = zn(t.target);
|
|
489
|
+
u.fragment && u.fragment.l(f), f.forEach(le);
|
|
490
490
|
} else
|
|
491
491
|
u.fragment && u.fragment.c();
|
|
492
|
-
t.intro &&
|
|
492
|
+
t.intro && Wt(e.$$.fragment), ur(e, t.target, t.anchor), N();
|
|
493
493
|
}
|
|
494
494
|
oe(l);
|
|
495
495
|
}
|
|
496
|
-
let
|
|
497
|
-
typeof HTMLElement == "function" && (
|
|
498
|
-
constructor(t,
|
|
496
|
+
let Zt;
|
|
497
|
+
typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
498
|
+
constructor(t, n, r) {
|
|
499
499
|
super();
|
|
500
500
|
/** The Svelte component constructor */
|
|
501
501
|
O(this, "$$ctor");
|
|
@@ -515,23 +515,23 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
515
515
|
O(this, "$$l", {});
|
|
516
516
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
517
517
|
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
518
|
-
this.$$ctor = t, this.$$s =
|
|
518
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
519
519
|
}
|
|
520
|
-
addEventListener(t,
|
|
521
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
522
|
-
const i = this.$$c.$on(t,
|
|
523
|
-
this.$$l_u.set(
|
|
520
|
+
addEventListener(t, n, r) {
|
|
521
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
522
|
+
const i = this.$$c.$on(t, n);
|
|
523
|
+
this.$$l_u.set(n, i);
|
|
524
524
|
}
|
|
525
|
-
super.addEventListener(t,
|
|
525
|
+
super.addEventListener(t, n, r);
|
|
526
526
|
}
|
|
527
|
-
removeEventListener(t,
|
|
528
|
-
if (super.removeEventListener(t,
|
|
529
|
-
const i = this.$$l_u.get(
|
|
530
|
-
i && (i(), this.$$l_u.delete(
|
|
527
|
+
removeEventListener(t, n, r) {
|
|
528
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
529
|
+
const i = this.$$l_u.get(n);
|
|
530
|
+
i && (i(), this.$$l_u.delete(n));
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
connectedCallback() {
|
|
534
|
-
return
|
|
534
|
+
return ct(this, null, function* () {
|
|
535
535
|
if (this.$$cn = !0, !this.$$c) {
|
|
536
536
|
let t = function(o) {
|
|
537
537
|
return () => {
|
|
@@ -545,7 +545,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
545
545
|
* @param {HTMLElement} [anchor]
|
|
546
546
|
*/
|
|
547
547
|
m: function(u, h) {
|
|
548
|
-
|
|
548
|
+
it(u, a, h);
|
|
549
549
|
},
|
|
550
550
|
d: function(u) {
|
|
551
551
|
u && le(a);
|
|
@@ -555,19 +555,19 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
555
555
|
};
|
|
556
556
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
557
557
|
return;
|
|
558
|
-
const
|
|
558
|
+
const n = {}, r = Zn(this);
|
|
559
559
|
for (const o of this.$$s)
|
|
560
|
-
o in
|
|
560
|
+
o in r && (n[o] = [t(o)]);
|
|
561
561
|
for (const o of this.attributes) {
|
|
562
562
|
const a = this.$$g_p(o.name);
|
|
563
|
-
a in this.$$d || (this.$$d[a] =
|
|
563
|
+
a in this.$$d || (this.$$d[a] = de(a, o.value, this.$$p_d, "toProp"));
|
|
564
564
|
}
|
|
565
565
|
for (const o in this.$$p_d)
|
|
566
566
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
567
567
|
this.$$c = new this.$$ctor({
|
|
568
568
|
target: this.shadowRoot || this,
|
|
569
|
-
props:
|
|
570
|
-
$$slots:
|
|
569
|
+
props: ft(ht({}, this.$$d), {
|
|
570
|
+
$$slots: n,
|
|
571
571
|
$$scope: {
|
|
572
572
|
ctx: []
|
|
573
573
|
}
|
|
@@ -577,7 +577,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
577
577
|
this.$$r = !0;
|
|
578
578
|
for (const o in this.$$p_d)
|
|
579
579
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
580
|
-
const a =
|
|
580
|
+
const a = de(
|
|
581
581
|
o,
|
|
582
582
|
this.$$d[o],
|
|
583
583
|
this.$$p_d,
|
|
@@ -599,9 +599,9 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
599
599
|
}
|
|
600
600
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
601
601
|
// and setting attributes through setAttribute etc, this is helpful
|
|
602
|
-
attributeChangedCallback(t,
|
|
602
|
+
attributeChangedCallback(t, n, r) {
|
|
603
603
|
var i;
|
|
604
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
604
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
605
605
|
}
|
|
606
606
|
disconnectedCallback() {
|
|
607
607
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -610,16 +610,16 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
610
610
|
}
|
|
611
611
|
$$g_p(t) {
|
|
612
612
|
return Object.keys(this.$$p_d).find(
|
|
613
|
-
(
|
|
613
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
614
614
|
) || t;
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
|
-
function
|
|
617
|
+
function de(e, t, n, r) {
|
|
618
618
|
var o;
|
|
619
|
-
const i = (o =
|
|
620
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
619
|
+
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
620
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
621
621
|
return t;
|
|
622
|
-
if (
|
|
622
|
+
if (r === "toAttribute")
|
|
623
623
|
switch (i) {
|
|
624
624
|
case "Object":
|
|
625
625
|
case "Array":
|
|
@@ -644,10 +644,10 @@ function pe(e, t, r, n) {
|
|
|
644
644
|
return t;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
let a = class extends
|
|
647
|
+
function cr(e, t, n, r, i, o) {
|
|
648
|
+
let a = class extends Zt {
|
|
649
649
|
constructor() {
|
|
650
|
-
super(e,
|
|
650
|
+
super(e, n, i), this.$$p_d = t;
|
|
651
651
|
}
|
|
652
652
|
static get observedAttributes() {
|
|
653
653
|
return Object.keys(t).map(
|
|
@@ -662,10 +662,10 @@ function dn(e, t, r, n, i, o) {
|
|
|
662
662
|
},
|
|
663
663
|
set(l) {
|
|
664
664
|
var u;
|
|
665
|
-
l =
|
|
665
|
+
l = de(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
}),
|
|
668
|
+
}), r.forEach((s) => {
|
|
669
669
|
Object.defineProperty(a.prototype, s, {
|
|
670
670
|
get() {
|
|
671
671
|
var l;
|
|
@@ -675,7 +675,7 @@ function dn(e, t, r, n, i, o) {
|
|
|
675
675
|
}), e.element = /** @type {any} */
|
|
676
676
|
a, a;
|
|
677
677
|
}
|
|
678
|
-
class
|
|
678
|
+
class mr {
|
|
679
679
|
constructor() {
|
|
680
680
|
/**
|
|
681
681
|
* ### PRIVATE API
|
|
@@ -696,7 +696,7 @@ class bn {
|
|
|
696
696
|
}
|
|
697
697
|
/** @returns {void} */
|
|
698
698
|
$destroy() {
|
|
699
|
-
|
|
699
|
+
lr(this, 1), this.$destroy = I;
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
702
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -704,13 +704,13 @@ class bn {
|
|
|
704
704
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
705
705
|
* @returns {() => void}
|
|
706
706
|
*/
|
|
707
|
-
$on(t,
|
|
708
|
-
if (!we(
|
|
707
|
+
$on(t, n) {
|
|
708
|
+
if (!we(n))
|
|
709
709
|
return I;
|
|
710
|
-
const
|
|
711
|
-
return
|
|
712
|
-
const i =
|
|
713
|
-
i !== -1 &&
|
|
710
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
711
|
+
return r.push(n), () => {
|
|
712
|
+
const i = r.indexOf(n);
|
|
713
|
+
i !== -1 && r.splice(i, 1);
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
@@ -718,11 +718,11 @@ class bn {
|
|
|
718
718
|
* @returns {void}
|
|
719
719
|
*/
|
|
720
720
|
$set(t) {
|
|
721
|
-
this.$$set &&
|
|
721
|
+
this.$$set && !$n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
const
|
|
725
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
724
|
+
const dr = "4";
|
|
725
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
|
|
726
726
|
/*! *****************************************************************************
|
|
727
727
|
Copyright (c) Microsoft Corporation.
|
|
728
728
|
|
|
@@ -737,67 +737,67 @@ 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
|
|
742
|
-
|
|
743
|
-
} || function(
|
|
744
|
-
for (var i in
|
|
745
|
-
Object.prototype.hasOwnProperty.call(
|
|
746
|
-
},
|
|
740
|
+
var ke = function(e, t) {
|
|
741
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
742
|
+
n.__proto__ = r;
|
|
743
|
+
} || function(n, r) {
|
|
744
|
+
for (var i in r)
|
|
745
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
746
|
+
}, ke(e, t);
|
|
747
747
|
};
|
|
748
748
|
function G(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
|
-
|
|
752
|
-
function
|
|
751
|
+
ke(e, t);
|
|
752
|
+
function n() {
|
|
753
753
|
this.constructor = e;
|
|
754
754
|
}
|
|
755
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
756
|
-
}
|
|
757
|
-
var
|
|
758
|
-
return
|
|
759
|
-
for (var
|
|
760
|
-
|
|
761
|
-
for (var o in
|
|
762
|
-
Object.prototype.hasOwnProperty.call(
|
|
755
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
756
|
+
}
|
|
757
|
+
var x = function() {
|
|
758
|
+
return x = Object.assign || function(t) {
|
|
759
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
760
|
+
n = arguments[r];
|
|
761
|
+
for (var o in n)
|
|
762
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
763
763
|
}
|
|
764
764
|
return t;
|
|
765
|
-
},
|
|
765
|
+
}, x.apply(this, arguments);
|
|
766
766
|
};
|
|
767
|
-
function
|
|
768
|
-
var
|
|
769
|
-
for (var
|
|
770
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
767
|
+
function pr(e, t) {
|
|
768
|
+
var n = {};
|
|
769
|
+
for (var r in e)
|
|
770
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
771
771
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
772
|
-
for (var i = 0,
|
|
773
|
-
t.indexOf(
|
|
774
|
-
return
|
|
772
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
773
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
774
|
+
return n;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
778
|
-
if (
|
|
779
|
-
return
|
|
776
|
+
function Ve(e) {
|
|
777
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
778
|
+
if (n)
|
|
779
|
+
return n.call(e);
|
|
780
780
|
if (e && typeof e.length == "number")
|
|
781
781
|
return {
|
|
782
782
|
next: function() {
|
|
783
|
-
return e &&
|
|
783
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
784
784
|
}
|
|
785
785
|
};
|
|
786
786
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
787
787
|
}
|
|
788
|
-
function
|
|
789
|
-
var
|
|
790
|
-
if (!
|
|
788
|
+
function Xe(e, t) {
|
|
789
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
790
|
+
if (!n)
|
|
791
791
|
return e;
|
|
792
|
-
var
|
|
792
|
+
var r = n.call(e), i, o = [], a;
|
|
793
793
|
try {
|
|
794
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
794
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
795
795
|
o.push(i.value);
|
|
796
796
|
} catch (s) {
|
|
797
797
|
a = { error: s };
|
|
798
798
|
} finally {
|
|
799
799
|
try {
|
|
800
|
-
i && !i.done && (
|
|
800
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
801
801
|
} finally {
|
|
802
802
|
if (a)
|
|
803
803
|
throw a.error;
|
|
@@ -805,34 +805,34 @@ function ze(e, t) {
|
|
|
805
805
|
}
|
|
806
806
|
return o;
|
|
807
807
|
}
|
|
808
|
-
function Z(e, t,
|
|
809
|
-
if (
|
|
810
|
-
for (var
|
|
811
|
-
(o || !(
|
|
808
|
+
function Z(e, t, n) {
|
|
809
|
+
if (n || arguments.length === 2)
|
|
810
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
811
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
812
812
|
return e.concat(o || t);
|
|
813
813
|
}
|
|
814
814
|
function R(e) {
|
|
815
815
|
return typeof e == "function";
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
var t = function(
|
|
819
|
-
Error.call(
|
|
820
|
-
},
|
|
821
|
-
return
|
|
822
|
-
}
|
|
823
|
-
var Ne =
|
|
824
|
-
return function(
|
|
825
|
-
e(this), this.message =
|
|
826
|
-
` +
|
|
827
|
-
return i + 1 + ") " +
|
|
817
|
+
function Qt(e) {
|
|
818
|
+
var t = function(r) {
|
|
819
|
+
Error.call(r), r.stack = new Error().stack;
|
|
820
|
+
}, n = e(t);
|
|
821
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
822
|
+
}
|
|
823
|
+
var Ne = Qt(function(e) {
|
|
824
|
+
return function(n) {
|
|
825
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
826
|
+
` + n.map(function(r, i) {
|
|
827
|
+
return i + 1 + ") " + r.toString();
|
|
828
828
|
}).join(`
|
|
829
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
829
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
830
830
|
};
|
|
831
831
|
});
|
|
832
|
-
function
|
|
832
|
+
function ze(e, t) {
|
|
833
833
|
if (e) {
|
|
834
|
-
var
|
|
835
|
-
0 <=
|
|
834
|
+
var n = e.indexOf(t);
|
|
835
|
+
0 <= n && e.splice(n, 1);
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
838
|
var Se = function() {
|
|
@@ -840,22 +840,22 @@ var Se = function() {
|
|
|
840
840
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
841
841
|
}
|
|
842
842
|
return e.prototype.unsubscribe = function() {
|
|
843
|
-
var t,
|
|
843
|
+
var t, n, r, i, o;
|
|
844
844
|
if (!this.closed) {
|
|
845
845
|
this.closed = !0;
|
|
846
846
|
var a = this._parentage;
|
|
847
847
|
if (a)
|
|
848
848
|
if (this._parentage = null, Array.isArray(a))
|
|
849
849
|
try {
|
|
850
|
-
for (var s =
|
|
850
|
+
for (var s = Ve(a), l = s.next(); !l.done; l = s.next()) {
|
|
851
851
|
var u = l.value;
|
|
852
852
|
u.remove(this);
|
|
853
853
|
}
|
|
854
|
-
} catch (
|
|
855
|
-
t = { error:
|
|
854
|
+
} catch (p) {
|
|
855
|
+
t = { error: p };
|
|
856
856
|
} finally {
|
|
857
857
|
try {
|
|
858
|
-
l && !l.done && (
|
|
858
|
+
l && !l.done && (n = s.return) && n.call(s);
|
|
859
859
|
} finally {
|
|
860
860
|
if (t)
|
|
861
861
|
throw t.error;
|
|
@@ -867,29 +867,29 @@ var Se = function() {
|
|
|
867
867
|
if (R(h))
|
|
868
868
|
try {
|
|
869
869
|
h();
|
|
870
|
-
} catch (
|
|
871
|
-
o =
|
|
870
|
+
} catch (p) {
|
|
871
|
+
o = p instanceof Ne ? p.errors : [p];
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
if (
|
|
873
|
+
var f = this._finalizers;
|
|
874
|
+
if (f) {
|
|
875
875
|
this._finalizers = null;
|
|
876
876
|
try {
|
|
877
|
-
for (var
|
|
878
|
-
var m =
|
|
877
|
+
for (var c = Ve(f), d = c.next(); !d.done; d = c.next()) {
|
|
878
|
+
var m = d.value;
|
|
879
879
|
try {
|
|
880
|
-
|
|
881
|
-
} catch (
|
|
882
|
-
o = o != null ? o : [],
|
|
880
|
+
gt(m);
|
|
881
|
+
} catch (p) {
|
|
882
|
+
o = o != null ? o : [], p instanceof Ne ? o = Z(Z([], Xe(o)), Xe(p.errors)) : o.push(p);
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
} catch (
|
|
886
|
-
|
|
885
|
+
} catch (p) {
|
|
886
|
+
r = { error: p };
|
|
887
887
|
} finally {
|
|
888
888
|
try {
|
|
889
|
-
|
|
889
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
890
890
|
} finally {
|
|
891
|
-
if (
|
|
892
|
-
throw
|
|
891
|
+
if (r)
|
|
892
|
+
throw r.error;
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
}
|
|
@@ -897,89 +897,89 @@ var Se = function() {
|
|
|
897
897
|
throw new Ne(o);
|
|
898
898
|
}
|
|
899
899
|
}, e.prototype.add = function(t) {
|
|
900
|
-
var
|
|
900
|
+
var n;
|
|
901
901
|
if (t && t !== this)
|
|
902
902
|
if (this.closed)
|
|
903
|
-
|
|
903
|
+
gt(t);
|
|
904
904
|
else {
|
|
905
905
|
if (t instanceof e) {
|
|
906
906
|
if (t.closed || t._hasParent(this))
|
|
907
907
|
return;
|
|
908
908
|
t._addParent(this);
|
|
909
909
|
}
|
|
910
|
-
(this._finalizers = (
|
|
910
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
911
911
|
}
|
|
912
912
|
}, e.prototype._hasParent = function(t) {
|
|
913
|
-
var
|
|
914
|
-
return
|
|
913
|
+
var n = this._parentage;
|
|
914
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
915
915
|
}, e.prototype._addParent = function(t) {
|
|
916
|
-
var
|
|
917
|
-
this._parentage = Array.isArray(
|
|
916
|
+
var n = this._parentage;
|
|
917
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
918
918
|
}, e.prototype._removeParent = function(t) {
|
|
919
|
-
var
|
|
920
|
-
|
|
919
|
+
var n = this._parentage;
|
|
920
|
+
n === t ? this._parentage = null : Array.isArray(n) && ze(n, t);
|
|
921
921
|
}, e.prototype.remove = function(t) {
|
|
922
|
-
var
|
|
923
|
-
|
|
922
|
+
var n = this._finalizers;
|
|
923
|
+
n && ze(n, t), t instanceof e && t._removeParent(this);
|
|
924
924
|
}, e.EMPTY = function() {
|
|
925
925
|
var t = new e();
|
|
926
926
|
return t.closed = !0, t;
|
|
927
927
|
}(), e;
|
|
928
|
-
}(),
|
|
929
|
-
function
|
|
928
|
+
}(), Jt = Se.EMPTY;
|
|
929
|
+
function qt(e) {
|
|
930
930
|
return e instanceof Se || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function gt(e) {
|
|
933
933
|
R(e) ? e() : e.unsubscribe();
|
|
934
934
|
}
|
|
935
|
-
var
|
|
935
|
+
var br = {
|
|
936
936
|
onUnhandledError: null,
|
|
937
937
|
onStoppedNotification: null,
|
|
938
938
|
Promise: void 0,
|
|
939
939
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
940
940
|
useDeprecatedNextContext: !1
|
|
941
|
-
},
|
|
941
|
+
}, gr = {
|
|
942
942
|
setTimeout: function(e, t) {
|
|
943
|
-
for (var
|
|
944
|
-
r
|
|
945
|
-
return setTimeout.apply(void 0, Z([e, t],
|
|
943
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
944
|
+
n[r - 2] = arguments[r];
|
|
945
|
+
return setTimeout.apply(void 0, Z([e, t], Xe(n)));
|
|
946
946
|
},
|
|
947
947
|
clearTimeout: function(e) {
|
|
948
948
|
return clearTimeout(e);
|
|
949
949
|
},
|
|
950
950
|
delegate: void 0
|
|
951
951
|
};
|
|
952
|
-
function
|
|
953
|
-
|
|
952
|
+
function yr(e) {
|
|
953
|
+
gr.setTimeout(function() {
|
|
954
954
|
throw e;
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function yt() {
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function pe(e) {
|
|
960
960
|
e();
|
|
961
961
|
}
|
|
962
|
-
var
|
|
962
|
+
var Yt = function(e) {
|
|
963
963
|
G(t, e);
|
|
964
|
-
function t(
|
|
965
|
-
var
|
|
966
|
-
return
|
|
964
|
+
function t(n) {
|
|
965
|
+
var r = e.call(this) || this;
|
|
966
|
+
return r.isStopped = !1, n ? (r.destination = n, qt(n) && n.add(r)) : r.destination = _r, r;
|
|
967
967
|
}
|
|
968
|
-
return t.create = function(
|
|
969
|
-
return new
|
|
970
|
-
}, t.prototype.next = function(
|
|
971
|
-
this.isStopped || this._next(
|
|
972
|
-
}, t.prototype.error = function(
|
|
973
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
968
|
+
return t.create = function(n, r, i) {
|
|
969
|
+
return new We(n, r, i);
|
|
970
|
+
}, t.prototype.next = function(n) {
|
|
971
|
+
this.isStopped || this._next(n);
|
|
972
|
+
}, t.prototype.error = function(n) {
|
|
973
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
974
974
|
}, t.prototype.complete = function() {
|
|
975
975
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
976
976
|
}, t.prototype.unsubscribe = function() {
|
|
977
977
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
978
|
-
}, t.prototype._next = function(
|
|
979
|
-
this.destination.next(
|
|
980
|
-
}, t.prototype._error = function(
|
|
978
|
+
}, t.prototype._next = function(n) {
|
|
979
|
+
this.destination.next(n);
|
|
980
|
+
}, t.prototype._error = function(n) {
|
|
981
981
|
try {
|
|
982
|
-
this.destination.error(
|
|
982
|
+
this.destination.error(n);
|
|
983
983
|
} finally {
|
|
984
984
|
this.unsubscribe();
|
|
985
985
|
}
|
|
@@ -990,112 +990,96 @@ var tr = function(e) {
|
|
|
990
990
|
this.unsubscribe();
|
|
991
991
|
}
|
|
992
992
|
}, t;
|
|
993
|
-
}(Se),
|
|
994
|
-
function $e(e, t) {
|
|
995
|
-
return xn.call(e, t);
|
|
996
|
-
}
|
|
997
|
-
var En = function() {
|
|
993
|
+
}(Se), vr = function() {
|
|
998
994
|
function e(t) {
|
|
999
995
|
this.partialObserver = t;
|
|
1000
996
|
}
|
|
1001
997
|
return e.prototype.next = function(t) {
|
|
1002
|
-
var
|
|
1003
|
-
if (
|
|
998
|
+
var n = this.partialObserver;
|
|
999
|
+
if (n.next)
|
|
1004
1000
|
try {
|
|
1005
|
-
|
|
1006
|
-
} catch (
|
|
1007
|
-
|
|
1001
|
+
n.next(t);
|
|
1002
|
+
} catch (r) {
|
|
1003
|
+
fe(r);
|
|
1008
1004
|
}
|
|
1009
1005
|
}, e.prototype.error = function(t) {
|
|
1010
|
-
var
|
|
1011
|
-
if (
|
|
1006
|
+
var n = this.partialObserver;
|
|
1007
|
+
if (n.error)
|
|
1012
1008
|
try {
|
|
1013
|
-
|
|
1014
|
-
} catch (
|
|
1015
|
-
|
|
1009
|
+
n.error(t);
|
|
1010
|
+
} catch (r) {
|
|
1011
|
+
fe(r);
|
|
1016
1012
|
}
|
|
1017
1013
|
else
|
|
1018
|
-
|
|
1014
|
+
fe(t);
|
|
1019
1015
|
}, e.prototype.complete = function() {
|
|
1020
1016
|
var t = this.partialObserver;
|
|
1021
1017
|
if (t.complete)
|
|
1022
1018
|
try {
|
|
1023
1019
|
t.complete();
|
|
1024
|
-
} catch (
|
|
1025
|
-
|
|
1020
|
+
} catch (n) {
|
|
1021
|
+
fe(n);
|
|
1026
1022
|
}
|
|
1027
1023
|
}, e;
|
|
1028
|
-
}(),
|
|
1024
|
+
}(), We = function(e) {
|
|
1029
1025
|
G(t, e);
|
|
1030
|
-
function t(
|
|
1026
|
+
function t(n, r, i) {
|
|
1031
1027
|
var o = e.call(this) || this, a;
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
};
|
|
1038
|
-
else {
|
|
1039
|
-
var s;
|
|
1040
|
-
o && er.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
1041
|
-
return o.unsubscribe();
|
|
1042
|
-
}, a = {
|
|
1043
|
-
next: r.next && $e(r.next, s),
|
|
1044
|
-
error: r.error && $e(r.error, s),
|
|
1045
|
-
complete: r.complete && $e(r.complete, s)
|
|
1046
|
-
}) : a = r;
|
|
1047
|
-
}
|
|
1048
|
-
return o.destination = new En(a), o;
|
|
1028
|
+
return R(n) || !n ? a = {
|
|
1029
|
+
next: n != null ? n : void 0,
|
|
1030
|
+
error: r != null ? r : void 0,
|
|
1031
|
+
complete: i != null ? i : void 0
|
|
1032
|
+
} : a = n, o.destination = new vr(a), o;
|
|
1049
1033
|
}
|
|
1050
1034
|
return t;
|
|
1051
|
-
}(
|
|
1052
|
-
function
|
|
1053
|
-
|
|
1035
|
+
}(Yt);
|
|
1036
|
+
function fe(e) {
|
|
1037
|
+
yr(e);
|
|
1054
1038
|
}
|
|
1055
|
-
function
|
|
1039
|
+
function xr(e) {
|
|
1056
1040
|
throw e;
|
|
1057
1041
|
}
|
|
1058
|
-
var
|
|
1042
|
+
var _r = {
|
|
1059
1043
|
closed: !0,
|
|
1060
|
-
next:
|
|
1061
|
-
error:
|
|
1062
|
-
complete:
|
|
1063
|
-
},
|
|
1044
|
+
next: yt,
|
|
1045
|
+
error: xr,
|
|
1046
|
+
complete: yt
|
|
1047
|
+
}, Er = function() {
|
|
1064
1048
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1065
1049
|
}();
|
|
1066
|
-
function
|
|
1050
|
+
function wr(e) {
|
|
1067
1051
|
return e;
|
|
1068
1052
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return e.length === 0 ?
|
|
1071
|
-
return e.reduce(function(
|
|
1072
|
-
return i(
|
|
1073
|
-
},
|
|
1053
|
+
function Sr(e) {
|
|
1054
|
+
return e.length === 0 ? wr : e.length === 1 ? e[0] : function(n) {
|
|
1055
|
+
return e.reduce(function(r, i) {
|
|
1056
|
+
return i(r);
|
|
1057
|
+
}, n);
|
|
1074
1058
|
};
|
|
1075
1059
|
}
|
|
1076
|
-
var
|
|
1060
|
+
var vt = function() {
|
|
1077
1061
|
function e(t) {
|
|
1078
1062
|
t && (this._subscribe = t);
|
|
1079
1063
|
}
|
|
1080
1064
|
return e.prototype.lift = function(t) {
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1083
|
-
}, e.prototype.subscribe = function(t,
|
|
1084
|
-
var i = this, o =
|
|
1085
|
-
return
|
|
1065
|
+
var n = new e();
|
|
1066
|
+
return n.source = this, n.operator = t, n;
|
|
1067
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
1068
|
+
var i = this, o = Hr(t) ? t : new We(t, n, r);
|
|
1069
|
+
return pe(function() {
|
|
1086
1070
|
var a = i, s = a.operator, l = a.source;
|
|
1087
1071
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1088
1072
|
}), o;
|
|
1089
1073
|
}, e.prototype._trySubscribe = function(t) {
|
|
1090
1074
|
try {
|
|
1091
1075
|
return this._subscribe(t);
|
|
1092
|
-
} catch (
|
|
1093
|
-
t.error(
|
|
1076
|
+
} catch (n) {
|
|
1077
|
+
t.error(n);
|
|
1094
1078
|
}
|
|
1095
|
-
}, e.prototype.forEach = function(t,
|
|
1096
|
-
var
|
|
1097
|
-
return
|
|
1098
|
-
var a = new
|
|
1079
|
+
}, e.prototype.forEach = function(t, n) {
|
|
1080
|
+
var r = this;
|
|
1081
|
+
return n = xt(n), new n(function(i, o) {
|
|
1082
|
+
var a = new We({
|
|
1099
1083
|
next: function(s) {
|
|
1100
1084
|
try {
|
|
1101
1085
|
t(s);
|
|
@@ -1106,69 +1090,69 @@ var xt = function() {
|
|
|
1106
1090
|
error: o,
|
|
1107
1091
|
complete: i
|
|
1108
1092
|
});
|
|
1109
|
-
|
|
1093
|
+
r.subscribe(a);
|
|
1110
1094
|
});
|
|
1111
1095
|
}, e.prototype._subscribe = function(t) {
|
|
1112
|
-
var
|
|
1113
|
-
return (
|
|
1114
|
-
}, e.prototype[
|
|
1096
|
+
var n;
|
|
1097
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
1098
|
+
}, e.prototype[Er] = function() {
|
|
1115
1099
|
return this;
|
|
1116
1100
|
}, e.prototype.pipe = function() {
|
|
1117
|
-
for (var t = [],
|
|
1118
|
-
t[
|
|
1119
|
-
return
|
|
1101
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
1102
|
+
t[n] = arguments[n];
|
|
1103
|
+
return Sr(t)(this);
|
|
1120
1104
|
}, e.prototype.toPromise = function(t) {
|
|
1121
|
-
var
|
|
1122
|
-
return t =
|
|
1105
|
+
var n = this;
|
|
1106
|
+
return t = xt(t), new t(function(r, i) {
|
|
1123
1107
|
var o;
|
|
1124
|
-
|
|
1108
|
+
n.subscribe(function(a) {
|
|
1125
1109
|
return o = a;
|
|
1126
1110
|
}, function(a) {
|
|
1127
1111
|
return i(a);
|
|
1128
1112
|
}, function() {
|
|
1129
|
-
return
|
|
1113
|
+
return r(o);
|
|
1130
1114
|
});
|
|
1131
1115
|
});
|
|
1132
1116
|
}, e.create = function(t) {
|
|
1133
1117
|
return new e(t);
|
|
1134
1118
|
}, e;
|
|
1135
1119
|
}();
|
|
1136
|
-
function
|
|
1120
|
+
function xt(e) {
|
|
1137
1121
|
var t;
|
|
1138
|
-
return (t = e != null ? e :
|
|
1122
|
+
return (t = e != null ? e : br.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1139
1123
|
}
|
|
1140
|
-
function
|
|
1124
|
+
function Tr(e) {
|
|
1141
1125
|
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
1142
1126
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return e && e instanceof
|
|
1127
|
+
function Hr(e) {
|
|
1128
|
+
return e && e instanceof Yt || Tr(e) && qt(e);
|
|
1145
1129
|
}
|
|
1146
|
-
var
|
|
1130
|
+
var Cr = Qt(function(e) {
|
|
1147
1131
|
return function() {
|
|
1148
1132
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1149
1133
|
};
|
|
1150
|
-
}),
|
|
1134
|
+
}), Kt = function(e) {
|
|
1151
1135
|
G(t, e);
|
|
1152
1136
|
function t() {
|
|
1153
|
-
var
|
|
1154
|
-
return
|
|
1137
|
+
var n = e.call(this) || this;
|
|
1138
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
1155
1139
|
}
|
|
1156
|
-
return t.prototype.lift = function(
|
|
1157
|
-
var
|
|
1158
|
-
return
|
|
1140
|
+
return t.prototype.lift = function(n) {
|
|
1141
|
+
var r = new _t(this, this);
|
|
1142
|
+
return r.operator = n, r;
|
|
1159
1143
|
}, t.prototype._throwIfClosed = function() {
|
|
1160
1144
|
if (this.closed)
|
|
1161
|
-
throw new
|
|
1162
|
-
}, t.prototype.next = function(
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1145
|
+
throw new Cr();
|
|
1146
|
+
}, t.prototype.next = function(n) {
|
|
1147
|
+
var r = this;
|
|
1148
|
+
pe(function() {
|
|
1165
1149
|
var i, o;
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1150
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1151
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
1168
1152
|
try {
|
|
1169
|
-
for (var a =
|
|
1153
|
+
for (var a = Ve(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1170
1154
|
var l = s.value;
|
|
1171
|
-
l.next(
|
|
1155
|
+
l.next(n);
|
|
1172
1156
|
}
|
|
1173
1157
|
} catch (u) {
|
|
1174
1158
|
i = { error: u };
|
|
@@ -1182,118 +1166,118 @@ var Pn = qt(function(e) {
|
|
|
1182
1166
|
}
|
|
1183
1167
|
}
|
|
1184
1168
|
});
|
|
1185
|
-
}, t.prototype.error = function(
|
|
1186
|
-
var
|
|
1187
|
-
|
|
1188
|
-
if (
|
|
1189
|
-
|
|
1190
|
-
for (var i =
|
|
1191
|
-
i.shift().error(
|
|
1169
|
+
}, t.prototype.error = function(n) {
|
|
1170
|
+
var r = this;
|
|
1171
|
+
pe(function() {
|
|
1172
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1173
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
1174
|
+
for (var i = r.observers; i.length; )
|
|
1175
|
+
i.shift().error(n);
|
|
1192
1176
|
}
|
|
1193
1177
|
});
|
|
1194
1178
|
}, t.prototype.complete = function() {
|
|
1195
|
-
var
|
|
1196
|
-
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1199
|
-
for (var
|
|
1200
|
-
|
|
1179
|
+
var n = this;
|
|
1180
|
+
pe(function() {
|
|
1181
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1182
|
+
n.isStopped = !0;
|
|
1183
|
+
for (var r = n.observers; r.length; )
|
|
1184
|
+
r.shift().complete();
|
|
1201
1185
|
}
|
|
1202
1186
|
});
|
|
1203
1187
|
}, t.prototype.unsubscribe = function() {
|
|
1204
1188
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1205
1189
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1206
1190
|
get: function() {
|
|
1207
|
-
var
|
|
1208
|
-
return ((
|
|
1191
|
+
var n;
|
|
1192
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
1209
1193
|
},
|
|
1210
1194
|
enumerable: !1,
|
|
1211
1195
|
configurable: !0
|
|
1212
|
-
}), t.prototype._trySubscribe = function(
|
|
1213
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1214
|
-
}, t.prototype._subscribe = function(
|
|
1215
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1216
|
-
}, t.prototype._innerSubscribe = function(
|
|
1217
|
-
var
|
|
1218
|
-
return o || a ?
|
|
1219
|
-
|
|
1196
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
1197
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
1198
|
+
}, t.prototype._subscribe = function(n) {
|
|
1199
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
1200
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
1201
|
+
var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1202
|
+
return o || a ? Jt : (this.currentObservers = null, s.push(n), new Se(function() {
|
|
1203
|
+
r.currentObservers = null, ze(s, n);
|
|
1220
1204
|
}));
|
|
1221
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1222
|
-
var
|
|
1223
|
-
i ?
|
|
1205
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
1206
|
+
var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
|
|
1207
|
+
i ? n.error(o) : a && n.complete();
|
|
1224
1208
|
}, t.prototype.asObservable = function() {
|
|
1225
|
-
var
|
|
1226
|
-
return
|
|
1227
|
-
}, t.create = function(
|
|
1228
|
-
return new
|
|
1209
|
+
var n = new vt();
|
|
1210
|
+
return n.source = this, n;
|
|
1211
|
+
}, t.create = function(n, r) {
|
|
1212
|
+
return new _t(n, r);
|
|
1229
1213
|
}, t;
|
|
1230
|
-
}(
|
|
1214
|
+
}(vt), _t = function(e) {
|
|
1231
1215
|
G(t, e);
|
|
1232
|
-
function t(
|
|
1216
|
+
function t(n, r) {
|
|
1233
1217
|
var i = e.call(this) || this;
|
|
1234
|
-
return i.destination =
|
|
1218
|
+
return i.destination = n, i.source = r, i;
|
|
1235
1219
|
}
|
|
1236
|
-
return t.prototype.next = function(
|
|
1237
|
-
var
|
|
1238
|
-
(i = (
|
|
1239
|
-
}, t.prototype.error = function(
|
|
1240
|
-
var
|
|
1241
|
-
(i = (
|
|
1220
|
+
return t.prototype.next = function(n) {
|
|
1221
|
+
var r, i;
|
|
1222
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
1223
|
+
}, t.prototype.error = function(n) {
|
|
1224
|
+
var r, i;
|
|
1225
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
1242
1226
|
}, t.prototype.complete = function() {
|
|
1243
|
-
var
|
|
1244
|
-
(
|
|
1245
|
-
}, t.prototype._subscribe = function(
|
|
1246
|
-
var
|
|
1247
|
-
return (i = (
|
|
1227
|
+
var n, r;
|
|
1228
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
1229
|
+
}, t.prototype._subscribe = function(n) {
|
|
1230
|
+
var r, i;
|
|
1231
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Jt;
|
|
1248
1232
|
}, t;
|
|
1249
|
-
}(
|
|
1233
|
+
}(Kt), en = {
|
|
1250
1234
|
now: function() {
|
|
1251
|
-
return (
|
|
1235
|
+
return (en.delegate || Date).now();
|
|
1252
1236
|
},
|
|
1253
1237
|
delegate: void 0
|
|
1254
|
-
},
|
|
1238
|
+
}, Br = function(e) {
|
|
1255
1239
|
G(t, e);
|
|
1256
|
-
function t(
|
|
1257
|
-
|
|
1240
|
+
function t(n, r, i) {
|
|
1241
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = en);
|
|
1258
1242
|
var o = e.call(this) || this;
|
|
1259
|
-
return o._bufferSize =
|
|
1243
|
+
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
1260
1244
|
}
|
|
1261
|
-
return t.prototype.next = function(
|
|
1262
|
-
var
|
|
1263
|
-
i || (o.push(
|
|
1264
|
-
}, t.prototype._subscribe = function(
|
|
1245
|
+
return t.prototype.next = function(n) {
|
|
1246
|
+
var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, l = r._windowTime;
|
|
1247
|
+
i || (o.push(n), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
1248
|
+
}, t.prototype._subscribe = function(n) {
|
|
1265
1249
|
this._throwIfClosed(), this._trimBuffer();
|
|
1266
|
-
for (var
|
|
1267
|
-
|
|
1268
|
-
return this._checkFinalizedStatuses(
|
|
1250
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !n.closed; l += o ? 1 : 2)
|
|
1251
|
+
n.next(s[l]);
|
|
1252
|
+
return this._checkFinalizedStatuses(n), r;
|
|
1269
1253
|
}, t.prototype._trimBuffer = function() {
|
|
1270
|
-
var
|
|
1271
|
-
if (
|
|
1254
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
|
|
1255
|
+
if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1272
1256
|
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1273
1257
|
u = h;
|
|
1274
1258
|
u && o.splice(0, u + 1);
|
|
1275
1259
|
}
|
|
1276
1260
|
}, t;
|
|
1277
|
-
}(
|
|
1278
|
-
const
|
|
1279
|
-
if (
|
|
1280
|
-
const
|
|
1281
|
-
|
|
1261
|
+
}(Kt);
|
|
1262
|
+
const Et = [], wt = {}, Ar = (e, t = 0) => {
|
|
1263
|
+
if (Et.indexOf(e) == -1) {
|
|
1264
|
+
const n = new Br(t);
|
|
1265
|
+
wt[e] = n, Et.push(e);
|
|
1282
1266
|
}
|
|
1283
|
-
return
|
|
1267
|
+
return wt[e];
|
|
1284
1268
|
}, V = [];
|
|
1285
|
-
function
|
|
1269
|
+
function Pr(e, t) {
|
|
1286
1270
|
return {
|
|
1287
1271
|
subscribe: Te(e, t).subscribe
|
|
1288
1272
|
};
|
|
1289
1273
|
}
|
|
1290
1274
|
function Te(e, t = I) {
|
|
1291
|
-
let
|
|
1292
|
-
const
|
|
1275
|
+
let n;
|
|
1276
|
+
const r = /* @__PURE__ */ new Set();
|
|
1293
1277
|
function i(s) {
|
|
1294
|
-
if (
|
|
1278
|
+
if (Ft(e, s) && (e = s, n)) {
|
|
1295
1279
|
const l = !V.length;
|
|
1296
|
-
for (const u of
|
|
1280
|
+
for (const u of r)
|
|
1297
1281
|
u[1](), V.push(u, e);
|
|
1298
1282
|
if (l) {
|
|
1299
1283
|
for (let u = 0; u < V.length; u += 2)
|
|
@@ -1307,167 +1291,169 @@ function Te(e, t = I) {
|
|
|
1307
1291
|
}
|
|
1308
1292
|
function a(s, l = I) {
|
|
1309
1293
|
const u = [s, l];
|
|
1310
|
-
return
|
|
1311
|
-
|
|
1294
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || I), s(e), () => {
|
|
1295
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
1312
1296
|
};
|
|
1313
1297
|
}
|
|
1314
1298
|
return { set: i, update: o, subscribe: a };
|
|
1315
1299
|
}
|
|
1316
|
-
function K(e, t,
|
|
1317
|
-
const
|
|
1300
|
+
function K(e, t, n) {
|
|
1301
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
1318
1302
|
if (!i.every(Boolean))
|
|
1319
1303
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1320
1304
|
const o = t.length < 2;
|
|
1321
|
-
return
|
|
1305
|
+
return Pr(n, (a, s) => {
|
|
1322
1306
|
let l = !1;
|
|
1323
1307
|
const u = [];
|
|
1324
|
-
let h = 0,
|
|
1325
|
-
const
|
|
1308
|
+
let h = 0, f = I;
|
|
1309
|
+
const c = () => {
|
|
1326
1310
|
if (h)
|
|
1327
1311
|
return;
|
|
1328
|
-
|
|
1329
|
-
const m = t(
|
|
1330
|
-
o ? a(m) :
|
|
1331
|
-
},
|
|
1332
|
-
(m,
|
|
1312
|
+
f();
|
|
1313
|
+
const m = t(r ? u[0] : u, a, s);
|
|
1314
|
+
o ? a(m) : f = we(m) ? m : I;
|
|
1315
|
+
}, d = i.map(
|
|
1316
|
+
(m, p) => jt(
|
|
1333
1317
|
m,
|
|
1334
1318
|
(v) => {
|
|
1335
|
-
u[
|
|
1319
|
+
u[p] = v, h &= ~(1 << p), l && c();
|
|
1336
1320
|
},
|
|
1337
1321
|
() => {
|
|
1338
|
-
h |= 1 <<
|
|
1322
|
+
h |= 1 << p;
|
|
1339
1323
|
}
|
|
1340
1324
|
)
|
|
1341
1325
|
);
|
|
1342
|
-
return l = !0,
|
|
1343
|
-
D(
|
|
1326
|
+
return l = !0, c(), function() {
|
|
1327
|
+
D(d), f(), l = !1;
|
|
1344
1328
|
};
|
|
1345
1329
|
});
|
|
1346
1330
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return e
|
|
1331
|
+
function Lr(e) {
|
|
1332
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1349
1333
|
}
|
|
1350
|
-
var
|
|
1351
|
-
return
|
|
1334
|
+
var Or = function(t) {
|
|
1335
|
+
return Ir(t) && !Mr(t);
|
|
1352
1336
|
};
|
|
1353
|
-
function
|
|
1337
|
+
function Ir(e) {
|
|
1354
1338
|
return !!e && typeof e == "object";
|
|
1355
1339
|
}
|
|
1356
|
-
function
|
|
1340
|
+
function Mr(e) {
|
|
1357
1341
|
var t = Object.prototype.toString.call(e);
|
|
1358
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1342
|
+
return t === "[object RegExp]" || t === "[object Date]" || Rr(e);
|
|
1359
1343
|
}
|
|
1360
|
-
var
|
|
1361
|
-
function
|
|
1362
|
-
return e.$$typeof ===
|
|
1344
|
+
var Nr = typeof Symbol == "function" && Symbol.for, $r = Nr ? Symbol.for("react.element") : 60103;
|
|
1345
|
+
function Rr(e) {
|
|
1346
|
+
return e.$$typeof === $r;
|
|
1363
1347
|
}
|
|
1364
|
-
function
|
|
1348
|
+
function Gr(e) {
|
|
1365
1349
|
return Array.isArray(e) ? [] : {};
|
|
1366
1350
|
}
|
|
1367
1351
|
function ae(e, t) {
|
|
1368
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
1352
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Gr(e), e, t) : e;
|
|
1369
1353
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return e.concat(t).map(function(
|
|
1372
|
-
return ae(
|
|
1354
|
+
function Ur(e, t, n) {
|
|
1355
|
+
return e.concat(t).map(function(r) {
|
|
1356
|
+
return ae(r, n);
|
|
1373
1357
|
});
|
|
1374
1358
|
}
|
|
1375
|
-
function
|
|
1359
|
+
function Dr(e, t) {
|
|
1376
1360
|
if (!t.customMerge)
|
|
1377
1361
|
return Q;
|
|
1378
|
-
var
|
|
1379
|
-
return typeof
|
|
1362
|
+
var n = t.customMerge(e);
|
|
1363
|
+
return typeof n == "function" ? n : Q;
|
|
1380
1364
|
}
|
|
1381
|
-
function
|
|
1365
|
+
function Fr(e) {
|
|
1382
1366
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1383
1367
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1384
1368
|
}) : [];
|
|
1385
1369
|
}
|
|
1386
|
-
function
|
|
1387
|
-
return Object.keys(e).concat(
|
|
1370
|
+
function St(e) {
|
|
1371
|
+
return Object.keys(e).concat(Fr(e));
|
|
1388
1372
|
}
|
|
1389
|
-
function
|
|
1373
|
+
function tn(e, t) {
|
|
1390
1374
|
try {
|
|
1391
1375
|
return t in e;
|
|
1392
|
-
} catch (
|
|
1376
|
+
} catch (n) {
|
|
1393
1377
|
return !1;
|
|
1394
1378
|
}
|
|
1395
1379
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return
|
|
1380
|
+
function jr(e, t) {
|
|
1381
|
+
return tn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1398
1382
|
}
|
|
1399
|
-
function
|
|
1400
|
-
var
|
|
1401
|
-
return
|
|
1402
|
-
|
|
1403
|
-
}),
|
|
1404
|
-
|
|
1405
|
-
}),
|
|
1406
|
-
}
|
|
1407
|
-
function Q(e, t,
|
|
1408
|
-
|
|
1409
|
-
var
|
|
1410
|
-
return o ?
|
|
1411
|
-
}
|
|
1412
|
-
Q.all = function(t,
|
|
1383
|
+
function kr(e, t, n) {
|
|
1384
|
+
var r = {};
|
|
1385
|
+
return n.isMergeableObject(e) && St(e).forEach(function(i) {
|
|
1386
|
+
r[i] = ae(e[i], n);
|
|
1387
|
+
}), St(t).forEach(function(i) {
|
|
1388
|
+
jr(e, i) || (tn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Dr(i, n)(e[i], t[i], n) : r[i] = ae(t[i], n));
|
|
1389
|
+
}), r;
|
|
1390
|
+
}
|
|
1391
|
+
function Q(e, t, n) {
|
|
1392
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Ur, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = ae;
|
|
1393
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
1394
|
+
return o ? r ? n.arrayMerge(e, t, n) : kr(e, t, n) : ae(t, n);
|
|
1395
|
+
}
|
|
1396
|
+
Q.all = function(t, n) {
|
|
1413
1397
|
if (!Array.isArray(t))
|
|
1414
1398
|
throw new Error("first argument should be an array");
|
|
1415
|
-
return t.reduce(function(
|
|
1416
|
-
return Q(
|
|
1399
|
+
return t.reduce(function(r, i) {
|
|
1400
|
+
return Q(r, i, n);
|
|
1417
1401
|
}, {});
|
|
1418
1402
|
};
|
|
1419
|
-
var
|
|
1420
|
-
const
|
|
1421
|
-
function
|
|
1422
|
-
var
|
|
1403
|
+
var Vr = Q, Xr = Vr;
|
|
1404
|
+
const zr = /* @__PURE__ */ Lr(Xr);
|
|
1405
|
+
function $e(e, t) {
|
|
1406
|
+
var n = t && t.cache ? t.cache : Kr, r = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Zr;
|
|
1423
1407
|
return i(e, {
|
|
1424
|
-
cache:
|
|
1425
|
-
serializer:
|
|
1408
|
+
cache: n,
|
|
1409
|
+
serializer: r
|
|
1426
1410
|
});
|
|
1427
1411
|
}
|
|
1428
|
-
function
|
|
1412
|
+
function Wr(e) {
|
|
1429
1413
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1430
1414
|
}
|
|
1431
|
-
function
|
|
1432
|
-
var i =
|
|
1433
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
1415
|
+
function nn(e, t, n, r) {
|
|
1416
|
+
var i = Wr(r) ? r : n(r), o = t.get(i);
|
|
1417
|
+
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
1434
1418
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var
|
|
1437
|
-
return typeof o == "undefined" && (o = e.apply(this,
|
|
1419
|
+
function rn(e, t, n) {
|
|
1420
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1421
|
+
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1438
1422
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return
|
|
1423
|
+
function ot(e, t, n, r, i) {
|
|
1424
|
+
return n.bind(t, e, r, i);
|
|
1441
1425
|
}
|
|
1442
|
-
function
|
|
1443
|
-
var
|
|
1444
|
-
return
|
|
1426
|
+
function Zr(e, t) {
|
|
1427
|
+
var n = e.length === 1 ? nn : rn;
|
|
1428
|
+
return ot(e, this, n, t.cache.create(), t.serializer);
|
|
1445
1429
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1430
|
+
function Qr(e, t) {
|
|
1431
|
+
return ot(e, this, rn, t.cache.create(), t.serializer);
|
|
1448
1432
|
}
|
|
1449
|
-
function
|
|
1450
|
-
return
|
|
1433
|
+
function Jr(e, t) {
|
|
1434
|
+
return ot(e, this, nn, t.cache.create(), t.serializer);
|
|
1451
1435
|
}
|
|
1452
|
-
var
|
|
1436
|
+
var qr = function() {
|
|
1453
1437
|
return JSON.stringify(arguments);
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1438
|
+
}, Yr = (
|
|
1439
|
+
/** @class */
|
|
1440
|
+
function() {
|
|
1441
|
+
function e() {
|
|
1442
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1443
|
+
}
|
|
1444
|
+
return e.prototype.get = function(t) {
|
|
1445
|
+
return this.cache[t];
|
|
1446
|
+
}, e.prototype.set = function(t, n) {
|
|
1447
|
+
this.cache[t] = n;
|
|
1448
|
+
}, e;
|
|
1449
|
+
}()
|
|
1450
|
+
), Kr = {
|
|
1465
1451
|
create: function() {
|
|
1466
|
-
return new
|
|
1452
|
+
return new Yr();
|
|
1467
1453
|
}
|
|
1468
|
-
},
|
|
1469
|
-
variadic:
|
|
1470
|
-
monadic:
|
|
1454
|
+
}, Re = {
|
|
1455
|
+
variadic: Qr,
|
|
1456
|
+
monadic: Jr
|
|
1471
1457
|
}, b;
|
|
1472
1458
|
(function(e) {
|
|
1473
1459
|
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";
|
|
@@ -1480,50 +1466,50 @@ var J;
|
|
|
1480
1466
|
(function(e) {
|
|
1481
1467
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1482
1468
|
})(J || (J = {}));
|
|
1483
|
-
function
|
|
1469
|
+
function Tt(e) {
|
|
1484
1470
|
return e.type === E.literal;
|
|
1485
1471
|
}
|
|
1486
|
-
function
|
|
1472
|
+
function ei(e) {
|
|
1487
1473
|
return e.type === E.argument;
|
|
1488
1474
|
}
|
|
1489
|
-
function
|
|
1475
|
+
function on(e) {
|
|
1490
1476
|
return e.type === E.number;
|
|
1491
1477
|
}
|
|
1492
|
-
function
|
|
1478
|
+
function sn(e) {
|
|
1493
1479
|
return e.type === E.date;
|
|
1494
1480
|
}
|
|
1495
|
-
function
|
|
1481
|
+
function an(e) {
|
|
1496
1482
|
return e.type === E.time;
|
|
1497
1483
|
}
|
|
1498
|
-
function
|
|
1484
|
+
function un(e) {
|
|
1499
1485
|
return e.type === E.select;
|
|
1500
1486
|
}
|
|
1501
|
-
function
|
|
1487
|
+
function ln(e) {
|
|
1502
1488
|
return e.type === E.plural;
|
|
1503
1489
|
}
|
|
1504
|
-
function
|
|
1490
|
+
function ti(e) {
|
|
1505
1491
|
return e.type === E.pound;
|
|
1506
1492
|
}
|
|
1507
|
-
function
|
|
1493
|
+
function hn(e) {
|
|
1508
1494
|
return e.type === E.tag;
|
|
1509
1495
|
}
|
|
1510
|
-
function
|
|
1496
|
+
function fn(e) {
|
|
1511
1497
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
1512
1498
|
}
|
|
1513
|
-
function
|
|
1499
|
+
function Ze(e) {
|
|
1514
1500
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
1515
1501
|
}
|
|
1516
|
-
var
|
|
1517
|
-
function
|
|
1502
|
+
var cn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ni = /(?:[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;
|
|
1503
|
+
function ri(e) {
|
|
1518
1504
|
var t = {};
|
|
1519
|
-
return e.replace(
|
|
1520
|
-
var
|
|
1521
|
-
switch (
|
|
1505
|
+
return e.replace(ni, function(n) {
|
|
1506
|
+
var r = n.length;
|
|
1507
|
+
switch (n[0]) {
|
|
1522
1508
|
case "G":
|
|
1523
|
-
t.era =
|
|
1509
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1524
1510
|
break;
|
|
1525
1511
|
case "y":
|
|
1526
|
-
t.year =
|
|
1512
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1527
1513
|
break;
|
|
1528
1514
|
case "Y":
|
|
1529
1515
|
case "u":
|
|
@@ -1535,30 +1521,30 @@ function oi(e) {
|
|
|
1535
1521
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1536
1522
|
case "M":
|
|
1537
1523
|
case "L":
|
|
1538
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1524
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1539
1525
|
break;
|
|
1540
1526
|
case "w":
|
|
1541
1527
|
case "W":
|
|
1542
1528
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1543
1529
|
case "d":
|
|
1544
|
-
t.day = ["numeric", "2-digit"][
|
|
1530
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1545
1531
|
break;
|
|
1546
1532
|
case "D":
|
|
1547
1533
|
case "F":
|
|
1548
1534
|
case "g":
|
|
1549
1535
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1550
1536
|
case "E":
|
|
1551
|
-
t.weekday =
|
|
1537
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1552
1538
|
break;
|
|
1553
1539
|
case "e":
|
|
1554
|
-
if (
|
|
1540
|
+
if (r < 4)
|
|
1555
1541
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1556
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1542
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1557
1543
|
break;
|
|
1558
1544
|
case "c":
|
|
1559
|
-
if (
|
|
1545
|
+
if (r < 4)
|
|
1560
1546
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1561
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1547
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1562
1548
|
break;
|
|
1563
1549
|
case "a":
|
|
1564
1550
|
t.hour12 = !0;
|
|
@@ -1567,32 +1553,32 @@ function oi(e) {
|
|
|
1567
1553
|
case "B":
|
|
1568
1554
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1569
1555
|
case "h":
|
|
1570
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1556
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1571
1557
|
break;
|
|
1572
1558
|
case "H":
|
|
1573
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1559
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1574
1560
|
break;
|
|
1575
1561
|
case "K":
|
|
1576
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1562
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1577
1563
|
break;
|
|
1578
1564
|
case "k":
|
|
1579
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1565
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1580
1566
|
break;
|
|
1581
1567
|
case "j":
|
|
1582
1568
|
case "J":
|
|
1583
1569
|
case "C":
|
|
1584
1570
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1585
1571
|
case "m":
|
|
1586
|
-
t.minute = ["numeric", "2-digit"][
|
|
1572
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1587
1573
|
break;
|
|
1588
1574
|
case "s":
|
|
1589
|
-
t.second = ["numeric", "2-digit"][
|
|
1575
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1590
1576
|
break;
|
|
1591
1577
|
case "S":
|
|
1592
1578
|
case "A":
|
|
1593
1579
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1594
1580
|
case "z":
|
|
1595
|
-
t.timeZoneName =
|
|
1581
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1596
1582
|
break;
|
|
1597
1583
|
case "Z":
|
|
1598
1584
|
case "O":
|
|
@@ -1605,36 +1591,36 @@ function oi(e) {
|
|
|
1605
1591
|
return "";
|
|
1606
1592
|
}), t;
|
|
1607
1593
|
}
|
|
1608
|
-
var
|
|
1609
|
-
function
|
|
1594
|
+
var ii = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1595
|
+
function oi(e) {
|
|
1610
1596
|
if (e.length === 0)
|
|
1611
1597
|
throw new Error("Number skeleton cannot be empty");
|
|
1612
|
-
for (var t = e.split(
|
|
1613
|
-
return
|
|
1614
|
-
}),
|
|
1615
|
-
var o = i[
|
|
1598
|
+
for (var t = e.split(ii).filter(function(c) {
|
|
1599
|
+
return c.length > 0;
|
|
1600
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1601
|
+
var o = i[r], a = o.split("/");
|
|
1616
1602
|
if (a.length === 0)
|
|
1617
1603
|
throw new Error("Invalid number skeleton");
|
|
1618
1604
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1619
|
-
var
|
|
1620
|
-
if (
|
|
1605
|
+
var f = h[u];
|
|
1606
|
+
if (f.length === 0)
|
|
1621
1607
|
throw new Error("Invalid number skeleton");
|
|
1622
1608
|
}
|
|
1623
|
-
|
|
1609
|
+
n.push({ stem: s, options: l });
|
|
1624
1610
|
}
|
|
1625
|
-
return
|
|
1611
|
+
return n;
|
|
1626
1612
|
}
|
|
1627
|
-
function
|
|
1613
|
+
function si(e) {
|
|
1628
1614
|
return e.replace(/^(.*?)-/, "");
|
|
1629
1615
|
}
|
|
1630
|
-
var
|
|
1631
|
-
function
|
|
1616
|
+
var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mn = /^(@+)?(\+|#+)?[rs]?$/g, ai = /(\*)(0+)|(#+)(0+)|(0+)/g, dn = /^(0+)$/;
|
|
1617
|
+
function Ct(e) {
|
|
1632
1618
|
var t = {};
|
|
1633
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1634
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1619
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mn, function(n, r, i) {
|
|
1620
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1635
1621
|
}), t;
|
|
1636
1622
|
}
|
|
1637
|
-
function
|
|
1623
|
+
function pn(e) {
|
|
1638
1624
|
switch (e) {
|
|
1639
1625
|
case "sign-auto":
|
|
1640
1626
|
return {
|
|
@@ -1674,27 +1660,27 @@ function gr(e) {
|
|
|
1674
1660
|
};
|
|
1675
1661
|
}
|
|
1676
1662
|
}
|
|
1677
|
-
function
|
|
1663
|
+
function ui(e) {
|
|
1678
1664
|
var t;
|
|
1679
1665
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1680
1666
|
notation: "engineering"
|
|
1681
1667
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1682
1668
|
notation: "scientific"
|
|
1683
1669
|
}, e = e.slice(1)), t) {
|
|
1684
|
-
var
|
|
1685
|
-
if (
|
|
1670
|
+
var n = e.slice(0, 2);
|
|
1671
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dn.test(e))
|
|
1686
1672
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1687
1673
|
t.minimumIntegerDigits = e.length;
|
|
1688
1674
|
}
|
|
1689
1675
|
return t;
|
|
1690
1676
|
}
|
|
1691
|
-
function
|
|
1692
|
-
var t = {},
|
|
1693
|
-
return
|
|
1677
|
+
function Bt(e) {
|
|
1678
|
+
var t = {}, n = pn(e);
|
|
1679
|
+
return n || t;
|
|
1694
1680
|
}
|
|
1695
|
-
function
|
|
1696
|
-
for (var t = {},
|
|
1697
|
-
var i = n
|
|
1681
|
+
function li(e) {
|
|
1682
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1683
|
+
var i = r[n];
|
|
1698
1684
|
switch (i.stem) {
|
|
1699
1685
|
case "percent":
|
|
1700
1686
|
case "%":
|
|
@@ -1716,7 +1702,7 @@ function ci(e) {
|
|
|
1716
1702
|
continue;
|
|
1717
1703
|
case "measure-unit":
|
|
1718
1704
|
case "unit":
|
|
1719
|
-
t.style = "unit", t.unit =
|
|
1705
|
+
t.style = "unit", t.unit = si(i.options[0]);
|
|
1720
1706
|
continue;
|
|
1721
1707
|
case "compact-short":
|
|
1722
1708
|
case "K":
|
|
@@ -1727,13 +1713,13 @@ function ci(e) {
|
|
|
1727
1713
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1728
1714
|
continue;
|
|
1729
1715
|
case "scientific":
|
|
1730
|
-
t =
|
|
1731
|
-
return
|
|
1716
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1717
|
+
return x(x({}, l), Bt(u));
|
|
1732
1718
|
}, {}));
|
|
1733
1719
|
continue;
|
|
1734
1720
|
case "engineering":
|
|
1735
|
-
t =
|
|
1736
|
-
return
|
|
1721
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1722
|
+
return x(x({}, l), Bt(u));
|
|
1737
1723
|
}, {}));
|
|
1738
1724
|
continue;
|
|
1739
1725
|
case "notation-simple":
|
|
@@ -1778,45 +1764,45 @@ function ci(e) {
|
|
|
1778
1764
|
case "integer-width":
|
|
1779
1765
|
if (i.options.length > 1)
|
|
1780
1766
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1781
|
-
i.options[0].replace(
|
|
1767
|
+
i.options[0].replace(ai, function(l, u, h, f, c, d) {
|
|
1782
1768
|
if (u)
|
|
1783
1769
|
t.minimumIntegerDigits = h.length;
|
|
1784
1770
|
else {
|
|
1785
|
-
if (
|
|
1771
|
+
if (f && c)
|
|
1786
1772
|
throw new Error("We currently do not support maximum integer digits");
|
|
1787
|
-
if (
|
|
1773
|
+
if (d)
|
|
1788
1774
|
throw new Error("We currently do not support exact integer digits");
|
|
1789
1775
|
}
|
|
1790
1776
|
return "";
|
|
1791
1777
|
});
|
|
1792
1778
|
continue;
|
|
1793
1779
|
}
|
|
1794
|
-
if (
|
|
1780
|
+
if (dn.test(i.stem)) {
|
|
1795
1781
|
t.minimumIntegerDigits = i.stem.length;
|
|
1796
1782
|
continue;
|
|
1797
1783
|
}
|
|
1798
|
-
if (
|
|
1784
|
+
if (Ht.test(i.stem)) {
|
|
1799
1785
|
if (i.options.length > 1)
|
|
1800
1786
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1801
|
-
i.stem.replace(
|
|
1802
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1787
|
+
i.stem.replace(Ht, function(l, u, h, f, c, d) {
|
|
1788
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1803
1789
|
});
|
|
1804
1790
|
var o = i.options[0];
|
|
1805
|
-
o === "w" ? t =
|
|
1791
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Ct(o)));
|
|
1806
1792
|
continue;
|
|
1807
1793
|
}
|
|
1808
|
-
if (
|
|
1809
|
-
t =
|
|
1794
|
+
if (mn.test(i.stem)) {
|
|
1795
|
+
t = x(x({}, t), Ct(i.stem));
|
|
1810
1796
|
continue;
|
|
1811
1797
|
}
|
|
1812
|
-
var a =
|
|
1813
|
-
a && (t =
|
|
1814
|
-
var s =
|
|
1815
|
-
s && (t =
|
|
1798
|
+
var a = pn(i.stem);
|
|
1799
|
+
a && (t = x(x({}, t), a));
|
|
1800
|
+
var s = ui(i.stem);
|
|
1801
|
+
s && (t = x(x({}, t), s));
|
|
1816
1802
|
}
|
|
1817
1803
|
return t;
|
|
1818
1804
|
}
|
|
1819
|
-
var
|
|
1805
|
+
var ce = {
|
|
1820
1806
|
"001": [
|
|
1821
1807
|
"H",
|
|
1822
1808
|
"h"
|
|
@@ -3231,23 +3217,23 @@ var fe = {
|
|
|
3231
3217
|
"h"
|
|
3232
3218
|
]
|
|
3233
3219
|
};
|
|
3234
|
-
function
|
|
3235
|
-
for (var
|
|
3236
|
-
var i = e.charAt(
|
|
3220
|
+
function hi(e, t) {
|
|
3221
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
3222
|
+
var i = e.charAt(r);
|
|
3237
3223
|
if (i === "j") {
|
|
3238
|
-
for (var o = 0;
|
|
3239
|
-
o++,
|
|
3240
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3224
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
3225
|
+
o++, r++;
|
|
3226
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = fi(t);
|
|
3241
3227
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3242
|
-
|
|
3228
|
+
n += l;
|
|
3243
3229
|
for (; a-- > 0; )
|
|
3244
|
-
|
|
3230
|
+
n = u + n;
|
|
3245
3231
|
} else
|
|
3246
|
-
i === "J" ?
|
|
3232
|
+
i === "J" ? n += "H" : n += i;
|
|
3247
3233
|
}
|
|
3248
|
-
return
|
|
3234
|
+
return n;
|
|
3249
3235
|
}
|
|
3250
|
-
function
|
|
3236
|
+
function fi(e) {
|
|
3251
3237
|
var t = e.hourCycle;
|
|
3252
3238
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3253
3239
|
e.hourCycles && // @ts-ignore
|
|
@@ -3264,73 +3250,73 @@ function mi(e) {
|
|
|
3264
3250
|
default:
|
|
3265
3251
|
throw new Error("Invalid hourCycle");
|
|
3266
3252
|
}
|
|
3267
|
-
var
|
|
3268
|
-
|
|
3269
|
-
var i =
|
|
3253
|
+
var n = e.language, r;
|
|
3254
|
+
n !== "root" && (r = e.maximize().region);
|
|
3255
|
+
var i = ce[r || ""] || ce[n || ""] || ce["".concat(n, "-001")] || ce["001"];
|
|
3270
3256
|
return i[0];
|
|
3271
3257
|
}
|
|
3272
|
-
var
|
|
3258
|
+
var Ge, ci = new RegExp("^".concat(cn.source, "*")), mi = new RegExp("".concat(cn.source, "*$"));
|
|
3273
3259
|
function y(e, t) {
|
|
3274
3260
|
return { start: e, end: t };
|
|
3275
3261
|
}
|
|
3276
|
-
var
|
|
3262
|
+
var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, bi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, yi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, xi = !!Number.isSafeInteger, _i = xi ? Number.isSafeInteger : function(e) {
|
|
3277
3263
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3278
|
-
},
|
|
3264
|
+
}, Qe = !0;
|
|
3279
3265
|
try {
|
|
3280
|
-
var
|
|
3281
|
-
|
|
3266
|
+
var Ei = gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3267
|
+
Qe = ((Ge = Ei.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3282
3268
|
} catch (e) {
|
|
3283
|
-
|
|
3269
|
+
Qe = !1;
|
|
3284
3270
|
}
|
|
3285
|
-
var
|
|
3271
|
+
var At = di ? (
|
|
3286
3272
|
// Native
|
|
3287
|
-
function(t,
|
|
3288
|
-
return t.startsWith(
|
|
3273
|
+
function(t, n, r) {
|
|
3274
|
+
return t.startsWith(n, r);
|
|
3289
3275
|
}
|
|
3290
3276
|
) : (
|
|
3291
3277
|
// For IE11
|
|
3292
|
-
function(t,
|
|
3293
|
-
return t.slice(
|
|
3278
|
+
function(t, n, r) {
|
|
3279
|
+
return t.slice(r, r + n.length) === n;
|
|
3294
3280
|
}
|
|
3295
|
-
),
|
|
3281
|
+
), Je = pi ? String.fromCodePoint : (
|
|
3296
3282
|
// IE11
|
|
3297
3283
|
function() {
|
|
3298
|
-
for (var t = [],
|
|
3299
|
-
t[
|
|
3300
|
-
for (var
|
|
3284
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
3285
|
+
t[n] = arguments[n];
|
|
3286
|
+
for (var r = "", i = t.length, o = 0, a; i > o; ) {
|
|
3301
3287
|
if (a = t[o++], a > 1114111)
|
|
3302
3288
|
throw RangeError(a + " is not a valid code point");
|
|
3303
|
-
|
|
3289
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3304
3290
|
}
|
|
3305
|
-
return
|
|
3291
|
+
return r;
|
|
3306
3292
|
}
|
|
3307
|
-
),
|
|
3293
|
+
), Pt = (
|
|
3308
3294
|
// native
|
|
3309
|
-
|
|
3295
|
+
bi ? Object.fromEntries : (
|
|
3310
3296
|
// Ponyfill
|
|
3311
3297
|
function(t) {
|
|
3312
|
-
for (var
|
|
3313
|
-
var o = i[
|
|
3314
|
-
|
|
3298
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
3299
|
+
var o = i[r], a = o[0], s = o[1];
|
|
3300
|
+
n[a] = s;
|
|
3315
3301
|
}
|
|
3316
|
-
return
|
|
3302
|
+
return n;
|
|
3317
3303
|
}
|
|
3318
3304
|
)
|
|
3319
|
-
),
|
|
3305
|
+
), bn = gi ? (
|
|
3320
3306
|
// Native
|
|
3321
|
-
function(t,
|
|
3322
|
-
return t.codePointAt(
|
|
3307
|
+
function(t, n) {
|
|
3308
|
+
return t.codePointAt(n);
|
|
3323
3309
|
}
|
|
3324
3310
|
) : (
|
|
3325
3311
|
// IE 11
|
|
3326
|
-
function(t,
|
|
3327
|
-
var
|
|
3328
|
-
if (!(
|
|
3329
|
-
var i = t.charCodeAt(
|
|
3330
|
-
return i < 55296 || i > 56319 ||
|
|
3312
|
+
function(t, n) {
|
|
3313
|
+
var r = t.length;
|
|
3314
|
+
if (!(n < 0 || n >= r)) {
|
|
3315
|
+
var i = t.charCodeAt(n), o;
|
|
3316
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3331
3317
|
}
|
|
3332
3318
|
}
|
|
3333
|
-
),
|
|
3319
|
+
), wi = yi ? (
|
|
3334
3320
|
// Native
|
|
3335
3321
|
function(t) {
|
|
3336
3322
|
return t.trimStart();
|
|
@@ -3338,9 +3324,9 @@ var Lt = bi ? (
|
|
|
3338
3324
|
) : (
|
|
3339
3325
|
// Ponyfill
|
|
3340
3326
|
function(t) {
|
|
3341
|
-
return t.replace(
|
|
3327
|
+
return t.replace(ci, "");
|
|
3342
3328
|
}
|
|
3343
|
-
),
|
|
3329
|
+
), Si = vi ? (
|
|
3344
3330
|
// Native
|
|
3345
3331
|
function(t) {
|
|
3346
3332
|
return t.trimEnd();
|
|
@@ -3348,69 +3334,69 @@ var Lt = bi ? (
|
|
|
3348
3334
|
) : (
|
|
3349
3335
|
// Ponyfill
|
|
3350
3336
|
function(t) {
|
|
3351
|
-
return t.replace(
|
|
3337
|
+
return t.replace(mi, "");
|
|
3352
3338
|
}
|
|
3353
3339
|
);
|
|
3354
|
-
function
|
|
3340
|
+
function gn(e, t) {
|
|
3355
3341
|
return new RegExp(e, t);
|
|
3356
3342
|
}
|
|
3357
|
-
var
|
|
3358
|
-
if (
|
|
3359
|
-
var
|
|
3360
|
-
|
|
3361
|
-
var
|
|
3362
|
-
|
|
3363
|
-
var i =
|
|
3364
|
-
return (
|
|
3343
|
+
var qe;
|
|
3344
|
+
if (Qe) {
|
|
3345
|
+
var Lt = gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3346
|
+
qe = function(t, n) {
|
|
3347
|
+
var r;
|
|
3348
|
+
Lt.lastIndex = n;
|
|
3349
|
+
var i = Lt.exec(t);
|
|
3350
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
3365
3351
|
};
|
|
3366
3352
|
} else
|
|
3367
|
-
|
|
3368
|
-
for (var
|
|
3369
|
-
var i =
|
|
3370
|
-
if (i === void 0 ||
|
|
3353
|
+
qe = function(t, n) {
|
|
3354
|
+
for (var r = []; ; ) {
|
|
3355
|
+
var i = bn(t, n);
|
|
3356
|
+
if (i === void 0 || yn(i) || Bi(i))
|
|
3371
3357
|
break;
|
|
3372
|
-
|
|
3358
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
3373
3359
|
}
|
|
3374
|
-
return
|
|
3360
|
+
return Je.apply(void 0, r);
|
|
3375
3361
|
};
|
|
3376
|
-
var
|
|
3362
|
+
var Ti = (
|
|
3377
3363
|
/** @class */
|
|
3378
3364
|
function() {
|
|
3379
|
-
function e(t,
|
|
3380
|
-
|
|
3365
|
+
function e(t, n) {
|
|
3366
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
3381
3367
|
}
|
|
3382
3368
|
return e.prototype.parse = function() {
|
|
3383
3369
|
if (this.offset() !== 0)
|
|
3384
3370
|
throw Error("parser can only be used once");
|
|
3385
3371
|
return this.parseMessage(0, "", !1);
|
|
3386
|
-
}, e.prototype.parseMessage = function(t,
|
|
3372
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
3387
3373
|
for (var i = []; !this.isEOF(); ) {
|
|
3388
3374
|
var o = this.char();
|
|
3389
3375
|
if (o === 123) {
|
|
3390
|
-
var a = this.parseArgument(t,
|
|
3376
|
+
var a = this.parseArgument(t, r);
|
|
3391
3377
|
if (a.err)
|
|
3392
3378
|
return a;
|
|
3393
3379
|
i.push(a.val);
|
|
3394
3380
|
} else {
|
|
3395
3381
|
if (o === 125 && t > 0)
|
|
3396
3382
|
break;
|
|
3397
|
-
if (o === 35 && (
|
|
3383
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3398
3384
|
var s = this.clonePosition();
|
|
3399
3385
|
this.bump(), i.push({
|
|
3400
3386
|
type: E.pound,
|
|
3401
3387
|
location: y(s, this.clonePosition())
|
|
3402
3388
|
});
|
|
3403
3389
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3404
|
-
if (
|
|
3390
|
+
if (r)
|
|
3405
3391
|
break;
|
|
3406
3392
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3407
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3408
|
-
var a = this.parseTag(t,
|
|
3393
|
+
} else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
3394
|
+
var a = this.parseTag(t, n);
|
|
3409
3395
|
if (a.err)
|
|
3410
3396
|
return a;
|
|
3411
3397
|
i.push(a.val);
|
|
3412
3398
|
} else {
|
|
3413
|
-
var a = this.parseLiteral(t,
|
|
3399
|
+
var a = this.parseLiteral(t, n);
|
|
3414
3400
|
if (a.err)
|
|
3415
3401
|
return a;
|
|
3416
3402
|
i.push(a.val);
|
|
@@ -3418,8 +3404,8 @@ var Ci = (
|
|
|
3418
3404
|
}
|
|
3419
3405
|
}
|
|
3420
3406
|
return { val: i, err: null };
|
|
3421
|
-
}, e.prototype.parseTag = function(t,
|
|
3422
|
-
var
|
|
3407
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
3408
|
+
var r = this.clonePosition();
|
|
3423
3409
|
this.bump();
|
|
3424
3410
|
var i = this.parseTagName();
|
|
3425
3411
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3427,17 +3413,17 @@ var Ci = (
|
|
|
3427
3413
|
val: {
|
|
3428
3414
|
type: E.literal,
|
|
3429
3415
|
value: "<".concat(i, "/>"),
|
|
3430
|
-
location: y(
|
|
3416
|
+
location: y(r, this.clonePosition())
|
|
3431
3417
|
},
|
|
3432
3418
|
err: null
|
|
3433
3419
|
};
|
|
3434
3420
|
if (this.bumpIf(">")) {
|
|
3435
|
-
var o = this.parseMessage(t + 1,
|
|
3421
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
3436
3422
|
if (o.err)
|
|
3437
3423
|
return o;
|
|
3438
3424
|
var a = o.val, s = this.clonePosition();
|
|
3439
3425
|
if (this.bumpIf("</")) {
|
|
3440
|
-
if (this.isEOF() || !
|
|
3426
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
3441
3427
|
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
3442
3428
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3443
3429
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3445,27 +3431,27 @@ var Ci = (
|
|
|
3445
3431
|
type: E.tag,
|
|
3446
3432
|
value: i,
|
|
3447
3433
|
children: a,
|
|
3448
|
-
location: y(
|
|
3434
|
+
location: y(r, this.clonePosition())
|
|
3449
3435
|
},
|
|
3450
3436
|
err: null
|
|
3451
3437
|
} : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
|
|
3452
3438
|
} else
|
|
3453
|
-
return this.error(b.UNCLOSED_TAG, y(
|
|
3439
|
+
return this.error(b.UNCLOSED_TAG, y(r, this.clonePosition()));
|
|
3454
3440
|
} else
|
|
3455
|
-
return this.error(b.INVALID_TAG, y(
|
|
3441
|
+
return this.error(b.INVALID_TAG, y(r, this.clonePosition()));
|
|
3456
3442
|
}, e.prototype.parseTagName = function() {
|
|
3457
3443
|
var t = this.offset();
|
|
3458
|
-
for (this.bump(); !this.isEOF() &&
|
|
3444
|
+
for (this.bump(); !this.isEOF() && Ci(this.char()); )
|
|
3459
3445
|
this.bump();
|
|
3460
3446
|
return this.message.slice(t, this.offset());
|
|
3461
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3462
|
-
for (var
|
|
3463
|
-
var o = this.tryParseQuote(
|
|
3447
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
3448
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
3449
|
+
var o = this.tryParseQuote(n);
|
|
3464
3450
|
if (o) {
|
|
3465
3451
|
i += o;
|
|
3466
3452
|
continue;
|
|
3467
3453
|
}
|
|
3468
|
-
var a = this.tryParseUnquoted(t,
|
|
3454
|
+
var a = this.tryParseUnquoted(t, n);
|
|
3469
3455
|
if (a) {
|
|
3470
3456
|
i += a;
|
|
3471
3457
|
continue;
|
|
@@ -3477,14 +3463,14 @@ var Ci = (
|
|
|
3477
3463
|
}
|
|
3478
3464
|
break;
|
|
3479
3465
|
}
|
|
3480
|
-
var l = y(
|
|
3466
|
+
var l = y(r, this.clonePosition());
|
|
3481
3467
|
return {
|
|
3482
3468
|
val: { type: E.literal, value: i, location: l },
|
|
3483
3469
|
err: null
|
|
3484
3470
|
};
|
|
3485
3471
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3486
3472
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3487
|
-
!
|
|
3473
|
+
!Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3488
3474
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3489
3475
|
if (this.isEOF() || this.char() !== 39)
|
|
3490
3476
|
return null;
|
|
@@ -3504,37 +3490,37 @@ var Ci = (
|
|
|
3504
3490
|
return null;
|
|
3505
3491
|
}
|
|
3506
3492
|
this.bump();
|
|
3507
|
-
var
|
|
3493
|
+
var n = [this.char()];
|
|
3508
3494
|
for (this.bump(); !this.isEOF(); ) {
|
|
3509
|
-
var
|
|
3510
|
-
if (
|
|
3495
|
+
var r = this.char();
|
|
3496
|
+
if (r === 39)
|
|
3511
3497
|
if (this.peek() === 39)
|
|
3512
|
-
|
|
3498
|
+
n.push(39), this.bump();
|
|
3513
3499
|
else {
|
|
3514
3500
|
this.bump();
|
|
3515
3501
|
break;
|
|
3516
3502
|
}
|
|
3517
3503
|
else
|
|
3518
|
-
|
|
3504
|
+
n.push(r);
|
|
3519
3505
|
this.bump();
|
|
3520
3506
|
}
|
|
3521
|
-
return
|
|
3522
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3507
|
+
return Je.apply(void 0, n);
|
|
3508
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3523
3509
|
if (this.isEOF())
|
|
3524
3510
|
return null;
|
|
3525
|
-
var
|
|
3526
|
-
return
|
|
3527
|
-
}, e.prototype.parseArgument = function(t,
|
|
3528
|
-
var
|
|
3511
|
+
var r = this.char();
|
|
3512
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Je(r));
|
|
3513
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3514
|
+
var r = this.clonePosition();
|
|
3529
3515
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3530
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(
|
|
3516
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(r, this.clonePosition()));
|
|
3531
3517
|
if (this.char() === 125)
|
|
3532
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(
|
|
3518
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(r, this.clonePosition()));
|
|
3533
3519
|
var i = this.parseIdentifierIfPossible().value;
|
|
3534
3520
|
if (!i)
|
|
3535
|
-
return this.error(b.MALFORMED_ARGUMENT, y(
|
|
3521
|
+
return this.error(b.MALFORMED_ARGUMENT, y(r, this.clonePosition()));
|
|
3536
3522
|
if (this.bumpSpace(), this.isEOF())
|
|
3537
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(
|
|
3523
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(r, this.clonePosition()));
|
|
3538
3524
|
switch (this.char()) {
|
|
3539
3525
|
case 125:
|
|
3540
3526
|
return this.bump(), {
|
|
@@ -3542,21 +3528,21 @@ var Ci = (
|
|
|
3542
3528
|
type: E.argument,
|
|
3543
3529
|
// value does not include the opening and closing braces.
|
|
3544
3530
|
value: i,
|
|
3545
|
-
location: y(
|
|
3531
|
+
location: y(r, this.clonePosition())
|
|
3546
3532
|
},
|
|
3547
3533
|
err: null
|
|
3548
3534
|
};
|
|
3549
3535
|
case 44:
|
|
3550
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(
|
|
3536
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3551
3537
|
default:
|
|
3552
|
-
return this.error(b.MALFORMED_ARGUMENT, y(
|
|
3538
|
+
return this.error(b.MALFORMED_ARGUMENT, y(r, this.clonePosition()));
|
|
3553
3539
|
}
|
|
3554
3540
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3555
|
-
var t = this.clonePosition(),
|
|
3541
|
+
var t = this.clonePosition(), n = this.offset(), r = qe(this.message, n), i = n + r.length;
|
|
3556
3542
|
this.bumpTo(i);
|
|
3557
3543
|
var o = this.clonePosition(), a = y(t, o);
|
|
3558
|
-
return { value:
|
|
3559
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3544
|
+
return { value: r, location: a };
|
|
3545
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3560
3546
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3561
3547
|
switch (s) {
|
|
3562
3548
|
case "":
|
|
@@ -3568,40 +3554,40 @@ var Ci = (
|
|
|
3568
3554
|
var u = null;
|
|
3569
3555
|
if (this.bumpIf(",")) {
|
|
3570
3556
|
this.bumpSpace();
|
|
3571
|
-
var h = this.clonePosition(),
|
|
3572
|
-
if (
|
|
3573
|
-
return
|
|
3574
|
-
var
|
|
3575
|
-
if (
|
|
3557
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3558
|
+
if (f.err)
|
|
3559
|
+
return f;
|
|
3560
|
+
var c = Si(f.val);
|
|
3561
|
+
if (c.length === 0)
|
|
3576
3562
|
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3577
|
-
var
|
|
3578
|
-
u = { style:
|
|
3563
|
+
var d = y(h, this.clonePosition());
|
|
3564
|
+
u = { style: c, styleLocation: d };
|
|
3579
3565
|
}
|
|
3580
3566
|
var m = this.tryParseArgumentClose(i);
|
|
3581
3567
|
if (m.err)
|
|
3582
3568
|
return m;
|
|
3583
|
-
var
|
|
3584
|
-
if (u &&
|
|
3585
|
-
var v =
|
|
3569
|
+
var p = y(i, this.clonePosition());
|
|
3570
|
+
if (u && At(u == null ? void 0 : u.style, "::", 0)) {
|
|
3571
|
+
var v = wi(u.style.slice(2));
|
|
3586
3572
|
if (s === "number") {
|
|
3587
|
-
var
|
|
3588
|
-
return
|
|
3589
|
-
val: { type: E.number, value:
|
|
3573
|
+
var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3574
|
+
return f.err ? f : {
|
|
3575
|
+
val: { type: E.number, value: r, location: p, style: f.val },
|
|
3590
3576
|
err: null
|
|
3591
3577
|
};
|
|
3592
3578
|
} else {
|
|
3593
3579
|
if (v.length === 0)
|
|
3594
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3580
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3595
3581
|
var T = v;
|
|
3596
|
-
this.locale && (T =
|
|
3597
|
-
var
|
|
3582
|
+
this.locale && (T = hi(v, this.locale));
|
|
3583
|
+
var c = {
|
|
3598
3584
|
type: J.dateTime,
|
|
3599
3585
|
pattern: T,
|
|
3600
3586
|
location: u.styleLocation,
|
|
3601
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3587
|
+
parsedOptions: this.shouldParseSkeletons ? ri(T) : {}
|
|
3602
3588
|
}, C = s === "date" ? E.date : E.time;
|
|
3603
3589
|
return {
|
|
3604
|
-
val: { type: C, value:
|
|
3590
|
+
val: { type: C, value: r, location: p, style: c },
|
|
3605
3591
|
err: null
|
|
3606
3592
|
};
|
|
3607
3593
|
}
|
|
@@ -3609,8 +3595,8 @@ var Ci = (
|
|
|
3609
3595
|
return {
|
|
3610
3596
|
val: {
|
|
3611
3597
|
type: s === "number" ? E.number : s === "date" ? E.date : E.time,
|
|
3612
|
-
value:
|
|
3613
|
-
location:
|
|
3598
|
+
value: r,
|
|
3599
|
+
location: p,
|
|
3614
3600
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3615
3601
|
},
|
|
3616
3602
|
err: null
|
|
@@ -3619,23 +3605,23 @@ var Ci = (
|
|
|
3619
3605
|
case "plural":
|
|
3620
3606
|
case "selectordinal":
|
|
3621
3607
|
case "select": {
|
|
3622
|
-
var
|
|
3608
|
+
var w = this.clonePosition();
|
|
3623
3609
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3624
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(
|
|
3610
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, x({}, w)));
|
|
3625
3611
|
this.bumpSpace();
|
|
3626
|
-
var B = this.parseIdentifierIfPossible(),
|
|
3612
|
+
var B = this.parseIdentifierIfPossible(), S = 0;
|
|
3627
3613
|
if (s !== "select" && B.value === "offset") {
|
|
3628
3614
|
if (!this.bumpIf(":"))
|
|
3629
3615
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3630
3616
|
this.bumpSpace();
|
|
3631
|
-
var
|
|
3632
|
-
if (
|
|
3633
|
-
return
|
|
3634
|
-
this.bumpSpace(), B = this.parseIdentifierIfPossible(),
|
|
3617
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3618
|
+
if (f.err)
|
|
3619
|
+
return f;
|
|
3620
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), S = f.val;
|
|
3635
3621
|
}
|
|
3636
|
-
var
|
|
3637
|
-
if (
|
|
3638
|
-
return
|
|
3622
|
+
var _ = this.tryParsePluralOrSelectOptions(t, s, n, B);
|
|
3623
|
+
if (_.err)
|
|
3624
|
+
return _;
|
|
3639
3625
|
var m = this.tryParseArgumentClose(i);
|
|
3640
3626
|
if (m.err)
|
|
3641
3627
|
return m;
|
|
@@ -3643,17 +3629,17 @@ var Ci = (
|
|
|
3643
3629
|
return s === "select" ? {
|
|
3644
3630
|
val: {
|
|
3645
3631
|
type: E.select,
|
|
3646
|
-
value:
|
|
3647
|
-
options:
|
|
3632
|
+
value: r,
|
|
3633
|
+
options: Pt(_.val),
|
|
3648
3634
|
location: L
|
|
3649
3635
|
},
|
|
3650
3636
|
err: null
|
|
3651
3637
|
} : {
|
|
3652
3638
|
val: {
|
|
3653
3639
|
type: E.plural,
|
|
3654
|
-
value:
|
|
3655
|
-
options:
|
|
3656
|
-
offset:
|
|
3640
|
+
value: r,
|
|
3641
|
+
options: Pt(_.val),
|
|
3642
|
+
offset: S,
|
|
3657
3643
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3658
3644
|
location: L
|
|
3659
3645
|
},
|
|
@@ -3666,9 +3652,9 @@ var Ci = (
|
|
|
3666
3652
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3667
3653
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3668
3654
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3669
|
-
for (var t = 0,
|
|
3670
|
-
var
|
|
3671
|
-
switch (
|
|
3655
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3656
|
+
var r = this.char();
|
|
3657
|
+
switch (r) {
|
|
3672
3658
|
case 39: {
|
|
3673
3659
|
this.bump();
|
|
3674
3660
|
var i = this.clonePosition();
|
|
@@ -3686,7 +3672,7 @@ var Ci = (
|
|
|
3686
3672
|
t -= 1;
|
|
3687
3673
|
else
|
|
3688
3674
|
return {
|
|
3689
|
-
val: this.message.slice(
|
|
3675
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3690
3676
|
err: null
|
|
3691
3677
|
};
|
|
3692
3678
|
break;
|
|
@@ -3697,61 +3683,61 @@ var Ci = (
|
|
|
3697
3683
|
}
|
|
3698
3684
|
}
|
|
3699
3685
|
return {
|
|
3700
|
-
val: this.message.slice(
|
|
3686
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3701
3687
|
err: null
|
|
3702
3688
|
};
|
|
3703
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3704
|
-
var
|
|
3689
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3690
|
+
var r = [];
|
|
3705
3691
|
try {
|
|
3706
|
-
|
|
3692
|
+
r = oi(t);
|
|
3707
3693
|
} catch (i) {
|
|
3708
|
-
return this.error(b.INVALID_NUMBER_SKELETON,
|
|
3694
|
+
return this.error(b.INVALID_NUMBER_SKELETON, n);
|
|
3709
3695
|
}
|
|
3710
3696
|
return {
|
|
3711
3697
|
val: {
|
|
3712
3698
|
type: J.number,
|
|
3713
|
-
tokens:
|
|
3714
|
-
location:
|
|
3715
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3699
|
+
tokens: r,
|
|
3700
|
+
location: n,
|
|
3701
|
+
parsedOptions: this.shouldParseSkeletons ? li(r) : {}
|
|
3716
3702
|
},
|
|
3717
3703
|
err: null
|
|
3718
3704
|
};
|
|
3719
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3705
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3720
3706
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3721
3707
|
if (u.length === 0) {
|
|
3722
|
-
var
|
|
3723
|
-
if (
|
|
3724
|
-
var
|
|
3725
|
-
if (
|
|
3726
|
-
return
|
|
3727
|
-
h = y(
|
|
3708
|
+
var f = this.clonePosition();
|
|
3709
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3710
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3711
|
+
if (c.err)
|
|
3712
|
+
return c;
|
|
3713
|
+
h = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3728
3714
|
} else
|
|
3729
3715
|
break;
|
|
3730
3716
|
}
|
|
3731
3717
|
if (l.has(u))
|
|
3732
|
-
return this.error(
|
|
3718
|
+
return this.error(n === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3733
3719
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3734
|
-
var
|
|
3720
|
+
var d = this.clonePosition();
|
|
3735
3721
|
if (!this.bumpIf("{"))
|
|
3736
|
-
return this.error(
|
|
3737
|
-
var m = this.parseMessage(t + 1,
|
|
3722
|
+
return this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3723
|
+
var m = this.parseMessage(t + 1, n, r);
|
|
3738
3724
|
if (m.err)
|
|
3739
3725
|
return m;
|
|
3740
|
-
var
|
|
3741
|
-
if (
|
|
3742
|
-
return
|
|
3726
|
+
var p = this.tryParseArgumentClose(d);
|
|
3727
|
+
if (p.err)
|
|
3728
|
+
return p;
|
|
3743
3729
|
s.push([
|
|
3744
3730
|
u,
|
|
3745
3731
|
{
|
|
3746
3732
|
value: m.val,
|
|
3747
|
-
location: y(
|
|
3733
|
+
location: y(d, this.clonePosition())
|
|
3748
3734
|
}
|
|
3749
3735
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3750
3736
|
}
|
|
3751
|
-
return s.length === 0 ? this.error(
|
|
3752
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3753
|
-
var
|
|
3754
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3737
|
+
return s.length === 0 ? this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3738
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3739
|
+
var r = 1, i = this.clonePosition();
|
|
3740
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3755
3741
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3756
3742
|
var s = this.char();
|
|
3757
3743
|
if (s >= 48 && s <= 57)
|
|
@@ -3760,7 +3746,7 @@ var Ci = (
|
|
|
3760
3746
|
break;
|
|
3761
3747
|
}
|
|
3762
3748
|
var l = y(i, this.clonePosition());
|
|
3763
|
-
return o ? (a *=
|
|
3749
|
+
return o ? (a *= r, _i(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3764
3750
|
}, e.prototype.offset = function() {
|
|
3765
3751
|
return this.position.offset;
|
|
3766
3752
|
}, e.prototype.isEOF = function() {
|
|
@@ -3775,17 +3761,17 @@ var Ci = (
|
|
|
3775
3761
|
var t = this.position.offset;
|
|
3776
3762
|
if (t >= this.message.length)
|
|
3777
3763
|
throw Error("out of bound");
|
|
3778
|
-
var
|
|
3779
|
-
if (
|
|
3764
|
+
var n = bn(this.message, t);
|
|
3765
|
+
if (n === void 0)
|
|
3780
3766
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3781
|
-
return
|
|
3782
|
-
}, e.prototype.error = function(t,
|
|
3767
|
+
return n;
|
|
3768
|
+
}, e.prototype.error = function(t, n) {
|
|
3783
3769
|
return {
|
|
3784
3770
|
val: null,
|
|
3785
3771
|
err: {
|
|
3786
3772
|
kind: t,
|
|
3787
3773
|
message: this.message,
|
|
3788
|
-
location:
|
|
3774
|
+
location: n
|
|
3789
3775
|
}
|
|
3790
3776
|
};
|
|
3791
3777
|
}, e.prototype.bump = function() {
|
|
@@ -3794,70 +3780,70 @@ var Ci = (
|
|
|
3794
3780
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3795
3781
|
}
|
|
3796
3782
|
}, e.prototype.bumpIf = function(t) {
|
|
3797
|
-
if (
|
|
3798
|
-
for (var
|
|
3783
|
+
if (At(this.message, t, this.offset())) {
|
|
3784
|
+
for (var n = 0; n < t.length; n++)
|
|
3799
3785
|
this.bump();
|
|
3800
3786
|
return !0;
|
|
3801
3787
|
}
|
|
3802
3788
|
return !1;
|
|
3803
3789
|
}, e.prototype.bumpUntil = function(t) {
|
|
3804
|
-
var
|
|
3805
|
-
return
|
|
3790
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3791
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3806
3792
|
}, e.prototype.bumpTo = function(t) {
|
|
3807
3793
|
if (this.offset() > t)
|
|
3808
3794
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3809
3795
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3810
|
-
var
|
|
3811
|
-
if (
|
|
3796
|
+
var n = this.offset();
|
|
3797
|
+
if (n === t)
|
|
3812
3798
|
break;
|
|
3813
|
-
if (
|
|
3799
|
+
if (n > t)
|
|
3814
3800
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3815
3801
|
if (this.bump(), this.isEOF())
|
|
3816
3802
|
break;
|
|
3817
3803
|
}
|
|
3818
3804
|
}, e.prototype.bumpSpace = function() {
|
|
3819
|
-
for (; !this.isEOF() &&
|
|
3805
|
+
for (; !this.isEOF() && yn(this.char()); )
|
|
3820
3806
|
this.bump();
|
|
3821
3807
|
}, e.prototype.peek = function() {
|
|
3822
3808
|
if (this.isEOF())
|
|
3823
3809
|
return null;
|
|
3824
|
-
var t = this.char(),
|
|
3825
|
-
return
|
|
3810
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3811
|
+
return r != null ? r : null;
|
|
3826
3812
|
}, e;
|
|
3827
3813
|
}()
|
|
3828
3814
|
);
|
|
3829
|
-
function
|
|
3815
|
+
function Ye(e) {
|
|
3830
3816
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3831
3817
|
}
|
|
3832
|
-
function
|
|
3833
|
-
return
|
|
3818
|
+
function Hi(e) {
|
|
3819
|
+
return Ye(e) || e === 47;
|
|
3834
3820
|
}
|
|
3835
|
-
function
|
|
3821
|
+
function Ci(e) {
|
|
3836
3822
|
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;
|
|
3837
3823
|
}
|
|
3838
|
-
function
|
|
3824
|
+
function yn(e) {
|
|
3839
3825
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3840
3826
|
}
|
|
3841
|
-
function
|
|
3827
|
+
function Bi(e) {
|
|
3842
3828
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3843
3829
|
}
|
|
3844
|
-
function
|
|
3830
|
+
function Ke(e) {
|
|
3845
3831
|
e.forEach(function(t) {
|
|
3846
|
-
if (delete t.location,
|
|
3847
|
-
for (var
|
|
3848
|
-
delete t.options[
|
|
3832
|
+
if (delete t.location, un(t) || ln(t))
|
|
3833
|
+
for (var n in t.options)
|
|
3834
|
+
delete t.options[n].location, Ke(t.options[n].value);
|
|
3849
3835
|
else
|
|
3850
|
-
|
|
3836
|
+
on(t) && fn(t.style) || (sn(t) || an(t)) && Ze(t.style) ? delete t.style.location : hn(t) && Ke(t.children);
|
|
3851
3837
|
});
|
|
3852
3838
|
}
|
|
3853
|
-
function
|
|
3854
|
-
t === void 0 && (t = {}), t =
|
|
3855
|
-
var
|
|
3856
|
-
if (
|
|
3857
|
-
var
|
|
3858
|
-
throw
|
|
3839
|
+
function Ai(e, t) {
|
|
3840
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3841
|
+
var n = new Ti(e, t).parse();
|
|
3842
|
+
if (n.err) {
|
|
3843
|
+
var r = SyntaxError(b[n.err.kind]);
|
|
3844
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3859
3845
|
}
|
|
3860
|
-
return t != null && t.captureLocation ||
|
|
3846
|
+
return t != null && t.captureLocation || Ke(n.val), n.val;
|
|
3861
3847
|
}
|
|
3862
3848
|
var q;
|
|
3863
3849
|
(function(e) {
|
|
@@ -3867,38 +3853,38 @@ var He = (
|
|
|
3867
3853
|
/** @class */
|
|
3868
3854
|
function(e) {
|
|
3869
3855
|
G(t, e);
|
|
3870
|
-
function t(
|
|
3871
|
-
var o = e.call(this,
|
|
3872
|
-
return o.code =
|
|
3856
|
+
function t(n, r, i) {
|
|
3857
|
+
var o = e.call(this, n) || this;
|
|
3858
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3873
3859
|
}
|
|
3874
3860
|
return t.prototype.toString = function() {
|
|
3875
3861
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3876
3862
|
}, t;
|
|
3877
3863
|
}(Error)
|
|
3878
|
-
),
|
|
3864
|
+
), Ot = (
|
|
3879
3865
|
/** @class */
|
|
3880
3866
|
function(e) {
|
|
3881
3867
|
G(t, e);
|
|
3882
|
-
function t(
|
|
3883
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3868
|
+
function t(n, r, i, o) {
|
|
3869
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3884
3870
|
}
|
|
3885
3871
|
return t;
|
|
3886
3872
|
}(He)
|
|
3887
|
-
),
|
|
3873
|
+
), Pi = (
|
|
3888
3874
|
/** @class */
|
|
3889
3875
|
function(e) {
|
|
3890
3876
|
G(t, e);
|
|
3891
|
-
function t(
|
|
3892
|
-
return e.call(this, 'Value for "'.concat(
|
|
3877
|
+
function t(n, r, i) {
|
|
3878
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), q.INVALID_VALUE, i) || this;
|
|
3893
3879
|
}
|
|
3894
3880
|
return t;
|
|
3895
3881
|
}(He)
|
|
3896
|
-
),
|
|
3882
|
+
), Li = (
|
|
3897
3883
|
/** @class */
|
|
3898
3884
|
function(e) {
|
|
3899
3885
|
G(t, e);
|
|
3900
|
-
function t(
|
|
3901
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3886
|
+
function t(n, r) {
|
|
3887
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), q.MISSING_VALUE, r) || this;
|
|
3902
3888
|
}
|
|
3903
3889
|
return t;
|
|
3904
3890
|
}(He)
|
|
@@ -3906,17 +3892,17 @@ var He = (
|
|
|
3906
3892
|
(function(e) {
|
|
3907
3893
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3908
3894
|
})(A || (A = {}));
|
|
3909
|
-
function
|
|
3910
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3911
|
-
var
|
|
3912
|
-
return !
|
|
3895
|
+
function Oi(e) {
|
|
3896
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3897
|
+
var r = t[t.length - 1];
|
|
3898
|
+
return !r || r.type !== A.literal || n.type !== A.literal ? t.push(n) : r.value += n.value, t;
|
|
3913
3899
|
}, []);
|
|
3914
3900
|
}
|
|
3915
|
-
function
|
|
3901
|
+
function Ii(e) {
|
|
3916
3902
|
return typeof e == "function";
|
|
3917
3903
|
}
|
|
3918
|
-
function be(e, t,
|
|
3919
|
-
if (e.length === 1 &&
|
|
3904
|
+
function be(e, t, n, r, i, o, a) {
|
|
3905
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3920
3906
|
return [
|
|
3921
3907
|
{
|
|
3922
3908
|
type: A.literal,
|
|
@@ -3925,155 +3911,155 @@ function be(e, t, r, n, i, o, a) {
|
|
|
3925
3911
|
];
|
|
3926
3912
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3927
3913
|
var h = u[l];
|
|
3928
|
-
if (
|
|
3914
|
+
if (Tt(h)) {
|
|
3929
3915
|
s.push({
|
|
3930
3916
|
type: A.literal,
|
|
3931
3917
|
value: h.value
|
|
3932
3918
|
});
|
|
3933
3919
|
continue;
|
|
3934
3920
|
}
|
|
3935
|
-
if (
|
|
3921
|
+
if (ti(h)) {
|
|
3936
3922
|
typeof o == "number" && s.push({
|
|
3937
3923
|
type: A.literal,
|
|
3938
|
-
value:
|
|
3924
|
+
value: n.getNumberFormat(t).format(o)
|
|
3939
3925
|
});
|
|
3940
3926
|
continue;
|
|
3941
3927
|
}
|
|
3942
|
-
var
|
|
3943
|
-
if (!(i &&
|
|
3944
|
-
throw new
|
|
3945
|
-
var
|
|
3946
|
-
if (
|
|
3947
|
-
(!
|
|
3948
|
-
type: typeof
|
|
3949
|
-
value:
|
|
3928
|
+
var f = h.value;
|
|
3929
|
+
if (!(i && f in i))
|
|
3930
|
+
throw new Li(f, a);
|
|
3931
|
+
var c = i[f];
|
|
3932
|
+
if (ei(h)) {
|
|
3933
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3934
|
+
type: typeof c == "string" ? A.literal : A.object,
|
|
3935
|
+
value: c
|
|
3950
3936
|
});
|
|
3951
3937
|
continue;
|
|
3952
3938
|
}
|
|
3953
|
-
if (
|
|
3954
|
-
var
|
|
3939
|
+
if (sn(h)) {
|
|
3940
|
+
var d = typeof h.style == "string" ? r.date[h.style] : Ze(h.style) ? h.style.parsedOptions : void 0;
|
|
3955
3941
|
s.push({
|
|
3956
3942
|
type: A.literal,
|
|
3957
|
-
value:
|
|
3943
|
+
value: n.getDateTimeFormat(t, d).format(c)
|
|
3958
3944
|
});
|
|
3959
3945
|
continue;
|
|
3960
3946
|
}
|
|
3961
|
-
if (
|
|
3962
|
-
var
|
|
3947
|
+
if (an(h)) {
|
|
3948
|
+
var d = typeof h.style == "string" ? r.time[h.style] : Ze(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3963
3949
|
s.push({
|
|
3964
3950
|
type: A.literal,
|
|
3965
|
-
value:
|
|
3951
|
+
value: n.getDateTimeFormat(t, d).format(c)
|
|
3966
3952
|
});
|
|
3967
3953
|
continue;
|
|
3968
3954
|
}
|
|
3969
|
-
if (
|
|
3970
|
-
var
|
|
3971
|
-
|
|
3955
|
+
if (on(h)) {
|
|
3956
|
+
var d = typeof h.style == "string" ? r.number[h.style] : fn(h.style) ? h.style.parsedOptions : void 0;
|
|
3957
|
+
d && d.scale && (c = c * (d.scale || 1)), s.push({
|
|
3972
3958
|
type: A.literal,
|
|
3973
|
-
value:
|
|
3959
|
+
value: n.getNumberFormat(t, d).format(c)
|
|
3974
3960
|
});
|
|
3975
3961
|
continue;
|
|
3976
3962
|
}
|
|
3977
|
-
if (
|
|
3978
|
-
var m = h.children,
|
|
3979
|
-
if (!
|
|
3980
|
-
throw new
|
|
3981
|
-
var T = be(m, t,
|
|
3982
|
-
return
|
|
3963
|
+
if (hn(h)) {
|
|
3964
|
+
var m = h.children, p = h.value, v = i[p];
|
|
3965
|
+
if (!Ii(v))
|
|
3966
|
+
throw new Pi(p, "function", a);
|
|
3967
|
+
var T = be(m, t, n, r, i, o), C = v(T.map(function(S) {
|
|
3968
|
+
return S.value;
|
|
3983
3969
|
}));
|
|
3984
|
-
Array.isArray(C) || (C = [C]), s.push.apply(s, C.map(function(
|
|
3970
|
+
Array.isArray(C) || (C = [C]), s.push.apply(s, C.map(function(S) {
|
|
3985
3971
|
return {
|
|
3986
|
-
type: typeof
|
|
3987
|
-
value:
|
|
3972
|
+
type: typeof S == "string" ? A.literal : A.object,
|
|
3973
|
+
value: S
|
|
3988
3974
|
};
|
|
3989
3975
|
}));
|
|
3990
3976
|
}
|
|
3991
|
-
if (
|
|
3992
|
-
var
|
|
3993
|
-
if (!
|
|
3994
|
-
throw new
|
|
3995
|
-
s.push.apply(s, be(
|
|
3977
|
+
if (un(h)) {
|
|
3978
|
+
var w = h.options[c] || h.options.other;
|
|
3979
|
+
if (!w)
|
|
3980
|
+
throw new Ot(h.value, c, Object.keys(h.options), a);
|
|
3981
|
+
s.push.apply(s, be(w.value, t, n, r, i));
|
|
3996
3982
|
continue;
|
|
3997
3983
|
}
|
|
3998
|
-
if (
|
|
3999
|
-
var
|
|
4000
|
-
if (!
|
|
3984
|
+
if (ln(h)) {
|
|
3985
|
+
var w = h.options["=".concat(c)];
|
|
3986
|
+
if (!w) {
|
|
4001
3987
|
if (!Intl.PluralRules)
|
|
4002
3988
|
throw new He(`Intl.PluralRules is not available in this environment.
|
|
4003
3989
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4004
3990
|
`, q.MISSING_INTL_API, a);
|
|
4005
|
-
var B =
|
|
4006
|
-
|
|
3991
|
+
var B = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3992
|
+
w = h.options[B] || h.options.other;
|
|
4007
3993
|
}
|
|
4008
|
-
if (!
|
|
4009
|
-
throw new
|
|
4010
|
-
s.push.apply(s, be(
|
|
3994
|
+
if (!w)
|
|
3995
|
+
throw new Ot(h.value, c, Object.keys(h.options), a);
|
|
3996
|
+
s.push.apply(s, be(w.value, t, n, r, i, c - (h.offset || 0)));
|
|
4011
3997
|
continue;
|
|
4012
3998
|
}
|
|
4013
3999
|
}
|
|
4014
|
-
return
|
|
4000
|
+
return Oi(s);
|
|
4015
4001
|
}
|
|
4016
|
-
function
|
|
4017
|
-
return t ?
|
|
4018
|
-
return r
|
|
4002
|
+
function Mi(e, t) {
|
|
4003
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
4004
|
+
return n[r] = x(x({}, e[r]), t[r] || {}), n;
|
|
4019
4005
|
}, {})) : e;
|
|
4020
4006
|
}
|
|
4021
|
-
function
|
|
4022
|
-
return t ? Object.keys(e).reduce(function(
|
|
4023
|
-
return r
|
|
4024
|
-
},
|
|
4007
|
+
function Ni(e, t) {
|
|
4008
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
4009
|
+
return n[r] = Mi(e[r], t[r]), n;
|
|
4010
|
+
}, x({}, e)) : e;
|
|
4025
4011
|
}
|
|
4026
|
-
function
|
|
4012
|
+
function Ue(e) {
|
|
4027
4013
|
return {
|
|
4028
4014
|
create: function() {
|
|
4029
4015
|
return {
|
|
4030
4016
|
get: function(t) {
|
|
4031
4017
|
return e[t];
|
|
4032
4018
|
},
|
|
4033
|
-
set: function(t,
|
|
4034
|
-
e[t] =
|
|
4019
|
+
set: function(t, n) {
|
|
4020
|
+
e[t] = n;
|
|
4035
4021
|
}
|
|
4036
4022
|
};
|
|
4037
4023
|
}
|
|
4038
4024
|
};
|
|
4039
4025
|
}
|
|
4040
|
-
function
|
|
4026
|
+
function $i(e) {
|
|
4041
4027
|
return e === void 0 && (e = {
|
|
4042
4028
|
number: {},
|
|
4043
4029
|
dateTime: {},
|
|
4044
4030
|
pluralRules: {}
|
|
4045
4031
|
}), {
|
|
4046
|
-
getNumberFormat:
|
|
4047
|
-
for (var t,
|
|
4048
|
-
r
|
|
4049
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0],
|
|
4032
|
+
getNumberFormat: $e(function() {
|
|
4033
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4034
|
+
n[r] = arguments[r];
|
|
4035
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], n, !1)))();
|
|
4050
4036
|
}, {
|
|
4051
|
-
cache:
|
|
4052
|
-
strategy:
|
|
4037
|
+
cache: Ue(e.number),
|
|
4038
|
+
strategy: Re.variadic
|
|
4053
4039
|
}),
|
|
4054
|
-
getDateTimeFormat:
|
|
4055
|
-
for (var t,
|
|
4056
|
-
r
|
|
4057
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0],
|
|
4040
|
+
getDateTimeFormat: $e(function() {
|
|
4041
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4042
|
+
n[r] = arguments[r];
|
|
4043
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], n, !1)))();
|
|
4058
4044
|
}, {
|
|
4059
|
-
cache:
|
|
4060
|
-
strategy:
|
|
4045
|
+
cache: Ue(e.dateTime),
|
|
4046
|
+
strategy: Re.variadic
|
|
4061
4047
|
}),
|
|
4062
|
-
getPluralRules:
|
|
4063
|
-
for (var t,
|
|
4064
|
-
r
|
|
4065
|
-
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0],
|
|
4048
|
+
getPluralRules: $e(function() {
|
|
4049
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4050
|
+
n[r] = arguments[r];
|
|
4051
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], n, !1)))();
|
|
4066
4052
|
}, {
|
|
4067
|
-
cache:
|
|
4068
|
-
strategy:
|
|
4053
|
+
cache: Ue(e.pluralRules),
|
|
4054
|
+
strategy: Re.variadic
|
|
4069
4055
|
})
|
|
4070
4056
|
};
|
|
4071
4057
|
}
|
|
4072
|
-
var
|
|
4058
|
+
var Ri = (
|
|
4073
4059
|
/** @class */
|
|
4074
4060
|
function() {
|
|
4075
|
-
function e(t,
|
|
4076
|
-
|
|
4061
|
+
function e(t, n, r, i) {
|
|
4062
|
+
n === void 0 && (n = e.defaultLocale);
|
|
4077
4063
|
var o = this;
|
|
4078
4064
|
if (this.formatterCache = {
|
|
4079
4065
|
number: {},
|
|
@@ -4083,8 +4069,8 @@ var Ui = (
|
|
|
4083
4069
|
var u = o.formatToParts(l);
|
|
4084
4070
|
if (u.length === 1)
|
|
4085
4071
|
return u[0].value;
|
|
4086
|
-
var h = u.reduce(function(
|
|
4087
|
-
return !
|
|
4072
|
+
var h = u.reduce(function(f, c) {
|
|
4073
|
+
return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4088
4074
|
}, []);
|
|
4089
4075
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4090
4076
|
}, this.formatToParts = function(l) {
|
|
@@ -4096,18 +4082,18 @@ var Ui = (
|
|
|
4096
4082
|
};
|
|
4097
4083
|
}, this.getAst = function() {
|
|
4098
4084
|
return o.ast;
|
|
4099
|
-
}, this.locales =
|
|
4085
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
4100
4086
|
if (this.message = t, !e.__parse)
|
|
4101
4087
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4102
4088
|
var a = i || {};
|
|
4103
4089
|
a.formatters;
|
|
4104
|
-
var s =
|
|
4105
|
-
this.ast = e.__parse(t,
|
|
4090
|
+
var s = pr(a, ["formatters"]);
|
|
4091
|
+
this.ast = e.__parse(t, x(x({}, s), { locale: this.resolvedLocale }));
|
|
4106
4092
|
} else
|
|
4107
4093
|
this.ast = t;
|
|
4108
4094
|
if (!Array.isArray(this.ast))
|
|
4109
4095
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4110
|
-
this.formats =
|
|
4096
|
+
this.formats = Ni(e.formats, r), this.formatters = i && i.formatters || $i(this.formatterCache);
|
|
4111
4097
|
}
|
|
4112
4098
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4113
4099
|
get: function() {
|
|
@@ -4117,10 +4103,10 @@ var Ui = (
|
|
|
4117
4103
|
configurable: !0
|
|
4118
4104
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4119
4105
|
if (typeof Intl.Locale != "undefined") {
|
|
4120
|
-
var
|
|
4121
|
-
return
|
|
4106
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4107
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4122
4108
|
}
|
|
4123
|
-
}, e.__parse =
|
|
4109
|
+
}, e.__parse = Ai, e.formats = {
|
|
4124
4110
|
number: {
|
|
4125
4111
|
integer: {
|
|
4126
4112
|
maximumFractionDigits: 0
|
|
@@ -4181,113 +4167,113 @@ var Ui = (
|
|
|
4181
4167
|
}, e;
|
|
4182
4168
|
}()
|
|
4183
4169
|
);
|
|
4184
|
-
function
|
|
4170
|
+
function Gi(e, t) {
|
|
4185
4171
|
if (t == null)
|
|
4186
4172
|
return;
|
|
4187
4173
|
if (t in e)
|
|
4188
4174
|
return e[t];
|
|
4189
|
-
const
|
|
4190
|
-
let
|
|
4191
|
-
for (let i = 0; i <
|
|
4192
|
-
if (typeof
|
|
4175
|
+
const n = t.split(".");
|
|
4176
|
+
let r = e;
|
|
4177
|
+
for (let i = 0; i < n.length; i++)
|
|
4178
|
+
if (typeof r == "object") {
|
|
4193
4179
|
if (i > 0) {
|
|
4194
|
-
const o =
|
|
4195
|
-
if (o in
|
|
4196
|
-
|
|
4180
|
+
const o = n.slice(i, n.length).join(".");
|
|
4181
|
+
if (o in r) {
|
|
4182
|
+
r = r[o];
|
|
4197
4183
|
break;
|
|
4198
4184
|
}
|
|
4199
4185
|
}
|
|
4200
|
-
|
|
4186
|
+
r = r[n[i]];
|
|
4201
4187
|
} else
|
|
4202
|
-
|
|
4203
|
-
return
|
|
4188
|
+
r = void 0;
|
|
4189
|
+
return r;
|
|
4204
4190
|
}
|
|
4205
|
-
const U = {},
|
|
4191
|
+
const U = {}, Ui = (e, t, n) => n && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = n), n), vn = (e, t) => {
|
|
4206
4192
|
if (t == null)
|
|
4207
4193
|
return;
|
|
4208
4194
|
if (t in U && e in U[t])
|
|
4209
4195
|
return U[t][e];
|
|
4210
|
-
const
|
|
4211
|
-
for (let
|
|
4212
|
-
const i = r
|
|
4196
|
+
const n = Ce(t);
|
|
4197
|
+
for (let r = 0; r < n.length; r++) {
|
|
4198
|
+
const i = n[r], o = Fi(i, e);
|
|
4213
4199
|
if (o)
|
|
4214
|
-
return
|
|
4200
|
+
return Ui(e, t, o);
|
|
4215
4201
|
}
|
|
4216
4202
|
};
|
|
4217
|
-
let
|
|
4203
|
+
let st;
|
|
4218
4204
|
const he = Te({});
|
|
4219
|
-
function
|
|
4220
|
-
return
|
|
4205
|
+
function Di(e) {
|
|
4206
|
+
return st[e] || null;
|
|
4221
4207
|
}
|
|
4222
|
-
function
|
|
4223
|
-
return e in
|
|
4208
|
+
function xn(e) {
|
|
4209
|
+
return e in st;
|
|
4224
4210
|
}
|
|
4225
|
-
function
|
|
4226
|
-
if (!
|
|
4211
|
+
function Fi(e, t) {
|
|
4212
|
+
if (!xn(e))
|
|
4227
4213
|
return null;
|
|
4228
|
-
const
|
|
4229
|
-
return
|
|
4214
|
+
const n = Di(e);
|
|
4215
|
+
return Gi(n, t);
|
|
4230
4216
|
}
|
|
4231
|
-
function
|
|
4217
|
+
function ji(e) {
|
|
4232
4218
|
if (e == null)
|
|
4233
4219
|
return;
|
|
4234
4220
|
const t = Ce(e);
|
|
4235
|
-
for (let
|
|
4236
|
-
const
|
|
4237
|
-
if (
|
|
4238
|
-
return
|
|
4221
|
+
for (let n = 0; n < t.length; n++) {
|
|
4222
|
+
const r = t[n];
|
|
4223
|
+
if (xn(r))
|
|
4224
|
+
return r;
|
|
4239
4225
|
}
|
|
4240
4226
|
}
|
|
4241
|
-
function
|
|
4242
|
-
delete U[e], he.update((
|
|
4227
|
+
function _n(e, ...t) {
|
|
4228
|
+
delete U[e], he.update((n) => (n[e] = zr.all([n[e] || {}, ...t]), n));
|
|
4243
4229
|
}
|
|
4244
4230
|
K(
|
|
4245
4231
|
[he],
|
|
4246
4232
|
([e]) => Object.keys(e)
|
|
4247
4233
|
);
|
|
4248
|
-
he.subscribe((e) =>
|
|
4234
|
+
he.subscribe((e) => st = e);
|
|
4249
4235
|
const ge = {};
|
|
4250
|
-
function
|
|
4236
|
+
function ki(e, t) {
|
|
4251
4237
|
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
4252
4238
|
}
|
|
4253
|
-
function
|
|
4239
|
+
function En(e) {
|
|
4254
4240
|
return ge[e];
|
|
4255
4241
|
}
|
|
4256
|
-
function
|
|
4242
|
+
function Vi(e) {
|
|
4257
4243
|
return Ce(e).map((t) => {
|
|
4258
|
-
const
|
|
4259
|
-
return [t,
|
|
4244
|
+
const n = En(t);
|
|
4245
|
+
return [t, n ? [...n] : []];
|
|
4260
4246
|
}).filter(([, t]) => t.length > 0);
|
|
4261
4247
|
}
|
|
4262
|
-
function
|
|
4248
|
+
function et(e) {
|
|
4263
4249
|
return e == null ? !1 : Ce(e).some(
|
|
4264
4250
|
(t) => {
|
|
4265
|
-
var
|
|
4266
|
-
return (
|
|
4251
|
+
var n;
|
|
4252
|
+
return (n = En(t)) == null ? void 0 : n.size;
|
|
4267
4253
|
}
|
|
4268
4254
|
);
|
|
4269
4255
|
}
|
|
4270
|
-
function
|
|
4256
|
+
function Xi(e, t) {
|
|
4271
4257
|
return Promise.all(
|
|
4272
|
-
t.map((
|
|
4273
|
-
).then((
|
|
4258
|
+
t.map((r) => (ki(e, r), r().then((i) => i.default || i)))
|
|
4259
|
+
).then((r) => _n(e, ...r));
|
|
4274
4260
|
}
|
|
4275
|
-
const
|
|
4276
|
-
function
|
|
4277
|
-
if (!
|
|
4278
|
-
return e in
|
|
4279
|
-
const t =
|
|
4280
|
-
return
|
|
4261
|
+
const re = {};
|
|
4262
|
+
function wn(e) {
|
|
4263
|
+
if (!et(e))
|
|
4264
|
+
return e in re ? re[e] : Promise.resolve();
|
|
4265
|
+
const t = Vi(e);
|
|
4266
|
+
return re[e] = Promise.all(
|
|
4281
4267
|
t.map(
|
|
4282
|
-
([
|
|
4268
|
+
([n, r]) => Xi(n, r)
|
|
4283
4269
|
)
|
|
4284
4270
|
).then(() => {
|
|
4285
|
-
if (
|
|
4286
|
-
return
|
|
4287
|
-
delete
|
|
4288
|
-
}),
|
|
4271
|
+
if (et(e))
|
|
4272
|
+
return wn(e);
|
|
4273
|
+
delete re[e];
|
|
4274
|
+
}), re[e];
|
|
4289
4275
|
}
|
|
4290
|
-
const
|
|
4276
|
+
const zi = {
|
|
4291
4277
|
number: {
|
|
4292
4278
|
scientific: { notation: "scientific" },
|
|
4293
4279
|
engineering: { notation: "engineering" },
|
|
@@ -4316,136 +4302,136 @@ const Zi = {
|
|
|
4316
4302
|
timeZoneName: "short"
|
|
4317
4303
|
}
|
|
4318
4304
|
}
|
|
4319
|
-
},
|
|
4305
|
+
}, Wi = {
|
|
4320
4306
|
fallbackLocale: null,
|
|
4321
4307
|
loadingDelay: 200,
|
|
4322
|
-
formats:
|
|
4308
|
+
formats: zi,
|
|
4323
4309
|
warnOnMissingMessages: !0,
|
|
4324
4310
|
handleMissingMessage: void 0,
|
|
4325
4311
|
ignoreTag: !0
|
|
4326
|
-
},
|
|
4312
|
+
}, Zi = Wi;
|
|
4327
4313
|
function Y() {
|
|
4328
|
-
return
|
|
4329
|
-
}
|
|
4330
|
-
const
|
|
4331
|
-
var
|
|
4332
|
-
for (var
|
|
4333
|
-
|
|
4334
|
-
if (
|
|
4335
|
-
for (var
|
|
4336
|
-
|
|
4314
|
+
return Zi;
|
|
4315
|
+
}
|
|
4316
|
+
const De = Te(!1);
|
|
4317
|
+
var Qi = Object.defineProperty, Ji = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Yi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, Mt = (e, t, n) => t in e ? Qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, eo = (e, t) => {
|
|
4318
|
+
for (var n in t)
|
|
4319
|
+
Yi.call(t, n) && Mt(e, n, t[n]);
|
|
4320
|
+
if (It)
|
|
4321
|
+
for (var n of It(t))
|
|
4322
|
+
Ki.call(t, n) && Mt(e, n, t[n]);
|
|
4337
4323
|
return e;
|
|
4338
|
-
},
|
|
4339
|
-
let
|
|
4340
|
-
const
|
|
4341
|
-
function
|
|
4342
|
-
return e.split("-").map((t,
|
|
4324
|
+
}, to = (e, t) => Ji(e, qi(t));
|
|
4325
|
+
let tt;
|
|
4326
|
+
const _e = Te(null);
|
|
4327
|
+
function Nt(e) {
|
|
4328
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
4343
4329
|
}
|
|
4344
4330
|
function Ce(e, t = Y().fallbackLocale) {
|
|
4345
|
-
const
|
|
4346
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4331
|
+
const n = Nt(e);
|
|
4332
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Nt(t)])] : n;
|
|
4347
4333
|
}
|
|
4348
4334
|
function F() {
|
|
4349
|
-
return
|
|
4335
|
+
return tt != null ? tt : void 0;
|
|
4350
4336
|
}
|
|
4351
|
-
|
|
4352
|
-
|
|
4337
|
+
_e.subscribe((e) => {
|
|
4338
|
+
tt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4353
4339
|
});
|
|
4354
|
-
const
|
|
4355
|
-
if (e &&
|
|
4340
|
+
const no = (e) => {
|
|
4341
|
+
if (e && ji(e) && et(e)) {
|
|
4356
4342
|
const { loadingDelay: t } = Y();
|
|
4357
|
-
let
|
|
4358
|
-
return typeof window != "undefined" && F() != null && t ?
|
|
4359
|
-
() =>
|
|
4343
|
+
let n;
|
|
4344
|
+
return typeof window != "undefined" && F() != null && t ? n = window.setTimeout(
|
|
4345
|
+
() => De.set(!0),
|
|
4360
4346
|
t
|
|
4361
|
-
) :
|
|
4362
|
-
|
|
4347
|
+
) : De.set(!0), wn(e).then(() => {
|
|
4348
|
+
_e.set(e);
|
|
4363
4349
|
}).finally(() => {
|
|
4364
|
-
clearTimeout(
|
|
4350
|
+
clearTimeout(n), De.set(!1);
|
|
4365
4351
|
});
|
|
4366
4352
|
}
|
|
4367
|
-
return
|
|
4368
|
-
}, ee =
|
|
4369
|
-
set:
|
|
4353
|
+
return _e.set(e);
|
|
4354
|
+
}, ee = to(eo({}, _e), {
|
|
4355
|
+
set: no
|
|
4370
4356
|
}), Be = (e) => {
|
|
4371
4357
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4372
|
-
return (
|
|
4373
|
-
const i = JSON.stringify(
|
|
4374
|
-
return i in t ? t[i] : t[i] = e(
|
|
4358
|
+
return (r) => {
|
|
4359
|
+
const i = JSON.stringify(r);
|
|
4360
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
4375
4361
|
};
|
|
4376
4362
|
};
|
|
4377
|
-
var
|
|
4378
|
-
for (var
|
|
4379
|
-
|
|
4363
|
+
var ro = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, $t = (e, t, n) => t in e ? ro(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
|
|
4364
|
+
for (var n in t || (t = {}))
|
|
4365
|
+
Sn.call(t, n) && $t(e, n, t[n]);
|
|
4380
4366
|
if (Ee)
|
|
4381
|
-
for (var
|
|
4382
|
-
|
|
4367
|
+
for (var n of Ee(t))
|
|
4368
|
+
Tn.call(t, n) && $t(e, n, t[n]);
|
|
4383
4369
|
return e;
|
|
4384
4370
|
}, te = (e, t) => {
|
|
4385
|
-
var
|
|
4386
|
-
for (var
|
|
4387
|
-
|
|
4371
|
+
var n = {};
|
|
4372
|
+
for (var r in e)
|
|
4373
|
+
Sn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4388
4374
|
if (e != null && Ee)
|
|
4389
|
-
for (var
|
|
4390
|
-
t.indexOf(
|
|
4391
|
-
return
|
|
4375
|
+
for (var r of Ee(e))
|
|
4376
|
+
t.indexOf(r) < 0 && Tn.call(e, r) && (n[r] = e[r]);
|
|
4377
|
+
return n;
|
|
4392
4378
|
};
|
|
4393
4379
|
const ue = (e, t) => {
|
|
4394
|
-
const { formats:
|
|
4395
|
-
if (e in
|
|
4396
|
-
return
|
|
4380
|
+
const { formats: n } = Y();
|
|
4381
|
+
if (e in n && t in n[e])
|
|
4382
|
+
return n[e][t];
|
|
4397
4383
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4398
|
-
},
|
|
4384
|
+
}, io = Be(
|
|
4399
4385
|
(e) => {
|
|
4400
|
-
var t = e, { locale:
|
|
4401
|
-
if (
|
|
4386
|
+
var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
|
|
4387
|
+
if (n == null)
|
|
4402
4388
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4403
|
-
return
|
|
4389
|
+
return r && (i = ue("number", r)), new Intl.NumberFormat(n, i);
|
|
4404
4390
|
}
|
|
4405
|
-
),
|
|
4391
|
+
), oo = Be(
|
|
4406
4392
|
(e) => {
|
|
4407
|
-
var t = e, { locale:
|
|
4408
|
-
if (
|
|
4393
|
+
var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
|
|
4394
|
+
if (n == null)
|
|
4409
4395
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4410
|
-
return
|
|
4396
|
+
return r ? i = ue("date", r) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
4411
4397
|
}
|
|
4412
|
-
),
|
|
4398
|
+
), so = Be(
|
|
4413
4399
|
(e) => {
|
|
4414
|
-
var t = e, { locale:
|
|
4415
|
-
if (
|
|
4400
|
+
var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
|
|
4401
|
+
if (n == null)
|
|
4416
4402
|
throw new Error(
|
|
4417
4403
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4418
4404
|
);
|
|
4419
|
-
return
|
|
4405
|
+
return r ? i = ue("time", r) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
4420
4406
|
}
|
|
4421
|
-
),
|
|
4407
|
+
), ao = (e = {}) => {
|
|
4422
4408
|
var t = e, {
|
|
4423
|
-
locale:
|
|
4424
|
-
} = t,
|
|
4409
|
+
locale: n = F()
|
|
4410
|
+
} = t, r = te(t, [
|
|
4425
4411
|
"locale"
|
|
4426
4412
|
]);
|
|
4427
|
-
return
|
|
4428
|
-
},
|
|
4413
|
+
return io(at({ locale: n }, r));
|
|
4414
|
+
}, uo = (e = {}) => {
|
|
4429
4415
|
var t = e, {
|
|
4430
|
-
locale:
|
|
4431
|
-
} = t,
|
|
4416
|
+
locale: n = F()
|
|
4417
|
+
} = t, r = te(t, [
|
|
4432
4418
|
"locale"
|
|
4433
4419
|
]);
|
|
4434
|
-
return
|
|
4435
|
-
},
|
|
4420
|
+
return oo(at({ locale: n }, r));
|
|
4421
|
+
}, lo = (e = {}) => {
|
|
4436
4422
|
var t = e, {
|
|
4437
|
-
locale:
|
|
4438
|
-
} = t,
|
|
4423
|
+
locale: n = F()
|
|
4424
|
+
} = t, r = te(t, [
|
|
4439
4425
|
"locale"
|
|
4440
4426
|
]);
|
|
4441
|
-
return
|
|
4442
|
-
},
|
|
4427
|
+
return so(at({ locale: n }, r));
|
|
4428
|
+
}, ho = Be(
|
|
4443
4429
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4444
|
-
(e, t = F()) => new
|
|
4430
|
+
(e, t = F()) => new Ri(e, t, Y().formats, {
|
|
4445
4431
|
ignoreTag: Y().ignoreTag
|
|
4446
4432
|
})
|
|
4447
|
-
),
|
|
4448
|
-
var
|
|
4433
|
+
), fo = (e, t = {}) => {
|
|
4434
|
+
var n, r, i, o;
|
|
4449
4435
|
let a = t;
|
|
4450
4436
|
typeof e == "object" && (a = e, e = a.id);
|
|
4451
4437
|
const {
|
|
@@ -4457,62 +4443,62 @@ const ue = (e, t) => {
|
|
|
4457
4443
|
throw new Error(
|
|
4458
4444
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4459
4445
|
);
|
|
4460
|
-
let h =
|
|
4446
|
+
let h = vn(e, l);
|
|
4461
4447
|
if (!h)
|
|
4462
|
-
h = (o = (i = (
|
|
4448
|
+
h = (o = (i = (r = (n = Y()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4463
4449
|
else if (typeof h != "string")
|
|
4464
4450
|
return console.warn(
|
|
4465
4451
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4466
4452
|
), h;
|
|
4467
4453
|
if (!s)
|
|
4468
4454
|
return h;
|
|
4469
|
-
let
|
|
4455
|
+
let f = h;
|
|
4470
4456
|
try {
|
|
4471
|
-
|
|
4472
|
-
} catch (
|
|
4473
|
-
|
|
4457
|
+
f = ho(h, l).format(s);
|
|
4458
|
+
} catch (c) {
|
|
4459
|
+
c instanceof Error && console.warn(
|
|
4474
4460
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4475
|
-
|
|
4461
|
+
c.message
|
|
4476
4462
|
);
|
|
4477
4463
|
}
|
|
4478
|
-
return
|
|
4479
|
-
},
|
|
4464
|
+
return f;
|
|
4465
|
+
}, co = (e, t) => lo(t).format(e), mo = (e, t) => uo(t).format(e), po = (e, t) => ao(t).format(e), bo = (e, t = F()) => vn(e, t), go = K([ee, he], () => fo);
|
|
4466
|
+
K([ee], () => co);
|
|
4467
|
+
K([ee], () => mo);
|
|
4480
4468
|
K([ee], () => po);
|
|
4481
|
-
K([ee], () => bo);
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
const _o = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4486
|
-
function xo(e, t) {
|
|
4469
|
+
K([ee, he], () => bo);
|
|
4470
|
+
window.emWidgets = { topic: Ar };
|
|
4471
|
+
const yo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4472
|
+
function vo(e, t) {
|
|
4487
4473
|
if (e) {
|
|
4488
|
-
const
|
|
4489
|
-
|
|
4474
|
+
const n = document.createElement("style");
|
|
4475
|
+
n.innerHTML = t, e.appendChild(n);
|
|
4490
4476
|
}
|
|
4491
4477
|
}
|
|
4492
|
-
function
|
|
4493
|
-
const
|
|
4494
|
-
fetch(
|
|
4478
|
+
function xo(e, t) {
|
|
4479
|
+
const n = new URL(t);
|
|
4480
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4495
4481
|
const i = document.createElement("style");
|
|
4496
|
-
i.innerHTML =
|
|
4497
|
-
}).catch((
|
|
4498
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4482
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
4483
|
+
}).catch((r) => {
|
|
4484
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
4499
4485
|
});
|
|
4500
4486
|
}
|
|
4501
|
-
function
|
|
4487
|
+
function _o(e, t, n) {
|
|
4502
4488
|
if (window.emMessageBus) {
|
|
4503
|
-
const
|
|
4489
|
+
const r = document.createElement("style");
|
|
4504
4490
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4505
|
-
|
|
4491
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
4506
4492
|
});
|
|
4507
4493
|
}
|
|
4508
4494
|
}
|
|
4509
|
-
function
|
|
4510
|
-
|
|
4495
|
+
function Rt(e, t) {
|
|
4496
|
+
_n(e, t);
|
|
4511
4497
|
}
|
|
4512
|
-
function
|
|
4498
|
+
function Eo(e) {
|
|
4513
4499
|
ee.set(e);
|
|
4514
4500
|
}
|
|
4515
|
-
const
|
|
4501
|
+
const Gt = {
|
|
4516
4502
|
en: {
|
|
4517
4503
|
cancel: "Cancel",
|
|
4518
4504
|
confirm: "Confirm"
|
|
@@ -4558,57 +4544,57 @@ const Dt = {
|
|
|
4558
4544
|
confirm: "Confirm"
|
|
4559
4545
|
}
|
|
4560
4546
|
};
|
|
4561
|
-
function
|
|
4562
|
-
|
|
4547
|
+
function wo(e) {
|
|
4548
|
+
Vn(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4563
4549
|
}
|
|
4564
|
-
const
|
|
4565
|
-
function
|
|
4566
|
-
let t,
|
|
4550
|
+
const So = (e) => ({}), Ut = (e) => ({});
|
|
4551
|
+
function To(e) {
|
|
4552
|
+
let t, n;
|
|
4567
4553
|
return {
|
|
4568
4554
|
c() {
|
|
4569
|
-
t =
|
|
4555
|
+
t = dt("svg"), n = dt("path"), H(n, "stroke-linecap", "round"), H(n, "stroke-linejoin", "round"), H(n, "stroke-width", "2"), H(n, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4570
4556
|
},
|
|
4571
|
-
m(
|
|
4572
|
-
|
|
4557
|
+
m(r, i) {
|
|
4558
|
+
it(r, t, i), P(t, n);
|
|
4573
4559
|
},
|
|
4574
4560
|
p: I,
|
|
4575
|
-
d(
|
|
4576
|
-
|
|
4561
|
+
d(r) {
|
|
4562
|
+
r && le(t);
|
|
4577
4563
|
}
|
|
4578
4564
|
};
|
|
4579
4565
|
}
|
|
4580
|
-
function
|
|
4581
|
-
let t,
|
|
4566
|
+
function Ho(e) {
|
|
4567
|
+
let t, n, r, i, o, a, s, l, u, h = (
|
|
4582
4568
|
/*$_*/
|
|
4583
4569
|
e[2]("cancel") + ""
|
|
4584
|
-
),
|
|
4570
|
+
), f, c, d, m = (
|
|
4585
4571
|
/*$_*/
|
|
4586
4572
|
e[2]("confirm") + ""
|
|
4587
|
-
),
|
|
4588
|
-
const
|
|
4573
|
+
), p, v, T, C;
|
|
4574
|
+
const w = (
|
|
4589
4575
|
/*#slots*/
|
|
4590
4576
|
e[14].close
|
|
4591
|
-
), B =
|
|
4592
|
-
|
|
4577
|
+
), B = Gn(
|
|
4578
|
+
w,
|
|
4593
4579
|
e,
|
|
4594
4580
|
/*$$scope*/
|
|
4595
4581
|
e[13],
|
|
4596
|
-
|
|
4597
|
-
),
|
|
4582
|
+
Ut
|
|
4583
|
+
), S = B || To();
|
|
4598
4584
|
return {
|
|
4599
4585
|
c() {
|
|
4600
|
-
t = M("div"),
|
|
4586
|
+
t = M("div"), n = M("div"), r = M("span"), S.c(), i = Pe(), o = M("div"), a = ie(
|
|
4601
4587
|
/*modaltext*/
|
|
4602
4588
|
e[0]
|
|
4603
|
-
), s = Pe(), l = M("div"), u = M("button"),
|
|
4604
|
-
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), H(
|
|
4589
|
+
), s = Pe(), l = M("div"), u = M("button"), f = ie(h), c = Pe(), d = M("button"), p = ie(m), H(r, "class", "ModalCloseBtn"), H(r, "role", "button"), H(o, "class", "GamingLimitsConfirmationContent"), H(u, "class", "GamingLimitsCancelButton"), H(d, "class", "GamingLimitsConfirmButton"), H(l, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
4590
|
+
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), H(n, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4605
4591
|
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), H(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4606
4592
|
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4607
4593
|
},
|
|
4608
|
-
m(
|
|
4609
|
-
|
|
4594
|
+
m(_, L) {
|
|
4595
|
+
it(_, t, L), P(t, n), P(n, r), S.m(r, null), P(n, i), P(n, o), P(o, a), P(n, s), P(n, l), P(l, u), P(u, f), P(l, c), P(l, d), P(d, p), e[15](t), v = !0, T || (C = [
|
|
4610
4596
|
Le(
|
|
4611
|
-
|
|
4597
|
+
r,
|
|
4612
4598
|
"click",
|
|
4613
4599
|
/*close*/
|
|
4614
4600
|
e[4]
|
|
@@ -4620,72 +4606,72 @@ function Bo(e) {
|
|
|
4620
4606
|
e[6]
|
|
4621
4607
|
),
|
|
4622
4608
|
Le(
|
|
4623
|
-
|
|
4609
|
+
d,
|
|
4624
4610
|
"click",
|
|
4625
4611
|
/*confirmChanges*/
|
|
4626
4612
|
e[5]
|
|
4627
4613
|
)
|
|
4628
4614
|
], T = !0);
|
|
4629
4615
|
},
|
|
4630
|
-
p(
|
|
4616
|
+
p(_, [L]) {
|
|
4631
4617
|
B && B.p && (!v || L & /*$$scope*/
|
|
4632
|
-
8192) &&
|
|
4618
|
+
8192) && Dn(
|
|
4633
4619
|
B,
|
|
4634
|
-
|
|
4635
|
-
|
|
4620
|
+
w,
|
|
4621
|
+
_,
|
|
4636
4622
|
/*$$scope*/
|
|
4637
|
-
|
|
4638
|
-
v ?
|
|
4639
|
-
|
|
4623
|
+
_[13],
|
|
4624
|
+
v ? Un(
|
|
4625
|
+
w,
|
|
4640
4626
|
/*$$scope*/
|
|
4641
|
-
|
|
4627
|
+
_[13],
|
|
4642
4628
|
L,
|
|
4643
|
-
|
|
4644
|
-
) :
|
|
4629
|
+
So
|
|
4630
|
+
) : Fn(
|
|
4645
4631
|
/*$$scope*/
|
|
4646
|
-
|
|
4632
|
+
_[13]
|
|
4647
4633
|
),
|
|
4648
|
-
|
|
4634
|
+
Ut
|
|
4649
4635
|
), (!v || L & /*modaltext*/
|
|
4650
4636
|
1) && Oe(
|
|
4651
4637
|
a,
|
|
4652
4638
|
/*modaltext*/
|
|
4653
|
-
|
|
4639
|
+
_[0]
|
|
4654
4640
|
), (!v || L & /*$_*/
|
|
4655
4641
|
4) && h !== (h = /*$_*/
|
|
4656
|
-
|
|
4642
|
+
_[2]("cancel") + "") && Oe(f, h), (!v || L & /*$_*/
|
|
4657
4643
|
4) && m !== (m = /*$_*/
|
|
4658
|
-
|
|
4644
|
+
_[2]("confirm") + "") && Oe(p, m);
|
|
4659
4645
|
},
|
|
4660
|
-
i(
|
|
4661
|
-
v || (
|
|
4646
|
+
i(_) {
|
|
4647
|
+
v || (Wt(S, _), v = !0);
|
|
4662
4648
|
},
|
|
4663
|
-
o(
|
|
4664
|
-
|
|
4649
|
+
o(_) {
|
|
4650
|
+
sr(S, _), v = !1;
|
|
4665
4651
|
},
|
|
4666
|
-
d(
|
|
4667
|
-
|
|
4652
|
+
d(_) {
|
|
4653
|
+
_ && le(t), S.d(_), e[15](null), T = !1, D(C);
|
|
4668
4654
|
}
|
|
4669
4655
|
};
|
|
4670
4656
|
}
|
|
4671
|
-
function
|
|
4672
|
-
let
|
|
4673
|
-
|
|
4674
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: a = "Are you sure that you want to perform this action?" } = t, { modalsource: s = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource:
|
|
4675
|
-
const
|
|
4676
|
-
fetch(
|
|
4677
|
-
Object.keys(j).forEach((
|
|
4678
|
-
|
|
4657
|
+
function Co(e, t, n) {
|
|
4658
|
+
let r;
|
|
4659
|
+
Rn(e, go, (g) => n(2, r = g));
|
|
4660
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: a = "Are you sure that you want to perform this action?" } = t, { modalsource: s = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: f } = t, { translationurl: c = "" } = t;
|
|
4661
|
+
const d = () => {
|
|
4662
|
+
fetch(c).then((j) => j.json()).then((j) => {
|
|
4663
|
+
Object.keys(j).forEach((ut) => {
|
|
4664
|
+
Rt(ut, j[ut]);
|
|
4679
4665
|
});
|
|
4680
4666
|
}).catch((j) => {
|
|
4681
4667
|
console.log(j);
|
|
4682
4668
|
});
|
|
4683
4669
|
};
|
|
4684
|
-
Object.keys(
|
|
4685
|
-
|
|
4670
|
+
Object.keys(Gt).forEach((g) => {
|
|
4671
|
+
Rt(g, Gt[g]);
|
|
4686
4672
|
});
|
|
4687
|
-
let m,
|
|
4688
|
-
const
|
|
4673
|
+
let m, p = window.navigator.userAgent, v = yo(p) !== "PC", T = {}, C = "";
|
|
4674
|
+
const w = () => {
|
|
4689
4675
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4690
4676
|
}, B = () => {
|
|
4691
4677
|
s === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : s === "infoCard" && window.postMessage(
|
|
@@ -4696,62 +4682,62 @@ function Ao(e, t, r) {
|
|
|
4696
4682
|
},
|
|
4697
4683
|
window.location.href
|
|
4698
4684
|
), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4699
|
-
},
|
|
4685
|
+
}, S = () => {
|
|
4700
4686
|
s === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : s === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4701
|
-
},
|
|
4687
|
+
}, _ = (g) => g === "Time Limit" ? "cumulativeSessionLimits" : g === "Deposit Limit" ? "depositLimits" : g === "Wagering Limit" ? "wageringLimit" : "lossLimit", L = (g) => {
|
|
4702
4688
|
if (g.data)
|
|
4703
4689
|
switch (g.data.type) {
|
|
4704
4690
|
case "DeleteLimitsItem":
|
|
4705
|
-
T = g.data.removeData, C =
|
|
4691
|
+
T = g.data.removeData, C = _(g.data.removeName);
|
|
4706
4692
|
break;
|
|
4707
4693
|
}
|
|
4708
|
-
},
|
|
4709
|
-
|
|
4694
|
+
}, Cn = () => {
|
|
4695
|
+
Eo(l);
|
|
4710
4696
|
};
|
|
4711
|
-
|
|
4697
|
+
er(() => (window.addEventListener("message", L, !1), () => {
|
|
4712
4698
|
window.removeEventListener("message", L);
|
|
4713
4699
|
}));
|
|
4714
|
-
function
|
|
4715
|
-
|
|
4716
|
-
m = g,
|
|
4700
|
+
function Bn(g) {
|
|
4701
|
+
Fe[g ? "unshift" : "push"](() => {
|
|
4702
|
+
m = g, n(1, m);
|
|
4717
4703
|
});
|
|
4718
4704
|
}
|
|
4719
4705
|
return e.$$set = (g) => {
|
|
4720
|
-
"modaltext" in g &&
|
|
4706
|
+
"modaltext" in g && n(0, a = g.modaltext), "modalsource" in g && n(7, s = g.modalsource), "lang" in g && n(8, l = g.lang), "clientstyling" in g && n(9, u = g.clientstyling), "clientstylingurl" in g && n(10, h = g.clientstylingurl), "mbsource" in g && n(11, f = g.mbsource), "translationurl" in g && n(12, c = g.translationurl), "$$scope" in g && n(13, o = g.$$scope);
|
|
4721
4707
|
}, e.$$.update = () => {
|
|
4722
4708
|
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4723
|
-
385 && a && s && l &&
|
|
4724
|
-
514 && u && m &&
|
|
4725
|
-
1026 && h && m &&
|
|
4726
|
-
2050 &&
|
|
4727
|
-
4096 &&
|
|
4709
|
+
385 && a && s && l && Cn(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4710
|
+
514 && u && m && vo(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4711
|
+
1026 && h && m && xo(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4712
|
+
2050 && f && m && _o(m, `${f}.Style`), e.$$.dirty & /*translationurl*/
|
|
4713
|
+
4096 && c && d();
|
|
4728
4714
|
}, [
|
|
4729
4715
|
a,
|
|
4730
4716
|
m,
|
|
4731
|
-
|
|
4717
|
+
r,
|
|
4732
4718
|
v,
|
|
4733
|
-
S,
|
|
4734
|
-
B,
|
|
4735
4719
|
w,
|
|
4720
|
+
B,
|
|
4721
|
+
S,
|
|
4736
4722
|
s,
|
|
4737
4723
|
l,
|
|
4738
4724
|
u,
|
|
4739
4725
|
h,
|
|
4740
|
-
c,
|
|
4741
4726
|
f,
|
|
4727
|
+
c,
|
|
4742
4728
|
o,
|
|
4743
4729
|
i,
|
|
4744
|
-
|
|
4730
|
+
Bn
|
|
4745
4731
|
];
|
|
4746
4732
|
}
|
|
4747
|
-
class
|
|
4733
|
+
class Hn extends mr {
|
|
4748
4734
|
constructor(t) {
|
|
4749
|
-
super(),
|
|
4735
|
+
super(), fr(
|
|
4750
4736
|
this,
|
|
4751
4737
|
t,
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4738
|
+
Co,
|
|
4739
|
+
Ho,
|
|
4740
|
+
Ft,
|
|
4755
4741
|
{
|
|
4756
4742
|
modaltext: 0,
|
|
4757
4743
|
modalsource: 7,
|
|
@@ -4761,7 +4747,7 @@ class Br extends bn {
|
|
|
4761
4747
|
mbsource: 11,
|
|
4762
4748
|
translationurl: 12
|
|
4763
4749
|
},
|
|
4764
|
-
|
|
4750
|
+
wo
|
|
4765
4751
|
);
|
|
4766
4752
|
}
|
|
4767
4753
|
get modaltext() {
|
|
@@ -4807,60 +4793,60 @@ class Br extends bn {
|
|
|
4807
4793
|
this.$$set({ translationurl: t }), N();
|
|
4808
4794
|
}
|
|
4809
4795
|
}
|
|
4810
|
-
|
|
4811
|
-
const
|
|
4796
|
+
cr(Hn, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
|
|
4797
|
+
const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4812
4798
|
__proto__: null,
|
|
4813
|
-
default:
|
|
4799
|
+
default: Hn
|
|
4814
4800
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4815
4801
|
export {
|
|
4816
4802
|
ee as $,
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4803
|
+
$o as A,
|
|
4804
|
+
Io as B,
|
|
4805
|
+
Fe as C,
|
|
4806
|
+
vo as D,
|
|
4807
|
+
xo as E,
|
|
4808
|
+
_o as F,
|
|
4809
|
+
Mo as G,
|
|
4810
|
+
xe as H,
|
|
4811
|
+
No as I,
|
|
4826
4812
|
we as J,
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4813
|
+
go as K,
|
|
4814
|
+
Mn as L,
|
|
4815
|
+
Wt as M,
|
|
4816
|
+
sr as N,
|
|
4817
|
+
Go as O,
|
|
4818
|
+
Gn as P,
|
|
4819
|
+
Dn as Q,
|
|
4820
|
+
Fn as R,
|
|
4821
|
+
mr as S,
|
|
4822
|
+
Un as T,
|
|
4823
|
+
Uo as U,
|
|
4824
|
+
Ro as V,
|
|
4825
|
+
Fo as W,
|
|
4826
|
+
_n as a,
|
|
4827
|
+
Vn as b,
|
|
4828
|
+
cr as c,
|
|
4843
4829
|
Pe as d,
|
|
4844
4830
|
M as e,
|
|
4845
4831
|
N as f,
|
|
4846
|
-
|
|
4832
|
+
dt as g,
|
|
4847
4833
|
H as h,
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4834
|
+
fr as i,
|
|
4835
|
+
Oo as j,
|
|
4836
|
+
it as k,
|
|
4851
4837
|
P as l,
|
|
4852
4838
|
Le as m,
|
|
4853
4839
|
Oe as n,
|
|
4854
4840
|
I as o,
|
|
4855
|
-
|
|
4841
|
+
Lo as p,
|
|
4856
4842
|
le as q,
|
|
4857
4843
|
D as r,
|
|
4858
|
-
|
|
4844
|
+
Ft as s,
|
|
4859
4845
|
ie as t,
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4846
|
+
Rn as u,
|
|
4847
|
+
yo as v,
|
|
4848
|
+
er as w,
|
|
4849
|
+
Do as x,
|
|
4850
|
+
Ao as y,
|
|
4851
|
+
Po as z
|
|
4866
4852
|
};
|