oauth0-js-lib 2.2.8 → 2.2.9
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/index.es.js +368 -364
- package/dist/index.umd.js +12 -12
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var Un = Object.defineProperty;
|
|
|
2
2
|
var xn = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var x = (e, t, r) => xn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
const Fn = {
|
|
5
|
-
baseUrl:
|
|
5
|
+
baseUrl: qn(),
|
|
6
6
|
createEndpoint: "/api/oauth0/create",
|
|
7
7
|
authEventEndpoint: "/api/oauth0/auth-events",
|
|
8
8
|
authConfirmEndpoint: "/api/oauth0/auth-confirm"
|
|
@@ -12,13 +12,17 @@ let nt = {
|
|
|
12
12
|
...Mn,
|
|
13
13
|
...kn
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function $o(e) {
|
|
16
16
|
nt = { ...nt, ...e };
|
|
17
17
|
}
|
|
18
18
|
function Dn() {
|
|
19
19
|
return nt;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
function qn() {
|
|
22
|
+
var e, t;
|
|
23
|
+
return typeof window < "u" && ((e = window.location) != null && e.origin) ? window.location.origin : typeof globalThis < "u" && ((t = globalThis.location) != null && t.origin) ? globalThis.location.origin : "";
|
|
24
|
+
}
|
|
25
|
+
const jn = `.oauth-modal-overlay {\r
|
|
22
26
|
position: fixed;\r
|
|
23
27
|
top: 0;\r
|
|
24
28
|
left: 0;\r
|
|
@@ -188,7 +192,7 @@ const qn = `.oauth-modal-overlay {\r
|
|
|
188
192
|
margin-bottom: 10px;\r
|
|
189
193
|
}`;
|
|
190
194
|
var oe = {}, Le, ht;
|
|
191
|
-
function
|
|
195
|
+
function Hn() {
|
|
192
196
|
return ht || (ht = 1, Le = function() {
|
|
193
197
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
194
198
|
}), Le;
|
|
@@ -301,7 +305,7 @@ function at() {
|
|
|
301
305
|
})(_e)), _e;
|
|
302
306
|
}
|
|
303
307
|
var ve, mt;
|
|
304
|
-
function
|
|
308
|
+
function zn() {
|
|
305
309
|
if (mt) return ve;
|
|
306
310
|
mt = 1;
|
|
307
311
|
function e() {
|
|
@@ -326,7 +330,7 @@ function Hn() {
|
|
|
326
330
|
}, ve = e, ve;
|
|
327
331
|
}
|
|
328
332
|
var Ue, yt;
|
|
329
|
-
function
|
|
333
|
+
function Vn() {
|
|
330
334
|
if (yt) return Ue;
|
|
331
335
|
yt = 1;
|
|
332
336
|
function e(t) {
|
|
@@ -346,7 +350,7 @@ function zn() {
|
|
|
346
350
|
}, Ue = e, Ue;
|
|
347
351
|
}
|
|
348
352
|
var xe = {}, wt;
|
|
349
|
-
function
|
|
353
|
+
function $n() {
|
|
350
354
|
return wt || (wt = 1, (function(e) {
|
|
351
355
|
const t = Z().getSymbolSize;
|
|
352
356
|
e.getRowColCoords = function(n) {
|
|
@@ -367,7 +371,7 @@ function Vn() {
|
|
|
367
371
|
})(xe)), xe;
|
|
368
372
|
}
|
|
369
373
|
var Fe = {}, bt;
|
|
370
|
-
function
|
|
374
|
+
function Jn() {
|
|
371
375
|
if (bt) return Fe;
|
|
372
376
|
bt = 1;
|
|
373
377
|
const e = Z().getSymbolSize, t = 7;
|
|
@@ -384,7 +388,7 @@ function $n() {
|
|
|
384
388
|
}, Fe;
|
|
385
389
|
}
|
|
386
390
|
var Me = {}, Et;
|
|
387
|
-
function
|
|
391
|
+
function Kn() {
|
|
388
392
|
return Et || (Et = 1, (function(e) {
|
|
389
393
|
e.Patterns = {
|
|
390
394
|
PATTERN000: 0,
|
|
@@ -408,12 +412,12 @@ function Jn() {
|
|
|
408
412
|
return e.isValid(o) ? parseInt(o, 10) : void 0;
|
|
409
413
|
}, e.getPenaltyN1 = function(o) {
|
|
410
414
|
const i = o.size;
|
|
411
|
-
let s = 0, a = 0, u = 0,
|
|
415
|
+
let s = 0, a = 0, u = 0, l = null, c = null;
|
|
412
416
|
for (let h = 0; h < i; h++) {
|
|
413
|
-
a = u = 0,
|
|
417
|
+
a = u = 0, l = c = null;
|
|
414
418
|
for (let m = 0; m < i; m++) {
|
|
415
419
|
let y = o.get(h, m);
|
|
416
|
-
y ===
|
|
420
|
+
y === l ? a++ : (a >= 5 && (s += t.N1 + (a - 5)), l = y, a = 1), y = o.get(m, h), y === c ? u++ : (u >= 5 && (s += t.N1 + (u - 5)), c = y, u = 1);
|
|
417
421
|
}
|
|
418
422
|
a >= 5 && (s += t.N1 + (a - 5)), u >= 5 && (s += t.N1 + (u - 5));
|
|
419
423
|
}
|
|
@@ -423,17 +427,17 @@ function Jn() {
|
|
|
423
427
|
let s = 0;
|
|
424
428
|
for (let a = 0; a < i - 1; a++)
|
|
425
429
|
for (let u = 0; u < i - 1; u++) {
|
|
426
|
-
const
|
|
427
|
-
(
|
|
430
|
+
const l = o.get(a, u) + o.get(a, u + 1) + o.get(a + 1, u) + o.get(a + 1, u + 1);
|
|
431
|
+
(l === 4 || l === 0) && s++;
|
|
428
432
|
}
|
|
429
433
|
return s * t.N2;
|
|
430
434
|
}, e.getPenaltyN3 = function(o) {
|
|
431
435
|
const i = o.size;
|
|
432
436
|
let s = 0, a = 0, u = 0;
|
|
433
|
-
for (let
|
|
437
|
+
for (let l = 0; l < i; l++) {
|
|
434
438
|
a = u = 0;
|
|
435
|
-
for (let
|
|
436
|
-
a = a << 1 & 2047 | o.get(
|
|
439
|
+
for (let c = 0; c < i; c++)
|
|
440
|
+
a = a << 1 & 2047 | o.get(l, c), c >= 10 && (a === 1488 || a === 93) && s++, u = u << 1 & 2047 | o.get(c, l), c >= 10 && (u === 1488 || u === 93) && s++;
|
|
437
441
|
}
|
|
438
442
|
return s * t.N3;
|
|
439
443
|
}, e.getPenaltyN4 = function(o) {
|
|
@@ -472,10 +476,10 @@ function Jn() {
|
|
|
472
476
|
}, e.getBestMask = function(o, i) {
|
|
473
477
|
const s = Object.keys(e.Patterns).length;
|
|
474
478
|
let a = 0, u = 1 / 0;
|
|
475
|
-
for (let
|
|
476
|
-
i(
|
|
477
|
-
const
|
|
478
|
-
e.applyMask(
|
|
479
|
+
for (let l = 0; l < s; l++) {
|
|
480
|
+
i(l), e.applyMask(l, o);
|
|
481
|
+
const c = e.getPenaltyN1(o) + e.getPenaltyN2(o) + e.getPenaltyN3(o) + e.getPenaltyN4(o);
|
|
482
|
+
e.applyMask(l, o), c < u && (u = c, a = l);
|
|
479
483
|
}
|
|
480
484
|
return a;
|
|
481
485
|
};
|
|
@@ -838,9 +842,9 @@ function rn() {
|
|
|
838
842
|
}
|
|
839
843
|
}, we;
|
|
840
844
|
}
|
|
841
|
-
var ke = {},
|
|
842
|
-
function
|
|
843
|
-
if (St) return
|
|
845
|
+
var ke = {}, le = {}, St;
|
|
846
|
+
function Wn() {
|
|
847
|
+
if (St) return le;
|
|
844
848
|
St = 1;
|
|
845
849
|
const e = new Uint8Array(512), t = new Uint8Array(256);
|
|
846
850
|
return (function() {
|
|
@@ -849,19 +853,19 @@ function Kn() {
|
|
|
849
853
|
e[o] = n, t[n] = o, n <<= 1, n & 256 && (n ^= 285);
|
|
850
854
|
for (let o = 255; o < 512; o++)
|
|
851
855
|
e[o] = e[o - 255];
|
|
852
|
-
})(),
|
|
856
|
+
})(), le.log = function(n) {
|
|
853
857
|
if (n < 1) throw new Error("log(" + n + ")");
|
|
854
858
|
return t[n];
|
|
855
|
-
},
|
|
859
|
+
}, le.exp = function(n) {
|
|
856
860
|
return e[n];
|
|
857
|
-
},
|
|
861
|
+
}, le.mul = function(n, o) {
|
|
858
862
|
return n === 0 || o === 0 ? 0 : e[t[n] + t[o]];
|
|
859
|
-
},
|
|
863
|
+
}, le;
|
|
860
864
|
}
|
|
861
865
|
var Rt;
|
|
862
|
-
function
|
|
866
|
+
function Gn() {
|
|
863
867
|
return Rt || (Rt = 1, (function(e) {
|
|
864
|
-
const t =
|
|
868
|
+
const t = Wn();
|
|
865
869
|
e.mul = function(n, o) {
|
|
866
870
|
const i = new Uint8Array(n.length + o.length - 1);
|
|
867
871
|
for (let s = 0; s < n.length; s++)
|
|
@@ -888,10 +892,10 @@ function Wn() {
|
|
|
888
892
|
})(ke)), ke;
|
|
889
893
|
}
|
|
890
894
|
var De, Tt;
|
|
891
|
-
function
|
|
895
|
+
function Qn() {
|
|
892
896
|
if (Tt) return De;
|
|
893
897
|
Tt = 1;
|
|
894
|
-
const e =
|
|
898
|
+
const e = Gn();
|
|
895
899
|
function t(r) {
|
|
896
900
|
this.genPoly = void 0, this.degree = r, this.degree && this.initialize(this.degree);
|
|
897
901
|
}
|
|
@@ -998,7 +1002,7 @@ function ee() {
|
|
|
998
1002
|
})(je)), je;
|
|
999
1003
|
}
|
|
1000
1004
|
var Pt;
|
|
1001
|
-
function
|
|
1005
|
+
function Yn() {
|
|
1002
1006
|
return Pt || (Pt = 1, (function(e) {
|
|
1003
1007
|
const t = Z(), r = rn(), n = at(), o = ee(), i = on(), s = 7973, a = t.getBCHDigit(s);
|
|
1004
1008
|
function u(m, y, d) {
|
|
@@ -1006,19 +1010,19 @@ function Qn() {
|
|
|
1006
1010
|
if (y <= e.getCapacity(p, d, m))
|
|
1007
1011
|
return p;
|
|
1008
1012
|
}
|
|
1009
|
-
function
|
|
1013
|
+
function l(m, y) {
|
|
1010
1014
|
return o.getCharCountIndicator(m, y) + 4;
|
|
1011
1015
|
}
|
|
1012
|
-
function
|
|
1016
|
+
function c(m, y) {
|
|
1013
1017
|
let d = 0;
|
|
1014
1018
|
return m.forEach(function(p) {
|
|
1015
|
-
const g =
|
|
1019
|
+
const g = l(p.mode, y);
|
|
1016
1020
|
d += g + p.getBitsLength();
|
|
1017
1021
|
}), d;
|
|
1018
1022
|
}
|
|
1019
1023
|
function h(m, y) {
|
|
1020
1024
|
for (let d = 1; d <= 40; d++)
|
|
1021
|
-
if (
|
|
1025
|
+
if (c(m, d) <= e.getCapacity(d, y, o.MIXED))
|
|
1022
1026
|
return d;
|
|
1023
1027
|
}
|
|
1024
1028
|
e.from = function(y, d) {
|
|
@@ -1029,7 +1033,7 @@ function Qn() {
|
|
|
1029
1033
|
typeof p > "u" && (p = o.BYTE);
|
|
1030
1034
|
const g = t.getSymbolTotalCodewords(y), w = r.getTotalCodewordsCount(y, d), P = (g - w) * 8;
|
|
1031
1035
|
if (p === o.MIXED) return P;
|
|
1032
|
-
const E = P -
|
|
1036
|
+
const E = P - l(p, y);
|
|
1033
1037
|
switch (p) {
|
|
1034
1038
|
case o.NUMERIC:
|
|
1035
1039
|
return Math.floor(E / 10 * 3);
|
|
@@ -1064,7 +1068,7 @@ function Qn() {
|
|
|
1064
1068
|
})(qe)), qe;
|
|
1065
1069
|
}
|
|
1066
1070
|
var ze = {}, Ot;
|
|
1067
|
-
function
|
|
1071
|
+
function Xn() {
|
|
1068
1072
|
if (Ot) return ze;
|
|
1069
1073
|
Ot = 1;
|
|
1070
1074
|
const e = Z(), t = 1335, r = 21522, n = e.getBCHDigit(t);
|
|
@@ -1077,7 +1081,7 @@ function Yn() {
|
|
|
1077
1081
|
}, ze;
|
|
1078
1082
|
}
|
|
1079
1083
|
var Ve = {}, $e, Lt;
|
|
1080
|
-
function
|
|
1084
|
+
function Zn() {
|
|
1081
1085
|
if (Lt) return $e;
|
|
1082
1086
|
Lt = 1;
|
|
1083
1087
|
const e = ee();
|
|
@@ -1099,7 +1103,7 @@ function Xn() {
|
|
|
1099
1103
|
}, $e = t, $e;
|
|
1100
1104
|
}
|
|
1101
1105
|
var Je, It;
|
|
1102
|
-
function
|
|
1106
|
+
function er() {
|
|
1103
1107
|
if (It) return Je;
|
|
1104
1108
|
It = 1;
|
|
1105
1109
|
const e = ee(), t = [
|
|
@@ -1168,7 +1172,7 @@ function Zn() {
|
|
|
1168
1172
|
}, Je = r, Je;
|
|
1169
1173
|
}
|
|
1170
1174
|
var Ke, _t;
|
|
1171
|
-
function
|
|
1175
|
+
function tr() {
|
|
1172
1176
|
if (_t) return Ke;
|
|
1173
1177
|
_t = 1;
|
|
1174
1178
|
const e = ee();
|
|
@@ -1187,7 +1191,7 @@ function er() {
|
|
|
1187
1191
|
}, Ke = t, Ke;
|
|
1188
1192
|
}
|
|
1189
1193
|
var We, vt;
|
|
1190
|
-
function
|
|
1194
|
+
function nr() {
|
|
1191
1195
|
if (vt) return We;
|
|
1192
1196
|
vt = 1;
|
|
1193
1197
|
const e = ee(), t = Z();
|
|
@@ -1218,7 +1222,7 @@ Make sure your charset is UTF-8`
|
|
|
1218
1222
|
}, We = r, We;
|
|
1219
1223
|
}
|
|
1220
1224
|
var Ge = { exports: {} }, Ut;
|
|
1221
|
-
function
|
|
1225
|
+
function rr() {
|
|
1222
1226
|
return Ut || (Ut = 1, (function(e) {
|
|
1223
1227
|
var t = {
|
|
1224
1228
|
single_source_shortest_paths: function(r, n, o) {
|
|
@@ -1226,10 +1230,10 @@ function nr() {
|
|
|
1226
1230
|
s[n] = 0;
|
|
1227
1231
|
var a = t.PriorityQueue.make();
|
|
1228
1232
|
a.push(n, 0);
|
|
1229
|
-
for (var u,
|
|
1230
|
-
u = a.pop(),
|
|
1231
|
-
for (
|
|
1232
|
-
m.hasOwnProperty(
|
|
1233
|
+
for (var u, l, c, h, m, y, d, p, g; !a.empty(); ) {
|
|
1234
|
+
u = a.pop(), l = u.value, h = u.cost, m = r[l] || {};
|
|
1235
|
+
for (c in m)
|
|
1236
|
+
m.hasOwnProperty(c) && (y = m[c], d = h + y, p = s[c], g = typeof s[c] > "u", (g || p > d) && (s[c] = d, a.push(c, d), i[c] = l));
|
|
1233
1237
|
}
|
|
1234
1238
|
if (typeof o < "u" && typeof s[o] > "u") {
|
|
1235
1239
|
var w = ["Could not find a path from ", n, " to ", o, "."].join("");
|
|
@@ -1286,13 +1290,13 @@ function nr() {
|
|
|
1286
1290
|
})(Ge)), Ge.exports;
|
|
1287
1291
|
}
|
|
1288
1292
|
var xt;
|
|
1289
|
-
function
|
|
1293
|
+
function or() {
|
|
1290
1294
|
return xt || (xt = 1, (function(e) {
|
|
1291
|
-
const t = ee(), r =
|
|
1292
|
-
function
|
|
1295
|
+
const t = ee(), r = Zn(), n = er(), o = tr(), i = nr(), s = sn(), a = Z(), u = rr();
|
|
1296
|
+
function l(w) {
|
|
1293
1297
|
return unescape(encodeURIComponent(w)).length;
|
|
1294
1298
|
}
|
|
1295
|
-
function
|
|
1299
|
+
function c(w, P, E) {
|
|
1296
1300
|
const R = [];
|
|
1297
1301
|
let _;
|
|
1298
1302
|
for (; (_ = w.exec(E)) !== null; )
|
|
@@ -1305,9 +1309,9 @@ function rr() {
|
|
|
1305
1309
|
return R;
|
|
1306
1310
|
}
|
|
1307
1311
|
function h(w) {
|
|
1308
|
-
const P =
|
|
1312
|
+
const P = c(s.NUMERIC, t.NUMERIC, w), E = c(s.ALPHANUMERIC, t.ALPHANUMERIC, w);
|
|
1309
1313
|
let R, _;
|
|
1310
|
-
return a.isKanjiModeEnabled() ? (R =
|
|
1314
|
+
return a.isKanjiModeEnabled() ? (R = c(s.BYTE, t.BYTE, w), _ = c(s.KANJI, t.KANJI, w)) : (R = c(s.BYTE_KANJI, t.BYTE, w), _ = []), P.concat(E, R, _).sort(function(S, A) {
|
|
1311
1315
|
return S.index - A.index;
|
|
1312
1316
|
}).map(function(S) {
|
|
1313
1317
|
return {
|
|
@@ -1356,12 +1360,12 @@ function rr() {
|
|
|
1356
1360
|
case t.KANJI:
|
|
1357
1361
|
P.push([
|
|
1358
1362
|
R,
|
|
1359
|
-
{ data: R.data, mode: t.BYTE, length:
|
|
1363
|
+
{ data: R.data, mode: t.BYTE, length: l(R.data) }
|
|
1360
1364
|
]);
|
|
1361
1365
|
break;
|
|
1362
1366
|
case t.BYTE:
|
|
1363
1367
|
P.push([
|
|
1364
|
-
{ data: R.data, mode: t.BYTE, length:
|
|
1368
|
+
{ data: R.data, mode: t.BYTE, length: l(R.data) }
|
|
1365
1369
|
]);
|
|
1366
1370
|
}
|
|
1367
1371
|
}
|
|
@@ -1420,10 +1424,10 @@ function rr() {
|
|
|
1420
1424
|
})(Ve)), Ve;
|
|
1421
1425
|
}
|
|
1422
1426
|
var Ft;
|
|
1423
|
-
function
|
|
1427
|
+
function ir() {
|
|
1424
1428
|
if (Ft) return Ie;
|
|
1425
1429
|
Ft = 1;
|
|
1426
|
-
const e = Z(), t = at(), r =
|
|
1430
|
+
const e = Z(), t = at(), r = zn(), n = Vn(), o = $n(), i = Jn(), s = Kn(), a = rn(), u = Qn(), l = Yn(), c = Xn(), h = ee(), m = or();
|
|
1427
1431
|
function y(b, S) {
|
|
1428
1432
|
const A = b.size, C = i.getPositions(S);
|
|
1429
1433
|
for (let L = 0; L < C.length; L++) {
|
|
@@ -1451,13 +1455,13 @@ function or() {
|
|
|
1451
1455
|
}
|
|
1452
1456
|
}
|
|
1453
1457
|
function g(b, S) {
|
|
1454
|
-
const A = b.size, C =
|
|
1458
|
+
const A = b.size, C = l.getEncodedBits(S);
|
|
1455
1459
|
let L, B, N;
|
|
1456
1460
|
for (let T = 0; T < 18; T++)
|
|
1457
1461
|
L = Math.floor(T / 3), B = T % 3 + A - 8 - 3, N = (C >> T & 1) === 1, b.set(L, B, N, !0), b.set(B, L, N, !0);
|
|
1458
1462
|
}
|
|
1459
1463
|
function w(b, S, A) {
|
|
1460
|
-
const C = b.size, L =
|
|
1464
|
+
const C = b.size, L = c.getEncodedBits(S, A);
|
|
1461
1465
|
let B, N;
|
|
1462
1466
|
for (B = 0; B < 15; B++)
|
|
1463
1467
|
N = (L >> B & 1) === 1, B < 6 ? b.set(B, 8, N, !0) : B < 8 ? b.set(B + 1, 8, N, !0) : b.set(C - 15 + B, 8, N, !0), B < 8 ? b.set(8, C - B - 1, N, !0) : B < 9 ? b.set(8, 15 - B - 1 + 1, N, !0) : b.set(8, 15 - B - 1, N, !0);
|
|
@@ -1520,12 +1524,12 @@ function or() {
|
|
|
1520
1524
|
let q = S;
|
|
1521
1525
|
if (!q) {
|
|
1522
1526
|
const U = m.rawSplit(b);
|
|
1523
|
-
q =
|
|
1527
|
+
q = l.getBestVersionForData(U, A);
|
|
1524
1528
|
}
|
|
1525
1529
|
L = m.fromString(b, q || 40);
|
|
1526
1530
|
} else
|
|
1527
1531
|
throw new Error("Invalid data");
|
|
1528
|
-
const B =
|
|
1532
|
+
const B = l.getBestVersionForData(L, A);
|
|
1529
1533
|
if (!B)
|
|
1530
1534
|
throw new Error("The amount of data is too big to be stored in a QR Code");
|
|
1531
1535
|
if (!S)
|
|
@@ -1553,7 +1557,7 @@ Minimum version required to store current data is: ` + B + `.
|
|
|
1553
1557
|
if (typeof S > "u" || S === "")
|
|
1554
1558
|
throw new Error("No input text");
|
|
1555
1559
|
let C = t.M, L, B;
|
|
1556
|
-
return typeof A < "u" && (C = t.from(A.errorCorrectionLevel, t.M), L =
|
|
1560
|
+
return typeof A < "u" && (C = t.from(A.errorCorrectionLevel, t.M), L = l.from(A.version), B = s.from(A.maskPattern), A.toSJISFunc && e.setToSJISFunction(A.toSJISFunc)), _(S, L, C, B);
|
|
1557
1561
|
}, Ie;
|
|
1558
1562
|
}
|
|
1559
1563
|
var Qe = {}, Ye = {}, Mt;
|
|
@@ -1597,12 +1601,12 @@ function an() {
|
|
|
1597
1601
|
const i = e.getScale(n, o);
|
|
1598
1602
|
return Math.floor((n + o.margin * 2) * i);
|
|
1599
1603
|
}, e.qrToImageData = function(n, o, i) {
|
|
1600
|
-
const s = o.modules.size, a = o.modules.data, u = e.getScale(s, i),
|
|
1601
|
-
for (let m = 0; m <
|
|
1602
|
-
for (let y = 0; y <
|
|
1603
|
-
let d = (m *
|
|
1604
|
-
if (m >=
|
|
1605
|
-
const g = Math.floor((m -
|
|
1604
|
+
const s = o.modules.size, a = o.modules.data, u = e.getScale(s, i), l = Math.floor((s + i.margin * 2) * u), c = i.margin * u, h = [i.color.light, i.color.dark];
|
|
1605
|
+
for (let m = 0; m < l; m++)
|
|
1606
|
+
for (let y = 0; y < l; y++) {
|
|
1607
|
+
let d = (m * l + y) * 4, p = i.color.light;
|
|
1608
|
+
if (m >= c && y >= c && m < l - c && y < l - c) {
|
|
1609
|
+
const g = Math.floor((m - c) / u), w = Math.floor((y - c) / u);
|
|
1606
1610
|
p = h[a[g * s + w] ? 1 : 0];
|
|
1607
1611
|
}
|
|
1608
1612
|
n[d++] = p.r, n[d++] = p.g, n[d++] = p.b, n[d] = p.a;
|
|
@@ -1611,7 +1615,7 @@ function an() {
|
|
|
1611
1615
|
})(Ye)), Ye;
|
|
1612
1616
|
}
|
|
1613
1617
|
var kt;
|
|
1614
|
-
function
|
|
1618
|
+
function sr() {
|
|
1615
1619
|
return kt || (kt = 1, (function(e) {
|
|
1616
1620
|
const t = an();
|
|
1617
1621
|
function r(o, i, s) {
|
|
@@ -1625,20 +1629,20 @@ function ir() {
|
|
|
1625
1629
|
}
|
|
1626
1630
|
}
|
|
1627
1631
|
e.render = function(i, s, a) {
|
|
1628
|
-
let u = a,
|
|
1629
|
-
typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), s || (
|
|
1630
|
-
const
|
|
1631
|
-
return t.qrToImageData(m.data, i, u), r(h,
|
|
1632
|
+
let u = a, l = s;
|
|
1633
|
+
typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), s || (l = n()), u = t.getOptions(u);
|
|
1634
|
+
const c = t.getImageWidth(i.modules.size, u), h = l.getContext("2d"), m = h.createImageData(c, c);
|
|
1635
|
+
return t.qrToImageData(m.data, i, u), r(h, l, c), h.putImageData(m, 0, 0), l;
|
|
1632
1636
|
}, e.renderToDataURL = function(i, s, a) {
|
|
1633
1637
|
let u = a;
|
|
1634
1638
|
typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), u || (u = {});
|
|
1635
|
-
const
|
|
1636
|
-
return
|
|
1639
|
+
const l = e.render(i, s, u), c = u.type || "image/png", h = u.rendererOpts || {};
|
|
1640
|
+
return l.toDataURL(c, h.quality);
|
|
1637
1641
|
};
|
|
1638
1642
|
})(Qe)), Qe;
|
|
1639
1643
|
}
|
|
1640
1644
|
var Xe = {}, Dt;
|
|
1641
|
-
function
|
|
1645
|
+
function ar() {
|
|
1642
1646
|
if (Dt) return Xe;
|
|
1643
1647
|
Dt = 1;
|
|
1644
1648
|
const e = an();
|
|
@@ -1651,32 +1655,32 @@ function sr() {
|
|
|
1651
1655
|
return typeof s < "u" && (a += " " + s), a;
|
|
1652
1656
|
}
|
|
1653
1657
|
function n(o, i, s) {
|
|
1654
|
-
let a = "", u = 0,
|
|
1658
|
+
let a = "", u = 0, l = !1, c = 0;
|
|
1655
1659
|
for (let h = 0; h < o.length; h++) {
|
|
1656
1660
|
const m = Math.floor(h % i), y = Math.floor(h / i);
|
|
1657
|
-
!m && !
|
|
1661
|
+
!m && !l && (l = !0), o[h] ? (c++, h > 0 && m > 0 && o[h - 1] || (a += l ? r("M", m + s, 0.5 + y + s) : r("m", u, 0), u = 0, l = !1), m + 1 < i && o[h + 1] || (a += r("h", c), c = 0)) : u++;
|
|
1658
1662
|
}
|
|
1659
1663
|
return a;
|
|
1660
1664
|
}
|
|
1661
1665
|
return Xe.render = function(i, s, a) {
|
|
1662
|
-
const u = e.getOptions(s),
|
|
1666
|
+
const u = e.getOptions(s), l = i.modules.size, c = i.modules.data, h = l + u.margin * 2, m = u.color.light.a ? "<path " + t(u.color.light, "fill") + ' d="M0 0h' + h + "v" + h + 'H0z"/>' : "", y = "<path " + t(u.color.dark, "stroke") + ' d="' + n(c, l, u.margin) + '"/>', d = 'viewBox="0 0 ' + h + " " + h + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (u.width ? 'width="' + u.width + '" height="' + u.width + '" ' : "") + d + ' shape-rendering="crispEdges">' + m + y + `</svg>
|
|
1663
1667
|
`;
|
|
1664
1668
|
return typeof a == "function" && a(null, g), g;
|
|
1665
1669
|
}, Xe;
|
|
1666
1670
|
}
|
|
1667
1671
|
var qt;
|
|
1668
|
-
function
|
|
1672
|
+
function ur() {
|
|
1669
1673
|
if (qt) return oe;
|
|
1670
1674
|
qt = 1;
|
|
1671
|
-
const e =
|
|
1672
|
-
function o(i, s, a, u,
|
|
1673
|
-
const
|
|
1675
|
+
const e = Hn(), t = ir(), r = sr(), n = ar();
|
|
1676
|
+
function o(i, s, a, u, l) {
|
|
1677
|
+
const c = [].slice.call(arguments, 1), h = c.length, m = typeof c[h - 1] == "function";
|
|
1674
1678
|
if (!m && !e())
|
|
1675
1679
|
throw new Error("Callback required as last argument");
|
|
1676
1680
|
if (m) {
|
|
1677
1681
|
if (h < 2)
|
|
1678
1682
|
throw new Error("Too few arguments provided");
|
|
1679
|
-
h === 2 ? (
|
|
1683
|
+
h === 2 ? (l = a, a = s, s = u = void 0) : h === 3 && (s.getContext && typeof l > "u" ? (l = u, u = void 0) : (l = u, u = a, a = s, s = void 0));
|
|
1680
1684
|
} else {
|
|
1681
1685
|
if (h < 1)
|
|
1682
1686
|
throw new Error("Too few arguments provided");
|
|
@@ -1691,39 +1695,39 @@ function ar() {
|
|
|
1691
1695
|
}
|
|
1692
1696
|
try {
|
|
1693
1697
|
const y = t.create(a, u);
|
|
1694
|
-
|
|
1698
|
+
l(null, i(y, s, u));
|
|
1695
1699
|
} catch (y) {
|
|
1696
|
-
|
|
1700
|
+
l(y);
|
|
1697
1701
|
}
|
|
1698
1702
|
}
|
|
1699
1703
|
return oe.create = t.create, oe.toCanvas = o.bind(null, r.render), oe.toDataURL = o.bind(null, r.renderToDataURL), oe.toString = o.bind(null, function(i, s, a) {
|
|
1700
1704
|
return n.render(i, a);
|
|
1701
1705
|
}), oe;
|
|
1702
1706
|
}
|
|
1703
|
-
var
|
|
1707
|
+
var lr = ur();
|
|
1704
1708
|
function un(e, t) {
|
|
1705
1709
|
return function() {
|
|
1706
1710
|
return e.apply(t, arguments);
|
|
1707
1711
|
};
|
|
1708
1712
|
}
|
|
1709
|
-
const { toString: cr } = Object.prototype, { getPrototypeOf: ut } = Object, { iterator: Te, toStringTag:
|
|
1713
|
+
const { toString: cr } = Object.prototype, { getPrototypeOf: ut } = Object, { iterator: Te, toStringTag: ln } = Symbol, Ae = /* @__PURE__ */ ((e) => (t) => {
|
|
1710
1714
|
const r = cr.call(t);
|
|
1711
1715
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
1712
1716
|
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => Ae(t) === e), Be = (e) => (t) => typeof t === e, { isArray: se } = Array, ie = Be("undefined");
|
|
1713
1717
|
function de(e) {
|
|
1714
1718
|
return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && M(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1715
1719
|
}
|
|
1716
|
-
const
|
|
1717
|
-
function
|
|
1720
|
+
const cn = H("ArrayBuffer");
|
|
1721
|
+
function fr(e) {
|
|
1718
1722
|
let t;
|
|
1719
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
1723
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && cn(e.buffer), t;
|
|
1720
1724
|
}
|
|
1721
|
-
const
|
|
1725
|
+
const dr = Be("string"), M = Be("function"), fn = Be("number"), he = (e) => e !== null && typeof e == "object", hr = (e) => e === !0 || e === !1, Ee = (e) => {
|
|
1722
1726
|
if (Ae(e) !== "object")
|
|
1723
1727
|
return !1;
|
|
1724
1728
|
const t = ut(e);
|
|
1725
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
1726
|
-
},
|
|
1729
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ln in e) && !(Te in e);
|
|
1730
|
+
}, pr = (e) => {
|
|
1727
1731
|
if (!he(e) || de(e))
|
|
1728
1732
|
return !1;
|
|
1729
1733
|
try {
|
|
@@ -1731,11 +1735,11 @@ const fr = Be("string"), M = Be("function"), fn = Be("number"), he = (e) => e !=
|
|
|
1731
1735
|
} catch {
|
|
1732
1736
|
return !1;
|
|
1733
1737
|
}
|
|
1734
|
-
},
|
|
1738
|
+
}, gr = H("Date"), mr = H("File"), yr = H("Blob"), wr = H("FileList"), br = (e) => he(e) && M(e.pipe), Er = (e) => {
|
|
1735
1739
|
let t;
|
|
1736
1740
|
return e && (typeof FormData == "function" && e instanceof FormData || M(e.append) && ((t = Ae(e)) === "formdata" || // detect form-data instance
|
|
1737
1741
|
t === "object" && M(e.toString) && e.toString() === "[object FormData]"));
|
|
1738
|
-
},
|
|
1742
|
+
}, Cr = H("URLSearchParams"), [Sr, Rr, Tr, Ar] = ["ReadableStream", "Request", "Response", "Headers"].map(H), Br = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1739
1743
|
function pe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
1740
1744
|
if (e === null || typeof e > "u")
|
|
1741
1745
|
return;
|
|
@@ -1773,13 +1777,13 @@ function rt() {
|
|
|
1773
1777
|
arguments[o] && pe(arguments[o], n);
|
|
1774
1778
|
return r;
|
|
1775
1779
|
}
|
|
1776
|
-
const
|
|
1780
|
+
const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
|
|
1777
1781
|
r && M(o) ? e[i] = un(o, r) : e[i] = o;
|
|
1778
|
-
}, { allOwnKeys: n }), e),
|
|
1782
|
+
}, { allOwnKeys: n }), e), Pr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Or = (e, t, r, n) => {
|
|
1779
1783
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1780
1784
|
value: t.prototype
|
|
1781
1785
|
}), r && Object.assign(e.prototype, r);
|
|
1782
|
-
},
|
|
1786
|
+
}, Lr = (e, t, r, n) => {
|
|
1783
1787
|
let o, i, s;
|
|
1784
1788
|
const a = {};
|
|
1785
1789
|
if (t = t || {}, e == null) return t;
|
|
@@ -1789,11 +1793,11 @@ const Br = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
|
|
|
1789
1793
|
e = r !== !1 && ut(e);
|
|
1790
1794
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
1791
1795
|
return t;
|
|
1792
|
-
},
|
|
1796
|
+
}, Ir = (e, t, r) => {
|
|
1793
1797
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
1794
1798
|
const n = e.indexOf(t, r);
|
|
1795
1799
|
return n !== -1 && n === r;
|
|
1796
|
-
},
|
|
1800
|
+
}, _r = (e) => {
|
|
1797
1801
|
if (!e) return null;
|
|
1798
1802
|
if (se(e)) return e;
|
|
1799
1803
|
let t = e.length;
|
|
@@ -1802,31 +1806,31 @@ const Br = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
|
|
|
1802
1806
|
for (; t-- > 0; )
|
|
1803
1807
|
r[t] = e[t];
|
|
1804
1808
|
return r;
|
|
1805
|
-
},
|
|
1809
|
+
}, vr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ut(Uint8Array)), Ur = (e, t) => {
|
|
1806
1810
|
const n = (e && e[Te]).call(e);
|
|
1807
1811
|
let o;
|
|
1808
1812
|
for (; (o = n.next()) && !o.done; ) {
|
|
1809
1813
|
const i = o.value;
|
|
1810
1814
|
t.call(e, i[0], i[1]);
|
|
1811
1815
|
}
|
|
1812
|
-
},
|
|
1816
|
+
}, xr = (e, t) => {
|
|
1813
1817
|
let r;
|
|
1814
1818
|
const n = [];
|
|
1815
1819
|
for (; (r = e.exec(t)) !== null; )
|
|
1816
1820
|
n.push(r);
|
|
1817
1821
|
return n;
|
|
1818
|
-
},
|
|
1822
|
+
}, Fr = H("HTMLFormElement"), Mr = (e) => e.toLowerCase().replace(
|
|
1819
1823
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
1820
1824
|
function(r, n, o) {
|
|
1821
1825
|
return n.toUpperCase() + o;
|
|
1822
1826
|
}
|
|
1823
|
-
), jt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype),
|
|
1827
|
+
), jt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), kr = H("RegExp"), pn = (e, t) => {
|
|
1824
1828
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
1825
1829
|
pe(r, (o, i) => {
|
|
1826
1830
|
let s;
|
|
1827
1831
|
(s = t(o, i, e)) !== !1 && (n[i] = s || o);
|
|
1828
1832
|
}), Object.defineProperties(e, n);
|
|
1829
|
-
},
|
|
1833
|
+
}, Dr = (e) => {
|
|
1830
1834
|
pn(e, (t, r) => {
|
|
1831
1835
|
if (M(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
1832
1836
|
return !1;
|
|
@@ -1841,19 +1845,19 @@ const Br = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
|
|
|
1841
1845
|
});
|
|
1842
1846
|
}
|
|
1843
1847
|
});
|
|
1844
|
-
},
|
|
1848
|
+
}, qr = (e, t) => {
|
|
1845
1849
|
const r = {}, n = (o) => {
|
|
1846
1850
|
o.forEach((i) => {
|
|
1847
1851
|
r[i] = !0;
|
|
1848
1852
|
});
|
|
1849
1853
|
};
|
|
1850
1854
|
return se(e) ? n(e) : n(String(e).split(t)), r;
|
|
1851
|
-
},
|
|
1852
|
-
},
|
|
1853
|
-
function
|
|
1854
|
-
return !!(e && M(e.append) && e[
|
|
1855
|
+
}, jr = () => {
|
|
1856
|
+
}, Hr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1857
|
+
function zr(e) {
|
|
1858
|
+
return !!(e && M(e.append) && e[ln] === "FormData" && e[Te]);
|
|
1855
1859
|
}
|
|
1856
|
-
const
|
|
1860
|
+
const Vr = (e) => {
|
|
1857
1861
|
const t = new Array(10), r = (n, o) => {
|
|
1858
1862
|
if (he(n)) {
|
|
1859
1863
|
if (t.indexOf(n) >= 0)
|
|
@@ -1872,72 +1876,72 @@ const zr = (e) => {
|
|
|
1872
1876
|
return n;
|
|
1873
1877
|
};
|
|
1874
1878
|
return r(e, 0);
|
|
1875
|
-
},
|
|
1879
|
+
}, $r = H("AsyncFunction"), Jr = (e) => e && (he(e) || M(e)) && M(e.then) && M(e.catch), gn = ((e, t) => e ? setImmediate : t ? ((r, n) => (Q.addEventListener("message", ({ source: o, data: i }) => {
|
|
1876
1880
|
o === Q && i === r && n.length && n.shift()();
|
|
1877
1881
|
}, !1), (o) => {
|
|
1878
1882
|
n.push(o), Q.postMessage(r, "*");
|
|
1879
1883
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
1880
1884
|
typeof setImmediate == "function",
|
|
1881
1885
|
M(Q.postMessage)
|
|
1882
|
-
),
|
|
1886
|
+
), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || gn, Wr = (e) => e != null && M(e[Te]), f = {
|
|
1883
1887
|
isArray: se,
|
|
1884
|
-
isArrayBuffer:
|
|
1888
|
+
isArrayBuffer: cn,
|
|
1885
1889
|
isBuffer: de,
|
|
1886
|
-
isFormData:
|
|
1887
|
-
isArrayBufferView:
|
|
1888
|
-
isString:
|
|
1890
|
+
isFormData: Er,
|
|
1891
|
+
isArrayBufferView: fr,
|
|
1892
|
+
isString: dr,
|
|
1889
1893
|
isNumber: fn,
|
|
1890
|
-
isBoolean:
|
|
1894
|
+
isBoolean: hr,
|
|
1891
1895
|
isObject: he,
|
|
1892
1896
|
isPlainObject: Ee,
|
|
1893
|
-
isEmptyObject:
|
|
1894
|
-
isReadableStream:
|
|
1895
|
-
isRequest:
|
|
1896
|
-
isResponse:
|
|
1897
|
-
isHeaders:
|
|
1897
|
+
isEmptyObject: pr,
|
|
1898
|
+
isReadableStream: Sr,
|
|
1899
|
+
isRequest: Rr,
|
|
1900
|
+
isResponse: Tr,
|
|
1901
|
+
isHeaders: Ar,
|
|
1898
1902
|
isUndefined: ie,
|
|
1899
|
-
isDate:
|
|
1900
|
-
isFile:
|
|
1901
|
-
isBlob:
|
|
1902
|
-
isRegExp:
|
|
1903
|
+
isDate: gr,
|
|
1904
|
+
isFile: mr,
|
|
1905
|
+
isBlob: yr,
|
|
1906
|
+
isRegExp: kr,
|
|
1903
1907
|
isFunction: M,
|
|
1904
|
-
isStream:
|
|
1905
|
-
isURLSearchParams:
|
|
1906
|
-
isTypedArray:
|
|
1907
|
-
isFileList:
|
|
1908
|
+
isStream: br,
|
|
1909
|
+
isURLSearchParams: Cr,
|
|
1910
|
+
isTypedArray: vr,
|
|
1911
|
+
isFileList: wr,
|
|
1908
1912
|
forEach: pe,
|
|
1909
1913
|
merge: rt,
|
|
1910
|
-
extend:
|
|
1911
|
-
trim:
|
|
1912
|
-
stripBOM:
|
|
1913
|
-
inherits:
|
|
1914
|
-
toFlatObject:
|
|
1914
|
+
extend: Nr,
|
|
1915
|
+
trim: Br,
|
|
1916
|
+
stripBOM: Pr,
|
|
1917
|
+
inherits: Or,
|
|
1918
|
+
toFlatObject: Lr,
|
|
1915
1919
|
kindOf: Ae,
|
|
1916
1920
|
kindOfTest: H,
|
|
1917
|
-
endsWith:
|
|
1918
|
-
toArray:
|
|
1919
|
-
forEachEntry:
|
|
1920
|
-
matchAll:
|
|
1921
|
-
isHTMLForm:
|
|
1921
|
+
endsWith: Ir,
|
|
1922
|
+
toArray: _r,
|
|
1923
|
+
forEachEntry: Ur,
|
|
1924
|
+
matchAll: xr,
|
|
1925
|
+
isHTMLForm: Fr,
|
|
1922
1926
|
hasOwnProperty: jt,
|
|
1923
1927
|
hasOwnProp: jt,
|
|
1924
1928
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1925
1929
|
reduceDescriptors: pn,
|
|
1926
|
-
freezeMethods:
|
|
1927
|
-
toObjectSet:
|
|
1928
|
-
toCamelCase:
|
|
1929
|
-
noop:
|
|
1930
|
-
toFiniteNumber:
|
|
1930
|
+
freezeMethods: Dr,
|
|
1931
|
+
toObjectSet: qr,
|
|
1932
|
+
toCamelCase: Mr,
|
|
1933
|
+
noop: jr,
|
|
1934
|
+
toFiniteNumber: Hr,
|
|
1931
1935
|
findKey: dn,
|
|
1932
1936
|
global: Q,
|
|
1933
1937
|
isContextDefined: hn,
|
|
1934
|
-
isSpecCompliantForm:
|
|
1935
|
-
toJSONObject:
|
|
1936
|
-
isAsyncFn:
|
|
1937
|
-
isThenable:
|
|
1938
|
+
isSpecCompliantForm: zr,
|
|
1939
|
+
toJSONObject: Vr,
|
|
1940
|
+
isAsyncFn: $r,
|
|
1941
|
+
isThenable: Jr,
|
|
1938
1942
|
setImmediate: gn,
|
|
1939
|
-
asap:
|
|
1940
|
-
isIterable:
|
|
1943
|
+
asap: Kr,
|
|
1944
|
+
isIterable: Wr
|
|
1941
1945
|
};
|
|
1942
1946
|
function I(e, t, r, n, o) {
|
|
1943
1947
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -1985,13 +1989,13 @@ Object.defineProperties(I, yn);
|
|
|
1985
1989
|
Object.defineProperty(mn, "isAxiosError", { value: !0 });
|
|
1986
1990
|
I.from = (e, t, r, n, o, i) => {
|
|
1987
1991
|
const s = Object.create(mn);
|
|
1988
|
-
f.toFlatObject(e, s, function(
|
|
1989
|
-
return
|
|
1990
|
-
}, (
|
|
1992
|
+
f.toFlatObject(e, s, function(c) {
|
|
1993
|
+
return c !== Error.prototype;
|
|
1994
|
+
}, (l) => l !== "isAxiosError");
|
|
1991
1995
|
const a = e && e.message ? e.message : "Error", u = t == null && e ? e.code : t;
|
|
1992
1996
|
return I.call(s, a, u, r, n, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", i && Object.assign(s, i), s;
|
|
1993
1997
|
};
|
|
1994
|
-
const
|
|
1998
|
+
const Gr = null;
|
|
1995
1999
|
function ot(e) {
|
|
1996
2000
|
return f.isPlainObject(e) || f.isArray(e);
|
|
1997
2001
|
}
|
|
@@ -2003,10 +2007,10 @@ function Ht(e, t, r) {
|
|
|
2003
2007
|
return o = wn(o), !r && i ? "[" + o + "]" : o;
|
|
2004
2008
|
}).join(r ? "." : "") : t;
|
|
2005
2009
|
}
|
|
2006
|
-
function
|
|
2010
|
+
function Qr(e) {
|
|
2007
2011
|
return f.isArray(e) && !e.some(ot);
|
|
2008
2012
|
}
|
|
2009
|
-
const
|
|
2013
|
+
const Yr = f.toFlatObject(f, {}, null, function(t) {
|
|
2010
2014
|
return /^is[A-Z]/.test(t);
|
|
2011
2015
|
});
|
|
2012
2016
|
function Ne(e, t, r) {
|
|
@@ -2019,10 +2023,10 @@ function Ne(e, t, r) {
|
|
|
2019
2023
|
}, !1, function(p, g) {
|
|
2020
2024
|
return !f.isUndefined(g[p]);
|
|
2021
2025
|
});
|
|
2022
|
-
const n = r.metaTokens, o = r.visitor ||
|
|
2026
|
+
const n = r.metaTokens, o = r.visitor || c, i = r.dots, s = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
|
|
2023
2027
|
if (!f.isFunction(o))
|
|
2024
2028
|
throw new TypeError("visitor must be a function");
|
|
2025
|
-
function
|
|
2029
|
+
function l(d) {
|
|
2026
2030
|
if (d === null) return "";
|
|
2027
2031
|
if (f.isDate(d))
|
|
2028
2032
|
return d.toISOString();
|
|
@@ -2032,25 +2036,25 @@ function Ne(e, t, r) {
|
|
|
2032
2036
|
throw new I("Blob is not supported. Use a Buffer instead.");
|
|
2033
2037
|
return f.isArrayBuffer(d) || f.isTypedArray(d) ? u && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
|
|
2034
2038
|
}
|
|
2035
|
-
function
|
|
2039
|
+
function c(d, p, g) {
|
|
2036
2040
|
let w = d;
|
|
2037
2041
|
if (d && !g && typeof d == "object") {
|
|
2038
2042
|
if (f.endsWith(p, "{}"))
|
|
2039
2043
|
p = n ? p : p.slice(0, -2), d = JSON.stringify(d);
|
|
2040
|
-
else if (f.isArray(d) &&
|
|
2044
|
+
else if (f.isArray(d) && Qr(d) || (f.isFileList(d) || f.endsWith(p, "[]")) && (w = f.toArray(d)))
|
|
2041
2045
|
return p = wn(p), w.forEach(function(E, R) {
|
|
2042
2046
|
!(f.isUndefined(E) || E === null) && t.append(
|
|
2043
2047
|
// eslint-disable-next-line no-nested-ternary
|
|
2044
2048
|
s === !0 ? Ht([p], R, i) : s === null ? p : p + "[]",
|
|
2045
|
-
|
|
2049
|
+
l(E)
|
|
2046
2050
|
);
|
|
2047
2051
|
}), !1;
|
|
2048
2052
|
}
|
|
2049
|
-
return ot(d) ? !0 : (t.append(Ht(g, p, i),
|
|
2053
|
+
return ot(d) ? !0 : (t.append(Ht(g, p, i), l(d)), !1);
|
|
2050
2054
|
}
|
|
2051
|
-
const h = [], m = Object.assign(
|
|
2052
|
-
defaultVisitor:
|
|
2053
|
-
convertValue:
|
|
2055
|
+
const h = [], m = Object.assign(Yr, {
|
|
2056
|
+
defaultVisitor: c,
|
|
2057
|
+
convertValue: l,
|
|
2054
2058
|
isVisitable: ot
|
|
2055
2059
|
});
|
|
2056
2060
|
function y(d, p) {
|
|
@@ -2086,10 +2090,10 @@ function zt(e) {
|
|
|
2086
2090
|
return t[n];
|
|
2087
2091
|
});
|
|
2088
2092
|
}
|
|
2089
|
-
function
|
|
2093
|
+
function lt(e, t) {
|
|
2090
2094
|
this._pairs = [], e && Ne(e, this, t);
|
|
2091
2095
|
}
|
|
2092
|
-
const bn =
|
|
2096
|
+
const bn = lt.prototype;
|
|
2093
2097
|
bn.append = function(t, r) {
|
|
2094
2098
|
this._pairs.push([t, r]);
|
|
2095
2099
|
};
|
|
@@ -2101,19 +2105,19 @@ bn.toString = function(t) {
|
|
|
2101
2105
|
return r(o[0]) + "=" + r(o[1]);
|
|
2102
2106
|
}, "").join("&");
|
|
2103
2107
|
};
|
|
2104
|
-
function
|
|
2108
|
+
function Xr(e) {
|
|
2105
2109
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
2106
2110
|
}
|
|
2107
2111
|
function En(e, t, r) {
|
|
2108
2112
|
if (!t)
|
|
2109
2113
|
return e;
|
|
2110
|
-
const n = r && r.encode ||
|
|
2114
|
+
const n = r && r.encode || Xr;
|
|
2111
2115
|
f.isFunction(r) && (r = {
|
|
2112
2116
|
serialize: r
|
|
2113
2117
|
});
|
|
2114
2118
|
const o = r && r.serialize;
|
|
2115
2119
|
let i;
|
|
2116
|
-
if (o ? i = o(t, r) : i = f.isURLSearchParams(t) ? t.toString() : new
|
|
2120
|
+
if (o ? i = o(t, r) : i = f.isURLSearchParams(t) ? t.toString() : new lt(t, r).toString(n), i) {
|
|
2117
2121
|
const s = e.indexOf("#");
|
|
2118
2122
|
s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
2119
2123
|
}
|
|
@@ -2177,27 +2181,27 @@ const Cn = {
|
|
|
2177
2181
|
silentJSONParsing: !0,
|
|
2178
2182
|
forcedJSONParsing: !0,
|
|
2179
2183
|
clarifyTimeoutError: !1
|
|
2180
|
-
},
|
|
2184
|
+
}, Zr = typeof URLSearchParams < "u" ? URLSearchParams : lt, eo = typeof FormData < "u" ? FormData : null, to = typeof Blob < "u" ? Blob : null, no = {
|
|
2181
2185
|
isBrowser: !0,
|
|
2182
2186
|
classes: {
|
|
2183
|
-
URLSearchParams:
|
|
2184
|
-
FormData:
|
|
2185
|
-
Blob:
|
|
2187
|
+
URLSearchParams: Zr,
|
|
2188
|
+
FormData: eo,
|
|
2189
|
+
Blob: to
|
|
2186
2190
|
},
|
|
2187
2191
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2188
|
-
},
|
|
2189
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
2192
|
+
}, ct = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, ro = ct && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), oo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2193
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", io = ct && window.location.href || "http://localhost", so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2190
2194
|
__proto__: null,
|
|
2191
|
-
hasBrowserEnv:
|
|
2192
|
-
hasStandardBrowserEnv:
|
|
2193
|
-
hasStandardBrowserWebWorkerEnv:
|
|
2195
|
+
hasBrowserEnv: ct,
|
|
2196
|
+
hasStandardBrowserEnv: ro,
|
|
2197
|
+
hasStandardBrowserWebWorkerEnv: oo,
|
|
2194
2198
|
navigator: it,
|
|
2195
|
-
origin:
|
|
2199
|
+
origin: io
|
|
2196
2200
|
}, Symbol.toStringTag, { value: "Module" })), F = {
|
|
2197
|
-
...
|
|
2198
|
-
...
|
|
2201
|
+
...so,
|
|
2202
|
+
...no
|
|
2199
2203
|
};
|
|
2200
|
-
function
|
|
2204
|
+
function ao(e, t) {
|
|
2201
2205
|
return Ne(e, new F.classes.URLSearchParams(), {
|
|
2202
2206
|
visitor: function(r, n, o, i) {
|
|
2203
2207
|
return F.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
@@ -2205,10 +2209,10 @@ function so(e, t) {
|
|
|
2205
2209
|
...t
|
|
2206
2210
|
});
|
|
2207
2211
|
}
|
|
2208
|
-
function
|
|
2212
|
+
function uo(e) {
|
|
2209
2213
|
return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2210
2214
|
}
|
|
2211
|
-
function
|
|
2215
|
+
function lo(e) {
|
|
2212
2216
|
const t = {}, r = Object.keys(e);
|
|
2213
2217
|
let n;
|
|
2214
2218
|
const o = r.length;
|
|
@@ -2222,12 +2226,12 @@ function Sn(e) {
|
|
|
2222
2226
|
let s = r[i++];
|
|
2223
2227
|
if (s === "__proto__") return !0;
|
|
2224
2228
|
const a = Number.isFinite(+s), u = i >= r.length;
|
|
2225
|
-
return s = !s && f.isArray(o) ? o.length : s, u ? (f.hasOwnProp(o, s) ? o[s] = [o[s], n] : o[s] = n, !a) : ((!o[s] || !f.isObject(o[s])) && (o[s] = []), t(r, n, o[s], i) && f.isArray(o[s]) && (o[s] =
|
|
2229
|
+
return s = !s && f.isArray(o) ? o.length : s, u ? (f.hasOwnProp(o, s) ? o[s] = [o[s], n] : o[s] = n, !a) : ((!o[s] || !f.isObject(o[s])) && (o[s] = []), t(r, n, o[s], i) && f.isArray(o[s]) && (o[s] = lo(o[s])), !a);
|
|
2226
2230
|
}
|
|
2227
2231
|
if (f.isFormData(e) && f.isFunction(e.entries)) {
|
|
2228
2232
|
const r = {};
|
|
2229
2233
|
return f.forEachEntry(e, (n, o) => {
|
|
2230
|
-
t(
|
|
2234
|
+
t(uo(n), o, r, 0);
|
|
2231
2235
|
}), r;
|
|
2232
2236
|
}
|
|
2233
2237
|
return null;
|
|
@@ -2258,7 +2262,7 @@ const ge = {
|
|
|
2258
2262
|
let a;
|
|
2259
2263
|
if (i) {
|
|
2260
2264
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2261
|
-
return
|
|
2265
|
+
return ao(t, this.formSerializer).toString();
|
|
2262
2266
|
if ((a = f.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
2263
2267
|
const u = this.env && this.env.FormData;
|
|
2264
2268
|
return Ne(
|
|
@@ -2311,7 +2315,7 @@ const ge = {
|
|
|
2311
2315
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2312
2316
|
ge.headers[e] = {};
|
|
2313
2317
|
});
|
|
2314
|
-
const
|
|
2318
|
+
const fo = f.toObjectSet([
|
|
2315
2319
|
"age",
|
|
2316
2320
|
"authorization",
|
|
2317
2321
|
"content-length",
|
|
@@ -2329,28 +2333,28 @@ const lo = f.toObjectSet([
|
|
|
2329
2333
|
"referer",
|
|
2330
2334
|
"retry-after",
|
|
2331
2335
|
"user-agent"
|
|
2332
|
-
]),
|
|
2336
|
+
]), ho = (e) => {
|
|
2333
2337
|
const t = {};
|
|
2334
2338
|
let r, n, o;
|
|
2335
2339
|
return e && e.split(`
|
|
2336
2340
|
`).forEach(function(s) {
|
|
2337
|
-
o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || t[r] &&
|
|
2341
|
+
o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || t[r] && fo[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
2338
2342
|
}), t;
|
|
2339
2343
|
}, $t = Symbol("internals");
|
|
2340
|
-
function
|
|
2344
|
+
function ce(e) {
|
|
2341
2345
|
return e && String(e).trim().toLowerCase();
|
|
2342
2346
|
}
|
|
2343
2347
|
function Ce(e) {
|
|
2344
2348
|
return e === !1 || e == null ? e : f.isArray(e) ? e.map(Ce) : String(e);
|
|
2345
2349
|
}
|
|
2346
|
-
function
|
|
2350
|
+
function po(e) {
|
|
2347
2351
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
2348
2352
|
let n;
|
|
2349
2353
|
for (; n = r.exec(e); )
|
|
2350
2354
|
t[n[1]] = n[2];
|
|
2351
2355
|
return t;
|
|
2352
2356
|
}
|
|
2353
|
-
const
|
|
2357
|
+
const go = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2354
2358
|
function Ze(e, t, r, n, o) {
|
|
2355
2359
|
if (f.isFunction(n))
|
|
2356
2360
|
return n.call(this, t, r);
|
|
@@ -2361,10 +2365,10 @@ function Ze(e, t, r, n, o) {
|
|
|
2361
2365
|
return n.test(t);
|
|
2362
2366
|
}
|
|
2363
2367
|
}
|
|
2364
|
-
function
|
|
2368
|
+
function mo(e) {
|
|
2365
2369
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
2366
2370
|
}
|
|
2367
|
-
function
|
|
2371
|
+
function yo(e, t) {
|
|
2368
2372
|
const r = f.toCamelCase(" " + t);
|
|
2369
2373
|
["get", "set", "has"].forEach((n) => {
|
|
2370
2374
|
Object.defineProperty(e, n + r, {
|
|
@@ -2381,24 +2385,24 @@ let k = class {
|
|
|
2381
2385
|
}
|
|
2382
2386
|
set(t, r, n) {
|
|
2383
2387
|
const o = this;
|
|
2384
|
-
function i(a, u,
|
|
2385
|
-
const
|
|
2386
|
-
if (!
|
|
2388
|
+
function i(a, u, l) {
|
|
2389
|
+
const c = ce(u);
|
|
2390
|
+
if (!c)
|
|
2387
2391
|
throw new Error("header name must be a non-empty string");
|
|
2388
|
-
const h = f.findKey(o,
|
|
2389
|
-
(!h || o[h] === void 0 ||
|
|
2392
|
+
const h = f.findKey(o, c);
|
|
2393
|
+
(!h || o[h] === void 0 || l === !0 || l === void 0 && o[h] !== !1) && (o[h || u] = Ce(a));
|
|
2390
2394
|
}
|
|
2391
|
-
const s = (a, u) => f.forEach(a, (
|
|
2395
|
+
const s = (a, u) => f.forEach(a, (l, c) => i(l, c, u));
|
|
2392
2396
|
if (f.isPlainObject(t) || t instanceof this.constructor)
|
|
2393
2397
|
s(t, r);
|
|
2394
|
-
else if (f.isString(t) && (t = t.trim()) && !
|
|
2395
|
-
s(
|
|
2398
|
+
else if (f.isString(t) && (t = t.trim()) && !go(t))
|
|
2399
|
+
s(ho(t), r);
|
|
2396
2400
|
else if (f.isObject(t) && f.isIterable(t)) {
|
|
2397
|
-
let a = {}, u,
|
|
2398
|
-
for (const
|
|
2399
|
-
if (!f.isArray(
|
|
2401
|
+
let a = {}, u, l;
|
|
2402
|
+
for (const c of t) {
|
|
2403
|
+
if (!f.isArray(c))
|
|
2400
2404
|
throw TypeError("Object iterator must return a key-value pair");
|
|
2401
|
-
a[
|
|
2405
|
+
a[l = c[0]] = (u = a[l]) ? f.isArray(u) ? [...u, c[1]] : [u, c[1]] : c[1];
|
|
2402
2406
|
}
|
|
2403
2407
|
s(a, r);
|
|
2404
2408
|
} else
|
|
@@ -2406,14 +2410,14 @@ let k = class {
|
|
|
2406
2410
|
return this;
|
|
2407
2411
|
}
|
|
2408
2412
|
get(t, r) {
|
|
2409
|
-
if (t =
|
|
2413
|
+
if (t = ce(t), t) {
|
|
2410
2414
|
const n = f.findKey(this, t);
|
|
2411
2415
|
if (n) {
|
|
2412
2416
|
const o = this[n];
|
|
2413
2417
|
if (!r)
|
|
2414
2418
|
return o;
|
|
2415
2419
|
if (r === !0)
|
|
2416
|
-
return
|
|
2420
|
+
return po(o);
|
|
2417
2421
|
if (f.isFunction(r))
|
|
2418
2422
|
return r.call(this, o, n);
|
|
2419
2423
|
if (f.isRegExp(r))
|
|
@@ -2423,7 +2427,7 @@ let k = class {
|
|
|
2423
2427
|
}
|
|
2424
2428
|
}
|
|
2425
2429
|
has(t, r) {
|
|
2426
|
-
if (t =
|
|
2430
|
+
if (t = ce(t), t) {
|
|
2427
2431
|
const n = f.findKey(this, t);
|
|
2428
2432
|
return !!(n && this[n] !== void 0 && (!r || Ze(this, this[n], n, r)));
|
|
2429
2433
|
}
|
|
@@ -2433,7 +2437,7 @@ let k = class {
|
|
|
2433
2437
|
const n = this;
|
|
2434
2438
|
let o = !1;
|
|
2435
2439
|
function i(s) {
|
|
2436
|
-
if (s =
|
|
2440
|
+
if (s = ce(s), s) {
|
|
2437
2441
|
const a = f.findKey(n, s);
|
|
2438
2442
|
a && (!r || Ze(n, n[a], a, r)) && (delete n[a], o = !0);
|
|
2439
2443
|
}
|
|
@@ -2457,7 +2461,7 @@ let k = class {
|
|
|
2457
2461
|
r[s] = Ce(o), delete r[i];
|
|
2458
2462
|
return;
|
|
2459
2463
|
}
|
|
2460
|
-
const a = t ?
|
|
2464
|
+
const a = t ? mo(i) : String(i).trim();
|
|
2461
2465
|
a !== i && delete r[i], r[a] = Ce(o), n[a] = !0;
|
|
2462
2466
|
}), this;
|
|
2463
2467
|
}
|
|
@@ -2495,8 +2499,8 @@ let k = class {
|
|
|
2495
2499
|
accessors: {}
|
|
2496
2500
|
}).accessors, o = this.prototype;
|
|
2497
2501
|
function i(s) {
|
|
2498
|
-
const a =
|
|
2499
|
-
n[a] || (
|
|
2502
|
+
const a = ce(s);
|
|
2503
|
+
n[a] || (yo(o, s), n[a] = !0);
|
|
2500
2504
|
}
|
|
2501
2505
|
return f.isArray(t) ? t.forEach(i) : i(t), this;
|
|
2502
2506
|
}
|
|
@@ -2538,51 +2542,51 @@ function Tn(e, t, r) {
|
|
|
2538
2542
|
r
|
|
2539
2543
|
));
|
|
2540
2544
|
}
|
|
2541
|
-
function
|
|
2545
|
+
function wo(e) {
|
|
2542
2546
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
2543
2547
|
return t && t[1] || "";
|
|
2544
2548
|
}
|
|
2545
|
-
function
|
|
2549
|
+
function bo(e, t) {
|
|
2546
2550
|
e = e || 10;
|
|
2547
2551
|
const r = new Array(e), n = new Array(e);
|
|
2548
2552
|
let o = 0, i = 0, s;
|
|
2549
2553
|
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
2550
|
-
const
|
|
2551
|
-
s || (s =
|
|
2554
|
+
const l = Date.now(), c = n[i];
|
|
2555
|
+
s || (s = l), r[o] = u, n[o] = l;
|
|
2552
2556
|
let h = i, m = 0;
|
|
2553
2557
|
for (; h !== o; )
|
|
2554
2558
|
m += r[h++], h = h % e;
|
|
2555
|
-
if (o = (o + 1) % e, o === i && (i = (i + 1) % e),
|
|
2559
|
+
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), l - s < t)
|
|
2556
2560
|
return;
|
|
2557
|
-
const y =
|
|
2561
|
+
const y = c && l - c;
|
|
2558
2562
|
return y ? Math.round(m * 1e3 / y) : void 0;
|
|
2559
2563
|
};
|
|
2560
2564
|
}
|
|
2561
|
-
function
|
|
2565
|
+
function Eo(e, t) {
|
|
2562
2566
|
let r = 0, n = 1e3 / t, o, i;
|
|
2563
|
-
const s = (
|
|
2564
|
-
r =
|
|
2567
|
+
const s = (l, c = Date.now()) => {
|
|
2568
|
+
r = c, o = null, i && (clearTimeout(i), i = null), e(...l);
|
|
2565
2569
|
};
|
|
2566
|
-
return [(...
|
|
2567
|
-
const
|
|
2568
|
-
h >= n ? s(
|
|
2570
|
+
return [(...l) => {
|
|
2571
|
+
const c = Date.now(), h = c - r;
|
|
2572
|
+
h >= n ? s(l, c) : (o = l, i || (i = setTimeout(() => {
|
|
2569
2573
|
i = null, s(o);
|
|
2570
2574
|
}, n - h)));
|
|
2571
2575
|
}, () => o && s(o)];
|
|
2572
2576
|
}
|
|
2573
2577
|
const Re = (e, t, r = 3) => {
|
|
2574
2578
|
let n = 0;
|
|
2575
|
-
const o =
|
|
2576
|
-
return
|
|
2577
|
-
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, u = s - n,
|
|
2579
|
+
const o = bo(50, 250);
|
|
2580
|
+
return Eo((i) => {
|
|
2581
|
+
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, u = s - n, l = o(u), c = s <= a;
|
|
2578
2582
|
n = s;
|
|
2579
2583
|
const h = {
|
|
2580
2584
|
loaded: s,
|
|
2581
2585
|
total: a,
|
|
2582
2586
|
progress: a ? s / a : void 0,
|
|
2583
2587
|
bytes: u,
|
|
2584
|
-
rate:
|
|
2585
|
-
estimated:
|
|
2588
|
+
rate: l || void 0,
|
|
2589
|
+
estimated: l && a && c ? (a - s) / l : void 0,
|
|
2586
2590
|
event: i,
|
|
2587
2591
|
lengthComputable: a != null,
|
|
2588
2592
|
[t ? "download" : "upload"]: !0
|
|
@@ -2596,10 +2600,10 @@ const Re = (e, t, r = 3) => {
|
|
|
2596
2600
|
total: e,
|
|
2597
2601
|
loaded: n
|
|
2598
2602
|
}), t[1]];
|
|
2599
|
-
}, Kt = (e) => (...t) => f.asap(() => e(...t)),
|
|
2603
|
+
}, Kt = (e) => (...t) => f.asap(() => e(...t)), Co = F.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, F.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
2600
2604
|
new URL(F.origin),
|
|
2601
2605
|
F.navigator && /(msie|trident)/i.test(F.navigator.userAgent)
|
|
2602
|
-
) : () => !0,
|
|
2606
|
+
) : () => !0, So = F.hasStandardBrowserEnv ? (
|
|
2603
2607
|
// Standard browser envs support document.cookie
|
|
2604
2608
|
{
|
|
2605
2609
|
write(e, t, r, n, o, i, s) {
|
|
@@ -2628,44 +2632,44 @@ const Re = (e, t, r = 3) => {
|
|
|
2628
2632
|
}
|
|
2629
2633
|
}
|
|
2630
2634
|
);
|
|
2631
|
-
function
|
|
2635
|
+
function Ro(e) {
|
|
2632
2636
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
2633
2637
|
}
|
|
2634
|
-
function
|
|
2638
|
+
function To(e, t) {
|
|
2635
2639
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
2636
2640
|
}
|
|
2637
2641
|
function An(e, t, r) {
|
|
2638
|
-
let n = !
|
|
2639
|
-
return e && (n || r == !1) ?
|
|
2642
|
+
let n = !Ro(t);
|
|
2643
|
+
return e && (n || r == !1) ? To(e, t) : t;
|
|
2640
2644
|
}
|
|
2641
2645
|
const Wt = (e) => e instanceof k ? { ...e } : e;
|
|
2642
2646
|
function X(e, t) {
|
|
2643
2647
|
t = t || {};
|
|
2644
2648
|
const r = {};
|
|
2645
|
-
function n(
|
|
2646
|
-
return f.isPlainObject(
|
|
2649
|
+
function n(l, c, h, m) {
|
|
2650
|
+
return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless: m }, l, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
|
|
2647
2651
|
}
|
|
2648
|
-
function o(
|
|
2649
|
-
if (f.isUndefined(
|
|
2650
|
-
if (!f.isUndefined(
|
|
2651
|
-
return n(void 0,
|
|
2652
|
-
} else return n(
|
|
2652
|
+
function o(l, c, h, m) {
|
|
2653
|
+
if (f.isUndefined(c)) {
|
|
2654
|
+
if (!f.isUndefined(l))
|
|
2655
|
+
return n(void 0, l, h, m);
|
|
2656
|
+
} else return n(l, c, h, m);
|
|
2653
2657
|
}
|
|
2654
|
-
function i(
|
|
2655
|
-
if (!f.isUndefined(
|
|
2656
|
-
return n(void 0,
|
|
2658
|
+
function i(l, c) {
|
|
2659
|
+
if (!f.isUndefined(c))
|
|
2660
|
+
return n(void 0, c);
|
|
2657
2661
|
}
|
|
2658
|
-
function s(
|
|
2659
|
-
if (f.isUndefined(
|
|
2660
|
-
if (!f.isUndefined(
|
|
2661
|
-
return n(void 0,
|
|
2662
|
-
} else return n(void 0,
|
|
2662
|
+
function s(l, c) {
|
|
2663
|
+
if (f.isUndefined(c)) {
|
|
2664
|
+
if (!f.isUndefined(l))
|
|
2665
|
+
return n(void 0, l);
|
|
2666
|
+
} else return n(void 0, c);
|
|
2663
2667
|
}
|
|
2664
|
-
function a(
|
|
2668
|
+
function a(l, c, h) {
|
|
2665
2669
|
if (h in t)
|
|
2666
|
-
return n(
|
|
2670
|
+
return n(l, c);
|
|
2667
2671
|
if (h in e)
|
|
2668
|
-
return n(void 0,
|
|
2672
|
+
return n(void 0, l);
|
|
2669
2673
|
}
|
|
2670
2674
|
const u = {
|
|
2671
2675
|
url: i,
|
|
@@ -2696,11 +2700,11 @@ function X(e, t) {
|
|
|
2696
2700
|
socketPath: s,
|
|
2697
2701
|
responseEncoding: s,
|
|
2698
2702
|
validateStatus: a,
|
|
2699
|
-
headers: (
|
|
2703
|
+
headers: (l, c, h) => o(Wt(l), Wt(c), h, !0)
|
|
2700
2704
|
};
|
|
2701
|
-
return f.forEach(Object.keys({ ...e, ...t }), function(
|
|
2702
|
-
const h = u[
|
|
2703
|
-
f.isUndefined(m) && h !== a || (r[
|
|
2705
|
+
return f.forEach(Object.keys({ ...e, ...t }), function(c) {
|
|
2706
|
+
const h = u[c] || o, m = h(e[c], t[c], c);
|
|
2707
|
+
f.isUndefined(m) && h !== a || (r[c] = m);
|
|
2704
2708
|
}), r;
|
|
2705
2709
|
}
|
|
2706
2710
|
const Bn = (e) => {
|
|
@@ -2713,25 +2717,25 @@ const Bn = (e) => {
|
|
|
2713
2717
|
if (F.hasStandardBrowserEnv || F.hasStandardBrowserWebWorkerEnv)
|
|
2714
2718
|
s.setContentType(void 0);
|
|
2715
2719
|
else if (f.isFunction(r.getHeaders)) {
|
|
2716
|
-
const u = r.getHeaders(),
|
|
2717
|
-
Object.entries(u).forEach(([
|
|
2718
|
-
|
|
2720
|
+
const u = r.getHeaders(), l = ["content-type", "content-length"];
|
|
2721
|
+
Object.entries(u).forEach(([c, h]) => {
|
|
2722
|
+
l.includes(c.toLowerCase()) && s.set(c, h);
|
|
2719
2723
|
});
|
|
2720
2724
|
}
|
|
2721
2725
|
}
|
|
2722
|
-
if (F.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
|
2723
|
-
const u = o && i &&
|
|
2726
|
+
if (F.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 && Co(t.url))) {
|
|
2727
|
+
const u = o && i && So.read(i);
|
|
2724
2728
|
u && s.set(o, u);
|
|
2725
2729
|
}
|
|
2726
2730
|
return t;
|
|
2727
|
-
},
|
|
2731
|
+
}, Ao = typeof XMLHttpRequest < "u", Bo = Ao && function(e) {
|
|
2728
2732
|
return new Promise(function(r, n) {
|
|
2729
2733
|
const o = Bn(e);
|
|
2730
2734
|
let i = o.data;
|
|
2731
2735
|
const s = k.from(o.headers).normalize();
|
|
2732
|
-
let { responseType: a, onUploadProgress: u, onDownloadProgress:
|
|
2736
|
+
let { responseType: a, onUploadProgress: u, onDownloadProgress: l } = o, c, h, m, y, d;
|
|
2733
2737
|
function p() {
|
|
2734
|
-
y && y(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(
|
|
2738
|
+
y && y(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
2735
2739
|
}
|
|
2736
2740
|
let g = new XMLHttpRequest();
|
|
2737
2741
|
g.open(o.method.toUpperCase(), o.url, !0), g.timeout = o.timeout;
|
|
@@ -2772,40 +2776,40 @@ const Bn = (e) => {
|
|
|
2772
2776
|
)), g = null;
|
|
2773
2777
|
}, i === void 0 && s.setContentType(null), "setRequestHeader" in g && f.forEach(s.toJSON(), function(R, _) {
|
|
2774
2778
|
g.setRequestHeader(_, R);
|
|
2775
|
-
}), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), a && a !== "json" && (g.responseType = o.responseType),
|
|
2779
|
+
}), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), a && a !== "json" && (g.responseType = o.responseType), l && ([m, d] = Re(l, !0), g.addEventListener("progress", m)), u && g.upload && ([h, y] = Re(u), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (c = (E) => {
|
|
2776
2780
|
g && (n(!E || E.type ? new ae(null, e, g) : E), g.abort(), g = null);
|
|
2777
|
-
}, o.cancelToken && o.cancelToken.subscribe(
|
|
2778
|
-
const P =
|
|
2781
|
+
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
2782
|
+
const P = wo(o.url);
|
|
2779
2783
|
if (P && F.protocols.indexOf(P) === -1) {
|
|
2780
2784
|
n(new I("Unsupported protocol " + P + ":", I.ERR_BAD_REQUEST, e));
|
|
2781
2785
|
return;
|
|
2782
2786
|
}
|
|
2783
2787
|
g.send(i || null);
|
|
2784
2788
|
});
|
|
2785
|
-
},
|
|
2789
|
+
}, No = (e, t) => {
|
|
2786
2790
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
2787
2791
|
if (t || r) {
|
|
2788
2792
|
let n = new AbortController(), o;
|
|
2789
|
-
const i = function(
|
|
2793
|
+
const i = function(l) {
|
|
2790
2794
|
if (!o) {
|
|
2791
2795
|
o = !0, a();
|
|
2792
|
-
const
|
|
2793
|
-
n.abort(
|
|
2796
|
+
const c = l instanceof Error ? l : this.reason;
|
|
2797
|
+
n.abort(c instanceof I ? c : new ae(c instanceof Error ? c.message : c));
|
|
2794
2798
|
}
|
|
2795
2799
|
};
|
|
2796
2800
|
let s = t && setTimeout(() => {
|
|
2797
2801
|
s = null, i(new I(`timeout ${t} of ms exceeded`, I.ETIMEDOUT));
|
|
2798
2802
|
}, t);
|
|
2799
2803
|
const a = () => {
|
|
2800
|
-
e && (s && clearTimeout(s), s = null, e.forEach((
|
|
2801
|
-
|
|
2804
|
+
e && (s && clearTimeout(s), s = null, e.forEach((l) => {
|
|
2805
|
+
l.unsubscribe ? l.unsubscribe(i) : l.removeEventListener("abort", i);
|
|
2802
2806
|
}), e = null);
|
|
2803
2807
|
};
|
|
2804
|
-
e.forEach((
|
|
2808
|
+
e.forEach((l) => l.addEventListener("abort", i));
|
|
2805
2809
|
const { signal: u } = n;
|
|
2806
2810
|
return u.unsubscribe = () => f.asap(a), u;
|
|
2807
2811
|
}
|
|
2808
|
-
},
|
|
2812
|
+
}, Po = function* (e, t) {
|
|
2809
2813
|
let r = e.byteLength;
|
|
2810
2814
|
if (r < t) {
|
|
2811
2815
|
yield e;
|
|
@@ -2814,10 +2818,10 @@ const Bn = (e) => {
|
|
|
2814
2818
|
let n = 0, o;
|
|
2815
2819
|
for (; n < r; )
|
|
2816
2820
|
o = n + t, yield e.slice(n, o), n = o;
|
|
2817
|
-
},
|
|
2818
|
-
for await (const r of
|
|
2819
|
-
yield*
|
|
2820
|
-
},
|
|
2821
|
+
}, Oo = async function* (e, t) {
|
|
2822
|
+
for await (const r of Lo(e))
|
|
2823
|
+
yield* Po(r, t);
|
|
2824
|
+
}, Lo = async function* (e) {
|
|
2821
2825
|
if (e[Symbol.asyncIterator]) {
|
|
2822
2826
|
yield* e;
|
|
2823
2827
|
return;
|
|
@@ -2834,26 +2838,26 @@ const Bn = (e) => {
|
|
|
2834
2838
|
await t.cancel();
|
|
2835
2839
|
}
|
|
2836
2840
|
}, Gt = (e, t, r, n) => {
|
|
2837
|
-
const o =
|
|
2841
|
+
const o = Oo(e, t);
|
|
2838
2842
|
let i = 0, s, a = (u) => {
|
|
2839
2843
|
s || (s = !0, n && n(u));
|
|
2840
2844
|
};
|
|
2841
2845
|
return new ReadableStream({
|
|
2842
2846
|
async pull(u) {
|
|
2843
2847
|
try {
|
|
2844
|
-
const { done:
|
|
2845
|
-
if (
|
|
2848
|
+
const { done: l, value: c } = await o.next();
|
|
2849
|
+
if (l) {
|
|
2846
2850
|
a(), u.close();
|
|
2847
2851
|
return;
|
|
2848
2852
|
}
|
|
2849
|
-
let h =
|
|
2853
|
+
let h = c.byteLength;
|
|
2850
2854
|
if (r) {
|
|
2851
2855
|
let m = i += h;
|
|
2852
2856
|
r(m);
|
|
2853
2857
|
}
|
|
2854
|
-
u.enqueue(new Uint8Array(
|
|
2855
|
-
} catch (
|
|
2856
|
-
throw a(
|
|
2858
|
+
u.enqueue(new Uint8Array(c));
|
|
2859
|
+
} catch (l) {
|
|
2860
|
+
throw a(l), l;
|
|
2857
2861
|
}
|
|
2858
2862
|
},
|
|
2859
2863
|
cancel(u) {
|
|
@@ -2862,7 +2866,7 @@ const Bn = (e) => {
|
|
|
2862
2866
|
}, {
|
|
2863
2867
|
highWaterMark: 2
|
|
2864
2868
|
});
|
|
2865
|
-
}, Qt = 64 * 1024, { isFunction: be } = f,
|
|
2869
|
+
}, Qt = 64 * 1024, { isFunction: be } = f, Io = (({ Request: e, Response: t }) => ({
|
|
2866
2870
|
Request: e,
|
|
2867
2871
|
Response: t
|
|
2868
2872
|
}))(f.global), {
|
|
@@ -2874,14 +2878,14 @@ const Bn = (e) => {
|
|
|
2874
2878
|
} catch {
|
|
2875
2879
|
return !1;
|
|
2876
2880
|
}
|
|
2877
|
-
},
|
|
2881
|
+
}, _o = (e) => {
|
|
2878
2882
|
e = f.merge.call({
|
|
2879
2883
|
skipUndefined: !0
|
|
2880
|
-
},
|
|
2884
|
+
}, Io, e);
|
|
2881
2885
|
const { fetch: t, Request: r, Response: n } = e, o = t ? be(t) : typeof fetch == "function", i = be(r), s = be(n);
|
|
2882
2886
|
if (!o)
|
|
2883
2887
|
return !1;
|
|
2884
|
-
const a = o && be(Yt), u = o && (typeof Xt == "function" ? /* @__PURE__ */ ((d) => (p) => d.encode(p))(new Xt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())),
|
|
2888
|
+
const a = o && be(Yt), u = o && (typeof Xt == "function" ? /* @__PURE__ */ ((d) => (p) => d.encode(p))(new Xt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && a && Zt(() => {
|
|
2885
2889
|
let d = !1;
|
|
2886
2890
|
const p = new r(F.origin, {
|
|
2887
2891
|
body: new Yt(),
|
|
@@ -2891,8 +2895,8 @@ const Bn = (e) => {
|
|
|
2891
2895
|
}
|
|
2892
2896
|
}).headers.has("Content-Type");
|
|
2893
2897
|
return d && !p;
|
|
2894
|
-
}),
|
|
2895
|
-
stream:
|
|
2898
|
+
}), c = s && a && Zt(() => f.isReadableStream(new n("").body)), h = {
|
|
2899
|
+
stream: c && ((d) => d.body)
|
|
2896
2900
|
};
|
|
2897
2901
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
|
|
2898
2902
|
!h[d] && (h[d] = (p, g) => {
|
|
@@ -2936,13 +2940,13 @@ const Bn = (e) => {
|
|
|
2936
2940
|
fetchOptions: L
|
|
2937
2941
|
} = Bn(d), B = t || fetch;
|
|
2938
2942
|
S = S ? (S + "").toLowerCase() : "text";
|
|
2939
|
-
let N =
|
|
2943
|
+
let N = No([P, E && E.toAbortSignal()], R), T = null;
|
|
2940
2944
|
const O = N && N.unsubscribe && (() => {
|
|
2941
2945
|
N.unsubscribe();
|
|
2942
2946
|
});
|
|
2943
2947
|
let q;
|
|
2944
2948
|
try {
|
|
2945
|
-
if (b &&
|
|
2949
|
+
if (b && l && g !== "get" && g !== "head" && (q = await y(A, w)) !== 0) {
|
|
2946
2950
|
let D = new r(p, {
|
|
2947
2951
|
method: "POST",
|
|
2948
2952
|
body: w,
|
|
@@ -2968,8 +2972,8 @@ const Bn = (e) => {
|
|
|
2968
2972
|
};
|
|
2969
2973
|
T = i && new r(p, me);
|
|
2970
2974
|
let j = await (i ? B(T, L) : B(p, me));
|
|
2971
|
-
const ye =
|
|
2972
|
-
if (
|
|
2975
|
+
const ye = c && (S === "stream" || S === "response");
|
|
2976
|
+
if (c && (_ || ye && O)) {
|
|
2973
2977
|
const D = {};
|
|
2974
2978
|
["status", "statusText", "headers"].forEach((ne) => {
|
|
2975
2979
|
D[ne] = j[ne];
|
|
@@ -3006,22 +3010,22 @@ const Bn = (e) => {
|
|
|
3006
3010
|
) : I.from(U, U && U.code, d, T);
|
|
3007
3011
|
}
|
|
3008
3012
|
};
|
|
3009
|
-
},
|
|
3013
|
+
}, vo = /* @__PURE__ */ new Map(), Nn = (e) => {
|
|
3010
3014
|
let t = e && e.env || {};
|
|
3011
3015
|
const { fetch: r, Request: n, Response: o } = t, i = [
|
|
3012
3016
|
n,
|
|
3013
3017
|
o,
|
|
3014
3018
|
r
|
|
3015
3019
|
];
|
|
3016
|
-
let s = i.length, a = s, u,
|
|
3020
|
+
let s = i.length, a = s, u, l, c = vo;
|
|
3017
3021
|
for (; a--; )
|
|
3018
|
-
u = i[a],
|
|
3019
|
-
return
|
|
3022
|
+
u = i[a], l = c.get(u), l === void 0 && c.set(u, l = a ? /* @__PURE__ */ new Map() : _o(t)), c = l;
|
|
3023
|
+
return l;
|
|
3020
3024
|
};
|
|
3021
3025
|
Nn();
|
|
3022
3026
|
const ft = {
|
|
3023
|
-
http:
|
|
3024
|
-
xhr:
|
|
3027
|
+
http: Gr,
|
|
3028
|
+
xhr: Bo,
|
|
3025
3029
|
fetch: {
|
|
3026
3030
|
get: Nn
|
|
3027
3031
|
}
|
|
@@ -3035,8 +3039,8 @@ f.forEach(ft, (e, t) => {
|
|
|
3035
3039
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
3036
3040
|
}
|
|
3037
3041
|
});
|
|
3038
|
-
const en = (e) => `- ${e}`,
|
|
3039
|
-
function
|
|
3042
|
+
const en = (e) => `- ${e}`, Uo = (e) => f.isFunction(e) || e === null || e === !1;
|
|
3043
|
+
function xo(e, t) {
|
|
3040
3044
|
e = f.isArray(e) ? e : [e];
|
|
3041
3045
|
const { length: r } = e;
|
|
3042
3046
|
let n, o;
|
|
@@ -3044,7 +3048,7 @@ function Uo(e, t) {
|
|
|
3044
3048
|
for (let s = 0; s < r; s++) {
|
|
3045
3049
|
n = e[s];
|
|
3046
3050
|
let a;
|
|
3047
|
-
if (o = n, !
|
|
3051
|
+
if (o = n, !Uo(n) && (o = ft[(a = String(n)).toLowerCase()], o === void 0))
|
|
3048
3052
|
throw new I(`Unknown adapter '${a}'`);
|
|
3049
3053
|
if (o && (f.isFunction(o) || (o = o.get(t))))
|
|
3050
3054
|
break;
|
|
@@ -3052,7 +3056,7 @@ function Uo(e, t) {
|
|
|
3052
3056
|
}
|
|
3053
3057
|
if (!o) {
|
|
3054
3058
|
const s = Object.entries(i).map(
|
|
3055
|
-
([u,
|
|
3059
|
+
([u, l]) => `adapter ${u} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
3056
3060
|
);
|
|
3057
3061
|
let a = r ? s.length > 1 ? `since :
|
|
3058
3062
|
` + s.map(en).join(`
|
|
@@ -3069,7 +3073,7 @@ const Pn = {
|
|
|
3069
3073
|
* Resolve an adapter from a list of adapter names or functions.
|
|
3070
3074
|
* @type {Function}
|
|
3071
3075
|
*/
|
|
3072
|
-
getAdapter:
|
|
3076
|
+
getAdapter: xo,
|
|
3073
3077
|
/**
|
|
3074
3078
|
* Exposes all known adapters
|
|
3075
3079
|
* @type {Object<string, Function|Object>}
|
|
@@ -3126,7 +3130,7 @@ Pe.transitional = function(t, r, n) {
|
|
|
3126
3130
|
Pe.spelling = function(t) {
|
|
3127
3131
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
3128
3132
|
};
|
|
3129
|
-
function
|
|
3133
|
+
function Fo(e, t, r) {
|
|
3130
3134
|
if (typeof e != "object")
|
|
3131
3135
|
throw new I("options must be an object", I.ERR_BAD_OPTION_VALUE);
|
|
3132
3136
|
const n = Object.keys(e);
|
|
@@ -3144,7 +3148,7 @@ function xo(e, t, r) {
|
|
|
3144
3148
|
}
|
|
3145
3149
|
}
|
|
3146
3150
|
const Se = {
|
|
3147
|
-
assertOptions:
|
|
3151
|
+
assertOptions: Fo,
|
|
3148
3152
|
validators: Pe
|
|
3149
3153
|
}, V = Se.validators;
|
|
3150
3154
|
let Y = class {
|
|
@@ -3210,16 +3214,16 @@ let Y = class {
|
|
|
3210
3214
|
this.interceptors.request.forEach(function(p) {
|
|
3211
3215
|
typeof p.runWhen == "function" && p.runWhen(r) === !1 || (u = u && p.synchronous, a.unshift(p.fulfilled, p.rejected));
|
|
3212
3216
|
});
|
|
3213
|
-
const
|
|
3217
|
+
const l = [];
|
|
3214
3218
|
this.interceptors.response.forEach(function(p) {
|
|
3215
|
-
|
|
3219
|
+
l.push(p.fulfilled, p.rejected);
|
|
3216
3220
|
});
|
|
3217
|
-
let
|
|
3221
|
+
let c, h = 0, m;
|
|
3218
3222
|
if (!u) {
|
|
3219
3223
|
const d = [tn.bind(this), void 0];
|
|
3220
|
-
for (d.unshift(...a), d.push(...
|
|
3221
|
-
|
|
3222
|
-
return
|
|
3224
|
+
for (d.unshift(...a), d.push(...l), m = d.length, c = Promise.resolve(r); h < m; )
|
|
3225
|
+
c = c.then(d[h++], d[h++]);
|
|
3226
|
+
return c;
|
|
3223
3227
|
}
|
|
3224
3228
|
m = a.length;
|
|
3225
3229
|
let y = r;
|
|
@@ -3233,13 +3237,13 @@ let Y = class {
|
|
|
3233
3237
|
}
|
|
3234
3238
|
}
|
|
3235
3239
|
try {
|
|
3236
|
-
|
|
3240
|
+
c = tn.call(this, y);
|
|
3237
3241
|
} catch (d) {
|
|
3238
3242
|
return Promise.reject(d);
|
|
3239
3243
|
}
|
|
3240
|
-
for (h = 0, m =
|
|
3241
|
-
|
|
3242
|
-
return
|
|
3244
|
+
for (h = 0, m = l.length; h < m; )
|
|
3245
|
+
c = c.then(l[h++], l[h++]);
|
|
3246
|
+
return c;
|
|
3243
3247
|
}
|
|
3244
3248
|
getUri(t) {
|
|
3245
3249
|
t = X(this.defaults, t);
|
|
@@ -3271,7 +3275,7 @@ f.forEach(["post", "put", "patch"], function(t) {
|
|
|
3271
3275
|
}
|
|
3272
3276
|
Y.prototype[t] = r(), Y.prototype[t + "Form"] = r(!0);
|
|
3273
3277
|
});
|
|
3274
|
-
let
|
|
3278
|
+
let Mo = class Ln {
|
|
3275
3279
|
constructor(t) {
|
|
3276
3280
|
if (typeof t != "function")
|
|
3277
3281
|
throw new TypeError("executor must be a function.");
|
|
@@ -3344,12 +3348,12 @@ let Fo = class Ln {
|
|
|
3344
3348
|
};
|
|
3345
3349
|
}
|
|
3346
3350
|
};
|
|
3347
|
-
function
|
|
3351
|
+
function ko(e) {
|
|
3348
3352
|
return function(r) {
|
|
3349
3353
|
return e.apply(null, r);
|
|
3350
3354
|
};
|
|
3351
3355
|
}
|
|
3352
|
-
function
|
|
3356
|
+
function Do(e) {
|
|
3353
3357
|
return f.isObject(e) && e.isAxiosError === !0;
|
|
3354
3358
|
}
|
|
3355
3359
|
const st = {
|
|
@@ -3435,7 +3439,7 @@ function In(e) {
|
|
|
3435
3439
|
const v = In(ge);
|
|
3436
3440
|
v.Axios = Y;
|
|
3437
3441
|
v.CanceledError = ae;
|
|
3438
|
-
v.CancelToken =
|
|
3442
|
+
v.CancelToken = Mo;
|
|
3439
3443
|
v.isCancel = Rn;
|
|
3440
3444
|
v.VERSION = On;
|
|
3441
3445
|
v.toFormData = Ne;
|
|
@@ -3444,8 +3448,8 @@ v.Cancel = v.CanceledError;
|
|
|
3444
3448
|
v.all = function(t) {
|
|
3445
3449
|
return Promise.all(t);
|
|
3446
3450
|
};
|
|
3447
|
-
v.spread =
|
|
3448
|
-
v.isAxiosError =
|
|
3451
|
+
v.spread = ko;
|
|
3452
|
+
v.isAxiosError = Do;
|
|
3449
3453
|
v.mergeConfig = X;
|
|
3450
3454
|
v.AxiosHeaders = k;
|
|
3451
3455
|
v.formToJSON = (e) => Sn(f.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -3453,31 +3457,31 @@ v.getAdapter = Pn.getAdapter;
|
|
|
3453
3457
|
v.HttpStatusCode = st;
|
|
3454
3458
|
v.default = v;
|
|
3455
3459
|
const {
|
|
3456
|
-
Axios:
|
|
3457
|
-
AxiosError:
|
|
3458
|
-
CanceledError:
|
|
3459
|
-
isCancel:
|
|
3460
|
-
CancelToken:
|
|
3461
|
-
VERSION:
|
|
3462
|
-
all:
|
|
3463
|
-
Cancel:
|
|
3464
|
-
isAxiosError:
|
|
3465
|
-
spread:
|
|
3466
|
-
toFormData:
|
|
3467
|
-
AxiosHeaders:
|
|
3468
|
-
HttpStatusCode:
|
|
3469
|
-
formToJSON:
|
|
3470
|
-
getAdapter:
|
|
3471
|
-
mergeConfig:
|
|
3460
|
+
Axios: Wo,
|
|
3461
|
+
AxiosError: Go,
|
|
3462
|
+
CanceledError: Qo,
|
|
3463
|
+
isCancel: Yo,
|
|
3464
|
+
CancelToken: Xo,
|
|
3465
|
+
VERSION: Zo,
|
|
3466
|
+
all: ei,
|
|
3467
|
+
Cancel: ti,
|
|
3468
|
+
isAxiosError: ni,
|
|
3469
|
+
spread: ri,
|
|
3470
|
+
toFormData: oi,
|
|
3471
|
+
AxiosHeaders: ii,
|
|
3472
|
+
HttpStatusCode: si,
|
|
3473
|
+
formToJSON: ai,
|
|
3474
|
+
getAdapter: ui,
|
|
3475
|
+
mergeConfig: li
|
|
3472
3476
|
} = v, fe = Dn(), _n = v.create({
|
|
3473
3477
|
baseURL: fe.baseUrl
|
|
3474
3478
|
});
|
|
3475
|
-
async function
|
|
3479
|
+
async function qo(e = {}) {
|
|
3476
3480
|
return (await _n.post(fe.createEndpoint, e, {
|
|
3477
3481
|
withCredentials: !0
|
|
3478
3482
|
})).data;
|
|
3479
3483
|
}
|
|
3480
|
-
function
|
|
3484
|
+
function jo(e = () => {
|
|
3481
3485
|
}, t = () => {
|
|
3482
3486
|
}) {
|
|
3483
3487
|
const r = new URL(fe.authEventEndpoint, fe.baseUrl), n = new EventSource(r, {
|
|
@@ -3497,7 +3501,7 @@ function qo(e = () => {
|
|
|
3497
3501
|
console.error("EventSource failed:", o), n.close();
|
|
3498
3502
|
}, n;
|
|
3499
3503
|
}
|
|
3500
|
-
class
|
|
3504
|
+
class Ho {
|
|
3501
3505
|
constructor() {
|
|
3502
3506
|
x(this, "overlay", null);
|
|
3503
3507
|
x(this, "isOpen", !1);
|
|
@@ -3535,7 +3539,7 @@ class jo {
|
|
|
3535
3539
|
try {
|
|
3536
3540
|
t.innerHTML = "";
|
|
3537
3541
|
const n = document.createElement("canvas");
|
|
3538
|
-
await
|
|
3542
|
+
await lr.toCanvas(n, r, { width: 200, margin: 1 }), t.appendChild(n);
|
|
3539
3543
|
} catch (n) {
|
|
3540
3544
|
console.error("Ошибка при генерации QR-кода:", n), t.innerHTML = "<p>Не удалось загрузить QR-код</p>";
|
|
3541
3545
|
}
|
|
@@ -3558,7 +3562,7 @@ class jo {
|
|
|
3558
3562
|
renderSuccessState(t) {
|
|
3559
3563
|
this.loader.style.display = "none", this.errorContainer.style.display = "none", this.qrContainer.style.display = "flex", this.separator.style.display = "block", this.loginButton.style.display = "block";
|
|
3560
3564
|
const r = this.chooseLink(t);
|
|
3561
|
-
this.generateQR(this.qrContainer, r), this.loginButton.onclick = () => window.open(r), this.authEvent =
|
|
3565
|
+
this.generateQR(this.qrContainer, r), this.loginButton.onclick = () => window.open(r), this.authEvent = jo(() => {
|
|
3562
3566
|
this.close(), this.resolvePromise();
|
|
3563
3567
|
}, (n) => this.renderErrorState(n)), t.validUntil ? (this.timerContainer.style.display = "block", this.startTimer(t.validUntil)) : this.timerContainer.style.display = "none";
|
|
3564
3568
|
}
|
|
@@ -3601,7 +3605,7 @@ class jo {
|
|
|
3601
3605
|
if (this.requestData) {
|
|
3602
3606
|
this.setLoadingState();
|
|
3603
3607
|
try {
|
|
3604
|
-
const t = await
|
|
3608
|
+
const t = await qo(this.requestData);
|
|
3605
3609
|
this.renderSuccessState(t);
|
|
3606
3610
|
} catch (t) {
|
|
3607
3611
|
this.renderErrorState(t);
|
|
@@ -3614,24 +3618,24 @@ class jo {
|
|
|
3614
3618
|
}, 400));
|
|
3615
3619
|
}
|
|
3616
3620
|
}
|
|
3617
|
-
|
|
3618
|
-
const vn = new
|
|
3621
|
+
zo();
|
|
3622
|
+
const vn = new Ho();
|
|
3619
3623
|
async function ci(e = {}) {
|
|
3620
3624
|
return vn.show(e);
|
|
3621
3625
|
}
|
|
3622
|
-
function
|
|
3626
|
+
function fi() {
|
|
3623
3627
|
vn.close();
|
|
3624
3628
|
}
|
|
3625
|
-
function
|
|
3629
|
+
function zo() {
|
|
3626
3630
|
if (document.getElementById("oauth0-js-lib-styles")) return;
|
|
3627
3631
|
const e = document.createElement("style");
|
|
3628
|
-
e.id = "oauth0-js-lib-styles", e.innerHTML =
|
|
3632
|
+
e.id = "oauth0-js-lib-styles", e.innerHTML = jn, document.head.appendChild(e);
|
|
3629
3633
|
}
|
|
3630
3634
|
export {
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3635
|
+
fi as closeQrLogin,
|
|
3636
|
+
jo as createAuthEvent,
|
|
3637
|
+
qo as createAuthSession,
|
|
3634
3638
|
Dn as getConfig,
|
|
3635
|
-
|
|
3639
|
+
$o as setConfig,
|
|
3636
3640
|
ci as showQrLogin
|
|
3637
3641
|
};
|