@everymatrix/player-account-general-confirmation-modal 1.54.6 → 1.54.9
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-G3MeMs_x.js → PlayerAccountGeneralConfirmationModal-5nUAoFX3.js} +574 -582
- package/components/PlayerAccountGeneralConfirmationModal-Bgjx90Vs.cjs +5 -0
- package/components/PlayerAccountGeneralConfirmationModal-BrkQoxbl.js +4594 -0
- package/es2015/player-account-general-confirmation-modal.cjs +1 -0
- package/es2015/player-account-general-confirmation-modal.js +21 -0
- package/esnext/player-account-general-confirmation-modal.js +1 -1
- package/package.json +1 -1
|
@@ -7,25 +7,25 @@ function cr(e, t) {
|
|
|
7
7
|
e
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Ht(e) {
|
|
11
11
|
return e();
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function qe() {
|
|
14
14
|
return /* @__PURE__ */ Object.create(null);
|
|
15
15
|
}
|
|
16
16
|
function J(e) {
|
|
17
|
-
e.forEach(
|
|
17
|
+
e.forEach(Ht);
|
|
18
18
|
}
|
|
19
19
|
function Ze(e) {
|
|
20
20
|
return typeof e == "function";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Bt(e, t) {
|
|
23
23
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function fr(e) {
|
|
26
26
|
return Object.keys(e).length === 0;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function At(e, ...t) {
|
|
29
29
|
if (e == null) {
|
|
30
30
|
for (const n of t)
|
|
31
31
|
n(void 0);
|
|
@@ -35,18 +35,18 @@ function Ct(e, ...t) {
|
|
|
35
35
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
36
36
|
}
|
|
37
37
|
function mr(e, t, r) {
|
|
38
|
-
e.$$.on_destroy.push(
|
|
38
|
+
e.$$.on_destroy.push(At(t, r));
|
|
39
39
|
}
|
|
40
40
|
function pr(e, t, r, n) {
|
|
41
41
|
if (e) {
|
|
42
|
-
const i =
|
|
42
|
+
const i = Ct(e, t, r, n);
|
|
43
43
|
return e[0](i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ct(e, t, r, n) {
|
|
47
47
|
return e[1] && n ? cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function dr(e, t, r, n) {
|
|
50
50
|
if (e[2] && n) {
|
|
51
51
|
const i = e[2](n(r));
|
|
52
52
|
if (t.dirty === void 0)
|
|
@@ -61,13 +61,13 @@ function br(e, t, r, n) {
|
|
|
61
61
|
}
|
|
62
62
|
return t.dirty;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function br(e, t, r, n, i, o) {
|
|
65
65
|
if (i) {
|
|
66
|
-
const s =
|
|
66
|
+
const s = Ct(t, r, n, o);
|
|
67
67
|
e.p(s, i);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function gr(e) {
|
|
71
71
|
if (e.ctx.length > 32) {
|
|
72
72
|
const t = [], r = e.ctx.length / 32;
|
|
73
73
|
for (let n = 0; n < r; n++)
|
|
@@ -80,13 +80,13 @@ function H(e, t) {
|
|
|
80
80
|
e.appendChild(t);
|
|
81
81
|
}
|
|
82
82
|
function vr(e, t, r) {
|
|
83
|
-
const n =
|
|
83
|
+
const n = yr(e);
|
|
84
84
|
if (!n.getElementById(t)) {
|
|
85
85
|
const i = N("style");
|
|
86
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
i.id = t, i.textContent = r, xr(n, i);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function yr(e) {
|
|
90
90
|
if (!e) return document;
|
|
91
91
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
92
92
|
return t && /** @type {ShadowRoot} */
|
|
@@ -95,7 +95,7 @@ function xr(e) {
|
|
|
95
95
|
t
|
|
96
96
|
) : e.ownerDocument;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function xr(e, t) {
|
|
99
99
|
return H(
|
|
100
100
|
/** @type {Document} */
|
|
101
101
|
e.head || e,
|
|
@@ -111,7 +111,7 @@ function Y(e) {
|
|
|
111
111
|
function N(e) {
|
|
112
112
|
return document.createElement(e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ke(e) {
|
|
115
115
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
116
116
|
}
|
|
117
117
|
function ne(e) {
|
|
@@ -126,14 +126,14 @@ function Oe(e, t, r, n) {
|
|
|
126
126
|
function w(e, t, r) {
|
|
127
127
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function _r(e) {
|
|
130
130
|
return Array.from(e.childNodes);
|
|
131
131
|
}
|
|
132
132
|
function be(e, t) {
|
|
133
133
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
134
134
|
t);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Er(e) {
|
|
137
137
|
const t = {};
|
|
138
138
|
return e.childNodes.forEach(
|
|
139
139
|
/** @param {Element} node */
|
|
@@ -148,10 +148,10 @@ function re(e) {
|
|
|
148
148
|
}
|
|
149
149
|
const k = [], Ie = [];
|
|
150
150
|
let V = [];
|
|
151
|
-
const
|
|
151
|
+
const et = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
152
152
|
let Ne = !1;
|
|
153
|
-
function
|
|
154
|
-
Ne || (Ne = !0,
|
|
153
|
+
function Tr() {
|
|
154
|
+
Ne || (Ne = !0, Sr.then(I));
|
|
155
155
|
}
|
|
156
156
|
function Me(e) {
|
|
157
157
|
V.push(e);
|
|
@@ -166,7 +166,7 @@ function I() {
|
|
|
166
166
|
try {
|
|
167
167
|
for (; F < k.length; ) {
|
|
168
168
|
const t = k[F];
|
|
169
|
-
F++, re(t),
|
|
169
|
+
F++, re(t), wr(t.$$);
|
|
170
170
|
}
|
|
171
171
|
} catch (t) {
|
|
172
172
|
throw k.length = 0, F = 0, t;
|
|
@@ -178,49 +178,49 @@ function I() {
|
|
|
178
178
|
}
|
|
179
179
|
V.length = 0;
|
|
180
180
|
} while (k.length);
|
|
181
|
-
for (;
|
|
182
|
-
|
|
181
|
+
for (; et.length; )
|
|
182
|
+
et.pop()();
|
|
183
183
|
Ne = !1, Te.clear(), re(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function wr(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
187
|
e.update(), J(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
189
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Hr(e) {
|
|
193
193
|
const t = [], r = [];
|
|
194
194
|
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
let
|
|
198
|
-
function
|
|
199
|
-
e && e.i && (
|
|
196
|
+
const ce = /* @__PURE__ */ new Set();
|
|
197
|
+
let Br;
|
|
198
|
+
function Pt(e, t) {
|
|
199
|
+
e && e.i && (ce.delete(e), e.i(t));
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
if (e.o) {
|
|
203
|
-
if (
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
function Ar(e, t, r, n) {
|
|
202
|
+
if (e && e.o) {
|
|
203
|
+
if (ce.has(e)) return;
|
|
204
|
+
ce.add(e), Br.c.push(() => {
|
|
205
|
+
ce.delete(e);
|
|
206
206
|
}), e.o(t);
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Cr(e, t, r) {
|
|
210
210
|
const { fragment: n, after_update: i } = e.$$;
|
|
211
211
|
n && n.m(t, r), Me(() => {
|
|
212
|
-
const o = e.$$.on_mount.map(
|
|
212
|
+
const o = e.$$.on_mount.map(Ht).filter(Ze);
|
|
213
213
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
214
214
|
}), i.forEach(Me);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Pr(e, t) {
|
|
217
217
|
const r = e.$$;
|
|
218
|
-
r.fragment !== null && (
|
|
218
|
+
r.fragment !== null && (Hr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
e.$$.dirty[0] === -1 && (k.push(e),
|
|
220
|
+
function Or(e, t) {
|
|
221
|
+
e.$$.dirty[0] === -1 && (k.push(e), Tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
224
224
|
const l = Qe;
|
|
225
225
|
re(e);
|
|
226
226
|
const u = e.$$ = {
|
|
@@ -230,7 +230,7 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
230
230
|
props: o,
|
|
231
231
|
update: M,
|
|
232
232
|
not_equal: i,
|
|
233
|
-
bound:
|
|
233
|
+
bound: qe(),
|
|
234
234
|
// lifecycle
|
|
235
235
|
on_mount: [],
|
|
236
236
|
on_destroy: [],
|
|
@@ -239,28 +239,28 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
239
239
|
after_update: [],
|
|
240
240
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
241
241
|
// everything else
|
|
242
|
-
callbacks:
|
|
242
|
+
callbacks: qe(),
|
|
243
243
|
dirty: a,
|
|
244
244
|
skip_bound: !1,
|
|
245
245
|
root: t.target || l.$$.root
|
|
246
246
|
};
|
|
247
247
|
s && s(u.root);
|
|
248
248
|
let h = !1;
|
|
249
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
250
|
-
const
|
|
251
|
-
return u.ctx && i(u.ctx[
|
|
252
|
-
}), u.update(), h = !0, J(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
249
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
250
|
+
const d = m.length ? m[0] : f;
|
|
251
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Or(e, c)), f;
|
|
252
|
+
}) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
253
253
|
if (t.hydrate) {
|
|
254
|
-
const
|
|
255
|
-
u.fragment && u.fragment.l(
|
|
254
|
+
const c = _r(t.target);
|
|
255
|
+
u.fragment && u.fragment.l(c), c.forEach(Y);
|
|
256
256
|
} else
|
|
257
257
|
u.fragment && u.fragment.c();
|
|
258
|
-
t.intro &&
|
|
258
|
+
t.intro && Pt(e.$$.fragment), Cr(e, t.target, t.anchor), I();
|
|
259
259
|
}
|
|
260
260
|
re(l);
|
|
261
261
|
}
|
|
262
|
-
let
|
|
263
|
-
typeof HTMLElement == "function" && (
|
|
262
|
+
let Ot;
|
|
263
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
264
264
|
/** The Svelte component constructor */
|
|
265
265
|
$$ctor;
|
|
266
266
|
/** Slots */
|
|
@@ -319,12 +319,12 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
319
319
|
};
|
|
320
320
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
321
321
|
return;
|
|
322
|
-
const t = {}, r =
|
|
322
|
+
const t = {}, r = Er(this);
|
|
323
323
|
for (const i of this.$$s)
|
|
324
324
|
i in r && (t[i] = [e(i)]);
|
|
325
325
|
for (const i of this.attributes) {
|
|
326
326
|
const o = this.$$g_p(i.name);
|
|
327
|
-
o in this.$$d || (this.$$d[o] =
|
|
327
|
+
o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
|
|
328
328
|
}
|
|
329
329
|
for (const i in this.$$p_d)
|
|
330
330
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
342
342
|
this.$$r = !0;
|
|
343
343
|
for (const i in this.$$p_d)
|
|
344
344
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
345
|
-
const o =
|
|
345
|
+
const o = fe(
|
|
346
346
|
i,
|
|
347
347
|
this.$$d[i],
|
|
348
348
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
364
364
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
365
365
|
// and setting attributes through setAttribute etc, this is helpful
|
|
366
366
|
attributeChangedCallback(e, t, r) {
|
|
367
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
367
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
377
377
|
) || e;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function fe(e, t, r, n) {
|
|
381
381
|
const i = r[e]?.type;
|
|
382
382
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
383
383
|
return t;
|
|
@@ -406,8 +406,8 @@ function ce(e, t, r, n) {
|
|
|
406
406
|
return t;
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
let s = class extends
|
|
409
|
+
function Nr(e, t, r, n, i, o) {
|
|
410
|
+
let s = class extends Ot {
|
|
411
411
|
constructor() {
|
|
412
412
|
super(e, r, i), this.$$p_d = t;
|
|
413
413
|
}
|
|
@@ -423,7 +423,7 @@ function Mr(e, t, r, n, i, o) {
|
|
|
423
423
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
424
424
|
},
|
|
425
425
|
set(l) {
|
|
426
|
-
l =
|
|
426
|
+
l = fe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}), n.forEach((a) => {
|
|
@@ -435,7 +435,7 @@ function Mr(e, t, r, n, i, o) {
|
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
436
|
s, s;
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class Mr {
|
|
439
439
|
/**
|
|
440
440
|
* ### PRIVATE API
|
|
441
441
|
*
|
|
@@ -454,7 +454,7 @@ class Lr {
|
|
|
454
454
|
$$set = void 0;
|
|
455
455
|
/** @returns {void} */
|
|
456
456
|
$destroy() {
|
|
457
|
-
|
|
457
|
+
Pr(this, 1), this.$destroy = M;
|
|
458
458
|
}
|
|
459
459
|
/**
|
|
460
460
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -476,11 +476,11 @@ class Lr {
|
|
|
476
476
|
* @returns {void}
|
|
477
477
|
*/
|
|
478
478
|
$set(t) {
|
|
479
|
-
this.$$set && !
|
|
479
|
+
this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
const
|
|
483
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
482
|
+
const Lr = "4";
|
|
483
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
484
484
|
var Le = function(e, t) {
|
|
485
485
|
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
486
486
|
r.__proto__ = n;
|
|
@@ -497,16 +497,16 @@ function $(e, t) {
|
|
|
497
497
|
}
|
|
498
498
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
499
499
|
}
|
|
500
|
-
var
|
|
501
|
-
return
|
|
500
|
+
var y = function() {
|
|
501
|
+
return y = Object.assign || function(t) {
|
|
502
502
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
503
503
|
r = arguments[n];
|
|
504
504
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
505
505
|
}
|
|
506
506
|
return t;
|
|
507
|
-
},
|
|
507
|
+
}, y.apply(this, arguments);
|
|
508
508
|
};
|
|
509
|
-
function
|
|
509
|
+
function Rr(e, t) {
|
|
510
510
|
var r = {};
|
|
511
511
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
512
512
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -549,13 +549,13 @@ function X(e, t, r) {
|
|
|
549
549
|
function R(e) {
|
|
550
550
|
return typeof e == "function";
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function It(e) {
|
|
553
553
|
var t = function(n) {
|
|
554
554
|
Error.call(n), n.stack = new Error().stack;
|
|
555
555
|
}, r = e(t);
|
|
556
556
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
557
557
|
}
|
|
558
|
-
var we =
|
|
558
|
+
var we = It(function(e) {
|
|
559
559
|
return function(r) {
|
|
560
560
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
561
561
|
` + r.map(function(n, i) {
|
|
@@ -570,7 +570,7 @@ function Ge(e, t) {
|
|
|
570
570
|
0 <= r && e.splice(r, 1);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
var
|
|
573
|
+
var ye = function() {
|
|
574
574
|
function e(t) {
|
|
575
575
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
576
576
|
}
|
|
@@ -586,8 +586,8 @@ var ve = function() {
|
|
|
586
586
|
var u = l.value;
|
|
587
587
|
u.remove(this);
|
|
588
588
|
}
|
|
589
|
-
} catch (
|
|
590
|
-
t = { error:
|
|
589
|
+
} catch (p) {
|
|
590
|
+
t = { error: p };
|
|
591
591
|
} finally {
|
|
592
592
|
try {
|
|
593
593
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -601,26 +601,26 @@ var ve = function() {
|
|
|
601
601
|
if (R(h))
|
|
602
602
|
try {
|
|
603
603
|
h();
|
|
604
|
-
} catch (
|
|
605
|
-
o =
|
|
604
|
+
} catch (p) {
|
|
605
|
+
o = p instanceof we ? p.errors : [p];
|
|
606
606
|
}
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
607
|
+
var c = this._finalizers;
|
|
608
|
+
if (c) {
|
|
609
609
|
this._finalizers = null;
|
|
610
610
|
try {
|
|
611
|
-
for (var
|
|
612
|
-
var
|
|
611
|
+
for (var f = Re(c), m = f.next(); !m.done; m = f.next()) {
|
|
612
|
+
var d = m.value;
|
|
613
613
|
try {
|
|
614
|
-
|
|
615
|
-
} catch (
|
|
616
|
-
o = o ?? [],
|
|
614
|
+
tt(d);
|
|
615
|
+
} catch (p) {
|
|
616
|
+
o = o ?? [], p instanceof we ? o = X(X([], $e(o)), $e(p.errors)) : o.push(p);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
} catch (
|
|
620
|
-
n = { error:
|
|
619
|
+
} catch (p) {
|
|
620
|
+
n = { error: p };
|
|
621
621
|
} finally {
|
|
622
622
|
try {
|
|
623
|
-
|
|
623
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
624
624
|
} finally {
|
|
625
625
|
if (n) throw n.error;
|
|
626
626
|
}
|
|
@@ -633,7 +633,7 @@ var ve = function() {
|
|
|
633
633
|
var r;
|
|
634
634
|
if (t && t !== this)
|
|
635
635
|
if (this.closed)
|
|
636
|
-
|
|
636
|
+
tt(t);
|
|
637
637
|
else {
|
|
638
638
|
if (t instanceof e) {
|
|
639
639
|
if (t.closed || t._hasParent(this))
|
|
@@ -658,20 +658,16 @@ var ve = function() {
|
|
|
658
658
|
var t = new e();
|
|
659
659
|
return t.closed = !0, t;
|
|
660
660
|
}(), e;
|
|
661
|
-
}(),
|
|
662
|
-
function
|
|
663
|
-
return e instanceof
|
|
661
|
+
}(), Nt = ye.EMPTY;
|
|
662
|
+
function Mt(e) {
|
|
663
|
+
return e instanceof ye || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function tt(e) {
|
|
666
666
|
R(e) ? e() : e.unsubscribe();
|
|
667
667
|
}
|
|
668
|
-
var
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
Promise: void 0,
|
|
672
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
673
|
-
useDeprecatedNextContext: !1
|
|
674
|
-
}, Ur = {
|
|
668
|
+
var $r = {
|
|
669
|
+
Promise: void 0
|
|
670
|
+
}, Gr = {
|
|
675
671
|
setTimeout: function(e, t) {
|
|
676
672
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
677
673
|
r[n - 2] = arguments[n];
|
|
@@ -682,21 +678,21 @@ var Gr = {
|
|
|
682
678
|
},
|
|
683
679
|
delegate: void 0
|
|
684
680
|
};
|
|
685
|
-
function
|
|
686
|
-
|
|
681
|
+
function Ur(e) {
|
|
682
|
+
Gr.setTimeout(function() {
|
|
687
683
|
throw e;
|
|
688
684
|
});
|
|
689
685
|
}
|
|
690
|
-
function
|
|
686
|
+
function rt() {
|
|
691
687
|
}
|
|
692
|
-
function
|
|
688
|
+
function me(e) {
|
|
693
689
|
e();
|
|
694
690
|
}
|
|
695
|
-
var
|
|
691
|
+
var Lt = function(e) {
|
|
696
692
|
$(t, e);
|
|
697
693
|
function t(r) {
|
|
698
694
|
var n = e.call(this) || this;
|
|
699
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
695
|
+
return n.isStopped = !1, r ? (n.destination = r, Mt(r) && r.add(n)) : n.destination = jr, n;
|
|
700
696
|
}
|
|
701
697
|
return t.create = function(r, n, i) {
|
|
702
698
|
return new Ue(r, n, i);
|
|
@@ -723,7 +719,7 @@ var Rt = function(e) {
|
|
|
723
719
|
this.unsubscribe();
|
|
724
720
|
}
|
|
725
721
|
}, t;
|
|
726
|
-
}(
|
|
722
|
+
}(ye), Dr = function() {
|
|
727
723
|
function e(t) {
|
|
728
724
|
this.partialObserver = t;
|
|
729
725
|
}
|
|
@@ -762,35 +758,35 @@ var Rt = function(e) {
|
|
|
762
758
|
next: r ?? void 0,
|
|
763
759
|
error: n ?? void 0,
|
|
764
760
|
complete: i ?? void 0
|
|
765
|
-
} : s = r, o.destination = new
|
|
761
|
+
} : s = r, o.destination = new Dr(s), o;
|
|
766
762
|
}
|
|
767
763
|
return t;
|
|
768
|
-
}(
|
|
764
|
+
}(Lt);
|
|
769
765
|
function le(e) {
|
|
770
|
-
|
|
766
|
+
Ur(e);
|
|
771
767
|
}
|
|
772
|
-
function
|
|
768
|
+
function Fr(e) {
|
|
773
769
|
throw e;
|
|
774
770
|
}
|
|
775
|
-
var
|
|
771
|
+
var jr = {
|
|
776
772
|
closed: !0,
|
|
777
|
-
next:
|
|
778
|
-
error:
|
|
779
|
-
complete:
|
|
780
|
-
},
|
|
773
|
+
next: rt,
|
|
774
|
+
error: Fr,
|
|
775
|
+
complete: rt
|
|
776
|
+
}, kr = function() {
|
|
781
777
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
782
778
|
}();
|
|
783
|
-
function
|
|
779
|
+
function Vr(e) {
|
|
784
780
|
return e;
|
|
785
781
|
}
|
|
786
|
-
function
|
|
787
|
-
return e.length === 0 ?
|
|
782
|
+
function Xr(e) {
|
|
783
|
+
return e.length === 0 ? Vr : e.length === 1 ? e[0] : function(r) {
|
|
788
784
|
return e.reduce(function(n, i) {
|
|
789
785
|
return i(n);
|
|
790
786
|
}, r);
|
|
791
787
|
};
|
|
792
788
|
}
|
|
793
|
-
var
|
|
789
|
+
var nt = function() {
|
|
794
790
|
function e(t) {
|
|
795
791
|
t && (this._subscribe = t);
|
|
796
792
|
}
|
|
@@ -798,8 +794,8 @@ var it = function() {
|
|
|
798
794
|
var r = new e();
|
|
799
795
|
return r.source = this, r.operator = t, r;
|
|
800
796
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
801
|
-
var i = this, o =
|
|
802
|
-
return
|
|
797
|
+
var i = this, o = zr(t) ? t : new Ue(t, r, n);
|
|
798
|
+
return me(function() {
|
|
803
799
|
var s = i, a = s.operator, l = s.source;
|
|
804
800
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
805
801
|
}), o;
|
|
@@ -811,7 +807,7 @@ var it = function() {
|
|
|
811
807
|
}
|
|
812
808
|
}, e.prototype.forEach = function(t, r) {
|
|
813
809
|
var n = this;
|
|
814
|
-
return r =
|
|
810
|
+
return r = it(r), new r(function(i, o) {
|
|
815
811
|
var s = new Ue({
|
|
816
812
|
next: function(a) {
|
|
817
813
|
try {
|
|
@@ -828,15 +824,15 @@ var it = function() {
|
|
|
828
824
|
}, e.prototype._subscribe = function(t) {
|
|
829
825
|
var r;
|
|
830
826
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
831
|
-
}, e.prototype[
|
|
827
|
+
}, e.prototype[kr] = function() {
|
|
832
828
|
return this;
|
|
833
829
|
}, e.prototype.pipe = function() {
|
|
834
830
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
835
831
|
t[r] = arguments[r];
|
|
836
|
-
return
|
|
832
|
+
return Xr(t)(this);
|
|
837
833
|
}, e.prototype.toPromise = function(t) {
|
|
838
834
|
var r = this;
|
|
839
|
-
return t =
|
|
835
|
+
return t = it(t), new t(function(n, i) {
|
|
840
836
|
var o;
|
|
841
837
|
r.subscribe(function(s) {
|
|
842
838
|
return o = s;
|
|
@@ -850,35 +846,35 @@ var it = function() {
|
|
|
850
846
|
return new e(t);
|
|
851
847
|
}, e;
|
|
852
848
|
}();
|
|
853
|
-
function
|
|
849
|
+
function it(e) {
|
|
854
850
|
var t;
|
|
855
|
-
return (t = e ??
|
|
851
|
+
return (t = e ?? $r.Promise) !== null && t !== void 0 ? t : Promise;
|
|
856
852
|
}
|
|
857
|
-
function
|
|
853
|
+
function Wr(e) {
|
|
858
854
|
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
859
855
|
}
|
|
860
|
-
function
|
|
861
|
-
return e && e instanceof
|
|
856
|
+
function zr(e) {
|
|
857
|
+
return e && e instanceof Lt || Wr(e) && Mt(e);
|
|
862
858
|
}
|
|
863
|
-
var
|
|
859
|
+
var Zr = It(function(e) {
|
|
864
860
|
return function() {
|
|
865
861
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
866
862
|
};
|
|
867
|
-
}),
|
|
863
|
+
}), Rt = function(e) {
|
|
868
864
|
$(t, e);
|
|
869
865
|
function t() {
|
|
870
866
|
var r = e.call(this) || this;
|
|
871
867
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
872
868
|
}
|
|
873
869
|
return t.prototype.lift = function(r) {
|
|
874
|
-
var n = new
|
|
870
|
+
var n = new ot(this, this);
|
|
875
871
|
return n.operator = r, n;
|
|
876
872
|
}, t.prototype._throwIfClosed = function() {
|
|
877
873
|
if (this.closed)
|
|
878
|
-
throw new
|
|
874
|
+
throw new Zr();
|
|
879
875
|
}, t.prototype.next = function(r) {
|
|
880
876
|
var n = this;
|
|
881
|
-
|
|
877
|
+
me(function() {
|
|
882
878
|
var i, o;
|
|
883
879
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
884
880
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
@@ -900,7 +896,7 @@ var Qr = Nt(function(e) {
|
|
|
900
896
|
});
|
|
901
897
|
}, t.prototype.error = function(r) {
|
|
902
898
|
var n = this;
|
|
903
|
-
|
|
899
|
+
me(function() {
|
|
904
900
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
905
901
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
906
902
|
for (var i = n.observers; i.length; )
|
|
@@ -909,7 +905,7 @@ var Qr = Nt(function(e) {
|
|
|
909
905
|
});
|
|
910
906
|
}, t.prototype.complete = function() {
|
|
911
907
|
var r = this;
|
|
912
|
-
|
|
908
|
+
me(function() {
|
|
913
909
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
914
910
|
r.isStopped = !0;
|
|
915
911
|
for (var n = r.observers; n.length; )
|
|
@@ -931,19 +927,19 @@ var Qr = Nt(function(e) {
|
|
|
931
927
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
932
928
|
}, t.prototype._innerSubscribe = function(r) {
|
|
933
929
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
934
|
-
return o || s ?
|
|
930
|
+
return o || s ? Nt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
935
931
|
n.currentObservers = null, Ge(a, r);
|
|
936
932
|
}));
|
|
937
933
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
938
934
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
939
935
|
i ? r.error(o) : s && r.complete();
|
|
940
936
|
}, t.prototype.asObservable = function() {
|
|
941
|
-
var r = new
|
|
937
|
+
var r = new nt();
|
|
942
938
|
return r.source = this, r;
|
|
943
939
|
}, t.create = function(r, n) {
|
|
944
|
-
return new
|
|
940
|
+
return new ot(r, n);
|
|
945
941
|
}, t;
|
|
946
|
-
}(
|
|
942
|
+
}(nt), ot = function(e) {
|
|
947
943
|
$(t, e);
|
|
948
944
|
function t(r, n) {
|
|
949
945
|
var i = e.call(this) || this;
|
|
@@ -960,17 +956,17 @@ var Qr = Nt(function(e) {
|
|
|
960
956
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
961
957
|
}, t.prototype._subscribe = function(r) {
|
|
962
958
|
var n, i;
|
|
963
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
959
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
|
|
964
960
|
}, t;
|
|
965
|
-
}(
|
|
961
|
+
}(Rt), $t = {
|
|
966
962
|
now: function() {
|
|
967
|
-
return (
|
|
963
|
+
return ($t.delegate || Date).now();
|
|
968
964
|
},
|
|
969
965
|
delegate: void 0
|
|
970
|
-
},
|
|
966
|
+
}, Qr = function(e) {
|
|
971
967
|
$(t, e);
|
|
972
968
|
function t(r, n, i) {
|
|
973
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
969
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
974
970
|
var o = e.call(this) || this;
|
|
975
971
|
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;
|
|
976
972
|
}
|
|
@@ -990,15 +986,15 @@ var Qr = Nt(function(e) {
|
|
|
990
986
|
u && o.splice(0, u + 1);
|
|
991
987
|
}
|
|
992
988
|
}, t;
|
|
993
|
-
}(
|
|
994
|
-
const
|
|
995
|
-
if (
|
|
996
|
-
const r = new
|
|
997
|
-
|
|
989
|
+
}(Rt);
|
|
990
|
+
const st = [], at = {}, Jr = (e, t = 0) => {
|
|
991
|
+
if (st.indexOf(e) == -1) {
|
|
992
|
+
const r = new Qr(t);
|
|
993
|
+
at[e] = r, st.push(e);
|
|
998
994
|
}
|
|
999
|
-
return
|
|
995
|
+
return at[e];
|
|
1000
996
|
}, j = [];
|
|
1001
|
-
function
|
|
997
|
+
function Yr(e, t) {
|
|
1002
998
|
return {
|
|
1003
999
|
subscribe: xe(e, t).subscribe
|
|
1004
1000
|
};
|
|
@@ -1007,7 +1003,7 @@ function xe(e, t = M) {
|
|
|
1007
1003
|
let r;
|
|
1008
1004
|
const n = /* @__PURE__ */ new Set();
|
|
1009
1005
|
function i(a) {
|
|
1010
|
-
if (
|
|
1006
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
1011
1007
|
const l = !j.length;
|
|
1012
1008
|
for (const u of n)
|
|
1013
1009
|
u[1](), j.push(u, e);
|
|
@@ -1034,94 +1030,94 @@ function q(e, t, r) {
|
|
|
1034
1030
|
if (!i.every(Boolean))
|
|
1035
1031
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1036
1032
|
const o = t.length < 2;
|
|
1037
|
-
return
|
|
1033
|
+
return Yr(r, (s, a) => {
|
|
1038
1034
|
let l = !1;
|
|
1039
1035
|
const u = [];
|
|
1040
|
-
let h = 0,
|
|
1041
|
-
const
|
|
1036
|
+
let h = 0, c = M;
|
|
1037
|
+
const f = () => {
|
|
1042
1038
|
if (h)
|
|
1043
1039
|
return;
|
|
1044
|
-
|
|
1045
|
-
const
|
|
1046
|
-
o ? s(
|
|
1047
|
-
},
|
|
1048
|
-
(
|
|
1049
|
-
|
|
1040
|
+
c();
|
|
1041
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1042
|
+
o ? s(d) : c = Ze(d) ? d : M;
|
|
1043
|
+
}, m = i.map(
|
|
1044
|
+
(d, p) => At(
|
|
1045
|
+
d,
|
|
1050
1046
|
(A) => {
|
|
1051
|
-
u[
|
|
1047
|
+
u[p] = A, h &= ~(1 << p), l && f();
|
|
1052
1048
|
},
|
|
1053
1049
|
() => {
|
|
1054
|
-
h |= 1 <<
|
|
1050
|
+
h |= 1 << p;
|
|
1055
1051
|
}
|
|
1056
1052
|
)
|
|
1057
1053
|
);
|
|
1058
|
-
return l = !0,
|
|
1059
|
-
J(
|
|
1054
|
+
return l = !0, f(), function() {
|
|
1055
|
+
J(m), c(), l = !1;
|
|
1060
1056
|
};
|
|
1061
1057
|
});
|
|
1062
1058
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1059
|
+
function qr(e) {
|
|
1060
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1065
1061
|
}
|
|
1066
|
-
var
|
|
1067
|
-
return
|
|
1062
|
+
var Kr = function(t) {
|
|
1063
|
+
return en(t) && !tn(t);
|
|
1068
1064
|
};
|
|
1069
|
-
function
|
|
1065
|
+
function en(e) {
|
|
1070
1066
|
return !!e && typeof e == "object";
|
|
1071
1067
|
}
|
|
1072
|
-
function
|
|
1068
|
+
function tn(e) {
|
|
1073
1069
|
var t = Object.prototype.toString.call(e);
|
|
1074
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1070
|
+
return t === "[object RegExp]" || t === "[object Date]" || on(e);
|
|
1075
1071
|
}
|
|
1076
|
-
var
|
|
1077
|
-
function
|
|
1078
|
-
return e.$$typeof ===
|
|
1072
|
+
var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.element") : 60103;
|
|
1073
|
+
function on(e) {
|
|
1074
|
+
return e.$$typeof === nn;
|
|
1079
1075
|
}
|
|
1080
|
-
function
|
|
1076
|
+
function sn(e) {
|
|
1081
1077
|
return Array.isArray(e) ? [] : {};
|
|
1082
1078
|
}
|
|
1083
1079
|
function ie(e, t) {
|
|
1084
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? W(
|
|
1080
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(sn(e), e, t) : e;
|
|
1085
1081
|
}
|
|
1086
|
-
function
|
|
1082
|
+
function an(e, t, r) {
|
|
1087
1083
|
return e.concat(t).map(function(n) {
|
|
1088
1084
|
return ie(n, r);
|
|
1089
1085
|
});
|
|
1090
1086
|
}
|
|
1091
|
-
function
|
|
1087
|
+
function un(e, t) {
|
|
1092
1088
|
if (!t.customMerge)
|
|
1093
1089
|
return W;
|
|
1094
1090
|
var r = t.customMerge(e);
|
|
1095
1091
|
return typeof r == "function" ? r : W;
|
|
1096
1092
|
}
|
|
1097
|
-
function
|
|
1093
|
+
function ln(e) {
|
|
1098
1094
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1099
1095
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1100
1096
|
}) : [];
|
|
1101
1097
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return Object.keys(e).concat(
|
|
1098
|
+
function ut(e) {
|
|
1099
|
+
return Object.keys(e).concat(ln(e));
|
|
1104
1100
|
}
|
|
1105
|
-
function
|
|
1101
|
+
function Gt(e, t) {
|
|
1106
1102
|
try {
|
|
1107
1103
|
return t in e;
|
|
1108
1104
|
} catch {
|
|
1109
1105
|
return !1;
|
|
1110
1106
|
}
|
|
1111
1107
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1108
|
+
function hn(e, t) {
|
|
1109
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1114
1110
|
}
|
|
1115
1111
|
function cn(e, t, r) {
|
|
1116
1112
|
var n = {};
|
|
1117
|
-
return r.isMergeableObject(e) &&
|
|
1113
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1118
1114
|
n[i] = ie(e[i], r);
|
|
1119
|
-
}),
|
|
1120
|
-
|
|
1115
|
+
}), ut(t).forEach(function(i) {
|
|
1116
|
+
hn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1121
1117
|
}), n;
|
|
1122
1118
|
}
|
|
1123
1119
|
function W(e, t, r) {
|
|
1124
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1120
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1125
1121
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1126
1122
|
return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : ie(t, r);
|
|
1127
1123
|
}
|
|
@@ -1132,42 +1128,39 @@ W.all = function(t, r) {
|
|
|
1132
1128
|
return W(n, i, r);
|
|
1133
1129
|
}, {});
|
|
1134
1130
|
};
|
|
1135
|
-
var
|
|
1136
|
-
const pn = /* @__PURE__ */
|
|
1131
|
+
var fn = W, mn = fn;
|
|
1132
|
+
const pn = /* @__PURE__ */ qr(mn);
|
|
1137
1133
|
function He(e, t) {
|
|
1138
|
-
var r = t && t.cache ? t.cache :
|
|
1134
|
+
var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : yn, i = t && t.strategy ? t.strategy : gn;
|
|
1139
1135
|
return i(e, {
|
|
1140
1136
|
cache: r,
|
|
1141
1137
|
serializer: n
|
|
1142
1138
|
});
|
|
1143
1139
|
}
|
|
1144
|
-
function
|
|
1140
|
+
function dn(e) {
|
|
1145
1141
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1146
1142
|
}
|
|
1147
|
-
function
|
|
1148
|
-
var i =
|
|
1143
|
+
function bn(e, t, r, n) {
|
|
1144
|
+
var i = dn(n) ? n : r(n), o = t.get(i);
|
|
1149
1145
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1150
1146
|
}
|
|
1151
|
-
function
|
|
1147
|
+
function Ut(e, t, r) {
|
|
1152
1148
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1153
1149
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1154
1150
|
}
|
|
1155
|
-
function
|
|
1151
|
+
function Dt(e, t, r, n, i) {
|
|
1156
1152
|
return r.bind(t, e, n, i);
|
|
1157
1153
|
}
|
|
1158
1154
|
function gn(e, t) {
|
|
1159
|
-
var r = e.length === 1 ?
|
|
1160
|
-
return
|
|
1161
|
-
}
|
|
1162
|
-
function yn(e, t) {
|
|
1163
|
-
return Je(e, this, Ft, t.cache.create(), t.serializer);
|
|
1155
|
+
var r = e.length === 1 ? bn : Ut;
|
|
1156
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
1164
1157
|
}
|
|
1165
1158
|
function vn(e, t) {
|
|
1166
|
-
return
|
|
1159
|
+
return Dt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1167
1160
|
}
|
|
1168
|
-
var
|
|
1161
|
+
var yn = function() {
|
|
1169
1162
|
return JSON.stringify(arguments);
|
|
1170
|
-
},
|
|
1163
|
+
}, xn = (
|
|
1171
1164
|
/** @class */
|
|
1172
1165
|
function() {
|
|
1173
1166
|
function e() {
|
|
@@ -1179,13 +1172,12 @@ var xn = function() {
|
|
|
1179
1172
|
this.cache[t] = r;
|
|
1180
1173
|
}, e;
|
|
1181
1174
|
}()
|
|
1182
|
-
),
|
|
1175
|
+
), _n = {
|
|
1183
1176
|
create: function() {
|
|
1184
|
-
return new
|
|
1177
|
+
return new xn();
|
|
1185
1178
|
}
|
|
1186
1179
|
}, Be = {
|
|
1187
|
-
variadic:
|
|
1188
|
-
monadic: vn
|
|
1180
|
+
variadic: vn
|
|
1189
1181
|
}, g;
|
|
1190
1182
|
(function(e) {
|
|
1191
1183
|
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";
|
|
@@ -1198,43 +1190,43 @@ var z;
|
|
|
1198
1190
|
(function(e) {
|
|
1199
1191
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1200
1192
|
})(z || (z = {}));
|
|
1201
|
-
function
|
|
1193
|
+
function lt(e) {
|
|
1202
1194
|
return e.type === E.literal;
|
|
1203
1195
|
}
|
|
1204
|
-
function
|
|
1196
|
+
function En(e) {
|
|
1205
1197
|
return e.type === E.argument;
|
|
1206
1198
|
}
|
|
1207
|
-
function
|
|
1199
|
+
function Ft(e) {
|
|
1208
1200
|
return e.type === E.number;
|
|
1209
1201
|
}
|
|
1210
|
-
function
|
|
1202
|
+
function jt(e) {
|
|
1211
1203
|
return e.type === E.date;
|
|
1212
1204
|
}
|
|
1213
|
-
function
|
|
1205
|
+
function kt(e) {
|
|
1214
1206
|
return e.type === E.time;
|
|
1215
1207
|
}
|
|
1216
|
-
function
|
|
1208
|
+
function Vt(e) {
|
|
1217
1209
|
return e.type === E.select;
|
|
1218
1210
|
}
|
|
1219
|
-
function
|
|
1211
|
+
function Xt(e) {
|
|
1220
1212
|
return e.type === E.plural;
|
|
1221
1213
|
}
|
|
1222
|
-
function
|
|
1214
|
+
function Sn(e) {
|
|
1223
1215
|
return e.type === E.pound;
|
|
1224
1216
|
}
|
|
1225
|
-
function
|
|
1217
|
+
function Wt(e) {
|
|
1226
1218
|
return e.type === E.tag;
|
|
1227
1219
|
}
|
|
1228
|
-
function
|
|
1220
|
+
function zt(e) {
|
|
1229
1221
|
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1230
1222
|
}
|
|
1231
1223
|
function De(e) {
|
|
1232
1224
|
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1233
1225
|
}
|
|
1234
|
-
var
|
|
1235
|
-
function
|
|
1226
|
+
var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Tn = /(?:[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;
|
|
1227
|
+
function wn(e) {
|
|
1236
1228
|
var t = {};
|
|
1237
|
-
return e.replace(
|
|
1229
|
+
return e.replace(Tn, function(r) {
|
|
1238
1230
|
var n = r.length;
|
|
1239
1231
|
switch (r[0]) {
|
|
1240
1232
|
case "G":
|
|
@@ -1323,36 +1315,36 @@ function Hn(e) {
|
|
|
1323
1315
|
return "";
|
|
1324
1316
|
}), t;
|
|
1325
1317
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1318
|
+
var Hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1319
|
+
function Bn(e) {
|
|
1328
1320
|
if (e.length === 0)
|
|
1329
1321
|
throw new Error("Number skeleton cannot be empty");
|
|
1330
|
-
for (var t = e.split(
|
|
1331
|
-
return
|
|
1322
|
+
for (var t = e.split(Hn).filter(function(f) {
|
|
1323
|
+
return f.length > 0;
|
|
1332
1324
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1333
1325
|
var o = i[n], s = o.split("/");
|
|
1334
1326
|
if (s.length === 0)
|
|
1335
1327
|
throw new Error("Invalid number skeleton");
|
|
1336
1328
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1337
|
-
var
|
|
1338
|
-
if (
|
|
1329
|
+
var c = h[u];
|
|
1330
|
+
if (c.length === 0)
|
|
1339
1331
|
throw new Error("Invalid number skeleton");
|
|
1340
1332
|
}
|
|
1341
1333
|
r.push({ stem: a, options: l });
|
|
1342
1334
|
}
|
|
1343
1335
|
return r;
|
|
1344
1336
|
}
|
|
1345
|
-
function
|
|
1337
|
+
function An(e) {
|
|
1346
1338
|
return e.replace(/^(.*?)-/, "");
|
|
1347
1339
|
}
|
|
1348
|
-
var
|
|
1340
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
|
|
1349
1341
|
function ct(e) {
|
|
1350
1342
|
var t = {};
|
|
1351
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1343
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
|
|
1352
1344
|
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)), "";
|
|
1353
1345
|
}), t;
|
|
1354
1346
|
}
|
|
1355
|
-
function
|
|
1347
|
+
function Yt(e) {
|
|
1356
1348
|
switch (e) {
|
|
1357
1349
|
case "sign-auto":
|
|
1358
1350
|
return {
|
|
@@ -1392,7 +1384,7 @@ function qt(e) {
|
|
|
1392
1384
|
};
|
|
1393
1385
|
}
|
|
1394
1386
|
}
|
|
1395
|
-
function
|
|
1387
|
+
function Pn(e) {
|
|
1396
1388
|
var t;
|
|
1397
1389
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1398
1390
|
notation: "engineering"
|
|
@@ -1400,17 +1392,17 @@ function On(e) {
|
|
|
1400
1392
|
notation: "scientific"
|
|
1401
1393
|
}, e = e.slice(1)), t) {
|
|
1402
1394
|
var r = e.slice(0, 2);
|
|
1403
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1395
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
|
|
1404
1396
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1405
1397
|
t.minimumIntegerDigits = e.length;
|
|
1406
1398
|
}
|
|
1407
1399
|
return t;
|
|
1408
1400
|
}
|
|
1409
|
-
function
|
|
1410
|
-
var t = {}, r =
|
|
1401
|
+
function ft(e) {
|
|
1402
|
+
var t = {}, r = Yt(e);
|
|
1411
1403
|
return r || t;
|
|
1412
1404
|
}
|
|
1413
|
-
function
|
|
1405
|
+
function On(e) {
|
|
1414
1406
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1415
1407
|
var i = n[r];
|
|
1416
1408
|
switch (i.stem) {
|
|
@@ -1434,7 +1426,7 @@ function In(e) {
|
|
|
1434
1426
|
continue;
|
|
1435
1427
|
case "measure-unit":
|
|
1436
1428
|
case "unit":
|
|
1437
|
-
t.style = "unit", t.unit =
|
|
1429
|
+
t.style = "unit", t.unit = An(i.options[0]);
|
|
1438
1430
|
continue;
|
|
1439
1431
|
case "compact-short":
|
|
1440
1432
|
case "K":
|
|
@@ -1445,13 +1437,13 @@ function In(e) {
|
|
|
1445
1437
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1446
1438
|
continue;
|
|
1447
1439
|
case "scientific":
|
|
1448
|
-
t =
|
|
1449
|
-
return
|
|
1440
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1441
|
+
return y(y({}, l), ft(u));
|
|
1450
1442
|
}, {}));
|
|
1451
1443
|
continue;
|
|
1452
1444
|
case "engineering":
|
|
1453
|
-
t =
|
|
1454
|
-
return
|
|
1445
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1446
|
+
return y(y({}, l), ft(u));
|
|
1455
1447
|
}, {}));
|
|
1456
1448
|
continue;
|
|
1457
1449
|
case "notation-simple":
|
|
@@ -1496,41 +1488,41 @@ function In(e) {
|
|
|
1496
1488
|
case "integer-width":
|
|
1497
1489
|
if (i.options.length > 1)
|
|
1498
1490
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1499
|
-
i.options[0].replace(
|
|
1491
|
+
i.options[0].replace(Cn, function(l, u, h, c, f, m) {
|
|
1500
1492
|
if (u)
|
|
1501
1493
|
t.minimumIntegerDigits = h.length;
|
|
1502
1494
|
else {
|
|
1503
|
-
if (
|
|
1495
|
+
if (c && f)
|
|
1504
1496
|
throw new Error("We currently do not support maximum integer digits");
|
|
1505
|
-
if (
|
|
1497
|
+
if (m)
|
|
1506
1498
|
throw new Error("We currently do not support exact integer digits");
|
|
1507
1499
|
}
|
|
1508
1500
|
return "";
|
|
1509
1501
|
});
|
|
1510
1502
|
continue;
|
|
1511
1503
|
}
|
|
1512
|
-
if (
|
|
1504
|
+
if (Jt.test(i.stem)) {
|
|
1513
1505
|
t.minimumIntegerDigits = i.stem.length;
|
|
1514
1506
|
continue;
|
|
1515
1507
|
}
|
|
1516
|
-
if (
|
|
1508
|
+
if (ht.test(i.stem)) {
|
|
1517
1509
|
if (i.options.length > 1)
|
|
1518
1510
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1519
|
-
i.stem.replace(
|
|
1520
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1511
|
+
i.stem.replace(ht, function(l, u, h, c, f, m) {
|
|
1512
|
+
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), "";
|
|
1521
1513
|
});
|
|
1522
1514
|
var o = i.options[0];
|
|
1523
|
-
o === "w" ? t =
|
|
1515
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1524
1516
|
continue;
|
|
1525
1517
|
}
|
|
1526
|
-
if (
|
|
1527
|
-
t =
|
|
1518
|
+
if (Qt.test(i.stem)) {
|
|
1519
|
+
t = y(y({}, t), ct(i.stem));
|
|
1528
1520
|
continue;
|
|
1529
1521
|
}
|
|
1530
|
-
var s =
|
|
1531
|
-
s && (t =
|
|
1532
|
-
var a =
|
|
1533
|
-
a && (t =
|
|
1522
|
+
var s = Yt(i.stem);
|
|
1523
|
+
s && (t = y(y({}, t), s));
|
|
1524
|
+
var a = Pn(i.stem);
|
|
1525
|
+
a && (t = y(y({}, t), a));
|
|
1534
1526
|
}
|
|
1535
1527
|
return t;
|
|
1536
1528
|
}
|
|
@@ -2949,13 +2941,13 @@ var he = {
|
|
|
2949
2941
|
"h"
|
|
2950
2942
|
]
|
|
2951
2943
|
};
|
|
2952
|
-
function
|
|
2944
|
+
function In(e, t) {
|
|
2953
2945
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2954
2946
|
var i = e.charAt(n);
|
|
2955
2947
|
if (i === "j") {
|
|
2956
2948
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2957
2949
|
o++, n++;
|
|
2958
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2950
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Nn(t);
|
|
2959
2951
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2960
2952
|
r += l;
|
|
2961
2953
|
for (; s-- > 0; )
|
|
@@ -2964,7 +2956,7 @@ function Nn(e, t) {
|
|
|
2964
2956
|
}
|
|
2965
2957
|
return r;
|
|
2966
2958
|
}
|
|
2967
|
-
function
|
|
2959
|
+
function Nn(e) {
|
|
2968
2960
|
var t = e.hourCycle;
|
|
2969
2961
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2970
2962
|
e.hourCycles && // @ts-ignore
|
|
@@ -2986,20 +2978,20 @@ function Mn(e) {
|
|
|
2986
2978
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2987
2979
|
return i[0];
|
|
2988
2980
|
}
|
|
2989
|
-
var Ae,
|
|
2990
|
-
function
|
|
2981
|
+
var Ae, Mn = new RegExp("^".concat(Zt.source, "*")), Ln = new RegExp("".concat(Zt.source, "*$"));
|
|
2982
|
+
function v(e, t) {
|
|
2991
2983
|
return { start: e, end: t };
|
|
2992
2984
|
}
|
|
2993
|
-
var
|
|
2985
|
+
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), $n = !!String.fromCodePoint, Gn = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Dn = !!String.prototype.trimStart, Fn = !!String.prototype.trimEnd, jn = !!Number.isSafeInteger, kn = jn ? Number.isSafeInteger : function(e) {
|
|
2994
2986
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2995
2987
|
}, Fe = !0;
|
|
2996
2988
|
try {
|
|
2997
|
-
var
|
|
2998
|
-
Fe = ((Ae =
|
|
2989
|
+
var Vn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2990
|
+
Fe = ((Ae = Vn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2999
2991
|
} catch {
|
|
3000
2992
|
Fe = !1;
|
|
3001
2993
|
}
|
|
3002
|
-
var mt =
|
|
2994
|
+
var mt = Rn ? (
|
|
3003
2995
|
// Native
|
|
3004
2996
|
function(t, r, n) {
|
|
3005
2997
|
return t.startsWith(r, n);
|
|
@@ -3009,7 +3001,7 @@ var mt = $n ? (
|
|
|
3009
3001
|
function(t, r, n) {
|
|
3010
3002
|
return t.slice(n, n + r.length) === r;
|
|
3011
3003
|
}
|
|
3012
|
-
), je =
|
|
3004
|
+
), je = $n ? String.fromCodePoint : (
|
|
3013
3005
|
// IE11
|
|
3014
3006
|
function() {
|
|
3015
3007
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3023,7 +3015,7 @@ var mt = $n ? (
|
|
|
3023
3015
|
}
|
|
3024
3016
|
), pt = (
|
|
3025
3017
|
// native
|
|
3026
|
-
|
|
3018
|
+
Gn ? Object.fromEntries : (
|
|
3027
3019
|
// Ponyfill
|
|
3028
3020
|
function(t) {
|
|
3029
3021
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3033,7 +3025,7 @@ var mt = $n ? (
|
|
|
3033
3025
|
return r;
|
|
3034
3026
|
}
|
|
3035
3027
|
)
|
|
3036
|
-
),
|
|
3028
|
+
), qt = Un ? (
|
|
3037
3029
|
// Native
|
|
3038
3030
|
function(t, r) {
|
|
3039
3031
|
return t.codePointAt(r);
|
|
@@ -3047,7 +3039,7 @@ var mt = $n ? (
|
|
|
3047
3039
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3048
3040
|
}
|
|
3049
3041
|
}
|
|
3050
|
-
),
|
|
3042
|
+
), Xn = Dn ? (
|
|
3051
3043
|
// Native
|
|
3052
3044
|
function(t) {
|
|
3053
3045
|
return t.trimStart();
|
|
@@ -3055,9 +3047,9 @@ var mt = $n ? (
|
|
|
3055
3047
|
) : (
|
|
3056
3048
|
// Ponyfill
|
|
3057
3049
|
function(t) {
|
|
3058
|
-
return t.replace(
|
|
3050
|
+
return t.replace(Mn, "");
|
|
3059
3051
|
}
|
|
3060
|
-
),
|
|
3052
|
+
), Wn = Fn ? (
|
|
3061
3053
|
// Native
|
|
3062
3054
|
function(t) {
|
|
3063
3055
|
return t.trimEnd();
|
|
@@ -3065,32 +3057,32 @@ var mt = $n ? (
|
|
|
3065
3057
|
) : (
|
|
3066
3058
|
// Ponyfill
|
|
3067
3059
|
function(t) {
|
|
3068
|
-
return t.replace(
|
|
3060
|
+
return t.replace(Ln, "");
|
|
3069
3061
|
}
|
|
3070
3062
|
);
|
|
3071
|
-
function
|
|
3063
|
+
function Kt(e, t) {
|
|
3072
3064
|
return new RegExp(e, t);
|
|
3073
3065
|
}
|
|
3074
3066
|
var ke;
|
|
3075
3067
|
if (Fe) {
|
|
3076
|
-
var
|
|
3068
|
+
var dt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3077
3069
|
ke = function(t, r) {
|
|
3078
3070
|
var n;
|
|
3079
|
-
|
|
3080
|
-
var i =
|
|
3071
|
+
dt.lastIndex = r;
|
|
3072
|
+
var i = dt.exec(t);
|
|
3081
3073
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3082
3074
|
};
|
|
3083
3075
|
} else
|
|
3084
3076
|
ke = function(t, r) {
|
|
3085
3077
|
for (var n = []; ; ) {
|
|
3086
|
-
var i =
|
|
3087
|
-
if (i === void 0 ||
|
|
3078
|
+
var i = qt(t, r);
|
|
3079
|
+
if (i === void 0 || er(i) || Jn(i))
|
|
3088
3080
|
break;
|
|
3089
3081
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3090
3082
|
}
|
|
3091
3083
|
return je.apply(void 0, n);
|
|
3092
3084
|
};
|
|
3093
|
-
var
|
|
3085
|
+
var zn = (
|
|
3094
3086
|
/** @class */
|
|
3095
3087
|
function() {
|
|
3096
3088
|
function e(t, r) {
|
|
@@ -3115,12 +3107,12 @@ var Zn = (
|
|
|
3115
3107
|
var a = this.clonePosition();
|
|
3116
3108
|
this.bump(), i.push({
|
|
3117
3109
|
type: E.pound,
|
|
3118
|
-
location:
|
|
3110
|
+
location: v(a, this.clonePosition())
|
|
3119
3111
|
});
|
|
3120
3112
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3121
3113
|
if (n)
|
|
3122
3114
|
break;
|
|
3123
|
-
return this.error(g.UNMATCHED_CLOSING_TAG,
|
|
3115
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3124
3116
|
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3125
3117
|
var s = this.parseTag(t, r);
|
|
3126
3118
|
if (s.err)
|
|
@@ -3144,7 +3136,7 @@ var Zn = (
|
|
|
3144
3136
|
val: {
|
|
3145
3137
|
type: E.literal,
|
|
3146
3138
|
value: "<".concat(i, "/>"),
|
|
3147
|
-
location:
|
|
3139
|
+
location: v(n, this.clonePosition())
|
|
3148
3140
|
},
|
|
3149
3141
|
err: null
|
|
3150
3142
|
};
|
|
@@ -3155,24 +3147,24 @@ var Zn = (
|
|
|
3155
3147
|
var s = o.val, a = this.clonePosition();
|
|
3156
3148
|
if (this.bumpIf("</")) {
|
|
3157
3149
|
if (this.isEOF() || !Ve(this.char()))
|
|
3158
|
-
return this.error(g.INVALID_TAG,
|
|
3150
|
+
return this.error(g.INVALID_TAG, v(a, this.clonePosition()));
|
|
3159
3151
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3160
|
-
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG,
|
|
3152
|
+
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3161
3153
|
val: {
|
|
3162
3154
|
type: E.tag,
|
|
3163
3155
|
value: i,
|
|
3164
3156
|
children: s,
|
|
3165
|
-
location:
|
|
3157
|
+
location: v(n, this.clonePosition())
|
|
3166
3158
|
},
|
|
3167
3159
|
err: null
|
|
3168
|
-
} : this.error(g.INVALID_TAG,
|
|
3160
|
+
} : this.error(g.INVALID_TAG, v(a, this.clonePosition())));
|
|
3169
3161
|
} else
|
|
3170
|
-
return this.error(g.UNCLOSED_TAG,
|
|
3162
|
+
return this.error(g.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3171
3163
|
} else
|
|
3172
|
-
return this.error(g.INVALID_TAG,
|
|
3164
|
+
return this.error(g.INVALID_TAG, v(n, this.clonePosition()));
|
|
3173
3165
|
}, e.prototype.parseTagName = function() {
|
|
3174
3166
|
var t = this.offset();
|
|
3175
|
-
for (this.bump(); !this.isEOF() &&
|
|
3167
|
+
for (this.bump(); !this.isEOF() && Qn(this.char()); )
|
|
3176
3168
|
this.bump();
|
|
3177
3169
|
return this.message.slice(t, this.offset());
|
|
3178
3170
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3194,14 +3186,14 @@ var Zn = (
|
|
|
3194
3186
|
}
|
|
3195
3187
|
break;
|
|
3196
3188
|
}
|
|
3197
|
-
var l =
|
|
3189
|
+
var l = v(n, this.clonePosition());
|
|
3198
3190
|
return {
|
|
3199
3191
|
val: { type: E.literal, value: i, location: l },
|
|
3200
3192
|
err: null
|
|
3201
3193
|
};
|
|
3202
3194
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3203
3195
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3204
|
-
!
|
|
3196
|
+
!Zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3205
3197
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3206
3198
|
if (this.isEOF() || this.char() !== 39)
|
|
3207
3199
|
return null;
|
|
@@ -3244,14 +3236,14 @@ var Zn = (
|
|
|
3244
3236
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3245
3237
|
var n = this.clonePosition();
|
|
3246
3238
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3247
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3239
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3248
3240
|
if (this.char() === 125)
|
|
3249
|
-
return this.bump(), this.error(g.EMPTY_ARGUMENT,
|
|
3241
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3250
3242
|
var i = this.parseIdentifierIfPossible().value;
|
|
3251
3243
|
if (!i)
|
|
3252
|
-
return this.error(g.MALFORMED_ARGUMENT,
|
|
3244
|
+
return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3253
3245
|
if (this.bumpSpace(), this.isEOF())
|
|
3254
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3246
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3255
3247
|
switch (this.char()) {
|
|
3256
3248
|
case 125:
|
|
3257
3249
|
return this.bump(), {
|
|
@@ -3259,25 +3251,25 @@ var Zn = (
|
|
|
3259
3251
|
type: E.argument,
|
|
3260
3252
|
// value does not include the opening and closing braces.
|
|
3261
3253
|
value: i,
|
|
3262
|
-
location:
|
|
3254
|
+
location: v(n, this.clonePosition())
|
|
3263
3255
|
},
|
|
3264
3256
|
err: null
|
|
3265
3257
|
};
|
|
3266
3258
|
case 44:
|
|
3267
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3259
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3268
3260
|
default:
|
|
3269
|
-
return this.error(g.MALFORMED_ARGUMENT,
|
|
3261
|
+
return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3270
3262
|
}
|
|
3271
3263
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3272
3264
|
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3273
3265
|
this.bumpTo(i);
|
|
3274
|
-
var o = this.clonePosition(), s =
|
|
3266
|
+
var o = this.clonePosition(), s = v(t, o);
|
|
3275
3267
|
return { value: n, location: s };
|
|
3276
3268
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3277
3269
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3278
3270
|
switch (a) {
|
|
3279
3271
|
case "":
|
|
3280
|
-
return this.error(g.EXPECT_ARGUMENT_TYPE,
|
|
3272
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
3281
3273
|
case "number":
|
|
3282
3274
|
case "date":
|
|
3283
3275
|
case "time": {
|
|
@@ -3285,40 +3277,40 @@ var Zn = (
|
|
|
3285
3277
|
var u = null;
|
|
3286
3278
|
if (this.bumpIf(",")) {
|
|
3287
3279
|
this.bumpSpace();
|
|
3288
|
-
var h = this.clonePosition(),
|
|
3289
|
-
if (
|
|
3290
|
-
return
|
|
3291
|
-
var
|
|
3292
|
-
if (
|
|
3293
|
-
return this.error(g.EXPECT_ARGUMENT_STYLE,
|
|
3294
|
-
var
|
|
3295
|
-
u = { style:
|
|
3280
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3281
|
+
if (c.err)
|
|
3282
|
+
return c;
|
|
3283
|
+
var f = Wn(c.val);
|
|
3284
|
+
if (f.length === 0)
|
|
3285
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3286
|
+
var m = v(h, this.clonePosition());
|
|
3287
|
+
u = { style: f, styleLocation: m };
|
|
3296
3288
|
}
|
|
3297
|
-
var
|
|
3298
|
-
if (
|
|
3299
|
-
return
|
|
3300
|
-
var
|
|
3289
|
+
var d = this.tryParseArgumentClose(i);
|
|
3290
|
+
if (d.err)
|
|
3291
|
+
return d;
|
|
3292
|
+
var p = v(i, this.clonePosition());
|
|
3301
3293
|
if (u && mt(u?.style, "::", 0)) {
|
|
3302
|
-
var A =
|
|
3294
|
+
var A = Xn(u.style.slice(2));
|
|
3303
3295
|
if (a === "number") {
|
|
3304
|
-
var
|
|
3305
|
-
return
|
|
3306
|
-
val: { type: E.number, value: n, location:
|
|
3296
|
+
var c = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
3297
|
+
return c.err ? c : {
|
|
3298
|
+
val: { type: E.number, value: n, location: p, style: c.val },
|
|
3307
3299
|
err: null
|
|
3308
3300
|
};
|
|
3309
3301
|
} else {
|
|
3310
3302
|
if (A.length === 0)
|
|
3311
|
-
return this.error(g.EXPECT_DATE_TIME_SKELETON,
|
|
3303
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, p);
|
|
3312
3304
|
var O = A;
|
|
3313
|
-
this.locale && (O =
|
|
3314
|
-
var
|
|
3305
|
+
this.locale && (O = In(A, this.locale));
|
|
3306
|
+
var f = {
|
|
3315
3307
|
type: z.dateTime,
|
|
3316
3308
|
pattern: O,
|
|
3317
3309
|
location: u.styleLocation,
|
|
3318
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3310
|
+
parsedOptions: this.shouldParseSkeletons ? wn(O) : {}
|
|
3319
3311
|
}, C = a === "date" ? E.date : E.time;
|
|
3320
3312
|
return {
|
|
3321
|
-
val: { type: C, value: n, location:
|
|
3313
|
+
val: { type: C, value: n, location: p, style: f },
|
|
3322
3314
|
err: null
|
|
3323
3315
|
};
|
|
3324
3316
|
}
|
|
@@ -3327,7 +3319,7 @@ var Zn = (
|
|
|
3327
3319
|
val: {
|
|
3328
3320
|
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3329
3321
|
value: n,
|
|
3330
|
-
location:
|
|
3322
|
+
location: p,
|
|
3331
3323
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3332
3324
|
},
|
|
3333
3325
|
err: null
|
|
@@ -3336,27 +3328,27 @@ var Zn = (
|
|
|
3336
3328
|
case "plural":
|
|
3337
3329
|
case "selectordinal":
|
|
3338
3330
|
case "select": {
|
|
3339
|
-
var
|
|
3331
|
+
var S = this.clonePosition();
|
|
3340
3332
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3341
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3333
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, y({}, S)));
|
|
3342
3334
|
this.bumpSpace();
|
|
3343
|
-
var
|
|
3344
|
-
if (a !== "select" &&
|
|
3335
|
+
var T = this.parseIdentifierIfPossible(), _ = 0;
|
|
3336
|
+
if (a !== "select" && T.value === "offset") {
|
|
3345
3337
|
if (!this.bumpIf(":"))
|
|
3346
|
-
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3338
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3347
3339
|
this.bumpSpace();
|
|
3348
|
-
var
|
|
3349
|
-
if (
|
|
3350
|
-
return
|
|
3351
|
-
this.bumpSpace(),
|
|
3340
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3341
|
+
if (c.err)
|
|
3342
|
+
return c;
|
|
3343
|
+
this.bumpSpace(), T = this.parseIdentifierIfPossible(), _ = c.val;
|
|
3352
3344
|
}
|
|
3353
|
-
var x = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3345
|
+
var x = this.tryParsePluralOrSelectOptions(t, a, r, T);
|
|
3354
3346
|
if (x.err)
|
|
3355
3347
|
return x;
|
|
3356
|
-
var
|
|
3357
|
-
if (
|
|
3358
|
-
return
|
|
3359
|
-
var P =
|
|
3348
|
+
var d = this.tryParseArgumentClose(i);
|
|
3349
|
+
if (d.err)
|
|
3350
|
+
return d;
|
|
3351
|
+
var P = v(i, this.clonePosition());
|
|
3360
3352
|
return a === "select" ? {
|
|
3361
3353
|
val: {
|
|
3362
3354
|
type: E.select,
|
|
@@ -3378,10 +3370,10 @@ var Zn = (
|
|
|
3378
3370
|
};
|
|
3379
3371
|
}
|
|
3380
3372
|
default:
|
|
3381
|
-
return this.error(g.INVALID_ARGUMENT_TYPE,
|
|
3373
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3382
3374
|
}
|
|
3383
3375
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3384
|
-
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3376
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3385
3377
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3386
3378
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3387
3379
|
var n = this.char();
|
|
@@ -3390,7 +3382,7 @@ var Zn = (
|
|
|
3390
3382
|
this.bump();
|
|
3391
3383
|
var i = this.clonePosition();
|
|
3392
3384
|
if (!this.bumpUntil("'"))
|
|
3393
|
-
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3385
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3394
3386
|
this.bump();
|
|
3395
3387
|
break;
|
|
3396
3388
|
}
|
|
@@ -3420,7 +3412,7 @@ var Zn = (
|
|
|
3420
3412
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3421
3413
|
var n = [];
|
|
3422
3414
|
try {
|
|
3423
|
-
n =
|
|
3415
|
+
n = Bn(t);
|
|
3424
3416
|
} catch {
|
|
3425
3417
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3426
3418
|
}
|
|
@@ -3429,43 +3421,43 @@ var Zn = (
|
|
|
3429
3421
|
type: z.number,
|
|
3430
3422
|
tokens: n,
|
|
3431
3423
|
location: r,
|
|
3432
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3424
|
+
parsedOptions: this.shouldParseSkeletons ? On(n) : {}
|
|
3433
3425
|
},
|
|
3434
3426
|
err: null
|
|
3435
3427
|
};
|
|
3436
3428
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3437
3429
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3438
3430
|
if (u.length === 0) {
|
|
3439
|
-
var
|
|
3431
|
+
var c = this.clonePosition();
|
|
3440
3432
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3441
|
-
var
|
|
3442
|
-
if (
|
|
3443
|
-
return
|
|
3444
|
-
h =
|
|
3433
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3434
|
+
if (f.err)
|
|
3435
|
+
return f;
|
|
3436
|
+
h = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3445
3437
|
} else
|
|
3446
3438
|
break;
|
|
3447
3439
|
}
|
|
3448
3440
|
if (l.has(u))
|
|
3449
3441
|
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3450
3442
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3451
|
-
var
|
|
3443
|
+
var m = this.clonePosition();
|
|
3452
3444
|
if (!this.bumpIf("{"))
|
|
3453
|
-
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3454
|
-
var
|
|
3445
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3446
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3447
|
+
if (d.err)
|
|
3448
|
+
return d;
|
|
3449
|
+
var p = this.tryParseArgumentClose(m);
|
|
3455
3450
|
if (p.err)
|
|
3456
3451
|
return p;
|
|
3457
|
-
var m = this.tryParseArgumentClose(d);
|
|
3458
|
-
if (m.err)
|
|
3459
|
-
return m;
|
|
3460
3452
|
a.push([
|
|
3461
3453
|
u,
|
|
3462
3454
|
{
|
|
3463
|
-
value:
|
|
3464
|
-
location:
|
|
3455
|
+
value: d.val,
|
|
3456
|
+
location: v(m, this.clonePosition())
|
|
3465
3457
|
}
|
|
3466
3458
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3467
3459
|
}
|
|
3468
|
-
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3460
|
+
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3469
3461
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3470
3462
|
var n = 1, i = this.clonePosition();
|
|
3471
3463
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3476,8 +3468,8 @@ var Zn = (
|
|
|
3476
3468
|
else
|
|
3477
3469
|
break;
|
|
3478
3470
|
}
|
|
3479
|
-
var l =
|
|
3480
|
-
return o ? (s *= n,
|
|
3471
|
+
var l = v(i, this.clonePosition());
|
|
3472
|
+
return o ? (s *= n, kn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3481
3473
|
}, e.prototype.offset = function() {
|
|
3482
3474
|
return this.position.offset;
|
|
3483
3475
|
}, e.prototype.isEOF = function() {
|
|
@@ -3492,7 +3484,7 @@ var Zn = (
|
|
|
3492
3484
|
var t = this.position.offset;
|
|
3493
3485
|
if (t >= this.message.length)
|
|
3494
3486
|
throw Error("out of bound");
|
|
3495
|
-
var r =
|
|
3487
|
+
var r = qt(this.message, t);
|
|
3496
3488
|
if (r === void 0)
|
|
3497
3489
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3498
3490
|
return r;
|
|
@@ -3533,7 +3525,7 @@ var Zn = (
|
|
|
3533
3525
|
break;
|
|
3534
3526
|
}
|
|
3535
3527
|
}, e.prototype.bumpSpace = function() {
|
|
3536
|
-
for (; !this.isEOF() &&
|
|
3528
|
+
for (; !this.isEOF() && er(this.char()); )
|
|
3537
3529
|
this.bump();
|
|
3538
3530
|
}, e.prototype.peek = function() {
|
|
3539
3531
|
if (this.isEOF())
|
|
@@ -3546,29 +3538,29 @@ var Zn = (
|
|
|
3546
3538
|
function Ve(e) {
|
|
3547
3539
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3548
3540
|
}
|
|
3549
|
-
function
|
|
3541
|
+
function Zn(e) {
|
|
3550
3542
|
return Ve(e) || e === 47;
|
|
3551
3543
|
}
|
|
3552
|
-
function
|
|
3544
|
+
function Qn(e) {
|
|
3553
3545
|
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;
|
|
3554
3546
|
}
|
|
3555
|
-
function
|
|
3547
|
+
function er(e) {
|
|
3556
3548
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3557
3549
|
}
|
|
3558
|
-
function
|
|
3550
|
+
function Jn(e) {
|
|
3559
3551
|
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;
|
|
3560
3552
|
}
|
|
3561
3553
|
function Xe(e) {
|
|
3562
3554
|
e.forEach(function(t) {
|
|
3563
|
-
if (delete t.location,
|
|
3555
|
+
if (delete t.location, Vt(t) || Xt(t))
|
|
3564
3556
|
for (var r in t.options)
|
|
3565
3557
|
delete t.options[r].location, Xe(t.options[r].value);
|
|
3566
|
-
else
|
|
3558
|
+
else Ft(t) && zt(t.style) || (jt(t) || kt(t)) && De(t.style) ? delete t.style.location : Wt(t) && Xe(t.children);
|
|
3567
3559
|
});
|
|
3568
3560
|
}
|
|
3569
|
-
function
|
|
3570
|
-
t === void 0 && (t = {}), t =
|
|
3571
|
-
var r = new
|
|
3561
|
+
function Yn(e, t) {
|
|
3562
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3563
|
+
var r = new zn(e, t).parse();
|
|
3572
3564
|
if (r.err) {
|
|
3573
3565
|
var n = SyntaxError(g[r.err.kind]);
|
|
3574
3566
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3591,7 +3583,7 @@ var _e = (
|
|
|
3591
3583
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3592
3584
|
}, t;
|
|
3593
3585
|
}(Error)
|
|
3594
|
-
),
|
|
3586
|
+
), bt = (
|
|
3595
3587
|
/** @class */
|
|
3596
3588
|
function(e) {
|
|
3597
3589
|
$(t, e);
|
|
@@ -3600,7 +3592,7 @@ var _e = (
|
|
|
3600
3592
|
}
|
|
3601
3593
|
return t;
|
|
3602
3594
|
}(_e)
|
|
3603
|
-
),
|
|
3595
|
+
), qn = (
|
|
3604
3596
|
/** @class */
|
|
3605
3597
|
function(e) {
|
|
3606
3598
|
$(t, e);
|
|
@@ -3609,7 +3601,7 @@ var _e = (
|
|
|
3609
3601
|
}
|
|
3610
3602
|
return t;
|
|
3611
3603
|
}(_e)
|
|
3612
|
-
),
|
|
3604
|
+
), Kn = (
|
|
3613
3605
|
/** @class */
|
|
3614
3606
|
function(e) {
|
|
3615
3607
|
$(t, e);
|
|
@@ -3622,17 +3614,17 @@ var _e = (
|
|
|
3622
3614
|
(function(e) {
|
|
3623
3615
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3624
3616
|
})(B || (B = {}));
|
|
3625
|
-
function
|
|
3617
|
+
function ei(e) {
|
|
3626
3618
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3627
3619
|
var n = t[t.length - 1];
|
|
3628
3620
|
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
|
3629
3621
|
}, []);
|
|
3630
3622
|
}
|
|
3631
|
-
function
|
|
3623
|
+
function ti(e) {
|
|
3632
3624
|
return typeof e == "function";
|
|
3633
3625
|
}
|
|
3634
|
-
function
|
|
3635
|
-
if (e.length === 1 &&
|
|
3626
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3627
|
+
if (e.length === 1 && lt(e[0]))
|
|
3636
3628
|
return [
|
|
3637
3629
|
{
|
|
3638
3630
|
type: B.literal,
|
|
@@ -3641,60 +3633,60 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3641
3633
|
];
|
|
3642
3634
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3643
3635
|
var h = u[l];
|
|
3644
|
-
if (
|
|
3636
|
+
if (lt(h)) {
|
|
3645
3637
|
a.push({
|
|
3646
3638
|
type: B.literal,
|
|
3647
3639
|
value: h.value
|
|
3648
3640
|
});
|
|
3649
3641
|
continue;
|
|
3650
3642
|
}
|
|
3651
|
-
if (
|
|
3643
|
+
if (Sn(h)) {
|
|
3652
3644
|
typeof o == "number" && a.push({
|
|
3653
3645
|
type: B.literal,
|
|
3654
3646
|
value: r.getNumberFormat(t).format(o)
|
|
3655
3647
|
});
|
|
3656
3648
|
continue;
|
|
3657
3649
|
}
|
|
3658
|
-
var
|
|
3659
|
-
if (!(i &&
|
|
3660
|
-
throw new
|
|
3661
|
-
var
|
|
3662
|
-
if (
|
|
3663
|
-
(!
|
|
3664
|
-
type: typeof
|
|
3665
|
-
value:
|
|
3650
|
+
var c = h.value;
|
|
3651
|
+
if (!(i && c in i))
|
|
3652
|
+
throw new Kn(c, s);
|
|
3653
|
+
var f = i[c];
|
|
3654
|
+
if (En(h)) {
|
|
3655
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3656
|
+
type: typeof f == "string" ? B.literal : B.object,
|
|
3657
|
+
value: f
|
|
3666
3658
|
});
|
|
3667
3659
|
continue;
|
|
3668
3660
|
}
|
|
3669
|
-
if (
|
|
3670
|
-
var
|
|
3661
|
+
if (jt(h)) {
|
|
3662
|
+
var m = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3671
3663
|
a.push({
|
|
3672
3664
|
type: B.literal,
|
|
3673
|
-
value: r.getDateTimeFormat(t,
|
|
3665
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3674
3666
|
});
|
|
3675
3667
|
continue;
|
|
3676
3668
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
var
|
|
3669
|
+
if (kt(h)) {
|
|
3670
|
+
var m = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3679
3671
|
a.push({
|
|
3680
3672
|
type: B.literal,
|
|
3681
|
-
value: r.getDateTimeFormat(t,
|
|
3673
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3682
3674
|
});
|
|
3683
3675
|
continue;
|
|
3684
3676
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var
|
|
3687
|
-
|
|
3677
|
+
if (Ft(h)) {
|
|
3678
|
+
var m = typeof h.style == "string" ? n.number[h.style] : zt(h.style) ? h.style.parsedOptions : void 0;
|
|
3679
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3688
3680
|
type: B.literal,
|
|
3689
|
-
value: r.getNumberFormat(t,
|
|
3681
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3690
3682
|
});
|
|
3691
3683
|
continue;
|
|
3692
3684
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
var
|
|
3695
|
-
if (!
|
|
3696
|
-
throw new
|
|
3697
|
-
var O =
|
|
3685
|
+
if (Wt(h)) {
|
|
3686
|
+
var d = h.children, p = h.value, A = i[p];
|
|
3687
|
+
if (!ti(A))
|
|
3688
|
+
throw new qn(p, "function", s);
|
|
3689
|
+
var O = pe(d, t, r, n, i, o), C = A(O.map(function(_) {
|
|
3698
3690
|
return _.value;
|
|
3699
3691
|
}));
|
|
3700
3692
|
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(_) {
|
|
@@ -3704,40 +3696,40 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3704
3696
|
};
|
|
3705
3697
|
}));
|
|
3706
3698
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var
|
|
3709
|
-
if (!
|
|
3710
|
-
throw new
|
|
3711
|
-
a.push.apply(a,
|
|
3699
|
+
if (Vt(h)) {
|
|
3700
|
+
var S = h.options[f] || h.options.other;
|
|
3701
|
+
if (!S)
|
|
3702
|
+
throw new bt(h.value, f, Object.keys(h.options), s);
|
|
3703
|
+
a.push.apply(a, pe(S.value, t, r, n, i));
|
|
3712
3704
|
continue;
|
|
3713
3705
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var
|
|
3716
|
-
if (!
|
|
3706
|
+
if (Xt(h)) {
|
|
3707
|
+
var S = h.options["=".concat(f)];
|
|
3708
|
+
if (!S) {
|
|
3717
3709
|
if (!Intl.PluralRules)
|
|
3718
3710
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3719
3711
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3720
3712
|
`, Z.MISSING_INTL_API, s);
|
|
3721
|
-
var
|
|
3722
|
-
|
|
3713
|
+
var T = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3714
|
+
S = h.options[T] || h.options.other;
|
|
3723
3715
|
}
|
|
3724
|
-
if (!
|
|
3725
|
-
throw new
|
|
3726
|
-
a.push.apply(a,
|
|
3716
|
+
if (!S)
|
|
3717
|
+
throw new bt(h.value, f, Object.keys(h.options), s);
|
|
3718
|
+
a.push.apply(a, pe(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3727
3719
|
continue;
|
|
3728
3720
|
}
|
|
3729
3721
|
}
|
|
3730
|
-
return
|
|
3722
|
+
return ei(a);
|
|
3731
3723
|
}
|
|
3732
|
-
function
|
|
3733
|
-
return t ?
|
|
3734
|
-
return r[n] =
|
|
3724
|
+
function ri(e, t) {
|
|
3725
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3726
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3735
3727
|
}, {})) : e;
|
|
3736
3728
|
}
|
|
3737
|
-
function
|
|
3729
|
+
function ni(e, t) {
|
|
3738
3730
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3739
|
-
return r[n] =
|
|
3740
|
-
},
|
|
3731
|
+
return r[n] = ri(e[n], t[n]), r;
|
|
3732
|
+
}, y({}, e)) : e;
|
|
3741
3733
|
}
|
|
3742
3734
|
function Ce(e) {
|
|
3743
3735
|
return {
|
|
@@ -3753,7 +3745,7 @@ function Ce(e) {
|
|
|
3753
3745
|
}
|
|
3754
3746
|
};
|
|
3755
3747
|
}
|
|
3756
|
-
function
|
|
3748
|
+
function ii(e) {
|
|
3757
3749
|
return e === void 0 && (e = {
|
|
3758
3750
|
number: {},
|
|
3759
3751
|
dateTime: {},
|
|
@@ -3785,7 +3777,7 @@ function oi(e) {
|
|
|
3785
3777
|
})
|
|
3786
3778
|
};
|
|
3787
3779
|
}
|
|
3788
|
-
var
|
|
3780
|
+
var oi = (
|
|
3789
3781
|
/** @class */
|
|
3790
3782
|
function() {
|
|
3791
3783
|
function e(t, r, n, i) {
|
|
@@ -3799,12 +3791,12 @@ var si = (
|
|
|
3799
3791
|
var u = o.formatToParts(l);
|
|
3800
3792
|
if (u.length === 1)
|
|
3801
3793
|
return u[0].value;
|
|
3802
|
-
var h = u.reduce(function(
|
|
3803
|
-
return !
|
|
3794
|
+
var h = u.reduce(function(c, f) {
|
|
3795
|
+
return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3804
3796
|
}, []);
|
|
3805
3797
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3806
3798
|
}, this.formatToParts = function(l) {
|
|
3807
|
-
return
|
|
3799
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3808
3800
|
}, this.resolvedOptions = function() {
|
|
3809
3801
|
var l;
|
|
3810
3802
|
return {
|
|
@@ -3817,13 +3809,13 @@ var si = (
|
|
|
3817
3809
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3818
3810
|
var s = i || {};
|
|
3819
3811
|
s.formatters;
|
|
3820
|
-
var a =
|
|
3821
|
-
this.ast = e.__parse(t,
|
|
3812
|
+
var a = Rr(s, ["formatters"]);
|
|
3813
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3822
3814
|
} else
|
|
3823
3815
|
this.ast = t;
|
|
3824
3816
|
if (!Array.isArray(this.ast))
|
|
3825
3817
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3826
|
-
this.formats =
|
|
3818
|
+
this.formats = ni(e.formats, n), this.formatters = i && i.formatters || ii(this.formatterCache);
|
|
3827
3819
|
}
|
|
3828
3820
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3829
3821
|
get: function() {
|
|
@@ -3836,7 +3828,7 @@ var si = (
|
|
|
3836
3828
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3837
3829
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3838
3830
|
}
|
|
3839
|
-
}, e.__parse =
|
|
3831
|
+
}, e.__parse = Yn, e.formats = {
|
|
3840
3832
|
number: {
|
|
3841
3833
|
integer: {
|
|
3842
3834
|
maximumFractionDigits: 0
|
|
@@ -3897,7 +3889,7 @@ var si = (
|
|
|
3897
3889
|
}, e;
|
|
3898
3890
|
}()
|
|
3899
3891
|
);
|
|
3900
|
-
function
|
|
3892
|
+
function si(e, t) {
|
|
3901
3893
|
if (t == null)
|
|
3902
3894
|
return;
|
|
3903
3895
|
if (t in e)
|
|
@@ -3918,60 +3910,60 @@ function ai(e, t) {
|
|
|
3918
3910
|
n = void 0;
|
|
3919
3911
|
return n;
|
|
3920
3912
|
}
|
|
3921
|
-
const G = {},
|
|
3913
|
+
const G = {}, ai = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), tr = (e, t) => {
|
|
3922
3914
|
if (t == null)
|
|
3923
3915
|
return;
|
|
3924
3916
|
if (t in G && e in G[t])
|
|
3925
3917
|
return G[t][e];
|
|
3926
3918
|
const r = Ee(t);
|
|
3927
3919
|
for (let n = 0; n < r.length; n++) {
|
|
3928
|
-
const i = r[n], o =
|
|
3920
|
+
const i = r[n], o = li(i, e);
|
|
3929
3921
|
if (o)
|
|
3930
|
-
return
|
|
3922
|
+
return ai(e, t, o);
|
|
3931
3923
|
}
|
|
3932
3924
|
};
|
|
3933
|
-
let
|
|
3925
|
+
let Je;
|
|
3934
3926
|
const ae = xe({});
|
|
3935
|
-
function
|
|
3936
|
-
return
|
|
3927
|
+
function ui(e) {
|
|
3928
|
+
return Je[e] || null;
|
|
3937
3929
|
}
|
|
3938
|
-
function
|
|
3939
|
-
return e in
|
|
3930
|
+
function rr(e) {
|
|
3931
|
+
return e in Je;
|
|
3940
3932
|
}
|
|
3941
|
-
function
|
|
3942
|
-
if (!
|
|
3933
|
+
function li(e, t) {
|
|
3934
|
+
if (!rr(e))
|
|
3943
3935
|
return null;
|
|
3944
|
-
const r =
|
|
3945
|
-
return
|
|
3936
|
+
const r = ui(e);
|
|
3937
|
+
return si(r, t);
|
|
3946
3938
|
}
|
|
3947
|
-
function
|
|
3939
|
+
function hi(e) {
|
|
3948
3940
|
if (e == null)
|
|
3949
3941
|
return;
|
|
3950
3942
|
const t = Ee(e);
|
|
3951
3943
|
for (let r = 0; r < t.length; r++) {
|
|
3952
3944
|
const n = t[r];
|
|
3953
|
-
if (
|
|
3945
|
+
if (rr(n))
|
|
3954
3946
|
return n;
|
|
3955
3947
|
}
|
|
3956
3948
|
}
|
|
3957
|
-
function
|
|
3949
|
+
function nr(e, ...t) {
|
|
3958
3950
|
delete G[e], ae.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
|
3959
3951
|
}
|
|
3960
3952
|
q(
|
|
3961
3953
|
[ae],
|
|
3962
3954
|
([e]) => Object.keys(e)
|
|
3963
3955
|
);
|
|
3964
|
-
ae.subscribe((e) =>
|
|
3965
|
-
const
|
|
3956
|
+
ae.subscribe((e) => Je = e);
|
|
3957
|
+
const de = {};
|
|
3966
3958
|
function ci(e, t) {
|
|
3967
|
-
|
|
3959
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3968
3960
|
}
|
|
3969
|
-
function
|
|
3970
|
-
return
|
|
3961
|
+
function ir(e) {
|
|
3962
|
+
return de[e];
|
|
3971
3963
|
}
|
|
3972
|
-
function
|
|
3964
|
+
function fi(e) {
|
|
3973
3965
|
return Ee(e).map((t) => {
|
|
3974
|
-
const r =
|
|
3966
|
+
const r = ir(t);
|
|
3975
3967
|
return [t, r ? [...r] : []];
|
|
3976
3968
|
}).filter(([, t]) => t.length > 0);
|
|
3977
3969
|
}
|
|
@@ -3979,27 +3971,27 @@ function We(e) {
|
|
|
3979
3971
|
return e == null ? !1 : Ee(e).some(
|
|
3980
3972
|
(t) => {
|
|
3981
3973
|
var r;
|
|
3982
|
-
return (r =
|
|
3974
|
+
return (r = ir(t)) == null ? void 0 : r.size;
|
|
3983
3975
|
}
|
|
3984
3976
|
);
|
|
3985
3977
|
}
|
|
3986
3978
|
function mi(e, t) {
|
|
3987
3979
|
return Promise.all(
|
|
3988
3980
|
t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
|
|
3989
|
-
).then((n) =>
|
|
3981
|
+
).then((n) => nr(e, ...n));
|
|
3990
3982
|
}
|
|
3991
3983
|
const te = {};
|
|
3992
|
-
function
|
|
3984
|
+
function or(e) {
|
|
3993
3985
|
if (!We(e))
|
|
3994
3986
|
return e in te ? te[e] : Promise.resolve();
|
|
3995
|
-
const t =
|
|
3987
|
+
const t = fi(e);
|
|
3996
3988
|
return te[e] = Promise.all(
|
|
3997
3989
|
t.map(
|
|
3998
3990
|
([r, n]) => mi(r, n)
|
|
3999
3991
|
)
|
|
4000
3992
|
).then(() => {
|
|
4001
3993
|
if (We(e))
|
|
4002
|
-
return
|
|
3994
|
+
return or(e);
|
|
4003
3995
|
delete te[e];
|
|
4004
3996
|
}), te[e];
|
|
4005
3997
|
}
|
|
@@ -4032,34 +4024,34 @@ const pi = {
|
|
|
4032
4024
|
timeZoneName: "short"
|
|
4033
4025
|
}
|
|
4034
4026
|
}
|
|
4035
|
-
},
|
|
4027
|
+
}, di = {
|
|
4036
4028
|
fallbackLocale: null,
|
|
4037
4029
|
loadingDelay: 200,
|
|
4038
4030
|
formats: pi,
|
|
4039
4031
|
warnOnMissingMessages: !0,
|
|
4040
4032
|
handleMissingMessage: void 0,
|
|
4041
4033
|
ignoreTag: !0
|
|
4042
|
-
},
|
|
4034
|
+
}, bi = di;
|
|
4043
4035
|
function Q() {
|
|
4044
|
-
return
|
|
4036
|
+
return bi;
|
|
4045
4037
|
}
|
|
4046
4038
|
const Pe = xe(!1);
|
|
4047
|
-
var
|
|
4048
|
-
for (var r in t)
|
|
4049
|
-
|
|
4050
|
-
if (
|
|
4051
|
-
for (var r of
|
|
4052
|
-
|
|
4039
|
+
var gi = Object.defineProperty, vi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
|
|
4040
|
+
for (var r in t || (t = {}))
|
|
4041
|
+
xi.call(t, r) && vt(e, r, t[r]);
|
|
4042
|
+
if (gt)
|
|
4043
|
+
for (var r of gt(t))
|
|
4044
|
+
_i.call(t, r) && vt(e, r, t[r]);
|
|
4053
4045
|
return e;
|
|
4054
|
-
},
|
|
4046
|
+
}, Si = (e, t) => vi(e, yi(t));
|
|
4055
4047
|
let ze;
|
|
4056
4048
|
const ge = xe(null);
|
|
4057
|
-
function
|
|
4049
|
+
function yt(e) {
|
|
4058
4050
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4059
4051
|
}
|
|
4060
4052
|
function Ee(e, t = Q().fallbackLocale) {
|
|
4061
|
-
const r =
|
|
4062
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4053
|
+
const r = yt(e);
|
|
4054
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
4063
4055
|
}
|
|
4064
4056
|
function U() {
|
|
4065
4057
|
return ze ?? void 0;
|
|
@@ -4067,22 +4059,22 @@ function U() {
|
|
|
4067
4059
|
ge.subscribe((e) => {
|
|
4068
4060
|
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4069
4061
|
});
|
|
4070
|
-
const
|
|
4071
|
-
if (e &&
|
|
4062
|
+
const Ti = (e) => {
|
|
4063
|
+
if (e && hi(e) && We(e)) {
|
|
4072
4064
|
const { loadingDelay: t } = Q();
|
|
4073
4065
|
let r;
|
|
4074
4066
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4075
4067
|
() => Pe.set(!0),
|
|
4076
4068
|
t
|
|
4077
|
-
) : Pe.set(!0),
|
|
4069
|
+
) : Pe.set(!0), or(e).then(() => {
|
|
4078
4070
|
ge.set(e);
|
|
4079
4071
|
}).finally(() => {
|
|
4080
4072
|
clearTimeout(r), Pe.set(!1);
|
|
4081
4073
|
});
|
|
4082
4074
|
}
|
|
4083
4075
|
return ge.set(e);
|
|
4084
|
-
}, K =
|
|
4085
|
-
set:
|
|
4076
|
+
}, K = Si(Ei({}, ge), {
|
|
4077
|
+
set: Ti
|
|
4086
4078
|
}), Se = (e) => {
|
|
4087
4079
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4088
4080
|
return (n) => {
|
|
@@ -4090,20 +4082,20 @@ const wi = (e) => {
|
|
|
4090
4082
|
return i in t ? t[i] : t[i] = e(n);
|
|
4091
4083
|
};
|
|
4092
4084
|
};
|
|
4093
|
-
var
|
|
4085
|
+
var wi = Object.defineProperty, ve = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4094
4086
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4096
|
-
if (
|
|
4097
|
-
for (var r of
|
|
4098
|
-
|
|
4087
|
+
sr.call(t, r) && xt(e, r, t[r]);
|
|
4088
|
+
if (ve)
|
|
4089
|
+
for (var r of ve(t))
|
|
4090
|
+
ar.call(t, r) && xt(e, r, t[r]);
|
|
4099
4091
|
return e;
|
|
4100
4092
|
}, ee = (e, t) => {
|
|
4101
4093
|
var r = {};
|
|
4102
4094
|
for (var n in e)
|
|
4103
|
-
|
|
4104
|
-
if (e != null &&
|
|
4105
|
-
for (var n of
|
|
4106
|
-
t.indexOf(n) < 0 &&
|
|
4095
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4096
|
+
if (e != null && ve)
|
|
4097
|
+
for (var n of ve(e))
|
|
4098
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
4107
4099
|
return r;
|
|
4108
4100
|
};
|
|
4109
4101
|
const oe = (e, t) => {
|
|
@@ -4111,21 +4103,21 @@ const oe = (e, t) => {
|
|
|
4111
4103
|
if (e in r && t in r[e])
|
|
4112
4104
|
return r[e][t];
|
|
4113
4105
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4114
|
-
},
|
|
4106
|
+
}, Hi = Se(
|
|
4115
4107
|
(e) => {
|
|
4116
4108
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4117
4109
|
if (r == null)
|
|
4118
4110
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4119
4111
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4120
4112
|
}
|
|
4121
|
-
),
|
|
4113
|
+
), Bi = Se(
|
|
4122
4114
|
(e) => {
|
|
4123
4115
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4124
4116
|
if (r == null)
|
|
4125
4117
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4126
4118
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4127
4119
|
}
|
|
4128
|
-
),
|
|
4120
|
+
), Ai = Se(
|
|
4129
4121
|
(e) => {
|
|
4130
4122
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4131
4123
|
if (r == null)
|
|
@@ -4134,33 +4126,33 @@ const oe = (e, t) => {
|
|
|
4134
4126
|
);
|
|
4135
4127
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4136
4128
|
}
|
|
4137
|
-
),
|
|
4129
|
+
), Ci = (e = {}) => {
|
|
4138
4130
|
var t = e, {
|
|
4139
4131
|
locale: r = U()
|
|
4140
4132
|
} = t, n = ee(t, [
|
|
4141
4133
|
"locale"
|
|
4142
4134
|
]);
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4135
|
+
return Hi(Ye({ locale: r }, n));
|
|
4136
|
+
}, Pi = (e = {}) => {
|
|
4145
4137
|
var t = e, {
|
|
4146
4138
|
locale: r = U()
|
|
4147
4139
|
} = t, n = ee(t, [
|
|
4148
4140
|
"locale"
|
|
4149
4141
|
]);
|
|
4150
|
-
return
|
|
4151
|
-
},
|
|
4142
|
+
return Bi(Ye({ locale: r }, n));
|
|
4143
|
+
}, Oi = (e = {}) => {
|
|
4152
4144
|
var t = e, {
|
|
4153
4145
|
locale: r = U()
|
|
4154
4146
|
} = t, n = ee(t, [
|
|
4155
4147
|
"locale"
|
|
4156
4148
|
]);
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4149
|
+
return Ai(Ye({ locale: r }, n));
|
|
4150
|
+
}, Ii = Se(
|
|
4159
4151
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4160
|
-
(e, t = U()) => new
|
|
4152
|
+
(e, t = U()) => new oi(e, t, Q().formats, {
|
|
4161
4153
|
ignoreTag: Q().ignoreTag
|
|
4162
4154
|
})
|
|
4163
|
-
),
|
|
4155
|
+
), Ni = (e, t = {}) => {
|
|
4164
4156
|
var r, n, i, o;
|
|
4165
4157
|
let s = t;
|
|
4166
4158
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4173,7 +4165,7 @@ const oe = (e, t) => {
|
|
|
4173
4165
|
throw new Error(
|
|
4174
4166
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4175
4167
|
);
|
|
4176
|
-
let h =
|
|
4168
|
+
let h = tr(e, l);
|
|
4177
4169
|
if (!h)
|
|
4178
4170
|
h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4179
4171
|
else if (typeof h != "string")
|
|
@@ -4182,30 +4174,30 @@ const oe = (e, t) => {
|
|
|
4182
4174
|
), h;
|
|
4183
4175
|
if (!a)
|
|
4184
4176
|
return h;
|
|
4185
|
-
let
|
|
4177
|
+
let c = h;
|
|
4186
4178
|
try {
|
|
4187
|
-
|
|
4188
|
-
} catch (
|
|
4189
|
-
|
|
4179
|
+
c = Ii(h, l).format(a);
|
|
4180
|
+
} catch (f) {
|
|
4181
|
+
f instanceof Error && console.warn(
|
|
4190
4182
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4191
|
-
|
|
4183
|
+
f.message
|
|
4192
4184
|
);
|
|
4193
4185
|
}
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4186
|
+
return c;
|
|
4187
|
+
}, Mi = (e, t) => Oi(t).format(e), Li = (e, t) => Pi(t).format(e), Ri = (e, t) => Ci(t).format(e), $i = (e, t = U()) => tr(e, t), Gi = q([K, ae], () => Ni);
|
|
4188
|
+
q([K], () => Mi);
|
|
4196
4189
|
q([K], () => Li);
|
|
4197
4190
|
q([K], () => Ri);
|
|
4198
|
-
q([K], () => $i);
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
ir(e, t);
|
|
4191
|
+
q([K, ae], () => $i);
|
|
4192
|
+
window.emWidgets = { topic: Jr };
|
|
4193
|
+
const Ui = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4194
|
+
function _t(e, t) {
|
|
4195
|
+
nr(e, t);
|
|
4204
4196
|
}
|
|
4205
|
-
function
|
|
4197
|
+
function Di(e) {
|
|
4206
4198
|
K.set(e);
|
|
4207
4199
|
}
|
|
4208
|
-
const
|
|
4200
|
+
const Et = {
|
|
4209
4201
|
en: {
|
|
4210
4202
|
cancel: "Cancel",
|
|
4211
4203
|
confirm: "Confirm"
|
|
@@ -4251,15 +4243,15 @@ const St = {
|
|
|
4251
4243
|
confirm: "Confirm"
|
|
4252
4244
|
}
|
|
4253
4245
|
};
|
|
4254
|
-
function
|
|
4246
|
+
function Fi(e) {
|
|
4255
4247
|
vr(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}');
|
|
4256
4248
|
}
|
|
4257
|
-
const
|
|
4258
|
-
function
|
|
4249
|
+
const ji = (e) => ({}), St = (e) => ({});
|
|
4250
|
+
function ki(e) {
|
|
4259
4251
|
let t, r;
|
|
4260
4252
|
return {
|
|
4261
4253
|
c() {
|
|
4262
|
-
t =
|
|
4254
|
+
t = Ke("svg"), r = Ke("path"), w(r, "stroke-linecap", "round"), w(r, "stroke-linejoin", "round"), w(r, "stroke-width", "2"), w(r, "d", "M6 18L18 6M6 6l12 12"), w(t, "class", "w-6 h-6"), w(t, "fill", "none"), w(t, "stroke", "currentColor"), w(t, "viewBox", "0 0 24 24"), w(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4263
4255
|
},
|
|
4264
4256
|
m(n, i) {
|
|
4265
4257
|
se(n, t, i), H(t, r);
|
|
@@ -4270,7 +4262,7 @@ function Vi(e) {
|
|
|
4270
4262
|
}
|
|
4271
4263
|
};
|
|
4272
4264
|
}
|
|
4273
|
-
function
|
|
4265
|
+
function Tt(e) {
|
|
4274
4266
|
let t, r, n;
|
|
4275
4267
|
return {
|
|
4276
4268
|
c() {
|
|
@@ -4295,7 +4287,7 @@ function wt(e) {
|
|
|
4295
4287
|
}
|
|
4296
4288
|
};
|
|
4297
4289
|
}
|
|
4298
|
-
function
|
|
4290
|
+
function wt(e) {
|
|
4299
4291
|
let t, r = (
|
|
4300
4292
|
/*$_*/
|
|
4301
4293
|
e[4]("cancel") + ""
|
|
@@ -4322,11 +4314,11 @@ function Ht(e) {
|
|
|
4322
4314
|
}
|
|
4323
4315
|
};
|
|
4324
4316
|
}
|
|
4325
|
-
function
|
|
4326
|
-
let t, r, n, i, o, s, a, l, u, h,
|
|
4317
|
+
function Vi(e) {
|
|
4318
|
+
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4327
4319
|
/*$_*/
|
|
4328
4320
|
e[4]("confirm") + ""
|
|
4329
|
-
), d, p,
|
|
4321
|
+
), m, d, p, A;
|
|
4330
4322
|
const O = (
|
|
4331
4323
|
/*#slots*/
|
|
4332
4324
|
e[15].close
|
|
@@ -4335,27 +4327,27 @@ function Xi(e) {
|
|
|
4335
4327
|
e,
|
|
4336
4328
|
/*$$scope*/
|
|
4337
4329
|
e[14],
|
|
4338
|
-
|
|
4339
|
-
),
|
|
4340
|
-
let
|
|
4330
|
+
St
|
|
4331
|
+
), S = C || ki();
|
|
4332
|
+
let T = (
|
|
4341
4333
|
/*modaltitle*/
|
|
4342
|
-
e[1] &&
|
|
4334
|
+
e[1] && Tt(e)
|
|
4343
4335
|
), _ = (
|
|
4344
4336
|
/*hascancelbutton*/
|
|
4345
|
-
e[2] &&
|
|
4337
|
+
e[2] && wt(e)
|
|
4346
4338
|
);
|
|
4347
4339
|
return {
|
|
4348
4340
|
c() {
|
|
4349
|
-
t = N("div"), r = N("div"), n = N("span"),
|
|
4341
|
+
t = N("div"), r = N("div"), n = N("span"), S && S.c(), i = ue(), T && T.c(), o = ue(), s = N("div"), a = ne(
|
|
4350
4342
|
/*modaltext*/
|
|
4351
4343
|
e[0]
|
|
4352
|
-
), l = ue(), u = N("div"), _ && _.c(), h = ue(),
|
|
4344
|
+
), l = ue(), u = N("div"), _ && _.c(), h = ue(), c = N("button"), m = ne(f), w(n, "class", "ModalCloseBtn"), w(n, "role", "button"), w(s, "class", "GeneralConfirmationContent"), w(c, "class", "GeneralConfirmButton"), w(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4353
4345
|
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), w(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4354
4346
|
(e[5] ? "GeneralConfirmationContainerMobile" : "")), w(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4355
4347
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4356
4348
|
},
|
|
4357
4349
|
m(x, P) {
|
|
4358
|
-
se(x, t, P), H(t, r), H(r, n),
|
|
4350
|
+
se(x, t, P), H(t, r), H(r, n), S && S.m(n, null), H(r, i), T && T.m(r, null), H(r, o), H(r, s), H(s, a), H(r, l), H(r, u), _ && _.m(u, null), H(u, h), H(u, c), H(c, m), e[18](t), d = !0, p || (A = [
|
|
4359
4351
|
Oe(
|
|
4360
4352
|
n,
|
|
4361
4353
|
"click",
|
|
@@ -4363,133 +4355,133 @@ function Xi(e) {
|
|
|
4363
4355
|
e[6]
|
|
4364
4356
|
),
|
|
4365
4357
|
Oe(
|
|
4366
|
-
|
|
4358
|
+
c,
|
|
4367
4359
|
"click",
|
|
4368
4360
|
/*click_handler_1*/
|
|
4369
4361
|
e[17]
|
|
4370
4362
|
)
|
|
4371
|
-
],
|
|
4363
|
+
], p = !0);
|
|
4372
4364
|
},
|
|
4373
4365
|
p(x, [P]) {
|
|
4374
|
-
C && C.p && (!
|
|
4375
|
-
16384) &&
|
|
4366
|
+
C && C.p && (!d || P & /*$$scope*/
|
|
4367
|
+
16384) && br(
|
|
4376
4368
|
C,
|
|
4377
4369
|
O,
|
|
4378
4370
|
x,
|
|
4379
4371
|
/*$$scope*/
|
|
4380
4372
|
x[14],
|
|
4381
|
-
|
|
4373
|
+
d ? dr(
|
|
4382
4374
|
O,
|
|
4383
4375
|
/*$$scope*/
|
|
4384
4376
|
x[14],
|
|
4385
4377
|
P,
|
|
4386
|
-
|
|
4387
|
-
) :
|
|
4378
|
+
ji
|
|
4379
|
+
) : gr(
|
|
4388
4380
|
/*$$scope*/
|
|
4389
4381
|
x[14]
|
|
4390
4382
|
),
|
|
4391
|
-
|
|
4383
|
+
St
|
|
4392
4384
|
), /*modaltitle*/
|
|
4393
|
-
x[1] ?
|
|
4385
|
+
x[1] ? T ? T.p(x, P) : (T = Tt(x), T.c(), T.m(r, o)) : T && (T.d(1), T = null), (!d || P & /*modaltext*/
|
|
4394
4386
|
1) && be(
|
|
4395
4387
|
a,
|
|
4396
4388
|
/*modaltext*/
|
|
4397
4389
|
x[0]
|
|
4398
4390
|
), /*hascancelbutton*/
|
|
4399
|
-
x[2] ? _ ? _.p(x, P) : (_ =
|
|
4400
|
-
16) &&
|
|
4401
|
-
x[4]("confirm") + "") && be(
|
|
4391
|
+
x[2] ? _ ? _.p(x, P) : (_ = wt(x), _.c(), _.m(u, h)) : _ && (_.d(1), _ = null), (!d || P & /*$_*/
|
|
4392
|
+
16) && f !== (f = /*$_*/
|
|
4393
|
+
x[4]("confirm") + "") && be(m, f);
|
|
4402
4394
|
},
|
|
4403
4395
|
i(x) {
|
|
4404
|
-
|
|
4396
|
+
d || (Pt(S, x), d = !0);
|
|
4405
4397
|
},
|
|
4406
4398
|
o(x) {
|
|
4407
|
-
|
|
4399
|
+
Ar(S, x), d = !1;
|
|
4408
4400
|
},
|
|
4409
4401
|
d(x) {
|
|
4410
|
-
x && Y(t),
|
|
4402
|
+
x && Y(t), S && S.d(x), T && T.d(), _ && _.d(), e[18](null), p = !1, J(A);
|
|
4411
4403
|
}
|
|
4412
4404
|
};
|
|
4413
4405
|
}
|
|
4414
|
-
function
|
|
4406
|
+
function Xi(e, t, r) {
|
|
4415
4407
|
let n;
|
|
4416
|
-
mr(e,
|
|
4417
|
-
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:
|
|
4408
|
+
mr(e, Gi, (b) => r(4, n = b));
|
|
4409
|
+
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, p, A = window.navigator.userAgent, O = Ui(A) !== "PC";
|
|
4418
4410
|
const C = () => {
|
|
4419
4411
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4420
|
-
},
|
|
4412
|
+
}, S = (b) => {
|
|
4421
4413
|
b === "confirm" && u && window.postMessage(u, window.location.href), b === "cancel" && h && window.postMessage(h, window.location.href), C();
|
|
4422
|
-
},
|
|
4414
|
+
}, T = () => {
|
|
4423
4415
|
let b = document.createElement("style");
|
|
4424
|
-
b.innerHTML =
|
|
4416
|
+
b.innerHTML = f, p.appendChild(b);
|
|
4425
4417
|
}, _ = () => {
|
|
4426
|
-
let b = new URL(
|
|
4418
|
+
let b = new URL(m), L = document.createElement("style");
|
|
4427
4419
|
fetch(b.href).then((D) => D.text()).then((D) => {
|
|
4428
4420
|
L.innerHTML = D, setTimeout(
|
|
4429
4421
|
() => {
|
|
4430
|
-
|
|
4422
|
+
p.appendChild(L);
|
|
4431
4423
|
},
|
|
4432
4424
|
1
|
|
4433
4425
|
);
|
|
4434
4426
|
});
|
|
4435
4427
|
}, x = () => {
|
|
4436
|
-
fetch(
|
|
4428
|
+
fetch(d).then((L) => L.json()).then((L) => {
|
|
4437
4429
|
Object.keys(L).forEach((D) => {
|
|
4438
|
-
|
|
4430
|
+
_t(D, L[D]);
|
|
4439
4431
|
});
|
|
4440
4432
|
}).catch((L) => {
|
|
4441
4433
|
console.log(L);
|
|
4442
4434
|
});
|
|
4443
4435
|
};
|
|
4444
|
-
Object.keys(
|
|
4445
|
-
|
|
4436
|
+
Object.keys(Et).forEach((b) => {
|
|
4437
|
+
_t(b, Et[b]);
|
|
4446
4438
|
});
|
|
4447
4439
|
const P = () => {
|
|
4448
|
-
|
|
4449
|
-
},
|
|
4450
|
-
function
|
|
4440
|
+
Di(c);
|
|
4441
|
+
}, ur = () => S("cancel"), lr = () => S("confirm");
|
|
4442
|
+
function hr(b) {
|
|
4451
4443
|
Ie[b ? "unshift" : "push"](() => {
|
|
4452
|
-
|
|
4444
|
+
p = b, r(3, p);
|
|
4453
4445
|
});
|
|
4454
4446
|
}
|
|
4455
4447
|
return e.$$set = (b) => {
|
|
4456
|
-
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10,
|
|
4448
|
+
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10, c = b.lang), "clientstyling" in b && r(11, f = b.clientstyling), "clientstylingurl" in b && r(12, m = b.clientstylingurl), "translationurl" in b && r(13, d = b.translationurl), "$$scope" in b && r(14, o = b.$$scope);
|
|
4457
4449
|
}, e.$$.update = () => {
|
|
4458
4450
|
e.$$.dirty & /*modaltext, lang*/
|
|
4459
|
-
1025 && s &&
|
|
4460
|
-
2056 &&
|
|
4461
|
-
4104 &&
|
|
4462
|
-
8192 &&
|
|
4451
|
+
1025 && s && c && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4452
|
+
2056 && f && p && T(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4453
|
+
4104 && m && p && _(), e.$$.dirty & /*translationurl*/
|
|
4454
|
+
8192 && d && x();
|
|
4463
4455
|
}, [
|
|
4464
4456
|
s,
|
|
4465
4457
|
a,
|
|
4466
4458
|
l,
|
|
4467
|
-
|
|
4459
|
+
p,
|
|
4468
4460
|
n,
|
|
4469
4461
|
O,
|
|
4470
4462
|
C,
|
|
4471
|
-
|
|
4463
|
+
S,
|
|
4472
4464
|
u,
|
|
4473
4465
|
h,
|
|
4474
|
-
f,
|
|
4475
4466
|
c,
|
|
4467
|
+
f,
|
|
4468
|
+
m,
|
|
4476
4469
|
d,
|
|
4477
|
-
p,
|
|
4478
4470
|
o,
|
|
4479
4471
|
i,
|
|
4472
|
+
ur,
|
|
4480
4473
|
lr,
|
|
4481
|
-
hr
|
|
4482
|
-
fr
|
|
4474
|
+
hr
|
|
4483
4475
|
];
|
|
4484
4476
|
}
|
|
4485
|
-
class
|
|
4477
|
+
class Wi extends Mr {
|
|
4486
4478
|
constructor(t) {
|
|
4487
|
-
super(),
|
|
4479
|
+
super(), Ir(
|
|
4488
4480
|
this,
|
|
4489
4481
|
t,
|
|
4490
|
-
Wi,
|
|
4491
4482
|
Xi,
|
|
4492
|
-
|
|
4483
|
+
Vi,
|
|
4484
|
+
Bt,
|
|
4493
4485
|
{
|
|
4494
4486
|
modaltext: 0,
|
|
4495
4487
|
modaltitle: 1,
|
|
@@ -4501,7 +4493,7 @@ class zi extends Lr {
|
|
|
4501
4493
|
clientstylingurl: 12,
|
|
4502
4494
|
translationurl: 13
|
|
4503
4495
|
},
|
|
4504
|
-
|
|
4496
|
+
Fi
|
|
4505
4497
|
);
|
|
4506
4498
|
}
|
|
4507
4499
|
get modaltext() {
|
|
@@ -4559,7 +4551,7 @@ class zi extends Lr {
|
|
|
4559
4551
|
this.$$set({ translationurl: t }), I();
|
|
4560
4552
|
}
|
|
4561
4553
|
}
|
|
4562
|
-
|
|
4554
|
+
Nr(Wi, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, ["close"], [], !0);
|
|
4563
4555
|
export {
|
|
4564
|
-
|
|
4556
|
+
Wi as P
|
|
4565
4557
|
};
|