@everymatrix/player-account-closure 1.65.3 → 1.66.0
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/{PlayerAccountClosure-C1zCWQSS.js → PlayerAccountClosure-DshjEyVb.js} +796 -761
- package/components/{PlayerAccountClosure-BqhOrK6c.js → PlayerAccountClosure-JdG06bPX.js} +824 -789
- package/components/PlayerAccountClosure-Wg7ZF8Mn.cjs +18 -0
- package/es2015/player-account-closure.cjs +1 -1
- package/es2015/player-account-closure.js +1 -1
- package/esnext/player-account-closure.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountClosure-CofAuA2Y.cjs +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function O() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function rt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function Y(e) {
|
|
10
|
+
e.forEach(Tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Je(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Bt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ar(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ht(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function At(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ur(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function g(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function lr(e, t, r) {
|
|
37
|
+
const n = cr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = B("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, hr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function cr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,8 +50,8 @@ function sr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function hr(e, t) {
|
|
54
|
+
return g(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
@@ -60,7 +60,7 @@ function ar(e, t) {
|
|
|
60
60
|
function ye(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function se(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function B(e) {
|
|
@@ -78,17 +78,17 @@ function D() {
|
|
|
78
78
|
function me(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function x(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function fr(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
87
|
function W(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function pr(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -97,87 +97,87 @@ function lr(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let ne;
|
|
101
|
+
function re(e) {
|
|
102
|
+
ne = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
104
|
+
function dr() {
|
|
105
|
+
if (!ne)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return ne;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function mr(e) {
|
|
110
|
+
dr().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const z = [],
|
|
112
|
+
const z = [], Ne = [];
|
|
113
113
|
let V = [];
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
114
|
+
const nt = [], br = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Le = !1;
|
|
116
|
+
function vr() {
|
|
117
|
+
Le || (Le = !0, br.then(R));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function $e(e) {
|
|
120
120
|
V.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const Se = /* @__PURE__ */ new Set();
|
|
123
123
|
let j = 0;
|
|
124
124
|
function R() {
|
|
125
125
|
if (j !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = ne;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
130
|
for (; j < z.length; ) {
|
|
131
131
|
const t = z[j];
|
|
132
|
-
j++,
|
|
132
|
+
j++, re(t), gr(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
135
|
throw z.length = 0, j = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
137
|
+
for (re(null), z.length = 0, j = 0; Ne.length; )
|
|
138
|
+
Ne.pop()();
|
|
139
139
|
for (let t = 0; t < V.length; t += 1) {
|
|
140
140
|
const r = V[t];
|
|
141
|
-
|
|
141
|
+
Se.has(r) || (Se.add(r), r());
|
|
142
142
|
}
|
|
143
143
|
V.length = 0;
|
|
144
144
|
} while (z.length);
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
for (; nt.length; )
|
|
146
|
+
nt.pop()();
|
|
147
|
+
Le = !1, Se.clear(), re(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function gr(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), Y(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function yr(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
158
|
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const xr = /* @__PURE__ */ new Set();
|
|
161
|
+
function _r(e, t) {
|
|
162
|
+
e && e.i && (xr.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Er(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const o = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), $e(() => {
|
|
167
|
+
const o = e.$$.on_mount.map(Tt).filter(Je);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach($e);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function wr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (yr(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (z.push(e),
|
|
175
|
+
function Cr(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (z.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const l =
|
|
180
|
-
|
|
178
|
+
function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
|
+
const l = ne;
|
|
180
|
+
re(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
@@ -185,7 +185,7 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
185
185
|
props: o,
|
|
186
186
|
update: O,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: rt(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,28 +194,28 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: rt(),
|
|
198
198
|
dirty: a,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || l.$$.root
|
|
201
201
|
};
|
|
202
202
|
s && s(u.root);
|
|
203
203
|
let c = !1;
|
|
204
|
-
if (u.ctx = r(e, t.props || {}, (f, h, ...
|
|
205
|
-
const m =
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c &&
|
|
207
|
-
}), u.update(), c = !0,
|
|
204
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, h, ...p) => {
|
|
205
|
+
const m = p.length ? p[0] : h;
|
|
206
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && Cr(e, f)), h;
|
|
207
|
+
}) : [], u.update(), c = !0, Y(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const f =
|
|
210
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
209
|
+
const f = fr(t.target);
|
|
210
|
+
u.fragment && u.fragment.l(f), f.forEach(se);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && _r(e.$$.fragment), Er(e, t.target, t.anchor), R();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
re(l);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let Mt;
|
|
218
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
257
257
|
let o;
|
|
258
258
|
return {
|
|
259
259
|
c: function() {
|
|
260
|
-
o = B("slot"), i !== "default" &&
|
|
260
|
+
o = B("slot"), i !== "default" && x(o, "name", i);
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* @param {HTMLElement} target
|
|
@@ -267,14 +267,14 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
267
267
|
ye(l, o, u);
|
|
268
268
|
},
|
|
269
269
|
d: function(l) {
|
|
270
|
-
l &&
|
|
270
|
+
l && se(o);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = pr(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
@@ -361,8 +361,8 @@ function he(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
let s = class extends
|
|
364
|
+
function Sr(e, t, r, n, i, o) {
|
|
365
|
+
let s = class extends Mt {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -390,7 +390,7 @@ function _r(e, t, r, n, i, o) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
s, s;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class Tr {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class wr {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
wr(this, 1), this.$destroy = O;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,7 +418,7 @@ class wr {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
421
|
+
if (!Je(r))
|
|
422
422
|
return O;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
@@ -431,11 +431,11 @@ class wr {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
437
|
+
const Br = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
439
439
|
/*! *****************************************************************************
|
|
440
440
|
Copyright (c) Microsoft Corporation.
|
|
441
441
|
|
|
@@ -450,43 +450,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
450
450
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
451
451
|
PERFORMANCE OF THIS SOFTWARE.
|
|
452
452
|
***************************************************************************** */
|
|
453
|
-
var
|
|
454
|
-
return
|
|
453
|
+
var Re = function(e, t) {
|
|
454
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
455
455
|
r.__proto__ = n;
|
|
456
456
|
} || function(r, n) {
|
|
457
457
|
for (var i in n)
|
|
458
458
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
459
|
-
},
|
|
459
|
+
}, Re(e, t);
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function ae(e, t) {
|
|
462
462
|
if (typeof t != "function" && t !== null)
|
|
463
463
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
464
|
-
|
|
464
|
+
Re(e, t);
|
|
465
465
|
function r() {
|
|
466
466
|
this.constructor = e;
|
|
467
467
|
}
|
|
468
468
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
469
469
|
}
|
|
470
|
-
|
|
471
|
-
return v = Object.assign || function(t) {
|
|
472
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
473
|
-
r = arguments[n];
|
|
474
|
-
for (var o in r)
|
|
475
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
476
|
-
}
|
|
477
|
-
return t;
|
|
478
|
-
}, v.apply(this, arguments);
|
|
479
|
-
};
|
|
480
|
-
function Ar(e, t) {
|
|
481
|
-
var r = {};
|
|
482
|
-
for (var n in e)
|
|
483
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
484
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
485
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
486
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
487
|
-
return r;
|
|
488
|
-
}
|
|
489
|
-
function Le(e) {
|
|
470
|
+
function De(e) {
|
|
490
471
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
491
472
|
if (r)
|
|
492
473
|
return r.call(e);
|
|
@@ -498,7 +479,7 @@ function Le(e) {
|
|
|
498
479
|
};
|
|
499
480
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
500
481
|
}
|
|
501
|
-
function
|
|
482
|
+
function Ue(e, t) {
|
|
502
483
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
503
484
|
if (!r)
|
|
504
485
|
return e;
|
|
@@ -518,8 +499,8 @@ function $e(e, t) {
|
|
|
518
499
|
}
|
|
519
500
|
return o;
|
|
520
501
|
}
|
|
521
|
-
function
|
|
522
|
-
if (
|
|
502
|
+
function Fe(e, t, r) {
|
|
503
|
+
if (arguments.length === 2)
|
|
523
504
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
524
505
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
525
506
|
return e.concat(o || t);
|
|
@@ -527,13 +508,13 @@ function X(e, t, r) {
|
|
|
527
508
|
function N(e) {
|
|
528
509
|
return typeof e == "function";
|
|
529
510
|
}
|
|
530
|
-
function
|
|
511
|
+
function Pt(e) {
|
|
531
512
|
var t = function(n) {
|
|
532
513
|
Error.call(n), n.stack = new Error().stack;
|
|
533
514
|
}, r = e(t);
|
|
534
515
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
535
516
|
}
|
|
536
|
-
var
|
|
517
|
+
var Te = Pt(function(e) {
|
|
537
518
|
return function(r) {
|
|
538
519
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
539
520
|
` + r.map(function(n, i) {
|
|
@@ -542,13 +523,13 @@ var Ae = Tt(function(e) {
|
|
|
542
523
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
543
524
|
};
|
|
544
525
|
});
|
|
545
|
-
function
|
|
526
|
+
function Ge(e, t) {
|
|
546
527
|
if (e) {
|
|
547
528
|
var r = e.indexOf(t);
|
|
548
529
|
0 <= r && e.splice(r, 1);
|
|
549
530
|
}
|
|
550
531
|
}
|
|
551
|
-
var
|
|
532
|
+
var xe = function() {
|
|
552
533
|
function e(t) {
|
|
553
534
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
554
535
|
}
|
|
@@ -560,12 +541,12 @@ var ve = function() {
|
|
|
560
541
|
if (s)
|
|
561
542
|
if (this._parentage = null, Array.isArray(s))
|
|
562
543
|
try {
|
|
563
|
-
for (var a =
|
|
544
|
+
for (var a = De(s), l = a.next(); !l.done; l = a.next()) {
|
|
564
545
|
var u = l.value;
|
|
565
546
|
u.remove(this);
|
|
566
547
|
}
|
|
567
|
-
} catch (
|
|
568
|
-
t = { error:
|
|
548
|
+
} catch (d) {
|
|
549
|
+
t = { error: d };
|
|
569
550
|
} finally {
|
|
570
551
|
try {
|
|
571
552
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -580,26 +561,26 @@ var ve = function() {
|
|
|
580
561
|
if (N(c))
|
|
581
562
|
try {
|
|
582
563
|
c();
|
|
583
|
-
} catch (
|
|
584
|
-
o =
|
|
564
|
+
} catch (d) {
|
|
565
|
+
o = d instanceof Te ? d.errors : [d];
|
|
585
566
|
}
|
|
586
567
|
var f = this._finalizers;
|
|
587
568
|
if (f) {
|
|
588
569
|
this._finalizers = null;
|
|
589
570
|
try {
|
|
590
|
-
for (var h =
|
|
591
|
-
var m =
|
|
571
|
+
for (var h = De(f), p = h.next(); !p.done; p = h.next()) {
|
|
572
|
+
var m = p.value;
|
|
592
573
|
try {
|
|
593
|
-
|
|
594
|
-
} catch (
|
|
595
|
-
o = o ?? [],
|
|
574
|
+
it(m);
|
|
575
|
+
} catch (d) {
|
|
576
|
+
o = o ?? [], d instanceof Te ? o = Fe(Fe([], Ue(o)), Ue(d.errors)) : o.push(d);
|
|
596
577
|
}
|
|
597
578
|
}
|
|
598
|
-
} catch (
|
|
599
|
-
n = { error:
|
|
579
|
+
} catch (d) {
|
|
580
|
+
n = { error: d };
|
|
600
581
|
} finally {
|
|
601
582
|
try {
|
|
602
|
-
|
|
583
|
+
p && !p.done && (i = h.return) && i.call(h);
|
|
603
584
|
} finally {
|
|
604
585
|
if (n)
|
|
605
586
|
throw n.error;
|
|
@@ -607,13 +588,13 @@ var ve = function() {
|
|
|
607
588
|
}
|
|
608
589
|
}
|
|
609
590
|
if (o)
|
|
610
|
-
throw new
|
|
591
|
+
throw new Te(o);
|
|
611
592
|
}
|
|
612
593
|
}, e.prototype.add = function(t) {
|
|
613
594
|
var r;
|
|
614
595
|
if (t && t !== this)
|
|
615
596
|
if (this.closed)
|
|
616
|
-
|
|
597
|
+
it(t);
|
|
617
598
|
else {
|
|
618
599
|
if (t instanceof e) {
|
|
619
600
|
if (t.closed || t._hasParent(this))
|
|
@@ -630,56 +611,52 @@ var ve = function() {
|
|
|
630
611
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
631
612
|
}, e.prototype._removeParent = function(t) {
|
|
632
613
|
var r = this._parentage;
|
|
633
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
614
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
|
|
634
615
|
}, e.prototype.remove = function(t) {
|
|
635
616
|
var r = this._finalizers;
|
|
636
|
-
r &&
|
|
617
|
+
r && Ge(r, t), t instanceof e && t._removeParent(this);
|
|
637
618
|
}, e.EMPTY = function() {
|
|
638
619
|
var t = new e();
|
|
639
620
|
return t.closed = !0, t;
|
|
640
621
|
}(), e;
|
|
641
|
-
}(),
|
|
642
|
-
function
|
|
643
|
-
return e instanceof
|
|
622
|
+
}(), Ot = xe.EMPTY;
|
|
623
|
+
function It(e) {
|
|
624
|
+
return e instanceof xe || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
644
625
|
}
|
|
645
|
-
function
|
|
626
|
+
function it(e) {
|
|
646
627
|
N(e) ? e() : e.unsubscribe();
|
|
647
628
|
}
|
|
648
|
-
var
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
Promise: void 0,
|
|
652
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
653
|
-
useDeprecatedNextContext: !1
|
|
654
|
-
}, Tr = {
|
|
629
|
+
var Hr = {
|
|
630
|
+
Promise: void 0
|
|
631
|
+
}, Mr = {
|
|
655
632
|
setTimeout: function(e, t) {
|
|
656
633
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
657
634
|
r[n - 2] = arguments[n];
|
|
658
|
-
return setTimeout.apply(void 0,
|
|
635
|
+
return setTimeout.apply(void 0, Fe([e, t], Ue(r)));
|
|
659
636
|
},
|
|
660
637
|
clearTimeout: function(e) {
|
|
661
638
|
return clearTimeout(e);
|
|
662
639
|
},
|
|
663
640
|
delegate: void 0
|
|
664
641
|
};
|
|
665
|
-
function
|
|
666
|
-
|
|
642
|
+
function Pr(e) {
|
|
643
|
+
Mr.setTimeout(function() {
|
|
667
644
|
throw e;
|
|
668
645
|
});
|
|
669
646
|
}
|
|
670
|
-
function
|
|
647
|
+
function ot() {
|
|
671
648
|
}
|
|
672
649
|
function fe(e) {
|
|
673
650
|
e();
|
|
674
651
|
}
|
|
675
|
-
var
|
|
676
|
-
|
|
652
|
+
var Nt = function(e) {
|
|
653
|
+
ae(t, e);
|
|
677
654
|
function t(r) {
|
|
678
655
|
var n = e.call(this) || this;
|
|
679
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
656
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Nr, n;
|
|
680
657
|
}
|
|
681
658
|
return t.create = function(r, n, i) {
|
|
682
|
-
return new
|
|
659
|
+
return new je(r, n, i);
|
|
683
660
|
}, t.prototype.next = function(r) {
|
|
684
661
|
this.isStopped || this._next(r);
|
|
685
662
|
}, t.prototype.error = function(r) {
|
|
@@ -703,7 +680,7 @@ var Mt = function(e) {
|
|
|
703
680
|
this.unsubscribe();
|
|
704
681
|
}
|
|
705
682
|
}, t;
|
|
706
|
-
}(
|
|
683
|
+
}(xe), Or = function() {
|
|
707
684
|
function e(t) {
|
|
708
685
|
this.partialObserver = t;
|
|
709
686
|
}
|
|
@@ -734,43 +711,43 @@ var Mt = function(e) {
|
|
|
734
711
|
le(r);
|
|
735
712
|
}
|
|
736
713
|
}, e;
|
|
737
|
-
}(),
|
|
738
|
-
|
|
714
|
+
}(), je = function(e) {
|
|
715
|
+
ae(t, e);
|
|
739
716
|
function t(r, n, i) {
|
|
740
717
|
var o = e.call(this) || this, s;
|
|
741
718
|
return N(r) || !r ? s = {
|
|
742
719
|
next: r ?? void 0,
|
|
743
720
|
error: n ?? void 0,
|
|
744
721
|
complete: i ?? void 0
|
|
745
|
-
} : s = r, o.destination = new
|
|
722
|
+
} : s = r, o.destination = new Or(s), o;
|
|
746
723
|
}
|
|
747
724
|
return t;
|
|
748
|
-
}(
|
|
725
|
+
}(Nt);
|
|
749
726
|
function le(e) {
|
|
750
|
-
|
|
727
|
+
Pr(e);
|
|
751
728
|
}
|
|
752
|
-
function
|
|
729
|
+
function Ir(e) {
|
|
753
730
|
throw e;
|
|
754
731
|
}
|
|
755
|
-
var
|
|
732
|
+
var Nr = {
|
|
756
733
|
closed: !0,
|
|
757
|
-
next:
|
|
758
|
-
error:
|
|
759
|
-
complete:
|
|
760
|
-
},
|
|
734
|
+
next: ot,
|
|
735
|
+
error: Ir,
|
|
736
|
+
complete: ot
|
|
737
|
+
}, Lr = function() {
|
|
761
738
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
762
739
|
}();
|
|
763
|
-
function
|
|
740
|
+
function $r(e) {
|
|
764
741
|
return e;
|
|
765
742
|
}
|
|
766
|
-
function
|
|
767
|
-
return e.length === 0 ?
|
|
743
|
+
function Rr(e) {
|
|
744
|
+
return e.length === 0 ? $r : e.length === 1 ? e[0] : function(r) {
|
|
768
745
|
return e.reduce(function(n, i) {
|
|
769
746
|
return i(n);
|
|
770
747
|
}, r);
|
|
771
748
|
};
|
|
772
749
|
}
|
|
773
|
-
var
|
|
750
|
+
var st = function() {
|
|
774
751
|
function e(t) {
|
|
775
752
|
t && (this._subscribe = t);
|
|
776
753
|
}
|
|
@@ -778,7 +755,7 @@ var rt = function() {
|
|
|
778
755
|
var r = new e();
|
|
779
756
|
return r.source = this, r.operator = t, r;
|
|
780
757
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
781
|
-
var i = this, o =
|
|
758
|
+
var i = this, o = Ur(t) ? t : new je(t, r, n);
|
|
782
759
|
return fe(function() {
|
|
783
760
|
var s = i, a = s.operator, l = s.source;
|
|
784
761
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -791,8 +768,8 @@ var rt = function() {
|
|
|
791
768
|
}
|
|
792
769
|
}, e.prototype.forEach = function(t, r) {
|
|
793
770
|
var n = this;
|
|
794
|
-
return r =
|
|
795
|
-
var s = new
|
|
771
|
+
return r = at(r), new r(function(i, o) {
|
|
772
|
+
var s = new je({
|
|
796
773
|
next: function(a) {
|
|
797
774
|
try {
|
|
798
775
|
t(a);
|
|
@@ -808,15 +785,15 @@ var rt = function() {
|
|
|
808
785
|
}, e.prototype._subscribe = function(t) {
|
|
809
786
|
var r;
|
|
810
787
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
811
|
-
}, e.prototype[
|
|
788
|
+
}, e.prototype[Lr] = function() {
|
|
812
789
|
return this;
|
|
813
790
|
}, e.prototype.pipe = function() {
|
|
814
791
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
815
792
|
t[r] = arguments[r];
|
|
816
|
-
return
|
|
793
|
+
return Rr(t)(this);
|
|
817
794
|
}, e.prototype.toPromise = function(t) {
|
|
818
795
|
var r = this;
|
|
819
|
-
return t =
|
|
796
|
+
return t = at(t), new t(function(n, i) {
|
|
820
797
|
var o;
|
|
821
798
|
r.subscribe(function(s) {
|
|
822
799
|
return o = s;
|
|
@@ -830,32 +807,32 @@ var rt = function() {
|
|
|
830
807
|
return new e(t);
|
|
831
808
|
}, e;
|
|
832
809
|
}();
|
|
833
|
-
function
|
|
810
|
+
function at(e) {
|
|
834
811
|
var t;
|
|
835
|
-
return (t = e ??
|
|
812
|
+
return (t = e ?? Hr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
836
813
|
}
|
|
837
|
-
function
|
|
814
|
+
function Dr(e) {
|
|
838
815
|
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
839
816
|
}
|
|
840
|
-
function
|
|
841
|
-
return e && e instanceof
|
|
817
|
+
function Ur(e) {
|
|
818
|
+
return e && e instanceof Nt || Dr(e) && It(e);
|
|
842
819
|
}
|
|
843
|
-
var
|
|
820
|
+
var Fr = Pt(function(e) {
|
|
844
821
|
return function() {
|
|
845
822
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
846
823
|
};
|
|
847
|
-
}),
|
|
848
|
-
|
|
824
|
+
}), Lt = function(e) {
|
|
825
|
+
ae(t, e);
|
|
849
826
|
function t() {
|
|
850
827
|
var r = e.call(this) || this;
|
|
851
828
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
852
829
|
}
|
|
853
830
|
return t.prototype.lift = function(r) {
|
|
854
|
-
var n = new
|
|
831
|
+
var n = new ut(this, this);
|
|
855
832
|
return n.operator = r, n;
|
|
856
833
|
}, t.prototype._throwIfClosed = function() {
|
|
857
834
|
if (this.closed)
|
|
858
|
-
throw new
|
|
835
|
+
throw new Fr();
|
|
859
836
|
}, t.prototype.next = function(r) {
|
|
860
837
|
var n = this;
|
|
861
838
|
fe(function() {
|
|
@@ -863,7 +840,7 @@ var Rr = Tt(function(e) {
|
|
|
863
840
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
864
841
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
865
842
|
try {
|
|
866
|
-
for (var s =
|
|
843
|
+
for (var s = De(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
867
844
|
var l = a.value;
|
|
868
845
|
l.next(r);
|
|
869
846
|
}
|
|
@@ -912,20 +889,20 @@ var Rr = Tt(function(e) {
|
|
|
912
889
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
913
890
|
}, t.prototype._innerSubscribe = function(r) {
|
|
914
891
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
915
|
-
return o || s ?
|
|
916
|
-
n.currentObservers = null,
|
|
892
|
+
return o || s ? Ot : (this.currentObservers = null, a.push(r), new xe(function() {
|
|
893
|
+
n.currentObservers = null, Ge(a, r);
|
|
917
894
|
}));
|
|
918
895
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
919
896
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
920
897
|
i ? r.error(o) : s && r.complete();
|
|
921
898
|
}, t.prototype.asObservable = function() {
|
|
922
|
-
var r = new
|
|
899
|
+
var r = new st();
|
|
923
900
|
return r.source = this, r;
|
|
924
901
|
}, t.create = function(r, n) {
|
|
925
|
-
return new
|
|
902
|
+
return new ut(r, n);
|
|
926
903
|
}, t;
|
|
927
|
-
}(
|
|
928
|
-
|
|
904
|
+
}(st), ut = function(e) {
|
|
905
|
+
ae(t, e);
|
|
929
906
|
function t(r, n) {
|
|
930
907
|
var i = e.call(this) || this;
|
|
931
908
|
return i.destination = r, i.source = n, i;
|
|
@@ -941,17 +918,17 @@ var Rr = Tt(function(e) {
|
|
|
941
918
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
942
919
|
}, t.prototype._subscribe = function(r) {
|
|
943
920
|
var n, i;
|
|
944
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
921
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
|
|
945
922
|
}, t;
|
|
946
|
-
}(
|
|
923
|
+
}(Lt), $t = {
|
|
947
924
|
now: function() {
|
|
948
|
-
return (
|
|
925
|
+
return ($t.delegate || Date).now();
|
|
949
926
|
},
|
|
950
927
|
delegate: void 0
|
|
951
|
-
},
|
|
952
|
-
|
|
928
|
+
}, Gr = function(e) {
|
|
929
|
+
ae(t, e);
|
|
953
930
|
function t(r, n, i) {
|
|
954
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
931
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
955
932
|
var o = e.call(this) || this;
|
|
956
933
|
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;
|
|
957
934
|
}
|
|
@@ -971,24 +948,24 @@ var Rr = Tt(function(e) {
|
|
|
971
948
|
u && o.splice(0, u + 1);
|
|
972
949
|
}
|
|
973
950
|
}, t;
|
|
974
|
-
}(
|
|
975
|
-
const
|
|
976
|
-
if (
|
|
977
|
-
const r = new
|
|
978
|
-
|
|
951
|
+
}(Lt);
|
|
952
|
+
const lt = [], ct = {}, jr = (e, t = 0) => {
|
|
953
|
+
if (lt.indexOf(e) == -1) {
|
|
954
|
+
const r = new Gr(t);
|
|
955
|
+
ct[e] = r, lt.push(e);
|
|
979
956
|
}
|
|
980
|
-
return
|
|
957
|
+
return ct[e];
|
|
981
958
|
}, k = [];
|
|
982
|
-
function
|
|
959
|
+
function kr(e, t) {
|
|
983
960
|
return {
|
|
984
|
-
subscribe:
|
|
961
|
+
subscribe: _e(e, t).subscribe
|
|
985
962
|
};
|
|
986
963
|
}
|
|
987
|
-
function
|
|
964
|
+
function _e(e, t = O) {
|
|
988
965
|
let r;
|
|
989
966
|
const n = /* @__PURE__ */ new Set();
|
|
990
967
|
function i(a) {
|
|
991
|
-
if (
|
|
968
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
992
969
|
const l = !k.length;
|
|
993
970
|
for (const u of n)
|
|
994
971
|
u[1](), k.push(u, e);
|
|
@@ -1010,12 +987,12 @@ function xe(e, t = O) {
|
|
|
1010
987
|
}
|
|
1011
988
|
return { set: i, update: o, subscribe: s };
|
|
1012
989
|
}
|
|
1013
|
-
function
|
|
990
|
+
function J(e, t, r) {
|
|
1014
991
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1015
992
|
if (!i.every(Boolean))
|
|
1016
993
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1017
994
|
const o = t.length < 2;
|
|
1018
|
-
return
|
|
995
|
+
return kr(r, (s, a) => {
|
|
1019
996
|
let l = !1;
|
|
1020
997
|
const u = [];
|
|
1021
998
|
let c = 0, f = O;
|
|
@@ -1024,131 +1001,170 @@ function K(e, t, r) {
|
|
|
1024
1001
|
return;
|
|
1025
1002
|
f();
|
|
1026
1003
|
const m = t(n ? u[0] : u, s, a);
|
|
1027
|
-
o ? s(m) : f =
|
|
1028
|
-
},
|
|
1029
|
-
(m,
|
|
1004
|
+
o ? s(m) : f = Je(m) ? m : O;
|
|
1005
|
+
}, p = i.map(
|
|
1006
|
+
(m, d) => Ht(
|
|
1030
1007
|
m,
|
|
1031
|
-
(
|
|
1032
|
-
u[
|
|
1008
|
+
(w) => {
|
|
1009
|
+
u[d] = w, c &= ~(1 << d), l && h();
|
|
1033
1010
|
},
|
|
1034
1011
|
() => {
|
|
1035
|
-
c |= 1 <<
|
|
1012
|
+
c |= 1 << d;
|
|
1036
1013
|
}
|
|
1037
1014
|
)
|
|
1038
1015
|
);
|
|
1039
1016
|
return l = !0, h(), function() {
|
|
1040
|
-
|
|
1017
|
+
Y(p), f(), l = !1;
|
|
1041
1018
|
};
|
|
1042
1019
|
});
|
|
1043
1020
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1021
|
+
function zr(e) {
|
|
1022
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1046
1023
|
}
|
|
1047
|
-
var
|
|
1048
|
-
return
|
|
1024
|
+
var Wr = function(t) {
|
|
1025
|
+
return Vr(t) && !Xr(t);
|
|
1049
1026
|
};
|
|
1050
|
-
function
|
|
1027
|
+
function Vr(e) {
|
|
1051
1028
|
return !!e && typeof e == "object";
|
|
1052
1029
|
}
|
|
1053
|
-
function
|
|
1030
|
+
function Xr(e) {
|
|
1054
1031
|
var t = Object.prototype.toString.call(e);
|
|
1055
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1032
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
1056
1033
|
}
|
|
1057
|
-
var
|
|
1058
|
-
function
|
|
1059
|
-
return e.$$typeof ===
|
|
1034
|
+
var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
|
|
1035
|
+
function Qr(e) {
|
|
1036
|
+
return e.$$typeof === qr;
|
|
1060
1037
|
}
|
|
1061
|
-
function
|
|
1038
|
+
function Yr(e) {
|
|
1062
1039
|
return Array.isArray(e) ? [] : {};
|
|
1063
1040
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1041
|
+
function ie(e, t) {
|
|
1042
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(Yr(e), e, t) : e;
|
|
1066
1043
|
}
|
|
1067
|
-
function
|
|
1044
|
+
function Jr(e, t, r) {
|
|
1068
1045
|
return e.concat(t).map(function(n) {
|
|
1069
|
-
return
|
|
1046
|
+
return ie(n, r);
|
|
1070
1047
|
});
|
|
1071
1048
|
}
|
|
1072
|
-
function
|
|
1049
|
+
function Kr(e, t) {
|
|
1073
1050
|
if (!t.customMerge)
|
|
1074
|
-
return
|
|
1051
|
+
return X;
|
|
1075
1052
|
var r = t.customMerge(e);
|
|
1076
|
-
return typeof r == "function" ? r :
|
|
1053
|
+
return typeof r == "function" ? r : X;
|
|
1077
1054
|
}
|
|
1078
|
-
function
|
|
1055
|
+
function en(e) {
|
|
1079
1056
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1080
1057
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1081
1058
|
}) : [];
|
|
1082
1059
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return Object.keys(e).concat(
|
|
1060
|
+
function ht(e) {
|
|
1061
|
+
return Object.keys(e).concat(en(e));
|
|
1085
1062
|
}
|
|
1086
|
-
function
|
|
1063
|
+
function Rt(e, t) {
|
|
1087
1064
|
try {
|
|
1088
1065
|
return t in e;
|
|
1089
1066
|
} catch {
|
|
1090
1067
|
return !1;
|
|
1091
1068
|
}
|
|
1092
1069
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return
|
|
1070
|
+
function tn(e, t) {
|
|
1071
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1095
1072
|
}
|
|
1096
|
-
function
|
|
1073
|
+
function rn(e, t, r) {
|
|
1097
1074
|
var n = {};
|
|
1098
|
-
return r.isMergeableObject(e) &&
|
|
1099
|
-
n[i] =
|
|
1100
|
-
}),
|
|
1101
|
-
|
|
1075
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1076
|
+
n[i] = ie(e[i], r);
|
|
1077
|
+
}), ht(t).forEach(function(i) {
|
|
1078
|
+
tn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1102
1079
|
}), n;
|
|
1103
1080
|
}
|
|
1104
|
-
function
|
|
1105
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1081
|
+
function X(e, t, r) {
|
|
1082
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Jr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1106
1083
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1107
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1084
|
+
return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) : ie(t, r);
|
|
1108
1085
|
}
|
|
1109
|
-
|
|
1086
|
+
X.all = function(t, r) {
|
|
1110
1087
|
if (!Array.isArray(t))
|
|
1111
1088
|
throw new Error("first argument should be an array");
|
|
1112
1089
|
return t.reduce(function(n, i) {
|
|
1113
|
-
return
|
|
1090
|
+
return X(n, i, r);
|
|
1114
1091
|
}, {});
|
|
1115
1092
|
};
|
|
1116
|
-
var
|
|
1117
|
-
const
|
|
1118
|
-
function
|
|
1119
|
-
|
|
1093
|
+
var nn = X, on = nn;
|
|
1094
|
+
const sn = /* @__PURE__ */ zr(on);
|
|
1095
|
+
var ke = function(e, t) {
|
|
1096
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1097
|
+
r.__proto__ = n;
|
|
1098
|
+
} || function(r, n) {
|
|
1099
|
+
for (var i in n)
|
|
1100
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1101
|
+
}, ke(e, t);
|
|
1102
|
+
};
|
|
1103
|
+
function Ee(e, t) {
|
|
1104
|
+
if (typeof t != "function" && t !== null)
|
|
1105
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1106
|
+
ke(e, t);
|
|
1107
|
+
function r() {
|
|
1108
|
+
this.constructor = e;
|
|
1109
|
+
}
|
|
1110
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1111
|
+
}
|
|
1112
|
+
var I = function() {
|
|
1113
|
+
return I = Object.assign || function(t) {
|
|
1114
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1115
|
+
r = arguments[n];
|
|
1116
|
+
for (var o in r)
|
|
1117
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1118
|
+
}
|
|
1119
|
+
return t;
|
|
1120
|
+
}, I.apply(this, arguments);
|
|
1121
|
+
};
|
|
1122
|
+
function an(e, t) {
|
|
1123
|
+
var r = {};
|
|
1124
|
+
for (var n in e)
|
|
1125
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1126
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1127
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1128
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1129
|
+
return r;
|
|
1130
|
+
}
|
|
1131
|
+
function Be(e, t, r) {
|
|
1132
|
+
if (r || arguments.length === 2)
|
|
1133
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1134
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1135
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1136
|
+
}
|
|
1137
|
+
function He(e, t) {
|
|
1138
|
+
var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : cn;
|
|
1120
1139
|
return i(e, {
|
|
1121
1140
|
cache: r,
|
|
1122
1141
|
serializer: n
|
|
1123
1142
|
});
|
|
1124
1143
|
}
|
|
1125
|
-
function
|
|
1144
|
+
function un(e) {
|
|
1126
1145
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1127
1146
|
}
|
|
1128
|
-
function
|
|
1129
|
-
var i =
|
|
1147
|
+
function ln(e, t, r, n) {
|
|
1148
|
+
var i = un(n) ? n : r(n), o = t.get(i);
|
|
1130
1149
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1131
1150
|
}
|
|
1132
|
-
function
|
|
1151
|
+
function Dt(e, t, r) {
|
|
1133
1152
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1134
1153
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1135
1154
|
}
|
|
1136
|
-
function
|
|
1155
|
+
function Ut(e, t, r, n, i) {
|
|
1137
1156
|
return r.bind(t, e, n, i);
|
|
1138
1157
|
}
|
|
1139
|
-
function
|
|
1140
|
-
var r = e.length === 1 ?
|
|
1141
|
-
return
|
|
1158
|
+
function cn(e, t) {
|
|
1159
|
+
var r = e.length === 1 ? ln : Dt;
|
|
1160
|
+
return Ut(e, this, r, t.cache.create(), t.serializer);
|
|
1142
1161
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1162
|
+
function hn(e, t) {
|
|
1163
|
+
return Ut(e, this, Dt, t.cache.create(), t.serializer);
|
|
1145
1164
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return Ze(e, this, It, t.cache.create(), t.serializer);
|
|
1148
|
-
}
|
|
1149
|
-
var un = function() {
|
|
1165
|
+
var fn = function() {
|
|
1150
1166
|
return JSON.stringify(arguments);
|
|
1151
|
-
},
|
|
1167
|
+
}, pn = (
|
|
1152
1168
|
/** @class */
|
|
1153
1169
|
function() {
|
|
1154
1170
|
function e() {
|
|
@@ -1160,62 +1176,71 @@ var un = function() {
|
|
|
1160
1176
|
this.cache[t] = r;
|
|
1161
1177
|
}, e;
|
|
1162
1178
|
}()
|
|
1163
|
-
),
|
|
1179
|
+
), dn = {
|
|
1164
1180
|
create: function() {
|
|
1165
|
-
return new
|
|
1181
|
+
return new pn();
|
|
1166
1182
|
}
|
|
1167
|
-
},
|
|
1168
|
-
variadic:
|
|
1169
|
-
|
|
1170
|
-
|
|
1183
|
+
}, Me = {
|
|
1184
|
+
variadic: hn
|
|
1185
|
+
}, be = function() {
|
|
1186
|
+
return be = Object.assign || function(t) {
|
|
1187
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1188
|
+
r = arguments[n];
|
|
1189
|
+
for (var o in r)
|
|
1190
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1191
|
+
}
|
|
1192
|
+
return t;
|
|
1193
|
+
}, be.apply(this, arguments);
|
|
1194
|
+
};
|
|
1195
|
+
var b;
|
|
1171
1196
|
(function(e) {
|
|
1172
1197
|
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";
|
|
1173
1198
|
})(b || (b = {}));
|
|
1174
|
-
var
|
|
1199
|
+
var E;
|
|
1175
1200
|
(function(e) {
|
|
1176
1201
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1177
|
-
})(
|
|
1178
|
-
var
|
|
1202
|
+
})(E || (E = {}));
|
|
1203
|
+
var Z;
|
|
1179
1204
|
(function(e) {
|
|
1180
1205
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1181
|
-
})(
|
|
1182
|
-
function
|
|
1183
|
-
return e.type ===
|
|
1206
|
+
})(Z || (Z = {}));
|
|
1207
|
+
function ft(e) {
|
|
1208
|
+
return e.type === E.literal;
|
|
1184
1209
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return e.type ===
|
|
1210
|
+
function mn(e) {
|
|
1211
|
+
return e.type === E.argument;
|
|
1187
1212
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return e.type ===
|
|
1213
|
+
function Ft(e) {
|
|
1214
|
+
return e.type === E.number;
|
|
1190
1215
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return e.type ===
|
|
1216
|
+
function Gt(e) {
|
|
1217
|
+
return e.type === E.date;
|
|
1193
1218
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return e.type ===
|
|
1219
|
+
function jt(e) {
|
|
1220
|
+
return e.type === E.time;
|
|
1196
1221
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return e.type ===
|
|
1222
|
+
function kt(e) {
|
|
1223
|
+
return e.type === E.select;
|
|
1199
1224
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return e.type ===
|
|
1225
|
+
function zt(e) {
|
|
1226
|
+
return e.type === E.plural;
|
|
1202
1227
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return e.type ===
|
|
1228
|
+
function bn(e) {
|
|
1229
|
+
return e.type === E.pound;
|
|
1205
1230
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return e.type ===
|
|
1231
|
+
function Wt(e) {
|
|
1232
|
+
return e.type === E.tag;
|
|
1208
1233
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1234
|
+
function Vt(e) {
|
|
1235
|
+
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1211
1236
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1237
|
+
function ze(e) {
|
|
1238
|
+
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1214
1239
|
}
|
|
1215
|
-
var
|
|
1216
|
-
function
|
|
1240
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[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;
|
|
1241
|
+
function gn(e) {
|
|
1217
1242
|
var t = {};
|
|
1218
|
-
return e.replace(
|
|
1243
|
+
return e.replace(vn, function(r) {
|
|
1219
1244
|
var n = r.length;
|
|
1220
1245
|
switch (r[0]) {
|
|
1221
1246
|
case "G":
|
|
@@ -1304,11 +1329,21 @@ function pn(e) {
|
|
|
1304
1329
|
return "";
|
|
1305
1330
|
}), t;
|
|
1306
1331
|
}
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1332
|
+
var S = function() {
|
|
1333
|
+
return S = Object.assign || function(t) {
|
|
1334
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1335
|
+
r = arguments[n];
|
|
1336
|
+
for (var o in r)
|
|
1337
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1338
|
+
}
|
|
1339
|
+
return t;
|
|
1340
|
+
}, S.apply(this, arguments);
|
|
1341
|
+
};
|
|
1342
|
+
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1343
|
+
function xn(e) {
|
|
1309
1344
|
if (e.length === 0)
|
|
1310
1345
|
throw new Error("Number skeleton cannot be empty");
|
|
1311
|
-
for (var t = e.split(
|
|
1346
|
+
for (var t = e.split(yn).filter(function(h) {
|
|
1312
1347
|
return h.length > 0;
|
|
1313
1348
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1314
1349
|
var o = i[n], s = o.split("/");
|
|
@@ -1323,17 +1358,17 @@ function bn(e) {
|
|
|
1323
1358
|
}
|
|
1324
1359
|
return r;
|
|
1325
1360
|
}
|
|
1326
|
-
function
|
|
1361
|
+
function _n(e) {
|
|
1327
1362
|
return e.replace(/^(.*?)-/, "");
|
|
1328
1363
|
}
|
|
1329
|
-
var
|
|
1330
|
-
function
|
|
1364
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1365
|
+
function dt(e) {
|
|
1331
1366
|
var t = {};
|
|
1332
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1367
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1333
1368
|
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)), "";
|
|
1334
1369
|
}), t;
|
|
1335
1370
|
}
|
|
1336
|
-
function
|
|
1371
|
+
function Qt(e) {
|
|
1337
1372
|
switch (e) {
|
|
1338
1373
|
case "sign-auto":
|
|
1339
1374
|
return {
|
|
@@ -1373,7 +1408,7 @@ function Vt(e) {
|
|
|
1373
1408
|
};
|
|
1374
1409
|
}
|
|
1375
1410
|
}
|
|
1376
|
-
function
|
|
1411
|
+
function wn(e) {
|
|
1377
1412
|
var t;
|
|
1378
1413
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1379
1414
|
notation: "engineering"
|
|
@@ -1381,17 +1416,17 @@ function vn(e) {
|
|
|
1381
1416
|
notation: "scientific"
|
|
1382
1417
|
}, e = e.slice(1)), t) {
|
|
1383
1418
|
var r = e.slice(0, 2);
|
|
1384
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1419
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1385
1420
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1386
1421
|
t.minimumIntegerDigits = e.length;
|
|
1387
1422
|
}
|
|
1388
1423
|
return t;
|
|
1389
1424
|
}
|
|
1390
|
-
function
|
|
1391
|
-
var t = {}, r =
|
|
1425
|
+
function mt(e) {
|
|
1426
|
+
var t = {}, r = Qt(e);
|
|
1392
1427
|
return r || t;
|
|
1393
1428
|
}
|
|
1394
|
-
function
|
|
1429
|
+
function Cn(e) {
|
|
1395
1430
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1396
1431
|
var i = n[r];
|
|
1397
1432
|
switch (i.stem) {
|
|
@@ -1415,7 +1450,7 @@ function xn(e) {
|
|
|
1415
1450
|
continue;
|
|
1416
1451
|
case "measure-unit":
|
|
1417
1452
|
case "unit":
|
|
1418
|
-
t.style = "unit", t.unit =
|
|
1453
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
1419
1454
|
continue;
|
|
1420
1455
|
case "compact-short":
|
|
1421
1456
|
case "K":
|
|
@@ -1426,13 +1461,13 @@ function xn(e) {
|
|
|
1426
1461
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1427
1462
|
continue;
|
|
1428
1463
|
case "scientific":
|
|
1429
|
-
t =
|
|
1430
|
-
return
|
|
1464
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1465
|
+
return S(S({}, l), mt(u));
|
|
1431
1466
|
}, {}));
|
|
1432
1467
|
continue;
|
|
1433
1468
|
case "engineering":
|
|
1434
|
-
t =
|
|
1435
|
-
return
|
|
1469
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1470
|
+
return S(S({}, l), mt(u));
|
|
1436
1471
|
}, {}));
|
|
1437
1472
|
continue;
|
|
1438
1473
|
case "notation-simple":
|
|
@@ -1477,41 +1512,41 @@ function xn(e) {
|
|
|
1477
1512
|
case "integer-width":
|
|
1478
1513
|
if (i.options.length > 1)
|
|
1479
1514
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1480
|
-
i.options[0].replace(
|
|
1515
|
+
i.options[0].replace(En, function(l, u, c, f, h, p) {
|
|
1481
1516
|
if (u)
|
|
1482
1517
|
t.minimumIntegerDigits = c.length;
|
|
1483
1518
|
else {
|
|
1484
1519
|
if (f && h)
|
|
1485
1520
|
throw new Error("We currently do not support maximum integer digits");
|
|
1486
|
-
if (
|
|
1521
|
+
if (p)
|
|
1487
1522
|
throw new Error("We currently do not support exact integer digits");
|
|
1488
1523
|
}
|
|
1489
1524
|
return "";
|
|
1490
1525
|
});
|
|
1491
1526
|
continue;
|
|
1492
1527
|
}
|
|
1493
|
-
if (
|
|
1528
|
+
if (qt.test(i.stem)) {
|
|
1494
1529
|
t.minimumIntegerDigits = i.stem.length;
|
|
1495
1530
|
continue;
|
|
1496
1531
|
}
|
|
1497
|
-
if (
|
|
1532
|
+
if (pt.test(i.stem)) {
|
|
1498
1533
|
if (i.options.length > 1)
|
|
1499
1534
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1500
|
-
i.stem.replace(
|
|
1501
|
-
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h &&
|
|
1535
|
+
i.stem.replace(pt, function(l, u, c, f, h, p) {
|
|
1536
|
+
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && p ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1502
1537
|
});
|
|
1503
1538
|
var o = i.options[0];
|
|
1504
|
-
o === "w" ? t =
|
|
1539
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), dt(o)));
|
|
1505
1540
|
continue;
|
|
1506
1541
|
}
|
|
1507
|
-
if (
|
|
1508
|
-
t =
|
|
1542
|
+
if (Zt.test(i.stem)) {
|
|
1543
|
+
t = S(S({}, t), dt(i.stem));
|
|
1509
1544
|
continue;
|
|
1510
1545
|
}
|
|
1511
|
-
var s =
|
|
1512
|
-
s && (t =
|
|
1513
|
-
var a =
|
|
1514
|
-
a && (t =
|
|
1546
|
+
var s = Qt(i.stem);
|
|
1547
|
+
s && (t = S(S({}, t), s));
|
|
1548
|
+
var a = wn(i.stem);
|
|
1549
|
+
a && (t = S(S({}, t), a));
|
|
1515
1550
|
}
|
|
1516
1551
|
return t;
|
|
1517
1552
|
}
|
|
@@ -2930,13 +2965,13 @@ var ce = {
|
|
|
2930
2965
|
"h"
|
|
2931
2966
|
]
|
|
2932
2967
|
};
|
|
2933
|
-
function
|
|
2968
|
+
function An(e, t) {
|
|
2934
2969
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2935
2970
|
var i = e.charAt(n);
|
|
2936
2971
|
if (i === "j") {
|
|
2937
2972
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2938
2973
|
o++, n++;
|
|
2939
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2974
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Sn(t);
|
|
2940
2975
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2941
2976
|
r += l;
|
|
2942
2977
|
for (; s-- > 0; )
|
|
@@ -2946,7 +2981,7 @@ function En(e, t) {
|
|
|
2946
2981
|
}
|
|
2947
2982
|
return r;
|
|
2948
2983
|
}
|
|
2949
|
-
function
|
|
2984
|
+
function Sn(e) {
|
|
2950
2985
|
var t = e.hourCycle;
|
|
2951
2986
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2952
2987
|
e.hourCycles && // @ts-ignore
|
|
@@ -2968,20 +3003,20 @@ function _n(e) {
|
|
|
2968
3003
|
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2969
3004
|
return i[0];
|
|
2970
3005
|
}
|
|
2971
|
-
var
|
|
2972
|
-
function
|
|
3006
|
+
var Pe, Tn = new RegExp("^".concat(Xt.source, "*")), Bn = new RegExp("".concat(Xt.source, "*$"));
|
|
3007
|
+
function v(e, t) {
|
|
2973
3008
|
return { start: e, end: t };
|
|
2974
3009
|
}
|
|
2975
|
-
var
|
|
3010
|
+
var Hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Pn = !!Object.fromEntries, On = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Ln = !!Number.isSafeInteger, $n = Ln ? Number.isSafeInteger : function(e) {
|
|
2976
3011
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2977
|
-
},
|
|
3012
|
+
}, We = !0;
|
|
2978
3013
|
try {
|
|
2979
|
-
var
|
|
2980
|
-
|
|
3014
|
+
var Rn = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3015
|
+
We = ((Pe = Rn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2981
3016
|
} catch {
|
|
2982
|
-
|
|
3017
|
+
We = !1;
|
|
2983
3018
|
}
|
|
2984
|
-
var
|
|
3019
|
+
var bt = Hn ? (
|
|
2985
3020
|
// Native
|
|
2986
3021
|
function(t, r, n) {
|
|
2987
3022
|
return t.startsWith(r, n);
|
|
@@ -2991,7 +3026,7 @@ var ft = An ? (
|
|
|
2991
3026
|
function(t, r, n) {
|
|
2992
3027
|
return t.slice(n, n + r.length) === r;
|
|
2993
3028
|
}
|
|
2994
|
-
),
|
|
3029
|
+
), Ve = Mn ? String.fromCodePoint : (
|
|
2995
3030
|
// IE11
|
|
2996
3031
|
function() {
|
|
2997
3032
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3003,9 +3038,9 @@ var ft = An ? (
|
|
|
3003
3038
|
}
|
|
3004
3039
|
return n;
|
|
3005
3040
|
}
|
|
3006
|
-
),
|
|
3041
|
+
), vt = (
|
|
3007
3042
|
// native
|
|
3008
|
-
|
|
3043
|
+
Pn ? Object.fromEntries : (
|
|
3009
3044
|
// Ponyfill
|
|
3010
3045
|
function(t) {
|
|
3011
3046
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3015,7 +3050,7 @@ var ft = An ? (
|
|
|
3015
3050
|
return r;
|
|
3016
3051
|
}
|
|
3017
3052
|
)
|
|
3018
|
-
),
|
|
3053
|
+
), Yt = On ? (
|
|
3019
3054
|
// Native
|
|
3020
3055
|
function(t, r) {
|
|
3021
3056
|
return t.codePointAt(r);
|
|
@@ -3029,7 +3064,7 @@ var ft = An ? (
|
|
|
3029
3064
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3030
3065
|
}
|
|
3031
3066
|
}
|
|
3032
|
-
),
|
|
3067
|
+
), Dn = In ? (
|
|
3033
3068
|
// Native
|
|
3034
3069
|
function(t) {
|
|
3035
3070
|
return t.trimStart();
|
|
@@ -3037,9 +3072,9 @@ var ft = An ? (
|
|
|
3037
3072
|
) : (
|
|
3038
3073
|
// Ponyfill
|
|
3039
3074
|
function(t) {
|
|
3040
|
-
return t.replace(
|
|
3075
|
+
return t.replace(Tn, "");
|
|
3041
3076
|
}
|
|
3042
|
-
),
|
|
3077
|
+
), Un = Nn ? (
|
|
3043
3078
|
// Native
|
|
3044
3079
|
function(t) {
|
|
3045
3080
|
return t.trimEnd();
|
|
@@ -3047,32 +3082,32 @@ var ft = An ? (
|
|
|
3047
3082
|
) : (
|
|
3048
3083
|
// Ponyfill
|
|
3049
3084
|
function(t) {
|
|
3050
|
-
return t.replace(
|
|
3085
|
+
return t.replace(Bn, "");
|
|
3051
3086
|
}
|
|
3052
3087
|
);
|
|
3053
|
-
function
|
|
3088
|
+
function Jt(e, t) {
|
|
3054
3089
|
return new RegExp(e, t);
|
|
3055
3090
|
}
|
|
3056
|
-
var
|
|
3057
|
-
if (
|
|
3058
|
-
var
|
|
3059
|
-
|
|
3091
|
+
var Xe;
|
|
3092
|
+
if (We) {
|
|
3093
|
+
var gt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3094
|
+
Xe = function(t, r) {
|
|
3060
3095
|
var n;
|
|
3061
|
-
|
|
3062
|
-
var i =
|
|
3096
|
+
gt.lastIndex = r;
|
|
3097
|
+
var i = gt.exec(t);
|
|
3063
3098
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3064
3099
|
};
|
|
3065
3100
|
} else
|
|
3066
|
-
|
|
3101
|
+
Xe = function(t, r) {
|
|
3067
3102
|
for (var n = []; ; ) {
|
|
3068
|
-
var i =
|
|
3069
|
-
if (i === void 0 ||
|
|
3103
|
+
var i = Yt(t, r);
|
|
3104
|
+
if (i === void 0 || Kt(i) || kn(i))
|
|
3070
3105
|
break;
|
|
3071
3106
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3072
3107
|
}
|
|
3073
|
-
return
|
|
3108
|
+
return Ve.apply(void 0, n);
|
|
3074
3109
|
};
|
|
3075
|
-
var
|
|
3110
|
+
var Fn = (
|
|
3076
3111
|
/** @class */
|
|
3077
3112
|
function() {
|
|
3078
3113
|
function e(t, r) {
|
|
@@ -3096,14 +3131,14 @@ var $n = (
|
|
|
3096
3131
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3097
3132
|
var a = this.clonePosition();
|
|
3098
3133
|
this.bump(), i.push({
|
|
3099
|
-
type:
|
|
3100
|
-
location:
|
|
3134
|
+
type: E.pound,
|
|
3135
|
+
location: v(a, this.clonePosition())
|
|
3101
3136
|
});
|
|
3102
3137
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3103
3138
|
if (n)
|
|
3104
3139
|
break;
|
|
3105
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3106
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3140
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3141
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3107
3142
|
var s = this.parseTag(t, r);
|
|
3108
3143
|
if (s.err)
|
|
3109
3144
|
return s;
|
|
@@ -3124,9 +3159,9 @@ var $n = (
|
|
|
3124
3159
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3125
3160
|
return {
|
|
3126
3161
|
val: {
|
|
3127
|
-
type:
|
|
3162
|
+
type: E.literal,
|
|
3128
3163
|
value: "<".concat(i, "/>"),
|
|
3129
|
-
location:
|
|
3164
|
+
location: v(n, this.clonePosition())
|
|
3130
3165
|
},
|
|
3131
3166
|
err: null
|
|
3132
3167
|
};
|
|
@@ -3136,25 +3171,25 @@ var $n = (
|
|
|
3136
3171
|
return o;
|
|
3137
3172
|
var s = o.val, a = this.clonePosition();
|
|
3138
3173
|
if (this.bumpIf("</")) {
|
|
3139
|
-
if (this.isEOF() || !
|
|
3140
|
-
return this.error(b.INVALID_TAG,
|
|
3174
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3175
|
+
return this.error(b.INVALID_TAG, v(a, this.clonePosition()));
|
|
3141
3176
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3142
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3177
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3143
3178
|
val: {
|
|
3144
|
-
type:
|
|
3179
|
+
type: E.tag,
|
|
3145
3180
|
value: i,
|
|
3146
3181
|
children: s,
|
|
3147
|
-
location:
|
|
3182
|
+
location: v(n, this.clonePosition())
|
|
3148
3183
|
},
|
|
3149
3184
|
err: null
|
|
3150
|
-
} : this.error(b.INVALID_TAG,
|
|
3185
|
+
} : this.error(b.INVALID_TAG, v(a, this.clonePosition())));
|
|
3151
3186
|
} else
|
|
3152
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3187
|
+
return this.error(b.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3153
3188
|
} else
|
|
3154
|
-
return this.error(b.INVALID_TAG,
|
|
3189
|
+
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3155
3190
|
}, e.prototype.parseTagName = function() {
|
|
3156
3191
|
var t = this.offset();
|
|
3157
|
-
for (this.bump(); !this.isEOF() &&
|
|
3192
|
+
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
3158
3193
|
this.bump();
|
|
3159
3194
|
return this.message.slice(t, this.offset());
|
|
3160
3195
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3176,14 +3211,14 @@ var $n = (
|
|
|
3176
3211
|
}
|
|
3177
3212
|
break;
|
|
3178
3213
|
}
|
|
3179
|
-
var l =
|
|
3214
|
+
var l = v(n, this.clonePosition());
|
|
3180
3215
|
return {
|
|
3181
|
-
val: { type:
|
|
3216
|
+
val: { type: E.literal, value: i, location: l },
|
|
3182
3217
|
err: null
|
|
3183
3218
|
};
|
|
3184
3219
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3185
3220
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3186
|
-
!
|
|
3221
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3187
3222
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3188
3223
|
if (this.isEOF() || this.char() !== 39)
|
|
3189
3224
|
return null;
|
|
@@ -3217,49 +3252,49 @@ var $n = (
|
|
|
3217
3252
|
r.push(n);
|
|
3218
3253
|
this.bump();
|
|
3219
3254
|
}
|
|
3220
|
-
return
|
|
3255
|
+
return Ve.apply(void 0, r);
|
|
3221
3256
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3222
3257
|
if (this.isEOF())
|
|
3223
3258
|
return null;
|
|
3224
3259
|
var n = this.char();
|
|
3225
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3260
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
|
|
3226
3261
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3227
3262
|
var n = this.clonePosition();
|
|
3228
3263
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3229
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3264
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3230
3265
|
if (this.char() === 125)
|
|
3231
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3266
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3232
3267
|
var i = this.parseIdentifierIfPossible().value;
|
|
3233
3268
|
if (!i)
|
|
3234
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3269
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3235
3270
|
if (this.bumpSpace(), this.isEOF())
|
|
3236
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3271
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3237
3272
|
switch (this.char()) {
|
|
3238
3273
|
case 125:
|
|
3239
3274
|
return this.bump(), {
|
|
3240
3275
|
val: {
|
|
3241
|
-
type:
|
|
3276
|
+
type: E.argument,
|
|
3242
3277
|
// value does not include the opening and closing braces.
|
|
3243
3278
|
value: i,
|
|
3244
|
-
location:
|
|
3279
|
+
location: v(n, this.clonePosition())
|
|
3245
3280
|
},
|
|
3246
3281
|
err: null
|
|
3247
3282
|
};
|
|
3248
3283
|
case 44:
|
|
3249
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3284
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3250
3285
|
default:
|
|
3251
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3286
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3252
3287
|
}
|
|
3253
3288
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3254
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3289
|
+
var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
|
|
3255
3290
|
this.bumpTo(i);
|
|
3256
|
-
var o = this.clonePosition(), s =
|
|
3291
|
+
var o = this.clonePosition(), s = v(t, o);
|
|
3257
3292
|
return { value: n, location: s };
|
|
3258
3293
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3259
3294
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3260
3295
|
switch (a) {
|
|
3261
3296
|
case "":
|
|
3262
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3297
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
3263
3298
|
case "number":
|
|
3264
3299
|
case "date":
|
|
3265
3300
|
case "time": {
|
|
@@ -3270,46 +3305,46 @@ var $n = (
|
|
|
3270
3305
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3271
3306
|
if (f.err)
|
|
3272
3307
|
return f;
|
|
3273
|
-
var h =
|
|
3308
|
+
var h = Un(f.val);
|
|
3274
3309
|
if (h.length === 0)
|
|
3275
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3276
|
-
var
|
|
3277
|
-
u = { style: h, styleLocation:
|
|
3310
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3311
|
+
var p = v(c, this.clonePosition());
|
|
3312
|
+
u = { style: h, styleLocation: p };
|
|
3278
3313
|
}
|
|
3279
3314
|
var m = this.tryParseArgumentClose(i);
|
|
3280
3315
|
if (m.err)
|
|
3281
3316
|
return m;
|
|
3282
|
-
var
|
|
3283
|
-
if (u &&
|
|
3284
|
-
var
|
|
3317
|
+
var d = v(i, this.clonePosition());
|
|
3318
|
+
if (u && bt(u?.style, "::", 0)) {
|
|
3319
|
+
var w = Dn(u.style.slice(2));
|
|
3285
3320
|
if (a === "number") {
|
|
3286
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3321
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3287
3322
|
return f.err ? f : {
|
|
3288
|
-
val: { type:
|
|
3323
|
+
val: { type: E.number, value: n, location: d, style: f.val },
|
|
3289
3324
|
err: null
|
|
3290
3325
|
};
|
|
3291
3326
|
} else {
|
|
3292
|
-
if (
|
|
3293
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3294
|
-
var M =
|
|
3295
|
-
this.locale && (M =
|
|
3327
|
+
if (w.length === 0)
|
|
3328
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3329
|
+
var M = w;
|
|
3330
|
+
this.locale && (M = An(w, this.locale));
|
|
3296
3331
|
var h = {
|
|
3297
|
-
type:
|
|
3332
|
+
type: Z.dateTime,
|
|
3298
3333
|
pattern: M,
|
|
3299
3334
|
location: u.styleLocation,
|
|
3300
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3301
|
-
}, T = a === "date" ?
|
|
3335
|
+
parsedOptions: this.shouldParseSkeletons ? gn(M) : {}
|
|
3336
|
+
}, T = a === "date" ? E.date : E.time;
|
|
3302
3337
|
return {
|
|
3303
|
-
val: { type: T, value: n, location:
|
|
3338
|
+
val: { type: T, value: n, location: d, style: h },
|
|
3304
3339
|
err: null
|
|
3305
3340
|
};
|
|
3306
3341
|
}
|
|
3307
3342
|
}
|
|
3308
3343
|
return {
|
|
3309
3344
|
val: {
|
|
3310
|
-
type: a === "number" ?
|
|
3345
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3311
3346
|
value: n,
|
|
3312
|
-
location:
|
|
3347
|
+
location: d,
|
|
3313
3348
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3314
3349
|
},
|
|
3315
3350
|
err: null
|
|
@@ -3318,41 +3353,41 @@ var $n = (
|
|
|
3318
3353
|
case "plural":
|
|
3319
3354
|
case "selectordinal":
|
|
3320
3355
|
case "select": {
|
|
3321
|
-
var
|
|
3356
|
+
var y = this.clonePosition();
|
|
3322
3357
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3323
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3358
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(y, be({}, y)));
|
|
3324
3359
|
this.bumpSpace();
|
|
3325
|
-
var
|
|
3326
|
-
if (a !== "select" &&
|
|
3360
|
+
var C = this.parseIdentifierIfPossible(), A = 0;
|
|
3361
|
+
if (a !== "select" && C.value === "offset") {
|
|
3327
3362
|
if (!this.bumpIf(":"))
|
|
3328
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3363
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3329
3364
|
this.bumpSpace();
|
|
3330
3365
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3331
3366
|
if (f.err)
|
|
3332
3367
|
return f;
|
|
3333
|
-
this.bumpSpace(),
|
|
3368
|
+
this.bumpSpace(), C = this.parseIdentifierIfPossible(), A = f.val;
|
|
3334
3369
|
}
|
|
3335
|
-
var P = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3370
|
+
var P = this.tryParsePluralOrSelectOptions(t, a, r, C);
|
|
3336
3371
|
if (P.err)
|
|
3337
3372
|
return P;
|
|
3338
3373
|
var m = this.tryParseArgumentClose(i);
|
|
3339
3374
|
if (m.err)
|
|
3340
3375
|
return m;
|
|
3341
|
-
var _ =
|
|
3376
|
+
var _ = v(i, this.clonePosition());
|
|
3342
3377
|
return a === "select" ? {
|
|
3343
3378
|
val: {
|
|
3344
|
-
type:
|
|
3379
|
+
type: E.select,
|
|
3345
3380
|
value: n,
|
|
3346
|
-
options:
|
|
3381
|
+
options: vt(P.val),
|
|
3347
3382
|
location: _
|
|
3348
3383
|
},
|
|
3349
3384
|
err: null
|
|
3350
3385
|
} : {
|
|
3351
3386
|
val: {
|
|
3352
|
-
type:
|
|
3387
|
+
type: E.plural,
|
|
3353
3388
|
value: n,
|
|
3354
|
-
options:
|
|
3355
|
-
offset:
|
|
3389
|
+
options: vt(P.val),
|
|
3390
|
+
offset: A,
|
|
3356
3391
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3357
3392
|
location: _
|
|
3358
3393
|
},
|
|
@@ -3360,10 +3395,10 @@ var $n = (
|
|
|
3360
3395
|
};
|
|
3361
3396
|
}
|
|
3362
3397
|
default:
|
|
3363
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3398
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3364
3399
|
}
|
|
3365
3400
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3366
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3401
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3367
3402
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3368
3403
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3369
3404
|
var n = this.char();
|
|
@@ -3372,7 +3407,7 @@ var $n = (
|
|
|
3372
3407
|
this.bump();
|
|
3373
3408
|
var i = this.clonePosition();
|
|
3374
3409
|
if (!this.bumpUntil("'"))
|
|
3375
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3410
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3376
3411
|
this.bump();
|
|
3377
3412
|
break;
|
|
3378
3413
|
}
|
|
@@ -3402,16 +3437,16 @@ var $n = (
|
|
|
3402
3437
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3403
3438
|
var n = [];
|
|
3404
3439
|
try {
|
|
3405
|
-
n =
|
|
3440
|
+
n = xn(t);
|
|
3406
3441
|
} catch {
|
|
3407
3442
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3408
3443
|
}
|
|
3409
3444
|
return {
|
|
3410
3445
|
val: {
|
|
3411
|
-
type:
|
|
3446
|
+
type: Z.number,
|
|
3412
3447
|
tokens: n,
|
|
3413
3448
|
location: r,
|
|
3414
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3449
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
|
|
3415
3450
|
},
|
|
3416
3451
|
err: null
|
|
3417
3452
|
};
|
|
@@ -3423,31 +3458,31 @@ var $n = (
|
|
|
3423
3458
|
var h = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3424
3459
|
if (h.err)
|
|
3425
3460
|
return h;
|
|
3426
|
-
c =
|
|
3461
|
+
c = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3427
3462
|
} else
|
|
3428
3463
|
break;
|
|
3429
3464
|
}
|
|
3430
3465
|
if (l.has(u))
|
|
3431
3466
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3432
3467
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3433
|
-
var
|
|
3468
|
+
var p = this.clonePosition();
|
|
3434
3469
|
if (!this.bumpIf("{"))
|
|
3435
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3470
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3436
3471
|
var m = this.parseMessage(t + 1, r, n);
|
|
3437
3472
|
if (m.err)
|
|
3438
3473
|
return m;
|
|
3439
|
-
var
|
|
3440
|
-
if (
|
|
3441
|
-
return
|
|
3474
|
+
var d = this.tryParseArgumentClose(p);
|
|
3475
|
+
if (d.err)
|
|
3476
|
+
return d;
|
|
3442
3477
|
a.push([
|
|
3443
3478
|
u,
|
|
3444
3479
|
{
|
|
3445
3480
|
value: m.val,
|
|
3446
|
-
location:
|
|
3481
|
+
location: v(p, this.clonePosition())
|
|
3447
3482
|
}
|
|
3448
3483
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3449
3484
|
}
|
|
3450
|
-
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3485
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3451
3486
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3452
3487
|
var n = 1, i = this.clonePosition();
|
|
3453
3488
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3458,8 +3493,8 @@ var $n = (
|
|
|
3458
3493
|
else
|
|
3459
3494
|
break;
|
|
3460
3495
|
}
|
|
3461
|
-
var l =
|
|
3462
|
-
return o ? (s *= n,
|
|
3496
|
+
var l = v(i, this.clonePosition());
|
|
3497
|
+
return o ? (s *= n, $n(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3463
3498
|
}, e.prototype.offset = function() {
|
|
3464
3499
|
return this.position.offset;
|
|
3465
3500
|
}, e.prototype.isEOF = function() {
|
|
@@ -3474,7 +3509,7 @@ var $n = (
|
|
|
3474
3509
|
var t = this.position.offset;
|
|
3475
3510
|
if (t >= this.message.length)
|
|
3476
3511
|
throw Error("out of bound");
|
|
3477
|
-
var r =
|
|
3512
|
+
var r = Yt(this.message, t);
|
|
3478
3513
|
if (r === void 0)
|
|
3479
3514
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3480
3515
|
return r;
|
|
@@ -3493,7 +3528,7 @@ var $n = (
|
|
|
3493
3528
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3494
3529
|
}
|
|
3495
3530
|
}, e.prototype.bumpIf = function(t) {
|
|
3496
|
-
if (
|
|
3531
|
+
if (bt(this.message, t, this.offset())) {
|
|
3497
3532
|
for (var r = 0; r < t.length; r++)
|
|
3498
3533
|
this.bump();
|
|
3499
3534
|
return !0;
|
|
@@ -3515,7 +3550,7 @@ var $n = (
|
|
|
3515
3550
|
break;
|
|
3516
3551
|
}
|
|
3517
3552
|
}, e.prototype.bumpSpace = function() {
|
|
3518
|
-
for (; !this.isEOF() &&
|
|
3553
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3519
3554
|
this.bump();
|
|
3520
3555
|
}, e.prototype.peek = function() {
|
|
3521
3556
|
if (this.isEOF())
|
|
@@ -3525,47 +3560,47 @@ var $n = (
|
|
|
3525
3560
|
}, e;
|
|
3526
3561
|
}()
|
|
3527
3562
|
);
|
|
3528
|
-
function
|
|
3563
|
+
function Ze(e) {
|
|
3529
3564
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3530
3565
|
}
|
|
3531
|
-
function
|
|
3532
|
-
return
|
|
3566
|
+
function Gn(e) {
|
|
3567
|
+
return Ze(e) || e === 47;
|
|
3533
3568
|
}
|
|
3534
|
-
function
|
|
3569
|
+
function jn(e) {
|
|
3535
3570
|
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;
|
|
3536
3571
|
}
|
|
3537
|
-
function
|
|
3572
|
+
function Kt(e) {
|
|
3538
3573
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3539
3574
|
}
|
|
3540
|
-
function
|
|
3575
|
+
function kn(e) {
|
|
3541
3576
|
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;
|
|
3542
3577
|
}
|
|
3543
|
-
function
|
|
3578
|
+
function qe(e) {
|
|
3544
3579
|
e.forEach(function(t) {
|
|
3545
|
-
if (delete t.location,
|
|
3580
|
+
if (delete t.location, kt(t) || zt(t))
|
|
3546
3581
|
for (var r in t.options)
|
|
3547
|
-
delete t.options[r].location,
|
|
3582
|
+
delete t.options[r].location, qe(t.options[r].value);
|
|
3548
3583
|
else
|
|
3549
|
-
|
|
3584
|
+
Ft(t) && Vt(t.style) || (Gt(t) || jt(t)) && ze(t.style) ? delete t.style.location : Wt(t) && qe(t.children);
|
|
3550
3585
|
});
|
|
3551
3586
|
}
|
|
3552
|
-
function
|
|
3553
|
-
t === void 0 && (t = {}), t =
|
|
3554
|
-
var r = new
|
|
3587
|
+
function zn(e, t) {
|
|
3588
|
+
t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3589
|
+
var r = new Fn(e, t).parse();
|
|
3555
3590
|
if (r.err) {
|
|
3556
3591
|
var n = SyntaxError(b[r.err.kind]);
|
|
3557
3592
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3558
3593
|
}
|
|
3559
|
-
return t?.captureLocation ||
|
|
3594
|
+
return t?.captureLocation || qe(r.val), r.val;
|
|
3560
3595
|
}
|
|
3561
|
-
var
|
|
3596
|
+
var q;
|
|
3562
3597
|
(function(e) {
|
|
3563
3598
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3564
|
-
})(
|
|
3565
|
-
var
|
|
3599
|
+
})(q || (q = {}));
|
|
3600
|
+
var we = (
|
|
3566
3601
|
/** @class */
|
|
3567
3602
|
function(e) {
|
|
3568
|
-
|
|
3603
|
+
Ee(t, e);
|
|
3569
3604
|
function t(r, n, i) {
|
|
3570
3605
|
var o = e.call(this, r) || this;
|
|
3571
3606
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3574,48 +3609,48 @@ var Ee = (
|
|
|
3574
3609
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3575
3610
|
}, t;
|
|
3576
3611
|
}(Error)
|
|
3577
|
-
),
|
|
3612
|
+
), yt = (
|
|
3578
3613
|
/** @class */
|
|
3579
3614
|
function(e) {
|
|
3580
|
-
|
|
3615
|
+
Ee(t, e);
|
|
3581
3616
|
function t(r, n, i, o) {
|
|
3582
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3617
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3583
3618
|
}
|
|
3584
3619
|
return t;
|
|
3585
|
-
}(
|
|
3586
|
-
),
|
|
3620
|
+
}(we)
|
|
3621
|
+
), Wn = (
|
|
3587
3622
|
/** @class */
|
|
3588
3623
|
function(e) {
|
|
3589
|
-
|
|
3624
|
+
Ee(t, e);
|
|
3590
3625
|
function t(r, n, i) {
|
|
3591
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3626
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3592
3627
|
}
|
|
3593
3628
|
return t;
|
|
3594
|
-
}(
|
|
3595
|
-
),
|
|
3629
|
+
}(we)
|
|
3630
|
+
), Vn = (
|
|
3596
3631
|
/** @class */
|
|
3597
3632
|
function(e) {
|
|
3598
|
-
|
|
3633
|
+
Ee(t, e);
|
|
3599
3634
|
function t(r, n) {
|
|
3600
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3635
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3601
3636
|
}
|
|
3602
3637
|
return t;
|
|
3603
|
-
}(
|
|
3638
|
+
}(we)
|
|
3604
3639
|
), H;
|
|
3605
3640
|
(function(e) {
|
|
3606
3641
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3607
3642
|
})(H || (H = {}));
|
|
3608
|
-
function
|
|
3643
|
+
function Xn(e) {
|
|
3609
3644
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3610
3645
|
var n = t[t.length - 1];
|
|
3611
3646
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3612
3647
|
}, []);
|
|
3613
3648
|
}
|
|
3614
|
-
function
|
|
3649
|
+
function Zn(e) {
|
|
3615
3650
|
return typeof e == "function";
|
|
3616
3651
|
}
|
|
3617
|
-
function
|
|
3618
|
-
if (e.length === 1 &&
|
|
3652
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3653
|
+
if (e.length === 1 && ft(e[0]))
|
|
3619
3654
|
return [
|
|
3620
3655
|
{
|
|
3621
3656
|
type: H.literal,
|
|
@@ -3624,14 +3659,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3624
3659
|
];
|
|
3625
3660
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3626
3661
|
var c = u[l];
|
|
3627
|
-
if (
|
|
3662
|
+
if (ft(c)) {
|
|
3628
3663
|
a.push({
|
|
3629
3664
|
type: H.literal,
|
|
3630
3665
|
value: c.value
|
|
3631
3666
|
});
|
|
3632
3667
|
continue;
|
|
3633
3668
|
}
|
|
3634
|
-
if (
|
|
3669
|
+
if (bn(c)) {
|
|
3635
3670
|
typeof o == "number" && a.push({
|
|
3636
3671
|
type: H.literal,
|
|
3637
3672
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3640,89 +3675,89 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3640
3675
|
}
|
|
3641
3676
|
var f = c.value;
|
|
3642
3677
|
if (!(i && f in i))
|
|
3643
|
-
throw new
|
|
3678
|
+
throw new Vn(f, s);
|
|
3644
3679
|
var h = i[f];
|
|
3645
|
-
if (
|
|
3680
|
+
if (mn(c)) {
|
|
3646
3681
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3647
3682
|
type: typeof h == "string" ? H.literal : H.object,
|
|
3648
3683
|
value: h
|
|
3649
3684
|
});
|
|
3650
3685
|
continue;
|
|
3651
3686
|
}
|
|
3652
|
-
if (
|
|
3653
|
-
var
|
|
3687
|
+
if (Gt(c)) {
|
|
3688
|
+
var p = typeof c.style == "string" ? n.date[c.style] : ze(c.style) ? c.style.parsedOptions : void 0;
|
|
3654
3689
|
a.push({
|
|
3655
3690
|
type: H.literal,
|
|
3656
|
-
value: r.getDateTimeFormat(t,
|
|
3691
|
+
value: r.getDateTimeFormat(t, p).format(h)
|
|
3657
3692
|
});
|
|
3658
3693
|
continue;
|
|
3659
3694
|
}
|
|
3660
|
-
if (
|
|
3661
|
-
var
|
|
3695
|
+
if (jt(c)) {
|
|
3696
|
+
var p = typeof c.style == "string" ? n.time[c.style] : ze(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3662
3697
|
a.push({
|
|
3663
3698
|
type: H.literal,
|
|
3664
|
-
value: r.getDateTimeFormat(t,
|
|
3699
|
+
value: r.getDateTimeFormat(t, p).format(h)
|
|
3665
3700
|
});
|
|
3666
3701
|
continue;
|
|
3667
3702
|
}
|
|
3668
|
-
if (
|
|
3669
|
-
var
|
|
3670
|
-
|
|
3703
|
+
if (Ft(c)) {
|
|
3704
|
+
var p = typeof c.style == "string" ? n.number[c.style] : Vt(c.style) ? c.style.parsedOptions : void 0;
|
|
3705
|
+
p && p.scale && (h = h * (p.scale || 1)), a.push({
|
|
3671
3706
|
type: H.literal,
|
|
3672
|
-
value: r.getNumberFormat(t,
|
|
3707
|
+
value: r.getNumberFormat(t, p).format(h)
|
|
3673
3708
|
});
|
|
3674
3709
|
continue;
|
|
3675
3710
|
}
|
|
3676
|
-
if (
|
|
3677
|
-
var m = c.children,
|
|
3678
|
-
if (!
|
|
3679
|
-
throw new
|
|
3680
|
-
var M =
|
|
3681
|
-
return
|
|
3711
|
+
if (Wt(c)) {
|
|
3712
|
+
var m = c.children, d = c.value, w = i[d];
|
|
3713
|
+
if (!Zn(w))
|
|
3714
|
+
throw new Wn(d, "function", s);
|
|
3715
|
+
var M = pe(m, t, r, n, i, o), T = w(M.map(function(A) {
|
|
3716
|
+
return A.value;
|
|
3682
3717
|
}));
|
|
3683
|
-
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(
|
|
3718
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(A) {
|
|
3684
3719
|
return {
|
|
3685
|
-
type: typeof
|
|
3686
|
-
value:
|
|
3720
|
+
type: typeof A == "string" ? H.literal : H.object,
|
|
3721
|
+
value: A
|
|
3687
3722
|
};
|
|
3688
3723
|
}));
|
|
3689
3724
|
}
|
|
3690
|
-
if (
|
|
3691
|
-
var
|
|
3692
|
-
if (!
|
|
3693
|
-
throw new
|
|
3694
|
-
a.push.apply(a,
|
|
3725
|
+
if (kt(c)) {
|
|
3726
|
+
var y = c.options[h] || c.options.other;
|
|
3727
|
+
if (!y)
|
|
3728
|
+
throw new yt(c.value, h, Object.keys(c.options), s);
|
|
3729
|
+
a.push.apply(a, pe(y.value, t, r, n, i));
|
|
3695
3730
|
continue;
|
|
3696
3731
|
}
|
|
3697
|
-
if (
|
|
3698
|
-
var
|
|
3699
|
-
if (!
|
|
3732
|
+
if (zt(c)) {
|
|
3733
|
+
var y = c.options["=".concat(h)];
|
|
3734
|
+
if (!y) {
|
|
3700
3735
|
if (!Intl.PluralRules)
|
|
3701
|
-
throw new
|
|
3736
|
+
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3702
3737
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3703
|
-
`,
|
|
3704
|
-
var
|
|
3705
|
-
|
|
3738
|
+
`, q.MISSING_INTL_API, s);
|
|
3739
|
+
var C = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3740
|
+
y = c.options[C] || c.options.other;
|
|
3706
3741
|
}
|
|
3707
|
-
if (!
|
|
3708
|
-
throw new
|
|
3709
|
-
a.push.apply(a,
|
|
3742
|
+
if (!y)
|
|
3743
|
+
throw new yt(c.value, h, Object.keys(c.options), s);
|
|
3744
|
+
a.push.apply(a, pe(y.value, t, r, n, i, h - (c.offset || 0)));
|
|
3710
3745
|
continue;
|
|
3711
3746
|
}
|
|
3712
3747
|
}
|
|
3713
|
-
return
|
|
3748
|
+
return Xn(a);
|
|
3714
3749
|
}
|
|
3715
|
-
function
|
|
3716
|
-
return t ?
|
|
3717
|
-
return r[n] =
|
|
3750
|
+
function qn(e, t) {
|
|
3751
|
+
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3752
|
+
return r[n] = I(I({}, e[n]), t[n] || {}), r;
|
|
3718
3753
|
}, {})) : e;
|
|
3719
3754
|
}
|
|
3720
|
-
function
|
|
3755
|
+
function Qn(e, t) {
|
|
3721
3756
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3722
|
-
return r[n] =
|
|
3723
|
-
},
|
|
3757
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3758
|
+
}, I({}, e)) : e;
|
|
3724
3759
|
}
|
|
3725
|
-
function
|
|
3760
|
+
function Oe(e) {
|
|
3726
3761
|
return {
|
|
3727
3762
|
create: function() {
|
|
3728
3763
|
return {
|
|
@@ -3736,39 +3771,39 @@ function He(e) {
|
|
|
3736
3771
|
}
|
|
3737
3772
|
};
|
|
3738
3773
|
}
|
|
3739
|
-
function
|
|
3774
|
+
function Yn(e) {
|
|
3740
3775
|
return e === void 0 && (e = {
|
|
3741
3776
|
number: {},
|
|
3742
3777
|
dateTime: {},
|
|
3743
3778
|
pluralRules: {}
|
|
3744
3779
|
}), {
|
|
3745
|
-
getNumberFormat:
|
|
3780
|
+
getNumberFormat: He(function() {
|
|
3746
3781
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3747
3782
|
r[n] = arguments[n];
|
|
3748
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3783
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3749
3784
|
}, {
|
|
3750
|
-
cache:
|
|
3751
|
-
strategy:
|
|
3785
|
+
cache: Oe(e.number),
|
|
3786
|
+
strategy: Me.variadic
|
|
3752
3787
|
}),
|
|
3753
|
-
getDateTimeFormat:
|
|
3788
|
+
getDateTimeFormat: He(function() {
|
|
3754
3789
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3755
3790
|
r[n] = arguments[n];
|
|
3756
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3791
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3757
3792
|
}, {
|
|
3758
|
-
cache:
|
|
3759
|
-
strategy:
|
|
3793
|
+
cache: Oe(e.dateTime),
|
|
3794
|
+
strategy: Me.variadic
|
|
3760
3795
|
}),
|
|
3761
|
-
getPluralRules:
|
|
3796
|
+
getPluralRules: He(function() {
|
|
3762
3797
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3763
3798
|
r[n] = arguments[n];
|
|
3764
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3799
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3765
3800
|
}, {
|
|
3766
|
-
cache:
|
|
3767
|
-
strategy:
|
|
3801
|
+
cache: Oe(e.pluralRules),
|
|
3802
|
+
strategy: Me.variadic
|
|
3768
3803
|
})
|
|
3769
3804
|
};
|
|
3770
3805
|
}
|
|
3771
|
-
var
|
|
3806
|
+
var Jn = (
|
|
3772
3807
|
/** @class */
|
|
3773
3808
|
function() {
|
|
3774
3809
|
function e(t, r, n, i) {
|
|
@@ -3787,7 +3822,7 @@ var Zn = (
|
|
|
3787
3822
|
}, []);
|
|
3788
3823
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3789
3824
|
}, this.formatToParts = function(l) {
|
|
3790
|
-
return
|
|
3825
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3791
3826
|
}, this.resolvedOptions = function() {
|
|
3792
3827
|
var l;
|
|
3793
3828
|
return {
|
|
@@ -3800,13 +3835,13 @@ var Zn = (
|
|
|
3800
3835
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3801
3836
|
var s = i || {};
|
|
3802
3837
|
s.formatters;
|
|
3803
|
-
var a =
|
|
3804
|
-
this.ast = e.__parse(t,
|
|
3838
|
+
var a = an(s, ["formatters"]);
|
|
3839
|
+
this.ast = e.__parse(t, I(I({}, a), { locale: this.resolvedLocale }));
|
|
3805
3840
|
} else
|
|
3806
3841
|
this.ast = t;
|
|
3807
3842
|
if (!Array.isArray(this.ast))
|
|
3808
3843
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3809
|
-
this.formats =
|
|
3844
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3810
3845
|
}
|
|
3811
3846
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3812
3847
|
get: function() {
|
|
@@ -3819,7 +3854,7 @@ var Zn = (
|
|
|
3819
3854
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3820
3855
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3821
3856
|
}
|
|
3822
|
-
}, e.__parse =
|
|
3857
|
+
}, e.__parse = zn, e.formats = {
|
|
3823
3858
|
number: {
|
|
3824
3859
|
integer: {
|
|
3825
3860
|
maximumFractionDigits: 0
|
|
@@ -3880,7 +3915,7 @@ var Zn = (
|
|
|
3880
3915
|
}, e;
|
|
3881
3916
|
}()
|
|
3882
3917
|
);
|
|
3883
|
-
function
|
|
3918
|
+
function Kn(e, t) {
|
|
3884
3919
|
if (t == null)
|
|
3885
3920
|
return;
|
|
3886
3921
|
if (t in e)
|
|
@@ -3901,92 +3936,92 @@ function qn(e, t) {
|
|
|
3901
3936
|
n = void 0;
|
|
3902
3937
|
return n;
|
|
3903
3938
|
}
|
|
3904
|
-
const L = {},
|
|
3939
|
+
const L = {}, ei = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), er = (e, t) => {
|
|
3905
3940
|
if (t == null)
|
|
3906
3941
|
return;
|
|
3907
3942
|
if (t in L && e in L[t])
|
|
3908
3943
|
return L[t][e];
|
|
3909
|
-
const r =
|
|
3944
|
+
const r = Ce(t);
|
|
3910
3945
|
for (let n = 0; n < r.length; n++) {
|
|
3911
|
-
const i = r[n], o =
|
|
3946
|
+
const i = r[n], o = ri(i, e);
|
|
3912
3947
|
if (o)
|
|
3913
|
-
return
|
|
3948
|
+
return ei(e, t, o);
|
|
3914
3949
|
}
|
|
3915
3950
|
};
|
|
3916
|
-
let
|
|
3917
|
-
const ue =
|
|
3918
|
-
function
|
|
3919
|
-
return
|
|
3951
|
+
let Ke;
|
|
3952
|
+
const ue = _e({});
|
|
3953
|
+
function ti(e) {
|
|
3954
|
+
return Ke[e] || null;
|
|
3920
3955
|
}
|
|
3921
|
-
function
|
|
3922
|
-
return e in
|
|
3956
|
+
function tr(e) {
|
|
3957
|
+
return e in Ke;
|
|
3923
3958
|
}
|
|
3924
|
-
function
|
|
3925
|
-
if (!
|
|
3959
|
+
function ri(e, t) {
|
|
3960
|
+
if (!tr(e))
|
|
3926
3961
|
return null;
|
|
3927
|
-
const r =
|
|
3928
|
-
return
|
|
3962
|
+
const r = ti(e);
|
|
3963
|
+
return Kn(r, t);
|
|
3929
3964
|
}
|
|
3930
|
-
function
|
|
3965
|
+
function ni(e) {
|
|
3931
3966
|
if (e == null)
|
|
3932
3967
|
return;
|
|
3933
|
-
const t =
|
|
3968
|
+
const t = Ce(e);
|
|
3934
3969
|
for (let r = 0; r < t.length; r++) {
|
|
3935
3970
|
const n = t[r];
|
|
3936
|
-
if (
|
|
3971
|
+
if (tr(n))
|
|
3937
3972
|
return n;
|
|
3938
3973
|
}
|
|
3939
3974
|
}
|
|
3940
|
-
function
|
|
3941
|
-
delete L[e], ue.update((r) => (r[e] =
|
|
3975
|
+
function rr(e, ...t) {
|
|
3976
|
+
delete L[e], ue.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3942
3977
|
}
|
|
3943
|
-
|
|
3978
|
+
J(
|
|
3944
3979
|
[ue],
|
|
3945
3980
|
([e]) => Object.keys(e)
|
|
3946
3981
|
);
|
|
3947
|
-
ue.subscribe((e) =>
|
|
3948
|
-
const
|
|
3949
|
-
function
|
|
3950
|
-
|
|
3982
|
+
ue.subscribe((e) => Ke = e);
|
|
3983
|
+
const de = {};
|
|
3984
|
+
function ii(e, t) {
|
|
3985
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3951
3986
|
}
|
|
3952
|
-
function
|
|
3953
|
-
return
|
|
3987
|
+
function nr(e) {
|
|
3988
|
+
return de[e];
|
|
3954
3989
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return
|
|
3957
|
-
const r =
|
|
3990
|
+
function oi(e) {
|
|
3991
|
+
return Ce(e).map((t) => {
|
|
3992
|
+
const r = nr(t);
|
|
3958
3993
|
return [t, r ? [...r] : []];
|
|
3959
3994
|
}).filter(([, t]) => t.length > 0);
|
|
3960
3995
|
}
|
|
3961
|
-
function
|
|
3962
|
-
return e == null ? !1 :
|
|
3996
|
+
function Qe(e) {
|
|
3997
|
+
return e == null ? !1 : Ce(e).some(
|
|
3963
3998
|
(t) => {
|
|
3964
3999
|
var r;
|
|
3965
|
-
return (r =
|
|
4000
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3966
4001
|
}
|
|
3967
4002
|
);
|
|
3968
4003
|
}
|
|
3969
|
-
function
|
|
4004
|
+
function si(e, t) {
|
|
3970
4005
|
return Promise.all(
|
|
3971
|
-
t.map((n) => (
|
|
3972
|
-
).then((n) =>
|
|
3973
|
-
}
|
|
3974
|
-
const
|
|
3975
|
-
function
|
|
3976
|
-
if (!
|
|
3977
|
-
return e in
|
|
3978
|
-
const t =
|
|
3979
|
-
return
|
|
4006
|
+
t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
|
|
4007
|
+
).then((n) => rr(e, ...n));
|
|
4008
|
+
}
|
|
4009
|
+
const te = {};
|
|
4010
|
+
function ir(e) {
|
|
4011
|
+
if (!Qe(e))
|
|
4012
|
+
return e in te ? te[e] : Promise.resolve();
|
|
4013
|
+
const t = oi(e);
|
|
4014
|
+
return te[e] = Promise.all(
|
|
3980
4015
|
t.map(
|
|
3981
|
-
([r, n]) =>
|
|
4016
|
+
([r, n]) => si(r, n)
|
|
3982
4017
|
)
|
|
3983
4018
|
).then(() => {
|
|
3984
|
-
if (
|
|
3985
|
-
return
|
|
3986
|
-
delete
|
|
3987
|
-
}),
|
|
4019
|
+
if (Qe(e))
|
|
4020
|
+
return ir(e);
|
|
4021
|
+
delete te[e];
|
|
4022
|
+
}), te[e];
|
|
3988
4023
|
}
|
|
3989
|
-
const
|
|
4024
|
+
const ai = {
|
|
3990
4025
|
number: {
|
|
3991
4026
|
scientific: { notation: "scientific" },
|
|
3992
4027
|
engineering: { notation: "engineering" },
|
|
@@ -4015,135 +4050,135 @@ const ni = {
|
|
|
4015
4050
|
timeZoneName: "short"
|
|
4016
4051
|
}
|
|
4017
4052
|
}
|
|
4018
|
-
},
|
|
4053
|
+
}, ui = {
|
|
4019
4054
|
fallbackLocale: null,
|
|
4020
4055
|
loadingDelay: 200,
|
|
4021
|
-
formats:
|
|
4056
|
+
formats: ai,
|
|
4022
4057
|
warnOnMissingMessages: !0,
|
|
4023
4058
|
handleMissingMessage: void 0,
|
|
4024
4059
|
ignoreTag: !0
|
|
4025
|
-
},
|
|
4026
|
-
function
|
|
4027
|
-
return
|
|
4028
|
-
}
|
|
4029
|
-
const
|
|
4030
|
-
var
|
|
4031
|
-
for (var r in t)
|
|
4032
|
-
|
|
4033
|
-
if (
|
|
4034
|
-
for (var r of
|
|
4035
|
-
|
|
4060
|
+
}, li = ui;
|
|
4061
|
+
function Q() {
|
|
4062
|
+
return li;
|
|
4063
|
+
}
|
|
4064
|
+
const Ie = _e(!1);
|
|
4065
|
+
var ci = Object.defineProperty, hi = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mi = (e, t) => {
|
|
4066
|
+
for (var r in t || (t = {}))
|
|
4067
|
+
pi.call(t, r) && _t(e, r, t[r]);
|
|
4068
|
+
if (xt)
|
|
4069
|
+
for (var r of xt(t))
|
|
4070
|
+
di.call(t, r) && _t(e, r, t[r]);
|
|
4036
4071
|
return e;
|
|
4037
|
-
},
|
|
4038
|
-
let
|
|
4039
|
-
const
|
|
4040
|
-
function
|
|
4072
|
+
}, bi = (e, t) => hi(e, fi(t));
|
|
4073
|
+
let Ye;
|
|
4074
|
+
const ve = _e(null);
|
|
4075
|
+
function Et(e) {
|
|
4041
4076
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4042
4077
|
}
|
|
4043
|
-
function
|
|
4044
|
-
const r =
|
|
4045
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4078
|
+
function Ce(e, t = Q().fallbackLocale) {
|
|
4079
|
+
const r = Et(e);
|
|
4080
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4046
4081
|
}
|
|
4047
4082
|
function U() {
|
|
4048
|
-
return
|
|
4083
|
+
return Ye ?? void 0;
|
|
4049
4084
|
}
|
|
4050
|
-
|
|
4051
|
-
|
|
4085
|
+
ve.subscribe((e) => {
|
|
4086
|
+
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4052
4087
|
});
|
|
4053
|
-
const
|
|
4054
|
-
if (e &&
|
|
4055
|
-
const { loadingDelay: t } =
|
|
4088
|
+
const vi = (e) => {
|
|
4089
|
+
if (e && ni(e) && Qe(e)) {
|
|
4090
|
+
const { loadingDelay: t } = Q();
|
|
4056
4091
|
let r;
|
|
4057
4092
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4058
|
-
() =>
|
|
4093
|
+
() => Ie.set(!0),
|
|
4059
4094
|
t
|
|
4060
|
-
) :
|
|
4061
|
-
|
|
4095
|
+
) : Ie.set(!0), ir(e).then(() => {
|
|
4096
|
+
ve.set(e);
|
|
4062
4097
|
}).finally(() => {
|
|
4063
|
-
clearTimeout(r),
|
|
4098
|
+
clearTimeout(r), Ie.set(!1);
|
|
4064
4099
|
});
|
|
4065
4100
|
}
|
|
4066
|
-
return
|
|
4067
|
-
},
|
|
4068
|
-
set:
|
|
4069
|
-
}),
|
|
4101
|
+
return ve.set(e);
|
|
4102
|
+
}, K = bi(mi({}, ve), {
|
|
4103
|
+
set: vi
|
|
4104
|
+
}), Ae = (e) => {
|
|
4070
4105
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4071
4106
|
return (n) => {
|
|
4072
4107
|
const i = JSON.stringify(n);
|
|
4073
4108
|
return i in t ? t[i] : t[i] = e(n);
|
|
4074
4109
|
};
|
|
4075
4110
|
};
|
|
4076
|
-
var
|
|
4111
|
+
var gi = Object.defineProperty, ge = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
4077
4112
|
for (var r in t || (t = {}))
|
|
4078
|
-
|
|
4113
|
+
or.call(t, r) && wt(e, r, t[r]);
|
|
4079
4114
|
if (ge)
|
|
4080
4115
|
for (var r of ge(t))
|
|
4081
|
-
|
|
4116
|
+
sr.call(t, r) && wt(e, r, t[r]);
|
|
4082
4117
|
return e;
|
|
4083
|
-
},
|
|
4118
|
+
}, ee = (e, t) => {
|
|
4084
4119
|
var r = {};
|
|
4085
4120
|
for (var n in e)
|
|
4086
|
-
|
|
4121
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4087
4122
|
if (e != null && ge)
|
|
4088
4123
|
for (var n of ge(e))
|
|
4089
|
-
t.indexOf(n) < 0 &&
|
|
4124
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4090
4125
|
return r;
|
|
4091
4126
|
};
|
|
4092
|
-
const
|
|
4093
|
-
const { formats: r } =
|
|
4127
|
+
const oe = (e, t) => {
|
|
4128
|
+
const { formats: r } = Q();
|
|
4094
4129
|
if (e in r && t in r[e])
|
|
4095
4130
|
return r[e][t];
|
|
4096
4131
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4097
|
-
},
|
|
4132
|
+
}, yi = Ae(
|
|
4098
4133
|
(e) => {
|
|
4099
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4134
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4100
4135
|
if (r == null)
|
|
4101
4136
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4102
|
-
return n && (i =
|
|
4137
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4103
4138
|
}
|
|
4104
|
-
),
|
|
4139
|
+
), xi = Ae(
|
|
4105
4140
|
(e) => {
|
|
4106
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4141
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4107
4142
|
if (r == null)
|
|
4108
4143
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4109
|
-
return n ? i =
|
|
4144
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4110
4145
|
}
|
|
4111
|
-
),
|
|
4146
|
+
), _i = Ae(
|
|
4112
4147
|
(e) => {
|
|
4113
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4114
4149
|
if (r == null)
|
|
4115
4150
|
throw new Error(
|
|
4116
4151
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4117
4152
|
);
|
|
4118
|
-
return n ? i =
|
|
4153
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4119
4154
|
}
|
|
4120
|
-
),
|
|
4155
|
+
), Ei = (e = {}) => {
|
|
4121
4156
|
var t = e, {
|
|
4122
4157
|
locale: r = U()
|
|
4123
|
-
} = t, n =
|
|
4158
|
+
} = t, n = ee(t, [
|
|
4124
4159
|
"locale"
|
|
4125
4160
|
]);
|
|
4126
|
-
return
|
|
4127
|
-
},
|
|
4161
|
+
return yi(et({ locale: r }, n));
|
|
4162
|
+
}, wi = (e = {}) => {
|
|
4128
4163
|
var t = e, {
|
|
4129
4164
|
locale: r = U()
|
|
4130
|
-
} = t, n =
|
|
4165
|
+
} = t, n = ee(t, [
|
|
4131
4166
|
"locale"
|
|
4132
4167
|
]);
|
|
4133
|
-
return
|
|
4134
|
-
},
|
|
4168
|
+
return xi(et({ locale: r }, n));
|
|
4169
|
+
}, Ci = (e = {}) => {
|
|
4135
4170
|
var t = e, {
|
|
4136
4171
|
locale: r = U()
|
|
4137
|
-
} = t, n =
|
|
4172
|
+
} = t, n = ee(t, [
|
|
4138
4173
|
"locale"
|
|
4139
4174
|
]);
|
|
4140
|
-
return
|
|
4141
|
-
},
|
|
4175
|
+
return _i(et({ locale: r }, n));
|
|
4176
|
+
}, Ai = Ae(
|
|
4142
4177
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4143
|
-
(e, t = U()) => new
|
|
4144
|
-
ignoreTag:
|
|
4178
|
+
(e, t = U()) => new Jn(e, t, Q().formats, {
|
|
4179
|
+
ignoreTag: Q().ignoreTag
|
|
4145
4180
|
})
|
|
4146
|
-
),
|
|
4181
|
+
), Si = (e, t = {}) => {
|
|
4147
4182
|
var r, n, i, o;
|
|
4148
4183
|
let s = t;
|
|
4149
4184
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4156,9 +4191,9 @@ const se = (e, t) => {
|
|
|
4156
4191
|
throw new Error(
|
|
4157
4192
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4158
4193
|
);
|
|
4159
|
-
let c =
|
|
4194
|
+
let c = er(e, l);
|
|
4160
4195
|
if (!c)
|
|
4161
|
-
c = (o = (i = (n = (r =
|
|
4196
|
+
c = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4162
4197
|
else if (typeof c != "string")
|
|
4163
4198
|
return console.warn(
|
|
4164
4199
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4167,7 +4202,7 @@ const se = (e, t) => {
|
|
|
4167
4202
|
return c;
|
|
4168
4203
|
let f = c;
|
|
4169
4204
|
try {
|
|
4170
|
-
f =
|
|
4205
|
+
f = Ai(c, l).format(a);
|
|
4171
4206
|
} catch (h) {
|
|
4172
4207
|
h instanceof Error && console.warn(
|
|
4173
4208
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4175,20 +4210,20 @@ const se = (e, t) => {
|
|
|
4175
4210
|
);
|
|
4176
4211
|
}
|
|
4177
4212
|
return f;
|
|
4178
|
-
},
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
window.emWidgets = { topic:
|
|
4184
|
-
const
|
|
4185
|
-
function
|
|
4186
|
-
|
|
4187
|
-
}
|
|
4188
|
-
function
|
|
4189
|
-
|
|
4190
|
-
}
|
|
4191
|
-
const
|
|
4213
|
+
}, Ti = (e, t) => Ci(t).format(e), Bi = (e, t) => wi(t).format(e), Hi = (e, t) => Ei(t).format(e), Mi = (e, t = U()) => er(e, t), Pi = J([K, ue], () => Si);
|
|
4214
|
+
J([K], () => Ti);
|
|
4215
|
+
J([K], () => Bi);
|
|
4216
|
+
J([K], () => Hi);
|
|
4217
|
+
J([K, ue], () => Mi);
|
|
4218
|
+
window.emWidgets = { topic: jr };
|
|
4219
|
+
const Oi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4220
|
+
function Ct(e, t) {
|
|
4221
|
+
rr(e, t);
|
|
4222
|
+
}
|
|
4223
|
+
function Ii(e) {
|
|
4224
|
+
K.set(e);
|
|
4225
|
+
}
|
|
4226
|
+
const At = {
|
|
4192
4227
|
en: {
|
|
4193
4228
|
titleAccountClosure: "Account Closure",
|
|
4194
4229
|
accountClosureDescription: "Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",
|
|
@@ -4278,13 +4313,13 @@ const Et = {
|
|
|
4278
4313
|
accountClosureConfirm: "Yes"
|
|
4279
4314
|
}
|
|
4280
4315
|
};
|
|
4281
|
-
function
|
|
4316
|
+
function Ni(e, t) {
|
|
4282
4317
|
if (e) {
|
|
4283
4318
|
const r = document.createElement("style");
|
|
4284
4319
|
r.innerHTML = t, e.appendChild(r);
|
|
4285
4320
|
}
|
|
4286
4321
|
}
|
|
4287
|
-
function
|
|
4322
|
+
function Li(e, t) {
|
|
4288
4323
|
const r = new URL(t);
|
|
4289
4324
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4290
4325
|
const i = document.createElement("style");
|
|
@@ -4293,7 +4328,7 @@ function Pi(e, t) {
|
|
|
4293
4328
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4294
4329
|
});
|
|
4295
4330
|
}
|
|
4296
|
-
function
|
|
4331
|
+
function $i(e, t, r) {
|
|
4297
4332
|
if (window.emMessageBus) {
|
|
4298
4333
|
const n = document.createElement("style");
|
|
4299
4334
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4301,54 +4336,54 @@ function Oi(e, t, r) {
|
|
|
4301
4336
|
});
|
|
4302
4337
|
}
|
|
4303
4338
|
}
|
|
4304
|
-
function
|
|
4305
|
-
|
|
4339
|
+
function Ri(e) {
|
|
4340
|
+
lr(e, "svelte-11607qo", '.AccountClosureWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--pam-color-bg, var(--emw--background-color, #F1F1F1));border-radius:5%;padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg .aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountClosureTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-normal, 400)}.AccountClosureTitleMobile{font-size:var(--emw--font-size-large, 20px)}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:var(--emw--font-size-small, 14px);line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:30px 0;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:var(--emw--font-size-small, 14px);grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.ModalWrapper .ModalContent::before{content:"";position:absolute;top:-6px;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)}.ModalWrapper .ModalContent::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.ModalWrapper .ModalBody{background:transparent;padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:var(--emw--font-size-x-large, 24px);margin-bottom:40px;color:white}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:var(--emw--font-size-medium, 16px)}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:var(--emw--font-size-small, 14px)}');
|
|
4306
4341
|
}
|
|
4307
|
-
function
|
|
4342
|
+
function Di(e) {
|
|
4308
4343
|
let t, r, n, i, o, s, a, l, u, c, f = (
|
|
4309
4344
|
/*$_*/
|
|
4310
4345
|
e[2]("titleAccountClosure") + ""
|
|
4311
|
-
), h,
|
|
4346
|
+
), h, p, m;
|
|
4312
4347
|
return {
|
|
4313
4348
|
c() {
|
|
4314
|
-
t = B("div"), r = G("svg"), n = G("defs"), i = G("style"), o = $(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = G("g"), a = G("g"), l = G("path"), u = D(), c = B("h2"), h = $(f),
|
|
4349
|
+
t = B("div"), r = G("svg"), n = G("defs"), i = G("style"), o = $(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = G("g"), a = G("g"), l = G("path"), u = D(), c = B("h2"), h = $(f), x(l, "class", "aaa"), x(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), x(l, "transform", "translate(15 15) rotate(180)"), x(a, "transform", "translate(20 158)"), x(s, "transform", "translate(-20 -158)"), x(r, "xmlns", "http://www.w3.org/2000/svg"), x(r, "width", "15"), x(r, "height", "15"), x(r, "viewBox", "0 0 15 15"), x(c, "class", "AccountClosureTitleMobile"), x(c, "part", "AccountClosureTitleMobile"), x(t, "class", "MenuReturnButton"), x(t, "part", "MenuReturnButton");
|
|
4315
4350
|
},
|
|
4316
|
-
m(
|
|
4317
|
-
ye(
|
|
4351
|
+
m(d, w) {
|
|
4352
|
+
ye(d, t, w), g(t, r), g(r, n), g(n, i), g(i, o), g(r, s), g(s, a), g(a, l), g(t, u), g(t, c), g(c, h), p || (m = me(
|
|
4318
4353
|
t,
|
|
4319
4354
|
"click",
|
|
4320
4355
|
/*click_handler*/
|
|
4321
4356
|
e[12]
|
|
4322
|
-
),
|
|
4357
|
+
), p = !0);
|
|
4323
4358
|
},
|
|
4324
|
-
p(
|
|
4325
|
-
|
|
4359
|
+
p(d, w) {
|
|
4360
|
+
w & /*$_*/
|
|
4326
4361
|
4 && f !== (f = /*$_*/
|
|
4327
|
-
|
|
4362
|
+
d[2]("titleAccountClosure") + "") && W(h, f);
|
|
4328
4363
|
},
|
|
4329
|
-
d(
|
|
4330
|
-
|
|
4364
|
+
d(d) {
|
|
4365
|
+
d && se(t), p = !1, m();
|
|
4331
4366
|
}
|
|
4332
4367
|
};
|
|
4333
4368
|
}
|
|
4334
|
-
function
|
|
4369
|
+
function St(e) {
|
|
4335
4370
|
let t, r, n, i, o = (
|
|
4336
4371
|
/*$_*/
|
|
4337
4372
|
e[2]("modal") + ""
|
|
4338
4373
|
), s, a, l, u, c = (
|
|
4339
4374
|
/*$_*/
|
|
4340
4375
|
e[2]("accountClosureCancel") + ""
|
|
4341
|
-
), f, h,
|
|
4376
|
+
), f, h, p, m = (
|
|
4342
4377
|
/*$_*/
|
|
4343
4378
|
e[2]("accountClosureConfirm") + ""
|
|
4344
|
-
),
|
|
4379
|
+
), d, w, M;
|
|
4345
4380
|
return {
|
|
4346
4381
|
c() {
|
|
4347
|
-
t = B("div"), r = B("div"), n = B("div"), i = B("p"), s = $(o), a = D(), l = B("div"), u = B("button"), f = $(c), h = D(),
|
|
4382
|
+
t = B("div"), r = B("div"), n = B("div"), i = B("p"), s = $(o), a = D(), l = B("div"), u = B("button"), f = $(c), h = D(), p = B("button"), d = $(m), x(i, "class", "ModalText"), x(u, "class", "ModalCancel"), x(p, "class", "ModalConfirm"), x(l, "class", "ModalButtons"), x(n, "class", "ModalBody"), x(r, "class", "ModalContent"), x(t, "class", "ModalWrapper " + /*isMobile*/
|
|
4348
4383
|
(e[3] ? "ModalWrapperMobile" : ""));
|
|
4349
4384
|
},
|
|
4350
|
-
m(T,
|
|
4351
|
-
ye(T, t,
|
|
4385
|
+
m(T, y) {
|
|
4386
|
+
ye(T, t, y), g(t, r), g(r, n), g(n, i), g(i, s), g(n, a), g(n, l), g(l, u), g(u, f), g(l, h), g(l, p), g(p, d), w || (M = [
|
|
4352
4387
|
me(
|
|
4353
4388
|
u,
|
|
4354
4389
|
"click",
|
|
@@ -4356,100 +4391,100 @@ function _t(e) {
|
|
|
4356
4391
|
e[14]
|
|
4357
4392
|
),
|
|
4358
4393
|
me(
|
|
4359
|
-
|
|
4394
|
+
p,
|
|
4360
4395
|
"click",
|
|
4361
4396
|
/*click_handler_3*/
|
|
4362
4397
|
e[15]
|
|
4363
4398
|
)
|
|
4364
|
-
],
|
|
4399
|
+
], w = !0);
|
|
4365
4400
|
},
|
|
4366
|
-
p(T,
|
|
4367
|
-
|
|
4401
|
+
p(T, y) {
|
|
4402
|
+
y & /*$_*/
|
|
4368
4403
|
4 && o !== (o = /*$_*/
|
|
4369
|
-
T[2]("modal") + "") && W(s, o),
|
|
4404
|
+
T[2]("modal") + "") && W(s, o), y & /*$_*/
|
|
4370
4405
|
4 && c !== (c = /*$_*/
|
|
4371
|
-
T[2]("accountClosureCancel") + "") && W(f, c),
|
|
4406
|
+
T[2]("accountClosureCancel") + "") && W(f, c), y & /*$_*/
|
|
4372
4407
|
4 && m !== (m = /*$_*/
|
|
4373
|
-
T[2]("accountClosureConfirm") + "") && W(
|
|
4408
|
+
T[2]("accountClosureConfirm") + "") && W(d, m);
|
|
4374
4409
|
},
|
|
4375
4410
|
d(T) {
|
|
4376
|
-
T &&
|
|
4411
|
+
T && se(t), w = !1, Y(M);
|
|
4377
4412
|
}
|
|
4378
4413
|
};
|
|
4379
4414
|
}
|
|
4380
|
-
function
|
|
4415
|
+
function Ui(e) {
|
|
4381
4416
|
let t, r, n, i, o = (
|
|
4382
4417
|
/*$_*/
|
|
4383
4418
|
e[2]("titleAccountClosure") + ""
|
|
4384
4419
|
), s, a, l, u, c = (
|
|
4385
4420
|
/*$_*/
|
|
4386
4421
|
e[2]("accountClosureDescription") + ""
|
|
4387
|
-
), f, h,
|
|
4422
|
+
), f, h, p, m = (
|
|
4388
4423
|
/*$_*/
|
|
4389
4424
|
e[2]("closeAccount") + ""
|
|
4390
|
-
),
|
|
4425
|
+
), d, w, M, T, y = (
|
|
4391
4426
|
/*isMobile*/
|
|
4392
|
-
e[3] &&
|
|
4393
|
-
),
|
|
4427
|
+
e[3] && Di(e)
|
|
4428
|
+
), C = (
|
|
4394
4429
|
/*closureModal*/
|
|
4395
|
-
e[1] &&
|
|
4430
|
+
e[1] && St(e)
|
|
4396
4431
|
);
|
|
4397
4432
|
return {
|
|
4398
4433
|
c() {
|
|
4399
|
-
t = B("div"), r = B("div"),
|
|
4400
|
-
(e[3] ? "AccountClosureTitleNone" : "")),
|
|
4401
|
-
(e[3] ? "AccountClosureDescriptionMobile" : "")),
|
|
4402
|
-
(e[3] ? "AccountClosureSaveMobile" : "")),
|
|
4403
|
-
(e[3] ? "AccountClosureActionButtonsMobile" : "")),
|
|
4434
|
+
t = B("div"), r = B("div"), y && y.c(), n = D(), i = B("h2"), s = $(o), a = D(), l = B("div"), u = B("p"), f = D(), h = B("div"), p = B("button"), d = $(m), w = D(), C && C.c(), x(i, "class", "AccountClosureTitle " + /*isMobile*/
|
|
4435
|
+
(e[3] ? "AccountClosureTitleNone" : "")), x(l, "class", "AccountClosureDescription " + /*isMobile*/
|
|
4436
|
+
(e[3] ? "AccountClosureDescriptionMobile" : "")), x(p, "class", "AccountClosureSave " + /*isMobile*/
|
|
4437
|
+
(e[3] ? "AccountClosureSaveMobile" : "")), x(h, "class", "AccountClosureActionButtons " + /*isMobile*/
|
|
4438
|
+
(e[3] ? "AccountClosureActionButtonsMobile" : "")), x(r, "class", "AccountClosureWrapper " + /*isMobile*/
|
|
4404
4439
|
(e[3] ? "AccountClosureWrapperMobile" : ""));
|
|
4405
4440
|
},
|
|
4406
|
-
m(
|
|
4407
|
-
ye(
|
|
4408
|
-
|
|
4441
|
+
m(A, P) {
|
|
4442
|
+
ye(A, t, P), g(t, r), y && y.m(r, null), g(r, n), g(r, i), g(i, s), g(r, a), g(r, l), g(l, u), u.innerHTML = c, g(r, f), g(r, h), g(h, p), g(p, d), g(t, w), C && C.m(t, null), e[16](t), M || (T = me(
|
|
4443
|
+
p,
|
|
4409
4444
|
"click",
|
|
4410
4445
|
/*click_handler_1*/
|
|
4411
4446
|
e[13]
|
|
4412
4447
|
), M = !0);
|
|
4413
4448
|
},
|
|
4414
|
-
p(
|
|
4449
|
+
p(A, [P]) {
|
|
4415
4450
|
/*isMobile*/
|
|
4416
|
-
|
|
4451
|
+
A[3] && y.p(A, P), P & /*$_*/
|
|
4417
4452
|
4 && o !== (o = /*$_*/
|
|
4418
|
-
|
|
4453
|
+
A[2]("titleAccountClosure") + "") && W(s, o), P & /*$_*/
|
|
4419
4454
|
4 && c !== (c = /*$_*/
|
|
4420
|
-
|
|
4455
|
+
A[2]("accountClosureDescription") + "") && (u.innerHTML = c), P & /*$_*/
|
|
4421
4456
|
4 && m !== (m = /*$_*/
|
|
4422
|
-
|
|
4423
|
-
|
|
4457
|
+
A[2]("closeAccount") + "") && W(d, m), /*closureModal*/
|
|
4458
|
+
A[1] ? C ? C.p(A, P) : (C = St(A), C.c(), C.m(t, null)) : C && (C.d(1), C = null);
|
|
4424
4459
|
},
|
|
4425
4460
|
i: O,
|
|
4426
4461
|
o: O,
|
|
4427
|
-
d(
|
|
4428
|
-
|
|
4462
|
+
d(A) {
|
|
4463
|
+
A && se(t), y && y.d(), C && C.d(), e[16](null), M = !1, T();
|
|
4429
4464
|
}
|
|
4430
4465
|
};
|
|
4431
4466
|
}
|
|
4432
|
-
function
|
|
4467
|
+
function Fi(e, t, r) {
|
|
4433
4468
|
let n;
|
|
4434
|
-
|
|
4435
|
-
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, u = window.navigator.userAgent, c =
|
|
4436
|
-
const
|
|
4469
|
+
ur(e, Pi, (_) => r(2, n = _));
|
|
4470
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, u = window.navigator.userAgent, c = Oi(u) !== "PC", f = !1, h;
|
|
4471
|
+
const p = () => {
|
|
4437
4472
|
fetch(l).then((F) => F.json()).then((F) => {
|
|
4438
|
-
Object.keys(F).forEach((
|
|
4439
|
-
|
|
4473
|
+
Object.keys(F).forEach((tt) => {
|
|
4474
|
+
Ct(tt, F[tt]);
|
|
4440
4475
|
});
|
|
4441
4476
|
}).catch((F) => {
|
|
4442
4477
|
console.log(F);
|
|
4443
4478
|
});
|
|
4444
4479
|
};
|
|
4445
|
-
Object.keys(
|
|
4446
|
-
|
|
4480
|
+
Object.keys(At).forEach((_) => {
|
|
4481
|
+
Ct(_, At[_]);
|
|
4447
4482
|
});
|
|
4448
4483
|
const m = (_) => {
|
|
4449
4484
|
r(1, f = _), _ === !0 ? window.postMessage({ type: "DisableScroll" }, window.location.href) : window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4450
|
-
},
|
|
4485
|
+
}, d = () => {
|
|
4451
4486
|
m(!1), window.postMessage({ type: "AccountClosure" }, window.location.href);
|
|
4452
|
-
},
|
|
4487
|
+
}, w = () => {
|
|
4453
4488
|
window.postMessage(
|
|
4454
4489
|
{
|
|
4455
4490
|
type: "PlayerAccountMenuActive",
|
|
@@ -4458,13 +4493,13 @@ function $i(e, t, r) {
|
|
|
4458
4493
|
window.location.href
|
|
4459
4494
|
);
|
|
4460
4495
|
}, M = () => {
|
|
4461
|
-
|
|
4496
|
+
Ii(i);
|
|
4462
4497
|
};
|
|
4463
|
-
|
|
4498
|
+
mr(() => () => {
|
|
4464
4499
|
});
|
|
4465
|
-
const T = () =>
|
|
4500
|
+
const T = () => w(), y = () => m(!0), C = () => m(!1), A = () => d();
|
|
4466
4501
|
function P(_) {
|
|
4467
|
-
|
|
4502
|
+
Ne[_ ? "unshift" : "push"](() => {
|
|
4468
4503
|
h = _, r(0, h);
|
|
4469
4504
|
});
|
|
4470
4505
|
}
|
|
@@ -4473,38 +4508,38 @@ function $i(e, t, r) {
|
|
|
4473
4508
|
}, e.$$.update = () => {
|
|
4474
4509
|
e.$$.dirty & /*lang*/
|
|
4475
4510
|
128 && i && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4476
|
-
257 && o && h &&
|
|
4477
|
-
513 && s && h &&
|
|
4478
|
-
1025 && a && h &&
|
|
4479
|
-
2048 && l &&
|
|
4511
|
+
257 && o && h && Ni(h, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4512
|
+
513 && s && h && Li(h, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4513
|
+
1025 && a && h && $i(h, `${a}.Style`), e.$$.dirty & /*translationurl*/
|
|
4514
|
+
2048 && l && p();
|
|
4480
4515
|
}, [
|
|
4481
4516
|
h,
|
|
4482
4517
|
f,
|
|
4483
4518
|
n,
|
|
4484
4519
|
c,
|
|
4485
4520
|
m,
|
|
4486
|
-
|
|
4487
|
-
|
|
4521
|
+
d,
|
|
4522
|
+
w,
|
|
4488
4523
|
i,
|
|
4489
4524
|
o,
|
|
4490
4525
|
s,
|
|
4491
4526
|
a,
|
|
4492
4527
|
l,
|
|
4493
4528
|
T,
|
|
4494
|
-
|
|
4529
|
+
y,
|
|
4530
|
+
C,
|
|
4495
4531
|
A,
|
|
4496
|
-
S,
|
|
4497
4532
|
P
|
|
4498
4533
|
];
|
|
4499
4534
|
}
|
|
4500
|
-
class
|
|
4535
|
+
class Gi extends Tr {
|
|
4501
4536
|
constructor(t) {
|
|
4502
|
-
super(),
|
|
4537
|
+
super(), Ar(
|
|
4503
4538
|
this,
|
|
4504
4539
|
t,
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4540
|
+
Fi,
|
|
4541
|
+
Ui,
|
|
4542
|
+
Bt,
|
|
4508
4543
|
{
|
|
4509
4544
|
lang: 7,
|
|
4510
4545
|
clientstyling: 8,
|
|
@@ -4512,7 +4547,7 @@ class Ri extends wr {
|
|
|
4512
4547
|
mbsource: 10,
|
|
4513
4548
|
translationurl: 11
|
|
4514
4549
|
},
|
|
4515
|
-
|
|
4550
|
+
Ri
|
|
4516
4551
|
);
|
|
4517
4552
|
}
|
|
4518
4553
|
get lang() {
|
|
@@ -4546,7 +4581,7 @@ class Ri extends wr {
|
|
|
4546
4581
|
this.$$set({ translationurl: t }), R();
|
|
4547
4582
|
}
|
|
4548
4583
|
}
|
|
4549
|
-
|
|
4584
|
+
Sr(Gi, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4550
4585
|
export {
|
|
4551
|
-
|
|
4586
|
+
Gi as P
|
|
4552
4587
|
};
|