@everymatrix/cashier-error 1.92.5 → 1.92.7
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/{CashierError-DpXUW93C.cjs → CashierError-BDpxK42o.cjs} +3 -3
- package/components/{CashierError-Dbubo4Rq.js → CashierError-CV7FQUz7.js} +369 -365
- package/components/{CashierError-2Z1_ph1-.js → CashierError-C_8CWLBb.js} +363 -359
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ function wt(e) {
|
|
|
15
15
|
function Qe() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function oe(e) {
|
|
19
19
|
e.forEach(wt);
|
|
20
20
|
}
|
|
21
21
|
function qe(e) {
|
|
@@ -58,22 +58,22 @@ function fe(e, t, r, n) {
|
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const a = [],
|
|
62
|
-
for (let
|
|
63
|
-
a[
|
|
61
|
+
const a = [], o = Math.max(t.dirty.length, i.length);
|
|
62
|
+
for (let s = 0; s < o; s += 1)
|
|
63
|
+
a[s] = t.dirty[s] | i[s];
|
|
64
64
|
return a;
|
|
65
65
|
}
|
|
66
66
|
return t.dirty | i;
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function de(e, t, r, n, i, a) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const
|
|
73
|
-
e.p(
|
|
72
|
+
const o = St(t, r, n, a);
|
|
73
|
+
e.p(o, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function me(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], r = e.ctx.length / 32;
|
|
79
79
|
for (let n = 0; n < r; n++)
|
|
@@ -86,13 +86,13 @@ function B(e, t) {
|
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
88
|
function ar(e, t, r) {
|
|
89
|
-
const n =
|
|
89
|
+
const n = or(e);
|
|
90
90
|
if (!n.getElementById(t)) {
|
|
91
|
-
const i =
|
|
92
|
-
i.id = t, i.textContent = r,
|
|
91
|
+
const i = C("style");
|
|
92
|
+
i.id = t, i.textContent = r, sr(n, i);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function or(e) {
|
|
96
96
|
if (!e)
|
|
97
97
|
return document;
|
|
98
98
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -102,7 +102,7 @@ function sr(e) {
|
|
|
102
102
|
t
|
|
103
103
|
) : e.ownerDocument;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function sr(e, t) {
|
|
106
106
|
return B(
|
|
107
107
|
/** @type {Document} */
|
|
108
108
|
e.head || e,
|
|
@@ -115,7 +115,7 @@ function S(e, t, r) {
|
|
|
115
115
|
function A(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function C(e) {
|
|
119
119
|
return document.createElement(e);
|
|
120
120
|
}
|
|
121
121
|
function D(e) {
|
|
@@ -165,12 +165,12 @@ function cr() {
|
|
|
165
165
|
function fr(e) {
|
|
166
166
|
cr().$$.on_mount.push(e);
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const z = [], De = [];
|
|
169
169
|
let V = [];
|
|
170
|
-
const et = [],
|
|
170
|
+
const et = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
171
171
|
let ke = !1;
|
|
172
|
-
function
|
|
173
|
-
ke || (ke = !0,
|
|
172
|
+
function mr() {
|
|
173
|
+
ke || (ke = !0, dr.then(O));
|
|
174
174
|
}
|
|
175
175
|
function $e(e) {
|
|
176
176
|
V.push(e);
|
|
@@ -183,28 +183,28 @@ function O() {
|
|
|
183
183
|
const e = ne;
|
|
184
184
|
do {
|
|
185
185
|
try {
|
|
186
|
-
for (; U <
|
|
187
|
-
const t =
|
|
186
|
+
for (; U < z.length; ) {
|
|
187
|
+
const t = z[U];
|
|
188
188
|
U++, re(t), pr(t.$$);
|
|
189
189
|
}
|
|
190
190
|
} catch (t) {
|
|
191
|
-
throw
|
|
191
|
+
throw z.length = 0, U = 0, t;
|
|
192
192
|
}
|
|
193
|
-
for (re(null),
|
|
193
|
+
for (re(null), z.length = 0, U = 0; De.length; )
|
|
194
194
|
De.pop()();
|
|
195
195
|
for (let t = 0; t < V.length; t += 1) {
|
|
196
196
|
const r = V[t];
|
|
197
197
|
Le.has(r) || (Le.add(r), r());
|
|
198
198
|
}
|
|
199
199
|
V.length = 0;
|
|
200
|
-
} while (
|
|
200
|
+
} while (z.length);
|
|
201
201
|
for (; et.length; )
|
|
202
202
|
et.pop()();
|
|
203
203
|
ke = !1, Le.clear(), re(e);
|
|
204
204
|
}
|
|
205
205
|
function pr(e) {
|
|
206
206
|
if (e.fragment !== null) {
|
|
207
|
-
e.update(),
|
|
207
|
+
e.update(), oe(e.before_update);
|
|
208
208
|
const t = e.dirty;
|
|
209
209
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
210
210
|
}
|
|
@@ -231,17 +231,17 @@ function yr(e, t, r) {
|
|
|
231
231
|
const { fragment: n, after_update: i } = e.$$;
|
|
232
232
|
n && n.m(t, r), $e(() => {
|
|
233
233
|
const a = e.$$.on_mount.map(wt).filter(qe);
|
|
234
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...a) :
|
|
234
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : oe(a), e.$$.on_mount = [];
|
|
235
235
|
}), i.forEach($e);
|
|
236
236
|
}
|
|
237
237
|
function vr(e, t) {
|
|
238
238
|
const r = e.$$;
|
|
239
|
-
r.fragment !== null && (gr(r.after_update),
|
|
239
|
+
r.fragment !== null && (gr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
240
240
|
}
|
|
241
241
|
function _r(e, t) {
|
|
242
|
-
e.$$.dirty[0] === -1 && (
|
|
242
|
+
e.$$.dirty[0] === -1 && (z.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
243
243
|
}
|
|
244
|
-
function Er(e, t, r, n, i, a,
|
|
244
|
+
function Er(e, t, r, n, i, a, o = null, s = [-1]) {
|
|
245
245
|
const l = ne;
|
|
246
246
|
re(e);
|
|
247
247
|
const u = e.$$ = {
|
|
@@ -261,16 +261,16 @@ function Er(e, t, r, n, i, a, s = null, o = [-1]) {
|
|
|
261
261
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
262
262
|
// everything else
|
|
263
263
|
callbacks: Qe(),
|
|
264
|
-
dirty:
|
|
264
|
+
dirty: s,
|
|
265
265
|
skip_bound: !1,
|
|
266
266
|
root: t.target || l.$$.root
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
o && o(u.root);
|
|
269
269
|
let h = !1;
|
|
270
270
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
271
271
|
const g = p.length ? p[0] : f;
|
|
272
272
|
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && _r(e, c)), f;
|
|
273
|
-
}) : [], u.update(), h = !0,
|
|
273
|
+
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
274
274
|
if (t.hydrate) {
|
|
275
275
|
const c = lr(t.target);
|
|
276
276
|
u.fragment && u.fragment.l(c), c.forEach(A);
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
323
323
|
let a;
|
|
324
324
|
return {
|
|
325
325
|
c: function() {
|
|
326
|
-
a =
|
|
326
|
+
a = C("slot"), i !== "default" && M(a, "name", i);
|
|
327
327
|
},
|
|
328
328
|
/**
|
|
329
329
|
* @param {HTMLElement} target
|
|
@@ -376,8 +376,8 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
376
376
|
this.$$c.$$.after_update.push(n), n();
|
|
377
377
|
for (const i in this.$$l)
|
|
378
378
|
for (const a of this.$$l[i]) {
|
|
379
|
-
const
|
|
380
|
-
this.$$l_u.set(a,
|
|
379
|
+
const o = this.$$c.$on(i, a);
|
|
380
|
+
this.$$l_u.set(a, o);
|
|
381
381
|
}
|
|
382
382
|
this.$$l = {};
|
|
383
383
|
}
|
|
@@ -428,33 +428,33 @@ function ve(e, t, r, n) {
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
function xr(e, t, r, n, i, a) {
|
|
431
|
-
let
|
|
431
|
+
let o = class extends Bt {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(e, r, i), this.$$p_d = t;
|
|
434
434
|
}
|
|
435
435
|
static get observedAttributes() {
|
|
436
436
|
return Object.keys(t).map(
|
|
437
|
-
(
|
|
437
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
438
438
|
);
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
|
-
return Object.keys(t).forEach((
|
|
442
|
-
Object.defineProperty(
|
|
441
|
+
return Object.keys(t).forEach((s) => {
|
|
442
|
+
Object.defineProperty(o.prototype, s, {
|
|
443
443
|
get() {
|
|
444
|
-
return this.$$c &&
|
|
444
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
445
445
|
},
|
|
446
446
|
set(l) {
|
|
447
|
-
l = ve(
|
|
447
|
+
l = ve(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
}), n.forEach((
|
|
451
|
-
Object.defineProperty(
|
|
450
|
+
}), n.forEach((s) => {
|
|
451
|
+
Object.defineProperty(o.prototype, s, {
|
|
452
452
|
get() {
|
|
453
|
-
return this.$$c?.[
|
|
453
|
+
return this.$$c?.[s];
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
}), e.element = /** @type {any} */
|
|
457
|
-
|
|
457
|
+
o, o;
|
|
458
458
|
}
|
|
459
459
|
class Tr {
|
|
460
460
|
/**
|
|
@@ -502,7 +502,7 @@ class Tr {
|
|
|
502
502
|
}
|
|
503
503
|
const wr = "4";
|
|
504
504
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
505
|
-
const
|
|
505
|
+
const F = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
506
506
|
function Hr(e, t) {
|
|
507
507
|
if (e) {
|
|
508
508
|
const r = document.createElement("style");
|
|
@@ -525,15 +525,15 @@ function Sr(e, t, r, n = !1) {
|
|
|
525
525
|
return;
|
|
526
526
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
527
527
|
return r = Br(e, t), r;
|
|
528
|
-
window[
|
|
529
|
-
const a = r.unsubscribe.bind(r),
|
|
530
|
-
if (window[
|
|
531
|
-
const
|
|
532
|
-
|
|
528
|
+
window[F] || (window[F] = {}), r = Cr(e, t);
|
|
529
|
+
const a = r.unsubscribe.bind(r), o = () => {
|
|
530
|
+
if (window[F][t]) {
|
|
531
|
+
const s = window[F][t];
|
|
532
|
+
s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[F][t];
|
|
533
533
|
}
|
|
534
534
|
a();
|
|
535
535
|
};
|
|
536
|
-
return r.unsubscribe =
|
|
536
|
+
return r.unsubscribe = o, r;
|
|
537
537
|
}
|
|
538
538
|
function Br(e, t) {
|
|
539
539
|
const r = document.createElement("style");
|
|
@@ -541,18 +541,18 @@ function Br(e, t) {
|
|
|
541
541
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Cr(e, t) {
|
|
545
545
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
546
546
|
if (!e)
|
|
547
547
|
return;
|
|
548
|
-
const n = e.getRootNode(), i = window[
|
|
548
|
+
const n = e.getRootNode(), i = window[F];
|
|
549
549
|
let a = i[t] && i[t].sheet;
|
|
550
550
|
a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(r), i[t] = {
|
|
551
551
|
sheet: a,
|
|
552
552
|
refCount: 1
|
|
553
553
|
});
|
|
554
|
-
const
|
|
555
|
-
|
|
554
|
+
const o = n.adoptedStyleSheets || [];
|
|
555
|
+
o.includes(a) || (n.adoptedStyleSheets = [...o, a]);
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
558
|
const G = [];
|
|
@@ -564,8 +564,8 @@ function Lr(e, t) {
|
|
|
564
564
|
function Ae(e, t = I) {
|
|
565
565
|
let r;
|
|
566
566
|
const n = /* @__PURE__ */ new Set();
|
|
567
|
-
function i(
|
|
568
|
-
if (Ht(e,
|
|
567
|
+
function i(s) {
|
|
568
|
+
if (Ht(e, s) && (e = s, r)) {
|
|
569
569
|
const l = !G.length;
|
|
570
570
|
for (const u of n)
|
|
571
571
|
u[1](), G.push(u, e);
|
|
@@ -576,23 +576,23 @@ function Ae(e, t = I) {
|
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function a(
|
|
580
|
-
i(
|
|
579
|
+
function a(s) {
|
|
580
|
+
i(s(e));
|
|
581
581
|
}
|
|
582
|
-
function s
|
|
583
|
-
const u = [
|
|
584
|
-
return n.add(u), n.size === 1 && (r = t(i, a) || I),
|
|
582
|
+
function o(s, l = I) {
|
|
583
|
+
const u = [s, l];
|
|
584
|
+
return n.add(u), n.size === 1 && (r = t(i, a) || I), s(e), () => {
|
|
585
585
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
return { set: i, update: a, subscribe:
|
|
588
|
+
return { set: i, update: a, subscribe: o };
|
|
589
589
|
}
|
|
590
590
|
function Y(e, t, r) {
|
|
591
591
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
592
592
|
if (!i.every(Boolean))
|
|
593
593
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
594
594
|
const a = t.length < 2;
|
|
595
|
-
return Lr(r, (
|
|
595
|
+
return Lr(r, (o, s) => {
|
|
596
596
|
let l = !1;
|
|
597
597
|
const u = [];
|
|
598
598
|
let h = 0, c = I;
|
|
@@ -600,8 +600,8 @@ function Y(e, t, r) {
|
|
|
600
600
|
if (h)
|
|
601
601
|
return;
|
|
602
602
|
c();
|
|
603
|
-
const g = t(n ? u[0] : u,
|
|
604
|
-
a ?
|
|
603
|
+
const g = t(n ? u[0] : u, o, s);
|
|
604
|
+
a ? o(g) : c = qe(g) ? g : I;
|
|
605
605
|
}, p = i.map(
|
|
606
606
|
(g, x) => At(
|
|
607
607
|
g,
|
|
@@ -614,11 +614,11 @@ function Y(e, t, r) {
|
|
|
614
614
|
)
|
|
615
615
|
);
|
|
616
616
|
return l = !0, f(), function() {
|
|
617
|
-
|
|
617
|
+
oe(p), c(), l = !1;
|
|
618
618
|
};
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Pr(e) {
|
|
622
622
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
623
623
|
}
|
|
624
624
|
var Or = function(t) {
|
|
@@ -660,28 +660,28 @@ function Gr(e) {
|
|
|
660
660
|
function tt(e) {
|
|
661
661
|
return Object.keys(e).concat(Gr(e));
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Ct(e, t) {
|
|
664
664
|
try {
|
|
665
665
|
return t in e;
|
|
666
666
|
} catch {
|
|
667
667
|
return !1;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
670
|
+
function zr(e, t) {
|
|
671
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Fr(e, t, r) {
|
|
674
674
|
var n = {};
|
|
675
675
|
return r.isMergeableObject(e) && tt(e).forEach(function(i) {
|
|
676
676
|
n[i] = ie(e[i], r);
|
|
677
677
|
}), tt(t).forEach(function(i) {
|
|
678
|
-
|
|
678
|
+
zr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
679
679
|
}), n;
|
|
680
680
|
}
|
|
681
681
|
function X(e, t, r) {
|
|
682
682
|
r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = ie;
|
|
683
683
|
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
684
|
-
return a ? n ? r.arrayMerge(e, t, r) :
|
|
684
|
+
return a ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : ie(t, r);
|
|
685
685
|
}
|
|
686
686
|
X.all = function(t, r) {
|
|
687
687
|
if (!Array.isArray(t))
|
|
@@ -691,7 +691,7 @@ X.all = function(t, r) {
|
|
|
691
691
|
}, {});
|
|
692
692
|
};
|
|
693
693
|
var jr = X, Vr = jr;
|
|
694
|
-
const Wr = /* @__PURE__ */
|
|
694
|
+
const Wr = /* @__PURE__ */ Pr(Vr);
|
|
695
695
|
var Ue = function(e, t) {
|
|
696
696
|
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
697
697
|
r.__proto__ = n;
|
|
@@ -728,7 +728,7 @@ function Xr(e, t) {
|
|
|
728
728
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
729
729
|
return r;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Pe(e, t, r) {
|
|
732
732
|
if (r || arguments.length === 2)
|
|
733
733
|
for (var n = 0, i = t.length, a; n < i; n++)
|
|
734
734
|
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
@@ -752,15 +752,15 @@ function Lt(e, t, r) {
|
|
|
752
752
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
|
|
753
753
|
return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function Pt(e, t, r, n, i) {
|
|
756
756
|
return r.bind(t, e, n, i);
|
|
757
757
|
}
|
|
758
758
|
function Zr(e, t) {
|
|
759
759
|
var r = e.length === 1 ? Jr : Lt;
|
|
760
|
-
return
|
|
760
|
+
return Pt(e, this, r, t.cache.create(), t.serializer);
|
|
761
761
|
}
|
|
762
762
|
function Yr(e, t) {
|
|
763
|
-
return
|
|
763
|
+
return Pt(e, this, Lt, t.cache.create(), t.serializer);
|
|
764
764
|
}
|
|
765
765
|
var Qr = function() {
|
|
766
766
|
return JSON.stringify(arguments);
|
|
@@ -939,22 +939,22 @@ var E = function() {
|
|
|
939
939
|
return t;
|
|
940
940
|
}, E.apply(this, arguments);
|
|
941
941
|
};
|
|
942
|
-
var
|
|
943
|
-
function
|
|
942
|
+
var on = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
943
|
+
function sn(e) {
|
|
944
944
|
if (e.length === 0)
|
|
945
945
|
throw new Error("Number skeleton cannot be empty");
|
|
946
|
-
for (var t = e.split(
|
|
946
|
+
for (var t = e.split(on).filter(function(f) {
|
|
947
947
|
return f.length > 0;
|
|
948
948
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
949
|
-
var a = i[n],
|
|
950
|
-
if (
|
|
949
|
+
var a = i[n], o = a.split("/");
|
|
950
|
+
if (o.length === 0)
|
|
951
951
|
throw new Error("Invalid number skeleton");
|
|
952
|
-
for (var
|
|
952
|
+
for (var s = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
953
953
|
var c = h[u];
|
|
954
954
|
if (c.length === 0)
|
|
955
955
|
throw new Error("Invalid number skeleton");
|
|
956
956
|
}
|
|
957
|
-
r.push({ stem:
|
|
957
|
+
r.push({ stem: s, options: l });
|
|
958
958
|
}
|
|
959
959
|
return r;
|
|
960
960
|
}
|
|
@@ -968,7 +968,7 @@ function it(e) {
|
|
|
968
968
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
969
969
|
}), t;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function zt(e) {
|
|
972
972
|
switch (e) {
|
|
973
973
|
case "sign-auto":
|
|
974
974
|
return {
|
|
@@ -1023,7 +1023,7 @@ function hn(e) {
|
|
|
1023
1023
|
return t;
|
|
1024
1024
|
}
|
|
1025
1025
|
function at(e) {
|
|
1026
|
-
var t = {}, r =
|
|
1026
|
+
var t = {}, r = zt(e);
|
|
1027
1027
|
return r || t;
|
|
1028
1028
|
}
|
|
1029
1029
|
function cn(e) {
|
|
@@ -1143,10 +1143,10 @@ function cn(e) {
|
|
|
1143
1143
|
t = E(E({}, t), it(i.stem));
|
|
1144
1144
|
continue;
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1147
|
-
s && (t = E(E({}, t), s));
|
|
1148
|
-
var o = hn(i.stem);
|
|
1146
|
+
var o = zt(i.stem);
|
|
1149
1147
|
o && (t = E(E({}, t), o));
|
|
1148
|
+
var s = hn(i.stem);
|
|
1149
|
+
s && (t = E(E({}, t), s));
|
|
1150
1150
|
}
|
|
1151
1151
|
return t;
|
|
1152
1152
|
}
|
|
@@ -2571,17 +2571,17 @@ function fn(e, t) {
|
|
|
2571
2571
|
if (i === "j") {
|
|
2572
2572
|
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2573
2573
|
a++, n++;
|
|
2574
|
-
var
|
|
2575
|
-
for ((u == "H" || u == "k") && (
|
|
2574
|
+
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = dn(t);
|
|
2575
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2576
2576
|
r += l;
|
|
2577
|
-
for (;
|
|
2577
|
+
for (; o-- > 0; )
|
|
2578
2578
|
r = u + r;
|
|
2579
2579
|
} else
|
|
2580
2580
|
i === "J" ? r += "H" : r += i;
|
|
2581
2581
|
}
|
|
2582
2582
|
return r;
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function dn(e) {
|
|
2585
2585
|
var t = e.hourCycle;
|
|
2586
2586
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2587
2587
|
e.hourCycles && // @ts-ignore
|
|
@@ -2603,20 +2603,20 @@ function mn(e) {
|
|
|
2603
2603
|
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
2604
2604
|
return i[0];
|
|
2605
2605
|
}
|
|
2606
|
-
var Me,
|
|
2606
|
+
var Me, mn = new RegExp("^".concat($t.source, "*")), pn = new RegExp("".concat($t.source, "*$"));
|
|
2607
2607
|
function y(e, t) {
|
|
2608
2608
|
return { start: e, end: t };
|
|
2609
2609
|
}
|
|
2610
2610
|
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), bn = !!String.fromCodePoint, yn = !!Object.fromEntries, vn = !!String.prototype.codePointAt, _n = !!String.prototype.trimStart, En = !!String.prototype.trimEnd, xn = !!Number.isSafeInteger, Tn = xn ? Number.isSafeInteger : function(e) {
|
|
2611
2611
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2612
|
-
},
|
|
2612
|
+
}, ze = !0;
|
|
2613
2613
|
try {
|
|
2614
2614
|
var wn = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2615
|
-
|
|
2615
|
+
ze = ((Me = wn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
2616
2616
|
} catch {
|
|
2617
|
-
|
|
2617
|
+
ze = !1;
|
|
2618
2618
|
}
|
|
2619
|
-
var
|
|
2619
|
+
var ot = gn ? (
|
|
2620
2620
|
// Native
|
|
2621
2621
|
function(t, r, n) {
|
|
2622
2622
|
return t.startsWith(r, n);
|
|
@@ -2626,31 +2626,31 @@ var st = gn ? (
|
|
|
2626
2626
|
function(t, r, n) {
|
|
2627
2627
|
return t.slice(n, n + r.length) === r;
|
|
2628
2628
|
}
|
|
2629
|
-
),
|
|
2629
|
+
), Fe = bn ? String.fromCodePoint : (
|
|
2630
2630
|
// IE11
|
|
2631
2631
|
function() {
|
|
2632
2632
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2633
2633
|
t[r] = arguments[r];
|
|
2634
|
-
for (var n = "", i = t.length, a = 0,
|
|
2635
|
-
if (
|
|
2636
|
-
throw RangeError(
|
|
2637
|
-
n +=
|
|
2634
|
+
for (var n = "", i = t.length, a = 0, o; i > a; ) {
|
|
2635
|
+
if (o = t[a++], o > 1114111)
|
|
2636
|
+
throw RangeError(o + " is not a valid code point");
|
|
2637
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2638
2638
|
}
|
|
2639
2639
|
return n;
|
|
2640
2640
|
}
|
|
2641
|
-
),
|
|
2641
|
+
), st = (
|
|
2642
2642
|
// native
|
|
2643
2643
|
yn ? Object.fromEntries : (
|
|
2644
2644
|
// Ponyfill
|
|
2645
2645
|
function(t) {
|
|
2646
2646
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2647
|
-
var a = i[n],
|
|
2648
|
-
r[
|
|
2647
|
+
var a = i[n], o = a[0], s = a[1];
|
|
2648
|
+
r[o] = s;
|
|
2649
2649
|
}
|
|
2650
2650
|
return r;
|
|
2651
2651
|
}
|
|
2652
2652
|
)
|
|
2653
|
-
),
|
|
2653
|
+
), Ft = vn ? (
|
|
2654
2654
|
// Native
|
|
2655
2655
|
function(t, r) {
|
|
2656
2656
|
return t.codePointAt(r);
|
|
@@ -2672,7 +2672,7 @@ var st = gn ? (
|
|
|
2672
2672
|
) : (
|
|
2673
2673
|
// Ponyfill
|
|
2674
2674
|
function(t) {
|
|
2675
|
-
return t.replace(
|
|
2675
|
+
return t.replace(mn, "");
|
|
2676
2676
|
}
|
|
2677
2677
|
), An = En ? (
|
|
2678
2678
|
// Native
|
|
@@ -2689,7 +2689,7 @@ function jt(e, t) {
|
|
|
2689
2689
|
return new RegExp(e, t);
|
|
2690
2690
|
}
|
|
2691
2691
|
var je;
|
|
2692
|
-
if (
|
|
2692
|
+
if (ze) {
|
|
2693
2693
|
var ut = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2694
2694
|
je = function(t, r) {
|
|
2695
2695
|
var n;
|
|
@@ -2700,12 +2700,12 @@ if (Fe) {
|
|
|
2700
2700
|
} else
|
|
2701
2701
|
je = function(t, r) {
|
|
2702
2702
|
for (var n = []; ; ) {
|
|
2703
|
-
var i =
|
|
2703
|
+
var i = Ft(t, r);
|
|
2704
2704
|
if (i === void 0 || Vt(i) || Ln(i))
|
|
2705
2705
|
break;
|
|
2706
2706
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2707
2707
|
}
|
|
2708
|
-
return
|
|
2708
|
+
return Fe.apply(void 0, n);
|
|
2709
2709
|
};
|
|
2710
2710
|
var Sn = (
|
|
2711
2711
|
/** @class */
|
|
@@ -2721,33 +2721,33 @@ var Sn = (
|
|
|
2721
2721
|
for (var i = []; !this.isEOF(); ) {
|
|
2722
2722
|
var a = this.char();
|
|
2723
2723
|
if (a === 123) {
|
|
2724
|
-
var
|
|
2725
|
-
if (
|
|
2726
|
-
return
|
|
2727
|
-
i.push(
|
|
2724
|
+
var o = this.parseArgument(t, n);
|
|
2725
|
+
if (o.err)
|
|
2726
|
+
return o;
|
|
2727
|
+
i.push(o.val);
|
|
2728
2728
|
} else {
|
|
2729
2729
|
if (a === 125 && t > 0)
|
|
2730
2730
|
break;
|
|
2731
2731
|
if (a === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2732
|
-
var
|
|
2732
|
+
var s = this.clonePosition();
|
|
2733
2733
|
this.bump(), i.push({
|
|
2734
2734
|
type: _.pound,
|
|
2735
|
-
location: y(
|
|
2735
|
+
location: y(s, this.clonePosition())
|
|
2736
2736
|
});
|
|
2737
2737
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2738
2738
|
if (n)
|
|
2739
2739
|
break;
|
|
2740
2740
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2741
2741
|
} else if (a === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
2742
|
-
var
|
|
2743
|
-
if (
|
|
2744
|
-
return
|
|
2745
|
-
i.push(
|
|
2742
|
+
var o = this.parseTag(t, r);
|
|
2743
|
+
if (o.err)
|
|
2744
|
+
return o;
|
|
2745
|
+
i.push(o.val);
|
|
2746
2746
|
} else {
|
|
2747
|
-
var
|
|
2748
|
-
if (
|
|
2749
|
-
return
|
|
2750
|
-
i.push(
|
|
2747
|
+
var o = this.parseLiteral(t, r);
|
|
2748
|
+
if (o.err)
|
|
2749
|
+
return o;
|
|
2750
|
+
i.push(o.val);
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
2753
2753
|
}
|
|
@@ -2769,27 +2769,27 @@ var Sn = (
|
|
|
2769
2769
|
var a = this.parseMessage(t + 1, r, !0);
|
|
2770
2770
|
if (a.err)
|
|
2771
2771
|
return a;
|
|
2772
|
-
var
|
|
2772
|
+
var o = a.val, s = this.clonePosition();
|
|
2773
2773
|
if (this.bumpIf("</")) {
|
|
2774
2774
|
if (this.isEOF() || !Ve(this.char()))
|
|
2775
|
-
return this.error(b.INVALID_TAG, y(
|
|
2775
|
+
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
2776
2776
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2777
2777
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2778
2778
|
val: {
|
|
2779
2779
|
type: _.tag,
|
|
2780
2780
|
value: i,
|
|
2781
|
-
children:
|
|
2781
|
+
children: o,
|
|
2782
2782
|
location: y(n, this.clonePosition())
|
|
2783
2783
|
},
|
|
2784
2784
|
err: null
|
|
2785
|
-
} : this.error(b.INVALID_TAG, y(
|
|
2785
|
+
} : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
|
|
2786
2786
|
} else
|
|
2787
2787
|
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2788
2788
|
} else
|
|
2789
2789
|
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2790
2790
|
}, e.prototype.parseTagName = function() {
|
|
2791
2791
|
var t = this.offset();
|
|
2792
|
-
for (this.bump(); !this.isEOF() &&
|
|
2792
|
+
for (this.bump(); !this.isEOF() && Cn(this.char()); )
|
|
2793
2793
|
this.bump();
|
|
2794
2794
|
return this.message.slice(t, this.offset());
|
|
2795
2795
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2799,16 +2799,16 @@ var Sn = (
|
|
|
2799
2799
|
i += a;
|
|
2800
2800
|
continue;
|
|
2801
2801
|
}
|
|
2802
|
-
var
|
|
2803
|
-
if (s) {
|
|
2804
|
-
i += s;
|
|
2805
|
-
continue;
|
|
2806
|
-
}
|
|
2807
|
-
var o = this.tryParseLeftAngleBracket();
|
|
2802
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2808
2803
|
if (o) {
|
|
2809
2804
|
i += o;
|
|
2810
2805
|
continue;
|
|
2811
2806
|
}
|
|
2807
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2808
|
+
if (s) {
|
|
2809
|
+
i += s;
|
|
2810
|
+
continue;
|
|
2811
|
+
}
|
|
2812
2812
|
break;
|
|
2813
2813
|
}
|
|
2814
2814
|
var l = y(n, this.clonePosition());
|
|
@@ -2852,12 +2852,12 @@ var Sn = (
|
|
|
2852
2852
|
r.push(n);
|
|
2853
2853
|
this.bump();
|
|
2854
2854
|
}
|
|
2855
|
-
return
|
|
2855
|
+
return Fe.apply(void 0, r);
|
|
2856
2856
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2857
2857
|
if (this.isEOF())
|
|
2858
2858
|
return null;
|
|
2859
2859
|
var n = this.char();
|
|
2860
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2860
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2861
2861
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2862
2862
|
var n = this.clonePosition();
|
|
2863
2863
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2888,13 +2888,13 @@ var Sn = (
|
|
|
2888
2888
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2889
2889
|
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2890
2890
|
this.bumpTo(i);
|
|
2891
|
-
var a = this.clonePosition(),
|
|
2892
|
-
return { value: n, location:
|
|
2891
|
+
var a = this.clonePosition(), o = y(t, a);
|
|
2892
|
+
return { value: n, location: o };
|
|
2893
2893
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2894
|
-
var a,
|
|
2895
|
-
switch (
|
|
2894
|
+
var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2895
|
+
switch (s) {
|
|
2896
2896
|
case "":
|
|
2897
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, y(
|
|
2897
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(o, l));
|
|
2898
2898
|
case "number":
|
|
2899
2899
|
case "date":
|
|
2900
2900
|
case "time": {
|
|
@@ -2915,9 +2915,9 @@ var Sn = (
|
|
|
2915
2915
|
if (g.err)
|
|
2916
2916
|
return g;
|
|
2917
2917
|
var x = y(i, this.clonePosition());
|
|
2918
|
-
if (u &&
|
|
2918
|
+
if (u && ot(u?.style, "::", 0)) {
|
|
2919
2919
|
var w = Hn(u.style.slice(2));
|
|
2920
|
-
if (
|
|
2920
|
+
if (s === "number") {
|
|
2921
2921
|
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
2922
2922
|
return c.err ? c : {
|
|
2923
2923
|
val: { type: _.number, value: n, location: x, style: c.val },
|
|
@@ -2933,16 +2933,16 @@ var Sn = (
|
|
|
2933
2933
|
pattern: T,
|
|
2934
2934
|
location: u.styleLocation,
|
|
2935
2935
|
parsedOptions: this.shouldParseSkeletons ? an(T) : {}
|
|
2936
|
-
},
|
|
2936
|
+
}, d = s === "date" ? _.date : _.time;
|
|
2937
2937
|
return {
|
|
2938
|
-
val: { type:
|
|
2938
|
+
val: { type: d, value: n, location: x, style: f },
|
|
2939
2939
|
err: null
|
|
2940
2940
|
};
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
return {
|
|
2944
2944
|
val: {
|
|
2945
|
-
type:
|
|
2945
|
+
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
2946
2946
|
value: n,
|
|
2947
2947
|
location: x,
|
|
2948
2948
|
style: (a = u?.style) !== null && a !== void 0 ? a : null
|
|
@@ -2957,28 +2957,28 @@ var Sn = (
|
|
|
2957
2957
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2958
2958
|
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(v, xe({}, v)));
|
|
2959
2959
|
this.bumpSpace();
|
|
2960
|
-
var N = this.parseIdentifierIfPossible(),
|
|
2961
|
-
if (
|
|
2960
|
+
var N = this.parseIdentifierIfPossible(), P = 0;
|
|
2961
|
+
if (s !== "select" && N.value === "offset") {
|
|
2962
2962
|
if (!this.bumpIf(":"))
|
|
2963
2963
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2964
2964
|
this.bumpSpace();
|
|
2965
2965
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2966
2966
|
if (c.err)
|
|
2967
2967
|
return c;
|
|
2968
|
-
this.bumpSpace(), N = this.parseIdentifierIfPossible(),
|
|
2968
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), P = c.val;
|
|
2969
2969
|
}
|
|
2970
|
-
var
|
|
2971
|
-
if (
|
|
2972
|
-
return
|
|
2970
|
+
var m = this.tryParsePluralOrSelectOptions(t, s, r, N);
|
|
2971
|
+
if (m.err)
|
|
2972
|
+
return m;
|
|
2973
2973
|
var g = this.tryParseArgumentClose(i);
|
|
2974
2974
|
if (g.err)
|
|
2975
2975
|
return g;
|
|
2976
2976
|
var le = y(i, this.clonePosition());
|
|
2977
|
-
return
|
|
2977
|
+
return s === "select" ? {
|
|
2978
2978
|
val: {
|
|
2979
2979
|
type: _.select,
|
|
2980
2980
|
value: n,
|
|
2981
|
-
options:
|
|
2981
|
+
options: st(m.val),
|
|
2982
2982
|
location: le
|
|
2983
2983
|
},
|
|
2984
2984
|
err: null
|
|
@@ -2986,16 +2986,16 @@ var Sn = (
|
|
|
2986
2986
|
val: {
|
|
2987
2987
|
type: _.plural,
|
|
2988
2988
|
value: n,
|
|
2989
|
-
options:
|
|
2990
|
-
offset:
|
|
2991
|
-
pluralType:
|
|
2989
|
+
options: st(m.val),
|
|
2990
|
+
offset: P,
|
|
2991
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2992
2992
|
location: le
|
|
2993
2993
|
},
|
|
2994
2994
|
err: null
|
|
2995
2995
|
};
|
|
2996
2996
|
}
|
|
2997
2997
|
default:
|
|
2998
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, y(
|
|
2998
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(o, l));
|
|
2999
2999
|
}
|
|
3000
3000
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3001
3001
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3037,7 +3037,7 @@ var Sn = (
|
|
|
3037
3037
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3038
3038
|
var n = [];
|
|
3039
3039
|
try {
|
|
3040
|
-
n =
|
|
3040
|
+
n = sn(t);
|
|
3041
3041
|
} catch {
|
|
3042
3042
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3043
3043
|
}
|
|
@@ -3051,7 +3051,7 @@ var Sn = (
|
|
|
3051
3051
|
err: null
|
|
3052
3052
|
};
|
|
3053
3053
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3054
|
-
for (var a,
|
|
3054
|
+
for (var a, o = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3055
3055
|
if (u.length === 0) {
|
|
3056
3056
|
var c = this.clonePosition();
|
|
3057
3057
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3064,7 +3064,7 @@ var Sn = (
|
|
|
3064
3064
|
}
|
|
3065
3065
|
if (l.has(u))
|
|
3066
3066
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3067
|
-
u === "other" && (
|
|
3067
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3068
3068
|
var p = this.clonePosition();
|
|
3069
3069
|
if (!this.bumpIf("{"))
|
|
3070
3070
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3074,7 +3074,7 @@ var Sn = (
|
|
|
3074
3074
|
var x = this.tryParseArgumentClose(p);
|
|
3075
3075
|
if (x.err)
|
|
3076
3076
|
return x;
|
|
3077
|
-
|
|
3077
|
+
s.push([
|
|
3078
3078
|
u,
|
|
3079
3079
|
{
|
|
3080
3080
|
value: g.val,
|
|
@@ -3082,19 +3082,19 @@ var Sn = (
|
|
|
3082
3082
|
}
|
|
3083
3083
|
]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, h = a.location;
|
|
3084
3084
|
}
|
|
3085
|
-
return
|
|
3085
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3086
3086
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3087
3087
|
var n = 1, i = this.clonePosition();
|
|
3088
3088
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3089
|
-
for (var a = !1,
|
|
3090
|
-
var
|
|
3091
|
-
if (
|
|
3092
|
-
a = !0,
|
|
3089
|
+
for (var a = !1, o = 0; !this.isEOF(); ) {
|
|
3090
|
+
var s = this.char();
|
|
3091
|
+
if (s >= 48 && s <= 57)
|
|
3092
|
+
a = !0, o = o * 10 + (s - 48), this.bump();
|
|
3093
3093
|
else
|
|
3094
3094
|
break;
|
|
3095
3095
|
}
|
|
3096
3096
|
var l = y(i, this.clonePosition());
|
|
3097
|
-
return a ? (
|
|
3097
|
+
return a ? (o *= n, Tn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3098
3098
|
}, e.prototype.offset = function() {
|
|
3099
3099
|
return this.position.offset;
|
|
3100
3100
|
}, e.prototype.isEOF = function() {
|
|
@@ -3109,7 +3109,7 @@ var Sn = (
|
|
|
3109
3109
|
var t = this.position.offset;
|
|
3110
3110
|
if (t >= this.message.length)
|
|
3111
3111
|
throw Error("out of bound");
|
|
3112
|
-
var r =
|
|
3112
|
+
var r = Ft(this.message, t);
|
|
3113
3113
|
if (r === void 0)
|
|
3114
3114
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3115
3115
|
return r;
|
|
@@ -3128,7 +3128,7 @@ var Sn = (
|
|
|
3128
3128
|
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);
|
|
3129
3129
|
}
|
|
3130
3130
|
}, e.prototype.bumpIf = function(t) {
|
|
3131
|
-
if (
|
|
3131
|
+
if (ot(this.message, t, this.offset())) {
|
|
3132
3132
|
for (var r = 0; r < t.length; r++)
|
|
3133
3133
|
this.bump();
|
|
3134
3134
|
return !0;
|
|
@@ -3166,7 +3166,7 @@ function Ve(e) {
|
|
|
3166
3166
|
function Bn(e) {
|
|
3167
3167
|
return Ve(e) || e === 47;
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function Cn(e) {
|
|
3170
3170
|
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;
|
|
3171
3171
|
}
|
|
3172
3172
|
function Vt(e) {
|
|
@@ -3184,7 +3184,7 @@ function We(e) {
|
|
|
3184
3184
|
Ot(t) && kt(t.style) || (It(t) || Mt(t)) && Ge(t.style) ? delete t.style.location : Dt(t) && We(t.children);
|
|
3185
3185
|
});
|
|
3186
3186
|
}
|
|
3187
|
-
function
|
|
3187
|
+
function Pn(e, t) {
|
|
3188
3188
|
t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3189
3189
|
var r = new Sn(e, t).parse();
|
|
3190
3190
|
if (r.err) {
|
|
@@ -3249,7 +3249,7 @@ function Mn(e) {
|
|
|
3249
3249
|
function Nn(e) {
|
|
3250
3250
|
return typeof e == "function";
|
|
3251
3251
|
}
|
|
3252
|
-
function _e(e, t, r, n, i, a,
|
|
3252
|
+
function _e(e, t, r, n, i, a, o) {
|
|
3253
3253
|
if (e.length === 1 && rt(e[0]))
|
|
3254
3254
|
return [
|
|
3255
3255
|
{
|
|
@@ -3257,17 +3257,17 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3257
3257
|
value: e[0].value
|
|
3258
3258
|
}
|
|
3259
3259
|
];
|
|
3260
|
-
for (var
|
|
3260
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3261
3261
|
var h = u[l];
|
|
3262
3262
|
if (rt(h)) {
|
|
3263
|
-
|
|
3263
|
+
s.push({
|
|
3264
3264
|
type: H.literal,
|
|
3265
3265
|
value: h.value
|
|
3266
3266
|
});
|
|
3267
3267
|
continue;
|
|
3268
3268
|
}
|
|
3269
3269
|
if (rn(h)) {
|
|
3270
|
-
typeof a == "number" &&
|
|
3270
|
+
typeof a == "number" && s.push({
|
|
3271
3271
|
type: H.literal,
|
|
3272
3272
|
value: r.getNumberFormat(t).format(a)
|
|
3273
3273
|
});
|
|
@@ -3275,10 +3275,10 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3275
3275
|
}
|
|
3276
3276
|
var c = h.value;
|
|
3277
3277
|
if (!(i && c in i))
|
|
3278
|
-
throw new In(c,
|
|
3278
|
+
throw new In(c, o);
|
|
3279
3279
|
var f = i[c];
|
|
3280
3280
|
if (tn(h)) {
|
|
3281
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3281
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3282
3282
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3283
3283
|
value: f
|
|
3284
3284
|
});
|
|
@@ -3286,7 +3286,7 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3286
3286
|
}
|
|
3287
3287
|
if (It(h)) {
|
|
3288
3288
|
var p = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3289
|
-
|
|
3289
|
+
s.push({
|
|
3290
3290
|
type: H.literal,
|
|
3291
3291
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3292
3292
|
});
|
|
@@ -3294,7 +3294,7 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
if (Mt(h)) {
|
|
3296
3296
|
var p = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3297
|
-
|
|
3297
|
+
s.push({
|
|
3298
3298
|
type: H.literal,
|
|
3299
3299
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3300
3300
|
});
|
|
@@ -3302,7 +3302,7 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3302
3302
|
}
|
|
3303
3303
|
if (Ot(h)) {
|
|
3304
3304
|
var p = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
|
|
3305
|
-
p && p.scale && (f = f * (p.scale || 1)),
|
|
3305
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3306
3306
|
type: H.literal,
|
|
3307
3307
|
value: r.getNumberFormat(t, p).format(f)
|
|
3308
3308
|
});
|
|
@@ -3311,22 +3311,22 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3311
3311
|
if (Dt(h)) {
|
|
3312
3312
|
var g = h.children, x = h.value, w = i[x];
|
|
3313
3313
|
if (!Nn(w))
|
|
3314
|
-
throw new On(x, "function",
|
|
3315
|
-
var T = _e(g, t, r, n, i, a),
|
|
3316
|
-
return
|
|
3314
|
+
throw new On(x, "function", o);
|
|
3315
|
+
var T = _e(g, t, r, n, i, a), d = w(T.map(function(P) {
|
|
3316
|
+
return P.value;
|
|
3317
3317
|
}));
|
|
3318
|
-
Array.isArray(
|
|
3318
|
+
Array.isArray(d) || (d = [d]), s.push.apply(s, d.map(function(P) {
|
|
3319
3319
|
return {
|
|
3320
|
-
type: typeof
|
|
3321
|
-
value:
|
|
3320
|
+
type: typeof P == "string" ? H.literal : H.object,
|
|
3321
|
+
value: P
|
|
3322
3322
|
};
|
|
3323
3323
|
}));
|
|
3324
3324
|
}
|
|
3325
3325
|
if (Nt(h)) {
|
|
3326
3326
|
var v = h.options[f] || h.options.other;
|
|
3327
3327
|
if (!v)
|
|
3328
|
-
throw new lt(h.value, f, Object.keys(h.options),
|
|
3329
|
-
|
|
3328
|
+
throw new lt(h.value, f, Object.keys(h.options), o);
|
|
3329
|
+
s.push.apply(s, _e(v.value, t, r, n, i));
|
|
3330
3330
|
continue;
|
|
3331
3331
|
}
|
|
3332
3332
|
if (Rt(h)) {
|
|
@@ -3335,17 +3335,17 @@ function _e(e, t, r, n, i, a, s) {
|
|
|
3335
3335
|
if (!Intl.PluralRules)
|
|
3336
3336
|
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3337
3337
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3338
|
-
`, J.MISSING_INTL_API,
|
|
3338
|
+
`, J.MISSING_INTL_API, o);
|
|
3339
3339
|
var N = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3340
3340
|
v = h.options[N] || h.options.other;
|
|
3341
3341
|
}
|
|
3342
3342
|
if (!v)
|
|
3343
|
-
throw new lt(h.value, f, Object.keys(h.options),
|
|
3344
|
-
|
|
3343
|
+
throw new lt(h.value, f, Object.keys(h.options), o);
|
|
3344
|
+
s.push.apply(s, _e(v.value, t, r, n, i, f - (h.offset || 0)));
|
|
3345
3345
|
continue;
|
|
3346
3346
|
}
|
|
3347
3347
|
}
|
|
3348
|
-
return Mn(
|
|
3348
|
+
return Mn(s);
|
|
3349
3349
|
}
|
|
3350
3350
|
function Rn(e, t) {
|
|
3351
3351
|
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
@@ -3380,7 +3380,7 @@ function kn(e) {
|
|
|
3380
3380
|
getNumberFormat: Oe(function() {
|
|
3381
3381
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3382
3382
|
r[n] = arguments[n];
|
|
3383
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3383
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3384
3384
|
}, {
|
|
3385
3385
|
cache: Ne(e.number),
|
|
3386
3386
|
strategy: Ie.variadic
|
|
@@ -3388,7 +3388,7 @@ function kn(e) {
|
|
|
3388
3388
|
getDateTimeFormat: Oe(function() {
|
|
3389
3389
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3390
3390
|
r[n] = arguments[n];
|
|
3391
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3391
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3392
3392
|
}, {
|
|
3393
3393
|
cache: Ne(e.dateTime),
|
|
3394
3394
|
strategy: Ie.variadic
|
|
@@ -3396,7 +3396,7 @@ function kn(e) {
|
|
|
3396
3396
|
getPluralRules: Oe(function() {
|
|
3397
3397
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3398
3398
|
r[n] = arguments[n];
|
|
3399
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3399
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3400
3400
|
}, {
|
|
3401
3401
|
cache: Ne(e.pluralRules),
|
|
3402
3402
|
strategy: Ie.variadic
|
|
@@ -3433,10 +3433,10 @@ var Wt = (
|
|
|
3433
3433
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3434
3434
|
if (this.message = t, !e.__parse)
|
|
3435
3435
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3436
|
-
var
|
|
3437
|
-
|
|
3438
|
-
var
|
|
3439
|
-
this.ast = e.__parse(t, L(L({},
|
|
3436
|
+
var o = i || {};
|
|
3437
|
+
o.formatters;
|
|
3438
|
+
var s = Xr(o, ["formatters"]);
|
|
3439
|
+
this.ast = e.__parse(t, L(L({}, s), { locale: this.resolvedLocale }));
|
|
3440
3440
|
} else
|
|
3441
3441
|
this.ast = t;
|
|
3442
3442
|
if (!Array.isArray(this.ast))
|
|
@@ -3454,7 +3454,7 @@ var Wt = (
|
|
|
3454
3454
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3455
3455
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3456
3456
|
}
|
|
3457
|
-
}, e.__parse =
|
|
3457
|
+
}, e.__parse = Pn, e.formats = {
|
|
3458
3458
|
number: {
|
|
3459
3459
|
integer: {
|
|
3460
3460
|
maximumFractionDigits: 0
|
|
@@ -3543,26 +3543,26 @@ const R = {}, Un = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][
|
|
|
3543
3543
|
return R[t][e];
|
|
3544
3544
|
const r = ue(t);
|
|
3545
3545
|
for (let n = 0; n < r.length; n++) {
|
|
3546
|
-
const i = r[n], a =
|
|
3546
|
+
const i = r[n], a = zn(i, e);
|
|
3547
3547
|
if (a)
|
|
3548
3548
|
return Un(e, t, a);
|
|
3549
3549
|
}
|
|
3550
3550
|
};
|
|
3551
3551
|
let Ze;
|
|
3552
|
-
const
|
|
3552
|
+
const se = Ae({});
|
|
3553
3553
|
function Gn(e) {
|
|
3554
3554
|
return Ze[e] || null;
|
|
3555
3555
|
}
|
|
3556
3556
|
function qt(e) {
|
|
3557
3557
|
return e in Ze;
|
|
3558
3558
|
}
|
|
3559
|
-
function
|
|
3559
|
+
function zn(e, t) {
|
|
3560
3560
|
if (!qt(e))
|
|
3561
3561
|
return null;
|
|
3562
3562
|
const r = Gn(e);
|
|
3563
3563
|
return $n(r, t);
|
|
3564
3564
|
}
|
|
3565
|
-
function
|
|
3565
|
+
function Fn(e) {
|
|
3566
3566
|
if (e == null)
|
|
3567
3567
|
return;
|
|
3568
3568
|
const t = ue(e);
|
|
@@ -3573,13 +3573,13 @@ function zn(e) {
|
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
3575
3575
|
function Jt(e, ...t) {
|
|
3576
|
-
delete R[e],
|
|
3576
|
+
delete R[e], se.update((r) => (r[e] = Wr.all([r[e] || {}, ...t]), r));
|
|
3577
3577
|
}
|
|
3578
3578
|
Y(
|
|
3579
|
-
[
|
|
3579
|
+
[se],
|
|
3580
3580
|
([e]) => Object.keys(e)
|
|
3581
3581
|
);
|
|
3582
|
-
|
|
3582
|
+
se.subscribe((e) => Ze = e);
|
|
3583
3583
|
const Ee = {};
|
|
3584
3584
|
function jn(e, t) {
|
|
3585
3585
|
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
@@ -3703,15 +3703,15 @@ var ei = Object.defineProperty, ti = Object.defineProperties, ri = Object.getOwn
|
|
|
3703
3703
|
for (var r of ct(t))
|
|
3704
3704
|
ii.call(t, r) && ft(e, r, t[r]);
|
|
3705
3705
|
return e;
|
|
3706
|
-
},
|
|
3706
|
+
}, oi = (e, t) => ti(e, ri(t));
|
|
3707
3707
|
let Xe;
|
|
3708
3708
|
const we = Ae(null);
|
|
3709
|
-
function
|
|
3709
|
+
function dt(e) {
|
|
3710
3710
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3711
3711
|
}
|
|
3712
3712
|
function ue(e, t = Z().fallbackLocale) {
|
|
3713
|
-
const r =
|
|
3714
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3713
|
+
const r = dt(e);
|
|
3714
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3715
3715
|
}
|
|
3716
3716
|
function k() {
|
|
3717
3717
|
return Xe ?? void 0;
|
|
@@ -3719,8 +3719,8 @@ function k() {
|
|
|
3719
3719
|
we.subscribe((e) => {
|
|
3720
3720
|
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3721
3721
|
});
|
|
3722
|
-
const
|
|
3723
|
-
if (e &&
|
|
3722
|
+
const si = (e) => {
|
|
3723
|
+
if (e && Fn(e) && Te(e)) {
|
|
3724
3724
|
const { loadingDelay: t } = Z();
|
|
3725
3725
|
let r;
|
|
3726
3726
|
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
@@ -3733,21 +3733,21 @@ const oi = (e) => {
|
|
|
3733
3733
|
});
|
|
3734
3734
|
}
|
|
3735
3735
|
return we.set(e);
|
|
3736
|
-
}, $ =
|
|
3737
|
-
set:
|
|
3738
|
-
}),
|
|
3736
|
+
}, $ = oi(ai({}, we), {
|
|
3737
|
+
set: si
|
|
3738
|
+
}), Ce = (e) => {
|
|
3739
3739
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3740
3740
|
return (n) => {
|
|
3741
3741
|
const i = JSON.stringify(n);
|
|
3742
3742
|
return i in t ? t[i] : t[i] = e(n);
|
|
3743
3743
|
};
|
|
3744
3744
|
};
|
|
3745
|
-
var ui = Object.defineProperty, He = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable,
|
|
3745
|
+
var ui = Object.defineProperty, He = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
3746
3746
|
for (var r in t || (t = {}))
|
|
3747
|
-
Qt.call(t, r) &&
|
|
3747
|
+
Qt.call(t, r) && mt(e, r, t[r]);
|
|
3748
3748
|
if (He)
|
|
3749
3749
|
for (var r of He(t))
|
|
3750
|
-
Kt.call(t, r) &&
|
|
3750
|
+
Kt.call(t, r) && mt(e, r, t[r]);
|
|
3751
3751
|
return e;
|
|
3752
3752
|
}, Q = (e, t) => {
|
|
3753
3753
|
var r = {};
|
|
@@ -3763,21 +3763,21 @@ const ae = (e, t) => {
|
|
|
3763
3763
|
if (e in r && t in r[e])
|
|
3764
3764
|
return r[e][t];
|
|
3765
3765
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3766
|
-
}, li =
|
|
3766
|
+
}, li = Ce(
|
|
3767
3767
|
(e) => {
|
|
3768
3768
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3769
3769
|
if (r == null)
|
|
3770
3770
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3771
3771
|
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3772
3772
|
}
|
|
3773
|
-
), hi =
|
|
3773
|
+
), hi = Ce(
|
|
3774
3774
|
(e) => {
|
|
3775
3775
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3776
3776
|
if (r == null)
|
|
3777
3777
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3778
3778
|
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3779
3779
|
}
|
|
3780
|
-
), ci =
|
|
3780
|
+
), ci = Ce(
|
|
3781
3781
|
(e) => {
|
|
3782
3782
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3783
3783
|
if (r == null)
|
|
@@ -3793,34 +3793,34 @@ const ae = (e, t) => {
|
|
|
3793
3793
|
"locale"
|
|
3794
3794
|
]);
|
|
3795
3795
|
return li(Ye({ locale: r }, n));
|
|
3796
|
-
},
|
|
3796
|
+
}, di = (e = {}) => {
|
|
3797
3797
|
var t = e, {
|
|
3798
3798
|
locale: r = k()
|
|
3799
3799
|
} = t, n = Q(t, [
|
|
3800
3800
|
"locale"
|
|
3801
3801
|
]);
|
|
3802
3802
|
return hi(Ye({ locale: r }, n));
|
|
3803
|
-
},
|
|
3803
|
+
}, mi = (e = {}) => {
|
|
3804
3804
|
var t = e, {
|
|
3805
3805
|
locale: r = k()
|
|
3806
3806
|
} = t, n = Q(t, [
|
|
3807
3807
|
"locale"
|
|
3808
3808
|
]);
|
|
3809
3809
|
return ci(Ye({ locale: r }, n));
|
|
3810
|
-
}, pi =
|
|
3810
|
+
}, pi = Ce(
|
|
3811
3811
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3812
3812
|
(e, t = k()) => new Wt(e, t, Z().formats, {
|
|
3813
3813
|
ignoreTag: Z().ignoreTag
|
|
3814
3814
|
})
|
|
3815
3815
|
), gi = (e, t = {}) => {
|
|
3816
3816
|
var r, n, i, a;
|
|
3817
|
-
let
|
|
3818
|
-
typeof e == "object" && (
|
|
3817
|
+
let o = t;
|
|
3818
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3819
3819
|
const {
|
|
3820
|
-
values:
|
|
3820
|
+
values: s,
|
|
3821
3821
|
locale: l = k(),
|
|
3822
3822
|
default: u
|
|
3823
|
-
} =
|
|
3823
|
+
} = o;
|
|
3824
3824
|
if (l == null)
|
|
3825
3825
|
throw new Error(
|
|
3826
3826
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
@@ -3832,11 +3832,11 @@ const ae = (e, t) => {
|
|
|
3832
3832
|
return console.warn(
|
|
3833
3833
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3834
3834
|
), h;
|
|
3835
|
-
if (!
|
|
3835
|
+
if (!s)
|
|
3836
3836
|
return h;
|
|
3837
3837
|
let c = h;
|
|
3838
3838
|
try {
|
|
3839
|
-
c = pi(h, l).format(
|
|
3839
|
+
c = pi(h, l).format(s);
|
|
3840
3840
|
} catch (f) {
|
|
3841
3841
|
f instanceof Error && console.warn(
|
|
3842
3842
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3844,11 +3844,11 @@ const ae = (e, t) => {
|
|
|
3844
3844
|
);
|
|
3845
3845
|
}
|
|
3846
3846
|
return c;
|
|
3847
|
-
}, bi = (e, t) =>
|
|
3847
|
+
}, bi = (e, t) => mi(t).format(e), yi = (e, t) => di(t).format(e), vi = (e, t) => fi(t).format(e), _i = (e, t = k()) => Xt(e, t), Ei = Y([$, se], () => gi);
|
|
3848
3848
|
Y([$], () => bi);
|
|
3849
3849
|
Y([$], () => yi);
|
|
3850
3850
|
Y([$], () => vi);
|
|
3851
|
-
Y([$,
|
|
3851
|
+
Y([$, se], () => _i);
|
|
3852
3852
|
function pt(e, t) {
|
|
3853
3853
|
Jt(e, t);
|
|
3854
3854
|
}
|
|
@@ -3904,7 +3904,9 @@ const gt = {
|
|
|
3904
3904
|
CommunicationTimeoutError: "Communication timeout",
|
|
3905
3905
|
MissingPaymentDetails: "Missing payment details",
|
|
3906
3906
|
InvalidAccount: "Invalid account",
|
|
3907
|
-
DuplicatePaymentAccount: "The account you used to request a withdrawal has been deemed suspicious, and your transaction has been canceled for security reasons. Please contact our live support for more details."
|
|
3907
|
+
DuplicatePaymentAccount: "The account you used to request a withdrawal has been deemed suspicious, and your transaction has been canceled for security reasons. Please contact our live support for more details.",
|
|
3908
|
+
InvalidCardHolder: "Invalid card holder",
|
|
3909
|
+
VendorInvalidCard: "Vendor invalid card"
|
|
3908
3910
|
},
|
|
3909
3911
|
tr: {
|
|
3910
3912
|
VendorMicroserviceCommunicationError: "Özür dileriz, ancak ödeme sağlayıcınız bir mikroservis iletişim hatası nedeniyle işlemi gerçekleştiremedi. Lütfen daha sonra tekrar deneyin.",
|
|
@@ -3953,7 +3955,9 @@ const gt = {
|
|
|
3953
3955
|
CommunicationTimeoutError: "İletişim zaman aşımı",
|
|
3954
3956
|
MissingPaymentDetails: "Eksik ödeme bilgileri",
|
|
3955
3957
|
InvalidAccount: "Geçersiz hesap",
|
|
3956
|
-
DuplicatePaymentAccount: "Çekim talebinde bulunduğunuz hesap şüpheli olarak değerlendirilmiş ve işleminiz güvenlik nedeniyle iptal edilmiştir. Detaylı bilgi almak için lütfen canlı destek hattımızla iletişime geçiniz."
|
|
3958
|
+
DuplicatePaymentAccount: "Çekim talebinde bulunduğunuz hesap şüpheli olarak değerlendirilmiş ve işleminiz güvenlik nedeniyle iptal edilmiştir. Detaylı bilgi almak için lütfen canlı destek hattımızla iletişime geçiniz.",
|
|
3959
|
+
InvalidCardHolder: "Geçersiz kart sahibi",
|
|
3960
|
+
VendorInvalidCard: "Özür dileriz, fakat sağlayıcınız hatalı kart bilgileri nedeniyle işleminizi reddetti. Lütfen kart bilgilerinizi yeniden girin veya Destek ekibimizle iletişime geçin. Hata kodu 13500"
|
|
3957
3961
|
},
|
|
3958
3962
|
fr: {
|
|
3959
3963
|
VendorMicroserviceCommunicationError: "Nous sommes désolés, mais votre prestataire de paiement a refusé de traiter en raison d’une erreur de communication de microservice. Veuillez réessayer plus tard.",
|
|
@@ -4012,7 +4016,7 @@ function Et(e) {
|
|
|
4012
4016
|
let t, r;
|
|
4013
4017
|
return {
|
|
4014
4018
|
c() {
|
|
4015
|
-
t =
|
|
4019
|
+
t = C("ui-image"), Ke(t.src, r = `${/*assetsurl*/
|
|
4016
4020
|
e[0]}/error-general-icon.png`) || pe(t, "src", r), pe(t, "width", "300px"), pe(t, "alt", "error");
|
|
4017
4021
|
},
|
|
4018
4022
|
m(n, i) {
|
|
@@ -4051,10 +4055,10 @@ function Bi(e) {
|
|
|
4051
4055
|
}
|
|
4052
4056
|
function xt(e) {
|
|
4053
4057
|
let t;
|
|
4054
|
-
function r(a,
|
|
4058
|
+
function r(a, o) {
|
|
4055
4059
|
return (
|
|
4056
4060
|
/*depositWageringAmount*/
|
|
4057
|
-
a[3] < 0 ? Li :
|
|
4061
|
+
a[3] < 0 ? Li : Ci
|
|
4058
4062
|
);
|
|
4059
4063
|
}
|
|
4060
4064
|
let n = r(e), i = n(e);
|
|
@@ -4062,18 +4066,18 @@ function xt(e) {
|
|
|
4062
4066
|
c() {
|
|
4063
4067
|
i.c(), t = Je();
|
|
4064
4068
|
},
|
|
4065
|
-
m(a,
|
|
4066
|
-
i.m(a,
|
|
4069
|
+
m(a, o) {
|
|
4070
|
+
i.m(a, o), S(a, t, o);
|
|
4067
4071
|
},
|
|
4068
|
-
p(a,
|
|
4069
|
-
n === (n = r(a)) && i ? i.p(a,
|
|
4072
|
+
p(a, o) {
|
|
4073
|
+
n === (n = r(a)) && i ? i.p(a, o) : (i.d(1), i = n(a), i && (i.c(), i.m(t.parentNode, t)));
|
|
4070
4074
|
},
|
|
4071
4075
|
d(a) {
|
|
4072
4076
|
a && A(t), i.d(a);
|
|
4073
4077
|
}
|
|
4074
4078
|
};
|
|
4075
4079
|
}
|
|
4076
|
-
function
|
|
4080
|
+
function Ci(e) {
|
|
4077
4081
|
let t, r = (
|
|
4078
4082
|
/*$_*/
|
|
4079
4083
|
e[5]("DepositWageringLimitText") + ""
|
|
@@ -4083,19 +4087,19 @@ function Pi(e) {
|
|
|
4083
4087
|
);
|
|
4084
4088
|
return {
|
|
4085
4089
|
c() {
|
|
4086
|
-
t =
|
|
4090
|
+
t = C("span"), n = D(r), i = j(), a && a.c(), M(t, "class", "CashierErrorText");
|
|
4087
4091
|
},
|
|
4088
|
-
m(
|
|
4089
|
-
S(
|
|
4092
|
+
m(o, s) {
|
|
4093
|
+
S(o, t, s), B(t, n), B(t, i), a && a.m(t, null);
|
|
4090
4094
|
},
|
|
4091
|
-
p(
|
|
4092
|
-
|
|
4095
|
+
p(o, s) {
|
|
4096
|
+
s & /*$_*/
|
|
4093
4097
|
32 && r !== (r = /*$_*/
|
|
4094
|
-
|
|
4095
|
-
|
|
4098
|
+
o[5]("DepositWageringLimitText") + "") && W(n, r), /*depositWageringAmount*/
|
|
4099
|
+
o[3] > 0 ? a ? a.p(o, s) : (a = Tt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4096
4100
|
},
|
|
4097
|
-
d(
|
|
4098
|
-
|
|
4101
|
+
d(o) {
|
|
4102
|
+
o && A(t), a && a.d();
|
|
4099
4103
|
}
|
|
4100
4104
|
};
|
|
4101
4105
|
}
|
|
@@ -4106,13 +4110,13 @@ function Li(e) {
|
|
|
4106
4110
|
), i;
|
|
4107
4111
|
return {
|
|
4108
4112
|
c() {
|
|
4109
|
-
t =
|
|
4113
|
+
t = C("div"), r = C("span"), i = D(n), M(r, "class", "CashierErrorText LoadingText"), M(t, "class", "WageringFetch");
|
|
4110
4114
|
},
|
|
4111
|
-
m(a,
|
|
4112
|
-
S(a, t,
|
|
4115
|
+
m(a, o) {
|
|
4116
|
+
S(a, t, o), B(t, r), B(r, i);
|
|
4113
4117
|
},
|
|
4114
|
-
p(a,
|
|
4115
|
-
|
|
4118
|
+
p(a, o) {
|
|
4119
|
+
o & /*$_*/
|
|
4116
4120
|
32 && n !== (n = /*$_*/
|
|
4117
4121
|
a[5]("DepositWageringFetching") + "") && W(i, n);
|
|
4118
4122
|
},
|
|
@@ -4154,31 +4158,31 @@ function Tt(e) {
|
|
|
4154
4158
|
}
|
|
4155
4159
|
};
|
|
4156
4160
|
}
|
|
4157
|
-
function
|
|
4161
|
+
function Pi(e) {
|
|
4158
4162
|
let t, r = (
|
|
4159
4163
|
/*$_*/
|
|
4160
4164
|
e[5](`${/*errorcode*/
|
|
4161
4165
|
e[1] || "errorGeneralText"}`) + ""
|
|
4162
|
-
), n, i, a,
|
|
4166
|
+
), n, i, a, o = (
|
|
4163
4167
|
/*errorcode*/
|
|
4164
4168
|
e[1] == "DepositWageringLimit" && xt(e)
|
|
4165
4169
|
);
|
|
4166
4170
|
return {
|
|
4167
4171
|
c() {
|
|
4168
|
-
t =
|
|
4172
|
+
t = C("span"), n = D(r), i = j(), o && o.c(), a = Je(), M(t, "class", "CashierErrorText");
|
|
4169
4173
|
},
|
|
4170
|
-
m(
|
|
4171
|
-
S(
|
|
4174
|
+
m(s, l) {
|
|
4175
|
+
S(s, t, l), B(t, n), S(s, i, l), o && o.m(s, l), S(s, a, l);
|
|
4172
4176
|
},
|
|
4173
|
-
p(
|
|
4177
|
+
p(s, l) {
|
|
4174
4178
|
l & /*$_, errorcode*/
|
|
4175
4179
|
34 && r !== (r = /*$_*/
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4180
|
+
s[5](`${/*errorcode*/
|
|
4181
|
+
s[1] || "errorGeneralText"}`) + "") && W(n, r), /*errorcode*/
|
|
4182
|
+
s[1] == "DepositWageringLimit" ? o ? o.p(s, l) : (o = xt(s), o.c(), o.m(a.parentNode, a)) : o && (o.d(1), o = null);
|
|
4179
4183
|
},
|
|
4180
|
-
d(
|
|
4181
|
-
|
|
4184
|
+
d(s) {
|
|
4185
|
+
s && (A(t), A(i), A(a)), o && o.d(s);
|
|
4182
4186
|
}
|
|
4183
4187
|
};
|
|
4184
4188
|
}
|
|
@@ -4186,36 +4190,36 @@ function Oi(e) {
|
|
|
4186
4190
|
let t, r, n = (
|
|
4187
4191
|
/*$_*/
|
|
4188
4192
|
e[5]("errorGeneralButton") + ""
|
|
4189
|
-
), i, a,
|
|
4193
|
+
), i, a, o;
|
|
4190
4194
|
return {
|
|
4191
4195
|
c() {
|
|
4192
|
-
t =
|
|
4196
|
+
t = C("button"), r = C("span"), i = D(n), M(t, "class", "CashierErrorButton");
|
|
4193
4197
|
},
|
|
4194
|
-
m(
|
|
4195
|
-
S(
|
|
4198
|
+
m(s, l) {
|
|
4199
|
+
S(s, t, l), B(t, r), B(r, i), a || (o = ur(
|
|
4196
4200
|
t,
|
|
4197
4201
|
"click",
|
|
4198
4202
|
/*close*/
|
|
4199
4203
|
e[6]
|
|
4200
4204
|
), a = !0);
|
|
4201
4205
|
},
|
|
4202
|
-
p(
|
|
4206
|
+
p(s, l) {
|
|
4203
4207
|
l & /*$_*/
|
|
4204
4208
|
32 && n !== (n = /*$_*/
|
|
4205
|
-
|
|
4209
|
+
s[5]("errorGeneralButton") + "") && W(i, n);
|
|
4206
4210
|
},
|
|
4207
|
-
d(
|
|
4208
|
-
|
|
4211
|
+
d(s) {
|
|
4212
|
+
s && A(t), a = !1, o();
|
|
4209
4213
|
}
|
|
4210
4214
|
};
|
|
4211
4215
|
}
|
|
4212
4216
|
function Ii(e) {
|
|
4213
|
-
let t, r, n, i, a,
|
|
4214
|
-
const
|
|
4217
|
+
let t, r, n, i, a, o;
|
|
4218
|
+
const s = (
|
|
4215
4219
|
/*#slots*/
|
|
4216
4220
|
e[13].icon
|
|
4217
4221
|
), l = ce(
|
|
4218
|
-
|
|
4222
|
+
s,
|
|
4219
4223
|
e,
|
|
4220
4224
|
/*$$scope*/
|
|
4221
4225
|
e[12],
|
|
@@ -4238,7 +4242,7 @@ function Ii(e) {
|
|
|
4238
4242
|
/*$$scope*/
|
|
4239
4243
|
e[12],
|
|
4240
4244
|
yt
|
|
4241
|
-
), g = p ||
|
|
4245
|
+
), g = p || Pi(e), x = (
|
|
4242
4246
|
/*#slots*/
|
|
4243
4247
|
e[13].button
|
|
4244
4248
|
), w = ce(
|
|
@@ -4250,166 +4254,166 @@ function Ii(e) {
|
|
|
4250
4254
|
), T = w || Oi(e);
|
|
4251
4255
|
return {
|
|
4252
4256
|
c() {
|
|
4253
|
-
t =
|
|
4257
|
+
t = C("div"), r = C("div"), u && u.c(), n = j(), c && c.c(), i = j(), g && g.c(), a = j(), T && T.c(), M(r, "class", "CashierErrorContent"), M(t, "class", "CashierError");
|
|
4254
4258
|
},
|
|
4255
|
-
m(
|
|
4256
|
-
S(
|
|
4259
|
+
m(d, v) {
|
|
4260
|
+
S(d, t, v), B(t, r), u && u.m(r, null), B(r, n), c && c.m(r, null), B(r, i), g && g.m(r, null), B(r, a), T && T.m(r, null), e[14](t), o = !0;
|
|
4257
4261
|
},
|
|
4258
|
-
p(
|
|
4259
|
-
l ? l.p && (!
|
|
4260
|
-
4096) &&
|
|
4262
|
+
p(d, [v]) {
|
|
4263
|
+
l ? l.p && (!o || v & /*$$scope*/
|
|
4264
|
+
4096) && de(
|
|
4261
4265
|
l,
|
|
4262
|
-
|
|
4263
|
-
|
|
4266
|
+
s,
|
|
4267
|
+
d,
|
|
4264
4268
|
/*$$scope*/
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4269
|
+
d[12],
|
|
4270
|
+
o ? fe(
|
|
4271
|
+
s,
|
|
4268
4272
|
/*$$scope*/
|
|
4269
|
-
|
|
4273
|
+
d[12],
|
|
4270
4274
|
v,
|
|
4271
4275
|
Si
|
|
4272
|
-
) :
|
|
4276
|
+
) : me(
|
|
4273
4277
|
/*$$scope*/
|
|
4274
|
-
|
|
4278
|
+
d[12]
|
|
4275
4279
|
),
|
|
4276
4280
|
_t
|
|
4277
|
-
) : u && u.p && (!
|
|
4278
|
-
1) && u.p(
|
|
4279
|
-
4096) &&
|
|
4281
|
+
) : u && u.p && (!o || v & /*assetsurl*/
|
|
4282
|
+
1) && u.p(d, o ? v : -1), c && c.p && (!o || v & /*$$scope*/
|
|
4283
|
+
4096) && de(
|
|
4280
4284
|
c,
|
|
4281
4285
|
h,
|
|
4282
|
-
|
|
4286
|
+
d,
|
|
4283
4287
|
/*$$scope*/
|
|
4284
|
-
|
|
4285
|
-
|
|
4288
|
+
d[12],
|
|
4289
|
+
o ? fe(
|
|
4286
4290
|
h,
|
|
4287
4291
|
/*$$scope*/
|
|
4288
|
-
|
|
4292
|
+
d[12],
|
|
4289
4293
|
v,
|
|
4290
4294
|
Ai
|
|
4291
|
-
) :
|
|
4295
|
+
) : me(
|
|
4292
4296
|
/*$$scope*/
|
|
4293
|
-
|
|
4297
|
+
d[12]
|
|
4294
4298
|
),
|
|
4295
4299
|
vt
|
|
4296
|
-
), p ? p.p && (!
|
|
4297
|
-
4096) &&
|
|
4300
|
+
), p ? p.p && (!o || v & /*$$scope*/
|
|
4301
|
+
4096) && de(
|
|
4298
4302
|
p,
|
|
4299
4303
|
f,
|
|
4300
|
-
|
|
4304
|
+
d,
|
|
4301
4305
|
/*$$scope*/
|
|
4302
|
-
|
|
4303
|
-
|
|
4306
|
+
d[12],
|
|
4307
|
+
o ? fe(
|
|
4304
4308
|
f,
|
|
4305
4309
|
/*$$scope*/
|
|
4306
|
-
|
|
4310
|
+
d[12],
|
|
4307
4311
|
v,
|
|
4308
4312
|
Hi
|
|
4309
|
-
) :
|
|
4313
|
+
) : me(
|
|
4310
4314
|
/*$$scope*/
|
|
4311
|
-
|
|
4315
|
+
d[12]
|
|
4312
4316
|
),
|
|
4313
4317
|
yt
|
|
4314
|
-
) : g && g.p && (!
|
|
4315
|
-
58) && g.p(
|
|
4316
|
-
4096) &&
|
|
4318
|
+
) : g && g.p && (!o || v & /*$_, depositWageringAmount, depositWageringCurrency, errorcode*/
|
|
4319
|
+
58) && g.p(d, o ? v : -1), w ? w.p && (!o || v & /*$$scope*/
|
|
4320
|
+
4096) && de(
|
|
4317
4321
|
w,
|
|
4318
4322
|
x,
|
|
4319
|
-
|
|
4323
|
+
d,
|
|
4320
4324
|
/*$$scope*/
|
|
4321
|
-
|
|
4322
|
-
|
|
4325
|
+
d[12],
|
|
4326
|
+
o ? fe(
|
|
4323
4327
|
x,
|
|
4324
4328
|
/*$$scope*/
|
|
4325
|
-
|
|
4329
|
+
d[12],
|
|
4326
4330
|
v,
|
|
4327
4331
|
wi
|
|
4328
|
-
) :
|
|
4332
|
+
) : me(
|
|
4329
4333
|
/*$$scope*/
|
|
4330
|
-
|
|
4334
|
+
d[12]
|
|
4331
4335
|
),
|
|
4332
4336
|
bt
|
|
4333
|
-
) : T && T.p && (!
|
|
4334
|
-
32) && T.p(
|
|
4337
|
+
) : T && T.p && (!o || v & /*$_*/
|
|
4338
|
+
32) && T.p(d, o ? v : -1);
|
|
4335
4339
|
},
|
|
4336
|
-
i(
|
|
4337
|
-
|
|
4340
|
+
i(d) {
|
|
4341
|
+
o || (ee(u, d), ee(c, d), ee(g, d), ee(T, d), o = !0);
|
|
4338
4342
|
},
|
|
4339
|
-
o(
|
|
4340
|
-
ge(u,
|
|
4343
|
+
o(d) {
|
|
4344
|
+
ge(u, d), ge(c, d), ge(g, d), ge(T, d), o = !1;
|
|
4341
4345
|
},
|
|
4342
|
-
d(
|
|
4343
|
-
|
|
4346
|
+
d(d) {
|
|
4347
|
+
d && A(t), u && u.d(d), c && c.d(d), g && g.d(d), T && T.d(d), e[14](null);
|
|
4344
4348
|
}
|
|
4345
4349
|
};
|
|
4346
4350
|
}
|
|
4347
4351
|
function Mi(e, t, r) {
|
|
4348
4352
|
let n;
|
|
4349
|
-
ir(e, Ei, (
|
|
4350
|
-
let { $$slots: i = {}, $$scope: a } = t, { assetsurl:
|
|
4353
|
+
ir(e, Ei, (m) => r(5, n = m));
|
|
4354
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: s = "en" } = t, { errorcode: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f = "" } = t, p, g, x = -1, w;
|
|
4351
4355
|
const T = () => {
|
|
4352
|
-
xi(
|
|
4353
|
-
},
|
|
4356
|
+
xi(s);
|
|
4357
|
+
}, d = async () => {
|
|
4354
4358
|
if (c)
|
|
4355
4359
|
try {
|
|
4356
|
-
const
|
|
4357
|
-
if (!
|
|
4358
|
-
throw new Error(`HTTP error! status: ${
|
|
4359
|
-
const le = await
|
|
4360
|
+
const m = await fetch(c);
|
|
4361
|
+
if (!m.ok)
|
|
4362
|
+
throw new Error(`HTTP error! status: ${m.status}`);
|
|
4363
|
+
const le = await m.json();
|
|
4360
4364
|
Object.entries(le).forEach(([er, tr]) => {
|
|
4361
4365
|
pt(er, tr);
|
|
4362
4366
|
});
|
|
4363
|
-
} catch (
|
|
4364
|
-
console.error(
|
|
4367
|
+
} catch (m) {
|
|
4368
|
+
console.error(m);
|
|
4365
4369
|
}
|
|
4366
4370
|
};
|
|
4367
|
-
Object.keys(gt).forEach((
|
|
4368
|
-
pt(
|
|
4371
|
+
Object.keys(gt).forEach((m) => {
|
|
4372
|
+
pt(m, gt[m]);
|
|
4369
4373
|
});
|
|
4370
4374
|
const v = () => {
|
|
4371
4375
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4372
|
-
}, N = (
|
|
4373
|
-
if (
|
|
4374
|
-
switch (
|
|
4376
|
+
}, N = (m) => {
|
|
4377
|
+
if (m.data)
|
|
4378
|
+
switch (m.data.type) {
|
|
4375
4379
|
case "DepositWageringAmount":
|
|
4376
|
-
r(3, x =
|
|
4380
|
+
r(3, x = m.data.amount), r(4, w = m.data.currency);
|
|
4377
4381
|
break;
|
|
4378
4382
|
}
|
|
4379
4383
|
};
|
|
4380
4384
|
fr(() => (window.addEventListener("message", N, !1), () => {
|
|
4381
4385
|
window.removeEventListener("message", N);
|
|
4382
4386
|
}));
|
|
4383
|
-
function
|
|
4384
|
-
De[
|
|
4385
|
-
p =
|
|
4387
|
+
function P(m) {
|
|
4388
|
+
De[m ? "unshift" : "push"](() => {
|
|
4389
|
+
p = m, r(2, p);
|
|
4386
4390
|
});
|
|
4387
4391
|
}
|
|
4388
|
-
return e.$$set = (
|
|
4389
|
-
"assetsurl" in
|
|
4392
|
+
return e.$$set = (m) => {
|
|
4393
|
+
"assetsurl" in m && r(0, o = m.assetsurl), "lang" in m && r(7, s = m.lang), "errorcode" in m && r(1, l = m.errorcode), "clientstyling" in m && r(8, u = m.clientstyling), "clientstylingurl" in m && r(9, h = m.clientstylingurl), "translationurl" in m && r(10, c = m.translationurl), "mbsource" in m && r(11, f = m.mbsource), "$$scope" in m && r(12, a = m.$$scope);
|
|
4390
4394
|
}, e.$$.update = () => {
|
|
4391
4395
|
e.$$.dirty & /*lang*/
|
|
4392
|
-
128 &&
|
|
4396
|
+
128 && s && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4393
4397
|
260 && u && p && Hr(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4394
4398
|
516 && h && p && Ar(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4395
4399
|
2052 && f && p && Sr(p, `${f}.Style`, g), e.$$.dirty & /*translationurl*/
|
|
4396
|
-
1024 && c &&
|
|
4400
|
+
1024 && c && d();
|
|
4397
4401
|
}, [
|
|
4398
|
-
|
|
4402
|
+
o,
|
|
4399
4403
|
l,
|
|
4400
4404
|
p,
|
|
4401
4405
|
x,
|
|
4402
4406
|
w,
|
|
4403
4407
|
n,
|
|
4404
4408
|
v,
|
|
4405
|
-
|
|
4409
|
+
s,
|
|
4406
4410
|
u,
|
|
4407
4411
|
h,
|
|
4408
4412
|
c,
|
|
4409
4413
|
f,
|
|
4410
4414
|
a,
|
|
4411
4415
|
i,
|
|
4412
|
-
|
|
4416
|
+
P
|
|
4413
4417
|
];
|
|
4414
4418
|
}
|
|
4415
4419
|
class Ni extends Tr {
|