@das-fed/utils 7.1.0-dev.33 → 7.1.0-dev.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/index.js +261 -261
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +154 -154
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1116 -1098
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +623 -623
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +154 -154
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +154 -154
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +626 -626
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +372 -372
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +154 -154
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +360 -360
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +159 -159
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +848 -834
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +197 -197
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +725 -743
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +626 -626
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +705 -723
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +850 -832
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +154 -154
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +627 -627
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +1115 -1101
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +1116 -1098
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +626 -626
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +1116 -1098
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +153 -153
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +182 -182
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -160,7 +160,7 @@ const wo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
160
160
|
function Io(t) {
|
|
161
161
|
return !!(t && F(t.append) && t[qr] === "FormData" && t[He]);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const Lo = (t) => {
|
|
164
164
|
const e = new Array(10), n = (r, o) => {
|
|
165
165
|
if (Ee(r)) {
|
|
166
166
|
if (e.indexOf(r) >= 0)
|
|
@@ -179,7 +179,7 @@ const Bo = (t) => {
|
|
|
179
179
|
return r;
|
|
180
180
|
};
|
|
181
181
|
return n(t, 0);
|
|
182
|
-
},
|
|
182
|
+
}, Bo = I("AsyncFunction"), Uo = (t) => t && (Ee(t) || F(t)) && F(t.then) && F(t.catch), Jr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
|
|
183
183
|
o === Q && a === n && r.length && r.shift()();
|
|
184
184
|
}, !1), (o) => {
|
|
185
185
|
r.push(o), Q.postMessage(n, "*");
|
|
@@ -239,9 +239,9 @@ const Bo = (t) => {
|
|
|
239
239
|
global: Q,
|
|
240
240
|
isContextDefined: Wr,
|
|
241
241
|
isSpecCompliantForm: Io,
|
|
242
|
-
toJSONObject:
|
|
243
|
-
isAsyncFn:
|
|
244
|
-
isThenable:
|
|
242
|
+
toJSONObject: Lo,
|
|
243
|
+
isAsyncFn: Bo,
|
|
244
|
+
isThenable: Uo,
|
|
245
245
|
setImmediate: Jr,
|
|
246
246
|
asap: Mo,
|
|
247
247
|
isIterable: ko
|
|
@@ -338,12 +338,12 @@ function Je(t, e, n) {
|
|
|
338
338
|
return f.isArrayBuffer(y) || f.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
339
339
|
}
|
|
340
340
|
function c(y, m, h) {
|
|
341
|
-
let
|
|
341
|
+
let b = y;
|
|
342
342
|
if (y && !h && typeof y == "object") {
|
|
343
343
|
if (f.endsWith(m, "{}"))
|
|
344
344
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
345
|
-
else if (f.isArray(y) && jo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (
|
|
346
|
-
return m = Qr(m),
|
|
345
|
+
else if (f.isArray(y) && jo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (b = f.toArray(y)))
|
|
346
|
+
return m = Qr(m), b.forEach(function(g, T) {
|
|
347
347
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
348
348
|
// eslint-disable-next-line no-nested-ternary
|
|
349
349
|
i === !0 ? Zt([m], T, a) : i === null ? m : m + "[]",
|
|
@@ -362,14 +362,14 @@ function Je(t, e, n) {
|
|
|
362
362
|
if (!f.isUndefined(y)) {
|
|
363
363
|
if (p.indexOf(y) !== -1)
|
|
364
364
|
throw Error("Circular reference detected in " + m.join("."));
|
|
365
|
-
p.push(y), f.forEach(y, function(
|
|
366
|
-
(!(f.isUndefined(
|
|
365
|
+
p.push(y), f.forEach(y, function(b, E) {
|
|
366
|
+
(!(f.isUndefined(b) || b === null) && o.call(
|
|
367
367
|
e,
|
|
368
|
-
|
|
368
|
+
b,
|
|
369
369
|
f.isString(E) ? E.trim() : E,
|
|
370
370
|
m,
|
|
371
371
|
d
|
|
372
|
-
)) === !0 && v(
|
|
372
|
+
)) === !0 && v(b, m ? m.concat(E) : [E]);
|
|
373
373
|
}), p.pop();
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -875,7 +875,7 @@ function fa(t, e) {
|
|
|
875
875
|
}, r - p)));
|
|
876
876
|
}, () => o && i(o)];
|
|
877
877
|
}
|
|
878
|
-
const
|
|
878
|
+
const Ue = (t, e, n = 3) => {
|
|
879
879
|
let r = 0;
|
|
880
880
|
const o = ua(50, 250);
|
|
881
881
|
return fa((a) => {
|
|
@@ -1038,7 +1038,7 @@ const on = (t) => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
let h = new XMLHttpRequest();
|
|
1040
1040
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1041
|
-
function
|
|
1041
|
+
function b() {
|
|
1042
1042
|
if (!h)
|
|
1043
1043
|
return;
|
|
1044
1044
|
const g = $.from(
|
|
@@ -1057,8 +1057,8 @@ const on = (t) => {
|
|
|
1057
1057
|
r(N), m();
|
|
1058
1058
|
}, A), h = null;
|
|
1059
1059
|
}
|
|
1060
|
-
"onloadend" in h ? h.onloadend =
|
|
1061
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1060
|
+
"onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
|
|
1061
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
1062
1062
|
}, h.onabort = function() {
|
|
1063
1063
|
h && (r(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
|
|
1064
1064
|
}, h.onerror = function() {
|
|
@@ -1074,7 +1074,7 @@ const on = (t) => {
|
|
|
1074
1074
|
)), h = null;
|
|
1075
1075
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1076
1076
|
h.setRequestHeader(A, T);
|
|
1077
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] =
|
|
1077
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Ue(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = Ue(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1078
1078
|
h && (r(!g || g.type ? new ue(null, t, h) : g), h.abort(), h = null);
|
|
1079
1079
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1080
1080
|
const E = ca(o.url);
|
|
@@ -1238,13 +1238,13 @@ const Oa = async (t) => {
|
|
|
1238
1238
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1239
1239
|
const [N, q] = rr(
|
|
1240
1240
|
h,
|
|
1241
|
-
|
|
1241
|
+
Ue(nr(u))
|
|
1242
1242
|
);
|
|
1243
1243
|
r = ar(A.body, ir, N, q);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
1247
|
-
const
|
|
1247
|
+
const b = "credentials" in Request.prototype;
|
|
1248
1248
|
y = new Request(e, {
|
|
1249
1249
|
...d,
|
|
1250
1250
|
signal: v,
|
|
@@ -1252,18 +1252,18 @@ const Oa = async (t) => {
|
|
|
1252
1252
|
headers: c.normalize().toJSON(),
|
|
1253
1253
|
body: r,
|
|
1254
1254
|
duplex: "half",
|
|
1255
|
-
credentials:
|
|
1255
|
+
credentials: b ? p : void 0
|
|
1256
1256
|
});
|
|
1257
1257
|
let E = await fetch(y, d);
|
|
1258
1258
|
const g = Ct && (l === "stream" || l === "response");
|
|
1259
1259
|
if (Ct && (s || g && m)) {
|
|
1260
1260
|
const A = {};
|
|
1261
|
-
["status", "statusText", "headers"].forEach((
|
|
1262
|
-
A[
|
|
1261
|
+
["status", "statusText", "headers"].forEach((L) => {
|
|
1262
|
+
A[L] = E[L];
|
|
1263
1263
|
});
|
|
1264
1264
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && rr(
|
|
1265
1265
|
_,
|
|
1266
|
-
|
|
1266
|
+
Ue(nr(s), !0)
|
|
1267
1267
|
) || [];
|
|
1268
1268
|
E = new Response(
|
|
1269
1269
|
ar(E.body, ir, N, () => {
|
|
@@ -1284,13 +1284,13 @@ const Oa = async (t) => {
|
|
|
1284
1284
|
request: y
|
|
1285
1285
|
});
|
|
1286
1286
|
});
|
|
1287
|
-
} catch (
|
|
1288
|
-
throw m && m(),
|
|
1287
|
+
} catch (b) {
|
|
1288
|
+
throw m && m(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign(
|
|
1289
1289
|
new w("Network Error", w.ERR_NETWORK, t, y),
|
|
1290
1290
|
{
|
|
1291
|
-
cause:
|
|
1291
|
+
cause: b.cause || b
|
|
1292
1292
|
}
|
|
1293
|
-
) : w.from(
|
|
1293
|
+
) : w.from(b, b && b.code, t, y);
|
|
1294
1294
|
}
|
|
1295
1295
|
}), _t = {
|
|
1296
1296
|
http: qo,
|
|
@@ -1402,7 +1402,7 @@ function xa(t, e, n) {
|
|
|
1402
1402
|
const De = {
|
|
1403
1403
|
assertOptions: xa,
|
|
1404
1404
|
validators: Ke
|
|
1405
|
-
},
|
|
1405
|
+
}, B = De.validators;
|
|
1406
1406
|
let X = class {
|
|
1407
1407
|
constructor(e) {
|
|
1408
1408
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1439,17 +1439,17 @@ let X = class {
|
|
|
1439
1439
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
|
|
1440
1440
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1441
1441
|
r !== void 0 && De.assertOptions(r, {
|
|
1442
|
-
silentJSONParsing:
|
|
1443
|
-
forcedJSONParsing:
|
|
1444
|
-
clarifyTimeoutError:
|
|
1442
|
+
silentJSONParsing: B.transitional(B.boolean),
|
|
1443
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1444
|
+
clarifyTimeoutError: B.transitional(B.boolean)
|
|
1445
1445
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1446
1446
|
serialize: o
|
|
1447
1447
|
} : De.assertOptions(o, {
|
|
1448
|
-
encode:
|
|
1449
|
-
serialize:
|
|
1448
|
+
encode: B.function,
|
|
1449
|
+
serialize: B.function
|
|
1450
1450
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
|
|
1451
|
-
baseUrl:
|
|
1452
|
-
withXsrfToken:
|
|
1451
|
+
baseUrl: B.spelling("baseURL"),
|
|
1452
|
+
withXsrfToken: B.spelling("withXSRFToken")
|
|
1453
1453
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1454
1454
|
let i = a && f.merge(
|
|
1455
1455
|
a.common,
|
|
@@ -1747,8 +1747,8 @@ var fe = TypeError;
|
|
|
1747
1747
|
const Da = {}, Ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1748
1748
|
__proto__: null,
|
|
1749
1749
|
default: Da
|
|
1750
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1751
|
-
var zt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = zt && at && typeof at.get == "function" ? at.get : null, fr = zt && Map.prototype.forEach, Ht = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = Ht && it && typeof it.get == "function" ? it.get : null, pr = Ht && Set.prototype.forEach,
|
|
1750
|
+
}, Symbol.toStringTag, { value: "Module" })), La = /* @__PURE__ */ $a(Ia);
|
|
1751
|
+
var zt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = zt && at && typeof at.get == "function" ? at.get : null, fr = zt && Map.prototype.forEach, Ht = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = Ht && it && typeof it.get == "function" ? it.get : null, pr = Ht && Set.prototype.forEach, Ba = typeof WeakMap == "function" && WeakMap.prototype, he = Ba ? WeakMap.prototype.has : null, Ua = typeof WeakSet == "function" && WeakSet.prototype, me = Ua ? WeakSet.prototype.has : null, Ma = typeof WeakRef == "function" && WeakRef.prototype, dr = Ma ? WeakRef.prototype.deref : null, ka = Boolean.prototype.valueOf, qa = Object.prototype.toString, ja = Function.prototype.toString, za = String.prototype.match, Wt = String.prototype.slice, J = String.prototype.replace, Ha = String.prototype.toUpperCase, yr = String.prototype.toLowerCase, pn = RegExp.prototype.test, hr = Array.prototype.concat, k = Array.prototype.join, Wa = Array.prototype.slice, mr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, st = Object.getOwnPropertySymbols, $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, se = typeof Symbol == "function" && typeof Symbol.iterator == "object", ge = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === se || !0) ? Symbol.toStringTag : null, dn = Object.prototype.propertyIsEnumerable, gr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1752
1752
|
return t.__proto__;
|
|
1753
1753
|
} : null);
|
|
1754
1754
|
function vr(t, e) {
|
|
@@ -1764,7 +1764,7 @@ function vr(t, e) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
return J.call(e, n, "$&_");
|
|
1766
1766
|
}
|
|
1767
|
-
var Dt =
|
|
1767
|
+
var Dt = La, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
1768
1768
|
__proto__: null,
|
|
1769
1769
|
double: '"',
|
|
1770
1770
|
single: "'"
|
|
@@ -1830,15 +1830,15 @@ var Dt = Ba, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1830
1830
|
return typeof e == "object" && !se ? ye(m) : m;
|
|
1831
1831
|
}
|
|
1832
1832
|
if (si(e)) {
|
|
1833
|
-
for (var h = "<" + yr.call(String(e.nodeName)),
|
|
1834
|
-
h += " " +
|
|
1833
|
+
for (var h = "<" + yr.call(String(e.nodeName)), b = e.attributes || [], E = 0; E < b.length; E++)
|
|
1834
|
+
h += " " + b[E].name + "=" + hn(Ja(b[E].value), "double", a);
|
|
1835
1835
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + yr.call(String(e.nodeName)) + ">", h;
|
|
1836
1836
|
}
|
|
1837
1837
|
if (It(e)) {
|
|
1838
1838
|
if (e.length === 0)
|
|
1839
1839
|
return "[]";
|
|
1840
1840
|
var g = Ce(e, d);
|
|
1841
|
-
return p && !ci(g) ? "[" +
|
|
1841
|
+
return p && !ci(g) ? "[" + Lt(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1842
1842
|
}
|
|
1843
1843
|
if (Ka(e)) {
|
|
1844
1844
|
var T = Ce(e, d);
|
|
@@ -1881,8 +1881,8 @@ var Dt = Ba, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1881
1881
|
if (typeof globalThis < "u" && e === globalThis || typeof ur < "u" && e === ur)
|
|
1882
1882
|
return "{ [object globalThis] }";
|
|
1883
1883
|
if (!Va(e) && !Sr(e)) {
|
|
1884
|
-
var N = Ce(e, d), q = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
1885
|
-
return N.length === 0 ? re + "{}" : p ? re + "{" +
|
|
1884
|
+
var N = Ce(e, d), q = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", H = !q && ge && Object(e) === e && ge in e ? Wt.call(V(e), 8, -1) : L ? "Object" : "", xe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = xe + (H || L ? "[" + k.call(hr.call([], H || [], L || []), ": ") + "] " : "");
|
|
1885
|
+
return N.length === 0 ? re + "{}" : p ? re + "{" + Lt(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1886
1886
|
}
|
|
1887
1887
|
return String(e);
|
|
1888
1888
|
};
|
|
@@ -2061,7 +2061,7 @@ function lt(t) {
|
|
|
2061
2061
|
return t + " { ? }";
|
|
2062
2062
|
}
|
|
2063
2063
|
function Er(t, e, n, r) {
|
|
2064
|
-
var o = r ?
|
|
2064
|
+
var o = r ? Lt(n, r) : k.call(n, ", ");
|
|
2065
2065
|
return t + " (" + e + ") {" + o + "}";
|
|
2066
2066
|
}
|
|
2067
2067
|
function ci(t) {
|
|
@@ -2084,7 +2084,7 @@ function ui(t, e) {
|
|
|
2084
2084
|
prev: k.call(Array(e + 1), n)
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Lt(t, e) {
|
|
2088
2088
|
if (t.length === 0)
|
|
2089
2089
|
return "";
|
|
2090
2090
|
var n = `
|
|
@@ -2175,14 +2175,14 @@ if (Ie)
|
|
|
2175
2175
|
} catch {
|
|
2176
2176
|
Ie = null;
|
|
2177
2177
|
}
|
|
2178
|
-
var bn = Ie,
|
|
2179
|
-
if (
|
|
2178
|
+
var bn = Ie, Le = Object.defineProperty || !1;
|
|
2179
|
+
if (Le)
|
|
2180
2180
|
try {
|
|
2181
|
-
|
|
2181
|
+
Le({}, "a", { value: 1 });
|
|
2182
2182
|
} catch {
|
|
2183
|
-
|
|
2183
|
+
Le = !1;
|
|
2184
2184
|
}
|
|
2185
|
-
var Di =
|
|
2185
|
+
var Di = Le, ct, Ar;
|
|
2186
2186
|
function Ii() {
|
|
2187
2187
|
return Ar || (Ar = 1, ct = function() {
|
|
2188
2188
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
@@ -2213,7 +2213,7 @@ function Ii() {
|
|
|
2213
2213
|
}), ct;
|
|
2214
2214
|
}
|
|
2215
2215
|
var ut, Or;
|
|
2216
|
-
function
|
|
2216
|
+
function Li() {
|
|
2217
2217
|
if (Or) return ut;
|
|
2218
2218
|
Or = 1;
|
|
2219
2219
|
var t = typeof Symbol < "u" && Symbol, e = Ii();
|
|
@@ -2233,7 +2233,7 @@ function En() {
|
|
|
2233
2233
|
return pt = t.getPrototypeOf || null, pt;
|
|
2234
2234
|
}
|
|
2235
2235
|
var dt, Tr;
|
|
2236
|
-
function
|
|
2236
|
+
function Bi() {
|
|
2237
2237
|
if (Tr) return dt;
|
|
2238
2238
|
Tr = 1;
|
|
2239
2239
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(u, l) {
|
|
@@ -2257,11 +2257,11 @@ function Ui() {
|
|
|
2257
2257
|
throw new TypeError(t + l);
|
|
2258
2258
|
for (var c = a(arguments, 1), p, d = function() {
|
|
2259
2259
|
if (this instanceof p) {
|
|
2260
|
-
var
|
|
2260
|
+
var b = l.apply(
|
|
2261
2261
|
this,
|
|
2262
2262
|
o(c, arguments)
|
|
2263
2263
|
);
|
|
2264
|
-
return Object(
|
|
2264
|
+
return Object(b) === b ? b : this;
|
|
2265
2265
|
}
|
|
2266
2266
|
return l.apply(
|
|
2267
2267
|
u,
|
|
@@ -2281,7 +2281,7 @@ var yt, xr;
|
|
|
2281
2281
|
function Ze() {
|
|
2282
2282
|
if (xr) return yt;
|
|
2283
2283
|
xr = 1;
|
|
2284
|
-
var t =
|
|
2284
|
+
var t = Bi();
|
|
2285
2285
|
return yt = Function.prototype.bind || t, yt;
|
|
2286
2286
|
}
|
|
2287
2287
|
var ht, Cr;
|
|
@@ -2292,7 +2292,7 @@ var mt, _r;
|
|
|
2292
2292
|
function An() {
|
|
2293
2293
|
return _r || (_r = 1, mt = Function.prototype.apply), mt;
|
|
2294
2294
|
}
|
|
2295
|
-
var
|
|
2295
|
+
var Ui = typeof Reflect < "u" && Reflect && Reflect.apply, Mi = Ze(), ki = An(), qi = Gt(), ji = Ui, zi = ji || Mi.call(qi, ki), Hi = Ze(), Wi = fe, Gi = Gt(), Ji = zi, On = function(e) {
|
|
2296
2296
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2297
2297
|
throw new Wi("a function is required");
|
|
2298
2298
|
return Ji(Hi, Gi, e);
|
|
@@ -2342,7 +2342,7 @@ function Qi() {
|
|
|
2342
2342
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Ze();
|
|
2343
2343
|
return wt = n.call(t, e), wt;
|
|
2344
2344
|
}
|
|
2345
|
-
var
|
|
2345
|
+
var S, Xi = wn, Zi = vi, Yi = wi, es = bi, ts = Si, le = Ei, ie = fe, rs = Ai, ns = Oi, os = Ri, as = Pi, is = Ti, ss = xi, ls = Ci, cs = Fi, Rn = Function, bt = function(t) {
|
|
2346
2346
|
try {
|
|
2347
2347
|
return Rn('"use strict"; return (' + t + ").constructor;")();
|
|
2348
2348
|
} catch {
|
|
@@ -2359,23 +2359,23 @@ var b, Xi = wn, Zi = vi, Yi = wi, es = bi, ts = Si, le = Ei, ie = fe, rs = Ai, n
|
|
|
2359
2359
|
return St;
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
|
-
}() : St, ne =
|
|
2362
|
+
}() : St, ne = Li()(), x = Ki(), ps = En(), ds = Sn(), Pn = An(), Re = Gt(), ae = {}, ys = typeof Uint8Array > "u" || !x ? S : x(Uint8Array), Z = {
|
|
2363
2363
|
__proto__: null,
|
|
2364
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
2364
|
+
"%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
|
|
2365
2365
|
"%Array%": Array,
|
|
2366
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
2367
|
-
"%ArrayIteratorPrototype%": ne && x ? x([][Symbol.iterator]()) :
|
|
2368
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2366
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
|
|
2367
|
+
"%ArrayIteratorPrototype%": ne && x ? x([][Symbol.iterator]()) : S,
|
|
2368
|
+
"%AsyncFromSyncIteratorPrototype%": S,
|
|
2369
2369
|
"%AsyncFunction%": ae,
|
|
2370
2370
|
"%AsyncGenerator%": ae,
|
|
2371
2371
|
"%AsyncGeneratorFunction%": ae,
|
|
2372
2372
|
"%AsyncIteratorPrototype%": ae,
|
|
2373
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
2374
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
2375
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
2376
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
2373
|
+
"%Atomics%": typeof Atomics > "u" ? S : Atomics,
|
|
2374
|
+
"%BigInt%": typeof BigInt > "u" ? S : BigInt,
|
|
2375
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array,
|
|
2376
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array,
|
|
2377
2377
|
"%Boolean%": Boolean,
|
|
2378
|
-
"%DataView%": typeof DataView > "u" ?
|
|
2378
|
+
"%DataView%": typeof DataView > "u" ? S : DataView,
|
|
2379
2379
|
"%Date%": Date,
|
|
2380
2380
|
"%decodeURI%": decodeURI,
|
|
2381
2381
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2385,51 +2385,51 @@ var b, Xi = wn, Zi = vi, Yi = wi, es = bi, ts = Si, le = Ei, ie = fe, rs = Ai, n
|
|
|
2385
2385
|
"%eval%": eval,
|
|
2386
2386
|
// eslint-disable-line no-eval
|
|
2387
2387
|
"%EvalError%": Yi,
|
|
2388
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
2389
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
2390
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
2391
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
2388
|
+
"%Float16Array%": typeof Float16Array > "u" ? S : Float16Array,
|
|
2389
|
+
"%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
|
|
2390
|
+
"%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
|
|
2391
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
|
|
2392
2392
|
"%Function%": Rn,
|
|
2393
2393
|
"%GeneratorFunction%": ae,
|
|
2394
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
2395
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
2396
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
2394
|
+
"%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
|
|
2395
|
+
"%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
|
|
2396
|
+
"%Int32Array%": typeof Int32Array > "u" ? S : Int32Array,
|
|
2397
2397
|
"%isFinite%": isFinite,
|
|
2398
2398
|
"%isNaN%": isNaN,
|
|
2399
|
-
"%IteratorPrototype%": ne && x ? x(x([][Symbol.iterator]())) :
|
|
2400
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
2401
|
-
"%Map%": typeof Map > "u" ?
|
|
2402
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !ne || !x ?
|
|
2399
|
+
"%IteratorPrototype%": ne && x ? x(x([][Symbol.iterator]())) : S,
|
|
2400
|
+
"%JSON%": typeof JSON == "object" ? JSON : S,
|
|
2401
|
+
"%Map%": typeof Map > "u" ? S : Map,
|
|
2402
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ne || !x ? S : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2403
2403
|
"%Math%": Math,
|
|
2404
2404
|
"%Number%": Number,
|
|
2405
2405
|
"%Object%": Xi,
|
|
2406
2406
|
"%Object.getOwnPropertyDescriptor%": be,
|
|
2407
2407
|
"%parseFloat%": parseFloat,
|
|
2408
2408
|
"%parseInt%": parseInt,
|
|
2409
|
-
"%Promise%": typeof Promise > "u" ?
|
|
2410
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
2409
|
+
"%Promise%": typeof Promise > "u" ? S : Promise,
|
|
2410
|
+
"%Proxy%": typeof Proxy > "u" ? S : Proxy,
|
|
2411
2411
|
"%RangeError%": es,
|
|
2412
2412
|
"%ReferenceError%": ts,
|
|
2413
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
2413
|
+
"%Reflect%": typeof Reflect > "u" ? S : Reflect,
|
|
2414
2414
|
"%RegExp%": RegExp,
|
|
2415
|
-
"%Set%": typeof Set > "u" ?
|
|
2416
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !ne || !x ?
|
|
2417
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
2415
|
+
"%Set%": typeof Set > "u" ? S : Set,
|
|
2416
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ne || !x ? S : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2417
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer,
|
|
2418
2418
|
"%String%": String,
|
|
2419
|
-
"%StringIteratorPrototype%": ne && x ? x(""[Symbol.iterator]()) :
|
|
2420
|
-
"%Symbol%": ne ? Symbol :
|
|
2419
|
+
"%StringIteratorPrototype%": ne && x ? x(""[Symbol.iterator]()) : S,
|
|
2420
|
+
"%Symbol%": ne ? Symbol : S,
|
|
2421
2421
|
"%SyntaxError%": le,
|
|
2422
2422
|
"%ThrowTypeError%": fs,
|
|
2423
2423
|
"%TypedArray%": ys,
|
|
2424
2424
|
"%TypeError%": ie,
|
|
2425
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
2426
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
2427
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
2428
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
2425
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
|
|
2426
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
|
|
2427
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
|
|
2428
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
|
|
2429
2429
|
"%URIError%": rs,
|
|
2430
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
2431
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
2432
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
2430
|
+
"%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
|
|
2431
|
+
"%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
|
|
2432
|
+
"%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
|
|
2433
2433
|
"%Function.prototype.call%": Re,
|
|
2434
2434
|
"%Function.prototype.apply%": Pn,
|
|
2435
2435
|
"%Object.defineProperty%": us,
|
|
@@ -2581,7 +2581,7 @@ var ms = function t(e) {
|
|
|
2581
2581
|
/** @type {const} */
|
|
2582
2582
|
[r]
|
|
2583
2583
|
) : r;
|
|
2584
|
-
}, Rs = Jt, Te = Cn, Ps = Qe, Ts = fe,
|
|
2584
|
+
}, Rs = Jt, Te = Cn, Ps = Qe, Ts = fe, Lr = Rs("%Map%", !0), xs = Te("Map.prototype.get", !0), Cs = Te("Map.prototype.set", !0), _s = Te("Map.prototype.has", !0), Ns = Te("Map.prototype.delete", !0), Fs = Te("Map.prototype.size", !0), _n = !!Lr && /** @type {Exclude<import('.'), false>} */
|
|
2585
2585
|
function() {
|
|
2586
2586
|
var e, n = {
|
|
2587
2587
|
assert: function(r) {
|
|
@@ -2603,11 +2603,11 @@ function() {
|
|
|
2603
2603
|
return e ? _s(e, r) : !1;
|
|
2604
2604
|
},
|
|
2605
2605
|
set: function(r, o) {
|
|
2606
|
-
e || (e = new
|
|
2606
|
+
e || (e = new Lr()), Cs(e, r, o);
|
|
2607
2607
|
}
|
|
2608
2608
|
};
|
|
2609
2609
|
return n;
|
|
2610
|
-
}, $s = Jt, Ye = Cn, Ds = Qe, _e = _n, Is = fe, oe = $s("%WeakMap%", !0),
|
|
2610
|
+
}, $s = Jt, Ye = Cn, Ds = Qe, _e = _n, Is = fe, oe = $s("%WeakMap%", !0), Ls = Ye("WeakMap.prototype.get", !0), Bs = Ye("WeakMap.prototype.set", !0), Us = Ye("WeakMap.prototype.has", !0), Ms = Ye("WeakMap.prototype.delete", !0), ks = oe ? (
|
|
2611
2611
|
/** @type {Exclude<import('.'), false>} */
|
|
2612
2612
|
function() {
|
|
2613
2613
|
var e, n, r = {
|
|
@@ -2624,13 +2624,13 @@ function() {
|
|
|
2624
2624
|
return !1;
|
|
2625
2625
|
},
|
|
2626
2626
|
get: function(o) {
|
|
2627
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2627
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Ls(e, o) : n && n.get(o);
|
|
2628
2628
|
},
|
|
2629
2629
|
has: function(o) {
|
|
2630
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2630
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Us(e, o) : !!n && n.has(o);
|
|
2631
2631
|
},
|
|
2632
2632
|
set: function(o, a) {
|
|
2633
|
-
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()),
|
|
2633
|
+
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()), Bs(e, o, a)) : _e && (n || (n = _e()), n.set(o, a));
|
|
2634
2634
|
}
|
|
2635
2635
|
};
|
|
2636
2636
|
return r;
|
|
@@ -2670,7 +2670,7 @@ function() {
|
|
|
2670
2670
|
},
|
|
2671
2671
|
RFC1738: Et.RFC1738,
|
|
2672
2672
|
RFC3986: Et.RFC3986
|
|
2673
|
-
}, Qs = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
2673
|
+
}, Qs = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray, U = function() {
|
|
2674
2674
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2675
2675
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2676
2676
|
return t;
|
|
@@ -2741,18 +2741,18 @@ function() {
|
|
|
2741
2741
|
continue;
|
|
2742
2742
|
}
|
|
2743
2743
|
if (d < 128) {
|
|
2744
|
-
c[c.length] =
|
|
2744
|
+
c[c.length] = U[d];
|
|
2745
2745
|
continue;
|
|
2746
2746
|
}
|
|
2747
2747
|
if (d < 2048) {
|
|
2748
|
-
c[c.length] =
|
|
2748
|
+
c[c.length] = U[192 | d >> 6] + U[128 | d & 63];
|
|
2749
2749
|
continue;
|
|
2750
2750
|
}
|
|
2751
2751
|
if (d < 55296 || d >= 57344) {
|
|
2752
|
-
c[c.length] =
|
|
2752
|
+
c[c.length] = U[224 | d >> 12] + U[128 | d >> 6 & 63] + U[128 | d & 63];
|
|
2753
2753
|
continue;
|
|
2754
2754
|
}
|
|
2755
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2755
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = U[240 | d >> 18] + U[128 | d >> 12 & 63] + U[128 | d >> 6 & 63] + U[128 | d & 63];
|
|
2756
2756
|
}
|
|
2757
2757
|
s += c.join("");
|
|
2758
2758
|
}
|
|
@@ -2788,7 +2788,7 @@ function() {
|
|
|
2788
2788
|
isRegExp: nl,
|
|
2789
2789
|
maybeMap: il,
|
|
2790
2790
|
merge: Zs
|
|
2791
|
-
}, $n = Js,
|
|
2791
|
+
}, $n = Js, Be = Fn, ve = Vt, sl = Object.prototype.hasOwnProperty, Dn = {
|
|
2792
2792
|
brackets: function(e) {
|
|
2793
2793
|
return e + "[]";
|
|
2794
2794
|
},
|
|
@@ -2801,7 +2801,7 @@ function() {
|
|
|
2801
2801
|
}
|
|
2802
2802
|
}, M = Array.isArray, ll = Array.prototype.push, In = function(t, e) {
|
|
2803
2803
|
ll.apply(t, M(e) ? e : [e]);
|
|
2804
|
-
}, cl = Date.prototype.toISOString,
|
|
2804
|
+
}, cl = Date.prototype.toISOString, Br = ve.default, P = {
|
|
2805
2805
|
addQueryPrefix: !1,
|
|
2806
2806
|
allowDots: !1,
|
|
2807
2807
|
allowEmptyArrays: !1,
|
|
@@ -2812,11 +2812,11 @@ function() {
|
|
|
2812
2812
|
delimiter: "&",
|
|
2813
2813
|
encode: !0,
|
|
2814
2814
|
encodeDotInKeys: !1,
|
|
2815
|
-
encoder:
|
|
2815
|
+
encoder: Be.encode,
|
|
2816
2816
|
encodeValuesOnly: !1,
|
|
2817
2817
|
filter: void 0,
|
|
2818
|
-
format:
|
|
2819
|
-
formatter: ve.formatters[
|
|
2818
|
+
format: Br,
|
|
2819
|
+
formatter: ve.formatters[Br],
|
|
2820
2820
|
// deprecated
|
|
2821
2821
|
indices: !1,
|
|
2822
2822
|
serializeDate: function(e) {
|
|
@@ -2826,7 +2826,7 @@ function() {
|
|
|
2826
2826
|
strictNullHandling: !1
|
|
2827
2827
|
}, ul = function(e) {
|
|
2828
2828
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2829
|
-
}, Rt = {}, fl = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h,
|
|
2829
|
+
}, Rt = {}, fl = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, b, E) {
|
|
2830
2830
|
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Rt)) !== void 0 && !_; ) {
|
|
2831
2831
|
var N = T.get(e);
|
|
2832
2832
|
if (A += 1, typeof N < "u") {
|
|
@@ -2836,26 +2836,26 @@ function() {
|
|
|
2836
2836
|
}
|
|
2837
2837
|
typeof T.get(Rt) > "u" && (A = 0);
|
|
2838
2838
|
}
|
|
2839
|
-
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g =
|
|
2839
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Be.maybeMap(g, function(tt) {
|
|
2840
2840
|
return tt instanceof Date ? v(tt) : tt;
|
|
2841
2841
|
})), g === null) {
|
|
2842
2842
|
if (i)
|
|
2843
|
-
return l && !h ? l(n, P.encoder,
|
|
2843
|
+
return l && !h ? l(n, P.encoder, b, "key", y) : n;
|
|
2844
2844
|
g = "";
|
|
2845
2845
|
}
|
|
2846
|
-
if (ul(g) ||
|
|
2846
|
+
if (ul(g) || Be.isBuffer(g)) {
|
|
2847
2847
|
if (l) {
|
|
2848
|
-
var q = h ? n : l(n, P.encoder,
|
|
2849
|
-
return [m(q) + "=" + m(l(g, P.encoder,
|
|
2848
|
+
var q = h ? n : l(n, P.encoder, b, "key", y);
|
|
2849
|
+
return [m(q) + "=" + m(l(g, P.encoder, b, "value", y))];
|
|
2850
2850
|
}
|
|
2851
2851
|
return [m(n) + "=" + m(String(g))];
|
|
2852
2852
|
}
|
|
2853
|
-
var
|
|
2853
|
+
var L = [];
|
|
2854
2854
|
if (typeof g > "u")
|
|
2855
|
-
return
|
|
2855
|
+
return L;
|
|
2856
2856
|
var H;
|
|
2857
2857
|
if (r === "comma" && M(g))
|
|
2858
|
-
h && l && (g =
|
|
2858
|
+
h && l && (g = Be.maybeMap(g, l)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2859
2859
|
else if (M(c))
|
|
2860
2860
|
H = c;
|
|
2861
2861
|
else {
|
|
@@ -2871,7 +2871,7 @@ function() {
|
|
|
2871
2871
|
var et = d && u ? String(j).replace(/\./g, "%2E") : String(j), kn = M(g) ? typeof r == "function" ? r(D, et) : D : D + (d ? "." + et : "[" + et + "]");
|
|
2872
2872
|
E.set(e, A);
|
|
2873
2873
|
var Qt = $n();
|
|
2874
|
-
Qt.set(Rt, E), In(
|
|
2874
|
+
Qt.set(Rt, E), In(L, t(
|
|
2875
2875
|
pe,
|
|
2876
2876
|
kn,
|
|
2877
2877
|
r,
|
|
@@ -2888,12 +2888,12 @@ function() {
|
|
|
2888
2888
|
y,
|
|
2889
2889
|
m,
|
|
2890
2890
|
h,
|
|
2891
|
-
|
|
2891
|
+
b,
|
|
2892
2892
|
Qt
|
|
2893
2893
|
));
|
|
2894
2894
|
}
|
|
2895
2895
|
}
|
|
2896
|
-
return
|
|
2896
|
+
return L;
|
|
2897
2897
|
}, pl = function(e) {
|
|
2898
2898
|
if (!e)
|
|
2899
2899
|
return P;
|
|
@@ -2972,7 +2972,7 @@ function() {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2974
2974
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2975
|
-
}, ee = Fn,
|
|
2975
|
+
}, ee = Fn, Bt = Object.prototype.hasOwnProperty, Ur = Array.isArray, O = {
|
|
2976
2976
|
allowDots: !1,
|
|
2977
2977
|
allowEmptyArrays: !1,
|
|
2978
2978
|
allowPrototypes: !1,
|
|
@@ -2998,7 +2998,7 @@ function() {
|
|
|
2998
2998
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2999
2999
|
return String.fromCharCode(parseInt(n, 10));
|
|
3000
3000
|
});
|
|
3001
|
-
},
|
|
3001
|
+
}, Ln = function(t, e, n) {
|
|
3002
3002
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
3003
3003
|
return t.split(",");
|
|
3004
3004
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
@@ -3021,16 +3021,16 @@ function() {
|
|
|
3021
3021
|
if (u !== s) {
|
|
3022
3022
|
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
|
|
3023
3023
|
d === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = ee.maybeMap(
|
|
3024
|
-
|
|
3024
|
+
Ln(
|
|
3025
3025
|
c.slice(d + 1),
|
|
3026
3026
|
n,
|
|
3027
|
-
|
|
3027
|
+
Ur(r[v]) ? r[v].length : 0
|
|
3028
3028
|
),
|
|
3029
3029
|
function(h) {
|
|
3030
3030
|
return n.decoder(h, O.decoder, l, "value");
|
|
3031
3031
|
}
|
|
3032
|
-
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = yl(String(y))), c.indexOf("[]=") > -1 && (y =
|
|
3033
|
-
var m =
|
|
3032
|
+
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = yl(String(y))), c.indexOf("[]=") > -1 && (y = Ur(y) ? [y] : y);
|
|
3033
|
+
var m = Bt.call(r, v);
|
|
3034
3034
|
m && n.duplicates === "combine" ? r[v] = ee.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3035
3035
|
}
|
|
3036
3036
|
return r;
|
|
@@ -3040,7 +3040,7 @@ function() {
|
|
|
3040
3040
|
var a = t.slice(0, -1).join("");
|
|
3041
3041
|
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
3042
3042
|
}
|
|
3043
|
-
for (var i = r ? e :
|
|
3043
|
+
for (var i = r ? e : Ln(e, n, o), s = t.length - 1; s >= 0; --s) {
|
|
3044
3044
|
var u, l = t[s];
|
|
3045
3045
|
if (l === "[]" && n.parseArrays)
|
|
3046
3046
|
u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : ee.combine([], i);
|
|
@@ -3056,12 +3056,12 @@ function() {
|
|
|
3056
3056
|
if (e) {
|
|
3057
3057
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
|
|
3058
3058
|
if (l) {
|
|
3059
|
-
if (!r.plainObjects &&
|
|
3059
|
+
if (!r.plainObjects && Bt.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3060
3060
|
return;
|
|
3061
3061
|
c.push(l);
|
|
3062
3062
|
}
|
|
3063
3063
|
for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
|
|
3064
|
-
if (p += 1, !r.plainObjects &&
|
|
3064
|
+
if (p += 1, !r.plainObjects && Bt.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3065
3065
|
return;
|
|
3066
3066
|
c.push(u[1]);
|
|
3067
3067
|
}
|
|
@@ -3148,7 +3148,7 @@ var Tl = {
|
|
|
3148
3148
|
);
|
|
3149
3149
|
}
|
|
3150
3150
|
};
|
|
3151
|
-
function
|
|
3151
|
+
function Ut(t, e) {
|
|
3152
3152
|
function n(o, a, i) {
|
|
3153
3153
|
if (!(typeof document > "u")) {
|
|
3154
3154
|
i = Ne({}, 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);
|
|
@@ -3186,10 +3186,10 @@ function Lt(t, e) {
|
|
|
3186
3186
|
);
|
|
3187
3187
|
},
|
|
3188
3188
|
withAttributes: function(o) {
|
|
3189
|
-
return
|
|
3189
|
+
return Ut(this.converter, Ne({}, this.attributes, o));
|
|
3190
3190
|
},
|
|
3191
3191
|
withConverter: function(o) {
|
|
3192
|
-
return
|
|
3192
|
+
return Ut(Ne({}, this.converter, o), this.attributes);
|
|
3193
3193
|
}
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
@@ -3198,7 +3198,7 @@ function Lt(t, e) {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
);
|
|
3200
3200
|
}
|
|
3201
|
-
var xl =
|
|
3201
|
+
var xl = Ut(Tl, { path: "/" });
|
|
3202
3202
|
const Cl = {
|
|
3203
3203
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3204
3204
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3214,7 +3214,7 @@ const Cl = {
|
|
|
3214
3214
|
qn(Cl);
|
|
3215
3215
|
Mt.extend(Kn);
|
|
3216
3216
|
Mt.extend(Qn);
|
|
3217
|
-
const Kt = Mr(),
|
|
3217
|
+
const Kt = Mr(), Bn = Kt.sso ?? !0, _l = Kt.i18n ?? !0, Un = Kt.noRedireLogin ?? !1, Nl = (t) => {
|
|
3218
3218
|
var e, n, r;
|
|
3219
3219
|
return ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === 401 || ((r = (n = t == null ? void 0 : t.response) == null ? void 0 : n.data) == null ? void 0 : r.code) === 401;
|
|
3220
3220
|
}, Fl = (t) => {
|
|
@@ -3230,44 +3230,44 @@ const Kt = Mr(), Un = Kt.sso ?? !0, _l = Kt.i18n ?? !0, Ln = Kt.noRedireLogin ??
|
|
|
3230
3230
|
}
|
|
3231
3231
|
});
|
|
3232
3232
|
}, Mn = () => {
|
|
3233
|
-
if (
|
|
3233
|
+
if (Un) return;
|
|
3234
3234
|
const t = "/login";
|
|
3235
3235
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3236
3236
|
}, $l = async (t) => {
|
|
3237
3237
|
var n;
|
|
3238
3238
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3239
3239
|
}, Dl = async (t, e) => {
|
|
3240
|
-
var
|
|
3241
|
-
let n = ((
|
|
3240
|
+
var p, d, v, y, m, h;
|
|
3241
|
+
let n = ((p = t.response) == null ? void 0 : p.status) || 500, r = (d = t.response) == null ? void 0 : d.message, o = {};
|
|
3242
3242
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3243
|
-
let i = ((
|
|
3244
|
-
const s = Wn("code") || "", u =
|
|
3245
|
-
if (!s &&
|
|
3246
|
-
|
|
3243
|
+
let i = ((v = t == null ? void 0 : t.response) == null ? void 0 : v.data) || {};
|
|
3244
|
+
const s = Wn("code") || "", u = (e == null ? void 0 : e.noRedireLogin) ?? ((y = t == null ? void 0 : t.config) == null ? void 0 : y.noRedireLogin), c = !((t == null ? void 0 : t.__skipLoginRedirect) === !0) && !(u ?? Un);
|
|
3245
|
+
if (!s && c && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3246
|
+
Bn ? Gn({ ...Vn, redirect_uri: Jn }) : Mn(), o = i;
|
|
3247
3247
|
else {
|
|
3248
3248
|
if (t.response) {
|
|
3249
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3249
|
+
if (i instanceof Blob && (i = await new Promise((b) => {
|
|
3250
|
+
const E = new FileReader();
|
|
3251
|
+
E.readAsText(i, "utf-8"), E.onload = () => {
|
|
3252
3252
|
try {
|
|
3253
|
-
|
|
3253
|
+
b(JSON.parse(E.result || "{}"));
|
|
3254
3254
|
} catch {
|
|
3255
|
-
|
|
3255
|
+
b({ code: 400, msg: G("blob解析错误") });
|
|
3256
3256
|
}
|
|
3257
3257
|
};
|
|
3258
3258
|
})), i.code) {
|
|
3259
3259
|
n = i.code;
|
|
3260
|
-
const
|
|
3261
|
-
if (_l &&
|
|
3262
|
-
const
|
|
3263
|
-
r = !(i != null && i.data) || !i.data.length ? G(
|
|
3260
|
+
const b = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3261
|
+
if (_l && b) {
|
|
3262
|
+
const E = (i == null ? void 0 : i.status) ?? "";
|
|
3263
|
+
r = !(i != null && i.data) || !i.data.length ? G(E) : G(E, ...i.data);
|
|
3264
3264
|
} else
|
|
3265
3265
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3266
3266
|
o = i;
|
|
3267
3267
|
}
|
|
3268
3268
|
r || (r = a[t.response.status] || t.message);
|
|
3269
3269
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("请求配置异常");
|
|
3270
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3270
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((h = (m = window.DasMessage) == null ? void 0 : m.error) == null || h.call(m, { message: r, showClose: !0 }));
|
|
3271
3271
|
}
|
|
3272
3272
|
return { ...o, code: n, msg: r, error: t };
|
|
3273
3273
|
}, Il = (t, e) => {
|
|
@@ -3280,7 +3280,7 @@ const Kt = Mr(), Un = Kt.sso ?? !0, _l = Kt.i18n ?? !0, Ln = Kt.noRedireLogin ??
|
|
|
3280
3280
|
const c = new URL(location.href).searchParams;
|
|
3281
3281
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3282
3282
|
}
|
|
3283
|
-
|
|
3283
|
+
Bn ? l || (l = await Hn(r)) : (l || (l = Yn()), l || Mn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3284
3284
|
}
|
|
3285
3285
|
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = $l), r.onError || (r.onError = Dl), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
|
|
3286
3286
|
const s = r.params || {};
|
|
@@ -3295,7 +3295,7 @@ const Kt = Mr(), Un = Kt.sso ?? !0, _l = Kt.i18n ?? !0, Ln = Kt.noRedireLogin ??
|
|
|
3295
3295
|
}
|
|
3296
3296
|
return r.params = s, r.headers.Timezone = Mt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = jn.value, r;
|
|
3297
3297
|
});
|
|
3298
|
-
},
|
|
3298
|
+
}, Ll = "v2", fc = Il(`/api/edge/${Ll}`);
|
|
3299
3299
|
export {
|
|
3300
3300
|
fc as gatewayEdge
|
|
3301
3301
|
};
|