@das-fed/upf-utils 6.4.0-dev.170 → 6.4.0-dev.172

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 (123) hide show
  1. package/api-services/es5.js +4661 -0
  2. package/api-services/i18n/es5.js +58 -0
  3. package/api-services/index.js +593 -611
  4. package/api-services/index.js.gz +0 -0
  5. package/api-services/modules/app-manage/index.js +847 -883
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/index.js +701 -715
  8. package/api-services/modules/authentication/index.js.gz +0 -0
  9. package/api-services/modules/bems/index.js +882 -882
  10. package/api-services/modules/bems/index.js.gz +0 -0
  11. package/api-services/modules/contract/index.js +880 -880
  12. package/api-services/modules/contract/index.js.gz +0 -0
  13. package/api-services/modules/duty-manage/index.js +473 -491
  14. package/api-services/modules/duty-manage/index.js.gz +0 -0
  15. package/api-services/modules/enterpriseright/index.js +490 -508
  16. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  17. package/api-services/modules/es5.js +4619 -0
  18. package/api-services/modules/file/index.js +942 -978
  19. package/api-services/modules/file/index.js.gz +0 -0
  20. package/api-services/modules/gateway-edge/index.js +701 -715
  21. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  22. package/api-services/modules/index.js +651 -669
  23. package/api-services/modules/index.js.gz +0 -0
  24. package/api-services/modules/iot/index.js +1104 -1140
  25. package/api-services/modules/iot/index.js.gz +0 -0
  26. package/api-services/modules/justauth/index.js +492 -510
  27. package/api-services/modules/justauth/index.js.gz +0 -0
  28. package/api-services/modules/knowledge/index.js +698 -712
  29. package/api-services/modules/knowledge/index.js.gz +0 -0
  30. package/api-services/modules/link/index.js +880 -880
  31. package/api-services/modules/link/index.js.gz +0 -0
  32. package/api-services/modules/permission/index.js +490 -508
  33. package/api-services/modules/permission/index.js.gz +0 -0
  34. package/api-services/modules/platformManage/index.js +463 -481
  35. package/api-services/modules/platformManage/index.js.gz +0 -0
  36. package/api-services/modules/portal/index.js +880 -880
  37. package/api-services/modules/portal/index.js.gz +0 -0
  38. package/api-services/modules/space-manage/index.js +487 -505
  39. package/api-services/modules/space-manage/index.js.gz +0 -0
  40. package/api-services/modules/super-admin/index.js +881 -881
  41. package/api-services/modules/super-admin/index.js.gz +0 -0
  42. package/api-services/modules/supplier/index.js +483 -501
  43. package/api-services/modules/supplier/index.js.gz +0 -0
  44. package/api-services/modules/supplychain-manage/index.js +490 -508
  45. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  46. package/api-services/modules/systemConfiguration/index.js +880 -880
  47. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  48. package/api-services/modules/tool/index.js +880 -880
  49. package/api-services/modules/tool/index.js.gz +0 -0
  50. package/api-services/src/create-service/index.js +865 -901
  51. package/api-services/src/create-service/index.js.gz +0 -0
  52. package/atob/es5.js +12 -0
  53. package/common-info/es5.js +219 -0
  54. package/common-info/getIframeUrl/es5.js +18 -0
  55. package/common-info/getInfoFromUrl/es5.js +94 -0
  56. package/common-info/index.js +18 -18
  57. package/common-info/index.js.gz +0 -0
  58. package/common-info/set-personal-info/es5.js +2212 -0
  59. package/common-info/set-personal-info/index.js +172 -189
  60. package/common-info/set-personal-info/index.js.gz +0 -0
  61. package/common-tools/arr-tools/es5.js +14 -0
  62. package/common-tools/calc-text-width/es5.js +10 -0
  63. package/common-tools/date-format/es5.js +20 -0
  64. package/common-tools/es5.js +128 -0
  65. package/common-tools/extract-file-name/es5.js +2213 -0
  66. package/common-tools/extract-file-name/index.js +138 -155
  67. package/common-tools/extract-file-name/index.js.gz +0 -0
  68. package/common-tools/get-file-extension/es5.js +7 -0
  69. package/common-tools/get-url-params/es5.js +109 -0
  70. package/common-tools/handle-data/es5.js +170 -0
  71. package/common-tools/handle-data/index.js +28 -28
  72. package/common-tools/handle-data/index.js.gz +0 -0
  73. package/common-tools/nest-tree-format/es5.js +58 -0
  74. package/common-tools/obj-tools/es5.js +15 -0
  75. package/common-tools/platform-tools/es5.js +24 -0
  76. package/common-tools/queue-promise/es5.js +15 -0
  77. package/common-tools/setHtmlMinWH/es5.js +8 -0
  78. package/common-tools/update-browser-title/es5.js +56 -0
  79. package/common-tools/update-fav-icon/es5.js +76 -0
  80. package/config/es5.js +17 -0
  81. package/create-api-service/check-token/es5.js +2307 -0
  82. package/create-api-service/check-token/index.js +158 -175
  83. package/create-api-service/check-token/index.js.gz +0 -0
  84. package/create-api-service/es5.js +3949 -0
  85. package/create-api-service/i18n/es5.js +38 -0
  86. package/create-api-service/index.js +503 -521
  87. package/create-api-service/index.js.gz +0 -0
  88. package/create-api-service/proxy-sso/es5.js +35 -0
  89. package/create-api-service/sso/es5.js +2823 -0
  90. package/create-api-service/sso/index.js +309 -327
  91. package/create-api-service/sso/index.js.gz +0 -0
  92. package/curring-http/es5.js +2915 -0
  93. package/curring-http/index.js +285 -303
  94. package/curring-http/index.js.gz +0 -0
  95. package/dimple-canvas/es5.js +15 -0
  96. package/directive/auth/es5.js +96 -0
  97. package/directive/clickOutside/es5.js +87 -0
  98. package/directive/es5.js +23 -0
  99. package/directive/hoverInside/es5.js +61 -0
  100. package/directive/utils/es5.js +38 -0
  101. package/dom-check-in/es5.js +13 -0
  102. package/dom-watcher/es5.js +15 -0
  103. package/hooks/use-get-auth/es5.js +201 -0
  104. package/hooks/use-get-auth/index.js +22 -22
  105. package/hooks/use-get-auth/index.js.gz +0 -0
  106. package/load-js/es5.js +15 -0
  107. package/nextTiken/es5.js +70 -0
  108. package/oss/es5.js +13 -0
  109. package/package.json +17 -4
  110. package/pinyin-first-character/es5.js +9313 -0
  111. package/pinyin-first-character/index.js +24 -24
  112. package/pinyin-first-character/index.js.gz +0 -0
  113. package/process-engine-info/es5.js +20 -0
  114. package/pure-image-src/es5.js +30 -0
  115. package/size-watcher/es5.js +35 -0
  116. package/style/es5.js +143 -0
  117. package/token-tools/es5.js +26 -0
  118. package/use-low-code/es5.js +117 -0
  119. package/use-low-code/index.js +2 -2
  120. package/use-low-code/index.js.gz +0 -0
  121. package/vue/es5.js +9 -0
  122. package/webSocket-service/es5.js +122 -0
  123. package/with-install/es5.js +8 -0
@@ -1,32 +1,32 @@
1
- import { unref as Nt, getCurrentScope as Ut, onScopeDispose as Lt, ref as Y, watch as Se } from "vue";
1
+ import { unref as Ut, getCurrentScope as Nt, onScopeDispose as Lt, ref as Y, watch as Se } from "vue";
2
2
  import { encryption as Ft } from "@das-fed/upf-utils/atob";
3
3
  import { getConfig as Te } from "@das-fed/upf-utils/config";
4
- import { getUrlParams as Ge, funcUrlDel as Dt } from "@das-fed/upf-utils/common-tools";
5
- import { getAccessToken as M, removeAccessToken as vt, setAccessToken as Bt, getAccessTokenInfo as le } from "@das-fed/upf-utils/token-tools";
6
- import { removeProcessEngineToken as It, setProcessEngineToken as jt } from "@das-fed/upf-utils/process-engine-info";
7
- import { setPersonalInfo as Ze } from "@das-fed/upf-utils/common-info/set-personal-info";
8
- function Ye(e, t) {
4
+ import { getUrlParams as Ze, funcUrlDel as Dt } from "@das-fed/upf-utils/common-tools";
5
+ import { getAccessToken as M, getAccessTokenInfo as ue, setAccessToken as vt, removeAccessToken as Bt } from "@das-fed/upf-utils/token-tools";
6
+ import { setProcessEngineToken as It, removeProcessEngineToken as jt } from "@das-fed/upf-utils/process-engine-info";
7
+ import { setPersonalInfo as Ye } from "@das-fed/upf-utils/common-info/set-personal-info";
8
+ function et(e, t) {
9
9
  return function() {
10
10
  return e.apply(t, arguments);
11
11
  };
12
12
  }
13
- const { toString: qt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag: et } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
13
+ const { toString: qt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag: tt } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
14
14
  const n = qt.call(t);
15
15
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
16
16
  })(/* @__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");
17
17
  function Mt(e) {
18
18
  return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19
19
  }
20
- const tt = x("ArrayBuffer");
20
+ const nt = x("ArrayBuffer");
21
21
  function Ht(e) {
22
22
  let t;
23
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tt(e.buffer), t;
23
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && nt(e.buffer), t;
24
24
  }
25
- const $t = se("string"), A = se("function"), nt = se("number"), oe = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, X = (e) => {
25
+ const zt = se("string"), A = se("function"), rt = se("number"), oe = (e) => e !== null && typeof e == "object", $t = (e) => e === !0 || e === !1, X = (e) => {
26
26
  if (re(e) !== "object")
27
27
  return !1;
28
28
  const t = Oe(e);
29
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(et in e) && !(ne in e);
29
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(tt in e) && !(ne in e);
30
30
  }, Jt = x("Date"), Vt = x("File"), Wt = x("Blob"), Kt = x("FileList"), Qt = (e) => oe(e) && A(e.pipe), Xt = (e) => {
31
31
  let t;
32
32
  return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
@@ -46,7 +46,7 @@ function V(e, t, { allOwnKeys: n = !1 } = {}) {
46
46
  c = o[r], t.call(null, e[c], c, e);
47
47
  }
48
48
  }
49
- function rt(e, t) {
49
+ function st(e, t) {
50
50
  t = t.toLowerCase();
51
51
  const n = Object.keys(e);
52
52
  let r = n.length, s;
@@ -55,10 +55,10 @@ function rt(e, t) {
55
55
  return s;
56
56
  return null;
57
57
  }
58
- const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, st = (e) => !H(e) && e !== U;
58
+ const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ot = (e) => !H(e) && e !== N;
59
59
  function pe() {
60
- const { caseless: e } = st(this) && this || {}, t = {}, n = (r, s) => {
61
- const o = e && rt(t, s) || s;
60
+ const { caseless: e } = ot(this) && this || {}, t = {}, n = (r, s) => {
61
+ const o = e && st(t, s) || s;
62
62
  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;
63
63
  };
64
64
  for (let r = 0, s = arguments.length; r < s; r++)
@@ -66,7 +66,7 @@ function pe() {
66
66
  return t;
67
67
  }
68
68
  const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
69
- n && A(s) ? e[o] = Ye(s, n) : e[o] = s;
69
+ n && A(s) ? e[o] = et(s, n) : e[o] = s;
70
70
  }, { allOwnKeys: r }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), on = (e, t, n, r) => {
71
71
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
72
72
  value: t.prototype
@@ -85,16 +85,16 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
85
85
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
86
86
  const r = e.indexOf(t, n);
87
87
  return r !== -1 && r === n;
88
- }, ln = (e) => {
88
+ }, un = (e) => {
89
89
  if (!e) return null;
90
90
  if (B(e)) return e;
91
91
  let t = e.length;
92
- if (!nt(t)) return null;
92
+ if (!rt(t)) return null;
93
93
  const n = new Array(t);
94
94
  for (; t-- > 0; )
95
95
  n[t] = e[t];
96
96
  return n;
97
- }, un = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), fn = (e, t) => {
97
+ }, ln = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), fn = (e, t) => {
98
98
  const r = (e && e[ne]).call(e);
99
99
  let s;
100
100
  for (; (s = r.next()) && !s.done; ) {
@@ -112,14 +112,14 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
112
112
  function(n, r, s) {
113
113
  return r.toUpperCase() + s;
114
114
  }
115
- ), Ce = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), mn = x("RegExp"), ot = (e, t) => {
115
+ ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), mn = x("RegExp"), it = (e, t) => {
116
116
  const n = Object.getOwnPropertyDescriptors(e), r = {};
117
117
  V(n, (s, o) => {
118
118
  let i;
119
119
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
120
120
  }), Object.defineProperties(e, r);
121
121
  }, yn = (e) => {
122
- ot(e, (t, n) => {
122
+ it(e, (t, n) => {
123
123
  if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
124
124
  return !1;
125
125
  const r = e[n];
@@ -143,7 +143,7 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
143
143
  }, gn = () => {
144
144
  }, bn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
145
145
  function En(e) {
146
- return !!(e && A(e.append) && e[et] === "FormData" && e[ne]);
146
+ return !!(e && A(e.append) && e[tt] === "FormData" && e[ne]);
147
147
  }
148
148
  const Rn = (e) => {
149
149
  const t = new Array(10), n = (r, s) => {
@@ -162,22 +162,22 @@ const Rn = (e) => {
162
162
  return r;
163
163
  };
164
164
  return n(e, 0);
165
- }, Sn = x("AsyncFunction"), Tn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch), it = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
166
- s === U && o === n && r.length && r.shift()();
165
+ }, Sn = x("AsyncFunction"), Tn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch), at = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
166
+ s === N && o === n && r.length && r.shift()();
167
167
  }, !1), (s) => {
168
- r.push(s), U.postMessage(n, "*");
168
+ r.push(s), N.postMessage(n, "*");
169
169
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
170
170
  typeof setImmediate == "function",
171
- A(U.postMessage)
172
- ), On = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || it, An = (e) => e != null && A(e[ne]), a = {
171
+ A(N.postMessage)
172
+ ), On = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || at, An = (e) => e != null && A(e[ne]), a = {
173
173
  isArray: B,
174
- isArrayBuffer: tt,
174
+ isArrayBuffer: nt,
175
175
  isBuffer: Mt,
176
176
  isFormData: Xt,
177
177
  isArrayBufferView: Ht,
178
- isString: $t,
179
- isNumber: nt,
180
- isBoolean: zt,
178
+ isString: zt,
179
+ isNumber: rt,
180
+ isBoolean: $t,
181
181
  isObject: oe,
182
182
  isPlainObject: X,
183
183
  isReadableStream: Zt,
@@ -192,7 +192,7 @@ const Rn = (e) => {
192
192
  isFunction: A,
193
193
  isStream: Qt,
194
194
  isURLSearchParams: Gt,
195
- isTypedArray: un,
195
+ isTypedArray: ln,
196
196
  isFileList: Kt,
197
197
  forEach: V,
198
198
  merge: pe,
@@ -204,27 +204,27 @@ const Rn = (e) => {
204
204
  kindOf: re,
205
205
  kindOfTest: x,
206
206
  endsWith: cn,
207
- toArray: ln,
207
+ toArray: un,
208
208
  forEachEntry: fn,
209
209
  matchAll: dn,
210
210
  isHTMLForm: pn,
211
- hasOwnProperty: Ce,
212
- hasOwnProp: Ce,
211
+ hasOwnProperty: Pe,
212
+ hasOwnProp: Pe,
213
213
  // an alias to avoid ESLint no-prototype-builtins detection
214
- reduceDescriptors: ot,
214
+ reduceDescriptors: it,
215
215
  freezeMethods: yn,
216
216
  toObjectSet: wn,
217
217
  toCamelCase: hn,
218
218
  noop: gn,
219
219
  toFiniteNumber: bn,
220
- findKey: rt,
221
- global: U,
222
- isContextDefined: st,
220
+ findKey: st,
221
+ global: N,
222
+ isContextDefined: ot,
223
223
  isSpecCompliantForm: En,
224
224
  toJSONObject: Rn,
225
225
  isAsyncFn: Sn,
226
226
  isThenable: Tn,
227
- setImmediate: it,
227
+ setImmediate: at,
228
228
  asap: On,
229
229
  isIterable: An
230
230
  };
@@ -252,7 +252,7 @@ a.inherits(y, Error, {
252
252
  };
253
253
  }
254
254
  });
255
- const at = y.prototype, ct = {};
255
+ const ct = y.prototype, ut = {};
256
256
  [
257
257
  "ERR_BAD_OPTION_VALUE",
258
258
  "ERR_BAD_OPTION",
@@ -268,12 +268,12 @@ const at = y.prototype, ct = {};
268
268
  "ERR_INVALID_URL"
269
269
  // eslint-disable-next-line func-names
270
270
  ].forEach((e) => {
271
- ct[e] = { value: e };
271
+ ut[e] = { value: e };
272
272
  });
273
- Object.defineProperties(y, ct);
274
- Object.defineProperty(at, "isAxiosError", { value: !0 });
273
+ Object.defineProperties(y, ut);
274
+ Object.defineProperty(ct, "isAxiosError", { value: !0 });
275
275
  y.from = (e, t, n, r, s, o) => {
276
- const i = Object.create(at);
276
+ const i = Object.create(ct);
277
277
  return a.toFlatObject(e, i, function(f) {
278
278
  return f !== Error.prototype;
279
279
  }, (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;
@@ -285,7 +285,7 @@ function he(e) {
285
285
  function lt(e) {
286
286
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
287
287
  }
288
- function Pe(e, t, n) {
288
+ function Ue(e, t, n) {
289
289
  return e ? e.concat(t).map(function(s, o) {
290
290
  return s = lt(s), !n && o ? "[" + s + "]" : s;
291
291
  }).join(n ? "." : "") : t;
@@ -306,10 +306,10 @@ function ie(e, t, n) {
306
306
  }, !1, function(m, h) {
307
307
  return !a.isUndefined(h[m]);
308
308
  });
309
- const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
309
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
310
310
  if (!a.isFunction(s))
311
311
  throw new TypeError("visitor must be a function");
312
- function l(p) {
312
+ function u(p) {
313
313
  if (p === null) return "";
314
314
  if (a.isDate(p))
315
315
  return p.toISOString();
@@ -319,7 +319,7 @@ function ie(e, t, n) {
319
319
  throw new y("Blob is not supported. Use a Buffer instead.");
320
320
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
321
321
  }
322
- function u(p, m, h) {
322
+ function l(p, m, h) {
323
323
  let E = p;
324
324
  if (p && !h && typeof p == "object") {
325
325
  if (a.endsWith(m, "{}"))
@@ -328,16 +328,16 @@ function ie(e, t, n) {
328
328
  return m = lt(m), E.forEach(function(S, C) {
329
329
  !(a.isUndefined(S) || S === null) && t.append(
330
330
  // eslint-disable-next-line no-nested-ternary
331
- i === !0 ? Pe([m], C, o) : i === null ? m : m + "[]",
332
- l(S)
331
+ i === !0 ? Ue([m], C, o) : i === null ? m : m + "[]",
332
+ u(S)
333
333
  );
334
334
  }), !1;
335
335
  }
336
- return he(p) ? !0 : (t.append(Pe(h, m, o), l(p)), !1);
336
+ return he(p) ? !0 : (t.append(Ue(h, m, o), u(p)), !1);
337
337
  }
338
338
  const d = [], w = Object.assign(kn, {
339
- defaultVisitor: u,
340
- convertValue: l,
339
+ defaultVisitor: l,
340
+ convertValue: u,
341
341
  isVisitable: he
342
342
  });
343
343
  function g(p, m) {
@@ -376,11 +376,11 @@ function Ne(e) {
376
376
  function Ae(e, t) {
377
377
  this._pairs = [], e && ie(e, this, t);
378
378
  }
379
- const ut = Ae.prototype;
380
- ut.append = function(t, n) {
379
+ const ft = Ae.prototype;
380
+ ft.append = function(t, n) {
381
381
  this._pairs.push([t, n]);
382
382
  };
383
- ut.toString = function(t) {
383
+ ft.toString = function(t) {
384
384
  const n = t ? function(r) {
385
385
  return t.call(this, r, Ne);
386
386
  } : Ne;
@@ -391,7 +391,7 @@ ut.toString = function(t) {
391
391
  function Cn(e) {
392
392
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
393
393
  }
394
- function ft(e, t, n) {
394
+ function dt(e, t, n) {
395
395
  if (!t)
396
396
  return e;
397
397
  const r = n && n.encode || Cn;
@@ -406,7 +406,7 @@ function ft(e, t, n) {
406
406
  }
407
407
  return e;
408
408
  }
409
- class Ue {
409
+ class Le {
410
410
  constructor() {
411
411
  this.handlers = [];
412
412
  }
@@ -460,16 +460,16 @@ class Ue {
460
460
  });
461
461
  }
462
462
  }
463
- const dt = {
463
+ const pt = {
464
464
  silentJSONParsing: !0,
465
465
  forcedJSONParsing: !0,
466
466
  clarifyTimeoutError: !1
467
- }, Pn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Nn = typeof FormData < "u" ? FormData : null, Un = typeof Blob < "u" ? Blob : null, Ln = {
467
+ }, Pn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Un = typeof FormData < "u" ? FormData : null, Nn = typeof Blob < "u" ? Blob : null, Ln = {
468
468
  isBrowser: !0,
469
469
  classes: {
470
470
  URLSearchParams: Pn,
471
- FormData: Nn,
472
- Blob: Un
471
+ FormData: Un,
472
+ Blob: Nn
473
473
  },
474
474
  protocols: ["http", "https", "file", "blob", "url", "data"]
475
475
  }, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Fn = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), Dn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
@@ -503,7 +503,7 @@ function qn(e) {
503
503
  o = n[r], t[o] = e[o];
504
504
  return t;
505
505
  }
506
- function pt(e) {
506
+ function ht(e) {
507
507
  function t(n, r, s, o) {
508
508
  let i = n[o++];
509
509
  if (i === "__proto__") return !0;
@@ -526,15 +526,15 @@ function Mn(e, t, n) {
526
526
  if (r.name !== "SyntaxError")
527
527
  throw r;
528
528
  }
529
- return (n || JSON.stringify)(e);
529
+ return (0, JSON.stringify)(e);
530
530
  }
531
531
  const W = {
532
- transitional: dt,
532
+ transitional: pt,
533
533
  adapter: ["xhr", "http", "fetch"],
534
534
  transformRequest: [function(t, n) {
535
535
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
536
536
  if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
537
- return s ? JSON.stringify(pt(t)) : t;
537
+ return s ? JSON.stringify(ht(t)) : t;
538
538
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
539
539
  return t;
540
540
  if (a.isArrayBufferView(t))
@@ -615,21 +615,21 @@ const Hn = a.toObjectSet([
615
615
  "referer",
616
616
  "retry-after",
617
617
  "user-agent"
618
- ]), $n = (e) => {
618
+ ]), zn = (e) => {
619
619
  const t = {};
620
620
  let n, r, s;
621
621
  return e && e.split(`
622
622
  `).forEach(function(i) {
623
623
  s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Hn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
624
624
  }), t;
625
- }, Le = Symbol("internals");
625
+ }, Fe = Symbol("internals");
626
626
  function j(e) {
627
627
  return e && String(e).trim().toLowerCase();
628
628
  }
629
629
  function G(e) {
630
630
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(G) : String(e);
631
631
  }
632
- function zn(e) {
632
+ function $n(e) {
633
633
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
634
634
  let r;
635
635
  for (; r = n.exec(e); )
@@ -637,7 +637,7 @@ function zn(e) {
637
637
  return t;
638
638
  }
639
639
  const Jn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
640
- function ue(e, t, n, r, s) {
640
+ function le(e, t, n, r, s) {
641
641
  if (a.isFunction(r))
642
642
  return r.call(this, t, n);
643
643
  if (s && (t = n), !!a.isString(t)) {
@@ -661,30 +661,30 @@ function Wn(e, t) {
661
661
  });
662
662
  });
663
663
  }
664
- let _ = class {
664
+ class _ {
665
665
  constructor(t) {
666
666
  t && this.set(t);
667
667
  }
668
668
  set(t, n, r) {
669
669
  const s = this;
670
- function o(c, f, l) {
671
- const u = j(f);
672
- if (!u)
670
+ function o(c, f, u) {
671
+ const l = j(f);
672
+ if (!l)
673
673
  throw new Error("header name must be a non-empty string");
674
- const d = a.findKey(s, u);
675
- (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = G(c));
674
+ const d = a.findKey(s, l);
675
+ (!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = G(c));
676
676
  }
677
- const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
677
+ const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
678
678
  if (a.isPlainObject(t) || t instanceof this.constructor)
679
679
  i(t, n);
680
680
  else if (a.isString(t) && (t = t.trim()) && !Jn(t))
681
- i($n(t), n);
681
+ i(zn(t), n);
682
682
  else if (a.isObject(t) && a.isIterable(t)) {
683
- let c = {}, f, l;
684
- for (const u of t) {
685
- if (!a.isArray(u))
683
+ let c = {}, f, u;
684
+ for (const l of t) {
685
+ if (!a.isArray(l))
686
686
  throw TypeError("Object iterator must return a key-value pair");
687
- c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
687
+ c[u = l[0]] = (f = c[u]) ? a.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
688
688
  }
689
689
  i(c, n);
690
690
  } else
@@ -699,7 +699,7 @@ let _ = class {
699
699
  if (!n)
700
700
  return s;
701
701
  if (n === !0)
702
- return zn(s);
702
+ return $n(s);
703
703
  if (a.isFunction(n))
704
704
  return n.call(this, s, r);
705
705
  if (a.isRegExp(n))
@@ -711,7 +711,7 @@ let _ = class {
711
711
  has(t, n) {
712
712
  if (t = j(t), t) {
713
713
  const r = a.findKey(this, t);
714
- return !!(r && this[r] !== void 0 && (!n || ue(this, this[r], r, n)));
714
+ return !!(r && this[r] !== void 0 && (!n || le(this, this[r], r, n)));
715
715
  }
716
716
  return !1;
717
717
  }
@@ -721,7 +721,7 @@ let _ = class {
721
721
  function o(i) {
722
722
  if (i = j(i), i) {
723
723
  const c = a.findKey(r, i);
724
- c && (!n || ue(r, r[c], c, n)) && (delete r[c], s = !0);
724
+ c && (!n || le(r, r[c], c, n)) && (delete r[c], s = !0);
725
725
  }
726
726
  }
727
727
  return a.isArray(t) ? t.forEach(o) : o(t), s;
@@ -731,7 +731,7 @@ let _ = class {
731
731
  let r = n.length, s = !1;
732
732
  for (; r--; ) {
733
733
  const o = n[r];
734
- (!t || ue(this, this[o], o, t, !0)) && (delete this[o], s = !0);
734
+ (!t || le(this, this[o], o, t, !0)) && (delete this[o], s = !0);
735
735
  }
736
736
  return s;
737
737
  }
@@ -777,7 +777,7 @@ let _ = class {
777
777
  return n.forEach((s) => r.set(s)), r;
778
778
  }
779
779
  static accessor(t) {
780
- const r = (this[Le] = this[Le] = {
780
+ const r = (this[Fe] = this[Fe] = {
781
781
  accessors: {}
782
782
  }).accessors, s = this.prototype;
783
783
  function o(i) {
@@ -786,7 +786,7 @@ let _ = class {
786
786
  }
787
787
  return a.isArray(t) ? t.forEach(o) : o(t), this;
788
788
  }
789
- };
789
+ }
790
790
  _.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
791
791
  a.reduceDescriptors(_.prototype, ({ value: e }, t) => {
792
792
  let n = t[0].toUpperCase() + t.slice(1);
@@ -805,7 +805,7 @@ function fe(e, t) {
805
805
  o = c.call(n, o, s.normalize(), t ? t.status : void 0);
806
806
  }), s.normalize(), o;
807
807
  }
808
- function ht(e) {
808
+ function mt(e) {
809
809
  return !!(e && e.__CANCEL__);
810
810
  }
811
811
  function I(e, t, n) {
@@ -814,7 +814,7 @@ function I(e, t, n) {
814
814
  a.inherits(I, y, {
815
815
  __CANCEL__: !0
816
816
  });
817
- function mt(e, t, n) {
817
+ function yt(e, t, n) {
818
818
  const r = n.config.validateStatus;
819
819
  !n.status || !r || r(n.status) ? e(n) : t(new y(
820
820
  "Request failed with status code " + n.status,
@@ -833,25 +833,25 @@ function Qn(e, t) {
833
833
  const n = new Array(e), r = new Array(e);
834
834
  let s = 0, o = 0, i;
835
835
  return t = t !== void 0 ? t : 1e3, function(f) {
836
- const l = Date.now(), u = r[o];
837
- i || (i = l), n[s] = f, r[s] = l;
836
+ const u = Date.now(), l = r[o];
837
+ i || (i = u), n[s] = f, r[s] = u;
838
838
  let d = o, w = 0;
839
839
  for (; d !== s; )
840
840
  w += n[d++], d = d % e;
841
- if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
841
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
842
842
  return;
843
- const g = u && l - u;
843
+ const g = l && u - l;
844
844
  return g ? Math.round(w * 1e3 / g) : void 0;
845
845
  };
846
846
  }
847
847
  function Xn(e, t) {
848
848
  let n = 0, r = 1e3 / t, s, o;
849
- const i = (l, u = Date.now()) => {
850
- n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
849
+ const i = (u, l = Date.now()) => {
850
+ n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
851
851
  };
852
- return [(...l) => {
853
- const u = Date.now(), d = u - n;
854
- d >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
852
+ return [(...u) => {
853
+ const l = Date.now(), d = l - n;
854
+ d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
855
855
  o = null, i(s);
856
856
  }, r - d)));
857
857
  }, () => s && i(s)];
@@ -860,29 +860,29 @@ const ee = (e, t, n = 3) => {
860
860
  let r = 0;
861
861
  const s = Qn(50, 250);
862
862
  return Xn((o) => {
863
- const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c;
863
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
864
864
  r = i;
865
865
  const d = {
866
866
  loaded: i,
867
867
  total: c,
868
868
  progress: c ? i / c : void 0,
869
869
  bytes: f,
870
- rate: l || void 0,
871
- estimated: l && c && u ? (c - i) / l : void 0,
870
+ rate: u || void 0,
871
+ estimated: u && c && l ? (c - i) / u : void 0,
872
872
  event: o,
873
873
  lengthComputable: c != null,
874
874
  [t ? "download" : "upload"]: !0
875
875
  };
876
876
  e(d);
877
877
  }, n);
878
- }, Fe = (e, t) => {
878
+ }, De = (e, t) => {
879
879
  const n = e != null;
880
880
  return [(r) => t[0]({
881
881
  lengthComputable: n,
882
882
  total: e,
883
883
  loaded: r
884
884
  }), t[1]];
885
- }, De = (e) => (...t) => a.asap(() => e(...t)), Gn = 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
+ }, ve = (e) => (...t) => a.asap(() => e(...t)), Gn = 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)))(
886
886
  new URL(T.origin),
887
887
  T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
888
888
  ) : () => !0, Zn = T.hasStandardBrowserEnv ? (
@@ -918,38 +918,38 @@ function Yn(e) {
918
918
  function er(e, t) {
919
919
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
920
920
  }
921
- function yt(e, t, n) {
921
+ function wt(e, t, n) {
922
922
  let r = !Yn(t);
923
923
  return e && (r || n == !1) ? er(e, t) : t;
924
924
  }
925
- const ve = (e) => e instanceof _ ? { ...e } : e;
925
+ const Be = (e) => e instanceof _ ? { ...e } : e;
926
926
  function F(e, t) {
927
927
  t = t || {};
928
928
  const n = {};
929
- function r(l, u, d, w) {
930
- 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;
929
+ function r(u, l, d, w) {
930
+ 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;
931
931
  }
932
- function s(l, u, d, w) {
933
- if (a.isUndefined(u)) {
934
- if (!a.isUndefined(l))
935
- return r(void 0, l, d, w);
936
- } else return r(l, u, d, w);
932
+ function s(u, l, d, w) {
933
+ if (a.isUndefined(l)) {
934
+ if (!a.isUndefined(u))
935
+ return r(void 0, u, d, w);
936
+ } else return r(u, l, d, w);
937
937
  }
938
- function o(l, u) {
939
- if (!a.isUndefined(u))
940
- return r(void 0, u);
938
+ function o(u, l) {
939
+ if (!a.isUndefined(l))
940
+ return r(void 0, l);
941
941
  }
942
- function i(l, u) {
943
- if (a.isUndefined(u)) {
944
- if (!a.isUndefined(l))
945
- return r(void 0, l);
946
- } else return r(void 0, u);
942
+ function i(u, l) {
943
+ if (a.isUndefined(l)) {
944
+ if (!a.isUndefined(u))
945
+ return r(void 0, u);
946
+ } else return r(void 0, l);
947
947
  }
948
- function c(l, u, d) {
948
+ function c(u, l, d) {
949
949
  if (d in t)
950
- return r(l, u);
950
+ return r(u, l);
951
951
  if (d in e)
952
- return r(void 0, l);
952
+ return r(void 0, u);
953
953
  }
954
954
  const f = {
955
955
  url: o,
@@ -980,17 +980,17 @@ function F(e, t) {
980
980
  socketPath: i,
981
981
  responseEncoding: i,
982
982
  validateStatus: c,
983
- headers: (l, u, d) => s(ve(l), ve(u), d, !0)
983
+ headers: (u, l, d) => s(Be(u), Be(l), d, !0)
984
984
  };
985
- return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
986
- const d = f[u] || s, w = d(e[u], t[u], u);
987
- a.isUndefined(w) && d !== c || (n[u] = w);
985
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
986
+ const d = f[l] || s, w = d(e[l], t[l], l);
987
+ a.isUndefined(w) && d !== c || (n[l] = w);
988
988
  }), n;
989
989
  }
990
- const wt = (e) => {
990
+ const gt = (e) => {
991
991
  const t = F({}, e);
992
992
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
993
- t.headers = i = _.from(i), t.url = ft(yt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
993
+ t.headers = i = _.from(i), t.url = dt(wt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
994
994
  "Authorization",
995
995
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
996
996
  );
@@ -999,23 +999,23 @@ const wt = (e) => {
999
999
  if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1000
1000
  i.setContentType(void 0);
1001
1001
  else if ((f = i.getContentType()) !== !1) {
1002
- const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1003
- i.setContentType([l || "multipart/form-data", ...u].join("; "));
1002
+ const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1003
+ i.setContentType([u || "multipart/form-data", ...l].join("; "));
1004
1004
  }
1005
1005
  }
1006
1006
  if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Gn(t.url))) {
1007
- const l = s && o && Zn.read(o);
1008
- l && i.set(s, l);
1007
+ const u = s && o && Zn.read(o);
1008
+ u && i.set(s, u);
1009
1009
  }
1010
1010
  return t;
1011
1011
  }, tr = typeof XMLHttpRequest < "u", nr = tr && function(e) {
1012
1012
  return new Promise(function(n, r) {
1013
- const s = wt(e);
1013
+ const s = gt(e);
1014
1014
  let o = s.data;
1015
1015
  const i = _.from(s.headers).normalize();
1016
- let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, w, g, p;
1016
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, w, g, p;
1017
1017
  function m() {
1018
- g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1018
+ g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1019
1019
  }
1020
1020
  let h = new XMLHttpRequest();
1021
1021
  h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
@@ -1032,10 +1032,10 @@ const wt = (e) => {
1032
1032
  config: e,
1033
1033
  request: h
1034
1034
  };
1035
- mt(function(N) {
1036
- n(N), m();
1037
- }, function(N) {
1038
- r(N), m();
1035
+ yt(function(U) {
1036
+ n(U), m();
1037
+ }, function(U) {
1038
+ r(U), m();
1039
1039
  }, O), h = null;
1040
1040
  }
1041
1041
  "onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
@@ -1046,7 +1046,7 @@ const wt = (e) => {
1046
1046
  r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
1047
1047
  }, h.ontimeout = function() {
1048
1048
  let C = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1049
- const O = s.transitional || dt;
1049
+ const O = s.transitional || pt;
1050
1050
  s.timeoutErrorMessage && (C = s.timeoutErrorMessage), r(new y(
1051
1051
  C,
1052
1052
  O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
@@ -1055,9 +1055,9 @@ const wt = (e) => {
1055
1055
  )), h = null;
1056
1056
  }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(C, O) {
1057
1057
  h.setRequestHeader(O, C);
1058
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.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)), (s.cancelToken || s.signal) && (u = (S) => {
1058
+ }), 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) => {
1059
1059
  h && (r(!S || S.type ? new I(null, e, h) : S), h.abort(), h = null);
1060
- }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1060
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1061
1061
  const R = Kn(s.url);
1062
1062
  if (R && T.protocols.indexOf(R) === -1) {
1063
1063
  r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, e));
@@ -1069,22 +1069,22 @@ const wt = (e) => {
1069
1069
  const { length: n } = e = e ? e.filter(Boolean) : [];
1070
1070
  if (t || n) {
1071
1071
  let r = new AbortController(), s;
1072
- const o = function(l) {
1072
+ const o = function(u) {
1073
1073
  if (!s) {
1074
1074
  s = !0, c();
1075
- const u = l instanceof Error ? l : this.reason;
1076
- r.abort(u instanceof y ? u : new I(u instanceof Error ? u.message : u));
1075
+ const l = u instanceof Error ? u : this.reason;
1076
+ r.abort(l instanceof y ? l : new I(l instanceof Error ? l.message : l));
1077
1077
  }
1078
1078
  };
1079
1079
  let i = t && setTimeout(() => {
1080
1080
  i = null, o(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1081
1081
  }, t);
1082
1082
  const c = () => {
1083
- e && (i && clearTimeout(i), i = null, e.forEach((l) => {
1084
- l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
1083
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1084
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1085
1085
  }), e = null);
1086
1086
  };
1087
- e.forEach((l) => l.addEventListener("abort", o));
1087
+ e.forEach((u) => u.addEventListener("abort", o));
1088
1088
  const { signal: f } = r;
1089
1089
  return f.unsubscribe = () => a.asap(c), f;
1090
1090
  }
@@ -1116,7 +1116,7 @@ const wt = (e) => {
1116
1116
  } finally {
1117
1117
  await t.cancel();
1118
1118
  }
1119
- }, Be = (e, t, n, r) => {
1119
+ }, Ie = (e, t, n, r) => {
1120
1120
  const s = or(e, t);
1121
1121
  let o = 0, i, c = (f) => {
1122
1122
  i || (i = !0, r && r(f));
@@ -1124,19 +1124,19 @@ const wt = (e) => {
1124
1124
  return new ReadableStream({
1125
1125
  async pull(f) {
1126
1126
  try {
1127
- const { done: l, value: u } = await s.next();
1128
- if (l) {
1127
+ const { done: u, value: l } = await s.next();
1128
+ if (u) {
1129
1129
  c(), f.close();
1130
1130
  return;
1131
1131
  }
1132
- let d = u.byteLength;
1132
+ let d = l.byteLength;
1133
1133
  if (n) {
1134
1134
  let w = o += d;
1135
1135
  n(w);
1136
1136
  }
1137
- f.enqueue(new Uint8Array(u));
1138
- } catch (l) {
1139
- throw c(l), l;
1137
+ f.enqueue(new Uint8Array(l));
1138
+ } catch (u) {
1139
+ throw c(u), u;
1140
1140
  }
1141
1141
  },
1142
1142
  cancel(f) {
@@ -1145,13 +1145,13 @@ const wt = (e) => {
1145
1145
  }, {
1146
1146
  highWaterMark: 2
1147
1147
  });
1148
- }, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", gt = ae && typeof ReadableStream == "function", ar = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), bt = (e, ...t) => {
1148
+ }, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", bt = ae && typeof ReadableStream == "function", ar = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Et = (e, ...t) => {
1149
1149
  try {
1150
1150
  return !!e(...t);
1151
1151
  } catch {
1152
1152
  return !1;
1153
1153
  }
1154
- }, cr = gt && bt(() => {
1154
+ }, cr = bt && Et(() => {
1155
1155
  let e = !1;
1156
1156
  const t = new Request(T.origin, {
1157
1157
  body: new ReadableStream(),
@@ -1161,7 +1161,7 @@ const wt = (e) => {
1161
1161
  }
1162
1162
  }).headers.has("Content-Type");
1163
1163
  return e && !t;
1164
- }), Ie = 64 * 1024, ye = gt && bt(() => a.isReadableStream(new Response("").body)), te = {
1164
+ }), je = 64 * 1024, ye = bt && Et(() => a.isReadableStream(new Response("").body)), te = {
1165
1165
  stream: ye && ((e) => e.body)
1166
1166
  };
1167
1167
  ae && ((e) => {
@@ -1171,7 +1171,7 @@ ae && ((e) => {
1171
1171
  });
1172
1172
  });
1173
1173
  })(new Response());
1174
- const lr = async (e) => {
1174
+ const ur = async (e) => {
1175
1175
  if (e == null)
1176
1176
  return 0;
1177
1177
  if (a.isBlob(e))
@@ -1185,9 +1185,9 @@ const lr = async (e) => {
1185
1185
  return e.byteLength;
1186
1186
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1187
1187
  return (await ar(e)).byteLength;
1188
- }, ur = async (e, t) => {
1188
+ }, lr = async (e, t) => {
1189
1189
  const n = a.toFiniteNumber(e.getContentLength());
1190
- return n ?? lr(t);
1190
+ return n ?? ur(t);
1191
1191
  }, fr = ae && (async (e) => {
1192
1192
  let {
1193
1193
  url: t,
@@ -1198,30 +1198,30 @@ const lr = async (e) => {
1198
1198
  timeout: i,
1199
1199
  onDownloadProgress: c,
1200
1200
  onUploadProgress: f,
1201
- responseType: l,
1202
- headers: u,
1201
+ responseType: u,
1202
+ headers: l,
1203
1203
  withCredentials: d = "same-origin",
1204
1204
  fetchOptions: w
1205
- } = wt(e);
1206
- l = l ? (l + "").toLowerCase() : "text";
1205
+ } = gt(e);
1206
+ u = u ? (u + "").toLowerCase() : "text";
1207
1207
  let g = rr([s, o && o.toAbortSignal()], i), p;
1208
1208
  const m = g && g.unsubscribe && (() => {
1209
1209
  g.unsubscribe();
1210
1210
  });
1211
1211
  let h;
1212
1212
  try {
1213
- if (f && cr && n !== "get" && n !== "head" && (h = await ur(u, r)) !== 0) {
1213
+ if (f && cr && n !== "get" && n !== "head" && (h = await lr(l, r)) !== 0) {
1214
1214
  let O = new Request(t, {
1215
1215
  method: "POST",
1216
1216
  body: r,
1217
1217
  duplex: "half"
1218
1218
  }), P;
1219
- if (a.isFormData(r) && (P = O.headers.get("content-type")) && u.setContentType(P), O.body) {
1220
- const [N, K] = Fe(
1219
+ if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
1220
+ const [U, K] = De(
1221
1221
  h,
1222
- ee(De(f))
1222
+ ee(ve(f))
1223
1223
  );
1224
- r = Be(O.body, Ie, N, K);
1224
+ r = Ie(O.body, je, U, K);
1225
1225
  }
1226
1226
  }
1227
1227
  a.isString(d) || (d = d ? "include" : "omit");
@@ -1230,33 +1230,33 @@ const lr = async (e) => {
1230
1230
  ...w,
1231
1231
  signal: g,
1232
1232
  method: n.toUpperCase(),
1233
- headers: u.normalize().toJSON(),
1233
+ headers: l.normalize().toJSON(),
1234
1234
  body: r,
1235
1235
  duplex: "half",
1236
1236
  credentials: E ? d : void 0
1237
1237
  });
1238
1238
  let R = await fetch(p, w);
1239
- const S = ye && (l === "stream" || l === "response");
1239
+ const S = ye && (u === "stream" || u === "response");
1240
1240
  if (ye && (c || S && m)) {
1241
1241
  const O = {};
1242
- ["status", "statusText", "headers"].forEach((ke) => {
1243
- O[ke] = R[ke];
1242
+ ["status", "statusText", "headers"].forEach((Ce) => {
1243
+ O[Ce] = R[Ce];
1244
1244
  });
1245
- const P = a.toFiniteNumber(R.headers.get("content-length")), [N, K] = c && Fe(
1245
+ const P = a.toFiniteNumber(R.headers.get("content-length")), [U, K] = c && De(
1246
1246
  P,
1247
- ee(De(c), !0)
1247
+ ee(ve(c), !0)
1248
1248
  ) || [];
1249
1249
  R = new Response(
1250
- Be(R.body, Ie, N, () => {
1250
+ Ie(R.body, je, U, () => {
1251
1251
  K && K(), m && m();
1252
1252
  }),
1253
1253
  O
1254
1254
  );
1255
1255
  }
1256
- l = l || "text";
1257
- let C = await te[a.findKey(te, l) || "text"](R, e);
1256
+ u = u || "text";
1257
+ let C = await te[a.findKey(te, u) || "text"](R, e);
1258
1258
  return !S && m && m(), await new Promise((O, P) => {
1259
- mt(O, P, {
1259
+ yt(O, P, {
1260
1260
  data: C,
1261
1261
  headers: _.from(R.headers),
1262
1262
  status: R.status,
@@ -1287,7 +1287,7 @@ a.forEach(we, (e, t) => {
1287
1287
  Object.defineProperty(e, "adapterName", { value: t });
1288
1288
  }
1289
1289
  });
1290
- const je = (e) => `- ${e}`, dr = (e) => a.isFunction(e) || e === null || e === !1, Et = {
1290
+ const qe = (e) => `- ${e}`, dr = (e) => a.isFunction(e) || e === null || e === !1, Rt = {
1291
1291
  getAdapter: (e) => {
1292
1292
  e = a.isArray(e) ? e : [e];
1293
1293
  const { length: t } = e;
@@ -1307,8 +1307,8 @@ const je = (e) => `- ${e}`, dr = (e) => a.isFunction(e) || e === null || e === !
1307
1307
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1308
1308
  );
1309
1309
  let i = t ? o.length > 1 ? `since :
1310
- ` + o.map(je).join(`
1311
- `) : " " + je(o[0]) : "as no adapter specified";
1310
+ ` + o.map(qe).join(`
1311
+ `) : " " + qe(o[0]) : "as no adapter specified";
1312
1312
  throw new y(
1313
1313
  "There is no suitable adapter to dispatch the request " + i,
1314
1314
  "ERR_NOT_SUPPORT"
@@ -1322,34 +1322,34 @@ function de(e) {
1322
1322
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1323
1323
  throw new I(null, e);
1324
1324
  }
1325
- function qe(e) {
1325
+ function Me(e) {
1326
1326
  return de(e), e.headers = _.from(e.headers), e.data = fe.call(
1327
1327
  e,
1328
1328
  e.transformRequest
1329
- ), ["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
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rt.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
1330
1330
  return de(e), r.data = fe.call(
1331
1331
  e,
1332
1332
  e.transformResponse,
1333
1333
  r
1334
1334
  ), r.headers = _.from(r.headers), r;
1335
1335
  }, function(r) {
1336
- return ht(r) || (de(e), r && r.response && (r.response.data = fe.call(
1336
+ return mt(r) || (de(e), r && r.response && (r.response.data = fe.call(
1337
1337
  e,
1338
1338
  e.transformResponse,
1339
1339
  r.response
1340
1340
  ), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
1341
1341
  });
1342
1342
  }
1343
- const Rt = "1.10.0", ce = {};
1343
+ const St = "1.10.0", ce = {};
1344
1344
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1345
1345
  ce[e] = function(r) {
1346
1346
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1347
1347
  };
1348
1348
  });
1349
- const Me = {};
1349
+ const He = {};
1350
1350
  ce.transitional = function(t, n, r) {
1351
1351
  function s(o, i) {
1352
- return "[Axios v" + Rt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1352
+ return "[Axios v" + St + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1353
1353
  }
1354
1354
  return (o, i, c) => {
1355
1355
  if (t === !1)
@@ -1357,7 +1357,7 @@ ce.transitional = function(t, n, r) {
1357
1357
  s(i, " has been removed" + (n ? " in " + n : "")),
1358
1358
  y.ERR_DEPRECATED
1359
1359
  );
1360
- return n && !Me[i] && (Me[i] = !0), t ? t(o, i, c) : !0;
1360
+ return n && !He[i] && (He[i] = !0), t ? t(o, i, c) : !0;
1361
1361
  };
1362
1362
  };
1363
1363
  ce.spelling = function(t) {
@@ -1384,11 +1384,11 @@ const Z = {
1384
1384
  assertOptions: pr,
1385
1385
  validators: ce
1386
1386
  }, k = Z.validators;
1387
- let L = class {
1387
+ class L {
1388
1388
  constructor(t) {
1389
1389
  this.defaults = t || {}, this.interceptors = {
1390
- request: new Ue(),
1391
- response: new Ue()
1390
+ request: new Le(),
1391
+ response: new Le()
1392
1392
  };
1393
1393
  }
1394
1394
  /**
@@ -1447,16 +1447,16 @@ let L = class {
1447
1447
  this.interceptors.request.forEach(function(m) {
1448
1448
  typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1449
1449
  });
1450
- const l = [];
1450
+ const u = [];
1451
1451
  this.interceptors.response.forEach(function(m) {
1452
- l.push(m.fulfilled, m.rejected);
1452
+ u.push(m.fulfilled, m.rejected);
1453
1453
  });
1454
- let u, d = 0, w;
1454
+ let l, d = 0, w;
1455
1455
  if (!f) {
1456
- const p = [qe.bind(this), void 0];
1457
- for (p.unshift.apply(p, c), p.push.apply(p, l), w = p.length, u = Promise.resolve(n); d < w; )
1458
- u = u.then(p[d++], p[d++]);
1459
- return u;
1456
+ const p = [Me.bind(this), void 0];
1457
+ for (p.unshift.apply(p, c), p.push.apply(p, u), w = p.length, l = Promise.resolve(n); d < w; )
1458
+ l = l.then(p[d++], p[d++]);
1459
+ return l;
1460
1460
  }
1461
1461
  w = c.length;
1462
1462
  let g = n;
@@ -1470,20 +1470,20 @@ let L = class {
1470
1470
  }
1471
1471
  }
1472
1472
  try {
1473
- u = qe.call(this, g);
1473
+ l = Me.call(this, g);
1474
1474
  } catch (p) {
1475
1475
  return Promise.reject(p);
1476
1476
  }
1477
- for (d = 0, w = l.length; d < w; )
1478
- u = u.then(l[d++], l[d++]);
1479
- return u;
1477
+ for (d = 0, w = u.length; d < w; )
1478
+ l = l.then(u[d++], u[d++]);
1479
+ return l;
1480
1480
  }
1481
1481
  getUri(t) {
1482
1482
  t = F(this.defaults, t);
1483
- const n = yt(t.baseURL, t.url, t.allowAbsoluteUrls);
1484
- return ft(n, t.params, t.paramsSerializer);
1483
+ const n = wt(t.baseURL, t.url, t.allowAbsoluteUrls);
1484
+ return dt(n, t.params, t.paramsSerializer);
1485
1485
  }
1486
- };
1486
+ }
1487
1487
  a.forEach(["delete", "get", "head", "options"], function(t) {
1488
1488
  L.prototype[t] = function(n, r) {
1489
1489
  return this.request(F(r || {}, {
@@ -1508,7 +1508,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1508
1508
  }
1509
1509
  L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
1510
1510
  });
1511
- let hr = class St {
1511
+ class xe {
1512
1512
  constructor(t) {
1513
1513
  if (typeof t != "function")
1514
1514
  throw new TypeError("executor must be a function.");
@@ -1574,19 +1574,19 @@ let hr = class St {
1574
1574
  static source() {
1575
1575
  let t;
1576
1576
  return {
1577
- token: new St(function(s) {
1577
+ token: new xe(function(s) {
1578
1578
  t = s;
1579
1579
  }),
1580
1580
  cancel: t
1581
1581
  };
1582
1582
  }
1583
- };
1584
- function mr(e) {
1583
+ }
1584
+ function hr(e) {
1585
1585
  return function(n) {
1586
1586
  return e.apply(null, n);
1587
1587
  };
1588
1588
  }
1589
- function yr(e) {
1589
+ function mr(e) {
1590
1590
  return a.isObject(e) && e.isAxiosError === !0;
1591
1591
  }
1592
1592
  const ge = {
@@ -1658,7 +1658,7 @@ Object.entries(ge).forEach(([e, t]) => {
1658
1658
  ge[t] = e;
1659
1659
  });
1660
1660
  function Tt(e) {
1661
- const t = new L(e), n = Ye(L.prototype.request, t);
1661
+ const t = new L(e), n = et(L.prototype.request, t);
1662
1662
  return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1663
1663
  return Tt(F(e, s));
1664
1664
  }, n;
@@ -1666,41 +1666,23 @@ function Tt(e) {
1666
1666
  const b = Tt(W);
1667
1667
  b.Axios = L;
1668
1668
  b.CanceledError = I;
1669
- b.CancelToken = hr;
1670
- b.isCancel = ht;
1671
- b.VERSION = Rt;
1669
+ b.CancelToken = xe;
1670
+ b.isCancel = mt;
1671
+ b.VERSION = St;
1672
1672
  b.toFormData = ie;
1673
1673
  b.AxiosError = y;
1674
1674
  b.Cancel = b.CanceledError;
1675
1675
  b.all = function(t) {
1676
1676
  return Promise.all(t);
1677
1677
  };
1678
- b.spread = mr;
1679
- b.isAxiosError = yr;
1678
+ b.spread = hr;
1679
+ b.isAxiosError = mr;
1680
1680
  b.mergeConfig = F;
1681
1681
  b.AxiosHeaders = _;
1682
- b.formToJSON = (e) => pt(a.isHTMLForm(e) ? new FormData(e) : e);
1683
- b.getAdapter = Et.getAdapter;
1682
+ b.formToJSON = (e) => ht(a.isHTMLForm(e) ? new FormData(e) : e);
1683
+ b.getAdapter = Rt.getAdapter;
1684
1684
  b.HttpStatusCode = ge;
1685
1685
  b.default = b;
1686
- const {
1687
- Axios: Kr,
1688
- AxiosError: Qr,
1689
- CanceledError: Xr,
1690
- isCancel: Gr,
1691
- CancelToken: Zr,
1692
- VERSION: Yr,
1693
- all: es,
1694
- Cancel: ts,
1695
- isAxiosError: ns,
1696
- spread: rs,
1697
- toFormData: ss,
1698
- AxiosHeaders: os,
1699
- HttpStatusCode: is,
1700
- formToJSON: as,
1701
- getAdapter: cs,
1702
- mergeConfig: ls
1703
- } = b;
1704
1686
  /*! js-cookie v3.0.5 | MIT */
1705
1687
  function Q(e) {
1706
1688
  for (var t = 1; t < arguments.length; t++) {
@@ -1710,7 +1692,7 @@ function Q(e) {
1710
1692
  }
1711
1693
  return e;
1712
1694
  }
1713
- var wr = {
1695
+ var yr = {
1714
1696
  read: function(e) {
1715
1697
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1716
1698
  },
@@ -1734,10 +1716,10 @@ function be(e, t) {
1734
1716
  function r(s) {
1735
1717
  if (!(typeof document > "u" || arguments.length && !s)) {
1736
1718
  for (var o = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < o.length; c++) {
1737
- var f = o[c].split("="), l = f.slice(1).join("=");
1719
+ var f = o[c].split("="), u = f.slice(1).join("=");
1738
1720
  try {
1739
- var u = decodeURIComponent(f[0]);
1740
- if (i[u] = e.read(l, u), s === u)
1721
+ var l = decodeURIComponent(f[0]);
1722
+ if (i[l] = e.read(u, l), s === l)
1741
1723
  break;
1742
1724
  } catch {
1743
1725
  }
@@ -1771,14 +1753,14 @@ function be(e, t) {
1771
1753
  }
1772
1754
  );
1773
1755
  }
1774
- var gr = be(wr, { path: "/" }), He;
1775
- const Ot = typeof window < "u", br = (e) => typeof e == "string", $e = () => +Date.now(), Ee = () => {
1756
+ var wr = be(yr, { path: "/" }), ze;
1757
+ const Ot = typeof window < "u", gr = (e) => typeof e == "string", $e = () => +Date.now(), Ee = () => {
1776
1758
  };
1777
- Ot && ((He = window == null ? void 0 : window.navigator) != null && He.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1778
- function xe(e) {
1779
- return typeof e == "function" ? e() : Nt(e);
1759
+ Ot && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1760
+ function ke(e) {
1761
+ return typeof e == "function" ? e() : Ut(e);
1780
1762
  }
1781
- function Er(e, t) {
1763
+ function br(e, t) {
1782
1764
  function n(...r) {
1783
1765
  return new Promise((s, o) => {
1784
1766
  Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(o);
@@ -1786,81 +1768,81 @@ function Er(e, t) {
1786
1768
  }
1787
1769
  return n;
1788
1770
  }
1789
- function Rr(e, t = !0, n = !0, r = !1) {
1771
+ function Er(e, t = !0, n = !0, r = !1) {
1790
1772
  let s = 0, o, i = !0, c = Ee, f;
1791
- const l = () => {
1773
+ const u = () => {
1792
1774
  o && (clearTimeout(o), o = void 0, c(), c = Ee);
1793
1775
  };
1794
1776
  return (d) => {
1795
- const w = xe(e), g = Date.now() - s, p = () => f = d();
1796
- return l(), w <= 0 ? (s = Date.now(), p()) : (g > w && (n || !i) ? (s = Date.now(), p()) : t && (f = new Promise((m, h) => {
1777
+ const w = ke(e), g = Date.now() - s, p = () => f = d();
1778
+ return u(), w <= 0 ? (s = Date.now(), p()) : (g > w && (n || !i) ? (s = Date.now(), p()) : t && (f = new Promise((m, h) => {
1797
1779
  c = r ? h : m, o = setTimeout(() => {
1798
- s = Date.now(), i = !0, m(p()), l();
1780
+ s = Date.now(), i = !0, m(p()), u();
1799
1781
  }, Math.max(0, w - g));
1800
1782
  })), !n && !o && (o = setTimeout(() => i = !0, w)), i = !1, f);
1801
1783
  };
1802
1784
  }
1803
- function Sr(e) {
1785
+ function Rr(e) {
1804
1786
  return e;
1805
1787
  }
1806
- function Tr(e) {
1807
- return Ut() ? (Lt(e), !0) : !1;
1788
+ function Sr(e) {
1789
+ return Nt() ? (Lt(e), !0) : !1;
1808
1790
  }
1809
- function Or(e) {
1791
+ function Tr(e) {
1810
1792
  var t;
1811
- const n = xe(e);
1793
+ const n = ke(e);
1812
1794
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
1813
1795
  }
1814
1796
  const At = Ot ? window : void 0;
1815
- function ze(...e) {
1797
+ function Je(...e) {
1816
1798
  let t, n, r, s;
1817
- if (br(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = At) : [t, n, r, s] = e, !t)
1799
+ if (gr(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = At) : [t, n, r, s] = e, !t)
1818
1800
  return Ee;
1819
1801
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1820
1802
  const o = [], i = () => {
1821
- o.forEach((u) => u()), o.length = 0;
1822
- }, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f = Se(() => [Or(t), xe(s)], ([u, d]) => {
1823
- i(), u && o.push(...n.flatMap((w) => r.map((g) => c(u, w, g, d))));
1824
- }, { immediate: !0, flush: "post" }), l = () => {
1803
+ o.forEach((l) => l()), o.length = 0;
1804
+ }, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Se(() => [Tr(t), ke(s)], ([l, d]) => {
1805
+ i(), l && o.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
1806
+ }, { immediate: !0, flush: "post" }), u = () => {
1825
1807
  f(), i();
1826
1808
  };
1827
- return Tr(l), l;
1809
+ return Sr(u), u;
1828
1810
  }
1829
- const Je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ve = "__vueuse_ssr_handlers__";
1830
- Je[Ve] = Je[Ve] || {};
1831
- const Ar = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], _r = 6e4;
1832
- function xr(e = _r, t = {}) {
1811
+ const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__";
1812
+ Ve[We] = Ve[We] || {};
1813
+ const Or = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Ar = 6e4;
1814
+ function _r(e = Ar, t = {}) {
1833
1815
  const {
1834
1816
  initialState: n = !1,
1835
1817
  listenForVisibilityChange: r = !0,
1836
- events: s = Ar,
1818
+ events: s = Or,
1837
1819
  window: o = At,
1838
- eventFilter: i = Rr(50)
1820
+ eventFilter: i = Er(50)
1839
1821
  } = t, c = Y(n), f = Y($e());
1840
- let l;
1841
- const u = Er(i, () => {
1842
- c.value = !1, f.value = $e(), clearTimeout(l), l = setTimeout(() => c.value = !0, e);
1822
+ let u;
1823
+ const l = br(i, () => {
1824
+ c.value = !1, f.value = $e(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
1843
1825
  });
1844
1826
  if (o) {
1845
1827
  const d = o.document;
1846
1828
  for (const w of s)
1847
- ze(o, w, u, { passive: !0 });
1848
- r && ze(d, "visibilitychange", () => {
1849
- d.hidden || u();
1829
+ Je(o, w, l, { passive: !0 });
1830
+ r && Je(d, "visibilitychange", () => {
1831
+ d.hidden || l();
1850
1832
  });
1851
1833
  }
1852
- return l = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1834
+ return u = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1853
1835
  }
1854
- var We;
1836
+ var Ke;
1855
1837
  (function(e) {
1856
1838
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1857
- })(We || (We = {}));
1858
- var kr = Object.defineProperty, Ke = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Qe = (e, t, n) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nr = (e, t) => {
1859
- for (var n in t || (t = {}))
1860
- Cr.call(t, n) && Qe(e, n, t[n]);
1861
- if (Ke)
1862
- for (var n of Ke(t))
1863
- Pr.call(t, n) && Qe(e, n, t[n]);
1839
+ })(Ke || (Ke = {}));
1840
+ var xr = Object.defineProperty, Qe = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pr = (e, t) => {
1841
+ for (var n in t)
1842
+ kr.call(t, n) && Xe(e, n, t[n]);
1843
+ if (Qe)
1844
+ for (var n of Qe(t))
1845
+ Cr.call(t, n) && Xe(e, n, t[n]);
1864
1846
  return e;
1865
1847
  };
1866
1848
  const Ur = {
@@ -1889,11 +1871,11 @@ const Ur = {
1889
1871
  easeOutBack: [0.34, 1.56, 0.64, 1],
1890
1872
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1891
1873
  };
1892
- Nr({
1893
- linear: Sr
1874
+ Pr({
1875
+ linear: Rr
1894
1876
  }, Ur);
1895
1877
  let Re;
1896
- const _t = { triggerProxySso: "triggerProxySso" }, Lr = () => {
1878
+ const _t = { triggerProxySso: "triggerProxySso" }, Nr = () => {
1897
1879
  Re = (e) => {
1898
1880
  var n;
1899
1881
  const { origin: t } = new URL(location.href);
@@ -1902,13 +1884,13 @@ const _t = { triggerProxySso: "triggerProxySso" }, Lr = () => {
1902
1884
  t
1903
1885
  );
1904
1886
  };
1905
- }, Fr = (e) => {
1887
+ }, Lr = (e) => {
1906
1888
  window.top === window.self && window.addEventListener("message", (t) => {
1907
1889
  const { type: n, data: r } = t.data;
1908
1890
  n === _t.triggerProxySso && (e == null || e(r));
1909
1891
  });
1910
1892
  };
1911
- window.top !== window.self && Lr();
1893
+ window.top !== window.self && Nr();
1912
1894
  let xt = (e = 21) => {
1913
1895
  let t = "", n = crypto.getRandomValues(new Uint8Array(e));
1914
1896
  for (; e--; ) {
@@ -1924,14 +1906,14 @@ const kt = (e) => new URL(location.href).searchParams.get(e), v = {
1924
1906
  // 清除登录信息
1925
1907
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
1926
1908
  // 通过code获取token
1927
- }, { baseURL: Xe, noRedireLogin: Dr = !1 } = Te(), $ = location.origin + "/home", D = {
1909
+ }, { baseURL: Ge, noRedireLogin: Fr = !1 } = Te(), z = location.origin + "/home", D = {
1928
1910
  response_type: "code",
1929
1911
  scope: "sever",
1930
1912
  client_id: "sys",
1931
1913
  client_secret: Ft("das123"),
1932
1914
  state: +/* @__PURE__ */ new Date()
1933
- }, vr = () => {
1934
- const e = Ge(location.href, "redirect_url") || "";
1915
+ }, Dr = () => {
1916
+ const e = Ze(location.href, "redirect_url") || "";
1935
1917
  if (e)
1936
1918
  window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
1937
1919
  else {
@@ -1940,7 +1922,7 @@ const kt = (e) => new URL(location.href).searchParams.get(e), v = {
1940
1922
  }
1941
1923
  }, Ct = Y(!1), Pt = (e) => {
1942
1924
  if (e <= 0) return;
1943
- const { idle: t } = xr(e);
1925
+ const { idle: t } = _r(e);
1944
1926
  Se(
1945
1927
  () => t.value,
1946
1928
  (n) => {
@@ -1949,23 +1931,23 @@ const kt = (e) => new URL(location.href).searchParams.get(e), v = {
1949
1931
  );
1950
1932
  };
1951
1933
  localStorage.getItem("idelTime") && Pt(Number(localStorage.getItem("idelTime")));
1952
- const Br = async () => {
1934
+ const vr = async () => {
1953
1935
  const e = kt("code") || "";
1954
1936
  if (!e) return M();
1955
- const t = Ge(location.href, "kingdee_token") || "";
1937
+ const t = Ze(location.href, "kingdee_token") || "";
1956
1938
  let n = {};
1957
1939
  const r = {
1958
1940
  grant_type: "authorization_code",
1959
1941
  code: e,
1960
1942
  client_id: D.client_id,
1961
1943
  client_secret: D.client_secret,
1962
- redirect_uri: $,
1944
+ redirect_uri: z,
1963
1945
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
1964
1946
  nonce: xt()
1965
1947
  };
1966
1948
  t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
1967
1949
  try {
1968
- await b.create().get(v.token, { baseURL: Xe });
1950
+ await b.create().get(v.token, { baseURL: Ge });
1969
1951
  } catch {
1970
1952
  }
1971
1953
  try {
@@ -1973,11 +1955,11 @@ const Br = async () => {
1973
1955
  v.token,
1974
1956
  {},
1975
1957
  {
1976
- baseURL: Xe,
1958
+ baseURL: Ge,
1977
1959
  params: r,
1978
1960
  headers: {
1979
1961
  "Content-Type": "application/x-www-form-urlencoded",
1980
- "csrf-token": gr.get("csrf-token")
1962
+ "csrf-token": wr.get("csrf-token")
1981
1963
  }
1982
1964
  }
1983
1965
  );
@@ -1987,15 +1969,15 @@ const Br = async () => {
1987
1969
  refreshToken: i,
1988
1970
  info: n.data
1989
1971
  };
1990
- J().save(f), await Ze(s);
1991
- const l = Number(c) - (/* @__PURE__ */ new Date()).getTime();
1992
- return l && l > 0 && (Pt(l), l && localStorage.setItem("idelTime", l.toString())), vr(), s;
1972
+ J().save(f), await Ye(s);
1973
+ const u = Number(c) - (/* @__PURE__ */ new Date()).getTime();
1974
+ return u && u > 0 && (Pt(u), u && localStorage.setItem("idelTime", u.toString())), Dr(), s;
1993
1975
  } catch {
1994
- return z({ ...D, redirect_uri: $ });
1976
+ return $({ ...D, redirect_uri: z });
1995
1977
  }
1996
- }, q = Y(!1), us = async (e) => {
1978
+ }, q = Y(!1), Jr = async (e) => {
1997
1979
  if (e.public) return "";
1998
- if (Ct.value) return z({ ...D, redirect_uri: $ });
1980
+ if (Ct.value) return $({ ...D, redirect_uri: z });
1999
1981
  if (q.value)
2000
1982
  return await new Promise(async (s) => {
2001
1983
  Se(
@@ -2010,17 +1992,17 @@ const Br = async () => {
2010
1992
  });
2011
1993
  const { accessTokenExpiredAt: t } = J().getData(), n = kt("code") || "";
2012
1994
  if ((!M() || t === 0) && !n)
2013
- return z({ ...D, redirect_uri: $ });
1995
+ return $({ ...D, redirect_uri: z });
2014
1996
  let r = M();
2015
1997
  q.value = !0;
2016
1998
  try {
2017
- typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await Ir(D)), r = await Br(), q.value = !1;
1999
+ typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await Br(D)), r = await vr(), q.value = !1;
2018
2000
  } catch {
2019
2001
  q.value = !1;
2020
2002
  }
2021
2003
  return r;
2022
- }, z = (e) => {
2023
- if (Dr) return;
2004
+ }, $ = (e) => {
2005
+ if (Fr) return;
2024
2006
  const { baseURL: t, ssoLocale: n } = Te();
2025
2007
  if (Re) return Re(e);
2026
2008
  e.logout = "true", n && (e.locale = "locale");
@@ -2032,8 +2014,8 @@ const Br = async () => {
2032
2014
  }
2033
2015
  window.__isAutoCloseApp = !1, location.replace(s);
2034
2016
  };
2035
- Fr(z);
2036
- const Ir = async (e) => {
2017
+ Lr($);
2018
+ const Br = async (e) => {
2037
2019
  const { baseURL: t } = Te(), { refreshToken: n } = J().getData();
2038
2020
  try {
2039
2021
  await b.create().get(v.token, { baseURL: t });
@@ -2060,35 +2042,35 @@ const Ir = async (e) => {
2060
2042
  refreshToken: i,
2061
2043
  info: r.data
2062
2044
  };
2063
- return J().save(c), await Ze(s), s;
2045
+ return J().save(c), await Ye(s), s;
2064
2046
  } catch {
2065
- return z({ ...e, redirect_uri: $ });
2047
+ return $({ ...e, redirect_uri: z });
2066
2048
  }
2067
2049
  }, J = () => ({
2068
2050
  getData: () => ({
2069
2051
  accessToken: M(),
2070
- accessTokenExpiredAt: le("accessTokenExpiredAt") ? Number(le("accessTokenExpiredAt")) : "",
2071
- refreshToken: le("refreshToken")
2052
+ accessTokenExpiredAt: ue("accessTokenExpiredAt") ? Number(ue("accessTokenExpiredAt")) : "",
2053
+ refreshToken: ue("refreshToken")
2072
2054
  }),
2073
2055
  save: (e) => {
2074
- Bt(
2056
+ vt(
2075
2057
  e.accessToken || "",
2076
2058
  {
2077
2059
  accessTokenExpiredAt: e.accessTokenExpiredAt,
2078
2060
  refreshToken: e.refreshToken
2079
2061
  }
2080
- ), jt(e);
2062
+ ), It(e);
2081
2063
  },
2082
2064
  remove: () => {
2083
- vt(), It();
2065
+ Bt(), jt();
2084
2066
  }
2085
2067
  });
2086
2068
  export {
2087
2069
  kt as getQuery,
2088
- us as getToken,
2089
- Br as getTokenFromCode,
2070
+ Jr as getToken,
2071
+ vr as getTokenFromCode,
2090
2072
  D as getTokenParams,
2091
- z as login,
2092
- $ as real_uri,
2073
+ $ as login,
2074
+ z as real_uri,
2093
2075
  J as tokenStorage
2094
2076
  };