@everymatrix/player-account-self-exclusion 1.74.3 → 1.74.4
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/{PlayerAccountGeneralConfirmationModal-owYYN2xC.js → PlayerAccountGeneralConfirmationModal-COn8IPHo.js} +776 -762
- package/components/PlayerAccountGeneralConfirmationModal-CTkrsADp.cjs +21 -0
- package/components/{PlayerAccountGeneralConfirmationModal-CS1zuABb.js → PlayerAccountGeneralConfirmationModal-DeKth9rU.js} +1259 -1245
- package/components/{PlayerAccountModal-BtSzAR0U.js → PlayerAccountModal-1yio55uP.js} +10 -10
- package/components/{PlayerAccountModal-BrWvsXQ0.js → PlayerAccountModal-bhlvepWR.js} +10 -10
- package/components/{PlayerAccountModal-DLpxMnuu.cjs → PlayerAccountModal-hE4QiaWT.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-DdBNIW_z.cjs → PlayerAccountSelfExclusion-CLi71VFN.cjs} +153 -153
- package/components/{PlayerAccountSelfExclusion-ORbbgTCu.js → PlayerAccountSelfExclusion-DuGcwZpC.js} +1240 -1218
- package/components/{PlayerAccountSelfExclusion-ECvzKOnl.js → PlayerAccountSelfExclusion-ypycNpI7.js} +1220 -1198
- package/es2015/player-account-self-exclusion.cjs +1 -1
- package/es2015/player-account-self-exclusion.js +1 -1
- package/esnext/player-account-self-exclusion.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-b2193545-BbCeNxUG.js → index-b2193545-BtPvM93e.js} +176 -176
- package/stencil/index-b2193545-CgelUAhE.cjs +1 -0
- package/stencil/{index-b2193545-C9PH-6qK.js → index-b2193545-D_KBbaD-.js} +169 -169
- package/stencil/{ui-skeleton-bhljBTS7.cjs → ui-skeleton-BPqjm-YB.cjs} +1 -1
- package/stencil/{ui-skeleton-CJbkvgG7.js → ui-skeleton-CWuMYFGQ.js} +2 -2
- package/stencil/{ui-skeleton-BKDs0-7H.js → ui-skeleton-NZtdK490.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CXlvqczG.cjs → ui-skeleton-ae35c6f2-CKJgMm_5.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-gun6WX2F.js → ui-skeleton-ae35c6f2-CW3z59Qf.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-ZB0isFAq.js → ui-skeleton-ae35c6f2-DlexSQlT.js} +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-D8QZ1uxf.cjs +0 -21
- package/stencil/index-b2193545-D-u-gzj3.cjs +0 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Oe = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var Mr = Object.defineProperty, Nr = Object.defineProperties;
|
|
2
|
+
var Lr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ct = Object.getOwnPropertySymbols;
|
|
4
|
+
var Rr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Oe = (e, t, r) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
Rr.call(t, r) && Oe(e, r, t[r]);
|
|
8
|
+
if (ct)
|
|
9
|
+
for (var r of ct(t))
|
|
10
|
+
$r.call(t, r) && Oe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var O = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, mt = (e, t) => Nr(e, Lr(t));
|
|
13
|
+
var O = (e, t, r) => (Oe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var dt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
a(
|
|
17
|
+
a(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
a(
|
|
23
|
+
a(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (l) => l.done ?
|
|
28
|
-
a((
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
|
+
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function N() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
for (const
|
|
35
|
-
e[
|
|
32
|
+
const Gr = (e) => e;
|
|
33
|
+
function Ur(e, t) {
|
|
34
|
+
for (const r in t)
|
|
35
|
+
e[r] = t[r];
|
|
36
36
|
return (
|
|
37
37
|
/** @type {T & S} */
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Vt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function pt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function U(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(Vt);
|
|
49
49
|
}
|
|
50
50
|
function Te(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Xt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Dr(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function zt(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
|
-
for (const
|
|
62
|
-
|
|
61
|
+
for (const n of t)
|
|
62
|
+
n(void 0);
|
|
63
63
|
return N;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
return
|
|
65
|
+
const r = e.subscribe(...t);
|
|
66
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
e.$$.on_destroy.push(
|
|
68
|
+
function Fr(e, t, r) {
|
|
69
|
+
e.$$.on_destroy.push(zt(t, r));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function jr(e, t, r, n) {
|
|
72
72
|
if (e) {
|
|
73
|
-
const i =
|
|
73
|
+
const i = Wt(e, t, r, n);
|
|
74
74
|
return e[0](i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return e[1] &&
|
|
77
|
+
function Wt(e, t, r, n) {
|
|
78
|
+
return e[1] && n ? Ur(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
if (e[2] &&
|
|
82
|
-
const i = e[2](r
|
|
80
|
+
function kr(e, t, r, n) {
|
|
81
|
+
if (e[2] && n) {
|
|
82
|
+
const i = e[2](n(r));
|
|
83
83
|
if (t.dirty === void 0)
|
|
84
84
|
return i;
|
|
85
85
|
if (typeof i == "object") {
|
|
@@ -92,34 +92,34 @@ function Fn(e, t, n, r) {
|
|
|
92
92
|
}
|
|
93
93
|
return t.dirty;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Vr(e, t, r, n, i, o) {
|
|
96
96
|
if (i) {
|
|
97
|
-
const s =
|
|
97
|
+
const s = Wt(t, r, n, o);
|
|
98
98
|
e.p(s, i);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Xr(e) {
|
|
102
102
|
if (e.ctx.length > 32) {
|
|
103
|
-
const t = [],
|
|
104
|
-
for (let
|
|
105
|
-
t[
|
|
103
|
+
const t = [], r = e.ctx.length / 32;
|
|
104
|
+
for (let n = 0; n < r; n++)
|
|
105
|
+
t[n] = -1;
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
108
|
return -1;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
110
|
+
const Zt = typeof window != "undefined";
|
|
111
|
+
let zr = Zt ? () => window.performance.now() : () => Date.now(), nt = Zt ? (e) => requestAnimationFrame(e) : N;
|
|
112
112
|
const z = /* @__PURE__ */ new Set();
|
|
113
|
-
function
|
|
113
|
+
function Qt(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(Qt);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Wr(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(Qt), {
|
|
121
|
+
promise: new Promise((r) => {
|
|
122
|
+
z.add(t = { c: e, f: r });
|
|
123
123
|
}),
|
|
124
124
|
abort() {
|
|
125
125
|
z.delete(t);
|
|
@@ -129,14 +129,14 @@ function Xn(e) {
|
|
|
129
129
|
function C(e, t) {
|
|
130
130
|
e.appendChild(t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const
|
|
134
|
-
if (!
|
|
132
|
+
function Zr(e, t, r) {
|
|
133
|
+
const n = it(e);
|
|
134
|
+
if (!n.getElementById(t)) {
|
|
135
135
|
const i = M("style");
|
|
136
|
-
i.id = t, i.textContent =
|
|
136
|
+
i.id = t, i.textContent = r, Jt(n, i);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function it(e) {
|
|
140
140
|
if (!e)
|
|
141
141
|
return document;
|
|
142
142
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -146,112 +146,112 @@ function rt(e) {
|
|
|
146
146
|
t
|
|
147
147
|
) : e.ownerDocument;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Qr(e) {
|
|
150
150
|
const t = M("style");
|
|
151
|
-
return t.textContent = "/* empty */",
|
|
151
|
+
return t.textContent = "/* empty */", Jt(it(e), t), t.sheet;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Jt(e, t) {
|
|
154
154
|
return C(
|
|
155
155
|
/** @type {Document} */
|
|
156
156
|
e.head || e,
|
|
157
157
|
t
|
|
158
158
|
), t.sheet;
|
|
159
159
|
}
|
|
160
|
-
function ue(e, t,
|
|
161
|
-
e.insertBefore(t,
|
|
160
|
+
function ue(e, t, r) {
|
|
161
|
+
e.insertBefore(t, r || null);
|
|
162
162
|
}
|
|
163
163
|
function D(e) {
|
|
164
164
|
e.parentNode && e.parentNode.removeChild(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
for (let
|
|
168
|
-
e[
|
|
166
|
+
function Mo(e, t) {
|
|
167
|
+
for (let r = 0; r < e.length; r += 1)
|
|
168
|
+
e[r] && e[r].d(t);
|
|
169
169
|
}
|
|
170
170
|
function M(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function bt(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
176
|
function le(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function fe() {
|
|
180
180
|
return le(" ");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function No() {
|
|
183
183
|
return le("");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
return e.addEventListener(t,
|
|
185
|
+
function Fe(e, t, r, n) {
|
|
186
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
188
|
+
function H(e, t, r) {
|
|
189
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const
|
|
193
|
-
|
|
191
|
+
function Lo(e, t, r) {
|
|
192
|
+
const n = t.toLowerCase();
|
|
193
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Jr(e) {
|
|
196
196
|
return Array.from(e.childNodes);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function ot(e, t) {
|
|
199
199
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
200
200
|
t);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
|
|
202
|
+
function Ro(e, t, r, n) {
|
|
203
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
e.classList.toggle(t, !!
|
|
205
|
+
function $o(e, t, r) {
|
|
206
|
+
e.classList.toggle(t, !!r);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
208
|
+
function qr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
209
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Yr(e) {
|
|
212
212
|
const t = {};
|
|
213
213
|
return e.childNodes.forEach(
|
|
214
214
|
/** @param {Element} node */
|
|
215
|
-
(
|
|
216
|
-
t[
|
|
215
|
+
(r) => {
|
|
216
|
+
t[r.slot || "default"] = !0;
|
|
217
217
|
}
|
|
218
218
|
), t;
|
|
219
219
|
}
|
|
220
220
|
const _e = /* @__PURE__ */ new Map();
|
|
221
221
|
let xe = 0;
|
|
222
|
-
function
|
|
223
|
-
let t = 5381,
|
|
224
|
-
for (;
|
|
225
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
222
|
+
function Kr(e) {
|
|
223
|
+
let t = 5381, r = e.length;
|
|
224
|
+
for (; r--; )
|
|
225
|
+
t = (t << 5) - t ^ e.charCodeAt(r);
|
|
226
226
|
return t >>> 0;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const
|
|
230
|
-
return _e.set(e,
|
|
228
|
+
function en(e, t) {
|
|
229
|
+
const r = { stylesheet: Qr(t), rules: {} };
|
|
230
|
+
return _e.set(e, r), r;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
const l = 16.666 /
|
|
232
|
+
function gt(e, t, r, n, i, o, s, a = 0) {
|
|
233
|
+
const l = 16.666 / n;
|
|
234
234
|
let u = `{
|
|
235
235
|
`;
|
|
236
236
|
for (let g = 0; g <= 1; g += l) {
|
|
237
|
-
const
|
|
238
|
-
u += g * 100 + `%{${s(
|
|
237
|
+
const A = t + (r - t) * o(g);
|
|
238
|
+
u += g * 100 + `%{${s(A, 1 - A)}}
|
|
239
239
|
`;
|
|
240
240
|
}
|
|
241
|
-
const h = u + `100% {${s(
|
|
242
|
-
}`,
|
|
243
|
-
|
|
241
|
+
const h = u + `100% {${s(r, 1 - r)}}
|
|
242
|
+
}`, c = `__svelte_${Kr(h)}_${a}`, f = it(e), { stylesheet: d, rules: m } = _e.get(f) || en(f, e);
|
|
243
|
+
m[c] || (m[c] = !0, d.insertRule(`@keyframes ${c} ${h}`, d.cssRules.length));
|
|
244
244
|
const p = e.style.animation || "";
|
|
245
|
-
return e.style.animation = `${p ? `${p}, ` : ""}${
|
|
245
|
+
return e.style.animation = `${p ? `${p}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, xe += 1, c;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
247
|
+
function tn(e, t) {
|
|
248
|
+
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
249
249
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
250
250
|
// remove all Svelte animations
|
|
251
|
-
), i =
|
|
252
|
-
i && (e.style.animation =
|
|
251
|
+
), i = r.length - n.length;
|
|
252
|
+
i && (e.style.animation = n.join(", "), xe -= i, xe || rn());
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function rn() {
|
|
255
255
|
nt(() => {
|
|
256
256
|
xe || (_e.forEach((e) => {
|
|
257
257
|
const { ownerNode: t } = e.stylesheet;
|
|
@@ -263,20 +263,20 @@ let oe;
|
|
|
263
263
|
function ie(e) {
|
|
264
264
|
oe = e;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function nn() {
|
|
267
267
|
if (!oe)
|
|
268
268
|
throw new Error("Function called outside component initialization");
|
|
269
269
|
return oe;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
|
|
271
|
+
function on(e) {
|
|
272
|
+
nn().$$.on_mount.push(e);
|
|
273
273
|
}
|
|
274
|
-
const X = [],
|
|
274
|
+
const X = [], je = [];
|
|
275
275
|
let W = [];
|
|
276
|
-
const
|
|
277
|
-
let
|
|
278
|
-
function
|
|
279
|
-
|
|
276
|
+
const yt = [], sn = /* @__PURE__ */ Promise.resolve();
|
|
277
|
+
let ke = !1;
|
|
278
|
+
function an() {
|
|
279
|
+
ke || (ke = !0, sn.then(I));
|
|
280
280
|
}
|
|
281
281
|
function Ee(e) {
|
|
282
282
|
W.push(e);
|
|
@@ -291,46 +291,46 @@ function I() {
|
|
|
291
291
|
try {
|
|
292
292
|
for (; k < X.length; ) {
|
|
293
293
|
const t = X[k];
|
|
294
|
-
k++, ie(t),
|
|
294
|
+
k++, ie(t), un(t.$$);
|
|
295
295
|
}
|
|
296
296
|
} catch (t) {
|
|
297
297
|
throw X.length = 0, k = 0, t;
|
|
298
298
|
}
|
|
299
|
-
for (ie(null), X.length = 0, k = 0;
|
|
300
|
-
|
|
299
|
+
for (ie(null), X.length = 0, k = 0; je.length; )
|
|
300
|
+
je.pop()();
|
|
301
301
|
for (let t = 0; t < W.length; t += 1) {
|
|
302
|
-
const
|
|
303
|
-
Ie.has(
|
|
302
|
+
const r = W[t];
|
|
303
|
+
Ie.has(r) || (Ie.add(r), r());
|
|
304
304
|
}
|
|
305
305
|
W.length = 0;
|
|
306
306
|
} while (X.length);
|
|
307
|
-
for (;
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
for (; yt.length; )
|
|
308
|
+
yt.pop()();
|
|
309
|
+
ke = !1, Ie.clear(), ie(e);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function un(e) {
|
|
312
312
|
if (e.fragment !== null) {
|
|
313
313
|
e.update(), U(e.before_update);
|
|
314
314
|
const t = e.dirty;
|
|
315
315
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ee);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
const t = [],
|
|
320
|
-
W.forEach((
|
|
318
|
+
function ln(e) {
|
|
319
|
+
const t = [], r = [];
|
|
320
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
321
321
|
}
|
|
322
|
-
let
|
|
323
|
-
function
|
|
324
|
-
return
|
|
325
|
-
|
|
326
|
-
})),
|
|
322
|
+
let re;
|
|
323
|
+
function hn() {
|
|
324
|
+
return re || (re = Promise.resolve(), re.then(() => {
|
|
325
|
+
re = null;
|
|
326
|
+
})), re;
|
|
327
327
|
}
|
|
328
|
-
function Me(e, t,
|
|
329
|
-
e.dispatchEvent(
|
|
328
|
+
function Me(e, t, r) {
|
|
329
|
+
e.dispatchEvent(qr(`${t ? "intro" : "outro"}${r}`));
|
|
330
330
|
}
|
|
331
331
|
const pe = /* @__PURE__ */ new Set();
|
|
332
332
|
let L;
|
|
333
|
-
function
|
|
333
|
+
function Go() {
|
|
334
334
|
L = {
|
|
335
335
|
r: 0,
|
|
336
336
|
c: [],
|
|
@@ -338,104 +338,104 @@ function Ro() {
|
|
|
338
338
|
// parent group
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Uo() {
|
|
342
342
|
L.r || U(L.c), L = L.p;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function qt(e, t) {
|
|
345
345
|
e && e.i && (pe.delete(e), e.i(t));
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function cn(e, t, r, n) {
|
|
348
348
|
if (e && e.o) {
|
|
349
349
|
if (pe.has(e))
|
|
350
350
|
return;
|
|
351
351
|
pe.add(e), L.c.push(() => {
|
|
352
|
-
pe.delete(e),
|
|
352
|
+
pe.delete(e), n && (r && e.d(1), n());
|
|
353
353
|
}), e.o(t);
|
|
354
354
|
} else
|
|
355
|
-
|
|
355
|
+
n && n();
|
|
356
356
|
}
|
|
357
|
-
const
|
|
358
|
-
function
|
|
359
|
-
let o = t(e,
|
|
360
|
-
function
|
|
361
|
-
u &&
|
|
357
|
+
const fn = { duration: 0 };
|
|
358
|
+
function Do(e, t, r, n) {
|
|
359
|
+
let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, l = null, u = null, h;
|
|
360
|
+
function c() {
|
|
361
|
+
u && tn(e, u);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function f(m, p) {
|
|
364
364
|
const g = (
|
|
365
365
|
/** @type {Program['d']} */
|
|
366
|
-
|
|
366
|
+
m.b - s
|
|
367
367
|
);
|
|
368
368
|
return p *= Math.abs(g), {
|
|
369
369
|
a: s,
|
|
370
|
-
b:
|
|
370
|
+
b: m.b,
|
|
371
371
|
d: g,
|
|
372
372
|
duration: p,
|
|
373
|
-
start:
|
|
374
|
-
end:
|
|
375
|
-
group:
|
|
373
|
+
start: m.start,
|
|
374
|
+
end: m.start + p,
|
|
375
|
+
group: m.group
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
function m
|
|
378
|
+
function d(m) {
|
|
379
379
|
const {
|
|
380
380
|
delay: p = 0,
|
|
381
381
|
duration: g = 300,
|
|
382
|
-
easing:
|
|
383
|
-
tick:
|
|
382
|
+
easing: A = Gr,
|
|
383
|
+
tick: T = N,
|
|
384
384
|
css: x
|
|
385
|
-
} = o ||
|
|
386
|
-
start:
|
|
387
|
-
b:
|
|
385
|
+
} = o || fn, w = {
|
|
386
|
+
start: zr() + p,
|
|
387
|
+
b: m
|
|
388
388
|
};
|
|
389
|
-
|
|
390
|
-
e.inert, e.inert = !0)), a || l ? l = w : (x && (
|
|
391
|
-
if (l && b > l.start && (a =
|
|
389
|
+
m || (w.group = L, L.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
390
|
+
e.inert, e.inert = !0)), a || l ? l = w : (x && (c(), u = gt(e, s, m, g, p, A, x)), m && T(0, 1), a = f(w, g), Ee(() => Me(e, m, "start")), Wr((b) => {
|
|
391
|
+
if (l && b > l.start && (a = f(l, g), l = null, Me(e, a.b, "start"), x && (c(), u = gt(
|
|
392
392
|
e,
|
|
393
393
|
s,
|
|
394
394
|
a.b,
|
|
395
395
|
a.duration,
|
|
396
396
|
0,
|
|
397
|
-
|
|
397
|
+
A,
|
|
398
398
|
o.css
|
|
399
399
|
))), a) {
|
|
400
400
|
if (b >= a.end)
|
|
401
|
-
|
|
401
|
+
T(s = a.b, 1 - s), Me(e, a.b, "end"), l || (a.b ? c() : --a.group.r || U(a.group.c)), a = null;
|
|
402
402
|
else if (b >= a.start) {
|
|
403
403
|
const B = b - a.start;
|
|
404
|
-
s = a.a + a.d *
|
|
404
|
+
s = a.a + a.d * A(B / a.duration), T(s, 1 - s);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
return !!(a || l);
|
|
408
408
|
}));
|
|
409
409
|
}
|
|
410
410
|
return {
|
|
411
|
-
run(
|
|
412
|
-
Te(o) ?
|
|
413
|
-
o = o({ direction:
|
|
414
|
-
}) : m
|
|
411
|
+
run(m) {
|
|
412
|
+
Te(o) ? hn().then(() => {
|
|
413
|
+
o = o({ direction: m ? "in" : "out" }), d(m);
|
|
414
|
+
}) : d(m);
|
|
415
415
|
},
|
|
416
416
|
end() {
|
|
417
|
-
|
|
417
|
+
c(), a = l = null;
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Fo(e) {
|
|
422
422
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
const { fragment:
|
|
426
|
-
|
|
427
|
-
const o = e.$$.on_mount.map(
|
|
424
|
+
function mn(e, t, r) {
|
|
425
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
426
|
+
n && n.m(t, r), Ee(() => {
|
|
427
|
+
const o = e.$$.on_mount.map(Vt).filter(Te);
|
|
428
428
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : U(o), e.$$.on_mount = [];
|
|
429
429
|
}), i.forEach(Ee);
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
const
|
|
433
|
-
|
|
431
|
+
function dn(e, t) {
|
|
432
|
+
const r = e.$$;
|
|
433
|
+
r.fragment !== null && (ln(r.after_update), U(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
435
|
+
function pn(e, t) {
|
|
436
|
+
e.$$.dirty[0] === -1 && (X.push(e), an(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function bn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
439
439
|
const l = oe;
|
|
440
440
|
ie(e);
|
|
441
441
|
const u = e.$$ = {
|
|
@@ -445,7 +445,7 @@ function dr(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
|
445
445
|
props: o,
|
|
446
446
|
update: N,
|
|
447
447
|
not_equal: i,
|
|
448
|
-
bound:
|
|
448
|
+
bound: pt(),
|
|
449
449
|
// lifecycle
|
|
450
450
|
on_mount: [],
|
|
451
451
|
on_destroy: [],
|
|
@@ -454,29 +454,29 @@ function dr(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
|
454
454
|
after_update: [],
|
|
455
455
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
456
456
|
// everything else
|
|
457
|
-
callbacks:
|
|
457
|
+
callbacks: pt(),
|
|
458
458
|
dirty: a,
|
|
459
459
|
skip_bound: !1,
|
|
460
460
|
root: t.target || l.$$.root
|
|
461
461
|
};
|
|
462
462
|
s && s(u.root);
|
|
463
463
|
let h = !1;
|
|
464
|
-
if (u.ctx =
|
|
465
|
-
const
|
|
466
|
-
return u.ctx && i(u.ctx[
|
|
467
|
-
}) : [], u.update(), h = !0, U(u.before_update), u.fragment =
|
|
464
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
465
|
+
const m = d.length ? d[0] : f;
|
|
466
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && pn(e, c)), f;
|
|
467
|
+
}) : [], u.update(), h = !0, U(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
468
468
|
if (t.hydrate) {
|
|
469
|
-
const
|
|
470
|
-
u.fragment && u.fragment.l(
|
|
469
|
+
const c = Jr(t.target);
|
|
470
|
+
u.fragment && u.fragment.l(c), c.forEach(D);
|
|
471
471
|
} else
|
|
472
472
|
u.fragment && u.fragment.c();
|
|
473
|
-
t.intro &&
|
|
473
|
+
t.intro && qt(e.$$.fragment), mn(e, t.target, t.anchor), I();
|
|
474
474
|
}
|
|
475
475
|
ie(l);
|
|
476
476
|
}
|
|
477
|
-
let
|
|
478
|
-
typeof HTMLElement == "function" && (
|
|
479
|
-
constructor(t,
|
|
477
|
+
let Yt;
|
|
478
|
+
typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
479
|
+
constructor(t, r, n) {
|
|
480
480
|
super();
|
|
481
481
|
/** The Svelte component constructor */
|
|
482
482
|
O(this, "$$ctor");
|
|
@@ -496,30 +496,30 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
496
496
|
O(this, "$$l", {});
|
|
497
497
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
498
498
|
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
499
|
-
this.$$ctor = t, this.$$s =
|
|
499
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
500
500
|
}
|
|
501
|
-
addEventListener(t,
|
|
502
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
503
|
-
const i = this.$$c.$on(t,
|
|
504
|
-
this.$$l_u.set(
|
|
501
|
+
addEventListener(t, r, n) {
|
|
502
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
503
|
+
const i = this.$$c.$on(t, r);
|
|
504
|
+
this.$$l_u.set(r, i);
|
|
505
505
|
}
|
|
506
|
-
super.addEventListener(t,
|
|
506
|
+
super.addEventListener(t, r, n);
|
|
507
507
|
}
|
|
508
|
-
removeEventListener(t,
|
|
509
|
-
if (super.removeEventListener(t,
|
|
510
|
-
const i = this.$$l_u.get(
|
|
511
|
-
i && (i(), this.$$l_u.delete(
|
|
508
|
+
removeEventListener(t, r, n) {
|
|
509
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
510
|
+
const i = this.$$l_u.get(r);
|
|
511
|
+
i && (i(), this.$$l_u.delete(r));
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
connectedCallback() {
|
|
515
|
-
return
|
|
515
|
+
return dt(this, null, function* () {
|
|
516
516
|
if (this.$$cn = !0, !this.$$c) {
|
|
517
517
|
let t = function(o) {
|
|
518
518
|
return () => {
|
|
519
519
|
let s;
|
|
520
520
|
return {
|
|
521
521
|
c: function() {
|
|
522
|
-
s = M("slot"), o !== "default" &&
|
|
522
|
+
s = M("slot"), o !== "default" && H(s, "name", o);
|
|
523
523
|
},
|
|
524
524
|
/**
|
|
525
525
|
* @param {HTMLElement} target
|
|
@@ -536,9 +536,9 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
536
536
|
};
|
|
537
537
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
538
538
|
return;
|
|
539
|
-
const
|
|
539
|
+
const r = {}, n = Yr(this);
|
|
540
540
|
for (const o of this.$$s)
|
|
541
|
-
o in
|
|
541
|
+
o in n && (r[o] = [t(o)]);
|
|
542
542
|
for (const o of this.attributes) {
|
|
543
543
|
const s = this.$$g_p(o.name);
|
|
544
544
|
s in this.$$d || (this.$$d[s] = be(s, o.value, this.$$p_d, "toProp"));
|
|
@@ -547,8 +547,8 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
547
547
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
548
548
|
this.$$c = new this.$$ctor({
|
|
549
549
|
target: this.shadowRoot || this,
|
|
550
|
-
props: ft(
|
|
551
|
-
$$slots:
|
|
550
|
+
props: mt(ft({}, this.$$d), {
|
|
551
|
+
$$slots: r,
|
|
552
552
|
$$scope: {
|
|
553
553
|
ctx: []
|
|
554
554
|
}
|
|
@@ -580,9 +580,9 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
580
580
|
}
|
|
581
581
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
582
582
|
// and setting attributes through setAttribute etc, this is helpful
|
|
583
|
-
attributeChangedCallback(t,
|
|
583
|
+
attributeChangedCallback(t, r, n) {
|
|
584
584
|
var i;
|
|
585
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = be(t,
|
|
585
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = be(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
586
586
|
}
|
|
587
587
|
disconnectedCallback() {
|
|
588
588
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -591,16 +591,16 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
591
591
|
}
|
|
592
592
|
$$g_p(t) {
|
|
593
593
|
return Object.keys(this.$$p_d).find(
|
|
594
|
-
(
|
|
594
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
595
595
|
) || t;
|
|
596
596
|
}
|
|
597
597
|
});
|
|
598
|
-
function be(e, t,
|
|
598
|
+
function be(e, t, r, n) {
|
|
599
599
|
var o;
|
|
600
|
-
const i = (o =
|
|
601
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
600
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
601
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
602
602
|
return t;
|
|
603
|
-
if (
|
|
603
|
+
if (n === "toAttribute")
|
|
604
604
|
switch (i) {
|
|
605
605
|
case "Object":
|
|
606
606
|
case "Array":
|
|
@@ -625,10 +625,10 @@ function be(e, t, n, r) {
|
|
|
625
625
|
return t;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
let s = class extends
|
|
628
|
+
function gn(e, t, r, n, i, o) {
|
|
629
|
+
let s = class extends Yt {
|
|
630
630
|
constructor() {
|
|
631
|
-
super(e,
|
|
631
|
+
super(e, r, i), this.$$p_d = t;
|
|
632
632
|
}
|
|
633
633
|
static get observedAttributes() {
|
|
634
634
|
return Object.keys(t).map(
|
|
@@ -646,7 +646,7 @@ function mr(e, t, n, r, i, o) {
|
|
|
646
646
|
l = be(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
647
647
|
}
|
|
648
648
|
});
|
|
649
|
-
}),
|
|
649
|
+
}), n.forEach((a) => {
|
|
650
650
|
Object.defineProperty(s.prototype, a, {
|
|
651
651
|
get() {
|
|
652
652
|
var l;
|
|
@@ -656,7 +656,7 @@ function mr(e, t, n, r, i, o) {
|
|
|
656
656
|
}), e.element = /** @type {any} */
|
|
657
657
|
s, s;
|
|
658
658
|
}
|
|
659
|
-
class
|
|
659
|
+
class yn {
|
|
660
660
|
constructor() {
|
|
661
661
|
/**
|
|
662
662
|
* ### PRIVATE API
|
|
@@ -677,7 +677,7 @@ class pr {
|
|
|
677
677
|
}
|
|
678
678
|
/** @returns {void} */
|
|
679
679
|
$destroy() {
|
|
680
|
-
|
|
680
|
+
dn(this, 1), this.$destroy = N;
|
|
681
681
|
}
|
|
682
682
|
/**
|
|
683
683
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -685,13 +685,13 @@ class pr {
|
|
|
685
685
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
686
686
|
* @returns {() => void}
|
|
687
687
|
*/
|
|
688
|
-
$on(t,
|
|
689
|
-
if (!Te(
|
|
688
|
+
$on(t, r) {
|
|
689
|
+
if (!Te(r))
|
|
690
690
|
return N;
|
|
691
|
-
const
|
|
692
|
-
return
|
|
693
|
-
const i =
|
|
694
|
-
i !== -1 &&
|
|
691
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
692
|
+
return n.push(r), () => {
|
|
693
|
+
const i = n.indexOf(r);
|
|
694
|
+
i !== -1 && n.splice(i, 1);
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
697
|
/**
|
|
@@ -699,11 +699,11 @@ class pr {
|
|
|
699
699
|
* @returns {void}
|
|
700
700
|
*/
|
|
701
701
|
$set(t) {
|
|
702
|
-
this.$$set && !
|
|
702
|
+
this.$$set && !Dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const
|
|
706
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
705
|
+
const vn = "4";
|
|
706
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vn);
|
|
707
707
|
/*! *****************************************************************************
|
|
708
708
|
Copyright (c) Microsoft Corporation.
|
|
709
709
|
|
|
@@ -718,67 +718,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
718
718
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
719
719
|
PERFORMANCE OF THIS SOFTWARE.
|
|
720
720
|
***************************************************************************** */
|
|
721
|
-
var
|
|
722
|
-
return
|
|
723
|
-
|
|
724
|
-
} || function(
|
|
725
|
-
for (var i in
|
|
726
|
-
Object.prototype.hasOwnProperty.call(
|
|
727
|
-
},
|
|
721
|
+
var Ve = function(e, t) {
|
|
722
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
723
|
+
r.__proto__ = n;
|
|
724
|
+
} || function(r, n) {
|
|
725
|
+
for (var i in n)
|
|
726
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
727
|
+
}, Ve(e, t);
|
|
728
728
|
};
|
|
729
729
|
function $(e, t) {
|
|
730
730
|
if (typeof t != "function" && t !== null)
|
|
731
731
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
732
|
-
|
|
733
|
-
function
|
|
732
|
+
Ve(e, t);
|
|
733
|
+
function r() {
|
|
734
734
|
this.constructor = e;
|
|
735
735
|
}
|
|
736
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
736
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
737
737
|
}
|
|
738
738
|
var E = function() {
|
|
739
739
|
return E = Object.assign || function(t) {
|
|
740
|
-
for (var
|
|
741
|
-
|
|
742
|
-
for (var o in
|
|
743
|
-
Object.prototype.hasOwnProperty.call(
|
|
740
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
741
|
+
r = arguments[n];
|
|
742
|
+
for (var o in r)
|
|
743
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
744
744
|
}
|
|
745
745
|
return t;
|
|
746
746
|
}, E.apply(this, arguments);
|
|
747
747
|
};
|
|
748
|
-
function
|
|
749
|
-
var
|
|
750
|
-
for (var
|
|
751
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
748
|
+
function _n(e, t) {
|
|
749
|
+
var r = {};
|
|
750
|
+
for (var n in e)
|
|
751
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
752
752
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
753
|
-
for (var i = 0,
|
|
754
|
-
t.indexOf(
|
|
755
|
-
return
|
|
753
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
754
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
755
|
+
return r;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
759
|
-
if (
|
|
760
|
-
return
|
|
757
|
+
function Xe(e) {
|
|
758
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
759
|
+
if (r)
|
|
760
|
+
return r.call(e);
|
|
761
761
|
if (e && typeof e.length == "number")
|
|
762
762
|
return {
|
|
763
763
|
next: function() {
|
|
764
|
-
return e &&
|
|
764
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
765
765
|
}
|
|
766
766
|
};
|
|
767
767
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
var
|
|
771
|
-
if (!
|
|
769
|
+
function ze(e, t) {
|
|
770
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
771
|
+
if (!r)
|
|
772
772
|
return e;
|
|
773
|
-
var
|
|
773
|
+
var n = r.call(e), i, o = [], s;
|
|
774
774
|
try {
|
|
775
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
775
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
776
776
|
o.push(i.value);
|
|
777
777
|
} catch (a) {
|
|
778
778
|
s = { error: a };
|
|
779
779
|
} finally {
|
|
780
780
|
try {
|
|
781
|
-
i && !i.done && (
|
|
781
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
782
782
|
} finally {
|
|
783
783
|
if (s)
|
|
784
784
|
throw s.error;
|
|
@@ -786,34 +786,34 @@ function Xe(e, t) {
|
|
|
786
786
|
}
|
|
787
787
|
return o;
|
|
788
788
|
}
|
|
789
|
-
function Z(e, t,
|
|
790
|
-
if (
|
|
791
|
-
for (var
|
|
792
|
-
(o || !(
|
|
789
|
+
function Z(e, t, r) {
|
|
790
|
+
if (r || arguments.length === 2)
|
|
791
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
792
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
793
793
|
return e.concat(o || t);
|
|
794
794
|
}
|
|
795
795
|
function R(e) {
|
|
796
796
|
return typeof e == "function";
|
|
797
797
|
}
|
|
798
|
-
function
|
|
799
|
-
var t = function(
|
|
800
|
-
Error.call(
|
|
801
|
-
},
|
|
802
|
-
return
|
|
803
|
-
}
|
|
804
|
-
var Ne =
|
|
805
|
-
return function(
|
|
806
|
-
e(this), this.message =
|
|
807
|
-
` +
|
|
808
|
-
return i + 1 + ") " +
|
|
798
|
+
function Kt(e) {
|
|
799
|
+
var t = function(n) {
|
|
800
|
+
Error.call(n), n.stack = new Error().stack;
|
|
801
|
+
}, r = e(t);
|
|
802
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
803
|
+
}
|
|
804
|
+
var Ne = Kt(function(e) {
|
|
805
|
+
return function(r) {
|
|
806
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
807
|
+
` + r.map(function(n, i) {
|
|
808
|
+
return i + 1 + ") " + n.toString();
|
|
809
809
|
}).join(`
|
|
810
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
810
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
811
811
|
};
|
|
812
812
|
});
|
|
813
|
-
function
|
|
813
|
+
function We(e, t) {
|
|
814
814
|
if (e) {
|
|
815
|
-
var
|
|
816
|
-
0 <=
|
|
815
|
+
var r = e.indexOf(t);
|
|
816
|
+
0 <= r && e.splice(r, 1);
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
var He = function() {
|
|
@@ -821,14 +821,14 @@ var He = function() {
|
|
|
821
821
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
822
822
|
}
|
|
823
823
|
return e.prototype.unsubscribe = function() {
|
|
824
|
-
var t,
|
|
824
|
+
var t, r, n, i, o;
|
|
825
825
|
if (!this.closed) {
|
|
826
826
|
this.closed = !0;
|
|
827
827
|
var s = this._parentage;
|
|
828
828
|
if (s)
|
|
829
829
|
if (this._parentage = null, Array.isArray(s))
|
|
830
830
|
try {
|
|
831
|
-
for (var a =
|
|
831
|
+
for (var a = Xe(s), l = a.next(); !l.done; l = a.next()) {
|
|
832
832
|
var u = l.value;
|
|
833
833
|
u.remove(this);
|
|
834
834
|
}
|
|
@@ -836,7 +836,7 @@ var He = function() {
|
|
|
836
836
|
t = { error: p };
|
|
837
837
|
} finally {
|
|
838
838
|
try {
|
|
839
|
-
l && !l.done && (
|
|
839
|
+
l && !l.done && (r = a.return) && r.call(a);
|
|
840
840
|
} finally {
|
|
841
841
|
if (t)
|
|
842
842
|
throw t.error;
|
|
@@ -851,26 +851,26 @@ var He = function() {
|
|
|
851
851
|
} catch (p) {
|
|
852
852
|
o = p instanceof Ne ? p.errors : [p];
|
|
853
853
|
}
|
|
854
|
-
var
|
|
855
|
-
if (
|
|
854
|
+
var c = this._finalizers;
|
|
855
|
+
if (c) {
|
|
856
856
|
this._finalizers = null;
|
|
857
857
|
try {
|
|
858
|
-
for (var
|
|
859
|
-
var
|
|
858
|
+
for (var f = Xe(c), d = f.next(); !d.done; d = f.next()) {
|
|
859
|
+
var m = d.value;
|
|
860
860
|
try {
|
|
861
|
-
|
|
861
|
+
vt(m);
|
|
862
862
|
} catch (p) {
|
|
863
|
-
o = o != null ? o : [], p instanceof Ne ? o = Z(Z([],
|
|
863
|
+
o = o != null ? o : [], p instanceof Ne ? o = Z(Z([], ze(o)), ze(p.errors)) : o.push(p);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
} catch (p) {
|
|
867
|
-
|
|
867
|
+
n = { error: p };
|
|
868
868
|
} finally {
|
|
869
869
|
try {
|
|
870
|
-
|
|
870
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
871
871
|
} finally {
|
|
872
|
-
if (
|
|
873
|
-
throw
|
|
872
|
+
if (n)
|
|
873
|
+
throw n.error;
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
}
|
|
@@ -878,89 +878,89 @@ var He = function() {
|
|
|
878
878
|
throw new Ne(o);
|
|
879
879
|
}
|
|
880
880
|
}, e.prototype.add = function(t) {
|
|
881
|
-
var
|
|
881
|
+
var r;
|
|
882
882
|
if (t && t !== this)
|
|
883
883
|
if (this.closed)
|
|
884
|
-
|
|
884
|
+
vt(t);
|
|
885
885
|
else {
|
|
886
886
|
if (t instanceof e) {
|
|
887
887
|
if (t.closed || t._hasParent(this))
|
|
888
888
|
return;
|
|
889
889
|
t._addParent(this);
|
|
890
890
|
}
|
|
891
|
-
(this._finalizers = (
|
|
891
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
892
892
|
}
|
|
893
893
|
}, e.prototype._hasParent = function(t) {
|
|
894
|
-
var
|
|
895
|
-
return
|
|
894
|
+
var r = this._parentage;
|
|
895
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
896
896
|
}, e.prototype._addParent = function(t) {
|
|
897
|
-
var
|
|
898
|
-
this._parentage = Array.isArray(
|
|
897
|
+
var r = this._parentage;
|
|
898
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
899
899
|
}, e.prototype._removeParent = function(t) {
|
|
900
|
-
var
|
|
901
|
-
|
|
900
|
+
var r = this._parentage;
|
|
901
|
+
r === t ? this._parentage = null : Array.isArray(r) && We(r, t);
|
|
902
902
|
}, e.prototype.remove = function(t) {
|
|
903
|
-
var
|
|
904
|
-
|
|
903
|
+
var r = this._finalizers;
|
|
904
|
+
r && We(r, t), t instanceof e && t._removeParent(this);
|
|
905
905
|
}, e.EMPTY = function() {
|
|
906
906
|
var t = new e();
|
|
907
907
|
return t.closed = !0, t;
|
|
908
908
|
}(), e;
|
|
909
|
-
}(),
|
|
910
|
-
function
|
|
909
|
+
}(), er = He.EMPTY;
|
|
910
|
+
function tr(e) {
|
|
911
911
|
return e instanceof He || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function vt(e) {
|
|
914
914
|
R(e) ? e() : e.unsubscribe();
|
|
915
915
|
}
|
|
916
|
-
var
|
|
916
|
+
var rr = {
|
|
917
917
|
onUnhandledError: null,
|
|
918
918
|
onStoppedNotification: null,
|
|
919
919
|
Promise: void 0,
|
|
920
920
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
921
921
|
useDeprecatedNextContext: !1
|
|
922
|
-
},
|
|
922
|
+
}, xn = {
|
|
923
923
|
setTimeout: function(e, t) {
|
|
924
|
-
for (var
|
|
925
|
-
n
|
|
926
|
-
return setTimeout.apply(void 0, Z([e, t],
|
|
924
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
925
|
+
r[n - 2] = arguments[n];
|
|
926
|
+
return setTimeout.apply(void 0, Z([e, t], ze(r)));
|
|
927
927
|
},
|
|
928
928
|
clearTimeout: function(e) {
|
|
929
929
|
return clearTimeout(e);
|
|
930
930
|
},
|
|
931
931
|
delegate: void 0
|
|
932
932
|
};
|
|
933
|
-
function
|
|
934
|
-
|
|
933
|
+
function En(e) {
|
|
934
|
+
xn.setTimeout(function() {
|
|
935
935
|
throw e;
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function _t() {
|
|
939
939
|
}
|
|
940
940
|
function ge(e) {
|
|
941
941
|
e();
|
|
942
942
|
}
|
|
943
|
-
var
|
|
943
|
+
var nr = function(e) {
|
|
944
944
|
$(t, e);
|
|
945
|
-
function t(
|
|
946
|
-
var
|
|
947
|
-
return
|
|
945
|
+
function t(r) {
|
|
946
|
+
var n = e.call(this) || this;
|
|
947
|
+
return n.isStopped = !1, r ? (n.destination = r, tr(r) && r.add(n)) : n.destination = Hn, n;
|
|
948
948
|
}
|
|
949
|
-
return t.create = function(
|
|
950
|
-
return new
|
|
951
|
-
}, t.prototype.next = function(
|
|
952
|
-
this.isStopped || this._next(
|
|
953
|
-
}, t.prototype.error = function(
|
|
954
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
949
|
+
return t.create = function(r, n, i) {
|
|
950
|
+
return new Ze(r, n, i);
|
|
951
|
+
}, t.prototype.next = function(r) {
|
|
952
|
+
this.isStopped || this._next(r);
|
|
953
|
+
}, t.prototype.error = function(r) {
|
|
954
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
955
955
|
}, t.prototype.complete = function() {
|
|
956
956
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
957
957
|
}, t.prototype.unsubscribe = function() {
|
|
958
958
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
959
|
-
}, t.prototype._next = function(
|
|
960
|
-
this.destination.next(
|
|
961
|
-
}, t.prototype._error = function(
|
|
959
|
+
}, t.prototype._next = function(r) {
|
|
960
|
+
this.destination.next(r);
|
|
961
|
+
}, t.prototype._error = function(r) {
|
|
962
962
|
try {
|
|
963
|
-
this.destination.error(
|
|
963
|
+
this.destination.error(r);
|
|
964
964
|
} finally {
|
|
965
965
|
this.unsubscribe();
|
|
966
966
|
}
|
|
@@ -971,82 +971,98 @@ var en = function(e) {
|
|
|
971
971
|
this.unsubscribe();
|
|
972
972
|
}
|
|
973
973
|
}, t;
|
|
974
|
-
}(He),
|
|
974
|
+
}(He), wn = Function.prototype.bind;
|
|
975
|
+
function Le(e, t) {
|
|
976
|
+
return wn.call(e, t);
|
|
977
|
+
}
|
|
978
|
+
var Sn = function() {
|
|
975
979
|
function e(t) {
|
|
976
980
|
this.partialObserver = t;
|
|
977
981
|
}
|
|
978
982
|
return e.prototype.next = function(t) {
|
|
979
|
-
var
|
|
980
|
-
if (
|
|
983
|
+
var r = this.partialObserver;
|
|
984
|
+
if (r.next)
|
|
981
985
|
try {
|
|
982
|
-
|
|
983
|
-
} catch (
|
|
984
|
-
|
|
986
|
+
r.next(t);
|
|
987
|
+
} catch (n) {
|
|
988
|
+
me(n);
|
|
985
989
|
}
|
|
986
990
|
}, e.prototype.error = function(t) {
|
|
987
|
-
var
|
|
988
|
-
if (
|
|
991
|
+
var r = this.partialObserver;
|
|
992
|
+
if (r.error)
|
|
989
993
|
try {
|
|
990
|
-
|
|
991
|
-
} catch (
|
|
992
|
-
|
|
994
|
+
r.error(t);
|
|
995
|
+
} catch (n) {
|
|
996
|
+
me(n);
|
|
993
997
|
}
|
|
994
998
|
else
|
|
995
|
-
|
|
999
|
+
me(t);
|
|
996
1000
|
}, e.prototype.complete = function() {
|
|
997
1001
|
var t = this.partialObserver;
|
|
998
1002
|
if (t.complete)
|
|
999
1003
|
try {
|
|
1000
1004
|
t.complete();
|
|
1001
|
-
} catch (
|
|
1002
|
-
|
|
1005
|
+
} catch (r) {
|
|
1006
|
+
me(r);
|
|
1003
1007
|
}
|
|
1004
1008
|
}, e;
|
|
1005
|
-
}(),
|
|
1009
|
+
}(), Ze = function(e) {
|
|
1006
1010
|
$(t, e);
|
|
1007
|
-
function t(
|
|
1011
|
+
function t(r, n, i) {
|
|
1008
1012
|
var o = e.call(this) || this, s;
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1013
|
+
if (R(r) || !r)
|
|
1014
|
+
s = {
|
|
1015
|
+
next: r != null ? r : void 0,
|
|
1016
|
+
error: n != null ? n : void 0,
|
|
1017
|
+
complete: i != null ? i : void 0
|
|
1018
|
+
};
|
|
1019
|
+
else {
|
|
1020
|
+
var a;
|
|
1021
|
+
o && rr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
1022
|
+
return o.unsubscribe();
|
|
1023
|
+
}, s = {
|
|
1024
|
+
next: r.next && Le(r.next, a),
|
|
1025
|
+
error: r.error && Le(r.error, a),
|
|
1026
|
+
complete: r.complete && Le(r.complete, a)
|
|
1027
|
+
}) : s = r;
|
|
1028
|
+
}
|
|
1029
|
+
return o.destination = new Sn(s), o;
|
|
1014
1030
|
}
|
|
1015
1031
|
return t;
|
|
1016
|
-
}(
|
|
1017
|
-
function
|
|
1018
|
-
|
|
1032
|
+
}(nr);
|
|
1033
|
+
function me(e) {
|
|
1034
|
+
En(e);
|
|
1019
1035
|
}
|
|
1020
|
-
function
|
|
1036
|
+
function Tn(e) {
|
|
1021
1037
|
throw e;
|
|
1022
1038
|
}
|
|
1023
|
-
var
|
|
1039
|
+
var Hn = {
|
|
1024
1040
|
closed: !0,
|
|
1025
|
-
next:
|
|
1026
|
-
error:
|
|
1027
|
-
complete:
|
|
1028
|
-
},
|
|
1041
|
+
next: _t,
|
|
1042
|
+
error: Tn,
|
|
1043
|
+
complete: _t
|
|
1044
|
+
}, An = function() {
|
|
1029
1045
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1030
1046
|
}();
|
|
1031
|
-
function
|
|
1047
|
+
function Bn(e) {
|
|
1032
1048
|
return e;
|
|
1033
1049
|
}
|
|
1034
|
-
function
|
|
1035
|
-
return e.length === 0 ?
|
|
1036
|
-
return e.reduce(function(
|
|
1037
|
-
return i(
|
|
1038
|
-
},
|
|
1050
|
+
function Cn(e) {
|
|
1051
|
+
return e.length === 0 ? Bn : e.length === 1 ? e[0] : function(r) {
|
|
1052
|
+
return e.reduce(function(n, i) {
|
|
1053
|
+
return i(n);
|
|
1054
|
+
}, r);
|
|
1039
1055
|
};
|
|
1040
1056
|
}
|
|
1041
|
-
var
|
|
1057
|
+
var xt = function() {
|
|
1042
1058
|
function e(t) {
|
|
1043
1059
|
t && (this._subscribe = t);
|
|
1044
1060
|
}
|
|
1045
1061
|
return e.prototype.lift = function(t) {
|
|
1046
|
-
var
|
|
1047
|
-
return
|
|
1048
|
-
}, e.prototype.subscribe = function(t,
|
|
1049
|
-
var i = this, o =
|
|
1062
|
+
var r = new e();
|
|
1063
|
+
return r.source = this, r.operator = t, r;
|
|
1064
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
1065
|
+
var i = this, o = On(t) ? t : new Ze(t, r, n);
|
|
1050
1066
|
return ge(function() {
|
|
1051
1067
|
var s = i, a = s.operator, l = s.source;
|
|
1052
1068
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -1054,13 +1070,13 @@ var vt = function() {
|
|
|
1054
1070
|
}, e.prototype._trySubscribe = function(t) {
|
|
1055
1071
|
try {
|
|
1056
1072
|
return this._subscribe(t);
|
|
1057
|
-
} catch (
|
|
1058
|
-
t.error(
|
|
1073
|
+
} catch (r) {
|
|
1074
|
+
t.error(r);
|
|
1059
1075
|
}
|
|
1060
|
-
}, e.prototype.forEach = function(t,
|
|
1061
|
-
var
|
|
1062
|
-
return
|
|
1063
|
-
var s = new
|
|
1076
|
+
}, e.prototype.forEach = function(t, r) {
|
|
1077
|
+
var n = this;
|
|
1078
|
+
return r = Et(r), new r(function(i, o) {
|
|
1079
|
+
var s = new Ze({
|
|
1064
1080
|
next: function(a) {
|
|
1065
1081
|
try {
|
|
1066
1082
|
t(a);
|
|
@@ -1071,69 +1087,69 @@ var vt = function() {
|
|
|
1071
1087
|
error: o,
|
|
1072
1088
|
complete: i
|
|
1073
1089
|
});
|
|
1074
|
-
|
|
1090
|
+
n.subscribe(s);
|
|
1075
1091
|
});
|
|
1076
1092
|
}, e.prototype._subscribe = function(t) {
|
|
1077
|
-
var
|
|
1078
|
-
return (
|
|
1079
|
-
}, e.prototype[
|
|
1093
|
+
var r;
|
|
1094
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1095
|
+
}, e.prototype[An] = function() {
|
|
1080
1096
|
return this;
|
|
1081
1097
|
}, e.prototype.pipe = function() {
|
|
1082
|
-
for (var t = [],
|
|
1083
|
-
t[
|
|
1084
|
-
return
|
|
1098
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1099
|
+
t[r] = arguments[r];
|
|
1100
|
+
return Cn(t)(this);
|
|
1085
1101
|
}, e.prototype.toPromise = function(t) {
|
|
1086
|
-
var
|
|
1087
|
-
return t =
|
|
1102
|
+
var r = this;
|
|
1103
|
+
return t = Et(t), new t(function(n, i) {
|
|
1088
1104
|
var o;
|
|
1089
|
-
|
|
1105
|
+
r.subscribe(function(s) {
|
|
1090
1106
|
return o = s;
|
|
1091
1107
|
}, function(s) {
|
|
1092
1108
|
return i(s);
|
|
1093
1109
|
}, function() {
|
|
1094
|
-
return
|
|
1110
|
+
return n(o);
|
|
1095
1111
|
});
|
|
1096
1112
|
});
|
|
1097
1113
|
}, e.create = function(t) {
|
|
1098
1114
|
return new e(t);
|
|
1099
1115
|
}, e;
|
|
1100
1116
|
}();
|
|
1101
|
-
function
|
|
1117
|
+
function Et(e) {
|
|
1102
1118
|
var t;
|
|
1103
|
-
return (t = e != null ? e :
|
|
1119
|
+
return (t = e != null ? e : rr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1104
1120
|
}
|
|
1105
|
-
function
|
|
1121
|
+
function Pn(e) {
|
|
1106
1122
|
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
1107
1123
|
}
|
|
1108
|
-
function
|
|
1109
|
-
return e && e instanceof
|
|
1124
|
+
function On(e) {
|
|
1125
|
+
return e && e instanceof nr || Pn(e) && tr(e);
|
|
1110
1126
|
}
|
|
1111
|
-
var
|
|
1127
|
+
var In = Kt(function(e) {
|
|
1112
1128
|
return function() {
|
|
1113
1129
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1114
1130
|
};
|
|
1115
|
-
}),
|
|
1131
|
+
}), ir = function(e) {
|
|
1116
1132
|
$(t, e);
|
|
1117
1133
|
function t() {
|
|
1118
|
-
var
|
|
1119
|
-
return
|
|
1134
|
+
var r = e.call(this) || this;
|
|
1135
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1120
1136
|
}
|
|
1121
|
-
return t.prototype.lift = function(
|
|
1122
|
-
var
|
|
1123
|
-
return
|
|
1137
|
+
return t.prototype.lift = function(r) {
|
|
1138
|
+
var n = new wt(this, this);
|
|
1139
|
+
return n.operator = r, n;
|
|
1124
1140
|
}, t.prototype._throwIfClosed = function() {
|
|
1125
1141
|
if (this.closed)
|
|
1126
|
-
throw new
|
|
1127
|
-
}, t.prototype.next = function(
|
|
1128
|
-
var
|
|
1142
|
+
throw new In();
|
|
1143
|
+
}, t.prototype.next = function(r) {
|
|
1144
|
+
var n = this;
|
|
1129
1145
|
ge(function() {
|
|
1130
1146
|
var i, o;
|
|
1131
|
-
if (
|
|
1132
|
-
|
|
1147
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1148
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1133
1149
|
try {
|
|
1134
|
-
for (var s =
|
|
1150
|
+
for (var s = Xe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
1135
1151
|
var l = a.value;
|
|
1136
|
-
l.next(
|
|
1152
|
+
l.next(r);
|
|
1137
1153
|
}
|
|
1138
1154
|
} catch (u) {
|
|
1139
1155
|
i = { error: u };
|
|
@@ -1147,118 +1163,118 @@ var Cr = qt(function(e) {
|
|
|
1147
1163
|
}
|
|
1148
1164
|
}
|
|
1149
1165
|
});
|
|
1150
|
-
}, t.prototype.error = function(
|
|
1151
|
-
var
|
|
1166
|
+
}, t.prototype.error = function(r) {
|
|
1167
|
+
var n = this;
|
|
1152
1168
|
ge(function() {
|
|
1153
|
-
if (
|
|
1154
|
-
|
|
1155
|
-
for (var i =
|
|
1156
|
-
i.shift().error(
|
|
1169
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1170
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1171
|
+
for (var i = n.observers; i.length; )
|
|
1172
|
+
i.shift().error(r);
|
|
1157
1173
|
}
|
|
1158
1174
|
});
|
|
1159
1175
|
}, t.prototype.complete = function() {
|
|
1160
|
-
var
|
|
1176
|
+
var r = this;
|
|
1161
1177
|
ge(function() {
|
|
1162
|
-
if (
|
|
1163
|
-
|
|
1164
|
-
for (var
|
|
1165
|
-
|
|
1178
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1179
|
+
r.isStopped = !0;
|
|
1180
|
+
for (var n = r.observers; n.length; )
|
|
1181
|
+
n.shift().complete();
|
|
1166
1182
|
}
|
|
1167
1183
|
});
|
|
1168
1184
|
}, t.prototype.unsubscribe = function() {
|
|
1169
1185
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1170
1186
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1171
1187
|
get: function() {
|
|
1172
|
-
var
|
|
1173
|
-
return ((
|
|
1188
|
+
var r;
|
|
1189
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1174
1190
|
},
|
|
1175
1191
|
enumerable: !1,
|
|
1176
1192
|
configurable: !0
|
|
1177
|
-
}), t.prototype._trySubscribe = function(
|
|
1178
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1179
|
-
}, t.prototype._subscribe = function(
|
|
1180
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1181
|
-
}, t.prototype._innerSubscribe = function(
|
|
1182
|
-
var
|
|
1183
|
-
return o || s ?
|
|
1184
|
-
|
|
1193
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1194
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1195
|
+
}, t.prototype._subscribe = function(r) {
|
|
1196
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1197
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1198
|
+
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1199
|
+
return o || s ? er : (this.currentObservers = null, a.push(r), new He(function() {
|
|
1200
|
+
n.currentObservers = null, We(a, r);
|
|
1185
1201
|
}));
|
|
1186
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1187
|
-
var
|
|
1188
|
-
i ?
|
|
1202
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1203
|
+
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1204
|
+
i ? r.error(o) : s && r.complete();
|
|
1189
1205
|
}, t.prototype.asObservable = function() {
|
|
1190
|
-
var
|
|
1191
|
-
return
|
|
1192
|
-
}, t.create = function(
|
|
1193
|
-
return new
|
|
1206
|
+
var r = new xt();
|
|
1207
|
+
return r.source = this, r;
|
|
1208
|
+
}, t.create = function(r, n) {
|
|
1209
|
+
return new wt(r, n);
|
|
1194
1210
|
}, t;
|
|
1195
|
-
}(
|
|
1211
|
+
}(xt), wt = function(e) {
|
|
1196
1212
|
$(t, e);
|
|
1197
|
-
function t(
|
|
1213
|
+
function t(r, n) {
|
|
1198
1214
|
var i = e.call(this) || this;
|
|
1199
|
-
return i.destination =
|
|
1215
|
+
return i.destination = r, i.source = n, i;
|
|
1200
1216
|
}
|
|
1201
|
-
return t.prototype.next = function(
|
|
1202
|
-
var
|
|
1203
|
-
(i = (
|
|
1204
|
-
}, t.prototype.error = function(
|
|
1205
|
-
var
|
|
1206
|
-
(i = (
|
|
1217
|
+
return t.prototype.next = function(r) {
|
|
1218
|
+
var n, i;
|
|
1219
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1220
|
+
}, t.prototype.error = function(r) {
|
|
1221
|
+
var n, i;
|
|
1222
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1207
1223
|
}, t.prototype.complete = function() {
|
|
1208
|
-
var
|
|
1209
|
-
(
|
|
1210
|
-
}, t.prototype._subscribe = function(
|
|
1211
|
-
var
|
|
1212
|
-
return (i = (
|
|
1224
|
+
var r, n;
|
|
1225
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1226
|
+
}, t.prototype._subscribe = function(r) {
|
|
1227
|
+
var n, i;
|
|
1228
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : er;
|
|
1213
1229
|
}, t;
|
|
1214
|
-
}(
|
|
1230
|
+
}(ir), or = {
|
|
1215
1231
|
now: function() {
|
|
1216
|
-
return (
|
|
1232
|
+
return (or.delegate || Date).now();
|
|
1217
1233
|
},
|
|
1218
1234
|
delegate: void 0
|
|
1219
|
-
},
|
|
1235
|
+
}, Mn = function(e) {
|
|
1220
1236
|
$(t, e);
|
|
1221
|
-
function t(
|
|
1222
|
-
|
|
1237
|
+
function t(r, n, i) {
|
|
1238
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = or);
|
|
1223
1239
|
var o = e.call(this) || this;
|
|
1224
|
-
return o._bufferSize =
|
|
1240
|
+
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1225
1241
|
}
|
|
1226
|
-
return t.prototype.next = function(
|
|
1227
|
-
var
|
|
1228
|
-
i || (o.push(
|
|
1229
|
-
}, t.prototype._subscribe = function(
|
|
1242
|
+
return t.prototype.next = function(r) {
|
|
1243
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
1244
|
+
i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1245
|
+
}, t.prototype._subscribe = function(r) {
|
|
1230
1246
|
this._throwIfClosed(), this._trimBuffer();
|
|
1231
|
-
for (var
|
|
1232
|
-
|
|
1233
|
-
return this._checkFinalizedStatuses(
|
|
1247
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
|
|
1248
|
+
r.next(a[l]);
|
|
1249
|
+
return this._checkFinalizedStatuses(r), n;
|
|
1234
1250
|
}, t.prototype._trimBuffer = function() {
|
|
1235
|
-
var
|
|
1236
|
-
if (
|
|
1251
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1252
|
+
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1237
1253
|
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1238
1254
|
u = h;
|
|
1239
1255
|
u && o.splice(0, u + 1);
|
|
1240
1256
|
}
|
|
1241
1257
|
}, t;
|
|
1242
|
-
}(
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1258
|
+
}(ir);
|
|
1259
|
+
const St = [], Tt = {}, Nn = (e, t = 0) => {
|
|
1260
|
+
if (St.indexOf(e) == -1) {
|
|
1261
|
+
const r = new Mn(t);
|
|
1262
|
+
Tt[e] = r, St.push(e);
|
|
1247
1263
|
}
|
|
1248
|
-
return
|
|
1264
|
+
return Tt[e];
|
|
1249
1265
|
}, V = [];
|
|
1250
|
-
function
|
|
1266
|
+
function Ln(e, t) {
|
|
1251
1267
|
return {
|
|
1252
1268
|
subscribe: Ae(e, t).subscribe
|
|
1253
1269
|
};
|
|
1254
1270
|
}
|
|
1255
1271
|
function Ae(e, t = N) {
|
|
1256
|
-
let
|
|
1257
|
-
const
|
|
1272
|
+
let r;
|
|
1273
|
+
const n = /* @__PURE__ */ new Set();
|
|
1258
1274
|
function i(a) {
|
|
1259
|
-
if (
|
|
1275
|
+
if (Xt(e, a) && (e = a, r)) {
|
|
1260
1276
|
const l = !V.length;
|
|
1261
|
-
for (const u of
|
|
1277
|
+
for (const u of n)
|
|
1262
1278
|
u[1](), V.push(u, e);
|
|
1263
1279
|
if (l) {
|
|
1264
1280
|
for (let u = 0; u < V.length; u += 2)
|
|
@@ -1272,170 +1288,168 @@ function Ae(e, t = N) {
|
|
|
1272
1288
|
}
|
|
1273
1289
|
function s(a, l = N) {
|
|
1274
1290
|
const u = [a, l];
|
|
1275
|
-
return
|
|
1276
|
-
|
|
1291
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
1292
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1277
1293
|
};
|
|
1278
1294
|
}
|
|
1279
1295
|
return { set: i, update: o, subscribe: s };
|
|
1280
1296
|
}
|
|
1281
|
-
function K(e, t,
|
|
1282
|
-
const
|
|
1297
|
+
function K(e, t, r) {
|
|
1298
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1283
1299
|
if (!i.every(Boolean))
|
|
1284
1300
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1285
1301
|
const o = t.length < 2;
|
|
1286
|
-
return
|
|
1302
|
+
return Ln(r, (s, a) => {
|
|
1287
1303
|
let l = !1;
|
|
1288
1304
|
const u = [];
|
|
1289
|
-
let h = 0,
|
|
1290
|
-
const
|
|
1305
|
+
let h = 0, c = N;
|
|
1306
|
+
const f = () => {
|
|
1291
1307
|
if (h)
|
|
1292
1308
|
return;
|
|
1293
|
-
|
|
1294
|
-
const
|
|
1295
|
-
o ? s(
|
|
1296
|
-
},
|
|
1297
|
-
(
|
|
1298
|
-
|
|
1309
|
+
c();
|
|
1310
|
+
const m = t(n ? u[0] : u, s, a);
|
|
1311
|
+
o ? s(m) : c = Te(m) ? m : N;
|
|
1312
|
+
}, d = i.map(
|
|
1313
|
+
(m, p) => zt(
|
|
1314
|
+
m,
|
|
1299
1315
|
(g) => {
|
|
1300
|
-
u[p] = g, h &= ~(1 << p), l &&
|
|
1316
|
+
u[p] = g, h &= ~(1 << p), l && f();
|
|
1301
1317
|
},
|
|
1302
1318
|
() => {
|
|
1303
1319
|
h |= 1 << p;
|
|
1304
1320
|
}
|
|
1305
1321
|
)
|
|
1306
1322
|
);
|
|
1307
|
-
return l = !0,
|
|
1308
|
-
U(
|
|
1323
|
+
return l = !0, f(), function() {
|
|
1324
|
+
U(d), c(), l = !1;
|
|
1309
1325
|
};
|
|
1310
1326
|
});
|
|
1311
1327
|
}
|
|
1312
|
-
var
|
|
1313
|
-
function
|
|
1328
|
+
var jo = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1329
|
+
function Rn(e) {
|
|
1314
1330
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1315
1331
|
}
|
|
1316
|
-
var
|
|
1317
|
-
return
|
|
1332
|
+
var $n = function(t) {
|
|
1333
|
+
return Gn(t) && !Un(t);
|
|
1318
1334
|
};
|
|
1319
|
-
function
|
|
1335
|
+
function Gn(e) {
|
|
1320
1336
|
return !!e && typeof e == "object";
|
|
1321
1337
|
}
|
|
1322
|
-
function
|
|
1338
|
+
function Un(e) {
|
|
1323
1339
|
var t = Object.prototype.toString.call(e);
|
|
1324
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1340
|
+
return t === "[object RegExp]" || t === "[object Date]" || jn(e);
|
|
1325
1341
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1328
|
-
return e.$$typeof ===
|
|
1342
|
+
var Dn = typeof Symbol == "function" && Symbol.for, Fn = Dn ? Symbol.for("react.element") : 60103;
|
|
1343
|
+
function jn(e) {
|
|
1344
|
+
return e.$$typeof === Fn;
|
|
1329
1345
|
}
|
|
1330
|
-
function
|
|
1346
|
+
function kn(e) {
|
|
1331
1347
|
return Array.isArray(e) ? [] : {};
|
|
1332
1348
|
}
|
|
1333
1349
|
function se(e, t) {
|
|
1334
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
1350
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(kn(e), e, t) : e;
|
|
1335
1351
|
}
|
|
1336
|
-
function
|
|
1337
|
-
return e.concat(t).map(function(
|
|
1338
|
-
return se(
|
|
1352
|
+
function Vn(e, t, r) {
|
|
1353
|
+
return e.concat(t).map(function(n) {
|
|
1354
|
+
return se(n, r);
|
|
1339
1355
|
});
|
|
1340
1356
|
}
|
|
1341
|
-
function
|
|
1357
|
+
function Xn(e, t) {
|
|
1342
1358
|
if (!t.customMerge)
|
|
1343
1359
|
return Q;
|
|
1344
|
-
var
|
|
1345
|
-
return typeof
|
|
1360
|
+
var r = t.customMerge(e);
|
|
1361
|
+
return typeof r == "function" ? r : Q;
|
|
1346
1362
|
}
|
|
1347
|
-
function
|
|
1363
|
+
function zn(e) {
|
|
1348
1364
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1349
1365
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1350
1366
|
}) : [];
|
|
1351
1367
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return Object.keys(e).concat(
|
|
1368
|
+
function Ht(e) {
|
|
1369
|
+
return Object.keys(e).concat(zn(e));
|
|
1354
1370
|
}
|
|
1355
|
-
function
|
|
1371
|
+
function sr(e, t) {
|
|
1356
1372
|
try {
|
|
1357
1373
|
return t in e;
|
|
1358
|
-
} catch (
|
|
1374
|
+
} catch (r) {
|
|
1359
1375
|
return !1;
|
|
1360
1376
|
}
|
|
1361
1377
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return
|
|
1378
|
+
function Wn(e, t) {
|
|
1379
|
+
return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1364
1380
|
}
|
|
1365
|
-
function
|
|
1366
|
-
var
|
|
1367
|
-
return
|
|
1368
|
-
|
|
1369
|
-
}),
|
|
1370
|
-
|
|
1371
|
-
}),
|
|
1372
|
-
}
|
|
1373
|
-
function Q(e, t,
|
|
1374
|
-
|
|
1375
|
-
var
|
|
1376
|
-
return o ?
|
|
1377
|
-
}
|
|
1378
|
-
Q.all = function(t,
|
|
1381
|
+
function Zn(e, t, r) {
|
|
1382
|
+
var n = {};
|
|
1383
|
+
return r.isMergeableObject(e) && Ht(e).forEach(function(i) {
|
|
1384
|
+
n[i] = se(e[i], r);
|
|
1385
|
+
}), Ht(t).forEach(function(i) {
|
|
1386
|
+
Wn(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Xn(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
1387
|
+
}), n;
|
|
1388
|
+
}
|
|
1389
|
+
function Q(e, t, r) {
|
|
1390
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Vn, r.isMergeableObject = r.isMergeableObject || $n, r.cloneUnlessOtherwiseSpecified = se;
|
|
1391
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1392
|
+
return o ? n ? r.arrayMerge(e, t, r) : Zn(e, t, r) : se(t, r);
|
|
1393
|
+
}
|
|
1394
|
+
Q.all = function(t, r) {
|
|
1379
1395
|
if (!Array.isArray(t))
|
|
1380
1396
|
throw new Error("first argument should be an array");
|
|
1381
|
-
return t.reduce(function(
|
|
1382
|
-
return Q(
|
|
1397
|
+
return t.reduce(function(n, i) {
|
|
1398
|
+
return Q(n, i, r);
|
|
1383
1399
|
}, {});
|
|
1384
1400
|
};
|
|
1385
|
-
var
|
|
1386
|
-
const
|
|
1387
|
-
function
|
|
1388
|
-
var
|
|
1401
|
+
var Qn = Q, Jn = Qn;
|
|
1402
|
+
const qn = /* @__PURE__ */ Rn(Jn);
|
|
1403
|
+
function Re(e, t) {
|
|
1404
|
+
var r = t && t.cache ? t.cache : ni, n = t && t.serializer ? t.serializer : ri, i = t && t.strategy ? t.strategy : Kn;
|
|
1389
1405
|
return i(e, {
|
|
1390
|
-
cache:
|
|
1391
|
-
serializer:
|
|
1406
|
+
cache: r,
|
|
1407
|
+
serializer: n
|
|
1392
1408
|
});
|
|
1393
1409
|
}
|
|
1394
|
-
function
|
|
1410
|
+
function Yn(e) {
|
|
1395
1411
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1396
1412
|
}
|
|
1397
|
-
function
|
|
1398
|
-
var i =
|
|
1399
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
1413
|
+
function ar(e, t, r, n) {
|
|
1414
|
+
var i = Yn(n) ? n : r(n), o = t.get(i);
|
|
1415
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1400
1416
|
}
|
|
1401
|
-
function
|
|
1402
|
-
var
|
|
1403
|
-
return typeof o == "undefined" && (o = e.apply(this,
|
|
1417
|
+
function ur(e, t, r) {
|
|
1418
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1419
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1404
1420
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return
|
|
1421
|
+
function st(e, t, r, n, i) {
|
|
1422
|
+
return r.bind(t, e, n, i);
|
|
1407
1423
|
}
|
|
1408
|
-
function
|
|
1409
|
-
var
|
|
1410
|
-
return
|
|
1424
|
+
function Kn(e, t) {
|
|
1425
|
+
var r = e.length === 1 ? ar : ur;
|
|
1426
|
+
return st(e, this, r, t.cache.create(), t.serializer);
|
|
1411
1427
|
}
|
|
1412
|
-
function
|
|
1413
|
-
return
|
|
1428
|
+
function ei(e, t) {
|
|
1429
|
+
return st(e, this, ur, t.cache.create(), t.serializer);
|
|
1414
1430
|
}
|
|
1415
|
-
function
|
|
1416
|
-
return
|
|
1431
|
+
function ti(e, t) {
|
|
1432
|
+
return st(e, this, ar, t.cache.create(), t.serializer);
|
|
1417
1433
|
}
|
|
1418
|
-
var
|
|
1434
|
+
var ri = function() {
|
|
1419
1435
|
return JSON.stringify(arguments);
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
}()
|
|
1432
|
-
), ti = {
|
|
1436
|
+
};
|
|
1437
|
+
function at() {
|
|
1438
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1439
|
+
}
|
|
1440
|
+
at.prototype.get = function(e) {
|
|
1441
|
+
return this.cache[e];
|
|
1442
|
+
};
|
|
1443
|
+
at.prototype.set = function(e, t) {
|
|
1444
|
+
this.cache[e] = t;
|
|
1445
|
+
};
|
|
1446
|
+
var ni = {
|
|
1433
1447
|
create: function() {
|
|
1434
|
-
return new
|
|
1448
|
+
return new at();
|
|
1435
1449
|
}
|
|
1436
|
-
},
|
|
1437
|
-
variadic:
|
|
1438
|
-
monadic:
|
|
1450
|
+
}, $e = {
|
|
1451
|
+
variadic: ei,
|
|
1452
|
+
monadic: ti
|
|
1439
1453
|
}, y;
|
|
1440
1454
|
(function(e) {
|
|
1441
1455
|
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";
|
|
@@ -1448,50 +1462,50 @@ var J;
|
|
|
1448
1462
|
(function(e) {
|
|
1449
1463
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1450
1464
|
})(J || (J = {}));
|
|
1451
|
-
function
|
|
1465
|
+
function At(e) {
|
|
1452
1466
|
return e.type === S.literal;
|
|
1453
1467
|
}
|
|
1454
|
-
function
|
|
1468
|
+
function ii(e) {
|
|
1455
1469
|
return e.type === S.argument;
|
|
1456
1470
|
}
|
|
1457
|
-
function
|
|
1471
|
+
function lr(e) {
|
|
1458
1472
|
return e.type === S.number;
|
|
1459
1473
|
}
|
|
1460
|
-
function
|
|
1474
|
+
function hr(e) {
|
|
1461
1475
|
return e.type === S.date;
|
|
1462
1476
|
}
|
|
1463
|
-
function
|
|
1477
|
+
function cr(e) {
|
|
1464
1478
|
return e.type === S.time;
|
|
1465
1479
|
}
|
|
1466
|
-
function
|
|
1480
|
+
function fr(e) {
|
|
1467
1481
|
return e.type === S.select;
|
|
1468
1482
|
}
|
|
1469
|
-
function
|
|
1483
|
+
function mr(e) {
|
|
1470
1484
|
return e.type === S.plural;
|
|
1471
1485
|
}
|
|
1472
|
-
function
|
|
1486
|
+
function oi(e) {
|
|
1473
1487
|
return e.type === S.pound;
|
|
1474
1488
|
}
|
|
1475
|
-
function
|
|
1489
|
+
function dr(e) {
|
|
1476
1490
|
return e.type === S.tag;
|
|
1477
1491
|
}
|
|
1478
|
-
function
|
|
1492
|
+
function pr(e) {
|
|
1479
1493
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
1480
1494
|
}
|
|
1481
|
-
function
|
|
1495
|
+
function Qe(e) {
|
|
1482
1496
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
1483
1497
|
}
|
|
1484
|
-
var
|
|
1485
|
-
function
|
|
1498
|
+
var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[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;
|
|
1499
|
+
function ai(e) {
|
|
1486
1500
|
var t = {};
|
|
1487
|
-
return e.replace(
|
|
1488
|
-
var
|
|
1489
|
-
switch (
|
|
1501
|
+
return e.replace(si, function(r) {
|
|
1502
|
+
var n = r.length;
|
|
1503
|
+
switch (r[0]) {
|
|
1490
1504
|
case "G":
|
|
1491
|
-
t.era =
|
|
1505
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1492
1506
|
break;
|
|
1493
1507
|
case "y":
|
|
1494
|
-
t.year =
|
|
1508
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1495
1509
|
break;
|
|
1496
1510
|
case "Y":
|
|
1497
1511
|
case "u":
|
|
@@ -1503,30 +1517,30 @@ function oi(e) {
|
|
|
1503
1517
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1504
1518
|
case "M":
|
|
1505
1519
|
case "L":
|
|
1506
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1520
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1507
1521
|
break;
|
|
1508
1522
|
case "w":
|
|
1509
1523
|
case "W":
|
|
1510
1524
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1511
1525
|
case "d":
|
|
1512
|
-
t.day = ["numeric", "2-digit"][
|
|
1526
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1513
1527
|
break;
|
|
1514
1528
|
case "D":
|
|
1515
1529
|
case "F":
|
|
1516
1530
|
case "g":
|
|
1517
1531
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1518
1532
|
case "E":
|
|
1519
|
-
t.weekday =
|
|
1533
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1520
1534
|
break;
|
|
1521
1535
|
case "e":
|
|
1522
|
-
if (
|
|
1536
|
+
if (n < 4)
|
|
1523
1537
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1524
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1538
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1525
1539
|
break;
|
|
1526
1540
|
case "c":
|
|
1527
|
-
if (
|
|
1541
|
+
if (n < 4)
|
|
1528
1542
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1529
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1543
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1530
1544
|
break;
|
|
1531
1545
|
case "a":
|
|
1532
1546
|
t.hour12 = !0;
|
|
@@ -1535,32 +1549,32 @@ function oi(e) {
|
|
|
1535
1549
|
case "B":
|
|
1536
1550
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1537
1551
|
case "h":
|
|
1538
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1552
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1539
1553
|
break;
|
|
1540
1554
|
case "H":
|
|
1541
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1555
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1542
1556
|
break;
|
|
1543
1557
|
case "K":
|
|
1544
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1558
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1545
1559
|
break;
|
|
1546
1560
|
case "k":
|
|
1547
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1561
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1548
1562
|
break;
|
|
1549
1563
|
case "j":
|
|
1550
1564
|
case "J":
|
|
1551
1565
|
case "C":
|
|
1552
1566
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1553
1567
|
case "m":
|
|
1554
|
-
t.minute = ["numeric", "2-digit"][
|
|
1568
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1555
1569
|
break;
|
|
1556
1570
|
case "s":
|
|
1557
|
-
t.second = ["numeric", "2-digit"][
|
|
1571
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1558
1572
|
break;
|
|
1559
1573
|
case "S":
|
|
1560
1574
|
case "A":
|
|
1561
1575
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1562
1576
|
case "z":
|
|
1563
|
-
t.timeZoneName =
|
|
1577
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1564
1578
|
break;
|
|
1565
1579
|
case "Z":
|
|
1566
1580
|
case "O":
|
|
@@ -1573,36 +1587,36 @@ function oi(e) {
|
|
|
1573
1587
|
return "";
|
|
1574
1588
|
}), t;
|
|
1575
1589
|
}
|
|
1576
|
-
var
|
|
1577
|
-
function
|
|
1590
|
+
var ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1591
|
+
function li(e) {
|
|
1578
1592
|
if (e.length === 0)
|
|
1579
1593
|
throw new Error("Number skeleton cannot be empty");
|
|
1580
|
-
for (var t = e.split(
|
|
1581
|
-
return
|
|
1582
|
-
}),
|
|
1583
|
-
var o = i[
|
|
1594
|
+
for (var t = e.split(ui).filter(function(f) {
|
|
1595
|
+
return f.length > 0;
|
|
1596
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1597
|
+
var o = i[n], s = o.split("/");
|
|
1584
1598
|
if (s.length === 0)
|
|
1585
1599
|
throw new Error("Invalid number skeleton");
|
|
1586
1600
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1587
|
-
var
|
|
1588
|
-
if (
|
|
1601
|
+
var c = h[u];
|
|
1602
|
+
if (c.length === 0)
|
|
1589
1603
|
throw new Error("Invalid number skeleton");
|
|
1590
1604
|
}
|
|
1591
|
-
|
|
1605
|
+
r.push({ stem: a, options: l });
|
|
1592
1606
|
}
|
|
1593
|
-
return
|
|
1607
|
+
return r;
|
|
1594
1608
|
}
|
|
1595
|
-
function
|
|
1609
|
+
function hi(e) {
|
|
1596
1610
|
return e.replace(/^(.*?)-/, "");
|
|
1597
1611
|
}
|
|
1598
|
-
var
|
|
1599
|
-
function
|
|
1612
|
+
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gr = /^(@+)?(\+|#+)?[rs]?$/g, ci = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
1613
|
+
function Ct(e) {
|
|
1600
1614
|
var t = {};
|
|
1601
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1602
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1615
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gr, function(r, n, i) {
|
|
1616
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1603
1617
|
}), t;
|
|
1604
1618
|
}
|
|
1605
|
-
function
|
|
1619
|
+
function vr(e) {
|
|
1606
1620
|
switch (e) {
|
|
1607
1621
|
case "sign-auto":
|
|
1608
1622
|
return {
|
|
@@ -1642,27 +1656,27 @@ function gn(e) {
|
|
|
1642
1656
|
};
|
|
1643
1657
|
}
|
|
1644
1658
|
}
|
|
1645
|
-
function
|
|
1659
|
+
function fi(e) {
|
|
1646
1660
|
var t;
|
|
1647
1661
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1648
1662
|
notation: "engineering"
|
|
1649
1663
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1650
1664
|
notation: "scientific"
|
|
1651
1665
|
}, e = e.slice(1)), t) {
|
|
1652
|
-
var
|
|
1653
|
-
if (
|
|
1666
|
+
var r = e.slice(0, 2);
|
|
1667
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
|
|
1654
1668
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1655
1669
|
t.minimumIntegerDigits = e.length;
|
|
1656
1670
|
}
|
|
1657
1671
|
return t;
|
|
1658
1672
|
}
|
|
1659
|
-
function
|
|
1660
|
-
var t = {},
|
|
1661
|
-
return
|
|
1673
|
+
function Pt(e) {
|
|
1674
|
+
var t = {}, r = vr(e);
|
|
1675
|
+
return r || t;
|
|
1662
1676
|
}
|
|
1663
|
-
function
|
|
1664
|
-
for (var t = {},
|
|
1665
|
-
var i = r
|
|
1677
|
+
function mi(e) {
|
|
1678
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1679
|
+
var i = n[r];
|
|
1666
1680
|
switch (i.stem) {
|
|
1667
1681
|
case "percent":
|
|
1668
1682
|
case "%":
|
|
@@ -1684,7 +1698,7 @@ function fi(e) {
|
|
|
1684
1698
|
continue;
|
|
1685
1699
|
case "measure-unit":
|
|
1686
1700
|
case "unit":
|
|
1687
|
-
t.style = "unit", t.unit =
|
|
1701
|
+
t.style = "unit", t.unit = hi(i.options[0]);
|
|
1688
1702
|
continue;
|
|
1689
1703
|
case "compact-short":
|
|
1690
1704
|
case "K":
|
|
@@ -1696,12 +1710,12 @@ function fi(e) {
|
|
|
1696
1710
|
continue;
|
|
1697
1711
|
case "scientific":
|
|
1698
1712
|
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1699
|
-
return E(E({}, l),
|
|
1713
|
+
return E(E({}, l), Pt(u));
|
|
1700
1714
|
}, {}));
|
|
1701
1715
|
continue;
|
|
1702
1716
|
case "engineering":
|
|
1703
1717
|
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1704
|
-
return E(E({}, l),
|
|
1718
|
+
return E(E({}, l), Pt(u));
|
|
1705
1719
|
}, {}));
|
|
1706
1720
|
continue;
|
|
1707
1721
|
case "notation-simple":
|
|
@@ -1746,45 +1760,45 @@ function fi(e) {
|
|
|
1746
1760
|
case "integer-width":
|
|
1747
1761
|
if (i.options.length > 1)
|
|
1748
1762
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1749
|
-
i.options[0].replace(
|
|
1763
|
+
i.options[0].replace(ci, function(l, u, h, c, f, d) {
|
|
1750
1764
|
if (u)
|
|
1751
1765
|
t.minimumIntegerDigits = h.length;
|
|
1752
1766
|
else {
|
|
1753
|
-
if (
|
|
1767
|
+
if (c && f)
|
|
1754
1768
|
throw new Error("We currently do not support maximum integer digits");
|
|
1755
|
-
if (
|
|
1769
|
+
if (d)
|
|
1756
1770
|
throw new Error("We currently do not support exact integer digits");
|
|
1757
1771
|
}
|
|
1758
1772
|
return "";
|
|
1759
1773
|
});
|
|
1760
1774
|
continue;
|
|
1761
1775
|
}
|
|
1762
|
-
if (
|
|
1776
|
+
if (yr.test(i.stem)) {
|
|
1763
1777
|
t.minimumIntegerDigits = i.stem.length;
|
|
1764
1778
|
continue;
|
|
1765
1779
|
}
|
|
1766
|
-
if (
|
|
1780
|
+
if (Bt.test(i.stem)) {
|
|
1767
1781
|
if (i.options.length > 1)
|
|
1768
1782
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1769
|
-
i.stem.replace(
|
|
1770
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1783
|
+
i.stem.replace(Bt, function(l, u, h, c, f, d) {
|
|
1784
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1771
1785
|
});
|
|
1772
1786
|
var o = i.options[0];
|
|
1773
|
-
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t),
|
|
1787
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), Ct(o)));
|
|
1774
1788
|
continue;
|
|
1775
1789
|
}
|
|
1776
|
-
if (
|
|
1777
|
-
t = E(E({}, t),
|
|
1790
|
+
if (gr.test(i.stem)) {
|
|
1791
|
+
t = E(E({}, t), Ct(i.stem));
|
|
1778
1792
|
continue;
|
|
1779
1793
|
}
|
|
1780
|
-
var s =
|
|
1794
|
+
var s = vr(i.stem);
|
|
1781
1795
|
s && (t = E(E({}, t), s));
|
|
1782
|
-
var a =
|
|
1796
|
+
var a = fi(i.stem);
|
|
1783
1797
|
a && (t = E(E({}, t), a));
|
|
1784
1798
|
}
|
|
1785
1799
|
return t;
|
|
1786
1800
|
}
|
|
1787
|
-
var
|
|
1801
|
+
var de = {
|
|
1788
1802
|
"001": [
|
|
1789
1803
|
"H",
|
|
1790
1804
|
"h"
|
|
@@ -3199,23 +3213,23 @@ var me = {
|
|
|
3199
3213
|
"h"
|
|
3200
3214
|
]
|
|
3201
3215
|
};
|
|
3202
|
-
function
|
|
3203
|
-
for (var
|
|
3204
|
-
var i = e.charAt(
|
|
3216
|
+
function di(e, t) {
|
|
3217
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3218
|
+
var i = e.charAt(n);
|
|
3205
3219
|
if (i === "j") {
|
|
3206
|
-
for (var o = 0;
|
|
3207
|
-
o++,
|
|
3208
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3220
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3221
|
+
o++, n++;
|
|
3222
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = pi(t);
|
|
3209
3223
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3210
|
-
|
|
3224
|
+
r += l;
|
|
3211
3225
|
for (; s-- > 0; )
|
|
3212
|
-
|
|
3226
|
+
r = u + r;
|
|
3213
3227
|
} else
|
|
3214
|
-
i === "J" ?
|
|
3228
|
+
i === "J" ? r += "H" : r += i;
|
|
3215
3229
|
}
|
|
3216
|
-
return
|
|
3230
|
+
return r;
|
|
3217
3231
|
}
|
|
3218
|
-
function
|
|
3232
|
+
function pi(e) {
|
|
3219
3233
|
var t = e.hourCycle;
|
|
3220
3234
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3221
3235
|
e.hourCycles && // @ts-ignore
|
|
@@ -3232,73 +3246,73 @@ function di(e) {
|
|
|
3232
3246
|
default:
|
|
3233
3247
|
throw new Error("Invalid hourCycle");
|
|
3234
3248
|
}
|
|
3235
|
-
var
|
|
3236
|
-
|
|
3237
|
-
var i =
|
|
3249
|
+
var r = e.language, n;
|
|
3250
|
+
r !== "root" && (n = e.maximize().region);
|
|
3251
|
+
var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
|
|
3238
3252
|
return i[0];
|
|
3239
3253
|
}
|
|
3240
|
-
var
|
|
3254
|
+
var Ge, bi = new RegExp("^".concat(br.source, "*")), gi = new RegExp("".concat(br.source, "*$"));
|
|
3241
3255
|
function _(e, t) {
|
|
3242
3256
|
return { start: e, end: t };
|
|
3243
3257
|
}
|
|
3244
|
-
var
|
|
3258
|
+
var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), vi = !!String.fromCodePoint, _i = !!Object.fromEntries, xi = !!String.prototype.codePointAt, Ei = !!String.prototype.trimStart, wi = !!String.prototype.trimEnd, Si = !!Number.isSafeInteger, Ti = Si ? Number.isSafeInteger : function(e) {
|
|
3245
3259
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3246
|
-
},
|
|
3260
|
+
}, Je = !0;
|
|
3247
3261
|
try {
|
|
3248
|
-
var
|
|
3249
|
-
|
|
3262
|
+
var Hi = xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3263
|
+
Je = ((Ge = Hi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3250
3264
|
} catch (e) {
|
|
3251
|
-
|
|
3265
|
+
Je = !1;
|
|
3252
3266
|
}
|
|
3253
|
-
var
|
|
3267
|
+
var Ot = yi ? (
|
|
3254
3268
|
// Native
|
|
3255
|
-
function(t,
|
|
3256
|
-
return t.startsWith(
|
|
3269
|
+
function(t, r, n) {
|
|
3270
|
+
return t.startsWith(r, n);
|
|
3257
3271
|
}
|
|
3258
3272
|
) : (
|
|
3259
3273
|
// For IE11
|
|
3260
|
-
function(t,
|
|
3261
|
-
return t.slice(
|
|
3274
|
+
function(t, r, n) {
|
|
3275
|
+
return t.slice(n, n + r.length) === r;
|
|
3262
3276
|
}
|
|
3263
|
-
),
|
|
3277
|
+
), qe = vi ? String.fromCodePoint : (
|
|
3264
3278
|
// IE11
|
|
3265
3279
|
function() {
|
|
3266
|
-
for (var t = [],
|
|
3267
|
-
t[
|
|
3268
|
-
for (var
|
|
3280
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3281
|
+
t[r] = arguments[r];
|
|
3282
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
3269
3283
|
if (s = t[o++], s > 1114111)
|
|
3270
3284
|
throw RangeError(s + " is not a valid code point");
|
|
3271
|
-
|
|
3285
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
3272
3286
|
}
|
|
3273
|
-
return
|
|
3287
|
+
return n;
|
|
3274
3288
|
}
|
|
3275
|
-
),
|
|
3289
|
+
), It = (
|
|
3276
3290
|
// native
|
|
3277
|
-
|
|
3291
|
+
_i ? Object.fromEntries : (
|
|
3278
3292
|
// Ponyfill
|
|
3279
3293
|
function(t) {
|
|
3280
|
-
for (var
|
|
3281
|
-
var o = i[
|
|
3282
|
-
|
|
3294
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3295
|
+
var o = i[n], s = o[0], a = o[1];
|
|
3296
|
+
r[s] = a;
|
|
3283
3297
|
}
|
|
3284
|
-
return
|
|
3298
|
+
return r;
|
|
3285
3299
|
}
|
|
3286
3300
|
)
|
|
3287
|
-
),
|
|
3301
|
+
), _r = xi ? (
|
|
3288
3302
|
// Native
|
|
3289
|
-
function(t,
|
|
3290
|
-
return t.codePointAt(
|
|
3303
|
+
function(t, r) {
|
|
3304
|
+
return t.codePointAt(r);
|
|
3291
3305
|
}
|
|
3292
3306
|
) : (
|
|
3293
3307
|
// IE 11
|
|
3294
|
-
function(t,
|
|
3295
|
-
var
|
|
3296
|
-
if (!(
|
|
3297
|
-
var i = t.charCodeAt(
|
|
3298
|
-
return i < 55296 || i > 56319 ||
|
|
3308
|
+
function(t, r) {
|
|
3309
|
+
var n = t.length;
|
|
3310
|
+
if (!(r < 0 || r >= n)) {
|
|
3311
|
+
var i = t.charCodeAt(r), o;
|
|
3312
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3299
3313
|
}
|
|
3300
3314
|
}
|
|
3301
|
-
),
|
|
3315
|
+
), Ai = Ei ? (
|
|
3302
3316
|
// Native
|
|
3303
3317
|
function(t) {
|
|
3304
3318
|
return t.trimStart();
|
|
@@ -3306,9 +3320,9 @@ var Ct = bi ? (
|
|
|
3306
3320
|
) : (
|
|
3307
3321
|
// Ponyfill
|
|
3308
3322
|
function(t) {
|
|
3309
|
-
return t.replace(
|
|
3323
|
+
return t.replace(bi, "");
|
|
3310
3324
|
}
|
|
3311
|
-
),
|
|
3325
|
+
), Bi = wi ? (
|
|
3312
3326
|
// Native
|
|
3313
3327
|
function(t) {
|
|
3314
3328
|
return t.trimEnd();
|
|
@@ -3316,69 +3330,69 @@ var Ct = bi ? (
|
|
|
3316
3330
|
) : (
|
|
3317
3331
|
// Ponyfill
|
|
3318
3332
|
function(t) {
|
|
3319
|
-
return t.replace(
|
|
3333
|
+
return t.replace(gi, "");
|
|
3320
3334
|
}
|
|
3321
3335
|
);
|
|
3322
|
-
function
|
|
3336
|
+
function xr(e, t) {
|
|
3323
3337
|
return new RegExp(e, t);
|
|
3324
3338
|
}
|
|
3325
|
-
var
|
|
3326
|
-
if (
|
|
3327
|
-
var
|
|
3328
|
-
|
|
3329
|
-
var
|
|
3330
|
-
|
|
3331
|
-
var i =
|
|
3332
|
-
return (
|
|
3339
|
+
var Ye;
|
|
3340
|
+
if (Je) {
|
|
3341
|
+
var Mt = xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3342
|
+
Ye = function(t, r) {
|
|
3343
|
+
var n;
|
|
3344
|
+
Mt.lastIndex = r;
|
|
3345
|
+
var i = Mt.exec(t);
|
|
3346
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3333
3347
|
};
|
|
3334
3348
|
} else
|
|
3335
|
-
|
|
3336
|
-
for (var
|
|
3337
|
-
var i =
|
|
3338
|
-
if (i === void 0 ||
|
|
3349
|
+
Ye = function(t, r) {
|
|
3350
|
+
for (var n = []; ; ) {
|
|
3351
|
+
var i = _r(t, r);
|
|
3352
|
+
if (i === void 0 || Er(i) || Ii(i))
|
|
3339
3353
|
break;
|
|
3340
|
-
|
|
3354
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3341
3355
|
}
|
|
3342
|
-
return
|
|
3356
|
+
return qe.apply(void 0, n);
|
|
3343
3357
|
};
|
|
3344
|
-
var
|
|
3358
|
+
var Ci = (
|
|
3345
3359
|
/** @class */
|
|
3346
3360
|
function() {
|
|
3347
|
-
function e(t,
|
|
3348
|
-
|
|
3361
|
+
function e(t, r) {
|
|
3362
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3349
3363
|
}
|
|
3350
3364
|
return e.prototype.parse = function() {
|
|
3351
3365
|
if (this.offset() !== 0)
|
|
3352
3366
|
throw Error("parser can only be used once");
|
|
3353
3367
|
return this.parseMessage(0, "", !1);
|
|
3354
|
-
}, e.prototype.parseMessage = function(t,
|
|
3368
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3355
3369
|
for (var i = []; !this.isEOF(); ) {
|
|
3356
3370
|
var o = this.char();
|
|
3357
3371
|
if (o === 123) {
|
|
3358
|
-
var s = this.parseArgument(t,
|
|
3372
|
+
var s = this.parseArgument(t, n);
|
|
3359
3373
|
if (s.err)
|
|
3360
3374
|
return s;
|
|
3361
3375
|
i.push(s.val);
|
|
3362
3376
|
} else {
|
|
3363
3377
|
if (o === 125 && t > 0)
|
|
3364
3378
|
break;
|
|
3365
|
-
if (o === 35 && (
|
|
3379
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3366
3380
|
var a = this.clonePosition();
|
|
3367
3381
|
this.bump(), i.push({
|
|
3368
3382
|
type: S.pound,
|
|
3369
3383
|
location: _(a, this.clonePosition())
|
|
3370
3384
|
});
|
|
3371
3385
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3372
|
-
if (
|
|
3386
|
+
if (n)
|
|
3373
3387
|
break;
|
|
3374
3388
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3375
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3376
|
-
var s = this.parseTag(t,
|
|
3389
|
+
} else if (o === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
3390
|
+
var s = this.parseTag(t, r);
|
|
3377
3391
|
if (s.err)
|
|
3378
3392
|
return s;
|
|
3379
3393
|
i.push(s.val);
|
|
3380
3394
|
} else {
|
|
3381
|
-
var s = this.parseLiteral(t,
|
|
3395
|
+
var s = this.parseLiteral(t, r);
|
|
3382
3396
|
if (s.err)
|
|
3383
3397
|
return s;
|
|
3384
3398
|
i.push(s.val);
|
|
@@ -3386,8 +3400,8 @@ var Ai = (
|
|
|
3386
3400
|
}
|
|
3387
3401
|
}
|
|
3388
3402
|
return { val: i, err: null };
|
|
3389
|
-
}, e.prototype.parseTag = function(t,
|
|
3390
|
-
var
|
|
3403
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3404
|
+
var n = this.clonePosition();
|
|
3391
3405
|
this.bump();
|
|
3392
3406
|
var i = this.parseTagName();
|
|
3393
3407
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3395,17 +3409,17 @@ var Ai = (
|
|
|
3395
3409
|
val: {
|
|
3396
3410
|
type: S.literal,
|
|
3397
3411
|
value: "<".concat(i, "/>"),
|
|
3398
|
-
location: _(
|
|
3412
|
+
location: _(n, this.clonePosition())
|
|
3399
3413
|
},
|
|
3400
3414
|
err: null
|
|
3401
3415
|
};
|
|
3402
3416
|
if (this.bumpIf(">")) {
|
|
3403
|
-
var o = this.parseMessage(t + 1,
|
|
3417
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3404
3418
|
if (o.err)
|
|
3405
3419
|
return o;
|
|
3406
3420
|
var s = o.val, a = this.clonePosition();
|
|
3407
3421
|
if (this.bumpIf("</")) {
|
|
3408
|
-
if (this.isEOF() || !
|
|
3422
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
3409
3423
|
return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
|
|
3410
3424
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3411
3425
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3413,27 +3427,27 @@ var Ai = (
|
|
|
3413
3427
|
type: S.tag,
|
|
3414
3428
|
value: i,
|
|
3415
3429
|
children: s,
|
|
3416
|
-
location: _(
|
|
3430
|
+
location: _(n, this.clonePosition())
|
|
3417
3431
|
},
|
|
3418
3432
|
err: null
|
|
3419
3433
|
} : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
|
|
3420
3434
|
} else
|
|
3421
|
-
return this.error(y.UNCLOSED_TAG, _(
|
|
3435
|
+
return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
3422
3436
|
} else
|
|
3423
|
-
return this.error(y.INVALID_TAG, _(
|
|
3437
|
+
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
3424
3438
|
}, e.prototype.parseTagName = function() {
|
|
3425
3439
|
var t = this.offset();
|
|
3426
|
-
for (this.bump(); !this.isEOF() &&
|
|
3440
|
+
for (this.bump(); !this.isEOF() && Oi(this.char()); )
|
|
3427
3441
|
this.bump();
|
|
3428
3442
|
return this.message.slice(t, this.offset());
|
|
3429
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3430
|
-
for (var
|
|
3431
|
-
var o = this.tryParseQuote(
|
|
3443
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3444
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3445
|
+
var o = this.tryParseQuote(r);
|
|
3432
3446
|
if (o) {
|
|
3433
3447
|
i += o;
|
|
3434
3448
|
continue;
|
|
3435
3449
|
}
|
|
3436
|
-
var s = this.tryParseUnquoted(t,
|
|
3450
|
+
var s = this.tryParseUnquoted(t, r);
|
|
3437
3451
|
if (s) {
|
|
3438
3452
|
i += s;
|
|
3439
3453
|
continue;
|
|
@@ -3445,14 +3459,14 @@ var Ai = (
|
|
|
3445
3459
|
}
|
|
3446
3460
|
break;
|
|
3447
3461
|
}
|
|
3448
|
-
var l = _(
|
|
3462
|
+
var l = _(n, this.clonePosition());
|
|
3449
3463
|
return {
|
|
3450
3464
|
val: { type: S.literal, value: i, location: l },
|
|
3451
3465
|
err: null
|
|
3452
3466
|
};
|
|
3453
3467
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3454
3468
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3455
|
-
!
|
|
3469
|
+
!Pi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3456
3470
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3457
3471
|
if (this.isEOF() || this.char() !== 39)
|
|
3458
3472
|
return null;
|
|
@@ -3472,37 +3486,37 @@ var Ai = (
|
|
|
3472
3486
|
return null;
|
|
3473
3487
|
}
|
|
3474
3488
|
this.bump();
|
|
3475
|
-
var
|
|
3489
|
+
var r = [this.char()];
|
|
3476
3490
|
for (this.bump(); !this.isEOF(); ) {
|
|
3477
|
-
var
|
|
3478
|
-
if (
|
|
3491
|
+
var n = this.char();
|
|
3492
|
+
if (n === 39)
|
|
3479
3493
|
if (this.peek() === 39)
|
|
3480
|
-
|
|
3494
|
+
r.push(39), this.bump();
|
|
3481
3495
|
else {
|
|
3482
3496
|
this.bump();
|
|
3483
3497
|
break;
|
|
3484
3498
|
}
|
|
3485
3499
|
else
|
|
3486
|
-
|
|
3500
|
+
r.push(n);
|
|
3487
3501
|
this.bump();
|
|
3488
3502
|
}
|
|
3489
|
-
return
|
|
3490
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3503
|
+
return qe.apply(void 0, r);
|
|
3504
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3491
3505
|
if (this.isEOF())
|
|
3492
3506
|
return null;
|
|
3493
|
-
var
|
|
3494
|
-
return
|
|
3495
|
-
}, e.prototype.parseArgument = function(t,
|
|
3496
|
-
var
|
|
3507
|
+
var n = this.char();
|
|
3508
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
3509
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3510
|
+
var n = this.clonePosition();
|
|
3497
3511
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3498
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3512
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
3499
3513
|
if (this.char() === 125)
|
|
3500
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(
|
|
3514
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
|
|
3501
3515
|
var i = this.parseIdentifierIfPossible().value;
|
|
3502
3516
|
if (!i)
|
|
3503
|
-
return this.error(y.MALFORMED_ARGUMENT, _(
|
|
3517
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3504
3518
|
if (this.bumpSpace(), this.isEOF())
|
|
3505
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3519
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
3506
3520
|
switch (this.char()) {
|
|
3507
3521
|
case 125:
|
|
3508
3522
|
return this.bump(), {
|
|
@@ -3510,21 +3524,21 @@ var Ai = (
|
|
|
3510
3524
|
type: S.argument,
|
|
3511
3525
|
// value does not include the opening and closing braces.
|
|
3512
3526
|
value: i,
|
|
3513
|
-
location: _(
|
|
3527
|
+
location: _(n, this.clonePosition())
|
|
3514
3528
|
},
|
|
3515
3529
|
err: null
|
|
3516
3530
|
};
|
|
3517
3531
|
case 44:
|
|
3518
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3532
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3519
3533
|
default:
|
|
3520
|
-
return this.error(y.MALFORMED_ARGUMENT, _(
|
|
3534
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3521
3535
|
}
|
|
3522
3536
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3523
|
-
var t = this.clonePosition(),
|
|
3537
|
+
var t = this.clonePosition(), r = this.offset(), n = Ye(this.message, r), i = r + n.length;
|
|
3524
3538
|
this.bumpTo(i);
|
|
3525
3539
|
var o = this.clonePosition(), s = _(t, o);
|
|
3526
|
-
return { value:
|
|
3527
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3540
|
+
return { value: n, location: s };
|
|
3541
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3528
3542
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3529
3543
|
switch (a) {
|
|
3530
3544
|
case "":
|
|
@@ -3536,40 +3550,40 @@ var Ai = (
|
|
|
3536
3550
|
var u = null;
|
|
3537
3551
|
if (this.bumpIf(",")) {
|
|
3538
3552
|
this.bumpSpace();
|
|
3539
|
-
var h = this.clonePosition(),
|
|
3540
|
-
if (
|
|
3541
|
-
return
|
|
3542
|
-
var
|
|
3543
|
-
if (
|
|
3553
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3554
|
+
if (c.err)
|
|
3555
|
+
return c;
|
|
3556
|
+
var f = Bi(c.val);
|
|
3557
|
+
if (f.length === 0)
|
|
3544
3558
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3545
|
-
var
|
|
3546
|
-
u = { style:
|
|
3559
|
+
var d = _(h, this.clonePosition());
|
|
3560
|
+
u = { style: f, styleLocation: d };
|
|
3547
3561
|
}
|
|
3548
|
-
var
|
|
3549
|
-
if (
|
|
3550
|
-
return
|
|
3562
|
+
var m = this.tryParseArgumentClose(i);
|
|
3563
|
+
if (m.err)
|
|
3564
|
+
return m;
|
|
3551
3565
|
var p = _(i, this.clonePosition());
|
|
3552
|
-
if (u &&
|
|
3553
|
-
var g =
|
|
3566
|
+
if (u && Ot(u == null ? void 0 : u.style, "::", 0)) {
|
|
3567
|
+
var g = Ai(u.style.slice(2));
|
|
3554
3568
|
if (a === "number") {
|
|
3555
|
-
var
|
|
3556
|
-
return
|
|
3557
|
-
val: { type: S.number, value:
|
|
3569
|
+
var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
3570
|
+
return c.err ? c : {
|
|
3571
|
+
val: { type: S.number, value: n, location: p, style: c.val },
|
|
3558
3572
|
err: null
|
|
3559
3573
|
};
|
|
3560
3574
|
} else {
|
|
3561
3575
|
if (g.length === 0)
|
|
3562
3576
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
|
|
3563
|
-
var
|
|
3564
|
-
this.locale && (
|
|
3565
|
-
var
|
|
3577
|
+
var A = g;
|
|
3578
|
+
this.locale && (A = di(g, this.locale));
|
|
3579
|
+
var f = {
|
|
3566
3580
|
type: J.dateTime,
|
|
3567
|
-
pattern:
|
|
3581
|
+
pattern: A,
|
|
3568
3582
|
location: u.styleLocation,
|
|
3569
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3570
|
-
},
|
|
3583
|
+
parsedOptions: this.shouldParseSkeletons ? ai(A) : {}
|
|
3584
|
+
}, T = a === "date" ? S.date : S.time;
|
|
3571
3585
|
return {
|
|
3572
|
-
val: { type:
|
|
3586
|
+
val: { type: T, value: n, location: p, style: f },
|
|
3573
3587
|
err: null
|
|
3574
3588
|
};
|
|
3575
3589
|
}
|
|
@@ -3577,7 +3591,7 @@ var Ai = (
|
|
|
3577
3591
|
return {
|
|
3578
3592
|
val: {
|
|
3579
3593
|
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3580
|
-
value:
|
|
3594
|
+
value: n,
|
|
3581
3595
|
location: p,
|
|
3582
3596
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3583
3597
|
},
|
|
@@ -3596,34 +3610,34 @@ var Ai = (
|
|
|
3596
3610
|
if (!this.bumpIf(":"))
|
|
3597
3611
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
3598
3612
|
this.bumpSpace();
|
|
3599
|
-
var
|
|
3600
|
-
if (
|
|
3601
|
-
return
|
|
3602
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(), b =
|
|
3613
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3614
|
+
if (c.err)
|
|
3615
|
+
return c;
|
|
3616
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), b = c.val;
|
|
3603
3617
|
}
|
|
3604
|
-
var B = this.tryParsePluralOrSelectOptions(t, a,
|
|
3618
|
+
var B = this.tryParsePluralOrSelectOptions(t, a, r, w);
|
|
3605
3619
|
if (B.err)
|
|
3606
3620
|
return B;
|
|
3607
|
-
var
|
|
3608
|
-
if (
|
|
3609
|
-
return
|
|
3610
|
-
var
|
|
3621
|
+
var m = this.tryParseArgumentClose(i);
|
|
3622
|
+
if (m.err)
|
|
3623
|
+
return m;
|
|
3624
|
+
var ce = _(i, this.clonePosition());
|
|
3611
3625
|
return a === "select" ? {
|
|
3612
3626
|
val: {
|
|
3613
3627
|
type: S.select,
|
|
3614
|
-
value:
|
|
3615
|
-
options:
|
|
3616
|
-
location:
|
|
3628
|
+
value: n,
|
|
3629
|
+
options: It(B.val),
|
|
3630
|
+
location: ce
|
|
3617
3631
|
},
|
|
3618
3632
|
err: null
|
|
3619
3633
|
} : {
|
|
3620
3634
|
val: {
|
|
3621
3635
|
type: S.plural,
|
|
3622
|
-
value:
|
|
3623
|
-
options:
|
|
3636
|
+
value: n,
|
|
3637
|
+
options: It(B.val),
|
|
3624
3638
|
offset: b,
|
|
3625
3639
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3626
|
-
location:
|
|
3640
|
+
location: ce
|
|
3627
3641
|
},
|
|
3628
3642
|
err: null
|
|
3629
3643
|
};
|
|
@@ -3634,9 +3648,9 @@ var Ai = (
|
|
|
3634
3648
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3635
3649
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3636
3650
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3637
|
-
for (var t = 0,
|
|
3638
|
-
var
|
|
3639
|
-
switch (
|
|
3651
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3652
|
+
var n = this.char();
|
|
3653
|
+
switch (n) {
|
|
3640
3654
|
case 39: {
|
|
3641
3655
|
this.bump();
|
|
3642
3656
|
var i = this.clonePosition();
|
|
@@ -3654,7 +3668,7 @@ var Ai = (
|
|
|
3654
3668
|
t -= 1;
|
|
3655
3669
|
else
|
|
3656
3670
|
return {
|
|
3657
|
-
val: this.message.slice(
|
|
3671
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3658
3672
|
err: null
|
|
3659
3673
|
};
|
|
3660
3674
|
break;
|
|
@@ -3665,61 +3679,61 @@ var Ai = (
|
|
|
3665
3679
|
}
|
|
3666
3680
|
}
|
|
3667
3681
|
return {
|
|
3668
|
-
val: this.message.slice(
|
|
3682
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3669
3683
|
err: null
|
|
3670
3684
|
};
|
|
3671
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3672
|
-
var
|
|
3685
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3686
|
+
var n = [];
|
|
3673
3687
|
try {
|
|
3674
|
-
|
|
3688
|
+
n = li(t);
|
|
3675
3689
|
} catch (i) {
|
|
3676
|
-
return this.error(y.INVALID_NUMBER_SKELETON,
|
|
3690
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3677
3691
|
}
|
|
3678
3692
|
return {
|
|
3679
3693
|
val: {
|
|
3680
3694
|
type: J.number,
|
|
3681
|
-
tokens:
|
|
3682
|
-
location:
|
|
3683
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3695
|
+
tokens: n,
|
|
3696
|
+
location: r,
|
|
3697
|
+
parsedOptions: this.shouldParseSkeletons ? mi(n) : {}
|
|
3684
3698
|
},
|
|
3685
3699
|
err: null
|
|
3686
3700
|
};
|
|
3687
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3701
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3688
3702
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3689
3703
|
if (u.length === 0) {
|
|
3690
|
-
var
|
|
3691
|
-
if (
|
|
3692
|
-
var
|
|
3693
|
-
if (
|
|
3694
|
-
return
|
|
3695
|
-
h = _(
|
|
3704
|
+
var c = this.clonePosition();
|
|
3705
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3706
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3707
|
+
if (f.err)
|
|
3708
|
+
return f;
|
|
3709
|
+
h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3696
3710
|
} else
|
|
3697
3711
|
break;
|
|
3698
3712
|
}
|
|
3699
3713
|
if (l.has(u))
|
|
3700
|
-
return this.error(
|
|
3714
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3701
3715
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3702
|
-
var
|
|
3716
|
+
var d = this.clonePosition();
|
|
3703
3717
|
if (!this.bumpIf("{"))
|
|
3704
|
-
return this.error(
|
|
3705
|
-
var
|
|
3706
|
-
if (
|
|
3707
|
-
return
|
|
3708
|
-
var p = this.tryParseArgumentClose(
|
|
3718
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3719
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
3720
|
+
if (m.err)
|
|
3721
|
+
return m;
|
|
3722
|
+
var p = this.tryParseArgumentClose(d);
|
|
3709
3723
|
if (p.err)
|
|
3710
3724
|
return p;
|
|
3711
3725
|
a.push([
|
|
3712
3726
|
u,
|
|
3713
3727
|
{
|
|
3714
|
-
value:
|
|
3715
|
-
location: _(
|
|
3728
|
+
value: m.val,
|
|
3729
|
+
location: _(d, this.clonePosition())
|
|
3716
3730
|
}
|
|
3717
3731
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3718
3732
|
}
|
|
3719
|
-
return a.length === 0 ? this.error(
|
|
3720
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3721
|
-
var
|
|
3722
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3733
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3734
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3735
|
+
var n = 1, i = this.clonePosition();
|
|
3736
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3723
3737
|
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3724
3738
|
var a = this.char();
|
|
3725
3739
|
if (a >= 48 && a <= 57)
|
|
@@ -3728,7 +3742,7 @@ var Ai = (
|
|
|
3728
3742
|
break;
|
|
3729
3743
|
}
|
|
3730
3744
|
var l = _(i, this.clonePosition());
|
|
3731
|
-
return o ? (s *=
|
|
3745
|
+
return o ? (s *= n, Ti(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3732
3746
|
}, e.prototype.offset = function() {
|
|
3733
3747
|
return this.position.offset;
|
|
3734
3748
|
}, e.prototype.isEOF = function() {
|
|
@@ -3743,17 +3757,17 @@ var Ai = (
|
|
|
3743
3757
|
var t = this.position.offset;
|
|
3744
3758
|
if (t >= this.message.length)
|
|
3745
3759
|
throw Error("out of bound");
|
|
3746
|
-
var
|
|
3747
|
-
if (
|
|
3760
|
+
var r = _r(this.message, t);
|
|
3761
|
+
if (r === void 0)
|
|
3748
3762
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3749
|
-
return
|
|
3750
|
-
}, e.prototype.error = function(t,
|
|
3763
|
+
return r;
|
|
3764
|
+
}, e.prototype.error = function(t, r) {
|
|
3751
3765
|
return {
|
|
3752
3766
|
val: null,
|
|
3753
3767
|
err: {
|
|
3754
3768
|
kind: t,
|
|
3755
3769
|
message: this.message,
|
|
3756
|
-
location:
|
|
3770
|
+
location: r
|
|
3757
3771
|
}
|
|
3758
3772
|
};
|
|
3759
3773
|
}, e.prototype.bump = function() {
|
|
@@ -3762,70 +3776,70 @@ var Ai = (
|
|
|
3762
3776
|
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);
|
|
3763
3777
|
}
|
|
3764
3778
|
}, e.prototype.bumpIf = function(t) {
|
|
3765
|
-
if (
|
|
3766
|
-
for (var
|
|
3779
|
+
if (Ot(this.message, t, this.offset())) {
|
|
3780
|
+
for (var r = 0; r < t.length; r++)
|
|
3767
3781
|
this.bump();
|
|
3768
3782
|
return !0;
|
|
3769
3783
|
}
|
|
3770
3784
|
return !1;
|
|
3771
3785
|
}, e.prototype.bumpUntil = function(t) {
|
|
3772
|
-
var
|
|
3773
|
-
return
|
|
3786
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3787
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3774
3788
|
}, e.prototype.bumpTo = function(t) {
|
|
3775
3789
|
if (this.offset() > t)
|
|
3776
3790
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3777
3791
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3778
|
-
var
|
|
3779
|
-
if (
|
|
3792
|
+
var r = this.offset();
|
|
3793
|
+
if (r === t)
|
|
3780
3794
|
break;
|
|
3781
|
-
if (
|
|
3795
|
+
if (r > t)
|
|
3782
3796
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3783
3797
|
if (this.bump(), this.isEOF())
|
|
3784
3798
|
break;
|
|
3785
3799
|
}
|
|
3786
3800
|
}, e.prototype.bumpSpace = function() {
|
|
3787
|
-
for (; !this.isEOF() &&
|
|
3801
|
+
for (; !this.isEOF() && Er(this.char()); )
|
|
3788
3802
|
this.bump();
|
|
3789
3803
|
}, e.prototype.peek = function() {
|
|
3790
3804
|
if (this.isEOF())
|
|
3791
3805
|
return null;
|
|
3792
|
-
var t = this.char(),
|
|
3793
|
-
return
|
|
3806
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3807
|
+
return n != null ? n : null;
|
|
3794
3808
|
}, e;
|
|
3795
3809
|
}()
|
|
3796
3810
|
);
|
|
3797
|
-
function
|
|
3811
|
+
function Ke(e) {
|
|
3798
3812
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3799
3813
|
}
|
|
3800
|
-
function
|
|
3801
|
-
return
|
|
3814
|
+
function Pi(e) {
|
|
3815
|
+
return Ke(e) || e === 47;
|
|
3802
3816
|
}
|
|
3803
|
-
function
|
|
3817
|
+
function Oi(e) {
|
|
3804
3818
|
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;
|
|
3805
3819
|
}
|
|
3806
|
-
function
|
|
3820
|
+
function Er(e) {
|
|
3807
3821
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3808
3822
|
}
|
|
3809
|
-
function
|
|
3823
|
+
function Ii(e) {
|
|
3810
3824
|
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;
|
|
3811
3825
|
}
|
|
3812
|
-
function
|
|
3826
|
+
function et(e) {
|
|
3813
3827
|
e.forEach(function(t) {
|
|
3814
|
-
if (delete t.location,
|
|
3815
|
-
for (var
|
|
3816
|
-
delete t.options[
|
|
3828
|
+
if (delete t.location, fr(t) || mr(t))
|
|
3829
|
+
for (var r in t.options)
|
|
3830
|
+
delete t.options[r].location, et(t.options[r].value);
|
|
3817
3831
|
else
|
|
3818
|
-
|
|
3832
|
+
lr(t) && pr(t.style) || (hr(t) || cr(t)) && Qe(t.style) ? delete t.style.location : dr(t) && et(t.children);
|
|
3819
3833
|
});
|
|
3820
3834
|
}
|
|
3821
|
-
function
|
|
3835
|
+
function Mi(e, t) {
|
|
3822
3836
|
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3823
|
-
var
|
|
3824
|
-
if (
|
|
3825
|
-
var
|
|
3826
|
-
throw
|
|
3837
|
+
var r = new Ci(e, t).parse();
|
|
3838
|
+
if (r.err) {
|
|
3839
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3840
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3827
3841
|
}
|
|
3828
|
-
return t != null && t.captureLocation ||
|
|
3842
|
+
return t != null && t.captureLocation || et(r.val), r.val;
|
|
3829
3843
|
}
|
|
3830
3844
|
var q;
|
|
3831
3845
|
(function(e) {
|
|
@@ -3835,38 +3849,38 @@ var Be = (
|
|
|
3835
3849
|
/** @class */
|
|
3836
3850
|
function(e) {
|
|
3837
3851
|
$(t, e);
|
|
3838
|
-
function t(
|
|
3839
|
-
var o = e.call(this,
|
|
3840
|
-
return o.code =
|
|
3852
|
+
function t(r, n, i) {
|
|
3853
|
+
var o = e.call(this, r) || this;
|
|
3854
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3841
3855
|
}
|
|
3842
3856
|
return t.prototype.toString = function() {
|
|
3843
3857
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3844
3858
|
}, t;
|
|
3845
3859
|
}(Error)
|
|
3846
|
-
),
|
|
3860
|
+
), Nt = (
|
|
3847
3861
|
/** @class */
|
|
3848
3862
|
function(e) {
|
|
3849
3863
|
$(t, e);
|
|
3850
|
-
function t(
|
|
3851
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3864
|
+
function t(r, n, i, o) {
|
|
3865
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3852
3866
|
}
|
|
3853
3867
|
return t;
|
|
3854
3868
|
}(Be)
|
|
3855
|
-
),
|
|
3869
|
+
), Ni = (
|
|
3856
3870
|
/** @class */
|
|
3857
3871
|
function(e) {
|
|
3858
3872
|
$(t, e);
|
|
3859
|
-
function t(
|
|
3860
|
-
return e.call(this, 'Value for "'.concat(
|
|
3873
|
+
function t(r, n, i) {
|
|
3874
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3861
3875
|
}
|
|
3862
3876
|
return t;
|
|
3863
3877
|
}(Be)
|
|
3864
|
-
),
|
|
3878
|
+
), Li = (
|
|
3865
3879
|
/** @class */
|
|
3866
3880
|
function(e) {
|
|
3867
3881
|
$(t, e);
|
|
3868
|
-
function t(
|
|
3869
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3882
|
+
function t(r, n) {
|
|
3883
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3870
3884
|
}
|
|
3871
3885
|
return t;
|
|
3872
3886
|
}(Be)
|
|
@@ -3874,17 +3888,17 @@ var Be = (
|
|
|
3874
3888
|
(function(e) {
|
|
3875
3889
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3876
3890
|
})(P || (P = {}));
|
|
3877
|
-
function
|
|
3878
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3879
|
-
var
|
|
3880
|
-
return !
|
|
3891
|
+
function Ri(e) {
|
|
3892
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3893
|
+
var n = t[t.length - 1];
|
|
3894
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3881
3895
|
}, []);
|
|
3882
3896
|
}
|
|
3883
|
-
function
|
|
3897
|
+
function $i(e) {
|
|
3884
3898
|
return typeof e == "function";
|
|
3885
3899
|
}
|
|
3886
|
-
function ye(e, t,
|
|
3887
|
-
if (e.length === 1 &&
|
|
3900
|
+
function ye(e, t, r, n, i, o, s) {
|
|
3901
|
+
if (e.length === 1 && At(e[0]))
|
|
3888
3902
|
return [
|
|
3889
3903
|
{
|
|
3890
3904
|
type: P.literal,
|
|
@@ -3893,155 +3907,155 @@ function ye(e, t, n, r, i, o, s) {
|
|
|
3893
3907
|
];
|
|
3894
3908
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3895
3909
|
var h = u[l];
|
|
3896
|
-
if (
|
|
3910
|
+
if (At(h)) {
|
|
3897
3911
|
a.push({
|
|
3898
3912
|
type: P.literal,
|
|
3899
3913
|
value: h.value
|
|
3900
3914
|
});
|
|
3901
3915
|
continue;
|
|
3902
3916
|
}
|
|
3903
|
-
if (
|
|
3917
|
+
if (oi(h)) {
|
|
3904
3918
|
typeof o == "number" && a.push({
|
|
3905
3919
|
type: P.literal,
|
|
3906
|
-
value:
|
|
3920
|
+
value: r.getNumberFormat(t).format(o)
|
|
3907
3921
|
});
|
|
3908
3922
|
continue;
|
|
3909
3923
|
}
|
|
3910
|
-
var
|
|
3911
|
-
if (!(i &&
|
|
3912
|
-
throw new
|
|
3913
|
-
var
|
|
3914
|
-
if (
|
|
3915
|
-
(!
|
|
3916
|
-
type: typeof
|
|
3917
|
-
value:
|
|
3924
|
+
var c = h.value;
|
|
3925
|
+
if (!(i && c in i))
|
|
3926
|
+
throw new Li(c, s);
|
|
3927
|
+
var f = i[c];
|
|
3928
|
+
if (ii(h)) {
|
|
3929
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3930
|
+
type: typeof f == "string" ? P.literal : P.object,
|
|
3931
|
+
value: f
|
|
3918
3932
|
});
|
|
3919
3933
|
continue;
|
|
3920
3934
|
}
|
|
3921
|
-
if (
|
|
3922
|
-
var
|
|
3935
|
+
if (hr(h)) {
|
|
3936
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Qe(h.style) ? h.style.parsedOptions : void 0;
|
|
3923
3937
|
a.push({
|
|
3924
3938
|
type: P.literal,
|
|
3925
|
-
value:
|
|
3939
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3926
3940
|
});
|
|
3927
3941
|
continue;
|
|
3928
3942
|
}
|
|
3929
|
-
if (
|
|
3930
|
-
var
|
|
3943
|
+
if (cr(h)) {
|
|
3944
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Qe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3931
3945
|
a.push({
|
|
3932
3946
|
type: P.literal,
|
|
3933
|
-
value:
|
|
3947
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3934
3948
|
});
|
|
3935
3949
|
continue;
|
|
3936
3950
|
}
|
|
3937
|
-
if (
|
|
3938
|
-
var
|
|
3939
|
-
|
|
3951
|
+
if (lr(h)) {
|
|
3952
|
+
var d = typeof h.style == "string" ? n.number[h.style] : pr(h.style) ? h.style.parsedOptions : void 0;
|
|
3953
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3940
3954
|
type: P.literal,
|
|
3941
|
-
value:
|
|
3955
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3942
3956
|
});
|
|
3943
3957
|
continue;
|
|
3944
3958
|
}
|
|
3945
|
-
if (
|
|
3946
|
-
var
|
|
3947
|
-
if (
|
|
3948
|
-
throw new
|
|
3949
|
-
var
|
|
3959
|
+
if (dr(h)) {
|
|
3960
|
+
var m = h.children, p = h.value, g = i[p];
|
|
3961
|
+
if (!$i(g))
|
|
3962
|
+
throw new Ni(p, "function", s);
|
|
3963
|
+
var A = ye(m, t, r, n, i, o), T = g(A.map(function(b) {
|
|
3950
3964
|
return b.value;
|
|
3951
3965
|
}));
|
|
3952
|
-
Array.isArray(
|
|
3966
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(b) {
|
|
3953
3967
|
return {
|
|
3954
3968
|
type: typeof b == "string" ? P.literal : P.object,
|
|
3955
3969
|
value: b
|
|
3956
3970
|
};
|
|
3957
3971
|
}));
|
|
3958
3972
|
}
|
|
3959
|
-
if (
|
|
3960
|
-
var x = h.options[
|
|
3973
|
+
if (fr(h)) {
|
|
3974
|
+
var x = h.options[f] || h.options.other;
|
|
3961
3975
|
if (!x)
|
|
3962
|
-
throw new
|
|
3963
|
-
a.push.apply(a, ye(x.value, t,
|
|
3976
|
+
throw new Nt(h.value, f, Object.keys(h.options), s);
|
|
3977
|
+
a.push.apply(a, ye(x.value, t, r, n, i));
|
|
3964
3978
|
continue;
|
|
3965
3979
|
}
|
|
3966
|
-
if (
|
|
3967
|
-
var x = h.options["=".concat(
|
|
3980
|
+
if (mr(h)) {
|
|
3981
|
+
var x = h.options["=".concat(f)];
|
|
3968
3982
|
if (!x) {
|
|
3969
3983
|
if (!Intl.PluralRules)
|
|
3970
3984
|
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3971
3985
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3972
3986
|
`, q.MISSING_INTL_API, s);
|
|
3973
|
-
var w =
|
|
3987
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3974
3988
|
x = h.options[w] || h.options.other;
|
|
3975
3989
|
}
|
|
3976
3990
|
if (!x)
|
|
3977
|
-
throw new
|
|
3978
|
-
a.push.apply(a, ye(x.value, t,
|
|
3991
|
+
throw new Nt(h.value, f, Object.keys(h.options), s);
|
|
3992
|
+
a.push.apply(a, ye(x.value, t, r, n, i, f - (h.offset || 0)));
|
|
3979
3993
|
continue;
|
|
3980
3994
|
}
|
|
3981
3995
|
}
|
|
3982
|
-
return
|
|
3996
|
+
return Ri(a);
|
|
3983
3997
|
}
|
|
3984
|
-
function
|
|
3985
|
-
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
3986
|
-
return n
|
|
3998
|
+
function Gi(e, t) {
|
|
3999
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
4000
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3987
4001
|
}, {})) : e;
|
|
3988
4002
|
}
|
|
3989
|
-
function
|
|
3990
|
-
return t ? Object.keys(e).reduce(function(
|
|
3991
|
-
return n
|
|
4003
|
+
function Ui(e, t) {
|
|
4004
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
4005
|
+
return r[n] = Gi(e[n], t[n]), r;
|
|
3992
4006
|
}, E({}, e)) : e;
|
|
3993
4007
|
}
|
|
3994
|
-
function
|
|
4008
|
+
function Ue(e) {
|
|
3995
4009
|
return {
|
|
3996
4010
|
create: function() {
|
|
3997
4011
|
return {
|
|
3998
4012
|
get: function(t) {
|
|
3999
4013
|
return e[t];
|
|
4000
4014
|
},
|
|
4001
|
-
set: function(t,
|
|
4002
|
-
e[t] =
|
|
4015
|
+
set: function(t, r) {
|
|
4016
|
+
e[t] = r;
|
|
4003
4017
|
}
|
|
4004
4018
|
};
|
|
4005
4019
|
}
|
|
4006
4020
|
};
|
|
4007
4021
|
}
|
|
4008
|
-
function
|
|
4022
|
+
function Di(e) {
|
|
4009
4023
|
return e === void 0 && (e = {
|
|
4010
4024
|
number: {},
|
|
4011
4025
|
dateTime: {},
|
|
4012
4026
|
pluralRules: {}
|
|
4013
4027
|
}), {
|
|
4014
|
-
getNumberFormat:
|
|
4015
|
-
for (var t,
|
|
4016
|
-
n
|
|
4017
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0],
|
|
4028
|
+
getNumberFormat: Re(function() {
|
|
4029
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4030
|
+
r[n] = arguments[n];
|
|
4031
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], r, !1)))();
|
|
4018
4032
|
}, {
|
|
4019
|
-
cache:
|
|
4020
|
-
strategy:
|
|
4033
|
+
cache: Ue(e.number),
|
|
4034
|
+
strategy: $e.variadic
|
|
4021
4035
|
}),
|
|
4022
|
-
getDateTimeFormat:
|
|
4023
|
-
for (var t,
|
|
4024
|
-
n
|
|
4025
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0],
|
|
4036
|
+
getDateTimeFormat: Re(function() {
|
|
4037
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4038
|
+
r[n] = arguments[n];
|
|
4039
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], r, !1)))();
|
|
4026
4040
|
}, {
|
|
4027
|
-
cache:
|
|
4028
|
-
strategy:
|
|
4041
|
+
cache: Ue(e.dateTime),
|
|
4042
|
+
strategy: $e.variadic
|
|
4029
4043
|
}),
|
|
4030
|
-
getPluralRules:
|
|
4031
|
-
for (var t,
|
|
4032
|
-
n
|
|
4033
|
-
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0],
|
|
4044
|
+
getPluralRules: Re(function() {
|
|
4045
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4046
|
+
r[n] = arguments[n];
|
|
4047
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], r, !1)))();
|
|
4034
4048
|
}, {
|
|
4035
|
-
cache:
|
|
4036
|
-
strategy:
|
|
4049
|
+
cache: Ue(e.pluralRules),
|
|
4050
|
+
strategy: $e.variadic
|
|
4037
4051
|
})
|
|
4038
4052
|
};
|
|
4039
4053
|
}
|
|
4040
|
-
var
|
|
4054
|
+
var Fi = (
|
|
4041
4055
|
/** @class */
|
|
4042
4056
|
function() {
|
|
4043
|
-
function e(t,
|
|
4044
|
-
|
|
4057
|
+
function e(t, r, n, i) {
|
|
4058
|
+
r === void 0 && (r = e.defaultLocale);
|
|
4045
4059
|
var o = this;
|
|
4046
4060
|
if (this.formatterCache = {
|
|
4047
4061
|
number: {},
|
|
@@ -4051,8 +4065,8 @@ var Ui = (
|
|
|
4051
4065
|
var u = o.formatToParts(l);
|
|
4052
4066
|
if (u.length === 1)
|
|
4053
4067
|
return u[0].value;
|
|
4054
|
-
var h = u.reduce(function(
|
|
4055
|
-
return !
|
|
4068
|
+
var h = u.reduce(function(c, f) {
|
|
4069
|
+
return !c.length || f.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
4056
4070
|
}, []);
|
|
4057
4071
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4058
4072
|
}, this.formatToParts = function(l) {
|
|
@@ -4064,18 +4078,18 @@ var Ui = (
|
|
|
4064
4078
|
};
|
|
4065
4079
|
}, this.getAst = function() {
|
|
4066
4080
|
return o.ast;
|
|
4067
|
-
}, this.locales =
|
|
4081
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4068
4082
|
if (this.message = t, !e.__parse)
|
|
4069
4083
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4070
4084
|
var s = i || {};
|
|
4071
4085
|
s.formatters;
|
|
4072
|
-
var a =
|
|
4086
|
+
var a = _n(s, ["formatters"]);
|
|
4073
4087
|
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
|
4074
4088
|
} else
|
|
4075
4089
|
this.ast = t;
|
|
4076
4090
|
if (!Array.isArray(this.ast))
|
|
4077
4091
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4078
|
-
this.formats =
|
|
4092
|
+
this.formats = Ui(e.formats, n), this.formatters = i && i.formatters || Di(this.formatterCache);
|
|
4079
4093
|
}
|
|
4080
4094
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4081
4095
|
get: function() {
|
|
@@ -4085,10 +4099,10 @@ var Ui = (
|
|
|
4085
4099
|
configurable: !0
|
|
4086
4100
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4087
4101
|
if (typeof Intl.Locale != "undefined") {
|
|
4088
|
-
var
|
|
4089
|
-
return
|
|
4102
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4103
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4090
4104
|
}
|
|
4091
|
-
}, e.__parse =
|
|
4105
|
+
}, e.__parse = Mi, e.formats = {
|
|
4092
4106
|
number: {
|
|
4093
4107
|
integer: {
|
|
4094
4108
|
maximumFractionDigits: 0
|
|
@@ -4149,113 +4163,113 @@ var Ui = (
|
|
|
4149
4163
|
}, e;
|
|
4150
4164
|
}()
|
|
4151
4165
|
);
|
|
4152
|
-
function
|
|
4166
|
+
function ji(e, t) {
|
|
4153
4167
|
if (t == null)
|
|
4154
4168
|
return;
|
|
4155
4169
|
if (t in e)
|
|
4156
4170
|
return e[t];
|
|
4157
|
-
const
|
|
4158
|
-
let
|
|
4159
|
-
for (let i = 0; i <
|
|
4160
|
-
if (typeof
|
|
4171
|
+
const r = t.split(".");
|
|
4172
|
+
let n = e;
|
|
4173
|
+
for (let i = 0; i < r.length; i++)
|
|
4174
|
+
if (typeof n == "object") {
|
|
4161
4175
|
if (i > 0) {
|
|
4162
|
-
const o =
|
|
4163
|
-
if (o in
|
|
4164
|
-
|
|
4176
|
+
const o = r.slice(i, r.length).join(".");
|
|
4177
|
+
if (o in n) {
|
|
4178
|
+
n = n[o];
|
|
4165
4179
|
break;
|
|
4166
4180
|
}
|
|
4167
4181
|
}
|
|
4168
|
-
|
|
4182
|
+
n = n[r[i]];
|
|
4169
4183
|
} else
|
|
4170
|
-
|
|
4171
|
-
return
|
|
4184
|
+
n = void 0;
|
|
4185
|
+
return n;
|
|
4172
4186
|
}
|
|
4173
|
-
const G = {},
|
|
4187
|
+
const G = {}, ki = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), wr = (e, t) => {
|
|
4174
4188
|
if (t == null)
|
|
4175
4189
|
return;
|
|
4176
4190
|
if (t in G && e in G[t])
|
|
4177
4191
|
return G[t][e];
|
|
4178
|
-
const
|
|
4179
|
-
for (let
|
|
4180
|
-
const i = n
|
|
4192
|
+
const r = Ce(t);
|
|
4193
|
+
for (let n = 0; n < r.length; n++) {
|
|
4194
|
+
const i = r[n], o = Xi(i, e);
|
|
4181
4195
|
if (o)
|
|
4182
|
-
return
|
|
4196
|
+
return ki(e, t, o);
|
|
4183
4197
|
}
|
|
4184
4198
|
};
|
|
4185
|
-
let
|
|
4199
|
+
let ut;
|
|
4186
4200
|
const he = Ae({});
|
|
4187
|
-
function
|
|
4188
|
-
return
|
|
4201
|
+
function Vi(e) {
|
|
4202
|
+
return ut[e] || null;
|
|
4189
4203
|
}
|
|
4190
|
-
function
|
|
4191
|
-
return e in
|
|
4204
|
+
function Sr(e) {
|
|
4205
|
+
return e in ut;
|
|
4192
4206
|
}
|
|
4193
|
-
function
|
|
4194
|
-
if (!
|
|
4207
|
+
function Xi(e, t) {
|
|
4208
|
+
if (!Sr(e))
|
|
4195
4209
|
return null;
|
|
4196
|
-
const
|
|
4197
|
-
return
|
|
4210
|
+
const r = Vi(e);
|
|
4211
|
+
return ji(r, t);
|
|
4198
4212
|
}
|
|
4199
|
-
function
|
|
4213
|
+
function zi(e) {
|
|
4200
4214
|
if (e == null)
|
|
4201
4215
|
return;
|
|
4202
4216
|
const t = Ce(e);
|
|
4203
|
-
for (let
|
|
4204
|
-
const
|
|
4205
|
-
if (
|
|
4206
|
-
return
|
|
4217
|
+
for (let r = 0; r < t.length; r++) {
|
|
4218
|
+
const n = t[r];
|
|
4219
|
+
if (Sr(n))
|
|
4220
|
+
return n;
|
|
4207
4221
|
}
|
|
4208
4222
|
}
|
|
4209
|
-
function
|
|
4210
|
-
delete G[e], he.update((
|
|
4223
|
+
function Tr(e, ...t) {
|
|
4224
|
+
delete G[e], he.update((r) => (r[e] = qn.all([r[e] || {}, ...t]), r));
|
|
4211
4225
|
}
|
|
4212
4226
|
K(
|
|
4213
4227
|
[he],
|
|
4214
4228
|
([e]) => Object.keys(e)
|
|
4215
4229
|
);
|
|
4216
|
-
he.subscribe((e) =>
|
|
4230
|
+
he.subscribe((e) => ut = e);
|
|
4217
4231
|
const ve = {};
|
|
4218
|
-
function
|
|
4232
|
+
function Wi(e, t) {
|
|
4219
4233
|
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
|
4220
4234
|
}
|
|
4221
|
-
function
|
|
4235
|
+
function Hr(e) {
|
|
4222
4236
|
return ve[e];
|
|
4223
4237
|
}
|
|
4224
|
-
function
|
|
4238
|
+
function Zi(e) {
|
|
4225
4239
|
return Ce(e).map((t) => {
|
|
4226
|
-
const
|
|
4227
|
-
return [t,
|
|
4240
|
+
const r = Hr(t);
|
|
4241
|
+
return [t, r ? [...r] : []];
|
|
4228
4242
|
}).filter(([, t]) => t.length > 0);
|
|
4229
4243
|
}
|
|
4230
|
-
function
|
|
4244
|
+
function tt(e) {
|
|
4231
4245
|
return e == null ? !1 : Ce(e).some(
|
|
4232
4246
|
(t) => {
|
|
4233
|
-
var
|
|
4234
|
-
return (
|
|
4247
|
+
var r;
|
|
4248
|
+
return (r = Hr(t)) == null ? void 0 : r.size;
|
|
4235
4249
|
}
|
|
4236
4250
|
);
|
|
4237
4251
|
}
|
|
4238
|
-
function
|
|
4252
|
+
function Qi(e, t) {
|
|
4239
4253
|
return Promise.all(
|
|
4240
|
-
t.map((
|
|
4241
|
-
).then((
|
|
4254
|
+
t.map((n) => (Wi(e, n), n().then((i) => i.default || i)))
|
|
4255
|
+
).then((n) => Tr(e, ...n));
|
|
4242
4256
|
}
|
|
4243
|
-
const
|
|
4244
|
-
function
|
|
4245
|
-
if (!
|
|
4246
|
-
return e in
|
|
4247
|
-
const t =
|
|
4248
|
-
return
|
|
4257
|
+
const ne = {};
|
|
4258
|
+
function Ar(e) {
|
|
4259
|
+
if (!tt(e))
|
|
4260
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
4261
|
+
const t = Zi(e);
|
|
4262
|
+
return ne[e] = Promise.all(
|
|
4249
4263
|
t.map(
|
|
4250
|
-
([
|
|
4264
|
+
([r, n]) => Qi(r, n)
|
|
4251
4265
|
)
|
|
4252
4266
|
).then(() => {
|
|
4253
|
-
if (
|
|
4254
|
-
return
|
|
4255
|
-
delete
|
|
4256
|
-
}),
|
|
4267
|
+
if (tt(e))
|
|
4268
|
+
return Ar(e);
|
|
4269
|
+
delete ne[e];
|
|
4270
|
+
}), ne[e];
|
|
4257
4271
|
}
|
|
4258
|
-
const
|
|
4272
|
+
const Ji = {
|
|
4259
4273
|
number: {
|
|
4260
4274
|
scientific: { notation: "scientific" },
|
|
4261
4275
|
engineering: { notation: "engineering" },
|
|
@@ -4284,136 +4298,136 @@ const Zi = {
|
|
|
4284
4298
|
timeZoneName: "short"
|
|
4285
4299
|
}
|
|
4286
4300
|
}
|
|
4287
|
-
},
|
|
4301
|
+
}, qi = {
|
|
4288
4302
|
fallbackLocale: null,
|
|
4289
4303
|
loadingDelay: 200,
|
|
4290
|
-
formats:
|
|
4304
|
+
formats: Ji,
|
|
4291
4305
|
warnOnMissingMessages: !0,
|
|
4292
4306
|
handleMissingMessage: void 0,
|
|
4293
4307
|
ignoreTag: !0
|
|
4294
|
-
},
|
|
4308
|
+
}, Yi = qi;
|
|
4295
4309
|
function Y() {
|
|
4296
|
-
return
|
|
4297
|
-
}
|
|
4298
|
-
const
|
|
4299
|
-
var
|
|
4300
|
-
for (var
|
|
4301
|
-
|
|
4302
|
-
if (
|
|
4303
|
-
for (var
|
|
4304
|
-
|
|
4310
|
+
return Yi;
|
|
4311
|
+
}
|
|
4312
|
+
const De = Ae(!1);
|
|
4313
|
+
var Ki = Object.defineProperty, eo = Object.defineProperties, to = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, ro = Object.prototype.hasOwnProperty, no = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, io = (e, t) => {
|
|
4314
|
+
for (var r in t || (t = {}))
|
|
4315
|
+
ro.call(t, r) && Rt(e, r, t[r]);
|
|
4316
|
+
if (Lt)
|
|
4317
|
+
for (var r of Lt(t))
|
|
4318
|
+
no.call(t, r) && Rt(e, r, t[r]);
|
|
4305
4319
|
return e;
|
|
4306
|
-
},
|
|
4307
|
-
let
|
|
4320
|
+
}, oo = (e, t) => eo(e, to(t));
|
|
4321
|
+
let rt;
|
|
4308
4322
|
const we = Ae(null);
|
|
4309
|
-
function
|
|
4310
|
-
return e.split("-").map((t,
|
|
4323
|
+
function $t(e) {
|
|
4324
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4311
4325
|
}
|
|
4312
4326
|
function Ce(e, t = Y().fallbackLocale) {
|
|
4313
|
-
const
|
|
4314
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4327
|
+
const r = $t(e);
|
|
4328
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...$t(t)])] : r;
|
|
4315
4329
|
}
|
|
4316
4330
|
function F() {
|
|
4317
|
-
return
|
|
4331
|
+
return rt != null ? rt : void 0;
|
|
4318
4332
|
}
|
|
4319
4333
|
we.subscribe((e) => {
|
|
4320
|
-
|
|
4334
|
+
rt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4321
4335
|
});
|
|
4322
|
-
const
|
|
4323
|
-
if (e &&
|
|
4336
|
+
const so = (e) => {
|
|
4337
|
+
if (e && zi(e) && tt(e)) {
|
|
4324
4338
|
const { loadingDelay: t } = Y();
|
|
4325
|
-
let
|
|
4326
|
-
return typeof window != "undefined" && F() != null && t ?
|
|
4327
|
-
() =>
|
|
4339
|
+
let r;
|
|
4340
|
+
return typeof window != "undefined" && F() != null && t ? r = window.setTimeout(
|
|
4341
|
+
() => De.set(!0),
|
|
4328
4342
|
t
|
|
4329
|
-
) :
|
|
4343
|
+
) : De.set(!0), Ar(e).then(() => {
|
|
4330
4344
|
we.set(e);
|
|
4331
4345
|
}).finally(() => {
|
|
4332
|
-
clearTimeout(
|
|
4346
|
+
clearTimeout(r), De.set(!1);
|
|
4333
4347
|
});
|
|
4334
4348
|
}
|
|
4335
4349
|
return we.set(e);
|
|
4336
|
-
}, ee =
|
|
4337
|
-
set:
|
|
4350
|
+
}, ee = oo(io({}, we), {
|
|
4351
|
+
set: so
|
|
4338
4352
|
}), Pe = (e) => {
|
|
4339
4353
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4340
|
-
return (
|
|
4341
|
-
const i = JSON.stringify(
|
|
4342
|
-
return i in t ? t[i] : t[i] = e(
|
|
4354
|
+
return (n) => {
|
|
4355
|
+
const i = JSON.stringify(n);
|
|
4356
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4343
4357
|
};
|
|
4344
4358
|
};
|
|
4345
|
-
var
|
|
4346
|
-
for (var
|
|
4347
|
-
|
|
4359
|
+
var ao = Object.defineProperty, Se = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4360
|
+
for (var r in t || (t = {}))
|
|
4361
|
+
Br.call(t, r) && Gt(e, r, t[r]);
|
|
4348
4362
|
if (Se)
|
|
4349
|
-
for (var
|
|
4350
|
-
|
|
4363
|
+
for (var r of Se(t))
|
|
4364
|
+
Cr.call(t, r) && Gt(e, r, t[r]);
|
|
4351
4365
|
return e;
|
|
4352
4366
|
}, te = (e, t) => {
|
|
4353
|
-
var
|
|
4354
|
-
for (var
|
|
4355
|
-
|
|
4367
|
+
var r = {};
|
|
4368
|
+
for (var n in e)
|
|
4369
|
+
Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4356
4370
|
if (e != null && Se)
|
|
4357
|
-
for (var
|
|
4358
|
-
t.indexOf(
|
|
4359
|
-
return
|
|
4371
|
+
for (var n of Se(e))
|
|
4372
|
+
t.indexOf(n) < 0 && Cr.call(e, n) && (r[n] = e[n]);
|
|
4373
|
+
return r;
|
|
4360
4374
|
};
|
|
4361
4375
|
const ae = (e, t) => {
|
|
4362
|
-
const { formats:
|
|
4363
|
-
if (e in
|
|
4364
|
-
return
|
|
4376
|
+
const { formats: r } = Y();
|
|
4377
|
+
if (e in r && t in r[e])
|
|
4378
|
+
return r[e][t];
|
|
4365
4379
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4366
|
-
},
|
|
4380
|
+
}, uo = Pe(
|
|
4367
4381
|
(e) => {
|
|
4368
|
-
var t = e, { locale:
|
|
4369
|
-
if (
|
|
4382
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4383
|
+
if (r == null)
|
|
4370
4384
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4371
|
-
return
|
|
4385
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
4372
4386
|
}
|
|
4373
|
-
),
|
|
4387
|
+
), lo = Pe(
|
|
4374
4388
|
(e) => {
|
|
4375
|
-
var t = e, { locale:
|
|
4376
|
-
if (
|
|
4389
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4390
|
+
if (r == null)
|
|
4377
4391
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4378
|
-
return
|
|
4392
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4379
4393
|
}
|
|
4380
|
-
),
|
|
4394
|
+
), ho = Pe(
|
|
4381
4395
|
(e) => {
|
|
4382
|
-
var t = e, { locale:
|
|
4383
|
-
if (
|
|
4396
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4397
|
+
if (r == null)
|
|
4384
4398
|
throw new Error(
|
|
4385
4399
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4386
4400
|
);
|
|
4387
|
-
return
|
|
4401
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4388
4402
|
}
|
|
4389
|
-
),
|
|
4403
|
+
), co = (e = {}) => {
|
|
4390
4404
|
var t = e, {
|
|
4391
|
-
locale:
|
|
4392
|
-
} = t,
|
|
4405
|
+
locale: r = F()
|
|
4406
|
+
} = t, n = te(t, [
|
|
4393
4407
|
"locale"
|
|
4394
4408
|
]);
|
|
4395
|
-
return
|
|
4396
|
-
},
|
|
4409
|
+
return uo(lt({ locale: r }, n));
|
|
4410
|
+
}, fo = (e = {}) => {
|
|
4397
4411
|
var t = e, {
|
|
4398
|
-
locale:
|
|
4399
|
-
} = t,
|
|
4412
|
+
locale: r = F()
|
|
4413
|
+
} = t, n = te(t, [
|
|
4400
4414
|
"locale"
|
|
4401
4415
|
]);
|
|
4402
|
-
return
|
|
4403
|
-
},
|
|
4416
|
+
return lo(lt({ locale: r }, n));
|
|
4417
|
+
}, mo = (e = {}) => {
|
|
4404
4418
|
var t = e, {
|
|
4405
|
-
locale:
|
|
4406
|
-
} = t,
|
|
4419
|
+
locale: r = F()
|
|
4420
|
+
} = t, n = te(t, [
|
|
4407
4421
|
"locale"
|
|
4408
4422
|
]);
|
|
4409
|
-
return
|
|
4410
|
-
},
|
|
4423
|
+
return ho(lt({ locale: r }, n));
|
|
4424
|
+
}, po = Pe(
|
|
4411
4425
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4412
|
-
(e, t = F()) => new
|
|
4426
|
+
(e, t = F()) => new Fi(e, t, Y().formats, {
|
|
4413
4427
|
ignoreTag: Y().ignoreTag
|
|
4414
4428
|
})
|
|
4415
|
-
),
|
|
4416
|
-
var
|
|
4429
|
+
), bo = (e, t = {}) => {
|
|
4430
|
+
var r, n, i, o;
|
|
4417
4431
|
let s = t;
|
|
4418
4432
|
typeof e == "object" && (s = e, e = s.id);
|
|
4419
4433
|
const {
|
|
@@ -4425,62 +4439,62 @@ const ae = (e, t) => {
|
|
|
4425
4439
|
throw new Error(
|
|
4426
4440
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4427
4441
|
);
|
|
4428
|
-
let h =
|
|
4442
|
+
let h = wr(e, l);
|
|
4429
4443
|
if (!h)
|
|
4430
|
-
h = (o = (i = (
|
|
4444
|
+
h = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4431
4445
|
else if (typeof h != "string")
|
|
4432
4446
|
return console.warn(
|
|
4433
4447
|
`[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.`
|
|
4434
4448
|
), h;
|
|
4435
4449
|
if (!a)
|
|
4436
4450
|
return h;
|
|
4437
|
-
let
|
|
4451
|
+
let c = h;
|
|
4438
4452
|
try {
|
|
4439
|
-
|
|
4440
|
-
} catch (
|
|
4441
|
-
|
|
4453
|
+
c = po(h, l).format(a);
|
|
4454
|
+
} catch (f) {
|
|
4455
|
+
f instanceof Error && console.warn(
|
|
4442
4456
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4443
|
-
|
|
4457
|
+
f.message
|
|
4444
4458
|
);
|
|
4445
4459
|
}
|
|
4446
|
-
return
|
|
4447
|
-
},
|
|
4448
|
-
K([ee], () => po);
|
|
4449
|
-
K([ee], () => bo);
|
|
4460
|
+
return c;
|
|
4461
|
+
}, go = (e, t) => mo(t).format(e), yo = (e, t) => fo(t).format(e), vo = (e, t) => co(t).format(e), _o = (e, t = F()) => wr(e, t), xo = K([ee, he], () => bo);
|
|
4450
4462
|
K([ee], () => go);
|
|
4451
|
-
K([ee
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4463
|
+
K([ee], () => yo);
|
|
4464
|
+
K([ee], () => vo);
|
|
4465
|
+
K([ee, he], () => _o);
|
|
4466
|
+
window.emWidgets = { topic: Nn };
|
|
4467
|
+
const Eo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4468
|
+
function wo(e, t) {
|
|
4455
4469
|
if (e) {
|
|
4456
|
-
const
|
|
4457
|
-
|
|
4470
|
+
const r = document.createElement("style");
|
|
4471
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4458
4472
|
}
|
|
4459
4473
|
}
|
|
4460
|
-
function
|
|
4461
|
-
const
|
|
4462
|
-
fetch(
|
|
4474
|
+
function So(e, t) {
|
|
4475
|
+
const r = new URL(t);
|
|
4476
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4463
4477
|
const i = document.createElement("style");
|
|
4464
|
-
i.innerHTML =
|
|
4465
|
-
}).catch((
|
|
4466
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4478
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4479
|
+
}).catch((n) => {
|
|
4480
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4467
4481
|
});
|
|
4468
4482
|
}
|
|
4469
|
-
function
|
|
4483
|
+
function To(e, t, r) {
|
|
4470
4484
|
if (window.emMessageBus) {
|
|
4471
|
-
const
|
|
4485
|
+
const n = document.createElement("style");
|
|
4472
4486
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4473
|
-
|
|
4487
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4474
4488
|
});
|
|
4475
4489
|
}
|
|
4476
4490
|
}
|
|
4477
|
-
function
|
|
4478
|
-
|
|
4491
|
+
function Ut(e, t) {
|
|
4492
|
+
Tr(e, t);
|
|
4479
4493
|
}
|
|
4480
|
-
function
|
|
4494
|
+
function Ho(e) {
|
|
4481
4495
|
ee.set(e);
|
|
4482
4496
|
}
|
|
4483
|
-
const
|
|
4497
|
+
const Dt = {
|
|
4484
4498
|
en: {
|
|
4485
4499
|
cancel: "Cancel",
|
|
4486
4500
|
confirm: "Confirm"
|
|
@@ -4526,41 +4540,41 @@ const Gt = {
|
|
|
4526
4540
|
confirm: "Confirm"
|
|
4527
4541
|
}
|
|
4528
4542
|
};
|
|
4529
|
-
function To(e) {
|
|
4530
|
-
zn(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{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);text-align:center}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);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)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4531
|
-
}
|
|
4532
|
-
const Ho = (e) => ({}), Ut = (e) => ({});
|
|
4533
4543
|
function Ao(e) {
|
|
4534
|
-
|
|
4544
|
+
Zr(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{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);text-align:center}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);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)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4545
|
+
}
|
|
4546
|
+
const Bo = (e) => ({}), Ft = (e) => ({});
|
|
4547
|
+
function Co(e) {
|
|
4548
|
+
let t, r;
|
|
4535
4549
|
return {
|
|
4536
4550
|
c() {
|
|
4537
|
-
t =
|
|
4551
|
+
t = bt("svg"), r = bt("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "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");
|
|
4538
4552
|
},
|
|
4539
|
-
m(
|
|
4540
|
-
ue(
|
|
4553
|
+
m(n, i) {
|
|
4554
|
+
ue(n, t, i), C(t, r);
|
|
4541
4555
|
},
|
|
4542
4556
|
p: N,
|
|
4543
|
-
d(
|
|
4544
|
-
|
|
4557
|
+
d(n) {
|
|
4558
|
+
n && D(t);
|
|
4545
4559
|
}
|
|
4546
4560
|
};
|
|
4547
4561
|
}
|
|
4548
|
-
function
|
|
4549
|
-
let t,
|
|
4562
|
+
function jt(e) {
|
|
4563
|
+
let t, r, n;
|
|
4550
4564
|
return {
|
|
4551
4565
|
c() {
|
|
4552
|
-
t = M("div"),
|
|
4566
|
+
t = M("div"), r = M("h2"), n = le(
|
|
4553
4567
|
/*modaltitle*/
|
|
4554
4568
|
e[1]
|
|
4555
|
-
),
|
|
4569
|
+
), H(t, "class", "GeneralConfirmationTitle");
|
|
4556
4570
|
},
|
|
4557
4571
|
m(i, o) {
|
|
4558
|
-
ue(i, t, o), C(t,
|
|
4572
|
+
ue(i, t, o), C(t, r), C(r, n);
|
|
4559
4573
|
},
|
|
4560
4574
|
p(i, o) {
|
|
4561
4575
|
o & /*modaltitle*/
|
|
4562
|
-
2 &&
|
|
4563
|
-
|
|
4576
|
+
2 && ot(
|
|
4577
|
+
n,
|
|
4564
4578
|
/*modaltitle*/
|
|
4565
4579
|
i[1]
|
|
4566
4580
|
);
|
|
@@ -4570,17 +4584,17 @@ function Dt(e) {
|
|
|
4570
4584
|
}
|
|
4571
4585
|
};
|
|
4572
4586
|
}
|
|
4573
|
-
function
|
|
4574
|
-
let t,
|
|
4587
|
+
function kt(e) {
|
|
4588
|
+
let t, r = (
|
|
4575
4589
|
/*$_*/
|
|
4576
4590
|
e[4]("cancel") + ""
|
|
4577
|
-
),
|
|
4591
|
+
), n, i, o;
|
|
4578
4592
|
return {
|
|
4579
4593
|
c() {
|
|
4580
|
-
t = M("button"),
|
|
4594
|
+
t = M("button"), n = le(r), H(t, "class", "GeneralCancelButton");
|
|
4581
4595
|
},
|
|
4582
4596
|
m(s, a) {
|
|
4583
|
-
ue(s, t, a), C(t,
|
|
4597
|
+
ue(s, t, a), C(t, n), i || (o = Fe(
|
|
4584
4598
|
t,
|
|
4585
4599
|
"click",
|
|
4586
4600
|
/*click_handler*/
|
|
@@ -4589,169 +4603,169 @@ function Ft(e) {
|
|
|
4589
4603
|
},
|
|
4590
4604
|
p(s, a) {
|
|
4591
4605
|
a & /*$_*/
|
|
4592
|
-
16 &&
|
|
4593
|
-
s[4]("cancel") + "") &&
|
|
4606
|
+
16 && r !== (r = /*$_*/
|
|
4607
|
+
s[4]("cancel") + "") && ot(n, r);
|
|
4594
4608
|
},
|
|
4595
4609
|
d(s) {
|
|
4596
4610
|
s && D(t), i = !1, o();
|
|
4597
4611
|
}
|
|
4598
4612
|
};
|
|
4599
4613
|
}
|
|
4600
|
-
function
|
|
4601
|
-
let t,
|
|
4614
|
+
function Po(e) {
|
|
4615
|
+
let t, r, n, i, o, s, a, l, u, h, c = (
|
|
4602
4616
|
/*$_*/
|
|
4603
4617
|
e[4]("confirm") + ""
|
|
4604
|
-
),
|
|
4618
|
+
), f, d, m, p;
|
|
4605
4619
|
const g = (
|
|
4606
4620
|
/*#slots*/
|
|
4607
4621
|
e[16].close
|
|
4608
|
-
),
|
|
4622
|
+
), A = jr(
|
|
4609
4623
|
g,
|
|
4610
4624
|
e,
|
|
4611
4625
|
/*$$scope*/
|
|
4612
4626
|
e[15],
|
|
4613
|
-
|
|
4614
|
-
),
|
|
4627
|
+
Ft
|
|
4628
|
+
), T = A || Co();
|
|
4615
4629
|
let x = (
|
|
4616
4630
|
/*modaltitle*/
|
|
4617
|
-
e[1] &&
|
|
4631
|
+
e[1] && jt(e)
|
|
4618
4632
|
), w = (
|
|
4619
4633
|
/*hascancelbutton*/
|
|
4620
|
-
e[2] &&
|
|
4634
|
+
e[2] && kt(e)
|
|
4621
4635
|
);
|
|
4622
4636
|
return {
|
|
4623
4637
|
c() {
|
|
4624
|
-
t = M("div"),
|
|
4625
|
-
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")),
|
|
4626
|
-
(e[5] ? "GeneralConfirmationContainerMobile" : "")),
|
|
4638
|
+
t = M("div"), r = M("div"), n = M("span"), T && T.c(), i = fe(), x && x.c(), o = fe(), s = M("div"), a = fe(), l = M("div"), w && w.c(), u = fe(), h = M("button"), f = le(c), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(h, "class", "GeneralConfirmButton"), H(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4639
|
+
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4640
|
+
(e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4627
4641
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4628
4642
|
},
|
|
4629
4643
|
m(b, B) {
|
|
4630
|
-
ue(b, t, B), C(t,
|
|
4631
|
-
e[0], C(
|
|
4632
|
-
|
|
4633
|
-
|
|
4644
|
+
ue(b, t, B), C(t, r), C(r, n), T && T.m(n, null), C(r, i), x && x.m(r, null), C(r, o), C(r, s), s.innerHTML = /*modaltext*/
|
|
4645
|
+
e[0], C(r, a), C(r, l), w && w.m(l, null), C(l, u), C(l, h), C(h, f), e[19](t), d = !0, m || (p = [
|
|
4646
|
+
Fe(
|
|
4647
|
+
n,
|
|
4634
4648
|
"click",
|
|
4635
4649
|
/*close*/
|
|
4636
4650
|
e[6]
|
|
4637
4651
|
),
|
|
4638
|
-
|
|
4652
|
+
Fe(
|
|
4639
4653
|
h,
|
|
4640
4654
|
"click",
|
|
4641
4655
|
/*click_handler_1*/
|
|
4642
4656
|
e[18]
|
|
4643
4657
|
)
|
|
4644
|
-
],
|
|
4658
|
+
], m = !0);
|
|
4645
4659
|
},
|
|
4646
4660
|
p(b, [B]) {
|
|
4647
|
-
|
|
4648
|
-
32768) &&
|
|
4649
|
-
|
|
4661
|
+
A && A.p && (!d || B & /*$$scope*/
|
|
4662
|
+
32768) && Vr(
|
|
4663
|
+
A,
|
|
4650
4664
|
g,
|
|
4651
4665
|
b,
|
|
4652
4666
|
/*$$scope*/
|
|
4653
4667
|
b[15],
|
|
4654
|
-
|
|
4668
|
+
d ? kr(
|
|
4655
4669
|
g,
|
|
4656
4670
|
/*$$scope*/
|
|
4657
4671
|
b[15],
|
|
4658
4672
|
B,
|
|
4659
|
-
|
|
4660
|
-
) :
|
|
4673
|
+
Bo
|
|
4674
|
+
) : Xr(
|
|
4661
4675
|
/*$$scope*/
|
|
4662
4676
|
b[15]
|
|
4663
4677
|
),
|
|
4664
|
-
|
|
4678
|
+
Ft
|
|
4665
4679
|
), /*modaltitle*/
|
|
4666
|
-
b[1] ? x ? x.p(b, B) : (x =
|
|
4680
|
+
b[1] ? x ? x.p(b, B) : (x = jt(b), x.c(), x.m(r, o)) : x && (x.d(1), x = null), (!d || B & /*modaltext*/
|
|
4667
4681
|
1) && (s.innerHTML = /*modaltext*/
|
|
4668
4682
|
b[0]), /*hascancelbutton*/
|
|
4669
|
-
b[2] ? w ? w.p(b, B) : (w =
|
|
4670
|
-
16) &&
|
|
4671
|
-
b[4]("confirm") + "") &&
|
|
4683
|
+
b[2] ? w ? w.p(b, B) : (w = kt(b), w.c(), w.m(l, u)) : w && (w.d(1), w = null), (!d || B & /*$_*/
|
|
4684
|
+
16) && c !== (c = /*$_*/
|
|
4685
|
+
b[4]("confirm") + "") && ot(f, c);
|
|
4672
4686
|
},
|
|
4673
4687
|
i(b) {
|
|
4674
|
-
|
|
4688
|
+
d || (qt(T, b), d = !0);
|
|
4675
4689
|
},
|
|
4676
4690
|
o(b) {
|
|
4677
|
-
|
|
4691
|
+
cn(T, b), d = !1;
|
|
4678
4692
|
},
|
|
4679
4693
|
d(b) {
|
|
4680
|
-
b && D(t),
|
|
4694
|
+
b && D(t), T && T.d(b), x && x.d(), w && w.d(), e[19](null), m = !1, U(p);
|
|
4681
4695
|
}
|
|
4682
4696
|
};
|
|
4683
4697
|
}
|
|
4684
|
-
function
|
|
4685
|
-
let
|
|
4686
|
-
|
|
4687
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang:
|
|
4698
|
+
function Oo(e, t, r) {
|
|
4699
|
+
let n;
|
|
4700
|
+
Fr(e, xo, (v) => r(4, n = v));
|
|
4701
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { mbsource: p } = t, g, A = window.navigator.userAgent, T = Eo(A) !== "PC";
|
|
4688
4702
|
const x = () => {
|
|
4689
4703
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4690
4704
|
}, w = (v) => {
|
|
4691
4705
|
v === "confirm" && u && window.postMessage(u, window.location.href), v === "cancel" && h && window.postMessage(h, window.location.href), x();
|
|
4692
4706
|
}, b = () => {
|
|
4693
|
-
fetch(
|
|
4694
|
-
Object.keys(j).forEach((
|
|
4695
|
-
|
|
4707
|
+
fetch(m).then((j) => j.json()).then((j) => {
|
|
4708
|
+
Object.keys(j).forEach((ht) => {
|
|
4709
|
+
Ut(ht, j[ht]);
|
|
4696
4710
|
});
|
|
4697
4711
|
}).catch((j) => {
|
|
4698
4712
|
console.log(j);
|
|
4699
4713
|
});
|
|
4700
4714
|
};
|
|
4701
|
-
Object.keys(
|
|
4702
|
-
|
|
4715
|
+
Object.keys(Dt).forEach((v) => {
|
|
4716
|
+
Ut(v, Dt[v]);
|
|
4703
4717
|
});
|
|
4704
4718
|
const B = () => {
|
|
4705
|
-
|
|
4719
|
+
Ho(c);
|
|
4706
4720
|
};
|
|
4707
|
-
|
|
4721
|
+
on(() => () => {
|
|
4708
4722
|
});
|
|
4709
|
-
const
|
|
4710
|
-
function
|
|
4711
|
-
|
|
4712
|
-
g = v,
|
|
4723
|
+
const ce = () => w("cancel"), Or = () => w("confirm");
|
|
4724
|
+
function Ir(v) {
|
|
4725
|
+
je[v ? "unshift" : "push"](() => {
|
|
4726
|
+
g = v, r(3, g);
|
|
4713
4727
|
});
|
|
4714
4728
|
}
|
|
4715
4729
|
return e.$$set = (v) => {
|
|
4716
|
-
"modaltext" in v &&
|
|
4730
|
+
"modaltext" in v && r(0, s = v.modaltext), "modaltitle" in v && r(1, a = v.modaltitle), "hascancelbutton" in v && r(2, l = v.hascancelbutton), "modalconfirmevent" in v && r(8, u = v.modalconfirmevent), "modalcancelevent" in v && r(9, h = v.modalcancelevent), "lang" in v && r(10, c = v.lang), "clientstyling" in v && r(11, f = v.clientstyling), "clientstylingurl" in v && r(12, d = v.clientstylingurl), "translationurl" in v && r(13, m = v.translationurl), "mbsource" in v && r(14, p = v.mbsource), "$$scope" in v && r(15, o = v.$$scope);
|
|
4717
4731
|
}, e.$$.update = () => {
|
|
4718
4732
|
e.$$.dirty & /*modaltext, lang*/
|
|
4719
|
-
1025 && s &&
|
|
4720
|
-
2056 &&
|
|
4721
|
-
4104 &&
|
|
4722
|
-
16392 && p && g &&
|
|
4723
|
-
8192 &&
|
|
4733
|
+
1025 && s && c && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4734
|
+
2056 && f && g && wo(g, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4735
|
+
4104 && d && g && So(g, d), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4736
|
+
16392 && p && g && To(g, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4737
|
+
8192 && m && b();
|
|
4724
4738
|
}, [
|
|
4725
4739
|
s,
|
|
4726
4740
|
a,
|
|
4727
4741
|
l,
|
|
4728
4742
|
g,
|
|
4729
|
-
|
|
4730
|
-
|
|
4743
|
+
n,
|
|
4744
|
+
T,
|
|
4731
4745
|
x,
|
|
4732
4746
|
w,
|
|
4733
4747
|
u,
|
|
4734
4748
|
h,
|
|
4735
|
-
f,
|
|
4736
4749
|
c,
|
|
4737
|
-
|
|
4750
|
+
f,
|
|
4738
4751
|
d,
|
|
4752
|
+
m,
|
|
4739
4753
|
p,
|
|
4740
4754
|
o,
|
|
4741
4755
|
i,
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4756
|
+
ce,
|
|
4757
|
+
Or,
|
|
4758
|
+
Ir
|
|
4745
4759
|
];
|
|
4746
4760
|
}
|
|
4747
|
-
class
|
|
4761
|
+
class Pr extends yn {
|
|
4748
4762
|
constructor(t) {
|
|
4749
|
-
super(),
|
|
4763
|
+
super(), bn(
|
|
4750
4764
|
this,
|
|
4751
4765
|
t,
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4766
|
+
Oo,
|
|
4767
|
+
Po,
|
|
4768
|
+
Xt,
|
|
4755
4769
|
{
|
|
4756
4770
|
modaltext: 0,
|
|
4757
4771
|
modaltitle: 1,
|
|
@@ -4764,7 +4778,7 @@ class Bn extends pr {
|
|
|
4764
4778
|
translationurl: 13,
|
|
4765
4779
|
mbsource: 14
|
|
4766
4780
|
},
|
|
4767
|
-
|
|
4781
|
+
Ao
|
|
4768
4782
|
);
|
|
4769
4783
|
}
|
|
4770
4784
|
get modaltext() {
|
|
@@ -4828,58 +4842,58 @@ class Bn extends pr {
|
|
|
4828
4842
|
this.$$set({ mbsource: t }), I();
|
|
4829
4843
|
}
|
|
4830
4844
|
}
|
|
4831
|
-
|
|
4832
|
-
const
|
|
4845
|
+
gn(Pr, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4846
|
+
const ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4833
4847
|
__proto__: null,
|
|
4834
|
-
default:
|
|
4848
|
+
default: Pr
|
|
4835
4849
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4836
4850
|
export {
|
|
4837
4851
|
ee as $,
|
|
4838
4852
|
wo as A,
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4853
|
+
jo as B,
|
|
4854
|
+
Rn as C,
|
|
4855
|
+
Tr as D,
|
|
4842
4856
|
N as E,
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4857
|
+
Fr as F,
|
|
4858
|
+
Eo as G,
|
|
4859
|
+
Fo as H,
|
|
4860
|
+
fe as I,
|
|
4847
4861
|
le as J,
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4862
|
+
bt as K,
|
|
4863
|
+
$o as L,
|
|
4864
|
+
Fe as M,
|
|
4865
|
+
ot as N,
|
|
4866
|
+
Mo as O,
|
|
4853
4867
|
U as P,
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4868
|
+
Lo as Q,
|
|
4869
|
+
Ro as R,
|
|
4870
|
+
yn as S,
|
|
4871
|
+
xo as T,
|
|
4872
|
+
ko as U,
|
|
4873
|
+
bn as a,
|
|
4874
|
+
Zr as b,
|
|
4875
|
+
gn as c,
|
|
4862
4876
|
ue as d,
|
|
4863
|
-
|
|
4877
|
+
No as e,
|
|
4864
4878
|
I as f,
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4879
|
+
cn as g,
|
|
4880
|
+
Uo as h,
|
|
4881
|
+
Gr as i,
|
|
4868
4882
|
D as j,
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4883
|
+
So as k,
|
|
4884
|
+
To as l,
|
|
4885
|
+
jr as m,
|
|
4886
|
+
M as n,
|
|
4887
|
+
on as o,
|
|
4888
|
+
H as p,
|
|
4889
|
+
C as q,
|
|
4890
|
+
Xr as r,
|
|
4891
|
+
Xt as s,
|
|
4892
|
+
qt as t,
|
|
4893
|
+
Vr as u,
|
|
4894
|
+
kr as v,
|
|
4895
|
+
Ee as w,
|
|
4896
|
+
Do as x,
|
|
4897
|
+
Go as y,
|
|
4898
|
+
je as z
|
|
4885
4899
|
};
|