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