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

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 +1921 -1994
  2. package/api-services/index.js +1418 -1482
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +2223 -2299
  5. package/api-services/modules/app-manage/index.js +1830 -1898
  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 +2287 -2372
  11. package/api-services/modules/bems/index.js +1895 -1977
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +2223 -2299
  14. package/api-services/modules/contract/index.js +1830 -1898
  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 +1682 -1758
  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 +1260 -1328
  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 +2223 -2299
  38. package/api-services/modules/knowledge/index.js +1830 -1898
  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 +2018 -2091
  50. package/api-services/modules/portal/index.js +1650 -1714
  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 +2281 -2366
  59. package/api-services/modules/supplier/index.js +1892 -1974
  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 +2316 -2380
  68. package/api-services/modules/tool/index.js +1927 -1977
  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 +2050 -2126
  75. package/common-info/getPermissionMethod/index.js +1685 -1753
  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 +2020 -2096
  91. package/create-api-service/index.js +1649 -1717
  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,63 +1,51 @@
1
- import { unref as Wt, getCurrentScope as Kt, onScopeDispose as Qt, ref as le, watch as Pe } from "vue";
2
- import { encryption as Xt } from "@das-fed/upf-utils/atob";
3
- import { getConfig as Ue } from "@das-fed/upf-utils/config";
4
- import { getUrlParams as mt, funcUrlDel as Gt } from "@das-fed/upf-utils/common-tools/get-url-params";
5
- import { getAccessToken as K, getAccessTokenInfo as be, setAccessToken as Zt, removeAccessToken as Yt } from "@das-fed/upf-utils/token-tools";
6
- import { setProcessEngineToken as en, removeProcessEngineToken as tn } from "@das-fed/upf-utils/process-engine-info";
7
- function yt(e, t) {
1
+ import { unref as Pt, getCurrentScope as Ut, onScopeDispose as Nt, ref as Y, watch as Se } from "vue";
2
+ import { encryption as Lt } from "@das-fed/upf-utils/atob";
3
+ import { getConfig as Te } from "@das-fed/upf-utils/config";
4
+ import { getUrlParams as Ze, funcUrlDel as Ft } from "@das-fed/upf-utils/common-tools/get-url-params";
5
+ import { getAccessToken as M, getAccessTokenInfo as ue, setAccessToken as Dt, removeAccessToken as vt } from "@das-fed/upf-utils/token-tools";
6
+ import { setProcessEngineToken as Bt, removeProcessEngineToken as It } from "@das-fed/upf-utils/process-engine-info";
7
+ function Ye(e, t) {
8
8
  return function() {
9
9
  return e.apply(t, arguments);
10
10
  };
11
11
  }
12
- const { toString: nn } = Object.prototype, { getPrototypeOf: Ne } = Object, { iterator: de, toStringTag: wt } = Symbol, pe = /* @__PURE__ */ ((e) => (t) => {
13
- const n = nn.call(t);
12
+ const { toString: jt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag: et } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
13
+ const n = jt.call(t);
14
14
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
15
- })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => pe(t) === e), he = (e) => (t) => typeof t === e, { isArray: $ } = Array, M = he("undefined");
16
- function Z(e) {
17
- return e !== null && !M(e) && e.constructor !== null && !M(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15
+ })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => re(t) === e), se = (e) => (t) => typeof t === e, { isArray: B } = Array, H = se("undefined");
16
+ function qt(e) {
17
+ return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
18
18
  }
19
- const gt = C("ArrayBuffer");
20
- function rn(e) {
19
+ const tt = x("ArrayBuffer");
20
+ function Mt(e) {
21
21
  let t;
22
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && gt(e.buffer), t;
22
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tt(e.buffer), t;
23
23
  }
24
- const sn = he("string"), O = he("function"), bt = he("number"), Y = (e) => e !== null && typeof e == "object", on = (e) => e === !0 || e === !1, ae = (e) => {
25
- if (pe(e) !== "object")
24
+ const Ht = se("string"), A = se("function"), nt = se("number"), oe = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, X = (e) => {
25
+ if (re(e) !== "object")
26
26
  return !1;
27
- const t = Ne(e);
28
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(wt in e) && !(de in e);
29
- }, an = (e) => {
30
- if (!Y(e) || Z(e))
31
- return !1;
32
- try {
33
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
34
- } catch {
35
- return !1;
36
- }
37
- }, cn = C("Date"), un = C("File"), ln = C("Blob"), fn = C("FileList"), dn = (e) => Y(e) && O(e.pipe), pn = (e) => {
27
+ const t = Oe(e);
28
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(et in e) && !(ne in e);
29
+ }, $t = x("Date"), Jt = x("File"), Vt = x("Blob"), Wt = x("FileList"), Kt = (e) => oe(e) && A(e.pipe), Qt = (e) => {
38
30
  let t;
39
- return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((t = pe(e)) === "formdata" || // detect form-data instance
40
- t === "object" && O(e.toString) && e.toString() === "[object FormData]"));
41
- }, hn = C("URLSearchParams"), [mn, yn, wn, gn] = ["ReadableStream", "Request", "Response", "Headers"].map(C), bn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
42
- function ee(e, t, { allOwnKeys: n = !1 } = {}) {
31
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
32
+ t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
33
+ }, Xt = x("URLSearchParams"), [Gt, Zt, Yt, en] = ["ReadableStream", "Request", "Response", "Headers"].map(x), tn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
34
+ function V(e, t, { allOwnKeys: n = !1 } = {}) {
43
35
  if (e === null || typeof e > "u")
44
36
  return;
45
37
  let r, s;
46
- if (typeof e != "object" && (e = [e]), $(e))
38
+ if (typeof e != "object" && (e = [e]), B(e))
47
39
  for (r = 0, s = e.length; r < s; r++)
48
40
  t.call(null, e[r], r, e);
49
41
  else {
50
- if (Z(e))
51
- return;
52
- const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
42
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
53
43
  let c;
54
- for (r = 0; r < o; r++)
55
- c = i[r], t.call(null, e[c], c, e);
44
+ for (r = 0; r < i; r++)
45
+ c = o[r], t.call(null, e[c], c, e);
56
46
  }
57
47
  }
58
- function Et(e, t) {
59
- if (Z(e))
60
- return null;
48
+ function rt(e, t) {
61
49
  t = t.toLowerCase();
62
50
  const n = Object.keys(e);
63
51
  let r = n.length, s;
@@ -66,75 +54,75 @@ function Et(e, t) {
66
54
  return s;
67
55
  return null;
68
56
  }
69
- const v = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, St = (e) => !M(e) && e !== v;
70
- function Te() {
71
- const { caseless: e, skipUndefined: t } = St(this) && this || {}, n = {}, r = (s, i) => {
72
- const o = e && Et(n, i) || i;
73
- ae(n[o]) && ae(s) ? n[o] = Te(n[o], s) : ae(s) ? n[o] = Te({}, s) : $(s) ? n[o] = s.slice() : (!t || !M(s)) && (n[o] = s);
57
+ const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, st = (e) => !H(e) && e !== N;
58
+ function pe() {
59
+ const { caseless: e } = st(this) && this || {}, t = {}, n = (r, s) => {
60
+ const o = e && rt(t, s) || s;
61
+ X(t[o]) && X(r) ? t[o] = pe(t[o], r) : X(r) ? t[o] = pe({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
74
62
  };
75
- for (let s = 0, i = arguments.length; s < i; s++)
76
- arguments[s] && ee(arguments[s], r);
77
- return n;
63
+ for (let r = 0, s = arguments.length; r < s; r++)
64
+ arguments[r] && V(arguments[r], n);
65
+ return t;
78
66
  }
79
- const En = (e, t, n, { allOwnKeys: r } = {}) => (ee(t, (s, i) => {
80
- n && O(s) ? e[i] = yt(s, n) : e[i] = s;
81
- }, { allOwnKeys: r }), e), Sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Rn = (e, t, n, r) => {
67
+ const nn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
68
+ n && A(s) ? e[o] = Ye(s, n) : e[o] = s;
69
+ }, { allOwnKeys: r }), e), rn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sn = (e, t, n, r) => {
82
70
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
83
71
  value: t.prototype
84
72
  }), n && Object.assign(e.prototype, n);
85
- }, Tn = (e, t, n, r) => {
86
- let s, i, o;
73
+ }, on = (e, t, n, r) => {
74
+ let s, o, i;
87
75
  const c = {};
88
76
  if (t = t || {}, e == null) return t;
89
77
  do {
90
- for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
91
- o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
92
- e = n !== !1 && Ne(e);
78
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
79
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
80
+ e = n !== !1 && Oe(e);
93
81
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
94
82
  return t;
95
- }, On = (e, t, n) => {
83
+ }, an = (e, t, n) => {
96
84
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
97
85
  const r = e.indexOf(t, n);
98
86
  return r !== -1 && r === n;
99
- }, An = (e) => {
87
+ }, cn = (e) => {
100
88
  if (!e) return null;
101
- if ($(e)) return e;
89
+ if (B(e)) return e;
102
90
  let t = e.length;
103
- if (!bt(t)) return null;
91
+ if (!nt(t)) return null;
104
92
  const n = new Array(t);
105
93
  for (; t-- > 0; )
106
94
  n[t] = e[t];
107
95
  return n;
108
- }, _n = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ne(Uint8Array)), xn = (e, t) => {
109
- const r = (e && e[de]).call(e);
96
+ }, un = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), ln = (e, t) => {
97
+ const r = (e && e[ne]).call(e);
110
98
  let s;
111
99
  for (; (s = r.next()) && !s.done; ) {
112
- const i = s.value;
113
- t.call(e, i[0], i[1]);
100
+ const o = s.value;
101
+ t.call(e, o[0], o[1]);
114
102
  }
115
- }, kn = (e, t) => {
103
+ }, fn = (e, t) => {
116
104
  let n;
117
105
  const r = [];
118
106
  for (; (n = e.exec(t)) !== null; )
119
107
  r.push(n);
120
108
  return r;
121
- }, Cn = C("HTMLFormElement"), Pn = (e) => e.toLowerCase().replace(
109
+ }, dn = x("HTMLFormElement"), pn = (e) => e.toLowerCase().replace(
122
110
  /[-_\s]([a-z\d])(\w*)/g,
123
111
  function(n, r, s) {
124
112
  return r.toUpperCase() + s;
125
113
  }
126
- ), ze = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Un = C("RegExp"), Rt = (e, t) => {
114
+ ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), hn = x("RegExp"), ot = (e, t) => {
127
115
  const n = Object.getOwnPropertyDescriptors(e), r = {};
128
- ee(n, (s, i) => {
129
- let o;
130
- (o = t(s, i, e)) !== !1 && (r[i] = o || s);
116
+ V(n, (s, o) => {
117
+ let i;
118
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
131
119
  }), Object.defineProperties(e, r);
132
- }, Nn = (e) => {
133
- Rt(e, (t, n) => {
134
- if (O(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
120
+ }, mn = (e) => {
121
+ ot(e, (t, n) => {
122
+ if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
135
123
  return !1;
136
124
  const r = e[n];
137
- if (O(r)) {
125
+ if (A(r)) {
138
126
  if (t.enumerable = !1, "writable" in t) {
139
127
  t.writable = !1;
140
128
  return;
@@ -144,103 +132,100 @@ const En = (e, t, n, { allOwnKeys: r } = {}) => (ee(t, (s, i) => {
144
132
  });
145
133
  }
146
134
  });
147
- }, Fn = (e, t) => {
135
+ }, yn = (e, t) => {
148
136
  const n = {}, r = (s) => {
149
- s.forEach((i) => {
150
- n[i] = !0;
137
+ s.forEach((o) => {
138
+ n[o] = !0;
151
139
  });
152
140
  };
153
- return $(e) ? r(e) : r(String(e).split(t)), n;
154
- }, Ln = () => {
155
- }, Dn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
156
- function vn(e) {
157
- return !!(e && O(e.append) && e[wt] === "FormData" && e[de]);
141
+ return B(e) ? r(e) : r(String(e).split(t)), n;
142
+ }, wn = () => {
143
+ }, gn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
144
+ function bn(e) {
145
+ return !!(e && A(e.append) && e[et] === "FormData" && e[ne]);
158
146
  }
159
- const Bn = (e) => {
147
+ const En = (e) => {
160
148
  const t = new Array(10), n = (r, s) => {
161
- if (Y(r)) {
149
+ if (oe(r)) {
162
150
  if (t.indexOf(r) >= 0)
163
151
  return;
164
- if (Z(r))
165
- return r;
166
152
  if (!("toJSON" in r)) {
167
153
  t[s] = r;
168
- const i = $(r) ? [] : {};
169
- return ee(r, (o, c) => {
170
- const d = n(o, s + 1);
171
- !M(d) && (i[c] = d);
172
- }), t[s] = void 0, i;
154
+ const o = B(r) ? [] : {};
155
+ return V(r, (i, c) => {
156
+ const f = n(i, s + 1);
157
+ !H(f) && (o[c] = f);
158
+ }), t[s] = void 0, o;
173
159
  }
174
160
  }
175
161
  return r;
176
162
  };
177
163
  return n(e, 0);
178
- }, In = C("AsyncFunction"), jn = (e) => e && (Y(e) || O(e)) && O(e.then) && O(e.catch), Tt = ((e, t) => e ? setImmediate : t ? ((n, r) => (v.addEventListener("message", ({ source: s, data: i }) => {
179
- s === v && i === n && r.length && r.shift()();
164
+ }, Rn = x("AsyncFunction"), Sn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch), it = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
165
+ s === N && o === n && r.length && r.shift()();
180
166
  }, !1), (s) => {
181
- r.push(s), v.postMessage(n, "*");
167
+ r.push(s), N.postMessage(n, "*");
182
168
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
183
169
  typeof setImmediate == "function",
184
- O(v.postMessage)
185
- ), qn = typeof queueMicrotask < "u" ? queueMicrotask.bind(v) : typeof process < "u" && process.nextTick || Tt, Mn = (e) => e != null && O(e[de]), a = {
186
- isArray: $,
187
- isArrayBuffer: gt,
188
- isBuffer: Z,
189
- isFormData: pn,
190
- isArrayBufferView: rn,
191
- isString: sn,
192
- isNumber: bt,
193
- isBoolean: on,
194
- isObject: Y,
195
- isPlainObject: ae,
196
- isEmptyObject: an,
197
- isReadableStream: mn,
198
- isRequest: yn,
199
- isResponse: wn,
200
- isHeaders: gn,
201
- isUndefined: M,
202
- isDate: cn,
203
- isFile: un,
204
- isBlob: ln,
205
- isRegExp: Un,
206
- isFunction: O,
207
- isStream: dn,
208
- isURLSearchParams: hn,
209
- isTypedArray: _n,
210
- isFileList: fn,
211
- forEach: ee,
212
- merge: Te,
213
- extend: En,
214
- trim: bn,
215
- stripBOM: Sn,
216
- inherits: Rn,
217
- toFlatObject: Tn,
218
- kindOf: pe,
219
- kindOfTest: C,
220
- endsWith: On,
221
- toArray: An,
222
- forEachEntry: xn,
223
- matchAll: kn,
224
- isHTMLForm: Cn,
225
- hasOwnProperty: ze,
226
- hasOwnProp: ze,
170
+ A(N.postMessage)
171
+ ), Tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || it, On = (e) => e != null && A(e[ne]), a = {
172
+ isArray: B,
173
+ isArrayBuffer: tt,
174
+ isBuffer: qt,
175
+ isFormData: Qt,
176
+ isArrayBufferView: Mt,
177
+ isString: Ht,
178
+ isNumber: nt,
179
+ isBoolean: zt,
180
+ isObject: oe,
181
+ isPlainObject: X,
182
+ isReadableStream: Gt,
183
+ isRequest: Zt,
184
+ isResponse: Yt,
185
+ isHeaders: en,
186
+ isUndefined: H,
187
+ isDate: $t,
188
+ isFile: Jt,
189
+ isBlob: Vt,
190
+ isRegExp: hn,
191
+ isFunction: A,
192
+ isStream: Kt,
193
+ isURLSearchParams: Xt,
194
+ isTypedArray: un,
195
+ isFileList: Wt,
196
+ forEach: V,
197
+ merge: pe,
198
+ extend: nn,
199
+ trim: tn,
200
+ stripBOM: rn,
201
+ inherits: sn,
202
+ toFlatObject: on,
203
+ kindOf: re,
204
+ kindOfTest: x,
205
+ endsWith: an,
206
+ toArray: cn,
207
+ forEachEntry: ln,
208
+ matchAll: fn,
209
+ isHTMLForm: dn,
210
+ hasOwnProperty: Pe,
211
+ hasOwnProp: Pe,
227
212
  // an alias to avoid ESLint no-prototype-builtins detection
228
- reduceDescriptors: Rt,
229
- freezeMethods: Nn,
230
- toObjectSet: Fn,
231
- toCamelCase: Pn,
232
- noop: Ln,
233
- toFiniteNumber: Dn,
234
- findKey: Et,
235
- global: v,
236
- isContextDefined: St,
237
- isSpecCompliantForm: vn,
238
- toJSONObject: Bn,
239
- isAsyncFn: In,
240
- isThenable: jn,
241
- setImmediate: Tt,
242
- asap: qn,
243
- isIterable: Mn
213
+ reduceDescriptors: ot,
214
+ freezeMethods: mn,
215
+ toObjectSet: yn,
216
+ toCamelCase: pn,
217
+ noop: wn,
218
+ toFiniteNumber: gn,
219
+ findKey: rt,
220
+ global: N,
221
+ isContextDefined: st,
222
+ isSpecCompliantForm: bn,
223
+ toJSONObject: En,
224
+ isAsyncFn: Rn,
225
+ isThenable: Sn,
226
+ setImmediate: it,
227
+ asap: Tn,
228
+ isIterable: On
244
229
  };
245
230
  function y(e, t, n, r, s) {
246
231
  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);
@@ -266,7 +251,7 @@ a.inherits(y, Error, {
266
251
  };
267
252
  }
268
253
  });
269
- const Ot = y.prototype, At = {};
254
+ const at = y.prototype, ct = {};
270
255
  [
271
256
  "ERR_BAD_OPTION_VALUE",
272
257
  "ERR_BAD_OPTION",
@@ -282,37 +267,35 @@ const Ot = y.prototype, At = {};
282
267
  "ERR_INVALID_URL"
283
268
  // eslint-disable-next-line func-names
284
269
  ].forEach((e) => {
285
- At[e] = { value: e };
270
+ ct[e] = { value: e };
286
271
  });
287
- Object.defineProperties(y, At);
288
- Object.defineProperty(Ot, "isAxiosError", { value: !0 });
289
- y.from = (e, t, n, r, s, i) => {
290
- const o = Object.create(Ot);
291
- a.toFlatObject(e, o, function(u) {
292
- return u !== Error.prototype;
293
- }, (l) => l !== "isAxiosError");
294
- const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
295
- return y.call(o, c, 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;
272
+ Object.defineProperties(y, ct);
273
+ Object.defineProperty(at, "isAxiosError", { value: !0 });
274
+ y.from = (e, t, n, r, s, o) => {
275
+ const i = Object.create(at);
276
+ return a.toFlatObject(e, i, function(f) {
277
+ return f !== Error.prototype;
278
+ }, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
296
279
  };
297
- const Hn = null;
298
- function Oe(e) {
280
+ const An = null;
281
+ function he(e) {
299
282
  return a.isPlainObject(e) || a.isArray(e);
300
283
  }
301
- function _t(e) {
284
+ function ut(e) {
302
285
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
303
286
  }
304
- function Je(e, t, n) {
305
- return e ? e.concat(t).map(function(s, i) {
306
- return s = _t(s), !n && i ? "[" + s + "]" : s;
287
+ function Ue(e, t, n) {
288
+ return e ? e.concat(t).map(function(s, o) {
289
+ return s = ut(s), !n && o ? "[" + s + "]" : s;
307
290
  }).join(n ? "." : "") : t;
308
291
  }
309
- function $n(e) {
310
- return a.isArray(e) && !e.some(Oe);
292
+ function _n(e) {
293
+ return a.isArray(e) && !e.some(he);
311
294
  }
312
- const zn = a.toFlatObject(a, {}, null, function(t) {
295
+ const xn = a.toFlatObject(a, {}, null, function(t) {
313
296
  return /^is[A-Z]/.test(t);
314
297
  });
315
- function me(e, t, n) {
298
+ function ie(e, t, n) {
316
299
  if (!a.isObject(e))
317
300
  throw new TypeError("target must be an object");
318
301
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -322,60 +305,60 @@ function me(e, t, n) {
322
305
  }, !1, function(m, h) {
323
306
  return !a.isUndefined(h[m]);
324
307
  });
325
- const r = n.metaTokens, s = n.visitor || u, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
308
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
326
309
  if (!a.isFunction(s))
327
310
  throw new TypeError("visitor must be a function");
328
- function l(f) {
329
- if (f === null) return "";
330
- if (a.isDate(f))
331
- return f.toISOString();
332
- if (a.isBoolean(f))
333
- return f.toString();
334
- if (!d && a.isBlob(f))
311
+ function u(p) {
312
+ if (p === null) return "";
313
+ if (a.isDate(p))
314
+ return p.toISOString();
315
+ if (a.isBoolean(p))
316
+ return p.toString();
317
+ if (!f && a.isBlob(p))
335
318
  throw new y("Blob is not supported. Use a Buffer instead.");
336
- return a.isArrayBuffer(f) || a.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
319
+ return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
337
320
  }
338
- function u(f, m, h) {
339
- let E = f;
340
- if (f && !h && typeof f == "object") {
321
+ function l(p, m, h) {
322
+ let E = p;
323
+ if (p && !h && typeof p == "object") {
341
324
  if (a.endsWith(m, "{}"))
342
- m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
343
- else if (a.isArray(f) && $n(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (E = a.toArray(f)))
344
- return m = _t(m), E.forEach(function(S, T) {
325
+ m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
326
+ else if (a.isArray(p) && _n(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
327
+ return m = ut(m), E.forEach(function(S, C) {
345
328
  !(a.isUndefined(S) || S === null) && t.append(
346
329
  // eslint-disable-next-line no-nested-ternary
347
- o === !0 ? Je([m], T, i) : o === null ? m : m + "[]",
348
- l(S)
330
+ i === !0 ? Ue([m], C, o) : i === null ? m : m + "[]",
331
+ u(S)
349
332
  );
350
333
  }), !1;
351
334
  }
352
- return Oe(f) ? !0 : (t.append(Je(h, m, i), l(f)), !1);
335
+ return he(p) ? !0 : (t.append(Ue(h, m, o), u(p)), !1);
353
336
  }
354
- const p = [], w = Object.assign(zn, {
355
- defaultVisitor: u,
356
- convertValue: l,
357
- isVisitable: Oe
337
+ const d = [], w = Object.assign(xn, {
338
+ defaultVisitor: l,
339
+ convertValue: u,
340
+ isVisitable: he
358
341
  });
359
- function g(f, m) {
360
- if (!a.isUndefined(f)) {
361
- if (p.indexOf(f) !== -1)
342
+ function g(p, m) {
343
+ if (!a.isUndefined(p)) {
344
+ if (d.indexOf(p) !== -1)
362
345
  throw Error("Circular reference detected in " + m.join("."));
363
- p.push(f), a.forEach(f, function(E, _) {
346
+ d.push(p), a.forEach(p, function(E, R) {
364
347
  (!(a.isUndefined(E) || E === null) && s.call(
365
348
  t,
366
349
  E,
367
- a.isString(_) ? _.trim() : _,
350
+ a.isString(R) ? R.trim() : R,
368
351
  m,
369
352
  w
370
- )) === !0 && g(E, m ? m.concat(_) : [_]);
371
- }), p.pop();
353
+ )) === !0 && g(E, m ? m.concat(R) : [R]);
354
+ }), d.pop();
372
355
  }
373
356
  }
374
357
  if (!a.isObject(e))
375
358
  throw new TypeError("data must be an object");
376
359
  return g(e), t;
377
360
  }
378
- function Ve(e) {
361
+ function Ne(e) {
379
362
  const t = {
380
363
  "!": "%21",
381
364
  "'": "%27",
@@ -389,40 +372,40 @@ function Ve(e) {
389
372
  return t[r];
390
373
  });
391
374
  }
392
- function Fe(e, t) {
393
- this._pairs = [], e && me(e, this, t);
375
+ function Ae(e, t) {
376
+ this._pairs = [], e && ie(e, this, t);
394
377
  }
395
- const xt = Fe.prototype;
396
- xt.append = function(t, n) {
378
+ const lt = Ae.prototype;
379
+ lt.append = function(t, n) {
397
380
  this._pairs.push([t, n]);
398
381
  };
399
- xt.toString = function(t) {
382
+ lt.toString = function(t) {
400
383
  const n = t ? function(r) {
401
- return t.call(this, r, Ve);
402
- } : Ve;
384
+ return t.call(this, r, Ne);
385
+ } : Ne;
403
386
  return this._pairs.map(function(s) {
404
387
  return n(s[0]) + "=" + n(s[1]);
405
388
  }, "").join("&");
406
389
  };
407
- function Jn(e) {
408
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
390
+ function kn(e) {
391
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
409
392
  }
410
- function kt(e, t, n) {
393
+ function ft(e, t, n) {
411
394
  if (!t)
412
395
  return e;
413
- const r = n && n.encode || Jn;
396
+ const r = n && n.encode || kn;
414
397
  a.isFunction(n) && (n = {
415
398
  serialize: n
416
399
  });
417
400
  const s = n && n.serialize;
418
- let i;
419
- if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Fe(t, n).toString(r), i) {
420
- const o = e.indexOf("#");
421
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
401
+ let o;
402
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Ae(t, n).toString(r), o) {
403
+ const i = e.indexOf("#");
404
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
422
405
  }
423
406
  return e;
424
407
  }
425
- class We {
408
+ class Le {
426
409
  constructor() {
427
410
  this.handlers = [];
428
411
  }
@@ -447,7 +430,7 @@ class We {
447
430
  *
448
431
  * @param {Number} id The ID that was returned by `use`
449
432
  *
450
- * @returns {void}
433
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
451
434
  */
452
435
  eject(t) {
453
436
  this.handlers[t] && (this.handlers[t] = null);
@@ -476,66 +459,65 @@ class We {
476
459
  });
477
460
  }
478
461
  }
479
- const Ct = {
462
+ const dt = {
480
463
  silentJSONParsing: !0,
481
464
  forcedJSONParsing: !0,
482
465
  clarifyTimeoutError: !1
483
- }, Vn = typeof URLSearchParams < "u" ? URLSearchParams : Fe, Wn = typeof FormData < "u" ? FormData : null, Kn = typeof Blob < "u" ? Blob : null, Qn = {
466
+ }, Cn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Pn = typeof FormData < "u" ? FormData : null, Un = typeof Blob < "u" ? Blob : null, Nn = {
484
467
  isBrowser: !0,
485
468
  classes: {
486
- URLSearchParams: Vn,
487
- FormData: Wn,
488
- Blob: Kn
469
+ URLSearchParams: Cn,
470
+ FormData: Pn,
471
+ Blob: Un
489
472
  },
490
473
  protocols: ["http", "https", "file", "blob", "url", "data"]
491
- }, Le = typeof window < "u" && typeof document < "u", Ae = typeof navigator == "object" && navigator || void 0, Xn = Le && (!Ae || ["ReactNative", "NativeScript", "NS"].indexOf(Ae.product) < 0), Gn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
492
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zn = Le && window.location.href || "http://localhost", Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
474
+ }, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Ln = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), Fn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
475
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Dn = _e && window.location.href || "http://localhost", vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
493
476
  __proto__: null,
494
- hasBrowserEnv: Le,
495
- hasStandardBrowserEnv: Xn,
496
- hasStandardBrowserWebWorkerEnv: Gn,
497
- navigator: Ae,
498
- origin: Zn
499
- }, Symbol.toStringTag, { value: "Module" })), R = {
500
- ...Yn,
501
- ...Qn
477
+ hasBrowserEnv: _e,
478
+ hasStandardBrowserEnv: Ln,
479
+ hasStandardBrowserWebWorkerEnv: Fn,
480
+ navigator: me,
481
+ origin: Dn
482
+ }, Symbol.toStringTag, { value: "Module" })), T = {
483
+ ...vn,
484
+ ...Nn
502
485
  };
503
- function er(e, t) {
504
- return me(e, new R.classes.URLSearchParams(), {
505
- visitor: function(n, r, s, i) {
506
- return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
507
- },
508
- ...t
509
- });
486
+ function Bn(e, t) {
487
+ return ie(e, new T.classes.URLSearchParams(), Object.assign({
488
+ visitor: function(n, r, s, o) {
489
+ return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
490
+ }
491
+ }, t));
510
492
  }
511
- function tr(e) {
493
+ function In(e) {
512
494
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
513
495
  }
514
- function nr(e) {
496
+ function jn(e) {
515
497
  const t = {}, n = Object.keys(e);
516
498
  let r;
517
499
  const s = n.length;
518
- let i;
500
+ let o;
519
501
  for (r = 0; r < s; r++)
520
- i = n[r], t[i] = e[i];
502
+ o = n[r], t[o] = e[o];
521
503
  return t;
522
504
  }
523
- function Pt(e) {
524
- function t(n, r, s, i) {
525
- let o = n[i++];
526
- if (o === "__proto__") return !0;
527
- const c = Number.isFinite(+o), d = i >= n.length;
528
- return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = nr(s[o])), !c);
505
+ function pt(e) {
506
+ function t(n, r, s, o) {
507
+ let i = n[o++];
508
+ if (i === "__proto__") return !0;
509
+ const c = Number.isFinite(+i), f = o >= n.length;
510
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = jn(s[i])), !c);
529
511
  }
530
512
  if (a.isFormData(e) && a.isFunction(e.entries)) {
531
513
  const n = {};
532
514
  return a.forEachEntry(e, (r, s) => {
533
- t(tr(r), s, n, 0);
515
+ t(In(r), s, n, 0);
534
516
  }), n;
535
517
  }
536
518
  return null;
537
519
  }
538
- function rr(e, t, n) {
520
+ function qn(e, t, n) {
539
521
  if (a.isString(e))
540
522
  try {
541
523
  return (t || JSON.parse)(e), a.trim(e);
@@ -545,13 +527,13 @@ function rr(e, t, n) {
545
527
  }
546
528
  return (0, JSON.stringify)(e);
547
529
  }
548
- const te = {
549
- transitional: Ct,
530
+ const W = {
531
+ transitional: dt,
550
532
  adapter: ["xhr", "http", "fetch"],
551
533
  transformRequest: [function(t, n) {
552
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
553
- if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
554
- return s ? JSON.stringify(Pt(t)) : t;
534
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
535
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
536
+ return s ? JSON.stringify(pt(t)) : t;
555
537
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
556
538
  return t;
557
539
  if (a.isArrayBufferView(t))
@@ -559,30 +541,30 @@ const te = {
559
541
  if (a.isURLSearchParams(t))
560
542
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
561
543
  let c;
562
- if (i) {
544
+ if (o) {
563
545
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
564
- return er(t, this.formSerializer).toString();
546
+ return Bn(t, this.formSerializer).toString();
565
547
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
566
- const d = this.env && this.env.FormData;
567
- return me(
548
+ const f = this.env && this.env.FormData;
549
+ return ie(
568
550
  c ? { "files[]": t } : t,
569
- d && new d(),
551
+ f && new f(),
570
552
  this.formSerializer
571
553
  );
572
554
  }
573
555
  }
574
- return i || s ? (n.setContentType("application/json", !1), rr(t)) : t;
556
+ return o || s ? (n.setContentType("application/json", !1), qn(t)) : t;
575
557
  }],
576
558
  transformResponse: [function(t) {
577
- const n = this.transitional || te.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
559
+ const n = this.transitional || W.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
578
560
  if (a.isResponse(t) || a.isReadableStream(t))
579
561
  return t;
580
562
  if (t && a.isString(t) && (r && !this.responseType || s)) {
581
- const o = !(n && n.silentJSONParsing) && s;
563
+ const i = !(n && n.silentJSONParsing) && s;
582
564
  try {
583
- return JSON.parse(t, this.parseReviver);
565
+ return JSON.parse(t);
584
566
  } catch (c) {
585
- if (o)
567
+ if (i)
586
568
  throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
587
569
  }
588
570
  }
@@ -598,8 +580,8 @@ const te = {
598
580
  maxContentLength: -1,
599
581
  maxBodyLength: -1,
600
582
  env: {
601
- FormData: R.classes.FormData,
602
- Blob: R.classes.Blob
583
+ FormData: T.classes.FormData,
584
+ Blob: T.classes.Blob
603
585
  },
604
586
  validateStatus: function(t) {
605
587
  return t >= 200 && t < 300;
@@ -612,9 +594,9 @@ const te = {
612
594
  }
613
595
  };
614
596
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
615
- te.headers[e] = {};
597
+ W.headers[e] = {};
616
598
  });
617
- const sr = a.toObjectSet([
599
+ const Mn = a.toObjectSet([
618
600
  "age",
619
601
  "authorization",
620
602
  "content-length",
@@ -632,29 +614,29 @@ const sr = a.toObjectSet([
632
614
  "referer",
633
615
  "retry-after",
634
616
  "user-agent"
635
- ]), or = (e) => {
617
+ ]), Hn = (e) => {
636
618
  const t = {};
637
619
  let n, r, s;
638
620
  return e && e.split(`
639
- `).forEach(function(o) {
640
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && sr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
621
+ `).forEach(function(i) {
622
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Mn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
641
623
  }), t;
642
- }, Ke = Symbol("internals");
643
- function V(e) {
624
+ }, Fe = Symbol("internals");
625
+ function j(e) {
644
626
  return e && String(e).trim().toLowerCase();
645
627
  }
646
- function ce(e) {
647
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(ce) : String(e);
628
+ function G(e) {
629
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(G) : String(e);
648
630
  }
649
- function ir(e) {
631
+ function zn(e) {
650
632
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
651
633
  let r;
652
634
  for (; r = n.exec(e); )
653
635
  t[r[1]] = r[2];
654
636
  return t;
655
637
  }
656
- const ar = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
657
- function Ee(e, t, n, r, s) {
638
+ const $n = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
639
+ function le(e, t, n, r, s) {
658
640
  if (a.isFunction(r))
659
641
  return r.call(this, t, n);
660
642
  if (s && (t = n), !!a.isString(t)) {
@@ -664,59 +646,59 @@ function Ee(e, t, n, r, s) {
664
646
  return r.test(t);
665
647
  }
666
648
  }
667
- function cr(e) {
649
+ function Jn(e) {
668
650
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
669
651
  }
670
- function ur(e, t) {
652
+ function Vn(e, t) {
671
653
  const n = a.toCamelCase(" " + t);
672
654
  ["get", "set", "has"].forEach((r) => {
673
655
  Object.defineProperty(e, r + n, {
674
- value: function(s, i, o) {
675
- return this[r].call(this, t, s, i, o);
656
+ value: function(s, o, i) {
657
+ return this[r].call(this, t, s, o, i);
676
658
  },
677
659
  configurable: !0
678
660
  });
679
661
  });
680
662
  }
681
- class A {
663
+ class _ {
682
664
  constructor(t) {
683
665
  t && this.set(t);
684
666
  }
685
667
  set(t, n, r) {
686
668
  const s = this;
687
- function i(c, d, l) {
688
- const u = V(d);
689
- if (!u)
669
+ function o(c, f, u) {
670
+ const l = j(f);
671
+ if (!l)
690
672
  throw new Error("header name must be a non-empty string");
691
- const p = a.findKey(s, u);
692
- (!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || d] = ce(c));
673
+ const d = a.findKey(s, l);
674
+ (!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = G(c));
693
675
  }
694
- const o = (c, d) => a.forEach(c, (l, u) => i(l, u, d));
676
+ const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
695
677
  if (a.isPlainObject(t) || t instanceof this.constructor)
696
- o(t, n);
697
- else if (a.isString(t) && (t = t.trim()) && !ar(t))
698
- o(or(t), n);
678
+ i(t, n);
679
+ else if (a.isString(t) && (t = t.trim()) && !$n(t))
680
+ i(Hn(t), n);
699
681
  else if (a.isObject(t) && a.isIterable(t)) {
700
- let c = {}, d, l;
701
- for (const u of t) {
702
- if (!a.isArray(u))
682
+ let c = {}, f, u;
683
+ for (const l of t) {
684
+ if (!a.isArray(l))
703
685
  throw TypeError("Object iterator must return a key-value pair");
704
- c[l = u[0]] = (d = c[l]) ? a.isArray(d) ? [...d, u[1]] : [d, u[1]] : u[1];
686
+ c[u = l[0]] = (f = c[u]) ? a.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
705
687
  }
706
- o(c, n);
688
+ i(c, n);
707
689
  } else
708
- t != null && i(n, t, r);
690
+ t != null && o(n, t, r);
709
691
  return this;
710
692
  }
711
693
  get(t, n) {
712
- if (t = V(t), t) {
694
+ if (t = j(t), t) {
713
695
  const r = a.findKey(this, t);
714
696
  if (r) {
715
697
  const s = this[r];
716
698
  if (!n)
717
699
  return s;
718
700
  if (n === !0)
719
- return ir(s);
701
+ return zn(s);
720
702
  if (a.isFunction(n))
721
703
  return n.call(this, s, r);
722
704
  if (a.isRegExp(n))
@@ -726,42 +708,42 @@ class A {
726
708
  }
727
709
  }
728
710
  has(t, n) {
729
- if (t = V(t), t) {
711
+ if (t = j(t), t) {
730
712
  const r = a.findKey(this, t);
731
- return !!(r && this[r] !== void 0 && (!n || Ee(this, this[r], r, n)));
713
+ return !!(r && this[r] !== void 0 && (!n || le(this, this[r], r, n)));
732
714
  }
733
715
  return !1;
734
716
  }
735
717
  delete(t, n) {
736
718
  const r = this;
737
719
  let s = !1;
738
- function i(o) {
739
- if (o = V(o), o) {
740
- const c = a.findKey(r, o);
741
- c && (!n || Ee(r, r[c], c, n)) && (delete r[c], s = !0);
720
+ function o(i) {
721
+ if (i = j(i), i) {
722
+ const c = a.findKey(r, i);
723
+ c && (!n || le(r, r[c], c, n)) && (delete r[c], s = !0);
742
724
  }
743
725
  }
744
- return a.isArray(t) ? t.forEach(i) : i(t), s;
726
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
745
727
  }
746
728
  clear(t) {
747
729
  const n = Object.keys(this);
748
730
  let r = n.length, s = !1;
749
731
  for (; r--; ) {
750
- const i = n[r];
751
- (!t || Ee(this, this[i], i, t, !0)) && (delete this[i], s = !0);
732
+ const o = n[r];
733
+ (!t || le(this, this[o], o, t, !0)) && (delete this[o], s = !0);
752
734
  }
753
735
  return s;
754
736
  }
755
737
  normalize(t) {
756
738
  const n = this, r = {};
757
- return a.forEach(this, (s, i) => {
758
- const o = a.findKey(r, i);
759
- if (o) {
760
- n[o] = ce(s), delete n[i];
739
+ return a.forEach(this, (s, o) => {
740
+ const i = a.findKey(r, o);
741
+ if (i) {
742
+ n[i] = G(s), delete n[o];
761
743
  return;
762
744
  }
763
- const c = t ? cr(i) : String(i).trim();
764
- c !== i && delete n[i], n[c] = ce(s), r[c] = !0;
745
+ const c = t ? Jn(o) : String(o).trim();
746
+ c !== o && delete n[o], n[c] = G(s), r[c] = !0;
765
747
  }), this;
766
748
  }
767
749
  concat(...t) {
@@ -794,18 +776,18 @@ class A {
794
776
  return n.forEach((s) => r.set(s)), r;
795
777
  }
796
778
  static accessor(t) {
797
- const r = (this[Ke] = this[Ke] = {
779
+ const r = (this[Fe] = this[Fe] = {
798
780
  accessors: {}
799
781
  }).accessors, s = this.prototype;
800
- function i(o) {
801
- const c = V(o);
802
- r[c] || (ur(s, o), r[c] = !0);
782
+ function o(i) {
783
+ const c = j(i);
784
+ r[c] || (Vn(s, i), r[c] = !0);
803
785
  }
804
- return a.isArray(t) ? t.forEach(i) : i(t), this;
786
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
805
787
  }
806
788
  }
807
- A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
808
- a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
789
+ _.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
790
+ a.reduceDescriptors(_.prototype, ({ value: e }, t) => {
809
791
  let n = t[0].toUpperCase() + t.slice(1);
810
792
  return {
811
793
  get: () => e,
@@ -814,24 +796,24 @@ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
814
796
  }
815
797
  };
816
798
  });
817
- a.freezeMethods(A);
818
- function Se(e, t) {
819
- const n = this || te, r = t || n, s = A.from(r.headers);
820
- let i = r.data;
799
+ a.freezeMethods(_);
800
+ function fe(e, t) {
801
+ const n = this || W, r = t || n, s = _.from(r.headers);
802
+ let o = r.data;
821
803
  return a.forEach(e, function(c) {
822
- i = c.call(n, i, s.normalize(), t ? t.status : void 0);
823
- }), s.normalize(), i;
804
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
805
+ }), s.normalize(), o;
824
806
  }
825
- function Ut(e) {
807
+ function ht(e) {
826
808
  return !!(e && e.__CANCEL__);
827
809
  }
828
- function z(e, t, n) {
810
+ function I(e, t, n) {
829
811
  y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
830
812
  }
831
- a.inherits(z, y, {
813
+ a.inherits(I, y, {
832
814
  __CANCEL__: !0
833
815
  });
834
- function Nt(e, t, n) {
816
+ function mt(e, t, n) {
835
817
  const r = n.config.validateStatus;
836
818
  !n.status || !r || r(n.status) ? e(n) : t(new y(
837
819
  "Request failed with status code " + n.status,
@@ -841,82 +823,80 @@ function Nt(e, t, n) {
841
823
  n
842
824
  ));
843
825
  }
844
- function lr(e) {
826
+ function Wn(e) {
845
827
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
846
828
  return t && t[1] || "";
847
829
  }
848
- function fr(e, t) {
830
+ function Kn(e, t) {
849
831
  e = e || 10;
850
832
  const n = new Array(e), r = new Array(e);
851
- let s = 0, i = 0, o;
852
- return t = t !== void 0 ? t : 1e3, function(d) {
853
- const l = Date.now(), u = r[i];
854
- o || (o = l), n[s] = d, r[s] = l;
855
- let p = i, w = 0;
856
- for (; p !== s; )
857
- w += n[p++], p = p % e;
858
- if (s = (s + 1) % e, s === i && (i = (i + 1) % e), l - o < t)
833
+ let s = 0, o = 0, i;
834
+ return t = t !== void 0 ? t : 1e3, function(f) {
835
+ const u = Date.now(), l = r[o];
836
+ i || (i = u), n[s] = f, r[s] = u;
837
+ let d = o, w = 0;
838
+ for (; d !== s; )
839
+ w += n[d++], d = d % e;
840
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
859
841
  return;
860
- const g = u && l - u;
842
+ const g = l && u - l;
861
843
  return g ? Math.round(w * 1e3 / g) : void 0;
862
844
  };
863
845
  }
864
- function dr(e, t) {
865
- let n = 0, r = 1e3 / t, s, i;
866
- const o = (l, u = Date.now()) => {
867
- n = u, s = null, i && (clearTimeout(i), i = null), e(...l);
846
+ function Qn(e, t) {
847
+ let n = 0, r = 1e3 / t, s, o;
848
+ const i = (u, l = Date.now()) => {
849
+ n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
868
850
  };
869
- return [(...l) => {
870
- const u = Date.now(), p = u - n;
871
- p >= r ? o(l, u) : (s = l, i || (i = setTimeout(() => {
872
- i = null, o(s);
873
- }, r - p)));
874
- }, () => s && o(s)];
851
+ return [(...u) => {
852
+ const l = Date.now(), d = l - n;
853
+ d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
854
+ o = null, i(s);
855
+ }, r - d)));
856
+ }, () => s && i(s)];
875
857
  }
876
- const fe = (e, t, n = 3) => {
858
+ const ee = (e, t, n = 3) => {
877
859
  let r = 0;
878
- const s = fr(50, 250);
879
- return dr((i) => {
880
- const o = i.loaded, c = i.lengthComputable ? i.total : void 0, d = o - r, l = s(d), u = o <= c;
881
- r = o;
882
- const p = {
883
- loaded: o,
860
+ const s = Kn(50, 250);
861
+ return Qn((o) => {
862
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
863
+ r = i;
864
+ const d = {
865
+ loaded: i,
884
866
  total: c,
885
- progress: c ? o / c : void 0,
886
- bytes: d,
887
- rate: l || void 0,
888
- estimated: l && c && u ? (c - o) / l : void 0,
889
- event: i,
867
+ progress: c ? i / c : void 0,
868
+ bytes: f,
869
+ rate: u || void 0,
870
+ estimated: u && c && l ? (c - i) / u : void 0,
871
+ event: o,
890
872
  lengthComputable: c != null,
891
873
  [t ? "download" : "upload"]: !0
892
874
  };
893
- e(p);
875
+ e(d);
894
876
  }, n);
895
- }, Qe = (e, t) => {
877
+ }, De = (e, t) => {
896
878
  const n = e != null;
897
879
  return [(r) => t[0]({
898
880
  lengthComputable: n,
899
881
  total: e,
900
882
  loaded: r
901
883
  }), t[1]];
902
- }, Xe = (e) => (...t) => a.asap(() => e(...t)), pr = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
903
- new URL(R.origin),
904
- R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
905
- ) : () => !0, hr = R.hasStandardBrowserEnv ? (
884
+ }, ve = (e) => (...t) => a.asap(() => e(...t)), Xn = 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)))(
885
+ new URL(T.origin),
886
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
887
+ ) : () => !0, Gn = T.hasStandardBrowserEnv ? (
906
888
  // Standard browser envs support document.cookie
907
889
  {
908
- write(e, t, n, r, s, i, o) {
909
- if (typeof document > "u") return;
910
- const c = [`${e}=${encodeURIComponent(t)}`];
911
- a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
890
+ write(e, t, n, r, s, o) {
891
+ const i = [e + "=" + encodeURIComponent(t)];
892
+ a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
912
893
  },
913
894
  read(e) {
914
- if (typeof document > "u") return null;
915
- const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
916
- return t ? decodeURIComponent(t[1]) : null;
895
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
896
+ return t ? decodeURIComponent(t[3]) : null;
917
897
  },
918
898
  remove(e) {
919
- this.write(e, "", Date.now() - 864e5, "/");
899
+ this.write(e, "", Date.now() - 864e5);
920
900
  }
921
901
  }
922
902
  ) : (
@@ -931,119 +911,119 @@ const fe = (e, t, n = 3) => {
931
911
  }
932
912
  }
933
913
  );
934
- function mr(e) {
914
+ function Zn(e) {
935
915
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
936
916
  }
937
- function yr(e, t) {
917
+ function Yn(e, t) {
938
918
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
939
919
  }
940
- function Ft(e, t, n) {
941
- let r = !mr(t);
942
- return e && (r || n == !1) ? yr(e, t) : t;
920
+ function yt(e, t, n) {
921
+ let r = !Zn(t);
922
+ return e && (r || n == !1) ? Yn(e, t) : t;
943
923
  }
944
- const Ge = (e) => e instanceof A ? { ...e } : e;
945
- function I(e, t) {
924
+ const Be = (e) => e instanceof _ ? { ...e } : e;
925
+ function F(e, t) {
946
926
  t = t || {};
947
927
  const n = {};
948
- function r(l, u, p, w) {
949
- return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: w }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
928
+ function r(u, l, d, w) {
929
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: w }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
950
930
  }
951
- function s(l, u, p, w) {
952
- if (a.isUndefined(u)) {
953
- if (!a.isUndefined(l))
954
- return r(void 0, l, p, w);
955
- } else return r(l, u, p, w);
931
+ function s(u, l, d, w) {
932
+ if (a.isUndefined(l)) {
933
+ if (!a.isUndefined(u))
934
+ return r(void 0, u, d, w);
935
+ } else return r(u, l, d, w);
956
936
  }
957
- function i(l, u) {
958
- if (!a.isUndefined(u))
959
- return r(void 0, u);
937
+ function o(u, l) {
938
+ if (!a.isUndefined(l))
939
+ return r(void 0, l);
960
940
  }
961
- function o(l, u) {
962
- if (a.isUndefined(u)) {
963
- if (!a.isUndefined(l))
964
- return r(void 0, l);
965
- } else return r(void 0, u);
941
+ function i(u, l) {
942
+ if (a.isUndefined(l)) {
943
+ if (!a.isUndefined(u))
944
+ return r(void 0, u);
945
+ } else return r(void 0, l);
966
946
  }
967
- function c(l, u, p) {
968
- if (p in t)
969
- return r(l, u);
970
- if (p in e)
971
- return r(void 0, l);
947
+ function c(u, l, d) {
948
+ if (d in t)
949
+ return r(u, l);
950
+ if (d in e)
951
+ return r(void 0, u);
972
952
  }
973
- const d = {
974
- url: i,
975
- method: i,
976
- data: i,
977
- baseURL: o,
978
- transformRequest: o,
979
- transformResponse: o,
980
- paramsSerializer: o,
981
- timeout: o,
982
- timeoutMessage: o,
983
- withCredentials: o,
984
- withXSRFToken: o,
985
- adapter: o,
986
- responseType: o,
987
- xsrfCookieName: o,
988
- xsrfHeaderName: o,
989
- onUploadProgress: o,
990
- onDownloadProgress: o,
991
- decompress: o,
992
- maxContentLength: o,
993
- maxBodyLength: o,
994
- beforeRedirect: o,
995
- transport: o,
996
- httpAgent: o,
997
- httpsAgent: o,
998
- cancelToken: o,
999
- socketPath: o,
1000
- responseEncoding: o,
953
+ const f = {
954
+ url: o,
955
+ method: o,
956
+ data: o,
957
+ baseURL: i,
958
+ transformRequest: i,
959
+ transformResponse: i,
960
+ paramsSerializer: i,
961
+ timeout: i,
962
+ timeoutMessage: i,
963
+ withCredentials: i,
964
+ withXSRFToken: i,
965
+ adapter: i,
966
+ responseType: i,
967
+ xsrfCookieName: i,
968
+ xsrfHeaderName: i,
969
+ onUploadProgress: i,
970
+ onDownloadProgress: i,
971
+ decompress: i,
972
+ maxContentLength: i,
973
+ maxBodyLength: i,
974
+ beforeRedirect: i,
975
+ transport: i,
976
+ httpAgent: i,
977
+ httpsAgent: i,
978
+ cancelToken: i,
979
+ socketPath: i,
980
+ responseEncoding: i,
1001
981
  validateStatus: c,
1002
- headers: (l, u, p) => s(Ge(l), Ge(u), p, !0)
982
+ headers: (u, l, d) => s(Be(u), Be(l), d, !0)
1003
983
  };
1004
- return a.forEach(Object.keys({ ...e, ...t }), function(u) {
1005
- const p = d[u] || s, w = p(e[u], t[u], u);
1006
- a.isUndefined(w) && p !== c || (n[u] = w);
984
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
985
+ const d = f[l] || s, w = d(e[l], t[l], l);
986
+ a.isUndefined(w) && d !== c || (n[l] = w);
1007
987
  }), n;
1008
988
  }
1009
- const Lt = (e) => {
1010
- const t = I({}, e);
1011
- let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1012
- if (t.headers = o = A.from(o), t.url = kt(Ft(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
989
+ const wt = (e) => {
990
+ const t = F({}, e);
991
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
992
+ t.headers = i = _.from(i), t.url = ft(yt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
1013
993
  "Authorization",
1014
994
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1015
- ), a.isFormData(n)) {
1016
- if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
1017
- o.setContentType(void 0);
1018
- else if (a.isFunction(n.getHeaders)) {
1019
- const d = n.getHeaders(), l = ["content-type", "content-length"];
1020
- Object.entries(d).forEach(([u, p]) => {
1021
- l.includes(u.toLowerCase()) && o.set(u, p);
1022
- });
995
+ );
996
+ let f;
997
+ if (a.isFormData(n)) {
998
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
999
+ i.setContentType(void 0);
1000
+ else if ((f = i.getContentType()) !== !1) {
1001
+ const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1002
+ i.setContentType([u || "multipart/form-data", ...l].join("; "));
1023
1003
  }
1024
1004
  }
1025
- if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && pr(t.url))) {
1026
- const d = s && i && hr.read(i);
1027
- d && o.set(s, d);
1005
+ if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Xn(t.url))) {
1006
+ const u = s && o && Gn.read(o);
1007
+ u && i.set(s, u);
1028
1008
  }
1029
1009
  return t;
1030
- }, wr = typeof XMLHttpRequest < "u", gr = wr && function(e) {
1010
+ }, er = typeof XMLHttpRequest < "u", tr = er && function(e) {
1031
1011
  return new Promise(function(n, r) {
1032
- const s = Lt(e);
1033
- let i = s.data;
1034
- const o = A.from(s.headers).normalize();
1035
- let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = s, u, p, w, g, f;
1012
+ const s = wt(e);
1013
+ let o = s.data;
1014
+ const i = _.from(s.headers).normalize();
1015
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, w, g, p;
1036
1016
  function m() {
1037
- g && g(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1017
+ g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1038
1018
  }
1039
1019
  let h = new XMLHttpRequest();
1040
1020
  h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1041
1021
  function E() {
1042
1022
  if (!h)
1043
1023
  return;
1044
- const S = A.from(
1024
+ const S = _.from(
1045
1025
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1046
- ), k = {
1026
+ ), O = {
1047
1027
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1048
1028
  status: h.status,
1049
1029
  statusText: h.statusText,
@@ -1051,64 +1031,63 @@ const Lt = (e) => {
1051
1031
  config: e,
1052
1032
  request: h
1053
1033
  };
1054
- Nt(function(x) {
1055
- n(x), m();
1056
- }, function(x) {
1057
- r(x), m();
1058
- }, k), h = null;
1034
+ mt(function(U) {
1035
+ n(U), m();
1036
+ }, function(U) {
1037
+ r(U), m();
1038
+ }, O), h = null;
1059
1039
  }
1060
1040
  "onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
1061
1041
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(E);
1062
1042
  }, h.onabort = function() {
1063
1043
  h && (r(new y("Request aborted", y.ECONNABORTED, e, h)), h = null);
1064
- }, h.onerror = function(T) {
1065
- const k = T && T.message ? T.message : "Network Error", L = new y(k, y.ERR_NETWORK, e, h);
1066
- L.event = T || null, r(L), h = null;
1044
+ }, h.onerror = function() {
1045
+ r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
1067
1046
  }, h.ontimeout = function() {
1068
- let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1069
- const k = s.transitional || Ct;
1070
- s.timeoutErrorMessage && (T = s.timeoutErrorMessage), r(new y(
1071
- T,
1072
- k.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1047
+ let C = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1048
+ const O = s.transitional || dt;
1049
+ s.timeoutErrorMessage && (C = s.timeoutErrorMessage), r(new y(
1050
+ C,
1051
+ O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1073
1052
  e,
1074
1053
  h
1075
1054
  )), h = null;
1076
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(T, k) {
1077
- h.setRequestHeader(k, T);
1078
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([w, f] = fe(l, !0), h.addEventListener("progress", w)), d && h.upload && ([p, g] = fe(d), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (S) => {
1079
- h && (r(!S || S.type ? new z(null, e, h) : S), h.abort(), h = null);
1080
- }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1081
- const _ = lr(s.url);
1082
- if (_ && R.protocols.indexOf(_) === -1) {
1083
- r(new y("Unsupported protocol " + _ + ":", y.ERR_BAD_REQUEST, e));
1055
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(C, O) {
1056
+ h.setRequestHeader(O, C);
1057
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([w, p] = ee(u, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (S) => {
1058
+ h && (r(!S || S.type ? new I(null, e, h) : S), h.abort(), h = null);
1059
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1060
+ const R = Wn(s.url);
1061
+ if (R && T.protocols.indexOf(R) === -1) {
1062
+ r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, e));
1084
1063
  return;
1085
1064
  }
1086
- h.send(i || null);
1065
+ h.send(o || null);
1087
1066
  });
1088
- }, br = (e, t) => {
1067
+ }, nr = (e, t) => {
1089
1068
  const { length: n } = e = e ? e.filter(Boolean) : [];
1090
1069
  if (t || n) {
1091
1070
  let r = new AbortController(), s;
1092
- const i = function(l) {
1071
+ const o = function(u) {
1093
1072
  if (!s) {
1094
1073
  s = !0, c();
1095
- const u = l instanceof Error ? l : this.reason;
1096
- r.abort(u instanceof y ? u : new z(u instanceof Error ? u.message : u));
1074
+ const l = u instanceof Error ? u : this.reason;
1075
+ r.abort(l instanceof y ? l : new I(l instanceof Error ? l.message : l));
1097
1076
  }
1098
1077
  };
1099
- let o = t && setTimeout(() => {
1100
- o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1078
+ let i = t && setTimeout(() => {
1079
+ i = null, o(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1101
1080
  }, t);
1102
1081
  const c = () => {
1103
- e && (o && clearTimeout(o), o = null, e.forEach((l) => {
1104
- l.unsubscribe ? l.unsubscribe(i) : l.removeEventListener("abort", i);
1082
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1083
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1105
1084
  }), e = null);
1106
1085
  };
1107
- e.forEach((l) => l.addEventListener("abort", i));
1108
- const { signal: d } = r;
1109
- return d.unsubscribe = () => a.asap(c), d;
1086
+ e.forEach((u) => u.addEventListener("abort", o));
1087
+ const { signal: f } = r;
1088
+ return f.unsubscribe = () => a.asap(c), f;
1110
1089
  }
1111
- }, Er = function* (e, t) {
1090
+ }, rr = function* (e, t) {
1112
1091
  let n = e.byteLength;
1113
1092
  if (n < t) {
1114
1093
  yield e;
@@ -1117,10 +1096,10 @@ const Lt = (e) => {
1117
1096
  let r = 0, s;
1118
1097
  for (; r < n; )
1119
1098
  s = r + t, yield e.slice(r, s), r = s;
1120
- }, Sr = async function* (e, t) {
1121
- for await (const n of Rr(e))
1122
- yield* Er(n, t);
1123
- }, Rr = async function* (e) {
1099
+ }, sr = async function* (e, t) {
1100
+ for await (const n of or(e))
1101
+ yield* rr(n, t);
1102
+ }, or = async function* (e) {
1124
1103
  if (e[Symbol.asyncIterator]) {
1125
1104
  yield* e;
1126
1105
  return;
@@ -1136,200 +1115,169 @@ const Lt = (e) => {
1136
1115
  } finally {
1137
1116
  await t.cancel();
1138
1117
  }
1139
- }, Ze = (e, t, n, r) => {
1140
- const s = Sr(e, t);
1141
- let i = 0, o, c = (d) => {
1142
- o || (o = !0, r && r(d));
1118
+ }, Ie = (e, t, n, r) => {
1119
+ const s = sr(e, t);
1120
+ let o = 0, i, c = (f) => {
1121
+ i || (i = !0, r && r(f));
1143
1122
  };
1144
1123
  return new ReadableStream({
1145
- async pull(d) {
1124
+ async pull(f) {
1146
1125
  try {
1147
- const { done: l, value: u } = await s.next();
1148
- if (l) {
1149
- c(), d.close();
1126
+ const { done: u, value: l } = await s.next();
1127
+ if (u) {
1128
+ c(), f.close();
1150
1129
  return;
1151
1130
  }
1152
- let p = u.byteLength;
1131
+ let d = l.byteLength;
1153
1132
  if (n) {
1154
- let w = i += p;
1133
+ let w = o += d;
1155
1134
  n(w);
1156
1135
  }
1157
- d.enqueue(new Uint8Array(u));
1158
- } catch (l) {
1159
- throw c(l), l;
1136
+ f.enqueue(new Uint8Array(l));
1137
+ } catch (u) {
1138
+ throw c(u), u;
1160
1139
  }
1161
1140
  },
1162
- cancel(d) {
1163
- return c(d), s.return();
1141
+ cancel(f) {
1142
+ return c(f), s.return();
1164
1143
  }
1165
1144
  }, {
1166
1145
  highWaterMark: 2
1167
1146
  });
1168
- }, Ye = 64 * 1024, { isFunction: oe } = a, Tr = (({ Request: e, Response: t }) => ({
1169
- Request: e,
1170
- Response: t
1171
- }))(a.global), {
1172
- ReadableStream: et,
1173
- TextEncoder: tt
1174
- } = a.global, nt = (e, ...t) => {
1147
+ }, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", gt = ae && typeof ReadableStream == "function", ir = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), bt = (e, ...t) => {
1175
1148
  try {
1176
1149
  return !!e(...t);
1177
1150
  } catch {
1178
1151
  return !1;
1179
1152
  }
1180
- }, Or = (e) => {
1181
- e = a.merge.call({
1182
- skipUndefined: !0
1183
- }, Tr, e);
1184
- const { fetch: t, Request: n, Response: r } = e, s = t ? oe(t) : typeof fetch == "function", i = oe(n), o = oe(r);
1185
- if (!s)
1186
- return !1;
1187
- const c = s && oe(et), d = s && (typeof tt == "function" ? /* @__PURE__ */ ((f) => (m) => f.encode(m))(new tt()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), l = i && c && nt(() => {
1188
- let f = !1;
1189
- const m = new n(R.origin, {
1190
- body: new et(),
1191
- method: "POST",
1192
- get duplex() {
1193
- return f = !0, "half";
1194
- }
1195
- }).headers.has("Content-Type");
1196
- return f && !m;
1197
- }), u = o && c && nt(() => a.isReadableStream(new r("").body)), p = {
1198
- stream: u && ((f) => f.body)
1199
- };
1200
- s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
1201
- !p[f] && (p[f] = (m, h) => {
1202
- let E = m && m[f];
1203
- if (E)
1204
- return E.call(m);
1205
- throw new y(`Response type '${f}' is not supported`, y.ERR_NOT_SUPPORT, h);
1153
+ }, ar = gt && bt(() => {
1154
+ let e = !1;
1155
+ const t = new Request(T.origin, {
1156
+ body: new ReadableStream(),
1157
+ method: "POST",
1158
+ get duplex() {
1159
+ return e = !0, "half";
1160
+ }
1161
+ }).headers.has("Content-Type");
1162
+ return e && !t;
1163
+ }), je = 64 * 1024, ye = gt && bt(() => a.isReadableStream(new Response("").body)), te = {
1164
+ stream: ye && ((e) => e.body)
1165
+ };
1166
+ ae && ((e) => {
1167
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1168
+ !te[t] && (te[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1169
+ throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r);
1206
1170
  });
1207
1171
  });
1208
- const w = async (f) => {
1209
- if (f == null)
1210
- return 0;
1211
- if (a.isBlob(f))
1212
- return f.size;
1213
- if (a.isSpecCompliantForm(f))
1214
- return (await new n(R.origin, {
1172
+ })(new Response());
1173
+ const cr = async (e) => {
1174
+ if (e == null)
1175
+ return 0;
1176
+ if (a.isBlob(e))
1177
+ return e.size;
1178
+ if (a.isSpecCompliantForm(e))
1179
+ return (await new Request(T.origin, {
1180
+ method: "POST",
1181
+ body: e
1182
+ }).arrayBuffer()).byteLength;
1183
+ if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1184
+ return e.byteLength;
1185
+ if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1186
+ return (await ir(e)).byteLength;
1187
+ }, ur = async (e, t) => {
1188
+ const n = a.toFiniteNumber(e.getContentLength());
1189
+ return n ?? cr(t);
1190
+ }, lr = ae && (async (e) => {
1191
+ let {
1192
+ url: t,
1193
+ method: n,
1194
+ data: r,
1195
+ signal: s,
1196
+ cancelToken: o,
1197
+ timeout: i,
1198
+ onDownloadProgress: c,
1199
+ onUploadProgress: f,
1200
+ responseType: u,
1201
+ headers: l,
1202
+ withCredentials: d = "same-origin",
1203
+ fetchOptions: w
1204
+ } = wt(e);
1205
+ u = u ? (u + "").toLowerCase() : "text";
1206
+ let g = nr([s, o && o.toAbortSignal()], i), p;
1207
+ const m = g && g.unsubscribe && (() => {
1208
+ g.unsubscribe();
1209
+ });
1210
+ let h;
1211
+ try {
1212
+ if (f && ar && n !== "get" && n !== "head" && (h = await ur(l, r)) !== 0) {
1213
+ let O = new Request(t, {
1215
1214
  method: "POST",
1216
- body: f
1217
- }).arrayBuffer()).byteLength;
1218
- if (a.isArrayBufferView(f) || a.isArrayBuffer(f))
1219
- return f.byteLength;
1220
- if (a.isURLSearchParams(f) && (f = f + ""), a.isString(f))
1221
- return (await d(f)).byteLength;
1222
- }, g = async (f, m) => {
1223
- const h = a.toFiniteNumber(f.getContentLength());
1224
- return h ?? w(m);
1225
- };
1226
- return async (f) => {
1227
- let {
1228
- url: m,
1229
- method: h,
1230
- data: E,
1231
- signal: _,
1232
- cancelToken: S,
1233
- timeout: T,
1234
- onDownloadProgress: k,
1235
- onUploadProgress: L,
1236
- responseType: x,
1237
- headers: we,
1238
- withCredentials: ne = "same-origin",
1239
- fetchOptions: Ie
1240
- } = Lt(f), je = t || fetch;
1241
- x = x ? (x + "").toLowerCase() : "text";
1242
- let re = br([_, S && S.toAbortSignal()], T), J = null;
1243
- const D = re && re.unsubscribe && (() => {
1244
- re.unsubscribe();
1245
- });
1246
- let qe;
1247
- try {
1248
- if (L && l && h !== "get" && h !== "head" && (qe = await g(we, E)) !== 0) {
1249
- let F = new n(m, {
1250
- method: "POST",
1251
- body: E,
1252
- duplex: "half"
1253
- }), j;
1254
- if (a.isFormData(E) && (j = F.headers.get("content-type")) && we.setContentType(j), F.body) {
1255
- const [ge, se] = Qe(
1256
- qe,
1257
- fe(Xe(L))
1258
- );
1259
- E = Ze(F.body, Ye, ge, se);
1260
- }
1261
- }
1262
- a.isString(ne) || (ne = ne ? "include" : "omit");
1263
- const P = i && "credentials" in n.prototype, Me = {
1264
- ...Ie,
1265
- signal: re,
1266
- method: h.toUpperCase(),
1267
- headers: we.normalize().toJSON(),
1268
- body: E,
1269
- duplex: "half",
1270
- credentials: P ? ne : void 0
1271
- };
1272
- J = i && new n(m, Me);
1273
- let N = await (i ? je(J, Ie) : je(m, Me));
1274
- const He = u && (x === "stream" || x === "response");
1275
- if (u && (k || He && D)) {
1276
- const F = {};
1277
- ["status", "statusText", "headers"].forEach(($e) => {
1278
- F[$e] = N[$e];
1279
- });
1280
- const j = a.toFiniteNumber(N.headers.get("content-length")), [ge, se] = k && Qe(
1281
- j,
1282
- fe(Xe(k), !0)
1283
- ) || [];
1284
- N = new r(
1285
- Ze(N.body, Ye, ge, () => {
1286
- se && se(), D && D();
1287
- }),
1288
- F
1215
+ body: r,
1216
+ duplex: "half"
1217
+ }), P;
1218
+ if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
1219
+ const [U, K] = De(
1220
+ h,
1221
+ ee(ve(f))
1289
1222
  );
1223
+ r = Ie(O.body, je, U, K);
1290
1224
  }
1291
- x = x || "text";
1292
- let Vt = await p[a.findKey(p, x) || "text"](N, f);
1293
- return !He && D && D(), await new Promise((F, j) => {
1294
- Nt(F, j, {
1295
- data: Vt,
1296
- headers: A.from(N.headers),
1297
- status: N.status,
1298
- statusText: N.statusText,
1299
- config: f,
1300
- request: J
1301
- });
1225
+ }
1226
+ a.isString(d) || (d = d ? "include" : "omit");
1227
+ const E = "credentials" in Request.prototype;
1228
+ p = new Request(t, {
1229
+ ...w,
1230
+ signal: g,
1231
+ method: n.toUpperCase(),
1232
+ headers: l.normalize().toJSON(),
1233
+ body: r,
1234
+ duplex: "half",
1235
+ credentials: E ? d : void 0
1236
+ });
1237
+ let R = await fetch(p, w);
1238
+ const S = ye && (u === "stream" || u === "response");
1239
+ if (ye && (c || S && m)) {
1240
+ const O = {};
1241
+ ["status", "statusText", "headers"].forEach((Ce) => {
1242
+ O[Ce] = R[Ce];
1302
1243
  });
1303
- } catch (P) {
1304
- throw D && D(), P && P.name === "TypeError" && /Load failed|fetch/i.test(P.message) ? Object.assign(
1305
- new y("Network Error", y.ERR_NETWORK, f, J),
1306
- {
1307
- cause: P.cause || P
1308
- }
1309
- ) : y.from(P, P && P.code, f, J);
1244
+ const P = a.toFiniteNumber(R.headers.get("content-length")), [U, K] = c && De(
1245
+ P,
1246
+ ee(ve(c), !0)
1247
+ ) || [];
1248
+ R = new Response(
1249
+ Ie(R.body, je, U, () => {
1250
+ K && K(), m && m();
1251
+ }),
1252
+ O
1253
+ );
1310
1254
  }
1311
- };
1312
- }, Ar = /* @__PURE__ */ new Map(), Dt = (e) => {
1313
- let t = e && e.env || {};
1314
- const { fetch: n, Request: r, Response: s } = t, i = [
1315
- r,
1316
- s,
1317
- n
1318
- ];
1319
- let o = i.length, c = o, d, l, u = Ar;
1320
- for (; c--; )
1321
- d = i[c], l = u.get(d), l === void 0 && u.set(d, l = c ? /* @__PURE__ */ new Map() : Or(t)), u = l;
1322
- return l;
1323
- };
1324
- Dt();
1325
- const De = {
1326
- http: Hn,
1327
- xhr: gr,
1328
- fetch: {
1329
- get: Dt
1255
+ u = u || "text";
1256
+ let C = await te[a.findKey(te, u) || "text"](R, e);
1257
+ return !S && m && m(), await new Promise((O, P) => {
1258
+ mt(O, P, {
1259
+ data: C,
1260
+ headers: _.from(R.headers),
1261
+ status: R.status,
1262
+ statusText: R.statusText,
1263
+ config: e,
1264
+ request: p
1265
+ });
1266
+ });
1267
+ } catch (E) {
1268
+ throw m && m(), E && E.name === "TypeError" && /Load failed|fetch/i.test(E.message) ? Object.assign(
1269
+ new y("Network Error", y.ERR_NETWORK, e, p),
1270
+ {
1271
+ cause: E.cause || E
1272
+ }
1273
+ ) : y.from(E, E && E.code, e, p);
1330
1274
  }
1275
+ }), we = {
1276
+ http: An,
1277
+ xhr: tr,
1278
+ fetch: lr
1331
1279
  };
1332
- a.forEach(De, (e, t) => {
1280
+ a.forEach(we, (e, t) => {
1333
1281
  if (e) {
1334
1282
  try {
1335
1283
  Object.defineProperty(e, "name", { value: t });
@@ -1338,118 +1286,108 @@ a.forEach(De, (e, t) => {
1338
1286
  Object.defineProperty(e, "adapterName", { value: t });
1339
1287
  }
1340
1288
  });
1341
- const rt = (e) => `- ${e}`, _r = (e) => a.isFunction(e) || e === null || e === !1;
1342
- function xr(e, t) {
1343
- e = a.isArray(e) ? e : [e];
1344
- const { length: n } = e;
1345
- let r, s;
1346
- const i = {};
1347
- for (let o = 0; o < n; o++) {
1348
- r = e[o];
1349
- let c;
1350
- if (s = r, !_r(r) && (s = De[(c = String(r)).toLowerCase()], s === void 0))
1351
- throw new y(`Unknown adapter '${c}'`);
1352
- if (s && (a.isFunction(s) || (s = s.get(t))))
1353
- break;
1354
- i[c || "#" + o] = s;
1355
- }
1356
- if (!s) {
1357
- const o = Object.entries(i).map(
1358
- ([d, l]) => `adapter ${d} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1359
- );
1360
- let c = n ? o.length > 1 ? `since :
1361
- ` + o.map(rt).join(`
1362
- `) : " " + rt(o[0]) : "as no adapter specified";
1363
- throw new y(
1364
- "There is no suitable adapter to dispatch the request " + c,
1365
- "ERR_NOT_SUPPORT"
1366
- );
1367
- }
1368
- return s;
1369
- }
1370
- const vt = {
1371
- /**
1372
- * Resolve an adapter from a list of adapter names or functions.
1373
- * @type {Function}
1374
- */
1375
- getAdapter: xr,
1376
- /**
1377
- * Exposes all known adapters
1378
- * @type {Object<string, Function|Object>}
1379
- */
1380
- adapters: De
1289
+ const qe = (e) => `- ${e}`, fr = (e) => a.isFunction(e) || e === null || e === !1, Et = {
1290
+ getAdapter: (e) => {
1291
+ e = a.isArray(e) ? e : [e];
1292
+ const { length: t } = e;
1293
+ let n, r;
1294
+ const s = {};
1295
+ for (let o = 0; o < t; o++) {
1296
+ n = e[o];
1297
+ let i;
1298
+ if (r = n, !fr(n) && (r = we[(i = String(n)).toLowerCase()], r === void 0))
1299
+ throw new y(`Unknown adapter '${i}'`);
1300
+ if (r)
1301
+ break;
1302
+ s[i || "#" + o] = r;
1303
+ }
1304
+ if (!r) {
1305
+ const o = Object.entries(s).map(
1306
+ ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1307
+ );
1308
+ let i = t ? o.length > 1 ? `since :
1309
+ ` + o.map(qe).join(`
1310
+ `) : " " + qe(o[0]) : "as no adapter specified";
1311
+ throw new y(
1312
+ "There is no suitable adapter to dispatch the request " + i,
1313
+ "ERR_NOT_SUPPORT"
1314
+ );
1315
+ }
1316
+ return r;
1317
+ },
1318
+ adapters: we
1381
1319
  };
1382
- function Re(e) {
1320
+ function de(e) {
1383
1321
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1384
- throw new z(null, e);
1322
+ throw new I(null, e);
1385
1323
  }
1386
- function st(e) {
1387
- return Re(e), e.headers = A.from(e.headers), e.data = Se.call(
1324
+ function Me(e) {
1325
+ return de(e), e.headers = _.from(e.headers), e.data = fe.call(
1388
1326
  e,
1389
1327
  e.transformRequest
1390
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), vt.getAdapter(e.adapter || te.adapter, e)(e).then(function(r) {
1391
- return Re(e), r.data = Se.call(
1328
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Et.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
1329
+ return de(e), r.data = fe.call(
1392
1330
  e,
1393
1331
  e.transformResponse,
1394
1332
  r
1395
- ), r.headers = A.from(r.headers), r;
1333
+ ), r.headers = _.from(r.headers), r;
1396
1334
  }, function(r) {
1397
- return Ut(r) || (Re(e), r && r.response && (r.response.data = Se.call(
1335
+ return ht(r) || (de(e), r && r.response && (r.response.data = fe.call(
1398
1336
  e,
1399
1337
  e.transformResponse,
1400
1338
  r.response
1401
- ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1339
+ ), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
1402
1340
  });
1403
1341
  }
1404
- const Bt = "1.13.2", ye = {};
1342
+ const Rt = "1.10.0", ce = {};
1405
1343
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1406
- ye[e] = function(r) {
1344
+ ce[e] = function(r) {
1407
1345
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1408
1346
  };
1409
1347
  });
1410
- const ot = {};
1411
- ye.transitional = function(t, n, r) {
1412
- function s(i, o) {
1413
- return "[Axios v" + Bt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1348
+ const He = {};
1349
+ ce.transitional = function(t, n, r) {
1350
+ function s(o, i) {
1351
+ return "[Axios v" + Rt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1414
1352
  }
1415
- return (i, o, c) => {
1353
+ return (o, i, c) => {
1416
1354
  if (t === !1)
1417
1355
  throw new y(
1418
- s(o, " has been removed" + (n ? " in " + n : "")),
1356
+ s(i, " has been removed" + (n ? " in " + n : "")),
1419
1357
  y.ERR_DEPRECATED
1420
1358
  );
1421
- return n && !ot[o] && (ot[o] = !0), t ? t(i, o, c) : !0;
1359
+ return n && !He[i] && (He[i] = !0), t ? t(o, i, c) : !0;
1422
1360
  };
1423
1361
  };
1424
- ye.spelling = function(t) {
1362
+ ce.spelling = function(t) {
1425
1363
  return (n, r) => !0;
1426
1364
  };
1427
- function kr(e, t, n) {
1365
+ function dr(e, t, n) {
1428
1366
  if (typeof e != "object")
1429
1367
  throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1430
1368
  const r = Object.keys(e);
1431
1369
  let s = r.length;
1432
1370
  for (; s-- > 0; ) {
1433
- const i = r[s], o = t[i];
1434
- if (o) {
1435
- const c = e[i], d = c === void 0 || o(c, i, e);
1436
- if (d !== !0)
1437
- throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
1371
+ const o = r[s], i = t[o];
1372
+ if (i) {
1373
+ const c = e[o], f = c === void 0 || i(c, o, e);
1374
+ if (f !== !0)
1375
+ throw new y("option " + o + " must be " + f, y.ERR_BAD_OPTION_VALUE);
1438
1376
  continue;
1439
1377
  }
1440
1378
  if (n !== !0)
1441
- throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1379
+ throw new y("Unknown option " + o, y.ERR_BAD_OPTION);
1442
1380
  }
1443
1381
  }
1444
- const ue = {
1445
- assertOptions: kr,
1446
- validators: ye
1447
- }, U = ue.validators;
1448
- class B {
1382
+ const Z = {
1383
+ assertOptions: dr,
1384
+ validators: ce
1385
+ }, k = Z.validators;
1386
+ class L {
1449
1387
  constructor(t) {
1450
1388
  this.defaults = t || {}, this.interceptors = {
1451
- request: new We(),
1452
- response: new We()
1389
+ request: new Le(),
1390
+ response: new Le()
1453
1391
  };
1454
1392
  }
1455
1393
  /**
@@ -1467,10 +1405,10 @@ class B {
1467
1405
  if (r instanceof Error) {
1468
1406
  let s = {};
1469
1407
  Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1470
- const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1408
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1471
1409
  try {
1472
- r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1473
- ` + i) : r.stack = i;
1410
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1411
+ ` + o) : r.stack = o;
1474
1412
  } catch {
1475
1413
  }
1476
1414
  }
@@ -1478,76 +1416,76 @@ class B {
1478
1416
  }
1479
1417
  }
1480
1418
  _request(t, n) {
1481
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = I(this.defaults, n);
1482
- const { transitional: r, paramsSerializer: s, headers: i } = n;
1483
- r !== void 0 && ue.assertOptions(r, {
1484
- silentJSONParsing: U.transitional(U.boolean),
1485
- forcedJSONParsing: U.transitional(U.boolean),
1486
- clarifyTimeoutError: U.transitional(U.boolean)
1419
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = F(this.defaults, n);
1420
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1421
+ r !== void 0 && Z.assertOptions(r, {
1422
+ silentJSONParsing: k.transitional(k.boolean),
1423
+ forcedJSONParsing: k.transitional(k.boolean),
1424
+ clarifyTimeoutError: k.transitional(k.boolean)
1487
1425
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1488
1426
  serialize: s
1489
- } : ue.assertOptions(s, {
1490
- encode: U.function,
1491
- serialize: U.function
1492
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ue.assertOptions(n, {
1493
- baseUrl: U.spelling("baseURL"),
1494
- withXsrfToken: U.spelling("withXSRFToken")
1427
+ } : Z.assertOptions(s, {
1428
+ encode: k.function,
1429
+ serialize: k.function
1430
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Z.assertOptions(n, {
1431
+ baseUrl: k.spelling("baseURL"),
1432
+ withXsrfToken: k.spelling("withXSRFToken")
1495
1433
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1496
- let o = i && a.merge(
1497
- i.common,
1498
- i[n.method]
1434
+ let i = o && a.merge(
1435
+ o.common,
1436
+ o[n.method]
1499
1437
  );
1500
- i && a.forEach(
1438
+ o && a.forEach(
1501
1439
  ["delete", "get", "head", "post", "put", "patch", "common"],
1502
- (f) => {
1503
- delete i[f];
1440
+ (p) => {
1441
+ delete o[p];
1504
1442
  }
1505
- ), n.headers = A.concat(o, i);
1443
+ ), n.headers = _.concat(i, o);
1506
1444
  const c = [];
1507
- let d = !0;
1445
+ let f = !0;
1508
1446
  this.interceptors.request.forEach(function(m) {
1509
- typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1447
+ typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1510
1448
  });
1511
- const l = [];
1449
+ const u = [];
1512
1450
  this.interceptors.response.forEach(function(m) {
1513
- l.push(m.fulfilled, m.rejected);
1451
+ u.push(m.fulfilled, m.rejected);
1514
1452
  });
1515
- let u, p = 0, w;
1516
- if (!d) {
1517
- const f = [st.bind(this), void 0];
1518
- for (f.unshift(...c), f.push(...l), w = f.length, u = Promise.resolve(n); p < w; )
1519
- u = u.then(f[p++], f[p++]);
1520
- return u;
1453
+ let l, d = 0, w;
1454
+ if (!f) {
1455
+ const p = [Me.bind(this), void 0];
1456
+ for (p.unshift.apply(p, c), p.push.apply(p, u), w = p.length, l = Promise.resolve(n); d < w; )
1457
+ l = l.then(p[d++], p[d++]);
1458
+ return l;
1521
1459
  }
1522
1460
  w = c.length;
1523
1461
  let g = n;
1524
- for (; p < w; ) {
1525
- const f = c[p++], m = c[p++];
1462
+ for (d = 0; d < w; ) {
1463
+ const p = c[d++], m = c[d++];
1526
1464
  try {
1527
- g = f(g);
1465
+ g = p(g);
1528
1466
  } catch (h) {
1529
1467
  m.call(this, h);
1530
1468
  break;
1531
1469
  }
1532
1470
  }
1533
1471
  try {
1534
- u = st.call(this, g);
1535
- } catch (f) {
1536
- return Promise.reject(f);
1472
+ l = Me.call(this, g);
1473
+ } catch (p) {
1474
+ return Promise.reject(p);
1537
1475
  }
1538
- for (p = 0, w = l.length; p < w; )
1539
- u = u.then(l[p++], l[p++]);
1540
- return u;
1476
+ for (d = 0, w = u.length; d < w; )
1477
+ l = l.then(u[d++], u[d++]);
1478
+ return l;
1541
1479
  }
1542
1480
  getUri(t) {
1543
- t = I(this.defaults, t);
1544
- const n = Ft(t.baseURL, t.url, t.allowAbsoluteUrls);
1545
- return kt(n, t.params, t.paramsSerializer);
1481
+ t = F(this.defaults, t);
1482
+ const n = yt(t.baseURL, t.url, t.allowAbsoluteUrls);
1483
+ return ft(n, t.params, t.paramsSerializer);
1546
1484
  }
1547
1485
  }
1548
1486
  a.forEach(["delete", "get", "head", "options"], function(t) {
1549
- B.prototype[t] = function(n, r) {
1550
- return this.request(I(r || {}, {
1487
+ L.prototype[t] = function(n, r) {
1488
+ return this.request(F(r || {}, {
1551
1489
  method: t,
1552
1490
  url: n,
1553
1491
  data: (r || {}).data
@@ -1556,44 +1494,44 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1556
1494
  });
1557
1495
  a.forEach(["post", "put", "patch"], function(t) {
1558
1496
  function n(r) {
1559
- return function(i, o, c) {
1560
- return this.request(I(c || {}, {
1497
+ return function(o, i, c) {
1498
+ return this.request(F(c || {}, {
1561
1499
  method: t,
1562
1500
  headers: r ? {
1563
1501
  "Content-Type": "multipart/form-data"
1564
1502
  } : {},
1565
- url: i,
1566
- data: o
1503
+ url: o,
1504
+ data: i
1567
1505
  }));
1568
1506
  };
1569
1507
  }
1570
- B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
1508
+ L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
1571
1509
  });
1572
- class ve {
1510
+ class xe {
1573
1511
  constructor(t) {
1574
1512
  if (typeof t != "function")
1575
1513
  throw new TypeError("executor must be a function.");
1576
1514
  let n;
1577
- this.promise = new Promise(function(i) {
1578
- n = i;
1515
+ this.promise = new Promise(function(o) {
1516
+ n = o;
1579
1517
  });
1580
1518
  const r = this;
1581
1519
  this.promise.then((s) => {
1582
1520
  if (!r._listeners) return;
1583
- let i = r._listeners.length;
1584
- for (; i-- > 0; )
1585
- r._listeners[i](s);
1521
+ let o = r._listeners.length;
1522
+ for (; o-- > 0; )
1523
+ r._listeners[o](s);
1586
1524
  r._listeners = null;
1587
1525
  }), this.promise.then = (s) => {
1588
- let i;
1589
- const o = new Promise((c) => {
1590
- r.subscribe(c), i = c;
1526
+ let o;
1527
+ const i = new Promise((c) => {
1528
+ r.subscribe(c), o = c;
1591
1529
  }).then(s);
1592
- return o.cancel = function() {
1593
- r.unsubscribe(i);
1594
- }, o;
1595
- }, t(function(i, o, c) {
1596
- r.reason || (r.reason = new z(i, o, c), n(r.reason));
1530
+ return i.cancel = function() {
1531
+ r.unsubscribe(o);
1532
+ }, i;
1533
+ }, t(function(o, i, c) {
1534
+ r.reason || (r.reason = new I(o, i, c), n(r.reason));
1597
1535
  });
1598
1536
  }
1599
1537
  /**
@@ -1635,22 +1573,22 @@ class ve {
1635
1573
  static source() {
1636
1574
  let t;
1637
1575
  return {
1638
- token: new ve(function(s) {
1576
+ token: new xe(function(s) {
1639
1577
  t = s;
1640
1578
  }),
1641
1579
  cancel: t
1642
1580
  };
1643
1581
  }
1644
1582
  }
1645
- function Cr(e) {
1583
+ function pr(e) {
1646
1584
  return function(n) {
1647
1585
  return e.apply(null, n);
1648
1586
  };
1649
1587
  }
1650
- function Pr(e) {
1588
+ function hr(e) {
1651
1589
  return a.isObject(e) && e.isAxiosError === !0;
1652
1590
  }
1653
- const _e = {
1591
+ const ge = {
1654
1592
  Continue: 100,
1655
1593
  SwitchingProtocols: 101,
1656
1594
  Processing: 102,
@@ -1713,45 +1651,39 @@ const _e = {
1713
1651
  InsufficientStorage: 507,
1714
1652
  LoopDetected: 508,
1715
1653
  NotExtended: 510,
1716
- NetworkAuthenticationRequired: 511,
1717
- WebServerIsDown: 521,
1718
- ConnectionTimedOut: 522,
1719
- OriginIsUnreachable: 523,
1720
- TimeoutOccurred: 524,
1721
- SslHandshakeFailed: 525,
1722
- InvalidSslCertificate: 526
1654
+ NetworkAuthenticationRequired: 511
1723
1655
  };
1724
- Object.entries(_e).forEach(([e, t]) => {
1725
- _e[t] = e;
1656
+ Object.entries(ge).forEach(([e, t]) => {
1657
+ ge[t] = e;
1726
1658
  });
1727
- function It(e) {
1728
- const t = new B(e), n = yt(B.prototype.request, t);
1729
- return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1730
- return It(I(e, s));
1659
+ function St(e) {
1660
+ const t = new L(e), n = Ye(L.prototype.request, t);
1661
+ return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1662
+ return St(F(e, s));
1731
1663
  }, n;
1732
1664
  }
1733
- const b = It(te);
1734
- b.Axios = B;
1735
- b.CanceledError = z;
1736
- b.CancelToken = ve;
1737
- b.isCancel = Ut;
1738
- b.VERSION = Bt;
1739
- b.toFormData = me;
1665
+ const b = St(W);
1666
+ b.Axios = L;
1667
+ b.CanceledError = I;
1668
+ b.CancelToken = xe;
1669
+ b.isCancel = ht;
1670
+ b.VERSION = Rt;
1671
+ b.toFormData = ie;
1740
1672
  b.AxiosError = y;
1741
1673
  b.Cancel = b.CanceledError;
1742
1674
  b.all = function(t) {
1743
1675
  return Promise.all(t);
1744
1676
  };
1745
- b.spread = Cr;
1746
- b.isAxiosError = Pr;
1747
- b.mergeConfig = I;
1748
- b.AxiosHeaders = A;
1749
- b.formToJSON = (e) => Pt(a.isHTMLForm(e) ? new FormData(e) : e);
1750
- b.getAdapter = vt.getAdapter;
1751
- b.HttpStatusCode = _e;
1677
+ b.spread = pr;
1678
+ b.isAxiosError = hr;
1679
+ b.mergeConfig = F;
1680
+ b.AxiosHeaders = _;
1681
+ b.formToJSON = (e) => pt(a.isHTMLForm(e) ? new FormData(e) : e);
1682
+ b.getAdapter = Et.getAdapter;
1683
+ b.HttpStatusCode = ge;
1752
1684
  b.default = b;
1753
1685
  /*! js-cookie v3.0.5 | MIT */
1754
- function ie(e) {
1686
+ function Q(e) {
1755
1687
  for (var t = 1; t < arguments.length; t++) {
1756
1688
  var n = arguments[t];
1757
1689
  for (var r in n)
@@ -1759,7 +1691,7 @@ function ie(e) {
1759
1691
  }
1760
1692
  return e;
1761
1693
  }
1762
- var Ur = {
1694
+ var mr = {
1763
1695
  read: function(e) {
1764
1696
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1765
1697
  },
@@ -1770,48 +1702,48 @@ var Ur = {
1770
1702
  );
1771
1703
  }
1772
1704
  };
1773
- function xe(e, t) {
1774
- function n(s, i, o) {
1705
+ function be(e, t) {
1706
+ function n(s, o, i) {
1775
1707
  if (!(typeof document > "u")) {
1776
- o = ie({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1708
+ i = Q({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1777
1709
  var c = "";
1778
- for (var d in o)
1779
- o[d] && (c += "; " + d, o[d] !== !0 && (c += "=" + o[d].split(";")[0]));
1780
- return document.cookie = s + "=" + e.write(i, s) + c;
1710
+ for (var f in i)
1711
+ i[f] && (c += "; " + f, i[f] !== !0 && (c += "=" + i[f].split(";")[0]));
1712
+ return document.cookie = s + "=" + e.write(o, s) + c;
1781
1713
  }
1782
1714
  }
1783
1715
  function r(s) {
1784
1716
  if (!(typeof document > "u" || arguments.length && !s)) {
1785
- for (var i = document.cookie ? document.cookie.split("; ") : [], o = {}, c = 0; c < i.length; c++) {
1786
- var d = i[c].split("="), l = d.slice(1).join("=");
1717
+ for (var o = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < o.length; c++) {
1718
+ var f = o[c].split("="), u = f.slice(1).join("=");
1787
1719
  try {
1788
- var u = decodeURIComponent(d[0]);
1789
- if (o[u] = e.read(l, u), s === u)
1720
+ var l = decodeURIComponent(f[0]);
1721
+ if (i[l] = e.read(u, l), s === l)
1790
1722
  break;
1791
1723
  } catch {
1792
1724
  }
1793
1725
  }
1794
- return s ? o[s] : o;
1726
+ return s ? i[s] : i;
1795
1727
  }
1796
1728
  }
1797
1729
  return Object.create(
1798
1730
  {
1799
1731
  set: n,
1800
1732
  get: r,
1801
- remove: function(s, i) {
1733
+ remove: function(s, o) {
1802
1734
  n(
1803
1735
  s,
1804
1736
  "",
1805
- ie({}, i, {
1737
+ Q({}, o, {
1806
1738
  expires: -1
1807
1739
  })
1808
1740
  );
1809
1741
  },
1810
1742
  withAttributes: function(s) {
1811
- return xe(this.converter, ie({}, this.attributes, s));
1743
+ return be(this.converter, Q({}, this.attributes, s));
1812
1744
  },
1813
1745
  withConverter: function(s) {
1814
- return xe(ie({}, this.converter, s), this.attributes);
1746
+ return be(Q({}, this.converter, s), this.attributes);
1815
1747
  }
1816
1748
  },
1817
1749
  {
@@ -1820,99 +1752,99 @@ function xe(e, t) {
1820
1752
  }
1821
1753
  );
1822
1754
  }
1823
- var Nr = xe(Ur, { path: "/" }), it;
1824
- const jt = typeof window < "u", Fr = (e) => typeof e == "string", at = () => +Date.now(), ke = () => {
1755
+ var yr = be(mr, { path: "/" }), ze;
1756
+ const Tt = typeof window < "u", wr = (e) => typeof e == "string", $e = () => +Date.now(), Ee = () => {
1825
1757
  };
1826
- jt && ((it = window == null ? void 0 : window.navigator) != null && it.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1827
- function Be(e) {
1828
- return typeof e == "function" ? e() : Wt(e);
1758
+ Tt && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1759
+ function ke(e) {
1760
+ return typeof e == "function" ? e() : Pt(e);
1829
1761
  }
1830
- function Lr(e, t) {
1762
+ function gr(e, t) {
1831
1763
  function n(...r) {
1832
- return new Promise((s, i) => {
1833
- Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(i);
1764
+ return new Promise((s, o) => {
1765
+ Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(o);
1834
1766
  });
1835
1767
  }
1836
1768
  return n;
1837
1769
  }
1838
- function Dr(e, t = !0, n = !0, r = !1) {
1839
- let s = 0, i, o = !0, c = ke, d;
1840
- const l = () => {
1841
- i && (clearTimeout(i), i = void 0, c(), c = ke);
1770
+ function br(e, t = !0, n = !0, r = !1) {
1771
+ let s = 0, o, i = !0, c = Ee, f;
1772
+ const u = () => {
1773
+ o && (clearTimeout(o), o = void 0, c(), c = Ee);
1842
1774
  };
1843
- return (p) => {
1844
- const w = Be(e), g = Date.now() - s, f = () => d = p();
1845
- return l(), w <= 0 ? (s = Date.now(), f()) : (g > w && (n || !o) ? (s = Date.now(), f()) : t && (d = new Promise((m, h) => {
1846
- c = r ? h : m, i = setTimeout(() => {
1847
- s = Date.now(), o = !0, m(f()), l();
1775
+ return (d) => {
1776
+ const w = ke(e), g = Date.now() - s, p = () => f = d();
1777
+ return u(), w <= 0 ? (s = Date.now(), p()) : (g > w && (n || !i) ? (s = Date.now(), p()) : t && (f = new Promise((m, h) => {
1778
+ c = r ? h : m, o = setTimeout(() => {
1779
+ s = Date.now(), i = !0, m(p()), u();
1848
1780
  }, Math.max(0, w - g));
1849
- })), !n && !i && (i = setTimeout(() => o = !0, w)), o = !1, d);
1781
+ })), !n && !o && (o = setTimeout(() => i = !0, w)), i = !1, f);
1850
1782
  };
1851
1783
  }
1852
- function vr(e) {
1784
+ function Er(e) {
1853
1785
  return e;
1854
1786
  }
1855
- function Br(e) {
1856
- return Kt() ? (Qt(e), !0) : !1;
1787
+ function Rr(e) {
1788
+ return Ut() ? (Nt(e), !0) : !1;
1857
1789
  }
1858
- function Ir(e) {
1790
+ function Sr(e) {
1859
1791
  var t;
1860
- const n = Be(e);
1792
+ const n = ke(e);
1861
1793
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
1862
1794
  }
1863
- const qt = jt ? window : void 0;
1864
- function ct(...e) {
1795
+ const Ot = Tt ? window : void 0;
1796
+ function Je(...e) {
1865
1797
  let t, n, r, s;
1866
- if (Fr(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = qt) : [t, n, r, s] = e, !t)
1867
- return ke;
1798
+ if (wr(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = Ot) : [t, n, r, s] = e, !t)
1799
+ return Ee;
1868
1800
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1869
- const i = [], o = () => {
1870
- i.forEach((u) => u()), i.length = 0;
1871
- }, c = (u, p, w, g) => (u.addEventListener(p, w, g), () => u.removeEventListener(p, w, g)), d = Pe(() => [Ir(t), Be(s)], ([u, p]) => {
1872
- o(), u && i.push(...n.flatMap((w) => r.map((g) => c(u, w, g, p))));
1873
- }, { immediate: !0, flush: "post" }), l = () => {
1874
- d(), o();
1801
+ const o = [], i = () => {
1802
+ o.forEach((l) => l()), o.length = 0;
1803
+ }, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Se(() => [Sr(t), ke(s)], ([l, d]) => {
1804
+ i(), l && o.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
1805
+ }, { immediate: !0, flush: "post" }), u = () => {
1806
+ f(), i();
1875
1807
  };
1876
- return Br(l), l;
1808
+ return Rr(u), u;
1877
1809
  }
1878
- const ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, lt = "__vueuse_ssr_handlers__";
1879
- ut[lt] = ut[lt] || {};
1880
- const jr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], qr = 6e4;
1881
- function Mr(e = qr, t = {}) {
1810
+ const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__";
1811
+ Ve[We] = Ve[We] || {};
1812
+ const Tr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Or = 6e4;
1813
+ function Ar(e = Or, t = {}) {
1882
1814
  const {
1883
1815
  initialState: n = !1,
1884
1816
  listenForVisibilityChange: r = !0,
1885
- events: s = jr,
1886
- window: i = qt,
1887
- eventFilter: o = Dr(50)
1888
- } = t, c = le(n), d = le(at());
1889
- let l;
1890
- const u = Lr(o, () => {
1891
- c.value = !1, d.value = at(), clearTimeout(l), l = setTimeout(() => c.value = !0, e);
1817
+ events: s = Tr,
1818
+ window: o = Ot,
1819
+ eventFilter: i = br(50)
1820
+ } = t, c = Y(n), f = Y($e());
1821
+ let u;
1822
+ const l = gr(i, () => {
1823
+ c.value = !1, f.value = $e(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
1892
1824
  });
1893
- if (i) {
1894
- const p = i.document;
1825
+ if (o) {
1826
+ const d = o.document;
1895
1827
  for (const w of s)
1896
- ct(i, w, u, { passive: !0 });
1897
- r && ct(p, "visibilitychange", () => {
1898
- p.hidden || u();
1828
+ Je(o, w, l, { passive: !0 });
1829
+ r && Je(d, "visibilitychange", () => {
1830
+ d.hidden || l();
1899
1831
  });
1900
1832
  }
1901
- return l = setTimeout(() => c.value = !0, e), { idle: c, lastActive: d };
1833
+ return u = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1902
1834
  }
1903
- var ft;
1835
+ var Ke;
1904
1836
  (function(e) {
1905
1837
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1906
- })(ft || (ft = {}));
1907
- var Hr = Object.defineProperty, dt = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, zr = Object.prototype.propertyIsEnumerable, pt = (e, t, n) => t in e ? Hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Jr = (e, t) => {
1838
+ })(Ke || (Ke = {}));
1839
+ var _r = Object.defineProperty, Qe = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Cr = (e, t) => {
1908
1840
  for (var n in t)
1909
- $r.call(t, n) && pt(e, n, t[n]);
1910
- if (dt)
1911
- for (var n of dt(t))
1912
- zr.call(t, n) && pt(e, n, t[n]);
1841
+ xr.call(t, n) && Xe(e, n, t[n]);
1842
+ if (Qe)
1843
+ for (var n of Qe(t))
1844
+ kr.call(t, n) && Xe(e, n, t[n]);
1913
1845
  return e;
1914
1846
  };
1915
- const Vr = {
1847
+ const Pr = {
1916
1848
  easeInSine: [0.12, 0, 0.39, 0],
1917
1849
  easeOutSine: [0.61, 1, 0.88, 1],
1918
1850
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1938,27 +1870,27 @@ const Vr = {
1938
1870
  easeOutBack: [0.34, 1.56, 0.64, 1],
1939
1871
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1940
1872
  };
1941
- Jr({
1942
- linear: vr
1943
- }, Vr);
1944
- let Ce;
1945
- const Mt = { triggerProxySso: "triggerProxySso" }, Wr = () => {
1946
- Ce = (e) => {
1873
+ Cr({
1874
+ linear: Er
1875
+ }, Pr);
1876
+ let Re;
1877
+ const At = { triggerProxySso: "triggerProxySso" }, Ur = () => {
1878
+ Re = (e) => {
1947
1879
  var n;
1948
1880
  const { origin: t } = new URL(location.href);
1949
1881
  (n = window.top) == null || n.postMessage(
1950
- { type: Mt.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1882
+ { type: At.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1951
1883
  t
1952
1884
  );
1953
1885
  };
1954
- }, Kr = (e) => {
1886
+ }, Nr = (e) => {
1955
1887
  window.top === window.self && window.addEventListener("message", (t) => {
1956
1888
  const { type: n, data: r } = t.data;
1957
- n === Mt.triggerProxySso && (e == null || e(r));
1889
+ n === At.triggerProxySso && (e == null || e(r));
1958
1890
  });
1959
1891
  };
1960
- window.top !== window.self && Wr();
1961
- let Ht = (e = 21) => {
1892
+ window.top !== window.self && Ur();
1893
+ let _t = (e = 21) => {
1962
1894
  let t = "", n = crypto.getRandomValues(new Uint8Array(e));
1963
1895
  for (; e--; ) {
1964
1896
  let r = n[e] & 63;
@@ -1966,131 +1898,131 @@ let Ht = (e = 21) => {
1966
1898
  }
1967
1899
  return t;
1968
1900
  };
1969
- const $t = (e) => new URL(location.href).searchParams.get(e), H = {
1901
+ const xt = (e) => new URL(location.href).searchParams.get(e), v = {
1970
1902
  oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
1971
1903
  // 重定向到登录页
1972
1904
  logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
1973
1905
  // 清除登录信息
1974
1906
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
1975
1907
  // 通过code获取token
1976
- }, { baseURL: ht, noRedireLogin: Qr = !1 } = Ue(), Q = location.origin + "/home", q = {
1908
+ }, { baseURL: Ge, noRedireLogin: Lr = !1 } = Te(), z = location.origin + "/home", D = {
1977
1909
  response_type: "code",
1978
1910
  scope: "sever",
1979
1911
  client_id: "sys",
1980
- client_secret: Xt("das123"),
1912
+ client_secret: Lt("das123"),
1981
1913
  state: +/* @__PURE__ */ new Date()
1982
- }, Xr = () => {
1983
- const e = mt(location.href, "redirect_url") || "";
1914
+ }, Fr = () => {
1915
+ const e = Ze(location.href, "redirect_url") || "";
1984
1916
  if (e)
1985
1917
  window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
1986
1918
  else {
1987
1919
  const t = ["code", "state", "kingdee_token", "redirect_url"];
1988
- window.history.replaceState({}, "", Gt(t));
1920
+ window.history.replaceState({}, "", Ft(t));
1989
1921
  }
1990
- }, zt = le(!1), Jt = (e) => {
1922
+ }, kt = Y(!1), Ct = (e) => {
1991
1923
  if (e <= 0) return;
1992
- const { idle: t } = Mr(e);
1993
- Pe(
1924
+ const { idle: t } = Ar(e);
1925
+ Se(
1994
1926
  () => t.value,
1995
1927
  (n) => {
1996
- n === !0 && (zt.value = !0);
1928
+ n === !0 && (kt.value = !0);
1997
1929
  }
1998
1930
  );
1999
1931
  };
2000
- localStorage.getItem("idelTime") && Jt(Number(localStorage.getItem("idelTime")));
2001
- const Gr = async () => {
2002
- const e = $t("code") || "";
2003
- if (!e) return K();
2004
- const t = mt(location.href, "kingdee_token") || "";
1932
+ localStorage.getItem("idelTime") && Ct(Number(localStorage.getItem("idelTime")));
1933
+ const Dr = async () => {
1934
+ const e = xt("code") || "";
1935
+ if (!e) return M();
1936
+ const t = Ze(location.href, "kingdee_token") || "";
2005
1937
  let n = {};
2006
1938
  const r = {
2007
1939
  grant_type: "authorization_code",
2008
1940
  code: e,
2009
- client_id: q.client_id,
2010
- client_secret: q.client_secret,
2011
- redirect_uri: Q,
1941
+ client_id: D.client_id,
1942
+ client_secret: D.client_secret,
1943
+ redirect_uri: z,
2012
1944
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
2013
- nonce: Ht()
1945
+ nonce: _t()
2014
1946
  };
2015
1947
  t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
2016
1948
  try {
2017
- await b.create().get(H.token, { baseURL: ht });
1949
+ await b.create().get(v.token, { baseURL: Ge });
2018
1950
  } catch {
2019
1951
  }
2020
1952
  try {
2021
1953
  n = await b.create().post(
2022
- H.token,
1954
+ v.token,
2023
1955
  {},
2024
1956
  {
2025
- baseURL: ht,
1957
+ baseURL: Ge,
2026
1958
  params: r,
2027
1959
  headers: {
2028
1960
  "Content-Type": "application/x-www-form-urlencoded",
2029
- "csrf-token": Nr.get("csrf-token")
1961
+ "csrf-token": yr.get("csrf-token")
2030
1962
  }
2031
1963
  }
2032
1964
  );
2033
- const { access_token: s = "", expires_in: i = 0, refresh_token: o = "", refresh_exp: c = 0 } = n.data, d = {
1965
+ const { access_token: s = "", expires_in: o = 0, refresh_token: i = "", refresh_exp: c = 0 } = n.data, f = {
2034
1966
  accessToken: s,
2035
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
2036
- refreshToken: o,
1967
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(o) * 1e3,
1968
+ refreshToken: i,
2037
1969
  info: n.data
2038
1970
  };
2039
- G().save(d);
2040
- const l = Number(c) - (/* @__PURE__ */ new Date()).getTime();
2041
- return l && l > 0 && (Jt(l), l && localStorage.setItem("idelTime", l.toString())), Xr(), s;
1971
+ J().save(f);
1972
+ const u = Number(c) - (/* @__PURE__ */ new Date()).getTime();
1973
+ return u && u > 0 && (Ct(u), u && localStorage.setItem("idelTime", u.toString())), Fr(), s;
2042
1974
  } catch {
2043
- return X({ ...q, redirect_uri: Q });
1975
+ return $({ ...D, redirect_uri: z });
2044
1976
  }
2045
- }, W = le(!1), os = async (e) => {
1977
+ }, q = Y(!1), zr = async (e) => {
2046
1978
  if (e.public) return "";
2047
- if (zt.value) return X({ ...q, redirect_uri: Q });
2048
- if (W.value)
1979
+ if (kt.value) return $({ ...D, redirect_uri: z });
1980
+ if (q.value)
2049
1981
  return await new Promise(async (s) => {
2050
- Pe(
2051
- () => W.value,
2052
- (i) => {
2053
- if (!i) {
2054
- const o = K();
2055
- s(o);
1982
+ Se(
1983
+ () => q.value,
1984
+ (o) => {
1985
+ if (!o) {
1986
+ const i = M();
1987
+ s(i);
2056
1988
  }
2057
1989
  }
2058
1990
  );
2059
1991
  });
2060
- const { accessTokenExpiredAt: t } = G().getData(), n = $t("code") || "";
2061
- if ((!K() || t === 0) && !n)
2062
- return X({ ...q, redirect_uri: Q });
2063
- let r = K();
2064
- W.value = !0;
1992
+ const { accessTokenExpiredAt: t } = J().getData(), n = xt("code") || "";
1993
+ if ((!M() || t === 0) && !n)
1994
+ return $({ ...D, redirect_uri: z });
1995
+ let r = M();
1996
+ q.value = !0;
2065
1997
  try {
2066
- typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await Zr(q)), r = await Gr(), W.value = !1;
1998
+ typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await vr(D)), r = await Dr(), q.value = !1;
2067
1999
  } catch {
2068
- W.value = !1;
2000
+ q.value = !1;
2069
2001
  }
2070
2002
  return r;
2071
- }, X = (e) => {
2072
- if (Qr) return;
2073
- const { baseURL: t, ssoLocale: n } = Ue();
2074
- if (Ce) return Ce(e);
2003
+ }, $ = (e) => {
2004
+ if (Lr) return;
2005
+ const { baseURL: t, ssoLocale: n } = Te();
2006
+ if (Re) return Re(e);
2075
2007
  e.logout = "true", n && (e.locale = "locale");
2076
- const r = Object.keys(e).filter((i) => i !== "client_secret").map((i) => `${i}=${e[i]}`).join("&"), s = `${t}${H.oauth}?${r}`;
2077
- localStorage.removeItem("idelTime"), sessionStorage.clear(), G().remove();
2008
+ const r = Object.keys(e).filter((o) => o !== "client_secret").map((o) => `${o}=${e[o]}`).join("&"), s = `${t}${v.oauth}?${r}`;
2009
+ localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove();
2078
2010
  try {
2079
- b.create().get(H.logoutCurpage, { baseURL: t });
2011
+ b.create().get(v.logoutCurpage, { baseURL: t });
2080
2012
  } catch {
2081
2013
  }
2082
2014
  window.__isAutoCloseApp = !1, location.replace(s);
2083
2015
  };
2084
- Kr(X);
2085
- const Zr = async (e) => {
2086
- const { baseURL: t } = Ue(), { refreshToken: n } = G().getData();
2016
+ Nr($);
2017
+ const vr = async (e) => {
2018
+ const { baseURL: t } = Te(), { refreshToken: n } = J().getData();
2087
2019
  try {
2088
- await b.create().get(H.token, { baseURL: t });
2020
+ await b.create().get(v.token, { baseURL: t });
2089
2021
  } catch {
2090
2022
  }
2091
2023
  try {
2092
2024
  const r = await b.create().post(
2093
- H.token,
2025
+ v.token,
2094
2026
  {},
2095
2027
  {
2096
2028
  baseURL: t,
@@ -2100,44 +2032,44 @@ const Zr = async (e) => {
2100
2032
  client_id: e.client_id,
2101
2033
  client_secret: e.client_secret,
2102
2034
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
2103
- nonce: Ht()
2035
+ nonce: _t()
2104
2036
  }
2105
2037
  }
2106
- ), { access_token: s = "", expires_in: i = 0, refresh_token: o = "" } = r.data, c = {
2038
+ ), { access_token: s = "", expires_in: o = 0, refresh_token: i = "" } = r.data, c = {
2107
2039
  accessToken: s,
2108
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
2109
- refreshToken: o,
2040
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(o) * 1e3,
2041
+ refreshToken: i,
2110
2042
  info: r.data
2111
2043
  };
2112
- return G().save(c), s;
2044
+ return J().save(c), s;
2113
2045
  } catch {
2114
- return X({ ...e, redirect_uri: Q });
2046
+ return $({ ...e, redirect_uri: z });
2115
2047
  }
2116
- }, G = () => ({
2048
+ }, J = () => ({
2117
2049
  getData: () => ({
2118
- accessToken: K(),
2119
- accessTokenExpiredAt: be("accessTokenExpiredAt") ? Number(be("accessTokenExpiredAt")) : "",
2120
- refreshToken: be("refreshToken")
2050
+ accessToken: M(),
2051
+ accessTokenExpiredAt: ue("accessTokenExpiredAt") ? Number(ue("accessTokenExpiredAt")) : "",
2052
+ refreshToken: ue("refreshToken")
2121
2053
  }),
2122
2054
  save: (e) => {
2123
- Zt(
2055
+ Dt(
2124
2056
  e.accessToken || "",
2125
2057
  {
2126
2058
  accessTokenExpiredAt: e.accessTokenExpiredAt,
2127
2059
  refreshToken: e.refreshToken
2128
2060
  }
2129
- ), en(e);
2061
+ ), Bt(e);
2130
2062
  },
2131
2063
  remove: () => {
2132
- Yt(), tn();
2064
+ vt(), It();
2133
2065
  }
2134
2066
  });
2135
2067
  export {
2136
- $t as getQuery,
2137
- os as getToken,
2138
- Gr as getTokenFromCode,
2139
- q as getTokenParams,
2140
- X as login,
2141
- Q as real_uri,
2142
- G as tokenStorage
2068
+ xt as getQuery,
2069
+ zr as getToken,
2070
+ Dr as getTokenFromCode,
2071
+ D as getTokenParams,
2072
+ $ as login,
2073
+ z as real_uri,
2074
+ J as tokenStorage
2143
2075
  };