@das-fed/utils 7.0.7-hot.49 → 7.0.7-hot.50
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 +949 -967
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +800 -782
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/file/index.js +902 -888
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/index.js +972 -958
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +782 -800
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +782 -800
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +800 -782
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +782 -800
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +781 -799
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +199 -200
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +26 -27
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { encryption as
|
|
1
|
+
import { unref as qt, getCurrentScope as Mt, onScopeDispose as $t, ref as re, watch as Ce } from "vue";
|
|
2
|
+
import { encryption as Ht } from "@das-fed/utils/atob";
|
|
3
3
|
import { getConfig as V } from "@das-fed/utils/config";
|
|
4
|
-
import { getAccessToken as H, removeAccessToken as
|
|
4
|
+
import { getAccessToken as H, removeAccessToken as zt, setAccessToken as Jt, getAccessTokenInfo as de } from "@das-fed/utils/token-tools";
|
|
5
5
|
import { appendQueryParams as xe } from "@das-fed/utils/common-tools";
|
|
6
|
-
import { removeProcessEngineToken as
|
|
6
|
+
import { removeProcessEngineToken as Vt, setProcessEngineToken as Wt } from "@das-fed/utils/process-engine-info";
|
|
7
7
|
import { setPersonalInfo as at } from "@das-fed/utils/common-info/set-personal-info";
|
|
8
8
|
function ct(e, t) {
|
|
9
9
|
return function() {
|
|
10
10
|
return e.apply(t, arguments);
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
const { toString:
|
|
14
|
-
const n =
|
|
13
|
+
const { toString: Kt } = Object.prototype, { getPrototypeOf: Pe } = Object, { iterator: ie, toStringTag: ut } = Symbol, ae = /* @__PURE__ */ ((e) => (t) => {
|
|
14
|
+
const n = Kt.call(t);
|
|
15
15
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
16
16
|
})(/* @__PURE__ */ Object.create(null)), k = (e) => (e = e.toLowerCase(), (t) => ae(t) === e), ce = (e) => (t) => typeof t === e, { isArray: q } = Array, z = ce("undefined");
|
|
17
17
|
function W(e) {
|
|
18
18
|
return e !== null && !z(e) && e.constructor !== null && !z(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
19
19
|
}
|
|
20
20
|
const lt = k("ArrayBuffer");
|
|
21
|
-
function
|
|
21
|
+
function Qt(e) {
|
|
22
22
|
let t;
|
|
23
23
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && lt(e.buffer), t;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const Xt = ce("string"), A = ce("function"), ft = ce("number"), K = (e) => e !== null && typeof e == "object", Gt = (e) => e === !0 || e === !1, ee = (e) => {
|
|
26
26
|
if (ae(e) !== "object")
|
|
27
27
|
return !1;
|
|
28
28
|
const t = Pe(e);
|
|
29
29
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(ie in e);
|
|
30
|
-
},
|
|
30
|
+
}, Zt = (e) => {
|
|
31
31
|
if (!K(e) || W(e))
|
|
32
32
|
return !1;
|
|
33
33
|
try {
|
|
@@ -35,11 +35,11 @@ const Gt = ce("string"), A = ce("function"), ft = ce("number"), K = (e) => e !==
|
|
|
35
35
|
} catch {
|
|
36
36
|
return !1;
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, Yt = k("Date"), en = k("File"), tn = k("Blob"), nn = k("FileList"), rn = (e) => K(e) && A(e.pipe), on = (e) => {
|
|
39
39
|
let t;
|
|
40
40
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = ae(e)) === "formdata" || // detect form-data instance
|
|
41
41
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
42
|
-
},
|
|
42
|
+
}, sn = k("URLSearchParams"), [an, cn, un, ln] = ["ReadableStream", "Request", "Response", "Headers"].map(k), fn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
43
43
|
function Q(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
44
44
|
if (e === null || typeof e > "u")
|
|
45
45
|
return;
|
|
@@ -77,13 +77,13 @@ function we() {
|
|
|
77
77
|
arguments[r] && Q(arguments[r], n);
|
|
78
78
|
return t;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const dn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
|
|
81
81
|
n && A(o) ? e[s] = ct(o, n) : e[s] = o;
|
|
82
|
-
}, { allOwnKeys: r }), e),
|
|
82
|
+
}, { allOwnKeys: r }), e), pn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), hn = (e, t, n, r) => {
|
|
83
83
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
84
84
|
value: t.prototype
|
|
85
85
|
}), n && Object.assign(e.prototype, n);
|
|
86
|
-
},
|
|
86
|
+
}, mn = (e, t, n, r) => {
|
|
87
87
|
let o, s, i;
|
|
88
88
|
const a = {};
|
|
89
89
|
if (t = t || {}, e == null) return t;
|
|
@@ -93,11 +93,11 @@ const pn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
|
|
|
93
93
|
e = n !== !1 && Pe(e);
|
|
94
94
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
95
95
|
return t;
|
|
96
|
-
},
|
|
96
|
+
}, yn = (e, t, n) => {
|
|
97
97
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
98
98
|
const r = e.indexOf(t, n);
|
|
99
99
|
return r !== -1 && r === n;
|
|
100
|
-
},
|
|
100
|
+
}, wn = (e) => {
|
|
101
101
|
if (!e) return null;
|
|
102
102
|
if (q(e)) return e;
|
|
103
103
|
let t = e.length;
|
|
@@ -106,31 +106,31 @@ const pn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
|
|
|
106
106
|
for (; t-- > 0; )
|
|
107
107
|
n[t] = e[t];
|
|
108
108
|
return n;
|
|
109
|
-
},
|
|
109
|
+
}, gn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Pe(Uint8Array)), bn = (e, t) => {
|
|
110
110
|
const r = (e && e[ie]).call(e);
|
|
111
111
|
let o;
|
|
112
112
|
for (; (o = r.next()) && !o.done; ) {
|
|
113
113
|
const s = o.value;
|
|
114
114
|
t.call(e, s[0], s[1]);
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, En = (e, t) => {
|
|
117
117
|
let n;
|
|
118
118
|
const r = [];
|
|
119
119
|
for (; (n = e.exec(t)) !== null; )
|
|
120
120
|
r.push(n);
|
|
121
121
|
return r;
|
|
122
|
-
},
|
|
122
|
+
}, Rn = k("HTMLFormElement"), Sn = (e) => e.toLowerCase().replace(
|
|
123
123
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
124
124
|
function(n, r, o) {
|
|
125
125
|
return r.toUpperCase() + o;
|
|
126
126
|
}
|
|
127
|
-
), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
127
|
+
), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Tn = k("RegExp"), ht = (e, t) => {
|
|
128
128
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
129
129
|
Q(n, (o, s) => {
|
|
130
130
|
let i;
|
|
131
131
|
(i = t(o, s, e)) !== !1 && (r[s] = i || o);
|
|
132
132
|
}), Object.defineProperties(e, r);
|
|
133
|
-
},
|
|
133
|
+
}, On = (e) => {
|
|
134
134
|
ht(e, (t, n) => {
|
|
135
135
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
136
136
|
return !1;
|
|
@@ -145,19 +145,19 @@ const pn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
},
|
|
148
|
+
}, An = (e, t) => {
|
|
149
149
|
const n = {}, r = (o) => {
|
|
150
150
|
o.forEach((s) => {
|
|
151
151
|
n[s] = !0;
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
return q(e) ? r(e) : r(String(e).split(t)), n;
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
function
|
|
155
|
+
}, _n = () => {
|
|
156
|
+
}, kn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
157
|
+
function Cn(e) {
|
|
158
158
|
return !!(e && A(e.append) && e[ut] === "FormData" && e[ie]);
|
|
159
159
|
}
|
|
160
|
-
const
|
|
160
|
+
const xn = (e) => {
|
|
161
161
|
const t = new Array(10), n = (r, o) => {
|
|
162
162
|
if (K(r)) {
|
|
163
163
|
if (t.indexOf(r) >= 0)
|
|
@@ -176,72 +176,72 @@ const Pn = (e) => {
|
|
|
176
176
|
return r;
|
|
177
177
|
};
|
|
178
178
|
return n(e, 0);
|
|
179
|
-
},
|
|
179
|
+
}, Pn = k("AsyncFunction"), Un = (e) => e && (K(e) || A(e)) && A(e.then) && A(e.catch), mt = ((e, t) => e ? setImmediate : t ? ((n, r) => (F.addEventListener("message", ({ source: o, data: s }) => {
|
|
180
180
|
o === F && s === n && r.length && r.shift()();
|
|
181
181
|
}, !1), (o) => {
|
|
182
182
|
r.push(o), F.postMessage(n, "*");
|
|
183
183
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
184
184
|
typeof setImmediate == "function",
|
|
185
185
|
A(F.postMessage)
|
|
186
|
-
),
|
|
186
|
+
), Ln = typeof queueMicrotask < "u" ? queueMicrotask.bind(F) : typeof process < "u" && process.nextTick || mt, Nn = (e) => e != null && A(e[ie]), c = {
|
|
187
187
|
isArray: q,
|
|
188
188
|
isArrayBuffer: lt,
|
|
189
189
|
isBuffer: W,
|
|
190
|
-
isFormData:
|
|
191
|
-
isArrayBufferView:
|
|
192
|
-
isString:
|
|
190
|
+
isFormData: on,
|
|
191
|
+
isArrayBufferView: Qt,
|
|
192
|
+
isString: Xt,
|
|
193
193
|
isNumber: ft,
|
|
194
|
-
isBoolean:
|
|
194
|
+
isBoolean: Gt,
|
|
195
195
|
isObject: K,
|
|
196
196
|
isPlainObject: ee,
|
|
197
|
-
isEmptyObject:
|
|
198
|
-
isReadableStream:
|
|
199
|
-
isRequest:
|
|
200
|
-
isResponse:
|
|
201
|
-
isHeaders:
|
|
197
|
+
isEmptyObject: Zt,
|
|
198
|
+
isReadableStream: an,
|
|
199
|
+
isRequest: cn,
|
|
200
|
+
isResponse: un,
|
|
201
|
+
isHeaders: ln,
|
|
202
202
|
isUndefined: z,
|
|
203
|
-
isDate:
|
|
204
|
-
isFile:
|
|
205
|
-
isBlob:
|
|
206
|
-
isRegExp:
|
|
203
|
+
isDate: Yt,
|
|
204
|
+
isFile: en,
|
|
205
|
+
isBlob: tn,
|
|
206
|
+
isRegExp: Tn,
|
|
207
207
|
isFunction: A,
|
|
208
|
-
isStream:
|
|
209
|
-
isURLSearchParams:
|
|
210
|
-
isTypedArray:
|
|
211
|
-
isFileList:
|
|
208
|
+
isStream: rn,
|
|
209
|
+
isURLSearchParams: sn,
|
|
210
|
+
isTypedArray: gn,
|
|
211
|
+
isFileList: nn,
|
|
212
212
|
forEach: Q,
|
|
213
213
|
merge: we,
|
|
214
|
-
extend:
|
|
215
|
-
trim:
|
|
216
|
-
stripBOM:
|
|
217
|
-
inherits:
|
|
218
|
-
toFlatObject:
|
|
214
|
+
extend: dn,
|
|
215
|
+
trim: fn,
|
|
216
|
+
stripBOM: pn,
|
|
217
|
+
inherits: hn,
|
|
218
|
+
toFlatObject: mn,
|
|
219
219
|
kindOf: ae,
|
|
220
220
|
kindOfTest: k,
|
|
221
|
-
endsWith:
|
|
222
|
-
toArray:
|
|
223
|
-
forEachEntry:
|
|
224
|
-
matchAll:
|
|
225
|
-
isHTMLForm:
|
|
221
|
+
endsWith: yn,
|
|
222
|
+
toArray: wn,
|
|
223
|
+
forEachEntry: bn,
|
|
224
|
+
matchAll: En,
|
|
225
|
+
isHTMLForm: Rn,
|
|
226
226
|
hasOwnProperty: Fe,
|
|
227
227
|
hasOwnProp: Fe,
|
|
228
228
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
229
229
|
reduceDescriptors: ht,
|
|
230
|
-
freezeMethods:
|
|
231
|
-
toObjectSet:
|
|
232
|
-
toCamelCase:
|
|
233
|
-
noop:
|
|
234
|
-
toFiniteNumber:
|
|
230
|
+
freezeMethods: On,
|
|
231
|
+
toObjectSet: An,
|
|
232
|
+
toCamelCase: Sn,
|
|
233
|
+
noop: _n,
|
|
234
|
+
toFiniteNumber: kn,
|
|
235
235
|
findKey: dt,
|
|
236
236
|
global: F,
|
|
237
237
|
isContextDefined: pt,
|
|
238
|
-
isSpecCompliantForm:
|
|
239
|
-
toJSONObject:
|
|
240
|
-
isAsyncFn:
|
|
241
|
-
isThenable:
|
|
238
|
+
isSpecCompliantForm: Cn,
|
|
239
|
+
toJSONObject: xn,
|
|
240
|
+
isAsyncFn: Pn,
|
|
241
|
+
isThenable: Un,
|
|
242
242
|
setImmediate: mt,
|
|
243
|
-
asap:
|
|
244
|
-
isIterable:
|
|
243
|
+
asap: Ln,
|
|
244
|
+
isIterable: Nn
|
|
245
245
|
};
|
|
246
246
|
function w(e, t, n, r, o) {
|
|
247
247
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), 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 = (e, t, n, r, o, s) => {
|
|
|
293
293
|
return f !== Error.prototype;
|
|
294
294
|
}, (a) => a !== "isAxiosError"), w.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
295
295
|
};
|
|
296
|
-
const
|
|
296
|
+
const In = null;
|
|
297
297
|
function ge(e) {
|
|
298
298
|
return c.isPlainObject(e) || c.isArray(e);
|
|
299
299
|
}
|
|
@@ -305,10 +305,10 @@ function ve(e, t, n) {
|
|
|
305
305
|
return o = gt(o), !n && s ? "[" + o + "]" : o;
|
|
306
306
|
}).join(n ? "." : "") : t;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Fn(e) {
|
|
309
309
|
return c.isArray(e) && !e.some(ge);
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const vn = c.toFlatObject(c, {}, null, function(t) {
|
|
312
312
|
return /^is[A-Z]/.test(t);
|
|
313
313
|
});
|
|
314
314
|
function ue(e, t, n) {
|
|
@@ -339,7 +339,7 @@ function ue(e, t, n) {
|
|
|
339
339
|
if (p && !h && typeof p == "object") {
|
|
340
340
|
if (c.endsWith(y, "{}"))
|
|
341
341
|
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
342
|
-
else if (c.isArray(p) &&
|
|
342
|
+
else if (c.isArray(p) && Fn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (E = c.toArray(p)))
|
|
343
343
|
return y = gt(y), E.forEach(function(S, x) {
|
|
344
344
|
!(c.isUndefined(S) || S === null) && t.append(
|
|
345
345
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -350,7 +350,7 @@ function ue(e, t, n) {
|
|
|
350
350
|
}
|
|
351
351
|
return ge(p) ? !0 : (t.append(ve(h, y, s), l(p)), !1);
|
|
352
352
|
}
|
|
353
|
-
const d = [], m = Object.assign(
|
|
353
|
+
const d = [], m = Object.assign(vn, {
|
|
354
354
|
defaultVisitor: u,
|
|
355
355
|
convertValue: l,
|
|
356
356
|
isVisitable: ge
|
|
@@ -403,13 +403,13 @@ bt.toString = function(t) {
|
|
|
403
403
|
return n(o[0]) + "=" + n(o[1]);
|
|
404
404
|
}, "").join("&");
|
|
405
405
|
};
|
|
406
|
-
function
|
|
406
|
+
function Dn(e) {
|
|
407
407
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
408
408
|
}
|
|
409
409
|
function Et(e, t, n) {
|
|
410
410
|
if (!t)
|
|
411
411
|
return e;
|
|
412
|
-
const r = n && n.encode ||
|
|
412
|
+
const r = n && n.encode || Dn;
|
|
413
413
|
c.isFunction(n) && (n = {
|
|
414
414
|
serialize: n
|
|
415
415
|
});
|
|
@@ -479,27 +479,27 @@ const Rt = {
|
|
|
479
479
|
silentJSONParsing: !0,
|
|
480
480
|
forcedJSONParsing: !0,
|
|
481
481
|
clarifyTimeoutError: !1
|
|
482
|
-
},
|
|
482
|
+
}, Bn = typeof URLSearchParams < "u" ? URLSearchParams : Ue, jn = typeof FormData < "u" ? FormData : null, qn = typeof Blob < "u" ? Blob : null, Mn = {
|
|
483
483
|
isBrowser: !0,
|
|
484
484
|
classes: {
|
|
485
|
-
URLSearchParams:
|
|
486
|
-
FormData:
|
|
487
|
-
Blob:
|
|
485
|
+
URLSearchParams: Bn,
|
|
486
|
+
FormData: jn,
|
|
487
|
+
Blob: qn
|
|
488
488
|
},
|
|
489
489
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
490
|
-
}, Le = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0,
|
|
491
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
490
|
+
}, Le = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, $n = Le && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), Hn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
491
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zn = Le && window.location.href || "http://localhost", Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
492
492
|
__proto__: null,
|
|
493
493
|
hasBrowserEnv: Le,
|
|
494
|
-
hasStandardBrowserEnv:
|
|
495
|
-
hasStandardBrowserWebWorkerEnv:
|
|
494
|
+
hasStandardBrowserEnv: $n,
|
|
495
|
+
hasStandardBrowserWebWorkerEnv: Hn,
|
|
496
496
|
navigator: be,
|
|
497
|
-
origin:
|
|
497
|
+
origin: zn
|
|
498
498
|
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
499
|
-
...
|
|
500
|
-
|
|
499
|
+
...Jn,
|
|
500
|
+
...Mn
|
|
501
501
|
};
|
|
502
|
-
function
|
|
502
|
+
function Vn(e, t) {
|
|
503
503
|
return ue(e, new T.classes.URLSearchParams(), {
|
|
504
504
|
visitor: function(n, r, o, s) {
|
|
505
505
|
return T.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
@@ -507,10 +507,10 @@ function Wn(e, t) {
|
|
|
507
507
|
...t
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Wn(e) {
|
|
511
511
|
return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Kn(e) {
|
|
514
514
|
const t = {}, n = Object.keys(e);
|
|
515
515
|
let r;
|
|
516
516
|
const o = n.length;
|
|
@@ -524,17 +524,17 @@ function St(e) {
|
|
|
524
524
|
let i = n[s++];
|
|
525
525
|
if (i === "__proto__") return !0;
|
|
526
526
|
const a = Number.isFinite(+i), f = s >= n.length;
|
|
527
|
-
return i = !i && c.isArray(o) ? o.length : i, f ? (c.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !c.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && c.isArray(o[i]) && (o[i] =
|
|
527
|
+
return i = !i && c.isArray(o) ? o.length : i, f ? (c.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !c.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && c.isArray(o[i]) && (o[i] = Kn(o[i])), !a);
|
|
528
528
|
}
|
|
529
529
|
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
530
530
|
const n = {};
|
|
531
531
|
return c.forEachEntry(e, (r, o) => {
|
|
532
|
-
t(
|
|
532
|
+
t(Wn(r), o, n, 0);
|
|
533
533
|
}), n;
|
|
534
534
|
}
|
|
535
535
|
return null;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Qn(e, t, n) {
|
|
538
538
|
if (c.isString(e))
|
|
539
539
|
try {
|
|
540
540
|
return (t || JSON.parse)(e), c.trim(e);
|
|
@@ -560,7 +560,7 @@ const X = {
|
|
|
560
560
|
let a;
|
|
561
561
|
if (s) {
|
|
562
562
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
563
|
-
return
|
|
563
|
+
return Vn(t, this.formSerializer).toString();
|
|
564
564
|
if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
565
565
|
const f = this.env && this.env.FormData;
|
|
566
566
|
return ue(
|
|
@@ -570,7 +570,7 @@ const X = {
|
|
|
570
570
|
);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
return s || o ? (n.setContentType("application/json", !1),
|
|
573
|
+
return s || o ? (n.setContentType("application/json", !1), Qn(t)) : t;
|
|
574
574
|
}],
|
|
575
575
|
transformResponse: [function(t) {
|
|
576
576
|
const n = this.transitional || X.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -613,7 +613,7 @@ const X = {
|
|
|
613
613
|
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
614
614
|
X.headers[e] = {};
|
|
615
615
|
});
|
|
616
|
-
const
|
|
616
|
+
const Xn = c.toObjectSet([
|
|
617
617
|
"age",
|
|
618
618
|
"authorization",
|
|
619
619
|
"content-length",
|
|
@@ -631,12 +631,12 @@ const Gn = c.toObjectSet([
|
|
|
631
631
|
"referer",
|
|
632
632
|
"retry-after",
|
|
633
633
|
"user-agent"
|
|
634
|
-
]),
|
|
634
|
+
]), Gn = (e) => {
|
|
635
635
|
const t = {};
|
|
636
636
|
let n, r, o;
|
|
637
637
|
return e && e.split(`
|
|
638
638
|
`).forEach(function(i) {
|
|
639
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] &&
|
|
639
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && Xn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
640
640
|
}), t;
|
|
641
641
|
}, je = Symbol("internals");
|
|
642
642
|
function $(e) {
|
|
@@ -645,14 +645,14 @@ function $(e) {
|
|
|
645
645
|
function te(e) {
|
|
646
646
|
return e === !1 || e == null ? e : c.isArray(e) ? e.map(te) : String(e);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Zn(e) {
|
|
649
649
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
650
650
|
let r;
|
|
651
651
|
for (; r = n.exec(e); )
|
|
652
652
|
t[r[1]] = r[2];
|
|
653
653
|
return t;
|
|
654
654
|
}
|
|
655
|
-
const
|
|
655
|
+
const Yn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
656
656
|
function pe(e, t, n, r, o) {
|
|
657
657
|
if (c.isFunction(r))
|
|
658
658
|
return r.call(this, t, n);
|
|
@@ -663,10 +663,10 @@ function pe(e, t, n, r, o) {
|
|
|
663
663
|
return r.test(t);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function er(e) {
|
|
667
667
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function tr(e, t) {
|
|
670
670
|
const n = c.toCamelCase(" " + t);
|
|
671
671
|
["get", "set", "has"].forEach((r) => {
|
|
672
672
|
Object.defineProperty(e, r + n, {
|
|
@@ -693,8 +693,8 @@ let _ = class {
|
|
|
693
693
|
const i = (a, f) => c.forEach(a, (l, u) => s(l, u, f));
|
|
694
694
|
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
695
695
|
i(t, n);
|
|
696
|
-
else if (c.isString(t) && (t = t.trim()) && !
|
|
697
|
-
i(
|
|
696
|
+
else if (c.isString(t) && (t = t.trim()) && !Yn(t))
|
|
697
|
+
i(Gn(t), n);
|
|
698
698
|
else if (c.isObject(t) && c.isIterable(t)) {
|
|
699
699
|
let a = {}, f, l;
|
|
700
700
|
for (const u of t) {
|
|
@@ -715,7 +715,7 @@ let _ = class {
|
|
|
715
715
|
if (!n)
|
|
716
716
|
return o;
|
|
717
717
|
if (n === !0)
|
|
718
|
-
return
|
|
718
|
+
return Zn(o);
|
|
719
719
|
if (c.isFunction(n))
|
|
720
720
|
return n.call(this, o, r);
|
|
721
721
|
if (c.isRegExp(n))
|
|
@@ -759,7 +759,7 @@ let _ = class {
|
|
|
759
759
|
n[i] = te(o), delete n[s];
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
|
-
const a = t ?
|
|
762
|
+
const a = t ? er(s) : String(s).trim();
|
|
763
763
|
a !== s && delete n[s], n[a] = te(o), r[a] = !0;
|
|
764
764
|
}), this;
|
|
765
765
|
}
|
|
@@ -798,7 +798,7 @@ let _ = class {
|
|
|
798
798
|
}).accessors, o = this.prototype;
|
|
799
799
|
function s(i) {
|
|
800
800
|
const a = $(i);
|
|
801
|
-
r[a] || (
|
|
801
|
+
r[a] || (tr(o, i), r[a] = !0);
|
|
802
802
|
}
|
|
803
803
|
return c.isArray(t) ? t.forEach(s) : s(t), this;
|
|
804
804
|
}
|
|
@@ -840,11 +840,11 @@ function Ot(e, t, n) {
|
|
|
840
840
|
n
|
|
841
841
|
));
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function nr(e) {
|
|
844
844
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
845
845
|
return t && t[1] || "";
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function rr(e, t) {
|
|
848
848
|
e = e || 10;
|
|
849
849
|
const n = new Array(e), r = new Array(e);
|
|
850
850
|
let o = 0, s = 0, i;
|
|
@@ -860,7 +860,7 @@ function or(e, t) {
|
|
|
860
860
|
return b ? Math.round(m * 1e3 / b) : void 0;
|
|
861
861
|
};
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function or(e, t) {
|
|
864
864
|
let n = 0, r = 1e3 / t, o, s;
|
|
865
865
|
const i = (l, u = Date.now()) => {
|
|
866
866
|
n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
|
|
@@ -874,8 +874,8 @@ function sr(e, t) {
|
|
|
874
874
|
}
|
|
875
875
|
const oe = (e, t, n = 3) => {
|
|
876
876
|
let r = 0;
|
|
877
|
-
const o =
|
|
878
|
-
return
|
|
877
|
+
const o = rr(50, 250);
|
|
878
|
+
return or((s) => {
|
|
879
879
|
const i = s.loaded, a = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= a;
|
|
880
880
|
r = i;
|
|
881
881
|
const d = {
|
|
@@ -898,10 +898,10 @@ const oe = (e, t, n = 3) => {
|
|
|
898
898
|
total: e,
|
|
899
899
|
loaded: r
|
|
900
900
|
}), t[1]];
|
|
901
|
-
}, Me = (e) => (...t) => c.asap(() => e(...t)),
|
|
901
|
+
}, Me = (e) => (...t) => c.asap(() => e(...t)), sr = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
902
902
|
new URL(T.origin),
|
|
903
903
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
904
|
-
) : () => !0,
|
|
904
|
+
) : () => !0, ir = T.hasStandardBrowserEnv ? (
|
|
905
905
|
// Standard browser envs support document.cookie
|
|
906
906
|
{
|
|
907
907
|
write(e, t, n, r, o, s) {
|
|
@@ -928,15 +928,15 @@ const oe = (e, t, n = 3) => {
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
);
|
|
931
|
-
function
|
|
931
|
+
function ar(e) {
|
|
932
932
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function cr(e, t) {
|
|
935
935
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
936
936
|
}
|
|
937
937
|
function At(e, t, n) {
|
|
938
|
-
let r = !
|
|
939
|
-
return e && (r || n == !1) ?
|
|
938
|
+
let r = !ar(t);
|
|
939
|
+
return e && (r || n == !1) ? cr(e, t) : t;
|
|
940
940
|
}
|
|
941
941
|
const $e = (e) => e instanceof _ ? { ...e } : e;
|
|
942
942
|
function B(e, t) {
|
|
@@ -1019,12 +1019,12 @@ const _t = (e) => {
|
|
|
1019
1019
|
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1023
|
-
const l = o && s &&
|
|
1022
|
+
if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && sr(t.url))) {
|
|
1023
|
+
const l = o && s && ir.read(s);
|
|
1024
1024
|
l && i.set(o, l);
|
|
1025
1025
|
}
|
|
1026
1026
|
return t;
|
|
1027
|
-
},
|
|
1027
|
+
}, ur = typeof XMLHttpRequest < "u", lr = ur && function(e) {
|
|
1028
1028
|
return new Promise(function(n, r) {
|
|
1029
1029
|
const o = _t(e);
|
|
1030
1030
|
let s = o.data;
|
|
@@ -1074,14 +1074,14 @@ const _t = (e) => {
|
|
|
1074
1074
|
}), c.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), a && a !== "json" && (h.responseType = o.responseType), l && ([m, p] = oe(l, !0), h.addEventListener("progress", m)), f && h.upload && ([d, b] = oe(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", b)), (o.cancelToken || o.signal) && (u = (S) => {
|
|
1075
1075
|
h && (r(!S || S.type ? new M(null, e, h) : S), h.abort(), h = null);
|
|
1076
1076
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
1077
|
-
const R =
|
|
1077
|
+
const R = nr(o.url);
|
|
1078
1078
|
if (R && T.protocols.indexOf(R) === -1) {
|
|
1079
1079
|
r(new w("Unsupported protocol " + R + ":", w.ERR_BAD_REQUEST, e));
|
|
1080
1080
|
return;
|
|
1081
1081
|
}
|
|
1082
1082
|
h.send(s || null);
|
|
1083
1083
|
});
|
|
1084
|
-
},
|
|
1084
|
+
}, fr = (e, t) => {
|
|
1085
1085
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1086
1086
|
if (t || n) {
|
|
1087
1087
|
let r = new AbortController(), o;
|
|
@@ -1104,7 +1104,7 @@ const _t = (e) => {
|
|
|
1104
1104
|
const { signal: f } = r;
|
|
1105
1105
|
return f.unsubscribe = () => c.asap(a), f;
|
|
1106
1106
|
}
|
|
1107
|
-
},
|
|
1107
|
+
}, dr = function* (e, t) {
|
|
1108
1108
|
let n = e.byteLength;
|
|
1109
1109
|
if (n < t) {
|
|
1110
1110
|
yield e;
|
|
@@ -1113,10 +1113,10 @@ const _t = (e) => {
|
|
|
1113
1113
|
let r = 0, o;
|
|
1114
1114
|
for (; r < n; )
|
|
1115
1115
|
o = r + t, yield e.slice(r, o), r = o;
|
|
1116
|
-
},
|
|
1117
|
-
for await (const n of
|
|
1118
|
-
yield*
|
|
1119
|
-
},
|
|
1116
|
+
}, pr = async function* (e, t) {
|
|
1117
|
+
for await (const n of hr(e))
|
|
1118
|
+
yield* dr(n, t);
|
|
1119
|
+
}, hr = async function* (e) {
|
|
1120
1120
|
if (e[Symbol.asyncIterator]) {
|
|
1121
1121
|
yield* e;
|
|
1122
1122
|
return;
|
|
@@ -1133,7 +1133,7 @@ const _t = (e) => {
|
|
|
1133
1133
|
await t.cancel();
|
|
1134
1134
|
}
|
|
1135
1135
|
}, He = (e, t, n, r) => {
|
|
1136
|
-
const o =
|
|
1136
|
+
const o = pr(e, t);
|
|
1137
1137
|
let s = 0, i, a = (f) => {
|
|
1138
1138
|
i || (i = !0, r && r(f));
|
|
1139
1139
|
};
|
|
@@ -1161,13 +1161,13 @@ const _t = (e) => {
|
|
|
1161
1161
|
}, {
|
|
1162
1162
|
highWaterMark: 2
|
|
1163
1163
|
});
|
|
1164
|
-
}, le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", kt = le && typeof ReadableStream == "function",
|
|
1164
|
+
}, le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", kt = le && typeof ReadableStream == "function", mr = le && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ct = (e, ...t) => {
|
|
1165
1165
|
try {
|
|
1166
1166
|
return !!e(...t);
|
|
1167
1167
|
} catch {
|
|
1168
1168
|
return !1;
|
|
1169
1169
|
}
|
|
1170
|
-
},
|
|
1170
|
+
}, yr = kt && Ct(() => {
|
|
1171
1171
|
let e = !1;
|
|
1172
1172
|
const t = new Request(T.origin, {
|
|
1173
1173
|
body: new ReadableStream(),
|
|
@@ -1187,7 +1187,7 @@ le && ((e) => {
|
|
|
1187
1187
|
});
|
|
1188
1188
|
});
|
|
1189
1189
|
})(new Response());
|
|
1190
|
-
const
|
|
1190
|
+
const wr = async (e) => {
|
|
1191
1191
|
if (e == null)
|
|
1192
1192
|
return 0;
|
|
1193
1193
|
if (c.isBlob(e))
|
|
@@ -1200,11 +1200,11 @@ const gr = async (e) => {
|
|
|
1200
1200
|
if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
|
|
1201
1201
|
return e.byteLength;
|
|
1202
1202
|
if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
|
|
1203
|
-
return (await
|
|
1204
|
-
},
|
|
1203
|
+
return (await mr(e)).byteLength;
|
|
1204
|
+
}, gr = async (e, t) => {
|
|
1205
1205
|
const n = c.toFiniteNumber(e.getContentLength());
|
|
1206
|
-
return n ??
|
|
1207
|
-
},
|
|
1206
|
+
return n ?? wr(t);
|
|
1207
|
+
}, br = le && (async (e) => {
|
|
1208
1208
|
let {
|
|
1209
1209
|
url: t,
|
|
1210
1210
|
method: n,
|
|
@@ -1220,13 +1220,13 @@ const gr = async (e) => {
|
|
|
1220
1220
|
fetchOptions: m
|
|
1221
1221
|
} = _t(e);
|
|
1222
1222
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1223
|
-
let b =
|
|
1223
|
+
let b = fr([o, s && s.toAbortSignal()], i), p;
|
|
1224
1224
|
const y = b && b.unsubscribe && (() => {
|
|
1225
1225
|
b.unsubscribe();
|
|
1226
1226
|
});
|
|
1227
1227
|
let h;
|
|
1228
1228
|
try {
|
|
1229
|
-
if (f &&
|
|
1229
|
+
if (f && yr && n !== "get" && n !== "head" && (h = await gr(u, r)) !== 0) {
|
|
1230
1230
|
let O = new Request(t, {
|
|
1231
1231
|
method: "POST",
|
|
1232
1232
|
body: r,
|
|
@@ -1290,9 +1290,9 @@ const gr = async (e) => {
|
|
|
1290
1290
|
) : w.from(E, E && E.code, e, p);
|
|
1291
1291
|
}
|
|
1292
1292
|
}), Re = {
|
|
1293
|
-
http:
|
|
1294
|
-
xhr:
|
|
1295
|
-
fetch:
|
|
1293
|
+
http: In,
|
|
1294
|
+
xhr: lr,
|
|
1295
|
+
fetch: br
|
|
1296
1296
|
};
|
|
1297
1297
|
c.forEach(Re, (e, t) => {
|
|
1298
1298
|
if (e) {
|
|
@@ -1303,7 +1303,7 @@ c.forEach(Re, (e, t) => {
|
|
|
1303
1303
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1304
1304
|
}
|
|
1305
1305
|
});
|
|
1306
|
-
const Je = (e) => `- ${e}`,
|
|
1306
|
+
const Je = (e) => `- ${e}`, Er = (e) => c.isFunction(e) || e === null || e === !1, xt = {
|
|
1307
1307
|
getAdapter: (e) => {
|
|
1308
1308
|
e = c.isArray(e) ? e : [e];
|
|
1309
1309
|
const { length: t } = e;
|
|
@@ -1312,7 +1312,7 @@ const Je = (e) => `- ${e}`, Rr = (e) => c.isFunction(e) || e === null || e === !
|
|
|
1312
1312
|
for (let s = 0; s < t; s++) {
|
|
1313
1313
|
n = e[s];
|
|
1314
1314
|
let i;
|
|
1315
|
-
if (r = n, !
|
|
1315
|
+
if (r = n, !Er(n) && (r = Re[(i = String(n)).toLowerCase()], r === void 0))
|
|
1316
1316
|
throw new w(`Unknown adapter '${i}'`);
|
|
1317
1317
|
if (r)
|
|
1318
1318
|
break;
|
|
@@ -1379,7 +1379,7 @@ fe.transitional = function(t, n, r) {
|
|
|
1379
1379
|
fe.spelling = function(t) {
|
|
1380
1380
|
return (n, r) => !0;
|
|
1381
1381
|
};
|
|
1382
|
-
function
|
|
1382
|
+
function Rr(e, t, n) {
|
|
1383
1383
|
if (typeof e != "object")
|
|
1384
1384
|
throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
|
|
1385
1385
|
const r = Object.keys(e);
|
|
@@ -1397,7 +1397,7 @@ function Sr(e, t, n) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
const ne = {
|
|
1400
|
-
assertOptions:
|
|
1400
|
+
assertOptions: Rr,
|
|
1401
1401
|
validators: fe
|
|
1402
1402
|
}, C = ne.validators;
|
|
1403
1403
|
let v = class {
|
|
@@ -1524,7 +1524,7 @@ c.forEach(["post", "put", "patch"], function(t) {
|
|
|
1524
1524
|
}
|
|
1525
1525
|
v.prototype[t] = n(), v.prototype[t + "Form"] = n(!0);
|
|
1526
1526
|
});
|
|
1527
|
-
let
|
|
1527
|
+
let Sr = class Ut {
|
|
1528
1528
|
constructor(t) {
|
|
1529
1529
|
if (typeof t != "function")
|
|
1530
1530
|
throw new TypeError("executor must be a function.");
|
|
@@ -1597,12 +1597,12 @@ let Tr = class Ut {
|
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
1599
|
};
|
|
1600
|
-
function
|
|
1600
|
+
function Tr(e) {
|
|
1601
1601
|
return function(n) {
|
|
1602
1602
|
return e.apply(null, n);
|
|
1603
1603
|
};
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function Or(e) {
|
|
1606
1606
|
return c.isObject(e) && e.isAxiosError === !0;
|
|
1607
1607
|
}
|
|
1608
1608
|
const Se = {
|
|
@@ -1682,7 +1682,7 @@ function Lt(e) {
|
|
|
1682
1682
|
const g = Lt(X);
|
|
1683
1683
|
g.Axios = v;
|
|
1684
1684
|
g.CanceledError = M;
|
|
1685
|
-
g.CancelToken =
|
|
1685
|
+
g.CancelToken = Sr;
|
|
1686
1686
|
g.isCancel = Tt;
|
|
1687
1687
|
g.VERSION = Pt;
|
|
1688
1688
|
g.toFormData = ue;
|
|
@@ -1691,8 +1691,8 @@ g.Cancel = g.CanceledError;
|
|
|
1691
1691
|
g.all = function(t) {
|
|
1692
1692
|
return Promise.all(t);
|
|
1693
1693
|
};
|
|
1694
|
-
g.spread =
|
|
1695
|
-
g.isAxiosError =
|
|
1694
|
+
g.spread = Tr;
|
|
1695
|
+
g.isAxiosError = Or;
|
|
1696
1696
|
g.mergeConfig = B;
|
|
1697
1697
|
g.AxiosHeaders = _;
|
|
1698
1698
|
g.formToJSON = (e) => St(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -1726,7 +1726,7 @@ function Z(e) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
return e;
|
|
1728
1728
|
}
|
|
1729
|
-
var
|
|
1729
|
+
var Ar = {
|
|
1730
1730
|
read: function(e) {
|
|
1731
1731
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1732
1732
|
},
|
|
@@ -1787,14 +1787,14 @@ function Te(e, t) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
);
|
|
1789
1789
|
}
|
|
1790
|
-
var Oe = Te(
|
|
1791
|
-
const Nt = typeof window < "u",
|
|
1790
|
+
var Oe = Te(Ar, { path: "/" }), Ke;
|
|
1791
|
+
const Nt = typeof window < "u", _r = (e) => typeof e == "string", Qe = () => +Date.now(), Ae = () => {
|
|
1792
1792
|
};
|
|
1793
1793
|
Nt && ((Ke = window == null ? void 0 : window.navigator) != null && Ke.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1794
1794
|
function Ne(e) {
|
|
1795
|
-
return typeof e == "function" ? e() :
|
|
1795
|
+
return typeof e == "function" ? e() : qt(e);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function kr(e, t) {
|
|
1798
1798
|
function n(...r) {
|
|
1799
1799
|
return new Promise((o, s) => {
|
|
1800
1800
|
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
|
|
@@ -1802,7 +1802,7 @@ function Cr(e, t) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
return n;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function Cr(e, t = !0, n = !0, r = !1) {
|
|
1806
1806
|
let o = 0, s, i = !0, a = Ae, f;
|
|
1807
1807
|
const l = () => {
|
|
1808
1808
|
s && (clearTimeout(s), s = void 0, a(), a = Ae);
|
|
@@ -1816,13 +1816,13 @@ function xr(e, t = !0, n = !0, r = !1) {
|
|
|
1816
1816
|
})), !n && !s && (s = setTimeout(() => i = !0, m)), i = !1, f);
|
|
1817
1817
|
};
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function xr(e) {
|
|
1820
1820
|
return e;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1823
|
-
return
|
|
1822
|
+
function Pr(e) {
|
|
1823
|
+
return Mt() ? ($t(e), !0) : !1;
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function Ur(e) {
|
|
1826
1826
|
var t;
|
|
1827
1827
|
const n = Ne(e);
|
|
1828
1828
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
@@ -1830,31 +1830,31 @@ function Lr(e) {
|
|
|
1830
1830
|
const It = Nt ? window : void 0;
|
|
1831
1831
|
function Xe(...e) {
|
|
1832
1832
|
let t, n, r, o;
|
|
1833
|
-
if (
|
|
1833
|
+
if (_r(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = It) : [t, n, r, o] = e, !t)
|
|
1834
1834
|
return Ae;
|
|
1835
1835
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
1836
1836
|
const s = [], i = () => {
|
|
1837
1837
|
s.forEach((u) => u()), s.length = 0;
|
|
1838
|
-
}, a = (u, d, m, b) => (u.addEventListener(d, m, b), () => u.removeEventListener(d, m, b)), f = Ce(() => [
|
|
1838
|
+
}, a = (u, d, m, b) => (u.addEventListener(d, m, b), () => u.removeEventListener(d, m, b)), f = Ce(() => [Ur(t), Ne(o)], ([u, d]) => {
|
|
1839
1839
|
i(), u && s.push(...n.flatMap((m) => r.map((b) => a(u, m, b, d))));
|
|
1840
1840
|
}, { immediate: !0, flush: "post" }), l = () => {
|
|
1841
1841
|
f(), i();
|
|
1842
1842
|
};
|
|
1843
|
-
return
|
|
1843
|
+
return Pr(l), l;
|
|
1844
1844
|
}
|
|
1845
1845
|
const Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ze = "__vueuse_ssr_handlers__";
|
|
1846
1846
|
Ge[Ze] = Ge[Ze] || {};
|
|
1847
|
-
const
|
|
1848
|
-
function
|
|
1847
|
+
const Lr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Nr = 6e4;
|
|
1848
|
+
function Ir(e = Nr, t = {}) {
|
|
1849
1849
|
const {
|
|
1850
1850
|
initialState: n = !1,
|
|
1851
1851
|
listenForVisibilityChange: r = !0,
|
|
1852
|
-
events: o =
|
|
1852
|
+
events: o = Lr,
|
|
1853
1853
|
window: s = It,
|
|
1854
|
-
eventFilter: i =
|
|
1854
|
+
eventFilter: i = Cr(50)
|
|
1855
1855
|
} = t, a = re(n), f = re(Qe());
|
|
1856
1856
|
let l;
|
|
1857
|
-
const u =
|
|
1857
|
+
const u = kr(i, () => {
|
|
1858
1858
|
a.value = !1, f.value = Qe(), clearTimeout(l), l = setTimeout(() => a.value = !0, e);
|
|
1859
1859
|
});
|
|
1860
1860
|
if (s) {
|
|
@@ -1871,15 +1871,15 @@ var Ye;
|
|
|
1871
1871
|
(function(e) {
|
|
1872
1872
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
1873
1873
|
})(Ye || (Ye = {}));
|
|
1874
|
-
var
|
|
1874
|
+
var Fr = Object.defineProperty, et = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, tt = (e, t, n) => t in e ? Fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Br = (e, t) => {
|
|
1875
1875
|
for (var n in t || (t = {}))
|
|
1876
|
-
|
|
1876
|
+
vr.call(t, n) && tt(e, n, t[n]);
|
|
1877
1877
|
if (et)
|
|
1878
1878
|
for (var n of et(t))
|
|
1879
|
-
|
|
1879
|
+
Dr.call(t, n) && tt(e, n, t[n]);
|
|
1880
1880
|
return e;
|
|
1881
1881
|
};
|
|
1882
|
-
const
|
|
1882
|
+
const jr = {
|
|
1883
1883
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1884
1884
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1885
1885
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1905,11 +1905,11 @@ const qr = {
|
|
|
1905
1905
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1906
1906
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1907
1907
|
};
|
|
1908
|
-
|
|
1909
|
-
linear:
|
|
1910
|
-
},
|
|
1908
|
+
Br({
|
|
1909
|
+
linear: xr
|
|
1910
|
+
}, jr);
|
|
1911
1911
|
let _e;
|
|
1912
|
-
const Ft = { triggerProxySso: "triggerProxySso" },
|
|
1912
|
+
const Ft = { triggerProxySso: "triggerProxySso" }, qr = () => {
|
|
1913
1913
|
_e = (e) => {
|
|
1914
1914
|
var n;
|
|
1915
1915
|
const { origin: t } = new URL(location.href);
|
|
@@ -1918,13 +1918,13 @@ const Ft = { triggerProxySso: "triggerProxySso" }, Mr = () => {
|
|
|
1918
1918
|
t
|
|
1919
1919
|
);
|
|
1920
1920
|
};
|
|
1921
|
-
},
|
|
1921
|
+
}, Mr = (e) => {
|
|
1922
1922
|
window.top === window.self && window.addEventListener("message", (t) => {
|
|
1923
1923
|
const { type: n, data: r } = t.data;
|
|
1924
1924
|
n === Ft.triggerProxySso && (e == null || e(r));
|
|
1925
1925
|
});
|
|
1926
1926
|
};
|
|
1927
|
-
window.top !== window.self &&
|
|
1927
|
+
window.top !== window.self && qr();
|
|
1928
1928
|
let vt = (e = 21) => {
|
|
1929
1929
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
1930
1930
|
for (; e--; ) {
|
|
@@ -1943,7 +1943,7 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
|
|
|
1943
1943
|
login: "/api/justauth/client/v1/visitor/feishu/login",
|
|
1944
1944
|
ssoParam: "/api/justauth/client/v1/visitor/sso-param"
|
|
1945
1945
|
}
|
|
1946
|
-
},
|
|
1946
|
+
}, $r = async () => {
|
|
1947
1947
|
const e = U("authorizer") || "", t = U("_redirect_url") || "";
|
|
1948
1948
|
if (ke(["authorizer", "_redirect_url"]), e === "feishu") {
|
|
1949
1949
|
if (!window.tt) return "";
|
|
@@ -1991,21 +1991,21 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
|
|
|
1991
1991
|
}) : i();
|
|
1992
1992
|
});
|
|
1993
1993
|
}
|
|
1994
|
-
},
|
|
1994
|
+
}, Hr = "/api/justauth/client/v1/visitor/sso-param", zr = {
|
|
1995
1995
|
uat: "https://sso-uat.jmc.com.cn"
|
|
1996
|
-
},
|
|
1997
|
-
const e = localStorage.getItem("thirdLogouSource")
|
|
1998
|
-
return e === "
|
|
1999
|
-
},
|
|
1996
|
+
}, Jr = () => {
|
|
1997
|
+
const e = localStorage.getItem("thirdLogouSource");
|
|
1998
|
+
return e === "zhongshen" || e === "jmc";
|
|
1999
|
+
}, Dt = (e) => {
|
|
2000
2000
|
localStorage.removeItem("thirdLogouSource"), location.href = e;
|
|
2001
2001
|
}, Vr = (e) => {
|
|
2002
2002
|
const n = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
|
|
2003
|
-
|
|
2003
|
+
Dt(n);
|
|
2004
2004
|
}, Wr = async () => {
|
|
2005
2005
|
let e = "";
|
|
2006
2006
|
try {
|
|
2007
2007
|
const { baseURL: o } = V();
|
|
2008
|
-
e = (await g.create().get(
|
|
2008
|
+
e = (await g.create().get(Hr, {
|
|
2009
2009
|
baseURL: o,
|
|
2010
2010
|
params: {
|
|
2011
2011
|
source: "jmc",
|
|
@@ -2021,14 +2021,13 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
|
|
|
2021
2021
|
} catch {
|
|
2022
2022
|
return "";
|
|
2023
2023
|
}
|
|
2024
|
-
})(), n = t ===
|
|
2024
|
+
})(), n = t === zr.uat ? Oe.get("sso_access_token_uat") : Oe.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
|
|
2025
2025
|
try {
|
|
2026
2026
|
await g.post(r);
|
|
2027
2027
|
} catch {
|
|
2028
2028
|
}
|
|
2029
|
-
|
|
2029
|
+
Dt(e);
|
|
2030
2030
|
}, Kr = async (e) => {
|
|
2031
|
-
if (!Dt()) return;
|
|
2032
2031
|
const t = localStorage.getItem("thirdLogouSource");
|
|
2033
2032
|
if (t === "zhongshen") {
|
|
2034
2033
|
Vr(e);
|
|
@@ -2046,19 +2045,19 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
|
|
|
2046
2045
|
response_type: "code",
|
|
2047
2046
|
scope: "sever",
|
|
2048
2047
|
client_id: "sys",
|
|
2049
|
-
client_secret:
|
|
2048
|
+
client_secret: Ht("das123"),
|
|
2050
2049
|
state: +/* @__PURE__ */ new Date()
|
|
2051
|
-
},
|
|
2050
|
+
}, Bt = re(!1), jt = (e) => {
|
|
2052
2051
|
if (e <= 0) return;
|
|
2053
|
-
const { idle: t } =
|
|
2052
|
+
const { idle: t } = Ir(e);
|
|
2054
2053
|
Ce(
|
|
2055
2054
|
() => t.value,
|
|
2056
2055
|
(n) => {
|
|
2057
|
-
n === !0 && (
|
|
2056
|
+
n === !0 && (Bt.value = !0);
|
|
2058
2057
|
}
|
|
2059
2058
|
);
|
|
2060
2059
|
};
|
|
2061
|
-
localStorage.getItem("idelTime") &&
|
|
2060
|
+
localStorage.getItem("idelTime") && jt(Number(localStorage.getItem("idelTime")));
|
|
2062
2061
|
let it = "";
|
|
2063
2062
|
const Xr = async () => {
|
|
2064
2063
|
const e = U("code") || "", t = U("redirect_url") || "/", n = U("kingdee_token") || "", r = U("loginType") || "";
|
|
@@ -2103,13 +2102,13 @@ const Xr = async () => {
|
|
|
2103
2102
|
};
|
|
2104
2103
|
J().save(d), await at(a);
|
|
2105
2104
|
const m = Number(u) - (/* @__PURE__ */ new Date()).getTime();
|
|
2106
|
-
return m && m > 0 && (
|
|
2105
|
+
return m && m > 0 && (jt(m), m && localStorage.setItem("idelTime", m.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), localStorage.removeItem("oauth-redirect_url"), a;
|
|
2107
2106
|
} catch {
|
|
2108
2107
|
return D({ ...N, redirect_uri: L });
|
|
2109
2108
|
}
|
|
2110
2109
|
}, Y = re(!1), Oo = async (e) => {
|
|
2111
2110
|
if (e.public) return "";
|
|
2112
|
-
if (
|
|
2111
|
+
if (Bt.value)
|
|
2113
2112
|
return D({ ...N, redirect_uri: L });
|
|
2114
2113
|
if (Y.value)
|
|
2115
2114
|
return await new Promise(async (r) => {
|
|
@@ -2129,7 +2128,7 @@ const Xr = async () => {
|
|
|
2129
2128
|
try {
|
|
2130
2129
|
const r = U("code") || "";
|
|
2131
2130
|
if ((U("authorizer") || "") === "feishu")
|
|
2132
|
-
await
|
|
2131
|
+
await $r();
|
|
2133
2132
|
else if (r)
|
|
2134
2133
|
t = await Xr();
|
|
2135
2134
|
else {
|
|
@@ -2157,7 +2156,7 @@ const D = (e) => {
|
|
|
2157
2156
|
f !== "client_secret" && s.set(f, String(l));
|
|
2158
2157
|
});
|
|
2159
2158
|
const i = s.toString(), a = `${r}${j.oauth}?${i}`;
|
|
2160
|
-
if (localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove(),
|
|
2159
|
+
if (localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove(), Jr())
|
|
2161
2160
|
Kr(a);
|
|
2162
2161
|
else {
|
|
2163
2162
|
try {
|
|
@@ -2171,7 +2170,7 @@ const D = (e) => {
|
|
|
2171
2170
|
}
|
|
2172
2171
|
}
|
|
2173
2172
|
};
|
|
2174
|
-
|
|
2173
|
+
Mr(D);
|
|
2175
2174
|
const Gr = async (e) => {
|
|
2176
2175
|
const { baseURL: t } = V(), { refreshToken: n } = J().getData();
|
|
2177
2176
|
try {
|
|
@@ -2210,13 +2209,13 @@ const Gr = async (e) => {
|
|
|
2210
2209
|
refreshToken: de("refreshToken")
|
|
2211
2210
|
}),
|
|
2212
2211
|
save: (e) => {
|
|
2213
|
-
|
|
2212
|
+
Jt(e.accessToken ?? "", {
|
|
2214
2213
|
accessTokenExpiredAt: e.accessTokenExpiredAt,
|
|
2215
2214
|
refreshToken: e.refreshToken
|
|
2216
|
-
}),
|
|
2215
|
+
}), Wt(e);
|
|
2217
2216
|
},
|
|
2218
2217
|
remove: () => {
|
|
2219
|
-
|
|
2218
|
+
zt(), Vt();
|
|
2220
2219
|
}
|
|
2221
2220
|
});
|
|
2222
2221
|
export {
|