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