@das-fed/upf-utils 6.4.0-dev.232 → 6.4.0-dev.233

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.
Files changed (112) hide show
  1. package/api-services/es5.js +2103 -2167
  2. package/api-services/index.js +1600 -1650
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +2279 -2367
  5. package/api-services/modules/app-manage/index.js +1891 -1977
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +2330 -2397
  8. package/api-services/modules/authentication/index.js +1938 -1992
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +2235 -2311
  11. package/api-services/modules/bems/index.js +1837 -1905
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +2279 -2367
  14. package/api-services/modules/contract/index.js +1891 -1977
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +2227 -2303
  17. package/api-services/modules/duty-manage/index.js +1835 -1903
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +2223 -2299
  20. package/api-services/modules/enterpriseright/index.js +1830 -1898
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +2079 -2143
  23. package/api-services/modules/file/es5.js +1796 -1872
  24. package/api-services/modules/file/index.js +1390 -1458
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +2330 -2397
  27. package/api-services/modules/gateway-edge/index.js +1938 -1992
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1571 -1621
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +2133 -2197
  32. package/api-services/modules/iot/index.js +1766 -1816
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +2224 -2300
  35. package/api-services/modules/justauth/index.js +1831 -1899
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +2279 -2367
  38. package/api-services/modules/knowledge/index.js +1891 -1977
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +2330 -2397
  41. package/api-services/modules/link/index.js +1938 -1992
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +2223 -2299
  44. package/api-services/modules/permission/index.js +1830 -1898
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +2241 -2317
  47. package/api-services/modules/platformManage/index.js +1841 -1909
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +2119 -2183
  50. package/api-services/modules/portal/index.js +1760 -1810
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +2119 -2183
  53. package/api-services/modules/space-manage/index.js +1760 -1810
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +2230 -2306
  56. package/api-services/modules/super-admin/index.js +1834 -1902
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +2227 -2303
  59. package/api-services/modules/supplier/index.js +1832 -1900
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +2330 -2397
  62. package/api-services/modules/supplychain-manage/index.js +1938 -1992
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +2316 -2380
  65. package/api-services/modules/systemConfiguration/index.js +1927 -1977
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +2189 -2265
  68. package/api-services/modules/tool/index.js +1804 -1872
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +2117 -2181
  71. package/api-services/src/create-service/index.js +1758 -1808
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +2272 -2336
  74. package/common-info/getPermissionMethod/es5.js +2153 -2217
  75. package/common-info/getPermissionMethod/index.js +1796 -1846
  76. package/common-info/getPermissionMethod/index.js.gz +0 -0
  77. package/common-info/index.js +1845 -1895
  78. package/common-info/index.js.gz +0 -0
  79. package/common-info/set-personal-info/es5.js +997 -1073
  80. package/common-info/set-personal-info/index.js +827 -895
  81. package/common-info/set-personal-info/index.js.gz +0 -0
  82. package/common-tools/extract-file-name/es5.js +998 -1074
  83. package/common-tools/extract-file-name/index.js +821 -889
  84. package/common-tools/extract-file-name/index.js.gz +0 -0
  85. package/common-tools/handle-data/es5.js +1 -1
  86. package/common-tools/update-browser-title/es5.js +1 -1
  87. package/common-tools/update-fav-icon/es5.js +1 -1
  88. package/create-api-service/access-token-auto-refresh/es5.js +1 -1
  89. package/create-api-service/check-token/es5.js +1 -1
  90. package/create-api-service/es5.js +2118 -2182
  91. package/create-api-service/index.js +1759 -1809
  92. package/create-api-service/index.js.gz +0 -0
  93. package/create-api-service/sso/es5.js +1166 -1242
  94. package/create-api-service/sso/index.js +938 -1006
  95. package/create-api-service/sso/index.js.gz +0 -0
  96. package/create-api-service/token-refresh-shared/es5.js +1049 -1125
  97. package/create-api-service/token-refresh-shared/index.js +859 -927
  98. package/create-api-service/token-refresh-shared/index.js.gz +0 -0
  99. package/curring-http/es5.js +1366 -1442
  100. package/curring-http/index.js +1064 -1132
  101. package/curring-http/index.js.gz +0 -0
  102. package/directive/clickOutside/es5.js +1 -1
  103. package/directive/hoverInside/es5.js +1 -1
  104. package/directive/utils/es5.js +1 -1
  105. package/hooks/use-get-auth/es5.js +1 -1
  106. package/package.json +3 -3
  107. package/pinyin-first-character/es5.js +45 -47
  108. package/pinyin-first-character/index.js +35 -37
  109. package/pinyin-first-character/index.js.gz +0 -0
  110. package/style/es5.js +11 -11
  111. package/style/index.js +10 -10
  112. package/style/index.js.gz +0 -0
@@ -1,58 +1,46 @@
1
- import { getConfig as wt } from "@das-fed/upf-utils/config";
2
- function Ke(e, t) {
1
+ import { getConfig as tt } from "@das-fed/upf-utils/config";
2
+ function Fe(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
5
5
  };
6
6
  }
7
- const { toString: Et } = Object.prototype, { getPrototypeOf: Re } = Object, { iterator: ie, toStringTag: Xe } = Symbol, ce = /* @__PURE__ */ ((e) => (t) => {
8
- const n = Et.call(t);
7
+ const { toString: nt } = Object.prototype, { getPrototypeOf: de } = Object, { iterator: G, toStringTag: Ue } = Symbol, Q = /* @__PURE__ */ ((e) => (t) => {
8
+ const n = nt.call(t);
9
9
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => ce(t) === e), ae = (e) => (t) => typeof t === e, { isArray: M } = Array, I = ae("undefined");
11
- function v(e) {
12
- return e !== null && !I(e) && e.constructor !== null && !I(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
10
+ })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => Q(t) === e), Y = (e) => (t) => typeof t === e, { isArray: k } = Array, H = Y("undefined");
11
+ function rt(e) {
12
+ return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
13
  }
14
- const Ge = N("ArrayBuffer");
15
- function Rt(e) {
14
+ const Le = C("ArrayBuffer");
15
+ function st(e) {
16
16
  let t;
17
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ge(e.buffer), t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Le(e.buffer), t;
18
18
  }
19
- const gt = ae("string"), T = ae("function"), Qe = ae("number"), K = (e) => e !== null && typeof e == "object", St = (e) => e === !0 || e === !1, ne = (e) => {
20
- if (ce(e) !== "object")
21
- return !1;
22
- const t = Re(e);
23
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Xe in e) && !(ie in e);
24
- }, Ot = (e) => {
25
- if (!K(e) || v(e))
26
- return !1;
27
- try {
28
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
29
- } catch {
19
+ const ot = Y("string"), A = Y("function"), Be = Y("number"), Z = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, W = (e) => {
20
+ if (Q(e) !== "object")
30
21
  return !1;
31
- }
32
- }, Tt = N("Date"), At = N("File"), xt = N("Blob"), Ct = N("FileList"), Pt = (e) => K(e) && T(e.pipe), Nt = (e) => {
22
+ const t = de(e);
23
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ue in e) && !(G in e);
24
+ }, ct = C("Date"), at = C("File"), ut = C("Blob"), lt = C("FileList"), ft = (e) => Z(e) && A(e.pipe), dt = (e) => {
33
25
  let t;
34
- return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = ce(e)) === "formdata" || // detect form-data instance
35
- t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
36
- }, _t = N("URLSearchParams"), [Ft, Ut, Lt, Bt] = ["ReadableStream", "Request", "Response", "Headers"].map(N), kt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
- function X(e, t, { allOwnKeys: n = !1 } = {}) {
26
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = Q(e)) === "formdata" || // detect form-data instance
27
+ t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
28
+ }, pt = C("URLSearchParams"), [ht, mt, yt, bt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), wt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
29
+ function I(e, t, { allOwnKeys: n = !1 } = {}) {
38
30
  if (e === null || typeof e > "u")
39
31
  return;
40
32
  let r, s;
41
- if (typeof e != "object" && (e = [e]), M(e))
33
+ if (typeof e != "object" && (e = [e]), k(e))
42
34
  for (r = 0, s = e.length; r < s; r++)
43
35
  t.call(null, e[r], r, e);
44
36
  else {
45
- if (v(e))
46
- return;
47
- const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
37
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
48
38
  let a;
49
- for (r = 0; r < o; r++)
50
- a = i[r], t.call(null, e[a], a, e);
39
+ for (r = 0; r < i; r++)
40
+ a = o[r], t.call(null, e[a], a, e);
51
41
  }
52
42
  }
53
- function Ye(e, t) {
54
- if (v(e))
55
- return null;
43
+ function ke(e, t) {
56
44
  t = t.toLowerCase();
57
45
  const n = Object.keys(e);
58
46
  let r = n.length, s;
@@ -61,75 +49,75 @@ function Ye(e, t) {
61
49
  return s;
62
50
  return null;
63
51
  }
64
- const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ze = (e) => !I(e) && e !== j;
65
- function ye() {
66
- const { caseless: e, skipUndefined: t } = Ze(this) && this || {}, n = {}, r = (s, i) => {
67
- const o = e && Ye(n, i) || i;
68
- ne(n[o]) && ne(s) ? n[o] = ye(n[o], s) : ne(s) ? n[o] = ye({}, s) : M(s) ? n[o] = s.slice() : (!t || !I(s)) && (n[o] = s);
52
+ const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, je = (e) => !H(e) && e !== U;
53
+ function ie() {
54
+ const { caseless: e } = je(this) && this || {}, t = {}, n = (r, s) => {
55
+ const o = e && ke(t, s) || s;
56
+ W(t[o]) && W(r) ? t[o] = ie(t[o], r) : W(r) ? t[o] = ie({}, r) : k(r) ? t[o] = r.slice() : t[o] = r;
69
57
  };
70
- for (let s = 0, i = arguments.length; s < i; s++)
71
- arguments[s] && X(arguments[s], r);
72
- return n;
58
+ for (let r = 0, s = arguments.length; r < s; r++)
59
+ arguments[r] && I(arguments[r], n);
60
+ return t;
73
61
  }
74
- const jt = (e, t, n, { allOwnKeys: r } = {}) => (X(t, (s, i) => {
75
- n && T(s) ? e[i] = Ke(s, n) : e[i] = s;
76
- }, { allOwnKeys: r }), e), Dt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), qt = (e, t, n, r) => {
62
+ const Et = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
63
+ n && A(s) ? e[o] = Fe(s, n) : e[o] = s;
64
+ }, { allOwnKeys: r }), e), Rt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), gt = (e, t, n, r) => {
77
65
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
78
66
  value: t.prototype
79
67
  }), n && Object.assign(e.prototype, n);
80
- }, Ht = (e, t, n, r) => {
81
- let s, i, o;
68
+ }, St = (e, t, n, r) => {
69
+ let s, o, i;
82
70
  const a = {};
83
71
  if (t = t || {}, e == null) return t;
84
72
  do {
85
- for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
86
- o = s[i], (!r || r(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
87
- e = n !== !1 && Re(e);
73
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
74
+ i = s[o], (!r || r(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
75
+ e = n !== !1 && de(e);
88
76
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
89
77
  return t;
90
- }, It = (e, t, n) => {
78
+ }, Tt = (e, t, n) => {
91
79
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
92
80
  const r = e.indexOf(t, n);
93
81
  return r !== -1 && r === n;
94
- }, Mt = (e) => {
82
+ }, Ot = (e) => {
95
83
  if (!e) return null;
96
- if (M(e)) return e;
84
+ if (k(e)) return e;
97
85
  let t = e.length;
98
- if (!Qe(t)) return null;
86
+ if (!Be(t)) return null;
99
87
  const n = new Array(t);
100
88
  for (; t-- > 0; )
101
89
  n[t] = e[t];
102
90
  return n;
103
- }, zt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Re(Uint8Array)), $t = (e, t) => {
104
- const r = (e && e[ie]).call(e);
91
+ }, At = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && de(Uint8Array)), xt = (e, t) => {
92
+ const r = (e && e[G]).call(e);
105
93
  let s;
106
94
  for (; (s = r.next()) && !s.done; ) {
107
- const i = s.value;
108
- t.call(e, i[0], i[1]);
95
+ const o = s.value;
96
+ t.call(e, o[0], o[1]);
109
97
  }
110
- }, Jt = (e, t) => {
98
+ }, Ct = (e, t) => {
111
99
  let n;
112
100
  const r = [];
113
101
  for (; (n = e.exec(t)) !== null; )
114
102
  r.push(n);
115
103
  return r;
116
- }, Vt = N("HTMLFormElement"), Wt = (e) => e.toLowerCase().replace(
104
+ }, Nt = C("HTMLFormElement"), _t = (e) => e.toLowerCase().replace(
117
105
  /[-_\s]([a-z\d])(\w*)/g,
118
106
  function(n, r, s) {
119
107
  return r.toUpperCase() + s;
120
108
  }
121
- ), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), vt = N("RegExp"), et = (e, t) => {
109
+ ), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = C("RegExp"), qe = (e, t) => {
122
110
  const n = Object.getOwnPropertyDescriptors(e), r = {};
123
- X(n, (s, i) => {
124
- let o;
125
- (o = t(s, i, e)) !== !1 && (r[i] = o || s);
111
+ I(n, (s, o) => {
112
+ let i;
113
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
126
114
  }), Object.defineProperties(e, r);
127
- }, Kt = (e) => {
128
- et(e, (t, n) => {
129
- if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
115
+ }, Ft = (e) => {
116
+ qe(e, (t, n) => {
117
+ if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
118
  return !1;
131
119
  const r = e[n];
132
- if (T(r)) {
120
+ if (A(r)) {
133
121
  if (t.enumerable = !1, "writable" in t) {
134
122
  t.writable = !1;
135
123
  return;
@@ -139,108 +127,105 @@ const jt = (e, t, n, { allOwnKeys: r } = {}) => (X(t, (s, i) => {
139
127
  });
140
128
  }
141
129
  });
142
- }, Xt = (e, t) => {
130
+ }, Ut = (e, t) => {
143
131
  const n = {}, r = (s) => {
144
- s.forEach((i) => {
145
- n[i] = !0;
132
+ s.forEach((o) => {
133
+ n[o] = !0;
146
134
  });
147
135
  };
148
- return M(e) ? r(e) : r(String(e).split(t)), n;
149
- }, Gt = () => {
150
- }, Qt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
151
- function Yt(e) {
152
- return !!(e && T(e.append) && e[Xe] === "FormData" && e[ie]);
136
+ return k(e) ? r(e) : r(String(e).split(t)), n;
137
+ }, Lt = () => {
138
+ }, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
139
+ function kt(e) {
140
+ return !!(e && A(e.append) && e[Ue] === "FormData" && e[G]);
153
141
  }
154
- const Zt = (e) => {
142
+ const jt = (e) => {
155
143
  const t = new Array(10), n = (r, s) => {
156
- if (K(r)) {
144
+ if (Z(r)) {
157
145
  if (t.indexOf(r) >= 0)
158
146
  return;
159
- if (v(r))
160
- return r;
161
147
  if (!("toJSON" in r)) {
162
148
  t[s] = r;
163
- const i = M(r) ? [] : {};
164
- return X(r, (o, a) => {
165
- const d = n(o, s + 1);
166
- !I(d) && (i[a] = d);
167
- }), t[s] = void 0, i;
149
+ const o = k(r) ? [] : {};
150
+ return I(r, (i, a) => {
151
+ const f = n(i, s + 1);
152
+ !H(f) && (o[a] = f);
153
+ }), t[s] = void 0, o;
168
154
  }
169
155
  }
170
156
  return r;
171
157
  };
172
158
  return n(e, 0);
173
- }, en = N("AsyncFunction"), tn = (e) => e && (K(e) || T(e)) && T(e.then) && T(e.catch), tt = ((e, t) => e ? setImmediate : t ? ((n, r) => (j.addEventListener("message", ({ source: s, data: i }) => {
174
- s === j && i === n && r.length && r.shift()();
159
+ }, qt = C("AsyncFunction"), Dt = (e) => e && (Z(e) || A(e)) && A(e.then) && A(e.catch), De = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
160
+ s === U && o === n && r.length && r.shift()();
175
161
  }, !1), (s) => {
176
- r.push(s), j.postMessage(n, "*");
162
+ r.push(s), U.postMessage(n, "*");
177
163
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
164
  typeof setImmediate == "function",
179
- T(j.postMessage)
180
- ), nn = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || tt, rn = (e) => e != null && T(e[ie]), c = {
181
- isArray: M,
182
- isArrayBuffer: Ge,
183
- isBuffer: v,
184
- isFormData: Nt,
185
- isArrayBufferView: Rt,
186
- isString: gt,
187
- isNumber: Qe,
188
- isBoolean: St,
189
- isObject: K,
190
- isPlainObject: ne,
191
- isEmptyObject: Ot,
192
- isReadableStream: Ft,
193
- isRequest: Ut,
194
- isResponse: Lt,
195
- isHeaders: Bt,
196
- isUndefined: I,
197
- isDate: Tt,
198
- isFile: At,
199
- isBlob: xt,
200
- isRegExp: vt,
201
- isFunction: T,
202
- isStream: Pt,
203
- isURLSearchParams: _t,
204
- isTypedArray: zt,
205
- isFileList: Ct,
206
- forEach: X,
207
- merge: ye,
208
- extend: jt,
209
- trim: kt,
210
- stripBOM: Dt,
211
- inherits: qt,
212
- toFlatObject: Ht,
213
- kindOf: ce,
214
- kindOfTest: N,
215
- endsWith: It,
216
- toArray: Mt,
217
- forEachEntry: $t,
218
- matchAll: Jt,
219
- isHTMLForm: Vt,
220
- hasOwnProperty: Fe,
221
- hasOwnProp: Fe,
165
+ A(U.postMessage)
166
+ ), Mt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || De, Ht = (e) => e != null && A(e[G]), c = {
167
+ isArray: k,
168
+ isArrayBuffer: Le,
169
+ isBuffer: rt,
170
+ isFormData: dt,
171
+ isArrayBufferView: st,
172
+ isString: ot,
173
+ isNumber: Be,
174
+ isBoolean: it,
175
+ isObject: Z,
176
+ isPlainObject: W,
177
+ isReadableStream: ht,
178
+ isRequest: mt,
179
+ isResponse: yt,
180
+ isHeaders: bt,
181
+ isUndefined: H,
182
+ isDate: ct,
183
+ isFile: at,
184
+ isBlob: ut,
185
+ isRegExp: Pt,
186
+ isFunction: A,
187
+ isStream: ft,
188
+ isURLSearchParams: pt,
189
+ isTypedArray: At,
190
+ isFileList: lt,
191
+ forEach: I,
192
+ merge: ie,
193
+ extend: Et,
194
+ trim: wt,
195
+ stripBOM: Rt,
196
+ inherits: gt,
197
+ toFlatObject: St,
198
+ kindOf: Q,
199
+ kindOfTest: C,
200
+ endsWith: Tt,
201
+ toArray: Ot,
202
+ forEachEntry: xt,
203
+ matchAll: Ct,
204
+ isHTMLForm: Nt,
205
+ hasOwnProperty: be,
206
+ hasOwnProp: be,
222
207
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: et,
224
- freezeMethods: Kt,
225
- toObjectSet: Xt,
226
- toCamelCase: Wt,
227
- noop: Gt,
228
- toFiniteNumber: Qt,
229
- findKey: Ye,
230
- global: j,
231
- isContextDefined: Ze,
232
- isSpecCompliantForm: Yt,
233
- toJSONObject: Zt,
234
- isAsyncFn: en,
235
- isThenable: tn,
236
- setImmediate: tt,
237
- asap: nn,
238
- isIterable: rn
208
+ reduceDescriptors: qe,
209
+ freezeMethods: Ft,
210
+ toObjectSet: Ut,
211
+ toCamelCase: _t,
212
+ noop: Lt,
213
+ toFiniteNumber: Bt,
214
+ findKey: ke,
215
+ global: U,
216
+ isContextDefined: je,
217
+ isSpecCompliantForm: kt,
218
+ toJSONObject: jt,
219
+ isAsyncFn: qt,
220
+ isThenable: Dt,
221
+ setImmediate: De,
222
+ asap: Mt,
223
+ isIterable: Ht
239
224
  };
240
- function y(e, t, n, r, s) {
225
+ function m(e, t, n, r, s) {
241
226
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
242
227
  }
243
- c.inherits(y, Error, {
228
+ c.inherits(m, Error, {
244
229
  toJSON: function() {
245
230
  return {
246
231
  // Standard
@@ -261,7 +246,7 @@ c.inherits(y, Error, {
261
246
  };
262
247
  }
263
248
  });
264
- const nt = y.prototype, rt = {};
249
+ const Me = m.prototype, He = {};
265
250
  [
266
251
  "ERR_BAD_OPTION_VALUE",
267
252
  "ERR_BAD_OPTION",
@@ -277,100 +262,98 @@ const nt = y.prototype, rt = {};
277
262
  "ERR_INVALID_URL"
278
263
  // eslint-disable-next-line func-names
279
264
  ].forEach((e) => {
280
- rt[e] = { value: e };
265
+ He[e] = { value: e };
281
266
  });
282
- Object.defineProperties(y, rt);
283
- Object.defineProperty(nt, "isAxiosError", { value: !0 });
284
- y.from = (e, t, n, r, s, i) => {
285
- const o = Object.create(nt);
286
- c.toFlatObject(e, o, function(u) {
287
- return u !== Error.prototype;
288
- }, (f) => f !== "isAxiosError");
289
- const a = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
290
- return y.call(o, a, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
267
+ Object.defineProperties(m, He);
268
+ Object.defineProperty(Me, "isAxiosError", { value: !0 });
269
+ m.from = (e, t, n, r, s, o) => {
270
+ const i = Object.create(Me);
271
+ return c.toFlatObject(e, i, function(f) {
272
+ return f !== Error.prototype;
273
+ }, (a) => a !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
291
274
  };
292
- const sn = null;
293
- function be(e) {
275
+ const It = null;
276
+ function ce(e) {
294
277
  return c.isPlainObject(e) || c.isArray(e);
295
278
  }
296
- function st(e) {
279
+ function Ie(e) {
297
280
  return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
281
  }
299
- function Ue(e, t, n) {
300
- return e ? e.concat(t).map(function(s, i) {
301
- return s = st(s), !n && i ? "[" + s + "]" : s;
282
+ function we(e, t, n) {
283
+ return e ? e.concat(t).map(function(s, o) {
284
+ return s = Ie(s), !n && o ? "[" + s + "]" : s;
302
285
  }).join(n ? "." : "") : t;
303
286
  }
304
- function on(e) {
305
- return c.isArray(e) && !e.some(be);
287
+ function zt(e) {
288
+ return c.isArray(e) && !e.some(ce);
306
289
  }
307
- const cn = c.toFlatObject(c, {}, null, function(t) {
290
+ const Jt = c.toFlatObject(c, {}, null, function(t) {
308
291
  return /^is[A-Z]/.test(t);
309
292
  });
310
- function ue(e, t, n) {
293
+ function ee(e, t, n) {
311
294
  if (!c.isObject(e))
312
295
  throw new TypeError("target must be an object");
313
296
  t = t || new FormData(), n = c.toFlatObject(n, {
314
297
  metaTokens: !0,
315
298
  dots: !1,
316
299
  indexes: !1
317
- }, !1, function(m, p) {
318
- return !c.isUndefined(p[m]);
300
+ }, !1, function(y, h) {
301
+ return !c.isUndefined(h[y]);
319
302
  });
320
- const r = n.metaTokens, s = n.visitor || u, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
303
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
321
304
  if (!c.isFunction(s))
322
305
  throw new TypeError("visitor must be a function");
323
- function f(l) {
324
- if (l === null) return "";
325
- if (c.isDate(l))
326
- return l.toISOString();
327
- if (c.isBoolean(l))
328
- return l.toString();
329
- if (!d && c.isBlob(l))
330
- throw new y("Blob is not supported. Use a Buffer instead.");
331
- return c.isArrayBuffer(l) || c.isTypedArray(l) ? d && typeof Blob == "function" ? new Blob([l]) : Buffer.from(l) : l;
332
- }
333
- function u(l, m, p) {
334
- let E = l;
335
- if (l && !p && typeof l == "object") {
336
- if (c.endsWith(m, "{}"))
337
- m = r ? m : m.slice(0, -2), l = JSON.stringify(l);
338
- else if (c.isArray(l) && on(l) || (c.isFileList(l) || c.endsWith(m, "[]")) && (E = c.toArray(l)))
339
- return m = st(m), E.forEach(function(R, O) {
340
- !(c.isUndefined(R) || R === null) && t.append(
306
+ function u(d) {
307
+ if (d === null) return "";
308
+ if (c.isDate(d))
309
+ return d.toISOString();
310
+ if (c.isBoolean(d))
311
+ return d.toString();
312
+ if (!f && c.isBlob(d))
313
+ throw new m("Blob is not supported. Use a Buffer instead.");
314
+ return c.isArrayBuffer(d) || c.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
315
+ }
316
+ function l(d, y, h) {
317
+ let w = d;
318
+ if (d && !h && typeof d == "object") {
319
+ if (c.endsWith(y, "{}"))
320
+ y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
321
+ else if (c.isArray(d) && zt(d) || (c.isFileList(d) || c.endsWith(y, "[]")) && (w = c.toArray(d)))
322
+ return y = Ie(y), w.forEach(function(S, _) {
323
+ !(c.isUndefined(S) || S === null) && t.append(
341
324
  // eslint-disable-next-line no-nested-ternary
342
- o === !0 ? Ue([m], O, i) : o === null ? m : m + "[]",
343
- f(R)
325
+ i === !0 ? we([y], _, o) : i === null ? y : y + "[]",
326
+ u(S)
344
327
  );
345
328
  }), !1;
346
329
  }
347
- return be(l) ? !0 : (t.append(Ue(p, m, i), f(l)), !1);
330
+ return ce(d) ? !0 : (t.append(we(h, y, o), u(d)), !1);
348
331
  }
349
- const h = [], b = Object.assign(cn, {
350
- defaultVisitor: u,
351
- convertValue: f,
352
- isVisitable: be
332
+ const p = [], b = Object.assign(Jt, {
333
+ defaultVisitor: l,
334
+ convertValue: u,
335
+ isVisitable: ce
353
336
  });
354
- function g(l, m) {
355
- if (!c.isUndefined(l)) {
356
- if (h.indexOf(l) !== -1)
357
- throw Error("Circular reference detected in " + m.join("."));
358
- h.push(l), c.forEach(l, function(E, x) {
359
- (!(c.isUndefined(E) || E === null) && s.call(
337
+ function R(d, y) {
338
+ if (!c.isUndefined(d)) {
339
+ if (p.indexOf(d) !== -1)
340
+ throw Error("Circular reference detected in " + y.join("."));
341
+ p.push(d), c.forEach(d, function(w, g) {
342
+ (!(c.isUndefined(w) || w === null) && s.call(
360
343
  t,
361
- E,
362
- c.isString(x) ? x.trim() : x,
363
- m,
344
+ w,
345
+ c.isString(g) ? g.trim() : g,
346
+ y,
364
347
  b
365
- )) === !0 && g(E, m ? m.concat(x) : [x]);
366
- }), h.pop();
348
+ )) === !0 && R(w, y ? y.concat(g) : [g]);
349
+ }), p.pop();
367
350
  }
368
351
  }
369
352
  if (!c.isObject(e))
370
353
  throw new TypeError("data must be an object");
371
- return g(e), t;
354
+ return R(e), t;
372
355
  }
373
- function Le(e) {
356
+ function Ee(e) {
374
357
  const t = {
375
358
  "!": "%21",
376
359
  "'": "%27",
@@ -384,40 +367,40 @@ function Le(e) {
384
367
  return t[r];
385
368
  });
386
369
  }
387
- function ge(e, t) {
388
- this._pairs = [], e && ue(e, this, t);
370
+ function pe(e, t) {
371
+ this._pairs = [], e && ee(e, this, t);
389
372
  }
390
- const ot = ge.prototype;
391
- ot.append = function(t, n) {
373
+ const ze = pe.prototype;
374
+ ze.append = function(t, n) {
392
375
  this._pairs.push([t, n]);
393
376
  };
394
- ot.toString = function(t) {
377
+ ze.toString = function(t) {
395
378
  const n = t ? function(r) {
396
- return t.call(this, r, Le);
397
- } : Le;
379
+ return t.call(this, r, Ee);
380
+ } : Ee;
398
381
  return this._pairs.map(function(s) {
399
382
  return n(s[0]) + "=" + n(s[1]);
400
383
  }, "").join("&");
401
384
  };
402
- function an(e) {
403
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
385
+ function Vt(e) {
386
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
404
387
  }
405
- function it(e, t, n) {
388
+ function Je(e, t, n) {
406
389
  if (!t)
407
390
  return e;
408
- const r = n && n.encode || an;
391
+ const r = n && n.encode || Vt;
409
392
  c.isFunction(n) && (n = {
410
393
  serialize: n
411
394
  });
412
395
  const s = n && n.serialize;
413
- let i;
414
- if (s ? i = s(t, n) : i = c.isURLSearchParams(t) ? t.toString() : new ge(t, n).toString(r), i) {
415
- const o = e.indexOf("#");
416
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
396
+ let o;
397
+ if (s ? o = s(t, n) : o = c.isURLSearchParams(t) ? t.toString() : new pe(t, n).toString(r), o) {
398
+ const i = e.indexOf("#");
399
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
417
400
  }
418
401
  return e;
419
402
  }
420
- class Be {
403
+ class Re {
421
404
  constructor() {
422
405
  this.handlers = [];
423
406
  }
@@ -442,7 +425,7 @@ class Be {
442
425
  *
443
426
  * @param {Number} id The ID that was returned by `use`
444
427
  *
445
- * @returns {void}
428
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
446
429
  */
447
430
  eject(t) {
448
431
  this.handlers[t] && (this.handlers[t] = null);
@@ -471,66 +454,65 @@ class Be {
471
454
  });
472
455
  }
473
456
  }
474
- const ct = {
457
+ const Ve = {
475
458
  silentJSONParsing: !0,
476
459
  forcedJSONParsing: !0,
477
460
  clarifyTimeoutError: !1
478
- }, un = typeof URLSearchParams < "u" ? URLSearchParams : ge, ln = typeof FormData < "u" ? FormData : null, fn = typeof Blob < "u" ? Blob : null, dn = {
461
+ }, Wt = typeof URLSearchParams < "u" ? URLSearchParams : pe, $t = typeof FormData < "u" ? FormData : null, Kt = typeof Blob < "u" ? Blob : null, vt = {
479
462
  isBrowser: !0,
480
463
  classes: {
481
- URLSearchParams: un,
482
- FormData: ln,
483
- Blob: fn
464
+ URLSearchParams: Wt,
465
+ FormData: $t,
466
+ Blob: Kt
484
467
  },
485
468
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, Se = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, pn = Se && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), hn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", mn = Se && window.location.href || "http://localhost", yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
469
+ }, he = typeof window < "u" && typeof document < "u", ae = typeof navigator == "object" && navigator || void 0, Xt = he && (!ae || ["ReactNative", "NativeScript", "NS"].indexOf(ae.product) < 0), Gt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
470
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Qt = he && window.location.href || "http://localhost", Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
471
  __proto__: null,
489
- hasBrowserEnv: Se,
490
- hasStandardBrowserEnv: pn,
491
- hasStandardBrowserWebWorkerEnv: hn,
492
- navigator: we,
493
- origin: mn
494
- }, Symbol.toStringTag, { value: "Module" })), S = {
495
- ...yn,
496
- ...dn
472
+ hasBrowserEnv: he,
473
+ hasStandardBrowserEnv: Xt,
474
+ hasStandardBrowserWebWorkerEnv: Gt,
475
+ navigator: ae,
476
+ origin: Qt
477
+ }, Symbol.toStringTag, { value: "Module" })), T = {
478
+ ...Yt,
479
+ ...vt
497
480
  };
498
- function bn(e, t) {
499
- return ue(e, new S.classes.URLSearchParams(), {
500
- visitor: function(n, r, s, i) {
501
- return S.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
502
- },
503
- ...t
504
- });
481
+ function Zt(e, t) {
482
+ return ee(e, new T.classes.URLSearchParams(), Object.assign({
483
+ visitor: function(n, r, s, o) {
484
+ return T.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
485
+ }
486
+ }, t));
505
487
  }
506
- function wn(e) {
488
+ function en(e) {
507
489
  return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
508
490
  }
509
- function En(e) {
491
+ function tn(e) {
510
492
  const t = {}, n = Object.keys(e);
511
493
  let r;
512
494
  const s = n.length;
513
- let i;
495
+ let o;
514
496
  for (r = 0; r < s; r++)
515
- i = n[r], t[i] = e[i];
497
+ o = n[r], t[o] = e[o];
516
498
  return t;
517
499
  }
518
- function at(e) {
519
- function t(n, r, s, i) {
520
- let o = n[i++];
521
- if (o === "__proto__") return !0;
522
- const a = Number.isFinite(+o), d = i >= n.length;
523
- return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] = En(s[o])), !a);
500
+ function We(e) {
501
+ function t(n, r, s, o) {
502
+ let i = n[o++];
503
+ if (i === "__proto__") return !0;
504
+ const a = Number.isFinite(+i), f = o >= n.length;
505
+ return i = !i && c.isArray(s) ? s.length : i, f ? (c.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !c.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && c.isArray(s[i]) && (s[i] = tn(s[i])), !a);
524
506
  }
525
507
  if (c.isFormData(e) && c.isFunction(e.entries)) {
526
508
  const n = {};
527
509
  return c.forEachEntry(e, (r, s) => {
528
- t(wn(r), s, n, 0);
510
+ t(en(r), s, n, 0);
529
511
  }), n;
530
512
  }
531
513
  return null;
532
514
  }
533
- function Rn(e, t, n) {
515
+ function nn(e, t, n) {
534
516
  if (c.isString(e))
535
517
  try {
536
518
  return (t || JSON.parse)(e), c.trim(e);
@@ -540,13 +522,13 @@ function Rn(e, t, n) {
540
522
  }
541
523
  return (0, JSON.stringify)(e);
542
524
  }
543
- const G = {
544
- transitional: ct,
525
+ const z = {
526
+ transitional: Ve,
545
527
  adapter: ["xhr", "http", "fetch"],
546
528
  transformRequest: [function(t, n) {
547
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = c.isObject(t);
548
- if (i && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
549
- return s ? JSON.stringify(at(t)) : t;
529
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = c.isObject(t);
530
+ if (o && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
531
+ return s ? JSON.stringify(We(t)) : t;
550
532
  if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
551
533
  return t;
552
534
  if (c.isArrayBufferView(t))
@@ -554,31 +536,31 @@ const G = {
554
536
  if (c.isURLSearchParams(t))
555
537
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
556
538
  let a;
557
- if (i) {
539
+ if (o) {
558
540
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
559
- return bn(t, this.formSerializer).toString();
541
+ return Zt(t, this.formSerializer).toString();
560
542
  if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
561
- const d = this.env && this.env.FormData;
562
- return ue(
543
+ const f = this.env && this.env.FormData;
544
+ return ee(
563
545
  a ? { "files[]": t } : t,
564
- d && new d(),
546
+ f && new f(),
565
547
  this.formSerializer
566
548
  );
567
549
  }
568
550
  }
569
- return i || s ? (n.setContentType("application/json", !1), Rn(t)) : t;
551
+ return o || s ? (n.setContentType("application/json", !1), nn(t)) : t;
570
552
  }],
571
553
  transformResponse: [function(t) {
572
- const n = this.transitional || G.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
554
+ const n = this.transitional || z.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
573
555
  if (c.isResponse(t) || c.isReadableStream(t))
574
556
  return t;
575
557
  if (t && c.isString(t) && (r && !this.responseType || s)) {
576
- const o = !(n && n.silentJSONParsing) && s;
558
+ const i = !(n && n.silentJSONParsing) && s;
577
559
  try {
578
- return JSON.parse(t, this.parseReviver);
560
+ return JSON.parse(t);
579
561
  } catch (a) {
580
- if (o)
581
- throw a.name === "SyntaxError" ? y.from(a, y.ERR_BAD_RESPONSE, this, null, this.response) : a;
562
+ if (i)
563
+ throw a.name === "SyntaxError" ? m.from(a, m.ERR_BAD_RESPONSE, this, null, this.response) : a;
582
564
  }
583
565
  }
584
566
  return t;
@@ -593,8 +575,8 @@ const G = {
593
575
  maxContentLength: -1,
594
576
  maxBodyLength: -1,
595
577
  env: {
596
- FormData: S.classes.FormData,
597
- Blob: S.classes.Blob
578
+ FormData: T.classes.FormData,
579
+ Blob: T.classes.Blob
598
580
  },
599
581
  validateStatus: function(t) {
600
582
  return t >= 200 && t < 300;
@@ -607,9 +589,9 @@ const G = {
607
589
  }
608
590
  };
609
591
  c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
610
- G.headers[e] = {};
592
+ z.headers[e] = {};
611
593
  });
612
- const gn = c.toObjectSet([
594
+ const rn = c.toObjectSet([
613
595
  "age",
614
596
  "authorization",
615
597
  "content-length",
@@ -627,29 +609,29 @@ const gn = c.toObjectSet([
627
609
  "referer",
628
610
  "retry-after",
629
611
  "user-agent"
630
- ]), Sn = (e) => {
612
+ ]), sn = (e) => {
631
613
  const t = {};
632
614
  let n, r, s;
633
615
  return e && e.split(`
634
- `).forEach(function(o) {
635
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && gn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
616
+ `).forEach(function(i) {
617
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && rn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
636
618
  }), t;
637
- }, ke = Symbol("internals");
638
- function V(e) {
619
+ }, ge = Symbol("internals");
620
+ function D(e) {
639
621
  return e && String(e).trim().toLowerCase();
640
622
  }
641
- function re(e) {
642
- return e === !1 || e == null ? e : c.isArray(e) ? e.map(re) : String(e);
623
+ function $(e) {
624
+ return e === !1 || e == null ? e : c.isArray(e) ? e.map($) : String(e);
643
625
  }
644
- function On(e) {
626
+ function on(e) {
645
627
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
646
628
  let r;
647
629
  for (; r = n.exec(e); )
648
630
  t[r[1]] = r[2];
649
631
  return t;
650
632
  }
651
- const Tn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
652
- function pe(e, t, n, r, s) {
633
+ const cn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
634
+ function re(e, t, n, r, s) {
653
635
  if (c.isFunction(r))
654
636
  return r.call(this, t, n);
655
637
  if (s && (t = n), !!c.isString(t)) {
@@ -659,59 +641,59 @@ function pe(e, t, n, r, s) {
659
641
  return r.test(t);
660
642
  }
661
643
  }
662
- function An(e) {
644
+ function an(e) {
663
645
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
664
646
  }
665
- function xn(e, t) {
647
+ function un(e, t) {
666
648
  const n = c.toCamelCase(" " + t);
667
649
  ["get", "set", "has"].forEach((r) => {
668
650
  Object.defineProperty(e, r + n, {
669
- value: function(s, i, o) {
670
- return this[r].call(this, t, s, i, o);
651
+ value: function(s, o, i) {
652
+ return this[r].call(this, t, s, o, i);
671
653
  },
672
654
  configurable: !0
673
655
  });
674
656
  });
675
657
  }
676
- class A {
658
+ class x {
677
659
  constructor(t) {
678
660
  t && this.set(t);
679
661
  }
680
662
  set(t, n, r) {
681
663
  const s = this;
682
- function i(a, d, f) {
683
- const u = V(d);
684
- if (!u)
664
+ function o(a, f, u) {
665
+ const l = D(f);
666
+ if (!l)
685
667
  throw new Error("header name must be a non-empty string");
686
- const h = c.findKey(s, u);
687
- (!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h || d] = re(a));
668
+ const p = c.findKey(s, l);
669
+ (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || f] = $(a));
688
670
  }
689
- const o = (a, d) => c.forEach(a, (f, u) => i(f, u, d));
671
+ const i = (a, f) => c.forEach(a, (u, l) => o(u, l, f));
690
672
  if (c.isPlainObject(t) || t instanceof this.constructor)
691
- o(t, n);
692
- else if (c.isString(t) && (t = t.trim()) && !Tn(t))
693
- o(Sn(t), n);
673
+ i(t, n);
674
+ else if (c.isString(t) && (t = t.trim()) && !cn(t))
675
+ i(sn(t), n);
694
676
  else if (c.isObject(t) && c.isIterable(t)) {
695
- let a = {}, d, f;
696
- for (const u of t) {
697
- if (!c.isArray(u))
677
+ let a = {}, f, u;
678
+ for (const l of t) {
679
+ if (!c.isArray(l))
698
680
  throw TypeError("Object iterator must return a key-value pair");
699
- a[f = u[0]] = (d = a[f]) ? c.isArray(d) ? [...d, u[1]] : [d, u[1]] : u[1];
681
+ a[u = l[0]] = (f = a[u]) ? c.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
700
682
  }
701
- o(a, n);
683
+ i(a, n);
702
684
  } else
703
- t != null && i(n, t, r);
685
+ t != null && o(n, t, r);
704
686
  return this;
705
687
  }
706
688
  get(t, n) {
707
- if (t = V(t), t) {
689
+ if (t = D(t), t) {
708
690
  const r = c.findKey(this, t);
709
691
  if (r) {
710
692
  const s = this[r];
711
693
  if (!n)
712
694
  return s;
713
695
  if (n === !0)
714
- return On(s);
696
+ return on(s);
715
697
  if (c.isFunction(n))
716
698
  return n.call(this, s, r);
717
699
  if (c.isRegExp(n))
@@ -721,42 +703,42 @@ class A {
721
703
  }
722
704
  }
723
705
  has(t, n) {
724
- if (t = V(t), t) {
706
+ if (t = D(t), t) {
725
707
  const r = c.findKey(this, t);
726
- return !!(r && this[r] !== void 0 && (!n || pe(this, this[r], r, n)));
708
+ return !!(r && this[r] !== void 0 && (!n || re(this, this[r], r, n)));
727
709
  }
728
710
  return !1;
729
711
  }
730
712
  delete(t, n) {
731
713
  const r = this;
732
714
  let s = !1;
733
- function i(o) {
734
- if (o = V(o), o) {
735
- const a = c.findKey(r, o);
736
- a && (!n || pe(r, r[a], a, n)) && (delete r[a], s = !0);
715
+ function o(i) {
716
+ if (i = D(i), i) {
717
+ const a = c.findKey(r, i);
718
+ a && (!n || re(r, r[a], a, n)) && (delete r[a], s = !0);
737
719
  }
738
720
  }
739
- return c.isArray(t) ? t.forEach(i) : i(t), s;
721
+ return c.isArray(t) ? t.forEach(o) : o(t), s;
740
722
  }
741
723
  clear(t) {
742
724
  const n = Object.keys(this);
743
725
  let r = n.length, s = !1;
744
726
  for (; r--; ) {
745
- const i = n[r];
746
- (!t || pe(this, this[i], i, t, !0)) && (delete this[i], s = !0);
727
+ const o = n[r];
728
+ (!t || re(this, this[o], o, t, !0)) && (delete this[o], s = !0);
747
729
  }
748
730
  return s;
749
731
  }
750
732
  normalize(t) {
751
733
  const n = this, r = {};
752
- return c.forEach(this, (s, i) => {
753
- const o = c.findKey(r, i);
754
- if (o) {
755
- n[o] = re(s), delete n[i];
734
+ return c.forEach(this, (s, o) => {
735
+ const i = c.findKey(r, o);
736
+ if (i) {
737
+ n[i] = $(s), delete n[o];
756
738
  return;
757
739
  }
758
- const a = t ? An(i) : String(i).trim();
759
- a !== i && delete n[i], n[a] = re(s), r[a] = !0;
740
+ const a = t ? an(o) : String(o).trim();
741
+ a !== o && delete n[o], n[a] = $(s), r[a] = !0;
760
742
  }), this;
761
743
  }
762
744
  concat(...t) {
@@ -789,18 +771,18 @@ class A {
789
771
  return n.forEach((s) => r.set(s)), r;
790
772
  }
791
773
  static accessor(t) {
792
- const r = (this[ke] = this[ke] = {
774
+ const r = (this[ge] = this[ge] = {
793
775
  accessors: {}
794
776
  }).accessors, s = this.prototype;
795
- function i(o) {
796
- const a = V(o);
797
- r[a] || (xn(s, o), r[a] = !0);
777
+ function o(i) {
778
+ const a = D(i);
779
+ r[a] || (un(s, i), r[a] = !0);
798
780
  }
799
- return c.isArray(t) ? t.forEach(i) : i(t), this;
781
+ return c.isArray(t) ? t.forEach(o) : o(t), this;
800
782
  }
801
783
  }
802
- A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
- c.reduceDescriptors(A.prototype, ({ value: e }, t) => {
784
+ x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
785
+ c.reduceDescriptors(x.prototype, ({ value: e }, t) => {
804
786
  let n = t[0].toUpperCase() + t.slice(1);
805
787
  return {
806
788
  get: () => e,
@@ -809,109 +791,107 @@ c.reduceDescriptors(A.prototype, ({ value: e }, t) => {
809
791
  }
810
792
  };
811
793
  });
812
- c.freezeMethods(A);
813
- function he(e, t) {
814
- const n = this || G, r = t || n, s = A.from(r.headers);
815
- let i = r.data;
794
+ c.freezeMethods(x);
795
+ function se(e, t) {
796
+ const n = this || z, r = t || n, s = x.from(r.headers);
797
+ let o = r.data;
816
798
  return c.forEach(e, function(a) {
817
- i = a.call(n, i, s.normalize(), t ? t.status : void 0);
818
- }), s.normalize(), i;
799
+ o = a.call(n, o, s.normalize(), t ? t.status : void 0);
800
+ }), s.normalize(), o;
819
801
  }
820
- function ut(e) {
802
+ function $e(e) {
821
803
  return !!(e && e.__CANCEL__);
822
804
  }
823
- function z(e, t, n) {
824
- y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
805
+ function j(e, t, n) {
806
+ m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
825
807
  }
826
- c.inherits(z, y, {
808
+ c.inherits(j, m, {
827
809
  __CANCEL__: !0
828
810
  });
829
- function lt(e, t, n) {
811
+ function Ke(e, t, n) {
830
812
  const r = n.config.validateStatus;
831
- !n.status || !r || r(n.status) ? e(n) : t(new y(
813
+ !n.status || !r || r(n.status) ? e(n) : t(new m(
832
814
  "Request failed with status code " + n.status,
833
- [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
815
+ [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
834
816
  n.config,
835
817
  n.request,
836
818
  n
837
819
  ));
838
820
  }
839
- function Cn(e) {
821
+ function ln(e) {
840
822
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
841
823
  return t && t[1] || "";
842
824
  }
843
- function Pn(e, t) {
825
+ function fn(e, t) {
844
826
  e = e || 10;
845
827
  const n = new Array(e), r = new Array(e);
846
- let s = 0, i = 0, o;
847
- return t = t !== void 0 ? t : 1e3, function(d) {
848
- const f = Date.now(), u = r[i];
849
- o || (o = f), n[s] = d, r[s] = f;
850
- let h = i, b = 0;
851
- for (; h !== s; )
852
- b += n[h++], h = h % e;
853
- if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
828
+ let s = 0, o = 0, i;
829
+ return t = t !== void 0 ? t : 1e3, function(f) {
830
+ const u = Date.now(), l = r[o];
831
+ i || (i = u), n[s] = f, r[s] = u;
832
+ let p = o, b = 0;
833
+ for (; p !== s; )
834
+ b += n[p++], p = p % e;
835
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
854
836
  return;
855
- const g = u && f - u;
856
- return g ? Math.round(b * 1e3 / g) : void 0;
837
+ const R = l && u - l;
838
+ return R ? Math.round(b * 1e3 / R) : void 0;
857
839
  };
858
840
  }
859
- function Nn(e, t) {
860
- let n = 0, r = 1e3 / t, s, i;
861
- const o = (f, u = Date.now()) => {
862
- n = u, s = null, i && (clearTimeout(i), i = null), e(...f);
841
+ function dn(e, t) {
842
+ let n = 0, r = 1e3 / t, s, o;
843
+ const i = (u, l = Date.now()) => {
844
+ n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
863
845
  };
864
- return [(...f) => {
865
- const u = Date.now(), h = u - n;
866
- h >= r ? o(f, u) : (s = f, i || (i = setTimeout(() => {
867
- i = null, o(s);
868
- }, r - h)));
869
- }, () => s && o(s)];
846
+ return [(...u) => {
847
+ const l = Date.now(), p = l - n;
848
+ p >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
849
+ o = null, i(s);
850
+ }, r - p)));
851
+ }, () => s && i(s)];
870
852
  }
871
- const oe = (e, t, n = 3) => {
853
+ const v = (e, t, n = 3) => {
872
854
  let r = 0;
873
- const s = Pn(50, 250);
874
- return Nn((i) => {
875
- const o = i.loaded, a = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), u = o <= a;
876
- r = o;
877
- const h = {
878
- loaded: o,
855
+ const s = fn(50, 250);
856
+ return dn((o) => {
857
+ const i = o.loaded, a = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= a;
858
+ r = i;
859
+ const p = {
860
+ loaded: i,
879
861
  total: a,
880
- progress: a ? o / a : void 0,
881
- bytes: d,
882
- rate: f || void 0,
883
- estimated: f && a && u ? (a - o) / f : void 0,
884
- event: i,
862
+ progress: a ? i / a : void 0,
863
+ bytes: f,
864
+ rate: u || void 0,
865
+ estimated: u && a && l ? (a - i) / u : void 0,
866
+ event: o,
885
867
  lengthComputable: a != null,
886
868
  [t ? "download" : "upload"]: !0
887
869
  };
888
- e(h);
870
+ e(p);
889
871
  }, n);
890
- }, je = (e, t) => {
872
+ }, Se = (e, t) => {
891
873
  const n = e != null;
892
874
  return [(r) => t[0]({
893
875
  lengthComputable: n,
894
876
  total: e,
895
877
  loaded: r
896
878
  }), t[1]];
897
- }, De = (e) => (...t) => c.asap(() => e(...t)), _n = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, S.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
898
- new URL(S.origin),
899
- S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
900
- ) : () => !0, Fn = S.hasStandardBrowserEnv ? (
879
+ }, Te = (e) => (...t) => c.asap(() => e(...t)), pn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
880
+ new URL(T.origin),
881
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
882
+ ) : () => !0, hn = T.hasStandardBrowserEnv ? (
901
883
  // Standard browser envs support document.cookie
902
884
  {
903
- write(e, t, n, r, s, i, o) {
904
- if (typeof document > "u") return;
905
- const a = [`${e}=${encodeURIComponent(t)}`];
906
- c.isNumber(n) && a.push(`expires=${new Date(n).toUTCString()}`), c.isString(r) && a.push(`path=${r}`), c.isString(s) && a.push(`domain=${s}`), i === !0 && a.push("secure"), c.isString(o) && a.push(`SameSite=${o}`), document.cookie = a.join("; ");
885
+ write(e, t, n, r, s, o) {
886
+ const i = [e + "=" + encodeURIComponent(t)];
887
+ c.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), c.isString(r) && i.push("path=" + r), c.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
907
888
  },
908
889
  read(e) {
909
- if (typeof document > "u") return null;
910
- const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
911
- return t ? decodeURIComponent(t[1]) : null;
890
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
891
+ return t ? decodeURIComponent(t[3]) : null;
912
892
  },
913
893
  remove(e) {
914
- this.write(e, "", Date.now() - 864e5, "/");
894
+ this.write(e, "", Date.now() - 864e5);
915
895
  }
916
896
  }
917
897
  ) : (
@@ -926,184 +906,183 @@ const oe = (e, t, n = 3) => {
926
906
  }
927
907
  }
928
908
  );
929
- function Un(e) {
909
+ function mn(e) {
930
910
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
931
911
  }
932
- function Ln(e, t) {
912
+ function yn(e, t) {
933
913
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
934
914
  }
935
- function ft(e, t, n) {
936
- let r = !Un(t);
937
- return e && (r || n == !1) ? Ln(e, t) : t;
915
+ function ve(e, t, n) {
916
+ let r = !mn(t);
917
+ return e && (r || n == !1) ? yn(e, t) : t;
938
918
  }
939
- const qe = (e) => e instanceof A ? { ...e } : e;
940
- function q(e, t) {
919
+ const Oe = (e) => e instanceof x ? { ...e } : e;
920
+ function B(e, t) {
941
921
  t = t || {};
942
922
  const n = {};
943
- function r(f, u, h, b) {
944
- return c.isPlainObject(f) && c.isPlainObject(u) ? c.merge.call({ caseless: b }, f, u) : c.isPlainObject(u) ? c.merge({}, u) : c.isArray(u) ? u.slice() : u;
945
- }
946
- function s(f, u, h, b) {
947
- if (c.isUndefined(u)) {
948
- if (!c.isUndefined(f))
949
- return r(void 0, f, h, b);
950
- } else return r(f, u, h, b);
951
- }
952
- function i(f, u) {
953
- if (!c.isUndefined(u))
923
+ function r(u, l, p, b) {
924
+ return c.isPlainObject(u) && c.isPlainObject(l) ? c.merge.call({ caseless: b }, u, l) : c.isPlainObject(l) ? c.merge({}, l) : c.isArray(l) ? l.slice() : l;
925
+ }
926
+ function s(u, l, p, b) {
927
+ if (c.isUndefined(l)) {
928
+ if (!c.isUndefined(u))
929
+ return r(void 0, u, p, b);
930
+ } else return r(u, l, p, b);
931
+ }
932
+ function o(u, l) {
933
+ if (!c.isUndefined(l))
934
+ return r(void 0, l);
935
+ }
936
+ function i(u, l) {
937
+ if (c.isUndefined(l)) {
938
+ if (!c.isUndefined(u))
939
+ return r(void 0, u);
940
+ } else return r(void 0, l);
941
+ }
942
+ function a(u, l, p) {
943
+ if (p in t)
944
+ return r(u, l);
945
+ if (p in e)
954
946
  return r(void 0, u);
955
947
  }
956
- function o(f, u) {
957
- if (c.isUndefined(u)) {
958
- if (!c.isUndefined(f))
959
- return r(void 0, f);
960
- } else return r(void 0, u);
961
- }
962
- function a(f, u, h) {
963
- if (h in t)
964
- return r(f, u);
965
- if (h in e)
966
- return r(void 0, f);
967
- }
968
- const d = {
969
- url: i,
970
- method: i,
971
- data: i,
972
- baseURL: o,
973
- transformRequest: o,
974
- transformResponse: o,
975
- paramsSerializer: o,
976
- timeout: o,
977
- timeoutMessage: o,
978
- withCredentials: o,
979
- withXSRFToken: o,
980
- adapter: o,
981
- responseType: o,
982
- xsrfCookieName: o,
983
- xsrfHeaderName: o,
984
- onUploadProgress: o,
985
- onDownloadProgress: o,
986
- decompress: o,
987
- maxContentLength: o,
988
- maxBodyLength: o,
989
- beforeRedirect: o,
990
- transport: o,
991
- httpAgent: o,
992
- httpsAgent: o,
993
- cancelToken: o,
994
- socketPath: o,
995
- responseEncoding: o,
948
+ const f = {
949
+ url: o,
950
+ method: o,
951
+ data: o,
952
+ baseURL: i,
953
+ transformRequest: i,
954
+ transformResponse: i,
955
+ paramsSerializer: i,
956
+ timeout: i,
957
+ timeoutMessage: i,
958
+ withCredentials: i,
959
+ withXSRFToken: i,
960
+ adapter: i,
961
+ responseType: i,
962
+ xsrfCookieName: i,
963
+ xsrfHeaderName: i,
964
+ onUploadProgress: i,
965
+ onDownloadProgress: i,
966
+ decompress: i,
967
+ maxContentLength: i,
968
+ maxBodyLength: i,
969
+ beforeRedirect: i,
970
+ transport: i,
971
+ httpAgent: i,
972
+ httpsAgent: i,
973
+ cancelToken: i,
974
+ socketPath: i,
975
+ responseEncoding: i,
996
976
  validateStatus: a,
997
- headers: (f, u, h) => s(qe(f), qe(u), h, !0)
977
+ headers: (u, l, p) => s(Oe(u), Oe(l), p, !0)
998
978
  };
999
- return c.forEach(Object.keys({ ...e, ...t }), function(u) {
1000
- const h = d[u] || s, b = h(e[u], t[u], u);
1001
- c.isUndefined(b) && h !== a || (n[u] = b);
979
+ return c.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
980
+ const p = f[l] || s, b = p(e[l], t[l], l);
981
+ c.isUndefined(b) && p !== a || (n[l] = b);
1002
982
  }), n;
1003
983
  }
1004
- const dt = (e) => {
1005
- const t = q({}, e);
1006
- let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = t;
1007
- if (t.headers = o = A.from(o), t.url = it(ft(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
984
+ const Xe = (e) => {
985
+ const t = B({}, e);
986
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = t;
987
+ t.headers = i = x.from(i), t.url = Je(ve(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
1008
988
  "Authorization",
1009
989
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1010
- ), c.isFormData(n)) {
1011
- if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
1012
- o.setContentType(void 0);
1013
- else if (c.isFunction(n.getHeaders)) {
1014
- const d = n.getHeaders(), f = ["content-type", "content-length"];
1015
- Object.entries(d).forEach(([u, h]) => {
1016
- f.includes(u.toLowerCase()) && o.set(u, h);
1017
- });
990
+ );
991
+ let f;
992
+ if (c.isFormData(n)) {
993
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
994
+ i.setContentType(void 0);
995
+ else if ((f = i.getContentType()) !== !1) {
996
+ const [u, ...l] = f ? f.split(";").map((p) => p.trim()).filter(Boolean) : [];
997
+ i.setContentType([u || "multipart/form-data", ...l].join("; "));
1018
998
  }
1019
999
  }
1020
- if (S.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && _n(t.url))) {
1021
- const d = s && i && Fn.read(i);
1022
- d && o.set(s, d);
1000
+ if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && pn(t.url))) {
1001
+ const u = s && o && hn.read(o);
1002
+ u && i.set(s, u);
1023
1003
  }
1024
1004
  return t;
1025
- }, Bn = typeof XMLHttpRequest < "u", kn = Bn && function(e) {
1005
+ }, bn = typeof XMLHttpRequest < "u", wn = bn && function(e) {
1026
1006
  return new Promise(function(n, r) {
1027
- const s = dt(e);
1028
- let i = s.data;
1029
- const o = A.from(s.headers).normalize();
1030
- let { responseType: a, onUploadProgress: d, onDownloadProgress: f } = s, u, h, b, g, l;
1031
- function m() {
1032
- g && g(), l && l(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1007
+ const s = Xe(e);
1008
+ let o = s.data;
1009
+ const i = x.from(s.headers).normalize();
1010
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: u } = s, l, p, b, R, d;
1011
+ function y() {
1012
+ R && R(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1033
1013
  }
1034
- let p = new XMLHttpRequest();
1035
- p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1036
- function E() {
1037
- if (!p)
1014
+ let h = new XMLHttpRequest();
1015
+ h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1016
+ function w() {
1017
+ if (!h)
1038
1018
  return;
1039
- const R = A.from(
1040
- "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1041
- ), P = {
1042
- data: !a || a === "text" || a === "json" ? p.responseText : p.response,
1043
- status: p.status,
1044
- statusText: p.statusText,
1045
- headers: R,
1019
+ const S = x.from(
1020
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1021
+ ), O = {
1022
+ data: !a || a === "text" || a === "json" ? h.responseText : h.response,
1023
+ status: h.status,
1024
+ statusText: h.statusText,
1025
+ headers: S,
1046
1026
  config: e,
1047
- request: p
1027
+ request: h
1048
1028
  };
1049
- lt(function(C) {
1050
- n(C), m();
1051
- }, function(C) {
1052
- r(C), m();
1053
- }, P), p = null;
1029
+ Ke(function(F) {
1030
+ n(F), y();
1031
+ }, function(F) {
1032
+ r(F), y();
1033
+ }, O), h = null;
1054
1034
  }
1055
- "onloadend" in p ? p.onloadend = E : p.onreadystatechange = function() {
1056
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(E);
1057
- }, p.onabort = function() {
1058
- p && (r(new y("Request aborted", y.ECONNABORTED, e, p)), p = null);
1059
- }, p.onerror = function(O) {
1060
- const P = O && O.message ? O.message : "Network Error", B = new y(P, y.ERR_NETWORK, e, p);
1061
- B.event = O || null, r(B), p = null;
1062
- }, p.ontimeout = function() {
1063
- let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1064
- const P = s.transitional || ct;
1065
- s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(new y(
1066
- O,
1067
- P.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1035
+ "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
1036
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1037
+ }, h.onabort = function() {
1038
+ h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
1039
+ }, h.onerror = function() {
1040
+ r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
1041
+ }, h.ontimeout = function() {
1042
+ let _ = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1043
+ const O = s.transitional || Ve;
1044
+ s.timeoutErrorMessage && (_ = s.timeoutErrorMessage), r(new m(
1045
+ _,
1046
+ O.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1068
1047
  e,
1069
- p
1070
- )), p = null;
1071
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && c.forEach(o.toJSON(), function(O, P) {
1072
- p.setRequestHeader(P, O);
1073
- }), c.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), a && a !== "json" && (p.responseType = s.responseType), f && ([b, l] = oe(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, g] = oe(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (R) => {
1074
- p && (r(!R || R.type ? new z(null, e, p) : R), p.abort(), p = null);
1075
- }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1076
- const x = Cn(s.url);
1077
- if (x && S.protocols.indexOf(x) === -1) {
1078
- r(new y("Unsupported protocol " + x + ":", y.ERR_BAD_REQUEST, e));
1048
+ h
1049
+ )), h = null;
1050
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(_, O) {
1051
+ h.setRequestHeader(O, _);
1052
+ }), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), u && ([b, d] = v(u, !0), h.addEventListener("progress", b)), f && h.upload && ([p, R] = v(f), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (S) => {
1053
+ h && (r(!S || S.type ? new j(null, e, h) : S), h.abort(), h = null);
1054
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1055
+ const g = ln(s.url);
1056
+ if (g && T.protocols.indexOf(g) === -1) {
1057
+ r(new m("Unsupported protocol " + g + ":", m.ERR_BAD_REQUEST, e));
1079
1058
  return;
1080
1059
  }
1081
- p.send(i || null);
1060
+ h.send(o || null);
1082
1061
  });
1083
- }, jn = (e, t) => {
1062
+ }, En = (e, t) => {
1084
1063
  const { length: n } = e = e ? e.filter(Boolean) : [];
1085
1064
  if (t || n) {
1086
1065
  let r = new AbortController(), s;
1087
- const i = function(f) {
1066
+ const o = function(u) {
1088
1067
  if (!s) {
1089
1068
  s = !0, a();
1090
- const u = f instanceof Error ? f : this.reason;
1091
- r.abort(u instanceof y ? u : new z(u instanceof Error ? u.message : u));
1069
+ const l = u instanceof Error ? u : this.reason;
1070
+ r.abort(l instanceof m ? l : new j(l instanceof Error ? l.message : l));
1092
1071
  }
1093
1072
  };
1094
- let o = t && setTimeout(() => {
1095
- o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1073
+ let i = t && setTimeout(() => {
1074
+ i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
1096
1075
  }, t);
1097
1076
  const a = () => {
1098
- e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1099
- f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
1077
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1078
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1100
1079
  }), e = null);
1101
1080
  };
1102
- e.forEach((f) => f.addEventListener("abort", i));
1103
- const { signal: d } = r;
1104
- return d.unsubscribe = () => c.asap(a), d;
1081
+ e.forEach((u) => u.addEventListener("abort", o));
1082
+ const { signal: f } = r;
1083
+ return f.unsubscribe = () => c.asap(a), f;
1105
1084
  }
1106
- }, Dn = function* (e, t) {
1085
+ }, Rn = function* (e, t) {
1107
1086
  let n = e.byteLength;
1108
1087
  if (n < t) {
1109
1088
  yield e;
@@ -1112,10 +1091,10 @@ const dt = (e) => {
1112
1091
  let r = 0, s;
1113
1092
  for (; r < n; )
1114
1093
  s = r + t, yield e.slice(r, s), r = s;
1115
- }, qn = async function* (e, t) {
1116
- for await (const n of Hn(e))
1117
- yield* Dn(n, t);
1118
- }, Hn = async function* (e) {
1094
+ }, gn = async function* (e, t) {
1095
+ for await (const n of Sn(e))
1096
+ yield* Rn(n, t);
1097
+ }, Sn = async function* (e) {
1119
1098
  if (e[Symbol.asyncIterator]) {
1120
1099
  yield* e;
1121
1100
  return;
@@ -1131,200 +1110,169 @@ const dt = (e) => {
1131
1110
  } finally {
1132
1111
  await t.cancel();
1133
1112
  }
1134
- }, He = (e, t, n, r) => {
1135
- const s = qn(e, t);
1136
- let i = 0, o, a = (d) => {
1137
- o || (o = !0, r && r(d));
1113
+ }, Ae = (e, t, n, r) => {
1114
+ const s = gn(e, t);
1115
+ let o = 0, i, a = (f) => {
1116
+ i || (i = !0, r && r(f));
1138
1117
  };
1139
1118
  return new ReadableStream({
1140
- async pull(d) {
1119
+ async pull(f) {
1141
1120
  try {
1142
- const { done: f, value: u } = await s.next();
1143
- if (f) {
1144
- a(), d.close();
1121
+ const { done: u, value: l } = await s.next();
1122
+ if (u) {
1123
+ a(), f.close();
1145
1124
  return;
1146
1125
  }
1147
- let h = u.byteLength;
1126
+ let p = l.byteLength;
1148
1127
  if (n) {
1149
- let b = i += h;
1128
+ let b = o += p;
1150
1129
  n(b);
1151
1130
  }
1152
- d.enqueue(new Uint8Array(u));
1153
- } catch (f) {
1154
- throw a(f), f;
1131
+ f.enqueue(new Uint8Array(l));
1132
+ } catch (u) {
1133
+ throw a(u), u;
1155
1134
  }
1156
1135
  },
1157
- cancel(d) {
1158
- return a(d), s.return();
1136
+ cancel(f) {
1137
+ return a(f), s.return();
1159
1138
  }
1160
1139
  }, {
1161
1140
  highWaterMark: 2
1162
1141
  });
1163
- }, Ie = 64 * 1024, { isFunction: te } = c, In = (({ Request: e, Response: t }) => ({
1164
- Request: e,
1165
- Response: t
1166
- }))(c.global), {
1167
- ReadableStream: Me,
1168
- TextEncoder: ze
1169
- } = c.global, $e = (e, ...t) => {
1142
+ }, te = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ge = te && typeof ReadableStream == "function", Tn = te && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Qe = (e, ...t) => {
1170
1143
  try {
1171
1144
  return !!e(...t);
1172
1145
  } catch {
1173
1146
  return !1;
1174
1147
  }
1175
- }, Mn = (e) => {
1176
- e = c.merge.call({
1177
- skipUndefined: !0
1178
- }, In, e);
1179
- const { fetch: t, Request: n, Response: r } = e, s = t ? te(t) : typeof fetch == "function", i = te(n), o = te(r);
1180
- if (!s)
1181
- return !1;
1182
- const a = s && te(Me), d = s && (typeof ze == "function" ? /* @__PURE__ */ ((l) => (m) => l.encode(m))(new ze()) : async (l) => new Uint8Array(await new n(l).arrayBuffer())), f = i && a && $e(() => {
1183
- let l = !1;
1184
- const m = new n(S.origin, {
1185
- body: new Me(),
1186
- method: "POST",
1187
- get duplex() {
1188
- return l = !0, "half";
1189
- }
1190
- }).headers.has("Content-Type");
1191
- return l && !m;
1192
- }), u = o && a && $e(() => c.isReadableStream(new r("").body)), h = {
1193
- stream: u && ((l) => l.body)
1194
- };
1195
- s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((l) => {
1196
- !h[l] && (h[l] = (m, p) => {
1197
- let E = m && m[l];
1198
- if (E)
1199
- return E.call(m);
1200
- throw new y(`Response type '${l}' is not supported`, y.ERR_NOT_SUPPORT, p);
1148
+ }, On = Ge && Qe(() => {
1149
+ let e = !1;
1150
+ const t = new Request(T.origin, {
1151
+ body: new ReadableStream(),
1152
+ method: "POST",
1153
+ get duplex() {
1154
+ return e = !0, "half";
1155
+ }
1156
+ }).headers.has("Content-Type");
1157
+ return e && !t;
1158
+ }), xe = 64 * 1024, ue = Ge && Qe(() => c.isReadableStream(new Response("").body)), X = {
1159
+ stream: ue && ((e) => e.body)
1160
+ };
1161
+ te && ((e) => {
1162
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1163
+ !X[t] && (X[t] = c.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1164
+ throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
1201
1165
  });
1202
1166
  });
1203
- const b = async (l) => {
1204
- if (l == null)
1205
- return 0;
1206
- if (c.isBlob(l))
1207
- return l.size;
1208
- if (c.isSpecCompliantForm(l))
1209
- return (await new n(S.origin, {
1167
+ })(new Response());
1168
+ const An = async (e) => {
1169
+ if (e == null)
1170
+ return 0;
1171
+ if (c.isBlob(e))
1172
+ return e.size;
1173
+ if (c.isSpecCompliantForm(e))
1174
+ return (await new Request(T.origin, {
1175
+ method: "POST",
1176
+ body: e
1177
+ }).arrayBuffer()).byteLength;
1178
+ if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
1179
+ return e.byteLength;
1180
+ if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
1181
+ return (await Tn(e)).byteLength;
1182
+ }, xn = async (e, t) => {
1183
+ const n = c.toFiniteNumber(e.getContentLength());
1184
+ return n ?? An(t);
1185
+ }, Cn = te && (async (e) => {
1186
+ let {
1187
+ url: t,
1188
+ method: n,
1189
+ data: r,
1190
+ signal: s,
1191
+ cancelToken: o,
1192
+ timeout: i,
1193
+ onDownloadProgress: a,
1194
+ onUploadProgress: f,
1195
+ responseType: u,
1196
+ headers: l,
1197
+ withCredentials: p = "same-origin",
1198
+ fetchOptions: b
1199
+ } = Xe(e);
1200
+ u = u ? (u + "").toLowerCase() : "text";
1201
+ let R = En([s, o && o.toAbortSignal()], i), d;
1202
+ const y = R && R.unsubscribe && (() => {
1203
+ R.unsubscribe();
1204
+ });
1205
+ let h;
1206
+ try {
1207
+ if (f && On && n !== "get" && n !== "head" && (h = await xn(l, r)) !== 0) {
1208
+ let O = new Request(t, {
1210
1209
  method: "POST",
1211
- body: l
1212
- }).arrayBuffer()).byteLength;
1213
- if (c.isArrayBufferView(l) || c.isArrayBuffer(l))
1214
- return l.byteLength;
1215
- if (c.isURLSearchParams(l) && (l = l + ""), c.isString(l))
1216
- return (await d(l)).byteLength;
1217
- }, g = async (l, m) => {
1218
- const p = c.toFiniteNumber(l.getContentLength());
1219
- return p ?? b(m);
1220
- };
1221
- return async (l) => {
1222
- let {
1223
- url: m,
1224
- method: p,
1225
- data: E,
1226
- signal: x,
1227
- cancelToken: R,
1228
- timeout: O,
1229
- onDownloadProgress: P,
1230
- onUploadProgress: B,
1231
- responseType: C,
1232
- headers: fe,
1233
- withCredentials: Y = "same-origin",
1234
- fetchOptions: Ae
1235
- } = dt(l), xe = t || fetch;
1236
- C = C ? (C + "").toLowerCase() : "text";
1237
- let Z = jn([x, R && R.toAbortSignal()], O), J = null;
1238
- const k = Z && Z.unsubscribe && (() => {
1239
- Z.unsubscribe();
1240
- });
1241
- let Ce;
1242
- try {
1243
- if (B && f && p !== "get" && p !== "head" && (Ce = await g(fe, E)) !== 0) {
1244
- let L = new n(m, {
1245
- method: "POST",
1246
- body: E,
1247
- duplex: "half"
1248
- }), H;
1249
- if (c.isFormData(E) && (H = L.headers.get("content-type")) && fe.setContentType(H), L.body) {
1250
- const [de, ee] = je(
1251
- Ce,
1252
- oe(De(B))
1253
- );
1254
- E = He(L.body, Ie, de, ee);
1255
- }
1256
- }
1257
- c.isString(Y) || (Y = Y ? "include" : "omit");
1258
- const _ = i && "credentials" in n.prototype, Pe = {
1259
- ...Ae,
1260
- signal: Z,
1261
- method: p.toUpperCase(),
1262
- headers: fe.normalize().toJSON(),
1263
- body: E,
1264
- duplex: "half",
1265
- credentials: _ ? Y : void 0
1266
- };
1267
- J = i && new n(m, Pe);
1268
- let U = await (i ? xe(J, Ae) : xe(m, Pe));
1269
- const Ne = u && (C === "stream" || C === "response");
1270
- if (u && (P || Ne && k)) {
1271
- const L = {};
1272
- ["status", "statusText", "headers"].forEach((_e) => {
1273
- L[_e] = U[_e];
1274
- });
1275
- const H = c.toFiniteNumber(U.headers.get("content-length")), [de, ee] = P && je(
1276
- H,
1277
- oe(De(P), !0)
1278
- ) || [];
1279
- U = new r(
1280
- He(U.body, Ie, de, () => {
1281
- ee && ee(), k && k();
1282
- }),
1283
- L
1210
+ body: r,
1211
+ duplex: "half"
1212
+ }), P;
1213
+ if (c.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
1214
+ const [F, V] = Se(
1215
+ h,
1216
+ v(Te(f))
1284
1217
  );
1218
+ r = Ae(O.body, xe, F, V);
1285
1219
  }
1286
- C = C || "text";
1287
- let bt = await h[c.findKey(h, C) || "text"](U, l);
1288
- return !Ne && k && k(), await new Promise((L, H) => {
1289
- lt(L, H, {
1290
- data: bt,
1291
- headers: A.from(U.headers),
1292
- status: U.status,
1293
- statusText: U.statusText,
1294
- config: l,
1295
- request: J
1296
- });
1220
+ }
1221
+ c.isString(p) || (p = p ? "include" : "omit");
1222
+ const w = "credentials" in Request.prototype;
1223
+ d = new Request(t, {
1224
+ ...b,
1225
+ signal: R,
1226
+ method: n.toUpperCase(),
1227
+ headers: l.normalize().toJSON(),
1228
+ body: r,
1229
+ duplex: "half",
1230
+ credentials: w ? p : void 0
1231
+ });
1232
+ let g = await fetch(d, b);
1233
+ const S = ue && (u === "stream" || u === "response");
1234
+ if (ue && (a || S && y)) {
1235
+ const O = {};
1236
+ ["status", "statusText", "headers"].forEach((ye) => {
1237
+ O[ye] = g[ye];
1297
1238
  });
1298
- } catch (_) {
1299
- throw k && k(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
1300
- new y("Network Error", y.ERR_NETWORK, l, J),
1301
- {
1302
- cause: _.cause || _
1303
- }
1304
- ) : y.from(_, _ && _.code, l, J);
1239
+ const P = c.toFiniteNumber(g.headers.get("content-length")), [F, V] = a && Se(
1240
+ P,
1241
+ v(Te(a), !0)
1242
+ ) || [];
1243
+ g = new Response(
1244
+ Ae(g.body, xe, F, () => {
1245
+ V && V(), y && y();
1246
+ }),
1247
+ O
1248
+ );
1305
1249
  }
1306
- };
1307
- }, zn = /* @__PURE__ */ new Map(), pt = (e) => {
1308
- let t = e && e.env || {};
1309
- const { fetch: n, Request: r, Response: s } = t, i = [
1310
- r,
1311
- s,
1312
- n
1313
- ];
1314
- let o = i.length, a = o, d, f, u = zn;
1315
- for (; a--; )
1316
- d = i[a], f = u.get(d), f === void 0 && u.set(d, f = a ? /* @__PURE__ */ new Map() : Mn(t)), u = f;
1317
- return f;
1318
- };
1319
- pt();
1320
- const Oe = {
1321
- http: sn,
1322
- xhr: kn,
1323
- fetch: {
1324
- get: pt
1250
+ u = u || "text";
1251
+ let _ = await X[c.findKey(X, u) || "text"](g, e);
1252
+ return !S && y && y(), await new Promise((O, P) => {
1253
+ Ke(O, P, {
1254
+ data: _,
1255
+ headers: x.from(g.headers),
1256
+ status: g.status,
1257
+ statusText: g.statusText,
1258
+ config: e,
1259
+ request: d
1260
+ });
1261
+ });
1262
+ } catch (w) {
1263
+ throw y && y(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
1264
+ new m("Network Error", m.ERR_NETWORK, e, d),
1265
+ {
1266
+ cause: w.cause || w
1267
+ }
1268
+ ) : m.from(w, w && w.code, e, d);
1325
1269
  }
1270
+ }), le = {
1271
+ http: It,
1272
+ xhr: wn,
1273
+ fetch: Cn
1326
1274
  };
1327
- c.forEach(Oe, (e, t) => {
1275
+ c.forEach(le, (e, t) => {
1328
1276
  if (e) {
1329
1277
  try {
1330
1278
  Object.defineProperty(e, "name", { value: t });
@@ -1333,118 +1281,108 @@ c.forEach(Oe, (e, t) => {
1333
1281
  Object.defineProperty(e, "adapterName", { value: t });
1334
1282
  }
1335
1283
  });
1336
- const Je = (e) => `- ${e}`, $n = (e) => c.isFunction(e) || e === null || e === !1;
1337
- function Jn(e, t) {
1338
- e = c.isArray(e) ? e : [e];
1339
- const { length: n } = e;
1340
- let r, s;
1341
- const i = {};
1342
- for (let o = 0; o < n; o++) {
1343
- r = e[o];
1344
- let a;
1345
- if (s = r, !$n(r) && (s = Oe[(a = String(r)).toLowerCase()], s === void 0))
1346
- throw new y(`Unknown adapter '${a}'`);
1347
- if (s && (c.isFunction(s) || (s = s.get(t))))
1348
- break;
1349
- i[a || "#" + o] = s;
1350
- }
1351
- if (!s) {
1352
- const o = Object.entries(i).map(
1353
- ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1354
- );
1355
- let a = n ? o.length > 1 ? `since :
1356
- ` + o.map(Je).join(`
1357
- `) : " " + Je(o[0]) : "as no adapter specified";
1358
- throw new y(
1359
- "There is no suitable adapter to dispatch the request " + a,
1360
- "ERR_NOT_SUPPORT"
1361
- );
1362
- }
1363
- return s;
1364
- }
1365
- const ht = {
1366
- /**
1367
- * Resolve an adapter from a list of adapter names or functions.
1368
- * @type {Function}
1369
- */
1370
- getAdapter: Jn,
1371
- /**
1372
- * Exposes all known adapters
1373
- * @type {Object<string, Function|Object>}
1374
- */
1375
- adapters: Oe
1284
+ const Ce = (e) => `- ${e}`, Nn = (e) => c.isFunction(e) || e === null || e === !1, Ye = {
1285
+ getAdapter: (e) => {
1286
+ e = c.isArray(e) ? e : [e];
1287
+ const { length: t } = e;
1288
+ let n, r;
1289
+ const s = {};
1290
+ for (let o = 0; o < t; o++) {
1291
+ n = e[o];
1292
+ let i;
1293
+ if (r = n, !Nn(n) && (r = le[(i = String(n)).toLowerCase()], r === void 0))
1294
+ throw new m(`Unknown adapter '${i}'`);
1295
+ if (r)
1296
+ break;
1297
+ s[i || "#" + o] = r;
1298
+ }
1299
+ if (!r) {
1300
+ const o = Object.entries(s).map(
1301
+ ([a, f]) => `adapter ${a} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1302
+ );
1303
+ let i = t ? o.length > 1 ? `since :
1304
+ ` + o.map(Ce).join(`
1305
+ `) : " " + Ce(o[0]) : "as no adapter specified";
1306
+ throw new m(
1307
+ "There is no suitable adapter to dispatch the request " + i,
1308
+ "ERR_NOT_SUPPORT"
1309
+ );
1310
+ }
1311
+ return r;
1312
+ },
1313
+ adapters: le
1376
1314
  };
1377
- function me(e) {
1315
+ function oe(e) {
1378
1316
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1379
- throw new z(null, e);
1317
+ throw new j(null, e);
1380
1318
  }
1381
- function Ve(e) {
1382
- return me(e), e.headers = A.from(e.headers), e.data = he.call(
1319
+ function Ne(e) {
1320
+ return oe(e), e.headers = x.from(e.headers), e.data = se.call(
1383
1321
  e,
1384
1322
  e.transformRequest
1385
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ht.getAdapter(e.adapter || G.adapter, e)(e).then(function(r) {
1386
- return me(e), r.data = he.call(
1323
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ye.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
1324
+ return oe(e), r.data = se.call(
1387
1325
  e,
1388
1326
  e.transformResponse,
1389
1327
  r
1390
- ), r.headers = A.from(r.headers), r;
1328
+ ), r.headers = x.from(r.headers), r;
1391
1329
  }, function(r) {
1392
- return ut(r) || (me(e), r && r.response && (r.response.data = he.call(
1330
+ return $e(r) || (oe(e), r && r.response && (r.response.data = se.call(
1393
1331
  e,
1394
1332
  e.transformResponse,
1395
1333
  r.response
1396
- ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1334
+ ), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
1397
1335
  });
1398
1336
  }
1399
- const mt = "1.13.2", le = {};
1337
+ const Ze = "1.10.0", ne = {};
1400
1338
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1401
- le[e] = function(r) {
1339
+ ne[e] = function(r) {
1402
1340
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1403
1341
  };
1404
1342
  });
1405
- const We = {};
1406
- le.transitional = function(t, n, r) {
1407
- function s(i, o) {
1408
- return "[Axios v" + mt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1343
+ const _e = {};
1344
+ ne.transitional = function(t, n, r) {
1345
+ function s(o, i) {
1346
+ return "[Axios v" + Ze + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1409
1347
  }
1410
- return (i, o, a) => {
1348
+ return (o, i, a) => {
1411
1349
  if (t === !1)
1412
- throw new y(
1413
- s(o, " has been removed" + (n ? " in " + n : "")),
1414
- y.ERR_DEPRECATED
1350
+ throw new m(
1351
+ s(i, " has been removed" + (n ? " in " + n : "")),
1352
+ m.ERR_DEPRECATED
1415
1353
  );
1416
- return n && !We[o] && (We[o] = !0), t ? t(i, o, a) : !0;
1354
+ return n && !_e[i] && (_e[i] = !0), t ? t(o, i, a) : !0;
1417
1355
  };
1418
1356
  };
1419
- le.spelling = function(t) {
1357
+ ne.spelling = function(t) {
1420
1358
  return (n, r) => !0;
1421
1359
  };
1422
- function Vn(e, t, n) {
1360
+ function _n(e, t, n) {
1423
1361
  if (typeof e != "object")
1424
- throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1362
+ throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1425
1363
  const r = Object.keys(e);
1426
1364
  let s = r.length;
1427
1365
  for (; s-- > 0; ) {
1428
- const i = r[s], o = t[i];
1429
- if (o) {
1430
- const a = e[i], d = a === void 0 || o(a, i, e);
1431
- if (d !== !0)
1432
- throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
1366
+ const o = r[s], i = t[o];
1367
+ if (i) {
1368
+ const a = e[o], f = a === void 0 || i(a, o, e);
1369
+ if (f !== !0)
1370
+ throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1433
1371
  continue;
1434
1372
  }
1435
1373
  if (n !== !0)
1436
- throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1374
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1437
1375
  }
1438
1376
  }
1439
- const se = {
1440
- assertOptions: Vn,
1441
- validators: le
1442
- }, F = se.validators;
1443
- class D {
1377
+ const K = {
1378
+ assertOptions: _n,
1379
+ validators: ne
1380
+ }, N = K.validators;
1381
+ class L {
1444
1382
  constructor(t) {
1445
1383
  this.defaults = t || {}, this.interceptors = {
1446
- request: new Be(),
1447
- response: new Be()
1384
+ request: new Re(),
1385
+ response: new Re()
1448
1386
  };
1449
1387
  }
1450
1388
  /**
@@ -1462,10 +1400,10 @@ class D {
1462
1400
  if (r instanceof Error) {
1463
1401
  let s = {};
1464
1402
  Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1465
- const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1403
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1466
1404
  try {
1467
- r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1468
- ` + i) : r.stack = i;
1405
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1406
+ ` + o) : r.stack = o;
1469
1407
  } catch {
1470
1408
  }
1471
1409
  }
@@ -1473,76 +1411,76 @@ class D {
1473
1411
  }
1474
1412
  }
1475
1413
  _request(t, n) {
1476
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
1477
- const { transitional: r, paramsSerializer: s, headers: i } = n;
1478
- r !== void 0 && se.assertOptions(r, {
1479
- silentJSONParsing: F.transitional(F.boolean),
1480
- forcedJSONParsing: F.transitional(F.boolean),
1481
- clarifyTimeoutError: F.transitional(F.boolean)
1414
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
1415
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1416
+ r !== void 0 && K.assertOptions(r, {
1417
+ silentJSONParsing: N.transitional(N.boolean),
1418
+ forcedJSONParsing: N.transitional(N.boolean),
1419
+ clarifyTimeoutError: N.transitional(N.boolean)
1482
1420
  }, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
1483
1421
  serialize: s
1484
- } : se.assertOptions(s, {
1485
- encode: F.function,
1486
- serialize: F.function
1487
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), se.assertOptions(n, {
1488
- baseUrl: F.spelling("baseURL"),
1489
- withXsrfToken: F.spelling("withXSRFToken")
1422
+ } : K.assertOptions(s, {
1423
+ encode: N.function,
1424
+ serialize: N.function
1425
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), K.assertOptions(n, {
1426
+ baseUrl: N.spelling("baseURL"),
1427
+ withXsrfToken: N.spelling("withXSRFToken")
1490
1428
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1491
- let o = i && c.merge(
1492
- i.common,
1493
- i[n.method]
1429
+ let i = o && c.merge(
1430
+ o.common,
1431
+ o[n.method]
1494
1432
  );
1495
- i && c.forEach(
1433
+ o && c.forEach(
1496
1434
  ["delete", "get", "head", "post", "put", "patch", "common"],
1497
- (l) => {
1498
- delete i[l];
1435
+ (d) => {
1436
+ delete o[d];
1499
1437
  }
1500
- ), n.headers = A.concat(o, i);
1438
+ ), n.headers = x.concat(i, o);
1501
1439
  const a = [];
1502
- let d = !0;
1503
- this.interceptors.request.forEach(function(m) {
1504
- typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, a.unshift(m.fulfilled, m.rejected));
1440
+ let f = !0;
1441
+ this.interceptors.request.forEach(function(y) {
1442
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, a.unshift(y.fulfilled, y.rejected));
1505
1443
  });
1506
- const f = [];
1507
- this.interceptors.response.forEach(function(m) {
1508
- f.push(m.fulfilled, m.rejected);
1444
+ const u = [];
1445
+ this.interceptors.response.forEach(function(y) {
1446
+ u.push(y.fulfilled, y.rejected);
1509
1447
  });
1510
- let u, h = 0, b;
1511
- if (!d) {
1512
- const l = [Ve.bind(this), void 0];
1513
- for (l.unshift(...a), l.push(...f), b = l.length, u = Promise.resolve(n); h < b; )
1514
- u = u.then(l[h++], l[h++]);
1515
- return u;
1448
+ let l, p = 0, b;
1449
+ if (!f) {
1450
+ const d = [Ne.bind(this), void 0];
1451
+ for (d.unshift.apply(d, a), d.push.apply(d, u), b = d.length, l = Promise.resolve(n); p < b; )
1452
+ l = l.then(d[p++], d[p++]);
1453
+ return l;
1516
1454
  }
1517
1455
  b = a.length;
1518
- let g = n;
1519
- for (; h < b; ) {
1520
- const l = a[h++], m = a[h++];
1456
+ let R = n;
1457
+ for (p = 0; p < b; ) {
1458
+ const d = a[p++], y = a[p++];
1521
1459
  try {
1522
- g = l(g);
1523
- } catch (p) {
1524
- m.call(this, p);
1460
+ R = d(R);
1461
+ } catch (h) {
1462
+ y.call(this, h);
1525
1463
  break;
1526
1464
  }
1527
1465
  }
1528
1466
  try {
1529
- u = Ve.call(this, g);
1530
- } catch (l) {
1531
- return Promise.reject(l);
1467
+ l = Ne.call(this, R);
1468
+ } catch (d) {
1469
+ return Promise.reject(d);
1532
1470
  }
1533
- for (h = 0, b = f.length; h < b; )
1534
- u = u.then(f[h++], f[h++]);
1535
- return u;
1471
+ for (p = 0, b = u.length; p < b; )
1472
+ l = l.then(u[p++], u[p++]);
1473
+ return l;
1536
1474
  }
1537
1475
  getUri(t) {
1538
- t = q(this.defaults, t);
1539
- const n = ft(t.baseURL, t.url, t.allowAbsoluteUrls);
1540
- return it(n, t.params, t.paramsSerializer);
1476
+ t = B(this.defaults, t);
1477
+ const n = ve(t.baseURL, t.url, t.allowAbsoluteUrls);
1478
+ return Je(n, t.params, t.paramsSerializer);
1541
1479
  }
1542
1480
  }
1543
1481
  c.forEach(["delete", "get", "head", "options"], function(t) {
1544
- D.prototype[t] = function(n, r) {
1545
- return this.request(q(r || {}, {
1482
+ L.prototype[t] = function(n, r) {
1483
+ return this.request(B(r || {}, {
1546
1484
  method: t,
1547
1485
  url: n,
1548
1486
  data: (r || {}).data
@@ -1551,44 +1489,44 @@ c.forEach(["delete", "get", "head", "options"], function(t) {
1551
1489
  });
1552
1490
  c.forEach(["post", "put", "patch"], function(t) {
1553
1491
  function n(r) {
1554
- return function(i, o, a) {
1555
- return this.request(q(a || {}, {
1492
+ return function(o, i, a) {
1493
+ return this.request(B(a || {}, {
1556
1494
  method: t,
1557
1495
  headers: r ? {
1558
1496
  "Content-Type": "multipart/form-data"
1559
1497
  } : {},
1560
- url: i,
1561
- data: o
1498
+ url: o,
1499
+ data: i
1562
1500
  }));
1563
1501
  };
1564
1502
  }
1565
- D.prototype[t] = n(), D.prototype[t + "Form"] = n(!0);
1503
+ L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
1566
1504
  });
1567
- class Te {
1505
+ class me {
1568
1506
  constructor(t) {
1569
1507
  if (typeof t != "function")
1570
1508
  throw new TypeError("executor must be a function.");
1571
1509
  let n;
1572
- this.promise = new Promise(function(i) {
1573
- n = i;
1510
+ this.promise = new Promise(function(o) {
1511
+ n = o;
1574
1512
  });
1575
1513
  const r = this;
1576
1514
  this.promise.then((s) => {
1577
1515
  if (!r._listeners) return;
1578
- let i = r._listeners.length;
1579
- for (; i-- > 0; )
1580
- r._listeners[i](s);
1516
+ let o = r._listeners.length;
1517
+ for (; o-- > 0; )
1518
+ r._listeners[o](s);
1581
1519
  r._listeners = null;
1582
1520
  }), this.promise.then = (s) => {
1583
- let i;
1584
- const o = new Promise((a) => {
1585
- r.subscribe(a), i = a;
1521
+ let o;
1522
+ const i = new Promise((a) => {
1523
+ r.subscribe(a), o = a;
1586
1524
  }).then(s);
1587
- return o.cancel = function() {
1588
- r.unsubscribe(i);
1589
- }, o;
1590
- }, t(function(i, o, a) {
1591
- r.reason || (r.reason = new z(i, o, a), n(r.reason));
1525
+ return i.cancel = function() {
1526
+ r.unsubscribe(o);
1527
+ }, i;
1528
+ }, t(function(o, i, a) {
1529
+ r.reason || (r.reason = new j(o, i, a), n(r.reason));
1592
1530
  });
1593
1531
  }
1594
1532
  /**
@@ -1630,22 +1568,22 @@ class Te {
1630
1568
  static source() {
1631
1569
  let t;
1632
1570
  return {
1633
- token: new Te(function(s) {
1571
+ token: new me(function(s) {
1634
1572
  t = s;
1635
1573
  }),
1636
1574
  cancel: t
1637
1575
  };
1638
1576
  }
1639
1577
  }
1640
- function Wn(e) {
1578
+ function Pn(e) {
1641
1579
  return function(n) {
1642
1580
  return e.apply(null, n);
1643
1581
  };
1644
1582
  }
1645
- function vn(e) {
1583
+ function Fn(e) {
1646
1584
  return c.isObject(e) && e.isAxiosError === !0;
1647
1585
  }
1648
- const Ee = {
1586
+ const fe = {
1649
1587
  Continue: 100,
1650
1588
  SwitchingProtocols: 101,
1651
1589
  Processing: 102,
@@ -1708,113 +1646,107 @@ const Ee = {
1708
1646
  InsufficientStorage: 507,
1709
1647
  LoopDetected: 508,
1710
1648
  NotExtended: 510,
1711
- NetworkAuthenticationRequired: 511,
1712
- WebServerIsDown: 521,
1713
- ConnectionTimedOut: 522,
1714
- OriginIsUnreachable: 523,
1715
- TimeoutOccurred: 524,
1716
- SslHandshakeFailed: 525,
1717
- InvalidSslCertificate: 526
1649
+ NetworkAuthenticationRequired: 511
1718
1650
  };
1719
- Object.entries(Ee).forEach(([e, t]) => {
1720
- Ee[t] = e;
1651
+ Object.entries(fe).forEach(([e, t]) => {
1652
+ fe[t] = e;
1721
1653
  });
1722
- function yt(e) {
1723
- const t = new D(e), n = Ke(D.prototype.request, t);
1724
- return c.extend(n, D.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1725
- return yt(q(e, s));
1654
+ function et(e) {
1655
+ const t = new L(e), n = Fe(L.prototype.request, t);
1656
+ return c.extend(n, L.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1657
+ return et(B(e, s));
1726
1658
  }, n;
1727
1659
  }
1728
- const w = yt(G);
1729
- w.Axios = D;
1730
- w.CanceledError = z;
1731
- w.CancelToken = Te;
1732
- w.isCancel = ut;
1733
- w.VERSION = mt;
1734
- w.toFormData = ue;
1735
- w.AxiosError = y;
1736
- w.Cancel = w.CanceledError;
1737
- w.all = function(t) {
1660
+ const E = et(z);
1661
+ E.Axios = L;
1662
+ E.CanceledError = j;
1663
+ E.CancelToken = me;
1664
+ E.isCancel = $e;
1665
+ E.VERSION = Ze;
1666
+ E.toFormData = ee;
1667
+ E.AxiosError = m;
1668
+ E.Cancel = E.CanceledError;
1669
+ E.all = function(t) {
1738
1670
  return Promise.all(t);
1739
1671
  };
1740
- w.spread = Wn;
1741
- w.isAxiosError = vn;
1742
- w.mergeConfig = q;
1743
- w.AxiosHeaders = A;
1744
- w.formToJSON = (e) => at(c.isHTMLForm(e) ? new FormData(e) : e);
1745
- w.getAdapter = ht.getAdapter;
1746
- w.HttpStatusCode = Ee;
1747
- w.default = w;
1748
- const Kn = 60 * 1e3, Xn = 1, Gn = 1e3, $ = "basic-application-access-token-refresh", Qn = "/api/admin/basic-application/authorization/v1/login/oauth/token/refresh", ve = /* @__PURE__ */ new Map(), Q = (e = $) => {
1749
- const t = ve.get(e);
1672
+ E.spread = Pn;
1673
+ E.isAxiosError = Fn;
1674
+ E.mergeConfig = B;
1675
+ E.AxiosHeaders = x;
1676
+ E.formToJSON = (e) => We(c.isHTMLForm(e) ? new FormData(e) : e);
1677
+ E.getAdapter = Ye.getAdapter;
1678
+ E.HttpStatusCode = fe;
1679
+ E.default = E;
1680
+ const Un = 60 * 1e3, Ln = 1, Bn = 1e3, q = "basic-application-access-token-refresh", kn = "/api/admin/basic-application/authorization/v1/login/oauth/token/refresh", Pe = /* @__PURE__ */ new Map(), J = (e = q) => {
1681
+ const t = Pe.get(e);
1750
1682
  if (t) return t;
1751
1683
  const n = { isRefreshing: !1, queue: [] };
1752
- return ve.set(e, n), n;
1753
- }, W = (e) => {
1684
+ return Pe.set(e, n), n;
1685
+ }, M = (e) => {
1754
1686
  const t = e ? Number(e) : 0;
1755
1687
  return Number.isFinite(t) ? t : 0;
1756
- }, Yn = (e) => {
1757
- const t = W((e == null ? void 0 : e.accessExp) || (e == null ? void 0 : e.access_exp) || (e == null ? void 0 : e.accessTokenExpiredAt) || (e == null ? void 0 : e.exp)), n = W((e == null ? void 0 : e.refreshExp) || (e == null ? void 0 : e.refresh_exp));
1688
+ }, jn = (e) => {
1689
+ const t = M((e == null ? void 0 : e.accessExp) || (e == null ? void 0 : e.access_exp) || (e == null ? void 0 : e.accessTokenExpiredAt) || (e == null ? void 0 : e.exp)), n = M((e == null ? void 0 : e.refreshExp) || (e == null ? void 0 : e.refresh_exp));
1758
1690
  return {
1759
1691
  accessToken: String((e == null ? void 0 : e.accessToken) || (e == null ? void 0 : e.access_token) || "").trim(),
1760
1692
  refreshToken: String((e == null ? void 0 : e.refreshToken) || (e == null ? void 0 : e.refresh_token) || "").trim(),
1761
1693
  accessExp: t,
1762
- accessTokenExpiredAt: W((e == null ? void 0 : e.accessTokenExpiredAt) || t),
1694
+ accessTokenExpiredAt: M((e == null ? void 0 : e.accessTokenExpiredAt) || t),
1763
1695
  refreshExp: n,
1764
1696
  sub: e != null && e.sub ? String(e.sub).trim() : void 0,
1765
1697
  tenant: e != null && e.tenant ? String(e.tenant).trim() : void 0
1766
1698
  };
1767
- }, nr = (e, t = Kn) => {
1768
- const n = Date.now(), r = W((e == null ? void 0 : e.accessExp) || (e == null ? void 0 : e.accessTokenExpiredAt));
1699
+ }, Hn = (e, t = Un) => {
1700
+ const n = Date.now(), r = M((e == null ? void 0 : e.accessExp) || (e == null ? void 0 : e.accessTokenExpiredAt));
1769
1701
  if (r && n < r - t) return "access_valid";
1770
- const s = W(e == null ? void 0 : e.refreshExp);
1702
+ const s = M(e == null ? void 0 : e.refreshExp);
1771
1703
  return s && n >= s - t ? "refresh_expired" : "need_refresh";
1772
- }, rr = (e = $) => {
1773
- const t = Q(e);
1704
+ }, In = (e = q) => {
1705
+ const t = J(e);
1774
1706
  return t.isRefreshing ? !1 : (t.isRefreshing = !0, !0);
1775
- }, sr = (e = $) => new Promise((t, n) => {
1776
- Q(e).queue.push({ resolve: t, reject: n });
1777
- }), or = (e, t = $) => {
1778
- const n = Q(t);
1707
+ }, zn = (e = q) => new Promise((t, n) => {
1708
+ J(e).queue.push({ resolve: t, reject: n });
1709
+ }), Jn = (e, t = q) => {
1710
+ const n = J(t);
1779
1711
  n.queue.forEach((r) => r.resolve(e)), n.queue = [], n.isRefreshing = !1;
1780
- }, ir = (e, t = $) => {
1781
- const n = Q(t);
1712
+ }, Vn = (e, t = q) => {
1713
+ const n = J(t);
1782
1714
  n.queue.forEach((r) => r.reject(e)), n.queue = [], n.isRefreshing = !1;
1783
- }, cr = (e = $, t = "Refresh state cleared") => {
1784
- const n = Q(e);
1715
+ }, Wn = (e = q, t = "Refresh state cleared") => {
1716
+ const n = J(e);
1785
1717
  n.queue.forEach((r) => r.reject(t)), n.queue = [], n.isRefreshing = !1;
1786
- }, Zn = async (e) => {
1787
- const { baseURL: t } = wt(), n = await w.create().post(
1788
- Qn,
1718
+ }, qn = async (e) => {
1719
+ const { baseURL: t } = tt(), n = await E.create().post(
1720
+ kn,
1789
1721
  { refreshToken: e },
1790
1722
  {
1791
1723
  baseURL: t
1792
1724
  // withCredentials: true,
1793
1725
  }
1794
1726
  );
1795
- return Yn((n == null ? void 0 : n.data) || {});
1727
+ return jn((n == null ? void 0 : n.data) || {});
1796
1728
  };
1797
- async function er(e, t = Xn, n = Gn, r = 0) {
1729
+ async function Dn(e, t = Ln, n = Bn, r = 0) {
1798
1730
  try {
1799
- return await Zn(e);
1731
+ return await qn(e);
1800
1732
  } catch (s) {
1801
1733
  if (r < t)
1802
- return await new Promise((i) => setTimeout(i, n)), er(e, t, n, r + 1);
1734
+ return await new Promise((o) => setTimeout(o, n)), Dn(e, t, n, r + 1);
1803
1735
  throw s;
1804
1736
  }
1805
1737
  }
1806
1738
  export {
1807
- Kn as CHECK_BUFFER_TIME,
1808
- $ as DEFAULT_REFRESH_SCOPE,
1809
- Xn as MAX_RETRIES,
1810
- Gn as RETRY_DELAY,
1811
- cr as clearRefreshState,
1812
- nr as getRefreshPrecheckResult,
1813
- Yn as normalizeRefreshData,
1814
- er as refreshTokenWithRetry,
1815
- ir as rejectRefreshResult,
1816
- or as resolveRefreshResult,
1817
- rr as startRefreshPending,
1818
- W as toTimestamp,
1819
- sr as waitRefreshResult
1739
+ Un as CHECK_BUFFER_TIME,
1740
+ q as DEFAULT_REFRESH_SCOPE,
1741
+ Ln as MAX_RETRIES,
1742
+ Bn as RETRY_DELAY,
1743
+ Wn as clearRefreshState,
1744
+ Hn as getRefreshPrecheckResult,
1745
+ jn as normalizeRefreshData,
1746
+ Dn as refreshTokenWithRetry,
1747
+ Vn as rejectRefreshResult,
1748
+ Jn as resolveRefreshResult,
1749
+ In as startRefreshPending,
1750
+ M as toTimestamp,
1751
+ zn as waitRefreshResult
1820
1752
  };