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