@das-fed/upf-utils 6.4.0-hot.9 → 6.4.0-test.0
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 +321 -318
- package/api-services/index.js +249 -249
- 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 +1153 -1162
- package/api-services/modules/authentication/index.js +957 -975
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +940 -940
- package/api-services/modules/bems/index.js +762 -766
- 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 +304 -301
- package/api-services/modules/duty-manage/index.js +283 -283
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +313 -310
- package/api-services/modules/enterpriseright/index.js +292 -292
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +516 -513
- 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 +1153 -1162
- package/api-services/modules/gateway-edge/index.js +957 -975
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +438 -438
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +321 -318
- package/api-services/modules/iot/index.js +292 -292
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +192 -189
- package/api-services/modules/justauth/index.js +191 -191
- 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 +313 -310
- package/api-services/modules/permission/index.js +292 -292
- 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 +313 -310
- package/api-services/modules/portal/index.js +292 -292
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +313 -310
- package/api-services/modules/space-manage/index.js +292 -292
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1279 -1264
- package/api-services/modules/super-admin/index.js +1067 -1049
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1156 -1165
- package/api-services/modules/supplier/index.js +958 -976
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +313 -310
- package/api-services/modules/supplychain-manage/index.js +292 -292
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1247 -1232
- package/api-services/modules/systemConfiguration/index.js +1042 -1024
- 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 +4469 -200
- package/common-info/getPermissionMethod/es5.js +4218 -0
- package/common-info/getPermissionMethod/index.d.ts +26 -0
- package/common-info/getPermissionMethod/index.js +3342 -0
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +11 -2
- package/common-info/index.js +3539 -168
- package/common-info/index.js.gz +0 -0
- package/common-info/type.d.ts +0 -2
- package/create-api-service/es5.js +1235 -1219
- package/create-api-service/index.d.ts +6 -6
- package/create-api-service/index.js +1032 -1013
- package/create-api-service/index.js.gz +0 -0
- package/directive/auth/es5.js +62 -50
- package/directive/auth/index.js +39 -38
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +9 -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
|
@@ -160,8 +160,8 @@ const sa = (t) => {
|
|
|
160
160
|
e[o] = r;
|
|
161
161
|
const a = Se(r) ? [] : {};
|
|
162
162
|
return Ne(r, (i, s) => {
|
|
163
|
-
const
|
|
164
|
-
!Ce(
|
|
163
|
+
const c = n(i, o + 1);
|
|
164
|
+
!Ce(c) && (a[s] = c);
|
|
165
165
|
}), e[o] = void 0, a;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -280,8 +280,8 @@ Object.defineProperties(S, bn);
|
|
|
280
280
|
Object.defineProperty(wn, "isAxiosError", { value: !0 });
|
|
281
281
|
S.from = (t, e, n, r, o, a) => {
|
|
282
282
|
const i = Object.create(wn);
|
|
283
|
-
return f.toFlatObject(t, i, function(
|
|
284
|
-
return
|
|
283
|
+
return f.toFlatObject(t, i, function(c) {
|
|
284
|
+
return c !== Error.prototype;
|
|
285
285
|
}, (s) => s !== "isAxiosError"), S.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 pa = null;
|
|
@@ -309,55 +309,55 @@ function st(t, e, n) {
|
|
|
309
309
|
metaTokens: !0,
|
|
310
310
|
dots: !1,
|
|
311
311
|
indexes: !1
|
|
312
|
-
}, !1, function(
|
|
313
|
-
return !f.isUndefined(m[
|
|
312
|
+
}, !1, function(g, m) {
|
|
313
|
+
return !f.isUndefined(m[g]);
|
|
314
314
|
});
|
|
315
|
-
const r = n.metaTokens, o = n.visitor || l, a = n.dots, i = n.indexes,
|
|
315
|
+
const r = n.metaTokens, o = n.visitor || l, a = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
|
|
316
316
|
if (!f.isFunction(o))
|
|
317
317
|
throw new TypeError("visitor must be a function");
|
|
318
|
-
function
|
|
318
|
+
function u(y) {
|
|
319
319
|
if (y === null) return "";
|
|
320
320
|
if (f.isDate(y))
|
|
321
321
|
return y.toISOString();
|
|
322
322
|
if (f.isBoolean(y))
|
|
323
323
|
return y.toString();
|
|
324
|
-
if (!
|
|
324
|
+
if (!c && f.isBlob(y))
|
|
325
325
|
throw new S("Blob is not supported. Use a Buffer instead.");
|
|
326
|
-
return f.isArrayBuffer(y) || f.isTypedArray(y) ?
|
|
326
|
+
return f.isArrayBuffer(y) || f.isTypedArray(y) ? c && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
327
327
|
}
|
|
328
|
-
function l(y,
|
|
329
|
-
let
|
|
328
|
+
function l(y, g, m) {
|
|
329
|
+
let A = y;
|
|
330
330
|
if (y && !m && typeof y == "object") {
|
|
331
|
-
if (f.endsWith(
|
|
332
|
-
|
|
333
|
-
else if (f.isArray(y) && da(y) || (f.isFileList(y) || f.endsWith(
|
|
334
|
-
return
|
|
335
|
-
!(f.isUndefined(
|
|
331
|
+
if (f.endsWith(g, "{}"))
|
|
332
|
+
g = r ? g : g.slice(0, -2), y = JSON.stringify(y);
|
|
333
|
+
else if (f.isArray(y) && da(y) || (f.isFileList(y) || f.endsWith(g, "[]")) && (A = f.toArray(y)))
|
|
334
|
+
return g = Sn(g), A.forEach(function(h, x) {
|
|
335
|
+
!(f.isUndefined(h) || h === null) && e.append(
|
|
336
336
|
// eslint-disable-next-line no-nested-ternary
|
|
337
|
-
i === !0 ? gr([
|
|
338
|
-
|
|
337
|
+
i === !0 ? gr([g], x, a) : i === null ? g : g + "[]",
|
|
338
|
+
u(h)
|
|
339
339
|
);
|
|
340
340
|
}), !1;
|
|
341
341
|
}
|
|
342
|
-
return qt(y) ? !0 : (e.append(gr(m,
|
|
342
|
+
return qt(y) ? !0 : (e.append(gr(m, g, a), u(y)), !1);
|
|
343
343
|
}
|
|
344
344
|
const p = [], d = Object.assign(ya, {
|
|
345
345
|
defaultVisitor: l,
|
|
346
|
-
convertValue:
|
|
346
|
+
convertValue: u,
|
|
347
347
|
isVisitable: qt
|
|
348
348
|
});
|
|
349
|
-
function v(y,
|
|
349
|
+
function v(y, g) {
|
|
350
350
|
if (!f.isUndefined(y)) {
|
|
351
351
|
if (p.indexOf(y) !== -1)
|
|
352
|
-
throw Error("Circular reference detected in " +
|
|
353
|
-
p.push(y), f.forEach(y, function(
|
|
354
|
-
(!(f.isUndefined(
|
|
352
|
+
throw Error("Circular reference detected in " + g.join("."));
|
|
353
|
+
p.push(y), f.forEach(y, function(A, O) {
|
|
354
|
+
(!(f.isUndefined(A) || A === null) && o.call(
|
|
355
355
|
e,
|
|
356
|
-
|
|
357
|
-
f.isString(
|
|
358
|
-
|
|
356
|
+
A,
|
|
357
|
+
f.isString(O) ? O.trim() : O,
|
|
358
|
+
g,
|
|
359
359
|
d
|
|
360
|
-
)) === !0 && v(
|
|
360
|
+
)) === !0 && v(A, g ? g.concat(O) : [O]);
|
|
361
361
|
}), p.pop();
|
|
362
362
|
}
|
|
363
363
|
}
|
|
@@ -513,8 +513,8 @@ function Rn(t) {
|
|
|
513
513
|
function e(n, r, o, a) {
|
|
514
514
|
let i = n[a++];
|
|
515
515
|
if (i === "__proto__") return !0;
|
|
516
|
-
const s = Number.isFinite(+i),
|
|
517
|
-
return i = !i && f.isArray(o) ? o.length : i,
|
|
516
|
+
const s = Number.isFinite(+i), c = a >= n.length;
|
|
517
|
+
return i = !i && f.isArray(o) ? o.length : i, c ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && f.isArray(o[i]) && (o[i] = Pa(o[i])), !s);
|
|
518
518
|
}
|
|
519
519
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
|
520
520
|
const n = {};
|
|
@@ -552,10 +552,10 @@ const De = {
|
|
|
552
552
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
553
553
|
return Aa(e, this.formSerializer).toString();
|
|
554
554
|
if ((s = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
555
|
-
const
|
|
555
|
+
const c = this.env && this.env.FormData;
|
|
556
556
|
return st(
|
|
557
557
|
s ? { "files[]": e } : e,
|
|
558
|
-
|
|
558
|
+
c && new c(),
|
|
559
559
|
this.formSerializer
|
|
560
560
|
);
|
|
561
561
|
}
|
|
@@ -673,24 +673,24 @@ class H {
|
|
|
673
673
|
}
|
|
674
674
|
set(e, n, r) {
|
|
675
675
|
const o = this;
|
|
676
|
-
function a(s,
|
|
677
|
-
const l = Ae(
|
|
676
|
+
function a(s, c, u) {
|
|
677
|
+
const l = Ae(c);
|
|
678
678
|
if (!l)
|
|
679
679
|
throw new Error("header name must be a non-empty string");
|
|
680
680
|
const p = f.findKey(o, l);
|
|
681
|
-
(!p || o[p] === void 0 ||
|
|
681
|
+
(!p || o[p] === void 0 || u === !0 || u === void 0 && o[p] !== !1) && (o[p || c] = ze(s));
|
|
682
682
|
}
|
|
683
|
-
const i = (s,
|
|
683
|
+
const i = (s, c) => f.forEach(s, (u, l) => a(u, l, c));
|
|
684
684
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
685
685
|
i(e, n);
|
|
686
686
|
else if (f.isString(e) && (e = e.trim()) && !_a(e))
|
|
687
687
|
i($a(e), n);
|
|
688
688
|
else if (f.isObject(e) && f.isIterable(e)) {
|
|
689
|
-
let s = {},
|
|
689
|
+
let s = {}, c, u;
|
|
690
690
|
for (const l of e) {
|
|
691
691
|
if (!f.isArray(l))
|
|
692
692
|
throw TypeError("Object iterator must return a key-value pair");
|
|
693
|
-
s[
|
|
693
|
+
s[u = l[0]] = (c = s[u]) ? f.isArray(c) ? [...c, l[1]] : [c, l[1]] : l[1];
|
|
694
694
|
}
|
|
695
695
|
i(s, n);
|
|
696
696
|
} else
|
|
@@ -838,26 +838,26 @@ function Ia(t, e) {
|
|
|
838
838
|
t = t || 10;
|
|
839
839
|
const n = new Array(t), r = new Array(t);
|
|
840
840
|
let o = 0, a = 0, i;
|
|
841
|
-
return e = e !== void 0 ? e : 1e3, function(
|
|
842
|
-
const
|
|
843
|
-
i || (i =
|
|
841
|
+
return e = e !== void 0 ? e : 1e3, function(c) {
|
|
842
|
+
const u = Date.now(), l = r[a];
|
|
843
|
+
i || (i = u), n[o] = c, r[o] = u;
|
|
844
844
|
let p = a, d = 0;
|
|
845
845
|
for (; p !== o; )
|
|
846
846
|
d += n[p++], p = p % t;
|
|
847
|
-
if (o = (o + 1) % t, o === a && (a = (a + 1) % t),
|
|
847
|
+
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), u - i < e)
|
|
848
848
|
return;
|
|
849
|
-
const v = l &&
|
|
849
|
+
const v = l && u - l;
|
|
850
850
|
return v ? Math.round(d * 1e3 / v) : void 0;
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
853
|
function Ma(t, e) {
|
|
854
854
|
let n = 0, r = 1e3 / e, o, a;
|
|
855
|
-
const i = (
|
|
856
|
-
n = l, o = null, a && (clearTimeout(a), a = null), t.apply(null,
|
|
855
|
+
const i = (u, l = Date.now()) => {
|
|
856
|
+
n = l, o = null, a && (clearTimeout(a), a = null), t.apply(null, u);
|
|
857
857
|
};
|
|
858
|
-
return [(...
|
|
858
|
+
return [(...u) => {
|
|
859
859
|
const l = Date.now(), p = l - n;
|
|
860
|
-
p >= r ? i(
|
|
860
|
+
p >= r ? i(u, l) : (o = u, a || (a = setTimeout(() => {
|
|
861
861
|
a = null, i(o);
|
|
862
862
|
}, r - p)));
|
|
863
863
|
}, () => o && i(o)];
|
|
@@ -866,15 +866,15 @@ const Qe = (t, e, n = 3) => {
|
|
|
866
866
|
let r = 0;
|
|
867
867
|
const o = Ia(50, 250);
|
|
868
868
|
return Ma((a) => {
|
|
869
|
-
const i = a.loaded, s = a.lengthComputable ? a.total : void 0,
|
|
869
|
+
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, c = i - r, u = o(c), l = i <= s;
|
|
870
870
|
r = i;
|
|
871
871
|
const p = {
|
|
872
872
|
loaded: i,
|
|
873
873
|
total: s,
|
|
874
874
|
progress: s ? i / s : void 0,
|
|
875
|
-
bytes:
|
|
876
|
-
rate:
|
|
877
|
-
estimated:
|
|
875
|
+
bytes: c,
|
|
876
|
+
rate: u || void 0,
|
|
877
|
+
estimated: u && s && l ? (s - i) / u : void 0,
|
|
878
878
|
event: a,
|
|
879
879
|
lengthComputable: s != null,
|
|
880
880
|
[e ? "download" : "upload"]: !0
|
|
@@ -932,32 +932,32 @@ const Or = (t) => t instanceof H ? { ...t } : t;
|
|
|
932
932
|
function pe(t, e) {
|
|
933
933
|
e = e || {};
|
|
934
934
|
const n = {};
|
|
935
|
-
function r(
|
|
936
|
-
return f.isPlainObject(
|
|
935
|
+
function r(u, l, p, d) {
|
|
936
|
+
return f.isPlainObject(u) && f.isPlainObject(l) ? f.merge.call({ caseless: d }, u, l) : f.isPlainObject(l) ? f.merge({}, l) : f.isArray(l) ? l.slice() : l;
|
|
937
937
|
}
|
|
938
|
-
function o(
|
|
938
|
+
function o(u, l, p, d) {
|
|
939
939
|
if (f.isUndefined(l)) {
|
|
940
|
-
if (!f.isUndefined(
|
|
941
|
-
return r(void 0,
|
|
942
|
-
} else return r(
|
|
940
|
+
if (!f.isUndefined(u))
|
|
941
|
+
return r(void 0, u, p, d);
|
|
942
|
+
} else return r(u, l, p, d);
|
|
943
943
|
}
|
|
944
|
-
function a(
|
|
944
|
+
function a(u, l) {
|
|
945
945
|
if (!f.isUndefined(l))
|
|
946
946
|
return r(void 0, l);
|
|
947
947
|
}
|
|
948
|
-
function i(
|
|
948
|
+
function i(u, l) {
|
|
949
949
|
if (f.isUndefined(l)) {
|
|
950
|
-
if (!f.isUndefined(
|
|
951
|
-
return r(void 0,
|
|
950
|
+
if (!f.isUndefined(u))
|
|
951
|
+
return r(void 0, u);
|
|
952
952
|
} else return r(void 0, l);
|
|
953
953
|
}
|
|
954
|
-
function s(
|
|
954
|
+
function s(u, l, p) {
|
|
955
955
|
if (p in e)
|
|
956
|
-
return r(
|
|
956
|
+
return r(u, l);
|
|
957
957
|
if (p in t)
|
|
958
|
-
return r(void 0,
|
|
958
|
+
return r(void 0, u);
|
|
959
959
|
}
|
|
960
|
-
const
|
|
960
|
+
const c = {
|
|
961
961
|
url: a,
|
|
962
962
|
method: a,
|
|
963
963
|
data: a,
|
|
@@ -986,10 +986,10 @@ function pe(t, e) {
|
|
|
986
986
|
socketPath: i,
|
|
987
987
|
responseEncoding: i,
|
|
988
988
|
validateStatus: s,
|
|
989
|
-
headers: (
|
|
989
|
+
headers: (u, l, p) => o(Or(u), Or(l), p, !0)
|
|
990
990
|
};
|
|
991
991
|
return f.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
|
|
992
|
-
const p =
|
|
992
|
+
const p = c[l] || o, d = p(t[l], e[l], l);
|
|
993
993
|
f.isUndefined(d) && p !== s || (n[l] = d);
|
|
994
994
|
}), n;
|
|
995
995
|
}
|
|
@@ -1000,18 +1000,18 @@ const $n = (t) => {
|
|
|
1000
1000
|
"Authorization",
|
|
1001
1001
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1002
1002
|
);
|
|
1003
|
-
let
|
|
1003
|
+
let c;
|
|
1004
1004
|
if (f.isFormData(n)) {
|
|
1005
1005
|
if (B.hasStandardBrowserEnv || B.hasStandardBrowserWebWorkerEnv)
|
|
1006
1006
|
i.setContentType(void 0);
|
|
1007
|
-
else if ((
|
|
1008
|
-
const [
|
|
1009
|
-
i.setContentType([
|
|
1007
|
+
else if ((c = i.getContentType()) !== !1) {
|
|
1008
|
+
const [u, ...l] = c ? c.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
1009
|
+
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
if (B.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(e)), r || r !== !1 && La(e.url))) {
|
|
1013
|
-
const
|
|
1014
|
-
|
|
1013
|
+
const u = o && a && Ua.read(a);
|
|
1014
|
+
u && i.set(o, u);
|
|
1015
1015
|
}
|
|
1016
1016
|
return e;
|
|
1017
1017
|
}, ja = typeof XMLHttpRequest < "u", qa = ja && function(t) {
|
|
@@ -1019,54 +1019,54 @@ const $n = (t) => {
|
|
|
1019
1019
|
const o = $n(t);
|
|
1020
1020
|
let a = o.data;
|
|
1021
1021
|
const i = H.from(o.headers).normalize();
|
|
1022
|
-
let { responseType: s, onUploadProgress:
|
|
1023
|
-
function
|
|
1022
|
+
let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = o, l, p, d, v, y;
|
|
1023
|
+
function g() {
|
|
1024
1024
|
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
|
|
1025
1025
|
}
|
|
1026
1026
|
let m = new XMLHttpRequest();
|
|
1027
1027
|
m.open(o.method.toUpperCase(), o.url, !0), m.timeout = o.timeout;
|
|
1028
|
-
function
|
|
1028
|
+
function A() {
|
|
1029
1029
|
if (!m)
|
|
1030
1030
|
return;
|
|
1031
|
-
const
|
|
1031
|
+
const h = H.from(
|
|
1032
1032
|
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
1033
|
-
),
|
|
1033
|
+
), $ = {
|
|
1034
1034
|
data: !s || s === "text" || s === "json" ? m.responseText : m.response,
|
|
1035
1035
|
status: m.status,
|
|
1036
1036
|
statusText: m.statusText,
|
|
1037
|
-
headers:
|
|
1037
|
+
headers: h,
|
|
1038
1038
|
config: t,
|
|
1039
1039
|
request: m
|
|
1040
1040
|
};
|
|
1041
1041
|
Tn(function(L) {
|
|
1042
|
-
n(L),
|
|
1042
|
+
n(L), g();
|
|
1043
1043
|
}, function(L) {
|
|
1044
|
-
r(L),
|
|
1045
|
-
},
|
|
1044
|
+
r(L), g();
|
|
1045
|
+
}, $), m = null;
|
|
1046
1046
|
}
|
|
1047
|
-
"onloadend" in m ? m.onloadend =
|
|
1048
|
-
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1047
|
+
"onloadend" in m ? m.onloadend = A : m.onreadystatechange = function() {
|
|
1048
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(A);
|
|
1049
1049
|
}, m.onabort = function() {
|
|
1050
1050
|
m && (r(new S("Request aborted", S.ECONNABORTED, t, m)), m = null);
|
|
1051
1051
|
}, m.onerror = function() {
|
|
1052
1052
|
r(new S("Network Error", S.ERR_NETWORK, t, m)), m = null;
|
|
1053
1053
|
}, m.ontimeout = function() {
|
|
1054
1054
|
let x = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1055
|
-
const
|
|
1055
|
+
const $ = o.transitional || An;
|
|
1056
1056
|
o.timeoutErrorMessage && (x = o.timeoutErrorMessage), r(new S(
|
|
1057
1057
|
x,
|
|
1058
|
-
|
|
1058
|
+
$.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
|
|
1059
1059
|
t,
|
|
1060
1060
|
m
|
|
1061
1061
|
)), m = null;
|
|
1062
|
-
}, a === void 0 && i.setContentType(null), "setRequestHeader" in m && f.forEach(i.toJSON(), function(x,
|
|
1063
|
-
m.setRequestHeader(
|
|
1064
|
-
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType),
|
|
1065
|
-
m && (r(!
|
|
1062
|
+
}, a === void 0 && i.setContentType(null), "setRequestHeader" in m && f.forEach(i.toJSON(), function(x, $) {
|
|
1063
|
+
m.setRequestHeader($, x);
|
|
1064
|
+
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), u && ([d, y] = Qe(u, !0), m.addEventListener("progress", d)), c && m.upload && ([p, v] = Qe(c), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (h) => {
|
|
1065
|
+
m && (r(!h || h.type ? new Ee(null, t, m) : h), m.abort(), m = null);
|
|
1066
1066
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
r(new S("Unsupported protocol " +
|
|
1067
|
+
const O = Fa(o.url);
|
|
1068
|
+
if (O && B.protocols.indexOf(O) === -1) {
|
|
1069
|
+
r(new S("Unsupported protocol " + O + ":", S.ERR_BAD_REQUEST, t));
|
|
1070
1070
|
return;
|
|
1071
1071
|
}
|
|
1072
1072
|
m.send(a || null);
|
|
@@ -1075,10 +1075,10 @@ const $n = (t) => {
|
|
|
1075
1075
|
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1076
1076
|
if (e || n) {
|
|
1077
1077
|
let r = new AbortController(), o;
|
|
1078
|
-
const a = function(
|
|
1078
|
+
const a = function(u) {
|
|
1079
1079
|
if (!o) {
|
|
1080
1080
|
o = !0, s();
|
|
1081
|
-
const l =
|
|
1081
|
+
const l = u instanceof Error ? u : this.reason;
|
|
1082
1082
|
r.abort(l instanceof S ? l : new Ee(l instanceof Error ? l.message : l));
|
|
1083
1083
|
}
|
|
1084
1084
|
};
|
|
@@ -1086,13 +1086,13 @@ const $n = (t) => {
|
|
|
1086
1086
|
i = null, a(new S(`timeout ${e} of ms exceeded`, S.ETIMEDOUT));
|
|
1087
1087
|
}, e);
|
|
1088
1088
|
const s = () => {
|
|
1089
|
-
t && (i && clearTimeout(i), i = null, t.forEach((
|
|
1090
|
-
|
|
1089
|
+
t && (i && clearTimeout(i), i = null, t.forEach((u) => {
|
|
1090
|
+
u.unsubscribe ? u.unsubscribe(a) : u.removeEventListener("abort", a);
|
|
1091
1091
|
}), t = null);
|
|
1092
1092
|
};
|
|
1093
|
-
t.forEach((
|
|
1094
|
-
const { signal:
|
|
1095
|
-
return
|
|
1093
|
+
t.forEach((u) => u.addEventListener("abort", a));
|
|
1094
|
+
const { signal: c } = r;
|
|
1095
|
+
return c.unsubscribe = () => f.asap(s), c;
|
|
1096
1096
|
}
|
|
1097
1097
|
}, za = function* (t, e) {
|
|
1098
1098
|
let n = t.byteLength;
|
|
@@ -1124,15 +1124,15 @@ const $n = (t) => {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}, Ar = (t, e, n, r) => {
|
|
1126
1126
|
const o = Wa(t, e);
|
|
1127
|
-
let a = 0, i, s = (
|
|
1128
|
-
i || (i = !0, r && r(
|
|
1127
|
+
let a = 0, i, s = (c) => {
|
|
1128
|
+
i || (i = !0, r && r(c));
|
|
1129
1129
|
};
|
|
1130
1130
|
return new ReadableStream({
|
|
1131
|
-
async pull(
|
|
1131
|
+
async pull(c) {
|
|
1132
1132
|
try {
|
|
1133
|
-
const { done:
|
|
1134
|
-
if (
|
|
1135
|
-
s(),
|
|
1133
|
+
const { done: u, value: l } = await o.next();
|
|
1134
|
+
if (u) {
|
|
1135
|
+
s(), c.close();
|
|
1136
1136
|
return;
|
|
1137
1137
|
}
|
|
1138
1138
|
let p = l.byteLength;
|
|
@@ -1140,13 +1140,13 @@ const $n = (t) => {
|
|
|
1140
1140
|
let d = a += p;
|
|
1141
1141
|
n(d);
|
|
1142
1142
|
}
|
|
1143
|
-
|
|
1144
|
-
} catch (
|
|
1145
|
-
throw s(
|
|
1143
|
+
c.enqueue(new Uint8Array(l));
|
|
1144
|
+
} catch (u) {
|
|
1145
|
+
throw s(u), u;
|
|
1146
1146
|
}
|
|
1147
1147
|
},
|
|
1148
|
-
cancel(
|
|
1149
|
-
return s(
|
|
1148
|
+
cancel(c) {
|
|
1149
|
+
return s(c), o.return();
|
|
1150
1150
|
}
|
|
1151
1151
|
}, {
|
|
1152
1152
|
highWaterMark: 2
|
|
@@ -1203,35 +1203,35 @@ const Va = async (t) => {
|
|
|
1203
1203
|
cancelToken: a,
|
|
1204
1204
|
timeout: i,
|
|
1205
1205
|
onDownloadProgress: s,
|
|
1206
|
-
onUploadProgress:
|
|
1207
|
-
responseType:
|
|
1206
|
+
onUploadProgress: c,
|
|
1207
|
+
responseType: u,
|
|
1208
1208
|
headers: l,
|
|
1209
1209
|
withCredentials: p = "same-origin",
|
|
1210
1210
|
fetchOptions: d
|
|
1211
1211
|
} = $n(t);
|
|
1212
|
-
|
|
1212
|
+
u = u ? (u + "").toLowerCase() : "text";
|
|
1213
1213
|
let v = Ha([o, a && a.toAbortSignal()], i), y;
|
|
1214
|
-
const
|
|
1214
|
+
const g = v && v.unsubscribe && (() => {
|
|
1215
1215
|
v.unsubscribe();
|
|
1216
1216
|
});
|
|
1217
1217
|
let m;
|
|
1218
1218
|
try {
|
|
1219
|
-
if (
|
|
1220
|
-
let
|
|
1219
|
+
if (c && Ja && n !== "get" && n !== "head" && (m = await Qa(l, r)) !== 0) {
|
|
1220
|
+
let $ = new Request(e, {
|
|
1221
1221
|
method: "POST",
|
|
1222
1222
|
body: r,
|
|
1223
1223
|
duplex: "half"
|
|
1224
1224
|
}), M;
|
|
1225
|
-
if (f.isFormData(r) && (M =
|
|
1225
|
+
if (f.isFormData(r) && (M = $.headers.get("content-type")) && l.setContentType(M), $.body) {
|
|
1226
1226
|
const [L, W] = Sr(
|
|
1227
1227
|
m,
|
|
1228
|
-
Qe(Er(
|
|
1228
|
+
Qe(Er(c))
|
|
1229
1229
|
);
|
|
1230
|
-
r = Ar(
|
|
1230
|
+
r = Ar($.body, Rr, L, W);
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
1234
|
-
const
|
|
1234
|
+
const A = "credentials" in Request.prototype;
|
|
1235
1235
|
y = new Request(e, {
|
|
1236
1236
|
...d,
|
|
1237
1237
|
signal: v,
|
|
@@ -1239,45 +1239,45 @@ const Va = async (t) => {
|
|
|
1239
1239
|
headers: l.normalize().toJSON(),
|
|
1240
1240
|
body: r,
|
|
1241
1241
|
duplex: "half",
|
|
1242
|
-
credentials:
|
|
1242
|
+
credentials: A ? p : void 0
|
|
1243
1243
|
});
|
|
1244
|
-
let
|
|
1245
|
-
const
|
|
1246
|
-
if (zt && (s ||
|
|
1247
|
-
const
|
|
1244
|
+
let O = await fetch(y, d);
|
|
1245
|
+
const h = zt && (u === "stream" || u === "response");
|
|
1246
|
+
if (zt && (s || h && g)) {
|
|
1247
|
+
const $ = {};
|
|
1248
1248
|
["status", "statusText", "headers"].forEach((J) => {
|
|
1249
|
-
|
|
1249
|
+
$[J] = O[J];
|
|
1250
1250
|
});
|
|
1251
|
-
const M = f.toFiniteNumber(
|
|
1251
|
+
const M = f.toFiniteNumber(O.headers.get("content-length")), [L, W] = s && Sr(
|
|
1252
1252
|
M,
|
|
1253
1253
|
Qe(Er(s), !0)
|
|
1254
1254
|
) || [];
|
|
1255
|
-
|
|
1256
|
-
Ar(
|
|
1257
|
-
W && W(),
|
|
1255
|
+
O = new Response(
|
|
1256
|
+
Ar(O.body, Rr, L, () => {
|
|
1257
|
+
W && W(), g && g();
|
|
1258
1258
|
}),
|
|
1259
|
-
|
|
1259
|
+
$
|
|
1260
1260
|
);
|
|
1261
1261
|
}
|
|
1262
|
-
|
|
1263
|
-
let x = await Xe[f.findKey(Xe,
|
|
1264
|
-
return !
|
|
1265
|
-
Tn(
|
|
1262
|
+
u = u || "text";
|
|
1263
|
+
let x = await Xe[f.findKey(Xe, u) || "text"](O, t);
|
|
1264
|
+
return !h && g && g(), await new Promise(($, M) => {
|
|
1265
|
+
Tn($, M, {
|
|
1266
1266
|
data: x,
|
|
1267
|
-
headers: H.from(
|
|
1268
|
-
status:
|
|
1269
|
-
statusText:
|
|
1267
|
+
headers: H.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
|
|
1274
|
+
} catch (A) {
|
|
1275
|
+
throw g && g(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
|
|
1276
1276
|
new S("Network Error", S.ERR_NETWORK, t, y),
|
|
1277
1277
|
{
|
|
1278
|
-
cause:
|
|
1278
|
+
cause: A.cause || A
|
|
1279
1279
|
}
|
|
1280
|
-
) : S.from(
|
|
1280
|
+
) : S.from(A, A && A.code, t, y);
|
|
1281
1281
|
}
|
|
1282
1282
|
}), Wt = {
|
|
1283
1283
|
http: pa,
|
|
@@ -1310,7 +1310,7 @@ const Pr = (t) => `- ${t}`, Ya = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1310
1310
|
}
|
|
1311
1311
|
if (!r) {
|
|
1312
1312
|
const a = Object.entries(o).map(
|
|
1313
|
-
([s,
|
|
1313
|
+
([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1314
1314
|
);
|
|
1315
1315
|
let i = e ? a.length > 1 ? `since :
|
|
1316
1316
|
` + a.map(Pr).join(`
|
|
@@ -1377,9 +1377,9 @@ function Za(t, e, n) {
|
|
|
1377
1377
|
for (; o-- > 0; ) {
|
|
1378
1378
|
const a = r[o], i = e[a];
|
|
1379
1379
|
if (i) {
|
|
1380
|
-
const s = t[a],
|
|
1381
|
-
if (
|
|
1382
|
-
throw new S("option " + a + " must be " +
|
|
1380
|
+
const s = t[a], c = s === void 0 || i(s, a, t);
|
|
1381
|
+
if (c !== !0)
|
|
1382
|
+
throw new S("option " + a + " must be " + c, S.ERR_BAD_OPTION_VALUE);
|
|
1383
1383
|
continue;
|
|
1384
1384
|
}
|
|
1385
1385
|
if (n !== !0)
|
|
@@ -1449,29 +1449,29 @@ class ce {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
), n.headers = H.concat(i, a);
|
|
1451
1451
|
const s = [];
|
|
1452
|
-
let
|
|
1453
|
-
this.interceptors.request.forEach(function(
|
|
1454
|
-
typeof
|
|
1452
|
+
let c = !0;
|
|
1453
|
+
this.interceptors.request.forEach(function(g) {
|
|
1454
|
+
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (c = c && g.synchronous, s.unshift(g.fulfilled, g.rejected));
|
|
1455
1455
|
});
|
|
1456
|
-
const
|
|
1457
|
-
this.interceptors.response.forEach(function(
|
|
1458
|
-
|
|
1456
|
+
const u = [];
|
|
1457
|
+
this.interceptors.response.forEach(function(g) {
|
|
1458
|
+
u.push(g.fulfilled, g.rejected);
|
|
1459
1459
|
});
|
|
1460
1460
|
let l, p = 0, d;
|
|
1461
|
-
if (!
|
|
1461
|
+
if (!c) {
|
|
1462
1462
|
const y = [Tr.bind(this), void 0];
|
|
1463
|
-
for (y.unshift.apply(y, s), y.push.apply(y,
|
|
1463
|
+
for (y.unshift.apply(y, s), y.push.apply(y, u), d = y.length, l = Promise.resolve(n); p < d; )
|
|
1464
1464
|
l = l.then(y[p++], y[p++]);
|
|
1465
1465
|
return l;
|
|
1466
1466
|
}
|
|
1467
1467
|
d = s.length;
|
|
1468
1468
|
let v = n;
|
|
1469
1469
|
for (p = 0; p < d; ) {
|
|
1470
|
-
const y = s[p++],
|
|
1470
|
+
const y = s[p++], g = s[p++];
|
|
1471
1471
|
try {
|
|
1472
1472
|
v = y(v);
|
|
1473
1473
|
} catch (m) {
|
|
1474
|
-
|
|
1474
|
+
g.call(this, m);
|
|
1475
1475
|
break;
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
@@ -1480,8 +1480,8 @@ class ce {
|
|
|
1480
1480
|
} catch (y) {
|
|
1481
1481
|
return Promise.reject(y);
|
|
1482
1482
|
}
|
|
1483
|
-
for (p = 0, d =
|
|
1484
|
-
l = l.then(
|
|
1483
|
+
for (p = 0, d = u.length; p < d; )
|
|
1484
|
+
l = l.then(u[p++], u[p++]);
|
|
1485
1485
|
return l;
|
|
1486
1486
|
}
|
|
1487
1487
|
getUri(e) {
|
|
@@ -1766,12 +1766,12 @@ var Vt = ii, Ur = Vt.custom, Br = Bn(Ur) ? Ur : null, Ln = {
|
|
|
1766
1766
|
if (typeof e == "number") {
|
|
1767
1767
|
if (e === 0)
|
|
1768
1768
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
1769
|
-
var
|
|
1770
|
-
return s ? Lr(e,
|
|
1769
|
+
var c = String(e);
|
|
1770
|
+
return s ? Lr(e, c) : c;
|
|
1771
1771
|
}
|
|
1772
1772
|
if (typeof e == "bigint") {
|
|
1773
|
-
var
|
|
1774
|
-
return s ? Lr(e,
|
|
1773
|
+
var u = String(e) + "n";
|
|
1774
|
+
return s ? Lr(e, u) : u;
|
|
1775
1775
|
}
|
|
1776
1776
|
var l = typeof a.depth > "u" ? 5 : a.depth;
|
|
1777
1777
|
if (typeof r > "u" && (r = 0), r >= l && l > 0 && typeof e == "object")
|
|
@@ -1781,33 +1781,33 @@ var Vt = ii, Ur = Vt.custom, Br = Bn(Ur) ? Ur : null, Ln = {
|
|
|
1781
1781
|
o = [];
|
|
1782
1782
|
else if (kn(o, e) >= 0)
|
|
1783
1783
|
return "[Circular]";
|
|
1784
|
-
function d(
|
|
1784
|
+
function d(T, N, w) {
|
|
1785
1785
|
if (N && (o = mi.call(o), o.push(N)), w) {
|
|
1786
1786
|
var z = {
|
|
1787
1787
|
depth: a.depth
|
|
1788
1788
|
};
|
|
1789
|
-
return ne(a, "quoteStyle") && (z.quoteStyle = a.quoteStyle), t(
|
|
1789
|
+
return ne(a, "quoteStyle") && (z.quoteStyle = a.quoteStyle), t(T, z, r + 1, o);
|
|
1790
1790
|
}
|
|
1791
|
-
return t(
|
|
1791
|
+
return t(T, a, r + 1, o);
|
|
1792
1792
|
}
|
|
1793
1793
|
if (typeof e == "function" && !kr(e)) {
|
|
1794
1794
|
var v = Ri(e), y = Be(e, d);
|
|
1795
1795
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + re.call(y, ", ") + " }" : "");
|
|
1796
1796
|
}
|
|
1797
1797
|
if (Bn(e)) {
|
|
1798
|
-
var
|
|
1799
|
-
return typeof e == "object" && !we ? Re(
|
|
1798
|
+
var g = we ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Jt.call(e);
|
|
1799
|
+
return typeof e == "object" && !we ? Re(g) : g;
|
|
1800
1800
|
}
|
|
1801
1801
|
if (_i(e)) {
|
|
1802
|
-
for (var m = "<" + Dr.call(String(e.nodeName)),
|
|
1803
|
-
m += " " + O
|
|
1802
|
+
for (var m = "<" + Dr.call(String(e.nodeName)), A = e.attributes || [], O = 0; O < A.length; O++)
|
|
1803
|
+
m += " " + A[O].name + "=" + Un(gi(A[O].value), "double", a);
|
|
1804
1804
|
return m += ">", e.childNodes && e.childNodes.length && (m += "..."), m += "</" + Dr.call(String(e.nodeName)) + ">", m;
|
|
1805
1805
|
}
|
|
1806
1806
|
if (Qt(e)) {
|
|
1807
1807
|
if (e.length === 0)
|
|
1808
1808
|
return "[]";
|
|
1809
|
-
var
|
|
1810
|
-
return p && !Di(
|
|
1809
|
+
var h = Be(e, d);
|
|
1810
|
+
return p && !Di(h) ? "[" + Xt(h, p) + "]" : "[ " + re.call(h, ", ") + " ]";
|
|
1811
1811
|
}
|
|
1812
1812
|
if (wi(e)) {
|
|
1813
1813
|
var x = Be(e, d);
|
|
@@ -1820,15 +1820,15 @@ var Vt = ii, Ur = Vt.custom, Br = Bn(Ur) ? Ur : null, Ln = {
|
|
|
1820
1820
|
return e.inspect();
|
|
1821
1821
|
}
|
|
1822
1822
|
if (Pi(e)) {
|
|
1823
|
-
var
|
|
1824
|
-
return Cr && Cr.call(e, function(
|
|
1825
|
-
|
|
1826
|
-
}), jr("Map", Ye.call(e),
|
|
1823
|
+
var $ = [];
|
|
1824
|
+
return Cr && Cr.call(e, function(T, N) {
|
|
1825
|
+
$.push(d(N, e, !0) + " => " + d(T, e));
|
|
1826
|
+
}), jr("Map", Ye.call(e), $, p);
|
|
1827
1827
|
}
|
|
1828
1828
|
if ($i(e)) {
|
|
1829
1829
|
var M = [];
|
|
1830
|
-
return _r && _r.call(e, function(
|
|
1831
|
-
M.push(d(
|
|
1830
|
+
return _r && _r.call(e, function(T) {
|
|
1831
|
+
M.push(d(T, e));
|
|
1832
1832
|
}), jr("Set", Ze.call(e), M, p);
|
|
1833
1833
|
}
|
|
1834
1834
|
if (Ti(e))
|
|
@@ -1850,7 +1850,7 @@ var Vt = ii, Ur = Vt.custom, Br = Bn(Ur) ? Ur : null, Ln = {
|
|
|
1850
1850
|
if (typeof globalThis < "u" && e === globalThis || typeof $r < "u" && e === $r)
|
|
1851
1851
|
return "{ [object globalThis] }";
|
|
1852
1852
|
if (!vi(e) && !kr(e)) {
|
|
1853
|
-
var L = Be(e, d), W = Mr ? Mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", E = !W && xe && Object(e) === e && xe in e ? ir.call(ie(e), 8, -1) : J ? "Object" : "",
|
|
1853
|
+
var L = Be(e, d), W = Mr ? Mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", E = !W && xe && Object(e) === e && xe in e ? ir.call(ie(e), 8, -1) : J ? "Object" : "", R = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", C = R + (E || J ? "[" + re.call(Fr.call([], E || [], J || []), ": ") + "] " : "");
|
|
1854
1854
|
return L.length === 0 ? C + "{}" : p ? C + "{" + Xt(L, p) + "}" : C + "{ " + re.call(L, ", ") + " }";
|
|
1855
1855
|
}
|
|
1856
1856
|
return String(e);
|
|
@@ -2074,11 +2074,11 @@ function Be(t, e) {
|
|
|
2074
2074
|
for (var s = 0; s < a.length; s++)
|
|
2075
2075
|
i["$" + a[s]] = a[s];
|
|
2076
2076
|
}
|
|
2077
|
-
for (var
|
|
2078
|
-
ne(t,
|
|
2077
|
+
for (var c in t)
|
|
2078
|
+
ne(t, c) && (n && String(Number(c)) === c && c < t.length || we && i["$" + c] instanceof Symbol || (In.call(/[^\w$]/, c) ? r.push(e(c, t) + ": " + e(t[c], t)) : r.push(c + ": " + e(t[c], t))));
|
|
2079
2079
|
if (typeof Et == "function")
|
|
2080
|
-
for (var
|
|
2081
|
-
Mn.call(t, a[
|
|
2080
|
+
for (var u = 0; u < a.length; u++)
|
|
2081
|
+
Mn.call(t, a[u]) && r.push("[" + e(a[u]) + "]: " + e(t[a[u]], t));
|
|
2082
2082
|
return r;
|
|
2083
2083
|
}
|
|
2084
2084
|
var Ii = ut, Mi = Oe, ft = function(t, e, n) {
|
|
@@ -2231,12 +2231,12 @@ var ss = "Function.prototype.bind called on incompatible ", ls = Object.prototyp
|
|
|
2231
2231
|
e,
|
|
2232
2232
|
Kr(r, arguments)
|
|
2233
2233
|
);
|
|
2234
|
-
}, i = cs(0, n.length - r.length), s = [],
|
|
2235
|
-
s[
|
|
2234
|
+
}, i = cs(0, n.length - r.length), s = [], c = 0; c < i; c++)
|
|
2235
|
+
s[c] = "$" + c;
|
|
2236
2236
|
if (o = Function("binder", "return function (" + ps(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
2237
|
-
var
|
|
2237
|
+
var u = function() {
|
|
2238
2238
|
};
|
|
2239
|
-
|
|
2239
|
+
u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
|
|
2240
2240
|
}
|
|
2241
2241
|
return o;
|
|
2242
2242
|
}, ys = ds, pt = Function.prototype.bind || ys, xt, Gr;
|
|
@@ -2297,7 +2297,7 @@ function Ts() {
|
|
|
2297
2297
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = pt;
|
|
2298
2298
|
return Nt = n.call(t, e), Nt;
|
|
2299
2299
|
}
|
|
2300
|
-
var
|
|
2300
|
+
var P, xs = qn, $s = qi, Cs = Hi, _s = zi, Ns = Wi, be = Ki, ve = Oe, Ds = Gi, Fs = Ji, Is = Vi, Ms = Qi, Ls = Xi, Us = Yi, Bs = Zi, ks = rs, Jn = Function, Dt = function(t) {
|
|
2301
2301
|
try {
|
|
2302
2302
|
return Jn('"use strict"; return (' + t + ").constructor;")();
|
|
2303
2303
|
} catch {
|
|
@@ -2314,23 +2314,23 @@ var R, xs = qn, $s = qi, Cs = Hi, _s = zi, Ns = Wi, be = Ki, ve = Oe, Ds = Gi, F
|
|
|
2314
2314
|
return Ft;
|
|
2315
2315
|
}
|
|
2316
2316
|
}
|
|
2317
|
-
}() : Ft, me = is()(), I = Ps(), Hs = Wn(), zs = zn(), Vn = Kn(), Fe = sr(), ge = {}, Ws = typeof Uint8Array > "u" || !I ?
|
|
2317
|
+
}() : Ft, me = is()(), I = Ps(), Hs = Wn(), zs = zn(), Vn = Kn(), Fe = sr(), ge = {}, Ws = typeof Uint8Array > "u" || !I ? P : I(Uint8Array), ue = {
|
|
2318
2318
|
__proto__: null,
|
|
2319
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
2319
|
+
"%AggregateError%": typeof AggregateError > "u" ? P : AggregateError,
|
|
2320
2320
|
"%Array%": Array,
|
|
2321
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
2322
|
-
"%ArrayIteratorPrototype%": me && I ? I([][Symbol.iterator]()) :
|
|
2323
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2321
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? P : ArrayBuffer,
|
|
2322
|
+
"%ArrayIteratorPrototype%": me && I ? I([][Symbol.iterator]()) : P,
|
|
2323
|
+
"%AsyncFromSyncIteratorPrototype%": P,
|
|
2324
2324
|
"%AsyncFunction%": ge,
|
|
2325
2325
|
"%AsyncGenerator%": ge,
|
|
2326
2326
|
"%AsyncGeneratorFunction%": ge,
|
|
2327
2327
|
"%AsyncIteratorPrototype%": ge,
|
|
2328
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
2329
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
2330
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
2331
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
2328
|
+
"%Atomics%": typeof Atomics > "u" ? P : Atomics,
|
|
2329
|
+
"%BigInt%": typeof BigInt > "u" ? P : BigInt,
|
|
2330
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? P : BigInt64Array,
|
|
2331
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? P : BigUint64Array,
|
|
2332
2332
|
"%Boolean%": Boolean,
|
|
2333
|
-
"%DataView%": typeof DataView > "u" ?
|
|
2333
|
+
"%DataView%": typeof DataView > "u" ? P : DataView,
|
|
2334
2334
|
"%Date%": Date,
|
|
2335
2335
|
"%decodeURI%": decodeURI,
|
|
2336
2336
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2340,51 +2340,51 @@ var R, xs = qn, $s = qi, Cs = Hi, _s = zi, Ns = Wi, be = Ki, ve = Oe, Ds = Gi, F
|
|
|
2340
2340
|
"%eval%": eval,
|
|
2341
2341
|
// eslint-disable-line no-eval
|
|
2342
2342
|
"%EvalError%": Cs,
|
|
2343
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
2344
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
2345
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
2346
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
2343
|
+
"%Float16Array%": typeof Float16Array > "u" ? P : Float16Array,
|
|
2344
|
+
"%Float32Array%": typeof Float32Array > "u" ? P : Float32Array,
|
|
2345
|
+
"%Float64Array%": typeof Float64Array > "u" ? P : Float64Array,
|
|
2346
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? P : FinalizationRegistry,
|
|
2347
2347
|
"%Function%": Jn,
|
|
2348
2348
|
"%GeneratorFunction%": ge,
|
|
2349
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
2350
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
2351
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
2349
|
+
"%Int8Array%": typeof Int8Array > "u" ? P : Int8Array,
|
|
2350
|
+
"%Int16Array%": typeof Int16Array > "u" ? P : Int16Array,
|
|
2351
|
+
"%Int32Array%": typeof Int32Array > "u" ? P : Int32Array,
|
|
2352
2352
|
"%isFinite%": isFinite,
|
|
2353
2353
|
"%isNaN%": isNaN,
|
|
2354
|
-
"%IteratorPrototype%": me && I ? I(I([][Symbol.iterator]())) :
|
|
2355
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
2356
|
-
"%Map%": typeof Map > "u" ?
|
|
2357
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !me || !I ?
|
|
2354
|
+
"%IteratorPrototype%": me && I ? I(I([][Symbol.iterator]())) : P,
|
|
2355
|
+
"%JSON%": typeof JSON == "object" ? JSON : P,
|
|
2356
|
+
"%Map%": typeof Map > "u" ? P : Map,
|
|
2357
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !me || !I ? P : I((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2358
2358
|
"%Math%": Math,
|
|
2359
2359
|
"%Number%": Number,
|
|
2360
2360
|
"%Object%": xs,
|
|
2361
2361
|
"%Object.getOwnPropertyDescriptor%": _e,
|
|
2362
2362
|
"%parseFloat%": parseFloat,
|
|
2363
2363
|
"%parseInt%": parseInt,
|
|
2364
|
-
"%Promise%": typeof Promise > "u" ?
|
|
2365
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
2364
|
+
"%Promise%": typeof Promise > "u" ? P : Promise,
|
|
2365
|
+
"%Proxy%": typeof Proxy > "u" ? P : Proxy,
|
|
2366
2366
|
"%RangeError%": _s,
|
|
2367
2367
|
"%ReferenceError%": Ns,
|
|
2368
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
2368
|
+
"%Reflect%": typeof Reflect > "u" ? P : Reflect,
|
|
2369
2369
|
"%RegExp%": RegExp,
|
|
2370
|
-
"%Set%": typeof Set > "u" ?
|
|
2371
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !me || !I ?
|
|
2372
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
2370
|
+
"%Set%": typeof Set > "u" ? P : Set,
|
|
2371
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !me || !I ? P : I((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2372
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? P : SharedArrayBuffer,
|
|
2373
2373
|
"%String%": String,
|
|
2374
|
-
"%StringIteratorPrototype%": me && I ? I(""[Symbol.iterator]()) :
|
|
2375
|
-
"%Symbol%": me ? Symbol :
|
|
2374
|
+
"%StringIteratorPrototype%": me && I ? I(""[Symbol.iterator]()) : P,
|
|
2375
|
+
"%Symbol%": me ? Symbol : P,
|
|
2376
2376
|
"%SyntaxError%": be,
|
|
2377
2377
|
"%ThrowTypeError%": qs,
|
|
2378
2378
|
"%TypedArray%": Ws,
|
|
2379
2379
|
"%TypeError%": ve,
|
|
2380
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
2381
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
2382
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
2383
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
2380
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? P : Uint8Array,
|
|
2381
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? P : Uint8ClampedArray,
|
|
2382
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? P : Uint16Array,
|
|
2383
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? P : Uint32Array,
|
|
2384
2384
|
"%URIError%": Ds,
|
|
2385
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
2386
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
2387
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
2385
|
+
"%WeakMap%": typeof WeakMap > "u" ? P : WeakMap,
|
|
2386
|
+
"%WeakRef%": typeof WeakRef > "u" ? P : WeakRef,
|
|
2387
|
+
"%WeakSet%": typeof WeakSet > "u" ? P : WeakSet,
|
|
2388
2388
|
"%Function.prototype.call%": Fe,
|
|
2389
2389
|
"%Function.prototype.apply%": Vn,
|
|
2390
2390
|
"%Object.defineProperty%": js,
|
|
@@ -2481,8 +2481,8 @@ var Gs = function t(e) {
|
|
|
2481
2481
|
if (r === "%" && n !== "%")
|
|
2482
2482
|
throw new be("invalid intrinsic syntax, expected opening `%`");
|
|
2483
2483
|
var o = [];
|
|
2484
|
-
return Zr(e, Xs, function(a, i, s,
|
|
2485
|
-
o[o.length] = s ? Zr(
|
|
2484
|
+
return Zr(e, Xs, function(a, i, s, c) {
|
|
2485
|
+
o[o.length] = s ? Zr(c, Ys, "$1") : i || a;
|
|
2486
2486
|
}), o;
|
|
2487
2487
|
}, el = function(e, n) {
|
|
2488
2488
|
var r = e, o;
|
|
@@ -2504,13 +2504,13 @@ var Gs = function t(e) {
|
|
|
2504
2504
|
throw new ve('"allowMissing" argument must be a boolean');
|
|
2505
2505
|
if (Qs(/^%?[^%]*%?$/, e) === null)
|
|
2506
2506
|
throw new be("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2507
|
-
var r = Zs(e), o = r.length > 0 ? r[0] : "", a = el("%" + o + "%", n), i = a.name, s = a.value,
|
|
2508
|
-
|
|
2507
|
+
var r = Zs(e), o = r.length > 0 ? r[0] : "", a = el("%" + o + "%", n), i = a.name, s = a.value, c = !1, u = a.alias;
|
|
2508
|
+
u && (o = u[0], Vs(r, Js([0, 1], u)));
|
|
2509
2509
|
for (var l = 1, p = !0; l < r.length; l += 1) {
|
|
2510
2510
|
var d = r[l], v = tt(d, 0, 1), y = tt(d, -1);
|
|
2511
2511
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2512
2512
|
throw new be("property names with quotes must have matching quotes");
|
|
2513
|
-
if ((d === "constructor" || !p) && (
|
|
2513
|
+
if ((d === "constructor" || !p) && (c = !0), o += "." + d, i = "%" + o + "%", et(ue, i))
|
|
2514
2514
|
s = ue[i];
|
|
2515
2515
|
else if (s != null) {
|
|
2516
2516
|
if (!(d in s)) {
|
|
@@ -2519,11 +2519,11 @@ var Gs = function t(e) {
|
|
|
2519
2519
|
return;
|
|
2520
2520
|
}
|
|
2521
2521
|
if (_e && l + 1 >= r.length) {
|
|
2522
|
-
var
|
|
2523
|
-
p = !!
|
|
2522
|
+
var g = _e(s, d);
|
|
2523
|
+
p = !!g, p && "get" in g && !("originalValue" in g.get) ? s = g.get : s = s[d];
|
|
2524
2524
|
} else
|
|
2525
2525
|
p = et(s, d), s = s[d];
|
|
2526
|
-
p && !
|
|
2526
|
+
p && !c && (ue[i] = s);
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
2529
|
return s;
|
|
@@ -2688,11 +2688,11 @@ function() {
|
|
|
2688
2688
|
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
|
|
2689
2689
|
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2690
2690
|
});
|
|
2691
|
-
for (var s = "",
|
|
2692
|
-
for (var
|
|
2693
|
-
var d =
|
|
2691
|
+
for (var s = "", c = 0; c < i.length; c += Lt) {
|
|
2692
|
+
for (var u = i.length >= Lt ? i.slice(c, c + Lt) : i, l = [], p = 0; p < u.length; ++p) {
|
|
2693
|
+
var d = u.charCodeAt(p);
|
|
2694
2694
|
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === Tl.RFC1738 && (d === 40 || d === 41)) {
|
|
2695
|
-
l[l.length] =
|
|
2695
|
+
l[l.length] = u.charAt(p);
|
|
2696
2696
|
continue;
|
|
2697
2697
|
}
|
|
2698
2698
|
if (d < 128) {
|
|
@@ -2707,16 +2707,16 @@ function() {
|
|
|
2707
2707
|
l[l.length] = ee[224 | d >> 12] + ee[128 | d >> 6 & 63] + ee[128 | d & 63];
|
|
2708
2708
|
continue;
|
|
2709
2709
|
}
|
|
2710
|
-
p += 1, d = 65536 + ((d & 1023) << 10 |
|
|
2710
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] = ee[240 | d >> 18] + ee[128 | d >> 12 & 63] + ee[128 | d >> 6 & 63] + ee[128 | d & 63];
|
|
2711
2711
|
}
|
|
2712
2712
|
s += l.join("");
|
|
2713
2713
|
}
|
|
2714
2714
|
return s;
|
|
2715
2715
|
}, Dl = function(e) {
|
|
2716
2716
|
for (var n = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
|
|
2717
|
-
for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i),
|
|
2718
|
-
var
|
|
2719
|
-
typeof l == "object" && l !== null && r.indexOf(l) === -1 && (n.push({ obj: i, prop:
|
|
2717
|
+
for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), c = 0; c < s.length; ++c) {
|
|
2718
|
+
var u = s[c], l = i[u];
|
|
2719
|
+
typeof l == "object" && l !== null && r.indexOf(l) === -1 && (n.push({ obj: i, prop: u }), r.push(l));
|
|
2720
2720
|
}
|
|
2721
2721
|
return xl(n), e;
|
|
2722
2722
|
}, Fl = function(e) {
|
|
@@ -2781,52 +2781,52 @@ function() {
|
|
|
2781
2781
|
strictNullHandling: !1
|
|
2782
2782
|
}, jl = function(e) {
|
|
2783
2783
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2784
|
-
}, Ut = {}, ql = function t(e, n, r, o, a, i, s,
|
|
2785
|
-
for (var
|
|
2784
|
+
}, Ut = {}, ql = function t(e, n, r, o, a, i, s, c, u, l, p, d, v, y, g, m, A, O) {
|
|
2785
|
+
for (var h = e, x = O, $ = 0, M = !1; (x = x.get(Ut)) !== void 0 && !M; ) {
|
|
2786
2786
|
var L = x.get(e);
|
|
2787
|
-
if (
|
|
2788
|
-
if (L ===
|
|
2787
|
+
if ($ += 1, typeof L < "u") {
|
|
2788
|
+
if (L === $)
|
|
2789
2789
|
throw new RangeError("Cyclic object value");
|
|
2790
2790
|
M = !0;
|
|
2791
2791
|
}
|
|
2792
|
-
typeof x.get(Ut) > "u" && (
|
|
2792
|
+
typeof x.get(Ut) > "u" && ($ = 0);
|
|
2793
2793
|
}
|
|
2794
|
-
if (typeof l == "function" ?
|
|
2794
|
+
if (typeof l == "function" ? h = l(n, h) : h instanceof Date ? h = v(h) : r === "comma" && te(h) && (h = Je.maybeMap(h, function(X) {
|
|
2795
2795
|
return X instanceof Date ? v(X) : X;
|
|
2796
|
-
})),
|
|
2796
|
+
})), h === null) {
|
|
2797
2797
|
if (i)
|
|
2798
|
-
return
|
|
2799
|
-
|
|
2798
|
+
return u && !m ? u(n, F.encoder, A, "key", y) : n;
|
|
2799
|
+
h = "";
|
|
2800
2800
|
}
|
|
2801
|
-
if (jl(
|
|
2802
|
-
if (
|
|
2803
|
-
var W = m ? n :
|
|
2804
|
-
return [
|
|
2801
|
+
if (jl(h) || Je.isBuffer(h)) {
|
|
2802
|
+
if (u) {
|
|
2803
|
+
var W = m ? n : u(n, F.encoder, A, "key", y);
|
|
2804
|
+
return [g(W) + "=" + g(u(h, F.encoder, A, "value", y))];
|
|
2805
2805
|
}
|
|
2806
|
-
return [
|
|
2806
|
+
return [g(n) + "=" + g(String(h))];
|
|
2807
2807
|
}
|
|
2808
2808
|
var J = [];
|
|
2809
|
-
if (typeof
|
|
2809
|
+
if (typeof h > "u")
|
|
2810
2810
|
return J;
|
|
2811
2811
|
var E;
|
|
2812
|
-
if (r === "comma" && te(
|
|
2813
|
-
m &&
|
|
2812
|
+
if (r === "comma" && te(h))
|
|
2813
|
+
m && u && (h = Je.maybeMap(h, u)), E = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
|
|
2814
2814
|
else if (te(l))
|
|
2815
2815
|
E = l;
|
|
2816
2816
|
else {
|
|
2817
|
-
var
|
|
2818
|
-
E = p ?
|
|
2817
|
+
var R = Object.keys(h);
|
|
2818
|
+
E = p ? R.sort(p) : R;
|
|
2819
2819
|
}
|
|
2820
|
-
var C =
|
|
2821
|
-
if (a && te(
|
|
2822
|
-
return
|
|
2820
|
+
var C = c ? String(n).replace(/\./g, "%2E") : String(n), T = o && te(h) && h.length === 1 ? C + "[]" : C;
|
|
2821
|
+
if (a && te(h) && h.length === 0)
|
|
2822
|
+
return T + "[]";
|
|
2823
2823
|
for (var N = 0; N < E.length; ++N) {
|
|
2824
|
-
var w = E[N], z = typeof w == "object" && w && typeof w.value < "u" ? w.value :
|
|
2824
|
+
var w = E[N], z = typeof w == "object" && w && typeof w.value < "u" ? w.value : h[w];
|
|
2825
2825
|
if (!(s && z === null)) {
|
|
2826
|
-
var k = d &&
|
|
2827
|
-
|
|
2826
|
+
var k = d && c ? String(w).replace(/\./g, "%2E") : String(w), j = te(h) ? typeof r == "function" ? r(T, k) : T : T + (d ? "." + k : "[" + k + "]");
|
|
2827
|
+
O.set(e, $);
|
|
2828
2828
|
var K = ro();
|
|
2829
|
-
K.set(Ut,
|
|
2829
|
+
K.set(Ut, O), oo(J, t(
|
|
2830
2830
|
z,
|
|
2831
2831
|
j,
|
|
2832
2832
|
r,
|
|
@@ -2834,16 +2834,16 @@ function() {
|
|
|
2834
2834
|
a,
|
|
2835
2835
|
i,
|
|
2836
2836
|
s,
|
|
2837
|
-
|
|
2838
|
-
r === "comma" && m && te(
|
|
2837
|
+
c,
|
|
2838
|
+
r === "comma" && m && te(h) ? null : u,
|
|
2839
2839
|
l,
|
|
2840
2840
|
p,
|
|
2841
2841
|
d,
|
|
2842
2842
|
v,
|
|
2843
2843
|
y,
|
|
2844
|
-
|
|
2844
|
+
g,
|
|
2845
2845
|
m,
|
|
2846
|
-
|
|
2846
|
+
A,
|
|
2847
2847
|
K
|
|
2848
2848
|
));
|
|
2849
2849
|
}
|
|
@@ -2900,15 +2900,15 @@ function() {
|
|
|
2900
2900
|
var i = [];
|
|
2901
2901
|
if (typeof n != "object" || n === null)
|
|
2902
2902
|
return "";
|
|
2903
|
-
var s = no[r.arrayFormat],
|
|
2903
|
+
var s = no[r.arrayFormat], c = s === "comma" && r.commaRoundTrip;
|
|
2904
2904
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2905
|
-
for (var
|
|
2905
|
+
for (var u = ro(), l = 0; l < o.length; ++l) {
|
|
2906
2906
|
var p = o[l], d = n[p];
|
|
2907
2907
|
r.skipNulls && d === null || oo(i, ql(
|
|
2908
2908
|
d,
|
|
2909
2909
|
p,
|
|
2910
2910
|
s,
|
|
2911
|
-
|
|
2911
|
+
c,
|
|
2912
2912
|
r.allowEmptyArrays,
|
|
2913
2913
|
r.strictNullHandling,
|
|
2914
2914
|
r.skipNulls,
|
|
@@ -2922,7 +2922,7 @@ function() {
|
|
|
2922
2922
|
r.formatter,
|
|
2923
2923
|
r.encodeValuesOnly,
|
|
2924
2924
|
r.charset,
|
|
2925
|
-
|
|
2925
|
+
u
|
|
2926
2926
|
));
|
|
2927
2927
|
}
|
|
2928
2928
|
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
@@ -2968,25 +2968,25 @@ function() {
|
|
|
2968
2968
|
);
|
|
2969
2969
|
if (n.throwOnLimitExceeded && i.length > a)
|
|
2970
2970
|
throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
|
|
2971
|
-
var s = -1,
|
|
2971
|
+
var s = -1, c, u = n.charset;
|
|
2972
2972
|
if (n.charsetSentinel)
|
|
2973
|
-
for (
|
|
2974
|
-
i[
|
|
2975
|
-
for (
|
|
2976
|
-
if (
|
|
2977
|
-
var l = i[
|
|
2978
|
-
d === -1 ? (v = n.decoder(l, _.decoder,
|
|
2973
|
+
for (c = 0; c < i.length; ++c)
|
|
2974
|
+
i[c].indexOf("utf8=") === 0 && (i[c] === Gl ? u = "utf-8" : i[c] === Kl && (u = "iso-8859-1"), s = c, c = i.length);
|
|
2975
|
+
for (c = 0; c < i.length; ++c)
|
|
2976
|
+
if (c !== s) {
|
|
2977
|
+
var l = i[c], p = l.indexOf("]="), d = p === -1 ? l.indexOf("=") : p + 1, v, y;
|
|
2978
|
+
d === -1 ? (v = n.decoder(l, _.decoder, u, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(l.slice(0, d), _.decoder, u, "key"), y = de.maybeMap(
|
|
2979
2979
|
ao(
|
|
2980
2980
|
l.slice(d + 1),
|
|
2981
2981
|
n,
|
|
2982
2982
|
rn(r[v]) ? r[v].length : 0
|
|
2983
2983
|
),
|
|
2984
2984
|
function(m) {
|
|
2985
|
-
return n.decoder(m, _.decoder,
|
|
2985
|
+
return n.decoder(m, _.decoder, u, "value");
|
|
2986
2986
|
}
|
|
2987
|
-
)), y && n.interpretNumericEntities &&
|
|
2988
|
-
var
|
|
2989
|
-
|
|
2987
|
+
)), y && n.interpretNumericEntities && u === "iso-8859-1" && (y = Wl(String(y))), l.indexOf("[]=") > -1 && (y = rn(y) ? [y] : y);
|
|
2988
|
+
var g = Yt.call(r, v);
|
|
2989
|
+
g && n.duplicates === "combine" ? r[v] = de.combine(r[v], y) : (!g || n.duplicates === "last") && (r[v] = y);
|
|
2990
2990
|
}
|
|
2991
2991
|
return r;
|
|
2992
2992
|
}, Vl = function(t, e, n, r) {
|
|
@@ -2996,34 +2996,34 @@ function() {
|
|
|
2996
2996
|
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
2997
2997
|
}
|
|
2998
2998
|
for (var i = r ? e : ao(e, n, o), s = t.length - 1; s >= 0; --s) {
|
|
2999
|
-
var
|
|
3000
|
-
if (
|
|
3001
|
-
|
|
2999
|
+
var c, u = t[s];
|
|
3000
|
+
if (u === "[]" && n.parseArrays)
|
|
3001
|
+
c = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : de.combine([], i);
|
|
3002
3002
|
else {
|
|
3003
|
-
|
|
3004
|
-
var l =
|
|
3005
|
-
!n.parseArrays && p === "" ?
|
|
3003
|
+
c = n.plainObjects ? { __proto__: null } : {};
|
|
3004
|
+
var l = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, p = n.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, d = parseInt(p, 10);
|
|
3005
|
+
!n.parseArrays && p === "" ? c = { 0: i } : !isNaN(d) && u !== p && String(d) === p && d >= 0 && n.parseArrays && d <= n.arrayLimit ? (c = [], c[d] = i) : p !== "__proto__" && (c[p] = i);
|
|
3006
3006
|
}
|
|
3007
|
-
i =
|
|
3007
|
+
i = c;
|
|
3008
3008
|
}
|
|
3009
3009
|
return i;
|
|
3010
3010
|
}, Ql = function(e, n, r, o) {
|
|
3011
3011
|
if (e) {
|
|
3012
|
-
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g,
|
|
3013
|
-
if (
|
|
3014
|
-
if (!r.plainObjects && Yt.call(Object.prototype,
|
|
3012
|
+
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = r.depth > 0 && i.exec(a), u = c ? a.slice(0, c.index) : a, l = [];
|
|
3013
|
+
if (u) {
|
|
3014
|
+
if (!r.plainObjects && Yt.call(Object.prototype, u) && !r.allowPrototypes)
|
|
3015
3015
|
return;
|
|
3016
|
-
l.push(
|
|
3016
|
+
l.push(u);
|
|
3017
3017
|
}
|
|
3018
|
-
for (var p = 0; r.depth > 0 && (
|
|
3019
|
-
if (p += 1, !r.plainObjects && Yt.call(Object.prototype,
|
|
3018
|
+
for (var p = 0; r.depth > 0 && (c = s.exec(a)) !== null && p < r.depth; ) {
|
|
3019
|
+
if (p += 1, !r.plainObjects && Yt.call(Object.prototype, c[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3020
3020
|
return;
|
|
3021
|
-
l.push(
|
|
3021
|
+
l.push(c[1]);
|
|
3022
3022
|
}
|
|
3023
|
-
if (
|
|
3023
|
+
if (c) {
|
|
3024
3024
|
if (r.strictDepth === !0)
|
|
3025
3025
|
throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
|
|
3026
|
-
l.push("[" + a.slice(
|
|
3026
|
+
l.push("[" + a.slice(c.index) + "]");
|
|
3027
3027
|
}
|
|
3028
3028
|
return Vl(l, n, r, o);
|
|
3029
3029
|
}
|
|
@@ -3073,8 +3073,8 @@ function() {
|
|
|
3073
3073
|
if (t === "" || t === null || typeof t > "u")
|
|
3074
3074
|
return n.plainObjects ? { __proto__: null } : {};
|
|
3075
3075
|
for (var r = typeof t == "string" ? Jl(t, n) : t, o = n.plainObjects ? { __proto__: null } : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
|
|
3076
|
-
var s = a[i],
|
|
3077
|
-
o = de.merge(o,
|
|
3076
|
+
var s = a[i], c = Ql(s, r[s], n, typeof t == "string");
|
|
3077
|
+
o = de.merge(o, c, n);
|
|
3078
3078
|
}
|
|
3079
3079
|
return n.allowSparse === !0 ? o : de.compact(o);
|
|
3080
3080
|
}, Zl = zl, ec = Yl, tc = cr, rc = {
|
|
@@ -3108,18 +3108,18 @@ function Zt(t, e) {
|
|
|
3108
3108
|
if (!(typeof document > "u")) {
|
|
3109
3109
|
i = je({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
3110
3110
|
var s = "";
|
|
3111
|
-
for (var
|
|
3112
|
-
i[
|
|
3111
|
+
for (var c in i)
|
|
3112
|
+
i[c] && (s += "; " + c, i[c] !== !0 && (s += "=" + i[c].split(";")[0]));
|
|
3113
3113
|
return document.cookie = o + "=" + t.write(a, o) + s;
|
|
3114
3114
|
}
|
|
3115
3115
|
}
|
|
3116
3116
|
function r(o) {
|
|
3117
3117
|
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
3118
3118
|
for (var a = document.cookie ? document.cookie.split("; ") : [], i = {}, s = 0; s < a.length; s++) {
|
|
3119
|
-
var
|
|
3119
|
+
var c = a[s].split("="), u = c.slice(1).join("=");
|
|
3120
3120
|
try {
|
|
3121
|
-
var l = decodeURIComponent(
|
|
3122
|
-
if (i[l] = t.read(
|
|
3121
|
+
var l = decodeURIComponent(c[0]);
|
|
3122
|
+
if (i[l] = t.read(u, l), o === l)
|
|
3123
3123
|
break;
|
|
3124
3124
|
} catch {
|
|
3125
3125
|
}
|
|
@@ -3175,40 +3175,40 @@ const ic = 5e3, lo = () => Bt ? !1 : (Bt = !0, setTimeout(() => {
|
|
|
3175
3175
|
if (so) return;
|
|
3176
3176
|
const t = "/login";
|
|
3177
3177
|
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}`));
|
|
3178
|
-
}, sc = async (t) => {
|
|
3178
|
+
}, sc = () => go("code") || "" || so ? !1 : lo() ? (io ? vo({ ...wo, redirect_uri: bo }) : co(), !0) : !1, lc = async (t) => {
|
|
3179
3179
|
var n;
|
|
3180
3180
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3181
|
-
},
|
|
3182
|
-
var
|
|
3181
|
+
}, cc = async (t, e) => {
|
|
3182
|
+
var y, g, m, A;
|
|
3183
3183
|
const { t: n } = un();
|
|
3184
3184
|
let r, o, a = {};
|
|
3185
3185
|
const i = { 400: n("参数校验错误"), 404: n("接口地址未找到"), 500: n("服务器内部错误") };
|
|
3186
|
-
let s = ((
|
|
3187
|
-
const
|
|
3188
|
-
if (
|
|
3189
|
-
|
|
3190
|
-
const
|
|
3191
|
-
if (on &&
|
|
3192
|
-
const
|
|
3193
|
-
o =
|
|
3186
|
+
let s = ((y = t == null ? void 0 : t.response) == null ? void 0 : y.data) || {};
|
|
3187
|
+
const c = s == null ? void 0 : s.code, u = (g = t.response) == null ? void 0 : g.status;
|
|
3188
|
+
if (c === 401 || u === 401) {
|
|
3189
|
+
sc(), r = c || u, a = s;
|
|
3190
|
+
const O = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3191
|
+
if (on && O && (s != null && s.status)) {
|
|
3192
|
+
const h = !(s != null && s.data) || !s.data.length ? [] : s.data, x = n(s.status, ...h);
|
|
3193
|
+
o = x === s.status ? await ln(n, s.status, h) : x;
|
|
3194
3194
|
} else
|
|
3195
3195
|
o = (s == null ? void 0 : s.msg) || i[r] || (t == null ? void 0 : t.message);
|
|
3196
3196
|
} else if (t.response) {
|
|
3197
|
-
if (s instanceof Blob && (s = await new Promise((
|
|
3198
|
-
const
|
|
3199
|
-
|
|
3197
|
+
if (s instanceof Blob && (s = await new Promise((O) => {
|
|
3198
|
+
const h = new FileReader();
|
|
3199
|
+
h.readAsText(s, "utf-8"), h.onload = () => {
|
|
3200
3200
|
try {
|
|
3201
|
-
|
|
3201
|
+
O(JSON.parse(h.result || "{}"));
|
|
3202
3202
|
} catch {
|
|
3203
|
-
|
|
3203
|
+
O({ code: 400, msg: n("解析错误") });
|
|
3204
3204
|
}
|
|
3205
3205
|
};
|
|
3206
3206
|
})), s.code !== void 0 && s.code !== null) {
|
|
3207
3207
|
r = s.code, a = s;
|
|
3208
|
-
const
|
|
3209
|
-
if (on &&
|
|
3210
|
-
const
|
|
3211
|
-
o =
|
|
3208
|
+
const O = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3209
|
+
if (on && O && (s != null && s.status)) {
|
|
3210
|
+
const h = !(s != null && s.data) || !s.data.length ? [] : s.data, x = n(s.status, ...h);
|
|
3211
|
+
o = x === s.status ? await ln(n, s.status, h) : x;
|
|
3212
3212
|
} else
|
|
3213
3213
|
o = (s == null ? void 0 : s.msg) ?? "";
|
|
3214
3214
|
} else
|
|
@@ -3216,8 +3216,8 @@ const ic = 5e3, lo = () => Bt ? !1 : (Bt = !0, setTimeout(() => {
|
|
|
3216
3216
|
o || (o = i[t.response.status] || t.message);
|
|
3217
3217
|
} 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("请求配置异常"));
|
|
3218
3218
|
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3219
|
-
const
|
|
3220
|
-
return !(e != null && e.ignoreErrorMessage) && o && (!
|
|
3219
|
+
const p = Date.now(), d = o === an, v = p - sn < ac;
|
|
3220
|
+
return !(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((A = (m = window.DasMessage) == null ? void 0 : m.error) == null || A.call(m, { message: o, showClose: !0 }), an = o, sn = p), { ...a, code: r, msg: o, error: t };
|
|
3221
3221
|
};
|
|
3222
3222
|
function b(t, e) {
|
|
3223
3223
|
const n = D.create();
|
|
@@ -3240,27 +3240,27 @@ function b(t, e) {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
p && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${p}`);
|
|
3242
3242
|
}
|
|
3243
|
-
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (p) => nc.stringify(p, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3244
|
-
const
|
|
3245
|
-
if (
|
|
3243
|
+
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (p) => nc.stringify(p, { indices: !1 }) }), r.onSuccess || (r.onSuccess = lc), r.onError || (r.onError = cc), (r.csrf ?? !1) && (r.headers["csrf-token"] = nn.get("csrf-token"));
|
|
3244
|
+
const c = r.params || {};
|
|
3245
|
+
if (c.project === void 0) {
|
|
3246
3246
|
let p = 0;
|
|
3247
3247
|
const d = new URL(location.href).searchParams;
|
|
3248
|
-
p = d.get("project") || d.get("projectId") || 0, p || (p = Oo().id ?? 0), (p || p === 0) && (
|
|
3248
|
+
p = d.get("project") || d.get("projectId") || 0, p || (p = Oo().id ?? 0), (p || p === 0) && (c.project = p);
|
|
3249
3249
|
}
|
|
3250
3250
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3251
3251
|
const { instanceInfo: p } = Ao();
|
|
3252
|
-
p != null && p.instanceId && (
|
|
3252
|
+
p != null && p.instanceId && (c.instance = p.instanceId);
|
|
3253
3253
|
}
|
|
3254
|
-
r.params =
|
|
3254
|
+
r.params = c, r.headers.Timezone = rt.tz.guess(), r.headers["X-Origin"] = location.origin;
|
|
3255
3255
|
const l = (o == null ? void 0 : o.value) ?? "";
|
|
3256
3256
|
return l && (r.headers["Accept-Language"] = l), l && nn.set("locale", l), r;
|
|
3257
3257
|
});
|
|
3258
3258
|
}
|
|
3259
|
-
const
|
|
3259
|
+
const uc = "v1", Wc = b(`/api/app-manager/application/${uc}`), fc = "v1", Kc = b(`/api/license/admin/${fc}`), pc = "v1", kt = `/api/bems/data-manage/${pc}`, Gc = {
|
|
3260
3260
|
energyType: b(`${kt}/energy-type`),
|
|
3261
3261
|
energyObject: b(`${kt}/energy-object`),
|
|
3262
3262
|
energyDimension: b(`${kt}/energy-dimension`)
|
|
3263
|
-
},
|
|
3263
|
+
}, dc = "v1", Jc = b(`/api/supply/contract/${dc}`), qe = "v1", Vc = {
|
|
3264
3264
|
classes: b(`/api/duty-manage/classes/${qe}`),
|
|
3265
3265
|
// 班次管理
|
|
3266
3266
|
group: b(`/api/duty-manage/group/${qe}`),
|
|
@@ -3269,17 +3269,17 @@ const cc = "v1", zc = b(`/api/app-manager/application/${cc}`), uc = "v1", Wc = b
|
|
|
3269
3269
|
// 排班管理
|
|
3270
3270
|
shift: b(`/api/duty-manage/shift/${qe}`)
|
|
3271
3271
|
// 交接班管理
|
|
3272
|
-
},
|
|
3272
|
+
}, yc = "v1", Qc = b(`/api/enterpriseright/permission/${yc}`), V = "v1", Xc = b(`/api/iot/${V}`), Yc = {
|
|
3273
3273
|
thingmodel: b(`/api/iot-device/thingmodel/${V}`),
|
|
3274
3274
|
deviceManage: b(`/api/iot-device/devicemanage/${V}`),
|
|
3275
3275
|
product: b(`/api/iot-device/product/${V}`),
|
|
3276
3276
|
productStorage: b(`/api/iot-device/product-storage/${V}`)
|
|
3277
|
-
},
|
|
3277
|
+
}, Zc = {
|
|
3278
3278
|
projectDevice: b(`/api/device-relation/deviceproject/${V}`),
|
|
3279
3279
|
deviceRules: b(`/api/device-relation/devicerule/${V}`),
|
|
3280
3280
|
project: b(`/api/device-relation/project/${V}`)
|
|
3281
|
-
}, fr = b(`/api/oss/minio/${V}`),
|
|
3282
|
-
let
|
|
3281
|
+
}, fr = b(`/api/oss/minio/${V}`), mc = b(`/api/progress/accessor/${V}`), eu = b(`/api/dms/analysis/${V}`);
|
|
3282
|
+
let hc = (t = 21) => {
|
|
3283
3283
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3284
3284
|
for (; t--; ) {
|
|
3285
3285
|
let r = n[t] & 63;
|
|
@@ -3287,14 +3287,14 @@ let mc = (t = 21) => {
|
|
|
3287
3287
|
}
|
|
3288
3288
|
return e;
|
|
3289
3289
|
};
|
|
3290
|
-
const
|
|
3291
|
-
let t = G(!1), e = G(""), n = G(0), r = G("normal"), o = G(!1), a, i = G(""), s = G(""),
|
|
3292
|
-
const
|
|
3293
|
-
s.value = "",
|
|
3290
|
+
const gc = fr.get("token"), vc = fr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), wc = fr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), bc = mc.get("progress"), tu = () => {
|
|
3291
|
+
let t = G(!1), e = G(""), n = G(0), r = G("normal"), o = G(!1), a, i = G(""), s = G(""), c = G(""), u = G(""), l = G(!1), p = G(""), d = "", v = G(""), y;
|
|
3292
|
+
const g = () => {
|
|
3293
|
+
s.value = "", c.value = "", u.value = "", l.value = !1, p.value = "";
|
|
3294
3294
|
}, m = async () => {
|
|
3295
|
-
const [E,
|
|
3296
|
-
return E ? { stauts: !1 } : { status: !0, data:
|
|
3297
|
-
},
|
|
3295
|
+
const [E, R] = await gc().run();
|
|
3296
|
+
return E ? { stauts: !1 } : { status: !0, data: R };
|
|
3297
|
+
}, A = (E) => new Promise((R, C) => {
|
|
3298
3298
|
const N = [];
|
|
3299
3299
|
let w = 0;
|
|
3300
3300
|
for (; w < E.size; ) {
|
|
@@ -3302,26 +3302,26 @@ const hc = fr.get("token"), gc = fr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3302
3302
|
N.push(k), w += 1048576;
|
|
3303
3303
|
}
|
|
3304
3304
|
const z = new Blob(N, { type: E.type });
|
|
3305
|
-
|
|
3306
|
-
}),
|
|
3305
|
+
R(z);
|
|
3306
|
+
}), O = async (E, R, C, T = !0, N = "", w = !1) => {
|
|
3307
3307
|
var dr, yr;
|
|
3308
|
-
d = N, v.value = "import",
|
|
3308
|
+
d = N, v.value = "import", T && (r.value = "normal", n.value = 0, e.value = U("导入进度"), t.value = !0, i.value = ""), y = R;
|
|
3309
3309
|
const z = await m();
|
|
3310
3310
|
if (!z.status) return;
|
|
3311
3311
|
let k = z.data, j = null, { autoContentType: K, bucketName: X, importFileName: Le } = C;
|
|
3312
|
-
const fo = w ?
|
|
3312
|
+
const fo = w ? wc : vc;
|
|
3313
3313
|
if (w) {
|
|
3314
3314
|
let oe = [];
|
|
3315
|
-
await
|
|
3316
|
-
let ht = await
|
|
3315
|
+
await R.forEach(async (Ue) => {
|
|
3316
|
+
let ht = await A(Ue);
|
|
3317
3317
|
oe.push(ht);
|
|
3318
|
-
}), j = new FormData(), j.append("accessKeyId", k.accessKeyId), j.append("secretAccessKey", k.secretAccessKey), j.append("sessionToken", k.sessionToken), j.append("bucketName", X),
|
|
3318
|
+
}), j = new FormData(), j.append("accessKeyId", k.accessKeyId), j.append("secretAccessKey", k.secretAccessKey), j.append("sessionToken", k.sessionToken), j.append("bucketName", X), R.forEach((Ue, ht) => {
|
|
3319
3319
|
j.append("file", oe[ht]);
|
|
3320
3320
|
}), Le.forEach((Ue) => {
|
|
3321
3321
|
j.append("filePaths", Ue);
|
|
3322
3322
|
});
|
|
3323
3323
|
} else {
|
|
3324
|
-
const oe = await
|
|
3324
|
+
const oe = await A(R);
|
|
3325
3325
|
j = {
|
|
3326
3326
|
accessKeyId: k.accessKeyId,
|
|
3327
3327
|
secretAccessKey: k.secretAccessKey,
|
|
@@ -3334,7 +3334,7 @@ const hc = fr.get("token"), gc = fr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3334
3334
|
}
|
|
3335
3335
|
const [po, yo] = await fo(j).run();
|
|
3336
3336
|
if (po) return t.value = !1;
|
|
3337
|
-
const Y = await
|
|
3337
|
+
const Y = await Ec(yo.data);
|
|
3338
3338
|
if (!w && (Y == null ? void 0 : Y.statusCode) != 200 || w && (Y != null && Y.some((oe) => (oe == null ? void 0 : oe.statusCode) != 200))) {
|
|
3339
3339
|
t.value = !1, (dr = window.DasMessage) == null || dr.error({
|
|
3340
3340
|
message: (Y == null ? void 0 : Y.errorMsg) || U("上传失败"),
|
|
@@ -3344,12 +3344,12 @@ const hc = fr.get("token"), gc = fr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3344
3344
|
return;
|
|
3345
3345
|
}
|
|
3346
3346
|
const mt = await (E == null ? void 0 : E(Y));
|
|
3347
|
-
if (
|
|
3347
|
+
if (T) {
|
|
3348
3348
|
if (!mt.status) {
|
|
3349
3349
|
t.value = !1, r.value = "error";
|
|
3350
3350
|
return;
|
|
3351
3351
|
}
|
|
3352
|
-
e.value = U("导入进度"), t.value = !0,
|
|
3352
|
+
e.value = U("导入进度"), t.value = !0, $(mt.taskId, "import", "");
|
|
3353
3353
|
} else {
|
|
3354
3354
|
if (!mt.status) return;
|
|
3355
3355
|
r.value = "success", (yr = window.DasMessage) == null || yr.success({
|
|
@@ -3358,30 +3358,30 @@ const hc = fr.get("token"), gc = fr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3358
3358
|
repeatNum: 1
|
|
3359
3359
|
});
|
|
3360
3360
|
}
|
|
3361
|
-
},
|
|
3361
|
+
}, h = async (E, R = "", C = "") => {
|
|
3362
3362
|
r.value = "normal", n.value = 0, e.value = C || U("导出进度"), t.value = !0;
|
|
3363
|
-
const
|
|
3364
|
-
if (
|
|
3363
|
+
const T = await (E == null ? void 0 : E());
|
|
3364
|
+
if (!T.status) {
|
|
3365
3365
|
t.value = !1, r.value = "error";
|
|
3366
3366
|
return;
|
|
3367
3367
|
}
|
|
3368
|
-
|
|
3369
|
-
}, x = async (E,
|
|
3370
|
-
v.value = "export",
|
|
3368
|
+
$(T.taskId, "action", "");
|
|
3369
|
+
}, x = async (E, R = "", C = "", T = !0) => {
|
|
3370
|
+
v.value = "export", T && (r.value = "normal", n.value = 0, e.value = U("导出进度"), t.value = !0);
|
|
3371
3371
|
const N = await (E == null ? void 0 : E());
|
|
3372
3372
|
if (!N.status) {
|
|
3373
3373
|
t.value = !1, r.value = "error";
|
|
3374
3374
|
return;
|
|
3375
3375
|
}
|
|
3376
|
-
rt().format("YYYYMMDDHHmmss") + "",
|
|
3377
|
-
},
|
|
3378
|
-
o.value = !0, L(E,
|
|
3376
|
+
rt().format("YYYYMMDDHHmmss") + "", $(N.taskId, "export", R || "", C);
|
|
3377
|
+
}, $ = async (E, R, C, T = "") => {
|
|
3378
|
+
o.value = !0, L(E, R, C, T), a = setTimeout(() => {
|
|
3379
3379
|
}, 50);
|
|
3380
3380
|
}, M = () => {
|
|
3381
3381
|
clearTimeout(a), a = null, t.value = !1;
|
|
3382
|
-
}, L = async (E,
|
|
3382
|
+
}, L = async (E, R = "export", C, T = "") => {
|
|
3383
3383
|
var z, k, j;
|
|
3384
|
-
const [N, w] = await
|
|
3384
|
+
const [N, w] = await bc("", {
|
|
3385
3385
|
url: `progress/${E}`
|
|
3386
3386
|
}).run();
|
|
3387
3387
|
if (N) {
|
|
@@ -3389,43 +3389,43 @@ const hc = fr.get("token"), gc = fr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3389
3389
|
return;
|
|
3390
3390
|
}
|
|
3391
3391
|
if (n.value = w.percentage, n.value == 100)
|
|
3392
|
-
if (i.value = w, o.value = !1, M(),
|
|
3392
|
+
if (i.value = w, o.value = !1, M(), R == "export")
|
|
3393
3393
|
if (w.status == 1) {
|
|
3394
3394
|
r.value = "success";
|
|
3395
3395
|
let K = await mr(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3396
3396
|
const X = ((z = K == null ? void 0 : K.split("/")) == null ? void 0 : z.pop()) || "";
|
|
3397
3397
|
let Le = C || X;
|
|
3398
|
-
cn(`${Ve().baseURL}/oss${w.filePath}`, Le,
|
|
3399
|
-
} else w.status == 2 && (
|
|
3400
|
-
message:
|
|
3398
|
+
cn(`${Ve().baseURL}/oss${w.filePath}`, Le, T), o.value = !1;
|
|
3399
|
+
} else w.status == 2 && (u.value = w.message || (R == "export" ? U("导出失败") : U("导入失败")), (k = window.DasMessage) == null || k.error({
|
|
3400
|
+
message: u.value,
|
|
3401
3401
|
grouping: !0,
|
|
3402
3402
|
repeatNum: 1
|
|
3403
3403
|
}));
|
|
3404
|
-
else if (
|
|
3404
|
+
else if (R == "import") {
|
|
3405
3405
|
if (w.filePath) {
|
|
3406
3406
|
r.value = "error", l.value = !0;
|
|
3407
3407
|
let K = await mr(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3408
3408
|
const X = ((j = K == null ? void 0 : K.split("/")) == null ? void 0 : j.pop()) || "";
|
|
3409
|
-
s.value = d || X,
|
|
3409
|
+
s.value = d || X, c.value = y.sizeText, u.value = U("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = `${Ve().baseURL}/oss/${w == null ? void 0 : w.filePath}`;
|
|
3410
3410
|
}
|
|
3411
|
-
W(w.status,
|
|
3412
|
-
} else
|
|
3411
|
+
W(w.status, R, w.message);
|
|
3412
|
+
} else R == "action" && (r.value = "success");
|
|
3413
3413
|
else
|
|
3414
3414
|
a && w.status != 2 ? a = setTimeout(() => {
|
|
3415
|
-
L(E,
|
|
3416
|
-
}, 50) : (i.value = w, o.value = !1, W(w.status,
|
|
3417
|
-
}, W = (E,
|
|
3418
|
-
var
|
|
3419
|
-
E == 1 ? (r.value = "success", (
|
|
3420
|
-
message:
|
|
3415
|
+
L(E, R, C, T);
|
|
3416
|
+
}, 50) : (i.value = w, o.value = !1, W(w.status, R, w.message), M(), l.value = !0, u.value = (w == null ? void 0 : w.message) || "");
|
|
3417
|
+
}, W = (E, R = "export", C) => {
|
|
3418
|
+
var T, N, w;
|
|
3419
|
+
E == 1 ? (r.value = "success", (T = window.DasMessage) == null || T.success({
|
|
3420
|
+
message: R == "export" ? U("导出成功") : U("导入成功"),
|
|
3421
3421
|
grouping: !0,
|
|
3422
3422
|
repeatNum: 1
|
|
3423
|
-
}), s.value = "",
|
|
3424
|
-
message: C || (
|
|
3423
|
+
}), s.value = "", c.value = "", u.value = "") : E == 2 ? (r.value = "error", (N = window.DasMessage) == null || N.error({
|
|
3424
|
+
message: C || (R == "export" ? U("导出失败") : U("导入失败")),
|
|
3425
3425
|
grouping: !0,
|
|
3426
3426
|
repeatNum: 1
|
|
3427
|
-
}),
|
|
3428
|
-
message:
|
|
3427
|
+
}), u.value = C || U("部分数据校验不通过,请下载附件并修改,重新导入!")) : E == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
3428
|
+
message: R == "export" ? U("部分导出失败") : U("部分导入失败"),
|
|
3429
3429
|
grouping: !0,
|
|
3430
3430
|
repeatNum: 1
|
|
3431
3431
|
}));
|
|
@@ -3438,23 +3438,23 @@ const hc = fr.get("token"), gc = fr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3438
3438
|
progressLoading: o,
|
|
3439
3439
|
progressResult: i,
|
|
3440
3440
|
errorFileName: s,
|
|
3441
|
-
errorFileSize:
|
|
3442
|
-
errorMessage:
|
|
3441
|
+
errorFileSize: c,
|
|
3442
|
+
errorMessage: u,
|
|
3443
3443
|
errorImport: l,
|
|
3444
3444
|
errorFilePath: p,
|
|
3445
|
-
fileImport:
|
|
3445
|
+
fileImport: O,
|
|
3446
3446
|
fileExport: x,
|
|
3447
|
-
fileAction:
|
|
3447
|
+
fileAction: h,
|
|
3448
3448
|
generateUniqueName: (E) => {
|
|
3449
|
-
const
|
|
3450
|
-
return `${
|
|
3449
|
+
const R = E == null ? void 0 : E.match(/(.*?)(\.[^.]*$|$)/), C = R.length ? R[2] : "";
|
|
3450
|
+
return `${R.length ? R[1] : E}${hc()}${C}`;
|
|
3451
3451
|
},
|
|
3452
3452
|
downloadFile: cn,
|
|
3453
|
-
resetStataus:
|
|
3454
|
-
checkProgress:
|
|
3453
|
+
resetStataus: g,
|
|
3454
|
+
checkProgress: $,
|
|
3455
3455
|
fileHandleType: v
|
|
3456
3456
|
};
|
|
3457
|
-
},
|
|
3457
|
+
}, Sc = (t) => {
|
|
3458
3458
|
let e = t == null ? void 0 : t.toLocaleLowerCase();
|
|
3459
3459
|
return {
|
|
3460
3460
|
excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -3487,7 +3487,7 @@ const hc = fr.get("token"), gc = fr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3487
3487
|
const r = new XMLHttpRequest();
|
|
3488
3488
|
r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
|
|
3489
3489
|
const a = new Blob([this.response], {
|
|
3490
|
-
type:
|
|
3490
|
+
type: Sc(n)
|
|
3491
3491
|
}), i = URL.createObjectURL(a);
|
|
3492
3492
|
if (window.navigator.msSaveOrOpenBlob)
|
|
3493
3493
|
navigator.msSaveBlob(a, e);
|
|
@@ -3496,53 +3496,53 @@ const hc = fr.get("token"), gc = fr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3496
3496
|
s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
|
|
3497
3497
|
}
|
|
3498
3498
|
}, r.send();
|
|
3499
|
-
},
|
|
3499
|
+
}, Ec = (t) => new Promise((e, n) => {
|
|
3500
3500
|
var r = new FileReader();
|
|
3501
3501
|
r.onload = function(o) {
|
|
3502
3502
|
let a = "";
|
|
3503
3503
|
typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
|
|
3504
3504
|
}, r.readAsText(t);
|
|
3505
|
-
}),
|
|
3505
|
+
}), Oc = "v2", ru = b(`/api/edge/${Oc}`), uo = "v1", nu = b(`/api/justauth/oauth-server/${uo}/visitor`), ou = b(`/api/justauth/oauth-server/${uo}`), Ac = "v1", au = b(`/api/knowledge-base/knowledge/${Ac}`), Rc = "v1", iu = b(`/api/custom-datasource/custom/${Rc}`), Pc = "v1", su = b(`/api/permission/${Pc}`), fe = "v1", lu = b(`/api/customer/customer/${fe}`), cu = b(`/api/customer/company/${fe}`), uu = b(`/api/customer/customer-grade/${fe}`), fu = b(`/api/customer/customer-type/${fe}`), pu = {
|
|
3506
3506
|
list: b(`/api/project/${fe}/list`),
|
|
3507
3507
|
app: b(`/api/project/${fe}/app`),
|
|
3508
3508
|
people: b(`/api/project/${fe}/people`)
|
|
3509
|
-
},
|
|
3509
|
+
}, Tc = "v1", du = b(`/api/portal/user/${Tc}`), xc = "v1", yu = b(`/api/space-manage/space-tree/${xc}`), yt = "v1", mu = b(`/api/superadmin/portal/${yt}`), hu = b(`/api/superadmin/permission/${yt}`), gu = b(`/api/superadmin/resource/${yt}`), vu = b(`/api/superadmin/license/${yt}`), pr = "v1", wu = b(`/api/supply/supplier/${pr}`), bu = b(`/api/supplier/${pr}`), Su = b(`/api/supplier/${pr}/classification`), $c = "v1", Eu = b(`/api/supply/brand/${$c}`), Cc = "v2", Ou = b(`/api/tool/${Cc}`), _c = "v1", Au = b(`/api/system-config/${_c}`);
|
|
3510
3510
|
export {
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3511
|
+
eu as analyApi,
|
|
3512
|
+
Wc as appManage,
|
|
3513
|
+
Kc as authentication,
|
|
3514
|
+
Gc as bemsModules,
|
|
3515
|
+
cu as company,
|
|
3516
|
+
Jc as contract,
|
|
3517
|
+
lu as customer,
|
|
3518
|
+
uu as customerGrade,
|
|
3519
|
+
fu as customerType,
|
|
3520
|
+
iu as daslink,
|
|
3521
3521
|
cn as downloadFile,
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3522
|
+
Vc as dutyModules,
|
|
3523
|
+
Eu as enterpriseadminBrandModel,
|
|
3524
|
+
Qc as enterpriseright,
|
|
3525
|
+
ru as gatewayEdge,
|
|
3526
|
+
Xc as iot,
|
|
3527
3527
|
fr as iotMinio,
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3528
|
+
Yc as iotModules,
|
|
3529
|
+
mc as iotProgress,
|
|
3530
|
+
Zc as iotRelationModules,
|
|
3531
|
+
nu as justauth,
|
|
3532
|
+
au as knowledgeBase,
|
|
3533
|
+
ou as oauthServer,
|
|
3534
|
+
su as permission,
|
|
3535
|
+
du as portal,
|
|
3536
|
+
pu as projectManage,
|
|
3537
|
+
yu as spaceManage,
|
|
3538
|
+
vu as superadminLicense,
|
|
3539
|
+
hu as superadminPermission,
|
|
3540
|
+
mu as superadminPortal,
|
|
3541
|
+
gu as superadminResource,
|
|
3542
|
+
wu as supplier,
|
|
3543
|
+
Su as supplierClassification,
|
|
3544
|
+
bu as supplierManage,
|
|
3545
|
+
Au as systemConfiguration,
|
|
3546
|
+
Ou as tool,
|
|
3547
|
+
tu as useFile
|
|
3548
3548
|
};
|