@das-fed/upf-utils 6.4.0-dev.227 → 6.4.0-dev.229

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 (93) hide show
  1. package/api-services/es5.js +1082 -1077
  2. package/api-services/index.js +846 -842
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1418 -1403
  5. package/api-services/modules/app-manage/index.js +1198 -1180
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +161 -158
  8. package/api-services/modules/authentication/index.js +138 -138
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +1180 -1165
  11. package/api-services/modules/bems/index.js +976 -958
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +702 -699
  14. package/api-services/modules/contract/index.js +619 -619
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1389 -1374
  17. package/api-services/modules/duty-manage/index.js +1180 -1162
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1174 -1159
  20. package/api-services/modules/enterpriseright/index.js +971 -953
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1337 -1346
  23. package/api-services/modules/file/es5.js +1222 -1231
  24. package/api-services/modules/file/index.js +987 -1005
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +1384 -1391
  27. package/api-services/modules/gateway-edge/index.js +1165 -1179
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1046 -1064
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1206 -1191
  32. package/api-services/modules/iot/index.js +1006 -988
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +1148 -1133
  35. package/api-services/modules/justauth/index.js +954 -936
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +1157 -1163
  38. package/api-services/modules/knowledge/index.js +955 -969
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1384 -1393
  41. package/api-services/modules/link/index.js +1165 -1183
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1157 -1163
  44. package/api-services/modules/permission/index.js +955 -969
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +171 -168
  47. package/api-services/modules/platformManage/index.js +150 -150
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +235 -232
  50. package/api-services/modules/portal/index.js +209 -209
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +919 -913
  53. package/api-services/modules/space-manage/index.js +728 -724
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +1117 -1126
  56. package/api-services/modules/super-admin/index.js +916 -934
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +165 -162
  59. package/api-services/modules/supplier/index.js +141 -141
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +1134 -1143
  62. package/api-services/modules/supplychain-manage/index.js +932 -950
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +1145 -1133
  65. package/api-services/modules/systemConfiguration/index.js +948 -934
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +1174 -1159
  68. package/api-services/modules/tool/index.js +971 -953
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +1390 -1397
  71. package/api-services/src/create-service/index.js +1164 -1178
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +1635 -1596
  74. package/common-info/getPermissionMethod/es5.js +1160 -1148
  75. package/common-info/getPermissionMethod/index.js +956 -942
  76. package/common-info/getPermissionMethod/index.js.gz +0 -0
  77. package/common-info/index.d.ts +9 -2
  78. package/common-info/index.js +1417 -1397
  79. package/common-info/index.js.gz +0 -0
  80. package/create-api-service/es5.js +165 -161
  81. package/create-api-service/index.d.ts +6 -6
  82. package/create-api-service/index.js +151 -150
  83. package/create-api-service/index.js.gz +0 -0
  84. package/directive/auth/es5.js +49 -56
  85. package/directive/auth/index.js +33 -41
  86. package/directive/auth/index.js.gz +0 -0
  87. package/esm-map.json +4 -1
  88. package/hooks/use-get-auth/es5.js +57 -191
  89. package/hooks/use-get-auth/index.d.ts +2 -7
  90. package/hooks/use-get-auth/index.js +16 -50
  91. package/package.json +3 -3
  92. package/hooks/use-get-auth/apis.d.ts +0 -4
  93. package/hooks/use-get-auth/index.js.gz +0 -0
@@ -1,6 +1,6 @@
1
1
  import { curringHttp as Yn } from "@das-fed/upf-utils/curring-http";
2
2
  import { getI18nBridge as Zr } from "@das-fed/upf-utils/i18n-bridge";
3
- import { getToken as eo, getQuery as to, login as ro, getTokenParams as no, real_uri as oo } from "@das-fed/upf-utils/create-api-service/sso";
3
+ import { getQuery as eo, login as to, getTokenParams as ro, real_uri as no, getToken as oo } from "@das-fed/upf-utils/create-api-service/sso";
4
4
  import jt from "dayjs";
5
5
  import io from "dayjs/plugin/utc";
6
6
  import ao from "dayjs/plugin/timezone";
@@ -156,8 +156,8 @@ const _o = (t, e, r, { allOwnKeys: n } = {}) => (_e(e, (o, i) => {
156
156
  };
157
157
  return he(t) ? n(t) : n(String(t).split(e)), r;
158
158
  }, Ho = () => {
159
- }, Wo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
160
- function zo(t) {
159
+ }, zo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
160
+ function Wo(t) {
161
161
  return !!(t && $(t.append) && t[tn] === "FormData" && t[Qe]);
162
162
  }
163
163
  const Go = (t) => {
@@ -234,11 +234,11 @@ const Go = (t) => {
234
234
  toObjectSet: jo,
235
235
  toCamelCase: Mo,
236
236
  noop: Ho,
237
- toFiniteNumber: Wo,
237
+ toFiniteNumber: zo,
238
238
  findKey: on,
239
239
  global: ee,
240
240
  isContextDefined: an,
241
- isSpecCompliantForm: zo,
241
+ isSpecCompliantForm: Wo,
242
242
  toJSONObject: Go,
243
243
  isAsyncFn: Jo,
244
244
  isThenable: Vo,
@@ -364,14 +364,14 @@ function Ye(t, e, r) {
364
364
  if (!f.isUndefined(d)) {
365
365
  if (p.indexOf(d) !== -1)
366
366
  throw Error("Circular reference detected in " + m.join("."));
367
- p.push(d), f.forEach(d, function(b, A) {
367
+ p.push(d), f.forEach(d, function(b, O) {
368
368
  (!(f.isUndefined(b) || b === null) && o.call(
369
369
  e,
370
370
  b,
371
- f.isString(A) ? A.trim() : A,
371
+ f.isString(O) ? O.trim() : O,
372
372
  m,
373
373
  y
374
- )) === !0 && v(b, m ? m.concat(A) : [A]);
374
+ )) === !0 && v(b, m ? m.concat(O) : [O]);
375
375
  }), p.pop();
376
376
  }
377
377
  }
@@ -393,10 +393,10 @@ function or(t) {
393
393
  return e[n];
394
394
  });
395
395
  }
396
- function Wt(t, e) {
396
+ function zt(t, e) {
397
397
  this._pairs = [], t && Ye(t, this, e);
398
398
  }
399
- const pn = Wt.prototype;
399
+ const pn = zt.prototype;
400
400
  pn.append = function(e, r) {
401
401
  this._pairs.push([e, r]);
402
402
  };
@@ -420,7 +420,7 @@ function dn(t, e, r) {
420
420
  });
421
421
  const o = r && r.serialize;
422
422
  let i;
423
- if (o ? i = o(e, r) : i = f.isURLSearchParams(e) ? e.toString() : new Wt(e, r).toString(n), i) {
423
+ if (o ? i = o(e, r) : i = f.isURLSearchParams(e) ? e.toString() : new zt(e, r).toString(n), i) {
424
424
  const a = t.indexOf("#");
425
425
  a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
426
426
  }
@@ -484,7 +484,7 @@ const yn = {
484
484
  silentJSONParsing: !0,
485
485
  forcedJSONParsing: !0,
486
486
  clarifyTimeoutError: !1
487
- }, ti = typeof URLSearchParams < "u" ? URLSearchParams : Wt, ri = typeof FormData < "u" ? FormData : null, ni = typeof Blob < "u" ? Blob : null, oi = {
487
+ }, ti = typeof URLSearchParams < "u" ? URLSearchParams : zt, ri = typeof FormData < "u" ? FormData : null, ni = typeof Blob < "u" ? Blob : null, oi = {
488
488
  isBrowser: !0,
489
489
  classes: {
490
490
  URLSearchParams: ti,
@@ -492,10 +492,10 @@ const yn = {
492
492
  Blob: ni
493
493
  },
494
494
  protocols: ["http", "https", "file", "blob", "url", "data"]
495
- }, zt = typeof window < "u" && typeof document < "u", It = typeof navigator == "object" && navigator || void 0, ii = zt && (!It || ["ReactNative", "NativeScript", "NS"].indexOf(It.product) < 0), ai = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
496
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", si = zt && window.location.href || "http://localhost", li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
495
+ }, Wt = typeof window < "u" && typeof document < "u", It = typeof navigator == "object" && navigator || void 0, ii = Wt && (!It || ["ReactNative", "NativeScript", "NS"].indexOf(It.product) < 0), ai = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
496
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", si = Wt && window.location.href || "http://localhost", li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
497
497
  __proto__: null,
498
- hasBrowserEnv: zt,
498
+ hasBrowserEnv: Wt,
499
499
  hasStandardBrowserEnv: ii,
500
500
  hasStandardBrowserWebWorkerEnv: ai,
501
501
  navigator: It,
@@ -877,7 +877,7 @@ function Si(t, e) {
877
877
  }, n - p)));
878
878
  }, () => o && a(o)];
879
879
  }
880
- const ze = (t, e, r = 3) => {
880
+ const We = (t, e, r = 3) => {
881
881
  let n = 0;
882
882
  const o = bi(50, 250);
883
883
  return Si((i) => {
@@ -1047,7 +1047,7 @@ const wn = (t) => {
1047
1047
  return;
1048
1048
  const g = D.from(
1049
1049
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1050
- ), O = {
1050
+ ), P = {
1051
1051
  data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1052
1052
  status: h.status,
1053
1053
  statusText: h.statusText,
@@ -1059,32 +1059,32 @@ const wn = (t) => {
1059
1059
  r(T), m();
1060
1060
  }, function(T) {
1061
1061
  n(T), m();
1062
- }, O), h = null;
1062
+ }, P), h = null;
1063
1063
  }
1064
1064
  "onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
1065
1065
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
1066
1066
  }, h.onabort = function() {
1067
1067
  h && (n(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
1068
1068
  }, h.onerror = function(E) {
1069
- const O = E && E.message ? E.message : "Network Error", U = new w(O, w.ERR_NETWORK, t, h);
1069
+ const P = E && E.message ? E.message : "Network Error", U = new w(P, w.ERR_NETWORK, t, h);
1070
1070
  U.event = E || null, n(U), h = null;
1071
1071
  }, h.ontimeout = function() {
1072
1072
  let E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1073
- const O = o.transitional || yn;
1073
+ const P = o.transitional || yn;
1074
1074
  o.timeoutErrorMessage && (E = o.timeoutErrorMessage), n(new w(
1075
1075
  E,
1076
- O.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1076
+ P.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1077
1077
  t,
1078
1078
  h
1079
1079
  )), h = null;
1080
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function(E, O) {
1081
- h.setRequestHeader(O, E);
1082
- }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), c && ([y, d] = ze(c, !0), h.addEventListener("progress", y)), u && h.upload && ([p, v] = ze(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
1080
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function(E, P) {
1081
+ h.setRequestHeader(P, E);
1082
+ }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), c && ([y, d] = We(c, !0), h.addEventListener("progress", y)), u && h.upload && ([p, v] = We(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
1083
1083
  h && (n(!g || g.type ? new me(null, t, h) : g), h.abort(), h = null);
1084
1084
  }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1085
- const A = wi(o.url);
1086
- if (A && I.protocols.indexOf(A) === -1) {
1087
- n(new w("Unsupported protocol " + A + ":", w.ERR_BAD_REQUEST, t));
1085
+ const O = wi(o.url);
1086
+ if (O && I.protocols.indexOf(O) === -1) {
1087
+ n(new w("Unsupported protocol " + O + ":", w.ERR_BAD_REQUEST, t));
1088
1088
  return;
1089
1089
  }
1090
1090
  h.send(i || null);
@@ -1232,10 +1232,10 @@ const wn = (t) => {
1232
1232
  url: m,
1233
1233
  method: h,
1234
1234
  data: b,
1235
- signal: A,
1235
+ signal: O,
1236
1236
  cancelToken: g,
1237
1237
  timeout: E,
1238
- onDownloadProgress: O,
1238
+ onDownloadProgress: P,
1239
1239
  onUploadProgress: U,
1240
1240
  responseType: T,
1241
1241
  headers: V,
@@ -1243,7 +1243,7 @@ const wn = (t) => {
1243
1243
  fetchOptions: M
1244
1244
  } = wn(d), Z = e || fetch;
1245
1245
  T = T ? (T + "").toLowerCase() : "text";
1246
- let k = xi([A, g && g.toAbortSignal()], E), C = null;
1246
+ let k = xi([O, g && g.toAbortSignal()], E), C = null;
1247
1247
  const F = k && k.unsubscribe && (() => {
1248
1248
  k.unsubscribe();
1249
1249
  });
@@ -1258,7 +1258,7 @@ const wn = (t) => {
1258
1258
  if (f.isFormData(b) && (se = K.headers.get("content-type")) && V.setContentType(se), K.body) {
1259
1259
  const [it, $e] = sr(
1260
1260
  B,
1261
- ze(lr(U))
1261
+ We(lr(U))
1262
1262
  );
1263
1263
  b = ur(K.body, fr, it, $e);
1264
1264
  }
@@ -1276,14 +1276,14 @@ const wn = (t) => {
1276
1276
  C = i && new r(m, ae);
1277
1277
  let j = await (i ? Z(C, M) : Z(m, ae));
1278
1278
  const ve = l && (T === "stream" || T === "response");
1279
- if (l && (O || ve && F)) {
1279
+ if (l && (P || ve && F)) {
1280
1280
  const K = {};
1281
1281
  ["status", "statusText", "headers"].forEach((tr) => {
1282
1282
  K[tr] = j[tr];
1283
1283
  });
1284
- const se = f.toFiniteNumber(j.headers.get("content-length")), [it, $e] = O && sr(
1284
+ const se = f.toFiniteNumber(j.headers.get("content-length")), [it, $e] = P && sr(
1285
1285
  se,
1286
- ze(lr(O), !0)
1286
+ We(lr(P), !0)
1287
1287
  ) || [];
1288
1288
  j = new n(
1289
1289
  ur(j.body, fr, it, () => {
@@ -1734,26 +1734,26 @@ function On(t) {
1734
1734
  return On(ne(t, o));
1735
1735
  }, r;
1736
1736
  }
1737
- const P = On(Ce);
1738
- P.Axios = te;
1739
- P.CanceledError = me;
1740
- P.CancelToken = Jt;
1741
- P.isCancel = mn;
1742
- P.VERSION = En;
1743
- P.toFormData = Ye;
1744
- P.AxiosError = w;
1745
- P.Cancel = P.CanceledError;
1746
- P.all = function(e) {
1737
+ const R = On(Ce);
1738
+ R.Axios = te;
1739
+ R.CanceledError = me;
1740
+ R.CancelToken = Jt;
1741
+ R.isCancel = mn;
1742
+ R.VERSION = En;
1743
+ R.toFormData = Ye;
1744
+ R.AxiosError = w;
1745
+ R.Cancel = R.CanceledError;
1746
+ R.all = function(e) {
1747
1747
  return Promise.all(e);
1748
1748
  };
1749
- P.spread = Bi;
1750
- P.isAxiosError = Mi;
1751
- P.mergeConfig = ne;
1752
- P.AxiosHeaders = D;
1753
- P.formToJSON = (t) => hn(f.isHTMLForm(t) ? new FormData(t) : t);
1754
- P.getAdapter = Sn.getAdapter;
1755
- P.HttpStatusCode = $t;
1756
- P.default = P;
1749
+ R.spread = Bi;
1750
+ R.isAxiosError = Mi;
1751
+ R.mergeConfig = ne;
1752
+ R.AxiosHeaders = D;
1753
+ R.formToJSON = (t) => hn(f.isHTMLForm(t) ? new FormData(t) : t);
1754
+ R.getAdapter = Sn.getAdapter;
1755
+ R.HttpStatusCode = $t;
1756
+ R.default = R;
1757
1757
  var vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1758
1758
  function ki(t) {
1759
1759
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -1781,8 +1781,8 @@ var ge = TypeError;
1781
1781
  const ji = {}, Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1782
1782
  __proto__: null,
1783
1783
  default: ji
1784
- }, Symbol.toStringTag, { value: "Module" })), Wi = /* @__PURE__ */ qi(Hi);
1785
- var Vt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ge = Vt && ct && typeof ct.get == "function" ? ct.get : null, wr = Vt && Map.prototype.forEach, Kt = typeof Set == "function" && Set.prototype, ut = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = Kt && ut && typeof ut.get == "function" ? ut.get : null, br = Kt && Set.prototype.forEach, zi = typeof WeakMap == "function" && WeakMap.prototype, Ee = zi ? WeakMap.prototype.has : null, Gi = typeof WeakSet == "function" && WeakSet.prototype, Oe = Gi ? WeakSet.prototype.has : null, Ji = typeof WeakRef == "function" && WeakRef.prototype, Sr = Ji ? WeakRef.prototype.deref : null, Vi = Boolean.prototype.valueOf, Ki = Object.prototype.toString, Qi = Function.prototype.toString, Xi = String.prototype.match, Qt = String.prototype.slice, Q = String.prototype.replace, Zi = String.prototype.toUpperCase, Er = String.prototype.toLowerCase, An = RegExp.prototype.test, Or = Array.prototype.concat, G = Array.prototype.join, Yi = Array.prototype.slice, Ar = Math.floor, Dt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ft = Object.getOwnPropertySymbols, Ut = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, de = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ae = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === de || !0) ? Symbol.toStringTag : null, Rn = Object.prototype.propertyIsEnumerable, Rr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1784
+ }, Symbol.toStringTag, { value: "Module" })), zi = /* @__PURE__ */ qi(Hi);
1785
+ var Vt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ge = Vt && ct && typeof ct.get == "function" ? ct.get : null, wr = Vt && Map.prototype.forEach, Kt = typeof Set == "function" && Set.prototype, ut = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = Kt && ut && typeof ut.get == "function" ? ut.get : null, br = Kt && Set.prototype.forEach, Wi = typeof WeakMap == "function" && WeakMap.prototype, Ee = Wi ? WeakMap.prototype.has : null, Gi = typeof WeakSet == "function" && WeakSet.prototype, Oe = Gi ? WeakSet.prototype.has : null, Ji = typeof WeakRef == "function" && WeakRef.prototype, Sr = Ji ? WeakRef.prototype.deref : null, Vi = Boolean.prototype.valueOf, Ki = Object.prototype.toString, Qi = Function.prototype.toString, Xi = String.prototype.match, Qt = String.prototype.slice, Q = String.prototype.replace, Zi = String.prototype.toUpperCase, Er = String.prototype.toLowerCase, An = RegExp.prototype.test, Or = Array.prototype.concat, G = Array.prototype.join, Yi = Array.prototype.slice, Ar = Math.floor, Dt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ft = Object.getOwnPropertySymbols, Ut = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, de = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ae = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === de || !0) ? Symbol.toStringTag : null, Rn = Object.prototype.propertyIsEnumerable, Rr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1786
1786
  return t.__proto__;
1787
1787
  } : null);
1788
1788
  function Pr(t, e) {
@@ -1798,7 +1798,7 @@ function Pr(t, e) {
1798
1798
  }
1799
1799
  return Q.call(e, r, "$&_");
1800
1800
  }
1801
- var Lt = Wi, Tr = Lt.custom, xr = xn(Tr) ? Tr : null, Pn = {
1801
+ var Lt = zi, Tr = Lt.custom, xr = xn(Tr) ? Tr : null, Pn = {
1802
1802
  __proto__: null,
1803
1803
  double: '"',
1804
1804
  single: "'"
@@ -1864,8 +1864,8 @@ var Lt = Wi, Tr = Lt.custom, xr = xn(Tr) ? Tr : null, Pn = {
1864
1864
  return typeof e == "object" && !de ? Se(m) : m;
1865
1865
  }
1866
1866
  if (ha(e)) {
1867
- for (var h = "<" + Er.call(String(e.nodeName)), b = e.attributes || [], A = 0; A < b.length; A++)
1868
- h += " " + b[A].name + "=" + Tn(ta(b[A].value), "double", i);
1867
+ for (var h = "<" + Er.call(String(e.nodeName)), b = e.attributes || [], O = 0; O < b.length; O++)
1868
+ h += " " + b[O].name + "=" + Tn(ta(b[O].value), "double", i);
1869
1869
  return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + Er.call(String(e.nodeName)) + ">", h;
1870
1870
  }
1871
1871
  if (Bt(e)) {
@@ -1885,10 +1885,10 @@ var Lt = Wi, Tr = Lt.custom, xr = xn(Tr) ? Tr : null, Pn = {
1885
1885
  return e.inspect();
1886
1886
  }
1887
1887
  if (ua(e)) {
1888
- var O = [];
1888
+ var P = [];
1889
1889
  return wr && wr.call(e, function(C, F) {
1890
- O.push(y(F, e, !0) + " => " + y(C, e));
1891
- }), Cr("Map", Ge.call(e), O, p);
1890
+ P.push(y(F, e, !0) + " => " + y(C, e));
1891
+ }), Cr("Map", Ge.call(e), P, p);
1892
1892
  }
1893
1893
  if (da(e)) {
1894
1894
  var U = [];
@@ -2247,7 +2247,7 @@ function Ha() {
2247
2247
  }), dt;
2248
2248
  }
2249
2249
  var yt, Nr;
2250
- function Wa() {
2250
+ function za() {
2251
2251
  if (Nr) return yt;
2252
2252
  Nr = 1;
2253
2253
  var t = typeof Symbol < "u" && Symbol, e = Ha();
@@ -2267,7 +2267,7 @@ function $n() {
2267
2267
  return mt = t.getPrototypeOf || null, mt;
2268
2268
  }
2269
2269
  var gt, Dr;
2270
- function za() {
2270
+ function Wa() {
2271
2271
  if (Dr) return gt;
2272
2272
  Dr = 1;
2273
2273
  var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, r = Math.max, n = "[object Function]", o = function(u, c) {
@@ -2315,7 +2315,7 @@ var vt, Ur;
2315
2315
  function nt() {
2316
2316
  if (Ur) return vt;
2317
2317
  Ur = 1;
2318
- var t = za();
2318
+ var t = Wa();
2319
2319
  return vt = Function.prototype.bind || t, vt;
2320
2320
  }
2321
2321
  var wt, Lr;
@@ -2393,7 +2393,7 @@ var S, is = Fn, as = Pa, ss = Ta, ls = xa, cs = _a, ye = Ca, fe = ge, us = Fa, f
2393
2393
  return Rt;
2394
2394
  }
2395
2395
  }
2396
- }() : Rt, le = Wa()(), _ = ns(), bs = $n(), Ss = In(), Bn = Dn(), Fe = Xt(), ue = {}, Es = typeof Uint8Array > "u" || !_ ? S : _(Uint8Array), re = {
2396
+ }() : Rt, le = za()(), _ = ns(), bs = $n(), Ss = In(), Bn = Dn(), Fe = Xt(), ue = {}, Es = typeof Uint8Array > "u" || !_ ? S : _(Uint8Array), re = {
2397
2397
  __proto__: null,
2398
2398
  "%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
2399
2399
  "%Array%": Array,
@@ -2615,7 +2615,7 @@ var As = function t(e) {
2615
2615
  /** @type {const} */
2616
2616
  [n]
2617
2617
  ) : n;
2618
- }, Is = Zt, Ie = qn, $s = tt, Ds = ge, Wr = Is("%Map%", !0), Us = Ie("Map.prototype.get", !0), Ls = Ie("Map.prototype.set", !0), Bs = Ie("Map.prototype.has", !0), Ms = Ie("Map.prototype.delete", !0), ks = Ie("Map.prototype.size", !0), jn = !!Wr && /** @type {Exclude<import('.'), false>} */
2618
+ }, Is = Zt, Ie = qn, $s = tt, Ds = ge, zr = Is("%Map%", !0), Us = Ie("Map.prototype.get", !0), Ls = Ie("Map.prototype.set", !0), Bs = Ie("Map.prototype.has", !0), Ms = Ie("Map.prototype.delete", !0), ks = Ie("Map.prototype.size", !0), jn = !!zr && /** @type {Exclude<import('.'), false>} */
2619
2619
  function() {
2620
2620
  var e, r = {
2621
2621
  assert: function(n) {
@@ -2637,11 +2637,11 @@ function() {
2637
2637
  return e ? Bs(e, n) : !1;
2638
2638
  },
2639
2639
  set: function(n, o) {
2640
- e || (e = new Wr()), Ls(e, n, o);
2640
+ e || (e = new zr()), Ls(e, n, o);
2641
2641
  }
2642
2642
  };
2643
2643
  return r;
2644
- }, qs = Zt, ot = qn, js = tt, Le = jn, Hs = ge, ce = qs("%WeakMap%", !0), Ws = ot("WeakMap.prototype.get", !0), zs = ot("WeakMap.prototype.set", !0), Gs = ot("WeakMap.prototype.has", !0), Js = ot("WeakMap.prototype.delete", !0), Vs = ce ? (
2644
+ }, qs = Zt, ot = qn, js = tt, Le = jn, Hs = ge, ce = qs("%WeakMap%", !0), zs = ot("WeakMap.prototype.get", !0), Ws = ot("WeakMap.prototype.set", !0), Gs = ot("WeakMap.prototype.has", !0), Js = ot("WeakMap.prototype.delete", !0), Vs = ce ? (
2645
2645
  /** @type {Exclude<import('.'), false>} */
2646
2646
  function() {
2647
2647
  var e, r, n = {
@@ -2658,13 +2658,13 @@ function() {
2658
2658
  return !1;
2659
2659
  },
2660
2660
  get: function(o) {
2661
- return ce && o && (typeof o == "object" || typeof o == "function") && e ? Ws(e, o) : r && r.get(o);
2661
+ return ce && o && (typeof o == "object" || typeof o == "function") && e ? zs(e, o) : r && r.get(o);
2662
2662
  },
2663
2663
  has: function(o) {
2664
2664
  return ce && o && (typeof o == "object" || typeof o == "function") && e ? Gs(e, o) : !!r && r.has(o);
2665
2665
  },
2666
2666
  set: function(o, i) {
2667
- ce && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ce()), zs(e, o, i)) : Le && (r || (r = Le()), r.set(o, i));
2667
+ ce && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ce()), Ws(e, o, i)) : Le && (r || (r = Le()), r.set(o, i));
2668
2668
  }
2669
2669
  };
2670
2670
  return n;
@@ -2704,7 +2704,7 @@ function() {
2704
2704
  },
2705
2705
  RFC1738: Pt.RFC1738,
2706
2706
  RFC3986: Pt.RFC3986
2707
- }, ol = Yt, Tt = Object.prototype.hasOwnProperty, Y = Array.isArray, W = function() {
2707
+ }, ol = Yt, Tt = Object.prototype.hasOwnProperty, Y = Array.isArray, z = function() {
2708
2708
  for (var t = [], e = 0; e < 256; ++e)
2709
2709
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2710
2710
  return t;
@@ -2775,18 +2775,18 @@ function() {
2775
2775
  continue;
2776
2776
  }
2777
2777
  if (y < 128) {
2778
- l[l.length] = W[y];
2778
+ l[l.length] = z[y];
2779
2779
  continue;
2780
2780
  }
2781
2781
  if (y < 2048) {
2782
- l[l.length] = W[192 | y >> 6] + W[128 | y & 63];
2782
+ l[l.length] = z[192 | y >> 6] + z[128 | y & 63];
2783
2783
  continue;
2784
2784
  }
2785
2785
  if (y < 55296 || y >= 57344) {
2786
- l[l.length] = W[224 | y >> 12] + W[128 | y >> 6 & 63] + W[128 | y & 63];
2786
+ l[l.length] = z[224 | y >> 12] + z[128 | y >> 6 & 63] + z[128 | y & 63];
2787
2787
  continue;
2788
2788
  }
2789
- p += 1, y = 65536 + ((y & 1023) << 10 | c.charCodeAt(p) & 1023), l[l.length] = W[240 | y >> 18] + W[128 | y >> 12 & 63] + W[128 | y >> 6 & 63] + W[128 | y & 63];
2789
+ p += 1, y = 65536 + ((y & 1023) << 10 | c.charCodeAt(p) & 1023), l[l.length] = z[240 | y >> 18] + z[128 | y >> 12 & 63] + z[128 | y >> 6 & 63] + z[128 | y & 63];
2790
2790
  }
2791
2791
  s += l.join("");
2792
2792
  }
@@ -2811,7 +2811,7 @@ function() {
2811
2811
  return n;
2812
2812
  }
2813
2813
  return r(e);
2814
- }, Wn = {
2814
+ }, zn = {
2815
2815
  arrayToObject: Hn,
2816
2816
  assign: sl,
2817
2817
  combine: dl,
@@ -2822,7 +2822,7 @@ function() {
2822
2822
  isRegExp: fl,
2823
2823
  maybeMap: yl,
2824
2824
  merge: al
2825
- }, zn = tl, We = Wn, Re = Yt, hl = Object.prototype.hasOwnProperty, Gn = {
2825
+ }, Wn = tl, ze = zn, Re = Yt, hl = Object.prototype.hasOwnProperty, Gn = {
2826
2826
  brackets: function(e) {
2827
2827
  return e + "[]";
2828
2828
  },
@@ -2833,9 +2833,9 @@ function() {
2833
2833
  repeat: function(e) {
2834
2834
  return e;
2835
2835
  }
2836
- }, z = Array.isArray, ml = Array.prototype.push, Jn = function(t, e) {
2837
- ml.apply(t, z(e) ? e : [e]);
2838
- }, gl = Date.prototype.toISOString, zr = Re.default, x = {
2836
+ }, W = Array.isArray, ml = Array.prototype.push, Jn = function(t, e) {
2837
+ ml.apply(t, W(e) ? e : [e]);
2838
+ }, gl = Date.prototype.toISOString, Wr = Re.default, x = {
2839
2839
  addQueryPrefix: !1,
2840
2840
  allowDots: !1,
2841
2841
  allowEmptyArrays: !1,
@@ -2846,11 +2846,11 @@ function() {
2846
2846
  delimiter: "&",
2847
2847
  encode: !0,
2848
2848
  encodeDotInKeys: !1,
2849
- encoder: We.encode,
2849
+ encoder: ze.encode,
2850
2850
  encodeValuesOnly: !1,
2851
2851
  filter: void 0,
2852
- format: zr,
2853
- formatter: Re.formatters[zr],
2852
+ format: Wr,
2853
+ formatter: Re.formatters[Wr],
2854
2854
  // deprecated
2855
2855
  indices: !1,
2856
2856
  serializeDate: function(e) {
@@ -2860,24 +2860,24 @@ function() {
2860
2860
  strictNullHandling: !1
2861
2861
  }, vl = function(e) {
2862
2862
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2863
- }, _t = {}, wl = function t(e, r, n, o, i, a, s, u, c, l, p, y, v, d, m, h, b, A) {
2864
- for (var g = e, E = A, O = 0, U = !1; (E = E.get(_t)) !== void 0 && !U; ) {
2863
+ }, _t = {}, wl = function t(e, r, n, o, i, a, s, u, c, l, p, y, v, d, m, h, b, O) {
2864
+ for (var g = e, E = O, P = 0, U = !1; (E = E.get(_t)) !== void 0 && !U; ) {
2865
2865
  var T = E.get(e);
2866
- if (O += 1, typeof T < "u") {
2867
- if (T === O)
2866
+ if (P += 1, typeof T < "u") {
2867
+ if (T === P)
2868
2868
  throw new RangeError("Cyclic object value");
2869
2869
  U = !0;
2870
2870
  }
2871
- typeof E.get(_t) > "u" && (O = 0);
2871
+ typeof E.get(_t) > "u" && (P = 0);
2872
2872
  }
2873
- if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" && z(g) && (g = We.maybeMap(g, function(we) {
2873
+ if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" && W(g) && (g = ze.maybeMap(g, function(we) {
2874
2874
  return we instanceof Date ? v(we) : we;
2875
2875
  })), g === null) {
2876
2876
  if (a)
2877
2877
  return c && !h ? c(r, x.encoder, b, "key", d) : r;
2878
2878
  g = "";
2879
2879
  }
2880
- if (vl(g) || We.isBuffer(g)) {
2880
+ if (vl(g) || ze.isBuffer(g)) {
2881
2881
  if (c) {
2882
2882
  var V = h ? r : c(r, x.encoder, b, "key", d);
2883
2883
  return [m(V) + "=" + m(c(g, x.encoder, b, "value", d))];
@@ -2888,24 +2888,24 @@ function() {
2888
2888
  if (typeof g > "u")
2889
2889
  return L;
2890
2890
  var M;
2891
- if (n === "comma" && z(g))
2892
- h && c && (g = We.maybeMap(g, c)), M = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
2893
- else if (z(l))
2891
+ if (n === "comma" && W(g))
2892
+ h && c && (g = ze.maybeMap(g, c)), M = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
2893
+ else if (W(l))
2894
2894
  M = l;
2895
2895
  else {
2896
2896
  var Z = Object.keys(g);
2897
2897
  M = p ? Z.sort(p) : Z;
2898
2898
  }
2899
- var k = u ? String(r).replace(/\./g, "%2E") : String(r), C = o && z(g) && g.length === 1 ? k + "[]" : k;
2900
- if (i && z(g) && g.length === 0)
2899
+ var k = u ? String(r).replace(/\./g, "%2E") : String(r), C = o && W(g) && g.length === 1 ? k + "[]" : k;
2900
+ if (i && W(g) && g.length === 0)
2901
2901
  return C + "[]";
2902
2902
  for (var F = 0; F < M.length; ++F) {
2903
2903
  var B = M[F], N = typeof B == "object" && B && typeof B.value < "u" ? B.value : g[B];
2904
2904
  if (!(s && N === null)) {
2905
- var ae = y && u ? String(B).replace(/\./g, "%2E") : String(B), j = z(g) ? typeof n == "function" ? n(C, ae) : C : C + (y ? "." + ae : "[" + ae + "]");
2906
- A.set(e, O);
2907
- var ve = zn();
2908
- ve.set(_t, A), Jn(L, t(
2905
+ var ae = y && u ? String(B).replace(/\./g, "%2E") : String(B), j = W(g) ? typeof n == "function" ? n(C, ae) : C : C + (y ? "." + ae : "[" + ae + "]");
2906
+ O.set(e, P);
2907
+ var ve = Wn();
2908
+ ve.set(_t, O), Jn(L, t(
2909
2909
  N,
2910
2910
  j,
2911
2911
  n,
@@ -2914,7 +2914,7 @@ function() {
2914
2914
  a,
2915
2915
  s,
2916
2916
  u,
2917
- n === "comma" && h && z(g) ? null : c,
2917
+ n === "comma" && h && W(g) ? null : c,
2918
2918
  l,
2919
2919
  p,
2920
2920
  y,
@@ -2947,7 +2947,7 @@ function() {
2947
2947
  n = e.format;
2948
2948
  }
2949
2949
  var o = Re.formatters[n], i = x.filter;
2950
- (typeof e.filter == "function" || z(e.filter)) && (i = e.filter);
2950
+ (typeof e.filter == "function" || W(e.filter)) && (i = e.filter);
2951
2951
  var a;
2952
2952
  if (e.arrayFormat in Gn ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = x.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2953
2953
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
@@ -2975,13 +2975,13 @@ function() {
2975
2975
  };
2976
2976
  }, Sl = function(t, e) {
2977
2977
  var r = t, n = bl(e), o, i;
2978
- typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : z(n.filter) && (i = n.filter, o = i);
2978
+ typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : W(n.filter) && (i = n.filter, o = i);
2979
2979
  var a = [];
2980
2980
  if (typeof r != "object" || r === null)
2981
2981
  return "";
2982
2982
  var s = Gn[n.arrayFormat], u = s === "comma" && n.commaRoundTrip;
2983
2983
  o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
2984
- for (var c = zn(), l = 0; l < o.length; ++l) {
2984
+ for (var c = Wn(), l = 0; l < o.length; ++l) {
2985
2985
  var p = o[l], y = r[p];
2986
2986
  n.skipNulls && y === null || Jn(a, wl(
2987
2987
  y,
@@ -3006,7 +3006,7 @@ function() {
3006
3006
  }
3007
3007
  var v = a.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
3008
3008
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), v.length > 0 ? d + v : "";
3009
- }, oe = Wn, kt = Object.prototype.hasOwnProperty, Gr = Array.isArray, R = {
3009
+ }, oe = zn, kt = Object.prototype.hasOwnProperty, Gr = Array.isArray, A = {
3010
3010
  allowDots: !1,
3011
3011
  allowEmptyArrays: !1,
3012
3012
  allowPrototypes: !1,
@@ -3054,14 +3054,14 @@ function() {
3054
3054
  for (u = 0; u < a.length; ++u)
3055
3055
  if (u !== s) {
3056
3056
  var l = a[u], p = l.indexOf("]="), y = p === -1 ? l.indexOf("=") : p + 1, v, d;
3057
- y === -1 ? (v = r.decoder(l, R.decoder, c, "key"), d = r.strictNullHandling ? null : "") : (v = r.decoder(l.slice(0, y), R.decoder, c, "key"), d = oe.maybeMap(
3057
+ y === -1 ? (v = r.decoder(l, A.decoder, c, "key"), d = r.strictNullHandling ? null : "") : (v = r.decoder(l.slice(0, y), A.decoder, c, "key"), d = oe.maybeMap(
3058
3058
  Vn(
3059
3059
  l.slice(y + 1),
3060
3060
  r,
3061
3061
  Gr(n[v]) ? n[v].length : 0
3062
3062
  ),
3063
3063
  function(h) {
3064
- return r.decoder(h, R.decoder, c, "value");
3064
+ return r.decoder(h, A.decoder, c, "value");
3065
3065
  }
3066
3066
  )), d && r.interpretNumericEntities && c === "iso-8859-1" && (d = El(String(d))), l.indexOf("[]=") > -1 && (d = Gr(d) ? [d] : d);
3067
3067
  var m = kt.call(n, v);
@@ -3108,7 +3108,7 @@ function() {
3108
3108
  }
3109
3109
  }, xl = function(e) {
3110
3110
  if (!e)
3111
- return R;
3111
+ return A;
3112
3112
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
3113
3113
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3114
3114
  if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
@@ -3119,32 +3119,32 @@ function() {
3119
3119
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3120
3120
  if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
3121
3121
  throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
3122
- var r = typeof e.charset > "u" ? R.charset : e.charset, n = typeof e.duplicates > "u" ? R.duplicates : e.duplicates;
3122
+ var r = typeof e.charset > "u" ? A.charset : e.charset, n = typeof e.duplicates > "u" ? A.duplicates : e.duplicates;
3123
3123
  if (n !== "combine" && n !== "first" && n !== "last")
3124
3124
  throw new TypeError("The duplicates option must be either combine, first, or last");
3125
- var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : R.allowDots : !!e.allowDots;
3125
+ var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : A.allowDots : !!e.allowDots;
3126
3126
  return {
3127
3127
  allowDots: o,
3128
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : R.allowEmptyArrays,
3129
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : R.allowPrototypes,
3130
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : R.allowSparse,
3131
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : R.arrayLimit,
3128
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : A.allowEmptyArrays,
3129
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : A.allowPrototypes,
3130
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : A.allowSparse,
3131
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : A.arrayLimit,
3132
3132
  charset: r,
3133
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : R.charsetSentinel,
3134
- comma: typeof e.comma == "boolean" ? e.comma : R.comma,
3135
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : R.decodeDotInKeys,
3136
- decoder: typeof e.decoder == "function" ? e.decoder : R.decoder,
3137
- delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter : R.delimiter,
3133
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : A.charsetSentinel,
3134
+ comma: typeof e.comma == "boolean" ? e.comma : A.comma,
3135
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : A.decodeDotInKeys,
3136
+ decoder: typeof e.decoder == "function" ? e.decoder : A.decoder,
3137
+ delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter : A.delimiter,
3138
3138
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
3139
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : R.depth,
3139
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : A.depth,
3140
3140
  duplicates: n,
3141
3141
  ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
3142
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : R.interpretNumericEntities,
3143
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : R.parameterLimit,
3142
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : A.interpretNumericEntities,
3143
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : A.parameterLimit,
3144
3144
  parseArrays: e.parseArrays !== !1,
3145
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : R.plainObjects,
3146
- strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : R.strictDepth,
3147
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : R.strictNullHandling,
3145
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : A.plainObjects,
3146
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : A.strictDepth,
3147
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : A.strictNullHandling,
3148
3148
  throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
3149
3149
  };
3150
3150
  }, _l = function(t, e) {
@@ -3254,40 +3254,40 @@ const Ll = 5e3, Xn = () => Ct ? !1 : (Ct = !0, setTimeout(() => {
3254
3254
  if (Qn) return;
3255
3255
  const t = "/login";
3256
3256
  location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace(`/#${t}`));
3257
- }, Bl = async (t) => {
3257
+ }, Bl = () => eo("code") || "" || Qn ? !1 : Xn() ? (Kn ? to({ ...ro, redirect_uri: no }) : Zn(), !0) : !1, Ml = async (t) => {
3258
3258
  var r;
3259
3259
  return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
3260
- }, Ml = async (t, e) => {
3261
- var m, h, b, A;
3260
+ }, kl = async (t, e) => {
3261
+ var d, m, h, b;
3262
3262
  const { t: r } = Zr();
3263
3263
  let n, o, i = {};
3264
3264
  const a = { 400: r("参数校验错误"), 404: r("接口地址未找到"), 500: r("服务器内部错误") };
3265
- let s = ((m = t == null ? void 0 : t.response) == null ? void 0 : m.data) || {};
3266
- const u = to("code") || "", c = s == null ? void 0 : s.code, l = (h = t.response) == null ? void 0 : h.status;
3267
- if (!u && !Qn && (c === 401 || l === 401)) {
3268
- Xn() && (Kn ? ro({ ...no, redirect_uri: oo }) : Zn()), n = c || l, i = s;
3269
- const g = (e == null ? void 0 : e.i18n) ?? !0;
3270
- if (Vr && g && (s != null && s.status)) {
3271
- const E = !(s != null && s.data) || !s.data.length ? [] : s.data, O = r(s.status, ...E);
3272
- o = O === s.status ? await Xr(r, s.status, E) : O;
3265
+ let s = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
3266
+ const u = s == null ? void 0 : s.code, c = (m = t.response) == null ? void 0 : m.status;
3267
+ if (u === 401 || c === 401) {
3268
+ Bl(), n = u || c, i = s;
3269
+ const O = (e == null ? void 0 : e.i18n) ?? !0;
3270
+ if (Vr && O && (s != null && s.status)) {
3271
+ const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
3272
+ o = E === s.status ? await Xr(r, s.status, g) : E;
3273
3273
  } else
3274
3274
  o = (s == null ? void 0 : s.msg) || a[n] || (t == null ? void 0 : t.message);
3275
3275
  } else if (t.response) {
3276
- if (s instanceof Blob && (s = await new Promise((g) => {
3277
- const E = new FileReader();
3278
- E.readAsText(s, "utf-8"), E.onload = () => {
3276
+ if (s instanceof Blob && (s = await new Promise((O) => {
3277
+ const g = new FileReader();
3278
+ g.readAsText(s, "utf-8"), g.onload = () => {
3279
3279
  try {
3280
- g(JSON.parse(E.result || "{}"));
3280
+ O(JSON.parse(g.result || "{}"));
3281
3281
  } catch {
3282
- g({ code: 400, msg: r("解析错误") });
3282
+ O({ code: 400, msg: r("解析错误") });
3283
3283
  }
3284
3284
  };
3285
3285
  })), s.code !== void 0 && s.code !== null) {
3286
3286
  n = s.code, i = s;
3287
- const g = (e == null ? void 0 : e.i18n) ?? !0;
3288
- if (Vr && g && (s != null && s.status)) {
3289
- const E = !(s != null && s.data) || !s.data.length ? [] : s.data, O = r(s.status, ...E);
3290
- o = O === s.status ? await Xr(r, s.status, E) : O;
3287
+ const O = (e == null ? void 0 : e.i18n) ?? !0;
3288
+ if (Vr && O && (s != null && s.status)) {
3289
+ const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
3290
+ o = E === s.status ? await Xr(r, s.status, g) : E;
3291
3291
  } else
3292
3292
  o = (s == null ? void 0 : s.msg) ?? "";
3293
3293
  } else
@@ -3295,11 +3295,11 @@ const Ll = 5e3, Xn = () => Ct ? !1 : (Ct = !0, setTimeout(() => {
3295
3295
  o || (o = a[t.response.status] || t.message);
3296
3296
  } else t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
3297
3297
  e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
3298
- const y = Date.now(), v = o === Kr, d = y - Qr < Ul;
3299
- return !(e != null && e.ignoreErrorMessage) && o && (!v || !d) && ((A = (b = window.DasMessage) == null ? void 0 : b.error) == null || A.call(b, { message: o, showClose: !0 }), Kr = o, Qr = y), { ...i, code: n, msg: o, error: t };
3298
+ const p = Date.now(), y = o === Kr, v = p - Qr < Ul;
3299
+ return !(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((b = (h = window.DasMessage) == null ? void 0 : h.error) == null || b.call(h, { message: o, showClose: !0 }), Kr = o, Qr = p), { ...i, code: n, msg: o, error: t };
3300
3300
  };
3301
- function Ql(t, e) {
3302
- const r = P.create();
3301
+ function Xl(t, e) {
3302
+ const r = R.create();
3303
3303
  return Yn(r, async (n) => {
3304
3304
  const { currentLang: o } = Zr(), i = Yr();
3305
3305
  if (n.headers || (n.headers = {}), !(n != null && n.public)) {
@@ -3309,7 +3309,7 @@ function Ql(t, e) {
3309
3309
  p = y.get("token") || y.get("accessToken") || y.get("accesstoken") || "";
3310
3310
  }
3311
3311
  if (Kn)
3312
- p || (p = await eo(n));
3312
+ p || (p = await oo(n));
3313
3313
  else {
3314
3314
  p || (p = co());
3315
3315
  let y = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
@@ -3319,7 +3319,7 @@ function Ql(t, e) {
3319
3319
  }
3320
3320
  p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
3321
3321
  }
3322
- n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => $l.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Bl), n.onError || (n.onError = Ml), (n.csrf ?? !1) && (n.headers["csrf-token"] = Jr.get("csrf-token"));
3322
+ n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => $l.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Ml), n.onError || (n.onError = kl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Jr.get("csrf-token"));
3323
3323
  const u = n.params || {};
3324
3324
  if (u.project === void 0) {
3325
3325
  let p = 0;
@@ -3336,5 +3336,6 @@ function Ql(t, e) {
3336
3336
  });
3337
3337
  }
3338
3338
  export {
3339
- Ql as createService
3339
+ Xl as createService,
3340
+ Bl as handleUnauthorized
3340
3341
  };