@das-fed/utils 6.4.0-dev.53 → 6.4.0-dev.54.1
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/index.js +59 -46
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +156 -143
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +200 -187
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +156 -143
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +200 -187
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +156 -143
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +200 -187
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +59 -46
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +200 -187
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +59 -46
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +156 -143
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +199 -186
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +156 -143
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +156 -143
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +200 -187
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +161 -148
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +200 -187
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +156 -143
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +199 -186
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +156 -143
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +156 -143
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +200 -187
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +200 -187
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +200 -187
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +200 -187
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setI18nRule as Sn, t as
|
|
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
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
|
|
60
|
+
const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fr = (t) => !Ee(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 && (He(t) || _(t)) && _(t.then) && _(t.catch), Dr = ((t, e) => t ? setImmediate : e ? ((n, r) => (
|
|
178
|
-
o ===
|
|
177
|
+
}, mo = B("AsyncFunction"), go = (t) => t && (He(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),
|
|
180
|
+
r.push(o), X.postMessage(n, "*");
|
|
181
181
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
182
182
|
typeof setImmediate == "function",
|
|
183
|
-
_(
|
|
184
|
-
), vo = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
183
|
+
_(X.postMessage)
|
|
184
|
+
), vo = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Dr, f = {
|
|
185
185
|
isArray: pe,
|
|
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:
|
|
233
|
+
global: X,
|
|
234
234
|
isContextDefined: Fr,
|
|
235
235
|
ALPHABET: Nr,
|
|
236
236
|
generateString: po,
|
|
@@ -336,11 +336,11 @@ function We(t, e, n) {
|
|
|
336
336
|
if (f.endsWith(m, "{}"))
|
|
337
337
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
338
338
|
else if (f.isArray(y) && wo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
339
|
-
return m = $r(m), S.forEach(function(
|
|
340
|
-
!(f.isUndefined(
|
|
339
|
+
return m = $r(m), S.forEach(function(v, T) {
|
|
340
|
+
!(f.isUndefined(v) || v === null) && e.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
342
342
|
i === !0 ? qt([m], T, a) : i === null ? m : m + "[]",
|
|
343
|
-
l(
|
|
343
|
+
l(v)
|
|
344
344
|
);
|
|
345
345
|
}), !1;
|
|
346
346
|
}
|
|
@@ -351,7 +351,7 @@ function We(t, e, n) {
|
|
|
351
351
|
convertValue: l,
|
|
352
352
|
isVisitable: pt
|
|
353
353
|
});
|
|
354
|
-
function
|
|
354
|
+
function g(y, m) {
|
|
355
355
|
if (!f.isUndefined(y)) {
|
|
356
356
|
if (p.indexOf(y) !== -1)
|
|
357
357
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -362,13 +362,13 @@ function We(t, e, n) {
|
|
|
362
362
|
f.isString(E) ? E.trim() : E,
|
|
363
363
|
m,
|
|
364
364
|
d
|
|
365
|
-
)) === !0 &&
|
|
365
|
+
)) === !0 && g(S, m ? m.concat(E) : [E]);
|
|
366
366
|
}), p.pop();
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
if (!f.isObject(t))
|
|
370
370
|
throw new TypeError("data must be an object");
|
|
371
|
-
return
|
|
371
|
+
return g(t), e;
|
|
372
372
|
}
|
|
373
373
|
function zt(t) {
|
|
374
374
|
const e = {
|
|
@@ -839,8 +839,8 @@ function qo(t, e) {
|
|
|
839
839
|
d += n[p++], p = p % t;
|
|
840
840
|
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
|
|
841
841
|
return;
|
|
842
|
-
const
|
|
843
|
-
return
|
|
842
|
+
const g = c && l - c;
|
|
843
|
+
return g ? Math.round(d * 1e3 / g) : void 0;
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
846
|
function zo(t, e) {
|
|
@@ -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
|
|
952
|
+
function ne(t, e) {
|
|
953
953
|
e = e || {};
|
|
954
954
|
const n = {};
|
|
955
955
|
function r(l, c, p) {
|
|
@@ -1014,7 +1014,7 @@ function re(t, e) {
|
|
|
1014
1014
|
}), n;
|
|
1015
1015
|
}
|
|
1016
1016
|
const zr = (t) => {
|
|
1017
|
-
const e =
|
|
1017
|
+
const e = ne({}, 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",
|
|
@@ -1039,22 +1039,22 @@ const zr = (t) => {
|
|
|
1039
1039
|
const o = zr(t);
|
|
1040
1040
|
let a = o.data;
|
|
1041
1041
|
const i = I.from(o.headers).normalize();
|
|
1042
|
-
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d,
|
|
1042
|
+
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, g, y;
|
|
1043
1043
|
function m() {
|
|
1044
|
-
|
|
1044
|
+
g && g(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
1045
1045
|
}
|
|
1046
1046
|
let h = new XMLHttpRequest();
|
|
1047
1047
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1048
1048
|
function S() {
|
|
1049
1049
|
if (!h)
|
|
1050
1050
|
return;
|
|
1051
|
-
const
|
|
1051
|
+
const v = I.from(
|
|
1052
1052
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1053
1053
|
), A = {
|
|
1054
1054
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1055
1055
|
status: h.status,
|
|
1056
1056
|
statusText: h.statusText,
|
|
1057
|
-
headers:
|
|
1057
|
+
headers: v,
|
|
1058
1058
|
config: t,
|
|
1059
1059
|
request: h
|
|
1060
1060
|
};
|
|
@@ -1081,8 +1081,8 @@ const zr = (t) => {
|
|
|
1081
1081
|
)), h = null;
|
|
1082
1082
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1083
1083
|
h.setRequestHeader(A, T);
|
|
1084
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Be(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p,
|
|
1085
|
-
h && (r(!
|
|
1084
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Be(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, g] = Be(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (c = (v) => {
|
|
1085
|
+
h && (r(!v || v.type ? new de(null, t, h) : v), h.abort(), h = null);
|
|
1086
1086
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1087
1087
|
const E = jo(o.url);
|
|
1088
1088
|
if (E && D.protocols.indexOf(E) === -1) {
|
|
@@ -1230,9 +1230,9 @@ const ra = async (t) => {
|
|
|
1230
1230
|
fetchOptions: d
|
|
1231
1231
|
} = zr(t);
|
|
1232
1232
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1233
|
-
let
|
|
1234
|
-
const m =
|
|
1235
|
-
|
|
1233
|
+
let g = Qo([o, a && a.toAbortSignal()], i), y;
|
|
1234
|
+
const m = g && g.unsubscribe && (() => {
|
|
1235
|
+
g.unsubscribe();
|
|
1236
1236
|
});
|
|
1237
1237
|
let h;
|
|
1238
1238
|
try {
|
|
@@ -1254,7 +1254,7 @@ const ra = async (t) => {
|
|
|
1254
1254
|
const S = "credentials" in Request.prototype;
|
|
1255
1255
|
y = new Request(e, {
|
|
1256
1256
|
...d,
|
|
1257
|
-
signal:
|
|
1257
|
+
signal: g,
|
|
1258
1258
|
method: n.toUpperCase(),
|
|
1259
1259
|
headers: c.normalize().toJSON(),
|
|
1260
1260
|
body: r,
|
|
@@ -1262,8 +1262,8 @@ const ra = async (t) => {
|
|
|
1262
1262
|
credentials: S ? p : void 0
|
|
1263
1263
|
});
|
|
1264
1264
|
let E = await fetch(y);
|
|
1265
|
-
const
|
|
1266
|
-
if (yt && (s ||
|
|
1265
|
+
const v = yt && (l === "stream" || l === "response");
|
|
1266
|
+
if (yt && (s || v && m)) {
|
|
1267
1267
|
const A = {};
|
|
1268
1268
|
["status", "statusText", "headers"].forEach((U) => {
|
|
1269
1269
|
A[U] = E[U];
|
|
@@ -1281,7 +1281,7 @@ const ra = async (t) => {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
l = l || "text";
|
|
1283
1283
|
let T = await Ue[f.findKey(Ue, l) || "text"](E, t);
|
|
1284
|
-
return !
|
|
1284
|
+
return !v && m && m(), await new Promise((A, C) => {
|
|
1285
1285
|
jr(A, C, {
|
|
1286
1286
|
data: T,
|
|
1287
1287
|
headers: I.from(E.headers),
|
|
@@ -1406,8 +1406,8 @@ function ia(t, e, n) {
|
|
|
1406
1406
|
const mt = {
|
|
1407
1407
|
assertOptions: ia,
|
|
1408
1408
|
validators: Ct
|
|
1409
|
-
},
|
|
1410
|
-
class
|
|
1409
|
+
}, G = mt.validators;
|
|
1410
|
+
class Z {
|
|
1411
1411
|
constructor(e) {
|
|
1412
1412
|
this.defaults = e, this.interceptors = {
|
|
1413
1413
|
request: new Ht(),
|
|
@@ -1440,17 +1440,17 @@ class X {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
_request(e, n) {
|
|
1443
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
1443
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ne(this.defaults, n);
|
|
1444
1444
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1445
1445
|
r !== void 0 && mt.assertOptions(r, {
|
|
1446
|
-
silentJSONParsing:
|
|
1447
|
-
forcedJSONParsing:
|
|
1448
|
-
clarifyTimeoutError:
|
|
1446
|
+
silentJSONParsing: G.transitional(G.boolean),
|
|
1447
|
+
forcedJSONParsing: G.transitional(G.boolean),
|
|
1448
|
+
clarifyTimeoutError: G.transitional(G.boolean)
|
|
1449
1449
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1450
1450
|
serialize: o
|
|
1451
1451
|
} : mt.assertOptions(o, {
|
|
1452
|
-
encode:
|
|
1453
|
-
serialize:
|
|
1452
|
+
encode: G.function,
|
|
1453
|
+
serialize: G.function
|
|
1454
1454
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1455
1455
|
let i = a && f.merge(
|
|
1456
1456
|
a.common,
|
|
@@ -1479,18 +1479,18 @@ class X {
|
|
|
1479
1479
|
return c;
|
|
1480
1480
|
}
|
|
1481
1481
|
d = s.length;
|
|
1482
|
-
let
|
|
1482
|
+
let g = n;
|
|
1483
1483
|
for (p = 0; p < d; ) {
|
|
1484
1484
|
const y = s[p++], m = s[p++];
|
|
1485
1485
|
try {
|
|
1486
|
-
|
|
1486
|
+
g = y(g);
|
|
1487
1487
|
} catch (h) {
|
|
1488
1488
|
m.call(this, h);
|
|
1489
1489
|
break;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
1492
|
try {
|
|
1493
|
-
c = Zt.call(this,
|
|
1493
|
+
c = Zt.call(this, g);
|
|
1494
1494
|
} catch (y) {
|
|
1495
1495
|
return Promise.reject(y);
|
|
1496
1496
|
}
|
|
@@ -1499,14 +1499,14 @@ class X {
|
|
|
1499
1499
|
return c;
|
|
1500
1500
|
}
|
|
1501
1501
|
getUri(e) {
|
|
1502
|
-
e =
|
|
1502
|
+
e = ne(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
|
-
|
|
1509
|
-
return this.request(
|
|
1508
|
+
Z.prototype[e] = function(n, r) {
|
|
1509
|
+
return this.request(ne(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(
|
|
1519
|
+
return this.request(ne(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
|
-
|
|
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
|
|
1682
|
-
return f.extend(n,
|
|
1683
|
-
return Kr(
|
|
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(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
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 =
|
|
1700
|
+
R.mergeConfig = ne;
|
|
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
|
-
},
|
|
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
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
}() : tt, ae = va(), Ma = wa(), x = Object.getPrototypeOf || (Ma ? function(t) {
|
|
1822
1822
|
return t.__proto__;
|
|
1823
|
-
} : null), se = {}, ka = typeof Uint8Array > "u" || !x ? w : x(Uint8Array),
|
|
1823
|
+
} : null), se = {}, 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
|
-
|
|
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
|
|
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 (Le(nr, r) && (o = nr[r], r = "%" + o[0] + "%"), Le(
|
|
1982
|
-
var a =
|
|
1981
|
+
if (Le(nr, r) && (o = nr[r], r = "%" + o[0] + "%"), Le(ee, r)) {
|
|
1982
|
+
var a = ee[r];
|
|
1983
1983
|
if (a === se && (a = qa(r)), typeof a > "u" && !n)
|
|
1984
1984
|
throw new le("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1985
1985
|
return {
|
|
@@ -1999,23 +1999,23 @@ var qa = function t(e) {
|
|
|
1999
1999
|
var r = Ka(e), o = r.length > 0 ? r[0] : "", a = Va("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2000
2000
|
l && (o = l[0], Ha(r, za([0, 1], l)));
|
|
2001
2001
|
for (var c = 1, p = !0; c < r.length; c += 1) {
|
|
2002
|
-
var d = r[c],
|
|
2003
|
-
if ((
|
|
2002
|
+
var d = r[c], g = Me(d, 0, 1), y = Me(d, -1);
|
|
2003
|
+
if ((g === '"' || g === "'" || g === "`" || y === '"' || y === "'" || y === "`") && g !== y)
|
|
2004
2004
|
throw new ce("property names with quotes must have matching quotes");
|
|
2005
|
-
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Le(
|
|
2006
|
-
s =
|
|
2005
|
+
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Le(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 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];
|
|
2018
|
-
p && !u && (
|
|
2018
|
+
p && !u && (ee[i] = s);
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
return s;
|
|
@@ -2105,9 +2105,9 @@ var Ya = Yr, ei = ye, lr = Za, ti = Ya(), cr = Zr, ur = Re, ri = ei("%Math.floor
|
|
|
2105
2105
|
t.exports = function(d) {
|
|
2106
2106
|
if (typeof d != "function")
|
|
2107
2107
|
throw new o("a function is required");
|
|
2108
|
-
var
|
|
2108
|
+
var g = s(e, i, arguments);
|
|
2109
2109
|
return r(
|
|
2110
|
-
|
|
2110
|
+
g,
|
|
2111
2111
|
1 + l(0, d.length - (arguments.length - 1)),
|
|
2112
2112
|
!0
|
|
2113
2113
|
);
|
|
@@ -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 _t = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && _t ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = _t && nt && typeof nt.get == "function" ? nt.get : null, fr = _t && 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, pr = $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, dr = 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,
|
|
2128
|
+
var _t = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && _t ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = _t && nt && typeof nt.get == "function" ? nt.get : null, fr = _t && 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, pr = $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, dr = 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, K = String.prototype.replace, gi = String.prototype.toUpperCase, yr = String.prototype.toLowerCase, rn = RegExp.prototype.test, hr = Array.prototype.concat, k = Array.prototype.join, vi = Array.prototype.slice, mr = 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", F = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ue || !0) ? Symbol.toStringTag : null, nn = Object.prototype.propertyIsEnumerable, gr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2129
2129
|
return t.__proto__;
|
|
2130
2130
|
} : null);
|
|
2131
2131
|
function vr(t, e) {
|
|
@@ -2136,23 +2136,23 @@ function vr(t, e) {
|
|
|
2136
2136
|
var r = t < 0 ? -mr(-t) : mr(t);
|
|
2137
2137
|
if (r !== t) {
|
|
2138
2138
|
var o = String(r), a = Bt.call(e, o.length + 1);
|
|
2139
|
-
return
|
|
2139
|
+
return K.call(o, n, "$&_") + "." + K.call(K.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
2142
|
-
return
|
|
2142
|
+
return K.call(e, n, "$&_");
|
|
2143
2143
|
}
|
|
2144
2144
|
var St = ci, br = St.custom, wr = an(br) ? br : null, bi = function t(e, n, r, o) {
|
|
2145
2145
|
var a = n || {};
|
|
2146
|
-
if (
|
|
2146
|
+
if (J(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
|
|
2147
2147
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
2148
|
-
if (
|
|
2148
|
+
if (J(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
2149
2149
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
2150
|
-
var i =
|
|
2150
|
+
var i = J(a, "customInspect") ? a.customInspect : !0;
|
|
2151
2151
|
if (typeof i != "boolean" && i !== "symbol")
|
|
2152
2152
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
2153
|
-
if (
|
|
2153
|
+
if (J(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
|
|
2154
2154
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
2155
|
-
if (
|
|
2155
|
+
if (J(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
|
|
2156
2156
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
2157
2157
|
var s = a.numericSeparator;
|
|
2158
2158
|
if (typeof e > "u")
|
|
@@ -2186,16 +2186,16 @@ var St = ci, br = St.custom, wr = an(br) ? br : null, bi = function t(e, n, r, o
|
|
|
2186
2186
|
var me = {
|
|
2187
2187
|
depth: a.depth
|
|
2188
2188
|
};
|
|
2189
|
-
return
|
|
2189
|
+
return J(a, "quoteStyle") && (me.quoteStyle = a.quoteStyle), t($, me, r + 1, o);
|
|
2190
2190
|
}
|
|
2191
2191
|
return t($, a, r + 1, o);
|
|
2192
2192
|
}
|
|
2193
2193
|
if (typeof e == "function" && !Sr(e)) {
|
|
2194
|
-
var
|
|
2195
|
-
return "[Function" + (
|
|
2194
|
+
var g = xi(e), y = xe(e, d);
|
|
2195
|
+
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
2196
2196
|
}
|
|
2197
2197
|
if (an(e)) {
|
|
2198
|
-
var m = ue ?
|
|
2198
|
+
var m = ue ? K.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : wt.call(e);
|
|
2199
2199
|
return typeof e == "object" && !ue ? ve(m) : m;
|
|
2200
2200
|
}
|
|
2201
2201
|
if (_i(e)) {
|
|
@@ -2206,8 +2206,8 @@ var St = ci, br = St.custom, wr = an(br) ? br : null, bi = function t(e, n, r, o
|
|
|
2206
2206
|
if (Et(e)) {
|
|
2207
2207
|
if (e.length === 0)
|
|
2208
2208
|
return "[]";
|
|
2209
|
-
var
|
|
2210
|
-
return p && !Bi(
|
|
2209
|
+
var v = xe(e, d);
|
|
2210
|
+
return p && !Bi(v) ? "[" + At(v, p) + "]" : "[ " + k.call(v, ", ") + " ]";
|
|
2211
2211
|
}
|
|
2212
2212
|
if (Ei(e)) {
|
|
2213
2213
|
var T = xe(e, d);
|
|
@@ -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 = xe(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(
|
|
2254
|
-
return N.length === 0 ?
|
|
2253
|
+
var N = xe(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(V(e), 8, -1) : U ? "Object" : "", Te = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", oe = Te + (q || U ? "[" + k.call(hr.call([], q || [], U || []), ": ") + "] " : "");
|
|
2254
|
+
return N.length === 0 ? oe + "{}" : p ? oe + "{" + At(N, p) + "}" : oe + "{ " + k.call(N, ", ") + " }";
|
|
2255
2255
|
}
|
|
2256
2256
|
return String(e);
|
|
2257
2257
|
};
|
|
@@ -2260,28 +2260,28 @@ function on(t, e, n) {
|
|
|
2260
2260
|
return r + t + r;
|
|
2261
2261
|
}
|
|
2262
2262
|
function wi(t) {
|
|
2263
|
-
return
|
|
2263
|
+
return K.call(String(t), /"/g, """);
|
|
2264
2264
|
}
|
|
2265
2265
|
function Et(t) {
|
|
2266
|
-
return
|
|
2266
|
+
return V(t) === "[object Array]" && (!F || !(typeof t == "object" && F in t));
|
|
2267
2267
|
}
|
|
2268
2268
|
function Si(t) {
|
|
2269
|
-
return
|
|
2269
|
+
return V(t) === "[object Date]" && (!F || !(typeof t == "object" && F in t));
|
|
2270
2270
|
}
|
|
2271
2271
|
function Sr(t) {
|
|
2272
|
-
return
|
|
2272
|
+
return V(t) === "[object RegExp]" && (!F || !(typeof t == "object" && F in t));
|
|
2273
2273
|
}
|
|
2274
2274
|
function Ei(t) {
|
|
2275
|
-
return
|
|
2275
|
+
return V(t) === "[object Error]" && (!F || !(typeof t == "object" && F in t));
|
|
2276
2276
|
}
|
|
2277
2277
|
function Ai(t) {
|
|
2278
|
-
return
|
|
2278
|
+
return V(t) === "[object String]" && (!F || !(typeof t == "object" && F in t));
|
|
2279
2279
|
}
|
|
2280
2280
|
function Oi(t) {
|
|
2281
|
-
return
|
|
2281
|
+
return V(t) === "[object Number]" && (!F || !(typeof t == "object" && F in t));
|
|
2282
2282
|
}
|
|
2283
2283
|
function Ri(t) {
|
|
2284
|
-
return
|
|
2284
|
+
return V(t) === "[object Boolean]" && (!F || !(typeof t == "object" && F in t));
|
|
2285
2285
|
}
|
|
2286
2286
|
function an(t) {
|
|
2287
2287
|
if (ue)
|
|
@@ -2308,10 +2308,10 @@ function Pi(t) {
|
|
|
2308
2308
|
var Ti = Object.prototype.hasOwnProperty || function(t) {
|
|
2309
2309
|
return t in this;
|
|
2310
2310
|
};
|
|
2311
|
-
function
|
|
2311
|
+
function J(t, e) {
|
|
2312
2312
|
return Ti.call(t, e);
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function V(t) {
|
|
2315
2315
|
return yi.call(t);
|
|
2316
2316
|
}
|
|
2317
2317
|
function xi(t) {
|
|
@@ -2405,7 +2405,7 @@ function ln(t, e) {
|
|
|
2405
2405
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2406
2406
|
return ln(Bt.call(t, 0, e.maxStringLength), e) + r;
|
|
2407
2407
|
}
|
|
2408
|
-
var o =
|
|
2408
|
+
var o = K.call(K.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, $i);
|
|
2409
2409
|
return on(o, "single", e);
|
|
2410
2410
|
}
|
|
2411
2411
|
function $i(t) {
|
|
@@ -2461,7 +2461,7 @@ function xe(t, e) {
|
|
|
2461
2461
|
if (n) {
|
|
2462
2462
|
r.length = t.length;
|
|
2463
2463
|
for (var o = 0; o < t.length; o++)
|
|
2464
|
-
r[o] =
|
|
2464
|
+
r[o] = J(t, o) ? e(t[o], t) : "";
|
|
2465
2465
|
}
|
|
2466
2466
|
var a = typeof at == "function" ? at(t) : [], i;
|
|
2467
2467
|
if (ue) {
|
|
@@ -2470,7 +2470,7 @@ function xe(t, e) {
|
|
|
2470
2470
|
i["$" + a[s]] = a[s];
|
|
2471
2471
|
}
|
|
2472
2472
|
for (var u in t)
|
|
2473
|
-
|
|
2473
|
+
J(t, u) && (n && String(Number(u)) === u && u < t.length || ue && i["$" + u] instanceof Symbol || (rn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
|
|
2474
2474
|
if (typeof at == "function")
|
|
2475
2475
|
for (var l = 0; l < a.length; l++)
|
|
2476
2476
|
nn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
@@ -2542,14 +2542,14 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2542
2542
|
},
|
|
2543
2543
|
RFC1738: st.RFC1738,
|
|
2544
2544
|
RFC3986: st.RFC3986
|
|
2545
|
-
}, Zi = Lt, lt = Object.prototype.hasOwnProperty,
|
|
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
|
-
if (
|
|
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 = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2563
2563
|
if (!n)
|
|
2564
2564
|
return e;
|
|
2565
2565
|
if (typeof n != "object") {
|
|
2566
|
-
if (
|
|
2566
|
+
if (Q(e))
|
|
2567
2567
|
e.push(n);
|
|
2568
2568
|
else if (e && typeof e == "object")
|
|
2569
2569
|
(r && (r.plainObjects || r.allowPrototypes) || !lt.call(Object.prototype, n)) && (e[n] = !0);
|
|
@@ -2574,7 +2574,7 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2574
2574
|
if (!e || typeof e != "object")
|
|
2575
2575
|
return [e].concat(n);
|
|
2576
2576
|
var o = e;
|
|
2577
|
-
return
|
|
2577
|
+
return Q(e) && !Q(n) && (o = un(e, r)), Q(e) && Q(n) ? (n.forEach(function(a, i) {
|
|
2578
2578
|
if (lt.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);
|
|
@@ -2602,8 +2602,8 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2602
2602
|
return e;
|
|
2603
2603
|
var i = e;
|
|
2604
2604
|
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
|
|
2605
|
-
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(
|
|
2606
|
-
return "%26%23" + parseInt(
|
|
2605
|
+
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(g) {
|
|
2606
|
+
return "%26%23" + parseInt(g.slice(2), 16) + "%3B";
|
|
2607
2607
|
});
|
|
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) {
|
|
@@ -2643,7 +2643,7 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2643
2643
|
}, ss = function(e, n) {
|
|
2644
2644
|
return [].concat(e, n);
|
|
2645
2645
|
}, ls = function(e, n) {
|
|
2646
|
-
if (
|
|
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;
|
|
@@ -2696,8 +2696,8 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2696
2696
|
strictNullHandling: !1
|
|
2697
2697
|
}, ps = function(e) {
|
|
2698
2698
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2699
|
-
}, ut = {}, ds = function t(e, n, r, o, a, i, s, u, l, c, p, d,
|
|
2700
|
-
for (var
|
|
2699
|
+
}, ut = {}, ds = function t(e, n, r, o, a, i, s, u, l, c, p, d, g, y, m, h, S, E) {
|
|
2700
|
+
for (var v = e, T = E, A = 0, C = !1; (T = T.get(ut)) !== void 0 && !C; ) {
|
|
2701
2701
|
var N = T.get(e);
|
|
2702
2702
|
if (A += 1, typeof N < "u") {
|
|
2703
2703
|
if (N === A)
|
|
@@ -2706,39 +2706,39 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2706
2706
|
}
|
|
2707
2707
|
typeof T.get(ut) > "u" && (A = 0);
|
|
2708
2708
|
}
|
|
2709
|
-
if (typeof c == "function" ?
|
|
2710
|
-
return Ke instanceof Date ?
|
|
2711
|
-
})),
|
|
2709
|
+
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && M(v) && (v = $e.maybeMap(v, function(Ke) {
|
|
2710
|
+
return Ke instanceof Date ? g(Ke) : Ke;
|
|
2711
|
+
})), v === null) {
|
|
2712
2712
|
if (i)
|
|
2713
2713
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2714
|
-
|
|
2714
|
+
v = "";
|
|
2715
2715
|
}
|
|
2716
|
-
if (ps(
|
|
2716
|
+
if (ps(v) || $e.isBuffer(v)) {
|
|
2717
2717
|
if (l) {
|
|
2718
2718
|
var j = h ? n : l(n, P.encoder, S, "key", y);
|
|
2719
|
-
return [m(j) + "=" + m(l(
|
|
2719
|
+
return [m(j) + "=" + m(l(v, P.encoder, S, "value", y))];
|
|
2720
2720
|
}
|
|
2721
|
-
return [m(n) + "=" + m(String(
|
|
2721
|
+
return [m(n) + "=" + m(String(v))];
|
|
2722
2722
|
}
|
|
2723
2723
|
var U = [];
|
|
2724
|
-
if (typeof
|
|
2724
|
+
if (typeof v > "u")
|
|
2725
2725
|
return U;
|
|
2726
2726
|
var q;
|
|
2727
|
-
if (r === "comma" && M(
|
|
2728
|
-
h && l && (
|
|
2727
|
+
if (r === "comma" && M(v))
|
|
2728
|
+
h && l && (v = $e.maybeMap(v, l)), q = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2729
2729
|
else if (M(c))
|
|
2730
2730
|
q = c;
|
|
2731
2731
|
else {
|
|
2732
|
-
var Te = Object.keys(
|
|
2732
|
+
var Te = Object.keys(v);
|
|
2733
2733
|
q = p ? Te.sort(p) : Te;
|
|
2734
2734
|
}
|
|
2735
|
-
var
|
|
2736
|
-
if (a && M(
|
|
2735
|
+
var oe = u ? n.replace(/\./g, "%2E") : n, $ = o && M(v) && v.length === 1 ? oe + "[]" : oe;
|
|
2736
|
+
if (a && M(v) && v.length === 0)
|
|
2737
2737
|
return $ + "[]";
|
|
2738
2738
|
for (var z = 0; z < q.length; ++z) {
|
|
2739
|
-
var H = q[z], me = typeof H == "object" && typeof H.value < "u" ? H.value :
|
|
2739
|
+
var H = q[z], me = typeof H == "object" && typeof H.value < "u" ? H.value : v[H];
|
|
2740
2740
|
if (!(s && me === null)) {
|
|
2741
|
-
var Je = d && u ? H.replace(/\./g, "%2E") : H, wn = M(
|
|
2741
|
+
var Je = d && u ? H.replace(/\./g, "%2E") : H, wn = M(v) ? typeof r == "function" ? r($, Je) : $ : $ + (d ? "." + Je : "[" + Je + "]");
|
|
2742
2742
|
E.set(e, A);
|
|
2743
2743
|
var Mt = pn();
|
|
2744
2744
|
Mt.set(ut, E), yn(U, t(
|
|
@@ -2750,11 +2750,11 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2750
2750
|
i,
|
|
2751
2751
|
s,
|
|
2752
2752
|
u,
|
|
2753
|
-
r === "comma" && h && M(
|
|
2753
|
+
r === "comma" && h && M(v) ? null : l,
|
|
2754
2754
|
c,
|
|
2755
2755
|
p,
|
|
2756
2756
|
d,
|
|
2757
|
-
|
|
2757
|
+
g,
|
|
2758
2758
|
y,
|
|
2759
2759
|
m,
|
|
2760
2760
|
h,
|
|
@@ -2840,8 +2840,8 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2840
2840
|
l
|
|
2841
2841
|
));
|
|
2842
2842
|
}
|
|
2843
|
-
var d = i.join(r.delimiter),
|
|
2844
|
-
return r.charsetSentinel && (r.charset === "iso-8859-1" ?
|
|
2843
|
+
var d = i.join(r.delimiter), g = r.addQueryPrefix === !0 ? "?" : "";
|
|
2844
|
+
return r.charsetSentinel && (r.charset === "iso-8859-1" ? g += "utf8=%26%2310003%3B&" : g += "utf8=%E2%9C%93&"), d.length > 0 ? g + d : "";
|
|
2845
2845
|
}, fe = fn, Ot = Object.prototype.hasOwnProperty, ms = Array.isArray, O = {
|
|
2846
2846
|
allowDots: !1,
|
|
2847
2847
|
allowEmptyArrays: !1,
|
|
@@ -2878,15 +2878,15 @@ var cn = ye, he = ii, Li = bi, Mi = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%
|
|
|
2878
2878
|
i[u].indexOf("utf8=") === 0 && (i[u] === bs ? l = "utf-8" : i[u] === vs && (l = "iso-8859-1"), s = u, u = i.length);
|
|
2879
2879
|
for (u = 0; u < i.length; ++u)
|
|
2880
2880
|
if (u !== s) {
|
|
2881
|
-
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1,
|
|
2882
|
-
d === -1 ? (
|
|
2881
|
+
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, g, y;
|
|
2882
|
+
d === -1 ? (g = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (g = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = fe.maybeMap(
|
|
2883
2883
|
hn(c.slice(d + 1), n),
|
|
2884
2884
|
function(h) {
|
|
2885
2885
|
return n.decoder(h, O.decoder, l, "value");
|
|
2886
2886
|
}
|
|
2887
2887
|
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = gs(y)), c.indexOf("[]=") > -1 && (y = ms(y) ? [y] : y);
|
|
2888
|
-
var m = Ot.call(r,
|
|
2889
|
-
m && n.duplicates === "combine" ? r[
|
|
2888
|
+
var m = Ot.call(r, g);
|
|
2889
|
+
m && n.duplicates === "combine" ? r[g] = fe.combine(r[g], y) : (!m || n.duplicates === "last") && (r[g] = y);
|
|
2890
2890
|
}
|
|
2891
2891
|
return r;
|
|
2892
2892
|
}, Ss = function(t, e, n, r) {
|
|
@@ -3068,19 +3068,32 @@ 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:
|
|
3071
|
+
const a = { 400: W("参数校验错误"), 404: W("接口地址未找到"), 500: W("服务器内部错误") };
|
|
3072
3072
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3073
|
+
if (!(On("code") || "") && !vn && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3074
|
+
gn ? Rn({ ...Pn, redirect_uri: Tn }) : bn(), o = i;
|
|
3075
|
+
else {
|
|
3076
|
+
if (t.response) {
|
|
3077
|
+
if (i instanceof Blob && (i = await new Promise((g) => {
|
|
3078
|
+
const y = new FileReader();
|
|
3079
|
+
y.readAsText(i, "utf-8"), y.onload = () => {
|
|
3080
|
+
try {
|
|
3081
|
+
g(JSON.parse(y.result || "{}"));
|
|
3082
|
+
} catch {
|
|
3083
|
+
g({ code: 400, msg: W("blob解析错误") });
|
|
3084
|
+
}
|
|
3085
|
+
};
|
|
3086
|
+
})), i.code) {
|
|
3087
|
+
n = i.code;
|
|
3088
|
+
const g = (i == null ? void 0 : i.status) ?? "错误提示";
|
|
3089
|
+
r = !(i != null && i.data) || !i.data.length ? W(g) : W(g, ...i.data), o = i;
|
|
3080
3090
|
}
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3091
|
+
r || (r = a[t.response.status] || t.message);
|
|
3092
|
+
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = W("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = W("请求配置异常");
|
|
3093
|
+
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 }));
|
|
3094
|
+
}
|
|
3095
|
+
return { ...o, code: n, msg: r, error: t };
|
|
3096
|
+
}, te = (t, e) => {
|
|
3084
3097
|
const n = R.create();
|
|
3085
3098
|
return En(n, async (r) => {
|
|
3086
3099
|
const o = Or();
|
|
@@ -3105,10 +3118,10 @@ const mn = Or(), gn = mn.sso ?? !0, vn = mn.noRedireLogin ?? !1, bn = () => {
|
|
|
3105
3118
|
}
|
|
3106
3119
|
return r.params = s, r.headers.Timezone = Pt.tz.guess(), r;
|
|
3107
3120
|
});
|
|
3108
|
-
},
|
|
3109
|
-
list:
|
|
3110
|
-
app:
|
|
3111
|
-
people:
|
|
3121
|
+
}, re = "v1", Hs = te(`/api/customer/customer/${re}`), Ws = te(`/api/customer/company/${re}`), Gs = te(`/api/customer/customer-grade/${re}`), Js = te(`/api/customer/customer-type/${re}`), Ks = {
|
|
3122
|
+
list: te(`/api/project/${re}/list`),
|
|
3123
|
+
app: te(`/api/project/${re}/app`),
|
|
3124
|
+
people: te(`/api/project/${re}/people`)
|
|
3112
3125
|
};
|
|
3113
3126
|
export {
|
|
3114
3127
|
Ws as company,
|