@everymatrix/player-account-general-confirmation-modal 1.56.0 → 1.56.2
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-B7rHA2DP.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-xgQElosg.js → PlayerAccountGeneralConfirmationModal-C4g1TLWM.js} +602 -547
- package/components/{PlayerAccountGeneralConfirmationModal-BpYu_jB7.js → PlayerAccountGeneralConfirmationModal-IY2sNbEx.js} +610 -555
- package/es2015/player-account-general-confirmation-modal.cjs +1 -1
- package/es2015/player-account-general-confirmation-modal.js +1 -1
- package/esnext/player-account-general-confirmation-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-BJ8eVVYi.cjs +0 -5
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
function
|
|
1
|
+
function N() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
4
|
-
for (const r in t)
|
|
3
|
+
function dr(e, t) {
|
|
4
|
+
for (const r in t)
|
|
5
|
+
e[r] = t[r];
|
|
5
6
|
return (
|
|
6
7
|
/** @type {T & S} */
|
|
7
8
|
e
|
|
8
9
|
);
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
+
function Ct(e) {
|
|
11
12
|
return e();
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
+
function tt() {
|
|
14
15
|
return /* @__PURE__ */ Object.create(null);
|
|
15
16
|
}
|
|
16
17
|
function Q(e) {
|
|
17
|
-
e.forEach(
|
|
18
|
+
e.forEach(Ct);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function Qe(e) {
|
|
20
21
|
return typeof e == "function";
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function Pt(e, t) {
|
|
23
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function pr(e) {
|
|
26
27
|
return Object.keys(e).length === 0;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function Ot(e, ...t) {
|
|
29
30
|
if (e == null) {
|
|
30
31
|
for (const n of t)
|
|
31
32
|
n(void 0);
|
|
32
|
-
return
|
|
33
|
+
return N;
|
|
33
34
|
}
|
|
34
35
|
const r = e.subscribe(...t);
|
|
35
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function br(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(Ot(t, r));
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function gr(e, t, r, n) {
|
|
41
42
|
if (e) {
|
|
42
|
-
const i =
|
|
43
|
+
const i = It(e, t, r, n);
|
|
43
44
|
return e[0](i);
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
return e[1] && n ?
|
|
47
|
+
function It(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? dr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function vr(e, t, r, n) {
|
|
50
51
|
if (e[2] && n) {
|
|
51
52
|
const i = e[2](n(r));
|
|
52
53
|
if (t.dirty === void 0)
|
|
@@ -61,13 +62,13 @@ function dr(e, t, r, n) {
|
|
|
61
62
|
}
|
|
62
63
|
return t.dirty;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function yr(e, t, r, n, i, o) {
|
|
65
66
|
if (i) {
|
|
66
|
-
const s =
|
|
67
|
+
const s = It(t, r, n, o);
|
|
67
68
|
e.p(s, i);
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function xr(e) {
|
|
71
72
|
if (e.ctx.length > 32) {
|
|
72
73
|
const t = [], r = e.ctx.length / 32;
|
|
73
74
|
for (let n = 0; n < r; n++)
|
|
@@ -79,15 +80,16 @@ function br(e) {
|
|
|
79
80
|
function B(e, t) {
|
|
80
81
|
e.appendChild(t);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
const n =
|
|
83
|
+
function _r(e, t, r) {
|
|
84
|
+
const n = Er(e);
|
|
84
85
|
if (!n.getElementById(t)) {
|
|
85
|
-
const i =
|
|
86
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
const i = M("style");
|
|
87
|
+
i.id = t, i.textContent = r, Sr(n, i);
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
if (!e)
|
|
90
|
+
function Er(e) {
|
|
91
|
+
if (!e)
|
|
92
|
+
return document;
|
|
91
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
92
94
|
return t && /** @type {ShadowRoot} */
|
|
93
95
|
t.host ? (
|
|
@@ -95,7 +97,7 @@ function vr(e) {
|
|
|
95
97
|
t
|
|
96
98
|
) : e.ownerDocument;
|
|
97
99
|
}
|
|
98
|
-
function
|
|
100
|
+
function Sr(e, t) {
|
|
99
101
|
return B(
|
|
100
102
|
/** @type {Document} */
|
|
101
103
|
e.head || e,
|
|
@@ -108,10 +110,10 @@ function se(e, t, r) {
|
|
|
108
110
|
function J(e) {
|
|
109
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
110
112
|
}
|
|
111
|
-
function
|
|
113
|
+
function M(e) {
|
|
112
114
|
return document.createElement(e);
|
|
113
115
|
}
|
|
114
|
-
function
|
|
116
|
+
function rt(e) {
|
|
115
117
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
116
118
|
}
|
|
117
119
|
function re(e) {
|
|
@@ -120,20 +122,20 @@ function re(e) {
|
|
|
120
122
|
function ue() {
|
|
121
123
|
return re(" ");
|
|
122
124
|
}
|
|
123
|
-
function
|
|
125
|
+
function Ie(e, t, r, n) {
|
|
124
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
125
127
|
}
|
|
126
128
|
function H(e, t, r) {
|
|
127
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
128
130
|
}
|
|
129
|
-
function
|
|
131
|
+
function wr(e) {
|
|
130
132
|
return Array.from(e.childNodes);
|
|
131
133
|
}
|
|
132
134
|
function be(e, t) {
|
|
133
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
134
136
|
t);
|
|
135
137
|
}
|
|
136
|
-
function
|
|
138
|
+
function Tr(e) {
|
|
137
139
|
const t = {};
|
|
138
140
|
return e.childNodes.forEach(
|
|
139
141
|
/** @param {Element} node */
|
|
@@ -146,21 +148,22 @@ let ne;
|
|
|
146
148
|
function te(e) {
|
|
147
149
|
ne = e;
|
|
148
150
|
}
|
|
149
|
-
function
|
|
150
|
-
if (!ne)
|
|
151
|
+
function Hr() {
|
|
152
|
+
if (!ne)
|
|
153
|
+
throw new Error("Function called outside component initialization");
|
|
151
154
|
return ne;
|
|
152
155
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
156
|
+
function Br(e) {
|
|
157
|
+
Hr().$$.on_mount.push(e);
|
|
155
158
|
}
|
|
156
|
-
const j = [],
|
|
159
|
+
const j = [], Me = [];
|
|
157
160
|
let k = [];
|
|
158
|
-
const
|
|
161
|
+
const nt = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
159
162
|
let Ne = !1;
|
|
160
|
-
function
|
|
161
|
-
Ne || (Ne = !0,
|
|
163
|
+
function Cr() {
|
|
164
|
+
Ne || (Ne = !0, Ar.then(O));
|
|
162
165
|
}
|
|
163
|
-
function
|
|
166
|
+
function Le(e) {
|
|
164
167
|
k.push(e);
|
|
165
168
|
}
|
|
166
169
|
const we = /* @__PURE__ */ new Set();
|
|
@@ -173,61 +176,63 @@ function O() {
|
|
|
173
176
|
try {
|
|
174
177
|
for (; D < j.length; ) {
|
|
175
178
|
const t = j[D];
|
|
176
|
-
D++, te(t),
|
|
179
|
+
D++, te(t), Pr(t.$$);
|
|
177
180
|
}
|
|
178
181
|
} catch (t) {
|
|
179
182
|
throw j.length = 0, D = 0, t;
|
|
180
183
|
}
|
|
181
|
-
for (te(null), j.length = 0, D = 0;
|
|
184
|
+
for (te(null), j.length = 0, D = 0; Me.length; )
|
|
185
|
+
Me.pop()();
|
|
182
186
|
for (let t = 0; t < k.length; t += 1) {
|
|
183
187
|
const r = k[t];
|
|
184
188
|
we.has(r) || (we.add(r), r());
|
|
185
189
|
}
|
|
186
190
|
k.length = 0;
|
|
187
191
|
} while (j.length);
|
|
188
|
-
for (;
|
|
189
|
-
|
|
192
|
+
for (; nt.length; )
|
|
193
|
+
nt.pop()();
|
|
190
194
|
Ne = !1, we.clear(), te(e);
|
|
191
195
|
}
|
|
192
|
-
function
|
|
196
|
+
function Pr(e) {
|
|
193
197
|
if (e.fragment !== null) {
|
|
194
198
|
e.update(), Q(e.before_update);
|
|
195
199
|
const t = e.dirty;
|
|
196
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
197
201
|
}
|
|
198
202
|
}
|
|
199
|
-
function
|
|
203
|
+
function Or(e) {
|
|
200
204
|
const t = [], r = [];
|
|
201
205
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
202
206
|
}
|
|
203
207
|
const ce = /* @__PURE__ */ new Set();
|
|
204
|
-
let
|
|
205
|
-
function
|
|
208
|
+
let Ir;
|
|
209
|
+
function Mt(e, t) {
|
|
206
210
|
e && e.i && (ce.delete(e), e.i(t));
|
|
207
211
|
}
|
|
208
|
-
function
|
|
212
|
+
function Mr(e, t, r, n) {
|
|
209
213
|
if (e && e.o) {
|
|
210
|
-
if (ce.has(e))
|
|
211
|
-
|
|
214
|
+
if (ce.has(e))
|
|
215
|
+
return;
|
|
216
|
+
ce.add(e), Ir.c.push(() => {
|
|
212
217
|
ce.delete(e);
|
|
213
218
|
}), e.o(t);
|
|
214
219
|
}
|
|
215
220
|
}
|
|
216
|
-
function
|
|
221
|
+
function Nr(e, t, r) {
|
|
217
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
218
|
-
n && n.m(t, r),
|
|
219
|
-
const o = e.$$.on_mount.map(
|
|
223
|
+
n && n.m(t, r), Le(() => {
|
|
224
|
+
const o = e.$$.on_mount.map(Ct).filter(Qe);
|
|
220
225
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Q(o), e.$$.on_mount = [];
|
|
221
|
-
}), i.forEach(
|
|
226
|
+
}), i.forEach(Le);
|
|
222
227
|
}
|
|
223
|
-
function
|
|
228
|
+
function Lr(e, t) {
|
|
224
229
|
const r = e.$$;
|
|
225
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Or(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
226
231
|
}
|
|
227
|
-
function
|
|
228
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
232
|
+
function Rr(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (j.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
229
234
|
}
|
|
230
|
-
function
|
|
235
|
+
function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
231
236
|
const l = ne;
|
|
232
237
|
te(e);
|
|
233
238
|
const u = e.$$ = {
|
|
@@ -235,9 +240,9 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
235
240
|
ctx: [],
|
|
236
241
|
// state
|
|
237
242
|
props: o,
|
|
238
|
-
update:
|
|
243
|
+
update: N,
|
|
239
244
|
not_equal: i,
|
|
240
|
-
bound:
|
|
245
|
+
bound: tt(),
|
|
241
246
|
// lifecycle
|
|
242
247
|
on_mount: [],
|
|
243
248
|
on_destroy: [],
|
|
@@ -246,7 +251,7 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
246
251
|
after_update: [],
|
|
247
252
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
248
253
|
// everything else
|
|
249
|
-
callbacks:
|
|
254
|
+
callbacks: tt(),
|
|
250
255
|
dirty: a,
|
|
251
256
|
skip_bound: !1,
|
|
252
257
|
root: t.target || l.$$.root
|
|
@@ -255,19 +260,19 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
255
260
|
let h = !1;
|
|
256
261
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
257
262
|
const d = m.length ? m[0] : f;
|
|
258
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h &&
|
|
263
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Rr(e, c)), f;
|
|
259
264
|
}) : [], u.update(), h = !0, Q(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
260
265
|
if (t.hydrate) {
|
|
261
|
-
const c =
|
|
266
|
+
const c = wr(t.target);
|
|
262
267
|
u.fragment && u.fragment.l(c), c.forEach(J);
|
|
263
268
|
} else
|
|
264
269
|
u.fragment && u.fragment.c();
|
|
265
|
-
t.intro &&
|
|
270
|
+
t.intro && Mt(e.$$.fragment), Nr(e, t.target, t.anchor), O();
|
|
266
271
|
}
|
|
267
272
|
te(l);
|
|
268
273
|
}
|
|
269
|
-
let
|
|
270
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Nt;
|
|
275
|
+
typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
271
276
|
/** The Svelte component constructor */
|
|
272
277
|
$$ctor;
|
|
273
278
|
/** Slots */
|
|
@@ -309,7 +314,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
309
314
|
let o;
|
|
310
315
|
return {
|
|
311
316
|
c: function() {
|
|
312
|
-
o =
|
|
317
|
+
o = M("slot"), i !== "default" && H(o, "name", i);
|
|
313
318
|
},
|
|
314
319
|
/**
|
|
315
320
|
* @param {HTMLElement} target
|
|
@@ -326,7 +331,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
326
331
|
};
|
|
327
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
328
333
|
return;
|
|
329
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = Tr(this);
|
|
330
335
|
for (const i of this.$$s)
|
|
331
336
|
i in r && (t[i] = [e(i)]);
|
|
332
337
|
for (const i of this.attributes) {
|
|
@@ -413,8 +418,8 @@ function fe(e, t, r, n) {
|
|
|
413
418
|
return t;
|
|
414
419
|
}
|
|
415
420
|
}
|
|
416
|
-
function
|
|
417
|
-
let s = class extends
|
|
421
|
+
function Gr(e, t, r, n, i, o) {
|
|
422
|
+
let s = class extends Nt {
|
|
418
423
|
constructor() {
|
|
419
424
|
super(e, r, i), this.$$p_d = t;
|
|
420
425
|
}
|
|
@@ -442,7 +447,7 @@ function Mr(e, t, r, n, i, o) {
|
|
|
442
447
|
}), e.element = /** @type {any} */
|
|
443
448
|
s, s;
|
|
444
449
|
}
|
|
445
|
-
class
|
|
450
|
+
class Ur {
|
|
446
451
|
/**
|
|
447
452
|
* ### PRIVATE API
|
|
448
453
|
*
|
|
@@ -461,7 +466,7 @@ class Lr {
|
|
|
461
466
|
$$set = void 0;
|
|
462
467
|
/** @returns {void} */
|
|
463
468
|
$destroy() {
|
|
464
|
-
|
|
469
|
+
Lr(this, 1), this.$destroy = N;
|
|
465
470
|
}
|
|
466
471
|
/**
|
|
467
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -470,8 +475,8 @@ class Lr {
|
|
|
470
475
|
* @returns {() => void}
|
|
471
476
|
*/
|
|
472
477
|
$on(t, r) {
|
|
473
|
-
if (!
|
|
474
|
-
return
|
|
478
|
+
if (!Qe(r))
|
|
479
|
+
return N;
|
|
475
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
476
481
|
return n.push(r), () => {
|
|
477
482
|
const i = n.indexOf(r);
|
|
@@ -483,22 +488,37 @@ class Lr {
|
|
|
483
488
|
* @returns {void}
|
|
484
489
|
*/
|
|
485
490
|
$set(t) {
|
|
486
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
487
492
|
}
|
|
488
493
|
}
|
|
489
|
-
const
|
|
490
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
491
|
-
|
|
492
|
-
|
|
494
|
+
const Dr = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
496
|
+
/*! *****************************************************************************
|
|
497
|
+
Copyright (c) Microsoft Corporation.
|
|
498
|
+
|
|
499
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
500
|
+
purpose with or without fee is hereby granted.
|
|
501
|
+
|
|
502
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
503
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
504
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
505
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
506
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
507
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
508
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
509
|
+
***************************************************************************** */
|
|
510
|
+
var Re = function(e, t) {
|
|
511
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
493
512
|
r.__proto__ = n;
|
|
494
513
|
} || function(r, n) {
|
|
495
|
-
for (var i in n)
|
|
496
|
-
|
|
514
|
+
for (var i in n)
|
|
515
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
516
|
+
}, Re(e, t);
|
|
497
517
|
};
|
|
498
518
|
function R(e, t) {
|
|
499
519
|
if (typeof t != "function" && t !== null)
|
|
500
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
501
|
-
|
|
521
|
+
Re(e, t);
|
|
502
522
|
function r() {
|
|
503
523
|
this.constructor = e;
|
|
504
524
|
}
|
|
@@ -508,61 +528,69 @@ var y = function() {
|
|
|
508
528
|
return y = Object.assign || function(t) {
|
|
509
529
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
510
530
|
r = arguments[n];
|
|
511
|
-
for (var o in r)
|
|
531
|
+
for (var o in r)
|
|
532
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
512
533
|
}
|
|
513
534
|
return t;
|
|
514
535
|
}, y.apply(this, arguments);
|
|
515
536
|
};
|
|
516
|
-
function
|
|
537
|
+
function Fr(e, t) {
|
|
517
538
|
var r = {};
|
|
518
|
-
for (var n in e)
|
|
539
|
+
for (var n in e)
|
|
540
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
519
541
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
520
542
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
521
543
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
522
544
|
return r;
|
|
523
545
|
}
|
|
524
|
-
function
|
|
546
|
+
function $e(e) {
|
|
525
547
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
526
|
-
if (r)
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
548
|
+
if (r)
|
|
549
|
+
return r.call(e);
|
|
550
|
+
if (e && typeof e.length == "number")
|
|
551
|
+
return {
|
|
552
|
+
next: function() {
|
|
553
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
554
|
+
}
|
|
555
|
+
};
|
|
532
556
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
533
557
|
}
|
|
534
|
-
function
|
|
558
|
+
function Ge(e, t) {
|
|
535
559
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
536
|
-
if (!r)
|
|
560
|
+
if (!r)
|
|
561
|
+
return e;
|
|
537
562
|
var n = r.call(e), i, o = [], s;
|
|
538
563
|
try {
|
|
539
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
564
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
565
|
+
o.push(i.value);
|
|
540
566
|
} catch (a) {
|
|
541
567
|
s = { error: a };
|
|
542
568
|
} finally {
|
|
543
569
|
try {
|
|
544
570
|
i && !i.done && (r = n.return) && r.call(n);
|
|
545
571
|
} finally {
|
|
546
|
-
if (s)
|
|
572
|
+
if (s)
|
|
573
|
+
throw s.error;
|
|
547
574
|
}
|
|
548
575
|
}
|
|
549
576
|
return o;
|
|
550
577
|
}
|
|
551
578
|
function V(e, t, r) {
|
|
552
|
-
if (r || arguments.length === 2)
|
|
553
|
-
(
|
|
554
|
-
|
|
579
|
+
if (r || arguments.length === 2)
|
|
580
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
581
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
582
|
+
return e.concat(o || t);
|
|
555
583
|
}
|
|
556
584
|
function L(e) {
|
|
557
585
|
return typeof e == "function";
|
|
558
586
|
}
|
|
559
|
-
function
|
|
587
|
+
function Lt(e) {
|
|
560
588
|
var t = function(n) {
|
|
561
589
|
Error.call(n), n.stack = new Error().stack;
|
|
562
590
|
}, r = e(t);
|
|
563
591
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
564
592
|
}
|
|
565
|
-
var Te =
|
|
593
|
+
var Te = Lt(function(e) {
|
|
566
594
|
return function(r) {
|
|
567
595
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
568
596
|
` + r.map(function(n, i) {
|
|
@@ -571,7 +599,7 @@ var Te = It(function(e) {
|
|
|
571
599
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
572
600
|
};
|
|
573
601
|
});
|
|
574
|
-
function
|
|
602
|
+
function Ue(e, t) {
|
|
575
603
|
if (e) {
|
|
576
604
|
var r = e.indexOf(t);
|
|
577
605
|
0 <= r && e.splice(r, 1);
|
|
@@ -589,7 +617,7 @@ var ye = function() {
|
|
|
589
617
|
if (s)
|
|
590
618
|
if (this._parentage = null, Array.isArray(s))
|
|
591
619
|
try {
|
|
592
|
-
for (var a =
|
|
620
|
+
for (var a = $e(s), l = a.next(); !l.done; l = a.next()) {
|
|
593
621
|
var u = l.value;
|
|
594
622
|
u.remove(this);
|
|
595
623
|
}
|
|
@@ -599,7 +627,8 @@ var ye = function() {
|
|
|
599
627
|
try {
|
|
600
628
|
l && !l.done && (r = a.return) && r.call(a);
|
|
601
629
|
} finally {
|
|
602
|
-
if (t)
|
|
630
|
+
if (t)
|
|
631
|
+
throw t.error;
|
|
603
632
|
}
|
|
604
633
|
}
|
|
605
634
|
else
|
|
@@ -615,12 +644,12 @@ var ye = function() {
|
|
|
615
644
|
if (c) {
|
|
616
645
|
this._finalizers = null;
|
|
617
646
|
try {
|
|
618
|
-
for (var f =
|
|
647
|
+
for (var f = $e(c), m = f.next(); !m.done; m = f.next()) {
|
|
619
648
|
var d = m.value;
|
|
620
649
|
try {
|
|
621
|
-
|
|
650
|
+
it(d);
|
|
622
651
|
} catch (p) {
|
|
623
|
-
o = o ?? [], p instanceof Te ? o = V(V([],
|
|
652
|
+
o = o ?? [], p instanceof Te ? o = V(V([], Ge(o)), Ge(p.errors)) : o.push(p);
|
|
624
653
|
}
|
|
625
654
|
}
|
|
626
655
|
} catch (p) {
|
|
@@ -629,7 +658,8 @@ var ye = function() {
|
|
|
629
658
|
try {
|
|
630
659
|
m && !m.done && (i = f.return) && i.call(f);
|
|
631
660
|
} finally {
|
|
632
|
-
if (n)
|
|
661
|
+
if (n)
|
|
662
|
+
throw n.error;
|
|
633
663
|
}
|
|
634
664
|
}
|
|
635
665
|
}
|
|
@@ -640,7 +670,7 @@ var ye = function() {
|
|
|
640
670
|
var r;
|
|
641
671
|
if (t && t !== this)
|
|
642
672
|
if (this.closed)
|
|
643
|
-
|
|
673
|
+
it(t);
|
|
644
674
|
else {
|
|
645
675
|
if (t instanceof e) {
|
|
646
676
|
if (t.closed || t._hasParent(this))
|
|
@@ -657,52 +687,56 @@ var ye = function() {
|
|
|
657
687
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
658
688
|
}, e.prototype._removeParent = function(t) {
|
|
659
689
|
var r = this._parentage;
|
|
660
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
690
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
661
691
|
}, e.prototype.remove = function(t) {
|
|
662
692
|
var r = this._finalizers;
|
|
663
|
-
r &&
|
|
693
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
664
694
|
}, e.EMPTY = function() {
|
|
665
695
|
var t = new e();
|
|
666
696
|
return t.closed = !0, t;
|
|
667
697
|
}(), e;
|
|
668
|
-
}(),
|
|
669
|
-
function
|
|
698
|
+
}(), Rt = ye.EMPTY;
|
|
699
|
+
function $t(e) {
|
|
670
700
|
return e instanceof ye || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
671
701
|
}
|
|
672
|
-
function
|
|
702
|
+
function it(e) {
|
|
673
703
|
L(e) ? e() : e.unsubscribe();
|
|
674
704
|
}
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
|
|
705
|
+
var Gt = {
|
|
706
|
+
onUnhandledError: null,
|
|
707
|
+
onStoppedNotification: null,
|
|
708
|
+
Promise: void 0,
|
|
709
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
710
|
+
useDeprecatedNextContext: !1
|
|
711
|
+
}, jr = {
|
|
678
712
|
setTimeout: function(e, t) {
|
|
679
713
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
680
714
|
r[n - 2] = arguments[n];
|
|
681
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
715
|
+
return setTimeout.apply(void 0, V([e, t], Ge(r)));
|
|
682
716
|
},
|
|
683
717
|
clearTimeout: function(e) {
|
|
684
718
|
return clearTimeout(e);
|
|
685
719
|
},
|
|
686
720
|
delegate: void 0
|
|
687
721
|
};
|
|
688
|
-
function
|
|
689
|
-
|
|
722
|
+
function kr(e) {
|
|
723
|
+
jr.setTimeout(function() {
|
|
690
724
|
throw e;
|
|
691
725
|
});
|
|
692
726
|
}
|
|
693
|
-
function
|
|
727
|
+
function ot() {
|
|
694
728
|
}
|
|
695
729
|
function me(e) {
|
|
696
730
|
e();
|
|
697
731
|
}
|
|
698
|
-
var
|
|
732
|
+
var Ut = function(e) {
|
|
699
733
|
R(t, e);
|
|
700
734
|
function t(r) {
|
|
701
735
|
var n = e.call(this) || this;
|
|
702
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
736
|
+
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Wr, n;
|
|
703
737
|
}
|
|
704
738
|
return t.create = function(r, n, i) {
|
|
705
|
-
return new
|
|
739
|
+
return new De(r, n, i);
|
|
706
740
|
}, t.prototype.next = function(r) {
|
|
707
741
|
this.isStopped || this._next(r);
|
|
708
742
|
}, t.prototype.error = function(r) {
|
|
@@ -726,7 +760,11 @@ var Lt = function(e) {
|
|
|
726
760
|
this.unsubscribe();
|
|
727
761
|
}
|
|
728
762
|
}, t;
|
|
729
|
-
}(ye),
|
|
763
|
+
}(ye), Vr = Function.prototype.bind;
|
|
764
|
+
function He(e, t) {
|
|
765
|
+
return Vr.call(e, t);
|
|
766
|
+
}
|
|
767
|
+
var Xr = function() {
|
|
730
768
|
function e(t) {
|
|
731
769
|
this.partialObserver = t;
|
|
732
770
|
}
|
|
@@ -757,43 +795,55 @@ var Lt = function(e) {
|
|
|
757
795
|
le(r);
|
|
758
796
|
}
|
|
759
797
|
}, e;
|
|
760
|
-
}(),
|
|
798
|
+
}(), De = function(e) {
|
|
761
799
|
R(t, e);
|
|
762
800
|
function t(r, n, i) {
|
|
763
801
|
var o = e.call(this) || this, s;
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
802
|
+
if (L(r) || !r)
|
|
803
|
+
s = {
|
|
804
|
+
next: r ?? void 0,
|
|
805
|
+
error: n ?? void 0,
|
|
806
|
+
complete: i ?? void 0
|
|
807
|
+
};
|
|
808
|
+
else {
|
|
809
|
+
var a;
|
|
810
|
+
o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
811
|
+
return o.unsubscribe();
|
|
812
|
+
}, s = {
|
|
813
|
+
next: r.next && He(r.next, a),
|
|
814
|
+
error: r.error && He(r.error, a),
|
|
815
|
+
complete: r.complete && He(r.complete, a)
|
|
816
|
+
}) : s = r;
|
|
817
|
+
}
|
|
818
|
+
return o.destination = new Xr(s), o;
|
|
769
819
|
}
|
|
770
820
|
return t;
|
|
771
|
-
}(
|
|
821
|
+
}(Ut);
|
|
772
822
|
function le(e) {
|
|
773
|
-
|
|
823
|
+
kr(e);
|
|
774
824
|
}
|
|
775
|
-
function
|
|
825
|
+
function zr(e) {
|
|
776
826
|
throw e;
|
|
777
827
|
}
|
|
778
|
-
var
|
|
828
|
+
var Wr = {
|
|
779
829
|
closed: !0,
|
|
780
|
-
next:
|
|
781
|
-
error:
|
|
782
|
-
complete:
|
|
783
|
-
},
|
|
830
|
+
next: ot,
|
|
831
|
+
error: zr,
|
|
832
|
+
complete: ot
|
|
833
|
+
}, Zr = function() {
|
|
784
834
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
785
835
|
}();
|
|
786
|
-
function
|
|
836
|
+
function Qr(e) {
|
|
787
837
|
return e;
|
|
788
838
|
}
|
|
789
|
-
function
|
|
790
|
-
return e.length === 0 ?
|
|
839
|
+
function Jr(e) {
|
|
840
|
+
return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
|
|
791
841
|
return e.reduce(function(n, i) {
|
|
792
842
|
return i(n);
|
|
793
843
|
}, r);
|
|
794
844
|
};
|
|
795
845
|
}
|
|
796
|
-
var
|
|
846
|
+
var st = function() {
|
|
797
847
|
function e(t) {
|
|
798
848
|
t && (this._subscribe = t);
|
|
799
849
|
}
|
|
@@ -801,7 +851,7 @@ var nt = function() {
|
|
|
801
851
|
var r = new e();
|
|
802
852
|
return r.source = this, r.operator = t, r;
|
|
803
853
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
804
|
-
var i = this, o =
|
|
854
|
+
var i = this, o = qr(t) ? t : new De(t, r, n);
|
|
805
855
|
return me(function() {
|
|
806
856
|
var s = i, a = s.operator, l = s.source;
|
|
807
857
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -814,8 +864,8 @@ var nt = function() {
|
|
|
814
864
|
}
|
|
815
865
|
}, e.prototype.forEach = function(t, r) {
|
|
816
866
|
var n = this;
|
|
817
|
-
return r =
|
|
818
|
-
var s = new
|
|
867
|
+
return r = at(r), new r(function(i, o) {
|
|
868
|
+
var s = new De({
|
|
819
869
|
next: function(a) {
|
|
820
870
|
try {
|
|
821
871
|
t(a);
|
|
@@ -831,15 +881,15 @@ var nt = function() {
|
|
|
831
881
|
}, e.prototype._subscribe = function(t) {
|
|
832
882
|
var r;
|
|
833
883
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
834
|
-
}, e.prototype[
|
|
884
|
+
}, e.prototype[Zr] = function() {
|
|
835
885
|
return this;
|
|
836
886
|
}, e.prototype.pipe = function() {
|
|
837
887
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
838
888
|
t[r] = arguments[r];
|
|
839
|
-
return
|
|
889
|
+
return Jr(t)(this);
|
|
840
890
|
}, e.prototype.toPromise = function(t) {
|
|
841
891
|
var r = this;
|
|
842
|
-
return t =
|
|
892
|
+
return t = at(t), new t(function(n, i) {
|
|
843
893
|
var o;
|
|
844
894
|
r.subscribe(function(s) {
|
|
845
895
|
return o = s;
|
|
@@ -853,32 +903,32 @@ var nt = function() {
|
|
|
853
903
|
return new e(t);
|
|
854
904
|
}, e;
|
|
855
905
|
}();
|
|
856
|
-
function
|
|
906
|
+
function at(e) {
|
|
857
907
|
var t;
|
|
858
|
-
return (t = e ??
|
|
908
|
+
return (t = e ?? Gt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
859
909
|
}
|
|
860
|
-
function
|
|
910
|
+
function Yr(e) {
|
|
861
911
|
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
862
912
|
}
|
|
863
|
-
function
|
|
864
|
-
return e && e instanceof
|
|
913
|
+
function qr(e) {
|
|
914
|
+
return e && e instanceof Ut || Yr(e) && $t(e);
|
|
865
915
|
}
|
|
866
|
-
var
|
|
916
|
+
var Kr = Lt(function(e) {
|
|
867
917
|
return function() {
|
|
868
918
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
869
919
|
};
|
|
870
|
-
}),
|
|
920
|
+
}), Dt = function(e) {
|
|
871
921
|
R(t, e);
|
|
872
922
|
function t() {
|
|
873
923
|
var r = e.call(this) || this;
|
|
874
924
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
875
925
|
}
|
|
876
926
|
return t.prototype.lift = function(r) {
|
|
877
|
-
var n = new
|
|
927
|
+
var n = new ut(this, this);
|
|
878
928
|
return n.operator = r, n;
|
|
879
929
|
}, t.prototype._throwIfClosed = function() {
|
|
880
930
|
if (this.closed)
|
|
881
|
-
throw new
|
|
931
|
+
throw new Kr();
|
|
882
932
|
}, t.prototype.next = function(r) {
|
|
883
933
|
var n = this;
|
|
884
934
|
me(function() {
|
|
@@ -886,7 +936,7 @@ var Qr = It(function(e) {
|
|
|
886
936
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
887
937
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
888
938
|
try {
|
|
889
|
-
for (var s =
|
|
939
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
890
940
|
var l = a.value;
|
|
891
941
|
l.next(r);
|
|
892
942
|
}
|
|
@@ -896,7 +946,8 @@ var Qr = It(function(e) {
|
|
|
896
946
|
try {
|
|
897
947
|
a && !a.done && (o = s.return) && o.call(s);
|
|
898
948
|
} finally {
|
|
899
|
-
if (i)
|
|
949
|
+
if (i)
|
|
950
|
+
throw i.error;
|
|
900
951
|
}
|
|
901
952
|
}
|
|
902
953
|
}
|
|
@@ -934,19 +985,19 @@ var Qr = It(function(e) {
|
|
|
934
985
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
935
986
|
}, t.prototype._innerSubscribe = function(r) {
|
|
936
987
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
937
|
-
return o || s ?
|
|
938
|
-
n.currentObservers = null,
|
|
988
|
+
return o || s ? Rt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
989
|
+
n.currentObservers = null, Ue(a, r);
|
|
939
990
|
}));
|
|
940
991
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
941
992
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
942
993
|
i ? r.error(o) : s && r.complete();
|
|
943
994
|
}, t.prototype.asObservable = function() {
|
|
944
|
-
var r = new
|
|
995
|
+
var r = new st();
|
|
945
996
|
return r.source = this, r;
|
|
946
997
|
}, t.create = function(r, n) {
|
|
947
|
-
return new
|
|
998
|
+
return new ut(r, n);
|
|
948
999
|
}, t;
|
|
949
|
-
}(
|
|
1000
|
+
}(st), ut = function(e) {
|
|
950
1001
|
R(t, e);
|
|
951
1002
|
function t(r, n) {
|
|
952
1003
|
var i = e.call(this) || this;
|
|
@@ -963,17 +1014,17 @@ var Qr = It(function(e) {
|
|
|
963
1014
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
964
1015
|
}, t.prototype._subscribe = function(r) {
|
|
965
1016
|
var n, i;
|
|
966
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1017
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Rt;
|
|
967
1018
|
}, t;
|
|
968
|
-
}(
|
|
1019
|
+
}(Dt), Ft = {
|
|
969
1020
|
now: function() {
|
|
970
|
-
return (
|
|
1021
|
+
return (Ft.delegate || Date).now();
|
|
971
1022
|
},
|
|
972
1023
|
delegate: void 0
|
|
973
|
-
},
|
|
1024
|
+
}, en = function(e) {
|
|
974
1025
|
R(t, e);
|
|
975
1026
|
function t(r, n, i) {
|
|
976
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1027
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
|
|
977
1028
|
var o = e.call(this) || this;
|
|
978
1029
|
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;
|
|
979
1030
|
}
|
|
@@ -993,24 +1044,24 @@ var Qr = It(function(e) {
|
|
|
993
1044
|
u && o.splice(0, u + 1);
|
|
994
1045
|
}
|
|
995
1046
|
}, t;
|
|
996
|
-
}(
|
|
997
|
-
const
|
|
998
|
-
if (
|
|
999
|
-
const r = new
|
|
1000
|
-
|
|
1047
|
+
}(Dt);
|
|
1048
|
+
const lt = [], ht = {}, tn = (e, t = 0) => {
|
|
1049
|
+
if (lt.indexOf(e) == -1) {
|
|
1050
|
+
const r = new en(t);
|
|
1051
|
+
ht[e] = r, lt.push(e);
|
|
1001
1052
|
}
|
|
1002
|
-
return
|
|
1053
|
+
return ht[e];
|
|
1003
1054
|
}, F = [];
|
|
1004
|
-
function
|
|
1055
|
+
function rn(e, t) {
|
|
1005
1056
|
return {
|
|
1006
1057
|
subscribe: xe(e, t).subscribe
|
|
1007
1058
|
};
|
|
1008
1059
|
}
|
|
1009
|
-
function xe(e, t =
|
|
1060
|
+
function xe(e, t = N) {
|
|
1010
1061
|
let r;
|
|
1011
1062
|
const n = /* @__PURE__ */ new Set();
|
|
1012
1063
|
function i(a) {
|
|
1013
|
-
if (
|
|
1064
|
+
if (Pt(e, a) && (e = a, r)) {
|
|
1014
1065
|
const l = !F.length;
|
|
1015
1066
|
for (const u of n)
|
|
1016
1067
|
u[1](), F.push(u, e);
|
|
@@ -1024,9 +1075,9 @@ function xe(e, t = M) {
|
|
|
1024
1075
|
function o(a) {
|
|
1025
1076
|
i(a(e));
|
|
1026
1077
|
}
|
|
1027
|
-
function s(a, l =
|
|
1078
|
+
function s(a, l = N) {
|
|
1028
1079
|
const u = [a, l];
|
|
1029
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1080
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
1030
1081
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1031
1082
|
};
|
|
1032
1083
|
}
|
|
@@ -1037,18 +1088,18 @@ function Y(e, t, r) {
|
|
|
1037
1088
|
if (!i.every(Boolean))
|
|
1038
1089
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1039
1090
|
const o = t.length < 2;
|
|
1040
|
-
return
|
|
1091
|
+
return rn(r, (s, a) => {
|
|
1041
1092
|
let l = !1;
|
|
1042
1093
|
const u = [];
|
|
1043
|
-
let h = 0, c =
|
|
1094
|
+
let h = 0, c = N;
|
|
1044
1095
|
const f = () => {
|
|
1045
1096
|
if (h)
|
|
1046
1097
|
return;
|
|
1047
1098
|
c();
|
|
1048
1099
|
const d = t(n ? u[0] : u, s, a);
|
|
1049
|
-
o ? s(d) : c =
|
|
1100
|
+
o ? s(d) : c = Qe(d) ? d : N;
|
|
1050
1101
|
}, m = i.map(
|
|
1051
|
-
(d, p) =>
|
|
1102
|
+
(d, p) => Ot(
|
|
1052
1103
|
d,
|
|
1053
1104
|
(w) => {
|
|
1054
1105
|
u[p] = w, h &= ~(1 << p), l && f();
|
|
@@ -1063,70 +1114,70 @@ function Y(e, t, r) {
|
|
|
1063
1114
|
};
|
|
1064
1115
|
});
|
|
1065
1116
|
}
|
|
1066
|
-
function
|
|
1117
|
+
function nn(e) {
|
|
1067
1118
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1068
1119
|
}
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1120
|
+
var on = function(t) {
|
|
1121
|
+
return sn(t) && !an(t);
|
|
1071
1122
|
};
|
|
1072
|
-
function
|
|
1123
|
+
function sn(e) {
|
|
1073
1124
|
return !!e && typeof e == "object";
|
|
1074
1125
|
}
|
|
1075
|
-
function
|
|
1126
|
+
function an(e) {
|
|
1076
1127
|
var t = Object.prototype.toString.call(e);
|
|
1077
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1128
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
|
1078
1129
|
}
|
|
1079
|
-
var
|
|
1080
|
-
function
|
|
1081
|
-
return e.$$typeof ===
|
|
1130
|
+
var un = typeof Symbol == "function" && Symbol.for, ln = un ? Symbol.for("react.element") : 60103;
|
|
1131
|
+
function hn(e) {
|
|
1132
|
+
return e.$$typeof === ln;
|
|
1082
1133
|
}
|
|
1083
|
-
function
|
|
1134
|
+
function cn(e) {
|
|
1084
1135
|
return Array.isArray(e) ? [] : {};
|
|
1085
1136
|
}
|
|
1086
1137
|
function ie(e, t) {
|
|
1087
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? X(
|
|
1138
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(cn(e), e, t) : e;
|
|
1088
1139
|
}
|
|
1089
|
-
function
|
|
1140
|
+
function fn(e, t, r) {
|
|
1090
1141
|
return e.concat(t).map(function(n) {
|
|
1091
1142
|
return ie(n, r);
|
|
1092
1143
|
});
|
|
1093
1144
|
}
|
|
1094
|
-
function
|
|
1145
|
+
function mn(e, t) {
|
|
1095
1146
|
if (!t.customMerge)
|
|
1096
1147
|
return X;
|
|
1097
1148
|
var r = t.customMerge(e);
|
|
1098
1149
|
return typeof r == "function" ? r : X;
|
|
1099
1150
|
}
|
|
1100
|
-
function
|
|
1151
|
+
function dn(e) {
|
|
1101
1152
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1102
1153
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1103
1154
|
}) : [];
|
|
1104
1155
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return Object.keys(e).concat(
|
|
1156
|
+
function ct(e) {
|
|
1157
|
+
return Object.keys(e).concat(dn(e));
|
|
1107
1158
|
}
|
|
1108
|
-
function
|
|
1159
|
+
function jt(e, t) {
|
|
1109
1160
|
try {
|
|
1110
1161
|
return t in e;
|
|
1111
1162
|
} catch {
|
|
1112
1163
|
return !1;
|
|
1113
1164
|
}
|
|
1114
1165
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return
|
|
1166
|
+
function pn(e, t) {
|
|
1167
|
+
return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1117
1168
|
}
|
|
1118
|
-
function
|
|
1169
|
+
function bn(e, t, r) {
|
|
1119
1170
|
var n = {};
|
|
1120
|
-
return r.isMergeableObject(e) &&
|
|
1171
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1121
1172
|
n[i] = ie(e[i], r);
|
|
1122
|
-
}),
|
|
1123
|
-
|
|
1173
|
+
}), ct(t).forEach(function(i) {
|
|
1174
|
+
pn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = mn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1124
1175
|
}), n;
|
|
1125
1176
|
}
|
|
1126
1177
|
function X(e, t, r) {
|
|
1127
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1178
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1128
1179
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1129
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1180
|
+
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : ie(t, r);
|
|
1130
1181
|
}
|
|
1131
1182
|
X.all = function(t, r) {
|
|
1132
1183
|
if (!Array.isArray(t))
|
|
@@ -1135,56 +1186,58 @@ X.all = function(t, r) {
|
|
|
1135
1186
|
return X(n, i, r);
|
|
1136
1187
|
}, {});
|
|
1137
1188
|
};
|
|
1138
|
-
var
|
|
1139
|
-
const
|
|
1140
|
-
function
|
|
1141
|
-
var r = t && t.cache ? t.cache :
|
|
1189
|
+
var gn = X, vn = gn;
|
|
1190
|
+
const yn = /* @__PURE__ */ nn(vn);
|
|
1191
|
+
function Be(e, t) {
|
|
1192
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : _n;
|
|
1142
1193
|
return i(e, {
|
|
1143
1194
|
cache: r,
|
|
1144
1195
|
serializer: n
|
|
1145
1196
|
});
|
|
1146
1197
|
}
|
|
1147
|
-
function
|
|
1198
|
+
function xn(e) {
|
|
1148
1199
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1149
1200
|
}
|
|
1150
|
-
function
|
|
1151
|
-
var i =
|
|
1201
|
+
function kt(e, t, r, n) {
|
|
1202
|
+
var i = xn(n) ? n : r(n), o = t.get(i);
|
|
1152
1203
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1153
1204
|
}
|
|
1154
|
-
function
|
|
1205
|
+
function Vt(e, t, r) {
|
|
1155
1206
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1156
1207
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1157
1208
|
}
|
|
1158
|
-
function
|
|
1209
|
+
function Je(e, t, r, n, i) {
|
|
1159
1210
|
return r.bind(t, e, n, i);
|
|
1160
1211
|
}
|
|
1161
|
-
function
|
|
1162
|
-
var r = e.length === 1 ?
|
|
1163
|
-
return
|
|
1212
|
+
function _n(e, t) {
|
|
1213
|
+
var r = e.length === 1 ? kt : Vt;
|
|
1214
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1164
1215
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1216
|
+
function En(e, t) {
|
|
1217
|
+
return Je(e, this, Vt, t.cache.create(), t.serializer);
|
|
1167
1218
|
}
|
|
1168
|
-
|
|
1219
|
+
function Sn(e, t) {
|
|
1220
|
+
return Je(e, this, kt, t.cache.create(), t.serializer);
|
|
1221
|
+
}
|
|
1222
|
+
var wn = function() {
|
|
1169
1223
|
return JSON.stringify(arguments);
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
}()
|
|
1182
|
-
), En = {
|
|
1224
|
+
};
|
|
1225
|
+
function Ye() {
|
|
1226
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1227
|
+
}
|
|
1228
|
+
Ye.prototype.get = function(e) {
|
|
1229
|
+
return this.cache[e];
|
|
1230
|
+
};
|
|
1231
|
+
Ye.prototype.set = function(e, t) {
|
|
1232
|
+
this.cache[e] = t;
|
|
1233
|
+
};
|
|
1234
|
+
var Tn = {
|
|
1183
1235
|
create: function() {
|
|
1184
|
-
return new
|
|
1236
|
+
return new Ye();
|
|
1185
1237
|
}
|
|
1186
|
-
},
|
|
1187
|
-
variadic:
|
|
1238
|
+
}, Ae = {
|
|
1239
|
+
variadic: En,
|
|
1240
|
+
monadic: Sn
|
|
1188
1241
|
}, b;
|
|
1189
1242
|
(function(e) {
|
|
1190
1243
|
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";
|
|
@@ -1193,47 +1246,47 @@ var S;
|
|
|
1193
1246
|
(function(e) {
|
|
1194
1247
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1195
1248
|
})(S || (S = {}));
|
|
1196
|
-
var
|
|
1249
|
+
var z;
|
|
1197
1250
|
(function(e) {
|
|
1198
1251
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1199
|
-
})(
|
|
1200
|
-
function
|
|
1252
|
+
})(z || (z = {}));
|
|
1253
|
+
function ft(e) {
|
|
1201
1254
|
return e.type === S.literal;
|
|
1202
1255
|
}
|
|
1203
|
-
function
|
|
1256
|
+
function Hn(e) {
|
|
1204
1257
|
return e.type === S.argument;
|
|
1205
1258
|
}
|
|
1206
|
-
function
|
|
1259
|
+
function Xt(e) {
|
|
1207
1260
|
return e.type === S.number;
|
|
1208
1261
|
}
|
|
1209
|
-
function
|
|
1262
|
+
function zt(e) {
|
|
1210
1263
|
return e.type === S.date;
|
|
1211
1264
|
}
|
|
1212
|
-
function
|
|
1265
|
+
function Wt(e) {
|
|
1213
1266
|
return e.type === S.time;
|
|
1214
1267
|
}
|
|
1215
|
-
function
|
|
1268
|
+
function Zt(e) {
|
|
1216
1269
|
return e.type === S.select;
|
|
1217
1270
|
}
|
|
1218
|
-
function
|
|
1271
|
+
function Qt(e) {
|
|
1219
1272
|
return e.type === S.plural;
|
|
1220
1273
|
}
|
|
1221
|
-
function
|
|
1274
|
+
function Bn(e) {
|
|
1222
1275
|
return e.type === S.pound;
|
|
1223
1276
|
}
|
|
1224
|
-
function
|
|
1277
|
+
function Jt(e) {
|
|
1225
1278
|
return e.type === S.tag;
|
|
1226
1279
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1280
|
+
function Yt(e) {
|
|
1281
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1229
1282
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1283
|
+
function Fe(e) {
|
|
1284
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1232
1285
|
}
|
|
1233
|
-
var
|
|
1234
|
-
function
|
|
1286
|
+
var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
|
|
1287
|
+
function Cn(e) {
|
|
1235
1288
|
var t = {};
|
|
1236
|
-
return e.replace(
|
|
1289
|
+
return e.replace(An, function(r) {
|
|
1237
1290
|
var n = r.length;
|
|
1238
1291
|
switch (r[0]) {
|
|
1239
1292
|
case "G":
|
|
@@ -1322,11 +1375,11 @@ function Hn(e) {
|
|
|
1322
1375
|
return "";
|
|
1323
1376
|
}), t;
|
|
1324
1377
|
}
|
|
1325
|
-
var
|
|
1326
|
-
function
|
|
1378
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1379
|
+
function On(e) {
|
|
1327
1380
|
if (e.length === 0)
|
|
1328
1381
|
throw new Error("Number skeleton cannot be empty");
|
|
1329
|
-
for (var t = e.split(
|
|
1382
|
+
for (var t = e.split(Pn).filter(function(f) {
|
|
1330
1383
|
return f.length > 0;
|
|
1331
1384
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1332
1385
|
var o = i[n], s = o.split("/");
|
|
@@ -1341,17 +1394,17 @@ function An(e) {
|
|
|
1341
1394
|
}
|
|
1342
1395
|
return r;
|
|
1343
1396
|
}
|
|
1344
|
-
function
|
|
1397
|
+
function In(e) {
|
|
1345
1398
|
return e.replace(/^(.*?)-/, "");
|
|
1346
1399
|
}
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1400
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
|
|
1401
|
+
function dt(e) {
|
|
1349
1402
|
var t = {};
|
|
1350
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1403
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
|
|
1351
1404
|
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)), "";
|
|
1352
1405
|
}), t;
|
|
1353
1406
|
}
|
|
1354
|
-
function
|
|
1407
|
+
function tr(e) {
|
|
1355
1408
|
switch (e) {
|
|
1356
1409
|
case "sign-auto":
|
|
1357
1410
|
return {
|
|
@@ -1391,7 +1444,7 @@ function Yt(e) {
|
|
|
1391
1444
|
};
|
|
1392
1445
|
}
|
|
1393
1446
|
}
|
|
1394
|
-
function
|
|
1447
|
+
function Nn(e) {
|
|
1395
1448
|
var t;
|
|
1396
1449
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1397
1450
|
notation: "engineering"
|
|
@@ -1399,17 +1452,17 @@ function On(e) {
|
|
|
1399
1452
|
notation: "scientific"
|
|
1400
1453
|
}, e = e.slice(1)), t) {
|
|
1401
1454
|
var r = e.slice(0, 2);
|
|
1402
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1455
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
|
|
1403
1456
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1404
1457
|
t.minimumIntegerDigits = e.length;
|
|
1405
1458
|
}
|
|
1406
1459
|
return t;
|
|
1407
1460
|
}
|
|
1408
|
-
function
|
|
1409
|
-
var t = {}, r =
|
|
1461
|
+
function pt(e) {
|
|
1462
|
+
var t = {}, r = tr(e);
|
|
1410
1463
|
return r || t;
|
|
1411
1464
|
}
|
|
1412
|
-
function
|
|
1465
|
+
function Ln(e) {
|
|
1413
1466
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1414
1467
|
var i = n[r];
|
|
1415
1468
|
switch (i.stem) {
|
|
@@ -1433,7 +1486,7 @@ function In(e) {
|
|
|
1433
1486
|
continue;
|
|
1434
1487
|
case "measure-unit":
|
|
1435
1488
|
case "unit":
|
|
1436
|
-
t.style = "unit", t.unit =
|
|
1489
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1437
1490
|
continue;
|
|
1438
1491
|
case "compact-short":
|
|
1439
1492
|
case "K":
|
|
@@ -1445,12 +1498,12 @@ function In(e) {
|
|
|
1445
1498
|
continue;
|
|
1446
1499
|
case "scientific":
|
|
1447
1500
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1448
|
-
return y(y({}, l),
|
|
1501
|
+
return y(y({}, l), pt(u));
|
|
1449
1502
|
}, {}));
|
|
1450
1503
|
continue;
|
|
1451
1504
|
case "engineering":
|
|
1452
1505
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1453
|
-
return y(y({}, l),
|
|
1506
|
+
return y(y({}, l), pt(u));
|
|
1454
1507
|
}, {}));
|
|
1455
1508
|
continue;
|
|
1456
1509
|
case "notation-simple":
|
|
@@ -1495,7 +1548,7 @@ function In(e) {
|
|
|
1495
1548
|
case "integer-width":
|
|
1496
1549
|
if (i.options.length > 1)
|
|
1497
1550
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1498
|
-
i.options[0].replace(
|
|
1551
|
+
i.options[0].replace(Mn, function(l, u, h, c, f, m) {
|
|
1499
1552
|
if (u)
|
|
1500
1553
|
t.minimumIntegerDigits = h.length;
|
|
1501
1554
|
else {
|
|
@@ -1508,27 +1561,27 @@ function In(e) {
|
|
|
1508
1561
|
});
|
|
1509
1562
|
continue;
|
|
1510
1563
|
}
|
|
1511
|
-
if (
|
|
1564
|
+
if (er.test(i.stem)) {
|
|
1512
1565
|
t.minimumIntegerDigits = i.stem.length;
|
|
1513
1566
|
continue;
|
|
1514
1567
|
}
|
|
1515
|
-
if (
|
|
1568
|
+
if (mt.test(i.stem)) {
|
|
1516
1569
|
if (i.options.length > 1)
|
|
1517
1570
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1518
|
-
i.stem.replace(
|
|
1571
|
+
i.stem.replace(mt, function(l, u, h, c, f, m) {
|
|
1519
1572
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1520
1573
|
});
|
|
1521
1574
|
var o = i.options[0];
|
|
1522
|
-
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t),
|
|
1575
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), dt(o)));
|
|
1523
1576
|
continue;
|
|
1524
1577
|
}
|
|
1525
|
-
if (
|
|
1526
|
-
t = y(y({}, t),
|
|
1578
|
+
if (Kt.test(i.stem)) {
|
|
1579
|
+
t = y(y({}, t), dt(i.stem));
|
|
1527
1580
|
continue;
|
|
1528
1581
|
}
|
|
1529
|
-
var s =
|
|
1582
|
+
var s = tr(i.stem);
|
|
1530
1583
|
s && (t = y(y({}, t), s));
|
|
1531
|
-
var a =
|
|
1584
|
+
var a = Nn(i.stem);
|
|
1532
1585
|
a && (t = y(y({}, t), a));
|
|
1533
1586
|
}
|
|
1534
1587
|
return t;
|
|
@@ -2948,22 +3001,23 @@ var he = {
|
|
|
2948
3001
|
"h"
|
|
2949
3002
|
]
|
|
2950
3003
|
};
|
|
2951
|
-
function
|
|
3004
|
+
function Rn(e, t) {
|
|
2952
3005
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2953
3006
|
var i = e.charAt(n);
|
|
2954
3007
|
if (i === "j") {
|
|
2955
3008
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2956
3009
|
o++, n++;
|
|
2957
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3010
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = $n(t);
|
|
2958
3011
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2959
3012
|
r += l;
|
|
2960
3013
|
for (; s-- > 0; )
|
|
2961
3014
|
r = u + r;
|
|
2962
|
-
} else
|
|
3015
|
+
} else
|
|
3016
|
+
i === "J" ? r += "H" : r += i;
|
|
2963
3017
|
}
|
|
2964
3018
|
return r;
|
|
2965
3019
|
}
|
|
2966
|
-
function
|
|
3020
|
+
function $n(e) {
|
|
2967
3021
|
var t = e.hourCycle;
|
|
2968
3022
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2969
3023
|
e.hourCycles && // @ts-ignore
|
|
@@ -2985,20 +3039,20 @@ function Mn(e) {
|
|
|
2985
3039
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2986
3040
|
return i[0];
|
|
2987
3041
|
}
|
|
2988
|
-
var
|
|
3042
|
+
var Ce, Gn = new RegExp("^".concat(qt.source, "*")), Un = new RegExp("".concat(qt.source, "*$"));
|
|
2989
3043
|
function v(e, t) {
|
|
2990
3044
|
return { start: e, end: t };
|
|
2991
3045
|
}
|
|
2992
|
-
var
|
|
3046
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Wn = zn ? Number.isSafeInteger : function(e) {
|
|
2993
3047
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2994
|
-
},
|
|
3048
|
+
}, je = !0;
|
|
2995
3049
|
try {
|
|
2996
|
-
var
|
|
2997
|
-
|
|
3050
|
+
var Zn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3051
|
+
je = ((Ce = Zn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2998
3052
|
} catch {
|
|
2999
|
-
|
|
3053
|
+
je = !1;
|
|
3000
3054
|
}
|
|
3001
|
-
var
|
|
3055
|
+
var bt = Dn ? (
|
|
3002
3056
|
// Native
|
|
3003
3057
|
function(t, r, n) {
|
|
3004
3058
|
return t.startsWith(r, n);
|
|
@@ -3008,7 +3062,7 @@ var mt = $n ? (
|
|
|
3008
3062
|
function(t, r, n) {
|
|
3009
3063
|
return t.slice(n, n + r.length) === r;
|
|
3010
3064
|
}
|
|
3011
|
-
),
|
|
3065
|
+
), ke = Fn ? String.fromCodePoint : (
|
|
3012
3066
|
// IE11
|
|
3013
3067
|
function() {
|
|
3014
3068
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3020,9 +3074,9 @@ var mt = $n ? (
|
|
|
3020
3074
|
}
|
|
3021
3075
|
return n;
|
|
3022
3076
|
}
|
|
3023
|
-
),
|
|
3077
|
+
), gt = (
|
|
3024
3078
|
// native
|
|
3025
|
-
|
|
3079
|
+
jn ? Object.fromEntries : (
|
|
3026
3080
|
// Ponyfill
|
|
3027
3081
|
function(t) {
|
|
3028
3082
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3032,7 +3086,7 @@ var mt = $n ? (
|
|
|
3032
3086
|
return r;
|
|
3033
3087
|
}
|
|
3034
3088
|
)
|
|
3035
|
-
),
|
|
3089
|
+
), rr = kn ? (
|
|
3036
3090
|
// Native
|
|
3037
3091
|
function(t, r) {
|
|
3038
3092
|
return t.codePointAt(r);
|
|
@@ -3046,7 +3100,7 @@ var mt = $n ? (
|
|
|
3046
3100
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3047
3101
|
}
|
|
3048
3102
|
}
|
|
3049
|
-
),
|
|
3103
|
+
), Qn = Vn ? (
|
|
3050
3104
|
// Native
|
|
3051
3105
|
function(t) {
|
|
3052
3106
|
return t.trimStart();
|
|
@@ -3054,9 +3108,9 @@ var mt = $n ? (
|
|
|
3054
3108
|
) : (
|
|
3055
3109
|
// Ponyfill
|
|
3056
3110
|
function(t) {
|
|
3057
|
-
return t.replace(
|
|
3111
|
+
return t.replace(Gn, "");
|
|
3058
3112
|
}
|
|
3059
|
-
),
|
|
3113
|
+
), Jn = Xn ? (
|
|
3060
3114
|
// Native
|
|
3061
3115
|
function(t) {
|
|
3062
3116
|
return t.trimEnd();
|
|
@@ -3064,32 +3118,32 @@ var mt = $n ? (
|
|
|
3064
3118
|
) : (
|
|
3065
3119
|
// Ponyfill
|
|
3066
3120
|
function(t) {
|
|
3067
|
-
return t.replace(
|
|
3121
|
+
return t.replace(Un, "");
|
|
3068
3122
|
}
|
|
3069
3123
|
);
|
|
3070
|
-
function
|
|
3124
|
+
function nr(e, t) {
|
|
3071
3125
|
return new RegExp(e, t);
|
|
3072
3126
|
}
|
|
3073
|
-
var
|
|
3074
|
-
if (
|
|
3075
|
-
var
|
|
3076
|
-
|
|
3127
|
+
var Ve;
|
|
3128
|
+
if (je) {
|
|
3129
|
+
var vt = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3130
|
+
Ve = function(t, r) {
|
|
3077
3131
|
var n;
|
|
3078
|
-
|
|
3079
|
-
var i =
|
|
3132
|
+
vt.lastIndex = r;
|
|
3133
|
+
var i = vt.exec(t);
|
|
3080
3134
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3081
3135
|
};
|
|
3082
3136
|
} else
|
|
3083
|
-
|
|
3137
|
+
Ve = function(t, r) {
|
|
3084
3138
|
for (var n = []; ; ) {
|
|
3085
|
-
var i =
|
|
3086
|
-
if (i === void 0 ||
|
|
3139
|
+
var i = rr(t, r);
|
|
3140
|
+
if (i === void 0 || ir(i) || ei(i))
|
|
3087
3141
|
break;
|
|
3088
3142
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3089
3143
|
}
|
|
3090
|
-
return
|
|
3144
|
+
return ke.apply(void 0, n);
|
|
3091
3145
|
};
|
|
3092
|
-
var
|
|
3146
|
+
var Yn = (
|
|
3093
3147
|
/** @class */
|
|
3094
3148
|
function() {
|
|
3095
3149
|
function e(t, r) {
|
|
@@ -3120,7 +3174,7 @@ var Zn = (
|
|
|
3120
3174
|
if (n)
|
|
3121
3175
|
break;
|
|
3122
3176
|
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3123
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3177
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3124
3178
|
var s = this.parseTag(t, r);
|
|
3125
3179
|
if (s.err)
|
|
3126
3180
|
return s;
|
|
@@ -3153,7 +3207,7 @@ var Zn = (
|
|
|
3153
3207
|
return o;
|
|
3154
3208
|
var s = o.val, a = this.clonePosition();
|
|
3155
3209
|
if (this.bumpIf("</")) {
|
|
3156
|
-
if (this.isEOF() || !
|
|
3210
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3157
3211
|
return this.error(b.INVALID_TAG, v(a, this.clonePosition()));
|
|
3158
3212
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3159
3213
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3171,7 +3225,7 @@ var Zn = (
|
|
|
3171
3225
|
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3172
3226
|
}, e.prototype.parseTagName = function() {
|
|
3173
3227
|
var t = this.offset();
|
|
3174
|
-
for (this.bump(); !this.isEOF() &&
|
|
3228
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3175
3229
|
this.bump();
|
|
3176
3230
|
return this.message.slice(t, this.offset());
|
|
3177
3231
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3200,7 +3254,7 @@ var Zn = (
|
|
|
3200
3254
|
};
|
|
3201
3255
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3202
3256
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3203
|
-
!
|
|
3257
|
+
!qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3204
3258
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3205
3259
|
if (this.isEOF() || this.char() !== 39)
|
|
3206
3260
|
return null;
|
|
@@ -3234,12 +3288,12 @@ var Zn = (
|
|
|
3234
3288
|
r.push(n);
|
|
3235
3289
|
this.bump();
|
|
3236
3290
|
}
|
|
3237
|
-
return
|
|
3291
|
+
return ke.apply(void 0, r);
|
|
3238
3292
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3239
3293
|
if (this.isEOF())
|
|
3240
3294
|
return null;
|
|
3241
3295
|
var n = this.char();
|
|
3242
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3296
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3243
3297
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3244
3298
|
var n = this.clonePosition();
|
|
3245
3299
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3268,7 +3322,7 @@ var Zn = (
|
|
|
3268
3322
|
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3269
3323
|
}
|
|
3270
3324
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3271
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3325
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3272
3326
|
this.bumpTo(i);
|
|
3273
3327
|
var o = this.clonePosition(), s = v(t, o);
|
|
3274
3328
|
return { value: n, location: s };
|
|
@@ -3287,7 +3341,7 @@ var Zn = (
|
|
|
3287
3341
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3288
3342
|
if (c.err)
|
|
3289
3343
|
return c;
|
|
3290
|
-
var f =
|
|
3344
|
+
var f = Jn(c.val);
|
|
3291
3345
|
if (f.length === 0)
|
|
3292
3346
|
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3293
3347
|
var m = v(h, this.clonePosition());
|
|
@@ -3297,8 +3351,8 @@ var Zn = (
|
|
|
3297
3351
|
if (d.err)
|
|
3298
3352
|
return d;
|
|
3299
3353
|
var p = v(i, this.clonePosition());
|
|
3300
|
-
if (u &&
|
|
3301
|
-
var w =
|
|
3354
|
+
if (u && bt(u?.style, "::", 0)) {
|
|
3355
|
+
var w = Qn(u.style.slice(2));
|
|
3302
3356
|
if (a === "number") {
|
|
3303
3357
|
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3304
3358
|
return c.err ? c : {
|
|
@@ -3309,12 +3363,12 @@ var Zn = (
|
|
|
3309
3363
|
if (w.length === 0)
|
|
3310
3364
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3311
3365
|
var I = w;
|
|
3312
|
-
this.locale && (I =
|
|
3366
|
+
this.locale && (I = Rn(w, this.locale));
|
|
3313
3367
|
var f = {
|
|
3314
|
-
type:
|
|
3368
|
+
type: z.dateTime,
|
|
3315
3369
|
pattern: I,
|
|
3316
3370
|
location: u.styleLocation,
|
|
3317
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3371
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(I) : {}
|
|
3318
3372
|
}, C = a === "date" ? S.date : S.time;
|
|
3319
3373
|
return {
|
|
3320
3374
|
val: { type: C, value: n, location: p, style: f },
|
|
@@ -3360,7 +3414,7 @@ var Zn = (
|
|
|
3360
3414
|
val: {
|
|
3361
3415
|
type: S.select,
|
|
3362
3416
|
value: n,
|
|
3363
|
-
options:
|
|
3417
|
+
options: gt(x.val),
|
|
3364
3418
|
location: P
|
|
3365
3419
|
},
|
|
3366
3420
|
err: null
|
|
@@ -3368,7 +3422,7 @@ var Zn = (
|
|
|
3368
3422
|
val: {
|
|
3369
3423
|
type: S.plural,
|
|
3370
3424
|
value: n,
|
|
3371
|
-
options:
|
|
3425
|
+
options: gt(x.val),
|
|
3372
3426
|
offset: E,
|
|
3373
3427
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3374
3428
|
location: P
|
|
@@ -3419,16 +3473,16 @@ var Zn = (
|
|
|
3419
3473
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3420
3474
|
var n = [];
|
|
3421
3475
|
try {
|
|
3422
|
-
n =
|
|
3476
|
+
n = On(t);
|
|
3423
3477
|
} catch {
|
|
3424
3478
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3425
3479
|
}
|
|
3426
3480
|
return {
|
|
3427
3481
|
val: {
|
|
3428
|
-
type:
|
|
3482
|
+
type: z.number,
|
|
3429
3483
|
tokens: n,
|
|
3430
3484
|
location: r,
|
|
3431
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3485
|
+
parsedOptions: this.shouldParseSkeletons ? Ln(n) : {}
|
|
3432
3486
|
},
|
|
3433
3487
|
err: null
|
|
3434
3488
|
};
|
|
@@ -3476,7 +3530,7 @@ var Zn = (
|
|
|
3476
3530
|
break;
|
|
3477
3531
|
}
|
|
3478
3532
|
var l = v(i, this.clonePosition());
|
|
3479
|
-
return o ? (s *= n,
|
|
3533
|
+
return o ? (s *= n, Wn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3480
3534
|
}, e.prototype.offset = function() {
|
|
3481
3535
|
return this.position.offset;
|
|
3482
3536
|
}, e.prototype.isEOF = function() {
|
|
@@ -3491,7 +3545,7 @@ var Zn = (
|
|
|
3491
3545
|
var t = this.position.offset;
|
|
3492
3546
|
if (t >= this.message.length)
|
|
3493
3547
|
throw Error("out of bound");
|
|
3494
|
-
var r =
|
|
3548
|
+
var r = rr(this.message, t);
|
|
3495
3549
|
if (r === void 0)
|
|
3496
3550
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3497
3551
|
return r;
|
|
@@ -3510,7 +3564,7 @@ var Zn = (
|
|
|
3510
3564
|
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);
|
|
3511
3565
|
}
|
|
3512
3566
|
}, e.prototype.bumpIf = function(t) {
|
|
3513
|
-
if (
|
|
3567
|
+
if (bt(this.message, t, this.offset())) {
|
|
3514
3568
|
for (var r = 0; r < t.length; r++)
|
|
3515
3569
|
this.bump();
|
|
3516
3570
|
return !0;
|
|
@@ -3532,7 +3586,7 @@ var Zn = (
|
|
|
3532
3586
|
break;
|
|
3533
3587
|
}
|
|
3534
3588
|
}, e.prototype.bumpSpace = function() {
|
|
3535
|
-
for (; !this.isEOF() &&
|
|
3589
|
+
for (; !this.isEOF() && ir(this.char()); )
|
|
3536
3590
|
this.bump();
|
|
3537
3591
|
}, e.prototype.peek = function() {
|
|
3538
3592
|
if (this.isEOF())
|
|
@@ -3542,42 +3596,43 @@ var Zn = (
|
|
|
3542
3596
|
}, e;
|
|
3543
3597
|
}()
|
|
3544
3598
|
);
|
|
3545
|
-
function
|
|
3599
|
+
function Xe(e) {
|
|
3546
3600
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3547
3601
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return
|
|
3602
|
+
function qn(e) {
|
|
3603
|
+
return Xe(e) || e === 47;
|
|
3550
3604
|
}
|
|
3551
|
-
function
|
|
3605
|
+
function Kn(e) {
|
|
3552
3606
|
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;
|
|
3553
3607
|
}
|
|
3554
|
-
function
|
|
3608
|
+
function ir(e) {
|
|
3555
3609
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3556
3610
|
}
|
|
3557
|
-
function
|
|
3611
|
+
function ei(e) {
|
|
3558
3612
|
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;
|
|
3559
3613
|
}
|
|
3560
|
-
function
|
|
3614
|
+
function ze(e) {
|
|
3561
3615
|
e.forEach(function(t) {
|
|
3562
|
-
if (delete t.location,
|
|
3616
|
+
if (delete t.location, Zt(t) || Qt(t))
|
|
3563
3617
|
for (var r in t.options)
|
|
3564
|
-
delete t.options[r].location,
|
|
3565
|
-
else
|
|
3618
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3619
|
+
else
|
|
3620
|
+
Xt(t) && Yt(t.style) || (zt(t) || Wt(t)) && Fe(t.style) ? delete t.style.location : Jt(t) && ze(t.children);
|
|
3566
3621
|
});
|
|
3567
3622
|
}
|
|
3568
|
-
function
|
|
3623
|
+
function ti(e, t) {
|
|
3569
3624
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3570
|
-
var r = new
|
|
3625
|
+
var r = new Yn(e, t).parse();
|
|
3571
3626
|
if (r.err) {
|
|
3572
3627
|
var n = SyntaxError(b[r.err.kind]);
|
|
3573
3628
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3574
3629
|
}
|
|
3575
|
-
return t?.captureLocation ||
|
|
3630
|
+
return t?.captureLocation || ze(r.val), r.val;
|
|
3576
3631
|
}
|
|
3577
|
-
var
|
|
3632
|
+
var W;
|
|
3578
3633
|
(function(e) {
|
|
3579
3634
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3580
|
-
})(
|
|
3635
|
+
})(W || (W = {}));
|
|
3581
3636
|
var _e = (
|
|
3582
3637
|
/** @class */
|
|
3583
3638
|
function(e) {
|
|
@@ -3590,30 +3645,30 @@ var _e = (
|
|
|
3590
3645
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3591
3646
|
}, t;
|
|
3592
3647
|
}(Error)
|
|
3593
|
-
),
|
|
3648
|
+
), yt = (
|
|
3594
3649
|
/** @class */
|
|
3595
3650
|
function(e) {
|
|
3596
3651
|
R(t, e);
|
|
3597
3652
|
function t(r, n, i, o) {
|
|
3598
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3653
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3599
3654
|
}
|
|
3600
3655
|
return t;
|
|
3601
3656
|
}(_e)
|
|
3602
|
-
),
|
|
3657
|
+
), ri = (
|
|
3603
3658
|
/** @class */
|
|
3604
3659
|
function(e) {
|
|
3605
3660
|
R(t, e);
|
|
3606
3661
|
function t(r, n, i) {
|
|
3607
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3662
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3608
3663
|
}
|
|
3609
3664
|
return t;
|
|
3610
3665
|
}(_e)
|
|
3611
|
-
),
|
|
3666
|
+
), ni = (
|
|
3612
3667
|
/** @class */
|
|
3613
3668
|
function(e) {
|
|
3614
3669
|
R(t, e);
|
|
3615
3670
|
function t(r, n) {
|
|
3616
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3671
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3617
3672
|
}
|
|
3618
3673
|
return t;
|
|
3619
3674
|
}(_e)
|
|
@@ -3621,17 +3676,17 @@ var _e = (
|
|
|
3621
3676
|
(function(e) {
|
|
3622
3677
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3623
3678
|
})(A || (A = {}));
|
|
3624
|
-
function
|
|
3679
|
+
function ii(e) {
|
|
3625
3680
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3626
3681
|
var n = t[t.length - 1];
|
|
3627
3682
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3628
3683
|
}, []);
|
|
3629
3684
|
}
|
|
3630
|
-
function
|
|
3685
|
+
function oi(e) {
|
|
3631
3686
|
return typeof e == "function";
|
|
3632
3687
|
}
|
|
3633
3688
|
function de(e, t, r, n, i, o, s) {
|
|
3634
|
-
if (e.length === 1 &&
|
|
3689
|
+
if (e.length === 1 && ft(e[0]))
|
|
3635
3690
|
return [
|
|
3636
3691
|
{
|
|
3637
3692
|
type: A.literal,
|
|
@@ -3640,14 +3695,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3640
3695
|
];
|
|
3641
3696
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3642
3697
|
var h = u[l];
|
|
3643
|
-
if (
|
|
3698
|
+
if (ft(h)) {
|
|
3644
3699
|
a.push({
|
|
3645
3700
|
type: A.literal,
|
|
3646
3701
|
value: h.value
|
|
3647
3702
|
});
|
|
3648
3703
|
continue;
|
|
3649
3704
|
}
|
|
3650
|
-
if (
|
|
3705
|
+
if (Bn(h)) {
|
|
3651
3706
|
typeof o == "number" && a.push({
|
|
3652
3707
|
type: A.literal,
|
|
3653
3708
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3656,43 +3711,43 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3656
3711
|
}
|
|
3657
3712
|
var c = h.value;
|
|
3658
3713
|
if (!(i && c in i))
|
|
3659
|
-
throw new
|
|
3714
|
+
throw new ni(c, s);
|
|
3660
3715
|
var f = i[c];
|
|
3661
|
-
if (
|
|
3716
|
+
if (Hn(h)) {
|
|
3662
3717
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3663
3718
|
type: typeof f == "string" ? A.literal : A.object,
|
|
3664
3719
|
value: f
|
|
3665
3720
|
});
|
|
3666
3721
|
continue;
|
|
3667
3722
|
}
|
|
3668
|
-
if (
|
|
3669
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3723
|
+
if (zt(h)) {
|
|
3724
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
|
|
3670
3725
|
a.push({
|
|
3671
3726
|
type: A.literal,
|
|
3672
3727
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3673
3728
|
});
|
|
3674
3729
|
continue;
|
|
3675
3730
|
}
|
|
3676
|
-
if (
|
|
3677
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3731
|
+
if (Wt(h)) {
|
|
3732
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3678
3733
|
a.push({
|
|
3679
3734
|
type: A.literal,
|
|
3680
3735
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3681
3736
|
});
|
|
3682
3737
|
continue;
|
|
3683
3738
|
}
|
|
3684
|
-
if (
|
|
3685
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3739
|
+
if (Xt(h)) {
|
|
3740
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Yt(h.style) ? h.style.parsedOptions : void 0;
|
|
3686
3741
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3687
3742
|
type: A.literal,
|
|
3688
3743
|
value: r.getNumberFormat(t, m).format(f)
|
|
3689
3744
|
});
|
|
3690
3745
|
continue;
|
|
3691
3746
|
}
|
|
3692
|
-
if (
|
|
3747
|
+
if (Jt(h)) {
|
|
3693
3748
|
var d = h.children, p = h.value, w = i[p];
|
|
3694
|
-
if (!
|
|
3695
|
-
throw new
|
|
3749
|
+
if (!oi(w))
|
|
3750
|
+
throw new ri(p, "function", s);
|
|
3696
3751
|
var I = de(d, t, r, n, i, o), C = w(I.map(function(E) {
|
|
3697
3752
|
return E.value;
|
|
3698
3753
|
}));
|
|
@@ -3703,42 +3758,42 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3703
3758
|
};
|
|
3704
3759
|
}));
|
|
3705
3760
|
}
|
|
3706
|
-
if (
|
|
3761
|
+
if (Zt(h)) {
|
|
3707
3762
|
var T = h.options[f] || h.options.other;
|
|
3708
3763
|
if (!T)
|
|
3709
|
-
throw new
|
|
3764
|
+
throw new yt(h.value, f, Object.keys(h.options), s);
|
|
3710
3765
|
a.push.apply(a, de(T.value, t, r, n, i));
|
|
3711
3766
|
continue;
|
|
3712
3767
|
}
|
|
3713
|
-
if (
|
|
3768
|
+
if (Qt(h)) {
|
|
3714
3769
|
var T = h.options["=".concat(f)];
|
|
3715
3770
|
if (!T) {
|
|
3716
3771
|
if (!Intl.PluralRules)
|
|
3717
3772
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3718
3773
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3719
|
-
`,
|
|
3774
|
+
`, W.MISSING_INTL_API, s);
|
|
3720
3775
|
var _ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3721
3776
|
T = h.options[_] || h.options.other;
|
|
3722
3777
|
}
|
|
3723
3778
|
if (!T)
|
|
3724
|
-
throw new
|
|
3779
|
+
throw new yt(h.value, f, Object.keys(h.options), s);
|
|
3725
3780
|
a.push.apply(a, de(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3726
3781
|
continue;
|
|
3727
3782
|
}
|
|
3728
3783
|
}
|
|
3729
|
-
return
|
|
3784
|
+
return ii(a);
|
|
3730
3785
|
}
|
|
3731
|
-
function
|
|
3786
|
+
function si(e, t) {
|
|
3732
3787
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3733
3788
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3734
3789
|
}, {})) : e;
|
|
3735
3790
|
}
|
|
3736
|
-
function
|
|
3791
|
+
function ai(e, t) {
|
|
3737
3792
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3738
|
-
return r[n] =
|
|
3793
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3739
3794
|
}, y({}, e)) : e;
|
|
3740
3795
|
}
|
|
3741
|
-
function
|
|
3796
|
+
function Pe(e) {
|
|
3742
3797
|
return {
|
|
3743
3798
|
create: function() {
|
|
3744
3799
|
return {
|
|
@@ -3752,39 +3807,39 @@ function Ce(e) {
|
|
|
3752
3807
|
}
|
|
3753
3808
|
};
|
|
3754
3809
|
}
|
|
3755
|
-
function
|
|
3810
|
+
function ui(e) {
|
|
3756
3811
|
return e === void 0 && (e = {
|
|
3757
3812
|
number: {},
|
|
3758
3813
|
dateTime: {},
|
|
3759
3814
|
pluralRules: {}
|
|
3760
3815
|
}), {
|
|
3761
|
-
getNumberFormat:
|
|
3816
|
+
getNumberFormat: Be(function() {
|
|
3762
3817
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3763
3818
|
r[n] = arguments[n];
|
|
3764
3819
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3765
3820
|
}, {
|
|
3766
|
-
cache:
|
|
3767
|
-
strategy:
|
|
3821
|
+
cache: Pe(e.number),
|
|
3822
|
+
strategy: Ae.variadic
|
|
3768
3823
|
}),
|
|
3769
|
-
getDateTimeFormat:
|
|
3824
|
+
getDateTimeFormat: Be(function() {
|
|
3770
3825
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3771
3826
|
r[n] = arguments[n];
|
|
3772
3827
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3773
3828
|
}, {
|
|
3774
|
-
cache:
|
|
3775
|
-
strategy:
|
|
3829
|
+
cache: Pe(e.dateTime),
|
|
3830
|
+
strategy: Ae.variadic
|
|
3776
3831
|
}),
|
|
3777
|
-
getPluralRules:
|
|
3832
|
+
getPluralRules: Be(function() {
|
|
3778
3833
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3779
3834
|
r[n] = arguments[n];
|
|
3780
3835
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3781
3836
|
}, {
|
|
3782
|
-
cache:
|
|
3783
|
-
strategy:
|
|
3837
|
+
cache: Pe(e.pluralRules),
|
|
3838
|
+
strategy: Ae.variadic
|
|
3784
3839
|
})
|
|
3785
3840
|
};
|
|
3786
3841
|
}
|
|
3787
|
-
var
|
|
3842
|
+
var li = (
|
|
3788
3843
|
/** @class */
|
|
3789
3844
|
function() {
|
|
3790
3845
|
function e(t, r, n, i) {
|
|
@@ -3816,13 +3871,13 @@ var si = (
|
|
|
3816
3871
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3817
3872
|
var s = i || {};
|
|
3818
3873
|
s.formatters;
|
|
3819
|
-
var a =
|
|
3874
|
+
var a = Fr(s, ["formatters"]);
|
|
3820
3875
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3821
3876
|
} else
|
|
3822
3877
|
this.ast = t;
|
|
3823
3878
|
if (!Array.isArray(this.ast))
|
|
3824
3879
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3825
|
-
this.formats =
|
|
3880
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3826
3881
|
}
|
|
3827
3882
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3828
3883
|
get: function() {
|
|
@@ -3835,7 +3890,7 @@ var si = (
|
|
|
3835
3890
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3836
3891
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3837
3892
|
}
|
|
3838
|
-
}, e.__parse =
|
|
3893
|
+
}, e.__parse = ti, e.formats = {
|
|
3839
3894
|
number: {
|
|
3840
3895
|
integer: {
|
|
3841
3896
|
maximumFractionDigits: 0
|
|
@@ -3896,7 +3951,7 @@ var si = (
|
|
|
3896
3951
|
}, e;
|
|
3897
3952
|
}()
|
|
3898
3953
|
);
|
|
3899
|
-
function
|
|
3954
|
+
function hi(e, t) {
|
|
3900
3955
|
if (t == null)
|
|
3901
3956
|
return;
|
|
3902
3957
|
if (t in e)
|
|
@@ -3917,60 +3972,60 @@ function ai(e, t) {
|
|
|
3917
3972
|
n = void 0;
|
|
3918
3973
|
return n;
|
|
3919
3974
|
}
|
|
3920
|
-
const $ = {},
|
|
3975
|
+
const $ = {}, ci = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), or = (e, t) => {
|
|
3921
3976
|
if (t == null)
|
|
3922
3977
|
return;
|
|
3923
3978
|
if (t in $ && e in $[t])
|
|
3924
3979
|
return $[t][e];
|
|
3925
3980
|
const r = Ee(t);
|
|
3926
3981
|
for (let n = 0; n < r.length; n++) {
|
|
3927
|
-
const i = r[n], o =
|
|
3982
|
+
const i = r[n], o = mi(i, e);
|
|
3928
3983
|
if (o)
|
|
3929
|
-
return
|
|
3984
|
+
return ci(e, t, o);
|
|
3930
3985
|
}
|
|
3931
3986
|
};
|
|
3932
|
-
let
|
|
3987
|
+
let qe;
|
|
3933
3988
|
const ae = xe({});
|
|
3934
|
-
function
|
|
3935
|
-
return
|
|
3989
|
+
function fi(e) {
|
|
3990
|
+
return qe[e] || null;
|
|
3936
3991
|
}
|
|
3937
|
-
function
|
|
3938
|
-
return e in
|
|
3992
|
+
function sr(e) {
|
|
3993
|
+
return e in qe;
|
|
3939
3994
|
}
|
|
3940
|
-
function
|
|
3941
|
-
if (!
|
|
3995
|
+
function mi(e, t) {
|
|
3996
|
+
if (!sr(e))
|
|
3942
3997
|
return null;
|
|
3943
|
-
const r =
|
|
3944
|
-
return
|
|
3998
|
+
const r = fi(e);
|
|
3999
|
+
return hi(r, t);
|
|
3945
4000
|
}
|
|
3946
|
-
function
|
|
4001
|
+
function di(e) {
|
|
3947
4002
|
if (e == null)
|
|
3948
4003
|
return;
|
|
3949
4004
|
const t = Ee(e);
|
|
3950
4005
|
for (let r = 0; r < t.length; r++) {
|
|
3951
4006
|
const n = t[r];
|
|
3952
|
-
if (
|
|
4007
|
+
if (sr(n))
|
|
3953
4008
|
return n;
|
|
3954
4009
|
}
|
|
3955
4010
|
}
|
|
3956
|
-
function
|
|
3957
|
-
delete $[e], ae.update((r) => (r[e] =
|
|
4011
|
+
function ar(e, ...t) {
|
|
4012
|
+
delete $[e], ae.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
3958
4013
|
}
|
|
3959
4014
|
Y(
|
|
3960
4015
|
[ae],
|
|
3961
4016
|
([e]) => Object.keys(e)
|
|
3962
4017
|
);
|
|
3963
|
-
ae.subscribe((e) =>
|
|
4018
|
+
ae.subscribe((e) => qe = e);
|
|
3964
4019
|
const pe = {};
|
|
3965
|
-
function
|
|
4020
|
+
function pi(e, t) {
|
|
3966
4021
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3967
4022
|
}
|
|
3968
|
-
function
|
|
4023
|
+
function ur(e) {
|
|
3969
4024
|
return pe[e];
|
|
3970
4025
|
}
|
|
3971
|
-
function
|
|
4026
|
+
function bi(e) {
|
|
3972
4027
|
return Ee(e).map((t) => {
|
|
3973
|
-
const r =
|
|
4028
|
+
const r = ur(t);
|
|
3974
4029
|
return [t, r ? [...r] : []];
|
|
3975
4030
|
}).filter(([, t]) => t.length > 0);
|
|
3976
4031
|
}
|
|
@@ -3978,31 +4033,31 @@ function We(e) {
|
|
|
3978
4033
|
return e == null ? !1 : Ee(e).some(
|
|
3979
4034
|
(t) => {
|
|
3980
4035
|
var r;
|
|
3981
|
-
return (r =
|
|
4036
|
+
return (r = ur(t)) == null ? void 0 : r.size;
|
|
3982
4037
|
}
|
|
3983
4038
|
);
|
|
3984
4039
|
}
|
|
3985
|
-
function
|
|
4040
|
+
function gi(e, t) {
|
|
3986
4041
|
return Promise.all(
|
|
3987
|
-
t.map((n) => (
|
|
3988
|
-
).then((n) =>
|
|
4042
|
+
t.map((n) => (pi(e, n), n().then((i) => i.default || i)))
|
|
4043
|
+
).then((n) => ar(e, ...n));
|
|
3989
4044
|
}
|
|
3990
4045
|
const ee = {};
|
|
3991
|
-
function
|
|
4046
|
+
function lr(e) {
|
|
3992
4047
|
if (!We(e))
|
|
3993
4048
|
return e in ee ? ee[e] : Promise.resolve();
|
|
3994
|
-
const t =
|
|
4049
|
+
const t = bi(e);
|
|
3995
4050
|
return ee[e] = Promise.all(
|
|
3996
4051
|
t.map(
|
|
3997
|
-
([r, n]) =>
|
|
4052
|
+
([r, n]) => gi(r, n)
|
|
3998
4053
|
)
|
|
3999
4054
|
).then(() => {
|
|
4000
4055
|
if (We(e))
|
|
4001
|
-
return
|
|
4056
|
+
return lr(e);
|
|
4002
4057
|
delete ee[e];
|
|
4003
4058
|
}), ee[e];
|
|
4004
4059
|
}
|
|
4005
|
-
const
|
|
4060
|
+
const vi = {
|
|
4006
4061
|
number: {
|
|
4007
4062
|
scientific: { notation: "scientific" },
|
|
4008
4063
|
engineering: { notation: "engineering" },
|
|
@@ -4031,57 +4086,57 @@ const pi = {
|
|
|
4031
4086
|
timeZoneName: "short"
|
|
4032
4087
|
}
|
|
4033
4088
|
}
|
|
4034
|
-
},
|
|
4089
|
+
}, yi = {
|
|
4035
4090
|
fallbackLocale: null,
|
|
4036
4091
|
loadingDelay: 200,
|
|
4037
|
-
formats:
|
|
4092
|
+
formats: vi,
|
|
4038
4093
|
warnOnMissingMessages: !0,
|
|
4039
4094
|
handleMissingMessage: void 0,
|
|
4040
4095
|
ignoreTag: !0
|
|
4041
|
-
},
|
|
4096
|
+
}, xi = yi;
|
|
4042
4097
|
function Z() {
|
|
4043
|
-
return
|
|
4098
|
+
return xi;
|
|
4044
4099
|
}
|
|
4045
|
-
const
|
|
4046
|
-
var
|
|
4100
|
+
const Oe = xe(!1);
|
|
4101
|
+
var _i = Object.defineProperty, Ei = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4047
4102
|
for (var r in t || (t = {}))
|
|
4048
|
-
|
|
4049
|
-
if (
|
|
4050
|
-
for (var r of
|
|
4051
|
-
|
|
4103
|
+
wi.call(t, r) && _t(e, r, t[r]);
|
|
4104
|
+
if (xt)
|
|
4105
|
+
for (var r of xt(t))
|
|
4106
|
+
Ti.call(t, r) && _t(e, r, t[r]);
|
|
4052
4107
|
return e;
|
|
4053
|
-
},
|
|
4054
|
-
let
|
|
4108
|
+
}, Bi = (e, t) => Ei(e, Si(t));
|
|
4109
|
+
let Ze;
|
|
4055
4110
|
const ge = xe(null);
|
|
4056
|
-
function
|
|
4111
|
+
function Et(e) {
|
|
4057
4112
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4058
4113
|
}
|
|
4059
4114
|
function Ee(e, t = Z().fallbackLocale) {
|
|
4060
|
-
const r =
|
|
4061
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4115
|
+
const r = Et(e);
|
|
4116
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4062
4117
|
}
|
|
4063
4118
|
function G() {
|
|
4064
|
-
return
|
|
4119
|
+
return Ze ?? void 0;
|
|
4065
4120
|
}
|
|
4066
4121
|
ge.subscribe((e) => {
|
|
4067
|
-
|
|
4122
|
+
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4068
4123
|
});
|
|
4069
|
-
const
|
|
4070
|
-
if (e &&
|
|
4124
|
+
const Ai = (e) => {
|
|
4125
|
+
if (e && di(e) && We(e)) {
|
|
4071
4126
|
const { loadingDelay: t } = Z();
|
|
4072
4127
|
let r;
|
|
4073
4128
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4074
|
-
() =>
|
|
4129
|
+
() => Oe.set(!0),
|
|
4075
4130
|
t
|
|
4076
|
-
) :
|
|
4131
|
+
) : Oe.set(!0), lr(e).then(() => {
|
|
4077
4132
|
ge.set(e);
|
|
4078
4133
|
}).finally(() => {
|
|
4079
|
-
clearTimeout(r),
|
|
4134
|
+
clearTimeout(r), Oe.set(!1);
|
|
4080
4135
|
});
|
|
4081
4136
|
}
|
|
4082
4137
|
return ge.set(e);
|
|
4083
|
-
}, q =
|
|
4084
|
-
set:
|
|
4138
|
+
}, q = Bi(Hi({}, ge), {
|
|
4139
|
+
set: Ai
|
|
4085
4140
|
}), Se = (e) => {
|
|
4086
4141
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4087
4142
|
return (n) => {
|
|
@@ -4089,20 +4144,20 @@ const Ti = (e) => {
|
|
|
4089
4144
|
return i in t ? t[i] : t[i] = e(n);
|
|
4090
4145
|
};
|
|
4091
4146
|
};
|
|
4092
|
-
var
|
|
4147
|
+
var Ci = Object.defineProperty, ve = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4093
4148
|
for (var r in t || (t = {}))
|
|
4094
|
-
|
|
4149
|
+
hr.call(t, r) && St(e, r, t[r]);
|
|
4095
4150
|
if (ve)
|
|
4096
4151
|
for (var r of ve(t))
|
|
4097
|
-
|
|
4152
|
+
cr.call(t, r) && St(e, r, t[r]);
|
|
4098
4153
|
return e;
|
|
4099
4154
|
}, K = (e, t) => {
|
|
4100
4155
|
var r = {};
|
|
4101
4156
|
for (var n in e)
|
|
4102
|
-
|
|
4157
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4103
4158
|
if (e != null && ve)
|
|
4104
4159
|
for (var n of ve(e))
|
|
4105
|
-
t.indexOf(n) < 0 &&
|
|
4160
|
+
t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
|
|
4106
4161
|
return r;
|
|
4107
4162
|
};
|
|
4108
4163
|
const oe = (e, t) => {
|
|
@@ -4110,21 +4165,21 @@ const oe = (e, t) => {
|
|
|
4110
4165
|
if (e in r && t in r[e])
|
|
4111
4166
|
return r[e][t];
|
|
4112
4167
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4113
|
-
},
|
|
4168
|
+
}, Pi = Se(
|
|
4114
4169
|
(e) => {
|
|
4115
4170
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4116
4171
|
if (r == null)
|
|
4117
4172
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4118
4173
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4119
4174
|
}
|
|
4120
|
-
),
|
|
4175
|
+
), Oi = Se(
|
|
4121
4176
|
(e) => {
|
|
4122
4177
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4123
4178
|
if (r == null)
|
|
4124
4179
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4125
4180
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4126
4181
|
}
|
|
4127
|
-
),
|
|
4182
|
+
), Ii = Se(
|
|
4128
4183
|
(e) => {
|
|
4129
4184
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4130
4185
|
if (r == null)
|
|
@@ -4133,33 +4188,33 @@ const oe = (e, t) => {
|
|
|
4133
4188
|
);
|
|
4134
4189
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4135
4190
|
}
|
|
4136
|
-
),
|
|
4191
|
+
), Mi = (e = {}) => {
|
|
4137
4192
|
var t = e, {
|
|
4138
4193
|
locale: r = G()
|
|
4139
4194
|
} = t, n = K(t, [
|
|
4140
4195
|
"locale"
|
|
4141
4196
|
]);
|
|
4142
|
-
return
|
|
4143
|
-
},
|
|
4197
|
+
return Pi(Ke({ locale: r }, n));
|
|
4198
|
+
}, Ni = (e = {}) => {
|
|
4144
4199
|
var t = e, {
|
|
4145
4200
|
locale: r = G()
|
|
4146
4201
|
} = t, n = K(t, [
|
|
4147
4202
|
"locale"
|
|
4148
4203
|
]);
|
|
4149
|
-
return
|
|
4150
|
-
},
|
|
4204
|
+
return Oi(Ke({ locale: r }, n));
|
|
4205
|
+
}, Li = (e = {}) => {
|
|
4151
4206
|
var t = e, {
|
|
4152
4207
|
locale: r = G()
|
|
4153
4208
|
} = t, n = K(t, [
|
|
4154
4209
|
"locale"
|
|
4155
4210
|
]);
|
|
4156
|
-
return
|
|
4157
|
-
},
|
|
4211
|
+
return Ii(Ke({ locale: r }, n));
|
|
4212
|
+
}, Ri = Se(
|
|
4158
4213
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4159
|
-
(e, t = G()) => new
|
|
4214
|
+
(e, t = G()) => new li(e, t, Z().formats, {
|
|
4160
4215
|
ignoreTag: Z().ignoreTag
|
|
4161
4216
|
})
|
|
4162
|
-
),
|
|
4217
|
+
), $i = (e, t = {}) => {
|
|
4163
4218
|
var r, n, i, o;
|
|
4164
4219
|
let s = t;
|
|
4165
4220
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4172,7 +4227,7 @@ const oe = (e, t) => {
|
|
|
4172
4227
|
throw new Error(
|
|
4173
4228
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4174
4229
|
);
|
|
4175
|
-
let h =
|
|
4230
|
+
let h = or(e, l);
|
|
4176
4231
|
if (!h)
|
|
4177
4232
|
h = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4178
4233
|
else if (typeof h != "string")
|
|
@@ -4183,7 +4238,7 @@ const oe = (e, t) => {
|
|
|
4183
4238
|
return h;
|
|
4184
4239
|
let c = h;
|
|
4185
4240
|
try {
|
|
4186
|
-
c =
|
|
4241
|
+
c = Ri(h, l).format(a);
|
|
4187
4242
|
} catch (f) {
|
|
4188
4243
|
f instanceof Error && console.warn(
|
|
4189
4244
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4191,20 +4246,20 @@ const oe = (e, t) => {
|
|
|
4191
4246
|
);
|
|
4192
4247
|
}
|
|
4193
4248
|
return c;
|
|
4194
|
-
},
|
|
4195
|
-
Y([q], () =>
|
|
4196
|
-
Y([q], () =>
|
|
4197
|
-
Y([q], () =>
|
|
4198
|
-
Y([q, ae], () =>
|
|
4199
|
-
window.emWidgets = { topic:
|
|
4200
|
-
const
|
|
4201
|
-
function
|
|
4202
|
-
|
|
4203
|
-
}
|
|
4204
|
-
function
|
|
4249
|
+
}, Gi = (e, t) => Li(t).format(e), Ui = (e, t) => Ni(t).format(e), Di = (e, t) => Mi(t).format(e), Fi = (e, t = G()) => or(e, t), ji = Y([q, ae], () => $i);
|
|
4250
|
+
Y([q], () => Gi);
|
|
4251
|
+
Y([q], () => Ui);
|
|
4252
|
+
Y([q], () => Di);
|
|
4253
|
+
Y([q, ae], () => Fi);
|
|
4254
|
+
window.emWidgets = { topic: tn };
|
|
4255
|
+
const ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4256
|
+
function wt(e, t) {
|
|
4257
|
+
ar(e, t);
|
|
4258
|
+
}
|
|
4259
|
+
function Vi(e) {
|
|
4205
4260
|
q.set(e);
|
|
4206
4261
|
}
|
|
4207
|
-
const
|
|
4262
|
+
const Tt = {
|
|
4208
4263
|
en: {
|
|
4209
4264
|
cancel: "Cancel",
|
|
4210
4265
|
confirm: "Confirm"
|
|
@@ -4250,13 +4305,13 @@ const Et = {
|
|
|
4250
4305
|
confirm: "Confirm"
|
|
4251
4306
|
}
|
|
4252
4307
|
};
|
|
4253
|
-
function
|
|
4308
|
+
function Xi(e, t) {
|
|
4254
4309
|
if (e) {
|
|
4255
4310
|
const r = document.createElement("style");
|
|
4256
4311
|
r.innerHTML = t, e.appendChild(r);
|
|
4257
4312
|
}
|
|
4258
4313
|
}
|
|
4259
|
-
function
|
|
4314
|
+
function zi(e, t) {
|
|
4260
4315
|
const r = new URL(t);
|
|
4261
4316
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4262
4317
|
const i = document.createElement("style");
|
|
@@ -4265,7 +4320,7 @@ function ki(e, t) {
|
|
|
4265
4320
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4266
4321
|
});
|
|
4267
4322
|
}
|
|
4268
|
-
function
|
|
4323
|
+
function Wi(e, t, r) {
|
|
4269
4324
|
if (window.emMessageBus) {
|
|
4270
4325
|
const n = document.createElement("style");
|
|
4271
4326
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4273,30 +4328,30 @@ function Vi(e, t, r) {
|
|
|
4273
4328
|
});
|
|
4274
4329
|
}
|
|
4275
4330
|
}
|
|
4276
|
-
function
|
|
4277
|
-
|
|
4331
|
+
function Zi(e) {
|
|
4332
|
+
_r(e, "svelte-1o81iqe", '*,*::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, 20px);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, 20px)}.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}');
|
|
4278
4333
|
}
|
|
4279
|
-
const
|
|
4280
|
-
function
|
|
4334
|
+
const Qi = (e) => ({}), Ht = (e) => ({});
|
|
4335
|
+
function Ji(e) {
|
|
4281
4336
|
let t, r;
|
|
4282
4337
|
return {
|
|
4283
4338
|
c() {
|
|
4284
|
-
t =
|
|
4339
|
+
t = rt("svg"), r = rt("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");
|
|
4285
4340
|
},
|
|
4286
4341
|
m(n, i) {
|
|
4287
4342
|
se(n, t, i), B(t, r);
|
|
4288
4343
|
},
|
|
4289
|
-
p:
|
|
4344
|
+
p: N,
|
|
4290
4345
|
d(n) {
|
|
4291
4346
|
n && J(t);
|
|
4292
4347
|
}
|
|
4293
4348
|
};
|
|
4294
4349
|
}
|
|
4295
|
-
function
|
|
4350
|
+
function Bt(e) {
|
|
4296
4351
|
let t, r, n;
|
|
4297
4352
|
return {
|
|
4298
4353
|
c() {
|
|
4299
|
-
t =
|
|
4354
|
+
t = M("div"), r = M("h2"), n = re(
|
|
4300
4355
|
/*modaltitle*/
|
|
4301
4356
|
e[1]
|
|
4302
4357
|
), H(t, "class", "GeneralConfirmationTitle");
|
|
@@ -4317,17 +4372,17 @@ function wt(e) {
|
|
|
4317
4372
|
}
|
|
4318
4373
|
};
|
|
4319
4374
|
}
|
|
4320
|
-
function
|
|
4375
|
+
function At(e) {
|
|
4321
4376
|
let t, r = (
|
|
4322
4377
|
/*$_*/
|
|
4323
4378
|
e[4]("cancel") + ""
|
|
4324
4379
|
), n, i, o;
|
|
4325
4380
|
return {
|
|
4326
4381
|
c() {
|
|
4327
|
-
t =
|
|
4382
|
+
t = M("button"), n = re(r), H(t, "class", "GeneralCancelButton");
|
|
4328
4383
|
},
|
|
4329
4384
|
m(s, a) {
|
|
4330
|
-
se(s, t, a), B(t, n), i || (o =
|
|
4385
|
+
se(s, t, a), B(t, n), i || (o = Ie(
|
|
4331
4386
|
t,
|
|
4332
4387
|
"click",
|
|
4333
4388
|
/*click_handler*/
|
|
@@ -4344,7 +4399,7 @@ function Tt(e) {
|
|
|
4344
4399
|
}
|
|
4345
4400
|
};
|
|
4346
4401
|
}
|
|
4347
|
-
function
|
|
4402
|
+
function Yi(e) {
|
|
4348
4403
|
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4349
4404
|
/*$_*/
|
|
4350
4405
|
e[4]("confirm") + ""
|
|
@@ -4352,39 +4407,39 @@ function Zi(e) {
|
|
|
4352
4407
|
const I = (
|
|
4353
4408
|
/*#slots*/
|
|
4354
4409
|
e[16].close
|
|
4355
|
-
), C =
|
|
4410
|
+
), C = gr(
|
|
4356
4411
|
I,
|
|
4357
4412
|
e,
|
|
4358
4413
|
/*$$scope*/
|
|
4359
4414
|
e[15],
|
|
4360
|
-
|
|
4361
|
-
), T = C ||
|
|
4415
|
+
Ht
|
|
4416
|
+
), T = C || Ji();
|
|
4362
4417
|
let _ = (
|
|
4363
4418
|
/*modaltitle*/
|
|
4364
|
-
e[1] &&
|
|
4419
|
+
e[1] && Bt(e)
|
|
4365
4420
|
), E = (
|
|
4366
4421
|
/*hascancelbutton*/
|
|
4367
|
-
e[2] &&
|
|
4422
|
+
e[2] && At(e)
|
|
4368
4423
|
);
|
|
4369
4424
|
return {
|
|
4370
4425
|
c() {
|
|
4371
|
-
t =
|
|
4426
|
+
t = M("div"), r = M("div"), n = M("span"), T && T.c(), i = ue(), _ && _.c(), o = ue(), s = M("div"), a = re(
|
|
4372
4427
|
/*modaltext*/
|
|
4373
4428
|
e[0]
|
|
4374
|
-
), l = ue(), u =
|
|
4429
|
+
), l = ue(), u = M("div"), E && E.c(), h = ue(), c = M("button"), m = re(f), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(c, "class", "GeneralConfirmButton"), H(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4375
4430
|
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4376
4431
|
(e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4377
4432
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4378
4433
|
},
|
|
4379
4434
|
m(x, P) {
|
|
4380
4435
|
se(x, t, P), B(t, r), B(r, n), T && T.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), B(s, a), B(r, l), B(r, u), E && E.m(u, null), B(u, h), B(u, c), B(c, m), e[19](t), d = !0, p || (w = [
|
|
4381
|
-
|
|
4436
|
+
Ie(
|
|
4382
4437
|
n,
|
|
4383
4438
|
"click",
|
|
4384
4439
|
/*close*/
|
|
4385
4440
|
e[6]
|
|
4386
4441
|
),
|
|
4387
|
-
|
|
4442
|
+
Ie(
|
|
4388
4443
|
c,
|
|
4389
4444
|
"click",
|
|
4390
4445
|
/*click_handler_1*/
|
|
@@ -4394,73 +4449,73 @@ function Zi(e) {
|
|
|
4394
4449
|
},
|
|
4395
4450
|
p(x, [P]) {
|
|
4396
4451
|
C && C.p && (!d || P & /*$$scope*/
|
|
4397
|
-
32768) &&
|
|
4452
|
+
32768) && yr(
|
|
4398
4453
|
C,
|
|
4399
4454
|
I,
|
|
4400
4455
|
x,
|
|
4401
4456
|
/*$$scope*/
|
|
4402
4457
|
x[15],
|
|
4403
|
-
d ?
|
|
4458
|
+
d ? vr(
|
|
4404
4459
|
I,
|
|
4405
4460
|
/*$$scope*/
|
|
4406
4461
|
x[15],
|
|
4407
4462
|
P,
|
|
4408
|
-
|
|
4409
|
-
) :
|
|
4463
|
+
Qi
|
|
4464
|
+
) : xr(
|
|
4410
4465
|
/*$$scope*/
|
|
4411
4466
|
x[15]
|
|
4412
4467
|
),
|
|
4413
|
-
|
|
4468
|
+
Ht
|
|
4414
4469
|
), /*modaltitle*/
|
|
4415
|
-
x[1] ? _ ? _.p(x, P) : (_ =
|
|
4470
|
+
x[1] ? _ ? _.p(x, P) : (_ = Bt(x), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!d || P & /*modaltext*/
|
|
4416
4471
|
1) && be(
|
|
4417
4472
|
a,
|
|
4418
4473
|
/*modaltext*/
|
|
4419
4474
|
x[0]
|
|
4420
4475
|
), /*hascancelbutton*/
|
|
4421
|
-
x[2] ? E ? E.p(x, P) : (E =
|
|
4476
|
+
x[2] ? E ? E.p(x, P) : (E = At(x), E.c(), E.m(u, h)) : E && (E.d(1), E = null), (!d || P & /*$_*/
|
|
4422
4477
|
16) && f !== (f = /*$_*/
|
|
4423
4478
|
x[4]("confirm") + "") && be(m, f);
|
|
4424
4479
|
},
|
|
4425
4480
|
i(x) {
|
|
4426
|
-
d || (
|
|
4481
|
+
d || (Mt(T, x), d = !0);
|
|
4427
4482
|
},
|
|
4428
4483
|
o(x) {
|
|
4429
|
-
|
|
4484
|
+
Mr(T, x), d = !1;
|
|
4430
4485
|
},
|
|
4431
4486
|
d(x) {
|
|
4432
4487
|
x && J(t), T && T.d(x), _ && _.d(), E && E.d(), e[19](null), p = !1, Q(w);
|
|
4433
4488
|
}
|
|
4434
4489
|
};
|
|
4435
4490
|
}
|
|
4436
|
-
function
|
|
4491
|
+
function qi(e, t, r) {
|
|
4437
4492
|
let n;
|
|
4438
|
-
|
|
4439
|
-
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: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, w, I = window.navigator.userAgent, C =
|
|
4493
|
+
br(e, ji, (g) => r(4, n = g));
|
|
4494
|
+
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: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, w, I = window.navigator.userAgent, C = ki(I) !== "PC";
|
|
4440
4495
|
const T = () => {
|
|
4441
4496
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4442
4497
|
}, _ = (g) => {
|
|
4443
4498
|
g === "confirm" && u && window.postMessage(u, window.location.href), g === "cancel" && h && window.postMessage(h, window.location.href), T();
|
|
4444
4499
|
}, E = () => {
|
|
4445
4500
|
fetch(d).then((U) => U.json()).then((U) => {
|
|
4446
|
-
Object.keys(U).forEach((
|
|
4447
|
-
|
|
4501
|
+
Object.keys(U).forEach((et) => {
|
|
4502
|
+
wt(et, U[et]);
|
|
4448
4503
|
});
|
|
4449
4504
|
}).catch((U) => {
|
|
4450
4505
|
console.log(U);
|
|
4451
4506
|
});
|
|
4452
4507
|
};
|
|
4453
|
-
Object.keys(
|
|
4454
|
-
|
|
4508
|
+
Object.keys(Tt).forEach((g) => {
|
|
4509
|
+
wt(g, Tt[g]);
|
|
4455
4510
|
});
|
|
4456
4511
|
const x = () => {
|
|
4457
|
-
|
|
4512
|
+
Vi(c);
|
|
4458
4513
|
};
|
|
4459
|
-
|
|
4514
|
+
Br(() => () => {
|
|
4460
4515
|
});
|
|
4461
|
-
const P = () => _("cancel"),
|
|
4462
|
-
function
|
|
4463
|
-
|
|
4516
|
+
const P = () => _("cancel"), fr = () => _("confirm");
|
|
4517
|
+
function mr(g) {
|
|
4518
|
+
Me[g ? "unshift" : "push"](() => {
|
|
4464
4519
|
w = g, r(3, w);
|
|
4465
4520
|
});
|
|
4466
4521
|
}
|
|
@@ -4469,9 +4524,9 @@ function Qi(e, t, r) {
|
|
|
4469
4524
|
}, e.$$.update = () => {
|
|
4470
4525
|
e.$$.dirty & /*modaltext, lang*/
|
|
4471
4526
|
1025 && s && c && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4472
|
-
2056 && f && w &&
|
|
4473
|
-
4104 && m && w &&
|
|
4474
|
-
16392 && p && w &&
|
|
4527
|
+
2056 && f && w && Xi(w, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4528
|
+
4104 && m && w && zi(w, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4529
|
+
16392 && p && w && Wi(w, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4475
4530
|
8192 && d && E();
|
|
4476
4531
|
}, [
|
|
4477
4532
|
s,
|
|
@@ -4492,18 +4547,18 @@ function Qi(e, t, r) {
|
|
|
4492
4547
|
o,
|
|
4493
4548
|
i,
|
|
4494
4549
|
P,
|
|
4495
|
-
|
|
4496
|
-
|
|
4550
|
+
fr,
|
|
4551
|
+
mr
|
|
4497
4552
|
];
|
|
4498
4553
|
}
|
|
4499
|
-
class
|
|
4554
|
+
class Ki extends Ur {
|
|
4500
4555
|
constructor(t) {
|
|
4501
|
-
super(),
|
|
4556
|
+
super(), $r(
|
|
4502
4557
|
this,
|
|
4503
4558
|
t,
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4559
|
+
qi,
|
|
4560
|
+
Yi,
|
|
4561
|
+
Pt,
|
|
4507
4562
|
{
|
|
4508
4563
|
modaltext: 0,
|
|
4509
4564
|
modaltitle: 1,
|
|
@@ -4516,7 +4571,7 @@ class Ji extends Lr {
|
|
|
4516
4571
|
translationurl: 13,
|
|
4517
4572
|
mbsource: 14
|
|
4518
4573
|
},
|
|
4519
|
-
|
|
4574
|
+
Zi
|
|
4520
4575
|
);
|
|
4521
4576
|
}
|
|
4522
4577
|
get modaltext() {
|
|
@@ -4580,7 +4635,7 @@ class Ji extends Lr {
|
|
|
4580
4635
|
this.$$set({ mbsource: t }), O();
|
|
4581
4636
|
}
|
|
4582
4637
|
}
|
|
4583
|
-
|
|
4638
|
+
Gr(Ki, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4584
4639
|
export {
|
|
4585
|
-
|
|
4640
|
+
Ki as P
|
|
4586
4641
|
};
|