@das-fed/utils 6.4.0-dev.55.8 → 6.4.0-dev.56
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.
- package/api-services/i18n/index.js +1 -1
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +128 -128
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +94 -94
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +94 -94
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +93 -93
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +94 -94
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +92 -92
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +94 -94
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +125 -125
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +94 -94
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +165 -165
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +95 -95
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +92 -92
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +94 -94
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +94 -94
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +94 -94
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +96 -96
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +94 -94
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +94 -94
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +95 -95
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +95 -95
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +94 -94
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +94 -94
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +94 -94
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +93 -93
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +7 -1
- package/common-info/index.js +84 -51
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +175 -120
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/create-api-service/i18n/index.js +2 -2
- package/create-api-service/index.js +93 -93
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +35 -35
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/directive/auth/index.js.gz +0 -0
- package/dom-check-in/index.js +2 -2
- package/esm-map.json +3 -1
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js.gz +0 -0
- package/use-low-code/index.js +3 -3
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setI18nRule as Sn, t as W } 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
|
-
import
|
|
4
|
+
import Pt from "dayjs";
|
|
5
5
|
import xn from "dayjs/plugin/utc";
|
|
6
6
|
import Cn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as Fn, getInstanceInfo as Nn } from "@das-fed/utils/common-info";
|
|
@@ -12,7 +12,7 @@ function Pr(t, e) {
|
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: _n } = Object.prototype, { getPrototypeOf:
|
|
15
|
+
const { toString: _n } = Object.prototype, { getPrototypeOf: Tt } = Object, qe = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = _n.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
18
|
})(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), ze = (t) => (e) => typeof e === t, { isArray: pe } = Array, Ee = ze("undefined");
|
|
@@ -27,7 +27,7 @@ function $n(t) {
|
|
|
27
27
|
const Bn = ze("string"), I = ze("function"), xr = ze("number"), He = (t) => t !== null && typeof t == "object", Un = (t) => t === !0 || t === !1, De = (t) => {
|
|
28
28
|
if (qe(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
|
-
const e =
|
|
30
|
+
const e = Tt(t);
|
|
31
31
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
32
32
|
}, Ln = B("Date"), kn = B("File"), Mn = B("Blob"), jn = B("FileList"), qn = (t) => He(t) && I(t.pipe), zn = (t) => {
|
|
33
33
|
let e;
|
|
@@ -69,18 +69,18 @@ function ft() {
|
|
|
69
69
|
}
|
|
70
70
|
const Qn = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
71
71
|
n && I(o) ? t[a] = Pr(o, n) : t[a] = o;
|
|
72
|
-
}, { allOwnKeys: r }), t), Xn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t),
|
|
72
|
+
}, { allOwnKeys: r }), t), Xn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Zn = (t, e, n, r) => {
|
|
73
73
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
74
74
|
value: e.prototype
|
|
75
75
|
}), n && Object.assign(t.prototype, n);
|
|
76
|
-
},
|
|
76
|
+
}, Yn = (t, e, n, r) => {
|
|
77
77
|
let o, a, i;
|
|
78
78
|
const s = {};
|
|
79
79
|
if (e = e || {}, t == null) return e;
|
|
80
80
|
do {
|
|
81
81
|
for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
|
|
82
82
|
i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
|
|
83
|
-
t = n !== !1 &&
|
|
83
|
+
t = n !== !1 && Tt(t);
|
|
84
84
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
85
85
|
return e;
|
|
86
86
|
}, eo = (t, e, n) => {
|
|
@@ -96,7 +96,7 @@ const Qn = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
96
96
|
for (; e-- > 0; )
|
|
97
97
|
n[e] = t[e];
|
|
98
98
|
return n;
|
|
99
|
-
}, ro = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
99
|
+
}, ro = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Tt(Uint8Array)), no = (t, e) => {
|
|
100
100
|
const r = (t && t[Symbol.iterator]).call(t);
|
|
101
101
|
let o;
|
|
102
102
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -211,8 +211,8 @@ const ho = (t) => {
|
|
|
211
211
|
extend: Qn,
|
|
212
212
|
trim: Kn,
|
|
213
213
|
stripBOM: Xn,
|
|
214
|
-
inherits:
|
|
215
|
-
toFlatObject:
|
|
214
|
+
inherits: Zn,
|
|
215
|
+
toFlatObject: Yn,
|
|
216
216
|
kindOf: qe,
|
|
217
217
|
kindOfTest: B,
|
|
218
218
|
endsWith: eo,
|
|
@@ -384,10 +384,10 @@ function Ht(t) {
|
|
|
384
384
|
return e[r];
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function xt(t, e) {
|
|
388
388
|
this._pairs = [], t && We(t, this, e);
|
|
389
389
|
}
|
|
390
|
-
const Ur =
|
|
390
|
+
const Ur = xt.prototype;
|
|
391
391
|
Ur.append = function(e, n) {
|
|
392
392
|
this._pairs.push([e, n]);
|
|
393
393
|
};
|
|
@@ -407,7 +407,7 @@ function Lr(t, e, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
const r = n && n.encode || Eo, o = n && n.serialize;
|
|
409
409
|
let a;
|
|
410
|
-
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new
|
|
410
|
+
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new xt(e, n).toString(r), a) {
|
|
411
411
|
const i = t.indexOf("#");
|
|
412
412
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
413
413
|
}
|
|
@@ -471,7 +471,7 @@ const kr = {
|
|
|
471
471
|
silentJSONParsing: !0,
|
|
472
472
|
forcedJSONParsing: !0,
|
|
473
473
|
clarifyTimeoutError: !1
|
|
474
|
-
}, Ao = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
474
|
+
}, Ao = typeof URLSearchParams < "u" ? URLSearchParams : xt, Oo = typeof FormData < "u" ? FormData : null, Ro = typeof Blob < "u" ? Blob : null, Po = {
|
|
475
475
|
isBrowser: !0,
|
|
476
476
|
classes: {
|
|
477
477
|
URLSearchParams: Ao,
|
|
@@ -479,10 +479,10 @@ const kr = {
|
|
|
479
479
|
Blob: Ro
|
|
480
480
|
},
|
|
481
481
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
482
|
-
},
|
|
483
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Co =
|
|
482
|
+
}, Ct = typeof window < "u" && typeof document < "u", dt = typeof navigator == "object" && navigator || void 0, To = Ct && (!dt || ["ReactNative", "NativeScript", "NS"].indexOf(dt.product) < 0), xo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
483
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Co = Ct && window.location.href || "http://localhost", Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
484
484
|
__proto__: null,
|
|
485
|
-
hasBrowserEnv:
|
|
485
|
+
hasBrowserEnv: Ct,
|
|
486
486
|
hasStandardBrowserEnv: To,
|
|
487
487
|
hasStandardBrowserWebWorkerEnv: xo,
|
|
488
488
|
navigator: dt,
|
|
@@ -1123,10 +1123,10 @@ const Hr = (t) => {
|
|
|
1123
1123
|
let r = 0, o;
|
|
1124
1124
|
for (; r < n; )
|
|
1125
1125
|
o = r + e, yield t.slice(r, o), r = o;
|
|
1126
|
-
},
|
|
1127
|
-
for await (const n of
|
|
1126
|
+
}, Zo = async function* (t, e) {
|
|
1127
|
+
for await (const n of Yo(t))
|
|
1128
1128
|
yield* Xo(n, e);
|
|
1129
|
-
},
|
|
1129
|
+
}, Yo = async function* (t) {
|
|
1130
1130
|
if (t[Symbol.asyncIterator]) {
|
|
1131
1131
|
yield* t;
|
|
1132
1132
|
return;
|
|
@@ -1143,7 +1143,7 @@ const Hr = (t) => {
|
|
|
1143
1143
|
await e.cancel();
|
|
1144
1144
|
}
|
|
1145
1145
|
}, Qt = (t, e, n, r) => {
|
|
1146
|
-
const o =
|
|
1146
|
+
const o = Zo(t, e);
|
|
1147
1147
|
let a = 0, i, s = (u) => {
|
|
1148
1148
|
i || (i = !0, r && r(u));
|
|
1149
1149
|
};
|
|
@@ -1313,7 +1313,7 @@ f.forEach(ht, (t, e) => {
|
|
|
1313
1313
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
|
-
const
|
|
1316
|
+
const Zt = (t) => `- ${t}`, aa = (t) => f.isFunction(t) || t === null || t === !1, Jr = {
|
|
1317
1317
|
getAdapter: (t) => {
|
|
1318
1318
|
t = f.isArray(t) ? t : [t];
|
|
1319
1319
|
const { length: e } = t;
|
|
@@ -1333,8 +1333,8 @@ const Yt = (t) => `- ${t}`, aa = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1333
1333
|
([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1334
1334
|
);
|
|
1335
1335
|
let i = e ? a.length > 1 ? `since :
|
|
1336
|
-
` + a.map(
|
|
1337
|
-
`) : " " +
|
|
1336
|
+
` + a.map(Zt).join(`
|
|
1337
|
+
`) : " " + Zt(a[0]) : "as no adapter specified";
|
|
1338
1338
|
throw new b(
|
|
1339
1339
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1340
1340
|
"ERR_NOT_SUPPORT"
|
|
@@ -1344,36 +1344,36 @@ const Yt = (t) => `- ${t}`, aa = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1344
1344
|
},
|
|
1345
1345
|
adapters: ht
|
|
1346
1346
|
};
|
|
1347
|
-
function
|
|
1347
|
+
function Ze(t) {
|
|
1348
1348
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1349
1349
|
throw new de(null, t);
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return
|
|
1351
|
+
function Yt(t) {
|
|
1352
|
+
return Ze(t), t.headers = _.from(t.headers), t.data = Xe.call(
|
|
1353
1353
|
t,
|
|
1354
1354
|
t.transformRequest
|
|
1355
1355
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Jr.getAdapter(t.adapter || Oe.adapter)(t).then(function(r) {
|
|
1356
|
-
return
|
|
1356
|
+
return Ze(t), r.data = Xe.call(
|
|
1357
1357
|
t,
|
|
1358
1358
|
t.transformResponse,
|
|
1359
1359
|
r
|
|
1360
1360
|
), r.headers = _.from(r.headers), r;
|
|
1361
1361
|
}, function(r) {
|
|
1362
|
-
return jr(r) || (
|
|
1362
|
+
return jr(r) || (Ze(t), r && r.response && (r.response.data = Xe.call(
|
|
1363
1363
|
t,
|
|
1364
1364
|
t.transformResponse,
|
|
1365
1365
|
r.response
|
|
1366
1366
|
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
|
-
const Vr = "1.7.7",
|
|
1369
|
+
const Vr = "1.7.7", Ft = {};
|
|
1370
1370
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1371
|
-
|
|
1371
|
+
Ft[t] = function(r) {
|
|
1372
1372
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1373
1373
|
};
|
|
1374
1374
|
});
|
|
1375
1375
|
const er = {};
|
|
1376
|
-
|
|
1376
|
+
Ft.transitional = function(e, n, r) {
|
|
1377
1377
|
function o(a, i) {
|
|
1378
1378
|
return "[Axios v" + Vr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
1379
1379
|
}
|
|
@@ -1405,9 +1405,9 @@ function ia(t, e, n) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
const mt = {
|
|
1407
1407
|
assertOptions: ia,
|
|
1408
|
-
validators:
|
|
1408
|
+
validators: Ft
|
|
1409
1409
|
}, G = mt.validators;
|
|
1410
|
-
class
|
|
1410
|
+
class Z {
|
|
1411
1411
|
constructor(e) {
|
|
1412
1412
|
this.defaults = e, this.interceptors = {
|
|
1413
1413
|
request: new Wt(),
|
|
@@ -1473,7 +1473,7 @@ class Y {
|
|
|
1473
1473
|
});
|
|
1474
1474
|
let c, p = 0, d;
|
|
1475
1475
|
if (!u) {
|
|
1476
|
-
const y = [
|
|
1476
|
+
const y = [Yt.bind(this), void 0];
|
|
1477
1477
|
for (y.unshift.apply(y, s), y.push.apply(y, l), d = y.length, c = Promise.resolve(n); p < d; )
|
|
1478
1478
|
c = c.then(y[p++], y[p++]);
|
|
1479
1479
|
return c;
|
|
@@ -1490,7 +1490,7 @@ class Y {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
1492
|
try {
|
|
1493
|
-
c =
|
|
1493
|
+
c = Yt.call(this, g);
|
|
1494
1494
|
} catch (y) {
|
|
1495
1495
|
return Promise.reject(y);
|
|
1496
1496
|
}
|
|
@@ -1505,7 +1505,7 @@ class Y {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1508
|
-
|
|
1508
|
+
Z.prototype[e] = function(n, r) {
|
|
1509
1509
|
return this.request(ne(r || {}, {
|
|
1510
1510
|
method: e,
|
|
1511
1511
|
url: n,
|
|
@@ -1526,9 +1526,9 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1526
1526
|
}));
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
|
-
|
|
1529
|
+
Z.prototype[e] = n(), Z.prototype[e + "Form"] = n(!0);
|
|
1530
1530
|
});
|
|
1531
|
-
class
|
|
1531
|
+
class Nt {
|
|
1532
1532
|
constructor(e) {
|
|
1533
1533
|
if (typeof e != "function")
|
|
1534
1534
|
throw new TypeError("executor must be a function.");
|
|
@@ -1594,7 +1594,7 @@ class Dt {
|
|
|
1594
1594
|
static source() {
|
|
1595
1595
|
let e;
|
|
1596
1596
|
return {
|
|
1597
|
-
token: new
|
|
1597
|
+
token: new Nt(function(o) {
|
|
1598
1598
|
e = o;
|
|
1599
1599
|
}),
|
|
1600
1600
|
cancel: e
|
|
@@ -1678,15 +1678,15 @@ Object.entries(gt).forEach(([t, e]) => {
|
|
|
1678
1678
|
gt[e] = t;
|
|
1679
1679
|
});
|
|
1680
1680
|
function Kr(t) {
|
|
1681
|
-
const e = new
|
|
1682
|
-
return f.extend(n,
|
|
1681
|
+
const e = new Z(t), n = Pr(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
1683
|
return Kr(ne(t, o));
|
|
1684
1684
|
}, n;
|
|
1685
1685
|
}
|
|
1686
1686
|
const R = Kr(Oe);
|
|
1687
|
-
R.Axios =
|
|
1687
|
+
R.Axios = Z;
|
|
1688
1688
|
R.CanceledError = de;
|
|
1689
|
-
R.CancelToken =
|
|
1689
|
+
R.CancelToken = Nt;
|
|
1690
1690
|
R.isCancel = jr;
|
|
1691
1691
|
R.VERSION = Vr;
|
|
1692
1692
|
R.toFormData = We;
|
|
@@ -1751,11 +1751,11 @@ var fa = Error, pa = EvalError, da = RangeError, ya = ReferenceError, Qr = Synta
|
|
|
1751
1751
|
return !0;
|
|
1752
1752
|
}, rr = typeof Symbol < "u" && Symbol, ga = ma, va = function() {
|
|
1753
1753
|
return typeof rr != "function" || typeof Symbol != "function" || typeof rr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : ga();
|
|
1754
|
-
},
|
|
1754
|
+
}, Ye = {
|
|
1755
1755
|
__proto__: null,
|
|
1756
1756
|
foo: {}
|
|
1757
1757
|
}, ba = Object, wa = function() {
|
|
1758
|
-
return { __proto__:
|
|
1758
|
+
return { __proto__: Ye }.foo === Ye.foo && !(Ye instanceof ba);
|
|
1759
1759
|
}, Sa = "Function.prototype.bind called on incompatible ", Ea = Object.prototype.toString, Aa = Math.max, Oa = "[object Function]", nr = function(e, n) {
|
|
1760
1760
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
1761
1761
|
r[o] = e[o];
|
|
@@ -1794,26 +1794,26 @@ var fa = Error, pa = EvalError, da = RangeError, ya = ReferenceError, Qr = Synta
|
|
|
1794
1794
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1795
1795
|
}
|
|
1796
1796
|
return o;
|
|
1797
|
-
}, xa = Ta,
|
|
1797
|
+
}, xa = Ta, Dt = Function.prototype.bind || xa, Ca = Function.prototype.call, Fa = Object.prototype.hasOwnProperty, Na = Dt, Da = Na.call(Ca, Fa), w, _a = fa, Ia = pa, $a = da, Ba = ya, ce = Qr, le = Re, Ua = ha, Xr = Function, et = function(t) {
|
|
1798
1798
|
try {
|
|
1799
1799
|
return Xr('"use strict"; return (' + t + ").constructor;")();
|
|
1800
1800
|
} catch {
|
|
1801
1801
|
}
|
|
1802
|
-
},
|
|
1803
|
-
if (
|
|
1802
|
+
}, Y = Object.getOwnPropertyDescriptor;
|
|
1803
|
+
if (Y)
|
|
1804
1804
|
try {
|
|
1805
|
-
|
|
1805
|
+
Y({}, "");
|
|
1806
1806
|
} catch {
|
|
1807
|
-
|
|
1807
|
+
Y = null;
|
|
1808
1808
|
}
|
|
1809
1809
|
var tt = function() {
|
|
1810
1810
|
throw new le();
|
|
1811
|
-
}, La =
|
|
1811
|
+
}, La = Y ? function() {
|
|
1812
1812
|
try {
|
|
1813
1813
|
return arguments.callee, tt;
|
|
1814
1814
|
} catch {
|
|
1815
1815
|
try {
|
|
1816
|
-
return
|
|
1816
|
+
return Y(arguments, "callee").get;
|
|
1817
1817
|
} catch {
|
|
1818
1818
|
return tt;
|
|
1819
1819
|
}
|
|
@@ -1966,7 +1966,7 @@ var qa = function t(e) {
|
|
|
1966
1966
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1967
1967
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1968
1968
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1969
|
-
}, Pe =
|
|
1969
|
+
}, Pe = Dt, Le = Da, za = Pe.call(Function.call, Array.prototype.concat), Ha = Pe.call(Function.apply, Array.prototype.splice), ar = Pe.call(Function.call, String.prototype.replace), ke = Pe.call(Function.call, String.prototype.slice), Wa = Pe.call(Function.call, RegExp.prototype.exec), Ga = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ja = /\\(\\)?/g, Va = function(e) {
|
|
1970
1970
|
var n = ke(e, 0, 1), r = ke(e, -1);
|
|
1971
1971
|
if (n === "%" && r !== "%")
|
|
1972
1972
|
throw new ce("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2010,8 +2010,8 @@ var qa = function t(e) {
|
|
|
2010
2010
|
throw new le("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2011
2011
|
return;
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
var m =
|
|
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 = Le(s, d), s = s[d];
|
|
@@ -2019,8 +2019,8 @@ var qa = function t(e) {
|
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
return s;
|
|
2022
|
-
},
|
|
2023
|
-
function
|
|
2022
|
+
}, Zr = { exports: {} }, rt, ir;
|
|
2023
|
+
function _t() {
|
|
2024
2024
|
if (ir) return rt;
|
|
2025
2025
|
ir = 1;
|
|
2026
2026
|
var t = ye, e = t("%Object.defineProperty%", !0) || !1;
|
|
@@ -2039,7 +2039,7 @@ if (Ie)
|
|
|
2039
2039
|
} catch {
|
|
2040
2040
|
Ie = null;
|
|
2041
2041
|
}
|
|
2042
|
-
var
|
|
2042
|
+
var Yr = Ie, sr = _t(), Xa = Qr, ie = Re, lr = Yr, Za = function(e, n, r) {
|
|
2043
2043
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
2044
2044
|
throw new ie("`obj` must be an object or a function`");
|
|
2045
2045
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -2064,7 +2064,7 @@ var Zr = Ie, sr = It(), Xa = Qr, ie = Re, lr = Zr, Ya = function(e, n, r) {
|
|
|
2064
2064
|
e[n] = r;
|
|
2065
2065
|
else
|
|
2066
2066
|
throw new Xa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2067
|
-
}, vt =
|
|
2067
|
+
}, vt = _t(), en = function() {
|
|
2068
2068
|
return !!vt;
|
|
2069
2069
|
};
|
|
2070
2070
|
en.hasArrayLengthDefineBug = function() {
|
|
@@ -2076,7 +2076,7 @@ en.hasArrayLengthDefineBug = function() {
|
|
|
2076
2076
|
return !0;
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
|
-
var
|
|
2079
|
+
var Ya = en, ei = ye, cr = Za, ti = Ya(), ur = Yr, fr = Re, ri = ei("%Math.floor%"), ni = function(e, n) {
|
|
2080
2080
|
if (typeof e != "function")
|
|
2081
2081
|
throw new fr("`fn` is not a function");
|
|
2082
2082
|
if (typeof n != "number" || n < 0 || n > 4294967295 || ri(n) !== n)
|
|
@@ -2101,7 +2101,7 @@ var Za = en, ei = ye, cr = Ya, ti = Za(), ur = Zr, fr = Re, ri = ei("%Math.floor
|
|
|
2101
2101
|
)), e;
|
|
2102
2102
|
};
|
|
2103
2103
|
(function(t) {
|
|
2104
|
-
var e =
|
|
2104
|
+
var e = Dt, n = ye, r = ni, o = Re, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = _t(), l = n("%Math.max%");
|
|
2105
2105
|
t.exports = function(d) {
|
|
2106
2106
|
if (typeof d != "function")
|
|
2107
2107
|
throw new o("a function is required");
|
|
@@ -2116,8 +2116,8 @@ var Za = en, ei = ye, cr = Ya, ti = Za(), ur = Zr, fr = Re, ri = ei("%Math.floor
|
|
|
2116
2116
|
return s(e, a, arguments);
|
|
2117
2117
|
};
|
|
2118
2118
|
u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
|
|
2119
|
-
})(
|
|
2120
|
-
var oi =
|
|
2119
|
+
})(Zr);
|
|
2120
|
+
var oi = Zr.exports, tn = ye, rn = oi, ai = rn(tn("String.prototype.indexOf")), ii = function(e, n) {
|
|
2121
2121
|
var r = tn(e, !!n);
|
|
2122
2122
|
return typeof r == "function" && ai(e, ".prototype.") > -1 ? rn(r) : r;
|
|
2123
2123
|
};
|
|
@@ -2125,7 +2125,7 @@ const si = {}, li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2125
2125
|
__proto__: null,
|
|
2126
2126
|
default: si
|
|
2127
2127
|
}, Symbol.toStringTag, { value: "Module" })), ci = /* @__PURE__ */ ua(li);
|
|
2128
|
-
var
|
|
2128
|
+
var It = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && It ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Me = It && nt && typeof nt.get == "function" ? nt.get : null, pr = It && Map.prototype.forEach, $t = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && $t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, je = $t && ot && typeof ot.get == "function" ? ot.get : null, dr = $t && Set.prototype.forEach, ui = typeof WeakMap == "function" && WeakMap.prototype, be = ui ? WeakMap.prototype.has : null, fi = typeof WeakSet == "function" && WeakSet.prototype, we = fi ? WeakSet.prototype.has : null, pi = typeof WeakRef == "function" && WeakRef.prototype, yr = pi ? WeakRef.prototype.deref : null, di = Boolean.prototype.valueOf, yi = Object.prototype.toString, hi = Function.prototype.toString, mi = String.prototype.match, Bt = String.prototype.slice, V = String.prototype.replace, gi = String.prototype.toUpperCase, hr = String.prototype.toLowerCase, nn = RegExp.prototype.test, mr = Array.prototype.concat, M = Array.prototype.join, vi = Array.prototype.slice, gr = Math.floor, bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, at = Object.getOwnPropertySymbols, wt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ue = typeof Symbol == "function" && typeof Symbol.iterator == "object", C = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ue || !0) ? Symbol.toStringTag : null, on = Object.prototype.propertyIsEnumerable, vr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2129
2129
|
return t.__proto__;
|
|
2130
2130
|
} : null);
|
|
2131
2131
|
function br(t, e) {
|
|
@@ -2135,7 +2135,7 @@ function br(t, e) {
|
|
|
2135
2135
|
if (typeof t == "number") {
|
|
2136
2136
|
var r = t < 0 ? -gr(-t) : gr(t);
|
|
2137
2137
|
if (r !== t) {
|
|
2138
|
-
var o = String(r), a =
|
|
2138
|
+
var o = String(r), a = Bt.call(e, o.length + 1);
|
|
2139
2139
|
return V.call(o, n, "$&_") + "." + V.call(V.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
@@ -2250,7 +2250,7 @@ var St = ci, wr = St.custom, Sr = sn(wr) ? wr : null, bi = function t(e, n, r, o
|
|
|
2250
2250
|
if (typeof globalThis < "u" && e === globalThis || typeof tr < "u" && e === tr)
|
|
2251
2251
|
return "{ [object globalThis] }";
|
|
2252
2252
|
if (!Si(e) && !Er(e)) {
|
|
2253
|
-
var N = xe(e, d), j = vr ? vr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", q = !j && C && Object(e) === e && C in e ?
|
|
2253
|
+
var N = xe(e, d), j = vr ? vr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", q = !j && C && Object(e) === e && C in e ? Bt.call(K(e), 8, -1) : U ? "Object" : "", Te = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", oe = Te + (q || U ? "[" + M.call(mr.call([], q || [], U || []), ": ") + "] " : "");
|
|
2254
2254
|
return N.length === 0 ? oe + "{}" : p ? oe + "{" + At(N, p) + "}" : oe + "{ " + M.call(N, ", ") + " }";
|
|
2255
2255
|
}
|
|
2256
2256
|
return String(e);
|
|
@@ -2403,7 +2403,7 @@ function Ii(t) {
|
|
|
2403
2403
|
function cn(t, e) {
|
|
2404
2404
|
if (t.length > e.maxStringLength) {
|
|
2405
2405
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2406
|
-
return cn(
|
|
2406
|
+
return cn(Bt.call(t, 0, e.maxStringLength), e) + r;
|
|
2407
2407
|
}
|
|
2408
2408
|
var o = V.call(V.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, $i);
|
|
2409
2409
|
return an(o, "single", e);
|
|
@@ -2476,16 +2476,16 @@ function xe(t, e) {
|
|
|
2476
2476
|
on.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2477
2477
|
return r;
|
|
2478
2478
|
}
|
|
2479
|
-
var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%", !0), Mi = he("WeakMap.prototype.get", !0), ji = he("WeakMap.prototype.set", !0), qi = he("WeakMap.prototype.has", !0), zi = he("Map.prototype.get", !0), Hi = he("Map.prototype.set", !0), Wi = he("Map.prototype.has", !0),
|
|
2479
|
+
var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%", !0), Mi = he("WeakMap.prototype.get", !0), ji = he("WeakMap.prototype.set", !0), qi = he("WeakMap.prototype.has", !0), zi = he("Map.prototype.get", !0), Hi = he("Map.prototype.set", !0), Wi = he("Map.prototype.has", !0), Ut = function(t, e) {
|
|
2480
2480
|
for (var n = t, r; (r = n.next) !== null; n = r)
|
|
2481
2481
|
if (r.key === e)
|
|
2482
2482
|
return n.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
|
|
2483
2483
|
t.next, t.next = r, r;
|
|
2484
2484
|
}, Gi = function(t, e) {
|
|
2485
|
-
var n =
|
|
2485
|
+
var n = Ut(t, e);
|
|
2486
2486
|
return n && n.value;
|
|
2487
2487
|
}, Ji = function(t, e, n) {
|
|
2488
|
-
var r =
|
|
2488
|
+
var r = Ut(t, e);
|
|
2489
2489
|
r ? r.value = n : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
2490
2490
|
{
|
|
2491
2491
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -2494,7 +2494,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2494
2494
|
value: n
|
|
2495
2495
|
};
|
|
2496
2496
|
}, Vi = function(t, e) {
|
|
2497
|
-
return !!
|
|
2497
|
+
return !!Ut(t, e);
|
|
2498
2498
|
}, Ki = function() {
|
|
2499
2499
|
var e, n, r, o = {
|
|
2500
2500
|
assert: function(a) {
|
|
@@ -2530,7 +2530,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2530
2530
|
}, Qi = String.prototype.replace, Xi = /%20/g, st = {
|
|
2531
2531
|
RFC1738: "RFC1738",
|
|
2532
2532
|
RFC3986: "RFC3986"
|
|
2533
|
-
},
|
|
2533
|
+
}, Lt = {
|
|
2534
2534
|
default: st.RFC3986,
|
|
2535
2535
|
formatters: {
|
|
2536
2536
|
RFC1738: function(t) {
|
|
@@ -2542,11 +2542,11 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2542
2542
|
},
|
|
2543
2543
|
RFC1738: st.RFC1738,
|
|
2544
2544
|
RFC3986: st.RFC3986
|
|
2545
|
-
},
|
|
2545
|
+
}, Zi = Lt, lt = 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
2552
|
if (Q(r)) {
|
|
@@ -2608,7 +2608,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2608
2608
|
for (var s = "", u = 0; u < i.length; u += ct) {
|
|
2609
2609
|
for (var l = i.length >= ct ? i.slice(u, u + ct) : i, c = [], p = 0; p < l.length; ++p) {
|
|
2610
2610
|
var d = l.charCodeAt(p);
|
|
2611
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a ===
|
|
2611
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === Zi.RFC1738 && (d === 40 || d === 41)) {
|
|
2612
2612
|
c[c.length] = l.charAt(p);
|
|
2613
2613
|
continue;
|
|
2614
2614
|
}
|
|
@@ -2635,7 +2635,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2635
2635
|
var l = s[u], c = i[l];
|
|
2636
2636
|
typeof c == "object" && c !== null && r.indexOf(c) === -1 && (n.push({ obj: i, prop: l }), r.push(c));
|
|
2637
2637
|
}
|
|
2638
|
-
return
|
|
2638
|
+
return Yi(n), e;
|
|
2639
2639
|
}, as = function(e) {
|
|
2640
2640
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
2641
2641
|
}, is = function(e) {
|
|
@@ -2660,7 +2660,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2660
2660
|
isRegExp: as,
|
|
2661
2661
|
maybeMap: ls,
|
|
2662
2662
|
merge: es
|
|
2663
|
-
}, dn = Ki, $e = pn, Se =
|
|
2663
|
+
}, dn = Ki, $e = pn, Se = Lt, cs = Object.prototype.hasOwnProperty, yn = {
|
|
2664
2664
|
brackets: function(e) {
|
|
2665
2665
|
return e + "[]";
|
|
2666
2666
|
},
|
|
@@ -2969,7 +2969,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2969
2969
|
o = fe.merge(o, u, n);
|
|
2970
2970
|
}
|
|
2971
2971
|
return n.allowSparse === !0 ? o : fe.compact(o);
|
|
2972
|
-
}, Rs = hs, Ps = Os, Ts =
|
|
2972
|
+
}, Rs = hs, Ps = Os, Ts = Lt, xs = {
|
|
2973
2973
|
formats: Ts,
|
|
2974
2974
|
parse: Ps,
|
|
2975
2975
|
stringify: Rs
|
|
@@ -3048,33 +3048,33 @@ function Rt(t, e) {
|
|
|
3048
3048
|
var Ns = Rt(Fs, { path: "/" });
|
|
3049
3049
|
const Ds = {
|
|
3050
3050
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3051
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api
|
|
3051
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
3052
3052
|
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3053
3053
|
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3054
3054
|
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3055
3055
|
"网络异常,请检查您的网络情况": {
|
|
3056
3056
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3057
|
-
en: "Network
|
|
3057
|
+
en: "Network error, please check your network status",
|
|
3058
3058
|
_appCode: "framework"
|
|
3059
3059
|
}
|
|
3060
3060
|
};
|
|
3061
3061
|
Sn(Ds);
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
const
|
|
3062
|
+
Pt.extend(xn);
|
|
3063
|
+
Pt.extend(Cn);
|
|
3064
|
+
const kt = Rr(), gn = kt.sso ?? !0, _s = kt.i18n ?? !0, vn = kt.noRedireLogin ?? !1, bn = () => {
|
|
3065
3065
|
if (vn) return;
|
|
3066
3066
|
const t = "/login";
|
|
3067
3067
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3068
|
-
},
|
|
3068
|
+
}, Is = async (t) => {
|
|
3069
3069
|
var n;
|
|
3070
3070
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3071
|
-
},
|
|
3071
|
+
}, $s = async (t, e) => {
|
|
3072
3072
|
var u, l, c, p, d;
|
|
3073
3073
|
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3074
3074
|
const a = { 400: W("参数校验错误"), 404: W("接口地址未找到"), 500: W("服务器内部错误") };
|
|
3075
3075
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3076
3076
|
if (!(On("code") || "") && !vn && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3077
|
-
|
|
3077
|
+
gn ? Rn({ ...Pn, redirect_uri: Tn }) : bn(), o = i;
|
|
3078
3078
|
else {
|
|
3079
3079
|
if (t.response) {
|
|
3080
3080
|
if (i instanceof Blob && (i = await new Promise((g) => {
|
|
@@ -3087,7 +3087,7 @@ const gn = Rr(), Pt = gn.sso ?? !0, vn = gn.noRedireLogin ?? !1, bn = () => {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
if (n = i.code,
|
|
3090
|
+
if (n = i.code, _s) {
|
|
3091
3091
|
const g = (i == null ? void 0 : i.status) ?? "";
|
|
3092
3092
|
r = !(i != null && i.data) || !i.data.length ? W(g) : W(g, ...i.data);
|
|
3093
3093
|
} else
|
|
@@ -3109,9 +3109,9 @@ const gn = Rr(), Pt = gn.sso ?? !0, vn = gn.noRedireLogin ?? !1, bn = () => {
|
|
|
3109
3109
|
const c = new URL(location.href).searchParams;
|
|
3110
3110
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3111
3111
|
}
|
|
3112
|
-
|
|
3112
|
+
gn ? l || (l = await An(r)) : (l || (l = Dn()), l || bn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3113
3113
|
}
|
|
3114
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Cs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3114
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Cs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Is), r.onError || (r.onError = $s), (r.csrf ?? !1) && (r.headers["csrf-token"] = Ns.get("csrf-token"));
|
|
3115
3115
|
const s = r.params || {};
|
|
3116
3116
|
if (s.project === void 0) {
|
|
3117
3117
|
let l = 0;
|
|
@@ -3122,17 +3122,17 @@ const gn = Rr(), Pt = gn.sso ?? !0, vn = gn.noRedireLogin ?? !1, bn = () => {
|
|
|
3122
3122
|
const { instanceInfo: l } = Nn();
|
|
3123
3123
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3124
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone =
|
|
3125
|
+
return r.params = s, r.headers.Timezone = Pt.tz.guess(), r;
|
|
3126
3126
|
});
|
|
3127
|
-
}, re = "v1",
|
|
3127
|
+
}, re = "v1", Ws = te(`/api/customer/customer/${re}`), Gs = te(`/api/customer/company/${re}`), Js = te(`/api/customer/customer-grade/${re}`), Vs = te(`/api/customer/customer-type/${re}`), Ks = {
|
|
3128
3128
|
list: te(`/api/project/${re}/list`),
|
|
3129
3129
|
app: te(`/api/project/${re}/app`),
|
|
3130
3130
|
people: te(`/api/project/${re}/people`)
|
|
3131
3131
|
};
|
|
3132
3132
|
export {
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3133
|
+
Gs as company,
|
|
3134
|
+
Ws as customer,
|
|
3135
|
+
Js as customerGrade,
|
|
3136
|
+
Vs as customerType,
|
|
3137
|
+
Ks as projectManage
|
|
3138
3138
|
};
|
|
Binary file
|