@everymatrix/cashier-verifications 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierVerifications-AxDwGdNn.cjs +18 -0
- package/components/{CashierVerifications-BkUnqHXL.js → CashierVerifications-BKJcRDli.js} +460 -414
- package/components/{CashierVerifications-C6ZKsJp5.js → CashierVerifications-BsMilNHs.js} +477 -431
- package/components/{CashierVideoModal-BmFxk33v.js → CashierVideoModal-B-CXY0VP.js} +15 -15
- package/components/{CashierVideoModal-BJo__hLC.cjs → CashierVideoModal-Z7NZ68GI.cjs} +1 -1
- package/components/{CashierVideoModal-DE2OHjhr.js → CashierVideoModal-ijUUQb6t.js} +19 -19
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/esnext/cashier-verifications.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-CzbjPCIe.cjs +0 -5
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function Q() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Yt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function St() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function Ie(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Yt);
|
|
11
11
|
}
|
|
12
12
|
function gt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Zt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ke;
|
|
19
|
-
function
|
|
19
|
+
function Kn(e, t) {
|
|
20
20
|
return e === t ? !0 : (ke || (ke = document.createElement("a")), ke.href = t, e === ke.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Pr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Jt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const i of t)
|
|
28
28
|
i(void 0);
|
|
@@ -31,21 +31,22 @@ function Yt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function $r(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Jt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function re(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const i =
|
|
40
|
+
function Br(e, t, r) {
|
|
41
|
+
const i = Mr(e);
|
|
42
42
|
if (!i.getElementById(t)) {
|
|
43
43
|
const n = Z("style");
|
|
44
|
-
n.id = t, n.textContent = r,
|
|
44
|
+
n.id = t, n.textContent = r, Cr(i, n);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
if (!e)
|
|
47
|
+
function Mr(e) {
|
|
48
|
+
if (!e)
|
|
49
|
+
return document;
|
|
49
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
50
51
|
return t && /** @type {ShadowRoot} */
|
|
51
52
|
t.host ? (
|
|
@@ -53,7 +54,7 @@ function $r(e) {
|
|
|
53
54
|
t
|
|
54
55
|
) : e.ownerDocument;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function Cr(e, t) {
|
|
57
58
|
return re(
|
|
58
59
|
/** @type {Document} */
|
|
59
60
|
e.head || e,
|
|
@@ -66,14 +67,14 @@ function ae(e, t, r) {
|
|
|
66
67
|
function ie(e) {
|
|
67
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function Dr(e, t) {
|
|
70
71
|
for (let r = 0; r < e.length; r += 1)
|
|
71
72
|
e[r] && e[r].d(t);
|
|
72
73
|
}
|
|
73
74
|
function Z(e) {
|
|
74
75
|
return document.createElement(e);
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function es(e) {
|
|
77
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
78
79
|
}
|
|
79
80
|
function vt(e) {
|
|
@@ -82,7 +83,7 @@ function vt(e) {
|
|
|
82
83
|
function xe() {
|
|
83
84
|
return vt(" ");
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function ts() {
|
|
86
87
|
return vt("");
|
|
87
88
|
}
|
|
88
89
|
function bt(e, t, r, i) {
|
|
@@ -95,17 +96,17 @@ function le(e, t, r) {
|
|
|
95
96
|
const i = t.toLowerCase();
|
|
96
97
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : K(e, t, r);
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function Ir(e) {
|
|
99
100
|
return Array.from(e.childNodes);
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function Lr(e, t) {
|
|
102
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
103
104
|
t);
|
|
104
105
|
}
|
|
105
106
|
function Ee(e, t, r) {
|
|
106
107
|
e.classList.toggle(t, !!r);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function Nr(e) {
|
|
109
110
|
const t = {};
|
|
110
111
|
return e.childNodes.forEach(
|
|
111
112
|
/** @param {Element} node */
|
|
@@ -118,19 +119,20 @@ let Me;
|
|
|
118
119
|
function Be(e) {
|
|
119
120
|
Me = e;
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
-
if (!Me)
|
|
122
|
+
function Rr() {
|
|
123
|
+
if (!Me)
|
|
124
|
+
throw new Error("Function called outside component initialization");
|
|
123
125
|
return Me;
|
|
124
126
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
+
function rs(e) {
|
|
128
|
+
Rr().$$.on_mount.push(e);
|
|
127
129
|
}
|
|
128
130
|
const ye = [], st = [];
|
|
129
131
|
let _e = [];
|
|
130
|
-
const
|
|
132
|
+
const Tt = [], kr = /* @__PURE__ */ Promise.resolve();
|
|
131
133
|
let ot = !1;
|
|
132
|
-
function
|
|
133
|
-
ot || (ot = !0,
|
|
134
|
+
function Ur() {
|
|
135
|
+
ot || (ot = !0, kr.then(te));
|
|
134
136
|
}
|
|
135
137
|
function at(e) {
|
|
136
138
|
_e.push(e);
|
|
@@ -145,55 +147,56 @@ function te() {
|
|
|
145
147
|
try {
|
|
146
148
|
for (; ve < ye.length; ) {
|
|
147
149
|
const t = ye[ve];
|
|
148
|
-
ve++, Be(t),
|
|
150
|
+
ve++, Be(t), Fr(t.$$);
|
|
149
151
|
}
|
|
150
152
|
} catch (t) {
|
|
151
153
|
throw ye.length = 0, ve = 0, t;
|
|
152
154
|
}
|
|
153
|
-
for (Be(null), ye.length = 0, ve = 0; st.length; )
|
|
155
|
+
for (Be(null), ye.length = 0, ve = 0; st.length; )
|
|
156
|
+
st.pop()();
|
|
154
157
|
for (let t = 0; t < _e.length; t += 1) {
|
|
155
158
|
const r = _e[t];
|
|
156
159
|
Qe.has(r) || (Qe.add(r), r());
|
|
157
160
|
}
|
|
158
161
|
_e.length = 0;
|
|
159
162
|
} while (ye.length);
|
|
160
|
-
for (;
|
|
161
|
-
|
|
163
|
+
for (; Tt.length; )
|
|
164
|
+
Tt.pop()();
|
|
162
165
|
ot = !1, Qe.clear(), Be(e);
|
|
163
166
|
}
|
|
164
|
-
function
|
|
167
|
+
function Fr(e) {
|
|
165
168
|
if (e.fragment !== null) {
|
|
166
169
|
e.update(), Ie(e.before_update);
|
|
167
170
|
const t = e.dirty;
|
|
168
171
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(at);
|
|
169
172
|
}
|
|
170
173
|
}
|
|
171
|
-
function
|
|
174
|
+
function Vr(e) {
|
|
172
175
|
const t = [], r = [];
|
|
173
176
|
_e.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), _e = t;
|
|
174
177
|
}
|
|
175
|
-
const
|
|
176
|
-
function
|
|
177
|
-
e && e.i && (
|
|
178
|
+
const Gr = /* @__PURE__ */ new Set();
|
|
179
|
+
function jr(e, t) {
|
|
180
|
+
e && e.i && (Gr.delete(e), e.i(t));
|
|
178
181
|
}
|
|
179
|
-
function
|
|
182
|
+
function Ht(e) {
|
|
180
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
181
184
|
}
|
|
182
|
-
function
|
|
185
|
+
function zr(e, t, r) {
|
|
183
186
|
const { fragment: i, after_update: n } = e.$$;
|
|
184
187
|
i && i.m(t, r), at(() => {
|
|
185
|
-
const s = e.$$.on_mount.map(
|
|
188
|
+
const s = e.$$.on_mount.map(Yt).filter(gt);
|
|
186
189
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ie(s), e.$$.on_mount = [];
|
|
187
190
|
}), n.forEach(at);
|
|
188
191
|
}
|
|
189
|
-
function
|
|
192
|
+
function Xr(e, t) {
|
|
190
193
|
const r = e.$$;
|
|
191
|
-
r.fragment !== null && (
|
|
194
|
+
r.fragment !== null && (Vr(r.after_update), Ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
192
195
|
}
|
|
193
|
-
function
|
|
194
|
-
e.$$.dirty[0] === -1 && (ye.push(e),
|
|
196
|
+
function Wr(e, t) {
|
|
197
|
+
e.$$.dirty[0] === -1 && (ye.push(e), Ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
195
198
|
}
|
|
196
|
-
function
|
|
199
|
+
function qr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
197
200
|
const o = Me;
|
|
198
201
|
Be(e);
|
|
199
202
|
const u = e.$$ = {
|
|
@@ -203,7 +206,7 @@ function Xr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
203
206
|
props: s,
|
|
204
207
|
update: Q,
|
|
205
208
|
not_equal: n,
|
|
206
|
-
bound:
|
|
209
|
+
bound: St(),
|
|
207
210
|
// lifecycle
|
|
208
211
|
on_mount: [],
|
|
209
212
|
on_destroy: [],
|
|
@@ -212,7 +215,7 @@ function Xr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
212
215
|
after_update: [],
|
|
213
216
|
context: new Map(t.context || (o ? o.$$.context : [])),
|
|
214
217
|
// everything else
|
|
215
|
-
callbacks:
|
|
218
|
+
callbacks: St(),
|
|
216
219
|
dirty: a,
|
|
217
220
|
skip_bound: !1,
|
|
218
221
|
root: t.target || o.$$.root
|
|
@@ -221,19 +224,19 @@ function Xr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
221
224
|
let h = !1;
|
|
222
225
|
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...E) => {
|
|
223
226
|
const H = E.length ? E[0] : m;
|
|
224
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = H) && (!u.skip_bound && u.bound[c] && u.bound[c](H), h &&
|
|
227
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = H) && (!u.skip_bound && u.bound[c] && u.bound[c](H), h && Wr(e, c)), m;
|
|
225
228
|
}) : [], u.update(), h = !0, Ie(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
226
229
|
if (t.hydrate) {
|
|
227
|
-
const c =
|
|
230
|
+
const c = Ir(t.target);
|
|
228
231
|
u.fragment && u.fragment.l(c), c.forEach(ie);
|
|
229
232
|
} else
|
|
230
233
|
u.fragment && u.fragment.c();
|
|
231
|
-
t.intro &&
|
|
234
|
+
t.intro && jr(e.$$.fragment), zr(e, t.target, t.anchor), te();
|
|
232
235
|
}
|
|
233
236
|
Be(o);
|
|
234
237
|
}
|
|
235
|
-
let
|
|
236
|
-
typeof HTMLElement == "function" && (
|
|
238
|
+
let Qt;
|
|
239
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
237
240
|
/** The Svelte component constructor */
|
|
238
241
|
$$ctor;
|
|
239
242
|
/** Slots */
|
|
@@ -292,7 +295,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
292
295
|
};
|
|
293
296
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
294
297
|
return;
|
|
295
|
-
const t = {}, r =
|
|
298
|
+
const t = {}, r = Nr(this);
|
|
296
299
|
for (const n of this.$$s)
|
|
297
300
|
n in r && (t[n] = [e(n)]);
|
|
298
301
|
for (const n of this.attributes) {
|
|
@@ -379,8 +382,8 @@ function Fe(e, t, r, i) {
|
|
|
379
382
|
return t;
|
|
380
383
|
}
|
|
381
384
|
}
|
|
382
|
-
function
|
|
383
|
-
let l = class extends
|
|
385
|
+
function Yr(e, t, r, i, n, s) {
|
|
386
|
+
let l = class extends Qt {
|
|
384
387
|
constructor() {
|
|
385
388
|
super(e, r, n), this.$$p_d = t;
|
|
386
389
|
}
|
|
@@ -408,7 +411,7 @@ function Wr(e, t, r, i, n, s) {
|
|
|
408
411
|
}), e.element = /** @type {any} */
|
|
409
412
|
l, l;
|
|
410
413
|
}
|
|
411
|
-
class
|
|
414
|
+
class Zr {
|
|
412
415
|
/**
|
|
413
416
|
* ### PRIVATE API
|
|
414
417
|
*
|
|
@@ -427,7 +430,7 @@ class qr {
|
|
|
427
430
|
$$set = void 0;
|
|
428
431
|
/** @returns {void} */
|
|
429
432
|
$destroy() {
|
|
430
|
-
|
|
433
|
+
Xr(this, 1), this.$destroy = Q;
|
|
431
434
|
}
|
|
432
435
|
/**
|
|
433
436
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -449,13 +452,13 @@ class qr {
|
|
|
449
452
|
* @returns {void}
|
|
450
453
|
*/
|
|
451
454
|
$set(t) {
|
|
452
|
-
this.$$set && !
|
|
455
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
453
456
|
}
|
|
454
457
|
}
|
|
455
|
-
const
|
|
456
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
458
|
+
const Jr = "4";
|
|
459
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
|
457
460
|
const be = [];
|
|
458
|
-
function
|
|
461
|
+
function Qr(e, t) {
|
|
459
462
|
return {
|
|
460
463
|
subscribe: We(e, t).subscribe
|
|
461
464
|
};
|
|
@@ -464,7 +467,7 @@ function We(e, t = Q) {
|
|
|
464
467
|
let r;
|
|
465
468
|
const i = /* @__PURE__ */ new Set();
|
|
466
469
|
function n(a) {
|
|
467
|
-
if (
|
|
470
|
+
if (Zt(e, a) && (e = a, r)) {
|
|
468
471
|
const o = !be.length;
|
|
469
472
|
for (const u of i)
|
|
470
473
|
u[1](), be.push(u, e);
|
|
@@ -491,7 +494,7 @@ function Oe(e, t, r) {
|
|
|
491
494
|
if (!n.every(Boolean))
|
|
492
495
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
493
496
|
const s = t.length < 2;
|
|
494
|
-
return
|
|
497
|
+
return Qr(r, (l, a) => {
|
|
495
498
|
let o = !1;
|
|
496
499
|
const u = [];
|
|
497
500
|
let h = 0, c = Q;
|
|
@@ -502,7 +505,7 @@ function Oe(e, t, r) {
|
|
|
502
505
|
const H = t(i ? u[0] : u, l, a);
|
|
503
506
|
s ? l(H) : c = gt(H) ? H : Q;
|
|
504
507
|
}, E = n.map(
|
|
505
|
-
(H, v) =>
|
|
508
|
+
(H, v) => Jt(
|
|
506
509
|
H,
|
|
507
510
|
($) => {
|
|
508
511
|
u[v] = $, h &= ~(1 << v), o && m();
|
|
@@ -517,71 +520,71 @@ function Oe(e, t, r) {
|
|
|
517
520
|
};
|
|
518
521
|
});
|
|
519
522
|
}
|
|
520
|
-
var
|
|
523
|
+
var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
521
524
|
function yt(e) {
|
|
522
525
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
523
526
|
}
|
|
524
|
-
var
|
|
525
|
-
return
|
|
527
|
+
var Kr = function(t) {
|
|
528
|
+
return ei(t) && !ti(t);
|
|
526
529
|
};
|
|
527
|
-
function
|
|
530
|
+
function ei(e) {
|
|
528
531
|
return !!e && typeof e == "object";
|
|
529
532
|
}
|
|
530
|
-
function
|
|
533
|
+
function ti(e) {
|
|
531
534
|
var t = Object.prototype.toString.call(e);
|
|
532
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
535
|
+
return t === "[object RegExp]" || t === "[object Date]" || ni(e);
|
|
533
536
|
}
|
|
534
|
-
var
|
|
535
|
-
function
|
|
536
|
-
return e.$$typeof ===
|
|
537
|
+
var ri = typeof Symbol == "function" && Symbol.for, ii = ri ? Symbol.for("react.element") : 60103;
|
|
538
|
+
function ni(e) {
|
|
539
|
+
return e.$$typeof === ii;
|
|
537
540
|
}
|
|
538
|
-
function
|
|
541
|
+
function si(e) {
|
|
539
542
|
return Array.isArray(e) ? [] : {};
|
|
540
543
|
}
|
|
541
544
|
function Ce(e, t) {
|
|
542
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? we(
|
|
545
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? we(si(e), e, t) : e;
|
|
543
546
|
}
|
|
544
|
-
function
|
|
547
|
+
function oi(e, t, r) {
|
|
545
548
|
return e.concat(t).map(function(i) {
|
|
546
549
|
return Ce(i, r);
|
|
547
550
|
});
|
|
548
551
|
}
|
|
549
|
-
function
|
|
552
|
+
function ai(e, t) {
|
|
550
553
|
if (!t.customMerge)
|
|
551
554
|
return we;
|
|
552
555
|
var r = t.customMerge(e);
|
|
553
556
|
return typeof r == "function" ? r : we;
|
|
554
557
|
}
|
|
555
|
-
function
|
|
558
|
+
function ui(e) {
|
|
556
559
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
557
560
|
return Object.propertyIsEnumerable.call(e, t);
|
|
558
561
|
}) : [];
|
|
559
562
|
}
|
|
560
|
-
function
|
|
561
|
-
return Object.keys(e).concat(
|
|
563
|
+
function Ot(e) {
|
|
564
|
+
return Object.keys(e).concat(ui(e));
|
|
562
565
|
}
|
|
563
|
-
function
|
|
566
|
+
function er(e, t) {
|
|
564
567
|
try {
|
|
565
568
|
return t in e;
|
|
566
569
|
} catch {
|
|
567
570
|
return !1;
|
|
568
571
|
}
|
|
569
572
|
}
|
|
570
|
-
function
|
|
571
|
-
return
|
|
573
|
+
function li(e, t) {
|
|
574
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
572
575
|
}
|
|
573
|
-
function
|
|
576
|
+
function hi(e, t, r) {
|
|
574
577
|
var i = {};
|
|
575
|
-
return r.isMergeableObject(e) &&
|
|
578
|
+
return r.isMergeableObject(e) && Ot(e).forEach(function(n) {
|
|
576
579
|
i[n] = Ce(e[n], r);
|
|
577
|
-
}),
|
|
578
|
-
|
|
580
|
+
}), Ot(t).forEach(function(n) {
|
|
581
|
+
li(e, n) || (er(e, n) && r.isMergeableObject(t[n]) ? i[n] = ai(n, r)(e[n], t[n], r) : i[n] = Ce(t[n], r));
|
|
579
582
|
}), i;
|
|
580
583
|
}
|
|
581
584
|
function we(e, t, r) {
|
|
582
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
585
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || oi, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = Ce;
|
|
583
586
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
584
|
-
return s ? i ? r.arrayMerge(e, t, r) :
|
|
587
|
+
return s ? i ? r.arrayMerge(e, t, r) : hi(e, t, r) : Ce(t, r);
|
|
585
588
|
}
|
|
586
589
|
we.all = function(t, r) {
|
|
587
590
|
if (!Array.isArray(t))
|
|
@@ -590,13 +593,28 @@ we.all = function(t, r) {
|
|
|
590
593
|
return we(i, n, r);
|
|
591
594
|
}, {});
|
|
592
595
|
};
|
|
593
|
-
var
|
|
594
|
-
const
|
|
596
|
+
var fi = we, ci = fi;
|
|
597
|
+
const di = /* @__PURE__ */ yt(ci);
|
|
598
|
+
/*! *****************************************************************************
|
|
599
|
+
Copyright (c) Microsoft Corporation.
|
|
600
|
+
|
|
601
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
602
|
+
purpose with or without fee is hereby granted.
|
|
603
|
+
|
|
604
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
605
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
606
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
607
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
608
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
609
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
610
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
611
|
+
***************************************************************************** */
|
|
595
612
|
var ut = function(e, t) {
|
|
596
613
|
return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
597
614
|
r.__proto__ = i;
|
|
598
615
|
} || function(r, i) {
|
|
599
|
-
for (var n in i)
|
|
616
|
+
for (var n in i)
|
|
617
|
+
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
600
618
|
}, ut(e, t);
|
|
601
619
|
};
|
|
602
620
|
function qe(e, t) {
|
|
@@ -612,72 +630,77 @@ var A = function() {
|
|
|
612
630
|
return A = Object.assign || function(t) {
|
|
613
631
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
614
632
|
r = arguments[i];
|
|
615
|
-
for (var s in r)
|
|
633
|
+
for (var s in r)
|
|
634
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
616
635
|
}
|
|
617
636
|
return t;
|
|
618
637
|
}, A.apply(this, arguments);
|
|
619
638
|
};
|
|
620
|
-
function
|
|
639
|
+
function mi(e, t) {
|
|
621
640
|
var r = {};
|
|
622
|
-
for (var i in e)
|
|
641
|
+
for (var i in e)
|
|
642
|
+
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
623
643
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
624
644
|
for (var n = 0, i = Object.getOwnPropertySymbols(e); n < i.length; n++)
|
|
625
645
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
626
646
|
return r;
|
|
627
647
|
}
|
|
628
648
|
function Ke(e, t, r) {
|
|
629
|
-
if (
|
|
630
|
-
(
|
|
631
|
-
|
|
649
|
+
if (arguments.length === 2)
|
|
650
|
+
for (var i = 0, n = t.length, s; i < n; i++)
|
|
651
|
+
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
|
652
|
+
return e.concat(s || t);
|
|
632
653
|
}
|
|
633
654
|
function et(e, t) {
|
|
634
|
-
var r = t && t.cache ? t.cache :
|
|
655
|
+
var r = t && t.cache ? t.cache : xi, i = t && t.serializer ? t.serializer : yi, n = t && t.strategy ? t.strategy : gi;
|
|
635
656
|
return n(e, {
|
|
636
657
|
cache: r,
|
|
637
658
|
serializer: i
|
|
638
659
|
});
|
|
639
660
|
}
|
|
640
|
-
function
|
|
661
|
+
function pi(e) {
|
|
641
662
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
642
663
|
}
|
|
643
|
-
function
|
|
644
|
-
var n =
|
|
664
|
+
function tr(e, t, r, i) {
|
|
665
|
+
var n = pi(i) ? i : r(i), s = t.get(n);
|
|
645
666
|
return typeof s > "u" && (s = e.call(this, i), t.set(n, s)), s;
|
|
646
667
|
}
|
|
647
|
-
function
|
|
668
|
+
function rr(e, t, r) {
|
|
648
669
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
649
670
|
return typeof s > "u" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
650
671
|
}
|
|
651
|
-
function
|
|
672
|
+
function xt(e, t, r, i, n) {
|
|
652
673
|
return r.bind(t, e, i, n);
|
|
653
674
|
}
|
|
654
|
-
function pi(e, t) {
|
|
655
|
-
var r = e.length === 1 ? mi : Kt;
|
|
656
|
-
return er(e, this, r, t.cache.create(), t.serializer);
|
|
657
|
-
}
|
|
658
675
|
function gi(e, t) {
|
|
659
|
-
|
|
676
|
+
var r = e.length === 1 ? tr : rr;
|
|
677
|
+
return xt(e, this, r, t.cache.create(), t.serializer);
|
|
678
|
+
}
|
|
679
|
+
function vi(e, t) {
|
|
680
|
+
return xt(e, this, rr, t.cache.create(), t.serializer);
|
|
681
|
+
}
|
|
682
|
+
function bi(e, t) {
|
|
683
|
+
return xt(e, this, tr, t.cache.create(), t.serializer);
|
|
660
684
|
}
|
|
661
|
-
var
|
|
685
|
+
var yi = function() {
|
|
662
686
|
return JSON.stringify(arguments);
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}()
|
|
675
|
-
), yi = {
|
|
687
|
+
};
|
|
688
|
+
function _t() {
|
|
689
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
690
|
+
}
|
|
691
|
+
_t.prototype.get = function(e) {
|
|
692
|
+
return this.cache[e];
|
|
693
|
+
};
|
|
694
|
+
_t.prototype.set = function(e, t) {
|
|
695
|
+
this.cache[e] = t;
|
|
696
|
+
};
|
|
697
|
+
var xi = {
|
|
676
698
|
create: function() {
|
|
677
|
-
return new
|
|
699
|
+
return new _t();
|
|
678
700
|
}
|
|
679
701
|
}, tt = {
|
|
680
|
-
variadic:
|
|
702
|
+
variadic: vi,
|
|
703
|
+
monadic: bi
|
|
681
704
|
}, T;
|
|
682
705
|
(function(e) {
|
|
683
706
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
@@ -690,43 +713,43 @@ var Se;
|
|
|
690
713
|
(function(e) {
|
|
691
714
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
692
715
|
})(Se || (Se = {}));
|
|
693
|
-
function
|
|
716
|
+
function At(e) {
|
|
694
717
|
return e.type === C.literal;
|
|
695
718
|
}
|
|
696
|
-
function
|
|
719
|
+
function _i(e) {
|
|
697
720
|
return e.type === C.argument;
|
|
698
721
|
}
|
|
699
|
-
function
|
|
722
|
+
function ir(e) {
|
|
700
723
|
return e.type === C.number;
|
|
701
724
|
}
|
|
702
|
-
function
|
|
725
|
+
function nr(e) {
|
|
703
726
|
return e.type === C.date;
|
|
704
727
|
}
|
|
705
|
-
function
|
|
728
|
+
function sr(e) {
|
|
706
729
|
return e.type === C.time;
|
|
707
730
|
}
|
|
708
|
-
function
|
|
731
|
+
function or(e) {
|
|
709
732
|
return e.type === C.select;
|
|
710
733
|
}
|
|
711
|
-
function
|
|
734
|
+
function ar(e) {
|
|
712
735
|
return e.type === C.plural;
|
|
713
736
|
}
|
|
714
|
-
function
|
|
737
|
+
function Ei(e) {
|
|
715
738
|
return e.type === C.pound;
|
|
716
739
|
}
|
|
717
|
-
function
|
|
740
|
+
function ur(e) {
|
|
718
741
|
return e.type === C.tag;
|
|
719
742
|
}
|
|
720
|
-
function
|
|
743
|
+
function lr(e) {
|
|
721
744
|
return !!(e && typeof e == "object" && e.type === Se.number);
|
|
722
745
|
}
|
|
723
746
|
function lt(e) {
|
|
724
747
|
return !!(e && typeof e == "object" && e.type === Se.dateTime);
|
|
725
748
|
}
|
|
726
|
-
var
|
|
727
|
-
function
|
|
749
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[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;
|
|
750
|
+
function Si(e) {
|
|
728
751
|
var t = {};
|
|
729
|
-
return e.replace(
|
|
752
|
+
return e.replace(wi, function(r) {
|
|
730
753
|
var i = r.length;
|
|
731
754
|
switch (r[0]) {
|
|
732
755
|
case "G":
|
|
@@ -815,11 +838,11 @@ function wi(e) {
|
|
|
815
838
|
return "";
|
|
816
839
|
}), t;
|
|
817
840
|
}
|
|
818
|
-
var
|
|
819
|
-
function
|
|
841
|
+
var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
842
|
+
function Hi(e) {
|
|
820
843
|
if (e.length === 0)
|
|
821
844
|
throw new Error("Number skeleton cannot be empty");
|
|
822
|
-
for (var t = e.split(
|
|
845
|
+
for (var t = e.split(Ti).filter(function(m) {
|
|
823
846
|
return m.length > 0;
|
|
824
847
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
825
848
|
var s = n[i], l = s.split("/");
|
|
@@ -834,17 +857,17 @@ function Ti(e) {
|
|
|
834
857
|
}
|
|
835
858
|
return r;
|
|
836
859
|
}
|
|
837
|
-
function
|
|
860
|
+
function Oi(e) {
|
|
838
861
|
return e.replace(/^(.*?)-/, "");
|
|
839
862
|
}
|
|
840
|
-
var
|
|
841
|
-
function
|
|
863
|
+
var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Ai = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
|
864
|
+
function $t(e) {
|
|
842
865
|
var t = {};
|
|
843
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
866
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, i, n) {
|
|
844
867
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
845
868
|
}), t;
|
|
846
869
|
}
|
|
847
|
-
function
|
|
870
|
+
function dr(e) {
|
|
848
871
|
switch (e) {
|
|
849
872
|
case "sign-auto":
|
|
850
873
|
return {
|
|
@@ -884,7 +907,7 @@ function fr(e) {
|
|
|
884
907
|
};
|
|
885
908
|
}
|
|
886
909
|
}
|
|
887
|
-
function
|
|
910
|
+
function Pi(e) {
|
|
888
911
|
var t;
|
|
889
912
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
890
913
|
notation: "engineering"
|
|
@@ -892,17 +915,17 @@ function Ai(e) {
|
|
|
892
915
|
notation: "scientific"
|
|
893
916
|
}, e = e.slice(1)), t) {
|
|
894
917
|
var r = e.slice(0, 2);
|
|
895
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
918
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
|
|
896
919
|
throw new Error("Malformed concise eng/scientific notation");
|
|
897
920
|
t.minimumIntegerDigits = e.length;
|
|
898
921
|
}
|
|
899
922
|
return t;
|
|
900
923
|
}
|
|
901
|
-
function
|
|
902
|
-
var t = {}, r =
|
|
924
|
+
function Bt(e) {
|
|
925
|
+
var t = {}, r = dr(e);
|
|
903
926
|
return r || t;
|
|
904
927
|
}
|
|
905
|
-
function
|
|
928
|
+
function $i(e) {
|
|
906
929
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
907
930
|
var n = i[r];
|
|
908
931
|
switch (n.stem) {
|
|
@@ -926,7 +949,7 @@ function Pi(e) {
|
|
|
926
949
|
continue;
|
|
927
950
|
case "measure-unit":
|
|
928
951
|
case "unit":
|
|
929
|
-
t.style = "unit", t.unit =
|
|
952
|
+
t.style = "unit", t.unit = Oi(n.options[0]);
|
|
930
953
|
continue;
|
|
931
954
|
case "compact-short":
|
|
932
955
|
case "K":
|
|
@@ -938,12 +961,12 @@ function Pi(e) {
|
|
|
938
961
|
continue;
|
|
939
962
|
case "scientific":
|
|
940
963
|
t = A(A(A({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
941
|
-
return A(A({}, o),
|
|
964
|
+
return A(A({}, o), Bt(u));
|
|
942
965
|
}, {}));
|
|
943
966
|
continue;
|
|
944
967
|
case "engineering":
|
|
945
968
|
t = A(A(A({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
946
|
-
return A(A({}, o),
|
|
969
|
+
return A(A({}, o), Bt(u));
|
|
947
970
|
}, {}));
|
|
948
971
|
continue;
|
|
949
972
|
case "notation-simple":
|
|
@@ -988,7 +1011,7 @@ function Pi(e) {
|
|
|
988
1011
|
case "integer-width":
|
|
989
1012
|
if (n.options.length > 1)
|
|
990
1013
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
991
|
-
n.options[0].replace(
|
|
1014
|
+
n.options[0].replace(Ai, function(o, u, h, c, m, E) {
|
|
992
1015
|
if (u)
|
|
993
1016
|
t.minimumIntegerDigits = h.length;
|
|
994
1017
|
else {
|
|
@@ -1001,27 +1024,27 @@ function Pi(e) {
|
|
|
1001
1024
|
});
|
|
1002
1025
|
continue;
|
|
1003
1026
|
}
|
|
1004
|
-
if (
|
|
1027
|
+
if (cr.test(n.stem)) {
|
|
1005
1028
|
t.minimumIntegerDigits = n.stem.length;
|
|
1006
1029
|
continue;
|
|
1007
1030
|
}
|
|
1008
|
-
if (
|
|
1031
|
+
if (Pt.test(n.stem)) {
|
|
1009
1032
|
if (n.options.length > 1)
|
|
1010
1033
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1011
|
-
n.stem.replace(
|
|
1034
|
+
n.stem.replace(Pt, function(o, u, h, c, m, E) {
|
|
1012
1035
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && E ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1013
1036
|
});
|
|
1014
1037
|
var s = n.options[0];
|
|
1015
|
-
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t),
|
|
1038
|
+
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t), $t(s)));
|
|
1016
1039
|
continue;
|
|
1017
1040
|
}
|
|
1018
|
-
if (
|
|
1019
|
-
t = A(A({}, t),
|
|
1041
|
+
if (fr.test(n.stem)) {
|
|
1042
|
+
t = A(A({}, t), $t(n.stem));
|
|
1020
1043
|
continue;
|
|
1021
1044
|
}
|
|
1022
|
-
var l =
|
|
1045
|
+
var l = dr(n.stem);
|
|
1023
1046
|
l && (t = A(A({}, t), l));
|
|
1024
|
-
var a =
|
|
1047
|
+
var a = Pi(n.stem);
|
|
1025
1048
|
a && (t = A(A({}, t), a));
|
|
1026
1049
|
}
|
|
1027
1050
|
return t;
|
|
@@ -2441,22 +2464,23 @@ var Ue = {
|
|
|
2441
2464
|
"h"
|
|
2442
2465
|
]
|
|
2443
2466
|
};
|
|
2444
|
-
function
|
|
2467
|
+
function Bi(e, t) {
|
|
2445
2468
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2446
2469
|
var n = e.charAt(i);
|
|
2447
2470
|
if (n === "j") {
|
|
2448
2471
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2449
2472
|
s++, i++;
|
|
2450
|
-
var l = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), o = "a", u =
|
|
2473
|
+
var l = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), o = "a", u = Mi(t);
|
|
2451
2474
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2452
2475
|
r += o;
|
|
2453
2476
|
for (; l-- > 0; )
|
|
2454
2477
|
r = u + r;
|
|
2455
|
-
} else
|
|
2478
|
+
} else
|
|
2479
|
+
n === "J" ? r += "H" : r += n;
|
|
2456
2480
|
}
|
|
2457
2481
|
return r;
|
|
2458
2482
|
}
|
|
2459
|
-
function
|
|
2483
|
+
function Mi(e) {
|
|
2460
2484
|
var t = e.hourCycle;
|
|
2461
2485
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2462
2486
|
e.hourCycles && // @ts-ignore
|
|
@@ -2478,20 +2502,20 @@ function Bi(e) {
|
|
|
2478
2502
|
var n = Ue[i || ""] || Ue[r || ""] || Ue["".concat(r, "-001")] || Ue["001"];
|
|
2479
2503
|
return n[0];
|
|
2480
2504
|
}
|
|
2481
|
-
var rt,
|
|
2505
|
+
var rt, Ci = new RegExp("^".concat(hr.source, "*")), Di = new RegExp("".concat(hr.source, "*$"));
|
|
2482
2506
|
function O(e, t) {
|
|
2483
2507
|
return { start: e, end: t };
|
|
2484
2508
|
}
|
|
2485
|
-
var
|
|
2509
|
+
var Ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), Li = !!String.fromCodePoint, Ni = !!Object.fromEntries, Ri = !!String.prototype.codePointAt, ki = !!String.prototype.trimStart, Ui = !!String.prototype.trimEnd, Fi = !!Number.isSafeInteger, Vi = Fi ? Number.isSafeInteger : function(e) {
|
|
2486
2510
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2487
2511
|
}, ht = !0;
|
|
2488
2512
|
try {
|
|
2489
|
-
var
|
|
2490
|
-
ht = ((rt =
|
|
2513
|
+
var Gi = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2514
|
+
ht = ((rt = Gi.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
|
|
2491
2515
|
} catch {
|
|
2492
2516
|
ht = !1;
|
|
2493
2517
|
}
|
|
2494
|
-
var
|
|
2518
|
+
var Mt = Ii ? (
|
|
2495
2519
|
// Native
|
|
2496
2520
|
function(t, r, i) {
|
|
2497
2521
|
return t.startsWith(r, i);
|
|
@@ -2501,7 +2525,7 @@ var $t = Di ? (
|
|
|
2501
2525
|
function(t, r, i) {
|
|
2502
2526
|
return t.slice(i, i + r.length) === r;
|
|
2503
2527
|
}
|
|
2504
|
-
), ft =
|
|
2528
|
+
), ft = Li ? String.fromCodePoint : (
|
|
2505
2529
|
// IE11
|
|
2506
2530
|
function() {
|
|
2507
2531
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2513,9 +2537,9 @@ var $t = Di ? (
|
|
|
2513
2537
|
}
|
|
2514
2538
|
return i;
|
|
2515
2539
|
}
|
|
2516
|
-
),
|
|
2540
|
+
), Ct = (
|
|
2517
2541
|
// native
|
|
2518
|
-
|
|
2542
|
+
Ni ? Object.fromEntries : (
|
|
2519
2543
|
// Ponyfill
|
|
2520
2544
|
function(t) {
|
|
2521
2545
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2525,7 +2549,7 @@ var $t = Di ? (
|
|
|
2525
2549
|
return r;
|
|
2526
2550
|
}
|
|
2527
2551
|
)
|
|
2528
|
-
),
|
|
2552
|
+
), mr = Ri ? (
|
|
2529
2553
|
// Native
|
|
2530
2554
|
function(t, r) {
|
|
2531
2555
|
return t.codePointAt(r);
|
|
@@ -2539,7 +2563,7 @@ var $t = Di ? (
|
|
|
2539
2563
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2540
2564
|
}
|
|
2541
2565
|
}
|
|
2542
|
-
),
|
|
2566
|
+
), ji = ki ? (
|
|
2543
2567
|
// Native
|
|
2544
2568
|
function(t) {
|
|
2545
2569
|
return t.trimStart();
|
|
@@ -2547,9 +2571,9 @@ var $t = Di ? (
|
|
|
2547
2571
|
) : (
|
|
2548
2572
|
// Ponyfill
|
|
2549
2573
|
function(t) {
|
|
2550
|
-
return t.replace(
|
|
2574
|
+
return t.replace(Ci, "");
|
|
2551
2575
|
}
|
|
2552
|
-
),
|
|
2576
|
+
), zi = Ui ? (
|
|
2553
2577
|
// Native
|
|
2554
2578
|
function(t) {
|
|
2555
2579
|
return t.trimEnd();
|
|
@@ -2557,32 +2581,32 @@ var $t = Di ? (
|
|
|
2557
2581
|
) : (
|
|
2558
2582
|
// Ponyfill
|
|
2559
2583
|
function(t) {
|
|
2560
|
-
return t.replace(
|
|
2584
|
+
return t.replace(Di, "");
|
|
2561
2585
|
}
|
|
2562
2586
|
);
|
|
2563
|
-
function
|
|
2587
|
+
function pr(e, t) {
|
|
2564
2588
|
return new RegExp(e, t);
|
|
2565
2589
|
}
|
|
2566
2590
|
var ct;
|
|
2567
2591
|
if (ht) {
|
|
2568
|
-
var
|
|
2592
|
+
var Dt = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2569
2593
|
ct = function(t, r) {
|
|
2570
2594
|
var i;
|
|
2571
|
-
|
|
2572
|
-
var n =
|
|
2595
|
+
Dt.lastIndex = r;
|
|
2596
|
+
var n = Dt.exec(t);
|
|
2573
2597
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2574
2598
|
};
|
|
2575
2599
|
} else
|
|
2576
2600
|
ct = function(t, r) {
|
|
2577
2601
|
for (var i = []; ; ) {
|
|
2578
|
-
var n =
|
|
2579
|
-
if (n === void 0 ||
|
|
2602
|
+
var n = mr(t, r);
|
|
2603
|
+
if (n === void 0 || gr(n) || Yi(n))
|
|
2580
2604
|
break;
|
|
2581
2605
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2582
2606
|
}
|
|
2583
2607
|
return ft.apply(void 0, i);
|
|
2584
2608
|
};
|
|
2585
|
-
var
|
|
2609
|
+
var Xi = (
|
|
2586
2610
|
/** @class */
|
|
2587
2611
|
function() {
|
|
2588
2612
|
function e(t, r) {
|
|
@@ -2664,7 +2688,7 @@ var zi = (
|
|
|
2664
2688
|
return this.error(T.INVALID_TAG, O(i, this.clonePosition()));
|
|
2665
2689
|
}, e.prototype.parseTagName = function() {
|
|
2666
2690
|
var t = this.offset();
|
|
2667
|
-
for (this.bump(); !this.isEOF() &&
|
|
2691
|
+
for (this.bump(); !this.isEOF() && qi(this.char()); )
|
|
2668
2692
|
this.bump();
|
|
2669
2693
|
return this.message.slice(t, this.offset());
|
|
2670
2694
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2693,7 +2717,7 @@ var zi = (
|
|
|
2693
2717
|
};
|
|
2694
2718
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2695
2719
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2696
|
-
!
|
|
2720
|
+
!Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2697
2721
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2698
2722
|
if (this.isEOF() || this.char() !== 39)
|
|
2699
2723
|
return null;
|
|
@@ -2780,7 +2804,7 @@ var zi = (
|
|
|
2780
2804
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2781
2805
|
if (c.err)
|
|
2782
2806
|
return c;
|
|
2783
|
-
var m =
|
|
2807
|
+
var m = zi(c.val);
|
|
2784
2808
|
if (m.length === 0)
|
|
2785
2809
|
return this.error(T.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2786
2810
|
var E = O(h, this.clonePosition());
|
|
@@ -2790,8 +2814,8 @@ var zi = (
|
|
|
2790
2814
|
if (H.err)
|
|
2791
2815
|
return H;
|
|
2792
2816
|
var v = O(n, this.clonePosition());
|
|
2793
|
-
if (u &&
|
|
2794
|
-
var $ =
|
|
2817
|
+
if (u && Mt(u?.style, "::", 0)) {
|
|
2818
|
+
var $ = ji(u.style.slice(2));
|
|
2795
2819
|
if (a === "number") {
|
|
2796
2820
|
var c = this.parseNumberSkeletonFromString($, u.styleLocation);
|
|
2797
2821
|
return c.err ? c : {
|
|
@@ -2802,12 +2826,12 @@ var zi = (
|
|
|
2802
2826
|
if ($.length === 0)
|
|
2803
2827
|
return this.error(T.EXPECT_DATE_TIME_SKELETON, v);
|
|
2804
2828
|
var V = $;
|
|
2805
|
-
this.locale && (V =
|
|
2829
|
+
this.locale && (V = Bi($, this.locale));
|
|
2806
2830
|
var m = {
|
|
2807
2831
|
type: Se.dateTime,
|
|
2808
2832
|
pattern: V,
|
|
2809
2833
|
location: u.styleLocation,
|
|
2810
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2834
|
+
parsedOptions: this.shouldParseSkeletons ? Si(V) : {}
|
|
2811
2835
|
}, U = a === "date" ? C.date : C.time;
|
|
2812
2836
|
return {
|
|
2813
2837
|
val: { type: U, value: i, location: v, style: m },
|
|
@@ -2853,7 +2877,7 @@ var zi = (
|
|
|
2853
2877
|
val: {
|
|
2854
2878
|
type: C.select,
|
|
2855
2879
|
value: i,
|
|
2856
|
-
options:
|
|
2880
|
+
options: Ct(L.val),
|
|
2857
2881
|
location: q
|
|
2858
2882
|
},
|
|
2859
2883
|
err: null
|
|
@@ -2861,7 +2885,7 @@ var zi = (
|
|
|
2861
2885
|
val: {
|
|
2862
2886
|
type: C.plural,
|
|
2863
2887
|
value: i,
|
|
2864
|
-
options:
|
|
2888
|
+
options: Ct(L.val),
|
|
2865
2889
|
offset: I,
|
|
2866
2890
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2867
2891
|
location: q
|
|
@@ -2912,7 +2936,7 @@ var zi = (
|
|
|
2912
2936
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2913
2937
|
var i = [];
|
|
2914
2938
|
try {
|
|
2915
|
-
i =
|
|
2939
|
+
i = Hi(t);
|
|
2916
2940
|
} catch {
|
|
2917
2941
|
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
2918
2942
|
}
|
|
@@ -2921,7 +2945,7 @@ var zi = (
|
|
|
2921
2945
|
type: Se.number,
|
|
2922
2946
|
tokens: i,
|
|
2923
2947
|
location: r,
|
|
2924
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2948
|
+
parsedOptions: this.shouldParseSkeletons ? $i(i) : {}
|
|
2925
2949
|
},
|
|
2926
2950
|
err: null
|
|
2927
2951
|
};
|
|
@@ -2969,7 +2993,7 @@ var zi = (
|
|
|
2969
2993
|
break;
|
|
2970
2994
|
}
|
|
2971
2995
|
var o = O(n, this.clonePosition());
|
|
2972
|
-
return s ? (l *= i,
|
|
2996
|
+
return s ? (l *= i, Vi(l) ? { val: l, err: null } : this.error(r, o)) : this.error(t, o);
|
|
2973
2997
|
}, e.prototype.offset = function() {
|
|
2974
2998
|
return this.position.offset;
|
|
2975
2999
|
}, e.prototype.isEOF = function() {
|
|
@@ -2984,7 +3008,7 @@ var zi = (
|
|
|
2984
3008
|
var t = this.position.offset;
|
|
2985
3009
|
if (t >= this.message.length)
|
|
2986
3010
|
throw Error("out of bound");
|
|
2987
|
-
var r =
|
|
3011
|
+
var r = mr(this.message, t);
|
|
2988
3012
|
if (r === void 0)
|
|
2989
3013
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2990
3014
|
return r;
|
|
@@ -3003,7 +3027,7 @@ var zi = (
|
|
|
3003
3027
|
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);
|
|
3004
3028
|
}
|
|
3005
3029
|
}, e.prototype.bumpIf = function(t) {
|
|
3006
|
-
if (
|
|
3030
|
+
if (Mt(this.message, t, this.offset())) {
|
|
3007
3031
|
for (var r = 0; r < t.length; r++)
|
|
3008
3032
|
this.bump();
|
|
3009
3033
|
return !0;
|
|
@@ -3025,7 +3049,7 @@ var zi = (
|
|
|
3025
3049
|
break;
|
|
3026
3050
|
}
|
|
3027
3051
|
}, e.prototype.bumpSpace = function() {
|
|
3028
|
-
for (; !this.isEOF() &&
|
|
3052
|
+
for (; !this.isEOF() && gr(this.char()); )
|
|
3029
3053
|
this.bump();
|
|
3030
3054
|
}, e.prototype.peek = function() {
|
|
3031
3055
|
if (this.isEOF())
|
|
@@ -3038,29 +3062,30 @@ var zi = (
|
|
|
3038
3062
|
function dt(e) {
|
|
3039
3063
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3040
3064
|
}
|
|
3041
|
-
function
|
|
3065
|
+
function Wi(e) {
|
|
3042
3066
|
return dt(e) || e === 47;
|
|
3043
3067
|
}
|
|
3044
|
-
function
|
|
3068
|
+
function qi(e) {
|
|
3045
3069
|
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;
|
|
3046
3070
|
}
|
|
3047
|
-
function
|
|
3071
|
+
function gr(e) {
|
|
3048
3072
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3049
3073
|
}
|
|
3050
|
-
function
|
|
3074
|
+
function Yi(e) {
|
|
3051
3075
|
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;
|
|
3052
3076
|
}
|
|
3053
3077
|
function mt(e) {
|
|
3054
3078
|
e.forEach(function(t) {
|
|
3055
|
-
if (delete t.location,
|
|
3079
|
+
if (delete t.location, or(t) || ar(t))
|
|
3056
3080
|
for (var r in t.options)
|
|
3057
3081
|
delete t.options[r].location, mt(t.options[r].value);
|
|
3058
|
-
else
|
|
3082
|
+
else
|
|
3083
|
+
ir(t) && lr(t.style) || (nr(t) || sr(t)) && lt(t.style) ? delete t.style.location : ur(t) && mt(t.children);
|
|
3059
3084
|
});
|
|
3060
3085
|
}
|
|
3061
|
-
function
|
|
3086
|
+
function Zi(e, t) {
|
|
3062
3087
|
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3063
|
-
var r = new
|
|
3088
|
+
var r = new Xi(e, t).parse();
|
|
3064
3089
|
if (r.err) {
|
|
3065
3090
|
var i = SyntaxError(T[r.err.kind]);
|
|
3066
3091
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
@@ -3083,7 +3108,7 @@ var Ye = (
|
|
|
3083
3108
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3084
3109
|
}, t;
|
|
3085
3110
|
}(Error)
|
|
3086
|
-
),
|
|
3111
|
+
), It = (
|
|
3087
3112
|
/** @class */
|
|
3088
3113
|
function(e) {
|
|
3089
3114
|
qe(t, e);
|
|
@@ -3092,7 +3117,7 @@ var Ye = (
|
|
|
3092
3117
|
}
|
|
3093
3118
|
return t;
|
|
3094
3119
|
}(Ye)
|
|
3095
|
-
),
|
|
3120
|
+
), Ji = (
|
|
3096
3121
|
/** @class */
|
|
3097
3122
|
function(e) {
|
|
3098
3123
|
qe(t, e);
|
|
@@ -3101,7 +3126,7 @@ var Ye = (
|
|
|
3101
3126
|
}
|
|
3102
3127
|
return t;
|
|
3103
3128
|
}(Ye)
|
|
3104
|
-
),
|
|
3129
|
+
), Qi = (
|
|
3105
3130
|
/** @class */
|
|
3106
3131
|
function(e) {
|
|
3107
3132
|
qe(t, e);
|
|
@@ -3114,17 +3139,17 @@ var Ye = (
|
|
|
3114
3139
|
(function(e) {
|
|
3115
3140
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3116
3141
|
})(j || (j = {}));
|
|
3117
|
-
function
|
|
3142
|
+
function Ki(e) {
|
|
3118
3143
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3119
3144
|
var i = t[t.length - 1];
|
|
3120
3145
|
return !i || i.type !== j.literal || r.type !== j.literal ? t.push(r) : i.value += r.value, t;
|
|
3121
3146
|
}, []);
|
|
3122
3147
|
}
|
|
3123
|
-
function
|
|
3148
|
+
function en(e) {
|
|
3124
3149
|
return typeof e == "function";
|
|
3125
3150
|
}
|
|
3126
3151
|
function Ve(e, t, r, i, n, s, l) {
|
|
3127
|
-
if (e.length === 1 &&
|
|
3152
|
+
if (e.length === 1 && At(e[0]))
|
|
3128
3153
|
return [
|
|
3129
3154
|
{
|
|
3130
3155
|
type: j.literal,
|
|
@@ -3133,14 +3158,14 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3133
3158
|
];
|
|
3134
3159
|
for (var a = [], o = 0, u = e; o < u.length; o++) {
|
|
3135
3160
|
var h = u[o];
|
|
3136
|
-
if (
|
|
3161
|
+
if (At(h)) {
|
|
3137
3162
|
a.push({
|
|
3138
3163
|
type: j.literal,
|
|
3139
3164
|
value: h.value
|
|
3140
3165
|
});
|
|
3141
3166
|
continue;
|
|
3142
3167
|
}
|
|
3143
|
-
if (
|
|
3168
|
+
if (Ei(h)) {
|
|
3144
3169
|
typeof s == "number" && a.push({
|
|
3145
3170
|
type: j.literal,
|
|
3146
3171
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3149,16 +3174,16 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3149
3174
|
}
|
|
3150
3175
|
var c = h.value;
|
|
3151
3176
|
if (!(n && c in n))
|
|
3152
|
-
throw new
|
|
3177
|
+
throw new Qi(c, l);
|
|
3153
3178
|
var m = n[c];
|
|
3154
|
-
if (
|
|
3179
|
+
if (_i(h)) {
|
|
3155
3180
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3156
3181
|
type: typeof m == "string" ? j.literal : j.object,
|
|
3157
3182
|
value: m
|
|
3158
3183
|
});
|
|
3159
3184
|
continue;
|
|
3160
3185
|
}
|
|
3161
|
-
if (
|
|
3186
|
+
if (nr(h)) {
|
|
3162
3187
|
var E = typeof h.style == "string" ? i.date[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3163
3188
|
a.push({
|
|
3164
3189
|
type: j.literal,
|
|
@@ -3166,7 +3191,7 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3166
3191
|
});
|
|
3167
3192
|
continue;
|
|
3168
3193
|
}
|
|
3169
|
-
if (
|
|
3194
|
+
if (sr(h)) {
|
|
3170
3195
|
var E = typeof h.style == "string" ? i.time[h.style] : lt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3171
3196
|
a.push({
|
|
3172
3197
|
type: j.literal,
|
|
@@ -3174,18 +3199,18 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3174
3199
|
});
|
|
3175
3200
|
continue;
|
|
3176
3201
|
}
|
|
3177
|
-
if (
|
|
3178
|
-
var E = typeof h.style == "string" ? i.number[h.style] :
|
|
3202
|
+
if (ir(h)) {
|
|
3203
|
+
var E = typeof h.style == "string" ? i.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3179
3204
|
E && E.scale && (m = m * (E.scale || 1)), a.push({
|
|
3180
3205
|
type: j.literal,
|
|
3181
3206
|
value: r.getNumberFormat(t, E).format(m)
|
|
3182
3207
|
});
|
|
3183
3208
|
continue;
|
|
3184
3209
|
}
|
|
3185
|
-
if (
|
|
3210
|
+
if (ur(h)) {
|
|
3186
3211
|
var H = h.children, v = h.value, $ = n[v];
|
|
3187
|
-
if (!
|
|
3188
|
-
throw new
|
|
3212
|
+
if (!en($))
|
|
3213
|
+
throw new Ji(v, "function", l);
|
|
3189
3214
|
var V = Ve(H, t, r, i, n, s), U = $(V.map(function(I) {
|
|
3190
3215
|
return I.value;
|
|
3191
3216
|
}));
|
|
@@ -3196,14 +3221,14 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3196
3221
|
};
|
|
3197
3222
|
}));
|
|
3198
3223
|
}
|
|
3199
|
-
if (
|
|
3224
|
+
if (or(h)) {
|
|
3200
3225
|
var B = h.options[m] || h.options.other;
|
|
3201
3226
|
if (!B)
|
|
3202
|
-
throw new
|
|
3227
|
+
throw new It(h.value, m, Object.keys(h.options), l);
|
|
3203
3228
|
a.push.apply(a, Ve(B.value, t, r, i, n));
|
|
3204
3229
|
continue;
|
|
3205
3230
|
}
|
|
3206
|
-
if (
|
|
3231
|
+
if (ar(h)) {
|
|
3207
3232
|
var B = h.options["=".concat(m)];
|
|
3208
3233
|
if (!B) {
|
|
3209
3234
|
if (!Intl.PluralRules)
|
|
@@ -3214,21 +3239,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3214
3239
|
B = h.options[z] || h.options.other;
|
|
3215
3240
|
}
|
|
3216
3241
|
if (!B)
|
|
3217
|
-
throw new
|
|
3242
|
+
throw new It(h.value, m, Object.keys(h.options), l);
|
|
3218
3243
|
a.push.apply(a, Ve(B.value, t, r, i, n, m - (h.offset || 0)));
|
|
3219
3244
|
continue;
|
|
3220
3245
|
}
|
|
3221
3246
|
}
|
|
3222
|
-
return
|
|
3247
|
+
return Ki(a);
|
|
3223
3248
|
}
|
|
3224
|
-
function
|
|
3249
|
+
function tn(e, t) {
|
|
3225
3250
|
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3226
3251
|
return r[i] = A(A({}, e[i]), t[i] || {}), r;
|
|
3227
3252
|
}, {})) : e;
|
|
3228
3253
|
}
|
|
3229
|
-
function
|
|
3254
|
+
function rn(e, t) {
|
|
3230
3255
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3231
|
-
return r[i] =
|
|
3256
|
+
return r[i] = tn(e[i], t[i]), r;
|
|
3232
3257
|
}, A({}, e)) : e;
|
|
3233
3258
|
}
|
|
3234
3259
|
function it(e) {
|
|
@@ -3245,7 +3270,7 @@ function it(e) {
|
|
|
3245
3270
|
}
|
|
3246
3271
|
};
|
|
3247
3272
|
}
|
|
3248
|
-
function
|
|
3273
|
+
function nn(e) {
|
|
3249
3274
|
return e === void 0 && (e = {
|
|
3250
3275
|
number: {},
|
|
3251
3276
|
dateTime: {},
|
|
@@ -3277,7 +3302,7 @@ function rn(e) {
|
|
|
3277
3302
|
})
|
|
3278
3303
|
};
|
|
3279
3304
|
}
|
|
3280
|
-
var
|
|
3305
|
+
var vr = (
|
|
3281
3306
|
/** @class */
|
|
3282
3307
|
function() {
|
|
3283
3308
|
function e(t, r, i, n) {
|
|
@@ -3309,13 +3334,13 @@ var pr = (
|
|
|
3309
3334
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3310
3335
|
var l = n || {};
|
|
3311
3336
|
l.formatters;
|
|
3312
|
-
var a =
|
|
3337
|
+
var a = mi(l, ["formatters"]);
|
|
3313
3338
|
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3314
3339
|
} else
|
|
3315
3340
|
this.ast = t;
|
|
3316
3341
|
if (!Array.isArray(this.ast))
|
|
3317
3342
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3318
|
-
this.formats =
|
|
3343
|
+
this.formats = rn(e.formats, i), this.formatters = n && n.formatters || nn(this.formatterCache);
|
|
3319
3344
|
}
|
|
3320
3345
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3321
3346
|
get: function() {
|
|
@@ -3328,7 +3353,7 @@ var pr = (
|
|
|
3328
3353
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3329
3354
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3330
3355
|
}
|
|
3331
|
-
}, e.__parse =
|
|
3356
|
+
}, e.__parse = Zi, e.formats = {
|
|
3332
3357
|
number: {
|
|
3333
3358
|
integer: {
|
|
3334
3359
|
maximumFractionDigits: 0
|
|
@@ -3389,7 +3414,7 @@ var pr = (
|
|
|
3389
3414
|
}, e;
|
|
3390
3415
|
}()
|
|
3391
3416
|
);
|
|
3392
|
-
function
|
|
3417
|
+
function sn(e, t) {
|
|
3393
3418
|
if (t == null)
|
|
3394
3419
|
return;
|
|
3395
3420
|
if (t in e)
|
|
@@ -3410,60 +3435,60 @@ function nn(e, t) {
|
|
|
3410
3435
|
i = void 0;
|
|
3411
3436
|
return i;
|
|
3412
3437
|
}
|
|
3413
|
-
const he = {},
|
|
3438
|
+
const he = {}, on = (e, t, r) => r && (t in he || (he[t] = {}), e in he[t] || (he[t][e] = r), r), br = (e, t) => {
|
|
3414
3439
|
if (t == null)
|
|
3415
3440
|
return;
|
|
3416
3441
|
if (t in he && e in he[t])
|
|
3417
3442
|
return he[t][e];
|
|
3418
3443
|
const r = Ne(t);
|
|
3419
3444
|
for (let i = 0; i < r.length; i++) {
|
|
3420
|
-
const n = r[i], s =
|
|
3445
|
+
const n = r[i], s = un(n, e);
|
|
3421
3446
|
if (s)
|
|
3422
|
-
return
|
|
3447
|
+
return on(e, t, s);
|
|
3423
3448
|
}
|
|
3424
3449
|
};
|
|
3425
|
-
let
|
|
3450
|
+
let Et;
|
|
3426
3451
|
const Le = We({});
|
|
3427
|
-
function
|
|
3428
|
-
return
|
|
3452
|
+
function an(e) {
|
|
3453
|
+
return Et[e] || null;
|
|
3429
3454
|
}
|
|
3430
|
-
function
|
|
3431
|
-
return e in
|
|
3455
|
+
function yr(e) {
|
|
3456
|
+
return e in Et;
|
|
3432
3457
|
}
|
|
3433
|
-
function
|
|
3434
|
-
if (!
|
|
3458
|
+
function un(e, t) {
|
|
3459
|
+
if (!yr(e))
|
|
3435
3460
|
return null;
|
|
3436
|
-
const r =
|
|
3437
|
-
return
|
|
3461
|
+
const r = an(e);
|
|
3462
|
+
return sn(r, t);
|
|
3438
3463
|
}
|
|
3439
|
-
function
|
|
3464
|
+
function ln(e) {
|
|
3440
3465
|
if (e == null)
|
|
3441
3466
|
return;
|
|
3442
3467
|
const t = Ne(e);
|
|
3443
3468
|
for (let r = 0; r < t.length; r++) {
|
|
3444
3469
|
const i = t[r];
|
|
3445
|
-
if (
|
|
3470
|
+
if (yr(i))
|
|
3446
3471
|
return i;
|
|
3447
3472
|
}
|
|
3448
3473
|
}
|
|
3449
|
-
function
|
|
3450
|
-
delete he[e], Le.update((r) => (r[e] =
|
|
3474
|
+
function xr(e, ...t) {
|
|
3475
|
+
delete he[e], Le.update((r) => (r[e] = di.all([r[e] || {}, ...t]), r));
|
|
3451
3476
|
}
|
|
3452
3477
|
Oe(
|
|
3453
3478
|
[Le],
|
|
3454
3479
|
([e]) => Object.keys(e)
|
|
3455
3480
|
);
|
|
3456
|
-
Le.subscribe((e) =>
|
|
3481
|
+
Le.subscribe((e) => Et = e);
|
|
3457
3482
|
const Ge = {};
|
|
3458
|
-
function
|
|
3483
|
+
function hn(e, t) {
|
|
3459
3484
|
Ge[e].delete(t), Ge[e].size === 0 && delete Ge[e];
|
|
3460
3485
|
}
|
|
3461
|
-
function
|
|
3486
|
+
function _r(e) {
|
|
3462
3487
|
return Ge[e];
|
|
3463
3488
|
}
|
|
3464
|
-
function
|
|
3489
|
+
function fn(e) {
|
|
3465
3490
|
return Ne(e).map((t) => {
|
|
3466
|
-
const r =
|
|
3491
|
+
const r = _r(t);
|
|
3467
3492
|
return [t, r ? [...r] : []];
|
|
3468
3493
|
}).filter(([, t]) => t.length > 0);
|
|
3469
3494
|
}
|
|
@@ -3471,40 +3496,40 @@ function je(e) {
|
|
|
3471
3496
|
return e == null ? !1 : Ne(e).some(
|
|
3472
3497
|
(t) => {
|
|
3473
3498
|
var r;
|
|
3474
|
-
return (r =
|
|
3499
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
|
3475
3500
|
}
|
|
3476
3501
|
);
|
|
3477
3502
|
}
|
|
3478
|
-
function
|
|
3503
|
+
function cn(e, t) {
|
|
3479
3504
|
return Promise.all(
|
|
3480
|
-
t.map((i) => (
|
|
3481
|
-
).then((i) =>
|
|
3505
|
+
t.map((i) => (hn(e, i), i().then((n) => n.default || n)))
|
|
3506
|
+
).then((i) => xr(e, ...i));
|
|
3482
3507
|
}
|
|
3483
3508
|
const Pe = {};
|
|
3484
|
-
function
|
|
3509
|
+
function Er(e) {
|
|
3485
3510
|
if (!je(e))
|
|
3486
3511
|
return e in Pe ? Pe[e] : Promise.resolve();
|
|
3487
|
-
const t =
|
|
3512
|
+
const t = fn(e);
|
|
3488
3513
|
return Pe[e] = Promise.all(
|
|
3489
3514
|
t.map(
|
|
3490
|
-
([r, i]) =>
|
|
3515
|
+
([r, i]) => cn(r, i)
|
|
3491
3516
|
)
|
|
3492
3517
|
).then(() => {
|
|
3493
3518
|
if (je(e))
|
|
3494
|
-
return
|
|
3519
|
+
return Er(e);
|
|
3495
3520
|
delete Pe[e];
|
|
3496
3521
|
}), Pe[e];
|
|
3497
3522
|
}
|
|
3498
|
-
var
|
|
3523
|
+
var Lt = Object.getOwnPropertySymbols, dn = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable, pn = (e, t) => {
|
|
3499
3524
|
var r = {};
|
|
3500
3525
|
for (var i in e)
|
|
3501
|
-
|
|
3502
|
-
if (e != null &&
|
|
3503
|
-
for (var i of
|
|
3504
|
-
t.indexOf(i) < 0 &&
|
|
3526
|
+
dn.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3527
|
+
if (e != null && Lt)
|
|
3528
|
+
for (var i of Lt(e))
|
|
3529
|
+
t.indexOf(i) < 0 && mn.call(e, i) && (r[i] = e[i]);
|
|
3505
3530
|
return r;
|
|
3506
3531
|
};
|
|
3507
|
-
const
|
|
3532
|
+
const gn = {
|
|
3508
3533
|
number: {
|
|
3509
3534
|
scientific: { notation: "scientific" },
|
|
3510
3535
|
engineering: { notation: "engineering" },
|
|
@@ -3534,7 +3559,7 @@ const pn = {
|
|
|
3534
3559
|
}
|
|
3535
3560
|
}
|
|
3536
3561
|
};
|
|
3537
|
-
function
|
|
3562
|
+
function vn({ locale: e, id: t }) {
|
|
3538
3563
|
console.warn(
|
|
3539
3564
|
`[svelte-i18n] The message "${t}" was not found in "${Ne(
|
|
3540
3565
|
e
|
|
@@ -3543,49 +3568,49 @@ function gn({ locale: e, id: t }) {
|
|
|
3543
3568
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3544
3569
|
);
|
|
3545
3570
|
}
|
|
3546
|
-
const
|
|
3571
|
+
const bn = {
|
|
3547
3572
|
fallbackLocale: null,
|
|
3548
3573
|
loadingDelay: 200,
|
|
3549
|
-
formats:
|
|
3574
|
+
formats: gn,
|
|
3550
3575
|
warnOnMissingMessages: !0,
|
|
3551
3576
|
handleMissingMessage: void 0,
|
|
3552
3577
|
ignoreTag: !0
|
|
3553
|
-
}, $e =
|
|
3578
|
+
}, $e = bn;
|
|
3554
3579
|
function He() {
|
|
3555
3580
|
return $e;
|
|
3556
3581
|
}
|
|
3557
|
-
function
|
|
3558
|
-
const t = e, { formats: r } = t, i =
|
|
3582
|
+
function yn(e) {
|
|
3583
|
+
const t = e, { formats: r } = t, i = pn(t, ["formats"]);
|
|
3559
3584
|
let n = e.fallbackLocale;
|
|
3560
3585
|
if (e.initialLocale)
|
|
3561
3586
|
try {
|
|
3562
|
-
|
|
3587
|
+
vr.resolveLocale(e.initialLocale) && (n = e.initialLocale);
|
|
3563
3588
|
} catch {
|
|
3564
3589
|
console.warn(
|
|
3565
3590
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3566
3591
|
);
|
|
3567
3592
|
}
|
|
3568
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3593
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = vn : console.warn(
|
|
3569
3594
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3570
3595
|
)), Object.assign($e, i, { initialLocale: n }), r && ("number" in r && Object.assign($e.formats.number, r.number), "date" in r && Object.assign($e.formats.date, r.date), "time" in r && Object.assign($e.formats.time, r.time)), de.set(n);
|
|
3571
3596
|
}
|
|
3572
3597
|
const nt = We(!1);
|
|
3573
|
-
var
|
|
3598
|
+
var xn = Object.defineProperty, _n = Object.defineProperties, En = Object.getOwnPropertyDescriptors, Nt = Object.getOwnPropertySymbols, wn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tn = (e, t) => {
|
|
3574
3599
|
for (var r in t || (t = {}))
|
|
3575
|
-
|
|
3576
|
-
if (
|
|
3577
|
-
for (var r of
|
|
3578
|
-
|
|
3600
|
+
wn.call(t, r) && Rt(e, r, t[r]);
|
|
3601
|
+
if (Nt)
|
|
3602
|
+
for (var r of Nt(t))
|
|
3603
|
+
Sn.call(t, r) && Rt(e, r, t[r]);
|
|
3579
3604
|
return e;
|
|
3580
|
-
},
|
|
3605
|
+
}, Hn = (e, t) => _n(e, En(t));
|
|
3581
3606
|
let pt;
|
|
3582
3607
|
const ze = We(null);
|
|
3583
|
-
function
|
|
3608
|
+
function kt(e) {
|
|
3584
3609
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3585
3610
|
}
|
|
3586
3611
|
function Ne(e, t = He().fallbackLocale) {
|
|
3587
|
-
const r =
|
|
3588
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3612
|
+
const r = kt(e);
|
|
3613
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...kt(t)])] : r;
|
|
3589
3614
|
}
|
|
3590
3615
|
function fe() {
|
|
3591
3616
|
return pt ?? void 0;
|
|
@@ -3593,22 +3618,22 @@ function fe() {
|
|
|
3593
3618
|
ze.subscribe((e) => {
|
|
3594
3619
|
pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3595
3620
|
});
|
|
3596
|
-
const
|
|
3597
|
-
if (e &&
|
|
3621
|
+
const On = (e) => {
|
|
3622
|
+
if (e && ln(e) && je(e)) {
|
|
3598
3623
|
const { loadingDelay: t } = He();
|
|
3599
3624
|
let r;
|
|
3600
3625
|
return typeof window < "u" && fe() != null && t ? r = window.setTimeout(
|
|
3601
3626
|
() => nt.set(!0),
|
|
3602
3627
|
t
|
|
3603
|
-
) : nt.set(!0),
|
|
3628
|
+
) : nt.set(!0), Er(e).then(() => {
|
|
3604
3629
|
ze.set(e);
|
|
3605
3630
|
}).finally(() => {
|
|
3606
3631
|
clearTimeout(r), nt.set(!1);
|
|
3607
3632
|
});
|
|
3608
3633
|
}
|
|
3609
3634
|
return ze.set(e);
|
|
3610
|
-
}, de = Tn(
|
|
3611
|
-
set:
|
|
3635
|
+
}, de = Hn(Tn({}, ze), {
|
|
3636
|
+
set: On
|
|
3612
3637
|
}), Ze = (e) => {
|
|
3613
3638
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3614
3639
|
return (i) => {
|
|
@@ -3616,20 +3641,20 @@ const Hn = (e) => {
|
|
|
3616
3641
|
return n in t ? t[n] : t[n] = e(i);
|
|
3617
3642
|
};
|
|
3618
3643
|
};
|
|
3619
|
-
var
|
|
3644
|
+
var An = Object.defineProperty, Xe = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
|
|
3620
3645
|
for (var r in t || (t = {}))
|
|
3621
|
-
|
|
3646
|
+
wr.call(t, r) && Ut(e, r, t[r]);
|
|
3622
3647
|
if (Xe)
|
|
3623
3648
|
for (var r of Xe(t))
|
|
3624
|
-
|
|
3649
|
+
Sr.call(t, r) && Ut(e, r, t[r]);
|
|
3625
3650
|
return e;
|
|
3626
3651
|
}, Ae = (e, t) => {
|
|
3627
3652
|
var r = {};
|
|
3628
3653
|
for (var i in e)
|
|
3629
|
-
|
|
3654
|
+
wr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3630
3655
|
if (e != null && Xe)
|
|
3631
3656
|
for (var i of Xe(e))
|
|
3632
|
-
t.indexOf(i) < 0 &&
|
|
3657
|
+
t.indexOf(i) < 0 && Sr.call(e, i) && (r[i] = e[i]);
|
|
3633
3658
|
return r;
|
|
3634
3659
|
};
|
|
3635
3660
|
const De = (e, t) => {
|
|
@@ -3637,21 +3662,21 @@ const De = (e, t) => {
|
|
|
3637
3662
|
if (e in r && t in r[e])
|
|
3638
3663
|
return r[e][t];
|
|
3639
3664
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3640
|
-
},
|
|
3665
|
+
}, Pn = Ze(
|
|
3641
3666
|
(e) => {
|
|
3642
3667
|
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3643
3668
|
if (r == null)
|
|
3644
3669
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3645
3670
|
return i && (n = De("number", i)), new Intl.NumberFormat(r, n);
|
|
3646
3671
|
}
|
|
3647
|
-
),
|
|
3672
|
+
), $n = Ze(
|
|
3648
3673
|
(e) => {
|
|
3649
3674
|
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3650
3675
|
if (r == null)
|
|
3651
3676
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3652
3677
|
return i ? n = De("date", i) : Object.keys(n).length === 0 && (n = De("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3653
3678
|
}
|
|
3654
|
-
),
|
|
3679
|
+
), Bn = Ze(
|
|
3655
3680
|
(e) => {
|
|
3656
3681
|
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3657
3682
|
if (r == null)
|
|
@@ -3660,33 +3685,33 @@ const De = (e, t) => {
|
|
|
3660
3685
|
);
|
|
3661
3686
|
return i ? n = De("time", i) : Object.keys(n).length === 0 && (n = De("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3662
3687
|
}
|
|
3663
|
-
),
|
|
3688
|
+
), Mn = (e = {}) => {
|
|
3664
3689
|
var t = e, {
|
|
3665
3690
|
locale: r = fe()
|
|
3666
3691
|
} = t, i = Ae(t, [
|
|
3667
3692
|
"locale"
|
|
3668
3693
|
]);
|
|
3669
|
-
return
|
|
3670
|
-
},
|
|
3694
|
+
return Pn(wt({ locale: r }, i));
|
|
3695
|
+
}, Cn = (e = {}) => {
|
|
3671
3696
|
var t = e, {
|
|
3672
3697
|
locale: r = fe()
|
|
3673
3698
|
} = t, i = Ae(t, [
|
|
3674
3699
|
"locale"
|
|
3675
3700
|
]);
|
|
3676
|
-
return
|
|
3677
|
-
},
|
|
3701
|
+
return $n(wt({ locale: r }, i));
|
|
3702
|
+
}, Dn = (e = {}) => {
|
|
3678
3703
|
var t = e, {
|
|
3679
3704
|
locale: r = fe()
|
|
3680
3705
|
} = t, i = Ae(t, [
|
|
3681
3706
|
"locale"
|
|
3682
3707
|
]);
|
|
3683
|
-
return
|
|
3684
|
-
},
|
|
3708
|
+
return Bn(wt({ locale: r }, i));
|
|
3709
|
+
}, In = Ze(
|
|
3685
3710
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3686
|
-
(e, t = fe()) => new
|
|
3711
|
+
(e, t = fe()) => new vr(e, t, He().formats, {
|
|
3687
3712
|
ignoreTag: He().ignoreTag
|
|
3688
3713
|
})
|
|
3689
|
-
),
|
|
3714
|
+
), Ln = (e, t = {}) => {
|
|
3690
3715
|
var r, i, n, s;
|
|
3691
3716
|
let l = t;
|
|
3692
3717
|
typeof e == "object" && (l = e, e = l.id);
|
|
@@ -3699,7 +3724,7 @@ const De = (e, t) => {
|
|
|
3699
3724
|
throw new Error(
|
|
3700
3725
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3701
3726
|
);
|
|
3702
|
-
let h =
|
|
3727
|
+
let h = br(e, o);
|
|
3703
3728
|
if (!h)
|
|
3704
3729
|
h = (s = (n = (i = (r = He()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: o, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3705
3730
|
else if (typeof h != "string")
|
|
@@ -3710,7 +3735,7 @@ const De = (e, t) => {
|
|
|
3710
3735
|
return h;
|
|
3711
3736
|
let c = h;
|
|
3712
3737
|
try {
|
|
3713
|
-
c =
|
|
3738
|
+
c = In(h, o).format(a);
|
|
3714
3739
|
} catch (m) {
|
|
3715
3740
|
m instanceof Error && console.warn(
|
|
3716
3741
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3718,20 +3743,20 @@ const De = (e, t) => {
|
|
|
3718
3743
|
);
|
|
3719
3744
|
}
|
|
3720
3745
|
return c;
|
|
3721
|
-
},
|
|
3722
|
-
Oe([de], () => Ln);
|
|
3746
|
+
}, Nn = (e, t) => Dn(t).format(e), Rn = (e, t) => Cn(t).format(e), kn = (e, t) => Mn(t).format(e), Un = (e, t = fe()) => br(e, t), Fn = Oe([de, Le], () => Ln);
|
|
3723
3747
|
Oe([de], () => Nn);
|
|
3724
3748
|
Oe([de], () => Rn);
|
|
3725
|
-
Oe([de
|
|
3726
|
-
|
|
3727
|
-
|
|
3749
|
+
Oe([de], () => kn);
|
|
3750
|
+
Oe([de, Le], () => Un);
|
|
3751
|
+
function Ft(e, t) {
|
|
3752
|
+
xr(e, t);
|
|
3728
3753
|
}
|
|
3729
|
-
function
|
|
3730
|
-
|
|
3754
|
+
function Vn(e) {
|
|
3755
|
+
yn({
|
|
3731
3756
|
fallbackLocale: "en"
|
|
3732
3757
|
}), de.set(e);
|
|
3733
3758
|
}
|
|
3734
|
-
const
|
|
3759
|
+
const Vt = {
|
|
3735
3760
|
en: {
|
|
3736
3761
|
"verification.video.how-to": "How to verify yourself",
|
|
3737
3762
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
@@ -3799,15 +3824,15 @@ if (typeof window < "u") {
|
|
|
3799
3824
|
}
|
|
3800
3825
|
};
|
|
3801
3826
|
};
|
|
3802
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3827
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-ijUUQb6t.js").then(({ default: t }) => {
|
|
3803
3828
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3804
3829
|
});
|
|
3805
3830
|
}
|
|
3806
|
-
var
|
|
3831
|
+
var Tr = { exports: {} };
|
|
3807
3832
|
(function(e, t) {
|
|
3808
3833
|
(function(r, i) {
|
|
3809
3834
|
e.exports = i();
|
|
3810
|
-
})(
|
|
3835
|
+
})(Kt, function() {
|
|
3811
3836
|
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", l = "second", a = "minute", o = "hour", u = "day", h = "week", c = "month", m = "quarter", E = "year", H = "date", v = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, U = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
|
|
3812
3837
|
var g = ["th", "st", "nd", "rd"], d = x % 100;
|
|
3813
3838
|
return "[" + x + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
@@ -3818,7 +3843,8 @@ var wr = { exports: {} };
|
|
|
3818
3843
|
var g = -x.utcOffset(), d = Math.abs(g), b = Math.floor(d / 60), p = d % 60;
|
|
3819
3844
|
return (g <= 0 ? "+" : "-") + B(b, 2, "0") + ":" + B(p, 2, "0");
|
|
3820
3845
|
}, m: function x(g, d) {
|
|
3821
|
-
if (g.date() < d.date())
|
|
3846
|
+
if (g.date() < d.date())
|
|
3847
|
+
return -x(d, g);
|
|
3822
3848
|
var b = 12 * (d.year() - g.year()) + (d.month() - g.month()), p = g.clone().add(b, c), _ = d - p < 0, w = g.clone().add(b + (_ ? -1 : 1), c);
|
|
3823
3849
|
return +(-(b + (d - p) / (_ ? p - w : w - p)) || 0);
|
|
3824
3850
|
}, a: function(x) {
|
|
@@ -3833,19 +3859,22 @@ var wr = { exports: {} };
|
|
|
3833
3859
|
return x instanceof me || !(!x || !x[q]);
|
|
3834
3860
|
}, X = function x(g, d, b) {
|
|
3835
3861
|
var p;
|
|
3836
|
-
if (!g)
|
|
3862
|
+
if (!g)
|
|
3863
|
+
return I;
|
|
3837
3864
|
if (typeof g == "string") {
|
|
3838
3865
|
var _ = g.toLowerCase();
|
|
3839
3866
|
L[_] && (p = _), d && (L[_] = d, p = _);
|
|
3840
3867
|
var w = g.split("-");
|
|
3841
|
-
if (!p && w.length > 1)
|
|
3868
|
+
if (!p && w.length > 1)
|
|
3869
|
+
return x(w[0]);
|
|
3842
3870
|
} else {
|
|
3843
3871
|
var M = g.name;
|
|
3844
3872
|
L[M] = g, p = M;
|
|
3845
3873
|
}
|
|
3846
3874
|
return !b && p && (I = p), p || !b && I;
|
|
3847
3875
|
}, k = function(x, g) {
|
|
3848
|
-
if (R(x))
|
|
3876
|
+
if (R(x))
|
|
3877
|
+
return x.clone();
|
|
3849
3878
|
var d = typeof g == "object" ? g : {};
|
|
3850
3879
|
return d.date = x, d.args = arguments, new me(d);
|
|
3851
3880
|
}, P = z;
|
|
@@ -3860,9 +3889,12 @@ var wr = { exports: {} };
|
|
|
3860
3889
|
return g.parse = function(d) {
|
|
3861
3890
|
this.$d = function(b) {
|
|
3862
3891
|
var p = b.date, _ = b.utc;
|
|
3863
|
-
if (p === null)
|
|
3864
|
-
|
|
3865
|
-
if (
|
|
3892
|
+
if (p === null)
|
|
3893
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
3894
|
+
if (P.u(p))
|
|
3895
|
+
return /* @__PURE__ */ new Date();
|
|
3896
|
+
if (p instanceof Date)
|
|
3897
|
+
return new Date(p);
|
|
3866
3898
|
if (typeof p == "string" && !/Z$/i.test(p)) {
|
|
3867
3899
|
var w = p.match($);
|
|
3868
3900
|
if (w) {
|
|
@@ -3926,7 +3958,8 @@ var wr = { exports: {} };
|
|
|
3926
3958
|
if (_ === c || _ === E) {
|
|
3927
3959
|
var N = this.clone().set(H, 1);
|
|
3928
3960
|
N.$d[M](D), N.init(), this.$d = N.set(H, Math.min(this.$D, N.daysInMonth())).$d;
|
|
3929
|
-
} else
|
|
3961
|
+
} else
|
|
3962
|
+
M && this.$d[M](D);
|
|
3930
3963
|
return this.init(), this;
|
|
3931
3964
|
}, g.set = function(d, b) {
|
|
3932
3965
|
return this.clone().$set(d, b);
|
|
@@ -3939,17 +3972,22 @@ var wr = { exports: {} };
|
|
|
3939
3972
|
var W = k(_);
|
|
3940
3973
|
return P.w(W.date(W.date() + Math.round(F * d)), _);
|
|
3941
3974
|
};
|
|
3942
|
-
if (w === c)
|
|
3943
|
-
|
|
3944
|
-
if (w ===
|
|
3945
|
-
|
|
3975
|
+
if (w === c)
|
|
3976
|
+
return this.set(c, this.$M + d);
|
|
3977
|
+
if (w === E)
|
|
3978
|
+
return this.set(E, this.$y + d);
|
|
3979
|
+
if (w === u)
|
|
3980
|
+
return M(1);
|
|
3981
|
+
if (w === h)
|
|
3982
|
+
return M(7);
|
|
3946
3983
|
var D = (p = {}, p[a] = i, p[o] = n, p[l] = r, p)[w] || 1, N = this.$d.getTime() + d * D;
|
|
3947
3984
|
return P.w(N, this);
|
|
3948
3985
|
}, g.subtract = function(d, b) {
|
|
3949
3986
|
return this.add(-1 * d, b);
|
|
3950
3987
|
}, g.format = function(d) {
|
|
3951
3988
|
var b = this, p = this.$locale();
|
|
3952
|
-
if (!this.isValid())
|
|
3989
|
+
if (!this.isValid())
|
|
3990
|
+
return p.invalidDate || v;
|
|
3953
3991
|
var _ = d || "YYYY-MM-DDTHH:mm:ssZ", w = P.z(this), M = this.$H, D = this.$m, N = this.$M, F = p.weekdays, W = p.months, ue = p.meridiem, ne = function(G, J, ce, pe) {
|
|
3954
3992
|
return G && (G[J] || G(b, _)) || ce[J].slice(0, pe);
|
|
3955
3993
|
}, se = function(G) {
|
|
@@ -4053,7 +4091,8 @@ var wr = { exports: {} };
|
|
|
4053
4091
|
}, g.$locale = function() {
|
|
4054
4092
|
return L[this.$L];
|
|
4055
4093
|
}, g.locale = function(d, b) {
|
|
4056
|
-
if (!d)
|
|
4094
|
+
if (!d)
|
|
4095
|
+
return this.$L;
|
|
4057
4096
|
var p = this.clone(), _ = X(d, b, !0);
|
|
4058
4097
|
return _ && (p.$L = _), p;
|
|
4059
4098
|
}, g.clone = function() {
|
|
@@ -4078,14 +4117,14 @@ var wr = { exports: {} };
|
|
|
4078
4117
|
return k(1e3 * x);
|
|
4079
4118
|
}, k.en = L[I], k.Ls = L, k.p = {}, k;
|
|
4080
4119
|
});
|
|
4081
|
-
})(
|
|
4082
|
-
var
|
|
4083
|
-
const
|
|
4084
|
-
var
|
|
4120
|
+
})(Tr);
|
|
4121
|
+
var Gn = Tr.exports;
|
|
4122
|
+
const Gt = /* @__PURE__ */ yt(Gn);
|
|
4123
|
+
var Hr = { exports: {} };
|
|
4085
4124
|
(function(e, t) {
|
|
4086
4125
|
(function(r, i) {
|
|
4087
4126
|
e.exports = i();
|
|
4088
|
-
})(
|
|
4127
|
+
})(Kt, function() {
|
|
4089
4128
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4090
4129
|
return function(s, l, a) {
|
|
4091
4130
|
var o = l.prototype;
|
|
@@ -4107,25 +4146,31 @@ var Sr = { exports: {} };
|
|
|
4107
4146
|
if (this.$u) {
|
|
4108
4147
|
var v = this.$d;
|
|
4109
4148
|
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
4110
|
-
} else
|
|
4149
|
+
} else
|
|
4150
|
+
h.call(this);
|
|
4111
4151
|
};
|
|
4112
4152
|
var c = o.utcOffset;
|
|
4113
4153
|
o.utcOffset = function(v, $) {
|
|
4114
4154
|
var V = this.$utils().u;
|
|
4115
|
-
if (V(v))
|
|
4155
|
+
if (V(v))
|
|
4156
|
+
return this.$u ? 0 : V(this.$offset) ? c.call(this) : this.$offset;
|
|
4116
4157
|
if (typeof v == "string" && (v = function(I) {
|
|
4117
4158
|
I === void 0 && (I = "");
|
|
4118
4159
|
var L = I.match(i);
|
|
4119
|
-
if (!L)
|
|
4160
|
+
if (!L)
|
|
4161
|
+
return null;
|
|
4120
4162
|
var q = ("" + L[0]).match(n) || ["-", 0, 0], R = q[0], X = 60 * +q[1] + +q[2];
|
|
4121
4163
|
return X === 0 ? 0 : R === "+" ? X : -X;
|
|
4122
|
-
}(v), v === null))
|
|
4164
|
+
}(v), v === null))
|
|
4165
|
+
return this;
|
|
4123
4166
|
var U = Math.abs(v) <= 16 ? 60 * v : v, B = this;
|
|
4124
|
-
if ($)
|
|
4167
|
+
if ($)
|
|
4168
|
+
return B.$offset = U, B.$u = v === 0, B;
|
|
4125
4169
|
if (v !== 0) {
|
|
4126
4170
|
var z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4127
4171
|
(B = this.local().add(U + z, r)).$offset = U, B.$x.$localOffset = z;
|
|
4128
|
-
} else
|
|
4172
|
+
} else
|
|
4173
|
+
B = this.utc();
|
|
4129
4174
|
return B;
|
|
4130
4175
|
};
|
|
4131
4176
|
var m = o.format;
|
|
@@ -4148,32 +4193,33 @@ var Sr = { exports: {} };
|
|
|
4148
4193
|
};
|
|
4149
4194
|
var H = o.diff;
|
|
4150
4195
|
o.diff = function(v, $, V) {
|
|
4151
|
-
if (v && this.$u === v.$u)
|
|
4196
|
+
if (v && this.$u === v.$u)
|
|
4197
|
+
return H.call(this, v, $, V);
|
|
4152
4198
|
var U = this.local(), B = a(v).local();
|
|
4153
4199
|
return H.call(U, B, $, V);
|
|
4154
4200
|
};
|
|
4155
4201
|
};
|
|
4156
4202
|
});
|
|
4157
|
-
})(
|
|
4158
|
-
var
|
|
4159
|
-
const
|
|
4160
|
-
function
|
|
4161
|
-
|
|
4203
|
+
})(Hr);
|
|
4204
|
+
var jn = Hr.exports;
|
|
4205
|
+
const zn = /* @__PURE__ */ yt(jn);
|
|
4206
|
+
function Xn(e) {
|
|
4207
|
+
Br(e, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
4162
4208
|
}
|
|
4163
|
-
function
|
|
4209
|
+
function jt(e, t, r) {
|
|
4164
4210
|
const i = e.slice();
|
|
4165
4211
|
return i[49] = t[r], i[51] = r, i;
|
|
4166
4212
|
}
|
|
4167
|
-
function
|
|
4168
|
-
let t, r, i, n, s =
|
|
4213
|
+
function zt(e) {
|
|
4214
|
+
let t, r, i, n, s = Ht(
|
|
4169
4215
|
/*displayMessages*/
|
|
4170
4216
|
e[4]
|
|
4171
4217
|
), l = [];
|
|
4172
4218
|
for (let o = 0; o < s.length; o += 1)
|
|
4173
|
-
l[o] =
|
|
4219
|
+
l[o] = Wt(jt(e, s, o));
|
|
4174
4220
|
let a = (
|
|
4175
4221
|
/*videoExists*/
|
|
4176
|
-
e[7] &&
|
|
4222
|
+
e[7] && qt(e)
|
|
4177
4223
|
);
|
|
4178
4224
|
return {
|
|
4179
4225
|
c() {
|
|
@@ -4211,21 +4257,21 @@ function Gt(e) {
|
|
|
4211
4257
|
p(o, u) {
|
|
4212
4258
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4213
4259
|
1072) {
|
|
4214
|
-
s =
|
|
4260
|
+
s = Ht(
|
|
4215
4261
|
/*displayMessages*/
|
|
4216
4262
|
o[4]
|
|
4217
4263
|
);
|
|
4218
4264
|
let h;
|
|
4219
4265
|
for (h = 0; h < s.length; h += 1) {
|
|
4220
|
-
const c =
|
|
4221
|
-
l[h] ? l[h].p(c, u) : (l[h] =
|
|
4266
|
+
const c = jt(o, s, h);
|
|
4267
|
+
l[h] ? l[h].p(c, u) : (l[h] = Wt(c), l[h].c(), l[h].m(t, null));
|
|
4222
4268
|
}
|
|
4223
4269
|
for (; h < l.length; h += 1)
|
|
4224
4270
|
l[h].d(1);
|
|
4225
4271
|
l.length = s.length;
|
|
4226
4272
|
}
|
|
4227
4273
|
/*videoExists*/
|
|
4228
|
-
o[7] ? a ? a.p(o, u) : (a =
|
|
4274
|
+
o[7] ? a ? a.p(o, u) : (a = qt(o), a.c(), a.m(i.parentNode, i)) : a && (a.d(1), a = null), u[0] & /*clientstylingurl*/
|
|
4229
4275
|
2 && le(
|
|
4230
4276
|
n,
|
|
4231
4277
|
"clientstylingurl",
|
|
@@ -4252,11 +4298,11 @@ function Gt(e) {
|
|
|
4252
4298
|
);
|
|
4253
4299
|
},
|
|
4254
4300
|
d(o) {
|
|
4255
|
-
o && (ie(t), ie(r), ie(i), ie(n)),
|
|
4301
|
+
o && (ie(t), ie(r), ie(i), ie(n)), Dr(l, o), a && a.d(o);
|
|
4256
4302
|
}
|
|
4257
4303
|
};
|
|
4258
4304
|
}
|
|
4259
|
-
function
|
|
4305
|
+
function Xt(e) {
|
|
4260
4306
|
let t, r, i;
|
|
4261
4307
|
function n(...s) {
|
|
4262
4308
|
return (
|
|
@@ -4283,14 +4329,14 @@ function jt(e) {
|
|
|
4283
4329
|
}
|
|
4284
4330
|
};
|
|
4285
4331
|
}
|
|
4286
|
-
function
|
|
4332
|
+
function Wt(e) {
|
|
4287
4333
|
let t, r, i, n, s = (
|
|
4288
4334
|
/*message*/
|
|
4289
4335
|
e[49] + ""
|
|
4290
4336
|
), l, a, o, u, h = (
|
|
4291
4337
|
/*displayMessages*/
|
|
4292
4338
|
e[4].length > 1 && /*index*/
|
|
4293
|
-
e[51] === 0 &&
|
|
4339
|
+
e[51] === 0 && Xt(e)
|
|
4294
4340
|
);
|
|
4295
4341
|
function c(...m) {
|
|
4296
4342
|
return (
|
|
@@ -4319,7 +4365,7 @@ function zt(e) {
|
|
|
4319
4365
|
16 && s !== (s = /*message*/
|
|
4320
4366
|
e[49] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4321
4367
|
e[4].length > 1 && /*index*/
|
|
4322
|
-
e[51] === 0 ? h ? h.p(e, E) : (h =
|
|
4368
|
+
e[51] === 0 ? h ? h.p(e, E) : (h = Xt(e), h.c(), h.m(t, a)) : h && (h.d(1), h = null), E[0] & /*allVerificationsVisible*/
|
|
4323
4369
|
32 && Ee(
|
|
4324
4370
|
t,
|
|
4325
4371
|
"ShowAll",
|
|
@@ -4332,7 +4378,7 @@ function zt(e) {
|
|
|
4332
4378
|
}
|
|
4333
4379
|
};
|
|
4334
4380
|
}
|
|
4335
|
-
function
|
|
4381
|
+
function qt(e) {
|
|
4336
4382
|
let t, r, i, n, s = (
|
|
4337
4383
|
/*$_*/
|
|
4338
4384
|
e[9]("verification.video.how-to") + ""
|
|
@@ -4357,7 +4403,7 @@ function Xt(e) {
|
|
|
4357
4403
|
p(u, h) {
|
|
4358
4404
|
h[0] & /*$_*/
|
|
4359
4405
|
512 && s !== (s = /*$_*/
|
|
4360
|
-
u[9]("verification.video.how-to") + "") &&
|
|
4406
|
+
u[9]("verification.video.how-to") + "") && Lr(l, s), h[0] & /*desktopView*/
|
|
4361
4407
|
64 && Ee(
|
|
4362
4408
|
n,
|
|
4363
4409
|
"CashierVerificationVideoLinkDesktop",
|
|
@@ -4370,10 +4416,10 @@ function Xt(e) {
|
|
|
4370
4416
|
}
|
|
4371
4417
|
};
|
|
4372
4418
|
}
|
|
4373
|
-
function
|
|
4419
|
+
function Wn(e) {
|
|
4374
4420
|
let t, r = (
|
|
4375
4421
|
/*displayMessages*/
|
|
4376
|
-
e[4] &&
|
|
4422
|
+
e[4] && zt(e)
|
|
4377
4423
|
);
|
|
4378
4424
|
return {
|
|
4379
4425
|
c() {
|
|
@@ -4389,7 +4435,7 @@ function Xn(e) {
|
|
|
4389
4435
|
},
|
|
4390
4436
|
p(i, n) {
|
|
4391
4437
|
/*displayMessages*/
|
|
4392
|
-
i[4] ? r ? r.p(i, n) : (r =
|
|
4438
|
+
i[4] ? r ? r.p(i, n) : (r = zt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null), n[0] & /*desktopView*/
|
|
4393
4439
|
64 && Ee(
|
|
4394
4440
|
t,
|
|
4395
4441
|
"CashierVerificationsDesktop",
|
|
@@ -4404,10 +4450,10 @@ function Xn(e) {
|
|
|
4404
4450
|
}
|
|
4405
4451
|
};
|
|
4406
4452
|
}
|
|
4407
|
-
const
|
|
4408
|
-
function
|
|
4453
|
+
const qn = "verification_explanation_video_widgets.MP4", Yn = "700px", Zn = "500px";
|
|
4454
|
+
function Jn(e, t, r) {
|
|
4409
4455
|
let i;
|
|
4410
|
-
|
|
4456
|
+
$r(e, Fn, (f) => r(9, i = f)), Gt.extend(zn);
|
|
4411
4457
|
let { endpoint: n } = t, { lang: s = "en" } = t, { translationurl: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { session: u = "" } = t, { customerid: h = "" } = t, { ismobileview: c = "" } = t, m, E = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set(), v, $, V, U = !0, B = !0, z = !1, I = "";
|
|
4412
4458
|
var L;
|
|
4413
4459
|
(function(f) {
|
|
@@ -4434,17 +4480,17 @@ function Zn(e, t, r) {
|
|
|
4434
4480
|
if (f)
|
|
4435
4481
|
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4436
4482
|
Object.keys(y).forEach((S) => {
|
|
4437
|
-
|
|
4483
|
+
Ft(S, y[S]);
|
|
4438
4484
|
});
|
|
4439
4485
|
}).catch((y) => {
|
|
4440
4486
|
console.log(y);
|
|
4441
4487
|
});
|
|
4442
4488
|
};
|
|
4443
|
-
Object.keys(
|
|
4444
|
-
|
|
4489
|
+
Object.keys(Vt).forEach((f) => {
|
|
4490
|
+
Ft(f, Vt[f]);
|
|
4445
4491
|
});
|
|
4446
4492
|
const me = () => {
|
|
4447
|
-
|
|
4493
|
+
Vn(s);
|
|
4448
4494
|
}, Re = () => {
|
|
4449
4495
|
let f = document.createElement("style");
|
|
4450
4496
|
f.innerHTML = a, m.appendChild(f);
|
|
@@ -4463,7 +4509,7 @@ function Zn(e, t, r) {
|
|
|
4463
4509
|
if (!f)
|
|
4464
4510
|
return;
|
|
4465
4511
|
const S = new URL(`${n}/v1/player/verification/GetKYCStatus`), Y = new Headers();
|
|
4466
|
-
Y.append("accept", "application/json"), Y.append("Content-Type", "application/json"), Y.append("X-Client-Request-Timestamp",
|
|
4512
|
+
Y.append("accept", "application/json"), Y.append("Content-Type", "application/json"), Y.append("X-Client-Request-Timestamp", Gt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4467
4513
|
const Je = {
|
|
4468
4514
|
method: "POST",
|
|
4469
4515
|
headers: Y,
|
|
@@ -4565,7 +4611,7 @@ function Zn(e, t, r) {
|
|
|
4565
4611
|
}, oe = () => {
|
|
4566
4612
|
r(6, B = c === "false");
|
|
4567
4613
|
}, G = () => {
|
|
4568
|
-
r(8, I = $ + "/" + s + "/" +
|
|
4614
|
+
r(8, I = $ + "/" + s + "/" + qn);
|
|
4569
4615
|
try {
|
|
4570
4616
|
fetch(I, { method: "HEAD" }).then((f) => {
|
|
4571
4617
|
r(7, z = f.ok);
|
|
@@ -4577,12 +4623,12 @@ function Zn(e, t, r) {
|
|
|
4577
4623
|
window.postMessage(
|
|
4578
4624
|
{
|
|
4579
4625
|
type: "ShowCashierVideoModal",
|
|
4580
|
-
details: B ?
|
|
4626
|
+
details: B ? Yn : Zn
|
|
4581
4627
|
},
|
|
4582
4628
|
window.location.href
|
|
4583
4629
|
);
|
|
4584
|
-
}, ce = (f, y) => se(y, f), pe = (f, y) => se(y, f),
|
|
4585
|
-
function
|
|
4630
|
+
}, ce = (f, y) => se(y, f), pe = (f, y) => se(y, f), Or = () => J();
|
|
4631
|
+
function Ar(f) {
|
|
4586
4632
|
st[f ? "unshift" : "push"](() => {
|
|
4587
4633
|
m = f, r(3, m);
|
|
4588
4634
|
});
|
|
@@ -4619,18 +4665,18 @@ function Zn(e, t, r) {
|
|
|
4619
4665
|
$,
|
|
4620
4666
|
ce,
|
|
4621
4667
|
pe,
|
|
4622
|
-
|
|
4623
|
-
|
|
4668
|
+
Or,
|
|
4669
|
+
Ar
|
|
4624
4670
|
];
|
|
4625
4671
|
}
|
|
4626
|
-
class
|
|
4672
|
+
class Qn extends Zr {
|
|
4627
4673
|
constructor(t) {
|
|
4628
|
-
super(),
|
|
4674
|
+
super(), qr(
|
|
4629
4675
|
this,
|
|
4630
4676
|
t,
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4677
|
+
Jn,
|
|
4678
|
+
Wn,
|
|
4679
|
+
Zt,
|
|
4634
4680
|
{
|
|
4635
4681
|
endpoint: 12,
|
|
4636
4682
|
lang: 13,
|
|
@@ -4641,7 +4687,7 @@ class Jn extends qr {
|
|
|
4641
4687
|
customerid: 16,
|
|
4642
4688
|
ismobileview: 2
|
|
4643
4689
|
},
|
|
4644
|
-
|
|
4690
|
+
Xn,
|
|
4645
4691
|
[-1, -1]
|
|
4646
4692
|
);
|
|
4647
4693
|
}
|
|
@@ -4694,27 +4740,27 @@ class Jn extends qr {
|
|
|
4694
4740
|
this.$$set({ ismobileview: t }), te();
|
|
4695
4741
|
}
|
|
4696
4742
|
}
|
|
4697
|
-
|
|
4743
|
+
Yr(Qn, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|
|
4698
4744
|
export {
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4745
|
+
Qn as C,
|
|
4746
|
+
Zr as S,
|
|
4747
|
+
Br as a,
|
|
4702
4748
|
ae as b,
|
|
4703
|
-
|
|
4749
|
+
Yr as c,
|
|
4704
4750
|
ie as d,
|
|
4705
|
-
|
|
4751
|
+
ts as e,
|
|
4706
4752
|
te as f,
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4753
|
+
Z as g,
|
|
4754
|
+
xe as h,
|
|
4755
|
+
qr as i,
|
|
4756
|
+
Kn as j,
|
|
4757
|
+
K as k,
|
|
4758
|
+
re as l,
|
|
4759
|
+
es as m,
|
|
4714
4760
|
Q as n,
|
|
4715
|
-
|
|
4761
|
+
rs as o,
|
|
4716
4762
|
bt as p,
|
|
4717
|
-
|
|
4718
|
-
|
|
4763
|
+
st as q,
|
|
4764
|
+
Zt as s,
|
|
4719
4765
|
Ee as t
|
|
4720
4766
|
};
|