@everymatrix/general-player-sms-verification-form 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralPlayerSmsVerificationForm-3zGohhSt.js → GeneralPlayerSmsVerificationForm-Ba2loy8y.js} +344 -342
- package/components/{GeneralPlayerSmsVerificationForm-CNEhQ6hn.js → GeneralPlayerSmsVerificationForm-Bocty56w.js} +333 -331
- package/components/GeneralPlayerSmsVerificationForm-CFar80th.cjs +3 -0
- package/es2015/general-player-sms-verification-form.cjs +1 -1
- package/es2015/general-player-sms-verification-form.js +1 -1
- package/esnext/general-player-sms-verification-form.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerSmsVerificationForm-DyJ0tzSZ.cjs +0 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ce = (e, t, r) => t in e ?
|
|
1
|
+
var Kt = Object.defineProperty, er = Object.defineProperties;
|
|
2
|
+
var tr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var tt = Object.getOwnPropertySymbols;
|
|
4
|
+
var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
rr.call(t, r) && Ce(e, r, t[r]);
|
|
8
|
+
if (tt)
|
|
9
|
+
for (var r of tt(t))
|
|
10
|
+
nr.call(t, r) && Ce(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, nt = (e, t) => er(e, tr(t));
|
|
13
13
|
var $ = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
14
|
var ge = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
@@ -29,25 +29,25 @@ var ge = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function U() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ht(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function it() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function se(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Ht);
|
|
40
40
|
}
|
|
41
41
|
function Qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function At(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function ir(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Bt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function Ht(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function or(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Bt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function E(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function sr(e, t, r) {
|
|
66
|
+
const n = ar(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = M("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ar(e) {
|
|
73
73
|
if (!e) return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
75
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,7 +78,7 @@ function or(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ur(e, t) {
|
|
82
82
|
return E(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
@@ -106,17 +106,17 @@ function ve(e, t, r, n) {
|
|
|
106
106
|
function A(e, t, r) {
|
|
107
107
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function lr(e) {
|
|
110
110
|
return Array.from(e.childNodes);
|
|
111
111
|
}
|
|
112
112
|
function G(e, t) {
|
|
113
113
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
114
114
|
t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ot(e, t) {
|
|
117
117
|
e.value = t == null ? "" : t;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function hr(e) {
|
|
120
120
|
const t = {};
|
|
121
121
|
return e.childNodes.forEach(
|
|
122
122
|
/** @param {Element} node */
|
|
@@ -129,19 +129,19 @@ let fe;
|
|
|
129
129
|
function ce(e) {
|
|
130
130
|
fe = e;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function cr() {
|
|
133
133
|
if (!fe) throw new Error("Function called outside component initialization");
|
|
134
134
|
return fe;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
136
|
+
function fr(e) {
|
|
137
|
+
cr().$$.on_mount.push(e);
|
|
138
138
|
}
|
|
139
139
|
const ee = [], Ue = [];
|
|
140
140
|
let te = [];
|
|
141
|
-
const
|
|
141
|
+
const st = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
142
142
|
let De = !1;
|
|
143
|
-
function
|
|
144
|
-
De || (De = !0,
|
|
143
|
+
function mr() {
|
|
144
|
+
De || (De = !0, dr.then(F));
|
|
145
145
|
}
|
|
146
146
|
function Fe(e) {
|
|
147
147
|
te.push(e);
|
|
@@ -156,7 +156,7 @@ function F() {
|
|
|
156
156
|
try {
|
|
157
157
|
for (; Y < ee.length; ) {
|
|
158
158
|
const t = ee[Y];
|
|
159
|
-
Y++, ce(t),
|
|
159
|
+
Y++, ce(t), pr(t.$$);
|
|
160
160
|
}
|
|
161
161
|
} catch (t) {
|
|
162
162
|
throw ee.length = 0, Y = 0, t;
|
|
@@ -168,40 +168,40 @@ function F() {
|
|
|
168
168
|
}
|
|
169
169
|
te.length = 0;
|
|
170
170
|
} while (ee.length);
|
|
171
|
-
for (;
|
|
172
|
-
|
|
171
|
+
for (; st.length; )
|
|
172
|
+
st.pop()();
|
|
173
173
|
De = !1, Ie.clear(), ce(e);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function pr(e) {
|
|
176
176
|
if (e.fragment !== null) {
|
|
177
177
|
e.update(), se(e.before_update);
|
|
178
178
|
const t = e.dirty;
|
|
179
179
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function br(e) {
|
|
183
183
|
const t = [], r = [];
|
|
184
184
|
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
188
|
-
e && e.i && (
|
|
186
|
+
const gr = /* @__PURE__ */ new Set();
|
|
187
|
+
function vr(e, t) {
|
|
188
|
+
e && e.i && (gr.delete(e), e.i(t));
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function yr(e, t, r) {
|
|
191
191
|
const { fragment: n, after_update: i } = e.$$;
|
|
192
192
|
n && n.m(t, r), Fe(() => {
|
|
193
|
-
const o = e.$$.on_mount.map(
|
|
193
|
+
const o = e.$$.on_mount.map(Ht).filter(Qe);
|
|
194
194
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
195
195
|
}), i.forEach(Fe);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Er(e, t) {
|
|
198
198
|
const r = e.$$;
|
|
199
|
-
r.fragment !== null && (
|
|
199
|
+
r.fragment !== null && (br(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
e.$$.dirty[0] === -1 && (ee.push(e),
|
|
201
|
+
function xr(e, t) {
|
|
202
|
+
e.$$.dirty[0] === -1 && (ee.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
205
205
|
const l = fe;
|
|
206
206
|
ce(e);
|
|
207
207
|
const u = e.$$ = {
|
|
@@ -211,7 +211,7 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
211
211
|
props: o,
|
|
212
212
|
update: U,
|
|
213
213
|
not_equal: i,
|
|
214
|
-
bound:
|
|
214
|
+
bound: it(),
|
|
215
215
|
// lifecycle
|
|
216
216
|
on_mount: [],
|
|
217
217
|
on_destroy: [],
|
|
@@ -220,7 +220,7 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
220
220
|
after_update: [],
|
|
221
221
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
222
222
|
// everything else
|
|
223
|
-
callbacks:
|
|
223
|
+
callbacks: it(),
|
|
224
224
|
dirty: a,
|
|
225
225
|
skip_bound: !1,
|
|
226
226
|
root: t.target || l.$$.root
|
|
@@ -229,19 +229,19 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
229
229
|
let h = !1;
|
|
230
230
|
if (u.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
|
|
231
231
|
const v = b.length ? b[0] : d;
|
|
232
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h &&
|
|
232
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && xr(e, f)), d;
|
|
233
233
|
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
234
234
|
if (t.hydrate) {
|
|
235
|
-
const f =
|
|
235
|
+
const f = lr(t.target);
|
|
236
236
|
u.fragment && u.fragment.l(f), f.forEach(j);
|
|
237
237
|
} else
|
|
238
238
|
u.fragment && u.fragment.c();
|
|
239
|
-
t.intro &&
|
|
239
|
+
t.intro && vr(e.$$.fragment), yr(e, t.target, t.anchor), F();
|
|
240
240
|
}
|
|
241
241
|
ce(l);
|
|
242
242
|
}
|
|
243
|
-
let
|
|
244
|
-
typeof HTMLElement == "function" && (
|
|
243
|
+
let wt;
|
|
244
|
+
typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
245
245
|
constructor(t, r, n) {
|
|
246
246
|
super();
|
|
247
247
|
/** The Svelte component constructor */
|
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
302
302
|
};
|
|
303
303
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
304
304
|
return;
|
|
305
|
-
const r = {}, n =
|
|
305
|
+
const r = {}, n = hr(this);
|
|
306
306
|
for (const o of this.$$s)
|
|
307
307
|
o in n && (r[o] = [t(o)]);
|
|
308
308
|
for (const o of this.attributes) {
|
|
@@ -313,7 +313,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
313
313
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
314
314
|
this.$$c = new this.$$ctor({
|
|
315
315
|
target: this.shadowRoot || this,
|
|
316
|
-
props:
|
|
316
|
+
props: nt(rt({}, this.$$d), {
|
|
317
317
|
$$slots: r,
|
|
318
318
|
$$scope: {
|
|
319
319
|
ctx: []
|
|
@@ -391,8 +391,8 @@ function Ee(e, t, r, n) {
|
|
|
391
391
|
return t;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
let s = class extends
|
|
394
|
+
function Sr(e, t, r, n, i, o) {
|
|
395
|
+
let s = class extends wt {
|
|
396
396
|
constructor() {
|
|
397
397
|
super(e, r, i), this.$$p_d = t;
|
|
398
398
|
}
|
|
@@ -422,7 +422,7 @@ function xr(e, t, r, n, i, o) {
|
|
|
422
422
|
}), e.element = /** @type {any} */
|
|
423
423
|
s, s;
|
|
424
424
|
}
|
|
425
|
-
class
|
|
425
|
+
class Tr {
|
|
426
426
|
constructor() {
|
|
427
427
|
/**
|
|
428
428
|
* ### PRIVATE API
|
|
@@ -443,7 +443,7 @@ class _r {
|
|
|
443
443
|
}
|
|
444
444
|
/** @returns {void} */
|
|
445
445
|
$destroy() {
|
|
446
|
-
|
|
446
|
+
Er(this, 1), this.$destroy = U;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,13 +465,13 @@ class _r {
|
|
|
465
465
|
* @returns {void}
|
|
466
466
|
*/
|
|
467
467
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
468
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
471
|
+
const Hr = "4";
|
|
472
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
473
473
|
const K = [];
|
|
474
|
-
function
|
|
474
|
+
function Ar(e, t) {
|
|
475
475
|
return {
|
|
476
476
|
subscribe: He(e, t).subscribe
|
|
477
477
|
};
|
|
@@ -480,7 +480,7 @@ function He(e, t = U) {
|
|
|
480
480
|
let r;
|
|
481
481
|
const n = /* @__PURE__ */ new Set();
|
|
482
482
|
function i(a) {
|
|
483
|
-
if (
|
|
483
|
+
if (At(e, a) && (e = a, r)) {
|
|
484
484
|
const l = !K.length;
|
|
485
485
|
for (const u of n)
|
|
486
486
|
u[1](), K.push(u, e);
|
|
@@ -507,7 +507,7 @@ function ae(e, t, r) {
|
|
|
507
507
|
if (!i.every(Boolean))
|
|
508
508
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
509
509
|
const o = t.length < 2;
|
|
510
|
-
return
|
|
510
|
+
return Ar(r, (s, a) => {
|
|
511
511
|
let l = !1;
|
|
512
512
|
const u = [];
|
|
513
513
|
let h = 0, f = U;
|
|
@@ -518,7 +518,7 @@ function ae(e, t, r) {
|
|
|
518
518
|
const v = t(n ? u[0] : u, s, a);
|
|
519
519
|
o ? s(v) : f = Qe(v) ? v : U;
|
|
520
520
|
}, b = i.map(
|
|
521
|
-
(v, _) =>
|
|
521
|
+
(v, _) => Bt(
|
|
522
522
|
v,
|
|
523
523
|
(S) => {
|
|
524
524
|
u[_] = S, h &= ~(1 << _), l && d();
|
|
@@ -533,70 +533,70 @@ function ae(e, t, r) {
|
|
|
533
533
|
};
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Br(e) {
|
|
537
537
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
539
|
+
var wr = function(t) {
|
|
540
|
+
return Pr(t) && !Cr(t);
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Pr(e) {
|
|
543
543
|
return !!e && typeof e == "object";
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Cr(e) {
|
|
546
546
|
var t = Object.prototype.toString.call(e);
|
|
547
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
547
|
+
return t === "[object RegExp]" || t === "[object Date]" || Or(e);
|
|
548
548
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
return e.$$typeof ===
|
|
549
|
+
var Ir = typeof Symbol == "function" && Symbol.for, Nr = Ir ? Symbol.for("react.element") : 60103;
|
|
550
|
+
function Or(e) {
|
|
551
|
+
return e.$$typeof === Nr;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Mr(e) {
|
|
554
554
|
return Array.isArray(e) ? [] : {};
|
|
555
555
|
}
|
|
556
556
|
function de(e, t) {
|
|
557
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? re(
|
|
557
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Mr(e), e, t) : e;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Lr(e, t, r) {
|
|
560
560
|
return e.concat(t).map(function(n) {
|
|
561
561
|
return de(n, r);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Rr(e, t) {
|
|
565
565
|
if (!t.customMerge)
|
|
566
566
|
return re;
|
|
567
567
|
var r = t.customMerge(e);
|
|
568
568
|
return typeof r == "function" ? r : re;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function $r(e) {
|
|
571
571
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
572
572
|
return Object.propertyIsEnumerable.call(e, t);
|
|
573
573
|
}) : [];
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return Object.keys(e).concat(
|
|
575
|
+
function at(e) {
|
|
576
|
+
return Object.keys(e).concat($r(e));
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Pt(e, t) {
|
|
579
579
|
try {
|
|
580
580
|
return t in e;
|
|
581
581
|
} catch (r) {
|
|
582
582
|
return !1;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function Ur(e, t) {
|
|
586
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Dr(e, t, r) {
|
|
589
589
|
var n = {};
|
|
590
|
-
return r.isMergeableObject(e) &&
|
|
590
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
591
591
|
n[i] = de(e[i], r);
|
|
592
|
-
}),
|
|
593
|
-
|
|
592
|
+
}), at(t).forEach(function(i) {
|
|
593
|
+
Ur(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
594
594
|
}), n;
|
|
595
595
|
}
|
|
596
596
|
function re(e, t, r) {
|
|
597
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
597
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = de;
|
|
598
598
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
599
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
599
|
+
return o ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : de(t, r);
|
|
600
600
|
}
|
|
601
601
|
re.all = function(t, r) {
|
|
602
602
|
if (!Array.isArray(t))
|
|
@@ -605,8 +605,8 @@ re.all = function(t, r) {
|
|
|
605
605
|
return re(n, i, r);
|
|
606
606
|
}, {});
|
|
607
607
|
};
|
|
608
|
-
var
|
|
609
|
-
const
|
|
608
|
+
var Fr = re, Gr = Fr;
|
|
609
|
+
const kr = /* @__PURE__ */ Br(Gr);
|
|
610
610
|
var Ge = function(e, t) {
|
|
611
611
|
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
612
612
|
r.__proto__ = n;
|
|
@@ -632,7 +632,7 @@ var g = function() {
|
|
|
632
632
|
return t;
|
|
633
633
|
}, g.apply(this, arguments);
|
|
634
634
|
};
|
|
635
|
-
function
|
|
635
|
+
function jr(e, t) {
|
|
636
636
|
var r = {};
|
|
637
637
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
638
638
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -646,53 +646,55 @@ function Ne(e, t, r) {
|
|
|
646
646
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
647
647
|
}
|
|
648
648
|
function Oe(e, t) {
|
|
649
|
-
var r = t && t.cache ? t.cache :
|
|
649
|
+
var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : Xr;
|
|
650
650
|
return i(e, {
|
|
651
651
|
cache: r,
|
|
652
652
|
serializer: n
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Vr(e) {
|
|
656
656
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
657
657
|
}
|
|
658
|
-
function
|
|
659
|
-
var i =
|
|
658
|
+
function Ct(e, t, r, n) {
|
|
659
|
+
var i = Vr(n) ? n : r(n), o = t.get(i);
|
|
660
660
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function It(e, t, r) {
|
|
663
663
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
664
664
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function qe(e, t, r, n, i) {
|
|
667
667
|
return r.bind(t, e, n, i);
|
|
668
668
|
}
|
|
669
|
-
function Vr(e, t) {
|
|
670
|
-
var r = e.length === 1 ? jr : wt;
|
|
671
|
-
return Pt(e, this, r, t.cache.create(), t.serializer);
|
|
672
|
-
}
|
|
673
669
|
function Xr(e, t) {
|
|
674
|
-
|
|
670
|
+
var r = e.length === 1 ? Ct : It;
|
|
671
|
+
return qe(e, this, r, t.cache.create(), t.serializer);
|
|
672
|
+
}
|
|
673
|
+
function zr(e, t) {
|
|
674
|
+
return qe(e, this, It, t.cache.create(), t.serializer);
|
|
675
|
+
}
|
|
676
|
+
function Wr(e, t) {
|
|
677
|
+
return qe(e, this, Ct, t.cache.create(), t.serializer);
|
|
675
678
|
}
|
|
676
|
-
var
|
|
679
|
+
var Zr = function() {
|
|
677
680
|
return JSON.stringify(arguments);
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}()
|
|
690
|
-
), Zr = {
|
|
681
|
+
};
|
|
682
|
+
function Ye() {
|
|
683
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
684
|
+
}
|
|
685
|
+
Ye.prototype.get = function(e) {
|
|
686
|
+
return this.cache[e];
|
|
687
|
+
};
|
|
688
|
+
Ye.prototype.set = function(e, t) {
|
|
689
|
+
this.cache[e] = t;
|
|
690
|
+
};
|
|
691
|
+
var Jr = {
|
|
691
692
|
create: function() {
|
|
692
|
-
return new
|
|
693
|
+
return new Ye();
|
|
693
694
|
}
|
|
694
695
|
}, Me = {
|
|
695
|
-
variadic:
|
|
696
|
+
variadic: zr,
|
|
697
|
+
monadic: Wr
|
|
696
698
|
}, m;
|
|
697
699
|
(function(e) {
|
|
698
700
|
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";
|
|
@@ -705,43 +707,43 @@ var ne;
|
|
|
705
707
|
(function(e) {
|
|
706
708
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
707
709
|
})(ne || (ne = {}));
|
|
708
|
-
function
|
|
710
|
+
function ut(e) {
|
|
709
711
|
return e.type === x.literal;
|
|
710
712
|
}
|
|
711
|
-
function
|
|
713
|
+
function Qr(e) {
|
|
712
714
|
return e.type === x.argument;
|
|
713
715
|
}
|
|
714
|
-
function
|
|
716
|
+
function Nt(e) {
|
|
715
717
|
return e.type === x.number;
|
|
716
718
|
}
|
|
717
|
-
function
|
|
719
|
+
function Ot(e) {
|
|
718
720
|
return e.type === x.date;
|
|
719
721
|
}
|
|
720
|
-
function
|
|
722
|
+
function Mt(e) {
|
|
721
723
|
return e.type === x.time;
|
|
722
724
|
}
|
|
723
|
-
function
|
|
725
|
+
function Lt(e) {
|
|
724
726
|
return e.type === x.select;
|
|
725
727
|
}
|
|
726
|
-
function
|
|
728
|
+
function Rt(e) {
|
|
727
729
|
return e.type === x.plural;
|
|
728
730
|
}
|
|
729
|
-
function
|
|
731
|
+
function qr(e) {
|
|
730
732
|
return e.type === x.pound;
|
|
731
733
|
}
|
|
732
|
-
function
|
|
734
|
+
function $t(e) {
|
|
733
735
|
return e.type === x.tag;
|
|
734
736
|
}
|
|
735
|
-
function
|
|
737
|
+
function Ut(e) {
|
|
736
738
|
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
737
739
|
}
|
|
738
740
|
function ke(e) {
|
|
739
741
|
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
740
742
|
}
|
|
741
|
-
var
|
|
742
|
-
function
|
|
743
|
+
var Dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Yr = /(?:[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;
|
|
744
|
+
function Kr(e) {
|
|
743
745
|
var t = {};
|
|
744
|
-
return e.replace(
|
|
746
|
+
return e.replace(Yr, function(r) {
|
|
745
747
|
var n = r.length;
|
|
746
748
|
switch (r[0]) {
|
|
747
749
|
case "G":
|
|
@@ -830,11 +832,11 @@ function Yr(e) {
|
|
|
830
832
|
return "";
|
|
831
833
|
}), t;
|
|
832
834
|
}
|
|
833
|
-
var
|
|
834
|
-
function
|
|
835
|
+
var en = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
836
|
+
function tn(e) {
|
|
835
837
|
if (e.length === 0)
|
|
836
838
|
throw new Error("Number skeleton cannot be empty");
|
|
837
|
-
for (var t = e.split(
|
|
839
|
+
for (var t = e.split(en).filter(function(d) {
|
|
838
840
|
return d.length > 0;
|
|
839
841
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
840
842
|
var o = i[n], s = o.split("/");
|
|
@@ -849,17 +851,17 @@ function en(e) {
|
|
|
849
851
|
}
|
|
850
852
|
return r;
|
|
851
853
|
}
|
|
852
|
-
function
|
|
854
|
+
function rn(e) {
|
|
853
855
|
return e.replace(/^(.*?)-/, "");
|
|
854
856
|
}
|
|
855
|
-
var
|
|
856
|
-
function
|
|
857
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, nn = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
|
|
858
|
+
function ht(e) {
|
|
857
859
|
var t = {};
|
|
858
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
860
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
859
861
|
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)), "";
|
|
860
862
|
}), t;
|
|
861
863
|
}
|
|
862
|
-
function
|
|
864
|
+
function kt(e) {
|
|
863
865
|
switch (e) {
|
|
864
866
|
case "sign-auto":
|
|
865
867
|
return {
|
|
@@ -899,7 +901,7 @@ function Ft(e) {
|
|
|
899
901
|
};
|
|
900
902
|
}
|
|
901
903
|
}
|
|
902
|
-
function
|
|
904
|
+
function on(e) {
|
|
903
905
|
var t;
|
|
904
906
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
905
907
|
notation: "engineering"
|
|
@@ -907,17 +909,17 @@ function nn(e) {
|
|
|
907
909
|
notation: "scientific"
|
|
908
910
|
}, e = e.slice(1)), t) {
|
|
909
911
|
var r = e.slice(0, 2);
|
|
910
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
912
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
|
|
911
913
|
throw new Error("Malformed concise eng/scientific notation");
|
|
912
914
|
t.minimumIntegerDigits = e.length;
|
|
913
915
|
}
|
|
914
916
|
return t;
|
|
915
917
|
}
|
|
916
|
-
function
|
|
917
|
-
var t = {}, r =
|
|
918
|
+
function ct(e) {
|
|
919
|
+
var t = {}, r = kt(e);
|
|
918
920
|
return r || t;
|
|
919
921
|
}
|
|
920
|
-
function
|
|
922
|
+
function sn(e) {
|
|
921
923
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
922
924
|
var i = n[r];
|
|
923
925
|
switch (i.stem) {
|
|
@@ -941,7 +943,7 @@ function on(e) {
|
|
|
941
943
|
continue;
|
|
942
944
|
case "measure-unit":
|
|
943
945
|
case "unit":
|
|
944
|
-
t.style = "unit", t.unit =
|
|
946
|
+
t.style = "unit", t.unit = rn(i.options[0]);
|
|
945
947
|
continue;
|
|
946
948
|
case "compact-short":
|
|
947
949
|
case "K":
|
|
@@ -953,12 +955,12 @@ function on(e) {
|
|
|
953
955
|
continue;
|
|
954
956
|
case "scientific":
|
|
955
957
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
956
|
-
return g(g({}, l),
|
|
958
|
+
return g(g({}, l), ct(u));
|
|
957
959
|
}, {}));
|
|
958
960
|
continue;
|
|
959
961
|
case "engineering":
|
|
960
962
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
961
|
-
return g(g({}, l),
|
|
963
|
+
return g(g({}, l), ct(u));
|
|
962
964
|
}, {}));
|
|
963
965
|
continue;
|
|
964
966
|
case "notation-simple":
|
|
@@ -1003,7 +1005,7 @@ function on(e) {
|
|
|
1003
1005
|
case "integer-width":
|
|
1004
1006
|
if (i.options.length > 1)
|
|
1005
1007
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1006
|
-
i.options[0].replace(
|
|
1008
|
+
i.options[0].replace(nn, function(l, u, h, f, d, b) {
|
|
1007
1009
|
if (u)
|
|
1008
1010
|
t.minimumIntegerDigits = h.length;
|
|
1009
1011
|
else {
|
|
@@ -1016,27 +1018,27 @@ function on(e) {
|
|
|
1016
1018
|
});
|
|
1017
1019
|
continue;
|
|
1018
1020
|
}
|
|
1019
|
-
if (
|
|
1021
|
+
if (Gt.test(i.stem)) {
|
|
1020
1022
|
t.minimumIntegerDigits = i.stem.length;
|
|
1021
1023
|
continue;
|
|
1022
1024
|
}
|
|
1023
|
-
if (
|
|
1025
|
+
if (lt.test(i.stem)) {
|
|
1024
1026
|
if (i.options.length > 1)
|
|
1025
1027
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1026
|
-
i.stem.replace(
|
|
1028
|
+
i.stem.replace(lt, function(l, u, h, f, d, b) {
|
|
1027
1029
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1028
1030
|
});
|
|
1029
1031
|
var o = i.options[0];
|
|
1030
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1032
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ht(o)));
|
|
1031
1033
|
continue;
|
|
1032
1034
|
}
|
|
1033
|
-
if (
|
|
1034
|
-
t = g(g({}, t),
|
|
1035
|
+
if (Ft.test(i.stem)) {
|
|
1036
|
+
t = g(g({}, t), ht(i.stem));
|
|
1035
1037
|
continue;
|
|
1036
1038
|
}
|
|
1037
|
-
var s =
|
|
1039
|
+
var s = kt(i.stem);
|
|
1038
1040
|
s && (t = g(g({}, t), s));
|
|
1039
|
-
var a =
|
|
1041
|
+
var a = on(i.stem);
|
|
1040
1042
|
a && (t = g(g({}, t), a));
|
|
1041
1043
|
}
|
|
1042
1044
|
return t;
|
|
@@ -2456,13 +2458,13 @@ var ye = {
|
|
|
2456
2458
|
"h"
|
|
2457
2459
|
]
|
|
2458
2460
|
};
|
|
2459
|
-
function
|
|
2461
|
+
function an(e, t) {
|
|
2460
2462
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2461
2463
|
var i = e.charAt(n);
|
|
2462
2464
|
if (i === "j") {
|
|
2463
2465
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2464
2466
|
o++, n++;
|
|
2465
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2467
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = un(t);
|
|
2466
2468
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2467
2469
|
r += l;
|
|
2468
2470
|
for (; s-- > 0; )
|
|
@@ -2471,7 +2473,7 @@ function sn(e, t) {
|
|
|
2471
2473
|
}
|
|
2472
2474
|
return r;
|
|
2473
2475
|
}
|
|
2474
|
-
function
|
|
2476
|
+
function un(e) {
|
|
2475
2477
|
var t = e.hourCycle;
|
|
2476
2478
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2477
2479
|
e.hourCycles && // @ts-ignore
|
|
@@ -2493,20 +2495,20 @@ function an(e) {
|
|
|
2493
2495
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
2494
2496
|
return i[0];
|
|
2495
2497
|
}
|
|
2496
|
-
var Le,
|
|
2498
|
+
var Le, ln = new RegExp("^".concat(Dt.source, "*")), hn = new RegExp("".concat(Dt.source, "*$"));
|
|
2497
2499
|
function p(e, t) {
|
|
2498
2500
|
return { start: e, end: t };
|
|
2499
2501
|
}
|
|
2500
|
-
var
|
|
2502
|
+
var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), fn = !!String.fromCodePoint, dn = !!Object.fromEntries, mn = !!String.prototype.codePointAt, pn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, gn = !!Number.isSafeInteger, vn = gn ? Number.isSafeInteger : function(e) {
|
|
2501
2503
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2502
2504
|
}, je = !0;
|
|
2503
2505
|
try {
|
|
2504
|
-
var
|
|
2505
|
-
je = ((Le =
|
|
2506
|
+
var yn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2507
|
+
je = ((Le = yn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2506
2508
|
} catch (e) {
|
|
2507
2509
|
je = !1;
|
|
2508
2510
|
}
|
|
2509
|
-
var
|
|
2511
|
+
var ft = cn ? (
|
|
2510
2512
|
// Native
|
|
2511
2513
|
function(t, r, n) {
|
|
2512
2514
|
return t.startsWith(r, n);
|
|
@@ -2516,7 +2518,7 @@ var ht = hn ? (
|
|
|
2516
2518
|
function(t, r, n) {
|
|
2517
2519
|
return t.slice(n, n + r.length) === r;
|
|
2518
2520
|
}
|
|
2519
|
-
), Ve =
|
|
2521
|
+
), Ve = fn ? String.fromCodePoint : (
|
|
2520
2522
|
// IE11
|
|
2521
2523
|
function() {
|
|
2522
2524
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2528,9 +2530,9 @@ var ht = hn ? (
|
|
|
2528
2530
|
}
|
|
2529
2531
|
return n;
|
|
2530
2532
|
}
|
|
2531
|
-
),
|
|
2533
|
+
), dt = (
|
|
2532
2534
|
// native
|
|
2533
|
-
|
|
2535
|
+
dn ? Object.fromEntries : (
|
|
2534
2536
|
// Ponyfill
|
|
2535
2537
|
function(t) {
|
|
2536
2538
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2540,7 +2542,7 @@ var ht = hn ? (
|
|
|
2540
2542
|
return r;
|
|
2541
2543
|
}
|
|
2542
2544
|
)
|
|
2543
|
-
),
|
|
2545
|
+
), jt = mn ? (
|
|
2544
2546
|
// Native
|
|
2545
2547
|
function(t, r) {
|
|
2546
2548
|
return t.codePointAt(r);
|
|
@@ -2554,7 +2556,7 @@ var ht = hn ? (
|
|
|
2554
2556
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2555
2557
|
}
|
|
2556
2558
|
}
|
|
2557
|
-
),
|
|
2559
|
+
), En = pn ? (
|
|
2558
2560
|
// Native
|
|
2559
2561
|
function(t) {
|
|
2560
2562
|
return t.trimStart();
|
|
@@ -2562,9 +2564,9 @@ var ht = hn ? (
|
|
|
2562
2564
|
) : (
|
|
2563
2565
|
// Ponyfill
|
|
2564
2566
|
function(t) {
|
|
2565
|
-
return t.replace(
|
|
2567
|
+
return t.replace(ln, "");
|
|
2566
2568
|
}
|
|
2567
|
-
),
|
|
2569
|
+
), xn = bn ? (
|
|
2568
2570
|
// Native
|
|
2569
2571
|
function(t) {
|
|
2570
2572
|
return t.trimEnd();
|
|
@@ -2572,32 +2574,32 @@ var ht = hn ? (
|
|
|
2572
2574
|
) : (
|
|
2573
2575
|
// Ponyfill
|
|
2574
2576
|
function(t) {
|
|
2575
|
-
return t.replace(
|
|
2577
|
+
return t.replace(hn, "");
|
|
2576
2578
|
}
|
|
2577
2579
|
);
|
|
2578
|
-
function
|
|
2580
|
+
function Vt(e, t) {
|
|
2579
2581
|
return new RegExp(e, t);
|
|
2580
2582
|
}
|
|
2581
2583
|
var Xe;
|
|
2582
2584
|
if (je) {
|
|
2583
|
-
var
|
|
2585
|
+
var mt = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2584
2586
|
Xe = function(t, r) {
|
|
2585
2587
|
var n;
|
|
2586
|
-
|
|
2587
|
-
var i =
|
|
2588
|
+
mt.lastIndex = r;
|
|
2589
|
+
var i = mt.exec(t);
|
|
2588
2590
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2589
2591
|
};
|
|
2590
2592
|
} else
|
|
2591
2593
|
Xe = function(t, r) {
|
|
2592
2594
|
for (var n = []; ; ) {
|
|
2593
|
-
var i =
|
|
2594
|
-
if (i === void 0 ||
|
|
2595
|
+
var i = jt(t, r);
|
|
2596
|
+
if (i === void 0 || Xt(i) || Hn(i))
|
|
2595
2597
|
break;
|
|
2596
2598
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2597
2599
|
}
|
|
2598
2600
|
return Ve.apply(void 0, n);
|
|
2599
2601
|
};
|
|
2600
|
-
var
|
|
2602
|
+
var _n = (
|
|
2601
2603
|
/** @class */
|
|
2602
2604
|
function() {
|
|
2603
2605
|
function e(t, r) {
|
|
@@ -2679,7 +2681,7 @@ var xn = (
|
|
|
2679
2681
|
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2680
2682
|
}, e.prototype.parseTagName = function() {
|
|
2681
2683
|
var t = this.offset();
|
|
2682
|
-
for (this.bump(); !this.isEOF() &&
|
|
2684
|
+
for (this.bump(); !this.isEOF() && Tn(this.char()); )
|
|
2683
2685
|
this.bump();
|
|
2684
2686
|
return this.message.slice(t, this.offset());
|
|
2685
2687
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2708,7 +2710,7 @@ var xn = (
|
|
|
2708
2710
|
};
|
|
2709
2711
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2710
2712
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2711
|
-
!
|
|
2713
|
+
!Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2712
2714
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2713
2715
|
if (this.isEOF() || this.char() !== 39)
|
|
2714
2716
|
return null;
|
|
@@ -2795,7 +2797,7 @@ var xn = (
|
|
|
2795
2797
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2796
2798
|
if (f.err)
|
|
2797
2799
|
return f;
|
|
2798
|
-
var d =
|
|
2800
|
+
var d = xn(f.val);
|
|
2799
2801
|
if (d.length === 0)
|
|
2800
2802
|
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2801
2803
|
var b = p(h, this.clonePosition());
|
|
@@ -2805,8 +2807,8 @@ var xn = (
|
|
|
2805
2807
|
if (v.err)
|
|
2806
2808
|
return v;
|
|
2807
2809
|
var _ = p(i, this.clonePosition());
|
|
2808
|
-
if (u &&
|
|
2809
|
-
var S =
|
|
2810
|
+
if (u && ft(u == null ? void 0 : u.style, "::", 0)) {
|
|
2811
|
+
var S = En(u.style.slice(2));
|
|
2810
2812
|
if (a === "number") {
|
|
2811
2813
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2812
2814
|
return f.err ? f : {
|
|
@@ -2817,12 +2819,12 @@ var xn = (
|
|
|
2817
2819
|
if (S.length === 0)
|
|
2818
2820
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2819
2821
|
var R = S;
|
|
2820
|
-
this.locale && (R =
|
|
2822
|
+
this.locale && (R = an(S, this.locale));
|
|
2821
2823
|
var d = {
|
|
2822
2824
|
type: ne.dateTime,
|
|
2823
2825
|
pattern: R,
|
|
2824
2826
|
location: u.styleLocation,
|
|
2825
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2827
|
+
parsedOptions: this.shouldParseSkeletons ? Kr(R) : {}
|
|
2826
2828
|
}, N = a === "date" ? x.date : x.time;
|
|
2827
2829
|
return {
|
|
2828
2830
|
val: { type: N, value: n, location: _, style: d },
|
|
@@ -2868,7 +2870,7 @@ var xn = (
|
|
|
2868
2870
|
val: {
|
|
2869
2871
|
type: x.select,
|
|
2870
2872
|
value: n,
|
|
2871
|
-
options:
|
|
2873
|
+
options: dt(D.val),
|
|
2872
2874
|
location: V
|
|
2873
2875
|
},
|
|
2874
2876
|
err: null
|
|
@@ -2876,7 +2878,7 @@ var xn = (
|
|
|
2876
2878
|
val: {
|
|
2877
2879
|
type: x.plural,
|
|
2878
2880
|
value: n,
|
|
2879
|
-
options:
|
|
2881
|
+
options: dt(D.val),
|
|
2880
2882
|
offset: I,
|
|
2881
2883
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2882
2884
|
location: V
|
|
@@ -2927,7 +2929,7 @@ var xn = (
|
|
|
2927
2929
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2928
2930
|
var n = [];
|
|
2929
2931
|
try {
|
|
2930
|
-
n =
|
|
2932
|
+
n = tn(t);
|
|
2931
2933
|
} catch (i) {
|
|
2932
2934
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2933
2935
|
}
|
|
@@ -2936,7 +2938,7 @@ var xn = (
|
|
|
2936
2938
|
type: ne.number,
|
|
2937
2939
|
tokens: n,
|
|
2938
2940
|
location: r,
|
|
2939
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2941
|
+
parsedOptions: this.shouldParseSkeletons ? sn(n) : {}
|
|
2940
2942
|
},
|
|
2941
2943
|
err: null
|
|
2942
2944
|
};
|
|
@@ -2984,7 +2986,7 @@ var xn = (
|
|
|
2984
2986
|
break;
|
|
2985
2987
|
}
|
|
2986
2988
|
var l = p(i, this.clonePosition());
|
|
2987
|
-
return o ? (s *= n,
|
|
2989
|
+
return o ? (s *= n, vn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2988
2990
|
}, e.prototype.offset = function() {
|
|
2989
2991
|
return this.position.offset;
|
|
2990
2992
|
}, e.prototype.isEOF = function() {
|
|
@@ -2999,7 +3001,7 @@ var xn = (
|
|
|
2999
3001
|
var t = this.position.offset;
|
|
3000
3002
|
if (t >= this.message.length)
|
|
3001
3003
|
throw Error("out of bound");
|
|
3002
|
-
var r =
|
|
3004
|
+
var r = jt(this.message, t);
|
|
3003
3005
|
if (r === void 0)
|
|
3004
3006
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3005
3007
|
return r;
|
|
@@ -3018,7 +3020,7 @@ var xn = (
|
|
|
3018
3020
|
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);
|
|
3019
3021
|
}
|
|
3020
3022
|
}, e.prototype.bumpIf = function(t) {
|
|
3021
|
-
if (
|
|
3023
|
+
if (ft(this.message, t, this.offset())) {
|
|
3022
3024
|
for (var r = 0; r < t.length; r++)
|
|
3023
3025
|
this.bump();
|
|
3024
3026
|
return !0;
|
|
@@ -3040,7 +3042,7 @@ var xn = (
|
|
|
3040
3042
|
break;
|
|
3041
3043
|
}
|
|
3042
3044
|
}, e.prototype.bumpSpace = function() {
|
|
3043
|
-
for (; !this.isEOF() &&
|
|
3045
|
+
for (; !this.isEOF() && Xt(this.char()); )
|
|
3044
3046
|
this.bump();
|
|
3045
3047
|
}, e.prototype.peek = function() {
|
|
3046
3048
|
if (this.isEOF())
|
|
@@ -3053,29 +3055,29 @@ var xn = (
|
|
|
3053
3055
|
function ze(e) {
|
|
3054
3056
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3055
3057
|
}
|
|
3056
|
-
function
|
|
3058
|
+
function Sn(e) {
|
|
3057
3059
|
return ze(e) || e === 47;
|
|
3058
3060
|
}
|
|
3059
|
-
function
|
|
3061
|
+
function Tn(e) {
|
|
3060
3062
|
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;
|
|
3061
3063
|
}
|
|
3062
|
-
function
|
|
3064
|
+
function Xt(e) {
|
|
3063
3065
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3064
3066
|
}
|
|
3065
|
-
function
|
|
3067
|
+
function Hn(e) {
|
|
3066
3068
|
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;
|
|
3067
3069
|
}
|
|
3068
3070
|
function We(e) {
|
|
3069
3071
|
e.forEach(function(t) {
|
|
3070
|
-
if (delete t.location,
|
|
3072
|
+
if (delete t.location, Lt(t) || Rt(t))
|
|
3071
3073
|
for (var r in t.options)
|
|
3072
3074
|
delete t.options[r].location, We(t.options[r].value);
|
|
3073
|
-
else
|
|
3075
|
+
else Nt(t) && Ut(t.style) || (Ot(t) || Mt(t)) && ke(t.style) ? delete t.style.location : $t(t) && We(t.children);
|
|
3074
3076
|
});
|
|
3075
3077
|
}
|
|
3076
|
-
function
|
|
3078
|
+
function An(e, t) {
|
|
3077
3079
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3078
|
-
var r = new
|
|
3080
|
+
var r = new _n(e, t).parse();
|
|
3079
3081
|
if (r.err) {
|
|
3080
3082
|
var n = SyntaxError(m[r.err.kind]);
|
|
3081
3083
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3098,7 +3100,7 @@ var Be = (
|
|
|
3098
3100
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3099
3101
|
}, t;
|
|
3100
3102
|
}(Error)
|
|
3101
|
-
),
|
|
3103
|
+
), pt = (
|
|
3102
3104
|
/** @class */
|
|
3103
3105
|
function(e) {
|
|
3104
3106
|
Ae(t, e);
|
|
@@ -3107,7 +3109,7 @@ var Be = (
|
|
|
3107
3109
|
}
|
|
3108
3110
|
return t;
|
|
3109
3111
|
}(Be)
|
|
3110
|
-
),
|
|
3112
|
+
), Bn = (
|
|
3111
3113
|
/** @class */
|
|
3112
3114
|
function(e) {
|
|
3113
3115
|
Ae(t, e);
|
|
@@ -3116,7 +3118,7 @@ var Be = (
|
|
|
3116
3118
|
}
|
|
3117
3119
|
return t;
|
|
3118
3120
|
}(Be)
|
|
3119
|
-
),
|
|
3121
|
+
), wn = (
|
|
3120
3122
|
/** @class */
|
|
3121
3123
|
function(e) {
|
|
3122
3124
|
Ae(t, e);
|
|
@@ -3129,17 +3131,17 @@ var Be = (
|
|
|
3129
3131
|
(function(e) {
|
|
3130
3132
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3131
3133
|
})(C || (C = {}));
|
|
3132
|
-
function
|
|
3134
|
+
function Pn(e) {
|
|
3133
3135
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3134
3136
|
var n = t[t.length - 1];
|
|
3135
3137
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3136
3138
|
}, []);
|
|
3137
3139
|
}
|
|
3138
|
-
function
|
|
3140
|
+
function Cn(e) {
|
|
3139
3141
|
return typeof e == "function";
|
|
3140
3142
|
}
|
|
3141
3143
|
function xe(e, t, r, n, i, o, s) {
|
|
3142
|
-
if (e.length === 1 &&
|
|
3144
|
+
if (e.length === 1 && ut(e[0]))
|
|
3143
3145
|
return [
|
|
3144
3146
|
{
|
|
3145
3147
|
type: C.literal,
|
|
@@ -3148,14 +3150,14 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3148
3150
|
];
|
|
3149
3151
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3150
3152
|
var h = u[l];
|
|
3151
|
-
if (
|
|
3153
|
+
if (ut(h)) {
|
|
3152
3154
|
a.push({
|
|
3153
3155
|
type: C.literal,
|
|
3154
3156
|
value: h.value
|
|
3155
3157
|
});
|
|
3156
3158
|
continue;
|
|
3157
3159
|
}
|
|
3158
|
-
if (
|
|
3160
|
+
if (qr(h)) {
|
|
3159
3161
|
typeof o == "number" && a.push({
|
|
3160
3162
|
type: C.literal,
|
|
3161
3163
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3164,16 +3166,16 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3164
3166
|
}
|
|
3165
3167
|
var f = h.value;
|
|
3166
3168
|
if (!(i && f in i))
|
|
3167
|
-
throw new
|
|
3169
|
+
throw new wn(f, s);
|
|
3168
3170
|
var d = i[f];
|
|
3169
|
-
if (
|
|
3171
|
+
if (Qr(h)) {
|
|
3170
3172
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3171
3173
|
type: typeof d == "string" ? C.literal : C.object,
|
|
3172
3174
|
value: d
|
|
3173
3175
|
});
|
|
3174
3176
|
continue;
|
|
3175
3177
|
}
|
|
3176
|
-
if (
|
|
3178
|
+
if (Ot(h)) {
|
|
3177
3179
|
var b = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3178
3180
|
a.push({
|
|
3179
3181
|
type: C.literal,
|
|
@@ -3181,7 +3183,7 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3181
3183
|
});
|
|
3182
3184
|
continue;
|
|
3183
3185
|
}
|
|
3184
|
-
if (
|
|
3186
|
+
if (Mt(h)) {
|
|
3185
3187
|
var b = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3186
3188
|
a.push({
|
|
3187
3189
|
type: C.literal,
|
|
@@ -3189,18 +3191,18 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3189
3191
|
});
|
|
3190
3192
|
continue;
|
|
3191
3193
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var b = typeof h.style == "string" ? n.number[h.style] :
|
|
3194
|
+
if (Nt(h)) {
|
|
3195
|
+
var b = typeof h.style == "string" ? n.number[h.style] : Ut(h.style) ? h.style.parsedOptions : void 0;
|
|
3194
3196
|
b && b.scale && (d = d * (b.scale || 1)), a.push({
|
|
3195
3197
|
type: C.literal,
|
|
3196
3198
|
value: r.getNumberFormat(t, b).format(d)
|
|
3197
3199
|
});
|
|
3198
3200
|
continue;
|
|
3199
3201
|
}
|
|
3200
|
-
if (
|
|
3202
|
+
if ($t(h)) {
|
|
3201
3203
|
var v = h.children, _ = h.value, S = i[_];
|
|
3202
|
-
if (!
|
|
3203
|
-
throw new
|
|
3204
|
+
if (!Cn(S))
|
|
3205
|
+
throw new Bn(_, "function", s);
|
|
3204
3206
|
var R = xe(v, t, r, n, i, o), N = S(R.map(function(I) {
|
|
3205
3207
|
return I.value;
|
|
3206
3208
|
}));
|
|
@@ -3211,14 +3213,14 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3211
3213
|
};
|
|
3212
3214
|
}));
|
|
3213
3215
|
}
|
|
3214
|
-
if (
|
|
3216
|
+
if (Lt(h)) {
|
|
3215
3217
|
var T = h.options[d] || h.options.other;
|
|
3216
3218
|
if (!T)
|
|
3217
|
-
throw new
|
|
3219
|
+
throw new pt(h.value, d, Object.keys(h.options), s);
|
|
3218
3220
|
a.push.apply(a, xe(T.value, t, r, n, i));
|
|
3219
3221
|
continue;
|
|
3220
3222
|
}
|
|
3221
|
-
if (
|
|
3223
|
+
if (Rt(h)) {
|
|
3222
3224
|
var T = h.options["=".concat(d)];
|
|
3223
3225
|
if (!T) {
|
|
3224
3226
|
if (!Intl.PluralRules)
|
|
@@ -3229,21 +3231,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3229
3231
|
T = h.options[H] || h.options.other;
|
|
3230
3232
|
}
|
|
3231
3233
|
if (!T)
|
|
3232
|
-
throw new
|
|
3234
|
+
throw new pt(h.value, d, Object.keys(h.options), s);
|
|
3233
3235
|
a.push.apply(a, xe(T.value, t, r, n, i, d - (h.offset || 0)));
|
|
3234
3236
|
continue;
|
|
3235
3237
|
}
|
|
3236
3238
|
}
|
|
3237
|
-
return
|
|
3239
|
+
return Pn(a);
|
|
3238
3240
|
}
|
|
3239
|
-
function
|
|
3241
|
+
function In(e, t) {
|
|
3240
3242
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3241
3243
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3242
3244
|
}, {})) : e;
|
|
3243
3245
|
}
|
|
3244
|
-
function
|
|
3246
|
+
function Nn(e, t) {
|
|
3245
3247
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3246
|
-
return r[n] =
|
|
3248
|
+
return r[n] = In(e[n], t[n]), r;
|
|
3247
3249
|
}, g({}, e)) : e;
|
|
3248
3250
|
}
|
|
3249
3251
|
function Re(e) {
|
|
@@ -3260,7 +3262,7 @@ function Re(e) {
|
|
|
3260
3262
|
}
|
|
3261
3263
|
};
|
|
3262
3264
|
}
|
|
3263
|
-
function
|
|
3265
|
+
function On(e) {
|
|
3264
3266
|
return e === void 0 && (e = {
|
|
3265
3267
|
number: {},
|
|
3266
3268
|
dateTime: {},
|
|
@@ -3292,7 +3294,7 @@ function Nn(e) {
|
|
|
3292
3294
|
})
|
|
3293
3295
|
};
|
|
3294
3296
|
}
|
|
3295
|
-
var
|
|
3297
|
+
var Mn = (
|
|
3296
3298
|
/** @class */
|
|
3297
3299
|
function() {
|
|
3298
3300
|
function e(t, r, n, i) {
|
|
@@ -3324,13 +3326,13 @@ var On = (
|
|
|
3324
3326
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3325
3327
|
var s = i || {};
|
|
3326
3328
|
s.formatters;
|
|
3327
|
-
var a =
|
|
3329
|
+
var a = jr(s, ["formatters"]);
|
|
3328
3330
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3329
3331
|
} else
|
|
3330
3332
|
this.ast = t;
|
|
3331
3333
|
if (!Array.isArray(this.ast))
|
|
3332
3334
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3333
|
-
this.formats =
|
|
3335
|
+
this.formats = Nn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
|
|
3334
3336
|
}
|
|
3335
3337
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3336
3338
|
get: function() {
|
|
@@ -3343,7 +3345,7 @@ var On = (
|
|
|
3343
3345
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3344
3346
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3345
3347
|
}
|
|
3346
|
-
}, e.__parse =
|
|
3348
|
+
}, e.__parse = An, e.formats = {
|
|
3347
3349
|
number: {
|
|
3348
3350
|
integer: {
|
|
3349
3351
|
maximumFractionDigits: 0
|
|
@@ -3404,7 +3406,7 @@ var On = (
|
|
|
3404
3406
|
}, e;
|
|
3405
3407
|
}()
|
|
3406
3408
|
);
|
|
3407
|
-
function
|
|
3409
|
+
function Ln(e, t) {
|
|
3408
3410
|
if (t == null)
|
|
3409
3411
|
return;
|
|
3410
3412
|
if (t in e)
|
|
@@ -3425,60 +3427,60 @@ function Mn(e, t) {
|
|
|
3425
3427
|
n = void 0;
|
|
3426
3428
|
return n;
|
|
3427
3429
|
}
|
|
3428
|
-
const k = {},
|
|
3430
|
+
const k = {}, Rn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), zt = (e, t) => {
|
|
3429
3431
|
if (t == null)
|
|
3430
3432
|
return;
|
|
3431
3433
|
if (t in k && e in k[t])
|
|
3432
3434
|
return k[t][e];
|
|
3433
3435
|
const r = we(t);
|
|
3434
3436
|
for (let n = 0; n < r.length; n++) {
|
|
3435
|
-
const i = r[n], o =
|
|
3437
|
+
const i = r[n], o = Un(i, e);
|
|
3436
3438
|
if (o)
|
|
3437
|
-
return
|
|
3439
|
+
return Rn(e, t, o);
|
|
3438
3440
|
}
|
|
3439
3441
|
};
|
|
3440
|
-
let
|
|
3442
|
+
let Ke;
|
|
3441
3443
|
const ue = He({});
|
|
3442
|
-
function
|
|
3443
|
-
return
|
|
3444
|
+
function $n(e) {
|
|
3445
|
+
return Ke[e] || null;
|
|
3444
3446
|
}
|
|
3445
|
-
function
|
|
3446
|
-
return e in
|
|
3447
|
+
function Wt(e) {
|
|
3448
|
+
return e in Ke;
|
|
3447
3449
|
}
|
|
3448
|
-
function
|
|
3449
|
-
if (!
|
|
3450
|
+
function Un(e, t) {
|
|
3451
|
+
if (!Wt(e))
|
|
3450
3452
|
return null;
|
|
3451
|
-
const r =
|
|
3452
|
-
return
|
|
3453
|
+
const r = $n(e);
|
|
3454
|
+
return Ln(r, t);
|
|
3453
3455
|
}
|
|
3454
|
-
function
|
|
3456
|
+
function Dn(e) {
|
|
3455
3457
|
if (e == null)
|
|
3456
3458
|
return;
|
|
3457
3459
|
const t = we(e);
|
|
3458
3460
|
for (let r = 0; r < t.length; r++) {
|
|
3459
3461
|
const n = t[r];
|
|
3460
|
-
if (
|
|
3462
|
+
if (Wt(n))
|
|
3461
3463
|
return n;
|
|
3462
3464
|
}
|
|
3463
3465
|
}
|
|
3464
|
-
function
|
|
3465
|
-
delete k[e], ue.update((r) => (r[e] =
|
|
3466
|
+
function Zt(e, ...t) {
|
|
3467
|
+
delete k[e], ue.update((r) => (r[e] = kr.all([r[e] || {}, ...t]), r));
|
|
3466
3468
|
}
|
|
3467
3469
|
ae(
|
|
3468
3470
|
[ue],
|
|
3469
3471
|
([e]) => Object.keys(e)
|
|
3470
3472
|
);
|
|
3471
|
-
ue.subscribe((e) =>
|
|
3473
|
+
ue.subscribe((e) => Ke = e);
|
|
3472
3474
|
const _e = {};
|
|
3473
|
-
function
|
|
3475
|
+
function Fn(e, t) {
|
|
3474
3476
|
_e[e].delete(t), _e[e].size === 0 && delete _e[e];
|
|
3475
3477
|
}
|
|
3476
|
-
function
|
|
3478
|
+
function Jt(e) {
|
|
3477
3479
|
return _e[e];
|
|
3478
3480
|
}
|
|
3479
|
-
function
|
|
3481
|
+
function Gn(e) {
|
|
3480
3482
|
return we(e).map((t) => {
|
|
3481
|
-
const r =
|
|
3483
|
+
const r = Jt(t);
|
|
3482
3484
|
return [t, r ? [...r] : []];
|
|
3483
3485
|
}).filter(([, t]) => t.length > 0);
|
|
3484
3486
|
}
|
|
@@ -3486,31 +3488,31 @@ function Ze(e) {
|
|
|
3486
3488
|
return e == null ? !1 : we(e).some(
|
|
3487
3489
|
(t) => {
|
|
3488
3490
|
var r;
|
|
3489
|
-
return (r =
|
|
3491
|
+
return (r = Jt(t)) == null ? void 0 : r.size;
|
|
3490
3492
|
}
|
|
3491
3493
|
);
|
|
3492
3494
|
}
|
|
3493
|
-
function
|
|
3495
|
+
function kn(e, t) {
|
|
3494
3496
|
return Promise.all(
|
|
3495
|
-
t.map((n) => (
|
|
3496
|
-
).then((n) =>
|
|
3497
|
+
t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
|
|
3498
|
+
).then((n) => Zt(e, ...n));
|
|
3497
3499
|
}
|
|
3498
3500
|
const he = {};
|
|
3499
|
-
function
|
|
3501
|
+
function Qt(e) {
|
|
3500
3502
|
if (!Ze(e))
|
|
3501
3503
|
return e in he ? he[e] : Promise.resolve();
|
|
3502
|
-
const t =
|
|
3504
|
+
const t = Gn(e);
|
|
3503
3505
|
return he[e] = Promise.all(
|
|
3504
3506
|
t.map(
|
|
3505
|
-
([r, n]) =>
|
|
3507
|
+
([r, n]) => kn(r, n)
|
|
3506
3508
|
)
|
|
3507
3509
|
).then(() => {
|
|
3508
3510
|
if (Ze(e))
|
|
3509
|
-
return
|
|
3511
|
+
return Qt(e);
|
|
3510
3512
|
delete he[e];
|
|
3511
3513
|
}), he[e];
|
|
3512
3514
|
}
|
|
3513
|
-
const
|
|
3515
|
+
const jn = {
|
|
3514
3516
|
number: {
|
|
3515
3517
|
scientific: { notation: "scientific" },
|
|
3516
3518
|
engineering: { notation: "engineering" },
|
|
@@ -3539,34 +3541,34 @@ const kn = {
|
|
|
3539
3541
|
timeZoneName: "short"
|
|
3540
3542
|
}
|
|
3541
3543
|
}
|
|
3542
|
-
},
|
|
3544
|
+
}, Vn = {
|
|
3543
3545
|
fallbackLocale: null,
|
|
3544
3546
|
loadingDelay: 200,
|
|
3545
|
-
formats:
|
|
3547
|
+
formats: jn,
|
|
3546
3548
|
warnOnMissingMessages: !0,
|
|
3547
3549
|
handleMissingMessage: void 0,
|
|
3548
3550
|
ignoreTag: !0
|
|
3549
|
-
},
|
|
3551
|
+
}, Xn = Vn;
|
|
3550
3552
|
function oe() {
|
|
3551
|
-
return
|
|
3553
|
+
return Xn;
|
|
3552
3554
|
}
|
|
3553
3555
|
const $e = He(!1);
|
|
3554
|
-
var
|
|
3556
|
+
var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
|
|
3555
3557
|
for (var r in t || (t = {}))
|
|
3556
|
-
|
|
3557
|
-
if (
|
|
3558
|
-
for (var r of
|
|
3559
|
-
|
|
3558
|
+
Jn.call(t, r) && gt(e, r, t[r]);
|
|
3559
|
+
if (bt)
|
|
3560
|
+
for (var r of bt(t))
|
|
3561
|
+
Qn.call(t, r) && gt(e, r, t[r]);
|
|
3560
3562
|
return e;
|
|
3561
|
-
},
|
|
3563
|
+
}, Yn = (e, t) => Wn(e, Zn(t));
|
|
3562
3564
|
let Je;
|
|
3563
3565
|
const Se = He(null);
|
|
3564
|
-
function
|
|
3566
|
+
function vt(e) {
|
|
3565
3567
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3566
3568
|
}
|
|
3567
3569
|
function we(e, t = oe().fallbackLocale) {
|
|
3568
|
-
const r =
|
|
3569
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3570
|
+
const r = vt(e);
|
|
3571
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
|
|
3570
3572
|
}
|
|
3571
3573
|
function J() {
|
|
3572
3574
|
return Je != null ? Je : void 0;
|
|
@@ -3574,22 +3576,22 @@ function J() {
|
|
|
3574
3576
|
Se.subscribe((e) => {
|
|
3575
3577
|
Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3576
3578
|
});
|
|
3577
|
-
const
|
|
3578
|
-
if (e &&
|
|
3579
|
+
const Kn = (e) => {
|
|
3580
|
+
if (e && Dn(e) && Ze(e)) {
|
|
3579
3581
|
const { loadingDelay: t } = oe();
|
|
3580
3582
|
let r;
|
|
3581
3583
|
return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
|
|
3582
3584
|
() => $e.set(!0),
|
|
3583
3585
|
t
|
|
3584
|
-
) : $e.set(!0),
|
|
3586
|
+
) : $e.set(!0), Qt(e).then(() => {
|
|
3585
3587
|
Se.set(e);
|
|
3586
3588
|
}).finally(() => {
|
|
3587
3589
|
clearTimeout(r), $e.set(!1);
|
|
3588
3590
|
});
|
|
3589
3591
|
}
|
|
3590
3592
|
return Se.set(e);
|
|
3591
|
-
}, W = qn(
|
|
3592
|
-
set:
|
|
3593
|
+
}, W = Yn(qn({}, Se), {
|
|
3594
|
+
set: Kn
|
|
3593
3595
|
}), Pe = (e) => {
|
|
3594
3596
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3595
3597
|
return (n) => {
|
|
@@ -3597,20 +3599,20 @@ const Yn = (e) => {
|
|
|
3597
3599
|
return i in t ? t[i] : t[i] = e(n);
|
|
3598
3600
|
};
|
|
3599
3601
|
};
|
|
3600
|
-
var
|
|
3602
|
+
var ei = Object.defineProperty, Te = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
3601
3603
|
for (var r in t || (t = {}))
|
|
3602
|
-
|
|
3604
|
+
qt.call(t, r) && yt(e, r, t[r]);
|
|
3603
3605
|
if (Te)
|
|
3604
3606
|
for (var r of Te(t))
|
|
3605
|
-
|
|
3607
|
+
Yt.call(t, r) && yt(e, r, t[r]);
|
|
3606
3608
|
return e;
|
|
3607
3609
|
}, le = (e, t) => {
|
|
3608
3610
|
var r = {};
|
|
3609
3611
|
for (var n in e)
|
|
3610
|
-
|
|
3612
|
+
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3611
3613
|
if (e != null && Te)
|
|
3612
3614
|
for (var n of Te(e))
|
|
3613
|
-
t.indexOf(n) < 0 &&
|
|
3615
|
+
t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
|
|
3614
3616
|
return r;
|
|
3615
3617
|
};
|
|
3616
3618
|
const me = (e, t) => {
|
|
@@ -3618,21 +3620,21 @@ const me = (e, t) => {
|
|
|
3618
3620
|
if (e in r && t in r[e])
|
|
3619
3621
|
return r[e][t];
|
|
3620
3622
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3621
|
-
},
|
|
3623
|
+
}, ti = Pe(
|
|
3622
3624
|
(e) => {
|
|
3623
3625
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
3624
3626
|
if (r == null)
|
|
3625
3627
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3626
3628
|
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
3627
3629
|
}
|
|
3628
|
-
),
|
|
3630
|
+
), ri = Pe(
|
|
3629
3631
|
(e) => {
|
|
3630
3632
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
3631
3633
|
if (r == null)
|
|
3632
3634
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3633
3635
|
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3634
3636
|
}
|
|
3635
|
-
),
|
|
3637
|
+
), ni = Pe(
|
|
3636
3638
|
(e) => {
|
|
3637
3639
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
3638
3640
|
if (r == null)
|
|
@@ -3641,33 +3643,33 @@ const me = (e, t) => {
|
|
|
3641
3643
|
);
|
|
3642
3644
|
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3643
3645
|
}
|
|
3644
|
-
),
|
|
3646
|
+
), ii = (e = {}) => {
|
|
3645
3647
|
var t = e, {
|
|
3646
3648
|
locale: r = J()
|
|
3647
3649
|
} = t, n = le(t, [
|
|
3648
3650
|
"locale"
|
|
3649
3651
|
]);
|
|
3650
|
-
return
|
|
3651
|
-
},
|
|
3652
|
+
return ti(et({ locale: r }, n));
|
|
3653
|
+
}, oi = (e = {}) => {
|
|
3652
3654
|
var t = e, {
|
|
3653
3655
|
locale: r = J()
|
|
3654
3656
|
} = t, n = le(t, [
|
|
3655
3657
|
"locale"
|
|
3656
3658
|
]);
|
|
3657
|
-
return
|
|
3658
|
-
},
|
|
3659
|
+
return ri(et({ locale: r }, n));
|
|
3660
|
+
}, si = (e = {}) => {
|
|
3659
3661
|
var t = e, {
|
|
3660
3662
|
locale: r = J()
|
|
3661
3663
|
} = t, n = le(t, [
|
|
3662
3664
|
"locale"
|
|
3663
3665
|
]);
|
|
3664
|
-
return
|
|
3665
|
-
},
|
|
3666
|
+
return ni(et({ locale: r }, n));
|
|
3667
|
+
}, ai = Pe(
|
|
3666
3668
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3667
|
-
(e, t = J()) => new
|
|
3669
|
+
(e, t = J()) => new Mn(e, t, oe().formats, {
|
|
3668
3670
|
ignoreTag: oe().ignoreTag
|
|
3669
3671
|
})
|
|
3670
|
-
),
|
|
3672
|
+
), ui = (e, t = {}) => {
|
|
3671
3673
|
var r, n, i, o;
|
|
3672
3674
|
let s = t;
|
|
3673
3675
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3680,7 +3682,7 @@ const me = (e, t) => {
|
|
|
3680
3682
|
throw new Error(
|
|
3681
3683
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3682
3684
|
);
|
|
3683
|
-
let h =
|
|
3685
|
+
let h = zt(e, l);
|
|
3684
3686
|
if (!h)
|
|
3685
3687
|
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3686
3688
|
else if (typeof h != "string")
|
|
@@ -3691,7 +3693,7 @@ const me = (e, t) => {
|
|
|
3691
3693
|
return h;
|
|
3692
3694
|
let f = h;
|
|
3693
3695
|
try {
|
|
3694
|
-
f =
|
|
3696
|
+
f = ai(h, l).format(a);
|
|
3695
3697
|
} catch (d) {
|
|
3696
3698
|
d instanceof Error && console.warn(
|
|
3697
3699
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3699,20 +3701,20 @@ const me = (e, t) => {
|
|
|
3699
3701
|
);
|
|
3700
3702
|
}
|
|
3701
3703
|
return f;
|
|
3702
|
-
},
|
|
3703
|
-
ae([W], () => ui);
|
|
3704
|
+
}, li = (e, t) => si(t).format(e), hi = (e, t) => oi(t).format(e), ci = (e, t) => ii(t).format(e), fi = (e, t = J()) => zt(e, t), di = ae([W, ue], () => ui);
|
|
3704
3705
|
ae([W], () => li);
|
|
3705
3706
|
ae([W], () => hi);
|
|
3706
|
-
ae([W
|
|
3707
|
-
|
|
3707
|
+
ae([W], () => ci);
|
|
3708
|
+
ae([W, ue], () => fi);
|
|
3709
|
+
function mi({ withLocale: e, translations: t }) {
|
|
3708
3710
|
W.subscribe((r) => {
|
|
3709
3711
|
r == null && (ue.set(t), W.set(e));
|
|
3710
3712
|
});
|
|
3711
3713
|
}
|
|
3712
|
-
function
|
|
3713
|
-
|
|
3714
|
+
function Et(e, t) {
|
|
3715
|
+
Zt(e, t);
|
|
3714
3716
|
}
|
|
3715
|
-
const
|
|
3717
|
+
const xt = {
|
|
3716
3718
|
en: {
|
|
3717
3719
|
title: "Please enter the verification code you received on your number",
|
|
3718
3720
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3819,10 +3821,10 @@ const yt = {
|
|
|
3819
3821
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3820
3822
|
}
|
|
3821
3823
|
};
|
|
3822
|
-
function mi(e) {
|
|
3823
|
-
ir(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
3824
|
-
}
|
|
3825
3824
|
function pi(e) {
|
|
3825
|
+
sr(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
3826
|
+
}
|
|
3827
|
+
function bi(e) {
|
|
3826
3828
|
let t = (
|
|
3827
3829
|
/*$_*/
|
|
3828
3830
|
e[5]("errorTitle") + ""
|
|
@@ -3844,7 +3846,7 @@ function pi(e) {
|
|
|
3844
3846
|
}
|
|
3845
3847
|
};
|
|
3846
3848
|
}
|
|
3847
|
-
function
|
|
3849
|
+
function gi(e) {
|
|
3848
3850
|
let t = (
|
|
3849
3851
|
/*$_*/
|
|
3850
3852
|
e[5]("title") + ""
|
|
@@ -3866,7 +3868,7 @@ function bi(e) {
|
|
|
3866
3868
|
}
|
|
3867
3869
|
};
|
|
3868
3870
|
}
|
|
3869
|
-
function
|
|
3871
|
+
function _t(e) {
|
|
3870
3872
|
let t, r = (
|
|
3871
3873
|
/*$_*/
|
|
3872
3874
|
e[5]("smsCodeError") + ""
|
|
@@ -3888,7 +3890,7 @@ function Et(e) {
|
|
|
3888
3890
|
}
|
|
3889
3891
|
};
|
|
3890
3892
|
}
|
|
3891
|
-
function
|
|
3893
|
+
function St(e) {
|
|
3892
3894
|
let t, r = (
|
|
3893
3895
|
/*$_*/
|
|
3894
3896
|
e[5]("resendMessage") + ""
|
|
@@ -3910,7 +3912,7 @@ function xt(e) {
|
|
|
3910
3912
|
}
|
|
3911
3913
|
};
|
|
3912
3914
|
}
|
|
3913
|
-
function
|
|
3915
|
+
function Tt(e) {
|
|
3914
3916
|
let t, r, n = (
|
|
3915
3917
|
/*secondsLeft*/
|
|
3916
3918
|
e[4] < 10 ? "0" : ""
|
|
@@ -3940,7 +3942,7 @@ function _t(e) {
|
|
|
3940
3942
|
}
|
|
3941
3943
|
};
|
|
3942
3944
|
}
|
|
3943
|
-
function
|
|
3945
|
+
function vi(e) {
|
|
3944
3946
|
let t, r, n, i, o, s = (
|
|
3945
3947
|
/*$_*/
|
|
3946
3948
|
e[5]("code") + ""
|
|
@@ -3954,16 +3956,16 @@ function gi(e) {
|
|
|
3954
3956
|
function be(c, y) {
|
|
3955
3957
|
return (
|
|
3956
3958
|
/*isSmsValid*/
|
|
3957
|
-
c[2] ?
|
|
3959
|
+
c[2] ? gi : bi
|
|
3958
3960
|
);
|
|
3959
3961
|
}
|
|
3960
3962
|
let X = be(e), O = X(e), B = !/*isSmsValid*/
|
|
3961
|
-
e[2] &&
|
|
3963
|
+
e[2] && _t(e), w = (
|
|
3962
3964
|
/*timer*/
|
|
3963
|
-
e[3] &&
|
|
3965
|
+
e[3] && St(e)
|
|
3964
3966
|
), P = (
|
|
3965
3967
|
/*timer*/
|
|
3966
|
-
e[3] &&
|
|
3968
|
+
e[3] && Tt(e)
|
|
3967
3969
|
);
|
|
3968
3970
|
return {
|
|
3969
3971
|
c() {
|
|
@@ -3972,7 +3974,7 @@ function gi(e) {
|
|
|
3972
3974
|
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
3973
3975
|
},
|
|
3974
3976
|
m(c, y) {
|
|
3975
|
-
Z(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, a), E(o, l), E(o, u), E(i, h), E(i, f),
|
|
3977
|
+
Z(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, a), E(o, l), E(o, u), E(i, h), E(i, f), ot(
|
|
3976
3978
|
f,
|
|
3977
3979
|
/*smsCode*/
|
|
3978
3980
|
e[1]
|
|
@@ -4008,20 +4010,20 @@ function gi(e) {
|
|
|
4008
4010
|
32 && s !== (s = /*$_*/
|
|
4009
4011
|
c[5]("code") + "") && G(a, s), y & /*smsCode*/
|
|
4010
4012
|
2 && f.value !== /*smsCode*/
|
|
4011
|
-
c[1] &&
|
|
4013
|
+
c[1] && ot(
|
|
4012
4014
|
f,
|
|
4013
4015
|
/*smsCode*/
|
|
4014
4016
|
c[1]
|
|
4015
4017
|
), /*isSmsValid*/
|
|
4016
|
-
c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B =
|
|
4018
|
+
c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = _t(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
|
|
4017
4019
|
4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4018
4020
|
c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
|
|
4019
|
-
c[3] ? w ? w.p(c, y) : (w =
|
|
4021
|
+
c[3] ? w ? w.p(c, y) : (w = St(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
|
|
4020
4022
|
32 && R !== (R = /*$_*/
|
|
4021
4023
|
c[5]("activate") + "") && G(N, R), y & /*$_*/
|
|
4022
4024
|
32 && I !== (I = /*$_*/
|
|
4023
4025
|
c[5]("resend") + "") && G(D, I), /*timer*/
|
|
4024
|
-
c[3] ? P ? P.p(c, y) : (P =
|
|
4026
|
+
c[3] ? P ? P.p(c, y) : (P = Tt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
|
|
4025
4027
|
8 && (H.disabled = /*timer*/
|
|
4026
4028
|
c[3]);
|
|
4027
4029
|
},
|
|
@@ -4032,23 +4034,23 @@ function gi(e) {
|
|
|
4032
4034
|
}
|
|
4033
4035
|
};
|
|
4034
4036
|
}
|
|
4035
|
-
function
|
|
4037
|
+
function yi(e, t, r) {
|
|
4036
4038
|
let n;
|
|
4037
|
-
|
|
4039
|
+
or(e, di, (c) => r(5, n = c));
|
|
4038
4040
|
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
|
|
4039
4041
|
const H = { numeric: /^[0-9]{0,6}$/ };
|
|
4040
|
-
|
|
4042
|
+
mi({ withLocale: "en", translations: {} });
|
|
4041
4043
|
const I = () => {
|
|
4042
4044
|
fetch(f).then((y) => y.json()).then((y) => {
|
|
4043
4045
|
Object.keys(y).forEach((q) => {
|
|
4044
|
-
|
|
4046
|
+
Et(q, y[q]);
|
|
4045
4047
|
});
|
|
4046
4048
|
}).catch((y) => {
|
|
4047
4049
|
console.log(y);
|
|
4048
4050
|
});
|
|
4049
4051
|
};
|
|
4050
|
-
Object.keys(
|
|
4051
|
-
|
|
4052
|
+
Object.keys(xt).forEach((c) => {
|
|
4053
|
+
Et(c, xt[c]);
|
|
4052
4054
|
});
|
|
4053
4055
|
const D = () => ge(this, null, function* () {
|
|
4054
4056
|
try {
|
|
@@ -4124,7 +4126,7 @@ function vi(e, t, r) {
|
|
|
4124
4126
|
}, O = (c) => {
|
|
4125
4127
|
!H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
|
|
4126
4128
|
};
|
|
4127
|
-
|
|
4129
|
+
fr(() => {
|
|
4128
4130
|
if (!s || !l) {
|
|
4129
4131
|
let c = JSON.parse(localStorage.getItem("playerData"));
|
|
4130
4132
|
r(10, s = c.playerid), r(11, l = c.number);
|
|
@@ -4171,14 +4173,14 @@ function vi(e, t, r) {
|
|
|
4171
4173
|
P
|
|
4172
4174
|
];
|
|
4173
4175
|
}
|
|
4174
|
-
class
|
|
4176
|
+
class Ei extends Tr {
|
|
4175
4177
|
constructor(t) {
|
|
4176
|
-
super(),
|
|
4178
|
+
super(), _r(
|
|
4177
4179
|
this,
|
|
4178
4180
|
t,
|
|
4181
|
+
yi,
|
|
4179
4182
|
vi,
|
|
4180
|
-
|
|
4181
|
-
Tt,
|
|
4183
|
+
At,
|
|
4182
4184
|
{
|
|
4183
4185
|
endpoint: 12,
|
|
4184
4186
|
tokenid: 9,
|
|
@@ -4189,7 +4191,7 @@ class yi extends _r {
|
|
|
4189
4191
|
clientstylingurl: 15,
|
|
4190
4192
|
translationurl: 16
|
|
4191
4193
|
},
|
|
4192
|
-
|
|
4194
|
+
pi
|
|
4193
4195
|
);
|
|
4194
4196
|
}
|
|
4195
4197
|
get endpoint() {
|
|
@@ -4241,7 +4243,7 @@ class yi extends _r {
|
|
|
4241
4243
|
this.$$set({ translationurl: t }), F();
|
|
4242
4244
|
}
|
|
4243
4245
|
}
|
|
4244
|
-
|
|
4246
|
+
Sr(Ei, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4245
4247
|
export {
|
|
4246
|
-
|
|
4248
|
+
Ei as default
|
|
4247
4249
|
};
|