@das-fed/utils 7.0.7-hot.57 → 7.0.7-hot.58
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/modules/app-manage/index.js +800 -782
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +800 -782
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +801 -787
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +782 -800
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +800 -782
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1053 -1039
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/link/index.js +800 -782
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +800 -782
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +782 -800
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +784 -802
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +759 -773
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +800 -782
- package/api-services/modules/tool/index.js.gz +0 -0
- package/create-api-service/index.js +799 -781
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +2 -15
- package/create-api-service/sso/index.js +469 -469
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +283 -267
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/curring-http/type.d.ts +93 -93
- package/esm-map.json +2 -1
- package/package.json +4 -4
- package/token-tools/index.d.ts +35 -0
- package/token-tools/index.js +59 -25
- package/token-tools/index.js.gz +0 -0
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { getConfig as
|
|
2
|
-
|
|
1
|
+
import { getConfig as Fe } from "@das-fed/utils/config";
|
|
2
|
+
import { clearPlatformAuthStorage as ke, getAccessToken as ut } from "@das-fed/utils/token-tools";
|
|
3
|
+
function Be(e, t) {
|
|
3
4
|
return function() {
|
|
4
5
|
return e.apply(t, arguments);
|
|
5
6
|
};
|
|
6
7
|
}
|
|
7
|
-
const { toString:
|
|
8
|
-
const n =
|
|
8
|
+
const { toString: lt } = Object.prototype, { getPrototypeOf: pe } = Object, { iterator: X, toStringTag: De } = Symbol, Q = /* @__PURE__ */ ((e) => (t) => {
|
|
9
|
+
const n = lt.call(t);
|
|
9
10
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
11
|
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => Q(t) === e), Y = (e) => (t) => typeof t === e, { isArray: B } = Array, I = Y("undefined");
|
|
11
12
|
function q(e) {
|
|
12
13
|
return e !== null && !I(e) && e.constructor !== null && !I(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
15
|
+
const je = x("ArrayBuffer");
|
|
16
|
+
function ft(e) {
|
|
16
17
|
let t;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
18
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
|
|
18
19
|
}
|
|
19
|
-
const
|
|
20
|
+
const dt = Y("string"), A = Y("function"), Ie = Y("number"), M = (e) => e !== null && typeof e == "object", pt = (e) => e === !0 || e === !1, J = (e) => {
|
|
20
21
|
if (Q(e) !== "object")
|
|
21
22
|
return !1;
|
|
22
23
|
const t = pe(e);
|
|
23
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
24
|
-
},
|
|
25
|
-
if (!
|
|
24
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(De in e) && !(X in e);
|
|
25
|
+
}, ht = (e) => {
|
|
26
|
+
if (!M(e) || q(e))
|
|
26
27
|
return !1;
|
|
27
28
|
try {
|
|
28
29
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
29
30
|
} catch {
|
|
30
31
|
return !1;
|
|
31
32
|
}
|
|
32
|
-
},
|
|
33
|
+
}, mt = x("Date"), yt = x("File"), wt = x("Blob"), gt = x("FileList"), bt = (e) => M(e) && A(e.pipe), Et = (e) => {
|
|
33
34
|
let t;
|
|
34
35
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = Q(e)) === "formdata" || // detect form-data instance
|
|
35
36
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
36
|
-
},
|
|
37
|
-
function
|
|
37
|
+
}, Rt = x("URLSearchParams"), [St, Ot, Tt, At] = ["ReadableStream", "Request", "Response", "Headers"].map(x), Ct = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
38
|
+
function H(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
38
39
|
if (e === null || typeof e > "u")
|
|
39
40
|
return;
|
|
40
41
|
let r, s;
|
|
@@ -50,7 +51,7 @@ function M(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
50
51
|
c = i[r], t.call(null, e[c], c, e);
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function qe(e, t) {
|
|
54
55
|
if (q(e))
|
|
55
56
|
return null;
|
|
56
57
|
t = t.toLowerCase();
|
|
@@ -61,23 +62,23 @@ function je(e, t) {
|
|
|
61
62
|
return s;
|
|
62
63
|
return null;
|
|
63
64
|
}
|
|
64
|
-
const
|
|
65
|
+
const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Me = (e) => !I(e) && e !== N;
|
|
65
66
|
function ie() {
|
|
66
|
-
const { caseless: e } =
|
|
67
|
-
const i = e &&
|
|
67
|
+
const { caseless: e } = Me(this) && this || {}, t = {}, n = (r, s) => {
|
|
68
|
+
const i = e && qe(t, s) || s;
|
|
68
69
|
J(t[i]) && J(r) ? t[i] = ie(t[i], r) : J(r) ? t[i] = ie({}, r) : B(r) ? t[i] = r.slice() : t[i] = r;
|
|
69
70
|
};
|
|
70
71
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
71
|
-
arguments[r] &&
|
|
72
|
+
arguments[r] && H(arguments[r], n);
|
|
72
73
|
return t;
|
|
73
74
|
}
|
|
74
|
-
const
|
|
75
|
-
n && A(s) ? e[i] =
|
|
76
|
-
}, { allOwnKeys: r }), e),
|
|
75
|
+
const xt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
|
|
76
|
+
n && A(s) ? e[i] = Be(s, n) : e[i] = s;
|
|
77
|
+
}, { allOwnKeys: r }), e), _t = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ut = (e, t, n, r) => {
|
|
77
78
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
78
79
|
value: t.prototype
|
|
79
80
|
}), n && Object.assign(e.prototype, n);
|
|
80
|
-
},
|
|
81
|
+
}, Pt = (e, t, n, r) => {
|
|
81
82
|
let s, i, o;
|
|
82
83
|
const c = {};
|
|
83
84
|
if (t = t || {}, e == null) return t;
|
|
@@ -87,45 +88,45 @@ const At = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, i) => {
|
|
|
87
88
|
e = n !== !1 && pe(e);
|
|
88
89
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
89
90
|
return t;
|
|
90
|
-
},
|
|
91
|
+
}, Lt = (e, t, n) => {
|
|
91
92
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
92
93
|
const r = e.indexOf(t, n);
|
|
93
94
|
return r !== -1 && r === n;
|
|
94
|
-
},
|
|
95
|
+
}, Nt = (e) => {
|
|
95
96
|
if (!e) return null;
|
|
96
97
|
if (B(e)) return e;
|
|
97
98
|
let t = e.length;
|
|
98
|
-
if (!
|
|
99
|
+
if (!Ie(t)) return null;
|
|
99
100
|
const n = new Array(t);
|
|
100
101
|
for (; t-- > 0; )
|
|
101
102
|
n[t] = e[t];
|
|
102
103
|
return n;
|
|
103
|
-
},
|
|
104
|
+
}, Ft = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && pe(Uint8Array)), kt = (e, t) => {
|
|
104
105
|
const r = (e && e[X]).call(e);
|
|
105
106
|
let s;
|
|
106
107
|
for (; (s = r.next()) && !s.done; ) {
|
|
107
108
|
const i = s.value;
|
|
108
109
|
t.call(e, i[0], i[1]);
|
|
109
110
|
}
|
|
110
|
-
},
|
|
111
|
+
}, Bt = (e, t) => {
|
|
111
112
|
let n;
|
|
112
113
|
const r = [];
|
|
113
114
|
for (; (n = e.exec(t)) !== null; )
|
|
114
115
|
r.push(n);
|
|
115
116
|
return r;
|
|
116
|
-
},
|
|
117
|
+
}, Dt = x("HTMLFormElement"), jt = (e) => e.toLowerCase().replace(
|
|
117
118
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
118
119
|
function(n, r, s) {
|
|
119
120
|
return r.toUpperCase() + s;
|
|
120
121
|
}
|
|
121
|
-
), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
122
|
+
), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), It = x("RegExp"), He = (e, t) => {
|
|
122
123
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
123
|
-
|
|
124
|
+
H(n, (s, i) => {
|
|
124
125
|
let o;
|
|
125
126
|
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
126
127
|
}), Object.defineProperties(e, r);
|
|
127
|
-
},
|
|
128
|
-
|
|
128
|
+
}, qt = (e) => {
|
|
129
|
+
He(e, (t, n) => {
|
|
129
130
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
130
131
|
return !1;
|
|
131
132
|
const r = e[n];
|
|
@@ -139,21 +140,21 @@ const At = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, i) => {
|
|
|
139
140
|
});
|
|
140
141
|
}
|
|
141
142
|
});
|
|
142
|
-
},
|
|
143
|
+
}, Mt = (e, t) => {
|
|
143
144
|
const n = {}, r = (s) => {
|
|
144
145
|
s.forEach((i) => {
|
|
145
146
|
n[i] = !0;
|
|
146
147
|
});
|
|
147
148
|
};
|
|
148
149
|
return B(e) ? r(e) : r(String(e).split(t)), n;
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
function
|
|
152
|
-
return !!(e && A(e.append) && e[
|
|
150
|
+
}, Ht = () => {
|
|
151
|
+
}, zt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
152
|
+
function $t(e) {
|
|
153
|
+
return !!(e && A(e.append) && e[De] === "FormData" && e[X]);
|
|
153
154
|
}
|
|
154
|
-
const
|
|
155
|
+
const vt = (e) => {
|
|
155
156
|
const t = new Array(10), n = (r, s) => {
|
|
156
|
-
if (
|
|
157
|
+
if (M(r)) {
|
|
157
158
|
if (t.indexOf(r) >= 0)
|
|
158
159
|
return;
|
|
159
160
|
if (q(r))
|
|
@@ -161,7 +162,7 @@ const zt = (e) => {
|
|
|
161
162
|
if (!("toJSON" in r)) {
|
|
162
163
|
t[s] = r;
|
|
163
164
|
const i = B(r) ? [] : {};
|
|
164
|
-
return
|
|
165
|
+
return H(r, (o, c) => {
|
|
165
166
|
const f = n(o, s + 1);
|
|
166
167
|
!I(f) && (i[c] = f);
|
|
167
168
|
}), t[s] = void 0, i;
|
|
@@ -170,72 +171,72 @@ const zt = (e) => {
|
|
|
170
171
|
return r;
|
|
171
172
|
};
|
|
172
173
|
return n(e, 0);
|
|
173
|
-
},
|
|
174
|
-
s ===
|
|
174
|
+
}, Jt = x("AsyncFunction"), Vt = (e) => e && (M(e) || A(e)) && A(e.then) && A(e.catch), ze = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: i }) => {
|
|
175
|
+
s === N && i === n && r.length && r.shift()();
|
|
175
176
|
}, !1), (s) => {
|
|
176
|
-
r.push(s),
|
|
177
|
+
r.push(s), N.postMessage(n, "*");
|
|
177
178
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
178
179
|
typeof setImmediate == "function",
|
|
179
|
-
A(
|
|
180
|
-
),
|
|
180
|
+
A(N.postMessage)
|
|
181
|
+
), Kt = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || ze, Wt = (e) => e != null && A(e[X]), a = {
|
|
181
182
|
isArray: B,
|
|
182
|
-
isArrayBuffer:
|
|
183
|
+
isArrayBuffer: je,
|
|
183
184
|
isBuffer: q,
|
|
184
|
-
isFormData:
|
|
185
|
-
isArrayBufferView:
|
|
186
|
-
isString:
|
|
187
|
-
isNumber:
|
|
188
|
-
isBoolean:
|
|
189
|
-
isObject:
|
|
185
|
+
isFormData: Et,
|
|
186
|
+
isArrayBufferView: ft,
|
|
187
|
+
isString: dt,
|
|
188
|
+
isNumber: Ie,
|
|
189
|
+
isBoolean: pt,
|
|
190
|
+
isObject: M,
|
|
190
191
|
isPlainObject: J,
|
|
191
|
-
isEmptyObject:
|
|
192
|
-
isReadableStream:
|
|
193
|
-
isRequest:
|
|
194
|
-
isResponse:
|
|
195
|
-
isHeaders:
|
|
192
|
+
isEmptyObject: ht,
|
|
193
|
+
isReadableStream: St,
|
|
194
|
+
isRequest: Ot,
|
|
195
|
+
isResponse: Tt,
|
|
196
|
+
isHeaders: At,
|
|
196
197
|
isUndefined: I,
|
|
197
|
-
isDate:
|
|
198
|
-
isFile:
|
|
199
|
-
isBlob:
|
|
200
|
-
isRegExp:
|
|
198
|
+
isDate: mt,
|
|
199
|
+
isFile: yt,
|
|
200
|
+
isBlob: wt,
|
|
201
|
+
isRegExp: It,
|
|
201
202
|
isFunction: A,
|
|
202
|
-
isStream:
|
|
203
|
-
isURLSearchParams:
|
|
204
|
-
isTypedArray:
|
|
205
|
-
isFileList:
|
|
206
|
-
forEach:
|
|
203
|
+
isStream: bt,
|
|
204
|
+
isURLSearchParams: Rt,
|
|
205
|
+
isTypedArray: Ft,
|
|
206
|
+
isFileList: gt,
|
|
207
|
+
forEach: H,
|
|
207
208
|
merge: ie,
|
|
208
|
-
extend:
|
|
209
|
-
trim:
|
|
210
|
-
stripBOM:
|
|
211
|
-
inherits:
|
|
212
|
-
toFlatObject:
|
|
209
|
+
extend: xt,
|
|
210
|
+
trim: Ct,
|
|
211
|
+
stripBOM: _t,
|
|
212
|
+
inherits: Ut,
|
|
213
|
+
toFlatObject: Pt,
|
|
213
214
|
kindOf: Q,
|
|
214
215
|
kindOfTest: x,
|
|
215
|
-
endsWith:
|
|
216
|
-
toArray:
|
|
217
|
-
forEachEntry:
|
|
218
|
-
matchAll:
|
|
219
|
-
isHTMLForm:
|
|
216
|
+
endsWith: Lt,
|
|
217
|
+
toArray: Nt,
|
|
218
|
+
forEachEntry: kt,
|
|
219
|
+
matchAll: Bt,
|
|
220
|
+
isHTMLForm: Dt,
|
|
220
221
|
hasOwnProperty: be,
|
|
221
222
|
hasOwnProp: be,
|
|
222
223
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
223
|
-
reduceDescriptors:
|
|
224
|
-
freezeMethods:
|
|
225
|
-
toObjectSet:
|
|
226
|
-
toCamelCase:
|
|
227
|
-
noop:
|
|
228
|
-
toFiniteNumber:
|
|
229
|
-
findKey:
|
|
230
|
-
global:
|
|
231
|
-
isContextDefined:
|
|
232
|
-
isSpecCompliantForm:
|
|
233
|
-
toJSONObject:
|
|
234
|
-
isAsyncFn:
|
|
235
|
-
isThenable:
|
|
236
|
-
setImmediate:
|
|
237
|
-
asap:
|
|
238
|
-
isIterable:
|
|
224
|
+
reduceDescriptors: He,
|
|
225
|
+
freezeMethods: qt,
|
|
226
|
+
toObjectSet: Mt,
|
|
227
|
+
toCamelCase: jt,
|
|
228
|
+
noop: Ht,
|
|
229
|
+
toFiniteNumber: zt,
|
|
230
|
+
findKey: qe,
|
|
231
|
+
global: N,
|
|
232
|
+
isContextDefined: Me,
|
|
233
|
+
isSpecCompliantForm: $t,
|
|
234
|
+
toJSONObject: vt,
|
|
235
|
+
isAsyncFn: Jt,
|
|
236
|
+
isThenable: Vt,
|
|
237
|
+
setImmediate: ze,
|
|
238
|
+
asap: Kt,
|
|
239
|
+
isIterable: Wt
|
|
239
240
|
};
|
|
240
241
|
function m(e, t, n, r, s) {
|
|
241
242
|
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), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
@@ -261,7 +262,7 @@ a.inherits(m, Error, {
|
|
|
261
262
|
};
|
|
262
263
|
}
|
|
263
264
|
});
|
|
264
|
-
const
|
|
265
|
+
const $e = m.prototype, ve = {};
|
|
265
266
|
[
|
|
266
267
|
"ERR_BAD_OPTION_VALUE",
|
|
267
268
|
"ERR_BAD_OPTION",
|
|
@@ -277,32 +278,32 @@ const Me = m.prototype, ze = {};
|
|
|
277
278
|
"ERR_INVALID_URL"
|
|
278
279
|
// eslint-disable-next-line func-names
|
|
279
280
|
].forEach((e) => {
|
|
280
|
-
|
|
281
|
+
ve[e] = { value: e };
|
|
281
282
|
});
|
|
282
|
-
Object.defineProperties(m,
|
|
283
|
-
Object.defineProperty(
|
|
283
|
+
Object.defineProperties(m, ve);
|
|
284
|
+
Object.defineProperty($e, "isAxiosError", { value: !0 });
|
|
284
285
|
m.from = (e, t, n, r, s, i) => {
|
|
285
|
-
const o = Object.create(
|
|
286
|
+
const o = Object.create($e);
|
|
286
287
|
return a.toFlatObject(e, o, function(f) {
|
|
287
288
|
return f !== Error.prototype;
|
|
288
289
|
}, (c) => c !== "isAxiosError"), m.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
|
|
289
290
|
};
|
|
290
|
-
const
|
|
291
|
+
const Gt = null;
|
|
291
292
|
function ae(e) {
|
|
292
293
|
return a.isPlainObject(e) || a.isArray(e);
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
+
function Je(e) {
|
|
295
296
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
296
297
|
}
|
|
297
298
|
function Ee(e, t, n) {
|
|
298
299
|
return e ? e.concat(t).map(function(s, i) {
|
|
299
|
-
return s =
|
|
300
|
+
return s = Je(s), !n && i ? "[" + s + "]" : s;
|
|
300
301
|
}).join(n ? "." : "") : t;
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
+
function Xt(e) {
|
|
303
304
|
return a.isArray(e) && !e.some(ae);
|
|
304
305
|
}
|
|
305
|
-
const
|
|
306
|
+
const Qt = a.toFlatObject(a, {}, null, function(t) {
|
|
306
307
|
return /^is[A-Z]/.test(t);
|
|
307
308
|
});
|
|
308
309
|
function Z(e, t, n) {
|
|
@@ -333,8 +334,8 @@ function Z(e, t, n) {
|
|
|
333
334
|
if (p && !h && typeof p == "object") {
|
|
334
335
|
if (a.endsWith(y, "{}"))
|
|
335
336
|
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
336
|
-
else if (a.isArray(p) &&
|
|
337
|
-
return y =
|
|
337
|
+
else if (a.isArray(p) && Xt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (b = a.toArray(p)))
|
|
338
|
+
return y = Je(y), b.forEach(function(S, U) {
|
|
338
339
|
!(a.isUndefined(S) || S === null) && t.append(
|
|
339
340
|
// eslint-disable-next-line no-nested-ternary
|
|
340
341
|
o === !0 ? Ee([y], U, i) : o === null ? y : y + "[]",
|
|
@@ -344,7 +345,7 @@ function Z(e, t, n) {
|
|
|
344
345
|
}
|
|
345
346
|
return ae(p) ? !0 : (t.append(Ee(h, y, i), l(p)), !1);
|
|
346
347
|
}
|
|
347
|
-
const d = [], w = Object.assign(
|
|
348
|
+
const d = [], w = Object.assign(Qt, {
|
|
348
349
|
defaultVisitor: u,
|
|
349
350
|
convertValue: l,
|
|
350
351
|
isVisitable: ae
|
|
@@ -385,11 +386,11 @@ function Re(e) {
|
|
|
385
386
|
function he(e, t) {
|
|
386
387
|
this._pairs = [], e && Z(e, this, t);
|
|
387
388
|
}
|
|
388
|
-
const
|
|
389
|
-
|
|
389
|
+
const Ve = he.prototype;
|
|
390
|
+
Ve.append = function(t, n) {
|
|
390
391
|
this._pairs.push([t, n]);
|
|
391
392
|
};
|
|
392
|
-
|
|
393
|
+
Ve.toString = function(t) {
|
|
393
394
|
const n = t ? function(r) {
|
|
394
395
|
return t.call(this, r, Re);
|
|
395
396
|
} : Re;
|
|
@@ -397,13 +398,13 @@ ve.toString = function(t) {
|
|
|
397
398
|
return n(s[0]) + "=" + n(s[1]);
|
|
398
399
|
}, "").join("&");
|
|
399
400
|
};
|
|
400
|
-
function
|
|
401
|
+
function Yt(e) {
|
|
401
402
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function Ke(e, t, n) {
|
|
404
405
|
if (!t)
|
|
405
406
|
return e;
|
|
406
|
-
const r = n && n.encode ||
|
|
407
|
+
const r = n && n.encode || Yt;
|
|
407
408
|
a.isFunction(n) && (n = {
|
|
408
409
|
serialize: n
|
|
409
410
|
});
|
|
@@ -469,31 +470,31 @@ class Se {
|
|
|
469
470
|
});
|
|
470
471
|
}
|
|
471
472
|
}
|
|
472
|
-
const
|
|
473
|
+
const We = {
|
|
473
474
|
silentJSONParsing: !0,
|
|
474
475
|
forcedJSONParsing: !0,
|
|
475
476
|
clarifyTimeoutError: !1
|
|
476
|
-
},
|
|
477
|
+
}, Zt = typeof URLSearchParams < "u" ? URLSearchParams : he, en = typeof FormData < "u" ? FormData : null, tn = typeof Blob < "u" ? Blob : null, nn = {
|
|
477
478
|
isBrowser: !0,
|
|
478
479
|
classes: {
|
|
479
|
-
URLSearchParams:
|
|
480
|
-
FormData:
|
|
481
|
-
Blob:
|
|
480
|
+
URLSearchParams: Zt,
|
|
481
|
+
FormData: en,
|
|
482
|
+
Blob: tn
|
|
482
483
|
},
|
|
483
484
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
484
|
-
}, me = typeof window < "u" && typeof document < "u", ce = typeof navigator == "object" && navigator || void 0,
|
|
485
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
485
|
+
}, me = typeof window < "u" && typeof document < "u", ce = typeof navigator == "object" && navigator || void 0, rn = me && (!ce || ["ReactNative", "NativeScript", "NS"].indexOf(ce.product) < 0), sn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
486
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on = me && window.location.href || "http://localhost", an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
486
487
|
__proto__: null,
|
|
487
488
|
hasBrowserEnv: me,
|
|
488
|
-
hasStandardBrowserEnv:
|
|
489
|
-
hasStandardBrowserWebWorkerEnv:
|
|
489
|
+
hasStandardBrowserEnv: rn,
|
|
490
|
+
hasStandardBrowserWebWorkerEnv: sn,
|
|
490
491
|
navigator: ce,
|
|
491
|
-
origin:
|
|
492
|
+
origin: on
|
|
492
493
|
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
493
|
-
...
|
|
494
|
-
...
|
|
494
|
+
...an,
|
|
495
|
+
...nn
|
|
495
496
|
};
|
|
496
|
-
function
|
|
497
|
+
function cn(e, t) {
|
|
497
498
|
return Z(e, new O.classes.URLSearchParams(), {
|
|
498
499
|
visitor: function(n, r, s, i) {
|
|
499
500
|
return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
@@ -501,10 +502,10 @@ function on(e, t) {
|
|
|
501
502
|
...t
|
|
502
503
|
});
|
|
503
504
|
}
|
|
504
|
-
function
|
|
505
|
+
function un(e) {
|
|
505
506
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
+
function ln(e) {
|
|
508
509
|
const t = {}, n = Object.keys(e);
|
|
509
510
|
let r;
|
|
510
511
|
const s = n.length;
|
|
@@ -513,22 +514,22 @@ function cn(e) {
|
|
|
513
514
|
i = n[r], t[i] = e[i];
|
|
514
515
|
return t;
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
+
function Ge(e) {
|
|
517
518
|
function t(n, r, s, i) {
|
|
518
519
|
let o = n[i++];
|
|
519
520
|
if (o === "__proto__") return !0;
|
|
520
521
|
const c = Number.isFinite(+o), f = i >= n.length;
|
|
521
|
-
return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] =
|
|
522
|
+
return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = ln(s[o])), !c);
|
|
522
523
|
}
|
|
523
524
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
524
525
|
const n = {};
|
|
525
526
|
return a.forEachEntry(e, (r, s) => {
|
|
526
|
-
t(
|
|
527
|
+
t(un(r), s, n, 0);
|
|
527
528
|
}), n;
|
|
528
529
|
}
|
|
529
530
|
return null;
|
|
530
531
|
}
|
|
531
|
-
function
|
|
532
|
+
function fn(e, t, n) {
|
|
532
533
|
if (a.isString(e))
|
|
533
534
|
try {
|
|
534
535
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -539,12 +540,12 @@ function un(e, t, n) {
|
|
|
539
540
|
return (n || JSON.stringify)(e);
|
|
540
541
|
}
|
|
541
542
|
const z = {
|
|
542
|
-
transitional:
|
|
543
|
+
transitional: We,
|
|
543
544
|
adapter: ["xhr", "http", "fetch"],
|
|
544
545
|
transformRequest: [function(t, n) {
|
|
545
546
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
|
|
546
547
|
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
547
|
-
return s ? JSON.stringify(
|
|
548
|
+
return s ? JSON.stringify(Ge(t)) : t;
|
|
548
549
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
549
550
|
return t;
|
|
550
551
|
if (a.isArrayBufferView(t))
|
|
@@ -554,7 +555,7 @@ const z = {
|
|
|
554
555
|
let c;
|
|
555
556
|
if (i) {
|
|
556
557
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
557
|
-
return
|
|
558
|
+
return cn(t, this.formSerializer).toString();
|
|
558
559
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
559
560
|
const f = this.env && this.env.FormData;
|
|
560
561
|
return Z(
|
|
@@ -564,7 +565,7 @@ const z = {
|
|
|
564
565
|
);
|
|
565
566
|
}
|
|
566
567
|
}
|
|
567
|
-
return i || s ? (n.setContentType("application/json", !1),
|
|
568
|
+
return i || s ? (n.setContentType("application/json", !1), fn(t)) : t;
|
|
568
569
|
}],
|
|
569
570
|
transformResponse: [function(t) {
|
|
570
571
|
const n = this.transitional || z.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -607,7 +608,7 @@ const z = {
|
|
|
607
608
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
608
609
|
z.headers[e] = {};
|
|
609
610
|
});
|
|
610
|
-
const
|
|
611
|
+
const dn = a.toObjectSet([
|
|
611
612
|
"age",
|
|
612
613
|
"authorization",
|
|
613
614
|
"content-length",
|
|
@@ -625,12 +626,12 @@ const ln = a.toObjectSet([
|
|
|
625
626
|
"referer",
|
|
626
627
|
"retry-after",
|
|
627
628
|
"user-agent"
|
|
628
|
-
]),
|
|
629
|
+
]), pn = (e) => {
|
|
629
630
|
const t = {};
|
|
630
631
|
let n, r, s;
|
|
631
632
|
return e && e.split(`
|
|
632
633
|
`).forEach(function(o) {
|
|
633
|
-
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] &&
|
|
634
|
+
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && dn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
634
635
|
}), t;
|
|
635
636
|
}, Oe = Symbol("internals");
|
|
636
637
|
function j(e) {
|
|
@@ -639,14 +640,14 @@ function j(e) {
|
|
|
639
640
|
function V(e) {
|
|
640
641
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(V) : String(e);
|
|
641
642
|
}
|
|
642
|
-
function
|
|
643
|
+
function hn(e) {
|
|
643
644
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
644
645
|
let r;
|
|
645
646
|
for (; r = n.exec(e); )
|
|
646
647
|
t[r[1]] = r[2];
|
|
647
648
|
return t;
|
|
648
649
|
}
|
|
649
|
-
const
|
|
650
|
+
const mn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
650
651
|
function ne(e, t, n, r, s) {
|
|
651
652
|
if (a.isFunction(r))
|
|
652
653
|
return r.call(this, t, n);
|
|
@@ -657,10 +658,10 @@ function ne(e, t, n, r, s) {
|
|
|
657
658
|
return r.test(t);
|
|
658
659
|
}
|
|
659
660
|
}
|
|
660
|
-
function
|
|
661
|
+
function yn(e) {
|
|
661
662
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
+
function wn(e, t) {
|
|
664
665
|
const n = a.toCamelCase(" " + t);
|
|
665
666
|
["get", "set", "has"].forEach((r) => {
|
|
666
667
|
Object.defineProperty(e, r + n, {
|
|
@@ -687,8 +688,8 @@ let C = class {
|
|
|
687
688
|
const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
|
|
688
689
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
689
690
|
o(t, n);
|
|
690
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
691
|
-
o(
|
|
691
|
+
else if (a.isString(t) && (t = t.trim()) && !mn(t))
|
|
692
|
+
o(pn(t), n);
|
|
692
693
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
693
694
|
let c = {}, f, l;
|
|
694
695
|
for (const u of t) {
|
|
@@ -709,7 +710,7 @@ let C = class {
|
|
|
709
710
|
if (!n)
|
|
710
711
|
return s;
|
|
711
712
|
if (n === !0)
|
|
712
|
-
return
|
|
713
|
+
return hn(s);
|
|
713
714
|
if (a.isFunction(n))
|
|
714
715
|
return n.call(this, s, r);
|
|
715
716
|
if (a.isRegExp(n))
|
|
@@ -753,7 +754,7 @@ let C = class {
|
|
|
753
754
|
n[o] = V(s), delete n[i];
|
|
754
755
|
return;
|
|
755
756
|
}
|
|
756
|
-
const c = t ?
|
|
757
|
+
const c = t ? yn(i) : String(i).trim();
|
|
757
758
|
c !== i && delete n[i], n[c] = V(s), r[c] = !0;
|
|
758
759
|
}), this;
|
|
759
760
|
}
|
|
@@ -792,7 +793,7 @@ let C = class {
|
|
|
792
793
|
}).accessors, s = this.prototype;
|
|
793
794
|
function i(o) {
|
|
794
795
|
const c = j(o);
|
|
795
|
-
r[c] || (
|
|
796
|
+
r[c] || (wn(s, o), r[c] = !0);
|
|
796
797
|
}
|
|
797
798
|
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
798
799
|
}
|
|
@@ -815,7 +816,7 @@ function re(e, t) {
|
|
|
815
816
|
i = c.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
816
817
|
}), s.normalize(), i;
|
|
817
818
|
}
|
|
818
|
-
function
|
|
819
|
+
function Xe(e) {
|
|
819
820
|
return !!(e && e.__CANCEL__);
|
|
820
821
|
}
|
|
821
822
|
function D(e, t, n) {
|
|
@@ -824,7 +825,7 @@ function D(e, t, n) {
|
|
|
824
825
|
a.inherits(D, m, {
|
|
825
826
|
__CANCEL__: !0
|
|
826
827
|
});
|
|
827
|
-
function
|
|
828
|
+
function Qe(e, t, n) {
|
|
828
829
|
const r = n.config.validateStatus;
|
|
829
830
|
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
830
831
|
"Request failed with status code " + n.status,
|
|
@@ -834,11 +835,11 @@ function Ge(e, t, n) {
|
|
|
834
835
|
n
|
|
835
836
|
));
|
|
836
837
|
}
|
|
837
|
-
function
|
|
838
|
+
function gn(e) {
|
|
838
839
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
839
840
|
return t && t[1] || "";
|
|
840
841
|
}
|
|
841
|
-
function
|
|
842
|
+
function bn(e, t) {
|
|
842
843
|
e = e || 10;
|
|
843
844
|
const n = new Array(e), r = new Array(e);
|
|
844
845
|
let s = 0, i = 0, o;
|
|
@@ -854,7 +855,7 @@ function wn(e, t) {
|
|
|
854
855
|
return E ? Math.round(w * 1e3 / E) : void 0;
|
|
855
856
|
};
|
|
856
857
|
}
|
|
857
|
-
function
|
|
858
|
+
function En(e, t) {
|
|
858
859
|
let n = 0, r = 1e3 / t, s, i;
|
|
859
860
|
const o = (l, u = Date.now()) => {
|
|
860
861
|
n = u, s = null, i && (clearTimeout(i), i = null), e(...l);
|
|
@@ -868,8 +869,8 @@ function gn(e, t) {
|
|
|
868
869
|
}
|
|
869
870
|
const W = (e, t, n = 3) => {
|
|
870
871
|
let r = 0;
|
|
871
|
-
const s =
|
|
872
|
-
return
|
|
872
|
+
const s = bn(50, 250);
|
|
873
|
+
return En((i) => {
|
|
873
874
|
const o = i.loaded, c = i.lengthComputable ? i.total : void 0, f = o - r, l = s(f), u = o <= c;
|
|
874
875
|
r = o;
|
|
875
876
|
const d = {
|
|
@@ -892,10 +893,10 @@ const W = (e, t, n = 3) => {
|
|
|
892
893
|
total: e,
|
|
893
894
|
loaded: r
|
|
894
895
|
}), t[1]];
|
|
895
|
-
}, Ae = (e) => (...t) => a.asap(() => e(...t)),
|
|
896
|
+
}, Ae = (e) => (...t) => a.asap(() => e(...t)), Rn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
896
897
|
new URL(O.origin),
|
|
897
898
|
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
898
|
-
) : () => !0,
|
|
899
|
+
) : () => !0, Sn = O.hasStandardBrowserEnv ? (
|
|
899
900
|
// Standard browser envs support document.cookie
|
|
900
901
|
{
|
|
901
902
|
write(e, t, n, r, s, i) {
|
|
@@ -922,15 +923,15 @@ const W = (e, t, n = 3) => {
|
|
|
922
923
|
}
|
|
923
924
|
}
|
|
924
925
|
);
|
|
925
|
-
function
|
|
926
|
+
function On(e) {
|
|
926
927
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
927
928
|
}
|
|
928
|
-
function
|
|
929
|
+
function Tn(e, t) {
|
|
929
930
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
930
931
|
}
|
|
931
|
-
function
|
|
932
|
-
let r = !
|
|
933
|
-
return e && (r || n == !1) ?
|
|
932
|
+
function Ye(e, t, n) {
|
|
933
|
+
let r = !On(t);
|
|
934
|
+
return e && (r || n == !1) ? Tn(e, t) : t;
|
|
934
935
|
}
|
|
935
936
|
const Ce = (e) => e instanceof C ? { ...e } : e;
|
|
936
937
|
function k(e, t) {
|
|
@@ -997,10 +998,10 @@ function k(e, t) {
|
|
|
997
998
|
a.isUndefined(w) && d !== c || (n[u] = w);
|
|
998
999
|
}), n;
|
|
999
1000
|
}
|
|
1000
|
-
const
|
|
1001
|
+
const Ze = (e) => {
|
|
1001
1002
|
const t = k({}, e);
|
|
1002
1003
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
|
|
1003
|
-
t.headers = o = C.from(o), t.url =
|
|
1004
|
+
t.headers = o = C.from(o), t.url = Ke(Ye(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
|
|
1004
1005
|
"Authorization",
|
|
1005
1006
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1006
1007
|
);
|
|
@@ -1013,14 +1014,14 @@ const Qe = (e) => {
|
|
|
1013
1014
|
o.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
1014
1015
|
}
|
|
1015
1016
|
}
|
|
1016
|
-
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1017
|
-
const l = s && i &&
|
|
1017
|
+
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Rn(t.url))) {
|
|
1018
|
+
const l = s && i && Sn.read(i);
|
|
1018
1019
|
l && o.set(s, l);
|
|
1019
1020
|
}
|
|
1020
1021
|
return t;
|
|
1021
|
-
},
|
|
1022
|
+
}, An = typeof XMLHttpRequest < "u", Cn = An && function(e) {
|
|
1022
1023
|
return new Promise(function(n, r) {
|
|
1023
|
-
const s =
|
|
1024
|
+
const s = Ze(e);
|
|
1024
1025
|
let i = s.data;
|
|
1025
1026
|
const o = C.from(s.headers).normalize();
|
|
1026
1027
|
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, w, E, p;
|
|
@@ -1042,10 +1043,10 @@ const Qe = (e) => {
|
|
|
1042
1043
|
config: e,
|
|
1043
1044
|
request: h
|
|
1044
1045
|
};
|
|
1045
|
-
|
|
1046
|
-
n(
|
|
1047
|
-
}, function(
|
|
1048
|
-
r(
|
|
1046
|
+
Qe(function(L) {
|
|
1047
|
+
n(L), y();
|
|
1048
|
+
}, function(L) {
|
|
1049
|
+
r(L), y();
|
|
1049
1050
|
}, T), h = null;
|
|
1050
1051
|
}
|
|
1051
1052
|
"onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
|
|
@@ -1056,7 +1057,7 @@ const Qe = (e) => {
|
|
|
1056
1057
|
r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
|
|
1057
1058
|
}, h.ontimeout = function() {
|
|
1058
1059
|
let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1059
|
-
const T = s.transitional ||
|
|
1060
|
+
const T = s.transitional || We;
|
|
1060
1061
|
s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new m(
|
|
1061
1062
|
U,
|
|
1062
1063
|
T.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
@@ -1068,14 +1069,14 @@ const Qe = (e) => {
|
|
|
1068
1069
|
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([w, p] = W(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, E] = W(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (S) => {
|
|
1069
1070
|
h && (r(!S || S.type ? new D(null, e, h) : S), h.abort(), h = null);
|
|
1070
1071
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1071
|
-
const R =
|
|
1072
|
+
const R = gn(s.url);
|
|
1072
1073
|
if (R && O.protocols.indexOf(R) === -1) {
|
|
1073
1074
|
r(new m("Unsupported protocol " + R + ":", m.ERR_BAD_REQUEST, e));
|
|
1074
1075
|
return;
|
|
1075
1076
|
}
|
|
1076
1077
|
h.send(i || null);
|
|
1077
1078
|
});
|
|
1078
|
-
},
|
|
1079
|
+
}, xn = (e, t) => {
|
|
1079
1080
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1080
1081
|
if (t || n) {
|
|
1081
1082
|
let r = new AbortController(), s;
|
|
@@ -1098,7 +1099,7 @@ const Qe = (e) => {
|
|
|
1098
1099
|
const { signal: f } = r;
|
|
1099
1100
|
return f.unsubscribe = () => a.asap(c), f;
|
|
1100
1101
|
}
|
|
1101
|
-
},
|
|
1102
|
+
}, _n = function* (e, t) {
|
|
1102
1103
|
let n = e.byteLength;
|
|
1103
1104
|
if (n < t) {
|
|
1104
1105
|
yield e;
|
|
@@ -1107,10 +1108,10 @@ const Qe = (e) => {
|
|
|
1107
1108
|
let r = 0, s;
|
|
1108
1109
|
for (; r < n; )
|
|
1109
1110
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1110
|
-
},
|
|
1111
|
-
for await (const n of
|
|
1112
|
-
yield*
|
|
1113
|
-
},
|
|
1111
|
+
}, Un = async function* (e, t) {
|
|
1112
|
+
for await (const n of Pn(e))
|
|
1113
|
+
yield* _n(n, t);
|
|
1114
|
+
}, Pn = async function* (e) {
|
|
1114
1115
|
if (e[Symbol.asyncIterator]) {
|
|
1115
1116
|
yield* e;
|
|
1116
1117
|
return;
|
|
@@ -1127,7 +1128,7 @@ const Qe = (e) => {
|
|
|
1127
1128
|
await t.cancel();
|
|
1128
1129
|
}
|
|
1129
1130
|
}, xe = (e, t, n, r) => {
|
|
1130
|
-
const s =
|
|
1131
|
+
const s = Un(e, t);
|
|
1131
1132
|
let i = 0, o, c = (f) => {
|
|
1132
1133
|
o || (o = !0, r && r(f));
|
|
1133
1134
|
};
|
|
@@ -1155,13 +1156,13 @@ const Qe = (e) => {
|
|
|
1155
1156
|
}, {
|
|
1156
1157
|
highWaterMark: 2
|
|
1157
1158
|
});
|
|
1158
|
-
}, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1159
|
+
}, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", et = ee && typeof ReadableStream == "function", Ln = ee && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), tt = (e, ...t) => {
|
|
1159
1160
|
try {
|
|
1160
1161
|
return !!e(...t);
|
|
1161
1162
|
} catch {
|
|
1162
1163
|
return !1;
|
|
1163
1164
|
}
|
|
1164
|
-
},
|
|
1165
|
+
}, Nn = et && tt(() => {
|
|
1165
1166
|
let e = !1;
|
|
1166
1167
|
const t = new Request(O.origin, {
|
|
1167
1168
|
body: new ReadableStream(),
|
|
@@ -1171,7 +1172,7 @@ const Qe = (e) => {
|
|
|
1171
1172
|
}
|
|
1172
1173
|
}).headers.has("Content-Type");
|
|
1173
1174
|
return e && !t;
|
|
1174
|
-
}), _e = 64 * 1024, ue =
|
|
1175
|
+
}), _e = 64 * 1024, ue = et && tt(() => a.isReadableStream(new Response("").body)), G = {
|
|
1175
1176
|
stream: ue && ((e) => e.body)
|
|
1176
1177
|
};
|
|
1177
1178
|
ee && ((e) => {
|
|
@@ -1181,7 +1182,7 @@ ee && ((e) => {
|
|
|
1181
1182
|
});
|
|
1182
1183
|
});
|
|
1183
1184
|
})(new Response());
|
|
1184
|
-
const
|
|
1185
|
+
const Fn = async (e) => {
|
|
1185
1186
|
if (e == null)
|
|
1186
1187
|
return 0;
|
|
1187
1188
|
if (a.isBlob(e))
|
|
@@ -1194,11 +1195,11 @@ const Nn = async (e) => {
|
|
|
1194
1195
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1195
1196
|
return e.byteLength;
|
|
1196
1197
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1197
|
-
return (await
|
|
1198
|
-
},
|
|
1198
|
+
return (await Ln(e)).byteLength;
|
|
1199
|
+
}, kn = async (e, t) => {
|
|
1199
1200
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1200
|
-
return n ??
|
|
1201
|
-
},
|
|
1201
|
+
return n ?? Fn(t);
|
|
1202
|
+
}, Bn = ee && (async (e) => {
|
|
1202
1203
|
let {
|
|
1203
1204
|
url: t,
|
|
1204
1205
|
method: n,
|
|
@@ -1212,26 +1213,26 @@ const Nn = async (e) => {
|
|
|
1212
1213
|
headers: u,
|
|
1213
1214
|
withCredentials: d = "same-origin",
|
|
1214
1215
|
fetchOptions: w
|
|
1215
|
-
} =
|
|
1216
|
+
} = Ze(e);
|
|
1216
1217
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1217
|
-
let E =
|
|
1218
|
+
let E = xn([s, i && i.toAbortSignal()], o), p;
|
|
1218
1219
|
const y = E && E.unsubscribe && (() => {
|
|
1219
1220
|
E.unsubscribe();
|
|
1220
1221
|
});
|
|
1221
1222
|
let h;
|
|
1222
1223
|
try {
|
|
1223
|
-
if (f &&
|
|
1224
|
+
if (f && Nn && n !== "get" && n !== "head" && (h = await kn(u, r)) !== 0) {
|
|
1224
1225
|
let T = new Request(t, {
|
|
1225
1226
|
method: "POST",
|
|
1226
1227
|
body: r,
|
|
1227
1228
|
duplex: "half"
|
|
1228
1229
|
}), P;
|
|
1229
1230
|
if (a.isFormData(r) && (P = T.headers.get("content-type")) && u.setContentType(P), T.body) {
|
|
1230
|
-
const [
|
|
1231
|
+
const [L, $] = Te(
|
|
1231
1232
|
h,
|
|
1232
1233
|
W(Ae(f))
|
|
1233
1234
|
);
|
|
1234
|
-
r = xe(T.body, _e,
|
|
1235
|
+
r = xe(T.body, _e, L, $);
|
|
1235
1236
|
}
|
|
1236
1237
|
}
|
|
1237
1238
|
a.isString(d) || (d = d ? "include" : "omit");
|
|
@@ -1252,12 +1253,12 @@ const Nn = async (e) => {
|
|
|
1252
1253
|
["status", "statusText", "headers"].forEach((ge) => {
|
|
1253
1254
|
T[ge] = R[ge];
|
|
1254
1255
|
});
|
|
1255
|
-
const P = a.toFiniteNumber(R.headers.get("content-length")), [
|
|
1256
|
+
const P = a.toFiniteNumber(R.headers.get("content-length")), [L, $] = c && Te(
|
|
1256
1257
|
P,
|
|
1257
1258
|
W(Ae(c), !0)
|
|
1258
1259
|
) || [];
|
|
1259
1260
|
R = new Response(
|
|
1260
|
-
xe(R.body, _e,
|
|
1261
|
+
xe(R.body, _e, L, () => {
|
|
1261
1262
|
$ && $(), y && y();
|
|
1262
1263
|
}),
|
|
1263
1264
|
T
|
|
@@ -1266,7 +1267,7 @@ const Nn = async (e) => {
|
|
|
1266
1267
|
l = l || "text";
|
|
1267
1268
|
let U = await G[a.findKey(G, l) || "text"](R, e);
|
|
1268
1269
|
return !S && y && y(), await new Promise((T, P) => {
|
|
1269
|
-
|
|
1270
|
+
Qe(T, P, {
|
|
1270
1271
|
data: U,
|
|
1271
1272
|
headers: C.from(R.headers),
|
|
1272
1273
|
status: R.status,
|
|
@@ -1284,9 +1285,9 @@ const Nn = async (e) => {
|
|
|
1284
1285
|
) : m.from(b, b && b.code, e, p);
|
|
1285
1286
|
}
|
|
1286
1287
|
}), le = {
|
|
1287
|
-
http:
|
|
1288
|
-
xhr:
|
|
1289
|
-
fetch:
|
|
1288
|
+
http: Gt,
|
|
1289
|
+
xhr: Cn,
|
|
1290
|
+
fetch: Bn
|
|
1290
1291
|
};
|
|
1291
1292
|
a.forEach(le, (e, t) => {
|
|
1292
1293
|
if (e) {
|
|
@@ -1297,7 +1298,7 @@ a.forEach(le, (e, t) => {
|
|
|
1297
1298
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1298
1299
|
}
|
|
1299
1300
|
});
|
|
1300
|
-
const Ue = (e) => `- ${e}`,
|
|
1301
|
+
const Ue = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !1, nt = {
|
|
1301
1302
|
getAdapter: (e) => {
|
|
1302
1303
|
e = a.isArray(e) ? e : [e];
|
|
1303
1304
|
const { length: t } = e;
|
|
@@ -1306,7 +1307,7 @@ const Ue = (e) => `- ${e}`, kn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1306
1307
|
for (let i = 0; i < t; i++) {
|
|
1307
1308
|
n = e[i];
|
|
1308
1309
|
let o;
|
|
1309
|
-
if (r = n, !
|
|
1310
|
+
if (r = n, !Dn(n) && (r = le[(o = String(n)).toLowerCase()], r === void 0))
|
|
1310
1311
|
throw new m(`Unknown adapter '${o}'`);
|
|
1311
1312
|
if (r)
|
|
1312
1313
|
break;
|
|
@@ -1336,30 +1337,30 @@ function Pe(e) {
|
|
|
1336
1337
|
return se(e), e.headers = C.from(e.headers), e.data = re.call(
|
|
1337
1338
|
e,
|
|
1338
1339
|
e.transformRequest
|
|
1339
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1340
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), nt.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
|
|
1340
1341
|
return se(e), r.data = re.call(
|
|
1341
1342
|
e,
|
|
1342
1343
|
e.transformResponse,
|
|
1343
1344
|
r
|
|
1344
1345
|
), r.headers = C.from(r.headers), r;
|
|
1345
1346
|
}, function(r) {
|
|
1346
|
-
return
|
|
1347
|
+
return Xe(r) || (se(e), r && r.response && (r.response.data = re.call(
|
|
1347
1348
|
e,
|
|
1348
1349
|
e.transformResponse,
|
|
1349
1350
|
r.response
|
|
1350
1351
|
), r.response.headers = C.from(r.response.headers))), Promise.reject(r);
|
|
1351
1352
|
});
|
|
1352
1353
|
}
|
|
1353
|
-
const
|
|
1354
|
+
const rt = "1.11.0", te = {};
|
|
1354
1355
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1355
1356
|
te[e] = function(r) {
|
|
1356
1357
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1357
1358
|
};
|
|
1358
1359
|
});
|
|
1359
|
-
const
|
|
1360
|
+
const Le = {};
|
|
1360
1361
|
te.transitional = function(t, n, r) {
|
|
1361
1362
|
function s(i, o) {
|
|
1362
|
-
return "[Axios v" +
|
|
1363
|
+
return "[Axios v" + rt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1363
1364
|
}
|
|
1364
1365
|
return (i, o, c) => {
|
|
1365
1366
|
if (t === !1)
|
|
@@ -1367,13 +1368,13 @@ te.transitional = function(t, n, r) {
|
|
|
1367
1368
|
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1368
1369
|
m.ERR_DEPRECATED
|
|
1369
1370
|
);
|
|
1370
|
-
return n && !
|
|
1371
|
+
return n && !Le[o] && (Le[o] = !0), t ? t(i, o, c) : !0;
|
|
1371
1372
|
};
|
|
1372
1373
|
};
|
|
1373
1374
|
te.spelling = function(t) {
|
|
1374
1375
|
return (n, r) => !0;
|
|
1375
1376
|
};
|
|
1376
|
-
function
|
|
1377
|
+
function jn(e, t, n) {
|
|
1377
1378
|
if (typeof e != "object")
|
|
1378
1379
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1379
1380
|
const r = Object.keys(e);
|
|
@@ -1391,7 +1392,7 @@ function Bn(e, t, n) {
|
|
|
1391
1392
|
}
|
|
1392
1393
|
}
|
|
1393
1394
|
const K = {
|
|
1394
|
-
assertOptions:
|
|
1395
|
+
assertOptions: jn,
|
|
1395
1396
|
validators: te
|
|
1396
1397
|
}, _ = K.validators;
|
|
1397
1398
|
let F = class {
|
|
@@ -1490,8 +1491,8 @@ let F = class {
|
|
|
1490
1491
|
}
|
|
1491
1492
|
getUri(t) {
|
|
1492
1493
|
t = k(this.defaults, t);
|
|
1493
|
-
const n =
|
|
1494
|
-
return
|
|
1494
|
+
const n = Ye(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1495
|
+
return Ke(n, t.params, t.paramsSerializer);
|
|
1495
1496
|
}
|
|
1496
1497
|
};
|
|
1497
1498
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1518,7 +1519,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1518
1519
|
}
|
|
1519
1520
|
F.prototype[t] = n(), F.prototype[t + "Form"] = n(!0);
|
|
1520
1521
|
});
|
|
1521
|
-
let
|
|
1522
|
+
let In = class st {
|
|
1522
1523
|
constructor(t) {
|
|
1523
1524
|
if (typeof t != "function")
|
|
1524
1525
|
throw new TypeError("executor must be a function.");
|
|
@@ -1584,19 +1585,19 @@ let Dn = class nt {
|
|
|
1584
1585
|
static source() {
|
|
1585
1586
|
let t;
|
|
1586
1587
|
return {
|
|
1587
|
-
token: new
|
|
1588
|
+
token: new st(function(s) {
|
|
1588
1589
|
t = s;
|
|
1589
1590
|
}),
|
|
1590
1591
|
cancel: t
|
|
1591
1592
|
};
|
|
1592
1593
|
}
|
|
1593
1594
|
};
|
|
1594
|
-
function
|
|
1595
|
+
function qn(e) {
|
|
1595
1596
|
return function(n) {
|
|
1596
1597
|
return e.apply(null, n);
|
|
1597
1598
|
};
|
|
1598
1599
|
}
|
|
1599
|
-
function
|
|
1600
|
+
function Mn(e) {
|
|
1600
1601
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1601
1602
|
}
|
|
1602
1603
|
const fe = {
|
|
@@ -1667,49 +1668,49 @@ const fe = {
|
|
|
1667
1668
|
Object.entries(fe).forEach(([e, t]) => {
|
|
1668
1669
|
fe[t] = e;
|
|
1669
1670
|
});
|
|
1670
|
-
function
|
|
1671
|
-
const t = new F(e), n =
|
|
1671
|
+
function ot(e) {
|
|
1672
|
+
const t = new F(e), n = Be(F.prototype.request, t);
|
|
1672
1673
|
return a.extend(n, F.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1673
|
-
return
|
|
1674
|
+
return ot(k(e, s));
|
|
1674
1675
|
}, n;
|
|
1675
1676
|
}
|
|
1676
|
-
const g =
|
|
1677
|
+
const g = ot(z);
|
|
1677
1678
|
g.Axios = F;
|
|
1678
1679
|
g.CanceledError = D;
|
|
1679
|
-
g.CancelToken =
|
|
1680
|
-
g.isCancel =
|
|
1681
|
-
g.VERSION =
|
|
1680
|
+
g.CancelToken = In;
|
|
1681
|
+
g.isCancel = Xe;
|
|
1682
|
+
g.VERSION = rt;
|
|
1682
1683
|
g.toFormData = Z;
|
|
1683
1684
|
g.AxiosError = m;
|
|
1684
1685
|
g.Cancel = g.CanceledError;
|
|
1685
1686
|
g.all = function(t) {
|
|
1686
1687
|
return Promise.all(t);
|
|
1687
1688
|
};
|
|
1688
|
-
g.spread =
|
|
1689
|
-
g.isAxiosError =
|
|
1689
|
+
g.spread = qn;
|
|
1690
|
+
g.isAxiosError = Mn;
|
|
1690
1691
|
g.mergeConfig = k;
|
|
1691
1692
|
g.AxiosHeaders = C;
|
|
1692
|
-
g.formToJSON = (e) =>
|
|
1693
|
-
g.getAdapter =
|
|
1693
|
+
g.formToJSON = (e) => Ge(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1694
|
+
g.getAdapter = nt.getAdapter;
|
|
1694
1695
|
g.HttpStatusCode = fe;
|
|
1695
1696
|
g.default = g;
|
|
1696
1697
|
const {
|
|
1697
|
-
Axios:
|
|
1698
|
-
AxiosError:
|
|
1699
|
-
CanceledError:
|
|
1700
|
-
isCancel:
|
|
1701
|
-
CancelToken:
|
|
1702
|
-
VERSION:
|
|
1703
|
-
all:
|
|
1704
|
-
Cancel:
|
|
1705
|
-
isAxiosError:
|
|
1706
|
-
spread:
|
|
1707
|
-
toFormData:
|
|
1708
|
-
AxiosHeaders:
|
|
1709
|
-
HttpStatusCode:
|
|
1710
|
-
formToJSON:
|
|
1711
|
-
getAdapter:
|
|
1712
|
-
mergeConfig:
|
|
1698
|
+
Axios: tr,
|
|
1699
|
+
AxiosError: nr,
|
|
1700
|
+
CanceledError: rr,
|
|
1701
|
+
isCancel: sr,
|
|
1702
|
+
CancelToken: or,
|
|
1703
|
+
VERSION: ir,
|
|
1704
|
+
all: ar,
|
|
1705
|
+
Cancel: cr,
|
|
1706
|
+
isAxiosError: ur,
|
|
1707
|
+
spread: lr,
|
|
1708
|
+
toFormData: fr,
|
|
1709
|
+
AxiosHeaders: dr,
|
|
1710
|
+
HttpStatusCode: pr,
|
|
1711
|
+
formToJSON: hr,
|
|
1712
|
+
getAdapter: mr,
|
|
1713
|
+
mergeConfig: yr
|
|
1713
1714
|
} = g;
|
|
1714
1715
|
/*! js-cookie v3.0.5 | MIT */
|
|
1715
1716
|
function v(e) {
|
|
@@ -1720,7 +1721,7 @@ function v(e) {
|
|
|
1720
1721
|
}
|
|
1721
1722
|
return e;
|
|
1722
1723
|
}
|
|
1723
|
-
var
|
|
1724
|
+
var Hn = {
|
|
1724
1725
|
read: function(e) {
|
|
1725
1726
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1726
1727
|
},
|
|
@@ -1781,27 +1782,42 @@ function de(e, t) {
|
|
|
1781
1782
|
}
|
|
1782
1783
|
);
|
|
1783
1784
|
}
|
|
1784
|
-
var
|
|
1785
|
-
const oe = "loginType",
|
|
1786
|
-
const e =
|
|
1785
|
+
var Ne = de(Hn, { path: "/" });
|
|
1786
|
+
const oe = "loginType", zn = (e) => new URL(location.href).searchParams.get(e), $n = () => {
|
|
1787
|
+
const e = zn(oe) || "";
|
|
1787
1788
|
return e ? (localStorage.setItem(oe, e), e) : localStorage.getItem(oe) || "";
|
|
1788
|
-
},
|
|
1789
|
+
}, vn = "/api/justauth/client/v1/visitor/sso-param", Jn = "/api/justauth/client/v1/visitor/jmc/sso/status", it = "thirdLogouSource", Vn = ["zhongshen", "jmc"], Kn = {
|
|
1789
1790
|
uat: "https://sso-uat.jmc.com.cn"
|
|
1790
1791
|
};
|
|
1791
1792
|
let ye = "";
|
|
1792
|
-
const we = () => localStorage.getItem(
|
|
1793
|
-
const t =
|
|
1794
|
-
return e === "jmc" && t === "das" ? !1 :
|
|
1795
|
-
},
|
|
1796
|
-
ye = we(), localStorage.removeItem(
|
|
1797
|
-
},
|
|
1793
|
+
const we = () => localStorage.getItem(it) || ye, at = (e) => {
|
|
1794
|
+
const t = $n();
|
|
1795
|
+
return e === "jmc" && t === "das" ? !1 : Vn.includes(e);
|
|
1796
|
+
}, wr = () => at(we()), ct = (e) => {
|
|
1797
|
+
ye = we(), localStorage.removeItem(it), window.__isAutoCloseApp = !1, location.href = e;
|
|
1798
|
+
}, Wn = (e) => {
|
|
1799
|
+
ke();
|
|
1798
1800
|
const n = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
|
|
1799
|
-
|
|
1800
|
-
},
|
|
1801
|
+
ct(n);
|
|
1802
|
+
}, Gn = async (e = "") => {
|
|
1803
|
+
try {
|
|
1804
|
+
const { baseURL: t } = Fe();
|
|
1805
|
+
await g.create().post(
|
|
1806
|
+
Jn,
|
|
1807
|
+
{
|
|
1808
|
+
ssoToken: e,
|
|
1809
|
+
// 平台退出前已清理本地 token,这里通过 cookie 兜底读取,便于后端定位并清理 cookie token。
|
|
1810
|
+
platformToken: ut()
|
|
1811
|
+
},
|
|
1812
|
+
{ baseURL: t }
|
|
1813
|
+
);
|
|
1814
|
+
} catch {
|
|
1815
|
+
}
|
|
1816
|
+
}, Xn = async () => {
|
|
1801
1817
|
let e = "";
|
|
1802
1818
|
try {
|
|
1803
|
-
const { baseURL: s } =
|
|
1804
|
-
e = (await g.create().get(
|
|
1819
|
+
const { baseURL: s } = Fe();
|
|
1820
|
+
e = (await g.create().get(vn, {
|
|
1805
1821
|
baseURL: s,
|
|
1806
1822
|
params: {
|
|
1807
1823
|
source: "jmc",
|
|
@@ -1817,25 +1833,25 @@ const we = () => localStorage.getItem(st) || ye, ot = (e) => {
|
|
|
1817
1833
|
} catch {
|
|
1818
1834
|
return "";
|
|
1819
1835
|
}
|
|
1820
|
-
})(), n = t ===
|
|
1836
|
+
})(), n = t === Kn.uat ? Ne.get("sso_access_token_uat") : Ne.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
|
|
1821
1837
|
try {
|
|
1822
1838
|
await g.post(r);
|
|
1823
1839
|
} catch {
|
|
1824
1840
|
}
|
|
1825
|
-
|
|
1826
|
-
},
|
|
1841
|
+
await Gn(n), ke(), ct(e);
|
|
1842
|
+
}, gr = async (e = "") => {
|
|
1827
1843
|
const t = we();
|
|
1828
|
-
if (
|
|
1844
|
+
if (at(t)) {
|
|
1829
1845
|
if (ye = t, t === "zhongshen") {
|
|
1830
|
-
|
|
1846
|
+
Wn(e);
|
|
1831
1847
|
return;
|
|
1832
1848
|
}
|
|
1833
|
-
t === "jmc" && await
|
|
1849
|
+
t === "jmc" && await Xn();
|
|
1834
1850
|
}
|
|
1835
1851
|
};
|
|
1836
1852
|
export {
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1853
|
+
wr as isThirdLogin,
|
|
1854
|
+
Xn as jmcLogout,
|
|
1855
|
+
gr as thirdLogout,
|
|
1856
|
+
Wn as zhongshenLogout
|
|
1841
1857
|
};
|