oauth0-js-lib 2.2.11 → 2.3.0

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 CHANGED
@@ -1,23 +1,22 @@
1
- var xn = Object.defineProperty;
2
- var Fn = (e, t, r) => t in e ? xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var k = (e, t, r) => Fn(e, typeof t != "symbol" ? t + "" : t, r);
4
- const Mn = {
1
+ var Fn = Object.defineProperty;
2
+ var Mn = (e, t, r) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var x = (e, t, r) => Mn(e, typeof t != "symbol" ? t + "" : t, r);
4
+ const Dn = {
5
5
  baseUrl: jn(),
6
6
  createEndpoint: "/api/oauth0/create",
7
- authEventEndpoint: "/api/oauth0/auth-events",
8
- authConfirmEndpoint: "/api/oauth0/auth-confirm",
7
+ authEndpoint: "/api/oauth0/auth",
9
8
  linkType: "WEB_APP"
10
- }, Dn = typeof __OAUTH_LIB_CONFIG__ < "u" ? __OAUTH_LIB_CONFIG__ : void 0, qn = typeof globalThis < "u" && globalThis.OAUTH_LIB_CONFIG ? globalThis.OAUTH_LIB_CONFIG : void 0;
11
- let nt = {
12
- ...Mn,
9
+ }, vn = typeof __OAUTH_LIB_CONFIG__ < "u" ? __OAUTH_LIB_CONFIG__ : void 0, qn = typeof globalThis < "u" && globalThis.OAUTH_LIB_CONFIG ? globalThis.OAUTH_LIB_CONFIG : void 0;
10
+ let tt = {
13
11
  ...Dn,
12
+ ...vn,
14
13
  ...qn
15
14
  };
16
15
  function Jo(e) {
17
- nt = { ...nt, ...e };
16
+ tt = { ...tt, ...e };
18
17
  }
19
18
  function on() {
20
- return nt;
19
+ return tt;
21
20
  }
22
21
  function jn() {
23
22
  var e, t;
@@ -192,13 +191,13 @@ const Hn = `.oauth-modal-overlay {\r
192
191
  margin-top: -10px;\r
193
192
  margin-bottom: 10px;\r
194
193
  }`;
195
- var oe = {}, Le, ht;
194
+ var oe = {}, Oe, ht;
196
195
  function zn() {
197
- return ht || (ht = 1, Le = function() {
196
+ return ht || (ht = 1, Oe = function() {
198
197
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
199
- }), Le;
198
+ }), Oe;
200
199
  }
201
- var Ie = {}, W = {}, pt;
200
+ var Le = {}, W = {}, pt;
202
201
  function Z() {
203
202
  if (pt) return W;
204
203
  pt = 1;
@@ -268,8 +267,8 @@ function Z() {
268
267
  return e(n);
269
268
  }, W;
270
269
  }
271
- var _e = {}, gt;
272
- function at() {
270
+ var Ie = {}, gt;
271
+ function st() {
273
272
  return gt || (gt = 1, (function(e) {
274
273
  e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
275
274
  function t(r) {
@@ -303,11 +302,11 @@ function at() {
303
302
  return o;
304
303
  }
305
304
  };
306
- })(_e)), _e;
305
+ })(Ie)), Ie;
307
306
  }
308
- var ve, mt;
307
+ var _e, mt;
309
308
  function $n() {
310
- if (mt) return ve;
309
+ if (mt) return _e;
311
310
  mt = 1;
312
311
  function e() {
313
312
  this.buffer = [], this.length = 0;
@@ -328,7 +327,7 @@ function $n() {
328
327
  const r = Math.floor(this.length / 8);
329
328
  this.buffer.length <= r && this.buffer.push(0), t && (this.buffer[r] |= 128 >>> this.length % 8), this.length++;
330
329
  }
331
- }, ve = e, ve;
330
+ }, _e = e, _e;
332
331
  }
333
332
  var Ue, yt;
334
333
  function Vn() {
@@ -357,16 +356,16 @@ function Jn() {
357
356
  e.getRowColCoords = function(n) {
358
357
  if (n === 1) return [];
359
358
  const o = Math.floor(n / 7) + 2, i = t(n), s = i === 145 ? 26 : Math.ceil((i - 13) / (2 * o - 2)) * 2, a = [i - 7];
360
- for (let u = 1; u < o - 1; u++)
361
- a[u] = a[u - 1] - s;
359
+ for (let l = 1; l < o - 1; l++)
360
+ a[l] = a[l - 1] - s;
362
361
  return a.push(6), a.reverse();
363
362
  }, e.getPositions = function(n) {
364
363
  const o = [], i = e.getRowColCoords(n), s = i.length;
365
364
  for (let a = 0; a < s; a++)
366
- for (let u = 0; u < s; u++)
367
- a === 0 && u === 0 || // top-left
368
- a === 0 && u === s - 1 || // bottom-left
369
- a === s - 1 && u === 0 || o.push([i[a], i[u]]);
365
+ for (let l = 0; l < s; l++)
366
+ a === 0 && l === 0 || // top-left
367
+ a === 0 && l === s - 1 || // bottom-left
368
+ a === s - 1 && l === 0 || o.push([i[a], i[l]]);
370
369
  return o;
371
370
  };
372
371
  })(ke)), ke;
@@ -413,38 +412,38 @@ function Wn() {
413
412
  return e.isValid(o) ? parseInt(o, 10) : void 0;
414
413
  }, e.getPenaltyN1 = function(o) {
415
414
  const i = o.size;
416
- let s = 0, a = 0, u = 0, l = null, c = null;
415
+ let s = 0, a = 0, l = 0, u = null, c = null;
417
416
  for (let h = 0; h < i; h++) {
418
- a = u = 0, l = c = null;
417
+ a = l = 0, u = c = null;
419
418
  for (let m = 0; m < i; m++) {
420
419
  let y = o.get(h, m);
421
- 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);
420
+ y === u ? a++ : (a >= 5 && (s += t.N1 + (a - 5)), u = y, a = 1), y = o.get(m, h), y === c ? l++ : (l >= 5 && (s += t.N1 + (l - 5)), c = y, l = 1);
422
421
  }
423
- a >= 5 && (s += t.N1 + (a - 5)), u >= 5 && (s += t.N1 + (u - 5));
422
+ a >= 5 && (s += t.N1 + (a - 5)), l >= 5 && (s += t.N1 + (l - 5));
424
423
  }
425
424
  return s;
426
425
  }, e.getPenaltyN2 = function(o) {
427
426
  const i = o.size;
428
427
  let s = 0;
429
428
  for (let a = 0; a < i - 1; a++)
430
- for (let u = 0; u < i - 1; u++) {
431
- const l = o.get(a, u) + o.get(a, u + 1) + o.get(a + 1, u) + o.get(a + 1, u + 1);
432
- (l === 4 || l === 0) && s++;
429
+ for (let l = 0; l < i - 1; l++) {
430
+ const u = o.get(a, l) + o.get(a, l + 1) + o.get(a + 1, l) + o.get(a + 1, l + 1);
431
+ (u === 4 || u === 0) && s++;
433
432
  }
434
433
  return s * t.N2;
435
434
  }, e.getPenaltyN3 = function(o) {
436
435
  const i = o.size;
437
- let s = 0, a = 0, u = 0;
438
- for (let l = 0; l < i; l++) {
439
- a = u = 0;
436
+ let s = 0, a = 0, l = 0;
437
+ for (let u = 0; u < i; u++) {
438
+ a = l = 0;
440
439
  for (let c = 0; c < i; c++)
441
- 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++;
440
+ a = a << 1 & 2047 | o.get(u, c), c >= 10 && (a === 1488 || a === 93) && s++, l = l << 1 & 2047 | o.get(c, u), c >= 10 && (l === 1488 || l === 93) && s++;
442
441
  }
443
442
  return s * t.N3;
444
443
  }, e.getPenaltyN4 = function(o) {
445
444
  let i = 0;
446
445
  const s = o.data.length;
447
- for (let u = 0; u < s; u++) i += o.data[u];
446
+ for (let l = 0; l < s; l++) i += o.data[l];
448
447
  return Math.abs(Math.ceil(i * 100 / s / 5) - 10) * t.N4;
449
448
  };
450
449
  function r(n, o, i) {
@@ -472,25 +471,25 @@ function Wn() {
472
471
  e.applyMask = function(o, i) {
473
472
  const s = i.size;
474
473
  for (let a = 0; a < s; a++)
475
- for (let u = 0; u < s; u++)
476
- i.isReserved(u, a) || i.xor(u, a, r(o, u, a));
474
+ for (let l = 0; l < s; l++)
475
+ i.isReserved(l, a) || i.xor(l, a, r(o, l, a));
477
476
  }, e.getBestMask = function(o, i) {
478
477
  const s = Object.keys(e.Patterns).length;
479
- let a = 0, u = 1 / 0;
480
- for (let l = 0; l < s; l++) {
481
- i(l), e.applyMask(l, o);
478
+ let a = 0, l = 1 / 0;
479
+ for (let u = 0; u < s; u++) {
480
+ i(u), e.applyMask(u, o);
482
481
  const c = e.getPenaltyN1(o) + e.getPenaltyN2(o) + e.getPenaltyN3(o) + e.getPenaltyN4(o);
483
- e.applyMask(l, o), c < u && (u = c, a = l);
482
+ e.applyMask(u, o), c < l && (l = c, a = u);
484
483
  }
485
484
  return a;
486
485
  };
487
486
  })(Fe)), Fe;
488
487
  }
489
- var we = {}, Ct;
488
+ var ye = {}, Ct;
490
489
  function sn() {
491
- if (Ct) return we;
490
+ if (Ct) return ye;
492
491
  Ct = 1;
493
- const e = at(), t = [
492
+ const e = st(), t = [
494
493
  // L M Q H
495
494
  1,
496
495
  1,
@@ -815,7 +814,7 @@ function sn() {
815
814
  2040,
816
815
  2430
817
816
  ];
818
- return we.getBlocksCount = function(o, i) {
817
+ return ye.getBlocksCount = function(o, i) {
819
818
  switch (i) {
820
819
  case e.L:
821
820
  return t[(o - 1) * 4 + 0];
@@ -828,7 +827,7 @@ function sn() {
828
827
  default:
829
828
  return;
830
829
  }
831
- }, we.getTotalCodewordsCount = function(o, i) {
830
+ }, ye.getTotalCodewordsCount = function(o, i) {
832
831
  switch (i) {
833
832
  case e.L:
834
833
  return r[(o - 1) * 4 + 0];
@@ -841,12 +840,12 @@ function sn() {
841
840
  default:
842
841
  return;
843
842
  }
844
- }, we;
843
+ }, ye;
845
844
  }
846
- var Me = {}, le = {}, St;
845
+ var Me = {}, ue = {}, Rt;
847
846
  function Gn() {
848
- if (St) return le;
849
- St = 1;
847
+ if (Rt) return ue;
848
+ Rt = 1;
850
849
  const e = new Uint8Array(512), t = new Uint8Array(256);
851
850
  return (function() {
852
851
  let n = 1;
@@ -854,18 +853,18 @@ function Gn() {
854
853
  e[o] = n, t[n] = o, n <<= 1, n & 256 && (n ^= 285);
855
854
  for (let o = 255; o < 512; o++)
856
855
  e[o] = e[o - 255];
857
- })(), le.log = function(n) {
856
+ })(), ue.log = function(n) {
858
857
  if (n < 1) throw new Error("log(" + n + ")");
859
858
  return t[n];
860
- }, le.exp = function(n) {
859
+ }, ue.exp = function(n) {
861
860
  return e[n];
862
- }, le.mul = function(n, o) {
861
+ }, ue.mul = function(n, o) {
863
862
  return n === 0 || o === 0 ? 0 : e[t[n] + t[o]];
864
- }, le;
863
+ }, ue;
865
864
  }
866
- var Rt;
865
+ var St;
867
866
  function Qn() {
868
- return Rt || (Rt = 1, (function(e) {
867
+ return St || (St = 1, (function(e) {
869
868
  const t = Gn();
870
869
  e.mul = function(n, o) {
871
870
  const i = new Uint8Array(n.length + o.length - 1);
@@ -877,8 +876,8 @@ function Qn() {
877
876
  let i = new Uint8Array(n);
878
877
  for (; i.length - o.length >= 0; ) {
879
878
  const s = i[0];
880
- for (let u = 0; u < o.length; u++)
881
- i[u] ^= t.mul(o[u], s);
879
+ for (let l = 0; l < o.length; l++)
880
+ i[l] ^= t.mul(o[l], s);
882
881
  let a = 0;
883
882
  for (; a < i.length && i[a] === 0; ) a++;
884
883
  i = i.slice(a);
@@ -915,14 +914,14 @@ function Yn() {
915
914
  return i;
916
915
  }, De = t, De;
917
916
  }
918
- var qe = {}, je = {}, He = {}, At;
917
+ var ve = {}, qe = {}, je = {}, At;
919
918
  function an() {
920
- return At || (At = 1, He.isValid = function(t) {
919
+ return At || (At = 1, je.isValid = function(t) {
921
920
  return !isNaN(t) && t >= 1 && t <= 40;
922
- }), He;
921
+ }), je;
923
922
  }
924
923
  var z = {}, Bt;
925
- function un() {
924
+ function ln() {
926
925
  if (Bt) return z;
927
926
  Bt = 1;
928
927
  const e = "[0-9]+", t = "[A-Z $%*+\\-./:]+";
@@ -932,18 +931,18 @@ function un() {
932
931
  ]))+`;
933
932
  z.KANJI = new RegExp(r, "g"), z.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), z.BYTE = new RegExp(n, "g"), z.NUMERIC = new RegExp(e, "g"), z.ALPHANUMERIC = new RegExp(t, "g");
934
933
  const o = new RegExp("^" + r + "$"), i = new RegExp("^" + e + "$"), s = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
935
- return z.testKanji = function(u) {
936
- return o.test(u);
937
- }, z.testNumeric = function(u) {
938
- return i.test(u);
939
- }, z.testAlphanumeric = function(u) {
940
- return s.test(u);
934
+ return z.testKanji = function(l) {
935
+ return o.test(l);
936
+ }, z.testNumeric = function(l) {
937
+ return i.test(l);
938
+ }, z.testAlphanumeric = function(l) {
939
+ return s.test(l);
941
940
  }, z;
942
941
  }
943
942
  var Pt;
944
943
  function ee() {
945
944
  return Pt || (Pt = 1, (function(e) {
946
- const t = an(), r = un();
945
+ const t = an(), r = ln();
947
946
  e.NUMERIC = {
948
947
  id: "Numeric",
949
948
  bit: 1,
@@ -1000,24 +999,24 @@ function ee() {
1000
999
  return s;
1001
1000
  }
1002
1001
  };
1003
- })(je)), je;
1002
+ })(qe)), qe;
1004
1003
  }
1005
1004
  var Nt;
1006
1005
  function Xn() {
1007
1006
  return Nt || (Nt = 1, (function(e) {
1008
- const t = Z(), r = sn(), n = at(), o = ee(), i = an(), s = 7973, a = t.getBCHDigit(s);
1009
- function u(m, y, d) {
1007
+ const t = Z(), r = sn(), n = st(), o = ee(), i = an(), s = 7973, a = t.getBCHDigit(s);
1008
+ function l(m, y, d) {
1010
1009
  for (let p = 1; p <= 40; p++)
1011
1010
  if (y <= e.getCapacity(p, d, m))
1012
1011
  return p;
1013
1012
  }
1014
- function l(m, y) {
1013
+ function u(m, y) {
1015
1014
  return o.getCharCountIndicator(m, y) + 4;
1016
1015
  }
1017
1016
  function c(m, y) {
1018
1017
  let d = 0;
1019
1018
  return m.forEach(function(p) {
1020
- const g = l(p.mode, y);
1019
+ const g = u(p.mode, y);
1021
1020
  d += g + p.getBitsLength();
1022
1021
  }), d;
1023
1022
  }
@@ -1034,7 +1033,7 @@ function Xn() {
1034
1033
  typeof p > "u" && (p = o.BYTE);
1035
1034
  const g = t.getSymbolTotalCodewords(y), w = r.getTotalCodewordsCount(y, d), N = (g - w) * 8;
1036
1035
  if (p === o.MIXED) return N;
1037
- const E = N - l(p, y);
1036
+ const E = N - u(p, y);
1038
1037
  switch (p) {
1039
1038
  case o.NUMERIC:
1040
1039
  return Math.floor(E / 10 * 3);
@@ -1057,7 +1056,7 @@ function Xn() {
1057
1056
  p = y[0];
1058
1057
  } else
1059
1058
  p = y;
1060
- return u(p.mode, p.getLength(), g);
1059
+ return l(p.mode, p.getLength(), g);
1061
1060
  }, e.getEncodedBits = function(y) {
1062
1061
  if (!i.isValid(y) || y < 7)
1063
1062
  throw new Error("Invalid QR Code version");
@@ -1066,24 +1065,24 @@ function Xn() {
1066
1065
  d ^= s << t.getBCHDigit(d) - a;
1067
1066
  return y << 12 | d;
1068
1067
  };
1069
- })(qe)), qe;
1068
+ })(ve)), ve;
1070
1069
  }
1071
- var ze = {}, Ot;
1070
+ var He = {}, Ot;
1072
1071
  function Zn() {
1073
- if (Ot) return ze;
1072
+ if (Ot) return He;
1074
1073
  Ot = 1;
1075
1074
  const e = Z(), t = 1335, r = 21522, n = e.getBCHDigit(t);
1076
- return ze.getEncodedBits = function(i, s) {
1075
+ return He.getEncodedBits = function(i, s) {
1077
1076
  const a = i.bit << 3 | s;
1078
- let u = a << 10;
1079
- for (; e.getBCHDigit(u) - n >= 0; )
1080
- u ^= t << e.getBCHDigit(u) - n;
1081
- return (a << 10 | u) ^ r;
1082
- }, ze;
1077
+ let l = a << 10;
1078
+ for (; e.getBCHDigit(l) - n >= 0; )
1079
+ l ^= t << e.getBCHDigit(l) - n;
1080
+ return (a << 10 | l) ^ r;
1081
+ }, He;
1083
1082
  }
1084
- var $e = {}, Ve, Lt;
1083
+ var ze = {}, $e, Lt;
1085
1084
  function er() {
1086
- if (Lt) return Ve;
1085
+ if (Lt) return $e;
1087
1086
  Lt = 1;
1088
1087
  const e = ee();
1089
1088
  function t(r) {
@@ -1101,11 +1100,11 @@ function er() {
1101
1100
  i = this.data.substr(o, 3), s = parseInt(i, 10), n.put(s, 10);
1102
1101
  const a = this.data.length - o;
1103
1102
  a > 0 && (i = this.data.substr(o), s = parseInt(i, 10), n.put(s, a * 3 + 1));
1104
- }, Ve = t, Ve;
1103
+ }, $e = t, $e;
1105
1104
  }
1106
- var Je, It;
1105
+ var Ve, It;
1107
1106
  function tr() {
1108
- if (It) return Je;
1107
+ if (It) return Ve;
1109
1108
  It = 1;
1110
1109
  const e = ee(), t = [
1111
1110
  "0",
@@ -1170,11 +1169,11 @@ function tr() {
1170
1169
  s += t.indexOf(this.data[i + 1]), o.put(s, 11);
1171
1170
  }
1172
1171
  this.data.length % 2 && o.put(t.indexOf(this.data[i]), 6);
1173
- }, Je = r, Je;
1172
+ }, Ve = r, Ve;
1174
1173
  }
1175
- var Ke, _t;
1174
+ var Je, _t;
1176
1175
  function nr() {
1177
- if (_t) return Ke;
1176
+ if (_t) return Je;
1178
1177
  _t = 1;
1179
1178
  const e = ee();
1180
1179
  function t(r) {
@@ -1189,12 +1188,12 @@ function nr() {
1189
1188
  }, t.prototype.write = function(r) {
1190
1189
  for (let n = 0, o = this.data.length; n < o; n++)
1191
1190
  r.put(this.data[n], 8);
1192
- }, Ke = t, Ke;
1191
+ }, Je = t, Je;
1193
1192
  }
1194
- var We, vt;
1193
+ var Ke, Ut;
1195
1194
  function rr() {
1196
- if (vt) return We;
1197
- vt = 1;
1195
+ if (Ut) return Ke;
1196
+ Ut = 1;
1198
1197
  const e = ee(), t = Z();
1199
1198
  function r(n) {
1200
1199
  this.mode = e.KANJI, this.data = n;
@@ -1220,21 +1219,21 @@ Make sure your charset is UTF-8`
1220
1219
  );
1221
1220
  i = (i >>> 8 & 255) * 192 + (i & 255), n.put(i, 13);
1222
1221
  }
1223
- }, We = r, We;
1222
+ }, Ke = r, Ke;
1224
1223
  }
1225
- var Ge = { exports: {} }, Ut;
1224
+ var We = { exports: {} }, kt;
1226
1225
  function or() {
1227
- return Ut || (Ut = 1, (function(e) {
1226
+ return kt || (kt = 1, (function(e) {
1228
1227
  var t = {
1229
1228
  single_source_shortest_paths: function(r, n, o) {
1230
1229
  var i = {}, s = {};
1231
1230
  s[n] = 0;
1232
1231
  var a = t.PriorityQueue.make();
1233
1232
  a.push(n, 0);
1234
- for (var u, l, c, h, m, y, d, p, g; !a.empty(); ) {
1235
- u = a.pop(), l = u.value, h = u.cost, m = r[l] || {};
1233
+ for (var l, u, c, h, m, y, d, p, g; !a.empty(); ) {
1234
+ l = a.pop(), u = l.value, h = l.cost, m = r[u] || {};
1236
1235
  for (c in m)
1237
- 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));
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] = u));
1238
1237
  }
1239
1238
  if (typeof o < "u" && typeof s[o] > "u") {
1240
1239
  var w = ["Could not find a path from ", n, " to ", o, "."].join("");
@@ -1288,37 +1287,37 @@ function or() {
1288
1287
  }
1289
1288
  };
1290
1289
  e.exports = t;
1291
- })(Ge)), Ge.exports;
1290
+ })(We)), We.exports;
1292
1291
  }
1293
- var kt;
1292
+ var xt;
1294
1293
  function ir() {
1295
- return kt || (kt = 1, (function(e) {
1296
- const t = ee(), r = er(), n = tr(), o = nr(), i = rr(), s = un(), a = Z(), u = or();
1297
- function l(w) {
1294
+ return xt || (xt = 1, (function(e) {
1295
+ const t = ee(), r = er(), n = tr(), o = nr(), i = rr(), s = ln(), a = Z(), l = or();
1296
+ function u(w) {
1298
1297
  return unescape(encodeURIComponent(w)).length;
1299
1298
  }
1300
1299
  function c(w, N, E) {
1301
- const R = [];
1300
+ const S = [];
1302
1301
  let _;
1303
1302
  for (; (_ = w.exec(E)) !== null; )
1304
- R.push({
1303
+ S.push({
1305
1304
  data: _[0],
1306
1305
  index: _.index,
1307
1306
  mode: N,
1308
1307
  length: _[0].length
1309
1308
  });
1310
- return R;
1309
+ return S;
1311
1310
  }
1312
1311
  function h(w) {
1313
1312
  const N = c(s.NUMERIC, t.NUMERIC, w), E = c(s.ALPHANUMERIC, t.ALPHANUMERIC, w);
1314
- let R, _;
1315
- return a.isKanjiModeEnabled() ? (R = c(s.BYTE, t.BYTE, w), _ = c(s.KANJI, t.KANJI, w)) : (R = c(s.BYTE_KANJI, t.BYTE, w), _ = []), N.concat(E, R, _).sort(function(S, A) {
1316
- return S.index - A.index;
1317
- }).map(function(S) {
1313
+ let S, _;
1314
+ return a.isKanjiModeEnabled() ? (S = c(s.BYTE, t.BYTE, w), _ = c(s.KANJI, t.KANJI, w)) : (S = c(s.BYTE_KANJI, t.BYTE, w), _ = []), N.concat(E, S, _).sort(function(R, A) {
1315
+ return R.index - A.index;
1316
+ }).map(function(R) {
1318
1317
  return {
1319
- data: S.data,
1320
- mode: S.mode,
1321
- length: S.length
1318
+ data: R.data,
1319
+ mode: R.mode,
1320
+ length: R.length
1322
1321
  };
1323
1322
  });
1324
1323
  }
@@ -1336,67 +1335,67 @@ function ir() {
1336
1335
  }
1337
1336
  function y(w) {
1338
1337
  return w.reduce(function(N, E) {
1339
- const R = N.length - 1 >= 0 ? N[N.length - 1] : null;
1340
- return R && R.mode === E.mode ? (N[N.length - 1].data += E.data, N) : (N.push(E), N);
1338
+ const S = N.length - 1 >= 0 ? N[N.length - 1] : null;
1339
+ return S && S.mode === E.mode ? (N[N.length - 1].data += E.data, N) : (N.push(E), N);
1341
1340
  }, []);
1342
1341
  }
1343
1342
  function d(w) {
1344
1343
  const N = [];
1345
1344
  for (let E = 0; E < w.length; E++) {
1346
- const R = w[E];
1347
- switch (R.mode) {
1345
+ const S = w[E];
1346
+ switch (S.mode) {
1348
1347
  case t.NUMERIC:
1349
1348
  N.push([
1350
- R,
1351
- { data: R.data, mode: t.ALPHANUMERIC, length: R.length },
1352
- { data: R.data, mode: t.BYTE, length: R.length }
1349
+ S,
1350
+ { data: S.data, mode: t.ALPHANUMERIC, length: S.length },
1351
+ { data: S.data, mode: t.BYTE, length: S.length }
1353
1352
  ]);
1354
1353
  break;
1355
1354
  case t.ALPHANUMERIC:
1356
1355
  N.push([
1357
- R,
1358
- { data: R.data, mode: t.BYTE, length: R.length }
1356
+ S,
1357
+ { data: S.data, mode: t.BYTE, length: S.length }
1359
1358
  ]);
1360
1359
  break;
1361
1360
  case t.KANJI:
1362
1361
  N.push([
1363
- R,
1364
- { data: R.data, mode: t.BYTE, length: l(R.data) }
1362
+ S,
1363
+ { data: S.data, mode: t.BYTE, length: u(S.data) }
1365
1364
  ]);
1366
1365
  break;
1367
1366
  case t.BYTE:
1368
1367
  N.push([
1369
- { data: R.data, mode: t.BYTE, length: l(R.data) }
1368
+ { data: S.data, mode: t.BYTE, length: u(S.data) }
1370
1369
  ]);
1371
1370
  }
1372
1371
  }
1373
1372
  return N;
1374
1373
  }
1375
1374
  function p(w, N) {
1376
- const E = {}, R = { start: {} };
1375
+ const E = {}, S = { start: {} };
1377
1376
  let _ = ["start"];
1378
1377
  for (let b = 0; b < w.length; b++) {
1379
- const S = w[b], A = [];
1380
- for (let C = 0; C < S.length; C++) {
1381
- const L = S[C], B = "" + b + C;
1382
- A.push(B), E[B] = { node: L, lastCount: 0 }, R[B] = {};
1378
+ const R = w[b], A = [];
1379
+ for (let C = 0; C < R.length; C++) {
1380
+ const L = R[C], B = "" + b + C;
1381
+ A.push(B), E[B] = { node: L, lastCount: 0 }, S[B] = {};
1383
1382
  for (let P = 0; P < _.length; P++) {
1384
1383
  const T = _[P];
1385
- E[T] && E[T].node.mode === L.mode ? (R[T][B] = m(E[T].lastCount + L.length, L.mode) - m(E[T].lastCount, L.mode), E[T].lastCount += L.length) : (E[T] && (E[T].lastCount = L.length), R[T][B] = m(L.length, L.mode) + 4 + t.getCharCountIndicator(L.mode, N));
1384
+ E[T] && E[T].node.mode === L.mode ? (S[T][B] = m(E[T].lastCount + L.length, L.mode) - m(E[T].lastCount, L.mode), E[T].lastCount += L.length) : (E[T] && (E[T].lastCount = L.length), S[T][B] = m(L.length, L.mode) + 4 + t.getCharCountIndicator(L.mode, N));
1386
1385
  }
1387
1386
  }
1388
1387
  _ = A;
1389
1388
  }
1390
1389
  for (let b = 0; b < _.length; b++)
1391
- R[_[b]].end = 0;
1392
- return { map: R, table: E };
1390
+ S[_[b]].end = 0;
1391
+ return { map: S, table: E };
1393
1392
  }
1394
1393
  function g(w, N) {
1395
1394
  let E;
1396
- const R = t.getBestModeForData(w);
1397
- if (E = t.from(N, R), E !== t.BYTE && E.bit < R.bit)
1395
+ const S = t.getBestModeForData(w);
1396
+ if (E = t.from(N, S), E !== t.BYTE && E.bit < S.bit)
1398
1397
  throw new Error('"' + w + '" cannot be encoded with mode ' + t.toString(E) + `.
1399
- Suggested mode is: ` + t.toString(R));
1398
+ Suggested mode is: ` + t.toString(S));
1400
1399
  switch (E === t.KANJI && !a.isKanjiModeEnabled() && (E = t.BYTE), E) {
1401
1400
  case t.NUMERIC:
1402
1401
  return new r(w);
@@ -1409,28 +1408,28 @@ function ir() {
1409
1408
  }
1410
1409
  }
1411
1410
  e.fromArray = function(N) {
1412
- return N.reduce(function(E, R) {
1413
- return typeof R == "string" ? E.push(g(R, null)) : R.data && E.push(g(R.data, R.mode)), E;
1411
+ return N.reduce(function(E, S) {
1412
+ return typeof S == "string" ? E.push(g(S, null)) : S.data && E.push(g(S.data, S.mode)), E;
1414
1413
  }, []);
1415
1414
  }, e.fromString = function(N, E) {
1416
- const R = h(N, a.isKanjiModeEnabled()), _ = d(R), b = p(_, E), S = u.find_path(b.map, "start", "end"), A = [];
1417
- for (let C = 1; C < S.length - 1; C++)
1418
- A.push(b.table[S[C]].node);
1415
+ const S = h(N, a.isKanjiModeEnabled()), _ = d(S), b = p(_, E), R = l.find_path(b.map, "start", "end"), A = [];
1416
+ for (let C = 1; C < R.length - 1; C++)
1417
+ A.push(b.table[R[C]].node);
1419
1418
  return e.fromArray(y(A));
1420
1419
  }, e.rawSplit = function(N) {
1421
1420
  return e.fromArray(
1422
1421
  h(N, a.isKanjiModeEnabled())
1423
1422
  );
1424
1423
  };
1425
- })($e)), $e;
1424
+ })(ze)), ze;
1426
1425
  }
1427
- var xt;
1426
+ var Ft;
1428
1427
  function sr() {
1429
- if (xt) return Ie;
1430
- xt = 1;
1431
- const e = Z(), t = at(), r = $n(), n = Vn(), o = Jn(), i = Kn(), s = Wn(), a = sn(), u = Yn(), l = Xn(), c = Zn(), h = ee(), m = ir();
1432
- function y(b, S) {
1433
- const A = b.size, C = i.getPositions(S);
1428
+ if (Ft) return Le;
1429
+ Ft = 1;
1430
+ const e = Z(), t = st(), r = $n(), n = Vn(), o = Jn(), i = Kn(), s = Wn(), a = sn(), l = Yn(), u = Xn(), c = Zn(), h = ee(), m = ir();
1431
+ function y(b, R) {
1432
+ const A = b.size, C = i.getPositions(R);
1434
1433
  for (let L = 0; L < C.length; L++) {
1435
1434
  const B = C[L][0], P = C[L][1];
1436
1435
  for (let T = -1; T <= 7; T++)
@@ -1440,14 +1439,14 @@ function sr() {
1440
1439
  }
1441
1440
  }
1442
1441
  function d(b) {
1443
- const S = b.size;
1444
- for (let A = 8; A < S - 8; A++) {
1442
+ const R = b.size;
1443
+ for (let A = 8; A < R - 8; A++) {
1445
1444
  const C = A % 2 === 0;
1446
1445
  b.set(A, 6, C, !0), b.set(6, A, C, !0);
1447
1446
  }
1448
1447
  }
1449
- function p(b, S) {
1450
- const A = o.getPositions(S);
1448
+ function p(b, R) {
1449
+ const A = o.getPositions(R);
1451
1450
  for (let C = 0; C < A.length; C++) {
1452
1451
  const L = A[C][0], B = A[C][1];
1453
1452
  for (let P = -2; P <= 2; P++)
@@ -1455,20 +1454,20 @@ function sr() {
1455
1454
  P === -2 || P === 2 || T === -2 || T === 2 || P === 0 && T === 0 ? b.set(L + P, B + T, !0, !0) : b.set(L + P, B + T, !1, !0);
1456
1455
  }
1457
1456
  }
1458
- function g(b, S) {
1459
- const A = b.size, C = l.getEncodedBits(S);
1457
+ function g(b, R) {
1458
+ const A = b.size, C = u.getEncodedBits(R);
1460
1459
  let L, B, P;
1461
1460
  for (let T = 0; T < 18; T++)
1462
1461
  L = Math.floor(T / 3), B = T % 3 + A - 8 - 3, P = (C >> T & 1) === 1, b.set(L, B, P, !0), b.set(B, L, P, !0);
1463
1462
  }
1464
- function w(b, S, A) {
1465
- const C = b.size, L = c.getEncodedBits(S, A);
1463
+ function w(b, R, A) {
1464
+ const C = b.size, L = c.getEncodedBits(R, A);
1466
1465
  let B, P;
1467
1466
  for (B = 0; B < 15; B++)
1468
1467
  P = (L >> B & 1) === 1, B < 6 ? b.set(B, 8, P, !0) : B < 8 ? b.set(B + 1, 8, P, !0) : b.set(C - 15 + B, 8, P, !0), B < 8 ? b.set(8, C - B - 1, P, !0) : B < 9 ? b.set(8, 15 - B - 1 + 1, P, !0) : b.set(8, 15 - B - 1, P, !0);
1469
1468
  b.set(C - 8, 8, 1, !0);
1470
1469
  }
1471
- function N(b, S) {
1470
+ function N(b, R) {
1472
1471
  const A = b.size;
1473
1472
  let C = -1, L = A - 1, B = 7, P = 0;
1474
1473
  for (let T = A - 1; T > 0; T -= 2)
@@ -1476,7 +1475,7 @@ function sr() {
1476
1475
  for (let O = 0; O < 2; O++)
1477
1476
  if (!b.isReserved(L, T - O)) {
1478
1477
  let q = !1;
1479
- P < S.length && (q = (S[P] >>> B & 1) === 1), b.set(L, T - O, q), B--, B === -1 && (P++, B = 7);
1478
+ P < R.length && (q = (R[P] >>> B & 1) === 1), b.set(L, T - O, q), B--, B === -1 && (P++, B = 7);
1480
1479
  }
1481
1480
  if (L += C, L < 0 || A <= L) {
1482
1481
  L -= C, C = -C;
@@ -1484,86 +1483,86 @@ function sr() {
1484
1483
  }
1485
1484
  }
1486
1485
  }
1487
- function E(b, S, A) {
1486
+ function E(b, R, A) {
1488
1487
  const C = new r();
1489
1488
  A.forEach(function(O) {
1490
1489
  C.put(O.mode.bit, 4), C.put(O.getLength(), h.getCharCountIndicator(O.mode, b)), O.write(C);
1491
1490
  });
1492
- const L = e.getSymbolTotalCodewords(b), B = a.getTotalCodewordsCount(b, S), P = (L - B) * 8;
1491
+ const L = e.getSymbolTotalCodewords(b), B = a.getTotalCodewordsCount(b, R), P = (L - B) * 8;
1493
1492
  for (C.getLengthInBits() + 4 <= P && C.put(0, 4); C.getLengthInBits() % 8 !== 0; )
1494
1493
  C.putBit(0);
1495
1494
  const T = (P - C.getLengthInBits()) / 8;
1496
1495
  for (let O = 0; O < T; O++)
1497
1496
  C.put(O % 2 ? 17 : 236, 8);
1498
- return R(C, b, S);
1497
+ return S(C, b, R);
1499
1498
  }
1500
- function R(b, S, A) {
1501
- const C = e.getSymbolTotalCodewords(S), L = a.getTotalCodewordsCount(S, A), B = C - L, P = a.getBlocksCount(S, A), T = C % P, O = P - T, q = Math.floor(C / P), U = Math.floor(B / P), me = U + 1, j = q - U, ye = new u(j);
1502
- let ue = 0;
1503
- const D = new Array(P), V = new Array(P);
1499
+ function S(b, R, A) {
1500
+ const C = e.getSymbolTotalCodewords(R), L = a.getTotalCodewordsCount(R, A), B = C - L, P = a.getBlocksCount(R, A), T = C % P, O = P - T, q = Math.floor(C / P), k = Math.floor(B / P), ge = k + 1, j = q - k, me = new l(j);
1501
+ let le = 0;
1502
+ const v = new Array(P), V = new Array(P);
1504
1503
  let G = 0;
1505
1504
  const te = new Uint8Array(b.buffer);
1506
1505
  for (let re = 0; re < P; re++) {
1507
- const Oe = re < O ? U : me;
1508
- D[re] = te.slice(ue, ue + Oe), V[re] = ye.encode(D[re]), ue += Oe, G = Math.max(G, Oe);
1506
+ const Ne = re < O ? k : ge;
1507
+ v[re] = te.slice(le, le + Ne), V[re] = me.encode(v[re]), le += Ne, G = Math.max(G, Ne);
1509
1508
  }
1510
1509
  const ne = new Uint8Array(C);
1511
1510
  let dt = 0, J, K;
1512
1511
  for (J = 0; J < G; J++)
1513
1512
  for (K = 0; K < P; K++)
1514
- J < D[K].length && (ne[dt++] = D[K][J]);
1513
+ J < v[K].length && (ne[dt++] = v[K][J]);
1515
1514
  for (J = 0; J < j; J++)
1516
1515
  for (K = 0; K < P; K++)
1517
1516
  ne[dt++] = V[K][J];
1518
1517
  return ne;
1519
1518
  }
1520
- function _(b, S, A, C) {
1519
+ function _(b, R, A, C) {
1521
1520
  let L;
1522
1521
  if (Array.isArray(b))
1523
1522
  L = m.fromArray(b);
1524
1523
  else if (typeof b == "string") {
1525
- let q = S;
1524
+ let q = R;
1526
1525
  if (!q) {
1527
- const U = m.rawSplit(b);
1528
- q = l.getBestVersionForData(U, A);
1526
+ const k = m.rawSplit(b);
1527
+ q = u.getBestVersionForData(k, A);
1529
1528
  }
1530
1529
  L = m.fromString(b, q || 40);
1531
1530
  } else
1532
1531
  throw new Error("Invalid data");
1533
- const B = l.getBestVersionForData(L, A);
1532
+ const B = u.getBestVersionForData(L, A);
1534
1533
  if (!B)
1535
1534
  throw new Error("The amount of data is too big to be stored in a QR Code");
1536
- if (!S)
1537
- S = B;
1538
- else if (S < B)
1535
+ if (!R)
1536
+ R = B;
1537
+ else if (R < B)
1539
1538
  throw new Error(
1540
1539
  `
1541
1540
  The chosen QR Code version cannot contain this amount of data.
1542
1541
  Minimum version required to store current data is: ` + B + `.
1543
1542
  `
1544
1543
  );
1545
- const P = E(S, A, L), T = e.getSymbolSize(S), O = new n(T);
1546
- return y(O, S), d(O), p(O, S), w(O, A, 0), S >= 7 && g(O, S), N(O, P), isNaN(C) && (C = s.getBestMask(
1544
+ const P = E(R, A, L), T = e.getSymbolSize(R), O = new n(T);
1545
+ return y(O, R), d(O), p(O, R), w(O, A, 0), R >= 7 && g(O, R), N(O, P), isNaN(C) && (C = s.getBestMask(
1547
1546
  O,
1548
1547
  w.bind(null, O, A)
1549
1548
  )), s.applyMask(C, O), w(O, A, C), {
1550
1549
  modules: O,
1551
- version: S,
1550
+ version: R,
1552
1551
  errorCorrectionLevel: A,
1553
1552
  maskPattern: C,
1554
1553
  segments: L
1555
1554
  };
1556
1555
  }
1557
- return Ie.create = function(S, A) {
1558
- if (typeof S > "u" || S === "")
1556
+ return Le.create = function(R, A) {
1557
+ if (typeof R > "u" || R === "")
1559
1558
  throw new Error("No input text");
1560
1559
  let C = t.M, L, B;
1561
- 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);
1562
- }, Ie;
1560
+ return typeof A < "u" && (C = t.from(A.errorCorrectionLevel, t.M), L = u.from(A.version), B = s.from(A.maskPattern), A.toSJISFunc && e.setToSJISFunction(A.toSJISFunc)), _(R, L, C, B);
1561
+ }, Le;
1563
1562
  }
1564
- var Qe = {}, Ye = {}, Ft;
1565
- function ln() {
1566
- return Ft || (Ft = 1, (function(e) {
1563
+ var Ge = {}, Qe = {}, Mt;
1564
+ function un() {
1565
+ return Mt || (Mt = 1, (function(e) {
1567
1566
  function t(r) {
1568
1567
  if (typeof r == "number" && (r = r.toString()), typeof r != "string")
1569
1568
  throw new Error("Color should be defined as hex string");
@@ -1602,23 +1601,23 @@ function ln() {
1602
1601
  const i = e.getScale(n, o);
1603
1602
  return Math.floor((n + o.margin * 2) * i);
1604
1603
  }, e.qrToImageData = function(n, o, i) {
1605
- 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];
1606
- for (let m = 0; m < l; m++)
1607
- for (let y = 0; y < l; y++) {
1608
- let d = (m * l + y) * 4, p = i.color.light;
1609
- if (m >= c && y >= c && m < l - c && y < l - c) {
1610
- const g = Math.floor((m - c) / u), w = Math.floor((y - c) / u);
1604
+ const s = o.modules.size, a = o.modules.data, l = e.getScale(s, i), u = Math.floor((s + i.margin * 2) * l), c = i.margin * l, h = [i.color.light, i.color.dark];
1605
+ for (let m = 0; m < u; m++)
1606
+ for (let y = 0; y < u; y++) {
1607
+ let d = (m * u + y) * 4, p = i.color.light;
1608
+ if (m >= c && y >= c && m < u - c && y < u - c) {
1609
+ const g = Math.floor((m - c) / l), w = Math.floor((y - c) / l);
1611
1610
  p = h[a[g * s + w] ? 1 : 0];
1612
1611
  }
1613
1612
  n[d++] = p.r, n[d++] = p.g, n[d++] = p.b, n[d] = p.a;
1614
1613
  }
1615
1614
  };
1616
- })(Ye)), Ye;
1615
+ })(Qe)), Qe;
1617
1616
  }
1618
- var Mt;
1617
+ var Dt;
1619
1618
  function ar() {
1620
- return Mt || (Mt = 1, (function(e) {
1621
- const t = ln();
1619
+ return Dt || (Dt = 1, (function(e) {
1620
+ const t = un();
1622
1621
  function r(o, i, s) {
1623
1622
  o.clearRect(0, 0, i.width, i.height), i.style || (i.style = {}), i.height = s, i.width = s, i.style.height = s + "px", i.style.width = s + "px";
1624
1623
  }
@@ -1630,23 +1629,23 @@ function ar() {
1630
1629
  }
1631
1630
  }
1632
1631
  e.render = function(i, s, a) {
1633
- let u = a, l = s;
1634
- typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), s || (l = n()), u = t.getOptions(u);
1635
- const c = t.getImageWidth(i.modules.size, u), h = l.getContext("2d"), m = h.createImageData(c, c);
1636
- return t.qrToImageData(m.data, i, u), r(h, l, c), h.putImageData(m, 0, 0), l;
1632
+ let l = a, u = s;
1633
+ typeof l > "u" && (!s || !s.getContext) && (l = s, s = void 0), s || (u = n()), l = t.getOptions(l);
1634
+ const c = t.getImageWidth(i.modules.size, l), h = u.getContext("2d"), m = h.createImageData(c, c);
1635
+ return t.qrToImageData(m.data, i, l), r(h, u, c), h.putImageData(m, 0, 0), u;
1637
1636
  }, e.renderToDataURL = function(i, s, a) {
1638
- let u = a;
1639
- typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), u || (u = {});
1640
- const l = e.render(i, s, u), c = u.type || "image/png", h = u.rendererOpts || {};
1641
- return l.toDataURL(c, h.quality);
1637
+ let l = a;
1638
+ typeof l > "u" && (!s || !s.getContext) && (l = s, s = void 0), l || (l = {});
1639
+ const u = e.render(i, s, l), c = l.type || "image/png", h = l.rendererOpts || {};
1640
+ return u.toDataURL(c, h.quality);
1642
1641
  };
1643
- })(Qe)), Qe;
1642
+ })(Ge)), Ge;
1644
1643
  }
1645
- var Xe = {}, Dt;
1646
- function ur() {
1647
- if (Dt) return Xe;
1648
- Dt = 1;
1649
- const e = ln();
1644
+ var Ye = {}, vt;
1645
+ function lr() {
1646
+ if (vt) return Ye;
1647
+ vt = 1;
1648
+ const e = un();
1650
1649
  function t(o, i) {
1651
1650
  const s = o.a / 255, a = i + '="' + o.hex + '"';
1652
1651
  return s < 1 ? a + " " + i + '-opacity="' + s.toFixed(2).slice(1) + '"' : a;
@@ -1656,92 +1655,92 @@ function ur() {
1656
1655
  return typeof s < "u" && (a += " " + s), a;
1657
1656
  }
1658
1657
  function n(o, i, s) {
1659
- let a = "", u = 0, l = !1, c = 0;
1658
+ let a = "", l = 0, u = !1, c = 0;
1660
1659
  for (let h = 0; h < o.length; h++) {
1661
1660
  const m = Math.floor(h % i), y = Math.floor(h / i);
1662
- !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++;
1661
+ !m && !u && (u = !0), o[h] ? (c++, h > 0 && m > 0 && o[h - 1] || (a += u ? r("M", m + s, 0.5 + y + s) : r("m", l, 0), l = 0, u = !1), m + 1 < i && o[h + 1] || (a += r("h", c), c = 0)) : l++;
1663
1662
  }
1664
1663
  return a;
1665
1664
  }
1666
- return Xe.render = function(i, s, a) {
1667
- 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>
1665
+ return Ye.render = function(i, s, a) {
1666
+ const l = e.getOptions(s), u = i.modules.size, c = i.modules.data, h = u + l.margin * 2, m = l.color.light.a ? "<path " + t(l.color.light, "fill") + ' d="M0 0h' + h + "v" + h + 'H0z"/>' : "", y = "<path " + t(l.color.dark, "stroke") + ' d="' + n(c, u, l.margin) + '"/>', d = 'viewBox="0 0 ' + h + " " + h + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (l.width ? 'width="' + l.width + '" height="' + l.width + '" ' : "") + d + ' shape-rendering="crispEdges">' + m + y + `</svg>
1668
1667
  `;
1669
1668
  return typeof a == "function" && a(null, g), g;
1670
- }, Xe;
1669
+ }, Ye;
1671
1670
  }
1672
1671
  var qt;
1673
- function lr() {
1672
+ function ur() {
1674
1673
  if (qt) return oe;
1675
1674
  qt = 1;
1676
- const e = zn(), t = sr(), r = ar(), n = ur();
1677
- function o(i, s, a, u, l) {
1675
+ const e = zn(), t = sr(), r = ar(), n = lr();
1676
+ function o(i, s, a, l, u) {
1678
1677
  const c = [].slice.call(arguments, 1), h = c.length, m = typeof c[h - 1] == "function";
1679
1678
  if (!m && !e())
1680
1679
  throw new Error("Callback required as last argument");
1681
1680
  if (m) {
1682
1681
  if (h < 2)
1683
1682
  throw new Error("Too few arguments provided");
1684
- 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));
1683
+ h === 2 ? (u = a, a = s, s = l = void 0) : h === 3 && (s.getContext && typeof u > "u" ? (u = l, l = void 0) : (u = l, l = a, a = s, s = void 0));
1685
1684
  } else {
1686
1685
  if (h < 1)
1687
1686
  throw new Error("Too few arguments provided");
1688
- return h === 1 ? (a = s, s = u = void 0) : h === 2 && !s.getContext && (u = a, a = s, s = void 0), new Promise(function(y, d) {
1687
+ return h === 1 ? (a = s, s = l = void 0) : h === 2 && !s.getContext && (l = a, a = s, s = void 0), new Promise(function(y, d) {
1689
1688
  try {
1690
- const p = t.create(a, u);
1691
- y(i(p, s, u));
1689
+ const p = t.create(a, l);
1690
+ y(i(p, s, l));
1692
1691
  } catch (p) {
1693
1692
  d(p);
1694
1693
  }
1695
1694
  });
1696
1695
  }
1697
1696
  try {
1698
- const y = t.create(a, u);
1699
- l(null, i(y, s, u));
1697
+ const y = t.create(a, l);
1698
+ u(null, i(y, s, l));
1700
1699
  } catch (y) {
1701
- l(y);
1700
+ u(y);
1702
1701
  }
1703
1702
  }
1704
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) {
1705
1704
  return n.render(i, a);
1706
1705
  }), oe;
1707
1706
  }
1708
- var cr = lr();
1707
+ var cr = ur();
1709
1708
  function cn(e, t) {
1710
1709
  return function() {
1711
1710
  return e.apply(t, arguments);
1712
1711
  };
1713
1712
  }
1714
- const { toString: fr } = Object.prototype, { getPrototypeOf: ut } = Object, { iterator: Te, toStringTag: fn } = Symbol, Ae = /* @__PURE__ */ ((e) => (t) => {
1713
+ const { toString: fr } = Object.prototype, { getPrototypeOf: at } = Object, { iterator: Se, toStringTag: fn } = Symbol, Te = /* @__PURE__ */ ((e) => (t) => {
1715
1714
  const r = fr.call(t);
1716
1715
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
1717
- })(/* @__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");
1718
- function de(e) {
1719
- return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1716
+ })(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => Te(t) === e), Ae = (e) => (t) => typeof t === e, { isArray: se } = Array, ie = Ae("undefined");
1717
+ function fe(e) {
1718
+ return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && M(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1720
1719
  }
1721
1720
  const dn = H("ArrayBuffer");
1722
1721
  function dr(e) {
1723
1722
  let t;
1724
1723
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dn(e.buffer), t;
1725
1724
  }
1726
- const hr = Be("string"), F = Be("function"), hn = Be("number"), he = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, Ee = (e) => {
1727
- if (Ae(e) !== "object")
1725
+ const hr = Ae("string"), M = Ae("function"), hn = Ae("number"), de = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, be = (e) => {
1726
+ if (Te(e) !== "object")
1728
1727
  return !1;
1729
- const t = ut(e);
1730
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(fn in e) && !(Te in e);
1728
+ const t = at(e);
1729
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(fn in e) && !(Se in e);
1731
1730
  }, gr = (e) => {
1732
- if (!he(e) || de(e))
1731
+ if (!de(e) || fe(e))
1733
1732
  return !1;
1734
1733
  try {
1735
1734
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
1736
1735
  } catch {
1737
1736
  return !1;
1738
1737
  }
1739
- }, mr = H("Date"), yr = H("File"), wr = H("Blob"), br = H("FileList"), Er = (e) => he(e) && F(e.pipe), Cr = (e) => {
1738
+ }, mr = H("Date"), yr = H("File"), wr = H("Blob"), br = H("FileList"), Er = (e) => de(e) && M(e.pipe), Cr = (e) => {
1740
1739
  let t;
1741
- return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = Ae(e)) === "formdata" || // detect form-data instance
1742
- t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
1743
- }, Sr = H("URLSearchParams"), [Rr, Tr, Ar, Br] = ["ReadableStream", "Request", "Response", "Headers"].map(H), Pr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1744
- function pe(e, t, { allOwnKeys: r = !1 } = {}) {
1740
+ return e && (typeof FormData == "function" && e instanceof FormData || M(e.append) && ((t = Te(e)) === "formdata" || // detect form-data instance
1741
+ t === "object" && M(e.toString) && e.toString() === "[object FormData]"));
1742
+ }, Rr = H("URLSearchParams"), [Sr, Tr, Ar, Br] = ["ReadableStream", "Request", "Response", "Headers"].map(H), Pr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1743
+ function he(e, t, { allOwnKeys: r = !1 } = {}) {
1745
1744
  if (e === null || typeof e > "u")
1746
1745
  return;
1747
1746
  let n, o;
@@ -1749,7 +1748,7 @@ function pe(e, t, { allOwnKeys: r = !1 } = {}) {
1749
1748
  for (n = 0, o = e.length; n < o; n++)
1750
1749
  t.call(null, e[n], n, e);
1751
1750
  else {
1752
- if (de(e))
1751
+ if (fe(e))
1753
1752
  return;
1754
1753
  const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), s = i.length;
1755
1754
  let a;
@@ -1758,7 +1757,7 @@ function pe(e, t, { allOwnKeys: r = !1 } = {}) {
1758
1757
  }
1759
1758
  }
1760
1759
  function pn(e, t) {
1761
- if (de(e))
1760
+ if (fe(e))
1762
1761
  return null;
1763
1762
  t = t.toLowerCase();
1764
1763
  const r = Object.keys(e);
@@ -1769,17 +1768,17 @@ function pn(e, t) {
1769
1768
  return null;
1770
1769
  }
1771
1770
  const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, gn = (e) => !ie(e) && e !== Q;
1772
- function rt() {
1771
+ function nt() {
1773
1772
  const { caseless: e, skipUndefined: t } = gn(this) && this || {}, r = {}, n = (o, i) => {
1774
1773
  const s = e && pn(r, i) || i;
1775
- Ee(r[s]) && Ee(o) ? r[s] = rt(r[s], o) : Ee(o) ? r[s] = rt({}, o) : se(o) ? r[s] = o.slice() : (!t || !ie(o)) && (r[s] = o);
1774
+ be(r[s]) && be(o) ? r[s] = nt(r[s], o) : be(o) ? r[s] = nt({}, o) : se(o) ? r[s] = o.slice() : (!t || !ie(o)) && (r[s] = o);
1776
1775
  };
1777
1776
  for (let o = 0, i = arguments.length; o < i; o++)
1778
- arguments[o] && pe(arguments[o], n);
1777
+ arguments[o] && he(arguments[o], n);
1779
1778
  return r;
1780
1779
  }
1781
- const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
1782
- r && F(o) ? e[i] = cn(o, r) : e[i] = o;
1780
+ const Nr = (e, t, r, { allOwnKeys: n } = {}) => (he(t, (o, i) => {
1781
+ r && M(o) ? e[i] = cn(o, r) : e[i] = o;
1783
1782
  }, { allOwnKeys: n }), e), Or = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Lr = (e, t, r, n) => {
1784
1783
  e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1785
1784
  value: t.prototype
@@ -1791,14 +1790,14 @@ const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
1791
1790
  do {
1792
1791
  for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
1793
1792
  s = o[i], (!n || n(s, e, t)) && !a[s] && (t[s] = e[s], a[s] = !0);
1794
- e = r !== !1 && ut(e);
1793
+ e = r !== !1 && at(e);
1795
1794
  } while (e && (!r || r(e, t)) && e !== Object.prototype);
1796
1795
  return t;
1797
1796
  }, _r = (e, t, r) => {
1798
1797
  e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
1799
1798
  const n = e.indexOf(t, r);
1800
1799
  return n !== -1 && n === r;
1801
- }, vr = (e) => {
1800
+ }, Ur = (e) => {
1802
1801
  if (!e) return null;
1803
1802
  if (se(e)) return e;
1804
1803
  let t = e.length;
@@ -1807,36 +1806,36 @@ const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
1807
1806
  for (; t-- > 0; )
1808
1807
  r[t] = e[t];
1809
1808
  return r;
1810
- }, Ur = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ut(Uint8Array)), kr = (e, t) => {
1811
- const n = (e && e[Te]).call(e);
1809
+ }, kr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && at(Uint8Array)), xr = (e, t) => {
1810
+ const n = (e && e[Se]).call(e);
1812
1811
  let o;
1813
1812
  for (; (o = n.next()) && !o.done; ) {
1814
1813
  const i = o.value;
1815
1814
  t.call(e, i[0], i[1]);
1816
1815
  }
1817
- }, xr = (e, t) => {
1816
+ }, Fr = (e, t) => {
1818
1817
  let r;
1819
1818
  const n = [];
1820
1819
  for (; (r = e.exec(t)) !== null; )
1821
1820
  n.push(r);
1822
1821
  return n;
1823
- }, Fr = H("HTMLFormElement"), Mr = (e) => e.toLowerCase().replace(
1822
+ }, Mr = H("HTMLFormElement"), Dr = (e) => e.toLowerCase().replace(
1824
1823
  /[-_\s]([a-z\d])(\w*)/g,
1825
1824
  function(r, n, o) {
1826
1825
  return n.toUpperCase() + o;
1827
1826
  }
1828
- ), jt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Dr = H("RegExp"), mn = (e, t) => {
1827
+ ), jt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), vr = H("RegExp"), mn = (e, t) => {
1829
1828
  const r = Object.getOwnPropertyDescriptors(e), n = {};
1830
- pe(r, (o, i) => {
1829
+ he(r, (o, i) => {
1831
1830
  let s;
1832
1831
  (s = t(o, i, e)) !== !1 && (n[i] = s || o);
1833
1832
  }), Object.defineProperties(e, n);
1834
1833
  }, qr = (e) => {
1835
1834
  mn(e, (t, r) => {
1836
- if (F(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
1835
+ if (M(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
1837
1836
  return !1;
1838
1837
  const n = e[r];
1839
- if (F(n)) {
1838
+ if (M(n)) {
1840
1839
  if (t.enumerable = !1, "writable" in t) {
1841
1840
  t.writable = !1;
1842
1841
  return;
@@ -1856,47 +1855,47 @@ const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
1856
1855
  }, Hr = () => {
1857
1856
  }, zr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1858
1857
  function $r(e) {
1859
- return !!(e && F(e.append) && e[fn] === "FormData" && e[Te]);
1858
+ return !!(e && M(e.append) && e[fn] === "FormData" && e[Se]);
1860
1859
  }
1861
1860
  const Vr = (e) => {
1862
1861
  const t = new Array(10), r = (n, o) => {
1863
- if (he(n)) {
1862
+ if (de(n)) {
1864
1863
  if (t.indexOf(n) >= 0)
1865
1864
  return;
1866
- if (de(n))
1865
+ if (fe(n))
1867
1866
  return n;
1868
1867
  if (!("toJSON" in n)) {
1869
1868
  t[o] = n;
1870
1869
  const i = se(n) ? [] : {};
1871
- return pe(n, (s, a) => {
1872
- const u = r(s, o + 1);
1873
- !ie(u) && (i[a] = u);
1870
+ return he(n, (s, a) => {
1871
+ const l = r(s, o + 1);
1872
+ !ie(l) && (i[a] = l);
1874
1873
  }), t[o] = void 0, i;
1875
1874
  }
1876
1875
  }
1877
1876
  return n;
1878
1877
  };
1879
1878
  return r(e, 0);
1880
- }, Jr = H("AsyncFunction"), Kr = (e) => e && (he(e) || F(e)) && F(e.then) && F(e.catch), yn = ((e, t) => e ? setImmediate : t ? ((r, n) => (Q.addEventListener("message", ({ source: o, data: i }) => {
1879
+ }, Jr = H("AsyncFunction"), Kr = (e) => e && (de(e) || M(e)) && M(e.then) && M(e.catch), yn = ((e, t) => e ? setImmediate : t ? ((r, n) => (Q.addEventListener("message", ({ source: o, data: i }) => {
1881
1880
  o === Q && i === r && n.length && n.shift()();
1882
1881
  }, !1), (o) => {
1883
1882
  n.push(o), Q.postMessage(r, "*");
1884
1883
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
1885
1884
  typeof setImmediate == "function",
1886
- F(Q.postMessage)
1887
- ), Wr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || yn, Gr = (e) => e != null && F(e[Te]), f = {
1885
+ M(Q.postMessage)
1886
+ ), Wr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || yn, Gr = (e) => e != null && M(e[Se]), f = {
1888
1887
  isArray: se,
1889
1888
  isArrayBuffer: dn,
1890
- isBuffer: de,
1889
+ isBuffer: fe,
1891
1890
  isFormData: Cr,
1892
1891
  isArrayBufferView: dr,
1893
1892
  isString: hr,
1894
1893
  isNumber: hn,
1895
1894
  isBoolean: pr,
1896
- isObject: he,
1897
- isPlainObject: Ee,
1895
+ isObject: de,
1896
+ isPlainObject: be,
1898
1897
  isEmptyObject: gr,
1899
- isReadableStream: Rr,
1898
+ isReadableStream: Sr,
1900
1899
  isRequest: Tr,
1901
1900
  isResponse: Ar,
1902
1901
  isHeaders: Br,
@@ -1904,33 +1903,33 @@ const Vr = (e) => {
1904
1903
  isDate: mr,
1905
1904
  isFile: yr,
1906
1905
  isBlob: wr,
1907
- isRegExp: Dr,
1908
- isFunction: F,
1906
+ isRegExp: vr,
1907
+ isFunction: M,
1909
1908
  isStream: Er,
1910
- isURLSearchParams: Sr,
1911
- isTypedArray: Ur,
1909
+ isURLSearchParams: Rr,
1910
+ isTypedArray: kr,
1912
1911
  isFileList: br,
1913
- forEach: pe,
1914
- merge: rt,
1912
+ forEach: he,
1913
+ merge: nt,
1915
1914
  extend: Nr,
1916
1915
  trim: Pr,
1917
1916
  stripBOM: Or,
1918
1917
  inherits: Lr,
1919
1918
  toFlatObject: Ir,
1920
- kindOf: Ae,
1919
+ kindOf: Te,
1921
1920
  kindOfTest: H,
1922
1921
  endsWith: _r,
1923
- toArray: vr,
1924
- forEachEntry: kr,
1925
- matchAll: xr,
1926
- isHTMLForm: Fr,
1922
+ toArray: Ur,
1923
+ forEachEntry: xr,
1924
+ matchAll: Fr,
1925
+ isHTMLForm: Mr,
1927
1926
  hasOwnProperty: jt,
1928
1927
  hasOwnProp: jt,
1929
1928
  // an alias to avoid ESLint no-prototype-builtins detection
1930
1929
  reduceDescriptors: mn,
1931
1930
  freezeMethods: qr,
1932
1931
  toObjectSet: jr,
1933
- toCamelCase: Mr,
1932
+ toCamelCase: Dr,
1934
1933
  noop: Hr,
1935
1934
  toFiniteNumber: zr,
1936
1935
  findKey: pn,
@@ -1992,12 +1991,12 @@ I.from = (e, t, r, n, o, i) => {
1992
1991
  const s = Object.create(wn);
1993
1992
  f.toFlatObject(e, s, function(c) {
1994
1993
  return c !== Error.prototype;
1995
- }, (l) => l !== "isAxiosError");
1996
- const a = e && e.message ? e.message : "Error", u = t == null && e ? e.code : t;
1997
- 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;
1994
+ }, (u) => u !== "isAxiosError");
1995
+ const a = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
1996
+ return I.call(s, a, l, 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;
1998
1997
  };
1999
1998
  const Qr = null;
2000
- function ot(e) {
1999
+ function rt(e) {
2001
2000
  return f.isPlainObject(e) || f.isArray(e);
2002
2001
  }
2003
2002
  function En(e) {
@@ -2009,12 +2008,12 @@ function Ht(e, t, r) {
2009
2008
  }).join(r ? "." : "") : t;
2010
2009
  }
2011
2010
  function Yr(e) {
2012
- return f.isArray(e) && !e.some(ot);
2011
+ return f.isArray(e) && !e.some(rt);
2013
2012
  }
2014
2013
  const Xr = f.toFlatObject(f, {}, null, function(t) {
2015
2014
  return /^is[A-Z]/.test(t);
2016
2015
  });
2017
- function Pe(e, t, r) {
2016
+ function Be(e, t, r) {
2018
2017
  if (!f.isObject(e))
2019
2018
  throw new TypeError("target must be an object");
2020
2019
  t = t || new FormData(), r = f.toFlatObject(r, {
@@ -2024,18 +2023,18 @@ function Pe(e, t, r) {
2024
2023
  }, !1, function(p, g) {
2025
2024
  return !f.isUndefined(g[p]);
2026
2025
  });
2027
- const n = r.metaTokens, o = r.visitor || c, i = r.dots, s = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
2026
+ const n = r.metaTokens, o = r.visitor || c, i = r.dots, s = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
2028
2027
  if (!f.isFunction(o))
2029
2028
  throw new TypeError("visitor must be a function");
2030
- function l(d) {
2029
+ function u(d) {
2031
2030
  if (d === null) return "";
2032
2031
  if (f.isDate(d))
2033
2032
  return d.toISOString();
2034
2033
  if (f.isBoolean(d))
2035
2034
  return d.toString();
2036
- if (!u && f.isBlob(d))
2035
+ if (!l && f.isBlob(d))
2037
2036
  throw new I("Blob is not supported. Use a Buffer instead.");
2038
- return f.isArrayBuffer(d) || f.isTypedArray(d) ? u && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
2037
+ return f.isArrayBuffer(d) || f.isTypedArray(d) ? l && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
2039
2038
  }
2040
2039
  function c(d, p, g) {
2041
2040
  let w = d;
@@ -2043,20 +2042,20 @@ function Pe(e, t, r) {
2043
2042
  if (f.endsWith(p, "{}"))
2044
2043
  p = n ? p : p.slice(0, -2), d = JSON.stringify(d);
2045
2044
  else if (f.isArray(d) && Yr(d) || (f.isFileList(d) || f.endsWith(p, "[]")) && (w = f.toArray(d)))
2046
- return p = En(p), w.forEach(function(E, R) {
2045
+ return p = En(p), w.forEach(function(E, S) {
2047
2046
  !(f.isUndefined(E) || E === null) && t.append(
2048
2047
  // eslint-disable-next-line no-nested-ternary
2049
- s === !0 ? Ht([p], R, i) : s === null ? p : p + "[]",
2050
- l(E)
2048
+ s === !0 ? Ht([p], S, i) : s === null ? p : p + "[]",
2049
+ u(E)
2051
2050
  );
2052
2051
  }), !1;
2053
2052
  }
2054
- return ot(d) ? !0 : (t.append(Ht(g, p, i), l(d)), !1);
2053
+ return rt(d) ? !0 : (t.append(Ht(g, p, i), u(d)), !1);
2055
2054
  }
2056
2055
  const h = [], m = Object.assign(Xr, {
2057
2056
  defaultVisitor: c,
2058
- convertValue: l,
2059
- isVisitable: ot
2057
+ convertValue: u,
2058
+ isVisitable: rt
2060
2059
  });
2061
2060
  function y(d, p) {
2062
2061
  if (!f.isUndefined(d)) {
@@ -2092,7 +2091,7 @@ function zt(e) {
2092
2091
  });
2093
2092
  }
2094
2093
  function lt(e, t) {
2095
- this._pairs = [], e && Pe(e, this, t);
2094
+ this._pairs = [], e && Be(e, this, t);
2096
2095
  }
2097
2096
  const Cn = lt.prototype;
2098
2097
  Cn.append = function(t, r) {
@@ -2109,7 +2108,7 @@ Cn.toString = function(t) {
2109
2108
  function Zr(e) {
2110
2109
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
2111
2110
  }
2112
- function Sn(e, t, r) {
2111
+ function Rn(e, t, r) {
2113
2112
  if (!t)
2114
2113
  return e;
2115
2114
  const n = r && r.encode || Zr;
@@ -2178,7 +2177,7 @@ class $t {
2178
2177
  });
2179
2178
  }
2180
2179
  }
2181
- const Rn = {
2180
+ const Sn = {
2182
2181
  silentJSONParsing: !0,
2183
2182
  forcedJSONParsing: !0,
2184
2183
  clarifyTimeoutError: !1
@@ -2190,27 +2189,27 @@ const Rn = {
2190
2189
  Blob: no
2191
2190
  },
2192
2191
  protocols: ["http", "https", "file", "blob", "url", "data"]
2193
- }, ct = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, oo = ct && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), io = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2194
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", so = ct && window.location.href || "http://localhost", ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2192
+ }, ut = typeof window < "u" && typeof document < "u", ot = typeof navigator == "object" && navigator || void 0, oo = ut && (!ot || ["ReactNative", "NativeScript", "NS"].indexOf(ot.product) < 0), io = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2193
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", so = ut && window.location.href || "http://localhost", ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2195
2194
  __proto__: null,
2196
- hasBrowserEnv: ct,
2195
+ hasBrowserEnv: ut,
2197
2196
  hasStandardBrowserEnv: oo,
2198
2197
  hasStandardBrowserWebWorkerEnv: io,
2199
- navigator: it,
2198
+ navigator: ot,
2200
2199
  origin: so
2201
- }, Symbol.toStringTag, { value: "Module" })), x = {
2200
+ }, Symbol.toStringTag, { value: "Module" })), F = {
2202
2201
  ...ao,
2203
2202
  ...ro
2204
2203
  };
2205
- function uo(e, t) {
2206
- return Pe(e, new x.classes.URLSearchParams(), {
2204
+ function lo(e, t) {
2205
+ return Be(e, new F.classes.URLSearchParams(), {
2207
2206
  visitor: function(r, n, o, i) {
2208
- return x.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
2207
+ return F.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
2209
2208
  },
2210
2209
  ...t
2211
2210
  });
2212
2211
  }
2213
- function lo(e) {
2212
+ function uo(e) {
2214
2213
  return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
2215
2214
  }
2216
2215
  function co(e) {
@@ -2226,13 +2225,13 @@ function Tn(e) {
2226
2225
  function t(r, n, o, i) {
2227
2226
  let s = r[i++];
2228
2227
  if (s === "__proto__") return !0;
2229
- const a = Number.isFinite(+s), u = i >= r.length;
2230
- 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] = co(o[s])), !a);
2228
+ const a = Number.isFinite(+s), l = i >= r.length;
2229
+ return s = !s && f.isArray(o) ? o.length : s, l ? (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] = co(o[s])), !a);
2231
2230
  }
2232
2231
  if (f.isFormData(e) && f.isFunction(e.entries)) {
2233
2232
  const r = {};
2234
2233
  return f.forEachEntry(e, (n, o) => {
2235
- t(lo(n), o, r, 0);
2234
+ t(uo(n), o, r, 0);
2236
2235
  }), r;
2237
2236
  }
2238
2237
  return null;
@@ -2247,8 +2246,8 @@ function fo(e, t, r) {
2247
2246
  }
2248
2247
  return (r || JSON.stringify)(e);
2249
2248
  }
2250
- const ge = {
2251
- transitional: Rn,
2249
+ const pe = {
2250
+ transitional: Sn,
2252
2251
  adapter: ["xhr", "http", "fetch"],
2253
2252
  transformRequest: [function(t, r) {
2254
2253
  const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = f.isObject(t);
@@ -2263,12 +2262,12 @@ const ge = {
2263
2262
  let a;
2264
2263
  if (i) {
2265
2264
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
2266
- return uo(t, this.formSerializer).toString();
2265
+ return lo(t, this.formSerializer).toString();
2267
2266
  if ((a = f.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
2268
- const u = this.env && this.env.FormData;
2269
- return Pe(
2267
+ const l = this.env && this.env.FormData;
2268
+ return Be(
2270
2269
  a ? { "files[]": t } : t,
2271
- u && new u(),
2270
+ l && new l(),
2272
2271
  this.formSerializer
2273
2272
  );
2274
2273
  }
@@ -2276,7 +2275,7 @@ const ge = {
2276
2275
  return i || o ? (r.setContentType("application/json", !1), fo(t)) : t;
2277
2276
  }],
2278
2277
  transformResponse: [function(t) {
2279
- const r = this.transitional || ge.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
2278
+ const r = this.transitional || pe.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
2280
2279
  if (f.isResponse(t) || f.isReadableStream(t))
2281
2280
  return t;
2282
2281
  if (t && f.isString(t) && (n && !this.responseType || o)) {
@@ -2300,8 +2299,8 @@ const ge = {
2300
2299
  maxContentLength: -1,
2301
2300
  maxBodyLength: -1,
2302
2301
  env: {
2303
- FormData: x.classes.FormData,
2304
- Blob: x.classes.Blob
2302
+ FormData: F.classes.FormData,
2303
+ Blob: F.classes.Blob
2305
2304
  },
2306
2305
  validateStatus: function(t) {
2307
2306
  return t >= 200 && t < 300;
@@ -2314,7 +2313,7 @@ const ge = {
2314
2313
  }
2315
2314
  };
2316
2315
  f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
2317
- ge.headers[e] = {};
2316
+ pe.headers[e] = {};
2318
2317
  });
2319
2318
  const ho = f.toObjectSet([
2320
2319
  "age",
@@ -2345,8 +2344,8 @@ const ho = f.toObjectSet([
2345
2344
  function ce(e) {
2346
2345
  return e && String(e).trim().toLowerCase();
2347
2346
  }
2348
- function Ce(e) {
2349
- return e === !1 || e == null ? e : f.isArray(e) ? e.map(Ce) : String(e);
2347
+ function Ee(e) {
2348
+ return e === !1 || e == null ? e : f.isArray(e) ? e.map(Ee) : String(e);
2350
2349
  }
2351
2350
  function go(e) {
2352
2351
  const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -2356,7 +2355,7 @@ function go(e) {
2356
2355
  return t;
2357
2356
  }
2358
2357
  const mo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2359
- function Ze(e, t, r, n, o) {
2358
+ function Xe(e, t, r, n, o) {
2360
2359
  if (f.isFunction(n))
2361
2360
  return n.call(this, t, r);
2362
2361
  if (o && (t = r), !!f.isString(t)) {
@@ -2380,30 +2379,30 @@ function wo(e, t) {
2380
2379
  });
2381
2380
  });
2382
2381
  }
2383
- let M = class {
2382
+ let D = class {
2384
2383
  constructor(t) {
2385
2384
  t && this.set(t);
2386
2385
  }
2387
2386
  set(t, r, n) {
2388
2387
  const o = this;
2389
- function i(a, u, l) {
2390
- const c = ce(u);
2388
+ function i(a, l, u) {
2389
+ const c = ce(l);
2391
2390
  if (!c)
2392
2391
  throw new Error("header name must be a non-empty string");
2393
2392
  const h = f.findKey(o, c);
2394
- (!h || o[h] === void 0 || l === !0 || l === void 0 && o[h] !== !1) && (o[h || u] = Ce(a));
2393
+ (!h || o[h] === void 0 || u === !0 || u === void 0 && o[h] !== !1) && (o[h || l] = Ee(a));
2395
2394
  }
2396
- const s = (a, u) => f.forEach(a, (l, c) => i(l, c, u));
2395
+ const s = (a, l) => f.forEach(a, (u, c) => i(u, c, l));
2397
2396
  if (f.isPlainObject(t) || t instanceof this.constructor)
2398
2397
  s(t, r);
2399
2398
  else if (f.isString(t) && (t = t.trim()) && !mo(t))
2400
2399
  s(po(t), r);
2401
2400
  else if (f.isObject(t) && f.isIterable(t)) {
2402
- let a = {}, u, l;
2401
+ let a = {}, l, u;
2403
2402
  for (const c of t) {
2404
2403
  if (!f.isArray(c))
2405
2404
  throw TypeError("Object iterator must return a key-value pair");
2406
- a[l = c[0]] = (u = a[l]) ? f.isArray(u) ? [...u, c[1]] : [u, c[1]] : c[1];
2405
+ a[u = c[0]] = (l = a[u]) ? f.isArray(l) ? [...l, c[1]] : [l, c[1]] : c[1];
2407
2406
  }
2408
2407
  s(a, r);
2409
2408
  } else
@@ -2430,7 +2429,7 @@ let M = class {
2430
2429
  has(t, r) {
2431
2430
  if (t = ce(t), t) {
2432
2431
  const n = f.findKey(this, t);
2433
- return !!(n && this[n] !== void 0 && (!r || Ze(this, this[n], n, r)));
2432
+ return !!(n && this[n] !== void 0 && (!r || Xe(this, this[n], n, r)));
2434
2433
  }
2435
2434
  return !1;
2436
2435
  }
@@ -2440,7 +2439,7 @@ let M = class {
2440
2439
  function i(s) {
2441
2440
  if (s = ce(s), s) {
2442
2441
  const a = f.findKey(n, s);
2443
- a && (!r || Ze(n, n[a], a, r)) && (delete n[a], o = !0);
2442
+ a && (!r || Xe(n, n[a], a, r)) && (delete n[a], o = !0);
2444
2443
  }
2445
2444
  }
2446
2445
  return f.isArray(t) ? t.forEach(i) : i(t), o;
@@ -2450,7 +2449,7 @@ let M = class {
2450
2449
  let n = r.length, o = !1;
2451
2450
  for (; n--; ) {
2452
2451
  const i = r[n];
2453
- (!t || Ze(this, this[i], i, t, !0)) && (delete this[i], o = !0);
2452
+ (!t || Xe(this, this[i], i, t, !0)) && (delete this[i], o = !0);
2454
2453
  }
2455
2454
  return o;
2456
2455
  }
@@ -2459,11 +2458,11 @@ let M = class {
2459
2458
  return f.forEach(this, (o, i) => {
2460
2459
  const s = f.findKey(n, i);
2461
2460
  if (s) {
2462
- r[s] = Ce(o), delete r[i];
2461
+ r[s] = Ee(o), delete r[i];
2463
2462
  return;
2464
2463
  }
2465
2464
  const a = t ? yo(i) : String(i).trim();
2466
- a !== i && delete r[i], r[a] = Ce(o), n[a] = !0;
2465
+ a !== i && delete r[i], r[a] = Ee(o), n[a] = !0;
2467
2466
  }), this;
2468
2467
  }
2469
2468
  concat(...t) {
@@ -2506,8 +2505,8 @@ let M = class {
2506
2505
  return f.isArray(t) ? t.forEach(i) : i(t), this;
2507
2506
  }
2508
2507
  };
2509
- M.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2510
- f.reduceDescriptors(M.prototype, ({ value: e }, t) => {
2508
+ D.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2509
+ f.reduceDescriptors(D.prototype, ({ value: e }, t) => {
2511
2510
  let r = t[0].toUpperCase() + t.slice(1);
2512
2511
  return {
2513
2512
  get: () => e,
@@ -2516,9 +2515,9 @@ f.reduceDescriptors(M.prototype, ({ value: e }, t) => {
2516
2515
  }
2517
2516
  };
2518
2517
  });
2519
- f.freezeMethods(M);
2520
- function et(e, t) {
2521
- const r = this || ge, n = t || r, o = M.from(n.headers);
2518
+ f.freezeMethods(D);
2519
+ function Ze(e, t) {
2520
+ const r = this || pe, n = t || r, o = D.from(n.headers);
2522
2521
  let i = n.data;
2523
2522
  return f.forEach(e, function(a) {
2524
2523
  i = a.call(r, i, o.normalize(), t ? t.status : void 0);
@@ -2551,26 +2550,26 @@ function Eo(e, t) {
2551
2550
  e = e || 10;
2552
2551
  const r = new Array(e), n = new Array(e);
2553
2552
  let o = 0, i = 0, s;
2554
- return t = t !== void 0 ? t : 1e3, function(u) {
2555
- const l = Date.now(), c = n[i];
2556
- s || (s = l), r[o] = u, n[o] = l;
2553
+ return t = t !== void 0 ? t : 1e3, function(l) {
2554
+ const u = Date.now(), c = n[i];
2555
+ s || (s = u), r[o] = l, n[o] = u;
2557
2556
  let h = i, m = 0;
2558
2557
  for (; h !== o; )
2559
2558
  m += r[h++], h = h % e;
2560
- if (o = (o + 1) % e, o === i && (i = (i + 1) % e), l - s < t)
2559
+ if (o = (o + 1) % e, o === i && (i = (i + 1) % e), u - s < t)
2561
2560
  return;
2562
- const y = c && l - c;
2561
+ const y = c && u - c;
2563
2562
  return y ? Math.round(m * 1e3 / y) : void 0;
2564
2563
  };
2565
2564
  }
2566
2565
  function Co(e, t) {
2567
2566
  let r = 0, n = 1e3 / t, o, i;
2568
- const s = (l, c = Date.now()) => {
2569
- r = c, o = null, i && (clearTimeout(i), i = null), e(...l);
2567
+ const s = (u, c = Date.now()) => {
2568
+ r = c, o = null, i && (clearTimeout(i), i = null), e(...u);
2570
2569
  };
2571
- return [(...l) => {
2570
+ return [(...u) => {
2572
2571
  const c = Date.now(), h = c - r;
2573
- h >= n ? s(l, c) : (o = l, i || (i = setTimeout(() => {
2572
+ h >= n ? s(u, c) : (o = u, i || (i = setTimeout(() => {
2574
2573
  i = null, s(o);
2575
2574
  }, n - h)));
2576
2575
  }, () => o && s(o)];
@@ -2579,15 +2578,15 @@ const Re = (e, t, r = 3) => {
2579
2578
  let n = 0;
2580
2579
  const o = Eo(50, 250);
2581
2580
  return Co((i) => {
2582
- const s = i.loaded, a = i.lengthComputable ? i.total : void 0, u = s - n, l = o(u), c = s <= a;
2581
+ const s = i.loaded, a = i.lengthComputable ? i.total : void 0, l = s - n, u = o(l), c = s <= a;
2583
2582
  n = s;
2584
2583
  const h = {
2585
2584
  loaded: s,
2586
2585
  total: a,
2587
2586
  progress: a ? s / a : void 0,
2588
- bytes: u,
2589
- rate: l || void 0,
2590
- estimated: l && a && c ? (a - s) / l : void 0,
2587
+ bytes: l,
2588
+ rate: u || void 0,
2589
+ estimated: u && a && c ? (a - s) / u : void 0,
2591
2590
  event: i,
2592
2591
  lengthComputable: a != null,
2593
2592
  [t ? "download" : "upload"]: !0
@@ -2601,10 +2600,10 @@ const Re = (e, t, r = 3) => {
2601
2600
  total: e,
2602
2601
  loaded: n
2603
2602
  }), t[1]];
2604
- }, Kt = (e) => (...t) => f.asap(() => e(...t)), So = x.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, x.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
2605
- new URL(x.origin),
2606
- x.navigator && /(msie|trident)/i.test(x.navigator.userAgent)
2607
- ) : () => !0, Ro = x.hasStandardBrowserEnv ? (
2603
+ }, Kt = (e) => (...t) => f.asap(() => e(...t)), Ro = 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)))(
2604
+ new URL(F.origin),
2605
+ F.navigator && /(msie|trident)/i.test(F.navigator.userAgent)
2606
+ ) : () => !0, So = F.hasStandardBrowserEnv ? (
2608
2607
  // Standard browser envs support document.cookie
2609
2608
  {
2610
2609
  write(e, t, r, n, o, i, s) {
@@ -2643,36 +2642,36 @@ function Pn(e, t, r) {
2643
2642
  let n = !To(t);
2644
2643
  return e && (n || r == !1) ? Ao(e, t) : t;
2645
2644
  }
2646
- const Wt = (e) => e instanceof M ? { ...e } : e;
2645
+ const Wt = (e) => e instanceof D ? { ...e } : e;
2647
2646
  function X(e, t) {
2648
2647
  t = t || {};
2649
2648
  const r = {};
2650
- function n(l, c, h, m) {
2651
- 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;
2649
+ function n(u, c, h, m) {
2650
+ return f.isPlainObject(u) && f.isPlainObject(c) ? f.merge.call({ caseless: m }, u, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
2652
2651
  }
2653
- function o(l, c, h, m) {
2652
+ function o(u, c, h, m) {
2654
2653
  if (f.isUndefined(c)) {
2655
- if (!f.isUndefined(l))
2656
- return n(void 0, l, h, m);
2657
- } else return n(l, c, h, m);
2654
+ if (!f.isUndefined(u))
2655
+ return n(void 0, u, h, m);
2656
+ } else return n(u, c, h, m);
2658
2657
  }
2659
- function i(l, c) {
2658
+ function i(u, c) {
2660
2659
  if (!f.isUndefined(c))
2661
2660
  return n(void 0, c);
2662
2661
  }
2663
- function s(l, c) {
2662
+ function s(u, c) {
2664
2663
  if (f.isUndefined(c)) {
2665
- if (!f.isUndefined(l))
2666
- return n(void 0, l);
2664
+ if (!f.isUndefined(u))
2665
+ return n(void 0, u);
2667
2666
  } else return n(void 0, c);
2668
2667
  }
2669
- function a(l, c, h) {
2668
+ function a(u, c, h) {
2670
2669
  if (h in t)
2671
- return n(l, c);
2670
+ return n(u, c);
2672
2671
  if (h in e)
2673
- return n(void 0, l);
2672
+ return n(void 0, u);
2674
2673
  }
2675
- const u = {
2674
+ const l = {
2676
2675
  url: i,
2677
2676
  method: i,
2678
2677
  data: i,
@@ -2701,40 +2700,40 @@ function X(e, t) {
2701
2700
  socketPath: s,
2702
2701
  responseEncoding: s,
2703
2702
  validateStatus: a,
2704
- headers: (l, c, h) => o(Wt(l), Wt(c), h, !0)
2703
+ headers: (u, c, h) => o(Wt(u), Wt(c), h, !0)
2705
2704
  };
2706
2705
  return f.forEach(Object.keys({ ...e, ...t }), function(c) {
2707
- const h = u[c] || o, m = h(e[c], t[c], c);
2706
+ const h = l[c] || o, m = h(e[c], t[c], c);
2708
2707
  f.isUndefined(m) && h !== a || (r[c] = m);
2709
2708
  }), r;
2710
2709
  }
2711
2710
  const Nn = (e) => {
2712
2711
  const t = X({}, e);
2713
2712
  let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = t;
2714
- if (t.headers = s = M.from(s), t.url = Sn(Pn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && s.set(
2713
+ if (t.headers = s = D.from(s), t.url = Rn(Pn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && s.set(
2715
2714
  "Authorization",
2716
2715
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
2717
2716
  ), f.isFormData(r)) {
2718
- if (x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv)
2717
+ if (F.hasStandardBrowserEnv || F.hasStandardBrowserWebWorkerEnv)
2719
2718
  s.setContentType(void 0);
2720
2719
  else if (f.isFunction(r.getHeaders)) {
2721
- const u = r.getHeaders(), l = ["content-type", "content-length"];
2722
- Object.entries(u).forEach(([c, h]) => {
2723
- l.includes(c.toLowerCase()) && s.set(c, h);
2720
+ const l = r.getHeaders(), u = ["content-type", "content-length"];
2721
+ Object.entries(l).forEach(([c, h]) => {
2722
+ u.includes(c.toLowerCase()) && s.set(c, h);
2724
2723
  });
2725
2724
  }
2726
2725
  }
2727
- if (x.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 && So(t.url))) {
2728
- const u = o && i && Ro.read(i);
2729
- u && s.set(o, u);
2726
+ if (F.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 && Ro(t.url))) {
2727
+ const l = o && i && So.read(i);
2728
+ l && s.set(o, l);
2730
2729
  }
2731
2730
  return t;
2732
2731
  }, Bo = typeof XMLHttpRequest < "u", Po = Bo && function(e) {
2733
2732
  return new Promise(function(r, n) {
2734
2733
  const o = Nn(e);
2735
2734
  let i = o.data;
2736
- const s = M.from(o.headers).normalize();
2737
- let { responseType: a, onUploadProgress: u, onDownloadProgress: l } = o, c, h, m, y, d;
2735
+ const s = D.from(o.headers).normalize();
2736
+ let { responseType: a, onUploadProgress: l, onDownloadProgress: u } = o, c, h, m, y, d;
2738
2737
  function p() {
2739
2738
  y && y(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
2740
2739
  }
@@ -2743,7 +2742,7 @@ const Nn = (e) => {
2743
2742
  function w() {
2744
2743
  if (!g)
2745
2744
  return;
2746
- const E = M.from(
2745
+ const E = D.from(
2747
2746
  "getAllResponseHeaders" in g && g.getAllResponseHeaders()
2748
2747
  ), _ = {
2749
2748
  data: !a || a === "text" || a === "json" ? g.responseText : g.response,
@@ -2753,35 +2752,35 @@ const Nn = (e) => {
2753
2752
  config: e,
2754
2753
  request: g
2755
2754
  };
2756
- Bn(function(S) {
2757
- r(S), p();
2758
- }, function(S) {
2759
- n(S), p();
2755
+ Bn(function(R) {
2756
+ r(R), p();
2757
+ }, function(R) {
2758
+ n(R), p();
2760
2759
  }, _), g = null;
2761
2760
  }
2762
2761
  "onloadend" in g ? g.onloadend = w : g.onreadystatechange = function() {
2763
2762
  !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(w);
2764
2763
  }, g.onabort = function() {
2765
2764
  g && (n(new I("Request aborted", I.ECONNABORTED, e, g)), g = null);
2766
- }, g.onerror = function(R) {
2767
- const _ = R && R.message ? R.message : "Network Error", b = new I(_, I.ERR_NETWORK, e, g);
2768
- b.event = R || null, n(b), g = null;
2765
+ }, g.onerror = function(S) {
2766
+ const _ = S && S.message ? S.message : "Network Error", b = new I(_, I.ERR_NETWORK, e, g);
2767
+ b.event = S || null, n(b), g = null;
2769
2768
  }, g.ontimeout = function() {
2770
- let R = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
2771
- const _ = o.transitional || Rn;
2772
- o.timeoutErrorMessage && (R = o.timeoutErrorMessage), n(new I(
2773
- R,
2769
+ let S = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
2770
+ const _ = o.transitional || Sn;
2771
+ o.timeoutErrorMessage && (S = o.timeoutErrorMessage), n(new I(
2772
+ S,
2774
2773
  _.clarifyTimeoutError ? I.ETIMEDOUT : I.ECONNABORTED,
2775
2774
  e,
2776
2775
  g
2777
2776
  )), g = null;
2778
- }, i === void 0 && s.setContentType(null), "setRequestHeader" in g && f.forEach(s.toJSON(), function(R, _) {
2779
- g.setRequestHeader(_, R);
2780
- }), 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) => {
2777
+ }, i === void 0 && s.setContentType(null), "setRequestHeader" in g && f.forEach(s.toJSON(), function(S, _) {
2778
+ g.setRequestHeader(_, S);
2779
+ }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), a && a !== "json" && (g.responseType = o.responseType), u && ([m, d] = Re(u, !0), g.addEventListener("progress", m)), l && g.upload && ([h, y] = Re(l), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (c = (E) => {
2781
2780
  g && (n(!E || E.type ? new ae(null, e, g) : E), g.abort(), g = null);
2782
2781
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
2783
2782
  const N = bo(o.url);
2784
- if (N && x.protocols.indexOf(N) === -1) {
2783
+ if (N && F.protocols.indexOf(N) === -1) {
2785
2784
  n(new I("Unsupported protocol " + N + ":", I.ERR_BAD_REQUEST, e));
2786
2785
  return;
2787
2786
  }
@@ -2791,10 +2790,10 @@ const Nn = (e) => {
2791
2790
  const { length: r } = e = e ? e.filter(Boolean) : [];
2792
2791
  if (t || r) {
2793
2792
  let n = new AbortController(), o;
2794
- const i = function(l) {
2793
+ const i = function(u) {
2795
2794
  if (!o) {
2796
2795
  o = !0, a();
2797
- const c = l instanceof Error ? l : this.reason;
2796
+ const c = u instanceof Error ? u : this.reason;
2798
2797
  n.abort(c instanceof I ? c : new ae(c instanceof Error ? c.message : c));
2799
2798
  }
2800
2799
  };
@@ -2802,13 +2801,13 @@ const Nn = (e) => {
2802
2801
  s = null, i(new I(`timeout ${t} of ms exceeded`, I.ETIMEDOUT));
2803
2802
  }, t);
2804
2803
  const a = () => {
2805
- e && (s && clearTimeout(s), s = null, e.forEach((l) => {
2806
- l.unsubscribe ? l.unsubscribe(i) : l.removeEventListener("abort", i);
2804
+ e && (s && clearTimeout(s), s = null, e.forEach((u) => {
2805
+ u.unsubscribe ? u.unsubscribe(i) : u.removeEventListener("abort", i);
2807
2806
  }), e = null);
2808
2807
  };
2809
- e.forEach((l) => l.addEventListener("abort", i));
2810
- const { signal: u } = n;
2811
- return u.unsubscribe = () => f.asap(a), u;
2808
+ e.forEach((u) => u.addEventListener("abort", i));
2809
+ const { signal: l } = n;
2810
+ return l.unsubscribe = () => f.asap(a), l;
2812
2811
  }
2813
2812
  }, Oo = function* (e, t) {
2814
2813
  let r = e.byteLength;
@@ -2840,15 +2839,15 @@ const Nn = (e) => {
2840
2839
  }
2841
2840
  }, Gt = (e, t, r, n) => {
2842
2841
  const o = Lo(e, t);
2843
- let i = 0, s, a = (u) => {
2844
- s || (s = !0, n && n(u));
2842
+ let i = 0, s, a = (l) => {
2843
+ s || (s = !0, n && n(l));
2845
2844
  };
2846
2845
  return new ReadableStream({
2847
- async pull(u) {
2846
+ async pull(l) {
2848
2847
  try {
2849
- const { done: l, value: c } = await o.next();
2850
- if (l) {
2851
- a(), u.close();
2848
+ const { done: u, value: c } = await o.next();
2849
+ if (u) {
2850
+ a(), l.close();
2852
2851
  return;
2853
2852
  }
2854
2853
  let h = c.byteLength;
@@ -2856,18 +2855,18 @@ const Nn = (e) => {
2856
2855
  let m = i += h;
2857
2856
  r(m);
2858
2857
  }
2859
- u.enqueue(new Uint8Array(c));
2860
- } catch (l) {
2861
- throw a(l), l;
2858
+ l.enqueue(new Uint8Array(c));
2859
+ } catch (u) {
2860
+ throw a(u), u;
2862
2861
  }
2863
2862
  },
2864
- cancel(u) {
2865
- return a(u), o.return();
2863
+ cancel(l) {
2864
+ return a(l), o.return();
2866
2865
  }
2867
2866
  }, {
2868
2867
  highWaterMark: 2
2869
2868
  });
2870
- }, Qt = 64 * 1024, { isFunction: be } = f, _o = (({ Request: e, Response: t }) => ({
2869
+ }, Qt = 64 * 1024, { isFunction: we } = f, _o = (({ Request: e, Response: t }) => ({
2871
2870
  Request: e,
2872
2871
  Response: t
2873
2872
  }))(f.global), {
@@ -2879,16 +2878,16 @@ const Nn = (e) => {
2879
2878
  } catch {
2880
2879
  return !1;
2881
2880
  }
2882
- }, vo = (e) => {
2881
+ }, Uo = (e) => {
2883
2882
  e = f.merge.call({
2884
2883
  skipUndefined: !0
2885
2884
  }, _o, e);
2886
- const { fetch: t, Request: r, Response: n } = e, o = t ? be(t) : typeof fetch == "function", i = be(r), s = be(n);
2885
+ const { fetch: t, Request: r, Response: n } = e, o = t ? we(t) : typeof fetch == "function", i = we(r), s = we(n);
2887
2886
  if (!o)
2888
2887
  return !1;
2889
- 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(() => {
2888
+ const a = o && we(Yt), l = o && (typeof Xt == "function" ? /* @__PURE__ */ ((d) => (p) => d.encode(p))(new Xt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), u = i && a && Zt(() => {
2890
2889
  let d = !1;
2891
- const p = new r(x.origin, {
2890
+ const p = new r(F.origin, {
2892
2891
  body: new Yt(),
2893
2892
  method: "POST",
2894
2893
  get duplex() {
@@ -2913,14 +2912,14 @@ const Nn = (e) => {
2913
2912
  if (f.isBlob(d))
2914
2913
  return d.size;
2915
2914
  if (f.isSpecCompliantForm(d))
2916
- return (await new r(x.origin, {
2915
+ return (await new r(F.origin, {
2917
2916
  method: "POST",
2918
2917
  body: d
2919
2918
  }).arrayBuffer()).byteLength;
2920
2919
  if (f.isArrayBufferView(d) || f.isArrayBuffer(d))
2921
2920
  return d.byteLength;
2922
2921
  if (f.isURLSearchParams(d) && (d = d + ""), f.isString(d))
2923
- return (await u(d)).byteLength;
2922
+ return (await l(d)).byteLength;
2924
2923
  }, y = async (d, p) => {
2925
2924
  const g = f.toFiniteNumber(d.getContentLength());
2926
2925
  return g ?? m(p);
@@ -2932,52 +2931,52 @@ const Nn = (e) => {
2932
2931
  data: w,
2933
2932
  signal: N,
2934
2933
  cancelToken: E,
2935
- timeout: R,
2934
+ timeout: S,
2936
2935
  onDownloadProgress: _,
2937
2936
  onUploadProgress: b,
2938
- responseType: S,
2937
+ responseType: R,
2939
2938
  headers: A,
2940
2939
  withCredentials: C = "same-origin",
2941
2940
  fetchOptions: L
2942
2941
  } = Nn(d), B = t || fetch;
2943
- S = S ? (S + "").toLowerCase() : "text";
2944
- let P = No([N, E && E.toAbortSignal()], R), T = null;
2942
+ R = R ? (R + "").toLowerCase() : "text";
2943
+ let P = No([N, E && E.toAbortSignal()], S), T = null;
2945
2944
  const O = P && P.unsubscribe && (() => {
2946
2945
  P.unsubscribe();
2947
2946
  });
2948
2947
  let q;
2949
2948
  try {
2950
- if (b && l && g !== "get" && g !== "head" && (q = await y(A, w)) !== 0) {
2951
- let D = new r(p, {
2949
+ if (b && u && g !== "get" && g !== "head" && (q = await y(A, w)) !== 0) {
2950
+ let v = new r(p, {
2952
2951
  method: "POST",
2953
2952
  body: w,
2954
2953
  duplex: "half"
2955
2954
  }), V;
2956
- if (f.isFormData(w) && (V = D.headers.get("content-type")) && A.setContentType(V), D.body) {
2955
+ if (f.isFormData(w) && (V = v.headers.get("content-type")) && A.setContentType(V), v.body) {
2957
2956
  const [G, te] = Jt(
2958
2957
  q,
2959
2958
  Re(Kt(b))
2960
2959
  );
2961
- w = Gt(D.body, Qt, G, te);
2960
+ w = Gt(v.body, Qt, G, te);
2962
2961
  }
2963
2962
  }
2964
2963
  f.isString(C) || (C = C ? "include" : "omit");
2965
- const U = i && "credentials" in r.prototype, me = {
2964
+ const k = i && "credentials" in r.prototype, ge = {
2966
2965
  ...L,
2967
2966
  signal: P,
2968
2967
  method: g.toUpperCase(),
2969
2968
  headers: A.normalize().toJSON(),
2970
2969
  body: w,
2971
2970
  duplex: "half",
2972
- credentials: U ? C : void 0
2971
+ credentials: k ? C : void 0
2973
2972
  };
2974
- T = i && new r(p, me);
2975
- let j = await (i ? B(T, L) : B(p, me));
2976
- const ye = c && (S === "stream" || S === "response");
2977
- if (c && (_ || ye && O)) {
2978
- const D = {};
2973
+ T = i && new r(p, ge);
2974
+ let j = await (i ? B(T, L) : B(p, ge));
2975
+ const me = c && (R === "stream" || R === "response");
2976
+ if (c && (_ || me && O)) {
2977
+ const v = {};
2979
2978
  ["status", "statusText", "headers"].forEach((ne) => {
2980
- D[ne] = j[ne];
2979
+ v[ne] = j[ne];
2981
2980
  });
2982
2981
  const V = f.toFiniteNumber(j.headers.get("content-length")), [G, te] = _ && Jt(
2983
2982
  V,
@@ -2987,51 +2986,51 @@ const Nn = (e) => {
2987
2986
  Gt(j.body, Qt, G, () => {
2988
2987
  te && te(), O && O();
2989
2988
  }),
2990
- D
2989
+ v
2991
2990
  );
2992
2991
  }
2993
- S = S || "text";
2994
- let ue = await h[f.findKey(h, S) || "text"](j, d);
2995
- return !ye && O && O(), await new Promise((D, V) => {
2996
- Bn(D, V, {
2997
- data: ue,
2998
- headers: M.from(j.headers),
2992
+ R = R || "text";
2993
+ let le = await h[f.findKey(h, R) || "text"](j, d);
2994
+ return !me && O && O(), await new Promise((v, V) => {
2995
+ Bn(v, V, {
2996
+ data: le,
2997
+ headers: D.from(j.headers),
2999
2998
  status: j.status,
3000
2999
  statusText: j.statusText,
3001
3000
  config: d,
3002
3001
  request: T
3003
3002
  });
3004
3003
  });
3005
- } catch (U) {
3006
- throw O && O(), U && U.name === "TypeError" && /Load failed|fetch/i.test(U.message) ? Object.assign(
3004
+ } catch (k) {
3005
+ throw O && O(), k && k.name === "TypeError" && /Load failed|fetch/i.test(k.message) ? Object.assign(
3007
3006
  new I("Network Error", I.ERR_NETWORK, d, T),
3008
3007
  {
3009
- cause: U.cause || U
3008
+ cause: k.cause || k
3010
3009
  }
3011
- ) : I.from(U, U && U.code, d, T);
3010
+ ) : I.from(k, k && k.code, d, T);
3012
3011
  }
3013
3012
  };
3014
- }, Uo = /* @__PURE__ */ new Map(), On = (e) => {
3013
+ }, ko = /* @__PURE__ */ new Map(), On = (e) => {
3015
3014
  let t = e && e.env || {};
3016
3015
  const { fetch: r, Request: n, Response: o } = t, i = [
3017
3016
  n,
3018
3017
  o,
3019
3018
  r
3020
3019
  ];
3021
- let s = i.length, a = s, u, l, c = Uo;
3020
+ let s = i.length, a = s, l, u, c = ko;
3022
3021
  for (; a--; )
3023
- u = i[a], l = c.get(u), l === void 0 && c.set(u, l = a ? /* @__PURE__ */ new Map() : vo(t)), c = l;
3024
- return l;
3022
+ l = i[a], u = c.get(l), u === void 0 && c.set(l, u = a ? /* @__PURE__ */ new Map() : Uo(t)), c = u;
3023
+ return u;
3025
3024
  };
3026
3025
  On();
3027
- const ft = {
3026
+ const ct = {
3028
3027
  http: Qr,
3029
3028
  xhr: Po,
3030
3029
  fetch: {
3031
3030
  get: On
3032
3031
  }
3033
3032
  };
3034
- f.forEach(ft, (e, t) => {
3033
+ f.forEach(ct, (e, t) => {
3035
3034
  if (e) {
3036
3035
  try {
3037
3036
  Object.defineProperty(e, "name", { value: t });
@@ -3040,8 +3039,8 @@ f.forEach(ft, (e, t) => {
3040
3039
  Object.defineProperty(e, "adapterName", { value: t });
3041
3040
  }
3042
3041
  });
3043
- const en = (e) => `- ${e}`, ko = (e) => f.isFunction(e) || e === null || e === !1;
3044
- function xo(e, t) {
3042
+ const en = (e) => `- ${e}`, xo = (e) => f.isFunction(e) || e === null || e === !1;
3043
+ function Fo(e, t) {
3045
3044
  e = f.isArray(e) ? e : [e];
3046
3045
  const { length: r } = e;
3047
3046
  let n, o;
@@ -3049,7 +3048,7 @@ function xo(e, t) {
3049
3048
  for (let s = 0; s < r; s++) {
3050
3049
  n = e[s];
3051
3050
  let a;
3052
- if (o = n, !ko(n) && (o = ft[(a = String(n)).toLowerCase()], o === void 0))
3051
+ if (o = n, !xo(n) && (o = ct[(a = String(n)).toLowerCase()], o === void 0))
3053
3052
  throw new I(`Unknown adapter '${a}'`);
3054
3053
  if (o && (f.isFunction(o) || (o = o.get(t))))
3055
3054
  break;
@@ -3057,7 +3056,7 @@ function xo(e, t) {
3057
3056
  }
3058
3057
  if (!o) {
3059
3058
  const s = Object.entries(i).map(
3060
- ([u, l]) => `adapter ${u} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
3059
+ ([l, u]) => `adapter ${l} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
3061
3060
  );
3062
3061
  let a = r ? s.length > 1 ? `since :
3063
3062
  ` + s.map(en).join(`
@@ -3074,43 +3073,43 @@ const Ln = {
3074
3073
  * Resolve an adapter from a list of adapter names or functions.
3075
3074
  * @type {Function}
3076
3075
  */
3077
- getAdapter: xo,
3076
+ getAdapter: Fo,
3078
3077
  /**
3079
3078
  * Exposes all known adapters
3080
3079
  * @type {Object<string, Function|Object>}
3081
3080
  */
3082
- adapters: ft
3081
+ adapters: ct
3083
3082
  };
3084
- function tt(e) {
3083
+ function et(e) {
3085
3084
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
3086
3085
  throw new ae(null, e);
3087
3086
  }
3088
3087
  function tn(e) {
3089
- return tt(e), e.headers = M.from(e.headers), e.data = et.call(
3088
+ return et(e), e.headers = D.from(e.headers), e.data = Ze.call(
3090
3089
  e,
3091
3090
  e.transformRequest
3092
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ln.getAdapter(e.adapter || ge.adapter, e)(e).then(function(n) {
3093
- return tt(e), n.data = et.call(
3091
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ln.getAdapter(e.adapter || pe.adapter, e)(e).then(function(n) {
3092
+ return et(e), n.data = Ze.call(
3094
3093
  e,
3095
3094
  e.transformResponse,
3096
3095
  n
3097
- ), n.headers = M.from(n.headers), n;
3096
+ ), n.headers = D.from(n.headers), n;
3098
3097
  }, function(n) {
3099
- return An(n) || (tt(e), n && n.response && (n.response.data = et.call(
3098
+ return An(n) || (et(e), n && n.response && (n.response.data = Ze.call(
3100
3099
  e,
3101
3100
  e.transformResponse,
3102
3101
  n.response
3103
- ), n.response.headers = M.from(n.response.headers))), Promise.reject(n);
3102
+ ), n.response.headers = D.from(n.response.headers))), Promise.reject(n);
3104
3103
  });
3105
3104
  }
3106
- const In = "1.13.1", Ne = {};
3105
+ const In = "1.13.1", Pe = {};
3107
3106
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
3108
- Ne[e] = function(n) {
3107
+ Pe[e] = function(n) {
3109
3108
  return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
3110
3109
  };
3111
3110
  });
3112
3111
  const nn = {};
3113
- Ne.transitional = function(t, r, n) {
3112
+ Pe.transitional = function(t, r, n) {
3114
3113
  function o(i, s) {
3115
3114
  return "[Axios v" + In + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
3116
3115
  }
@@ -3128,10 +3127,10 @@ Ne.transitional = function(t, r, n) {
3128
3127
  )), t ? t(i, s, a) : !0;
3129
3128
  };
3130
3129
  };
3131
- Ne.spelling = function(t) {
3130
+ Pe.spelling = function(t) {
3132
3131
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
3133
3132
  };
3134
- function Fo(e, t, r) {
3133
+ function Mo(e, t, r) {
3135
3134
  if (typeof e != "object")
3136
3135
  throw new I("options must be an object", I.ERR_BAD_OPTION_VALUE);
3137
3136
  const n = Object.keys(e);
@@ -3139,19 +3138,19 @@ function Fo(e, t, r) {
3139
3138
  for (; o-- > 0; ) {
3140
3139
  const i = n[o], s = t[i];
3141
3140
  if (s) {
3142
- const a = e[i], u = a === void 0 || s(a, i, e);
3143
- if (u !== !0)
3144
- throw new I("option " + i + " must be " + u, I.ERR_BAD_OPTION_VALUE);
3141
+ const a = e[i], l = a === void 0 || s(a, i, e);
3142
+ if (l !== !0)
3143
+ throw new I("option " + i + " must be " + l, I.ERR_BAD_OPTION_VALUE);
3145
3144
  continue;
3146
3145
  }
3147
3146
  if (r !== !0)
3148
3147
  throw new I("Unknown option " + i, I.ERR_BAD_OPTION);
3149
3148
  }
3150
3149
  }
3151
- const Se = {
3152
- assertOptions: Fo,
3153
- validators: Ne
3154
- }, $ = Se.validators;
3150
+ const Ce = {
3151
+ assertOptions: Mo,
3152
+ validators: Pe
3153
+ }, $ = Ce.validators;
3155
3154
  let Y = class {
3156
3155
  constructor(t) {
3157
3156
  this.defaults = t || {}, this.interceptors = {
@@ -3187,16 +3186,16 @@ let Y = class {
3187
3186
  _request(t, r) {
3188
3187
  typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = X(this.defaults, r);
3189
3188
  const { transitional: n, paramsSerializer: o, headers: i } = r;
3190
- n !== void 0 && Se.assertOptions(n, {
3189
+ n !== void 0 && Ce.assertOptions(n, {
3191
3190
  silentJSONParsing: $.transitional($.boolean),
3192
3191
  forcedJSONParsing: $.transitional($.boolean),
3193
3192
  clarifyTimeoutError: $.transitional($.boolean)
3194
3193
  }, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
3195
3194
  serialize: o
3196
- } : Se.assertOptions(o, {
3195
+ } : Ce.assertOptions(o, {
3197
3196
  encode: $.function,
3198
3197
  serialize: $.function
3199
- }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Se.assertOptions(r, {
3198
+ }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Ce.assertOptions(r, {
3200
3199
  baseUrl: $.spelling("baseURL"),
3201
3200
  withXsrfToken: $.spelling("withXSRFToken")
3202
3201
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
@@ -3209,20 +3208,20 @@ let Y = class {
3209
3208
  (d) => {
3210
3209
  delete i[d];
3211
3210
  }
3212
- ), r.headers = M.concat(s, i);
3211
+ ), r.headers = D.concat(s, i);
3213
3212
  const a = [];
3214
- let u = !0;
3213
+ let l = !0;
3215
3214
  this.interceptors.request.forEach(function(p) {
3216
- typeof p.runWhen == "function" && p.runWhen(r) === !1 || (u = u && p.synchronous, a.unshift(p.fulfilled, p.rejected));
3215
+ typeof p.runWhen == "function" && p.runWhen(r) === !1 || (l = l && p.synchronous, a.unshift(p.fulfilled, p.rejected));
3217
3216
  });
3218
- const l = [];
3217
+ const u = [];
3219
3218
  this.interceptors.response.forEach(function(p) {
3220
- l.push(p.fulfilled, p.rejected);
3219
+ u.push(p.fulfilled, p.rejected);
3221
3220
  });
3222
3221
  let c, h = 0, m;
3223
- if (!u) {
3222
+ if (!l) {
3224
3223
  const d = [tn.bind(this), void 0];
3225
- for (d.unshift(...a), d.push(...l), m = d.length, c = Promise.resolve(r); h < m; )
3224
+ for (d.unshift(...a), d.push(...u), m = d.length, c = Promise.resolve(r); h < m; )
3226
3225
  c = c.then(d[h++], d[h++]);
3227
3226
  return c;
3228
3227
  }
@@ -3242,14 +3241,14 @@ let Y = class {
3242
3241
  } catch (d) {
3243
3242
  return Promise.reject(d);
3244
3243
  }
3245
- for (h = 0, m = l.length; h < m; )
3246
- c = c.then(l[h++], l[h++]);
3244
+ for (h = 0, m = u.length; h < m; )
3245
+ c = c.then(u[h++], u[h++]);
3247
3246
  return c;
3248
3247
  }
3249
3248
  getUri(t) {
3250
3249
  t = X(this.defaults, t);
3251
3250
  const r = Pn(t.baseURL, t.url, t.allowAbsoluteUrls);
3252
- return Sn(r, t.params, t.paramsSerializer);
3251
+ return Rn(r, t.params, t.paramsSerializer);
3253
3252
  }
3254
3253
  };
3255
3254
  f.forEach(["delete", "get", "head", "options"], function(t) {
@@ -3276,7 +3275,7 @@ f.forEach(["post", "put", "patch"], function(t) {
3276
3275
  }
3277
3276
  Y.prototype[t] = r(), Y.prototype[t + "Form"] = r(!0);
3278
3277
  });
3279
- let Mo = class _n {
3278
+ let Do = class _n {
3280
3279
  constructor(t) {
3281
3280
  if (typeof t != "function")
3282
3281
  throw new TypeError("executor must be a function.");
@@ -3349,7 +3348,7 @@ let Mo = class _n {
3349
3348
  };
3350
3349
  }
3351
3350
  };
3352
- function Do(e) {
3351
+ function vo(e) {
3353
3352
  return function(r) {
3354
3353
  return e.apply(null, r);
3355
3354
  };
@@ -3357,7 +3356,7 @@ function Do(e) {
3357
3356
  function qo(e) {
3358
3357
  return f.isObject(e) && e.isAxiosError === !0;
3359
3358
  }
3360
- const st = {
3359
+ const it = {
3361
3360
  Continue: 100,
3362
3361
  SwitchingProtocols: 101,
3363
3362
  Processing: 102,
@@ -3428,35 +3427,35 @@ const st = {
3428
3427
  SslHandshakeFailed: 525,
3429
3428
  InvalidSslCertificate: 526
3430
3429
  };
3431
- Object.entries(st).forEach(([e, t]) => {
3432
- st[t] = e;
3430
+ Object.entries(it).forEach(([e, t]) => {
3431
+ it[t] = e;
3433
3432
  });
3434
- function vn(e) {
3433
+ function Un(e) {
3435
3434
  const t = new Y(e), r = cn(Y.prototype.request, t);
3436
3435
  return f.extend(r, Y.prototype, t, { allOwnKeys: !0 }), f.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
3437
- return vn(X(e, o));
3436
+ return Un(X(e, o));
3438
3437
  }, r;
3439
3438
  }
3440
- const v = vn(ge);
3441
- v.Axios = Y;
3442
- v.CanceledError = ae;
3443
- v.CancelToken = Mo;
3444
- v.isCancel = An;
3445
- v.VERSION = In;
3446
- v.toFormData = Pe;
3447
- v.AxiosError = I;
3448
- v.Cancel = v.CanceledError;
3449
- v.all = function(t) {
3439
+ const U = Un(pe);
3440
+ U.Axios = Y;
3441
+ U.CanceledError = ae;
3442
+ U.CancelToken = Do;
3443
+ U.isCancel = An;
3444
+ U.VERSION = In;
3445
+ U.toFormData = Be;
3446
+ U.AxiosError = I;
3447
+ U.Cancel = U.CanceledError;
3448
+ U.all = function(t) {
3450
3449
  return Promise.all(t);
3451
3450
  };
3452
- v.spread = Do;
3453
- v.isAxiosError = qo;
3454
- v.mergeConfig = X;
3455
- v.AxiosHeaders = M;
3456
- v.formToJSON = (e) => Tn(f.isHTMLForm(e) ? new FormData(e) : e);
3457
- v.getAdapter = Ln.getAdapter;
3458
- v.HttpStatusCode = st;
3459
- v.default = v;
3451
+ U.spread = vo;
3452
+ U.isAxiosError = qo;
3453
+ U.mergeConfig = X;
3454
+ U.AxiosHeaders = D;
3455
+ U.formToJSON = (e) => Tn(f.isHTMLForm(e) ? new FormData(e) : e);
3456
+ U.getAdapter = Ln.getAdapter;
3457
+ U.HttpStatusCode = it;
3458
+ U.default = U;
3460
3459
  const {
3461
3460
  Axios: Go,
3462
3461
  AxiosError: Qo,
@@ -3471,59 +3470,55 @@ const {
3471
3470
  toFormData: ii,
3472
3471
  AxiosHeaders: si,
3473
3472
  HttpStatusCode: ai,
3474
- formToJSON: ui,
3475
- getAdapter: li,
3473
+ formToJSON: li,
3474
+ getAdapter: ui,
3476
3475
  mergeConfig: ci
3477
- } = v, fe = on(), Un = v.create({
3478
- baseURL: fe.baseUrl
3476
+ } = U, ft = on(), kn = U.create({
3477
+ baseURL: ft.baseUrl
3479
3478
  });
3480
3479
  async function jo(e = {}) {
3481
- return (await Un.post(fe.createEndpoint, e, {
3482
- withCredentials: !0
3483
- })).data;
3484
- }
3485
- function Ho(e = () => {
3486
- }, t = () => {
3487
- }) {
3488
- const r = new URL(fe.authEventEndpoint, fe.baseUrl), n = new EventSource(r, {
3489
- withCredentials: !0
3490
- });
3491
- return n.addEventListener("auth-success", async (o) => {
3492
- try {
3493
- await Un.post(fe.authConfirmEndpoint, null, {
3494
- withCredentials: !0
3495
- }), e();
3496
- } catch (i) {
3497
- console.error(i), t(i);
3498
- } finally {
3499
- n.close();
3500
- }
3501
- }), n.onerror = (o) => {
3502
- console.error("EventSource failed:", o), n.close();
3503
- }, n;
3480
+ return (await kn.post(ft.createEndpoint, e)).data;
3481
+ }
3482
+ async function Ho(e, t, r) {
3483
+ const n = new AbortController(), o = new Date(t).getTime();
3484
+ for (r.addEventListener("abort", () => n.abort()); ; ) {
3485
+ if (o - Date.now() <= 0)
3486
+ throw new Error("Auth timeout");
3487
+ const i = await kn.post(ft.authEndpoint, null, {
3488
+ params: {
3489
+ sessionId: e
3490
+ },
3491
+ withCredentials: !0,
3492
+ signal: n.signal
3493
+ });
3494
+ if (i.status === 200)
3495
+ return;
3496
+ if (i.status !== 204)
3497
+ throw new Error(`Auth failed: ${i.status}`);
3498
+ }
3504
3499
  }
3505
3500
  const rn = on();
3506
3501
  class zo {
3507
3502
  constructor() {
3508
- k(this, "overlay", null);
3509
- k(this, "isOpen", !1);
3510
- k(this, "authEvent", null);
3503
+ x(this, "overlay", null);
3504
+ x(this, "isOpen", !1);
3505
+ x(this, "controller", null);
3511
3506
  // Элементы для управления состояниями
3512
- k(this, "contentContainer", null);
3513
- k(this, "loader", null);
3514
- k(this, "qrContainer", null);
3515
- k(this, "separator", null);
3516
- k(this, "loginButton", null);
3517
- k(this, "errorContainer", null);
3518
- k(this, "timerContainer", null);
3507
+ x(this, "contentContainer", null);
3508
+ x(this, "loader", null);
3509
+ x(this, "qrContainer", null);
3510
+ x(this, "separator", null);
3511
+ x(this, "loginButton", null);
3512
+ x(this, "errorContainer", null);
3513
+ x(this, "timerContainer", null);
3519
3514
  // Таймер
3520
- k(this, "timerInterval", null);
3515
+ x(this, "timerInterval", null);
3521
3516
  // Промис
3522
- k(this, "resolvePromise", null);
3523
- k(this, "rejectPromise", null);
3524
- k(this, "currentPromise", null);
3517
+ x(this, "resolvePromise", null);
3518
+ x(this, "rejectPromise", null);
3519
+ x(this, "currentPromise", null);
3525
3520
  // Добавим свойство для хранения данных запроса
3526
- k(this, "requestData", null);
3521
+ x(this, "requestData", null);
3527
3522
  }
3528
3523
  createElement(t, r, n) {
3529
3524
  const o = document.createElement(t);
@@ -3564,9 +3559,11 @@ class zo {
3564
3559
  renderSuccessState(t) {
3565
3560
  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";
3566
3561
  const r = this.chooseLink(t);
3567
- this.generateQR(this.qrContainer, r), this.loginButton.onclick = () => window.open(r), this.authEvent = Ho(() => {
3562
+ this.generateQR(this.qrContainer, r), this.loginButton.onclick = () => window.open(r), Ho(t.sessionId, t.validUntil, this.controller.signal).then(() => {
3568
3563
  this.close(), this.resolvePromise();
3569
- }, (n) => this.renderErrorState(n)), t.validUntil ? (this.timerContainer.style.display = "block", this.startTimer(t.validUntil)) : this.timerContainer.style.display = "none";
3564
+ }).catch((o) => {
3565
+ this.renderErrorState(o);
3566
+ }), t.validUntil ? (this.timerContainer.style.display = "block", this.startTimer(t.validUntil)) : this.timerContainer.style.display = "none";
3570
3567
  }
3571
3568
  chooseLink(t) {
3572
3569
  const r = t.links, n = r.find((i) => i.type == "WEB_APP");
@@ -3596,7 +3593,7 @@ class zo {
3596
3593
  });
3597
3594
  }
3598
3595
  async show(t) {
3599
- return this.isOpen ? this.currentPromise : (this.requestData = t, this.currentPromise = new Promise((r, n) => {
3596
+ return this.isOpen ? this.currentPromise : (this.controller = new AbortController(), this.requestData = t, this.currentPromise = new Promise((r, n) => {
3600
3597
  this.resolvePromise = r, this.rejectPromise = n;
3601
3598
  }), this.overlay || this.createModal(), this.isOpen = !0, setTimeout(() => {
3602
3599
  var r;
@@ -3615,18 +3612,19 @@ class zo {
3615
3612
  }
3616
3613
  }
3617
3614
  close() {
3618
- !this.isOpen || !this.overlay || (this.authEvent && this.authEvent.close(), this.timerInterval && (clearInterval(this.timerInterval), this.timerInterval = null), this.overlay.classList.remove("active"), setTimeout(() => {
3615
+ var t;
3616
+ !this.isOpen || !this.overlay || ((t = this.controller) == null || t.abort(), this.timerInterval && (clearInterval(this.timerInterval), this.timerInterval = null), this.overlay.classList.remove("active"), setTimeout(() => {
3619
3617
  this.overlay && this.overlay.parentNode && this.overlay.parentNode.removeChild(this.overlay), this.overlay = null, this.isOpen = !1, this.requestData = null;
3620
3618
  }, 400));
3621
3619
  }
3622
3620
  }
3623
3621
  $o();
3624
- const kn = new zo();
3622
+ const xn = new zo();
3625
3623
  async function fi(e = {}) {
3626
- return kn.show(e);
3624
+ return xn.show(e);
3627
3625
  }
3628
3626
  function di() {
3629
- kn.close();
3627
+ xn.close();
3630
3628
  }
3631
3629
  function $o() {
3632
3630
  if (document.getElementById("oauth0-js-lib-styles")) return;
@@ -3634,8 +3632,8 @@ function $o() {
3634
3632
  e.id = "oauth0-js-lib-styles", e.innerHTML = Hn, document.head.appendChild(e);
3635
3633
  }
3636
3634
  export {
3635
+ Ho as auth,
3637
3636
  di as closeQrLogin,
3638
- Ho as createAuthEvent,
3639
3637
  jo as createAuthSession,
3640
3638
  on as getConfig,
3641
3639
  Jo as setConfig,