@das-fed/utils 7.0.7-hot.9 → 7.0.8

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