@everymatrix/general-player-sms-verification-form 1.77.18 → 1.77.20
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-DJgpNzWV.cjs +16 -0
- package/components/{GeneralPlayerSmsVerificationForm-DrZLqUeL.js → GeneralPlayerSmsVerificationForm-DPbzErB9.js} +695 -701
- package/components/{GeneralPlayerSmsVerificationForm-68RetrDV.js → GeneralPlayerSmsVerificationForm-kkF5Eet4.js} +683 -689
- 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-CzHUxHp5.cjs +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function U() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function bt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ne(e) {
|
|
10
|
+
e.forEach(bt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function gt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Vt(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function vt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function Et(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Xt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(vt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function E(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function zt(e, t, r) {
|
|
37
|
+
const n = Wt(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = O("style");
|
|
40
|
+
i.id = t, i.textContent = r, Zt(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Wt(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,45 +50,45 @@ function Jt(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function Zt(e, t) {
|
|
54
|
+
return E(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function W(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function k(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function O(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
69
|
function M(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function X() {
|
|
73
73
|
return M(" ");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function pe(e, t, r, n) {
|
|
76
76
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function B(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Jt(e) {
|
|
82
82
|
return Array.from(e.childNodes);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function F(e, t) {
|
|
85
85
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
86
86
|
t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Qe(e, t) {
|
|
89
89
|
e.value = t ?? "";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Qt(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -97,87 +97,87 @@ function Yt(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let fe;
|
|
101
|
+
function ce(e) {
|
|
102
|
+
fe = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
104
|
+
function qt() {
|
|
105
|
+
if (!fe)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return fe;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function Yt(e) {
|
|
110
|
+
qt().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
112
|
+
const q = [], Me = [];
|
|
113
|
+
let Y = [];
|
|
114
|
+
const qe = [], Kt = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Le = !1;
|
|
116
|
+
function er() {
|
|
117
|
+
Le || (Le = !0, Kt.then($));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function Re(e) {
|
|
120
|
+
Y.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
122
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
123
|
+
let J = 0;
|
|
124
124
|
function $() {
|
|
125
|
-
if (
|
|
125
|
+
if (J !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = fe;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t =
|
|
132
|
-
|
|
130
|
+
for (; J < q.length; ) {
|
|
131
|
+
const t = q[J];
|
|
132
|
+
J++, ce(t), tr(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw q.length = 0, J = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
141
|
-
|
|
137
|
+
for (ce(null), q.length = 0, J = 0; Me.length; )
|
|
138
|
+
Me.pop()();
|
|
139
|
+
for (let t = 0; t < Y.length; t += 1) {
|
|
140
|
+
const r = Y[t];
|
|
141
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
} while (
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
Y.length = 0;
|
|
144
|
+
} while (q.length);
|
|
145
|
+
for (; qe.length; )
|
|
146
|
+
qe.pop()();
|
|
147
|
+
Le = !1, Ae.clear(), ce(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function tr(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), ne(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function rr(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
|
-
|
|
158
|
+
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const nr = /* @__PURE__ */ new Set();
|
|
161
|
+
function ir(e, t) {
|
|
162
|
+
e && e.i && (nr.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function or(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const o = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Re(() => {
|
|
167
|
+
const o = e.$$.on_mount.map(bt).filter(ze);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Re);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function sr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (rr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (
|
|
175
|
+
function ar(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (q.push(e), er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const h =
|
|
180
|
-
|
|
178
|
+
function ur(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
179
|
+
const h = fe;
|
|
180
|
+
ce(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
@@ -185,7 +185,7 @@ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
185
185
|
props: o,
|
|
186
186
|
update: U,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: Je(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,7 +194,7 @@ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: Je(),
|
|
198
198
|
dirty: s,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || h.$$.root
|
|
@@ -202,20 +202,20 @@ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
202
202
|
a && a(u.root);
|
|
203
203
|
let l = !1;
|
|
204
204
|
if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
|
|
205
|
-
const
|
|
206
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
207
|
-
}) : [], u.update(), l = !0,
|
|
205
|
+
const y = g.length ? g[0] : d;
|
|
206
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && ar(e, c)), d;
|
|
207
|
+
}) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const c =
|
|
210
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
209
|
+
const c = Jt(t.target);
|
|
210
|
+
u.fragment && u.fragment.l(c), c.forEach(k);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && ir(e.$$.fragment), or(e, t.target, t.anchor), $();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
ce(h);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let yt;
|
|
218
|
+
typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -257,29 +257,29 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
257
257
|
let o;
|
|
258
258
|
return {
|
|
259
259
|
c: function() {
|
|
260
|
-
o =
|
|
260
|
+
o = O("slot"), i !== "default" && B(o, "name", i);
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* @param {HTMLElement} target
|
|
264
264
|
* @param {HTMLElement} [anchor]
|
|
265
265
|
*/
|
|
266
266
|
m: function(h, u) {
|
|
267
|
-
|
|
267
|
+
W(h, o, u);
|
|
268
268
|
},
|
|
269
269
|
d: function(h) {
|
|
270
|
-
h &&
|
|
270
|
+
h && k(o);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = Qt(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
281
281
|
const o = this.$$g_p(i.name);
|
|
282
|
-
o in this.$$d || (this.$$d[o] =
|
|
282
|
+
o in this.$$d || (this.$$d[o] = ge(o, i.value, this.$$p_d, "toProp"));
|
|
283
283
|
}
|
|
284
284
|
for (const i in this.$$p_d)
|
|
285
285
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -297,7 +297,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
297
297
|
this.$$r = !0;
|
|
298
298
|
for (const i in this.$$p_d)
|
|
299
299
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
300
|
-
const o =
|
|
300
|
+
const o = ge(
|
|
301
301
|
i,
|
|
302
302
|
this.$$d[i],
|
|
303
303
|
this.$$p_d,
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
319
319
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
320
320
|
// and setting attributes through setAttribute etc, this is helpful
|
|
321
321
|
attributeChangedCallback(e, t, r) {
|
|
322
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
322
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
323
323
|
}
|
|
324
324
|
disconnectedCallback() {
|
|
325
325
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
332
332
|
) || e;
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
|
-
function
|
|
335
|
+
function ge(e, t, r, n) {
|
|
336
336
|
const i = r[e]?.type;
|
|
337
337
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
338
338
|
return t;
|
|
@@ -361,8 +361,8 @@ function ve(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
let a = class extends
|
|
364
|
+
function lr(e, t, r, n, i, o) {
|
|
365
|
+
let a = class extends yt {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -378,7 +378,7 @@ function cr(e, t, r, n, i, o) {
|
|
|
378
378
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
379
379
|
},
|
|
380
380
|
set(h) {
|
|
381
|
-
h =
|
|
381
|
+
h = ge(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}), n.forEach((s) => {
|
|
@@ -390,7 +390,7 @@ function cr(e, t, r, n, i, o) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
a, a;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class hr {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class fr {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
sr(this, 1), this.$destroy = U;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,7 +418,7 @@ class fr {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
421
|
+
if (!ze(r))
|
|
422
422
|
return U;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
@@ -431,29 +431,29 @@ class fr {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !Vt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
439
|
-
const
|
|
440
|
-
function
|
|
437
|
+
const cr = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
|
|
439
|
+
const Q = [];
|
|
440
|
+
function fr(e, t) {
|
|
441
441
|
return {
|
|
442
|
-
subscribe:
|
|
442
|
+
subscribe: _e(e, t).subscribe
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function _e(e, t = U) {
|
|
446
446
|
let r;
|
|
447
447
|
const n = /* @__PURE__ */ new Set();
|
|
448
448
|
function i(s) {
|
|
449
|
-
if (
|
|
450
|
-
const h = !
|
|
449
|
+
if (gt(e, s) && (e = s, r)) {
|
|
450
|
+
const h = !Q.length;
|
|
451
451
|
for (const u of n)
|
|
452
|
-
u[1](),
|
|
452
|
+
u[1](), Q.push(u, e);
|
|
453
453
|
if (h) {
|
|
454
|
-
for (let u = 0; u <
|
|
455
|
-
|
|
456
|
-
|
|
454
|
+
for (let u = 0; u < Q.length; u += 2)
|
|
455
|
+
Q[u][0](Q[u + 1]);
|
|
456
|
+
Q.length = 0;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
@@ -468,12 +468,12 @@ function Te(e, t = U) {
|
|
|
468
468
|
}
|
|
469
469
|
return { set: i, update: o, subscribe: a };
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function ie(e, t, r) {
|
|
472
472
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
473
473
|
if (!i.every(Boolean))
|
|
474
474
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
475
475
|
const o = t.length < 2;
|
|
476
|
-
return
|
|
476
|
+
return fr(r, (a, s) => {
|
|
477
477
|
let h = !1;
|
|
478
478
|
const u = [];
|
|
479
479
|
let l = 0, c = U;
|
|
@@ -481,11 +481,11 @@ function oe(e, t, r) {
|
|
|
481
481
|
if (l)
|
|
482
482
|
return;
|
|
483
483
|
c();
|
|
484
|
-
const
|
|
485
|
-
o ? a(
|
|
484
|
+
const y = t(n ? u[0] : u, a, s);
|
|
485
|
+
o ? a(y) : c = ze(y) ? y : U;
|
|
486
486
|
}, g = i.map(
|
|
487
|
-
(
|
|
488
|
-
|
|
487
|
+
(y, _) => vt(
|
|
488
|
+
y,
|
|
489
489
|
(T) => {
|
|
490
490
|
u[_] = T, l &= ~(1 << _), h && d();
|
|
491
491
|
},
|
|
@@ -495,112 +495,126 @@ function oe(e, t, r) {
|
|
|
495
495
|
)
|
|
496
496
|
);
|
|
497
497
|
return h = !0, d(), function() {
|
|
498
|
-
|
|
498
|
+
ne(g), c(), h = !1;
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function dr(e) {
|
|
503
503
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
return
|
|
505
|
+
var mr = function(t) {
|
|
506
|
+
return pr(t) && !br(t);
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function pr(e) {
|
|
509
509
|
return !!e && typeof e == "object";
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function br(e) {
|
|
512
512
|
var t = Object.prototype.toString.call(e);
|
|
513
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
513
|
+
return t === "[object RegExp]" || t === "[object Date]" || yr(e);
|
|
514
514
|
}
|
|
515
|
-
var
|
|
516
|
-
function
|
|
517
|
-
return e.$$typeof ===
|
|
515
|
+
var gr = typeof Symbol == "function" && Symbol.for, vr = gr ? Symbol.for("react.element") : 60103;
|
|
516
|
+
function yr(e) {
|
|
517
|
+
return e.$$typeof === vr;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Er(e) {
|
|
520
520
|
return Array.isArray(e) ? [] : {};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
522
|
+
function de(e, t) {
|
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(Er(e), e, t) : e;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function xr(e, t, r) {
|
|
526
526
|
return e.concat(t).map(function(n) {
|
|
527
|
-
return
|
|
527
|
+
return de(n, r);
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function _r(e, t) {
|
|
531
531
|
if (!t.customMerge)
|
|
532
|
-
return
|
|
532
|
+
return K;
|
|
533
533
|
var r = t.customMerge(e);
|
|
534
|
-
return typeof r == "function" ? r :
|
|
534
|
+
return typeof r == "function" ? r : K;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Sr(e) {
|
|
537
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
538
538
|
return Object.propertyIsEnumerable.call(e, t);
|
|
539
539
|
}) : [];
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
return Object.keys(e).concat(
|
|
541
|
+
function Ye(e) {
|
|
542
|
+
return Object.keys(e).concat(Sr(e));
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Et(e, t) {
|
|
545
545
|
try {
|
|
546
546
|
return t in e;
|
|
547
547
|
} catch {
|
|
548
548
|
return !1;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
551
|
+
function Tr(e, t) {
|
|
552
|
+
return Et(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Hr(e, t, r) {
|
|
555
555
|
var n = {};
|
|
556
|
-
return r.isMergeableObject(e) &&
|
|
557
|
-
n[i] =
|
|
558
|
-
}),
|
|
559
|
-
|
|
556
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
557
|
+
n[i] = de(e[i], r);
|
|
558
|
+
}), Ye(t).forEach(function(i) {
|
|
559
|
+
Tr(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = _r(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
560
560
|
}), n;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
562
|
+
function K(e, t, r) {
|
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xr, r.isMergeableObject = r.isMergeableObject || mr, r.cloneUnlessOtherwiseSpecified = de;
|
|
564
564
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
565
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
565
|
+
return o ? n ? r.arrayMerge(e, t, r) : Hr(e, t, r) : de(t, r);
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
K.all = function(t, r) {
|
|
568
568
|
if (!Array.isArray(t))
|
|
569
569
|
throw new Error("first argument should be an array");
|
|
570
570
|
return t.reduce(function(n, i) {
|
|
571
|
-
return
|
|
571
|
+
return K(n, i, r);
|
|
572
572
|
}, {});
|
|
573
573
|
};
|
|
574
|
-
var
|
|
575
|
-
const
|
|
576
|
-
|
|
577
|
-
|
|
574
|
+
var Br = K, Ar = Br;
|
|
575
|
+
const wr = /* @__PURE__ */ dr(Ar);
|
|
576
|
+
/*! *****************************************************************************
|
|
577
|
+
Copyright (c) Microsoft Corporation.
|
|
578
|
+
|
|
579
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
580
|
+
purpose with or without fee is hereby granted.
|
|
581
|
+
|
|
582
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
583
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
584
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
585
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
586
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
587
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
588
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
589
|
+
***************************************************************************** */
|
|
590
|
+
var $e = function(e, t) {
|
|
591
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
578
592
|
r.__proto__ = n;
|
|
579
593
|
} || function(r, n) {
|
|
580
594
|
for (var i in n)
|
|
581
595
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
582
|
-
},
|
|
596
|
+
}, $e(e, t);
|
|
583
597
|
};
|
|
584
|
-
function
|
|
598
|
+
function Se(e, t) {
|
|
585
599
|
if (typeof t != "function" && t !== null)
|
|
586
600
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
587
|
-
|
|
601
|
+
$e(e, t);
|
|
588
602
|
function r() {
|
|
589
603
|
this.constructor = e;
|
|
590
604
|
}
|
|
591
605
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
592
606
|
}
|
|
593
|
-
var
|
|
594
|
-
return
|
|
607
|
+
var v = function() {
|
|
608
|
+
return v = Object.assign || function(t) {
|
|
595
609
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
596
610
|
r = arguments[n];
|
|
597
611
|
for (var o in r)
|
|
598
612
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
599
613
|
}
|
|
600
614
|
return t;
|
|
601
|
-
},
|
|
615
|
+
}, v.apply(this, arguments);
|
|
602
616
|
};
|
|
603
|
-
function
|
|
617
|
+
function Pr(e, t) {
|
|
604
618
|
var r = {};
|
|
605
619
|
for (var n in e)
|
|
606
620
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -609,43 +623,43 @@ function Ir(e, t) {
|
|
|
609
623
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
610
624
|
return r;
|
|
611
625
|
}
|
|
612
|
-
function
|
|
613
|
-
if (
|
|
626
|
+
function we(e, t, r) {
|
|
627
|
+
if (arguments.length === 2)
|
|
614
628
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
615
629
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
616
|
-
return e.concat(o ||
|
|
630
|
+
return e.concat(o || t);
|
|
617
631
|
}
|
|
618
|
-
function
|
|
619
|
-
var r = t && t.cache ? t.cache :
|
|
632
|
+
function Pe(e, t) {
|
|
633
|
+
var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : Nr;
|
|
620
634
|
return i(e, {
|
|
621
635
|
cache: r,
|
|
622
636
|
serializer: n
|
|
623
637
|
});
|
|
624
638
|
}
|
|
625
|
-
function
|
|
639
|
+
function Cr(e) {
|
|
626
640
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
627
641
|
}
|
|
628
|
-
function
|
|
629
|
-
var i =
|
|
642
|
+
function Ir(e, t, r, n) {
|
|
643
|
+
var i = Cr(n) ? n : r(n), o = t.get(i);
|
|
630
644
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
631
645
|
}
|
|
632
|
-
function
|
|
646
|
+
function xt(e, t, r) {
|
|
633
647
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
634
648
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
635
649
|
}
|
|
636
|
-
function
|
|
650
|
+
function _t(e, t, r, n, i) {
|
|
637
651
|
return r.bind(t, e, n, i);
|
|
638
652
|
}
|
|
639
|
-
function
|
|
640
|
-
var r = e.length === 1 ?
|
|
641
|
-
return
|
|
653
|
+
function Nr(e, t) {
|
|
654
|
+
var r = e.length === 1 ? Ir : xt;
|
|
655
|
+
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
642
656
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
657
|
+
function Or(e, t) {
|
|
658
|
+
return _t(e, this, xt, t.cache.create(), t.serializer);
|
|
645
659
|
}
|
|
646
|
-
var
|
|
660
|
+
var Mr = function() {
|
|
647
661
|
return JSON.stringify(arguments);
|
|
648
|
-
},
|
|
662
|
+
}, Lr = (
|
|
649
663
|
/** @class */
|
|
650
664
|
function() {
|
|
651
665
|
function e() {
|
|
@@ -657,71 +671,61 @@ var Rr = function() {
|
|
|
657
671
|
this.cache[t] = r;
|
|
658
672
|
}, e;
|
|
659
673
|
}()
|
|
660
|
-
),
|
|
674
|
+
), Rr = {
|
|
661
675
|
create: function() {
|
|
662
|
-
return new
|
|
676
|
+
return new Lr();
|
|
663
677
|
}
|
|
664
|
-
},
|
|
665
|
-
variadic:
|
|
666
|
-
},
|
|
667
|
-
return _e = Object.assign || function(t) {
|
|
668
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
669
|
-
r = arguments[n];
|
|
670
|
-
for (var o in r)
|
|
671
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
672
|
-
}
|
|
673
|
-
return t;
|
|
674
|
-
}, _e.apply(this, arguments);
|
|
675
|
-
};
|
|
676
|
-
var m;
|
|
678
|
+
}, Ce = {
|
|
679
|
+
variadic: Or
|
|
680
|
+
}, m;
|
|
677
681
|
(function(e) {
|
|
678
682
|
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";
|
|
679
683
|
})(m || (m = {}));
|
|
680
|
-
var
|
|
684
|
+
var x;
|
|
681
685
|
(function(e) {
|
|
682
686
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
683
|
-
})(
|
|
684
|
-
var
|
|
687
|
+
})(x || (x = {}));
|
|
688
|
+
var ee;
|
|
685
689
|
(function(e) {
|
|
686
690
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
687
|
-
})(
|
|
688
|
-
function
|
|
689
|
-
return e.type ===
|
|
691
|
+
})(ee || (ee = {}));
|
|
692
|
+
function Ke(e) {
|
|
693
|
+
return e.type === x.literal;
|
|
694
|
+
}
|
|
695
|
+
function $r(e) {
|
|
696
|
+
return e.type === x.argument;
|
|
697
|
+
}
|
|
698
|
+
function St(e) {
|
|
699
|
+
return e.type === x.number;
|
|
690
700
|
}
|
|
691
|
-
function
|
|
692
|
-
return e.type ===
|
|
701
|
+
function Tt(e) {
|
|
702
|
+
return e.type === x.date;
|
|
693
703
|
}
|
|
694
704
|
function Ht(e) {
|
|
695
|
-
return e.type ===
|
|
705
|
+
return e.type === x.time;
|
|
706
|
+
}
|
|
707
|
+
function Bt(e) {
|
|
708
|
+
return e.type === x.select;
|
|
696
709
|
}
|
|
697
710
|
function At(e) {
|
|
698
|
-
return e.type ===
|
|
711
|
+
return e.type === x.plural;
|
|
699
712
|
}
|
|
700
|
-
function
|
|
701
|
-
return e.type ===
|
|
713
|
+
function Ur(e) {
|
|
714
|
+
return e.type === x.pound;
|
|
702
715
|
}
|
|
703
716
|
function wt(e) {
|
|
704
|
-
return e.type ===
|
|
717
|
+
return e.type === x.tag;
|
|
705
718
|
}
|
|
706
719
|
function Pt(e) {
|
|
707
|
-
return e.type ===
|
|
720
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
708
721
|
}
|
|
709
|
-
function
|
|
710
|
-
return e.type ===
|
|
711
|
-
}
|
|
712
|
-
function Ct(e) {
|
|
713
|
-
return e.type === E.tag;
|
|
714
|
-
}
|
|
715
|
-
function It(e) {
|
|
716
|
-
return !!(e && typeof e == "object" && e.type === te.number);
|
|
717
|
-
}
|
|
718
|
-
function Fe(e) {
|
|
719
|
-
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
722
|
+
function Ue(e) {
|
|
723
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
720
724
|
}
|
|
721
|
-
var
|
|
722
|
-
function
|
|
725
|
+
var Ct = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
|
|
726
|
+
function Fr(e) {
|
|
723
727
|
var t = {};
|
|
724
|
-
return e.replace(
|
|
728
|
+
return e.replace(Dr, function(r) {
|
|
725
729
|
var n = r.length;
|
|
726
730
|
switch (r[0]) {
|
|
727
731
|
case "G":
|
|
@@ -810,21 +814,11 @@ function kr(e) {
|
|
|
810
814
|
return "";
|
|
811
815
|
}), t;
|
|
812
816
|
}
|
|
813
|
-
var
|
|
814
|
-
|
|
815
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
816
|
-
r = arguments[n];
|
|
817
|
-
for (var o in r)
|
|
818
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
819
|
-
}
|
|
820
|
-
return t;
|
|
821
|
-
}, S.apply(this, arguments);
|
|
822
|
-
};
|
|
823
|
-
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
824
|
-
function Vr(e) {
|
|
817
|
+
var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
818
|
+
function kr(e) {
|
|
825
819
|
if (e.length === 0)
|
|
826
820
|
throw new Error("Number skeleton cannot be empty");
|
|
827
|
-
for (var t = e.split(
|
|
821
|
+
for (var t = e.split(Gr).filter(function(d) {
|
|
828
822
|
return d.length > 0;
|
|
829
823
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
830
824
|
var o = i[n], a = o.split("/");
|
|
@@ -839,17 +833,17 @@ function Vr(e) {
|
|
|
839
833
|
}
|
|
840
834
|
return r;
|
|
841
835
|
}
|
|
842
|
-
function
|
|
836
|
+
function jr(e) {
|
|
843
837
|
return e.replace(/^(.*?)-/, "");
|
|
844
838
|
}
|
|
845
|
-
var
|
|
846
|
-
function
|
|
839
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, It = /^(@+)?(\+|#+)?[rs]?$/g, Vr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
|
|
840
|
+
function tt(e) {
|
|
847
841
|
var t = {};
|
|
848
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
842
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(It, function(r, n, i) {
|
|
849
843
|
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)), "";
|
|
850
844
|
}), t;
|
|
851
845
|
}
|
|
852
|
-
function
|
|
846
|
+
function Ot(e) {
|
|
853
847
|
switch (e) {
|
|
854
848
|
case "sign-auto":
|
|
855
849
|
return {
|
|
@@ -889,7 +883,7 @@ function Lt(e) {
|
|
|
889
883
|
};
|
|
890
884
|
}
|
|
891
885
|
}
|
|
892
|
-
function
|
|
886
|
+
function Xr(e) {
|
|
893
887
|
var t;
|
|
894
888
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
895
889
|
notation: "engineering"
|
|
@@ -897,17 +891,17 @@ function Wr(e) {
|
|
|
897
891
|
notation: "scientific"
|
|
898
892
|
}, e = e.slice(1)), t) {
|
|
899
893
|
var r = e.slice(0, 2);
|
|
900
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
894
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
|
|
901
895
|
throw new Error("Malformed concise eng/scientific notation");
|
|
902
896
|
t.minimumIntegerDigits = e.length;
|
|
903
897
|
}
|
|
904
898
|
return t;
|
|
905
899
|
}
|
|
906
|
-
function
|
|
907
|
-
var t = {}, r =
|
|
900
|
+
function rt(e) {
|
|
901
|
+
var t = {}, r = Ot(e);
|
|
908
902
|
return r || t;
|
|
909
903
|
}
|
|
910
|
-
function
|
|
904
|
+
function zr(e) {
|
|
911
905
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
912
906
|
var i = n[r];
|
|
913
907
|
switch (i.stem) {
|
|
@@ -931,7 +925,7 @@ function Zr(e) {
|
|
|
931
925
|
continue;
|
|
932
926
|
case "measure-unit":
|
|
933
927
|
case "unit":
|
|
934
|
-
t.style = "unit", t.unit =
|
|
928
|
+
t.style = "unit", t.unit = jr(i.options[0]);
|
|
935
929
|
continue;
|
|
936
930
|
case "compact-short":
|
|
937
931
|
case "K":
|
|
@@ -942,13 +936,13 @@ function Zr(e) {
|
|
|
942
936
|
t.notation = "compact", t.compactDisplay = "long";
|
|
943
937
|
continue;
|
|
944
938
|
case "scientific":
|
|
945
|
-
t =
|
|
946
|
-
return
|
|
939
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
940
|
+
return v(v({}, h), rt(u));
|
|
947
941
|
}, {}));
|
|
948
942
|
continue;
|
|
949
943
|
case "engineering":
|
|
950
|
-
t =
|
|
951
|
-
return
|
|
944
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
945
|
+
return v(v({}, h), rt(u));
|
|
952
946
|
}, {}));
|
|
953
947
|
continue;
|
|
954
948
|
case "notation-simple":
|
|
@@ -993,7 +987,7 @@ function Zr(e) {
|
|
|
993
987
|
case "integer-width":
|
|
994
988
|
if (i.options.length > 1)
|
|
995
989
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
996
|
-
i.options[0].replace(
|
|
990
|
+
i.options[0].replace(Vr, function(h, u, l, c, d, g) {
|
|
997
991
|
if (u)
|
|
998
992
|
t.minimumIntegerDigits = l.length;
|
|
999
993
|
else {
|
|
@@ -1006,32 +1000,32 @@ function Zr(e) {
|
|
|
1006
1000
|
});
|
|
1007
1001
|
continue;
|
|
1008
1002
|
}
|
|
1009
|
-
if (
|
|
1003
|
+
if (Nt.test(i.stem)) {
|
|
1010
1004
|
t.minimumIntegerDigits = i.stem.length;
|
|
1011
1005
|
continue;
|
|
1012
1006
|
}
|
|
1013
|
-
if (
|
|
1007
|
+
if (et.test(i.stem)) {
|
|
1014
1008
|
if (i.options.length > 1)
|
|
1015
1009
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1016
|
-
i.stem.replace(
|
|
1010
|
+
i.stem.replace(et, function(h, u, l, c, d, g) {
|
|
1017
1011
|
return l === "*" ? 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), "";
|
|
1018
1012
|
});
|
|
1019
1013
|
var o = i.options[0];
|
|
1020
|
-
o === "w" ? t =
|
|
1014
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), tt(o)));
|
|
1021
1015
|
continue;
|
|
1022
1016
|
}
|
|
1023
|
-
if (
|
|
1024
|
-
t =
|
|
1017
|
+
if (It.test(i.stem)) {
|
|
1018
|
+
t = v(v({}, t), tt(i.stem));
|
|
1025
1019
|
continue;
|
|
1026
1020
|
}
|
|
1027
|
-
var a =
|
|
1028
|
-
a && (t =
|
|
1029
|
-
var s =
|
|
1030
|
-
s && (t =
|
|
1021
|
+
var a = Ot(i.stem);
|
|
1022
|
+
a && (t = v(v({}, t), a));
|
|
1023
|
+
var s = Xr(i.stem);
|
|
1024
|
+
s && (t = v(v({}, t), s));
|
|
1031
1025
|
}
|
|
1032
1026
|
return t;
|
|
1033
1027
|
}
|
|
1034
|
-
var
|
|
1028
|
+
var be = {
|
|
1035
1029
|
"001": [
|
|
1036
1030
|
"H",
|
|
1037
1031
|
"h"
|
|
@@ -2446,13 +2440,13 @@ var ge = {
|
|
|
2446
2440
|
"h"
|
|
2447
2441
|
]
|
|
2448
2442
|
};
|
|
2449
|
-
function
|
|
2443
|
+
function Wr(e, t) {
|
|
2450
2444
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2451
2445
|
var i = e.charAt(n);
|
|
2452
2446
|
if (i === "j") {
|
|
2453
2447
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2454
2448
|
o++, n++;
|
|
2455
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2449
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Zr(t);
|
|
2456
2450
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2457
2451
|
r += h;
|
|
2458
2452
|
for (; a-- > 0; )
|
|
@@ -2462,7 +2456,7 @@ function Jr(e, t) {
|
|
|
2462
2456
|
}
|
|
2463
2457
|
return r;
|
|
2464
2458
|
}
|
|
2465
|
-
function
|
|
2459
|
+
function Zr(e) {
|
|
2466
2460
|
var t = e.hourCycle;
|
|
2467
2461
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2468
2462
|
e.hourCycles && // @ts-ignore
|
|
@@ -2481,23 +2475,23 @@ function Qr(e) {
|
|
|
2481
2475
|
}
|
|
2482
2476
|
var r = e.language, n;
|
|
2483
2477
|
r !== "root" && (n = e.maximize().region);
|
|
2484
|
-
var i =
|
|
2478
|
+
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
2485
2479
|
return i[0];
|
|
2486
2480
|
}
|
|
2487
|
-
var
|
|
2481
|
+
var Ie, Jr = new RegExp("^".concat(Ct.source, "*")), Qr = new RegExp("".concat(Ct.source, "*$"));
|
|
2488
2482
|
function b(e, t) {
|
|
2489
2483
|
return { start: e, end: t };
|
|
2490
2484
|
}
|
|
2491
|
-
var
|
|
2485
|
+
var qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, on = nn ? Number.isSafeInteger : function(e) {
|
|
2492
2486
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2493
|
-
},
|
|
2487
|
+
}, De = !0;
|
|
2494
2488
|
try {
|
|
2495
|
-
var
|
|
2496
|
-
|
|
2489
|
+
var sn = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2490
|
+
De = ((Ie = sn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
|
|
2497
2491
|
} catch {
|
|
2498
|
-
|
|
2492
|
+
De = !1;
|
|
2499
2493
|
}
|
|
2500
|
-
var
|
|
2494
|
+
var nt = qr ? (
|
|
2501
2495
|
// Native
|
|
2502
2496
|
function(t, r, n) {
|
|
2503
2497
|
return t.startsWith(r, n);
|
|
@@ -2507,7 +2501,7 @@ var ot = Kr ? (
|
|
|
2507
2501
|
function(t, r, n) {
|
|
2508
2502
|
return t.slice(n, n + r.length) === r;
|
|
2509
2503
|
}
|
|
2510
|
-
),
|
|
2504
|
+
), Fe = Yr ? String.fromCodePoint : (
|
|
2511
2505
|
// IE11
|
|
2512
2506
|
function() {
|
|
2513
2507
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2519,9 +2513,9 @@ var ot = Kr ? (
|
|
|
2519
2513
|
}
|
|
2520
2514
|
return n;
|
|
2521
2515
|
}
|
|
2522
|
-
),
|
|
2516
|
+
), it = (
|
|
2523
2517
|
// native
|
|
2524
|
-
|
|
2518
|
+
Kr ? Object.fromEntries : (
|
|
2525
2519
|
// Ponyfill
|
|
2526
2520
|
function(t) {
|
|
2527
2521
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2531,7 +2525,7 @@ var ot = Kr ? (
|
|
|
2531
2525
|
return r;
|
|
2532
2526
|
}
|
|
2533
2527
|
)
|
|
2534
|
-
),
|
|
2528
|
+
), Mt = en ? (
|
|
2535
2529
|
// Native
|
|
2536
2530
|
function(t, r) {
|
|
2537
2531
|
return t.codePointAt(r);
|
|
@@ -2545,7 +2539,7 @@ var ot = Kr ? (
|
|
|
2545
2539
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2546
2540
|
}
|
|
2547
2541
|
}
|
|
2548
|
-
),
|
|
2542
|
+
), an = tn ? (
|
|
2549
2543
|
// Native
|
|
2550
2544
|
function(t) {
|
|
2551
2545
|
return t.trimStart();
|
|
@@ -2553,9 +2547,9 @@ var ot = Kr ? (
|
|
|
2553
2547
|
) : (
|
|
2554
2548
|
// Ponyfill
|
|
2555
2549
|
function(t) {
|
|
2556
|
-
return t.replace(
|
|
2550
|
+
return t.replace(Jr, "");
|
|
2557
2551
|
}
|
|
2558
|
-
),
|
|
2552
|
+
), un = rn ? (
|
|
2559
2553
|
// Native
|
|
2560
2554
|
function(t) {
|
|
2561
2555
|
return t.trimEnd();
|
|
@@ -2563,32 +2557,32 @@ var ot = Kr ? (
|
|
|
2563
2557
|
) : (
|
|
2564
2558
|
// Ponyfill
|
|
2565
2559
|
function(t) {
|
|
2566
|
-
return t.replace(
|
|
2560
|
+
return t.replace(Qr, "");
|
|
2567
2561
|
}
|
|
2568
2562
|
);
|
|
2569
|
-
function
|
|
2563
|
+
function Lt(e, t) {
|
|
2570
2564
|
return new RegExp(e, t);
|
|
2571
2565
|
}
|
|
2572
|
-
var
|
|
2573
|
-
if (
|
|
2574
|
-
var
|
|
2575
|
-
|
|
2566
|
+
var Ge;
|
|
2567
|
+
if (De) {
|
|
2568
|
+
var ot = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2569
|
+
Ge = function(t, r) {
|
|
2576
2570
|
var n;
|
|
2577
|
-
|
|
2578
|
-
var i =
|
|
2571
|
+
ot.lastIndex = r;
|
|
2572
|
+
var i = ot.exec(t);
|
|
2579
2573
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2580
2574
|
};
|
|
2581
2575
|
} else
|
|
2582
|
-
|
|
2576
|
+
Ge = function(t, r) {
|
|
2583
2577
|
for (var n = []; ; ) {
|
|
2584
|
-
var i =
|
|
2585
|
-
if (i === void 0 ||
|
|
2578
|
+
var i = Mt(t, r);
|
|
2579
|
+
if (i === void 0 || Rt(i) || fn(i))
|
|
2586
2580
|
break;
|
|
2587
2581
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2588
2582
|
}
|
|
2589
|
-
return
|
|
2583
|
+
return Fe.apply(void 0, n);
|
|
2590
2584
|
};
|
|
2591
|
-
var
|
|
2585
|
+
var ln = (
|
|
2592
2586
|
/** @class */
|
|
2593
2587
|
function() {
|
|
2594
2588
|
function e(t, r) {
|
|
@@ -2612,14 +2606,14 @@ var cn = (
|
|
|
2612
2606
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2613
2607
|
var s = this.clonePosition();
|
|
2614
2608
|
this.bump(), i.push({
|
|
2615
|
-
type:
|
|
2609
|
+
type: x.pound,
|
|
2616
2610
|
location: b(s, this.clonePosition())
|
|
2617
2611
|
});
|
|
2618
2612
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2619
2613
|
if (n)
|
|
2620
2614
|
break;
|
|
2621
2615
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2622
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2616
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2623
2617
|
var a = this.parseTag(t, r);
|
|
2624
2618
|
if (a.err)
|
|
2625
2619
|
return a;
|
|
@@ -2640,7 +2634,7 @@ var cn = (
|
|
|
2640
2634
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2641
2635
|
return {
|
|
2642
2636
|
val: {
|
|
2643
|
-
type:
|
|
2637
|
+
type: x.literal,
|
|
2644
2638
|
value: "<".concat(i, "/>"),
|
|
2645
2639
|
location: b(n, this.clonePosition())
|
|
2646
2640
|
},
|
|
@@ -2652,12 +2646,12 @@ var cn = (
|
|
|
2652
2646
|
return o;
|
|
2653
2647
|
var a = o.val, s = this.clonePosition();
|
|
2654
2648
|
if (this.bumpIf("</")) {
|
|
2655
|
-
if (this.isEOF() || !
|
|
2649
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2656
2650
|
return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
|
|
2657
2651
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2658
2652
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2659
2653
|
val: {
|
|
2660
|
-
type:
|
|
2654
|
+
type: x.tag,
|
|
2661
2655
|
value: i,
|
|
2662
2656
|
children: a,
|
|
2663
2657
|
location: b(n, this.clonePosition())
|
|
@@ -2670,7 +2664,7 @@ var cn = (
|
|
|
2670
2664
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
2671
2665
|
}, e.prototype.parseTagName = function() {
|
|
2672
2666
|
var t = this.offset();
|
|
2673
|
-
for (this.bump(); !this.isEOF() &&
|
|
2667
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
|
2674
2668
|
this.bump();
|
|
2675
2669
|
return this.message.slice(t, this.offset());
|
|
2676
2670
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2694,12 +2688,12 @@ var cn = (
|
|
|
2694
2688
|
}
|
|
2695
2689
|
var h = b(n, this.clonePosition());
|
|
2696
2690
|
return {
|
|
2697
|
-
val: { type:
|
|
2691
|
+
val: { type: x.literal, value: i, location: h },
|
|
2698
2692
|
err: null
|
|
2699
2693
|
};
|
|
2700
2694
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2701
2695
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2702
|
-
!
|
|
2696
|
+
!hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2703
2697
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2704
2698
|
if (this.isEOF() || this.char() !== 39)
|
|
2705
2699
|
return null;
|
|
@@ -2733,12 +2727,12 @@ var cn = (
|
|
|
2733
2727
|
r.push(n);
|
|
2734
2728
|
this.bump();
|
|
2735
2729
|
}
|
|
2736
|
-
return
|
|
2730
|
+
return Fe.apply(void 0, r);
|
|
2737
2731
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2738
2732
|
if (this.isEOF())
|
|
2739
2733
|
return null;
|
|
2740
2734
|
var n = this.char();
|
|
2741
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2735
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2742
2736
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2743
2737
|
var n = this.clonePosition();
|
|
2744
2738
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2754,7 +2748,7 @@ var cn = (
|
|
|
2754
2748
|
case 125:
|
|
2755
2749
|
return this.bump(), {
|
|
2756
2750
|
val: {
|
|
2757
|
-
type:
|
|
2751
|
+
type: x.argument,
|
|
2758
2752
|
// value does not include the opening and closing braces.
|
|
2759
2753
|
value: i,
|
|
2760
2754
|
location: b(n, this.clonePosition())
|
|
@@ -2767,7 +2761,7 @@ var cn = (
|
|
|
2767
2761
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2768
2762
|
}
|
|
2769
2763
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2770
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2764
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2771
2765
|
this.bumpTo(i);
|
|
2772
2766
|
var o = this.clonePosition(), a = b(t, o);
|
|
2773
2767
|
return { value: n, location: a };
|
|
@@ -2786,35 +2780,35 @@ var cn = (
|
|
|
2786
2780
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2787
2781
|
if (c.err)
|
|
2788
2782
|
return c;
|
|
2789
|
-
var d =
|
|
2783
|
+
var d = un(c.val);
|
|
2790
2784
|
if (d.length === 0)
|
|
2791
2785
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2792
2786
|
var g = b(l, this.clonePosition());
|
|
2793
2787
|
u = { style: d, styleLocation: g };
|
|
2794
2788
|
}
|
|
2795
|
-
var
|
|
2796
|
-
if (
|
|
2797
|
-
return
|
|
2789
|
+
var y = this.tryParseArgumentClose(i);
|
|
2790
|
+
if (y.err)
|
|
2791
|
+
return y;
|
|
2798
2792
|
var _ = b(i, this.clonePosition());
|
|
2799
|
-
if (u &&
|
|
2800
|
-
var T =
|
|
2793
|
+
if (u && nt(u?.style, "::", 0)) {
|
|
2794
|
+
var T = an(u.style.slice(2));
|
|
2801
2795
|
if (s === "number") {
|
|
2802
2796
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2803
2797
|
return c.err ? c : {
|
|
2804
|
-
val: { type:
|
|
2798
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
2805
2799
|
err: null
|
|
2806
2800
|
};
|
|
2807
2801
|
} else {
|
|
2808
2802
|
if (T.length === 0)
|
|
2809
2803
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2810
2804
|
var H = T;
|
|
2811
|
-
this.locale && (H =
|
|
2805
|
+
this.locale && (H = Wr(T, this.locale));
|
|
2812
2806
|
var d = {
|
|
2813
|
-
type:
|
|
2807
|
+
type: ee.dateTime,
|
|
2814
2808
|
pattern: H,
|
|
2815
2809
|
location: u.styleLocation,
|
|
2816
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2817
|
-
}, L = s === "date" ?
|
|
2810
|
+
parsedOptions: this.shouldParseSkeletons ? Fr(H) : {}
|
|
2811
|
+
}, L = s === "date" ? x.date : x.time;
|
|
2818
2812
|
return {
|
|
2819
2813
|
val: { type: L, value: n, location: _, style: d },
|
|
2820
2814
|
err: null
|
|
@@ -2823,7 +2817,7 @@ var cn = (
|
|
|
2823
2817
|
}
|
|
2824
2818
|
return {
|
|
2825
2819
|
val: {
|
|
2826
|
-
type: s === "number" ?
|
|
2820
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
2827
2821
|
value: n,
|
|
2828
2822
|
location: _,
|
|
2829
2823
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2834,43 +2828,43 @@ var cn = (
|
|
|
2834
2828
|
case "plural":
|
|
2835
2829
|
case "selectordinal":
|
|
2836
2830
|
case "select": {
|
|
2837
|
-
var
|
|
2831
|
+
var A = this.clonePosition();
|
|
2838
2832
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2839
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2833
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(A, v({}, A)));
|
|
2840
2834
|
this.bumpSpace();
|
|
2841
|
-
var
|
|
2842
|
-
if (s !== "select" &&
|
|
2835
|
+
var S = this.parseIdentifierIfPossible(), N = 0;
|
|
2836
|
+
if (s !== "select" && S.value === "offset") {
|
|
2843
2837
|
if (!this.bumpIf(":"))
|
|
2844
2838
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2845
2839
|
this.bumpSpace();
|
|
2846
2840
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2847
2841
|
if (c.err)
|
|
2848
2842
|
return c;
|
|
2849
|
-
this.bumpSpace(),
|
|
2843
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = c.val;
|
|
2850
2844
|
}
|
|
2851
|
-
var D = this.tryParsePluralOrSelectOptions(t, s, r,
|
|
2845
|
+
var D = this.tryParsePluralOrSelectOptions(t, s, r, S);
|
|
2852
2846
|
if (D.err)
|
|
2853
2847
|
return D;
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2856
|
-
return
|
|
2857
|
-
var
|
|
2848
|
+
var y = this.tryParseArgumentClose(i);
|
|
2849
|
+
if (y.err)
|
|
2850
|
+
return y;
|
|
2851
|
+
var j = b(i, this.clonePosition());
|
|
2858
2852
|
return s === "select" ? {
|
|
2859
2853
|
val: {
|
|
2860
|
-
type:
|
|
2854
|
+
type: x.select,
|
|
2861
2855
|
value: n,
|
|
2862
|
-
options:
|
|
2863
|
-
location:
|
|
2856
|
+
options: it(D.val),
|
|
2857
|
+
location: j
|
|
2864
2858
|
},
|
|
2865
2859
|
err: null
|
|
2866
2860
|
} : {
|
|
2867
2861
|
val: {
|
|
2868
|
-
type:
|
|
2862
|
+
type: x.plural,
|
|
2869
2863
|
value: n,
|
|
2870
|
-
options:
|
|
2871
|
-
offset:
|
|
2864
|
+
options: it(D.val),
|
|
2865
|
+
offset: N,
|
|
2872
2866
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2873
|
-
location:
|
|
2867
|
+
location: j
|
|
2874
2868
|
},
|
|
2875
2869
|
err: null
|
|
2876
2870
|
};
|
|
@@ -2918,16 +2912,16 @@ var cn = (
|
|
|
2918
2912
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2919
2913
|
var n = [];
|
|
2920
2914
|
try {
|
|
2921
|
-
n =
|
|
2915
|
+
n = kr(t);
|
|
2922
2916
|
} catch {
|
|
2923
2917
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2924
2918
|
}
|
|
2925
2919
|
return {
|
|
2926
2920
|
val: {
|
|
2927
|
-
type:
|
|
2921
|
+
type: ee.number,
|
|
2928
2922
|
tokens: n,
|
|
2929
2923
|
location: r,
|
|
2930
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2924
|
+
parsedOptions: this.shouldParseSkeletons ? zr(n) : {}
|
|
2931
2925
|
},
|
|
2932
2926
|
err: null
|
|
2933
2927
|
};
|
|
@@ -2949,16 +2943,16 @@ var cn = (
|
|
|
2949
2943
|
var g = this.clonePosition();
|
|
2950
2944
|
if (!this.bumpIf("{"))
|
|
2951
2945
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2952
|
-
var
|
|
2953
|
-
if (
|
|
2954
|
-
return
|
|
2946
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
2947
|
+
if (y.err)
|
|
2948
|
+
return y;
|
|
2955
2949
|
var _ = this.tryParseArgumentClose(g);
|
|
2956
2950
|
if (_.err)
|
|
2957
2951
|
return _;
|
|
2958
2952
|
s.push([
|
|
2959
2953
|
u,
|
|
2960
2954
|
{
|
|
2961
|
-
value:
|
|
2955
|
+
value: y.val,
|
|
2962
2956
|
location: b(g, this.clonePosition())
|
|
2963
2957
|
}
|
|
2964
2958
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
@@ -2975,7 +2969,7 @@ var cn = (
|
|
|
2975
2969
|
break;
|
|
2976
2970
|
}
|
|
2977
2971
|
var h = b(i, this.clonePosition());
|
|
2978
|
-
return o ? (a *= n,
|
|
2972
|
+
return o ? (a *= n, on(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2979
2973
|
}, e.prototype.offset = function() {
|
|
2980
2974
|
return this.position.offset;
|
|
2981
2975
|
}, e.prototype.isEOF = function() {
|
|
@@ -2990,7 +2984,7 @@ var cn = (
|
|
|
2990
2984
|
var t = this.position.offset;
|
|
2991
2985
|
if (t >= this.message.length)
|
|
2992
2986
|
throw Error("out of bound");
|
|
2993
|
-
var r =
|
|
2987
|
+
var r = Mt(this.message, t);
|
|
2994
2988
|
if (r === void 0)
|
|
2995
2989
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2996
2990
|
return r;
|
|
@@ -3009,7 +3003,7 @@ var cn = (
|
|
|
3009
3003
|
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);
|
|
3010
3004
|
}
|
|
3011
3005
|
}, e.prototype.bumpIf = function(t) {
|
|
3012
|
-
if (
|
|
3006
|
+
if (nt(this.message, t, this.offset())) {
|
|
3013
3007
|
for (var r = 0; r < t.length; r++)
|
|
3014
3008
|
this.bump();
|
|
3015
3009
|
return !0;
|
|
@@ -3031,7 +3025,7 @@ var cn = (
|
|
|
3031
3025
|
break;
|
|
3032
3026
|
}
|
|
3033
3027
|
}, e.prototype.bumpSpace = function() {
|
|
3034
|
-
for (; !this.isEOF() &&
|
|
3028
|
+
for (; !this.isEOF() && Rt(this.char()); )
|
|
3035
3029
|
this.bump();
|
|
3036
3030
|
}, e.prototype.peek = function() {
|
|
3037
3031
|
if (this.isEOF())
|
|
@@ -3041,47 +3035,47 @@ var cn = (
|
|
|
3041
3035
|
}, e;
|
|
3042
3036
|
}()
|
|
3043
3037
|
);
|
|
3044
|
-
function
|
|
3038
|
+
function ke(e) {
|
|
3045
3039
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3046
3040
|
}
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3041
|
+
function hn(e) {
|
|
3042
|
+
return ke(e) || e === 47;
|
|
3049
3043
|
}
|
|
3050
|
-
function
|
|
3044
|
+
function cn(e) {
|
|
3051
3045
|
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;
|
|
3052
3046
|
}
|
|
3053
|
-
function
|
|
3047
|
+
function Rt(e) {
|
|
3054
3048
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3055
3049
|
}
|
|
3056
|
-
function
|
|
3050
|
+
function fn(e) {
|
|
3057
3051
|
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;
|
|
3058
3052
|
}
|
|
3059
|
-
function
|
|
3053
|
+
function je(e) {
|
|
3060
3054
|
e.forEach(function(t) {
|
|
3061
|
-
if (delete t.location,
|
|
3055
|
+
if (delete t.location, Bt(t) || At(t))
|
|
3062
3056
|
for (var r in t.options)
|
|
3063
|
-
delete t.options[r].location,
|
|
3057
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3064
3058
|
else
|
|
3065
|
-
|
|
3059
|
+
St(t) && Pt(t.style) || (Tt(t) || Ht(t)) && Ue(t.style) ? delete t.style.location : wt(t) && je(t.children);
|
|
3066
3060
|
});
|
|
3067
3061
|
}
|
|
3068
|
-
function
|
|
3069
|
-
t === void 0 && (t = {}), t =
|
|
3070
|
-
var r = new
|
|
3062
|
+
function dn(e, t) {
|
|
3063
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3064
|
+
var r = new ln(e, t).parse();
|
|
3071
3065
|
if (r.err) {
|
|
3072
3066
|
var n = SyntaxError(m[r.err.kind]);
|
|
3073
3067
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3074
3068
|
}
|
|
3075
|
-
return t?.captureLocation ||
|
|
3069
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3076
3070
|
}
|
|
3077
|
-
var
|
|
3071
|
+
var te;
|
|
3078
3072
|
(function(e) {
|
|
3079
3073
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3080
|
-
})(
|
|
3081
|
-
var
|
|
3074
|
+
})(te || (te = {}));
|
|
3075
|
+
var Te = (
|
|
3082
3076
|
/** @class */
|
|
3083
3077
|
function(e) {
|
|
3084
|
-
|
|
3078
|
+
Se(t, e);
|
|
3085
3079
|
function t(r, n, i) {
|
|
3086
3080
|
var o = e.call(this, r) || this;
|
|
3087
3081
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3090,48 +3084,48 @@ var Ae = (
|
|
|
3090
3084
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3091
3085
|
}, t;
|
|
3092
3086
|
}(Error)
|
|
3093
|
-
),
|
|
3087
|
+
), st = (
|
|
3094
3088
|
/** @class */
|
|
3095
3089
|
function(e) {
|
|
3096
|
-
|
|
3090
|
+
Se(t, e);
|
|
3097
3091
|
function t(r, n, i, o) {
|
|
3098
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3092
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
3099
3093
|
}
|
|
3100
3094
|
return t;
|
|
3101
|
-
}(
|
|
3102
|
-
),
|
|
3095
|
+
}(Te)
|
|
3096
|
+
), mn = (
|
|
3103
3097
|
/** @class */
|
|
3104
3098
|
function(e) {
|
|
3105
|
-
|
|
3099
|
+
Se(t, e);
|
|
3106
3100
|
function t(r, n, i) {
|
|
3107
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3101
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
3108
3102
|
}
|
|
3109
3103
|
return t;
|
|
3110
|
-
}(
|
|
3111
|
-
),
|
|
3104
|
+
}(Te)
|
|
3105
|
+
), pn = (
|
|
3112
3106
|
/** @class */
|
|
3113
3107
|
function(e) {
|
|
3114
|
-
|
|
3108
|
+
Se(t, e);
|
|
3115
3109
|
function t(r, n) {
|
|
3116
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3110
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
3117
3111
|
}
|
|
3118
3112
|
return t;
|
|
3119
|
-
}(
|
|
3113
|
+
}(Te)
|
|
3120
3114
|
), I;
|
|
3121
3115
|
(function(e) {
|
|
3122
3116
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3123
3117
|
})(I || (I = {}));
|
|
3124
|
-
function
|
|
3118
|
+
function bn(e) {
|
|
3125
3119
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3126
3120
|
var n = t[t.length - 1];
|
|
3127
3121
|
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3128
3122
|
}, []);
|
|
3129
3123
|
}
|
|
3130
|
-
function
|
|
3124
|
+
function gn(e) {
|
|
3131
3125
|
return typeof e == "function";
|
|
3132
3126
|
}
|
|
3133
|
-
function
|
|
3134
|
-
if (e.length === 1 &&
|
|
3127
|
+
function ve(e, t, r, n, i, o, a) {
|
|
3128
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3135
3129
|
return [
|
|
3136
3130
|
{
|
|
3137
3131
|
type: I.literal,
|
|
@@ -3140,14 +3134,14 @@ function ye(e, t, r, n, i, o, a) {
|
|
|
3140
3134
|
];
|
|
3141
3135
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3142
3136
|
var l = u[h];
|
|
3143
|
-
if (
|
|
3137
|
+
if (Ke(l)) {
|
|
3144
3138
|
s.push({
|
|
3145
3139
|
type: I.literal,
|
|
3146
3140
|
value: l.value
|
|
3147
3141
|
});
|
|
3148
3142
|
continue;
|
|
3149
3143
|
}
|
|
3150
|
-
if (
|
|
3144
|
+
if (Ur(l)) {
|
|
3151
3145
|
typeof o == "number" && s.push({
|
|
3152
3146
|
type: I.literal,
|
|
3153
3147
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3156,89 +3150,89 @@ function ye(e, t, r, n, i, o, a) {
|
|
|
3156
3150
|
}
|
|
3157
3151
|
var c = l.value;
|
|
3158
3152
|
if (!(i && c in i))
|
|
3159
|
-
throw new
|
|
3153
|
+
throw new pn(c, a);
|
|
3160
3154
|
var d = i[c];
|
|
3161
|
-
if (
|
|
3155
|
+
if ($r(l)) {
|
|
3162
3156
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3163
3157
|
type: typeof d == "string" ? I.literal : I.object,
|
|
3164
3158
|
value: d
|
|
3165
3159
|
});
|
|
3166
3160
|
continue;
|
|
3167
3161
|
}
|
|
3168
|
-
if (
|
|
3169
|
-
var g = typeof l.style == "string" ? n.date[l.style] :
|
|
3162
|
+
if (Tt(l)) {
|
|
3163
|
+
var g = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3170
3164
|
s.push({
|
|
3171
3165
|
type: I.literal,
|
|
3172
3166
|
value: r.getDateTimeFormat(t, g).format(d)
|
|
3173
3167
|
});
|
|
3174
3168
|
continue;
|
|
3175
3169
|
}
|
|
3176
|
-
if (
|
|
3177
|
-
var g = typeof l.style == "string" ? n.time[l.style] :
|
|
3170
|
+
if (Ht(l)) {
|
|
3171
|
+
var g = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3178
3172
|
s.push({
|
|
3179
3173
|
type: I.literal,
|
|
3180
3174
|
value: r.getDateTimeFormat(t, g).format(d)
|
|
3181
3175
|
});
|
|
3182
3176
|
continue;
|
|
3183
3177
|
}
|
|
3184
|
-
if (
|
|
3185
|
-
var g = typeof l.style == "string" ? n.number[l.style] :
|
|
3178
|
+
if (St(l)) {
|
|
3179
|
+
var g = typeof l.style == "string" ? n.number[l.style] : Pt(l.style) ? l.style.parsedOptions : void 0;
|
|
3186
3180
|
g && g.scale && (d = d * (g.scale || 1)), s.push({
|
|
3187
3181
|
type: I.literal,
|
|
3188
3182
|
value: r.getNumberFormat(t, g).format(d)
|
|
3189
3183
|
});
|
|
3190
3184
|
continue;
|
|
3191
3185
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var
|
|
3194
|
-
if (!
|
|
3195
|
-
throw new
|
|
3196
|
-
var H =
|
|
3197
|
-
return
|
|
3186
|
+
if (wt(l)) {
|
|
3187
|
+
var y = l.children, _ = l.value, T = i[_];
|
|
3188
|
+
if (!gn(T))
|
|
3189
|
+
throw new mn(_, "function", a);
|
|
3190
|
+
var H = ve(y, t, r, n, i, o), L = T(H.map(function(N) {
|
|
3191
|
+
return N.value;
|
|
3198
3192
|
}));
|
|
3199
|
-
Array.isArray(L) || (L = [L]), s.push.apply(s, L.map(function(
|
|
3193
|
+
Array.isArray(L) || (L = [L]), s.push.apply(s, L.map(function(N) {
|
|
3200
3194
|
return {
|
|
3201
|
-
type: typeof
|
|
3202
|
-
value:
|
|
3195
|
+
type: typeof N == "string" ? I.literal : I.object,
|
|
3196
|
+
value: N
|
|
3203
3197
|
};
|
|
3204
3198
|
}));
|
|
3205
3199
|
}
|
|
3206
|
-
if (
|
|
3207
|
-
var
|
|
3208
|
-
if (!
|
|
3209
|
-
throw new
|
|
3210
|
-
s.push.apply(s,
|
|
3200
|
+
if (Bt(l)) {
|
|
3201
|
+
var A = l.options[d] || l.options.other;
|
|
3202
|
+
if (!A)
|
|
3203
|
+
throw new st(l.value, d, Object.keys(l.options), a);
|
|
3204
|
+
s.push.apply(s, ve(A.value, t, r, n, i));
|
|
3211
3205
|
continue;
|
|
3212
3206
|
}
|
|
3213
|
-
if (
|
|
3214
|
-
var
|
|
3215
|
-
if (!
|
|
3207
|
+
if (At(l)) {
|
|
3208
|
+
var A = l.options["=".concat(d)];
|
|
3209
|
+
if (!A) {
|
|
3216
3210
|
if (!Intl.PluralRules)
|
|
3217
|
-
throw new
|
|
3211
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3218
3212
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3219
|
-
`,
|
|
3220
|
-
var
|
|
3221
|
-
|
|
3213
|
+
`, te.MISSING_INTL_API, a);
|
|
3214
|
+
var S = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
|
|
3215
|
+
A = l.options[S] || l.options.other;
|
|
3222
3216
|
}
|
|
3223
|
-
if (!
|
|
3224
|
-
throw new
|
|
3225
|
-
s.push.apply(s,
|
|
3217
|
+
if (!A)
|
|
3218
|
+
throw new st(l.value, d, Object.keys(l.options), a);
|
|
3219
|
+
s.push.apply(s, ve(A.value, t, r, n, i, d - (l.offset || 0)));
|
|
3226
3220
|
continue;
|
|
3227
3221
|
}
|
|
3228
3222
|
}
|
|
3229
|
-
return
|
|
3223
|
+
return bn(s);
|
|
3230
3224
|
}
|
|
3231
|
-
function
|
|
3232
|
-
return t ?
|
|
3233
|
-
return r[n] =
|
|
3225
|
+
function vn(e, t) {
|
|
3226
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3227
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3234
3228
|
}, {})) : e;
|
|
3235
3229
|
}
|
|
3236
|
-
function
|
|
3230
|
+
function yn(e, t) {
|
|
3237
3231
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3238
|
-
return r[n] =
|
|
3239
|
-
},
|
|
3232
|
+
return r[n] = vn(e[n], t[n]), r;
|
|
3233
|
+
}, v({}, e)) : e;
|
|
3240
3234
|
}
|
|
3241
|
-
function
|
|
3235
|
+
function Ne(e) {
|
|
3242
3236
|
return {
|
|
3243
3237
|
create: function() {
|
|
3244
3238
|
return {
|
|
@@ -3252,39 +3246,39 @@ function Me(e) {
|
|
|
3252
3246
|
}
|
|
3253
3247
|
};
|
|
3254
3248
|
}
|
|
3255
|
-
function
|
|
3249
|
+
function En(e) {
|
|
3256
3250
|
return e === void 0 && (e = {
|
|
3257
3251
|
number: {},
|
|
3258
3252
|
dateTime: {},
|
|
3259
3253
|
pluralRules: {}
|
|
3260
3254
|
}), {
|
|
3261
|
-
getNumberFormat:
|
|
3255
|
+
getNumberFormat: Pe(function() {
|
|
3262
3256
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3263
3257
|
r[n] = arguments[n];
|
|
3264
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3258
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3265
3259
|
}, {
|
|
3266
|
-
cache:
|
|
3267
|
-
strategy:
|
|
3260
|
+
cache: Ne(e.number),
|
|
3261
|
+
strategy: Ce.variadic
|
|
3268
3262
|
}),
|
|
3269
|
-
getDateTimeFormat:
|
|
3263
|
+
getDateTimeFormat: Pe(function() {
|
|
3270
3264
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3271
3265
|
r[n] = arguments[n];
|
|
3272
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3266
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3273
3267
|
}, {
|
|
3274
|
-
cache:
|
|
3275
|
-
strategy:
|
|
3268
|
+
cache: Ne(e.dateTime),
|
|
3269
|
+
strategy: Ce.variadic
|
|
3276
3270
|
}),
|
|
3277
|
-
getPluralRules:
|
|
3271
|
+
getPluralRules: Pe(function() {
|
|
3278
3272
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3273
|
r[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3274
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3281
3275
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3276
|
+
cache: Ne(e.pluralRules),
|
|
3277
|
+
strategy: Ce.variadic
|
|
3284
3278
|
})
|
|
3285
3279
|
};
|
|
3286
3280
|
}
|
|
3287
|
-
var
|
|
3281
|
+
var xn = (
|
|
3288
3282
|
/** @class */
|
|
3289
3283
|
function() {
|
|
3290
3284
|
function e(t, r, n, i) {
|
|
@@ -3303,7 +3297,7 @@ var Sn = (
|
|
|
3303
3297
|
}, []);
|
|
3304
3298
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3305
3299
|
}, this.formatToParts = function(h) {
|
|
3306
|
-
return
|
|
3300
|
+
return ve(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3307
3301
|
}, this.resolvedOptions = function() {
|
|
3308
3302
|
var h;
|
|
3309
3303
|
return {
|
|
@@ -3316,13 +3310,13 @@ var Sn = (
|
|
|
3316
3310
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3317
3311
|
var a = i || {};
|
|
3318
3312
|
a.formatters;
|
|
3319
|
-
var s =
|
|
3320
|
-
this.ast = e.__parse(t,
|
|
3313
|
+
var s = Pr(a, ["formatters"]);
|
|
3314
|
+
this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
|
|
3321
3315
|
} else
|
|
3322
3316
|
this.ast = t;
|
|
3323
3317
|
if (!Array.isArray(this.ast))
|
|
3324
3318
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3325
|
-
this.formats =
|
|
3319
|
+
this.formats = yn(e.formats, n), this.formatters = i && i.formatters || En(this.formatterCache);
|
|
3326
3320
|
}
|
|
3327
3321
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3328
3322
|
get: function() {
|
|
@@ -3335,7 +3329,7 @@ var Sn = (
|
|
|
3335
3329
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3336
3330
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3337
3331
|
}
|
|
3338
|
-
}, e.__parse =
|
|
3332
|
+
}, e.__parse = dn, e.formats = {
|
|
3339
3333
|
number: {
|
|
3340
3334
|
integer: {
|
|
3341
3335
|
maximumFractionDigits: 0
|
|
@@ -3396,7 +3390,7 @@ var Sn = (
|
|
|
3396
3390
|
}, e;
|
|
3397
3391
|
}()
|
|
3398
3392
|
);
|
|
3399
|
-
function
|
|
3393
|
+
function _n(e, t) {
|
|
3400
3394
|
if (t == null)
|
|
3401
3395
|
return;
|
|
3402
3396
|
if (t in e)
|
|
@@ -3417,92 +3411,92 @@ function Tn(e, t) {
|
|
|
3417
3411
|
n = void 0;
|
|
3418
3412
|
return n;
|
|
3419
3413
|
}
|
|
3420
|
-
const
|
|
3414
|
+
const G = {}, Sn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), $t = (e, t) => {
|
|
3421
3415
|
if (t == null)
|
|
3422
3416
|
return;
|
|
3423
|
-
if (t in
|
|
3424
|
-
return
|
|
3425
|
-
const r =
|
|
3417
|
+
if (t in G && e in G[t])
|
|
3418
|
+
return G[t][e];
|
|
3419
|
+
const r = He(t);
|
|
3426
3420
|
for (let n = 0; n < r.length; n++) {
|
|
3427
|
-
const i = r[n], o =
|
|
3421
|
+
const i = r[n], o = Hn(i, e);
|
|
3428
3422
|
if (o)
|
|
3429
|
-
return
|
|
3423
|
+
return Sn(e, t, o);
|
|
3430
3424
|
}
|
|
3431
3425
|
};
|
|
3432
|
-
let
|
|
3433
|
-
const
|
|
3434
|
-
function
|
|
3435
|
-
return
|
|
3426
|
+
let We;
|
|
3427
|
+
const oe = _e({});
|
|
3428
|
+
function Tn(e) {
|
|
3429
|
+
return We[e] || null;
|
|
3436
3430
|
}
|
|
3437
|
-
function
|
|
3438
|
-
return e in
|
|
3431
|
+
function Ut(e) {
|
|
3432
|
+
return e in We;
|
|
3439
3433
|
}
|
|
3440
|
-
function
|
|
3441
|
-
if (!
|
|
3434
|
+
function Hn(e, t) {
|
|
3435
|
+
if (!Ut(e))
|
|
3442
3436
|
return null;
|
|
3443
|
-
const r =
|
|
3444
|
-
return
|
|
3437
|
+
const r = Tn(e);
|
|
3438
|
+
return _n(r, t);
|
|
3445
3439
|
}
|
|
3446
|
-
function
|
|
3440
|
+
function Bn(e) {
|
|
3447
3441
|
if (e == null)
|
|
3448
3442
|
return;
|
|
3449
|
-
const t =
|
|
3443
|
+
const t = He(e);
|
|
3450
3444
|
for (let r = 0; r < t.length; r++) {
|
|
3451
3445
|
const n = t[r];
|
|
3452
|
-
if (
|
|
3446
|
+
if (Ut(n))
|
|
3453
3447
|
return n;
|
|
3454
3448
|
}
|
|
3455
3449
|
}
|
|
3456
|
-
function
|
|
3457
|
-
delete
|
|
3450
|
+
function Dt(e, ...t) {
|
|
3451
|
+
delete G[e], oe.update((r) => (r[e] = wr.all([r[e] || {}, ...t]), r));
|
|
3458
3452
|
}
|
|
3459
|
-
|
|
3460
|
-
[
|
|
3453
|
+
ie(
|
|
3454
|
+
[oe],
|
|
3461
3455
|
([e]) => Object.keys(e)
|
|
3462
3456
|
);
|
|
3463
|
-
|
|
3464
|
-
const
|
|
3465
|
-
function
|
|
3466
|
-
|
|
3457
|
+
oe.subscribe((e) => We = e);
|
|
3458
|
+
const ye = {};
|
|
3459
|
+
function An(e, t) {
|
|
3460
|
+
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
3467
3461
|
}
|
|
3468
|
-
function
|
|
3469
|
-
return
|
|
3462
|
+
function Ft(e) {
|
|
3463
|
+
return ye[e];
|
|
3470
3464
|
}
|
|
3471
|
-
function
|
|
3472
|
-
return
|
|
3473
|
-
const r =
|
|
3465
|
+
function wn(e) {
|
|
3466
|
+
return He(e).map((t) => {
|
|
3467
|
+
const r = Ft(t);
|
|
3474
3468
|
return [t, r ? [...r] : []];
|
|
3475
3469
|
}).filter(([, t]) => t.length > 0);
|
|
3476
3470
|
}
|
|
3477
|
-
function
|
|
3478
|
-
return e == null ? !1 :
|
|
3471
|
+
function Ve(e) {
|
|
3472
|
+
return e == null ? !1 : He(e).some(
|
|
3479
3473
|
(t) => {
|
|
3480
3474
|
var r;
|
|
3481
|
-
return (r =
|
|
3475
|
+
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3482
3476
|
}
|
|
3483
3477
|
);
|
|
3484
3478
|
}
|
|
3485
|
-
function
|
|
3479
|
+
function Pn(e, t) {
|
|
3486
3480
|
return Promise.all(
|
|
3487
|
-
t.map((n) => (
|
|
3488
|
-
).then((n) =>
|
|
3489
|
-
}
|
|
3490
|
-
const
|
|
3491
|
-
function
|
|
3492
|
-
if (!
|
|
3493
|
-
return e in
|
|
3494
|
-
const t =
|
|
3495
|
-
return
|
|
3481
|
+
t.map((n) => (An(e, n), n().then((i) => i.default || i)))
|
|
3482
|
+
).then((n) => Dt(e, ...n));
|
|
3483
|
+
}
|
|
3484
|
+
const he = {};
|
|
3485
|
+
function Gt(e) {
|
|
3486
|
+
if (!Ve(e))
|
|
3487
|
+
return e in he ? he[e] : Promise.resolve();
|
|
3488
|
+
const t = wn(e);
|
|
3489
|
+
return he[e] = Promise.all(
|
|
3496
3490
|
t.map(
|
|
3497
|
-
([r, n]) =>
|
|
3491
|
+
([r, n]) => Pn(r, n)
|
|
3498
3492
|
)
|
|
3499
3493
|
).then(() => {
|
|
3500
|
-
if (
|
|
3501
|
-
return
|
|
3502
|
-
delete
|
|
3503
|
-
}),
|
|
3494
|
+
if (Ve(e))
|
|
3495
|
+
return Gt(e);
|
|
3496
|
+
delete he[e];
|
|
3497
|
+
}), he[e];
|
|
3504
3498
|
}
|
|
3505
|
-
const
|
|
3499
|
+
const Cn = {
|
|
3506
3500
|
number: {
|
|
3507
3501
|
scientific: { notation: "scientific" },
|
|
3508
3502
|
engineering: { notation: "engineering" },
|
|
@@ -3531,150 +3525,150 @@ const On = {
|
|
|
3531
3525
|
timeZoneName: "short"
|
|
3532
3526
|
}
|
|
3533
3527
|
}
|
|
3534
|
-
},
|
|
3528
|
+
}, In = {
|
|
3535
3529
|
fallbackLocale: null,
|
|
3536
3530
|
loadingDelay: 200,
|
|
3537
|
-
formats:
|
|
3531
|
+
formats: Cn,
|
|
3538
3532
|
warnOnMissingMessages: !0,
|
|
3539
3533
|
handleMissingMessage: void 0,
|
|
3540
3534
|
ignoreTag: !0
|
|
3541
|
-
},
|
|
3542
|
-
function
|
|
3543
|
-
return
|
|
3535
|
+
}, Nn = In;
|
|
3536
|
+
function re() {
|
|
3537
|
+
return Nn;
|
|
3544
3538
|
}
|
|
3545
|
-
const
|
|
3546
|
-
var
|
|
3539
|
+
const Oe = _e(!1);
|
|
3540
|
+
var On = Object.defineProperty, Mn = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Un = (e, t) => {
|
|
3547
3541
|
for (var r in t || (t = {}))
|
|
3548
|
-
|
|
3549
|
-
if (
|
|
3550
|
-
for (var r of
|
|
3551
|
-
|
|
3542
|
+
Rn.call(t, r) && ut(e, r, t[r]);
|
|
3543
|
+
if (at)
|
|
3544
|
+
for (var r of at(t))
|
|
3545
|
+
$n.call(t, r) && ut(e, r, t[r]);
|
|
3552
3546
|
return e;
|
|
3553
|
-
},
|
|
3554
|
-
let
|
|
3555
|
-
const
|
|
3556
|
-
function
|
|
3547
|
+
}, Dn = (e, t) => Mn(e, Ln(t));
|
|
3548
|
+
let Xe;
|
|
3549
|
+
const Ee = _e(null);
|
|
3550
|
+
function lt(e) {
|
|
3557
3551
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3558
3552
|
}
|
|
3559
|
-
function
|
|
3560
|
-
const r =
|
|
3561
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3553
|
+
function He(e, t = re().fallbackLocale) {
|
|
3554
|
+
const r = lt(e);
|
|
3555
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3562
3556
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3557
|
+
function Z() {
|
|
3558
|
+
return Xe ?? void 0;
|
|
3565
3559
|
}
|
|
3566
|
-
|
|
3567
|
-
|
|
3560
|
+
Ee.subscribe((e) => {
|
|
3561
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3568
3562
|
});
|
|
3569
|
-
const
|
|
3570
|
-
if (e &&
|
|
3571
|
-
const { loadingDelay: t } =
|
|
3563
|
+
const Fn = (e) => {
|
|
3564
|
+
if (e && Bn(e) && Ve(e)) {
|
|
3565
|
+
const { loadingDelay: t } = re();
|
|
3572
3566
|
let r;
|
|
3573
|
-
return typeof window < "u" &&
|
|
3574
|
-
() =>
|
|
3567
|
+
return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
|
|
3568
|
+
() => Oe.set(!0),
|
|
3575
3569
|
t
|
|
3576
|
-
) :
|
|
3577
|
-
|
|
3570
|
+
) : Oe.set(!0), Gt(e).then(() => {
|
|
3571
|
+
Ee.set(e);
|
|
3578
3572
|
}).finally(() => {
|
|
3579
|
-
clearTimeout(r),
|
|
3573
|
+
clearTimeout(r), Oe.set(!1);
|
|
3580
3574
|
});
|
|
3581
3575
|
}
|
|
3582
|
-
return
|
|
3583
|
-
},
|
|
3584
|
-
set:
|
|
3585
|
-
}),
|
|
3576
|
+
return Ee.set(e);
|
|
3577
|
+
}, z = Dn(Un({}, Ee), {
|
|
3578
|
+
set: Fn
|
|
3579
|
+
}), Be = (e) => {
|
|
3586
3580
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3587
3581
|
return (n) => {
|
|
3588
3582
|
const i = JSON.stringify(n);
|
|
3589
3583
|
return i in t ? t[i] : t[i] = e(n);
|
|
3590
3584
|
};
|
|
3591
3585
|
};
|
|
3592
|
-
var
|
|
3586
|
+
var Gn = Object.defineProperty, xe = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3593
3587
|
for (var r in t || (t = {}))
|
|
3594
|
-
|
|
3595
|
-
if (
|
|
3596
|
-
for (var r of
|
|
3597
|
-
|
|
3588
|
+
kt.call(t, r) && ht(e, r, t[r]);
|
|
3589
|
+
if (xe)
|
|
3590
|
+
for (var r of xe(t))
|
|
3591
|
+
jt.call(t, r) && ht(e, r, t[r]);
|
|
3598
3592
|
return e;
|
|
3599
|
-
},
|
|
3593
|
+
}, se = (e, t) => {
|
|
3600
3594
|
var r = {};
|
|
3601
3595
|
for (var n in e)
|
|
3602
|
-
|
|
3603
|
-
if (e != null &&
|
|
3604
|
-
for (var n of
|
|
3605
|
-
t.indexOf(n) < 0 &&
|
|
3596
|
+
kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3597
|
+
if (e != null && xe)
|
|
3598
|
+
for (var n of xe(e))
|
|
3599
|
+
t.indexOf(n) < 0 && jt.call(e, n) && (r[n] = e[n]);
|
|
3606
3600
|
return r;
|
|
3607
3601
|
};
|
|
3608
|
-
const
|
|
3609
|
-
const { formats: r } =
|
|
3602
|
+
const me = (e, t) => {
|
|
3603
|
+
const { formats: r } = re();
|
|
3610
3604
|
if (e in r && t in r[e])
|
|
3611
3605
|
return r[e][t];
|
|
3612
3606
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3613
|
-
},
|
|
3607
|
+
}, kn = Be(
|
|
3614
3608
|
(e) => {
|
|
3615
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3609
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3616
3610
|
if (r == null)
|
|
3617
3611
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3618
|
-
return n && (i =
|
|
3612
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
3619
3613
|
}
|
|
3620
|
-
),
|
|
3614
|
+
), jn = Be(
|
|
3621
3615
|
(e) => {
|
|
3622
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3616
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3623
3617
|
if (r == null)
|
|
3624
3618
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3625
|
-
return n ? i =
|
|
3619
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3626
3620
|
}
|
|
3627
|
-
),
|
|
3621
|
+
), Vn = Be(
|
|
3628
3622
|
(e) => {
|
|
3629
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3623
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3630
3624
|
if (r == null)
|
|
3631
3625
|
throw new Error(
|
|
3632
3626
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3633
3627
|
);
|
|
3634
|
-
return n ? i =
|
|
3628
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3635
3629
|
}
|
|
3636
|
-
),
|
|
3630
|
+
), Xn = (e = {}) => {
|
|
3637
3631
|
var t = e, {
|
|
3638
|
-
locale: r =
|
|
3639
|
-
} = t, n =
|
|
3632
|
+
locale: r = Z()
|
|
3633
|
+
} = t, n = se(t, [
|
|
3640
3634
|
"locale"
|
|
3641
3635
|
]);
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3636
|
+
return kn(Ze({ locale: r }, n));
|
|
3637
|
+
}, zn = (e = {}) => {
|
|
3644
3638
|
var t = e, {
|
|
3645
|
-
locale: r =
|
|
3646
|
-
} = t, n =
|
|
3639
|
+
locale: r = Z()
|
|
3640
|
+
} = t, n = se(t, [
|
|
3647
3641
|
"locale"
|
|
3648
3642
|
]);
|
|
3649
|
-
return
|
|
3650
|
-
},
|
|
3643
|
+
return jn(Ze({ locale: r }, n));
|
|
3644
|
+
}, Wn = (e = {}) => {
|
|
3651
3645
|
var t = e, {
|
|
3652
|
-
locale: r =
|
|
3653
|
-
} = t, n =
|
|
3646
|
+
locale: r = Z()
|
|
3647
|
+
} = t, n = se(t, [
|
|
3654
3648
|
"locale"
|
|
3655
3649
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3650
|
+
return Vn(Ze({ locale: r }, n));
|
|
3651
|
+
}, Zn = Be(
|
|
3658
3652
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3659
|
-
(e, t =
|
|
3660
|
-
ignoreTag:
|
|
3653
|
+
(e, t = Z()) => new xn(e, t, re().formats, {
|
|
3654
|
+
ignoreTag: re().ignoreTag
|
|
3661
3655
|
})
|
|
3662
|
-
),
|
|
3656
|
+
), Jn = (e, t = {}) => {
|
|
3663
3657
|
var r, n, i, o;
|
|
3664
3658
|
let a = t;
|
|
3665
3659
|
typeof e == "object" && (a = e, e = a.id);
|
|
3666
3660
|
const {
|
|
3667
3661
|
values: s,
|
|
3668
|
-
locale: h =
|
|
3662
|
+
locale: h = Z(),
|
|
3669
3663
|
default: u
|
|
3670
3664
|
} = a;
|
|
3671
3665
|
if (h == null)
|
|
3672
3666
|
throw new Error(
|
|
3673
3667
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3674
3668
|
);
|
|
3675
|
-
let l =
|
|
3669
|
+
let l = $t(e, h);
|
|
3676
3670
|
if (!l)
|
|
3677
|
-
l = (o = (i = (n = (r =
|
|
3671
|
+
l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3678
3672
|
else if (typeof l != "string")
|
|
3679
3673
|
return console.warn(
|
|
3680
3674
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3683,7 +3677,7 @@ const pe = (e, t) => {
|
|
|
3683
3677
|
return l;
|
|
3684
3678
|
let c = l;
|
|
3685
3679
|
try {
|
|
3686
|
-
c =
|
|
3680
|
+
c = Zn(l, h).format(s);
|
|
3687
3681
|
} catch (d) {
|
|
3688
3682
|
d instanceof Error && console.warn(
|
|
3689
3683
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3691,20 +3685,20 @@ const pe = (e, t) => {
|
|
|
3691
3685
|
);
|
|
3692
3686
|
}
|
|
3693
3687
|
return c;
|
|
3694
|
-
},
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
function
|
|
3700
|
-
|
|
3701
|
-
r == null && (
|
|
3688
|
+
}, Qn = (e, t) => Wn(t).format(e), qn = (e, t) => zn(t).format(e), Yn = (e, t) => Xn(t).format(e), Kn = (e, t = Z()) => $t(e, t), ei = ie([z, oe], () => Jn);
|
|
3689
|
+
ie([z], () => Qn);
|
|
3690
|
+
ie([z], () => qn);
|
|
3691
|
+
ie([z], () => Yn);
|
|
3692
|
+
ie([z, oe], () => Kn);
|
|
3693
|
+
function ti({ withLocale: e, translations: t }) {
|
|
3694
|
+
z.subscribe((r) => {
|
|
3695
|
+
r == null && (oe.set(t), z.set(e));
|
|
3702
3696
|
});
|
|
3703
3697
|
}
|
|
3704
|
-
function
|
|
3705
|
-
|
|
3698
|
+
function ct(e, t) {
|
|
3699
|
+
Dt(e, t);
|
|
3706
3700
|
}
|
|
3707
|
-
const
|
|
3701
|
+
const ft = {
|
|
3708
3702
|
en: {
|
|
3709
3703
|
title: "Please enter the verification code you received on your number",
|
|
3710
3704
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3811,13 +3805,13 @@ const mt = {
|
|
|
3811
3805
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3812
3806
|
}
|
|
3813
3807
|
};
|
|
3814
|
-
function
|
|
3808
|
+
function ri(e, t) {
|
|
3815
3809
|
if (e) {
|
|
3816
3810
|
const r = document.createElement("style");
|
|
3817
3811
|
r.innerHTML = t, e.appendChild(r);
|
|
3818
3812
|
}
|
|
3819
3813
|
}
|
|
3820
|
-
function
|
|
3814
|
+
function ni(e, t) {
|
|
3821
3815
|
const r = new URL(t);
|
|
3822
3816
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3823
3817
|
const i = document.createElement("style");
|
|
@@ -3826,7 +3820,7 @@ function oi(e, t) {
|
|
|
3826
3820
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3827
3821
|
});
|
|
3828
3822
|
}
|
|
3829
|
-
function
|
|
3823
|
+
function ii(e, t, r) {
|
|
3830
3824
|
if (window.emMessageBus) {
|
|
3831
3825
|
const n = document.createElement("style");
|
|
3832
3826
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3834,10 +3828,10 @@ function si(e, t, r) {
|
|
|
3834
3828
|
});
|
|
3835
3829
|
}
|
|
3836
3830
|
}
|
|
3837
|
-
function
|
|
3838
|
-
|
|
3831
|
+
function oi(e) {
|
|
3832
|
+
zt(e, "svelte-c25n4u", "*,*::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, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));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))}");
|
|
3839
3833
|
}
|
|
3840
|
-
function
|
|
3834
|
+
function si(e) {
|
|
3841
3835
|
let t = (
|
|
3842
3836
|
/*$_*/
|
|
3843
3837
|
e[5]("errorTitle") + ""
|
|
@@ -3847,19 +3841,19 @@ function ui(e) {
|
|
|
3847
3841
|
r = M(t);
|
|
3848
3842
|
},
|
|
3849
3843
|
m(n, i) {
|
|
3850
|
-
|
|
3844
|
+
W(n, r, i);
|
|
3851
3845
|
},
|
|
3852
3846
|
p(n, i) {
|
|
3853
3847
|
i & /*$_*/
|
|
3854
3848
|
32 && t !== (t = /*$_*/
|
|
3855
|
-
n[5]("errorTitle") + "") &&
|
|
3849
|
+
n[5]("errorTitle") + "") && F(r, t);
|
|
3856
3850
|
},
|
|
3857
3851
|
d(n) {
|
|
3858
|
-
n &&
|
|
3852
|
+
n && k(r);
|
|
3859
3853
|
}
|
|
3860
3854
|
};
|
|
3861
3855
|
}
|
|
3862
|
-
function
|
|
3856
|
+
function ai(e) {
|
|
3863
3857
|
let t = (
|
|
3864
3858
|
/*$_*/
|
|
3865
3859
|
e[5]("title") + ""
|
|
@@ -3869,203 +3863,203 @@ function li(e) {
|
|
|
3869
3863
|
r = M(t);
|
|
3870
3864
|
},
|
|
3871
3865
|
m(n, i) {
|
|
3872
|
-
|
|
3866
|
+
W(n, r, i);
|
|
3873
3867
|
},
|
|
3874
3868
|
p(n, i) {
|
|
3875
3869
|
i & /*$_*/
|
|
3876
3870
|
32 && t !== (t = /*$_*/
|
|
3877
|
-
n[5]("title") + "") &&
|
|
3871
|
+
n[5]("title") + "") && F(r, t);
|
|
3878
3872
|
},
|
|
3879
3873
|
d(n) {
|
|
3880
|
-
n &&
|
|
3874
|
+
n && k(r);
|
|
3881
3875
|
}
|
|
3882
3876
|
};
|
|
3883
3877
|
}
|
|
3884
|
-
function
|
|
3878
|
+
function dt(e) {
|
|
3885
3879
|
let t, r = (
|
|
3886
3880
|
/*$_*/
|
|
3887
3881
|
e[5]("smsCodeError") + ""
|
|
3888
3882
|
), n;
|
|
3889
3883
|
return {
|
|
3890
3884
|
c() {
|
|
3891
|
-
t =
|
|
3885
|
+
t = O("p"), n = M(r), B(t, "class", "InvalidInput");
|
|
3892
3886
|
},
|
|
3893
3887
|
m(i, o) {
|
|
3894
|
-
|
|
3888
|
+
W(i, t, o), E(t, n);
|
|
3895
3889
|
},
|
|
3896
3890
|
p(i, o) {
|
|
3897
3891
|
o & /*$_*/
|
|
3898
3892
|
32 && r !== (r = /*$_*/
|
|
3899
|
-
i[5]("smsCodeError") + "") &&
|
|
3893
|
+
i[5]("smsCodeError") + "") && F(n, r);
|
|
3900
3894
|
},
|
|
3901
3895
|
d(i) {
|
|
3902
|
-
i &&
|
|
3896
|
+
i && k(t);
|
|
3903
3897
|
}
|
|
3904
3898
|
};
|
|
3905
3899
|
}
|
|
3906
|
-
function
|
|
3900
|
+
function mt(e) {
|
|
3907
3901
|
let t, r = (
|
|
3908
3902
|
/*$_*/
|
|
3909
3903
|
e[5]("resendMessage") + ""
|
|
3910
3904
|
), n;
|
|
3911
3905
|
return {
|
|
3912
3906
|
c() {
|
|
3913
|
-
t =
|
|
3907
|
+
t = O("p"), n = M(r), B(t, "class", "SmsVerificationResendMessage");
|
|
3914
3908
|
},
|
|
3915
3909
|
m(i, o) {
|
|
3916
|
-
|
|
3910
|
+
W(i, t, o), E(t, n);
|
|
3917
3911
|
},
|
|
3918
3912
|
p(i, o) {
|
|
3919
3913
|
o & /*$_*/
|
|
3920
3914
|
32 && r !== (r = /*$_*/
|
|
3921
|
-
i[5]("resendMessage") + "") &&
|
|
3915
|
+
i[5]("resendMessage") + "") && F(n, r);
|
|
3922
3916
|
},
|
|
3923
3917
|
d(i) {
|
|
3924
|
-
i &&
|
|
3918
|
+
i && k(t);
|
|
3925
3919
|
}
|
|
3926
3920
|
};
|
|
3927
3921
|
}
|
|
3928
|
-
function
|
|
3922
|
+
function pt(e) {
|
|
3929
3923
|
let t, r, n = (
|
|
3930
3924
|
/*secondsLeft*/
|
|
3931
3925
|
e[4] < 10 ? "0" : ""
|
|
3932
3926
|
), i, o, a;
|
|
3933
3927
|
return {
|
|
3934
3928
|
c() {
|
|
3935
|
-
t =
|
|
3929
|
+
t = O("span"), r = M("(0:"), i = M(n), o = M(
|
|
3936
3930
|
/*secondsLeft*/
|
|
3937
3931
|
e[4]
|
|
3938
|
-
), a = M(")"),
|
|
3932
|
+
), a = M(")"), B(t, "class", "SmsVerificationResendTimer");
|
|
3939
3933
|
},
|
|
3940
3934
|
m(s, h) {
|
|
3941
|
-
|
|
3935
|
+
W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
|
|
3942
3936
|
},
|
|
3943
3937
|
p(s, h) {
|
|
3944
3938
|
h & /*secondsLeft*/
|
|
3945
3939
|
16 && n !== (n = /*secondsLeft*/
|
|
3946
|
-
s[4] < 10 ? "0" : "") &&
|
|
3947
|
-
16 &&
|
|
3940
|
+
s[4] < 10 ? "0" : "") && F(i, n), h & /*secondsLeft*/
|
|
3941
|
+
16 && F(
|
|
3948
3942
|
o,
|
|
3949
3943
|
/*secondsLeft*/
|
|
3950
3944
|
s[4]
|
|
3951
3945
|
);
|
|
3952
3946
|
},
|
|
3953
3947
|
d(s) {
|
|
3954
|
-
s &&
|
|
3948
|
+
s && k(t);
|
|
3955
3949
|
}
|
|
3956
3950
|
};
|
|
3957
3951
|
}
|
|
3958
|
-
function
|
|
3952
|
+
function ui(e) {
|
|
3959
3953
|
let t, r, n, i, o, a = (
|
|
3960
3954
|
/*$_*/
|
|
3961
3955
|
e[5]("code") + ""
|
|
3962
|
-
), s, h, u, l, c, d, g,
|
|
3956
|
+
), s, h, u, l, c, d, g, y, _, T, H = (
|
|
3963
3957
|
/*$_*/
|
|
3964
3958
|
e[5]("activate") + ""
|
|
3965
|
-
), L,
|
|
3959
|
+
), L, A, S, N = (
|
|
3966
3960
|
/*$_*/
|
|
3967
3961
|
e[5]("resend") + ""
|
|
3968
|
-
), D,
|
|
3969
|
-
function
|
|
3962
|
+
), D, j, ae, ue;
|
|
3963
|
+
function le(p, C) {
|
|
3970
3964
|
return (
|
|
3971
3965
|
/*isSmsValid*/
|
|
3972
|
-
p[2] ?
|
|
3966
|
+
p[2] ? ai : si
|
|
3973
3967
|
);
|
|
3974
3968
|
}
|
|
3975
|
-
let
|
|
3976
|
-
e[2] &&
|
|
3969
|
+
let V = le(e), R = V(e), w = !/*isSmsValid*/
|
|
3970
|
+
e[2] && dt(e), P = (
|
|
3977
3971
|
/*timer*/
|
|
3978
|
-
e[3] &&
|
|
3972
|
+
e[3] && mt(e)
|
|
3979
3973
|
), f = (
|
|
3980
3974
|
/*timer*/
|
|
3981
|
-
e[3] &&
|
|
3975
|
+
e[3] && pt(e)
|
|
3982
3976
|
);
|
|
3983
3977
|
return {
|
|
3984
3978
|
c() {
|
|
3985
|
-
t =
|
|
3986
|
-
e[2] ? "" : "InvalidField")),
|
|
3987
|
-
e[3],
|
|
3979
|
+
t = O("div"), r = O("h3"), R.c(), n = X(), i = O("div"), o = O("label"), s = M(a), h = M(":"), u = O("span"), u.textContent = "*", l = X(), c = O("input"), d = X(), w && w.c(), y = X(), P && P.c(), _ = X(), T = O("button"), L = M(H), A = X(), S = O("button"), D = M(N), j = X(), f && f.c(), B(r, "class", "Title"), B(u, "class", "FormRequired"), B(o, "for", "SmsCode"), B(c, "type", "text"), B(c, "id", "SmsCode"), B(c, "inputmode", "numeric"), B(c, "pattern", "[0-9]*"), B(c, "maxlength", "6"), B(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
3980
|
+
e[2] ? "" : "InvalidField")), B(T, "class", "Button SmsVerificationValidate"), B(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
|
|
3981
|
+
e[3], B(t, "class", "Container SmsVerificationContainer");
|
|
3988
3982
|
},
|
|
3989
3983
|
m(p, C) {
|
|
3990
|
-
|
|
3984
|
+
W(p, t, C), E(t, r), R.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, c), Qe(
|
|
3991
3985
|
c,
|
|
3992
3986
|
/*smsCode*/
|
|
3993
3987
|
e[1]
|
|
3994
|
-
),
|
|
3995
|
-
|
|
3988
|
+
), E(i, d), w && w.m(i, null), E(t, y), P && P.m(t, null), E(t, _), E(t, T), E(T, L), E(t, A), E(t, S), E(S, D), E(S, j), f && f.m(S, null), e[20](t), ae || (ue = [
|
|
3989
|
+
pe(
|
|
3996
3990
|
c,
|
|
3997
3991
|
"input",
|
|
3998
3992
|
/*input_input_handler*/
|
|
3999
3993
|
e[18]
|
|
4000
3994
|
),
|
|
4001
|
-
|
|
3995
|
+
pe(
|
|
4002
3996
|
c,
|
|
4003
3997
|
"keydown",
|
|
4004
3998
|
/*keydown_handler*/
|
|
4005
3999
|
e[19]
|
|
4006
4000
|
),
|
|
4007
|
-
|
|
4001
|
+
pe(
|
|
4008
4002
|
T,
|
|
4009
4003
|
"click",
|
|
4010
4004
|
/*activateUser*/
|
|
4011
4005
|
e[6]
|
|
4012
4006
|
),
|
|
4013
|
-
|
|
4014
|
-
|
|
4007
|
+
pe(
|
|
4008
|
+
S,
|
|
4015
4009
|
"click",
|
|
4016
4010
|
/*resendCode*/
|
|
4017
4011
|
e[7]
|
|
4018
4012
|
)
|
|
4019
|
-
],
|
|
4013
|
+
], ae = !0);
|
|
4020
4014
|
},
|
|
4021
4015
|
p(p, [C]) {
|
|
4022
|
-
|
|
4016
|
+
V === (V = le(p)) && R ? R.p(p, C) : (R.d(1), R = V(p), R && (R.c(), R.m(r, null))), C & /*$_*/
|
|
4023
4017
|
32 && a !== (a = /*$_*/
|
|
4024
|
-
p[5]("code") + "") &&
|
|
4018
|
+
p[5]("code") + "") && F(s, a), C & /*smsCode*/
|
|
4025
4019
|
2 && c.value !== /*smsCode*/
|
|
4026
|
-
p[1] &&
|
|
4020
|
+
p[1] && Qe(
|
|
4027
4021
|
c,
|
|
4028
4022
|
/*smsCode*/
|
|
4029
4023
|
p[1]
|
|
4030
4024
|
), /*isSmsValid*/
|
|
4031
|
-
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w =
|
|
4025
|
+
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = dt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
|
|
4032
4026
|
4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4033
|
-
p[2] ? "" : "InvalidField")) &&
|
|
4034
|
-
p[3] ? P ? P.p(p, C) : (P =
|
|
4027
|
+
p[2] ? "" : "InvalidField")) && B(i, "class", g), /*timer*/
|
|
4028
|
+
p[3] ? P ? P.p(p, C) : (P = mt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
|
|
4035
4029
|
32 && H !== (H = /*$_*/
|
|
4036
|
-
p[5]("activate") + "") &&
|
|
4037
|
-
32 &&
|
|
4038
|
-
p[5]("resend") + "") &&
|
|
4039
|
-
p[3] ? f ? f.p(p, C) : (f =
|
|
4040
|
-
8 && (
|
|
4030
|
+
p[5]("activate") + "") && F(L, H), C & /*$_*/
|
|
4031
|
+
32 && N !== (N = /*$_*/
|
|
4032
|
+
p[5]("resend") + "") && F(D, N), /*timer*/
|
|
4033
|
+
p[3] ? f ? f.p(p, C) : (f = pt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), C & /*timer*/
|
|
4034
|
+
8 && (S.disabled = /*timer*/
|
|
4041
4035
|
p[3]);
|
|
4042
4036
|
},
|
|
4043
4037
|
i: U,
|
|
4044
4038
|
o: U,
|
|
4045
4039
|
d(p) {
|
|
4046
|
-
p &&
|
|
4040
|
+
p && k(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ae = !1, ne(ue);
|
|
4047
4041
|
}
|
|
4048
4042
|
};
|
|
4049
4043
|
}
|
|
4050
|
-
function
|
|
4044
|
+
function li(e, t, r) {
|
|
4051
4045
|
let n;
|
|
4052
|
-
|
|
4053
|
-
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g,
|
|
4054
|
-
const
|
|
4055
|
-
|
|
4046
|
+
Xt(e, ei, (f) => r(5, n = f));
|
|
4047
|
+
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, y = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, A = Date.now() / 1e3 - L, S = 60 - Math.floor(A);
|
|
4048
|
+
const N = { numeric: /^[0-9]{0,6}$/ };
|
|
4049
|
+
ti({ withLocale: "en", translations: {} });
|
|
4056
4050
|
const D = () => {
|
|
4057
4051
|
fetch(d).then((p) => p.json()).then((p) => {
|
|
4058
4052
|
Object.keys(p).forEach((C) => {
|
|
4059
|
-
|
|
4053
|
+
ct(C, p[C]);
|
|
4060
4054
|
});
|
|
4061
4055
|
}).catch((p) => {
|
|
4062
4056
|
console.log(p);
|
|
4063
4057
|
});
|
|
4064
4058
|
};
|
|
4065
|
-
Object.keys(
|
|
4066
|
-
|
|
4059
|
+
Object.keys(ft).forEach((f) => {
|
|
4060
|
+
ct(f, ft[f]);
|
|
4067
4061
|
});
|
|
4068
|
-
const
|
|
4062
|
+
const j = async () => {
|
|
4069
4063
|
try {
|
|
4070
4064
|
if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${g}`, {
|
|
4071
4065
|
headers: {
|
|
@@ -4073,7 +4067,7 @@ function ci(e, t, r) {
|
|
|
4073
4067
|
accept: "application/json"
|
|
4074
4068
|
}
|
|
4075
4069
|
})).ok)
|
|
4076
|
-
r(2,
|
|
4070
|
+
r(2, y = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
|
|
4077
4071
|
else
|
|
4078
4072
|
throw window.postMessage(
|
|
4079
4073
|
{
|
|
@@ -4084,12 +4078,12 @@ function ci(e, t, r) {
|
|
|
4084
4078
|
}
|
|
4085
4079
|
},
|
|
4086
4080
|
window.location.href
|
|
4087
|
-
), r(2,
|
|
4081
|
+
), r(2, y = !1), new Error("Could not activate user");
|
|
4088
4082
|
} catch (f) {
|
|
4089
4083
|
console.log(f);
|
|
4090
4084
|
}
|
|
4091
|
-
},
|
|
4092
|
-
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))),
|
|
4085
|
+
}, ae = async () => {
|
|
4086
|
+
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), le();
|
|
4093
4087
|
try {
|
|
4094
4088
|
const f = await fetch(`${i}/v1/player/sms/token`, {
|
|
4095
4089
|
method: "POST",
|
|
@@ -4104,38 +4098,38 @@ function ci(e, t, r) {
|
|
|
4104
4098
|
})
|
|
4105
4099
|
}), p = await f.json();
|
|
4106
4100
|
if (f.ok)
|
|
4107
|
-
r(9, o = p.id), _ = !1,
|
|
4101
|
+
r(9, o = p.id), _ = !1, ue();
|
|
4108
4102
|
else
|
|
4109
4103
|
throw _ = !0, new Error("Failed to fetch");
|
|
4110
4104
|
} catch (f) {
|
|
4111
4105
|
_ = !0, console.error(f);
|
|
4112
4106
|
}
|
|
4107
|
+
}, ue = () => {
|
|
4108
|
+
S > 0 ? r(4, S--, S) : (clearInterval(T), r(3, T = !1), r(4, S = 60));
|
|
4113
4109
|
}, le = () => {
|
|
4114
|
-
|
|
4115
|
-
}, he = () => {
|
|
4116
|
-
B < 60 && r(3, T = setInterval(
|
|
4110
|
+
A < 60 && r(3, T = setInterval(
|
|
4117
4111
|
() => {
|
|
4118
|
-
|
|
4112
|
+
ue();
|
|
4119
4113
|
},
|
|
4120
4114
|
1e3
|
|
4121
4115
|
));
|
|
4122
|
-
},
|
|
4123
|
-
!
|
|
4116
|
+
}, V = (f) => {
|
|
4117
|
+
!N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
|
|
4124
4118
|
};
|
|
4125
|
-
|
|
4119
|
+
Yt(() => {
|
|
4126
4120
|
if (!a || !h) {
|
|
4127
4121
|
let f = JSON.parse(localStorage.getItem("playerData"));
|
|
4128
4122
|
r(10, a = f.playerid), r(11, h = f.number);
|
|
4129
4123
|
}
|
|
4130
|
-
return
|
|
4124
|
+
return le(), () => {
|
|
4131
4125
|
};
|
|
4132
4126
|
});
|
|
4133
4127
|
function R() {
|
|
4134
4128
|
g = this.value, r(1, g);
|
|
4135
4129
|
}
|
|
4136
|
-
const w = (f) =>
|
|
4130
|
+
const w = (f) => V(f);
|
|
4137
4131
|
function P(f) {
|
|
4138
|
-
|
|
4132
|
+
Me[f ? "unshift" : "push"](() => {
|
|
4139
4133
|
H = f, r(0, H);
|
|
4140
4134
|
});
|
|
4141
4135
|
}
|
|
@@ -4144,20 +4138,20 @@ function ci(e, t, r) {
|
|
|
4144
4138
|
}, e.$$.update = () => {
|
|
4145
4139
|
e.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
4146
4140
|
5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4147
|
-
32769 && l && H &&
|
|
4148
|
-
65537 && c && H &&
|
|
4149
|
-
16385 && u && H &&
|
|
4141
|
+
32769 && l && H && ri(H, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4142
|
+
65537 && c && H && ni(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4143
|
+
16385 && u && H && ii(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4150
4144
|
131072 && d && D();
|
|
4151
4145
|
}, [
|
|
4152
4146
|
H,
|
|
4153
4147
|
g,
|
|
4154
|
-
|
|
4148
|
+
y,
|
|
4155
4149
|
T,
|
|
4156
|
-
|
|
4150
|
+
S,
|
|
4157
4151
|
n,
|
|
4152
|
+
j,
|
|
4153
|
+
ae,
|
|
4158
4154
|
V,
|
|
4159
|
-
ue,
|
|
4160
|
-
X,
|
|
4161
4155
|
o,
|
|
4162
4156
|
a,
|
|
4163
4157
|
h,
|
|
@@ -4172,14 +4166,14 @@ function ci(e, t, r) {
|
|
|
4172
4166
|
P
|
|
4173
4167
|
];
|
|
4174
4168
|
}
|
|
4175
|
-
class
|
|
4169
|
+
class hi extends hr {
|
|
4176
4170
|
constructor(t) {
|
|
4177
|
-
super(),
|
|
4171
|
+
super(), ur(
|
|
4178
4172
|
this,
|
|
4179
4173
|
t,
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4174
|
+
li,
|
|
4175
|
+
ui,
|
|
4176
|
+
gt,
|
|
4183
4177
|
{
|
|
4184
4178
|
endpoint: 12,
|
|
4185
4179
|
tokenid: 9,
|
|
@@ -4191,7 +4185,7 @@ class fi extends fr {
|
|
|
4191
4185
|
clientstylingurl: 16,
|
|
4192
4186
|
translationurl: 17
|
|
4193
4187
|
},
|
|
4194
|
-
|
|
4188
|
+
oi
|
|
4195
4189
|
);
|
|
4196
4190
|
}
|
|
4197
4191
|
get endpoint() {
|
|
@@ -4249,7 +4243,7 @@ class fi extends fr {
|
|
|
4249
4243
|
this.$$set({ translationurl: t }), $();
|
|
4250
4244
|
}
|
|
4251
4245
|
}
|
|
4252
|
-
|
|
4246
|
+
lr(hi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4253
4247
|
export {
|
|
4254
|
-
|
|
4248
|
+
hi as G
|
|
4255
4249
|
};
|