@tapni/auth 0.0.167 → 0.0.169
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/dist/.vite/manifest.json +6 -6
- package/dist/{Account-LbwXU_zF.js → Account-ja1hZJy5.js} +1 -1
- package/dist/{QR-8LYoP9ge.js → QR-ybXT1KGe.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +4 -4
- package/dist/{install-bvo7alyE.js → install-4aK3Wz63.js} +842 -823
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Language.vue +25 -15
- package/src/components/LinkIcon.vue +1 -1
- package/src/store/auth.js +3 -1
- package/src/store/locales/cn.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Qr, readonly as zi, resolveComponent as Fn, openBlock as N, createElementBlock as x, createElementVNode as _, toDisplayString as Q, createCommentVNode as pe, createVNode as
|
|
1
|
+
import { reactive as Qr, readonly as zi, resolveComponent as Fn, openBlock as N, createElementBlock as x, createElementVNode as _, toDisplayString as Q, createCommentVNode as pe, createVNode as Ue, withCtx as Gt, createTextVNode as ke, pushScopeId as qn, popScopeId as Kn, createStaticVNode as xi, nextTick as So, withModifiers as Ve, normalizeStyle as xn, withDirectives as Ie, withKeys as fn, vModelText as mn, vModelDynamic as _r, vShow as Jt, createBlock as ht, normalizeClass as Ke, vModelCheckbox as Ui, watch as Bi, unref as Di } from "vue";
|
|
2
2
|
import { createRouter as Hi, createWebHistory as ji, RouterView as Fi } from "vue-router";
|
|
3
3
|
import { createNamespacedHelpers as qi, createStore as Ki } from "vuex";
|
|
4
4
|
import { Capacitor as Yn, registerPlugin as ar, WebPlugin as Gi } from "@capacitor/core";
|
|
@@ -61,18 +61,18 @@ function Yi(n) {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var Xt = [], Un = !1, kn,
|
|
64
|
+
var Xt = [], Un = !1, kn, gr = -1;
|
|
65
65
|
function Wi() {
|
|
66
|
-
!Un || !kn || (Un = !1, kn.length ? Xt = kn.concat(Xt) :
|
|
66
|
+
!Un || !kn || (Un = !1, kn.length ? Xt = kn.concat(Xt) : gr = -1, Xt.length && ei());
|
|
67
67
|
}
|
|
68
68
|
function ei() {
|
|
69
69
|
if (!Un) {
|
|
70
70
|
var n = Zo(Wi);
|
|
71
71
|
Un = !0;
|
|
72
72
|
for (var e = Xt.length; e; ) {
|
|
73
|
-
for (kn = Xt, Xt = []; ++
|
|
74
|
-
kn && kn[
|
|
75
|
-
|
|
73
|
+
for (kn = Xt, Xt = []; ++gr < e; )
|
|
74
|
+
kn && kn[gr].run();
|
|
75
|
+
gr = -1, e = Xt.length;
|
|
76
76
|
}
|
|
77
77
|
kn = null, Un = !1, Yi(n);
|
|
78
78
|
}
|
|
@@ -175,10 +175,10 @@ function ia(n) {
|
|
|
175
175
|
var uo = {};
|
|
176
176
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
177
177
|
uo.read = function(n, e, t, r, o) {
|
|
178
|
-
var i, a, s = o * 8 - r - 1, u = (1 << s) - 1, p = u >> 1, l = -7,
|
|
179
|
-
for (
|
|
178
|
+
var i, a, s = o * 8 - r - 1, u = (1 << s) - 1, p = u >> 1, l = -7, g = t ? o - 1 : 0, f = t ? -1 : 1, k = n[e + g];
|
|
179
|
+
for (g += f, i = k & (1 << -l) - 1, k >>= -l, l += s; l > 0; i = i * 256 + n[e + g], g += f, l -= 8)
|
|
180
180
|
;
|
|
181
|
-
for (a = i & (1 << -l) - 1, i >>= -l, l += r; l > 0; a = a * 256 + n[e +
|
|
181
|
+
for (a = i & (1 << -l) - 1, i >>= -l, l += r; l > 0; a = a * 256 + n[e + g], g += f, l -= 8)
|
|
182
182
|
;
|
|
183
183
|
if (i === 0)
|
|
184
184
|
i = 1 - p;
|
|
@@ -190,8 +190,8 @@ uo.read = function(n, e, t, r, o) {
|
|
|
190
190
|
return (k ? -1 : 1) * a * Math.pow(2, i - r);
|
|
191
191
|
};
|
|
192
192
|
uo.write = function(n, e, t, r, o, i) {
|
|
193
|
-
var a, s, u, p = i * 8 - o - 1, l = (1 << p) - 1,
|
|
194
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = l) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a +
|
|
193
|
+
var a, s, u, p = i * 8 - o - 1, l = (1 << p) - 1, g = l >> 1, f = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
194
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = l) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a + g >= 1 ? e += f / u : e += f * Math.pow(2, 1 - g), e * u >= 2 && (a++, u /= 2), a + g >= l ? (s = 0, a = l) : a + g >= 1 ? (s = (e * u - 1) * Math.pow(2, o), a = a + g) : (s = e * Math.pow(2, g - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
|
|
195
195
|
;
|
|
196
196
|
for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
|
|
197
197
|
;
|
|
@@ -249,10 +249,10 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
249
249
|
);
|
|
250
250
|
return E(h);
|
|
251
251
|
}
|
|
252
|
-
return
|
|
252
|
+
return g(h, c, d);
|
|
253
253
|
}
|
|
254
254
|
l.poolSize = 8192;
|
|
255
|
-
function
|
|
255
|
+
function g(h, c, d) {
|
|
256
256
|
if (typeof h == "string")
|
|
257
257
|
return P(h, c);
|
|
258
258
|
if (a.isView(h))
|
|
@@ -267,9 +267,9 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
267
267
|
throw new TypeError(
|
|
268
268
|
'The "value" argument must not be of type number. Received type number'
|
|
269
269
|
);
|
|
270
|
-
const
|
|
271
|
-
if (
|
|
272
|
-
return l.from(
|
|
270
|
+
const m = h.valueOf && h.valueOf();
|
|
271
|
+
if (m != null && m !== h)
|
|
272
|
+
return l.from(m, c, d);
|
|
273
273
|
const b = T(h);
|
|
274
274
|
if (b)
|
|
275
275
|
return b;
|
|
@@ -280,7 +280,7 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
282
|
l.from = function(h, c, d) {
|
|
283
|
-
return
|
|
283
|
+
return g(h, c, d);
|
|
284
284
|
}, Object.setPrototypeOf(l.prototype, i.prototype), Object.setPrototypeOf(l, i);
|
|
285
285
|
function f(h) {
|
|
286
286
|
if (typeof h != "number")
|
|
@@ -306,14 +306,14 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
306
306
|
if ((typeof c != "string" || c === "") && (c = "utf8"), !l.isEncoding(c))
|
|
307
307
|
throw new TypeError("Unknown encoding: " + c);
|
|
308
308
|
const d = J(h, c) | 0;
|
|
309
|
-
let
|
|
310
|
-
const b =
|
|
311
|
-
return b !== d && (
|
|
309
|
+
let m = p(d);
|
|
310
|
+
const b = m.write(h, c);
|
|
311
|
+
return b !== d && (m = m.slice(0, b)), m;
|
|
312
312
|
}
|
|
313
313
|
function j(h) {
|
|
314
314
|
const c = h.length < 0 ? 0 : D(h.length) | 0, d = p(c);
|
|
315
|
-
for (let
|
|
316
|
-
d[
|
|
315
|
+
for (let m = 0; m < c; m += 1)
|
|
316
|
+
d[m] = h[m] & 255;
|
|
317
317
|
return d;
|
|
318
318
|
}
|
|
319
319
|
function K(h) {
|
|
@@ -328,8 +328,8 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
328
328
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
329
329
|
if (h.byteLength < c + (d || 0))
|
|
330
330
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
331
|
-
let
|
|
332
|
-
return c === void 0 && d === void 0 ?
|
|
331
|
+
let m;
|
|
332
|
+
return c === void 0 && d === void 0 ? m = new i(h) : d === void 0 ? m = new i(h, c) : m = new i(h, c, d), Object.setPrototypeOf(m, l.prototype), m;
|
|
333
333
|
}
|
|
334
334
|
function T(h) {
|
|
335
335
|
if (l.isBuffer(h)) {
|
|
@@ -358,13 +358,13 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
358
358
|
);
|
|
359
359
|
if (c === d)
|
|
360
360
|
return 0;
|
|
361
|
-
let
|
|
362
|
-
for (let S = 0, R = Math.min(
|
|
361
|
+
let m = c.length, b = d.length;
|
|
362
|
+
for (let S = 0, R = Math.min(m, b); S < R; ++S)
|
|
363
363
|
if (c[S] !== d[S]) {
|
|
364
|
-
|
|
364
|
+
m = c[S], b = d[S];
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
367
|
-
return
|
|
367
|
+
return m < b ? -1 : b < m ? 1 : 0;
|
|
368
368
|
}, l.isEncoding = function(c) {
|
|
369
369
|
switch (String(c).toLowerCase()) {
|
|
370
370
|
case "hex":
|
|
@@ -387,14 +387,14 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
387
387
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
388
388
|
if (c.length === 0)
|
|
389
389
|
return l.alloc(0);
|
|
390
|
-
let
|
|
390
|
+
let m;
|
|
391
391
|
if (d === void 0)
|
|
392
|
-
for (d = 0,
|
|
393
|
-
d += c[
|
|
392
|
+
for (d = 0, m = 0; m < c.length; ++m)
|
|
393
|
+
d += c[m].length;
|
|
394
394
|
const b = l.allocUnsafe(d);
|
|
395
395
|
let S = 0;
|
|
396
|
-
for (
|
|
397
|
-
let R = c[
|
|
396
|
+
for (m = 0; m < c.length; ++m) {
|
|
397
|
+
let R = c[m];
|
|
398
398
|
if (ze(R, i))
|
|
399
399
|
S + R.length > b.length ? (l.isBuffer(R) || (R = l.from(R)), R.copy(b, S)) : i.prototype.set.call(
|
|
400
400
|
b,
|
|
@@ -418,8 +418,8 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
418
418
|
throw new TypeError(
|
|
419
419
|
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof h
|
|
420
420
|
);
|
|
421
|
-
const d = h.length,
|
|
422
|
-
if (!
|
|
421
|
+
const d = h.length, m = arguments.length > 2 && arguments[2] === !0;
|
|
422
|
+
if (!m && d === 0)
|
|
423
423
|
return 0;
|
|
424
424
|
let b = !1;
|
|
425
425
|
for (; ; )
|
|
@@ -442,13 +442,13 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
442
442
|
return je(h).length;
|
|
443
443
|
default:
|
|
444
444
|
if (b)
|
|
445
|
-
return
|
|
445
|
+
return m ? -1 : _t(h).length;
|
|
446
446
|
c = ("" + c).toLowerCase(), b = !0;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
l.byteLength = J;
|
|
450
450
|
function te(h, c, d) {
|
|
451
|
-
let
|
|
451
|
+
let m = !1;
|
|
452
452
|
if ((c === void 0 || c < 0) && (c = 0), c > this.length || ((d === void 0 || d > this.length) && (d = this.length), d <= 0) || (d >>>= 0, c >>>= 0, d <= c))
|
|
453
453
|
return "";
|
|
454
454
|
for (h || (h = "utf8"); ; )
|
|
@@ -471,15 +471,15 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
471
471
|
case "utf-16le":
|
|
472
472
|
return An(this, c, d);
|
|
473
473
|
default:
|
|
474
|
-
if (
|
|
474
|
+
if (m)
|
|
475
475
|
throw new TypeError("Unknown encoding: " + h);
|
|
476
|
-
h = (h + "").toLowerCase(),
|
|
476
|
+
h = (h + "").toLowerCase(), m = !0;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
l.prototype._isBuffer = !0;
|
|
480
480
|
function Z(h, c, d) {
|
|
481
|
-
const
|
|
482
|
-
h[c] = h[d], h[d] =
|
|
481
|
+
const m = h[c];
|
|
482
|
+
h[c] = h[d], h[d] = m;
|
|
483
483
|
}
|
|
484
484
|
l.prototype.swap16 = function() {
|
|
485
485
|
const c = this.length;
|
|
@@ -513,34 +513,34 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
513
513
|
let c = "";
|
|
514
514
|
const d = n.INSPECT_MAX_BYTES;
|
|
515
515
|
return c = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (c += " ... "), "<Buffer " + c + ">";
|
|
516
|
-
}, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(c, d,
|
|
516
|
+
}, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(c, d, m, b, S) {
|
|
517
517
|
if (ze(c, i) && (c = l.from(c, c.offset, c.byteLength)), !l.isBuffer(c))
|
|
518
518
|
throw new TypeError(
|
|
519
519
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
|
|
520
520
|
);
|
|
521
|
-
if (d === void 0 && (d = 0),
|
|
521
|
+
if (d === void 0 && (d = 0), m === void 0 && (m = c ? c.length : 0), b === void 0 && (b = 0), S === void 0 && (S = this.length), d < 0 || m > c.length || b < 0 || S > this.length)
|
|
522
522
|
throw new RangeError("out of range index");
|
|
523
|
-
if (b >= S && d >=
|
|
523
|
+
if (b >= S && d >= m)
|
|
524
524
|
return 0;
|
|
525
525
|
if (b >= S)
|
|
526
526
|
return -1;
|
|
527
|
-
if (d >=
|
|
527
|
+
if (d >= m)
|
|
528
528
|
return 1;
|
|
529
|
-
if (d >>>= 0,
|
|
529
|
+
if (d >>>= 0, m >>>= 0, b >>>= 0, S >>>= 0, this === c)
|
|
530
530
|
return 0;
|
|
531
|
-
let R = S - b, se =
|
|
532
|
-
const we = Math.min(R, se),
|
|
531
|
+
let R = S - b, se = m - d;
|
|
532
|
+
const we = Math.min(R, se), ge = this.slice(b, S), be = c.slice(d, m);
|
|
533
533
|
for (let he = 0; he < we; ++he)
|
|
534
|
-
if (
|
|
535
|
-
R =
|
|
534
|
+
if (ge[he] !== be[he]) {
|
|
535
|
+
R = ge[he], se = be[he];
|
|
536
536
|
break;
|
|
537
537
|
}
|
|
538
538
|
return R < se ? -1 : se < R ? 1 : 0;
|
|
539
539
|
};
|
|
540
|
-
function ve(h, c, d,
|
|
540
|
+
function ve(h, c, d, m, b) {
|
|
541
541
|
if (h.length === 0)
|
|
542
542
|
return -1;
|
|
543
|
-
if (typeof d == "string" ? (
|
|
543
|
+
if (typeof d == "string" ? (m = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, dt(d) && (d = b ? 0 : h.length - 1), d < 0 && (d = h.length + d), d >= h.length) {
|
|
544
544
|
if (b)
|
|
545
545
|
return -1;
|
|
546
546
|
d = h.length - 1;
|
|
@@ -549,15 +549,15 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
549
549
|
d = 0;
|
|
550
550
|
else
|
|
551
551
|
return -1;
|
|
552
|
-
if (typeof c == "string" && (c = l.from(c,
|
|
553
|
-
return c.length === 0 ? -1 : Se(h, c, d,
|
|
552
|
+
if (typeof c == "string" && (c = l.from(c, m)), l.isBuffer(c))
|
|
553
|
+
return c.length === 0 ? -1 : Se(h, c, d, m, b);
|
|
554
554
|
if (typeof c == "number")
|
|
555
|
-
return c = c & 255, typeof i.prototype.indexOf == "function" ? b ? i.prototype.indexOf.call(h, c, d) : i.prototype.lastIndexOf.call(h, c, d) : Se(h, [c], d,
|
|
555
|
+
return c = c & 255, typeof i.prototype.indexOf == "function" ? b ? i.prototype.indexOf.call(h, c, d) : i.prototype.lastIndexOf.call(h, c, d) : Se(h, [c], d, m, b);
|
|
556
556
|
throw new TypeError("val must be string, number or Buffer");
|
|
557
557
|
}
|
|
558
|
-
function Se(h, c, d,
|
|
558
|
+
function Se(h, c, d, m, b) {
|
|
559
559
|
let S = 1, R = h.length, se = c.length;
|
|
560
|
-
if (
|
|
560
|
+
if (m !== void 0 && (m = String(m).toLowerCase(), m === "ucs2" || m === "ucs-2" || m === "utf16le" || m === "utf-16le")) {
|
|
561
561
|
if (h.length < 2 || c.length < 2)
|
|
562
562
|
return -1;
|
|
563
563
|
S = 2, R /= 2, se /= 2, d /= 2;
|
|
@@ -565,43 +565,43 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
565
565
|
function we(be, he) {
|
|
566
566
|
return S === 1 ? be[he] : be.readUInt16BE(he * S);
|
|
567
567
|
}
|
|
568
|
-
let
|
|
568
|
+
let ge;
|
|
569
569
|
if (b) {
|
|
570
570
|
let be = -1;
|
|
571
|
-
for (
|
|
572
|
-
if (we(h,
|
|
573
|
-
if (be === -1 && (be =
|
|
571
|
+
for (ge = d; ge < R; ge++)
|
|
572
|
+
if (we(h, ge) === we(c, be === -1 ? 0 : ge - be)) {
|
|
573
|
+
if (be === -1 && (be = ge), ge - be + 1 === se)
|
|
574
574
|
return be * S;
|
|
575
575
|
} else
|
|
576
|
-
be !== -1 && (
|
|
576
|
+
be !== -1 && (ge -= ge - be), be = -1;
|
|
577
577
|
} else
|
|
578
|
-
for (d + se > R && (d = R - se),
|
|
578
|
+
for (d + se > R && (d = R - se), ge = d; ge >= 0; ge--) {
|
|
579
579
|
let be = !0;
|
|
580
580
|
for (let he = 0; he < se; he++)
|
|
581
|
-
if (we(h,
|
|
581
|
+
if (we(h, ge + he) !== we(c, he)) {
|
|
582
582
|
be = !1;
|
|
583
583
|
break;
|
|
584
584
|
}
|
|
585
585
|
if (be)
|
|
586
|
-
return
|
|
586
|
+
return ge;
|
|
587
587
|
}
|
|
588
588
|
return -1;
|
|
589
589
|
}
|
|
590
|
-
l.prototype.includes = function(c, d,
|
|
591
|
-
return this.indexOf(c, d,
|
|
592
|
-
}, l.prototype.indexOf = function(c, d,
|
|
593
|
-
return ve(this, c, d,
|
|
594
|
-
}, l.prototype.lastIndexOf = function(c, d,
|
|
595
|
-
return ve(this, c, d,
|
|
590
|
+
l.prototype.includes = function(c, d, m) {
|
|
591
|
+
return this.indexOf(c, d, m) !== -1;
|
|
592
|
+
}, l.prototype.indexOf = function(c, d, m) {
|
|
593
|
+
return ve(this, c, d, m, !0);
|
|
594
|
+
}, l.prototype.lastIndexOf = function(c, d, m) {
|
|
595
|
+
return ve(this, c, d, m, !1);
|
|
596
596
|
};
|
|
597
|
-
function ye(h, c, d,
|
|
597
|
+
function ye(h, c, d, m) {
|
|
598
598
|
d = Number(d) || 0;
|
|
599
599
|
const b = h.length - d;
|
|
600
|
-
|
|
600
|
+
m ? (m = Number(m), m > b && (m = b)) : m = b;
|
|
601
601
|
const S = c.length;
|
|
602
|
-
|
|
602
|
+
m > S / 2 && (m = S / 2);
|
|
603
603
|
let R;
|
|
604
|
-
for (R = 0; R <
|
|
604
|
+
for (R = 0; R < m; ++R) {
|
|
605
605
|
const se = parseInt(c.substr(R * 2, 2), 16);
|
|
606
606
|
if (dt(se))
|
|
607
607
|
return R;
|
|
@@ -609,52 +609,52 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
609
609
|
}
|
|
610
610
|
return R;
|
|
611
611
|
}
|
|
612
|
-
function Ne(h, c, d,
|
|
613
|
-
return vt(_t(c, h.length - d), h, d,
|
|
612
|
+
function Ne(h, c, d, m) {
|
|
613
|
+
return vt(_t(c, h.length - d), h, d, m);
|
|
614
614
|
}
|
|
615
|
-
function Qt(h, c, d,
|
|
616
|
-
return vt(vn(c), h, d,
|
|
615
|
+
function Qt(h, c, d, m) {
|
|
616
|
+
return vt(vn(c), h, d, m);
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
return vt(je(c), h, d,
|
|
618
|
+
function Ye(h, c, d, m) {
|
|
619
|
+
return vt(je(c), h, d, m);
|
|
620
620
|
}
|
|
621
|
-
function an(h, c, d,
|
|
622
|
-
return vt(Tt(c, h.length - d), h, d,
|
|
621
|
+
function an(h, c, d, m) {
|
|
622
|
+
return vt(Tt(c, h.length - d), h, d, m);
|
|
623
623
|
}
|
|
624
|
-
l.prototype.write = function(c, d,
|
|
624
|
+
l.prototype.write = function(c, d, m, b) {
|
|
625
625
|
if (d === void 0)
|
|
626
|
-
b = "utf8",
|
|
627
|
-
else if (
|
|
628
|
-
b = d,
|
|
626
|
+
b = "utf8", m = this.length, d = 0;
|
|
627
|
+
else if (m === void 0 && typeof d == "string")
|
|
628
|
+
b = d, m = this.length, d = 0;
|
|
629
629
|
else if (isFinite(d))
|
|
630
|
-
d = d >>> 0, isFinite(
|
|
630
|
+
d = d >>> 0, isFinite(m) ? (m = m >>> 0, b === void 0 && (b = "utf8")) : (b = m, m = void 0);
|
|
631
631
|
else
|
|
632
632
|
throw new Error(
|
|
633
633
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
634
634
|
);
|
|
635
635
|
const S = this.length - d;
|
|
636
|
-
if ((
|
|
636
|
+
if ((m === void 0 || m > S) && (m = S), c.length > 0 && (m < 0 || d < 0) || d > this.length)
|
|
637
637
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
638
638
|
b || (b = "utf8");
|
|
639
639
|
let R = !1;
|
|
640
640
|
for (; ; )
|
|
641
641
|
switch (b) {
|
|
642
642
|
case "hex":
|
|
643
|
-
return ye(this, c, d,
|
|
643
|
+
return ye(this, c, d, m);
|
|
644
644
|
case "utf8":
|
|
645
645
|
case "utf-8":
|
|
646
|
-
return Ne(this, c, d,
|
|
646
|
+
return Ne(this, c, d, m);
|
|
647
647
|
case "ascii":
|
|
648
648
|
case "latin1":
|
|
649
649
|
case "binary":
|
|
650
|
-
return Qt(this, c, d,
|
|
650
|
+
return Qt(this, c, d, m);
|
|
651
651
|
case "base64":
|
|
652
|
-
return
|
|
652
|
+
return Ye(this, c, d, m);
|
|
653
653
|
case "ucs2":
|
|
654
654
|
case "ucs-2":
|
|
655
655
|
case "utf16le":
|
|
656
656
|
case "utf-16le":
|
|
657
|
-
return an(this, c, d,
|
|
657
|
+
return an(this, c, d, m);
|
|
658
658
|
default:
|
|
659
659
|
if (R)
|
|
660
660
|
throw new TypeError("Unknown encoding: " + b);
|
|
@@ -671,13 +671,13 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
671
671
|
}
|
|
672
672
|
function Nt(h, c, d) {
|
|
673
673
|
d = Math.min(h.length, d);
|
|
674
|
-
const
|
|
674
|
+
const m = [];
|
|
675
675
|
let b = c;
|
|
676
676
|
for (; b < d; ) {
|
|
677
677
|
const S = h[b];
|
|
678
678
|
let R = null, se = S > 239 ? 4 : S > 223 ? 3 : S > 191 ? 2 : 1;
|
|
679
679
|
if (b + se <= d) {
|
|
680
|
-
let we,
|
|
680
|
+
let we, ge, be, he;
|
|
681
681
|
switch (se) {
|
|
682
682
|
case 1:
|
|
683
683
|
S < 128 && (R = S);
|
|
@@ -686,61 +686,61 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
686
686
|
we = h[b + 1], (we & 192) === 128 && (he = (S & 31) << 6 | we & 63, he > 127 && (R = he));
|
|
687
687
|
break;
|
|
688
688
|
case 3:
|
|
689
|
-
we = h[b + 1],
|
|
689
|
+
we = h[b + 1], ge = h[b + 2], (we & 192) === 128 && (ge & 192) === 128 && (he = (S & 15) << 12 | (we & 63) << 6 | ge & 63, he > 2047 && (he < 55296 || he > 57343) && (R = he));
|
|
690
690
|
break;
|
|
691
691
|
case 4:
|
|
692
|
-
we = h[b + 1],
|
|
692
|
+
we = h[b + 1], ge = h[b + 2], be = h[b + 3], (we & 192) === 128 && (ge & 192) === 128 && (be & 192) === 128 && (he = (S & 15) << 18 | (we & 63) << 12 | (ge & 63) << 6 | be & 63, he > 65535 && he < 1114112 && (R = he));
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
R === null ? (R = 65533, se = 1) : R > 65535 && (R -= 65536,
|
|
695
|
+
R === null ? (R = 65533, se = 1) : R > 65535 && (R -= 65536, m.push(R >>> 10 & 1023 | 55296), R = 56320 | R & 1023), m.push(R), b += se;
|
|
696
696
|
}
|
|
697
|
-
return
|
|
697
|
+
return gn(m);
|
|
698
698
|
}
|
|
699
699
|
const ct = 4096;
|
|
700
|
-
function
|
|
700
|
+
function gn(h) {
|
|
701
701
|
const c = h.length;
|
|
702
702
|
if (c <= ct)
|
|
703
703
|
return String.fromCharCode.apply(String, h);
|
|
704
|
-
let d = "",
|
|
705
|
-
for (;
|
|
704
|
+
let d = "", m = 0;
|
|
705
|
+
for (; m < c; )
|
|
706
706
|
d += String.fromCharCode.apply(
|
|
707
707
|
String,
|
|
708
|
-
h.slice(
|
|
708
|
+
h.slice(m, m += ct)
|
|
709
709
|
);
|
|
710
710
|
return d;
|
|
711
711
|
}
|
|
712
712
|
function sn(h, c, d) {
|
|
713
|
-
let
|
|
713
|
+
let m = "";
|
|
714
714
|
d = Math.min(h.length, d);
|
|
715
715
|
for (let b = c; b < d; ++b)
|
|
716
|
-
|
|
717
|
-
return
|
|
716
|
+
m += String.fromCharCode(h[b] & 127);
|
|
717
|
+
return m;
|
|
718
718
|
}
|
|
719
719
|
function _n(h, c, d) {
|
|
720
|
-
let
|
|
720
|
+
let m = "";
|
|
721
721
|
d = Math.min(h.length, d);
|
|
722
722
|
for (let b = c; b < d; ++b)
|
|
723
|
-
|
|
724
|
-
return
|
|
723
|
+
m += String.fromCharCode(h[b]);
|
|
724
|
+
return m;
|
|
725
725
|
}
|
|
726
726
|
function cn(h, c, d) {
|
|
727
|
-
const
|
|
728
|
-
(!c || c < 0) && (c = 0), (!d || d < 0 || d >
|
|
727
|
+
const m = h.length;
|
|
728
|
+
(!c || c < 0) && (c = 0), (!d || d < 0 || d > m) && (d = m);
|
|
729
729
|
let b = "";
|
|
730
730
|
for (let S = c; S < d; ++S)
|
|
731
731
|
b += yn[h[S]];
|
|
732
732
|
return b;
|
|
733
733
|
}
|
|
734
734
|
function An(h, c, d) {
|
|
735
|
-
const
|
|
735
|
+
const m = h.slice(c, d);
|
|
736
736
|
let b = "";
|
|
737
|
-
for (let S = 0; S <
|
|
738
|
-
b += String.fromCharCode(
|
|
737
|
+
for (let S = 0; S < m.length - 1; S += 2)
|
|
738
|
+
b += String.fromCharCode(m[S] + m[S + 1] * 256);
|
|
739
739
|
return b;
|
|
740
740
|
}
|
|
741
741
|
l.prototype.slice = function(c, d) {
|
|
742
|
-
const
|
|
743
|
-
c = ~~c, d = d === void 0 ?
|
|
742
|
+
const m = this.length;
|
|
743
|
+
c = ~~c, d = d === void 0 ? m : ~~d, c < 0 ? (c += m, c < 0 && (c = 0)) : c > m && (c = m), d < 0 ? (d += m, d < 0 && (d = 0)) : d > m && (d = m), d < c && (d = c);
|
|
744
744
|
const b = this.subarray(c, d);
|
|
745
745
|
return Object.setPrototypeOf(b, l.prototype), b;
|
|
746
746
|
};
|
|
@@ -750,14 +750,14 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
750
750
|
if (h + c > d)
|
|
751
751
|
throw new RangeError("Trying to access beyond buffer length");
|
|
752
752
|
}
|
|
753
|
-
l.prototype.readUintLE = l.prototype.readUIntLE = function(c, d,
|
|
754
|
-
c = c >>> 0, d = d >>> 0,
|
|
753
|
+
l.prototype.readUintLE = l.prototype.readUIntLE = function(c, d, m) {
|
|
754
|
+
c = c >>> 0, d = d >>> 0, m || Te(c, d, this.length);
|
|
755
755
|
let b = this[c], S = 1, R = 0;
|
|
756
756
|
for (; ++R < d && (S *= 256); )
|
|
757
757
|
b += this[c + R] * S;
|
|
758
758
|
return b;
|
|
759
|
-
}, l.prototype.readUintBE = l.prototype.readUIntBE = function(c, d,
|
|
760
|
-
c = c >>> 0, d = d >>> 0,
|
|
759
|
+
}, l.prototype.readUintBE = l.prototype.readUIntBE = function(c, d, m) {
|
|
760
|
+
c = c >>> 0, d = d >>> 0, m || Te(c, d, this.length);
|
|
761
761
|
let b = this[c + --d], S = 1;
|
|
762
762
|
for (; d > 0 && (S *= 256); )
|
|
763
763
|
b += this[c + --d] * S;
|
|
@@ -774,24 +774,24 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
774
774
|
return c = c >>> 0, d || Te(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
|
|
775
775
|
}, l.prototype.readBigUInt64LE = Fe(function(c) {
|
|
776
776
|
c = c >>> 0, Pe(c, "offset");
|
|
777
|
-
const d = this[c],
|
|
778
|
-
(d === void 0 ||
|
|
779
|
-
const b = d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, S = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 +
|
|
777
|
+
const d = this[c], m = this[c + 7];
|
|
778
|
+
(d === void 0 || m === void 0) && ut(c, this.length - 8);
|
|
779
|
+
const b = d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, S = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + m * 2 ** 24;
|
|
780
780
|
return BigInt(b) + (BigInt(S) << BigInt(32));
|
|
781
781
|
}), l.prototype.readBigUInt64BE = Fe(function(c) {
|
|
782
782
|
c = c >>> 0, Pe(c, "offset");
|
|
783
|
-
const d = this[c],
|
|
784
|
-
(d === void 0 ||
|
|
785
|
-
const b = d * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], S = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 +
|
|
783
|
+
const d = this[c], m = this[c + 7];
|
|
784
|
+
(d === void 0 || m === void 0) && ut(c, this.length - 8);
|
|
785
|
+
const b = d * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], S = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m;
|
|
786
786
|
return (BigInt(b) << BigInt(32)) + BigInt(S);
|
|
787
|
-
}), l.prototype.readIntLE = function(c, d,
|
|
788
|
-
c = c >>> 0, d = d >>> 0,
|
|
787
|
+
}), l.prototype.readIntLE = function(c, d, m) {
|
|
788
|
+
c = c >>> 0, d = d >>> 0, m || Te(c, d, this.length);
|
|
789
789
|
let b = this[c], S = 1, R = 0;
|
|
790
790
|
for (; ++R < d && (S *= 256); )
|
|
791
791
|
b += this[c + R] * S;
|
|
792
792
|
return S *= 128, b >= S && (b -= Math.pow(2, 8 * d)), b;
|
|
793
|
-
}, l.prototype.readIntBE = function(c, d,
|
|
794
|
-
c = c >>> 0, d = d >>> 0,
|
|
793
|
+
}, l.prototype.readIntBE = function(c, d, m) {
|
|
794
|
+
c = c >>> 0, d = d >>> 0, m || Te(c, d, this.length);
|
|
795
795
|
let b = d, S = 1, R = this[c + --b];
|
|
796
796
|
for (; b > 0 && (S *= 256); )
|
|
797
797
|
R += this[c + --b] * S;
|
|
@@ -800,29 +800,29 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
800
800
|
return c = c >>> 0, d || Te(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
|
|
801
801
|
}, l.prototype.readInt16LE = function(c, d) {
|
|
802
802
|
c = c >>> 0, d || Te(c, 2, this.length);
|
|
803
|
-
const
|
|
804
|
-
return
|
|
803
|
+
const m = this[c] | this[c + 1] << 8;
|
|
804
|
+
return m & 32768 ? m | 4294901760 : m;
|
|
805
805
|
}, l.prototype.readInt16BE = function(c, d) {
|
|
806
806
|
c = c >>> 0, d || Te(c, 2, this.length);
|
|
807
|
-
const
|
|
808
|
-
return
|
|
807
|
+
const m = this[c + 1] | this[c] << 8;
|
|
808
|
+
return m & 32768 ? m | 4294901760 : m;
|
|
809
809
|
}, l.prototype.readInt32LE = function(c, d) {
|
|
810
810
|
return c = c >>> 0, d || Te(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
|
|
811
811
|
}, l.prototype.readInt32BE = function(c, d) {
|
|
812
812
|
return c = c >>> 0, d || Te(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
|
|
813
813
|
}, l.prototype.readBigInt64LE = Fe(function(c) {
|
|
814
814
|
c = c >>> 0, Pe(c, "offset");
|
|
815
|
-
const d = this[c],
|
|
816
|
-
(d === void 0 ||
|
|
817
|
-
const b = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (
|
|
815
|
+
const d = this[c], m = this[c + 7];
|
|
816
|
+
(d === void 0 || m === void 0) && ut(c, this.length - 8);
|
|
817
|
+
const b = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (m << 24);
|
|
818
818
|
return (BigInt(b) << BigInt(32)) + BigInt(d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
|
|
819
819
|
}), l.prototype.readBigInt64BE = Fe(function(c) {
|
|
820
820
|
c = c >>> 0, Pe(c, "offset");
|
|
821
|
-
const d = this[c],
|
|
822
|
-
(d === void 0 ||
|
|
821
|
+
const d = this[c], m = this[c + 7];
|
|
822
|
+
(d === void 0 || m === void 0) && ut(c, this.length - 8);
|
|
823
823
|
const b = (d << 24) + // Overflow
|
|
824
824
|
this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
|
|
825
|
-
return (BigInt(b) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 +
|
|
825
|
+
return (BigInt(b) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
|
|
826
826
|
}), l.prototype.readFloatLE = function(c, d) {
|
|
827
827
|
return c = c >>> 0, d || Te(c, 4, this.length), t.read(this, c, !0, 23, 4);
|
|
828
828
|
}, l.prototype.readFloatBE = function(c, d) {
|
|
@@ -832,52 +832,52 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
832
832
|
}, l.prototype.readDoubleBE = function(c, d) {
|
|
833
833
|
return c = c >>> 0, d || Te(c, 8, this.length), t.read(this, c, !1, 52, 8);
|
|
834
834
|
};
|
|
835
|
-
function Re(h, c, d,
|
|
835
|
+
function Re(h, c, d, m, b, S) {
|
|
836
836
|
if (!l.isBuffer(h))
|
|
837
837
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
838
838
|
if (c > b || c < S)
|
|
839
839
|
throw new RangeError('"value" argument is out of bounds');
|
|
840
|
-
if (d +
|
|
840
|
+
if (d + m > h.length)
|
|
841
841
|
throw new RangeError("Index out of range");
|
|
842
842
|
}
|
|
843
|
-
l.prototype.writeUintLE = l.prototype.writeUIntLE = function(c, d,
|
|
844
|
-
if (c = +c, d = d >>> 0,
|
|
845
|
-
const se = Math.pow(2, 8 *
|
|
846
|
-
Re(this, c, d,
|
|
843
|
+
l.prototype.writeUintLE = l.prototype.writeUIntLE = function(c, d, m, b) {
|
|
844
|
+
if (c = +c, d = d >>> 0, m = m >>> 0, !b) {
|
|
845
|
+
const se = Math.pow(2, 8 * m) - 1;
|
|
846
|
+
Re(this, c, d, m, se, 0);
|
|
847
847
|
}
|
|
848
848
|
let S = 1, R = 0;
|
|
849
|
-
for (this[d] = c & 255; ++R <
|
|
849
|
+
for (this[d] = c & 255; ++R < m && (S *= 256); )
|
|
850
850
|
this[d + R] = c / S & 255;
|
|
851
|
-
return d +
|
|
852
|
-
}, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(c, d,
|
|
853
|
-
if (c = +c, d = d >>> 0,
|
|
854
|
-
const se = Math.pow(2, 8 *
|
|
855
|
-
Re(this, c, d,
|
|
851
|
+
return d + m;
|
|
852
|
+
}, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(c, d, m, b) {
|
|
853
|
+
if (c = +c, d = d >>> 0, m = m >>> 0, !b) {
|
|
854
|
+
const se = Math.pow(2, 8 * m) - 1;
|
|
855
|
+
Re(this, c, d, m, se, 0);
|
|
856
856
|
}
|
|
857
|
-
let S =
|
|
857
|
+
let S = m - 1, R = 1;
|
|
858
858
|
for (this[d + S] = c & 255; --S >= 0 && (R *= 256); )
|
|
859
859
|
this[d + S] = c / R & 255;
|
|
860
|
-
return d +
|
|
861
|
-
}, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(c, d,
|
|
862
|
-
return c = +c, d = d >>> 0,
|
|
863
|
-
}, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(c, d,
|
|
864
|
-
return c = +c, d = d >>> 0,
|
|
865
|
-
}, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(c, d,
|
|
866
|
-
return c = +c, d = d >>> 0,
|
|
867
|
-
}, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(c, d,
|
|
868
|
-
return c = +c, d = d >>> 0,
|
|
869
|
-
}, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(c, d,
|
|
870
|
-
return c = +c, d = d >>> 0,
|
|
860
|
+
return d + m;
|
|
861
|
+
}, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(c, d, m) {
|
|
862
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 1, 255, 0), this[d] = c & 255, d + 1;
|
|
863
|
+
}, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(c, d, m) {
|
|
864
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 65535, 0), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
|
|
865
|
+
}, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(c, d, m) {
|
|
866
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 65535, 0), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
|
|
867
|
+
}, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(c, d, m) {
|
|
868
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 4294967295, 0), this[d + 3] = c >>> 24, this[d + 2] = c >>> 16, this[d + 1] = c >>> 8, this[d] = c & 255, d + 4;
|
|
869
|
+
}, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(c, d, m) {
|
|
870
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 4294967295, 0), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
|
|
871
871
|
};
|
|
872
|
-
function Yt(h, c, d,
|
|
873
|
-
|
|
872
|
+
function Yt(h, c, d, m, b) {
|
|
873
|
+
We(c, m, b, h, d, 7);
|
|
874
874
|
let S = Number(c & BigInt(4294967295));
|
|
875
875
|
h[d++] = S, S = S >> 8, h[d++] = S, S = S >> 8, h[d++] = S, S = S >> 8, h[d++] = S;
|
|
876
876
|
let R = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
877
877
|
return h[d++] = R, R = R >> 8, h[d++] = R, R = R >> 8, h[d++] = R, R = R >> 8, h[d++] = R, d;
|
|
878
878
|
}
|
|
879
|
-
function He(h, c, d,
|
|
880
|
-
|
|
879
|
+
function He(h, c, d, m, b) {
|
|
880
|
+
We(c, m, b, h, d, 7);
|
|
881
881
|
let S = Number(c & BigInt(4294967295));
|
|
882
882
|
h[d + 7] = S, S = S >> 8, h[d + 6] = S, S = S >> 8, h[d + 5] = S, S = S >> 8, h[d + 4] = S;
|
|
883
883
|
let R = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
@@ -887,81 +887,81 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
887
887
|
return Yt(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
888
888
|
}), l.prototype.writeBigUInt64BE = Fe(function(c, d = 0) {
|
|
889
889
|
return He(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
890
|
-
}), l.prototype.writeIntLE = function(c, d,
|
|
890
|
+
}), l.prototype.writeIntLE = function(c, d, m, b) {
|
|
891
891
|
if (c = +c, d = d >>> 0, !b) {
|
|
892
|
-
const we = Math.pow(2, 8 *
|
|
893
|
-
Re(this, c, d,
|
|
892
|
+
const we = Math.pow(2, 8 * m - 1);
|
|
893
|
+
Re(this, c, d, m, we - 1, -we);
|
|
894
894
|
}
|
|
895
895
|
let S = 0, R = 1, se = 0;
|
|
896
|
-
for (this[d] = c & 255; ++S <
|
|
896
|
+
for (this[d] = c & 255; ++S < m && (R *= 256); )
|
|
897
897
|
c < 0 && se === 0 && this[d + S - 1] !== 0 && (se = 1), this[d + S] = (c / R >> 0) - se & 255;
|
|
898
|
-
return d +
|
|
899
|
-
}, l.prototype.writeIntBE = function(c, d,
|
|
898
|
+
return d + m;
|
|
899
|
+
}, l.prototype.writeIntBE = function(c, d, m, b) {
|
|
900
900
|
if (c = +c, d = d >>> 0, !b) {
|
|
901
|
-
const we = Math.pow(2, 8 *
|
|
902
|
-
Re(this, c, d,
|
|
901
|
+
const we = Math.pow(2, 8 * m - 1);
|
|
902
|
+
Re(this, c, d, m, we - 1, -we);
|
|
903
903
|
}
|
|
904
|
-
let S =
|
|
904
|
+
let S = m - 1, R = 1, se = 0;
|
|
905
905
|
for (this[d + S] = c & 255; --S >= 0 && (R *= 256); )
|
|
906
906
|
c < 0 && se === 0 && this[d + S + 1] !== 0 && (se = 1), this[d + S] = (c / R >> 0) - se & 255;
|
|
907
|
-
return d +
|
|
908
|
-
}, l.prototype.writeInt8 = function(c, d,
|
|
909
|
-
return c = +c, d = d >>> 0,
|
|
910
|
-
}, l.prototype.writeInt16LE = function(c, d,
|
|
911
|
-
return c = +c, d = d >>> 0,
|
|
912
|
-
}, l.prototype.writeInt16BE = function(c, d,
|
|
913
|
-
return c = +c, d = d >>> 0,
|
|
914
|
-
}, l.prototype.writeInt32LE = function(c, d,
|
|
915
|
-
return c = +c, d = d >>> 0,
|
|
916
|
-
}, l.prototype.writeInt32BE = function(c, d,
|
|
917
|
-
return c = +c, d = d >>> 0,
|
|
907
|
+
return d + m;
|
|
908
|
+
}, l.prototype.writeInt8 = function(c, d, m) {
|
|
909
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[d] = c & 255, d + 1;
|
|
910
|
+
}, l.prototype.writeInt16LE = function(c, d, m) {
|
|
911
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 32767, -32768), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
|
|
912
|
+
}, l.prototype.writeInt16BE = function(c, d, m) {
|
|
913
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 32767, -32768), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
|
|
914
|
+
}, l.prototype.writeInt32LE = function(c, d, m) {
|
|
915
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 2147483647, -2147483648), this[d] = c & 255, this[d + 1] = c >>> 8, this[d + 2] = c >>> 16, this[d + 3] = c >>> 24, d + 4;
|
|
916
|
+
}, l.prototype.writeInt32BE = function(c, d, m) {
|
|
917
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 2147483647, -2147483648), c < 0 && (c = 4294967295 + c + 1), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
|
|
918
918
|
}, l.prototype.writeBigInt64LE = Fe(function(c, d = 0) {
|
|
919
919
|
return Yt(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
920
920
|
}), l.prototype.writeBigInt64BE = Fe(function(c, d = 0) {
|
|
921
921
|
return He(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
922
922
|
});
|
|
923
|
-
function Le(h, c, d,
|
|
924
|
-
if (d +
|
|
923
|
+
function Le(h, c, d, m, b, S) {
|
|
924
|
+
if (d + m > h.length)
|
|
925
925
|
throw new RangeError("Index out of range");
|
|
926
926
|
if (d < 0)
|
|
927
927
|
throw new RangeError("Index out of range");
|
|
928
928
|
}
|
|
929
|
-
function Ot(h, c, d,
|
|
930
|
-
return c = +c, d = d >>> 0, b || Le(h, c, d, 4), t.write(h, c, d,
|
|
929
|
+
function Ot(h, c, d, m, b) {
|
|
930
|
+
return c = +c, d = d >>> 0, b || Le(h, c, d, 4), t.write(h, c, d, m, 23, 4), d + 4;
|
|
931
931
|
}
|
|
932
|
-
l.prototype.writeFloatLE = function(c, d,
|
|
933
|
-
return Ot(this, c, d, !0,
|
|
934
|
-
}, l.prototype.writeFloatBE = function(c, d,
|
|
935
|
-
return Ot(this, c, d, !1,
|
|
932
|
+
l.prototype.writeFloatLE = function(c, d, m) {
|
|
933
|
+
return Ot(this, c, d, !0, m);
|
|
934
|
+
}, l.prototype.writeFloatBE = function(c, d, m) {
|
|
935
|
+
return Ot(this, c, d, !1, m);
|
|
936
936
|
};
|
|
937
|
-
function Et(h, c, d,
|
|
938
|
-
return c = +c, d = d >>> 0, b || Le(h, c, d, 8), t.write(h, c, d,
|
|
937
|
+
function Et(h, c, d, m, b) {
|
|
938
|
+
return c = +c, d = d >>> 0, b || Le(h, c, d, 8), t.write(h, c, d, m, 52, 8), d + 8;
|
|
939
939
|
}
|
|
940
|
-
l.prototype.writeDoubleLE = function(c, d,
|
|
941
|
-
return Et(this, c, d, !0,
|
|
942
|
-
}, l.prototype.writeDoubleBE = function(c, d,
|
|
943
|
-
return Et(this, c, d, !1,
|
|
944
|
-
}, l.prototype.copy = function(c, d,
|
|
940
|
+
l.prototype.writeDoubleLE = function(c, d, m) {
|
|
941
|
+
return Et(this, c, d, !0, m);
|
|
942
|
+
}, l.prototype.writeDoubleBE = function(c, d, m) {
|
|
943
|
+
return Et(this, c, d, !1, m);
|
|
944
|
+
}, l.prototype.copy = function(c, d, m, b) {
|
|
945
945
|
if (!l.isBuffer(c))
|
|
946
946
|
throw new TypeError("argument should be a Buffer");
|
|
947
|
-
if (
|
|
947
|
+
if (m || (m = 0), !b && b !== 0 && (b = this.length), d >= c.length && (d = c.length), d || (d = 0), b > 0 && b < m && (b = m), b === m || c.length === 0 || this.length === 0)
|
|
948
948
|
return 0;
|
|
949
949
|
if (d < 0)
|
|
950
950
|
throw new RangeError("targetStart out of bounds");
|
|
951
|
-
if (
|
|
951
|
+
if (m < 0 || m >= this.length)
|
|
952
952
|
throw new RangeError("Index out of range");
|
|
953
953
|
if (b < 0)
|
|
954
954
|
throw new RangeError("sourceEnd out of bounds");
|
|
955
|
-
b > this.length && (b = this.length), c.length - d < b -
|
|
956
|
-
const S = b -
|
|
957
|
-
return this === c && typeof i.prototype.copyWithin == "function" ? this.copyWithin(d,
|
|
955
|
+
b > this.length && (b = this.length), c.length - d < b - m && (b = c.length - d + m);
|
|
956
|
+
const S = b - m;
|
|
957
|
+
return this === c && typeof i.prototype.copyWithin == "function" ? this.copyWithin(d, m, b) : i.prototype.set.call(
|
|
958
958
|
c,
|
|
959
|
-
this.subarray(
|
|
959
|
+
this.subarray(m, b),
|
|
960
960
|
d
|
|
961
961
|
), S;
|
|
962
|
-
}, l.prototype.fill = function(c, d,
|
|
962
|
+
}, l.prototype.fill = function(c, d, m, b) {
|
|
963
963
|
if (typeof c == "string") {
|
|
964
|
-
if (typeof d == "string" ? (b = d, d = 0,
|
|
964
|
+
if (typeof d == "string" ? (b = d, d = 0, m = this.length) : typeof m == "string" && (b = m, m = this.length), b !== void 0 && typeof b != "string")
|
|
965
965
|
throw new TypeError("encoding must be a string");
|
|
966
966
|
if (typeof b == "string" && !l.isEncoding(b))
|
|
967
967
|
throw new TypeError("Unknown encoding: " + b);
|
|
@@ -971,20 +971,20 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
971
971
|
}
|
|
972
972
|
} else
|
|
973
973
|
typeof c == "number" ? c = c & 255 : typeof c == "boolean" && (c = Number(c));
|
|
974
|
-
if (d < 0 || this.length < d || this.length <
|
|
974
|
+
if (d < 0 || this.length < d || this.length < m)
|
|
975
975
|
throw new RangeError("Out of range index");
|
|
976
|
-
if (
|
|
976
|
+
if (m <= d)
|
|
977
977
|
return this;
|
|
978
|
-
d = d >>> 0,
|
|
978
|
+
d = d >>> 0, m = m === void 0 ? this.length : m >>> 0, c || (c = 0);
|
|
979
979
|
let S;
|
|
980
980
|
if (typeof c == "number")
|
|
981
|
-
for (S = d; S <
|
|
981
|
+
for (S = d; S < m; ++S)
|
|
982
982
|
this[S] = c;
|
|
983
983
|
else {
|
|
984
984
|
const R = l.isBuffer(c) ? c : l.from(c, b), se = R.length;
|
|
985
985
|
if (se === 0)
|
|
986
986
|
throw new TypeError('The value "' + c + '" is invalid for argument "value"');
|
|
987
|
-
for (S = 0; S <
|
|
987
|
+
for (S = 0; S < m - d; ++S)
|
|
988
988
|
this[S + d] = R[S % se];
|
|
989
989
|
}
|
|
990
990
|
return this;
|
|
@@ -1030,28 +1030,28 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1030
1030
|
), lt(
|
|
1031
1031
|
"ERR_OUT_OF_RANGE",
|
|
1032
1032
|
function(h, c, d) {
|
|
1033
|
-
let
|
|
1034
|
-
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? b = Wt(String(d)) : typeof d == "bigint" && (b = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (b = Wt(b)), b += "n"),
|
|
1033
|
+
let m = `The value of "${h}" is out of range.`, b = d;
|
|
1034
|
+
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? b = Wt(String(d)) : typeof d == "bigint" && (b = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (b = Wt(b)), b += "n"), m += ` It must be ${c}. Received ${b}`, m;
|
|
1035
1035
|
},
|
|
1036
1036
|
RangeError
|
|
1037
1037
|
);
|
|
1038
1038
|
function Wt(h) {
|
|
1039
1039
|
let c = "", d = h.length;
|
|
1040
|
-
const
|
|
1041
|
-
for (; d >=
|
|
1040
|
+
const m = h[0] === "-" ? 1 : 0;
|
|
1041
|
+
for (; d >= m + 4; d -= 3)
|
|
1042
1042
|
c = `_${h.slice(d - 3, d)}${c}`;
|
|
1043
1043
|
return `${h.slice(0, d)}${c}`;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Lt(h, c, d) {
|
|
1046
1046
|
Pe(c, "offset"), (h[c] === void 0 || h[c + d] === void 0) && ut(c, h.length - (d + 1));
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function We(h, c, d, m, b, S) {
|
|
1049
1049
|
if (h > d || h < c) {
|
|
1050
1050
|
const R = typeof c == "bigint" ? "n" : "";
|
|
1051
1051
|
let se;
|
|
1052
1052
|
throw S > 3 ? c === 0 || c === BigInt(0) ? se = `>= 0${R} and < 2${R} ** ${(S + 1) * 8}${R}` : se = `>= -(2${R} ** ${(S + 1) * 8 - 1}${R}) and < 2 ** ${(S + 1) * 8 - 1}${R}` : se = `>= ${c}${R} and <= ${d}${R}`, new et.ERR_OUT_OF_RANGE("value", se, h);
|
|
1053
1053
|
}
|
|
1054
|
-
Lt(
|
|
1054
|
+
Lt(m, b, S);
|
|
1055
1055
|
}
|
|
1056
1056
|
function Pe(h, c) {
|
|
1057
1057
|
if (typeof h != "number")
|
|
@@ -1075,16 +1075,16 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1075
1075
|
function _t(h, c) {
|
|
1076
1076
|
c = c || 1 / 0;
|
|
1077
1077
|
let d;
|
|
1078
|
-
const
|
|
1078
|
+
const m = h.length;
|
|
1079
1079
|
let b = null;
|
|
1080
1080
|
const S = [];
|
|
1081
|
-
for (let R = 0; R <
|
|
1081
|
+
for (let R = 0; R < m; ++R) {
|
|
1082
1082
|
if (d = h.charCodeAt(R), d > 55295 && d < 57344) {
|
|
1083
1083
|
if (!b) {
|
|
1084
1084
|
if (d > 56319) {
|
|
1085
1085
|
(c -= 3) > -1 && S.push(239, 191, 189);
|
|
1086
1086
|
continue;
|
|
1087
|
-
} else if (R + 1 ===
|
|
1087
|
+
} else if (R + 1 === m) {
|
|
1088
1088
|
(c -= 3) > -1 && S.push(239, 191, 189);
|
|
1089
1089
|
continue;
|
|
1090
1090
|
}
|
|
@@ -1138,18 +1138,18 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1138
1138
|
return c;
|
|
1139
1139
|
}
|
|
1140
1140
|
function Tt(h, c) {
|
|
1141
|
-
let d,
|
|
1141
|
+
let d, m, b;
|
|
1142
1142
|
const S = [];
|
|
1143
1143
|
for (let R = 0; R < h.length && !((c -= 2) < 0); ++R)
|
|
1144
|
-
d = h.charCodeAt(R),
|
|
1144
|
+
d = h.charCodeAt(R), m = d >> 8, b = d % 256, S.push(b), S.push(m);
|
|
1145
1145
|
return S;
|
|
1146
1146
|
}
|
|
1147
1147
|
function je(h) {
|
|
1148
1148
|
return e.toByteArray(xt(h));
|
|
1149
1149
|
}
|
|
1150
|
-
function vt(h, c, d,
|
|
1150
|
+
function vt(h, c, d, m) {
|
|
1151
1151
|
let b;
|
|
1152
|
-
for (b = 0; b <
|
|
1152
|
+
for (b = 0; b < m && !(b + d >= c.length || b >= h.length); ++b)
|
|
1153
1153
|
c[b + d] = h[b];
|
|
1154
1154
|
return b;
|
|
1155
1155
|
}
|
|
@@ -1162,9 +1162,9 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1162
1162
|
const yn = function() {
|
|
1163
1163
|
const h = "0123456789abcdef", c = new Array(256);
|
|
1164
1164
|
for (let d = 0; d < 16; ++d) {
|
|
1165
|
-
const
|
|
1165
|
+
const m = d * 16;
|
|
1166
1166
|
for (let b = 0; b < 16; ++b)
|
|
1167
|
-
c[
|
|
1167
|
+
c[m + b] = h[d] + h[b];
|
|
1168
1168
|
}
|
|
1169
1169
|
return c;
|
|
1170
1170
|
}();
|
|
@@ -1175,7 +1175,7 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1175
1175
|
throw new Error("BigInt not supported");
|
|
1176
1176
|
}
|
|
1177
1177
|
})(lo);
|
|
1178
|
-
const wn = lo.Buffer, aa = lo.Buffer, pr = Qr(/* @__PURE__ */ new Map()),
|
|
1178
|
+
const wn = lo.Buffer, aa = lo.Buffer, pr = Qr(/* @__PURE__ */ new Map()), F = {
|
|
1179
1179
|
$on(n, e) {
|
|
1180
1180
|
let t = pr.get(n);
|
|
1181
1181
|
t || (t = /* @__PURE__ */ new Set(), pr.set(n, t)), t.add(e);
|
|
@@ -1191,7 +1191,7 @@ const wn = lo.Buffer, aa = lo.Buffer, pr = Qr(/* @__PURE__ */ new Map()), q = {
|
|
|
1191
1191
|
t && t.delete(e);
|
|
1192
1192
|
}
|
|
1193
1193
|
};
|
|
1194
|
-
zi(
|
|
1194
|
+
zi(F);
|
|
1195
1195
|
const sa = {
|
|
1196
1196
|
computed: {
|
|
1197
1197
|
home() {
|
|
@@ -1328,7 +1328,7 @@ const sa = {
|
|
|
1328
1328
|
deep: !0
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
},
|
|
1331
|
+
}, gt = (n, e) => {
|
|
1332
1332
|
const t = n.__vccOpts || n;
|
|
1333
1333
|
for (const [r, o] of e)
|
|
1334
1334
|
t[r] = o;
|
|
@@ -1351,7 +1351,7 @@ const sa = {
|
|
|
1351
1351
|
console.log("Play was interrupted:", e);
|
|
1352
1352
|
}
|
|
1353
1353
|
}), setTimeout(() => {
|
|
1354
|
-
this.$storex && this.$storex.token ? this.$router.push(this.home) :
|
|
1354
|
+
this.$storex && this.$storex.token ? this.$router.push(this.home) : F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
1355
1355
|
}, 500);
|
|
1356
1356
|
},
|
|
1357
1357
|
methods: {}
|
|
@@ -1361,9 +1361,9 @@ const sa = {
|
|
|
1361
1361
|
}, ha = ["autoplay"], fa = /* @__PURE__ */ ri(() => /* @__PURE__ */ _("source", {
|
|
1362
1362
|
src: "https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",
|
|
1363
1363
|
type: "video/mp4"
|
|
1364
|
-
}, null, -1)),
|
|
1364
|
+
}, null, -1)), ma = [
|
|
1365
1365
|
fa
|
|
1366
|
-
],
|
|
1366
|
+
], ga = { class: "bold full-top no-bottom center-text" }, _a = { class: "full-bottom half-top center-text color-black font-16" }, va = { class: "page-login-links center-text" }, ya = /* @__PURE__ */ ri(() => /* @__PURE__ */ _("div", { class: "clear" }, null, -1)), wa = {
|
|
1367
1367
|
key: 2,
|
|
1368
1368
|
style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
|
|
1369
1369
|
}, ba = /* @__PURE__ */ xi('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a>', 3), ka = [
|
|
@@ -1380,12 +1380,12 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1380
1380
|
width: "350",
|
|
1381
1381
|
style: { margin: "0 auto", "max-width": "100%", "margin-top": "63px", overflow: "hidden" },
|
|
1382
1382
|
autoplay: n.isNative
|
|
1383
|
-
},
|
|
1384
|
-
_("h1",
|
|
1383
|
+
}, ma, 8, ha),
|
|
1384
|
+
_("h1", ga, Q(n.ssoLang[this.appLanguage].welcome), 1),
|
|
1385
1385
|
_("p", _a, Q(n.ssoLang[this.appLanguage].welcome_p1), 1),
|
|
1386
1386
|
pe("", !0),
|
|
1387
1387
|
pe("", !0),
|
|
1388
|
-
|
|
1388
|
+
Ue(a, {
|
|
1389
1389
|
to: "register",
|
|
1390
1390
|
exact: "",
|
|
1391
1391
|
class: "button-center button button-90 google-button bg-tapni-grey pointer"
|
|
@@ -1396,7 +1396,7 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1396
1396
|
_: 1
|
|
1397
1397
|
}),
|
|
1398
1398
|
_("div", va, [
|
|
1399
|
-
|
|
1399
|
+
Ue(a, { to: "/login" }, {
|
|
1400
1400
|
default: Gt(() => [
|
|
1401
1401
|
ke(Q(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
|
|
1402
1402
|
_("b", null, Q(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
@@ -1408,10 +1408,10 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1408
1408
|
this.isNative ? pe("", !0) : (N(), x("div", wa, ka))
|
|
1409
1409
|
]);
|
|
1410
1410
|
}
|
|
1411
|
-
const po = /* @__PURE__ */
|
|
1411
|
+
const po = /* @__PURE__ */ gt(da, [["render", Ca], ["__scopeId", "data-v-615ed484"]]), Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1412
1412
|
__proto__: null,
|
|
1413
1413
|
default: po
|
|
1414
|
-
}, Symbol.toStringTag, { value: "Module" })), Ta = "0.0.
|
|
1414
|
+
}, Symbol.toStringTag, { value: "Module" })), Ta = "0.0.169", hr = {
|
|
1415
1415
|
getMe() {
|
|
1416
1416
|
return ce().get("/users/me");
|
|
1417
1417
|
},
|
|
@@ -4657,7 +4657,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
4657
4657
|
french: "法文",
|
|
4658
4658
|
serbian: "塞尔维亚文",
|
|
4659
4659
|
turkish: "土耳其文",
|
|
4660
|
-
chinese: "
|
|
4660
|
+
chinese: "簡体中文",
|
|
4661
4661
|
app_language: "语言",
|
|
4662
4662
|
profile_preview: "个人资料预览",
|
|
4663
4663
|
edit_profile: "编辑个人资料",
|
|
@@ -5552,7 +5552,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5552
5552
|
choose_other_login_methods: "다른 로그인 방법 선택하기",
|
|
5553
5553
|
no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
|
|
5554
5554
|
}
|
|
5555
|
-
}, Ao = () => Promise.resolve().then(() => Ea), Ia = () => Promise.resolve().then(() => qc), Aa = () => Promise.resolve().then(() => Ul), Ra = () => Promise.resolve().then(() => wd), Pa = () => import("./Account-
|
|
5555
|
+
}, Ao = () => Promise.resolve().then(() => Ea), Ia = () => Promise.resolve().then(() => qc), Aa = () => Promise.resolve().then(() => Ul), Ra = () => Promise.resolve().then(() => wd), Pa = () => import("./Account-ja1hZJy5.js"), Ma = () => Promise.resolve().then(() => du), Na = () => Promise.resolve().then(() => Id), Oa = () => import("./QR-ybXT1KGe.js"), La = () => Promise.resolve().then(() => xu), za = [
|
|
5556
5556
|
{
|
|
5557
5557
|
path: "/welcome",
|
|
5558
5558
|
name: "AuthWelcome",
|
|
@@ -5718,7 +5718,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5718
5718
|
actions: {
|
|
5719
5719
|
async getAccountSettings({ state: n, commit: e, dispatch: t }) {
|
|
5720
5720
|
const [r, o] = await fe(
|
|
5721
|
-
|
|
5721
|
+
Je.getAccountSettings()
|
|
5722
5722
|
);
|
|
5723
5723
|
if (r)
|
|
5724
5724
|
return t("errorHandler", r);
|
|
@@ -5732,7 +5732,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5732
5732
|
if (e.response.data.error === "ACCESS_DENIED")
|
|
5733
5733
|
return n("logout");
|
|
5734
5734
|
if (e.response.data.error === "OTP_REQUIRED")
|
|
5735
|
-
return
|
|
5735
|
+
return F.$emit("toggleOTPModal", !0);
|
|
5736
5736
|
!e.response.data.error.includes("Network Error") && !e.response.data.error.includes("TOKEN_EXPIRED") && !e.response.data.error.includes("Cannot read properties") && n("errorSnack", e.response.data.error);
|
|
5737
5737
|
}
|
|
5738
5738
|
return e;
|
|
@@ -5789,14 +5789,14 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5789
5789
|
username: r,
|
|
5790
5790
|
UserId: t.loggedInAccounts[r].id,
|
|
5791
5791
|
localUser: t.loggedInAccounts[r]
|
|
5792
|
-
}), n("setLoggedInUserId", t.loggedInAccounts[r].id), n("setRefreshToken", t.loggedInAccounts[r].refreshToken), await e("refreshTokenAction", t.loggedInAccounts[r])),
|
|
5792
|
+
}), n("setLoggedInUserId", t.loggedInAccounts[r].id), n("setRefreshToken", t.loggedInAccounts[r].refreshToken), await e("refreshTokenAction", t.loggedInAccounts[r])), F.$emit("ssoEvent", { name: "switchAccount", data: { username: r } });
|
|
5793
5793
|
},
|
|
5794
5794
|
async refreshTokenAction({ dispatch: n, commit: e, state: t, getters: r }, o) {
|
|
5795
5795
|
if (t.refreshing)
|
|
5796
5796
|
return null;
|
|
5797
5797
|
t.refreshing = !0;
|
|
5798
5798
|
const [i, a] = await fe(
|
|
5799
|
-
|
|
5799
|
+
Je.refreshToken({
|
|
5800
5800
|
id: o.id,
|
|
5801
5801
|
refreshToken: r.refreshTokens[0],
|
|
5802
5802
|
refreshTokenAction: !0
|
|
@@ -5804,10 +5804,10 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5804
5804
|
);
|
|
5805
5805
|
if (i && i.response && i.response.data.error === "ACCESS_DENIED")
|
|
5806
5806
|
return n("logout", { refreshToken: o.refreshToken, sendRequest: !1 }), location.reload();
|
|
5807
|
-
a && a.data && (e("setToken", a.data.token),
|
|
5807
|
+
a && a.data && (e("setToken", a.data.token), F.$emit("ssoEvent", { name: "setStorage", data: t.$storex })), t.refreshing = !1;
|
|
5808
5808
|
},
|
|
5809
5809
|
async login({ commit: n, state: e, dispatch: t }, r) {
|
|
5810
|
-
const [o, i] = await fe(
|
|
5810
|
+
const [o, i] = await fe(Je.login(r));
|
|
5811
5811
|
if (o)
|
|
5812
5812
|
return t("errorHandler", o);
|
|
5813
5813
|
if (i.data.success)
|
|
@@ -5824,7 +5824,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5824
5824
|
{ code: o.data.auth_code, state: e.state },
|
|
5825
5825
|
i
|
|
5826
5826
|
);
|
|
5827
|
-
}) : e.display === "npm" && (
|
|
5827
|
+
}) : e.display === "npm" && (F.$emit("ssoEvent", { name: "setLoading", data: !0 }), F.$emit("ssoEvent", { name: "setStorage", data: e.$storex }), F.$emit("ssoEvent", { name: "getUser", data: { username: o.data.data.username } }), t("setLoggedInAccounts", [
|
|
5828
5828
|
{
|
|
5829
5829
|
id: o.data.data.id,
|
|
5830
5830
|
username: o.data.data.username,
|
|
@@ -5834,35 +5834,35 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5834
5834
|
}
|
|
5835
5835
|
]), o.isModal && (t("successSnack", e.ssoLang[r.appLanguage].success_login), setTimeout(() => {
|
|
5836
5836
|
location.reload();
|
|
5837
|
-
}, 1500)),
|
|
5837
|
+
}, 1500)), F.$emit("ssoEvent", { name: "redirect", data: "/" + o.data.data.username + "#edit" }));
|
|
5838
5838
|
},
|
|
5839
5839
|
async register({ commit: n, dispatch: e }, t) {
|
|
5840
5840
|
const [r, o] = await fe(
|
|
5841
|
-
|
|
5841
|
+
Je.register(t)
|
|
5842
5842
|
);
|
|
5843
5843
|
return r ? e("errorHandler", r) : o;
|
|
5844
5844
|
},
|
|
5845
5845
|
async verify({ commit: n, dispatch: e }, t) {
|
|
5846
|
-
const [r, o] = await fe(
|
|
5846
|
+
const [r, o] = await fe(Je.verify(t));
|
|
5847
5847
|
return r ? e("errorHandler", r) : o;
|
|
5848
5848
|
},
|
|
5849
5849
|
async reset({ commit: n, state: e, getters: t, dispatch: r }, o) {
|
|
5850
5850
|
const [i, a] = await fe(
|
|
5851
|
-
|
|
5851
|
+
Je.sendResetEmail(o)
|
|
5852
5852
|
);
|
|
5853
5853
|
if (i)
|
|
5854
5854
|
return r("errorHandler", i);
|
|
5855
5855
|
a.data.success && r("successSnack", e.ssoLang[t.appLanguage].password_reset_success);
|
|
5856
5856
|
},
|
|
5857
5857
|
async exchangeAuthCode({ commit: n, dispatch: e }, t) {
|
|
5858
|
-
const [r, o] = await fe(
|
|
5858
|
+
const [r, o] = await fe(Je.exchangeAuthCode(t));
|
|
5859
5859
|
if (r)
|
|
5860
5860
|
return e("errorHandler", r);
|
|
5861
5861
|
await e("loginSetup", o), await e("getLoggedInAccounts"), e("loginSuccess", o);
|
|
5862
5862
|
},
|
|
5863
5863
|
async changePassword({ commit: n, dispatch: e }, t) {
|
|
5864
5864
|
const [r, o] = await fe(
|
|
5865
|
-
|
|
5865
|
+
Je.changePassword(t)
|
|
5866
5866
|
);
|
|
5867
5867
|
return r ? e("errorHandler", r) : o.data.success;
|
|
5868
5868
|
},
|
|
@@ -5910,7 +5910,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5910
5910
|
return r ? e("errorHandler", r) : o;
|
|
5911
5911
|
},
|
|
5912
5912
|
async logout({ commit: n, dispatch: e, state: t }, { refreshToken: r, sendRequest: o = !0 }) {
|
|
5913
|
-
o && r &&
|
|
5913
|
+
o && r && Je.logout({ token: r }), t.$storex && (t.$storex.username = "", t.$storex.UserId = "", t.$storex.localUser = "", n("setToken", "")), n("setLoggedInUserId", "");
|
|
5914
5914
|
const i = await e("unsetRefreshToken", r);
|
|
5915
5915
|
if (i.length >= 1)
|
|
5916
5916
|
Object.keys(t.loggedInAccounts).forEach((a) => {
|
|
@@ -5919,11 +5919,14 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5919
5919
|
UserId: t.loggedInAccounts[a].id,
|
|
5920
5920
|
localUser: t.loggedInAccounts[a]
|
|
5921
5921
|
}), n("setRefreshToken", i[0]), n("setLoggedInUserId", t.loggedInAccounts[a].id), e("refreshTokenAction", t.loggedInAccounts[a]).then(() => {
|
|
5922
|
-
|
|
5922
|
+
F.$emit("ssoEvent", { name: "switchAccount", data: { username: a } });
|
|
5923
5923
|
}));
|
|
5924
5924
|
});
|
|
5925
|
-
else
|
|
5926
|
-
|
|
5925
|
+
else {
|
|
5926
|
+
if (t.display === "redirect")
|
|
5927
|
+
return Ro.push("/welcome");
|
|
5928
|
+
t.display === "npm" && F.$emit("ssoEvent", { name: "redirect", data: "/welcome" });
|
|
5929
|
+
}
|
|
5927
5930
|
},
|
|
5928
5931
|
async getCompanyBySSOEmail({ commit: n, dispatch: e }, t) {
|
|
5929
5932
|
const [r, o] = await fe(
|
|
@@ -5937,7 +5940,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5937
5940
|
async getLoggedInAccounts({ getters: n, dispatch: e }) {
|
|
5938
5941
|
if (n.refreshTokens && n.refreshTokens.length >= 1) {
|
|
5939
5942
|
const [t, r] = await fe(
|
|
5940
|
-
|
|
5943
|
+
Je.getLoggedInAccounts({ refreshTokens: n.refreshTokens })
|
|
5941
5944
|
);
|
|
5942
5945
|
if (t)
|
|
5943
5946
|
return e("errorHandler", t);
|
|
@@ -5951,7 +5954,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5951
5954
|
return r ? e("errorHandler", r) : o.data.success;
|
|
5952
5955
|
},
|
|
5953
5956
|
setLoggedInAccounts({ commit: n }, e) {
|
|
5954
|
-
n("setLoggedInAccounts", e),
|
|
5957
|
+
n("setLoggedInAccounts", e), F.$emit("ssoEvent", { name: "setLoggedInAccounts", data: e });
|
|
5955
5958
|
},
|
|
5956
5959
|
setLoggedInUserId({ commit: n }, e) {
|
|
5957
5960
|
n("setLoggedInUserId", e);
|
|
@@ -6038,7 +6041,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
6038
6041
|
};
|
|
6039
6042
|
let yt;
|
|
6040
6043
|
vr.getId().then((n) => yt = n.uuid);
|
|
6041
|
-
const
|
|
6044
|
+
const Je = {
|
|
6042
6045
|
register(n) {
|
|
6043
6046
|
return n.device_id = yt, ce().post("/users/register", n);
|
|
6044
6047
|
},
|
|
@@ -6126,9 +6129,9 @@ const $e = {
|
|
|
6126
6129
|
return this.googleLoad = !1;
|
|
6127
6130
|
if (this.referral && (e.ref = this.referral), e.authentication && (e.authentication.accessToken || e.authentication.idToken)) {
|
|
6128
6131
|
this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
|
|
6129
|
-
const [r, o] = await fe(
|
|
6132
|
+
const [r, o] = await fe(Je.googleSDK(e, this.$storex));
|
|
6130
6133
|
if (r)
|
|
6131
|
-
return this.googleLoad = !1,
|
|
6134
|
+
return this.googleLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
|
|
6132
6135
|
if (o.data.success) {
|
|
6133
6136
|
if (this.display === "popup")
|
|
6134
6137
|
return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
|
|
@@ -6138,7 +6141,7 @@ const $e = {
|
|
|
6138
6141
|
} else
|
|
6139
6142
|
this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
|
|
6140
6143
|
} else
|
|
6141
|
-
this.googleLoad = !1,
|
|
6144
|
+
this.googleLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
6142
6145
|
}
|
|
6143
6146
|
}
|
|
6144
6147
|
}, xa = ar("FacebookLogin", {
|
|
@@ -6181,19 +6184,19 @@ const hi = {
|
|
|
6181
6184
|
if (e)
|
|
6182
6185
|
return this.facebookLoad = !1;
|
|
6183
6186
|
if (this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code"), t && t.accessToken) {
|
|
6184
|
-
const [o, i] = await fe(
|
|
6187
|
+
const [o, i] = await fe(Je.facebookSDK(t, this.$storex));
|
|
6185
6188
|
if (o)
|
|
6186
|
-
return this.facebookLoad = !1,
|
|
6189
|
+
return this.facebookLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
|
|
6187
6190
|
if (i.data.success) {
|
|
6188
6191
|
if (this.display === "popup")
|
|
6189
6192
|
return (r = window.parent) == null ? void 0 : r.postMessage({ code: i.data.auth_code, state: this.$route.query.state }, "*");
|
|
6190
6193
|
await this.loginSetup(i), await this.getLoggedInAccounts(), this.$router.push("/" + i.data.data.username + "#edit"), setTimeout(() => {
|
|
6191
|
-
this.facebookLoad = !1,
|
|
6194
|
+
this.facebookLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
6192
6195
|
}, 1e3);
|
|
6193
6196
|
} else
|
|
6194
6197
|
this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
|
|
6195
6198
|
} else
|
|
6196
|
-
this.facebookLoad = !1,
|
|
6199
|
+
this.facebookLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
6197
6200
|
}
|
|
6198
6201
|
}
|
|
6199
6202
|
}, Ua = ar("SignInWithApple", {
|
|
@@ -6222,9 +6225,9 @@ const hi = {
|
|
|
6222
6225
|
return this.appleLoad = !1;
|
|
6223
6226
|
if (e.response.tokenData = $o(e.response.identityToken), e && e.response && e.response.identityToken) {
|
|
6224
6227
|
this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
|
|
6225
|
-
const [r, o] = await fe(
|
|
6228
|
+
const [r, o] = await fe(Je.appleSDK(e.response, this.$storex));
|
|
6226
6229
|
if (r)
|
|
6227
|
-
return this.appleLoad = !1,
|
|
6230
|
+
return this.appleLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
|
|
6228
6231
|
if (o.data.success) {
|
|
6229
6232
|
if (this.display === "popup")
|
|
6230
6233
|
return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
|
|
@@ -6234,7 +6237,7 @@ const hi = {
|
|
|
6234
6237
|
} else
|
|
6235
6238
|
this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
|
|
6236
6239
|
} else
|
|
6237
|
-
this.appleLoad = !1,
|
|
6240
|
+
this.appleLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
6238
6241
|
}
|
|
6239
6242
|
}
|
|
6240
6243
|
};
|
|
@@ -6261,7 +6264,7 @@ var Jr = function(n, e) {
|
|
|
6261
6264
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
6262
6265
|
}, Jr(n, e);
|
|
6263
6266
|
};
|
|
6264
|
-
function
|
|
6267
|
+
function Qe(n, e) {
|
|
6265
6268
|
Jr(n, e);
|
|
6266
6269
|
function t() {
|
|
6267
6270
|
this.constructor = n;
|
|
@@ -6297,15 +6300,15 @@ function O(n, e, t, r) {
|
|
|
6297
6300
|
function s(l) {
|
|
6298
6301
|
try {
|
|
6299
6302
|
p(r.next(l));
|
|
6300
|
-
} catch (
|
|
6301
|
-
a(
|
|
6303
|
+
} catch (g) {
|
|
6304
|
+
a(g);
|
|
6302
6305
|
}
|
|
6303
6306
|
}
|
|
6304
6307
|
function u(l) {
|
|
6305
6308
|
try {
|
|
6306
6309
|
p(r.throw(l));
|
|
6307
|
-
} catch (
|
|
6308
|
-
a(
|
|
6310
|
+
} catch (g) {
|
|
6311
|
+
a(g);
|
|
6309
6312
|
}
|
|
6310
6313
|
}
|
|
6311
6314
|
function p(l) {
|
|
@@ -6434,15 +6437,15 @@ function st(n, e) {
|
|
|
6434
6437
|
}
|
|
6435
6438
|
n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
6436
6439
|
}
|
|
6437
|
-
var
|
|
6438
|
-
return
|
|
6440
|
+
var me = function() {
|
|
6441
|
+
return me = Object.assign || function(e) {
|
|
6439
6442
|
for (var t, r = 1, o = arguments.length; r < o; r++) {
|
|
6440
6443
|
t = arguments[r];
|
|
6441
6444
|
for (var i in t)
|
|
6442
6445
|
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
6443
6446
|
}
|
|
6444
6447
|
return e;
|
|
6445
|
-
},
|
|
6448
|
+
}, me.apply(this, arguments);
|
|
6446
6449
|
};
|
|
6447
6450
|
function oe(n, e, t, r) {
|
|
6448
6451
|
function o(i) {
|
|
@@ -6454,15 +6457,15 @@ function oe(n, e, t, r) {
|
|
|
6454
6457
|
function s(l) {
|
|
6455
6458
|
try {
|
|
6456
6459
|
p(r.next(l));
|
|
6457
|
-
} catch (
|
|
6458
|
-
a(
|
|
6460
|
+
} catch (g) {
|
|
6461
|
+
a(g);
|
|
6459
6462
|
}
|
|
6460
6463
|
}
|
|
6461
6464
|
function u(l) {
|
|
6462
6465
|
try {
|
|
6463
6466
|
p(r.throw(l));
|
|
6464
|
-
} catch (
|
|
6465
|
-
a(
|
|
6467
|
+
} catch (g) {
|
|
6468
|
+
a(g);
|
|
6466
6469
|
}
|
|
6467
6470
|
}
|
|
6468
6471
|
function p(l) {
|
|
@@ -6604,10 +6607,10 @@ var w = {
|
|
|
6604
6607
|
w.OFFLINE_ACCESS_SCOPE
|
|
6605
6608
|
], No = Or(sr, [
|
|
6606
6609
|
w.EMAIL_SCOPE
|
|
6607
|
-
]),
|
|
6610
|
+
]), mt;
|
|
6608
6611
|
(function(n) {
|
|
6609
6612
|
n.CONTENT_TYPE = "Content-Type", n.RETRY_AFTER = "Retry-After", n.CCS_HEADER = "X-AnchorMailbox", n.WWWAuthenticate = "WWW-Authenticate", n.AuthenticationInfo = "Authentication-Info", n.X_MS_REQUEST_ID = "x-ms-request-id", n.X_MS_HTTP_VERSION = "x-ms-httpver";
|
|
6610
|
-
})(
|
|
6613
|
+
})(mt || (mt = {}));
|
|
6611
6614
|
var xe;
|
|
6612
6615
|
(function(n) {
|
|
6613
6616
|
n.ID_TOKEN = "idtoken", n.CLIENT_INFO = "client.info", n.ADAL_ID_TOKEN = "adal.idtoken", n.ERROR = "error", n.ERROR_DESC = "error.description", n.ACTIVE_ACCOUNT = "active-account", n.ACTIVE_ACCOUNT_FILTERS = "active-account-filters";
|
|
@@ -6650,10 +6653,10 @@ var $t;
|
|
|
6650
6653
|
(function(n) {
|
|
6651
6654
|
n.MSSTS_ACCOUNT_TYPE = "MSSTS", n.ADFS_ACCOUNT_TYPE = "ADFS", n.MSAV1_ACCOUNT_TYPE = "MSA", n.GENERIC_ACCOUNT_TYPE = "Generic";
|
|
6652
6655
|
})($t || ($t = {}));
|
|
6653
|
-
var
|
|
6656
|
+
var Be;
|
|
6654
6657
|
(function(n) {
|
|
6655
6658
|
n.CACHE_KEY_SEPARATOR = "-", n.CLIENT_INFO_SEPARATOR = ".";
|
|
6656
|
-
})(
|
|
6659
|
+
})(Be || (Be = {}));
|
|
6657
6660
|
var ee;
|
|
6658
6661
|
(function(n) {
|
|
6659
6662
|
n.ID_TOKEN = "IdToken", n.ACCESS_TOKEN = "AccessToken", n.ACCESS_TOKEN_WITH_AUTH_SCHEME = "AccessToken_With_AuthScheme", n.REFRESH_TOKEN = "RefreshToken";
|
|
@@ -7179,25 +7182,25 @@ var V = (
|
|
|
7179
7182
|
}()
|
|
7180
7183
|
);
|
|
7181
7184
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7182
|
-
var
|
|
7185
|
+
var De;
|
|
7183
7186
|
(function(n) {
|
|
7184
7187
|
n[n.Error = 0] = "Error", n[n.Warning = 1] = "Warning", n[n.Info = 2] = "Info", n[n.Verbose = 3] = "Verbose", n[n.Trace = 4] = "Trace";
|
|
7185
|
-
})(
|
|
7186
|
-
var
|
|
7188
|
+
})(De || (De = {}));
|
|
7189
|
+
var mo = (
|
|
7187
7190
|
/** @class */
|
|
7188
7191
|
function() {
|
|
7189
7192
|
function n(e, t, r) {
|
|
7190
|
-
this.level =
|
|
7193
|
+
this.level = De.Info;
|
|
7191
7194
|
var o = function() {
|
|
7192
7195
|
}, i = e || n.createDefaultLoggerOptions();
|
|
7193
|
-
this.localCallback = i.loggerCallback || o, this.piiLoggingEnabled = i.piiLoggingEnabled || !1, this.level = typeof i.logLevel == "number" ? i.logLevel :
|
|
7196
|
+
this.localCallback = i.loggerCallback || o, this.piiLoggingEnabled = i.piiLoggingEnabled || !1, this.level = typeof i.logLevel == "number" ? i.logLevel : De.Info, this.correlationId = i.correlationId || w.EMPTY_STRING, this.packageName = t || w.EMPTY_STRING, this.packageVersion = r || w.EMPTY_STRING;
|
|
7194
7197
|
}
|
|
7195
7198
|
return n.createDefaultLoggerOptions = function() {
|
|
7196
7199
|
return {
|
|
7197
7200
|
loggerCallback: function() {
|
|
7198
7201
|
},
|
|
7199
7202
|
piiLoggingEnabled: !1,
|
|
7200
|
-
logLevel:
|
|
7203
|
+
logLevel: De.Info
|
|
7201
7204
|
};
|
|
7202
7205
|
}, n.prototype.clone = function(e, t, r) {
|
|
7203
7206
|
return new n({ loggerCallback: this.localCallback, piiLoggingEnabled: this.piiLoggingEnabled, logLevel: this.level, correlationId: r || this.correlationId }, e, t);
|
|
@@ -7205,68 +7208,68 @@ var go = (
|
|
|
7205
7208
|
if (!(t.logLevel > this.level || !this.piiLoggingEnabled && t.containsPii)) {
|
|
7206
7209
|
var r = (/* @__PURE__ */ new Date()).toUTCString(), o;
|
|
7207
7210
|
V.isEmpty(t.correlationId) ? V.isEmpty(this.correlationId) ? o = "[" + r + "]" : o = "[" + r + "] : [" + this.correlationId + "]" : o = "[" + r + "] : [" + t.correlationId + "]";
|
|
7208
|
-
var i = o + " : " + this.packageName + "@" + this.packageVersion + " : " +
|
|
7211
|
+
var i = o + " : " + this.packageName + "@" + this.packageVersion + " : " + De[t.logLevel] + " - " + e;
|
|
7209
7212
|
this.executeCallback(t.logLevel, i, t.containsPii || !1);
|
|
7210
7213
|
}
|
|
7211
7214
|
}, n.prototype.executeCallback = function(e, t, r) {
|
|
7212
7215
|
this.localCallback && this.localCallback(e, t, r);
|
|
7213
7216
|
}, n.prototype.error = function(e, t) {
|
|
7214
7217
|
this.logMessage(e, {
|
|
7215
|
-
logLevel:
|
|
7218
|
+
logLevel: De.Error,
|
|
7216
7219
|
containsPii: !1,
|
|
7217
7220
|
correlationId: t || w.EMPTY_STRING
|
|
7218
7221
|
});
|
|
7219
7222
|
}, n.prototype.errorPii = function(e, t) {
|
|
7220
7223
|
this.logMessage(e, {
|
|
7221
|
-
logLevel:
|
|
7224
|
+
logLevel: De.Error,
|
|
7222
7225
|
containsPii: !0,
|
|
7223
7226
|
correlationId: t || w.EMPTY_STRING
|
|
7224
7227
|
});
|
|
7225
7228
|
}, n.prototype.warning = function(e, t) {
|
|
7226
7229
|
this.logMessage(e, {
|
|
7227
|
-
logLevel:
|
|
7230
|
+
logLevel: De.Warning,
|
|
7228
7231
|
containsPii: !1,
|
|
7229
7232
|
correlationId: t || w.EMPTY_STRING
|
|
7230
7233
|
});
|
|
7231
7234
|
}, n.prototype.warningPii = function(e, t) {
|
|
7232
7235
|
this.logMessage(e, {
|
|
7233
|
-
logLevel:
|
|
7236
|
+
logLevel: De.Warning,
|
|
7234
7237
|
containsPii: !0,
|
|
7235
7238
|
correlationId: t || w.EMPTY_STRING
|
|
7236
7239
|
});
|
|
7237
7240
|
}, n.prototype.info = function(e, t) {
|
|
7238
7241
|
this.logMessage(e, {
|
|
7239
|
-
logLevel:
|
|
7242
|
+
logLevel: De.Info,
|
|
7240
7243
|
containsPii: !1,
|
|
7241
7244
|
correlationId: t || w.EMPTY_STRING
|
|
7242
7245
|
});
|
|
7243
7246
|
}, n.prototype.infoPii = function(e, t) {
|
|
7244
7247
|
this.logMessage(e, {
|
|
7245
|
-
logLevel:
|
|
7248
|
+
logLevel: De.Info,
|
|
7246
7249
|
containsPii: !0,
|
|
7247
7250
|
correlationId: t || w.EMPTY_STRING
|
|
7248
7251
|
});
|
|
7249
7252
|
}, n.prototype.verbose = function(e, t) {
|
|
7250
7253
|
this.logMessage(e, {
|
|
7251
|
-
logLevel:
|
|
7254
|
+
logLevel: De.Verbose,
|
|
7252
7255
|
containsPii: !1,
|
|
7253
7256
|
correlationId: t || w.EMPTY_STRING
|
|
7254
7257
|
});
|
|
7255
7258
|
}, n.prototype.verbosePii = function(e, t) {
|
|
7256
7259
|
this.logMessage(e, {
|
|
7257
|
-
logLevel:
|
|
7260
|
+
logLevel: De.Verbose,
|
|
7258
7261
|
containsPii: !0,
|
|
7259
7262
|
correlationId: t || w.EMPTY_STRING
|
|
7260
7263
|
});
|
|
7261
7264
|
}, n.prototype.trace = function(e, t) {
|
|
7262
7265
|
this.logMessage(e, {
|
|
7263
|
-
logLevel:
|
|
7266
|
+
logLevel: De.Trace,
|
|
7264
7267
|
containsPii: !1,
|
|
7265
7268
|
correlationId: t || w.EMPTY_STRING
|
|
7266
7269
|
});
|
|
7267
7270
|
}, n.prototype.tracePii = function(e, t) {
|
|
7268
7271
|
this.logMessage(e, {
|
|
7269
|
-
logLevel:
|
|
7272
|
+
logLevel: De.Trace,
|
|
7270
7273
|
containsPii: !0,
|
|
7271
7274
|
correlationId: t || w.EMPTY_STRING
|
|
7272
7275
|
});
|
|
@@ -7276,7 +7279,7 @@ var go = (
|
|
|
7276
7279
|
}()
|
|
7277
7280
|
);
|
|
7278
7281
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7279
|
-
var
|
|
7282
|
+
var mi = "@azure/msal-common", go = "13.3.1";
|
|
7280
7283
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7281
7284
|
var rr;
|
|
7282
7285
|
(function(n) {
|
|
@@ -7536,7 +7539,7 @@ function Er(n, e) {
|
|
|
7536
7539
|
function Nn(n) {
|
|
7537
7540
|
if (V.isEmpty(n))
|
|
7538
7541
|
throw Y.createClientInfoDecodingError("Home account ID was empty.");
|
|
7539
|
-
var e = n.split(
|
|
7542
|
+
var e = n.split(Be.CLIENT_INFO_SEPARATOR, 2);
|
|
7540
7543
|
return {
|
|
7541
7544
|
uid: e[0],
|
|
7542
7545
|
utid: e.length < 2 ? w.EMPTY_STRING : e[1]
|
|
@@ -7548,14 +7551,14 @@ var tt;
|
|
|
7548
7551
|
n[n.Default = 0] = "Default", n[n.Adfs = 1] = "Adfs", n[n.Dsts = 2] = "Dsts", n[n.Ciam = 3] = "Ciam";
|
|
7549
7552
|
})(tt || (tt = {}));
|
|
7550
7553
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7551
|
-
var
|
|
7554
|
+
var Ge = (
|
|
7552
7555
|
/** @class */
|
|
7553
7556
|
function() {
|
|
7554
7557
|
function n() {
|
|
7555
7558
|
}
|
|
7556
7559
|
return n.prototype.generateAccountId = function() {
|
|
7557
7560
|
var e = [this.homeAccountId, this.environment];
|
|
7558
|
-
return e.join(
|
|
7561
|
+
return e.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7559
7562
|
}, n.prototype.generateAccountKey = function() {
|
|
7560
7563
|
return n.generateAccountCacheKey({
|
|
7561
7564
|
homeAccountId: this.homeAccountId,
|
|
@@ -7594,26 +7597,26 @@ var Ke = (
|
|
|
7594
7597
|
e.environment || w.EMPTY_STRING,
|
|
7595
7598
|
e.tenantId || w.EMPTY_STRING
|
|
7596
7599
|
];
|
|
7597
|
-
return t.join(
|
|
7600
|
+
return t.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7598
7601
|
}, n.createAccount = function(e, t, r, o, i, a, s, u) {
|
|
7599
|
-
var p, l,
|
|
7602
|
+
var p, l, g, f, k, E, P = new n();
|
|
7600
7603
|
P.authorityType = $t.MSSTS_ACCOUNT_TYPE, P.clientInfo = e, P.homeAccountId = t, P.nativeAccountId = u;
|
|
7601
7604
|
var j = s || o && o.getPreferredCache();
|
|
7602
7605
|
if (!j)
|
|
7603
7606
|
throw Y.createInvalidCacheEnvironmentError();
|
|
7604
7607
|
if (P.environment = j, P.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || w.EMPTY_STRING, r) {
|
|
7605
|
-
P.idTokenClaims = r.claims, P.localAccountId = ((l = r == null ? void 0 : r.claims) === null || l === void 0 ? void 0 : l.oid) || ((
|
|
7608
|
+
P.idTokenClaims = r.claims, P.localAccountId = ((l = r == null ? void 0 : r.claims) === null || l === void 0 ? void 0 : l.oid) || ((g = r == null ? void 0 : r.claims) === null || g === void 0 ? void 0 : g.sub) || w.EMPTY_STRING;
|
|
7606
7609
|
var K = (f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.preferred_username, z = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
|
|
7607
7610
|
P.username = K || z || w.EMPTY_STRING, P.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
|
|
7608
7611
|
}
|
|
7609
7612
|
return P.cloudGraphHostName = i, P.msGraphHost = a, P;
|
|
7610
7613
|
}, n.createGenericAccount = function(e, t, r, o, i, a) {
|
|
7611
|
-
var s, u, p, l,
|
|
7612
|
-
|
|
7614
|
+
var s, u, p, l, g = new n();
|
|
7615
|
+
g.authorityType = r && r.authorityType === tt.Adfs ? $t.ADFS_ACCOUNT_TYPE : $t.GENERIC_ACCOUNT_TYPE, g.homeAccountId = e, g.realm = w.EMPTY_STRING;
|
|
7613
7616
|
var f = a || r && r.getPreferredCache();
|
|
7614
7617
|
if (!f)
|
|
7615
7618
|
throw Y.createInvalidCacheEnvironmentError();
|
|
7616
|
-
return t && (
|
|
7619
|
+
return t && (g.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.sub) || w.EMPTY_STRING, g.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || w.EMPTY_STRING, g.name = ((l = t == null ? void 0 : t.claims) === null || l === void 0 ? void 0 : l.name) || w.EMPTY_STRING, g.idTokenClaims = t == null ? void 0 : t.claims), g.environment = f, g.cloudGraphHostName = o, g.msGraphHost = i, g;
|
|
7617
7620
|
}, n.generateHomeAccountId = function(e, t, r, o, i) {
|
|
7618
7621
|
var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : w.EMPTY_STRING;
|
|
7619
7622
|
if (t === tt.Adfs || t === tt.Dsts)
|
|
@@ -7622,7 +7625,7 @@ var Ke = (
|
|
|
7622
7625
|
try {
|
|
7623
7626
|
var u = Er(e, o);
|
|
7624
7627
|
if (!V.isEmpty(u.uid) && !V.isEmpty(u.utid))
|
|
7625
|
-
return "" + u.uid +
|
|
7628
|
+
return "" + u.uid + Be.CLIENT_INFO_SEPARATOR + u.utid;
|
|
7626
7629
|
} catch {
|
|
7627
7630
|
}
|
|
7628
7631
|
return r.verbose("No client info in response"), s;
|
|
@@ -7669,7 +7672,7 @@ var ot = (
|
|
|
7669
7672
|
/** @class */
|
|
7670
7673
|
function() {
|
|
7671
7674
|
function n(e, t, r) {
|
|
7672
|
-
this.clientId = e, this.cryptoImpl = t, this.commonLogger = r.clone(
|
|
7675
|
+
this.clientId = e, this.cryptoImpl = t, this.commonLogger = r.clone(mi, go);
|
|
7673
7676
|
}
|
|
7674
7677
|
return n.prototype.getAllAccounts = function() {
|
|
7675
7678
|
var e = this, t = this.getAccountKeys();
|
|
@@ -7749,15 +7752,15 @@ var ot = (
|
|
|
7749
7752
|
}
|
|
7750
7753
|
}), o;
|
|
7751
7754
|
}, n.prototype.isAccountKey = function(e, t, r) {
|
|
7752
|
-
return !(e.split(
|
|
7755
|
+
return !(e.split(Be.CACHE_KEY_SEPARATOR).length < 3 || t && !e.toLowerCase().includes(t.toLowerCase()) || r && !e.toLowerCase().includes(r.toLowerCase()));
|
|
7753
7756
|
}, n.prototype.isCredentialKey = function(e) {
|
|
7754
|
-
if (e.split(
|
|
7757
|
+
if (e.split(Be.CACHE_KEY_SEPARATOR).length < 6)
|
|
7755
7758
|
return !1;
|
|
7756
7759
|
var t = e.toLowerCase();
|
|
7757
7760
|
if (t.indexOf(ee.ID_TOKEN.toLowerCase()) === -1 && t.indexOf(ee.ACCESS_TOKEN.toLowerCase()) === -1 && t.indexOf(ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) === -1 && t.indexOf(ee.REFRESH_TOKEN.toLowerCase()) === -1)
|
|
7758
7761
|
return !1;
|
|
7759
7762
|
if (t.indexOf(ee.REFRESH_TOKEN.toLowerCase()) > -1) {
|
|
7760
|
-
var r = "" + ee.REFRESH_TOKEN +
|
|
7763
|
+
var r = "" + ee.REFRESH_TOKEN + Be.CACHE_KEY_SEPARATOR + this.clientId + Be.CACHE_KEY_SEPARATOR, o = "" + ee.REFRESH_TOKEN + Be.CACHE_KEY_SEPARATOR + $n + Be.CACHE_KEY_SEPARATOR;
|
|
7761
7764
|
if (t.indexOf(r.toLowerCase()) === -1 && t.indexOf(o.toLowerCase()) === -1)
|
|
7762
7765
|
return !1;
|
|
7763
7766
|
} else if (t.indexOf(this.clientId.toLowerCase()) === -1)
|
|
@@ -7882,7 +7885,7 @@ var ot = (
|
|
|
7882
7885
|
appMetadata: p
|
|
7883
7886
|
};
|
|
7884
7887
|
}, n.prototype.readAccountFromCache = function(e) {
|
|
7885
|
-
var t =
|
|
7888
|
+
var t = Ge.generateAccountCacheKey(e);
|
|
7886
7889
|
return this.getAccount(t);
|
|
7887
7890
|
}, n.prototype.getIdToken = function(e, t) {
|
|
7888
7891
|
var r = this;
|
|
@@ -7900,7 +7903,7 @@ var ot = (
|
|
|
7900
7903
|
}, n.prototype.getIdTokensByFilter = function(e, t) {
|
|
7901
7904
|
var r = this, o = t && t.idToken || this.getTokenKeys().idToken, i = [];
|
|
7902
7905
|
return o.forEach(function(a) {
|
|
7903
|
-
if (r.idTokenKeyMatchesFilter(a,
|
|
7906
|
+
if (r.idTokenKeyMatchesFilter(a, me({ clientId: r.clientId }, e))) {
|
|
7904
7907
|
var s = r.getIdTokenCredential(a);
|
|
7905
7908
|
s && r.credentialMatchesFilter(s, e) && i.push(s);
|
|
7906
7909
|
}
|
|
@@ -7932,8 +7935,8 @@ var ot = (
|
|
|
7932
7935
|
k && o.credentialMatchesFilter(k, u) && l.push(k);
|
|
7933
7936
|
}
|
|
7934
7937
|
});
|
|
7935
|
-
var
|
|
7936
|
-
return
|
|
7938
|
+
var g = l.length;
|
|
7939
|
+
return g < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : g > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), l.forEach(function(f) {
|
|
7937
7940
|
o.removeAccessToken(f.generateCredentialKey());
|
|
7938
7941
|
}), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), l[0]);
|
|
7939
7942
|
}, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
|
|
@@ -7968,8 +7971,8 @@ var ot = (
|
|
|
7968
7971
|
}, s = r && r.refreshToken || this.getTokenKeys().refreshToken, u = [];
|
|
7969
7972
|
s.forEach(function(l) {
|
|
7970
7973
|
if (o.refreshTokenKeyMatchesFilter(l, a)) {
|
|
7971
|
-
var
|
|
7972
|
-
|
|
7974
|
+
var g = o.getRefreshTokenCredential(l);
|
|
7975
|
+
g && o.credentialMatchesFilter(g, a) && u.push(g);
|
|
7973
7976
|
}
|
|
7974
7977
|
});
|
|
7975
7978
|
var p = u.length;
|
|
@@ -8122,14 +8125,14 @@ var ot = (
|
|
|
8122
8125
|
}(ot)
|
|
8123
8126
|
);
|
|
8124
8127
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8125
|
-
var ja = 300,
|
|
8128
|
+
var ja = 300, gi = {
|
|
8126
8129
|
tokenRenewalOffsetSeconds: ja,
|
|
8127
8130
|
preventCorsPreflight: !1
|
|
8128
8131
|
}, Fa = {
|
|
8129
8132
|
loggerCallback: function() {
|
|
8130
8133
|
},
|
|
8131
8134
|
piiLoggingEnabled: !1,
|
|
8132
|
-
logLevel:
|
|
8135
|
+
logLevel: De.Info,
|
|
8133
8136
|
correlationId: w.EMPTY_STRING
|
|
8134
8137
|
}, qa = {
|
|
8135
8138
|
claimsBasedCachingEnabled: !0
|
|
@@ -8152,7 +8155,7 @@ var ja = 300, mi = {
|
|
|
8152
8155
|
}
|
|
8153
8156
|
}, Ga = {
|
|
8154
8157
|
sku: w.SKU,
|
|
8155
|
-
version:
|
|
8158
|
+
version: go,
|
|
8156
8159
|
cpu: w.EMPTY_STRING,
|
|
8157
8160
|
os: w.EMPTY_STRING
|
|
8158
8161
|
}, Va = {
|
|
@@ -8168,25 +8171,25 @@ var ja = 300, mi = {
|
|
|
8168
8171
|
}
|
|
8169
8172
|
};
|
|
8170
8173
|
function Wa(n) {
|
|
8171
|
-
var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, u = n.clientCredentials, p = n.libraryInfo, l = n.telemetry,
|
|
8174
|
+
var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, u = n.clientCredentials, p = n.libraryInfo, l = n.telemetry, g = n.serverTelemetryManager, f = n.persistencePlugin, k = n.serializableCache, E = me(me({}, Fa), r);
|
|
8172
8175
|
return {
|
|
8173
8176
|
authOptions: $a(e),
|
|
8174
|
-
systemOptions:
|
|
8177
|
+
systemOptions: me(me({}, gi), t),
|
|
8175
8178
|
loggerOptions: E,
|
|
8176
|
-
cacheOptions:
|
|
8177
|
-
storageInterface: i || new Ha(e.clientId, Cr, new
|
|
8179
|
+
cacheOptions: me(me({}, qa), o),
|
|
8180
|
+
storageInterface: i || new Ha(e.clientId, Cr, new mo(E)),
|
|
8178
8181
|
networkInterface: a || Ka,
|
|
8179
8182
|
cryptoInterface: s || Cr,
|
|
8180
8183
|
clientCredentials: u || Va,
|
|
8181
|
-
libraryInfo:
|
|
8182
|
-
telemetry:
|
|
8183
|
-
serverTelemetryManager:
|
|
8184
|
+
libraryInfo: me(me({}, Ga), p),
|
|
8185
|
+
telemetry: me(me({}, Ya), l),
|
|
8186
|
+
serverTelemetryManager: g || null,
|
|
8184
8187
|
persistencePlugin: f || null,
|
|
8185
8188
|
serializableCache: k || null
|
|
8186
8189
|
};
|
|
8187
8190
|
}
|
|
8188
8191
|
function $a(n) {
|
|
8189
|
-
return
|
|
8192
|
+
return me({ clientCapabilities: [], azureCloudOptions: Qa, skipAuthorityMetadataCache: !1 }, n);
|
|
8190
8193
|
}
|
|
8191
8194
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8192
8195
|
var In = (
|
|
@@ -8220,7 +8223,7 @@ var Tr = (
|
|
|
8220
8223
|
}, n.postProcess = function(e, t, r) {
|
|
8221
8224
|
if (n.checkResponseStatus(r) || n.checkResponseForRetryAfter(r)) {
|
|
8222
8225
|
var o = {
|
|
8223
|
-
throttleTime: n.calculateThrottleTime(parseInt(r.headers[
|
|
8226
|
+
throttleTime: n.calculateThrottleTime(parseInt(r.headers[mt.RETRY_AFTER])),
|
|
8224
8227
|
error: r.body.error,
|
|
8225
8228
|
errorCodes: r.body.error_codes,
|
|
8226
8229
|
errorMessage: r.body.error_description,
|
|
@@ -8231,7 +8234,7 @@ var Tr = (
|
|
|
8231
8234
|
}, n.checkResponseStatus = function(e) {
|
|
8232
8235
|
return e.status === 429 || e.status >= 500 && e.status < 600;
|
|
8233
8236
|
}, n.checkResponseForRetryAfter = function(e) {
|
|
8234
|
-
return e.headers ? e.headers.hasOwnProperty(
|
|
8237
|
+
return e.headers ? e.headers.hasOwnProperty(mt.RETRY_AFTER) && (e.status < 200 || e.status >= 300) : !1;
|
|
8235
8238
|
}, n.calculateThrottleTime = function(e) {
|
|
8236
8239
|
var t = e <= 0 ? 0 : e, r = Date.now() / 1e3;
|
|
8237
8240
|
return Math.floor(Math.min(r + (t || Xn.DEFAULT_THROTTLE_TIME_SECONDS), r + Xn.DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1e3);
|
|
@@ -8358,9 +8361,9 @@ var er = (
|
|
|
8358
8361
|
}, n.prototype.addLoginHint = function(e) {
|
|
8359
8362
|
this.parameters.set(Wn.LOGIN_HINT, encodeURIComponent(e));
|
|
8360
8363
|
}, n.prototype.addCcsUpn = function(e) {
|
|
8361
|
-
this.parameters.set(
|
|
8364
|
+
this.parameters.set(mt.CCS_HEADER, encodeURIComponent("UPN:" + e));
|
|
8362
8365
|
}, n.prototype.addCcsOid = function(e) {
|
|
8363
|
-
this.parameters.set(
|
|
8366
|
+
this.parameters.set(mt.CCS_HEADER, encodeURIComponent("Oid:" + e.uid + "@" + e.utid));
|
|
8364
8367
|
}, n.prototype.addSid = function(e) {
|
|
8365
8368
|
this.parameters.set(Wn.SID, encodeURIComponent(e));
|
|
8366
8369
|
}, n.prototype.addClaims = function(e, t) {
|
|
@@ -8450,22 +8453,22 @@ var _o = (
|
|
|
8450
8453
|
/** @class */
|
|
8451
8454
|
function() {
|
|
8452
8455
|
function n(e, t) {
|
|
8453
|
-
this.config = Wa(e), this.logger = new
|
|
8456
|
+
this.config = Wa(e), this.logger = new mo(this.config.loggerOptions, mi, go), this.cryptoUtils = this.config.cryptoInterface, this.cacheManager = this.config.storageInterface, this.networkClient = this.config.networkInterface, this.networkManager = new Ja(this.networkClient, this.cacheManager), this.serverTelemetryManager = this.config.serverTelemetryManager, this.authority = this.config.authOptions.authority, this.performanceClient = t;
|
|
8454
8457
|
}
|
|
8455
8458
|
return n.prototype.createTokenRequestHeaders = function(e) {
|
|
8456
8459
|
var t = {};
|
|
8457
|
-
if (t[
|
|
8460
|
+
if (t[mt.CONTENT_TYPE] = w.URL_FORM_CONTENT_TYPE, !this.config.systemOptions.preventCorsPreflight && e)
|
|
8458
8461
|
switch (e.type) {
|
|
8459
8462
|
case ft.HOME_ACCOUNT_ID:
|
|
8460
8463
|
try {
|
|
8461
8464
|
var r = Nn(e.credential);
|
|
8462
|
-
t[
|
|
8465
|
+
t[mt.CCS_HEADER] = "Oid:" + r.uid + "@" + r.utid;
|
|
8463
8466
|
} catch (o) {
|
|
8464
8467
|
this.logger.verbose("Could not parse home account ID for CCS Header: " + o);
|
|
8465
8468
|
}
|
|
8466
8469
|
break;
|
|
8467
8470
|
case ft.UPN:
|
|
8468
|
-
t[
|
|
8471
|
+
t[mt.CCS_HEADER] = "UPN: " + e.credential;
|
|
8469
8472
|
break;
|
|
8470
8473
|
}
|
|
8471
8474
|
return t;
|
|
@@ -8525,17 +8528,17 @@ var vo = (
|
|
|
8525
8528
|
this.generateClaimsHashForCacheKey(p),
|
|
8526
8529
|
this.generateSchemeForCacheKey(u)
|
|
8527
8530
|
];
|
|
8528
|
-
return l.join(
|
|
8531
|
+
return l.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
8529
8532
|
}, n.generateAccountIdForCacheKey = function(e, t) {
|
|
8530
8533
|
var r = [e, t];
|
|
8531
|
-
return r.join(
|
|
8534
|
+
return r.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
8532
8535
|
}, n.generateCredentialIdForCacheKey = function(e, t, r, o) {
|
|
8533
8536
|
var i = e === ee.REFRESH_TOKEN && o || t, a = [
|
|
8534
8537
|
e,
|
|
8535
8538
|
i,
|
|
8536
8539
|
r || w.EMPTY_STRING
|
|
8537
8540
|
];
|
|
8538
|
-
return a.join(
|
|
8541
|
+
return a.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
8539
8542
|
}, n.generateTargetForCacheKey = function(e) {
|
|
8540
8543
|
return (e || w.EMPTY_STRING).toLowerCase();
|
|
8541
8544
|
}, n.generateClaimsHashForCacheKey = function(e) {
|
|
@@ -8592,11 +8595,11 @@ var En = (
|
|
|
8592
8595
|
function e() {
|
|
8593
8596
|
return n !== null && n.apply(this, arguments) || this;
|
|
8594
8597
|
}
|
|
8595
|
-
return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, l,
|
|
8598
|
+
return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, l, g, f, k, E, P, j) {
|
|
8596
8599
|
var K, z, T = new e();
|
|
8597
8600
|
T.homeAccountId = t, T.credentialType = ee.ACCESS_TOKEN, T.secret = o;
|
|
8598
8601
|
var D = kt.nowSeconds();
|
|
8599
|
-
if (T.cachedAt = D.toString(), T.expiresOn = u.toString(), T.extendedExpiresOn = p.toString(),
|
|
8602
|
+
if (T.cachedAt = D.toString(), T.expiresOn = u.toString(), T.extendedExpiresOn = p.toString(), g && (T.refreshOn = g.toString()), T.environment = r, T.clientId = i, T.realm = a, T.target = s, T.userAssertionHash = k, T.tokenType = V.isEmpty(f) ? _e.BEARER : f, P && (T.requestedClaims = P, T.requestedClaimsHash = j), ((K = T.tokenType) === null || K === void 0 ? void 0 : K.toLowerCase()) !== _e.BEARER.toLowerCase())
|
|
8600
8603
|
switch (T.credentialType = ee.ACCESS_TOKEN_WITH_AUTH_SCHEME, T.tokenType) {
|
|
8601
8604
|
case _e.POP:
|
|
8602
8605
|
var G = Vt.extractTokenClaims(o, l);
|
|
@@ -8883,12 +8886,12 @@ var Hn = (
|
|
|
8883
8886
|
}, n.prototype.signPayload = function(e, t, r, o) {
|
|
8884
8887
|
return oe(this, void 0, void 0, function() {
|
|
8885
8888
|
var i, a, s, u, p, l;
|
|
8886
|
-
return ie(this, function(
|
|
8887
|
-
switch (
|
|
8889
|
+
return ie(this, function(g) {
|
|
8890
|
+
switch (g.label) {
|
|
8888
8891
|
case 0:
|
|
8889
|
-
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new le(a) : void 0, l = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(
|
|
8892
|
+
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new le(a) : void 0, l = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(me({ at: e, ts: kt.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: l == null ? void 0 : l.HostNameAndPort, nonce: u || this.cryptoUtils.createNewGuid(), p: l == null ? void 0 : l.AbsolutePath, q: l != null && l.QueryString ? [[], l.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
|
|
8890
8893
|
case 1:
|
|
8891
|
-
return [2,
|
|
8894
|
+
return [2, g.sent()];
|
|
8892
8895
|
}
|
|
8893
8896
|
});
|
|
8894
8897
|
});
|
|
@@ -8909,7 +8912,7 @@ var no = (
|
|
|
8909
8912
|
e,
|
|
8910
8913
|
t
|
|
8911
8914
|
];
|
|
8912
|
-
return r.join(
|
|
8915
|
+
return r.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
8913
8916
|
}, n.createAppMetadataEntity = function(e, t, r) {
|
|
8914
8917
|
var o = new n();
|
|
8915
8918
|
return o.clientId = e, o.environment = t, r && (o.familyId = r), o;
|
|
@@ -8971,26 +8974,26 @@ var Ir = (
|
|
|
8971
8974
|
}, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
|
|
8972
8975
|
var l;
|
|
8973
8976
|
return oe(this, void 0, void 0, function() {
|
|
8974
|
-
var
|
|
8977
|
+
var g, f, k, E, P, j, K;
|
|
8975
8978
|
return ie(this, function(z) {
|
|
8976
8979
|
switch (z.label) {
|
|
8977
8980
|
case 0:
|
|
8978
8981
|
if ((l = this.performanceClient) === null || l === void 0 || l.addQueueMeasurement(A.HandleServerTokenResponse, e.correlation_id), e.id_token) {
|
|
8979
|
-
if (
|
|
8982
|
+
if (g = new Vt(e.id_token || w.EMPTY_STRING, this.cryptoObj), i && !V.isEmpty(i.nonce) && g.claims.nonce !== i.nonce)
|
|
8980
8983
|
throw Y.createNonceMismatchError();
|
|
8981
8984
|
if (o.maxAge || o.maxAge === 0) {
|
|
8982
|
-
if (f =
|
|
8985
|
+
if (f = g.claims.auth_time, !f)
|
|
8983
8986
|
throw Y.createAuthTimeNotFoundError();
|
|
8984
8987
|
Vt.checkMaxAge(f, o.maxAge);
|
|
8985
8988
|
}
|
|
8986
8989
|
}
|
|
8987
|
-
this.homeAccountIdentifier =
|
|
8990
|
+
this.homeAccountIdentifier = Ge.generateHomeAccountId(e.client_info || w.EMPTY_STRING, t.authorityType, this.logger, this.cryptoObj, g), i && i.state && (k = tn.parseRequestState(this.cryptoObj, i.state)), e.key_id = e.key_id || o.sshKid || void 0, E = this.generateCacheRecord(e, t, r, o, g, a, i), z.label = 1;
|
|
8988
8991
|
case 1:
|
|
8989
8992
|
return z.trys.push([1, , 5, 8]), this.persistencePlugin && this.serializableCache ? (this.logger.verbose("Persistence enabled, calling beforeCacheAccess"), P = new es(this.serializableCache, !0), [4, this.persistencePlugin.beforeCacheAccess(P)]) : [3, 3];
|
|
8990
8993
|
case 2:
|
|
8991
8994
|
z.sent(), z.label = 3;
|
|
8992
8995
|
case 3:
|
|
8993
|
-
return s && !u && E.account && (j = E.account.generateAccountKey(), K = this.cacheStorage.getAccount(j), !K) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o,
|
|
8996
|
+
return s && !u && E.account && (j = E.account.generateAccountKey(), K = this.cacheStorage.getAccount(j), !K) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, g, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
|
|
8994
8997
|
case 4:
|
|
8995
8998
|
return z.sent(), [3, 8];
|
|
8996
8999
|
case 5:
|
|
@@ -9003,7 +9006,7 @@ var Ir = (
|
|
|
9003
9006
|
/*endfinally*/
|
|
9004
9007
|
];
|
|
9005
9008
|
case 8:
|
|
9006
|
-
return [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o,
|
|
9009
|
+
return [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, g, k, e, p)];
|
|
9007
9010
|
}
|
|
9008
9011
|
});
|
|
9009
9012
|
});
|
|
@@ -9013,24 +9016,24 @@ var Ir = (
|
|
|
9013
9016
|
throw Y.createInvalidCacheEnvironmentError();
|
|
9014
9017
|
var p, l;
|
|
9015
9018
|
!V.isEmpty(e.id_token) && i && (p = Cn.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || w.EMPTY_STRING, this.clientId, i.claims.tid || w.EMPTY_STRING), l = this.generateAccountEntity(e, i, t, s));
|
|
9016
|
-
var
|
|
9019
|
+
var g = null;
|
|
9017
9020
|
if (!V.isEmpty(e.access_token)) {
|
|
9018
9021
|
var f = e.scope ? Xe.fromString(e.scope) : new Xe(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, P = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, j = r + k, K = j + E, z = P && P > 0 ? r + P : void 0;
|
|
9019
|
-
|
|
9022
|
+
g = En.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || w.EMPTY_STRING, this.clientId, i ? i.claims.tid || w.EMPTY_STRING : t.tenant, f.printScopes(), j, K, this.cryptoObj, z, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
|
|
9020
9023
|
}
|
|
9021
9024
|
var T = null;
|
|
9022
9025
|
V.isEmpty(e.refresh_token) || (T = On.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || w.EMPTY_STRING, this.clientId, e.foci, a));
|
|
9023
9026
|
var D = null;
|
|
9024
|
-
return V.isEmpty(e.foci) || (D = no.createAppMetadataEntity(this.clientId, u, e.foci)), new tr(l, p,
|
|
9027
|
+
return V.isEmpty(e.foci) || (D = no.createAppMetadataEntity(this.clientId, u, e.foci)), new tr(l, p, g, T, D);
|
|
9025
9028
|
}, n.prototype.generateAccountEntity = function(e, t, r, o) {
|
|
9026
9029
|
var i = r.authorityType, a = o ? o.cloud_graph_host_name : w.EMPTY_STRING, s = o ? o.msgraph_host : w.EMPTY_STRING;
|
|
9027
9030
|
if (i === tt.Adfs)
|
|
9028
|
-
return this.logger.verbose("Authority type is ADFS, creating ADFS account"),
|
|
9031
|
+
return this.logger.verbose("Authority type is ADFS, creating ADFS account"), Ge.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
|
|
9029
9032
|
if (V.isEmpty(e.client_info) && r.protocolMode === "AAD")
|
|
9030
9033
|
throw Y.createClientInfoEmptyError();
|
|
9031
|
-
return e.client_info ?
|
|
9034
|
+
return e.client_info ? Ge.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : Ge.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
|
|
9032
9035
|
}, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
|
|
9033
|
-
var l,
|
|
9036
|
+
var l, g, f;
|
|
9034
9037
|
return oe(this, void 0, void 0, function() {
|
|
9035
9038
|
var k, E, P, j, K, z, T, D, G, J, te;
|
|
9036
9039
|
return ie(this, function(Z) {
|
|
@@ -9067,7 +9070,7 @@ var Ir = (
|
|
|
9067
9070
|
familyId: K,
|
|
9068
9071
|
tokenType: ((l = r.accessToken) === null || l === void 0 ? void 0 : l.tokenType) || w.EMPTY_STRING,
|
|
9069
9072
|
state: s ? s.userRequestState : w.EMPTY_STRING,
|
|
9070
|
-
cloudGraphHostName: ((
|
|
9073
|
+
cloudGraphHostName: ((g = r.account) === null || g === void 0 ? void 0 : g.cloudGraphHostName) || w.EMPTY_STRING,
|
|
9071
9074
|
msGraphHost: ((f = r.account) === null || f === void 0 ? void 0 : f.msGraphHost) || w.EMPTY_STRING,
|
|
9072
9075
|
code: u == null ? void 0 : u.spa_code,
|
|
9073
9076
|
fromNativeBroker: !1
|
|
@@ -9103,17 +9106,17 @@ var _i = (
|
|
|
9103
9106
|
}, e.prototype.acquireToken = function(t, r) {
|
|
9104
9107
|
var o, i, a, s, u, p;
|
|
9105
9108
|
return oe(this, void 0, void 0, function() {
|
|
9106
|
-
var l,
|
|
9109
|
+
var l, g, f, k, E, P, j = this;
|
|
9107
9110
|
return ie(this, function(K) {
|
|
9108
9111
|
switch (K.label) {
|
|
9109
9112
|
case 0:
|
|
9110
9113
|
if (!t || !t.code)
|
|
9111
9114
|
throw Y.createTokenRequestCannotBeMadeError();
|
|
9112
|
-
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.AuthClientAcquireToken, t.correlationId), l = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"),
|
|
9115
|
+
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.AuthClientAcquireToken, t.correlationId), l = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), g = kt.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
|
|
9113
9116
|
case 1:
|
|
9114
|
-
return f = K.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[
|
|
9117
|
+
return f = K.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[mt.X_MS_REQUEST_ID], E = (u = f.headers) === null || u === void 0 ? void 0 : u[mt.X_MS_HTTP_VERSION], E && (l == null || l.addStaticFields({
|
|
9115
9118
|
httpVerAuthority: E
|
|
9116
|
-
})), P = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority,
|
|
9119
|
+
})), P = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority, g, t, r, void 0, void 0, void 0, k).then(function(z) {
|
|
9117
9120
|
return l == null || l.endMeasurement({
|
|
9118
9121
|
success: !0
|
|
9119
9122
|
}), z;
|
|
@@ -9131,7 +9134,7 @@ var _i = (
|
|
|
9131
9134
|
var o = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, null, null), i = new le(t), a = le.getDeserializedHash(i.getHash());
|
|
9132
9135
|
if (o.validateServerAuthorizationCodeResponse(a, r, this.cryptoUtils), !a.code)
|
|
9133
9136
|
throw Y.createNoAuthCodeInServerResponseError();
|
|
9134
|
-
return
|
|
9137
|
+
return me(me({}, a), {
|
|
9135
9138
|
// Code param is optional in ServerAuthorizationCodeResponse but required in AuthorizationCodePaylod
|
|
9136
9139
|
code: a.code
|
|
9137
9140
|
});
|
|
@@ -9143,7 +9146,7 @@ var _i = (
|
|
|
9143
9146
|
}, e.prototype.executeTokenRequest = function(t, r) {
|
|
9144
9147
|
var o, i;
|
|
9145
9148
|
return oe(this, void 0, void 0, function() {
|
|
9146
|
-
var a, s, u, p, l,
|
|
9149
|
+
var a, s, u, p, l, g, f;
|
|
9147
9150
|
return ie(this, function(k) {
|
|
9148
9151
|
switch (k.label) {
|
|
9149
9152
|
case 0:
|
|
@@ -9152,13 +9155,13 @@ var _i = (
|
|
|
9152
9155
|
if (u = k.sent(), p = void 0, r.clientInfo)
|
|
9153
9156
|
try {
|
|
9154
9157
|
l = Er(r.clientInfo, this.cryptoUtils), p = {
|
|
9155
|
-
credential: "" + l.uid +
|
|
9158
|
+
credential: "" + l.uid + Be.CLIENT_INFO_SEPARATOR + l.utid,
|
|
9156
9159
|
type: ft.HOME_ACCOUNT_ID
|
|
9157
9160
|
};
|
|
9158
9161
|
} catch (E) {
|
|
9159
9162
|
this.logger.verbose("Could not parse client info for CCS Header: " + E);
|
|
9160
9163
|
}
|
|
9161
|
-
return
|
|
9164
|
+
return g = this.createTokenRequestHeaders(p || r.ccsCredential), f = {
|
|
9162
9165
|
clientId: this.config.authOptions.clientId,
|
|
9163
9166
|
authority: t.canonicalAuthority,
|
|
9164
9167
|
scopes: r.scopes,
|
|
@@ -9168,14 +9171,14 @@ var _i = (
|
|
|
9168
9171
|
resourceRequestUri: r.resourceRequestUri,
|
|
9169
9172
|
shrClaims: r.shrClaims,
|
|
9170
9173
|
sshKid: r.sshKid
|
|
9171
|
-
}, [2, this.executePostToTokenEndpoint(s, u,
|
|
9174
|
+
}, [2, this.executePostToTokenEndpoint(s, u, g, f)];
|
|
9172
9175
|
}
|
|
9173
9176
|
});
|
|
9174
9177
|
});
|
|
9175
9178
|
}, e.prototype.createTokenRequestBody = function(t) {
|
|
9176
9179
|
var r, o;
|
|
9177
9180
|
return oe(this, void 0, void 0, function() {
|
|
9178
|
-
var i, a, s, u, p, l,
|
|
9181
|
+
var i, a, s, u, p, l, g, g, f;
|
|
9179
9182
|
return ie(this, function(k) {
|
|
9180
9183
|
switch (k.label) {
|
|
9181
9184
|
case 0:
|
|
@@ -9192,8 +9195,8 @@ var _i = (
|
|
|
9192
9195
|
case 3:
|
|
9193
9196
|
if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!V.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), l = void 0, t.clientInfo)
|
|
9194
9197
|
try {
|
|
9195
|
-
|
|
9196
|
-
credential: "" +
|
|
9198
|
+
g = Er(t.clientInfo, this.cryptoUtils), l = {
|
|
9199
|
+
credential: "" + g.uid + Be.CLIENT_INFO_SEPARATOR + g.utid,
|
|
9197
9200
|
type: ft.HOME_ACCOUNT_ID
|
|
9198
9201
|
};
|
|
9199
9202
|
} catch (E) {
|
|
@@ -9205,7 +9208,7 @@ var _i = (
|
|
|
9205
9208
|
switch (l.type) {
|
|
9206
9209
|
case ft.HOME_ACCOUNT_ID:
|
|
9207
9210
|
try {
|
|
9208
|
-
|
|
9211
|
+
g = Nn(l.credential), i.addCcsOid(g);
|
|
9209
9212
|
} catch (E) {
|
|
9210
9213
|
this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
|
|
9211
9214
|
}
|
|
@@ -9221,7 +9224,7 @@ var _i = (
|
|
|
9221
9224
|
}, e.prototype.createAuthCodeUrlQueryString = function(t) {
|
|
9222
9225
|
var r;
|
|
9223
9226
|
return oe(this, void 0, void 0, function() {
|
|
9224
|
-
var o, i, a, s, u, p, p, p, l,
|
|
9227
|
+
var o, i, a, s, u, p, p, p, l, g;
|
|
9225
9228
|
return ie(this, function(f) {
|
|
9226
9229
|
switch (f.label) {
|
|
9227
9230
|
case 0:
|
|
@@ -9259,7 +9262,7 @@ var _i = (
|
|
|
9259
9262
|
this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
|
|
9260
9263
|
return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!V.isEmpty(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && o.addClaims(t.claims, this.config.authOptions.clientCapabilities), t.extraQueryParameters && o.addExtraQueryParameters(t.extraQueryParameters), t.nativeBroker ? (o.addNativeBroker(), t.authenticationScheme !== _e.POP ? [3, 2] : (l = new Hn(this.cryptoUtils), [4, l.generateCnf(t)])) : [3, 2];
|
|
9261
9264
|
case 1:
|
|
9262
|
-
|
|
9265
|
+
g = f.sent(), o.addPopToken(g.reqCnfString), f.label = 2;
|
|
9263
9266
|
case 2:
|
|
9264
9267
|
return [2, o.createQueryString()];
|
|
9265
9268
|
}
|
|
@@ -9288,17 +9291,17 @@ var vi = (
|
|
|
9288
9291
|
return e.prototype.acquireToken = function(t) {
|
|
9289
9292
|
var r, o, i, a, s, u, p;
|
|
9290
9293
|
return oe(this, void 0, void 0, function() {
|
|
9291
|
-
var l,
|
|
9294
|
+
var l, g, f, k, E, P, j = this;
|
|
9292
9295
|
return ie(this, function(K) {
|
|
9293
9296
|
switch (K.label) {
|
|
9294
9297
|
case 0:
|
|
9295
|
-
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), l = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId),
|
|
9298
|
+
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), l = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), g = kt.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
|
|
9296
9299
|
case 1:
|
|
9297
|
-
return f = K.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[
|
|
9300
|
+
return f = K.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[mt.X_MS_HTTP_VERSION], l == null || l.addStaticFields({
|
|
9298
9301
|
refreshTokenSize: ((s = f.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
|
|
9299
9302
|
}), k && (l == null || l.addStaticFields({
|
|
9300
9303
|
httpVerToken: k
|
|
9301
|
-
})), E = (u = f.headers) === null || u === void 0 ? void 0 : u[
|
|
9304
|
+
})), E = (u = f.headers) === null || u === void 0 ? void 0 : u[mt.X_MS_REQUEST_ID], P = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority, g, t, void 0, void 0, !0, t.forceCache, E).then(function(z) {
|
|
9302
9305
|
return l == null || l.endMeasurement({
|
|
9303
9306
|
success: !0
|
|
9304
9307
|
}), z;
|
|
@@ -9324,10 +9327,10 @@ var vi = (
|
|
|
9324
9327
|
if (s = this.cacheManager.isAppMetadataFOCI(t.account.environment), s)
|
|
9325
9328
|
try {
|
|
9326
9329
|
return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
|
|
9327
|
-
} catch (
|
|
9328
|
-
if (u =
|
|
9330
|
+
} catch (g) {
|
|
9331
|
+
if (u = g instanceof Pt && g.errorCode === Ln.noTokensFoundError.code, p = g instanceof In && g.errorCode === Lo.INVALID_GRANT_ERROR && g.subError === Lo.CLIENT_MISMATCH_ERROR, u || p)
|
|
9329
9332
|
return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
9330
|
-
throw
|
|
9333
|
+
throw g;
|
|
9331
9334
|
}
|
|
9332
9335
|
return (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
9333
9336
|
});
|
|
@@ -9341,7 +9344,7 @@ var vi = (
|
|
|
9341
9344
|
throw s == null || s.discardMeasurement(), Pt.createNoTokensFoundError();
|
|
9342
9345
|
return s == null || s.endMeasurement({
|
|
9343
9346
|
success: !0
|
|
9344
|
-
}), p =
|
|
9347
|
+
}), p = me(me({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || _e.BEARER, ccsCredential: {
|
|
9345
9348
|
credential: t.account.homeAccountId,
|
|
9346
9349
|
type: ft.HOME_ACCOUNT_ID
|
|
9347
9350
|
} }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
|
|
@@ -9350,13 +9353,13 @@ var vi = (
|
|
|
9350
9353
|
}, e.prototype.executeTokenRequest = function(t, r) {
|
|
9351
9354
|
var o, i, a;
|
|
9352
9355
|
return oe(this, void 0, void 0, function() {
|
|
9353
|
-
var s, u, p, l,
|
|
9356
|
+
var s, u, p, l, g, f;
|
|
9354
9357
|
return ie(this, function(k) {
|
|
9355
9358
|
switch (k.label) {
|
|
9356
9359
|
case 0:
|
|
9357
9360
|
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientCreateTokenRequestBody, t.correlationId), u = this.createTokenQueryParameters(t), p = le.appendQueryString(r.tokenEndpoint, u), [4, this.createTokenRequestBody(t)];
|
|
9358
9361
|
case 1:
|
|
9359
|
-
return l = k.sent(),
|
|
9362
|
+
return l = k.sent(), g = this.createTokenRequestHeaders(t.ccsCredential), f = {
|
|
9360
9363
|
clientId: this.config.authOptions.clientId,
|
|
9361
9364
|
authority: r.canonicalAuthority,
|
|
9362
9365
|
scopes: t.scopes,
|
|
@@ -9366,7 +9369,7 @@ var vi = (
|
|
|
9366
9369
|
resourceRequestUri: t.resourceRequestUri,
|
|
9367
9370
|
shrClaims: t.shrClaims,
|
|
9368
9371
|
sshKid: t.sshKid
|
|
9369
|
-
}, [2, this.executePostToTokenEndpoint(p, l,
|
|
9372
|
+
}, [2, this.executePostToTokenEndpoint(p, l, g, f).then(function(E) {
|
|
9370
9373
|
return s == null || s.endMeasurement({
|
|
9371
9374
|
success: !0
|
|
9372
9375
|
}), E;
|
|
@@ -9381,13 +9384,13 @@ var vi = (
|
|
|
9381
9384
|
}, e.prototype.createTokenRequestBody = function(t) {
|
|
9382
9385
|
var r, o, i;
|
|
9383
9386
|
return oe(this, void 0, void 0, function() {
|
|
9384
|
-
var a, s, u, p, l,
|
|
9387
|
+
var a, s, u, p, l, g, f;
|
|
9385
9388
|
return ie(this, function(k) {
|
|
9386
9389
|
switch (k.label) {
|
|
9387
9390
|
case 0:
|
|
9388
9391
|
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.BaseClientCreateTokenRequestHeaders, a), u = new er(), u.addClientId(this.config.authOptions.clientId), u.addScopes(t.scopes), u.addGrantType(br.REFRESH_TOKEN_GRANT), u.addClientInfo(), u.addLibraryInfo(this.config.libraryInfo), u.addApplicationTelemetry(this.config.telemetry.application), u.addThrottling(), this.serverTelemetryManager && u.addServerTelemetry(this.serverTelemetryManager), u.addCorrelationId(a), u.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && u.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, u.addClientAssertion(p.assertion), u.addClientAssertionType(p.assertionType)), t.authenticationScheme !== _e.POP ? [3, 2] : (l = new Hn(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.PopTokenGenerateCnf, t.correlationId), [4, l.generateCnf(t)]);
|
|
9389
9392
|
case 1:
|
|
9390
|
-
return
|
|
9393
|
+
return g = k.sent(), u.addPopToken(g.reqCnfString), [3, 3];
|
|
9391
9394
|
case 2:
|
|
9392
9395
|
if (t.authenticationScheme === _e.SSH)
|
|
9393
9396
|
if (t.sshJwk)
|
|
@@ -9548,7 +9551,7 @@ var is = (
|
|
|
9548
9551
|
return n.prototype.detectRegion = function(e, t) {
|
|
9549
9552
|
var r, o, i, a;
|
|
9550
9553
|
return oe(this, void 0, void 0, function() {
|
|
9551
|
-
var s, u, p, l,
|
|
9554
|
+
var s, u, p, l, g;
|
|
9552
9555
|
return ie(this, function(f) {
|
|
9553
9556
|
switch (f.label) {
|
|
9554
9557
|
case 0:
|
|
@@ -9562,7 +9565,7 @@ var is = (
|
|
|
9562
9565
|
case 3:
|
|
9563
9566
|
return l = f.sent(), l ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(l, u)]) : (t.region_source = dn.FAILED_AUTO_DETECTION, [2, null]);
|
|
9564
9567
|
case 4:
|
|
9565
|
-
|
|
9568
|
+
g = f.sent(), g.status === Mn.httpSuccess && (s = g.body, t.region_source = dn.IMDS), f.label = 5;
|
|
9566
9569
|
case 5:
|
|
9567
9570
|
return [3, 7];
|
|
9568
9571
|
case 6:
|
|
@@ -9773,8 +9776,8 @@ var ir = (
|
|
|
9773
9776
|
return s.forEach(function(u, p) {
|
|
9774
9777
|
var l = a[p];
|
|
9775
9778
|
if (p === 0 && t.canReplaceTenant(i)) {
|
|
9776
|
-
var
|
|
9777
|
-
l !==
|
|
9779
|
+
var g = new le(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
|
|
9780
|
+
l !== g && (t.logger.verbose("Replacing tenant domain name " + l + " with id " + g), l = g);
|
|
9778
9781
|
}
|
|
9779
9782
|
u !== l && (r = r.replace("/" + l + "/", "/" + u + "/"));
|
|
9780
9783
|
}), this.replaceTenant(r);
|
|
@@ -9988,7 +9991,7 @@ Error Description: ` + p.message)), [2, null];
|
|
|
9988
9991
|
o.validateAsUri();
|
|
9989
9992
|
var i = o.getUrlComponents(), a = t + "." + i.HostNameAndPort;
|
|
9990
9993
|
this.isPublicCloudAuthority(i.HostNameAndPort) && (a = t + "." + w.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);
|
|
9991
|
-
var s = le.constructAuthorityUriFromObject(
|
|
9994
|
+
var s = le.constructAuthorityUriFromObject(me(me({}, o.getUrlComponents()), { HostNameAndPort: a })).urlString;
|
|
9992
9995
|
return r ? s + "?" + r : s;
|
|
9993
9996
|
}, n.replaceWithRegionalInformation = function(e, t) {
|
|
9994
9997
|
return e.authorization_endpoint = n.buildRegionalAuthorityString(e.authorization_endpoint, t), e.token_endpoint = n.buildRegionalAuthorityString(e.token_endpoint, t, w.REGIONAL_AUTH_NON_MSI_QUERY_STRING), e.end_session_endpoint && (e.end_session_endpoint = n.buildRegionalAuthorityString(e.end_session_endpoint, t)), e;
|
|
@@ -10017,16 +10020,16 @@ var Ar = (
|
|
|
10017
10020
|
return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
|
|
10018
10021
|
return oe(this, void 0, void 0, function() {
|
|
10019
10022
|
var u, p, l;
|
|
10020
|
-
return ie(this, function(
|
|
10021
|
-
switch (
|
|
10023
|
+
return ie(this, function(g) {
|
|
10024
|
+
switch (g.label) {
|
|
10022
10025
|
case 0:
|
|
10023
|
-
a == null || a.addQueueMeasurement(A.AuthorityFactoryCreateDiscoveredInstance, s), u = ir.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s),
|
|
10026
|
+
a == null || a.addQueueMeasurement(A.AuthorityFactoryCreateDiscoveredInstance, s), u = ir.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s), g.label = 1;
|
|
10024
10027
|
case 1:
|
|
10025
|
-
return
|
|
10028
|
+
return g.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(A.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
|
|
10026
10029
|
case 2:
|
|
10027
|
-
return
|
|
10030
|
+
return g.sent(), [2, p];
|
|
10028
10031
|
case 3:
|
|
10029
|
-
throw l =
|
|
10032
|
+
throw l = g.sent(), Y.createEndpointDiscoveryIncompleteError(l);
|
|
10030
10033
|
case 4:
|
|
10031
10034
|
return [
|
|
10032
10035
|
2
|
|
@@ -10081,7 +10084,7 @@ var as = {
|
|
|
10081
10084
|
}
|
|
10082
10085
|
};
|
|
10083
10086
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
10084
|
-
var
|
|
10087
|
+
var mr = {
|
|
10085
10088
|
missingKidError: {
|
|
10086
10089
|
code: "missing_kid_error",
|
|
10087
10090
|
desc: "The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."
|
|
@@ -10099,9 +10102,9 @@ var gr = {
|
|
|
10099
10102
|
return o.name = "JoseHeaderError", Object.setPrototypeOf(o, e.prototype), o;
|
|
10100
10103
|
}
|
|
10101
10104
|
return e.createMissingKidError = function() {
|
|
10102
|
-
return new e(
|
|
10105
|
+
return new e(mr.missingKidError.code, mr.missingKidError.desc);
|
|
10103
10106
|
}, e.createMissingAlgError = function() {
|
|
10104
|
-
return new e(
|
|
10107
|
+
return new e(mr.missingAlgError.code, mr.missingAlgError.desc);
|
|
10105
10108
|
}, e;
|
|
10106
10109
|
}(X)
|
|
10107
10110
|
);
|
|
@@ -10132,7 +10135,7 @@ var cs = (
|
|
|
10132
10135
|
/** @class */
|
|
10133
10136
|
function() {
|
|
10134
10137
|
function n(e, t) {
|
|
10135
|
-
this.cacheOutcome = hn.NO_CACHE_HIT, this.cacheManager = t, this.apiId = e.apiId, this.correlationId = e.correlationId, this.wrapperSKU = e.wrapperSKU || w.EMPTY_STRING, this.wrapperVer = e.wrapperVer || w.EMPTY_STRING, this.telemetryCacheKey = qe.CACHE_KEY +
|
|
10138
|
+
this.cacheOutcome = hn.NO_CACHE_HIT, this.cacheManager = t, this.apiId = e.apiId, this.correlationId = e.correlationId, this.wrapperSKU = e.wrapperSKU || w.EMPTY_STRING, this.wrapperVer = e.wrapperVer || w.EMPTY_STRING, this.telemetryCacheKey = qe.CACHE_KEY + Be.CACHE_KEY_SEPARATOR + e.clientId;
|
|
10136
10139
|
}
|
|
10137
10140
|
return n.prototype.generateCurrentRequestHeaderValue = function() {
|
|
10138
10141
|
var e = "" + this.apiId + qe.VALUE_SEPARATOR + this.cacheOutcome, t = [this.wrapperSKU, this.wrapperVer].join(qe.VALUE_SEPARATOR), r = this.getRegionDiscoveryFields(), o = [e, r].join(qe.VALUE_SEPARATOR);
|
|
@@ -10244,7 +10247,7 @@ var wi = (
|
|
|
10244
10247
|
};
|
|
10245
10248
|
return this.cacheEventByCorrelationId(u), {
|
|
10246
10249
|
endMeasurement: function(p) {
|
|
10247
|
-
return r.endMeasurement(
|
|
10250
|
+
return r.endMeasurement(me(me({}, u), p), s);
|
|
10248
10251
|
},
|
|
10249
10252
|
discardMeasurement: function() {
|
|
10250
10253
|
return r.discardMeasurements(u.correlationId);
|
|
@@ -10272,15 +10275,15 @@ var wi = (
|
|
|
10272
10275
|
if (!p)
|
|
10273
10276
|
return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
|
|
10274
10277
|
if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
|
|
10275
|
-
return a[e.name + "DurationMs"] = Math.floor(p),
|
|
10276
|
-
var l =
|
|
10278
|
+
return a[e.name + "DurationMs"] = Math.floor(p), me({}, a);
|
|
10279
|
+
var l = me(me({}, a), e), g = 0;
|
|
10277
10280
|
return (i = l.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(f) {
|
|
10278
|
-
r.logger.trace("PerformanceClient: Incomplete submeasurement " + f.name + " found for " + e.name, l.correlationId),
|
|
10279
|
-
}), l.incompleteSubMeasurements = void 0, l =
|
|
10281
|
+
r.logger.trace("PerformanceClient: Incomplete submeasurement " + f.name + " found for " + e.name, l.correlationId), g++;
|
|
10282
|
+
}), l.incompleteSubMeasurements = void 0, l = me(me({}, l), { durationMs: Math.round(p), queuedTimeMs: u.totalQueueTime, queuedCount: u.totalQueueCount, queuedManuallyCompletedCount: u.manuallyCompletedCount, status: Sr.Completed, incompleteSubsCount: g }), this.truncateIntegralFields(l, this.getIntFields()), this.emitEvents([l], e.correlationId), l;
|
|
10280
10283
|
}, n.prototype.addStaticFields = function(e, t) {
|
|
10281
10284
|
this.logger.trace("PerformanceClient: Updating static fields");
|
|
10282
10285
|
var r = this.eventsByCorrelationId.get(t);
|
|
10283
|
-
r ? this.eventsByCorrelationId.set(t,
|
|
10286
|
+
r ? this.eventsByCorrelationId.set(t, me(me({}, r), e)) : this.logger.trace("PerformanceClient: Event not found for", t);
|
|
10284
10287
|
}, n.prototype.increment = function(e, t) {
|
|
10285
10288
|
this.logger.trace("PerformanceClient: Updating counters");
|
|
10286
10289
|
var r = this.eventsByCorrelationId.get(t);
|
|
@@ -10291,7 +10294,7 @@ var wi = (
|
|
|
10291
10294
|
this.logger.trace("PerformanceClient: Event not found for", t);
|
|
10292
10295
|
}, n.prototype.cacheEventByCorrelationId = function(e) {
|
|
10293
10296
|
var t = this.eventsByCorrelationId.get(e.correlationId);
|
|
10294
|
-
t ? (this.logger.trace("PerformanceClient: Performance measurement for " + e.name + " added/updated", e.correlationId), t.incompleteSubMeasurements = t.incompleteSubMeasurements || /* @__PURE__ */ new Map(), t.incompleteSubMeasurements.set(e.eventId, { name: e.name, startTimeMs: e.startTimeMs })) : (this.logger.trace("PerformanceClient: Performance measurement for " + e.name + " started", e.correlationId), this.eventsByCorrelationId.set(e.correlationId,
|
|
10297
|
+
t ? (this.logger.trace("PerformanceClient: Performance measurement for " + e.name + " added/updated", e.correlationId), t.incompleteSubMeasurements = t.incompleteSubMeasurements || /* @__PURE__ */ new Map(), t.incompleteSubMeasurements.set(e.eventId, { name: e.name, startTimeMs: e.startTimeMs })) : (this.logger.trace("PerformanceClient: Performance measurement for " + e.name + " started", e.correlationId), this.eventsByCorrelationId.set(e.correlationId, me({}, e)));
|
|
10295
10298
|
}, n.prototype.getQueueInfo = function(e) {
|
|
10296
10299
|
var t = this.queueMeasurements.get(e);
|
|
10297
10300
|
t || this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: " + e);
|
|
@@ -10539,10 +10542,10 @@ var U = {
|
|
|
10539
10542
|
code: "native_prompt_not_supported",
|
|
10540
10543
|
desc: "The provided prompt is not supported by the native platform. This request should be routed to the web based flow."
|
|
10541
10544
|
}
|
|
10542
|
-
},
|
|
10545
|
+
}, q = (
|
|
10543
10546
|
/** @class */
|
|
10544
10547
|
function(n) {
|
|
10545
|
-
|
|
10548
|
+
Qe(e, n);
|
|
10546
10549
|
function e(t, r) {
|
|
10547
10550
|
var o = n.call(this, t, r) || this;
|
|
10548
10551
|
return Object.setPrototypeOf(o, e.prototype), o.name = "BrowserAuthError", o;
|
|
@@ -10758,7 +10761,7 @@ var rt = {
|
|
|
10758
10761
|
}, Pr = (
|
|
10759
10762
|
/** @class */
|
|
10760
10763
|
function(n) {
|
|
10761
|
-
|
|
10764
|
+
Qe(e, n);
|
|
10762
10765
|
function e(t, r) {
|
|
10763
10766
|
var o = n.call(this, t, r) || this;
|
|
10764
10767
|
return o.name = "BrowserConfigurationAuthError", Object.setPrototypeOf(o, e.prototype), o;
|
|
@@ -10858,7 +10861,7 @@ var bi = (
|
|
|
10858
10861
|
var ao = (
|
|
10859
10862
|
/** @class */
|
|
10860
10863
|
function(n) {
|
|
10861
|
-
|
|
10864
|
+
Qe(e, n);
|
|
10862
10865
|
function e(t, r, o, i) {
|
|
10863
10866
|
var a = n.call(this, t, o, i) || this;
|
|
10864
10867
|
return a.COOKIE_LIFE_MULTIPLIER = 24 * 60 * 60 * 1e3, a.cacheConfig = r, a.logger = i, a.internalStorage = new io(), a.browserStorage = a.setupBrowserStorage(a.cacheConfig.cacheLocation), a.temporaryCacheStorage = a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation, a.cacheConfig.cacheLocation), r.cacheMigrationEnabled && (a.migrateCacheEntries(), a.createKeyMaps()), a;
|
|
@@ -10889,9 +10892,9 @@ var ao = (
|
|
|
10889
10892
|
return this.internalStorage;
|
|
10890
10893
|
}
|
|
10891
10894
|
}, e.prototype.migrateCacheEntries = function() {
|
|
10892
|
-
var t = this, r = w.CACHE_PREFIX + "." + xe.ID_TOKEN, o = w.CACHE_PREFIX + "." + xe.CLIENT_INFO, i = w.CACHE_PREFIX + "." + xe.ERROR, a = w.CACHE_PREFIX + "." + xe.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), l = this.browserStorage.getItem(a),
|
|
10895
|
+
var t = this, r = w.CACHE_PREFIX + "." + xe.ID_TOKEN, o = w.CACHE_PREFIX + "." + xe.CLIENT_INFO, i = w.CACHE_PREFIX + "." + xe.ERROR, a = w.CACHE_PREFIX + "." + xe.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), l = this.browserStorage.getItem(a), g = [s, u, p, l], f = [xe.ID_TOKEN, xe.CLIENT_INFO, xe.ERROR, xe.ERROR_DESC];
|
|
10893
10896
|
f.forEach(function(k, E) {
|
|
10894
|
-
return t.migrateCacheEntry(k,
|
|
10897
|
+
return t.migrateCacheEntry(k, g[E]);
|
|
10895
10898
|
});
|
|
10896
10899
|
}, e.prototype.migrateCacheEntry = function(t, r) {
|
|
10897
10900
|
r && this.setTemporaryCache(t, r, !0);
|
|
@@ -10924,7 +10927,7 @@ var ao = (
|
|
|
10924
10927
|
case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:
|
|
10925
10928
|
if (En.isAccessTokenEntity(u)) {
|
|
10926
10929
|
t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: " + a + " found, saving key to token key map");
|
|
10927
|
-
var
|
|
10930
|
+
var g = ot.toObject(new En(), u), l = t.updateCredentialCacheKey(a, g);
|
|
10928
10931
|
t.addTokenKey(l, ee.ACCESS_TOKEN);
|
|
10929
10932
|
return;
|
|
10930
10933
|
} else
|
|
@@ -10946,7 +10949,7 @@ var ao = (
|
|
|
10946
10949
|
var s = t.getItem(a);
|
|
10947
10950
|
if (s) {
|
|
10948
10951
|
var k = t.validateAndParseJson(s);
|
|
10949
|
-
k &&
|
|
10952
|
+
k && Ge.isAccountEntity(k) && (t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: " + a + " found, saving key to account key map"), t.addAccountKeyToMap(a));
|
|
10950
10953
|
}
|
|
10951
10954
|
}
|
|
10952
10955
|
});
|
|
@@ -10967,7 +10970,7 @@ var ao = (
|
|
|
10967
10970
|
if (!r)
|
|
10968
10971
|
return this.removeAccountKeyFromMap(t), null;
|
|
10969
10972
|
var o = this.validateAndParseJson(r);
|
|
10970
|
-
return !o || !
|
|
10973
|
+
return !o || !Ge.isAccountEntity(o) ? (this.removeAccountKeyFromMap(t), null) : ot.toObject(new Ge(), o);
|
|
10971
10974
|
}, e.prototype.setAccount = function(t) {
|
|
10972
10975
|
this.logger.trace("BrowserCacheManager.setAccount called");
|
|
10973
10976
|
var r = t.generateAccountKey();
|
|
@@ -11341,14 +11344,14 @@ var ao = (
|
|
|
11341
11344
|
this.logger.trace("BrowserCacheManager.getCachedRequest called");
|
|
11342
11345
|
var o = this.getTemporaryCache(ue.REQUEST_PARAMS, !0);
|
|
11343
11346
|
if (!o)
|
|
11344
|
-
throw
|
|
11347
|
+
throw q.createNoTokenRequestCacheError();
|
|
11345
11348
|
var i = this.validateAndParseJson(r.base64Decode(o));
|
|
11346
11349
|
if (!i)
|
|
11347
|
-
throw
|
|
11350
|
+
throw q.createUnableToParseTokenRequestCacheError();
|
|
11348
11351
|
if (this.removeItem(this.generateCacheKey(ue.REQUEST_PARAMS)), V.isEmpty(i.authority)) {
|
|
11349
11352
|
var a = this.generateAuthorityKey(t), s = this.getTemporaryCache(a);
|
|
11350
11353
|
if (!s)
|
|
11351
|
-
throw
|
|
11354
|
+
throw q.createNoCachedAuthorityError();
|
|
11352
11355
|
i.authority = s;
|
|
11353
11356
|
}
|
|
11354
11357
|
return i;
|
|
@@ -11369,7 +11372,7 @@ var ao = (
|
|
|
11369
11372
|
var r = w.CACHE_PREFIX + "." + ue.INTERACTION_STATUS_KEY;
|
|
11370
11373
|
if (t) {
|
|
11371
11374
|
if (this.getInteractionInProgress())
|
|
11372
|
-
throw
|
|
11375
|
+
throw q.createInteractionInProgressError();
|
|
11373
11376
|
this.setTemporaryCache(r, this.clientId, !1);
|
|
11374
11377
|
} else
|
|
11375
11378
|
!t && this.getInteractionInProgress() === this.clientId && this.removeItem(r);
|
|
@@ -11435,7 +11438,7 @@ var hs = (
|
|
|
11435
11438
|
case 1:
|
|
11436
11439
|
return r = a.sent(), [3, 3];
|
|
11437
11440
|
case 2:
|
|
11438
|
-
throw o = a.sent(), window.navigator.onLine ?
|
|
11441
|
+
throw o = a.sent(), window.navigator.onLine ? q.createGetRequestFailedError(o, e) : q.createNoNetworkConnectivityError();
|
|
11439
11442
|
case 3:
|
|
11440
11443
|
return a.trys.push([3, 5, , 6]), i = {
|
|
11441
11444
|
headers: this.getHeaderDict(r.headers)
|
|
@@ -11443,7 +11446,7 @@ var hs = (
|
|
|
11443
11446
|
case 4:
|
|
11444
11447
|
return [2, (i.body = a.sent(), i.status = r.status, i)];
|
|
11445
11448
|
case 5:
|
|
11446
|
-
throw a.sent(),
|
|
11449
|
+
throw a.sent(), q.createFailedToParseNetworkResponseError(e);
|
|
11447
11450
|
case 6:
|
|
11448
11451
|
return [
|
|
11449
11452
|
2
|
|
@@ -11468,7 +11471,7 @@ var hs = (
|
|
|
11468
11471
|
case 2:
|
|
11469
11472
|
return o = s.sent(), [3, 4];
|
|
11470
11473
|
case 3:
|
|
11471
|
-
throw i = s.sent(), window.navigator.onLine ?
|
|
11474
|
+
throw i = s.sent(), window.navigator.onLine ? q.createPostRequestFailedError(i, e) : q.createNoNetworkConnectivityError();
|
|
11472
11475
|
case 4:
|
|
11473
11476
|
return s.trys.push([4, 6, , 7]), a = {
|
|
11474
11477
|
headers: this.getHeaderDict(o.headers)
|
|
@@ -11476,7 +11479,7 @@ var hs = (
|
|
|
11476
11479
|
case 5:
|
|
11477
11480
|
return [2, (a.body = s.sent(), a.status = o.status, a)];
|
|
11478
11481
|
case 6:
|
|
11479
|
-
throw s.sent(),
|
|
11482
|
+
throw s.sent(), q.createFailedToParseNetworkResponseError(e);
|
|
11480
11483
|
case 7:
|
|
11481
11484
|
return [
|
|
11482
11485
|
2
|
|
@@ -11529,7 +11532,7 @@ var fs = (
|
|
|
11529
11532
|
/* async: */
|
|
11530
11533
|
!0
|
|
11531
11534
|
), o.setXhrHeaders(s, r), s.onload = function() {
|
|
11532
|
-
(s.status < 200 || s.status >= 300) && (t === Ft.POST ? a(
|
|
11535
|
+
(s.status < 200 || s.status >= 300) && (t === Ft.POST ? a(q.createPostRequestFailedError("Failed with status " + s.status, e)) : a(q.createGetRequestFailedError("Failed with status " + s.status, e)));
|
|
11533
11536
|
try {
|
|
11534
11537
|
var u = JSON.parse(s.responseText), p = {
|
|
11535
11538
|
headers: o.getHeaderDict(s),
|
|
@@ -11538,16 +11541,16 @@ var fs = (
|
|
|
11538
11541
|
};
|
|
11539
11542
|
i(p);
|
|
11540
11543
|
} catch {
|
|
11541
|
-
a(
|
|
11544
|
+
a(q.createFailedToParseNetworkResponseError(e));
|
|
11542
11545
|
}
|
|
11543
11546
|
}, s.onerror = function() {
|
|
11544
|
-
window.navigator.onLine ? t === Ft.POST ? a(
|
|
11547
|
+
window.navigator.onLine ? t === Ft.POST ? a(q.createPostRequestFailedError("Failed with status " + s.status, e)) : a(q.createGetRequestFailedError("Failed with status " + s.status, e)) : a(q.createNoNetworkConnectivityError());
|
|
11545
11548
|
}, t === Ft.POST && r && r.body)
|
|
11546
11549
|
s.send(r.body);
|
|
11547
11550
|
else if (t === Ft.GET)
|
|
11548
11551
|
s.send();
|
|
11549
11552
|
else
|
|
11550
|
-
throw
|
|
11553
|
+
throw q.createHttpMethodNotImplementedError(t);
|
|
11551
11554
|
});
|
|
11552
11555
|
}, n.prototype.setXhrHeaders = function(e, t) {
|
|
11553
11556
|
if (t && t.headers) {
|
|
@@ -11590,20 +11593,20 @@ var Ae = (
|
|
|
11590
11593
|
}, n.blockReloadInHiddenIframes = function() {
|
|
11591
11594
|
var e = le.hashContainsKnownProperties(window.location.hash);
|
|
11592
11595
|
if (e && n.isInIframe())
|
|
11593
|
-
throw
|
|
11596
|
+
throw q.createBlockReloadInHiddenIframeError();
|
|
11594
11597
|
}, n.blockRedirectInIframe = function(e, t) {
|
|
11595
11598
|
var r = n.isInIframe();
|
|
11596
11599
|
if (e === W.Redirect && r && !t)
|
|
11597
|
-
throw
|
|
11600
|
+
throw q.createRedirectInIframeError(r);
|
|
11598
11601
|
}, n.blockAcquireTokenInPopups = function() {
|
|
11599
11602
|
if (n.isInPopup())
|
|
11600
|
-
throw
|
|
11603
|
+
throw q.createBlockAcquireTokenInPopupsError();
|
|
11601
11604
|
}, n.blockNonBrowserEnvironment = function(e) {
|
|
11602
11605
|
if (!e)
|
|
11603
|
-
throw
|
|
11606
|
+
throw q.createNonBrowserEnvironmentError();
|
|
11604
11607
|
}, n.blockNativeBrokerCalledBeforeInitialized = function(e, t) {
|
|
11605
11608
|
if (e && !t)
|
|
11606
|
-
throw
|
|
11609
|
+
throw q.createNativeBrokerCalledBeforeInitialize();
|
|
11607
11610
|
}, n.detectIEOrEdge = function() {
|
|
11608
11611
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE "), r = e.indexOf("Trident/"), o = e.indexOf("Edge/"), i = t > 0 || r > 0, a = o > 0;
|
|
11609
11612
|
return i || a;
|
|
@@ -11624,9 +11627,9 @@ var ki = (
|
|
|
11624
11627
|
case 0:
|
|
11625
11628
|
if (!e)
|
|
11626
11629
|
return [3, 5];
|
|
11627
|
-
|
|
11630
|
+
Ge.accountInfoIsEqual(e, this.browserStorage.getActiveAccount(), !1) && (this.logger.verbose("Setting active account to null"), this.browserStorage.setActiveAccount(null)), t.label = 1;
|
|
11628
11631
|
case 1:
|
|
11629
|
-
return t.trys.push([1, 3, , 4]), [4, this.browserStorage.removeAccount(
|
|
11632
|
+
return t.trys.push([1, 3, , 4]), [4, this.browserStorage.removeAccount(Ge.generateAccountCacheKey(e))];
|
|
11630
11633
|
case 2:
|
|
11631
11634
|
return t.sent(), this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."), [3, 4];
|
|
11632
11635
|
case 3:
|
|
@@ -11742,7 +11745,7 @@ var ki = (
|
|
|
11742
11745
|
var Gn = (
|
|
11743
11746
|
/** @class */
|
|
11744
11747
|
function(n) {
|
|
11745
|
-
|
|
11748
|
+
Qe(e, n);
|
|
11746
11749
|
function e() {
|
|
11747
11750
|
return n !== null && n.apply(this, arguments) || this;
|
|
11748
11751
|
}
|
|
@@ -11837,12 +11840,12 @@ var Gn = (
|
|
|
11837
11840
|
});
|
|
11838
11841
|
}, e.prototype.validateAndExtractStateFromHash = function(t, r, o) {
|
|
11839
11842
|
if (this.logger.verbose("validateAndExtractStateFromHash called", o), !t.state)
|
|
11840
|
-
throw
|
|
11843
|
+
throw q.createHashDoesNotContainStateError();
|
|
11841
11844
|
var i = bi.extractBrowserRequestState(this.browserCrypto, t.state);
|
|
11842
11845
|
if (!i)
|
|
11843
|
-
throw
|
|
11846
|
+
throw q.createUnableToParseStateError();
|
|
11844
11847
|
if (i.interactionType !== r)
|
|
11845
|
-
throw
|
|
11848
|
+
throw q.createStateInteractionTypeMismatchError();
|
|
11846
11849
|
return this.logger.verbose("Returning state from hash", o), t.state;
|
|
11847
11850
|
}, e.prototype.getDiscoveredAuthority = function(t, r) {
|
|
11848
11851
|
var o;
|
|
@@ -11876,14 +11879,14 @@ var Gn = (
|
|
|
11876
11879
|
}, e.prototype.initializeAuthorizationRequest = function(t, r) {
|
|
11877
11880
|
return O(this, void 0, void 0, function() {
|
|
11878
11881
|
var o, i, a, s, u, p, l;
|
|
11879
|
-
return L(this, function(
|
|
11880
|
-
switch (
|
|
11882
|
+
return L(this, function(g) {
|
|
11883
|
+
switch (g.label) {
|
|
11881
11884
|
case 0:
|
|
11882
11885
|
return this.performanceClient.addQueueMeasurement(A.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
|
|
11883
11886
|
interactionType: r
|
|
11884
11887
|
}, a = tn.setRequestState(this.browserCrypto, t && t.state || w.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(A.InitializeBaseRequest, this.correlationId), u = [{}], [4, this.initializeBaseRequest(t)];
|
|
11885
11888
|
case 1:
|
|
11886
|
-
return s = $.apply(void 0, [$.apply(void 0, u.concat([
|
|
11889
|
+
return s = $.apply(void 0, [$.apply(void 0, u.concat([g.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: wr.FRAGMENT }]), p = t.account || this.browserStorage.getActiveAccount(), p && (this.logger.verbose("Setting validated request account", this.correlationId), this.logger.verbosePii("Setting validated request account: " + p.homeAccountId, this.correlationId), s.account = p), V.isEmpty(s.loginHint) && !p && (l = this.browserStorage.getLegacyLoginHint(), l && (s.loginHint = l)), [2, s];
|
|
11887
11890
|
}
|
|
11888
11891
|
});
|
|
11889
11892
|
});
|
|
@@ -11902,20 +11905,20 @@ var yo = (
|
|
|
11902
11905
|
var i, a, s;
|
|
11903
11906
|
return L(this, function(u) {
|
|
11904
11907
|
if (this.performanceClient.addQueueMeasurement(A.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), V.isEmpty(e))
|
|
11905
|
-
throw
|
|
11908
|
+
throw q.createEmptyHashError(e);
|
|
11906
11909
|
if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
|
|
11907
11910
|
throw Y.createStateNotFoundError("Cached State");
|
|
11908
11911
|
try {
|
|
11909
11912
|
s = this.authModule.handleFragmentResponse(e, a);
|
|
11910
11913
|
} catch (p) {
|
|
11911
|
-
throw p instanceof In && p.subError === U.userCancelledError.code ?
|
|
11914
|
+
throw p instanceof In && p.subError === U.userCancelledError.code ? q.createUserCancelledError() : p;
|
|
11912
11915
|
}
|
|
11913
11916
|
return this.performanceClient.setPreQueueTime(A.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), [2, this.handleCodeResponseFromServer(s, t, r, o)];
|
|
11914
11917
|
});
|
|
11915
11918
|
});
|
|
11916
11919
|
}, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
|
|
11917
11920
|
return i === void 0 && (i = !0), O(this, void 0, void 0, function() {
|
|
11918
|
-
var a, s, u, p, l,
|
|
11921
|
+
var a, s, u, p, l, g;
|
|
11919
11922
|
return L(this, function(f) {
|
|
11920
11923
|
switch (f.label) {
|
|
11921
11924
|
case 0:
|
|
@@ -11927,7 +11930,7 @@ var yo = (
|
|
|
11927
11930
|
case 2:
|
|
11928
11931
|
return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (l = this.checkCcsCredentials(), l && (this.authCodeRequest.ccsCredential = l)), this.performanceClient.setPreQueueTime(A.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
|
|
11929
11932
|
case 3:
|
|
11930
|
-
return
|
|
11933
|
+
return g = f.sent(), this.browserStorage.cleanRequestByState(t), [2, g];
|
|
11931
11934
|
}
|
|
11932
11935
|
});
|
|
11933
11936
|
});
|
|
@@ -11962,7 +11965,7 @@ var yo = (
|
|
|
11962
11965
|
var Go = (
|
|
11963
11966
|
/** @class */
|
|
11964
11967
|
function(n) {
|
|
11965
|
-
|
|
11968
|
+
Qe(e, n);
|
|
11966
11969
|
function e(t, r, o, i, a, s) {
|
|
11967
11970
|
var u = n.call(this, t, r, o, i, s) || this;
|
|
11968
11971
|
return u.browserCrypto = a, u;
|
|
@@ -12000,7 +12003,7 @@ var Go = (
|
|
|
12000
12003
|
case 6:
|
|
12001
12004
|
return [3, 8];
|
|
12002
12005
|
case 7:
|
|
12003
|
-
throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),
|
|
12006
|
+
throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"), q.createEmptyNavigationUriError();
|
|
12004
12007
|
case 8:
|
|
12005
12008
|
return [
|
|
12006
12009
|
2
|
|
@@ -12011,24 +12014,24 @@ var Go = (
|
|
|
12011
12014
|
});
|
|
12012
12015
|
}, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
|
|
12013
12016
|
return O(this, void 0, void 0, function() {
|
|
12014
|
-
var a, s, u, p, l,
|
|
12017
|
+
var a, s, u, p, l, g, f;
|
|
12015
12018
|
return L(this, function(k) {
|
|
12016
12019
|
switch (k.label) {
|
|
12017
12020
|
case 0:
|
|
12018
12021
|
if (this.logger.verbose("RedirectHandler.handleCodeResponse called"), V.isEmpty(t))
|
|
12019
|
-
throw
|
|
12022
|
+
throw q.createEmptyHashError(t);
|
|
12020
12023
|
if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
|
|
12021
12024
|
throw Y.createStateNotFoundError("Cached State");
|
|
12022
12025
|
try {
|
|
12023
12026
|
u = this.authModule.handleFragmentResponse(t, s);
|
|
12024
12027
|
} catch (E) {
|
|
12025
|
-
throw E instanceof In && E.subError === U.userCancelledError.code ?
|
|
12028
|
+
throw E instanceof In && E.subError === U.userCancelledError.code ? q.createUserCancelledError() : E;
|
|
12026
12029
|
}
|
|
12027
12030
|
return p = this.browserStorage.generateNonceKey(s), l = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = u.code, u.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(u.cloud_instance_host_name, o, i)] : [3, 2];
|
|
12028
12031
|
case 1:
|
|
12029
12032
|
k.sent(), k.label = 2;
|
|
12030
12033
|
case 2:
|
|
12031
|
-
return u.nonce = l || void 0, u.state = s, u.client_info ? this.authCodeRequest.clientInfo = u.client_info : (
|
|
12034
|
+
return u.nonce = l || void 0, u.state = s, u.client_info ? this.authCodeRequest.clientInfo = u.client_info : (g = this.checkCcsCredentials(), g && (this.authCodeRequest.ccsCredential = g)), [4, this.authModule.acquireToken(this.authCodeRequest, u)];
|
|
12032
12035
|
case 3:
|
|
12033
12036
|
return f = k.sent(), this.browserStorage.cleanRequestByState(r), [2, f];
|
|
12034
12037
|
}
|
|
@@ -12062,7 +12065,7 @@ var Vn = {
|
|
|
12062
12065
|
}, Kt = (
|
|
12063
12066
|
/** @class */
|
|
12064
12067
|
function(n) {
|
|
12065
|
-
|
|
12068
|
+
Qe(e, n);
|
|
12066
12069
|
function e(t, r, o) {
|
|
12067
12070
|
var i = n.call(this, t, r) || this;
|
|
12068
12071
|
return Object.setPrototypeOf(i, e.prototype), i.name = "NativeAuthError", i.ext = o, i;
|
|
@@ -12084,9 +12087,9 @@ var Vn = {
|
|
|
12084
12087
|
case pn.USER_INTERACTION_REQUIRED:
|
|
12085
12088
|
return new Pt(t, r);
|
|
12086
12089
|
case pn.USER_CANCEL:
|
|
12087
|
-
return
|
|
12090
|
+
return q.createUserCancelledError();
|
|
12088
12091
|
case pn.NO_NETWORK:
|
|
12089
|
-
return
|
|
12092
|
+
return q.createNoNetworkConnectivityError();
|
|
12090
12093
|
}
|
|
12091
12094
|
return new e(t, r, o);
|
|
12092
12095
|
}, e.createUserSwitchError = function() {
|
|
@@ -12100,7 +12103,7 @@ var Vn = {
|
|
|
12100
12103
|
var Ci = (
|
|
12101
12104
|
/** @class */
|
|
12102
12105
|
function(n) {
|
|
12103
|
-
|
|
12106
|
+
Qe(e, n);
|
|
12104
12107
|
function e() {
|
|
12105
12108
|
return n !== null && n.apply(this, arguments) || this;
|
|
12106
12109
|
}
|
|
@@ -12121,7 +12124,7 @@ var Ci = (
|
|
|
12121
12124
|
fromCache: !0
|
|
12122
12125
|
}), [2, a];
|
|
12123
12126
|
case 4:
|
|
12124
|
-
throw s = u.sent(), s instanceof
|
|
12127
|
+
throw s = u.sent(), s instanceof q && s.errorCode === U.signingKeyNotFoundInStorage.code && this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."), r.endMeasurement({
|
|
12125
12128
|
errorCode: s instanceof X && s.errorCode || void 0,
|
|
12126
12129
|
subErrorCode: s instanceof X && s.subError || void 0,
|
|
12127
12130
|
success: !1
|
|
@@ -12135,7 +12138,7 @@ var Ci = (
|
|
|
12135
12138
|
});
|
|
12136
12139
|
});
|
|
12137
12140
|
}, e.prototype.logout = function() {
|
|
12138
|
-
return Promise.reject(
|
|
12141
|
+
return Promise.reject(q.createSilentLogoutUnsupportedError());
|
|
12139
12142
|
}, e.prototype.createSilentFlowClient = function(t, r, o) {
|
|
12140
12143
|
return O(this, void 0, void 0, function() {
|
|
12141
12144
|
var i;
|
|
@@ -12167,10 +12170,10 @@ var Ci = (
|
|
|
12167
12170
|
var Bn = (
|
|
12168
12171
|
/** @class */
|
|
12169
12172
|
function(n) {
|
|
12170
|
-
|
|
12171
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
12173
|
+
Qe(e, n);
|
|
12174
|
+
function e(t, r, o, i, a, s, u, p, l, g, f, k) {
|
|
12172
12175
|
var E = n.call(this, t, r, o, i, a, s, p, l, k) || this;
|
|
12173
|
-
return E.apiId = u, E.accountId =
|
|
12176
|
+
return E.apiId = u, E.accountId = g, E.nativeMessageHandler = l, E.nativeStorageManager = f, E.silentCacheClient = new Ci(t, E.nativeStorageManager, o, i, a, s, p, l, k), E;
|
|
12174
12177
|
}
|
|
12175
12178
|
return e.prototype.acquireToken = function(t) {
|
|
12176
12179
|
return O(this, void 0, void 0, function() {
|
|
@@ -12197,19 +12200,19 @@ var Bn = (
|
|
|
12197
12200
|
request: i
|
|
12198
12201
|
}, [4, this.nativeMessageHandler.sendMessage(s)];
|
|
12199
12202
|
case 6:
|
|
12200
|
-
return u = l.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(
|
|
12203
|
+
return u = l.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(g) {
|
|
12201
12204
|
return r.endMeasurement({
|
|
12202
12205
|
success: !0,
|
|
12203
12206
|
isNativeBroker: !0,
|
|
12204
|
-
requestId:
|
|
12205
|
-
}),
|
|
12206
|
-
}).catch(function(
|
|
12207
|
+
requestId: g.requestId
|
|
12208
|
+
}), g;
|
|
12209
|
+
}).catch(function(g) {
|
|
12207
12210
|
throw r.endMeasurement({
|
|
12208
12211
|
success: !1,
|
|
12209
|
-
errorCode:
|
|
12210
|
-
subErrorCode:
|
|
12212
|
+
errorCode: g.errorCode,
|
|
12213
|
+
subErrorCode: g.subError,
|
|
12211
12214
|
isNativeBroker: !0
|
|
12212
|
-
}),
|
|
12215
|
+
}), g;
|
|
12213
12216
|
})];
|
|
12214
12217
|
}
|
|
12215
12218
|
});
|
|
@@ -12314,26 +12317,26 @@ var Bn = (
|
|
|
12314
12317
|
}, e.prototype.handleNativeResponse = function(t, r, o) {
|
|
12315
12318
|
return O(this, void 0, void 0, function() {
|
|
12316
12319
|
var i, a, s, u, p, l;
|
|
12317
|
-
return L(this, function(
|
|
12318
|
-
switch (
|
|
12320
|
+
return L(this, function(g) {
|
|
12321
|
+
switch (g.label) {
|
|
12319
12322
|
case 0:
|
|
12320
12323
|
if (this.logger.trace("NativeInteractionClient - handleNativeResponse called."), t.account.id !== r.accountId)
|
|
12321
12324
|
throw Kt.createUserSwitchError();
|
|
12322
12325
|
return [4, this.getDiscoveredAuthority(r.authority)];
|
|
12323
12326
|
case 1:
|
|
12324
|
-
return i =
|
|
12327
|
+
return i = g.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), u = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, u, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
|
|
12325
12328
|
case 2:
|
|
12326
|
-
return l =
|
|
12329
|
+
return l = g.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, l.accessToken, l.tenantId, o), [2, l];
|
|
12327
12330
|
}
|
|
12328
12331
|
});
|
|
12329
12332
|
});
|
|
12330
12333
|
}, e.prototype.createIdTokenObj = function(t) {
|
|
12331
12334
|
return new Vt(t.id_token || w.EMPTY_STRING, this.browserCrypto);
|
|
12332
12335
|
}, e.prototype.createHomeAccountIdentifier = function(t, r) {
|
|
12333
|
-
var o =
|
|
12336
|
+
var o = Ge.generateHomeAccountId(t.client_info || w.EMPTY_STRING, tt.Default, this.logger, this.browserCrypto, r);
|
|
12334
12337
|
return o;
|
|
12335
12338
|
}, e.prototype.createAccountEntity = function(t, r, o, i) {
|
|
12336
|
-
return
|
|
12339
|
+
return Ge.createAccount(t.client_info, r, o, void 0, void 0, void 0, i, t.account.id);
|
|
12337
12340
|
}, e.prototype.generateScopes = function(t, r) {
|
|
12338
12341
|
return t.scope ? Xe.fromString(t.scope) : Xe.fromString(r.scope);
|
|
12339
12342
|
}, e.prototype.generatePopAccessToken = function(t, r) {
|
|
@@ -12363,15 +12366,15 @@ var Bn = (
|
|
|
12363
12366
|
});
|
|
12364
12367
|
}, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
|
|
12365
12368
|
return O(this, void 0, void 0, function() {
|
|
12366
|
-
var u, p, l,
|
|
12369
|
+
var u, p, l, g, f, k, E, P;
|
|
12367
12370
|
return L(this, function(j) {
|
|
12368
12371
|
switch (j.label) {
|
|
12369
12372
|
case 0:
|
|
12370
|
-
return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Xe.fromString(t.scope) : Xe.fromString(r.scope), l = t.account.properties || {},
|
|
12373
|
+
return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Xe.fromString(t.scope) : Xe.fromString(r.scope), l = t.account.properties || {}, g = l.UID || o.claims.oid || o.claims.sub || w.EMPTY_STRING, f = l.TenantId || o.claims.tid || w.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
|
|
12371
12374
|
case 1:
|
|
12372
12375
|
return k = j.sent(), E = r.tokenType === _e.POP ? _e.POP : _e.BEARER, P = {
|
|
12373
12376
|
authority: a,
|
|
12374
|
-
uniqueId:
|
|
12377
|
+
uniqueId: g,
|
|
12375
12378
|
tenantId: f,
|
|
12376
12379
|
scopes: p.asArray(),
|
|
12377
12380
|
account: i.getAccountInfo(),
|
|
@@ -12394,7 +12397,7 @@ var Bn = (
|
|
|
12394
12397
|
r.logger.error("Error occurred while removing account context from browser storage. " + o);
|
|
12395
12398
|
});
|
|
12396
12399
|
}, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
|
|
12397
|
-
var l = Cn.createIdTokenEntity(o, r.authority, t.id_token || w.EMPTY_STRING, r.clientId, a.claims.tid || w.EMPTY_STRING),
|
|
12400
|
+
var l = Cn.createIdTokenEntity(o, r.authority, t.id_token || w.EMPTY_STRING, r.clientId, a.claims.tid || w.EMPTY_STRING), g = r.tokenType === _e.POP ? w.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, f = p + g, k = this.generateScopes(t, r), E = En.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || w.EMPTY_STRING : u, k.printScopes(), f, 0, this.browserCrypto), P = new tr(i, l, E);
|
|
12398
12401
|
this.nativeStorageManager.saveCacheRecord(P);
|
|
12399
12402
|
}, e.prototype.addTelemetryFromNativeResponse = function(t) {
|
|
12400
12403
|
var r = this.getMATSFromResponse(t);
|
|
@@ -12431,7 +12434,7 @@ var Bn = (
|
|
|
12431
12434
|
return typeof t.is_cached > "u" ? (this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."), !1) : !!t.is_cached;
|
|
12432
12435
|
}, e.prototype.initializeNativeRequest = function(t) {
|
|
12433
12436
|
return O(this, void 0, void 0, function() {
|
|
12434
|
-
var r, o, i, a, s, u, p, l,
|
|
12437
|
+
var r, o, i, a, s, u, p, l, g, f, k = this;
|
|
12435
12438
|
return L(this, function(E) {
|
|
12436
12439
|
switch (E.label) {
|
|
12437
12440
|
case 0:
|
|
@@ -12455,7 +12458,7 @@ var Bn = (
|
|
|
12455
12458
|
case Ze.LOGIN:
|
|
12456
12459
|
return k.logger.trace("initializeNativeRequest: prompt is compatible with native flow"), t.prompt;
|
|
12457
12460
|
default:
|
|
12458
|
-
throw k.logger.trace("initializeNativeRequest: prompt = " + t.prompt + " is not compatible with native flow"),
|
|
12461
|
+
throw k.logger.trace("initializeNativeRequest: prompt = " + t.prompt + " is not compatible with native flow"), q.createNativePromptParameterNotSupportedError();
|
|
12459
12462
|
}
|
|
12460
12463
|
}, p = $($({}, a), {
|
|
12461
12464
|
accountId: this.accountId,
|
|
@@ -12475,7 +12478,7 @@ var Bn = (
|
|
|
12475
12478
|
resourceRequestMethod: t.resourceRequestMethod,
|
|
12476
12479
|
shrClaims: t.shrClaims,
|
|
12477
12480
|
shrNonce: t.shrNonce
|
|
12478
|
-
},
|
|
12481
|
+
}, g = new Hn(this.browserCrypto), [4, g.generateCnf(l)]);
|
|
12479
12482
|
case 3:
|
|
12480
12483
|
f = E.sent(), p.reqCnf = f.reqCnfString, p.keyId = f.kid, E.label = 4;
|
|
12481
12484
|
case 4:
|
|
@@ -12548,7 +12551,7 @@ var Sn = (
|
|
|
12548
12551
|
t.onChannelMessage(o);
|
|
12549
12552
|
}, window.postMessage(e, window.origin, [this.messageChannel.port2]), [2, new Promise(function(o, i) {
|
|
12550
12553
|
t.handshakeResolvers.set(e.responseId, { resolve: o, reject: i }), t.timeoutId = window.setTimeout(function() {
|
|
12551
|
-
window.removeEventListener("message", t.windowListener, !1), t.messageChannel.port1.close(), t.messageChannel.port2.close(), t.handshakeEvent.endMeasurement({ extensionHandshakeTimedOut: !0, success: !1 }), i(
|
|
12554
|
+
window.removeEventListener("message", t.windowListener, !1), t.messageChannel.port1.close(), t.messageChannel.port2.close(), t.handshakeEvent.endMeasurement({ extensionHandshakeTimedOut: !0, success: !1 }), i(q.createNativeHandshakeTimeoutError()), t.handshakeResolvers.delete(e.responseId);
|
|
12552
12555
|
}, t.handshakeTimeoutMs);
|
|
12553
12556
|
})];
|
|
12554
12557
|
});
|
|
@@ -12559,7 +12562,7 @@ var Sn = (
|
|
|
12559
12562
|
if (!(!t.channel || t.channel !== Qn.CHANNEL_ID) && !(t.extensionId && t.extensionId !== this.extensionId) && t.body.method === en.HandshakeRequest) {
|
|
12560
12563
|
this.logger.verbose(t.extensionId ? "Extension with id: " + t.extensionId + " not installed" : "No extension installed"), clearTimeout(this.timeoutId), this.messageChannel.port1.close(), this.messageChannel.port2.close(), window.removeEventListener("message", this.windowListener, !1);
|
|
12561
12564
|
var r = this.handshakeResolvers.get(t.responseId);
|
|
12562
|
-
r && (this.handshakeEvent.endMeasurement({ success: !1, extensionInstalled: !1 }), r.reject(
|
|
12565
|
+
r && (this.handshakeEvent.endMeasurement({ success: !1, extensionInstalled: !1 }), r.reject(q.createNativeExtensionNotInstalledError()));
|
|
12563
12566
|
}
|
|
12564
12567
|
}
|
|
12565
12568
|
}, n.prototype.onChannelMessage = function(e) {
|
|
@@ -12608,17 +12611,17 @@ var Sn = (
|
|
|
12608
12611
|
}()
|
|
12609
12612
|
);
|
|
12610
12613
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
12611
|
-
var
|
|
12614
|
+
var ms = (
|
|
12612
12615
|
/** @class */
|
|
12613
12616
|
function(n) {
|
|
12614
|
-
|
|
12615
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
12616
|
-
var f = n.call(this, t, r, o, i, a, s, u, l,
|
|
12617
|
+
Qe(e, n);
|
|
12618
|
+
function e(t, r, o, i, a, s, u, p, l, g) {
|
|
12619
|
+
var f = n.call(this, t, r, o, i, a, s, u, l, g) || this;
|
|
12617
12620
|
return f.nativeStorage = p, f;
|
|
12618
12621
|
}
|
|
12619
12622
|
return e.prototype.acquireToken = function(t) {
|
|
12620
12623
|
return O(this, void 0, void 0, function() {
|
|
12621
|
-
var r, o, i, a, s, u, p, l,
|
|
12624
|
+
var r, o, i, a, s, u, p, l, g, f = this;
|
|
12622
12625
|
return L(this, function(k) {
|
|
12623
12626
|
switch (k.label) {
|
|
12624
12627
|
case 0:
|
|
@@ -12643,7 +12646,7 @@ var gs = (
|
|
|
12643
12646
|
case 6:
|
|
12644
12647
|
return [2, k.sent()];
|
|
12645
12648
|
case 7:
|
|
12646
|
-
throw
|
|
12649
|
+
throw g = k.sent(), g instanceof X && g.setCorrelationId(this.correlationId), window.removeEventListener("pageshow", i), o.cacheFailedRequest(g), this.browserStorage.cleanRequestByState(r.state), g;
|
|
12647
12650
|
case 8:
|
|
12648
12651
|
return [
|
|
12649
12652
|
2
|
|
@@ -12654,7 +12657,7 @@ var gs = (
|
|
|
12654
12657
|
});
|
|
12655
12658
|
}, e.prototype.handleRedirectPromise = function(t) {
|
|
12656
12659
|
return O(this, void 0, void 0, function() {
|
|
12657
|
-
var r, o, i, a, s, u, p, l,
|
|
12660
|
+
var r, o, i, a, s, u, p, l, g, f, k, E;
|
|
12658
12661
|
return L(this, function(P) {
|
|
12659
12662
|
switch (P.label) {
|
|
12660
12663
|
case 0:
|
|
@@ -12676,15 +12679,15 @@ var gs = (
|
|
|
12676
12679
|
case 3:
|
|
12677
12680
|
return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
|
|
12678
12681
|
case 4:
|
|
12679
|
-
return !Ae.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(ue.URL_HASH, o, !0),
|
|
12682
|
+
return !Ae.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(ue.URL_HASH, o, !0), g = {
|
|
12680
12683
|
apiId: Ce.handleRedirectPromise,
|
|
12681
12684
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
12682
12685
|
noHistory: !0
|
|
12683
|
-
}, f = !0, !s || s === "null" ? (k = Ae.getHomepage(), this.browserStorage.setTemporaryCache(ue.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k,
|
|
12686
|
+
}, f = !0, !s || s === "null" ? (k = Ae.getHomepage(), this.browserStorage.setTemporaryCache(ue.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k, g)]) : [3, 6]) : [3, 9];
|
|
12684
12687
|
case 5:
|
|
12685
12688
|
return f = P.sent(), [3, 8];
|
|
12686
12689
|
case 6:
|
|
12687
|
-
return this.logger.verbose("Navigating to loginRequestUrl: " + s), [4, this.navigationClient.navigateInternal(s,
|
|
12690
|
+
return this.logger.verbose("Navigating to loginRequestUrl: " + s), [4, this.navigationClient.navigateInternal(s, g)];
|
|
12688
12691
|
case 7:
|
|
12689
12692
|
f = P.sent(), P.label = 8;
|
|
12690
12693
|
case 8:
|
|
@@ -12712,13 +12715,13 @@ var gs = (
|
|
|
12712
12715
|
return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ue.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
|
|
12713
12716
|
}, e.prototype.handleHash = function(t, r, o) {
|
|
12714
12717
|
return O(this, void 0, void 0, function() {
|
|
12715
|
-
var i, a, s, u, p, l,
|
|
12718
|
+
var i, a, s, u, p, l, g, f = this;
|
|
12716
12719
|
return L(this, function(k) {
|
|
12717
12720
|
switch (k.label) {
|
|
12718
12721
|
case 0:
|
|
12719
12722
|
if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = le.getDeserializedHash(t), a.accountId) {
|
|
12720
12723
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
12721
|
-
throw
|
|
12724
|
+
throw q.createNativeConnectionNotEstablishedError();
|
|
12722
12725
|
return s = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), u = tn.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken($($({}, i), {
|
|
12723
12726
|
state: u,
|
|
12724
12727
|
prompt: void 0
|
|
@@ -12728,10 +12731,10 @@ var gs = (
|
|
|
12728
12731
|
})];
|
|
12729
12732
|
}
|
|
12730
12733
|
if (p = this.browserStorage.getCachedAuthority(r), !p)
|
|
12731
|
-
throw
|
|
12734
|
+
throw q.createNoCachedAuthorityError();
|
|
12732
12735
|
return this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
|
|
12733
12736
|
case 1:
|
|
12734
|
-
return l = k.sent(), this.logger.verbose("Auth code client created"), Tr.removeThrottle(this.browserStorage, this.config.auth.clientId, i),
|
|
12737
|
+
return l = k.sent(), this.logger.verbose("Auth code client created"), Tr.removeThrottle(this.browserStorage, this.config.auth.clientId, i), g = new Go(l, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, g.handleCodeResponseFromHash(t, r, l.authority, this.networkClient)];
|
|
12735
12738
|
case 2:
|
|
12736
12739
|
return [2, k.sent()];
|
|
12737
12740
|
}
|
|
@@ -12789,12 +12792,12 @@ var gs = (
|
|
|
12789
12792
|
}(Gn)
|
|
12790
12793
|
);
|
|
12791
12794
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
12792
|
-
var
|
|
12795
|
+
var gs = (
|
|
12793
12796
|
/** @class */
|
|
12794
12797
|
function(n) {
|
|
12795
|
-
|
|
12796
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
12797
|
-
var f = n.call(this, t, r, o, i, a, s, u, l,
|
|
12798
|
+
Qe(e, n);
|
|
12799
|
+
function e(t, r, o, i, a, s, u, p, l, g) {
|
|
12800
|
+
var f = n.call(this, t, r, o, i, a, s, u, l, g) || this;
|
|
12798
12801
|
return f.unloadWindow = f.unloadWindow.bind(f), f.nativeStorage = p, f;
|
|
12799
12802
|
}
|
|
12800
12803
|
return e.prototype.acquireToken = function(t) {
|
|
@@ -12822,7 +12825,7 @@ var ms = (
|
|
|
12822
12825
|
}
|
|
12823
12826
|
}, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
|
|
12824
12827
|
return O(this, void 0, void 0, function() {
|
|
12825
|
-
var a, s, u, p, l,
|
|
12828
|
+
var a, s, u, p, l, g, f, k, E, P, j, K, z, T, D, G, J, te = this;
|
|
12826
12829
|
return L(this, function(Z) {
|
|
12827
12830
|
switch (Z.label) {
|
|
12828
12831
|
case 0:
|
|
@@ -12834,7 +12837,7 @@ var ms = (
|
|
|
12834
12837
|
case 3:
|
|
12835
12838
|
return u = Z.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
|
|
12836
12839
|
case 4:
|
|
12837
|
-
return p = Z.sent(), this.logger.verbose("Auth code client created"), l = Sn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme),
|
|
12840
|
+
return p = Z.sent(), this.logger.verbose("Auth code client created"), l = Sn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), g = void 0, l && (g = this.performanceClient.startMeasurement(A.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl($($({}, s), { nativeBroker: l }))];
|
|
12838
12841
|
case 5:
|
|
12839
12842
|
return f = Z.sent(), k = new yo(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
|
|
12840
12843
|
popup: i,
|
|
@@ -12843,11 +12846,11 @@ var ms = (
|
|
|
12843
12846
|
}, P = this.initiateAuthRequest(f, E), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: P }, null), [4, this.monitorPopupForHash(P)];
|
|
12844
12847
|
case 6:
|
|
12845
12848
|
if (j = Z.sent(), K = le.getDeserializedHash(j), z = this.validateAndExtractStateFromHash(K, W.Popup, s.correlationId), Tr.removeThrottle(this.browserStorage, this.config.auth.clientId, u), K.accountId) {
|
|
12846
|
-
if (this.logger.verbose("Account id found in hash, calling WAM for token"),
|
|
12849
|
+
if (this.logger.verbose("Account id found in hash, calling WAM for token"), g && g.endMeasurement({
|
|
12847
12850
|
success: !0,
|
|
12848
12851
|
isNativeBroker: !0
|
|
12849
12852
|
}), !this.nativeMessageHandler)
|
|
12850
|
-
throw
|
|
12853
|
+
throw q.createNativeConnectionNotEstablishedError();
|
|
12851
12854
|
return T = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, K.accountId, this.nativeStorage, s.correlationId), D = tn.parseRequestState(this.browserCrypto, z).userRequestState, [2, T.acquireToken($($({}, s), {
|
|
12852
12855
|
state: D,
|
|
12853
12856
|
prompt: void 0
|
|
@@ -12871,7 +12874,7 @@ var ms = (
|
|
|
12871
12874
|
});
|
|
12872
12875
|
}, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
|
|
12873
12876
|
return O(this, void 0, void 0, function() {
|
|
12874
|
-
var u, p, l,
|
|
12877
|
+
var u, p, l, g, f, k, E;
|
|
12875
12878
|
return L(this, function(P) {
|
|
12876
12879
|
switch (P.label) {
|
|
12877
12880
|
case 0:
|
|
@@ -12881,7 +12884,7 @@ var ms = (
|
|
|
12881
12884
|
case 2:
|
|
12882
12885
|
return P.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
|
|
12883
12886
|
case 3:
|
|
12884
|
-
return p = P.sent(), this.logger.verbose("Auth code client created"), l = p.getLogoutUri(t), this.eventHandler.emitEvent(ne.LOGOUT_SUCCESS, W.Popup, t),
|
|
12887
|
+
return p = P.sent(), this.logger.verbose("Auth code client created"), l = p.getLogoutUri(t), this.eventHandler.emitEvent(ne.LOGOUT_SUCCESS, W.Popup, t), g = this.openPopup(l, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: g }, null), [4, this.waitForLogoutPopup(g)];
|
|
12885
12888
|
case 4:
|
|
12886
12889
|
return P.sent(), s ? (f = {
|
|
12887
12890
|
apiId: Ce.logoutPopup,
|
|
@@ -12900,7 +12903,7 @@ var ms = (
|
|
|
12900
12903
|
});
|
|
12901
12904
|
}, e.prototype.initiateAuthRequest = function(t, r) {
|
|
12902
12905
|
if (V.isEmpty(t))
|
|
12903
|
-
throw this.logger.error("Navigate url is empty"),
|
|
12906
|
+
throw this.logger.error("Navigate url is empty"), q.createEmptyNavigationUriError();
|
|
12904
12907
|
return this.logger.infoPii("Navigate to: " + t), this.openPopup(t, r);
|
|
12905
12908
|
}, e.prototype.monitorPopupForHash = function(t) {
|
|
12906
12909
|
var r = this;
|
|
@@ -12909,7 +12912,7 @@ var ms = (
|
|
|
12909
12912
|
r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
|
|
12910
12913
|
var u = setInterval(function() {
|
|
12911
12914
|
if (t.closed) {
|
|
12912
|
-
r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(
|
|
12915
|
+
r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(q.createUserCancelledError());
|
|
12913
12916
|
return;
|
|
12914
12917
|
}
|
|
12915
12918
|
var p = w.EMPTY_STRING, l = w.EMPTY_STRING;
|
|
@@ -12917,7 +12920,7 @@ var ms = (
|
|
|
12917
12920
|
p = t.location.href, l = t.location.hash;
|
|
12918
12921
|
} catch {
|
|
12919
12922
|
}
|
|
12920
|
-
V.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, l ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), le.hashContainsKnownProperties(l) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(l)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + l), i(
|
|
12923
|
+
V.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, l ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), le.hashContainsKnownProperties(l) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(l)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + l), i(q.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(q.createMonitorPopupTimeoutError())));
|
|
12921
12924
|
}, r.config.system.pollIntervalMilliseconds);
|
|
12922
12925
|
});
|
|
12923
12926
|
}, e.prototype.waitForLogoutPopup = function(t) {
|
|
@@ -12938,14 +12941,14 @@ var ms = (
|
|
|
12938
12941
|
try {
|
|
12939
12942
|
var o = void 0;
|
|
12940
12943
|
if (r.popup ? (o = r.popup, this.logger.verbosePii("Navigating popup window to: " + t), o.location.assign(t)) : typeof r.popup > "u" && (this.logger.verbosePii("Opening popup window to: " + t), o = this.openSizedPopup(t, r.popupName, r.popupWindowAttributes)), !o)
|
|
12941
|
-
throw
|
|
12944
|
+
throw q.createEmptyWindowCreatedError();
|
|
12942
12945
|
return o.focus && o.focus(), this.currentWindow = o, window.addEventListener("beforeunload", this.unloadWindow), o;
|
|
12943
12946
|
} catch (i) {
|
|
12944
|
-
throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1),
|
|
12947
|
+
throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), q.createPopupWindowError(i.toString());
|
|
12945
12948
|
}
|
|
12946
12949
|
}, e.prototype.openSizedPopup = function(t, r, o) {
|
|
12947
|
-
var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, l = window.screenTop ? window.screenTop : window.screenY,
|
|
12948
|
-
return (!k || k < 0 || k >
|
|
12950
|
+
var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, l = window.screenTop ? window.screenTop : window.screenY, g = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, f = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, P = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, j = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
|
|
12951
|
+
return (!k || k < 0 || k > g) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Rt.POPUP_WIDTH), (!E || E < 0 || E > f) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Rt.POPUP_HEIGHT), (!P || P < 0 || P > f) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), P = Math.max(0, f / 2 - Rt.POPUP_HEIGHT / 2 + l)), (!j || j < 0 || j > g) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), j = Math.max(0, g / 2 - Rt.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + P + ", left=" + j + ", scrollbars=yes");
|
|
12949
12952
|
}, e.prototype.unloadWindow = function(t) {
|
|
12950
12953
|
this.browserStorage.cleanRequestByInteractionType(W.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
|
|
12951
12954
|
}, e.prototype.cleanPopup = function(t) {
|
|
@@ -13008,9 +13011,9 @@ function bs(n, e) {
|
|
|
13008
13011
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
13009
13012
|
loggerCallback: function() {
|
|
13010
13013
|
},
|
|
13011
|
-
logLevel:
|
|
13014
|
+
logLevel: De.Info,
|
|
13012
13015
|
piiLoggingEnabled: !1
|
|
13013
|
-
}, p = $($({},
|
|
13016
|
+
}, p = $($({}, gi), {
|
|
13014
13017
|
loggerOptions: u,
|
|
13015
13018
|
networkClient: e ? Ae.getBrowserNetworkClient() : as,
|
|
13016
13019
|
navigationClient: new _s(),
|
|
@@ -13029,7 +13032,7 @@ function bs(n, e) {
|
|
|
13029
13032
|
useMsrCrypto: !1,
|
|
13030
13033
|
entropy: void 0
|
|
13031
13034
|
}
|
|
13032
|
-
}), l = $($({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }),
|
|
13035
|
+
}), l = $($({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), g = {
|
|
13033
13036
|
application: {
|
|
13034
13037
|
appName: w.EMPTY_STRING,
|
|
13035
13038
|
appVersion: w.EMPTY_STRING
|
|
@@ -13038,7 +13041,7 @@ function bs(n, e) {
|
|
|
13038
13041
|
auth: $($({}, a), t),
|
|
13039
13042
|
cache: $($({}, s), r),
|
|
13040
13043
|
system: $($({}, p), l),
|
|
13041
|
-
telemetry: $($({},
|
|
13044
|
+
telemetry: $($({}, g), i)
|
|
13042
13045
|
};
|
|
13043
13046
|
return f;
|
|
13044
13047
|
}
|
|
@@ -13046,7 +13049,7 @@ function bs(n, e) {
|
|
|
13046
13049
|
var Ei = (
|
|
13047
13050
|
/** @class */
|
|
13048
13051
|
function(n) {
|
|
13049
|
-
|
|
13052
|
+
Qe(e, n);
|
|
13050
13053
|
function e(t, r, o, i, a, s) {
|
|
13051
13054
|
var u = n.call(this, t, r, o, i, s) || this;
|
|
13052
13055
|
return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
|
|
@@ -13057,7 +13060,7 @@ var Ei = (
|
|
|
13057
13060
|
switch (r.label) {
|
|
13058
13061
|
case 0:
|
|
13059
13062
|
if (this.performanceClient.addQueueMeasurement(A.SilentHandlerInitiateAuthRequest, this.authCodeRequest.correlationId), V.isEmpty(t))
|
|
13060
|
-
throw this.logger.info("Navigate url is empty"),
|
|
13063
|
+
throw this.logger.info("Navigate url is empty"), q.createEmptyNavigationUriError();
|
|
13061
13064
|
return this.navigateFrameWait ? (this.performanceClient.setPreQueueTime(A.SilentHandlerLoadFrame, this.authCodeRequest.correlationId), [4, this.loadFrame(t)]) : [3, 2];
|
|
13062
13065
|
case 1:
|
|
13063
13066
|
return [2, r.sent()];
|
|
@@ -13072,16 +13075,16 @@ var Ei = (
|
|
|
13072
13075
|
r < so && o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + r + "ms) than the default (" + so + "ms). This may result in timeouts.");
|
|
13073
13076
|
var s = window.performance.now(), u = s + r, p = setInterval(function() {
|
|
13074
13077
|
if (window.performance.now() > u) {
|
|
13075
|
-
o.removeHiddenIframe(t), clearInterval(p), a(
|
|
13078
|
+
o.removeHiddenIframe(t), clearInterval(p), a(q.createMonitorIframeTimeoutError());
|
|
13076
13079
|
return;
|
|
13077
13080
|
}
|
|
13078
|
-
var l = w.EMPTY_STRING,
|
|
13081
|
+
var l = w.EMPTY_STRING, g = t.contentWindow;
|
|
13079
13082
|
try {
|
|
13080
|
-
l =
|
|
13083
|
+
l = g ? g.location.href : w.EMPTY_STRING;
|
|
13081
13084
|
} catch {
|
|
13082
13085
|
}
|
|
13083
13086
|
if (!V.isEmpty(l)) {
|
|
13084
|
-
var f =
|
|
13087
|
+
var f = g ? g.location.hash : w.EMPTY_STRING;
|
|
13085
13088
|
if (le.hashContainsKnownProperties(f)) {
|
|
13086
13089
|
o.removeHiddenIframe(t), clearInterval(p), i(f);
|
|
13087
13090
|
return;
|
|
@@ -13116,9 +13119,9 @@ var Ei = (
|
|
|
13116
13119
|
var ks = (
|
|
13117
13120
|
/** @class */
|
|
13118
13121
|
function(n) {
|
|
13119
|
-
|
|
13120
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
13121
|
-
var k = n.call(this, t, r, o, i, a, s, p,
|
|
13122
|
+
Qe(e, n);
|
|
13123
|
+
function e(t, r, o, i, a, s, u, p, l, g, f) {
|
|
13124
|
+
var k = n.call(this, t, r, o, i, a, s, p, g, f) || this;
|
|
13122
13125
|
return k.apiId = u, k.nativeStorage = l, k;
|
|
13123
13126
|
}
|
|
13124
13127
|
return e.prototype.acquireToken = function(t) {
|
|
@@ -13130,7 +13133,7 @@ var ks = (
|
|
|
13130
13133
|
if (this.performanceClient.addQueueMeasurement(A.SilentIframeClientAcquireToken, t.correlationId), this.logger.verbose("acquireTokenByIframe called"), r = this.performanceClient.startMeasurement(A.SilentIframeClientAcquireToken, t.correlationId), V.isEmpty(t.loginHint) && V.isEmpty(t.sid) && (!t.account || V.isEmpty(t.account.username)) && this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."), t.prompt && t.prompt !== Ze.NONE && t.prompt !== Ze.NO_SESSION)
|
|
13131
13134
|
throw r.endMeasurement({
|
|
13132
13135
|
success: !1
|
|
13133
|
-
}),
|
|
13136
|
+
}), q.createSilentPromptValueError(t.prompt);
|
|
13134
13137
|
return this.performanceClient.setPreQueueTime(A.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest($($({}, t), { prompt: t.prompt || Ze.NONE }), W.Silent)];
|
|
13135
13138
|
case 1:
|
|
13136
13139
|
o = u.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || w.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
|
|
@@ -13161,10 +13164,10 @@ var ks = (
|
|
|
13161
13164
|
});
|
|
13162
13165
|
});
|
|
13163
13166
|
}, e.prototype.logout = function() {
|
|
13164
|
-
return Promise.reject(
|
|
13167
|
+
return Promise.reject(q.createSilentLogoutUnsupportedError());
|
|
13165
13168
|
}, e.prototype.silentTokenHelper = function(t, r) {
|
|
13166
13169
|
return O(this, void 0, void 0, function() {
|
|
13167
|
-
var o, i, a, s, u, p, l,
|
|
13170
|
+
var o, i, a, s, u, p, l, g, f, k = this;
|
|
13168
13171
|
return L(this, function(E) {
|
|
13169
13172
|
switch (E.label) {
|
|
13170
13173
|
case 0:
|
|
@@ -13178,8 +13181,8 @@ var ks = (
|
|
|
13178
13181
|
case 4:
|
|
13179
13182
|
if (u = E.sent(), p = le.getDeserializedHash(u), l = this.validateAndExtractStateFromHash(p, W.Silent, o.correlationId), p.accountId) {
|
|
13180
13183
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
13181
|
-
throw
|
|
13182
|
-
return
|
|
13184
|
+
throw q.createNativeConnectionNotEstablishedError();
|
|
13185
|
+
return g = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), f = tn.parseRequestState(this.browserCrypto, l).userRequestState, [2, g.acquireToken($($({}, r), { state: f, prompt: r.prompt || Ze.NONE })).finally(function() {
|
|
13183
13186
|
k.browserStorage.cleanRequestByState(l);
|
|
13184
13187
|
})];
|
|
13185
13188
|
}
|
|
@@ -13194,7 +13197,7 @@ var ks = (
|
|
|
13194
13197
|
var Cs = (
|
|
13195
13198
|
/** @class */
|
|
13196
13199
|
function(n) {
|
|
13197
|
-
|
|
13200
|
+
Qe(e, n);
|
|
13198
13201
|
function e() {
|
|
13199
13202
|
return n !== null && n.apply(this, arguments) || this;
|
|
13200
13203
|
}
|
|
@@ -13225,7 +13228,7 @@ var Cs = (
|
|
|
13225
13228
|
});
|
|
13226
13229
|
});
|
|
13227
13230
|
}, e.prototype.logout = function() {
|
|
13228
|
-
return Promise.reject(
|
|
13231
|
+
return Promise.reject(q.createSilentLogoutUnsupportedError());
|
|
13229
13232
|
}, e.prototype.createRefreshTokenClient = function(t, r, o) {
|
|
13230
13233
|
return O(this, void 0, void 0, function() {
|
|
13231
13234
|
var i;
|
|
@@ -13280,9 +13283,9 @@ var Es = (
|
|
|
13280
13283
|
if (!t)
|
|
13281
13284
|
return;
|
|
13282
13285
|
var r = JSON.parse(t);
|
|
13283
|
-
if (typeof r != "object" || !
|
|
13286
|
+
if (typeof r != "object" || !Ge.isAccountEntity(r))
|
|
13284
13287
|
return;
|
|
13285
|
-
var o = ot.toObject(new
|
|
13288
|
+
var o = ot.toObject(new Ge(), r), i = o.getAccountInfo();
|
|
13286
13289
|
!e.oldValue && e.newValue ? (this.logger.info("Account was added to cache in a different window"), this.emitEvent(ne.ACCOUNT_ADDED, void 0, i)) : !e.newValue && e.oldValue && (this.logger.info("Account was removed from cache in a different window"), this.emitEvent(ne.ACCOUNT_REMOVED, void 0, i));
|
|
13287
13290
|
} catch {
|
|
13288
13291
|
return;
|
|
@@ -13291,7 +13294,7 @@ var Es = (
|
|
|
13291
13294
|
}()
|
|
13292
13295
|
);
|
|
13293
13296
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
13294
|
-
var
|
|
13297
|
+
var $e = (
|
|
13295
13298
|
/** @class */
|
|
13296
13299
|
function() {
|
|
13297
13300
|
function n() {
|
|
@@ -13313,7 +13316,7 @@ var Ti = (
|
|
|
13313
13316
|
return n.prototype.generateGuid = function() {
|
|
13314
13317
|
try {
|
|
13315
13318
|
var e = new Uint8Array(16);
|
|
13316
|
-
return this.cryptoObj.getRandomValues(e), e[6] |= 64, e[6] &= 79, e[8] |= 128, e[8] &= 191,
|
|
13319
|
+
return this.cryptoObj.getRandomValues(e), e[6] |= 64, e[6] &= 79, e[8] |= 128, e[8] &= 191, $e.decimalToHex(e[0]) + $e.decimalToHex(e[1]) + $e.decimalToHex(e[2]) + $e.decimalToHex(e[3]) + "-" + $e.decimalToHex(e[4]) + $e.decimalToHex(e[5]) + "-" + $e.decimalToHex(e[6]) + $e.decimalToHex(e[7]) + "-" + $e.decimalToHex(e[8]) + $e.decimalToHex(e[9]) + "-" + $e.decimalToHex(e[10]) + $e.decimalToHex(e[11]) + $e.decimalToHex(e[12]) + $e.decimalToHex(e[13]) + $e.decimalToHex(e[14]) + $e.decimalToHex(e[15]);
|
|
13317
13320
|
} catch {
|
|
13318
13321
|
for (var t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", r = "0123456789abcdef", o = 0, i = w.EMPTY_STRING, a = 0; a < 36; a++)
|
|
13319
13322
|
t[a] !== "-" && t[a] !== "4" && (o = Math.random() * 16 | 0), t[a] === "x" ? i += r[o] : t[a] === "y" ? (o &= 3, o |= 8, i += r[o]) : i += t[a];
|
|
@@ -13415,8 +13418,8 @@ var Ts = (
|
|
|
13415
13418
|
var r = this.base64DecToArr(t);
|
|
13416
13419
|
return nn.utf8ArrToString(r);
|
|
13417
13420
|
}, n.prototype.base64DecToArr = function(e, t) {
|
|
13418
|
-
for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, w.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, u = void 0, p = 0, l = 0,
|
|
13419
|
-
if (u =
|
|
13421
|
+
for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, w.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, u = void 0, p = 0, l = 0, g = 0; g < o; g++)
|
|
13422
|
+
if (u = g & 3, p |= this.b64ToUint6(r.charCodeAt(g)) << 18 - 6 * u, u === 3 || o - g === 1) {
|
|
13420
13423
|
for (s = 0; s < 3 && l < i; s++, l++)
|
|
13421
13424
|
a[l] = p >>> (16 >>> s & 24) & 255;
|
|
13422
13425
|
p = 0;
|
|
@@ -13456,7 +13459,7 @@ var Ss = 32, Is = (
|
|
|
13456
13459
|
var t = this.base64Encode.urlEncodeArr(e);
|
|
13457
13460
|
return t;
|
|
13458
13461
|
} catch (r) {
|
|
13459
|
-
throw
|
|
13462
|
+
throw q.createPkceNotGeneratedError(r);
|
|
13460
13463
|
}
|
|
13461
13464
|
}, n.prototype.generateCodeChallengeFromVerifier = function(e) {
|
|
13462
13465
|
return O(this, void 0, void 0, function() {
|
|
@@ -13468,7 +13471,7 @@ var Ss = 32, Is = (
|
|
|
13468
13471
|
case 1:
|
|
13469
13472
|
return t = o.sent(), [2, this.base64Encode.urlEncodeArr(new Uint8Array(t))];
|
|
13470
13473
|
case 2:
|
|
13471
|
-
throw r = o.sent(),
|
|
13474
|
+
throw r = o.sent(), q.createPkceNotGeneratedError(r);
|
|
13472
13475
|
case 3:
|
|
13473
13476
|
return [
|
|
13474
13477
|
2
|
|
@@ -13609,10 +13612,10 @@ var Ps = (
|
|
|
13609
13612
|
return L(this, function(s) {
|
|
13610
13613
|
return i = nn.getSortedObjectString(e), a = nn.stringToArrayBuffer(i), [2, new Promise(function(u, p) {
|
|
13611
13614
|
var l = window.msCrypto.subtle.importKey(jn, a, t, r, o);
|
|
13612
|
-
l.addEventListener("complete", function(
|
|
13613
|
-
u(
|
|
13614
|
-
}), l.addEventListener("error", function(
|
|
13615
|
-
p(
|
|
13615
|
+
l.addEventListener("complete", function(g) {
|
|
13616
|
+
u(g.target.result);
|
|
13617
|
+
}), l.addEventListener("error", function(g) {
|
|
13618
|
+
p(g);
|
|
13616
13619
|
});
|
|
13617
13620
|
})];
|
|
13618
13621
|
});
|
|
@@ -13659,7 +13662,7 @@ var Ms = "RSASSA-PKCS1-v1_5", Vo = "SHA-256", Ns = 2048, Os = new Uint8Array([1,
|
|
|
13659
13662
|
else if (this.hasMsrCrypto() && (!((r = this.cryptoOptions) === null || r === void 0) && r.useMsrCrypto))
|
|
13660
13663
|
this.logger.verbose("BrowserCrypto: MSR crypto interface available"), this.subtleCrypto = new Rs();
|
|
13661
13664
|
else
|
|
13662
|
-
throw this.hasMsrCrypto() && this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"), this.logger.error("BrowserCrypto: No crypto interfaces available."),
|
|
13665
|
+
throw this.hasMsrCrypto() && this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"), this.logger.error("BrowserCrypto: No crypto interfaces available."), q.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");
|
|
13663
13666
|
if (this.subtleCrypto.initPrng) {
|
|
13664
13667
|
if (this.logger.verbose("BrowserCrypto: Interface requires entropy"), !(!((o = this.cryptoOptions) === null || o === void 0) && o.entropy))
|
|
13665
13668
|
throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."), Pr.createEntropyNotProvided();
|
|
@@ -13734,7 +13737,7 @@ var Ls = (
|
|
|
13734
13737
|
var s = a;
|
|
13735
13738
|
e.db = s.target.result, e.dbOpen = !0, r();
|
|
13736
13739
|
}), i.addEventListener("error", function() {
|
|
13737
|
-
return o(
|
|
13740
|
+
return o(q.createDatabaseUnavailableError());
|
|
13738
13741
|
});
|
|
13739
13742
|
})];
|
|
13740
13743
|
});
|
|
@@ -13768,7 +13771,7 @@ var Ls = (
|
|
|
13768
13771
|
case 1:
|
|
13769
13772
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
13770
13773
|
if (!t.db)
|
|
13771
|
-
return i(
|
|
13774
|
+
return i(q.createDatabaseNotOpenError());
|
|
13772
13775
|
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
|
|
13773
13776
|
u.addEventListener("success", function(p) {
|
|
13774
13777
|
var l = p;
|
|
@@ -13790,7 +13793,7 @@ var Ls = (
|
|
|
13790
13793
|
case 1:
|
|
13791
13794
|
return o.sent(), [2, new Promise(function(i, a) {
|
|
13792
13795
|
if (!r.db)
|
|
13793
|
-
return a(
|
|
13796
|
+
return a(q.createDatabaseNotOpenError());
|
|
13794
13797
|
var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
|
|
13795
13798
|
p.addEventListener("success", function() {
|
|
13796
13799
|
r.closeConnection(), i();
|
|
@@ -13811,7 +13814,7 @@ var Ls = (
|
|
|
13811
13814
|
case 1:
|
|
13812
13815
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
13813
13816
|
if (!t.db)
|
|
13814
|
-
return i(
|
|
13817
|
+
return i(q.createDatabaseNotOpenError());
|
|
13815
13818
|
var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
|
|
13816
13819
|
u.addEventListener("success", function() {
|
|
13817
13820
|
t.closeConnection(), o();
|
|
@@ -13832,7 +13835,7 @@ var Ls = (
|
|
|
13832
13835
|
case 1:
|
|
13833
13836
|
return t.sent(), [2, new Promise(function(r, o) {
|
|
13834
13837
|
if (!e.db)
|
|
13835
|
-
return o(
|
|
13838
|
+
return o(q.createDatabaseNotOpenError());
|
|
13836
13839
|
var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
|
|
13837
13840
|
s.addEventListener("success", function(u) {
|
|
13838
13841
|
var p = u;
|
|
@@ -13854,7 +13857,7 @@ var Ls = (
|
|
|
13854
13857
|
case 1:
|
|
13855
13858
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
13856
13859
|
if (!t.db)
|
|
13857
|
-
return i(
|
|
13860
|
+
return i(q.createDatabaseNotOpenError());
|
|
13858
13861
|
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
|
|
13859
13862
|
u.addEventListener("success", function(p) {
|
|
13860
13863
|
var l = p;
|
|
@@ -13892,7 +13895,7 @@ var Qo = (
|
|
|
13892
13895
|
this.inMemoryCache = new io(), this.indexedDBCache = new Ls(), this.logger = e, this.storeName = t;
|
|
13893
13896
|
}
|
|
13894
13897
|
return n.prototype.handleDatabaseAccessError = function(e) {
|
|
13895
|
-
if (e instanceof
|
|
13898
|
+
if (e instanceof q && e.errorCode === U.databaseUnavailable.code)
|
|
13896
13899
|
this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");
|
|
13897
13900
|
else
|
|
13898
13901
|
throw e;
|
|
@@ -14080,31 +14083,31 @@ var xs = (
|
|
|
14080
14083
|
var t;
|
|
14081
14084
|
return O(this, void 0, void 0, function() {
|
|
14082
14085
|
var r, o, i, a, s, u, p, l;
|
|
14083
|
-
return L(this, function(
|
|
14084
|
-
switch (
|
|
14086
|
+
return L(this, function(g) {
|
|
14087
|
+
switch (g.label) {
|
|
14085
14088
|
case 0:
|
|
14086
14089
|
return r = (t = this.performanceClient) === null || t === void 0 ? void 0 : t.startMeasurement(A.CryptoOptsGetPublicKeyThumbprint, e.correlationId), [4, this.browserCrypto.generateKeyPair(n.EXTRACTABLE, n.POP_KEY_USAGES)];
|
|
14087
14090
|
case 1:
|
|
14088
|
-
return o =
|
|
14091
|
+
return o = g.sent(), [4, this.browserCrypto.exportJwk(o.publicKey)];
|
|
14089
14092
|
case 2:
|
|
14090
|
-
return i =
|
|
14093
|
+
return i = g.sent(), a = {
|
|
14091
14094
|
e: i.e,
|
|
14092
14095
|
kty: i.kty,
|
|
14093
14096
|
n: i.n
|
|
14094
14097
|
}, s = nn.getSortedObjectString(a), [4, this.hashString(s)];
|
|
14095
14098
|
case 3:
|
|
14096
|
-
return u =
|
|
14099
|
+
return u = g.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
|
|
14097
14100
|
case 4:
|
|
14098
|
-
return p =
|
|
14101
|
+
return p = g.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
|
|
14099
14102
|
case 5:
|
|
14100
|
-
return l =
|
|
14103
|
+
return l = g.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
|
|
14101
14104
|
privateKey: l,
|
|
14102
14105
|
publicKey: o.publicKey,
|
|
14103
14106
|
requestMethod: e.resourceRequestMethod,
|
|
14104
14107
|
requestUri: e.resourceRequestUri
|
|
14105
14108
|
})];
|
|
14106
14109
|
case 6:
|
|
14107
|
-
return
|
|
14110
|
+
return g.sent(), r && r.endMeasurement({
|
|
14108
14111
|
success: !0
|
|
14109
14112
|
}), [2, u];
|
|
14110
14113
|
}
|
|
@@ -14138,19 +14141,19 @@ var xs = (
|
|
|
14138
14141
|
}, n.prototype.signJwt = function(e, t, r) {
|
|
14139
14142
|
var o;
|
|
14140
14143
|
return O(this, void 0, void 0, function() {
|
|
14141
|
-
var i, a, s, u, p, l,
|
|
14144
|
+
var i, a, s, u, p, l, g, f, k, E, P, j, K;
|
|
14142
14145
|
return L(this, function(z) {
|
|
14143
14146
|
switch (z.label) {
|
|
14144
14147
|
case 0:
|
|
14145
14148
|
return i = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.CryptoOptsSignJwt, r), [4, this.cache.asymmetricKeys.getItem(t)];
|
|
14146
14149
|
case 1:
|
|
14147
14150
|
if (a = z.sent(), !a)
|
|
14148
|
-
throw
|
|
14151
|
+
throw q.createSigningKeyNotFoundInStorageError(t);
|
|
14149
14152
|
return [4, this.browserCrypto.exportJwk(a.publicKey)];
|
|
14150
14153
|
case 2:
|
|
14151
|
-
return s = z.sent(), u = nn.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), l = ss.getShrHeaderString({ kid: p, alg: s.alg }),
|
|
14154
|
+
return s = z.sent(), u = nn.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), l = ss.getShrHeaderString({ kid: p, alg: s.alg }), g = this.b64Encode.urlEncode(l), e.cnf = {
|
|
14152
14155
|
jwk: JSON.parse(u)
|
|
14153
|
-
}, f = this.b64Encode.urlEncode(JSON.stringify(e)), k =
|
|
14156
|
+
}, f = this.b64Encode.urlEncode(JSON.stringify(e)), k = g + "." + f, E = nn.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
|
|
14154
14157
|
case 3:
|
|
14155
14158
|
return P = z.sent(), j = this.b64Encode.urlEncodeArr(new Uint8Array(P)), K = k + "." + j, i && i.endMeasurement({
|
|
14156
14159
|
success: !0
|
|
@@ -14227,7 +14230,7 @@ var Yo = (
|
|
|
14227
14230
|
var Us = (
|
|
14228
14231
|
/** @class */
|
|
14229
14232
|
function(n) {
|
|
14230
|
-
|
|
14233
|
+
Qe(e, n);
|
|
14231
14234
|
function e(t, r, o, i, a, s, u) {
|
|
14232
14235
|
var p = n.call(this, t, r, o, i, a, s) || this;
|
|
14233
14236
|
return p.browserCrypto = new Ii(p.logger, u), p.guidGenerator = new Ti(p.browserCrypto), p;
|
|
@@ -14291,7 +14294,7 @@ var Bs = (
|
|
|
14291
14294
|
}
|
|
14292
14295
|
return n.prototype.loadExternalTokens = function(e, t, r) {
|
|
14293
14296
|
if (this.logger.info("TokenCache - loadExternalTokens called"), !t.id_token)
|
|
14294
|
-
throw
|
|
14297
|
+
throw q.createUnableToLoadTokenError("Please ensure server response includes id token.");
|
|
14295
14298
|
var o = new Vt(t.id_token, this.cryptoObj), i, a;
|
|
14296
14299
|
if (e.account) {
|
|
14297
14300
|
var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
|
|
@@ -14313,44 +14316,44 @@ var Bs = (
|
|
|
14313
14316
|
var s = this.loadAccount(o, a.hostnameAndPort, t.client_info, a.authorityType);
|
|
14314
14317
|
i = new tr(s, this.loadIdToken(o, s.homeAccountId, a.hostnameAndPort, a.tenant), this.loadAccessToken(e, t, s.homeAccountId, a.hostnameAndPort, a.tenant, r), this.loadRefreshToken(e, t, s.homeAccountId, a.hostnameAndPort));
|
|
14315
14318
|
} else
|
|
14316
|
-
throw
|
|
14319
|
+
throw q.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");
|
|
14317
14320
|
} else
|
|
14318
|
-
throw
|
|
14321
|
+
throw q.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");
|
|
14319
14322
|
return this.generateAuthenticationResult(e, o, i, a);
|
|
14320
14323
|
}, n.prototype.loadAccount = function(e, t, r, o, i) {
|
|
14321
14324
|
var a;
|
|
14322
|
-
if (i ? a = i : o !== void 0 && r && (a =
|
|
14323
|
-
throw
|
|
14324
|
-
var s = r ?
|
|
14325
|
+
if (i ? a = i : o !== void 0 && r && (a = Ge.generateHomeAccountId(r, o, this.logger, this.cryptoObj, e)), !a)
|
|
14326
|
+
throw q.createUnableToLoadTokenError("Unexpected missing homeAccountId");
|
|
14327
|
+
var s = r ? Ge.createAccount(r, a, e, void 0, void 0, void 0, t) : Ge.createGenericAccount(a, e, void 0, void 0, void 0, t);
|
|
14325
14328
|
if (this.isBrowserEnvironment)
|
|
14326
14329
|
return this.logger.verbose("TokenCache - loading account"), this.storage.setAccount(s), s;
|
|
14327
|
-
throw
|
|
14330
|
+
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
14328
14331
|
}, n.prototype.loadIdToken = function(e, t, r, o) {
|
|
14329
14332
|
var i = Cn.createIdTokenEntity(t, r, e.rawToken, this.config.auth.clientId, o);
|
|
14330
14333
|
if (this.isBrowserEnvironment)
|
|
14331
14334
|
return this.logger.verbose("TokenCache - loading id token"), this.storage.setIdTokenCredential(i), i;
|
|
14332
|
-
throw
|
|
14335
|
+
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
14333
14336
|
}, n.prototype.loadAccessToken = function(e, t, r, o, i, a) {
|
|
14334
14337
|
if (!t.access_token)
|
|
14335
14338
|
return this.logger.verbose("TokenCache - No access token provided for caching"), null;
|
|
14336
14339
|
if (!t.expires_in)
|
|
14337
|
-
throw
|
|
14340
|
+
throw q.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
|
|
14338
14341
|
if (!a.extendedExpiresOn)
|
|
14339
|
-
throw
|
|
14342
|
+
throw q.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
|
|
14340
14343
|
var s = new Xe(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, l = En.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
|
|
14341
14344
|
if (this.isBrowserEnvironment)
|
|
14342
14345
|
return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(l), l;
|
|
14343
|
-
throw
|
|
14346
|
+
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
14344
14347
|
}, n.prototype.loadRefreshToken = function(e, t, r, o) {
|
|
14345
14348
|
if (!t.refresh_token)
|
|
14346
14349
|
return this.logger.verbose("TokenCache - No refresh token provided for caching"), null;
|
|
14347
14350
|
var i = On.createRefreshTokenEntity(r, o, t.refresh_token, this.config.auth.clientId);
|
|
14348
14351
|
if (this.isBrowserEnvironment)
|
|
14349
14352
|
return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
|
|
14350
|
-
throw
|
|
14353
|
+
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
14351
14354
|
}, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
|
|
14352
|
-
var i, a, s, u = w.EMPTY_STRING, p = [], l = null,
|
|
14353
|
-
r != null && r.accessToken && (u = r.accessToken.secret, p = Xe.fromString(r.accessToken.target).asArray(), l = new Date(Number(r.accessToken.expiresOn) * 1e3),
|
|
14355
|
+
var i, a, s, u = w.EMPTY_STRING, p = [], l = null, g;
|
|
14356
|
+
r != null && r.accessToken && (u = r.accessToken.secret, p = Xe.fromString(r.accessToken.target).asArray(), l = new Date(Number(r.accessToken.expiresOn) * 1e3), g = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
|
|
14354
14357
|
var f = (t == null ? void 0 : t.claims.oid) || (t == null ? void 0 : t.claims.sub) || w.EMPTY_STRING, k = (t == null ? void 0 : t.claims.tid) || w.EMPTY_STRING;
|
|
14355
14358
|
return {
|
|
14356
14359
|
authority: o ? o.canonicalAuthority : w.EMPTY_STRING,
|
|
@@ -14365,7 +14368,7 @@ var Bs = (
|
|
|
14365
14368
|
expiresOn: l,
|
|
14366
14369
|
correlationId: e.correlationId || w.EMPTY_STRING,
|
|
14367
14370
|
requestId: w.EMPTY_STRING,
|
|
14368
|
-
extExpiresOn:
|
|
14371
|
+
extExpiresOn: g,
|
|
14369
14372
|
familyId: w.EMPTY_STRING,
|
|
14370
14373
|
tokenType: ((i = r == null ? void 0 : r.accessToken) === null || i === void 0 ? void 0 : i.tokenType) || w.EMPTY_STRING,
|
|
14371
14374
|
state: w.EMPTY_STRING,
|
|
@@ -14381,7 +14384,7 @@ var Bs = (
|
|
|
14381
14384
|
var Ds = (
|
|
14382
14385
|
/** @class */
|
|
14383
14386
|
function(n) {
|
|
14384
|
-
|
|
14387
|
+
Qe(e, n);
|
|
14385
14388
|
function e(t) {
|
|
14386
14389
|
var r = n.call(this, t) || this;
|
|
14387
14390
|
return r.includeRedirectUri = !1, r;
|
|
@@ -14393,9 +14396,9 @@ var Ds = (
|
|
|
14393
14396
|
var Hs = (
|
|
14394
14397
|
/** @class */
|
|
14395
14398
|
function(n) {
|
|
14396
|
-
|
|
14397
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
14398
|
-
var f = n.call(this, t, r, o, i, a, s, p, l,
|
|
14399
|
+
Qe(e, n);
|
|
14400
|
+
function e(t, r, o, i, a, s, u, p, l, g) {
|
|
14401
|
+
var f = n.call(this, t, r, o, i, a, s, p, l, g) || this;
|
|
14399
14402
|
return f.apiId = u, f;
|
|
14400
14403
|
}
|
|
14401
14404
|
return e.prototype.acquireToken = function(t) {
|
|
@@ -14405,7 +14408,7 @@ var Hs = (
|
|
|
14405
14408
|
switch (l.label) {
|
|
14406
14409
|
case 0:
|
|
14407
14410
|
if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
|
|
14408
|
-
throw
|
|
14411
|
+
throw q.createAuthCodeRequiredError();
|
|
14409
14412
|
return this.performanceClient.setPreQueueTime(A.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, W.Silent)];
|
|
14410
14413
|
case 1:
|
|
14411
14414
|
r = l.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || w.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), l.label = 2;
|
|
@@ -14429,7 +14432,7 @@ var Hs = (
|
|
|
14429
14432
|
});
|
|
14430
14433
|
});
|
|
14431
14434
|
}, e.prototype.logout = function() {
|
|
14432
|
-
return Promise.reject(
|
|
14435
|
+
return Promise.reject(q.createSilentLogoutUnsupportedError());
|
|
14433
14436
|
}, e;
|
|
14434
14437
|
}(Gn)
|
|
14435
14438
|
);
|
|
@@ -14438,7 +14441,7 @@ var js = (
|
|
|
14438
14441
|
/** @class */
|
|
14439
14442
|
function() {
|
|
14440
14443
|
function n(e) {
|
|
14441
|
-
this.isBrowserEnvironment = typeof window < "u", this.config = bs(e, this.isBrowserEnvironment), this.initialized = !1, this.logger = new
|
|
14444
|
+
this.isBrowserEnvironment = typeof window < "u", this.config = bs(e, this.isBrowserEnvironment), this.initialized = !1, this.logger = new mo(this.config.system.loggerOptions, Gr, nr), this.networkClient = this.config.system.networkClient, this.navigationClient = this.config.system.navigationClient, this.redirectResponse = /* @__PURE__ */ new Map(), this.hybridAuthCodeResponses = /* @__PURE__ */ new Map(), this.performanceClient = this.isBrowserEnvironment ? new Us(this.config.auth.clientId, this.config.auth.authority, this.logger, Gr, nr, this.config.telemetry.application, this.config.system.cryptoOptions) : new ls(this.config.auth.clientId, this.config.auth.authority, this.logger, Gr, nr, this.config.telemetry.application), this.browserCrypto = this.isBrowserEnvironment ? new xs(this.logger, this.performanceClient, this.config.system.cryptoOptions) : Cr, this.eventHandler = new Es(this.logger, this.browserCrypto), this.browserStorage = this.isBrowserEnvironment ? new ao(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger) : ps(this.config.auth.clientId, this.logger);
|
|
14442
14445
|
var t = {
|
|
14443
14446
|
cacheLocation: Oe.MemoryStorage,
|
|
14444
14447
|
temporaryCacheLocation: Oe.MemoryStorage,
|
|
@@ -14484,7 +14487,7 @@ var js = (
|
|
|
14484
14487
|
}, n.prototype.handleRedirectPromise = function(e) {
|
|
14485
14488
|
return O(this, void 0, void 0, function() {
|
|
14486
14489
|
var t, r, o, i, a, s, u, p, l = this;
|
|
14487
|
-
return L(this, function(
|
|
14490
|
+
return L(this, function(g) {
|
|
14488
14491
|
return this.logger.verbose("handleRedirectPromise called"), Ae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || w.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(ne.HANDLE_REDIRECT_START, W.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && Sn.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), u = this.browserStorage.getTemporaryCache(ue.CORRELATION_ID, !0) || w.EMPTY_STRING, p = this.createRedirectClient(u), a = p.handleRedirectPromise(e)), o = a.then(function(f) {
|
|
14489
14492
|
if (f) {
|
|
14490
14493
|
var k = t.length < l.getAllAccounts().length;
|
|
@@ -14589,11 +14592,11 @@ var js = (
|
|
|
14589
14592
|
}
|
|
14590
14593
|
throw p;
|
|
14591
14594
|
}) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
|
|
14592
|
-
var l,
|
|
14595
|
+
var l, g;
|
|
14593
14596
|
return s.eventHandler.emitEvent(ne.SSO_SILENT_SUCCESS, W.Silent, p), (l = s.ssoSilentMeasurement) === null || l === void 0 || l.addStaticFields({
|
|
14594
14597
|
accessTokenSize: p.accessToken.length,
|
|
14595
14598
|
idTokenSize: p.idToken.length
|
|
14596
|
-
}), (
|
|
14599
|
+
}), (g = s.ssoSilentMeasurement) === null || g === void 0 || g.endMeasurement({
|
|
14597
14600
|
success: !0,
|
|
14598
14601
|
isNativeBroker: p.fromNativeBroker,
|
|
14599
14602
|
requestId: p.requestId
|
|
@@ -14617,7 +14620,7 @@ var js = (
|
|
|
14617
14620
|
t = this.getRequestCorrelationId(e), this.preflightBrowserEnvironmentCheck(W.Silent), this.logger.trace("acquireTokenByCode called", t), this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_START, W.Silent, e), r = this.performanceClient.startMeasurement(A.AcquireTokenByCode, e.correlationId);
|
|
14618
14621
|
try {
|
|
14619
14622
|
if (e.code && e.nativeAccountId)
|
|
14620
|
-
throw
|
|
14623
|
+
throw q.createSpaCodeAndNativeAccountIdPresentError();
|
|
14621
14624
|
if (e.code)
|
|
14622
14625
|
return o = e.code, i = this.hybridAuthCodeResponses.get(o), i ? (this.logger.verbose("Existing acquireTokenByCode request found", e.correlationId), r.discardMeasurement()) : (this.logger.verbose("Initiating new acquireTokenByCode request", t), i = this.acquireTokenByCodeAsync($($({}, e), { correlationId: t })).then(function(u) {
|
|
14623
14626
|
return a.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_SUCCESS, W.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
|
|
@@ -14640,9 +14643,9 @@ var js = (
|
|
|
14640
14643
|
return [2, this.acquireTokenNative(e, Ce.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
|
|
14641
14644
|
throw u instanceof Kt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
|
|
14642
14645
|
})];
|
|
14643
|
-
throw
|
|
14646
|
+
throw q.createUnableToAcquireTokenFromNativePlatformError();
|
|
14644
14647
|
} else
|
|
14645
|
-
throw
|
|
14648
|
+
throw q.createAuthCodeOrNativeAccountIdRequiredError();
|
|
14646
14649
|
} catch (u) {
|
|
14647
14650
|
throw this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_BY_CODE_FAILURE, W.Silent, null, u), r.endMeasurement({
|
|
14648
14651
|
errorCode: u instanceof X && u.errorCode || void 0,
|
|
@@ -14786,7 +14789,7 @@ var js = (
|
|
|
14786
14789
|
var o;
|
|
14787
14790
|
return L(this, function(i) {
|
|
14788
14791
|
if (this.logger.trace("acquireTokenNative called"), !this.nativeExtensionProvider)
|
|
14789
|
-
throw
|
|
14792
|
+
throw q.createNativeConnectionNotEstablishedError();
|
|
14790
14793
|
return o = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, t, this.performanceClient, this.nativeExtensionProvider, r || this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), [2, o.acquireToken(e)];
|
|
14791
14794
|
});
|
|
14792
14795
|
});
|
|
@@ -14808,9 +14811,9 @@ var js = (
|
|
|
14808
14811
|
var t = e.account || this.browserStorage.getAccountInfoByHints(e.loginHint, e.sid) || this.getActiveAccount();
|
|
14809
14812
|
return t && t.nativeAccountId || "";
|
|
14810
14813
|
}, n.prototype.createPopupClient = function(e) {
|
|
14811
|
-
return new ms(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, e);
|
|
14812
|
-
}, n.prototype.createRedirectClient = function(e) {
|
|
14813
14814
|
return new gs(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, e);
|
|
14815
|
+
}, n.prototype.createRedirectClient = function(e) {
|
|
14816
|
+
return new ms(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, e);
|
|
14814
14817
|
}, n.prototype.createSilentIframeClient = function(e) {
|
|
14815
14818
|
return new ks(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.ssoSilent, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, e);
|
|
14816
14819
|
}, n.prototype.createSilentCacheClient = function(e) {
|
|
@@ -14852,7 +14855,7 @@ var js = (
|
|
|
14852
14855
|
var Fs = (
|
|
14853
14856
|
/** @class */
|
|
14854
14857
|
function(n) {
|
|
14855
|
-
|
|
14858
|
+
Qe(e, n);
|
|
14856
14859
|
function e(t) {
|
|
14857
14860
|
var r = n.call(this, t) || this;
|
|
14858
14861
|
return r.astsAsyncMeasurement = void 0, r.activeSilentTokenRequests = /* @__PURE__ */ new Map(), r.trackPageVisibility = r.trackPageVisibility.bind(r), r;
|
|
@@ -14870,11 +14873,11 @@ var Fs = (
|
|
|
14870
14873
|
}, e.prototype.acquireTokenSilent = function(t) {
|
|
14871
14874
|
return O(this, void 0, void 0, function() {
|
|
14872
14875
|
var r, o, i, a, s, u, p, l = this;
|
|
14873
|
-
return L(this, function(
|
|
14876
|
+
return L(this, function(g) {
|
|
14874
14877
|
if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(A.AcquireTokenSilent, r), o.addStaticFields({
|
|
14875
14878
|
cacheLookupPolicy: t.cacheLookupPolicy
|
|
14876
14879
|
}), this.preflightBrowserEnvironmentCheck(W.Silent), this.logger.verbose("acquireTokenSilent called", r), i = t.account || this.getActiveAccount(), !i)
|
|
14877
|
-
throw
|
|
14880
|
+
throw q.createNoAccountError();
|
|
14878
14881
|
return a = {
|
|
14879
14882
|
clientId: this.config.auth.clientId,
|
|
14880
14883
|
authority: t.authority || w.EMPTY_STRING,
|
|
@@ -14914,8 +14917,8 @@ var Fs = (
|
|
|
14914
14917
|
var o;
|
|
14915
14918
|
return O(this, void 0, void 0, function() {
|
|
14916
14919
|
var i, a, s, u, p, l = this;
|
|
14917
|
-
return L(this, function(
|
|
14918
|
-
switch (
|
|
14920
|
+
return L(this, function(g) {
|
|
14921
|
+
switch (g.label) {
|
|
14919
14922
|
case 0:
|
|
14920
14923
|
return this.performanceClient.addQueueMeasurement(A.AcquireTokenSilentAsync, t.correlationId), this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_START, W.Silent, t), this.astsAsyncMeasurement = this.performanceClient.startMeasurement(A.AcquireTokenSilentAsync, t.correlationId), (o = this.astsAsyncMeasurement) === null || o === void 0 || o.increment({
|
|
14921
14924
|
visibilityChangeCount: 0
|
|
@@ -14932,7 +14935,7 @@ var Fs = (
|
|
|
14932
14935
|
case 1:
|
|
14933
14936
|
return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"), s = this.createSilentCacheClient(t.correlationId), this.performanceClient.setPreQueueTime(A.InitializeSilentRequest, t.correlationId), [4, s.initializeSilentRequest(t, r)];
|
|
14934
14937
|
case 2:
|
|
14935
|
-
u =
|
|
14938
|
+
u = g.sent(), p = $($({}, t), {
|
|
14936
14939
|
// set the request's CacheLookupPolicy to Default if it was not optionally passed in
|
|
14937
14940
|
cacheLookupPolicy: t.cacheLookupPolicy || it.Default
|
|
14938
14941
|
}), this.performanceClient.setPreQueueTime(A.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(f) {
|
|
@@ -14944,7 +14947,7 @@ var Fs = (
|
|
|
14944
14947
|
throw k;
|
|
14945
14948
|
return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), l.performanceClient.setPreQueueTime(A.AcquireTokenBySilentIframe, u.correlationId), l.acquireTokenBySilentIframe(u);
|
|
14946
14949
|
});
|
|
14947
|
-
}),
|
|
14950
|
+
}), g.label = 3;
|
|
14948
14951
|
case 3:
|
|
14949
14952
|
return [2, i.then(function(f) {
|
|
14950
14953
|
var k;
|
|
@@ -15053,10 +15056,10 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15053
15056
|
return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
|
|
15054
15057
|
if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
|
|
15055
15058
|
const [i, a] = await fe(
|
|
15056
|
-
|
|
15059
|
+
Je.microsoftSDK(r, this.$storex)
|
|
15057
15060
|
);
|
|
15058
15061
|
if (i)
|
|
15059
|
-
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1,
|
|
15062
|
+
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
|
|
15060
15063
|
if (a.data.success) {
|
|
15061
15064
|
if (this.display === "popup")
|
|
15062
15065
|
return (o = window.parent) == null ? void 0 : o.postMessage(
|
|
@@ -15069,10 +15072,10 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15069
15072
|
} else
|
|
15070
15073
|
this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
|
|
15071
15074
|
} else
|
|
15072
|
-
this.microsoftLoad = !1, this.microsoftSSOLoad = !1,
|
|
15075
|
+
this.microsoftLoad = !1, this.microsoftSSOLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
15073
15076
|
},
|
|
15074
15077
|
ssoLogin() {
|
|
15075
|
-
|
|
15078
|
+
F.$emit("toggleSSOModal");
|
|
15076
15079
|
}
|
|
15077
15080
|
}
|
|
15078
15081
|
}, Dn = {
|
|
@@ -15126,8 +15129,8 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15126
15129
|
t.src = "data:image/jpeg;base64," + n, t.onload = () => {
|
|
15127
15130
|
const i = t.width, a = t.width / 1.65, s = 0, u = t.height / 2 - a / 2, p = i, l = a;
|
|
15128
15131
|
r.width = p, r.height = l, o.drawImage(t, s, u, i, a, 0, 0, p, l);
|
|
15129
|
-
const
|
|
15130
|
-
return e(
|
|
15132
|
+
const g = r.toDataURL();
|
|
15133
|
+
return e(g), g;
|
|
15131
15134
|
};
|
|
15132
15135
|
},
|
|
15133
15136
|
generateRandomString(n) {
|
|
@@ -15184,13 +15187,13 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15184
15187
|
return this.errorHandler(e);
|
|
15185
15188
|
localStorage.removeItem("pkce_code_verifier");
|
|
15186
15189
|
let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
|
|
15187
|
-
if (this.display === "popup" && (r.response_type = "code"), [e, t] = await fe(
|
|
15188
|
-
return this.oktaLoad = !1,
|
|
15190
|
+
if (this.display === "popup" && (r.response_type = "code"), [e, t] = await fe(Je.oktaSDK(r, this.$storex)), e)
|
|
15191
|
+
return this.oktaLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
|
|
15189
15192
|
if (t.data.success) {
|
|
15190
15193
|
if (this.display === "popup")
|
|
15191
15194
|
return (i = window.parent) == null ? void 0 : i.postMessage({ code: t.data.auth_code, state: this.$route.query.state }, "*");
|
|
15192
15195
|
await this.loginSetup(t), await this.getLoggedInAccounts(), this.$router.push("/" + t.data.data.username + "#edit"), setTimeout(() => {
|
|
15193
|
-
this.appleLoad = !1,
|
|
15196
|
+
this.appleLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
15194
15197
|
}, 1e3);
|
|
15195
15198
|
} else
|
|
15196
15199
|
this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
|
|
@@ -15215,7 +15218,7 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15215
15218
|
const a = new URLSearchParams(e);
|
|
15216
15219
|
t = a.get("client_id"), r = a.get("domain"), o = a.get("platform");
|
|
15217
15220
|
}
|
|
15218
|
-
window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isIOS && await yr.close(),
|
|
15221
|
+
window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isIOS && await yr.close(), F.$emit("ssoEvent", { name: "setLoading", data: !0 }), n && t && r && await this.exchangeCode({ code: n, clientID: t, domain: r, platform: o }), localStorage.removeItem("pkce_code_verifier"), F.$emit("ssoEvent", { name: "setLoading", data: !1 }));
|
|
15219
15222
|
}
|
|
15220
15223
|
}
|
|
15221
15224
|
}, xr = {
|
|
@@ -15257,12 +15260,12 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15257
15260
|
if (this.$route.query.code && (e.code = this.$route.query.code), window.opener)
|
|
15258
15261
|
window.opener.postMessage(e, location.origin), window.close();
|
|
15259
15262
|
else {
|
|
15260
|
-
if (this.isNative && this.isIOS && await yr.close(),
|
|
15263
|
+
if (this.isNative && this.isIOS && await yr.close(), F.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (n = this.$route.query.code), console.log(this.display, { code: n }), n) {
|
|
15261
15264
|
if (this.display === "popup")
|
|
15262
15265
|
return (t = window.parent) == null ? void 0 : t.postMessage({ code: n, state: this.$route.query.state }, "*");
|
|
15263
15266
|
await this.exchangeAuthCode({ code: n, code_verifier: localStorage.getItem("pkce_code_verifier") });
|
|
15264
15267
|
}
|
|
15265
|
-
localStorage.removeItem("pkce_code_verifier"),
|
|
15268
|
+
localStorage.removeItem("pkce_code_verifier"), F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
15266
15269
|
}
|
|
15267
15270
|
}
|
|
15268
15271
|
}
|
|
@@ -15314,7 +15317,7 @@ var Ai = { exports: {} };
|
|
|
15314
15317
|
var G;
|
|
15315
15318
|
return T.prototype = D, G = new T(), T.prototype = null, G;
|
|
15316
15319
|
};
|
|
15317
|
-
}(), p = {}, l = p.lib = {},
|
|
15320
|
+
}(), p = {}, l = p.lib = {}, g = l.Base = { extend: function(T) {
|
|
15318
15321
|
var D = u(this);
|
|
15319
15322
|
return T && D.mixIn(T), D.hasOwnProperty("init") && this.init !== D.init || (D.init = function() {
|
|
15320
15323
|
D.$super.init.apply(this, arguments);
|
|
@@ -15329,7 +15332,7 @@ var Ai = { exports: {} };
|
|
|
15329
15332
|
T.hasOwnProperty("toString") && (this.toString = T.toString);
|
|
15330
15333
|
}, clone: function() {
|
|
15331
15334
|
return this.init.prototype.extend(this);
|
|
15332
|
-
} }, f = l.WordArray =
|
|
15335
|
+
} }, f = l.WordArray = g.extend({ init: function(T, D) {
|
|
15333
15336
|
T = this.words = T || [], this.sigBytes = D ?? 4 * T.length;
|
|
15334
15337
|
}, toString: function(T) {
|
|
15335
15338
|
return (T || E).stringify(this);
|
|
@@ -15348,7 +15351,7 @@ var Ai = { exports: {} };
|
|
|
15348
15351
|
var T = this.words, D = this.sigBytes;
|
|
15349
15352
|
T[D >>> 2] &= 4294967295 << 32 - D % 4 * 8, T.length = a.ceil(D / 4);
|
|
15350
15353
|
}, clone: function() {
|
|
15351
|
-
var T =
|
|
15354
|
+
var T = g.clone.call(this);
|
|
15352
15355
|
return T.words = this.words.slice(0), T;
|
|
15353
15356
|
}, random: function(T) {
|
|
15354
15357
|
for (var D, G = [], J = function(ve) {
|
|
@@ -15391,7 +15394,7 @@ var Ai = { exports: {} };
|
|
|
15391
15394
|
}
|
|
15392
15395
|
}, parse: function(T) {
|
|
15393
15396
|
return P.parse(unescape(encodeURIComponent(T)));
|
|
15394
|
-
} }, K = l.BufferedBlockAlgorithm =
|
|
15397
|
+
} }, K = l.BufferedBlockAlgorithm = g.extend({ reset: function() {
|
|
15395
15398
|
this._data = new f.init(), this._nDataBytes = 0;
|
|
15396
15399
|
}, _append: function(T) {
|
|
15397
15400
|
typeof T == "string" && (T = j.parse(T)), this._data.concat(T), this._nDataBytes += T.sigBytes;
|
|
@@ -15405,9 +15408,9 @@ var Ai = { exports: {} };
|
|
|
15405
15408
|
}
|
|
15406
15409
|
return new f.init(Ne, Se);
|
|
15407
15410
|
}, clone: function() {
|
|
15408
|
-
var T =
|
|
15411
|
+
var T = g.clone.call(this);
|
|
15409
15412
|
return T._data = this._data.clone(), T;
|
|
15410
|
-
}, _minBufferSize: 0 }), z = (l.Hasher = K.extend({ cfg:
|
|
15413
|
+
}, _minBufferSize: 0 }), z = (l.Hasher = K.extend({ cfg: g.extend(), init: function(T) {
|
|
15411
15414
|
this.cfg = this.cfg.extend(T), this.reset();
|
|
15412
15415
|
}, reset: function() {
|
|
15413
15416
|
K.reset.call(this), this._doReset();
|
|
@@ -15430,9 +15433,9 @@ var Ai = { exports: {} };
|
|
|
15430
15433
|
var i, a, s, u;
|
|
15431
15434
|
t.exports = (i = o(0), s = (a = i).lib.Base, u = a.enc.Utf8, void (a.algo.HMAC = s.extend({ init: function(p, l) {
|
|
15432
15435
|
p = this._hasher = new p.init(), typeof l == "string" && (l = u.parse(l));
|
|
15433
|
-
var
|
|
15436
|
+
var g = p.blockSize, f = 4 * g;
|
|
15434
15437
|
l.sigBytes > f && (l = p.finalize(l)), l.clamp();
|
|
15435
|
-
for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), P = k.words, j = E.words, K = 0; K <
|
|
15438
|
+
for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), P = k.words, j = E.words, K = 0; K < g; K++)
|
|
15436
15439
|
P[K] ^= 1549556828, j[K] ^= 909522486;
|
|
15437
15440
|
k.sigBytes = E.sigBytes = f, this.reset();
|
|
15438
15441
|
}, reset: function() {
|
|
@@ -15441,28 +15444,28 @@ var Ai = { exports: {} };
|
|
|
15441
15444
|
}, update: function(p) {
|
|
15442
15445
|
return this._hasher.update(p), this;
|
|
15443
15446
|
}, finalize: function(p) {
|
|
15444
|
-
var l = this._hasher,
|
|
15445
|
-
return l.reset(), l.finalize(this._oKey.clone().concat(
|
|
15447
|
+
var l = this._hasher, g = l.finalize(p);
|
|
15448
|
+
return l.reset(), l.finalize(this._oKey.clone().concat(g));
|
|
15446
15449
|
} })));
|
|
15447
15450
|
}, function(t, r, o) {
|
|
15448
15451
|
var i;
|
|
15449
15452
|
t.exports = (i = o(0), i.enc.Hex);
|
|
15450
15453
|
}, function(t, r, o) {
|
|
15451
15454
|
var i, a, s, u, p, l;
|
|
15452
|
-
t.exports = (l = o(0), a = (i = l).lib, s = a.Base, u = a.WordArray, (p = i.x64 = {}).Word = s.extend({ init: function(
|
|
15453
|
-
this.high =
|
|
15454
|
-
} }), p.WordArray = s.extend({ init: function(
|
|
15455
|
-
|
|
15455
|
+
t.exports = (l = o(0), a = (i = l).lib, s = a.Base, u = a.WordArray, (p = i.x64 = {}).Word = s.extend({ init: function(g, f) {
|
|
15456
|
+
this.high = g, this.low = f;
|
|
15457
|
+
} }), p.WordArray = s.extend({ init: function(g, f) {
|
|
15458
|
+
g = this.words = g || [], this.sigBytes = f ?? 8 * g.length;
|
|
15456
15459
|
}, toX32: function() {
|
|
15457
|
-
for (var
|
|
15458
|
-
var P =
|
|
15460
|
+
for (var g = this.words, f = g.length, k = [], E = 0; E < f; E++) {
|
|
15461
|
+
var P = g[E];
|
|
15459
15462
|
k.push(P.high), k.push(P.low);
|
|
15460
15463
|
}
|
|
15461
15464
|
return u.create(k, this.sigBytes);
|
|
15462
15465
|
}, clone: function() {
|
|
15463
|
-
for (var
|
|
15466
|
+
for (var g = s.clone.call(this), f = g.words = this.words.slice(0), k = f.length, E = 0; E < k; E++)
|
|
15464
15467
|
f[E] = f[E].clone();
|
|
15465
|
-
return
|
|
15468
|
+
return g;
|
|
15466
15469
|
} }), l);
|
|
15467
15470
|
}, function(t, r, o) {
|
|
15468
15471
|
var i;
|
|
@@ -15496,8 +15499,8 @@ var Ai = { exports: {} };
|
|
|
15496
15499
|
default:
|
|
15497
15500
|
throw new Error("Unknown base32 variant: " + a);
|
|
15498
15501
|
}
|
|
15499
|
-
for (var u = i.length, p = 0, l = 0,
|
|
15500
|
-
l = l << 5 | o(s, i[k]), (p += 5) >= 8 && (f[
|
|
15502
|
+
for (var u = i.length, p = 0, l = 0, g = 0, f = new Uint8Array(5 * u / 8 | 0), k = 0; k < u; k++)
|
|
15503
|
+
l = l << 5 | o(s, i[k]), (p += 5) >= 8 && (f[g++] = l >>> p - 8 & 255, p -= 8);
|
|
15501
15504
|
return f.buffer;
|
|
15502
15505
|
};
|
|
15503
15506
|
}, function(t, r) {
|
|
@@ -15517,8 +15520,8 @@ var Ai = { exports: {} };
|
|
|
15517
15520
|
default:
|
|
15518
15521
|
throw new Error("Unknown base32 variant: " + i);
|
|
15519
15522
|
}
|
|
15520
|
-
for (var p = a.padding !== void 0 ? a.padding : u, l = o.byteLength,
|
|
15521
|
-
for (k = k << 8 |
|
|
15523
|
+
for (var p = a.padding !== void 0 ? a.padding : u, l = o.byteLength, g = new Uint8Array(o), f = 0, k = 0, E = "", P = 0; P < l; P++)
|
|
15524
|
+
for (k = k << 8 | g[P], f += 8; f >= 5; )
|
|
15522
15525
|
E += s[k >>> f - 5 & 31], f -= 5;
|
|
15523
15526
|
if (f > 0 && (E += s[k << 5 - f & 31]), p)
|
|
15524
15527
|
for (; E.length % 8 != 0; )
|
|
@@ -15526,8 +15529,8 @@ var Ai = { exports: {} };
|
|
|
15526
15529
|
return E;
|
|
15527
15530
|
};
|
|
15528
15531
|
}, function(t, r, o) {
|
|
15529
|
-
var i, a, s, u, p, l,
|
|
15530
|
-
t.exports = (f = o(0), a = (i = f).lib, s = a.WordArray, u = a.Hasher, p = i.algo, l = [],
|
|
15532
|
+
var i, a, s, u, p, l, g, f;
|
|
15533
|
+
t.exports = (f = o(0), a = (i = f).lib, s = a.WordArray, u = a.Hasher, p = i.algo, l = [], g = p.SHA1 = u.extend({ _doReset: function() {
|
|
15531
15534
|
this._hash = new s.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
15532
15535
|
}, _doProcessBlock: function(k, E) {
|
|
15533
15536
|
for (var P = this._hash.words, j = P[0], K = P[1], z = P[2], T = P[3], D = P[4], G = 0; G < 80; G++) {
|
|
@@ -15547,11 +15550,11 @@ var Ai = { exports: {} };
|
|
|
15547
15550
|
}, clone: function() {
|
|
15548
15551
|
var k = u.clone.call(this);
|
|
15549
15552
|
return k._hash = this._hash.clone(), k;
|
|
15550
|
-
} }), i.SHA1 = u._createHelper(
|
|
15553
|
+
} }), i.SHA1 = u._createHelper(g), i.HmacSHA1 = u._createHmacHelper(g), f.SHA1);
|
|
15551
15554
|
}, function(t, r, o) {
|
|
15552
15555
|
var i;
|
|
15553
15556
|
t.exports = (i = o(0), function(a) {
|
|
15554
|
-
var s = i, u = s.lib, p = u.WordArray, l = u.Hasher,
|
|
15557
|
+
var s = i, u = s.lib, p = u.WordArray, l = u.Hasher, g = s.algo, f = [], k = [];
|
|
15555
15558
|
(function() {
|
|
15556
15559
|
function j(D) {
|
|
15557
15560
|
for (var G = a.sqrt(D), J = 2; J <= G; J++)
|
|
@@ -15565,14 +15568,14 @@ var Ai = { exports: {} };
|
|
|
15565
15568
|
for (var z = 2, T = 0; T < 64; )
|
|
15566
15569
|
j(z) && (T < 8 && (f[T] = K(a.pow(z, 0.5))), k[T] = K(a.pow(z, 1 / 3)), T++), z++;
|
|
15567
15570
|
})();
|
|
15568
|
-
var E = [], P =
|
|
15571
|
+
var E = [], P = g.SHA256 = l.extend({ _doReset: function() {
|
|
15569
15572
|
this._hash = new p.init(f.slice(0));
|
|
15570
15573
|
}, _doProcessBlock: function(j, K) {
|
|
15571
15574
|
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = 0; ye < 64; ye++) {
|
|
15572
15575
|
if (ye < 16)
|
|
15573
15576
|
E[ye] = 0 | j[K + ye];
|
|
15574
15577
|
else {
|
|
15575
|
-
var Ne = E[ye - 15], Qt = (Ne << 25 | Ne >>> 7) ^ (Ne << 14 | Ne >>> 18) ^ Ne >>> 3,
|
|
15578
|
+
var Ne = E[ye - 15], Qt = (Ne << 25 | Ne >>> 7) ^ (Ne << 14 | Ne >>> 18) ^ Ne >>> 3, Ye = E[ye - 2], an = (Ye << 15 | Ye >>> 17) ^ (Ye << 13 | Ye >>> 19) ^ Ye >>> 10;
|
|
15576
15579
|
E[ye] = Qt + E[ye - 7] + an + E[ye - 16];
|
|
15577
15580
|
}
|
|
15578
15581
|
var Mt = T & D ^ T & G ^ D & G, Nt = (T << 30 | T >>> 2) ^ (T << 19 | T >>> 13) ^ (T << 10 | T >>> 22), ct = Se + ((te << 26 | te >>> 6) ^ (te << 21 | te >>> 11) ^ (te << 7 | te >>> 25)) + (te & Z ^ ~te & ve) + k[ye] + E[ye];
|
|
@@ -15591,7 +15594,7 @@ var Ai = { exports: {} };
|
|
|
15591
15594
|
}, function(t, r, o) {
|
|
15592
15595
|
var i;
|
|
15593
15596
|
t.exports = (i = o(0), o(3), function() {
|
|
15594
|
-
var a = i, s = a.lib.Hasher, u = a.x64, p = u.Word, l = u.WordArray,
|
|
15597
|
+
var a = i, s = a.lib.Hasher, u = a.x64, p = u.Word, l = u.WordArray, g = a.algo;
|
|
15595
15598
|
function f() {
|
|
15596
15599
|
return p.create.apply(p, arguments);
|
|
15597
15600
|
}
|
|
@@ -15600,21 +15603,21 @@ var Ai = { exports: {} };
|
|
|
15600
15603
|
for (var j = 0; j < 80; j++)
|
|
15601
15604
|
E[j] = f();
|
|
15602
15605
|
})();
|
|
15603
|
-
var P =
|
|
15606
|
+
var P = g.SHA512 = s.extend({ _doReset: function() {
|
|
15604
15607
|
this._hash = new l.init([new p.init(1779033703, 4089235720), new p.init(3144134277, 2227873595), new p.init(1013904242, 4271175723), new p.init(2773480762, 1595750129), new p.init(1359893119, 2917565137), new p.init(2600822924, 725511199), new p.init(528734635, 4215389547), new p.init(1541459225, 327033209)]);
|
|
15605
15608
|
}, _doProcessBlock: function(j, K) {
|
|
15606
|
-
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = T.high, Ne = T.low, Qt = D.high,
|
|
15609
|
+
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = T.high, Ne = T.low, Qt = D.high, Ye = D.low, an = G.high, Mt = G.low, Nt = J.high, ct = J.low, gn = te.high, sn = te.low, _n = Z.high, cn = Z.low, An = ve.high, Te = ve.low, Re = Se.high, Yt = Se.low, He = ye, Le = Ne, Ot = Qt, Et = Ye, et = an, lt = Mt, Wt = Nt, Lt = ct, We = gn, Pe = sn, ut = _n, zt = cn, xt = An, _t = Te, vn = Re, Tt = Yt, je = 0; je < 80; je++) {
|
|
15607
15610
|
var vt = E[je];
|
|
15608
15611
|
if (je < 16)
|
|
15609
15612
|
var ze = vt.high = 0 | j[K + 2 * je], dt = vt.low = 0 | j[K + 2 * je + 1];
|
|
15610
15613
|
else {
|
|
15611
|
-
var yn = E[je - 15], Fe = yn.high, Ut = yn.low, h = (Fe >>> 1 | Ut << 31) ^ (Fe >>> 8 | Ut << 24) ^ Fe >>> 7, c = (Ut >>> 1 | Fe << 31) ^ (Ut >>> 8 | Fe << 24) ^ (Ut >>> 7 | Fe << 25), d = E[je - 2],
|
|
15612
|
-
ze = (ze = (ze = h + we + ((dt = c +
|
|
15614
|
+
var yn = E[je - 15], Fe = yn.high, Ut = yn.low, h = (Fe >>> 1 | Ut << 31) ^ (Fe >>> 8 | Ut << 24) ^ Fe >>> 7, c = (Ut >>> 1 | Fe << 31) ^ (Ut >>> 8 | Fe << 24) ^ (Ut >>> 7 | Fe << 25), d = E[je - 2], m = d.high, b = d.low, S = (m >>> 19 | b << 13) ^ (m << 3 | b >>> 29) ^ m >>> 6, R = (b >>> 19 | m << 13) ^ (b << 3 | m >>> 29) ^ (b >>> 6 | m << 26), se = E[je - 7], we = se.high, ge = se.low, be = E[je - 16], he = be.high, cr = be.low;
|
|
15615
|
+
ze = (ze = (ze = h + we + ((dt = c + ge) >>> 0 < c >>> 0 ? 1 : 0)) + S + ((dt += R) >>> 0 < R >>> 0 ? 1 : 0)) + he + ((dt += cr) >>> 0 < cr >>> 0 ? 1 : 0), vt.high = ze, vt.low = dt;
|
|
15613
15616
|
}
|
|
15614
|
-
var St, Br =
|
|
15615
|
-
vn = xt, Tt = _t, xt = ut, _t = zt, ut =
|
|
15617
|
+
var St, Br = We & ut ^ ~We & xt, lr = Pe & zt ^ ~Pe & _t, Dr = He & Ot ^ He & et ^ Ot & et, Hr = Le & Et ^ Le & lt ^ Et & lt, ur = (He >>> 28 | Le << 4) ^ (He << 30 | Le >>> 2) ^ (He << 25 | Le >>> 7), dr = (Le >>> 28 | He << 4) ^ (Le << 30 | He >>> 2) ^ (Le << 25 | He >>> 7), jr = (We >>> 14 | Pe << 18) ^ (We >>> 18 | Pe << 14) ^ (We << 23 | Pe >>> 9), Fr = (Pe >>> 14 | We << 18) ^ (Pe >>> 18 | We << 14) ^ (Pe << 23 | We >>> 9), v = k[je], y = v.high, C = v.low, I = vn + jr + ((St = Tt + Fr) >>> 0 < Tt >>> 0 ? 1 : 0), M = dr + Hr;
|
|
15618
|
+
vn = xt, Tt = _t, xt = ut, _t = zt, ut = We, zt = Pe, We = Wt + (I = (I = (I = I + Br + ((St += lr) >>> 0 < lr >>> 0 ? 1 : 0)) + y + ((St += C) >>> 0 < C >>> 0 ? 1 : 0)) + ze + ((St += dt) >>> 0 < dt >>> 0 ? 1 : 0)) + ((Pe = Lt + St | 0) >>> 0 < Lt >>> 0 ? 1 : 0) | 0, Wt = et, Lt = lt, et = Ot, lt = Et, Ot = He, Et = Le, He = I + (ur + Dr + (M >>> 0 < dr >>> 0 ? 1 : 0)) + ((Le = St + M | 0) >>> 0 < St >>> 0 ? 1 : 0) | 0;
|
|
15616
15619
|
}
|
|
15617
|
-
Ne = T.low = Ne + Le, T.high = ye + He + (Ne >>> 0 < Le >>> 0 ? 1 : 0),
|
|
15620
|
+
Ne = T.low = Ne + Le, T.high = ye + He + (Ne >>> 0 < Le >>> 0 ? 1 : 0), Ye = D.low = Ye + Et, D.high = Qt + Ot + (Ye >>> 0 < Et >>> 0 ? 1 : 0), Mt = G.low = Mt + lt, G.high = an + et + (Mt >>> 0 < lt >>> 0 ? 1 : 0), ct = J.low = ct + Lt, J.high = Nt + Wt + (ct >>> 0 < Lt >>> 0 ? 1 : 0), sn = te.low = sn + Pe, te.high = gn + We + (sn >>> 0 < Pe >>> 0 ? 1 : 0), cn = Z.low = cn + zt, Z.high = _n + ut + (cn >>> 0 < zt >>> 0 ? 1 : 0), Te = ve.low = Te + _t, ve.high = An + xt + (Te >>> 0 < _t >>> 0 ? 1 : 0), Yt = Se.low = Yt + Tt, Se.high = Re + vn + (Yt >>> 0 < Tt >>> 0 ? 1 : 0);
|
|
15618
15621
|
}, _doFinalize: function() {
|
|
15619
15622
|
var j = this._data, K = j.words, z = 8 * this._nDataBytes, T = 8 * j.sigBytes;
|
|
15620
15623
|
return K[T >>> 5] |= 128 << 24 - T % 32, K[30 + (T + 128 >>> 10 << 5)] = Math.floor(z / 4294967296), K[31 + (T + 128 >>> 10 << 5)] = z, j.sigBytes = 4 * K.length, this._process(), this._hash.toX32();
|
|
@@ -15626,7 +15629,7 @@ var Ai = { exports: {} };
|
|
|
15626
15629
|
}(), i.SHA512);
|
|
15627
15630
|
}, function(t, r, o) {
|
|
15628
15631
|
o.r(r);
|
|
15629
|
-
var i, a = o(0), s = o.n(a), u = o(4), p = o.n(u), l = o(5),
|
|
15632
|
+
var i, a = o(0), s = o.n(a), u = o(4), p = o.n(u), l = o(5), g = o.n(l), f = o(6), k = o.n(f), E = o(2), P = o.n(E);
|
|
15630
15633
|
function j(v, y) {
|
|
15631
15634
|
var C = Object.keys(v);
|
|
15632
15635
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -15696,8 +15699,8 @@ var Ai = { exports: {} };
|
|
|
15696
15699
|
}
|
|
15697
15700
|
return v.type === "totp" && v.step && C.push("&period=".concat(v.step)), v.digits && C.push("&digits=".concat(v.digits)), v.algorithm && C.push("&algorithm=".concat(v.algorithm.toUpperCase())), v.issuer && C.push("&issuer=".concat(encodeURIComponent(v.issuer))), y.replace("{labelPrefix}", encodeURIComponent(v.issuer || v.accountName)).replace("{accountName}", encodeURIComponent(v.accountName)).replace("{secret}", v.secret).replace("{query}", C.join(""));
|
|
15698
15701
|
}
|
|
15699
|
-
function
|
|
15700
|
-
return (
|
|
15702
|
+
function Ye(v) {
|
|
15703
|
+
return (Ye = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(y) {
|
|
15701
15704
|
return typeof y;
|
|
15702
15705
|
} : function(y) {
|
|
15703
15706
|
return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
|
|
@@ -15710,7 +15713,7 @@ var Ai = { exports: {} };
|
|
|
15710
15713
|
}
|
|
15711
15714
|
}
|
|
15712
15715
|
function Mt(v, y) {
|
|
15713
|
-
return !y ||
|
|
15716
|
+
return !y || Ye(y) !== "object" && typeof y != "function" ? function(C) {
|
|
15714
15717
|
if (C === void 0)
|
|
15715
15718
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15716
15719
|
return C;
|
|
@@ -15726,7 +15729,7 @@ var Ai = { exports: {} };
|
|
|
15726
15729
|
return C.__proto__ = I, C;
|
|
15727
15730
|
})(v, y);
|
|
15728
15731
|
}
|
|
15729
|
-
function
|
|
15732
|
+
function gn(v, y) {
|
|
15730
15733
|
var C = Object.keys(v);
|
|
15731
15734
|
if (Object.getOwnPropertySymbols) {
|
|
15732
15735
|
var I = Object.getOwnPropertySymbols(v);
|
|
@@ -15758,9 +15761,9 @@ var Ai = { exports: {} };
|
|
|
15758
15761
|
var y = function(C) {
|
|
15759
15762
|
for (var I = 1; I < arguments.length; I++) {
|
|
15760
15763
|
var M = arguments[I] != null ? arguments[I] : {};
|
|
15761
|
-
I % 2 ?
|
|
15764
|
+
I % 2 ? gn(Object(M), !0).forEach(function(H) {
|
|
15762
15765
|
sn(C, H, M[H]);
|
|
15763
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(C, Object.getOwnPropertyDescriptors(M)) :
|
|
15766
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(C, Object.getOwnPropertyDescriptors(M)) : gn(Object(M)).forEach(function(H) {
|
|
15764
15767
|
Object.defineProperty(C, H, Object.getOwnPropertyDescriptor(M, H));
|
|
15765
15768
|
});
|
|
15766
15769
|
}
|
|
@@ -15807,7 +15810,7 @@ var Ai = { exports: {} };
|
|
|
15807
15810
|
return !!ye(nt) && nt === Re(Bt, ln, qr);
|
|
15808
15811
|
}(M, H, de, this.allOptions());
|
|
15809
15812
|
} }, { key: "verify", value: function(M) {
|
|
15810
|
-
if (
|
|
15813
|
+
if (Ye(M) !== "object")
|
|
15811
15814
|
throw new Error("Expecting argument 0 of verify to be an object");
|
|
15812
15815
|
return this.check(M.token, M.secret, M.counter);
|
|
15813
15816
|
} }, { key: "keyuri", value: function(M, H, de, nt) {
|
|
@@ -15882,14 +15885,14 @@ var Ai = { exports: {} };
|
|
|
15882
15885
|
for (var y = 1; y < arguments.length; y++) {
|
|
15883
15886
|
var C = arguments[y] != null ? arguments[y] : {};
|
|
15884
15887
|
y % 2 ? Wt(Object(C), !0).forEach(function(I) {
|
|
15885
|
-
|
|
15888
|
+
We(v, I, C[I]);
|
|
15886
15889
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(v, Object.getOwnPropertyDescriptors(C)) : Wt(Object(C)).forEach(function(I) {
|
|
15887
15890
|
Object.defineProperty(v, I, Object.getOwnPropertyDescriptor(C, I));
|
|
15888
15891
|
});
|
|
15889
15892
|
}
|
|
15890
15893
|
return v;
|
|
15891
15894
|
}
|
|
15892
|
-
function
|
|
15895
|
+
function We(v, y, C) {
|
|
15893
15896
|
return y in v ? Object.defineProperty(v, y, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[y] = C, v;
|
|
15894
15897
|
}
|
|
15895
15898
|
function Pe(v, y) {
|
|
@@ -16049,8 +16052,8 @@ var Ai = { exports: {} };
|
|
|
16049
16052
|
return C;
|
|
16050
16053
|
}(v) : y;
|
|
16051
16054
|
}
|
|
16052
|
-
function
|
|
16053
|
-
return (
|
|
16055
|
+
function m(v) {
|
|
16056
|
+
return (m = Object.setPrototypeOf ? Object.getPrototypeOf : function(y) {
|
|
16054
16057
|
return y.__proto__ || Object.getPrototypeOf(y);
|
|
16055
16058
|
})(v);
|
|
16056
16059
|
}
|
|
@@ -16094,7 +16097,7 @@ var Ai = { exports: {} };
|
|
|
16094
16097
|
function we(v, y) {
|
|
16095
16098
|
return y.keyEncoder(v, y.encoding);
|
|
16096
16099
|
}
|
|
16097
|
-
function
|
|
16100
|
+
function ge(v, y) {
|
|
16098
16101
|
return y.keyDecoder(v, y.encoding);
|
|
16099
16102
|
}
|
|
16100
16103
|
function be(v, y) {
|
|
@@ -16105,7 +16108,7 @@ var Ai = { exports: {} };
|
|
|
16105
16108
|
return function(M, H) {
|
|
16106
16109
|
if (!(M instanceof H))
|
|
16107
16110
|
throw new TypeError("Cannot call a class as a function");
|
|
16108
|
-
}(this, y), d(this,
|
|
16111
|
+
}(this, y), d(this, m(y).apply(this, arguments));
|
|
16109
16112
|
}
|
|
16110
16113
|
var C, I;
|
|
16111
16114
|
return function(M, H) {
|
|
@@ -16119,16 +16122,16 @@ var Ai = { exports: {} };
|
|
|
16119
16122
|
return se(this.options);
|
|
16120
16123
|
} }, { key: "generate", value: function(M) {
|
|
16121
16124
|
return function(H, de) {
|
|
16122
|
-
return Tt(
|
|
16125
|
+
return Tt(ge(H, de), de);
|
|
16123
16126
|
}(M, this.allOptions());
|
|
16124
16127
|
} }, { key: "checkDelta", value: function(M, H) {
|
|
16125
16128
|
return function(de, nt, Bt) {
|
|
16126
|
-
return dt(de,
|
|
16129
|
+
return dt(de, ge(nt, Bt), Bt);
|
|
16127
16130
|
}(M, H, this.allOptions());
|
|
16128
16131
|
} }, { key: "encode", value: function(M) {
|
|
16129
16132
|
return we(M, this.allOptions());
|
|
16130
16133
|
} }, { key: "decode", value: function(M) {
|
|
16131
|
-
return
|
|
16134
|
+
return ge(M, this.allOptions());
|
|
16132
16135
|
} }, { key: "generateSecret", value: function() {
|
|
16133
16136
|
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10;
|
|
16134
16137
|
return be(M, this.allOptions());
|
|
@@ -16139,7 +16142,7 @@ var Ai = { exports: {} };
|
|
|
16139
16142
|
case i.SHA1:
|
|
16140
16143
|
return p.a;
|
|
16141
16144
|
case i.SHA256:
|
|
16142
|
-
return
|
|
16145
|
+
return g.a;
|
|
16143
16146
|
case i.SHA512:
|
|
16144
16147
|
return k.a;
|
|
16145
16148
|
default:
|
|
@@ -16200,7 +16203,7 @@ const Ri = {
|
|
|
16200
16203
|
}
|
|
16201
16204
|
},
|
|
16202
16205
|
async mounted() {
|
|
16203
|
-
this.renderView === "AuthMFA" && (await this.getAccountSettings(), this.generateOTPQrCode()),
|
|
16206
|
+
this.renderView === "AuthMFA" && (await this.getAccountSettings(), this.generateOTPQrCode()), F.$on("otpSubmitted", this.otpSubmitted);
|
|
16204
16207
|
},
|
|
16205
16208
|
methods: {
|
|
16206
16209
|
otpSubmitted(n) {
|
|
@@ -16222,10 +16225,10 @@ const Ri = {
|
|
|
16222
16225
|
}
|
|
16223
16226
|
},
|
|
16224
16227
|
async cancelMFA() {
|
|
16225
|
-
|
|
16228
|
+
F.$emit("ssoEvent", { name: "mfaCancel", data: !0 });
|
|
16226
16229
|
},
|
|
16227
16230
|
async validateMFA() {
|
|
16228
|
-
|
|
16231
|
+
F.$emit("toggleOTPModal", !0);
|
|
16229
16232
|
}
|
|
16230
16233
|
}
|
|
16231
16234
|
}, Gs = {
|
|
@@ -16348,7 +16351,7 @@ const Ri = {
|
|
|
16348
16351
|
if (this.$route.path === "/login/callback/saml")
|
|
16349
16352
|
return await this.handleSamlRedirect();
|
|
16350
16353
|
this.$route.query.qrLogin && this.changeLoginToQr(), setTimeout(() => {
|
|
16351
|
-
this.$storex && this.$storex.token ? this.$router.push(this.home) :
|
|
16354
|
+
this.$storex && this.$storex.token ? this.$router.push(this.home) : F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
16352
16355
|
}, 2500);
|
|
16353
16356
|
}
|
|
16354
16357
|
},
|
|
@@ -16370,10 +16373,10 @@ const Ri = {
|
|
|
16370
16373
|
t && console.error(t), this.submitted = !1, r === !0 && (this.emailOrUsername = "", this.password = "");
|
|
16371
16374
|
},
|
|
16372
16375
|
close() {
|
|
16373
|
-
|
|
16376
|
+
F.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
|
|
16374
16377
|
},
|
|
16375
16378
|
createAccountModal() {
|
|
16376
|
-
|
|
16379
|
+
F.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
|
|
16377
16380
|
}
|
|
16378
16381
|
},
|
|
16379
16382
|
watch: {
|
|
@@ -16431,7 +16434,7 @@ const Ri = {
|
|
|
16431
16434
|
}, fc = /* @__PURE__ */ _("img", {
|
|
16432
16435
|
src: "https://cdn.tapni.co/icons/g-logo.png",
|
|
16433
16436
|
style: { position: "absolute", "margin-left": "-10px", padding: "8px 0", height: "100%" }
|
|
16434
|
-
}, null, -1),
|
|
16437
|
+
}, null, -1), mc = { key: 0 }, gc = {
|
|
16435
16438
|
key: 1,
|
|
16436
16439
|
class: "button--loading-black button__loader"
|
|
16437
16440
|
}, _c = /* @__PURE__ */ _("img", {
|
|
@@ -16475,7 +16478,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16475
16478
|
const a = Fn("router-link");
|
|
16476
16479
|
return N(), x("form", {
|
|
16477
16480
|
class: "page-login content-boxed content-boxed-padding",
|
|
16478
|
-
onSubmit: e[14] || (e[14] =
|
|
16481
|
+
onSubmit: e[14] || (e[14] = Ve((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
16479
16482
|
autocomplete: "on",
|
|
16480
16483
|
style: xn(t.isModal ? "max-width: 500px;" : "")
|
|
16481
16484
|
}, [
|
|
@@ -16492,7 +16495,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16492
16495
|
Zs,
|
|
16493
16496
|
Ie(_("input", {
|
|
16494
16497
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.emailOrUsername = s),
|
|
16495
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
16498
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
16496
16499
|
}, ["prevent"]), ["space"])),
|
|
16497
16500
|
autocorrect: "off",
|
|
16498
16501
|
autocapitalize: "off",
|
|
@@ -16502,7 +16505,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16502
16505
|
placeholder: n.ssoLang[this.appLanguage].email_username,
|
|
16503
16506
|
required: ""
|
|
16504
16507
|
}, null, 40, ec), [
|
|
16505
|
-
[
|
|
16508
|
+
[mn, o.emailOrUsername]
|
|
16506
16509
|
]),
|
|
16507
16510
|
tc
|
|
16508
16511
|
]),
|
|
@@ -16549,7 +16552,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16549
16552
|
class: "button-center button button-90 google-button pointer"
|
|
16550
16553
|
}, [
|
|
16551
16554
|
fc,
|
|
16552
|
-
n.googleLoad ? (N(), x("span",
|
|
16555
|
+
n.googleLoad ? (N(), x("span", gc)) : (N(), x("span", mc, Q(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
|
|
16553
16556
|
])) : pe("", !0),
|
|
16554
16557
|
n.displayFacebookLogin ? (N(), x("a", {
|
|
16555
16558
|
key: 4,
|
|
@@ -16644,7 +16647,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16644
16647
|
]))
|
|
16645
16648
|
], 36);
|
|
16646
16649
|
}
|
|
16647
|
-
const wo = /* @__PURE__ */
|
|
16650
|
+
const wo = /* @__PURE__ */ gt(Vs, [["render", Fc]]), qc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16648
16651
|
__proto__: null,
|
|
16649
16652
|
default: wo
|
|
16650
16653
|
}, Symbol.toStringTag, { value: "Module" })), Kc = {
|
|
@@ -16673,7 +16676,7 @@ const wo = /* @__PURE__ */ mt(Vs, [["render", Fc]]), qc = /* @__PURE__ */ Object
|
|
|
16673
16676
|
};
|
|
16674
16677
|
},
|
|
16675
16678
|
mounted() {
|
|
16676
|
-
this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth &&
|
|
16679
|
+
this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.invitationCode = this.$route.query.ic || "", this.$route.query.username && (this.usernameRegister = !0, this.emailLogin = !0, this.username = this.$route.query.username), this.$route.query.ref ? this.referral = this.$route.query.ref : this.$storex.referral && (this.referral = this.$storex.referral));
|
|
16677
16680
|
},
|
|
16678
16681
|
methods: {
|
|
16679
16682
|
async submit() {
|
|
@@ -16697,13 +16700,13 @@ const wo = /* @__PURE__ */ mt(Vs, [["render", Fc]]), qc = /* @__PURE__ */ Object
|
|
|
16697
16700
|
captchaToken: await this.getCaptchaToken("account_verify"),
|
|
16698
16701
|
ref: this.referral
|
|
16699
16702
|
}, e = await this.register(n);
|
|
16700
|
-
this.submitted = !1, e.data && e.data.success && (e.data.message === "SUCCESS_REGISTER" ? (this.isModal ?
|
|
16703
|
+
this.submitted = !1, e.data && e.data.success && (e.data.message === "SUCCESS_REGISTER" ? (this.isModal ? F.$emit("ssoEvent", { name: "toggleAddAccountModalVerify", data: !1 }) : this.$router.push("/verify"), this.successSnack(this.ssoLang[this.appLanguage].register_success), this.formButtonText = this.ssoLang[this.appLanguage].check_your_inbox) : e.data.message === "SUCCESS_LOGIN" && (this.display !== "popup" && (await this.loginSetup({ ...e, isModal: n.isModal }), await this.getLoggedInAccounts()), await this.loginSuccess({ ...e, isModal: n.isModal })));
|
|
16701
16704
|
},
|
|
16702
16705
|
close() {
|
|
16703
|
-
|
|
16706
|
+
F.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
|
|
16704
16707
|
},
|
|
16705
16708
|
loginAccountModal() {
|
|
16706
|
-
|
|
16709
|
+
F.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
|
|
16707
16710
|
}
|
|
16708
16711
|
},
|
|
16709
16712
|
watch: {
|
|
@@ -16755,10 +16758,10 @@ const wo = /* @__PURE__ */ mt(Vs, [["render", Fc]]), qc = /* @__PURE__ */ Object
|
|
|
16755
16758
|
}, pl = { key: 0 }, hl = {
|
|
16756
16759
|
key: 1,
|
|
16757
16760
|
class: "button--loading button__loader"
|
|
16758
|
-
}, fl = /* @__PURE__ */ _("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1),
|
|
16761
|
+
}, fl = /* @__PURE__ */ _("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), ml = /* @__PURE__ */ _("img", {
|
|
16759
16762
|
src: "https://cdn.tapni.co/icons/apple-logo.png",
|
|
16760
16763
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16761
|
-
}, null, -1),
|
|
16764
|
+
}, null, -1), gl = { key: 0 }, _l = {
|
|
16762
16765
|
key: 1,
|
|
16763
16766
|
class: "button--loading-black button__loader"
|
|
16764
16767
|
}, vl = /* @__PURE__ */ _("img", {
|
|
@@ -16787,7 +16790,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16787
16790
|
const a = Fn("router-link");
|
|
16788
16791
|
return N(), x("form", {
|
|
16789
16792
|
class: "page-login content-boxed content-boxed-padding",
|
|
16790
|
-
onSubmit: e[12] || (e[12] =
|
|
16793
|
+
onSubmit: e[12] || (e[12] = Ve((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
16791
16794
|
autocomplete: "on",
|
|
16792
16795
|
style: xn(t.isModal ? "max-width: 500px;" : "")
|
|
16793
16796
|
}, [
|
|
@@ -16809,14 +16812,14 @@ function xl(n, e, t, r, o, i) {
|
|
|
16809
16812
|
Zc,
|
|
16810
16813
|
Ie(_("input", {
|
|
16811
16814
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.email = s),
|
|
16812
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
16815
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
16813
16816
|
}, ["prevent"]), ["space"])),
|
|
16814
16817
|
type: "email",
|
|
16815
16818
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
16816
16819
|
name: "email",
|
|
16817
16820
|
required: ""
|
|
16818
16821
|
}, null, 40, el), [
|
|
16819
|
-
[
|
|
16822
|
+
[mn, o.email]
|
|
16820
16823
|
]),
|
|
16821
16824
|
tl
|
|
16822
16825
|
]),
|
|
@@ -16824,7 +16827,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16824
16827
|
rl,
|
|
16825
16828
|
Ie(_("input", {
|
|
16826
16829
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.username = s),
|
|
16827
|
-
onKeydown: e[4] || (e[4] = fn(
|
|
16830
|
+
onKeydown: e[4] || (e[4] = fn(Ve(() => {
|
|
16828
16831
|
}, ["prevent"]), ["space"])),
|
|
16829
16832
|
type: "text",
|
|
16830
16833
|
autocorrect: "off",
|
|
@@ -16834,9 +16837,9 @@ function xl(n, e, t, r, o, i) {
|
|
|
16834
16837
|
name: "username",
|
|
16835
16838
|
required: "",
|
|
16836
16839
|
disabled: o.usernameRegister,
|
|
16837
|
-
class:
|
|
16840
|
+
class: Ke({ "input-disabled": o.usernameRegister })
|
|
16838
16841
|
}, null, 42, ol), [
|
|
16839
|
-
[
|
|
16842
|
+
[mn, o.username]
|
|
16840
16843
|
]),
|
|
16841
16844
|
il
|
|
16842
16845
|
]),
|
|
@@ -16874,8 +16877,8 @@ function xl(n, e, t, r, o, i) {
|
|
|
16874
16877
|
onClick: e[7] || (e[7] = (...s) => n.appleLogin && n.appleLogin(...s)),
|
|
16875
16878
|
class: "button-center button button-90 google-button pointer"
|
|
16876
16879
|
}, [
|
|
16877
|
-
|
|
16878
|
-
n.appleLoad ? (N(), x("span", _l)) : (N(), x("span",
|
|
16880
|
+
ml,
|
|
16881
|
+
n.appleLoad ? (N(), x("span", _l)) : (N(), x("span", gl, Q(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
|
|
16879
16882
|
])) : pe("", !0),
|
|
16880
16883
|
_("a", {
|
|
16881
16884
|
onClick: e[8] || (e[8] = (...s) => n.googleLogin && n.googleLogin(...s)),
|
|
@@ -16921,7 +16924,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16921
16924
|
]),
|
|
16922
16925
|
zl
|
|
16923
16926
|
])) : (N(), x("div", Ml, [
|
|
16924
|
-
|
|
16927
|
+
Ue(a, {
|
|
16925
16928
|
class: "create float-right",
|
|
16926
16929
|
to: "/verify"
|
|
16927
16930
|
}, {
|
|
@@ -16930,7 +16933,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16930
16933
|
]),
|
|
16931
16934
|
_: 1
|
|
16932
16935
|
}),
|
|
16933
|
-
|
|
16936
|
+
Ue(a, {
|
|
16934
16937
|
class: "forgot float-left",
|
|
16935
16938
|
to: "/login"
|
|
16936
16939
|
}, {
|
|
@@ -16943,7 +16946,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16943
16946
|
]))
|
|
16944
16947
|
], 36);
|
|
16945
16948
|
}
|
|
16946
|
-
const bo = /* @__PURE__ */
|
|
16949
|
+
const bo = /* @__PURE__ */ gt(Kc, [["render", xl]]), Ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16947
16950
|
__proto__: null,
|
|
16948
16951
|
default: bo
|
|
16949
16952
|
}, Symbol.toStringTag, { value: "Module" })), Bl = {
|
|
@@ -16971,7 +16974,7 @@ const bo = /* @__PURE__ */ mt(Kc, [["render", xl]]), Ul = /* @__PURE__ */ Object
|
|
|
16971
16974
|
},
|
|
16972
16975
|
methods: {
|
|
16973
16976
|
init() {
|
|
16974
|
-
this.isLoggedIn ? this.$router.push(this.home) : (this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.hash === "#reset" && (this.action = "reset"), this.$route.query.e && (this.email = this.$route.query.e), this.$route.query.c && (this.code = this.$route.query.c),
|
|
16977
|
+
this.isLoggedIn ? this.$router.push(this.home) : (this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.hash === "#reset" && (this.action = "reset"), this.$route.query.e && (this.email = this.$route.query.e), this.$route.query.c && (this.code = this.$route.query.c), F.$emit("ssoEvent", { name: "setLoading", data: !1 }));
|
|
16975
16978
|
},
|
|
16976
16979
|
async submit() {
|
|
16977
16980
|
if (this.code.length !== 6)
|
|
@@ -16986,13 +16989,13 @@ const bo = /* @__PURE__ */ mt(Kc, [["render", xl]]), Ul = /* @__PURE__ */ Object
|
|
|
16986
16989
|
return !1;
|
|
16987
16990
|
this.submitted = !0;
|
|
16988
16991
|
let e = await this.verify(n);
|
|
16989
|
-
this.submitted = !1, e && e.data && e.data.success === !0 ? (this.action === "reset" && (this.$router.push("/reset?c=" + this.code + "&e=" + this.email), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)), this.action === "verify" && (this.isModal && (this.email = "", this.code = "",
|
|
16992
|
+
this.submitted = !1, e && e.data && e.data.success === !0 ? (this.action === "reset" && (this.$router.push("/reset?c=" + this.code + "&e=" + this.email), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)), this.action === "verify" && (this.isModal && (this.email = "", this.code = "", F.$emit("closeModal")), await this.loginSetup(e), await this.getLoggedInAccounts(), this.$storex.verifyEmail = "", this.$router.push("/" + e.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
|
|
16990
16993
|
},
|
|
16991
16994
|
registerAccountModal() {
|
|
16992
|
-
|
|
16995
|
+
F.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
|
|
16993
16996
|
},
|
|
16994
16997
|
close() {
|
|
16995
|
-
|
|
16998
|
+
F.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
|
|
16996
16999
|
}
|
|
16997
17000
|
},
|
|
16998
17001
|
watch: {
|
|
@@ -17049,7 +17052,7 @@ function uu(n, e, t, r, o, i) {
|
|
|
17049
17052
|
const a = Fn("router-link");
|
|
17050
17053
|
return N(), x("form", {
|
|
17051
17054
|
class: "page-login content-boxed content-boxed-padding",
|
|
17052
|
-
onSubmit: e[6] || (e[6] =
|
|
17055
|
+
onSubmit: e[6] || (e[6] = Ve((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
17053
17056
|
style: xn(t.isModal ? "max-width: 500px;" : "")
|
|
17054
17057
|
}, [
|
|
17055
17058
|
t.isModal ? (N(), x("a", {
|
|
@@ -17065,13 +17068,13 @@ function uu(n, e, t, r, o, i) {
|
|
|
17065
17068
|
Ie(_("input", {
|
|
17066
17069
|
id: "emailInput",
|
|
17067
17070
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.email = s),
|
|
17068
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
17071
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
17069
17072
|
}, ["prevent"]), ["space"])),
|
|
17070
17073
|
type: "email",
|
|
17071
17074
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
17072
17075
|
required: ""
|
|
17073
17076
|
}, null, 40, Gl), [
|
|
17074
|
-
[
|
|
17077
|
+
[mn, o.email]
|
|
17075
17078
|
]),
|
|
17076
17079
|
Vl
|
|
17077
17080
|
]),
|
|
@@ -17080,13 +17083,13 @@ function uu(n, e, t, r, o, i) {
|
|
|
17080
17083
|
Ie(_("input", {
|
|
17081
17084
|
id: "codeInput",
|
|
17082
17085
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.code = s),
|
|
17083
|
-
onKeydown: e[4] || (e[4] = fn(
|
|
17086
|
+
onKeydown: e[4] || (e[4] = fn(Ve(() => {
|
|
17084
17087
|
}, ["prevent"]), ["space"])),
|
|
17085
17088
|
type: "tel",
|
|
17086
17089
|
placeholder: n.ssoLang[this.appLanguage].code,
|
|
17087
17090
|
required: ""
|
|
17088
17091
|
}, null, 40, Wl), [
|
|
17089
|
-
[
|
|
17092
|
+
[mn, o.code]
|
|
17090
17093
|
]),
|
|
17091
17094
|
$l
|
|
17092
17095
|
]),
|
|
@@ -17113,7 +17116,7 @@ function uu(n, e, t, r, o, i) {
|
|
|
17113
17116
|
]),
|
|
17114
17117
|
lu
|
|
17115
17118
|
])) : (N(), x("div", iu, [
|
|
17116
|
-
|
|
17119
|
+
Ue(a, {
|
|
17117
17120
|
class: "create float-right",
|
|
17118
17121
|
to: "/register"
|
|
17119
17122
|
}, {
|
|
@@ -17122,7 +17125,7 @@ function uu(n, e, t, r, o, i) {
|
|
|
17122
17125
|
]),
|
|
17123
17126
|
_: 1
|
|
17124
17127
|
}),
|
|
17125
|
-
|
|
17128
|
+
Ue(a, {
|
|
17126
17129
|
class: "forgot float-left",
|
|
17127
17130
|
to: "/login"
|
|
17128
17131
|
}, {
|
|
@@ -17135,7 +17138,7 @@ function uu(n, e, t, r, o, i) {
|
|
|
17135
17138
|
]))
|
|
17136
17139
|
], 36);
|
|
17137
17140
|
}
|
|
17138
|
-
const ko = /* @__PURE__ */
|
|
17141
|
+
const ko = /* @__PURE__ */ gt(Bl, [["render", uu], ["__scopeId", "data-v-89d98ef3"]]), du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17139
17142
|
__proto__: null,
|
|
17140
17143
|
default: ko
|
|
17141
17144
|
}, Symbol.toStringTag, { value: "Module" })), pu = {
|
|
@@ -17152,7 +17155,7 @@ const ko = /* @__PURE__ */ mt(Bl, [["render", uu], ["__scopeId", "data-v-89d98ef
|
|
|
17152
17155
|
},
|
|
17153
17156
|
methods: {
|
|
17154
17157
|
close() {
|
|
17155
|
-
|
|
17158
|
+
F.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
|
|
17156
17159
|
},
|
|
17157
17160
|
async submit() {
|
|
17158
17161
|
let n = {
|
|
@@ -17161,9 +17164,9 @@ const ko = /* @__PURE__ */ mt(Bl, [["render", uu], ["__scopeId", "data-v-89d98ef
|
|
|
17161
17164
|
enable: this.mfaEnable
|
|
17162
17165
|
};
|
|
17163
17166
|
this.mfaEnable || delete n.otpSecret, this.loading = !0;
|
|
17164
|
-
const [e, t] = await fe(
|
|
17167
|
+
const [e, t] = await fe(Je.setMfa(n, this.$storex));
|
|
17165
17168
|
if (this.loading = !1, e)
|
|
17166
|
-
return
|
|
17169
|
+
return F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
|
|
17167
17170
|
t.data.success && (this.getAccountSettings(), this.successSnack(t.data.message));
|
|
17168
17171
|
}
|
|
17169
17172
|
}
|
|
@@ -17173,9 +17176,9 @@ const ko = /* @__PURE__ */ mt(Bl, [["render", uu], ["__scopeId", "data-v-89d98ef
|
|
|
17173
17176
|
class: "responsive-image",
|
|
17174
17177
|
style: { width: "35%" }
|
|
17175
17178
|
})
|
|
17176
|
-
], -1),
|
|
17179
|
+
], -1), mu = [
|
|
17177
17180
|
fu
|
|
17178
|
-
],
|
|
17181
|
+
], gu = /* @__PURE__ */ _("h4", { style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "50px" } }, " 2-Step Verification ", -1), _u = /* @__PURE__ */ _("br", null, null, -1), vu = { class: "qrCodeLoginContainer center-text" }, yu = {
|
|
17179
17182
|
class: "ios-switch",
|
|
17180
17183
|
style: { display: "inline-block", float: "right" }
|
|
17181
17184
|
}, wu = /* @__PURE__ */ _("label", {
|
|
@@ -17211,8 +17214,8 @@ function zu(n, e, t, r, o, i) {
|
|
|
17211
17214
|
onClick: e[0] || (e[0] = (...a) => i.close && i.close(...a)),
|
|
17212
17215
|
class: "color-black pull-right pointer",
|
|
17213
17216
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
17214
|
-
},
|
|
17215
|
-
|
|
17217
|
+
}, mu)) : pe("", !0),
|
|
17218
|
+
gu,
|
|
17216
17219
|
_u,
|
|
17217
17220
|
_("div", vu, [
|
|
17218
17221
|
_("div", null, [
|
|
@@ -17246,7 +17249,7 @@ function zu(n, e, t, r, o, i) {
|
|
|
17246
17249
|
]),
|
|
17247
17250
|
n.account.mfaEnabled !== n.mfaEnable ? (N(), x("form", {
|
|
17248
17251
|
key: 0,
|
|
17249
|
-
onSubmit: e[4] || (e[4] =
|
|
17252
|
+
onSubmit: e[4] || (e[4] = Ve((...a) => n.validateMFA && n.validateMFA(...a), ["prevent"]))
|
|
17250
17253
|
}, [
|
|
17251
17254
|
_("button", Au, [
|
|
17252
17255
|
n.loading ? (N(), x("span", Pu)) : (N(), x("span", Ru, Q(n.ssoLang[n.appLanguage].continue), 1))
|
|
@@ -17272,7 +17275,7 @@ function zu(n, e, t, r, o, i) {
|
|
|
17272
17275
|
])
|
|
17273
17276
|
]);
|
|
17274
17277
|
}
|
|
17275
|
-
const Co = /* @__PURE__ */
|
|
17278
|
+
const Co = /* @__PURE__ */ gt(pu, [["render", zu]]), xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17276
17279
|
__proto__: null,
|
|
17277
17280
|
default: Co
|
|
17278
17281
|
}, Symbol.toStringTag, { value: "Module" })), Uu = {
|
|
@@ -17293,7 +17296,7 @@ const Co = /* @__PURE__ */ mt(pu, [["render", zu]]), xu = /* @__PURE__ */ Object
|
|
|
17293
17296
|
};
|
|
17294
17297
|
},
|
|
17295
17298
|
mounted() {
|
|
17296
|
-
this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e),
|
|
17299
|
+
this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e), F.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
17297
17300
|
},
|
|
17298
17301
|
methods: {
|
|
17299
17302
|
async resetEmail() {
|
|
@@ -17383,13 +17386,13 @@ const Co = /* @__PURE__ */ mt(pu, [["render", zu]]), xu = /* @__PURE__ */ Object
|
|
|
17383
17386
|
}, fd = {
|
|
17384
17387
|
key: 1,
|
|
17385
17388
|
class: "button--loading button__loader"
|
|
17386
|
-
},
|
|
17389
|
+
}, md = /* @__PURE__ */ on(() => /* @__PURE__ */ _("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), gd = { class: "close-text center-text half-top color-black" }, _d = ["innerHTML"], vd = ["href"];
|
|
17387
17390
|
function yd(n, e, t, r, o, i) {
|
|
17388
17391
|
const a = Fn("router-link");
|
|
17389
17392
|
return o.passwordChange ? (N(), x("form", {
|
|
17390
17393
|
key: 1,
|
|
17391
17394
|
class: "page-login content-boxed content-boxed-padding",
|
|
17392
|
-
onSubmit: e[7] || (e[7] =
|
|
17395
|
+
onSubmit: e[7] || (e[7] = Ve((...s) => i.changePw && i.changePw(...s), ["prevent"]))
|
|
17393
17396
|
}, [
|
|
17394
17397
|
_("h3", ed, Q(n.ssoLang[this.appLanguage].password_change), 1),
|
|
17395
17398
|
_("p", td, Q(n.ssoLang[this.appLanguage].password_new), 1),
|
|
@@ -17438,8 +17441,8 @@ function yd(n, e, t, r, o, i) {
|
|
|
17438
17441
|
_("button", pd, [
|
|
17439
17442
|
o.submitted ? (N(), x("span", fd)) : (N(), x("span", hd, Q(n.ssoLang[this.appLanguage].password_change), 1))
|
|
17440
17443
|
]),
|
|
17441
|
-
|
|
17442
|
-
_("p",
|
|
17444
|
+
md,
|
|
17445
|
+
_("p", gd, [
|
|
17443
17446
|
_("span", {
|
|
17444
17447
|
innerHTML: n.ssoLang[this.appLanguage].reset_password_p2
|
|
17445
17448
|
}, null, 8, _d),
|
|
@@ -17451,7 +17454,7 @@ function yd(n, e, t, r, o, i) {
|
|
|
17451
17454
|
], 32)) : (N(), x("form", {
|
|
17452
17455
|
key: 0,
|
|
17453
17456
|
class: "page-login content-boxed content-boxed-padding",
|
|
17454
|
-
onSubmit: e[2] || (e[2] =
|
|
17457
|
+
onSubmit: e[2] || (e[2] = Ve((...s) => i.resetEmail && i.resetEmail(...s), ["prevent"])),
|
|
17455
17458
|
autocomplete: "on"
|
|
17456
17459
|
}, [
|
|
17457
17460
|
_("h3", Bu, Q(n.ssoLang[this.appLanguage].reset_password), 1),
|
|
@@ -17461,13 +17464,13 @@ function yd(n, e, t, r, o, i) {
|
|
|
17461
17464
|
Ie(_("input", {
|
|
17462
17465
|
id: "emailInput",
|
|
17463
17466
|
"onUpdate:modelValue": e[0] || (e[0] = (s) => o.email = s),
|
|
17464
|
-
onKeydown: e[1] || (e[1] = fn(
|
|
17467
|
+
onKeydown: e[1] || (e[1] = fn(Ve(() => {
|
|
17465
17468
|
}, ["prevent"]), ["space"])),
|
|
17466
17469
|
type: "email",
|
|
17467
17470
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
17468
17471
|
required: ""
|
|
17469
17472
|
}, null, 40, Fu), [
|
|
17470
|
-
[
|
|
17473
|
+
[mn, o.email]
|
|
17471
17474
|
]),
|
|
17472
17475
|
qu
|
|
17473
17476
|
]),
|
|
@@ -17485,7 +17488,7 @@ function yd(n, e, t, r, o, i) {
|
|
|
17485
17488
|
]),
|
|
17486
17489
|
Ju,
|
|
17487
17490
|
_("div", Xu, [
|
|
17488
|
-
|
|
17491
|
+
Ue(a, {
|
|
17489
17492
|
class: "create float-right",
|
|
17490
17493
|
to: "/verify"
|
|
17491
17494
|
}, {
|
|
@@ -17494,7 +17497,7 @@ function yd(n, e, t, r, o, i) {
|
|
|
17494
17497
|
]),
|
|
17495
17498
|
_: 1
|
|
17496
17499
|
}),
|
|
17497
|
-
|
|
17500
|
+
Ue(a, {
|
|
17498
17501
|
class: "forgot float-left",
|
|
17499
17502
|
to: "/login"
|
|
17500
17503
|
}, {
|
|
@@ -17507,7 +17510,7 @@ function yd(n, e, t, r, o, i) {
|
|
|
17507
17510
|
])
|
|
17508
17511
|
], 32));
|
|
17509
17512
|
}
|
|
17510
|
-
const Eo = /* @__PURE__ */
|
|
17513
|
+
const Eo = /* @__PURE__ */ gt(Uu, [["render", yd], ["__scopeId", "data-v-69a9cfa3"]]), wd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17511
17514
|
__proto__: null,
|
|
17512
17515
|
default: Eo
|
|
17513
17516
|
}, Symbol.toStringTag, { value: "Module" })), bd = {
|
|
@@ -17551,7 +17554,7 @@ function Sd(n, e, t, r, o, i) {
|
|
|
17551
17554
|
])) : (N(), x("h4", Td, Q(n.ssoLang[this.appLanguage].please_wait), 1))
|
|
17552
17555
|
]);
|
|
17553
17556
|
}
|
|
17554
|
-
const To = /* @__PURE__ */
|
|
17557
|
+
const To = /* @__PURE__ */ gt(bd, [["render", Sd]]), Id = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17555
17558
|
__proto__: null,
|
|
17556
17559
|
default: To
|
|
17557
17560
|
}, Symbol.toStringTag, { value: "Module" })), Ad = {
|
|
@@ -17563,11 +17566,11 @@ const To = /* @__PURE__ */ mt(bd, [["render", Sd]]), Id = /* @__PURE__ */ Object
|
|
|
17563
17566
|
};
|
|
17564
17567
|
},
|
|
17565
17568
|
mounted() {
|
|
17566
|
-
|
|
17569
|
+
F.$on("closeModal", () => {
|
|
17567
17570
|
this.toggle = !1, window.document.body.style.overflow = "auto", window.document.body.style.height = "auto";
|
|
17568
|
-
}),
|
|
17571
|
+
}), F.$on("openModalOverlay", () => {
|
|
17569
17572
|
this.toggle = !0;
|
|
17570
|
-
}),
|
|
17573
|
+
}), F.$on("toggleSSOLanguageModal", this.toggleModal), F.$on("toggleOTPModal", this.toggleModal), F.$on("toggleSSOModal", this.toggleModal), F.$on("toggleSSOPickModal", this.toggleModal);
|
|
17571
17574
|
},
|
|
17572
17575
|
methods: {
|
|
17573
17576
|
toggleModal(n = !0) {
|
|
@@ -17575,17 +17578,17 @@ const To = /* @__PURE__ */ mt(bd, [["render", Sd]]), Id = /* @__PURE__ */ Object
|
|
|
17575
17578
|
},
|
|
17576
17579
|
toggleEmit() {
|
|
17577
17580
|
var n, e;
|
|
17578
|
-
!this.isLoggedIn && ((e = (n = this.user) == null ? void 0 : n.lead_form) != null && e.forceFilling) ||
|
|
17581
|
+
!this.isLoggedIn && ((e = (n = this.user) == null ? void 0 : n.lead_form) != null && e.forceFilling) || F.$emit("closeModal");
|
|
17579
17582
|
}
|
|
17580
17583
|
}
|
|
17581
17584
|
};
|
|
17582
17585
|
function Rd(n, e, t, r, o, i) {
|
|
17583
17586
|
return N(), x("div", {
|
|
17584
|
-
class:
|
|
17587
|
+
class: Ke({ "pointer delete-menu": !0, "delete-menu-active": o.toggle }),
|
|
17585
17588
|
onClick: e[0] || (e[0] = (...a) => i.toggleEmit && i.toggleEmit(...a))
|
|
17586
17589
|
}, null, 2);
|
|
17587
17590
|
}
|
|
17588
|
-
const Pi = /* @__PURE__ */
|
|
17591
|
+
const Pi = /* @__PURE__ */ gt(Ad, [["render", Rd], ["__scopeId", "data-v-17c95816"]]), Pd = {
|
|
17589
17592
|
name: "SSO",
|
|
17590
17593
|
mixins: [Lr, zr, xr, at],
|
|
17591
17594
|
data() {
|
|
@@ -17596,16 +17599,16 @@ const Pi = /* @__PURE__ */ mt(Ad, [["render", Rd], ["__scopeId", "data-v-17c9581
|
|
|
17596
17599
|
};
|
|
17597
17600
|
},
|
|
17598
17601
|
mounted() {
|
|
17599
|
-
|
|
17602
|
+
F.$on("toggleSSOModal", this.toggleModal), F.$on("closeModal", () => {
|
|
17600
17603
|
this.toggle = !1;
|
|
17601
17604
|
});
|
|
17602
17605
|
},
|
|
17603
17606
|
beforeDestroy() {
|
|
17604
|
-
|
|
17607
|
+
F._events.toggleSSOModal.pop();
|
|
17605
17608
|
},
|
|
17606
17609
|
methods: {
|
|
17607
17610
|
forceClose() {
|
|
17608
|
-
|
|
17611
|
+
F.$emit("closeModal");
|
|
17609
17612
|
},
|
|
17610
17613
|
close() {
|
|
17611
17614
|
this.toggleModal();
|
|
@@ -17617,7 +17620,7 @@ const Pi = /* @__PURE__ */ mt(Ad, [["render", Rd], ["__scopeId", "data-v-17c9581
|
|
|
17617
17620
|
let e;
|
|
17618
17621
|
if (!(!n || n.error))
|
|
17619
17622
|
if (e = Object.keys(n.sso), e.length)
|
|
17620
|
-
e.length <= 1 ? (e[0] === "azure" && this.microsoftLogin("sso", n.sso.azure.sso), e[0] === "okta" && this.oktaLogin(n.sso.okta.sso), e[0] === "saml" && this.samlLogin(n.sso.saml.sso.loginUrl)) : (this.forceClose(),
|
|
17623
|
+
e.length <= 1 ? (e[0] === "azure" && this.microsoftLogin("sso", n.sso.azure.sso), e[0] === "okta" && this.oktaLogin(n.sso.okta.sso), e[0] === "saml" && this.samlLogin(n.sso.saml.sso.loginUrl)) : (this.forceClose(), F.$emit("toggleSSOPickModal", {
|
|
17621
17624
|
sso: n.sso,
|
|
17622
17625
|
email: this.email
|
|
17623
17626
|
}));
|
|
@@ -17646,8 +17649,8 @@ const Pi = /* @__PURE__ */ mt(Ad, [["render", Rd], ["__scopeId", "data-v-17c9581
|
|
|
17646
17649
|
};
|
|
17647
17650
|
function Dd(n, e, t, r, o, i) {
|
|
17648
17651
|
return N(), x("form", {
|
|
17649
|
-
onSubmit: e[3] || (e[3] =
|
|
17650
|
-
class:
|
|
17652
|
+
onSubmit: e[3] || (e[3] = Ve((...a) => i.submit && i.submit(...a), ["prevent"])),
|
|
17653
|
+
class: Ke(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
17651
17654
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
17652
17655
|
}, [
|
|
17653
17656
|
_("a", {
|
|
@@ -17668,10 +17671,10 @@ function Dd(n, e, t, r, o, i) {
|
|
|
17668
17671
|
class: "edit-input h-40 lh-40",
|
|
17669
17672
|
style: { width: "80%" },
|
|
17670
17673
|
required: "",
|
|
17671
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
17674
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
17672
17675
|
}, ["prevent"]), ["space"]))
|
|
17673
17676
|
}, null, 40, zd), [
|
|
17674
|
-
[
|
|
17677
|
+
[mn, o.email]
|
|
17675
17678
|
])
|
|
17676
17679
|
]),
|
|
17677
17680
|
_("button", xd, [
|
|
@@ -17679,7 +17682,7 @@ function Dd(n, e, t, r, o, i) {
|
|
|
17679
17682
|
])
|
|
17680
17683
|
], 34);
|
|
17681
17684
|
}
|
|
17682
|
-
const Mi = /* @__PURE__ */
|
|
17685
|
+
const Mi = /* @__PURE__ */ gt(Pd, [["render", Dd], ["__scopeId", "data-v-11f19a09"]]), Hd = {
|
|
17683
17686
|
name: "OTP",
|
|
17684
17687
|
mixins: [at],
|
|
17685
17688
|
data() {
|
|
@@ -17690,16 +17693,16 @@ const Mi = /* @__PURE__ */ mt(Pd, [["render", Dd], ["__scopeId", "data-v-11f19a0
|
|
|
17690
17693
|
};
|
|
17691
17694
|
},
|
|
17692
17695
|
mounted() {
|
|
17693
|
-
|
|
17696
|
+
F.$on("toggleOTPModal", this.toggleModal), F.$on("closeModal", () => {
|
|
17694
17697
|
this.toggle = !1;
|
|
17695
17698
|
});
|
|
17696
17699
|
},
|
|
17697
17700
|
beforeDestroy() {
|
|
17698
|
-
|
|
17701
|
+
F._events.toggleOTPModal.pop();
|
|
17699
17702
|
},
|
|
17700
17703
|
methods: {
|
|
17701
17704
|
forceClose() {
|
|
17702
|
-
|
|
17705
|
+
F.$emit("closeModal");
|
|
17703
17706
|
},
|
|
17704
17707
|
close() {
|
|
17705
17708
|
this.toggleModal();
|
|
@@ -17707,7 +17710,7 @@ const Mi = /* @__PURE__ */ mt(Pd, [["render", Dd], ["__scopeId", "data-v-11f19a0
|
|
|
17707
17710
|
async submit() {
|
|
17708
17711
|
if (!this.otp || this.otp.length !== 6)
|
|
17709
17712
|
return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);
|
|
17710
|
-
this.loading = !0,
|
|
17713
|
+
this.loading = !0, F.$emit("otpSubmitted", this.otp), F.$emit("toggleOTPModal"), this.loading = !1;
|
|
17711
17714
|
},
|
|
17712
17715
|
toggleModal() {
|
|
17713
17716
|
this.toggle = !this.toggle;
|
|
@@ -17731,8 +17734,8 @@ const Mi = /* @__PURE__ */ mt(Pd, [["render", Dd], ["__scopeId", "data-v-11f19a0
|
|
|
17731
17734
|
}, $d = { class: "close-text center-text half-top color-black" }, Jd = ["innerHTML"], Xd = /* @__PURE__ */ _("a", { href: "mailto:support@tapni.com?subject=MFA Authentication Problem" }, " support@tapni.com", -1);
|
|
17732
17735
|
function Zd(n, e, t, r, o, i) {
|
|
17733
17736
|
return N(), x("form", {
|
|
17734
|
-
onSubmit: e[3] || (e[3] =
|
|
17735
|
-
class:
|
|
17737
|
+
onSubmit: e[3] || (e[3] = Ve((...a) => i.submit && i.submit(...a), ["prevent"])),
|
|
17738
|
+
class: Ke(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
17736
17739
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
17737
17740
|
}, [
|
|
17738
17741
|
_("a", {
|
|
@@ -17758,10 +17761,10 @@ function Zd(n, e, t, r, o, i) {
|
|
|
17758
17761
|
class: "edit-input h-40 lh-40",
|
|
17759
17762
|
style: { width: "80%", margin: "0 auto", height: "25px" },
|
|
17760
17763
|
required: "",
|
|
17761
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
17764
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
17762
17765
|
}, ["prevent"]), ["space"]))
|
|
17763
17766
|
}, null, 40, Vd), [
|
|
17764
|
-
[
|
|
17767
|
+
[mn, o.otp]
|
|
17765
17768
|
])
|
|
17766
17769
|
]),
|
|
17767
17770
|
_("button", Qd, [
|
|
@@ -17775,7 +17778,7 @@ function Zd(n, e, t, r, o, i) {
|
|
|
17775
17778
|
])
|
|
17776
17779
|
], 34);
|
|
17777
17780
|
}
|
|
17778
|
-
const Ni = /* @__PURE__ */
|
|
17781
|
+
const Ni = /* @__PURE__ */ gt(Hd, [["render", Zd]]), ep = {
|
|
17779
17782
|
name: "SSOPick",
|
|
17780
17783
|
mixins: [Lr, zr, xr, at],
|
|
17781
17784
|
data() {
|
|
@@ -17789,16 +17792,16 @@ const Ni = /* @__PURE__ */ mt(Hd, [["render", Zd]]), ep = {
|
|
|
17789
17792
|
};
|
|
17790
17793
|
},
|
|
17791
17794
|
mounted() {
|
|
17792
|
-
|
|
17795
|
+
F.$on("toggleSSOPickModal", this.toggleModal), F.$on("closeModal", () => {
|
|
17793
17796
|
this.toggle = !1;
|
|
17794
17797
|
});
|
|
17795
17798
|
},
|
|
17796
17799
|
beforeDestroy() {
|
|
17797
|
-
|
|
17800
|
+
F._events.toggleSSOPickModal.pop();
|
|
17798
17801
|
},
|
|
17799
17802
|
methods: {
|
|
17800
17803
|
forceClose() {
|
|
17801
|
-
|
|
17804
|
+
F.$emit("closeModal");
|
|
17802
17805
|
},
|
|
17803
17806
|
close() {
|
|
17804
17807
|
this.toggleModal();
|
|
@@ -17840,9 +17843,9 @@ const Ni = /* @__PURE__ */ mt(Hd, [["render", Zd]]), ep = {
|
|
|
17840
17843
|
function hp(n, e, t, r, o, i) {
|
|
17841
17844
|
var a, s, u;
|
|
17842
17845
|
return N(), x("form", {
|
|
17843
|
-
onSubmit: e[4] || (e[4] =
|
|
17846
|
+
onSubmit: e[4] || (e[4] = Ve(() => {
|
|
17844
17847
|
}, ["prevent"])),
|
|
17845
|
-
class:
|
|
17848
|
+
class: Ke(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
17846
17849
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
17847
17850
|
}, [
|
|
17848
17851
|
_("a", {
|
|
@@ -17877,7 +17880,7 @@ function hp(n, e, t, r, o, i) {
|
|
|
17877
17880
|
])) : pe("", !0)
|
|
17878
17881
|
], 34);
|
|
17879
17882
|
}
|
|
17880
|
-
const Oi = /* @__PURE__ */
|
|
17883
|
+
const Oi = /* @__PURE__ */ gt(ep, [["render", hp], ["__scopeId", "data-v-4f821f65"]]), fp = {
|
|
17881
17884
|
name: "LinkIcon",
|
|
17882
17885
|
mixins: [at],
|
|
17883
17886
|
props: {
|
|
@@ -17949,17 +17952,17 @@ const Oi = /* @__PURE__ */ mt(ep, [["render", hp], ["__scopeId", "data-v-4f821f6
|
|
|
17949
17952
|
}
|
|
17950
17953
|
},
|
|
17951
17954
|
methods: {}
|
|
17952
|
-
},
|
|
17955
|
+
}, mp = ["src", "alt"], gp = ["src", "alt"], _p = ["src", "alt"], vp = ["src", "alt"];
|
|
17953
17956
|
function yp(n, e, t, r, o, i) {
|
|
17954
17957
|
var a, s;
|
|
17955
17958
|
return N(), x("a", {
|
|
17956
|
-
class:
|
|
17959
|
+
class: Ke(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
|
|
17957
17960
|
style: xn(
|
|
17958
|
-
(t.editing ? "cursor: move" : "cursor: pointer") + "!important; overflow: visible;"
|
|
17961
|
+
(t.editing ? "cursor: move" : "cursor: pointer") + "!important; overflow: visible; margin-top: 5px;"
|
|
17959
17962
|
)
|
|
17960
17963
|
}, [
|
|
17961
17964
|
_("span", {
|
|
17962
|
-
class:
|
|
17965
|
+
class: Ke({
|
|
17963
17966
|
"user-link-img": !0,
|
|
17964
17967
|
"pulse pulse-border": t.pulse,
|
|
17965
17968
|
"link-drag": t.editing
|
|
@@ -17973,14 +17976,14 @@ function yp(n, e, t, r, o, i) {
|
|
|
17973
17976
|
alt: t.data.text,
|
|
17974
17977
|
onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
|
|
17975
17978
|
onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
|
|
17976
|
-
}, null, 40,
|
|
17979
|
+
}, null, 40, mp)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (N(), x("img", {
|
|
17977
17980
|
key: 1,
|
|
17978
17981
|
src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
|
|
17979
17982
|
class: "responsive-image",
|
|
17980
17983
|
alt: t.data.text,
|
|
17981
17984
|
onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
|
|
17982
17985
|
onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
|
|
17983
|
-
}, null, 40,
|
|
17986
|
+
}, null, 40, gp)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (N(), x("img", {
|
|
17984
17987
|
key: 2,
|
|
17985
17988
|
src: "https://cdn.tapni.co/icons/customlink.png",
|
|
17986
17989
|
class: "responsive-image",
|
|
@@ -18003,7 +18006,7 @@ function yp(n, e, t, r, o, i) {
|
|
|
18003
18006
|
}, Q(i.linkText), 5)
|
|
18004
18007
|
], 6);
|
|
18005
18008
|
}
|
|
18006
|
-
const wp = /* @__PURE__ */
|
|
18009
|
+
const wp = /* @__PURE__ */ gt(fp, [["render", yp]]), bp = {
|
|
18007
18010
|
ANDROID_VERSION: "5.6",
|
|
18008
18011
|
IOS_VERSION: "5.6",
|
|
18009
18012
|
WEB_VERSION: "5.6.0",
|
|
@@ -18020,30 +18023,30 @@ const wp = /* @__PURE__ */ mt(fp, [["render", yp]]), bp = {
|
|
|
18020
18023
|
};
|
|
18021
18024
|
},
|
|
18022
18025
|
async mounted() {
|
|
18023
|
-
|
|
18026
|
+
F.$on("toggleSSOLanguageModal", this.toggleModal), F.$on("closeModal", () => {
|
|
18024
18027
|
this.toggle = !1;
|
|
18025
18028
|
});
|
|
18026
18029
|
let n = this.isNative ? await vr.getLanguageCode() : Dn.getFirstBrowserLanguage();
|
|
18027
18030
|
n && bp.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
|
|
18028
18031
|
},
|
|
18029
18032
|
beforeDestroy() {
|
|
18030
|
-
|
|
18033
|
+
F._events.toggleSSOLanguageModal.pop();
|
|
18031
18034
|
},
|
|
18032
18035
|
methods: {
|
|
18033
18036
|
forceClose() {
|
|
18034
|
-
|
|
18037
|
+
F.$emit("closeModal");
|
|
18035
18038
|
},
|
|
18036
18039
|
close() {
|
|
18037
18040
|
this.forceClose();
|
|
18038
18041
|
},
|
|
18039
18042
|
async updateLanguage(n) {
|
|
18040
|
-
this.updateLang(n),
|
|
18043
|
+
this.updateLang(n), F.$emit("closeModal");
|
|
18041
18044
|
},
|
|
18042
18045
|
toggleModal() {
|
|
18043
18046
|
this.toggle = !this.toggle;
|
|
18044
18047
|
}
|
|
18045
18048
|
}
|
|
18046
|
-
}, Cp = (n) => (qn("data-v-
|
|
18049
|
+
}, Cp = (n) => (qn("data-v-7477a961"), n = n(), Kn(), n), Ep = /* @__PURE__ */ Cp(() => /* @__PURE__ */ _("i", { class: "font-17 fa color-black" }, [
|
|
18047
18050
|
/* @__PURE__ */ _("img", {
|
|
18048
18051
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
18049
18052
|
class: "fa responsive-image",
|
|
@@ -18055,7 +18058,7 @@ const wp = /* @__PURE__ */ mt(fp, [["render", yp]]), bp = {
|
|
|
18055
18058
|
function Ip(n, e, t, r, o, i) {
|
|
18056
18059
|
const a = Fn("LinkIcon");
|
|
18057
18060
|
return N(), x("div", {
|
|
18058
|
-
class:
|
|
18061
|
+
class: Ke(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
18059
18062
|
style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
|
|
18060
18063
|
}, [
|
|
18061
18064
|
_("a", {
|
|
@@ -18064,65 +18067,81 @@ function Ip(n, e, t, r, o, i) {
|
|
|
18064
18067
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
18065
18068
|
}, Tp),
|
|
18066
18069
|
_("h3", Sp, Q(n.ssoLang[n.appLanguage].app_language), 1),
|
|
18067
|
-
|
|
18070
|
+
Ue(a, {
|
|
18068
18071
|
onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
|
|
18069
|
-
"link-style": "link-
|
|
18072
|
+
"link-style": "link-list",
|
|
18070
18073
|
data: { type: "lang/en", text: n.ssoLang[this.appLanguage].english },
|
|
18071
18074
|
editing: !1,
|
|
18072
|
-
class:
|
|
18075
|
+
class: Ke({ "add-button": !0 }),
|
|
18076
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18073
18077
|
}, null, 8, ["data"]),
|
|
18074
|
-
|
|
18078
|
+
Ue(a, {
|
|
18075
18079
|
onClick: e[2] || (e[2] = (s) => i.updateLanguage("es")),
|
|
18076
|
-
"link-style": "link-
|
|
18080
|
+
"link-style": "link-list",
|
|
18077
18081
|
data: { type: "lang/es", text: n.ssoLang[this.appLanguage].spanish },
|
|
18078
18082
|
editing: !1,
|
|
18079
|
-
class:
|
|
18083
|
+
class: Ke({ "add-button": !0 }),
|
|
18084
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18080
18085
|
}, null, 8, ["data"]),
|
|
18081
|
-
|
|
18086
|
+
Ue(a, {
|
|
18082
18087
|
onClick: e[3] || (e[3] = (s) => i.updateLanguage("de")),
|
|
18083
|
-
"link-style": "link-
|
|
18088
|
+
"link-style": "link-list",
|
|
18084
18089
|
data: { type: "lang/de", text: n.ssoLang[this.appLanguage].german },
|
|
18085
18090
|
editing: !1,
|
|
18086
|
-
class:
|
|
18091
|
+
class: Ke({ "add-button": !0 }),
|
|
18092
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18087
18093
|
}, null, 8, ["data"]),
|
|
18088
|
-
|
|
18094
|
+
Ue(a, {
|
|
18089
18095
|
onClick: e[4] || (e[4] = (s) => i.updateLanguage("it")),
|
|
18090
|
-
"link-style": "link-
|
|
18096
|
+
"link-style": "link-list",
|
|
18091
18097
|
data: { type: "lang/it", text: n.ssoLang[this.appLanguage].italian },
|
|
18092
18098
|
editing: !1,
|
|
18093
|
-
class:
|
|
18099
|
+
class: Ke({ "add-button": !0 }),
|
|
18100
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18094
18101
|
}, null, 8, ["data"]),
|
|
18095
|
-
|
|
18102
|
+
Ue(a, {
|
|
18096
18103
|
onClick: e[5] || (e[5] = (s) => i.updateLanguage("fr")),
|
|
18097
|
-
"link-style": "link-
|
|
18104
|
+
"link-style": "link-list",
|
|
18098
18105
|
data: { type: "lang/fr", text: n.ssoLang[this.appLanguage].french },
|
|
18099
18106
|
editing: !1,
|
|
18100
|
-
class:
|
|
18107
|
+
class: Ke({ "add-button": !0 }),
|
|
18108
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18101
18109
|
}, null, 8, ["data"]),
|
|
18102
|
-
|
|
18110
|
+
Ue(a, {
|
|
18103
18111
|
onClick: e[6] || (e[6] = (s) => i.updateLanguage("kr")),
|
|
18104
|
-
"link-style": "link-
|
|
18112
|
+
"link-style": "link-list",
|
|
18105
18113
|
data: { type: "lang/kr", text: n.ssoLang[this.appLanguage].korean },
|
|
18106
18114
|
editing: !1,
|
|
18107
|
-
class:
|
|
18115
|
+
class: Ke({ "add-button": !0 }),
|
|
18116
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18108
18117
|
}, null, 8, ["data"]),
|
|
18109
|
-
|
|
18118
|
+
Ue(a, {
|
|
18110
18119
|
onClick: e[7] || (e[7] = (s) => i.updateLanguage("sr")),
|
|
18111
|
-
"link-style": "link-
|
|
18120
|
+
"link-style": "link-list",
|
|
18112
18121
|
data: { type: "lang/sr", text: n.ssoLang[this.appLanguage].serbian },
|
|
18113
18122
|
editing: !1,
|
|
18114
|
-
class:
|
|
18123
|
+
class: Ke({ "add-button": !0 }),
|
|
18124
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18115
18125
|
}, null, 8, ["data"]),
|
|
18116
|
-
|
|
18126
|
+
Ue(a, {
|
|
18117
18127
|
onClick: e[8] || (e[8] = (s) => i.updateLanguage("tr")),
|
|
18118
|
-
"link-style": "link-
|
|
18128
|
+
"link-style": "link-list",
|
|
18119
18129
|
data: { type: "lang/tr", text: n.ssoLang[this.appLanguage].turkish },
|
|
18120
18130
|
editing: !1,
|
|
18121
|
-
class:
|
|
18131
|
+
class: Ke({ "add-button": !0 }),
|
|
18132
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18133
|
+
}, null, 8, ["data"]),
|
|
18134
|
+
Ue(a, {
|
|
18135
|
+
onClick: e[9] || (e[9] = (s) => i.updateLanguage("cn")),
|
|
18136
|
+
"link-style": "link-list",
|
|
18137
|
+
data: { type: "lang/cn", text: n.ssoLang[this.appLanguage].chinese },
|
|
18138
|
+
editing: !1,
|
|
18139
|
+
class: Ke({ "add-button": !0 }),
|
|
18140
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18122
18141
|
}, null, 8, ["data"])
|
|
18123
18142
|
], 2);
|
|
18124
18143
|
}
|
|
18125
|
-
const Li = /* @__PURE__ */
|
|
18144
|
+
const Li = /* @__PURE__ */ gt(kp, [["render", Ip], ["__scopeId", "data-v-7477a961"]]), un = ar("Preferences", {
|
|
18126
18145
|
web: () => import("./web-AImUTDQQ.js").then((n) => new n.PreferencesWeb())
|
|
18127
18146
|
}), At = {
|
|
18128
18147
|
async setObject(n, e) {
|
|
@@ -18331,7 +18350,7 @@ const Pp = { id: "ssoapp" }, Mp = {
|
|
|
18331
18350
|
}
|
|
18332
18351
|
},
|
|
18333
18352
|
async mounted() {
|
|
18334
|
-
this.applyBgStyle(), this.setView(this.viewProp),
|
|
18353
|
+
this.applyBgStyle(), this.setView(this.viewProp), F.$on("ssoEvent", this.ssoOutgoingEvent), F.$on("ssoLogout", (n) => this.logout(n)), F.$on("getLoggedInAccounts", () => this.getLoggedInAccounts()), F.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), F.$on("switchAccount", (n) => this.switchAccount(n)), F.$on("setToken", (n) => this.setToken(n));
|
|
18335
18354
|
},
|
|
18336
18355
|
methods: {
|
|
18337
18356
|
async init() {
|
|
@@ -18341,13 +18360,13 @@ const Pp = { id: "ssoapp" }, Mp = {
|
|
|
18341
18360
|
this.$emit("ssoEvent", n);
|
|
18342
18361
|
},
|
|
18343
18362
|
ssoIncomingEvent(n) {
|
|
18344
|
-
|
|
18363
|
+
F.$emit(n.name, n.data);
|
|
18345
18364
|
},
|
|
18346
18365
|
applyBgStyle() {
|
|
18347
18366
|
this.display === "redirect" ? document.getElementsByTagName("html")[0].style = "background: #dfeefe;" : document.getElementsByTagName("html")[0].style = "";
|
|
18348
18367
|
},
|
|
18349
18368
|
toggleSSOLanguageModal() {
|
|
18350
|
-
|
|
18369
|
+
F.$emit("toggleSSOLanguageModal", !0);
|
|
18351
18370
|
}
|
|
18352
18371
|
},
|
|
18353
18372
|
watch: {
|
|
@@ -18388,11 +18407,11 @@ const Pp = { id: "ssoapp" }, Mp = {
|
|
|
18388
18407
|
}, [
|
|
18389
18408
|
_("span", Lp, Q(e.appLanguage.toUpperCase()), 1)
|
|
18390
18409
|
])) : pe("", !0),
|
|
18391
|
-
|
|
18410
|
+
Ue(Pi),
|
|
18392
18411
|
n.isModal ? pe("", !0) : (N(), ht(Li, { key: 2 })),
|
|
18393
18412
|
n.isModal ? pe("", !0) : (N(), ht(Mi, { key: 3 })),
|
|
18394
18413
|
n.isModal ? pe("", !0) : (N(), ht(Oi, { key: 4 })),
|
|
18395
|
-
|
|
18414
|
+
Ue(Ni),
|
|
18396
18415
|
e.initialized && e.renderView === "AuthWelcome" ? (N(), ht(po, { key: 5 })) : e.initialized && e.renderView === "AuthLogin" ? (N(), ht(wo, {
|
|
18397
18416
|
key: 6,
|
|
18398
18417
|
isModal: n.isModal
|
|
@@ -18432,8 +18451,8 @@ const Pp = { id: "ssoapp" }, Mp = {
|
|
|
18432
18451
|
};
|
|
18433
18452
|
export {
|
|
18434
18453
|
at as A,
|
|
18435
|
-
|
|
18454
|
+
F as E,
|
|
18436
18455
|
Gs as Q,
|
|
18437
|
-
|
|
18456
|
+
gt as _,
|
|
18438
18457
|
oh as i
|
|
18439
18458
|
};
|