@everymatrix/general-player-sms-verification-form 1.57.0 → 1.59.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-CEgHWPSi.cjs +16 -0
- package/components/{GeneralPlayerSmsVerificationForm-Dz11YZCi.js → GeneralPlayerSmsVerificationForm-CP5cIzBP.js} +362 -364
- package/components/{GeneralPlayerSmsVerificationForm-BtKwdIq5.js → GeneralPlayerSmsVerificationForm-CW7gzZR4.js} +355 -357
- 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-S0IP27V6.cjs +0 -16
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Pe = (e, t, r) => t in e ?
|
|
1
|
+
var Qt = Object.defineProperty, qt = Object.defineProperties;
|
|
2
|
+
var Yt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Pe = (e, t, r) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Kt.call(t, r) && Pe(e, r, t[r]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var r of Ye(t))
|
|
10
|
+
er.call(t, r) && Pe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, et = (e, t) => qt(e, Yt(t));
|
|
13
13
|
var $ = (e, t, r) => (Pe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var be = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
@@ -29,25 +29,25 @@ var be = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function D() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function _t(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function tt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ie(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(_t);
|
|
40
40
|
}
|
|
41
41
|
function Je(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function St(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function tr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Tt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function At(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 rr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function E(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function nr(e, t, r) {
|
|
66
|
+
const n = ir(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = O("style");
|
|
69
|
+
i.id = t, i.textContent = r, or(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ir(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,7 +79,7 @@ function sr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function or(e, t) {
|
|
83
83
|
return E(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
@@ -92,14 +92,14 @@ function Z(e, t, r) {
|
|
|
92
92
|
function j(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function O(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function M(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
101
|
function z() {
|
|
102
|
-
return
|
|
102
|
+
return M(" ");
|
|
103
103
|
}
|
|
104
104
|
function ge(e, t, r, n) {
|
|
105
105
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -107,17 +107,17 @@ function ge(e, t, r, n) {
|
|
|
107
107
|
function A(e, t, r) {
|
|
108
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function sr(e) {
|
|
111
111
|
return Array.from(e.childNodes);
|
|
112
112
|
}
|
|
113
113
|
function G(e, t) {
|
|
114
114
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
115
|
t);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function rt(e, t) {
|
|
118
118
|
e.value = t == null ? "" : t;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ar(e) {
|
|
121
121
|
const t = {};
|
|
122
122
|
return e.childNodes.forEach(
|
|
123
123
|
/** @param {Element} node */
|
|
@@ -130,20 +130,20 @@ let de;
|
|
|
130
130
|
function fe(e) {
|
|
131
131
|
de = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function ur() {
|
|
134
134
|
if (!de)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
136
|
return de;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function lr(e) {
|
|
139
|
+
ur().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
141
|
const Y = [], $e = [];
|
|
142
142
|
let K = [];
|
|
143
|
-
const
|
|
143
|
+
const nt = [], hr = /* @__PURE__ */ Promise.resolve();
|
|
144
144
|
let Ue = !1;
|
|
145
|
-
function
|
|
146
|
-
Ue || (Ue = !0,
|
|
145
|
+
function cr() {
|
|
146
|
+
Ue || (Ue = !0, hr.then(U));
|
|
147
147
|
}
|
|
148
148
|
function De(e) {
|
|
149
149
|
K.push(e);
|
|
@@ -158,7 +158,7 @@ function U() {
|
|
|
158
158
|
try {
|
|
159
159
|
for (; Q < Y.length; ) {
|
|
160
160
|
const t = Y[Q];
|
|
161
|
-
Q++, fe(t),
|
|
161
|
+
Q++, fe(t), fr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
164
|
throw Y.length = 0, Q = 0, t;
|
|
@@ -171,40 +171,40 @@ function U() {
|
|
|
171
171
|
}
|
|
172
172
|
K.length = 0;
|
|
173
173
|
} while (Y.length);
|
|
174
|
-
for (;
|
|
175
|
-
|
|
174
|
+
for (; nt.length; )
|
|
175
|
+
nt.pop()();
|
|
176
176
|
Ue = !1, Ce.clear(), fe(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function fr(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
180
|
e.update(), ie(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
182
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function dr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
187
|
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
e && e.i && (
|
|
189
|
+
const mr = /* @__PURE__ */ new Set();
|
|
190
|
+
function pr(e, t) {
|
|
191
|
+
e && e.i && (mr.delete(e), e.i(t));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function br(e, t, r) {
|
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
195
|
n && n.m(t, r), De(() => {
|
|
196
|
-
const o = e.$$.on_mount.map(
|
|
196
|
+
const o = e.$$.on_mount.map(_t).filter(Je);
|
|
197
197
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
198
198
|
}), i.forEach(De);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function gr(e, t) {
|
|
201
201
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (
|
|
202
|
+
r.fragment !== null && (dr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.$$.dirty[0] === -1 && (Y.push(e),
|
|
204
|
+
function vr(e, t) {
|
|
205
|
+
e.$$.dirty[0] === -1 && (Y.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
208
208
|
const l = de;
|
|
209
209
|
fe(e);
|
|
210
210
|
const u = e.$$ = {
|
|
@@ -214,7 +214,7 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
214
214
|
props: o,
|
|
215
215
|
update: D,
|
|
216
216
|
not_equal: i,
|
|
217
|
-
bound:
|
|
217
|
+
bound: tt(),
|
|
218
218
|
// lifecycle
|
|
219
219
|
on_mount: [],
|
|
220
220
|
on_destroy: [],
|
|
@@ -223,7 +223,7 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
223
223
|
after_update: [],
|
|
224
224
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
225
225
|
// everything else
|
|
226
|
-
callbacks:
|
|
226
|
+
callbacks: tt(),
|
|
227
227
|
dirty: a,
|
|
228
228
|
skip_bound: !1,
|
|
229
229
|
root: t.target || l.$$.root
|
|
@@ -232,19 +232,19 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
232
232
|
let h = !1;
|
|
233
233
|
if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
|
|
234
234
|
const y = g.length ? g[0] : d;
|
|
235
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h &&
|
|
235
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && vr(e, c)), d;
|
|
236
236
|
}) : [], u.update(), h = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
|
-
const c =
|
|
238
|
+
const c = sr(t.target);
|
|
239
239
|
u.fragment && u.fragment.l(c), c.forEach(j);
|
|
240
240
|
} else
|
|
241
241
|
u.fragment && u.fragment.c();
|
|
242
|
-
t.intro &&
|
|
242
|
+
t.intro && pr(e.$$.fragment), br(e, t.target, t.anchor), U();
|
|
243
243
|
}
|
|
244
244
|
fe(l);
|
|
245
245
|
}
|
|
246
|
-
let
|
|
247
|
-
typeof HTMLElement == "function" && (
|
|
246
|
+
let Ht;
|
|
247
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
248
248
|
constructor(t, r, n) {
|
|
249
249
|
super();
|
|
250
250
|
/** The Svelte component constructor */
|
|
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
288
288
|
let s;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
s =
|
|
291
|
+
s = O("slot"), o !== "default" && A(s, "name", o);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
305
305
|
};
|
|
306
306
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
307
|
return;
|
|
308
|
-
const r = {}, n =
|
|
308
|
+
const r = {}, n = ar(this);
|
|
309
309
|
for (const o of this.$$s)
|
|
310
310
|
o in n && (r[o] = [t(o)]);
|
|
311
311
|
for (const o of this.attributes) {
|
|
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
316
316
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
317
317
|
this.$$c = new this.$$ctor({
|
|
318
318
|
target: this.shadowRoot || this,
|
|
319
|
-
props:
|
|
319
|
+
props: et(Ke({}, this.$$d), {
|
|
320
320
|
$$slots: r,
|
|
321
321
|
$$scope: {
|
|
322
322
|
ctx: []
|
|
@@ -394,8 +394,8 @@ function ye(e, t, r, n) {
|
|
|
394
394
|
return t;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
let s = class extends
|
|
397
|
+
function Er(e, t, r, n, i, o) {
|
|
398
|
+
let s = class extends Ht {
|
|
399
399
|
constructor() {
|
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
|
401
401
|
}
|
|
@@ -425,7 +425,7 @@ function _r(e, t, r, n, i, o) {
|
|
|
425
425
|
}), e.element = /** @type {any} */
|
|
426
426
|
s, s;
|
|
427
427
|
}
|
|
428
|
-
class
|
|
428
|
+
class xr {
|
|
429
429
|
constructor() {
|
|
430
430
|
/**
|
|
431
431
|
* ### PRIVATE API
|
|
@@ -446,7 +446,7 @@ class Sr {
|
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
449
|
-
|
|
449
|
+
gr(this, 1), this.$destroy = D;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,13 +468,13 @@ class Sr {
|
|
|
468
468
|
* @returns {void}
|
|
469
469
|
*/
|
|
470
470
|
$set(t) {
|
|
471
|
-
this.$$set && !
|
|
471
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
474
|
+
const _r = "4";
|
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
|
|
476
476
|
const q = [];
|
|
477
|
-
function
|
|
477
|
+
function Sr(e, t) {
|
|
478
478
|
return {
|
|
479
479
|
subscribe: Te(e, t).subscribe
|
|
480
480
|
};
|
|
@@ -483,7 +483,7 @@ function Te(e, t = D) {
|
|
|
483
483
|
let r;
|
|
484
484
|
const n = /* @__PURE__ */ new Set();
|
|
485
485
|
function i(a) {
|
|
486
|
-
if (
|
|
486
|
+
if (St(e, a) && (e = a, r)) {
|
|
487
487
|
const l = !q.length;
|
|
488
488
|
for (const u of n)
|
|
489
489
|
u[1](), q.push(u, e);
|
|
@@ -510,7 +510,7 @@ function oe(e, t, r) {
|
|
|
510
510
|
if (!i.every(Boolean))
|
|
511
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
512
512
|
const o = t.length < 2;
|
|
513
|
-
return
|
|
513
|
+
return Sr(r, (s, a) => {
|
|
514
514
|
let l = !1;
|
|
515
515
|
const u = [];
|
|
516
516
|
let h = 0, c = D;
|
|
@@ -521,7 +521,7 @@ function oe(e, t, r) {
|
|
|
521
521
|
const y = t(n ? u[0] : u, s, a);
|
|
522
522
|
o ? s(y) : c = Je(y) ? y : D;
|
|
523
523
|
}, g = i.map(
|
|
524
|
-
(y, _) =>
|
|
524
|
+
(y, _) => Tt(
|
|
525
525
|
y,
|
|
526
526
|
(T) => {
|
|
527
527
|
u[_] = T, h &= ~(1 << _), l && d();
|
|
@@ -536,70 +536,70 @@ function oe(e, t, r) {
|
|
|
536
536
|
};
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Tr(e) {
|
|
540
540
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
541
541
|
}
|
|
542
|
-
var
|
|
543
|
-
return
|
|
542
|
+
var Hr = function(t) {
|
|
543
|
+
return Ar(t) && !Br(t);
|
|
544
544
|
};
|
|
545
|
-
function
|
|
545
|
+
function Ar(e) {
|
|
546
546
|
return !!e && typeof e == "object";
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Br(e) {
|
|
549
549
|
var t = Object.prototype.toString.call(e);
|
|
550
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
550
|
+
return t === "[object RegExp]" || t === "[object Date]" || Cr(e);
|
|
551
551
|
}
|
|
552
|
-
var
|
|
553
|
-
function
|
|
554
|
-
return e.$$typeof ===
|
|
552
|
+
var wr = typeof Symbol == "function" && Symbol.for, Pr = wr ? Symbol.for("react.element") : 60103;
|
|
553
|
+
function Cr(e) {
|
|
554
|
+
return e.$$typeof === Pr;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Ir(e) {
|
|
557
557
|
return Array.isArray(e) ? [] : {};
|
|
558
558
|
}
|
|
559
559
|
function me(e, t) {
|
|
560
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ee(
|
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(Ir(e), e, t) : e;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Nr(e, t, r) {
|
|
563
563
|
return e.concat(t).map(function(n) {
|
|
564
564
|
return me(n, r);
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Or(e, t) {
|
|
568
568
|
if (!t.customMerge)
|
|
569
569
|
return ee;
|
|
570
570
|
var r = t.customMerge(e);
|
|
571
571
|
return typeof r == "function" ? r : ee;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Mr(e) {
|
|
574
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
575
575
|
return Object.propertyIsEnumerable.call(e, t);
|
|
576
576
|
}) : [];
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
return Object.keys(e).concat(
|
|
578
|
+
function it(e) {
|
|
579
|
+
return Object.keys(e).concat(Mr(e));
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function At(e, t) {
|
|
582
582
|
try {
|
|
583
583
|
return t in e;
|
|
584
584
|
} catch (r) {
|
|
585
585
|
return !1;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
588
|
+
function Lr(e, t) {
|
|
589
|
+
return At(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Rr(e, t, r) {
|
|
592
592
|
var n = {};
|
|
593
|
-
return r.isMergeableObject(e) &&
|
|
593
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
594
594
|
n[i] = me(e[i], r);
|
|
595
|
-
}),
|
|
596
|
-
|
|
595
|
+
}), it(t).forEach(function(i) {
|
|
596
|
+
Lr(e, i) || (At(e, i) && r.isMergeableObject(t[i]) ? n[i] = Or(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
597
597
|
}), n;
|
|
598
598
|
}
|
|
599
599
|
function ee(e, t, r) {
|
|
600
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Nr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = me;
|
|
601
601
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
602
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
602
|
+
return o ? n ? r.arrayMerge(e, t, r) : Rr(e, t, r) : me(t, r);
|
|
603
603
|
}
|
|
604
604
|
ee.all = function(t, r) {
|
|
605
605
|
if (!Array.isArray(t))
|
|
@@ -608,8 +608,8 @@ ee.all = function(t, r) {
|
|
|
608
608
|
return ee(n, i, r);
|
|
609
609
|
}, {});
|
|
610
610
|
};
|
|
611
|
-
var
|
|
612
|
-
const
|
|
611
|
+
var $r = ee, Ur = $r;
|
|
612
|
+
const Dr = /* @__PURE__ */ Tr(Ur);
|
|
613
613
|
/*! *****************************************************************************
|
|
614
614
|
Copyright (c) Microsoft Corporation.
|
|
615
615
|
|
|
@@ -651,7 +651,7 @@ var v = function() {
|
|
|
651
651
|
return t;
|
|
652
652
|
}, v.apply(this, arguments);
|
|
653
653
|
};
|
|
654
|
-
function
|
|
654
|
+
function Fr(e, t) {
|
|
655
655
|
var r = {};
|
|
656
656
|
for (var n in e)
|
|
657
657
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -667,55 +667,53 @@ function Ie(e, t, r) {
|
|
|
667
667
|
return e.concat(o || t);
|
|
668
668
|
}
|
|
669
669
|
function Ne(e, t) {
|
|
670
|
-
var r = t && t.cache ? t.cache :
|
|
670
|
+
var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : jr;
|
|
671
671
|
return i(e, {
|
|
672
672
|
cache: r,
|
|
673
673
|
serializer: n
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Gr(e) {
|
|
677
677
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
var i =
|
|
679
|
+
function kr(e, t, r, n) {
|
|
680
|
+
var i = Gr(n) ? n : r(n), o = t.get(i);
|
|
681
681
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function Bt(e, t, r) {
|
|
684
684
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
685
685
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function wt(e, t, r, n, i) {
|
|
688
688
|
return r.bind(t, e, n, i);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
var r = e.length === 1 ?
|
|
692
|
-
return
|
|
690
|
+
function jr(e, t) {
|
|
691
|
+
var r = e.length === 1 ? kr : Bt;
|
|
692
|
+
return wt(e, this, r, t.cache.create(), t.serializer);
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
696
|
-
}
|
|
697
|
-
function zr(e, t) {
|
|
698
|
-
return Qe(e, this, Pt, t.cache.create(), t.serializer);
|
|
694
|
+
function Vr(e, t) {
|
|
695
|
+
return wt(e, this, Bt, t.cache.create(), t.serializer);
|
|
699
696
|
}
|
|
700
|
-
var
|
|
697
|
+
var Xr = function() {
|
|
701
698
|
return JSON.stringify(arguments);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
699
|
+
}, zr = (
|
|
700
|
+
/** @class */
|
|
701
|
+
function() {
|
|
702
|
+
function e() {
|
|
703
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
704
|
+
}
|
|
705
|
+
return e.prototype.get = function(t) {
|
|
706
|
+
return this.cache[t];
|
|
707
|
+
}, e.prototype.set = function(t, r) {
|
|
708
|
+
this.cache[t] = r;
|
|
709
|
+
}, e;
|
|
710
|
+
}()
|
|
711
|
+
), Wr = {
|
|
713
712
|
create: function() {
|
|
714
|
-
return new
|
|
713
|
+
return new zr();
|
|
715
714
|
}
|
|
716
|
-
},
|
|
717
|
-
variadic:
|
|
718
|
-
monadic: zr
|
|
715
|
+
}, Oe = {
|
|
716
|
+
variadic: Vr
|
|
719
717
|
}, m;
|
|
720
718
|
(function(e) {
|
|
721
719
|
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";
|
|
@@ -728,43 +726,43 @@ var te;
|
|
|
728
726
|
(function(e) {
|
|
729
727
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
730
728
|
})(te || (te = {}));
|
|
731
|
-
function
|
|
729
|
+
function ot(e) {
|
|
732
730
|
return e.type === x.literal;
|
|
733
731
|
}
|
|
734
|
-
function
|
|
732
|
+
function Zr(e) {
|
|
735
733
|
return e.type === x.argument;
|
|
736
734
|
}
|
|
737
|
-
function
|
|
735
|
+
function Pt(e) {
|
|
738
736
|
return e.type === x.number;
|
|
739
737
|
}
|
|
740
|
-
function
|
|
738
|
+
function Ct(e) {
|
|
741
739
|
return e.type === x.date;
|
|
742
740
|
}
|
|
743
|
-
function
|
|
741
|
+
function It(e) {
|
|
744
742
|
return e.type === x.time;
|
|
745
743
|
}
|
|
746
|
-
function
|
|
744
|
+
function Nt(e) {
|
|
747
745
|
return e.type === x.select;
|
|
748
746
|
}
|
|
749
|
-
function
|
|
747
|
+
function Ot(e) {
|
|
750
748
|
return e.type === x.plural;
|
|
751
749
|
}
|
|
752
|
-
function
|
|
750
|
+
function Jr(e) {
|
|
753
751
|
return e.type === x.pound;
|
|
754
752
|
}
|
|
755
|
-
function
|
|
753
|
+
function Mt(e) {
|
|
756
754
|
return e.type === x.tag;
|
|
757
755
|
}
|
|
758
|
-
function
|
|
756
|
+
function Lt(e) {
|
|
759
757
|
return !!(e && typeof e == "object" && e.type === te.number);
|
|
760
758
|
}
|
|
761
759
|
function Ge(e) {
|
|
762
760
|
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
763
761
|
}
|
|
764
|
-
var
|
|
765
|
-
function
|
|
762
|
+
var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[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;
|
|
763
|
+
function qr(e) {
|
|
766
764
|
var t = {};
|
|
767
|
-
return e.replace(
|
|
765
|
+
return e.replace(Qr, function(r) {
|
|
768
766
|
var n = r.length;
|
|
769
767
|
switch (r[0]) {
|
|
770
768
|
case "G":
|
|
@@ -853,11 +851,11 @@ function Yr(e) {
|
|
|
853
851
|
return "";
|
|
854
852
|
}), t;
|
|
855
853
|
}
|
|
856
|
-
var
|
|
857
|
-
function
|
|
854
|
+
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
855
|
+
function Kr(e) {
|
|
858
856
|
if (e.length === 0)
|
|
859
857
|
throw new Error("Number skeleton cannot be empty");
|
|
860
|
-
for (var t = e.split(
|
|
858
|
+
for (var t = e.split(Yr).filter(function(d) {
|
|
861
859
|
return d.length > 0;
|
|
862
860
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
863
861
|
var o = i[n], s = o.split("/");
|
|
@@ -872,17 +870,17 @@ function en(e) {
|
|
|
872
870
|
}
|
|
873
871
|
return r;
|
|
874
872
|
}
|
|
875
|
-
function
|
|
873
|
+
function en(e) {
|
|
876
874
|
return e.replace(/^(.*?)-/, "");
|
|
877
875
|
}
|
|
878
|
-
var
|
|
879
|
-
function
|
|
876
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
877
|
+
function at(e) {
|
|
880
878
|
var t = {};
|
|
881
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
879
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
882
880
|
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)), "";
|
|
883
881
|
}), t;
|
|
884
882
|
}
|
|
885
|
-
function
|
|
883
|
+
function Dt(e) {
|
|
886
884
|
switch (e) {
|
|
887
885
|
case "sign-auto":
|
|
888
886
|
return {
|
|
@@ -922,7 +920,7 @@ function Gt(e) {
|
|
|
922
920
|
};
|
|
923
921
|
}
|
|
924
922
|
}
|
|
925
|
-
function
|
|
923
|
+
function rn(e) {
|
|
926
924
|
var t;
|
|
927
925
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
928
926
|
notation: "engineering"
|
|
@@ -930,17 +928,17 @@ function nn(e) {
|
|
|
930
928
|
notation: "scientific"
|
|
931
929
|
}, e = e.slice(1)), t) {
|
|
932
930
|
var r = e.slice(0, 2);
|
|
933
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
931
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
|
|
934
932
|
throw new Error("Malformed concise eng/scientific notation");
|
|
935
933
|
t.minimumIntegerDigits = e.length;
|
|
936
934
|
}
|
|
937
935
|
return t;
|
|
938
936
|
}
|
|
939
|
-
function
|
|
940
|
-
var t = {}, r =
|
|
937
|
+
function ut(e) {
|
|
938
|
+
var t = {}, r = Dt(e);
|
|
941
939
|
return r || t;
|
|
942
940
|
}
|
|
943
|
-
function
|
|
941
|
+
function nn(e) {
|
|
944
942
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
945
943
|
var i = n[r];
|
|
946
944
|
switch (i.stem) {
|
|
@@ -964,7 +962,7 @@ function on(e) {
|
|
|
964
962
|
continue;
|
|
965
963
|
case "measure-unit":
|
|
966
964
|
case "unit":
|
|
967
|
-
t.style = "unit", t.unit =
|
|
965
|
+
t.style = "unit", t.unit = en(i.options[0]);
|
|
968
966
|
continue;
|
|
969
967
|
case "compact-short":
|
|
970
968
|
case "K":
|
|
@@ -976,12 +974,12 @@ function on(e) {
|
|
|
976
974
|
continue;
|
|
977
975
|
case "scientific":
|
|
978
976
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
979
|
-
return v(v({}, l),
|
|
977
|
+
return v(v({}, l), ut(u));
|
|
980
978
|
}, {}));
|
|
981
979
|
continue;
|
|
982
980
|
case "engineering":
|
|
983
981
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
984
|
-
return v(v({}, l),
|
|
982
|
+
return v(v({}, l), ut(u));
|
|
985
983
|
}, {}));
|
|
986
984
|
continue;
|
|
987
985
|
case "notation-simple":
|
|
@@ -1026,7 +1024,7 @@ function on(e) {
|
|
|
1026
1024
|
case "integer-width":
|
|
1027
1025
|
if (i.options.length > 1)
|
|
1028
1026
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1029
|
-
i.options[0].replace(
|
|
1027
|
+
i.options[0].replace(tn, function(l, u, h, c, d, g) {
|
|
1030
1028
|
if (u)
|
|
1031
1029
|
t.minimumIntegerDigits = h.length;
|
|
1032
1030
|
else {
|
|
@@ -1039,27 +1037,27 @@ function on(e) {
|
|
|
1039
1037
|
});
|
|
1040
1038
|
continue;
|
|
1041
1039
|
}
|
|
1042
|
-
if (
|
|
1040
|
+
if (Ut.test(i.stem)) {
|
|
1043
1041
|
t.minimumIntegerDigits = i.stem.length;
|
|
1044
1042
|
continue;
|
|
1045
1043
|
}
|
|
1046
|
-
if (
|
|
1044
|
+
if (st.test(i.stem)) {
|
|
1047
1045
|
if (i.options.length > 1)
|
|
1048
1046
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1049
|
-
i.stem.replace(
|
|
1047
|
+
i.stem.replace(st, function(l, u, h, c, d, g) {
|
|
1050
1048
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1051
1049
|
});
|
|
1052
1050
|
var o = i.options[0];
|
|
1053
|
-
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t),
|
|
1051
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), at(o)));
|
|
1054
1052
|
continue;
|
|
1055
1053
|
}
|
|
1056
|
-
if (
|
|
1057
|
-
t = v(v({}, t),
|
|
1054
|
+
if ($t.test(i.stem)) {
|
|
1055
|
+
t = v(v({}, t), at(i.stem));
|
|
1058
1056
|
continue;
|
|
1059
1057
|
}
|
|
1060
|
-
var s =
|
|
1058
|
+
var s = Dt(i.stem);
|
|
1061
1059
|
s && (t = v(v({}, t), s));
|
|
1062
|
-
var a =
|
|
1060
|
+
var a = rn(i.stem);
|
|
1063
1061
|
a && (t = v(v({}, t), a));
|
|
1064
1062
|
}
|
|
1065
1063
|
return t;
|
|
@@ -2479,13 +2477,13 @@ var ve = {
|
|
|
2479
2477
|
"h"
|
|
2480
2478
|
]
|
|
2481
2479
|
};
|
|
2482
|
-
function
|
|
2480
|
+
function on(e, t) {
|
|
2483
2481
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2484
2482
|
var i = e.charAt(n);
|
|
2485
2483
|
if (i === "j") {
|
|
2486
2484
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2487
2485
|
o++, n++;
|
|
2488
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2486
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = sn(t);
|
|
2489
2487
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2490
2488
|
r += l;
|
|
2491
2489
|
for (; s-- > 0; )
|
|
@@ -2495,7 +2493,7 @@ function sn(e, t) {
|
|
|
2495
2493
|
}
|
|
2496
2494
|
return r;
|
|
2497
2495
|
}
|
|
2498
|
-
function
|
|
2496
|
+
function sn(e) {
|
|
2499
2497
|
var t = e.hourCycle;
|
|
2500
2498
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2501
2499
|
e.hourCycles && // @ts-ignore
|
|
@@ -2517,20 +2515,20 @@ function an(e) {
|
|
|
2517
2515
|
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
2518
2516
|
return i[0];
|
|
2519
2517
|
}
|
|
2520
|
-
var
|
|
2518
|
+
var Me, an = new RegExp("^".concat(Rt.source, "*")), un = new RegExp("".concat(Rt.source, "*$"));
|
|
2521
2519
|
function b(e, t) {
|
|
2522
2520
|
return { start: e, end: t };
|
|
2523
2521
|
}
|
|
2524
|
-
var
|
|
2522
|
+
var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, bn = pn ? Number.isSafeInteger : function(e) {
|
|
2525
2523
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2526
2524
|
}, ke = !0;
|
|
2527
2525
|
try {
|
|
2528
|
-
var
|
|
2529
|
-
ke = ((
|
|
2526
|
+
var gn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2527
|
+
ke = ((Me = gn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
2530
2528
|
} catch (e) {
|
|
2531
2529
|
ke = !1;
|
|
2532
2530
|
}
|
|
2533
|
-
var
|
|
2531
|
+
var lt = ln ? (
|
|
2534
2532
|
// Native
|
|
2535
2533
|
function(t, r, n) {
|
|
2536
2534
|
return t.startsWith(r, n);
|
|
@@ -2540,7 +2538,7 @@ var ct = hn ? (
|
|
|
2540
2538
|
function(t, r, n) {
|
|
2541
2539
|
return t.slice(n, n + r.length) === r;
|
|
2542
2540
|
}
|
|
2543
|
-
), je =
|
|
2541
|
+
), je = hn ? String.fromCodePoint : (
|
|
2544
2542
|
// IE11
|
|
2545
2543
|
function() {
|
|
2546
2544
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2552,9 +2550,9 @@ var ct = hn ? (
|
|
|
2552
2550
|
}
|
|
2553
2551
|
return n;
|
|
2554
2552
|
}
|
|
2555
|
-
),
|
|
2553
|
+
), ht = (
|
|
2556
2554
|
// native
|
|
2557
|
-
|
|
2555
|
+
cn ? Object.fromEntries : (
|
|
2558
2556
|
// Ponyfill
|
|
2559
2557
|
function(t) {
|
|
2560
2558
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2564,7 +2562,7 @@ var ct = hn ? (
|
|
|
2564
2562
|
return r;
|
|
2565
2563
|
}
|
|
2566
2564
|
)
|
|
2567
|
-
),
|
|
2565
|
+
), Ft = fn ? (
|
|
2568
2566
|
// Native
|
|
2569
2567
|
function(t, r) {
|
|
2570
2568
|
return t.codePointAt(r);
|
|
@@ -2578,7 +2576,7 @@ var ct = hn ? (
|
|
|
2578
2576
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2579
2577
|
}
|
|
2580
2578
|
}
|
|
2581
|
-
),
|
|
2579
|
+
), vn = dn ? (
|
|
2582
2580
|
// Native
|
|
2583
2581
|
function(t) {
|
|
2584
2582
|
return t.trimStart();
|
|
@@ -2586,9 +2584,9 @@ var ct = hn ? (
|
|
|
2586
2584
|
) : (
|
|
2587
2585
|
// Ponyfill
|
|
2588
2586
|
function(t) {
|
|
2589
|
-
return t.replace(
|
|
2587
|
+
return t.replace(an, "");
|
|
2590
2588
|
}
|
|
2591
|
-
),
|
|
2589
|
+
), yn = mn ? (
|
|
2592
2590
|
// Native
|
|
2593
2591
|
function(t) {
|
|
2594
2592
|
return t.trimEnd();
|
|
@@ -2596,32 +2594,32 @@ var ct = hn ? (
|
|
|
2596
2594
|
) : (
|
|
2597
2595
|
// Ponyfill
|
|
2598
2596
|
function(t) {
|
|
2599
|
-
return t.replace(
|
|
2597
|
+
return t.replace(un, "");
|
|
2600
2598
|
}
|
|
2601
2599
|
);
|
|
2602
|
-
function
|
|
2600
|
+
function Gt(e, t) {
|
|
2603
2601
|
return new RegExp(e, t);
|
|
2604
2602
|
}
|
|
2605
2603
|
var Ve;
|
|
2606
2604
|
if (ke) {
|
|
2607
|
-
var
|
|
2605
|
+
var ct = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2608
2606
|
Ve = function(t, r) {
|
|
2609
2607
|
var n;
|
|
2610
|
-
|
|
2611
|
-
var i =
|
|
2608
|
+
ct.lastIndex = r;
|
|
2609
|
+
var i = ct.exec(t);
|
|
2612
2610
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2613
2611
|
};
|
|
2614
2612
|
} else
|
|
2615
2613
|
Ve = function(t, r) {
|
|
2616
2614
|
for (var n = []; ; ) {
|
|
2617
|
-
var i =
|
|
2618
|
-
if (i === void 0 ||
|
|
2615
|
+
var i = Ft(t, r);
|
|
2616
|
+
if (i === void 0 || kt(i) || Sn(i))
|
|
2619
2617
|
break;
|
|
2620
2618
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2621
2619
|
}
|
|
2622
2620
|
return je.apply(void 0, n);
|
|
2623
2621
|
};
|
|
2624
|
-
var
|
|
2622
|
+
var En = (
|
|
2625
2623
|
/** @class */
|
|
2626
2624
|
function() {
|
|
2627
2625
|
function e(t, r) {
|
|
@@ -2703,7 +2701,7 @@ var xn = (
|
|
|
2703
2701
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
2704
2702
|
}, e.prototype.parseTagName = function() {
|
|
2705
2703
|
var t = this.offset();
|
|
2706
|
-
for (this.bump(); !this.isEOF() &&
|
|
2704
|
+
for (this.bump(); !this.isEOF() && _n(this.char()); )
|
|
2707
2705
|
this.bump();
|
|
2708
2706
|
return this.message.slice(t, this.offset());
|
|
2709
2707
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2732,7 +2730,7 @@ var xn = (
|
|
|
2732
2730
|
};
|
|
2733
2731
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2734
2732
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2735
|
-
!
|
|
2733
|
+
!xn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2736
2734
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2737
2735
|
if (this.isEOF() || this.char() !== 39)
|
|
2738
2736
|
return null;
|
|
@@ -2819,7 +2817,7 @@ var xn = (
|
|
|
2819
2817
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2820
2818
|
if (c.err)
|
|
2821
2819
|
return c;
|
|
2822
|
-
var d =
|
|
2820
|
+
var d = yn(c.val);
|
|
2823
2821
|
if (d.length === 0)
|
|
2824
2822
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2825
2823
|
var g = b(h, this.clonePosition());
|
|
@@ -2829,8 +2827,8 @@ var xn = (
|
|
|
2829
2827
|
if (y.err)
|
|
2830
2828
|
return y;
|
|
2831
2829
|
var _ = b(i, this.clonePosition());
|
|
2832
|
-
if (u &&
|
|
2833
|
-
var T =
|
|
2830
|
+
if (u && lt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2831
|
+
var T = vn(u.style.slice(2));
|
|
2834
2832
|
if (a === "number") {
|
|
2835
2833
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2836
2834
|
return c.err ? c : {
|
|
@@ -2841,12 +2839,12 @@ var xn = (
|
|
|
2841
2839
|
if (T.length === 0)
|
|
2842
2840
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2843
2841
|
var H = T;
|
|
2844
|
-
this.locale && (H =
|
|
2842
|
+
this.locale && (H = on(T, this.locale));
|
|
2845
2843
|
var d = {
|
|
2846
2844
|
type: te.dateTime,
|
|
2847
2845
|
pattern: H,
|
|
2848
2846
|
location: u.styleLocation,
|
|
2849
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2847
|
+
parsedOptions: this.shouldParseSkeletons ? qr(H) : {}
|
|
2850
2848
|
}, L = a === "date" ? x.date : x.time;
|
|
2851
2849
|
return {
|
|
2852
2850
|
val: { type: L, value: n, location: _, style: d },
|
|
@@ -2892,7 +2890,7 @@ var xn = (
|
|
|
2892
2890
|
val: {
|
|
2893
2891
|
type: x.select,
|
|
2894
2892
|
value: n,
|
|
2895
|
-
options:
|
|
2893
|
+
options: ht(F.val),
|
|
2896
2894
|
location: V
|
|
2897
2895
|
},
|
|
2898
2896
|
err: null
|
|
@@ -2900,7 +2898,7 @@ var xn = (
|
|
|
2900
2898
|
val: {
|
|
2901
2899
|
type: x.plural,
|
|
2902
2900
|
value: n,
|
|
2903
|
-
options:
|
|
2901
|
+
options: ht(F.val),
|
|
2904
2902
|
offset: N,
|
|
2905
2903
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2906
2904
|
location: V
|
|
@@ -2951,7 +2949,7 @@ var xn = (
|
|
|
2951
2949
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2952
2950
|
var n = [];
|
|
2953
2951
|
try {
|
|
2954
|
-
n =
|
|
2952
|
+
n = Kr(t);
|
|
2955
2953
|
} catch (i) {
|
|
2956
2954
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2957
2955
|
}
|
|
@@ -2960,7 +2958,7 @@ var xn = (
|
|
|
2960
2958
|
type: te.number,
|
|
2961
2959
|
tokens: n,
|
|
2962
2960
|
location: r,
|
|
2963
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2961
|
+
parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
|
|
2964
2962
|
},
|
|
2965
2963
|
err: null
|
|
2966
2964
|
};
|
|
@@ -3008,7 +3006,7 @@ var xn = (
|
|
|
3008
3006
|
break;
|
|
3009
3007
|
}
|
|
3010
3008
|
var l = b(i, this.clonePosition());
|
|
3011
|
-
return o ? (s *= n,
|
|
3009
|
+
return o ? (s *= n, bn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3012
3010
|
}, e.prototype.offset = function() {
|
|
3013
3011
|
return this.position.offset;
|
|
3014
3012
|
}, e.prototype.isEOF = function() {
|
|
@@ -3023,7 +3021,7 @@ var xn = (
|
|
|
3023
3021
|
var t = this.position.offset;
|
|
3024
3022
|
if (t >= this.message.length)
|
|
3025
3023
|
throw Error("out of bound");
|
|
3026
|
-
var r =
|
|
3024
|
+
var r = Ft(this.message, t);
|
|
3027
3025
|
if (r === void 0)
|
|
3028
3026
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3029
3027
|
return r;
|
|
@@ -3042,7 +3040,7 @@ var xn = (
|
|
|
3042
3040
|
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);
|
|
3043
3041
|
}
|
|
3044
3042
|
}, e.prototype.bumpIf = function(t) {
|
|
3045
|
-
if (
|
|
3043
|
+
if (lt(this.message, t, this.offset())) {
|
|
3046
3044
|
for (var r = 0; r < t.length; r++)
|
|
3047
3045
|
this.bump();
|
|
3048
3046
|
return !0;
|
|
@@ -3064,7 +3062,7 @@ var xn = (
|
|
|
3064
3062
|
break;
|
|
3065
3063
|
}
|
|
3066
3064
|
}, e.prototype.bumpSpace = function() {
|
|
3067
|
-
for (; !this.isEOF() &&
|
|
3065
|
+
for (; !this.isEOF() && kt(this.char()); )
|
|
3068
3066
|
this.bump();
|
|
3069
3067
|
}, e.prototype.peek = function() {
|
|
3070
3068
|
if (this.isEOF())
|
|
@@ -3077,30 +3075,30 @@ var xn = (
|
|
|
3077
3075
|
function Xe(e) {
|
|
3078
3076
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3079
3077
|
}
|
|
3080
|
-
function
|
|
3078
|
+
function xn(e) {
|
|
3081
3079
|
return Xe(e) || e === 47;
|
|
3082
3080
|
}
|
|
3083
|
-
function
|
|
3081
|
+
function _n(e) {
|
|
3084
3082
|
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;
|
|
3085
3083
|
}
|
|
3086
|
-
function
|
|
3084
|
+
function kt(e) {
|
|
3087
3085
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3088
3086
|
}
|
|
3089
|
-
function
|
|
3087
|
+
function Sn(e) {
|
|
3090
3088
|
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;
|
|
3091
3089
|
}
|
|
3092
3090
|
function ze(e) {
|
|
3093
3091
|
e.forEach(function(t) {
|
|
3094
|
-
if (delete t.location,
|
|
3092
|
+
if (delete t.location, Nt(t) || Ot(t))
|
|
3095
3093
|
for (var r in t.options)
|
|
3096
3094
|
delete t.options[r].location, ze(t.options[r].value);
|
|
3097
3095
|
else
|
|
3098
|
-
|
|
3096
|
+
Pt(t) && Lt(t.style) || (Ct(t) || It(t)) && Ge(t.style) ? delete t.style.location : Mt(t) && ze(t.children);
|
|
3099
3097
|
});
|
|
3100
3098
|
}
|
|
3101
|
-
function
|
|
3099
|
+
function Tn(e, t) {
|
|
3102
3100
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3103
|
-
var r = new
|
|
3101
|
+
var r = new En(e, t).parse();
|
|
3104
3102
|
if (r.err) {
|
|
3105
3103
|
var n = SyntaxError(m[r.err.kind]);
|
|
3106
3104
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3123,7 +3121,7 @@ var Ae = (
|
|
|
3123
3121
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3124
3122
|
}, t;
|
|
3125
3123
|
}(Error)
|
|
3126
|
-
),
|
|
3124
|
+
), ft = (
|
|
3127
3125
|
/** @class */
|
|
3128
3126
|
function(e) {
|
|
3129
3127
|
He(t, e);
|
|
@@ -3132,7 +3130,7 @@ var Ae = (
|
|
|
3132
3130
|
}
|
|
3133
3131
|
return t;
|
|
3134
3132
|
}(Ae)
|
|
3135
|
-
),
|
|
3133
|
+
), Hn = (
|
|
3136
3134
|
/** @class */
|
|
3137
3135
|
function(e) {
|
|
3138
3136
|
He(t, e);
|
|
@@ -3141,7 +3139,7 @@ var Ae = (
|
|
|
3141
3139
|
}
|
|
3142
3140
|
return t;
|
|
3143
3141
|
}(Ae)
|
|
3144
|
-
),
|
|
3142
|
+
), An = (
|
|
3145
3143
|
/** @class */
|
|
3146
3144
|
function(e) {
|
|
3147
3145
|
He(t, e);
|
|
@@ -3154,17 +3152,17 @@ var Ae = (
|
|
|
3154
3152
|
(function(e) {
|
|
3155
3153
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3156
3154
|
})(I || (I = {}));
|
|
3157
|
-
function
|
|
3155
|
+
function Bn(e) {
|
|
3158
3156
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3159
3157
|
var n = t[t.length - 1];
|
|
3160
3158
|
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3161
3159
|
}, []);
|
|
3162
3160
|
}
|
|
3163
|
-
function
|
|
3161
|
+
function wn(e) {
|
|
3164
3162
|
return typeof e == "function";
|
|
3165
3163
|
}
|
|
3166
3164
|
function Ee(e, t, r, n, i, o, s) {
|
|
3167
|
-
if (e.length === 1 &&
|
|
3165
|
+
if (e.length === 1 && ot(e[0]))
|
|
3168
3166
|
return [
|
|
3169
3167
|
{
|
|
3170
3168
|
type: I.literal,
|
|
@@ -3173,14 +3171,14 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3173
3171
|
];
|
|
3174
3172
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3175
3173
|
var h = u[l];
|
|
3176
|
-
if (
|
|
3174
|
+
if (ot(h)) {
|
|
3177
3175
|
a.push({
|
|
3178
3176
|
type: I.literal,
|
|
3179
3177
|
value: h.value
|
|
3180
3178
|
});
|
|
3181
3179
|
continue;
|
|
3182
3180
|
}
|
|
3183
|
-
if (
|
|
3181
|
+
if (Jr(h)) {
|
|
3184
3182
|
typeof o == "number" && a.push({
|
|
3185
3183
|
type: I.literal,
|
|
3186
3184
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3189,16 +3187,16 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3189
3187
|
}
|
|
3190
3188
|
var c = h.value;
|
|
3191
3189
|
if (!(i && c in i))
|
|
3192
|
-
throw new
|
|
3190
|
+
throw new An(c, s);
|
|
3193
3191
|
var d = i[c];
|
|
3194
|
-
if (
|
|
3192
|
+
if (Zr(h)) {
|
|
3195
3193
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3196
3194
|
type: typeof d == "string" ? I.literal : I.object,
|
|
3197
3195
|
value: d
|
|
3198
3196
|
});
|
|
3199
3197
|
continue;
|
|
3200
3198
|
}
|
|
3201
|
-
if (
|
|
3199
|
+
if (Ct(h)) {
|
|
3202
3200
|
var g = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3203
3201
|
a.push({
|
|
3204
3202
|
type: I.literal,
|
|
@@ -3206,7 +3204,7 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3206
3204
|
});
|
|
3207
3205
|
continue;
|
|
3208
3206
|
}
|
|
3209
|
-
if (
|
|
3207
|
+
if (It(h)) {
|
|
3210
3208
|
var g = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3211
3209
|
a.push({
|
|
3212
3210
|
type: I.literal,
|
|
@@ -3214,18 +3212,18 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3214
3212
|
});
|
|
3215
3213
|
continue;
|
|
3216
3214
|
}
|
|
3217
|
-
if (
|
|
3218
|
-
var g = typeof h.style == "string" ? n.number[h.style] :
|
|
3215
|
+
if (Pt(h)) {
|
|
3216
|
+
var g = typeof h.style == "string" ? n.number[h.style] : Lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3219
3217
|
g && g.scale && (d = d * (g.scale || 1)), a.push({
|
|
3220
3218
|
type: I.literal,
|
|
3221
3219
|
value: r.getNumberFormat(t, g).format(d)
|
|
3222
3220
|
});
|
|
3223
3221
|
continue;
|
|
3224
3222
|
}
|
|
3225
|
-
if (
|
|
3223
|
+
if (Mt(h)) {
|
|
3226
3224
|
var y = h.children, _ = h.value, T = i[_];
|
|
3227
|
-
if (!
|
|
3228
|
-
throw new
|
|
3225
|
+
if (!wn(T))
|
|
3226
|
+
throw new Hn(_, "function", s);
|
|
3229
3227
|
var H = Ee(y, t, r, n, i, o), L = T(H.map(function(N) {
|
|
3230
3228
|
return N.value;
|
|
3231
3229
|
}));
|
|
@@ -3236,14 +3234,14 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3236
3234
|
};
|
|
3237
3235
|
}));
|
|
3238
3236
|
}
|
|
3239
|
-
if (
|
|
3237
|
+
if (Nt(h)) {
|
|
3240
3238
|
var B = h.options[d] || h.options.other;
|
|
3241
3239
|
if (!B)
|
|
3242
|
-
throw new
|
|
3240
|
+
throw new ft(h.value, d, Object.keys(h.options), s);
|
|
3243
3241
|
a.push.apply(a, Ee(B.value, t, r, n, i));
|
|
3244
3242
|
continue;
|
|
3245
3243
|
}
|
|
3246
|
-
if (
|
|
3244
|
+
if (Ot(h)) {
|
|
3247
3245
|
var B = h.options["=".concat(d)];
|
|
3248
3246
|
if (!B) {
|
|
3249
3247
|
if (!Intl.PluralRules)
|
|
@@ -3254,21 +3252,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3254
3252
|
B = h.options[S] || h.options.other;
|
|
3255
3253
|
}
|
|
3256
3254
|
if (!B)
|
|
3257
|
-
throw new
|
|
3255
|
+
throw new ft(h.value, d, Object.keys(h.options), s);
|
|
3258
3256
|
a.push.apply(a, Ee(B.value, t, r, n, i, d - (h.offset || 0)));
|
|
3259
3257
|
continue;
|
|
3260
3258
|
}
|
|
3261
3259
|
}
|
|
3262
|
-
return
|
|
3260
|
+
return Bn(a);
|
|
3263
3261
|
}
|
|
3264
|
-
function
|
|
3262
|
+
function Pn(e, t) {
|
|
3265
3263
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3266
3264
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3267
3265
|
}, {})) : e;
|
|
3268
3266
|
}
|
|
3269
|
-
function
|
|
3267
|
+
function Cn(e, t) {
|
|
3270
3268
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3271
|
-
return r[n] =
|
|
3269
|
+
return r[n] = Pn(e[n], t[n]), r;
|
|
3272
3270
|
}, v({}, e)) : e;
|
|
3273
3271
|
}
|
|
3274
3272
|
function Le(e) {
|
|
@@ -3285,7 +3283,7 @@ function Le(e) {
|
|
|
3285
3283
|
}
|
|
3286
3284
|
};
|
|
3287
3285
|
}
|
|
3288
|
-
function
|
|
3286
|
+
function In(e) {
|
|
3289
3287
|
return e === void 0 && (e = {
|
|
3290
3288
|
number: {},
|
|
3291
3289
|
dateTime: {},
|
|
@@ -3297,7 +3295,7 @@ function Nn(e) {
|
|
|
3297
3295
|
return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3298
3296
|
}, {
|
|
3299
3297
|
cache: Le(e.number),
|
|
3300
|
-
strategy:
|
|
3298
|
+
strategy: Oe.variadic
|
|
3301
3299
|
}),
|
|
3302
3300
|
getDateTimeFormat: Ne(function() {
|
|
3303
3301
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
@@ -3305,7 +3303,7 @@ function Nn(e) {
|
|
|
3305
3303
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3306
3304
|
}, {
|
|
3307
3305
|
cache: Le(e.dateTime),
|
|
3308
|
-
strategy:
|
|
3306
|
+
strategy: Oe.variadic
|
|
3309
3307
|
}),
|
|
3310
3308
|
getPluralRules: Ne(function() {
|
|
3311
3309
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
@@ -3313,11 +3311,11 @@ function Nn(e) {
|
|
|
3313
3311
|
return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3314
3312
|
}, {
|
|
3315
3313
|
cache: Le(e.pluralRules),
|
|
3316
|
-
strategy:
|
|
3314
|
+
strategy: Oe.variadic
|
|
3317
3315
|
})
|
|
3318
3316
|
};
|
|
3319
3317
|
}
|
|
3320
|
-
var
|
|
3318
|
+
var Nn = (
|
|
3321
3319
|
/** @class */
|
|
3322
3320
|
function() {
|
|
3323
3321
|
function e(t, r, n, i) {
|
|
@@ -3349,13 +3347,13 @@ var Mn = (
|
|
|
3349
3347
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3350
3348
|
var s = i || {};
|
|
3351
3349
|
s.formatters;
|
|
3352
|
-
var a =
|
|
3350
|
+
var a = Fr(s, ["formatters"]);
|
|
3353
3351
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3354
3352
|
} else
|
|
3355
3353
|
this.ast = t;
|
|
3356
3354
|
if (!Array.isArray(this.ast))
|
|
3357
3355
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3358
|
-
this.formats =
|
|
3356
|
+
this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
|
|
3359
3357
|
}
|
|
3360
3358
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3361
3359
|
get: function() {
|
|
@@ -3368,7 +3366,7 @@ var Mn = (
|
|
|
3368
3366
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3369
3367
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3370
3368
|
}
|
|
3371
|
-
}, e.__parse =
|
|
3369
|
+
}, e.__parse = Tn, e.formats = {
|
|
3372
3370
|
number: {
|
|
3373
3371
|
integer: {
|
|
3374
3372
|
maximumFractionDigits: 0
|
|
@@ -3450,60 +3448,60 @@ function On(e, t) {
|
|
|
3450
3448
|
n = void 0;
|
|
3451
3449
|
return n;
|
|
3452
3450
|
}
|
|
3453
|
-
const k = {},
|
|
3451
|
+
const k = {}, Mn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), jt = (e, t) => {
|
|
3454
3452
|
if (t == null)
|
|
3455
3453
|
return;
|
|
3456
3454
|
if (t in k && e in k[t])
|
|
3457
3455
|
return k[t][e];
|
|
3458
3456
|
const r = Be(t);
|
|
3459
3457
|
for (let n = 0; n < r.length; n++) {
|
|
3460
|
-
const i = r[n], o =
|
|
3458
|
+
const i = r[n], o = Rn(i, e);
|
|
3461
3459
|
if (o)
|
|
3462
|
-
return
|
|
3460
|
+
return Mn(e, t, o);
|
|
3463
3461
|
}
|
|
3464
3462
|
};
|
|
3465
|
-
let
|
|
3463
|
+
let Qe;
|
|
3466
3464
|
const se = Te({});
|
|
3467
|
-
function
|
|
3468
|
-
return
|
|
3465
|
+
function Ln(e) {
|
|
3466
|
+
return Qe[e] || null;
|
|
3469
3467
|
}
|
|
3470
|
-
function
|
|
3471
|
-
return e in
|
|
3468
|
+
function Vt(e) {
|
|
3469
|
+
return e in Qe;
|
|
3472
3470
|
}
|
|
3473
|
-
function
|
|
3474
|
-
if (!
|
|
3471
|
+
function Rn(e, t) {
|
|
3472
|
+
if (!Vt(e))
|
|
3475
3473
|
return null;
|
|
3476
|
-
const r =
|
|
3474
|
+
const r = Ln(e);
|
|
3477
3475
|
return On(r, t);
|
|
3478
3476
|
}
|
|
3479
|
-
function
|
|
3477
|
+
function $n(e) {
|
|
3480
3478
|
if (e == null)
|
|
3481
3479
|
return;
|
|
3482
3480
|
const t = Be(e);
|
|
3483
3481
|
for (let r = 0; r < t.length; r++) {
|
|
3484
3482
|
const n = t[r];
|
|
3485
|
-
if (
|
|
3483
|
+
if (Vt(n))
|
|
3486
3484
|
return n;
|
|
3487
3485
|
}
|
|
3488
3486
|
}
|
|
3489
|
-
function
|
|
3490
|
-
delete k[e], se.update((r) => (r[e] =
|
|
3487
|
+
function Xt(e, ...t) {
|
|
3488
|
+
delete k[e], se.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
|
|
3491
3489
|
}
|
|
3492
3490
|
oe(
|
|
3493
3491
|
[se],
|
|
3494
3492
|
([e]) => Object.keys(e)
|
|
3495
3493
|
);
|
|
3496
|
-
se.subscribe((e) =>
|
|
3494
|
+
se.subscribe((e) => Qe = e);
|
|
3497
3495
|
const xe = {};
|
|
3498
|
-
function
|
|
3496
|
+
function Un(e, t) {
|
|
3499
3497
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3500
3498
|
}
|
|
3501
|
-
function
|
|
3499
|
+
function zt(e) {
|
|
3502
3500
|
return xe[e];
|
|
3503
3501
|
}
|
|
3504
|
-
function
|
|
3502
|
+
function Dn(e) {
|
|
3505
3503
|
return Be(e).map((t) => {
|
|
3506
|
-
const r =
|
|
3504
|
+
const r = zt(t);
|
|
3507
3505
|
return [t, r ? [...r] : []];
|
|
3508
3506
|
}).filter(([, t]) => t.length > 0);
|
|
3509
3507
|
}
|
|
@@ -3511,31 +3509,31 @@ function We(e) {
|
|
|
3511
3509
|
return e == null ? !1 : Be(e).some(
|
|
3512
3510
|
(t) => {
|
|
3513
3511
|
var r;
|
|
3514
|
-
return (r =
|
|
3512
|
+
return (r = zt(t)) == null ? void 0 : r.size;
|
|
3515
3513
|
}
|
|
3516
3514
|
);
|
|
3517
3515
|
}
|
|
3518
|
-
function
|
|
3516
|
+
function Fn(e, t) {
|
|
3519
3517
|
return Promise.all(
|
|
3520
|
-
t.map((n) => (
|
|
3521
|
-
).then((n) =>
|
|
3518
|
+
t.map((n) => (Un(e, n), n().then((i) => i.default || i)))
|
|
3519
|
+
).then((n) => Xt(e, ...n));
|
|
3522
3520
|
}
|
|
3523
3521
|
const ce = {};
|
|
3524
|
-
function
|
|
3522
|
+
function Wt(e) {
|
|
3525
3523
|
if (!We(e))
|
|
3526
3524
|
return e in ce ? ce[e] : Promise.resolve();
|
|
3527
|
-
const t =
|
|
3525
|
+
const t = Dn(e);
|
|
3528
3526
|
return ce[e] = Promise.all(
|
|
3529
3527
|
t.map(
|
|
3530
|
-
([r, n]) =>
|
|
3528
|
+
([r, n]) => Fn(r, n)
|
|
3531
3529
|
)
|
|
3532
3530
|
).then(() => {
|
|
3533
3531
|
if (We(e))
|
|
3534
|
-
return
|
|
3532
|
+
return Wt(e);
|
|
3535
3533
|
delete ce[e];
|
|
3536
3534
|
}), ce[e];
|
|
3537
3535
|
}
|
|
3538
|
-
const
|
|
3536
|
+
const Gn = {
|
|
3539
3537
|
number: {
|
|
3540
3538
|
scientific: { notation: "scientific" },
|
|
3541
3539
|
engineering: { notation: "engineering" },
|
|
@@ -3564,34 +3562,34 @@ const kn = {
|
|
|
3564
3562
|
timeZoneName: "short"
|
|
3565
3563
|
}
|
|
3566
3564
|
}
|
|
3567
|
-
},
|
|
3565
|
+
}, kn = {
|
|
3568
3566
|
fallbackLocale: null,
|
|
3569
3567
|
loadingDelay: 200,
|
|
3570
|
-
formats:
|
|
3568
|
+
formats: Gn,
|
|
3571
3569
|
warnOnMissingMessages: !0,
|
|
3572
3570
|
handleMissingMessage: void 0,
|
|
3573
3571
|
ignoreTag: !0
|
|
3574
|
-
},
|
|
3572
|
+
}, jn = kn;
|
|
3575
3573
|
function ne() {
|
|
3576
|
-
return
|
|
3574
|
+
return jn;
|
|
3577
3575
|
}
|
|
3578
3576
|
const Re = Te(!1);
|
|
3579
|
-
var
|
|
3577
|
+
var Vn = Object.defineProperty, Xn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
|
|
3580
3578
|
for (var r in t || (t = {}))
|
|
3581
|
-
|
|
3582
|
-
if (
|
|
3583
|
-
for (var r of
|
|
3584
|
-
|
|
3579
|
+
Wn.call(t, r) && mt(e, r, t[r]);
|
|
3580
|
+
if (dt)
|
|
3581
|
+
for (var r of dt(t))
|
|
3582
|
+
Zn.call(t, r) && mt(e, r, t[r]);
|
|
3585
3583
|
return e;
|
|
3586
|
-
},
|
|
3584
|
+
}, Qn = (e, t) => Xn(e, zn(t));
|
|
3587
3585
|
let Ze;
|
|
3588
3586
|
const _e = Te(null);
|
|
3589
|
-
function
|
|
3587
|
+
function pt(e) {
|
|
3590
3588
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3591
3589
|
}
|
|
3592
3590
|
function Be(e, t = ne().fallbackLocale) {
|
|
3593
|
-
const r =
|
|
3594
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3591
|
+
const r = pt(e);
|
|
3592
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3595
3593
|
}
|
|
3596
3594
|
function J() {
|
|
3597
3595
|
return Ze != null ? Ze : void 0;
|
|
@@ -3599,22 +3597,22 @@ function J() {
|
|
|
3599
3597
|
_e.subscribe((e) => {
|
|
3600
3598
|
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3601
3599
|
});
|
|
3602
|
-
const
|
|
3603
|
-
if (e &&
|
|
3600
|
+
const qn = (e) => {
|
|
3601
|
+
if (e && $n(e) && We(e)) {
|
|
3604
3602
|
const { loadingDelay: t } = ne();
|
|
3605
3603
|
let r;
|
|
3606
3604
|
return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
|
|
3607
3605
|
() => Re.set(!0),
|
|
3608
3606
|
t
|
|
3609
|
-
) : Re.set(!0),
|
|
3607
|
+
) : Re.set(!0), Wt(e).then(() => {
|
|
3610
3608
|
_e.set(e);
|
|
3611
3609
|
}).finally(() => {
|
|
3612
3610
|
clearTimeout(r), Re.set(!1);
|
|
3613
3611
|
});
|
|
3614
3612
|
}
|
|
3615
3613
|
return _e.set(e);
|
|
3616
|
-
}, W =
|
|
3617
|
-
set:
|
|
3614
|
+
}, W = Qn(Jn({}, _e), {
|
|
3615
|
+
set: qn
|
|
3618
3616
|
}), we = (e) => {
|
|
3619
3617
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3620
3618
|
return (n) => {
|
|
@@ -3622,20 +3620,20 @@ const Yn = (e) => {
|
|
|
3622
3620
|
return i in t ? t[i] : t[i] = e(n);
|
|
3623
3621
|
};
|
|
3624
3622
|
};
|
|
3625
|
-
var
|
|
3623
|
+
var Yn = Object.defineProperty, Se = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
3626
3624
|
for (var r in t || (t = {}))
|
|
3627
|
-
|
|
3625
|
+
Zt.call(t, r) && bt(e, r, t[r]);
|
|
3628
3626
|
if (Se)
|
|
3629
3627
|
for (var r of Se(t))
|
|
3630
|
-
|
|
3628
|
+
Jt.call(t, r) && bt(e, r, t[r]);
|
|
3631
3629
|
return e;
|
|
3632
3630
|
}, ae = (e, t) => {
|
|
3633
3631
|
var r = {};
|
|
3634
3632
|
for (var n in e)
|
|
3635
|
-
|
|
3633
|
+
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3636
3634
|
if (e != null && Se)
|
|
3637
3635
|
for (var n of Se(e))
|
|
3638
|
-
t.indexOf(n) < 0 &&
|
|
3636
|
+
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3639
3637
|
return r;
|
|
3640
3638
|
};
|
|
3641
3639
|
const pe = (e, t) => {
|
|
@@ -3643,21 +3641,21 @@ const pe = (e, t) => {
|
|
|
3643
3641
|
if (e in r && t in r[e])
|
|
3644
3642
|
return r[e][t];
|
|
3645
3643
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3646
|
-
},
|
|
3644
|
+
}, Kn = we(
|
|
3647
3645
|
(e) => {
|
|
3648
3646
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3649
3647
|
if (r == null)
|
|
3650
3648
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3651
3649
|
return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
|
|
3652
3650
|
}
|
|
3653
|
-
),
|
|
3651
|
+
), ei = we(
|
|
3654
3652
|
(e) => {
|
|
3655
3653
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3656
3654
|
if (r == null)
|
|
3657
3655
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3658
3656
|
return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3659
3657
|
}
|
|
3660
|
-
),
|
|
3658
|
+
), ti = we(
|
|
3661
3659
|
(e) => {
|
|
3662
3660
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3663
3661
|
if (r == null)
|
|
@@ -3666,33 +3664,33 @@ const pe = (e, t) => {
|
|
|
3666
3664
|
);
|
|
3667
3665
|
return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3668
3666
|
}
|
|
3669
|
-
),
|
|
3667
|
+
), ri = (e = {}) => {
|
|
3670
3668
|
var t = e, {
|
|
3671
3669
|
locale: r = J()
|
|
3672
3670
|
} = t, n = ae(t, [
|
|
3673
3671
|
"locale"
|
|
3674
3672
|
]);
|
|
3675
|
-
return
|
|
3676
|
-
},
|
|
3673
|
+
return Kn(qe({ locale: r }, n));
|
|
3674
|
+
}, ni = (e = {}) => {
|
|
3677
3675
|
var t = e, {
|
|
3678
3676
|
locale: r = J()
|
|
3679
3677
|
} = t, n = ae(t, [
|
|
3680
3678
|
"locale"
|
|
3681
3679
|
]);
|
|
3682
|
-
return
|
|
3683
|
-
},
|
|
3680
|
+
return ei(qe({ locale: r }, n));
|
|
3681
|
+
}, ii = (e = {}) => {
|
|
3684
3682
|
var t = e, {
|
|
3685
3683
|
locale: r = J()
|
|
3686
3684
|
} = t, n = ae(t, [
|
|
3687
3685
|
"locale"
|
|
3688
3686
|
]);
|
|
3689
|
-
return
|
|
3690
|
-
},
|
|
3687
|
+
return ti(qe({ locale: r }, n));
|
|
3688
|
+
}, oi = we(
|
|
3691
3689
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3692
|
-
(e, t = J()) => new
|
|
3690
|
+
(e, t = J()) => new Nn(e, t, ne().formats, {
|
|
3693
3691
|
ignoreTag: ne().ignoreTag
|
|
3694
3692
|
})
|
|
3695
|
-
),
|
|
3693
|
+
), si = (e, t = {}) => {
|
|
3696
3694
|
var r, n, i, o;
|
|
3697
3695
|
let s = t;
|
|
3698
3696
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3705,7 +3703,7 @@ const pe = (e, t) => {
|
|
|
3705
3703
|
throw new Error(
|
|
3706
3704
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3707
3705
|
);
|
|
3708
|
-
let h =
|
|
3706
|
+
let h = jt(e, l);
|
|
3709
3707
|
if (!h)
|
|
3710
3708
|
h = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3711
3709
|
else if (typeof h != "string")
|
|
@@ -3716,7 +3714,7 @@ const pe = (e, t) => {
|
|
|
3716
3714
|
return h;
|
|
3717
3715
|
let c = h;
|
|
3718
3716
|
try {
|
|
3719
|
-
c =
|
|
3717
|
+
c = oi(h, l).format(a);
|
|
3720
3718
|
} catch (d) {
|
|
3721
3719
|
d instanceof Error && console.warn(
|
|
3722
3720
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3724,20 +3722,20 @@ const pe = (e, t) => {
|
|
|
3724
3722
|
);
|
|
3725
3723
|
}
|
|
3726
3724
|
return c;
|
|
3727
|
-
},
|
|
3725
|
+
}, ai = (e, t) => ii(t).format(e), ui = (e, t) => ni(t).format(e), li = (e, t) => ri(t).format(e), hi = (e, t = J()) => jt(e, t), ci = oe([W, se], () => si);
|
|
3726
|
+
oe([W], () => ai);
|
|
3728
3727
|
oe([W], () => ui);
|
|
3729
3728
|
oe([W], () => li);
|
|
3730
|
-
oe([W], () => hi);
|
|
3731
|
-
|
|
3732
|
-
function di({ withLocale: e, translations: t }) {
|
|
3729
|
+
oe([W, se], () => hi);
|
|
3730
|
+
function fi({ withLocale: e, translations: t }) {
|
|
3733
3731
|
W.subscribe((r) => {
|
|
3734
3732
|
r == null && (se.set(t), W.set(e));
|
|
3735
3733
|
});
|
|
3736
3734
|
}
|
|
3737
|
-
function
|
|
3738
|
-
|
|
3735
|
+
function gt(e, t) {
|
|
3736
|
+
Xt(e, t);
|
|
3739
3737
|
}
|
|
3740
|
-
const
|
|
3738
|
+
const vt = {
|
|
3741
3739
|
en: {
|
|
3742
3740
|
title: "Please enter the verification code you received on your number",
|
|
3743
3741
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3844,13 +3842,13 @@ const Et = {
|
|
|
3844
3842
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3845
3843
|
}
|
|
3846
3844
|
};
|
|
3847
|
-
function
|
|
3845
|
+
function di(e, t) {
|
|
3848
3846
|
if (e) {
|
|
3849
3847
|
const r = document.createElement("style");
|
|
3850
3848
|
r.innerHTML = t, e.appendChild(r);
|
|
3851
3849
|
}
|
|
3852
3850
|
}
|
|
3853
|
-
function
|
|
3851
|
+
function mi(e, t) {
|
|
3854
3852
|
const r = new URL(t);
|
|
3855
3853
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3856
3854
|
const i = document.createElement("style");
|
|
@@ -3859,7 +3857,7 @@ function pi(e, t) {
|
|
|
3859
3857
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3860
3858
|
});
|
|
3861
3859
|
}
|
|
3862
|
-
function
|
|
3860
|
+
function pi(e, t, r) {
|
|
3863
3861
|
if (window.emMessageBus) {
|
|
3864
3862
|
const n = document.createElement("style");
|
|
3865
3863
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3867,17 +3865,17 @@ function bi(e, t, r) {
|
|
|
3867
3865
|
});
|
|
3868
3866
|
}
|
|
3869
3867
|
}
|
|
3870
|
-
function
|
|
3871
|
-
|
|
3868
|
+
function bi(e) {
|
|
3869
|
+
nr(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))}");
|
|
3872
3870
|
}
|
|
3873
|
-
function
|
|
3871
|
+
function gi(e) {
|
|
3874
3872
|
let t = (
|
|
3875
3873
|
/*$_*/
|
|
3876
3874
|
e[5]("errorTitle") + ""
|
|
3877
3875
|
), r;
|
|
3878
3876
|
return {
|
|
3879
3877
|
c() {
|
|
3880
|
-
r =
|
|
3878
|
+
r = M(t);
|
|
3881
3879
|
},
|
|
3882
3880
|
m(n, i) {
|
|
3883
3881
|
Z(n, r, i);
|
|
@@ -3892,14 +3890,14 @@ function vi(e) {
|
|
|
3892
3890
|
}
|
|
3893
3891
|
};
|
|
3894
3892
|
}
|
|
3895
|
-
function
|
|
3893
|
+
function vi(e) {
|
|
3896
3894
|
let t = (
|
|
3897
3895
|
/*$_*/
|
|
3898
3896
|
e[5]("title") + ""
|
|
3899
3897
|
), r;
|
|
3900
3898
|
return {
|
|
3901
3899
|
c() {
|
|
3902
|
-
r =
|
|
3900
|
+
r = M(t);
|
|
3903
3901
|
},
|
|
3904
3902
|
m(n, i) {
|
|
3905
3903
|
Z(n, r, i);
|
|
@@ -3914,14 +3912,14 @@ function yi(e) {
|
|
|
3914
3912
|
}
|
|
3915
3913
|
};
|
|
3916
3914
|
}
|
|
3917
|
-
function
|
|
3915
|
+
function yt(e) {
|
|
3918
3916
|
let t, r = (
|
|
3919
3917
|
/*$_*/
|
|
3920
3918
|
e[5]("smsCodeError") + ""
|
|
3921
3919
|
), n;
|
|
3922
3920
|
return {
|
|
3923
3921
|
c() {
|
|
3924
|
-
t =
|
|
3922
|
+
t = O("p"), n = M(r), A(t, "class", "InvalidInput");
|
|
3925
3923
|
},
|
|
3926
3924
|
m(i, o) {
|
|
3927
3925
|
Z(i, t, o), E(t, n);
|
|
@@ -3936,14 +3934,14 @@ function xt(e) {
|
|
|
3936
3934
|
}
|
|
3937
3935
|
};
|
|
3938
3936
|
}
|
|
3939
|
-
function
|
|
3937
|
+
function Et(e) {
|
|
3940
3938
|
let t, r = (
|
|
3941
3939
|
/*$_*/
|
|
3942
3940
|
e[5]("resendMessage") + ""
|
|
3943
3941
|
), n;
|
|
3944
3942
|
return {
|
|
3945
3943
|
c() {
|
|
3946
|
-
t =
|
|
3944
|
+
t = O("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
|
|
3947
3945
|
},
|
|
3948
3946
|
m(i, o) {
|
|
3949
3947
|
Z(i, t, o), E(t, n);
|
|
@@ -3958,17 +3956,17 @@ function _t(e) {
|
|
|
3958
3956
|
}
|
|
3959
3957
|
};
|
|
3960
3958
|
}
|
|
3961
|
-
function
|
|
3959
|
+
function xt(e) {
|
|
3962
3960
|
let t, r, n = (
|
|
3963
3961
|
/*secondsLeft*/
|
|
3964
3962
|
e[4] < 10 ? "0" : ""
|
|
3965
3963
|
), i, o, s;
|
|
3966
3964
|
return {
|
|
3967
3965
|
c() {
|
|
3968
|
-
t =
|
|
3966
|
+
t = O("span"), r = M("(0:"), i = M(n), o = M(
|
|
3969
3967
|
/*secondsLeft*/
|
|
3970
3968
|
e[4]
|
|
3971
|
-
), s =
|
|
3969
|
+
), s = M(")"), A(t, "class", "SmsVerificationResendTimer");
|
|
3972
3970
|
},
|
|
3973
3971
|
m(a, l) {
|
|
3974
3972
|
Z(a, t, l), E(t, r), E(t, i), E(t, o), E(t, s);
|
|
@@ -3988,7 +3986,7 @@ function St(e) {
|
|
|
3988
3986
|
}
|
|
3989
3987
|
};
|
|
3990
3988
|
}
|
|
3991
|
-
function
|
|
3989
|
+
function yi(e) {
|
|
3992
3990
|
let t, r, n, i, o, s = (
|
|
3993
3991
|
/*$_*/
|
|
3994
3992
|
e[5]("code") + ""
|
|
@@ -4002,25 +4000,25 @@ function Ei(e) {
|
|
|
4002
4000
|
function he(p, C) {
|
|
4003
4001
|
return (
|
|
4004
4002
|
/*isSmsValid*/
|
|
4005
|
-
p[2] ?
|
|
4003
|
+
p[2] ? vi : gi
|
|
4006
4004
|
);
|
|
4007
4005
|
}
|
|
4008
4006
|
let X = he(e), R = X(e), w = !/*isSmsValid*/
|
|
4009
|
-
e[2] &&
|
|
4007
|
+
e[2] && yt(e), P = (
|
|
4010
4008
|
/*timer*/
|
|
4011
|
-
e[3] &&
|
|
4009
|
+
e[3] && Et(e)
|
|
4012
4010
|
), f = (
|
|
4013
4011
|
/*timer*/
|
|
4014
|
-
e[3] &&
|
|
4012
|
+
e[3] && xt(e)
|
|
4015
4013
|
);
|
|
4016
4014
|
return {
|
|
4017
4015
|
c() {
|
|
4018
|
-
t =
|
|
4016
|
+
t = O("div"), r = O("h3"), R.c(), n = z(), i = O("div"), o = O("label"), a = M(s), l = M(":"), u = O("span"), u.textContent = "*", h = z(), c = O("input"), d = z(), w && w.c(), y = z(), P && P.c(), _ = z(), T = O("button"), L = M(H), B = z(), S = O("button"), F = M(N), V = z(), f && f.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(c, "type", "text"), A(c, "id", "SmsCode"), A(c, "inputmode", "numeric"), A(c, "pattern", "[0-9]*"), A(c, "maxlength", "6"), A(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4019
4017
|
e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
|
|
4020
4018
|
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
4021
4019
|
},
|
|
4022
4020
|
m(p, C) {
|
|
4023
|
-
Z(p, t, C), E(t, r), R.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, c),
|
|
4021
|
+
Z(p, t, C), E(t, r), R.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, c), rt(
|
|
4024
4022
|
c,
|
|
4025
4023
|
/*smsCode*/
|
|
4026
4024
|
e[1]
|
|
@@ -4056,20 +4054,20 @@ function Ei(e) {
|
|
|
4056
4054
|
32 && s !== (s = /*$_*/
|
|
4057
4055
|
p[5]("code") + "") && G(a, s), C & /*smsCode*/
|
|
4058
4056
|
2 && c.value !== /*smsCode*/
|
|
4059
|
-
p[1] &&
|
|
4057
|
+
p[1] && rt(
|
|
4060
4058
|
c,
|
|
4061
4059
|
/*smsCode*/
|
|
4062
4060
|
p[1]
|
|
4063
4061
|
), /*isSmsValid*/
|
|
4064
|
-
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w =
|
|
4062
|
+
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = yt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
|
|
4065
4063
|
4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4066
4064
|
p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
|
|
4067
|
-
p[3] ? P ? P.p(p, C) : (P =
|
|
4065
|
+
p[3] ? P ? P.p(p, C) : (P = Et(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
|
|
4068
4066
|
32 && H !== (H = /*$_*/
|
|
4069
4067
|
p[5]("activate") + "") && G(L, H), C & /*$_*/
|
|
4070
4068
|
32 && N !== (N = /*$_*/
|
|
4071
4069
|
p[5]("resend") + "") && G(F, N), /*timer*/
|
|
4072
|
-
p[3] ? f ? f.p(p, C) : (f =
|
|
4070
|
+
p[3] ? f ? f.p(p, C) : (f = xt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), C & /*timer*/
|
|
4073
4071
|
8 && (S.disabled = /*timer*/
|
|
4074
4072
|
p[3]);
|
|
4075
4073
|
},
|
|
@@ -4080,23 +4078,23 @@ function Ei(e) {
|
|
|
4080
4078
|
}
|
|
4081
4079
|
};
|
|
4082
4080
|
}
|
|
4083
|
-
function
|
|
4081
|
+
function Ei(e, t, r) {
|
|
4084
4082
|
let n;
|
|
4085
|
-
|
|
4083
|
+
rr(e, ci, (f) => r(5, n = f));
|
|
4086
4084
|
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, { mbsource: u } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, y = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, S = 60 - Math.floor(B);
|
|
4087
4085
|
const N = { numeric: /^[0-9]{0,6}$/ };
|
|
4088
|
-
|
|
4086
|
+
fi({ withLocale: "en", translations: {} });
|
|
4089
4087
|
const F = () => {
|
|
4090
4088
|
fetch(d).then((p) => p.json()).then((p) => {
|
|
4091
4089
|
Object.keys(p).forEach((C) => {
|
|
4092
|
-
|
|
4090
|
+
gt(C, p[C]);
|
|
4093
4091
|
});
|
|
4094
4092
|
}).catch((p) => {
|
|
4095
4093
|
console.log(p);
|
|
4096
4094
|
});
|
|
4097
4095
|
};
|
|
4098
|
-
Object.keys(
|
|
4099
|
-
|
|
4096
|
+
Object.keys(vt).forEach((f) => {
|
|
4097
|
+
gt(f, vt[f]);
|
|
4100
4098
|
});
|
|
4101
4099
|
const V = () => be(this, null, function* () {
|
|
4102
4100
|
try {
|
|
@@ -4155,7 +4153,7 @@ function xi(e, t, r) {
|
|
|
4155
4153
|
}, X = (f) => {
|
|
4156
4154
|
!N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
|
|
4157
4155
|
};
|
|
4158
|
-
|
|
4156
|
+
lr(() => {
|
|
4159
4157
|
if (!s || !l) {
|
|
4160
4158
|
let f = JSON.parse(localStorage.getItem("playerData"));
|
|
4161
4159
|
r(10, s = f.playerid), r(11, l = f.number);
|
|
@@ -4177,9 +4175,9 @@ function xi(e, t, r) {
|
|
|
4177
4175
|
}, e.$$.update = () => {
|
|
4178
4176
|
e.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
4179
4177
|
5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4180
|
-
32769 && h && H &&
|
|
4181
|
-
65537 && c && H &&
|
|
4182
|
-
16385 && u && H &&
|
|
4178
|
+
32769 && h && H && di(H, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4179
|
+
65537 && c && H && mi(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4180
|
+
16385 && u && H && pi(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4183
4181
|
131072 && d && F();
|
|
4184
4182
|
}, [
|
|
4185
4183
|
H,
|
|
@@ -4205,14 +4203,14 @@ function xi(e, t, r) {
|
|
|
4205
4203
|
P
|
|
4206
4204
|
];
|
|
4207
4205
|
}
|
|
4208
|
-
class
|
|
4206
|
+
class xi extends xr {
|
|
4209
4207
|
constructor(t) {
|
|
4210
|
-
super(),
|
|
4208
|
+
super(), yr(
|
|
4211
4209
|
this,
|
|
4212
4210
|
t,
|
|
4213
|
-
xi,
|
|
4214
4211
|
Ei,
|
|
4215
|
-
|
|
4212
|
+
yi,
|
|
4213
|
+
St,
|
|
4216
4214
|
{
|
|
4217
4215
|
endpoint: 12,
|
|
4218
4216
|
tokenid: 9,
|
|
@@ -4224,7 +4222,7 @@ class _i extends Sr {
|
|
|
4224
4222
|
clientstylingurl: 16,
|
|
4225
4223
|
translationurl: 17
|
|
4226
4224
|
},
|
|
4227
|
-
|
|
4225
|
+
bi
|
|
4228
4226
|
);
|
|
4229
4227
|
}
|
|
4230
4228
|
get endpoint() {
|
|
@@ -4282,7 +4280,7 @@ class _i extends Sr {
|
|
|
4282
4280
|
this.$$set({ translationurl: t }), U();
|
|
4283
4281
|
}
|
|
4284
4282
|
}
|
|
4285
|
-
|
|
4283
|
+
Er(xi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4286
4284
|
export {
|
|
4287
|
-
|
|
4285
|
+
xi as default
|
|
4288
4286
|
};
|