@everymatrix/general-player-register-form-nd 1.74.3 → 1.74.4
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/{GeneralPlayerRegisterFormNd-GoBYaeYc.js → GeneralPlayerRegisterFormNd-B81vMd6o.js} +706 -692
- package/components/GeneralPlayerRegisterFormNd-DVeAF24W.cjs +18 -0
- package/components/{GeneralPlayerRegisterFormNd-C1JQ8ARs.js → GeneralPlayerRegisterFormNd-DsMvfO2O.js} +716 -702
- package/components/{GeneralPlayerRegisterFormStep1-PNHf13iF.cjs → GeneralPlayerRegisterFormStep1-B1yUji7Q.cjs} +1 -1
- package/components/{GeneralPlayerRegisterFormStep1-BukkWYjI.js → GeneralPlayerRegisterFormStep1-ChAgwOVE.js} +4 -4
- package/components/{GeneralPlayerRegisterFormStep1-BqlRLeii.js → GeneralPlayerRegisterFormStep1-ChHWqbZT.js} +4 -4
- package/components/{GeneralPlayerRegisterFormStep2-CSz_dCaX.cjs → GeneralPlayerRegisterFormStep2-DOr7-P-1.cjs} +2 -2
- package/components/{GeneralPlayerRegisterFormStep2-DBnZ9YrY.js → GeneralPlayerRegisterFormStep2-m-1TTcWc.js} +991 -991
- package/components/{GeneralPlayerRegisterFormStep2-To7K540j.js → GeneralPlayerRegisterFormStep2-wd8bqKAA.js} +986 -986
- package/components/{GeneralPlayerRegisterFormStep3-CzA9W6SQ.js → GeneralPlayerRegisterFormStep3-BWdiFMfP.js} +5 -5
- package/components/{GeneralPlayerRegisterFormStep3-CcFGaz76.js → GeneralPlayerRegisterFormStep3-CakxX22B.js} +5 -5
- package/components/{GeneralPlayerRegisterFormStep3-Bo5g25HL.cjs → GeneralPlayerRegisterFormStep3-DRKlVOfe.cjs} +1 -1
- package/components/{GeneralPlayerSmsVerificationForm-Cz9dvc1N.js → GeneralPlayerSmsVerificationForm-7Ta2HmaS.js} +5 -5
- package/components/{GeneralPlayerSmsVerificationForm-DhT7I5pU.js → GeneralPlayerSmsVerificationForm-BLNcr3Lk.js} +5 -5
- package/components/{GeneralPlayerSmsVerificationForm-DcYEcOTa.cjs → GeneralPlayerSmsVerificationForm-yHLU83KN.cjs} +1 -1
- package/es2015/general-player-register-form-nd.cjs +1 -1
- package/es2015/general-player-register-form-nd.js +1 -1
- package/esnext/general-player-register-form-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerRegisterFormNd-BTl6uATk.cjs +0 -18
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ve = (e, t, r) => t in e ?
|
|
1
|
+
var un = Object.defineProperty, ln = Object.defineProperties;
|
|
2
|
+
var hn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Lt = Object.getOwnPropertySymbols;
|
|
4
|
+
var fn = Object.prototype.hasOwnProperty, cn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ve = (e, t, r) => t in e ? un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
fn.call(t, r) && Ve(e, r, t[r]);
|
|
8
|
+
if (Lt)
|
|
9
|
+
for (var r of Lt(t))
|
|
10
|
+
cn.call(t, r) && Ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Nt = (e, t) => ln(e, hn(t));
|
|
13
13
|
var F = (e, t, r) => (Ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Se = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
@@ -29,29 +29,29 @@ var Se = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function k() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function mr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Dt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function be(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(mr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function pt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function pr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let xe;
|
|
48
|
-
function
|
|
48
|
+
function eo(e, t) {
|
|
49
49
|
return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function mn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function dr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function mr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function pn(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(dr(t, r));
|
|
65
65
|
}
|
|
66
66
|
function E(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function dn(e, t, r) {
|
|
70
|
+
const n = gn(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = B("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, bn(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function gn(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,7 +83,7 @@ function mn(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function bn(e, t) {
|
|
87
87
|
return E(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
@@ -93,10 +93,10 @@ function dn(e, t) {
|
|
|
93
93
|
function U(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function N(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function to(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
@@ -112,10 +112,10 @@ function V(e) {
|
|
|
112
112
|
function G() {
|
|
113
113
|
return V(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function yn() {
|
|
116
116
|
return V("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function vn(e, t, r, n) {
|
|
119
119
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
120
120
|
}
|
|
121
121
|
function x(e, t, r) {
|
|
@@ -125,17 +125,17 @@ function m(e, t, r) {
|
|
|
125
125
|
const n = t.toLowerCase();
|
|
126
126
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function _n(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
131
|
function ee(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ro(e, t) {
|
|
136
136
|
e.value = t == null ? "" : t;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function no(e, t, r) {
|
|
139
139
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
140
140
|
const i = e.options[n];
|
|
141
141
|
if (i.__value === t) {
|
|
@@ -145,11 +145,11 @@ function to(e, t, r) {
|
|
|
145
145
|
}
|
|
146
146
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function io(e) {
|
|
149
149
|
const t = e.querySelector(":checked");
|
|
150
150
|
return t && t.__value;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function En(e) {
|
|
153
153
|
const t = {};
|
|
154
154
|
return e.childNodes.forEach(
|
|
155
155
|
/** @param {Element} node */
|
|
@@ -158,26 +158,26 @@ function yn(e) {
|
|
|
158
158
|
}
|
|
159
159
|
), t;
|
|
160
160
|
}
|
|
161
|
-
let
|
|
161
|
+
let pe;
|
|
162
162
|
function me(e) {
|
|
163
|
-
|
|
163
|
+
pe = e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (!
|
|
165
|
+
function wn() {
|
|
166
|
+
if (!pe)
|
|
167
167
|
throw new Error("Function called outside component initialization");
|
|
168
|
-
return
|
|
168
|
+
return pe;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
170
|
+
function Sn(e) {
|
|
171
|
+
wn().$$.on_mount.push(e);
|
|
172
172
|
}
|
|
173
173
|
const K = [], Ie = [];
|
|
174
174
|
let te = [];
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
|
|
175
|
+
const Ft = [], xn = /* @__PURE__ */ Promise.resolve();
|
|
176
|
+
let Ke = !1;
|
|
177
|
+
function Tn() {
|
|
178
|
+
Ke || (Ke = !0, xn.then(P));
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function et(e) {
|
|
181
181
|
te.push(e);
|
|
182
182
|
}
|
|
183
183
|
const Xe = /* @__PURE__ */ new Set();
|
|
@@ -185,12 +185,12 @@ let Q = 0;
|
|
|
185
185
|
function P() {
|
|
186
186
|
if (Q !== 0)
|
|
187
187
|
return;
|
|
188
|
-
const e =
|
|
188
|
+
const e = pe;
|
|
189
189
|
do {
|
|
190
190
|
try {
|
|
191
191
|
for (; Q < K.length; ) {
|
|
192
192
|
const t = K[Q];
|
|
193
|
-
Q++, me(t),
|
|
193
|
+
Q++, me(t), Hn(t.$$);
|
|
194
194
|
}
|
|
195
195
|
} catch (t) {
|
|
196
196
|
throw K.length = 0, Q = 0, t;
|
|
@@ -203,44 +203,44 @@ function P() {
|
|
|
203
203
|
}
|
|
204
204
|
te.length = 0;
|
|
205
205
|
} while (K.length);
|
|
206
|
-
for (;
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
for (; Ft.length; )
|
|
207
|
+
Ft.pop()();
|
|
208
|
+
Ke = !1, Xe.clear(), me(e);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Hn(e) {
|
|
211
211
|
if (e.fragment !== null) {
|
|
212
212
|
e.update(), be(e.before_update);
|
|
213
213
|
const t = e.dirty;
|
|
214
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
214
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Bn(e) {
|
|
218
218
|
const t = [], r = [];
|
|
219
219
|
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
|
220
220
|
}
|
|
221
|
-
const
|
|
222
|
-
function
|
|
223
|
-
e && e.i && (
|
|
221
|
+
const Pn = /* @__PURE__ */ new Set();
|
|
222
|
+
function An(e, t) {
|
|
223
|
+
e && e.i && (Pn.delete(e), e.i(t));
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function so(e) {
|
|
226
226
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function On(e, t, r) {
|
|
229
229
|
const { fragment: n, after_update: i } = e.$$;
|
|
230
|
-
n && n.m(t, r),
|
|
231
|
-
const s = e.$$.on_mount.map(
|
|
230
|
+
n && n.m(t, r), et(() => {
|
|
231
|
+
const s = e.$$.on_mount.map(mr).filter(pt);
|
|
232
232
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : be(s), e.$$.on_mount = [];
|
|
233
|
-
}), i.forEach(
|
|
233
|
+
}), i.forEach(et);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Cn(e, t) {
|
|
236
236
|
const r = e.$$;
|
|
237
|
-
r.fragment !== null && (
|
|
237
|
+
r.fragment !== null && (Bn(r.after_update), be(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
239
|
+
function In(e, t) {
|
|
240
|
+
e.$$.dirty[0] === -1 && (K.push(e), Tn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
const l =
|
|
242
|
+
function Rn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
243
|
+
const l = pe;
|
|
244
244
|
me(e);
|
|
245
245
|
const u = e.$$ = {
|
|
246
246
|
fragment: null,
|
|
@@ -249,7 +249,7 @@ function On(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
249
249
|
props: s,
|
|
250
250
|
update: k,
|
|
251
251
|
not_equal: i,
|
|
252
|
-
bound:
|
|
252
|
+
bound: Dt(),
|
|
253
253
|
// lifecycle
|
|
254
254
|
on_mount: [],
|
|
255
255
|
on_destroy: [],
|
|
@@ -258,28 +258,28 @@ function On(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
258
258
|
after_update: [],
|
|
259
259
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
260
260
|
// everything else
|
|
261
|
-
callbacks:
|
|
261
|
+
callbacks: Dt(),
|
|
262
262
|
dirty: a,
|
|
263
263
|
skip_bound: !1,
|
|
264
264
|
root: t.target || l.$$.root
|
|
265
265
|
};
|
|
266
266
|
o && o(u.root);
|
|
267
267
|
let h = !1;
|
|
268
|
-
if (u.ctx = r ? r(e, t.props || {}, (c,
|
|
269
|
-
const g = y.length ? y[0] :
|
|
270
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h &&
|
|
268
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...y) => {
|
|
269
|
+
const g = y.length ? y[0] : p;
|
|
270
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && In(e, c)), p;
|
|
271
271
|
}) : [], u.update(), h = !0, be(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
272
272
|
if (t.hydrate) {
|
|
273
|
-
const c =
|
|
274
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
273
|
+
const c = _n(t.target);
|
|
274
|
+
u.fragment && u.fragment.l(c), c.forEach(N);
|
|
275
275
|
} else
|
|
276
276
|
u.fragment && u.fragment.c();
|
|
277
|
-
t.intro &&
|
|
277
|
+
t.intro && An(e.$$.fragment), On(e, t.target, t.anchor), P();
|
|
278
278
|
}
|
|
279
279
|
me(l);
|
|
280
280
|
}
|
|
281
|
-
let
|
|
282
|
-
typeof HTMLElement == "function" && (
|
|
281
|
+
let gr;
|
|
282
|
+
typeof HTMLElement == "function" && (gr = class extends HTMLElement {
|
|
283
283
|
constructor(t, r, n) {
|
|
284
284
|
super();
|
|
285
285
|
/** The Svelte component constructor */
|
|
@@ -333,14 +333,14 @@ typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
|
333
333
|
U(u, o, h);
|
|
334
334
|
},
|
|
335
335
|
d: function(u) {
|
|
336
|
-
u &&
|
|
336
|
+
u && N(o);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
340
|
};
|
|
341
341
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
342
342
|
return;
|
|
343
|
-
const r = {}, n =
|
|
343
|
+
const r = {}, n = En(this);
|
|
344
344
|
for (const s of this.$$s)
|
|
345
345
|
s in n && (r[s] = [t(s)]);
|
|
346
346
|
for (const s of this.attributes) {
|
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
|
351
351
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
352
352
|
this.$$c = new this.$$ctor({
|
|
353
353
|
target: this.shadowRoot || this,
|
|
354
|
-
props:
|
|
354
|
+
props: Nt(Mt({}, this.$$d), {
|
|
355
355
|
$$slots: r,
|
|
356
356
|
$$scope: {
|
|
357
357
|
ctx: []
|
|
@@ -429,8 +429,8 @@ function Pe(e, t, r, n) {
|
|
|
429
429
|
return t;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
let o = class extends
|
|
432
|
+
function Ln(e, t, r, n, i, s) {
|
|
433
|
+
let o = class extends gr {
|
|
434
434
|
constructor() {
|
|
435
435
|
super(e, r, i), this.$$p_d = t;
|
|
436
436
|
}
|
|
@@ -460,7 +460,7 @@ function Cn(e, t, r, n, i, s) {
|
|
|
460
460
|
}), e.element = /** @type {any} */
|
|
461
461
|
o, o;
|
|
462
462
|
}
|
|
463
|
-
class
|
|
463
|
+
class Mn {
|
|
464
464
|
constructor() {
|
|
465
465
|
/**
|
|
466
466
|
* ### PRIVATE API
|
|
@@ -481,7 +481,7 @@ class In {
|
|
|
481
481
|
}
|
|
482
482
|
/** @returns {void} */
|
|
483
483
|
$destroy() {
|
|
484
|
-
|
|
484
|
+
Cn(this, 1), this.$destroy = k;
|
|
485
485
|
}
|
|
486
486
|
/**
|
|
487
487
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -490,7 +490,7 @@ class In {
|
|
|
490
490
|
* @returns {() => void}
|
|
491
491
|
*/
|
|
492
492
|
$on(t, r) {
|
|
493
|
-
if (!
|
|
493
|
+
if (!pt(r))
|
|
494
494
|
return k;
|
|
495
495
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
496
496
|
return n.push(r), () => {
|
|
@@ -503,11 +503,11 @@ class In {
|
|
|
503
503
|
* @returns {void}
|
|
504
504
|
*/
|
|
505
505
|
$set(t) {
|
|
506
|
-
this.$$set && !
|
|
506
|
+
this.$$set && !mn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
509
|
+
const Nn = "4";
|
|
510
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nn);
|
|
511
511
|
/*! *****************************************************************************
|
|
512
512
|
Copyright (c) Microsoft Corporation.
|
|
513
513
|
|
|
@@ -522,18 +522,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
522
522
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
523
523
|
PERFORMANCE OF THIS SOFTWARE.
|
|
524
524
|
***************************************************************************** */
|
|
525
|
-
var
|
|
526
|
-
return
|
|
525
|
+
var tt = function(e, t) {
|
|
526
|
+
return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
527
527
|
r.__proto__ = n;
|
|
528
528
|
} || function(r, n) {
|
|
529
529
|
for (var i in n)
|
|
530
530
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
531
|
-
},
|
|
531
|
+
}, tt(e, t);
|
|
532
532
|
};
|
|
533
|
-
function
|
|
533
|
+
function z(e, t) {
|
|
534
534
|
if (typeof t != "function" && t !== null)
|
|
535
535
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
536
|
-
|
|
536
|
+
tt(e, t);
|
|
537
537
|
function r() {
|
|
538
538
|
this.constructor = e;
|
|
539
539
|
}
|
|
@@ -549,7 +549,7 @@ var w = function() {
|
|
|
549
549
|
return t;
|
|
550
550
|
}, w.apply(this, arguments);
|
|
551
551
|
};
|
|
552
|
-
function
|
|
552
|
+
function Dn(e, t) {
|
|
553
553
|
var r = {};
|
|
554
554
|
for (var n in e)
|
|
555
555
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -558,7 +558,7 @@ function Ln(e, t) {
|
|
|
558
558
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
559
559
|
return r;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function rt(e) {
|
|
562
562
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
563
563
|
if (r)
|
|
564
564
|
return r.call(e);
|
|
@@ -570,7 +570,7 @@ function tt(e) {
|
|
|
570
570
|
};
|
|
571
571
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function nt(e, t) {
|
|
574
574
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
575
575
|
if (!r)
|
|
576
576
|
return e;
|
|
@@ -599,13 +599,13 @@ function re(e, t, r) {
|
|
|
599
599
|
function X(e) {
|
|
600
600
|
return typeof e == "function";
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function br(e) {
|
|
603
603
|
var t = function(n) {
|
|
604
604
|
Error.call(n), n.stack = new Error().stack;
|
|
605
605
|
}, r = e(t);
|
|
606
606
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
607
607
|
}
|
|
608
|
-
var
|
|
608
|
+
var ze = br(function(e) {
|
|
609
609
|
return function(r) {
|
|
610
610
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
611
611
|
` + r.map(function(n, i) {
|
|
@@ -614,13 +614,13 @@ var We = pr(function(e) {
|
|
|
614
614
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
615
615
|
};
|
|
616
616
|
});
|
|
617
|
-
function
|
|
617
|
+
function it(e, t) {
|
|
618
618
|
if (e) {
|
|
619
619
|
var r = e.indexOf(t);
|
|
620
620
|
0 <= r && e.splice(r, 1);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
var
|
|
623
|
+
var Me = function() {
|
|
624
624
|
function e(t) {
|
|
625
625
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
626
626
|
}
|
|
@@ -632,12 +632,12 @@ var Ne = function() {
|
|
|
632
632
|
if (o)
|
|
633
633
|
if (this._parentage = null, Array.isArray(o))
|
|
634
634
|
try {
|
|
635
|
-
for (var a =
|
|
635
|
+
for (var a = rt(o), l = a.next(); !l.done; l = a.next()) {
|
|
636
636
|
var u = l.value;
|
|
637
637
|
u.remove(this);
|
|
638
638
|
}
|
|
639
|
-
} catch (
|
|
640
|
-
t = { error:
|
|
639
|
+
} catch (d) {
|
|
640
|
+
t = { error: d };
|
|
641
641
|
} finally {
|
|
642
642
|
try {
|
|
643
643
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -652,26 +652,26 @@ var Ne = function() {
|
|
|
652
652
|
if (X(h))
|
|
653
653
|
try {
|
|
654
654
|
h();
|
|
655
|
-
} catch (
|
|
656
|
-
s =
|
|
655
|
+
} catch (d) {
|
|
656
|
+
s = d instanceof ze ? d.errors : [d];
|
|
657
657
|
}
|
|
658
658
|
var c = this._finalizers;
|
|
659
659
|
if (c) {
|
|
660
660
|
this._finalizers = null;
|
|
661
661
|
try {
|
|
662
|
-
for (var
|
|
662
|
+
for (var p = rt(c), y = p.next(); !y.done; y = p.next()) {
|
|
663
663
|
var g = y.value;
|
|
664
664
|
try {
|
|
665
|
-
|
|
666
|
-
} catch (
|
|
667
|
-
s = s != null ? s : [],
|
|
665
|
+
Ut(g);
|
|
666
|
+
} catch (d) {
|
|
667
|
+
s = s != null ? s : [], d instanceof ze ? s = re(re([], nt(s)), nt(d.errors)) : s.push(d);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
} catch (
|
|
671
|
-
n = { error:
|
|
670
|
+
} catch (d) {
|
|
671
|
+
n = { error: d };
|
|
672
672
|
} finally {
|
|
673
673
|
try {
|
|
674
|
-
y && !y.done && (i =
|
|
674
|
+
y && !y.done && (i = p.return) && i.call(p);
|
|
675
675
|
} finally {
|
|
676
676
|
if (n)
|
|
677
677
|
throw n.error;
|
|
@@ -679,13 +679,13 @@ var Ne = function() {
|
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
if (s)
|
|
682
|
-
throw new
|
|
682
|
+
throw new ze(s);
|
|
683
683
|
}
|
|
684
684
|
}, e.prototype.add = function(t) {
|
|
685
685
|
var r;
|
|
686
686
|
if (t && t !== this)
|
|
687
687
|
if (this.closed)
|
|
688
|
-
|
|
688
|
+
Ut(t);
|
|
689
689
|
else {
|
|
690
690
|
if (t instanceof e) {
|
|
691
691
|
if (t.closed || t._hasParent(this))
|
|
@@ -702,56 +702,56 @@ var Ne = function() {
|
|
|
702
702
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
703
703
|
}, e.prototype._removeParent = function(t) {
|
|
704
704
|
var r = this._parentage;
|
|
705
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
705
|
+
r === t ? this._parentage = null : Array.isArray(r) && it(r, t);
|
|
706
706
|
}, e.prototype.remove = function(t) {
|
|
707
707
|
var r = this._finalizers;
|
|
708
|
-
r &&
|
|
708
|
+
r && it(r, t), t instanceof e && t._removeParent(this);
|
|
709
709
|
}, e.EMPTY = function() {
|
|
710
710
|
var t = new e();
|
|
711
711
|
return t.closed = !0, t;
|
|
712
712
|
}(), e;
|
|
713
|
-
}(),
|
|
714
|
-
function
|
|
715
|
-
return e instanceof
|
|
713
|
+
}(), yr = Me.EMPTY;
|
|
714
|
+
function vr(e) {
|
|
715
|
+
return e instanceof Me || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function Ut(e) {
|
|
718
718
|
X(e) ? e() : e.unsubscribe();
|
|
719
719
|
}
|
|
720
|
-
var
|
|
720
|
+
var _r = {
|
|
721
721
|
onUnhandledError: null,
|
|
722
722
|
onStoppedNotification: null,
|
|
723
723
|
Promise: void 0,
|
|
724
724
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
725
725
|
useDeprecatedNextContext: !1
|
|
726
|
-
},
|
|
726
|
+
}, Fn = {
|
|
727
727
|
setTimeout: function(e, t) {
|
|
728
728
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
729
729
|
r[n - 2] = arguments[n];
|
|
730
|
-
return setTimeout.apply(void 0, re([e, t],
|
|
730
|
+
return setTimeout.apply(void 0, re([e, t], nt(r)));
|
|
731
731
|
},
|
|
732
732
|
clearTimeout: function(e) {
|
|
733
733
|
return clearTimeout(e);
|
|
734
734
|
},
|
|
735
735
|
delegate: void 0
|
|
736
736
|
};
|
|
737
|
-
function
|
|
738
|
-
|
|
737
|
+
function Un(e) {
|
|
738
|
+
Fn.setTimeout(function() {
|
|
739
739
|
throw e;
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Gt() {
|
|
743
743
|
}
|
|
744
744
|
function Ae(e) {
|
|
745
745
|
e();
|
|
746
746
|
}
|
|
747
|
-
var
|
|
748
|
-
|
|
747
|
+
var Er = function(e) {
|
|
748
|
+
z(t, e);
|
|
749
749
|
function t(r) {
|
|
750
750
|
var n = e.call(this) || this;
|
|
751
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
751
|
+
return n.isStopped = !1, r ? (n.destination = r, vr(r) && r.add(n)) : n.destination = $n, n;
|
|
752
752
|
}
|
|
753
753
|
return t.create = function(r, n, i) {
|
|
754
|
-
return new
|
|
754
|
+
return new st(r, n, i);
|
|
755
755
|
}, t.prototype.next = function(r) {
|
|
756
756
|
this.isStopped || this._next(r);
|
|
757
757
|
}, t.prototype.error = function(r) {
|
|
@@ -775,7 +775,11 @@ var yr = function(e) {
|
|
|
775
775
|
this.unsubscribe();
|
|
776
776
|
}
|
|
777
777
|
}, t;
|
|
778
|
-
}(
|
|
778
|
+
}(Me), Gn = Function.prototype.bind;
|
|
779
|
+
function We(e, t) {
|
|
780
|
+
return Gn.call(e, t);
|
|
781
|
+
}
|
|
782
|
+
var kn = function() {
|
|
779
783
|
function e(t) {
|
|
780
784
|
this.partialObserver = t;
|
|
781
785
|
}
|
|
@@ -806,43 +810,55 @@ var yr = function(e) {
|
|
|
806
810
|
He(r);
|
|
807
811
|
}
|
|
808
812
|
}, e;
|
|
809
|
-
}(),
|
|
810
|
-
|
|
813
|
+
}(), st = function(e) {
|
|
814
|
+
z(t, e);
|
|
811
815
|
function t(r, n, i) {
|
|
812
816
|
var s = e.call(this) || this, o;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
817
|
+
if (X(r) || !r)
|
|
818
|
+
o = {
|
|
819
|
+
next: r != null ? r : void 0,
|
|
820
|
+
error: n != null ? n : void 0,
|
|
821
|
+
complete: i != null ? i : void 0
|
|
822
|
+
};
|
|
823
|
+
else {
|
|
824
|
+
var a;
|
|
825
|
+
s && _r.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
826
|
+
return s.unsubscribe();
|
|
827
|
+
}, o = {
|
|
828
|
+
next: r.next && We(r.next, a),
|
|
829
|
+
error: r.error && We(r.error, a),
|
|
830
|
+
complete: r.complete && We(r.complete, a)
|
|
831
|
+
}) : o = r;
|
|
832
|
+
}
|
|
833
|
+
return s.destination = new kn(o), s;
|
|
818
834
|
}
|
|
819
835
|
return t;
|
|
820
|
-
}(
|
|
836
|
+
}(Er);
|
|
821
837
|
function He(e) {
|
|
822
|
-
|
|
838
|
+
Un(e);
|
|
823
839
|
}
|
|
824
|
-
function
|
|
840
|
+
function jn(e) {
|
|
825
841
|
throw e;
|
|
826
842
|
}
|
|
827
|
-
var
|
|
843
|
+
var $n = {
|
|
828
844
|
closed: !0,
|
|
829
|
-
next:
|
|
830
|
-
error:
|
|
831
|
-
complete:
|
|
832
|
-
},
|
|
845
|
+
next: Gt,
|
|
846
|
+
error: jn,
|
|
847
|
+
complete: Gt
|
|
848
|
+
}, Vn = function() {
|
|
833
849
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
834
850
|
}();
|
|
835
|
-
function
|
|
851
|
+
function Xn(e) {
|
|
836
852
|
return e;
|
|
837
853
|
}
|
|
838
|
-
function
|
|
839
|
-
return e.length === 0 ?
|
|
854
|
+
function zn(e) {
|
|
855
|
+
return e.length === 0 ? Xn : e.length === 1 ? e[0] : function(r) {
|
|
840
856
|
return e.reduce(function(n, i) {
|
|
841
857
|
return i(n);
|
|
842
858
|
}, r);
|
|
843
859
|
};
|
|
844
860
|
}
|
|
845
|
-
var
|
|
861
|
+
var kt = function() {
|
|
846
862
|
function e(t) {
|
|
847
863
|
t && (this._subscribe = t);
|
|
848
864
|
}
|
|
@@ -850,7 +866,7 @@ var Ut = function() {
|
|
|
850
866
|
var r = new e();
|
|
851
867
|
return r.source = this, r.operator = t, r;
|
|
852
868
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
853
|
-
var i = this, s =
|
|
869
|
+
var i = this, s = Zn(t) ? t : new st(t, r, n);
|
|
854
870
|
return Ae(function() {
|
|
855
871
|
var o = i, a = o.operator, l = o.source;
|
|
856
872
|
s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -863,8 +879,8 @@ var Ut = function() {
|
|
|
863
879
|
}
|
|
864
880
|
}, e.prototype.forEach = function(t, r) {
|
|
865
881
|
var n = this;
|
|
866
|
-
return r =
|
|
867
|
-
var o = new
|
|
882
|
+
return r = jt(r), new r(function(i, s) {
|
|
883
|
+
var o = new st({
|
|
868
884
|
next: function(a) {
|
|
869
885
|
try {
|
|
870
886
|
t(a);
|
|
@@ -880,15 +896,15 @@ var Ut = function() {
|
|
|
880
896
|
}, e.prototype._subscribe = function(t) {
|
|
881
897
|
var r;
|
|
882
898
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
883
|
-
}, e.prototype[
|
|
899
|
+
}, e.prototype[Vn] = function() {
|
|
884
900
|
return this;
|
|
885
901
|
}, e.prototype.pipe = function() {
|
|
886
902
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
887
903
|
t[r] = arguments[r];
|
|
888
|
-
return
|
|
904
|
+
return zn(t)(this);
|
|
889
905
|
}, e.prototype.toPromise = function(t) {
|
|
890
906
|
var r = this;
|
|
891
|
-
return t =
|
|
907
|
+
return t = jt(t), new t(function(n, i) {
|
|
892
908
|
var s;
|
|
893
909
|
r.subscribe(function(o) {
|
|
894
910
|
return s = o;
|
|
@@ -902,32 +918,32 @@ var Ut = function() {
|
|
|
902
918
|
return new e(t);
|
|
903
919
|
}, e;
|
|
904
920
|
}();
|
|
905
|
-
function
|
|
921
|
+
function jt(e) {
|
|
906
922
|
var t;
|
|
907
|
-
return (t = e != null ? e :
|
|
923
|
+
return (t = e != null ? e : _r.Promise) !== null && t !== void 0 ? t : Promise;
|
|
908
924
|
}
|
|
909
|
-
function
|
|
925
|
+
function Wn(e) {
|
|
910
926
|
return e && X(e.next) && X(e.error) && X(e.complete);
|
|
911
927
|
}
|
|
912
|
-
function
|
|
913
|
-
return e && e instanceof
|
|
928
|
+
function Zn(e) {
|
|
929
|
+
return e && e instanceof Er || Wn(e) && vr(e);
|
|
914
930
|
}
|
|
915
|
-
var
|
|
931
|
+
var Jn = br(function(e) {
|
|
916
932
|
return function() {
|
|
917
933
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
918
934
|
};
|
|
919
|
-
}),
|
|
920
|
-
|
|
935
|
+
}), wr = function(e) {
|
|
936
|
+
z(t, e);
|
|
921
937
|
function t() {
|
|
922
938
|
var r = e.call(this) || this;
|
|
923
939
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
924
940
|
}
|
|
925
941
|
return t.prototype.lift = function(r) {
|
|
926
|
-
var n = new
|
|
942
|
+
var n = new $t(this, this);
|
|
927
943
|
return n.operator = r, n;
|
|
928
944
|
}, t.prototype._throwIfClosed = function() {
|
|
929
945
|
if (this.closed)
|
|
930
|
-
throw new
|
|
946
|
+
throw new Jn();
|
|
931
947
|
}, t.prototype.next = function(r) {
|
|
932
948
|
var n = this;
|
|
933
949
|
Ae(function() {
|
|
@@ -935,7 +951,7 @@ var Wn = pr(function(e) {
|
|
|
935
951
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
936
952
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
937
953
|
try {
|
|
938
|
-
for (var o =
|
|
954
|
+
for (var o = rt(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
939
955
|
var l = a.value;
|
|
940
956
|
l.next(r);
|
|
941
957
|
}
|
|
@@ -984,20 +1000,20 @@ var Wn = pr(function(e) {
|
|
|
984
1000
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
985
1001
|
}, t.prototype._innerSubscribe = function(r) {
|
|
986
1002
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
987
|
-
return s || o ?
|
|
988
|
-
n.currentObservers = null,
|
|
1003
|
+
return s || o ? yr : (this.currentObservers = null, a.push(r), new Me(function() {
|
|
1004
|
+
n.currentObservers = null, it(a, r);
|
|
989
1005
|
}));
|
|
990
1006
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
991
1007
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
992
1008
|
i ? r.error(s) : o && r.complete();
|
|
993
1009
|
}, t.prototype.asObservable = function() {
|
|
994
|
-
var r = new
|
|
1010
|
+
var r = new kt();
|
|
995
1011
|
return r.source = this, r;
|
|
996
1012
|
}, t.create = function(r, n) {
|
|
997
|
-
return new
|
|
1013
|
+
return new $t(r, n);
|
|
998
1014
|
}, t;
|
|
999
|
-
}(
|
|
1000
|
-
|
|
1015
|
+
}(kt), $t = function(e) {
|
|
1016
|
+
z(t, e);
|
|
1001
1017
|
function t(r, n) {
|
|
1002
1018
|
var i = e.call(this) || this;
|
|
1003
1019
|
return i.destination = r, i.source = n, i;
|
|
@@ -1013,17 +1029,17 @@ var Wn = pr(function(e) {
|
|
|
1013
1029
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1014
1030
|
}, t.prototype._subscribe = function(r) {
|
|
1015
1031
|
var n, i;
|
|
1016
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1032
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : yr;
|
|
1017
1033
|
}, t;
|
|
1018
|
-
}(
|
|
1034
|
+
}(wr), Sr = {
|
|
1019
1035
|
now: function() {
|
|
1020
|
-
return (
|
|
1036
|
+
return (Sr.delegate || Date).now();
|
|
1021
1037
|
},
|
|
1022
1038
|
delegate: void 0
|
|
1023
|
-
},
|
|
1024
|
-
|
|
1039
|
+
}, qn = function(e) {
|
|
1040
|
+
z(t, e);
|
|
1025
1041
|
function t(r, n, i) {
|
|
1026
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1042
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Sr);
|
|
1027
1043
|
var s = e.call(this) || this;
|
|
1028
1044
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
1029
1045
|
}
|
|
@@ -1043,24 +1059,24 @@ var Wn = pr(function(e) {
|
|
|
1043
1059
|
u && s.splice(0, u + 1);
|
|
1044
1060
|
}
|
|
1045
1061
|
}, t;
|
|
1046
|
-
}(
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
const r = new
|
|
1050
|
-
|
|
1062
|
+
}(wr);
|
|
1063
|
+
const Vt = [], Xt = {}, Qn = (e, t = 0) => {
|
|
1064
|
+
if (Vt.indexOf(e) == -1) {
|
|
1065
|
+
const r = new qn(t);
|
|
1066
|
+
Xt[e] = r, Vt.push(e);
|
|
1051
1067
|
}
|
|
1052
|
-
return
|
|
1068
|
+
return Xt[e];
|
|
1053
1069
|
}, Y = [];
|
|
1054
|
-
function
|
|
1070
|
+
function Yn(e, t) {
|
|
1055
1071
|
return {
|
|
1056
|
-
subscribe:
|
|
1072
|
+
subscribe: Ne(e, t).subscribe
|
|
1057
1073
|
};
|
|
1058
1074
|
}
|
|
1059
|
-
function
|
|
1075
|
+
function Ne(e, t = k) {
|
|
1060
1076
|
let r;
|
|
1061
1077
|
const n = /* @__PURE__ */ new Set();
|
|
1062
1078
|
function i(a) {
|
|
1063
|
-
if (
|
|
1079
|
+
if (pr(e, a) && (e = a, r)) {
|
|
1064
1080
|
const l = !Y.length;
|
|
1065
1081
|
for (const u of n)
|
|
1066
1082
|
u[1](), Y.push(u, e);
|
|
@@ -1087,96 +1103,96 @@ function ae(e, t, r) {
|
|
|
1087
1103
|
if (!i.every(Boolean))
|
|
1088
1104
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1089
1105
|
const s = t.length < 2;
|
|
1090
|
-
return
|
|
1106
|
+
return Yn(r, (o, a) => {
|
|
1091
1107
|
let l = !1;
|
|
1092
1108
|
const u = [];
|
|
1093
1109
|
let h = 0, c = k;
|
|
1094
|
-
const
|
|
1110
|
+
const p = () => {
|
|
1095
1111
|
if (h)
|
|
1096
1112
|
return;
|
|
1097
1113
|
c();
|
|
1098
1114
|
const g = t(n ? u[0] : u, o, a);
|
|
1099
|
-
s ? o(g) : c =
|
|
1115
|
+
s ? o(g) : c = pt(g) ? g : k;
|
|
1100
1116
|
}, y = i.map(
|
|
1101
|
-
(g,
|
|
1117
|
+
(g, d) => dr(
|
|
1102
1118
|
g,
|
|
1103
1119
|
(b) => {
|
|
1104
|
-
u[
|
|
1120
|
+
u[d] = b, h &= ~(1 << d), l && p();
|
|
1105
1121
|
},
|
|
1106
1122
|
() => {
|
|
1107
|
-
h |= 1 <<
|
|
1123
|
+
h |= 1 << d;
|
|
1108
1124
|
}
|
|
1109
1125
|
)
|
|
1110
1126
|
);
|
|
1111
|
-
return l = !0,
|
|
1127
|
+
return l = !0, p(), function() {
|
|
1112
1128
|
be(y), c(), l = !1;
|
|
1113
1129
|
};
|
|
1114
1130
|
});
|
|
1115
1131
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1132
|
+
function Kn(e) {
|
|
1133
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1118
1134
|
}
|
|
1119
|
-
var
|
|
1120
|
-
return
|
|
1135
|
+
var ei = function(t) {
|
|
1136
|
+
return ti(t) && !ri(t);
|
|
1121
1137
|
};
|
|
1122
|
-
function
|
|
1138
|
+
function ti(e) {
|
|
1123
1139
|
return !!e && typeof e == "object";
|
|
1124
1140
|
}
|
|
1125
|
-
function
|
|
1141
|
+
function ri(e) {
|
|
1126
1142
|
var t = Object.prototype.toString.call(e);
|
|
1127
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1143
|
+
return t === "[object RegExp]" || t === "[object Date]" || si(e);
|
|
1128
1144
|
}
|
|
1129
|
-
var
|
|
1130
|
-
function
|
|
1131
|
-
return e.$$typeof ===
|
|
1145
|
+
var ni = typeof Symbol == "function" && Symbol.for, ii = ni ? Symbol.for("react.element") : 60103;
|
|
1146
|
+
function si(e) {
|
|
1147
|
+
return e.$$typeof === ii;
|
|
1132
1148
|
}
|
|
1133
|
-
function
|
|
1149
|
+
function oi(e) {
|
|
1134
1150
|
return Array.isArray(e) ? [] : {};
|
|
1135
1151
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ne(
|
|
1152
|
+
function de(e, t) {
|
|
1153
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(oi(e), e, t) : e;
|
|
1138
1154
|
}
|
|
1139
|
-
function
|
|
1155
|
+
function ai(e, t, r) {
|
|
1140
1156
|
return e.concat(t).map(function(n) {
|
|
1141
|
-
return
|
|
1157
|
+
return de(n, r);
|
|
1142
1158
|
});
|
|
1143
1159
|
}
|
|
1144
|
-
function
|
|
1160
|
+
function ui(e, t) {
|
|
1145
1161
|
if (!t.customMerge)
|
|
1146
1162
|
return ne;
|
|
1147
1163
|
var r = t.customMerge(e);
|
|
1148
1164
|
return typeof r == "function" ? r : ne;
|
|
1149
1165
|
}
|
|
1150
|
-
function
|
|
1166
|
+
function li(e) {
|
|
1151
1167
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1152
1168
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1153
1169
|
}) : [];
|
|
1154
1170
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return Object.keys(e).concat(
|
|
1171
|
+
function zt(e) {
|
|
1172
|
+
return Object.keys(e).concat(li(e));
|
|
1157
1173
|
}
|
|
1158
|
-
function
|
|
1174
|
+
function xr(e, t) {
|
|
1159
1175
|
try {
|
|
1160
1176
|
return t in e;
|
|
1161
1177
|
} catch (r) {
|
|
1162
1178
|
return !1;
|
|
1163
1179
|
}
|
|
1164
1180
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1181
|
+
function hi(e, t) {
|
|
1182
|
+
return xr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1167
1183
|
}
|
|
1168
|
-
function
|
|
1184
|
+
function fi(e, t, r) {
|
|
1169
1185
|
var n = {};
|
|
1170
|
-
return r.isMergeableObject(e) &&
|
|
1171
|
-
n[i] =
|
|
1172
|
-
}),
|
|
1173
|
-
|
|
1186
|
+
return r.isMergeableObject(e) && zt(e).forEach(function(i) {
|
|
1187
|
+
n[i] = de(e[i], r);
|
|
1188
|
+
}), zt(t).forEach(function(i) {
|
|
1189
|
+
hi(e, i) || (xr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ui(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
1174
1190
|
}), n;
|
|
1175
1191
|
}
|
|
1176
1192
|
function ne(e, t, r) {
|
|
1177
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1193
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ai, r.isMergeableObject = r.isMergeableObject || ei, r.cloneUnlessOtherwiseSpecified = de;
|
|
1178
1194
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1179
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1195
|
+
return s ? n ? r.arrayMerge(e, t, r) : fi(e, t, r) : de(t, r);
|
|
1180
1196
|
}
|
|
1181
1197
|
ne.all = function(t, r) {
|
|
1182
1198
|
if (!Array.isArray(t))
|
|
@@ -1185,60 +1201,58 @@ ne.all = function(t, r) {
|
|
|
1185
1201
|
return ne(n, i, r);
|
|
1186
1202
|
}, {});
|
|
1187
1203
|
};
|
|
1188
|
-
var
|
|
1189
|
-
const
|
|
1190
|
-
function
|
|
1191
|
-
var r = t && t.cache ? t.cache :
|
|
1204
|
+
var ci = ne, mi = ci;
|
|
1205
|
+
const pi = /* @__PURE__ */ Kn(mi);
|
|
1206
|
+
function Ze(e, t) {
|
|
1207
|
+
var r = t && t.cache ? t.cache : _i, n = t && t.serializer ? t.serializer : vi, i = t && t.strategy ? t.strategy : gi;
|
|
1192
1208
|
return i(e, {
|
|
1193
1209
|
cache: r,
|
|
1194
1210
|
serializer: n
|
|
1195
1211
|
});
|
|
1196
1212
|
}
|
|
1197
|
-
function
|
|
1213
|
+
function di(e) {
|
|
1198
1214
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1199
1215
|
}
|
|
1200
|
-
function
|
|
1201
|
-
var i =
|
|
1216
|
+
function Tr(e, t, r, n) {
|
|
1217
|
+
var i = di(n) ? n : r(n), s = t.get(i);
|
|
1202
1218
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1203
1219
|
}
|
|
1204
|
-
function
|
|
1220
|
+
function Hr(e, t, r) {
|
|
1205
1221
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1206
1222
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1207
1223
|
}
|
|
1208
1224
|
function dt(e, t, r, n, i) {
|
|
1209
1225
|
return r.bind(t, e, n, i);
|
|
1210
1226
|
}
|
|
1211
|
-
function
|
|
1212
|
-
var r = e.length === 1 ?
|
|
1227
|
+
function gi(e, t) {
|
|
1228
|
+
var r = e.length === 1 ? Tr : Hr;
|
|
1213
1229
|
return dt(e, this, r, t.cache.create(), t.serializer);
|
|
1214
1230
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return dt(e, this,
|
|
1231
|
+
function bi(e, t) {
|
|
1232
|
+
return dt(e, this, Hr, t.cache.create(), t.serializer);
|
|
1217
1233
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return dt(e, this,
|
|
1234
|
+
function yi(e, t) {
|
|
1235
|
+
return dt(e, this, Tr, t.cache.create(), t.serializer);
|
|
1220
1236
|
}
|
|
1221
|
-
var
|
|
1237
|
+
var vi = function() {
|
|
1222
1238
|
return JSON.stringify(arguments);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
}()
|
|
1235
|
-
), yi = {
|
|
1239
|
+
};
|
|
1240
|
+
function gt() {
|
|
1241
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1242
|
+
}
|
|
1243
|
+
gt.prototype.get = function(e) {
|
|
1244
|
+
return this.cache[e];
|
|
1245
|
+
};
|
|
1246
|
+
gt.prototype.set = function(e, t) {
|
|
1247
|
+
this.cache[e] = t;
|
|
1248
|
+
};
|
|
1249
|
+
var _i = {
|
|
1236
1250
|
create: function() {
|
|
1237
|
-
return new
|
|
1251
|
+
return new gt();
|
|
1238
1252
|
}
|
|
1239
|
-
},
|
|
1240
|
-
variadic:
|
|
1241
|
-
monadic:
|
|
1253
|
+
}, Je = {
|
|
1254
|
+
variadic: bi,
|
|
1255
|
+
monadic: yi
|
|
1242
1256
|
}, v;
|
|
1243
1257
|
(function(e) {
|
|
1244
1258
|
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";
|
|
@@ -1251,43 +1265,43 @@ var ie;
|
|
|
1251
1265
|
(function(e) {
|
|
1252
1266
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1253
1267
|
})(ie || (ie = {}));
|
|
1254
|
-
function
|
|
1268
|
+
function Wt(e) {
|
|
1255
1269
|
return e.type === T.literal;
|
|
1256
1270
|
}
|
|
1257
|
-
function
|
|
1271
|
+
function Ei(e) {
|
|
1258
1272
|
return e.type === T.argument;
|
|
1259
1273
|
}
|
|
1260
|
-
function
|
|
1274
|
+
function Br(e) {
|
|
1261
1275
|
return e.type === T.number;
|
|
1262
1276
|
}
|
|
1263
|
-
function
|
|
1277
|
+
function Pr(e) {
|
|
1264
1278
|
return e.type === T.date;
|
|
1265
1279
|
}
|
|
1266
|
-
function
|
|
1280
|
+
function Ar(e) {
|
|
1267
1281
|
return e.type === T.time;
|
|
1268
1282
|
}
|
|
1269
|
-
function
|
|
1283
|
+
function Or(e) {
|
|
1270
1284
|
return e.type === T.select;
|
|
1271
1285
|
}
|
|
1272
|
-
function
|
|
1286
|
+
function Cr(e) {
|
|
1273
1287
|
return e.type === T.plural;
|
|
1274
1288
|
}
|
|
1275
|
-
function
|
|
1289
|
+
function wi(e) {
|
|
1276
1290
|
return e.type === T.pound;
|
|
1277
1291
|
}
|
|
1278
|
-
function
|
|
1292
|
+
function Ir(e) {
|
|
1279
1293
|
return e.type === T.tag;
|
|
1280
1294
|
}
|
|
1281
|
-
function
|
|
1295
|
+
function Rr(e) {
|
|
1282
1296
|
return !!(e && typeof e == "object" && e.type === ie.number);
|
|
1283
1297
|
}
|
|
1284
|
-
function
|
|
1298
|
+
function ot(e) {
|
|
1285
1299
|
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
|
1286
1300
|
}
|
|
1287
|
-
var
|
|
1288
|
-
function
|
|
1301
|
+
var Lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Si = /(?:[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;
|
|
1302
|
+
function xi(e) {
|
|
1289
1303
|
var t = {};
|
|
1290
|
-
return e.replace(
|
|
1304
|
+
return e.replace(Si, function(r) {
|
|
1291
1305
|
var n = r.length;
|
|
1292
1306
|
switch (r[0]) {
|
|
1293
1307
|
case "G":
|
|
@@ -1376,12 +1390,12 @@ function wi(e) {
|
|
|
1376
1390
|
return "";
|
|
1377
1391
|
}), t;
|
|
1378
1392
|
}
|
|
1379
|
-
var
|
|
1380
|
-
function
|
|
1393
|
+
var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1394
|
+
function Hi(e) {
|
|
1381
1395
|
if (e.length === 0)
|
|
1382
1396
|
throw new Error("Number skeleton cannot be empty");
|
|
1383
|
-
for (var t = e.split(
|
|
1384
|
-
return
|
|
1397
|
+
for (var t = e.split(Ti).filter(function(p) {
|
|
1398
|
+
return p.length > 0;
|
|
1385
1399
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1386
1400
|
var s = i[n], o = s.split("/");
|
|
1387
1401
|
if (o.length === 0)
|
|
@@ -1395,17 +1409,17 @@ function xi(e) {
|
|
|
1395
1409
|
}
|
|
1396
1410
|
return r;
|
|
1397
1411
|
}
|
|
1398
|
-
function
|
|
1412
|
+
function Bi(e) {
|
|
1399
1413
|
return e.replace(/^(.*?)-/, "");
|
|
1400
1414
|
}
|
|
1401
|
-
var
|
|
1402
|
-
function
|
|
1415
|
+
var Zt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mr = /^(@+)?(\+|#+)?[rs]?$/g, Pi = /(\*)(0+)|(#+)(0+)|(0+)/g, Nr = /^(0+)$/;
|
|
1416
|
+
function Jt(e) {
|
|
1403
1417
|
var t = {};
|
|
1404
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1418
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mr, function(r, n, i) {
|
|
1405
1419
|
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)), "";
|
|
1406
1420
|
}), t;
|
|
1407
1421
|
}
|
|
1408
|
-
function
|
|
1422
|
+
function Dr(e) {
|
|
1409
1423
|
switch (e) {
|
|
1410
1424
|
case "sign-auto":
|
|
1411
1425
|
return {
|
|
@@ -1445,7 +1459,7 @@ function Lr(e) {
|
|
|
1445
1459
|
};
|
|
1446
1460
|
}
|
|
1447
1461
|
}
|
|
1448
|
-
function
|
|
1462
|
+
function Ai(e) {
|
|
1449
1463
|
var t;
|
|
1450
1464
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1451
1465
|
notation: "engineering"
|
|
@@ -1453,17 +1467,17 @@ function Bi(e) {
|
|
|
1453
1467
|
notation: "scientific"
|
|
1454
1468
|
}, e = e.slice(1)), t) {
|
|
1455
1469
|
var r = e.slice(0, 2);
|
|
1456
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1470
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nr.test(e))
|
|
1457
1471
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1458
1472
|
t.minimumIntegerDigits = e.length;
|
|
1459
1473
|
}
|
|
1460
1474
|
return t;
|
|
1461
1475
|
}
|
|
1462
|
-
function
|
|
1463
|
-
var t = {}, r =
|
|
1476
|
+
function qt(e) {
|
|
1477
|
+
var t = {}, r = Dr(e);
|
|
1464
1478
|
return r || t;
|
|
1465
1479
|
}
|
|
1466
|
-
function
|
|
1480
|
+
function Oi(e) {
|
|
1467
1481
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1468
1482
|
var i = n[r];
|
|
1469
1483
|
switch (i.stem) {
|
|
@@ -1487,7 +1501,7 @@ function Pi(e) {
|
|
|
1487
1501
|
continue;
|
|
1488
1502
|
case "measure-unit":
|
|
1489
1503
|
case "unit":
|
|
1490
|
-
t.style = "unit", t.unit =
|
|
1504
|
+
t.style = "unit", t.unit = Bi(i.options[0]);
|
|
1491
1505
|
continue;
|
|
1492
1506
|
case "compact-short":
|
|
1493
1507
|
case "K":
|
|
@@ -1499,12 +1513,12 @@ function Pi(e) {
|
|
|
1499
1513
|
continue;
|
|
1500
1514
|
case "scientific":
|
|
1501
1515
|
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1502
|
-
return w(w({}, l),
|
|
1516
|
+
return w(w({}, l), qt(u));
|
|
1503
1517
|
}, {}));
|
|
1504
1518
|
continue;
|
|
1505
1519
|
case "engineering":
|
|
1506
1520
|
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1507
|
-
return w(w({}, l),
|
|
1521
|
+
return w(w({}, l), qt(u));
|
|
1508
1522
|
}, {}));
|
|
1509
1523
|
continue;
|
|
1510
1524
|
case "notation-simple":
|
|
@@ -1549,11 +1563,11 @@ function Pi(e) {
|
|
|
1549
1563
|
case "integer-width":
|
|
1550
1564
|
if (i.options.length > 1)
|
|
1551
1565
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1552
|
-
i.options[0].replace(
|
|
1566
|
+
i.options[0].replace(Pi, function(l, u, h, c, p, y) {
|
|
1553
1567
|
if (u)
|
|
1554
1568
|
t.minimumIntegerDigits = h.length;
|
|
1555
1569
|
else {
|
|
1556
|
-
if (c &&
|
|
1570
|
+
if (c && p)
|
|
1557
1571
|
throw new Error("We currently do not support maximum integer digits");
|
|
1558
1572
|
if (y)
|
|
1559
1573
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1562,27 +1576,27 @@ function Pi(e) {
|
|
|
1562
1576
|
});
|
|
1563
1577
|
continue;
|
|
1564
1578
|
}
|
|
1565
|
-
if (
|
|
1579
|
+
if (Nr.test(i.stem)) {
|
|
1566
1580
|
t.minimumIntegerDigits = i.stem.length;
|
|
1567
1581
|
continue;
|
|
1568
1582
|
}
|
|
1569
|
-
if (
|
|
1583
|
+
if (Zt.test(i.stem)) {
|
|
1570
1584
|
if (i.options.length > 1)
|
|
1571
1585
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1572
|
-
i.stem.replace(
|
|
1573
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length :
|
|
1586
|
+
i.stem.replace(Zt, function(l, u, h, c, p, y) {
|
|
1587
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && y ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1574
1588
|
});
|
|
1575
1589
|
var s = i.options[0];
|
|
1576
|
-
s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t),
|
|
1590
|
+
s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), Jt(s)));
|
|
1577
1591
|
continue;
|
|
1578
1592
|
}
|
|
1579
|
-
if (
|
|
1580
|
-
t = w(w({}, t),
|
|
1593
|
+
if (Mr.test(i.stem)) {
|
|
1594
|
+
t = w(w({}, t), Jt(i.stem));
|
|
1581
1595
|
continue;
|
|
1582
1596
|
}
|
|
1583
|
-
var o =
|
|
1597
|
+
var o = Dr(i.stem);
|
|
1584
1598
|
o && (t = w(w({}, t), o));
|
|
1585
|
-
var a =
|
|
1599
|
+
var a = Ai(i.stem);
|
|
1586
1600
|
a && (t = w(w({}, t), a));
|
|
1587
1601
|
}
|
|
1588
1602
|
return t;
|
|
@@ -3002,13 +3016,13 @@ var Be = {
|
|
|
3002
3016
|
"h"
|
|
3003
3017
|
]
|
|
3004
3018
|
};
|
|
3005
|
-
function
|
|
3019
|
+
function Ci(e, t) {
|
|
3006
3020
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3007
3021
|
var i = e.charAt(n);
|
|
3008
3022
|
if (i === "j") {
|
|
3009
3023
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3010
3024
|
s++, n++;
|
|
3011
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
3025
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ii(t);
|
|
3012
3026
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3013
3027
|
r += l;
|
|
3014
3028
|
for (; o-- > 0; )
|
|
@@ -3018,7 +3032,7 @@ function Ai(e, t) {
|
|
|
3018
3032
|
}
|
|
3019
3033
|
return r;
|
|
3020
3034
|
}
|
|
3021
|
-
function
|
|
3035
|
+
function Ii(e) {
|
|
3022
3036
|
var t = e.hourCycle;
|
|
3023
3037
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3024
3038
|
e.hourCycles && // @ts-ignore
|
|
@@ -3040,20 +3054,20 @@ function Oi(e) {
|
|
|
3040
3054
|
var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
|
|
3041
3055
|
return i[0];
|
|
3042
3056
|
}
|
|
3043
|
-
var
|
|
3057
|
+
var qe, Ri = new RegExp("^".concat(Lr.source, "*")), Li = new RegExp("".concat(Lr.source, "*$"));
|
|
3044
3058
|
function _(e, t) {
|
|
3045
3059
|
return { start: e, end: t };
|
|
3046
3060
|
}
|
|
3047
|
-
var
|
|
3061
|
+
var Mi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ni = !!String.fromCodePoint, Di = !!Object.fromEntries, Fi = !!String.prototype.codePointAt, Ui = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, ki = !!Number.isSafeInteger, ji = ki ? Number.isSafeInteger : function(e) {
|
|
3048
3062
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3049
|
-
},
|
|
3063
|
+
}, at = !0;
|
|
3050
3064
|
try {
|
|
3051
|
-
var
|
|
3052
|
-
|
|
3065
|
+
var $i = Ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3066
|
+
at = ((qe = $i.exec("a")) === null || qe === void 0 ? void 0 : qe[0]) === "a";
|
|
3053
3067
|
} catch (e) {
|
|
3054
|
-
|
|
3068
|
+
at = !1;
|
|
3055
3069
|
}
|
|
3056
|
-
var
|
|
3070
|
+
var Qt = Mi ? (
|
|
3057
3071
|
// Native
|
|
3058
3072
|
function(t, r, n) {
|
|
3059
3073
|
return t.startsWith(r, n);
|
|
@@ -3063,7 +3077,7 @@ var Jt = Ri ? (
|
|
|
3063
3077
|
function(t, r, n) {
|
|
3064
3078
|
return t.slice(n, n + r.length) === r;
|
|
3065
3079
|
}
|
|
3066
|
-
),
|
|
3080
|
+
), ut = Ni ? String.fromCodePoint : (
|
|
3067
3081
|
// IE11
|
|
3068
3082
|
function() {
|
|
3069
3083
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3075,9 +3089,9 @@ var Jt = Ri ? (
|
|
|
3075
3089
|
}
|
|
3076
3090
|
return n;
|
|
3077
3091
|
}
|
|
3078
|
-
),
|
|
3092
|
+
), Yt = (
|
|
3079
3093
|
// native
|
|
3080
|
-
|
|
3094
|
+
Di ? Object.fromEntries : (
|
|
3081
3095
|
// Ponyfill
|
|
3082
3096
|
function(t) {
|
|
3083
3097
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3087,7 +3101,7 @@ var Jt = Ri ? (
|
|
|
3087
3101
|
return r;
|
|
3088
3102
|
}
|
|
3089
3103
|
)
|
|
3090
|
-
),
|
|
3104
|
+
), Fr = Fi ? (
|
|
3091
3105
|
// Native
|
|
3092
3106
|
function(t, r) {
|
|
3093
3107
|
return t.codePointAt(r);
|
|
@@ -3101,7 +3115,7 @@ var Jt = Ri ? (
|
|
|
3101
3115
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3102
3116
|
}
|
|
3103
3117
|
}
|
|
3104
|
-
),
|
|
3118
|
+
), Vi = Ui ? (
|
|
3105
3119
|
// Native
|
|
3106
3120
|
function(t) {
|
|
3107
3121
|
return t.trimStart();
|
|
@@ -3109,9 +3123,9 @@ var Jt = Ri ? (
|
|
|
3109
3123
|
) : (
|
|
3110
3124
|
// Ponyfill
|
|
3111
3125
|
function(t) {
|
|
3112
|
-
return t.replace(
|
|
3126
|
+
return t.replace(Ri, "");
|
|
3113
3127
|
}
|
|
3114
|
-
),
|
|
3128
|
+
), Xi = Gi ? (
|
|
3115
3129
|
// Native
|
|
3116
3130
|
function(t) {
|
|
3117
3131
|
return t.trimEnd();
|
|
@@ -3119,32 +3133,32 @@ var Jt = Ri ? (
|
|
|
3119
3133
|
) : (
|
|
3120
3134
|
// Ponyfill
|
|
3121
3135
|
function(t) {
|
|
3122
|
-
return t.replace(
|
|
3136
|
+
return t.replace(Li, "");
|
|
3123
3137
|
}
|
|
3124
3138
|
);
|
|
3125
|
-
function
|
|
3139
|
+
function Ur(e, t) {
|
|
3126
3140
|
return new RegExp(e, t);
|
|
3127
3141
|
}
|
|
3128
|
-
var
|
|
3129
|
-
if (
|
|
3130
|
-
var
|
|
3131
|
-
|
|
3142
|
+
var lt;
|
|
3143
|
+
if (at) {
|
|
3144
|
+
var Kt = Ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3145
|
+
lt = function(t, r) {
|
|
3132
3146
|
var n;
|
|
3133
|
-
|
|
3134
|
-
var i =
|
|
3147
|
+
Kt.lastIndex = r;
|
|
3148
|
+
var i = Kt.exec(t);
|
|
3135
3149
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3136
3150
|
};
|
|
3137
3151
|
} else
|
|
3138
|
-
|
|
3152
|
+
lt = function(t, r) {
|
|
3139
3153
|
for (var n = []; ; ) {
|
|
3140
|
-
var i =
|
|
3141
|
-
if (i === void 0 ||
|
|
3154
|
+
var i = Fr(t, r);
|
|
3155
|
+
if (i === void 0 || Gr(i) || Ji(i))
|
|
3142
3156
|
break;
|
|
3143
3157
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3144
3158
|
}
|
|
3145
|
-
return
|
|
3159
|
+
return ut.apply(void 0, n);
|
|
3146
3160
|
};
|
|
3147
|
-
var
|
|
3161
|
+
var zi = (
|
|
3148
3162
|
/** @class */
|
|
3149
3163
|
function() {
|
|
3150
3164
|
function e(t, r) {
|
|
@@ -3175,7 +3189,7 @@ var Vi = (
|
|
|
3175
3189
|
if (n)
|
|
3176
3190
|
break;
|
|
3177
3191
|
return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3178
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3192
|
+
} else if (s === 60 && !this.ignoreTag && ht(this.peek() || 0)) {
|
|
3179
3193
|
var o = this.parseTag(t, r);
|
|
3180
3194
|
if (o.err)
|
|
3181
3195
|
return o;
|
|
@@ -3208,7 +3222,7 @@ var Vi = (
|
|
|
3208
3222
|
return s;
|
|
3209
3223
|
var o = s.val, a = this.clonePosition();
|
|
3210
3224
|
if (this.bumpIf("</")) {
|
|
3211
|
-
if (this.isEOF() || !
|
|
3225
|
+
if (this.isEOF() || !ht(this.char()))
|
|
3212
3226
|
return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
|
|
3213
3227
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3214
3228
|
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3226,7 +3240,7 @@ var Vi = (
|
|
|
3226
3240
|
return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
|
|
3227
3241
|
}, e.prototype.parseTagName = function() {
|
|
3228
3242
|
var t = this.offset();
|
|
3229
|
-
for (this.bump(); !this.isEOF() &&
|
|
3243
|
+
for (this.bump(); !this.isEOF() && Zi(this.char()); )
|
|
3230
3244
|
this.bump();
|
|
3231
3245
|
return this.message.slice(t, this.offset());
|
|
3232
3246
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3255,7 +3269,7 @@ var Vi = (
|
|
|
3255
3269
|
};
|
|
3256
3270
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3257
3271
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3258
|
-
!
|
|
3272
|
+
!Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3259
3273
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3260
3274
|
if (this.isEOF() || this.char() !== 39)
|
|
3261
3275
|
return null;
|
|
@@ -3289,12 +3303,12 @@ var Vi = (
|
|
|
3289
3303
|
r.push(n);
|
|
3290
3304
|
this.bump();
|
|
3291
3305
|
}
|
|
3292
|
-
return
|
|
3306
|
+
return ut.apply(void 0, r);
|
|
3293
3307
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3294
3308
|
if (this.isEOF())
|
|
3295
3309
|
return null;
|
|
3296
3310
|
var n = this.char();
|
|
3297
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3311
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ut(n));
|
|
3298
3312
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3299
3313
|
var n = this.clonePosition();
|
|
3300
3314
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3323,7 +3337,7 @@ var Vi = (
|
|
|
3323
3337
|
return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3324
3338
|
}
|
|
3325
3339
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3326
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3340
|
+
var t = this.clonePosition(), r = this.offset(), n = lt(this.message, r), i = r + n.length;
|
|
3327
3341
|
this.bumpTo(i);
|
|
3328
3342
|
var s = this.clonePosition(), o = _(t, s);
|
|
3329
3343
|
return { value: n, location: o };
|
|
@@ -3342,37 +3356,37 @@ var Vi = (
|
|
|
3342
3356
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3343
3357
|
if (c.err)
|
|
3344
3358
|
return c;
|
|
3345
|
-
var
|
|
3346
|
-
if (
|
|
3359
|
+
var p = Xi(c.val);
|
|
3360
|
+
if (p.length === 0)
|
|
3347
3361
|
return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3348
3362
|
var y = _(h, this.clonePosition());
|
|
3349
|
-
u = { style:
|
|
3363
|
+
u = { style: p, styleLocation: y };
|
|
3350
3364
|
}
|
|
3351
3365
|
var g = this.tryParseArgumentClose(i);
|
|
3352
3366
|
if (g.err)
|
|
3353
3367
|
return g;
|
|
3354
|
-
var
|
|
3355
|
-
if (u &&
|
|
3356
|
-
var b =
|
|
3368
|
+
var d = _(i, this.clonePosition());
|
|
3369
|
+
if (u && Qt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3370
|
+
var b = Vi(u.style.slice(2));
|
|
3357
3371
|
if (a === "number") {
|
|
3358
3372
|
var c = this.parseNumberSkeletonFromString(b, u.styleLocation);
|
|
3359
3373
|
return c.err ? c : {
|
|
3360
|
-
val: { type: T.number, value: n, location:
|
|
3374
|
+
val: { type: T.number, value: n, location: d, style: c.val },
|
|
3361
3375
|
err: null
|
|
3362
3376
|
};
|
|
3363
3377
|
} else {
|
|
3364
3378
|
if (b.length === 0)
|
|
3365
|
-
return this.error(v.EXPECT_DATE_TIME_SKELETON,
|
|
3379
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, d);
|
|
3366
3380
|
var S = b;
|
|
3367
|
-
this.locale && (S =
|
|
3368
|
-
var
|
|
3381
|
+
this.locale && (S = Ci(b, this.locale));
|
|
3382
|
+
var p = {
|
|
3369
3383
|
type: ie.dateTime,
|
|
3370
3384
|
pattern: S,
|
|
3371
3385
|
location: u.styleLocation,
|
|
3372
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3386
|
+
parsedOptions: this.shouldParseSkeletons ? xi(S) : {}
|
|
3373
3387
|
}, O = a === "date" ? T.date : T.time;
|
|
3374
3388
|
return {
|
|
3375
|
-
val: { type: O, value: n, location:
|
|
3389
|
+
val: { type: O, value: n, location: d, style: p },
|
|
3376
3390
|
err: null
|
|
3377
3391
|
};
|
|
3378
3392
|
}
|
|
@@ -3381,7 +3395,7 @@ var Vi = (
|
|
|
3381
3395
|
val: {
|
|
3382
3396
|
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3383
3397
|
value: n,
|
|
3384
|
-
location:
|
|
3398
|
+
location: d,
|
|
3385
3399
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
3386
3400
|
},
|
|
3387
3401
|
err: null
|
|
@@ -3394,7 +3408,7 @@ var Vi = (
|
|
|
3394
3408
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3395
3409
|
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, w({}, A)));
|
|
3396
3410
|
this.bumpSpace();
|
|
3397
|
-
var L = this.parseIdentifierIfPossible(),
|
|
3411
|
+
var L = this.parseIdentifierIfPossible(), M = 0;
|
|
3398
3412
|
if (a !== "select" && L.value === "offset") {
|
|
3399
3413
|
if (!this.bumpIf(":"))
|
|
3400
3414
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -3402,7 +3416,7 @@ var Vi = (
|
|
|
3402
3416
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3403
3417
|
if (c.err)
|
|
3404
3418
|
return c;
|
|
3405
|
-
this.bumpSpace(), L = this.parseIdentifierIfPossible(),
|
|
3419
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), M = c.val;
|
|
3406
3420
|
}
|
|
3407
3421
|
var C = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
|
3408
3422
|
if (C.err)
|
|
@@ -3415,7 +3429,7 @@ var Vi = (
|
|
|
3415
3429
|
val: {
|
|
3416
3430
|
type: T.select,
|
|
3417
3431
|
value: n,
|
|
3418
|
-
options:
|
|
3432
|
+
options: Yt(C.val),
|
|
3419
3433
|
location: D
|
|
3420
3434
|
},
|
|
3421
3435
|
err: null
|
|
@@ -3423,8 +3437,8 @@ var Vi = (
|
|
|
3423
3437
|
val: {
|
|
3424
3438
|
type: T.plural,
|
|
3425
3439
|
value: n,
|
|
3426
|
-
options:
|
|
3427
|
-
offset:
|
|
3440
|
+
options: Yt(C.val),
|
|
3441
|
+
offset: M,
|
|
3428
3442
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3429
3443
|
location: D
|
|
3430
3444
|
},
|
|
@@ -3474,7 +3488,7 @@ var Vi = (
|
|
|
3474
3488
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3475
3489
|
var n = [];
|
|
3476
3490
|
try {
|
|
3477
|
-
n =
|
|
3491
|
+
n = Hi(t);
|
|
3478
3492
|
} catch (i) {
|
|
3479
3493
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3480
3494
|
}
|
|
@@ -3483,7 +3497,7 @@ var Vi = (
|
|
|
3483
3497
|
type: ie.number,
|
|
3484
3498
|
tokens: n,
|
|
3485
3499
|
location: r,
|
|
3486
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3500
|
+
parsedOptions: this.shouldParseSkeletons ? Oi(n) : {}
|
|
3487
3501
|
},
|
|
3488
3502
|
err: null
|
|
3489
3503
|
};
|
|
@@ -3492,9 +3506,9 @@ var Vi = (
|
|
|
3492
3506
|
if (u.length === 0) {
|
|
3493
3507
|
var c = this.clonePosition();
|
|
3494
3508
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3495
|
-
var
|
|
3496
|
-
if (
|
|
3497
|
-
return
|
|
3509
|
+
var p = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3510
|
+
if (p.err)
|
|
3511
|
+
return p;
|
|
3498
3512
|
h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3499
3513
|
} else
|
|
3500
3514
|
break;
|
|
@@ -3508,9 +3522,9 @@ var Vi = (
|
|
|
3508
3522
|
var g = this.parseMessage(t + 1, r, n);
|
|
3509
3523
|
if (g.err)
|
|
3510
3524
|
return g;
|
|
3511
|
-
var
|
|
3512
|
-
if (
|
|
3513
|
-
return
|
|
3525
|
+
var d = this.tryParseArgumentClose(y);
|
|
3526
|
+
if (d.err)
|
|
3527
|
+
return d;
|
|
3514
3528
|
a.push([
|
|
3515
3529
|
u,
|
|
3516
3530
|
{
|
|
@@ -3531,7 +3545,7 @@ var Vi = (
|
|
|
3531
3545
|
break;
|
|
3532
3546
|
}
|
|
3533
3547
|
var l = _(i, this.clonePosition());
|
|
3534
|
-
return s ? (o *= n,
|
|
3548
|
+
return s ? (o *= n, ji(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3535
3549
|
}, e.prototype.offset = function() {
|
|
3536
3550
|
return this.position.offset;
|
|
3537
3551
|
}, e.prototype.isEOF = function() {
|
|
@@ -3546,7 +3560,7 @@ var Vi = (
|
|
|
3546
3560
|
var t = this.position.offset;
|
|
3547
3561
|
if (t >= this.message.length)
|
|
3548
3562
|
throw Error("out of bound");
|
|
3549
|
-
var r =
|
|
3563
|
+
var r = Fr(this.message, t);
|
|
3550
3564
|
if (r === void 0)
|
|
3551
3565
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3552
3566
|
return r;
|
|
@@ -3565,7 +3579,7 @@ var Vi = (
|
|
|
3565
3579
|
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);
|
|
3566
3580
|
}
|
|
3567
3581
|
}, e.prototype.bumpIf = function(t) {
|
|
3568
|
-
if (
|
|
3582
|
+
if (Qt(this.message, t, this.offset())) {
|
|
3569
3583
|
for (var r = 0; r < t.length; r++)
|
|
3570
3584
|
this.bump();
|
|
3571
3585
|
return !0;
|
|
@@ -3587,7 +3601,7 @@ var Vi = (
|
|
|
3587
3601
|
break;
|
|
3588
3602
|
}
|
|
3589
3603
|
}, e.prototype.bumpSpace = function() {
|
|
3590
|
-
for (; !this.isEOF() &&
|
|
3604
|
+
for (; !this.isEOF() && Gr(this.char()); )
|
|
3591
3605
|
this.bump();
|
|
3592
3606
|
}, e.prototype.peek = function() {
|
|
3593
3607
|
if (this.isEOF())
|
|
@@ -3597,38 +3611,38 @@ var Vi = (
|
|
|
3597
3611
|
}, e;
|
|
3598
3612
|
}()
|
|
3599
3613
|
);
|
|
3600
|
-
function
|
|
3614
|
+
function ht(e) {
|
|
3601
3615
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3602
3616
|
}
|
|
3603
|
-
function Xi(e) {
|
|
3604
|
-
return lt(e) || e === 47;
|
|
3605
|
-
}
|
|
3606
3617
|
function Wi(e) {
|
|
3618
|
+
return ht(e) || e === 47;
|
|
3619
|
+
}
|
|
3620
|
+
function Zi(e) {
|
|
3607
3621
|
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;
|
|
3608
3622
|
}
|
|
3609
|
-
function
|
|
3623
|
+
function Gr(e) {
|
|
3610
3624
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3611
3625
|
}
|
|
3612
|
-
function
|
|
3626
|
+
function Ji(e) {
|
|
3613
3627
|
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;
|
|
3614
3628
|
}
|
|
3615
|
-
function
|
|
3629
|
+
function ft(e) {
|
|
3616
3630
|
e.forEach(function(t) {
|
|
3617
|
-
if (delete t.location,
|
|
3631
|
+
if (delete t.location, Or(t) || Cr(t))
|
|
3618
3632
|
for (var r in t.options)
|
|
3619
|
-
delete t.options[r].location,
|
|
3633
|
+
delete t.options[r].location, ft(t.options[r].value);
|
|
3620
3634
|
else
|
|
3621
|
-
|
|
3635
|
+
Br(t) && Rr(t.style) || (Pr(t) || Ar(t)) && ot(t.style) ? delete t.style.location : Ir(t) && ft(t.children);
|
|
3622
3636
|
});
|
|
3623
3637
|
}
|
|
3624
|
-
function
|
|
3638
|
+
function qi(e, t) {
|
|
3625
3639
|
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3626
|
-
var r = new
|
|
3640
|
+
var r = new zi(e, t).parse();
|
|
3627
3641
|
if (r.err) {
|
|
3628
3642
|
var n = SyntaxError(v[r.err.kind]);
|
|
3629
3643
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3630
3644
|
}
|
|
3631
|
-
return t != null && t.captureLocation ||
|
|
3645
|
+
return t != null && t.captureLocation || ft(r.val), r.val;
|
|
3632
3646
|
}
|
|
3633
3647
|
var se;
|
|
3634
3648
|
(function(e) {
|
|
@@ -3637,7 +3651,7 @@ var se;
|
|
|
3637
3651
|
var De = (
|
|
3638
3652
|
/** @class */
|
|
3639
3653
|
function(e) {
|
|
3640
|
-
|
|
3654
|
+
z(t, e);
|
|
3641
3655
|
function t(r, n, i) {
|
|
3642
3656
|
var s = e.call(this, r) || this;
|
|
3643
3657
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3646,28 +3660,28 @@ var De = (
|
|
|
3646
3660
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3647
3661
|
}, t;
|
|
3648
3662
|
}(Error)
|
|
3649
|
-
),
|
|
3663
|
+
), er = (
|
|
3650
3664
|
/** @class */
|
|
3651
3665
|
function(e) {
|
|
3652
|
-
|
|
3666
|
+
z(t, e);
|
|
3653
3667
|
function t(r, n, i, s) {
|
|
3654
3668
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, s) || this;
|
|
3655
3669
|
}
|
|
3656
3670
|
return t;
|
|
3657
3671
|
}(De)
|
|
3658
|
-
),
|
|
3672
|
+
), Qi = (
|
|
3659
3673
|
/** @class */
|
|
3660
3674
|
function(e) {
|
|
3661
|
-
|
|
3675
|
+
z(t, e);
|
|
3662
3676
|
function t(r, n, i) {
|
|
3663
3677
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
|
|
3664
3678
|
}
|
|
3665
3679
|
return t;
|
|
3666
3680
|
}(De)
|
|
3667
|
-
),
|
|
3681
|
+
), Yi = (
|
|
3668
3682
|
/** @class */
|
|
3669
3683
|
function(e) {
|
|
3670
|
-
|
|
3684
|
+
z(t, e);
|
|
3671
3685
|
function t(r, n) {
|
|
3672
3686
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
|
|
3673
3687
|
}
|
|
@@ -3677,17 +3691,17 @@ var De = (
|
|
|
3677
3691
|
(function(e) {
|
|
3678
3692
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3679
3693
|
})(R || (R = {}));
|
|
3680
|
-
function
|
|
3694
|
+
function Ki(e) {
|
|
3681
3695
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3682
3696
|
var n = t[t.length - 1];
|
|
3683
3697
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
3684
3698
|
}, []);
|
|
3685
3699
|
}
|
|
3686
|
-
function
|
|
3700
|
+
function es(e) {
|
|
3687
3701
|
return typeof e == "function";
|
|
3688
3702
|
}
|
|
3689
3703
|
function Oe(e, t, r, n, i, s, o) {
|
|
3690
|
-
if (e.length === 1 &&
|
|
3704
|
+
if (e.length === 1 && Wt(e[0]))
|
|
3691
3705
|
return [
|
|
3692
3706
|
{
|
|
3693
3707
|
type: R.literal,
|
|
@@ -3696,14 +3710,14 @@ function Oe(e, t, r, n, i, s, o) {
|
|
|
3696
3710
|
];
|
|
3697
3711
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3698
3712
|
var h = u[l];
|
|
3699
|
-
if (
|
|
3713
|
+
if (Wt(h)) {
|
|
3700
3714
|
a.push({
|
|
3701
3715
|
type: R.literal,
|
|
3702
3716
|
value: h.value
|
|
3703
3717
|
});
|
|
3704
3718
|
continue;
|
|
3705
3719
|
}
|
|
3706
|
-
if (
|
|
3720
|
+
if (wi(h)) {
|
|
3707
3721
|
typeof s == "number" && a.push({
|
|
3708
3722
|
type: R.literal,
|
|
3709
3723
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3712,89 +3726,89 @@ function Oe(e, t, r, n, i, s, o) {
|
|
|
3712
3726
|
}
|
|
3713
3727
|
var c = h.value;
|
|
3714
3728
|
if (!(i && c in i))
|
|
3715
|
-
throw new
|
|
3716
|
-
var
|
|
3717
|
-
if (
|
|
3718
|
-
(!
|
|
3719
|
-
type: typeof
|
|
3720
|
-
value:
|
|
3729
|
+
throw new Yi(c, o);
|
|
3730
|
+
var p = i[c];
|
|
3731
|
+
if (Ei(h)) {
|
|
3732
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
|
|
3733
|
+
type: typeof p == "string" ? R.literal : R.object,
|
|
3734
|
+
value: p
|
|
3721
3735
|
});
|
|
3722
3736
|
continue;
|
|
3723
3737
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var y = typeof h.style == "string" ? n.date[h.style] :
|
|
3738
|
+
if (Pr(h)) {
|
|
3739
|
+
var y = typeof h.style == "string" ? n.date[h.style] : ot(h.style) ? h.style.parsedOptions : void 0;
|
|
3726
3740
|
a.push({
|
|
3727
3741
|
type: R.literal,
|
|
3728
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3742
|
+
value: r.getDateTimeFormat(t, y).format(p)
|
|
3729
3743
|
});
|
|
3730
3744
|
continue;
|
|
3731
3745
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var y = typeof h.style == "string" ? n.time[h.style] :
|
|
3746
|
+
if (Ar(h)) {
|
|
3747
|
+
var y = typeof h.style == "string" ? n.time[h.style] : ot(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3734
3748
|
a.push({
|
|
3735
3749
|
type: R.literal,
|
|
3736
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3750
|
+
value: r.getDateTimeFormat(t, y).format(p)
|
|
3737
3751
|
});
|
|
3738
3752
|
continue;
|
|
3739
3753
|
}
|
|
3740
|
-
if (
|
|
3741
|
-
var y = typeof h.style == "string" ? n.number[h.style] :
|
|
3742
|
-
y && y.scale && (
|
|
3754
|
+
if (Br(h)) {
|
|
3755
|
+
var y = typeof h.style == "string" ? n.number[h.style] : Rr(h.style) ? h.style.parsedOptions : void 0;
|
|
3756
|
+
y && y.scale && (p = p * (y.scale || 1)), a.push({
|
|
3743
3757
|
type: R.literal,
|
|
3744
|
-
value: r.getNumberFormat(t, y).format(
|
|
3758
|
+
value: r.getNumberFormat(t, y).format(p)
|
|
3745
3759
|
});
|
|
3746
3760
|
continue;
|
|
3747
3761
|
}
|
|
3748
|
-
if (
|
|
3749
|
-
var g = h.children,
|
|
3750
|
-
if (!
|
|
3751
|
-
throw new
|
|
3752
|
-
var S = Oe(g, t, r, n, i, s), O = b(S.map(function(
|
|
3753
|
-
return
|
|
3762
|
+
if (Ir(h)) {
|
|
3763
|
+
var g = h.children, d = h.value, b = i[d];
|
|
3764
|
+
if (!es(b))
|
|
3765
|
+
throw new Qi(d, "function", o);
|
|
3766
|
+
var S = Oe(g, t, r, n, i, s), O = b(S.map(function(M) {
|
|
3767
|
+
return M.value;
|
|
3754
3768
|
}));
|
|
3755
|
-
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(
|
|
3769
|
+
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(M) {
|
|
3756
3770
|
return {
|
|
3757
|
-
type: typeof
|
|
3758
|
-
value:
|
|
3771
|
+
type: typeof M == "string" ? R.literal : R.object,
|
|
3772
|
+
value: M
|
|
3759
3773
|
};
|
|
3760
3774
|
}));
|
|
3761
3775
|
}
|
|
3762
|
-
if (
|
|
3763
|
-
var A = h.options[
|
|
3776
|
+
if (Or(h)) {
|
|
3777
|
+
var A = h.options[p] || h.options.other;
|
|
3764
3778
|
if (!A)
|
|
3765
|
-
throw new
|
|
3779
|
+
throw new er(h.value, p, Object.keys(h.options), o);
|
|
3766
3780
|
a.push.apply(a, Oe(A.value, t, r, n, i));
|
|
3767
3781
|
continue;
|
|
3768
3782
|
}
|
|
3769
|
-
if (
|
|
3770
|
-
var A = h.options["=".concat(
|
|
3783
|
+
if (Cr(h)) {
|
|
3784
|
+
var A = h.options["=".concat(p)];
|
|
3771
3785
|
if (!A) {
|
|
3772
3786
|
if (!Intl.PluralRules)
|
|
3773
3787
|
throw new De(`Intl.PluralRules is not available in this environment.
|
|
3774
3788
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3775
3789
|
`, se.MISSING_INTL_API, o);
|
|
3776
|
-
var L = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3790
|
+
var L = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3777
3791
|
A = h.options[L] || h.options.other;
|
|
3778
3792
|
}
|
|
3779
3793
|
if (!A)
|
|
3780
|
-
throw new
|
|
3781
|
-
a.push.apply(a, Oe(A.value, t, r, n, i,
|
|
3794
|
+
throw new er(h.value, p, Object.keys(h.options), o);
|
|
3795
|
+
a.push.apply(a, Oe(A.value, t, r, n, i, p - (h.offset || 0)));
|
|
3782
3796
|
continue;
|
|
3783
3797
|
}
|
|
3784
3798
|
}
|
|
3785
|
-
return
|
|
3799
|
+
return Ki(a);
|
|
3786
3800
|
}
|
|
3787
|
-
function
|
|
3801
|
+
function ts(e, t) {
|
|
3788
3802
|
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3789
3803
|
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3790
3804
|
}, {})) : e;
|
|
3791
3805
|
}
|
|
3792
|
-
function
|
|
3806
|
+
function rs(e, t) {
|
|
3793
3807
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3794
|
-
return r[n] =
|
|
3808
|
+
return r[n] = ts(e[n], t[n]), r;
|
|
3795
3809
|
}, w({}, e)) : e;
|
|
3796
3810
|
}
|
|
3797
|
-
function
|
|
3811
|
+
function Qe(e) {
|
|
3798
3812
|
return {
|
|
3799
3813
|
create: function() {
|
|
3800
3814
|
return {
|
|
@@ -3808,39 +3822,39 @@ function qe(e) {
|
|
|
3808
3822
|
}
|
|
3809
3823
|
};
|
|
3810
3824
|
}
|
|
3811
|
-
function
|
|
3825
|
+
function ns(e) {
|
|
3812
3826
|
return e === void 0 && (e = {
|
|
3813
3827
|
number: {},
|
|
3814
3828
|
dateTime: {},
|
|
3815
3829
|
pluralRules: {}
|
|
3816
3830
|
}), {
|
|
3817
|
-
getNumberFormat:
|
|
3831
|
+
getNumberFormat: Ze(function() {
|
|
3818
3832
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3819
3833
|
r[n] = arguments[n];
|
|
3820
3834
|
return new ((t = Intl.NumberFormat).bind.apply(t, re([void 0], r, !1)))();
|
|
3821
3835
|
}, {
|
|
3822
|
-
cache:
|
|
3823
|
-
strategy:
|
|
3836
|
+
cache: Qe(e.number),
|
|
3837
|
+
strategy: Je.variadic
|
|
3824
3838
|
}),
|
|
3825
|
-
getDateTimeFormat:
|
|
3839
|
+
getDateTimeFormat: Ze(function() {
|
|
3826
3840
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3827
3841
|
r[n] = arguments[n];
|
|
3828
3842
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, re([void 0], r, !1)))();
|
|
3829
3843
|
}, {
|
|
3830
|
-
cache:
|
|
3831
|
-
strategy:
|
|
3844
|
+
cache: Qe(e.dateTime),
|
|
3845
|
+
strategy: Je.variadic
|
|
3832
3846
|
}),
|
|
3833
|
-
getPluralRules:
|
|
3847
|
+
getPluralRules: Ze(function() {
|
|
3834
3848
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3835
3849
|
r[n] = arguments[n];
|
|
3836
3850
|
return new ((t = Intl.PluralRules).bind.apply(t, re([void 0], r, !1)))();
|
|
3837
3851
|
}, {
|
|
3838
|
-
cache:
|
|
3839
|
-
strategy:
|
|
3852
|
+
cache: Qe(e.pluralRules),
|
|
3853
|
+
strategy: Je.variadic
|
|
3840
3854
|
})
|
|
3841
3855
|
};
|
|
3842
3856
|
}
|
|
3843
|
-
var
|
|
3857
|
+
var is = (
|
|
3844
3858
|
/** @class */
|
|
3845
3859
|
function() {
|
|
3846
3860
|
function e(t, r, n, i) {
|
|
@@ -3854,8 +3868,8 @@ var rs = (
|
|
|
3854
3868
|
var u = s.formatToParts(l);
|
|
3855
3869
|
if (u.length === 1)
|
|
3856
3870
|
return u[0].value;
|
|
3857
|
-
var h = u.reduce(function(c,
|
|
3858
|
-
return !c.length ||
|
|
3871
|
+
var h = u.reduce(function(c, p) {
|
|
3872
|
+
return !c.length || p.type !== R.literal || typeof c[c.length - 1] != "string" ? c.push(p.value) : c[c.length - 1] += p.value, c;
|
|
3859
3873
|
}, []);
|
|
3860
3874
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3861
3875
|
}, this.formatToParts = function(l) {
|
|
@@ -3872,13 +3886,13 @@ var rs = (
|
|
|
3872
3886
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3873
3887
|
var o = i || {};
|
|
3874
3888
|
o.formatters;
|
|
3875
|
-
var a =
|
|
3889
|
+
var a = Dn(o, ["formatters"]);
|
|
3876
3890
|
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3877
3891
|
} else
|
|
3878
3892
|
this.ast = t;
|
|
3879
3893
|
if (!Array.isArray(this.ast))
|
|
3880
3894
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3881
|
-
this.formats =
|
|
3895
|
+
this.formats = rs(e.formats, n), this.formatters = i && i.formatters || ns(this.formatterCache);
|
|
3882
3896
|
}
|
|
3883
3897
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3884
3898
|
get: function() {
|
|
@@ -3891,7 +3905,7 @@ var rs = (
|
|
|
3891
3905
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3892
3906
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3893
3907
|
}
|
|
3894
|
-
}, e.__parse =
|
|
3908
|
+
}, e.__parse = qi, e.formats = {
|
|
3895
3909
|
number: {
|
|
3896
3910
|
integer: {
|
|
3897
3911
|
maximumFractionDigits: 0
|
|
@@ -3952,7 +3966,7 @@ var rs = (
|
|
|
3952
3966
|
}, e;
|
|
3953
3967
|
}()
|
|
3954
3968
|
);
|
|
3955
|
-
function
|
|
3969
|
+
function ss(e, t) {
|
|
3956
3970
|
if (t == null)
|
|
3957
3971
|
return;
|
|
3958
3972
|
if (t in e)
|
|
@@ -3973,92 +3987,92 @@ function ns(e, t) {
|
|
|
3973
3987
|
n = void 0;
|
|
3974
3988
|
return n;
|
|
3975
3989
|
}
|
|
3976
|
-
const Z = {},
|
|
3990
|
+
const Z = {}, os = (e, t, r) => r && (t in Z || (Z[t] = {}), e in Z[t] || (Z[t][e] = r), r), kr = (e, t) => {
|
|
3977
3991
|
if (t == null)
|
|
3978
3992
|
return;
|
|
3979
3993
|
if (t in Z && e in Z[t])
|
|
3980
3994
|
return Z[t][e];
|
|
3981
3995
|
const r = Fe(t);
|
|
3982
3996
|
for (let n = 0; n < r.length; n++) {
|
|
3983
|
-
const i = r[n], s =
|
|
3997
|
+
const i = r[n], s = us(i, e);
|
|
3984
3998
|
if (s)
|
|
3985
|
-
return
|
|
3999
|
+
return os(e, t, s);
|
|
3986
4000
|
}
|
|
3987
4001
|
};
|
|
3988
|
-
let
|
|
3989
|
-
const ue =
|
|
3990
|
-
function
|
|
3991
|
-
return
|
|
4002
|
+
let bt;
|
|
4003
|
+
const ue = Ne({});
|
|
4004
|
+
function as(e) {
|
|
4005
|
+
return bt[e] || null;
|
|
3992
4006
|
}
|
|
3993
|
-
function
|
|
3994
|
-
return e in
|
|
4007
|
+
function jr(e) {
|
|
4008
|
+
return e in bt;
|
|
3995
4009
|
}
|
|
3996
|
-
function
|
|
3997
|
-
if (!
|
|
4010
|
+
function us(e, t) {
|
|
4011
|
+
if (!jr(e))
|
|
3998
4012
|
return null;
|
|
3999
|
-
const r =
|
|
4000
|
-
return
|
|
4013
|
+
const r = as(e);
|
|
4014
|
+
return ss(r, t);
|
|
4001
4015
|
}
|
|
4002
|
-
function
|
|
4016
|
+
function ls(e) {
|
|
4003
4017
|
if (e == null)
|
|
4004
4018
|
return;
|
|
4005
4019
|
const t = Fe(e);
|
|
4006
4020
|
for (let r = 0; r < t.length; r++) {
|
|
4007
4021
|
const n = t[r];
|
|
4008
|
-
if (
|
|
4022
|
+
if (jr(n))
|
|
4009
4023
|
return n;
|
|
4010
4024
|
}
|
|
4011
4025
|
}
|
|
4012
|
-
function
|
|
4013
|
-
delete Z[e], ue.update((r) => (r[e] =
|
|
4026
|
+
function $r(e, ...t) {
|
|
4027
|
+
delete Z[e], ue.update((r) => (r[e] = pi.all([r[e] || {}, ...t]), r));
|
|
4014
4028
|
}
|
|
4015
4029
|
ae(
|
|
4016
4030
|
[ue],
|
|
4017
4031
|
([e]) => Object.keys(e)
|
|
4018
4032
|
);
|
|
4019
|
-
ue.subscribe((e) =>
|
|
4033
|
+
ue.subscribe((e) => bt = e);
|
|
4020
4034
|
const Ce = {};
|
|
4021
|
-
function
|
|
4035
|
+
function hs(e, t) {
|
|
4022
4036
|
Ce[e].delete(t), Ce[e].size === 0 && delete Ce[e];
|
|
4023
4037
|
}
|
|
4024
|
-
function
|
|
4038
|
+
function Vr(e) {
|
|
4025
4039
|
return Ce[e];
|
|
4026
4040
|
}
|
|
4027
|
-
function
|
|
4041
|
+
function fs(e) {
|
|
4028
4042
|
return Fe(e).map((t) => {
|
|
4029
|
-
const r =
|
|
4043
|
+
const r = Vr(t);
|
|
4030
4044
|
return [t, r ? [...r] : []];
|
|
4031
4045
|
}).filter(([, t]) => t.length > 0);
|
|
4032
4046
|
}
|
|
4033
|
-
function
|
|
4047
|
+
function ct(e) {
|
|
4034
4048
|
return e == null ? !1 : Fe(e).some(
|
|
4035
4049
|
(t) => {
|
|
4036
4050
|
var r;
|
|
4037
|
-
return (r =
|
|
4051
|
+
return (r = Vr(t)) == null ? void 0 : r.size;
|
|
4038
4052
|
}
|
|
4039
4053
|
);
|
|
4040
4054
|
}
|
|
4041
|
-
function
|
|
4055
|
+
function cs(e, t) {
|
|
4042
4056
|
return Promise.all(
|
|
4043
|
-
t.map((n) => (
|
|
4044
|
-
).then((n) =>
|
|
4057
|
+
t.map((n) => (hs(e, n), n().then((i) => i.default || i)))
|
|
4058
|
+
).then((n) => $r(e, ...n));
|
|
4045
4059
|
}
|
|
4046
4060
|
const ce = {};
|
|
4047
|
-
function
|
|
4048
|
-
if (!
|
|
4061
|
+
function Xr(e) {
|
|
4062
|
+
if (!ct(e))
|
|
4049
4063
|
return e in ce ? ce[e] : Promise.resolve();
|
|
4050
|
-
const t =
|
|
4064
|
+
const t = fs(e);
|
|
4051
4065
|
return ce[e] = Promise.all(
|
|
4052
4066
|
t.map(
|
|
4053
|
-
([r, n]) =>
|
|
4067
|
+
([r, n]) => cs(r, n)
|
|
4054
4068
|
)
|
|
4055
4069
|
).then(() => {
|
|
4056
|
-
if (
|
|
4057
|
-
return
|
|
4070
|
+
if (ct(e))
|
|
4071
|
+
return Xr(e);
|
|
4058
4072
|
delete ce[e];
|
|
4059
4073
|
}), ce[e];
|
|
4060
4074
|
}
|
|
4061
|
-
const
|
|
4075
|
+
const ms = {
|
|
4062
4076
|
number: {
|
|
4063
4077
|
scientific: { notation: "scientific" },
|
|
4064
4078
|
engineering: { notation: "engineering" },
|
|
@@ -4087,57 +4101,57 @@ const fs = {
|
|
|
4087
4101
|
timeZoneName: "short"
|
|
4088
4102
|
}
|
|
4089
4103
|
}
|
|
4090
|
-
},
|
|
4104
|
+
}, ps = {
|
|
4091
4105
|
fallbackLocale: null,
|
|
4092
4106
|
loadingDelay: 200,
|
|
4093
|
-
formats:
|
|
4107
|
+
formats: ms,
|
|
4094
4108
|
warnOnMissingMessages: !0,
|
|
4095
4109
|
handleMissingMessage: void 0,
|
|
4096
4110
|
ignoreTag: !0
|
|
4097
|
-
},
|
|
4111
|
+
}, ds = ps;
|
|
4098
4112
|
function oe() {
|
|
4099
|
-
return
|
|
4100
|
-
}
|
|
4101
|
-
const
|
|
4102
|
-
var
|
|
4103
|
-
for (var r in t)
|
|
4104
|
-
|
|
4105
|
-
if (
|
|
4106
|
-
for (var r of
|
|
4107
|
-
|
|
4113
|
+
return ds;
|
|
4114
|
+
}
|
|
4115
|
+
const Ye = Ne(!1);
|
|
4116
|
+
var gs = Object.defineProperty, bs = Object.defineProperties, ys = Object.getOwnPropertyDescriptors, tr = Object.getOwnPropertySymbols, vs = Object.prototype.hasOwnProperty, _s = Object.prototype.propertyIsEnumerable, rr = (e, t, r) => t in e ? gs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Es = (e, t) => {
|
|
4117
|
+
for (var r in t || (t = {}))
|
|
4118
|
+
vs.call(t, r) && rr(e, r, t[r]);
|
|
4119
|
+
if (tr)
|
|
4120
|
+
for (var r of tr(t))
|
|
4121
|
+
_s.call(t, r) && rr(e, r, t[r]);
|
|
4108
4122
|
return e;
|
|
4109
|
-
},
|
|
4110
|
-
let
|
|
4111
|
-
const Re =
|
|
4112
|
-
function
|
|
4123
|
+
}, ws = (e, t) => bs(e, ys(t));
|
|
4124
|
+
let mt;
|
|
4125
|
+
const Re = Ne(null);
|
|
4126
|
+
function nr(e) {
|
|
4113
4127
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4114
4128
|
}
|
|
4115
4129
|
function Fe(e, t = oe().fallbackLocale) {
|
|
4116
|
-
const r =
|
|
4117
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4130
|
+
const r = nr(e);
|
|
4131
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...nr(t)])] : r;
|
|
4118
4132
|
}
|
|
4119
4133
|
function q() {
|
|
4120
|
-
return
|
|
4134
|
+
return mt != null ? mt : void 0;
|
|
4121
4135
|
}
|
|
4122
4136
|
Re.subscribe((e) => {
|
|
4123
|
-
|
|
4137
|
+
mt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4124
4138
|
});
|
|
4125
|
-
const
|
|
4126
|
-
if (e &&
|
|
4139
|
+
const Ss = (e) => {
|
|
4140
|
+
if (e && ls(e) && ct(e)) {
|
|
4127
4141
|
const { loadingDelay: t } = oe();
|
|
4128
4142
|
let r;
|
|
4129
4143
|
return typeof window != "undefined" && q() != null && t ? r = window.setTimeout(
|
|
4130
|
-
() =>
|
|
4144
|
+
() => Ye.set(!0),
|
|
4131
4145
|
t
|
|
4132
|
-
) :
|
|
4146
|
+
) : Ye.set(!0), Xr(e).then(() => {
|
|
4133
4147
|
Re.set(e);
|
|
4134
4148
|
}).finally(() => {
|
|
4135
|
-
clearTimeout(r),
|
|
4149
|
+
clearTimeout(r), Ye.set(!1);
|
|
4136
4150
|
});
|
|
4137
4151
|
}
|
|
4138
4152
|
return Re.set(e);
|
|
4139
|
-
}, J =
|
|
4140
|
-
set:
|
|
4153
|
+
}, J = ws(Es({}, Re), {
|
|
4154
|
+
set: Ss
|
|
4141
4155
|
}), Ue = (e) => {
|
|
4142
4156
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4143
4157
|
return (n) => {
|
|
@@ -4145,20 +4159,20 @@ const Es = (e) => {
|
|
|
4145
4159
|
return i in t ? t[i] : t[i] = e(n);
|
|
4146
4160
|
};
|
|
4147
4161
|
};
|
|
4148
|
-
var
|
|
4162
|
+
var xs = Object.defineProperty, Le = Object.getOwnPropertySymbols, zr = Object.prototype.hasOwnProperty, Wr = Object.prototype.propertyIsEnumerable, ir = (e, t, r) => t in e ? xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
|
4149
4163
|
for (var r in t || (t = {}))
|
|
4150
|
-
|
|
4164
|
+
zr.call(t, r) && ir(e, r, t[r]);
|
|
4151
4165
|
if (Le)
|
|
4152
4166
|
for (var r of Le(t))
|
|
4153
|
-
|
|
4167
|
+
Wr.call(t, r) && ir(e, r, t[r]);
|
|
4154
4168
|
return e;
|
|
4155
4169
|
}, le = (e, t) => {
|
|
4156
4170
|
var r = {};
|
|
4157
4171
|
for (var n in e)
|
|
4158
|
-
|
|
4172
|
+
zr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4159
4173
|
if (e != null && Le)
|
|
4160
4174
|
for (var n of Le(e))
|
|
4161
|
-
t.indexOf(n) < 0 &&
|
|
4175
|
+
t.indexOf(n) < 0 && Wr.call(e, n) && (r[n] = e[n]);
|
|
4162
4176
|
return r;
|
|
4163
4177
|
};
|
|
4164
4178
|
const ge = (e, t) => {
|
|
@@ -4166,21 +4180,21 @@ const ge = (e, t) => {
|
|
|
4166
4180
|
if (e in r && t in r[e])
|
|
4167
4181
|
return r[e][t];
|
|
4168
4182
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4169
|
-
},
|
|
4183
|
+
}, Ts = Ue(
|
|
4170
4184
|
(e) => {
|
|
4171
4185
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4172
4186
|
if (r == null)
|
|
4173
4187
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4174
4188
|
return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
|
|
4175
4189
|
}
|
|
4176
|
-
),
|
|
4190
|
+
), Hs = Ue(
|
|
4177
4191
|
(e) => {
|
|
4178
4192
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4179
4193
|
if (r == null)
|
|
4180
4194
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4181
4195
|
return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4182
4196
|
}
|
|
4183
|
-
),
|
|
4197
|
+
), Bs = Ue(
|
|
4184
4198
|
(e) => {
|
|
4185
4199
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4186
4200
|
if (r == null)
|
|
@@ -4189,33 +4203,33 @@ const ge = (e, t) => {
|
|
|
4189
4203
|
);
|
|
4190
4204
|
return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4191
4205
|
}
|
|
4192
|
-
),
|
|
4206
|
+
), Ps = (e = {}) => {
|
|
4193
4207
|
var t = e, {
|
|
4194
4208
|
locale: r = q()
|
|
4195
4209
|
} = t, n = le(t, [
|
|
4196
4210
|
"locale"
|
|
4197
4211
|
]);
|
|
4198
|
-
return
|
|
4199
|
-
},
|
|
4212
|
+
return Ts(yt({ locale: r }, n));
|
|
4213
|
+
}, As = (e = {}) => {
|
|
4200
4214
|
var t = e, {
|
|
4201
4215
|
locale: r = q()
|
|
4202
4216
|
} = t, n = le(t, [
|
|
4203
4217
|
"locale"
|
|
4204
4218
|
]);
|
|
4205
|
-
return
|
|
4206
|
-
},
|
|
4219
|
+
return Hs(yt({ locale: r }, n));
|
|
4220
|
+
}, Os = (e = {}) => {
|
|
4207
4221
|
var t = e, {
|
|
4208
4222
|
locale: r = q()
|
|
4209
4223
|
} = t, n = le(t, [
|
|
4210
4224
|
"locale"
|
|
4211
4225
|
]);
|
|
4212
|
-
return
|
|
4213
|
-
},
|
|
4226
|
+
return Bs(yt({ locale: r }, n));
|
|
4227
|
+
}, Cs = Ue(
|
|
4214
4228
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4215
|
-
(e, t = q()) => new
|
|
4229
|
+
(e, t = q()) => new is(e, t, oe().formats, {
|
|
4216
4230
|
ignoreTag: oe().ignoreTag
|
|
4217
4231
|
})
|
|
4218
|
-
),
|
|
4232
|
+
), Is = (e, t = {}) => {
|
|
4219
4233
|
var r, n, i, s;
|
|
4220
4234
|
let o = t;
|
|
4221
4235
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4228,7 +4242,7 @@ const ge = (e, t) => {
|
|
|
4228
4242
|
throw new Error(
|
|
4229
4243
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4230
4244
|
);
|
|
4231
|
-
let h =
|
|
4245
|
+
let h = kr(e, l);
|
|
4232
4246
|
if (!h)
|
|
4233
4247
|
h = (s = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4234
4248
|
else if (typeof h != "string")
|
|
@@ -4239,33 +4253,33 @@ const ge = (e, t) => {
|
|
|
4239
4253
|
return h;
|
|
4240
4254
|
let c = h;
|
|
4241
4255
|
try {
|
|
4242
|
-
c =
|
|
4243
|
-
} catch (
|
|
4244
|
-
|
|
4256
|
+
c = Cs(h, l).format(a);
|
|
4257
|
+
} catch (p) {
|
|
4258
|
+
p instanceof Error && console.warn(
|
|
4245
4259
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4246
|
-
|
|
4260
|
+
p.message
|
|
4247
4261
|
);
|
|
4248
4262
|
}
|
|
4249
4263
|
return c;
|
|
4250
|
-
},
|
|
4251
|
-
ae([J], () => Cs);
|
|
4252
|
-
ae([J], () => Is);
|
|
4264
|
+
}, Rs = (e, t) => Os(t).format(e), Ls = (e, t) => As(t).format(e), Ms = (e, t) => Ps(t).format(e), Ns = (e, t = q()) => kr(e, t), Ds = ae([J, ue], () => Is);
|
|
4253
4265
|
ae([J], () => Rs);
|
|
4254
|
-
ae([J
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4266
|
+
ae([J], () => Ls);
|
|
4267
|
+
ae([J], () => Ms);
|
|
4268
|
+
ae([J, ue], () => Ns);
|
|
4269
|
+
window.emWidgets = { topic: Qn };
|
|
4270
|
+
const sr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4271
|
+
function Fs({ withLocale: e, translations: t }) {
|
|
4258
4272
|
J.subscribe((r) => {
|
|
4259
4273
|
r == null && (ue.set(t), J.set(e));
|
|
4260
4274
|
});
|
|
4261
4275
|
}
|
|
4262
|
-
function
|
|
4263
|
-
|
|
4276
|
+
function or(e, t) {
|
|
4277
|
+
$r(e, t);
|
|
4264
4278
|
}
|
|
4265
|
-
function
|
|
4279
|
+
function Us(e) {
|
|
4266
4280
|
J.set(e);
|
|
4267
4281
|
}
|
|
4268
|
-
const
|
|
4282
|
+
const ar = {
|
|
4269
4283
|
en: {
|
|
4270
4284
|
goToLoginButton: "Go To Login",
|
|
4271
4285
|
error: "We encountered an issue. Please go to Login to receive your SMS code."
|
|
@@ -4311,13 +4325,13 @@ const sr = {
|
|
|
4311
4325
|
error: "We encountered an issue. Please go to Login to receive your SMS code."
|
|
4312
4326
|
}
|
|
4313
4327
|
};
|
|
4314
|
-
function
|
|
4328
|
+
function Gs(e, t) {
|
|
4315
4329
|
if (e) {
|
|
4316
4330
|
const r = document.createElement("style");
|
|
4317
4331
|
r.innerHTML = t, e.appendChild(r);
|
|
4318
4332
|
}
|
|
4319
4333
|
}
|
|
4320
|
-
function
|
|
4334
|
+
function ks(e, t) {
|
|
4321
4335
|
const r = new URL(t);
|
|
4322
4336
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4323
4337
|
const i = document.createElement("style");
|
|
@@ -4326,7 +4340,7 @@ function Us(e, t) {
|
|
|
4326
4340
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4327
4341
|
});
|
|
4328
4342
|
}
|
|
4329
|
-
function
|
|
4343
|
+
function js(e, t, r) {
|
|
4330
4344
|
if (window.emMessageBus) {
|
|
4331
4345
|
const n = document.createElement("style");
|
|
4332
4346
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4346,7 +4360,7 @@ if (typeof window != "undefined") {
|
|
|
4346
4360
|
}
|
|
4347
4361
|
};
|
|
4348
4362
|
};
|
|
4349
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-
|
|
4363
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-ChAgwOVE.js").then(({ default: t }) => {
|
|
4350
4364
|
!customElements.get("general-player-register-form-step1") && customElements.define("general-player-register-form-step1", t.element);
|
|
4351
4365
|
});
|
|
4352
4366
|
}
|
|
@@ -4362,7 +4376,7 @@ if (typeof window != "undefined") {
|
|
|
4362
4376
|
}
|
|
4363
4377
|
};
|
|
4364
4378
|
};
|
|
4365
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-
|
|
4379
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-wd8bqKAA.js").then(({ default: t }) => {
|
|
4366
4380
|
!customElements.get("general-player-register-form-step2") && customElements.define("general-player-register-form-step2", t.element);
|
|
4367
4381
|
});
|
|
4368
4382
|
}
|
|
@@ -4378,7 +4392,7 @@ if (typeof window != "undefined") {
|
|
|
4378
4392
|
}
|
|
4379
4393
|
};
|
|
4380
4394
|
};
|
|
4381
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-
|
|
4395
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-CakxX22B.js").then(({ default: t }) => {
|
|
4382
4396
|
!customElements.get("general-player-register-form-step3") && customElements.define("general-player-register-form-step3", t.element);
|
|
4383
4397
|
});
|
|
4384
4398
|
}
|
|
@@ -4394,70 +4408,70 @@ if (typeof window != "undefined") {
|
|
|
4394
4408
|
}
|
|
4395
4409
|
};
|
|
4396
4410
|
};
|
|
4397
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4411
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-BLNcr3Lk.js").then(({ default: t }) => {
|
|
4398
4412
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4399
4413
|
});
|
|
4400
4414
|
}
|
|
4401
|
-
function
|
|
4402
|
-
|
|
4415
|
+
function $s(e) {
|
|
4416
|
+
dn(e, "svelte-2vt9w2", ".RegisterFormWrapper{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));border-radius:15px}.RegisterFormContainer{padding:25px;height:404px;overflow-y:auto;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-50, #F9F8F8);scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:40px 20px;height:65vh;overflow-y:scroll}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F9F8F8)}.RegisterFormContainer::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.RegisterSteps{display:flex;gap:10px;padding:20px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6)}.RegisterStepDashColor{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.RegisterStepNext{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;margin-top:24px}.SMSErrorText{height:80%;display:flex;align-items:center}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:24px;font-weight:var(--emw--font-weight-normal, 400);text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:19px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:22px}.RegisterConfirmationGoToLogin{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));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}");
|
|
4403
4417
|
}
|
|
4404
|
-
function
|
|
4418
|
+
function Vs(e) {
|
|
4405
4419
|
let t, r, n, i, s, o, a, l = (
|
|
4406
4420
|
/*showRegisterStepOne*/
|
|
4407
4421
|
(e[18] || /*showRegisterStepTwo*/
|
|
4408
4422
|
e[19] || /*showRegisterStepThree*/
|
|
4409
|
-
e[20]) &&
|
|
4423
|
+
e[20]) && ur(e)
|
|
4410
4424
|
), u = (
|
|
4411
4425
|
/*showRegisterStepOne*/
|
|
4412
|
-
e[18] &&
|
|
4426
|
+
e[18] && lr(e)
|
|
4413
4427
|
), h = (
|
|
4414
4428
|
/*showRegisterStepTwo*/
|
|
4415
|
-
e[19] &&
|
|
4429
|
+
e[19] && hr(e)
|
|
4416
4430
|
), c = (
|
|
4417
4431
|
/*showRegisterStepThree*/
|
|
4418
|
-
e[20] &&
|
|
4432
|
+
e[20] && fr(e)
|
|
4419
4433
|
);
|
|
4420
|
-
function
|
|
4434
|
+
function p(b, S) {
|
|
4421
4435
|
if (
|
|
4422
4436
|
/*smsverification*/
|
|
4423
4437
|
b[7] && /*showSmsVerification*/
|
|
4424
4438
|
b[21]
|
|
4425
4439
|
)
|
|
4426
|
-
return
|
|
4440
|
+
return zs;
|
|
4427
4441
|
if (
|
|
4428
4442
|
/*smsSendApiFailed*/
|
|
4429
4443
|
b[31]
|
|
4430
4444
|
)
|
|
4431
|
-
return
|
|
4445
|
+
return Xs;
|
|
4432
4446
|
}
|
|
4433
|
-
let y =
|
|
4447
|
+
let y = p(e), g = y && y(e), d = (
|
|
4434
4448
|
/*showConfirmation*/
|
|
4435
|
-
e[22] &&
|
|
4449
|
+
e[22] && cr(e)
|
|
4436
4450
|
);
|
|
4437
4451
|
return {
|
|
4438
4452
|
c() {
|
|
4439
|
-
t = B("div"), r = B("div"), l && l.c(), n = G(), u && u.c(), i = G(), h && h.c(), s = G(), c && c.c(), o = G(), g && g.c(), a = G(),
|
|
4453
|
+
t = B("div"), r = B("div"), l && l.c(), n = G(), u && u.c(), i = G(), h && h.c(), s = G(), c && c.c(), o = G(), g && g.c(), a = G(), d && d.c(), x(r, "class", "RegisterFormContainer " + /*isMobile*/
|
|
4440
4454
|
(e[35] ? "RegisterFormContainerMobile" : "")), x(t, "class", "RegisterFormWrapper");
|
|
4441
4455
|
},
|
|
4442
4456
|
m(b, S) {
|
|
4443
|
-
U(b, t, S), E(t, r), l && l.m(r, null), E(r, n), u && u.m(r, null), E(r, i), h && h.m(r, null), E(r, s), c && c.m(r, null), E(r, o), g && g.m(r, null), E(r, a),
|
|
4457
|
+
U(b, t, S), E(t, r), l && l.m(r, null), E(r, n), u && u.m(r, null), E(r, i), h && h.m(r, null), E(r, s), c && c.m(r, null), E(r, o), g && g.m(r, null), E(r, a), d && d.m(r, null);
|
|
4444
4458
|
},
|
|
4445
4459
|
p(b, S) {
|
|
4446
4460
|
/*showRegisterStepOne*/
|
|
4447
4461
|
b[18] || /*showRegisterStepTwo*/
|
|
4448
4462
|
b[19] || /*showRegisterStepThree*/
|
|
4449
|
-
b[20] ? l ? l.p(b, S) : (l =
|
|
4450
|
-
b[18] ? u ? u.p(b, S) : (u =
|
|
4451
|
-
b[19] ? h ? h.p(b, S) : (h =
|
|
4452
|
-
b[20] ? c ? c.p(b, S) : (c =
|
|
4453
|
-
b[22] ?
|
|
4463
|
+
b[20] ? l ? l.p(b, S) : (l = ur(b), l.c(), l.m(r, n)) : l && (l.d(1), l = null), /*showRegisterStepOne*/
|
|
4464
|
+
b[18] ? u ? u.p(b, S) : (u = lr(b), u.c(), u.m(r, i)) : u && (u.d(1), u = null), /*showRegisterStepTwo*/
|
|
4465
|
+
b[19] ? h ? h.p(b, S) : (h = hr(b), h.c(), h.m(r, s)) : h && (h.d(1), h = null), /*showRegisterStepThree*/
|
|
4466
|
+
b[20] ? c ? c.p(b, S) : (c = fr(b), c.c(), c.m(r, o)) : c && (c.d(1), c = null), y === (y = p(b)) && g ? g.p(b, S) : (g && g.d(1), g = y && y(b), g && (g.c(), g.m(r, a))), /*showConfirmation*/
|
|
4467
|
+
b[22] ? d ? d.p(b, S) : (d = cr(b), d.c(), d.m(r, null)) : d && (d.d(1), d = null);
|
|
4454
4468
|
},
|
|
4455
4469
|
d(b) {
|
|
4456
|
-
b &&
|
|
4470
|
+
b && N(t), l && l.d(), u && u.d(), h && h.d(), c && c.d(), g && g.d(), d && d.d();
|
|
4457
4471
|
}
|
|
4458
4472
|
};
|
|
4459
4473
|
}
|
|
4460
|
-
function
|
|
4474
|
+
function ur(e) {
|
|
4461
4475
|
let t, r, n, i, s, o, a, l, u;
|
|
4462
4476
|
return {
|
|
4463
4477
|
c() {
|
|
@@ -4495,11 +4509,11 @@ function or(e) {
|
|
|
4495
4509
|
(h[20] ? "RegisterStepDashColor" : "")) && x(l, "class", u);
|
|
4496
4510
|
},
|
|
4497
4511
|
d(h) {
|
|
4498
|
-
h &&
|
|
4512
|
+
h && N(t), e[41](null);
|
|
4499
4513
|
}
|
|
4500
4514
|
};
|
|
4501
4515
|
}
|
|
4502
|
-
function
|
|
4516
|
+
function lr(e) {
|
|
4503
4517
|
let t, r;
|
|
4504
4518
|
return {
|
|
4505
4519
|
c() {
|
|
@@ -4622,11 +4636,11 @@ function ar(e) {
|
|
|
4622
4636
|
);
|
|
4623
4637
|
},
|
|
4624
4638
|
d(n) {
|
|
4625
|
-
n &&
|
|
4639
|
+
n && N(t);
|
|
4626
4640
|
}
|
|
4627
4641
|
};
|
|
4628
4642
|
}
|
|
4629
|
-
function
|
|
4643
|
+
function hr(e) {
|
|
4630
4644
|
let t, r;
|
|
4631
4645
|
return {
|
|
4632
4646
|
c() {
|
|
@@ -4749,11 +4763,11 @@ function ur(e) {
|
|
|
4749
4763
|
);
|
|
4750
4764
|
},
|
|
4751
4765
|
d(n) {
|
|
4752
|
-
n &&
|
|
4766
|
+
n && N(t);
|
|
4753
4767
|
}
|
|
4754
4768
|
};
|
|
4755
4769
|
}
|
|
4756
|
-
function
|
|
4770
|
+
function fr(e) {
|
|
4757
4771
|
let t, r;
|
|
4758
4772
|
return {
|
|
4759
4773
|
c() {
|
|
@@ -4909,11 +4923,11 @@ function lr(e) {
|
|
|
4909
4923
|
);
|
|
4910
4924
|
},
|
|
4911
4925
|
d(n) {
|
|
4912
|
-
n &&
|
|
4926
|
+
n && N(t);
|
|
4913
4927
|
}
|
|
4914
4928
|
};
|
|
4915
4929
|
}
|
|
4916
|
-
function
|
|
4930
|
+
function Xs(e) {
|
|
4917
4931
|
let t, r = (
|
|
4918
4932
|
/*$_*/
|
|
4919
4933
|
e[34]("error") + ""
|
|
@@ -4931,22 +4945,22 @@ function $s(e) {
|
|
|
4931
4945
|
i[34]("error") + "") && ee(n, r);
|
|
4932
4946
|
},
|
|
4933
4947
|
d(i) {
|
|
4934
|
-
i &&
|
|
4948
|
+
i && N(t);
|
|
4935
4949
|
}
|
|
4936
4950
|
};
|
|
4937
4951
|
}
|
|
4938
|
-
function
|
|
4952
|
+
function zs(e) {
|
|
4939
4953
|
let t;
|
|
4940
4954
|
function r(s, o) {
|
|
4941
4955
|
return (
|
|
4942
4956
|
/*smsSendApiFailed*/
|
|
4943
|
-
s[31] ?
|
|
4957
|
+
s[31] ? Ws : Zs
|
|
4944
4958
|
);
|
|
4945
4959
|
}
|
|
4946
4960
|
let n = r(e), i = n(e);
|
|
4947
4961
|
return {
|
|
4948
4962
|
c() {
|
|
4949
|
-
i.c(), t =
|
|
4963
|
+
i.c(), t = yn();
|
|
4950
4964
|
},
|
|
4951
4965
|
m(s, o) {
|
|
4952
4966
|
i.m(s, o), U(s, t, o);
|
|
@@ -4955,11 +4969,11 @@ function Vs(e) {
|
|
|
4955
4969
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t.parentNode, t)));
|
|
4956
4970
|
},
|
|
4957
4971
|
d(s) {
|
|
4958
|
-
s &&
|
|
4972
|
+
s && N(t), i.d(s);
|
|
4959
4973
|
}
|
|
4960
4974
|
};
|
|
4961
4975
|
}
|
|
4962
|
-
function
|
|
4976
|
+
function Ws(e) {
|
|
4963
4977
|
let t, r = (
|
|
4964
4978
|
/*$_*/
|
|
4965
4979
|
e[34]("error") + ""
|
|
@@ -4977,11 +4991,11 @@ function Xs(e) {
|
|
|
4977
4991
|
i[34]("error") + "") && ee(n, r);
|
|
4978
4992
|
},
|
|
4979
4993
|
d(i) {
|
|
4980
|
-
i &&
|
|
4994
|
+
i && N(t);
|
|
4981
4995
|
}
|
|
4982
4996
|
};
|
|
4983
4997
|
}
|
|
4984
|
-
function
|
|
4998
|
+
function Zs(e) {
|
|
4985
4999
|
let t;
|
|
4986
5000
|
return {
|
|
4987
5001
|
c() {
|
|
@@ -5082,30 +5096,30 @@ function Ws(e) {
|
|
|
5082
5096
|
);
|
|
5083
5097
|
},
|
|
5084
5098
|
d(r) {
|
|
5085
|
-
r &&
|
|
5099
|
+
r && N(t);
|
|
5086
5100
|
}
|
|
5087
5101
|
};
|
|
5088
5102
|
}
|
|
5089
|
-
function
|
|
5090
|
-
let t, r, n, i, s, o, a, l, u, h, c,
|
|
5103
|
+
function cr(e) {
|
|
5104
|
+
let t, r, n, i, s, o, a, l, u, h, c, p, y, g, d, b, S, O = (
|
|
5091
5105
|
/*$_*/
|
|
5092
5106
|
e[34]("goToLoginButton") + ""
|
|
5093
|
-
), A, L,
|
|
5107
|
+
), A, L, M;
|
|
5094
5108
|
return {
|
|
5095
5109
|
c() {
|
|
5096
5110
|
t = B("div"), r = Te("svg"), n = Te("defs"), i = Te("style"), s = V(".a{fill:#var(--emw--color-valid, var(--emw--color-green, #48952a));}"), o = Te("path"), a = G(), l = B("h2"), u = V(
|
|
5097
5111
|
/*accountCreationTitle*/
|
|
5098
5112
|
e[23]
|
|
5099
|
-
), h = G(), c = B("p"),
|
|
5113
|
+
), h = G(), c = B("p"), p = V(
|
|
5100
5114
|
/*accountCreationSubTitle*/
|
|
5101
5115
|
e[24]
|
|
5102
|
-
), y = G(), g = B("p"),
|
|
5116
|
+
), y = G(), g = B("p"), d = V(
|
|
5103
5117
|
/*accountCreationMessage*/
|
|
5104
5118
|
e[25]
|
|
5105
5119
|
), b = G(), S = B("button"), A = V(O), x(o, "class", "a"), x(o, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"), x(r, "xmlns", "http://www.w3.org/2000/svg"), x(r, "viewBox", "0 0 73.95 51"), x(l, "class", "RegisterConfirmationTitle"), x(c, "class", "RegisterConfirmationSubtitle"), x(g, "class", "RegisterConfirmationNote"), x(S, "class", "RegisterConfirmationGoToLogin"), x(t, "class", "RegisterConfirmation");
|
|
5106
5120
|
},
|
|
5107
5121
|
m(C, D) {
|
|
5108
|
-
U(C, t, D), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, l), E(l, u), E(t, h), E(t, c), E(c,
|
|
5122
|
+
U(C, t, D), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, l), E(l, u), E(t, h), E(t, c), E(c, p), E(t, y), E(t, g), E(g, d), E(t, b), E(t, S), E(S, A), L || (M = vn(
|
|
5109
5123
|
S,
|
|
5110
5124
|
"click",
|
|
5111
5125
|
/*switchToLogin*/
|
|
@@ -5120,12 +5134,12 @@ function hr(e) {
|
|
|
5120
5134
|
C[23]
|
|
5121
5135
|
), D[0] & /*accountCreationSubTitle*/
|
|
5122
5136
|
16777216 && ee(
|
|
5123
|
-
|
|
5137
|
+
p,
|
|
5124
5138
|
/*accountCreationSubTitle*/
|
|
5125
5139
|
C[24]
|
|
5126
5140
|
), D[0] & /*accountCreationMessage*/
|
|
5127
5141
|
33554432 && ee(
|
|
5128
|
-
|
|
5142
|
+
d,
|
|
5129
5143
|
/*accountCreationMessage*/
|
|
5130
5144
|
C[25]
|
|
5131
5145
|
), D[1] & /*$_*/
|
|
@@ -5133,14 +5147,14 @@ function hr(e) {
|
|
|
5133
5147
|
C[34]("goToLoginButton") + "") && ee(A, O);
|
|
5134
5148
|
},
|
|
5135
5149
|
d(C) {
|
|
5136
|
-
C &&
|
|
5150
|
+
C && N(t), L = !1, M();
|
|
5137
5151
|
}
|
|
5138
5152
|
};
|
|
5139
5153
|
}
|
|
5140
|
-
function
|
|
5154
|
+
function Js(e) {
|
|
5141
5155
|
let t;
|
|
5142
5156
|
function r(s, o) {
|
|
5143
|
-
return
|
|
5157
|
+
return Vs;
|
|
5144
5158
|
}
|
|
5145
5159
|
let i = r()(e);
|
|
5146
5160
|
return {
|
|
@@ -5156,48 +5170,48 @@ function zs(e) {
|
|
|
5156
5170
|
i: k,
|
|
5157
5171
|
o: k,
|
|
5158
5172
|
d(s) {
|
|
5159
|
-
s &&
|
|
5173
|
+
s && N(t), i.d(), e[42](null);
|
|
5160
5174
|
}
|
|
5161
5175
|
};
|
|
5162
5176
|
}
|
|
5163
|
-
let
|
|
5164
|
-
function
|
|
5177
|
+
let qs = "Please use this code {0} to activate your account";
|
|
5178
|
+
function Qs(e, t, r) {
|
|
5165
5179
|
let n;
|
|
5166
|
-
|
|
5167
|
-
let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: l = "" } = t, { captchakey: u = "" } = t, { lang: h = "en" } = t, { licenseyears: c = "" } = t, { disabledfields:
|
|
5168
|
-
|
|
5169
|
-
const
|
|
5180
|
+
pn(e, Ds, (f) => r(34, n = f));
|
|
5181
|
+
let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: l = "" } = t, { captchakey: u = "" } = t, { lang: h = "en" } = t, { licenseyears: c = "" } = t, { disabledfields: p = "" } = t, { defaultoptions: y = "" } = t, { smsverification: g = "false" } = t, { simplepasswordvalidation: d = "false" } = t, { userroles: b = "" } = t, { mbsource: S } = t, { clientstyling: O = "" } = t, { clientstylingurl: A = "" } = t, { translationurl: L = "" } = t, { savecredentials: M = "" } = t, { custominputtextswitch: C = "false" } = t, { personalidlength: D = "13" } = t, j, vt = "", Ge = !0, he = !1, ye = !1, ke = !1, je = !1, ve, _t = !1, Et = "", wt = "", St = "", xt = window.navigator.userAgent, Jr = sr(xt) !== "PC", $ = {}, Tt = !1, Ht = !1, $e = "false", Bt = "false", Pt = "false", At = "false", Ot = "", Ct, _e = !1, It, Ee;
|
|
5182
|
+
Fs({ withLocale: "en", translations: {} });
|
|
5183
|
+
const qr = () => {
|
|
5170
5184
|
fetch(L).then((H) => H.json()).then((H) => {
|
|
5171
5185
|
Object.keys(H).forEach((I) => {
|
|
5172
|
-
|
|
5186
|
+
or(I, H[I]);
|
|
5173
5187
|
});
|
|
5174
5188
|
}).catch((H) => {
|
|
5175
5189
|
console.log(H);
|
|
5176
5190
|
});
|
|
5177
5191
|
};
|
|
5178
|
-
Object.keys(
|
|
5179
|
-
|
|
5192
|
+
Object.keys(ar).forEach((f) => {
|
|
5193
|
+
or(f, ar[f]);
|
|
5180
5194
|
});
|
|
5181
|
-
const
|
|
5195
|
+
const Qr = () => {
|
|
5182
5196
|
fetch(`${i}/v1/player/consentRequirements`).then((f) => f.json()).then((f) => {
|
|
5183
5197
|
f.items.length > 0 ? (r(26, $e = "true"), f.items.forEach((H) => {
|
|
5184
5198
|
switch (H.tagCode) {
|
|
5185
5199
|
case "termsandconditions":
|
|
5186
|
-
r(27,
|
|
5200
|
+
r(27, Bt = "true");
|
|
5187
5201
|
break;
|
|
5188
5202
|
case "sms":
|
|
5189
|
-
r(28,
|
|
5203
|
+
r(28, Pt = "true");
|
|
5190
5204
|
break;
|
|
5191
5205
|
case "emailmarketing":
|
|
5192
|
-
r(29,
|
|
5206
|
+
r(29, At = "true");
|
|
5193
5207
|
break;
|
|
5194
5208
|
}
|
|
5195
5209
|
})) : r(26, $e = "false");
|
|
5196
5210
|
});
|
|
5197
|
-
},
|
|
5198
|
-
let f = new URL(`${s}/${h}/login-register-content?env=${o}`), H =
|
|
5211
|
+
}, Yr = () => {
|
|
5212
|
+
let f = new URL(`${s}/${h}/login-register-content?env=${o}`), H = sr(xt);
|
|
5199
5213
|
H && (H === "PC" ? f.searchParams.append("device", "dk") : f.searchParams.append("device", "mtWeb")), fetch(f.href).then((I) => I.json()).then((I) => {
|
|
5200
|
-
ve = I.registerData, r(23,
|
|
5214
|
+
ve = I.registerData, r(23, Et = ve.title), r(24, wt = ve.subtitle), r(25, St = ve.content);
|
|
5201
5215
|
}).catch((I) => {
|
|
5202
5216
|
console.error(I);
|
|
5203
5217
|
});
|
|
@@ -5205,19 +5219,19 @@ function Js(e, t, r) {
|
|
|
5205
5219
|
Ee.scrollIntoView();
|
|
5206
5220
|
}, fe = (f) => {
|
|
5207
5221
|
for (const H in f)
|
|
5208
|
-
$[H] = f[H], H === "mobile" && r(32,
|
|
5222
|
+
$[H] = f[H], H === "mobile" && r(32, It = `${f[H].prefix}${f[H].number}`);
|
|
5209
5223
|
$.affiliateMarker = $.promoCode ? $.promoCode : l != null ? l : "";
|
|
5210
|
-
},
|
|
5224
|
+
}, Rt = (f) => {
|
|
5211
5225
|
if (f.data)
|
|
5212
5226
|
switch (f.data.type) {
|
|
5213
5227
|
case "RegisterStepOne":
|
|
5214
|
-
fe(f.data.registerStepOneData), we(), r(18, Ge = !1), r(19, he = !0),
|
|
5228
|
+
fe(f.data.registerStepOneData), we(), r(18, Ge = !1), r(19, he = !0), Tt == !1 ? Tt = !0 : window.postMessage({ type: "StepTwoDataBackup", userData: $ }, window.location.href);
|
|
5215
5229
|
break;
|
|
5216
5230
|
case "RegisterStepTwo":
|
|
5217
|
-
fe(f.data.registerStepTwoData), we(), r(19, he = !1), r(20, ye = !0),
|
|
5231
|
+
fe(f.data.registerStepTwoData), we(), r(19, he = !1), r(20, ye = !0), Ht == !1 ? Ht = !0 : window.postMessage({ type: "StepThreeDataBackup", userData: $ }, window.location.href);
|
|
5218
5232
|
break;
|
|
5219
5233
|
case "RegisterStepThree":
|
|
5220
|
-
fe(f.data.registerStepThreeData),
|
|
5234
|
+
fe(f.data.registerStepThreeData), en($);
|
|
5221
5235
|
break;
|
|
5222
5236
|
case "SmsHasBeenValidated":
|
|
5223
5237
|
r(22, je = !0), r(21, ke = !1);
|
|
@@ -5229,9 +5243,9 @@ function Js(e, t, r) {
|
|
|
5229
5243
|
fe(f.data.registerStepThreeData), we(), r(19, he = !0), r(20, ye = !1), window.postMessage({ type: "StepTwoDataBackup", userData: $ }, window.location.href);
|
|
5230
5244
|
break;
|
|
5231
5245
|
}
|
|
5232
|
-
},
|
|
5246
|
+
}, Kr = () => {
|
|
5233
5247
|
typeof gtag == "function" && gtag("event", "Register", { context: "GeneralPlayerRegisterForm" });
|
|
5234
|
-
},
|
|
5248
|
+
}, en = (f) => Se(this, null, function* () {
|
|
5235
5249
|
f.language = h;
|
|
5236
5250
|
let H = {
|
|
5237
5251
|
method: "PUT",
|
|
@@ -5241,16 +5255,16 @@ function Js(e, t, r) {
|
|
|
5241
5255
|
Accept: "application/json"
|
|
5242
5256
|
},
|
|
5243
5257
|
body: JSON.stringify(f)
|
|
5244
|
-
}, I = yield fetch(`${i}/v1/player/register`, H),
|
|
5245
|
-
I.ok ? (r(20, ye = !1), g === "false" ? r(22, je = !0) : (r(17,
|
|
5258
|
+
}, I = yield fetch(`${i}/v1/player/register`, H), W = yield I.json();
|
|
5259
|
+
I.ok ? (r(20, ye = !1), g === "false" ? r(22, je = !0) : (r(17, vt = W.id), tn(f, W.id)), f.username, f.password, Kr()) : (Ot = W.error.substring(W.error.indexOf("errorMessage") + 13, W.error.length), _t = !0, window.postMessage(
|
|
5246
5260
|
{
|
|
5247
5261
|
type: "ShowRegistrationError",
|
|
5248
|
-
showError:
|
|
5249
|
-
error:
|
|
5262
|
+
showError: _t,
|
|
5263
|
+
error: Ot
|
|
5250
5264
|
},
|
|
5251
5265
|
window.location.href
|
|
5252
5266
|
));
|
|
5253
|
-
}),
|
|
5267
|
+
}), tn = (f, H) => Se(this, null, function* () {
|
|
5254
5268
|
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3)));
|
|
5255
5269
|
try {
|
|
5256
5270
|
const I = yield fetch(`${i}/v1/player/sms/token`, {
|
|
@@ -5261,107 +5275,107 @@ function Js(e, t, r) {
|
|
|
5261
5275
|
},
|
|
5262
5276
|
body: JSON.stringify({
|
|
5263
5277
|
userId: H,
|
|
5264
|
-
messageTemplate:
|
|
5278
|
+
messageTemplate: qs,
|
|
5265
5279
|
destination: `${f.mobile.prefix}${f.mobile.number}`
|
|
5266
5280
|
})
|
|
5267
|
-
}),
|
|
5281
|
+
}), W = yield I.json();
|
|
5268
5282
|
if (I.ok) {
|
|
5269
|
-
r(30,
|
|
5270
|
-
let
|
|
5283
|
+
r(30, Ct = W.id);
|
|
5284
|
+
let Ys = W.maxValidationAttempts;
|
|
5271
5285
|
r(21, ke = !0), r(31, _e = !1);
|
|
5272
5286
|
} else
|
|
5273
5287
|
throw r(31, _e = !0), new Error("Failed to fetch");
|
|
5274
5288
|
} catch (I) {
|
|
5275
5289
|
r(31, _e = !0), console.error(I);
|
|
5276
5290
|
}
|
|
5277
|
-
}),
|
|
5278
|
-
|
|
5279
|
-
},
|
|
5291
|
+
}), rn = () => {
|
|
5292
|
+
p.split(",");
|
|
5293
|
+
}, nn = () => {
|
|
5280
5294
|
window.postMessage({ type: "ToLogin" }, window.location.href);
|
|
5281
|
-
},
|
|
5282
|
-
|
|
5295
|
+
}, sn = () => {
|
|
5296
|
+
Us(h);
|
|
5283
5297
|
};
|
|
5284
|
-
|
|
5285
|
-
window.removeEventListener("message",
|
|
5298
|
+
Sn(() => (window.addEventListener("message", Rt, !1), () => {
|
|
5299
|
+
window.removeEventListener("message", Rt);
|
|
5286
5300
|
}));
|
|
5287
|
-
function
|
|
5301
|
+
function on(f) {
|
|
5288
5302
|
Ie[f ? "unshift" : "push"](() => {
|
|
5289
5303
|
Ee = f, r(33, Ee);
|
|
5290
5304
|
});
|
|
5291
5305
|
}
|
|
5292
|
-
function
|
|
5306
|
+
function an(f) {
|
|
5293
5307
|
Ie[f ? "unshift" : "push"](() => {
|
|
5294
5308
|
j = f, r(16, j);
|
|
5295
5309
|
});
|
|
5296
5310
|
}
|
|
5297
5311
|
return e.$$set = (f) => {
|
|
5298
|
-
"endpoint" in f && r(0, i = f.endpoint), "cmsendpoint" in f && r(37, s = f.cmsendpoint), "env" in f && r(38, o = f.env), "session" in f && r(1, a = f.session), "trackedanalyticsdata" in f && r(39, l = f.trackedanalyticsdata), "captchakey" in f && r(2, u = f.captchakey), "lang" in f && r(3, h = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5,
|
|
5312
|
+
"endpoint" in f && r(0, i = f.endpoint), "cmsendpoint" in f && r(37, s = f.cmsendpoint), "env" in f && r(38, o = f.env), "session" in f && r(1, a = f.session), "trackedanalyticsdata" in f && r(39, l = f.trackedanalyticsdata), "captchakey" in f && r(2, u = f.captchakey), "lang" in f && r(3, h = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5, p = f.disabledfields), "defaultoptions" in f && r(6, y = f.defaultoptions), "smsverification" in f && r(7, g = f.smsverification), "simplepasswordvalidation" in f && r(8, d = f.simplepasswordvalidation), "userroles" in f && r(40, b = f.userroles), "mbsource" in f && r(9, S = f.mbsource), "clientstyling" in f && r(10, O = f.clientstyling), "clientstylingurl" in f && r(11, A = f.clientstylingurl), "translationurl" in f && r(12, L = f.translationurl), "savecredentials" in f && r(13, M = f.savecredentials), "custominputtextswitch" in f && r(14, C = f.custominputtextswitch), "personalidlength" in f && r(15, D = f.personalidlength);
|
|
5299
5313
|
}, e.$$.update = () => {
|
|
5300
5314
|
e.$$.dirty[0] & /*endpoint*/
|
|
5301
|
-
1 && i &&
|
|
5315
|
+
1 && i && Qr(), e.$$.dirty[0] & /*lang*/
|
|
5302
5316
|
8 | e.$$.dirty[1] & /*cmsendpoint, env, userroles*/
|
|
5303
|
-
704 && s && h && o && b &&
|
|
5317
|
+
704 && s && h && o && b && Yr(), e.$$.dirty[0] & /*playerid, session*/
|
|
5304
5318
|
131074, e.$$.dirty[0] & /*lang*/
|
|
5305
|
-
8 && h &&
|
|
5306
|
-
32 &&
|
|
5307
|
-
66560 && O && j &&
|
|
5308
|
-
67584 && A && j &&
|
|
5309
|
-
66048 && S && j &&
|
|
5310
|
-
4096 && L &&
|
|
5319
|
+
8 && h && sn(), e.$$.dirty[0] & /*disabledfields*/
|
|
5320
|
+
32 && p && rn(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5321
|
+
66560 && O && j && Gs(j, O), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5322
|
+
67584 && A && j && ks(j, A), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5323
|
+
66048 && S && j && js(j, `${S}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5324
|
+
4096 && L && qr();
|
|
5311
5325
|
}, [
|
|
5312
5326
|
i,
|
|
5313
5327
|
a,
|
|
5314
5328
|
u,
|
|
5315
5329
|
h,
|
|
5316
5330
|
c,
|
|
5317
|
-
|
|
5331
|
+
p,
|
|
5318
5332
|
y,
|
|
5319
5333
|
g,
|
|
5320
|
-
|
|
5334
|
+
d,
|
|
5321
5335
|
S,
|
|
5322
5336
|
O,
|
|
5323
5337
|
A,
|
|
5324
5338
|
L,
|
|
5325
|
-
|
|
5339
|
+
M,
|
|
5326
5340
|
C,
|
|
5327
5341
|
D,
|
|
5328
5342
|
j,
|
|
5329
|
-
|
|
5343
|
+
vt,
|
|
5330
5344
|
Ge,
|
|
5331
5345
|
he,
|
|
5332
5346
|
ye,
|
|
5333
5347
|
ke,
|
|
5334
5348
|
je,
|
|
5335
|
-
vt,
|
|
5336
|
-
_t,
|
|
5337
5349
|
Et,
|
|
5350
|
+
wt,
|
|
5351
|
+
St,
|
|
5338
5352
|
$e,
|
|
5339
|
-
Tt,
|
|
5340
|
-
Ht,
|
|
5341
5353
|
Bt,
|
|
5354
|
+
Pt,
|
|
5342
5355
|
At,
|
|
5356
|
+
Ct,
|
|
5343
5357
|
_e,
|
|
5344
|
-
|
|
5358
|
+
It,
|
|
5345
5359
|
Ee,
|
|
5346
5360
|
n,
|
|
5347
|
-
|
|
5348
|
-
|
|
5361
|
+
Jr,
|
|
5362
|
+
nn,
|
|
5349
5363
|
s,
|
|
5350
5364
|
o,
|
|
5351
5365
|
l,
|
|
5352
5366
|
b,
|
|
5353
|
-
|
|
5354
|
-
|
|
5367
|
+
on,
|
|
5368
|
+
an
|
|
5355
5369
|
];
|
|
5356
5370
|
}
|
|
5357
|
-
class
|
|
5371
|
+
class Zr extends Mn {
|
|
5358
5372
|
constructor(t) {
|
|
5359
|
-
super(),
|
|
5373
|
+
super(), Rn(
|
|
5360
5374
|
this,
|
|
5361
5375
|
t,
|
|
5376
|
+
Qs,
|
|
5362
5377
|
Js,
|
|
5363
|
-
|
|
5364
|
-
cr,
|
|
5378
|
+
pr,
|
|
5365
5379
|
{
|
|
5366
5380
|
endpoint: 0,
|
|
5367
5381
|
cmsendpoint: 37,
|
|
@@ -5384,7 +5398,7 @@ class Xr extends In {
|
|
|
5384
5398
|
custominputtextswitch: 14,
|
|
5385
5399
|
personalidlength: 15
|
|
5386
5400
|
},
|
|
5387
|
-
|
|
5401
|
+
$s,
|
|
5388
5402
|
[-1, -1, -1]
|
|
5389
5403
|
);
|
|
5390
5404
|
}
|
|
@@ -5509,47 +5523,47 @@ class Xr extends In {
|
|
|
5509
5523
|
this.$$set({ personalidlength: t }), P();
|
|
5510
5524
|
}
|
|
5511
5525
|
}
|
|
5512
|
-
|
|
5513
|
-
const
|
|
5526
|
+
Ln(Zr, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, trackedanalyticsdata: {}, captchakey: {}, lang: {}, licenseyears: {}, disabledfields: {}, defaultoptions: {}, smsverification: {}, simplepasswordvalidation: {}, userroles: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {}, custominputtextswitch: {}, personalidlength: {} }, [], [], !0);
|
|
5527
|
+
const oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5514
5528
|
__proto__: null,
|
|
5515
|
-
default:
|
|
5529
|
+
default: Zr
|
|
5516
5530
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5517
5531
|
export {
|
|
5518
5532
|
J as $,
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5533
|
+
et as A,
|
|
5534
|
+
no as B,
|
|
5535
|
+
so as C,
|
|
5536
|
+
to as D,
|
|
5537
|
+
yn as E,
|
|
5538
|
+
io as F,
|
|
5525
5539
|
ue as G,
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5540
|
+
eo as H,
|
|
5541
|
+
oo as I,
|
|
5542
|
+
Mn as S,
|
|
5543
|
+
$r as a,
|
|
5544
|
+
dn as b,
|
|
5545
|
+
Ln as c,
|
|
5532
5546
|
G as d,
|
|
5533
5547
|
B as e,
|
|
5534
5548
|
P as f,
|
|
5535
5549
|
x as g,
|
|
5536
5550
|
U as h,
|
|
5537
|
-
|
|
5551
|
+
Rn as i,
|
|
5538
5552
|
E as j,
|
|
5539
|
-
|
|
5540
|
-
|
|
5553
|
+
ro as k,
|
|
5554
|
+
vn as l,
|
|
5541
5555
|
ee as m,
|
|
5542
5556
|
k as n,
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5557
|
+
N as o,
|
|
5558
|
+
pn as p,
|
|
5559
|
+
Sn as q,
|
|
5546
5560
|
be as r,
|
|
5547
|
-
|
|
5561
|
+
pr as s,
|
|
5548
5562
|
V as t,
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5563
|
+
ks as u,
|
|
5564
|
+
js as v,
|
|
5565
|
+
Ie as w,
|
|
5552
5566
|
Gs as x,
|
|
5553
5567
|
Te as y,
|
|
5554
|
-
|
|
5568
|
+
Ds as z
|
|
5555
5569
|
};
|