@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
|
@@ -2,15 +2,15 @@ var Zn = Object.defineProperty, qn = Object.defineProperties;
|
|
|
2
2
|
var Qn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var kt = Object.getOwnPropertySymbols;
|
|
4
4
|
var Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var ct = (e, t, n) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, We = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
Jn.call(t, n) &&
|
|
7
|
+
Jn.call(t, n) && ct(e, n, t[n]);
|
|
8
8
|
if (kt)
|
|
9
9
|
for (var n of kt(t))
|
|
10
|
-
Yn.call(t, n) &&
|
|
10
|
+
Yn.call(t, n) && ct(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var ee = (e, t, n) => (
|
|
12
|
+
}, ft = (e, t) => qn(e, Qn(t));
|
|
13
|
+
var ee = (e, t, n) => (ct(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var Ee = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
@@ -38,7 +38,7 @@ function Dt() {
|
|
|
38
38
|
function _e(e) {
|
|
39
39
|
e.forEach(an);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Mt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function ln(e, t) {
|
|
@@ -151,14 +151,14 @@ function ur(e) {
|
|
|
151
151
|
const Ce = [], Ye = [];
|
|
152
152
|
let Be = [];
|
|
153
153
|
const Ut = [], hr = /* @__PURE__ */ Promise.resolve();
|
|
154
|
-
let
|
|
154
|
+
let Et = !1;
|
|
155
155
|
function cr() {
|
|
156
|
-
|
|
156
|
+
Et || (Et = !0, hr.then(se));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function _t(e) {
|
|
159
159
|
Be.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
161
|
+
const pt = /* @__PURE__ */ new Set();
|
|
162
162
|
let Oe = 0;
|
|
163
163
|
function se() {
|
|
164
164
|
if (Oe !== 0)
|
|
@@ -177,19 +177,19 @@ function se() {
|
|
|
177
177
|
Ye.pop()();
|
|
178
178
|
for (let t = 0; t < Be.length; t += 1) {
|
|
179
179
|
const n = Be[t];
|
|
180
|
-
|
|
180
|
+
pt.has(n) || (pt.add(n), n());
|
|
181
181
|
}
|
|
182
182
|
Be.length = 0;
|
|
183
183
|
} while (Ce.length);
|
|
184
184
|
for (; Ut.length; )
|
|
185
185
|
Ut.pop()();
|
|
186
|
-
|
|
186
|
+
Et = !1, pt.clear(), je(e);
|
|
187
187
|
}
|
|
188
188
|
function fr(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
190
|
e.update(), _e(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_t);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function pr(e) {
|
|
@@ -205,10 +205,10 @@ function Gt(e) {
|
|
|
205
205
|
}
|
|
206
206
|
function gr(e, t, n) {
|
|
207
207
|
const { fragment: r, after_update: i } = e.$$;
|
|
208
|
-
r && r.m(t, n),
|
|
209
|
-
const o = e.$$.on_mount.map(an).filter(
|
|
208
|
+
r && r.m(t, n), _t(() => {
|
|
209
|
+
const o = e.$$.on_mount.map(an).filter(Mt);
|
|
210
210
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : _e(o), e.$$.on_mount = [];
|
|
211
|
-
}), i.forEach(
|
|
211
|
+
}), i.forEach(_t);
|
|
212
212
|
}
|
|
213
213
|
function br(e, t) {
|
|
214
214
|
const n = e.$$;
|
|
@@ -243,13 +243,13 @@ function yr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
243
243
|
};
|
|
244
244
|
a && a(l.root);
|
|
245
245
|
let h = !1;
|
|
246
|
-
if (l.ctx = n ? n(e, t.props || {}, (
|
|
246
|
+
if (l.ctx = n ? n(e, t.props || {}, (f, d, ...y) => {
|
|
247
247
|
const m = y.length ? y[0] : d;
|
|
248
|
-
return l.ctx && i(l.ctx[
|
|
248
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), h && vr(e, f)), d;
|
|
249
249
|
}) : [], l.update(), h = !0, _e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const
|
|
252
|
-
l.fragment && l.fragment.l(
|
|
251
|
+
const f = sr(t.target);
|
|
252
|
+
l.fragment && l.fragment.l(f), f.forEach(H);
|
|
253
253
|
} else
|
|
254
254
|
l.fragment && l.fragment.c();
|
|
255
255
|
t.intro && mr(e.$$.fragment), gr(e, t.target, t.anchor), se();
|
|
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (hn = class extends HTMLElement {
|
|
|
329
329
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props:
|
|
332
|
+
props: ft(We({}, this.$$d), {
|
|
333
333
|
$$slots: n,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
@@ -468,7 +468,7 @@ class _r {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, n) {
|
|
471
|
-
if (!
|
|
471
|
+
if (!Mt(n))
|
|
472
472
|
return te;
|
|
473
473
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return r.push(n), () => {
|
|
@@ -579,13 +579,13 @@ function Ne(e, t, n) {
|
|
|
579
579
|
return Cr(n, (a, s) => {
|
|
580
580
|
let u = !1;
|
|
581
581
|
const l = [];
|
|
582
|
-
let h = 0,
|
|
582
|
+
let h = 0, f = te;
|
|
583
583
|
const d = () => {
|
|
584
584
|
if (h)
|
|
585
585
|
return;
|
|
586
|
-
|
|
586
|
+
f();
|
|
587
587
|
const m = t(r ? l[0] : l, a, s);
|
|
588
|
-
o ? a(m) :
|
|
588
|
+
o ? a(m) : f = Mt(m) ? m : te;
|
|
589
589
|
}, y = i.map(
|
|
590
590
|
(m, g) => un(
|
|
591
591
|
m,
|
|
@@ -598,7 +598,7 @@ function Ne(e, t, n) {
|
|
|
598
598
|
)
|
|
599
599
|
);
|
|
600
600
|
return u = !0, d(), function() {
|
|
601
|
-
_e(y),
|
|
601
|
+
_e(y), f(), u = !1;
|
|
602
602
|
};
|
|
603
603
|
});
|
|
604
604
|
}
|
|
@@ -676,18 +676,18 @@ Me.all = function(t, n) {
|
|
|
676
676
|
};
|
|
677
677
|
var jr = Me, Vr = jr;
|
|
678
678
|
const zr = /* @__PURE__ */ Ar(Vr);
|
|
679
|
-
var
|
|
680
|
-
return
|
|
679
|
+
var xt = function(e, t) {
|
|
680
|
+
return xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
681
681
|
n.__proto__ = r;
|
|
682
682
|
} || function(n, r) {
|
|
683
683
|
for (var i in r)
|
|
684
684
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
685
|
-
},
|
|
685
|
+
}, xt(e, t);
|
|
686
686
|
};
|
|
687
687
|
function rt(e, t) {
|
|
688
688
|
if (typeof t != "function" && t !== null)
|
|
689
689
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
690
|
-
|
|
690
|
+
xt(e, t);
|
|
691
691
|
function n() {
|
|
692
692
|
this.constructor = e;
|
|
693
693
|
}
|
|
@@ -712,13 +712,13 @@ function $r(e, t) {
|
|
|
712
712
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
713
713
|
return n;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function dt(e, t, n) {
|
|
716
716
|
if (n || arguments.length === 2)
|
|
717
717
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
718
718
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
719
719
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function mt(e, t) {
|
|
722
722
|
var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
|
|
723
723
|
return i(e, {
|
|
724
724
|
cache: n,
|
|
@@ -764,7 +764,7 @@ var Qr = function() {
|
|
|
764
764
|
create: function() {
|
|
765
765
|
return new Jr();
|
|
766
766
|
}
|
|
767
|
-
},
|
|
767
|
+
}, gt = {
|
|
768
768
|
variadic: qr
|
|
769
769
|
}, Ke = function() {
|
|
770
770
|
return Ke = Object.assign || function(t) {
|
|
@@ -818,7 +818,7 @@ function yn(e) {
|
|
|
818
818
|
function En(e) {
|
|
819
819
|
return !!(e && typeof e == "object" && e.type === Pe.number);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function wt(e) {
|
|
822
822
|
return !!(e && typeof e == "object" && e.type === Pe.dateTime);
|
|
823
823
|
}
|
|
824
824
|
var _n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[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;
|
|
@@ -934,8 +934,8 @@ function ii(e) {
|
|
|
934
934
|
if (a.length === 0)
|
|
935
935
|
throw new Error("Invalid number skeleton");
|
|
936
936
|
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
937
|
-
var
|
|
938
|
-
if (
|
|
937
|
+
var f = h[l];
|
|
938
|
+
if (f.length === 0)
|
|
939
939
|
throw new Error("Invalid number skeleton");
|
|
940
940
|
}
|
|
941
941
|
n.push({ stem: s, options: u });
|
|
@@ -1096,11 +1096,11 @@ function li(e) {
|
|
|
1096
1096
|
case "integer-width":
|
|
1097
1097
|
if (i.options.length > 1)
|
|
1098
1098
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1099
|
-
i.options[0].replace(si, function(u, l, h,
|
|
1099
|
+
i.options[0].replace(si, function(u, l, h, f, d, y) {
|
|
1100
1100
|
if (l)
|
|
1101
1101
|
t.minimumIntegerDigits = h.length;
|
|
1102
1102
|
else {
|
|
1103
|
-
if (
|
|
1103
|
+
if (f && d)
|
|
1104
1104
|
throw new Error("We currently do not support maximum integer digits");
|
|
1105
1105
|
if (y)
|
|
1106
1106
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1116,8 +1116,8 @@ function li(e) {
|
|
|
1116
1116
|
if (Vt.test(i.stem)) {
|
|
1117
1117
|
if (i.options.length > 1)
|
|
1118
1118
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1119
|
-
i.stem.replace(Vt, function(u, l, h,
|
|
1120
|
-
return h === "*" ? t.minimumFractionDigits = l.length :
|
|
1119
|
+
i.stem.replace(Vt, function(u, l, h, f, d, y) {
|
|
1120
|
+
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), "";
|
|
1121
1121
|
});
|
|
1122
1122
|
var o = i.options[0];
|
|
1123
1123
|
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), zt(o)));
|
|
@@ -2587,18 +2587,18 @@ function hi(e) {
|
|
|
2587
2587
|
var i = Ze[r || ""] || Ze[n || ""] || Ze["".concat(n, "-001")] || Ze["001"];
|
|
2588
2588
|
return i[0];
|
|
2589
2589
|
}
|
|
2590
|
-
var
|
|
2590
|
+
var bt, ci = new RegExp("^".concat(_n.source, "*")), fi = new RegExp("".concat(_n.source, "*$"));
|
|
2591
2591
|
function T(e, t) {
|
|
2592
2592
|
return { start: e, end: t };
|
|
2593
2593
|
}
|
|
2594
2594
|
var pi = !!String.prototype.startsWith && "_a".startsWith("a", 1), di = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, yi = !!Number.isSafeInteger, Ei = yi ? Number.isSafeInteger : function(e) {
|
|
2595
2595
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2596
|
-
},
|
|
2596
|
+
}, St = !0;
|
|
2597
2597
|
try {
|
|
2598
2598
|
var _i = On("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2599
|
-
|
|
2599
|
+
St = ((bt = _i.exec("a")) === null || bt === void 0 ? void 0 : bt[0]) === "a";
|
|
2600
2600
|
} catch (e) {
|
|
2601
|
-
|
|
2601
|
+
St = !1;
|
|
2602
2602
|
}
|
|
2603
2603
|
var Xt = pi ? (
|
|
2604
2604
|
// Native
|
|
@@ -2610,7 +2610,7 @@ var Xt = pi ? (
|
|
|
2610
2610
|
function(t, n, r) {
|
|
2611
2611
|
return t.slice(r, r + n.length) === n;
|
|
2612
2612
|
}
|
|
2613
|
-
),
|
|
2613
|
+
), Tt = di ? String.fromCodePoint : (
|
|
2614
2614
|
// IE11
|
|
2615
2615
|
function() {
|
|
2616
2616
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2672,24 +2672,24 @@ var Xt = pi ? (
|
|
|
2672
2672
|
function On(e, t) {
|
|
2673
2673
|
return new RegExp(e, t);
|
|
2674
2674
|
}
|
|
2675
|
-
var
|
|
2676
|
-
if (
|
|
2675
|
+
var Ot;
|
|
2676
|
+
if (St) {
|
|
2677
2677
|
var Zt = On("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2678
|
-
|
|
2678
|
+
Ot = function(t, n) {
|
|
2679
2679
|
var r;
|
|
2680
2680
|
Zt.lastIndex = n;
|
|
2681
2681
|
var i = Zt.exec(t);
|
|
2682
2682
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2683
2683
|
};
|
|
2684
2684
|
} else
|
|
2685
|
-
|
|
2685
|
+
Ot = function(t, n) {
|
|
2686
2686
|
for (var r = []; ; ) {
|
|
2687
2687
|
var i = Tn(t, n);
|
|
2688
2688
|
if (i === void 0 || Hn(i) || Hi(i))
|
|
2689
2689
|
break;
|
|
2690
2690
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2691
2691
|
}
|
|
2692
|
-
return
|
|
2692
|
+
return Tt.apply(void 0, r);
|
|
2693
2693
|
};
|
|
2694
2694
|
var Si = (
|
|
2695
2695
|
/** @class */
|
|
@@ -2722,7 +2722,7 @@ var Si = (
|
|
|
2722
2722
|
if (r)
|
|
2723
2723
|
break;
|
|
2724
2724
|
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2725
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2725
|
+
} else if (o === 60 && !this.ignoreTag && Ht(this.peek() || 0)) {
|
|
2726
2726
|
var a = this.parseTag(t, n);
|
|
2727
2727
|
if (a.err)
|
|
2728
2728
|
return a;
|
|
@@ -2755,7 +2755,7 @@ var Si = (
|
|
|
2755
2755
|
return o;
|
|
2756
2756
|
var a = o.val, s = this.clonePosition();
|
|
2757
2757
|
if (this.bumpIf("</")) {
|
|
2758
|
-
if (this.isEOF() || !
|
|
2758
|
+
if (this.isEOF() || !Ht(this.char()))
|
|
2759
2759
|
return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
|
|
2760
2760
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2761
2761
|
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2836,12 +2836,12 @@ var Si = (
|
|
|
2836
2836
|
n.push(r);
|
|
2837
2837
|
this.bump();
|
|
2838
2838
|
}
|
|
2839
|
-
return
|
|
2839
|
+
return Tt.apply(void 0, n);
|
|
2840
2840
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2841
2841
|
if (this.isEOF())
|
|
2842
2842
|
return null;
|
|
2843
2843
|
var r = this.char();
|
|
2844
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2844
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Tt(r));
|
|
2845
2845
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2846
2846
|
var r = this.clonePosition();
|
|
2847
2847
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2870,7 +2870,7 @@ var Si = (
|
|
|
2870
2870
|
return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
|
|
2871
2871
|
}
|
|
2872
2872
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2873
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2873
|
+
var t = this.clonePosition(), n = this.offset(), r = Ot(this.message, n), i = n + r.length;
|
|
2874
2874
|
this.bumpTo(i);
|
|
2875
2875
|
var o = this.clonePosition(), a = T(t, o);
|
|
2876
2876
|
return { value: r, location: a };
|
|
@@ -2886,10 +2886,10 @@ var Si = (
|
|
|
2886
2886
|
var l = null;
|
|
2887
2887
|
if (this.bumpIf(",")) {
|
|
2888
2888
|
this.bumpSpace();
|
|
2889
|
-
var h = this.clonePosition(),
|
|
2890
|
-
if (
|
|
2891
|
-
return
|
|
2892
|
-
var d = wi(
|
|
2889
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2890
|
+
if (f.err)
|
|
2891
|
+
return f;
|
|
2892
|
+
var d = wi(f.val);
|
|
2893
2893
|
if (d.length === 0)
|
|
2894
2894
|
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2895
2895
|
var y = T(h, this.clonePosition());
|
|
@@ -2902,9 +2902,9 @@ var Si = (
|
|
|
2902
2902
|
if (l && Xt(l == null ? void 0 : l.style, "::", 0)) {
|
|
2903
2903
|
var _ = xi(l.style.slice(2));
|
|
2904
2904
|
if (s === "number") {
|
|
2905
|
-
var
|
|
2906
|
-
return
|
|
2907
|
-
val: { type: L.number, value: r, location: g, style:
|
|
2905
|
+
var f = this.parseNumberSkeletonFromString(_, l.styleLocation);
|
|
2906
|
+
return f.err ? f : {
|
|
2907
|
+
val: { type: L.number, value: r, location: g, style: f.val },
|
|
2908
2908
|
err: null
|
|
2909
2909
|
};
|
|
2910
2910
|
} else {
|
|
@@ -2946,10 +2946,10 @@ var Si = (
|
|
|
2946
2946
|
if (!this.bumpIf(":"))
|
|
2947
2947
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
2948
2948
|
this.bumpSpace();
|
|
2949
|
-
var
|
|
2950
|
-
if (
|
|
2951
|
-
return
|
|
2952
|
-
this.bumpSpace(), D = this.parseIdentifierIfPossible(), P =
|
|
2949
|
+
var f = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2950
|
+
if (f.err)
|
|
2951
|
+
return f;
|
|
2952
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), P = f.val;
|
|
2953
2953
|
}
|
|
2954
2954
|
var N = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2955
2955
|
if (N.err)
|
|
@@ -3037,12 +3037,12 @@ var Si = (
|
|
|
3037
3037
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3038
3038
|
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3039
3039
|
if (l.length === 0) {
|
|
3040
|
-
var
|
|
3040
|
+
var f = this.clonePosition();
|
|
3041
3041
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3042
3042
|
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3043
3043
|
if (d.err)
|
|
3044
3044
|
return d;
|
|
3045
|
-
h = T(
|
|
3045
|
+
h = T(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3046
3046
|
} else
|
|
3047
3047
|
break;
|
|
3048
3048
|
}
|
|
@@ -3144,11 +3144,11 @@ var Si = (
|
|
|
3144
3144
|
}, e;
|
|
3145
3145
|
}()
|
|
3146
3146
|
);
|
|
3147
|
-
function
|
|
3147
|
+
function Ht(e) {
|
|
3148
3148
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3149
3149
|
}
|
|
3150
3150
|
function Ti(e) {
|
|
3151
|
-
return
|
|
3151
|
+
return Ht(e) || e === 47;
|
|
3152
3152
|
}
|
|
3153
3153
|
function Oi(e) {
|
|
3154
3154
|
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;
|
|
@@ -3159,13 +3159,13 @@ function Hn(e) {
|
|
|
3159
3159
|
function Hi(e) {
|
|
3160
3160
|
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;
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function Ct(e) {
|
|
3163
3163
|
e.forEach(function(t) {
|
|
3164
3164
|
if (delete t.location, bn(t) || vn(t))
|
|
3165
3165
|
for (var n in t.options)
|
|
3166
|
-
delete t.options[n].location,
|
|
3166
|
+
delete t.options[n].location, Ct(t.options[n].value);
|
|
3167
3167
|
else
|
|
3168
|
-
dn(t) && En(t.style) || (mn(t) || gn(t)) &&
|
|
3168
|
+
dn(t) && En(t.style) || (mn(t) || gn(t)) && wt(t.style) ? delete t.style.location : yn(t) && Ct(t.children);
|
|
3169
3169
|
});
|
|
3170
3170
|
}
|
|
3171
3171
|
function Ci(e, t) {
|
|
@@ -3175,7 +3175,7 @@ function Ci(e, t) {
|
|
|
3175
3175
|
var r = SyntaxError(w[n.err.kind]);
|
|
3176
3176
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3177
3177
|
}
|
|
3178
|
-
return t != null && t.captureLocation ||
|
|
3178
|
+
return t != null && t.captureLocation || Ct(n.val), n.val;
|
|
3179
3179
|
}
|
|
3180
3180
|
var Le;
|
|
3181
3181
|
(function(e) {
|
|
@@ -3257,10 +3257,10 @@ function Qe(e, t, n, r, i, o, a) {
|
|
|
3257
3257
|
});
|
|
3258
3258
|
continue;
|
|
3259
3259
|
}
|
|
3260
|
-
var
|
|
3261
|
-
if (!(i &&
|
|
3262
|
-
throw new Bi(
|
|
3263
|
-
var d = i[
|
|
3260
|
+
var f = h.value;
|
|
3261
|
+
if (!(i && f in i))
|
|
3262
|
+
throw new Bi(f, a);
|
|
3263
|
+
var d = i[f];
|
|
3264
3264
|
if (Kr(h)) {
|
|
3265
3265
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3266
3266
|
type: typeof d == "string" ? q.literal : q.object,
|
|
@@ -3269,7 +3269,7 @@ function Qe(e, t, n, r, i, o, a) {
|
|
|
3269
3269
|
continue;
|
|
3270
3270
|
}
|
|
3271
3271
|
if (mn(h)) {
|
|
3272
|
-
var y = typeof h.style == "string" ? r.date[h.style] :
|
|
3272
|
+
var y = typeof h.style == "string" ? r.date[h.style] : wt(h.style) ? h.style.parsedOptions : void 0;
|
|
3273
3273
|
s.push({
|
|
3274
3274
|
type: q.literal,
|
|
3275
3275
|
value: n.getDateTimeFormat(t, y).format(d)
|
|
@@ -3277,7 +3277,7 @@ function Qe(e, t, n, r, i, o, a) {
|
|
|
3277
3277
|
continue;
|
|
3278
3278
|
}
|
|
3279
3279
|
if (gn(h)) {
|
|
3280
|
-
var y = typeof h.style == "string" ? r.time[h.style] :
|
|
3280
|
+
var y = typeof h.style == "string" ? r.time[h.style] : wt(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3281
3281
|
s.push({
|
|
3282
3282
|
type: q.literal,
|
|
3283
3283
|
value: n.getDateTimeFormat(t, y).format(d)
|
|
@@ -3341,7 +3341,7 @@ function Ii(e, t) {
|
|
|
3341
3341
|
return n[r] = Li(e[r], t[r]), n;
|
|
3342
3342
|
}, ae({}, e)) : e;
|
|
3343
3343
|
}
|
|
3344
|
-
function
|
|
3344
|
+
function vt(e) {
|
|
3345
3345
|
return {
|
|
3346
3346
|
create: function() {
|
|
3347
3347
|
return {
|
|
@@ -3361,29 +3361,29 @@ function Ni(e) {
|
|
|
3361
3361
|
dateTime: {},
|
|
3362
3362
|
pluralRules: {}
|
|
3363
3363
|
}), {
|
|
3364
|
-
getNumberFormat:
|
|
3364
|
+
getNumberFormat: mt(function() {
|
|
3365
3365
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3366
3366
|
n[r] = arguments[r];
|
|
3367
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3367
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, dt([void 0], n, !1)))();
|
|
3368
3368
|
}, {
|
|
3369
|
-
cache:
|
|
3370
|
-
strategy:
|
|
3369
|
+
cache: vt(e.number),
|
|
3370
|
+
strategy: gt.variadic
|
|
3371
3371
|
}),
|
|
3372
|
-
getDateTimeFormat:
|
|
3372
|
+
getDateTimeFormat: mt(function() {
|
|
3373
3373
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3374
3374
|
n[r] = arguments[r];
|
|
3375
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3375
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, dt([void 0], n, !1)))();
|
|
3376
3376
|
}, {
|
|
3377
|
-
cache:
|
|
3378
|
-
strategy:
|
|
3377
|
+
cache: vt(e.dateTime),
|
|
3378
|
+
strategy: gt.variadic
|
|
3379
3379
|
}),
|
|
3380
|
-
getPluralRules:
|
|
3380
|
+
getPluralRules: mt(function() {
|
|
3381
3381
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3382
3382
|
n[r] = arguments[r];
|
|
3383
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3383
|
+
return new ((t = Intl.PluralRules).bind.apply(t, dt([void 0], n, !1)))();
|
|
3384
3384
|
}, {
|
|
3385
|
-
cache:
|
|
3386
|
-
strategy:
|
|
3385
|
+
cache: vt(e.pluralRules),
|
|
3386
|
+
strategy: gt.variadic
|
|
3387
3387
|
})
|
|
3388
3388
|
};
|
|
3389
3389
|
}
|
|
@@ -3401,8 +3401,8 @@ var Ri = (
|
|
|
3401
3401
|
var l = o.formatToParts(u);
|
|
3402
3402
|
if (l.length === 1)
|
|
3403
3403
|
return l[0].value;
|
|
3404
|
-
var h = l.reduce(function(
|
|
3405
|
-
return !
|
|
3404
|
+
var h = l.reduce(function(f, d) {
|
|
3405
|
+
return !f.length || d.type !== q.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
|
|
3406
3406
|
}, []);
|
|
3407
3407
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3408
3408
|
}, this.formatToParts = function(u) {
|
|
@@ -3532,13 +3532,13 @@ const de = {}, Di = (e, t, n) => n && (t in de || (de[t] = {}), e in de[t] || (d
|
|
|
3532
3532
|
return Di(e, t, o);
|
|
3533
3533
|
}
|
|
3534
3534
|
};
|
|
3535
|
-
let
|
|
3535
|
+
let Pt;
|
|
3536
3536
|
const Xe = nt({});
|
|
3537
3537
|
function Ui(e) {
|
|
3538
|
-
return
|
|
3538
|
+
return Pt[e] || null;
|
|
3539
3539
|
}
|
|
3540
3540
|
function An(e) {
|
|
3541
|
-
return e in
|
|
3541
|
+
return e in Pt;
|
|
3542
3542
|
}
|
|
3543
3543
|
function Gi(e, t) {
|
|
3544
3544
|
if (!An(e))
|
|
@@ -3563,7 +3563,7 @@ Ne(
|
|
|
3563
3563
|
[Xe],
|
|
3564
3564
|
([e]) => Object.keys(e)
|
|
3565
3565
|
);
|
|
3566
|
-
Xe.subscribe((e) =>
|
|
3566
|
+
Xe.subscribe((e) => Pt = e);
|
|
3567
3567
|
const Je = {};
|
|
3568
3568
|
function ji(e, t) {
|
|
3569
3569
|
Je[e].delete(t), Je[e].size === 0 && delete Je[e];
|
|
@@ -3577,7 +3577,7 @@ function Vi(e) {
|
|
|
3577
3577
|
return [t, n ? [...n] : []];
|
|
3578
3578
|
}).filter(([, t]) => t.length > 0);
|
|
3579
3579
|
}
|
|
3580
|
-
function
|
|
3580
|
+
function At(e) {
|
|
3581
3581
|
return e == null ? !1 : ot(e).some(
|
|
3582
3582
|
(t) => {
|
|
3583
3583
|
var n;
|
|
@@ -3592,7 +3592,7 @@ function zi(e, t) {
|
|
|
3592
3592
|
}
|
|
3593
3593
|
const Fe = {};
|
|
3594
3594
|
function Pn(e) {
|
|
3595
|
-
if (!
|
|
3595
|
+
if (!At(e))
|
|
3596
3596
|
return e in Fe ? Fe[e] : Promise.resolve();
|
|
3597
3597
|
const t = Vi(e);
|
|
3598
3598
|
return Fe[e] = Promise.all(
|
|
@@ -3600,7 +3600,7 @@ function Pn(e) {
|
|
|
3600
3600
|
([n, r]) => zi(n, r)
|
|
3601
3601
|
)
|
|
3602
3602
|
).then(() => {
|
|
3603
|
-
if (
|
|
3603
|
+
if (At(e))
|
|
3604
3604
|
return Pn(e);
|
|
3605
3605
|
delete Fe[e];
|
|
3606
3606
|
}), Fe[e];
|
|
@@ -3645,7 +3645,7 @@ const $i = {
|
|
|
3645
3645
|
function Ie() {
|
|
3646
3646
|
return Wi;
|
|
3647
3647
|
}
|
|
3648
|
-
const
|
|
3648
|
+
const yt = nt(!1);
|
|
3649
3649
|
var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Jt = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
|
|
3650
3650
|
for (var n in t || (t = {}))
|
|
3651
3651
|
Ji.call(t, n) && Jt(e, n, t[n]);
|
|
@@ -3654,7 +3654,7 @@ var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwn
|
|
|
3654
3654
|
Yi.call(t, n) && Jt(e, n, t[n]);
|
|
3655
3655
|
return e;
|
|
3656
3656
|
}, eo = (e, t) => qi(e, Qi(t));
|
|
3657
|
-
let
|
|
3657
|
+
let Bt;
|
|
3658
3658
|
const et = nt(null);
|
|
3659
3659
|
function Yt(e) {
|
|
3660
3660
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
@@ -3664,22 +3664,22 @@ function ot(e, t = Ie().fallbackLocale) {
|
|
|
3664
3664
|
return t ? [.../* @__PURE__ */ new Set([...n, ...Yt(t)])] : n;
|
|
3665
3665
|
}
|
|
3666
3666
|
function xe() {
|
|
3667
|
-
return
|
|
3667
|
+
return Bt != null ? Bt : void 0;
|
|
3668
3668
|
}
|
|
3669
3669
|
et.subscribe((e) => {
|
|
3670
|
-
|
|
3670
|
+
Bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3671
3671
|
});
|
|
3672
3672
|
const to = (e) => {
|
|
3673
|
-
if (e && Fi(e) &&
|
|
3673
|
+
if (e && Fi(e) && At(e)) {
|
|
3674
3674
|
const { loadingDelay: t } = Ie();
|
|
3675
3675
|
let n;
|
|
3676
3676
|
return typeof window != "undefined" && xe() != null && t ? n = window.setTimeout(
|
|
3677
|
-
() =>
|
|
3677
|
+
() => yt.set(!0),
|
|
3678
3678
|
t
|
|
3679
|
-
) :
|
|
3679
|
+
) : yt.set(!0), Pn(e).then(() => {
|
|
3680
3680
|
et.set(e);
|
|
3681
3681
|
}).finally(() => {
|
|
3682
|
-
clearTimeout(n),
|
|
3682
|
+
clearTimeout(n), yt.set(!1);
|
|
3683
3683
|
});
|
|
3684
3684
|
}
|
|
3685
3685
|
return et.set(e);
|
|
@@ -3692,7 +3692,7 @@ const to = (e) => {
|
|
|
3692
3692
|
return i in t ? t[i] : t[i] = e(r);
|
|
3693
3693
|
};
|
|
3694
3694
|
};
|
|
3695
|
-
var no = Object.defineProperty, tt = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, In = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
3695
|
+
var no = Object.defineProperty, tt = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, In = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
|
|
3696
3696
|
for (var n in t || (t = {}))
|
|
3697
3697
|
Ln.call(t, n) && Kt(e, n, t[n]);
|
|
3698
3698
|
if (tt)
|
|
@@ -3742,21 +3742,21 @@ const $e = (e, t) => {
|
|
|
3742
3742
|
} = t, r = ke(t, [
|
|
3743
3743
|
"locale"
|
|
3744
3744
|
]);
|
|
3745
|
-
return ro(
|
|
3745
|
+
return ro(Lt({ locale: n }, r));
|
|
3746
3746
|
}, ao = (e = {}) => {
|
|
3747
3747
|
var t = e, {
|
|
3748
3748
|
locale: n = xe()
|
|
3749
3749
|
} = t, r = ke(t, [
|
|
3750
3750
|
"locale"
|
|
3751
3751
|
]);
|
|
3752
|
-
return io(
|
|
3752
|
+
return io(Lt({ locale: n }, r));
|
|
3753
3753
|
}, lo = (e = {}) => {
|
|
3754
3754
|
var t = e, {
|
|
3755
3755
|
locale: n = xe()
|
|
3756
3756
|
} = t, r = ke(t, [
|
|
3757
3757
|
"locale"
|
|
3758
3758
|
]);
|
|
3759
|
-
return oo(
|
|
3759
|
+
return oo(Lt({ locale: n }, r));
|
|
3760
3760
|
}, uo = st(
|
|
3761
3761
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3762
3762
|
(e, t = xe()) => new Ri(e, t, Ie().formats, {
|
|
@@ -3784,16 +3784,16 @@ const $e = (e, t) => {
|
|
|
3784
3784
|
), h;
|
|
3785
3785
|
if (!s)
|
|
3786
3786
|
return h;
|
|
3787
|
-
let
|
|
3787
|
+
let f = h;
|
|
3788
3788
|
try {
|
|
3789
|
-
|
|
3789
|
+
f = uo(h, u).format(s);
|
|
3790
3790
|
} catch (d) {
|
|
3791
3791
|
d instanceof Error && console.warn(
|
|
3792
3792
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3793
3793
|
d.message
|
|
3794
3794
|
);
|
|
3795
3795
|
}
|
|
3796
|
-
return
|
|
3796
|
+
return f;
|
|
3797
3797
|
}, co = (e, t) => lo(t).format(e), fo = (e, t) => ao(t).format(e), po = (e, t) => so(t).format(e), mo = (e, t = xe()) => Cn(e, t), go = Ne([Re, Xe], () => ho);
|
|
3798
3798
|
Ne([Re], () => co);
|
|
3799
3799
|
Ne([Re], () => fo);
|
|
@@ -3953,7 +3953,7 @@ function nn(e, t, n) {
|
|
|
3953
3953
|
return r[69] = t[n], r[70] = t, r[71] = n, r;
|
|
3954
3954
|
}
|
|
3955
3955
|
function yo(e) {
|
|
3956
|
-
let t, n, r, i, o, a, s, u, l, h,
|
|
3956
|
+
let t, n, r, i, o, a, s, u, l, h, f, d, y, m, g, _, S, M = (
|
|
3957
3957
|
/*$_*/
|
|
3958
3958
|
e[19]("channelSMS") + ""
|
|
3959
3959
|
), I, D, P, N, ne, Q, le, me, ue, B, U, Z, ge, be, ve = (
|
|
@@ -4004,7 +4004,7 @@ function yo(e) {
|
|
|
4004
4004
|
let pe = Ge(e), F = pe && pe(e);
|
|
4005
4005
|
return {
|
|
4006
4006
|
c() {
|
|
4007
|
-
t = O("div"), K.c(), n = j(), r = O("div"), i = O("label"), o = O("div"), a = j(), s = O("input"), l = j(), h = O("div"),
|
|
4007
|
+
t = O("div"), K.c(), n = j(), r = O("div"), i = O("label"), o = O("div"), a = j(), s = O("input"), l = j(), h = O("div"), f = ie("svg"), d = ie("path"), y = ie("circle"), m = ie("circle"), g = ie("circle"), _ = j(), S = O("span"), I = k(M), D = j(), P = O("label"), N = O("div"), ne = j(), Q = O("input"), me = j(), ue = O("div"), B = ie("svg"), U = ie("rect"), Z = ie("path"), ge = j(), be = O("span"), J = k(ve), De = j(), W && W.c(), Y = j(), z && z.c(), X = j(), re = O("div"), F && F.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), oe(
|
|
4008
4008
|
o,
|
|
4009
4009
|
"checked",
|
|
4010
4010
|
/*selectedChannel*/
|
|
@@ -4013,7 +4013,7 @@ function yo(e) {
|
|
|
4013
4013
|
), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
|
|
4014
4014
|
e[20].SMS, s.checked = u = /*selectedChannel*/
|
|
4015
4015
|
e[0] === /*channels*/
|
|
4016
|
-
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(
|
|
4016
|
+
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"), oe(
|
|
4017
4017
|
i,
|
|
4018
4018
|
"selected",
|
|
4019
4019
|
/*selectedChannel*/
|
|
@@ -4037,7 +4037,7 @@ function yo(e) {
|
|
|
4037
4037
|
), p(r, "class", "ChannelSelection"), p(re, "class", "OtpActionButtons");
|
|
4038
4038
|
},
|
|
4039
4039
|
m(b, C) {
|
|
4040
|
-
A(b, t, C), K.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,
|
|
4040
|
+
A(b, t, C), K.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, _), v(h, S), v(S, I), v(r, D), v(r, P), v(P, N), v(P, ne), v(P, Q), v(P, me), v(P, ue), v(ue, B), v(B, U), v(B, Z), v(ue, ge), v(ue, be), v(be, J), A(b, De, C), W && W.m(b, C), A(b, Y, C), z && z.m(b, C), A(b, X, C), A(b, re, C), F && F.m(re, null), ye || (we = [
|
|
4041
4041
|
ce(
|
|
4042
4042
|
s,
|
|
4043
4043
|
"change",
|
|
@@ -4103,19 +4103,19 @@ function Eo(e) {
|
|
|
4103
4103
|
let t, n, r, i, o, a, s = (
|
|
4104
4104
|
/*$_*/
|
|
4105
4105
|
e[19]("errorHeader") + ""
|
|
4106
|
-
), u, l, h,
|
|
4106
|
+
), u, l, h, f, d, y, m = (
|
|
4107
4107
|
/*$_*/
|
|
4108
4108
|
e[19]("close") + ""
|
|
4109
4109
|
), g, _, S;
|
|
4110
4110
|
return {
|
|
4111
4111
|
c() {
|
|
4112
|
-
t = O("div"), n = O("div"), r = ie("svg"), i = ie("path"), o = j(), a = O("h2"), u = k(s), l = j(), h = O("p"),
|
|
4112
|
+
t = O("div"), n = O("div"), r = ie("svg"), i = ie("path"), o = j(), a = O("h2"), u = k(s), l = j(), h = O("p"), f = k(
|
|
4113
4113
|
/*errorMessage*/
|
|
4114
4114
|
e[8]
|
|
4115
4115
|
), d = j(), 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");
|
|
4116
4116
|
},
|
|
4117
4117
|
m(M, I) {
|
|
4118
|
-
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,
|
|
4118
|
+
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), _ || (S = ce(
|
|
4119
4119
|
y,
|
|
4120
4120
|
"click",
|
|
4121
4121
|
/*manualClosePopup*/
|
|
@@ -4127,7 +4127,7 @@ function Eo(e) {
|
|
|
4127
4127
|
524288 && s !== (s = /*$_*/
|
|
4128
4128
|
M[19]("errorHeader") + "") && V(u, s), I[0] & /*errorMessage*/
|
|
4129
4129
|
256 && V(
|
|
4130
|
-
|
|
4130
|
+
f,
|
|
4131
4131
|
/*errorMessage*/
|
|
4132
4132
|
M[8]
|
|
4133
4133
|
), I[0] & /*$_*/
|
|
@@ -4385,7 +4385,7 @@ function Co(e) {
|
|
|
4385
4385
|
), s, u, l = (
|
|
4386
4386
|
/*$_*/
|
|
4387
4387
|
e[19]("minutes") + ""
|
|
4388
|
-
), h,
|
|
4388
|
+
), h, f, d, y = Gt(
|
|
4389
4389
|
/*otp*/
|
|
4390
4390
|
e[2]
|
|
4391
4391
|
), m = [];
|
|
@@ -4393,13 +4393,13 @@ function Co(e) {
|
|
|
4393
4393
|
m[g] = sn(nn(e, y, g));
|
|
4394
4394
|
return {
|
|
4395
4395
|
c() {
|
|
4396
|
-
t = O("div"), n = O("div"), i = k(r), o = j(), s = k(a), u = j(), h = k(l),
|
|
4396
|
+
t = O("div"), n = O("div"), i = k(r), o = j(), s = k(a), u = j(), h = k(l), f = j(), d = O("div");
|
|
4397
4397
|
for (let g = 0; g < m.length; g += 1)
|
|
4398
4398
|
m[g].c();
|
|
4399
4399
|
p(n, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
|
|
4400
4400
|
},
|
|
4401
4401
|
m(g, _) {
|
|
4402
|
-
A(g, t, _), v(t, n), v(n, i), v(n, o), v(n, s), v(n, u), v(n, h), v(t,
|
|
4402
|
+
A(g, t, _), v(t, n), v(n, i), v(n, o), v(n, s), v(n, u), v(n, h), v(t, f), v(t, d);
|
|
4403
4403
|
for (let S = 0; S < m.length; S += 1)
|
|
4404
4404
|
m[S] && m[S].m(d, null);
|
|
4405
4405
|
},
|
|
@@ -4461,23 +4461,23 @@ function sn(e) {
|
|
|
4461
4461
|
/*input_binding*/
|
|
4462
4462
|
e[41](null, i)
|
|
4463
4463
|
);
|
|
4464
|
-
function l(...
|
|
4464
|
+
function l(...f) {
|
|
4465
4465
|
return (
|
|
4466
4466
|
/*input_handler*/
|
|
4467
4467
|
e[42](
|
|
4468
4468
|
/*index*/
|
|
4469
4469
|
e[71],
|
|
4470
|
-
...
|
|
4470
|
+
...f
|
|
4471
4471
|
)
|
|
4472
4472
|
);
|
|
4473
4473
|
}
|
|
4474
|
-
function h(...
|
|
4474
|
+
function h(...f) {
|
|
4475
4475
|
return (
|
|
4476
4476
|
/*keydown_handler*/
|
|
4477
4477
|
e[43](
|
|
4478
4478
|
/*index*/
|
|
4479
4479
|
e[71],
|
|
4480
|
-
...
|
|
4480
|
+
...f
|
|
4481
4481
|
)
|
|
4482
4482
|
);
|
|
4483
4483
|
}
|
|
@@ -4491,8 +4491,8 @@ function sn(e) {
|
|
|
4491
4491
|
e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
4492
4492
|
e[11], p(t, "autocomplete", "off");
|
|
4493
4493
|
},
|
|
4494
|
-
m(
|
|
4495
|
-
A(
|
|
4494
|
+
m(f, d) {
|
|
4495
|
+
A(f, t, d), s(), o || (a = [
|
|
4496
4496
|
ce(t, "input", l),
|
|
4497
4497
|
ce(t, "keydown", h),
|
|
4498
4498
|
ce(
|
|
@@ -4503,8 +4503,8 @@ function sn(e) {
|
|
|
4503
4503
|
)
|
|
4504
4504
|
], o = !0);
|
|
4505
4505
|
},
|
|
4506
|
-
p(
|
|
4507
|
-
e =
|
|
4506
|
+
p(f, d) {
|
|
4507
|
+
e = f, d[0] & /*config*/
|
|
4508
4508
|
16 && n !== (n = `otp-box ${/*config*/
|
|
4509
4509
|
e[4].inputLength % 2 === 0 && /*index*/
|
|
4510
4510
|
e[71] === /*config*/
|
|
@@ -4516,8 +4516,8 @@ function sn(e) {
|
|
|
4516
4516
|
e[71] && (u(), i = /*index*/
|
|
4517
4517
|
e[71], s());
|
|
4518
4518
|
},
|
|
4519
|
-
d(
|
|
4520
|
-
|
|
4519
|
+
d(f) {
|
|
4520
|
+
f && H(t), u(), o = !1, _e(a);
|
|
4521
4521
|
}
|
|
4522
4522
|
};
|
|
4523
4523
|
}
|
|
@@ -4612,30 +4612,30 @@ function Po(e) {
|
|
|
4612
4612
|
}
|
|
4613
4613
|
function Lo(e, t, n) {
|
|
4614
4614
|
let r, i, o;
|
|
4615
|
-
er(e, go, (
|
|
4616
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session:
|
|
4615
|
+
er(e, go, (c) => n(19, o = c));
|
|
4616
|
+
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, _ = null, S = 0, M = "", I = "", D = !1, P = !1, N = "", ne = "", Q = "", le = !1, me = !1, ue = !1, B = "", U = {}, Z = null, ge = !1, be = !1, ve = "", J, De, Y = [], X = null, re = 0, ye = !1, we = !1;
|
|
4617
4617
|
const Se = { SMS: "sms", EMAIL: "email" }, he = {
|
|
4618
4618
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
4619
4619
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
4620
4620
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
4621
4621
|
};
|
|
4622
|
-
Object.keys(tn).forEach((
|
|
4623
|
-
en(
|
|
4622
|
+
Object.keys(tn).forEach((c) => {
|
|
4623
|
+
en(c, tn[c]);
|
|
4624
4624
|
});
|
|
4625
4625
|
const K = () => {
|
|
4626
4626
|
bo(l);
|
|
4627
4627
|
}, W = () => {
|
|
4628
|
-
fetch(d).then((
|
|
4629
|
-
Object.keys(
|
|
4630
|
-
en(E,
|
|
4628
|
+
fetch(d).then((c) => c.json()).then((c) => {
|
|
4629
|
+
Object.keys(c).forEach((E) => {
|
|
4630
|
+
en(E, c[E]);
|
|
4631
4631
|
});
|
|
4632
|
-
}).catch((
|
|
4633
|
-
console.log(
|
|
4632
|
+
}).catch((c) => {
|
|
4633
|
+
console.log(c);
|
|
4634
4634
|
});
|
|
4635
|
-
}, Ue = (
|
|
4635
|
+
}, Ue = (c) => Ee(this, null, function* () {
|
|
4636
4636
|
var E;
|
|
4637
|
-
if ((E =
|
|
4638
|
-
if (n(7, P = !1), n(6, D = !1), n(8, N = ""), ne =
|
|
4637
|
+
if ((E = c.detail) != null && E["x-step-up-required"]) {
|
|
4638
|
+
if (n(7, P = !1), n(6, D = !1), n(8, N = ""), ne = c.detail["x-step-up-token"], Q = c.detail.flow, !ne || !Q) {
|
|
4639
4639
|
n(3, g = !1), n(7, P = !0), n(8, N = o("configError"));
|
|
4640
4640
|
return;
|
|
4641
4641
|
}
|
|
@@ -4645,9 +4645,9 @@ function Lo(e, t, n) {
|
|
|
4645
4645
|
X && (clearInterval(X), X = null), Z && (clearInterval(Z), Z = null), n(6, D = !1), n(7, P = !1), n(8, N = ""), n(10, me = !1), n(2, m = []), n(4, _ = null), n(3, g = !0), n(0, B = ""), n(12, ge = !1), n(38, U = {});
|
|
4646
4646
|
}, z = () => {
|
|
4647
4647
|
fe();
|
|
4648
|
-
}, Ge = () => new Promise((
|
|
4648
|
+
}, Ge = () => new Promise((c, E) => {
|
|
4649
4649
|
const x = new URL(`${h}/api/pam/v1/mfa/challenge/${ne}`), G = new Headers();
|
|
4650
|
-
G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-SessionId", `${
|
|
4650
|
+
G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-SessionId", `${f}`), n(16, we = !0);
|
|
4651
4651
|
const Te = {
|
|
4652
4652
|
method: "PATCH",
|
|
4653
4653
|
headers: G,
|
|
@@ -4657,99 +4657,100 @@ function Lo(e, t, n) {
|
|
|
4657
4657
|
})
|
|
4658
4658
|
};
|
|
4659
4659
|
fetch(x, Te).then((Rt) => Rt.json()).then(() => {
|
|
4660
|
-
n(15, ye = !1), C(), at(),
|
|
4660
|
+
n(15, ye = !1), C(), at(), c();
|
|
4661
4661
|
}).catch((Rt) => {
|
|
4662
4662
|
E();
|
|
4663
4663
|
});
|
|
4664
4664
|
}), pe = () => {
|
|
4665
4665
|
Z && clearInterval(Z), Z = setInterval(
|
|
4666
4666
|
() => {
|
|
4667
|
-
const
|
|
4667
|
+
const c = We({}, U);
|
|
4668
4668
|
let E = !1;
|
|
4669
|
-
Object.keys(
|
|
4670
|
-
|
|
4671
|
-
}), n(38, U =
|
|
4669
|
+
Object.keys(c).forEach((x) => {
|
|
4670
|
+
c[x] > 0 && (c[x]--, E = !0);
|
|
4671
|
+
}), n(38, U = c), !E && Z && (clearInterval(Z), Z = null);
|
|
4672
4672
|
},
|
|
4673
4673
|
1e3
|
|
4674
4674
|
);
|
|
4675
|
-
}, F = (
|
|
4676
|
-
n(0, B =
|
|
4675
|
+
}, F = (c) => {
|
|
4676
|
+
n(0, B = c);
|
|
4677
4677
|
}, b = () => Ee(this, null, function* () {
|
|
4678
4678
|
if (!(!B || U[B] && U[B] > 0)) {
|
|
4679
4679
|
n(3, g = !0), y && y.startsWith("2fa-") && n(30, y = `2fa-${B}`);
|
|
4680
4680
|
try {
|
|
4681
|
-
yield Ge(), yield
|
|
4681
|
+
yield Ge(), yield ht(), n(38, U = ft(We({}, U), {
|
|
4682
4682
|
[B]: 30
|
|
4683
4683
|
})), pe(), n(12, ge = !0), C(), at();
|
|
4684
|
-
} catch (
|
|
4685
|
-
console.error("Error submitting channel:",
|
|
4684
|
+
} catch (c) {
|
|
4685
|
+
console.error("Error submitting channel:", c), n(6, D = !0), n(8, N = o("submissionError"));
|
|
4686
4686
|
} finally {
|
|
4687
4687
|
n(3, g = !1);
|
|
4688
4688
|
}
|
|
4689
4689
|
}
|
|
4690
4690
|
}), C = () => {
|
|
4691
|
-
const
|
|
4692
|
-
re =
|
|
4691
|
+
const c = new Date(M), E = new Date(I), x = /* @__PURE__ */ new Date(), G = E.getTime() - x.getTime();
|
|
4692
|
+
re = c.getTime() - G;
|
|
4693
4693
|
const $ = Date.now(), Te = Math.max(0, Math.floor((re - $) / 1e3));
|
|
4694
4694
|
n(5, S = Te);
|
|
4695
4695
|
}, at = () => {
|
|
4696
4696
|
X && clearInterval(X), X = setInterval(
|
|
4697
4697
|
() => {
|
|
4698
|
-
const
|
|
4698
|
+
const c = Date.now(), E = Math.max(0, Math.floor((re - c) / 1e3));
|
|
4699
4699
|
n(5, S = E), n(11, ue = E <= 0), E <= 0 && (clearInterval(X), X = null, n(9, le = !0), n(6, D = !1), n(10, me = !1));
|
|
4700
4700
|
},
|
|
4701
4701
|
1e3
|
|
4702
4702
|
);
|
|
4703
|
-
}, Nn = (
|
|
4704
|
-
const E = Math.floor(
|
|
4703
|
+
}, Nn = (c) => {
|
|
4704
|
+
const E = Math.floor(c / 60), x = c % 60;
|
|
4705
4705
|
return `${E.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
|
|
4706
|
-
}, lt = (
|
|
4706
|
+
}, lt = (c, E) => {
|
|
4707
4707
|
const x = [...m];
|
|
4708
|
-
x[
|
|
4709
|
-
}, Rn = (
|
|
4708
|
+
x[c] = E.toUpperCase(), n(2, m = x), x.join("") !== ve && n(13, be = !1);
|
|
4709
|
+
}, Rn = (c) => {
|
|
4710
4710
|
var G, $, Te;
|
|
4711
|
-
|
|
4712
|
-
const x = ((($ = (G =
|
|
4713
|
-
n(2, m = [...x, ...Array(_.inputLength - x.length).fill("")]), (Te = Y[x.length]) == null || Te.focus(), x.length === _.inputLength &&
|
|
4714
|
-
},
|
|
4715
|
-
const x =
|
|
4711
|
+
c.preventDefault();
|
|
4712
|
+
const x = ((($ = (G = c.clipboardData) == null ? void 0 : G.getData("text")) == null ? void 0 : $.trim()) || "").slice(0, _.inputLength).split("");
|
|
4713
|
+
n(2, m = [...x, ...Array(_.inputLength - x.length).fill("")]), (Te = Y[x.length]) == null || Te.focus(), x.length === _.inputLength && ut();
|
|
4714
|
+
}, It = (c, E) => {
|
|
4715
|
+
const x = c.target, G = x.value;
|
|
4716
4716
|
if (/^[a-z0-9]$/i.test(G)) {
|
|
4717
4717
|
lt(E, G);
|
|
4718
4718
|
const $ = Y[E + 1];
|
|
4719
4719
|
$ == null || $.focus();
|
|
4720
4720
|
}
|
|
4721
4721
|
x.value = "";
|
|
4722
|
-
},
|
|
4723
|
-
const x =
|
|
4722
|
+
}, Nt = (c, E) => {
|
|
4723
|
+
const x = c.key, G = c.ctrlKey || c.metaKey;
|
|
4724
4724
|
if (/^[a-z0-9]$/i.test(x)) {
|
|
4725
4725
|
if (G && x.toLowerCase() === "v")
|
|
4726
4726
|
return;
|
|
4727
|
-
|
|
4727
|
+
c.preventDefault(), lt(E, x);
|
|
4728
4728
|
const $ = Y[E + 1];
|
|
4729
4729
|
$ == null || $.focus();
|
|
4730
4730
|
} else if (x === "Backspace") {
|
|
4731
|
-
|
|
4731
|
+
c.preventDefault(), m[E] !== "" && lt(E, "");
|
|
4732
4732
|
const $ = Y[E - 1];
|
|
4733
4733
|
$ == null || $.focus();
|
|
4734
|
-
}
|
|
4734
|
+
} else
|
|
4735
|
+
x === "Enter" && (c.preventDefault(), ut());
|
|
4735
4736
|
}, kn = () => {
|
|
4736
4737
|
Q == "stateful" && (Ge(), n(9, le = !1));
|
|
4737
|
-
const
|
|
4738
|
-
window.dispatchEvent(
|
|
4739
|
-
}, Dn = (
|
|
4738
|
+
const c = new CustomEvent("otpResendRequested");
|
|
4739
|
+
window.dispatchEvent(c);
|
|
4740
|
+
}, Dn = (c) => {
|
|
4740
4741
|
window.dispatchEvent(new CustomEvent(
|
|
4741
4742
|
"otpSubmitted",
|
|
4742
4743
|
{
|
|
4743
4744
|
detail: {
|
|
4744
|
-
code:
|
|
4745
|
+
code: c,
|
|
4745
4746
|
maxAttempts: _.maxValidationAttempts,
|
|
4746
4747
|
validatedAttempts: _.numberOfValidateAttempts
|
|
4747
4748
|
}
|
|
4748
4749
|
}
|
|
4749
4750
|
));
|
|
4750
|
-
}, Un = (
|
|
4751
|
+
}, Un = (c) => Ee(this, null, function* () {
|
|
4751
4752
|
const E = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/validate`, h);
|
|
4752
|
-
E.searchParams.append("input",
|
|
4753
|
+
E.searchParams.append("input", c);
|
|
4753
4754
|
try {
|
|
4754
4755
|
const x = yield fetch(E.href, { method: "POST" });
|
|
4755
4756
|
if (x.status === 200) {
|
|
@@ -4759,7 +4760,7 @@ function Lo(e, t, n) {
|
|
|
4759
4760
|
const G = yield x.json();
|
|
4760
4761
|
throw new Error(G.message);
|
|
4761
4762
|
} catch (x) {
|
|
4762
|
-
if (yield
|
|
4763
|
+
if (yield ht(), x.message === he.INTERNAL_SERVER_ERROR) {
|
|
4763
4764
|
if (_.numberOfValidateAttempts === _.maxValidationAttempts - 1) {
|
|
4764
4765
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
4765
4766
|
{
|
|
@@ -4773,7 +4774,7 @@ function Lo(e, t, n) {
|
|
|
4773
4774
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4774
4775
|
return;
|
|
4775
4776
|
}
|
|
4776
|
-
n(6, D = !0), n(8, N = o("invalidOtp")),
|
|
4777
|
+
n(6, D = !0), n(8, N = o("invalidOtp")), ht();
|
|
4777
4778
|
return;
|
|
4778
4779
|
}
|
|
4779
4780
|
x.message === he.MAX_INVALIDATE && (n(6, D = !0), n(8, N = o("invalidOtp"))), x.details === he.MAX_ATTEMPTS_EXCEEDED && n(15, ye = !0), console.error("OTP submission failed:", x), n(6, D = !0), n(8, N = o("submissionError"));
|
|
@@ -4791,18 +4792,18 @@ function Lo(e, t, n) {
|
|
|
4791
4792
|
));
|
|
4792
4793
|
}, Fn = () => {
|
|
4793
4794
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4794
|
-
},
|
|
4795
|
+
}, ut = () => Ee(this, null, function* () {
|
|
4795
4796
|
if (m.join("").length !== _.inputLength) {
|
|
4796
4797
|
n(6, D = !0), n(8, N = o("invalidOtp"));
|
|
4797
4798
|
return;
|
|
4798
4799
|
}
|
|
4799
|
-
const
|
|
4800
|
-
n(13, be = !0), ve =
|
|
4801
|
-
}),
|
|
4800
|
+
const c = m.join("");
|
|
4801
|
+
n(13, be = !0), ve = c, n(3, g = !0), n(6, D = !1), n(8, N = ""), Q === "stateless" && Dn(c), Q === "stateful" && (yield Un(c));
|
|
4802
|
+
}), ht = () => Ee(this, null, function* () {
|
|
4802
4803
|
if (h)
|
|
4803
4804
|
try {
|
|
4804
4805
|
n(3, g = !0);
|
|
4805
|
-
const
|
|
4806
|
+
const c = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/config`, h), E = yield fetch(c.href), x = yield E.json();
|
|
4806
4807
|
if (E.ok)
|
|
4807
4808
|
n(4, _ = x), n(2, m = Array(_.inputLength).fill("")), n(9, le = !1), M = _.expirationTime, I = _.serverTime, _.numberOfValidateAttempts !== 0 && (n(6, D = !0), n(8, N = o("invalidOtp"))), _.numberOfValidateAttempts === _.maxValidationAttempts - 1 && n(10, me = !0), n(3, g = !1), C(), at(), n(16, we = !1);
|
|
4808
4809
|
else if (x && x.details === he.MAX_ATTEMPTS_EXCEEDED)
|
|
@@ -4811,27 +4812,27 @@ function Lo(e, t, n) {
|
|
|
4811
4812
|
const G = x && x.message || `Failed to load config. Status: ${E.status}`;
|
|
4812
4813
|
throw new Error(G);
|
|
4813
4814
|
}
|
|
4814
|
-
} catch (
|
|
4815
|
-
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:",
|
|
4815
|
+
} catch (c) {
|
|
4816
|
+
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);
|
|
4816
4817
|
}
|
|
4817
4818
|
});
|
|
4818
4819
|
ur(() => (window.addEventListener("stepUpAuthRequired", Ue, !1), window.addEventListener("closePopup", z, !1), () => {
|
|
4819
4820
|
window.removeEventListener("stepUpAuthRequired", Ue), window.removeEventListener("closePopup", z, !1), X && clearInterval(X), Z && clearInterval(Z);
|
|
4820
4821
|
}));
|
|
4821
4822
|
const jn = () => F(Se.SMS), Vn = () => F(Se.EMAIL);
|
|
4822
|
-
function zn(
|
|
4823
|
-
Ye[
|
|
4824
|
-
Y[E] =
|
|
4823
|
+
function zn(c, E) {
|
|
4824
|
+
Ye[c ? "unshift" : "push"](() => {
|
|
4825
|
+
Y[E] = c, n(14, Y);
|
|
4825
4826
|
});
|
|
4826
4827
|
}
|
|
4827
|
-
const $n = (
|
|
4828
|
-
function Wn(
|
|
4829
|
-
Ye[
|
|
4830
|
-
J =
|
|
4828
|
+
const $n = (c, E) => It(E, c), Xn = (c, E) => Nt(E, c);
|
|
4829
|
+
function Wn(c) {
|
|
4830
|
+
Ye[c ? "unshift" : "push"](() => {
|
|
4831
|
+
J = c, n(1, J);
|
|
4831
4832
|
});
|
|
4832
4833
|
}
|
|
4833
|
-
return e.$$set = (
|
|
4834
|
-
"clientstyling" in
|
|
4834
|
+
return e.$$set = (c) => {
|
|
4835
|
+
"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);
|
|
4835
4836
|
}, e.$$.update = () => {
|
|
4836
4837
|
e.$$.dirty[0] & /*customStylingContainer*/
|
|
4837
4838
|
2 | e.$$.dirty[1] & /*clientstyling*/
|
|
@@ -4872,18 +4873,18 @@ function Lo(e, t, n) {
|
|
|
4872
4873
|
b,
|
|
4873
4874
|
Nn,
|
|
4874
4875
|
Rn,
|
|
4875
|
-
Lt,
|
|
4876
4876
|
It,
|
|
4877
|
+
Nt,
|
|
4877
4878
|
kn,
|
|
4878
4879
|
Fn,
|
|
4879
|
-
|
|
4880
|
+
ut,
|
|
4880
4881
|
y,
|
|
4881
4882
|
a,
|
|
4882
4883
|
s,
|
|
4883
4884
|
u,
|
|
4884
4885
|
l,
|
|
4885
4886
|
h,
|
|
4886
|
-
|
|
4887
|
+
f,
|
|
4887
4888
|
d,
|
|
4888
4889
|
U,
|
|
4889
4890
|
jn,
|