@everymatrix/cashier-verifications 1.86.5 → 1.86.6
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/{CashierModal-M1bz2O3j.js → CashierModal-BjKcHvnI.js} +25 -25
- package/components/{CashierModal-DozCEzqK.js → CashierModal-BoesQjdb.js} +19 -19
- package/components/{CashierModal-B-ktO0iW.cjs → CashierModal-CsJICZpd.cjs} +1 -1
- package/components/{CashierVerifications-CmJxpNZF.js → CashierVerifications-4DRlPs3v.js} +2 -2
- package/components/{CashierVerifications-DArnSBUX.js → CashierVerifications-BkOiwFD_.js} +2 -2
- package/components/{CashierVerifications-BZ9HMYxv.cjs → CashierVerifications-HkQ8MdDi.cjs} +2 -2
- 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
|
@@ -46,7 +46,7 @@ function rt() {
|
|
|
46
46
|
function F(e) {
|
|
47
47
|
e.forEach($t);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function wt(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
52
|
function At(e, t) {
|
|
@@ -69,11 +69,11 @@ function me(e, t, n) {
|
|
|
69
69
|
}
|
|
70
70
|
function lt(e, t, n, i) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const s =
|
|
72
|
+
const s = bt(e, t, n, i);
|
|
73
73
|
return e[0](s);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function bt(e, t, n, i) {
|
|
77
77
|
return e[1] && i ? Ht(n.ctx.slice(), e[1](i(t))) : n.ctx;
|
|
78
78
|
}
|
|
79
79
|
function ct(e, t, n, i) {
|
|
@@ -93,7 +93,7 @@ function ct(e, t, n, i) {
|
|
|
93
93
|
}
|
|
94
94
|
function at(e, t, n, i, s, o) {
|
|
95
95
|
if (s) {
|
|
96
|
-
const r =
|
|
96
|
+
const r = bt(t, n, i, o);
|
|
97
97
|
e.p(r, s);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -106,7 +106,7 @@ function dt(e) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function b(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
112
|
function Nt(e, t, n) {
|
|
@@ -127,7 +127,7 @@ function Wt(e) {
|
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
129
|
function Pt(e, t) {
|
|
130
|
-
return
|
|
130
|
+
return b(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
@@ -202,7 +202,7 @@ function Yt(e, t) {
|
|
|
202
202
|
}
|
|
203
203
|
)) : (i.src = "about:blank", i.onload = () => {
|
|
204
204
|
o = et(i.contentWindow, "resize", t), t();
|
|
205
|
-
}),
|
|
205
|
+
}), b(e, i), () => {
|
|
206
206
|
(s || o && i.contentWindow) && o(), O(i);
|
|
207
207
|
};
|
|
208
208
|
}
|
|
@@ -313,7 +313,7 @@ function $e(e) {
|
|
|
313
313
|
function Qt(e, t, n) {
|
|
314
314
|
const { fragment: i, after_update: s } = e.$$;
|
|
315
315
|
i && i.m(t, n), Z(() => {
|
|
316
|
-
const o = e.$$.on_mount.map($t).filter(
|
|
316
|
+
const o = e.$$.on_mount.map($t).filter(wt);
|
|
317
317
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : F(o), e.$$.on_mount = [];
|
|
318
318
|
}), s.forEach(Z);
|
|
319
319
|
}
|
|
@@ -351,8 +351,8 @@ function ee(e, t, n, i, s, o, r = null, c = [-1]) {
|
|
|
351
351
|
r && r(l.root);
|
|
352
352
|
let v = !1;
|
|
353
353
|
if (l.ctx = n ? n(e, t.props || {}, (p, k, ..._) => {
|
|
354
|
-
const
|
|
355
|
-
return l.ctx && s(l.ctx[p], l.ctx[p] =
|
|
354
|
+
const w = _.length ? _[0] : k;
|
|
355
|
+
return l.ctx && s(l.ctx[p], l.ctx[p] = w) && (!l.skip_bound && l.bound[p] && l.bound[p](w), v && te(e, p)), k;
|
|
356
356
|
}) : [], l.update(), v = !0, F(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
|
|
357
357
|
if (t.hydrate) {
|
|
358
358
|
const p = Ft(t.target);
|
|
@@ -575,7 +575,7 @@ class ie {
|
|
|
575
575
|
* @returns {() => void}
|
|
576
576
|
*/
|
|
577
577
|
$on(t, n) {
|
|
578
|
-
if (!
|
|
578
|
+
if (!wt(n))
|
|
579
579
|
return q;
|
|
580
580
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
581
581
|
return i.push(n), () => {
|
|
@@ -623,7 +623,7 @@ function ce(e) {
|
|
|
623
623
|
}
|
|
624
624
|
const ae = (e) => ({}), ht = (e) => ({}), de = (e) => ({}), mt = (e) => ({});
|
|
625
625
|
function gt(e) {
|
|
626
|
-
let t, n, i, s, o, r, c, d, l, v, p, k, _,
|
|
626
|
+
let t, n, i, s, o, r, c, d, l, v, p, k, _, w, m, f, j, h = (
|
|
627
627
|
/*modaltype*/
|
|
628
628
|
(e[3] == "error" || /*modaltype*/
|
|
629
629
|
e[3] == "bonusDescription") && pt()
|
|
@@ -675,7 +675,7 @@ function gt(e) {
|
|
|
675
675
|
));
|
|
676
676
|
},
|
|
677
677
|
m(u, L) {
|
|
678
|
-
D(u, t, L),
|
|
678
|
+
D(u, t, L), b(t, n), b(n, i), b(i, s), h && h.m(s, null), b(s, o), b(s, r), y && y.m(r, null), b(i, c), b(i, d), b(d, l), b(l, v), b(n, p), g && g.m(n, null), b(n, k), b(n, _), x && x.m(_, null), e[15](_), e[16](n), e[17](t), w = Yt(
|
|
679
679
|
t,
|
|
680
680
|
/*div6_elementresize_handler*/
|
|
681
681
|
e[18].bind(t)
|
|
@@ -753,7 +753,7 @@ function gt(e) {
|
|
|
753
753
|
G(y, u), G(x, u), m = !1;
|
|
754
754
|
},
|
|
755
755
|
d(u) {
|
|
756
|
-
u && O(t), h && h.d(), y && y.d(u), g && g.d(), x && x.d(u), e[15](null), e[16](null), e[17](null),
|
|
756
|
+
u && O(t), h && h.d(), y && y.d(u), g && g.d(), x && x.d(u), e[15](null), e[16](null), e[17](null), w(), f = !1, j();
|
|
757
757
|
}
|
|
758
758
|
};
|
|
759
759
|
}
|
|
@@ -816,9 +816,9 @@ function ue(e) {
|
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
function fe(e, t, n) {
|
|
819
|
-
let { $$slots: i = {}, $$scope: s } = t, { mbsource: o } = t, { clientstyling: r } = t, { clientstylingurl: c } = t, { show: d } = t, { modaltype: l = "" } = t, { isloading: v = "false" } = t, { width: p } = t, { height: k } = t, _,
|
|
819
|
+
let { $$slots: i = {}, $$scope: s } = t, { mbsource: o } = t, { clientstyling: r } = t, { clientstylingurl: c } = t, { show: d } = t, { modaltype: l = "" } = t, { isloading: v = "false" } = t, { width: p } = t, { height: k } = t, _, w, m, f, j = !1, h, S;
|
|
820
820
|
const y = () => {
|
|
821
|
-
h && clearTimeout(h), _ && (_.classList.add("closing"), h = setTimeout(
|
|
821
|
+
h && clearTimeout(h), _ && (_.classList.add("closing"), window.dispatchEvent(new CustomEvent("manualClosePopup")), h = setTimeout(
|
|
822
822
|
() => {
|
|
823
823
|
window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
|
|
824
824
|
},
|
|
@@ -873,7 +873,7 @@ function fe(e, t, n) {
|
|
|
873
873
|
}
|
|
874
874
|
function Mt(a) {
|
|
875
875
|
I[a ? "unshift" : "push"](() => {
|
|
876
|
-
|
|
876
|
+
w = a, n(5, w);
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
return e.$$set = (a) => {
|
|
@@ -883,16 +883,16 @@ function fe(e, t, n) {
|
|
|
883
883
|
16 && v && X().then(() => {
|
|
884
884
|
g();
|
|
885
885
|
}), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
886
|
-
2080 && r &&
|
|
887
|
-
4128 && c &&
|
|
888
|
-
1056 && o &&
|
|
886
|
+
2080 && r && w && oe(w, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
887
|
+
4128 && c && w && re(w, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
888
|
+
1056 && o && w && le(w, `${o}.Style`);
|
|
889
889
|
}, [
|
|
890
890
|
p,
|
|
891
891
|
k,
|
|
892
892
|
d,
|
|
893
893
|
l,
|
|
894
894
|
v,
|
|
895
|
-
|
|
895
|
+
w,
|
|
896
896
|
_,
|
|
897
897
|
m,
|
|
898
898
|
f,
|
|
@@ -980,7 +980,7 @@ class vt extends ie {
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
ne(vt, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, isloading: {}, width: {}, height: {} }, ["title", "content"], [], !0);
|
|
983
|
-
const
|
|
983
|
+
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
984
984
|
__proto__: null,
|
|
985
985
|
default: vt
|
|
986
986
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -988,7 +988,7 @@ export {
|
|
|
988
988
|
oe as A,
|
|
989
989
|
re as B,
|
|
990
990
|
le as C,
|
|
991
|
-
|
|
991
|
+
we as D,
|
|
992
992
|
ie as S,
|
|
993
993
|
Bt as a,
|
|
994
994
|
ee as b,
|
|
@@ -998,7 +998,7 @@ export {
|
|
|
998
998
|
E as f,
|
|
999
999
|
D as g,
|
|
1000
1000
|
C as h,
|
|
1001
|
-
|
|
1001
|
+
wt as i,
|
|
1002
1002
|
$ as j,
|
|
1003
1003
|
me as k,
|
|
1004
1004
|
I as l,
|
|
@@ -1011,7 +1011,7 @@ export {
|
|
|
1011
1011
|
At as s,
|
|
1012
1012
|
z as t,
|
|
1013
1013
|
_e as u,
|
|
1014
|
-
|
|
1014
|
+
b as v,
|
|
1015
1015
|
et as w,
|
|
1016
1016
|
ut as x,
|
|
1017
1017
|
Y as y,
|
|
@@ -77,7 +77,7 @@ function st(t) {
|
|
|
77
77
|
}
|
|
78
78
|
return -1;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function w(t, e) {
|
|
81
81
|
t.appendChild(e);
|
|
82
82
|
}
|
|
83
83
|
function Lt(t, e, n) {
|
|
@@ -98,7 +98,7 @@ function Et(t) {
|
|
|
98
98
|
) : t.ownerDocument;
|
|
99
99
|
}
|
|
100
100
|
function St(t, e) {
|
|
101
|
-
return
|
|
101
|
+
return w(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
t.head || t,
|
|
104
104
|
e
|
|
@@ -173,7 +173,7 @@ function zt(t, e) {
|
|
|
173
173
|
}
|
|
174
174
|
)) : (i.src = "about:blank", i.onload = () => {
|
|
175
175
|
o = Q(i.contentWindow, "resize", e), e();
|
|
176
|
-
}),
|
|
176
|
+
}), w(t, i), () => {
|
|
177
177
|
(s || o && i.contentWindow) && o(), T(i);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
@@ -594,7 +594,7 @@ function at(t) {
|
|
|
594
594
|
const E = (
|
|
595
595
|
/*#slots*/
|
|
596
596
|
t[14].title
|
|
597
|
-
),
|
|
597
|
+
), b = et(
|
|
598
598
|
E,
|
|
599
599
|
t,
|
|
600
600
|
/*$$scope*/
|
|
@@ -617,7 +617,7 @@ function at(t) {
|
|
|
617
617
|
);
|
|
618
618
|
return {
|
|
619
619
|
c() {
|
|
620
|
-
e = C("div"), n = C("div"), i = C("div"), s = C("div"), h && h.c(), o = D(), d = C("div"),
|
|
620
|
+
e = C("div"), n = C("div"), i = C("div"), s = C("div"), h && h.c(), o = D(), d = C("div"), b && b.c(), l = D(), f = C("div"), c = ot("svg"), k = ot("path"), _ = D(), g && g.c(), v = D(), p = C("div"), x && x.c(), $(d, "class", "TitleText"), $(s, "class", "ModalTitle"), $(k, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), $(c, "xmlns", "http://www.w3.org/2000/svg"), $(c, "viewBox", "0 0 13 13"), $(c, "fill", "none"), $(c, "class", "CloseButton"), $(f, "class", "ModalCloseIcon"), $(i, "class", "ModalHeader"), $(p, "class", "ModalContentWrapper"), j(
|
|
621
621
|
p,
|
|
622
622
|
"hidden",
|
|
623
623
|
/*isloading*/
|
|
@@ -638,7 +638,7 @@ function at(t) {
|
|
|
638
638
|
));
|
|
639
639
|
},
|
|
640
640
|
m(a, M) {
|
|
641
|
-
F(a, e, M),
|
|
641
|
+
F(a, e, M), w(e, n), w(n, i), w(i, s), h && h.m(s, null), w(s, o), w(s, d), b && b.m(d, null), w(i, l), w(i, f), w(f, c), w(c, k), w(n, _), g && g.m(n, null), w(n, v), w(n, p), x && x.m(p, null), t[15](p), t[16](n), t[17](e), y = zt(
|
|
642
642
|
e,
|
|
643
643
|
/*div6_elementresize_handler*/
|
|
644
644
|
t[18].bind(e)
|
|
@@ -652,9 +652,9 @@ function at(t) {
|
|
|
652
652
|
p(a, M) {
|
|
653
653
|
/*modaltype*/
|
|
654
654
|
a[3] == "error" || /*modaltype*/
|
|
655
|
-
a[3] == "bonusDescription" ? h || (h = dt(), h.c(), h.m(s, o)) : h && (h.d(1), h = null),
|
|
655
|
+
a[3] == "bonusDescription" ? h || (h = dt(), h.c(), h.m(s, o)) : h && (h.d(1), h = null), b && b.p && (!m || M & /*$$scope*/
|
|
656
656
|
8192) && it(
|
|
657
|
-
|
|
657
|
+
b,
|
|
658
658
|
E,
|
|
659
659
|
a,
|
|
660
660
|
/*$$scope*/
|
|
@@ -710,13 +710,13 @@ function at(t) {
|
|
|
710
710
|
);
|
|
711
711
|
},
|
|
712
712
|
i(a) {
|
|
713
|
-
m || (B(
|
|
713
|
+
m || (B(b, a), B(x, a), m = !0);
|
|
714
714
|
},
|
|
715
715
|
o(a) {
|
|
716
|
-
Z(
|
|
716
|
+
Z(b, a), Z(x, a), m = !1;
|
|
717
717
|
},
|
|
718
718
|
d(a) {
|
|
719
|
-
a && T(e), h && h.d(),
|
|
719
|
+
a && T(e), h && h.d(), b && b.d(a), g && g.d(), x && x.d(a), t[15](null), t[16](null), t[17](null), y(), u = !1, O();
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
}
|
|
@@ -780,8 +780,8 @@ function te(t) {
|
|
|
780
780
|
}
|
|
781
781
|
function ee(t, e, n) {
|
|
782
782
|
let { $$slots: i = {}, $$scope: s } = e, { mbsource: o } = e, { clientstyling: d } = e, { clientstylingurl: l } = e, { show: f } = e, { modaltype: c = "" } = e, { isloading: k = "false" } = e, { width: _ } = e, { height: v } = e, p, y, m, u, O = !1, h, E;
|
|
783
|
-
const
|
|
784
|
-
h && clearTimeout(h), p && (p.classList.add("closing"), h = setTimeout(
|
|
783
|
+
const b = () => {
|
|
784
|
+
h && clearTimeout(h), p && (p.classList.add("closing"), window.dispatchEvent(new CustomEvent("manualClosePopup")), h = setTimeout(
|
|
785
785
|
() => {
|
|
786
786
|
window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
|
|
787
787
|
},
|
|
@@ -791,10 +791,10 @@ function ee(t, e, n) {
|
|
|
791
791
|
if (!u || !m || O)
|
|
792
792
|
return;
|
|
793
793
|
E && clearTimeout(h), O = !0;
|
|
794
|
-
const r = u.offsetWidth,
|
|
795
|
-
n(8, u.style.width = `${r}px`, u), n(8, u.style.height = `${
|
|
796
|
-
const
|
|
797
|
-
n(8, u.style.width = `${xt}px`, u), n(8, u.style.height = `${
|
|
794
|
+
const r = u.offsetWidth, wt = u.offsetHeight;
|
|
795
|
+
n(8, u.style.width = `${r}px`, u), n(8, u.style.height = `${wt}px`, u), u.offsetHeight, await G();
|
|
796
|
+
const bt = m.scrollHeight, xt = m.scrollWidth;
|
|
797
|
+
n(8, u.style.width = `${xt}px`, u), n(8, u.style.height = `${bt}px`, u), E = setTimeout(
|
|
798
798
|
() => {
|
|
799
799
|
u && (n(8, u.style.width = "auto", u), n(8, u.style.height = "auto", u)), O = !1;
|
|
800
800
|
},
|
|
@@ -859,7 +859,7 @@ function ee(t, e, n) {
|
|
|
859
859
|
p,
|
|
860
860
|
m,
|
|
861
861
|
u,
|
|
862
|
-
|
|
862
|
+
b,
|
|
863
863
|
o,
|
|
864
864
|
d,
|
|
865
865
|
l,
|
|
@@ -974,7 +974,7 @@ export {
|
|
|
974
974
|
vt as s,
|
|
975
975
|
j as t,
|
|
976
976
|
oe as u,
|
|
977
|
-
|
|
977
|
+
w as v,
|
|
978
978
|
Q as w,
|
|
979
979
|
ot as x,
|
|
980
980
|
D as y,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Pt=Object.defineProperty,Rt=Object.defineProperties;var Ft=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var Q=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))Dt.call(t,n)&&Q(e,n,t[n]);if(st)for(var n of st(t))Ut.call(t,n)&&Q(e,n,t[n]);return e},lt=(e,t)=>Rt(e,Ft(t));var M=(e,t,n)=>(Q(e,typeof t!="symbol"?t+"":t,n),n);var X=(e,t,n)=>new Promise((i,o)=>{var s=d=>{try{c(n.next(d))}catch(l){o(l)}},r=d=>{try{c(n.throw(d))}catch(l){o(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,r);c((n=n.apply(e,t)).next())});function U(){}function Yt(e,t){for(const n in t)e[n]=t[n];return e}function bt(e){return e()}function ct(){return Object.create(null)}function B(e){e.forEach(bt)}function ot(e){return typeof e=="function"}function yt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Jt(e){return Object.keys(e).length===0}function wt(e,...t){if(e==null){for(const i of t)i(void 0);return U}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Vt(e,t,n){e.$$.on_destroy.push(wt(t,n))}function at(e,t,n,i){if(e){const o=xt(e,t,n,i);return e[0](o)}}function xt(e,t,n,i){return e[1]&&i?Yt(n.ctx.slice(),e[1](i(t))):n.ctx}function dt(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let c=0;c<r;c+=1)s[c]=t.dirty[c]|o[c];return s}return t.dirty|o}return t.dirty}function ut(e,t,n,i,o,s){if(o){const r=xt(t,n,i,s);e.p(r,o)}}function ft(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function y(e,t){e.appendChild(t)}function Ct(e,t,n){const i=qt(e);if(!i.getElementById(t)){const o=w("style");o.id=t,o.textContent=n,Zt(i,o)}}function qt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Zt(e,t){return y(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function Gt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function w(e){return document.createElement(e)}function nt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function vt(e){return document.createTextNode(e)}function F(){return vt(" ")}function Z(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function _(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Kt(e,t,n){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:_(e,t,n)}function Qt(e){return Array.from(e.childNodes)}function Xt(e,t){t=""+t,e.data!==t&&(e.data=t)}let J;function te(){if(J===void 0){J=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){J=!0}}return J}function ee(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=w("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const o=te();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=Z(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=Z(i.contentWindow,"resize",t),t()}),y(e,i),()=>{(o||s&&i.contentWindow)&&s(),S(i)}}function O(e,t,n){e.classList.toggle(t,!!n)}function ne(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let Y;function D(e){Y=e}function ie(){if(!Y)throw new Error("Function called outside component initialization");return Y}function Mt(e){ie().$$.on_mount.push(e)}const I=[],j=[];let N=[];const ht=[],kt=Promise.resolve();let it=!1;function Lt(){it||(it=!0,kt.then(E))}function tt(){return Lt(),kt}function G(e){N.push(e)}const et=new Set;let A=0;function E(){if(A!==0)return;const e=Y;do{try{for(;A<I.length;){const t=I[A];A++,D(t),oe(t.$$)}}catch(t){throw I.length=0,A=0,t}for(D(null),I.length=0,A=0;j.length;)j.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];et.has(n)||(et.add(n),n())}N.length=0}while(I.length);for(;ht.length;)ht.pop()();it=!1,et.clear(),D(e)}function oe(e){if(e.fragment!==null){e.update(),B(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(G)}}function se(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const V=new Set;let z;function re(){z={r:0,c:[],p:z}}function le(){z.r||B(z.c),z=z.p}function W(e,t){e&&e.i&&(V.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(V.has(e))return;V.add(e),z.c.push(()=>{V.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ce(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ae(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),G(()=>{const s=e.$$.on_mount.map(bt).filter(ot);e.$$.on_destroy?e.$$.on_destroy.push(...s):B(s),e.$$.on_mount=[]}),o.forEach(G)}function de(e,t){const n=e.$$;n.fragment!==null&&(se(n.after_update),B(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){e.$$.dirty[0]===-1&&(I.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Et(e,t,n,i,o,s,r=null,c=[-1]){const d=Y;D(e);const l=e.$$={fragment:null,ctx:[],props:s,update:U,not_equal:o,bound:ct(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:ct(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let v=!1;if(l.ctx=n?n(e,t.props||{},(p,k,...$)=>{const b=$.length?$[0]:k;return l.ctx&&o(l.ctx[p],l.ctx[p]=b)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](b),v&&ue(e,p)),k}):[],l.update(),v=!0,B(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=Qt(t.target);l.fragment&&l.fragment.l(p),p.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),ae(e,t.target,t.anchor),E()}D(d)}let St;typeof HTMLElement=="function"&&(St=class extends HTMLElement{constructor(t,n,i){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return X(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=w("slot"),s!=="default"&&_(r,"name",s)},m:function(l,v){P(l,r,v)},d:function(l){l&&S(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ne(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=q(r,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:lt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const r=q(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const c=this.$$c.$on(s,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=q(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function q(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Tt(e,t,n,i,o,s){let r=class extends St{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(r.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(d){var l;d=q(c,d,t),this.$$d[c]=d,(l=this.$$c)==null||l.$set({[c]:d})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var d;return(d=this.$$c)==null?void 0:d[c]}})}),e.element=r,r}class Ot{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){de(this,1),this.$destroy=U}$on(t,n){if(!ot(n))return U;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);function jt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function zt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Ht(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function he(e){Ct(e,"svelte-vlp16o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const me=e=>({}),mt=e=>({}),ge=e=>({}),gt=e=>({});function _t(e){let t,n,i,o,s,r,c,d,l,v,p,k,$,b,m,f,H,h=(e[3]=="error"||e[3]=="bonusDescription")&&pt();const T=e[14].title,x=at(T,e,e[13],gt);let g=e[4]==="true"&&$t();const R=e[14].content,C=at(R,e,e[13],mt);return{c(){t=w("div"),n=w("div"),i=w("div"),o=w("div"),h&&h.c(),s=F(),r=w("div"),x&&x.c(),c=F(),d=w("div"),l=nt("svg"),v=nt("path"),p=F(),g&&g.c(),k=F(),$=w("div"),C&&C.c(),_(r,"class","TitleText"),_(o,"class","ModalTitle"),_(v,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),_(l,"xmlns","http://www.w3.org/2000/svg"),_(l,"viewBox","0 0 13 13"),_(l,"fill","none"),_(l,"class","CloseButton"),_(d,"class","ModalCloseIcon"),_(i,"class","ModalHeader"),_($,"class","ModalContentWrapper"),O($,"hidden",e[4]==="true"),_(n,"class","ModalContainer"),O(n,"video-mode",e[3]==="video"),O(n,"twofa-mode",e[3]==="2fa"),_(t,"id","Modal"),G(()=>e[18].call(t))},m(u,L){P(u,t,L),y(t,n),y(n,i),y(i,o),h&&h.m(o,null),y(o,s),y(o,r),x&&x.m(r,null),y(i,c),y(i,d),y(d,l),y(l,v),y(n,p),g&&g.m(n,null),y(n,k),y(n,$),C&&C.m($,null),e[15]($),e[16](n),e[17](t),b=ee(t,e[18].bind(t)),m=!0,f||(H=Z(l,"click",e[9]),f=!0)},p(u,L){u[3]=="error"||u[3]=="bonusDescription"?h||(h=pt(),h.c(),h.m(o,s)):h&&(h.d(1),h=null),x&&x.p&&(!m||L&8192)&&ut(x,T,u,u[13],m?dt(T,u[13],L,ge):ft(u[13]),gt),u[4]==="true"?g||(g=$t(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),C&&C.p&&(!m||L&8192)&&ut(C,R,u,u[13],m?dt(R,u[13],L,me):ft(u[13]),mt),(!m||L&16)&&O($,"hidden",u[4]==="true"),(!m||L&8)&&O(n,"video-mode",u[3]==="video"),(!m||L&8)&&O(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(x,u),W(C,u),m=!0)},o(u){K(x,u),K(C,u),m=!1},d(u){u&&S(t),h&&h.d(),x&&x.d(u),g&&g.d(),C&&C.d(u),e[15](null),e[16](null),e[17](null),b(),f=!1,H()}}}function pt(e){let t;return{c(){t=w("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',_(t,"class","WarningIcon")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function $t(e){let t;return{c(){t=w("div"),t.innerHTML='<div class="ModalLoader"></div>',_(t,"class","ModalLoadingOverlay")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function _e(e){let t,n,i=e[2]==="true"&&_t(e);return{c(){t=w("div"),i&&i.c()},m(o,s){P(o,t,s),i&&i.m(t,null),e[19](t),n=!0},p(o,[s]){o[2]==="true"?i?(i.p(o,s),s&4&&W(i,1)):(i=_t(o),i.c(),W(i,1),i.m(t,null)):i&&(re(),K(i,1,1,()=>{i=null}),le())},i(o){n||(W(i),n=!0)},o(o){K(i),n=!1},d(o){o&&S(t),i&&i.d(),e[19](null)}}}function pe(e,t,n){let{$$slots:i={},$$scope:o}=t,{mbsource:s}=t,{clientstyling:r}=t,{clientstylingurl:c}=t,{show:d}=t,{modaltype:l=""}=t,{isloading:v="false"}=t,{width:p}=t,{height:k}=t,$,b,m,f,H=!1,h,T;const x=()=>{h&&clearTimeout(h),$&&($.classList.add("closing"),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},g=()=>X(this,null,function*(){if(!f||!m||H)return;T&&clearTimeout(h),H=!0;const a=f.offsetWidth,Nt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${Nt}px`,f),f.offsetHeight,yield tt();const Wt=m.scrollHeight,Bt=m.scrollWidth;n(8,f.style.width=`${Bt}px`,f),n(8,f.style.height=`${Wt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),H=!1},300)});Mt(()=>{if(tt().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function R(a){j[a?"unshift":"push"](()=>{m=a,n(7,m)})}function C(a){j[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){j[a?"unshift":"push"](()=>{$=a,n(6,$)})}function L(){p=this.clientWidth,k=this.clientHeight,n(0,p),n(1,k)}function It(a){j[a?"unshift":"push"](()=>{b=a,n(5,b)})}return e.$$set=a=>{"mbsource"in a&&n(10,s=a.mbsource),"clientstyling"in a&&n(11,r=a.clientstyling),"clientstylingurl"in a&&n(12,c=a.clientstylingurl),"show"in a&&n(2,d=a.show),"modaltype"in a&&n(3,l=a.modaltype),"isloading"in a&&n(4,v=a.isloading),"width"in a&&n(0,p=a.width),"height"in a&&n(1,k=a.height),"$$scope"in a&&n(13,o=a.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&v&&tt().then(()=>{g()}),e.$$.dirty&2080&&r&&b&&jt(b,r),e.$$.dirty&4128&&c&&b&&zt(b,c),e.$$.dirty&1056&&s&&b&&Ht(b,`${s}.Style`)},[p,k,d,l,v,b,$,m,f,x,s,r,c,o,i,R,C,u,L,It]}class At extends Ot{constructor(t){super(),Et(this,t,pe,_e,yt,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},he)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),E()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),E()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),E()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),E()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),E()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),E()}}Tt(At,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);const $e=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=$e;exports.SvelteComponent=Ot;exports.append=y;exports.append_styles=Ct;exports.attr=_;exports.binding_callbacks=j;exports.component_subscribe=Vt;exports.create_custom_element=Tt;exports.destroy_each=Gt;exports.detach=S;exports.element=w;exports.ensure_array_like=ce;exports.flush=E;exports.init=Et;exports.insert=P;exports.is_function=ot;exports.listen=Z;exports.noop=U;exports.onMount=Mt;exports.run_all=B;exports.safe_not_equal=yt;exports.setClientStyling=jt;exports.setClientStylingURL=zt;exports.setStreamStyling=Ht;exports.set_custom_element_data=Kt;exports.set_data=Xt;exports.space=F;exports.subscribe=wt;exports.svg_element=nt;exports.text=vt;exports.toggle_class=O;
|
|
1
|
+
"use strict";var Pt=Object.defineProperty,Rt=Object.defineProperties;var Ft=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var Q=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))Dt.call(t,n)&&Q(e,n,t[n]);if(st)for(var n of st(t))Ut.call(t,n)&&Q(e,n,t[n]);return e},lt=(e,t)=>Rt(e,Ft(t));var M=(e,t,n)=>(Q(e,typeof t!="symbol"?t+"":t,n),n);var X=(e,t,n)=>new Promise((i,o)=>{var s=d=>{try{c(n.next(d))}catch(l){o(l)}},r=d=>{try{c(n.throw(d))}catch(l){o(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,r);c((n=n.apply(e,t)).next())});function U(){}function Yt(e,t){for(const n in t)e[n]=t[n];return e}function bt(e){return e()}function ct(){return Object.create(null)}function B(e){e.forEach(bt)}function ot(e){return typeof e=="function"}function yt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Jt(e){return Object.keys(e).length===0}function wt(e,...t){if(e==null){for(const i of t)i(void 0);return U}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Vt(e,t,n){e.$$.on_destroy.push(wt(t,n))}function at(e,t,n,i){if(e){const o=xt(e,t,n,i);return e[0](o)}}function xt(e,t,n,i){return e[1]&&i?Yt(n.ctx.slice(),e[1](i(t))):n.ctx}function dt(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let c=0;c<r;c+=1)s[c]=t.dirty[c]|o[c];return s}return t.dirty|o}return t.dirty}function ut(e,t,n,i,o,s){if(o){const r=xt(t,n,i,s);e.p(r,o)}}function ft(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function y(e,t){e.appendChild(t)}function Ct(e,t,n){const i=qt(e);if(!i.getElementById(t)){const o=w("style");o.id=t,o.textContent=n,Zt(i,o)}}function qt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Zt(e,t){return y(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function Gt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function w(e){return document.createElement(e)}function nt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function vt(e){return document.createTextNode(e)}function F(){return vt(" ")}function Z(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function _(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Kt(e,t,n){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:_(e,t,n)}function Qt(e){return Array.from(e.childNodes)}function Xt(e,t){t=""+t,e.data!==t&&(e.data=t)}let J;function te(){if(J===void 0){J=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){J=!0}}return J}function ee(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=w("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const o=te();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=Z(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=Z(i.contentWindow,"resize",t),t()}),y(e,i),()=>{(o||s&&i.contentWindow)&&s(),S(i)}}function O(e,t,n){e.classList.toggle(t,!!n)}function ne(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let Y;function D(e){Y=e}function ie(){if(!Y)throw new Error("Function called outside component initialization");return Y}function Mt(e){ie().$$.on_mount.push(e)}const I=[],j=[];let N=[];const ht=[],kt=Promise.resolve();let it=!1;function Lt(){it||(it=!0,kt.then(E))}function tt(){return Lt(),kt}function G(e){N.push(e)}const et=new Set;let A=0;function E(){if(A!==0)return;const e=Y;do{try{for(;A<I.length;){const t=I[A];A++,D(t),oe(t.$$)}}catch(t){throw I.length=0,A=0,t}for(D(null),I.length=0,A=0;j.length;)j.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];et.has(n)||(et.add(n),n())}N.length=0}while(I.length);for(;ht.length;)ht.pop()();it=!1,et.clear(),D(e)}function oe(e){if(e.fragment!==null){e.update(),B(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(G)}}function se(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const V=new Set;let z;function re(){z={r:0,c:[],p:z}}function le(){z.r||B(z.c),z=z.p}function W(e,t){e&&e.i&&(V.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(V.has(e))return;V.add(e),z.c.push(()=>{V.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ce(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ae(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),G(()=>{const s=e.$$.on_mount.map(bt).filter(ot);e.$$.on_destroy?e.$$.on_destroy.push(...s):B(s),e.$$.on_mount=[]}),o.forEach(G)}function de(e,t){const n=e.$$;n.fragment!==null&&(se(n.after_update),B(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){e.$$.dirty[0]===-1&&(I.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Et(e,t,n,i,o,s,r=null,c=[-1]){const d=Y;D(e);const l=e.$$={fragment:null,ctx:[],props:s,update:U,not_equal:o,bound:ct(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:ct(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let v=!1;if(l.ctx=n?n(e,t.props||{},(p,k,...$)=>{const b=$.length?$[0]:k;return l.ctx&&o(l.ctx[p],l.ctx[p]=b)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](b),v&&ue(e,p)),k}):[],l.update(),v=!0,B(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=Qt(t.target);l.fragment&&l.fragment.l(p),p.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),ae(e,t.target,t.anchor),E()}D(d)}let St;typeof HTMLElement=="function"&&(St=class extends HTMLElement{constructor(t,n,i){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return X(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=w("slot"),s!=="default"&&_(r,"name",s)},m:function(l,v){P(l,r,v)},d:function(l){l&&S(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ne(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=q(r,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:lt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const r=q(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const c=this.$$c.$on(s,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=q(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function q(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Tt(e,t,n,i,o,s){let r=class extends St{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(r.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(d){var l;d=q(c,d,t),this.$$d[c]=d,(l=this.$$c)==null||l.$set({[c]:d})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var d;return(d=this.$$c)==null?void 0:d[c]}})}),e.element=r,r}class Ot{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){de(this,1),this.$destroy=U}$on(t,n){if(!ot(n))return U;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);function jt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function zt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Ht(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function he(e){Ct(e,"svelte-vlp16o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const me=e=>({}),mt=e=>({}),ge=e=>({}),gt=e=>({});function _t(e){let t,n,i,o,s,r,c,d,l,v,p,k,$,b,m,f,H,h=(e[3]=="error"||e[3]=="bonusDescription")&&pt();const T=e[14].title,x=at(T,e,e[13],gt);let g=e[4]==="true"&&$t();const R=e[14].content,C=at(R,e,e[13],mt);return{c(){t=w("div"),n=w("div"),i=w("div"),o=w("div"),h&&h.c(),s=F(),r=w("div"),x&&x.c(),c=F(),d=w("div"),l=nt("svg"),v=nt("path"),p=F(),g&&g.c(),k=F(),$=w("div"),C&&C.c(),_(r,"class","TitleText"),_(o,"class","ModalTitle"),_(v,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),_(l,"xmlns","http://www.w3.org/2000/svg"),_(l,"viewBox","0 0 13 13"),_(l,"fill","none"),_(l,"class","CloseButton"),_(d,"class","ModalCloseIcon"),_(i,"class","ModalHeader"),_($,"class","ModalContentWrapper"),O($,"hidden",e[4]==="true"),_(n,"class","ModalContainer"),O(n,"video-mode",e[3]==="video"),O(n,"twofa-mode",e[3]==="2fa"),_(t,"id","Modal"),G(()=>e[18].call(t))},m(u,L){P(u,t,L),y(t,n),y(n,i),y(i,o),h&&h.m(o,null),y(o,s),y(o,r),x&&x.m(r,null),y(i,c),y(i,d),y(d,l),y(l,v),y(n,p),g&&g.m(n,null),y(n,k),y(n,$),C&&C.m($,null),e[15]($),e[16](n),e[17](t),b=ee(t,e[18].bind(t)),m=!0,f||(H=Z(l,"click",e[9]),f=!0)},p(u,L){u[3]=="error"||u[3]=="bonusDescription"?h||(h=pt(),h.c(),h.m(o,s)):h&&(h.d(1),h=null),x&&x.p&&(!m||L&8192)&&ut(x,T,u,u[13],m?dt(T,u[13],L,ge):ft(u[13]),gt),u[4]==="true"?g||(g=$t(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),C&&C.p&&(!m||L&8192)&&ut(C,R,u,u[13],m?dt(R,u[13],L,me):ft(u[13]),mt),(!m||L&16)&&O($,"hidden",u[4]==="true"),(!m||L&8)&&O(n,"video-mode",u[3]==="video"),(!m||L&8)&&O(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(x,u),W(C,u),m=!0)},o(u){K(x,u),K(C,u),m=!1},d(u){u&&S(t),h&&h.d(),x&&x.d(u),g&&g.d(),C&&C.d(u),e[15](null),e[16](null),e[17](null),b(),f=!1,H()}}}function pt(e){let t;return{c(){t=w("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',_(t,"class","WarningIcon")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function $t(e){let t;return{c(){t=w("div"),t.innerHTML='<div class="ModalLoader"></div>',_(t,"class","ModalLoadingOverlay")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function _e(e){let t,n,i=e[2]==="true"&&_t(e);return{c(){t=w("div"),i&&i.c()},m(o,s){P(o,t,s),i&&i.m(t,null),e[19](t),n=!0},p(o,[s]){o[2]==="true"?i?(i.p(o,s),s&4&&W(i,1)):(i=_t(o),i.c(),W(i,1),i.m(t,null)):i&&(re(),K(i,1,1,()=>{i=null}),le())},i(o){n||(W(i),n=!0)},o(o){K(i),n=!1},d(o){o&&S(t),i&&i.d(),e[19](null)}}}function pe(e,t,n){let{$$slots:i={},$$scope:o}=t,{mbsource:s}=t,{clientstyling:r}=t,{clientstylingurl:c}=t,{show:d}=t,{modaltype:l=""}=t,{isloading:v="false"}=t,{width:p}=t,{height:k}=t,$,b,m,f,H=!1,h,T;const x=()=>{h&&clearTimeout(h),$&&($.classList.add("closing"),window.dispatchEvent(new CustomEvent("manualClosePopup")),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},g=()=>X(this,null,function*(){if(!f||!m||H)return;T&&clearTimeout(h),H=!0;const a=f.offsetWidth,Nt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${Nt}px`,f),f.offsetHeight,yield tt();const Wt=m.scrollHeight,Bt=m.scrollWidth;n(8,f.style.width=`${Bt}px`,f),n(8,f.style.height=`${Wt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),H=!1},300)});Mt(()=>{if(tt().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function R(a){j[a?"unshift":"push"](()=>{m=a,n(7,m)})}function C(a){j[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){j[a?"unshift":"push"](()=>{$=a,n(6,$)})}function L(){p=this.clientWidth,k=this.clientHeight,n(0,p),n(1,k)}function It(a){j[a?"unshift":"push"](()=>{b=a,n(5,b)})}return e.$$set=a=>{"mbsource"in a&&n(10,s=a.mbsource),"clientstyling"in a&&n(11,r=a.clientstyling),"clientstylingurl"in a&&n(12,c=a.clientstylingurl),"show"in a&&n(2,d=a.show),"modaltype"in a&&n(3,l=a.modaltype),"isloading"in a&&n(4,v=a.isloading),"width"in a&&n(0,p=a.width),"height"in a&&n(1,k=a.height),"$$scope"in a&&n(13,o=a.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&v&&tt().then(()=>{g()}),e.$$.dirty&2080&&r&&b&&jt(b,r),e.$$.dirty&4128&&c&&b&&zt(b,c),e.$$.dirty&1056&&s&&b&&Ht(b,`${s}.Style`)},[p,k,d,l,v,b,$,m,f,x,s,r,c,o,i,R,C,u,L,It]}class At extends Ot{constructor(t){super(),Et(this,t,pe,_e,yt,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},he)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),E()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),E()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),E()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),E()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),E()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),E()}}Tt(At,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);const $e=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=$e;exports.SvelteComponent=Ot;exports.append=y;exports.append_styles=Ct;exports.attr=_;exports.binding_callbacks=j;exports.component_subscribe=Vt;exports.create_custom_element=Tt;exports.destroy_each=Gt;exports.detach=S;exports.element=w;exports.ensure_array_like=ce;exports.flush=E;exports.init=Et;exports.insert=P;exports.is_function=ot;exports.listen=Z;exports.noop=U;exports.onMount=Mt;exports.run_all=B;exports.safe_not_equal=yt;exports.setClientStyling=jt;exports.setClientStylingURL=zt;exports.setStreamStyling=Ht;exports.set_custom_element_data=Kt;exports.set_data=Xt;exports.space=F;exports.subscribe=wt;exports.svg_element=nt;exports.text=vt;exports.toggle_class=O;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ge, s as Qt, a as Vr, r as Fr, i as Gr, S as jr, b as $r, f as ne, c as zr, d as Wr, e as fe, t as le, g as ce, h as J, j as D, k as _t, o as Xr, l as Yr, m as Re, p as wt, q as qr, u as Kt, v as W, w as er, x as ke, y as Ee, z as tr, A as Zr, B as Jr, C as Qr } from "./CashierModal-
|
|
1
|
+
import { n as ge, s as Qt, a as Vr, r as Fr, i as Gr, S as jr, b as $r, f as ne, c as zr, d as Wr, e as fe, t as le, g as ce, h as J, j as D, k as _t, o as Xr, l as Yr, m as Re, p as wt, q as qr, u as Kt, v as W, w as er, x as ke, y as Ee, z as tr, A as Zr, B as Jr, C as Qr } from "./CashierModal-BjKcHvnI.js";
|
|
2
2
|
const xe = [];
|
|
3
3
|
function Kr(e, t) {
|
|
4
4
|
return {
|
|
@@ -3878,7 +3878,7 @@ if (typeof window != "undefined") {
|
|
|
3878
3878
|
}
|
|
3879
3879
|
};
|
|
3880
3880
|
};
|
|
3881
|
-
customElements.define = e(customElements.define), import("./CashierModal-
|
|
3881
|
+
customElements.define = e(customElements.define), import("./CashierModal-BjKcHvnI.js").then((t) => t.D).then(({ default: t }) => {
|
|
3882
3882
|
!customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
|
|
3883
3883
|
});
|
|
3884
3884
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ve, s as Qt, a as Vr, r as Fr, i as Gr, c as jr, S as $r, b as zr, f as ne, d as Wr, e as he, t as ue, g as fe, h as Z, j as D, k as _t, o as Xr, l as Yr, m as Ne, p as wt, q as qr, u as Kt, v as z, w as er, x as ke, y as xe, z as tr, A as Zr, B as Jr, C as Qr } from "./CashierModal-
|
|
1
|
+
import { n as ve, s as Qt, a as Vr, r as Fr, i as Gr, c as jr, S as $r, b as zr, f as ne, d as Wr, e as he, t as ue, g as fe, h as Z, j as D, k as _t, o as Xr, l as Yr, m as Ne, p as wt, q as qr, u as Kt, v as z, w as er, x as ke, y as xe, z as tr, A as Zr, B as Jr, C as Qr } from "./CashierModal-BoesQjdb.js";
|
|
2
2
|
const ye = [];
|
|
3
3
|
function Kr(e, t) {
|
|
4
4
|
return {
|
|
@@ -3878,7 +3878,7 @@ if (typeof window < "u") {
|
|
|
3878
3878
|
}
|
|
3879
3879
|
};
|
|
3880
3880
|
};
|
|
3881
|
-
customElements.define = e(customElements.define), import("./CashierModal-
|
|
3881
|
+
customElements.define = e(customElements.define), import("./CashierModal-BoesQjdb.js").then((t) => t.D).then(({ default: t }) => {
|
|
3882
3882
|
!customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
|
|
3883
3883
|
});
|
|
3884
3884
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./CashierModal-B-ktO0iW.cjs"),de=[];function Tr(e,t){return{subscribe:Se(e,t).subscribe}}function Se(e,t=a.noop){let r;const i=new Set;function n(u){if(a.safe_not_equal(e,u)&&(e=u,r)){const l=!de.length;for(const f of i)f[1](),de.push(f,e);if(l){for(let f=0;f<de.length;f+=2)de[f][0](de[f+1]);de.length=0}}}function o(u){n(u(e))}function s(u,l=a.noop){const f=[u,l];return i.add(f),i.size===1&&(r=t(n,o)||a.noop),u(e),()=>{i.delete(f),i.size===0&&r&&(r(),r=null)}}return{set:n,update:o,subscribe:s}}function be(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Tr(r,(s,u)=>{let l=!1;const f=[];let c=0,m=a.noop;const g=()=>{if(c)return;m();const w=t(i?f[0]:f,s,u);o?s(w):m=a.is_function(w)?w:a.noop},x=n.map((w,d)=>a.subscribe(w,L=>{f[d]=L,c&=~(1<<d),l&&g()},()=>{c|=1<<d}));return l=!0,g(),function(){a.run_all(x),m(),l=!1}})}var Vt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr=function(t){return Or(t)&&!Pr(t)};function Or(e){return!!e&&typeof e=="object"}function Pr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Br(e)}var Ar=typeof Symbol=="function"&&Symbol.for,Mr=Ar?Symbol.for("react.element"):60103;function Br(e){return e.$$typeof===Mr}function Cr(e){return Array.isArray(e)?[]:{}}function Ee(e,t){return t.clone!==!1&&t.isMergeableObject(e)?pe(Cr(e),e,t):e}function Ir(e,t,r){return e.concat(t).map(function(i){return Ee(i,r)})}function Dr(e,t){if(!t.customMerge)return pe;var r=t.customMerge(e);return typeof r=="function"?r:pe}function Lr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ct(e){return Object.keys(e).concat(Lr(e))}function Ft(e,t){try{return t in e}catch(r){return!1}}function Nr(e,t){return Ft(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Rr(e,t,r){var i={};return r.isMergeableObject(e)&&ct(e).forEach(function(n){i[n]=Ee(e[n],r)}),ct(t).forEach(function(n){Nr(e,n)||(Ft(e,n)&&r.isMergeableObject(t[n])?i[n]=Dr(n,r)(e[n],t[n],r):i[n]=Ee(t[n],r))}),i}function pe(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ir,r.isMergeableObject=r.isMergeableObject||Hr,r.cloneUnlessOtherwiseSpecified=Ee;var i=Array.isArray(t),n=Array.isArray(e),o=i===n;return o?i?r.arrayMerge(e,t,r):Rr(e,t,r):Ee(t,r)}pe.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return pe(i,n,r)},{})};var kr=pe,Ur=kr;const Vr=lt(Ur);var Ye=function(e,t){return Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Ye(e,t)};function ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ye(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Q=function(){return Q=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Q.apply(this,arguments)};function Fr(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function Ge(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function je(e,t){var r=t&&t.cache?t.cache:qr,i=t&&t.serializer?t.serializer:Wr,n=t&&t.strategy?t.strategy:$r;return n(e,{cache:r,serializer:i})}function Gr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jr(e,t,r,i){var n=Gr(i)?i:r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.call(this,i),t.set(n,o)),o}function Gt(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.apply(this,i),t.set(n,o)),o}function jt(e,t,r,i,n){return r.bind(t,e,i,n)}function $r(e,t){var r=e.length===1?jr:Gt;return jt(e,this,r,t.cache.create(),t.serializer)}function zr(e,t){return jt(e,this,Gt,t.cache.create(),t.serializer)}var Wr=function(){return JSON.stringify(arguments)},Xr=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),qr={create:function(){return new Xr}},$e={variadic:zr},De=function(){return De=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},De.apply(this,arguments)};var M;(function(e){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"})(M||(M={}));var U;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(U||(U={}));var me;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(me||(me={}));function dt(e){return e.type===U.literal}function Yr(e){return e.type===U.argument}function $t(e){return e.type===U.number}function zt(e){return e.type===U.date}function Wt(e){return e.type===U.time}function Xt(e){return e.type===U.select}function qt(e){return e.type===U.plural}function Zr(e){return e.type===U.pound}function Yt(e){return e.type===U.tag}function Zt(e){return!!(e&&typeof e=="object"&&e.type===me.number)}function Ze(e){return!!(e&&typeof e=="object"&&e.type===me.dateTime)}var Jt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Jr=/(?:[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;function Qr(e){var t={};return e.replace(Jr,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var F=function(){return F=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},F.apply(this,arguments)};var Kr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ei(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Kr).filter(function(g){return g.length>0}),r=[],i=0,n=t;i<n.length;i++){var o=n[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var u=s[0],l=s.slice(1),f=0,c=l;f<c.length;f++){var m=c[f];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:u,options:l})}return r}function ti(e){return e.replace(/^(.*?)-/,"")}var pt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Qt=/^(@+)?(\+|#+)?[rs]?$/g,ri=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function mt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Qt,function(r,i,n){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)),""}),t}function er(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ii(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function vt(e){var t={},r=er(e);return r||t}function ni(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ti(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=F(F(F({},t),{notation:"scientific"}),n.options.reduce(function(l,f){return F(F({},l),vt(f))},{}));continue;case"engineering":t=F(F(F({},t),{notation:"engineering"}),n.options.reduce(function(l,f){return F(F({},l),vt(f))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ri,function(l,f,c,m,g,x){if(f)t.minimumIntegerDigits=c.length;else{if(m&&g)throw new Error("We currently do not support maximum integer digits");if(x)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(pt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(pt,function(l,f,c,m,g,x){return c==="*"?t.minimumFractionDigits=f.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:g&&x?(t.minimumFractionDigits=g.length,t.maximumFractionDigits=g.length+x.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var o=n.options[0];o==="w"?t=F(F({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=F(F({},t),mt(o)));continue}if(Qt.test(n.stem)){t=F(F({},t),mt(n.stem));continue}var s=er(n.stem);s&&(t=F(F({},t),s));var u=ii(n.stem);u&&(t=F(F({},t),u))}return t}var Ae={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function oi(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===n;)o++,i++;var s=1+(o&1),u=o<2?1:3+(o>>1),l="a",f=si(t);for((f=="H"||f=="k")&&(u=0);u-- >0;)r+=l;for(;s-- >0;)r=f+r}else n==="J"?r+="H":r+=n}return r}function si(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=Ae[i||""]||Ae[r||""]||Ae["".concat(r,"-001")]||Ae["001"];return n[0]}var ze,ai=new RegExp("^".concat(Jt.source,"*")),ui=new RegExp("".concat(Jt.source,"*$"));function B(e,t){return{start:e,end:t}}var li=!!String.prototype.startsWith&&"_a".startsWith("a",1),hi=!!String.fromCodePoint,fi=!!Object.fromEntries,ci=!!String.prototype.codePointAt,di=!!String.prototype.trimStart,pi=!!String.prototype.trimEnd,mi=!!Number.isSafeInteger,vi=mi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Je=!0;try{var gi=rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Je=((ze=gi.exec("a"))===null||ze===void 0?void 0:ze[0])==="a"}catch(e){Je=!1}var gt=li?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},Qe=hi?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,o=0,s;n>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},bt=fi?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var o=n[i],s=o[0],u=o[1];r[s]=u}return r},tr=ci?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),o;return n<55296||n>56319||r+1===i||(o=t.charCodeAt(r+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},bi=di?function(t){return t.trimStart()}:function(t){return t.replace(ai,"")},yi=pi?function(t){return t.trimEnd()}:function(t){return t.replace(ui,"")};function rr(e,t){return new RegExp(e,t)}var Ke;if(Je){var yt=rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ke=function(t,r){var i;yt.lastIndex=r;var n=yt.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else Ke=function(t,r){for(var i=[];;){var n=tr(t,r);if(n===void 0||ir(n)||wi(n))break;i.push(n),r+=n>=65536?2:1}return Qe.apply(void 0,i)};var xi=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,i){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;n.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var u=this.clonePosition();this.bump(),n.push({type:U.pound,location:B(u,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(M.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&et(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:U.literal,value:"<".concat(n,"/>"),location:B(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!et(this.char()))return this.error(M.INVALID_TAG,B(u,this.clonePosition()));var l=this.clonePosition(),f=this.parseTagName();return n!==f?this.error(M.UNMATCHED_CLOSING_TAG,B(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:U.tag,value:n,children:s,location:B(i,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,B(u,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,B(i,this.clonePosition()))}else return this.error(M.INVALID_TAG,B(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ei(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var o=this.tryParseQuote(r);if(o){n+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){n+=s;continue}var u=this.tryParseLeftAngleBracket();if(u){n+=u;continue}break}var l=B(i,this.clonePosition());return{val:{type:U.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_i(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Qe.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),Qe(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,B(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(M.MALFORMED_ARGUMENT,B(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:U.argument,value:n,location:B(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(M.MALFORMED_ARGUMENT,B(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=Ke(this.message,r),n=r+i.length;this.bumpTo(n);var o=this.clonePosition(),s=B(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,r,i,n){var o,s=this.clonePosition(),u=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(u){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,B(s,l));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var g=yi(m.val);if(g.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var x=B(c,this.clonePosition());f={style:g,styleLocation:x}}var w=this.tryParseArgumentClose(n);if(w.err)return w;var d=B(n,this.clonePosition());if(f&>(f==null?void 0:f.style,"::",0)){var L=bi(f.style.slice(2));if(u==="number"){var m=this.parseNumberSkeletonFromString(L,f.styleLocation);return m.err?m:{val:{type:U.number,value:i,location:d,style:m.val},err:null}}else{if(L.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,d);var R=L;this.locale&&(R=oi(L,this.locale));var g={type:me.dateTime,pattern:R,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Qr(R):{}},A=u==="date"?U.date:U.time;return{val:{type:A,value:i,location:d,style:g},err:null}}}return{val:{type:u==="number"?U.number:u==="date"?U.date:U.time,value:i,location:d,style:(o=f==null?void 0:f.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,B(H,De({},H)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),D=0;if(u!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),O=this.parseIdentifierIfPossible(),D=m.val}var P=this.tryParsePluralOrSelectOptions(t,u,r,O);if(P.err)return P;var w=this.tryParseArgumentClose(n);if(w.err)return w;var W=B(n,this.clonePosition());return u==="select"?{val:{type:U.select,value:i,options:bt(P.val),location:W},err:null}:{val:{type:U.plural,value:i,options:bt(P.val),offset:D,pluralType:u==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,B(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=ei(t)}catch(n){return this.error(M.INVALID_NUMBER_SKELETON,r)}return{val:{type:me.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?ni(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var o,s=!1,u=[],l=new Set,f=n.value,c=n.location;;){if(f.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;c=B(m,this.clonePosition()),f=this.message.slice(m.offset,this.offset())}else break}if(l.has(f))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);f==="other"&&(s=!0),this.bumpSpace();var x=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,i);if(w.err)return w;var d=this.tryParseArgumentClose(x);if(d.err)return d;u.push([f,{value:w.val,location:B(x,this.clonePosition())}]),l.add(f),this.bumpSpace(),o=this.parseIdentifierIfPossible(),f=o.value,c=o.location}return u.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)o=!0,s=s*10+(u-48),this.bump();else break}var l=B(n,this.clonePosition());return o?(s*=i,vi(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=tr(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();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)}},e.prototype.bumpIf=function(t){if(gt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ir(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function et(e){return e>=97&&e<=122||e>=65&&e<=90}function _i(e){return et(e)||e===47}function Ei(e){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}function ir(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function wi(e){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}function tt(e){e.forEach(function(t){if(delete t.location,Xt(t)||qt(t))for(var r in t.options)delete t.options[r].location,tt(t.options[r].value);else $t(t)&&Zt(t.style)||(zt(t)||Wt(t))&&Ze(t.style)?delete t.style.location:Yt(t)&&tt(t.children)})}function Si(e,t){t===void 0&&(t={}),t=De({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new xi(e,t).parse();if(r.err){var i=SyntaxError(M[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||tt(r.val),r.val}var ve;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ve||(ve={}));var Ue=function(e){ke(t,e);function t(r,i,n){var o=e.call(this,r)||this;return o.code=i,o.originalMessage=n,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),xt=function(e){ke(t,e);function t(r,i,n,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ve.INVALID_VALUE,o)||this}return t}(Ue),Ti=function(e){ke(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),ve.INVALID_VALUE,n)||this}return t}(Ue),Hi=function(e){ke(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),ve.MISSING_VALUE,i)||this}return t}(Ue),q;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(q||(q={}));function Oi(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==q.literal||r.type!==q.literal?t.push(r):i.value+=r.value,t},[])}function Pi(e){return typeof e=="function"}function Be(e,t,r,i,n,o,s){if(e.length===1&&dt(e[0]))return[{type:q.literal,value:e[0].value}];for(var u=[],l=0,f=e;l<f.length;l++){var c=f[l];if(dt(c)){u.push({type:q.literal,value:c.value});continue}if(Zr(c)){typeof o=="number"&&u.push({type:q.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(n&&m in n))throw new Hi(m,s);var g=n[m];if(Yr(c)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),u.push({type:typeof g=="string"?q.literal:q.object,value:g});continue}if(zt(c)){var x=typeof c.style=="string"?i.date[c.style]:Ze(c.style)?c.style.parsedOptions:void 0;u.push({type:q.literal,value:r.getDateTimeFormat(t,x).format(g)});continue}if(Wt(c)){var x=typeof c.style=="string"?i.time[c.style]:Ze(c.style)?c.style.parsedOptions:i.time.medium;u.push({type:q.literal,value:r.getDateTimeFormat(t,x).format(g)});continue}if($t(c)){var x=typeof c.style=="string"?i.number[c.style]:Zt(c.style)?c.style.parsedOptions:void 0;x&&x.scale&&(g=g*(x.scale||1)),u.push({type:q.literal,value:r.getNumberFormat(t,x).format(g)});continue}if(Yt(c)){var w=c.children,d=c.value,L=n[d];if(!Pi(L))throw new Ti(d,"function",s);var R=Be(w,t,r,i,n,o),A=L(R.map(function(D){return D.value}));Array.isArray(A)||(A=[A]),u.push.apply(u,A.map(function(D){return{type:typeof D=="string"?q.literal:q.object,value:D}}))}if(Xt(c)){var H=c.options[g]||c.options.other;if(!H)throw new xt(c.value,g,Object.keys(c.options),s);u.push.apply(u,Be(H.value,t,r,i,n));continue}if(qt(c)){var H=c.options["=".concat(g)];if(!H){if(!Intl.PluralRules)throw new Ue(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./CashierModal-CsJICZpd.cjs"),de=[];function Tr(e,t){return{subscribe:Se(e,t).subscribe}}function Se(e,t=a.noop){let r;const i=new Set;function n(u){if(a.safe_not_equal(e,u)&&(e=u,r)){const l=!de.length;for(const f of i)f[1](),de.push(f,e);if(l){for(let f=0;f<de.length;f+=2)de[f][0](de[f+1]);de.length=0}}}function o(u){n(u(e))}function s(u,l=a.noop){const f=[u,l];return i.add(f),i.size===1&&(r=t(n,o)||a.noop),u(e),()=>{i.delete(f),i.size===0&&r&&(r(),r=null)}}return{set:n,update:o,subscribe:s}}function be(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Tr(r,(s,u)=>{let l=!1;const f=[];let c=0,m=a.noop;const g=()=>{if(c)return;m();const w=t(i?f[0]:f,s,u);o?s(w):m=a.is_function(w)?w:a.noop},x=n.map((w,d)=>a.subscribe(w,L=>{f[d]=L,c&=~(1<<d),l&&g()},()=>{c|=1<<d}));return l=!0,g(),function(){a.run_all(x),m(),l=!1}})}var Vt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr=function(t){return Or(t)&&!Pr(t)};function Or(e){return!!e&&typeof e=="object"}function Pr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Br(e)}var Ar=typeof Symbol=="function"&&Symbol.for,Mr=Ar?Symbol.for("react.element"):60103;function Br(e){return e.$$typeof===Mr}function Cr(e){return Array.isArray(e)?[]:{}}function Ee(e,t){return t.clone!==!1&&t.isMergeableObject(e)?pe(Cr(e),e,t):e}function Ir(e,t,r){return e.concat(t).map(function(i){return Ee(i,r)})}function Dr(e,t){if(!t.customMerge)return pe;var r=t.customMerge(e);return typeof r=="function"?r:pe}function Lr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ct(e){return Object.keys(e).concat(Lr(e))}function Ft(e,t){try{return t in e}catch(r){return!1}}function Nr(e,t){return Ft(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Rr(e,t,r){var i={};return r.isMergeableObject(e)&&ct(e).forEach(function(n){i[n]=Ee(e[n],r)}),ct(t).forEach(function(n){Nr(e,n)||(Ft(e,n)&&r.isMergeableObject(t[n])?i[n]=Dr(n,r)(e[n],t[n],r):i[n]=Ee(t[n],r))}),i}function pe(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ir,r.isMergeableObject=r.isMergeableObject||Hr,r.cloneUnlessOtherwiseSpecified=Ee;var i=Array.isArray(t),n=Array.isArray(e),o=i===n;return o?i?r.arrayMerge(e,t,r):Rr(e,t,r):Ee(t,r)}pe.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return pe(i,n,r)},{})};var kr=pe,Ur=kr;const Vr=lt(Ur);var Ye=function(e,t){return Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Ye(e,t)};function ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ye(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Q=function(){return Q=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Q.apply(this,arguments)};function Fr(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function Ge(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function je(e,t){var r=t&&t.cache?t.cache:qr,i=t&&t.serializer?t.serializer:Wr,n=t&&t.strategy?t.strategy:$r;return n(e,{cache:r,serializer:i})}function Gr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jr(e,t,r,i){var n=Gr(i)?i:r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.call(this,i),t.set(n,o)),o}function Gt(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),o=t.get(n);return typeof o=="undefined"&&(o=e.apply(this,i),t.set(n,o)),o}function jt(e,t,r,i,n){return r.bind(t,e,i,n)}function $r(e,t){var r=e.length===1?jr:Gt;return jt(e,this,r,t.cache.create(),t.serializer)}function zr(e,t){return jt(e,this,Gt,t.cache.create(),t.serializer)}var Wr=function(){return JSON.stringify(arguments)},Xr=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),qr={create:function(){return new Xr}},$e={variadic:zr},De=function(){return De=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},De.apply(this,arguments)};var M;(function(e){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"})(M||(M={}));var U;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(U||(U={}));var me;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(me||(me={}));function dt(e){return e.type===U.literal}function Yr(e){return e.type===U.argument}function $t(e){return e.type===U.number}function zt(e){return e.type===U.date}function Wt(e){return e.type===U.time}function Xt(e){return e.type===U.select}function qt(e){return e.type===U.plural}function Zr(e){return e.type===U.pound}function Yt(e){return e.type===U.tag}function Zt(e){return!!(e&&typeof e=="object"&&e.type===me.number)}function Ze(e){return!!(e&&typeof e=="object"&&e.type===me.dateTime)}var Jt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Jr=/(?:[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;function Qr(e){var t={};return e.replace(Jr,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var F=function(){return F=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},F.apply(this,arguments)};var Kr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ei(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Kr).filter(function(g){return g.length>0}),r=[],i=0,n=t;i<n.length;i++){var o=n[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var u=s[0],l=s.slice(1),f=0,c=l;f<c.length;f++){var m=c[f];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:u,options:l})}return r}function ti(e){return e.replace(/^(.*?)-/,"")}var pt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Qt=/^(@+)?(\+|#+)?[rs]?$/g,ri=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function mt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Qt,function(r,i,n){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)),""}),t}function er(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ii(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function vt(e){var t={},r=er(e);return r||t}function ni(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ti(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=F(F(F({},t),{notation:"scientific"}),n.options.reduce(function(l,f){return F(F({},l),vt(f))},{}));continue;case"engineering":t=F(F(F({},t),{notation:"engineering"}),n.options.reduce(function(l,f){return F(F({},l),vt(f))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ri,function(l,f,c,m,g,x){if(f)t.minimumIntegerDigits=c.length;else{if(m&&g)throw new Error("We currently do not support maximum integer digits");if(x)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(pt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(pt,function(l,f,c,m,g,x){return c==="*"?t.minimumFractionDigits=f.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:g&&x?(t.minimumFractionDigits=g.length,t.maximumFractionDigits=g.length+x.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var o=n.options[0];o==="w"?t=F(F({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=F(F({},t),mt(o)));continue}if(Qt.test(n.stem)){t=F(F({},t),mt(n.stem));continue}var s=er(n.stem);s&&(t=F(F({},t),s));var u=ii(n.stem);u&&(t=F(F({},t),u))}return t}var Ae={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function oi(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===n;)o++,i++;var s=1+(o&1),u=o<2?1:3+(o>>1),l="a",f=si(t);for((f=="H"||f=="k")&&(u=0);u-- >0;)r+=l;for(;s-- >0;)r=f+r}else n==="J"?r+="H":r+=n}return r}function si(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=Ae[i||""]||Ae[r||""]||Ae["".concat(r,"-001")]||Ae["001"];return n[0]}var ze,ai=new RegExp("^".concat(Jt.source,"*")),ui=new RegExp("".concat(Jt.source,"*$"));function B(e,t){return{start:e,end:t}}var li=!!String.prototype.startsWith&&"_a".startsWith("a",1),hi=!!String.fromCodePoint,fi=!!Object.fromEntries,ci=!!String.prototype.codePointAt,di=!!String.prototype.trimStart,pi=!!String.prototype.trimEnd,mi=!!Number.isSafeInteger,vi=mi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Je=!0;try{var gi=rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Je=((ze=gi.exec("a"))===null||ze===void 0?void 0:ze[0])==="a"}catch(e){Je=!1}var gt=li?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},Qe=hi?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,o=0,s;n>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},bt=fi?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var o=n[i],s=o[0],u=o[1];r[s]=u}return r},tr=ci?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),o;return n<55296||n>56319||r+1===i||(o=t.charCodeAt(r+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},bi=di?function(t){return t.trimStart()}:function(t){return t.replace(ai,"")},yi=pi?function(t){return t.trimEnd()}:function(t){return t.replace(ui,"")};function rr(e,t){return new RegExp(e,t)}var Ke;if(Je){var yt=rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ke=function(t,r){var i;yt.lastIndex=r;var n=yt.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else Ke=function(t,r){for(var i=[];;){var n=tr(t,r);if(n===void 0||ir(n)||wi(n))break;i.push(n),r+=n>=65536?2:1}return Qe.apply(void 0,i)};var xi=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,i){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;n.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var u=this.clonePosition();this.bump(),n.push({type:U.pound,location:B(u,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(M.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&et(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:U.literal,value:"<".concat(n,"/>"),location:B(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!et(this.char()))return this.error(M.INVALID_TAG,B(u,this.clonePosition()));var l=this.clonePosition(),f=this.parseTagName();return n!==f?this.error(M.UNMATCHED_CLOSING_TAG,B(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:U.tag,value:n,children:s,location:B(i,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,B(u,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,B(i,this.clonePosition()))}else return this.error(M.INVALID_TAG,B(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ei(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var o=this.tryParseQuote(r);if(o){n+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){n+=s;continue}var u=this.tryParseLeftAngleBracket();if(u){n+=u;continue}break}var l=B(i,this.clonePosition());return{val:{type:U.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_i(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Qe.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),Qe(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,B(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(M.MALFORMED_ARGUMENT,B(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:U.argument,value:n,location:B(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(M.MALFORMED_ARGUMENT,B(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=Ke(this.message,r),n=r+i.length;this.bumpTo(n);var o=this.clonePosition(),s=B(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,r,i,n){var o,s=this.clonePosition(),u=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(u){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,B(s,l));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var g=yi(m.val);if(g.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var x=B(c,this.clonePosition());f={style:g,styleLocation:x}}var w=this.tryParseArgumentClose(n);if(w.err)return w;var d=B(n,this.clonePosition());if(f&>(f==null?void 0:f.style,"::",0)){var L=bi(f.style.slice(2));if(u==="number"){var m=this.parseNumberSkeletonFromString(L,f.styleLocation);return m.err?m:{val:{type:U.number,value:i,location:d,style:m.val},err:null}}else{if(L.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,d);var R=L;this.locale&&(R=oi(L,this.locale));var g={type:me.dateTime,pattern:R,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Qr(R):{}},A=u==="date"?U.date:U.time;return{val:{type:A,value:i,location:d,style:g},err:null}}}return{val:{type:u==="number"?U.number:u==="date"?U.date:U.time,value:i,location:d,style:(o=f==null?void 0:f.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,B(H,De({},H)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),D=0;if(u!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),O=this.parseIdentifierIfPossible(),D=m.val}var P=this.tryParsePluralOrSelectOptions(t,u,r,O);if(P.err)return P;var w=this.tryParseArgumentClose(n);if(w.err)return w;var W=B(n,this.clonePosition());return u==="select"?{val:{type:U.select,value:i,options:bt(P.val),location:W},err:null}:{val:{type:U.plural,value:i,options:bt(P.val),offset:D,pluralType:u==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,B(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=ei(t)}catch(n){return this.error(M.INVALID_NUMBER_SKELETON,r)}return{val:{type:me.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?ni(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var o,s=!1,u=[],l=new Set,f=n.value,c=n.location;;){if(f.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;c=B(m,this.clonePosition()),f=this.message.slice(m.offset,this.offset())}else break}if(l.has(f))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);f==="other"&&(s=!0),this.bumpSpace();var x=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,i);if(w.err)return w;var d=this.tryParseArgumentClose(x);if(d.err)return d;u.push([f,{value:w.val,location:B(x,this.clonePosition())}]),l.add(f),this.bumpSpace(),o=this.parseIdentifierIfPossible(),f=o.value,c=o.location}return u.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)o=!0,s=s*10+(u-48),this.bump();else break}var l=B(n,this.clonePosition());return o?(s*=i,vi(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=tr(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();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)}},e.prototype.bumpIf=function(t){if(gt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ir(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function et(e){return e>=97&&e<=122||e>=65&&e<=90}function _i(e){return et(e)||e===47}function Ei(e){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}function ir(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function wi(e){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}function tt(e){e.forEach(function(t){if(delete t.location,Xt(t)||qt(t))for(var r in t.options)delete t.options[r].location,tt(t.options[r].value);else $t(t)&&Zt(t.style)||(zt(t)||Wt(t))&&Ze(t.style)?delete t.style.location:Yt(t)&&tt(t.children)})}function Si(e,t){t===void 0&&(t={}),t=De({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new xi(e,t).parse();if(r.err){var i=SyntaxError(M[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||tt(r.val),r.val}var ve;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ve||(ve={}));var Ue=function(e){ke(t,e);function t(r,i,n){var o=e.call(this,r)||this;return o.code=i,o.originalMessage=n,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),xt=function(e){ke(t,e);function t(r,i,n,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ve.INVALID_VALUE,o)||this}return t}(Ue),Ti=function(e){ke(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),ve.INVALID_VALUE,n)||this}return t}(Ue),Hi=function(e){ke(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),ve.MISSING_VALUE,i)||this}return t}(Ue),q;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(q||(q={}));function Oi(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==q.literal||r.type!==q.literal?t.push(r):i.value+=r.value,t},[])}function Pi(e){return typeof e=="function"}function Be(e,t,r,i,n,o,s){if(e.length===1&&dt(e[0]))return[{type:q.literal,value:e[0].value}];for(var u=[],l=0,f=e;l<f.length;l++){var c=f[l];if(dt(c)){u.push({type:q.literal,value:c.value});continue}if(Zr(c)){typeof o=="number"&&u.push({type:q.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(n&&m in n))throw new Hi(m,s);var g=n[m];if(Yr(c)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),u.push({type:typeof g=="string"?q.literal:q.object,value:g});continue}if(zt(c)){var x=typeof c.style=="string"?i.date[c.style]:Ze(c.style)?c.style.parsedOptions:void 0;u.push({type:q.literal,value:r.getDateTimeFormat(t,x).format(g)});continue}if(Wt(c)){var x=typeof c.style=="string"?i.time[c.style]:Ze(c.style)?c.style.parsedOptions:i.time.medium;u.push({type:q.literal,value:r.getDateTimeFormat(t,x).format(g)});continue}if($t(c)){var x=typeof c.style=="string"?i.number[c.style]:Zt(c.style)?c.style.parsedOptions:void 0;x&&x.scale&&(g=g*(x.scale||1)),u.push({type:q.literal,value:r.getNumberFormat(t,x).format(g)});continue}if(Yt(c)){var w=c.children,d=c.value,L=n[d];if(!Pi(L))throw new Ti(d,"function",s);var R=Be(w,t,r,i,n,o),A=L(R.map(function(D){return D.value}));Array.isArray(A)||(A=[A]),u.push.apply(u,A.map(function(D){return{type:typeof D=="string"?q.literal:q.object,value:D}}))}if(Xt(c)){var H=c.options[g]||c.options.other;if(!H)throw new xt(c.value,g,Object.keys(c.options),s);u.push.apply(u,Be(H.value,t,r,i,n));continue}if(qt(c)){var H=c.options["=".concat(g)];if(!H){if(!Intl.PluralRules)throw new Ue(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,ve.MISSING_INTL_API,s);var O=r.getPluralRules(t,{type:c.pluralType}).select(g-(c.offset||0));H=c.options[O]||c.options.other}if(!H)throw new xt(c.value,g,Object.keys(c.options),s);u.push.apply(u,Be(H.value,t,r,i,n,g-(c.offset||0)));continue}}return Oi(u)}function Ai(e,t){return t?Q(Q(Q({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=Q(Q({},e[i]),t[i]||{}),r},{})):e}function Mi(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=Ai(e[i],t[i]),r},Q({},e)):e}function We(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Bi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:je(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Ge([void 0],r,!1)))},{cache:We(e.number),strategy:$e.variadic}),getDateTimeFormat:je(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Ge([void 0],r,!1)))},{cache:We(e.dateTime),strategy:$e.variadic}),getPluralRules:je(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Ge([void 0],r,!1)))},{cache:We(e.pluralRules),strategy:$e.variadic})}}var nr=function(){function e(t,r,i,n){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var f=o.formatToParts(l);if(f.length===1)return f[0].value;var c=f.reduce(function(m,g){return!m.length||g.type!==q.literal||typeof m[m.length-1]!="string"?m.push(g.value):m[m.length-1]+=g.value,m},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Be(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=n||{};s.formatters;var u=Fr(s,["formatters"]);this.ast=e.__parse(t,Q(Q({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Mi(e.formats,i),this.formatters=n&&n.formatters||Bi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Si,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Ci(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const o=r.slice(n,r.length).join(".");if(o in i){i=i[o];break}}i=i[r[n]]}else i=void 0;return i}const se={},Ii=(e,t,r)=>r&&(t in se||(se[t]={}),e in se[t]||(se[t][e]=r),r),or=(e,t)=>{if(t==null)return;if(t in se&&e in se[t])return se[t][e];const r=He(t);for(let i=0;i<r.length;i++){const n=r[i],o=Li(n,e);if(o)return Ii(e,t,o)}};let ht;const Te=Se({});function Di(e){return ht[e]||null}function sr(e){return e in ht}function Li(e,t){if(!sr(e))return null;const r=Di(e);return Ci(r,t)}function Ni(e){if(e==null)return;const t=He(e);for(let r=0;r<t.length;r++){const i=t[r];if(sr(i))return i}}function ar(e,...t){delete se[e],Te.update(r=>(r[e]=Vr.all([r[e]||{},...t]),r))}be([Te],([e])=>Object.keys(e));Te.subscribe(e=>ht=e);const Ce={};function Ri(e,t){Ce[e].delete(t),Ce[e].size===0&&delete Ce[e]}function ur(e){return Ce[e]}function ki(e){return He(e).map(t=>{const r=ur(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Le(e){return e==null?!1:He(e).some(t=>{var r;return(r=ur(t))==null?void 0:r.size})}function Ui(e,t){return Promise.all(t.map(i=>(Ri(e,i),i().then(n=>n.default||n)))).then(i=>ar(e,...i))}const xe={};function lr(e){if(!Le(e))return e in xe?xe[e]:Promise.resolve();const t=ki(e);return xe[e]=Promise.all(t.map(([r,i])=>Ui(r,i))).then(()=>{if(Le(e))return lr(e);delete xe[e]}),xe[e]}var _t=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,Gi=(e,t)=>{var r={};for(var i in e)Vi.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&_t)for(var i of _t(e))t.indexOf(i)<0&&Fi.call(e,i)&&(r[i]=e[i]);return r};const ji={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function $i({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${He(e).join('", "')}".${Le(ae())?`
|
|
4
4
|
|
|
@@ -17,4 +17,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
17
17
|
PERFORMANCE OF THIS SOFTWARE.
|
|
18
18
|
***************************************************************************** */var it=function(e,t){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},it(e,t)};function Oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");it(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function nt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ot(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,o=[],s;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(u){s={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function st(e,t,r){if(arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||t)}function re(e){return typeof e=="function"}function cr(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var qe=cr(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
19
19
|
`+r.map(function(i,n){return n+1+") "+i.toString()}).join(`
|
|
20
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function at(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=nt(s),l=u.next();!l.done;l=u.next()){var f=l.value;f.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(re(c))try{c()}catch(d){o=d instanceof qe?d.errors:[d]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=nt(m),x=g.next();!x.done;x=g.next()){var w=x.value;try{Pt(w)}catch(d){o=o!=null?o:[],d instanceof qe?o=st(st([],ot(o)),ot(d.errors)):o.push(d)}}}catch(d){i={error:d}}finally{try{x&&!x.done&&(n=g.return)&&n.call(g)}finally{if(i)throw i.error}}}if(o)throw new qe(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Pt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&at(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&at(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),dr=Fe.EMPTY;function pr(e){return e instanceof Fe||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function Pt(e){re(e)?e():e.unsubscribe()}var bn={Promise:void 0},yn={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,st([e,t],ot(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function xn(e){yn.setTimeout(function(){throw e})}function At(){}function Ie(e){e()}var mr=function(e){Oe(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,pr(r)&&r.add(i)):i.destination=wn,i}return t.create=function(r,i,n){return new ut(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fe),_n=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Me(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Me(i)}else Me(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Me(r)}},e}(),ut=function(e){Oe(t,e);function t(r,i,n){var o=e.call(this)||this,s;return re(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new _n(s),o}return t}(mr);function Me(e){xn(e)}function En(e){throw e}var wn={closed:!0,next:At,error:En,complete:At},Sn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Tn(e){return e}function Hn(e){return e.length===0?Tn:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var Mt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=Pn(t)?t:new ut(t,r,i);return Ie(function(){var s=n,u=s.operator,l=s.source;o.add(u?u.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Bt(r),new r(function(n,o){var s=new ut({next:function(u){try{t(u)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Sn]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Hn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Bt(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function Bt(e){var t;return(t=e!=null?e:bn.Promise)!==null&&t!==void 0?t:Promise}function On(e){return e&&re(e.next)&&re(e.error)&&re(e.complete)}function Pn(e){return e&&e instanceof mr||On(e)&&pr(e)}var An=cr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),vr=function(e){Oe(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new Ct(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new An},t.prototype.next=function(r){var i=this;Ie(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=nt(i.currentObservers),u=s.next();!u.done;u=s.next()){var l=u.value;l.next(r)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;Ie(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ie(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,u=n.observers;return o||s?dr:(this.currentObservers=null,u.push(r),new Fe(function(){i.currentObservers=null,at(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Mt;return r.source=this,r},t.create=function(r,i){return new Ct(r,i)},t}(Mt),Ct=function(e){Oe(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:dr},t}(vr),gr={now:function(){return(gr.delegate||Date).now()},delegate:void 0},Mn=function(e){Oe(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=gr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,u=i._timestampProvider,l=i._windowTime;n||(o.push(r),!s&&o.push(u.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,u=s.slice(),l=0;l<u.length&&!r.closed;l+=o?1:2)r.next(u[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,u=(s?1:2)*i;if(i<1/0&&u<o.length&&o.splice(0,o.length-u),!s){for(var l=n.now(),f=0,c=1;c<o.length&&o[c]<=l;c+=2)f=c;f&&o.splice(0,f+1)}},t}(vr);const It=[],Dt={},Bn=(e,t=0)=>{if(It.indexOf(e)==-1){const r=new Mn(t);Dt[e]=r,It.push(e)}return Dt[e]};window.emWidgets={topic:Bn};const Cn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierModal-B-ktO0iW.cjs")).then(t=>t.CashierModal_ce).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}var br={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Vt,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",u="minute",l="hour",f="day",c="week",m="month",g="quarter",x="year",w="date",d="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|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,A={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(E){var b=["th","st","nd","rd"],p=E%100;return"["+E+(b[(p-20)%10]||b[p]||b[0])+"]"}},H=function(E,b,p){var y=String(E);return!y||y.length>=b?E:""+Array(b+1-y.length).join(p)+E},O={s:H,z:function(E){var b=-E.utcOffset(),p=Math.abs(b),y=Math.floor(p/60),v=p%60;return(b<=0?"+":"-")+H(y,2,"0")+":"+H(v,2,"0")},m:function E(b,p){if(b.date()<p.date())return-E(p,b);var y=12*(p.year()-b.year())+(p.month()-b.month()),v=b.clone().add(y,m),S=p-v<0,T=b.clone().add(y+(S?-1:1),m);return+(-(y+(p-v)/(S?v-T:T-v))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:m,y:x,w:c,d:f,D:w,h:l,m:u,s,ms:o,Q:g}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},D="en",P={};P[D]=A;var W="$isDayjsObject",K=function(E){return E instanceof j||!(!E||!E[W])},Z=function E(b,p,y){var v;if(!b)return D;if(typeof b=="string"){var S=b.toLowerCase();P[S]&&(v=S),p&&(P[S]=p,v=S);var T=b.split("-");if(!v&&T.length>1)return E(T[0])}else{var N=b.name;P[N]=b,v=N}return!y&&v&&(D=v),v||!y&&D},k=function(E,b){if(K(E))return E.clone();var p=typeof b=="object"?b:{};return p.date=E,p.args=arguments,new j(p)},C=O;C.l=Z,C.i=K,C.w=function(E,b){return k(E,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var j=function(){function E(p){this.$L=Z(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[W]=!0}var b=E.prototype;return b.parse=function(p){this.$d=function(y){var v=y.date,S=y.utc;if(v===null)return new Date(NaN);if(C.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var T=v.match(L);if(T){var N=T[2]-1||0,V=(T[7]||"0").substring(0,3);return S?new Date(Date.UTC(T[1],N,T[3]||1,T[4]||0,T[5]||0,T[6]||0,V)):new Date(T[1],N,T[3]||1,T[4]||0,T[5]||0,T[6]||0,V)}}return new Date(v)}(p),this.init()},b.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},b.$utils=function(){return C},b.isValid=function(){return this.$d.toString()!==d},b.isSame=function(p,y){var v=k(p);return this.startOf(y)<=v&&v<=this.endOf(y)},b.isAfter=function(p,y){return k(p)<this.startOf(y)},b.isBefore=function(p,y){return this.endOf(y)<k(p)},b.$g=function(p,y,v){return C.u(p)?this[y]:this.set(v,p)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(p,y){var v=this,S=!!C.u(y)||y,T=C.p(p),N=function(te,X){var J=C.w(v.$u?Date.UTC(v.$y,X,te):new Date(v.$y,X,te),v);return S?J:J.endOf(f)},V=function(te,X){return C.w(v.toDate()[te].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(X)),v)},G=this.$W,$=this.$M,Y=this.$D,ne="set"+(this.$u?"UTC":"");switch(T){case x:return S?N(1,0):N(31,11);case m:return S?N(1,$):N(0,$+1);case c:var ee=this.$locale().weekStart||0,ue=(G<ee?G+7:G)-ee;return N(S?Y-ue:Y+(6-ue),$);case f:case w:return V(ne+"Hours",0);case l:return V(ne+"Minutes",1);case u:return V(ne+"Seconds",2);case s:return V(ne+"Milliseconds",3);default:return this.clone()}},b.endOf=function(p){return this.startOf(p,!1)},b.$set=function(p,y){var v,S=C.p(p),T="set"+(this.$u?"UTC":""),N=(v={},v[f]=T+"Date",v[w]=T+"Date",v[m]=T+"Month",v[x]=T+"FullYear",v[l]=T+"Hours",v[u]=T+"Minutes",v[s]=T+"Seconds",v[o]=T+"Milliseconds",v)[S],V=S===f?this.$D+(y-this.$W):y;if(S===m||S===x){var G=this.clone().set(w,1);G.$d[N](V),G.init(),this.$d=G.set(w,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](V);return this.init(),this},b.set=function(p,y){return this.clone().$set(p,y)},b.get=function(p){return this[C.p(p)]()},b.add=function(p,y){var v,S=this;p=Number(p);var T=C.p(y),N=function($){var Y=k(S);return C.w(Y.date(Y.date()+Math.round($*p)),S)};if(T===m)return this.set(m,this.$M+p);if(T===x)return this.set(x,this.$y+p);if(T===f)return N(1);if(T===c)return N(7);var V=(v={},v[u]=i,v[l]=n,v[s]=r,v)[T]||1,G=this.$d.getTime()+p*V;return C.w(G,this)},b.subtract=function(p,y){return this.add(-1*p,y)},b.format=function(p){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||d;var S=p||"YYYY-MM-DDTHH:mm:ssZ",T=C.z(this),N=this.$H,V=this.$m,G=this.$M,$=v.weekdays,Y=v.months,ne=v.meridiem,ee=function(X,J,le,ce){return X&&(X[J]||X(y,S))||le[J].slice(0,ce)},ue=function(X){return C.s(N%12||12,X,"0")},te=ne||function(X,J,le){var ce=X<12?"AM":"PM";return le?ce.toLowerCase():ce};return S.replace(R,function(X,J){return J||function(le){switch(le){case"YY":return String(y.$y).slice(-2);case"YYYY":return C.s(y.$y,4,"0");case"M":return G+1;case"MM":return C.s(G+1,2,"0");case"MMM":return ee(v.monthsShort,G,Y,3);case"MMMM":return ee(Y,G);case"D":return y.$D;case"DD":return C.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ee(v.weekdaysMin,y.$W,$,2);case"ddd":return ee(v.weekdaysShort,y.$W,$,3);case"dddd":return $[y.$W];case"H":return String(N);case"HH":return C.s(N,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return te(N,V,!0);case"A":return te(N,V,!1);case"m":return String(V);case"mm":return C.s(V,2,"0");case"s":return String(y.$s);case"ss":return C.s(y.$s,2,"0");case"SSS":return C.s(y.$ms,3,"0");case"Z":return T}return null}(X)||T.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(p,y,v){var S,T=this,N=C.p(y),V=k(p),G=(V.utcOffset()-this.utcOffset())*i,$=this-V,Y=function(){return C.m(T,V)};switch(N){case x:S=Y()/12;break;case m:S=Y();break;case g:S=Y()/3;break;case c:S=($-G)/6048e5;break;case f:S=($-G)/864e5;break;case l:S=$/n;break;case u:S=$/i;break;case s:S=$/r;break;default:S=$}return v?S:C.a(S)},b.daysInMonth=function(){return this.endOf(m).$D},b.$locale=function(){return P[this.$L]},b.locale=function(p,y){if(!p)return this.$L;var v=this.clone(),S=Z(p,y,!0);return S&&(v.$L=S),v},b.clone=function(){return C.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},E}(),ie=j.prototype;return k.prototype=ie,[["$ms",o],["$s",s],["$m",u],["$H",l],["$W",f],["$M",m],["$y",x],["$D",w]].forEach(function(E){ie[E[1]]=function(b){return this.$g(b,E[0],E[1])}}),k.extend=function(E,b){return E.$i||(E(b,j,k),E.$i=!0),k},k.locale=Z,k.isDayjs=K,k.unix=function(E){return k(1e3*E)},k.en=P[D],k.Ls=P,k.p={},k})})(br);var In=br.exports;const Lt=lt(In);var yr={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Vt,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,s,u){var l=s.prototype;u.utc=function(d){var L={date:d,utc:!0,args:arguments};return new s(L)},l.utc=function(d){var L=u(this.toDate(),{locale:this.$L,utc:!0});return d?L.add(this.utcOffset(),r):L},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=l.parse;l.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),f.call(this,d)};var c=l.init;l.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else c.call(this)};var m=l.utcOffset;l.utcOffset=function(d,L){var R=this.$utils().u;if(R(d))return this.$u?0:R(this.$offset)?m.call(this):this.$offset;if(typeof d=="string"&&(d=function(D){D===void 0&&(D="");var P=D.match(i);if(!P)return null;var W=(""+P[0]).match(n)||["-",0,0],K=W[0],Z=60*+W[1]+ +W[2];return Z===0?0:K==="+"?Z:-Z}(d),d===null))return this;var A=Math.abs(d)<=16?60*d:d,H=this;if(L)return H.$offset=A,H.$u=d===0,H;if(d!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(H=this.local().add(A+O,r)).$offset=A,H.$x.$localOffset=O}else H=this.utc();return H};var g=l.format;l.format=function(d){var L=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,L)},l.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var x=l.toDate;l.toDate=function(d){return d==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var w=l.diff;l.diff=function(d,L,R){if(d&&this.$u===d.$u)return w.call(this,d,L,R);var A=this.local(),H=u(d).local();return w.call(A,H,L,R)}}})})(yr);var Dn=yr.exports;const Ln=lt(Dn);function Nn(e){a.append_styles(e,"svelte-19ii49m",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;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;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));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:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}')}function Nt(e,t,r){const i=e.slice();return i[53]=t[r],i}function Rn(e){let t,r=e[3].length>0&&Rt(e);return{c(){t=a.element("div"),r&&r.c(),a.attr(t,"class","CashierVerificationsWrapper")},m(i,n){a.insert(i,t,n),r&&r.m(t,null)},p(i,n){i[3].length>0?r?r.p(i,n):(r=Rt(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&a.detach(t),r&&r.d()}}}function kn(e){let t;return{c(){t=a.element("cashier-spinner"),a.set_custom_element_data(t,"clientstylingurl",e[1]),a.set_custom_element_data(t,"clientstyling",e[0])},m(r,i){a.insert(r,t,i)},p(r,i){i[0]&2&&a.set_custom_element_data(t,"clientstylingurl",r[1]),i[0]&1&&a.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&a.detach(t)}}}function Rt(e){let t,r,i,n,o,s,u,l=e[8]("verificationsRequired")+"",f,c,m,g,x,w,d,L,R=a.ensure_array_like(e[3]),A=[];for(let O=0;O<R.length;O+=1)A[O]=kt(Nt(e,R,O));let H=e[6]&&Ut(e);return{c(){t=a.element("div"),r=a.svg_element("svg"),i=a.svg_element("path"),n=a.svg_element("path"),o=a.svg_element("path"),s=a.space(),u=a.element("p"),f=a.text(l),c=a.space(),m=a.element("span"),m.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',g=a.space(),x=a.element("div");for(let O=0;O<A.length;O+=1)A[O].c();w=a.space(),H&&H.c(),a.attr(i,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),a.attr(i,"stroke","#6E738F"),a.attr(i,"stroke-width","2"),a.attr(i,"stroke-linecap","round"),a.attr(i,"stroke-linejoin","round"),a.attr(n,"d","M12 8V12"),a.attr(n,"stroke","#6E738F"),a.attr(n,"stroke-width","2"),a.attr(n,"stroke-linecap","round"),a.attr(n,"stroke-linejoin","round"),a.attr(o,"d","M12 16H12.01"),a.attr(o,"stroke","#6E738F"),a.attr(o,"stroke-width","2"),a.attr(o,"stroke-linecap","round"),a.attr(o,"stroke-linejoin","round"),a.attr(r,"width","24"),a.attr(r,"height","24"),a.attr(r,"viewBox","0 0 24 24"),a.attr(r,"fill","none"),a.attr(r,"xmlns","http://www.w3.org/2000/svg"),a.attr(m,"class","CashierVerificationChevron"),a.toggle_class(m,"ShowVerifications",e[4]),a.attr(t,"class","VerificationsHeader"),a.attr(x,"class","VerificationsList"),a.toggle_class(x,"ShowVerifications",e[4])},m(O,D){a.insert(O,t,D),a.append(t,r),a.append(r,i),a.append(r,n),a.append(r,o),a.append(t,s),a.append(t,u),a.append(u,f),a.append(t,c),a.append(t,m),a.insert(O,g,D),a.insert(O,x,D);for(let P=0;P<A.length;P+=1)A[P]&&A[P].m(x,null);a.append(x,w),H&&H.m(x,null),d||(L=a.listen(t,"click",e[9]),d=!0)},p(O,D){if(D[0]&256&&l!==(l=O[8]("verificationsRequired")+"")&&a.set_data(f,l),D[0]&16&&a.toggle_class(m,"ShowVerifications",O[4]),D[0]&8){R=a.ensure_array_like(O[3]);let P;for(P=0;P<R.length;P+=1){const W=Nt(O,R,P);A[P]?A[P].p(W,D):(A[P]=kt(W),A[P].c(),A[P].m(x,w))}for(;P<A.length;P+=1)A[P].d(1);A.length=R.length}O[6]?H?H.p(O,D):(H=Ut(O),H.c(),H.m(x,null)):H&&(H.d(1),H=null),D[0]&16&&a.toggle_class(x,"ShowVerifications",O[4])},d(O){O&&(a.detach(t),a.detach(g),a.detach(x)),a.destroy_each(A,O),H&&H.d(),d=!1,L()}}}function kt(e){let t,r,i,n,o=e[53]+"";return{c(){t=a.element("div"),r=a.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',i=a.space(),n=a.element("p"),a.attr(r,"class","IconVerification"),a.attr(n,"class","text"),a.attr(t,"class","CashierVerificationMessage Test")},m(s,u){a.insert(s,t,u),a.append(t,r),a.append(t,i),a.append(t,n),n.innerHTML=o},p(s,u){u[0]&8&&o!==(o=s[53]+"")&&(n.innerHTML=o)},d(s){s&&a.detach(t)}}}function Ut(e){let t,r,i,n,o=e[8]("verification.video.how-to")+"",s,u,l;return{c(){t=a.element("div"),r=a.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',i=a.space(),n=a.element("div"),s=a.text(o),a.attr(r,"class","IconVideo"),a.attr(n,"class","CashierVerificationVideoLink"),a.toggle_class(n,"CashierVerificationVideoLinkDesktop",e[5]),a.attr(t,"class","CashierVerificationVideo Test")},m(f,c){a.insert(f,t,c),a.append(t,r),a.append(t,i),a.append(t,n),a.append(n,s),u||(l=a.listen(t,"click",e[10]),u=!0)},p(f,c){c[0]&256&&o!==(o=f[8]("verification.video.how-to")+"")&&a.set_data(s,o),c[0]&32&&a.toggle_class(n,"CashierVerificationVideoLinkDesktop",f[5])},d(f){f&&a.detach(t),u=!1,l()}}}function Un(e){let t;function r(o,s){if(o[7])return kn;if(o[3])return Rn}let i=r(e),n=i&&i(e);return{c(){t=a.element("div"),n&&n.c(),a.attr(t,"class","CashierVerifications"),a.toggle_class(t,"CashierVerificationsDesktop",e[5])},m(o,s){a.insert(o,t,s),n&&n.m(t,null),e[19](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n&&n.d(1),n=i&&i(o),n&&(n.c(),n.m(t,null))),s[0]&32&&a.toggle_class(t,"CashierVerificationsDesktop",o[5])},i:a.noop,o:a.noop,d(o){o&&a.detach(t),n&&n.d(),e[19](null)}}}const Vn="verification_explanation_video_widgets.MP4";function Fn(e,t,r){let i,n;a.component_subscribe(e,mn,h=>r(8,i=h)),a.component_subscribe(e,gn,h=>r(27,n=h)),Lt.extend(Ln);let{endpoint:o}=t,{lang:s="en"}=t,{translationurl:u=""}=t,{clientstyling:l=""}=t,{clientstylingurl:f=""}=t,{session:c=""}=t,{customerid:m=""}=t,{playersession:g=""}=t,{mbsource:x=""}=t,w,d=new Set,L=new Set,R,A,H,O=!1,D=!0,P=!1,W="",K=!1,Z=window.navigator.userAgent;var k;(function(h){h.Manual="Manual",h.ShuftiPro="ShuftiPro"})(k||(k={}));var C;(function(h){h.Requested="Requested"})(C||(C={}));var j;(function(h){h.Unknown="Unknown",h.Unverified="Unverified",h.InProgress="InProgress",h.Failed="Failed",h.Verified="Verified",h.Referred="Referred",h.True="True",h.False="False",h.AwaitingForResponse="AwaitingForResponse"})(j||(j={}));var ie;(function(h){h.Unknown="Unknown",h.Documents="Documents",h.Age="Age",h.Pep="Pep",h.Sanction="Sanction",h.Aml="Aml",h.ProofOfAddress="ProofOfAddress",h.SourceOfWealth="SourceOfWealth",h.SocialMedia="SocialMedia",h.Biometric="Biometric"})(ie||(ie={}));const E=h=>{h.data&&h.data.type};a.onMount(()=>(window.addEventListener("message",E),_r(),()=>{window.removeEventListener("message",E)}));const b=[j.InProgress,j.Referred,j.AwaitingForResponse],p=()=>{let h=u;if(h)return fetch(h).then(_=>_.json()).then(_=>{Object.keys(_).forEach(I=>{Ht(I,_[I])})}).catch(_=>{console.log(_)})};Object.keys(Ot).forEach(h=>{Ht(h,Ot[h])});const y=()=>{vn(s)},v=()=>{r(18,A=N());const h=new URL(`${o}/v1/player/${m}/verification/GetKYCCustomerStatus?language=${s}`),_=new Headers;_.append("accept","application/json"),_.append("Content-Type","application/json"),_.append("x-sessionid",`${g}`),_.append("X-Client-Request-Timestamp",Lt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const I={method:"POST",headers:_,body:JSON.stringify({})};r(7,K=!0),fetch(h,I).then(z=>z.json()).then(z=>{const oe=S(z==null?void 0:z.Verifications);R=V(oe),R.VerificationStatuses.forEach(Pe=>{Pe.VerificationUrlType!=="Widget"&&d.add(Pe.Vendor)}),r(3,H=ue())}).finally(()=>r(7,K=!1))},S=h=>h?h.sort((_,I)=>new Date(I.Created).getTime()-new Date(_.Created).getTime()):[],T=()=>{n&&v()},N=()=>{let h=(c||n).split(".")[1];if(h){let _=JSON.parse(atob(h));return _.cdn+"/cashier/operator-assets/"+(_==null?void 0:_.mid)}return""},V=h=>{var I;if(!h||!h.length)return{VerificationSummaryStatus:j.Unverified,VerificationStatuses:[]};const _=Y(h);if(_&&_.length){const z=G(_);return{VerificationSummaryStatus:z.Status,VerificationUrl:(I=z.Flags)==null?void 0:I.DeferredUrlKey,VerificationStatuses:$(_,z.Status)}}else return{VerificationSummaryStatus:h.some(oe=>oe.Status===j.Failed)?j.Failed:j.Verified,VerificationStatuses:$(h,[j.Failed])}},G=h=>h.reduce((_,I)=>_?new Date(_)<new Date(I)?I:_:I,0),$=(h,_)=>h.filter(I=>_.includes(I.Status)).map(I=>{var z,oe;return{Type:I.Type,Vendor:I.VendorName,VerificationDocuments:I.Documents?[...I.Documents]:[],VerificationUrlType:(z=I.FlowInfo)==null?void 0:z.Type,VerificationUrl:(oe=I.FlowInfo)==null?void 0:oe.Url}}),Y=h=>h.filter(_=>b.includes(_.Status)?_.FlowInfo&&_.FlowInfo.Url||ne(_)||ee(_):!1),ne=h=>{const _=h.Documents&&h.VendorName===k.Manual,I=h.Documents&&h.Documents.some(z=>z.Status===C.Requested);return _&&I},ee=h=>h.VendorName===k.ShuftiPro&&h.Status===j.Referred,ue=()=>{switch(R.VerificationSummaryStatus){case j.InProgress:const h=[];return d.forEach(_=>{h.push(te(_))}),h;case j.Referred:return[i("verification.idenfy.referred-awaiting")];case j.Failed:return[i("verification.message.failed")]}},te=h=>{const _=R.VerificationStatuses.filter(I=>I.Vendor===h);if(h===k.ShuftiPro)return X(_);{const I=i("verification.idenfy.link-name"),z={link:`<a href="${_[0].VerificationUrl}" target="_blank">${I}</a>`};return i("verification.idenfy.in-progress",{values:z})}},X=h=>{const _=[],I={},z=[ie.Biometric,ie.Documents,ie.ProofOfAddress];h.forEach(he=>{z.includes(he.Type)&&(_.push(he.Type),I[he.Type]=J(he,le(he.Type)))});let oe=_.every(he=>L.has(he)),Pe=`verification.shuftipro.in-progress.${_.sort().join(".")}`;return oe?i("verification.shuftipro.validations-started"):i(Pe,{values:I})},J=(h,_)=>`<a class="verificationLink ${h.Type}" href=" ${h.VerificationUrl} " target="_blank">${_}</a>`,le=h=>i(`verification.shuftipro.link-name.${h}`),ce=()=>{r(4,O=!O)},_r=()=>{r(5,D=!Cn(Z))},Er=()=>{W=A+"/"+s+"/"+Vn;try{fetch(W,{method:"HEAD"}).then(h=>{r(6,P=h.ok)})}catch(h){r(6,P=!1)}},wr=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:W}}}))};function Sr(h){a.binding_callbacks[h?"unshift":"push"](()=>{w=h,r(2,w)})}return e.$$set=h=>{"endpoint"in h&&r(11,o=h.endpoint),"lang"in h&&r(12,s=h.lang),"translationurl"in h&&r(13,u=h.translationurl),"clientstyling"in h&&r(0,l=h.clientstyling),"clientstylingurl"in h&&r(1,f=h.clientstylingurl),"session"in h&&r(14,c=h.session),"customerid"in h&&r(15,m=h.customerid),"playersession"in h&&r(16,g=h.playersession),"mbsource"in h&&r(17,x=h.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&4096&&s&&y(),e.$$.dirty[0]&83968&&o&&c&&g&&v(),e.$$.dirty[0]&83968&&o&&!c&&g&&T(),e.$$.dirty[0]&8192&&u&&p(),e.$$.dirty[0]&5&&l&&w&&a.setClientStyling(w,l),e.$$.dirty[0]&6&&f&&w&&a.setClientStylingURL(w,f),e.$$.dirty[0]&262144&&A&&Er(),e.$$.dirty[0]&131076&&x&&w&&a.setStreamStyling(w,`${x}.Style`)},[l,f,w,H,O,D,P,K,i,ce,wr,o,s,u,c,m,g,x,A,Sr]}class xr extends a.SvelteComponent{constructor(t){super(),a.init(this,t,Fn,Un,a.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},Nn,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),a.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),a.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),a.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),a.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),a.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),a.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),a.flush()}}a.create_custom_element(xr,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=xr;
|
|
20
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function at(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=nt(s),l=u.next();!l.done;l=u.next()){var f=l.value;f.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(re(c))try{c()}catch(d){o=d instanceof qe?d.errors:[d]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=nt(m),x=g.next();!x.done;x=g.next()){var w=x.value;try{Pt(w)}catch(d){o=o!=null?o:[],d instanceof qe?o=st(st([],ot(o)),ot(d.errors)):o.push(d)}}}catch(d){i={error:d}}finally{try{x&&!x.done&&(n=g.return)&&n.call(g)}finally{if(i)throw i.error}}}if(o)throw new qe(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Pt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&at(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&at(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),dr=Fe.EMPTY;function pr(e){return e instanceof Fe||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function Pt(e){re(e)?e():e.unsubscribe()}var bn={Promise:void 0},yn={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,st([e,t],ot(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function xn(e){yn.setTimeout(function(){throw e})}function At(){}function Ie(e){e()}var mr=function(e){Oe(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,pr(r)&&r.add(i)):i.destination=wn,i}return t.create=function(r,i,n){return new ut(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fe),_n=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Me(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Me(i)}else Me(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Me(r)}},e}(),ut=function(e){Oe(t,e);function t(r,i,n){var o=e.call(this)||this,s;return re(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new _n(s),o}return t}(mr);function Me(e){xn(e)}function En(e){throw e}var wn={closed:!0,next:At,error:En,complete:At},Sn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Tn(e){return e}function Hn(e){return e.length===0?Tn:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var Mt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=Pn(t)?t:new ut(t,r,i);return Ie(function(){var s=n,u=s.operator,l=s.source;o.add(u?u.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Bt(r),new r(function(n,o){var s=new ut({next:function(u){try{t(u)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Sn]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Hn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Bt(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function Bt(e){var t;return(t=e!=null?e:bn.Promise)!==null&&t!==void 0?t:Promise}function On(e){return e&&re(e.next)&&re(e.error)&&re(e.complete)}function Pn(e){return e&&e instanceof mr||On(e)&&pr(e)}var An=cr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),vr=function(e){Oe(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new Ct(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new An},t.prototype.next=function(r){var i=this;Ie(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=nt(i.currentObservers),u=s.next();!u.done;u=s.next()){var l=u.value;l.next(r)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;Ie(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ie(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,u=n.observers;return o||s?dr:(this.currentObservers=null,u.push(r),new Fe(function(){i.currentObservers=null,at(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Mt;return r.source=this,r},t.create=function(r,i){return new Ct(r,i)},t}(Mt),Ct=function(e){Oe(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:dr},t}(vr),gr={now:function(){return(gr.delegate||Date).now()},delegate:void 0},Mn=function(e){Oe(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=gr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,u=i._timestampProvider,l=i._windowTime;n||(o.push(r),!s&&o.push(u.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,u=s.slice(),l=0;l<u.length&&!r.closed;l+=o?1:2)r.next(u[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,u=(s?1:2)*i;if(i<1/0&&u<o.length&&o.splice(0,o.length-u),!s){for(var l=n.now(),f=0,c=1;c<o.length&&o[c]<=l;c+=2)f=c;f&&o.splice(0,f+1)}},t}(vr);const It=[],Dt={},Bn=(e,t=0)=>{if(It.indexOf(e)==-1){const r=new Mn(t);Dt[e]=r,It.push(e)}return Dt[e]};window.emWidgets={topic:Bn};const Cn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierModal-CsJICZpd.cjs")).then(t=>t.CashierModal_ce).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}var br={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Vt,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",u="minute",l="hour",f="day",c="week",m="month",g="quarter",x="year",w="date",d="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|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,A={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(E){var b=["th","st","nd","rd"],p=E%100;return"["+E+(b[(p-20)%10]||b[p]||b[0])+"]"}},H=function(E,b,p){var y=String(E);return!y||y.length>=b?E:""+Array(b+1-y.length).join(p)+E},O={s:H,z:function(E){var b=-E.utcOffset(),p=Math.abs(b),y=Math.floor(p/60),v=p%60;return(b<=0?"+":"-")+H(y,2,"0")+":"+H(v,2,"0")},m:function E(b,p){if(b.date()<p.date())return-E(p,b);var y=12*(p.year()-b.year())+(p.month()-b.month()),v=b.clone().add(y,m),S=p-v<0,T=b.clone().add(y+(S?-1:1),m);return+(-(y+(p-v)/(S?v-T:T-v))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:m,y:x,w:c,d:f,D:w,h:l,m:u,s,ms:o,Q:g}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},D="en",P={};P[D]=A;var W="$isDayjsObject",K=function(E){return E instanceof j||!(!E||!E[W])},Z=function E(b,p,y){var v;if(!b)return D;if(typeof b=="string"){var S=b.toLowerCase();P[S]&&(v=S),p&&(P[S]=p,v=S);var T=b.split("-");if(!v&&T.length>1)return E(T[0])}else{var N=b.name;P[N]=b,v=N}return!y&&v&&(D=v),v||!y&&D},k=function(E,b){if(K(E))return E.clone();var p=typeof b=="object"?b:{};return p.date=E,p.args=arguments,new j(p)},C=O;C.l=Z,C.i=K,C.w=function(E,b){return k(E,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var j=function(){function E(p){this.$L=Z(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[W]=!0}var b=E.prototype;return b.parse=function(p){this.$d=function(y){var v=y.date,S=y.utc;if(v===null)return new Date(NaN);if(C.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var T=v.match(L);if(T){var N=T[2]-1||0,V=(T[7]||"0").substring(0,3);return S?new Date(Date.UTC(T[1],N,T[3]||1,T[4]||0,T[5]||0,T[6]||0,V)):new Date(T[1],N,T[3]||1,T[4]||0,T[5]||0,T[6]||0,V)}}return new Date(v)}(p),this.init()},b.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},b.$utils=function(){return C},b.isValid=function(){return this.$d.toString()!==d},b.isSame=function(p,y){var v=k(p);return this.startOf(y)<=v&&v<=this.endOf(y)},b.isAfter=function(p,y){return k(p)<this.startOf(y)},b.isBefore=function(p,y){return this.endOf(y)<k(p)},b.$g=function(p,y,v){return C.u(p)?this[y]:this.set(v,p)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(p,y){var v=this,S=!!C.u(y)||y,T=C.p(p),N=function(te,X){var J=C.w(v.$u?Date.UTC(v.$y,X,te):new Date(v.$y,X,te),v);return S?J:J.endOf(f)},V=function(te,X){return C.w(v.toDate()[te].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(X)),v)},G=this.$W,$=this.$M,Y=this.$D,ne="set"+(this.$u?"UTC":"");switch(T){case x:return S?N(1,0):N(31,11);case m:return S?N(1,$):N(0,$+1);case c:var ee=this.$locale().weekStart||0,ue=(G<ee?G+7:G)-ee;return N(S?Y-ue:Y+(6-ue),$);case f:case w:return V(ne+"Hours",0);case l:return V(ne+"Minutes",1);case u:return V(ne+"Seconds",2);case s:return V(ne+"Milliseconds",3);default:return this.clone()}},b.endOf=function(p){return this.startOf(p,!1)},b.$set=function(p,y){var v,S=C.p(p),T="set"+(this.$u?"UTC":""),N=(v={},v[f]=T+"Date",v[w]=T+"Date",v[m]=T+"Month",v[x]=T+"FullYear",v[l]=T+"Hours",v[u]=T+"Minutes",v[s]=T+"Seconds",v[o]=T+"Milliseconds",v)[S],V=S===f?this.$D+(y-this.$W):y;if(S===m||S===x){var G=this.clone().set(w,1);G.$d[N](V),G.init(),this.$d=G.set(w,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](V);return this.init(),this},b.set=function(p,y){return this.clone().$set(p,y)},b.get=function(p){return this[C.p(p)]()},b.add=function(p,y){var v,S=this;p=Number(p);var T=C.p(y),N=function($){var Y=k(S);return C.w(Y.date(Y.date()+Math.round($*p)),S)};if(T===m)return this.set(m,this.$M+p);if(T===x)return this.set(x,this.$y+p);if(T===f)return N(1);if(T===c)return N(7);var V=(v={},v[u]=i,v[l]=n,v[s]=r,v)[T]||1,G=this.$d.getTime()+p*V;return C.w(G,this)},b.subtract=function(p,y){return this.add(-1*p,y)},b.format=function(p){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||d;var S=p||"YYYY-MM-DDTHH:mm:ssZ",T=C.z(this),N=this.$H,V=this.$m,G=this.$M,$=v.weekdays,Y=v.months,ne=v.meridiem,ee=function(X,J,le,ce){return X&&(X[J]||X(y,S))||le[J].slice(0,ce)},ue=function(X){return C.s(N%12||12,X,"0")},te=ne||function(X,J,le){var ce=X<12?"AM":"PM";return le?ce.toLowerCase():ce};return S.replace(R,function(X,J){return J||function(le){switch(le){case"YY":return String(y.$y).slice(-2);case"YYYY":return C.s(y.$y,4,"0");case"M":return G+1;case"MM":return C.s(G+1,2,"0");case"MMM":return ee(v.monthsShort,G,Y,3);case"MMMM":return ee(Y,G);case"D":return y.$D;case"DD":return C.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ee(v.weekdaysMin,y.$W,$,2);case"ddd":return ee(v.weekdaysShort,y.$W,$,3);case"dddd":return $[y.$W];case"H":return String(N);case"HH":return C.s(N,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return te(N,V,!0);case"A":return te(N,V,!1);case"m":return String(V);case"mm":return C.s(V,2,"0");case"s":return String(y.$s);case"ss":return C.s(y.$s,2,"0");case"SSS":return C.s(y.$ms,3,"0");case"Z":return T}return null}(X)||T.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(p,y,v){var S,T=this,N=C.p(y),V=k(p),G=(V.utcOffset()-this.utcOffset())*i,$=this-V,Y=function(){return C.m(T,V)};switch(N){case x:S=Y()/12;break;case m:S=Y();break;case g:S=Y()/3;break;case c:S=($-G)/6048e5;break;case f:S=($-G)/864e5;break;case l:S=$/n;break;case u:S=$/i;break;case s:S=$/r;break;default:S=$}return v?S:C.a(S)},b.daysInMonth=function(){return this.endOf(m).$D},b.$locale=function(){return P[this.$L]},b.locale=function(p,y){if(!p)return this.$L;var v=this.clone(),S=Z(p,y,!0);return S&&(v.$L=S),v},b.clone=function(){return C.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},E}(),ie=j.prototype;return k.prototype=ie,[["$ms",o],["$s",s],["$m",u],["$H",l],["$W",f],["$M",m],["$y",x],["$D",w]].forEach(function(E){ie[E[1]]=function(b){return this.$g(b,E[0],E[1])}}),k.extend=function(E,b){return E.$i||(E(b,j,k),E.$i=!0),k},k.locale=Z,k.isDayjs=K,k.unix=function(E){return k(1e3*E)},k.en=P[D],k.Ls=P,k.p={},k})})(br);var In=br.exports;const Lt=lt(In);var yr={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Vt,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,s,u){var l=s.prototype;u.utc=function(d){var L={date:d,utc:!0,args:arguments};return new s(L)},l.utc=function(d){var L=u(this.toDate(),{locale:this.$L,utc:!0});return d?L.add(this.utcOffset(),r):L},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=l.parse;l.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),f.call(this,d)};var c=l.init;l.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else c.call(this)};var m=l.utcOffset;l.utcOffset=function(d,L){var R=this.$utils().u;if(R(d))return this.$u?0:R(this.$offset)?m.call(this):this.$offset;if(typeof d=="string"&&(d=function(D){D===void 0&&(D="");var P=D.match(i);if(!P)return null;var W=(""+P[0]).match(n)||["-",0,0],K=W[0],Z=60*+W[1]+ +W[2];return Z===0?0:K==="+"?Z:-Z}(d),d===null))return this;var A=Math.abs(d)<=16?60*d:d,H=this;if(L)return H.$offset=A,H.$u=d===0,H;if(d!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(H=this.local().add(A+O,r)).$offset=A,H.$x.$localOffset=O}else H=this.utc();return H};var g=l.format;l.format=function(d){var L=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,L)},l.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var x=l.toDate;l.toDate=function(d){return d==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var w=l.diff;l.diff=function(d,L,R){if(d&&this.$u===d.$u)return w.call(this,d,L,R);var A=this.local(),H=u(d).local();return w.call(A,H,L,R)}}})})(yr);var Dn=yr.exports;const Ln=lt(Dn);function Nn(e){a.append_styles(e,"svelte-19ii49m",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;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;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));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:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}')}function Nt(e,t,r){const i=e.slice();return i[53]=t[r],i}function Rn(e){let t,r=e[3].length>0&&Rt(e);return{c(){t=a.element("div"),r&&r.c(),a.attr(t,"class","CashierVerificationsWrapper")},m(i,n){a.insert(i,t,n),r&&r.m(t,null)},p(i,n){i[3].length>0?r?r.p(i,n):(r=Rt(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&a.detach(t),r&&r.d()}}}function kn(e){let t;return{c(){t=a.element("cashier-spinner"),a.set_custom_element_data(t,"clientstylingurl",e[1]),a.set_custom_element_data(t,"clientstyling",e[0])},m(r,i){a.insert(r,t,i)},p(r,i){i[0]&2&&a.set_custom_element_data(t,"clientstylingurl",r[1]),i[0]&1&&a.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&a.detach(t)}}}function Rt(e){let t,r,i,n,o,s,u,l=e[8]("verificationsRequired")+"",f,c,m,g,x,w,d,L,R=a.ensure_array_like(e[3]),A=[];for(let O=0;O<R.length;O+=1)A[O]=kt(Nt(e,R,O));let H=e[6]&&Ut(e);return{c(){t=a.element("div"),r=a.svg_element("svg"),i=a.svg_element("path"),n=a.svg_element("path"),o=a.svg_element("path"),s=a.space(),u=a.element("p"),f=a.text(l),c=a.space(),m=a.element("span"),m.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',g=a.space(),x=a.element("div");for(let O=0;O<A.length;O+=1)A[O].c();w=a.space(),H&&H.c(),a.attr(i,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),a.attr(i,"stroke","#6E738F"),a.attr(i,"stroke-width","2"),a.attr(i,"stroke-linecap","round"),a.attr(i,"stroke-linejoin","round"),a.attr(n,"d","M12 8V12"),a.attr(n,"stroke","#6E738F"),a.attr(n,"stroke-width","2"),a.attr(n,"stroke-linecap","round"),a.attr(n,"stroke-linejoin","round"),a.attr(o,"d","M12 16H12.01"),a.attr(o,"stroke","#6E738F"),a.attr(o,"stroke-width","2"),a.attr(o,"stroke-linecap","round"),a.attr(o,"stroke-linejoin","round"),a.attr(r,"width","24"),a.attr(r,"height","24"),a.attr(r,"viewBox","0 0 24 24"),a.attr(r,"fill","none"),a.attr(r,"xmlns","http://www.w3.org/2000/svg"),a.attr(m,"class","CashierVerificationChevron"),a.toggle_class(m,"ShowVerifications",e[4]),a.attr(t,"class","VerificationsHeader"),a.attr(x,"class","VerificationsList"),a.toggle_class(x,"ShowVerifications",e[4])},m(O,D){a.insert(O,t,D),a.append(t,r),a.append(r,i),a.append(r,n),a.append(r,o),a.append(t,s),a.append(t,u),a.append(u,f),a.append(t,c),a.append(t,m),a.insert(O,g,D),a.insert(O,x,D);for(let P=0;P<A.length;P+=1)A[P]&&A[P].m(x,null);a.append(x,w),H&&H.m(x,null),d||(L=a.listen(t,"click",e[9]),d=!0)},p(O,D){if(D[0]&256&&l!==(l=O[8]("verificationsRequired")+"")&&a.set_data(f,l),D[0]&16&&a.toggle_class(m,"ShowVerifications",O[4]),D[0]&8){R=a.ensure_array_like(O[3]);let P;for(P=0;P<R.length;P+=1){const W=Nt(O,R,P);A[P]?A[P].p(W,D):(A[P]=kt(W),A[P].c(),A[P].m(x,w))}for(;P<A.length;P+=1)A[P].d(1);A.length=R.length}O[6]?H?H.p(O,D):(H=Ut(O),H.c(),H.m(x,null)):H&&(H.d(1),H=null),D[0]&16&&a.toggle_class(x,"ShowVerifications",O[4])},d(O){O&&(a.detach(t),a.detach(g),a.detach(x)),a.destroy_each(A,O),H&&H.d(),d=!1,L()}}}function kt(e){let t,r,i,n,o=e[53]+"";return{c(){t=a.element("div"),r=a.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',i=a.space(),n=a.element("p"),a.attr(r,"class","IconVerification"),a.attr(n,"class","text"),a.attr(t,"class","CashierVerificationMessage Test")},m(s,u){a.insert(s,t,u),a.append(t,r),a.append(t,i),a.append(t,n),n.innerHTML=o},p(s,u){u[0]&8&&o!==(o=s[53]+"")&&(n.innerHTML=o)},d(s){s&&a.detach(t)}}}function Ut(e){let t,r,i,n,o=e[8]("verification.video.how-to")+"",s,u,l;return{c(){t=a.element("div"),r=a.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',i=a.space(),n=a.element("div"),s=a.text(o),a.attr(r,"class","IconVideo"),a.attr(n,"class","CashierVerificationVideoLink"),a.toggle_class(n,"CashierVerificationVideoLinkDesktop",e[5]),a.attr(t,"class","CashierVerificationVideo Test")},m(f,c){a.insert(f,t,c),a.append(t,r),a.append(t,i),a.append(t,n),a.append(n,s),u||(l=a.listen(t,"click",e[10]),u=!0)},p(f,c){c[0]&256&&o!==(o=f[8]("verification.video.how-to")+"")&&a.set_data(s,o),c[0]&32&&a.toggle_class(n,"CashierVerificationVideoLinkDesktop",f[5])},d(f){f&&a.detach(t),u=!1,l()}}}function Un(e){let t;function r(o,s){if(o[7])return kn;if(o[3])return Rn}let i=r(e),n=i&&i(e);return{c(){t=a.element("div"),n&&n.c(),a.attr(t,"class","CashierVerifications"),a.toggle_class(t,"CashierVerificationsDesktop",e[5])},m(o,s){a.insert(o,t,s),n&&n.m(t,null),e[19](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n&&n.d(1),n=i&&i(o),n&&(n.c(),n.m(t,null))),s[0]&32&&a.toggle_class(t,"CashierVerificationsDesktop",o[5])},i:a.noop,o:a.noop,d(o){o&&a.detach(t),n&&n.d(),e[19](null)}}}const Vn="verification_explanation_video_widgets.MP4";function Fn(e,t,r){let i,n;a.component_subscribe(e,mn,h=>r(8,i=h)),a.component_subscribe(e,gn,h=>r(27,n=h)),Lt.extend(Ln);let{endpoint:o}=t,{lang:s="en"}=t,{translationurl:u=""}=t,{clientstyling:l=""}=t,{clientstylingurl:f=""}=t,{session:c=""}=t,{customerid:m=""}=t,{playersession:g=""}=t,{mbsource:x=""}=t,w,d=new Set,L=new Set,R,A,H,O=!1,D=!0,P=!1,W="",K=!1,Z=window.navigator.userAgent;var k;(function(h){h.Manual="Manual",h.ShuftiPro="ShuftiPro"})(k||(k={}));var C;(function(h){h.Requested="Requested"})(C||(C={}));var j;(function(h){h.Unknown="Unknown",h.Unverified="Unverified",h.InProgress="InProgress",h.Failed="Failed",h.Verified="Verified",h.Referred="Referred",h.True="True",h.False="False",h.AwaitingForResponse="AwaitingForResponse"})(j||(j={}));var ie;(function(h){h.Unknown="Unknown",h.Documents="Documents",h.Age="Age",h.Pep="Pep",h.Sanction="Sanction",h.Aml="Aml",h.ProofOfAddress="ProofOfAddress",h.SourceOfWealth="SourceOfWealth",h.SocialMedia="SocialMedia",h.Biometric="Biometric"})(ie||(ie={}));const E=h=>{h.data&&h.data.type};a.onMount(()=>(window.addEventListener("message",E),_r(),()=>{window.removeEventListener("message",E)}));const b=[j.InProgress,j.Referred,j.AwaitingForResponse],p=()=>{let h=u;if(h)return fetch(h).then(_=>_.json()).then(_=>{Object.keys(_).forEach(I=>{Ht(I,_[I])})}).catch(_=>{console.log(_)})};Object.keys(Ot).forEach(h=>{Ht(h,Ot[h])});const y=()=>{vn(s)},v=()=>{r(18,A=N());const h=new URL(`${o}/v1/player/${m}/verification/GetKYCCustomerStatus?language=${s}`),_=new Headers;_.append("accept","application/json"),_.append("Content-Type","application/json"),_.append("x-sessionid",`${g}`),_.append("X-Client-Request-Timestamp",Lt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const I={method:"POST",headers:_,body:JSON.stringify({})};r(7,K=!0),fetch(h,I).then(z=>z.json()).then(z=>{const oe=S(z==null?void 0:z.Verifications);R=V(oe),R.VerificationStatuses.forEach(Pe=>{Pe.VerificationUrlType!=="Widget"&&d.add(Pe.Vendor)}),r(3,H=ue())}).finally(()=>r(7,K=!1))},S=h=>h?h.sort((_,I)=>new Date(I.Created).getTime()-new Date(_.Created).getTime()):[],T=()=>{n&&v()},N=()=>{let h=(c||n).split(".")[1];if(h){let _=JSON.parse(atob(h));return _.cdn+"/cashier/operator-assets/"+(_==null?void 0:_.mid)}return""},V=h=>{var I;if(!h||!h.length)return{VerificationSummaryStatus:j.Unverified,VerificationStatuses:[]};const _=Y(h);if(_&&_.length){const z=G(_);return{VerificationSummaryStatus:z.Status,VerificationUrl:(I=z.Flags)==null?void 0:I.DeferredUrlKey,VerificationStatuses:$(_,z.Status)}}else return{VerificationSummaryStatus:h.some(oe=>oe.Status===j.Failed)?j.Failed:j.Verified,VerificationStatuses:$(h,[j.Failed])}},G=h=>h.reduce((_,I)=>_?new Date(_)<new Date(I)?I:_:I,0),$=(h,_)=>h.filter(I=>_.includes(I.Status)).map(I=>{var z,oe;return{Type:I.Type,Vendor:I.VendorName,VerificationDocuments:I.Documents?[...I.Documents]:[],VerificationUrlType:(z=I.FlowInfo)==null?void 0:z.Type,VerificationUrl:(oe=I.FlowInfo)==null?void 0:oe.Url}}),Y=h=>h.filter(_=>b.includes(_.Status)?_.FlowInfo&&_.FlowInfo.Url||ne(_)||ee(_):!1),ne=h=>{const _=h.Documents&&h.VendorName===k.Manual,I=h.Documents&&h.Documents.some(z=>z.Status===C.Requested);return _&&I},ee=h=>h.VendorName===k.ShuftiPro&&h.Status===j.Referred,ue=()=>{switch(R.VerificationSummaryStatus){case j.InProgress:const h=[];return d.forEach(_=>{h.push(te(_))}),h;case j.Referred:return[i("verification.idenfy.referred-awaiting")];case j.Failed:return[i("verification.message.failed")]}},te=h=>{const _=R.VerificationStatuses.filter(I=>I.Vendor===h);if(h===k.ShuftiPro)return X(_);{const I=i("verification.idenfy.link-name"),z={link:`<a href="${_[0].VerificationUrl}" target="_blank">${I}</a>`};return i("verification.idenfy.in-progress",{values:z})}},X=h=>{const _=[],I={},z=[ie.Biometric,ie.Documents,ie.ProofOfAddress];h.forEach(he=>{z.includes(he.Type)&&(_.push(he.Type),I[he.Type]=J(he,le(he.Type)))});let oe=_.every(he=>L.has(he)),Pe=`verification.shuftipro.in-progress.${_.sort().join(".")}`;return oe?i("verification.shuftipro.validations-started"):i(Pe,{values:I})},J=(h,_)=>`<a class="verificationLink ${h.Type}" href=" ${h.VerificationUrl} " target="_blank">${_}</a>`,le=h=>i(`verification.shuftipro.link-name.${h}`),ce=()=>{r(4,O=!O)},_r=()=>{r(5,D=!Cn(Z))},Er=()=>{W=A+"/"+s+"/"+Vn;try{fetch(W,{method:"HEAD"}).then(h=>{r(6,P=h.ok)})}catch(h){r(6,P=!1)}},wr=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:W}}}))};function Sr(h){a.binding_callbacks[h?"unshift":"push"](()=>{w=h,r(2,w)})}return e.$$set=h=>{"endpoint"in h&&r(11,o=h.endpoint),"lang"in h&&r(12,s=h.lang),"translationurl"in h&&r(13,u=h.translationurl),"clientstyling"in h&&r(0,l=h.clientstyling),"clientstylingurl"in h&&r(1,f=h.clientstylingurl),"session"in h&&r(14,c=h.session),"customerid"in h&&r(15,m=h.customerid),"playersession"in h&&r(16,g=h.playersession),"mbsource"in h&&r(17,x=h.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&4096&&s&&y(),e.$$.dirty[0]&83968&&o&&c&&g&&v(),e.$$.dirty[0]&83968&&o&&!c&&g&&T(),e.$$.dirty[0]&8192&&u&&p(),e.$$.dirty[0]&5&&l&&w&&a.setClientStyling(w,l),e.$$.dirty[0]&6&&f&&w&&a.setClientStylingURL(w,f),e.$$.dirty[0]&262144&&A&&Er(),e.$$.dirty[0]&131076&&x&&w&&a.setStreamStyling(w,`${x}.Style`)},[l,f,w,H,O,D,P,K,i,ce,wr,o,s,u,c,m,g,x,A,Sr]}class xr extends a.SvelteComponent{constructor(t){super(),a.init(this,t,Fn,Un,a.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},Nn,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),a.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),a.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),a.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),a.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),a.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),a.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),a.flush()}}a.create_custom_element(xr,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=xr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-HkQ8MdDi.cjs")).then(({default:t})=>{!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierVerifications-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierVerifications-4DRlPs3v.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-verifications") && customElements.define("cashier-verifications", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|