@das-fed/utils 6.4.0-hot.28 → 6.4.0-hot.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/i18n/index.d.ts +0 -5
- package/api-services/i18n/index.js +6 -7
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +163 -161
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +6 -4
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +6 -4
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +6 -4
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +6 -4
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +6 -4
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +6 -4
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +51 -48
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +6 -4
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +81 -78
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.d.ts +1 -0
- package/api-services/modules/iot/index.js +57 -54
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +6 -4
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +6 -4
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +6 -4
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +6 -4
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +6 -4
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +6 -4
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +6 -4
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +6 -4
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +6 -4
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +6 -4
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +6 -4
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +6 -4
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +6 -4
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +9 -3
- package/common-info/index.js +100 -53
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +16 -12
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +214 -120
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/create-api-service/index.js +6 -4
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +0 -2
- package/create-api-service/sso/index.js +255 -252
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/directive/auth/index.js.gz +0 -0
- package/dom-check-in/index.js +2 -2
- package/esm-map.json +4 -1
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js.gz +0 -0
- package/use-low-code/index.js +3 -3
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
package/api-services/index.js.gz
CHANGED
|
Binary file
|
|
@@ -3087,9 +3087,11 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3090
|
+
n = i.code;
|
|
3091
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3092
|
+
if (Ns && g) {
|
|
3093
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3094
|
+
r = !(i != null && i.data) || !i.data.length ? W(y) : W(y, ...i.data);
|
|
3093
3095
|
} else
|
|
3094
3096
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3095
3097
|
o = i;
|
|
@@ -3122,7 +3124,7 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3122
3124
|
const { instanceInfo: l } = Cn();
|
|
3123
3125
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3126
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r;
|
|
3127
|
+
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3126
3128
|
});
|
|
3127
3129
|
}, $s = "v1", Ws = Is(`/api/app-manager/application/${$s}`);
|
|
3128
3130
|
export {
|
|
Binary file
|
|
@@ -3087,9 +3087,11 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3090
|
+
n = i.code;
|
|
3091
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3092
|
+
if (Ns && g) {
|
|
3093
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3094
|
+
r = !(i != null && i.data) || !i.data.length ? W(y) : W(y, ...i.data);
|
|
3093
3095
|
} else
|
|
3094
3096
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3095
3097
|
o = i;
|
|
@@ -3122,7 +3124,7 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3122
3124
|
const { instanceInfo: l } = Cn();
|
|
3123
3125
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3126
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r;
|
|
3127
|
+
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3126
3128
|
});
|
|
3127
3129
|
}, $s = "v1", Ws = Is(`/api/license/admin/${$s}`);
|
|
3128
3130
|
export {
|
|
Binary file
|
|
@@ -3087,9 +3087,11 @@ const kt = Rr(), gn = kt.sso ?? !0, _s = kt.i18n ?? !0, vn = kt.noRedireLogin ??
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3090
|
+
n = i.code;
|
|
3091
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3092
|
+
if (_s && g) {
|
|
3093
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3094
|
+
r = !(i != null && i.data) || !i.data.length ? W(y) : W(y, ...i.data);
|
|
3093
3095
|
} else
|
|
3094
3096
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3095
3097
|
o = i;
|
|
@@ -3122,7 +3124,7 @@ const kt = Rr(), gn = kt.sso ?? !0, _s = kt.i18n ?? !0, vn = kt.noRedireLogin ??
|
|
|
3122
3124
|
const { instanceInfo: l } = Nn();
|
|
3123
3125
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3126
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone = Pt.tz.guess(), r;
|
|
3127
|
+
return r.params = s, r.headers.Timezone = Pt.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3126
3128
|
});
|
|
3127
3129
|
}, Bs = "v1", ut = `/api/bems/data-manage/${Bs}`, Gs = {
|
|
3128
3130
|
energyType: ct(`${ut}/energy-type`),
|
|
Binary file
|
|
@@ -3087,9 +3087,11 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3090
|
+
n = i.code;
|
|
3091
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3092
|
+
if (Ns && g) {
|
|
3093
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3094
|
+
r = !(i != null && i.data) || !i.data.length ? W(y) : W(y, ...i.data);
|
|
3093
3095
|
} else
|
|
3094
3096
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3095
3097
|
o = i;
|
|
@@ -3122,7 +3124,7 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3122
3124
|
const { instanceInfo: l } = Cn();
|
|
3123
3125
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3126
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r;
|
|
3127
|
+
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3126
3128
|
});
|
|
3127
3129
|
}, $s = "v1", Ws = Is(`/api/supply/contract/${$s}`);
|
|
3128
3130
|
export {
|
|
Binary file
|
|
@@ -3087,9 +3087,11 @@ const kt = Rr(), gn = kt.sso ?? !0, _s = kt.i18n ?? !0, vn = kt.noRedireLogin ??
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3090
|
+
n = i.code;
|
|
3091
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3092
|
+
if (_s && g) {
|
|
3093
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3094
|
+
r = !(i != null && i.data) || !i.data.length ? W(y) : W(y, ...i.data);
|
|
3093
3095
|
} else
|
|
3094
3096
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3095
3097
|
o = i;
|
|
@@ -3122,7 +3124,7 @@ const kt = Rr(), gn = kt.sso ?? !0, _s = kt.i18n ?? !0, vn = kt.noRedireLogin ??
|
|
|
3122
3124
|
const { instanceInfo: l } = Nn();
|
|
3123
3125
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3126
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone = Pt.tz.guess(), r;
|
|
3127
|
+
return r.params = s, r.headers.Timezone = Pt.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3126
3128
|
});
|
|
3127
3129
|
}, Ne = "v1", Ws = {
|
|
3128
3130
|
classes: Fe(`/api/duty-manage/classes/${Ne}`),
|
|
Binary file
|
|
@@ -3087,9 +3087,11 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3090
|
+
n = i.code;
|
|
3091
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3092
|
+
if (Ns && g) {
|
|
3093
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3094
|
+
r = !(i != null && i.data) || !i.data.length ? W(y) : W(y, ...i.data);
|
|
3093
3095
|
} else
|
|
3094
3096
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3095
3097
|
o = i;
|
|
@@ -3122,7 +3124,7 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3122
3124
|
const { instanceInfo: l } = Cn();
|
|
3123
3125
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3126
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r;
|
|
3127
|
+
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3126
3128
|
});
|
|
3127
3129
|
}, $s = "v1", Ws = Is(`/api/enterpriseright/permission/${$s}`);
|
|
3128
3130
|
export {
|
|
Binary file
|
|
@@ -17,11 +17,11 @@ function Mr(t, e) {
|
|
|
17
17
|
const { toString: Jn } = Object.prototype, { getPrototypeOf: Ut } = Object, Ze = /* @__PURE__ */ ((t) => (e) => {
|
|
18
18
|
const n = Jn.call(e);
|
|
19
19
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
20
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
20
|
+
})(/* @__PURE__ */ Object.create(null)), X = (t) => (t = t.toLowerCase(), (e) => Ze(e) === t), et = (t) => (e) => typeof e === t, { isArray: Ee } = Array, Fe = et("undefined");
|
|
21
21
|
function Vn(t) {
|
|
22
22
|
return t !== null && !Fe(t) && t.constructor !== null && !Fe(t.constructor) && W(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
23
23
|
}
|
|
24
|
-
const jr =
|
|
24
|
+
const jr = X("ArrayBuffer");
|
|
25
25
|
function Qn(t) {
|
|
26
26
|
let e;
|
|
27
27
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && jr(t.buffer), e;
|
|
@@ -31,11 +31,11 @@ const Xn = et("string"), W = et("function"), qr = et("number"), tt = (t) => t !=
|
|
|
31
31
|
return !1;
|
|
32
32
|
const e = Ut(t);
|
|
33
33
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
34
|
-
}, Zn =
|
|
34
|
+
}, Zn = X("Date"), eo = X("File"), to = X("Blob"), ro = X("FileList"), no = (t) => tt(t) && W(t.pipe), oo = (t) => {
|
|
35
35
|
let e;
|
|
36
36
|
return t && (typeof FormData == "function" && t instanceof FormData || W(t.append) && ((e = Ze(t)) === "formdata" || // detect form-data instance
|
|
37
37
|
e === "object" && W(t.toString) && t.toString() === "[object FormData]"));
|
|
38
|
-
}, ao =
|
|
38
|
+
}, ao = X("URLSearchParams"), [io, so, lo, co] = ["ReadableStream", "Request", "Response", "Headers"].map(X), uo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
39
39
|
function De(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
40
40
|
if (t === null || typeof t > "u")
|
|
41
41
|
return;
|
|
@@ -111,12 +111,12 @@ const fo = (t, e, n, { allOwnKeys: r } = {}) => (De(e, (o, a) => {
|
|
|
111
111
|
for (; (n = t.exec(e)) !== null; )
|
|
112
112
|
r.push(n);
|
|
113
113
|
return r;
|
|
114
|
-
}, So =
|
|
114
|
+
}, So = X("HTMLFormElement"), Eo = (t) => t.toLowerCase().replace(
|
|
115
115
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
116
116
|
function(n, r, o) {
|
|
117
117
|
return r.toUpperCase() + o;
|
|
118
118
|
}
|
|
119
|
-
), tr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ao =
|
|
119
|
+
), tr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ao = X("RegExp"), Wr = (t, e) => {
|
|
120
120
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
121
121
|
De(n, (o, a) => {
|
|
122
122
|
let i;
|
|
@@ -176,7 +176,7 @@ const No = (t) => {
|
|
|
176
176
|
return r;
|
|
177
177
|
};
|
|
178
178
|
return n(t, 0);
|
|
179
|
-
}, Fo =
|
|
179
|
+
}, Fo = X("AsyncFunction"), Do = (t) => t && (tt(t) || W(t)) && W(t.then) && W(t.catch), Gr = ((t, e) => t ? setImmediate : e ? ((n, r) => (ce.addEventListener("message", ({ source: o, data: a }) => {
|
|
180
180
|
o === ce && a === n && r.length && r.shift()();
|
|
181
181
|
}, !1), (o) => {
|
|
182
182
|
r.push(o), ce.postMessage(n, "*");
|
|
@@ -216,7 +216,7 @@ const No = (t) => {
|
|
|
216
216
|
inherits: yo,
|
|
217
217
|
toFlatObject: ho,
|
|
218
218
|
kindOf: Ze,
|
|
219
|
-
kindOfTest:
|
|
219
|
+
kindOfTest: X,
|
|
220
220
|
endsWith: mo,
|
|
221
221
|
toArray: go,
|
|
222
222
|
forEachEntry: bo,
|
|
@@ -2127,7 +2127,7 @@ const Ei = {}, Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2127
2127
|
__proto__: null,
|
|
2128
2128
|
default: Ei
|
|
2129
2129
|
}, Symbol.toStringTag, { value: "Module" })), Oi = /* @__PURE__ */ Ra(Ai);
|
|
2130
|
-
var Wt = typeof Map == "function" && Map.prototype, ht = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Qe = Wt && ht && typeof ht.get == "function" ? ht.get : null, Pr = Wt && Map.prototype.forEach, Kt = typeof Set == "function" && Set.prototype, mt = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Xe = Kt && mt && typeof mt.get == "function" ? mt.get : null, Tr = Kt && Set.prototype.forEach, Ri = typeof WeakMap == "function" && WeakMap.prototype, xe = Ri ? WeakMap.prototype.has : null, Pi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Pi ? WeakSet.prototype.has : null, Ti = typeof WeakRef == "function" && WeakRef.prototype, xr = Ti ? WeakRef.prototype.deref : null, xi = Boolean.prototype.valueOf, Ci = Object.prototype.toString, Ni = Function.prototype.toString, Fi = String.prototype.match, Gt = String.prototype.slice, ae = String.prototype.replace, Di = String.prototype.toUpperCase, Cr = String.prototype.toLowerCase, vn = RegExp.prototype.test, Nr = Array.prototype.concat,
|
|
2130
|
+
var Wt = typeof Map == "function" && Map.prototype, ht = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Qe = Wt && ht && typeof ht.get == "function" ? ht.get : null, Pr = Wt && Map.prototype.forEach, Kt = typeof Set == "function" && Set.prototype, mt = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Xe = Kt && mt && typeof mt.get == "function" ? mt.get : null, Tr = Kt && Set.prototype.forEach, Ri = typeof WeakMap == "function" && WeakMap.prototype, xe = Ri ? WeakMap.prototype.has : null, Pi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Pi ? WeakSet.prototype.has : null, Ti = typeof WeakRef == "function" && WeakRef.prototype, xr = Ti ? WeakRef.prototype.deref : null, xi = Boolean.prototype.valueOf, Ci = Object.prototype.toString, Ni = Function.prototype.toString, Fi = String.prototype.match, Gt = String.prototype.slice, ae = String.prototype.replace, Di = String.prototype.toUpperCase, Cr = String.prototype.toLowerCase, vn = RegExp.prototype.test, Nr = Array.prototype.concat, te = Array.prototype.join, Ii = Array.prototype.slice, Fr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, gt = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, we = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === we || !0) ? Symbol.toStringTag : null, bn = Object.prototype.propertyIsEnumerable, Dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2131
2131
|
return t.__proto__;
|
|
2132
2132
|
} : null);
|
|
2133
2133
|
function Ir(t, e) {
|
|
@@ -2194,7 +2194,7 @@ var It = Oi, _r = It.custom, $r = Sn(_r) ? _r : null, _i = function t(e, n, r, o
|
|
|
2194
2194
|
}
|
|
2195
2195
|
if (typeof e == "function" && !Br(e)) {
|
|
2196
2196
|
var g = zi(e), y = Le(e, d);
|
|
2197
|
-
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
2197
|
+
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + te.call(y, ", ") + " }" : "");
|
|
2198
2198
|
}
|
|
2199
2199
|
if (Sn(e)) {
|
|
2200
2200
|
var m = we ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(e);
|
|
@@ -2209,11 +2209,11 @@ var It = Oi, _r = It.custom, $r = Sn(_r) ? _r : null, _i = function t(e, n, r, o
|
|
|
2209
2209
|
if (e.length === 0)
|
|
2210
2210
|
return "[]";
|
|
2211
2211
|
var v = Le(e, d);
|
|
2212
|
-
return p && !Xi(v) ? "[" + $t(v, p) + "]" : "[ " +
|
|
2212
|
+
return p && !Xi(v) ? "[" + $t(v, p) + "]" : "[ " + te.call(v, ", ") + " ]";
|
|
2213
2213
|
}
|
|
2214
2214
|
if (Li(e)) {
|
|
2215
2215
|
var D = Le(e, d);
|
|
2216
|
-
return !("cause" in Error.prototype) && "cause" in e && !bn.call(e, "cause") ? "{ [" + String(e) + "] " +
|
|
2216
|
+
return !("cause" in Error.prototype) && "cause" in e && !bn.call(e, "cause") ? "{ [" + String(e) + "] " + te.call(Nr.call("[cause]: " + d(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + te.call(D, ", ") + " }";
|
|
2217
2217
|
}
|
|
2218
2218
|
if (typeof e == "object" && i) {
|
|
2219
2219
|
if ($r && typeof e[$r] == "function" && It)
|
|
@@ -2252,8 +2252,8 @@ var It = Oi, _r = It.custom, $r = Sn(_r) ? _r : null, _i = function t(e, n, r, o
|
|
|
2252
2252
|
if (typeof globalThis < "u" && e === globalThis || typeof hr < "u" && e === hr)
|
|
2253
2253
|
return "{ [object globalThis] }";
|
|
2254
2254
|
if (!Bi(e) && !Br(e)) {
|
|
2255
|
-
var L = Le(e, d), K = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", S = !K && U && Object(e) === e && U in e ? Gt.call(ie(e), 8, -1) : J ? "Object" : "", A = K || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = A + (S || J ? "[" +
|
|
2256
|
-
return L.length === 0 ? x + "{}" : p ? x + "{" + $t(L, p) + "}" : x + "{ " +
|
|
2255
|
+
var L = Le(e, d), K = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", S = !K && U && Object(e) === e && U in e ? Gt.call(ie(e), 8, -1) : J ? "Object" : "", A = K || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = A + (S || J ? "[" + te.call(Nr.call([], S || [], J || []), ": ") + "] " : "");
|
|
2256
|
+
return L.length === 0 ? x + "{}" : p ? x + "{" + $t(L, p) + "}" : x + "{ " + te.call(L, ", ") + " }";
|
|
2257
2257
|
}
|
|
2258
2258
|
return String(e);
|
|
2259
2259
|
};
|
|
@@ -2427,7 +2427,7 @@ function vt(t) {
|
|
|
2427
2427
|
return t + " { ? }";
|
|
2428
2428
|
}
|
|
2429
2429
|
function Lr(t, e, n, r) {
|
|
2430
|
-
var o = r ? $t(n, r) :
|
|
2430
|
+
var o = r ? $t(n, r) : te.call(n, ", ");
|
|
2431
2431
|
return t + " (" + e + ") {" + o + "}";
|
|
2432
2432
|
}
|
|
2433
2433
|
function Xi(t) {
|
|
@@ -2442,12 +2442,12 @@ function Yi(t, e) {
|
|
|
2442
2442
|
if (t.indent === " ")
|
|
2443
2443
|
n = " ";
|
|
2444
2444
|
else if (typeof t.indent == "number" && t.indent > 0)
|
|
2445
|
-
n =
|
|
2445
|
+
n = te.call(Array(t.indent + 1), " ");
|
|
2446
2446
|
else
|
|
2447
2447
|
return null;
|
|
2448
2448
|
return {
|
|
2449
2449
|
base: n,
|
|
2450
|
-
prev:
|
|
2450
|
+
prev: te.call(Array(e + 1), n)
|
|
2451
2451
|
};
|
|
2452
2452
|
}
|
|
2453
2453
|
function $t(t, e) {
|
|
@@ -2455,7 +2455,7 @@ function $t(t, e) {
|
|
|
2455
2455
|
return "";
|
|
2456
2456
|
var n = `
|
|
2457
2457
|
` + e.prev + e.base;
|
|
2458
|
-
return n +
|
|
2458
|
+
return n + te.call(t, "," + n) + `
|
|
2459
2459
|
` + e.prev;
|
|
2460
2460
|
}
|
|
2461
2461
|
function Le(t, e) {
|
|
@@ -2544,7 +2544,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2544
2544
|
},
|
|
2545
2545
|
RFC1738: bt.RFC1738,
|
|
2546
2546
|
RFC3986: bt.RFC3986
|
|
2547
|
-
}, ds = Vt, wt = Object.prototype.hasOwnProperty, le = Array.isArray,
|
|
2547
|
+
}, ds = Vt, wt = Object.prototype.hasOwnProperty, le = Array.isArray, Z = function() {
|
|
2548
2548
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2549
2549
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2550
2550
|
return t;
|
|
@@ -2615,18 +2615,18 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2615
2615
|
continue;
|
|
2616
2616
|
}
|
|
2617
2617
|
if (d < 128) {
|
|
2618
|
-
c[c.length] =
|
|
2618
|
+
c[c.length] = Z[d];
|
|
2619
2619
|
continue;
|
|
2620
2620
|
}
|
|
2621
2621
|
if (d < 2048) {
|
|
2622
|
-
c[c.length] =
|
|
2622
|
+
c[c.length] = Z[192 | d >> 6] + Z[128 | d & 63];
|
|
2623
2623
|
continue;
|
|
2624
2624
|
}
|
|
2625
2625
|
if (d < 55296 || d >= 57344) {
|
|
2626
|
-
c[c.length] =
|
|
2626
|
+
c[c.length] = Z[224 | d >> 12] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
|
|
2627
2627
|
continue;
|
|
2628
2628
|
}
|
|
2629
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2629
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = Z[240 | d >> 18] + Z[128 | d >> 12 & 63] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
|
|
2630
2630
|
}
|
|
2631
2631
|
s += c.join("");
|
|
2632
2632
|
}
|
|
@@ -2673,8 +2673,8 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2673
2673
|
repeat: function(e) {
|
|
2674
2674
|
return e;
|
|
2675
2675
|
}
|
|
2676
|
-
},
|
|
2677
|
-
Rs.apply(t,
|
|
2676
|
+
}, ee = Array.isArray, Rs = Array.prototype.push, Cn = function(t, e) {
|
|
2677
|
+
Rs.apply(t, ee(e) ? e : [e]);
|
|
2678
2678
|
}, Ps = Date.prototype.toISOString, Ur = Ne.default, _ = {
|
|
2679
2679
|
addQueryPrefix: !1,
|
|
2680
2680
|
allowDots: !1,
|
|
@@ -2708,7 +2708,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2708
2708
|
}
|
|
2709
2709
|
typeof D.get(Et) > "u" && (T = 0);
|
|
2710
2710
|
}
|
|
2711
|
-
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" &&
|
|
2711
|
+
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && ee(v) && (v = He.maybeMap(v, function(q) {
|
|
2712
2712
|
return q instanceof Date ? g(q) : q;
|
|
2713
2713
|
})), v === null) {
|
|
2714
2714
|
if (i)
|
|
@@ -2726,21 +2726,21 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2726
2726
|
if (typeof v > "u")
|
|
2727
2727
|
return J;
|
|
2728
2728
|
var S;
|
|
2729
|
-
if (r === "comma" &&
|
|
2729
|
+
if (r === "comma" && ee(v))
|
|
2730
2730
|
h && l && (v = He.maybeMap(v, l)), S = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2731
|
-
else if (
|
|
2731
|
+
else if (ee(c))
|
|
2732
2732
|
S = c;
|
|
2733
2733
|
else {
|
|
2734
2734
|
var A = Object.keys(v);
|
|
2735
2735
|
S = p ? A.sort(p) : A;
|
|
2736
2736
|
}
|
|
2737
|
-
var x = u ? n.replace(/\./g, "%2E") : n, P = o &&
|
|
2738
|
-
if (a &&
|
|
2737
|
+
var x = u ? n.replace(/\./g, "%2E") : n, P = o && ee(v) && v.length === 1 ? x + "[]" : x;
|
|
2738
|
+
if (a && ee(v) && v.length === 0)
|
|
2739
2739
|
return P + "[]";
|
|
2740
2740
|
for (var F = 0; F < S.length; ++F) {
|
|
2741
2741
|
var b = S[F], k = typeof b == "object" && typeof b.value < "u" ? b.value : v[b];
|
|
2742
2742
|
if (!(s && k === null)) {
|
|
2743
|
-
var M = d && u ? b.replace(/\./g, "%2E") : b, j =
|
|
2743
|
+
var M = d && u ? b.replace(/\./g, "%2E") : b, j = ee(v) ? typeof r == "function" ? r(P, M) : P : P + (d ? "." + M : "[" + M + "]");
|
|
2744
2744
|
R.set(e, T);
|
|
2745
2745
|
var se = Tn();
|
|
2746
2746
|
se.set(Et, R), Cn(J, t(
|
|
@@ -2752,7 +2752,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2752
2752
|
i,
|
|
2753
2753
|
s,
|
|
2754
2754
|
u,
|
|
2755
|
-
r === "comma" && h &&
|
|
2755
|
+
r === "comma" && h && ee(v) ? null : l,
|
|
2756
2756
|
c,
|
|
2757
2757
|
p,
|
|
2758
2758
|
d,
|
|
@@ -2785,7 +2785,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2785
2785
|
r = e.format;
|
|
2786
2786
|
}
|
|
2787
2787
|
var o = Ne.formatters[r], a = _.filter;
|
|
2788
|
-
(typeof e.filter == "function" ||
|
|
2788
|
+
(typeof e.filter == "function" || ee(e.filter)) && (a = e.filter);
|
|
2789
2789
|
var i;
|
|
2790
2790
|
if (e.arrayFormat in xn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2791
2791
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -2813,7 +2813,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2813
2813
|
};
|
|
2814
2814
|
}, Ns = function(t, e) {
|
|
2815
2815
|
var n = t, r = Cs(e), o, a;
|
|
2816
|
-
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) :
|
|
2816
|
+
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : ee(r.filter) && (a = r.filter, o = a);
|
|
2817
2817
|
var i = [];
|
|
2818
2818
|
if (typeof n != "object" || n === null)
|
|
2819
2819
|
return "";
|
|
@@ -3089,9 +3089,11 @@ const Qt = We(), Fn = Qt.sso ?? !0, Js = Qt.i18n ?? !0, Dn = Qt.noRedireLogin ??
|
|
|
3089
3089
|
}
|
|
3090
3090
|
};
|
|
3091
3091
|
})), i.code) {
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3092
|
+
n = i.code;
|
|
3093
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3094
|
+
if (Js && g) {
|
|
3095
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3096
|
+
r = !(i != null && i.data) || !i.data.length ? C(y) : C(y, ...i.data);
|
|
3095
3097
|
} else
|
|
3096
3098
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3097
3099
|
o = i;
|
|
@@ -3101,7 +3103,7 @@ const Qt = We(), Fn = Qt.sso ?? !0, Js = Qt.i18n ?? !0, Dn = Qt.noRedireLogin ??
|
|
|
3101
3103
|
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }));
|
|
3102
3104
|
}
|
|
3103
3105
|
return { ...o, code: n, msg: r, error: t };
|
|
3104
|
-
},
|
|
3106
|
+
}, V = (t, e) => {
|
|
3105
3107
|
const n = I.create();
|
|
3106
3108
|
return Ln(n, async (r) => {
|
|
3107
3109
|
const o = We();
|
|
@@ -3124,13 +3126,14 @@ const Qt = We(), Fn = Qt.sso ?? !0, Js = Qt.i18n ?? !0, Dn = Qt.noRedireLogin ??
|
|
|
3124
3126
|
const { instanceInfo: l } = Kn();
|
|
3125
3127
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3126
3128
|
}
|
|
3127
|
-
return r.params = s, r.headers.Timezone = Ye.tz.guess(), r;
|
|
3129
|
+
return r.params = s, r.headers.Timezone = Ye.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3128
3130
|
});
|
|
3129
|
-
},
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
const Xt =
|
|
3131
|
+
}, Q = "v1";
|
|
3132
|
+
V(`/api/iot/${Q}`);
|
|
3133
|
+
V(`/api/iot-device/thingmodel/${Q}`), V(`/api/iot-device/devicemanage/${Q}`), V(`/api/iot-device/product/${Q}`), V(`/api/iot-device/product-storage/${Q}`);
|
|
3134
|
+
V(`/api/device-relation/deviceproject/${Q}`), V(`/api/device-relation/devicerule/${Q}`), V(`/api/device-relation/project/${Q}`);
|
|
3135
|
+
const Xt = V(`/api/oss/minio/${Q}`), Xs = V(`/api/progress/accessor/${Q}`);
|
|
3136
|
+
V(`/api/dms/analysis/${Q}`);
|
|
3134
3137
|
let Ys = (t = 21) => {
|
|
3135
3138
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3136
3139
|
for (; t--; ) {
|
|
@@ -3186,16 +3189,16 @@ const Zs = Xt.get("token"), el = Xt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3186
3189
|
}
|
|
3187
3190
|
const [_n, $n] = await ot(j).run();
|
|
3188
3191
|
if (_n) return t.value = !1;
|
|
3189
|
-
const
|
|
3190
|
-
if (!b && (
|
|
3192
|
+
const Y = await ol($n.data);
|
|
3193
|
+
if (!b && (Y == null ? void 0 : Y.statusCode) != 200 || b && (Y != null && Y.some((re) => (re == null ? void 0 : re.statusCode) != 200))) {
|
|
3191
3194
|
t.value = !1, (Yt = window.DasMessage) == null || Yt.error({
|
|
3192
|
-
message: (
|
|
3195
|
+
message: (Y == null ? void 0 : Y.errorMsg) || C("上传失败"),
|
|
3193
3196
|
grouping: !0,
|
|
3194
3197
|
repeatNum: 1
|
|
3195
3198
|
});
|
|
3196
3199
|
return;
|
|
3197
3200
|
}
|
|
3198
|
-
const at = await (S == null ? void 0 : S(
|
|
3201
|
+
const at = await (S == null ? void 0 : S(Y));
|
|
3199
3202
|
if (P) {
|
|
3200
3203
|
if (!at.status) {
|
|
3201
3204
|
t.value = !1, r.value = "error";
|
|
Binary file
|
|
@@ -3087,9 +3087,11 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3090
|
+
n = i.code;
|
|
3091
|
+
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3092
|
+
if (Ns && g) {
|
|
3093
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3094
|
+
r = !(i != null && i.data) || !i.data.length ? W(y) : W(y, ...i.data);
|
|
3093
3095
|
} else
|
|
3094
3096
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3095
3097
|
o = i;
|
|
@@ -3122,7 +3124,7 @@ const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ??
|
|
|
3122
3124
|
const { instanceInfo: l } = Cn();
|
|
3123
3125
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3126
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r;
|
|
3127
|
+
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3126
3128
|
});
|
|
3127
3129
|
}, $s = "v2", Ws = Is(`/api/edge/${$s}`);
|
|
3128
3130
|
export {
|
|
Binary file
|