@everymatrix/general-player-register-form-nd 1.87.26 → 1.87.28
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-BhF2Rihw.cjs +18 -0
- package/components/{GeneralPlayerRegisterFormNd-BNU8-hxb.js → GeneralPlayerRegisterFormNd-CK3Fa6yl.js} +788 -761
- package/components/{GeneralPlayerRegisterFormNd-Cmu-fwTG.js → GeneralPlayerRegisterFormNd-WnBA7liO.js} +777 -749
- package/components/{GeneralPlayerRegisterFormStep1-dUJTbKi2.js → GeneralPlayerRegisterFormStep1-DG6hJ08f.js} +345 -345
- package/components/{GeneralPlayerRegisterFormStep1-BXBM8-6A.cjs → GeneralPlayerRegisterFormStep1-DT4cS4jc.cjs} +1 -1
- package/components/{GeneralPlayerRegisterFormStep1-IbpEhuja.js → GeneralPlayerRegisterFormStep1-PzrEam7-.js} +348 -348
- package/components/{GeneralPlayerRegisterFormStep2-jv0Zt0Bp.js → GeneralPlayerRegisterFormStep2-CHcSLQn3.js} +261 -261
- package/components/GeneralPlayerRegisterFormStep2-CORxsvJZ.cjs +2 -0
- package/components/{GeneralPlayerRegisterFormStep2-CIqQiJZi.js → GeneralPlayerRegisterFormStep2-DYNnAPdy.js} +349 -349
- package/components/{GeneralPlayerRegisterFormStep3-CZAxmL2d.js → GeneralPlayerRegisterFormStep3-B3JcFXZ5.js} +390 -390
- package/components/{GeneralPlayerRegisterFormStep3-b1rbNBze.cjs → GeneralPlayerRegisterFormStep3-BlX5I04N.cjs} +1 -1
- package/components/{GeneralPlayerRegisterFormStep3-BY2vb5X8.js → GeneralPlayerRegisterFormStep3-DpwukttH.js} +369 -369
- package/components/GeneralPlayerSmsVerificationForm-Dq4YjQoz.cjs +1 -0
- package/components/{GeneralPlayerSmsVerificationForm-RA_OFoKD.js → GeneralPlayerSmsVerificationForm-Dvhtngnq.js} +175 -175
- package/components/{GeneralPlayerSmsVerificationForm-BXZMmRNO.js → GeneralPlayerSmsVerificationForm-HqH67tUF.js} +167 -167
- 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-AdY-ygv5.cjs +0 -18
- package/components/GeneralPlayerRegisterFormStep2-ClIjcJ8l.cjs +0 -2
- package/components/GeneralPlayerSmsVerificationForm-Bx7lBTRi.cjs +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
function
|
|
1
|
+
function G() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function hr(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
6
|
function Rt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ge(e) {
|
|
10
|
+
e.forEach(hr);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function gt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function fr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let Se;
|
|
19
|
+
function Zs(e, t) {
|
|
20
|
+
return e === t ? !0 : (Se || (Se = document.createElement("a")), Se.href = t, e === Se.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function nn(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function cr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
29
|
-
return
|
|
29
|
+
return G;
|
|
30
30
|
}
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function sn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(cr(t, r));
|
|
36
36
|
}
|
|
37
37
|
function E(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function on(e, t, r) {
|
|
41
|
+
const n = an(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = H("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, un(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function an(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function sn(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function un(e, t) {
|
|
58
58
|
return E(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,14 +67,14 @@ function F(e, t, r) {
|
|
|
67
67
|
function M(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Js(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
74
|
function H(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function xe(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
80
|
function V(e) {
|
|
@@ -83,10 +83,10 @@ function V(e) {
|
|
|
83
83
|
function U() {
|
|
84
84
|
return V(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ln() {
|
|
87
87
|
return V("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function hn(e, t, r, n) {
|
|
90
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
91
91
|
}
|
|
92
92
|
function S(e, t, r) {
|
|
@@ -96,17 +96,17 @@ function p(e, t, r) {
|
|
|
96
96
|
const n = t.toLowerCase();
|
|
97
97
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : S(e, t, r);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function fn(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ee(e, t) {
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function qs(e, t) {
|
|
107
107
|
e.value = t ?? "";
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Qs(e, t, r) {
|
|
110
110
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
111
111
|
const i = e.options[n];
|
|
112
112
|
if (i.__value === t) {
|
|
@@ -116,11 +116,11 @@ function zs(e, t, r) {
|
|
|
116
116
|
}
|
|
117
117
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Ys(e) {
|
|
120
120
|
const t = e.querySelector(":checked");
|
|
121
121
|
return t && t.__value;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function cn(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -129,96 +129,96 @@ function hn(e) {
|
|
|
129
129
|
}
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let pe;
|
|
133
|
+
function ce(e) {
|
|
134
|
+
pe = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
136
|
+
function pn() {
|
|
137
|
+
if (!pe)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
|
-
return
|
|
139
|
+
return pe;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function mn(e) {
|
|
142
|
+
pn().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const Y = [],
|
|
145
|
-
let
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
144
|
+
const Y = [], Ce = [];
|
|
145
|
+
let te = [];
|
|
146
|
+
const Nt = [], dn = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Ke = !1;
|
|
148
|
+
function gn() {
|
|
149
|
+
Ke || (Ke = !0, dn.then(B));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function et(e) {
|
|
152
|
+
te.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const Xe = /* @__PURE__ */ new Set();
|
|
155
155
|
let q = 0;
|
|
156
156
|
function B() {
|
|
157
157
|
if (q !== 0)
|
|
158
158
|
return;
|
|
159
|
-
const e =
|
|
159
|
+
const e = pe;
|
|
160
160
|
do {
|
|
161
161
|
try {
|
|
162
162
|
for (; q < Y.length; ) {
|
|
163
163
|
const t = Y[q];
|
|
164
|
-
q++,
|
|
164
|
+
q++, ce(t), bn(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
167
|
throw Y.length = 0, q = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (
|
|
170
|
-
|
|
171
|
-
for (let t = 0; t <
|
|
172
|
-
const r =
|
|
173
|
-
|
|
169
|
+
for (ce(null), Y.length = 0, q = 0; Ce.length; )
|
|
170
|
+
Ce.pop()();
|
|
171
|
+
for (let t = 0; t < te.length; t += 1) {
|
|
172
|
+
const r = te[t];
|
|
173
|
+
Xe.has(r) || (Xe.add(r), r());
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
te.length = 0;
|
|
176
176
|
} while (Y.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; Nt.length; )
|
|
178
|
+
Nt.pop()();
|
|
179
|
+
Ke = !1, Xe.clear(), ce(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function bn(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
|
-
e.update(),
|
|
183
|
+
e.update(), ge(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function yn(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
|
-
|
|
190
|
+
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
e && e.i && (
|
|
192
|
+
const vn = /* @__PURE__ */ new Set();
|
|
193
|
+
function _n(e, t) {
|
|
194
|
+
e && e.i && (vn.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ks(e) {
|
|
197
197
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function En(e, t, r) {
|
|
200
200
|
const { fragment: n, after_update: i } = e.$$;
|
|
201
|
-
n && n.m(t, r),
|
|
202
|
-
const s = e.$$.on_mount.map(
|
|
203
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
204
|
-
}), i.forEach(
|
|
201
|
+
n && n.m(t, r), et(() => {
|
|
202
|
+
const s = e.$$.on_mount.map(hr).filter(gt);
|
|
203
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ge(s), e.$$.on_mount = [];
|
|
204
|
+
}), i.forEach(et);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function wn(e, t) {
|
|
207
207
|
const r = e.$$;
|
|
208
|
-
r.fragment !== null && (
|
|
208
|
+
r.fragment !== null && (yn(r.after_update), ge(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
e.$$.dirty[0] === -1 && (Y.push(e),
|
|
210
|
+
function Sn(e, t) {
|
|
211
|
+
e.$$.dirty[0] === -1 && (Y.push(e), gn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const h =
|
|
215
|
-
|
|
213
|
+
function xn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
214
|
+
const h = pe;
|
|
215
|
+
ce(e);
|
|
216
216
|
const l = e.$$ = {
|
|
217
217
|
fragment: null,
|
|
218
218
|
ctx: [],
|
|
219
219
|
// state
|
|
220
220
|
props: s,
|
|
221
|
-
update:
|
|
221
|
+
update: G,
|
|
222
222
|
not_equal: i,
|
|
223
223
|
bound: Rt(),
|
|
224
224
|
// lifecycle
|
|
@@ -238,19 +238,19 @@ function wn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
238
238
|
let u = !1;
|
|
239
239
|
if (l.ctx = r ? r(e, t.props || {}, (c, m, ...y) => {
|
|
240
240
|
const g = y.length ? y[0] : m;
|
|
241
|
-
return l.ctx && i(l.ctx[c], l.ctx[c] = g) && (!l.skip_bound && l.bound[c] && l.bound[c](g), u &&
|
|
242
|
-
}) : [], l.update(), u = !0,
|
|
241
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = g) && (!l.skip_bound && l.bound[c] && l.bound[c](g), u && Sn(e, c)), m;
|
|
242
|
+
}) : [], l.update(), u = !0, ge(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
243
243
|
if (t.hydrate) {
|
|
244
|
-
const c =
|
|
244
|
+
const c = fn(t.target);
|
|
245
245
|
l.fragment && l.fragment.l(c), c.forEach(M);
|
|
246
246
|
} else
|
|
247
247
|
l.fragment && l.fragment.c();
|
|
248
|
-
t.intro &&
|
|
248
|
+
t.intro && _n(e.$$.fragment), En(e, t.target, t.anchor), B();
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
ce(h);
|
|
251
251
|
}
|
|
252
|
-
let
|
|
253
|
-
typeof HTMLElement == "function" && (
|
|
252
|
+
let pr;
|
|
253
|
+
typeof HTMLElement == "function" && (pr = class extends HTMLElement {
|
|
254
254
|
/** The Svelte component constructor */
|
|
255
255
|
$$ctor;
|
|
256
256
|
/** Slots */
|
|
@@ -309,12 +309,12 @@ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
|
|
|
309
309
|
};
|
|
310
310
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
311
311
|
return;
|
|
312
|
-
const t = {}, r =
|
|
312
|
+
const t = {}, r = cn(this);
|
|
313
313
|
for (const i of this.$$s)
|
|
314
314
|
i in r && (t[i] = [e(i)]);
|
|
315
315
|
for (const i of this.attributes) {
|
|
316
316
|
const s = this.$$g_p(i.name);
|
|
317
|
-
s in this.$$d || (this.$$d[s] =
|
|
317
|
+
s in this.$$d || (this.$$d[s] = Be(s, i.value, this.$$p_d, "toProp"));
|
|
318
318
|
}
|
|
319
319
|
for (const i in this.$$p_d)
|
|
320
320
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
|
|
|
332
332
|
this.$$r = !0;
|
|
333
333
|
for (const i in this.$$p_d)
|
|
334
334
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
335
|
-
const s =
|
|
335
|
+
const s = Be(
|
|
336
336
|
i,
|
|
337
337
|
this.$$d[i],
|
|
338
338
|
this.$$p_d,
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
|
|
|
354
354
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
355
355
|
// and setting attributes through setAttribute etc, this is helpful
|
|
356
356
|
attributeChangedCallback(e, t, r) {
|
|
357
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
357
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Be(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
358
358
|
}
|
|
359
359
|
disconnectedCallback() {
|
|
360
360
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
|
|
|
367
367
|
) || e;
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
function
|
|
370
|
+
function Be(e, t, r, n) {
|
|
371
371
|
const i = r[e]?.type;
|
|
372
372
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
373
373
|
return t;
|
|
@@ -396,8 +396,8 @@ function He(e, t, r, n) {
|
|
|
396
396
|
return t;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
let o = class extends
|
|
399
|
+
function Tn(e, t, r, n, i, s) {
|
|
400
|
+
let o = class extends pr {
|
|
401
401
|
constructor() {
|
|
402
402
|
super(e, r, i), this.$$p_d = t;
|
|
403
403
|
}
|
|
@@ -413,7 +413,7 @@ function Sn(e, t, r, n, i, s) {
|
|
|
413
413
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
414
414
|
},
|
|
415
415
|
set(h) {
|
|
416
|
-
h =
|
|
416
|
+
h = Be(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
}), n.forEach((a) => {
|
|
@@ -425,7 +425,7 @@ function Sn(e, t, r, n, i, s) {
|
|
|
425
425
|
}), e.element = /** @type {any} */
|
|
426
426
|
o, o;
|
|
427
427
|
}
|
|
428
|
-
class
|
|
428
|
+
class Hn {
|
|
429
429
|
/**
|
|
430
430
|
* ### PRIVATE API
|
|
431
431
|
*
|
|
@@ -444,7 +444,7 @@ class xn {
|
|
|
444
444
|
$$set = void 0;
|
|
445
445
|
/** @returns {void} */
|
|
446
446
|
$destroy() {
|
|
447
|
-
|
|
447
|
+
wn(this, 1), this.$destroy = G;
|
|
448
448
|
}
|
|
449
449
|
/**
|
|
450
450
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -453,8 +453,8 @@ class xn {
|
|
|
453
453
|
* @returns {() => void}
|
|
454
454
|
*/
|
|
455
455
|
$on(t, r) {
|
|
456
|
-
if (!
|
|
457
|
-
return
|
|
456
|
+
if (!gt(r))
|
|
457
|
+
return G;
|
|
458
458
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
459
459
|
return n.push(r), () => {
|
|
460
460
|
const i = n.indexOf(r);
|
|
@@ -466,11 +466,11 @@ class xn {
|
|
|
466
466
|
* @returns {void}
|
|
467
467
|
*/
|
|
468
468
|
$set(t) {
|
|
469
|
-
this.$$set && !
|
|
469
|
+
this.$$set && !nn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
const
|
|
473
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
472
|
+
const Bn = "4";
|
|
473
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
|
|
474
474
|
/*! *****************************************************************************
|
|
475
475
|
Copyright (c) Microsoft Corporation.
|
|
476
476
|
|
|
@@ -485,24 +485,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
485
485
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
486
486
|
PERFORMANCE OF THIS SOFTWARE.
|
|
487
487
|
***************************************************************************** */
|
|
488
|
-
var
|
|
489
|
-
return
|
|
488
|
+
var tt = function(e, t) {
|
|
489
|
+
return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
490
490
|
r.__proto__ = n;
|
|
491
491
|
} || function(r, n) {
|
|
492
492
|
for (var i in n)
|
|
493
493
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
494
|
-
},
|
|
494
|
+
}, tt(e, t);
|
|
495
495
|
};
|
|
496
|
-
function
|
|
496
|
+
function be(e, t) {
|
|
497
497
|
if (typeof t != "function" && t !== null)
|
|
498
498
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
499
|
-
|
|
499
|
+
tt(e, t);
|
|
500
500
|
function r() {
|
|
501
501
|
this.constructor = e;
|
|
502
502
|
}
|
|
503
503
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function rt(e) {
|
|
506
506
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
507
507
|
if (r)
|
|
508
508
|
return r.call(e);
|
|
@@ -514,7 +514,7 @@ function tt(e) {
|
|
|
514
514
|
};
|
|
515
515
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function nt(e, t) {
|
|
518
518
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
519
519
|
if (!r)
|
|
520
520
|
return e;
|
|
@@ -534,7 +534,7 @@ function rt(e, t) {
|
|
|
534
534
|
}
|
|
535
535
|
return s;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function it(e, t, r) {
|
|
538
538
|
if (arguments.length === 2)
|
|
539
539
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
540
540
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
@@ -543,13 +543,13 @@ function nt(e, t, r) {
|
|
|
543
543
|
function X(e) {
|
|
544
544
|
return typeof e == "function";
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function mr(e) {
|
|
547
547
|
var t = function(n) {
|
|
548
548
|
Error.call(n), n.stack = new Error().stack;
|
|
549
549
|
}, r = e(t);
|
|
550
550
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var We = mr(function(e) {
|
|
553
553
|
return function(r) {
|
|
554
554
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
555
555
|
` + r.map(function(n, i) {
|
|
@@ -558,13 +558,13 @@ var Xe = pr(function(e) {
|
|
|
558
558
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
559
559
|
};
|
|
560
560
|
});
|
|
561
|
-
function
|
|
561
|
+
function st(e, t) {
|
|
562
562
|
if (e) {
|
|
563
563
|
var r = e.indexOf(t);
|
|
564
564
|
0 <= r && e.splice(r, 1);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
var
|
|
567
|
+
var Ne = function() {
|
|
568
568
|
function e(t) {
|
|
569
569
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
570
570
|
}
|
|
@@ -576,7 +576,7 @@ var Le = function() {
|
|
|
576
576
|
if (o)
|
|
577
577
|
if (this._parentage = null, Array.isArray(o))
|
|
578
578
|
try {
|
|
579
|
-
for (var a =
|
|
579
|
+
for (var a = rt(o), h = a.next(); !h.done; h = a.next()) {
|
|
580
580
|
var l = h.value;
|
|
581
581
|
l.remove(this);
|
|
582
582
|
}
|
|
@@ -597,18 +597,18 @@ var Le = function() {
|
|
|
597
597
|
try {
|
|
598
598
|
u();
|
|
599
599
|
} catch (d) {
|
|
600
|
-
s = d instanceof
|
|
600
|
+
s = d instanceof We ? d.errors : [d];
|
|
601
601
|
}
|
|
602
602
|
var c = this._finalizers;
|
|
603
603
|
if (c) {
|
|
604
604
|
this._finalizers = null;
|
|
605
605
|
try {
|
|
606
|
-
for (var m =
|
|
606
|
+
for (var m = rt(c), y = m.next(); !y.done; y = m.next()) {
|
|
607
607
|
var g = y.value;
|
|
608
608
|
try {
|
|
609
|
-
|
|
609
|
+
Mt(g);
|
|
610
610
|
} catch (d) {
|
|
611
|
-
s = s ?? [], d instanceof
|
|
611
|
+
s = s ?? [], d instanceof We ? s = it(it([], nt(s)), nt(d.errors)) : s.push(d);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
} catch (d) {
|
|
@@ -623,13 +623,13 @@ var Le = function() {
|
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
if (s)
|
|
626
|
-
throw new
|
|
626
|
+
throw new We(s);
|
|
627
627
|
}
|
|
628
628
|
}, e.prototype.add = function(t) {
|
|
629
629
|
var r;
|
|
630
630
|
if (t && t !== this)
|
|
631
631
|
if (this.closed)
|
|
632
|
-
|
|
632
|
+
Mt(t);
|
|
633
633
|
else {
|
|
634
634
|
if (t instanceof e) {
|
|
635
635
|
if (t.closed || t._hasParent(this))
|
|
@@ -646,52 +646,52 @@ var Le = function() {
|
|
|
646
646
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
647
647
|
}, e.prototype._removeParent = function(t) {
|
|
648
648
|
var r = this._parentage;
|
|
649
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
649
|
+
r === t ? this._parentage = null : Array.isArray(r) && st(r, t);
|
|
650
650
|
}, e.prototype.remove = function(t) {
|
|
651
651
|
var r = this._finalizers;
|
|
652
|
-
r &&
|
|
652
|
+
r && st(r, t), t instanceof e && t._removeParent(this);
|
|
653
653
|
}, e.EMPTY = function() {
|
|
654
654
|
var t = new e();
|
|
655
655
|
return t.closed = !0, t;
|
|
656
656
|
}(), e;
|
|
657
|
-
}(),
|
|
658
|
-
function
|
|
659
|
-
return e instanceof
|
|
657
|
+
}(), dr = Ne.EMPTY;
|
|
658
|
+
function gr(e) {
|
|
659
|
+
return e instanceof Ne || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function Mt(e) {
|
|
662
662
|
X(e) ? e() : e.unsubscribe();
|
|
663
663
|
}
|
|
664
|
-
var
|
|
664
|
+
var An = {
|
|
665
665
|
Promise: void 0
|
|
666
|
-
},
|
|
666
|
+
}, Pn = {
|
|
667
667
|
setTimeout: function(e, t) {
|
|
668
668
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
669
669
|
r[n - 2] = arguments[n];
|
|
670
|
-
return setTimeout.apply(void 0,
|
|
670
|
+
return setTimeout.apply(void 0, it([e, t], nt(r)));
|
|
671
671
|
},
|
|
672
672
|
clearTimeout: function(e) {
|
|
673
673
|
return clearTimeout(e);
|
|
674
674
|
},
|
|
675
675
|
delegate: void 0
|
|
676
676
|
};
|
|
677
|
-
function
|
|
678
|
-
|
|
677
|
+
function On(e) {
|
|
678
|
+
Pn.setTimeout(function() {
|
|
679
679
|
throw e;
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function Dt() {
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Ae(e) {
|
|
685
685
|
e();
|
|
686
686
|
}
|
|
687
|
-
var
|
|
688
|
-
|
|
687
|
+
var br = function(e) {
|
|
688
|
+
be(t, e);
|
|
689
689
|
function t(r) {
|
|
690
690
|
var n = e.call(this) || this;
|
|
691
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
691
|
+
return n.isStopped = !1, r ? (n.destination = r, gr(r) && r.add(n)) : n.destination = Ln, n;
|
|
692
692
|
}
|
|
693
693
|
return t.create = function(r, n, i) {
|
|
694
|
-
return new
|
|
694
|
+
return new ot(r, n, i);
|
|
695
695
|
}, t.prototype.next = function(r) {
|
|
696
696
|
this.isStopped || this._next(r);
|
|
697
697
|
}, t.prototype.error = function(r) {
|
|
@@ -715,7 +715,7 @@ var gr = function(e) {
|
|
|
715
715
|
this.unsubscribe();
|
|
716
716
|
}
|
|
717
717
|
}, t;
|
|
718
|
-
}(
|
|
718
|
+
}(Ne), Cn = function() {
|
|
719
719
|
function e(t) {
|
|
720
720
|
this.partialObserver = t;
|
|
721
721
|
}
|
|
@@ -725,7 +725,7 @@ var gr = function(e) {
|
|
|
725
725
|
try {
|
|
726
726
|
r.next(t);
|
|
727
727
|
} catch (n) {
|
|
728
|
-
|
|
728
|
+
Te(n);
|
|
729
729
|
}
|
|
730
730
|
}, e.prototype.error = function(t) {
|
|
731
731
|
var r = this.partialObserver;
|
|
@@ -733,56 +733,56 @@ var gr = function(e) {
|
|
|
733
733
|
try {
|
|
734
734
|
r.error(t);
|
|
735
735
|
} catch (n) {
|
|
736
|
-
|
|
736
|
+
Te(n);
|
|
737
737
|
}
|
|
738
738
|
else
|
|
739
|
-
|
|
739
|
+
Te(t);
|
|
740
740
|
}, e.prototype.complete = function() {
|
|
741
741
|
var t = this.partialObserver;
|
|
742
742
|
if (t.complete)
|
|
743
743
|
try {
|
|
744
744
|
t.complete();
|
|
745
745
|
} catch (r) {
|
|
746
|
-
|
|
746
|
+
Te(r);
|
|
747
747
|
}
|
|
748
748
|
}, e;
|
|
749
|
-
}(),
|
|
750
|
-
|
|
749
|
+
}(), ot = function(e) {
|
|
750
|
+
be(t, e);
|
|
751
751
|
function t(r, n, i) {
|
|
752
752
|
var s = e.call(this) || this, o;
|
|
753
753
|
return X(r) || !r ? o = {
|
|
754
754
|
next: r ?? void 0,
|
|
755
755
|
error: n ?? void 0,
|
|
756
756
|
complete: i ?? void 0
|
|
757
|
-
} : o = r, s.destination = new
|
|
757
|
+
} : o = r, s.destination = new Cn(o), s;
|
|
758
758
|
}
|
|
759
759
|
return t;
|
|
760
|
-
}(
|
|
761
|
-
function
|
|
762
|
-
|
|
760
|
+
}(br);
|
|
761
|
+
function Te(e) {
|
|
762
|
+
On(e);
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function In(e) {
|
|
765
765
|
throw e;
|
|
766
766
|
}
|
|
767
|
-
var
|
|
767
|
+
var Ln = {
|
|
768
768
|
closed: !0,
|
|
769
|
-
next:
|
|
770
|
-
error:
|
|
771
|
-
complete:
|
|
772
|
-
},
|
|
769
|
+
next: Dt,
|
|
770
|
+
error: In,
|
|
771
|
+
complete: Dt
|
|
772
|
+
}, Rn = function() {
|
|
773
773
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
774
774
|
}();
|
|
775
|
-
function
|
|
775
|
+
function Nn(e) {
|
|
776
776
|
return e;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
return e.length === 0 ?
|
|
778
|
+
function Mn(e) {
|
|
779
|
+
return e.length === 0 ? Nn : e.length === 1 ? e[0] : function(r) {
|
|
780
780
|
return e.reduce(function(n, i) {
|
|
781
781
|
return i(n);
|
|
782
782
|
}, r);
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
var
|
|
785
|
+
var Ft = function() {
|
|
786
786
|
function e(t) {
|
|
787
787
|
t && (this._subscribe = t);
|
|
788
788
|
}
|
|
@@ -790,8 +790,8 @@ var Dt = function() {
|
|
|
790
790
|
var r = new e();
|
|
791
791
|
return r.source = this, r.operator = t, r;
|
|
792
792
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
793
|
-
var i = this, s =
|
|
794
|
-
return
|
|
793
|
+
var i = this, s = Fn(t) ? t : new ot(t, r, n);
|
|
794
|
+
return Ae(function() {
|
|
795
795
|
var o = i, a = o.operator, h = o.source;
|
|
796
796
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
797
797
|
}), s;
|
|
@@ -803,8 +803,8 @@ var Dt = function() {
|
|
|
803
803
|
}
|
|
804
804
|
}, e.prototype.forEach = function(t, r) {
|
|
805
805
|
var n = this;
|
|
806
|
-
return r =
|
|
807
|
-
var o = new
|
|
806
|
+
return r = Ut(r), new r(function(i, s) {
|
|
807
|
+
var o = new ot({
|
|
808
808
|
next: function(a) {
|
|
809
809
|
try {
|
|
810
810
|
t(a);
|
|
@@ -820,15 +820,15 @@ var Dt = function() {
|
|
|
820
820
|
}, e.prototype._subscribe = function(t) {
|
|
821
821
|
var r;
|
|
822
822
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
823
|
-
}, e.prototype[
|
|
823
|
+
}, e.prototype[Rn] = function() {
|
|
824
824
|
return this;
|
|
825
825
|
}, e.prototype.pipe = function() {
|
|
826
826
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
827
827
|
t[r] = arguments[r];
|
|
828
|
-
return
|
|
828
|
+
return Mn(t)(this);
|
|
829
829
|
}, e.prototype.toPromise = function(t) {
|
|
830
830
|
var r = this;
|
|
831
|
-
return t =
|
|
831
|
+
return t = Ut(t), new t(function(n, i) {
|
|
832
832
|
var s;
|
|
833
833
|
r.subscribe(function(o) {
|
|
834
834
|
return s = o;
|
|
@@ -842,40 +842,40 @@ var Dt = function() {
|
|
|
842
842
|
return new e(t);
|
|
843
843
|
}, e;
|
|
844
844
|
}();
|
|
845
|
-
function
|
|
845
|
+
function Ut(e) {
|
|
846
846
|
var t;
|
|
847
|
-
return (t = e ??
|
|
847
|
+
return (t = e ?? An.Promise) !== null && t !== void 0 ? t : Promise;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Dn(e) {
|
|
850
850
|
return e && X(e.next) && X(e.error) && X(e.complete);
|
|
851
851
|
}
|
|
852
|
-
function
|
|
853
|
-
return e && e instanceof
|
|
852
|
+
function Fn(e) {
|
|
853
|
+
return e && e instanceof br || Dn(e) && gr(e);
|
|
854
854
|
}
|
|
855
|
-
var
|
|
855
|
+
var Un = mr(function(e) {
|
|
856
856
|
return function() {
|
|
857
857
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
858
858
|
};
|
|
859
|
-
}),
|
|
860
|
-
|
|
859
|
+
}), yr = function(e) {
|
|
860
|
+
be(t, e);
|
|
861
861
|
function t() {
|
|
862
862
|
var r = e.call(this) || this;
|
|
863
863
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
864
864
|
}
|
|
865
865
|
return t.prototype.lift = function(r) {
|
|
866
|
-
var n = new
|
|
866
|
+
var n = new Gt(this, this);
|
|
867
867
|
return n.operator = r, n;
|
|
868
868
|
}, t.prototype._throwIfClosed = function() {
|
|
869
869
|
if (this.closed)
|
|
870
|
-
throw new
|
|
870
|
+
throw new Un();
|
|
871
871
|
}, t.prototype.next = function(r) {
|
|
872
872
|
var n = this;
|
|
873
|
-
|
|
873
|
+
Ae(function() {
|
|
874
874
|
var i, s;
|
|
875
875
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
876
876
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
877
877
|
try {
|
|
878
|
-
for (var o =
|
|
878
|
+
for (var o = rt(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
879
879
|
var h = a.value;
|
|
880
880
|
h.next(r);
|
|
881
881
|
}
|
|
@@ -893,7 +893,7 @@ var Dn = pr(function(e) {
|
|
|
893
893
|
});
|
|
894
894
|
}, t.prototype.error = function(r) {
|
|
895
895
|
var n = this;
|
|
896
|
-
|
|
896
|
+
Ae(function() {
|
|
897
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
898
898
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
899
899
|
for (var i = n.observers; i.length; )
|
|
@@ -902,7 +902,7 @@ var Dn = pr(function(e) {
|
|
|
902
902
|
});
|
|
903
903
|
}, t.prototype.complete = function() {
|
|
904
904
|
var r = this;
|
|
905
|
-
|
|
905
|
+
Ae(function() {
|
|
906
906
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
907
907
|
r.isStopped = !0;
|
|
908
908
|
for (var n = r.observers; n.length; )
|
|
@@ -924,20 +924,20 @@ var Dn = pr(function(e) {
|
|
|
924
924
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
925
925
|
}, t.prototype._innerSubscribe = function(r) {
|
|
926
926
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
927
|
-
return s || o ?
|
|
928
|
-
n.currentObservers = null,
|
|
927
|
+
return s || o ? dr : (this.currentObservers = null, a.push(r), new Ne(function() {
|
|
928
|
+
n.currentObservers = null, st(a, r);
|
|
929
929
|
}));
|
|
930
930
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
931
931
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
932
932
|
i ? r.error(s) : o && r.complete();
|
|
933
933
|
}, t.prototype.asObservable = function() {
|
|
934
|
-
var r = new
|
|
934
|
+
var r = new Ft();
|
|
935
935
|
return r.source = this, r;
|
|
936
936
|
}, t.create = function(r, n) {
|
|
937
|
-
return new
|
|
937
|
+
return new Gt(r, n);
|
|
938
938
|
}, t;
|
|
939
|
-
}(
|
|
940
|
-
|
|
939
|
+
}(Ft), Gt = function(e) {
|
|
940
|
+
be(t, e);
|
|
941
941
|
function t(r, n) {
|
|
942
942
|
var i = e.call(this) || this;
|
|
943
943
|
return i.destination = r, i.source = n, i;
|
|
@@ -953,17 +953,17 @@ var Dn = pr(function(e) {
|
|
|
953
953
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
954
954
|
}, t.prototype._subscribe = function(r) {
|
|
955
955
|
var n, i;
|
|
956
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
956
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : dr;
|
|
957
957
|
}, t;
|
|
958
|
-
}(
|
|
958
|
+
}(yr), vr = {
|
|
959
959
|
now: function() {
|
|
960
|
-
return (
|
|
960
|
+
return (vr.delegate || Date).now();
|
|
961
961
|
},
|
|
962
962
|
delegate: void 0
|
|
963
|
-
},
|
|
964
|
-
|
|
963
|
+
}, Gn = function(e) {
|
|
964
|
+
be(t, e);
|
|
965
965
|
function t(r, n, i) {
|
|
966
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
966
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = vr);
|
|
967
967
|
var s = e.call(this) || this;
|
|
968
968
|
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;
|
|
969
969
|
}
|
|
@@ -983,24 +983,24 @@ var Dn = pr(function(e) {
|
|
|
983
983
|
l && s.splice(0, l + 1);
|
|
984
984
|
}
|
|
985
985
|
}, t;
|
|
986
|
-
}(
|
|
987
|
-
const kt = [],
|
|
986
|
+
}(yr);
|
|
987
|
+
const kt = [], jt = {}, kn = (e, t = 0) => {
|
|
988
988
|
if (kt.indexOf(e) == -1) {
|
|
989
|
-
const r = new
|
|
990
|
-
|
|
989
|
+
const r = new Gn(t);
|
|
990
|
+
jt[e] = r, kt.push(e);
|
|
991
991
|
}
|
|
992
|
-
return
|
|
992
|
+
return jt[e];
|
|
993
993
|
}, Q = [];
|
|
994
|
-
function
|
|
994
|
+
function jn(e, t) {
|
|
995
995
|
return {
|
|
996
|
-
subscribe:
|
|
996
|
+
subscribe: Me(e, t).subscribe
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function Me(e, t = G) {
|
|
1000
1000
|
let r;
|
|
1001
1001
|
const n = /* @__PURE__ */ new Set();
|
|
1002
1002
|
function i(a) {
|
|
1003
|
-
if (
|
|
1003
|
+
if (fr(e, a) && (e = a, r)) {
|
|
1004
1004
|
const h = !Q.length;
|
|
1005
1005
|
for (const l of n)
|
|
1006
1006
|
l[1](), Q.push(l, e);
|
|
@@ -1014,31 +1014,31 @@ function Ne(e, t = k) {
|
|
|
1014
1014
|
function s(a) {
|
|
1015
1015
|
i(a(e));
|
|
1016
1016
|
}
|
|
1017
|
-
function o(a, h =
|
|
1017
|
+
function o(a, h = G) {
|
|
1018
1018
|
const l = [a, h];
|
|
1019
|
-
return n.add(l), n.size === 1 && (r = t(i, s) ||
|
|
1019
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || G), a(e), () => {
|
|
1020
1020
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
1023
|
return { set: i, update: s, subscribe: o };
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function oe(e, t, r) {
|
|
1026
1026
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1027
1027
|
if (!i.every(Boolean))
|
|
1028
1028
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1029
1029
|
const s = t.length < 2;
|
|
1030
|
-
return
|
|
1030
|
+
return jn(r, (o, a) => {
|
|
1031
1031
|
let h = !1;
|
|
1032
1032
|
const l = [];
|
|
1033
|
-
let u = 0, c =
|
|
1033
|
+
let u = 0, c = G;
|
|
1034
1034
|
const m = () => {
|
|
1035
1035
|
if (u)
|
|
1036
1036
|
return;
|
|
1037
1037
|
c();
|
|
1038
1038
|
const g = t(n ? l[0] : l, o, a);
|
|
1039
|
-
s ? o(g) : c =
|
|
1039
|
+
s ? o(g) : c = gt(g) ? g : G;
|
|
1040
1040
|
}, y = i.map(
|
|
1041
|
-
(g, d) =>
|
|
1041
|
+
(g, d) => cr(
|
|
1042
1042
|
g,
|
|
1043
1043
|
(b) => {
|
|
1044
1044
|
l[d] = b, u &= ~(1 << d), h && m();
|
|
@@ -1049,112 +1049,112 @@ function se(e, t, r) {
|
|
|
1049
1049
|
)
|
|
1050
1050
|
);
|
|
1051
1051
|
return h = !0, m(), function() {
|
|
1052
|
-
|
|
1052
|
+
ge(y), c(), h = !1;
|
|
1053
1053
|
};
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function $n(e) {
|
|
1057
1057
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1058
1058
|
}
|
|
1059
|
-
var
|
|
1060
|
-
return
|
|
1059
|
+
var Vn = function(t) {
|
|
1060
|
+
return Xn(t) && !Wn(t);
|
|
1061
1061
|
};
|
|
1062
|
-
function
|
|
1062
|
+
function Xn(e) {
|
|
1063
1063
|
return !!e && typeof e == "object";
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function Wn(e) {
|
|
1066
1066
|
var t = Object.prototype.toString.call(e);
|
|
1067
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1067
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jn(e);
|
|
1068
1068
|
}
|
|
1069
|
-
var
|
|
1070
|
-
function
|
|
1071
|
-
return e.$$typeof ===
|
|
1069
|
+
var zn = typeof Symbol == "function" && Symbol.for, Zn = zn ? Symbol.for("react.element") : 60103;
|
|
1070
|
+
function Jn(e) {
|
|
1071
|
+
return e.$$typeof === Zn;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function qn(e) {
|
|
1074
1074
|
return Array.isArray(e) ? [] : {};
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1076
|
+
function me(e, t) {
|
|
1077
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(qn(e), e, t) : e;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Qn(e, t, r) {
|
|
1080
1080
|
return e.concat(t).map(function(n) {
|
|
1081
|
-
return
|
|
1081
|
+
return me(n, r);
|
|
1082
1082
|
});
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Yn(e, t) {
|
|
1085
1085
|
if (!t.customMerge)
|
|
1086
|
-
return
|
|
1086
|
+
return re;
|
|
1087
1087
|
var r = t.customMerge(e);
|
|
1088
|
-
return typeof r == "function" ? r :
|
|
1088
|
+
return typeof r == "function" ? r : re;
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function Kn(e) {
|
|
1091
1091
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1092
1092
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1093
1093
|
}) : [];
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return Object.keys(e).concat(
|
|
1095
|
+
function $t(e) {
|
|
1096
|
+
return Object.keys(e).concat(Kn(e));
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function _r(e, t) {
|
|
1099
1099
|
try {
|
|
1100
1100
|
return t in e;
|
|
1101
1101
|
} catch {
|
|
1102
1102
|
return !1;
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return
|
|
1105
|
+
function ei(e, t) {
|
|
1106
|
+
return _r(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function ti(e, t, r) {
|
|
1109
1109
|
var n = {};
|
|
1110
|
-
return r.isMergeableObject(e) &&
|
|
1111
|
-
n[i] =
|
|
1112
|
-
}),
|
|
1113
|
-
|
|
1110
|
+
return r.isMergeableObject(e) && $t(e).forEach(function(i) {
|
|
1111
|
+
n[i] = me(e[i], r);
|
|
1112
|
+
}), $t(t).forEach(function(i) {
|
|
1113
|
+
ei(e, i) || (_r(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yn(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
1114
1114
|
}), n;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1116
|
+
function re(e, t, r) {
|
|
1117
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qn, r.isMergeableObject = r.isMergeableObject || Vn, r.cloneUnlessOtherwiseSpecified = me;
|
|
1118
1118
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1119
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1119
|
+
return s ? n ? r.arrayMerge(e, t, r) : ti(e, t, r) : me(t, r);
|
|
1120
1120
|
}
|
|
1121
|
-
|
|
1121
|
+
re.all = function(t, r) {
|
|
1122
1122
|
if (!Array.isArray(t))
|
|
1123
1123
|
throw new Error("first argument should be an array");
|
|
1124
1124
|
return t.reduce(function(n, i) {
|
|
1125
|
-
return
|
|
1125
|
+
return re(n, i, r);
|
|
1126
1126
|
}, {});
|
|
1127
1127
|
};
|
|
1128
|
-
var
|
|
1129
|
-
const
|
|
1130
|
-
var
|
|
1131
|
-
return
|
|
1128
|
+
var ri = re, ni = ri;
|
|
1129
|
+
const ii = /* @__PURE__ */ $n(ni);
|
|
1130
|
+
var at = function(e, t) {
|
|
1131
|
+
return at = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1132
1132
|
r.__proto__ = n;
|
|
1133
1133
|
} || function(r, n) {
|
|
1134
1134
|
for (var i in n)
|
|
1135
1135
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1136
|
-
},
|
|
1136
|
+
}, at(e, t);
|
|
1137
1137
|
};
|
|
1138
|
-
function
|
|
1138
|
+
function De(e, t) {
|
|
1139
1139
|
if (typeof t != "function" && t !== null)
|
|
1140
1140
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1141
|
-
|
|
1141
|
+
at(e, t);
|
|
1142
1142
|
function r() {
|
|
1143
1143
|
this.constructor = e;
|
|
1144
1144
|
}
|
|
1145
1145
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1146
1146
|
}
|
|
1147
|
-
var
|
|
1148
|
-
return
|
|
1147
|
+
var k = function() {
|
|
1148
|
+
return k = Object.assign || function(t) {
|
|
1149
1149
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1150
1150
|
r = arguments[n];
|
|
1151
1151
|
for (var s in r)
|
|
1152
1152
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1153
1153
|
}
|
|
1154
1154
|
return t;
|
|
1155
|
-
},
|
|
1155
|
+
}, k.apply(this, arguments);
|
|
1156
1156
|
};
|
|
1157
|
-
function
|
|
1157
|
+
function si(e, t) {
|
|
1158
1158
|
var r = {};
|
|
1159
1159
|
for (var n in e)
|
|
1160
1160
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1163,43 +1163,43 @@ function ni(e, t) {
|
|
|
1163
1163
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1164
1164
|
return r;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function ze(e, t, r) {
|
|
1167
1167
|
if (r || arguments.length === 2)
|
|
1168
1168
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1169
1169
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1170
1170
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var r = t && t.cache ? t.cache :
|
|
1172
|
+
function Ze(e, t) {
|
|
1173
|
+
var r = t && t.cache ? t.cache : ci, n = t && t.serializer ? t.serializer : hi, i = t && t.strategy ? t.strategy : ui;
|
|
1174
1174
|
return i(e, {
|
|
1175
1175
|
cache: r,
|
|
1176
1176
|
serializer: n
|
|
1177
1177
|
});
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function oi(e) {
|
|
1180
1180
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
var i =
|
|
1182
|
+
function ai(e, t, r, n) {
|
|
1183
|
+
var i = oi(n) ? n : r(n), s = t.get(i);
|
|
1184
1184
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Er(e, t, r) {
|
|
1187
1187
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1188
1188
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function wr(e, t, r, n, i) {
|
|
1191
1191
|
return r.bind(t, e, n, i);
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var r = e.length === 1 ?
|
|
1195
|
-
return
|
|
1193
|
+
function ui(e, t) {
|
|
1194
|
+
var r = e.length === 1 ? ai : Er;
|
|
1195
|
+
return wr(e, this, r, t.cache.create(), t.serializer);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return
|
|
1197
|
+
function li(e, t) {
|
|
1198
|
+
return wr(e, this, Er, t.cache.create(), t.serializer);
|
|
1199
1199
|
}
|
|
1200
|
-
var
|
|
1200
|
+
var hi = function() {
|
|
1201
1201
|
return JSON.stringify(arguments);
|
|
1202
|
-
},
|
|
1202
|
+
}, fi = (
|
|
1203
1203
|
/** @class */
|
|
1204
1204
|
function() {
|
|
1205
1205
|
function e() {
|
|
@@ -1211,21 +1211,21 @@ var ui = function() {
|
|
|
1211
1211
|
this.cache[t] = r;
|
|
1212
1212
|
}, e;
|
|
1213
1213
|
}()
|
|
1214
|
-
),
|
|
1214
|
+
), ci = {
|
|
1215
1215
|
create: function() {
|
|
1216
|
-
return new
|
|
1216
|
+
return new fi();
|
|
1217
1217
|
}
|
|
1218
|
-
},
|
|
1219
|
-
variadic:
|
|
1220
|
-
},
|
|
1221
|
-
return
|
|
1218
|
+
}, Je = {
|
|
1219
|
+
variadic: li
|
|
1220
|
+
}, Ie = function() {
|
|
1221
|
+
return Ie = Object.assign || function(t) {
|
|
1222
1222
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1223
1223
|
r = arguments[n];
|
|
1224
1224
|
for (var s in r)
|
|
1225
1225
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1226
1226
|
}
|
|
1227
1227
|
return t;
|
|
1228
|
-
},
|
|
1228
|
+
}, Ie.apply(this, arguments);
|
|
1229
1229
|
};
|
|
1230
1230
|
var v;
|
|
1231
1231
|
(function(e) {
|
|
@@ -1235,47 +1235,47 @@ var x;
|
|
|
1235
1235
|
(function(e) {
|
|
1236
1236
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1237
1237
|
})(x || (x = {}));
|
|
1238
|
-
var
|
|
1238
|
+
var ne;
|
|
1239
1239
|
(function(e) {
|
|
1240
1240
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1241
|
-
})(
|
|
1242
|
-
function
|
|
1241
|
+
})(ne || (ne = {}));
|
|
1242
|
+
function Vt(e) {
|
|
1243
1243
|
return e.type === x.literal;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function pi(e) {
|
|
1246
1246
|
return e.type === x.argument;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function Sr(e) {
|
|
1249
1249
|
return e.type === x.number;
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function xr(e) {
|
|
1252
1252
|
return e.type === x.date;
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function Tr(e) {
|
|
1255
1255
|
return e.type === x.time;
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function Hr(e) {
|
|
1258
1258
|
return e.type === x.select;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function Br(e) {
|
|
1261
1261
|
return e.type === x.plural;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function mi(e) {
|
|
1264
1264
|
return e.type === x.pound;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Ar(e) {
|
|
1267
1267
|
return e.type === x.tag;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1269
|
+
function Pr(e) {
|
|
1270
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1272
|
+
function ut(e) {
|
|
1273
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1274
1274
|
}
|
|
1275
|
-
var
|
|
1276
|
-
function
|
|
1275
|
+
var Or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
|
|
1276
|
+
function gi(e) {
|
|
1277
1277
|
var t = {};
|
|
1278
|
-
return e.replace(
|
|
1278
|
+
return e.replace(di, function(r) {
|
|
1279
1279
|
var n = r.length;
|
|
1280
1280
|
switch (r[0]) {
|
|
1281
1281
|
case "G":
|
|
@@ -1374,11 +1374,11 @@ var A = function() {
|
|
|
1374
1374
|
return t;
|
|
1375
1375
|
}, A.apply(this, arguments);
|
|
1376
1376
|
};
|
|
1377
|
-
var
|
|
1378
|
-
function
|
|
1377
|
+
var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1378
|
+
function yi(e) {
|
|
1379
1379
|
if (e.length === 0)
|
|
1380
1380
|
throw new Error("Number skeleton cannot be empty");
|
|
1381
|
-
for (var t = e.split(
|
|
1381
|
+
for (var t = e.split(bi).filter(function(m) {
|
|
1382
1382
|
return m.length > 0;
|
|
1383
1383
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1384
1384
|
var s = i[n], o = s.split("/");
|
|
@@ -1393,17 +1393,17 @@ function gi(e) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
return r;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function vi(e) {
|
|
1397
1397
|
return e.replace(/^(.*?)-/, "");
|
|
1398
1398
|
}
|
|
1399
|
-
var
|
|
1400
|
-
function
|
|
1399
|
+
var Xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cr = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, Ir = /^(0+)$/;
|
|
1400
|
+
function Wt(e) {
|
|
1401
1401
|
var t = {};
|
|
1402
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1402
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cr, function(r, n, i) {
|
|
1403
1403
|
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)), "";
|
|
1404
1404
|
}), t;
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function Lr(e) {
|
|
1407
1407
|
switch (e) {
|
|
1408
1408
|
case "sign-auto":
|
|
1409
1409
|
return {
|
|
@@ -1443,7 +1443,7 @@ function Ir(e) {
|
|
|
1443
1443
|
};
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function Ei(e) {
|
|
1447
1447
|
var t;
|
|
1448
1448
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1449
1449
|
notation: "engineering"
|
|
@@ -1451,17 +1451,17 @@ function vi(e) {
|
|
|
1451
1451
|
notation: "scientific"
|
|
1452
1452
|
}, e = e.slice(1)), t) {
|
|
1453
1453
|
var r = e.slice(0, 2);
|
|
1454
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1454
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ir.test(e))
|
|
1455
1455
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1456
1456
|
t.minimumIntegerDigits = e.length;
|
|
1457
1457
|
}
|
|
1458
1458
|
return t;
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1461
|
-
var t = {}, r =
|
|
1460
|
+
function zt(e) {
|
|
1461
|
+
var t = {}, r = Lr(e);
|
|
1462
1462
|
return r || t;
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function wi(e) {
|
|
1465
1465
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1466
1466
|
var i = n[r];
|
|
1467
1467
|
switch (i.stem) {
|
|
@@ -1485,7 +1485,7 @@ function _i(e) {
|
|
|
1485
1485
|
continue;
|
|
1486
1486
|
case "measure-unit":
|
|
1487
1487
|
case "unit":
|
|
1488
|
-
t.style = "unit", t.unit =
|
|
1488
|
+
t.style = "unit", t.unit = vi(i.options[0]);
|
|
1489
1489
|
continue;
|
|
1490
1490
|
case "compact-short":
|
|
1491
1491
|
case "K":
|
|
@@ -1497,12 +1497,12 @@ function _i(e) {
|
|
|
1497
1497
|
continue;
|
|
1498
1498
|
case "scientific":
|
|
1499
1499
|
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1500
|
-
return A(A({}, h),
|
|
1500
|
+
return A(A({}, h), zt(l));
|
|
1501
1501
|
}, {}));
|
|
1502
1502
|
continue;
|
|
1503
1503
|
case "engineering":
|
|
1504
1504
|
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1505
|
-
return A(A({}, h),
|
|
1505
|
+
return A(A({}, h), zt(l));
|
|
1506
1506
|
}, {}));
|
|
1507
1507
|
continue;
|
|
1508
1508
|
case "notation-simple":
|
|
@@ -1547,7 +1547,7 @@ function _i(e) {
|
|
|
1547
1547
|
case "integer-width":
|
|
1548
1548
|
if (i.options.length > 1)
|
|
1549
1549
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1550
|
-
i.options[0].replace(
|
|
1550
|
+
i.options[0].replace(_i, function(h, l, u, c, m, y) {
|
|
1551
1551
|
if (l)
|
|
1552
1552
|
t.minimumIntegerDigits = u.length;
|
|
1553
1553
|
else {
|
|
@@ -1560,32 +1560,32 @@ function _i(e) {
|
|
|
1560
1560
|
});
|
|
1561
1561
|
continue;
|
|
1562
1562
|
}
|
|
1563
|
-
if (
|
|
1563
|
+
if (Ir.test(i.stem)) {
|
|
1564
1564
|
t.minimumIntegerDigits = i.stem.length;
|
|
1565
1565
|
continue;
|
|
1566
1566
|
}
|
|
1567
|
-
if (
|
|
1567
|
+
if (Xt.test(i.stem)) {
|
|
1568
1568
|
if (i.options.length > 1)
|
|
1569
1569
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1570
|
-
i.stem.replace(
|
|
1570
|
+
i.stem.replace(Xt, function(h, l, u, c, m, y) {
|
|
1571
1571
|
return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1572
1572
|
});
|
|
1573
1573
|
var s = i.options[0];
|
|
1574
|
-
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t),
|
|
1574
|
+
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t), Wt(s)));
|
|
1575
1575
|
continue;
|
|
1576
1576
|
}
|
|
1577
|
-
if (
|
|
1578
|
-
t = A(A({}, t),
|
|
1577
|
+
if (Cr.test(i.stem)) {
|
|
1578
|
+
t = A(A({}, t), Wt(i.stem));
|
|
1579
1579
|
continue;
|
|
1580
1580
|
}
|
|
1581
|
-
var o =
|
|
1581
|
+
var o = Lr(i.stem);
|
|
1582
1582
|
o && (t = A(A({}, t), o));
|
|
1583
|
-
var a =
|
|
1583
|
+
var a = Ei(i.stem);
|
|
1584
1584
|
a && (t = A(A({}, t), a));
|
|
1585
1585
|
}
|
|
1586
1586
|
return t;
|
|
1587
1587
|
}
|
|
1588
|
-
var
|
|
1588
|
+
var He = {
|
|
1589
1589
|
"001": [
|
|
1590
1590
|
"H",
|
|
1591
1591
|
"h"
|
|
@@ -3000,13 +3000,13 @@ var Te = {
|
|
|
3000
3000
|
"h"
|
|
3001
3001
|
]
|
|
3002
3002
|
};
|
|
3003
|
-
function
|
|
3003
|
+
function Si(e, t) {
|
|
3004
3004
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3005
3005
|
var i = e.charAt(n);
|
|
3006
3006
|
if (i === "j") {
|
|
3007
3007
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3008
3008
|
s++, n++;
|
|
3009
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l =
|
|
3009
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = xi(t);
|
|
3010
3010
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
3011
3011
|
r += h;
|
|
3012
3012
|
for (; o-- > 0; )
|
|
@@ -3016,7 +3016,7 @@ function Ei(e, t) {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
return r;
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3019
|
+
function xi(e) {
|
|
3020
3020
|
var t = e.hourCycle;
|
|
3021
3021
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3022
3022
|
e.hourCycles && // @ts-ignore
|
|
@@ -3035,23 +3035,23 @@ function wi(e) {
|
|
|
3035
3035
|
}
|
|
3036
3036
|
var r = e.language, n;
|
|
3037
3037
|
r !== "root" && (n = e.maximize().region);
|
|
3038
|
-
var i =
|
|
3038
|
+
var i = He[n || ""] || He[r || ""] || He["".concat(r, "-001")] || He["001"];
|
|
3039
3039
|
return i[0];
|
|
3040
3040
|
}
|
|
3041
|
-
var
|
|
3041
|
+
var qe, Ti = new RegExp("^".concat(Or.source, "*")), Hi = new RegExp("".concat(Or.source, "*$"));
|
|
3042
3042
|
function _(e, t) {
|
|
3043
3043
|
return { start: e, end: t };
|
|
3044
3044
|
}
|
|
3045
|
-
var
|
|
3045
|
+
var Bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Pi = !!Object.fromEntries, Oi = !!String.prototype.codePointAt, Ci = !!String.prototype.trimStart, Ii = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ri = Li ? Number.isSafeInteger : function(e) {
|
|
3046
3046
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3047
|
-
},
|
|
3047
|
+
}, lt = !0;
|
|
3048
3048
|
try {
|
|
3049
|
-
var
|
|
3050
|
-
|
|
3049
|
+
var Ni = Nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3050
|
+
lt = ((qe = Ni.exec("a")) === null || qe === void 0 ? void 0 : qe[0]) === "a";
|
|
3051
3051
|
} catch {
|
|
3052
|
-
|
|
3052
|
+
lt = !1;
|
|
3053
3053
|
}
|
|
3054
|
-
var
|
|
3054
|
+
var Zt = Bi ? (
|
|
3055
3055
|
// Native
|
|
3056
3056
|
function(t, r, n) {
|
|
3057
3057
|
return t.startsWith(r, n);
|
|
@@ -3061,7 +3061,7 @@ var zt = Ti ? (
|
|
|
3061
3061
|
function(t, r, n) {
|
|
3062
3062
|
return t.slice(n, n + r.length) === r;
|
|
3063
3063
|
}
|
|
3064
|
-
),
|
|
3064
|
+
), ht = Ai ? String.fromCodePoint : (
|
|
3065
3065
|
// IE11
|
|
3066
3066
|
function() {
|
|
3067
3067
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3073,9 +3073,9 @@ var zt = Ti ? (
|
|
|
3073
3073
|
}
|
|
3074
3074
|
return n;
|
|
3075
3075
|
}
|
|
3076
|
-
),
|
|
3076
|
+
), Jt = (
|
|
3077
3077
|
// native
|
|
3078
|
-
|
|
3078
|
+
Pi ? Object.fromEntries : (
|
|
3079
3079
|
// Ponyfill
|
|
3080
3080
|
function(t) {
|
|
3081
3081
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3085,7 +3085,7 @@ var zt = Ti ? (
|
|
|
3085
3085
|
return r;
|
|
3086
3086
|
}
|
|
3087
3087
|
)
|
|
3088
|
-
), Rr =
|
|
3088
|
+
), Rr = Oi ? (
|
|
3089
3089
|
// Native
|
|
3090
3090
|
function(t, r) {
|
|
3091
3091
|
return t.codePointAt(r);
|
|
@@ -3099,7 +3099,7 @@ var zt = Ti ? (
|
|
|
3099
3099
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3100
3100
|
}
|
|
3101
3101
|
}
|
|
3102
|
-
),
|
|
3102
|
+
), Mi = Ci ? (
|
|
3103
3103
|
// Native
|
|
3104
3104
|
function(t) {
|
|
3105
3105
|
return t.trimStart();
|
|
@@ -3107,9 +3107,9 @@ var zt = Ti ? (
|
|
|
3107
3107
|
) : (
|
|
3108
3108
|
// Ponyfill
|
|
3109
3109
|
function(t) {
|
|
3110
|
-
return t.replace(
|
|
3110
|
+
return t.replace(Ti, "");
|
|
3111
3111
|
}
|
|
3112
|
-
),
|
|
3112
|
+
), Di = Ii ? (
|
|
3113
3113
|
// Native
|
|
3114
3114
|
function(t) {
|
|
3115
3115
|
return t.trimEnd();
|
|
@@ -3117,32 +3117,32 @@ var zt = Ti ? (
|
|
|
3117
3117
|
) : (
|
|
3118
3118
|
// Ponyfill
|
|
3119
3119
|
function(t) {
|
|
3120
|
-
return t.replace(
|
|
3120
|
+
return t.replace(Hi, "");
|
|
3121
3121
|
}
|
|
3122
3122
|
);
|
|
3123
|
-
function
|
|
3123
|
+
function Nr(e, t) {
|
|
3124
3124
|
return new RegExp(e, t);
|
|
3125
3125
|
}
|
|
3126
|
-
var
|
|
3127
|
-
if (
|
|
3128
|
-
var
|
|
3129
|
-
|
|
3126
|
+
var ft;
|
|
3127
|
+
if (lt) {
|
|
3128
|
+
var qt = Nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3129
|
+
ft = function(t, r) {
|
|
3130
3130
|
var n;
|
|
3131
|
-
|
|
3132
|
-
var i =
|
|
3131
|
+
qt.lastIndex = r;
|
|
3132
|
+
var i = qt.exec(t);
|
|
3133
3133
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3134
3134
|
};
|
|
3135
3135
|
} else
|
|
3136
|
-
|
|
3136
|
+
ft = function(t, r) {
|
|
3137
3137
|
for (var n = []; ; ) {
|
|
3138
3138
|
var i = Rr(t, r);
|
|
3139
|
-
if (i === void 0 ||
|
|
3139
|
+
if (i === void 0 || Mr(i) || ki(i))
|
|
3140
3140
|
break;
|
|
3141
3141
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3142
3142
|
}
|
|
3143
|
-
return
|
|
3143
|
+
return ht.apply(void 0, n);
|
|
3144
3144
|
};
|
|
3145
|
-
var
|
|
3145
|
+
var Fi = (
|
|
3146
3146
|
/** @class */
|
|
3147
3147
|
function() {
|
|
3148
3148
|
function e(t, r) {
|
|
@@ -3173,7 +3173,7 @@ var Mi = (
|
|
|
3173
3173
|
if (n)
|
|
3174
3174
|
break;
|
|
3175
3175
|
return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3176
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3176
|
+
} else if (s === 60 && !this.ignoreTag && ct(this.peek() || 0)) {
|
|
3177
3177
|
var o = this.parseTag(t, r);
|
|
3178
3178
|
if (o.err)
|
|
3179
3179
|
return o;
|
|
@@ -3206,7 +3206,7 @@ var Mi = (
|
|
|
3206
3206
|
return s;
|
|
3207
3207
|
var o = s.val, a = this.clonePosition();
|
|
3208
3208
|
if (this.bumpIf("</")) {
|
|
3209
|
-
if (this.isEOF() || !
|
|
3209
|
+
if (this.isEOF() || !ct(this.char()))
|
|
3210
3210
|
return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
|
|
3211
3211
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3212
3212
|
return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3224,7 +3224,7 @@ var Mi = (
|
|
|
3224
3224
|
return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
|
|
3225
3225
|
}, e.prototype.parseTagName = function() {
|
|
3226
3226
|
var t = this.offset();
|
|
3227
|
-
for (this.bump(); !this.isEOF() &&
|
|
3227
|
+
for (this.bump(); !this.isEOF() && Gi(this.char()); )
|
|
3228
3228
|
this.bump();
|
|
3229
3229
|
return this.message.slice(t, this.offset());
|
|
3230
3230
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3253,7 +3253,7 @@ var Mi = (
|
|
|
3253
3253
|
};
|
|
3254
3254
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3255
3255
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3256
|
-
!
|
|
3256
|
+
!Ui(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3257
3257
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3258
3258
|
if (this.isEOF() || this.char() !== 39)
|
|
3259
3259
|
return null;
|
|
@@ -3287,12 +3287,12 @@ var Mi = (
|
|
|
3287
3287
|
r.push(n);
|
|
3288
3288
|
this.bump();
|
|
3289
3289
|
}
|
|
3290
|
-
return
|
|
3290
|
+
return ht.apply(void 0, r);
|
|
3291
3291
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3292
3292
|
if (this.isEOF())
|
|
3293
3293
|
return null;
|
|
3294
3294
|
var n = this.char();
|
|
3295
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3295
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ht(n));
|
|
3296
3296
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3297
3297
|
var n = this.clonePosition();
|
|
3298
3298
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3321,7 +3321,7 @@ var Mi = (
|
|
|
3321
3321
|
return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3322
3322
|
}
|
|
3323
3323
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3324
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3324
|
+
var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
|
|
3325
3325
|
this.bumpTo(i);
|
|
3326
3326
|
var s = this.clonePosition(), o = _(t, s);
|
|
3327
3327
|
return { value: n, location: o };
|
|
@@ -3340,7 +3340,7 @@ var Mi = (
|
|
|
3340
3340
|
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3341
3341
|
if (c.err)
|
|
3342
3342
|
return c;
|
|
3343
|
-
var m =
|
|
3343
|
+
var m = Di(c.val);
|
|
3344
3344
|
if (m.length === 0)
|
|
3345
3345
|
return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3346
3346
|
var y = _(u, this.clonePosition());
|
|
@@ -3350,8 +3350,8 @@ var Mi = (
|
|
|
3350
3350
|
if (g.err)
|
|
3351
3351
|
return g;
|
|
3352
3352
|
var d = _(i, this.clonePosition());
|
|
3353
|
-
if (l &&
|
|
3354
|
-
var b =
|
|
3353
|
+
if (l && Zt(l?.style, "::", 0)) {
|
|
3354
|
+
var b = Mi(l.style.slice(2));
|
|
3355
3355
|
if (a === "number") {
|
|
3356
3356
|
var c = this.parseNumberSkeletonFromString(b, l.styleLocation);
|
|
3357
3357
|
return c.err ? c : {
|
|
@@ -3362,12 +3362,12 @@ var Mi = (
|
|
|
3362
3362
|
if (b.length === 0)
|
|
3363
3363
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, d);
|
|
3364
3364
|
var w = b;
|
|
3365
|
-
this.locale && (w =
|
|
3365
|
+
this.locale && (w = Si(b, this.locale));
|
|
3366
3366
|
var m = {
|
|
3367
|
-
type:
|
|
3367
|
+
type: ne.dateTime,
|
|
3368
3368
|
pattern: w,
|
|
3369
3369
|
location: l.styleLocation,
|
|
3370
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3370
|
+
parsedOptions: this.shouldParseSkeletons ? gi(w) : {}
|
|
3371
3371
|
}, O = a === "date" ? x.date : x.time;
|
|
3372
3372
|
return {
|
|
3373
3373
|
val: { type: O, value: n, location: d, style: m },
|
|
@@ -3390,19 +3390,19 @@ var Mi = (
|
|
|
3390
3390
|
case "select": {
|
|
3391
3391
|
var P = this.clonePosition();
|
|
3392
3392
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3393
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(P,
|
|
3393
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(P, Ie({}, P)));
|
|
3394
3394
|
this.bumpSpace();
|
|
3395
|
-
var
|
|
3396
|
-
if (a !== "select" &&
|
|
3395
|
+
var R = this.parseIdentifierIfPossible(), N = 0;
|
|
3396
|
+
if (a !== "select" && R.value === "offset") {
|
|
3397
3397
|
if (!this.bumpIf(":"))
|
|
3398
3398
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
3399
3399
|
this.bumpSpace();
|
|
3400
3400
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3401
3401
|
if (c.err)
|
|
3402
3402
|
return c;
|
|
3403
|
-
this.bumpSpace(),
|
|
3403
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), N = c.val;
|
|
3404
3404
|
}
|
|
3405
|
-
var C = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3405
|
+
var C = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3406
3406
|
if (C.err)
|
|
3407
3407
|
return C;
|
|
3408
3408
|
var g = this.tryParseArgumentClose(i);
|
|
@@ -3413,7 +3413,7 @@ var Mi = (
|
|
|
3413
3413
|
val: {
|
|
3414
3414
|
type: x.select,
|
|
3415
3415
|
value: n,
|
|
3416
|
-
options:
|
|
3416
|
+
options: Jt(C.val),
|
|
3417
3417
|
location: D
|
|
3418
3418
|
},
|
|
3419
3419
|
err: null
|
|
@@ -3421,7 +3421,7 @@ var Mi = (
|
|
|
3421
3421
|
val: {
|
|
3422
3422
|
type: x.plural,
|
|
3423
3423
|
value: n,
|
|
3424
|
-
options:
|
|
3424
|
+
options: Jt(C.val),
|
|
3425
3425
|
offset: N,
|
|
3426
3426
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3427
3427
|
location: D
|
|
@@ -3472,16 +3472,16 @@ var Mi = (
|
|
|
3472
3472
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3473
3473
|
var n = [];
|
|
3474
3474
|
try {
|
|
3475
|
-
n =
|
|
3475
|
+
n = yi(t);
|
|
3476
3476
|
} catch {
|
|
3477
3477
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3478
3478
|
}
|
|
3479
3479
|
return {
|
|
3480
3480
|
val: {
|
|
3481
|
-
type:
|
|
3481
|
+
type: ne.number,
|
|
3482
3482
|
tokens: n,
|
|
3483
3483
|
location: r,
|
|
3484
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3484
|
+
parsedOptions: this.shouldParseSkeletons ? wi(n) : {}
|
|
3485
3485
|
},
|
|
3486
3486
|
err: null
|
|
3487
3487
|
};
|
|
@@ -3529,7 +3529,7 @@ var Mi = (
|
|
|
3529
3529
|
break;
|
|
3530
3530
|
}
|
|
3531
3531
|
var h = _(i, this.clonePosition());
|
|
3532
|
-
return s ? (o *= n,
|
|
3532
|
+
return s ? (o *= n, Ri(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3533
3533
|
}, e.prototype.offset = function() {
|
|
3534
3534
|
return this.position.offset;
|
|
3535
3535
|
}, e.prototype.isEOF = function() {
|
|
@@ -3563,7 +3563,7 @@ var Mi = (
|
|
|
3563
3563
|
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);
|
|
3564
3564
|
}
|
|
3565
3565
|
}, e.prototype.bumpIf = function(t) {
|
|
3566
|
-
if (
|
|
3566
|
+
if (Zt(this.message, t, this.offset())) {
|
|
3567
3567
|
for (var r = 0; r < t.length; r++)
|
|
3568
3568
|
this.bump();
|
|
3569
3569
|
return !0;
|
|
@@ -3585,7 +3585,7 @@ var Mi = (
|
|
|
3585
3585
|
break;
|
|
3586
3586
|
}
|
|
3587
3587
|
}, e.prototype.bumpSpace = function() {
|
|
3588
|
-
for (; !this.isEOF() &&
|
|
3588
|
+
for (; !this.isEOF() && Mr(this.char()); )
|
|
3589
3589
|
this.bump();
|
|
3590
3590
|
}, e.prototype.peek = function() {
|
|
3591
3591
|
if (this.isEOF())
|
|
@@ -3595,47 +3595,47 @@ var Mi = (
|
|
|
3595
3595
|
}, e;
|
|
3596
3596
|
}()
|
|
3597
3597
|
);
|
|
3598
|
-
function
|
|
3598
|
+
function ct(e) {
|
|
3599
3599
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3600
3600
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return
|
|
3601
|
+
function Ui(e) {
|
|
3602
|
+
return ct(e) || e === 47;
|
|
3603
3603
|
}
|
|
3604
|
-
function
|
|
3604
|
+
function Gi(e) {
|
|
3605
3605
|
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;
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function Mr(e) {
|
|
3608
3608
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3610
|
+
function ki(e) {
|
|
3611
3611
|
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;
|
|
3612
3612
|
}
|
|
3613
|
-
function
|
|
3613
|
+
function pt(e) {
|
|
3614
3614
|
e.forEach(function(t) {
|
|
3615
|
-
if (delete t.location,
|
|
3615
|
+
if (delete t.location, Hr(t) || Br(t))
|
|
3616
3616
|
for (var r in t.options)
|
|
3617
|
-
delete t.options[r].location,
|
|
3617
|
+
delete t.options[r].location, pt(t.options[r].value);
|
|
3618
3618
|
else
|
|
3619
|
-
|
|
3619
|
+
Sr(t) && Pr(t.style) || (xr(t) || Tr(t)) && ut(t.style) ? delete t.style.location : Ar(t) && pt(t.children);
|
|
3620
3620
|
});
|
|
3621
3621
|
}
|
|
3622
|
-
function
|
|
3623
|
-
t === void 0 && (t = {}), t =
|
|
3624
|
-
var r = new
|
|
3622
|
+
function ji(e, t) {
|
|
3623
|
+
t === void 0 && (t = {}), t = Ie({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3624
|
+
var r = new Fi(e, t).parse();
|
|
3625
3625
|
if (r.err) {
|
|
3626
3626
|
var n = SyntaxError(v[r.err.kind]);
|
|
3627
3627
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3628
3628
|
}
|
|
3629
|
-
return t?.captureLocation ||
|
|
3629
|
+
return t?.captureLocation || pt(r.val), r.val;
|
|
3630
3630
|
}
|
|
3631
|
-
var
|
|
3631
|
+
var ie;
|
|
3632
3632
|
(function(e) {
|
|
3633
3633
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3634
|
-
})(
|
|
3635
|
-
var
|
|
3634
|
+
})(ie || (ie = {}));
|
|
3635
|
+
var Fe = (
|
|
3636
3636
|
/** @class */
|
|
3637
3637
|
function(e) {
|
|
3638
|
-
|
|
3638
|
+
De(t, e);
|
|
3639
3639
|
function t(r, n, i) {
|
|
3640
3640
|
var s = e.call(this, r) || this;
|
|
3641
3641
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3644,155 +3644,155 @@ var De = (
|
|
|
3644
3644
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3645
3645
|
}, t;
|
|
3646
3646
|
}(Error)
|
|
3647
|
-
),
|
|
3647
|
+
), Qt = (
|
|
3648
3648
|
/** @class */
|
|
3649
3649
|
function(e) {
|
|
3650
|
-
|
|
3650
|
+
De(t, e);
|
|
3651
3651
|
function t(r, n, i, s) {
|
|
3652
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3652
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, s) || this;
|
|
3653
3653
|
}
|
|
3654
3654
|
return t;
|
|
3655
|
-
}(
|
|
3656
|
-
),
|
|
3655
|
+
}(Fe)
|
|
3656
|
+
), $i = (
|
|
3657
3657
|
/** @class */
|
|
3658
3658
|
function(e) {
|
|
3659
|
-
|
|
3659
|
+
De(t, e);
|
|
3660
3660
|
function t(r, n, i) {
|
|
3661
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3661
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3662
3662
|
}
|
|
3663
3663
|
return t;
|
|
3664
|
-
}(
|
|
3665
|
-
),
|
|
3664
|
+
}(Fe)
|
|
3665
|
+
), Vi = (
|
|
3666
3666
|
/** @class */
|
|
3667
3667
|
function(e) {
|
|
3668
|
-
|
|
3668
|
+
De(t, e);
|
|
3669
3669
|
function t(r, n) {
|
|
3670
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3670
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3671
3671
|
}
|
|
3672
3672
|
return t;
|
|
3673
|
-
}(
|
|
3674
|
-
),
|
|
3673
|
+
}(Fe)
|
|
3674
|
+
), L;
|
|
3675
3675
|
(function(e) {
|
|
3676
3676
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3677
|
-
})(
|
|
3678
|
-
function
|
|
3677
|
+
})(L || (L = {}));
|
|
3678
|
+
function Xi(e) {
|
|
3679
3679
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3680
3680
|
var n = t[t.length - 1];
|
|
3681
|
-
return !n || n.type !==
|
|
3681
|
+
return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
|
|
3682
3682
|
}, []);
|
|
3683
3683
|
}
|
|
3684
|
-
function
|
|
3684
|
+
function Wi(e) {
|
|
3685
3685
|
return typeof e == "function";
|
|
3686
3686
|
}
|
|
3687
|
-
function
|
|
3688
|
-
if (e.length === 1 &&
|
|
3687
|
+
function Pe(e, t, r, n, i, s, o) {
|
|
3688
|
+
if (e.length === 1 && Vt(e[0]))
|
|
3689
3689
|
return [
|
|
3690
3690
|
{
|
|
3691
|
-
type:
|
|
3691
|
+
type: L.literal,
|
|
3692
3692
|
value: e[0].value
|
|
3693
3693
|
}
|
|
3694
3694
|
];
|
|
3695
3695
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
|
3696
3696
|
var u = l[h];
|
|
3697
|
-
if (
|
|
3697
|
+
if (Vt(u)) {
|
|
3698
3698
|
a.push({
|
|
3699
|
-
type:
|
|
3699
|
+
type: L.literal,
|
|
3700
3700
|
value: u.value
|
|
3701
3701
|
});
|
|
3702
3702
|
continue;
|
|
3703
3703
|
}
|
|
3704
|
-
if (
|
|
3704
|
+
if (mi(u)) {
|
|
3705
3705
|
typeof s == "number" && a.push({
|
|
3706
|
-
type:
|
|
3706
|
+
type: L.literal,
|
|
3707
3707
|
value: r.getNumberFormat(t).format(s)
|
|
3708
3708
|
});
|
|
3709
3709
|
continue;
|
|
3710
3710
|
}
|
|
3711
3711
|
var c = u.value;
|
|
3712
3712
|
if (!(i && c in i))
|
|
3713
|
-
throw new
|
|
3713
|
+
throw new Vi(c, o);
|
|
3714
3714
|
var m = i[c];
|
|
3715
|
-
if (
|
|
3715
|
+
if (pi(u)) {
|
|
3716
3716
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3717
|
-
type: typeof m == "string" ?
|
|
3717
|
+
type: typeof m == "string" ? L.literal : L.object,
|
|
3718
3718
|
value: m
|
|
3719
3719
|
});
|
|
3720
3720
|
continue;
|
|
3721
3721
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var y = typeof u.style == "string" ? n.date[u.style] :
|
|
3722
|
+
if (xr(u)) {
|
|
3723
|
+
var y = typeof u.style == "string" ? n.date[u.style] : ut(u.style) ? u.style.parsedOptions : void 0;
|
|
3724
3724
|
a.push({
|
|
3725
|
-
type:
|
|
3725
|
+
type: L.literal,
|
|
3726
3726
|
value: r.getDateTimeFormat(t, y).format(m)
|
|
3727
3727
|
});
|
|
3728
3728
|
continue;
|
|
3729
3729
|
}
|
|
3730
|
-
if (
|
|
3731
|
-
var y = typeof u.style == "string" ? n.time[u.style] :
|
|
3730
|
+
if (Tr(u)) {
|
|
3731
|
+
var y = typeof u.style == "string" ? n.time[u.style] : ut(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3732
3732
|
a.push({
|
|
3733
|
-
type:
|
|
3733
|
+
type: L.literal,
|
|
3734
3734
|
value: r.getDateTimeFormat(t, y).format(m)
|
|
3735
3735
|
});
|
|
3736
3736
|
continue;
|
|
3737
3737
|
}
|
|
3738
|
-
if (
|
|
3739
|
-
var y = typeof u.style == "string" ? n.number[u.style] :
|
|
3738
|
+
if (Sr(u)) {
|
|
3739
|
+
var y = typeof u.style == "string" ? n.number[u.style] : Pr(u.style) ? u.style.parsedOptions : void 0;
|
|
3740
3740
|
y && y.scale && (m = m * (y.scale || 1)), a.push({
|
|
3741
|
-
type:
|
|
3741
|
+
type: L.literal,
|
|
3742
3742
|
value: r.getNumberFormat(t, y).format(m)
|
|
3743
3743
|
});
|
|
3744
3744
|
continue;
|
|
3745
3745
|
}
|
|
3746
|
-
if (
|
|
3746
|
+
if (Ar(u)) {
|
|
3747
3747
|
var g = u.children, d = u.value, b = i[d];
|
|
3748
|
-
if (!
|
|
3749
|
-
throw new
|
|
3750
|
-
var w =
|
|
3748
|
+
if (!Wi(b))
|
|
3749
|
+
throw new $i(d, "function", o);
|
|
3750
|
+
var w = Pe(g, t, r, n, i, s), O = b(w.map(function(N) {
|
|
3751
3751
|
return N.value;
|
|
3752
3752
|
}));
|
|
3753
3753
|
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(N) {
|
|
3754
3754
|
return {
|
|
3755
|
-
type: typeof N == "string" ?
|
|
3755
|
+
type: typeof N == "string" ? L.literal : L.object,
|
|
3756
3756
|
value: N
|
|
3757
3757
|
};
|
|
3758
3758
|
}));
|
|
3759
3759
|
}
|
|
3760
|
-
if (
|
|
3760
|
+
if (Hr(u)) {
|
|
3761
3761
|
var P = u.options[m] || u.options.other;
|
|
3762
3762
|
if (!P)
|
|
3763
|
-
throw new
|
|
3764
|
-
a.push.apply(a,
|
|
3763
|
+
throw new Qt(u.value, m, Object.keys(u.options), o);
|
|
3764
|
+
a.push.apply(a, Pe(P.value, t, r, n, i));
|
|
3765
3765
|
continue;
|
|
3766
3766
|
}
|
|
3767
|
-
if (
|
|
3767
|
+
if (Br(u)) {
|
|
3768
3768
|
var P = u.options["=".concat(m)];
|
|
3769
3769
|
if (!P) {
|
|
3770
3770
|
if (!Intl.PluralRules)
|
|
3771
|
-
throw new
|
|
3771
|
+
throw new Fe(`Intl.PluralRules is not available in this environment.
|
|
3772
3772
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3773
|
-
`,
|
|
3774
|
-
var
|
|
3775
|
-
P = u.options[
|
|
3773
|
+
`, ie.MISSING_INTL_API, o);
|
|
3774
|
+
var R = r.getPluralRules(t, { type: u.pluralType }).select(m - (u.offset || 0));
|
|
3775
|
+
P = u.options[R] || u.options.other;
|
|
3776
3776
|
}
|
|
3777
3777
|
if (!P)
|
|
3778
|
-
throw new
|
|
3779
|
-
a.push.apply(a,
|
|
3778
|
+
throw new Qt(u.value, m, Object.keys(u.options), o);
|
|
3779
|
+
a.push.apply(a, Pe(P.value, t, r, n, i, m - (u.offset || 0)));
|
|
3780
3780
|
continue;
|
|
3781
3781
|
}
|
|
3782
3782
|
}
|
|
3783
|
-
return
|
|
3783
|
+
return Xi(a);
|
|
3784
3784
|
}
|
|
3785
|
-
function
|
|
3786
|
-
return t ?
|
|
3787
|
-
return r[n] =
|
|
3785
|
+
function zi(e, t) {
|
|
3786
|
+
return t ? k(k(k({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3787
|
+
return r[n] = k(k({}, e[n]), t[n] || {}), r;
|
|
3788
3788
|
}, {})) : e;
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3790
|
+
function Zi(e, t) {
|
|
3791
3791
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3792
|
-
return r[n] =
|
|
3793
|
-
},
|
|
3792
|
+
return r[n] = zi(e[n], t[n]), r;
|
|
3793
|
+
}, k({}, e)) : e;
|
|
3794
3794
|
}
|
|
3795
|
-
function
|
|
3795
|
+
function Qe(e) {
|
|
3796
3796
|
return {
|
|
3797
3797
|
create: function() {
|
|
3798
3798
|
return {
|
|
@@ -3806,39 +3806,39 @@ function qe(e) {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
};
|
|
3808
3808
|
}
|
|
3809
|
-
function
|
|
3809
|
+
function Ji(e) {
|
|
3810
3810
|
return e === void 0 && (e = {
|
|
3811
3811
|
number: {},
|
|
3812
3812
|
dateTime: {},
|
|
3813
3813
|
pluralRules: {}
|
|
3814
3814
|
}), {
|
|
3815
|
-
getNumberFormat:
|
|
3815
|
+
getNumberFormat: Ze(function() {
|
|
3816
3816
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3817
3817
|
r[n] = arguments[n];
|
|
3818
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3818
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
3819
3819
|
}, {
|
|
3820
|
-
cache:
|
|
3821
|
-
strategy:
|
|
3820
|
+
cache: Qe(e.number),
|
|
3821
|
+
strategy: Je.variadic
|
|
3822
3822
|
}),
|
|
3823
|
-
getDateTimeFormat:
|
|
3823
|
+
getDateTimeFormat: Ze(function() {
|
|
3824
3824
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3825
3825
|
r[n] = arguments[n];
|
|
3826
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3826
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
3827
3827
|
}, {
|
|
3828
|
-
cache:
|
|
3829
|
-
strategy:
|
|
3828
|
+
cache: Qe(e.dateTime),
|
|
3829
|
+
strategy: Je.variadic
|
|
3830
3830
|
}),
|
|
3831
|
-
getPluralRules:
|
|
3831
|
+
getPluralRules: Ze(function() {
|
|
3832
3832
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3833
3833
|
r[n] = arguments[n];
|
|
3834
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3834
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ze([void 0], r, !1)))();
|
|
3835
3835
|
}, {
|
|
3836
|
-
cache:
|
|
3837
|
-
strategy:
|
|
3836
|
+
cache: Qe(e.pluralRules),
|
|
3837
|
+
strategy: Je.variadic
|
|
3838
3838
|
})
|
|
3839
3839
|
};
|
|
3840
3840
|
}
|
|
3841
|
-
var
|
|
3841
|
+
var qi = (
|
|
3842
3842
|
/** @class */
|
|
3843
3843
|
function() {
|
|
3844
3844
|
function e(t, r, n, i) {
|
|
@@ -3853,11 +3853,11 @@ var Zi = (
|
|
|
3853
3853
|
if (l.length === 1)
|
|
3854
3854
|
return l[0].value;
|
|
3855
3855
|
var u = l.reduce(function(c, m) {
|
|
3856
|
-
return !c.length || m.type !==
|
|
3856
|
+
return !c.length || m.type !== L.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3857
3857
|
}, []);
|
|
3858
3858
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3859
3859
|
}, this.formatToParts = function(h) {
|
|
3860
|
-
return
|
|
3860
|
+
return Pe(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3861
3861
|
}, this.resolvedOptions = function() {
|
|
3862
3862
|
var h;
|
|
3863
3863
|
return {
|
|
@@ -3870,13 +3870,13 @@ var Zi = (
|
|
|
3870
3870
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3871
3871
|
var o = i || {};
|
|
3872
3872
|
o.formatters;
|
|
3873
|
-
var a =
|
|
3874
|
-
this.ast = e.__parse(t,
|
|
3873
|
+
var a = si(o, ["formatters"]);
|
|
3874
|
+
this.ast = e.__parse(t, k(k({}, a), { locale: this.resolvedLocale }));
|
|
3875
3875
|
} else
|
|
3876
3876
|
this.ast = t;
|
|
3877
3877
|
if (!Array.isArray(this.ast))
|
|
3878
3878
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3879
|
-
this.formats =
|
|
3879
|
+
this.formats = Zi(e.formats, n), this.formatters = i && i.formatters || Ji(this.formatterCache);
|
|
3880
3880
|
}
|
|
3881
3881
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3882
3882
|
get: function() {
|
|
@@ -3889,7 +3889,7 @@ var Zi = (
|
|
|
3889
3889
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3890
3890
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3891
3891
|
}
|
|
3892
|
-
}, e.__parse =
|
|
3892
|
+
}, e.__parse = ji, e.formats = {
|
|
3893
3893
|
number: {
|
|
3894
3894
|
integer: {
|
|
3895
3895
|
maximumFractionDigits: 0
|
|
@@ -3950,7 +3950,7 @@ var Zi = (
|
|
|
3950
3950
|
}, e;
|
|
3951
3951
|
}()
|
|
3952
3952
|
);
|
|
3953
|
-
function
|
|
3953
|
+
function Qi(e, t) {
|
|
3954
3954
|
if (t == null)
|
|
3955
3955
|
return;
|
|
3956
3956
|
if (t in e)
|
|
@@ -3971,92 +3971,92 @@ function Ji(e, t) {
|
|
|
3971
3971
|
n = void 0;
|
|
3972
3972
|
return n;
|
|
3973
3973
|
}
|
|
3974
|
-
const z = {},
|
|
3974
|
+
const z = {}, Yi = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Dr = (e, t) => {
|
|
3975
3975
|
if (t == null)
|
|
3976
3976
|
return;
|
|
3977
3977
|
if (t in z && e in z[t])
|
|
3978
3978
|
return z[t][e];
|
|
3979
|
-
const r =
|
|
3979
|
+
const r = Ue(t);
|
|
3980
3980
|
for (let n = 0; n < r.length; n++) {
|
|
3981
|
-
const i = r[n], s =
|
|
3981
|
+
const i = r[n], s = es(i, e);
|
|
3982
3982
|
if (s)
|
|
3983
|
-
return
|
|
3983
|
+
return Yi(e, t, s);
|
|
3984
3984
|
}
|
|
3985
3985
|
};
|
|
3986
|
-
let
|
|
3987
|
-
const
|
|
3988
|
-
function
|
|
3989
|
-
return
|
|
3986
|
+
let bt;
|
|
3987
|
+
const ae = Me({});
|
|
3988
|
+
function Ki(e) {
|
|
3989
|
+
return bt[e] || null;
|
|
3990
3990
|
}
|
|
3991
|
-
function
|
|
3992
|
-
return e in
|
|
3991
|
+
function Fr(e) {
|
|
3992
|
+
return e in bt;
|
|
3993
3993
|
}
|
|
3994
|
-
function
|
|
3995
|
-
if (!
|
|
3994
|
+
function es(e, t) {
|
|
3995
|
+
if (!Fr(e))
|
|
3996
3996
|
return null;
|
|
3997
|
-
const r =
|
|
3998
|
-
return
|
|
3997
|
+
const r = Ki(e);
|
|
3998
|
+
return Qi(r, t);
|
|
3999
3999
|
}
|
|
4000
|
-
function
|
|
4000
|
+
function ts(e) {
|
|
4001
4001
|
if (e == null)
|
|
4002
4002
|
return;
|
|
4003
|
-
const t =
|
|
4003
|
+
const t = Ue(e);
|
|
4004
4004
|
for (let r = 0; r < t.length; r++) {
|
|
4005
4005
|
const n = t[r];
|
|
4006
|
-
if (
|
|
4006
|
+
if (Fr(n))
|
|
4007
4007
|
return n;
|
|
4008
4008
|
}
|
|
4009
4009
|
}
|
|
4010
|
-
function
|
|
4011
|
-
delete z[e],
|
|
4010
|
+
function Ur(e, ...t) {
|
|
4011
|
+
delete z[e], ae.update((r) => (r[e] = ii.all([r[e] || {}, ...t]), r));
|
|
4012
4012
|
}
|
|
4013
|
-
|
|
4014
|
-
[
|
|
4013
|
+
oe(
|
|
4014
|
+
[ae],
|
|
4015
4015
|
([e]) => Object.keys(e)
|
|
4016
4016
|
);
|
|
4017
|
-
|
|
4018
|
-
const
|
|
4019
|
-
function
|
|
4020
|
-
|
|
4017
|
+
ae.subscribe((e) => bt = e);
|
|
4018
|
+
const Oe = {};
|
|
4019
|
+
function rs(e, t) {
|
|
4020
|
+
Oe[e].delete(t), Oe[e].size === 0 && delete Oe[e];
|
|
4021
4021
|
}
|
|
4022
|
-
function
|
|
4023
|
-
return
|
|
4022
|
+
function Gr(e) {
|
|
4023
|
+
return Oe[e];
|
|
4024
4024
|
}
|
|
4025
|
-
function
|
|
4026
|
-
return
|
|
4027
|
-
const r =
|
|
4025
|
+
function ns(e) {
|
|
4026
|
+
return Ue(e).map((t) => {
|
|
4027
|
+
const r = Gr(t);
|
|
4028
4028
|
return [t, r ? [...r] : []];
|
|
4029
4029
|
}).filter(([, t]) => t.length > 0);
|
|
4030
4030
|
}
|
|
4031
|
-
function
|
|
4032
|
-
return e == null ? !1 :
|
|
4031
|
+
function mt(e) {
|
|
4032
|
+
return e == null ? !1 : Ue(e).some(
|
|
4033
4033
|
(t) => {
|
|
4034
4034
|
var r;
|
|
4035
|
-
return (r =
|
|
4035
|
+
return (r = Gr(t)) == null ? void 0 : r.size;
|
|
4036
4036
|
}
|
|
4037
4037
|
);
|
|
4038
4038
|
}
|
|
4039
|
-
function
|
|
4039
|
+
function is(e, t) {
|
|
4040
4040
|
return Promise.all(
|
|
4041
|
-
t.map((n) => (
|
|
4042
|
-
).then((n) =>
|
|
4041
|
+
t.map((n) => (rs(e, n), n().then((i) => i.default || i)))
|
|
4042
|
+
).then((n) => Ur(e, ...n));
|
|
4043
4043
|
}
|
|
4044
|
-
const
|
|
4044
|
+
const fe = {};
|
|
4045
4045
|
function kr(e) {
|
|
4046
|
-
if (!
|
|
4047
|
-
return e in
|
|
4048
|
-
const t =
|
|
4049
|
-
return
|
|
4046
|
+
if (!mt(e))
|
|
4047
|
+
return e in fe ? fe[e] : Promise.resolve();
|
|
4048
|
+
const t = ns(e);
|
|
4049
|
+
return fe[e] = Promise.all(
|
|
4050
4050
|
t.map(
|
|
4051
|
-
([r, n]) =>
|
|
4051
|
+
([r, n]) => is(r, n)
|
|
4052
4052
|
)
|
|
4053
4053
|
).then(() => {
|
|
4054
|
-
if (
|
|
4054
|
+
if (mt(e))
|
|
4055
4055
|
return kr(e);
|
|
4056
|
-
delete
|
|
4057
|
-
}),
|
|
4056
|
+
delete fe[e];
|
|
4057
|
+
}), fe[e];
|
|
4058
4058
|
}
|
|
4059
|
-
const
|
|
4059
|
+
const ss = {
|
|
4060
4060
|
number: {
|
|
4061
4061
|
scientific: { notation: "scientific" },
|
|
4062
4062
|
engineering: { notation: "engineering" },
|
|
@@ -4085,135 +4085,135 @@ const ns = {
|
|
|
4085
4085
|
timeZoneName: "short"
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
|
-
},
|
|
4088
|
+
}, os = {
|
|
4089
4089
|
fallbackLocale: null,
|
|
4090
4090
|
loadingDelay: 200,
|
|
4091
|
-
formats:
|
|
4091
|
+
formats: ss,
|
|
4092
4092
|
warnOnMissingMessages: !0,
|
|
4093
4093
|
handleMissingMessage: void 0,
|
|
4094
4094
|
ignoreTag: !0
|
|
4095
|
-
},
|
|
4096
|
-
function
|
|
4097
|
-
return
|
|
4095
|
+
}, as = os;
|
|
4096
|
+
function se() {
|
|
4097
|
+
return as;
|
|
4098
4098
|
}
|
|
4099
|
-
const
|
|
4100
|
-
var
|
|
4099
|
+
const Ye = Me(!1);
|
|
4100
|
+
var us = Object.defineProperty, ls = Object.defineProperties, hs = Object.getOwnPropertyDescriptors, Yt = Object.getOwnPropertySymbols, fs = Object.prototype.hasOwnProperty, cs = Object.prototype.propertyIsEnumerable, Kt = (e, t, r) => t in e ? us(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ps = (e, t) => {
|
|
4101
4101
|
for (var r in t || (t = {}))
|
|
4102
|
-
|
|
4103
|
-
if (
|
|
4104
|
-
for (var r of
|
|
4105
|
-
|
|
4102
|
+
fs.call(t, r) && Kt(e, r, t[r]);
|
|
4103
|
+
if (Yt)
|
|
4104
|
+
for (var r of Yt(t))
|
|
4105
|
+
cs.call(t, r) && Kt(e, r, t[r]);
|
|
4106
4106
|
return e;
|
|
4107
|
-
},
|
|
4108
|
-
let
|
|
4109
|
-
const
|
|
4110
|
-
function
|
|
4107
|
+
}, ms = (e, t) => ls(e, hs(t));
|
|
4108
|
+
let dt;
|
|
4109
|
+
const Le = Me(null);
|
|
4110
|
+
function er(e) {
|
|
4111
4111
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4112
4112
|
}
|
|
4113
|
-
function
|
|
4114
|
-
const r =
|
|
4115
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4113
|
+
function Ue(e, t = se().fallbackLocale) {
|
|
4114
|
+
const r = er(e);
|
|
4115
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...er(t)])] : r;
|
|
4116
4116
|
}
|
|
4117
4117
|
function J() {
|
|
4118
|
-
return
|
|
4118
|
+
return dt ?? void 0;
|
|
4119
4119
|
}
|
|
4120
|
-
|
|
4121
|
-
|
|
4120
|
+
Le.subscribe((e) => {
|
|
4121
|
+
dt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4122
4122
|
});
|
|
4123
|
-
const
|
|
4124
|
-
if (e &&
|
|
4125
|
-
const { loadingDelay: t } =
|
|
4123
|
+
const ds = (e) => {
|
|
4124
|
+
if (e && ts(e) && mt(e)) {
|
|
4125
|
+
const { loadingDelay: t } = se();
|
|
4126
4126
|
let r;
|
|
4127
4127
|
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
|
4128
|
-
() =>
|
|
4128
|
+
() => Ye.set(!0),
|
|
4129
4129
|
t
|
|
4130
|
-
) :
|
|
4131
|
-
|
|
4130
|
+
) : Ye.set(!0), kr(e).then(() => {
|
|
4131
|
+
Le.set(e);
|
|
4132
4132
|
}).finally(() => {
|
|
4133
|
-
clearTimeout(r),
|
|
4133
|
+
clearTimeout(r), Ye.set(!1);
|
|
4134
4134
|
});
|
|
4135
4135
|
}
|
|
4136
|
-
return
|
|
4137
|
-
}, Z =
|
|
4138
|
-
set:
|
|
4139
|
-
}),
|
|
4136
|
+
return Le.set(e);
|
|
4137
|
+
}, Z = ms(ps({}, Le), {
|
|
4138
|
+
set: ds
|
|
4139
|
+
}), Ge = (e) => {
|
|
4140
4140
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4141
4141
|
return (n) => {
|
|
4142
4142
|
const i = JSON.stringify(n);
|
|
4143
4143
|
return i in t ? t[i] : t[i] = e(n);
|
|
4144
4144
|
};
|
|
4145
4145
|
};
|
|
4146
|
-
var
|
|
4146
|
+
var gs = Object.defineProperty, Re = Object.getOwnPropertySymbols, jr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, tr = (e, t, r) => t in e ? gs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
|
4147
4147
|
for (var r in t || (t = {}))
|
|
4148
|
-
|
|
4148
|
+
jr.call(t, r) && tr(e, r, t[r]);
|
|
4149
4149
|
if (Re)
|
|
4150
4150
|
for (var r of Re(t))
|
|
4151
|
-
|
|
4151
|
+
$r.call(t, r) && tr(e, r, t[r]);
|
|
4152
4152
|
return e;
|
|
4153
|
-
},
|
|
4153
|
+
}, ue = (e, t) => {
|
|
4154
4154
|
var r = {};
|
|
4155
4155
|
for (var n in e)
|
|
4156
|
-
|
|
4156
|
+
jr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4157
4157
|
if (e != null && Re)
|
|
4158
4158
|
for (var n of Re(e))
|
|
4159
|
-
t.indexOf(n) < 0 &&
|
|
4159
|
+
t.indexOf(n) < 0 && $r.call(e, n) && (r[n] = e[n]);
|
|
4160
4160
|
return r;
|
|
4161
4161
|
};
|
|
4162
|
-
const
|
|
4163
|
-
const { formats: r } =
|
|
4162
|
+
const de = (e, t) => {
|
|
4163
|
+
const { formats: r } = se();
|
|
4164
4164
|
if (e in r && t in r[e])
|
|
4165
4165
|
return r[e][t];
|
|
4166
4166
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4167
|
-
},
|
|
4167
|
+
}, bs = Ge(
|
|
4168
4168
|
(e) => {
|
|
4169
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4169
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4170
4170
|
if (r == null)
|
|
4171
4171
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4172
|
-
return n && (i =
|
|
4172
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4173
4173
|
}
|
|
4174
|
-
),
|
|
4174
|
+
), ys = Ge(
|
|
4175
4175
|
(e) => {
|
|
4176
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4176
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4177
4177
|
if (r == null)
|
|
4178
4178
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4179
|
-
return n ? i =
|
|
4179
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4180
4180
|
}
|
|
4181
|
-
),
|
|
4181
|
+
), vs = Ge(
|
|
4182
4182
|
(e) => {
|
|
4183
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4183
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4184
4184
|
if (r == null)
|
|
4185
4185
|
throw new Error(
|
|
4186
4186
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4187
4187
|
);
|
|
4188
|
-
return n ? i =
|
|
4188
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4189
4189
|
}
|
|
4190
|
-
),
|
|
4190
|
+
), _s = (e = {}) => {
|
|
4191
4191
|
var t = e, {
|
|
4192
4192
|
locale: r = J()
|
|
4193
|
-
} = t, n =
|
|
4193
|
+
} = t, n = ue(t, [
|
|
4194
4194
|
"locale"
|
|
4195
4195
|
]);
|
|
4196
|
-
return
|
|
4197
|
-
},
|
|
4196
|
+
return bs(yt({ locale: r }, n));
|
|
4197
|
+
}, Es = (e = {}) => {
|
|
4198
4198
|
var t = e, {
|
|
4199
4199
|
locale: r = J()
|
|
4200
|
-
} = t, n =
|
|
4200
|
+
} = t, n = ue(t, [
|
|
4201
4201
|
"locale"
|
|
4202
4202
|
]);
|
|
4203
|
-
return
|
|
4204
|
-
},
|
|
4203
|
+
return ys(yt({ locale: r }, n));
|
|
4204
|
+
}, ws = (e = {}) => {
|
|
4205
4205
|
var t = e, {
|
|
4206
4206
|
locale: r = J()
|
|
4207
|
-
} = t, n =
|
|
4207
|
+
} = t, n = ue(t, [
|
|
4208
4208
|
"locale"
|
|
4209
4209
|
]);
|
|
4210
|
-
return
|
|
4211
|
-
},
|
|
4210
|
+
return vs(yt({ locale: r }, n));
|
|
4211
|
+
}, Ss = Ge(
|
|
4212
4212
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4213
|
-
(e, t = J()) => new
|
|
4214
|
-
ignoreTag:
|
|
4213
|
+
(e, t = J()) => new qi(e, t, se().formats, {
|
|
4214
|
+
ignoreTag: se().ignoreTag
|
|
4215
4215
|
})
|
|
4216
|
-
),
|
|
4216
|
+
), xs = (e, t = {}) => {
|
|
4217
4217
|
var r, n, i, s;
|
|
4218
4218
|
let o = t;
|
|
4219
4219
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4226,9 +4226,9 @@ const me = (e, t) => {
|
|
|
4226
4226
|
throw new Error(
|
|
4227
4227
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4228
4228
|
);
|
|
4229
|
-
let u =
|
|
4229
|
+
let u = Dr(e, h);
|
|
4230
4230
|
if (!u)
|
|
4231
|
-
u = (s = (i = (n = (r =
|
|
4231
|
+
u = (s = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
4232
4232
|
else if (typeof u != "string")
|
|
4233
4233
|
return console.warn(
|
|
4234
4234
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4237,7 +4237,7 @@ const me = (e, t) => {
|
|
|
4237
4237
|
return u;
|
|
4238
4238
|
let c = u;
|
|
4239
4239
|
try {
|
|
4240
|
-
c =
|
|
4240
|
+
c = Ss(u, h).format(a);
|
|
4241
4241
|
} catch (m) {
|
|
4242
4242
|
m instanceof Error && console.warn(
|
|
4243
4243
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4245,26 +4245,26 @@ const me = (e, t) => {
|
|
|
4245
4245
|
);
|
|
4246
4246
|
}
|
|
4247
4247
|
return c;
|
|
4248
|
-
},
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
window.emWidgets = { topic:
|
|
4254
|
-
const
|
|
4248
|
+
}, Ts = (e, t) => ws(t).format(e), Hs = (e, t) => Es(t).format(e), Bs = (e, t) => _s(t).format(e), As = (e, t = J()) => Dr(e, t), Ps = oe([Z, ae], () => xs);
|
|
4249
|
+
oe([Z], () => Ts);
|
|
4250
|
+
oe([Z], () => Hs);
|
|
4251
|
+
oe([Z], () => Bs);
|
|
4252
|
+
oe([Z, ae], () => As);
|
|
4253
|
+
window.emWidgets = { topic: kn };
|
|
4254
|
+
const rr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4255
4255
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4256
|
-
function
|
|
4256
|
+
function Os({ withLocale: e, translations: t }) {
|
|
4257
4257
|
Z.subscribe((r) => {
|
|
4258
|
-
r == null && (
|
|
4258
|
+
r == null && (ae.set(t), Z.set(e));
|
|
4259
4259
|
});
|
|
4260
4260
|
}
|
|
4261
|
-
function
|
|
4262
|
-
|
|
4261
|
+
function nr(e, t) {
|
|
4262
|
+
Ur(e, t);
|
|
4263
4263
|
}
|
|
4264
|
-
function
|
|
4264
|
+
function Cs(e) {
|
|
4265
4265
|
Z.set(e);
|
|
4266
4266
|
}
|
|
4267
|
-
const
|
|
4267
|
+
const ir = {
|
|
4268
4268
|
en: {
|
|
4269
4269
|
goToLoginButton: "Go To Login",
|
|
4270
4270
|
error: "We encountered an issue. Please go to Login to receive your SMS code."
|
|
@@ -4309,14 +4309,14 @@ const nr = {
|
|
|
4309
4309
|
goToLoginButton: "Go To Login",
|
|
4310
4310
|
error: "We encountered an issue. Please go to Login to receive your SMS code."
|
|
4311
4311
|
}
|
|
4312
|
-
};
|
|
4313
|
-
function
|
|
4312
|
+
}, K = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4313
|
+
function Is(e, t) {
|
|
4314
4314
|
if (e) {
|
|
4315
4315
|
const r = document.createElement("style");
|
|
4316
4316
|
r.innerHTML = t, e.appendChild(r);
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
|
-
function
|
|
4319
|
+
function Ls(e, t) {
|
|
4320
4320
|
if (!e || !t)
|
|
4321
4321
|
return;
|
|
4322
4322
|
const r = new URL(t);
|
|
@@ -4327,13 +4327,40 @@ function Cs(e, t) {
|
|
|
4327
4327
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4328
4328
|
});
|
|
4329
4329
|
}
|
|
4330
|
-
function
|
|
4331
|
-
if (window.emMessageBus)
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4330
|
+
function Rs(e, t, r, n = !1) {
|
|
4331
|
+
if (!window.emMessageBus)
|
|
4332
|
+
return;
|
|
4333
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4334
|
+
return r = Ns(e, t), r;
|
|
4335
|
+
window[K] || (window[K] = {}), r = Ms(e, t);
|
|
4336
|
+
const s = r.unsubscribe.bind(r), o = () => {
|
|
4337
|
+
if (window[K][t]) {
|
|
4338
|
+
const a = window[K][t];
|
|
4339
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[K][t];
|
|
4340
|
+
}
|
|
4341
|
+
s();
|
|
4342
|
+
};
|
|
4343
|
+
return r.unsubscribe = o, r;
|
|
4344
|
+
}
|
|
4345
|
+
function Ns(e, t) {
|
|
4346
|
+
const r = document.createElement("style");
|
|
4347
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
4348
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
4349
|
+
});
|
|
4350
|
+
}
|
|
4351
|
+
function Ms(e, t) {
|
|
4352
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
4353
|
+
if (!e)
|
|
4354
|
+
return;
|
|
4355
|
+
const n = e.getRootNode(), i = window[K];
|
|
4356
|
+
let s = i[t]?.sheet;
|
|
4357
|
+
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
4358
|
+
sheet: s,
|
|
4359
|
+
refCount: 1
|
|
4335
4360
|
});
|
|
4336
|
-
|
|
4361
|
+
const o = n.adoptedStyleSheets || [];
|
|
4362
|
+
o.includes(s) || (n.adoptedStyleSheets = [...o, s]);
|
|
4363
|
+
});
|
|
4337
4364
|
}
|
|
4338
4365
|
if (typeof window < "u") {
|
|
4339
4366
|
let e = function(t) {
|
|
@@ -4347,7 +4374,7 @@ if (typeof window < "u") {
|
|
|
4347
4374
|
}
|
|
4348
4375
|
};
|
|
4349
4376
|
};
|
|
4350
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-
|
|
4377
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-DG6hJ08f.js").then(({ default: t }) => {
|
|
4351
4378
|
!customElements.get("general-player-register-form-step1") && customElements.define("general-player-register-form-step1", t.element);
|
|
4352
4379
|
});
|
|
4353
4380
|
}
|
|
@@ -4363,7 +4390,7 @@ if (typeof window < "u") {
|
|
|
4363
4390
|
}
|
|
4364
4391
|
};
|
|
4365
4392
|
};
|
|
4366
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-
|
|
4393
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-CHcSLQn3.js").then(({ default: t }) => {
|
|
4367
4394
|
!customElements.get("general-player-register-form-step2") && customElements.define("general-player-register-form-step2", t.element);
|
|
4368
4395
|
});
|
|
4369
4396
|
}
|
|
@@ -4379,7 +4406,7 @@ if (typeof window < "u") {
|
|
|
4379
4406
|
}
|
|
4380
4407
|
};
|
|
4381
4408
|
};
|
|
4382
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-
|
|
4409
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-DpwukttH.js").then(({ default: t }) => {
|
|
4383
4410
|
!customElements.get("general-player-register-form-step3") && customElements.define("general-player-register-form-step3", t.element);
|
|
4384
4411
|
});
|
|
4385
4412
|
}
|
|
@@ -4395,28 +4422,28 @@ if (typeof window < "u") {
|
|
|
4395
4422
|
}
|
|
4396
4423
|
};
|
|
4397
4424
|
};
|
|
4398
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4425
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-Dvhtngnq.js").then(({ default: t }) => {
|
|
4399
4426
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4400
4427
|
});
|
|
4401
4428
|
}
|
|
4402
|
-
function
|
|
4403
|
-
|
|
4429
|
+
function Ds(e) {
|
|
4430
|
+
on(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}");
|
|
4404
4431
|
}
|
|
4405
|
-
function
|
|
4432
|
+
function Fs(e) {
|
|
4406
4433
|
let t, r, n, i, s, o, a, h = (
|
|
4407
4434
|
/*showRegisterStepOne*/
|
|
4408
4435
|
(e[18] || /*showRegisterStepTwo*/
|
|
4409
4436
|
e[19] || /*showRegisterStepThree*/
|
|
4410
|
-
e[20]) &&
|
|
4437
|
+
e[20]) && sr(e)
|
|
4411
4438
|
), l = (
|
|
4412
4439
|
/*showRegisterStepOne*/
|
|
4413
|
-
e[18] &&
|
|
4440
|
+
e[18] && or(e)
|
|
4414
4441
|
), u = (
|
|
4415
4442
|
/*showRegisterStepTwo*/
|
|
4416
|
-
e[19] &&
|
|
4443
|
+
e[19] && ar(e)
|
|
4417
4444
|
), c = (
|
|
4418
4445
|
/*showRegisterStepThree*/
|
|
4419
|
-
e[20] &&
|
|
4446
|
+
e[20] && ur(e)
|
|
4420
4447
|
);
|
|
4421
4448
|
function m(b, w) {
|
|
4422
4449
|
if (
|
|
@@ -4424,16 +4451,16 @@ function Ls(e) {
|
|
|
4424
4451
|
b[7] && /*showSmsVerification*/
|
|
4425
4452
|
b[21]
|
|
4426
4453
|
)
|
|
4427
|
-
return
|
|
4454
|
+
return Gs;
|
|
4428
4455
|
if (
|
|
4429
4456
|
/*smsSendApiFailed*/
|
|
4430
4457
|
b[31]
|
|
4431
4458
|
)
|
|
4432
|
-
return
|
|
4459
|
+
return Us;
|
|
4433
4460
|
}
|
|
4434
4461
|
let y = m(e), g = y && y(e), d = (
|
|
4435
4462
|
/*showConfirmation*/
|
|
4436
|
-
e[22] &&
|
|
4463
|
+
e[22] && lr(e)
|
|
4437
4464
|
);
|
|
4438
4465
|
return {
|
|
4439
4466
|
c() {
|
|
@@ -4447,18 +4474,18 @@ function Ls(e) {
|
|
|
4447
4474
|
/*showRegisterStepOne*/
|
|
4448
4475
|
b[18] || /*showRegisterStepTwo*/
|
|
4449
4476
|
b[19] || /*showRegisterStepThree*/
|
|
4450
|
-
b[20] ? h ? h.p(b, w) : (h =
|
|
4451
|
-
b[18] ? l ? l.p(b, w) : (l =
|
|
4452
|
-
b[19] ? u ? u.p(b, w) : (u =
|
|
4453
|
-
b[20] ? c ? c.p(b, w) : (c =
|
|
4454
|
-
b[22] ? d ? d.p(b, w) : (d =
|
|
4477
|
+
b[20] ? h ? h.p(b, w) : (h = sr(b), h.c(), h.m(r, n)) : h && (h.d(1), h = null), /*showRegisterStepOne*/
|
|
4478
|
+
b[18] ? l ? l.p(b, w) : (l = or(b), l.c(), l.m(r, i)) : l && (l.d(1), l = null), /*showRegisterStepTwo*/
|
|
4479
|
+
b[19] ? u ? u.p(b, w) : (u = ar(b), u.c(), u.m(r, s)) : u && (u.d(1), u = null), /*showRegisterStepThree*/
|
|
4480
|
+
b[20] ? c ? c.p(b, w) : (c = ur(b), c.c(), c.m(r, o)) : c && (c.d(1), c = null), y === (y = m(b)) && g ? g.p(b, w) : (g && g.d(1), g = y && y(b), g && (g.c(), g.m(r, a))), /*showConfirmation*/
|
|
4481
|
+
b[22] ? d ? d.p(b, w) : (d = lr(b), d.c(), d.m(r, null)) : d && (d.d(1), d = null);
|
|
4455
4482
|
},
|
|
4456
4483
|
d(b) {
|
|
4457
4484
|
b && M(t), h && h.d(), l && l.d(), u && u.d(), c && c.d(), g && g.d(), d && d.d();
|
|
4458
4485
|
}
|
|
4459
4486
|
};
|
|
4460
4487
|
}
|
|
4461
|
-
function
|
|
4488
|
+
function sr(e) {
|
|
4462
4489
|
let t, r, n, i, s, o, a, h, l;
|
|
4463
4490
|
return {
|
|
4464
4491
|
c() {
|
|
@@ -4500,7 +4527,7 @@ function ir(e) {
|
|
|
4500
4527
|
}
|
|
4501
4528
|
};
|
|
4502
4529
|
}
|
|
4503
|
-
function
|
|
4530
|
+
function or(e) {
|
|
4504
4531
|
let t, r;
|
|
4505
4532
|
return {
|
|
4506
4533
|
c() {
|
|
@@ -4627,7 +4654,7 @@ function sr(e) {
|
|
|
4627
4654
|
}
|
|
4628
4655
|
};
|
|
4629
4656
|
}
|
|
4630
|
-
function
|
|
4657
|
+
function ar(e) {
|
|
4631
4658
|
let t, r;
|
|
4632
4659
|
return {
|
|
4633
4660
|
c() {
|
|
@@ -4754,7 +4781,7 @@ function or(e) {
|
|
|
4754
4781
|
}
|
|
4755
4782
|
};
|
|
4756
4783
|
}
|
|
4757
|
-
function
|
|
4784
|
+
function ur(e) {
|
|
4758
4785
|
let t, r;
|
|
4759
4786
|
return {
|
|
4760
4787
|
c() {
|
|
@@ -4914,7 +4941,7 @@ function ar(e) {
|
|
|
4914
4941
|
}
|
|
4915
4942
|
};
|
|
4916
4943
|
}
|
|
4917
|
-
function
|
|
4944
|
+
function Us(e) {
|
|
4918
4945
|
let t, r = (
|
|
4919
4946
|
/*$_*/
|
|
4920
4947
|
e[34]("error") + ""
|
|
@@ -4929,25 +4956,25 @@ function Ns(e) {
|
|
|
4929
4956
|
p(i, s) {
|
|
4930
4957
|
s[1] & /*$_*/
|
|
4931
4958
|
8 && r !== (r = /*$_*/
|
|
4932
|
-
i[34]("error") + "") &&
|
|
4959
|
+
i[34]("error") + "") && ee(n, r);
|
|
4933
4960
|
},
|
|
4934
4961
|
d(i) {
|
|
4935
4962
|
i && M(t);
|
|
4936
4963
|
}
|
|
4937
4964
|
};
|
|
4938
4965
|
}
|
|
4939
|
-
function
|
|
4966
|
+
function Gs(e) {
|
|
4940
4967
|
let t;
|
|
4941
4968
|
function r(s, o) {
|
|
4942
4969
|
return (
|
|
4943
4970
|
/*smsSendApiFailed*/
|
|
4944
|
-
s[31] ?
|
|
4971
|
+
s[31] ? ks : js
|
|
4945
4972
|
);
|
|
4946
4973
|
}
|
|
4947
4974
|
let n = r(e), i = n(e);
|
|
4948
4975
|
return {
|
|
4949
4976
|
c() {
|
|
4950
|
-
i.c(), t =
|
|
4977
|
+
i.c(), t = ln();
|
|
4951
4978
|
},
|
|
4952
4979
|
m(s, o) {
|
|
4953
4980
|
i.m(s, o), F(s, t, o);
|
|
@@ -4960,7 +4987,7 @@ function Ms(e) {
|
|
|
4960
4987
|
}
|
|
4961
4988
|
};
|
|
4962
4989
|
}
|
|
4963
|
-
function
|
|
4990
|
+
function ks(e) {
|
|
4964
4991
|
let t, r = (
|
|
4965
4992
|
/*$_*/
|
|
4966
4993
|
e[34]("error") + ""
|
|
@@ -4975,14 +5002,14 @@ function Ds(e) {
|
|
|
4975
5002
|
p(i, s) {
|
|
4976
5003
|
s[1] & /*$_*/
|
|
4977
5004
|
8 && r !== (r = /*$_*/
|
|
4978
|
-
i[34]("error") + "") &&
|
|
5005
|
+
i[34]("error") + "") && ee(n, r);
|
|
4979
5006
|
},
|
|
4980
5007
|
d(i) {
|
|
4981
5008
|
i && M(t);
|
|
4982
5009
|
}
|
|
4983
5010
|
};
|
|
4984
5011
|
}
|
|
4985
|
-
function
|
|
5012
|
+
function js(e) {
|
|
4986
5013
|
let t;
|
|
4987
5014
|
return {
|
|
4988
5015
|
c() {
|
|
@@ -5087,14 +5114,14 @@ function Fs(e) {
|
|
|
5087
5114
|
}
|
|
5088
5115
|
};
|
|
5089
5116
|
}
|
|
5090
|
-
function
|
|
5117
|
+
function lr(e) {
|
|
5091
5118
|
let t, r, n, i, s, o, a, h, l, u, c, m, y, g, d, b, w, O = (
|
|
5092
5119
|
/*$_*/
|
|
5093
5120
|
e[34]("goToLoginButton") + ""
|
|
5094
|
-
), P,
|
|
5121
|
+
), P, R, N;
|
|
5095
5122
|
return {
|
|
5096
5123
|
c() {
|
|
5097
|
-
t = H("div"), r =
|
|
5124
|
+
t = H("div"), r = xe("svg"), n = xe("defs"), i = xe("style"), s = V(".a{fill:#var(--emw--color-valid, var(--emw--color-green, #48952a));}"), o = xe("path"), a = U(), h = H("h2"), l = V(
|
|
5098
5125
|
/*accountCreationTitle*/
|
|
5099
5126
|
e[23]
|
|
5100
5127
|
), u = U(), c = H("p"), m = V(
|
|
@@ -5106,42 +5133,42 @@ function ur(e) {
|
|
|
5106
5133
|
), b = U(), w = H("button"), P = V(O), S(o, "class", "a"), S(o, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"), S(r, "xmlns", "http://www.w3.org/2000/svg"), S(r, "viewBox", "0 0 73.95 51"), S(h, "class", "RegisterConfirmationTitle"), S(c, "class", "RegisterConfirmationSubtitle"), S(g, "class", "RegisterConfirmationNote"), S(w, "class", "RegisterConfirmationGoToLogin"), S(t, "class", "RegisterConfirmation");
|
|
5107
5134
|
},
|
|
5108
5135
|
m(C, D) {
|
|
5109
|
-
F(C, t, D), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, h), E(h, l), E(t, u), E(t, c), E(c, m), E(t, y), E(t, g), E(g, d), E(t, b), E(t, w), E(w, P),
|
|
5136
|
+
F(C, t, D), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, h), E(h, l), E(t, u), E(t, c), E(c, m), E(t, y), E(t, g), E(g, d), E(t, b), E(t, w), E(w, P), R || (N = hn(
|
|
5110
5137
|
w,
|
|
5111
5138
|
"click",
|
|
5112
5139
|
/*switchToLogin*/
|
|
5113
5140
|
e[36]
|
|
5114
|
-
),
|
|
5141
|
+
), R = !0);
|
|
5115
5142
|
},
|
|
5116
5143
|
p(C, D) {
|
|
5117
5144
|
D[0] & /*accountCreationTitle*/
|
|
5118
|
-
8388608 &&
|
|
5145
|
+
8388608 && ee(
|
|
5119
5146
|
l,
|
|
5120
5147
|
/*accountCreationTitle*/
|
|
5121
5148
|
C[23]
|
|
5122
5149
|
), D[0] & /*accountCreationSubTitle*/
|
|
5123
|
-
16777216 &&
|
|
5150
|
+
16777216 && ee(
|
|
5124
5151
|
m,
|
|
5125
5152
|
/*accountCreationSubTitle*/
|
|
5126
5153
|
C[24]
|
|
5127
5154
|
), D[0] & /*accountCreationMessage*/
|
|
5128
|
-
33554432 &&
|
|
5155
|
+
33554432 && ee(
|
|
5129
5156
|
d,
|
|
5130
5157
|
/*accountCreationMessage*/
|
|
5131
5158
|
C[25]
|
|
5132
5159
|
), D[1] & /*$_*/
|
|
5133
5160
|
8 && O !== (O = /*$_*/
|
|
5134
|
-
C[34]("goToLoginButton") + "") &&
|
|
5161
|
+
C[34]("goToLoginButton") + "") && ee(P, O);
|
|
5135
5162
|
},
|
|
5136
5163
|
d(C) {
|
|
5137
|
-
C && M(t),
|
|
5164
|
+
C && M(t), R = !1, N();
|
|
5138
5165
|
}
|
|
5139
5166
|
};
|
|
5140
5167
|
}
|
|
5141
|
-
function
|
|
5168
|
+
function $s(e) {
|
|
5142
5169
|
let t;
|
|
5143
5170
|
function r(s, o) {
|
|
5144
|
-
return
|
|
5171
|
+
return Fs;
|
|
5145
5172
|
}
|
|
5146
5173
|
let i = r()(e);
|
|
5147
5174
|
return {
|
|
@@ -5154,85 +5181,85 @@ function Us(e) {
|
|
|
5154
5181
|
p(s, o) {
|
|
5155
5182
|
i.p(s, o);
|
|
5156
5183
|
},
|
|
5157
|
-
i:
|
|
5158
|
-
o:
|
|
5184
|
+
i: G,
|
|
5185
|
+
o: G,
|
|
5159
5186
|
d(s) {
|
|
5160
5187
|
s && M(t), i.d(), e[42](null);
|
|
5161
5188
|
}
|
|
5162
5189
|
};
|
|
5163
5190
|
}
|
|
5164
|
-
let
|
|
5165
|
-
function
|
|
5191
|
+
let Vs = "Please use this code {0} to activate your account";
|
|
5192
|
+
function Xs(e, t, r) {
|
|
5166
5193
|
let n;
|
|
5167
|
-
|
|
5168
|
-
let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: h = "" } = t, { captchakey: l = "" } = t, { lang: u = "en" } = t, { licenseyears: c = "" } = t, { disabledfields: m = "" } = t, { defaultoptions: y = "" } = t, { smsverification: g = "false" } = t, { simplepasswordvalidation: d = "false" } = t, { userroles: b = "" } = t, { mbsource: w } = t, { clientstyling: O = "" } = t, { clientstylingurl: P = "" } = t, { translationurl:
|
|
5169
|
-
|
|
5170
|
-
const
|
|
5171
|
-
fetch(
|
|
5194
|
+
sn(e, Ps, (f) => r(34, n = f));
|
|
5195
|
+
let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: h = "" } = t, { captchakey: l = "" } = t, { lang: u = "en" } = t, { licenseyears: c = "" } = t, { disabledfields: m = "" } = t, { defaultoptions: y = "" } = t, { smsverification: g = "false" } = t, { simplepasswordvalidation: d = "false" } = t, { userroles: b = "" } = t, { mbsource: w } = t, { clientstyling: O = "" } = t, { clientstylingurl: P = "" } = t, { translationurl: R = "" } = t, { savecredentials: N = "" } = t, { custominputtextswitch: C = "false" } = t, { personalidlength: D = "13" } = t, j, Vr, vt = "", ke = !0, le = !1, ye = !1, je = !1, $e = !1, ve, _t = !1, Et = "", wt = "", St = "", xt = window.navigator.userAgent, Xr = rr(xt) !== "PC", $ = {}, Tt = !1, Ht = !1, Ve = "false", Bt = "false", At = "false", Pt = "false", Ot = "", Ct, _e = !1, It, Ee;
|
|
5196
|
+
Os({ withLocale: "en", translations: {} });
|
|
5197
|
+
const Wr = () => {
|
|
5198
|
+
fetch(R).then((T) => T.json()).then((T) => {
|
|
5172
5199
|
Object.keys(T).forEach((I) => {
|
|
5173
|
-
|
|
5200
|
+
nr(I, T[I]);
|
|
5174
5201
|
});
|
|
5175
5202
|
}).catch((T) => {
|
|
5176
5203
|
console.log(T);
|
|
5177
5204
|
});
|
|
5178
5205
|
};
|
|
5179
|
-
Object.keys(
|
|
5180
|
-
|
|
5206
|
+
Object.keys(ir).forEach((f) => {
|
|
5207
|
+
nr(f, ir[f]);
|
|
5181
5208
|
});
|
|
5182
|
-
const
|
|
5209
|
+
const zr = () => {
|
|
5183
5210
|
fetch(`${i}/v1/player/consentRequirements`).then((f) => f.json()).then((f) => {
|
|
5184
|
-
f.items.length > 0 ? (r(26,
|
|
5211
|
+
f.items.length > 0 ? (r(26, Ve = "true"), f.items.forEach((T) => {
|
|
5185
5212
|
switch (T.tagCode) {
|
|
5186
5213
|
case "termsandconditions":
|
|
5187
|
-
r(27,
|
|
5214
|
+
r(27, Bt = "true");
|
|
5188
5215
|
break;
|
|
5189
5216
|
case "sms":
|
|
5190
|
-
r(28,
|
|
5217
|
+
r(28, At = "true");
|
|
5191
5218
|
break;
|
|
5192
5219
|
case "emailmarketing":
|
|
5193
|
-
r(29,
|
|
5220
|
+
r(29, Pt = "true");
|
|
5194
5221
|
break;
|
|
5195
5222
|
}
|
|
5196
|
-
})) : r(26,
|
|
5223
|
+
})) : r(26, Ve = "false");
|
|
5197
5224
|
});
|
|
5198
|
-
},
|
|
5199
|
-
let f = new URL(`${s}/${u}/login-register-content?env=${o}`), T =
|
|
5225
|
+
}, Zr = () => {
|
|
5226
|
+
let f = new URL(`${s}/${u}/login-register-content?env=${o}`), T = rr(xt);
|
|
5200
5227
|
T && (T === "PC" ? f.searchParams.append("device", "dk") : f.searchParams.append("device", "mtWeb")), fetch(f.href).then((I) => I.json()).then((I) => {
|
|
5201
|
-
|
|
5228
|
+
ve = I.registerData, r(23, Et = ve.title), r(24, wt = ve.subtitle), r(25, St = ve.content);
|
|
5202
5229
|
}).catch((I) => {
|
|
5203
5230
|
console.error(I);
|
|
5204
5231
|
});
|
|
5205
|
-
},
|
|
5206
|
-
|
|
5207
|
-
},
|
|
5232
|
+
}, we = () => {
|
|
5233
|
+
Ee.scrollIntoView();
|
|
5234
|
+
}, he = (f) => {
|
|
5208
5235
|
for (const T in f)
|
|
5209
|
-
$[T] = f[T], T === "mobile" && r(32,
|
|
5236
|
+
$[T] = f[T], T === "mobile" && r(32, It = `${f[T].prefix}${f[T].number}`);
|
|
5210
5237
|
$.affiliateMarker = $.promoCode ? $.promoCode : h ?? "";
|
|
5211
|
-
},
|
|
5238
|
+
}, Lt = (f) => {
|
|
5212
5239
|
if (f.data)
|
|
5213
5240
|
switch (f.data.type) {
|
|
5214
5241
|
case "RegisterStepOne":
|
|
5215
|
-
|
|
5242
|
+
he(f.data.registerStepOneData), we(), r(18, ke = !1), r(19, le = !0), Tt == !1 ? Tt = !0 : window.postMessage({ type: "StepTwoDataBackup", userData: $ }, window.location.href);
|
|
5216
5243
|
break;
|
|
5217
5244
|
case "RegisterStepTwo":
|
|
5218
|
-
|
|
5245
|
+
he(f.data.registerStepTwoData), we(), r(19, le = !1), r(20, ye = !0), Ht == !1 ? Ht = !0 : window.postMessage({ type: "StepThreeDataBackup", userData: $ }, window.location.href);
|
|
5219
5246
|
break;
|
|
5220
5247
|
case "RegisterStepThree":
|
|
5221
|
-
|
|
5248
|
+
he(f.data.registerStepThreeData), qr($);
|
|
5222
5249
|
break;
|
|
5223
5250
|
case "SmsHasBeenValidated":
|
|
5224
|
-
r(22,
|
|
5251
|
+
r(22, $e = !0), r(21, je = !1);
|
|
5225
5252
|
break;
|
|
5226
5253
|
case "GoBackStepTwo":
|
|
5227
|
-
|
|
5254
|
+
he(f.data.registerStepTwoData), we(), r(18, ke = !0), r(19, le = !1), window.postMessage({ type: "StepOneDataBackup", userData: $ }, window.location.href);
|
|
5228
5255
|
break;
|
|
5229
5256
|
case "GoBackStepThree":
|
|
5230
|
-
|
|
5257
|
+
he(f.data.registerStepThreeData), we(), r(19, le = !0), r(20, ye = !1), window.postMessage({ type: "StepTwoDataBackup", userData: $ }, window.location.href);
|
|
5231
5258
|
break;
|
|
5232
5259
|
}
|
|
5233
|
-
},
|
|
5260
|
+
}, Jr = () => {
|
|
5234
5261
|
typeof gtag == "function" && gtag("event", "Register", { context: "GeneralPlayerRegisterForm" });
|
|
5235
|
-
},
|
|
5262
|
+
}, qr = async (f) => {
|
|
5236
5263
|
f.language = u;
|
|
5237
5264
|
let T = {
|
|
5238
5265
|
method: "PUT",
|
|
@@ -5243,15 +5270,15 @@ function Gs(e, t, r) {
|
|
|
5243
5270
|
},
|
|
5244
5271
|
body: JSON.stringify(f)
|
|
5245
5272
|
}, I = await fetch(`${i}/v1/player/register`, T), W = await I.json();
|
|
5246
|
-
I.ok ? (r(20,
|
|
5273
|
+
I.ok ? (r(20, ye = !1), g === "false" ? r(22, $e = !0) : (r(17, vt = W.id), Qr(f, W.id)), f.username, f.password, Jr()) : (Ot = W.error.substring(W.error.indexOf("errorMessage") + 13, W.error.length), _t = !0, window.postMessage(
|
|
5247
5274
|
{
|
|
5248
5275
|
type: "ShowRegistrationError",
|
|
5249
|
-
showError:
|
|
5250
|
-
error:
|
|
5276
|
+
showError: _t,
|
|
5277
|
+
error: Ot
|
|
5251
5278
|
},
|
|
5252
5279
|
window.location.href
|
|
5253
5280
|
));
|
|
5254
|
-
},
|
|
5281
|
+
}, Qr = async (f, T) => {
|
|
5255
5282
|
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3)));
|
|
5256
5283
|
try {
|
|
5257
5284
|
const I = await fetch(`${i}/v1/player/sms/token`, {
|
|
@@ -5262,53 +5289,53 @@ function Gs(e, t, r) {
|
|
|
5262
5289
|
},
|
|
5263
5290
|
body: JSON.stringify({
|
|
5264
5291
|
userId: T,
|
|
5265
|
-
messageTemplate:
|
|
5292
|
+
messageTemplate: Vs,
|
|
5266
5293
|
destination: `${f.mobile.prefix}${f.mobile.number}`
|
|
5267
5294
|
})
|
|
5268
5295
|
}), W = await I.json();
|
|
5269
5296
|
if (I.ok) {
|
|
5270
|
-
r(30,
|
|
5271
|
-
let
|
|
5272
|
-
r(21,
|
|
5297
|
+
r(30, Ct = W.id);
|
|
5298
|
+
let zs = W.maxValidationAttempts;
|
|
5299
|
+
r(21, je = !0), r(31, _e = !1);
|
|
5273
5300
|
} else
|
|
5274
|
-
throw r(31,
|
|
5301
|
+
throw r(31, _e = !0), new Error("Failed to fetch");
|
|
5275
5302
|
} catch (I) {
|
|
5276
|
-
r(31,
|
|
5303
|
+
r(31, _e = !0), console.error(I);
|
|
5277
5304
|
}
|
|
5278
|
-
},
|
|
5305
|
+
}, Yr = () => {
|
|
5279
5306
|
m.split(",");
|
|
5280
|
-
},
|
|
5307
|
+
}, Kr = () => {
|
|
5281
5308
|
window.postMessage({ type: "ToLogin" }, window.location.href);
|
|
5282
|
-
},
|
|
5283
|
-
|
|
5309
|
+
}, en = () => {
|
|
5310
|
+
Cs(u);
|
|
5284
5311
|
};
|
|
5285
|
-
|
|
5286
|
-
window.removeEventListener("message",
|
|
5312
|
+
mn(() => (window.addEventListener("message", Lt, !1), () => {
|
|
5313
|
+
window.removeEventListener("message", Lt);
|
|
5287
5314
|
}));
|
|
5288
|
-
function
|
|
5289
|
-
|
|
5290
|
-
|
|
5315
|
+
function tn(f) {
|
|
5316
|
+
Ce[f ? "unshift" : "push"](() => {
|
|
5317
|
+
Ee = f, r(33, Ee);
|
|
5291
5318
|
});
|
|
5292
5319
|
}
|
|
5293
|
-
function
|
|
5294
|
-
|
|
5320
|
+
function rn(f) {
|
|
5321
|
+
Ce[f ? "unshift" : "push"](() => {
|
|
5295
5322
|
j = f, r(16, j);
|
|
5296
5323
|
});
|
|
5297
5324
|
}
|
|
5298
5325
|
return e.$$set = (f) => {
|
|
5299
|
-
"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, h = f.trackedanalyticsdata), "captchakey" in f && r(2, l = f.captchakey), "lang" in f && r(3, u = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5, m = 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, w = f.mbsource), "clientstyling" in f && r(10, O = f.clientstyling), "clientstylingurl" in f && r(11, P = f.clientstylingurl), "translationurl" in f && r(12,
|
|
5326
|
+
"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, h = f.trackedanalyticsdata), "captchakey" in f && r(2, l = f.captchakey), "lang" in f && r(3, u = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5, m = 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, w = f.mbsource), "clientstyling" in f && r(10, O = f.clientstyling), "clientstylingurl" in f && r(11, P = f.clientstylingurl), "translationurl" in f && r(12, R = f.translationurl), "savecredentials" in f && r(13, N = f.savecredentials), "custominputtextswitch" in f && r(14, C = f.custominputtextswitch), "personalidlength" in f && r(15, D = f.personalidlength);
|
|
5300
5327
|
}, e.$$.update = () => {
|
|
5301
5328
|
e.$$.dirty[0] & /*endpoint*/
|
|
5302
|
-
1 && i &&
|
|
5329
|
+
1 && i && zr(), e.$$.dirty[0] & /*lang*/
|
|
5303
5330
|
8 | e.$$.dirty[1] & /*cmsendpoint, env, userroles*/
|
|
5304
|
-
704 && s && u && o && b &&
|
|
5331
|
+
704 && s && u && o && b && Zr(), e.$$.dirty[0] & /*playerid, session*/
|
|
5305
5332
|
131074, e.$$.dirty[0] & /*lang*/
|
|
5306
|
-
8 && u &&
|
|
5307
|
-
32 && m &&
|
|
5308
|
-
66560 && O && j &&
|
|
5309
|
-
67584 && P && j &&
|
|
5310
|
-
66048 && w && j &&
|
|
5311
|
-
4096 &&
|
|
5333
|
+
8 && u && en(), e.$$.dirty[0] & /*disabledfields*/
|
|
5334
|
+
32 && m && Yr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5335
|
+
66560 && O && j && Is(j, O), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5336
|
+
67584 && P && j && Ls(j, P), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5337
|
+
66048 && w && j && Rs(j, `${w}.Style`, Vr), e.$$.dirty[0] & /*translationurl*/
|
|
5338
|
+
4096 && R && Wr();
|
|
5312
5339
|
}, [
|
|
5313
5340
|
i,
|
|
5314
5341
|
a,
|
|
@@ -5322,47 +5349,47 @@ function Gs(e, t, r) {
|
|
|
5322
5349
|
w,
|
|
5323
5350
|
O,
|
|
5324
5351
|
P,
|
|
5325
|
-
|
|
5352
|
+
R,
|
|
5326
5353
|
N,
|
|
5327
5354
|
C,
|
|
5328
5355
|
D,
|
|
5329
5356
|
j,
|
|
5330
|
-
|
|
5357
|
+
vt,
|
|
5331
5358
|
ke,
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
Ge,
|
|
5359
|
+
le,
|
|
5360
|
+
ye,
|
|
5335
5361
|
je,
|
|
5336
|
-
|
|
5362
|
+
$e,
|
|
5337
5363
|
Et,
|
|
5338
5364
|
wt,
|
|
5339
|
-
|
|
5340
|
-
|
|
5365
|
+
St,
|
|
5366
|
+
Ve,
|
|
5341
5367
|
Bt,
|
|
5342
5368
|
At,
|
|
5343
|
-
|
|
5344
|
-
ve,
|
|
5369
|
+
Pt,
|
|
5345
5370
|
Ct,
|
|
5346
5371
|
_e,
|
|
5372
|
+
It,
|
|
5373
|
+
Ee,
|
|
5347
5374
|
n,
|
|
5348
|
-
|
|
5349
|
-
|
|
5375
|
+
Xr,
|
|
5376
|
+
Kr,
|
|
5350
5377
|
s,
|
|
5351
5378
|
o,
|
|
5352
5379
|
h,
|
|
5353
5380
|
b,
|
|
5354
|
-
|
|
5355
|
-
|
|
5381
|
+
tn,
|
|
5382
|
+
rn
|
|
5356
5383
|
];
|
|
5357
5384
|
}
|
|
5358
|
-
class
|
|
5385
|
+
class Ws extends Hn {
|
|
5359
5386
|
constructor(t) {
|
|
5360
|
-
super(),
|
|
5387
|
+
super(), xn(
|
|
5361
5388
|
this,
|
|
5362
5389
|
t,
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5390
|
+
Xs,
|
|
5391
|
+
$s,
|
|
5392
|
+
fr,
|
|
5366
5393
|
{
|
|
5367
5394
|
endpoint: 0,
|
|
5368
5395
|
cmsendpoint: 37,
|
|
@@ -5385,7 +5412,7 @@ class js extends xn {
|
|
|
5385
5412
|
custominputtextswitch: 14,
|
|
5386
5413
|
personalidlength: 15
|
|
5387
5414
|
},
|
|
5388
|
-
|
|
5415
|
+
Ds,
|
|
5389
5416
|
[-1, -1, -1]
|
|
5390
5417
|
);
|
|
5391
5418
|
}
|
|
@@ -5510,43 +5537,43 @@ class js extends xn {
|
|
|
5510
5537
|
this.$$set({ personalidlength: t }), B();
|
|
5511
5538
|
}
|
|
5512
5539
|
}
|
|
5513
|
-
|
|
5540
|
+
Tn(Ws, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, trackedanalyticsdata: {}, captchakey: {}, lang: {}, licenseyears: {}, disabledfields: {}, defaultoptions: {}, smsverification: {}, simplepasswordvalidation: {}, userroles: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {}, custominputtextswitch: {}, personalidlength: {} }, [], [], !0);
|
|
5514
5541
|
export {
|
|
5515
5542
|
Z as $,
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5543
|
+
Qs as A,
|
|
5544
|
+
et as B,
|
|
5545
|
+
Ks as C,
|
|
5546
|
+
Js as D,
|
|
5547
|
+
Ys as E,
|
|
5548
|
+
ln as F,
|
|
5549
|
+
ae as G,
|
|
5550
|
+
Zs as H,
|
|
5551
|
+
Ws as I,
|
|
5552
|
+
Hn as S,
|
|
5553
|
+
Ur as a,
|
|
5554
|
+
on as b,
|
|
5555
|
+
Tn as c,
|
|
5529
5556
|
M as d,
|
|
5530
|
-
|
|
5557
|
+
ee as e,
|
|
5531
5558
|
B as f,
|
|
5532
|
-
|
|
5559
|
+
qs as g,
|
|
5533
5560
|
S as h,
|
|
5534
|
-
|
|
5561
|
+
xn as i,
|
|
5535
5562
|
F as j,
|
|
5536
5563
|
E as k,
|
|
5537
|
-
|
|
5564
|
+
hn as l,
|
|
5538
5565
|
H as m,
|
|
5539
|
-
|
|
5566
|
+
G as n,
|
|
5540
5567
|
U as o,
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5568
|
+
sn as p,
|
|
5569
|
+
mn as q,
|
|
5570
|
+
ge as r,
|
|
5571
|
+
fr as s,
|
|
5545
5572
|
V as t,
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5573
|
+
Ce as u,
|
|
5574
|
+
xe as v,
|
|
5575
|
+
Ps as w,
|
|
5576
|
+
Is as x,
|
|
5577
|
+
Ls as y,
|
|
5578
|
+
Rs as z
|
|
5552
5579
|
};
|