@das-fed/utils 6.4.0-dev.53 → 6.4.0-dev.54

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 (51) hide show
  1. package/api-services/index.js +39 -39
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +49 -49
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +49 -49
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +49 -49
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +49 -49
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +49 -49
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +49 -49
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +39 -39
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +49 -49
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +39 -39
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +49 -49
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +49 -49
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +49 -49
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +49 -49
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +49 -49
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +54 -54
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +49 -49
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +49 -49
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +49 -49
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +49 -49
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +49 -49
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +49 -49
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +49 -49
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/api-services/src/create-service/index.js +49 -49
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/create-api-service/index.js +49 -49
  50. package/create-api-service/index.js.gz +0 -0
  51. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { setI18nRule as bn, t as re } from "@das-fed/web/packages/i18n/index";
1
+ import { setI18nRule as bn, t as V } from "@das-fed/web/packages/i18n/index";
2
2
  import { curringHttp as wn } from "@das-fed/utils/curring-http";
3
3
  import { getToken as Sn, getQuery as En, login as An, getTokenParams as On, real_uri as Rn } from "@das-fed/utils/create-api-service/sso";
4
4
  import Ot from "dayjs";
@@ -57,7 +57,7 @@ function Pr(t, e) {
57
57
  return o;
58
58
  return null;
59
59
  }
60
- const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Tr = (t) => !we(t) && t !== Q;
60
+ const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Tr = (t) => !we(t) && t !== X;
61
61
  function ct() {
62
62
  const { caseless: t } = Tr(this) && this || {}, e = {}, n = (r, o) => {
63
63
  const a = t && Pr(e, o) || o;
@@ -174,14 +174,14 @@ const po = (t) => {
174
174
  return r;
175
175
  };
176
176
  return n(t, 0);
177
- }, yo = B("AsyncFunction"), ho = (t) => t && (je(t) || _(t)) && _(t.then) && _(t.catch), Cr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
178
- o === Q && a === n && r.length && r.shift()();
177
+ }, yo = B("AsyncFunction"), ho = (t) => t && (je(t) || _(t)) && _(t.then) && _(t.catch), Cr = ((t, e) => t ? setImmediate : e ? ((n, r) => (X.addEventListener("message", ({ source: o, data: a }) => {
178
+ o === X && a === n && r.length && r.shift()();
179
179
  }, !1), (o) => {
180
- r.push(o), Q.postMessage(n, "*");
180
+ r.push(o), X.postMessage(n, "*");
181
181
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
182
182
  typeof setImmediate == "function",
183
- _(Q.postMessage)
184
- ), mo = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Cr, f = {
183
+ _(X.postMessage)
184
+ ), mo = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Cr, f = {
185
185
  isArray: ue,
186
186
  isArrayBuffer: Or,
187
187
  isBuffer: Dn,
@@ -230,7 +230,7 @@ const po = (t) => {
230
230
  noop: lo,
231
231
  toFiniteNumber: co,
232
232
  findKey: Pr,
233
- global: Q,
233
+ global: X,
234
234
  isContextDefined: Tr,
235
235
  ALPHABET: Fr,
236
236
  generateString: uo,
@@ -949,7 +949,7 @@ function Mr(t, e) {
949
949
  return t && !Ho(e) ? Wo(t, e) : e;
950
950
  }
951
951
  const Gt = (t) => t instanceof I ? { ...t } : t;
952
- function ee(t, e) {
952
+ function te(t, e) {
953
953
  e = e || {};
954
954
  const n = {};
955
955
  function r(l, c, p) {
@@ -1014,7 +1014,7 @@ function ee(t, e) {
1014
1014
  }), n;
1015
1015
  }
1016
1016
  const qr = (t) => {
1017
- const e = ee({}, t);
1017
+ const e = te({}, t);
1018
1018
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
1019
1019
  e.headers = i = I.from(i), e.url = $r(Mr(e.baseURL, e.url), t.params, t.paramsSerializer), s && i.set(
1020
1020
  "Authorization",
@@ -1407,7 +1407,7 @@ const yt = {
1407
1407
  assertOptions: oa,
1408
1408
  validators: xt
1409
1409
  }, W = yt.validators;
1410
- class X {
1410
+ class Z {
1411
1411
  constructor(e) {
1412
1412
  this.defaults = e, this.interceptors = {
1413
1413
  request: new jt(),
@@ -1440,7 +1440,7 @@ class X {
1440
1440
  }
1441
1441
  }
1442
1442
  _request(e, n) {
1443
- typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ee(this.defaults, n);
1443
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = te(this.defaults, n);
1444
1444
  const { transitional: r, paramsSerializer: o, headers: a } = n;
1445
1445
  r !== void 0 && yt.assertOptions(r, {
1446
1446
  silentJSONParsing: W.transitional(W.boolean),
@@ -1499,14 +1499,14 @@ class X {
1499
1499
  return c;
1500
1500
  }
1501
1501
  getUri(e) {
1502
- e = ee(this.defaults, e);
1502
+ e = te(this.defaults, e);
1503
1503
  const n = Mr(e.baseURL, e.url);
1504
1504
  return $r(n, e.params, e.paramsSerializer);
1505
1505
  }
1506
1506
  }
1507
1507
  f.forEach(["delete", "get", "head", "options"], function(e) {
1508
- X.prototype[e] = function(n, r) {
1509
- return this.request(ee(r || {}, {
1508
+ Z.prototype[e] = function(n, r) {
1509
+ return this.request(te(r || {}, {
1510
1510
  method: e,
1511
1511
  url: n,
1512
1512
  data: (r || {}).data
@@ -1516,7 +1516,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
1516
1516
  f.forEach(["post", "put", "patch"], function(e) {
1517
1517
  function n(r) {
1518
1518
  return function(a, i, s) {
1519
- return this.request(ee(s || {}, {
1519
+ return this.request(te(s || {}, {
1520
1520
  method: e,
1521
1521
  headers: r ? {
1522
1522
  "Content-Type": "multipart/form-data"
@@ -1526,7 +1526,7 @@ f.forEach(["post", "put", "patch"], function(e) {
1526
1526
  }));
1527
1527
  };
1528
1528
  }
1529
- X.prototype[e] = n(), X.prototype[e + "Form"] = n(!0);
1529
+ Z.prototype[e] = n(), Z.prototype[e + "Form"] = n(!0);
1530
1530
  });
1531
1531
  class Ft {
1532
1532
  constructor(e) {
@@ -1678,13 +1678,13 @@ Object.entries(ht).forEach(([t, e]) => {
1678
1678
  ht[e] = t;
1679
1679
  });
1680
1680
  function Gr(t) {
1681
- const e = new X(t), n = Ar(X.prototype.request, e);
1682
- return f.extend(n, X.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1683
- return Gr(ee(t, o));
1681
+ const e = new Z(t), n = Ar(Z.prototype.request, e);
1682
+ return f.extend(n, Z.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1683
+ return Gr(te(t, o));
1684
1684
  }, n;
1685
1685
  }
1686
1686
  const R = Gr(Ee);
1687
- R.Axios = X;
1687
+ R.Axios = Z;
1688
1688
  R.CanceledError = fe;
1689
1689
  R.CancelToken = Ft;
1690
1690
  R.isCancel = Lr;
@@ -1697,7 +1697,7 @@ R.all = function(e) {
1697
1697
  };
1698
1698
  R.spread = aa;
1699
1699
  R.isAxiosError = ia;
1700
- R.mergeConfig = ee;
1700
+ R.mergeConfig = te;
1701
1701
  R.AxiosHeaders = I;
1702
1702
  R.formToJSON = (t) => Ur(f.isHTMLForm(t) ? new FormData(t) : t);
1703
1703
  R.getAdapter = Hr.getAdapter;
@@ -1799,28 +1799,28 @@ var ca = Error, ua = EvalError, fa = RangeError, pa = ReferenceError, Jr = Synta
1799
1799
  return Kr('"use strict"; return (' + t + ").constructor;")();
1800
1800
  } catch {
1801
1801
  }
1802
- }, Z = Object.getOwnPropertyDescriptor;
1803
- if (Z)
1802
+ }, Y = Object.getOwnPropertyDescriptor;
1803
+ if (Y)
1804
1804
  try {
1805
- Z({}, "");
1805
+ Y({}, "");
1806
1806
  } catch {
1807
- Z = null;
1807
+ Y = null;
1808
1808
  }
1809
1809
  var Ye = function() {
1810
1810
  throw new ie();
1811
- }, Ba = Z ? function() {
1811
+ }, Ba = Y ? function() {
1812
1812
  try {
1813
1813
  return arguments.callee, Ye;
1814
1814
  } catch {
1815
1815
  try {
1816
- return Z(arguments, "callee").get;
1816
+ return Y(arguments, "callee").get;
1817
1817
  } catch {
1818
1818
  return Ye;
1819
1819
  }
1820
1820
  }
1821
1821
  }() : Ye, ne = ma(), Ua = va(), x = Object.getPrototypeOf || (Ua ? function(t) {
1822
1822
  return t.__proto__;
1823
- } : null), ae = {}, La = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), Y = {
1823
+ } : null), ae = {}, La = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), ee = {
1824
1824
  __proto__: null,
1825
1825
  "%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
1826
1826
  "%Array%": Array,
@@ -1895,7 +1895,7 @@ if (x)
1895
1895
  null.error;
1896
1896
  } catch (t) {
1897
1897
  var ka = x(x(t));
1898
- Y["%Error.prototype%"] = ka;
1898
+ ee["%Error.prototype%"] = ka;
1899
1899
  }
1900
1900
  var Ma = function t(e) {
1901
1901
  var n;
@@ -1912,7 +1912,7 @@ var Ma = function t(e) {
1912
1912
  var o = t("%AsyncGenerator%");
1913
1913
  o && x && (n = x(o.prototype));
1914
1914
  }
1915
- return Y[e] = n, n;
1915
+ return ee[e] = n, n;
1916
1916
  }, tr = {
1917
1917
  __proto__: null,
1918
1918
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
@@ -1978,8 +1978,8 @@ var Ma = function t(e) {
1978
1978
  }), o;
1979
1979
  }, Ja = function(e, n) {
1980
1980
  var r = e, o;
1981
- if (Be(tr, r) && (o = tr[r], r = "%" + o[0] + "%"), Be(Y, r)) {
1982
- var a = Y[r];
1981
+ if (Be(tr, r) && (o = tr[r], r = "%" + o[0] + "%"), Be(ee, r)) {
1982
+ var a = ee[r];
1983
1983
  if (a === ae && (a = Ma(r)), typeof a > "u" && !n)
1984
1984
  throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
1985
1985
  return {
@@ -2002,20 +2002,20 @@ var Ma = function t(e) {
2002
2002
  var d = r[c], v = Ue(d, 0, 1), y = Ue(d, -1);
2003
2003
  if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
2004
2004
  throw new se("property names with quotes must have matching quotes");
2005
- if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Be(Y, i))
2006
- s = Y[i];
2005
+ if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Be(ee, i))
2006
+ s = ee[i];
2007
2007
  else if (s != null) {
2008
2008
  if (!(d in s)) {
2009
2009
  if (!n)
2010
2010
  throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
2011
2011
  return;
2012
2012
  }
2013
- if (Z && c + 1 >= r.length) {
2014
- var m = Z(s, d);
2013
+ if (Y && c + 1 >= r.length) {
2014
+ var m = Y(s, d);
2015
2015
  p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
2016
2016
  } else
2017
2017
  p = Be(s, d), s = s[d];
2018
- p && !u && (Y[i] = s);
2018
+ p && !u && (ee[i] = s);
2019
2019
  }
2020
2020
  }
2021
2021
  return s;
@@ -2250,8 +2250,8 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o
2250
2250
  if (typeof globalThis < "u" && e === globalThis || typeof Zt < "u" && e === Zt)
2251
2251
  return "{ [object globalThis] }";
2252
2252
  if (!bi(e) && !br(e)) {
2253
- var N = Pe(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && F && Object(e) === e && F in e ? _t.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", te = Re + (j || U ? "[" + M.call(dr.call([], j || [], U || []), ": ") + "] " : "");
2254
- return N.length === 0 ? te + "{}" : p ? te + "{" + St(N, p) + "}" : te + "{ " + M.call(N, ", ") + " }";
2253
+ var N = Pe(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && F && Object(e) === e && F in e ? _t.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (j || U ? "[" + M.call(dr.call([], j || [], U || []), ": ") + "] " : "");
2254
+ return N.length === 0 ? re + "{}" : p ? re + "{" + St(N, p) + "}" : re + "{ " + M.call(N, ", ") + " }";
2255
2255
  }
2256
2256
  return String(e);
2257
2257
  };
@@ -2542,14 +2542,14 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2542
2542
  },
2543
2543
  RFC1738: at.RFC1738,
2544
2544
  RFC3986: at.RFC3986
2545
- }, Qi = Bt, it = Object.prototype.hasOwnProperty, V = Array.isArray, L = function() {
2545
+ }, Qi = Bt, it = Object.prototype.hasOwnProperty, Q = Array.isArray, L = function() {
2546
2546
  for (var t = [], e = 0; e < 256; ++e)
2547
2547
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2548
2548
  return t;
2549
2549
  }(), Xi = function(e) {
2550
2550
  for (; e.length > 1; ) {
2551
2551
  var n = e.pop(), r = n.obj[n.prop];
2552
- if (V(r)) {
2552
+ if (Q(r)) {
2553
2553
  for (var o = [], a = 0; a < r.length; ++a)
2554
2554
  typeof r[a] < "u" && o.push(r[a]);
2555
2555
  n.obj[n.prop] = o;
@@ -2563,7 +2563,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2563
2563
  if (!n)
2564
2564
  return e;
2565
2565
  if (typeof n != "object") {
2566
- if (V(e))
2566
+ if (Q(e))
2567
2567
  e.push(n);
2568
2568
  else if (e && typeof e == "object")
2569
2569
  (r && (r.plainObjects || r.allowPrototypes) || !it.call(Object.prototype, n)) && (e[n] = !0);
@@ -2574,7 +2574,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2574
2574
  if (!e || typeof e != "object")
2575
2575
  return [e].concat(n);
2576
2576
  var o = e;
2577
- return V(e) && !V(n) && (o = ln(e, r)), V(e) && V(n) ? (n.forEach(function(a, i) {
2577
+ return Q(e) && !Q(n) && (o = ln(e, r)), Q(e) && Q(n) ? (n.forEach(function(a, i) {
2578
2578
  if (it.call(e, i)) {
2579
2579
  var s = e[i];
2580
2580
  s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
@@ -2643,7 +2643,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2643
2643
  }, as = function(e, n) {
2644
2644
  return [].concat(e, n);
2645
2645
  }, is = function(e, n) {
2646
- if (V(e)) {
2646
+ if (Q(e)) {
2647
2647
  for (var r = [], o = 0; o < e.length; o += 1)
2648
2648
  r.push(n(e[o]));
2649
2649
  return r;
@@ -2732,7 +2732,7 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2732
2732
  var Re = Object.keys(g);
2733
2733
  j = p ? Re.sort(p) : Re;
2734
2734
  }
2735
- var te = u ? n.replace(/\./g, "%2E") : n, $ = o && k(g) && g.length === 1 ? te + "[]" : te;
2735
+ var re = u ? n.replace(/\./g, "%2E") : n, $ = o && k(g) && g.length === 1 ? re + "[]" : re;
2736
2736
  if (a && k(g) && g.length === 0)
2737
2737
  return $ + "[]";
2738
2738
  for (var z = 0; z < j.length; ++z) {
@@ -3068,7 +3068,7 @@ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
3068
3068
  }, Ds = async (t, e) => {
3069
3069
  var u, l, c, p, d;
3070
3070
  let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
3071
- const a = { 400: re("参数校验错误"), 404: re("接口地址未找到"), 500: re("服务器内部错误") };
3071
+ const a = { 400: V("参数校验错误"), 404: V("接口地址未找到"), 500: V("服务器内部错误") };
3072
3072
  let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
3073
3073
  return !(En("code") || "") && !mn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (hn ? An({ ...On, redirect_uri: Rn }) : gn(), o = i) : (t.response ? (i instanceof Blob && (i = await new Promise((v) => {
3074
3074
  const y = new FileReader();
@@ -3076,10 +3076,10 @@ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
3076
3076
  try {
3077
3077
  v(JSON.parse(y.result || "{}"));
3078
3078
  } catch {
3079
- v({ code: 400, msg: re("blob解析错误") });
3079
+ v({ code: 400, msg: V("blob解析错误") });
3080
3080
  }
3081
3081
  };
3082
- })), i.code && (n = i.code, r = i.msg || i.message, o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = re("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = re("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
3082
+ })), i.code && (n = i.code, r = V(i.status, ...i.data), o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
3083
3083
  }, Is = (t, e) => {
3084
3084
  const n = R.create();
3085
3085
  return wn(n, async (r) => {
@@ -1,4 +1,4 @@
1
- import { setI18nRule as Sn, t as re } from "@das-fed/web/packages/i18n/index";
1
+ import { setI18nRule as Sn, t as V } from "@das-fed/web/packages/i18n/index";
2
2
  import { curringHttp as En } from "@das-fed/utils/curring-http";
3
3
  import { getToken as An, getQuery as On, login as Rn, getTokenParams as Pn, real_uri as Tn } from "@das-fed/utils/create-api-service/sso";
4
4
  import Pt from "dayjs";
@@ -57,7 +57,7 @@ function xr(t, e) {
57
57
  return o;
58
58
  return null;
59
59
  }
60
- const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fr = (t) => !we(t) && t !== Q;
60
+ const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fr = (t) => !we(t) && t !== X;
61
61
  function ft() {
62
62
  const { caseless: t } = Fr(this) && this || {}, e = {}, n = (r, o) => {
63
63
  const a = t && xr(e, o) || o;
@@ -174,14 +174,14 @@ const ho = (t) => {
174
174
  return r;
175
175
  };
176
176
  return n(t, 0);
177
- }, mo = B("AsyncFunction"), go = (t) => t && (qe(t) || _(t)) && _(t.then) && _(t.catch), Dr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
178
- o === Q && a === n && r.length && r.shift()();
177
+ }, mo = B("AsyncFunction"), go = (t) => t && (qe(t) || _(t)) && _(t.then) && _(t.catch), Dr = ((t, e) => t ? setImmediate : e ? ((n, r) => (X.addEventListener("message", ({ source: o, data: a }) => {
178
+ o === X && a === n && r.length && r.shift()();
179
179
  }, !1), (o) => {
180
- r.push(o), Q.postMessage(n, "*");
180
+ r.push(o), X.postMessage(n, "*");
181
181
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
182
182
  typeof setImmediate == "function",
183
- _(Q.postMessage)
184
- ), vo = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Dr, f = {
183
+ _(X.postMessage)
184
+ ), vo = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Dr, f = {
185
185
  isArray: ue,
186
186
  isArrayBuffer: Pr,
187
187
  isBuffer: _n,
@@ -230,7 +230,7 @@ const ho = (t) => {
230
230
  noop: uo,
231
231
  toFiniteNumber: fo,
232
232
  findKey: xr,
233
- global: Q,
233
+ global: X,
234
234
  isContextDefined: Fr,
235
235
  ALPHABET: Nr,
236
236
  generateString: po,
@@ -949,7 +949,7 @@ function qr(t, e) {
949
949
  return t && !Go(e) ? Jo(t, e) : e;
950
950
  }
951
951
  const Kt = (t) => t instanceof I ? { ...t } : t;
952
- function ee(t, e) {
952
+ function te(t, e) {
953
953
  e = e || {};
954
954
  const n = {};
955
955
  function r(l, c, p) {
@@ -1014,7 +1014,7 @@ function ee(t, e) {
1014
1014
  }), n;
1015
1015
  }
1016
1016
  const zr = (t) => {
1017
- const e = ee({}, t);
1017
+ const e = te({}, t);
1018
1018
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
1019
1019
  e.headers = i = I.from(i), e.url = Ur(qr(e.baseURL, e.url), t.params, t.paramsSerializer), s && i.set(
1020
1020
  "Authorization",
@@ -1407,7 +1407,7 @@ const mt = {
1407
1407
  assertOptions: ia,
1408
1408
  validators: Ct
1409
1409
  }, W = mt.validators;
1410
- class X {
1410
+ class Z {
1411
1411
  constructor(e) {
1412
1412
  this.defaults = e, this.interceptors = {
1413
1413
  request: new Ht(),
@@ -1440,7 +1440,7 @@ class X {
1440
1440
  }
1441
1441
  }
1442
1442
  _request(e, n) {
1443
- typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ee(this.defaults, n);
1443
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = te(this.defaults, n);
1444
1444
  const { transitional: r, paramsSerializer: o, headers: a } = n;
1445
1445
  r !== void 0 && mt.assertOptions(r, {
1446
1446
  silentJSONParsing: W.transitional(W.boolean),
@@ -1499,14 +1499,14 @@ class X {
1499
1499
  return c;
1500
1500
  }
1501
1501
  getUri(e) {
1502
- e = ee(this.defaults, e);
1502
+ e = te(this.defaults, e);
1503
1503
  const n = qr(e.baseURL, e.url);
1504
1504
  return Ur(n, e.params, e.paramsSerializer);
1505
1505
  }
1506
1506
  }
1507
1507
  f.forEach(["delete", "get", "head", "options"], function(e) {
1508
- X.prototype[e] = function(n, r) {
1509
- return this.request(ee(r || {}, {
1508
+ Z.prototype[e] = function(n, r) {
1509
+ return this.request(te(r || {}, {
1510
1510
  method: e,
1511
1511
  url: n,
1512
1512
  data: (r || {}).data
@@ -1516,7 +1516,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
1516
1516
  f.forEach(["post", "put", "patch"], function(e) {
1517
1517
  function n(r) {
1518
1518
  return function(a, i, s) {
1519
- return this.request(ee(s || {}, {
1519
+ return this.request(te(s || {}, {
1520
1520
  method: e,
1521
1521
  headers: r ? {
1522
1522
  "Content-Type": "multipart/form-data"
@@ -1526,7 +1526,7 @@ f.forEach(["post", "put", "patch"], function(e) {
1526
1526
  }));
1527
1527
  };
1528
1528
  }
1529
- X.prototype[e] = n(), X.prototype[e + "Form"] = n(!0);
1529
+ Z.prototype[e] = n(), Z.prototype[e + "Form"] = n(!0);
1530
1530
  });
1531
1531
  class Nt {
1532
1532
  constructor(e) {
@@ -1678,13 +1678,13 @@ Object.entries(gt).forEach(([t, e]) => {
1678
1678
  gt[e] = t;
1679
1679
  });
1680
1680
  function Kr(t) {
1681
- const e = new X(t), n = Rr(X.prototype.request, e);
1682
- return f.extend(n, X.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1683
- return Kr(ee(t, o));
1681
+ const e = new Z(t), n = Rr(Z.prototype.request, e);
1682
+ return f.extend(n, Z.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1683
+ return Kr(te(t, o));
1684
1684
  }, n;
1685
1685
  }
1686
1686
  const R = Kr(Ee);
1687
- R.Axios = X;
1687
+ R.Axios = Z;
1688
1688
  R.CanceledError = fe;
1689
1689
  R.CancelToken = Nt;
1690
1690
  R.isCancel = kr;
@@ -1697,7 +1697,7 @@ R.all = function(e) {
1697
1697
  };
1698
1698
  R.spread = sa;
1699
1699
  R.isAxiosError = la;
1700
- R.mergeConfig = ee;
1700
+ R.mergeConfig = te;
1701
1701
  R.AxiosHeaders = I;
1702
1702
  R.formToJSON = (t) => Mr(f.isHTMLForm(t) ? new FormData(t) : t);
1703
1703
  R.getAdapter = Gr.getAdapter;
@@ -1799,28 +1799,28 @@ var fa = Error, pa = EvalError, da = RangeError, ya = ReferenceError, Vr = Synta
1799
1799
  return Qr('"use strict"; return (' + t + ").constructor;")();
1800
1800
  } catch {
1801
1801
  }
1802
- }, Z = Object.getOwnPropertyDescriptor;
1803
- if (Z)
1802
+ }, Y = Object.getOwnPropertyDescriptor;
1803
+ if (Y)
1804
1804
  try {
1805
- Z({}, "");
1805
+ Y({}, "");
1806
1806
  } catch {
1807
- Z = null;
1807
+ Y = null;
1808
1808
  }
1809
1809
  var Ye = function() {
1810
1810
  throw new ie();
1811
- }, La = Z ? function() {
1811
+ }, La = Y ? function() {
1812
1812
  try {
1813
1813
  return arguments.callee, Ye;
1814
1814
  } catch {
1815
1815
  try {
1816
- return Z(arguments, "callee").get;
1816
+ return Y(arguments, "callee").get;
1817
1817
  } catch {
1818
1818
  return Ye;
1819
1819
  }
1820
1820
  }
1821
1821
  }() : Ye, ne = va(), Ma = wa(), x = Object.getPrototypeOf || (Ma ? function(t) {
1822
1822
  return t.__proto__;
1823
- } : null), ae = {}, ka = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), Y = {
1823
+ } : null), ae = {}, ka = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), ee = {
1824
1824
  __proto__: null,
1825
1825
  "%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
1826
1826
  "%Array%": Array,
@@ -1895,7 +1895,7 @@ if (x)
1895
1895
  null.error;
1896
1896
  } catch (t) {
1897
1897
  var ja = x(x(t));
1898
- Y["%Error.prototype%"] = ja;
1898
+ ee["%Error.prototype%"] = ja;
1899
1899
  }
1900
1900
  var qa = function t(e) {
1901
1901
  var n;
@@ -1912,7 +1912,7 @@ var qa = function t(e) {
1912
1912
  var o = t("%AsyncGenerator%");
1913
1913
  o && x && (n = x(o.prototype));
1914
1914
  }
1915
- return Y[e] = n, n;
1915
+ return ee[e] = n, n;
1916
1916
  }, nr = {
1917
1917
  __proto__: null,
1918
1918
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
@@ -1978,8 +1978,8 @@ var qa = function t(e) {
1978
1978
  }), o;
1979
1979
  }, Va = function(e, n) {
1980
1980
  var r = e, o;
1981
- if (Be(nr, r) && (o = nr[r], r = "%" + o[0] + "%"), Be(Y, r)) {
1982
- var a = Y[r];
1981
+ if (Be(nr, r) && (o = nr[r], r = "%" + o[0] + "%"), Be(ee, r)) {
1982
+ var a = ee[r];
1983
1983
  if (a === ae && (a = qa(r)), typeof a > "u" && !n)
1984
1984
  throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
1985
1985
  return {
@@ -2002,20 +2002,20 @@ var qa = function t(e) {
2002
2002
  var d = r[c], v = Ue(d, 0, 1), y = Ue(d, -1);
2003
2003
  if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
2004
2004
  throw new se("property names with quotes must have matching quotes");
2005
- if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Be(Y, i))
2006
- s = Y[i];
2005
+ if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Be(ee, i))
2006
+ s = ee[i];
2007
2007
  else if (s != null) {
2008
2008
  if (!(d in s)) {
2009
2009
  if (!n)
2010
2010
  throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
2011
2011
  return;
2012
2012
  }
2013
- if (Z && c + 1 >= r.length) {
2014
- var m = Z(s, d);
2013
+ if (Y && c + 1 >= r.length) {
2014
+ var m = Y(s, d);
2015
2015
  p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
2016
2016
  } else
2017
2017
  p = Be(s, d), s = s[d];
2018
- p && !u && (Y[i] = s);
2018
+ p && !u && (ee[i] = s);
2019
2019
  }
2020
2020
  }
2021
2021
  return s;
@@ -2250,8 +2250,8 @@ var St = ci, br = St.custom, wr = an(br) ? br : null, bi = function t(e, n, r, o
2250
2250
  if (typeof globalThis < "u" && e === globalThis || typeof er < "u" && e === er)
2251
2251
  return "{ [object globalThis] }";
2252
2252
  if (!Si(e) && !Sr(e)) {
2253
- var N = Pe(e, d), j = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", q = !j && F && Object(e) === e && F in e ? Bt.call(K(e), 8, -1) : U ? "Object" : "", Re = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", te = Re + (q || U ? "[" + k.call(hr.call([], q || [], U || []), ": ") + "] " : "");
2254
- return N.length === 0 ? te + "{}" : p ? te + "{" + At(N, p) + "}" : te + "{ " + k.call(N, ", ") + " }";
2253
+ var N = Pe(e, d), j = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", q = !j && F && Object(e) === e && F in e ? Bt.call(K(e), 8, -1) : U ? "Object" : "", Re = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (q || U ? "[" + k.call(hr.call([], q || [], U || []), ": ") + "] " : "");
2254
+ return N.length === 0 ? re + "{}" : p ? re + "{" + At(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
2255
2255
  }
2256
2256
  return String(e);
2257
2257
  };
@@ -2542,14 +2542,14 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
2542
2542
  },
2543
2543
  RFC1738: at.RFC1738,
2544
2544
  RFC3986: at.RFC3986
2545
- }, Zi = Lt, it = Object.prototype.hasOwnProperty, V = Array.isArray, L = function() {
2545
+ }, Zi = Lt, it = Object.prototype.hasOwnProperty, Q = Array.isArray, L = function() {
2546
2546
  for (var t = [], e = 0; e < 256; ++e)
2547
2547
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2548
2548
  return t;
2549
2549
  }(), Yi = function(e) {
2550
2550
  for (; e.length > 1; ) {
2551
2551
  var n = e.pop(), r = n.obj[n.prop];
2552
- if (V(r)) {
2552
+ if (Q(r)) {
2553
2553
  for (var o = [], a = 0; a < r.length; ++a)
2554
2554
  typeof r[a] < "u" && o.push(r[a]);
2555
2555
  n.obj[n.prop] = o;
@@ -2563,7 +2563,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
2563
2563
  if (!n)
2564
2564
  return e;
2565
2565
  if (typeof n != "object") {
2566
- if (V(e))
2566
+ if (Q(e))
2567
2567
  e.push(n);
2568
2568
  else if (e && typeof e == "object")
2569
2569
  (r && (r.plainObjects || r.allowPrototypes) || !it.call(Object.prototype, n)) && (e[n] = !0);
@@ -2574,7 +2574,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
2574
2574
  if (!e || typeof e != "object")
2575
2575
  return [e].concat(n);
2576
2576
  var o = e;
2577
- return V(e) && !V(n) && (o = un(e, r)), V(e) && V(n) ? (n.forEach(function(a, i) {
2577
+ return Q(e) && !Q(n) && (o = un(e, r)), Q(e) && Q(n) ? (n.forEach(function(a, i) {
2578
2578
  if (it.call(e, i)) {
2579
2579
  var s = e[i];
2580
2580
  s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
@@ -2643,7 +2643,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
2643
2643
  }, ss = function(e, n) {
2644
2644
  return [].concat(e, n);
2645
2645
  }, ls = function(e, n) {
2646
- if (V(e)) {
2646
+ if (Q(e)) {
2647
2647
  for (var r = [], o = 0; o < e.length; o += 1)
2648
2648
  r.push(n(e[o]));
2649
2649
  return r;
@@ -2732,7 +2732,7 @@ var cn = pe, de = ii, Li = bi, Mi = Ae, Te = cn("%WeakMap%", !0), xe = cn("%Map%
2732
2732
  var Re = Object.keys(g);
2733
2733
  q = p ? Re.sort(p) : Re;
2734
2734
  }
2735
- var te = u ? n.replace(/\./g, "%2E") : n, $ = o && M(g) && g.length === 1 ? te + "[]" : te;
2735
+ var re = u ? n.replace(/\./g, "%2E") : n, $ = o && M(g) && g.length === 1 ? re + "[]" : re;
2736
2736
  if (a && M(g) && g.length === 0)
2737
2737
  return $ + "[]";
2738
2738
  for (var z = 0; z < q.length; ++z) {
@@ -3068,7 +3068,7 @@ const mn = Or(), gn = mn.sso ?? !0, vn = mn.noRedireLogin ?? !1, bn = () => {
3068
3068
  }, _s = async (t, e) => {
3069
3069
  var u, l, c, p, d;
3070
3070
  let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
3071
- const a = { 400: re("参数校验错误"), 404: re("接口地址未找到"), 500: re("服务器内部错误") };
3071
+ const a = { 400: V("参数校验错误"), 404: V("接口地址未找到"), 500: V("服务器内部错误") };
3072
3072
  let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
3073
3073
  return !(On("code") || "") && !vn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (gn ? Rn({ ...Pn, redirect_uri: Tn }) : bn(), o = i) : (t.response ? (i instanceof Blob && (i = await new Promise((v) => {
3074
3074
  const y = new FileReader();
@@ -3076,10 +3076,10 @@ const mn = Or(), gn = mn.sso ?? !0, vn = mn.noRedireLogin ?? !1, bn = () => {
3076
3076
  try {
3077
3077
  v(JSON.parse(y.result || "{}"));
3078
3078
  } catch {
3079
- v({ code: 400, msg: re("blob解析错误") });
3079
+ v({ code: 400, msg: V("blob解析错误") });
3080
3080
  }
3081
3081
  };
3082
- })), i.code && (n = i.code, r = i.msg || i.message, o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = re("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = re("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
3082
+ })), i.code && (n = i.code, r = V(i.status, ...i.data), o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
3083
3083
  }, ct = (t, e) => {
3084
3084
  const n = R.create();
3085
3085
  return En(n, async (r) => {