@everymatrix/cashier-step-up 0.14.89 → 0.14.91
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/{CashierStepUp-BVxmAwHQ.js → CashierStepUp-B2UgWR_E.js} +208 -207
- package/components/{CashierStepUp-DQe8mRSw.js → CashierStepUp-B4xHjS5o.js} +204 -204
- package/components/{CashierStepUp-E4BcBowq.cjs → CashierStepUp-K52xLTl4.cjs} +2 -2
- package/es2015/cashier-step-up.cjs +1 -1
- package/es2015/cashier-step-up.js +1 -1
- package/esnext/cashier-step-up.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ function Pt() {
|
|
|
9
9
|
function ve(e) {
|
|
10
10
|
e.forEach(en);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ot(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function tn(e, t) {
|
|
@@ -122,14 +122,14 @@ function Yn(e) {
|
|
|
122
122
|
const Se = [], Ze = [];
|
|
123
123
|
let Oe = [];
|
|
124
124
|
const Lt = [], Kn = /* @__PURE__ */ Promise.resolve();
|
|
125
|
-
let
|
|
125
|
+
let mt = !1;
|
|
126
126
|
function er() {
|
|
127
|
-
|
|
127
|
+
mt || (mt = !0, Kn.then(ie));
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function gt(e) {
|
|
130
130
|
Oe.push(e);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const lt = /* @__PURE__ */ new Set();
|
|
133
133
|
let xe = 0;
|
|
134
134
|
function ie() {
|
|
135
135
|
if (xe !== 0)
|
|
@@ -148,19 +148,19 @@ function ie() {
|
|
|
148
148
|
Ze.pop()();
|
|
149
149
|
for (let t = 0; t < Oe.length; t += 1) {
|
|
150
150
|
const n = Oe[t];
|
|
151
|
-
|
|
151
|
+
lt.has(n) || (lt.add(n), n());
|
|
152
152
|
}
|
|
153
153
|
Oe.length = 0;
|
|
154
154
|
} while (Se.length);
|
|
155
155
|
for (; Lt.length; )
|
|
156
156
|
Lt.pop()();
|
|
157
|
-
|
|
157
|
+
mt = !1, lt.clear(), Ue(e);
|
|
158
158
|
}
|
|
159
159
|
function tr(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
161
161
|
e.update(), ve(e.before_update);
|
|
162
162
|
const t = e.dirty;
|
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(gt);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
function nr(e) {
|
|
@@ -176,10 +176,10 @@ function It(e) {
|
|
|
176
176
|
}
|
|
177
177
|
function or(e, t, n) {
|
|
178
178
|
const { fragment: r, after_update: i } = e.$$;
|
|
179
|
-
r && r.m(t, n),
|
|
180
|
-
const o = e.$$.on_mount.map(en).filter(
|
|
179
|
+
r && r.m(t, n), gt(() => {
|
|
180
|
+
const o = e.$$.on_mount.map(en).filter(Ot);
|
|
181
181
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ve(o), e.$$.on_mount = [];
|
|
182
|
-
}), i.forEach(
|
|
182
|
+
}), i.forEach(gt);
|
|
183
183
|
}
|
|
184
184
|
function sr(e, t) {
|
|
185
185
|
const n = e.$$;
|
|
@@ -214,13 +214,13 @@ function lr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
214
214
|
};
|
|
215
215
|
a && a(l.root);
|
|
216
216
|
let h = !1;
|
|
217
|
-
if (l.ctx = n ? n(e, t.props || {}, (
|
|
217
|
+
if (l.ctx = n ? n(e, t.props || {}, (f, d, ...y) => {
|
|
218
218
|
const m = y.length ? y[0] : d;
|
|
219
|
-
return l.ctx && i(l.ctx[
|
|
219
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), h && ar(e, f)), d;
|
|
220
220
|
}) : [], l.update(), h = !0, ve(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
|
-
const
|
|
223
|
-
l.fragment && l.fragment.l(
|
|
222
|
+
const f = qn(t.target);
|
|
223
|
+
l.fragment && l.fragment.l(f), f.forEach(H);
|
|
224
224
|
} else
|
|
225
225
|
l.fragment && l.fragment.c();
|
|
226
226
|
t.intro && ir(e.$$.fragment), or(e, t.target, t.anchor), ie();
|
|
@@ -431,7 +431,7 @@ class hr {
|
|
|
431
431
|
* @returns {() => void}
|
|
432
432
|
*/
|
|
433
433
|
$on(t, n) {
|
|
434
|
-
if (!
|
|
434
|
+
if (!Ot(n))
|
|
435
435
|
return K;
|
|
436
436
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
437
|
return r.push(n), () => {
|
|
@@ -542,13 +542,13 @@ function Me(e, t, n) {
|
|
|
542
542
|
return br(n, (a, s) => {
|
|
543
543
|
let u = !1;
|
|
544
544
|
const l = [];
|
|
545
|
-
let h = 0,
|
|
545
|
+
let h = 0, f = K;
|
|
546
546
|
const d = () => {
|
|
547
547
|
if (h)
|
|
548
548
|
return;
|
|
549
|
-
|
|
549
|
+
f();
|
|
550
550
|
const m = t(r ? l[0] : l, a, s);
|
|
551
|
-
o ? a(m) :
|
|
551
|
+
o ? a(m) : f = Ot(m) ? m : K;
|
|
552
552
|
}, y = i.map(
|
|
553
553
|
(m, g) => nn(
|
|
554
554
|
m,
|
|
@@ -561,7 +561,7 @@ function Me(e, t, n) {
|
|
|
561
561
|
)
|
|
562
562
|
);
|
|
563
563
|
return u = !0, d(), function() {
|
|
564
|
-
ve(y),
|
|
564
|
+
ve(y), f(), u = !1;
|
|
565
565
|
};
|
|
566
566
|
});
|
|
567
567
|
}
|
|
@@ -639,18 +639,18 @@ He.all = function(t, n) {
|
|
|
639
639
|
};
|
|
640
640
|
var Mr = He, Pr = Mr;
|
|
641
641
|
const Lr = /* @__PURE__ */ vr(Pr);
|
|
642
|
-
var
|
|
643
|
-
return
|
|
642
|
+
var bt = function(e, t) {
|
|
643
|
+
return bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
644
644
|
n.__proto__ = r;
|
|
645
645
|
} || function(n, r) {
|
|
646
646
|
for (var i in r)
|
|
647
647
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
648
|
-
},
|
|
648
|
+
}, bt(e, t);
|
|
649
649
|
};
|
|
650
650
|
function Ke(e, t) {
|
|
651
651
|
if (typeof t != "function" && t !== null)
|
|
652
652
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
653
|
-
|
|
653
|
+
bt(e, t);
|
|
654
654
|
function n() {
|
|
655
655
|
this.constructor = e;
|
|
656
656
|
}
|
|
@@ -675,13 +675,13 @@ function Ir(e, t) {
|
|
|
675
675
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
676
676
|
return n;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function ut(e, t, n) {
|
|
679
679
|
if (n || arguments.length === 2)
|
|
680
680
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
681
681
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
682
682
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function ht(e, t) {
|
|
685
685
|
var n = t && t.cache ? t.cache : Fr, r = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : kr;
|
|
686
686
|
return i(e, {
|
|
687
687
|
cache: n,
|
|
@@ -727,7 +727,7 @@ var Ur = function() {
|
|
|
727
727
|
create: function() {
|
|
728
728
|
return new Gr();
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, ct = {
|
|
731
731
|
variadic: Dr
|
|
732
732
|
}, qe = function() {
|
|
733
733
|
return qe = Object.assign || function(t) {
|
|
@@ -781,7 +781,7 @@ function pn(e) {
|
|
|
781
781
|
function dn(e) {
|
|
782
782
|
return !!(e && typeof e == "object" && e.type === Ce.number);
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function vt(e) {
|
|
785
785
|
return !!(e && typeof e == "object" && e.type === Ce.dateTime);
|
|
786
786
|
}
|
|
787
787
|
var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zr = /(?:[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;
|
|
@@ -897,8 +897,8 @@ function Wr(e) {
|
|
|
897
897
|
if (a.length === 0)
|
|
898
898
|
throw new Error("Invalid number skeleton");
|
|
899
899
|
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
900
|
-
var
|
|
901
|
-
if (
|
|
900
|
+
var f = h[l];
|
|
901
|
+
if (f.length === 0)
|
|
902
902
|
throw new Error("Invalid number skeleton");
|
|
903
903
|
}
|
|
904
904
|
n.push({ stem: s, options: u });
|
|
@@ -1059,11 +1059,11 @@ function Jr(e) {
|
|
|
1059
1059
|
case "integer-width":
|
|
1060
1060
|
if (i.options.length > 1)
|
|
1061
1061
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1062
|
-
i.options[0].replace(qr, function(u, l, h,
|
|
1062
|
+
i.options[0].replace(qr, function(u, l, h, f, d, y) {
|
|
1063
1063
|
if (l)
|
|
1064
1064
|
t.minimumIntegerDigits = h.length;
|
|
1065
1065
|
else {
|
|
1066
|
-
if (
|
|
1066
|
+
if (f && d)
|
|
1067
1067
|
throw new Error("We currently do not support maximum integer digits");
|
|
1068
1068
|
if (y)
|
|
1069
1069
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1079,8 +1079,8 @@ function Jr(e) {
|
|
|
1079
1079
|
if (kt.test(i.stem)) {
|
|
1080
1080
|
if (i.options.length > 1)
|
|
1081
1081
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1082
|
-
i.stem.replace(kt, function(u, l, h,
|
|
1083
|
-
return h === "*" ? t.minimumFractionDigits = l.length :
|
|
1082
|
+
i.stem.replace(kt, function(u, l, h, f, d, y) {
|
|
1083
|
+
return h === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1084
1084
|
});
|
|
1085
1085
|
var o = i.options[0];
|
|
1086
1086
|
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), Dt(o)));
|
|
@@ -2550,18 +2550,18 @@ function Kr(e) {
|
|
|
2550
2550
|
var i = ze[r || ""] || ze[n || ""] || ze["".concat(n, "-001")] || ze["001"];
|
|
2551
2551
|
return i[0];
|
|
2552
2552
|
}
|
|
2553
|
-
var
|
|
2553
|
+
var ft, ei = new RegExp("^".concat(mn.source, "*")), ti = new RegExp("".concat(mn.source, "*$"));
|
|
2554
2554
|
function T(e, t) {
|
|
2555
2555
|
return { start: e, end: t };
|
|
2556
2556
|
}
|
|
2557
2557
|
var ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), ri = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, ui = li ? Number.isSafeInteger : function(e) {
|
|
2558
2558
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2559
|
-
},
|
|
2559
|
+
}, yt = !0;
|
|
2560
2560
|
try {
|
|
2561
2561
|
var hi = En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2562
|
-
|
|
2562
|
+
yt = ((ft = hi.exec("a")) === null || ft === void 0 ? void 0 : ft[0]) === "a";
|
|
2563
2563
|
} catch {
|
|
2564
|
-
|
|
2564
|
+
yt = !1;
|
|
2565
2565
|
}
|
|
2566
2566
|
var Gt = ni ? (
|
|
2567
2567
|
// Native
|
|
@@ -2573,7 +2573,7 @@ var Gt = ni ? (
|
|
|
2573
2573
|
function(t, n, r) {
|
|
2574
2574
|
return t.slice(r, r + n.length) === n;
|
|
2575
2575
|
}
|
|
2576
|
-
),
|
|
2576
|
+
), Et = ri ? String.fromCodePoint : (
|
|
2577
2577
|
// IE11
|
|
2578
2578
|
function() {
|
|
2579
2579
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2635,24 +2635,24 @@ var Gt = ni ? (
|
|
|
2635
2635
|
function En(e, t) {
|
|
2636
2636
|
return new RegExp(e, t);
|
|
2637
2637
|
}
|
|
2638
|
-
var
|
|
2639
|
-
if (
|
|
2638
|
+
var _t;
|
|
2639
|
+
if (yt) {
|
|
2640
2640
|
var jt = En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2641
|
-
|
|
2641
|
+
_t = function(t, n) {
|
|
2642
2642
|
var r;
|
|
2643
2643
|
jt.lastIndex = n;
|
|
2644
2644
|
var i = jt.exec(t);
|
|
2645
2645
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2646
2646
|
};
|
|
2647
2647
|
} else
|
|
2648
|
-
|
|
2648
|
+
_t = function(t, n) {
|
|
2649
2649
|
for (var r = []; ; ) {
|
|
2650
2650
|
var i = yn(t, n);
|
|
2651
2651
|
if (i === void 0 || _n(i) || gi(i))
|
|
2652
2652
|
break;
|
|
2653
2653
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2654
2654
|
}
|
|
2655
|
-
return
|
|
2655
|
+
return Et.apply(void 0, r);
|
|
2656
2656
|
};
|
|
2657
2657
|
var pi = (
|
|
2658
2658
|
/** @class */
|
|
@@ -2685,7 +2685,7 @@ var pi = (
|
|
|
2685
2685
|
if (r)
|
|
2686
2686
|
break;
|
|
2687
2687
|
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2688
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2688
|
+
} else if (o === 60 && !this.ignoreTag && xt(this.peek() || 0)) {
|
|
2689
2689
|
var a = this.parseTag(t, n);
|
|
2690
2690
|
if (a.err)
|
|
2691
2691
|
return a;
|
|
@@ -2718,7 +2718,7 @@ var pi = (
|
|
|
2718
2718
|
return o;
|
|
2719
2719
|
var a = o.val, s = this.clonePosition();
|
|
2720
2720
|
if (this.bumpIf("</")) {
|
|
2721
|
-
if (this.isEOF() || !
|
|
2721
|
+
if (this.isEOF() || !xt(this.char()))
|
|
2722
2722
|
return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
|
|
2723
2723
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2724
2724
|
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2799,12 +2799,12 @@ var pi = (
|
|
|
2799
2799
|
n.push(r);
|
|
2800
2800
|
this.bump();
|
|
2801
2801
|
}
|
|
2802
|
-
return
|
|
2802
|
+
return Et.apply(void 0, n);
|
|
2803
2803
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2804
2804
|
if (this.isEOF())
|
|
2805
2805
|
return null;
|
|
2806
2806
|
var r = this.char();
|
|
2807
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2807
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Et(r));
|
|
2808
2808
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2809
2809
|
var r = this.clonePosition();
|
|
2810
2810
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2833,7 +2833,7 @@ var pi = (
|
|
|
2833
2833
|
return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
|
|
2834
2834
|
}
|
|
2835
2835
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2836
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2836
|
+
var t = this.clonePosition(), n = this.offset(), r = _t(this.message, n), i = n + r.length;
|
|
2837
2837
|
this.bumpTo(i);
|
|
2838
2838
|
var o = this.clonePosition(), a = T(t, o);
|
|
2839
2839
|
return { value: r, location: a };
|
|
@@ -2849,10 +2849,10 @@ var pi = (
|
|
|
2849
2849
|
var l = null;
|
|
2850
2850
|
if (this.bumpIf(",")) {
|
|
2851
2851
|
this.bumpSpace();
|
|
2852
|
-
var h = this.clonePosition(),
|
|
2853
|
-
if (
|
|
2854
|
-
return
|
|
2855
|
-
var d = fi(
|
|
2852
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2853
|
+
if (f.err)
|
|
2854
|
+
return f;
|
|
2855
|
+
var d = fi(f.val);
|
|
2856
2856
|
if (d.length === 0)
|
|
2857
2857
|
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2858
2858
|
var y = T(h, this.clonePosition());
|
|
@@ -2865,9 +2865,9 @@ var pi = (
|
|
|
2865
2865
|
if (l && Gt(l?.style, "::", 0)) {
|
|
2866
2866
|
var E = ci(l.style.slice(2));
|
|
2867
2867
|
if (s === "number") {
|
|
2868
|
-
var
|
|
2869
|
-
return
|
|
2870
|
-
val: { type: L.number, value: r, location: g, style:
|
|
2868
|
+
var f = this.parseNumberSkeletonFromString(E, l.styleLocation);
|
|
2869
|
+
return f.err ? f : {
|
|
2870
|
+
val: { type: L.number, value: r, location: g, style: f.val },
|
|
2871
2871
|
err: null
|
|
2872
2872
|
};
|
|
2873
2873
|
} else {
|
|
@@ -2909,10 +2909,10 @@ var pi = (
|
|
|
2909
2909
|
if (!this.bumpIf(":"))
|
|
2910
2910
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
2911
2911
|
this.bumpSpace();
|
|
2912
|
-
var
|
|
2913
|
-
if (
|
|
2914
|
-
return
|
|
2915
|
-
this.bumpSpace(), D = this.parseIdentifierIfPossible(), P =
|
|
2912
|
+
var f = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2913
|
+
if (f.err)
|
|
2914
|
+
return f;
|
|
2915
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), P = f.val;
|
|
2916
2916
|
}
|
|
2917
2917
|
var N = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2918
2918
|
if (N.err)
|
|
@@ -3000,12 +3000,12 @@ var pi = (
|
|
|
3000
3000
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3001
3001
|
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3002
3002
|
if (l.length === 0) {
|
|
3003
|
-
var
|
|
3003
|
+
var f = this.clonePosition();
|
|
3004
3004
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3005
3005
|
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3006
3006
|
if (d.err)
|
|
3007
3007
|
return d;
|
|
3008
|
-
h = T(
|
|
3008
|
+
h = T(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3009
3009
|
} else
|
|
3010
3010
|
break;
|
|
3011
3011
|
}
|
|
@@ -3107,11 +3107,11 @@ var pi = (
|
|
|
3107
3107
|
}, e;
|
|
3108
3108
|
}()
|
|
3109
3109
|
);
|
|
3110
|
-
function
|
|
3110
|
+
function xt(e) {
|
|
3111
3111
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3112
3112
|
}
|
|
3113
3113
|
function di(e) {
|
|
3114
|
-
return
|
|
3114
|
+
return xt(e) || e === 47;
|
|
3115
3115
|
}
|
|
3116
3116
|
function mi(e) {
|
|
3117
3117
|
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;
|
|
@@ -3122,13 +3122,13 @@ function _n(e) {
|
|
|
3122
3122
|
function gi(e) {
|
|
3123
3123
|
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;
|
|
3124
3124
|
}
|
|
3125
|
-
function
|
|
3125
|
+
function wt(e) {
|
|
3126
3126
|
e.forEach(function(t) {
|
|
3127
3127
|
if (delete t.location, cn(t) || fn(t))
|
|
3128
3128
|
for (var n in t.options)
|
|
3129
|
-
delete t.options[n].location,
|
|
3129
|
+
delete t.options[n].location, wt(t.options[n].value);
|
|
3130
3130
|
else
|
|
3131
|
-
ln(t) && dn(t.style) || (un(t) || hn(t)) &&
|
|
3131
|
+
ln(t) && dn(t.style) || (un(t) || hn(t)) && vt(t.style) ? delete t.style.location : pn(t) && wt(t.children);
|
|
3132
3132
|
});
|
|
3133
3133
|
}
|
|
3134
3134
|
function bi(e, t) {
|
|
@@ -3138,7 +3138,7 @@ function bi(e, t) {
|
|
|
3138
3138
|
var r = SyntaxError(w[n.err.kind]);
|
|
3139
3139
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3140
3140
|
}
|
|
3141
|
-
return t?.captureLocation ||
|
|
3141
|
+
return t?.captureLocation || wt(n.val), n.val;
|
|
3142
3142
|
}
|
|
3143
3143
|
var Ae;
|
|
3144
3144
|
(function(e) {
|
|
@@ -3220,10 +3220,10 @@ function Xe(e, t, n, r, i, o, a) {
|
|
|
3220
3220
|
});
|
|
3221
3221
|
continue;
|
|
3222
3222
|
}
|
|
3223
|
-
var
|
|
3224
|
-
if (!(i &&
|
|
3225
|
-
throw new yi(
|
|
3226
|
-
var d = i[
|
|
3223
|
+
var f = h.value;
|
|
3224
|
+
if (!(i && f in i))
|
|
3225
|
+
throw new yi(f, a);
|
|
3226
|
+
var d = i[f];
|
|
3227
3227
|
if (jr(h)) {
|
|
3228
3228
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3229
3229
|
type: typeof d == "string" ? Z.literal : Z.object,
|
|
@@ -3232,7 +3232,7 @@ function Xe(e, t, n, r, i, o, a) {
|
|
|
3232
3232
|
continue;
|
|
3233
3233
|
}
|
|
3234
3234
|
if (un(h)) {
|
|
3235
|
-
var y = typeof h.style == "string" ? r.date[h.style] :
|
|
3235
|
+
var y = typeof h.style == "string" ? r.date[h.style] : vt(h.style) ? h.style.parsedOptions : void 0;
|
|
3236
3236
|
s.push({
|
|
3237
3237
|
type: Z.literal,
|
|
3238
3238
|
value: n.getDateTimeFormat(t, y).format(d)
|
|
@@ -3240,7 +3240,7 @@ function Xe(e, t, n, r, i, o, a) {
|
|
|
3240
3240
|
continue;
|
|
3241
3241
|
}
|
|
3242
3242
|
if (hn(h)) {
|
|
3243
|
-
var y = typeof h.style == "string" ? r.time[h.style] :
|
|
3243
|
+
var y = typeof h.style == "string" ? r.time[h.style] : vt(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3244
3244
|
s.push({
|
|
3245
3245
|
type: Z.literal,
|
|
3246
3246
|
value: n.getDateTimeFormat(t, y).format(d)
|
|
@@ -3304,7 +3304,7 @@ function wi(e, t) {
|
|
|
3304
3304
|
return n[r] = xi(e[r], t[r]), n;
|
|
3305
3305
|
}, oe({}, e)) : e;
|
|
3306
3306
|
}
|
|
3307
|
-
function
|
|
3307
|
+
function pt(e) {
|
|
3308
3308
|
return {
|
|
3309
3309
|
create: function() {
|
|
3310
3310
|
return {
|
|
@@ -3324,29 +3324,29 @@ function Si(e) {
|
|
|
3324
3324
|
dateTime: {},
|
|
3325
3325
|
pluralRules: {}
|
|
3326
3326
|
}), {
|
|
3327
|
-
getNumberFormat:
|
|
3327
|
+
getNumberFormat: ht(function() {
|
|
3328
3328
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3329
3329
|
n[r] = arguments[r];
|
|
3330
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ut([void 0], n, !1)))();
|
|
3331
3331
|
}, {
|
|
3332
|
-
cache:
|
|
3333
|
-
strategy:
|
|
3332
|
+
cache: pt(e.number),
|
|
3333
|
+
strategy: ct.variadic
|
|
3334
3334
|
}),
|
|
3335
|
-
getDateTimeFormat:
|
|
3335
|
+
getDateTimeFormat: ht(function() {
|
|
3336
3336
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3337
3337
|
n[r] = arguments[r];
|
|
3338
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3338
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ut([void 0], n, !1)))();
|
|
3339
3339
|
}, {
|
|
3340
|
-
cache:
|
|
3341
|
-
strategy:
|
|
3340
|
+
cache: pt(e.dateTime),
|
|
3341
|
+
strategy: ct.variadic
|
|
3342
3342
|
}),
|
|
3343
|
-
getPluralRules:
|
|
3343
|
+
getPluralRules: ht(function() {
|
|
3344
3344
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3345
3345
|
n[r] = arguments[r];
|
|
3346
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3346
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ut([void 0], n, !1)))();
|
|
3347
3347
|
}, {
|
|
3348
|
-
cache:
|
|
3349
|
-
strategy:
|
|
3348
|
+
cache: pt(e.pluralRules),
|
|
3349
|
+
strategy: ct.variadic
|
|
3350
3350
|
})
|
|
3351
3351
|
};
|
|
3352
3352
|
}
|
|
@@ -3364,8 +3364,8 @@ var Ti = (
|
|
|
3364
3364
|
var l = o.formatToParts(u);
|
|
3365
3365
|
if (l.length === 1)
|
|
3366
3366
|
return l[0].value;
|
|
3367
|
-
var h = l.reduce(function(
|
|
3368
|
-
return !
|
|
3367
|
+
var h = l.reduce(function(f, d) {
|
|
3368
|
+
return !f.length || d.type !== Z.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
|
|
3369
3369
|
}, []);
|
|
3370
3370
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3371
3371
|
}, this.formatToParts = function(u) {
|
|
@@ -3495,13 +3495,13 @@ const fe = {}, Hi = (e, t, n) => n && (t in fe || (fe[t] = {}), e in fe[t] || (f
|
|
|
3495
3495
|
return Hi(e, t, o);
|
|
3496
3496
|
}
|
|
3497
3497
|
};
|
|
3498
|
-
let
|
|
3498
|
+
let Ht;
|
|
3499
3499
|
const Ve = Ye({});
|
|
3500
3500
|
function Ci(e) {
|
|
3501
|
-
return
|
|
3501
|
+
return Ht[e] || null;
|
|
3502
3502
|
}
|
|
3503
3503
|
function wn(e) {
|
|
3504
|
-
return e in
|
|
3504
|
+
return e in Ht;
|
|
3505
3505
|
}
|
|
3506
3506
|
function Ai(e, t) {
|
|
3507
3507
|
if (!wn(e))
|
|
@@ -3526,7 +3526,7 @@ Me(
|
|
|
3526
3526
|
[Ve],
|
|
3527
3527
|
([e]) => Object.keys(e)
|
|
3528
3528
|
);
|
|
3529
|
-
Ve.subscribe((e) =>
|
|
3529
|
+
Ve.subscribe((e) => Ht = e);
|
|
3530
3530
|
const We = {};
|
|
3531
3531
|
function Mi(e, t) {
|
|
3532
3532
|
We[e].delete(t), We[e].size === 0 && delete We[e];
|
|
@@ -3540,7 +3540,7 @@ function Pi(e) {
|
|
|
3540
3540
|
return [t, n ? [...n] : []];
|
|
3541
3541
|
}).filter(([, t]) => t.length > 0);
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3543
|
+
function St(e) {
|
|
3544
3544
|
return e == null ? !1 : tt(e).some(
|
|
3545
3545
|
(t) => {
|
|
3546
3546
|
var n;
|
|
@@ -3555,7 +3555,7 @@ function Li(e, t) {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
const De = {};
|
|
3557
3557
|
function On(e) {
|
|
3558
|
-
if (!
|
|
3558
|
+
if (!St(e))
|
|
3559
3559
|
return e in De ? De[e] : Promise.resolve();
|
|
3560
3560
|
const t = Pi(e);
|
|
3561
3561
|
return De[e] = Promise.all(
|
|
@@ -3563,7 +3563,7 @@ function On(e) {
|
|
|
3563
3563
|
([n, r]) => Li(n, r)
|
|
3564
3564
|
)
|
|
3565
3565
|
).then(() => {
|
|
3566
|
-
if (
|
|
3566
|
+
if (St(e))
|
|
3567
3567
|
return On(e);
|
|
3568
3568
|
delete De[e];
|
|
3569
3569
|
}), De[e];
|
|
@@ -3608,7 +3608,7 @@ const Ii = {
|
|
|
3608
3608
|
function Be() {
|
|
3609
3609
|
return Ri;
|
|
3610
3610
|
}
|
|
3611
|
-
const
|
|
3611
|
+
const dt = Ye(!1);
|
|
3612
3612
|
var ki = Object.defineProperty, Di = Object.defineProperties, Ui = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, $t = (e, t, n) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ji = (e, t) => {
|
|
3613
3613
|
for (var n in t || (t = {}))
|
|
3614
3614
|
Gi.call(t, n) && $t(e, n, t[n]);
|
|
@@ -3617,7 +3617,7 @@ var ki = Object.defineProperty, Di = Object.defineProperties, Ui = Object.getOwn
|
|
|
3617
3617
|
Fi.call(t, n) && $t(e, n, t[n]);
|
|
3618
3618
|
return e;
|
|
3619
3619
|
}, Vi = (e, t) => Di(e, Ui(t));
|
|
3620
|
-
let
|
|
3620
|
+
let Tt;
|
|
3621
3621
|
const Qe = Ye(null);
|
|
3622
3622
|
function Xt(e) {
|
|
3623
3623
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
@@ -3627,22 +3627,22 @@ function tt(e, t = Be().fallbackLocale) {
|
|
|
3627
3627
|
return t ? [.../* @__PURE__ */ new Set([...n, ...Xt(t)])] : n;
|
|
3628
3628
|
}
|
|
3629
3629
|
function ye() {
|
|
3630
|
-
return
|
|
3630
|
+
return Tt ?? void 0;
|
|
3631
3631
|
}
|
|
3632
3632
|
Qe.subscribe((e) => {
|
|
3633
|
-
|
|
3633
|
+
Tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3634
3634
|
});
|
|
3635
3635
|
const zi = (e) => {
|
|
3636
|
-
if (e && Bi(e) &&
|
|
3636
|
+
if (e && Bi(e) && St(e)) {
|
|
3637
3637
|
const { loadingDelay: t } = Be();
|
|
3638
3638
|
let n;
|
|
3639
3639
|
return typeof window < "u" && ye() != null && t ? n = window.setTimeout(
|
|
3640
|
-
() =>
|
|
3640
|
+
() => dt.set(!0),
|
|
3641
3641
|
t
|
|
3642
|
-
) :
|
|
3642
|
+
) : dt.set(!0), On(e).then(() => {
|
|
3643
3643
|
Qe.set(e);
|
|
3644
3644
|
}).finally(() => {
|
|
3645
|
-
clearTimeout(n),
|
|
3645
|
+
clearTimeout(n), dt.set(!1);
|
|
3646
3646
|
});
|
|
3647
3647
|
}
|
|
3648
3648
|
return Qe.set(e);
|
|
@@ -3655,7 +3655,7 @@ const zi = (e) => {
|
|
|
3655
3655
|
return i in t ? t[i] : t[i] = e(r);
|
|
3656
3656
|
};
|
|
3657
3657
|
};
|
|
3658
|
-
var $i = Object.defineProperty, Je = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, Wt = (e, t, n) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
3658
|
+
var $i = Object.defineProperty, Je = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, Wt = (e, t, n) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ct = (e, t) => {
|
|
3659
3659
|
for (var n in t || (t = {}))
|
|
3660
3660
|
Hn.call(t, n) && Wt(e, n, t[n]);
|
|
3661
3661
|
if (Je)
|
|
@@ -3705,21 +3705,21 @@ const je = (e, t) => {
|
|
|
3705
3705
|
} = t, r = Le(t, [
|
|
3706
3706
|
"locale"
|
|
3707
3707
|
]);
|
|
3708
|
-
return Xi(
|
|
3708
|
+
return Xi(Ct({ locale: n }, r));
|
|
3709
3709
|
}, Qi = (e = {}) => {
|
|
3710
3710
|
var t = e, {
|
|
3711
3711
|
locale: n = ye()
|
|
3712
3712
|
} = t, r = Le(t, [
|
|
3713
3713
|
"locale"
|
|
3714
3714
|
]);
|
|
3715
|
-
return Wi(
|
|
3715
|
+
return Wi(Ct({ locale: n }, r));
|
|
3716
3716
|
}, Ji = (e = {}) => {
|
|
3717
3717
|
var t = e, {
|
|
3718
3718
|
locale: n = ye()
|
|
3719
3719
|
} = t, r = Le(t, [
|
|
3720
3720
|
"locale"
|
|
3721
3721
|
]);
|
|
3722
|
-
return Zi(
|
|
3722
|
+
return Zi(Ct({ locale: n }, r));
|
|
3723
3723
|
}, Yi = nt(
|
|
3724
3724
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3725
3725
|
(e, t = ye()) => new Ti(e, t, Be().formats, {
|
|
@@ -3747,16 +3747,16 @@ const je = (e, t) => {
|
|
|
3747
3747
|
), h;
|
|
3748
3748
|
if (!s)
|
|
3749
3749
|
return h;
|
|
3750
|
-
let
|
|
3750
|
+
let f = h;
|
|
3751
3751
|
try {
|
|
3752
|
-
|
|
3752
|
+
f = Yi(h, u).format(s);
|
|
3753
3753
|
} catch (d) {
|
|
3754
3754
|
d instanceof Error && console.warn(
|
|
3755
3755
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3756
3756
|
d.message
|
|
3757
3757
|
);
|
|
3758
3758
|
}
|
|
3759
|
-
return
|
|
3759
|
+
return f;
|
|
3760
3760
|
}, eo = (e, t) => Ji(t).format(e), to = (e, t) => Qi(t).format(e), no = (e, t) => qi(t).format(e), ro = (e, t = ye()) => xn(e, t), io = Me([Pe, Ve], () => Ki);
|
|
3761
3761
|
Me([Pe], () => eo);
|
|
3762
3762
|
Me([Pe], () => to);
|
|
@@ -3916,7 +3916,7 @@ function Qt(e, t, n) {
|
|
|
3916
3916
|
return r[69] = t[n], r[70] = t, r[71] = n, r;
|
|
3917
3917
|
}
|
|
3918
3918
|
function ao(e) {
|
|
3919
|
-
let t, n, r, i, o, a, s, u, l, h,
|
|
3919
|
+
let t, n, r, i, o, a, s, u, l, h, f, d, y, m, g, E, S, M = (
|
|
3920
3920
|
/*$_*/
|
|
3921
3921
|
e[19]("channelSMS") + ""
|
|
3922
3922
|
), I, D, P, N, ee, q, se, pe, ae, B, U, W, de, me, ge = (
|
|
@@ -3967,7 +3967,7 @@ function ao(e) {
|
|
|
3967
3967
|
let ce = Re(e), G = ce && ce(e);
|
|
3968
3968
|
return {
|
|
3969
3969
|
c() {
|
|
3970
|
-
t = O("div"), Y.c(), n = F(), r = O("div"), i = O("label"), o = O("div"), a = F(), s = O("input"), l = F(), h = O("div"),
|
|
3970
|
+
t = O("div"), Y.c(), n = F(), r = O("div"), i = O("label"), o = O("div"), a = F(), s = O("input"), l = F(), h = O("div"), f = ne("svg"), d = ne("path"), y = ne("circle"), m = ne("circle"), g = ne("circle"), E = F(), S = O("span"), I = k(M), D = F(), P = O("label"), N = O("div"), ee = F(), q = O("input"), pe = F(), ae = O("div"), B = ne("svg"), U = ne("rect"), W = ne("path"), de = F(), me = O("span"), Q = k(ge), Ie = F(), $ && $.c(), J = F(), V && V.c(), z = F(), te = O("div"), G && G.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), re(
|
|
3971
3971
|
o,
|
|
3972
3972
|
"checked",
|
|
3973
3973
|
/*selectedChannel*/
|
|
@@ -3976,7 +3976,7 @@ function ao(e) {
|
|
|
3976
3976
|
), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
|
|
3977
3977
|
e[20].SMS, s.checked = u = /*selectedChannel*/
|
|
3978
3978
|
e[0] === /*channels*/
|
|
3979
|
-
e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(y, "cx", "9"), p(y, "cy", "11"), p(y, "r", "0.5"), p(y, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(
|
|
3979
|
+
e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(y, "cx", "9"), p(y, "cy", "11"), p(y, "r", "0.5"), p(y, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(f, "xmlns", "http://www.w3.org/2000/svg"), p(f, "width", "24"), p(f, "height", "24"), p(f, "viewBox", "0 0 24 24"), p(f, "fill", "none"), p(f, "stroke", "currentColor"), p(f, "stroke-width", "2"), p(f, "stroke-linecap", "round"), p(f, "stroke-linejoin", "round"), p(h, "class", "ChannelContent"), p(i, "class", "ChannelCheckbox"), re(
|
|
3980
3980
|
i,
|
|
3981
3981
|
"selected",
|
|
3982
3982
|
/*selectedChannel*/
|
|
@@ -4000,7 +4000,7 @@ function ao(e) {
|
|
|
4000
4000
|
), p(r, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
|
|
4001
4001
|
},
|
|
4002
4002
|
m(b, C) {
|
|
4003
|
-
A(b, t, C), Y.m(t, null), A(b, n, C), A(b, r, C), v(r, i), v(i, o), v(i, a), v(i, s), v(i, l), v(i, h), v(h,
|
|
4003
|
+
A(b, t, C), Y.m(t, null), A(b, n, C), A(b, r, C), v(r, i), v(i, o), v(i, a), v(i, s), v(i, l), v(i, h), v(h, f), v(f, d), v(f, y), v(f, m), v(f, g), v(h, E), v(h, S), v(S, I), v(r, D), v(r, P), v(P, N), v(P, ee), v(P, q), v(P, pe), v(P, ae), v(ae, B), v(B, U), v(B, W), v(ae, de), v(ae, me), v(me, Q), A(b, Ie, C), $ && $.m(b, C), A(b, J, C), V && V.m(b, C), A(b, z, C), A(b, te, C), G && G.m(te, null), be || (Ee = [
|
|
4004
4004
|
ue(
|
|
4005
4005
|
s,
|
|
4006
4006
|
"change",
|
|
@@ -4066,19 +4066,19 @@ function lo(e) {
|
|
|
4066
4066
|
let t, n, r, i, o, a, s = (
|
|
4067
4067
|
/*$_*/
|
|
4068
4068
|
e[19]("errorHeader") + ""
|
|
4069
|
-
), u, l, h,
|
|
4069
|
+
), u, l, h, f, d, y, m = (
|
|
4070
4070
|
/*$_*/
|
|
4071
4071
|
e[19]("close") + ""
|
|
4072
4072
|
), g, E, S;
|
|
4073
4073
|
return {
|
|
4074
4074
|
c() {
|
|
4075
|
-
t = O("div"), n = O("div"), r = ne("svg"), i = ne("path"), o = F(), a = O("h2"), u = k(s), l = F(), h = O("p"),
|
|
4075
|
+
t = O("div"), n = O("div"), r = ne("svg"), i = ne("path"), o = F(), a = O("h2"), u = k(s), l = F(), h = O("p"), f = k(
|
|
4076
4076
|
/*errorMessage*/
|
|
4077
4077
|
e[8]
|
|
4078
4078
|
), d = F(), y = O("button"), g = k(m), p(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), p(r, "xmlns", "http://www.w3.org/2000/svg"), p(r, "viewBox", "0 0 512 512"), p(n, "class", "OtpErrorHeader"), p(y, "class", "OtpButton error"), p(t, "class", "OtpError");
|
|
4079
4079
|
},
|
|
4080
4080
|
m(M, I) {
|
|
4081
|
-
A(M, t, I), v(t, n), v(n, r), v(r, i), v(n, o), v(n, a), v(a, u), v(t, l), v(t, h), v(h,
|
|
4081
|
+
A(M, t, I), v(t, n), v(n, r), v(r, i), v(n, o), v(n, a), v(a, u), v(t, l), v(t, h), v(h, f), v(t, d), v(t, y), v(y, g), E || (S = ue(
|
|
4082
4082
|
y,
|
|
4083
4083
|
"click",
|
|
4084
4084
|
/*manualClosePopup*/
|
|
@@ -4090,7 +4090,7 @@ function lo(e) {
|
|
|
4090
4090
|
524288 && s !== (s = /*$_*/
|
|
4091
4091
|
M[19]("errorHeader") + "") && j(u, s), I[0] & /*errorMessage*/
|
|
4092
4092
|
256 && j(
|
|
4093
|
-
|
|
4093
|
+
f,
|
|
4094
4094
|
/*errorMessage*/
|
|
4095
4095
|
M[8]
|
|
4096
4096
|
), I[0] & /*$_*/
|
|
@@ -4348,7 +4348,7 @@ function bo(e) {
|
|
|
4348
4348
|
), s, u, l = (
|
|
4349
4349
|
/*$_*/
|
|
4350
4350
|
e[19]("minutes") + ""
|
|
4351
|
-
), h,
|
|
4351
|
+
), h, f, d, y = It(
|
|
4352
4352
|
/*otp*/
|
|
4353
4353
|
e[2]
|
|
4354
4354
|
), m = [];
|
|
@@ -4356,13 +4356,13 @@ function bo(e) {
|
|
|
4356
4356
|
m[g] = Kt(Qt(e, y, g));
|
|
4357
4357
|
return {
|
|
4358
4358
|
c() {
|
|
4359
|
-
t = O("div"), n = O("div"), i = k(r), o = F(), s = k(a), u = F(), h = k(l),
|
|
4359
|
+
t = O("div"), n = O("div"), i = k(r), o = F(), s = k(a), u = F(), h = k(l), f = F(), d = O("div");
|
|
4360
4360
|
for (let g = 0; g < m.length; g += 1)
|
|
4361
4361
|
m[g].c();
|
|
4362
4362
|
p(n, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
|
|
4363
4363
|
},
|
|
4364
4364
|
m(g, E) {
|
|
4365
|
-
A(g, t, E), v(t, n), v(n, i), v(n, o), v(n, s), v(n, u), v(n, h), v(t,
|
|
4365
|
+
A(g, t, E), v(t, n), v(n, i), v(n, o), v(n, s), v(n, u), v(n, h), v(t, f), v(t, d);
|
|
4366
4366
|
for (let S = 0; S < m.length; S += 1)
|
|
4367
4367
|
m[S] && m[S].m(d, null);
|
|
4368
4368
|
},
|
|
@@ -4424,23 +4424,23 @@ function Kt(e) {
|
|
|
4424
4424
|
/*input_binding*/
|
|
4425
4425
|
e[41](null, i)
|
|
4426
4426
|
);
|
|
4427
|
-
function l(...
|
|
4427
|
+
function l(...f) {
|
|
4428
4428
|
return (
|
|
4429
4429
|
/*input_handler*/
|
|
4430
4430
|
e[42](
|
|
4431
4431
|
/*index*/
|
|
4432
4432
|
e[71],
|
|
4433
|
-
...
|
|
4433
|
+
...f
|
|
4434
4434
|
)
|
|
4435
4435
|
);
|
|
4436
4436
|
}
|
|
4437
|
-
function h(...
|
|
4437
|
+
function h(...f) {
|
|
4438
4438
|
return (
|
|
4439
4439
|
/*keydown_handler*/
|
|
4440
4440
|
e[43](
|
|
4441
4441
|
/*index*/
|
|
4442
4442
|
e[71],
|
|
4443
|
-
...
|
|
4443
|
+
...f
|
|
4444
4444
|
)
|
|
4445
4445
|
);
|
|
4446
4446
|
}
|
|
@@ -4454,8 +4454,8 @@ function Kt(e) {
|
|
|
4454
4454
|
e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
4455
4455
|
e[11], p(t, "autocomplete", "off");
|
|
4456
4456
|
},
|
|
4457
|
-
m(
|
|
4458
|
-
A(
|
|
4457
|
+
m(f, d) {
|
|
4458
|
+
A(f, t, d), s(), o || (a = [
|
|
4459
4459
|
ue(t, "input", l),
|
|
4460
4460
|
ue(t, "keydown", h),
|
|
4461
4461
|
ue(
|
|
@@ -4466,8 +4466,8 @@ function Kt(e) {
|
|
|
4466
4466
|
)
|
|
4467
4467
|
], o = !0);
|
|
4468
4468
|
},
|
|
4469
|
-
p(
|
|
4470
|
-
e =
|
|
4469
|
+
p(f, d) {
|
|
4470
|
+
e = f, d[0] & /*config*/
|
|
4471
4471
|
16 && n !== (n = `otp-box ${/*config*/
|
|
4472
4472
|
e[4].inputLength % 2 === 0 && /*index*/
|
|
4473
4473
|
e[71] === /*config*/
|
|
@@ -4479,8 +4479,8 @@ function Kt(e) {
|
|
|
4479
4479
|
e[71] && (u(), i = /*index*/
|
|
4480
4480
|
e[71], s());
|
|
4481
4481
|
},
|
|
4482
|
-
d(
|
|
4483
|
-
|
|
4482
|
+
d(f) {
|
|
4483
|
+
f && H(t), u(), o = !1, ve(a);
|
|
4484
4484
|
}
|
|
4485
4485
|
};
|
|
4486
4486
|
}
|
|
@@ -4575,29 +4575,29 @@ function _o(e) {
|
|
|
4575
4575
|
}
|
|
4576
4576
|
function xo(e, t, n) {
|
|
4577
4577
|
let r, i, o;
|
|
4578
|
-
Vn(e, io, (
|
|
4579
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session:
|
|
4578
|
+
Vn(e, io, (c) => n(19, o = c));
|
|
4579
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: f } = t, { translationurl: d } = t, { templateid: y } = t, m = [], g = !0, E = null, S = 0, M = "", I = "", D = !1, P = !1, N = "", ee = "", q = "", se = !1, pe = !1, ae = !1, B = "", U = {}, W = null, de = !1, me = !1, ge = "", Q, Ie, J = [], z = null, te = 0, be = !1, Ee = !1;
|
|
4580
4580
|
const _e = { SMS: "sms", EMAIL: "email" }, le = {
|
|
4581
4581
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
4582
4582
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
4583
4583
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
4584
4584
|
};
|
|
4585
|
-
Object.keys(qt).forEach((
|
|
4586
|
-
Zt(
|
|
4585
|
+
Object.keys(qt).forEach((c) => {
|
|
4586
|
+
Zt(c, qt[c]);
|
|
4587
4587
|
});
|
|
4588
4588
|
const Y = () => {
|
|
4589
4589
|
oo(l);
|
|
4590
4590
|
}, $ = () => {
|
|
4591
|
-
fetch(d).then((
|
|
4592
|
-
Object.keys(
|
|
4593
|
-
Zt(_,
|
|
4591
|
+
fetch(d).then((c) => c.json()).then((c) => {
|
|
4592
|
+
Object.keys(c).forEach((_) => {
|
|
4593
|
+
Zt(_, c[_]);
|
|
4594
4594
|
});
|
|
4595
|
-
}).catch((
|
|
4596
|
-
console.log(
|
|
4595
|
+
}).catch((c) => {
|
|
4596
|
+
console.log(c);
|
|
4597
4597
|
});
|
|
4598
|
-
}, Ne = async (
|
|
4599
|
-
if (
|
|
4600
|
-
if (n(7, P = !1), n(6, D = !1), n(8, N = ""), ee =
|
|
4598
|
+
}, Ne = async (c) => {
|
|
4599
|
+
if (c.detail?.["x-step-up-required"]) {
|
|
4600
|
+
if (n(7, P = !1), n(6, D = !1), n(8, N = ""), ee = c.detail["x-step-up-token"], q = c.detail.flow, !ee || !q) {
|
|
4601
4601
|
n(3, g = !1), n(7, P = !0), n(8, N = o("configError"));
|
|
4602
4602
|
return;
|
|
4603
4603
|
}
|
|
@@ -4607,10 +4607,10 @@ function xo(e, t, n) {
|
|
|
4607
4607
|
z && (clearInterval(z), z = null), W && (clearInterval(W), W = null), n(6, D = !1), n(7, P = !1), n(8, N = ""), n(10, pe = !1), n(2, m = []), n(4, E = null), n(3, g = !0), n(0, B = ""), n(12, de = !1), n(38, U = {});
|
|
4608
4608
|
}, V = () => {
|
|
4609
4609
|
he();
|
|
4610
|
-
}, Re = () => new Promise((
|
|
4610
|
+
}, Re = () => new Promise((c, _) => {
|
|
4611
4611
|
const x = new URL(`${h}/api/pam/v1/mfa/challenge/${ee}`), X = new Headers();
|
|
4612
|
-
X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${
|
|
4613
|
-
const
|
|
4612
|
+
X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${f}`), n(16, Ee = !0);
|
|
4613
|
+
const at = {
|
|
4614
4614
|
method: "PATCH",
|
|
4615
4615
|
headers: X,
|
|
4616
4616
|
body: JSON.stringify({
|
|
@@ -4618,90 +4618,90 @@ function xo(e, t, n) {
|
|
|
4618
4618
|
templateId: y
|
|
4619
4619
|
})
|
|
4620
4620
|
};
|
|
4621
|
-
fetch(x,
|
|
4622
|
-
n(15, be = !1), C(), rt(),
|
|
4621
|
+
fetch(x, at).then((Mt) => Mt.json()).then(() => {
|
|
4622
|
+
n(15, be = !1), C(), rt(), c();
|
|
4623
4623
|
}).catch((Mt) => {
|
|
4624
4624
|
_();
|
|
4625
4625
|
});
|
|
4626
4626
|
}), ce = () => {
|
|
4627
4627
|
W && clearInterval(W), W = setInterval(
|
|
4628
4628
|
() => {
|
|
4629
|
-
const
|
|
4629
|
+
const c = { ...U };
|
|
4630
4630
|
let _ = !1;
|
|
4631
|
-
Object.keys(
|
|
4632
|
-
|
|
4633
|
-
}), n(38, U =
|
|
4631
|
+
Object.keys(c).forEach((x) => {
|
|
4632
|
+
c[x] > 0 && (c[x]--, _ = !0);
|
|
4633
|
+
}), n(38, U = c), !_ && W && (clearInterval(W), W = null);
|
|
4634
4634
|
},
|
|
4635
4635
|
1e3
|
|
4636
4636
|
);
|
|
4637
|
-
}, G = (
|
|
4638
|
-
n(0, B =
|
|
4637
|
+
}, G = (c) => {
|
|
4638
|
+
n(0, B = c);
|
|
4639
4639
|
}, b = async () => {
|
|
4640
4640
|
if (!(!B || U[B] && U[B] > 0)) {
|
|
4641
4641
|
n(3, g = !0), y && y.startsWith("2fa-") && n(30, y = `2fa-${B}`);
|
|
4642
4642
|
try {
|
|
4643
|
-
await Re(), await
|
|
4643
|
+
await Re(), await st(), n(38, U = {
|
|
4644
4644
|
...U,
|
|
4645
4645
|
[B]: 30
|
|
4646
4646
|
}), ce(), n(12, de = !0), C(), rt();
|
|
4647
|
-
} catch (
|
|
4648
|
-
console.error("Error submitting channel:",
|
|
4647
|
+
} catch (c) {
|
|
4648
|
+
console.error("Error submitting channel:", c), n(6, D = !0), n(8, N = o("submissionError"));
|
|
4649
4649
|
} finally {
|
|
4650
4650
|
n(3, g = !1);
|
|
4651
4651
|
}
|
|
4652
4652
|
}
|
|
4653
4653
|
}, C = () => {
|
|
4654
|
-
const
|
|
4655
|
-
te =
|
|
4656
|
-
const ke = Date.now(),
|
|
4657
|
-
n(5, S =
|
|
4654
|
+
const c = new Date(M), _ = new Date(I), x = /* @__PURE__ */ new Date(), X = _.getTime() - x.getTime();
|
|
4655
|
+
te = c.getTime() - X;
|
|
4656
|
+
const ke = Date.now(), at = Math.max(0, Math.floor((te - ke) / 1e3));
|
|
4657
|
+
n(5, S = at);
|
|
4658
4658
|
}, rt = () => {
|
|
4659
4659
|
z && clearInterval(z), z = setInterval(
|
|
4660
4660
|
() => {
|
|
4661
|
-
const
|
|
4661
|
+
const c = Date.now(), _ = Math.max(0, Math.floor((te - c) / 1e3));
|
|
4662
4662
|
n(5, S = _), n(11, ae = _ <= 0), _ <= 0 && (clearInterval(z), z = null, n(9, se = !0), n(6, D = !1), n(10, pe = !1));
|
|
4663
4663
|
},
|
|
4664
4664
|
1e3
|
|
4665
4665
|
);
|
|
4666
|
-
}, An = (
|
|
4667
|
-
const _ = Math.floor(
|
|
4666
|
+
}, An = (c) => {
|
|
4667
|
+
const _ = Math.floor(c / 60), x = c % 60;
|
|
4668
4668
|
return `${_.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
|
|
4669
|
-
}, it = (
|
|
4669
|
+
}, it = (c, _) => {
|
|
4670
4670
|
const x = [...m];
|
|
4671
|
-
x[
|
|
4672
|
-
}, Bn = (
|
|
4673
|
-
|
|
4674
|
-
const x = (
|
|
4675
|
-
n(2, m = [...x, ...Array(E.inputLength - x.length).fill("")]), J[x.length]?.focus(), x.length === E.inputLength &&
|
|
4676
|
-
},
|
|
4677
|
-
const x =
|
|
4671
|
+
x[c] = _.toUpperCase(), n(2, m = x), x.join("") !== ge && n(13, me = !1);
|
|
4672
|
+
}, Bn = (c) => {
|
|
4673
|
+
c.preventDefault();
|
|
4674
|
+
const x = (c.clipboardData?.getData("text")?.trim() || "").slice(0, E.inputLength).split("");
|
|
4675
|
+
n(2, m = [...x, ...Array(E.inputLength - x.length).fill("")]), J[x.length]?.focus(), x.length === E.inputLength && ot();
|
|
4676
|
+
}, At = (c, _) => {
|
|
4677
|
+
const x = c.target, X = x.value;
|
|
4678
4678
|
/^[a-z0-9]$/i.test(X) && (it(_, X), J[_ + 1]?.focus()), x.value = "";
|
|
4679
|
-
},
|
|
4680
|
-
const x =
|
|
4679
|
+
}, Bt = (c, _) => {
|
|
4680
|
+
const x = c.key, X = c.ctrlKey || c.metaKey;
|
|
4681
4681
|
if (/^[a-z0-9]$/i.test(x)) {
|
|
4682
4682
|
if (X && x.toLowerCase() === "v")
|
|
4683
4683
|
return;
|
|
4684
|
-
|
|
4684
|
+
c.preventDefault(), it(_, x), J[_ + 1]?.focus();
|
|
4685
4685
|
} else
|
|
4686
|
-
x === "Backspace"
|
|
4686
|
+
x === "Backspace" ? (c.preventDefault(), m[_] !== "" && it(_, ""), J[_ - 1]?.focus()) : x === "Enter" && (c.preventDefault(), ot());
|
|
4687
4687
|
}, Mn = () => {
|
|
4688
4688
|
q == "stateful" && (Re(), n(9, se = !1));
|
|
4689
|
-
const
|
|
4690
|
-
window.dispatchEvent(
|
|
4691
|
-
}, Pn = (
|
|
4689
|
+
const c = new CustomEvent("otpResendRequested");
|
|
4690
|
+
window.dispatchEvent(c);
|
|
4691
|
+
}, Pn = (c) => {
|
|
4692
4692
|
window.dispatchEvent(new CustomEvent(
|
|
4693
4693
|
"otpSubmitted",
|
|
4694
4694
|
{
|
|
4695
4695
|
detail: {
|
|
4696
|
-
code:
|
|
4696
|
+
code: c,
|
|
4697
4697
|
maxAttempts: E.maxValidationAttempts,
|
|
4698
4698
|
validatedAttempts: E.numberOfValidateAttempts
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
4701
|
));
|
|
4702
|
-
}, Ln = async (
|
|
4702
|
+
}, Ln = async (c) => {
|
|
4703
4703
|
const _ = new URL(`/api/nwa/api/v1/mfa/challenge/${ee}/validate`, h);
|
|
4704
|
-
_.searchParams.append("input",
|
|
4704
|
+
_.searchParams.append("input", c);
|
|
4705
4705
|
try {
|
|
4706
4706
|
const x = await fetch(_.href, { method: "POST" });
|
|
4707
4707
|
if (x.status === 200) {
|
|
@@ -4711,7 +4711,7 @@ function xo(e, t, n) {
|
|
|
4711
4711
|
const X = await x.json();
|
|
4712
4712
|
throw new Error(X.message);
|
|
4713
4713
|
} catch (x) {
|
|
4714
|
-
if (await
|
|
4714
|
+
if (await st(), x.message === le.INTERNAL_SERVER_ERROR) {
|
|
4715
4715
|
if (E.numberOfValidateAttempts === E.maxValidationAttempts - 1) {
|
|
4716
4716
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
4717
4717
|
{
|
|
@@ -4725,7 +4725,7 @@ function xo(e, t, n) {
|
|
|
4725
4725
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4726
4726
|
return;
|
|
4727
4727
|
}
|
|
4728
|
-
n(6, D = !0), n(8, N = o("invalidOtp")),
|
|
4728
|
+
n(6, D = !0), n(8, N = o("invalidOtp")), st();
|
|
4729
4729
|
return;
|
|
4730
4730
|
}
|
|
4731
4731
|
x.message === le.MAX_INVALIDATE && (n(6, D = !0), n(8, N = o("invalidOtp"))), x.details === le.MAX_ATTEMPTS_EXCEEDED && n(15, be = !0), console.error("OTP submission failed:", x), n(6, D = !0), n(8, N = o("submissionError"));
|
|
@@ -4743,18 +4743,18 @@ function xo(e, t, n) {
|
|
|
4743
4743
|
));
|
|
4744
4744
|
}, Nn = () => {
|
|
4745
4745
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4746
|
-
},
|
|
4746
|
+
}, ot = async () => {
|
|
4747
4747
|
if (m.join("").length !== E.inputLength) {
|
|
4748
4748
|
n(6, D = !0), n(8, N = o("invalidOtp"));
|
|
4749
4749
|
return;
|
|
4750
4750
|
}
|
|
4751
|
-
const
|
|
4752
|
-
n(13, me = !0), ge =
|
|
4753
|
-
},
|
|
4751
|
+
const c = m.join("");
|
|
4752
|
+
n(13, me = !0), ge = c, n(3, g = !0), n(6, D = !1), n(8, N = ""), q === "stateless" && Pn(c), q === "stateful" && await Ln(c);
|
|
4753
|
+
}, st = async () => {
|
|
4754
4754
|
if (h)
|
|
4755
4755
|
try {
|
|
4756
4756
|
n(3, g = !0);
|
|
4757
|
-
const
|
|
4757
|
+
const c = new URL(`/api/nwa/api/v1/mfa/challenge/${ee}/config`, h), _ = await fetch(c.href), x = await _.json();
|
|
4758
4758
|
if (_.ok)
|
|
4759
4759
|
n(4, E = x), n(2, m = Array(E.inputLength).fill("")), n(9, se = !1), M = E.expirationTime, I = E.serverTime, E.numberOfValidateAttempts !== 0 && (n(6, D = !0), n(8, N = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && n(10, pe = !0), n(3, g = !1), C(), rt(), n(16, Ee = !1);
|
|
4760
4760
|
else if (x && x.details === le.MAX_ATTEMPTS_EXCEEDED)
|
|
@@ -4763,27 +4763,27 @@ function xo(e, t, n) {
|
|
|
4763
4763
|
const X = x && x.message || `Failed to load config. Status: ${_.status}`;
|
|
4764
4764
|
throw new Error(X);
|
|
4765
4765
|
}
|
|
4766
|
-
} catch (
|
|
4767
|
-
n(3, g = !1), n(7, P = !0), n(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:",
|
|
4766
|
+
} catch (c) {
|
|
4767
|
+
n(3, g = !1), n(7, P = !0), n(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", c);
|
|
4768
4768
|
}
|
|
4769
4769
|
};
|
|
4770
4770
|
Yn(() => (window.addEventListener("stepUpAuthRequired", Ne, !1), window.addEventListener("closePopup", V, !1), () => {
|
|
4771
4771
|
window.removeEventListener("stepUpAuthRequired", Ne), window.removeEventListener("closePopup", V, !1), z && clearInterval(z), W && clearInterval(W);
|
|
4772
4772
|
}));
|
|
4773
4773
|
const Rn = () => G(_e.SMS), kn = () => G(_e.EMAIL);
|
|
4774
|
-
function Dn(
|
|
4775
|
-
Ze[
|
|
4776
|
-
J[_] =
|
|
4774
|
+
function Dn(c, _) {
|
|
4775
|
+
Ze[c ? "unshift" : "push"](() => {
|
|
4776
|
+
J[_] = c, n(14, J);
|
|
4777
4777
|
});
|
|
4778
4778
|
}
|
|
4779
|
-
const Un = (
|
|
4780
|
-
function Fn(
|
|
4781
|
-
Ze[
|
|
4782
|
-
Q =
|
|
4779
|
+
const Un = (c, _) => At(_, c), Gn = (c, _) => Bt(_, c);
|
|
4780
|
+
function Fn(c) {
|
|
4781
|
+
Ze[c ? "unshift" : "push"](() => {
|
|
4782
|
+
Q = c, n(1, Q);
|
|
4783
4783
|
});
|
|
4784
4784
|
}
|
|
4785
|
-
return e.$$set = (
|
|
4786
|
-
"clientstyling" in
|
|
4785
|
+
return e.$$set = (c) => {
|
|
4786
|
+
"clientstyling" in c && n(31, a = c.clientstyling), "clientstylingurl" in c && n(32, s = c.clientstylingurl), "mbsource" in c && n(33, u = c.mbsource), "lang" in c && n(34, l = c.lang), "endpoint" in c && n(35, h = c.endpoint), "session" in c && n(36, f = c.session), "translationurl" in c && n(37, d = c.translationurl), "templateid" in c && n(30, y = c.templateid);
|
|
4787
4787
|
}, e.$$.update = () => {
|
|
4788
4788
|
e.$$.dirty[0] & /*customStylingContainer*/
|
|
4789
4789
|
2 | e.$$.dirty[1] & /*clientstyling*/
|
|
@@ -4824,18 +4824,18 @@ function xo(e, t, n) {
|
|
|
4824
4824
|
b,
|
|
4825
4825
|
An,
|
|
4826
4826
|
Bn,
|
|
4827
|
-
Ct,
|
|
4828
4827
|
At,
|
|
4828
|
+
Bt,
|
|
4829
4829
|
Mn,
|
|
4830
4830
|
Nn,
|
|
4831
|
-
|
|
4831
|
+
ot,
|
|
4832
4832
|
y,
|
|
4833
4833
|
a,
|
|
4834
4834
|
s,
|
|
4835
4835
|
u,
|
|
4836
4836
|
l,
|
|
4837
4837
|
h,
|
|
4838
|
-
|
|
4838
|
+
f,
|
|
4839
4839
|
d,
|
|
4840
4840
|
U,
|
|
4841
4841
|
Rn,
|