@das-fed/utils 7.0.5-beta.8 → 7.0.5-beta.8.1
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 +908 -890
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +725 -743
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +728 -746
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +741 -723
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +725 -743
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +680 -684
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +725 -743
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +734 -752
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +725 -743
- package/api-services/modules/portal/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +1 -1
- package/create-api-service/sso/index.js +279 -279
- package/create-api-service/sso/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { encryption as
|
|
1
|
+
import { unref as Ft, getCurrentScope as Dt, onScopeDispose as vt, ref as ee, watch as Oe } from "vue";
|
|
2
|
+
import { encryption as It } from "@das-fed/utils/atob";
|
|
3
3
|
import { getConfig as Ae } from "@das-fed/utils/config";
|
|
4
|
-
import { getAccessToken as q, removeAccessToken as
|
|
5
|
-
import { removeProcessEngineToken as
|
|
6
|
-
import { setPersonalInfo as
|
|
7
|
-
function
|
|
4
|
+
import { getAccessToken as q, removeAccessToken as Bt, setAccessToken as jt, getAccessTokenInfo as fe } from "@das-fed/utils/token-tools";
|
|
5
|
+
import { removeProcessEngineToken as qt, setProcessEngineToken as Mt } from "@das-fed/utils/process-engine-info";
|
|
6
|
+
import { setPersonalInfo as nt } from "@das-fed/utils/common-info/set-personal-info";
|
|
7
|
+
function rt(e, t) {
|
|
8
8
|
return function() {
|
|
9
9
|
return e.apply(t, arguments);
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
const { toString: Ht } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: oe, toStringTag:
|
|
12
|
+
const { toString: Ht } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: oe, toStringTag: ot } = Symbol, se = /* @__PURE__ */ ((e) => (t) => {
|
|
13
13
|
const n = Ht.call(t);
|
|
14
14
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
15
|
-
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => se(t) === e), ie = (e) => (t) => typeof t === e, { isArray: v } = Array,
|
|
15
|
+
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => se(t) === e), ie = (e) => (t) => typeof t === e, { isArray: v } = Array, M = ie("undefined");
|
|
16
16
|
function $(e) {
|
|
17
|
-
return e !== null && !
|
|
17
|
+
return e !== null && !M(e) && e.constructor !== null && !M(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const st = x("ArrayBuffer");
|
|
20
|
+
function $t(e) {
|
|
21
21
|
let t;
|
|
22
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
22
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && st(e.buffer), t;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const zt = ie("string"), A = ie("function"), it = ie("number"), z = (e) => e !== null && typeof e == "object", Jt = (e) => e === !0 || e === !1, X = (e) => {
|
|
25
25
|
if (se(e) !== "object")
|
|
26
26
|
return !1;
|
|
27
27
|
const t = _e(e);
|
|
28
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
29
|
-
},
|
|
28
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ot in e) && !(oe in e);
|
|
29
|
+
}, Vt = (e) => {
|
|
30
30
|
if (!z(e) || $(e))
|
|
31
31
|
return !1;
|
|
32
32
|
try {
|
|
@@ -34,11 +34,11 @@ const $t = ie("string"), A = ie("function"), st = ie("number"), z = (e) => e !==
|
|
|
34
34
|
} catch {
|
|
35
35
|
return !1;
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, Wt = x("Date"), Kt = x("File"), Qt = x("Blob"), Xt = x("FileList"), Gt = (e) => z(e) && A(e.pipe), Zt = (e) => {
|
|
38
38
|
let t;
|
|
39
39
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = se(e)) === "formdata" || // detect form-data instance
|
|
40
40
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
41
|
-
},
|
|
41
|
+
}, Yt = x("URLSearchParams"), [en, tn, nn, rn] = ["ReadableStream", "Request", "Response", "Headers"].map(x), on = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
42
42
|
function J(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
43
43
|
if (e === null || typeof e > "u")
|
|
44
44
|
return;
|
|
@@ -55,7 +55,7 @@ function J(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
55
55
|
c = s[r], t.call(null, e[c], c, e);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function at(e, t) {
|
|
59
59
|
if ($(e))
|
|
60
60
|
return null;
|
|
61
61
|
t = t.toLowerCase();
|
|
@@ -66,23 +66,23 @@ function it(e, t) {
|
|
|
66
66
|
return o;
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
69
|
-
const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
69
|
+
const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ct = (e) => !M(e) && e !== L;
|
|
70
70
|
function me() {
|
|
71
|
-
const { caseless: e } =
|
|
72
|
-
const s = e &&
|
|
71
|
+
const { caseless: e } = ct(this) && this || {}, t = {}, n = (r, o) => {
|
|
72
|
+
const s = e && at(t, o) || o;
|
|
73
73
|
X(t[s]) && X(r) ? t[s] = me(t[s], r) : X(r) ? t[s] = me({}, r) : v(r) ? t[s] = r.slice() : t[s] = r;
|
|
74
74
|
};
|
|
75
75
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
76
76
|
arguments[r] && J(arguments[r], n);
|
|
77
77
|
return t;
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
n && A(o) ? e[s] =
|
|
81
|
-
}, { allOwnKeys: r }), e),
|
|
79
|
+
const sn = (e, t, n, { allOwnKeys: r } = {}) => (J(t, (o, s) => {
|
|
80
|
+
n && A(o) ? e[s] = rt(o, n) : e[s] = o;
|
|
81
|
+
}, { allOwnKeys: r }), e), an = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), cn = (e, t, n, r) => {
|
|
82
82
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
83
83
|
value: t.prototype
|
|
84
84
|
}), n && Object.assign(e.prototype, n);
|
|
85
|
-
},
|
|
85
|
+
}, un = (e, t, n, r) => {
|
|
86
86
|
let o, s, i;
|
|
87
87
|
const c = {};
|
|
88
88
|
if (t = t || {}, e == null) return t;
|
|
@@ -92,45 +92,45 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (J(t, (o, s) => {
|
|
|
92
92
|
e = n !== !1 && _e(e);
|
|
93
93
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
94
94
|
return t;
|
|
95
|
-
},
|
|
95
|
+
}, ln = (e, t, n) => {
|
|
96
96
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
97
97
|
const r = e.indexOf(t, n);
|
|
98
98
|
return r !== -1 && r === n;
|
|
99
|
-
},
|
|
99
|
+
}, fn = (e) => {
|
|
100
100
|
if (!e) return null;
|
|
101
101
|
if (v(e)) return e;
|
|
102
102
|
let t = e.length;
|
|
103
|
-
if (!
|
|
103
|
+
if (!it(t)) return null;
|
|
104
104
|
const n = new Array(t);
|
|
105
105
|
for (; t-- > 0; )
|
|
106
106
|
n[t] = e[t];
|
|
107
107
|
return n;
|
|
108
|
-
},
|
|
108
|
+
}, dn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && _e(Uint8Array)), pn = (e, t) => {
|
|
109
109
|
const r = (e && e[oe]).call(e);
|
|
110
110
|
let o;
|
|
111
111
|
for (; (o = r.next()) && !o.done; ) {
|
|
112
112
|
const s = o.value;
|
|
113
113
|
t.call(e, s[0], s[1]);
|
|
114
114
|
}
|
|
115
|
-
},
|
|
115
|
+
}, hn = (e, t) => {
|
|
116
116
|
let n;
|
|
117
117
|
const r = [];
|
|
118
118
|
for (; (n = e.exec(t)) !== null; )
|
|
119
119
|
r.push(n);
|
|
120
120
|
return r;
|
|
121
|
-
},
|
|
121
|
+
}, mn = x("HTMLFormElement"), yn = (e) => e.toLowerCase().replace(
|
|
122
122
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
123
123
|
function(n, r, o) {
|
|
124
124
|
return r.toUpperCase() + o;
|
|
125
125
|
}
|
|
126
|
-
), Ue = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
126
|
+
), Ue = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), wn = x("RegExp"), ut = (e, t) => {
|
|
127
127
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
128
128
|
J(n, (o, s) => {
|
|
129
129
|
let i;
|
|
130
130
|
(i = t(o, s, e)) !== !1 && (r[s] = i || o);
|
|
131
131
|
}), Object.defineProperties(e, r);
|
|
132
|
-
},
|
|
133
|
-
|
|
132
|
+
}, gn = (e) => {
|
|
133
|
+
ut(e, (t, n) => {
|
|
134
134
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
135
135
|
return !1;
|
|
136
136
|
const r = e[n];
|
|
@@ -144,19 +144,19 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (J(t, (o, s) => {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
|
-
},
|
|
147
|
+
}, bn = (e, t) => {
|
|
148
148
|
const n = {}, r = (o) => {
|
|
149
149
|
o.forEach((s) => {
|
|
150
150
|
n[s] = !0;
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
return v(e) ? r(e) : r(String(e).split(t)), n;
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
function
|
|
157
|
-
return !!(e && A(e.append) && e[
|
|
154
|
+
}, En = () => {
|
|
155
|
+
}, Sn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
156
|
+
function Rn(e) {
|
|
157
|
+
return !!(e && A(e.append) && e[ot] === "FormData" && e[oe]);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
159
|
+
const Tn = (e) => {
|
|
160
160
|
const t = new Array(10), n = (r, o) => {
|
|
161
161
|
if (z(r)) {
|
|
162
162
|
if (t.indexOf(r) >= 0)
|
|
@@ -168,79 +168,79 @@ const Rn = (e) => {
|
|
|
168
168
|
const s = v(r) ? [] : {};
|
|
169
169
|
return J(r, (i, c) => {
|
|
170
170
|
const f = n(i, o + 1);
|
|
171
|
-
!
|
|
171
|
+
!M(f) && (s[c] = f);
|
|
172
172
|
}), t[o] = void 0, s;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
return r;
|
|
176
176
|
};
|
|
177
177
|
return n(e, 0);
|
|
178
|
-
},
|
|
178
|
+
}, On = x("AsyncFunction"), An = (e) => e && (z(e) || A(e)) && A(e.then) && A(e.catch), lt = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: o, data: s }) => {
|
|
179
179
|
o === L && s === n && r.length && r.shift()();
|
|
180
180
|
}, !1), (o) => {
|
|
181
181
|
r.push(o), L.postMessage(n, "*");
|
|
182
182
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
183
183
|
typeof setImmediate == "function",
|
|
184
184
|
A(L.postMessage)
|
|
185
|
-
),
|
|
185
|
+
), _n = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || lt, xn = (e) => e != null && A(e[oe]), a = {
|
|
186
186
|
isArray: v,
|
|
187
|
-
isArrayBuffer:
|
|
187
|
+
isArrayBuffer: st,
|
|
188
188
|
isBuffer: $,
|
|
189
|
-
isFormData:
|
|
190
|
-
isArrayBufferView:
|
|
191
|
-
isString:
|
|
192
|
-
isNumber:
|
|
193
|
-
isBoolean:
|
|
189
|
+
isFormData: Zt,
|
|
190
|
+
isArrayBufferView: $t,
|
|
191
|
+
isString: zt,
|
|
192
|
+
isNumber: it,
|
|
193
|
+
isBoolean: Jt,
|
|
194
194
|
isObject: z,
|
|
195
195
|
isPlainObject: X,
|
|
196
|
-
isEmptyObject:
|
|
197
|
-
isReadableStream:
|
|
198
|
-
isRequest:
|
|
199
|
-
isResponse:
|
|
200
|
-
isHeaders:
|
|
201
|
-
isUndefined:
|
|
202
|
-
isDate:
|
|
203
|
-
isFile:
|
|
204
|
-
isBlob:
|
|
205
|
-
isRegExp:
|
|
196
|
+
isEmptyObject: Vt,
|
|
197
|
+
isReadableStream: en,
|
|
198
|
+
isRequest: tn,
|
|
199
|
+
isResponse: nn,
|
|
200
|
+
isHeaders: rn,
|
|
201
|
+
isUndefined: M,
|
|
202
|
+
isDate: Wt,
|
|
203
|
+
isFile: Kt,
|
|
204
|
+
isBlob: Qt,
|
|
205
|
+
isRegExp: wn,
|
|
206
206
|
isFunction: A,
|
|
207
|
-
isStream:
|
|
208
|
-
isURLSearchParams:
|
|
209
|
-
isTypedArray:
|
|
210
|
-
isFileList:
|
|
207
|
+
isStream: Gt,
|
|
208
|
+
isURLSearchParams: Yt,
|
|
209
|
+
isTypedArray: dn,
|
|
210
|
+
isFileList: Xt,
|
|
211
211
|
forEach: J,
|
|
212
212
|
merge: me,
|
|
213
|
-
extend:
|
|
214
|
-
trim:
|
|
215
|
-
stripBOM:
|
|
216
|
-
inherits:
|
|
217
|
-
toFlatObject:
|
|
213
|
+
extend: sn,
|
|
214
|
+
trim: on,
|
|
215
|
+
stripBOM: an,
|
|
216
|
+
inherits: cn,
|
|
217
|
+
toFlatObject: un,
|
|
218
218
|
kindOf: se,
|
|
219
219
|
kindOfTest: x,
|
|
220
|
-
endsWith:
|
|
221
|
-
toArray:
|
|
222
|
-
forEachEntry:
|
|
223
|
-
matchAll:
|
|
224
|
-
isHTMLForm:
|
|
220
|
+
endsWith: ln,
|
|
221
|
+
toArray: fn,
|
|
222
|
+
forEachEntry: pn,
|
|
223
|
+
matchAll: hn,
|
|
224
|
+
isHTMLForm: mn,
|
|
225
225
|
hasOwnProperty: Ue,
|
|
226
226
|
hasOwnProp: Ue,
|
|
227
227
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
228
|
-
reduceDescriptors:
|
|
229
|
-
freezeMethods:
|
|
230
|
-
toObjectSet:
|
|
231
|
-
toCamelCase:
|
|
232
|
-
noop:
|
|
233
|
-
toFiniteNumber:
|
|
234
|
-
findKey:
|
|
228
|
+
reduceDescriptors: ut,
|
|
229
|
+
freezeMethods: gn,
|
|
230
|
+
toObjectSet: bn,
|
|
231
|
+
toCamelCase: yn,
|
|
232
|
+
noop: En,
|
|
233
|
+
toFiniteNumber: Sn,
|
|
234
|
+
findKey: at,
|
|
235
235
|
global: L,
|
|
236
|
-
isContextDefined:
|
|
237
|
-
isSpecCompliantForm:
|
|
238
|
-
toJSONObject:
|
|
239
|
-
isAsyncFn:
|
|
240
|
-
isThenable:
|
|
241
|
-
setImmediate:
|
|
242
|
-
asap:
|
|
243
|
-
isIterable:
|
|
236
|
+
isContextDefined: ct,
|
|
237
|
+
isSpecCompliantForm: Rn,
|
|
238
|
+
toJSONObject: Tn,
|
|
239
|
+
isAsyncFn: On,
|
|
240
|
+
isThenable: An,
|
|
241
|
+
setImmediate: lt,
|
|
242
|
+
asap: _n,
|
|
243
|
+
isIterable: xn
|
|
244
244
|
};
|
|
245
245
|
function y(e, t, n, r, o) {
|
|
246
246
|
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);
|
|
@@ -266,7 +266,7 @@ a.inherits(y, Error, {
|
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
|
-
const
|
|
269
|
+
const ft = y.prototype, dt = {};
|
|
270
270
|
[
|
|
271
271
|
"ERR_BAD_OPTION_VALUE",
|
|
272
272
|
"ERR_BAD_OPTION",
|
|
@@ -282,32 +282,32 @@ const lt = y.prototype, ft = {};
|
|
|
282
282
|
"ERR_INVALID_URL"
|
|
283
283
|
// eslint-disable-next-line func-names
|
|
284
284
|
].forEach((e) => {
|
|
285
|
-
|
|
285
|
+
dt[e] = { value: e };
|
|
286
286
|
});
|
|
287
|
-
Object.defineProperties(y,
|
|
288
|
-
Object.defineProperty(
|
|
287
|
+
Object.defineProperties(y, dt);
|
|
288
|
+
Object.defineProperty(ft, "isAxiosError", { value: !0 });
|
|
289
289
|
y.from = (e, t, n, r, o, s) => {
|
|
290
|
-
const i = Object.create(
|
|
290
|
+
const i = Object.create(ft);
|
|
291
291
|
return a.toFlatObject(e, i, function(f) {
|
|
292
292
|
return f !== Error.prototype;
|
|
293
293
|
}, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
294
294
|
};
|
|
295
|
-
const
|
|
295
|
+
const Cn = null;
|
|
296
296
|
function ye(e) {
|
|
297
297
|
return a.isPlainObject(e) || a.isArray(e);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function pt(e) {
|
|
300
300
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
301
301
|
}
|
|
302
302
|
function Le(e, t, n) {
|
|
303
303
|
return e ? e.concat(t).map(function(o, s) {
|
|
304
|
-
return o =
|
|
304
|
+
return o = pt(o), !n && s ? "[" + o + "]" : o;
|
|
305
305
|
}).join(n ? "." : "") : t;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function kn(e) {
|
|
308
308
|
return a.isArray(e) && !e.some(ye);
|
|
309
309
|
}
|
|
310
|
-
const
|
|
310
|
+
const Pn = a.toFlatObject(a, {}, null, function(t) {
|
|
311
311
|
return /^is[A-Z]/.test(t);
|
|
312
312
|
});
|
|
313
313
|
function ae(e, t, n) {
|
|
@@ -338,8 +338,8 @@ function ae(e, t, n) {
|
|
|
338
338
|
if (p && !h && typeof p == "object") {
|
|
339
339
|
if (a.endsWith(m, "{}"))
|
|
340
340
|
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
341
|
-
else if (a.isArray(p) &&
|
|
342
|
-
return m =
|
|
341
|
+
else if (a.isArray(p) && kn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
|
|
342
|
+
return m = pt(m), E.forEach(function(R, k) {
|
|
343
343
|
!(a.isUndefined(R) || R === null) && t.append(
|
|
344
344
|
// eslint-disable-next-line no-nested-ternary
|
|
345
345
|
i === !0 ? Le([m], k, s) : i === null ? m : m + "[]",
|
|
@@ -349,7 +349,7 @@ function ae(e, t, n) {
|
|
|
349
349
|
}
|
|
350
350
|
return ye(p) ? !0 : (t.append(Le(h, m, s), l(p)), !1);
|
|
351
351
|
}
|
|
352
|
-
const d = [], w = Object.assign(
|
|
352
|
+
const d = [], w = Object.assign(Pn, {
|
|
353
353
|
defaultVisitor: u,
|
|
354
354
|
convertValue: l,
|
|
355
355
|
isVisitable: ye
|
|
@@ -390,11 +390,11 @@ function Ne(e) {
|
|
|
390
390
|
function xe(e, t) {
|
|
391
391
|
this._pairs = [], e && ae(e, this, t);
|
|
392
392
|
}
|
|
393
|
-
const
|
|
394
|
-
|
|
393
|
+
const ht = xe.prototype;
|
|
394
|
+
ht.append = function(t, n) {
|
|
395
395
|
this._pairs.push([t, n]);
|
|
396
396
|
};
|
|
397
|
-
|
|
397
|
+
ht.toString = function(t) {
|
|
398
398
|
const n = t ? function(r) {
|
|
399
399
|
return t.call(this, r, Ne);
|
|
400
400
|
} : Ne;
|
|
@@ -402,13 +402,13 @@ pt.toString = function(t) {
|
|
|
402
402
|
return n(o[0]) + "=" + n(o[1]);
|
|
403
403
|
}, "").join("&");
|
|
404
404
|
};
|
|
405
|
-
function
|
|
405
|
+
function Un(e) {
|
|
406
406
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function mt(e, t, n) {
|
|
409
409
|
if (!t)
|
|
410
410
|
return e;
|
|
411
|
-
const r = n && n.encode ||
|
|
411
|
+
const r = n && n.encode || Un;
|
|
412
412
|
a.isFunction(n) && (n = {
|
|
413
413
|
serialize: n
|
|
414
414
|
});
|
|
@@ -474,31 +474,31 @@ class Fe {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
477
|
+
const yt = {
|
|
478
478
|
silentJSONParsing: !0,
|
|
479
479
|
forcedJSONParsing: !0,
|
|
480
480
|
clarifyTimeoutError: !1
|
|
481
|
-
},
|
|
481
|
+
}, Ln = typeof URLSearchParams < "u" ? URLSearchParams : xe, Nn = typeof FormData < "u" ? FormData : null, Fn = typeof Blob < "u" ? Blob : null, Dn = {
|
|
482
482
|
isBrowser: !0,
|
|
483
483
|
classes: {
|
|
484
|
-
URLSearchParams:
|
|
485
|
-
FormData:
|
|
486
|
-
Blob:
|
|
484
|
+
URLSearchParams: Ln,
|
|
485
|
+
FormData: Nn,
|
|
486
|
+
Blob: Fn
|
|
487
487
|
},
|
|
488
488
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
489
|
-
}, Ce = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0,
|
|
490
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
489
|
+
}, Ce = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, vn = Ce && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), In = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
490
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn = Ce && window.location.href || "http://localhost", jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
491
491
|
__proto__: null,
|
|
492
492
|
hasBrowserEnv: Ce,
|
|
493
|
-
hasStandardBrowserEnv:
|
|
494
|
-
hasStandardBrowserWebWorkerEnv:
|
|
493
|
+
hasStandardBrowserEnv: vn,
|
|
494
|
+
hasStandardBrowserWebWorkerEnv: In,
|
|
495
495
|
navigator: we,
|
|
496
|
-
origin:
|
|
496
|
+
origin: Bn
|
|
497
497
|
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
498
|
-
...
|
|
499
|
-
...
|
|
498
|
+
...jn,
|
|
499
|
+
...Dn
|
|
500
500
|
};
|
|
501
|
-
function
|
|
501
|
+
function qn(e, t) {
|
|
502
502
|
return ae(e, new T.classes.URLSearchParams(), {
|
|
503
503
|
visitor: function(n, r, o, s) {
|
|
504
504
|
return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
@@ -506,7 +506,7 @@ function jn(e, t) {
|
|
|
506
506
|
...t
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Mn(e) {
|
|
510
510
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
511
511
|
}
|
|
512
512
|
function Hn(e) {
|
|
@@ -518,7 +518,7 @@ function Hn(e) {
|
|
|
518
518
|
s = n[r], t[s] = e[s];
|
|
519
519
|
return t;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function wt(e) {
|
|
522
522
|
function t(n, r, o, s) {
|
|
523
523
|
let i = n[s++];
|
|
524
524
|
if (i === "__proto__") return !0;
|
|
@@ -528,12 +528,12 @@ function yt(e) {
|
|
|
528
528
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
529
529
|
const n = {};
|
|
530
530
|
return a.forEachEntry(e, (r, o) => {
|
|
531
|
-
t(
|
|
531
|
+
t(Mn(r), o, n, 0);
|
|
532
532
|
}), n;
|
|
533
533
|
}
|
|
534
534
|
return null;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function $n(e, t, n) {
|
|
537
537
|
if (a.isString(e))
|
|
538
538
|
try {
|
|
539
539
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -544,12 +544,12 @@ function Mn(e, t, n) {
|
|
|
544
544
|
return (n || JSON.stringify)(e);
|
|
545
545
|
}
|
|
546
546
|
const V = {
|
|
547
|
-
transitional:
|
|
547
|
+
transitional: yt,
|
|
548
548
|
adapter: ["xhr", "http", "fetch"],
|
|
549
549
|
transformRequest: [function(t, n) {
|
|
550
550
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = a.isObject(t);
|
|
551
551
|
if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
552
|
-
return o ? JSON.stringify(
|
|
552
|
+
return o ? JSON.stringify(wt(t)) : t;
|
|
553
553
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
554
554
|
return t;
|
|
555
555
|
if (a.isArrayBufferView(t))
|
|
@@ -559,7 +559,7 @@ const V = {
|
|
|
559
559
|
let c;
|
|
560
560
|
if (s) {
|
|
561
561
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
562
|
-
return
|
|
562
|
+
return qn(t, this.formSerializer).toString();
|
|
563
563
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
564
564
|
const f = this.env && this.env.FormData;
|
|
565
565
|
return ae(
|
|
@@ -569,7 +569,7 @@ const V = {
|
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
return s || o ? (n.setContentType("application/json", !1),
|
|
572
|
+
return s || o ? (n.setContentType("application/json", !1), $n(t)) : t;
|
|
573
573
|
}],
|
|
574
574
|
transformResponse: [function(t) {
|
|
575
575
|
const n = this.transitional || V.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -612,7 +612,7 @@ const V = {
|
|
|
612
612
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
613
613
|
V.headers[e] = {};
|
|
614
614
|
});
|
|
615
|
-
const
|
|
615
|
+
const zn = a.toObjectSet([
|
|
616
616
|
"age",
|
|
617
617
|
"authorization",
|
|
618
618
|
"content-length",
|
|
@@ -630,12 +630,12 @@ const $n = a.toObjectSet([
|
|
|
630
630
|
"referer",
|
|
631
631
|
"retry-after",
|
|
632
632
|
"user-agent"
|
|
633
|
-
]),
|
|
633
|
+
]), Jn = (e) => {
|
|
634
634
|
const t = {};
|
|
635
635
|
let n, r, o;
|
|
636
636
|
return e && e.split(`
|
|
637
637
|
`).forEach(function(i) {
|
|
638
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] &&
|
|
638
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && zn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
639
639
|
}), t;
|
|
640
640
|
}, De = Symbol("internals");
|
|
641
641
|
function B(e) {
|
|
@@ -644,14 +644,14 @@ function B(e) {
|
|
|
644
644
|
function G(e) {
|
|
645
645
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(G) : String(e);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function Vn(e) {
|
|
648
648
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
649
649
|
let r;
|
|
650
650
|
for (; r = n.exec(e); )
|
|
651
651
|
t[r[1]] = r[2];
|
|
652
652
|
return t;
|
|
653
653
|
}
|
|
654
|
-
const
|
|
654
|
+
const Wn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
655
655
|
function de(e, t, n, r, o) {
|
|
656
656
|
if (a.isFunction(r))
|
|
657
657
|
return r.call(this, t, n);
|
|
@@ -662,10 +662,10 @@ function de(e, t, n, r, o) {
|
|
|
662
662
|
return r.test(t);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Kn(e) {
|
|
666
666
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Qn(e, t) {
|
|
669
669
|
const n = a.toCamelCase(" " + t);
|
|
670
670
|
["get", "set", "has"].forEach((r) => {
|
|
671
671
|
Object.defineProperty(e, r + n, {
|
|
@@ -692,8 +692,8 @@ let _ = class {
|
|
|
692
692
|
const i = (c, f) => a.forEach(c, (l, u) => s(l, u, f));
|
|
693
693
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
694
694
|
i(t, n);
|
|
695
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
696
|
-
i(
|
|
695
|
+
else if (a.isString(t) && (t = t.trim()) && !Wn(t))
|
|
696
|
+
i(Jn(t), n);
|
|
697
697
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
698
698
|
let c = {}, f, l;
|
|
699
699
|
for (const u of t) {
|
|
@@ -714,7 +714,7 @@ let _ = class {
|
|
|
714
714
|
if (!n)
|
|
715
715
|
return o;
|
|
716
716
|
if (n === !0)
|
|
717
|
-
return
|
|
717
|
+
return Vn(o);
|
|
718
718
|
if (a.isFunction(n))
|
|
719
719
|
return n.call(this, o, r);
|
|
720
720
|
if (a.isRegExp(n))
|
|
@@ -758,7 +758,7 @@ let _ = class {
|
|
|
758
758
|
n[i] = G(o), delete n[s];
|
|
759
759
|
return;
|
|
760
760
|
}
|
|
761
|
-
const c = t ?
|
|
761
|
+
const c = t ? Kn(s) : String(s).trim();
|
|
762
762
|
c !== s && delete n[s], n[c] = G(o), r[c] = !0;
|
|
763
763
|
}), this;
|
|
764
764
|
}
|
|
@@ -797,7 +797,7 @@ let _ = class {
|
|
|
797
797
|
}).accessors, o = this.prototype;
|
|
798
798
|
function s(i) {
|
|
799
799
|
const c = B(i);
|
|
800
|
-
r[c] || (
|
|
800
|
+
r[c] || (Qn(o, i), r[c] = !0);
|
|
801
801
|
}
|
|
802
802
|
return a.isArray(t) ? t.forEach(s) : s(t), this;
|
|
803
803
|
}
|
|
@@ -820,7 +820,7 @@ function pe(e, t) {
|
|
|
820
820
|
s = c.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
821
821
|
}), o.normalize(), s;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function gt(e) {
|
|
824
824
|
return !!(e && e.__CANCEL__);
|
|
825
825
|
}
|
|
826
826
|
function I(e, t, n) {
|
|
@@ -829,7 +829,7 @@ function I(e, t, n) {
|
|
|
829
829
|
a.inherits(I, y, {
|
|
830
830
|
__CANCEL__: !0
|
|
831
831
|
});
|
|
832
|
-
function
|
|
832
|
+
function bt(e, t, n) {
|
|
833
833
|
const r = n.config.validateStatus;
|
|
834
834
|
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
835
835
|
"Request failed with status code " + n.status,
|
|
@@ -839,11 +839,11 @@ function gt(e, t, n) {
|
|
|
839
839
|
n
|
|
840
840
|
));
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Xn(e) {
|
|
843
843
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
844
844
|
return t && t[1] || "";
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Gn(e, t) {
|
|
847
847
|
e = e || 10;
|
|
848
848
|
const n = new Array(e), r = new Array(e);
|
|
849
849
|
let o = 0, s = 0, i;
|
|
@@ -859,7 +859,7 @@ function Xn(e, t) {
|
|
|
859
859
|
return g ? Math.round(w * 1e3 / g) : void 0;
|
|
860
860
|
};
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Zn(e, t) {
|
|
863
863
|
let n = 0, r = 1e3 / t, o, s;
|
|
864
864
|
const i = (l, u = Date.now()) => {
|
|
865
865
|
n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
|
|
@@ -873,8 +873,8 @@ function Gn(e, t) {
|
|
|
873
873
|
}
|
|
874
874
|
const te = (e, t, n = 3) => {
|
|
875
875
|
let r = 0;
|
|
876
|
-
const o =
|
|
877
|
-
return
|
|
876
|
+
const o = Gn(50, 250);
|
|
877
|
+
return Zn((s) => {
|
|
878
878
|
const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= c;
|
|
879
879
|
r = i;
|
|
880
880
|
const d = {
|
|
@@ -897,10 +897,10 @@ const te = (e, t, n = 3) => {
|
|
|
897
897
|
total: e,
|
|
898
898
|
loaded: r
|
|
899
899
|
}), t[1]];
|
|
900
|
-
}, Ie = (e) => (...t) => a.asap(() => e(...t)),
|
|
900
|
+
}, Ie = (e) => (...t) => a.asap(() => e(...t)), Yn = 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)))(
|
|
901
901
|
new URL(T.origin),
|
|
902
902
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
903
|
-
) : () => !0,
|
|
903
|
+
) : () => !0, er = T.hasStandardBrowserEnv ? (
|
|
904
904
|
// Standard browser envs support document.cookie
|
|
905
905
|
{
|
|
906
906
|
write(e, t, n, r, o, s) {
|
|
@@ -927,15 +927,15 @@ const te = (e, t, n = 3) => {
|
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
);
|
|
930
|
-
function
|
|
930
|
+
function tr(e) {
|
|
931
931
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function nr(e, t) {
|
|
934
934
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
let r = !
|
|
938
|
-
return e && (r || n == !1) ?
|
|
936
|
+
function Et(e, t, n) {
|
|
937
|
+
let r = !tr(t);
|
|
938
|
+
return e && (r || n == !1) ? nr(e, t) : t;
|
|
939
939
|
}
|
|
940
940
|
const Be = (e) => e instanceof _ ? { ...e } : e;
|
|
941
941
|
function F(e, t) {
|
|
@@ -1002,10 +1002,10 @@ function F(e, t) {
|
|
|
1002
1002
|
a.isUndefined(w) && d !== c || (n[u] = w);
|
|
1003
1003
|
}), n;
|
|
1004
1004
|
}
|
|
1005
|
-
const
|
|
1005
|
+
const St = (e) => {
|
|
1006
1006
|
const t = F({}, e);
|
|
1007
1007
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
|
|
1008
|
-
t.headers = i = _.from(i), t.url =
|
|
1008
|
+
t.headers = i = _.from(i), t.url = mt(Et(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
1009
1009
|
"Authorization",
|
|
1010
1010
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1011
1011
|
);
|
|
@@ -1018,14 +1018,14 @@ const Et = (e) => {
|
|
|
1018
1018
|
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1022
|
-
const l = o && s &&
|
|
1021
|
+
if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Yn(t.url))) {
|
|
1022
|
+
const l = o && s && er.read(s);
|
|
1023
1023
|
l && i.set(o, l);
|
|
1024
1024
|
}
|
|
1025
1025
|
return t;
|
|
1026
|
-
},
|
|
1026
|
+
}, rr = typeof XMLHttpRequest < "u", or = rr && function(e) {
|
|
1027
1027
|
return new Promise(function(n, r) {
|
|
1028
|
-
const o =
|
|
1028
|
+
const o = St(e);
|
|
1029
1029
|
let s = o.data;
|
|
1030
1030
|
const i = _.from(o.headers).normalize();
|
|
1031
1031
|
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = o, u, d, w, g, p;
|
|
@@ -1047,7 +1047,7 @@ const Et = (e) => {
|
|
|
1047
1047
|
config: e,
|
|
1048
1048
|
request: h
|
|
1049
1049
|
};
|
|
1050
|
-
|
|
1050
|
+
bt(function(U) {
|
|
1051
1051
|
n(U), m();
|
|
1052
1052
|
}, function(U) {
|
|
1053
1053
|
r(U), m();
|
|
@@ -1061,7 +1061,7 @@ const Et = (e) => {
|
|
|
1061
1061
|
r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
|
|
1062
1062
|
}, h.ontimeout = function() {
|
|
1063
1063
|
let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1064
|
-
const O = o.transitional ||
|
|
1064
|
+
const O = o.transitional || yt;
|
|
1065
1065
|
o.timeoutErrorMessage && (k = o.timeoutErrorMessage), r(new y(
|
|
1066
1066
|
k,
|
|
1067
1067
|
O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
@@ -1073,14 +1073,14 @@ const Et = (e) => {
|
|
|
1073
1073
|
}), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), c && c !== "json" && (h.responseType = o.responseType), l && ([w, p] = te(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = te(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (u = (R) => {
|
|
1074
1074
|
h && (r(!R || R.type ? new I(null, e, h) : R), h.abort(), h = null);
|
|
1075
1075
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
1076
|
-
const S =
|
|
1076
|
+
const S = Xn(o.url);
|
|
1077
1077
|
if (S && T.protocols.indexOf(S) === -1) {
|
|
1078
1078
|
r(new y("Unsupported protocol " + S + ":", y.ERR_BAD_REQUEST, e));
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
1081
1081
|
h.send(s || null);
|
|
1082
1082
|
});
|
|
1083
|
-
},
|
|
1083
|
+
}, sr = (e, t) => {
|
|
1084
1084
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1085
1085
|
if (t || n) {
|
|
1086
1086
|
let r = new AbortController(), o;
|
|
@@ -1103,7 +1103,7 @@ const Et = (e) => {
|
|
|
1103
1103
|
const { signal: f } = r;
|
|
1104
1104
|
return f.unsubscribe = () => a.asap(c), f;
|
|
1105
1105
|
}
|
|
1106
|
-
},
|
|
1106
|
+
}, ir = function* (e, t) {
|
|
1107
1107
|
let n = e.byteLength;
|
|
1108
1108
|
if (n < t) {
|
|
1109
1109
|
yield e;
|
|
@@ -1112,10 +1112,10 @@ const Et = (e) => {
|
|
|
1112
1112
|
let r = 0, o;
|
|
1113
1113
|
for (; r < n; )
|
|
1114
1114
|
o = r + t, yield e.slice(r, o), r = o;
|
|
1115
|
-
},
|
|
1116
|
-
for await (const n of
|
|
1117
|
-
yield*
|
|
1118
|
-
},
|
|
1115
|
+
}, ar = async function* (e, t) {
|
|
1116
|
+
for await (const n of cr(e))
|
|
1117
|
+
yield* ir(n, t);
|
|
1118
|
+
}, cr = async function* (e) {
|
|
1119
1119
|
if (e[Symbol.asyncIterator]) {
|
|
1120
1120
|
yield* e;
|
|
1121
1121
|
return;
|
|
@@ -1132,7 +1132,7 @@ const Et = (e) => {
|
|
|
1132
1132
|
await t.cancel();
|
|
1133
1133
|
}
|
|
1134
1134
|
}, je = (e, t, n, r) => {
|
|
1135
|
-
const o =
|
|
1135
|
+
const o = ar(e, t);
|
|
1136
1136
|
let s = 0, i, c = (f) => {
|
|
1137
1137
|
i || (i = !0, r && r(f));
|
|
1138
1138
|
};
|
|
@@ -1160,13 +1160,13 @@ const Et = (e) => {
|
|
|
1160
1160
|
}, {
|
|
1161
1161
|
highWaterMark: 2
|
|
1162
1162
|
});
|
|
1163
|
-
}, ce = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1163
|
+
}, ce = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Rt = ce && typeof ReadableStream == "function", ur = ce && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Tt = (e, ...t) => {
|
|
1164
1164
|
try {
|
|
1165
1165
|
return !!e(...t);
|
|
1166
1166
|
} catch {
|
|
1167
1167
|
return !1;
|
|
1168
1168
|
}
|
|
1169
|
-
},
|
|
1169
|
+
}, lr = Rt && Tt(() => {
|
|
1170
1170
|
let e = !1;
|
|
1171
1171
|
const t = new Request(T.origin, {
|
|
1172
1172
|
body: new ReadableStream(),
|
|
@@ -1176,7 +1176,7 @@ const Et = (e) => {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
}).headers.has("Content-Type");
|
|
1178
1178
|
return e && !t;
|
|
1179
|
-
}), qe = 64 * 1024, ge =
|
|
1179
|
+
}), qe = 64 * 1024, ge = Rt && Tt(() => a.isReadableStream(new Response("").body)), ne = {
|
|
1180
1180
|
stream: ge && ((e) => e.body)
|
|
1181
1181
|
};
|
|
1182
1182
|
ce && ((e) => {
|
|
@@ -1186,7 +1186,7 @@ ce && ((e) => {
|
|
|
1186
1186
|
});
|
|
1187
1187
|
});
|
|
1188
1188
|
})(new Response());
|
|
1189
|
-
const
|
|
1189
|
+
const fr = async (e) => {
|
|
1190
1190
|
if (e == null)
|
|
1191
1191
|
return 0;
|
|
1192
1192
|
if (a.isBlob(e))
|
|
@@ -1199,11 +1199,11 @@ const lr = async (e) => {
|
|
|
1199
1199
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1200
1200
|
return e.byteLength;
|
|
1201
1201
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1202
|
-
return (await
|
|
1203
|
-
},
|
|
1202
|
+
return (await ur(e)).byteLength;
|
|
1203
|
+
}, dr = async (e, t) => {
|
|
1204
1204
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1205
|
-
return n ??
|
|
1206
|
-
},
|
|
1205
|
+
return n ?? fr(t);
|
|
1206
|
+
}, pr = ce && (async (e) => {
|
|
1207
1207
|
let {
|
|
1208
1208
|
url: t,
|
|
1209
1209
|
method: n,
|
|
@@ -1217,15 +1217,15 @@ const lr = async (e) => {
|
|
|
1217
1217
|
headers: u,
|
|
1218
1218
|
withCredentials: d = "same-origin",
|
|
1219
1219
|
fetchOptions: w
|
|
1220
|
-
} =
|
|
1220
|
+
} = St(e);
|
|
1221
1221
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1222
|
-
let g =
|
|
1222
|
+
let g = sr([o, s && s.toAbortSignal()], i), p;
|
|
1223
1223
|
const m = g && g.unsubscribe && (() => {
|
|
1224
1224
|
g.unsubscribe();
|
|
1225
1225
|
});
|
|
1226
1226
|
let h;
|
|
1227
1227
|
try {
|
|
1228
|
-
if (f &&
|
|
1228
|
+
if (f && lr && n !== "get" && n !== "head" && (h = await dr(u, r)) !== 0) {
|
|
1229
1229
|
let O = new Request(t, {
|
|
1230
1230
|
method: "POST",
|
|
1231
1231
|
body: r,
|
|
@@ -1271,7 +1271,7 @@ const lr = async (e) => {
|
|
|
1271
1271
|
l = l || "text";
|
|
1272
1272
|
let k = await ne[a.findKey(ne, l) || "text"](S, e);
|
|
1273
1273
|
return !R && m && m(), await new Promise((O, P) => {
|
|
1274
|
-
|
|
1274
|
+
bt(O, P, {
|
|
1275
1275
|
data: k,
|
|
1276
1276
|
headers: _.from(S.headers),
|
|
1277
1277
|
status: S.status,
|
|
@@ -1289,9 +1289,9 @@ const lr = async (e) => {
|
|
|
1289
1289
|
) : y.from(E, E && E.code, e, p);
|
|
1290
1290
|
}
|
|
1291
1291
|
}), be = {
|
|
1292
|
-
http:
|
|
1293
|
-
xhr:
|
|
1294
|
-
fetch:
|
|
1292
|
+
http: Cn,
|
|
1293
|
+
xhr: or,
|
|
1294
|
+
fetch: pr
|
|
1295
1295
|
};
|
|
1296
1296
|
a.forEach(be, (e, t) => {
|
|
1297
1297
|
if (e) {
|
|
@@ -1302,7 +1302,7 @@ a.forEach(be, (e, t) => {
|
|
|
1302
1302
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1303
1303
|
}
|
|
1304
1304
|
});
|
|
1305
|
-
const
|
|
1305
|
+
const Me = (e) => `- ${e}`, hr = (e) => a.isFunction(e) || e === null || e === !1, Ot = {
|
|
1306
1306
|
getAdapter: (e) => {
|
|
1307
1307
|
e = a.isArray(e) ? e : [e];
|
|
1308
1308
|
const { length: t } = e;
|
|
@@ -1311,7 +1311,7 @@ const He = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1311
1311
|
for (let s = 0; s < t; s++) {
|
|
1312
1312
|
n = e[s];
|
|
1313
1313
|
let i;
|
|
1314
|
-
if (r = n, !
|
|
1314
|
+
if (r = n, !hr(n) && (r = be[(i = String(n)).toLowerCase()], r === void 0))
|
|
1315
1315
|
throw new y(`Unknown adapter '${i}'`);
|
|
1316
1316
|
if (r)
|
|
1317
1317
|
break;
|
|
@@ -1322,8 +1322,8 @@ const He = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1322
1322
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1323
1323
|
);
|
|
1324
1324
|
let i = t ? s.length > 1 ? `since :
|
|
1325
|
-
` + s.map(
|
|
1326
|
-
`) : " " +
|
|
1325
|
+
` + s.map(Me).join(`
|
|
1326
|
+
`) : " " + Me(s[0]) : "as no adapter specified";
|
|
1327
1327
|
throw new y(
|
|
1328
1328
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1329
1329
|
"ERR_NOT_SUPPORT"
|
|
@@ -1337,25 +1337,25 @@ function he(e) {
|
|
|
1337
1337
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1338
1338
|
throw new I(null, e);
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function He(e) {
|
|
1341
1341
|
return he(e), e.headers = _.from(e.headers), e.data = pe.call(
|
|
1342
1342
|
e,
|
|
1343
1343
|
e.transformRequest
|
|
1344
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1344
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ot.getAdapter(e.adapter || V.adapter)(e).then(function(r) {
|
|
1345
1345
|
return he(e), r.data = pe.call(
|
|
1346
1346
|
e,
|
|
1347
1347
|
e.transformResponse,
|
|
1348
1348
|
r
|
|
1349
1349
|
), r.headers = _.from(r.headers), r;
|
|
1350
1350
|
}, function(r) {
|
|
1351
|
-
return
|
|
1351
|
+
return gt(r) || (he(e), r && r.response && (r.response.data = pe.call(
|
|
1352
1352
|
e,
|
|
1353
1353
|
e.transformResponse,
|
|
1354
1354
|
r.response
|
|
1355
1355
|
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
1358
|
-
const
|
|
1358
|
+
const At = "1.11.0", ue = {};
|
|
1359
1359
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1360
1360
|
ue[e] = function(r) {
|
|
1361
1361
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1364,7 +1364,7 @@ const Ot = "1.11.0", ue = {};
|
|
|
1364
1364
|
const $e = {};
|
|
1365
1365
|
ue.transitional = function(t, n, r) {
|
|
1366
1366
|
function o(s, i) {
|
|
1367
|
-
return "[Axios v" +
|
|
1367
|
+
return "[Axios v" + At + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
|
|
1368
1368
|
}
|
|
1369
1369
|
return (s, i, c) => {
|
|
1370
1370
|
if (t === !1)
|
|
@@ -1378,7 +1378,7 @@ ue.transitional = function(t, n, r) {
|
|
|
1378
1378
|
ue.spelling = function(t) {
|
|
1379
1379
|
return (n, r) => !0;
|
|
1380
1380
|
};
|
|
1381
|
-
function
|
|
1381
|
+
function mr(e, t, n) {
|
|
1382
1382
|
if (typeof e != "object")
|
|
1383
1383
|
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1384
1384
|
const r = Object.keys(e);
|
|
@@ -1396,7 +1396,7 @@ function hr(e, t, n) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
const Z = {
|
|
1399
|
-
assertOptions:
|
|
1399
|
+
assertOptions: mr,
|
|
1400
1400
|
validators: ue
|
|
1401
1401
|
}, C = Z.validators;
|
|
1402
1402
|
let N = class {
|
|
@@ -1468,7 +1468,7 @@ let N = class {
|
|
|
1468
1468
|
});
|
|
1469
1469
|
let u, d = 0, w;
|
|
1470
1470
|
if (!f) {
|
|
1471
|
-
const p = [
|
|
1471
|
+
const p = [He.bind(this), void 0];
|
|
1472
1472
|
for (p.unshift(...c), p.push(...l), w = p.length, u = Promise.resolve(n); d < w; )
|
|
1473
1473
|
u = u.then(p[d++], p[d++]);
|
|
1474
1474
|
return u;
|
|
@@ -1485,7 +1485,7 @@ let N = class {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
1487
|
try {
|
|
1488
|
-
u =
|
|
1488
|
+
u = He.call(this, g);
|
|
1489
1489
|
} catch (p) {
|
|
1490
1490
|
return Promise.reject(p);
|
|
1491
1491
|
}
|
|
@@ -1495,8 +1495,8 @@ let N = class {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
getUri(t) {
|
|
1497
1497
|
t = F(this.defaults, t);
|
|
1498
|
-
const n =
|
|
1499
|
-
return
|
|
1498
|
+
const n = Et(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1499
|
+
return mt(n, t.params, t.paramsSerializer);
|
|
1500
1500
|
}
|
|
1501
1501
|
};
|
|
1502
1502
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1523,7 +1523,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
N.prototype[t] = n(), N.prototype[t + "Form"] = n(!0);
|
|
1525
1525
|
});
|
|
1526
|
-
let
|
|
1526
|
+
let yr = class _t {
|
|
1527
1527
|
constructor(t) {
|
|
1528
1528
|
if (typeof t != "function")
|
|
1529
1529
|
throw new TypeError("executor must be a function.");
|
|
@@ -1589,19 +1589,19 @@ let mr = class At {
|
|
|
1589
1589
|
static source() {
|
|
1590
1590
|
let t;
|
|
1591
1591
|
return {
|
|
1592
|
-
token: new
|
|
1592
|
+
token: new _t(function(o) {
|
|
1593
1593
|
t = o;
|
|
1594
1594
|
}),
|
|
1595
1595
|
cancel: t
|
|
1596
1596
|
};
|
|
1597
1597
|
}
|
|
1598
1598
|
};
|
|
1599
|
-
function
|
|
1599
|
+
function wr(e) {
|
|
1600
1600
|
return function(n) {
|
|
1601
1601
|
return e.apply(null, n);
|
|
1602
1602
|
};
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1604
|
+
function gr(e) {
|
|
1605
1605
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1606
1606
|
}
|
|
1607
1607
|
const Ee = {
|
|
@@ -1672,30 +1672,30 @@ const Ee = {
|
|
|
1672
1672
|
Object.entries(Ee).forEach(([e, t]) => {
|
|
1673
1673
|
Ee[t] = e;
|
|
1674
1674
|
});
|
|
1675
|
-
function
|
|
1676
|
-
const t = new N(e), n =
|
|
1675
|
+
function xt(e) {
|
|
1676
|
+
const t = new N(e), n = rt(N.prototype.request, t);
|
|
1677
1677
|
return a.extend(n, N.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1678
|
-
return
|
|
1678
|
+
return xt(F(e, o));
|
|
1679
1679
|
}, n;
|
|
1680
1680
|
}
|
|
1681
|
-
const b =
|
|
1681
|
+
const b = xt(V);
|
|
1682
1682
|
b.Axios = N;
|
|
1683
1683
|
b.CanceledError = I;
|
|
1684
|
-
b.CancelToken =
|
|
1685
|
-
b.isCancel =
|
|
1686
|
-
b.VERSION =
|
|
1684
|
+
b.CancelToken = yr;
|
|
1685
|
+
b.isCancel = gt;
|
|
1686
|
+
b.VERSION = At;
|
|
1687
1687
|
b.toFormData = ae;
|
|
1688
1688
|
b.AxiosError = y;
|
|
1689
1689
|
b.Cancel = b.CanceledError;
|
|
1690
1690
|
b.all = function(t) {
|
|
1691
1691
|
return Promise.all(t);
|
|
1692
1692
|
};
|
|
1693
|
-
b.spread =
|
|
1694
|
-
b.isAxiosError =
|
|
1693
|
+
b.spread = wr;
|
|
1694
|
+
b.isAxiosError = gr;
|
|
1695
1695
|
b.mergeConfig = F;
|
|
1696
1696
|
b.AxiosHeaders = _;
|
|
1697
|
-
b.formToJSON = (e) =>
|
|
1698
|
-
b.getAdapter =
|
|
1697
|
+
b.formToJSON = (e) => wt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1698
|
+
b.getAdapter = Ot.getAdapter;
|
|
1699
1699
|
b.HttpStatusCode = Ee;
|
|
1700
1700
|
b.default = b;
|
|
1701
1701
|
const {
|
|
@@ -1725,7 +1725,7 @@ function K(e) {
|
|
|
1725
1725
|
}
|
|
1726
1726
|
return e;
|
|
1727
1727
|
}
|
|
1728
|
-
var
|
|
1728
|
+
var br = {
|
|
1729
1729
|
read: function(e) {
|
|
1730
1730
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1731
1731
|
},
|
|
@@ -1786,14 +1786,14 @@ function Se(e, t) {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
);
|
|
1788
1788
|
}
|
|
1789
|
-
var
|
|
1790
|
-
const
|
|
1789
|
+
var Er = Se(br, { path: "/" }), ze;
|
|
1790
|
+
const Ct = typeof window < "u", Sr = (e) => typeof e == "string", Je = () => +Date.now(), Re = () => {
|
|
1791
1791
|
};
|
|
1792
|
-
|
|
1792
|
+
Ct && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1793
1793
|
function ke(e) {
|
|
1794
|
-
return typeof e == "function" ? e() :
|
|
1794
|
+
return typeof e == "function" ? e() : Ft(e);
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function Rr(e, t) {
|
|
1797
1797
|
function n(...r) {
|
|
1798
1798
|
return new Promise((o, s) => {
|
|
1799
1799
|
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
|
|
@@ -1801,7 +1801,7 @@ function Sr(e, t) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
return n;
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function Tr(e, t = !0, n = !0, r = !1) {
|
|
1805
1805
|
let o = 0, s, i = !0, c = Re, f;
|
|
1806
1806
|
const l = () => {
|
|
1807
1807
|
s && (clearTimeout(s), s = void 0, c(), c = Re);
|
|
@@ -1815,45 +1815,45 @@ function Rr(e, t = !0, n = !0, r = !1) {
|
|
|
1815
1815
|
})), !n && !s && (s = setTimeout(() => i = !0, w)), i = !1, f);
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
|
-
function Tr(e) {
|
|
1819
|
-
return e;
|
|
1820
|
-
}
|
|
1821
1818
|
function Or(e) {
|
|
1822
|
-
return
|
|
1819
|
+
return e;
|
|
1823
1820
|
}
|
|
1824
1821
|
function Ar(e) {
|
|
1822
|
+
return Dt() ? (vt(e), !0) : !1;
|
|
1823
|
+
}
|
|
1824
|
+
function _r(e) {
|
|
1825
1825
|
var t;
|
|
1826
1826
|
const n = ke(e);
|
|
1827
1827
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
1828
1828
|
}
|
|
1829
|
-
const
|
|
1829
|
+
const kt = Ct ? window : void 0;
|
|
1830
1830
|
function Ve(...e) {
|
|
1831
1831
|
let t, n, r, o;
|
|
1832
|
-
if (
|
|
1832
|
+
if (Sr(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = kt) : [t, n, r, o] = e, !t)
|
|
1833
1833
|
return Re;
|
|
1834
1834
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
1835
1835
|
const s = [], i = () => {
|
|
1836
1836
|
s.forEach((u) => u()), s.length = 0;
|
|
1837
|
-
}, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f = Oe(() => [
|
|
1837
|
+
}, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f = Oe(() => [_r(t), ke(o)], ([u, d]) => {
|
|
1838
1838
|
i(), u && s.push(...n.flatMap((w) => r.map((g) => c(u, w, g, d))));
|
|
1839
1839
|
}, { immediate: !0, flush: "post" }), l = () => {
|
|
1840
1840
|
f(), i();
|
|
1841
1841
|
};
|
|
1842
|
-
return
|
|
1842
|
+
return Ar(l), l;
|
|
1843
1843
|
}
|
|
1844
1844
|
const We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ke = "__vueuse_ssr_handlers__";
|
|
1845
1845
|
We[Ke] = We[Ke] || {};
|
|
1846
|
-
const
|
|
1847
|
-
function
|
|
1846
|
+
const xr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Cr = 6e4;
|
|
1847
|
+
function kr(e = Cr, t = {}) {
|
|
1848
1848
|
const {
|
|
1849
1849
|
initialState: n = !1,
|
|
1850
1850
|
listenForVisibilityChange: r = !0,
|
|
1851
|
-
events: o =
|
|
1852
|
-
window: s =
|
|
1853
|
-
eventFilter: i =
|
|
1851
|
+
events: o = xr,
|
|
1852
|
+
window: s = kt,
|
|
1853
|
+
eventFilter: i = Tr(50)
|
|
1854
1854
|
} = t, c = ee(n), f = ee(Je());
|
|
1855
1855
|
let l;
|
|
1856
|
-
const u =
|
|
1856
|
+
const u = Rr(i, () => {
|
|
1857
1857
|
c.value = !1, f.value = Je(), clearTimeout(l), l = setTimeout(() => c.value = !0, e);
|
|
1858
1858
|
});
|
|
1859
1859
|
if (s) {
|
|
@@ -1870,15 +1870,15 @@ var Qe;
|
|
|
1870
1870
|
(function(e) {
|
|
1871
1871
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
1872
1872
|
})(Qe || (Qe = {}));
|
|
1873
|
-
var
|
|
1873
|
+
var Pr = Object.defineProperty, Xe = Object.getOwnPropertySymbols, Ur = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable, Ge = (e, t, n) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nr = (e, t) => {
|
|
1874
1874
|
for (var n in t || (t = {}))
|
|
1875
|
-
|
|
1875
|
+
Ur.call(t, n) && Ge(e, n, t[n]);
|
|
1876
1876
|
if (Xe)
|
|
1877
1877
|
for (var n of Xe(t))
|
|
1878
|
-
|
|
1878
|
+
Lr.call(t, n) && Ge(e, n, t[n]);
|
|
1879
1879
|
return e;
|
|
1880
1880
|
};
|
|
1881
|
-
const
|
|
1881
|
+
const Fr = {
|
|
1882
1882
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1883
1883
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1884
1884
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1904,27 +1904,27 @@ const Nr = {
|
|
|
1904
1904
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1905
1905
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1906
1906
|
};
|
|
1907
|
-
|
|
1908
|
-
linear:
|
|
1909
|
-
},
|
|
1907
|
+
Nr({
|
|
1908
|
+
linear: Or
|
|
1909
|
+
}, Fr);
|
|
1910
1910
|
let Te;
|
|
1911
|
-
const
|
|
1911
|
+
const Pt = { triggerProxySso: "triggerProxySso" }, Dr = () => {
|
|
1912
1912
|
Te = (e) => {
|
|
1913
1913
|
var n;
|
|
1914
1914
|
const { origin: t } = new URL(location.href);
|
|
1915
1915
|
(n = window.top) == null || n.postMessage(
|
|
1916
|
-
{ type:
|
|
1916
|
+
{ type: Pt.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
|
|
1917
1917
|
t
|
|
1918
1918
|
);
|
|
1919
1919
|
};
|
|
1920
|
-
},
|
|
1920
|
+
}, vr = (e) => {
|
|
1921
1921
|
window.top === window.self && window.addEventListener("message", (t) => {
|
|
1922
1922
|
const { type: n, data: r } = t.data;
|
|
1923
|
-
n ===
|
|
1923
|
+
n === Pt.triggerProxySso && (e == null || e(r));
|
|
1924
1924
|
});
|
|
1925
1925
|
};
|
|
1926
|
-
window.top !== window.self &&
|
|
1927
|
-
let
|
|
1926
|
+
window.top !== window.self && Dr();
|
|
1927
|
+
let Ut = (e = 21) => {
|
|
1928
1928
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
1929
1929
|
for (; e--; ) {
|
|
1930
1930
|
let r = n[e] & 63;
|
|
@@ -1939,35 +1939,35 @@ const Y = (e) => new URL(location.href).searchParams.get(e), D = {
|
|
|
1939
1939
|
// 清除登录信息
|
|
1940
1940
|
token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
|
|
1941
1941
|
// 通过code获取token
|
|
1942
|
-
}, { baseURL: Ze, noRedireLogin:
|
|
1942
|
+
}, { baseURL: Ze, noRedireLogin: Ir = !1 } = Ae(), Ye = localStorage.getItem("oauth-redirect_url") || "", re = Ye || location.origin + "/home", j = {
|
|
1943
1943
|
response_type: "code",
|
|
1944
1944
|
scope: "sever",
|
|
1945
1945
|
client_id: "sys",
|
|
1946
|
-
client_secret:
|
|
1946
|
+
client_secret: It("das123"),
|
|
1947
1947
|
state: +/* @__PURE__ */ new Date()
|
|
1948
|
-
},
|
|
1948
|
+
}, et = (e) => {
|
|
1949
1949
|
const t = new URL(window.location.href), n = new URLSearchParams(t.search);
|
|
1950
1950
|
e.forEach((r) => {
|
|
1951
1951
|
n.delete(r);
|
|
1952
1952
|
}), t.search = n.toString(), window.history.replaceState({}, "", t);
|
|
1953
|
-
},
|
|
1953
|
+
}, Lt = ee(!1), Nt = (e) => {
|
|
1954
1954
|
if (e <= 0) return;
|
|
1955
|
-
const { idle: t } =
|
|
1955
|
+
const { idle: t } = kr(e);
|
|
1956
1956
|
Oe(
|
|
1957
1957
|
() => t.value,
|
|
1958
1958
|
(n) => {
|
|
1959
|
-
n === !0 && (
|
|
1959
|
+
n === !0 && (Lt.value = !0);
|
|
1960
1960
|
}
|
|
1961
1961
|
);
|
|
1962
1962
|
};
|
|
1963
|
-
localStorage.getItem("idelTime") &&
|
|
1964
|
-
let
|
|
1963
|
+
localStorage.getItem("idelTime") && Nt(Number(localStorage.getItem("idelTime")));
|
|
1964
|
+
let tt = "";
|
|
1965
1965
|
const Br = async () => {
|
|
1966
1966
|
const e = Y("code") || "", t = Y("redirect_url") || "/", n = Y("kingdee_token") || "";
|
|
1967
1967
|
if (!e) return q();
|
|
1968
|
-
if (e ===
|
|
1969
|
-
return
|
|
1970
|
-
|
|
1968
|
+
if (e === tt)
|
|
1969
|
+
return et(["code", "state", "kingdee_token", "redirect_url"]), window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t)), localStorage.removeItem("oauth-redirect_url"), q();
|
|
1970
|
+
tt = e, et(["code", "state", "kingdee_token", "redirect_url"]);
|
|
1971
1971
|
let r = {};
|
|
1972
1972
|
const o = {
|
|
1973
1973
|
grant_type: "authorization_code",
|
|
@@ -1976,7 +1976,7 @@ const Br = async () => {
|
|
|
1976
1976
|
client_secret: j.client_secret,
|
|
1977
1977
|
redirect_uri: re,
|
|
1978
1978
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
1979
|
-
nonce:
|
|
1979
|
+
nonce: Ut()
|
|
1980
1980
|
};
|
|
1981
1981
|
n && (sessionStorage.setItem("kingdee_token", n), o.redirect_uri = `${o.redirect_uri}?kingdee_token=${n}`);
|
|
1982
1982
|
try {
|
|
@@ -1992,7 +1992,7 @@ const Br = async () => {
|
|
|
1992
1992
|
params: o,
|
|
1993
1993
|
headers: {
|
|
1994
1994
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
1995
|
-
"csrf-token":
|
|
1995
|
+
"csrf-token": Er.get("csrf-token")
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
1998
|
);
|
|
@@ -2002,15 +2002,15 @@ const Br = async () => {
|
|
|
2002
2002
|
refreshToken: c,
|
|
2003
2003
|
info: r.data
|
|
2004
2004
|
};
|
|
2005
|
-
|
|
2005
|
+
H().save(l), await nt(s);
|
|
2006
2006
|
const u = Number(f) - (/* @__PURE__ */ new Date()).getTime();
|
|
2007
|
-
return u && u > 0 && (
|
|
2007
|
+
return u && u > 0 && (Nt(u), u && localStorage.setItem("idelTime", u.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), localStorage.removeItem("oauth-redirect_url"), s;
|
|
2008
2008
|
} catch {
|
|
2009
2009
|
return le({ ...j, redirect_uri: re });
|
|
2010
2010
|
}
|
|
2011
2011
|
}, Q = ee(!1), po = async (e) => {
|
|
2012
2012
|
if (e.public) return "";
|
|
2013
|
-
if (
|
|
2013
|
+
if (Lt.value)
|
|
2014
2014
|
return le({ ...j, redirect_uri: re });
|
|
2015
2015
|
if (Q.value)
|
|
2016
2016
|
return await new Promise(async (r) => {
|
|
@@ -2025,10 +2025,10 @@ const Br = async () => {
|
|
|
2025
2025
|
);
|
|
2026
2026
|
});
|
|
2027
2027
|
let t = q();
|
|
2028
|
-
const { accessTokenExpiredAt: n } =
|
|
2028
|
+
const { accessTokenExpiredAt: n } = H().getData();
|
|
2029
2029
|
Q.value = !0;
|
|
2030
2030
|
try {
|
|
2031
|
-
Y("code") || "" ? t = await Br() : typeof n == "number" && n > 0 && +/* @__PURE__ */ new Date() + 6e4 > n && (t = await
|
|
2031
|
+
Y("code") || "" ? t = await Br() : typeof n == "number" && n > 0 && +/* @__PURE__ */ new Date() + 6e4 > n && (t = await Mr(j));
|
|
2032
2032
|
} catch {
|
|
2033
2033
|
} finally {
|
|
2034
2034
|
Q.value = !1;
|
|
@@ -2043,12 +2043,12 @@ const Br = async () => {
|
|
|
2043
2043
|
localStorage.removeItem("thirdLogouSource"), location.href = r;
|
|
2044
2044
|
}
|
|
2045
2045
|
}, le = (e) => {
|
|
2046
|
-
if (
|
|
2046
|
+
if (Ir) return;
|
|
2047
2047
|
const { baseURL: t, ssoLocale: n } = Ae();
|
|
2048
2048
|
if (Te) return Te(e);
|
|
2049
2049
|
e.logout = "true", n && (e.locale = "locale");
|
|
2050
2050
|
const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${D.oauth}?${r}`;
|
|
2051
|
-
if (localStorage.removeItem("idelTime"), sessionStorage.clear(),
|
|
2051
|
+
if (localStorage.removeItem("idelTime"), sessionStorage.clear(), H().remove(), jr())
|
|
2052
2052
|
qr(o);
|
|
2053
2053
|
else {
|
|
2054
2054
|
try {
|
|
@@ -2058,9 +2058,9 @@ const Br = async () => {
|
|
|
2058
2058
|
window.__isAutoCloseApp = !1, location.replace(o);
|
|
2059
2059
|
}
|
|
2060
2060
|
};
|
|
2061
|
-
|
|
2062
|
-
const
|
|
2063
|
-
const { baseURL: t } = Ae(), { refreshToken: n } =
|
|
2061
|
+
vr(le);
|
|
2062
|
+
const Mr = async (e) => {
|
|
2063
|
+
const { baseURL: t } = Ae(), { refreshToken: n } = H().getData();
|
|
2064
2064
|
try {
|
|
2065
2065
|
await b.create().get(D.token, { baseURL: t });
|
|
2066
2066
|
} catch {
|
|
@@ -2077,7 +2077,7 @@ const Hr = async (e) => {
|
|
|
2077
2077
|
client_id: e.client_id,
|
|
2078
2078
|
client_secret: e.client_secret,
|
|
2079
2079
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
2080
|
-
nonce:
|
|
2080
|
+
nonce: Ut()
|
|
2081
2081
|
}
|
|
2082
2082
|
}
|
|
2083
2083
|
), { access_token: o = "", expires_in: s = 0, refresh_token: i = "" } = r.data, c = {
|
|
@@ -2086,24 +2086,24 @@ const Hr = async (e) => {
|
|
|
2086
2086
|
refreshToken: i,
|
|
2087
2087
|
info: r.data
|
|
2088
2088
|
};
|
|
2089
|
-
return
|
|
2089
|
+
return H().save(c), await nt(o), o;
|
|
2090
2090
|
} catch {
|
|
2091
2091
|
return le({ ...e, redirect_uri: re });
|
|
2092
2092
|
}
|
|
2093
|
-
},
|
|
2093
|
+
}, H = () => ({
|
|
2094
2094
|
getData: () => ({
|
|
2095
2095
|
accessToken: q(),
|
|
2096
2096
|
accessTokenExpiredAt: fe("accessTokenExpiredAt") ? Number(fe("accessTokenExpiredAt")) : "",
|
|
2097
2097
|
refreshToken: fe("refreshToken")
|
|
2098
2098
|
}),
|
|
2099
2099
|
save: (e) => {
|
|
2100
|
-
|
|
2100
|
+
jt(e.accessToken ?? "", {
|
|
2101
2101
|
accessTokenExpiredAt: e.accessTokenExpiredAt,
|
|
2102
2102
|
refreshToken: e.refreshToken
|
|
2103
|
-
}),
|
|
2103
|
+
}), Mt(e);
|
|
2104
2104
|
},
|
|
2105
2105
|
remove: () => {
|
|
2106
|
-
|
|
2106
|
+
Bt(), qt();
|
|
2107
2107
|
}
|
|
2108
2108
|
});
|
|
2109
2109
|
export {
|
|
@@ -2113,5 +2113,5 @@ export {
|
|
|
2113
2113
|
j as getTokenParams,
|
|
2114
2114
|
le as login,
|
|
2115
2115
|
re as real_uri,
|
|
2116
|
-
|
|
2116
|
+
H as tokenStorage
|
|
2117
2117
|
};
|