@das-fed/upf-utils 6.4.0-dev.226 → 6.4.0-dev.228
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/es5.js +1520 -1526
- package/api-services/index.js +1223 -1237
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +313 -310
- package/api-services/modules/app-manage/index.js +292 -292
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +313 -310
- package/api-services/modules/authentication/index.js +292 -292
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +308 -305
- package/api-services/modules/bems/index.js +287 -287
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +313 -310
- package/api-services/modules/contract/index.js +292 -292
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1153 -1159
- package/api-services/modules/duty-manage/index.js +958 -972
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1153 -1162
- package/api-services/modules/enterpriseright/index.js +957 -975
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1518 -1527
- package/api-services/modules/file/es5.js +250 -247
- package/api-services/modules/file/index.js +209 -209
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +188 -185
- package/api-services/modules/gateway-edge/index.js +184 -184
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1221 -1239
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1168 -1177
- package/api-services/modules/iot/index.js +968 -986
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +314 -311
- package/api-services/modules/justauth/index.js +293 -293
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +313 -310
- package/api-services/modules/knowledge/index.js +292 -292
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +313 -310
- package/api-services/modules/link/index.js +292 -292
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1153 -1162
- package/api-services/modules/permission/index.js +957 -975
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +312 -309
- package/api-services/modules/platformManage/index.js +287 -287
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1135 -1141
- package/api-services/modules/portal/index.js +941 -955
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1247 -1232
- package/api-services/modules/space-manage/index.js +1042 -1024
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +262 -259
- package/api-services/modules/super-admin/index.js +244 -244
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +315 -312
- package/api-services/modules/supplier/index.js +292 -292
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1164 -1173
- package/api-services/modules/supplychain-manage/index.js +967 -985
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +313 -310
- package/api-services/modules/systemConfiguration/index.js +292 -292
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +313 -310
- package/api-services/modules/tool/index.js +292 -292
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +311 -308
- package/api-services/src/create-service/index.js +291 -291
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +4357 -124
- package/common-info/getPermissionMethod/es5.js +4209 -0
- package/common-info/getPermissionMethod/index.d.ts +26 -0
- package/common-info/getPermissionMethod/index.js +3328 -0
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +2 -0
- package/common-info/index.js +3414 -63
- package/common-info/index.js.gz +0 -0
- package/common-info/type.d.ts +0 -2
- package/create-api-service/es5.js +1142 -1150
- package/create-api-service/index.d.ts +6 -6
- package/create-api-service/index.js +948 -965
- package/create-api-service/index.js.gz +0 -0
- package/directive/auth/es5.js +63 -44
- package/directive/auth/index.js +42 -33
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +7 -1
- package/hooks/use-get-auth/es5.js +13 -17
- package/hooks/use-get-auth/index.js +10 -13
- package/package.json +3 -3
- package/hooks/use-get-auth/apis.d.ts +0 -1
|
@@ -234,10 +234,10 @@ const oa = (t) => {
|
|
|
234
234
|
asap: sa,
|
|
235
235
|
isIterable: la
|
|
236
236
|
};
|
|
237
|
-
function
|
|
237
|
+
function b(t, e, n, r, o) {
|
|
238
238
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
239
239
|
}
|
|
240
|
-
p.inherits(
|
|
240
|
+
p.inherits(b, Error, {
|
|
241
241
|
toJSON: function() {
|
|
242
242
|
return {
|
|
243
243
|
// Standard
|
|
@@ -258,7 +258,7 @@ p.inherits(S, Error, {
|
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
|
-
const gn =
|
|
261
|
+
const gn = b.prototype, vn = {};
|
|
262
262
|
[
|
|
263
263
|
"ERR_BAD_OPTION_VALUE",
|
|
264
264
|
"ERR_BAD_OPTION",
|
|
@@ -276,13 +276,13 @@ const gn = S.prototype, vn = {};
|
|
|
276
276
|
].forEach((t) => {
|
|
277
277
|
vn[t] = { value: t };
|
|
278
278
|
});
|
|
279
|
-
Object.defineProperties(
|
|
279
|
+
Object.defineProperties(b, vn);
|
|
280
280
|
Object.defineProperty(gn, "isAxiosError", { value: !0 });
|
|
281
|
-
|
|
281
|
+
b.from = (t, e, n, r, o, a) => {
|
|
282
282
|
const i = Object.create(gn);
|
|
283
283
|
return p.toFlatObject(t, i, function(u) {
|
|
284
284
|
return u !== Error.prototype;
|
|
285
|
-
}, (s) => s !== "isAxiosError"),
|
|
285
|
+
}, (s) => s !== "isAxiosError"), b.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
286
286
|
};
|
|
287
287
|
const ca = null;
|
|
288
288
|
function kt(t) {
|
|
@@ -322,16 +322,16 @@ function at(t, e, n) {
|
|
|
322
322
|
if (p.isBoolean(y))
|
|
323
323
|
return y.toString();
|
|
324
324
|
if (!u && p.isBlob(y))
|
|
325
|
-
throw new
|
|
325
|
+
throw new b("Blob is not supported. Use a Buffer instead.");
|
|
326
326
|
return p.isArrayBuffer(y) || p.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
327
327
|
}
|
|
328
328
|
function c(y, m, h) {
|
|
329
|
-
let
|
|
329
|
+
let S = y;
|
|
330
330
|
if (y && !h && typeof y == "object") {
|
|
331
331
|
if (p.endsWith(m, "{}"))
|
|
332
332
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
333
|
-
else if (p.isArray(y) && ua(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (
|
|
334
|
-
return m = wn(m),
|
|
333
|
+
else if (p.isArray(y) && ua(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (S = p.toArray(y)))
|
|
334
|
+
return m = wn(m), S.forEach(function(g, T) {
|
|
335
335
|
!(p.isUndefined(g) || g === null) && e.append(
|
|
336
336
|
// eslint-disable-next-line no-nested-ternary
|
|
337
337
|
i === !0 ? yr([m], T, a) : i === null ? m : m + "[]",
|
|
@@ -350,14 +350,14 @@ function at(t, e, n) {
|
|
|
350
350
|
if (!p.isUndefined(y)) {
|
|
351
351
|
if (f.indexOf(y) !== -1)
|
|
352
352
|
throw Error("Circular reference detected in " + m.join("."));
|
|
353
|
-
f.push(y), p.forEach(y, function(
|
|
354
|
-
(!(p.isUndefined(
|
|
353
|
+
f.push(y), p.forEach(y, function(S, O) {
|
|
354
|
+
(!(p.isUndefined(S) || S === null) && o.call(
|
|
355
355
|
e,
|
|
356
|
-
|
|
357
|
-
p.isString(
|
|
356
|
+
S,
|
|
357
|
+
p.isString(O) ? O.trim() : O,
|
|
358
358
|
m,
|
|
359
359
|
d
|
|
360
|
-
)) === !0 && v(
|
|
360
|
+
)) === !0 && v(S, m ? m.concat(O) : [O]);
|
|
361
361
|
}), f.pop();
|
|
362
362
|
}
|
|
363
363
|
}
|
|
@@ -572,7 +572,7 @@ const $e = {
|
|
|
572
572
|
return JSON.parse(e);
|
|
573
573
|
} catch (s) {
|
|
574
574
|
if (i)
|
|
575
|
-
throw s.name === "SyntaxError" ?
|
|
575
|
+
throw s.name === "SyntaxError" ? b.from(s, b.ERR_BAD_RESPONSE, this, null, this.response) : s;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
return e;
|
|
@@ -815,16 +815,16 @@ function An(t) {
|
|
|
815
815
|
return !!(t && t.__CANCEL__);
|
|
816
816
|
}
|
|
817
817
|
function Se(t, e, n) {
|
|
818
|
-
|
|
818
|
+
b.call(this, t ?? "canceled", b.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
819
819
|
}
|
|
820
|
-
p.inherits(Se,
|
|
820
|
+
p.inherits(Se, b, {
|
|
821
821
|
__CANCEL__: !0
|
|
822
822
|
});
|
|
823
823
|
function Rn(t, e, n) {
|
|
824
824
|
const r = n.config.validateStatus;
|
|
825
|
-
!n.status || !r || r(n.status) ? t(n) : e(new
|
|
825
|
+
!n.status || !r || r(n.status) ? t(n) : e(new b(
|
|
826
826
|
"Request failed with status code " + n.status,
|
|
827
|
-
[
|
|
827
|
+
[b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
828
828
|
n.config,
|
|
829
829
|
n.request,
|
|
830
830
|
n
|
|
@@ -1025,12 +1025,12 @@ const Tn = (t) => {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
let h = new XMLHttpRequest();
|
|
1027
1027
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1028
|
-
function
|
|
1028
|
+
function S() {
|
|
1029
1029
|
if (!h)
|
|
1030
1030
|
return;
|
|
1031
1031
|
const g = q.from(
|
|
1032
1032
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1033
|
-
),
|
|
1033
|
+
), x = {
|
|
1034
1034
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1035
1035
|
status: h.status,
|
|
1036
1036
|
statusText: h.statusText,
|
|
@@ -1042,31 +1042,31 @@ const Tn = (t) => {
|
|
|
1042
1042
|
n(L), m();
|
|
1043
1043
|
}, function(L) {
|
|
1044
1044
|
r(L), m();
|
|
1045
|
-
},
|
|
1045
|
+
}, x), h = null;
|
|
1046
1046
|
}
|
|
1047
|
-
"onloadend" in h ? h.onloadend =
|
|
1048
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1047
|
+
"onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
|
|
1048
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1049
1049
|
}, h.onabort = function() {
|
|
1050
|
-
h && (r(new
|
|
1050
|
+
h && (r(new b("Request aborted", b.ECONNABORTED, t, h)), h = null);
|
|
1051
1051
|
}, h.onerror = function() {
|
|
1052
|
-
r(new
|
|
1052
|
+
r(new b("Network Error", b.ERR_NETWORK, t, h)), h = null;
|
|
1053
1053
|
}, h.ontimeout = function() {
|
|
1054
1054
|
let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1055
|
-
const
|
|
1056
|
-
o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new
|
|
1055
|
+
const x = o.transitional || En;
|
|
1056
|
+
o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new b(
|
|
1057
1057
|
T,
|
|
1058
|
-
|
|
1058
|
+
x.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
1059
1059
|
t,
|
|
1060
1060
|
h
|
|
1061
1061
|
)), h = null;
|
|
1062
|
-
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function(T,
|
|
1063
|
-
h.setRequestHeader(
|
|
1062
|
+
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function(T, x) {
|
|
1063
|
+
h.setRequestHeader(x, T);
|
|
1064
1064
|
}), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Je(l, !0), h.addEventListener("progress", d)), u && h.upload && ([f, v] = Je(u), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1065
1065
|
h && (r(!g || g.type ? new Se(null, t, h) : g), h.abort(), h = null);
|
|
1066
1066
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
r(new
|
|
1067
|
+
const O = Na(o.url);
|
|
1068
|
+
if (O && M.protocols.indexOf(O) === -1) {
|
|
1069
|
+
r(new b("Unsupported protocol " + O + ":", b.ERR_BAD_REQUEST, t));
|
|
1070
1070
|
return;
|
|
1071
1071
|
}
|
|
1072
1072
|
h.send(a || null);
|
|
@@ -1079,11 +1079,11 @@ const Tn = (t) => {
|
|
|
1079
1079
|
if (!o) {
|
|
1080
1080
|
o = !0, s();
|
|
1081
1081
|
const c = l instanceof Error ? l : this.reason;
|
|
1082
|
-
r.abort(c instanceof
|
|
1082
|
+
r.abort(c instanceof b ? c : new Se(c instanceof Error ? c.message : c));
|
|
1083
1083
|
}
|
|
1084
1084
|
};
|
|
1085
1085
|
let i = e && setTimeout(() => {
|
|
1086
|
-
i = null, a(new
|
|
1086
|
+
i = null, a(new b(`timeout ${e} of ms exceeded`, b.ETIMEDOUT));
|
|
1087
1087
|
}, e);
|
|
1088
1088
|
const s = () => {
|
|
1089
1089
|
t && (i && clearTimeout(i), i = null, t.forEach((l) => {
|
|
@@ -1173,7 +1173,7 @@ const Tn = (t) => {
|
|
|
1173
1173
|
it && ((t) => {
|
|
1174
1174
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1175
1175
|
!Ve[e] && (Ve[e] = p.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1176
|
-
throw new
|
|
1176
|
+
throw new b(`Response type '${e}' is not supported`, b.ERR_NOT_SUPPORT, r);
|
|
1177
1177
|
});
|
|
1178
1178
|
});
|
|
1179
1179
|
})(new Response());
|
|
@@ -1217,21 +1217,21 @@ const Ka = async (t) => {
|
|
|
1217
1217
|
let h;
|
|
1218
1218
|
try {
|
|
1219
1219
|
if (u && Wa && n !== "get" && n !== "head" && (h = await Ga(c, r)) !== 0) {
|
|
1220
|
-
let
|
|
1220
|
+
let x = new Request(e, {
|
|
1221
1221
|
method: "POST",
|
|
1222
1222
|
body: r,
|
|
1223
1223
|
duplex: "half"
|
|
1224
1224
|
}), I;
|
|
1225
|
-
if (p.isFormData(r) && (I =
|
|
1225
|
+
if (p.isFormData(r) && (I = x.headers.get("content-type")) && c.setContentType(I), x.body) {
|
|
1226
1226
|
const [L, z] = vr(
|
|
1227
1227
|
h,
|
|
1228
1228
|
Je(wr(u))
|
|
1229
1229
|
);
|
|
1230
|
-
r = Sr(
|
|
1230
|
+
r = Sr(x.body, Er, L, z);
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
p.isString(f) || (f = f ? "include" : "omit");
|
|
1234
|
-
const
|
|
1234
|
+
const S = "credentials" in Request.prototype;
|
|
1235
1235
|
y = new Request(e, {
|
|
1236
1236
|
...d,
|
|
1237
1237
|
signal: v,
|
|
@@ -1239,45 +1239,45 @@ const Ka = async (t) => {
|
|
|
1239
1239
|
headers: c.normalize().toJSON(),
|
|
1240
1240
|
body: r,
|
|
1241
1241
|
duplex: "half",
|
|
1242
|
-
credentials:
|
|
1242
|
+
credentials: S ? f : void 0
|
|
1243
1243
|
});
|
|
1244
|
-
let
|
|
1244
|
+
let O = await fetch(y, d);
|
|
1245
1245
|
const g = qt && (l === "stream" || l === "response");
|
|
1246
1246
|
if (qt && (s || g && m)) {
|
|
1247
|
-
const
|
|
1247
|
+
const x = {};
|
|
1248
1248
|
["status", "statusText", "headers"].forEach((G) => {
|
|
1249
|
-
|
|
1249
|
+
x[G] = O[G];
|
|
1250
1250
|
});
|
|
1251
|
-
const I = p.toFiniteNumber(
|
|
1251
|
+
const I = p.toFiniteNumber(O.headers.get("content-length")), [L, z] = s && vr(
|
|
1252
1252
|
I,
|
|
1253
1253
|
Je(wr(s), !0)
|
|
1254
1254
|
) || [];
|
|
1255
|
-
|
|
1256
|
-
Sr(
|
|
1255
|
+
O = new Response(
|
|
1256
|
+
Sr(O.body, Er, L, () => {
|
|
1257
1257
|
z && z(), m && m();
|
|
1258
1258
|
}),
|
|
1259
|
-
|
|
1259
|
+
x
|
|
1260
1260
|
);
|
|
1261
1261
|
}
|
|
1262
1262
|
l = l || "text";
|
|
1263
|
-
let T = await Ve[p.findKey(Ve, l) || "text"](
|
|
1264
|
-
return !g && m && m(), await new Promise((
|
|
1265
|
-
Rn(
|
|
1263
|
+
let T = await Ve[p.findKey(Ve, l) || "text"](O, t);
|
|
1264
|
+
return !g && m && m(), await new Promise((x, I) => {
|
|
1265
|
+
Rn(x, I, {
|
|
1266
1266
|
data: T,
|
|
1267
|
-
headers: q.from(
|
|
1268
|
-
status:
|
|
1269
|
-
statusText:
|
|
1267
|
+
headers: q.from(O.headers),
|
|
1268
|
+
status: O.status,
|
|
1269
|
+
statusText: O.statusText,
|
|
1270
1270
|
config: t,
|
|
1271
1271
|
request: y
|
|
1272
1272
|
});
|
|
1273
1273
|
});
|
|
1274
|
-
} catch (
|
|
1275
|
-
throw m && m(),
|
|
1276
|
-
new
|
|
1274
|
+
} catch (S) {
|
|
1275
|
+
throw m && m(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
|
|
1276
|
+
new b("Network Error", b.ERR_NETWORK, t, y),
|
|
1277
1277
|
{
|
|
1278
|
-
cause:
|
|
1278
|
+
cause: S.cause || S
|
|
1279
1279
|
}
|
|
1280
|
-
) :
|
|
1280
|
+
) : b.from(S, S && S.code, t, y);
|
|
1281
1281
|
}
|
|
1282
1282
|
}), Ht = {
|
|
1283
1283
|
http: ca,
|
|
@@ -1303,7 +1303,7 @@ const Or = (t) => `- ${t}`, Va = (t) => p.isFunction(t) || t === null || t === !
|
|
|
1303
1303
|
n = t[a];
|
|
1304
1304
|
let i;
|
|
1305
1305
|
if (r = n, !Va(n) && (r = Ht[(i = String(n)).toLowerCase()], r === void 0))
|
|
1306
|
-
throw new
|
|
1306
|
+
throw new b(`Unknown adapter '${i}'`);
|
|
1307
1307
|
if (r)
|
|
1308
1308
|
break;
|
|
1309
1309
|
o[i || "#" + a] = r;
|
|
@@ -1315,7 +1315,7 @@ const Or = (t) => `- ${t}`, Va = (t) => p.isFunction(t) || t === null || t === !
|
|
|
1315
1315
|
let i = e ? a.length > 1 ? `since :
|
|
1316
1316
|
` + a.map(Or).join(`
|
|
1317
1317
|
`) : " " + Or(a[0]) : "as no adapter specified";
|
|
1318
|
-
throw new
|
|
1318
|
+
throw new b(
|
|
1319
1319
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1320
1320
|
"ERR_NOT_SUPPORT"
|
|
1321
1321
|
);
|
|
@@ -1359,9 +1359,9 @@ st.transitional = function(e, n, r) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
return (a, i, s) => {
|
|
1361
1361
|
if (e === !1)
|
|
1362
|
-
throw new
|
|
1362
|
+
throw new b(
|
|
1363
1363
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1364
|
-
|
|
1364
|
+
b.ERR_DEPRECATED
|
|
1365
1365
|
);
|
|
1366
1366
|
return n && !Rr[i] && (Rr[i] = !0), e ? e(a, i, s) : !0;
|
|
1367
1367
|
};
|
|
@@ -1371,7 +1371,7 @@ st.spelling = function(e) {
|
|
|
1371
1371
|
};
|
|
1372
1372
|
function Qa(t, e, n) {
|
|
1373
1373
|
if (typeof t != "object")
|
|
1374
|
-
throw new
|
|
1374
|
+
throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
|
|
1375
1375
|
const r = Object.keys(t);
|
|
1376
1376
|
let o = r.length;
|
|
1377
1377
|
for (; o-- > 0; ) {
|
|
@@ -1379,11 +1379,11 @@ function Qa(t, e, n) {
|
|
|
1379
1379
|
if (i) {
|
|
1380
1380
|
const s = t[a], u = s === void 0 || i(s, a, t);
|
|
1381
1381
|
if (u !== !0)
|
|
1382
|
-
throw new
|
|
1382
|
+
throw new b("option " + a + " must be " + u, b.ERR_BAD_OPTION_VALUE);
|
|
1383
1383
|
continue;
|
|
1384
1384
|
}
|
|
1385
1385
|
if (n !== !0)
|
|
1386
|
-
throw new
|
|
1386
|
+
throw new b("Unknown option " + a, b.ERR_BAD_OPTION);
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
const He = {
|
|
@@ -1676,7 +1676,7 @@ $.CancelToken = tr;
|
|
|
1676
1676
|
$.isCancel = An;
|
|
1677
1677
|
$.VERSION = Nn;
|
|
1678
1678
|
$.toFormData = at;
|
|
1679
|
-
$.AxiosError =
|
|
1679
|
+
$.AxiosError = b;
|
|
1680
1680
|
$.Cancel = $.CanceledError;
|
|
1681
1681
|
$.all = function(e) {
|
|
1682
1682
|
return Promise.all(e);
|
|
@@ -1781,14 +1781,14 @@ var Gt = ni, Ir = Gt.custom, Lr = Un(Ir) ? Ir : null, In = {
|
|
|
1781
1781
|
o = [];
|
|
1782
1782
|
else if (Mn(o, e) >= 0)
|
|
1783
1783
|
return "[Circular]";
|
|
1784
|
-
function d(
|
|
1784
|
+
function d(P, N, w) {
|
|
1785
1785
|
if (N && (o = pi.call(o), o.push(N)), w) {
|
|
1786
1786
|
var H = {
|
|
1787
1787
|
depth: a.depth
|
|
1788
1788
|
};
|
|
1789
|
-
return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(
|
|
1789
|
+
return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(P, H, r + 1, o);
|
|
1790
1790
|
}
|
|
1791
|
-
return t(
|
|
1791
|
+
return t(P, a, r + 1, o);
|
|
1792
1792
|
}
|
|
1793
1793
|
if (typeof e == "function" && !Ur(e)) {
|
|
1794
1794
|
var v = Ei(e), y = Me(e, d);
|
|
@@ -1799,8 +1799,8 @@ var Gt = ni, Ir = Gt.custom, Lr = Un(Ir) ? Ir : null, In = {
|
|
|
1799
1799
|
return typeof e == "object" && !ve ? Ae(m) : m;
|
|
1800
1800
|
}
|
|
1801
1801
|
if (xi(e)) {
|
|
1802
|
-
for (var h = "<" + _r.call(String(e.nodeName)),
|
|
1803
|
-
h += " " +
|
|
1802
|
+
for (var h = "<" + _r.call(String(e.nodeName)), S = e.attributes || [], O = 0; O < S.length; O++)
|
|
1803
|
+
h += " " + S[O].name + "=" + Ln(yi(S[O].value), "double", a);
|
|
1804
1804
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + _r.call(String(e.nodeName)) + ">", h;
|
|
1805
1805
|
}
|
|
1806
1806
|
if (Jt(e)) {
|
|
@@ -1820,15 +1820,15 @@ var Gt = ni, Ir = Gt.custom, Lr = Un(Ir) ? Ir : null, In = {
|
|
|
1820
1820
|
return e.inspect();
|
|
1821
1821
|
}
|
|
1822
1822
|
if (Oi(e)) {
|
|
1823
|
-
var
|
|
1824
|
-
return Tr && Tr.call(e, function(
|
|
1825
|
-
|
|
1826
|
-
}), Mr("Map", Qe.call(e),
|
|
1823
|
+
var x = [];
|
|
1824
|
+
return Tr && Tr.call(e, function(P, N) {
|
|
1825
|
+
x.push(d(N, e, !0) + " => " + d(P, e));
|
|
1826
|
+
}), Mr("Map", Qe.call(e), x, f);
|
|
1827
1827
|
}
|
|
1828
1828
|
if (Pi(e)) {
|
|
1829
1829
|
var I = [];
|
|
1830
|
-
return xr && xr.call(e, function(
|
|
1831
|
-
I.push(d(
|
|
1830
|
+
return xr && xr.call(e, function(P) {
|
|
1831
|
+
I.push(d(P, e));
|
|
1832
1832
|
}), Mr("Set", Xe.call(e), I, f);
|
|
1833
1833
|
}
|
|
1834
1834
|
if (Ai(e))
|
|
@@ -1850,7 +1850,7 @@ var Gt = ni, Ir = Gt.custom, Lr = Un(Ir) ? Ir : null, In = {
|
|
|
1850
1850
|
if (typeof globalThis < "u" && e === globalThis || typeof Pr < "u" && e === Pr)
|
|
1851
1851
|
return "{ [object globalThis] }";
|
|
1852
1852
|
if (!hi(e) && !Ur(e)) {
|
|
1853
|
-
var L = Me(e, d), z = Fr ? Fr(e) === Object.prototype : e instanceof Object || e.constructor === Object, G = e instanceof Object ? "" : "null prototype", E = !z && Te && Object(e) === e && Te in e ? or.call(ie(e), 8, -1) : G ? "Object" : "",
|
|
1853
|
+
var L = Me(e, d), z = Fr ? Fr(e) === Object.prototype : e instanceof Object || e.constructor === Object, G = e instanceof Object ? "" : "null prototype", E = !z && Te && Object(e) === e && Te in e ? or.call(ie(e), 8, -1) : G ? "Object" : "", A = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", C = A + (E || G ? "[" + re.call(Nr.call([], E || [], G || []), ": ") + "] " : "");
|
|
1854
1854
|
return L.length === 0 ? C + "{}" : f ? C + "{" + Vt(L, f) + "}" : C + "{ " + re.call(L, ", ") + " }";
|
|
1855
1855
|
}
|
|
1856
1856
|
return String(e);
|
|
@@ -2226,11 +2226,11 @@ function os() {
|
|
|
2226
2226
|
throw new TypeError(t + l);
|
|
2227
2227
|
for (var c = a(arguments, 1), f, d = function() {
|
|
2228
2228
|
if (this instanceof f) {
|
|
2229
|
-
var
|
|
2229
|
+
var S = l.apply(
|
|
2230
2230
|
this,
|
|
2231
2231
|
o(c, arguments)
|
|
2232
2232
|
);
|
|
2233
|
-
return Object(
|
|
2233
|
+
return Object(S) === S ? S : this;
|
|
2234
2234
|
}
|
|
2235
2235
|
return l.apply(
|
|
2236
2236
|
u,
|
|
@@ -2311,7 +2311,7 @@ function gs() {
|
|
|
2311
2311
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = ut();
|
|
2312
2312
|
return Nt = n.call(t, e), Nt;
|
|
2313
2313
|
}
|
|
2314
|
-
var
|
|
2314
|
+
var R, vs = kn, ws = Bi, bs = ki, Ss = ji, Es = qi, we = Hi, ge = Ee, Os = zi, As = Wi, Rs = Ki, Ps = Gi, Ts = Ji, xs = Vi, Cs = Qi, _s = Zi, Kn = Function, $t = function(t) {
|
|
2315
2315
|
try {
|
|
2316
2316
|
return Kn('"use strict"; return (' + t + ").constructor;")();
|
|
2317
2317
|
} catch {
|
|
@@ -2328,23 +2328,23 @@ var A, vs = kn, ws = Bi, bs = ki, Ss = ji, Es = qi, we = Hi, ge = Ee, Os = zi, A
|
|
|
2328
2328
|
return Ft;
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
|
-
}() : Ft, ye = ns()(), D = ms(), Fs = Hn(), Ds = qn(), Gn = zn(), Fe = ar(), me = {}, Is = typeof Uint8Array > "u" || !D ?
|
|
2331
|
+
}() : Ft, ye = ns()(), D = ms(), Fs = Hn(), Ds = qn(), Gn = zn(), Fe = ar(), me = {}, Is = typeof Uint8Array > "u" || !D ? R : D(Uint8Array), ue = {
|
|
2332
2332
|
__proto__: null,
|
|
2333
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
2333
|
+
"%AggregateError%": typeof AggregateError > "u" ? R : AggregateError,
|
|
2334
2334
|
"%Array%": Array,
|
|
2335
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
2336
|
-
"%ArrayIteratorPrototype%": ye && D ? D([][Symbol.iterator]()) :
|
|
2337
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2335
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? R : ArrayBuffer,
|
|
2336
|
+
"%ArrayIteratorPrototype%": ye && D ? D([][Symbol.iterator]()) : R,
|
|
2337
|
+
"%AsyncFromSyncIteratorPrototype%": R,
|
|
2338
2338
|
"%AsyncFunction%": me,
|
|
2339
2339
|
"%AsyncGenerator%": me,
|
|
2340
2340
|
"%AsyncGeneratorFunction%": me,
|
|
2341
2341
|
"%AsyncIteratorPrototype%": me,
|
|
2342
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
2343
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
2344
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
2345
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
2342
|
+
"%Atomics%": typeof Atomics > "u" ? R : Atomics,
|
|
2343
|
+
"%BigInt%": typeof BigInt > "u" ? R : BigInt,
|
|
2344
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? R : BigInt64Array,
|
|
2345
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? R : BigUint64Array,
|
|
2346
2346
|
"%Boolean%": Boolean,
|
|
2347
|
-
"%DataView%": typeof DataView > "u" ?
|
|
2347
|
+
"%DataView%": typeof DataView > "u" ? R : DataView,
|
|
2348
2348
|
"%Date%": Date,
|
|
2349
2349
|
"%decodeURI%": decodeURI,
|
|
2350
2350
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2354,51 +2354,51 @@ var A, vs = kn, ws = Bi, bs = ki, Ss = ji, Es = qi, we = Hi, ge = Ee, Os = zi, A
|
|
|
2354
2354
|
"%eval%": eval,
|
|
2355
2355
|
// eslint-disable-line no-eval
|
|
2356
2356
|
"%EvalError%": bs,
|
|
2357
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
2358
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
2359
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
2360
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
2357
|
+
"%Float16Array%": typeof Float16Array > "u" ? R : Float16Array,
|
|
2358
|
+
"%Float32Array%": typeof Float32Array > "u" ? R : Float32Array,
|
|
2359
|
+
"%Float64Array%": typeof Float64Array > "u" ? R : Float64Array,
|
|
2360
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? R : FinalizationRegistry,
|
|
2361
2361
|
"%Function%": Kn,
|
|
2362
2362
|
"%GeneratorFunction%": me,
|
|
2363
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
2364
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
2365
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
2363
|
+
"%Int8Array%": typeof Int8Array > "u" ? R : Int8Array,
|
|
2364
|
+
"%Int16Array%": typeof Int16Array > "u" ? R : Int16Array,
|
|
2365
|
+
"%Int32Array%": typeof Int32Array > "u" ? R : Int32Array,
|
|
2366
2366
|
"%isFinite%": isFinite,
|
|
2367
2367
|
"%isNaN%": isNaN,
|
|
2368
|
-
"%IteratorPrototype%": ye && D ? D(D([][Symbol.iterator]())) :
|
|
2369
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
2370
|
-
"%Map%": typeof Map > "u" ?
|
|
2371
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !ye || !D ?
|
|
2368
|
+
"%IteratorPrototype%": ye && D ? D(D([][Symbol.iterator]())) : R,
|
|
2369
|
+
"%JSON%": typeof JSON == "object" ? JSON : R,
|
|
2370
|
+
"%Map%": typeof Map > "u" ? R : Map,
|
|
2371
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ye || !D ? R : D((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2372
2372
|
"%Math%": Math,
|
|
2373
2373
|
"%Number%": Number,
|
|
2374
2374
|
"%Object%": vs,
|
|
2375
2375
|
"%Object.getOwnPropertyDescriptor%": _e,
|
|
2376
2376
|
"%parseFloat%": parseFloat,
|
|
2377
2377
|
"%parseInt%": parseInt,
|
|
2378
|
-
"%Promise%": typeof Promise > "u" ?
|
|
2379
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
2378
|
+
"%Promise%": typeof Promise > "u" ? R : Promise,
|
|
2379
|
+
"%Proxy%": typeof Proxy > "u" ? R : Proxy,
|
|
2380
2380
|
"%RangeError%": Ss,
|
|
2381
2381
|
"%ReferenceError%": Es,
|
|
2382
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
2382
|
+
"%Reflect%": typeof Reflect > "u" ? R : Reflect,
|
|
2383
2383
|
"%RegExp%": RegExp,
|
|
2384
|
-
"%Set%": typeof Set > "u" ?
|
|
2385
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !ye || !D ?
|
|
2386
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
2384
|
+
"%Set%": typeof Set > "u" ? R : Set,
|
|
2385
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ye || !D ? R : D((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2386
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? R : SharedArrayBuffer,
|
|
2387
2387
|
"%String%": String,
|
|
2388
|
-
"%StringIteratorPrototype%": ye && D ? D(""[Symbol.iterator]()) :
|
|
2389
|
-
"%Symbol%": ye ? Symbol :
|
|
2388
|
+
"%StringIteratorPrototype%": ye && D ? D(""[Symbol.iterator]()) : R,
|
|
2389
|
+
"%Symbol%": ye ? Symbol : R,
|
|
2390
2390
|
"%SyntaxError%": we,
|
|
2391
2391
|
"%ThrowTypeError%": $s,
|
|
2392
2392
|
"%TypedArray%": Is,
|
|
2393
2393
|
"%TypeError%": ge,
|
|
2394
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
2395
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
2396
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
2397
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
2394
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? R : Uint8Array,
|
|
2395
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? R : Uint8ClampedArray,
|
|
2396
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? R : Uint16Array,
|
|
2397
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? R : Uint32Array,
|
|
2398
2398
|
"%URIError%": Os,
|
|
2399
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
2400
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
2401
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
2399
|
+
"%WeakMap%": typeof WeakMap > "u" ? R : WeakMap,
|
|
2400
|
+
"%WeakRef%": typeof WeakRef > "u" ? R : WeakRef,
|
|
2401
|
+
"%WeakSet%": typeof WeakSet > "u" ? R : WeakSet,
|
|
2402
2402
|
"%Function.prototype.call%": Fe,
|
|
2403
2403
|
"%Function.prototype.apply%": Gn,
|
|
2404
2404
|
"%Object.defineProperty%": Ns,
|
|
@@ -2795,27 +2795,27 @@ function() {
|
|
|
2795
2795
|
strictNullHandling: !1
|
|
2796
2796
|
}, Nl = function(e) {
|
|
2797
2797
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2798
|
-
}, Ut = {}, $l = function t(e, n, r, o, a, i, s, u, l, c, f, d, v, y, m, h,
|
|
2799
|
-
for (var g = e, T =
|
|
2798
|
+
}, Ut = {}, $l = function t(e, n, r, o, a, i, s, u, l, c, f, d, v, y, m, h, S, O) {
|
|
2799
|
+
for (var g = e, T = O, x = 0, I = !1; (T = T.get(Ut)) !== void 0 && !I; ) {
|
|
2800
2800
|
var L = T.get(e);
|
|
2801
|
-
if (
|
|
2802
|
-
if (L ===
|
|
2801
|
+
if (x += 1, typeof L < "u") {
|
|
2802
|
+
if (L === x)
|
|
2803
2803
|
throw new RangeError("Cyclic object value");
|
|
2804
2804
|
I = !0;
|
|
2805
2805
|
}
|
|
2806
|
-
typeof T.get(Ut) > "u" && (
|
|
2806
|
+
typeof T.get(Ut) > "u" && (x = 0);
|
|
2807
2807
|
}
|
|
2808
2808
|
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && te(g) && (g = Ke.maybeMap(g, function(X) {
|
|
2809
2809
|
return X instanceof Date ? v(X) : X;
|
|
2810
2810
|
})), g === null) {
|
|
2811
2811
|
if (i)
|
|
2812
|
-
return l && !h ? l(n, F.encoder,
|
|
2812
|
+
return l && !h ? l(n, F.encoder, S, "key", y) : n;
|
|
2813
2813
|
g = "";
|
|
2814
2814
|
}
|
|
2815
2815
|
if (Nl(g) || Ke.isBuffer(g)) {
|
|
2816
2816
|
if (l) {
|
|
2817
|
-
var z = h ? n : l(n, F.encoder,
|
|
2818
|
-
return [m(z) + "=" + m(l(g, F.encoder,
|
|
2817
|
+
var z = h ? n : l(n, F.encoder, S, "key", y);
|
|
2818
|
+
return [m(z) + "=" + m(l(g, F.encoder, S, "value", y))];
|
|
2819
2819
|
}
|
|
2820
2820
|
return [m(n) + "=" + m(String(g))];
|
|
2821
2821
|
}
|
|
@@ -2828,19 +2828,19 @@ function() {
|
|
|
2828
2828
|
else if (te(c))
|
|
2829
2829
|
E = c;
|
|
2830
2830
|
else {
|
|
2831
|
-
var
|
|
2832
|
-
E = f ?
|
|
2831
|
+
var A = Object.keys(g);
|
|
2832
|
+
E = f ? A.sort(f) : A;
|
|
2833
2833
|
}
|
|
2834
|
-
var C = u ? String(n).replace(/\./g, "%2E") : String(n),
|
|
2834
|
+
var C = u ? String(n).replace(/\./g, "%2E") : String(n), P = o && te(g) && g.length === 1 ? C + "[]" : C;
|
|
2835
2835
|
if (a && te(g) && g.length === 0)
|
|
2836
|
-
return
|
|
2836
|
+
return P + "[]";
|
|
2837
2837
|
for (var N = 0; N < E.length; ++N) {
|
|
2838
2838
|
var w = E[N], H = typeof w == "object" && w && typeof w.value < "u" ? w.value : g[w];
|
|
2839
2839
|
if (!(s && H === null)) {
|
|
2840
|
-
var B = d && u ? String(w).replace(/\./g, "%2E") : String(w), k = te(g) ? typeof r == "function" ? r(
|
|
2841
|
-
|
|
2840
|
+
var B = d && u ? String(w).replace(/\./g, "%2E") : String(w), k = te(g) ? typeof r == "function" ? r(P, B) : P : P + (d ? "." + B : "[" + B + "]");
|
|
2841
|
+
O.set(e, x);
|
|
2842
2842
|
var W = eo();
|
|
2843
|
-
W.set(Ut,
|
|
2843
|
+
W.set(Ut, O), ro(G, t(
|
|
2844
2844
|
H,
|
|
2845
2845
|
k,
|
|
2846
2846
|
r,
|
|
@@ -2857,7 +2857,7 @@ function() {
|
|
|
2857
2857
|
y,
|
|
2858
2858
|
m,
|
|
2859
2859
|
h,
|
|
2860
|
-
|
|
2860
|
+
S,
|
|
2861
2861
|
W
|
|
2862
2862
|
));
|
|
2863
2863
|
}
|
|
@@ -3189,40 +3189,40 @@ const Ql = 5e3, io = () => Mt ? !1 : (Mt = !0, setTimeout(() => {
|
|
|
3189
3189
|
if (ao) return;
|
|
3190
3190
|
const t = "/login";
|
|
3191
3191
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (n = window.top) == null || n.vueRouter.replace(t) : window.location.replace(`/#${t}`));
|
|
3192
|
-
}, Xl = async (t) => {
|
|
3192
|
+
}, Xl = () => yo("code") || "" || ao ? !1 : io() ? (oo ? ho({ ...mo, redirect_uri: go }) : so(), !0) : !1, Yl = async (t) => {
|
|
3193
3193
|
var n;
|
|
3194
3194
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3195
|
-
},
|
|
3196
|
-
var m, h,
|
|
3195
|
+
}, Zl = async (t, e) => {
|
|
3196
|
+
var y, m, h, S;
|
|
3197
3197
|
const { t: n } = ln();
|
|
3198
3198
|
let r, o, a = {};
|
|
3199
3199
|
const i = { 400: n("参数校验错误"), 404: n("接口地址未找到"), 500: n("服务器内部错误") };
|
|
3200
|
-
let s = ((
|
|
3201
|
-
const u =
|
|
3202
|
-
if (
|
|
3203
|
-
|
|
3204
|
-
const
|
|
3205
|
-
if (rn &&
|
|
3206
|
-
const
|
|
3207
|
-
o =
|
|
3200
|
+
let s = ((y = t == null ? void 0 : t.response) == null ? void 0 : y.data) || {};
|
|
3201
|
+
const u = s == null ? void 0 : s.code, l = (m = t.response) == null ? void 0 : m.status;
|
|
3202
|
+
if (u === 401 || l === 401) {
|
|
3203
|
+
Xl(), r = u || l, a = s;
|
|
3204
|
+
const O = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3205
|
+
if (rn && O && (s != null && s.status)) {
|
|
3206
|
+
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, T = n(s.status, ...g);
|
|
3207
|
+
o = T === s.status ? await an(n, s.status, g) : T;
|
|
3208
3208
|
} else
|
|
3209
3209
|
o = (s == null ? void 0 : s.msg) || i[r] || (t == null ? void 0 : t.message);
|
|
3210
3210
|
} else if (t.response) {
|
|
3211
|
-
if (s instanceof Blob && (s = await new Promise((
|
|
3212
|
-
const
|
|
3213
|
-
|
|
3211
|
+
if (s instanceof Blob && (s = await new Promise((O) => {
|
|
3212
|
+
const g = new FileReader();
|
|
3213
|
+
g.readAsText(s, "utf-8"), g.onload = () => {
|
|
3214
3214
|
try {
|
|
3215
|
-
|
|
3215
|
+
O(JSON.parse(g.result || "{}"));
|
|
3216
3216
|
} catch {
|
|
3217
|
-
|
|
3217
|
+
O({ code: 400, msg: n("解析错误") });
|
|
3218
3218
|
}
|
|
3219
3219
|
};
|
|
3220
3220
|
})), s.code !== void 0 && s.code !== null) {
|
|
3221
3221
|
r = s.code, a = s;
|
|
3222
|
-
const
|
|
3223
|
-
if (rn &&
|
|
3224
|
-
const
|
|
3225
|
-
o =
|
|
3222
|
+
const O = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3223
|
+
if (rn && O && (s != null && s.status)) {
|
|
3224
|
+
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, T = n(s.status, ...g);
|
|
3225
|
+
o = T === s.status ? await an(n, s.status, g) : T;
|
|
3226
3226
|
} else
|
|
3227
3227
|
o = (s == null ? void 0 : s.msg) ?? "";
|
|
3228
3228
|
} else
|
|
@@ -3230,8 +3230,8 @@ const Ql = 5e3, io = () => Mt ? !1 : (Mt = !0, setTimeout(() => {
|
|
|
3230
3230
|
o || (o = i[t.response.status] || t.message);
|
|
3231
3231
|
} else t.request ? (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("请求配置异常"));
|
|
3232
3232
|
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3233
|
-
const
|
|
3234
|
-
return !(e != null && e.ignoreErrorMessage) && o && (!
|
|
3233
|
+
const f = Date.now(), d = o === nn, v = f - on < Vl;
|
|
3234
|
+
return !(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((S = (h = window.DasMessage) == null ? void 0 : h.error) == null || S.call(h, { message: o, showClose: !0 }), nn = o, on = f), { ...a, code: r, msg: o, error: t };
|
|
3235
3235
|
};
|
|
3236
3236
|
function J(t, e) {
|
|
3237
3237
|
const n = $.create();
|
|
@@ -3254,7 +3254,7 @@ function J(t, e) {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
f && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${f}`);
|
|
3256
3256
|
}
|
|
3257
|
-
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) => Gl.stringify(f, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3257
|
+
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) => Gl.stringify(f, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Yl), r.onError || (r.onError = Zl), (r.csrf ?? !1) && (r.headers["csrf-token"] = tn.get("csrf-token"));
|
|
3258
3258
|
const u = r.params || {};
|
|
3259
3259
|
if (u.project === void 0) {
|
|
3260
3260
|
let f = 0;
|
|
@@ -3274,9 +3274,9 @@ const V = "v1";
|
|
|
3274
3274
|
J(`/api/iot/${V}`);
|
|
3275
3275
|
J(`/api/iot-device/thingmodel/${V}`), J(`/api/iot-device/devicemanage/${V}`), J(`/api/iot-device/product/${V}`), J(`/api/iot-device/product-storage/${V}`);
|
|
3276
3276
|
J(`/api/device-relation/deviceproject/${V}`), J(`/api/device-relation/devicerule/${V}`), J(`/api/device-relation/project/${V}`);
|
|
3277
|
-
const cr = J(`/api/oss/minio/${V}`),
|
|
3277
|
+
const cr = J(`/api/oss/minio/${V}`), ec = J(`/api/progress/accessor/${V}`);
|
|
3278
3278
|
J(`/api/dms/analysis/${V}`);
|
|
3279
|
-
let
|
|
3279
|
+
let tc = (t = 21) => {
|
|
3280
3280
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3281
3281
|
for (; t--; ) {
|
|
3282
3282
|
let r = n[t] & 63;
|
|
@@ -3284,14 +3284,14 @@ let ec = (t = 21) => {
|
|
|
3284
3284
|
}
|
|
3285
3285
|
return e;
|
|
3286
3286
|
};
|
|
3287
|
-
const
|
|
3287
|
+
const rc = cr.get("token"), nc = cr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), oc = cr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), ac = ec.get("progress"), Sc = () => {
|
|
3288
3288
|
let t = K(!1), e = K(""), n = K(0), r = K("normal"), o = K(!1), a, i = K(""), s = K(""), u = K(""), l = K(""), c = K(!1), f = K(""), d = "", v = K(""), y;
|
|
3289
3289
|
const m = () => {
|
|
3290
3290
|
s.value = "", u.value = "", l.value = "", c.value = !1, f.value = "";
|
|
3291
3291
|
}, h = async () => {
|
|
3292
|
-
const [E,
|
|
3293
|
-
return E ? { stauts: !1 } : { status: !0, data:
|
|
3294
|
-
},
|
|
3292
|
+
const [E, A] = await rc().run();
|
|
3293
|
+
return E ? { stauts: !1 } : { status: !0, data: A };
|
|
3294
|
+
}, S = (E) => new Promise((A, C) => {
|
|
3295
3295
|
const N = [];
|
|
3296
3296
|
let w = 0;
|
|
3297
3297
|
for (; w < E.size; ) {
|
|
@@ -3299,26 +3299,26 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3299
3299
|
N.push(B), w += 1048576;
|
|
3300
3300
|
}
|
|
3301
3301
|
const H = new Blob(N, { type: E.type });
|
|
3302
|
-
|
|
3303
|
-
}),
|
|
3302
|
+
A(H);
|
|
3303
|
+
}), O = async (E, A, C, P = !0, N = "", w = !1) => {
|
|
3304
3304
|
var ur, fr;
|
|
3305
|
-
d = N, v.value = "import",
|
|
3305
|
+
d = N, v.value = "import", P && (r.value = "normal", n.value = 0, e.value = U("导入进度"), t.value = !0, i.value = ""), y = A;
|
|
3306
3306
|
const H = await h();
|
|
3307
3307
|
if (!H.status) return;
|
|
3308
3308
|
let B = H.data, k = null, { autoContentType: W, bucketName: X, importFileName: Le } = C;
|
|
3309
|
-
const lo = w ?
|
|
3309
|
+
const lo = w ? oc : nc;
|
|
3310
3310
|
if (w) {
|
|
3311
3311
|
let oe = [];
|
|
3312
|
-
await
|
|
3313
|
-
let dt = await
|
|
3312
|
+
await A.forEach(async (Ue) => {
|
|
3313
|
+
let dt = await S(Ue);
|
|
3314
3314
|
oe.push(dt);
|
|
3315
|
-
}), k = new FormData(), k.append("accessKeyId", B.accessKeyId), k.append("secretAccessKey", B.secretAccessKey), k.append("sessionToken", B.sessionToken), k.append("bucketName", X),
|
|
3315
|
+
}), k = new FormData(), k.append("accessKeyId", B.accessKeyId), k.append("secretAccessKey", B.secretAccessKey), k.append("sessionToken", B.sessionToken), k.append("bucketName", X), A.forEach((Ue, dt) => {
|
|
3316
3316
|
k.append("file", oe[dt]);
|
|
3317
3317
|
}), Le.forEach((Ue) => {
|
|
3318
3318
|
k.append("filePaths", Ue);
|
|
3319
3319
|
});
|
|
3320
3320
|
} else {
|
|
3321
|
-
const oe = await
|
|
3321
|
+
const oe = await S(A);
|
|
3322
3322
|
k = {
|
|
3323
3323
|
accessKeyId: B.accessKeyId,
|
|
3324
3324
|
secretAccessKey: B.secretAccessKey,
|
|
@@ -3331,7 +3331,7 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3331
3331
|
}
|
|
3332
3332
|
const [co, uo] = await lo(k).run();
|
|
3333
3333
|
if (co) return t.value = !1;
|
|
3334
|
-
const Y = await
|
|
3334
|
+
const Y = await sc(uo.data);
|
|
3335
3335
|
if (!w && (Y == null ? void 0 : Y.statusCode) != 200 || w && (Y != null && Y.some((oe) => (oe == null ? void 0 : oe.statusCode) != 200))) {
|
|
3336
3336
|
t.value = !1, (ur = window.DasMessage) == null || ur.error({
|
|
3337
3337
|
message: (Y == null ? void 0 : Y.errorMsg) || U("上传失败"),
|
|
@@ -3341,12 +3341,12 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3341
3341
|
return;
|
|
3342
3342
|
}
|
|
3343
3343
|
const pt = await (E == null ? void 0 : E(Y));
|
|
3344
|
-
if (
|
|
3344
|
+
if (P) {
|
|
3345
3345
|
if (!pt.status) {
|
|
3346
3346
|
t.value = !1, r.value = "error";
|
|
3347
3347
|
return;
|
|
3348
3348
|
}
|
|
3349
|
-
e.value = U("导入进度"), t.value = !0,
|
|
3349
|
+
e.value = U("导入进度"), t.value = !0, x(pt.taskId, "import", "");
|
|
3350
3350
|
} else {
|
|
3351
3351
|
if (!pt.status) return;
|
|
3352
3352
|
r.value = "success", (fr = window.DasMessage) == null || fr.success({
|
|
@@ -3355,30 +3355,30 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3355
3355
|
repeatNum: 1
|
|
3356
3356
|
});
|
|
3357
3357
|
}
|
|
3358
|
-
}, g = async (E,
|
|
3358
|
+
}, g = async (E, A = "", C = "") => {
|
|
3359
3359
|
r.value = "normal", n.value = 0, e.value = C || U("导出进度"), t.value = !0;
|
|
3360
|
-
const
|
|
3361
|
-
if (!
|
|
3360
|
+
const P = await (E == null ? void 0 : E());
|
|
3361
|
+
if (!P.status) {
|
|
3362
3362
|
t.value = !1, r.value = "error";
|
|
3363
3363
|
return;
|
|
3364
3364
|
}
|
|
3365
|
-
|
|
3366
|
-
}, T = async (E,
|
|
3367
|
-
v.value = "export",
|
|
3365
|
+
x(P.taskId, "action", "");
|
|
3366
|
+
}, T = async (E, A = "", C = "", P = !0) => {
|
|
3367
|
+
v.value = "export", P && (r.value = "normal", n.value = 0, e.value = U("导出进度"), t.value = !0);
|
|
3368
3368
|
const N = await (E == null ? void 0 : E());
|
|
3369
3369
|
if (!N.status) {
|
|
3370
3370
|
t.value = !1, r.value = "error";
|
|
3371
3371
|
return;
|
|
3372
3372
|
}
|
|
3373
|
-
et().format("YYYYMMDDHHmmss") + "",
|
|
3374
|
-
},
|
|
3375
|
-
o.value = !0, L(E,
|
|
3373
|
+
et().format("YYYYMMDDHHmmss") + "", x(N.taskId, "export", A || "", C);
|
|
3374
|
+
}, x = async (E, A, C, P = "") => {
|
|
3375
|
+
o.value = !0, L(E, A, C, P), a = setTimeout(() => {
|
|
3376
3376
|
}, 50);
|
|
3377
3377
|
}, I = () => {
|
|
3378
3378
|
clearTimeout(a), a = null, t.value = !1;
|
|
3379
|
-
}, L = async (E,
|
|
3379
|
+
}, L = async (E, A = "export", C, P = "") => {
|
|
3380
3380
|
var H, B, k;
|
|
3381
|
-
const [N, w] = await
|
|
3381
|
+
const [N, w] = await ac("", {
|
|
3382
3382
|
url: `progress/${E}`
|
|
3383
3383
|
}).run();
|
|
3384
3384
|
if (N) {
|
|
@@ -3386,43 +3386,43 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3386
3386
|
return;
|
|
3387
3387
|
}
|
|
3388
3388
|
if (n.value = w.percentage, n.value == 100)
|
|
3389
|
-
if (i.value = w, o.value = !1, I(),
|
|
3389
|
+
if (i.value = w, o.value = !1, I(), A == "export")
|
|
3390
3390
|
if (w.status == 1) {
|
|
3391
3391
|
r.value = "success";
|
|
3392
3392
|
let W = await pr(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3393
3393
|
const X = ((H = W == null ? void 0 : W.split("/")) == null ? void 0 : H.pop()) || "";
|
|
3394
3394
|
let Le = C || X;
|
|
3395
|
-
sn(`${Ge().baseURL}/oss${w.filePath}`, Le,
|
|
3396
|
-
} else w.status == 2 && (l.value = w.message || (
|
|
3395
|
+
sn(`${Ge().baseURL}/oss${w.filePath}`, Le, P), o.value = !1;
|
|
3396
|
+
} else w.status == 2 && (l.value = w.message || (A == "export" ? U("导出失败") : U("导入失败")), (B = window.DasMessage) == null || B.error({
|
|
3397
3397
|
message: l.value,
|
|
3398
3398
|
grouping: !0,
|
|
3399
3399
|
repeatNum: 1
|
|
3400
3400
|
}));
|
|
3401
|
-
else if (
|
|
3401
|
+
else if (A == "import") {
|
|
3402
3402
|
if (w.filePath) {
|
|
3403
3403
|
r.value = "error", c.value = !0;
|
|
3404
3404
|
let W = await pr(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3405
3405
|
const X = ((k = W == null ? void 0 : W.split("/")) == null ? void 0 : k.pop()) || "";
|
|
3406
3406
|
s.value = d || X, u.value = y.sizeText, l.value = U("部分数据校验不通过,请下载附件并修改,重新导入!"), f.value = `${Ge().baseURL}/oss/${w == null ? void 0 : w.filePath}`;
|
|
3407
3407
|
}
|
|
3408
|
-
z(w.status,
|
|
3409
|
-
} else
|
|
3408
|
+
z(w.status, A, w.message);
|
|
3409
|
+
} else A == "action" && (r.value = "success");
|
|
3410
3410
|
else
|
|
3411
3411
|
a && w.status != 2 ? a = setTimeout(() => {
|
|
3412
|
-
L(E,
|
|
3413
|
-
}, 50) : (i.value = w, o.value = !1, z(w.status,
|
|
3414
|
-
}, z = (E,
|
|
3415
|
-
var
|
|
3416
|
-
E == 1 ? (r.value = "success", (
|
|
3417
|
-
message:
|
|
3412
|
+
L(E, A, C, P);
|
|
3413
|
+
}, 50) : (i.value = w, o.value = !1, z(w.status, A, w.message), I(), c.value = !0, l.value = (w == null ? void 0 : w.message) || "");
|
|
3414
|
+
}, z = (E, A = "export", C) => {
|
|
3415
|
+
var P, N, w;
|
|
3416
|
+
E == 1 ? (r.value = "success", (P = window.DasMessage) == null || P.success({
|
|
3417
|
+
message: A == "export" ? U("导出成功") : U("导入成功"),
|
|
3418
3418
|
grouping: !0,
|
|
3419
3419
|
repeatNum: 1
|
|
3420
3420
|
}), s.value = "", u.value = "", l.value = "") : E == 2 ? (r.value = "error", (N = window.DasMessage) == null || N.error({
|
|
3421
|
-
message: C || (
|
|
3421
|
+
message: C || (A == "export" ? U("导出失败") : U("导入失败")),
|
|
3422
3422
|
grouping: !0,
|
|
3423
3423
|
repeatNum: 1
|
|
3424
3424
|
}), l.value = C || U("部分数据校验不通过,请下载附件并修改,重新导入!")) : E == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
3425
|
-
message:
|
|
3425
|
+
message: A == "export" ? U("部分导出失败") : U("部分导入失败"),
|
|
3426
3426
|
grouping: !0,
|
|
3427
3427
|
repeatNum: 1
|
|
3428
3428
|
}));
|
|
@@ -3439,19 +3439,19 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3439
3439
|
errorMessage: l,
|
|
3440
3440
|
errorImport: c,
|
|
3441
3441
|
errorFilePath: f,
|
|
3442
|
-
fileImport:
|
|
3442
|
+
fileImport: O,
|
|
3443
3443
|
fileExport: T,
|
|
3444
3444
|
fileAction: g,
|
|
3445
3445
|
generateUniqueName: (E) => {
|
|
3446
|
-
const
|
|
3447
|
-
return `${
|
|
3446
|
+
const A = E == null ? void 0 : E.match(/(.*?)(\.[^.]*$|$)/), C = A.length ? A[2] : "";
|
|
3447
|
+
return `${A.length ? A[1] : E}${tc()}${C}`;
|
|
3448
3448
|
},
|
|
3449
3449
|
downloadFile: sn,
|
|
3450
3450
|
resetStataus: m,
|
|
3451
|
-
checkProgress:
|
|
3451
|
+
checkProgress: x,
|
|
3452
3452
|
fileHandleType: v
|
|
3453
3453
|
};
|
|
3454
|
-
},
|
|
3454
|
+
}, ic = (t) => {
|
|
3455
3455
|
let e = t == null ? void 0 : t.toLocaleLowerCase();
|
|
3456
3456
|
return {
|
|
3457
3457
|
excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -3484,7 +3484,7 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3484
3484
|
const r = new XMLHttpRequest();
|
|
3485
3485
|
r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
|
|
3486
3486
|
const a = new Blob([this.response], {
|
|
3487
|
-
type:
|
|
3487
|
+
type: ic(n)
|
|
3488
3488
|
}), i = URL.createObjectURL(a);
|
|
3489
3489
|
if (window.navigator.msSaveOrOpenBlob)
|
|
3490
3490
|
navigator.msSaveBlob(a, e);
|
|
@@ -3493,7 +3493,7 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3493
3493
|
s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
|
|
3494
3494
|
}
|
|
3495
3495
|
}, r.send();
|
|
3496
|
-
},
|
|
3496
|
+
}, sc = (t) => new Promise((e, n) => {
|
|
3497
3497
|
var r = new FileReader();
|
|
3498
3498
|
r.onload = function(o) {
|
|
3499
3499
|
let a = "";
|
|
@@ -3502,5 +3502,5 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3502
3502
|
});
|
|
3503
3503
|
export {
|
|
3504
3504
|
sn as downloadFile,
|
|
3505
|
-
|
|
3505
|
+
Sc as useFile
|
|
3506
3506
|
};
|