@everymatrix/general-player-login-form-nd 1.76.3 → 1.76.5
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/{GeneralPlayerLoginFormNd-0zK-AsMe.js → GeneralPlayerLoginFormNd-1DxGEPP9.js} +854 -819
- package/components/{GeneralPlayerLoginFormNd-BrD1TESB.js → GeneralPlayerLoginFormNd-CUIevjh8.js} +831 -796
- package/components/GeneralPlayerLoginFormNd-Dv0P7KwS.cjs +18 -0
- package/components/{GeneralPlayerSmsVerificationForm-CvbvUmlt.js → GeneralPlayerSmsVerificationForm-BKWeCfRG.js} +25 -25
- package/components/{GeneralPlayerSmsVerificationForm-9nSotkvC.js → GeneralPlayerSmsVerificationForm-DJahVXQg.js} +22 -22
- package/components/{GeneralPlayerSmsVerificationForm-uyVJACCg.cjs → GeneralPlayerSmsVerificationForm-Dx63x365.cjs} +1 -1
- package/es2015/general-player-login-form-nd.cjs +1 -1
- package/es2015/general-player-login-form-nd.js +1 -1
- package/esnext/general-player-login-form-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerLoginFormNd-BVbXxEl6.cjs +0 -18
package/components/{GeneralPlayerLoginFormNd-BrD1TESB.js → GeneralPlayerLoginFormNd-CUIevjh8.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function Z() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Sr(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Zt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function Le(e) {
|
|
10
|
+
e.forEach(Sr);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Vt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Pr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let tt;
|
|
19
|
-
function
|
|
19
|
+
function qt(e, t) {
|
|
20
20
|
return e === t ? !0 : (tt || (tt = document.createElement("a")), tt.href = t, e === tt.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function an(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Tr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Er(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function ln(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Tr(t, r));
|
|
36
36
|
}
|
|
37
37
|
function m(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function un(e, t, r) {
|
|
41
|
+
const n = cn(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
const i = E("style");
|
|
44
|
+
i.id = t, i.textContent = r, hn(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function cn(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function sn(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function hn(e, t) {
|
|
58
58
|
return m(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,10 +67,10 @@ function L(e, t, r) {
|
|
|
67
67
|
function I(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function E(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function C(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
76
|
function N(e) {
|
|
@@ -79,10 +79,10 @@ function N(e) {
|
|
|
79
79
|
function j() {
|
|
80
80
|
return N(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function fn() {
|
|
83
83
|
return N("");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function se(e, t, r, n) {
|
|
86
86
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
87
|
}
|
|
88
88
|
function h(e, t, r) {
|
|
@@ -92,7 +92,7 @@ function W(e, t, r) {
|
|
|
92
92
|
const n = t.toLowerCase();
|
|
93
93
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : h(e, t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function dn(e) {
|
|
96
96
|
return Array.from(e.childNodes);
|
|
97
97
|
}
|
|
98
98
|
function te(e, t) {
|
|
@@ -102,7 +102,7 @@ function te(e, t) {
|
|
|
102
102
|
function rt(e, t) {
|
|
103
103
|
e.value = t ?? "";
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function mn(e) {
|
|
106
106
|
const t = {};
|
|
107
107
|
return e.childNodes.forEach(
|
|
108
108
|
/** @param {Element} node */
|
|
@@ -111,87 +111,87 @@ function cn(e) {
|
|
|
111
111
|
}
|
|
112
112
|
), t;
|
|
113
113
|
}
|
|
114
|
-
let
|
|
115
|
-
function
|
|
116
|
-
|
|
114
|
+
let Ve;
|
|
115
|
+
function je(e) {
|
|
116
|
+
Ve = e;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
if (!
|
|
118
|
+
function pn() {
|
|
119
|
+
if (!Ve)
|
|
120
120
|
throw new Error("Function called outside component initialization");
|
|
121
|
-
return
|
|
121
|
+
return Ve;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
123
|
+
function gn(e) {
|
|
124
|
+
pn().$$.on_mount.push(e);
|
|
125
125
|
}
|
|
126
126
|
const He = [], ut = [];
|
|
127
127
|
let Be = [];
|
|
128
|
-
const
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
128
|
+
const Jt = [], bn = /* @__PURE__ */ Promise.resolve();
|
|
129
|
+
let Ht = !1;
|
|
130
|
+
function vn() {
|
|
131
|
+
Ht || (Ht = !0, bn.then(K));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Bt(e) {
|
|
134
134
|
Be.push(e);
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const yt = /* @__PURE__ */ new Set();
|
|
137
137
|
let Pe = 0;
|
|
138
138
|
function K() {
|
|
139
139
|
if (Pe !== 0)
|
|
140
140
|
return;
|
|
141
|
-
const e =
|
|
141
|
+
const e = Ve;
|
|
142
142
|
do {
|
|
143
143
|
try {
|
|
144
144
|
for (; Pe < He.length; ) {
|
|
145
145
|
const t = He[Pe];
|
|
146
|
-
Pe++,
|
|
146
|
+
Pe++, je(t), yn(t.$$);
|
|
147
147
|
}
|
|
148
148
|
} catch (t) {
|
|
149
149
|
throw He.length = 0, Pe = 0, t;
|
|
150
150
|
}
|
|
151
|
-
for (
|
|
151
|
+
for (je(null), He.length = 0, Pe = 0; ut.length; )
|
|
152
152
|
ut.pop()();
|
|
153
153
|
for (let t = 0; t < Be.length; t += 1) {
|
|
154
154
|
const r = Be[t];
|
|
155
|
-
|
|
155
|
+
yt.has(r) || (yt.add(r), r());
|
|
156
156
|
}
|
|
157
157
|
Be.length = 0;
|
|
158
158
|
} while (He.length);
|
|
159
|
-
for (;
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
for (; Jt.length; )
|
|
160
|
+
Jt.pop()();
|
|
161
|
+
Ht = !1, yt.clear(), je(e);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function yn(e) {
|
|
164
164
|
if (e.fragment !== null) {
|
|
165
|
-
e.update(),
|
|
165
|
+
e.update(), Le(e.before_update);
|
|
166
166
|
const t = e.dirty;
|
|
167
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
167
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Bt);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function _n(e) {
|
|
171
171
|
const t = [], r = [];
|
|
172
172
|
Be.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Be = t;
|
|
173
173
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
e && e.i && (
|
|
174
|
+
const wn = /* @__PURE__ */ new Set();
|
|
175
|
+
function En(e, t) {
|
|
176
|
+
e && e.i && (wn.delete(e), e.i(t));
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function xn(e, t, r) {
|
|
179
179
|
const { fragment: n, after_update: i } = e.$$;
|
|
180
|
-
n && n.m(t, r),
|
|
181
|
-
const o = e.$$.on_mount.map(
|
|
182
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
183
|
-
}), i.forEach(
|
|
180
|
+
n && n.m(t, r), Bt(() => {
|
|
181
|
+
const o = e.$$.on_mount.map(Sr).filter(Vt);
|
|
182
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Le(o), e.$$.on_mount = [];
|
|
183
|
+
}), i.forEach(Bt);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Sn(e, t) {
|
|
186
186
|
const r = e.$$;
|
|
187
|
-
r.fragment !== null && (
|
|
187
|
+
r.fragment !== null && (_n(r.after_update), Le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
e.$$.dirty[0] === -1 && (He.push(e),
|
|
189
|
+
function Pn(e, t) {
|
|
190
|
+
e.$$.dirty[0] === -1 && (He.push(e), vn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const c =
|
|
194
|
-
|
|
192
|
+
function Tn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
193
|
+
const c = Ve;
|
|
194
|
+
je(e);
|
|
195
195
|
const l = e.$$ = {
|
|
196
196
|
fragment: null,
|
|
197
197
|
ctx: [],
|
|
@@ -199,7 +199,7 @@ function En(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
199
199
|
props: o,
|
|
200
200
|
update: Z,
|
|
201
201
|
not_equal: i,
|
|
202
|
-
bound:
|
|
202
|
+
bound: Zt(),
|
|
203
203
|
// lifecycle
|
|
204
204
|
on_mount: [],
|
|
205
205
|
on_destroy: [],
|
|
@@ -208,7 +208,7 @@ function En(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
208
208
|
after_update: [],
|
|
209
209
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
210
210
|
// everything else
|
|
211
|
-
callbacks:
|
|
211
|
+
callbacks: Zt(),
|
|
212
212
|
dirty: a,
|
|
213
213
|
skip_bound: !1,
|
|
214
214
|
root: t.target || c.$$.root
|
|
@@ -216,20 +216,20 @@ function En(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
216
216
|
s && s(l.root);
|
|
217
217
|
let u = !1;
|
|
218
218
|
if (l.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
|
|
219
|
-
const
|
|
220
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] =
|
|
221
|
-
}) : [], l.update(), u = !0,
|
|
219
|
+
const y = b.length ? b[0] : d;
|
|
220
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), u && Pn(e, f)), d;
|
|
221
|
+
}) : [], l.update(), u = !0, Le(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
222
222
|
if (t.hydrate) {
|
|
223
|
-
const f =
|
|
223
|
+
const f = dn(t.target);
|
|
224
224
|
l.fragment && l.fragment.l(f), f.forEach(I);
|
|
225
225
|
} else
|
|
226
226
|
l.fragment && l.fragment.c();
|
|
227
|
-
t.intro &&
|
|
227
|
+
t.intro && En(e.$$.fragment), xn(e, t.target, t.anchor), K();
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
je(c);
|
|
230
230
|
}
|
|
231
|
-
let
|
|
232
|
-
typeof HTMLElement == "function" && (
|
|
231
|
+
let Hr;
|
|
232
|
+
typeof HTMLElement == "function" && (Hr = class extends HTMLElement {
|
|
233
233
|
/** The Svelte component constructor */
|
|
234
234
|
$$ctor;
|
|
235
235
|
/** Slots */
|
|
@@ -271,7 +271,7 @@ typeof HTMLElement == "function" && (xr = class extends HTMLElement {
|
|
|
271
271
|
let o;
|
|
272
272
|
return {
|
|
273
273
|
c: function() {
|
|
274
|
-
o =
|
|
274
|
+
o = E("slot"), i !== "default" && h(o, "name", i);
|
|
275
275
|
},
|
|
276
276
|
/**
|
|
277
277
|
* @param {HTMLElement} target
|
|
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (xr = class extends HTMLElement {
|
|
|
288
288
|
};
|
|
289
289
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
290
290
|
return;
|
|
291
|
-
const t = {}, r =
|
|
291
|
+
const t = {}, r = mn(this);
|
|
292
292
|
for (const i of this.$$s)
|
|
293
293
|
i in r && (t[i] = [e(i)]);
|
|
294
294
|
for (const i of this.attributes) {
|
|
@@ -375,8 +375,8 @@ function ot(e, t, r, n) {
|
|
|
375
375
|
return t;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
let s = class extends
|
|
378
|
+
function Hn(e, t, r, n, i, o) {
|
|
379
|
+
let s = class extends Hr {
|
|
380
380
|
constructor() {
|
|
381
381
|
super(e, r, i), this.$$p_d = t;
|
|
382
382
|
}
|
|
@@ -404,7 +404,7 @@ function xn(e, t, r, n, i, o) {
|
|
|
404
404
|
}), e.element = /** @type {any} */
|
|
405
405
|
s, s;
|
|
406
406
|
}
|
|
407
|
-
class
|
|
407
|
+
class Bn {
|
|
408
408
|
/**
|
|
409
409
|
* ### PRIVATE API
|
|
410
410
|
*
|
|
@@ -423,7 +423,7 @@ class Sn {
|
|
|
423
423
|
$$set = void 0;
|
|
424
424
|
/** @returns {void} */
|
|
425
425
|
$destroy() {
|
|
426
|
-
|
|
426
|
+
Sn(this, 1), this.$destroy = Z;
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
429
429
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -432,7 +432,7 @@ class Sn {
|
|
|
432
432
|
* @returns {() => void}
|
|
433
433
|
*/
|
|
434
434
|
$on(t, r) {
|
|
435
|
-
if (!
|
|
435
|
+
if (!Vt(r))
|
|
436
436
|
return Z;
|
|
437
437
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
438
438
|
return n.push(r), () => {
|
|
@@ -445,11 +445,11 @@ class Sn {
|
|
|
445
445
|
* @returns {void}
|
|
446
446
|
*/
|
|
447
447
|
$set(t) {
|
|
448
|
-
this.$$set && !
|
|
448
|
+
this.$$set && !an(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
const
|
|
452
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
451
|
+
const An = "4";
|
|
452
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(An);
|
|
453
453
|
/*! *****************************************************************************
|
|
454
454
|
Copyright (c) Microsoft Corporation.
|
|
455
455
|
|
|
@@ -464,43 +464,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
464
464
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
465
465
|
PERFORMANCE OF THIS SOFTWARE.
|
|
466
466
|
***************************************************************************** */
|
|
467
|
-
var
|
|
468
|
-
return
|
|
467
|
+
var At = function(e, t) {
|
|
468
|
+
return At = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
469
469
|
r.__proto__ = n;
|
|
470
470
|
} || function(r, n) {
|
|
471
471
|
for (var i in n)
|
|
472
472
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
473
|
-
},
|
|
473
|
+
}, At(e, t);
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function We(e, t) {
|
|
476
476
|
if (typeof t != "function" && t !== null)
|
|
477
477
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
478
|
-
|
|
478
|
+
At(e, t);
|
|
479
479
|
function r() {
|
|
480
480
|
this.constructor = e;
|
|
481
481
|
}
|
|
482
482
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
483
483
|
}
|
|
484
|
-
|
|
485
|
-
return E = Object.assign || function(t) {
|
|
486
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
487
|
-
r = arguments[n];
|
|
488
|
-
for (var o in r)
|
|
489
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
490
|
-
}
|
|
491
|
-
return t;
|
|
492
|
-
}, E.apply(this, arguments);
|
|
493
|
-
};
|
|
494
|
-
function Tn(e, t) {
|
|
495
|
-
var r = {};
|
|
496
|
-
for (var n in e)
|
|
497
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
498
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
499
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
500
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
501
|
-
return r;
|
|
502
|
-
}
|
|
503
|
-
function Ht(e) {
|
|
484
|
+
function It(e) {
|
|
504
485
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
505
486
|
if (r)
|
|
506
487
|
return r.call(e);
|
|
@@ -512,7 +493,7 @@ function Ht(e) {
|
|
|
512
493
|
};
|
|
513
494
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
514
495
|
}
|
|
515
|
-
function
|
|
496
|
+
function Ot(e, t) {
|
|
516
497
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
517
498
|
if (!r)
|
|
518
499
|
return e;
|
|
@@ -532,22 +513,22 @@ function Bt(e, t) {
|
|
|
532
513
|
}
|
|
533
514
|
return o;
|
|
534
515
|
}
|
|
535
|
-
function
|
|
536
|
-
if (
|
|
516
|
+
function Ct(e, t, r) {
|
|
517
|
+
if (arguments.length === 2)
|
|
537
518
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
538
519
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
539
520
|
return e.concat(o || t);
|
|
540
521
|
}
|
|
541
|
-
function
|
|
522
|
+
function ae(e) {
|
|
542
523
|
return typeof e == "function";
|
|
543
524
|
}
|
|
544
|
-
function
|
|
525
|
+
function Br(e) {
|
|
545
526
|
var t = function(n) {
|
|
546
527
|
Error.call(n), n.stack = new Error().stack;
|
|
547
528
|
}, r = e(t);
|
|
548
529
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
549
530
|
}
|
|
550
|
-
var
|
|
531
|
+
var _t = Br(function(e) {
|
|
551
532
|
return function(r) {
|
|
552
533
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
553
534
|
` + r.map(function(n, i) {
|
|
@@ -556,13 +537,13 @@ var yt = Sr(function(e) {
|
|
|
556
537
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
557
538
|
};
|
|
558
539
|
});
|
|
559
|
-
function
|
|
540
|
+
function Lt(e, t) {
|
|
560
541
|
if (e) {
|
|
561
542
|
var r = e.indexOf(t);
|
|
562
543
|
0 <= r && e.splice(r, 1);
|
|
563
544
|
}
|
|
564
545
|
}
|
|
565
|
-
var
|
|
546
|
+
var dt = function() {
|
|
566
547
|
function e(t) {
|
|
567
548
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
568
549
|
}
|
|
@@ -574,7 +555,7 @@ var ft = function() {
|
|
|
574
555
|
if (s)
|
|
575
556
|
if (this._parentage = null, Array.isArray(s))
|
|
576
557
|
try {
|
|
577
|
-
for (var a =
|
|
558
|
+
for (var a = It(s), c = a.next(); !c.done; c = a.next()) {
|
|
578
559
|
var l = c.value;
|
|
579
560
|
l.remove(this);
|
|
580
561
|
}
|
|
@@ -591,22 +572,22 @@ var ft = function() {
|
|
|
591
572
|
else
|
|
592
573
|
s.remove(this);
|
|
593
574
|
var u = this.initialTeardown;
|
|
594
|
-
if (
|
|
575
|
+
if (ae(u))
|
|
595
576
|
try {
|
|
596
577
|
u();
|
|
597
578
|
} catch (g) {
|
|
598
|
-
o = g instanceof
|
|
579
|
+
o = g instanceof _t ? g.errors : [g];
|
|
599
580
|
}
|
|
600
581
|
var f = this._finalizers;
|
|
601
582
|
if (f) {
|
|
602
583
|
this._finalizers = null;
|
|
603
584
|
try {
|
|
604
|
-
for (var d =
|
|
605
|
-
var
|
|
585
|
+
for (var d = It(f), b = d.next(); !b.done; b = d.next()) {
|
|
586
|
+
var y = b.value;
|
|
606
587
|
try {
|
|
607
|
-
|
|
588
|
+
Qt(y);
|
|
608
589
|
} catch (g) {
|
|
609
|
-
o = o ?? [], g instanceof
|
|
590
|
+
o = o ?? [], g instanceof _t ? o = Ct(Ct([], Ot(o)), Ot(g.errors)) : o.push(g);
|
|
610
591
|
}
|
|
611
592
|
}
|
|
612
593
|
} catch (g) {
|
|
@@ -621,13 +602,13 @@ var ft = function() {
|
|
|
621
602
|
}
|
|
622
603
|
}
|
|
623
604
|
if (o)
|
|
624
|
-
throw new
|
|
605
|
+
throw new _t(o);
|
|
625
606
|
}
|
|
626
607
|
}, e.prototype.add = function(t) {
|
|
627
608
|
var r;
|
|
628
609
|
if (t && t !== this)
|
|
629
610
|
if (this.closed)
|
|
630
|
-
|
|
611
|
+
Qt(t);
|
|
631
612
|
else {
|
|
632
613
|
if (t instanceof e) {
|
|
633
614
|
if (t.closed || t._hasParent(this))
|
|
@@ -644,56 +625,52 @@ var ft = function() {
|
|
|
644
625
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
645
626
|
}, e.prototype._removeParent = function(t) {
|
|
646
627
|
var r = this._parentage;
|
|
647
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
628
|
+
r === t ? this._parentage = null : Array.isArray(r) && Lt(r, t);
|
|
648
629
|
}, e.prototype.remove = function(t) {
|
|
649
630
|
var r = this._finalizers;
|
|
650
|
-
r &&
|
|
631
|
+
r && Lt(r, t), t instanceof e && t._removeParent(this);
|
|
651
632
|
}, e.EMPTY = function() {
|
|
652
633
|
var t = new e();
|
|
653
634
|
return t.closed = !0, t;
|
|
654
635
|
}(), e;
|
|
655
|
-
}(),
|
|
656
|
-
function
|
|
657
|
-
return e instanceof
|
|
658
|
-
}
|
|
659
|
-
function
|
|
660
|
-
|
|
661
|
-
}
|
|
662
|
-
var
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
Promise: void 0,
|
|
666
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
667
|
-
useDeprecatedNextContext: !1
|
|
668
|
-
}, Bn = {
|
|
636
|
+
}(), Ar = dt.EMPTY;
|
|
637
|
+
function Ir(e) {
|
|
638
|
+
return e instanceof dt || e && "closed" in e && ae(e.remove) && ae(e.add) && ae(e.unsubscribe);
|
|
639
|
+
}
|
|
640
|
+
function Qt(e) {
|
|
641
|
+
ae(e) ? e() : e.unsubscribe();
|
|
642
|
+
}
|
|
643
|
+
var In = {
|
|
644
|
+
Promise: void 0
|
|
645
|
+
}, On = {
|
|
669
646
|
setTimeout: function(e, t) {
|
|
670
647
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
671
648
|
r[n - 2] = arguments[n];
|
|
672
|
-
return setTimeout.apply(void 0,
|
|
649
|
+
return setTimeout.apply(void 0, Ct([e, t], Ot(r)));
|
|
673
650
|
},
|
|
674
651
|
clearTimeout: function(e) {
|
|
675
652
|
return clearTimeout(e);
|
|
676
653
|
},
|
|
677
654
|
delegate: void 0
|
|
678
655
|
};
|
|
679
|
-
function
|
|
680
|
-
|
|
656
|
+
function Cn(e) {
|
|
657
|
+
On.setTimeout(function() {
|
|
681
658
|
throw e;
|
|
682
659
|
});
|
|
683
660
|
}
|
|
684
|
-
function
|
|
661
|
+
function Yt() {
|
|
685
662
|
}
|
|
686
663
|
function st(e) {
|
|
687
664
|
e();
|
|
688
665
|
}
|
|
689
|
-
var
|
|
690
|
-
|
|
666
|
+
var Or = function(e) {
|
|
667
|
+
We(t, e);
|
|
691
668
|
function t(r) {
|
|
692
669
|
var n = e.call(this) || this;
|
|
693
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
670
|
+
return n.isStopped = !1, r ? (n.destination = r, Ir(r) && r.add(n)) : n.destination = Nn, n;
|
|
694
671
|
}
|
|
695
672
|
return t.create = function(r, n, i) {
|
|
696
|
-
return new
|
|
673
|
+
return new Mt(r, n, i);
|
|
697
674
|
}, t.prototype.next = function(r) {
|
|
698
675
|
this.isStopped || this._next(r);
|
|
699
676
|
}, t.prototype.error = function(r) {
|
|
@@ -717,7 +694,7 @@ var Hr = function(e) {
|
|
|
717
694
|
this.unsubscribe();
|
|
718
695
|
}
|
|
719
696
|
}, t;
|
|
720
|
-
}(
|
|
697
|
+
}(dt), Ln = function() {
|
|
721
698
|
function e(t) {
|
|
722
699
|
this.partialObserver = t;
|
|
723
700
|
}
|
|
@@ -748,43 +725,43 @@ var Hr = function(e) {
|
|
|
748
725
|
nt(r);
|
|
749
726
|
}
|
|
750
727
|
}, e;
|
|
751
|
-
}(),
|
|
752
|
-
|
|
728
|
+
}(), Mt = function(e) {
|
|
729
|
+
We(t, e);
|
|
753
730
|
function t(r, n, i) {
|
|
754
731
|
var o = e.call(this) || this, s;
|
|
755
|
-
return
|
|
732
|
+
return ae(r) || !r ? s = {
|
|
756
733
|
next: r ?? void 0,
|
|
757
734
|
error: n ?? void 0,
|
|
758
735
|
complete: i ?? void 0
|
|
759
|
-
} : s = r, o.destination = new
|
|
736
|
+
} : s = r, o.destination = new Ln(s), o;
|
|
760
737
|
}
|
|
761
738
|
return t;
|
|
762
|
-
}(
|
|
739
|
+
}(Or);
|
|
763
740
|
function nt(e) {
|
|
764
|
-
|
|
741
|
+
Cn(e);
|
|
765
742
|
}
|
|
766
|
-
function
|
|
743
|
+
function Mn(e) {
|
|
767
744
|
throw e;
|
|
768
745
|
}
|
|
769
|
-
var
|
|
746
|
+
var Nn = {
|
|
770
747
|
closed: !0,
|
|
771
|
-
next:
|
|
772
|
-
error:
|
|
773
|
-
complete:
|
|
774
|
-
},
|
|
748
|
+
next: Yt,
|
|
749
|
+
error: Mn,
|
|
750
|
+
complete: Yt
|
|
751
|
+
}, Rn = function() {
|
|
775
752
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
776
753
|
}();
|
|
777
|
-
function
|
|
754
|
+
function Un(e) {
|
|
778
755
|
return e;
|
|
779
756
|
}
|
|
780
|
-
function
|
|
781
|
-
return e.length === 0 ?
|
|
757
|
+
function Fn(e) {
|
|
758
|
+
return e.length === 0 ? Un : e.length === 1 ? e[0] : function(r) {
|
|
782
759
|
return e.reduce(function(n, i) {
|
|
783
760
|
return i(n);
|
|
784
761
|
}, r);
|
|
785
762
|
};
|
|
786
763
|
}
|
|
787
|
-
var
|
|
764
|
+
var Kt = function() {
|
|
788
765
|
function e(t) {
|
|
789
766
|
t && (this._subscribe = t);
|
|
790
767
|
}
|
|
@@ -792,7 +769,7 @@ var qt = function() {
|
|
|
792
769
|
var r = new e();
|
|
793
770
|
return r.source = this, r.operator = t, r;
|
|
794
771
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
795
|
-
var i = this, o =
|
|
772
|
+
var i = this, o = kn(t) ? t : new Mt(t, r, n);
|
|
796
773
|
return st(function() {
|
|
797
774
|
var s = i, a = s.operator, c = s.source;
|
|
798
775
|
o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -805,8 +782,8 @@ var qt = function() {
|
|
|
805
782
|
}
|
|
806
783
|
}, e.prototype.forEach = function(t, r) {
|
|
807
784
|
var n = this;
|
|
808
|
-
return r =
|
|
809
|
-
var s = new
|
|
785
|
+
return r = er(r), new r(function(i, o) {
|
|
786
|
+
var s = new Mt({
|
|
810
787
|
next: function(a) {
|
|
811
788
|
try {
|
|
812
789
|
t(a);
|
|
@@ -822,15 +799,15 @@ var qt = function() {
|
|
|
822
799
|
}, e.prototype._subscribe = function(t) {
|
|
823
800
|
var r;
|
|
824
801
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
825
|
-
}, e.prototype[
|
|
802
|
+
}, e.prototype[Rn] = function() {
|
|
826
803
|
return this;
|
|
827
804
|
}, e.prototype.pipe = function() {
|
|
828
805
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
829
806
|
t[r] = arguments[r];
|
|
830
|
-
return
|
|
807
|
+
return Fn(t)(this);
|
|
831
808
|
}, e.prototype.toPromise = function(t) {
|
|
832
809
|
var r = this;
|
|
833
|
-
return t =
|
|
810
|
+
return t = er(t), new t(function(n, i) {
|
|
834
811
|
var o;
|
|
835
812
|
r.subscribe(function(s) {
|
|
836
813
|
return o = s;
|
|
@@ -844,32 +821,32 @@ var qt = function() {
|
|
|
844
821
|
return new e(t);
|
|
845
822
|
}, e;
|
|
846
823
|
}();
|
|
847
|
-
function
|
|
824
|
+
function er(e) {
|
|
848
825
|
var t;
|
|
849
|
-
return (t = e ??
|
|
826
|
+
return (t = e ?? In.Promise) !== null && t !== void 0 ? t : Promise;
|
|
850
827
|
}
|
|
851
|
-
function
|
|
852
|
-
return e &&
|
|
828
|
+
function Dn(e) {
|
|
829
|
+
return e && ae(e.next) && ae(e.error) && ae(e.complete);
|
|
853
830
|
}
|
|
854
|
-
function
|
|
855
|
-
return e && e instanceof
|
|
831
|
+
function kn(e) {
|
|
832
|
+
return e && e instanceof Or || Dn(e) && Ir(e);
|
|
856
833
|
}
|
|
857
|
-
var
|
|
834
|
+
var $n = Br(function(e) {
|
|
858
835
|
return function() {
|
|
859
836
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
860
837
|
};
|
|
861
|
-
}),
|
|
862
|
-
|
|
838
|
+
}), Cr = function(e) {
|
|
839
|
+
We(t, e);
|
|
863
840
|
function t() {
|
|
864
841
|
var r = e.call(this) || this;
|
|
865
842
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
866
843
|
}
|
|
867
844
|
return t.prototype.lift = function(r) {
|
|
868
|
-
var n = new
|
|
845
|
+
var n = new tr(this, this);
|
|
869
846
|
return n.operator = r, n;
|
|
870
847
|
}, t.prototype._throwIfClosed = function() {
|
|
871
848
|
if (this.closed)
|
|
872
|
-
throw new
|
|
849
|
+
throw new $n();
|
|
873
850
|
}, t.prototype.next = function(r) {
|
|
874
851
|
var n = this;
|
|
875
852
|
st(function() {
|
|
@@ -877,7 +854,7 @@ var Fn = Sr(function(e) {
|
|
|
877
854
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
878
855
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
879
856
|
try {
|
|
880
|
-
for (var s =
|
|
857
|
+
for (var s = It(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
881
858
|
var c = a.value;
|
|
882
859
|
c.next(r);
|
|
883
860
|
}
|
|
@@ -926,20 +903,20 @@ var Fn = Sr(function(e) {
|
|
|
926
903
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
927
904
|
}, t.prototype._innerSubscribe = function(r) {
|
|
928
905
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
929
|
-
return o || s ?
|
|
930
|
-
n.currentObservers = null,
|
|
906
|
+
return o || s ? Ar : (this.currentObservers = null, a.push(r), new dt(function() {
|
|
907
|
+
n.currentObservers = null, Lt(a, r);
|
|
931
908
|
}));
|
|
932
909
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
933
910
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
934
911
|
i ? r.error(o) : s && r.complete();
|
|
935
912
|
}, t.prototype.asObservable = function() {
|
|
936
|
-
var r = new
|
|
913
|
+
var r = new Kt();
|
|
937
914
|
return r.source = this, r;
|
|
938
915
|
}, t.create = function(r, n) {
|
|
939
|
-
return new
|
|
916
|
+
return new tr(r, n);
|
|
940
917
|
}, t;
|
|
941
|
-
}(
|
|
942
|
-
|
|
918
|
+
}(Kt), tr = function(e) {
|
|
919
|
+
We(t, e);
|
|
943
920
|
function t(r, n) {
|
|
944
921
|
var i = e.call(this) || this;
|
|
945
922
|
return i.destination = r, i.source = n, i;
|
|
@@ -955,17 +932,17 @@ var Fn = Sr(function(e) {
|
|
|
955
932
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
956
933
|
}, t.prototype._subscribe = function(r) {
|
|
957
934
|
var n, i;
|
|
958
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
935
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ar;
|
|
959
936
|
}, t;
|
|
960
|
-
}(
|
|
937
|
+
}(Cr), Lr = {
|
|
961
938
|
now: function() {
|
|
962
|
-
return (
|
|
939
|
+
return (Lr.delegate || Date).now();
|
|
963
940
|
},
|
|
964
941
|
delegate: void 0
|
|
965
|
-
},
|
|
966
|
-
|
|
942
|
+
}, Gn = function(e) {
|
|
943
|
+
We(t, e);
|
|
967
944
|
function t(r, n, i) {
|
|
968
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
945
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lr);
|
|
969
946
|
var o = e.call(this) || this;
|
|
970
947
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
971
948
|
}
|
|
@@ -985,24 +962,24 @@ var Fn = Sr(function(e) {
|
|
|
985
962
|
l && o.splice(0, l + 1);
|
|
986
963
|
}
|
|
987
964
|
}, t;
|
|
988
|
-
}(
|
|
989
|
-
const
|
|
990
|
-
if (
|
|
991
|
-
const r = new
|
|
992
|
-
|
|
965
|
+
}(Cr);
|
|
966
|
+
const rr = [], nr = {}, jn = (e, t = 0) => {
|
|
967
|
+
if (rr.indexOf(e) == -1) {
|
|
968
|
+
const r = new Gn(t);
|
|
969
|
+
nr[e] = r, rr.push(e);
|
|
993
970
|
}
|
|
994
|
-
return
|
|
971
|
+
return nr[e];
|
|
995
972
|
}, Te = [];
|
|
996
|
-
function
|
|
973
|
+
function Vn(e, t) {
|
|
997
974
|
return {
|
|
998
|
-
subscribe:
|
|
975
|
+
subscribe: mt(e, t).subscribe
|
|
999
976
|
};
|
|
1000
977
|
}
|
|
1001
|
-
function
|
|
978
|
+
function mt(e, t = Z) {
|
|
1002
979
|
let r;
|
|
1003
980
|
const n = /* @__PURE__ */ new Set();
|
|
1004
981
|
function i(a) {
|
|
1005
|
-
if (
|
|
982
|
+
if (Pr(e, a) && (e = a, r)) {
|
|
1006
983
|
const c = !Te.length;
|
|
1007
984
|
for (const l of n)
|
|
1008
985
|
l[1](), Te.push(l, e);
|
|
@@ -1024,12 +1001,12 @@ function dt(e, t = Z) {
|
|
|
1024
1001
|
}
|
|
1025
1002
|
return { set: i, update: o, subscribe: s };
|
|
1026
1003
|
}
|
|
1027
|
-
function
|
|
1004
|
+
function Me(e, t, r) {
|
|
1028
1005
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1029
1006
|
if (!i.every(Boolean))
|
|
1030
1007
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1031
1008
|
const o = t.length < 2;
|
|
1032
|
-
return
|
|
1009
|
+
return Vn(r, (s, a) => {
|
|
1033
1010
|
let c = !1;
|
|
1034
1011
|
const l = [];
|
|
1035
1012
|
let u = 0, f = Z;
|
|
@@ -1037,13 +1014,13 @@ function Ne(e, t, r) {
|
|
|
1037
1014
|
if (u)
|
|
1038
1015
|
return;
|
|
1039
1016
|
f();
|
|
1040
|
-
const
|
|
1041
|
-
o ? s(
|
|
1017
|
+
const y = t(n ? l[0] : l, s, a);
|
|
1018
|
+
o ? s(y) : f = Vt(y) ? y : Z;
|
|
1042
1019
|
}, b = i.map(
|
|
1043
|
-
(
|
|
1044
|
-
|
|
1045
|
-
(
|
|
1046
|
-
l[g] =
|
|
1020
|
+
(y, g) => Tr(
|
|
1021
|
+
y,
|
|
1022
|
+
(x) => {
|
|
1023
|
+
l[g] = x, u &= ~(1 << g), c && d();
|
|
1047
1024
|
},
|
|
1048
1025
|
() => {
|
|
1049
1026
|
u |= 1 << g;
|
|
@@ -1051,118 +1028,157 @@ function Ne(e, t, r) {
|
|
|
1051
1028
|
)
|
|
1052
1029
|
);
|
|
1053
1030
|
return c = !0, d(), function() {
|
|
1054
|
-
|
|
1031
|
+
Le(b), f(), c = !1;
|
|
1055
1032
|
};
|
|
1056
1033
|
});
|
|
1057
1034
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1035
|
+
function zn(e) {
|
|
1036
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1060
1037
|
}
|
|
1061
|
-
var
|
|
1062
|
-
return
|
|
1038
|
+
var Xn = function(t) {
|
|
1039
|
+
return Wn(t) && !Zn(t);
|
|
1063
1040
|
};
|
|
1064
|
-
function
|
|
1041
|
+
function Wn(e) {
|
|
1065
1042
|
return !!e && typeof e == "object";
|
|
1066
1043
|
}
|
|
1067
|
-
function
|
|
1044
|
+
function Zn(e) {
|
|
1068
1045
|
var t = Object.prototype.toString.call(e);
|
|
1069
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1046
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qn(e);
|
|
1070
1047
|
}
|
|
1071
|
-
var
|
|
1072
|
-
function
|
|
1073
|
-
return e.$$typeof ===
|
|
1048
|
+
var qn = typeof Symbol == "function" && Symbol.for, Jn = qn ? Symbol.for("react.element") : 60103;
|
|
1049
|
+
function Qn(e) {
|
|
1050
|
+
return e.$$typeof === Jn;
|
|
1074
1051
|
}
|
|
1075
|
-
function
|
|
1052
|
+
function Yn(e) {
|
|
1076
1053
|
return Array.isArray(e) ? [] : {};
|
|
1077
1054
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1055
|
+
function ze(e, t) {
|
|
1056
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ae(Yn(e), e, t) : e;
|
|
1080
1057
|
}
|
|
1081
|
-
function
|
|
1058
|
+
function Kn(e, t, r) {
|
|
1082
1059
|
return e.concat(t).map(function(n) {
|
|
1083
|
-
return
|
|
1060
|
+
return ze(n, r);
|
|
1084
1061
|
});
|
|
1085
1062
|
}
|
|
1086
|
-
function
|
|
1063
|
+
function ei(e, t) {
|
|
1087
1064
|
if (!t.customMerge)
|
|
1088
|
-
return
|
|
1065
|
+
return Ae;
|
|
1089
1066
|
var r = t.customMerge(e);
|
|
1090
|
-
return typeof r == "function" ? r :
|
|
1067
|
+
return typeof r == "function" ? r : Ae;
|
|
1091
1068
|
}
|
|
1092
|
-
function
|
|
1069
|
+
function ti(e) {
|
|
1093
1070
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1094
1071
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1095
1072
|
}) : [];
|
|
1096
1073
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return Object.keys(e).concat(
|
|
1074
|
+
function ir(e) {
|
|
1075
|
+
return Object.keys(e).concat(ti(e));
|
|
1099
1076
|
}
|
|
1100
|
-
function
|
|
1077
|
+
function Mr(e, t) {
|
|
1101
1078
|
try {
|
|
1102
1079
|
return t in e;
|
|
1103
1080
|
} catch {
|
|
1104
1081
|
return !1;
|
|
1105
1082
|
}
|
|
1106
1083
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return
|
|
1084
|
+
function ri(e, t) {
|
|
1085
|
+
return Mr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1109
1086
|
}
|
|
1110
|
-
function
|
|
1087
|
+
function ni(e, t, r) {
|
|
1111
1088
|
var n = {};
|
|
1112
|
-
return r.isMergeableObject(e) &&
|
|
1113
|
-
n[i] =
|
|
1114
|
-
}),
|
|
1115
|
-
|
|
1089
|
+
return r.isMergeableObject(e) && ir(e).forEach(function(i) {
|
|
1090
|
+
n[i] = ze(e[i], r);
|
|
1091
|
+
}), ir(t).forEach(function(i) {
|
|
1092
|
+
ri(e, i) || (Mr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ei(i, r)(e[i], t[i], r) : n[i] = ze(t[i], r));
|
|
1116
1093
|
}), n;
|
|
1117
1094
|
}
|
|
1118
|
-
function
|
|
1119
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1095
|
+
function Ae(e, t, r) {
|
|
1096
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kn, r.isMergeableObject = r.isMergeableObject || Xn, r.cloneUnlessOtherwiseSpecified = ze;
|
|
1120
1097
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1121
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1098
|
+
return o ? n ? r.arrayMerge(e, t, r) : ni(e, t, r) : ze(t, r);
|
|
1122
1099
|
}
|
|
1123
|
-
|
|
1100
|
+
Ae.all = function(t, r) {
|
|
1124
1101
|
if (!Array.isArray(t))
|
|
1125
1102
|
throw new Error("first argument should be an array");
|
|
1126
1103
|
return t.reduce(function(n, i) {
|
|
1127
|
-
return
|
|
1104
|
+
return Ae(n, i, r);
|
|
1128
1105
|
}, {});
|
|
1129
1106
|
};
|
|
1130
|
-
var
|
|
1131
|
-
const
|
|
1132
|
-
function
|
|
1133
|
-
|
|
1107
|
+
var ii = Ae, oi = ii;
|
|
1108
|
+
const si = /* @__PURE__ */ zn(oi);
|
|
1109
|
+
var Nt = function(e, t) {
|
|
1110
|
+
return Nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1111
|
+
r.__proto__ = n;
|
|
1112
|
+
} || function(r, n) {
|
|
1113
|
+
for (var i in n)
|
|
1114
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1115
|
+
}, Nt(e, t);
|
|
1116
|
+
};
|
|
1117
|
+
function pt(e, t) {
|
|
1118
|
+
if (typeof t != "function" && t !== null)
|
|
1119
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1120
|
+
Nt(e, t);
|
|
1121
|
+
function r() {
|
|
1122
|
+
this.constructor = e;
|
|
1123
|
+
}
|
|
1124
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1125
|
+
}
|
|
1126
|
+
var ie = function() {
|
|
1127
|
+
return ie = Object.assign || function(t) {
|
|
1128
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1129
|
+
r = arguments[n];
|
|
1130
|
+
for (var o in r)
|
|
1131
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1132
|
+
}
|
|
1133
|
+
return t;
|
|
1134
|
+
}, ie.apply(this, arguments);
|
|
1135
|
+
};
|
|
1136
|
+
function ai(e, t) {
|
|
1137
|
+
var r = {};
|
|
1138
|
+
for (var n in e)
|
|
1139
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1140
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1141
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1142
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1143
|
+
return r;
|
|
1144
|
+
}
|
|
1145
|
+
function wt(e, t, r) {
|
|
1146
|
+
if (r || arguments.length === 2)
|
|
1147
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1148
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1149
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1150
|
+
}
|
|
1151
|
+
function Et(e, t) {
|
|
1152
|
+
var r = t && t.cache ? t.cache : mi, n = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ci;
|
|
1134
1153
|
return i(e, {
|
|
1135
1154
|
cache: r,
|
|
1136
1155
|
serializer: n
|
|
1137
1156
|
});
|
|
1138
1157
|
}
|
|
1139
|
-
function
|
|
1158
|
+
function li(e) {
|
|
1140
1159
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1141
1160
|
}
|
|
1142
|
-
function
|
|
1143
|
-
var i =
|
|
1161
|
+
function ui(e, t, r, n) {
|
|
1162
|
+
var i = li(n) ? n : r(n), o = t.get(i);
|
|
1144
1163
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1145
1164
|
}
|
|
1146
|
-
function
|
|
1165
|
+
function Nr(e, t, r) {
|
|
1147
1166
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1148
1167
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1149
1168
|
}
|
|
1150
|
-
function
|
|
1169
|
+
function Rr(e, t, r, n, i) {
|
|
1151
1170
|
return r.bind(t, e, n, i);
|
|
1152
1171
|
}
|
|
1153
|
-
function
|
|
1154
|
-
var r = e.length === 1 ?
|
|
1155
|
-
return
|
|
1172
|
+
function ci(e, t) {
|
|
1173
|
+
var r = e.length === 1 ? ui : Nr;
|
|
1174
|
+
return Rr(e, this, r, t.cache.create(), t.serializer);
|
|
1156
1175
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return
|
|
1176
|
+
function hi(e, t) {
|
|
1177
|
+
return Rr(e, this, Nr, t.cache.create(), t.serializer);
|
|
1159
1178
|
}
|
|
1160
|
-
function
|
|
1161
|
-
return kt(e, this, Cr, t.cache.create(), t.serializer);
|
|
1162
|
-
}
|
|
1163
|
-
var li = function() {
|
|
1179
|
+
var fi = function() {
|
|
1164
1180
|
return JSON.stringify(arguments);
|
|
1165
|
-
},
|
|
1181
|
+
}, di = (
|
|
1166
1182
|
/** @class */
|
|
1167
1183
|
function() {
|
|
1168
1184
|
function e() {
|
|
@@ -1174,62 +1190,71 @@ var li = function() {
|
|
|
1174
1190
|
this.cache[t] = r;
|
|
1175
1191
|
}, e;
|
|
1176
1192
|
}()
|
|
1177
|
-
),
|
|
1193
|
+
), mi = {
|
|
1178
1194
|
create: function() {
|
|
1179
|
-
return new
|
|
1195
|
+
return new di();
|
|
1180
1196
|
}
|
|
1181
|
-
},
|
|
1182
|
-
variadic:
|
|
1183
|
-
|
|
1184
|
-
|
|
1197
|
+
}, xt = {
|
|
1198
|
+
variadic: hi
|
|
1199
|
+
}, ct = function() {
|
|
1200
|
+
return ct = Object.assign || function(t) {
|
|
1201
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1202
|
+
r = arguments[n];
|
|
1203
|
+
for (var o in r)
|
|
1204
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1205
|
+
}
|
|
1206
|
+
return t;
|
|
1207
|
+
}, ct.apply(this, arguments);
|
|
1208
|
+
};
|
|
1209
|
+
var _;
|
|
1185
1210
|
(function(e) {
|
|
1186
1211
|
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";
|
|
1187
1212
|
})(_ || (_ = {}));
|
|
1188
|
-
var
|
|
1213
|
+
var P;
|
|
1189
1214
|
(function(e) {
|
|
1190
1215
|
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";
|
|
1191
|
-
})(
|
|
1192
|
-
var
|
|
1216
|
+
})(P || (P = {}));
|
|
1217
|
+
var Ie;
|
|
1193
1218
|
(function(e) {
|
|
1194
1219
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1195
|
-
})(
|
|
1196
|
-
function
|
|
1197
|
-
return e.type ===
|
|
1220
|
+
})(Ie || (Ie = {}));
|
|
1221
|
+
function or(e) {
|
|
1222
|
+
return e.type === P.literal;
|
|
1198
1223
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return e.type ===
|
|
1224
|
+
function pi(e) {
|
|
1225
|
+
return e.type === P.argument;
|
|
1201
1226
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return e.type ===
|
|
1227
|
+
function Ur(e) {
|
|
1228
|
+
return e.type === P.number;
|
|
1204
1229
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return e.type ===
|
|
1230
|
+
function Fr(e) {
|
|
1231
|
+
return e.type === P.date;
|
|
1207
1232
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return e.type ===
|
|
1233
|
+
function Dr(e) {
|
|
1234
|
+
return e.type === P.time;
|
|
1210
1235
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return e.type ===
|
|
1236
|
+
function kr(e) {
|
|
1237
|
+
return e.type === P.select;
|
|
1213
1238
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return e.type ===
|
|
1239
|
+
function $r(e) {
|
|
1240
|
+
return e.type === P.plural;
|
|
1216
1241
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return e.type ===
|
|
1242
|
+
function gi(e) {
|
|
1243
|
+
return e.type === P.pound;
|
|
1219
1244
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return e.type ===
|
|
1245
|
+
function Gr(e) {
|
|
1246
|
+
return e.type === P.tag;
|
|
1222
1247
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1248
|
+
function jr(e) {
|
|
1249
|
+
return !!(e && typeof e == "object" && e.type === Ie.number);
|
|
1225
1250
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1251
|
+
function Rt(e) {
|
|
1252
|
+
return !!(e && typeof e == "object" && e.type === Ie.dateTime);
|
|
1228
1253
|
}
|
|
1229
|
-
var
|
|
1230
|
-
function
|
|
1254
|
+
var Vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bi = /(?:[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;
|
|
1255
|
+
function vi(e) {
|
|
1231
1256
|
var t = {};
|
|
1232
|
-
return e.replace(
|
|
1257
|
+
return e.replace(bi, function(r) {
|
|
1233
1258
|
var n = r.length;
|
|
1234
1259
|
switch (r[0]) {
|
|
1235
1260
|
case "G":
|
|
@@ -1318,11 +1343,21 @@ function mi(e) {
|
|
|
1318
1343
|
return "";
|
|
1319
1344
|
}), t;
|
|
1320
1345
|
}
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1346
|
+
var T = function() {
|
|
1347
|
+
return T = Object.assign || function(t) {
|
|
1348
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1349
|
+
r = arguments[n];
|
|
1350
|
+
for (var o in r)
|
|
1351
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1352
|
+
}
|
|
1353
|
+
return t;
|
|
1354
|
+
}, T.apply(this, arguments);
|
|
1355
|
+
};
|
|
1356
|
+
var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1357
|
+
function _i(e) {
|
|
1323
1358
|
if (e.length === 0)
|
|
1324
1359
|
throw new Error("Number skeleton cannot be empty");
|
|
1325
|
-
for (var t = e.split(
|
|
1360
|
+
for (var t = e.split(yi).filter(function(d) {
|
|
1326
1361
|
return d.length > 0;
|
|
1327
1362
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1328
1363
|
var o = i[n], s = o.split("/");
|
|
@@ -1337,17 +1372,17 @@ function gi(e) {
|
|
|
1337
1372
|
}
|
|
1338
1373
|
return r;
|
|
1339
1374
|
}
|
|
1340
|
-
function
|
|
1375
|
+
function wi(e) {
|
|
1341
1376
|
return e.replace(/^(.*?)-/, "");
|
|
1342
1377
|
}
|
|
1343
|
-
var
|
|
1344
|
-
function
|
|
1378
|
+
var sr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zr = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, Xr = /^(0+)$/;
|
|
1379
|
+
function ar(e) {
|
|
1345
1380
|
var t = {};
|
|
1346
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1381
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zr, function(r, n, i) {
|
|
1347
1382
|
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)), "";
|
|
1348
1383
|
}), t;
|
|
1349
1384
|
}
|
|
1350
|
-
function
|
|
1385
|
+
function Wr(e) {
|
|
1351
1386
|
switch (e) {
|
|
1352
1387
|
case "sign-auto":
|
|
1353
1388
|
return {
|
|
@@ -1387,7 +1422,7 @@ function jr(e) {
|
|
|
1387
1422
|
};
|
|
1388
1423
|
}
|
|
1389
1424
|
}
|
|
1390
|
-
function
|
|
1425
|
+
function xi(e) {
|
|
1391
1426
|
var t;
|
|
1392
1427
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1393
1428
|
notation: "engineering"
|
|
@@ -1395,17 +1430,17 @@ function vi(e) {
|
|
|
1395
1430
|
notation: "scientific"
|
|
1396
1431
|
}, e = e.slice(1)), t) {
|
|
1397
1432
|
var r = e.slice(0, 2);
|
|
1398
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
1433
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xr.test(e))
|
|
1399
1434
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1400
1435
|
t.minimumIntegerDigits = e.length;
|
|
1401
1436
|
}
|
|
1402
1437
|
return t;
|
|
1403
1438
|
}
|
|
1404
|
-
function
|
|
1405
|
-
var t = {}, r =
|
|
1439
|
+
function lr(e) {
|
|
1440
|
+
var t = {}, r = Wr(e);
|
|
1406
1441
|
return r || t;
|
|
1407
1442
|
}
|
|
1408
|
-
function
|
|
1443
|
+
function Si(e) {
|
|
1409
1444
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1410
1445
|
var i = n[r];
|
|
1411
1446
|
switch (i.stem) {
|
|
@@ -1429,7 +1464,7 @@ function _i(e) {
|
|
|
1429
1464
|
continue;
|
|
1430
1465
|
case "measure-unit":
|
|
1431
1466
|
case "unit":
|
|
1432
|
-
t.style = "unit", t.unit =
|
|
1467
|
+
t.style = "unit", t.unit = wi(i.options[0]);
|
|
1433
1468
|
continue;
|
|
1434
1469
|
case "compact-short":
|
|
1435
1470
|
case "K":
|
|
@@ -1440,13 +1475,13 @@ function _i(e) {
|
|
|
1440
1475
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1441
1476
|
continue;
|
|
1442
1477
|
case "scientific":
|
|
1443
|
-
t =
|
|
1444
|
-
return
|
|
1478
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1479
|
+
return T(T({}, c), lr(l));
|
|
1445
1480
|
}, {}));
|
|
1446
1481
|
continue;
|
|
1447
1482
|
case "engineering":
|
|
1448
|
-
t =
|
|
1449
|
-
return
|
|
1483
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1484
|
+
return T(T({}, c), lr(l));
|
|
1450
1485
|
}, {}));
|
|
1451
1486
|
continue;
|
|
1452
1487
|
case "notation-simple":
|
|
@@ -1491,7 +1526,7 @@ function _i(e) {
|
|
|
1491
1526
|
case "integer-width":
|
|
1492
1527
|
if (i.options.length > 1)
|
|
1493
1528
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1494
|
-
i.options[0].replace(
|
|
1529
|
+
i.options[0].replace(Ei, function(c, l, u, f, d, b) {
|
|
1495
1530
|
if (l)
|
|
1496
1531
|
t.minimumIntegerDigits = u.length;
|
|
1497
1532
|
else {
|
|
@@ -1504,28 +1539,28 @@ function _i(e) {
|
|
|
1504
1539
|
});
|
|
1505
1540
|
continue;
|
|
1506
1541
|
}
|
|
1507
|
-
if (
|
|
1542
|
+
if (Xr.test(i.stem)) {
|
|
1508
1543
|
t.minimumIntegerDigits = i.stem.length;
|
|
1509
1544
|
continue;
|
|
1510
1545
|
}
|
|
1511
|
-
if (
|
|
1546
|
+
if (sr.test(i.stem)) {
|
|
1512
1547
|
if (i.options.length > 1)
|
|
1513
1548
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1514
|
-
i.stem.replace(
|
|
1549
|
+
i.stem.replace(sr, function(c, l, u, f, d, b) {
|
|
1515
1550
|
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1516
1551
|
});
|
|
1517
1552
|
var o = i.options[0];
|
|
1518
|
-
o === "w" ? t =
|
|
1553
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), ar(o)));
|
|
1519
1554
|
continue;
|
|
1520
1555
|
}
|
|
1521
|
-
if (
|
|
1522
|
-
t =
|
|
1556
|
+
if (zr.test(i.stem)) {
|
|
1557
|
+
t = T(T({}, t), ar(i.stem));
|
|
1523
1558
|
continue;
|
|
1524
1559
|
}
|
|
1525
|
-
var s =
|
|
1526
|
-
s && (t =
|
|
1527
|
-
var a =
|
|
1528
|
-
a && (t =
|
|
1560
|
+
var s = Wr(i.stem);
|
|
1561
|
+
s && (t = T(T({}, t), s));
|
|
1562
|
+
var a = xi(i.stem);
|
|
1563
|
+
a && (t = T(T({}, t), a));
|
|
1529
1564
|
}
|
|
1530
1565
|
return t;
|
|
1531
1566
|
}
|
|
@@ -2944,13 +2979,13 @@ var it = {
|
|
|
2944
2979
|
"h"
|
|
2945
2980
|
]
|
|
2946
2981
|
};
|
|
2947
|
-
function
|
|
2982
|
+
function Pi(e, t) {
|
|
2948
2983
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2949
2984
|
var i = e.charAt(n);
|
|
2950
2985
|
if (i === "j") {
|
|
2951
2986
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2952
2987
|
o++, n++;
|
|
2953
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l =
|
|
2988
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Ti(t);
|
|
2954
2989
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2955
2990
|
r += c;
|
|
2956
2991
|
for (; s-- > 0; )
|
|
@@ -2960,7 +2995,7 @@ function wi(e, t) {
|
|
|
2960
2995
|
}
|
|
2961
2996
|
return r;
|
|
2962
2997
|
}
|
|
2963
|
-
function
|
|
2998
|
+
function Ti(e) {
|
|
2964
2999
|
var t = e.hourCycle;
|
|
2965
3000
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2966
3001
|
e.hourCycles && // @ts-ignore
|
|
@@ -2982,20 +3017,20 @@ function Ei(e) {
|
|
|
2982
3017
|
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
2983
3018
|
return i[0];
|
|
2984
3019
|
}
|
|
2985
|
-
var
|
|
3020
|
+
var St, Hi = new RegExp("^".concat(Vr.source, "*")), Bi = new RegExp("".concat(Vr.source, "*$"));
|
|
2986
3021
|
function w(e, t) {
|
|
2987
3022
|
return { start: e, end: t };
|
|
2988
3023
|
}
|
|
2989
|
-
var
|
|
3024
|
+
var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ii = !!String.fromCodePoint, Oi = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Mi = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Ri = Ni ? Number.isSafeInteger : function(e) {
|
|
2990
3025
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2991
|
-
},
|
|
3026
|
+
}, Ut = !0;
|
|
2992
3027
|
try {
|
|
2993
|
-
var
|
|
2994
|
-
|
|
3028
|
+
var Ui = qr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3029
|
+
Ut = ((St = Ui.exec("a")) === null || St === void 0 ? void 0 : St[0]) === "a";
|
|
2995
3030
|
} catch {
|
|
2996
|
-
|
|
3031
|
+
Ut = !1;
|
|
2997
3032
|
}
|
|
2998
|
-
var
|
|
3033
|
+
var ur = Ai ? (
|
|
2999
3034
|
// Native
|
|
3000
3035
|
function(t, r, n) {
|
|
3001
3036
|
return t.startsWith(r, n);
|
|
@@ -3005,7 +3040,7 @@ var or = Pi ? (
|
|
|
3005
3040
|
function(t, r, n) {
|
|
3006
3041
|
return t.slice(n, n + r.length) === r;
|
|
3007
3042
|
}
|
|
3008
|
-
),
|
|
3043
|
+
), Ft = Ii ? String.fromCodePoint : (
|
|
3009
3044
|
// IE11
|
|
3010
3045
|
function() {
|
|
3011
3046
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3017,9 +3052,9 @@ var or = Pi ? (
|
|
|
3017
3052
|
}
|
|
3018
3053
|
return n;
|
|
3019
3054
|
}
|
|
3020
|
-
),
|
|
3055
|
+
), cr = (
|
|
3021
3056
|
// native
|
|
3022
|
-
|
|
3057
|
+
Oi ? Object.fromEntries : (
|
|
3023
3058
|
// Ponyfill
|
|
3024
3059
|
function(t) {
|
|
3025
3060
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3029,7 +3064,7 @@ var or = Pi ? (
|
|
|
3029
3064
|
return r;
|
|
3030
3065
|
}
|
|
3031
3066
|
)
|
|
3032
|
-
),
|
|
3067
|
+
), Zr = Ci ? (
|
|
3033
3068
|
// Native
|
|
3034
3069
|
function(t, r) {
|
|
3035
3070
|
return t.codePointAt(r);
|
|
@@ -3043,7 +3078,7 @@ var or = Pi ? (
|
|
|
3043
3078
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3044
3079
|
}
|
|
3045
3080
|
}
|
|
3046
|
-
),
|
|
3081
|
+
), Fi = Li ? (
|
|
3047
3082
|
// Native
|
|
3048
3083
|
function(t) {
|
|
3049
3084
|
return t.trimStart();
|
|
@@ -3051,9 +3086,9 @@ var or = Pi ? (
|
|
|
3051
3086
|
) : (
|
|
3052
3087
|
// Ponyfill
|
|
3053
3088
|
function(t) {
|
|
3054
|
-
return t.replace(
|
|
3089
|
+
return t.replace(Hi, "");
|
|
3055
3090
|
}
|
|
3056
|
-
),
|
|
3091
|
+
), Di = Mi ? (
|
|
3057
3092
|
// Native
|
|
3058
3093
|
function(t) {
|
|
3059
3094
|
return t.trimEnd();
|
|
@@ -3061,32 +3096,32 @@ var or = Pi ? (
|
|
|
3061
3096
|
) : (
|
|
3062
3097
|
// Ponyfill
|
|
3063
3098
|
function(t) {
|
|
3064
|
-
return t.replace(
|
|
3099
|
+
return t.replace(Bi, "");
|
|
3065
3100
|
}
|
|
3066
3101
|
);
|
|
3067
|
-
function
|
|
3102
|
+
function qr(e, t) {
|
|
3068
3103
|
return new RegExp(e, t);
|
|
3069
3104
|
}
|
|
3070
|
-
var
|
|
3071
|
-
if (
|
|
3072
|
-
var
|
|
3073
|
-
|
|
3105
|
+
var Dt;
|
|
3106
|
+
if (Ut) {
|
|
3107
|
+
var hr = qr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3108
|
+
Dt = function(t, r) {
|
|
3074
3109
|
var n;
|
|
3075
|
-
|
|
3076
|
-
var i =
|
|
3110
|
+
hr.lastIndex = r;
|
|
3111
|
+
var i = hr.exec(t);
|
|
3077
3112
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3078
3113
|
};
|
|
3079
3114
|
} else
|
|
3080
|
-
|
|
3115
|
+
Dt = function(t, r) {
|
|
3081
3116
|
for (var n = []; ; ) {
|
|
3082
|
-
var i =
|
|
3083
|
-
if (i === void 0 ||
|
|
3117
|
+
var i = Zr(t, r);
|
|
3118
|
+
if (i === void 0 || Jr(i) || ji(i))
|
|
3084
3119
|
break;
|
|
3085
3120
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3086
3121
|
}
|
|
3087
|
-
return
|
|
3122
|
+
return Ft.apply(void 0, n);
|
|
3088
3123
|
};
|
|
3089
|
-
var
|
|
3124
|
+
var ki = (
|
|
3090
3125
|
/** @class */
|
|
3091
3126
|
function() {
|
|
3092
3127
|
function e(t, r) {
|
|
@@ -3110,14 +3145,14 @@ var Ri = (
|
|
|
3110
3145
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3111
3146
|
var a = this.clonePosition();
|
|
3112
3147
|
this.bump(), i.push({
|
|
3113
|
-
type:
|
|
3148
|
+
type: P.pound,
|
|
3114
3149
|
location: w(a, this.clonePosition())
|
|
3115
3150
|
});
|
|
3116
3151
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3117
3152
|
if (n)
|
|
3118
3153
|
break;
|
|
3119
3154
|
return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
3120
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3155
|
+
} else if (o === 60 && !this.ignoreTag && kt(this.peek() || 0)) {
|
|
3121
3156
|
var s = this.parseTag(t, r);
|
|
3122
3157
|
if (s.err)
|
|
3123
3158
|
return s;
|
|
@@ -3138,7 +3173,7 @@ var Ri = (
|
|
|
3138
3173
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3139
3174
|
return {
|
|
3140
3175
|
val: {
|
|
3141
|
-
type:
|
|
3176
|
+
type: P.literal,
|
|
3142
3177
|
value: "<".concat(i, "/>"),
|
|
3143
3178
|
location: w(n, this.clonePosition())
|
|
3144
3179
|
},
|
|
@@ -3150,12 +3185,12 @@ var Ri = (
|
|
|
3150
3185
|
return o;
|
|
3151
3186
|
var s = o.val, a = this.clonePosition();
|
|
3152
3187
|
if (this.bumpIf("</")) {
|
|
3153
|
-
if (this.isEOF() || !
|
|
3188
|
+
if (this.isEOF() || !kt(this.char()))
|
|
3154
3189
|
return this.error(_.INVALID_TAG, w(a, this.clonePosition()));
|
|
3155
3190
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
3156
3191
|
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, w(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3157
3192
|
val: {
|
|
3158
|
-
type:
|
|
3193
|
+
type: P.tag,
|
|
3159
3194
|
value: i,
|
|
3160
3195
|
children: s,
|
|
3161
3196
|
location: w(n, this.clonePosition())
|
|
@@ -3168,7 +3203,7 @@ var Ri = (
|
|
|
3168
3203
|
return this.error(_.INVALID_TAG, w(n, this.clonePosition()));
|
|
3169
3204
|
}, e.prototype.parseTagName = function() {
|
|
3170
3205
|
var t = this.offset();
|
|
3171
|
-
for (this.bump(); !this.isEOF() &&
|
|
3206
|
+
for (this.bump(); !this.isEOF() && Gi(this.char()); )
|
|
3172
3207
|
this.bump();
|
|
3173
3208
|
return this.message.slice(t, this.offset());
|
|
3174
3209
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3192,12 +3227,12 @@ var Ri = (
|
|
|
3192
3227
|
}
|
|
3193
3228
|
var c = w(n, this.clonePosition());
|
|
3194
3229
|
return {
|
|
3195
|
-
val: { type:
|
|
3230
|
+
val: { type: P.literal, value: i, location: c },
|
|
3196
3231
|
err: null
|
|
3197
3232
|
};
|
|
3198
3233
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3199
3234
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3200
|
-
|
|
3235
|
+
!$i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3201
3236
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3202
3237
|
if (this.isEOF() || this.char() !== 39)
|
|
3203
3238
|
return null;
|
|
@@ -3231,12 +3266,12 @@ var Ri = (
|
|
|
3231
3266
|
r.push(n);
|
|
3232
3267
|
this.bump();
|
|
3233
3268
|
}
|
|
3234
|
-
return
|
|
3269
|
+
return Ft.apply(void 0, r);
|
|
3235
3270
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3236
3271
|
if (this.isEOF())
|
|
3237
3272
|
return null;
|
|
3238
3273
|
var n = this.char();
|
|
3239
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3274
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ft(n));
|
|
3240
3275
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3241
3276
|
var n = this.clonePosition();
|
|
3242
3277
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3252,7 +3287,7 @@ var Ri = (
|
|
|
3252
3287
|
case 125:
|
|
3253
3288
|
return this.bump(), {
|
|
3254
3289
|
val: {
|
|
3255
|
-
type:
|
|
3290
|
+
type: P.argument,
|
|
3256
3291
|
// value does not include the opening and closing braces.
|
|
3257
3292
|
value: i,
|
|
3258
3293
|
location: w(n, this.clonePosition())
|
|
@@ -3265,7 +3300,7 @@ var Ri = (
|
|
|
3265
3300
|
return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3266
3301
|
}
|
|
3267
3302
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3268
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3303
|
+
var t = this.clonePosition(), r = this.offset(), n = Dt(this.message, r), i = r + n.length;
|
|
3269
3304
|
this.bumpTo(i);
|
|
3270
3305
|
var o = this.clonePosition(), s = w(t, o);
|
|
3271
3306
|
return { value: n, location: s };
|
|
@@ -3284,35 +3319,35 @@ var Ri = (
|
|
|
3284
3319
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3285
3320
|
if (f.err)
|
|
3286
3321
|
return f;
|
|
3287
|
-
var d =
|
|
3322
|
+
var d = Di(f.val);
|
|
3288
3323
|
if (d.length === 0)
|
|
3289
3324
|
return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
3290
3325
|
var b = w(u, this.clonePosition());
|
|
3291
3326
|
l = { style: d, styleLocation: b };
|
|
3292
3327
|
}
|
|
3293
|
-
var
|
|
3294
|
-
if (
|
|
3295
|
-
return
|
|
3328
|
+
var y = this.tryParseArgumentClose(i);
|
|
3329
|
+
if (y.err)
|
|
3330
|
+
return y;
|
|
3296
3331
|
var g = w(i, this.clonePosition());
|
|
3297
|
-
if (l &&
|
|
3298
|
-
var
|
|
3332
|
+
if (l && ur(l?.style, "::", 0)) {
|
|
3333
|
+
var x = Fi(l.style.slice(2));
|
|
3299
3334
|
if (a === "number") {
|
|
3300
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3335
|
+
var f = this.parseNumberSkeletonFromString(x, l.styleLocation);
|
|
3301
3336
|
return f.err ? f : {
|
|
3302
|
-
val: { type:
|
|
3337
|
+
val: { type: P.number, value: n, location: g, style: f.val },
|
|
3303
3338
|
err: null
|
|
3304
3339
|
};
|
|
3305
3340
|
} else {
|
|
3306
|
-
if (
|
|
3341
|
+
if (x.length === 0)
|
|
3307
3342
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3308
|
-
var
|
|
3309
|
-
this.locale && (
|
|
3343
|
+
var O = x;
|
|
3344
|
+
this.locale && (O = Pi(x, this.locale));
|
|
3310
3345
|
var d = {
|
|
3311
|
-
type:
|
|
3312
|
-
pattern:
|
|
3346
|
+
type: Ie.dateTime,
|
|
3347
|
+
pattern: O,
|
|
3313
3348
|
location: l.styleLocation,
|
|
3314
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3315
|
-
}, z = a === "date" ?
|
|
3349
|
+
parsedOptions: this.shouldParseSkeletons ? vi(O) : {}
|
|
3350
|
+
}, z = a === "date" ? P.date : P.time;
|
|
3316
3351
|
return {
|
|
3317
3352
|
val: { type: z, value: n, location: g, style: d },
|
|
3318
3353
|
err: null
|
|
@@ -3321,7 +3356,7 @@ var Ri = (
|
|
|
3321
3356
|
}
|
|
3322
3357
|
return {
|
|
3323
3358
|
val: {
|
|
3324
|
-
type: a === "number" ?
|
|
3359
|
+
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
3325
3360
|
value: n,
|
|
3326
3361
|
location: g,
|
|
3327
3362
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3334,7 +3369,7 @@ var Ri = (
|
|
|
3334
3369
|
case "select": {
|
|
3335
3370
|
var R = this.clonePosition();
|
|
3336
3371
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3337
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R,
|
|
3372
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R, ct({}, R)));
|
|
3338
3373
|
this.bumpSpace();
|
|
3339
3374
|
var U = this.parseIdentifierIfPossible(), A = 0;
|
|
3340
3375
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -3349,23 +3384,23 @@ var Ri = (
|
|
|
3349
3384
|
var re = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3350
3385
|
if (re.err)
|
|
3351
3386
|
return re;
|
|
3352
|
-
var
|
|
3353
|
-
if (
|
|
3354
|
-
return
|
|
3387
|
+
var y = this.tryParseArgumentClose(i);
|
|
3388
|
+
if (y.err)
|
|
3389
|
+
return y;
|
|
3355
3390
|
var H = w(i, this.clonePosition());
|
|
3356
3391
|
return a === "select" ? {
|
|
3357
3392
|
val: {
|
|
3358
|
-
type:
|
|
3393
|
+
type: P.select,
|
|
3359
3394
|
value: n,
|
|
3360
|
-
options:
|
|
3395
|
+
options: cr(re.val),
|
|
3361
3396
|
location: H
|
|
3362
3397
|
},
|
|
3363
3398
|
err: null
|
|
3364
3399
|
} : {
|
|
3365
3400
|
val: {
|
|
3366
|
-
type:
|
|
3401
|
+
type: P.plural,
|
|
3367
3402
|
value: n,
|
|
3368
|
-
options:
|
|
3403
|
+
options: cr(re.val),
|
|
3369
3404
|
offset: A,
|
|
3370
3405
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3371
3406
|
location: H
|
|
@@ -3416,16 +3451,16 @@ var Ri = (
|
|
|
3416
3451
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3417
3452
|
var n = [];
|
|
3418
3453
|
try {
|
|
3419
|
-
n =
|
|
3454
|
+
n = _i(t);
|
|
3420
3455
|
} catch {
|
|
3421
3456
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3422
3457
|
}
|
|
3423
3458
|
return {
|
|
3424
3459
|
val: {
|
|
3425
|
-
type:
|
|
3460
|
+
type: Ie.number,
|
|
3426
3461
|
tokens: n,
|
|
3427
3462
|
location: r,
|
|
3428
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3463
|
+
parsedOptions: this.shouldParseSkeletons ? Si(n) : {}
|
|
3429
3464
|
},
|
|
3430
3465
|
err: null
|
|
3431
3466
|
};
|
|
@@ -3447,16 +3482,16 @@ var Ri = (
|
|
|
3447
3482
|
var b = this.clonePosition();
|
|
3448
3483
|
if (!this.bumpIf("{"))
|
|
3449
3484
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
3450
|
-
var
|
|
3451
|
-
if (
|
|
3452
|
-
return
|
|
3485
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3486
|
+
if (y.err)
|
|
3487
|
+
return y;
|
|
3453
3488
|
var g = this.tryParseArgumentClose(b);
|
|
3454
3489
|
if (g.err)
|
|
3455
3490
|
return g;
|
|
3456
3491
|
a.push([
|
|
3457
3492
|
l,
|
|
3458
3493
|
{
|
|
3459
|
-
value:
|
|
3494
|
+
value: y.val,
|
|
3460
3495
|
location: w(b, this.clonePosition())
|
|
3461
3496
|
}
|
|
3462
3497
|
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
@@ -3473,7 +3508,7 @@ var Ri = (
|
|
|
3473
3508
|
break;
|
|
3474
3509
|
}
|
|
3475
3510
|
var c = w(i, this.clonePosition());
|
|
3476
|
-
return o ? (s *= n,
|
|
3511
|
+
return o ? (s *= n, Ri(s) ? { val: s, err: null } : this.error(r, c)) : this.error(t, c);
|
|
3477
3512
|
}, e.prototype.offset = function() {
|
|
3478
3513
|
return this.position.offset;
|
|
3479
3514
|
}, e.prototype.isEOF = function() {
|
|
@@ -3488,7 +3523,7 @@ var Ri = (
|
|
|
3488
3523
|
var t = this.position.offset;
|
|
3489
3524
|
if (t >= this.message.length)
|
|
3490
3525
|
throw Error("out of bound");
|
|
3491
|
-
var r =
|
|
3526
|
+
var r = Zr(this.message, t);
|
|
3492
3527
|
if (r === void 0)
|
|
3493
3528
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3494
3529
|
return r;
|
|
@@ -3507,7 +3542,7 @@ var Ri = (
|
|
|
3507
3542
|
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);
|
|
3508
3543
|
}
|
|
3509
3544
|
}, e.prototype.bumpIf = function(t) {
|
|
3510
|
-
if (
|
|
3545
|
+
if (ur(this.message, t, this.offset())) {
|
|
3511
3546
|
for (var r = 0; r < t.length; r++)
|
|
3512
3547
|
this.bump();
|
|
3513
3548
|
return !0;
|
|
@@ -3529,7 +3564,7 @@ var Ri = (
|
|
|
3529
3564
|
break;
|
|
3530
3565
|
}
|
|
3531
3566
|
}, e.prototype.bumpSpace = function() {
|
|
3532
|
-
for (; !this.isEOF() &&
|
|
3567
|
+
for (; !this.isEOF() && Jr(this.char()); )
|
|
3533
3568
|
this.bump();
|
|
3534
3569
|
}, e.prototype.peek = function() {
|
|
3535
3570
|
if (this.isEOF())
|
|
@@ -3539,47 +3574,47 @@ var Ri = (
|
|
|
3539
3574
|
}, e;
|
|
3540
3575
|
}()
|
|
3541
3576
|
);
|
|
3542
|
-
function
|
|
3577
|
+
function kt(e) {
|
|
3543
3578
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3544
3579
|
}
|
|
3545
|
-
function
|
|
3546
|
-
return
|
|
3580
|
+
function $i(e) {
|
|
3581
|
+
return kt(e) || e === 47;
|
|
3547
3582
|
}
|
|
3548
|
-
function
|
|
3583
|
+
function Gi(e) {
|
|
3549
3584
|
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;
|
|
3550
3585
|
}
|
|
3551
|
-
function
|
|
3586
|
+
function Jr(e) {
|
|
3552
3587
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3553
3588
|
}
|
|
3554
|
-
function
|
|
3589
|
+
function ji(e) {
|
|
3555
3590
|
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;
|
|
3556
3591
|
}
|
|
3557
|
-
function
|
|
3592
|
+
function $t(e) {
|
|
3558
3593
|
e.forEach(function(t) {
|
|
3559
|
-
if (delete t.location,
|
|
3594
|
+
if (delete t.location, kr(t) || $r(t))
|
|
3560
3595
|
for (var r in t.options)
|
|
3561
|
-
delete t.options[r].location,
|
|
3596
|
+
delete t.options[r].location, $t(t.options[r].value);
|
|
3562
3597
|
else
|
|
3563
|
-
|
|
3598
|
+
Ur(t) && jr(t.style) || (Fr(t) || Dr(t)) && Rt(t.style) ? delete t.style.location : Gr(t) && $t(t.children);
|
|
3564
3599
|
});
|
|
3565
3600
|
}
|
|
3566
|
-
function
|
|
3567
|
-
t === void 0 && (t = {}), t =
|
|
3568
|
-
var r = new
|
|
3601
|
+
function Vi(e, t) {
|
|
3602
|
+
t === void 0 && (t = {}), t = ct({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3603
|
+
var r = new ki(e, t).parse();
|
|
3569
3604
|
if (r.err) {
|
|
3570
3605
|
var n = SyntaxError(_[r.err.kind]);
|
|
3571
3606
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3572
3607
|
}
|
|
3573
|
-
return t?.captureLocation ||
|
|
3608
|
+
return t?.captureLocation || $t(r.val), r.val;
|
|
3574
3609
|
}
|
|
3575
3610
|
var Oe;
|
|
3576
3611
|
(function(e) {
|
|
3577
3612
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3578
3613
|
})(Oe || (Oe = {}));
|
|
3579
|
-
var
|
|
3614
|
+
var gt = (
|
|
3580
3615
|
/** @class */
|
|
3581
3616
|
function(e) {
|
|
3582
|
-
|
|
3617
|
+
pt(t, e);
|
|
3583
3618
|
function t(r, n, i) {
|
|
3584
3619
|
var o = e.call(this, r) || this;
|
|
3585
3620
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3588,48 +3623,48 @@ var mt = (
|
|
|
3588
3623
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3589
3624
|
}, t;
|
|
3590
3625
|
}(Error)
|
|
3591
|
-
),
|
|
3626
|
+
), fr = (
|
|
3592
3627
|
/** @class */
|
|
3593
3628
|
function(e) {
|
|
3594
|
-
|
|
3629
|
+
pt(t, e);
|
|
3595
3630
|
function t(r, n, i, o) {
|
|
3596
3631
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Oe.INVALID_VALUE, o) || this;
|
|
3597
3632
|
}
|
|
3598
3633
|
return t;
|
|
3599
|
-
}(
|
|
3600
|
-
),
|
|
3634
|
+
}(gt)
|
|
3635
|
+
), zi = (
|
|
3601
3636
|
/** @class */
|
|
3602
3637
|
function(e) {
|
|
3603
|
-
|
|
3638
|
+
pt(t, e);
|
|
3604
3639
|
function t(r, n, i) {
|
|
3605
3640
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Oe.INVALID_VALUE, i) || this;
|
|
3606
3641
|
}
|
|
3607
3642
|
return t;
|
|
3608
|
-
}(
|
|
3609
|
-
),
|
|
3643
|
+
}(gt)
|
|
3644
|
+
), Xi = (
|
|
3610
3645
|
/** @class */
|
|
3611
3646
|
function(e) {
|
|
3612
|
-
|
|
3647
|
+
pt(t, e);
|
|
3613
3648
|
function t(r, n) {
|
|
3614
3649
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Oe.MISSING_VALUE, n) || this;
|
|
3615
3650
|
}
|
|
3616
3651
|
return t;
|
|
3617
|
-
}(
|
|
3652
|
+
}(gt)
|
|
3618
3653
|
), V;
|
|
3619
3654
|
(function(e) {
|
|
3620
3655
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3621
3656
|
})(V || (V = {}));
|
|
3622
|
-
function
|
|
3657
|
+
function Wi(e) {
|
|
3623
3658
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3624
3659
|
var n = t[t.length - 1];
|
|
3625
3660
|
return !n || n.type !== V.literal || r.type !== V.literal ? t.push(r) : n.value += r.value, t;
|
|
3626
3661
|
}, []);
|
|
3627
3662
|
}
|
|
3628
|
-
function
|
|
3663
|
+
function Zi(e) {
|
|
3629
3664
|
return typeof e == "function";
|
|
3630
3665
|
}
|
|
3631
3666
|
function at(e, t, r, n, i, o, s) {
|
|
3632
|
-
if (e.length === 1 &&
|
|
3667
|
+
if (e.length === 1 && or(e[0]))
|
|
3633
3668
|
return [
|
|
3634
3669
|
{
|
|
3635
3670
|
type: V.literal,
|
|
@@ -3638,14 +3673,14 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3638
3673
|
];
|
|
3639
3674
|
for (var a = [], c = 0, l = e; c < l.length; c++) {
|
|
3640
3675
|
var u = l[c];
|
|
3641
|
-
if (
|
|
3676
|
+
if (or(u)) {
|
|
3642
3677
|
a.push({
|
|
3643
3678
|
type: V.literal,
|
|
3644
3679
|
value: u.value
|
|
3645
3680
|
});
|
|
3646
3681
|
continue;
|
|
3647
3682
|
}
|
|
3648
|
-
if (
|
|
3683
|
+
if (gi(u)) {
|
|
3649
3684
|
typeof o == "number" && a.push({
|
|
3650
3685
|
type: V.literal,
|
|
3651
3686
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3654,44 +3689,44 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3654
3689
|
}
|
|
3655
3690
|
var f = u.value;
|
|
3656
3691
|
if (!(i && f in i))
|
|
3657
|
-
throw new
|
|
3692
|
+
throw new Xi(f, s);
|
|
3658
3693
|
var d = i[f];
|
|
3659
|
-
if (
|
|
3694
|
+
if (pi(u)) {
|
|
3660
3695
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3661
3696
|
type: typeof d == "string" ? V.literal : V.object,
|
|
3662
3697
|
value: d
|
|
3663
3698
|
});
|
|
3664
3699
|
continue;
|
|
3665
3700
|
}
|
|
3666
|
-
if (
|
|
3667
|
-
var b = typeof u.style == "string" ? n.date[u.style] :
|
|
3701
|
+
if (Fr(u)) {
|
|
3702
|
+
var b = typeof u.style == "string" ? n.date[u.style] : Rt(u.style) ? u.style.parsedOptions : void 0;
|
|
3668
3703
|
a.push({
|
|
3669
3704
|
type: V.literal,
|
|
3670
3705
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3671
3706
|
});
|
|
3672
3707
|
continue;
|
|
3673
3708
|
}
|
|
3674
|
-
if (
|
|
3675
|
-
var b = typeof u.style == "string" ? n.time[u.style] :
|
|
3709
|
+
if (Dr(u)) {
|
|
3710
|
+
var b = typeof u.style == "string" ? n.time[u.style] : Rt(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3676
3711
|
a.push({
|
|
3677
3712
|
type: V.literal,
|
|
3678
3713
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3679
3714
|
});
|
|
3680
3715
|
continue;
|
|
3681
3716
|
}
|
|
3682
|
-
if (
|
|
3683
|
-
var b = typeof u.style == "string" ? n.number[u.style] :
|
|
3717
|
+
if (Ur(u)) {
|
|
3718
|
+
var b = typeof u.style == "string" ? n.number[u.style] : jr(u.style) ? u.style.parsedOptions : void 0;
|
|
3684
3719
|
b && b.scale && (d = d * (b.scale || 1)), a.push({
|
|
3685
3720
|
type: V.literal,
|
|
3686
3721
|
value: r.getNumberFormat(t, b).format(d)
|
|
3687
3722
|
});
|
|
3688
3723
|
continue;
|
|
3689
3724
|
}
|
|
3690
|
-
if (
|
|
3691
|
-
var
|
|
3692
|
-
if (!
|
|
3693
|
-
throw new
|
|
3694
|
-
var
|
|
3725
|
+
if (Gr(u)) {
|
|
3726
|
+
var y = u.children, g = u.value, x = i[g];
|
|
3727
|
+
if (!Zi(x))
|
|
3728
|
+
throw new zi(g, "function", s);
|
|
3729
|
+
var O = at(y, t, r, n, i, o), z = x(O.map(function(A) {
|
|
3695
3730
|
return A.value;
|
|
3696
3731
|
}));
|
|
3697
3732
|
Array.isArray(z) || (z = [z]), a.push.apply(a, z.map(function(A) {
|
|
@@ -3701,42 +3736,42 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3701
3736
|
};
|
|
3702
3737
|
}));
|
|
3703
3738
|
}
|
|
3704
|
-
if (
|
|
3739
|
+
if (kr(u)) {
|
|
3705
3740
|
var R = u.options[d] || u.options.other;
|
|
3706
3741
|
if (!R)
|
|
3707
|
-
throw new
|
|
3742
|
+
throw new fr(u.value, d, Object.keys(u.options), s);
|
|
3708
3743
|
a.push.apply(a, at(R.value, t, r, n, i));
|
|
3709
3744
|
continue;
|
|
3710
3745
|
}
|
|
3711
|
-
if (
|
|
3746
|
+
if ($r(u)) {
|
|
3712
3747
|
var R = u.options["=".concat(d)];
|
|
3713
3748
|
if (!R) {
|
|
3714
3749
|
if (!Intl.PluralRules)
|
|
3715
|
-
throw new
|
|
3750
|
+
throw new gt(`Intl.PluralRules is not available in this environment.
|
|
3716
3751
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3717
3752
|
`, Oe.MISSING_INTL_API, s);
|
|
3718
3753
|
var U = r.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
|
|
3719
3754
|
R = u.options[U] || u.options.other;
|
|
3720
3755
|
}
|
|
3721
3756
|
if (!R)
|
|
3722
|
-
throw new
|
|
3757
|
+
throw new fr(u.value, d, Object.keys(u.options), s);
|
|
3723
3758
|
a.push.apply(a, at(R.value, t, r, n, i, d - (u.offset || 0)));
|
|
3724
3759
|
continue;
|
|
3725
3760
|
}
|
|
3726
3761
|
}
|
|
3727
|
-
return
|
|
3762
|
+
return Wi(a);
|
|
3728
3763
|
}
|
|
3729
|
-
function
|
|
3730
|
-
return t ?
|
|
3731
|
-
return r[n] =
|
|
3764
|
+
function qi(e, t) {
|
|
3765
|
+
return t ? ie(ie(ie({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3766
|
+
return r[n] = ie(ie({}, e[n]), t[n] || {}), r;
|
|
3732
3767
|
}, {})) : e;
|
|
3733
3768
|
}
|
|
3734
|
-
function
|
|
3769
|
+
function Ji(e, t) {
|
|
3735
3770
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3736
|
-
return r[n] =
|
|
3737
|
-
},
|
|
3771
|
+
return r[n] = qi(e[n], t[n]), r;
|
|
3772
|
+
}, ie({}, e)) : e;
|
|
3738
3773
|
}
|
|
3739
|
-
function
|
|
3774
|
+
function Pt(e) {
|
|
3740
3775
|
return {
|
|
3741
3776
|
create: function() {
|
|
3742
3777
|
return {
|
|
@@ -3750,39 +3785,39 @@ function Et(e) {
|
|
|
3750
3785
|
}
|
|
3751
3786
|
};
|
|
3752
3787
|
}
|
|
3753
|
-
function
|
|
3788
|
+
function Qi(e) {
|
|
3754
3789
|
return e === void 0 && (e = {
|
|
3755
3790
|
number: {},
|
|
3756
3791
|
dateTime: {},
|
|
3757
3792
|
pluralRules: {}
|
|
3758
3793
|
}), {
|
|
3759
|
-
getNumberFormat:
|
|
3794
|
+
getNumberFormat: Et(function() {
|
|
3760
3795
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3761
3796
|
r[n] = arguments[n];
|
|
3762
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3797
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, wt([void 0], r, !1)))();
|
|
3763
3798
|
}, {
|
|
3764
|
-
cache:
|
|
3765
|
-
strategy:
|
|
3799
|
+
cache: Pt(e.number),
|
|
3800
|
+
strategy: xt.variadic
|
|
3766
3801
|
}),
|
|
3767
|
-
getDateTimeFormat:
|
|
3802
|
+
getDateTimeFormat: Et(function() {
|
|
3768
3803
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3769
3804
|
r[n] = arguments[n];
|
|
3770
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3805
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, wt([void 0], r, !1)))();
|
|
3771
3806
|
}, {
|
|
3772
|
-
cache:
|
|
3773
|
-
strategy:
|
|
3807
|
+
cache: Pt(e.dateTime),
|
|
3808
|
+
strategy: xt.variadic
|
|
3774
3809
|
}),
|
|
3775
|
-
getPluralRules:
|
|
3810
|
+
getPluralRules: Et(function() {
|
|
3776
3811
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3777
3812
|
r[n] = arguments[n];
|
|
3778
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3813
|
+
return new ((t = Intl.PluralRules).bind.apply(t, wt([void 0], r, !1)))();
|
|
3779
3814
|
}, {
|
|
3780
|
-
cache:
|
|
3781
|
-
strategy:
|
|
3815
|
+
cache: Pt(e.pluralRules),
|
|
3816
|
+
strategy: xt.variadic
|
|
3782
3817
|
})
|
|
3783
3818
|
};
|
|
3784
3819
|
}
|
|
3785
|
-
var
|
|
3820
|
+
var Yi = (
|
|
3786
3821
|
/** @class */
|
|
3787
3822
|
function() {
|
|
3788
3823
|
function e(t, r, n, i) {
|
|
@@ -3814,13 +3849,13 @@ var Zi = (
|
|
|
3814
3849
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3815
3850
|
var s = i || {};
|
|
3816
3851
|
s.formatters;
|
|
3817
|
-
var a =
|
|
3818
|
-
this.ast = e.__parse(t,
|
|
3852
|
+
var a = ai(s, ["formatters"]);
|
|
3853
|
+
this.ast = e.__parse(t, ie(ie({}, a), { locale: this.resolvedLocale }));
|
|
3819
3854
|
} else
|
|
3820
3855
|
this.ast = t;
|
|
3821
3856
|
if (!Array.isArray(this.ast))
|
|
3822
3857
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3823
|
-
this.formats =
|
|
3858
|
+
this.formats = Ji(e.formats, n), this.formatters = i && i.formatters || Qi(this.formatterCache);
|
|
3824
3859
|
}
|
|
3825
3860
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3826
3861
|
get: function() {
|
|
@@ -3833,7 +3868,7 @@ var Zi = (
|
|
|
3833
3868
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3834
3869
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3835
3870
|
}
|
|
3836
|
-
}, e.__parse =
|
|
3871
|
+
}, e.__parse = Vi, e.formats = {
|
|
3837
3872
|
number: {
|
|
3838
3873
|
integer: {
|
|
3839
3874
|
maximumFractionDigits: 0
|
|
@@ -3894,7 +3929,7 @@ var Zi = (
|
|
|
3894
3929
|
}, e;
|
|
3895
3930
|
}()
|
|
3896
3931
|
);
|
|
3897
|
-
function
|
|
3932
|
+
function Ki(e, t) {
|
|
3898
3933
|
if (t == null)
|
|
3899
3934
|
return;
|
|
3900
3935
|
if (t in e)
|
|
@@ -3915,92 +3950,92 @@ function qi(e, t) {
|
|
|
3915
3950
|
n = void 0;
|
|
3916
3951
|
return n;
|
|
3917
3952
|
}
|
|
3918
|
-
const ue = {},
|
|
3953
|
+
const ue = {}, eo = (e, t, r) => r && (t in ue || (ue[t] = {}), e in ue[t] || (ue[t][e] = r), r), Qr = (e, t) => {
|
|
3919
3954
|
if (t == null)
|
|
3920
3955
|
return;
|
|
3921
3956
|
if (t in ue && e in ue[t])
|
|
3922
3957
|
return ue[t][e];
|
|
3923
|
-
const r =
|
|
3958
|
+
const r = bt(t);
|
|
3924
3959
|
for (let n = 0; n < r.length; n++) {
|
|
3925
|
-
const i = r[n], o =
|
|
3960
|
+
const i = r[n], o = ro(i, e);
|
|
3926
3961
|
if (o)
|
|
3927
|
-
return
|
|
3962
|
+
return eo(e, t, o);
|
|
3928
3963
|
}
|
|
3929
3964
|
};
|
|
3930
|
-
let
|
|
3931
|
-
const
|
|
3932
|
-
function
|
|
3933
|
-
return
|
|
3965
|
+
let zt;
|
|
3966
|
+
const Ne = mt({});
|
|
3967
|
+
function to(e) {
|
|
3968
|
+
return zt[e] || null;
|
|
3934
3969
|
}
|
|
3935
|
-
function
|
|
3936
|
-
return e in
|
|
3970
|
+
function Yr(e) {
|
|
3971
|
+
return e in zt;
|
|
3937
3972
|
}
|
|
3938
|
-
function
|
|
3939
|
-
if (!
|
|
3973
|
+
function ro(e, t) {
|
|
3974
|
+
if (!Yr(e))
|
|
3940
3975
|
return null;
|
|
3941
|
-
const r =
|
|
3942
|
-
return
|
|
3976
|
+
const r = to(e);
|
|
3977
|
+
return Ki(r, t);
|
|
3943
3978
|
}
|
|
3944
|
-
function
|
|
3979
|
+
function no(e) {
|
|
3945
3980
|
if (e == null)
|
|
3946
3981
|
return;
|
|
3947
|
-
const t =
|
|
3982
|
+
const t = bt(e);
|
|
3948
3983
|
for (let r = 0; r < t.length; r++) {
|
|
3949
3984
|
const n = t[r];
|
|
3950
|
-
if (
|
|
3985
|
+
if (Yr(n))
|
|
3951
3986
|
return n;
|
|
3952
3987
|
}
|
|
3953
3988
|
}
|
|
3954
|
-
function
|
|
3955
|
-
delete ue[e],
|
|
3989
|
+
function Kr(e, ...t) {
|
|
3990
|
+
delete ue[e], Ne.update((r) => (r[e] = si.all([r[e] || {}, ...t]), r));
|
|
3956
3991
|
}
|
|
3957
|
-
|
|
3958
|
-
[
|
|
3992
|
+
Me(
|
|
3993
|
+
[Ne],
|
|
3959
3994
|
([e]) => Object.keys(e)
|
|
3960
3995
|
);
|
|
3961
|
-
|
|
3996
|
+
Ne.subscribe((e) => zt = e);
|
|
3962
3997
|
const lt = {};
|
|
3963
|
-
function
|
|
3998
|
+
function io(e, t) {
|
|
3964
3999
|
lt[e].delete(t), lt[e].size === 0 && delete lt[e];
|
|
3965
4000
|
}
|
|
3966
|
-
function
|
|
4001
|
+
function en(e) {
|
|
3967
4002
|
return lt[e];
|
|
3968
4003
|
}
|
|
3969
|
-
function
|
|
3970
|
-
return
|
|
3971
|
-
const r =
|
|
4004
|
+
function oo(e) {
|
|
4005
|
+
return bt(e).map((t) => {
|
|
4006
|
+
const r = en(t);
|
|
3972
4007
|
return [t, r ? [...r] : []];
|
|
3973
4008
|
}).filter(([, t]) => t.length > 0);
|
|
3974
4009
|
}
|
|
3975
|
-
function
|
|
3976
|
-
return e == null ? !1 :
|
|
4010
|
+
function Gt(e) {
|
|
4011
|
+
return e == null ? !1 : bt(e).some(
|
|
3977
4012
|
(t) => {
|
|
3978
4013
|
var r;
|
|
3979
|
-
return (r =
|
|
4014
|
+
return (r = en(t)) == null ? void 0 : r.size;
|
|
3980
4015
|
}
|
|
3981
4016
|
);
|
|
3982
4017
|
}
|
|
3983
|
-
function
|
|
4018
|
+
function so(e, t) {
|
|
3984
4019
|
return Promise.all(
|
|
3985
|
-
t.map((n) => (
|
|
3986
|
-
).then((n) =>
|
|
3987
|
-
}
|
|
3988
|
-
const
|
|
3989
|
-
function
|
|
3990
|
-
if (!
|
|
3991
|
-
return e in
|
|
3992
|
-
const t =
|
|
3993
|
-
return
|
|
4020
|
+
t.map((n) => (io(e, n), n().then((i) => i.default || i)))
|
|
4021
|
+
).then((n) => Kr(e, ...n));
|
|
4022
|
+
}
|
|
4023
|
+
const Ge = {};
|
|
4024
|
+
function tn(e) {
|
|
4025
|
+
if (!Gt(e))
|
|
4026
|
+
return e in Ge ? Ge[e] : Promise.resolve();
|
|
4027
|
+
const t = oo(e);
|
|
4028
|
+
return Ge[e] = Promise.all(
|
|
3994
4029
|
t.map(
|
|
3995
|
-
([r, n]) =>
|
|
4030
|
+
([r, n]) => so(r, n)
|
|
3996
4031
|
)
|
|
3997
4032
|
).then(() => {
|
|
3998
|
-
if (
|
|
3999
|
-
return
|
|
4000
|
-
delete
|
|
4001
|
-
}),
|
|
4033
|
+
if (Gt(e))
|
|
4034
|
+
return tn(e);
|
|
4035
|
+
delete Ge[e];
|
|
4036
|
+
}), Ge[e];
|
|
4002
4037
|
}
|
|
4003
|
-
const
|
|
4038
|
+
const ao = {
|
|
4004
4039
|
number: {
|
|
4005
4040
|
scientific: { notation: "scientific" },
|
|
4006
4041
|
engineering: { notation: "engineering" },
|
|
@@ -4029,150 +4064,150 @@ const no = {
|
|
|
4029
4064
|
timeZoneName: "short"
|
|
4030
4065
|
}
|
|
4031
4066
|
}
|
|
4032
|
-
},
|
|
4067
|
+
}, lo = {
|
|
4033
4068
|
fallbackLocale: null,
|
|
4034
4069
|
loadingDelay: 200,
|
|
4035
|
-
formats:
|
|
4070
|
+
formats: ao,
|
|
4036
4071
|
warnOnMissingMessages: !0,
|
|
4037
4072
|
handleMissingMessage: void 0,
|
|
4038
4073
|
ignoreTag: !0
|
|
4039
|
-
},
|
|
4040
|
-
function
|
|
4041
|
-
return
|
|
4042
|
-
}
|
|
4043
|
-
const
|
|
4044
|
-
var
|
|
4045
|
-
for (var r in t)
|
|
4046
|
-
|
|
4047
|
-
if (
|
|
4048
|
-
for (var r of
|
|
4049
|
-
|
|
4074
|
+
}, uo = lo;
|
|
4075
|
+
function Ce() {
|
|
4076
|
+
return uo;
|
|
4077
|
+
}
|
|
4078
|
+
const Tt = mt(!1);
|
|
4079
|
+
var co = Object.defineProperty, ho = Object.defineProperties, fo = Object.getOwnPropertyDescriptors, dr = Object.getOwnPropertySymbols, mo = Object.prototype.hasOwnProperty, po = Object.prototype.propertyIsEnumerable, mr = (e, t, r) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, go = (e, t) => {
|
|
4080
|
+
for (var r in t || (t = {}))
|
|
4081
|
+
mo.call(t, r) && mr(e, r, t[r]);
|
|
4082
|
+
if (dr)
|
|
4083
|
+
for (var r of dr(t))
|
|
4084
|
+
po.call(t, r) && mr(e, r, t[r]);
|
|
4050
4085
|
return e;
|
|
4051
|
-
},
|
|
4052
|
-
let
|
|
4053
|
-
const
|
|
4054
|
-
function
|
|
4086
|
+
}, bo = (e, t) => ho(e, fo(t));
|
|
4087
|
+
let jt;
|
|
4088
|
+
const ht = mt(null);
|
|
4089
|
+
function pr(e) {
|
|
4055
4090
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4056
4091
|
}
|
|
4057
|
-
function
|
|
4058
|
-
const r =
|
|
4059
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4092
|
+
function bt(e, t = Ce().fallbackLocale) {
|
|
4093
|
+
const r = pr(e);
|
|
4094
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pr(t)])] : r;
|
|
4060
4095
|
}
|
|
4061
|
-
function
|
|
4062
|
-
return
|
|
4096
|
+
function ve() {
|
|
4097
|
+
return jt ?? void 0;
|
|
4063
4098
|
}
|
|
4064
|
-
|
|
4065
|
-
|
|
4099
|
+
ht.subscribe((e) => {
|
|
4100
|
+
jt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4066
4101
|
});
|
|
4067
|
-
const
|
|
4068
|
-
if (e &&
|
|
4069
|
-
const { loadingDelay: t } =
|
|
4102
|
+
const vo = (e) => {
|
|
4103
|
+
if (e && no(e) && Gt(e)) {
|
|
4104
|
+
const { loadingDelay: t } = Ce();
|
|
4070
4105
|
let r;
|
|
4071
|
-
return typeof window < "u" &&
|
|
4072
|
-
() =>
|
|
4106
|
+
return typeof window < "u" && ve() != null && t ? r = window.setTimeout(
|
|
4107
|
+
() => Tt.set(!0),
|
|
4073
4108
|
t
|
|
4074
|
-
) :
|
|
4075
|
-
|
|
4109
|
+
) : Tt.set(!0), tn(e).then(() => {
|
|
4110
|
+
ht.set(e);
|
|
4076
4111
|
}).finally(() => {
|
|
4077
|
-
clearTimeout(r),
|
|
4112
|
+
clearTimeout(r), Tt.set(!1);
|
|
4078
4113
|
});
|
|
4079
4114
|
}
|
|
4080
|
-
return
|
|
4081
|
-
}, ce =
|
|
4082
|
-
set:
|
|
4083
|
-
}),
|
|
4115
|
+
return ht.set(e);
|
|
4116
|
+
}, ce = bo(go({}, ht), {
|
|
4117
|
+
set: vo
|
|
4118
|
+
}), vt = (e) => {
|
|
4084
4119
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4085
4120
|
return (n) => {
|
|
4086
4121
|
const i = JSON.stringify(n);
|
|
4087
4122
|
return i in t ? t[i] : t[i] = e(n);
|
|
4088
4123
|
};
|
|
4089
4124
|
};
|
|
4090
|
-
var
|
|
4125
|
+
var yo = Object.defineProperty, ft = Object.getOwnPropertySymbols, rn = Object.prototype.hasOwnProperty, nn = Object.prototype.propertyIsEnumerable, gr = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xt = (e, t) => {
|
|
4091
4126
|
for (var r in t || (t = {}))
|
|
4092
|
-
|
|
4093
|
-
if (
|
|
4094
|
-
for (var r of
|
|
4095
|
-
|
|
4127
|
+
rn.call(t, r) && gr(e, r, t[r]);
|
|
4128
|
+
if (ft)
|
|
4129
|
+
for (var r of ft(t))
|
|
4130
|
+
nn.call(t, r) && gr(e, r, t[r]);
|
|
4096
4131
|
return e;
|
|
4097
|
-
},
|
|
4132
|
+
}, Re = (e, t) => {
|
|
4098
4133
|
var r = {};
|
|
4099
4134
|
for (var n in e)
|
|
4100
|
-
|
|
4101
|
-
if (e != null &&
|
|
4102
|
-
for (var n of
|
|
4103
|
-
t.indexOf(n) < 0 &&
|
|
4135
|
+
rn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4136
|
+
if (e != null && ft)
|
|
4137
|
+
for (var n of ft(e))
|
|
4138
|
+
t.indexOf(n) < 0 && nn.call(e, n) && (r[n] = e[n]);
|
|
4104
4139
|
return r;
|
|
4105
4140
|
};
|
|
4106
|
-
const
|
|
4107
|
-
const { formats: r } =
|
|
4141
|
+
const Xe = (e, t) => {
|
|
4142
|
+
const { formats: r } = Ce();
|
|
4108
4143
|
if (e in r && t in r[e])
|
|
4109
4144
|
return r[e][t];
|
|
4110
4145
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4111
|
-
},
|
|
4146
|
+
}, _o = vt(
|
|
4112
4147
|
(e) => {
|
|
4113
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = Re(t, ["locale", "format"]);
|
|
4114
4149
|
if (r == null)
|
|
4115
4150
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4116
|
-
return n && (i =
|
|
4151
|
+
return n && (i = Xe("number", n)), new Intl.NumberFormat(r, i);
|
|
4117
4152
|
}
|
|
4118
|
-
),
|
|
4153
|
+
), wo = vt(
|
|
4119
4154
|
(e) => {
|
|
4120
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4155
|
+
var t = e, { locale: r, format: n } = t, i = Re(t, ["locale", "format"]);
|
|
4121
4156
|
if (r == null)
|
|
4122
4157
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4123
|
-
return n ? i =
|
|
4158
|
+
return n ? i = Xe("date", n) : Object.keys(i).length === 0 && (i = Xe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4124
4159
|
}
|
|
4125
|
-
),
|
|
4160
|
+
), Eo = vt(
|
|
4126
4161
|
(e) => {
|
|
4127
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4162
|
+
var t = e, { locale: r, format: n } = t, i = Re(t, ["locale", "format"]);
|
|
4128
4163
|
if (r == null)
|
|
4129
4164
|
throw new Error(
|
|
4130
4165
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4131
4166
|
);
|
|
4132
|
-
return n ? i =
|
|
4167
|
+
return n ? i = Xe("time", n) : Object.keys(i).length === 0 && (i = Xe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4133
4168
|
}
|
|
4134
|
-
),
|
|
4169
|
+
), xo = (e = {}) => {
|
|
4135
4170
|
var t = e, {
|
|
4136
|
-
locale: r =
|
|
4137
|
-
} = t, n =
|
|
4171
|
+
locale: r = ve()
|
|
4172
|
+
} = t, n = Re(t, [
|
|
4138
4173
|
"locale"
|
|
4139
4174
|
]);
|
|
4140
|
-
return
|
|
4141
|
-
},
|
|
4175
|
+
return _o(Xt({ locale: r }, n));
|
|
4176
|
+
}, So = (e = {}) => {
|
|
4142
4177
|
var t = e, {
|
|
4143
|
-
locale: r =
|
|
4144
|
-
} = t, n =
|
|
4178
|
+
locale: r = ve()
|
|
4179
|
+
} = t, n = Re(t, [
|
|
4145
4180
|
"locale"
|
|
4146
4181
|
]);
|
|
4147
|
-
return
|
|
4148
|
-
},
|
|
4182
|
+
return wo(Xt({ locale: r }, n));
|
|
4183
|
+
}, Po = (e = {}) => {
|
|
4149
4184
|
var t = e, {
|
|
4150
|
-
locale: r =
|
|
4151
|
-
} = t, n =
|
|
4185
|
+
locale: r = ve()
|
|
4186
|
+
} = t, n = Re(t, [
|
|
4152
4187
|
"locale"
|
|
4153
4188
|
]);
|
|
4154
|
-
return
|
|
4155
|
-
},
|
|
4189
|
+
return Eo(Xt({ locale: r }, n));
|
|
4190
|
+
}, To = vt(
|
|
4156
4191
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4157
|
-
(e, t =
|
|
4158
|
-
ignoreTag:
|
|
4192
|
+
(e, t = ve()) => new Yi(e, t, Ce().formats, {
|
|
4193
|
+
ignoreTag: Ce().ignoreTag
|
|
4159
4194
|
})
|
|
4160
|
-
),
|
|
4195
|
+
), Ho = (e, t = {}) => {
|
|
4161
4196
|
var r, n, i, o;
|
|
4162
4197
|
let s = t;
|
|
4163
4198
|
typeof e == "object" && (s = e, e = s.id);
|
|
4164
4199
|
const {
|
|
4165
4200
|
values: a,
|
|
4166
|
-
locale: c =
|
|
4201
|
+
locale: c = ve(),
|
|
4167
4202
|
default: l
|
|
4168
4203
|
} = s;
|
|
4169
4204
|
if (c == null)
|
|
4170
4205
|
throw new Error(
|
|
4171
4206
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4172
4207
|
);
|
|
4173
|
-
let u =
|
|
4208
|
+
let u = Qr(e, c);
|
|
4174
4209
|
if (!u)
|
|
4175
|
-
u = (o = (i = (n = (r =
|
|
4210
|
+
u = (o = (i = (n = (r = Ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4176
4211
|
else if (typeof u != "string")
|
|
4177
4212
|
return console.warn(
|
|
4178
4213
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4181,7 +4216,7 @@ const We = (e, t) => {
|
|
|
4181
4216
|
return u;
|
|
4182
4217
|
let f = u;
|
|
4183
4218
|
try {
|
|
4184
|
-
f =
|
|
4219
|
+
f = To(u, c).format(a);
|
|
4185
4220
|
} catch (d) {
|
|
4186
4221
|
d instanceof Error && console.warn(
|
|
4187
4222
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4189,25 +4224,25 @@ const We = (e, t) => {
|
|
|
4189
4224
|
);
|
|
4190
4225
|
}
|
|
4191
4226
|
return f;
|
|
4192
|
-
},
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
window.emWidgets = { topic:
|
|
4198
|
-
const
|
|
4199
|
-
function
|
|
4227
|
+
}, Bo = (e, t) => Po(t).format(e), Ao = (e, t) => So(t).format(e), Io = (e, t) => xo(t).format(e), Oo = (e, t = ve()) => Qr(e, t), Co = Me([ce, Ne], () => Ho);
|
|
4228
|
+
Me([ce], () => Bo);
|
|
4229
|
+
Me([ce], () => Ao);
|
|
4230
|
+
Me([ce], () => Io);
|
|
4231
|
+
Me([ce, Ne], () => Oo);
|
|
4232
|
+
window.emWidgets = { topic: jn };
|
|
4233
|
+
const Lo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4234
|
+
function Mo({ withLocale: e, translations: t }) {
|
|
4200
4235
|
ce.subscribe((r) => {
|
|
4201
|
-
r == null && (
|
|
4236
|
+
r == null && (Ne.set(t), ce.set(e));
|
|
4202
4237
|
});
|
|
4203
4238
|
}
|
|
4204
|
-
function
|
|
4205
|
-
|
|
4239
|
+
function br(e, t) {
|
|
4240
|
+
Kr(e, t);
|
|
4206
4241
|
}
|
|
4207
|
-
function
|
|
4242
|
+
function No(e) {
|
|
4208
4243
|
ce.set(e);
|
|
4209
4244
|
}
|
|
4210
|
-
const
|
|
4245
|
+
const vr = {
|
|
4211
4246
|
en: {
|
|
4212
4247
|
loginTitle: "Welcome",
|
|
4213
4248
|
loginSubtitle: "Don't have an account yet?",
|
|
@@ -4352,13 +4387,13 @@ const mr = {
|
|
|
4352
4387
|
successMessage: "Login successful"
|
|
4353
4388
|
}
|
|
4354
4389
|
};
|
|
4355
|
-
function
|
|
4390
|
+
function Ro(e, t) {
|
|
4356
4391
|
if (e) {
|
|
4357
4392
|
const r = document.createElement("style");
|
|
4358
4393
|
r.innerHTML = t, e.appendChild(r);
|
|
4359
4394
|
}
|
|
4360
4395
|
}
|
|
4361
|
-
function
|
|
4396
|
+
function Uo(e, t) {
|
|
4362
4397
|
const r = new URL(t);
|
|
4363
4398
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4364
4399
|
const i = document.createElement("style");
|
|
@@ -4367,7 +4402,7 @@ function Lo(e, t) {
|
|
|
4367
4402
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4368
4403
|
});
|
|
4369
4404
|
}
|
|
4370
|
-
function
|
|
4405
|
+
function Fo(e, t, r) {
|
|
4371
4406
|
if (window.emMessageBus) {
|
|
4372
4407
|
const n = document.createElement("style");
|
|
4373
4408
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4387,18 +4422,18 @@ if (typeof window < "u") {
|
|
|
4387
4422
|
}
|
|
4388
4423
|
};
|
|
4389
4424
|
};
|
|
4390
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4425
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-DJahVXQg.js").then(({ default: t }) => {
|
|
4391
4426
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4392
4427
|
});
|
|
4393
4428
|
}
|
|
4394
|
-
function
|
|
4395
|
-
|
|
4429
|
+
function Do(e) {
|
|
4430
|
+
un(e, "svelte-7c22cn", '.grecaptcha-badge{opacity:0}input,select{font-family:inherit}.PlayerLoginFormWrapper{height:100%;border-radius:var(--emw--border-radius-medium, 15px)}.FormContainer{width:100%}.FormLogin{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));padding:50px}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emw--color-error, var(--emw--color-error, #ed0909))}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer,.CaptchaContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label,.CaptchaContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserContainer input,.PasswordContainer input,.CaptchaContainer input{width:100%;height:44px;border-radius:15px;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.UserContainer input:focus,.PasswordContainer input:focus,.CaptchaContainer input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.CaptchaContainer.InvalidField input{border:1px solid var(--emw--color-error, var(--emw--color-error, #ed0909));background:var(--emw--color-pale, #FBECF4);outline:none;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--color-error, var(--emw--color-error, #ed0909))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.SignInButton{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.SignInButton[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.ForgotPasswordButton{border:0;background:transparent;font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-error, #ed0909));font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, var(--emw--color-error, #ed0909))}.FormMobileContainer{height:100%}.FormMobileContainer .FormLogin{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input,.FormMobileContainer .CaptchaContainer{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.ModalLoaderWrapper{display:flex;height:100%;align-items:center}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4396
4431
|
}
|
|
4397
|
-
function
|
|
4432
|
+
function yr(e) {
|
|
4398
4433
|
let t, r;
|
|
4399
4434
|
return {
|
|
4400
4435
|
c() {
|
|
4401
|
-
t =
|
|
4436
|
+
t = E("script"), qt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4402
4437
|
e[1]) || h(t, "src", r), t.async = !0, t.defer = !0;
|
|
4403
4438
|
},
|
|
4404
4439
|
m(n, i) {
|
|
@@ -4406,7 +4441,7 @@ function pr(e) {
|
|
|
4406
4441
|
},
|
|
4407
4442
|
p(n, i) {
|
|
4408
4443
|
i[0] & /*captchakey*/
|
|
4409
|
-
2 && !
|
|
4444
|
+
2 && !qt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4410
4445
|
n[1]) && h(t, "src", r);
|
|
4411
4446
|
},
|
|
4412
4447
|
d(n) {
|
|
@@ -4414,18 +4449,18 @@ function pr(e) {
|
|
|
4414
4449
|
}
|
|
4415
4450
|
};
|
|
4416
4451
|
}
|
|
4417
|
-
function
|
|
4452
|
+
function ko(e) {
|
|
4418
4453
|
let t, r, n;
|
|
4419
4454
|
function i(a, c) {
|
|
4420
4455
|
return (
|
|
4421
4456
|
/*startSmsValidation*/
|
|
4422
|
-
a[21] ?
|
|
4457
|
+
a[21] ? jo : Go
|
|
4423
4458
|
);
|
|
4424
4459
|
}
|
|
4425
4460
|
let o = i(e), s = o(e);
|
|
4426
4461
|
return {
|
|
4427
4462
|
c() {
|
|
4428
|
-
t =
|
|
4463
|
+
t = E("div"), r = E("div"), s.c(), h(r, "class", "FormLogin"), h(t, "class", n = "FormContainer " + /*mobileView*/
|
|
4429
4464
|
(e[11] ? "FormMobileContainer" : ""));
|
|
4430
4465
|
},
|
|
4431
4466
|
m(a, c) {
|
|
@@ -4441,11 +4476,11 @@ function Ro(e) {
|
|
|
4441
4476
|
}
|
|
4442
4477
|
};
|
|
4443
4478
|
}
|
|
4444
|
-
function
|
|
4479
|
+
function $o(e) {
|
|
4445
4480
|
let t;
|
|
4446
4481
|
return {
|
|
4447
4482
|
c() {
|
|
4448
|
-
t =
|
|
4483
|
+
t = E("div"), t.innerHTML = '<div class="ModalLoader"></div>', h(t, "class", "ModalLoaderWrapper");
|
|
4449
4484
|
},
|
|
4450
4485
|
m(r, n) {
|
|
4451
4486
|
L(r, t, n);
|
|
@@ -4456,7 +4491,7 @@ function Uo(e) {
|
|
|
4456
4491
|
}
|
|
4457
4492
|
};
|
|
4458
4493
|
}
|
|
4459
|
-
function
|
|
4494
|
+
function Go(e) {
|
|
4460
4495
|
let t, r, n = (
|
|
4461
4496
|
/*$_*/
|
|
4462
4497
|
e[22]("loginTitle") + ""
|
|
@@ -4466,158 +4501,158 @@ function Fo(e) {
|
|
|
4466
4501
|
), c, l, u, f = (
|
|
4467
4502
|
/*$_*/
|
|
4468
4503
|
e[22]("loginSubtitleRegister") + ""
|
|
4469
|
-
), d, b,
|
|
4504
|
+
), d, b, y, g, x, O, z = (
|
|
4470
4505
|
/*$_*/
|
|
4471
4506
|
e[22]("loginUsername") + ""
|
|
4472
|
-
), R, U, A, re, H,
|
|
4507
|
+
), R, U, A, re, H, oe, he, J, le, B, ne, X = (
|
|
4473
4508
|
/*$_*/
|
|
4474
4509
|
e[22]("loginPassword") + ""
|
|
4475
|
-
),
|
|
4510
|
+
), Ue, Ze, fe, de, M, ye, qe, _e, we, me, Fe, Ee, Q, pe = (
|
|
4476
4511
|
/*$_*/
|
|
4477
4512
|
e[22]("loginButton") + ""
|
|
4478
4513
|
), xe, Je, ge, be = (
|
|
4479
4514
|
/*$_*/
|
|
4480
4515
|
e[22]("loginForgotPassword") + ""
|
|
4481
|
-
),
|
|
4516
|
+
), De, ke, Qe, F = (
|
|
4482
4517
|
/*invalidName*/
|
|
4483
|
-
e[14] &&
|
|
4518
|
+
e[14] && _r(e)
|
|
4484
4519
|
);
|
|
4485
|
-
function Ye(
|
|
4520
|
+
function Ye(v, S) {
|
|
4486
4521
|
return (
|
|
4487
4522
|
/*isPasswordVisible*/
|
|
4488
|
-
|
|
4523
|
+
v[19] ? zo : Vo
|
|
4489
4524
|
);
|
|
4490
4525
|
}
|
|
4491
4526
|
let Se = Ye(e), Y = Se(e), D = (
|
|
4492
4527
|
/*invalidPassword*/
|
|
4493
4528
|
e[15] && /*simplepasswordvalidation*/
|
|
4494
|
-
e[2] !== "true" &&
|
|
4529
|
+
e[2] !== "true" && wr(e)
|
|
4495
4530
|
), k = (
|
|
4496
4531
|
/*invalidPassword*/
|
|
4497
4532
|
e[15] && /*simplepasswordvalidation*/
|
|
4498
|
-
e[2] === "true" &&
|
|
4499
|
-
),
|
|
4533
|
+
e[2] === "true" && Er(e)
|
|
4534
|
+
), $ = (
|
|
4500
4535
|
/*errorMessage*/
|
|
4501
|
-
e[16] &&
|
|
4536
|
+
e[16] && xr(e)
|
|
4502
4537
|
);
|
|
4503
4538
|
return {
|
|
4504
4539
|
c() {
|
|
4505
|
-
t =
|
|
4506
|
-
e[6] ? "username email" : "off"), H.required = !0, h(
|
|
4507
|
-
(e[14] ? "InvalidField" : "")), h(fe, "class", "FormRequired"), h(ne, "for", "current-password"), h(M, "type", "password"), h(M, "name", "current-password"), h(M, "id", "current-password"), h(M, "autocomplete",
|
|
4540
|
+
t = E("div"), r = E("h4"), i = N(n), o = j(), s = E("p"), c = N(a), l = j(), u = E("span"), d = N(f), b = j(), y = E("div"), g = E("form"), x = E("div"), O = E("label"), R = N(z), U = N(":"), A = E("span"), A.textContent = "*", re = j(), H = E("input"), he = j(), F && F.c(), le = j(), B = E("div"), ne = E("label"), Ue = N(X), Ze = N(":"), fe = E("span"), fe.textContent = "*", de = j(), M = E("input"), qe = j(), Y.c(), _e = j(), D && D.c(), we = j(), k && k.c(), Fe = j(), $ && $.c(), Ee = j(), Q = E("button"), xe = N(pe), Je = j(), ge = E("button"), De = N(be), h(r, "class", "FormHeaderTitle"), h(u, "class", "FormRegisterCallToAction"), h(s, "class", "FormHeaderSubtitle"), h(t, "class", "FormHeader"), h(A, "class", "FormRequired"), h(O, "for", "username"), h(H, "type", "text"), h(H, "id", "email"), h(H, "name", "email"), h(H, "autocomplete", oe = /*savecredentials*/
|
|
4541
|
+
e[6] ? "username email" : "off"), H.required = !0, h(x, "class", J = "UserContainer " + /*invalidName*/
|
|
4542
|
+
(e[14] ? "InvalidField" : "")), h(fe, "class", "FormRequired"), h(ne, "for", "current-password"), h(M, "type", "password"), h(M, "name", "current-password"), h(M, "id", "current-password"), h(M, "autocomplete", ye = /*savecredentials*/
|
|
4508
4543
|
e[6] ? "current-password" : "off"), h(M, "aria-describedby", "password-constraints"), M.required = !0, h(B, "class", me = "PasswordContainer " + /*invalidPassword*/
|
|
4509
4544
|
(e[15] ? "InvalidField" : "")), h(Q, "class", "SignInButton"), Q.disabled = /*isFormDataInvalid*/
|
|
4510
|
-
e[20], h(Q, "id", "signin-button"), h(ge, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(
|
|
4545
|
+
e[20], h(Q, "id", "signin-button"), h(ge, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(y, "class", "FormContent");
|
|
4511
4546
|
},
|
|
4512
|
-
m(
|
|
4513
|
-
L(
|
|
4547
|
+
m(v, S) {
|
|
4548
|
+
L(v, t, S), m(t, r), m(r, i), m(t, o), m(t, s), m(s, c), m(s, l), m(s, u), m(u, d), L(v, b, S), L(v, y, S), m(y, g), m(g, x), m(x, O), m(O, R), m(O, U), m(O, A), m(x, re), m(x, H), rt(
|
|
4514
4549
|
H,
|
|
4515
4550
|
/*userValue*/
|
|
4516
4551
|
e[12]
|
|
4517
|
-
), m(
|
|
4552
|
+
), m(x, he), F && F.m(x, null), m(g, le), m(g, B), m(B, ne), m(ne, Ue), m(ne, Ze), m(ne, fe), m(B, de), m(B, M), rt(
|
|
4518
4553
|
M,
|
|
4519
4554
|
/*userPassword*/
|
|
4520
4555
|
e[13]
|
|
4521
|
-
), e[36](M), m(B, qe), Y.m(B, null), m(B, _e), D && D.m(B, null), m(B, we), k && k.m(B, null), m(g,
|
|
4522
|
-
|
|
4556
|
+
), e[36](M), m(B, qe), Y.m(B, null), m(B, _e), D && D.m(B, null), m(B, we), k && k.m(B, null), m(g, Fe), $ && $.m(g, null), m(g, Ee), m(g, Q), m(Q, xe), m(g, Je), m(g, ge), m(ge, De), ke || (Qe = [
|
|
4557
|
+
se(
|
|
4523
4558
|
u,
|
|
4524
4559
|
"click",
|
|
4525
4560
|
/*click_handler*/
|
|
4526
4561
|
e[33]
|
|
4527
4562
|
),
|
|
4528
|
-
|
|
4563
|
+
se(
|
|
4529
4564
|
H,
|
|
4530
4565
|
"input",
|
|
4531
4566
|
/*input0_input_handler*/
|
|
4532
4567
|
e[34]
|
|
4533
4568
|
),
|
|
4534
|
-
|
|
4569
|
+
se(
|
|
4535
4570
|
H,
|
|
4536
4571
|
"input",
|
|
4537
4572
|
/*validateUserName*/
|
|
4538
4573
|
e[28]
|
|
4539
4574
|
),
|
|
4540
|
-
|
|
4575
|
+
se(
|
|
4541
4576
|
M,
|
|
4542
4577
|
"input",
|
|
4543
4578
|
/*input1_input_handler*/
|
|
4544
4579
|
e[35]
|
|
4545
4580
|
),
|
|
4546
|
-
|
|
4581
|
+
se(
|
|
4547
4582
|
M,
|
|
4548
4583
|
"input",
|
|
4549
4584
|
/*validatePassword*/
|
|
4550
4585
|
e[29]
|
|
4551
4586
|
),
|
|
4552
|
-
|
|
4587
|
+
se(
|
|
4553
4588
|
Q,
|
|
4554
4589
|
"click",
|
|
4555
4590
|
/*click_handler_3*/
|
|
4556
4591
|
e[39]
|
|
4557
4592
|
),
|
|
4558
|
-
|
|
4593
|
+
se(
|
|
4559
4594
|
ge,
|
|
4560
4595
|
"click",
|
|
4561
4596
|
/*click_handler_4*/
|
|
4562
4597
|
e[40]
|
|
4563
4598
|
)
|
|
4564
|
-
],
|
|
4599
|
+
], ke = !0);
|
|
4565
4600
|
},
|
|
4566
|
-
p(
|
|
4567
|
-
|
|
4601
|
+
p(v, S) {
|
|
4602
|
+
S[0] & /*$_*/
|
|
4568
4603
|
4194304 && n !== (n = /*$_*/
|
|
4569
|
-
|
|
4604
|
+
v[22]("loginTitle") + "") && te(i, n), S[0] & /*$_*/
|
|
4570
4605
|
4194304 && a !== (a = /*$_*/
|
|
4571
|
-
|
|
4606
|
+
v[22]("loginSubtitle") + "") && te(c, a), S[0] & /*$_*/
|
|
4572
4607
|
4194304 && f !== (f = /*$_*/
|
|
4573
|
-
|
|
4608
|
+
v[22]("loginSubtitleRegister") + "") && te(d, f), S[0] & /*$_*/
|
|
4574
4609
|
4194304 && z !== (z = /*$_*/
|
|
4575
|
-
|
|
4576
|
-
64 &&
|
|
4577
|
-
|
|
4610
|
+
v[22]("loginUsername") + "") && te(R, z), S[0] & /*savecredentials*/
|
|
4611
|
+
64 && oe !== (oe = /*savecredentials*/
|
|
4612
|
+
v[6] ? "username email" : "off") && h(H, "autocomplete", oe), S[0] & /*userValue*/
|
|
4578
4613
|
4096 && H.value !== /*userValue*/
|
|
4579
|
-
|
|
4614
|
+
v[12] && rt(
|
|
4580
4615
|
H,
|
|
4581
4616
|
/*userValue*/
|
|
4582
|
-
|
|
4617
|
+
v[12]
|
|
4583
4618
|
), /*invalidName*/
|
|
4584
|
-
|
|
4619
|
+
v[14] ? F ? F.p(v, S) : (F = _r(v), F.c(), F.m(x, null)) : F && (F.d(1), F = null), S[0] & /*invalidName*/
|
|
4585
4620
|
16384 && J !== (J = "UserContainer " + /*invalidName*/
|
|
4586
|
-
(
|
|
4621
|
+
(v[14] ? "InvalidField" : "")) && h(x, "class", J), S[0] & /*$_*/
|
|
4587
4622
|
4194304 && X !== (X = /*$_*/
|
|
4588
|
-
|
|
4589
|
-
64 &&
|
|
4590
|
-
|
|
4623
|
+
v[22]("loginPassword") + "") && te(Ue, X), S[0] & /*savecredentials*/
|
|
4624
|
+
64 && ye !== (ye = /*savecredentials*/
|
|
4625
|
+
v[6] ? "current-password" : "off") && h(M, "autocomplete", ye), S[0] & /*userPassword*/
|
|
4591
4626
|
8192 && M.value !== /*userPassword*/
|
|
4592
|
-
|
|
4627
|
+
v[13] && rt(
|
|
4593
4628
|
M,
|
|
4594
4629
|
/*userPassword*/
|
|
4595
|
-
|
|
4596
|
-
), Se === (Se = Ye(
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4630
|
+
v[13]
|
|
4631
|
+
), Se === (Se = Ye(v)) && Y ? Y.p(v, S) : (Y.d(1), Y = Se(v), Y && (Y.c(), Y.m(B, _e))), /*invalidPassword*/
|
|
4632
|
+
v[15] && /*simplepasswordvalidation*/
|
|
4633
|
+
v[2] !== "true" ? D ? D.p(v, S) : (D = wr(v), D.c(), D.m(B, we)) : D && (D.d(1), D = null), /*invalidPassword*/
|
|
4634
|
+
v[15] && /*simplepasswordvalidation*/
|
|
4635
|
+
v[2] === "true" ? k ? k.p(v, S) : (k = Er(v), k.c(), k.m(B, null)) : k && (k.d(1), k = null), S[0] & /*invalidPassword*/
|
|
4601
4636
|
32768 && me !== (me = "PasswordContainer " + /*invalidPassword*/
|
|
4602
|
-
(
|
|
4603
|
-
|
|
4637
|
+
(v[15] ? "InvalidField" : "")) && h(B, "class", me), /*errorMessage*/
|
|
4638
|
+
v[16] ? $ ? $.p(v, S) : ($ = xr(v), $.c(), $.m(g, Ee)) : $ && ($.d(1), $ = null), S[0] & /*$_*/
|
|
4604
4639
|
4194304 && pe !== (pe = /*$_*/
|
|
4605
|
-
|
|
4640
|
+
v[22]("loginButton") + "") && te(xe, pe), S[0] & /*isFormDataInvalid*/
|
|
4606
4641
|
1048576 && (Q.disabled = /*isFormDataInvalid*/
|
|
4607
|
-
|
|
4642
|
+
v[20]), S[0] & /*$_*/
|
|
4608
4643
|
4194304 && be !== (be = /*$_*/
|
|
4609
|
-
|
|
4644
|
+
v[22]("loginForgotPassword") + "") && te(De, be);
|
|
4610
4645
|
},
|
|
4611
|
-
d(
|
|
4612
|
-
|
|
4646
|
+
d(v) {
|
|
4647
|
+
v && (I(t), I(b), I(y)), F && F.d(), e[36](null), Y.d(), D && D.d(), k && k.d(), $ && $.d(), ke = !1, Le(Qe);
|
|
4613
4648
|
}
|
|
4614
4649
|
};
|
|
4615
4650
|
}
|
|
4616
|
-
function
|
|
4651
|
+
function jo(e) {
|
|
4617
4652
|
let t;
|
|
4618
4653
|
return {
|
|
4619
4654
|
c() {
|
|
4620
|
-
t =
|
|
4655
|
+
t = E("general-player-sms-verification-form"), W(
|
|
4621
4656
|
t,
|
|
4622
4657
|
"endpoint",
|
|
4623
4658
|
/*endpoint*/
|
|
@@ -4707,14 +4742,14 @@ function Do(e) {
|
|
|
4707
4742
|
}
|
|
4708
4743
|
};
|
|
4709
4744
|
}
|
|
4710
|
-
function
|
|
4745
|
+
function _r(e) {
|
|
4711
4746
|
let t, r = (
|
|
4712
4747
|
/*$_*/
|
|
4713
4748
|
e[22]("loginUsernameError") + ""
|
|
4714
4749
|
), n;
|
|
4715
4750
|
return {
|
|
4716
4751
|
c() {
|
|
4717
|
-
t =
|
|
4752
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4718
4753
|
},
|
|
4719
4754
|
m(i, o) {
|
|
4720
4755
|
L(i, t, o), m(t, n);
|
|
@@ -4729,14 +4764,14 @@ function gr(e) {
|
|
|
4729
4764
|
}
|
|
4730
4765
|
};
|
|
4731
4766
|
}
|
|
4732
|
-
function
|
|
4767
|
+
function Vo(e) {
|
|
4733
4768
|
let t, r, n, i, o, s, a, c, l;
|
|
4734
4769
|
return {
|
|
4735
4770
|
c() {
|
|
4736
|
-
t =
|
|
4771
|
+
t = C("svg"), r = C("defs"), n = C("style"), i = N(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"), o = C("g"), s = C("path"), a = C("circle"), h(s, "class", "a"), h(s, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"), h(s, "transform", "translate(0)"), h(a, "class", "a"), h(a, "cx", "2.779"), h(a, "cy", "2.779"), h(a, "r", "2.779"), h(a, "transform", "translate(20.827 30.303)"), h(o, "transform", "translate(-14.185 -27.832)"), h(t, "class", "TogglePasswordVisibility"), h(t, "xmlns", "http://www.w3.org/2000/svg"), h(t, "width", "18.843"), h(t, "height", "10.5"), h(t, "viewBox", "0 0 18.843 10.5");
|
|
4737
4772
|
},
|
|
4738
4773
|
m(u, f) {
|
|
4739
|
-
L(u, t, f), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), c || (l =
|
|
4774
|
+
L(u, t, f), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), c || (l = se(
|
|
4740
4775
|
t,
|
|
4741
4776
|
"click",
|
|
4742
4777
|
/*click_handler_2*/
|
|
@@ -4749,34 +4784,34 @@ function ko(e) {
|
|
|
4749
4784
|
}
|
|
4750
4785
|
};
|
|
4751
4786
|
}
|
|
4752
|
-
function
|
|
4753
|
-
let t, r, n, i, o, s, a, c, l, u, f, d, b,
|
|
4787
|
+
function zo(e) {
|
|
4788
|
+
let t, r, n, i, o, s, a, c, l, u, f, d, b, y, g;
|
|
4754
4789
|
return {
|
|
4755
4790
|
c() {
|
|
4756
|
-
t =
|
|
4791
|
+
t = C("svg"), r = C("defs"), n = C("style"), i = N(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"), o = C("g"), s = C("circle"), a = C("g"), c = C("path"), l = C("path"), u = C("g"), f = C("path"), d = C("path"), b = C("rect"), h(s, "class", "a"), h(s, "cx", "0.05"), h(s, "cy", "0.05"), h(s, "r", "0.05"), h(s, "transform", "translate(121.017 31.148)"), h(c, "class", "a"), h(c, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), h(c, "transform", "translate(-142.164 -39.123)"), h(l, "class", "a"), h(l, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), h(l, "transform", "translate(-136.413 -42.068)"), h(a, "transform", "translate(117.499 27.37)"), h(f, "class", "a"), h(f, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"), h(f, "transform", "translate(-110.856 -33.157)"), h(d, "class", "a"), h(d, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"), h(d, "transform", "translate(-130.743 -29.617)"), h(u, "transform", "translate(110.856 24.899)"), h(b, "class", "a"), h(b, "width", "0.972"), h(b, "height", "15.861"), h(b, "rx", "0.486"), h(b, "transform", "translate(114.827 23.858) rotate(-39.315)"), h(o, "transform", "translate(-110.856 -23.242)"), h(t, "class", "TogglePasswordVisibility"), h(t, "xmlns", "http://www.w3.org/2000/svg"), h(t, "width", "18.844"), h(t, "height", "12.887"), h(t, "viewBox", "0 0 18.844 12.887");
|
|
4757
4792
|
},
|
|
4758
|
-
m(
|
|
4759
|
-
L(
|
|
4793
|
+
m(x, O) {
|
|
4794
|
+
L(x, t, O), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), m(a, c), m(a, l), m(o, u), m(u, f), m(u, d), m(o, b), y || (g = se(
|
|
4760
4795
|
t,
|
|
4761
4796
|
"click",
|
|
4762
4797
|
/*click_handler_1*/
|
|
4763
4798
|
e[37]
|
|
4764
|
-
),
|
|
4799
|
+
), y = !0);
|
|
4765
4800
|
},
|
|
4766
4801
|
p: Z,
|
|
4767
|
-
d(
|
|
4768
|
-
|
|
4802
|
+
d(x) {
|
|
4803
|
+
x && I(t), y = !1, g();
|
|
4769
4804
|
}
|
|
4770
4805
|
};
|
|
4771
4806
|
}
|
|
4772
|
-
function
|
|
4807
|
+
function wr(e) {
|
|
4773
4808
|
let t, r = (
|
|
4774
4809
|
/*$_*/
|
|
4775
4810
|
e[22]("loginPasswordError") + ""
|
|
4776
4811
|
), n;
|
|
4777
4812
|
return {
|
|
4778
4813
|
c() {
|
|
4779
|
-
t =
|
|
4814
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4780
4815
|
},
|
|
4781
4816
|
m(i, o) {
|
|
4782
4817
|
L(i, t, o), m(t, n);
|
|
@@ -4791,14 +4826,14 @@ function br(e) {
|
|
|
4791
4826
|
}
|
|
4792
4827
|
};
|
|
4793
4828
|
}
|
|
4794
|
-
function
|
|
4829
|
+
function Er(e) {
|
|
4795
4830
|
let t, r = (
|
|
4796
4831
|
/*$_*/
|
|
4797
4832
|
e[22]("loginSimplePasswordError") + ""
|
|
4798
4833
|
), n;
|
|
4799
4834
|
return {
|
|
4800
4835
|
c() {
|
|
4801
|
-
t =
|
|
4836
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4802
4837
|
},
|
|
4803
4838
|
m(i, o) {
|
|
4804
4839
|
L(i, t, o), m(t, n);
|
|
@@ -4813,11 +4848,11 @@ function yr(e) {
|
|
|
4813
4848
|
}
|
|
4814
4849
|
};
|
|
4815
4850
|
}
|
|
4816
|
-
function
|
|
4851
|
+
function xr(e) {
|
|
4817
4852
|
let t, r;
|
|
4818
4853
|
return {
|
|
4819
4854
|
c() {
|
|
4820
|
-
t =
|
|
4855
|
+
t = E("p"), r = N(
|
|
4821
4856
|
/*errorMessage*/
|
|
4822
4857
|
e[16]
|
|
4823
4858
|
), h(t, "class", "ErrorMessage");
|
|
@@ -4838,21 +4873,21 @@ function vr(e) {
|
|
|
4838
4873
|
}
|
|
4839
4874
|
};
|
|
4840
4875
|
}
|
|
4841
|
-
function
|
|
4876
|
+
function Xo(e) {
|
|
4842
4877
|
let t, r, n, i, o, s = (
|
|
4843
4878
|
/*captchakey*/
|
|
4844
|
-
e[1] &&
|
|
4879
|
+
e[1] && yr(e)
|
|
4845
4880
|
);
|
|
4846
4881
|
function a(u, f) {
|
|
4847
4882
|
return (
|
|
4848
4883
|
/*isLoading*/
|
|
4849
|
-
u[17] ?
|
|
4884
|
+
u[17] ? $o : ko
|
|
4850
4885
|
);
|
|
4851
4886
|
}
|
|
4852
4887
|
let c = a(e), l = c(e);
|
|
4853
4888
|
return {
|
|
4854
4889
|
c() {
|
|
4855
|
-
s && s.c(), t =
|
|
4890
|
+
s && s.c(), t = fn(), r = j(), n = E("div"), i = j(), o = E("div"), l.c(), h(n, "class", "g-recaptcha"), h(
|
|
4856
4891
|
n,
|
|
4857
4892
|
"data-sitekey",
|
|
4858
4893
|
/*captchakey*/
|
|
@@ -4864,7 +4899,7 @@ function $o(e) {
|
|
|
4864
4899
|
},
|
|
4865
4900
|
p(u, f) {
|
|
4866
4901
|
/*captchakey*/
|
|
4867
|
-
u[1] ? s ? s.p(u, f) : (s =
|
|
4902
|
+
u[1] ? s ? s.p(u, f) : (s = yr(u), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), f[0] & /*captchakey*/
|
|
4868
4903
|
2 && h(
|
|
4869
4904
|
n,
|
|
4870
4905
|
"data-sitekey",
|
|
@@ -4879,29 +4914,29 @@ function $o(e) {
|
|
|
4879
4914
|
}
|
|
4880
4915
|
};
|
|
4881
4916
|
}
|
|
4882
|
-
let
|
|
4883
|
-
function
|
|
4917
|
+
let Wo = "Please use this code {0} to activate your account";
|
|
4918
|
+
function Zo(e, t, r) {
|
|
4884
4919
|
let n;
|
|
4885
|
-
|
|
4886
|
-
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: c = "false" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: d = "" } = t, { savecredentials: b = "" } = t,
|
|
4920
|
+
ln(e, Co, (p) => r(22, n = p));
|
|
4921
|
+
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: c = "false" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: d = "" } = t, { savecredentials: b = "" } = t, y, g, x = !1, O, z = !1, R = window.navigator.userAgent, U = "", A = "", re = { username: "", password: "" }, H = !1, oe = !1, he = "", J = !1, le, B = !1, ne = !0, X, Ue = +localStorage.getItem("smsTimer") || 0, Ze = Date.now() / 1e3 - Ue, fe = localStorage.getItem("smsValidation") == "true" && Ze < 60, de = {
|
|
4887
4922
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
4888
4923
|
email: /^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,
|
|
4889
4924
|
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
4890
4925
|
};
|
|
4891
|
-
|
|
4926
|
+
Mo({ withLocale: "en", translations: {} });
|
|
4892
4927
|
const M = () => {
|
|
4893
4928
|
fetch(d).then((q) => q.json()).then((q) => {
|
|
4894
4929
|
Object.keys(q).forEach((ee) => {
|
|
4895
|
-
|
|
4930
|
+
br(ee, q[ee]);
|
|
4896
4931
|
});
|
|
4897
4932
|
}).catch((q) => {
|
|
4898
4933
|
console.log(q);
|
|
4899
4934
|
});
|
|
4900
4935
|
};
|
|
4901
|
-
Object.keys(
|
|
4902
|
-
|
|
4936
|
+
Object.keys(vr).forEach((p) => {
|
|
4937
|
+
br(p, vr[p]);
|
|
4903
4938
|
});
|
|
4904
|
-
const
|
|
4939
|
+
const ye = () => new Promise((p, q) => {
|
|
4905
4940
|
grecaptcha.ready(() => {
|
|
4906
4941
|
grecaptcha.execute(o, { action: "submit" }).then((ee) => {
|
|
4907
4942
|
p(ee);
|
|
@@ -4915,22 +4950,22 @@ function Vo(e, t, r) {
|
|
|
4915
4950
|
r(19, B = !1), me();
|
|
4916
4951
|
}, me = () => {
|
|
4917
4952
|
r(18, le.type = B ? "text" : "password", le);
|
|
4918
|
-
},
|
|
4953
|
+
}, Fe = () => {
|
|
4919
4954
|
window.postMessage({ type: "ToRegister" }, window.location.href);
|
|
4920
4955
|
}, Ee = (p) => {
|
|
4921
4956
|
p.preventDefault(), window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
4922
4957
|
}, Q = (p) => {
|
|
4923
|
-
p?.preventDefault(),
|
|
4958
|
+
p?.preventDefault(), ye().then((q) => {
|
|
4924
4959
|
pe(U) && xe(A) && (re = {
|
|
4925
4960
|
username: U,
|
|
4926
4961
|
password: A,
|
|
4927
4962
|
token: q
|
|
4928
|
-
}, r(17, J = !0),
|
|
4963
|
+
}, r(17, J = !0), ke(re));
|
|
4929
4964
|
});
|
|
4930
4965
|
}, pe = (p) => !!((de.user.test(p) || de.email.test(p)) && p.length <= 100), xe = (p) => !!de.password.test(p), Je = () => {
|
|
4931
|
-
r(14, H = !pe(U)), r(20, ne = !(!H && !
|
|
4966
|
+
r(14, H = !pe(U)), r(20, ne = !(!H && !oe && A));
|
|
4932
4967
|
}, ge = () => {
|
|
4933
|
-
r(15,
|
|
4968
|
+
r(15, oe = !xe(A)), r(20, ne = !(!H && !oe && U));
|
|
4934
4969
|
}, be = (p) => {
|
|
4935
4970
|
if (p.data)
|
|
4936
4971
|
switch (p.data.type) {
|
|
@@ -4944,20 +4979,20 @@ function Vo(e, t, r) {
|
|
|
4944
4979
|
Q();
|
|
4945
4980
|
break;
|
|
4946
4981
|
}
|
|
4947
|
-
},
|
|
4982
|
+
}, De = (p) => {
|
|
4948
4983
|
typeof gtag == "function" && gtag("event", "Login", {
|
|
4949
4984
|
context: "GeneralPlayerLoginRegisterPage"
|
|
4950
4985
|
});
|
|
4951
|
-
},
|
|
4986
|
+
}, ke = async ({ username: p, password: q, token: ee }) => {
|
|
4952
4987
|
let Ke = {
|
|
4953
4988
|
"Content-Type": "application/json",
|
|
4954
4989
|
"g-recaptcha-response": ee
|
|
4955
|
-
}, et = { username: p, password: q },
|
|
4990
|
+
}, et = { username: p, password: q }, sn = {
|
|
4956
4991
|
method: "POST",
|
|
4957
4992
|
headers: Ke,
|
|
4958
4993
|
body: JSON.stringify(et)
|
|
4959
4994
|
};
|
|
4960
|
-
fetch(`${i}/v1/player/login/player`,
|
|
4995
|
+
fetch(`${i}/v1/player/login/player`, sn).then((G) => (G.status >= 500 && (r(16, he = "Server might not be responsing"), r(17, J = !1), window.postMessage(
|
|
4961
4996
|
{
|
|
4962
4997
|
type: "WidgetNotification",
|
|
4963
4998
|
data: {
|
|
@@ -4966,13 +5001,13 @@ function Vo(e, t, r) {
|
|
|
4966
5001
|
}
|
|
4967
5002
|
},
|
|
4968
5003
|
window.location.href
|
|
4969
|
-
)),
|
|
4970
|
-
if (
|
|
5004
|
+
)), G.json())).then((G) => {
|
|
5005
|
+
if (G.actions !== void 0 && window.postMessage({ type: "PlayerActions" }, window.location.href), a === "true" && G.code === 4 && (r(8, y = G.detail.userId), r(10, O = G.detail.phonePrefix + G.detail.phone), r(21, fe = !0), Qe(O, y), localStorage.setItem("smsValidation", "true"), localStorage.setItem("playerData", JSON.stringify({ playerid: y, number: O }))), G.sessionID) {
|
|
4971
5006
|
if (window.postMessage(
|
|
4972
5007
|
{
|
|
4973
5008
|
type: "UserSessionID",
|
|
4974
|
-
session:
|
|
4975
|
-
userid:
|
|
5009
|
+
session: G.sessionID,
|
|
5010
|
+
userid: G.universalID
|
|
4976
5011
|
},
|
|
4977
5012
|
window.location.href
|
|
4978
5013
|
), window.postMessage(
|
|
@@ -4991,10 +5026,10 @@ function Vo(e, t, r) {
|
|
|
4991
5026
|
});
|
|
4992
5027
|
navigator.credentials.store($e);
|
|
4993
5028
|
}
|
|
4994
|
-
|
|
5029
|
+
De();
|
|
4995
5030
|
} else
|
|
4996
5031
|
try {
|
|
4997
|
-
let $e =
|
|
5032
|
+
let $e = G.error;
|
|
4998
5033
|
r(16, he = $e), r(17, J = !1), window.postMessage(
|
|
4999
5034
|
{
|
|
5000
5035
|
type: "WidgetNotification",
|
|
@@ -5003,11 +5038,11 @@ function Vo(e, t, r) {
|
|
|
5003
5038
|
window.location.href
|
|
5004
5039
|
);
|
|
5005
5040
|
} catch {
|
|
5006
|
-
let
|
|
5007
|
-
r(16, he =
|
|
5041
|
+
let Wt = G.error.substring(G.error.indexOf("errorMessage") + 13, G.error.length);
|
|
5042
|
+
r(16, he = Wt), r(17, J = !1), window.postMessage(
|
|
5008
5043
|
{
|
|
5009
5044
|
type: "WidgetNotification",
|
|
5010
|
-
data: { type: "error", message:
|
|
5045
|
+
data: { type: "error", message: Wt }
|
|
5011
5046
|
},
|
|
5012
5047
|
window.location.href
|
|
5013
5048
|
);
|
|
@@ -5024,26 +5059,26 @@ function Vo(e, t, r) {
|
|
|
5024
5059
|
},
|
|
5025
5060
|
body: JSON.stringify({
|
|
5026
5061
|
userId: q,
|
|
5027
|
-
messageTemplate:
|
|
5062
|
+
messageTemplate: Wo,
|
|
5028
5063
|
destination: p
|
|
5029
5064
|
})
|
|
5030
5065
|
}), Ke = await ee.json();
|
|
5031
5066
|
if (ee.ok) {
|
|
5032
5067
|
r(9, g = Ke.id);
|
|
5033
5068
|
let et = Ke.maxValidationAttempts;
|
|
5034
|
-
|
|
5069
|
+
x = !1;
|
|
5035
5070
|
} else
|
|
5036
|
-
throw
|
|
5071
|
+
throw x = !0, new Error("Failed to fetch");
|
|
5037
5072
|
} catch (ee) {
|
|
5038
|
-
|
|
5073
|
+
x = !0, console.error(ee);
|
|
5039
5074
|
}
|
|
5040
5075
|
}, F = () => {
|
|
5041
|
-
|
|
5076
|
+
No(s);
|
|
5042
5077
|
};
|
|
5043
|
-
|
|
5078
|
+
gn(() => (window.addEventListener("message", be, !1), window.postMessage({ type: "LoginRegisterModalActive" }, window.location.href), r(11, z = Lo(R)), () => {
|
|
5044
5079
|
window.removeEventListener("message", be);
|
|
5045
5080
|
}));
|
|
5046
|
-
const Ye = () =>
|
|
5081
|
+
const Ye = () => Fe();
|
|
5047
5082
|
function Se() {
|
|
5048
5083
|
U = this.value, r(12, U);
|
|
5049
5084
|
}
|
|
@@ -5055,8 +5090,8 @@ function Vo(e, t, r) {
|
|
|
5055
5090
|
le = p, r(18, le);
|
|
5056
5091
|
});
|
|
5057
5092
|
}
|
|
5058
|
-
const k = () => we(),
|
|
5059
|
-
function
|
|
5093
|
+
const k = () => we(), $ = () => _e(), v = (p) => Q(p), S = (p) => Ee(p);
|
|
5094
|
+
function on(p) {
|
|
5060
5095
|
ut[p ? "unshift" : "push"](() => {
|
|
5061
5096
|
X = p, r(7, X);
|
|
5062
5097
|
});
|
|
@@ -5067,9 +5102,9 @@ function Vo(e, t, r) {
|
|
|
5067
5102
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
5068
5103
|
1073741825 && i && s && F(), e.$$.dirty[0] & /*simplepasswordvalidation*/
|
|
5069
5104
|
4 && c && qe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5070
|
-
144 && u && X &&
|
|
5071
|
-
160 && f && X &&
|
|
5072
|
-
136 && l && X &&
|
|
5105
|
+
144 && u && X && Ro(X, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5106
|
+
160 && f && X && Uo(X, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5107
|
+
136 && l && X && Fo(X, `${l}.Style`), e.$$.dirty[1] & /*translationurl*/
|
|
5073
5108
|
2 && d && M();
|
|
5074
5109
|
}, [
|
|
5075
5110
|
i,
|
|
@@ -5080,14 +5115,14 @@ function Vo(e, t, r) {
|
|
|
5080
5115
|
f,
|
|
5081
5116
|
b,
|
|
5082
5117
|
X,
|
|
5083
|
-
|
|
5118
|
+
y,
|
|
5084
5119
|
g,
|
|
5085
|
-
|
|
5120
|
+
O,
|
|
5086
5121
|
z,
|
|
5087
5122
|
U,
|
|
5088
5123
|
A,
|
|
5089
5124
|
H,
|
|
5090
|
-
|
|
5125
|
+
oe,
|
|
5091
5126
|
he,
|
|
5092
5127
|
J,
|
|
5093
5128
|
le,
|
|
@@ -5097,7 +5132,7 @@ function Vo(e, t, r) {
|
|
|
5097
5132
|
n,
|
|
5098
5133
|
_e,
|
|
5099
5134
|
we,
|
|
5100
|
-
|
|
5135
|
+
Fe,
|
|
5101
5136
|
Ee,
|
|
5102
5137
|
Q,
|
|
5103
5138
|
Je,
|
|
@@ -5110,20 +5145,20 @@ function Vo(e, t, r) {
|
|
|
5110
5145
|
Y,
|
|
5111
5146
|
D,
|
|
5112
5147
|
k,
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5148
|
+
$,
|
|
5149
|
+
v,
|
|
5150
|
+
S,
|
|
5151
|
+
on
|
|
5117
5152
|
];
|
|
5118
5153
|
}
|
|
5119
|
-
class
|
|
5154
|
+
class qo extends Bn {
|
|
5120
5155
|
constructor(t) {
|
|
5121
|
-
super(),
|
|
5156
|
+
super(), Tn(
|
|
5122
5157
|
this,
|
|
5123
5158
|
t,
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5159
|
+
Zo,
|
|
5160
|
+
Xo,
|
|
5161
|
+
Pr,
|
|
5127
5162
|
{
|
|
5128
5163
|
endpoint: 0,
|
|
5129
5164
|
captchakey: 1,
|
|
@@ -5136,7 +5171,7 @@ class zo extends Sn {
|
|
|
5136
5171
|
translationurl: 32,
|
|
5137
5172
|
savecredentials: 6
|
|
5138
5173
|
},
|
|
5139
|
-
|
|
5174
|
+
Do,
|
|
5140
5175
|
[-1, -1]
|
|
5141
5176
|
);
|
|
5142
5177
|
}
|
|
@@ -5201,35 +5236,35 @@ class zo extends Sn {
|
|
|
5201
5236
|
this.$$set({ savecredentials: t }), K();
|
|
5202
5237
|
}
|
|
5203
5238
|
}
|
|
5204
|
-
|
|
5239
|
+
Hn(qo, { endpoint: {}, captchakey: {}, lang: {}, smsverification: {}, simplepasswordvalidation: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {} }, [], [], !0);
|
|
5205
5240
|
export {
|
|
5206
5241
|
ce as $,
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5242
|
+
qo as G,
|
|
5243
|
+
Bn as S,
|
|
5244
|
+
Ne as a,
|
|
5245
|
+
Kr as b,
|
|
5246
|
+
Hn as c,
|
|
5247
|
+
un as d,
|
|
5248
|
+
I as e,
|
|
5214
5249
|
K as f,
|
|
5215
|
-
|
|
5216
|
-
h,
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5250
|
+
te as g,
|
|
5251
|
+
rt as h,
|
|
5252
|
+
Tn as i,
|
|
5253
|
+
h as j,
|
|
5254
|
+
L as k,
|
|
5255
|
+
m as l,
|
|
5256
|
+
se as m,
|
|
5257
|
+
Z as n,
|
|
5258
|
+
E as o,
|
|
5259
|
+
j as p,
|
|
5260
|
+
ln as q,
|
|
5261
|
+
Le as r,
|
|
5262
|
+
Pr as s,
|
|
5228
5263
|
N as t,
|
|
5229
|
-
|
|
5264
|
+
gn as u,
|
|
5230
5265
|
ut as v,
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5266
|
+
Co as w,
|
|
5267
|
+
Ro as x,
|
|
5268
|
+
Uo as y,
|
|
5269
|
+
Fo as z
|
|
5235
5270
|
};
|