@das-fed/upf-utils 6.4.0-dev.231 → 6.4.0-dev.233
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/es5.js +551 -550
- package/api-services/index.js +391 -390
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +462 -461
- package/api-services/modules/app-manage/index.js +350 -349
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +451 -450
- package/api-services/modules/authentication/index.js +342 -341
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +482 -481
- package/api-services/modules/bems/index.js +367 -366
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +824 -826
- package/api-services/modules/contract/index.js +638 -641
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +479 -478
- package/api-services/modules/duty-manage/index.js +367 -366
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +451 -450
- package/api-services/modules/enterpriseright/index.js +342 -341
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1359 -1346
- package/api-services/modules/file/es5.js +473 -472
- package/api-services/modules/file/index.js +351 -350
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +451 -450
- package/api-services/modules/gateway-edge/index.js +342 -341
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1111 -1092
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +459 -458
- package/api-services/modules/iot/index.js +348 -347
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +451 -450
- package/api-services/modules/justauth/index.js +342 -341
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1255 -1266
- package/api-services/modules/knowledge/index.js +1050 -1067
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +451 -450
- package/api-services/modules/link/index.js +342 -341
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1250 -1240
- package/api-services/modules/permission/index.js +1055 -1040
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +457 -456
- package/api-services/modules/platformManage/index.js +345 -344
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +451 -450
- package/api-services/modules/portal/index.js +342 -341
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +451 -450
- package/api-services/modules/space-manage/index.js +342 -341
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1265 -1255
- package/api-services/modules/super-admin/index.js +1066 -1051
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +453 -452
- package/api-services/modules/supplier/index.js +343 -342
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +451 -450
- package/api-services/modules/supplychain-manage/index.js +342 -341
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +451 -450
- package/api-services/modules/systemConfiguration/index.js +342 -341
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1262 -1273
- package/api-services/modules/tool/index.js +1056 -1073
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1256 -1243
- package/api-services/src/create-service/index.js +1060 -1041
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +513 -512
- package/common-info/getPermissionMethod/es5.js +857 -854
- package/common-info/getPermissionMethod/index.js +666 -661
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +396 -395
- package/common-info/index.js.gz +0 -0
- package/create-api-service/access-token-auto-refresh/es5.js +325 -0
- package/create-api-service/access-token-auto-refresh/index.d.ts +20 -0
- package/create-api-service/access-token-auto-refresh/index.js +182 -0
- package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
- package/create-api-service/check-token/es5.js +72 -2272
- package/create-api-service/check-token/index.d.ts +3 -8
- package/create-api-service/check-token/index.js +40 -1729
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +450 -449
- package/create-api-service/index.js +342 -341
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/token-refresh-shared/es5.js +2327 -0
- package/create-api-service/token-refresh-shared/index.d.ts +30 -0
- package/create-api-service/token-refresh-shared/index.js +1752 -0
- package/create-api-service/token-refresh-shared/index.js.gz +0 -0
- package/esm-map.json +19 -1
- package/package.json +3 -3
- package/token-tools/es5.js +85 -18
- package/token-tools/index.js +80 -8
- package/token-tools/index.js.gz +0 -0
package/common-info/index.js
CHANGED
|
@@ -8,34 +8,35 @@ import kt from "dayjs";
|
|
|
8
8
|
import so from "dayjs/plugin/utc";
|
|
9
9
|
import co from "dayjs/plugin/timezone";
|
|
10
10
|
import { getProjectInfo as lo, getInstanceInfo as uo } from "@das-fed/upf-utils/common-info";
|
|
11
|
-
import {
|
|
11
|
+
import { applyRefreshedToken as fo } from "@das-fed/upf-utils/create-api-service/access-token-auto-refresh";
|
|
12
|
+
import { getValidAccessToken as po } from "@das-fed/upf-utils/create-api-service/check-token";
|
|
12
13
|
function Qr(t, e) {
|
|
13
14
|
return function() {
|
|
14
15
|
return t.apply(e, arguments);
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
|
-
const { toString:
|
|
18
|
-
const n =
|
|
18
|
+
const { toString: yo } = Object.prototype, { getPrototypeOf: jt } = Object, { iterator: qe, toStringTag: Xr } = Symbol, ze = /* @__PURE__ */ ((t) => (e) => {
|
|
19
|
+
const n = yo.call(e);
|
|
19
20
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
20
21
|
})(/* @__PURE__ */ Object.create(null)), $ = (t) => (t = t.toLowerCase(), (e) => ze(e) === t), He = (t) => (e) => typeof e === t, { isArray: ce } = Array, ve = He("undefined");
|
|
21
|
-
function
|
|
22
|
+
function ho(t) {
|
|
22
23
|
return t !== null && !ve(t) && t.constructor !== null && !ve(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
23
24
|
}
|
|
24
25
|
const Zr = $("ArrayBuffer");
|
|
25
|
-
function
|
|
26
|
+
function mo(t) {
|
|
26
27
|
let e;
|
|
27
28
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Zr(t.buffer), e;
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
+
const go = He("string"), _ = He("function"), Yr = He("number"), We = (t) => t !== null && typeof t == "object", vo = (t) => t === !0 || t === !1, xe = (t) => {
|
|
30
31
|
if (ze(t) !== "object")
|
|
31
32
|
return !1;
|
|
32
33
|
const e = jt(t);
|
|
33
34
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Xr in t) && !(qe in t);
|
|
34
|
-
},
|
|
35
|
+
}, So = $("Date"), wo = $("File"), bo = $("Blob"), Eo = $("FileList"), Ao = (t) => We(t) && _(t.pipe), Oo = (t) => {
|
|
35
36
|
let e;
|
|
36
37
|
return t && (typeof FormData == "function" && t instanceof FormData || _(t.append) && ((e = ze(t)) === "formdata" || // detect form-data instance
|
|
37
38
|
e === "object" && _(t.toString) && t.toString() === "[object FormData]"));
|
|
38
|
-
},
|
|
39
|
+
}, Ro = $("URLSearchParams"), [Po, Co, Io, To] = ["ReadableStream", "Request", "Response", "Headers"].map($), xo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
39
40
|
function be(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
40
41
|
if (t === null || typeof t > "u")
|
|
41
42
|
return;
|
|
@@ -69,13 +70,13 @@ function Ct() {
|
|
|
69
70
|
arguments[r] && be(arguments[r], n);
|
|
70
71
|
return e;
|
|
71
72
|
}
|
|
72
|
-
const
|
|
73
|
+
const No = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
73
74
|
n && _(o) ? t[a] = Qr(o, n) : t[a] = o;
|
|
74
|
-
}, { allOwnKeys: r }), t),
|
|
75
|
+
}, { allOwnKeys: r }), t), _o = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Fo = (t, e, n, r) => {
|
|
75
76
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
76
77
|
value: e.prototype
|
|
77
78
|
}), n && Object.assign(t.prototype, n);
|
|
78
|
-
},
|
|
79
|
+
}, Do = (t, e, n, r) => {
|
|
79
80
|
let o, a, i;
|
|
80
81
|
const s = {};
|
|
81
82
|
if (e = e || {}, t == null) return e;
|
|
@@ -85,11 +86,11 @@ const xo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
|
85
86
|
t = n !== !1 && jt(t);
|
|
86
87
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
87
88
|
return e;
|
|
88
|
-
},
|
|
89
|
+
}, $o = (t, e, n) => {
|
|
89
90
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
90
91
|
const r = t.indexOf(e, n);
|
|
91
92
|
return r !== -1 && r === n;
|
|
92
|
-
},
|
|
93
|
+
}, Lo = (t) => {
|
|
93
94
|
if (!t) return null;
|
|
94
95
|
if (ce(t)) return t;
|
|
95
96
|
let e = t.length;
|
|
@@ -98,31 +99,31 @@ const xo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
|
98
99
|
for (; e-- > 0; )
|
|
99
100
|
n[e] = t[e];
|
|
100
101
|
return n;
|
|
101
|
-
},
|
|
102
|
+
}, Uo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && jt(Uint8Array)), Mo = (t, e) => {
|
|
102
103
|
const r = (t && t[qe]).call(t);
|
|
103
104
|
let o;
|
|
104
105
|
for (; (o = r.next()) && !o.done; ) {
|
|
105
106
|
const a = o.value;
|
|
106
107
|
e.call(t, a[0], a[1]);
|
|
107
108
|
}
|
|
108
|
-
},
|
|
109
|
+
}, Bo = (t, e) => {
|
|
109
110
|
let n;
|
|
110
111
|
const r = [];
|
|
111
112
|
for (; (n = t.exec(e)) !== null; )
|
|
112
113
|
r.push(n);
|
|
113
114
|
return r;
|
|
114
|
-
},
|
|
115
|
+
}, ko = $("HTMLFormElement"), jo = (t) => t.toLowerCase().replace(
|
|
115
116
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
116
117
|
function(n, r, o) {
|
|
117
118
|
return r.toUpperCase() + o;
|
|
118
119
|
}
|
|
119
|
-
), Yt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype),
|
|
120
|
+
), Yt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), qo = $("RegExp"), rn = (t, e) => {
|
|
120
121
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
121
122
|
be(n, (o, a) => {
|
|
122
123
|
let i;
|
|
123
124
|
(i = e(o, a, t)) !== !1 && (r[a] = i || o);
|
|
124
125
|
}), Object.defineProperties(t, r);
|
|
125
|
-
},
|
|
126
|
+
}, zo = (t) => {
|
|
126
127
|
rn(t, (e, n) => {
|
|
127
128
|
if (_(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
128
129
|
return !1;
|
|
@@ -137,19 +138,19 @@ const xo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
|
|
|
137
138
|
});
|
|
138
139
|
}
|
|
139
140
|
});
|
|
140
|
-
},
|
|
141
|
+
}, Ho = (t, e) => {
|
|
141
142
|
const n = {}, r = (o) => {
|
|
142
143
|
o.forEach((a) => {
|
|
143
144
|
n[a] = !0;
|
|
144
145
|
});
|
|
145
146
|
};
|
|
146
147
|
return ce(t) ? r(t) : r(String(t).split(e)), n;
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
function
|
|
148
|
+
}, Wo = () => {
|
|
149
|
+
}, Jo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
150
|
+
function Go(t) {
|
|
150
151
|
return !!(t && _(t.append) && t[Xr] === "FormData" && t[qe]);
|
|
151
152
|
}
|
|
152
|
-
const
|
|
153
|
+
const Vo = (t) => {
|
|
153
154
|
const e = new Array(10), n = (r, o) => {
|
|
154
155
|
if (We(r)) {
|
|
155
156
|
if (e.indexOf(r) >= 0)
|
|
@@ -166,71 +167,71 @@ const Go = (t) => {
|
|
|
166
167
|
return r;
|
|
167
168
|
};
|
|
168
169
|
return n(t, 0);
|
|
169
|
-
},
|
|
170
|
+
}, Ko = $("AsyncFunction"), Qo = (t) => t && (We(t) || _(t)) && _(t.then) && _(t.catch), nn = ((t, e) => t ? setImmediate : e ? ((n, r) => (K.addEventListener("message", ({ source: o, data: a }) => {
|
|
170
171
|
o === K && a === n && r.length && r.shift()();
|
|
171
172
|
}, !1), (o) => {
|
|
172
173
|
r.push(o), K.postMessage(n, "*");
|
|
173
174
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
174
175
|
typeof setImmediate == "function",
|
|
175
176
|
_(K.postMessage)
|
|
176
|
-
),
|
|
177
|
+
), Xo = typeof queueMicrotask < "u" ? queueMicrotask.bind(K) : typeof process < "u" && process.nextTick || nn, Zo = (t) => t != null && _(t[qe]), p = {
|
|
177
178
|
isArray: ce,
|
|
178
179
|
isArrayBuffer: Zr,
|
|
179
|
-
isBuffer:
|
|
180
|
-
isFormData:
|
|
181
|
-
isArrayBufferView:
|
|
182
|
-
isString:
|
|
180
|
+
isBuffer: ho,
|
|
181
|
+
isFormData: Oo,
|
|
182
|
+
isArrayBufferView: mo,
|
|
183
|
+
isString: go,
|
|
183
184
|
isNumber: Yr,
|
|
184
|
-
isBoolean:
|
|
185
|
+
isBoolean: vo,
|
|
185
186
|
isObject: We,
|
|
186
187
|
isPlainObject: xe,
|
|
187
|
-
isReadableStream:
|
|
188
|
-
isRequest:
|
|
189
|
-
isResponse:
|
|
190
|
-
isHeaders:
|
|
188
|
+
isReadableStream: Po,
|
|
189
|
+
isRequest: Co,
|
|
190
|
+
isResponse: Io,
|
|
191
|
+
isHeaders: To,
|
|
191
192
|
isUndefined: ve,
|
|
192
|
-
isDate:
|
|
193
|
-
isFile:
|
|
194
|
-
isBlob:
|
|
195
|
-
isRegExp:
|
|
193
|
+
isDate: So,
|
|
194
|
+
isFile: wo,
|
|
195
|
+
isBlob: bo,
|
|
196
|
+
isRegExp: qo,
|
|
196
197
|
isFunction: _,
|
|
197
|
-
isStream:
|
|
198
|
-
isURLSearchParams:
|
|
199
|
-
isTypedArray:
|
|
200
|
-
isFileList:
|
|
198
|
+
isStream: Ao,
|
|
199
|
+
isURLSearchParams: Ro,
|
|
200
|
+
isTypedArray: Uo,
|
|
201
|
+
isFileList: Eo,
|
|
201
202
|
forEach: be,
|
|
202
203
|
merge: Ct,
|
|
203
|
-
extend:
|
|
204
|
-
trim:
|
|
205
|
-
stripBOM:
|
|
206
|
-
inherits:
|
|
207
|
-
toFlatObject:
|
|
204
|
+
extend: No,
|
|
205
|
+
trim: xo,
|
|
206
|
+
stripBOM: _o,
|
|
207
|
+
inherits: Fo,
|
|
208
|
+
toFlatObject: Do,
|
|
208
209
|
kindOf: ze,
|
|
209
210
|
kindOfTest: $,
|
|
210
|
-
endsWith:
|
|
211
|
-
toArray:
|
|
212
|
-
forEachEntry:
|
|
213
|
-
matchAll:
|
|
214
|
-
isHTMLForm:
|
|
211
|
+
endsWith: $o,
|
|
212
|
+
toArray: Lo,
|
|
213
|
+
forEachEntry: Mo,
|
|
214
|
+
matchAll: Bo,
|
|
215
|
+
isHTMLForm: ko,
|
|
215
216
|
hasOwnProperty: Yt,
|
|
216
217
|
hasOwnProp: Yt,
|
|
217
218
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
218
219
|
reduceDescriptors: rn,
|
|
219
|
-
freezeMethods:
|
|
220
|
-
toObjectSet:
|
|
221
|
-
toCamelCase:
|
|
222
|
-
noop:
|
|
223
|
-
toFiniteNumber:
|
|
220
|
+
freezeMethods: zo,
|
|
221
|
+
toObjectSet: Ho,
|
|
222
|
+
toCamelCase: jo,
|
|
223
|
+
noop: Wo,
|
|
224
|
+
toFiniteNumber: Jo,
|
|
224
225
|
findKey: en,
|
|
225
226
|
global: K,
|
|
226
227
|
isContextDefined: tn,
|
|
227
|
-
isSpecCompliantForm:
|
|
228
|
-
toJSONObject:
|
|
229
|
-
isAsyncFn:
|
|
230
|
-
isThenable:
|
|
228
|
+
isSpecCompliantForm: Go,
|
|
229
|
+
toJSONObject: Vo,
|
|
230
|
+
isAsyncFn: Ko,
|
|
231
|
+
isThenable: Qo,
|
|
231
232
|
setImmediate: nn,
|
|
232
|
-
asap:
|
|
233
|
-
isIterable:
|
|
233
|
+
asap: Xo,
|
|
234
|
+
isIterable: Zo
|
|
234
235
|
};
|
|
235
236
|
function S(t, e, n, r, o) {
|
|
236
237
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -282,7 +283,7 @@ S.from = (t, e, n, r, o, a) => {
|
|
|
282
283
|
return l !== Error.prototype;
|
|
283
284
|
}, (s) => s !== "isAxiosError"), S.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
284
285
|
};
|
|
285
|
-
const
|
|
286
|
+
const Yo = null;
|
|
286
287
|
function It(t) {
|
|
287
288
|
return p.isPlainObject(t) || p.isArray(t);
|
|
288
289
|
}
|
|
@@ -294,10 +295,10 @@ function er(t, e, n) {
|
|
|
294
295
|
return o = sn(o), !n && a ? "[" + o + "]" : o;
|
|
295
296
|
}).join(n ? "." : "") : e;
|
|
296
297
|
}
|
|
297
|
-
function
|
|
298
|
+
function ea(t) {
|
|
298
299
|
return p.isArray(t) && !t.some(It);
|
|
299
300
|
}
|
|
300
|
-
const
|
|
301
|
+
const ta = p.toFlatObject(p, {}, null, function(e) {
|
|
301
302
|
return /^is[A-Z]/.test(e);
|
|
302
303
|
});
|
|
303
304
|
function Je(t, e, n) {
|
|
@@ -328,7 +329,7 @@ function Je(t, e, n) {
|
|
|
328
329
|
if (y && !h && typeof y == "object") {
|
|
329
330
|
if (p.endsWith(m, "{}"))
|
|
330
331
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
331
|
-
else if (p.isArray(y) &&
|
|
332
|
+
else if (p.isArray(y) && ea(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (w = p.toArray(y)))
|
|
332
333
|
return m = sn(m), w.forEach(function(g, A) {
|
|
333
334
|
!(p.isUndefined(g) || g === null) && e.append(
|
|
334
335
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -339,7 +340,7 @@ function Je(t, e, n) {
|
|
|
339
340
|
}
|
|
340
341
|
return It(y) ? !0 : (e.append(er(h, m, a), u(y)), !1);
|
|
341
342
|
}
|
|
342
|
-
const f = [], d = Object.assign(
|
|
343
|
+
const f = [], d = Object.assign(ta, {
|
|
343
344
|
defaultVisitor: c,
|
|
344
345
|
convertValue: u,
|
|
345
346
|
isVisitable: It
|
|
@@ -392,13 +393,13 @@ cn.toString = function(e) {
|
|
|
392
393
|
return n(o[0]) + "=" + n(o[1]);
|
|
393
394
|
}, "").join("&");
|
|
394
395
|
};
|
|
395
|
-
function
|
|
396
|
+
function ra(t) {
|
|
396
397
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
397
398
|
}
|
|
398
399
|
function ln(t, e, n) {
|
|
399
400
|
if (!e)
|
|
400
401
|
return t;
|
|
401
|
-
const r = n && n.encode ||
|
|
402
|
+
const r = n && n.encode || ra;
|
|
402
403
|
p.isFunction(n) && (n = {
|
|
403
404
|
serialize: n
|
|
404
405
|
});
|
|
@@ -468,37 +469,37 @@ const un = {
|
|
|
468
469
|
silentJSONParsing: !0,
|
|
469
470
|
forcedJSONParsing: !0,
|
|
470
471
|
clarifyTimeoutError: !1
|
|
471
|
-
},
|
|
472
|
+
}, na = typeof URLSearchParams < "u" ? URLSearchParams : qt, oa = typeof FormData < "u" ? FormData : null, aa = typeof Blob < "u" ? Blob : null, ia = {
|
|
472
473
|
isBrowser: !0,
|
|
473
474
|
classes: {
|
|
474
|
-
URLSearchParams:
|
|
475
|
-
FormData:
|
|
476
|
-
Blob:
|
|
475
|
+
URLSearchParams: na,
|
|
476
|
+
FormData: oa,
|
|
477
|
+
Blob: aa
|
|
477
478
|
},
|
|
478
479
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
479
|
-
}, zt = typeof window < "u" && typeof document < "u", Tt = typeof navigator == "object" && navigator || void 0,
|
|
480
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
480
|
+
}, zt = typeof window < "u" && typeof document < "u", Tt = typeof navigator == "object" && navigator || void 0, sa = zt && (!Tt || ["ReactNative", "NativeScript", "NS"].indexOf(Tt.product) < 0), ca = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
481
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", la = zt && window.location.href || "http://localhost", ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
481
482
|
__proto__: null,
|
|
482
483
|
hasBrowserEnv: zt,
|
|
483
|
-
hasStandardBrowserEnv:
|
|
484
|
-
hasStandardBrowserWebWorkerEnv:
|
|
484
|
+
hasStandardBrowserEnv: sa,
|
|
485
|
+
hasStandardBrowserWebWorkerEnv: ca,
|
|
485
486
|
navigator: Tt,
|
|
486
|
-
origin:
|
|
487
|
+
origin: la
|
|
487
488
|
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
488
|
-
...
|
|
489
|
-
...
|
|
489
|
+
...ua,
|
|
490
|
+
...ia
|
|
490
491
|
};
|
|
491
|
-
function
|
|
492
|
+
function fa(t, e) {
|
|
492
493
|
return Je(t, new T.classes.URLSearchParams(), Object.assign({
|
|
493
494
|
visitor: function(n, r, o, a) {
|
|
494
495
|
return T.isNode && p.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
495
496
|
}
|
|
496
497
|
}, e));
|
|
497
498
|
}
|
|
498
|
-
function
|
|
499
|
+
function pa(t) {
|
|
499
500
|
return p.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
500
501
|
}
|
|
501
|
-
function
|
|
502
|
+
function da(t) {
|
|
502
503
|
const e = {}, n = Object.keys(t);
|
|
503
504
|
let r;
|
|
504
505
|
const o = n.length;
|
|
@@ -512,17 +513,17 @@ function fn(t) {
|
|
|
512
513
|
let i = n[a++];
|
|
513
514
|
if (i === "__proto__") return !0;
|
|
514
515
|
const s = Number.isFinite(+i), l = a >= n.length;
|
|
515
|
-
return i = !i && p.isArray(o) ? o.length : i, l ? (p.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && p.isArray(o[i]) && (o[i] =
|
|
516
|
+
return i = !i && p.isArray(o) ? o.length : i, l ? (p.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && p.isArray(o[i]) && (o[i] = da(o[i])), !s);
|
|
516
517
|
}
|
|
517
518
|
if (p.isFormData(t) && p.isFunction(t.entries)) {
|
|
518
519
|
const n = {};
|
|
519
520
|
return p.forEachEntry(t, (r, o) => {
|
|
520
|
-
e(
|
|
521
|
+
e(pa(r), o, n, 0);
|
|
521
522
|
}), n;
|
|
522
523
|
}
|
|
523
524
|
return null;
|
|
524
525
|
}
|
|
525
|
-
function
|
|
526
|
+
function ya(t, e, n) {
|
|
526
527
|
if (p.isString(t))
|
|
527
528
|
try {
|
|
528
529
|
return (e || JSON.parse)(t), p.trim(t);
|
|
@@ -548,7 +549,7 @@ const Ee = {
|
|
|
548
549
|
let s;
|
|
549
550
|
if (a) {
|
|
550
551
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
551
|
-
return
|
|
552
|
+
return fa(e, this.formSerializer).toString();
|
|
552
553
|
if ((s = p.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
553
554
|
const l = this.env && this.env.FormData;
|
|
554
555
|
return Je(
|
|
@@ -558,7 +559,7 @@ const Ee = {
|
|
|
558
559
|
);
|
|
559
560
|
}
|
|
560
561
|
}
|
|
561
|
-
return a || o ? (n.setContentType("application/json", !1),
|
|
562
|
+
return a || o ? (n.setContentType("application/json", !1), ya(e)) : e;
|
|
562
563
|
}],
|
|
563
564
|
transformResponse: [function(e) {
|
|
564
565
|
const n = this.transitional || Ee.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -601,7 +602,7 @@ const Ee = {
|
|
|
601
602
|
p.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
602
603
|
Ee.headers[t] = {};
|
|
603
604
|
});
|
|
604
|
-
const
|
|
605
|
+
const ha = p.toObjectSet([
|
|
605
606
|
"age",
|
|
606
607
|
"authorization",
|
|
607
608
|
"content-length",
|
|
@@ -619,12 +620,12 @@ const ya = p.toObjectSet([
|
|
|
619
620
|
"referer",
|
|
620
621
|
"retry-after",
|
|
621
622
|
"user-agent"
|
|
622
|
-
]),
|
|
623
|
+
]), ma = (t) => {
|
|
623
624
|
const e = {};
|
|
624
625
|
let n, r, o;
|
|
625
626
|
return t && t.split(`
|
|
626
627
|
`).forEach(function(i) {
|
|
627
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] &&
|
|
628
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && ha[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
628
629
|
}), e;
|
|
629
630
|
}, nr = Symbol("internals");
|
|
630
631
|
function pe(t) {
|
|
@@ -633,14 +634,14 @@ function pe(t) {
|
|
|
633
634
|
function Ne(t) {
|
|
634
635
|
return t === !1 || t == null ? t : p.isArray(t) ? t.map(Ne) : String(t);
|
|
635
636
|
}
|
|
636
|
-
function
|
|
637
|
+
function ga(t) {
|
|
637
638
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
638
639
|
let r;
|
|
639
640
|
for (; r = n.exec(t); )
|
|
640
641
|
e[r[1]] = r[2];
|
|
641
642
|
return e;
|
|
642
643
|
}
|
|
643
|
-
const
|
|
644
|
+
const va = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
644
645
|
function tt(t, e, n, r, o) {
|
|
645
646
|
if (p.isFunction(r))
|
|
646
647
|
return r.call(this, e, n);
|
|
@@ -651,10 +652,10 @@ function tt(t, e, n, r, o) {
|
|
|
651
652
|
return r.test(e);
|
|
652
653
|
}
|
|
653
654
|
}
|
|
654
|
-
function
|
|
655
|
+
function Sa(t) {
|
|
655
656
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
656
657
|
}
|
|
657
|
-
function
|
|
658
|
+
function wa(t, e) {
|
|
658
659
|
const n = p.toCamelCase(" " + e);
|
|
659
660
|
["get", "set", "has"].forEach((r) => {
|
|
660
661
|
Object.defineProperty(t, r + n, {
|
|
@@ -681,8 +682,8 @@ class F {
|
|
|
681
682
|
const i = (s, l) => p.forEach(s, (u, c) => a(u, c, l));
|
|
682
683
|
if (p.isPlainObject(e) || e instanceof this.constructor)
|
|
683
684
|
i(e, n);
|
|
684
|
-
else if (p.isString(e) && (e = e.trim()) && !
|
|
685
|
-
i(
|
|
685
|
+
else if (p.isString(e) && (e = e.trim()) && !va(e))
|
|
686
|
+
i(ma(e), n);
|
|
686
687
|
else if (p.isObject(e) && p.isIterable(e)) {
|
|
687
688
|
let s = {}, l, u;
|
|
688
689
|
for (const c of e) {
|
|
@@ -703,7 +704,7 @@ class F {
|
|
|
703
704
|
if (!n)
|
|
704
705
|
return o;
|
|
705
706
|
if (n === !0)
|
|
706
|
-
return
|
|
707
|
+
return ga(o);
|
|
707
708
|
if (p.isFunction(n))
|
|
708
709
|
return n.call(this, o, r);
|
|
709
710
|
if (p.isRegExp(n))
|
|
@@ -747,7 +748,7 @@ class F {
|
|
|
747
748
|
n[i] = Ne(o), delete n[a];
|
|
748
749
|
return;
|
|
749
750
|
}
|
|
750
|
-
const s = e ?
|
|
751
|
+
const s = e ? Sa(a) : String(a).trim();
|
|
751
752
|
s !== a && delete n[a], n[s] = Ne(o), r[s] = !0;
|
|
752
753
|
}), this;
|
|
753
754
|
}
|
|
@@ -786,7 +787,7 @@ class F {
|
|
|
786
787
|
}).accessors, o = this.prototype;
|
|
787
788
|
function a(i) {
|
|
788
789
|
const s = pe(i);
|
|
789
|
-
r[s] || (
|
|
790
|
+
r[s] || (wa(o, i), r[s] = !0);
|
|
790
791
|
}
|
|
791
792
|
return p.isArray(e) ? e.forEach(a) : a(e), this;
|
|
792
793
|
}
|
|
@@ -828,11 +829,11 @@ function dn(t, e, n) {
|
|
|
828
829
|
n
|
|
829
830
|
));
|
|
830
831
|
}
|
|
831
|
-
function
|
|
832
|
+
function ba(t) {
|
|
832
833
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
833
834
|
return e && e[1] || "";
|
|
834
835
|
}
|
|
835
|
-
function
|
|
836
|
+
function Ea(t, e) {
|
|
836
837
|
t = t || 10;
|
|
837
838
|
const n = new Array(t), r = new Array(t);
|
|
838
839
|
let o = 0, a = 0, i;
|
|
@@ -848,7 +849,7 @@ function ba(t, e) {
|
|
|
848
849
|
return v ? Math.round(d * 1e3 / v) : void 0;
|
|
849
850
|
};
|
|
850
851
|
}
|
|
851
|
-
function
|
|
852
|
+
function Aa(t, e) {
|
|
852
853
|
let n = 0, r = 1e3 / e, o, a;
|
|
853
854
|
const i = (u, c = Date.now()) => {
|
|
854
855
|
n = c, o = null, a && (clearTimeout(a), a = null), t.apply(null, u);
|
|
@@ -862,8 +863,8 @@ function Ea(t, e) {
|
|
|
862
863
|
}
|
|
863
864
|
const Le = (t, e, n = 3) => {
|
|
864
865
|
let r = 0;
|
|
865
|
-
const o =
|
|
866
|
-
return
|
|
866
|
+
const o = Ea(50, 250);
|
|
867
|
+
return Aa((a) => {
|
|
867
868
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, l = i - r, u = o(l), c = i <= s;
|
|
868
869
|
r = i;
|
|
869
870
|
const f = {
|
|
@@ -886,10 +887,10 @@ const Le = (t, e, n = 3) => {
|
|
|
886
887
|
total: t,
|
|
887
888
|
loaded: r
|
|
888
889
|
}), e[1]];
|
|
889
|
-
}, ar = (t) => (...e) => p.asap(() => t(...e)),
|
|
890
|
+
}, ar = (t) => (...e) => p.asap(() => t(...e)), Oa = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, T.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
890
891
|
new URL(T.origin),
|
|
891
892
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
892
|
-
) : () => !0,
|
|
893
|
+
) : () => !0, Ra = T.hasStandardBrowserEnv ? (
|
|
893
894
|
// Standard browser envs support document.cookie
|
|
894
895
|
{
|
|
895
896
|
write(t, e, n, r, o, a) {
|
|
@@ -916,15 +917,15 @@ const Le = (t, e, n = 3) => {
|
|
|
916
917
|
}
|
|
917
918
|
}
|
|
918
919
|
);
|
|
919
|
-
function
|
|
920
|
+
function Pa(t) {
|
|
920
921
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
921
922
|
}
|
|
922
|
-
function
|
|
923
|
+
function Ca(t, e) {
|
|
923
924
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
924
925
|
}
|
|
925
926
|
function yn(t, e, n) {
|
|
926
|
-
let r = !
|
|
927
|
-
return t && (r || n == !1) ?
|
|
927
|
+
let r = !Pa(e);
|
|
928
|
+
return t && (r || n == !1) ? Ca(t, e) : e;
|
|
928
929
|
}
|
|
929
930
|
const ir = (t) => t instanceof F ? { ...t } : t;
|
|
930
931
|
function Z(t, e) {
|
|
@@ -1007,12 +1008,12 @@ const hn = (t) => {
|
|
|
1007
1008
|
i.setContentType([u || "multipart/form-data", ...c].join("; "));
|
|
1008
1009
|
}
|
|
1009
1010
|
}
|
|
1010
|
-
if (T.hasStandardBrowserEnv && (r && p.isFunction(r) && (r = r(e)), r || r !== !1 &&
|
|
1011
|
-
const u = o && a &&
|
|
1011
|
+
if (T.hasStandardBrowserEnv && (r && p.isFunction(r) && (r = r(e)), r || r !== !1 && Oa(e.url))) {
|
|
1012
|
+
const u = o && a && Ra.read(a);
|
|
1012
1013
|
u && i.set(o, u);
|
|
1013
1014
|
}
|
|
1014
1015
|
return e;
|
|
1015
|
-
},
|
|
1016
|
+
}, Ia = typeof XMLHttpRequest < "u", Ta = Ia && function(t) {
|
|
1016
1017
|
return new Promise(function(n, r) {
|
|
1017
1018
|
const o = hn(t);
|
|
1018
1019
|
let a = o.data;
|
|
@@ -1062,14 +1063,14 @@ const hn = (t) => {
|
|
|
1062
1063
|
}), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([d, y] = Le(u, !0), h.addEventListener("progress", d)), l && h.upload && ([f, v] = Le(l), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1063
1064
|
h && (r(!g || g.type ? new le(null, t, h) : g), h.abort(), h = null);
|
|
1064
1065
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1065
|
-
const E =
|
|
1066
|
+
const E = ba(o.url);
|
|
1066
1067
|
if (E && T.protocols.indexOf(E) === -1) {
|
|
1067
1068
|
r(new S("Unsupported protocol " + E + ":", S.ERR_BAD_REQUEST, t));
|
|
1068
1069
|
return;
|
|
1069
1070
|
}
|
|
1070
1071
|
h.send(a || null);
|
|
1071
1072
|
});
|
|
1072
|
-
},
|
|
1073
|
+
}, xa = (t, e) => {
|
|
1073
1074
|
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1074
1075
|
if (e || n) {
|
|
1075
1076
|
let r = new AbortController(), o;
|
|
@@ -1092,7 +1093,7 @@ const hn = (t) => {
|
|
|
1092
1093
|
const { signal: l } = r;
|
|
1093
1094
|
return l.unsubscribe = () => p.asap(s), l;
|
|
1094
1095
|
}
|
|
1095
|
-
},
|
|
1096
|
+
}, Na = function* (t, e) {
|
|
1096
1097
|
let n = t.byteLength;
|
|
1097
1098
|
if (n < e) {
|
|
1098
1099
|
yield t;
|
|
@@ -1101,10 +1102,10 @@ const hn = (t) => {
|
|
|
1101
1102
|
let r = 0, o;
|
|
1102
1103
|
for (; r < n; )
|
|
1103
1104
|
o = r + e, yield t.slice(r, o), r = o;
|
|
1104
|
-
},
|
|
1105
|
-
for await (const n of
|
|
1106
|
-
yield*
|
|
1107
|
-
},
|
|
1105
|
+
}, _a = async function* (t, e) {
|
|
1106
|
+
for await (const n of Fa(t))
|
|
1107
|
+
yield* Na(n, e);
|
|
1108
|
+
}, Fa = async function* (t) {
|
|
1108
1109
|
if (t[Symbol.asyncIterator]) {
|
|
1109
1110
|
yield* t;
|
|
1110
1111
|
return;
|
|
@@ -1121,7 +1122,7 @@ const hn = (t) => {
|
|
|
1121
1122
|
await e.cancel();
|
|
1122
1123
|
}
|
|
1123
1124
|
}, sr = (t, e, n, r) => {
|
|
1124
|
-
const o =
|
|
1125
|
+
const o = _a(t, e);
|
|
1125
1126
|
let a = 0, i, s = (l) => {
|
|
1126
1127
|
i || (i = !0, r && r(l));
|
|
1127
1128
|
};
|
|
@@ -1149,13 +1150,13 @@ const hn = (t) => {
|
|
|
1149
1150
|
}, {
|
|
1150
1151
|
highWaterMark: 2
|
|
1151
1152
|
});
|
|
1152
|
-
}, Ge = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", mn = Ge && typeof ReadableStream == "function",
|
|
1153
|
+
}, Ge = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", mn = Ge && typeof ReadableStream == "function", Da = Ge && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), gn = (t, ...e) => {
|
|
1153
1154
|
try {
|
|
1154
1155
|
return !!t(...e);
|
|
1155
1156
|
} catch {
|
|
1156
1157
|
return !1;
|
|
1157
1158
|
}
|
|
1158
|
-
},
|
|
1159
|
+
}, $a = mn && gn(() => {
|
|
1159
1160
|
let t = !1;
|
|
1160
1161
|
const e = new Request(T.origin, {
|
|
1161
1162
|
body: new ReadableStream(),
|
|
@@ -1175,7 +1176,7 @@ Ge && ((t) => {
|
|
|
1175
1176
|
});
|
|
1176
1177
|
});
|
|
1177
1178
|
})(new Response());
|
|
1178
|
-
const
|
|
1179
|
+
const La = async (t) => {
|
|
1179
1180
|
if (t == null)
|
|
1180
1181
|
return 0;
|
|
1181
1182
|
if (p.isBlob(t))
|
|
@@ -1188,11 +1189,11 @@ const $a = async (t) => {
|
|
|
1188
1189
|
if (p.isArrayBufferView(t) || p.isArrayBuffer(t))
|
|
1189
1190
|
return t.byteLength;
|
|
1190
1191
|
if (p.isURLSearchParams(t) && (t = t + ""), p.isString(t))
|
|
1191
|
-
return (await
|
|
1192
|
-
},
|
|
1192
|
+
return (await Da(t)).byteLength;
|
|
1193
|
+
}, Ua = async (t, e) => {
|
|
1193
1194
|
const n = p.toFiniteNumber(t.getContentLength());
|
|
1194
|
-
return n ??
|
|
1195
|
-
},
|
|
1195
|
+
return n ?? La(e);
|
|
1196
|
+
}, Ma = Ge && (async (t) => {
|
|
1196
1197
|
let {
|
|
1197
1198
|
url: e,
|
|
1198
1199
|
method: n,
|
|
@@ -1208,13 +1209,13 @@ const $a = async (t) => {
|
|
|
1208
1209
|
fetchOptions: d
|
|
1209
1210
|
} = hn(t);
|
|
1210
1211
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1211
|
-
let v =
|
|
1212
|
+
let v = xa([o, a && a.toAbortSignal()], i), y;
|
|
1212
1213
|
const m = v && v.unsubscribe && (() => {
|
|
1213
1214
|
v.unsubscribe();
|
|
1214
1215
|
});
|
|
1215
1216
|
let h;
|
|
1216
1217
|
try {
|
|
1217
|
-
if (l &&
|
|
1218
|
+
if (l && $a && n !== "get" && n !== "head" && (h = await Ua(c, r)) !== 0) {
|
|
1218
1219
|
let O = new Request(e, {
|
|
1219
1220
|
method: "POST",
|
|
1220
1221
|
body: r,
|
|
@@ -1278,9 +1279,9 @@ const $a = async (t) => {
|
|
|
1278
1279
|
) : S.from(w, w && w.code, t, y);
|
|
1279
1280
|
}
|
|
1280
1281
|
}), Nt = {
|
|
1281
|
-
http:
|
|
1282
|
-
xhr:
|
|
1283
|
-
fetch:
|
|
1282
|
+
http: Yo,
|
|
1283
|
+
xhr: Ta,
|
|
1284
|
+
fetch: Ma
|
|
1284
1285
|
};
|
|
1285
1286
|
p.forEach(Nt, (t, e) => {
|
|
1286
1287
|
if (t) {
|
|
@@ -1291,7 +1292,7 @@ p.forEach(Nt, (t, e) => {
|
|
|
1291
1292
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1292
1293
|
}
|
|
1293
1294
|
});
|
|
1294
|
-
const lr = (t) => `- ${t}`,
|
|
1295
|
+
const lr = (t) => `- ${t}`, Ba = (t) => p.isFunction(t) || t === null || t === !1, vn = {
|
|
1295
1296
|
getAdapter: (t) => {
|
|
1296
1297
|
t = p.isArray(t) ? t : [t];
|
|
1297
1298
|
const { length: e } = t;
|
|
@@ -1300,7 +1301,7 @@ const lr = (t) => `- ${t}`, Ma = (t) => p.isFunction(t) || t === null || t === !
|
|
|
1300
1301
|
for (let a = 0; a < e; a++) {
|
|
1301
1302
|
n = t[a];
|
|
1302
1303
|
let i;
|
|
1303
|
-
if (r = n, !
|
|
1304
|
+
if (r = n, !Ba(n) && (r = Nt[(i = String(n)).toLowerCase()], r === void 0))
|
|
1304
1305
|
throw new S(`Unknown adapter '${i}'`);
|
|
1305
1306
|
if (r)
|
|
1306
1307
|
break;
|
|
@@ -1367,7 +1368,7 @@ Ve.transitional = function(e, n, r) {
|
|
|
1367
1368
|
Ve.spelling = function(e) {
|
|
1368
1369
|
return (n, r) => !0;
|
|
1369
1370
|
};
|
|
1370
|
-
function
|
|
1371
|
+
function ka(t, e, n) {
|
|
1371
1372
|
if (typeof t != "object")
|
|
1372
1373
|
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
1373
1374
|
const r = Object.keys(t);
|
|
@@ -1385,7 +1386,7 @@ function Ba(t, e, n) {
|
|
|
1385
1386
|
}
|
|
1386
1387
|
}
|
|
1387
1388
|
const _e = {
|
|
1388
|
-
assertOptions:
|
|
1389
|
+
assertOptions: ka,
|
|
1389
1390
|
validators: Ve
|
|
1390
1391
|
}, U = _e.validators;
|
|
1391
1392
|
class Q {
|
|
@@ -1585,12 +1586,12 @@ class Ht {
|
|
|
1585
1586
|
};
|
|
1586
1587
|
}
|
|
1587
1588
|
}
|
|
1588
|
-
function
|
|
1589
|
+
function ja(t) {
|
|
1589
1590
|
return function(n) {
|
|
1590
1591
|
return t.apply(null, n);
|
|
1591
1592
|
};
|
|
1592
1593
|
}
|
|
1593
|
-
function
|
|
1594
|
+
function qa(t) {
|
|
1594
1595
|
return p.isObject(t) && t.isAxiosError === !0;
|
|
1595
1596
|
}
|
|
1596
1597
|
const _t = {
|
|
@@ -1679,8 +1680,8 @@ P.Cancel = P.CanceledError;
|
|
|
1679
1680
|
P.all = function(e) {
|
|
1680
1681
|
return Promise.all(e);
|
|
1681
1682
|
};
|
|
1682
|
-
P.spread =
|
|
1683
|
-
P.isAxiosError =
|
|
1683
|
+
P.spread = ja;
|
|
1684
|
+
P.isAxiosError = qa;
|
|
1684
1685
|
P.mergeConfig = Z;
|
|
1685
1686
|
P.AxiosHeaders = F;
|
|
1686
1687
|
P.formToJSON = (t) => fn(p.isHTMLForm(t) ? new FormData(t) : t);
|
|
@@ -1688,10 +1689,10 @@ P.getAdapter = vn.getAdapter;
|
|
|
1688
1689
|
P.HttpStatusCode = _t;
|
|
1689
1690
|
P.default = P;
|
|
1690
1691
|
var pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1691
|
-
function
|
|
1692
|
+
function za(t) {
|
|
1692
1693
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1693
1694
|
}
|
|
1694
|
-
function
|
|
1695
|
+
function Ha(t) {
|
|
1695
1696
|
if (t.__esModule) return t;
|
|
1696
1697
|
var e = t.default;
|
|
1697
1698
|
if (typeof e == "function") {
|
|
@@ -1711,11 +1712,11 @@ function za(t) {
|
|
|
1711
1712
|
}), n;
|
|
1712
1713
|
}
|
|
1713
1714
|
var ue = TypeError;
|
|
1714
|
-
const
|
|
1715
|
+
const Wa = {}, Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1715
1716
|
__proto__: null,
|
|
1716
|
-
default:
|
|
1717
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1718
|
-
var Wt = typeof Map == "function" && Map.prototype, ot = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Me = Wt && ot && typeof ot.get == "function" ? ot.get : null, dr = Wt && Map.prototype.forEach, Jt = typeof Set == "function" && Set.prototype, at = Object.getOwnPropertyDescriptor && Jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Be = Jt && at && typeof at.get == "function" ? at.get : null, yr = Jt && Set.prototype.forEach,
|
|
1717
|
+
default: Wa
|
|
1718
|
+
}, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */ Ha(Ja);
|
|
1719
|
+
var Wt = typeof Map == "function" && Map.prototype, ot = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Me = Wt && ot && typeof ot.get == "function" ? ot.get : null, dr = Wt && Map.prototype.forEach, Jt = typeof Set == "function" && Set.prototype, at = Object.getOwnPropertyDescriptor && Jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Be = Jt && at && typeof at.get == "function" ? at.get : null, yr = Jt && Set.prototype.forEach, Va = typeof WeakMap == "function" && WeakMap.prototype, ye = Va ? WeakMap.prototype.has : null, Ka = typeof WeakSet == "function" && WeakSet.prototype, he = Ka ? WeakSet.prototype.has : null, Qa = typeof WeakRef == "function" && WeakRef.prototype, hr = Qa ? WeakRef.prototype.deref : null, Xa = Boolean.prototype.valueOf, Za = Object.prototype.toString, Ya = Function.prototype.toString, ei = String.prototype.match, Gt = String.prototype.slice, J = String.prototype.replace, ti = String.prototype.toUpperCase, mr = String.prototype.toLowerCase, bn = RegExp.prototype.test, gr = Array.prototype.concat, k = Array.prototype.join, ri = Array.prototype.slice, vr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, it = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, En = Object.prototype.propertyIsEnumerable, Sr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1719
1720
|
return t.__proto__;
|
|
1720
1721
|
} : null);
|
|
1721
1722
|
function wr(t, e) {
|
|
@@ -1731,11 +1732,11 @@ function wr(t, e) {
|
|
|
1731
1732
|
}
|
|
1732
1733
|
return J.call(e, n, "$&_");
|
|
1733
1734
|
}
|
|
1734
|
-
var $t =
|
|
1735
|
+
var $t = Ga, br = $t.custom, Er = Rn(br) ? br : null, An = {
|
|
1735
1736
|
__proto__: null,
|
|
1736
1737
|
double: '"',
|
|
1737
1738
|
single: "'"
|
|
1738
|
-
},
|
|
1739
|
+
}, ni = {
|
|
1739
1740
|
__proto__: null,
|
|
1740
1741
|
double: /(["\\])/g,
|
|
1741
1742
|
single: /(['\\])/g
|
|
@@ -1774,13 +1775,13 @@ var $t = Ja, br = $t.custom, Er = Rn(br) ? br : null, An = {
|
|
|
1774
1775
|
var c = typeof a.depth > "u" ? 5 : a.depth;
|
|
1775
1776
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
1776
1777
|
return Lt(e) ? "[Array]" : "[Object]";
|
|
1777
|
-
var f =
|
|
1778
|
+
var f = bi(a, r);
|
|
1778
1779
|
if (typeof o > "u")
|
|
1779
1780
|
o = [];
|
|
1780
1781
|
else if (Pn(o, e) >= 0)
|
|
1781
1782
|
return "[Circular]";
|
|
1782
1783
|
function d(D, W, q) {
|
|
1783
|
-
if (W && (o =
|
|
1784
|
+
if (W && (o = ri.call(o), o.push(W)), q) {
|
|
1784
1785
|
var fe = {
|
|
1785
1786
|
depth: a.depth
|
|
1786
1787
|
};
|
|
@@ -1789,25 +1790,25 @@ var $t = Ja, br = $t.custom, Er = Rn(br) ? br : null, An = {
|
|
|
1789
1790
|
return t(D, a, r + 1, o);
|
|
1790
1791
|
}
|
|
1791
1792
|
if (typeof e == "function" && !Ar(e)) {
|
|
1792
|
-
var v =
|
|
1793
|
+
var v = pi(e), y = Ce(e, d);
|
|
1793
1794
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
1794
1795
|
}
|
|
1795
1796
|
if (Rn(e)) {
|
|
1796
1797
|
var m = ie ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(e);
|
|
1797
1798
|
return typeof e == "object" && !ie ? de(m) : m;
|
|
1798
1799
|
}
|
|
1799
|
-
if (
|
|
1800
|
+
if (vi(e)) {
|
|
1800
1801
|
for (var h = "<" + mr.call(String(e.nodeName)), w = e.attributes || [], E = 0; E < w.length; E++)
|
|
1801
|
-
h += " " + w[E].name + "=" + On(
|
|
1802
|
+
h += " " + w[E].name + "=" + On(oi(w[E].value), "double", a);
|
|
1802
1803
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + mr.call(String(e.nodeName)) + ">", h;
|
|
1803
1804
|
}
|
|
1804
1805
|
if (Lt(e)) {
|
|
1805
1806
|
if (e.length === 0)
|
|
1806
1807
|
return "[]";
|
|
1807
1808
|
var g = Ce(e, d);
|
|
1808
|
-
return f && !
|
|
1809
|
+
return f && !wi(g) ? "[" + Ut(g, f) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1809
1810
|
}
|
|
1810
|
-
if (
|
|
1811
|
+
if (ii(e)) {
|
|
1811
1812
|
var A = Ce(e, d);
|
|
1812
1813
|
return !("cause" in Error.prototype) && "cause" in e && !En.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(gr.call("[cause]: " + d(e.cause), A), ", ") + " }" : A.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(A, ", ") + " }";
|
|
1813
1814
|
}
|
|
@@ -1817,37 +1818,37 @@ var $t = Ja, br = $t.custom, Er = Rn(br) ? br : null, An = {
|
|
|
1817
1818
|
if (i !== "symbol" && typeof e.inspect == "function")
|
|
1818
1819
|
return e.inspect();
|
|
1819
1820
|
}
|
|
1820
|
-
if (
|
|
1821
|
+
if (di(e)) {
|
|
1821
1822
|
var O = [];
|
|
1822
1823
|
return dr && dr.call(e, function(D, W) {
|
|
1823
1824
|
O.push(d(W, e, !0) + " => " + d(D, e));
|
|
1824
1825
|
}), Or("Map", Me.call(e), O, f);
|
|
1825
1826
|
}
|
|
1826
|
-
if (
|
|
1827
|
+
if (mi(e)) {
|
|
1827
1828
|
var x = [];
|
|
1828
1829
|
return yr && yr.call(e, function(D) {
|
|
1829
1830
|
x.push(d(D, e));
|
|
1830
1831
|
}), Or("Set", Be.call(e), x, f);
|
|
1831
1832
|
}
|
|
1832
|
-
if (
|
|
1833
|
+
if (yi(e))
|
|
1833
1834
|
return st("WeakMap");
|
|
1834
|
-
if (
|
|
1835
|
+
if (gi(e))
|
|
1835
1836
|
return st("WeakSet");
|
|
1836
|
-
if (
|
|
1837
|
+
if (hi(e))
|
|
1837
1838
|
return st("WeakRef");
|
|
1838
|
-
if (
|
|
1839
|
+
if (ci(e))
|
|
1839
1840
|
return de(d(Number(e)));
|
|
1840
|
-
if (
|
|
1841
|
+
if (ui(e))
|
|
1841
1842
|
return de(d(Ft.call(e)));
|
|
1842
|
-
if (
|
|
1843
|
-
return de(
|
|
1844
|
-
if (
|
|
1843
|
+
if (li(e))
|
|
1844
|
+
return de(Xa.call(e));
|
|
1845
|
+
if (si(e))
|
|
1845
1846
|
return de(d(String(e)));
|
|
1846
1847
|
if (typeof window < "u" && e === window)
|
|
1847
1848
|
return "{ [object Window] }";
|
|
1848
1849
|
if (typeof globalThis < "u" && e === globalThis || typeof pr < "u" && e === pr)
|
|
1849
1850
|
return "{ [object globalThis] }";
|
|
1850
|
-
if (!
|
|
1851
|
+
if (!ai(e) && !Ar(e)) {
|
|
1851
1852
|
var N = Ce(e, d), j = Sr ? Sr(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", H = !j && me && Object(e) === e && me in e ? Gt.call(G(e), 8, -1) : L ? "Object" : "", Pe = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", te = Pe + (H || L ? "[" + k.call(gr.call([], H || [], L || []), ": ") + "] " : "");
|
|
1852
1853
|
return N.length === 0 ? te + "{}" : f ? te + "{" + Ut(N, f) + "}" : te + "{ " + k.call(N, ", ") + " }";
|
|
1853
1854
|
}
|
|
@@ -1857,7 +1858,7 @@ function On(t, e, n) {
|
|
|
1857
1858
|
var r = n.quoteStyle || e, o = An[r];
|
|
1858
1859
|
return o + t + o;
|
|
1859
1860
|
}
|
|
1860
|
-
function
|
|
1861
|
+
function oi(t) {
|
|
1861
1862
|
return J.call(String(t), /"/g, """);
|
|
1862
1863
|
}
|
|
1863
1864
|
function ee(t) {
|
|
@@ -1866,22 +1867,22 @@ function ee(t) {
|
|
|
1866
1867
|
function Lt(t) {
|
|
1867
1868
|
return G(t) === "[object Array]" && ee(t);
|
|
1868
1869
|
}
|
|
1869
|
-
function
|
|
1870
|
+
function ai(t) {
|
|
1870
1871
|
return G(t) === "[object Date]" && ee(t);
|
|
1871
1872
|
}
|
|
1872
1873
|
function Ar(t) {
|
|
1873
1874
|
return G(t) === "[object RegExp]" && ee(t);
|
|
1874
1875
|
}
|
|
1875
|
-
function
|
|
1876
|
+
function ii(t) {
|
|
1876
1877
|
return G(t) === "[object Error]" && ee(t);
|
|
1877
1878
|
}
|
|
1878
|
-
function
|
|
1879
|
+
function si(t) {
|
|
1879
1880
|
return G(t) === "[object String]" && ee(t);
|
|
1880
1881
|
}
|
|
1881
|
-
function
|
|
1882
|
+
function ci(t) {
|
|
1882
1883
|
return G(t) === "[object Number]" && ee(t);
|
|
1883
1884
|
}
|
|
1884
|
-
function
|
|
1885
|
+
function li(t) {
|
|
1885
1886
|
return G(t) === "[object Boolean]" && ee(t);
|
|
1886
1887
|
}
|
|
1887
1888
|
function Rn(t) {
|
|
@@ -1897,7 +1898,7 @@ function Rn(t) {
|
|
|
1897
1898
|
}
|
|
1898
1899
|
return !1;
|
|
1899
1900
|
}
|
|
1900
|
-
function
|
|
1901
|
+
function ui(t) {
|
|
1901
1902
|
if (!t || typeof t != "object" || !Ft)
|
|
1902
1903
|
return !1;
|
|
1903
1904
|
try {
|
|
@@ -1906,19 +1907,19 @@ function li(t) {
|
|
|
1906
1907
|
}
|
|
1907
1908
|
return !1;
|
|
1908
1909
|
}
|
|
1909
|
-
var
|
|
1910
|
+
var fi = Object.prototype.hasOwnProperty || function(t) {
|
|
1910
1911
|
return t in this;
|
|
1911
1912
|
};
|
|
1912
1913
|
function z(t, e) {
|
|
1913
|
-
return
|
|
1914
|
+
return fi.call(t, e);
|
|
1914
1915
|
}
|
|
1915
1916
|
function G(t) {
|
|
1916
|
-
return
|
|
1917
|
+
return Za.call(t);
|
|
1917
1918
|
}
|
|
1918
|
-
function
|
|
1919
|
+
function pi(t) {
|
|
1919
1920
|
if (t.name)
|
|
1920
1921
|
return t.name;
|
|
1921
|
-
var e =
|
|
1922
|
+
var e = ei.call(Ya.call(t), /^function\s*([\w$]+)/);
|
|
1922
1923
|
return e ? e[1] : null;
|
|
1923
1924
|
}
|
|
1924
1925
|
function Pn(t, e) {
|
|
@@ -1929,7 +1930,7 @@ function Pn(t, e) {
|
|
|
1929
1930
|
return n;
|
|
1930
1931
|
return -1;
|
|
1931
1932
|
}
|
|
1932
|
-
function
|
|
1933
|
+
function di(t) {
|
|
1933
1934
|
if (!Me || !t || typeof t != "object")
|
|
1934
1935
|
return !1;
|
|
1935
1936
|
try {
|
|
@@ -1944,7 +1945,7 @@ function pi(t) {
|
|
|
1944
1945
|
}
|
|
1945
1946
|
return !1;
|
|
1946
1947
|
}
|
|
1947
|
-
function
|
|
1948
|
+
function yi(t) {
|
|
1948
1949
|
if (!ye || !t || typeof t != "object")
|
|
1949
1950
|
return !1;
|
|
1950
1951
|
try {
|
|
@@ -1959,7 +1960,7 @@ function di(t) {
|
|
|
1959
1960
|
}
|
|
1960
1961
|
return !1;
|
|
1961
1962
|
}
|
|
1962
|
-
function
|
|
1963
|
+
function hi(t) {
|
|
1963
1964
|
if (!hr || !t || typeof t != "object")
|
|
1964
1965
|
return !1;
|
|
1965
1966
|
try {
|
|
@@ -1968,7 +1969,7 @@ function yi(t) {
|
|
|
1968
1969
|
}
|
|
1969
1970
|
return !1;
|
|
1970
1971
|
}
|
|
1971
|
-
function
|
|
1972
|
+
function mi(t) {
|
|
1972
1973
|
if (!Be || !t || typeof t != "object")
|
|
1973
1974
|
return !1;
|
|
1974
1975
|
try {
|
|
@@ -1983,7 +1984,7 @@ function hi(t) {
|
|
|
1983
1984
|
}
|
|
1984
1985
|
return !1;
|
|
1985
1986
|
}
|
|
1986
|
-
function
|
|
1987
|
+
function gi(t) {
|
|
1987
1988
|
if (!he || !t || typeof t != "object")
|
|
1988
1989
|
return !1;
|
|
1989
1990
|
try {
|
|
@@ -1998,7 +1999,7 @@ function mi(t) {
|
|
|
1998
1999
|
}
|
|
1999
2000
|
return !1;
|
|
2000
2001
|
}
|
|
2001
|
-
function
|
|
2002
|
+
function vi(t) {
|
|
2002
2003
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
2003
2004
|
}
|
|
2004
2005
|
function Cn(t, e) {
|
|
@@ -2006,12 +2007,12 @@ function Cn(t, e) {
|
|
|
2006
2007
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2007
2008
|
return Cn(Gt.call(t, 0, e.maxStringLength), e) + r;
|
|
2008
2009
|
}
|
|
2009
|
-
var o =
|
|
2010
|
+
var o = ni[e.quoteStyle || "single"];
|
|
2010
2011
|
o.lastIndex = 0;
|
|
2011
|
-
var a = J.call(J.call(t, o, "\\$1"), /[\x00-\x1f]/g,
|
|
2012
|
+
var a = J.call(J.call(t, o, "\\$1"), /[\x00-\x1f]/g, Si);
|
|
2012
2013
|
return On(a, "single", e);
|
|
2013
2014
|
}
|
|
2014
|
-
function
|
|
2015
|
+
function Si(t) {
|
|
2015
2016
|
var e = t.charCodeAt(0), n = {
|
|
2016
2017
|
8: "b",
|
|
2017
2018
|
9: "t",
|
|
@@ -2019,7 +2020,7 @@ function vi(t) {
|
|
|
2019
2020
|
12: "f",
|
|
2020
2021
|
13: "r"
|
|
2021
2022
|
}[e];
|
|
2022
|
-
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") +
|
|
2023
|
+
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + ti.call(e.toString(16));
|
|
2023
2024
|
}
|
|
2024
2025
|
function de(t) {
|
|
2025
2026
|
return "Object(" + t + ")";
|
|
@@ -2031,14 +2032,14 @@ function Or(t, e, n, r) {
|
|
|
2031
2032
|
var o = r ? Ut(n, r) : k.call(n, ", ");
|
|
2032
2033
|
return t + " (" + e + ") {" + o + "}";
|
|
2033
2034
|
}
|
|
2034
|
-
function
|
|
2035
|
+
function wi(t) {
|
|
2035
2036
|
for (var e = 0; e < t.length; e++)
|
|
2036
2037
|
if (Pn(t[e], `
|
|
2037
2038
|
`) >= 0)
|
|
2038
2039
|
return !1;
|
|
2039
2040
|
return !0;
|
|
2040
2041
|
}
|
|
2041
|
-
function
|
|
2042
|
+
function bi(t, e) {
|
|
2042
2043
|
var n;
|
|
2043
2044
|
if (t.indent === " ")
|
|
2044
2045
|
n = " ";
|
|
@@ -2079,17 +2080,17 @@ function Ce(t, e) {
|
|
|
2079
2080
|
En.call(t, a[u]) && r.push("[" + e(a[u]) + "]: " + e(t[a[u]], t));
|
|
2080
2081
|
return r;
|
|
2081
2082
|
}
|
|
2082
|
-
var
|
|
2083
|
+
var Ei = Ke, Ai = ue, Qe = function(t, e, n) {
|
|
2083
2084
|
for (var r = t, o; (o = r.next) != null; r = o)
|
|
2084
2085
|
if (o.key === e)
|
|
2085
2086
|
return r.next = o.next, n || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2086
2087
|
t.next, t.next = o), o;
|
|
2087
|
-
},
|
|
2088
|
+
}, Oi = function(t, e) {
|
|
2088
2089
|
if (t) {
|
|
2089
2090
|
var n = Qe(t, e);
|
|
2090
2091
|
return n && n.value;
|
|
2091
2092
|
}
|
|
2092
|
-
},
|
|
2093
|
+
}, Ri = function(t, e, n) {
|
|
2093
2094
|
var r = Qe(t, e);
|
|
2094
2095
|
r ? r.value = n : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2095
2096
|
{
|
|
@@ -2098,31 +2099,31 @@ var bi = Ke, Ei = ue, Qe = function(t, e, n) {
|
|
|
2098
2099
|
next: t.next,
|
|
2099
2100
|
value: n
|
|
2100
2101
|
};
|
|
2101
|
-
}, Ri = function(t, e) {
|
|
2102
|
-
return t ? !!Qe(t, e) : !1;
|
|
2103
2102
|
}, Pi = function(t, e) {
|
|
2103
|
+
return t ? !!Qe(t, e) : !1;
|
|
2104
|
+
}, Ci = function(t, e) {
|
|
2104
2105
|
if (t)
|
|
2105
2106
|
return Qe(t, e, !0);
|
|
2106
|
-
},
|
|
2107
|
+
}, Ii = function() {
|
|
2107
2108
|
var e, n = {
|
|
2108
2109
|
assert: function(r) {
|
|
2109
2110
|
if (!n.has(r))
|
|
2110
|
-
throw new
|
|
2111
|
+
throw new Ai("Side channel does not contain " + Ei(r));
|
|
2111
2112
|
},
|
|
2112
2113
|
delete: function(r) {
|
|
2113
|
-
var o = e && e.next, a =
|
|
2114
|
+
var o = e && e.next, a = Ci(e, r);
|
|
2114
2115
|
return a && o && o === a && (e = void 0), !!a;
|
|
2115
2116
|
},
|
|
2116
2117
|
get: function(r) {
|
|
2117
|
-
return
|
|
2118
|
+
return Oi(e, r);
|
|
2118
2119
|
},
|
|
2119
2120
|
has: function(r) {
|
|
2120
|
-
return
|
|
2121
|
+
return Pi(e, r);
|
|
2121
2122
|
},
|
|
2122
2123
|
set: function(r, o) {
|
|
2123
2124
|
e || (e = {
|
|
2124
2125
|
next: void 0
|
|
2125
|
-
}),
|
|
2126
|
+
}), Ri(
|
|
2126
2127
|
/** @type {NonNullable<typeof $o>} */
|
|
2127
2128
|
e,
|
|
2128
2129
|
r,
|
|
@@ -2131,11 +2132,11 @@ var bi = Ke, Ei = ue, Qe = function(t, e, n) {
|
|
|
2131
2132
|
}
|
|
2132
2133
|
};
|
|
2133
2134
|
return n;
|
|
2134
|
-
}, In = Object,
|
|
2135
|
+
}, In = Object, Ti = Error, xi = EvalError, Ni = RangeError, _i = ReferenceError, Fi = SyntaxError, Di = URIError, $i = Math.abs, Li = Math.floor, Ui = Math.max, Mi = Math.min, Bi = Math.pow, ki = Math.round, ji = Number.isNaN || function(e) {
|
|
2135
2136
|
return e !== e;
|
|
2136
|
-
},
|
|
2137
|
-
return
|
|
2138
|
-
},
|
|
2137
|
+
}, qi = ji, zi = function(e) {
|
|
2138
|
+
return qi(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2139
|
+
}, Hi = Object.getOwnPropertyDescriptor, Fe = Hi;
|
|
2139
2140
|
if (Fe)
|
|
2140
2141
|
try {
|
|
2141
2142
|
Fe([], "length");
|
|
@@ -2149,8 +2150,8 @@ if (De)
|
|
|
2149
2150
|
} catch {
|
|
2150
2151
|
De = !1;
|
|
2151
2152
|
}
|
|
2152
|
-
var
|
|
2153
|
-
function
|
|
2153
|
+
var Wi = De, ct, Rr;
|
|
2154
|
+
function Ji() {
|
|
2154
2155
|
return Rr || (Rr = 1, ct = function() {
|
|
2155
2156
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2156
2157
|
return !1;
|
|
@@ -2180,10 +2181,10 @@ function Wi() {
|
|
|
2180
2181
|
}), ct;
|
|
2181
2182
|
}
|
|
2182
2183
|
var lt, Pr;
|
|
2183
|
-
function
|
|
2184
|
+
function Gi() {
|
|
2184
2185
|
if (Pr) return lt;
|
|
2185
2186
|
Pr = 1;
|
|
2186
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
2187
|
+
var t = typeof Symbol < "u" && Symbol, e = Ji();
|
|
2187
2188
|
return lt = function() {
|
|
2188
2189
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2189
2190
|
}, lt;
|
|
@@ -2200,7 +2201,7 @@ function Nn() {
|
|
|
2200
2201
|
return ft = t.getPrototypeOf || null, ft;
|
|
2201
2202
|
}
|
|
2202
2203
|
var pt, Tr;
|
|
2203
|
-
function
|
|
2204
|
+
function Vi() {
|
|
2204
2205
|
if (Tr) return pt;
|
|
2205
2206
|
Tr = 1;
|
|
2206
2207
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(l, u) {
|
|
@@ -2248,7 +2249,7 @@ var dt, xr;
|
|
|
2248
2249
|
function Xe() {
|
|
2249
2250
|
if (xr) return dt;
|
|
2250
2251
|
xr = 1;
|
|
2251
|
-
var t =
|
|
2252
|
+
var t = Vi();
|
|
2252
2253
|
return dt = Function.prototype.bind || t, dt;
|
|
2253
2254
|
}
|
|
2254
2255
|
var yt, Nr;
|
|
@@ -2259,12 +2260,12 @@ var ht, _r;
|
|
|
2259
2260
|
function _n() {
|
|
2260
2261
|
return _r || (_r = 1, ht = Function.prototype.apply), ht;
|
|
2261
2262
|
}
|
|
2262
|
-
var
|
|
2263
|
+
var Ki = typeof Reflect < "u" && Reflect && Reflect.apply, Qi = Xe(), Xi = _n(), Zi = Vt(), Yi = Ki, es = Yi || Qi.call(Zi, Xi), ts = Xe(), rs = ue, ns = Vt(), os = es, Fn = function(e) {
|
|
2263
2264
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2264
|
-
throw new
|
|
2265
|
-
return
|
|
2265
|
+
throw new rs("a function is required");
|
|
2266
|
+
return os(ts, ns, e);
|
|
2266
2267
|
}, mt, Fr;
|
|
2267
|
-
function
|
|
2268
|
+
function as() {
|
|
2268
2269
|
if (Fr) return mt;
|
|
2269
2270
|
Fr = 1;
|
|
2270
2271
|
var t = Fn, e = Tn, n;
|
|
@@ -2288,10 +2289,10 @@ function os() {
|
|
|
2288
2289
|
) : !1, mt;
|
|
2289
2290
|
}
|
|
2290
2291
|
var gt, Dr;
|
|
2291
|
-
function
|
|
2292
|
+
function is() {
|
|
2292
2293
|
if (Dr) return gt;
|
|
2293
2294
|
Dr = 1;
|
|
2294
|
-
var t = xn(), e = Nn(), n =
|
|
2295
|
+
var t = xn(), e = Nn(), n = as();
|
|
2295
2296
|
return gt = t ? function(o) {
|
|
2296
2297
|
return t(o);
|
|
2297
2298
|
} : e ? function(o) {
|
|
@@ -2303,20 +2304,20 @@ function as() {
|
|
|
2303
2304
|
} : null, gt;
|
|
2304
2305
|
}
|
|
2305
2306
|
var vt, $r;
|
|
2306
|
-
function
|
|
2307
|
+
function ss() {
|
|
2307
2308
|
if ($r) return vt;
|
|
2308
2309
|
$r = 1;
|
|
2309
2310
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Xe();
|
|
2310
2311
|
return vt = n.call(t, e), vt;
|
|
2311
2312
|
}
|
|
2312
|
-
var b,
|
|
2313
|
+
var b, cs = In, ls = Ti, us = xi, fs = Ni, ps = _i, se = Fi, ae = ue, ds = Di, ys = $i, hs = Li, ms = Ui, gs = Mi, vs = Bi, Ss = ki, ws = zi, Dn = Function, St = function(t) {
|
|
2313
2314
|
try {
|
|
2314
2315
|
return Dn('"use strict"; return (' + t + ").constructor;")();
|
|
2315
2316
|
} catch {
|
|
2316
2317
|
}
|
|
2317
|
-
}, Se = Tn,
|
|
2318
|
+
}, Se = Tn, bs = Wi, wt = function() {
|
|
2318
2319
|
throw new ae();
|
|
2319
|
-
},
|
|
2320
|
+
}, Es = Se ? function() {
|
|
2320
2321
|
try {
|
|
2321
2322
|
return arguments.callee, wt;
|
|
2322
2323
|
} catch {
|
|
@@ -2326,7 +2327,7 @@ var b, ss = In, cs = Ii, ls = Ti, us = xi, fs = Ni, se = _i, ae = ue, ps = Fi, d
|
|
|
2326
2327
|
return wt;
|
|
2327
2328
|
}
|
|
2328
2329
|
}
|
|
2329
|
-
}() : wt, re =
|
|
2330
|
+
}() : wt, re = Gi()(), I = is(), As = Nn(), Os = xn(), $n = _n(), Ae = Vt(), oe = {}, Rs = typeof Uint8Array > "u" || !I ? b : I(Uint8Array), X = {
|
|
2330
2331
|
__proto__: null,
|
|
2331
2332
|
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
2332
2333
|
"%Array%": Array,
|
|
@@ -2348,10 +2349,10 @@ var b, ss = In, cs = Ii, ls = Ti, us = xi, fs = Ni, se = _i, ae = ue, ps = Fi, d
|
|
|
2348
2349
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2349
2350
|
"%encodeURI%": encodeURI,
|
|
2350
2351
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2351
|
-
"%Error%":
|
|
2352
|
+
"%Error%": ls,
|
|
2352
2353
|
"%eval%": eval,
|
|
2353
2354
|
// eslint-disable-line no-eval
|
|
2354
|
-
"%EvalError%":
|
|
2355
|
+
"%EvalError%": us,
|
|
2355
2356
|
"%Float16Array%": typeof Float16Array > "u" ? b : Float16Array,
|
|
2356
2357
|
"%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
|
|
2357
2358
|
"%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
|
|
@@ -2369,14 +2370,14 @@ var b, ss = In, cs = Ii, ls = Ti, us = xi, fs = Ni, se = _i, ae = ue, ps = Fi, d
|
|
|
2369
2370
|
"%MapIteratorPrototype%": typeof Map > "u" || !re || !I ? b : I((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2370
2371
|
"%Math%": Math,
|
|
2371
2372
|
"%Number%": Number,
|
|
2372
|
-
"%Object%":
|
|
2373
|
+
"%Object%": cs,
|
|
2373
2374
|
"%Object.getOwnPropertyDescriptor%": Se,
|
|
2374
2375
|
"%parseFloat%": parseFloat,
|
|
2375
2376
|
"%parseInt%": parseInt,
|
|
2376
2377
|
"%Promise%": typeof Promise > "u" ? b : Promise,
|
|
2377
2378
|
"%Proxy%": typeof Proxy > "u" ? b : Proxy,
|
|
2378
|
-
"%RangeError%":
|
|
2379
|
-
"%ReferenceError%":
|
|
2379
|
+
"%RangeError%": fs,
|
|
2380
|
+
"%ReferenceError%": ps,
|
|
2380
2381
|
"%Reflect%": typeof Reflect > "u" ? b : Reflect,
|
|
2381
2382
|
"%RegExp%": RegExp,
|
|
2382
2383
|
"%Set%": typeof Set > "u" ? b : Set,
|
|
@@ -2386,38 +2387,38 @@ var b, ss = In, cs = Ii, ls = Ti, us = xi, fs = Ni, se = _i, ae = ue, ps = Fi, d
|
|
|
2386
2387
|
"%StringIteratorPrototype%": re && I ? I(""[Symbol.iterator]()) : b,
|
|
2387
2388
|
"%Symbol%": re ? Symbol : b,
|
|
2388
2389
|
"%SyntaxError%": se,
|
|
2389
|
-
"%ThrowTypeError%":
|
|
2390
|
-
"%TypedArray%":
|
|
2390
|
+
"%ThrowTypeError%": Es,
|
|
2391
|
+
"%TypedArray%": Rs,
|
|
2391
2392
|
"%TypeError%": ae,
|
|
2392
2393
|
"%Uint8Array%": typeof Uint8Array > "u" ? b : Uint8Array,
|
|
2393
2394
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? b : Uint8ClampedArray,
|
|
2394
2395
|
"%Uint16Array%": typeof Uint16Array > "u" ? b : Uint16Array,
|
|
2395
2396
|
"%Uint32Array%": typeof Uint32Array > "u" ? b : Uint32Array,
|
|
2396
|
-
"%URIError%":
|
|
2397
|
+
"%URIError%": ds,
|
|
2397
2398
|
"%WeakMap%": typeof WeakMap > "u" ? b : WeakMap,
|
|
2398
2399
|
"%WeakRef%": typeof WeakRef > "u" ? b : WeakRef,
|
|
2399
2400
|
"%WeakSet%": typeof WeakSet > "u" ? b : WeakSet,
|
|
2400
2401
|
"%Function.prototype.call%": Ae,
|
|
2401
2402
|
"%Function.prototype.apply%": $n,
|
|
2402
|
-
"%Object.defineProperty%":
|
|
2403
|
-
"%Object.getPrototypeOf%":
|
|
2404
|
-
"%Math.abs%":
|
|
2405
|
-
"%Math.floor%":
|
|
2406
|
-
"%Math.max%":
|
|
2407
|
-
"%Math.min%":
|
|
2408
|
-
"%Math.pow%":
|
|
2409
|
-
"%Math.round%":
|
|
2410
|
-
"%Math.sign%":
|
|
2411
|
-
"%Reflect.getPrototypeOf%":
|
|
2403
|
+
"%Object.defineProperty%": bs,
|
|
2404
|
+
"%Object.getPrototypeOf%": As,
|
|
2405
|
+
"%Math.abs%": ys,
|
|
2406
|
+
"%Math.floor%": hs,
|
|
2407
|
+
"%Math.max%": ms,
|
|
2408
|
+
"%Math.min%": gs,
|
|
2409
|
+
"%Math.pow%": vs,
|
|
2410
|
+
"%Math.round%": Ss,
|
|
2411
|
+
"%Math.sign%": ws,
|
|
2412
|
+
"%Reflect.getPrototypeOf%": Os
|
|
2412
2413
|
};
|
|
2413
2414
|
if (I)
|
|
2414
2415
|
try {
|
|
2415
2416
|
null.error;
|
|
2416
2417
|
} catch (t) {
|
|
2417
|
-
var
|
|
2418
|
-
X["%Error.prototype%"] =
|
|
2418
|
+
var Ps = I(I(t));
|
|
2419
|
+
X["%Error.prototype%"] = Ps;
|
|
2419
2420
|
}
|
|
2420
|
-
var
|
|
2421
|
+
var Cs = function t(e) {
|
|
2421
2422
|
var n;
|
|
2422
2423
|
if (e === "%AsyncFunction%")
|
|
2423
2424
|
n = St("async function () {}");
|
|
@@ -2486,21 +2487,21 @@ var Ps = function t(e) {
|
|
|
2486
2487
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2487
2488
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2488
2489
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2489
|
-
}, Oe = Xe(), ke =
|
|
2490
|
+
}, Oe = Xe(), ke = ss(), Is = Oe.call(Ae, Array.prototype.concat), Ts = Oe.call($n, Array.prototype.splice), Ur = Oe.call(Ae, String.prototype.replace), je = Oe.call(Ae, String.prototype.slice), xs = Oe.call(Ae, RegExp.prototype.exec), Ns = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, _s = /\\(\\)?/g, Fs = function(e) {
|
|
2490
2491
|
var n = je(e, 0, 1), r = je(e, -1);
|
|
2491
2492
|
if (n === "%" && r !== "%")
|
|
2492
2493
|
throw new se("invalid intrinsic syntax, expected closing `%`");
|
|
2493
2494
|
if (r === "%" && n !== "%")
|
|
2494
2495
|
throw new se("invalid intrinsic syntax, expected opening `%`");
|
|
2495
2496
|
var o = [];
|
|
2496
|
-
return Ur(e,
|
|
2497
|
-
o[o.length] = s ? Ur(l,
|
|
2497
|
+
return Ur(e, Ns, function(a, i, s, l) {
|
|
2498
|
+
o[o.length] = s ? Ur(l, _s, "$1") : i || a;
|
|
2498
2499
|
}), o;
|
|
2499
|
-
},
|
|
2500
|
+
}, Ds = function(e, n) {
|
|
2500
2501
|
var r = e, o;
|
|
2501
2502
|
if (ke(Lr, r) && (o = Lr[r], r = "%" + o[0] + "%"), ke(X, r)) {
|
|
2502
2503
|
var a = X[r];
|
|
2503
|
-
if (a === oe && (a =
|
|
2504
|
+
if (a === oe && (a = Cs(r)), typeof a > "u" && !n)
|
|
2504
2505
|
throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
2505
2506
|
return {
|
|
2506
2507
|
alias: o,
|
|
@@ -2514,10 +2515,10 @@ var Ps = function t(e) {
|
|
|
2514
2515
|
throw new ae("intrinsic name must be a non-empty string");
|
|
2515
2516
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
2516
2517
|
throw new ae('"allowMissing" argument must be a boolean');
|
|
2517
|
-
if (
|
|
2518
|
+
if (xs(/^%?[^%]*%?$/, e) === null)
|
|
2518
2519
|
throw new se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2519
|
-
var r =
|
|
2520
|
-
u && (o = u[0],
|
|
2520
|
+
var r = Fs(e), o = r.length > 0 ? r[0] : "", a = Ds("%" + o + "%", n), i = a.name, s = a.value, l = !1, u = a.alias;
|
|
2521
|
+
u && (o = u[0], Ts(r, Is([0, 1], u)));
|
|
2521
2522
|
for (var c = 1, f = !0; c < r.length; c += 1) {
|
|
2522
2523
|
var d = r[c], v = je(d, 0, 1), y = je(d, -1);
|
|
2523
2524
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
@@ -2539,74 +2540,74 @@ var Ps = function t(e) {
|
|
|
2539
2540
|
}
|
|
2540
2541
|
}
|
|
2541
2542
|
return s;
|
|
2542
|
-
}, Ln = Kt, Un = Fn,
|
|
2543
|
+
}, Ln = Kt, Un = Fn, $s = Un([Ln("%String.prototype.indexOf%")]), Mn = function(e, n) {
|
|
2543
2544
|
var r = (
|
|
2544
2545
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2545
2546
|
Ln(e, !!n)
|
|
2546
2547
|
);
|
|
2547
|
-
return typeof r == "function" &&
|
|
2548
|
+
return typeof r == "function" && $s(e, ".prototype.") > -1 ? Un(
|
|
2548
2549
|
/** @type {const} */
|
|
2549
2550
|
[r]
|
|
2550
2551
|
) : r;
|
|
2551
|
-
},
|
|
2552
|
+
}, Ls = Kt, Re = Mn, Us = Ke, Ms = ue, Mr = Ls("%Map%", !0), Bs = Re("Map.prototype.get", !0), ks = Re("Map.prototype.set", !0), js = Re("Map.prototype.has", !0), qs = Re("Map.prototype.delete", !0), zs = Re("Map.prototype.size", !0), Bn = !!Mr && /** @type {Exclude<import('.'), false>} */
|
|
2552
2553
|
function() {
|
|
2553
2554
|
var e, n = {
|
|
2554
2555
|
assert: function(r) {
|
|
2555
2556
|
if (!n.has(r))
|
|
2556
|
-
throw new
|
|
2557
|
+
throw new Ms("Side channel does not contain " + Us(r));
|
|
2557
2558
|
},
|
|
2558
2559
|
delete: function(r) {
|
|
2559
2560
|
if (e) {
|
|
2560
|
-
var o =
|
|
2561
|
-
return
|
|
2561
|
+
var o = qs(e, r);
|
|
2562
|
+
return zs(e) === 0 && (e = void 0), o;
|
|
2562
2563
|
}
|
|
2563
2564
|
return !1;
|
|
2564
2565
|
},
|
|
2565
2566
|
get: function(r) {
|
|
2566
2567
|
if (e)
|
|
2567
|
-
return
|
|
2568
|
+
return Bs(e, r);
|
|
2568
2569
|
},
|
|
2569
2570
|
has: function(r) {
|
|
2570
|
-
return e ?
|
|
2571
|
+
return e ? js(e, r) : !1;
|
|
2571
2572
|
},
|
|
2572
2573
|
set: function(r, o) {
|
|
2573
|
-
e || (e = new Mr()),
|
|
2574
|
+
e || (e = new Mr()), ks(e, r, o);
|
|
2574
2575
|
}
|
|
2575
2576
|
};
|
|
2576
2577
|
return n;
|
|
2577
|
-
},
|
|
2578
|
+
}, Hs = Kt, Ze = Mn, Ws = Ke, Ie = Bn, Js = ue, ne = Hs("%WeakMap%", !0), Gs = Ze("WeakMap.prototype.get", !0), Vs = Ze("WeakMap.prototype.set", !0), Ks = Ze("WeakMap.prototype.has", !0), Qs = Ze("WeakMap.prototype.delete", !0), Xs = ne ? (
|
|
2578
2579
|
/** @type {Exclude<import('.'), false>} */
|
|
2579
2580
|
function() {
|
|
2580
2581
|
var e, n, r = {
|
|
2581
2582
|
assert: function(o) {
|
|
2582
2583
|
if (!r.has(o))
|
|
2583
|
-
throw new
|
|
2584
|
+
throw new Js("Side channel does not contain " + Ws(o));
|
|
2584
2585
|
},
|
|
2585
2586
|
delete: function(o) {
|
|
2586
2587
|
if (ne && o && (typeof o == "object" || typeof o == "function")) {
|
|
2587
2588
|
if (e)
|
|
2588
|
-
return
|
|
2589
|
+
return Qs(e, o);
|
|
2589
2590
|
} else if (Ie && n)
|
|
2590
2591
|
return n.delete(o);
|
|
2591
2592
|
return !1;
|
|
2592
2593
|
},
|
|
2593
2594
|
get: function(o) {
|
|
2594
|
-
return ne && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2595
|
+
return ne && o && (typeof o == "object" || typeof o == "function") && e ? Gs(e, o) : n && n.get(o);
|
|
2595
2596
|
},
|
|
2596
2597
|
has: function(o) {
|
|
2597
|
-
return ne && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2598
|
+
return ne && o && (typeof o == "object" || typeof o == "function") && e ? Ks(e, o) : !!n && n.has(o);
|
|
2598
2599
|
},
|
|
2599
2600
|
set: function(o, a) {
|
|
2600
|
-
ne && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ne()),
|
|
2601
|
+
ne && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ne()), Vs(e, o, a)) : Ie && (n || (n = Ie()), n.set(o, a));
|
|
2601
2602
|
}
|
|
2602
2603
|
};
|
|
2603
2604
|
return r;
|
|
2604
2605
|
}
|
|
2605
|
-
) : Ie,
|
|
2606
|
+
) : Ie, Zs = ue, Ys = Ke, ec = Ii, tc = Bn, rc = Xs, nc = rc || tc || ec, oc = function() {
|
|
2606
2607
|
var e, n = {
|
|
2607
2608
|
assert: function(r) {
|
|
2608
2609
|
if (!n.has(r))
|
|
2609
|
-
throw new
|
|
2610
|
+
throw new Zs("Side channel does not contain " + Ys(r));
|
|
2610
2611
|
},
|
|
2611
2612
|
delete: function(r) {
|
|
2612
2613
|
return !!e && e.delete(r);
|
|
@@ -2618,18 +2619,18 @@ function() {
|
|
|
2618
2619
|
return !!e && e.has(r);
|
|
2619
2620
|
},
|
|
2620
2621
|
set: function(r, o) {
|
|
2621
|
-
e || (e =
|
|
2622
|
+
e || (e = nc()), e.set(r, o);
|
|
2622
2623
|
}
|
|
2623
2624
|
};
|
|
2624
2625
|
return n;
|
|
2625
|
-
},
|
|
2626
|
+
}, ac = String.prototype.replace, ic = /%20/g, bt = {
|
|
2626
2627
|
RFC1738: "RFC1738",
|
|
2627
2628
|
RFC3986: "RFC3986"
|
|
2628
2629
|
}, Qt = {
|
|
2629
2630
|
default: bt.RFC3986,
|
|
2630
2631
|
formatters: {
|
|
2631
2632
|
RFC1738: function(t) {
|
|
2632
|
-
return
|
|
2633
|
+
return ac.call(t, ic, "+");
|
|
2633
2634
|
},
|
|
2634
2635
|
RFC3986: function(t) {
|
|
2635
2636
|
return String(t);
|
|
@@ -2637,11 +2638,11 @@ function() {
|
|
|
2637
2638
|
},
|
|
2638
2639
|
RFC1738: bt.RFC1738,
|
|
2639
2640
|
RFC3986: bt.RFC3986
|
|
2640
|
-
},
|
|
2641
|
+
}, sc = Qt, Et = Object.prototype.hasOwnProperty, V = Array.isArray, M = function() {
|
|
2641
2642
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2642
2643
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2643
2644
|
return t;
|
|
2644
|
-
}(),
|
|
2645
|
+
}(), cc = function(e) {
|
|
2645
2646
|
for (; e.length > 1; ) {
|
|
2646
2647
|
var n = e.pop(), r = n.obj[n.prop];
|
|
2647
2648
|
if (V(r)) {
|
|
@@ -2654,7 +2655,7 @@ function() {
|
|
|
2654
2655
|
for (var r = n && n.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
2655
2656
|
typeof e[o] < "u" && (r[o] = e[o]);
|
|
2656
2657
|
return r;
|
|
2657
|
-
},
|
|
2658
|
+
}, lc = function t(e, n, r) {
|
|
2658
2659
|
if (!n)
|
|
2659
2660
|
return e;
|
|
2660
2661
|
if (typeof n != "object" && typeof n != "function") {
|
|
@@ -2679,11 +2680,11 @@ function() {
|
|
|
2679
2680
|
var s = n[i];
|
|
2680
2681
|
return Et.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
|
|
2681
2682
|
}, o);
|
|
2682
|
-
},
|
|
2683
|
+
}, uc = function(e, n) {
|
|
2683
2684
|
return Object.keys(n).reduce(function(r, o) {
|
|
2684
2685
|
return r[o] = n[o], r;
|
|
2685
2686
|
}, e);
|
|
2686
|
-
},
|
|
2687
|
+
}, fc = function(t, e, n) {
|
|
2687
2688
|
var r = t.replace(/\+/g, " ");
|
|
2688
2689
|
if (n === "iso-8859-1")
|
|
2689
2690
|
return r.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -2692,7 +2693,7 @@ function() {
|
|
|
2692
2693
|
} catch {
|
|
2693
2694
|
return r;
|
|
2694
2695
|
}
|
|
2695
|
-
}, At = 1024,
|
|
2696
|
+
}, At = 1024, pc = function(e, n, r, o, a) {
|
|
2696
2697
|
if (e.length === 0)
|
|
2697
2698
|
return e;
|
|
2698
2699
|
var i = e;
|
|
@@ -2703,7 +2704,7 @@ function() {
|
|
|
2703
2704
|
for (var s = "", l = 0; l < i.length; l += At) {
|
|
2704
2705
|
for (var u = i.length >= At ? i.slice(l, l + At) : i, c = [], f = 0; f < u.length; ++f) {
|
|
2705
2706
|
var d = u.charCodeAt(f);
|
|
2706
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a ===
|
|
2707
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === sc.RFC1738 && (d === 40 || d === 41)) {
|
|
2707
2708
|
c[c.length] = u.charAt(f);
|
|
2708
2709
|
continue;
|
|
2709
2710
|
}
|
|
@@ -2724,20 +2725,20 @@ function() {
|
|
|
2724
2725
|
s += c.join("");
|
|
2725
2726
|
}
|
|
2726
2727
|
return s;
|
|
2727
|
-
},
|
|
2728
|
+
}, dc = function(e) {
|
|
2728
2729
|
for (var n = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
|
|
2729
2730
|
for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), l = 0; l < s.length; ++l) {
|
|
2730
2731
|
var u = s[l], c = i[u];
|
|
2731
2732
|
typeof c == "object" && c !== null && r.indexOf(c) === -1 && (n.push({ obj: i, prop: u }), r.push(c));
|
|
2732
2733
|
}
|
|
2733
|
-
return
|
|
2734
|
-
}, dc = function(e) {
|
|
2735
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
2734
|
+
return cc(n), e;
|
|
2736
2735
|
}, yc = function(e) {
|
|
2736
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
2737
|
+
}, hc = function(e) {
|
|
2737
2738
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
2738
|
-
}, hc = function(e, n) {
|
|
2739
|
-
return [].concat(e, n);
|
|
2740
2739
|
}, mc = function(e, n) {
|
|
2740
|
+
return [].concat(e, n);
|
|
2741
|
+
}, gc = function(e, n) {
|
|
2741
2742
|
if (V(e)) {
|
|
2742
2743
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
2743
2744
|
r.push(n(e[o]));
|
|
@@ -2746,16 +2747,16 @@ function() {
|
|
|
2746
2747
|
return n(e);
|
|
2747
2748
|
}, jn = {
|
|
2748
2749
|
arrayToObject: kn,
|
|
2749
|
-
assign:
|
|
2750
|
-
combine:
|
|
2751
|
-
compact:
|
|
2752
|
-
decode:
|
|
2753
|
-
encode:
|
|
2754
|
-
isBuffer:
|
|
2755
|
-
isRegExp:
|
|
2756
|
-
maybeMap:
|
|
2757
|
-
merge:
|
|
2758
|
-
}, qn =
|
|
2750
|
+
assign: uc,
|
|
2751
|
+
combine: mc,
|
|
2752
|
+
compact: dc,
|
|
2753
|
+
decode: fc,
|
|
2754
|
+
encode: pc,
|
|
2755
|
+
isBuffer: hc,
|
|
2756
|
+
isRegExp: yc,
|
|
2757
|
+
maybeMap: gc,
|
|
2758
|
+
merge: lc
|
|
2759
|
+
}, qn = oc, $e = jn, ge = Qt, vc = Object.prototype.hasOwnProperty, zn = {
|
|
2759
2760
|
brackets: function(e) {
|
|
2760
2761
|
return e + "[]";
|
|
2761
2762
|
},
|
|
@@ -2766,9 +2767,9 @@ function() {
|
|
|
2766
2767
|
repeat: function(e) {
|
|
2767
2768
|
return e;
|
|
2768
2769
|
}
|
|
2769
|
-
}, B = Array.isArray,
|
|
2770
|
-
|
|
2771
|
-
},
|
|
2770
|
+
}, B = Array.isArray, Sc = Array.prototype.push, Hn = function(t, e) {
|
|
2771
|
+
Sc.apply(t, B(e) ? e : [e]);
|
|
2772
|
+
}, wc = Date.prototype.toISOString, Br = ge.default, C = {
|
|
2772
2773
|
addQueryPrefix: !1,
|
|
2773
2774
|
allowDots: !1,
|
|
2774
2775
|
allowEmptyArrays: !1,
|
|
@@ -2787,13 +2788,13 @@ function() {
|
|
|
2787
2788
|
// deprecated
|
|
2788
2789
|
indices: !1,
|
|
2789
2790
|
serializeDate: function(e) {
|
|
2790
|
-
return
|
|
2791
|
+
return wc.call(e);
|
|
2791
2792
|
},
|
|
2792
2793
|
skipNulls: !1,
|
|
2793
2794
|
strictNullHandling: !1
|
|
2794
|
-
},
|
|
2795
|
+
}, bc = function(e) {
|
|
2795
2796
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2796
|
-
}, Ot = {},
|
|
2797
|
+
}, Ot = {}, Ec = function t(e, n, r, o, a, i, s, l, u, c, f, d, v, y, m, h, w, E) {
|
|
2797
2798
|
for (var g = e, A = E, O = 0, x = !1; (A = A.get(Ot)) !== void 0 && !x; ) {
|
|
2798
2799
|
var N = A.get(e);
|
|
2799
2800
|
if (O += 1, typeof N < "u") {
|
|
@@ -2810,7 +2811,7 @@ function() {
|
|
|
2810
2811
|
return u && !h ? u(n, C.encoder, w, "key", y) : n;
|
|
2811
2812
|
g = "";
|
|
2812
2813
|
}
|
|
2813
|
-
if (
|
|
2814
|
+
if (bc(g) || $e.isBuffer(g)) {
|
|
2814
2815
|
if (u) {
|
|
2815
2816
|
var j = h ? n : u(n, C.encoder, w, "key", y);
|
|
2816
2817
|
return [m(j) + "=" + m(u(g, C.encoder, w, "value", y))];
|
|
@@ -2861,7 +2862,7 @@ function() {
|
|
|
2861
2862
|
}
|
|
2862
2863
|
}
|
|
2863
2864
|
return L;
|
|
2864
|
-
},
|
|
2865
|
+
}, Ac = function(e) {
|
|
2865
2866
|
if (!e)
|
|
2866
2867
|
return C;
|
|
2867
2868
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2875,7 +2876,7 @@ function() {
|
|
|
2875
2876
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2876
2877
|
var r = ge.default;
|
|
2877
2878
|
if (typeof e.format < "u") {
|
|
2878
|
-
if (!
|
|
2879
|
+
if (!vc.call(ge.formatters, e.format))
|
|
2879
2880
|
throw new TypeError("Unknown format option provided.");
|
|
2880
2881
|
r = e.format;
|
|
2881
2882
|
}
|
|
@@ -2906,8 +2907,8 @@ function() {
|
|
|
2906
2907
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
2907
2908
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : C.strictNullHandling
|
|
2908
2909
|
};
|
|
2909
|
-
},
|
|
2910
|
-
var n = t, r =
|
|
2910
|
+
}, Oc = function(t, e) {
|
|
2911
|
+
var n = t, r = Ac(e), o, a;
|
|
2911
2912
|
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : B(r.filter) && (a = r.filter, o = a);
|
|
2912
2913
|
var i = [];
|
|
2913
2914
|
if (typeof n != "object" || n === null)
|
|
@@ -2916,7 +2917,7 @@ function() {
|
|
|
2916
2917
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2917
2918
|
for (var u = qn(), c = 0; c < o.length; ++c) {
|
|
2918
2919
|
var f = o[c], d = n[f];
|
|
2919
|
-
r.skipNulls && d === null || Hn(i,
|
|
2920
|
+
r.skipNulls && d === null || Hn(i, Ec(
|
|
2920
2921
|
d,
|
|
2921
2922
|
f,
|
|
2922
2923
|
s,
|
|
@@ -2961,7 +2962,7 @@ function() {
|
|
|
2961
2962
|
strictDepth: !1,
|
|
2962
2963
|
strictNullHandling: !1,
|
|
2963
2964
|
throwOnLimitExceeded: !1
|
|
2964
|
-
},
|
|
2965
|
+
}, Rc = function(t) {
|
|
2965
2966
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2966
2967
|
return String.fromCharCode(parseInt(n, 10));
|
|
2967
2968
|
});
|
|
@@ -2971,7 +2972,7 @@ function() {
|
|
|
2971
2972
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
2972
2973
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2973
2974
|
return t;
|
|
2974
|
-
},
|
|
2975
|
+
}, Pc = "utf8=%26%2310003%3B", Cc = "utf8=%E2%9C%93", Ic = function(e, n) {
|
|
2975
2976
|
var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
2976
2977
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
2977
2978
|
var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(
|
|
@@ -2983,7 +2984,7 @@ function() {
|
|
|
2983
2984
|
var s = -1, l, u = n.charset;
|
|
2984
2985
|
if (n.charsetSentinel)
|
|
2985
2986
|
for (l = 0; l < i.length; ++l)
|
|
2986
|
-
i[l].indexOf("utf8=") === 0 && (i[l] ===
|
|
2987
|
+
i[l].indexOf("utf8=") === 0 && (i[l] === Cc ? u = "utf-8" : i[l] === Pc && (u = "iso-8859-1"), s = l, l = i.length);
|
|
2987
2988
|
for (l = 0; l < i.length; ++l)
|
|
2988
2989
|
if (l !== s) {
|
|
2989
2990
|
var c = i[l], f = c.indexOf("]="), d = f === -1 ? c.indexOf("=") : f + 1, v, y;
|
|
@@ -2996,12 +2997,12 @@ function() {
|
|
|
2996
2997
|
function(h) {
|
|
2997
2998
|
return n.decoder(h, R.decoder, u, "value");
|
|
2998
2999
|
}
|
|
2999
|
-
)), y && n.interpretNumericEntities && u === "iso-8859-1" && (y =
|
|
3000
|
+
)), y && n.interpretNumericEntities && u === "iso-8859-1" && (y = Rc(String(y))), c.indexOf("[]=") > -1 && (y = kr(y) ? [y] : y);
|
|
3000
3001
|
var m = Mt.call(r, v);
|
|
3001
3002
|
m && n.duplicates === "combine" ? r[v] = Y.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3002
3003
|
}
|
|
3003
3004
|
return r;
|
|
3004
|
-
},
|
|
3005
|
+
}, Tc = function(t, e, n, r) {
|
|
3005
3006
|
var o = 0;
|
|
3006
3007
|
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
3007
3008
|
var a = t.slice(0, -1).join("");
|
|
@@ -3019,7 +3020,7 @@ function() {
|
|
|
3019
3020
|
i = l;
|
|
3020
3021
|
}
|
|
3021
3022
|
return i;
|
|
3022
|
-
},
|
|
3023
|
+
}, xc = function(e, n, r, o) {
|
|
3023
3024
|
if (e) {
|
|
3024
3025
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, l = r.depth > 0 && i.exec(a), u = l ? a.slice(0, l.index) : a, c = [];
|
|
3025
3026
|
if (u) {
|
|
@@ -3037,9 +3038,9 @@ function() {
|
|
|
3037
3038
|
throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
|
|
3038
3039
|
c.push("[" + a.slice(l.index) + "]");
|
|
3039
3040
|
}
|
|
3040
|
-
return
|
|
3041
|
+
return Tc(c, n, r, o);
|
|
3041
3042
|
}
|
|
3042
|
-
},
|
|
3043
|
+
}, Nc = function(e) {
|
|
3043
3044
|
if (!e)
|
|
3044
3045
|
return R;
|
|
3045
3046
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3080,21 +3081,21 @@ function() {
|
|
|
3080
3081
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : R.strictNullHandling,
|
|
3081
3082
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3082
3083
|
};
|
|
3083
|
-
},
|
|
3084
|
-
var n =
|
|
3084
|
+
}, _c = function(t, e) {
|
|
3085
|
+
var n = Nc(e);
|
|
3085
3086
|
if (t === "" || t === null || typeof t > "u")
|
|
3086
3087
|
return n.plainObjects ? { __proto__: null } : {};
|
|
3087
|
-
for (var r = typeof t == "string" ?
|
|
3088
|
-
var s = a[i], l =
|
|
3088
|
+
for (var r = typeof t == "string" ? Ic(t, n) : t, o = n.plainObjects ? { __proto__: null } : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
|
|
3089
|
+
var s = a[i], l = xc(s, r[s], n, typeof t == "string");
|
|
3089
3090
|
o = Y.merge(o, l, n);
|
|
3090
3091
|
}
|
|
3091
3092
|
return n.allowSparse === !0 ? o : Y.compact(o);
|
|
3092
|
-
},
|
|
3093
|
-
formats:
|
|
3094
|
-
parse:
|
|
3095
|
-
stringify:
|
|
3093
|
+
}, Fc = Oc, Dc = _c, $c = Qt, Lc = {
|
|
3094
|
+
formats: $c,
|
|
3095
|
+
parse: Dc,
|
|
3096
|
+
stringify: Fc
|
|
3096
3097
|
};
|
|
3097
|
-
const
|
|
3098
|
+
const Uc = /* @__PURE__ */ za(Lc);
|
|
3098
3099
|
/*! js-cookie v3.0.5 | MIT */
|
|
3099
3100
|
function Te(t) {
|
|
3100
3101
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3104,7 +3105,7 @@ function Te(t) {
|
|
|
3104
3105
|
}
|
|
3105
3106
|
return t;
|
|
3106
3107
|
}
|
|
3107
|
-
var
|
|
3108
|
+
var Mc = {
|
|
3108
3109
|
read: function(t) {
|
|
3109
3110
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3110
3111
|
},
|
|
@@ -3165,12 +3166,12 @@ function Bt(t, e) {
|
|
|
3165
3166
|
}
|
|
3166
3167
|
);
|
|
3167
3168
|
}
|
|
3168
|
-
var jr = Bt(
|
|
3169
|
+
var jr = Bt(Mc, { path: "/" });
|
|
3169
3170
|
kt.extend(so);
|
|
3170
3171
|
kt.extend(co);
|
|
3171
3172
|
const Xt = we(), Jn = Xt.sso ?? !0, qr = Xt.i18n ?? !0, Gn = Xt.noRedireLogin ?? !1;
|
|
3172
3173
|
let zr = "", Hr = 0;
|
|
3173
|
-
const
|
|
3174
|
+
const Bc = 1e3, Wr = async (t, e, n = []) => {
|
|
3174
3175
|
const r = Date.now(), o = 1200, a = 60;
|
|
3175
3176
|
for (; Date.now() - r < o; ) {
|
|
3176
3177
|
const i = t(e, ...n);
|
|
@@ -3180,17 +3181,17 @@ const Mc = 1e3, Wr = async (t, e, n = []) => {
|
|
|
3180
3181
|
return t(e, ...n);
|
|
3181
3182
|
};
|
|
3182
3183
|
let Rt = !1;
|
|
3183
|
-
const
|
|
3184
|
+
const kc = 5e3, Vn = () => Rt ? !1 : (Rt = !0, setTimeout(() => {
|
|
3184
3185
|
Rt = !1;
|
|
3185
|
-
},
|
|
3186
|
+
}, kc), !0), Kn = () => {
|
|
3186
3187
|
var e, n;
|
|
3187
3188
|
if (Gn) return;
|
|
3188
3189
|
const t = "/login";
|
|
3189
3190
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (n = window.top) == null || n.vueRouter.replace(t) : window.location.replace(`/#${t}`));
|
|
3190
|
-
},
|
|
3191
|
+
}, jc = () => no("code") || "" || Gn ? !1 : Vn() ? (Jn ? oo({ ...ao, redirect_uri: io }) : Kn(), !0) : !1, qc = async (t) => {
|
|
3191
3192
|
var n;
|
|
3192
3193
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3193
|
-
},
|
|
3194
|
+
}, zc = async (t, e) => {
|
|
3194
3195
|
var y, m, h, w;
|
|
3195
3196
|
const { t: n } = Kr();
|
|
3196
3197
|
let r, o, a = {};
|
|
@@ -3198,7 +3199,7 @@ const Bc = 5e3, Vn = () => Rt ? !1 : (Rt = !0, setTimeout(() => {
|
|
|
3198
3199
|
let s = ((y = t == null ? void 0 : t.response) == null ? void 0 : y.data) || {};
|
|
3199
3200
|
const l = s == null ? void 0 : s.code, u = (m = t.response) == null ? void 0 : m.status;
|
|
3200
3201
|
if (l === 401 || u === 401) {
|
|
3201
|
-
|
|
3202
|
+
jc(), r = l || u, a = s;
|
|
3202
3203
|
const E = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3203
3204
|
if (qr && E && (s != null && s.status)) {
|
|
3204
3205
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, A = n(s.status, ...g);
|
|
@@ -3228,10 +3229,10 @@ const Bc = 5e3, Vn = () => Rt ? !1 : (Rt = !0, setTimeout(() => {
|
|
|
3228
3229
|
o || (o = i[t.response.status] || t.message);
|
|
3229
3230
|
} else t.request ? (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("请求配置异常"));
|
|
3230
3231
|
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3231
|
-
const f = Date.now(), d = o === zr, v = f - Hr <
|
|
3232
|
+
const f = Date.now(), d = o === zr, v = f - Hr < Bc;
|
|
3232
3233
|
return !(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((w = (h = window.DasMessage) == null ? void 0 : h.error) == null || w.call(h, { message: o, showClose: !0 }), zr = o, Hr = f), { ...a, code: r, msg: o, error: t };
|
|
3233
3234
|
};
|
|
3234
|
-
function
|
|
3235
|
+
function Hc(t, e) {
|
|
3235
3236
|
const n = P.create();
|
|
3236
3237
|
return to(n, async (r) => {
|
|
3237
3238
|
const { currentLang: o } = Kr(), a = we();
|
|
@@ -3246,13 +3247,13 @@ function zc(t, e) {
|
|
|
3246
3247
|
else {
|
|
3247
3248
|
f || (f = Vr());
|
|
3248
3249
|
let d = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3249
|
-
f ? f = await
|
|
3250
|
-
|
|
3250
|
+
f ? f = await po(d, (y) => {
|
|
3251
|
+
fo(y);
|
|
3251
3252
|
}) : Vn() && Kn();
|
|
3252
3253
|
}
|
|
3253
3254
|
f && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${f}`);
|
|
3254
3255
|
}
|
|
3255
|
-
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) =>
|
|
3256
|
+
r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) => Uc.stringify(f, { indices: !1 }) }), r.onSuccess || (r.onSuccess = qc), r.onError || (r.onError = zc), (r.csrf ?? !1) && (r.headers["csrf-token"] = jr.get("csrf-token"));
|
|
3256
3257
|
const l = r.params || {};
|
|
3257
3258
|
if (l.project === void 0) {
|
|
3258
3259
|
let f = 0;
|
|
@@ -3268,7 +3269,7 @@ function zc(t, e) {
|
|
|
3268
3269
|
return c && (r.headers["Accept-Language"] = c), c && jr.set("locale", c), r;
|
|
3269
3270
|
});
|
|
3270
3271
|
}
|
|
3271
|
-
const
|
|
3272
|
+
const Wc = "v1", Qn = Hc(`/api/admin/basic-application/user-rights/${Wc}`), Jc = Qn.get("/menu-module-func"), Gc = Qn.post("/right-func"), Jr = (t) => Array.isArray(t) ? t : t == null || t === "" ? [] : [t], Vc = (t) => {
|
|
3272
3273
|
const e = Jr(t == null ? void 0 : t.appIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o), n = Jr(t == null ? void 0 : t.moduleIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o);
|
|
3273
3274
|
if (!e.length) return null;
|
|
3274
3275
|
const r = { appIds: e };
|
|
@@ -3299,7 +3300,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3299
3300
|
}
|
|
3300
3301
|
}
|
|
3301
3302
|
return e.code.sourceCode = Array.from(o), e;
|
|
3302
|
-
},
|
|
3303
|
+
}, Kc = () => {
|
|
3303
3304
|
const t = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
|
|
3304
3305
|
try {
|
|
3305
3306
|
const e = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"), n = String((e == null ? void 0 : e.id) ?? "").trim(), r = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
|
|
@@ -3312,28 +3313,28 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3312
3313
|
}
|
|
3313
3314
|
}, Xn = (t = "id") => {
|
|
3314
3315
|
var i, s;
|
|
3315
|
-
const e =
|
|
3316
|
+
const e = Kc();
|
|
3316
3317
|
if (!e || typeof e != "object")
|
|
3317
3318
|
return t === "all" ? { idList: [], codeList: [] } : [];
|
|
3318
3319
|
const n = (i = e == null ? void 0 : e.id) == null ? void 0 : i.id, r = Array.isArray(n) ? n : [], o = (s = e == null ? void 0 : e.code) == null ? void 0 : s.sourceCode, a = Array.isArray(o) ? o : [];
|
|
3319
3320
|
return t === "all" ? { idList: r, codeList: a } : t === "code" ? a : r;
|
|
3320
|
-
},
|
|
3321
|
+
}, yl = (t, e) => {
|
|
3321
3322
|
const n = (async () => {
|
|
3322
|
-
const r =
|
|
3323
|
+
const r = Vc(t);
|
|
3323
3324
|
if (!r) return [];
|
|
3324
|
-
const o = await
|
|
3325
|
+
const o = await Gc().run(r), [a, i] = o;
|
|
3325
3326
|
return a ? [] : i;
|
|
3326
3327
|
})();
|
|
3327
3328
|
return typeof e == "function" && n.then((r) => e(r)).catch(() => e([])), n;
|
|
3328
|
-
},
|
|
3329
|
+
}, hl = (t, e) => {
|
|
3329
3330
|
const n = (async () => {
|
|
3330
3331
|
const r = String(t ?? "").trim();
|
|
3331
3332
|
if (!r) return [];
|
|
3332
|
-
const o = await
|
|
3333
|
+
const o = await Jc().run({ menuId: r }), [a, i] = o;
|
|
3333
3334
|
return a ? [] : i;
|
|
3334
3335
|
})();
|
|
3335
3336
|
return typeof e == "function" && n.then((r) => e(r)).catch(() => e([])), n;
|
|
3336
|
-
},
|
|
3337
|
+
}, ml = (t) => {
|
|
3337
3338
|
const e = t || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
|
|
3338
3339
|
return {
|
|
3339
3340
|
authCodes: Xn(),
|
|
@@ -3346,7 +3347,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3346
3347
|
showName: e.showName ?? "",
|
|
3347
3348
|
type: (e == null ? void 0 : e.type) ?? ""
|
|
3348
3349
|
};
|
|
3349
|
-
},
|
|
3350
|
+
}, gl = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), vl = () => {
|
|
3350
3351
|
const t = JSON.parse(sessionStorage.getItem("menuList") || "[]"), e = {};
|
|
3351
3352
|
return t.forEach((n) => {
|
|
3352
3353
|
n.appId && (n.rightFuncCodes && n.rightFuncCodes.forEach((r) => e[r] = []), n.children && n.children.forEach((r) => {
|
|
@@ -3370,7 +3371,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3370
3371
|
});
|
|
3371
3372
|
}));
|
|
3372
3373
|
}), e;
|
|
3373
|
-
},
|
|
3374
|
+
}, Qc = Vr, Sl = () => {
|
|
3374
3375
|
var n;
|
|
3375
3376
|
let t = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3376
3377
|
return {
|
|
@@ -3379,7 +3380,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3379
3380
|
flag: t.flag ?? null,
|
|
3380
3381
|
tenantId: ((n = t == null ? void 0 : t.tenant) == null ? void 0 : n.id) ?? ""
|
|
3381
3382
|
};
|
|
3382
|
-
},
|
|
3383
|
+
}, wl = () => {
|
|
3383
3384
|
let t = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
3384
3385
|
const e = we();
|
|
3385
3386
|
return JSON.stringify(t) === "{}" && e.personalInfo && (t = e.personalInfo), {
|
|
@@ -3390,7 +3391,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3390
3391
|
email: t.email ?? "",
|
|
3391
3392
|
headPicture: t.headPicture ?? ""
|
|
3392
3393
|
};
|
|
3393
|
-
},
|
|
3394
|
+
}, bl = () => {
|
|
3394
3395
|
let t = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3395
3396
|
return {
|
|
3396
3397
|
userId: t.id ?? "",
|
|
@@ -3412,7 +3413,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3412
3413
|
address: t.address ?? "",
|
|
3413
3414
|
description: t.description ?? ""
|
|
3414
3415
|
};
|
|
3415
|
-
},
|
|
3416
|
+
}, El = () => sessionStorage.getItem("languages"), Xc = () => {
|
|
3416
3417
|
let t = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
3417
3418
|
const e = we();
|
|
3418
3419
|
return JSON.stringify(t) === "{}" && e.projectInfo && (t = e.projectInfo), {
|
|
@@ -3428,7 +3429,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3428
3429
|
leaf: (t == null ? void 0 : t.leaf) ?? !1,
|
|
3429
3430
|
optional: (t == null ? void 0 : t.leaf) ?? !0
|
|
3430
3431
|
};
|
|
3431
|
-
},
|
|
3432
|
+
}, Al = () => {
|
|
3432
3433
|
let t = JSON.parse(sessionStorage.getItem("project-message") || "{}");
|
|
3433
3434
|
return {
|
|
3434
3435
|
id: (t == null ? void 0 : t.id) ?? 0,
|
|
@@ -3453,7 +3454,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3453
3454
|
autoTimezone: (t == null ? void 0 : t.autoTimezone) ?? !1,
|
|
3454
3455
|
currency: (t == null ? void 0 : t.currency) ?? {}
|
|
3455
3456
|
};
|
|
3456
|
-
},
|
|
3457
|
+
}, Ol = () => {
|
|
3457
3458
|
const t = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
3458
3459
|
return {
|
|
3459
3460
|
applicationCode: (t == null ? void 0 : t.applicationCode) ?? "",
|
|
@@ -3464,31 +3465,31 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3464
3465
|
displayPosition: (t == null ? void 0 : t.displayPosition) ?? 1,
|
|
3465
3466
|
type: (t == null ? void 0 : t.type) ?? null
|
|
3466
3467
|
};
|
|
3467
|
-
},
|
|
3468
|
+
}, Rl = () => {
|
|
3468
3469
|
const t = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
|
|
3469
3470
|
return {
|
|
3470
3471
|
style: (t == null ? void 0 : t.style) ?? "",
|
|
3471
3472
|
skinStyle: (t == null ? void 0 : t.skinStyle) ?? ""
|
|
3472
3473
|
};
|
|
3473
|
-
},
|
|
3474
|
+
}, Zc = () => {
|
|
3474
3475
|
try {
|
|
3475
3476
|
const t = window.sessionStorage.getItem("menuItem") || "", e = t ? JSON.parse(t) : {};
|
|
3476
3477
|
return String((e == null ? void 0 : e.routeCode) ?? "").trim();
|
|
3477
3478
|
} catch {
|
|
3478
3479
|
return "";
|
|
3479
3480
|
}
|
|
3480
|
-
},
|
|
3481
|
-
const n = (e == null ? void 0 : e.returnType) ?? "set", r = String((e == null ? void 0 : e.routeCode) ??
|
|
3481
|
+
}, Yc = (t, e) => {
|
|
3482
|
+
const n = (e == null ? void 0 : e.returnType) ?? "set", r = String((e == null ? void 0 : e.routeCode) ?? Zc()).trim(), o = Array.isArray(t) ? t : t instanceof Set ? Array.from(t) : [], a = /* @__PURE__ */ new Set(), i = r ? `${r}.` : "";
|
|
3482
3483
|
return i && o.forEach((s) => {
|
|
3483
3484
|
const l = (s && typeof s == "object" ? s == null ? void 0 : s.code : s) ?? "", u = String(l).trim();
|
|
3484
3485
|
if (!u || !u.startsWith(i)) return;
|
|
3485
3486
|
const c = u.slice(i.length);
|
|
3486
3487
|
c && a.add(c.replace(/\./g, "-"));
|
|
3487
3488
|
}), n === "list" ? Array.from(a).map((s) => ({ code: s })) : a;
|
|
3488
|
-
},
|
|
3489
|
+
}, el = (t, e) => {
|
|
3489
3490
|
const n = Xn("code"), r = Array.isArray(n) ? n : [];
|
|
3490
|
-
return
|
|
3491
|
-
},
|
|
3491
|
+
return Yc(r, { returnType: "list" });
|
|
3492
|
+
}, Pl = (t, e) => el() ?? [], tl = () => {
|
|
3492
3493
|
const t = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
3493
3494
|
return {
|
|
3494
3495
|
appcategorys: t.appcategorys ?? [],
|
|
@@ -3497,9 +3498,9 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3497
3498
|
subAppList: t.subAppList ?? [],
|
|
3498
3499
|
menuCollapses: t.menuCollapses ?? []
|
|
3499
3500
|
};
|
|
3500
|
-
},
|
|
3501
|
+
}, Cl = (t, e = !1) => {
|
|
3501
3502
|
var r, o;
|
|
3502
|
-
const n =
|
|
3503
|
+
const n = tl().subAppList;
|
|
3503
3504
|
if (t)
|
|
3504
3505
|
return e ? ((r = n == null ? void 0 : n.find((a) => a.code === t)) == null ? void 0 : r.originalMenus) ?? [] : ((o = n == null ? void 0 : n.find((a) => a.code === t)) == null ? void 0 : o.menus) ?? [];
|
|
3505
3506
|
{
|
|
@@ -3510,7 +3511,7 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3510
3511
|
a[i.code] = i.menus ?? [];
|
|
3511
3512
|
}), a;
|
|
3512
3513
|
}
|
|
3513
|
-
},
|
|
3514
|
+
}, Il = () => {
|
|
3514
3515
|
const t = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
3515
3516
|
return {
|
|
3516
3517
|
currentCode: t.currentCode ?? "",
|
|
@@ -3518,41 +3519,41 @@ const Hc = "v1", Qn = zc(`/api/admin/basic-application/user-rights/${Hc}`), Wc =
|
|
|
3518
3519
|
tabMap: t.tabMap ?? {},
|
|
3519
3520
|
preTab: t.preTab ?? {}
|
|
3520
3521
|
};
|
|
3521
|
-
},
|
|
3522
|
+
}, Tl = () => {
|
|
3522
3523
|
const t = we(), e = sessionStorage.getItem("minioAddress");
|
|
3523
3524
|
return e || (t.baseURL ? t.baseURL : location.origin);
|
|
3524
|
-
},
|
|
3525
|
+
}, xl = () => ({
|
|
3525
3526
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
3526
|
-
}),
|
|
3527
|
-
|
|
3527
|
+
}), Nl = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
3528
|
+
Qc() || Yn();
|
|
3528
3529
|
var Gr;
|
|
3529
|
-
(Gr =
|
|
3530
|
+
(Gr = Xc()) != null && Gr.id || eo();
|
|
3530
3531
|
export {
|
|
3531
|
-
|
|
3532
|
-
|
|
3532
|
+
Yc as buildActionSuffixSet,
|
|
3533
|
+
vl as getAuthobj,
|
|
3533
3534
|
Xn as getCurrentModulePermissionData,
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3535
|
+
Zc as getCurrentRouteCode,
|
|
3536
|
+
hl as getCurrentUserMenuPermissionsList,
|
|
3537
|
+
yl as getCurrentUserPermissionsList,
|
|
3538
|
+
Nl as getFavIcon,
|
|
3539
|
+
Kc as getGroupedCurrentUserPermissionList,
|
|
3540
|
+
Ol as getHomeInfo,
|
|
3541
|
+
xl as getInstanceInfo,
|
|
3542
|
+
El as getLanguages,
|
|
3543
|
+
ml as getMenuItemInfo,
|
|
3544
|
+
gl as getMenuListnfo,
|
|
3545
|
+
Cl as getMenus,
|
|
3546
|
+
Tl as getMinioAddress,
|
|
3547
|
+
el as getPageAuth,
|
|
3548
|
+
Pl as getPageAuthBtn,
|
|
3549
|
+
Rl as getPersonalConfig,
|
|
3550
|
+
wl as getPersonalInfo,
|
|
3551
|
+
Xc as getProjectInfo,
|
|
3552
|
+
Al as getProjectMessage,
|
|
3553
|
+
tl as getSubApps,
|
|
3554
|
+
Il as getTabInfo,
|
|
3555
|
+
bl as getTenantInfo,
|
|
3556
|
+
Qc as getToken,
|
|
3557
|
+
Sl as getUserInfo,
|
|
3557
3558
|
Pt as groupPermissionListByModuleAndCode
|
|
3558
3559
|
};
|