@das-fed/utils 6.4.0-dev.55.4 → 6.4.0-dev.55.5
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 +13 -0
- package/api-services/i18n/index.js +18 -13
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +359 -353
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +166 -165
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +166 -165
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +170 -169
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +166 -165
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +175 -174
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +166 -165
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +104 -103
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +166 -165
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +138 -137
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +170 -169
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +165 -164
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +120 -119
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +120 -119
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +166 -165
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +170 -169
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +166 -165
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +166 -165
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +170 -169
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +167 -166
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +166 -165
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +166 -165
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +166 -165
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +116 -115
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/i18n/index.d.ts +6 -0
- package/create-api-service/i18n/index.js +7 -6
- package/create-api-service/index.js +116 -115
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
Binary file
|
|
@@ -183,7 +183,7 @@ const No = (t) => {
|
|
|
183
183
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
184
184
|
typeof setImmediate == "function",
|
|
185
185
|
W(le.postMessage)
|
|
186
|
-
),
|
|
186
|
+
), _o = typeof queueMicrotask < "u" ? queueMicrotask.bind(le) : typeof process < "u" && process.nextTick || Kr, f = {
|
|
187
187
|
isArray: Se,
|
|
188
188
|
isArrayBuffer: Mr,
|
|
189
189
|
isBuffer: Vn,
|
|
@@ -241,7 +241,7 @@ const No = (t) => {
|
|
|
241
241
|
isAsyncFn: Fo,
|
|
242
242
|
isThenable: Do,
|
|
243
243
|
setImmediate: Kr,
|
|
244
|
-
asap:
|
|
244
|
+
asap: _o
|
|
245
245
|
};
|
|
246
246
|
function w(t, e, n, r, o) {
|
|
247
247
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -293,7 +293,7 @@ w.from = (t, e, n, r, o, a) => {
|
|
|
293
293
|
return u !== Error.prototype;
|
|
294
294
|
}, (s) => s !== "isAxiosError"), w.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
295
295
|
};
|
|
296
|
-
const
|
|
296
|
+
const Io = null;
|
|
297
297
|
function Ot(t) {
|
|
298
298
|
return f.isPlainObject(t) || f.isArray(t);
|
|
299
299
|
}
|
|
@@ -305,7 +305,7 @@ function rr(t, e, n) {
|
|
|
305
305
|
return o = Vr(o), !n && a ? "[" + o + "]" : o;
|
|
306
306
|
}).join(n ? "." : "") : e;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function $o(t) {
|
|
309
309
|
return f.isArray(t) && !t.some(Ot);
|
|
310
310
|
}
|
|
311
311
|
const Bo = f.toFlatObject(f, {}, null, function(e) {
|
|
@@ -337,7 +337,7 @@ function rt(t, e, n) {
|
|
|
337
337
|
if (y && !h && typeof y == "object") {
|
|
338
338
|
if (f.endsWith(m, "{}"))
|
|
339
339
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
340
|
-
else if (f.isArray(y) &&
|
|
340
|
+
else if (f.isArray(y) && $o(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (O = f.toArray(y)))
|
|
341
341
|
return m = Vr(m), O.forEach(function(v, D) {
|
|
342
342
|
!(f.isUndefined(v) || v === null) && e.append(
|
|
343
343
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -1302,7 +1302,7 @@ const ga = async (t) => {
|
|
|
1302
1302
|
) : w.from(O, O && O.code, t, y);
|
|
1303
1303
|
}
|
|
1304
1304
|
}), Tt = {
|
|
1305
|
-
http:
|
|
1305
|
+
http: Io,
|
|
1306
1306
|
xhr: ua,
|
|
1307
1307
|
fetch: ba
|
|
1308
1308
|
};
|
|
@@ -1685,26 +1685,26 @@ function cn(t) {
|
|
|
1685
1685
|
return cn(pe(t, o));
|
|
1686
1686
|
}, n;
|
|
1687
1687
|
}
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1688
|
+
const _ = cn(De);
|
|
1689
|
+
_.Axios = ce;
|
|
1690
|
+
_.CanceledError = Ee;
|
|
1691
|
+
_.CancelToken = qt;
|
|
1692
|
+
_.isCancel = en;
|
|
1693
|
+
_.VERSION = ln;
|
|
1694
|
+
_.toFormData = rt;
|
|
1695
|
+
_.AxiosError = w;
|
|
1696
|
+
_.Cancel = _.CanceledError;
|
|
1697
|
+
_.all = function(e) {
|
|
1698
1698
|
return Promise.all(e);
|
|
1699
1699
|
};
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1700
|
+
_.spread = Ea;
|
|
1701
|
+
_.isAxiosError = Aa;
|
|
1702
|
+
_.mergeConfig = pe;
|
|
1703
|
+
_.AxiosHeaders = H;
|
|
1704
|
+
_.formToJSON = (t) => Zr(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1705
|
+
_.getAdapter = sn.getAdapter;
|
|
1706
|
+
_.HttpStatusCode = Ct;
|
|
1707
|
+
_.default = _;
|
|
1708
1708
|
var yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1709
1709
|
function Oa(t) {
|
|
1710
1710
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -1728,7 +1728,7 @@ function Ra(t) {
|
|
|
1728
1728
|
});
|
|
1729
1729
|
}), n;
|
|
1730
1730
|
}
|
|
1731
|
-
var Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, un = SyntaxError,
|
|
1731
|
+
var Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, un = SyntaxError, _e = TypeError, Na = URIError, Fa = function() {
|
|
1732
1732
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1733
1733
|
return !1;
|
|
1734
1734
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -1751,13 +1751,13 @@ var Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, un = Synta
|
|
|
1751
1751
|
return !1;
|
|
1752
1752
|
}
|
|
1753
1753
|
return !0;
|
|
1754
|
-
}, hr = typeof Symbol < "u" && Symbol, Da = Fa,
|
|
1754
|
+
}, hr = typeof Symbol < "u" && Symbol, Da = Fa, _a = function() {
|
|
1755
1755
|
return typeof hr != "function" || typeof Symbol != "function" || typeof hr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Da();
|
|
1756
1756
|
}, ft = {
|
|
1757
1757
|
__proto__: null,
|
|
1758
1758
|
foo: {}
|
|
1759
|
-
},
|
|
1760
|
-
return { __proto__: ft }.foo === ft.foo && !(ft instanceof
|
|
1759
|
+
}, Ia = Object, $a = function() {
|
|
1760
|
+
return { __proto__: ft }.foo === ft.foo && !(ft instanceof Ia);
|
|
1761
1761
|
}, Ba = "Function.prototype.bind called on incompatible ", La = Object.prototype.toString, Ua = Math.max, ka = "[object Function]", mr = function(e, n) {
|
|
1762
1762
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
1763
1763
|
r[o] = e[o];
|
|
@@ -1796,7 +1796,7 @@ var Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, un = Synta
|
|
|
1796
1796
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1797
1797
|
}
|
|
1798
1798
|
return o;
|
|
1799
|
-
}, za = qa, zt = Function.prototype.bind || za, Ha = Function.prototype.call, Wa = Object.prototype.hasOwnProperty, Ka = zt, Ga = Ka.call(Ha, Wa), E, Ja = Pa, Va = Ta, Qa = xa, Xa = Ca, ve = un, ge =
|
|
1799
|
+
}, za = qa, zt = Function.prototype.bind || za, Ha = Function.prototype.call, Wa = Object.prototype.hasOwnProperty, Ka = zt, Ga = Ka.call(Ha, Wa), E, Ja = Pa, Va = Ta, Qa = xa, Xa = Ca, ve = un, ge = _e, Ya = Na, fn = Function, pt = function(t) {
|
|
1800
1800
|
try {
|
|
1801
1801
|
return fn('"use strict"; return (' + t + ").constructor;")();
|
|
1802
1802
|
} catch {
|
|
@@ -1820,14 +1820,14 @@ var dt = function() {
|
|
|
1820
1820
|
return dt;
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
|
-
}() : dt, ye =
|
|
1823
|
+
}() : dt, ye = _a(), ei = $a(), $ = Object.getPrototypeOf || (ei ? function(t) {
|
|
1824
1824
|
return t.__proto__;
|
|
1825
|
-
} : null), me = {}, ti = typeof Uint8Array > "u" ||
|
|
1825
|
+
} : null), me = {}, ti = typeof Uint8Array > "u" || !$ ? E : $(Uint8Array), fe = {
|
|
1826
1826
|
__proto__: null,
|
|
1827
1827
|
"%AggregateError%": typeof AggregateError > "u" ? E : AggregateError,
|
|
1828
1828
|
"%Array%": Array,
|
|
1829
1829
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? E : ArrayBuffer,
|
|
1830
|
-
"%ArrayIteratorPrototype%": ye &&
|
|
1830
|
+
"%ArrayIteratorPrototype%": ye && $ ? $([][Symbol.iterator]()) : E,
|
|
1831
1831
|
"%AsyncFromSyncIteratorPrototype%": E,
|
|
1832
1832
|
"%AsyncFunction%": me,
|
|
1833
1833
|
"%AsyncGenerator%": me,
|
|
@@ -1858,10 +1858,10 @@ var dt = function() {
|
|
|
1858
1858
|
"%Int32Array%": typeof Int32Array > "u" ? E : Int32Array,
|
|
1859
1859
|
"%isFinite%": isFinite,
|
|
1860
1860
|
"%isNaN%": isNaN,
|
|
1861
|
-
"%IteratorPrototype%": ye &&
|
|
1861
|
+
"%IteratorPrototype%": ye && $ ? $($([][Symbol.iterator]())) : E,
|
|
1862
1862
|
"%JSON%": typeof JSON == "object" ? JSON : E,
|
|
1863
1863
|
"%Map%": typeof Map > "u" ? E : Map,
|
|
1864
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !ye ||
|
|
1864
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ye || !$ ? E : $((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
1865
1865
|
"%Math%": Math,
|
|
1866
1866
|
"%Number%": Number,
|
|
1867
1867
|
"%Object%": Object,
|
|
@@ -1874,10 +1874,10 @@ var dt = function() {
|
|
|
1874
1874
|
"%Reflect%": typeof Reflect > "u" ? E : Reflect,
|
|
1875
1875
|
"%RegExp%": RegExp,
|
|
1876
1876
|
"%Set%": typeof Set > "u" ? E : Set,
|
|
1877
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !ye ||
|
|
1877
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ye || !$ ? E : $((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
1878
1878
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? E : SharedArrayBuffer,
|
|
1879
1879
|
"%String%": String,
|
|
1880
|
-
"%StringIteratorPrototype%": ye &&
|
|
1880
|
+
"%StringIteratorPrototype%": ye && $ ? $(""[Symbol.iterator]()) : E,
|
|
1881
1881
|
"%Symbol%": ye ? Symbol : E,
|
|
1882
1882
|
"%SyntaxError%": ve,
|
|
1883
1883
|
"%ThrowTypeError%": Za,
|
|
@@ -1892,11 +1892,11 @@ var dt = function() {
|
|
|
1892
1892
|
"%WeakRef%": typeof WeakRef > "u" ? E : WeakRef,
|
|
1893
1893
|
"%WeakSet%": typeof WeakSet > "u" ? E : WeakSet
|
|
1894
1894
|
};
|
|
1895
|
-
if (
|
|
1895
|
+
if ($)
|
|
1896
1896
|
try {
|
|
1897
1897
|
null.error;
|
|
1898
1898
|
} catch (t) {
|
|
1899
|
-
var ri =
|
|
1899
|
+
var ri = $($(t));
|
|
1900
1900
|
fe["%Error.prototype%"] = ri;
|
|
1901
1901
|
}
|
|
1902
1902
|
var ni = function t(e) {
|
|
@@ -1912,7 +1912,7 @@ var ni = function t(e) {
|
|
|
1912
1912
|
r && (n = r.prototype);
|
|
1913
1913
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
1914
1914
|
var o = t("%AsyncGenerator%");
|
|
1915
|
-
o &&
|
|
1915
|
+
o && $ && (n = $(o.prototype));
|
|
1916
1916
|
}
|
|
1917
1917
|
return fe[e] = n, n;
|
|
1918
1918
|
}, gr = {
|
|
@@ -1968,7 +1968,7 @@ var ni = function t(e) {
|
|
|
1968
1968
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1969
1969
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1970
1970
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1971
|
-
},
|
|
1971
|
+
}, Ie = zt, Je = Ga, oi = Ie.call(Function.call, Array.prototype.concat), ai = Ie.call(Function.apply, Array.prototype.splice), vr = Ie.call(Function.call, String.prototype.replace), Ve = Ie.call(Function.call, String.prototype.slice), ii = Ie.call(Function.call, RegExp.prototype.exec), si = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, li = /\\(\\)?/g, ci = function(e) {
|
|
1972
1972
|
var n = Ve(e, 0, 1), r = Ve(e, -1);
|
|
1973
1973
|
if (n === "%" && r !== "%")
|
|
1974
1974
|
throw new ve("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2041,7 +2041,7 @@ if (ze)
|
|
|
2041
2041
|
} catch {
|
|
2042
2042
|
ze = null;
|
|
2043
2043
|
}
|
|
2044
|
-
var dn = ze, wr = Ht(), pi = un, he =
|
|
2044
|
+
var dn = ze, wr = Ht(), pi = un, he = _e, Sr = dn, di = function(e, n, r) {
|
|
2045
2045
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
2046
2046
|
throw new he("`obj` must be an object or a function`");
|
|
2047
2047
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -2078,7 +2078,7 @@ yn.hasArrayLengthDefineBug = function() {
|
|
|
2078
2078
|
return !0;
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
|
-
var yi = yn, hi = Ae, Er = di, mi = yi(), Ar = dn, Or =
|
|
2081
|
+
var yi = yn, hi = Ae, Er = di, mi = yi(), Ar = dn, Or = _e, gi = hi("%Math.floor%"), vi = function(e, n) {
|
|
2082
2082
|
if (typeof e != "function")
|
|
2083
2083
|
throw new Or("`fn` is not a function");
|
|
2084
2084
|
if (typeof n != "number" || n < 0 || n > 4294967295 || gi(n) !== n)
|
|
@@ -2103,7 +2103,7 @@ var yi = yn, hi = Ae, Er = di, mi = yi(), Ar = dn, Or = Ie, gi = hi("%Math.floor
|
|
|
2103
2103
|
)), e;
|
|
2104
2104
|
};
|
|
2105
2105
|
(function(t) {
|
|
2106
|
-
var e = zt, n = Ae, r = vi, o =
|
|
2106
|
+
var e = zt, n = Ae, r = vi, o = _e, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = Ht(), l = n("%Math.max%");
|
|
2107
2107
|
t.exports = function(d) {
|
|
2108
2108
|
if (typeof d != "function")
|
|
2109
2109
|
throw new o("a function is required");
|
|
@@ -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, Rr = 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, Pr = Kt && Set.prototype.forEach, Ri = typeof WeakMap == "function" && WeakMap.prototype, Te = Ri ? WeakMap.prototype.has : null, Pi = typeof WeakSet == "function" && WeakSet.prototype, xe = Pi ? WeakSet.prototype.has : null, Ti = typeof WeakRef == "function" && WeakRef.prototype, Tr = 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, ne = String.prototype.replace, Di = String.prototype.toUpperCase, xr = String.prototype.toLowerCase, gn = RegExp.prototype.test, Cr = Array.prototype.concat, Y = Array.prototype.join,
|
|
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, Rr = 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, Pr = Kt && Set.prototype.forEach, Ri = typeof WeakMap == "function" && WeakMap.prototype, Te = Ri ? WeakMap.prototype.has : null, Pi = typeof WeakSet == "function" && WeakSet.prototype, xe = Pi ? WeakSet.prototype.has : null, Ti = typeof WeakRef == "function" && WeakRef.prototype, Tr = 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, ne = String.prototype.replace, Di = String.prototype.toUpperCase, xr = String.prototype.toLowerCase, gn = RegExp.prototype.test, Cr = Array.prototype.concat, Y = Array.prototype.join, _i = Array.prototype.slice, Nr = 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, be = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === be || !0) ? Symbol.toStringTag : null, vn = Object.prototype.propertyIsEnumerable, Fr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2131
2131
|
return t.__proto__;
|
|
2132
2132
|
} : null);
|
|
2133
2133
|
function Dr(t, e) {
|
|
@@ -2143,7 +2143,7 @@ function Dr(t, e) {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
return ne.call(e, n, "$&_");
|
|
2145
2145
|
}
|
|
2146
|
-
var
|
|
2146
|
+
var _t = Oi, _r = _t.custom, Ir = wn(_r) ? _r : null, Ii = function t(e, n, r, o) {
|
|
2147
2147
|
var a = n || {};
|
|
2148
2148
|
if (re(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
|
|
2149
2149
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -2177,14 +2177,14 @@ var It = Oi, Ir = It.custom, $r = wn(Ir) ? Ir : null, $i = function t(e, n, r, o
|
|
|
2177
2177
|
}
|
|
2178
2178
|
var c = typeof a.depth > "u" ? 5 : a.depth;
|
|
2179
2179
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
2180
|
-
return
|
|
2180
|
+
return It(e) ? "[Array]" : "[Object]";
|
|
2181
2181
|
var p = Yi(a, r);
|
|
2182
2182
|
if (typeof o > "u")
|
|
2183
2183
|
o = [];
|
|
2184
2184
|
else if (Sn(o, e) >= 0)
|
|
2185
2185
|
return "[Circular]";
|
|
2186
2186
|
function d(P, F, b) {
|
|
2187
|
-
if (F && (o =
|
|
2187
|
+
if (F && (o = _i.call(o), o.push(F)), b) {
|
|
2188
2188
|
var k = {
|
|
2189
2189
|
depth: a.depth
|
|
2190
2190
|
};
|
|
@@ -2192,7 +2192,7 @@ var It = Oi, Ir = It.custom, $r = wn(Ir) ? Ir : null, $i = function t(e, n, r, o
|
|
|
2192
2192
|
}
|
|
2193
2193
|
return t(P, a, r + 1, o);
|
|
2194
2194
|
}
|
|
2195
|
-
if (typeof e == "function" &&
|
|
2195
|
+
if (typeof e == "function" && !$r(e)) {
|
|
2196
2196
|
var g = zi(e), y = Le(e, d);
|
|
2197
2197
|
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + Y.call(y, ", ") + " }" : "");
|
|
2198
2198
|
}
|
|
@@ -2202,22 +2202,22 @@ var It = Oi, Ir = It.custom, $r = wn(Ir) ? Ir : null, $i = function t(e, n, r, o
|
|
|
2202
2202
|
}
|
|
2203
2203
|
if (Vi(e)) {
|
|
2204
2204
|
for (var h = "<" + xr.call(String(e.nodeName)), O = e.attributes || [], R = 0; R < O.length; R++)
|
|
2205
|
-
h += " " + O[R].name + "=" + bn(
|
|
2205
|
+
h += " " + O[R].name + "=" + bn($i(O[R].value), "double", a);
|
|
2206
2206
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + xr.call(String(e.nodeName)) + ">", h;
|
|
2207
2207
|
}
|
|
2208
|
-
if (
|
|
2208
|
+
if (It(e)) {
|
|
2209
2209
|
if (e.length === 0)
|
|
2210
2210
|
return "[]";
|
|
2211
2211
|
var v = Le(e, d);
|
|
2212
|
-
return p && !Xi(v) ? "[" +
|
|
2212
|
+
return p && !Xi(v) ? "[" + $t(v, p) + "]" : "[ " + Y.call(v, ", ") + " ]";
|
|
2213
2213
|
}
|
|
2214
2214
|
if (Li(e)) {
|
|
2215
2215
|
var D = Le(e, d);
|
|
2216
2216
|
return !("cause" in Error.prototype) && "cause" in e && !vn.call(e, "cause") ? "{ [" + String(e) + "] " + Y.call(Cr.call("[cause]: " + d(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Y.call(D, ", ") + " }";
|
|
2217
2217
|
}
|
|
2218
2218
|
if (typeof e == "object" && i) {
|
|
2219
|
-
if (
|
|
2220
|
-
return
|
|
2219
|
+
if (Ir && typeof e[Ir] == "function" && _t)
|
|
2220
|
+
return _t(e, { depth: c - r });
|
|
2221
2221
|
if (i !== "symbol" && typeof e.inspect == "function")
|
|
2222
2222
|
return e.inspect();
|
|
2223
2223
|
}
|
|
@@ -2251,9 +2251,9 @@ var It = Oi, Ir = It.custom, $r = wn(Ir) ? Ir : null, $i = function t(e, n, r, o
|
|
|
2251
2251
|
return "{ [object Window] }";
|
|
2252
2252
|
if (typeof globalThis < "u" && e === globalThis || typeof yr < "u" && e === yr)
|
|
2253
2253
|
return "{ [object globalThis] }";
|
|
2254
|
-
if (!Bi(e) &&
|
|
2254
|
+
if (!Bi(e) && !$r(e)) {
|
|
2255
2255
|
var L = Le(e, d), K = Fr ? Fr(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(oe(e), 8, -1) : J ? "Object" : "", A = K || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = A + (S || J ? "[" + Y.call(Cr.call([], S || [], J || []), ": ") + "] " : "");
|
|
2256
|
-
return L.length === 0 ? x + "{}" : p ? x + "{" +
|
|
2256
|
+
return L.length === 0 ? x + "{}" : p ? x + "{" + $t(L, p) + "}" : x + "{ " + Y.call(L, ", ") + " }";
|
|
2257
2257
|
}
|
|
2258
2258
|
return String(e);
|
|
2259
2259
|
};
|
|
@@ -2261,16 +2261,16 @@ function bn(t, e, n) {
|
|
|
2261
2261
|
var r = (n.quoteStyle || e) === "double" ? '"' : "'";
|
|
2262
2262
|
return r + t + r;
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2264
|
+
function $i(t) {
|
|
2265
2265
|
return ne.call(String(t), /"/g, """);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function It(t) {
|
|
2268
2268
|
return oe(t) === "[object Array]" && (!U || !(typeof t == "object" && U in t));
|
|
2269
2269
|
}
|
|
2270
2270
|
function Bi(t) {
|
|
2271
2271
|
return oe(t) === "[object Date]" && (!U || !(typeof t == "object" && U in t));
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function $r(t) {
|
|
2274
2274
|
return oe(t) === "[object RegExp]" && (!U || !(typeof t == "object" && U in t));
|
|
2275
2275
|
}
|
|
2276
2276
|
function Li(t) {
|
|
@@ -2427,7 +2427,7 @@ function vt(t) {
|
|
|
2427
2427
|
return t + " { ? }";
|
|
2428
2428
|
}
|
|
2429
2429
|
function Br(t, e, n, r) {
|
|
2430
|
-
var o = r ?
|
|
2430
|
+
var o = r ? $t(n, r) : Y.call(n, ", ");
|
|
2431
2431
|
return t + " (" + e + ") {" + o + "}";
|
|
2432
2432
|
}
|
|
2433
2433
|
function Xi(t) {
|
|
@@ -2450,7 +2450,7 @@ function Yi(t, e) {
|
|
|
2450
2450
|
prev: Y.call(Array(e + 1), n)
|
|
2451
2451
|
};
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function $t(t, e) {
|
|
2454
2454
|
if (t.length === 0)
|
|
2455
2455
|
return "";
|
|
2456
2456
|
var n = `
|
|
@@ -2459,7 +2459,7 @@ function _t(t, e) {
|
|
|
2459
2459
|
` + e.prev;
|
|
2460
2460
|
}
|
|
2461
2461
|
function Le(t, e) {
|
|
2462
|
-
var n =
|
|
2462
|
+
var n = It(t), r = [];
|
|
2463
2463
|
if (n) {
|
|
2464
2464
|
r.length = t.length;
|
|
2465
2465
|
for (var o = 0; o < t.length; o++)
|
|
@@ -2478,7 +2478,7 @@ function Le(t, e) {
|
|
|
2478
2478
|
vn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2479
2479
|
return r;
|
|
2480
2480
|
}
|
|
2481
|
-
var An = Ae, Oe = Si, Zi =
|
|
2481
|
+
var An = Ae, Oe = Si, Zi = Ii, es = _e, Ue = An("%WeakMap%", !0), ke = An("%Map%", !0), ts = Oe("WeakMap.prototype.get", !0), rs = Oe("WeakMap.prototype.set", !0), ns = Oe("WeakMap.prototype.has", !0), os = Oe("Map.prototype.get", !0), as = Oe("Map.prototype.set", !0), is = Oe("Map.prototype.has", !0), Jt = function(t, e) {
|
|
2482
2482
|
for (var n = t, r; (r = n.next) !== null; n = r)
|
|
2483
2483
|
if (r.key === e)
|
|
2484
2484
|
return n.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -2675,7 +2675,7 @@ var An = Ae, Oe = Si, Zi = $i, es = Ie, Ue = An("%WeakMap%", !0), ke = An("%Map%
|
|
|
2675
2675
|
}
|
|
2676
2676
|
}, X = Array.isArray, Rs = Array.prototype.push, xn = function(t, e) {
|
|
2677
2677
|
Rs.apply(t, X(e) ? e : [e]);
|
|
2678
|
-
}, Ps = Date.prototype.toISOString, Lr = Ce.default,
|
|
2678
|
+
}, Ps = Date.prototype.toISOString, Lr = Ce.default, I = {
|
|
2679
2679
|
addQueryPrefix: !1,
|
|
2680
2680
|
allowDots: !1,
|
|
2681
2681
|
allowEmptyArrays: !1,
|
|
@@ -2712,13 +2712,13 @@ var An = Ae, Oe = Si, Zi = $i, es = Ie, Ue = An("%WeakMap%", !0), ke = An("%Map%
|
|
|
2712
2712
|
return q instanceof Date ? g(q) : q;
|
|
2713
2713
|
})), v === null) {
|
|
2714
2714
|
if (i)
|
|
2715
|
-
return l && !h ? l(n,
|
|
2715
|
+
return l && !h ? l(n, I.encoder, O, "key", y) : n;
|
|
2716
2716
|
v = "";
|
|
2717
2717
|
}
|
|
2718
2718
|
if (Ts(v) || He.isBuffer(v)) {
|
|
2719
2719
|
if (l) {
|
|
2720
|
-
var K = h ? n : l(n,
|
|
2721
|
-
return [m(K) + "=" + m(l(v,
|
|
2720
|
+
var K = h ? n : l(n, I.encoder, O, "key", y);
|
|
2721
|
+
return [m(K) + "=" + m(l(v, I.encoder, O, "value", y))];
|
|
2722
2722
|
}
|
|
2723
2723
|
return [m(n) + "=" + m(String(v))];
|
|
2724
2724
|
}
|
|
@@ -2768,14 +2768,14 @@ var An = Ae, Oe = Si, Zi = $i, es = Ie, Ue = An("%WeakMap%", !0), ke = An("%Map%
|
|
|
2768
2768
|
return J;
|
|
2769
2769
|
}, Cs = function(e) {
|
|
2770
2770
|
if (!e)
|
|
2771
|
-
return
|
|
2771
|
+
return I;
|
|
2772
2772
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
2773
2773
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
2774
2774
|
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
2775
2775
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
2776
2776
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
2777
2777
|
throw new TypeError("Encoder has to be a function.");
|
|
2778
|
-
var n = e.charset ||
|
|
2778
|
+
var n = e.charset || I.charset;
|
|
2779
2779
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
2780
2780
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2781
2781
|
var r = Ce.default;
|
|
@@ -2784,32 +2784,32 @@ var An = Ae, Oe = Si, Zi = $i, es = Ie, Ue = An("%WeakMap%", !0), ke = An("%Map%
|
|
|
2784
2784
|
throw new TypeError("Unknown format option provided.");
|
|
2785
2785
|
r = e.format;
|
|
2786
2786
|
}
|
|
2787
|
-
var o = Ce.formatters[r], a =
|
|
2787
|
+
var o = Ce.formatters[r], a = I.filter;
|
|
2788
2788
|
(typeof e.filter == "function" || X(e.filter)) && (a = e.filter);
|
|
2789
2789
|
var i;
|
|
2790
|
-
if (e.arrayFormat in Tn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i =
|
|
2790
|
+
if (e.arrayFormat in Tn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = I.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2791
2791
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2792
|
-
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 :
|
|
2792
|
+
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : I.allowDots : !!e.allowDots;
|
|
2793
2793
|
return {
|
|
2794
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
2794
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : I.addQueryPrefix,
|
|
2795
2795
|
allowDots: s,
|
|
2796
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
2796
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : I.allowEmptyArrays,
|
|
2797
2797
|
arrayFormat: i,
|
|
2798
2798
|
charset: n,
|
|
2799
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
2799
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : I.charsetSentinel,
|
|
2800
2800
|
commaRoundTrip: e.commaRoundTrip,
|
|
2801
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
2802
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
2803
|
-
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys :
|
|
2804
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
2805
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
2801
|
+
delimiter: typeof e.delimiter > "u" ? I.delimiter : e.delimiter,
|
|
2802
|
+
encode: typeof e.encode == "boolean" ? e.encode : I.encode,
|
|
2803
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : I.encodeDotInKeys,
|
|
2804
|
+
encoder: typeof e.encoder == "function" ? e.encoder : I.encoder,
|
|
2805
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : I.encodeValuesOnly,
|
|
2806
2806
|
filter: a,
|
|
2807
2807
|
format: r,
|
|
2808
2808
|
formatter: o,
|
|
2809
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
2810
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
2809
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : I.serializeDate,
|
|
2810
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : I.skipNulls,
|
|
2811
2811
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
2812
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
2812
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : I.strictNullHandling
|
|
2813
2813
|
};
|
|
2814
2814
|
}, Ns = function(t, e) {
|
|
2815
2815
|
var n = t, r = Cs(e), o, a;
|
|
@@ -2871,13 +2871,13 @@ var An = Ae, Oe = Si, Zi = $i, es = Ie, Ue = An("%WeakMap%", !0), ke = An("%Map%
|
|
|
2871
2871
|
});
|
|
2872
2872
|
}, Cn = function(t, e) {
|
|
2873
2873
|
return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
|
|
2874
|
-
},
|
|
2874
|
+
}, _s = "utf8=%26%2310003%3B", Is = "utf8=%E2%9C%93", $s = function(e, n) {
|
|
2875
2875
|
var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
2876
2876
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
2877
2877
|
var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(n.delimiter, a), s = -1, u, l = n.charset;
|
|
2878
2878
|
if (n.charsetSentinel)
|
|
2879
2879
|
for (u = 0; u < i.length; ++u)
|
|
2880
|
-
i[u].indexOf("utf8=") === 0 && (i[u] ===
|
|
2880
|
+
i[u].indexOf("utf8=") === 0 && (i[u] === Is ? l = "utf-8" : i[u] === _s && (l = "iso-8859-1"), s = u, u = i.length);
|
|
2881
2881
|
for (u = 0; u < i.length; ++u)
|
|
2882
2882
|
if (u !== s) {
|
|
2883
2883
|
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, g, y;
|
|
@@ -2966,7 +2966,7 @@ var An = Ae, Oe = Si, Zi = $i, es = Ie, Ue = An("%WeakMap%", !0), ke = An("%Map%
|
|
|
2966
2966
|
var n = Us(e);
|
|
2967
2967
|
if (t === "" || t === null || typeof t > "u")
|
|
2968
2968
|
return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2969
|
-
for (var r = typeof t == "string" ?
|
|
2969
|
+
for (var r = typeof t == "string" ? $s(t, n) : t, o = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
|
|
2970
2970
|
var s = a[i], u = Ls(s, r[s], n, typeof t == "string");
|
|
2971
2971
|
o = we.merge(o, u, n);
|
|
2972
2972
|
}
|
|
@@ -3049,20 +3049,21 @@ function Lt(t, e) {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
var Ks = Lt(Ws, { path: "/" });
|
|
3051
3051
|
const Gs = {
|
|
3052
|
-
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error" },
|
|
3053
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api Endpoint Not Found" },
|
|
3054
|
-
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error" },
|
|
3055
|
-
解析错误: { "zh-CN": "解析错误", en: "Parsing Error" },
|
|
3056
|
-
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error" },
|
|
3052
|
+
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3053
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api Endpoint Not Found", _appCode: "framework" },
|
|
3054
|
+
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3055
|
+
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3056
|
+
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3057
3057
|
"网络异常,请检查您的网络情况": {
|
|
3058
3058
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3059
|
-
en: "Network Error, Please Check Your Network Status"
|
|
3059
|
+
en: "Network Error, Please Check Your Network Status",
|
|
3060
|
+
_appCode: "framework"
|
|
3060
3061
|
}
|
|
3061
3062
|
};
|
|
3062
3063
|
Bn(Gs);
|
|
3063
3064
|
Ye.extend(zn);
|
|
3064
3065
|
Ye.extend(Hn);
|
|
3065
|
-
const Nn = We(), Fn = Nn.sso ?? !0, Dn = Nn.noRedireLogin ?? !1,
|
|
3066
|
+
const Nn = We(), Fn = Nn.sso ?? !0, Dn = Nn.noRedireLogin ?? !1, _n = () => {
|
|
3066
3067
|
if (Dn) return;
|
|
3067
3068
|
const t = "/login";
|
|
3068
3069
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
@@ -3075,7 +3076,7 @@ const Nn = We(), Fn = Nn.sso ?? !0, Dn = Nn.noRedireLogin ?? !1, In = () => {
|
|
|
3075
3076
|
const a = { 400: C("参数校验错误"), 404: C("接口地址未找到"), 500: C("服务器内部错误") };
|
|
3076
3077
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3077
3078
|
if (!(kn("code") || "") && !Dn && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3078
|
-
Fn ? Mn({ ...jn, redirect_uri: qn }) :
|
|
3079
|
+
Fn ? Mn({ ...jn, redirect_uri: qn }) : _n(), o = i;
|
|
3079
3080
|
else {
|
|
3080
3081
|
if (t.response) {
|
|
3081
3082
|
if (i instanceof Blob && (i = await new Promise((g) => {
|
|
@@ -3098,7 +3099,7 @@ const Nn = We(), Fn = Nn.sso ?? !0, Dn = Nn.noRedireLogin ?? !1, In = () => {
|
|
|
3098
3099
|
}
|
|
3099
3100
|
return { ...o, code: n, msg: r, error: t };
|
|
3100
3101
|
}, Z = (t, e) => {
|
|
3101
|
-
const n =
|
|
3102
|
+
const n = _.create();
|
|
3102
3103
|
return Ln(n, async (r) => {
|
|
3103
3104
|
const o = We();
|
|
3104
3105
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
@@ -3107,7 +3108,7 @@ const Nn = We(), Fn = Nn.sso ?? !0, Dn = Nn.noRedireLogin ?? !1, In = () => {
|
|
|
3107
3108
|
const c = new URL(location.href).searchParams;
|
|
3108
3109
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3109
3110
|
}
|
|
3110
|
-
Fn ? l || (l = await Un(r)) : (l || (l = Gn()), l ||
|
|
3111
|
+
Fn ? l || (l = await Un(r)) : (l || (l = Gn()), l || _n()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3111
3112
|
}
|
|
3112
3113
|
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Hs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Js), r.onError || (r.onError = Vs), (r.csrf ?? !1) && (r.headers["csrf-token"] = Ks.get("csrf-token"));
|
|
3113
3114
|
const s = r.params || {};
|
|
@@ -3159,30 +3160,30 @@ const Ys = Qt.get("token"), Zs = Qt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3159
3160
|
let M = k.data, j = null, { autoContentType: ae, bucketName: q, importFileName: de } = x;
|
|
3160
3161
|
const ot = b ? el : Zs;
|
|
3161
3162
|
if (b) {
|
|
3162
|
-
let
|
|
3163
|
+
let $e = [];
|
|
3163
3164
|
await A.forEach(async (Be) => {
|
|
3164
3165
|
let it = await O(Be);
|
|
3165
|
-
|
|
3166
|
+
$e.push(it);
|
|
3166
3167
|
}), j = new FormData(), j.append("accessKeyId", M.accessKeyId), j.append("secretAccessKey", M.secretAccessKey), j.append("sessionToken", M.sessionToken), j.append("bucketName", q), A.forEach((Be, it) => {
|
|
3167
|
-
j.append("file",
|
|
3168
|
+
j.append("file", $e[it]);
|
|
3168
3169
|
}), de.forEach((Be) => {
|
|
3169
3170
|
j.append("filePaths", Be);
|
|
3170
3171
|
});
|
|
3171
3172
|
} else {
|
|
3172
|
-
const
|
|
3173
|
+
const $e = await O(A);
|
|
3173
3174
|
j = {
|
|
3174
3175
|
accessKeyId: M.accessKeyId,
|
|
3175
3176
|
secretAccessKey: M.secretAccessKey,
|
|
3176
3177
|
sessionToken: M.sessionToken,
|
|
3177
|
-
file:
|
|
3178
|
+
file: $e,
|
|
3178
3179
|
bucketName: q,
|
|
3179
3180
|
filePath: de,
|
|
3180
3181
|
autoContentType: ae
|
|
3181
3182
|
};
|
|
3182
3183
|
}
|
|
3183
|
-
const [$n
|
|
3184
|
-
if (
|
|
3185
|
-
const ie = await nl(
|
|
3184
|
+
const [In, $n] = await ot(j).run();
|
|
3185
|
+
if (In) return t.value = !1;
|
|
3186
|
+
const ie = await nl($n.data);
|
|
3186
3187
|
if ((ie == null ? void 0 : ie.statusCode) != 200) {
|
|
3187
3188
|
t.value = !1, (Xt = window.DasMessage) == null || Xt.error({
|
|
3188
3189
|
message: (ie == null ? void 0 : ie.errorMsg) || C("上传失败"),
|
|
Binary file
|