@das-fed/upf-utils 6.4.0-dev.283 → 6.4.0-dev.285
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 +1524 -1544
- package/api-services/index.js +1202 -1212
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1235 -1275
- package/api-services/modules/app-manage/index.js +1018 -1059
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +734 -762
- package/api-services/modules/authentication/index.js +581 -604
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1241 -1257
- package/api-services/modules/bems/index.js +1022 -1027
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1280 -1296
- package/api-services/modules/contract/index.js +1063 -1068
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +727 -755
- package/api-services/modules/duty-manage/index.js +581 -604
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1235 -1275
- package/api-services/modules/enterpriseright/index.js +1018 -1059
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1377 -1418
- package/api-services/modules/file/es5.js +1427 -1446
- package/api-services/modules/file/index.js +1154 -1164
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1235 -1275
- package/api-services/modules/gateway-edge/index.js +1018 -1059
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1091 -1133
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1286 -1302
- package/api-services/modules/iot/index.js +1059 -1064
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +738 -766
- package/api-services/modules/justauth/index.js +583 -606
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +732 -760
- package/api-services/modules/knowledge/index.js +572 -595
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1235 -1275
- package/api-services/modules/link/index.js +1018 -1059
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +734 -762
- package/api-services/modules/permission/index.js +581 -604
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +968 -996
- package/api-services/modules/platformManage/index.js +770 -793
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1235 -1275
- package/api-services/modules/portal/index.js +1018 -1059
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1278 -1296
- package/api-services/modules/space-manage/index.js +1054 -1063
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1240 -1280
- package/api-services/modules/super-admin/index.js +1020 -1061
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +725 -753
- package/api-services/modules/supplier/index.js +576 -599
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +734 -762
- package/api-services/modules/supplychain-manage/index.js +581 -604
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +734 -762
- package/api-services/modules/systemConfiguration/index.js +581 -604
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +732 -760
- package/api-services/modules/tool/index.js +572 -595
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1235 -1275
- package/api-services/src/create-service/index.js +1018 -1059
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +753 -781
- package/common-info/getPermissionMethod/es5.js +1460 -1500
- package/common-info/getPermissionMethod/index.js +1208 -1249
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +593 -616
- package/common-info/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.d.ts +1 -5
- package/common-tools/timezone-format/es5.js +270 -290
- package/common-tools/timezone-format/index.d.ts +1 -5
- package/common-tools/timezone-format/index.js +198 -215
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +731 -759
- package/create-api-service/index.js +572 -595
- package/create-api-service/index.js.gz +0 -0
- package/package.json +3 -3
package/common-info/index.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { getConfig as Ce } from "@das-fed/upf-utils/config";
|
|
2
2
|
import { getAccessToken as cn } from "@das-fed/upf-utils/token-tools";
|
|
3
|
-
import { getTokenFromQuery as
|
|
4
|
-
import { curringHttp as
|
|
3
|
+
import { getTokenFromQuery as vo, getProjectInfoFromQuery as So } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
|
|
4
|
+
import { curringHttp as wo } from "@das-fed/upf-utils/curring-http";
|
|
5
5
|
import { getI18nBridge as ln } from "@das-fed/upf-utils/i18n-bridge";
|
|
6
|
-
import { getToken as
|
|
6
|
+
import { getToken as bo, getQuery as Eo, login as Oo, getTokenParams as Ao, real_uri as Ro } from "@das-fed/upf-utils/create-api-service/sso";
|
|
7
7
|
import de from "dayjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { ref as Po } from "vue";
|
|
9
|
+
import To from "dayjs/plugin/utc";
|
|
10
|
+
import Io from "dayjs/plugin/timezone";
|
|
11
|
+
import { getProjectInfo as Co, getInstanceInfo as No } from "@das-fed/upf-utils/common-info";
|
|
12
|
+
import { applyRefreshedToken as xo } from "@das-fed/upf-utils/create-api-service/access-token-auto-refresh";
|
|
13
|
+
import { getValidAccessToken as _o } from "@das-fed/upf-utils/create-api-service/check-token";
|
|
13
14
|
function un(e, t) {
|
|
14
15
|
return function() {
|
|
15
16
|
return e.apply(t, arguments);
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
|
-
const { toString:
|
|
19
|
-
const r =
|
|
19
|
+
const { toString: Fo } = Object.prototype, { getPrototypeOf: Wt } = Object, { iterator: Ye, toStringTag: fn } = Symbol, et = /* @__PURE__ */ ((e) => (t) => {
|
|
20
|
+
const r = Fo.call(t);
|
|
20
21
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
21
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
22
|
+
})(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (t) => et(t) === e), tt = (e) => (t) => typeof t === e, { isArray: ge } = Array, ye = tt("undefined");
|
|
22
23
|
function Ne(e) {
|
|
23
24
|
return e !== null && !ye(e) && e.constructor !== null && !ye(e.constructor) && D(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
24
25
|
}
|
|
25
|
-
const pn =
|
|
26
|
-
function
|
|
26
|
+
const pn = j("ArrayBuffer");
|
|
27
|
+
function Do(e) {
|
|
27
28
|
let t;
|
|
28
29
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pn(e.buffer), t;
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
31
|
+
const $o = tt("string"), D = tt("function"), dn = tt("number"), xe = (e) => e !== null && typeof e == "object", Lo = (e) => e === !0 || e === !1, qe = (e) => {
|
|
32
|
+
if (et(e) !== "object")
|
|
32
33
|
return !1;
|
|
33
34
|
const t = Wt(e);
|
|
34
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(fn in e) && !(
|
|
35
|
-
},
|
|
35
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(fn in e) && !(Ye in e);
|
|
36
|
+
}, Uo = (e) => {
|
|
36
37
|
if (!xe(e) || Ne(e))
|
|
37
38
|
return !1;
|
|
38
39
|
try {
|
|
@@ -40,11 +41,11 @@ const Lo = rt("string"), D = rt("function"), dn = rt("number"), xe = (e) => e !=
|
|
|
40
41
|
} catch {
|
|
41
42
|
return !1;
|
|
42
43
|
}
|
|
43
|
-
},
|
|
44
|
+
}, Mo = j("Date"), Bo = j("File"), ko = j("Blob"), jo = j("FileList"), qo = (e) => xe(e) && D(e.pipe), zo = (e) => {
|
|
44
45
|
let t;
|
|
45
|
-
return e && (typeof FormData == "function" && e instanceof FormData || D(e.append) && ((t =
|
|
46
|
+
return e && (typeof FormData == "function" && e instanceof FormData || D(e.append) && ((t = et(e)) === "formdata" || // detect form-data instance
|
|
46
47
|
t === "object" && D(e.toString) && e.toString() === "[object FormData]"));
|
|
47
|
-
},
|
|
48
|
+
}, Ho = j("URLSearchParams"), [Wo, Jo, Go, Zo] = ["ReadableStream", "Request", "Response", "Headers"].map(j), Vo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
48
49
|
function _e(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
49
50
|
if (e === null || typeof e > "u")
|
|
50
51
|
return;
|
|
@@ -76,19 +77,19 @@ const te = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
76
77
|
function Ft() {
|
|
77
78
|
const { caseless: e, skipUndefined: t } = mn(this) && this || {}, r = {}, n = (o, i) => {
|
|
78
79
|
const a = e && yn(r, i) || i;
|
|
79
|
-
|
|
80
|
+
qe(r[a]) && qe(o) ? r[a] = Ft(r[a], o) : qe(o) ? r[a] = Ft({}, o) : ge(o) ? r[a] = o.slice() : (!t || !ye(o)) && (r[a] = o);
|
|
80
81
|
};
|
|
81
82
|
for (let o = 0, i = arguments.length; o < i; o++)
|
|
82
83
|
arguments[o] && _e(arguments[o], n);
|
|
83
84
|
return r;
|
|
84
85
|
}
|
|
85
|
-
const
|
|
86
|
+
const Ko = (e, t, r, { allOwnKeys: n } = {}) => (_e(t, (o, i) => {
|
|
86
87
|
r && D(o) ? e[i] = un(o, r) : e[i] = o;
|
|
87
|
-
}, { allOwnKeys: n }), e),
|
|
88
|
+
}, { allOwnKeys: n }), e), Qo = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Xo = (e, t, r, n) => {
|
|
88
89
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
89
90
|
value: t.prototype
|
|
90
91
|
}), r && Object.assign(e.prototype, r);
|
|
91
|
-
},
|
|
92
|
+
}, Yo = (e, t, r, n) => {
|
|
92
93
|
let o, i, a;
|
|
93
94
|
const s = {};
|
|
94
95
|
if (t = t || {}, e == null) return t;
|
|
@@ -98,11 +99,11 @@ const Qo = (e, t, r, { allOwnKeys: n } = {}) => (_e(t, (o, i) => {
|
|
|
98
99
|
e = r !== !1 && Wt(e);
|
|
99
100
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
100
101
|
return t;
|
|
101
|
-
},
|
|
102
|
+
}, ei = (e, t, r) => {
|
|
102
103
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
103
104
|
const n = e.indexOf(t, r);
|
|
104
105
|
return n !== -1 && n === r;
|
|
105
|
-
},
|
|
106
|
+
}, ti = (e) => {
|
|
106
107
|
if (!e) return null;
|
|
107
108
|
if (ge(e)) return e;
|
|
108
109
|
let t = e.length;
|
|
@@ -111,31 +112,31 @@ const Qo = (e, t, r, { allOwnKeys: n } = {}) => (_e(t, (o, i) => {
|
|
|
111
112
|
for (; t-- > 0; )
|
|
112
113
|
r[t] = e[t];
|
|
113
114
|
return r;
|
|
114
|
-
},
|
|
115
|
-
const n = (e && e[
|
|
115
|
+
}, ri = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Wt(Uint8Array)), ni = (e, t) => {
|
|
116
|
+
const n = (e && e[Ye]).call(e);
|
|
116
117
|
let o;
|
|
117
118
|
for (; (o = n.next()) && !o.done; ) {
|
|
118
119
|
const i = o.value;
|
|
119
120
|
t.call(e, i[0], i[1]);
|
|
120
121
|
}
|
|
121
|
-
},
|
|
122
|
+
}, oi = (e, t) => {
|
|
122
123
|
let r;
|
|
123
124
|
const n = [];
|
|
124
125
|
for (; (r = e.exec(t)) !== null; )
|
|
125
126
|
n.push(r);
|
|
126
127
|
return n;
|
|
127
|
-
},
|
|
128
|
+
}, ii = j("HTMLFormElement"), ai = (e) => e.toLowerCase().replace(
|
|
128
129
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
129
130
|
function(r, n, o) {
|
|
130
131
|
return n.toUpperCase() + o;
|
|
131
132
|
}
|
|
132
|
-
), ar = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype),
|
|
133
|
+
), ar = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), si = j("RegExp"), hn = (e, t) => {
|
|
133
134
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
134
135
|
_e(r, (o, i) => {
|
|
135
136
|
let a;
|
|
136
137
|
(a = t(o, i, e)) !== !1 && (n[i] = a || o);
|
|
137
138
|
}), Object.defineProperties(e, n);
|
|
138
|
-
},
|
|
139
|
+
}, ci = (e) => {
|
|
139
140
|
hn(e, (t, r) => {
|
|
140
141
|
if (D(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
141
142
|
return !1;
|
|
@@ -150,19 +151,19 @@ const Qo = (e, t, r, { allOwnKeys: n } = {}) => (_e(t, (o, i) => {
|
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
153
|
});
|
|
153
|
-
},
|
|
154
|
+
}, li = (e, t) => {
|
|
154
155
|
const r = {}, n = (o) => {
|
|
155
156
|
o.forEach((i) => {
|
|
156
157
|
r[i] = !0;
|
|
157
158
|
});
|
|
158
159
|
};
|
|
159
160
|
return ge(e) ? n(e) : n(String(e).split(t)), r;
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
function
|
|
163
|
-
return !!(e && D(e.append) && e[fn] === "FormData" && e[
|
|
161
|
+
}, ui = () => {
|
|
162
|
+
}, fi = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
163
|
+
function pi(e) {
|
|
164
|
+
return !!(e && D(e.append) && e[fn] === "FormData" && e[Ye]);
|
|
164
165
|
}
|
|
165
|
-
const
|
|
166
|
+
const di = (e) => {
|
|
166
167
|
const t = new Array(10), r = (n, o) => {
|
|
167
168
|
if (xe(n)) {
|
|
168
169
|
if (t.indexOf(n) >= 0)
|
|
@@ -181,72 +182,72 @@ const yi = (e) => {
|
|
|
181
182
|
return n;
|
|
182
183
|
};
|
|
183
184
|
return r(e, 0);
|
|
184
|
-
},
|
|
185
|
+
}, yi = j("AsyncFunction"), mi = (e) => e && (xe(e) || D(e)) && D(e.then) && D(e.catch), gn = ((e, t) => e ? setImmediate : t ? ((r, n) => (te.addEventListener("message", ({ source: o, data: i }) => {
|
|
185
186
|
o === te && i === r && n.length && n.shift()();
|
|
186
187
|
}, !1), (o) => {
|
|
187
188
|
n.push(o), te.postMessage(r, "*");
|
|
188
189
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
189
190
|
typeof setImmediate == "function",
|
|
190
191
|
D(te.postMessage)
|
|
191
|
-
),
|
|
192
|
+
), hi = typeof queueMicrotask < "u" ? queueMicrotask.bind(te) : typeof process < "u" && process.nextTick || gn, gi = (e) => e != null && D(e[Ye]), f = {
|
|
192
193
|
isArray: ge,
|
|
193
194
|
isArrayBuffer: pn,
|
|
194
195
|
isBuffer: Ne,
|
|
195
|
-
isFormData:
|
|
196
|
-
isArrayBufferView:
|
|
197
|
-
isString:
|
|
196
|
+
isFormData: zo,
|
|
197
|
+
isArrayBufferView: Do,
|
|
198
|
+
isString: $o,
|
|
198
199
|
isNumber: dn,
|
|
199
|
-
isBoolean:
|
|
200
|
+
isBoolean: Lo,
|
|
200
201
|
isObject: xe,
|
|
201
|
-
isPlainObject:
|
|
202
|
-
isEmptyObject:
|
|
203
|
-
isReadableStream:
|
|
204
|
-
isRequest:
|
|
202
|
+
isPlainObject: qe,
|
|
203
|
+
isEmptyObject: Uo,
|
|
204
|
+
isReadableStream: Wo,
|
|
205
|
+
isRequest: Jo,
|
|
205
206
|
isResponse: Go,
|
|
206
|
-
isHeaders:
|
|
207
|
+
isHeaders: Zo,
|
|
207
208
|
isUndefined: ye,
|
|
208
|
-
isDate:
|
|
209
|
-
isFile:
|
|
210
|
-
isBlob:
|
|
211
|
-
isRegExp:
|
|
209
|
+
isDate: Mo,
|
|
210
|
+
isFile: Bo,
|
|
211
|
+
isBlob: ko,
|
|
212
|
+
isRegExp: si,
|
|
212
213
|
isFunction: D,
|
|
213
|
-
isStream:
|
|
214
|
-
isURLSearchParams:
|
|
215
|
-
isTypedArray:
|
|
216
|
-
isFileList:
|
|
214
|
+
isStream: qo,
|
|
215
|
+
isURLSearchParams: Ho,
|
|
216
|
+
isTypedArray: ri,
|
|
217
|
+
isFileList: jo,
|
|
217
218
|
forEach: _e,
|
|
218
219
|
merge: Ft,
|
|
219
|
-
extend:
|
|
220
|
-
trim:
|
|
221
|
-
stripBOM:
|
|
222
|
-
inherits:
|
|
223
|
-
toFlatObject:
|
|
224
|
-
kindOf:
|
|
225
|
-
kindOfTest:
|
|
226
|
-
endsWith:
|
|
227
|
-
toArray:
|
|
228
|
-
forEachEntry:
|
|
229
|
-
matchAll:
|
|
230
|
-
isHTMLForm:
|
|
220
|
+
extend: Ko,
|
|
221
|
+
trim: Vo,
|
|
222
|
+
stripBOM: Qo,
|
|
223
|
+
inherits: Xo,
|
|
224
|
+
toFlatObject: Yo,
|
|
225
|
+
kindOf: et,
|
|
226
|
+
kindOfTest: j,
|
|
227
|
+
endsWith: ei,
|
|
228
|
+
toArray: ti,
|
|
229
|
+
forEachEntry: ni,
|
|
230
|
+
matchAll: oi,
|
|
231
|
+
isHTMLForm: ii,
|
|
231
232
|
hasOwnProperty: ar,
|
|
232
233
|
hasOwnProp: ar,
|
|
233
234
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
234
235
|
reduceDescriptors: hn,
|
|
235
|
-
freezeMethods:
|
|
236
|
-
toObjectSet:
|
|
237
|
-
toCamelCase:
|
|
238
|
-
noop:
|
|
239
|
-
toFiniteNumber:
|
|
236
|
+
freezeMethods: ci,
|
|
237
|
+
toObjectSet: li,
|
|
238
|
+
toCamelCase: ai,
|
|
239
|
+
noop: ui,
|
|
240
|
+
toFiniteNumber: fi,
|
|
240
241
|
findKey: yn,
|
|
241
242
|
global: te,
|
|
242
243
|
isContextDefined: mn,
|
|
243
|
-
isSpecCompliantForm:
|
|
244
|
-
toJSONObject:
|
|
245
|
-
isAsyncFn:
|
|
246
|
-
isThenable:
|
|
244
|
+
isSpecCompliantForm: pi,
|
|
245
|
+
toJSONObject: di,
|
|
246
|
+
isAsyncFn: yi,
|
|
247
|
+
isThenable: mi,
|
|
247
248
|
setImmediate: gn,
|
|
248
|
-
asap:
|
|
249
|
-
isIterable:
|
|
249
|
+
asap: hi,
|
|
250
|
+
isIterable: gi
|
|
250
251
|
};
|
|
251
252
|
function S(e, t, r, n, o) {
|
|
252
253
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -300,7 +301,7 @@ S.from = (e, t, r, n, o, i) => {
|
|
|
300
301
|
const s = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
|
|
301
302
|
return S.call(a, s, c, r, n, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", i && Object.assign(a, i), a;
|
|
302
303
|
};
|
|
303
|
-
const
|
|
304
|
+
const vi = null;
|
|
304
305
|
function Dt(e) {
|
|
305
306
|
return f.isPlainObject(e) || f.isArray(e);
|
|
306
307
|
}
|
|
@@ -312,13 +313,13 @@ function sr(e, t, r) {
|
|
|
312
313
|
return o = wn(o), !r && i ? "[" + o + "]" : o;
|
|
313
314
|
}).join(r ? "." : "") : t;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
+
function Si(e) {
|
|
316
317
|
return f.isArray(e) && !e.some(Dt);
|
|
317
318
|
}
|
|
318
|
-
const
|
|
319
|
+
const wi = f.toFlatObject(f, {}, null, function(t) {
|
|
319
320
|
return /^is[A-Z]/.test(t);
|
|
320
321
|
});
|
|
321
|
-
function
|
|
322
|
+
function rt(e, t, r) {
|
|
322
323
|
if (!f.isObject(e))
|
|
323
324
|
throw new TypeError("target must be an object");
|
|
324
325
|
t = t || new FormData(), r = f.toFlatObject(r, {
|
|
@@ -346,7 +347,7 @@ function nt(e, t, r) {
|
|
|
346
347
|
if (d && !m && typeof d == "object") {
|
|
347
348
|
if (f.endsWith(h, "{}"))
|
|
348
349
|
h = n ? h : h.slice(0, -2), d = JSON.stringify(d);
|
|
349
|
-
else if (f.isArray(d) &&
|
|
350
|
+
else if (f.isArray(d) && Si(d) || (f.isFileList(d) || f.endsWith(h, "[]")) && (b = f.toArray(d)))
|
|
350
351
|
return h = wn(h), b.forEach(function(g, E) {
|
|
351
352
|
!(f.isUndefined(g) || g === null) && t.append(
|
|
352
353
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -357,7 +358,7 @@ function nt(e, t, r) {
|
|
|
357
358
|
}
|
|
358
359
|
return Dt(d) ? !0 : (t.append(sr(m, h, i), u(d)), !1);
|
|
359
360
|
}
|
|
360
|
-
const p = [], y = Object.assign(
|
|
361
|
+
const p = [], y = Object.assign(wi, {
|
|
361
362
|
defaultVisitor: l,
|
|
362
363
|
convertValue: u,
|
|
363
364
|
isVisitable: Dt
|
|
@@ -396,7 +397,7 @@ function cr(e) {
|
|
|
396
397
|
});
|
|
397
398
|
}
|
|
398
399
|
function Jt(e, t) {
|
|
399
|
-
this._pairs = [], e &&
|
|
400
|
+
this._pairs = [], e && rt(e, this, t);
|
|
400
401
|
}
|
|
401
402
|
const bn = Jt.prototype;
|
|
402
403
|
bn.append = function(t, r) {
|
|
@@ -410,13 +411,13 @@ bn.toString = function(t) {
|
|
|
410
411
|
return r(o[0]) + "=" + r(o[1]);
|
|
411
412
|
}, "").join("&");
|
|
412
413
|
};
|
|
413
|
-
function
|
|
414
|
+
function bi(e) {
|
|
414
415
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
415
416
|
}
|
|
416
417
|
function En(e, t, r) {
|
|
417
418
|
if (!t)
|
|
418
419
|
return e;
|
|
419
|
-
const n = r && r.encode ||
|
|
420
|
+
const n = r && r.encode || bi;
|
|
420
421
|
f.isFunction(r) && (r = {
|
|
421
422
|
serialize: r
|
|
422
423
|
});
|
|
@@ -486,38 +487,38 @@ const On = {
|
|
|
486
487
|
silentJSONParsing: !0,
|
|
487
488
|
forcedJSONParsing: !0,
|
|
488
489
|
clarifyTimeoutError: !1
|
|
489
|
-
},
|
|
490
|
+
}, Ei = typeof URLSearchParams < "u" ? URLSearchParams : Jt, Oi = typeof FormData < "u" ? FormData : null, Ai = typeof Blob < "u" ? Blob : null, Ri = {
|
|
490
491
|
isBrowser: !0,
|
|
491
492
|
classes: {
|
|
492
|
-
URLSearchParams:
|
|
493
|
-
FormData:
|
|
494
|
-
Blob:
|
|
493
|
+
URLSearchParams: Ei,
|
|
494
|
+
FormData: Oi,
|
|
495
|
+
Blob: Ai
|
|
495
496
|
},
|
|
496
497
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
497
|
-
},
|
|
498
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
498
|
+
}, Gt = typeof window < "u" && typeof document < "u", $t = typeof navigator == "object" && navigator || void 0, Pi = Gt && (!$t || ["ReactNative", "NativeScript", "NS"].indexOf($t.product) < 0), Ti = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
499
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ii = Gt && window.location.href || "http://localhost", Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
499
500
|
__proto__: null,
|
|
500
|
-
hasBrowserEnv:
|
|
501
|
-
hasStandardBrowserEnv:
|
|
502
|
-
hasStandardBrowserWebWorkerEnv:
|
|
501
|
+
hasBrowserEnv: Gt,
|
|
502
|
+
hasStandardBrowserEnv: Pi,
|
|
503
|
+
hasStandardBrowserWebWorkerEnv: Ti,
|
|
503
504
|
navigator: $t,
|
|
504
|
-
origin:
|
|
505
|
+
origin: Ii
|
|
505
506
|
}, Symbol.toStringTag, { value: "Module" })), F = {
|
|
506
|
-
...
|
|
507
|
-
...
|
|
507
|
+
...Ci,
|
|
508
|
+
...Ri
|
|
508
509
|
};
|
|
509
|
-
function
|
|
510
|
-
return
|
|
510
|
+
function Ni(e, t) {
|
|
511
|
+
return rt(e, new F.classes.URLSearchParams(), {
|
|
511
512
|
visitor: function(r, n, o, i) {
|
|
512
513
|
return F.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
513
514
|
},
|
|
514
515
|
...t
|
|
515
516
|
});
|
|
516
517
|
}
|
|
517
|
-
function
|
|
518
|
+
function xi(e) {
|
|
518
519
|
return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
+
function _i(e) {
|
|
521
522
|
const t = {}, r = Object.keys(e);
|
|
522
523
|
let n;
|
|
523
524
|
const o = r.length;
|
|
@@ -531,17 +532,17 @@ function An(e) {
|
|
|
531
532
|
let a = r[i++];
|
|
532
533
|
if (a === "__proto__") return !0;
|
|
533
534
|
const s = Number.isFinite(+a), c = i >= r.length;
|
|
534
|
-
return a = !a && f.isArray(o) ? o.length : a, c ? (f.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !s) : ((!o[a] || !f.isObject(o[a])) && (o[a] = []), t(r, n, o[a], i) && f.isArray(o[a]) && (o[a] =
|
|
535
|
+
return a = !a && f.isArray(o) ? o.length : a, c ? (f.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !s) : ((!o[a] || !f.isObject(o[a])) && (o[a] = []), t(r, n, o[a], i) && f.isArray(o[a]) && (o[a] = _i(o[a])), !s);
|
|
535
536
|
}
|
|
536
537
|
if (f.isFormData(e) && f.isFunction(e.entries)) {
|
|
537
538
|
const r = {};
|
|
538
539
|
return f.forEachEntry(e, (n, o) => {
|
|
539
|
-
t(
|
|
540
|
+
t(xi(n), o, r, 0);
|
|
540
541
|
}), r;
|
|
541
542
|
}
|
|
542
543
|
return null;
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
+
function Fi(e, t, r) {
|
|
545
546
|
if (f.isString(e))
|
|
546
547
|
try {
|
|
547
548
|
return (t || JSON.parse)(e), f.trim(e);
|
|
@@ -567,17 +568,17 @@ const Fe = {
|
|
|
567
568
|
let s;
|
|
568
569
|
if (i) {
|
|
569
570
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
570
|
-
return
|
|
571
|
+
return Ni(t, this.formSerializer).toString();
|
|
571
572
|
if ((s = f.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
572
573
|
const c = this.env && this.env.FormData;
|
|
573
|
-
return
|
|
574
|
+
return rt(
|
|
574
575
|
s ? { "files[]": t } : t,
|
|
575
576
|
c && new c(),
|
|
576
577
|
this.formSerializer
|
|
577
578
|
);
|
|
578
579
|
}
|
|
579
580
|
}
|
|
580
|
-
return i || o ? (r.setContentType("application/json", !1),
|
|
581
|
+
return i || o ? (r.setContentType("application/json", !1), Fi(t)) : t;
|
|
581
582
|
}],
|
|
582
583
|
transformResponse: [function(t) {
|
|
583
584
|
const r = this.transitional || Fe.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -620,7 +621,7 @@ const Fe = {
|
|
|
620
621
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
621
622
|
Fe.headers[e] = {};
|
|
622
623
|
});
|
|
623
|
-
const
|
|
624
|
+
const Di = f.toObjectSet([
|
|
624
625
|
"age",
|
|
625
626
|
"authorization",
|
|
626
627
|
"content-length",
|
|
@@ -638,28 +639,28 @@ const $i = f.toObjectSet([
|
|
|
638
639
|
"referer",
|
|
639
640
|
"retry-after",
|
|
640
641
|
"user-agent"
|
|
641
|
-
]),
|
|
642
|
+
]), $i = (e) => {
|
|
642
643
|
const t = {};
|
|
643
644
|
let r, n, o;
|
|
644
645
|
return e && e.split(`
|
|
645
646
|
`).forEach(function(a) {
|
|
646
|
-
o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || t[r] &&
|
|
647
|
+
o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || t[r] && Di[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
647
648
|
}), t;
|
|
648
649
|
}, ur = Symbol("internals");
|
|
649
650
|
function Ee(e) {
|
|
650
651
|
return e && String(e).trim().toLowerCase();
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
-
return e === !1 || e == null ? e : f.isArray(e) ? e.map(
|
|
653
|
+
function ze(e) {
|
|
654
|
+
return e === !1 || e == null ? e : f.isArray(e) ? e.map(ze) : String(e);
|
|
654
655
|
}
|
|
655
|
-
function
|
|
656
|
+
function Li(e) {
|
|
656
657
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
657
658
|
let n;
|
|
658
659
|
for (; n = r.exec(e); )
|
|
659
660
|
t[n[1]] = n[2];
|
|
660
661
|
return t;
|
|
661
662
|
}
|
|
662
|
-
const
|
|
663
|
+
const Ui = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
663
664
|
function ut(e, t, r, n, o) {
|
|
664
665
|
if (f.isFunction(n))
|
|
665
666
|
return n.call(this, t, r);
|
|
@@ -670,10 +671,10 @@ function ut(e, t, r, n, o) {
|
|
|
670
671
|
return n.test(t);
|
|
671
672
|
}
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function Mi(e) {
|
|
674
675
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
675
676
|
}
|
|
676
|
-
function
|
|
677
|
+
function Bi(e, t) {
|
|
677
678
|
const r = f.toCamelCase(" " + t);
|
|
678
679
|
["get", "set", "has"].forEach((n) => {
|
|
679
680
|
Object.defineProperty(e, n + r, {
|
|
@@ -695,13 +696,13 @@ class $ {
|
|
|
695
696
|
if (!l)
|
|
696
697
|
throw new Error("header name must be a non-empty string");
|
|
697
698
|
const p = f.findKey(o, l);
|
|
698
|
-
(!p || o[p] === void 0 || u === !0 || u === void 0 && o[p] !== !1) && (o[p || c] =
|
|
699
|
+
(!p || o[p] === void 0 || u === !0 || u === void 0 && o[p] !== !1) && (o[p || c] = ze(s));
|
|
699
700
|
}
|
|
700
701
|
const a = (s, c) => f.forEach(s, (u, l) => i(u, l, c));
|
|
701
702
|
if (f.isPlainObject(t) || t instanceof this.constructor)
|
|
702
703
|
a(t, r);
|
|
703
|
-
else if (f.isString(t) && (t = t.trim()) && !
|
|
704
|
-
a(
|
|
704
|
+
else if (f.isString(t) && (t = t.trim()) && !Ui(t))
|
|
705
|
+
a($i(t), r);
|
|
705
706
|
else if (f.isObject(t) && f.isIterable(t)) {
|
|
706
707
|
let s = {}, c, u;
|
|
707
708
|
for (const l of t) {
|
|
@@ -722,7 +723,7 @@ class $ {
|
|
|
722
723
|
if (!r)
|
|
723
724
|
return o;
|
|
724
725
|
if (r === !0)
|
|
725
|
-
return
|
|
726
|
+
return Li(o);
|
|
726
727
|
if (f.isFunction(r))
|
|
727
728
|
return r.call(this, o, n);
|
|
728
729
|
if (f.isRegExp(r))
|
|
@@ -763,11 +764,11 @@ class $ {
|
|
|
763
764
|
return f.forEach(this, (o, i) => {
|
|
764
765
|
const a = f.findKey(n, i);
|
|
765
766
|
if (a) {
|
|
766
|
-
r[a] =
|
|
767
|
+
r[a] = ze(o), delete r[i];
|
|
767
768
|
return;
|
|
768
769
|
}
|
|
769
|
-
const s = t ?
|
|
770
|
-
s !== i && delete r[i], r[s] =
|
|
770
|
+
const s = t ? Mi(i) : String(i).trim();
|
|
771
|
+
s !== i && delete r[i], r[s] = ze(o), n[s] = !0;
|
|
771
772
|
}), this;
|
|
772
773
|
}
|
|
773
774
|
concat(...t) {
|
|
@@ -805,7 +806,7 @@ class $ {
|
|
|
805
806
|
}).accessors, o = this.prototype;
|
|
806
807
|
function i(a) {
|
|
807
808
|
const s = Ee(a);
|
|
808
|
-
n[s] || (
|
|
809
|
+
n[s] || (Bi(o, a), n[s] = !0);
|
|
809
810
|
}
|
|
810
811
|
return f.isArray(t) ? t.forEach(i) : i(t), this;
|
|
811
812
|
}
|
|
@@ -847,11 +848,11 @@ function Pn(e, t, r) {
|
|
|
847
848
|
r
|
|
848
849
|
));
|
|
849
850
|
}
|
|
850
|
-
function
|
|
851
|
+
function ki(e) {
|
|
851
852
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
852
853
|
return t && t[1] || "";
|
|
853
854
|
}
|
|
854
|
-
function
|
|
855
|
+
function ji(e, t) {
|
|
855
856
|
e = e || 10;
|
|
856
857
|
const r = new Array(e), n = new Array(e);
|
|
857
858
|
let o = 0, i = 0, a;
|
|
@@ -867,7 +868,7 @@ function qi(e, t) {
|
|
|
867
868
|
return v ? Math.round(y * 1e3 / v) : void 0;
|
|
868
869
|
};
|
|
869
870
|
}
|
|
870
|
-
function
|
|
871
|
+
function qi(e, t) {
|
|
871
872
|
let r = 0, n = 1e3 / t, o, i;
|
|
872
873
|
const a = (u, l = Date.now()) => {
|
|
873
874
|
r = l, o = null, i && (clearTimeout(i), i = null), e(...u);
|
|
@@ -879,10 +880,10 @@ function zi(e, t) {
|
|
|
879
880
|
}, n - p)));
|
|
880
881
|
}, () => o && a(o)];
|
|
881
882
|
}
|
|
882
|
-
const
|
|
883
|
+
const Ze = (e, t, r = 3) => {
|
|
883
884
|
let n = 0;
|
|
884
|
-
const o =
|
|
885
|
-
return
|
|
885
|
+
const o = ji(50, 250);
|
|
886
|
+
return qi((i) => {
|
|
886
887
|
const a = i.loaded, s = i.lengthComputable ? i.total : void 0, c = a - n, u = o(c), l = a <= s;
|
|
887
888
|
n = a;
|
|
888
889
|
const p = {
|
|
@@ -905,10 +906,10 @@ const Ve = (e, t, r = 3) => {
|
|
|
905
906
|
total: e,
|
|
906
907
|
loaded: n
|
|
907
908
|
}), t[1]];
|
|
908
|
-
}, pr = (e) => (...t) => f.asap(() => e(...t)),
|
|
909
|
+
}, pr = (e) => (...t) => f.asap(() => e(...t)), zi = F.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, F.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
909
910
|
new URL(F.origin),
|
|
910
911
|
F.navigator && /(msie|trident)/i.test(F.navigator.userAgent)
|
|
911
|
-
) : () => !0,
|
|
912
|
+
) : () => !0, Hi = F.hasStandardBrowserEnv ? (
|
|
912
913
|
// Standard browser envs support document.cookie
|
|
913
914
|
{
|
|
914
915
|
write(e, t, r, n, o, i, a) {
|
|
@@ -937,15 +938,15 @@ const Ve = (e, t, r = 3) => {
|
|
|
937
938
|
}
|
|
938
939
|
}
|
|
939
940
|
);
|
|
940
|
-
function
|
|
941
|
+
function Wi(e) {
|
|
941
942
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
942
943
|
}
|
|
943
|
-
function
|
|
944
|
+
function Ji(e, t) {
|
|
944
945
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
945
946
|
}
|
|
946
947
|
function Tn(e, t, r) {
|
|
947
|
-
let n = !
|
|
948
|
-
return e && (n || r == !1) ?
|
|
948
|
+
let n = !Wi(t);
|
|
949
|
+
return e && (n || r == !1) ? Ji(e, t) : t;
|
|
949
950
|
}
|
|
950
951
|
const dr = (e) => e instanceof $ ? { ...e } : e;
|
|
951
952
|
function oe(e, t) {
|
|
@@ -1028,12 +1029,12 @@ const In = (e) => {
|
|
|
1028
1029
|
});
|
|
1029
1030
|
}
|
|
1030
1031
|
}
|
|
1031
|
-
if (F.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
|
1032
|
-
const c = o && i &&
|
|
1032
|
+
if (F.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 && zi(t.url))) {
|
|
1033
|
+
const c = o && i && Hi.read(i);
|
|
1033
1034
|
c && a.set(o, c);
|
|
1034
1035
|
}
|
|
1035
1036
|
return t;
|
|
1036
|
-
}, Gi = typeof XMLHttpRequest < "u",
|
|
1037
|
+
}, Gi = typeof XMLHttpRequest < "u", Zi = Gi && function(e) {
|
|
1037
1038
|
return new Promise(function(r, n) {
|
|
1038
1039
|
const o = In(e);
|
|
1039
1040
|
let i = o.data;
|
|
@@ -1081,17 +1082,17 @@ const In = (e) => {
|
|
|
1081
1082
|
)), m = null;
|
|
1082
1083
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in m && f.forEach(a.toJSON(), function(E, P) {
|
|
1083
1084
|
m.setRequestHeader(P, E);
|
|
1084
|
-
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), u && ([y, d] =
|
|
1085
|
+
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), u && ([y, d] = Ze(u, !0), m.addEventListener("progress", y)), c && m.upload && ([p, v] = Ze(c), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
|
|
1085
1086
|
m && (n(!g || g.type ? new ve(null, e, m) : g), m.abort(), m = null);
|
|
1086
1087
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1087
|
-
const O =
|
|
1088
|
+
const O = ki(o.url);
|
|
1088
1089
|
if (O && F.protocols.indexOf(O) === -1) {
|
|
1089
1090
|
n(new S("Unsupported protocol " + O + ":", S.ERR_BAD_REQUEST, e));
|
|
1090
1091
|
return;
|
|
1091
1092
|
}
|
|
1092
1093
|
m.send(i || null);
|
|
1093
1094
|
});
|
|
1094
|
-
},
|
|
1095
|
+
}, Vi = (e, t) => {
|
|
1095
1096
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1096
1097
|
if (t || r) {
|
|
1097
1098
|
let n = new AbortController(), o;
|
|
@@ -1114,7 +1115,7 @@ const In = (e) => {
|
|
|
1114
1115
|
const { signal: c } = n;
|
|
1115
1116
|
return c.unsubscribe = () => f.asap(s), c;
|
|
1116
1117
|
}
|
|
1117
|
-
},
|
|
1118
|
+
}, Ki = function* (e, t) {
|
|
1118
1119
|
let r = e.byteLength;
|
|
1119
1120
|
if (r < t) {
|
|
1120
1121
|
yield e;
|
|
@@ -1123,10 +1124,10 @@ const In = (e) => {
|
|
|
1123
1124
|
let n = 0, o;
|
|
1124
1125
|
for (; n < r; )
|
|
1125
1126
|
o = n + t, yield e.slice(n, o), n = o;
|
|
1126
|
-
},
|
|
1127
|
-
for await (const r of
|
|
1128
|
-
yield*
|
|
1129
|
-
},
|
|
1127
|
+
}, Qi = async function* (e, t) {
|
|
1128
|
+
for await (const r of Xi(e))
|
|
1129
|
+
yield* Ki(r, t);
|
|
1130
|
+
}, Xi = async function* (e) {
|
|
1130
1131
|
if (e[Symbol.asyncIterator]) {
|
|
1131
1132
|
yield* e;
|
|
1132
1133
|
return;
|
|
@@ -1143,7 +1144,7 @@ const In = (e) => {
|
|
|
1143
1144
|
await t.cancel();
|
|
1144
1145
|
}
|
|
1145
1146
|
}, yr = (e, t, r, n) => {
|
|
1146
|
-
const o =
|
|
1147
|
+
const o = Qi(e, t);
|
|
1147
1148
|
let i = 0, a, s = (c) => {
|
|
1148
1149
|
a || (a = !0, n && n(c));
|
|
1149
1150
|
};
|
|
@@ -1171,7 +1172,7 @@ const In = (e) => {
|
|
|
1171
1172
|
}, {
|
|
1172
1173
|
highWaterMark: 2
|
|
1173
1174
|
});
|
|
1174
|
-
}, mr = 64 * 1024, { isFunction:
|
|
1175
|
+
}, mr = 64 * 1024, { isFunction: Me } = f, Yi = (({ Request: e, Response: t }) => ({
|
|
1175
1176
|
Request: e,
|
|
1176
1177
|
Response: t
|
|
1177
1178
|
}))(f.global), {
|
|
@@ -1183,14 +1184,14 @@ const In = (e) => {
|
|
|
1183
1184
|
} catch {
|
|
1184
1185
|
return !1;
|
|
1185
1186
|
}
|
|
1186
|
-
},
|
|
1187
|
+
}, ea = (e) => {
|
|
1187
1188
|
e = f.merge.call({
|
|
1188
1189
|
skipUndefined: !0
|
|
1189
|
-
},
|
|
1190
|
-
const { fetch: t, Request: r, Response: n } = e, o = t ?
|
|
1190
|
+
}, Yi, e);
|
|
1191
|
+
const { fetch: t, Request: r, Response: n } = e, o = t ? Me(t) : typeof fetch == "function", i = Me(r), a = Me(n);
|
|
1191
1192
|
if (!o)
|
|
1192
1193
|
return !1;
|
|
1193
|
-
const s = o &&
|
|
1194
|
+
const s = o && Me(hr), c = o && (typeof gr == "function" ? /* @__PURE__ */ ((d) => (h) => d.encode(h))(new gr()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), u = i && s && vr(() => {
|
|
1194
1195
|
let d = !1;
|
|
1195
1196
|
const h = new r(F.origin, {
|
|
1196
1197
|
body: new hr(),
|
|
@@ -1245,7 +1246,7 @@ const In = (e) => {
|
|
|
1245
1246
|
fetchOptions: B
|
|
1246
1247
|
} = In(d), Y = t || fetch;
|
|
1247
1248
|
T = T ? (T + "").toLowerCase() : "text";
|
|
1248
|
-
let k =
|
|
1249
|
+
let k = Vi([O, g && g.toAbortSignal()], E), N = null;
|
|
1249
1250
|
const x = k && k.unsubscribe && (() => {
|
|
1250
1251
|
k.unsubscribe();
|
|
1251
1252
|
});
|
|
@@ -1258,11 +1259,11 @@ const In = (e) => {
|
|
|
1258
1259
|
duplex: "half"
|
|
1259
1260
|
}), ce;
|
|
1260
1261
|
if (f.isFormData(b) && (ce = K.headers.get("content-type")) && V.setContentType(ce), K.body) {
|
|
1261
|
-
const [lt,
|
|
1262
|
+
const [lt, Ue] = fr(
|
|
1262
1263
|
M,
|
|
1263
|
-
|
|
1264
|
+
Ze(pr(L))
|
|
1264
1265
|
);
|
|
1265
|
-
b = yr(K.body, mr, lt,
|
|
1266
|
+
b = yr(K.body, mr, lt, Ue);
|
|
1266
1267
|
}
|
|
1267
1268
|
}
|
|
1268
1269
|
f.isString(U) || (U = U ? "include" : "omit");
|
|
@@ -1276,32 +1277,32 @@ const In = (e) => {
|
|
|
1276
1277
|
credentials: _ ? U : void 0
|
|
1277
1278
|
};
|
|
1278
1279
|
N = i && new r(h, se);
|
|
1279
|
-
let
|
|
1280
|
+
let q = await (i ? Y(N, B) : Y(h, se));
|
|
1280
1281
|
const we = l && (T === "stream" || T === "response");
|
|
1281
1282
|
if (l && (P || we && x)) {
|
|
1282
1283
|
const K = {};
|
|
1283
1284
|
["status", "statusText", "headers"].forEach((ir) => {
|
|
1284
|
-
K[ir] =
|
|
1285
|
+
K[ir] = q[ir];
|
|
1285
1286
|
});
|
|
1286
|
-
const ce = f.toFiniteNumber(
|
|
1287
|
+
const ce = f.toFiniteNumber(q.headers.get("content-length")), [lt, Ue] = P && fr(
|
|
1287
1288
|
ce,
|
|
1288
|
-
|
|
1289
|
+
Ze(pr(P), !0)
|
|
1289
1290
|
) || [];
|
|
1290
|
-
|
|
1291
|
-
yr(
|
|
1292
|
-
|
|
1291
|
+
q = new n(
|
|
1292
|
+
yr(q.body, mr, lt, () => {
|
|
1293
|
+
Ue && Ue(), x && x();
|
|
1293
1294
|
}),
|
|
1294
1295
|
K
|
|
1295
1296
|
);
|
|
1296
1297
|
}
|
|
1297
1298
|
T = T || "text";
|
|
1298
|
-
let be = await p[f.findKey(p, T) || "text"](
|
|
1299
|
+
let be = await p[f.findKey(p, T) || "text"](q, d);
|
|
1299
1300
|
return !we && x && x(), await new Promise((K, ce) => {
|
|
1300
1301
|
Pn(K, ce, {
|
|
1301
1302
|
data: be,
|
|
1302
|
-
headers: $.from(
|
|
1303
|
-
status:
|
|
1304
|
-
statusText:
|
|
1303
|
+
headers: $.from(q.headers),
|
|
1304
|
+
status: q.status,
|
|
1305
|
+
statusText: q.statusText,
|
|
1305
1306
|
config: d,
|
|
1306
1307
|
request: N
|
|
1307
1308
|
});
|
|
@@ -1315,27 +1316,27 @@ const In = (e) => {
|
|
|
1315
1316
|
) : S.from(_, _ && _.code, d, N);
|
|
1316
1317
|
}
|
|
1317
1318
|
};
|
|
1318
|
-
},
|
|
1319
|
+
}, ta = /* @__PURE__ */ new Map(), Cn = (e) => {
|
|
1319
1320
|
let t = e && e.env || {};
|
|
1320
1321
|
const { fetch: r, Request: n, Response: o } = t, i = [
|
|
1321
1322
|
n,
|
|
1322
1323
|
o,
|
|
1323
1324
|
r
|
|
1324
1325
|
];
|
|
1325
|
-
let a = i.length, s = a, c, u, l =
|
|
1326
|
+
let a = i.length, s = a, c, u, l = ta;
|
|
1326
1327
|
for (; s--; )
|
|
1327
|
-
c = i[s], u = l.get(c), u === void 0 && l.set(c, u = s ? /* @__PURE__ */ new Map() :
|
|
1328
|
+
c = i[s], u = l.get(c), u === void 0 && l.set(c, u = s ? /* @__PURE__ */ new Map() : ea(t)), l = u;
|
|
1328
1329
|
return u;
|
|
1329
1330
|
};
|
|
1330
1331
|
Cn();
|
|
1331
|
-
const
|
|
1332
|
-
http:
|
|
1333
|
-
xhr:
|
|
1332
|
+
const Zt = {
|
|
1333
|
+
http: vi,
|
|
1334
|
+
xhr: Zi,
|
|
1334
1335
|
fetch: {
|
|
1335
1336
|
get: Cn
|
|
1336
1337
|
}
|
|
1337
1338
|
};
|
|
1338
|
-
f.forEach(
|
|
1339
|
+
f.forEach(Zt, (e, t) => {
|
|
1339
1340
|
if (e) {
|
|
1340
1341
|
try {
|
|
1341
1342
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1344,8 +1345,8 @@ f.forEach(Gt, (e, t) => {
|
|
|
1344
1345
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1345
1346
|
}
|
|
1346
1347
|
});
|
|
1347
|
-
const Sr = (e) => `- ${e}`,
|
|
1348
|
-
function
|
|
1348
|
+
const Sr = (e) => `- ${e}`, ra = (e) => f.isFunction(e) || e === null || e === !1;
|
|
1349
|
+
function na(e, t) {
|
|
1349
1350
|
e = f.isArray(e) ? e : [e];
|
|
1350
1351
|
const { length: r } = e;
|
|
1351
1352
|
let n, o;
|
|
@@ -1353,7 +1354,7 @@ function oa(e, t) {
|
|
|
1353
1354
|
for (let a = 0; a < r; a++) {
|
|
1354
1355
|
n = e[a];
|
|
1355
1356
|
let s;
|
|
1356
|
-
if (o = n, !
|
|
1357
|
+
if (o = n, !ra(n) && (o = Zt[(s = String(n)).toLowerCase()], o === void 0))
|
|
1357
1358
|
throw new S(`Unknown adapter '${s}'`);
|
|
1358
1359
|
if (o && (f.isFunction(o) || (o = o.get(t))))
|
|
1359
1360
|
break;
|
|
@@ -1378,12 +1379,12 @@ const Nn = {
|
|
|
1378
1379
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1379
1380
|
* @type {Function}
|
|
1380
1381
|
*/
|
|
1381
|
-
getAdapter:
|
|
1382
|
+
getAdapter: na,
|
|
1382
1383
|
/**
|
|
1383
1384
|
* Exposes all known adapters
|
|
1384
1385
|
* @type {Object<string, Function|Object>}
|
|
1385
1386
|
*/
|
|
1386
|
-
adapters:
|
|
1387
|
+
adapters: Zt
|
|
1387
1388
|
};
|
|
1388
1389
|
function pt(e) {
|
|
1389
1390
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -1407,14 +1408,14 @@ function wr(e) {
|
|
|
1407
1408
|
), n.response.headers = $.from(n.response.headers))), Promise.reject(n);
|
|
1408
1409
|
});
|
|
1409
1410
|
}
|
|
1410
|
-
const xn = "1.13.2",
|
|
1411
|
+
const xn = "1.13.2", nt = {};
|
|
1411
1412
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1412
|
-
|
|
1413
|
+
nt[e] = function(n) {
|
|
1413
1414
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1414
1415
|
};
|
|
1415
1416
|
});
|
|
1416
1417
|
const br = {};
|
|
1417
|
-
|
|
1418
|
+
nt.transitional = function(t, r, n) {
|
|
1418
1419
|
function o(i, a) {
|
|
1419
1420
|
return "[Axios v" + xn + "] Transitional option '" + i + "'" + a + (n ? ". " + n : "");
|
|
1420
1421
|
}
|
|
@@ -1427,10 +1428,10 @@ ot.transitional = function(t, r, n) {
|
|
|
1427
1428
|
return r && !br[a] && (br[a] = !0), t ? t(i, a, s) : !0;
|
|
1428
1429
|
};
|
|
1429
1430
|
};
|
|
1430
|
-
|
|
1431
|
+
nt.spelling = function(t) {
|
|
1431
1432
|
return (r, n) => !0;
|
|
1432
1433
|
};
|
|
1433
|
-
function
|
|
1434
|
+
function oa(e, t, r) {
|
|
1434
1435
|
if (typeof e != "object")
|
|
1435
1436
|
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
1436
1437
|
const n = Object.keys(e);
|
|
@@ -1447,10 +1448,10 @@ function ia(e, t, r) {
|
|
|
1447
1448
|
throw new S("Unknown option " + i, S.ERR_BAD_OPTION);
|
|
1448
1449
|
}
|
|
1449
1450
|
}
|
|
1450
|
-
const
|
|
1451
|
-
assertOptions:
|
|
1452
|
-
validators:
|
|
1453
|
-
},
|
|
1451
|
+
const He = {
|
|
1452
|
+
assertOptions: oa,
|
|
1453
|
+
validators: nt
|
|
1454
|
+
}, z = He.validators;
|
|
1454
1455
|
class re {
|
|
1455
1456
|
constructor(t) {
|
|
1456
1457
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -1486,18 +1487,18 @@ class re {
|
|
|
1486
1487
|
_request(t, r) {
|
|
1487
1488
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = oe(this.defaults, r);
|
|
1488
1489
|
const { transitional: n, paramsSerializer: o, headers: i } = r;
|
|
1489
|
-
n !== void 0 &&
|
|
1490
|
-
silentJSONParsing:
|
|
1491
|
-
forcedJSONParsing:
|
|
1492
|
-
clarifyTimeoutError:
|
|
1490
|
+
n !== void 0 && He.assertOptions(n, {
|
|
1491
|
+
silentJSONParsing: z.transitional(z.boolean),
|
|
1492
|
+
forcedJSONParsing: z.transitional(z.boolean),
|
|
1493
|
+
clarifyTimeoutError: z.transitional(z.boolean)
|
|
1493
1494
|
}, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
|
|
1494
1495
|
serialize: o
|
|
1495
|
-
} :
|
|
1496
|
-
encode:
|
|
1497
|
-
serialize:
|
|
1498
|
-
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0),
|
|
1499
|
-
baseUrl:
|
|
1500
|
-
withXsrfToken:
|
|
1496
|
+
} : He.assertOptions(o, {
|
|
1497
|
+
encode: z.function,
|
|
1498
|
+
serialize: z.function
|
|
1499
|
+
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), He.assertOptions(r, {
|
|
1500
|
+
baseUrl: z.spelling("baseURL"),
|
|
1501
|
+
withXsrfToken: z.spelling("withXSRFToken")
|
|
1501
1502
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1502
1503
|
let a = i && f.merge(
|
|
1503
1504
|
i.common,
|
|
@@ -1648,12 +1649,12 @@ class Vt {
|
|
|
1648
1649
|
};
|
|
1649
1650
|
}
|
|
1650
1651
|
}
|
|
1651
|
-
function
|
|
1652
|
+
function ia(e) {
|
|
1652
1653
|
return function(r) {
|
|
1653
1654
|
return e.apply(null, r);
|
|
1654
1655
|
};
|
|
1655
1656
|
}
|
|
1656
|
-
function
|
|
1657
|
+
function aa(e) {
|
|
1657
1658
|
return f.isObject(e) && e.isAxiosError === !0;
|
|
1658
1659
|
}
|
|
1659
1660
|
const Lt = {
|
|
@@ -1742,14 +1743,14 @@ R.CanceledError = ve;
|
|
|
1742
1743
|
R.CancelToken = Vt;
|
|
1743
1744
|
R.isCancel = Rn;
|
|
1744
1745
|
R.VERSION = xn;
|
|
1745
|
-
R.toFormData =
|
|
1746
|
+
R.toFormData = rt;
|
|
1746
1747
|
R.AxiosError = S;
|
|
1747
1748
|
R.Cancel = R.CanceledError;
|
|
1748
1749
|
R.all = function(t) {
|
|
1749
1750
|
return Promise.all(t);
|
|
1750
1751
|
};
|
|
1751
|
-
R.spread =
|
|
1752
|
-
R.isAxiosError =
|
|
1752
|
+
R.spread = ia;
|
|
1753
|
+
R.isAxiosError = aa;
|
|
1753
1754
|
R.mergeConfig = oe;
|
|
1754
1755
|
R.AxiosHeaders = $;
|
|
1755
1756
|
R.formToJSON = (e) => An(f.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -1757,10 +1758,10 @@ R.getAdapter = Nn.getAdapter;
|
|
|
1757
1758
|
R.HttpStatusCode = Lt;
|
|
1758
1759
|
R.default = R;
|
|
1759
1760
|
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1760
|
-
function
|
|
1761
|
+
function sa(e) {
|
|
1761
1762
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1762
1763
|
}
|
|
1763
|
-
function
|
|
1764
|
+
function ca(e) {
|
|
1764
1765
|
if (e.__esModule) return e;
|
|
1765
1766
|
var t = e.default;
|
|
1766
1767
|
if (typeof t == "function") {
|
|
@@ -1780,11 +1781,11 @@ function la(e) {
|
|
|
1780
1781
|
}), r;
|
|
1781
1782
|
}
|
|
1782
1783
|
var Se = TypeError;
|
|
1783
|
-
const
|
|
1784
|
+
const la = {}, ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1784
1785
|
__proto__: null,
|
|
1785
|
-
default:
|
|
1786
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1787
|
-
var Kt = typeof Map == "function" && Map.prototype, dt = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null,
|
|
1786
|
+
default: la
|
|
1787
|
+
}, Symbol.toStringTag, { value: "Module" })), fa = /* @__PURE__ */ ca(ua);
|
|
1788
|
+
var Kt = typeof Map == "function" && Map.prototype, dt = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ve = Kt && dt && typeof dt.get == "function" ? dt.get : null, Or = Kt && Map.prototype.forEach, Qt = typeof Set == "function" && Set.prototype, yt = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ke = Qt && yt && typeof yt.get == "function" ? yt.get : null, Ar = Qt && Set.prototype.forEach, pa = typeof WeakMap == "function" && WeakMap.prototype, Ae = pa ? WeakMap.prototype.has : null, da = typeof WeakSet == "function" && WeakSet.prototype, Re = da ? WeakSet.prototype.has : null, ya = typeof WeakRef == "function" && WeakRef.prototype, Rr = ya ? WeakRef.prototype.deref : null, ma = Boolean.prototype.valueOf, ha = Object.prototype.toString, ga = Function.prototype.toString, va = String.prototype.match, Xt = String.prototype.slice, Q = String.prototype.replace, Sa = String.prototype.toUpperCase, Pr = String.prototype.toLowerCase, Fn = RegExp.prototype.test, Tr = Array.prototype.concat, J = Array.prototype.join, wa = Array.prototype.slice, Ir = Math.floor, Ut = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, mt = Object.getOwnPropertySymbols, Mt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, me = typeof Symbol == "function" && typeof Symbol.iterator == "object", Pe = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === me || !0) ? Symbol.toStringTag : null, Dn = Object.prototype.propertyIsEnumerable, Cr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
1788
1789
|
return e.__proto__;
|
|
1789
1790
|
} : null);
|
|
1790
1791
|
function Nr(e, t) {
|
|
@@ -1800,15 +1801,15 @@ function Nr(e, t) {
|
|
|
1800
1801
|
}
|
|
1801
1802
|
return Q.call(t, r, "$&_");
|
|
1802
1803
|
}
|
|
1803
|
-
var Bt =
|
|
1804
|
+
var Bt = fa, xr = Bt.custom, _r = Un(xr) ? xr : null, $n = {
|
|
1804
1805
|
__proto__: null,
|
|
1805
1806
|
double: '"',
|
|
1806
1807
|
single: "'"
|
|
1807
|
-
},
|
|
1808
|
+
}, ba = {
|
|
1808
1809
|
__proto__: null,
|
|
1809
1810
|
double: /(["\\])/g,
|
|
1810
1811
|
single: /(['\\])/g
|
|
1811
|
-
},
|
|
1812
|
+
}, ot = function e(t, r, n, o) {
|
|
1812
1813
|
var i = r || {};
|
|
1813
1814
|
if (G(i, "quoteStyle") && !G($n, i.quoteStyle))
|
|
1814
1815
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -1843,13 +1844,13 @@ var Bt = pa, xr = Bt.custom, _r = Un(xr) ? xr : null, $n = {
|
|
|
1843
1844
|
var l = typeof i.depth > "u" ? 5 : i.depth;
|
|
1844
1845
|
if (typeof n > "u" && (n = 0), n >= l && l > 0 && typeof t == "object")
|
|
1845
1846
|
return kt(t) ? "[Array]" : "[Object]";
|
|
1846
|
-
var p =
|
|
1847
|
+
var p = Ba(i, n);
|
|
1847
1848
|
if (typeof o > "u")
|
|
1848
1849
|
o = [];
|
|
1849
1850
|
else if (Mn(o, t) >= 0)
|
|
1850
1851
|
return "[Circular]";
|
|
1851
1852
|
function y(N, x, M) {
|
|
1852
|
-
if (x && (o =
|
|
1853
|
+
if (x && (o = wa.call(o), o.push(x)), M) {
|
|
1853
1854
|
var _ = {
|
|
1854
1855
|
depth: i.depth
|
|
1855
1856
|
};
|
|
@@ -1858,27 +1859,27 @@ var Bt = pa, xr = Bt.custom, _r = Un(xr) ? xr : null, $n = {
|
|
|
1858
1859
|
return e(N, i, n + 1, o);
|
|
1859
1860
|
}
|
|
1860
1861
|
if (typeof t == "function" && !Fr(t)) {
|
|
1861
|
-
var v =
|
|
1862
|
-
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " +
|
|
1862
|
+
var v = Na(t), d = Be(t, y);
|
|
1863
|
+
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " + J.call(d, ", ") + " }" : "");
|
|
1863
1864
|
}
|
|
1864
1865
|
if (Un(t)) {
|
|
1865
1866
|
var h = me ? Q.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Mt.call(t);
|
|
1866
1867
|
return typeof t == "object" && !me ? Oe(h) : h;
|
|
1867
1868
|
}
|
|
1868
|
-
if (
|
|
1869
|
+
if (La(t)) {
|
|
1869
1870
|
for (var m = "<" + Pr.call(String(t.nodeName)), b = t.attributes || [], O = 0; O < b.length; O++)
|
|
1870
|
-
m += " " + b[O].name + "=" + Ln(
|
|
1871
|
+
m += " " + b[O].name + "=" + Ln(Ea(b[O].value), "double", i);
|
|
1871
1872
|
return m += ">", t.childNodes && t.childNodes.length && (m += "..."), m += "</" + Pr.call(String(t.nodeName)) + ">", m;
|
|
1872
1873
|
}
|
|
1873
1874
|
if (kt(t)) {
|
|
1874
1875
|
if (t.length === 0)
|
|
1875
1876
|
return "[]";
|
|
1876
|
-
var g =
|
|
1877
|
-
return p && !
|
|
1877
|
+
var g = Be(t, y);
|
|
1878
|
+
return p && !Ma(g) ? "[" + jt(g, p) + "]" : "[ " + J.call(g, ", ") + " ]";
|
|
1878
1879
|
}
|
|
1879
|
-
if (
|
|
1880
|
-
var E =
|
|
1881
|
-
return !("cause" in Error.prototype) && "cause" in t && !Dn.call(t, "cause") ? "{ [" + String(t) + "] " +
|
|
1880
|
+
if (Aa(t)) {
|
|
1881
|
+
var E = Be(t, y);
|
|
1882
|
+
return !("cause" in Error.prototype) && "cause" in t && !Dn.call(t, "cause") ? "{ [" + String(t) + "] " + J.call(Tr.call("[cause]: " + y(t.cause), E), ", ") + " }" : E.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + J.call(E, ", ") + " }";
|
|
1882
1883
|
}
|
|
1883
1884
|
if (typeof t == "object" && a) {
|
|
1884
1885
|
if (_r && typeof t[_r] == "function" && Bt)
|
|
@@ -1886,39 +1887,39 @@ var Bt = pa, xr = Bt.custom, _r = Un(xr) ? xr : null, $n = {
|
|
|
1886
1887
|
if (a !== "symbol" && typeof t.inspect == "function")
|
|
1887
1888
|
return t.inspect();
|
|
1888
1889
|
}
|
|
1889
|
-
if (
|
|
1890
|
+
if (xa(t)) {
|
|
1890
1891
|
var P = [];
|
|
1891
1892
|
return Or && Or.call(t, function(N, x) {
|
|
1892
1893
|
P.push(y(x, t, !0) + " => " + y(N, t));
|
|
1893
|
-
}), Dr("Map",
|
|
1894
|
+
}), Dr("Map", Ve.call(t), P, p);
|
|
1894
1895
|
}
|
|
1895
|
-
if (
|
|
1896
|
+
if (Da(t)) {
|
|
1896
1897
|
var L = [];
|
|
1897
1898
|
return Ar && Ar.call(t, function(N) {
|
|
1898
1899
|
L.push(y(N, t));
|
|
1899
|
-
}), Dr("Set",
|
|
1900
|
+
}), Dr("Set", Ke.call(t), L, p);
|
|
1900
1901
|
}
|
|
1901
|
-
if (
|
|
1902
|
+
if (_a(t))
|
|
1902
1903
|
return ht("WeakMap");
|
|
1903
|
-
if (
|
|
1904
|
+
if ($a(t))
|
|
1904
1905
|
return ht("WeakSet");
|
|
1905
|
-
if (
|
|
1906
|
+
if (Fa(t))
|
|
1906
1907
|
return ht("WeakRef");
|
|
1907
|
-
if (
|
|
1908
|
+
if (Pa(t))
|
|
1908
1909
|
return Oe(y(Number(t)));
|
|
1909
|
-
if (Ca(t))
|
|
1910
|
-
return Oe(y(Ut.call(t)));
|
|
1911
1910
|
if (Ia(t))
|
|
1912
|
-
return Oe(
|
|
1913
|
-
if (
|
|
1911
|
+
return Oe(y(Ut.call(t)));
|
|
1912
|
+
if (Ta(t))
|
|
1913
|
+
return Oe(ma.call(t));
|
|
1914
|
+
if (Ra(t))
|
|
1914
1915
|
return Oe(y(String(t)));
|
|
1915
1916
|
if (typeof window < "u" && t === window)
|
|
1916
1917
|
return "{ [object Window] }";
|
|
1917
1918
|
if (typeof globalThis < "u" && t === globalThis || typeof Er < "u" && t === Er)
|
|
1918
1919
|
return "{ [object globalThis] }";
|
|
1919
|
-
if (!
|
|
1920
|
-
var T =
|
|
1921
|
-
return T.length === 0 ? k + "{}" : p ? k + "{" + jt(T, p) + "}" : k + "{ " +
|
|
1920
|
+
if (!Oa(t) && !Fr(t)) {
|
|
1921
|
+
var T = Be(t, y), V = Cr ? Cr(t) === Object.prototype : t instanceof Object || t.constructor === Object, U = t instanceof Object ? "" : "null prototype", B = !V && Pe && Object(t) === t && Pe in t ? Xt.call(X(t), 8, -1) : U ? "Object" : "", Y = V || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", k = Y + (B || U ? "[" + J.call(Tr.call([], B || [], U || []), ": ") + "] " : "");
|
|
1922
|
+
return T.length === 0 ? k + "{}" : p ? k + "{" + jt(T, p) + "}" : k + "{ " + J.call(T, ", ") + " }";
|
|
1922
1923
|
}
|
|
1923
1924
|
return String(t);
|
|
1924
1925
|
};
|
|
@@ -1926,7 +1927,7 @@ function Ln(e, t, r) {
|
|
|
1926
1927
|
var n = r.quoteStyle || t, o = $n[n];
|
|
1927
1928
|
return o + e + o;
|
|
1928
1929
|
}
|
|
1929
|
-
function
|
|
1930
|
+
function Ea(e) {
|
|
1930
1931
|
return Q.call(String(e), /"/g, """);
|
|
1931
1932
|
}
|
|
1932
1933
|
function ae(e) {
|
|
@@ -1935,22 +1936,22 @@ function ae(e) {
|
|
|
1935
1936
|
function kt(e) {
|
|
1936
1937
|
return X(e) === "[object Array]" && ae(e);
|
|
1937
1938
|
}
|
|
1938
|
-
function
|
|
1939
|
+
function Oa(e) {
|
|
1939
1940
|
return X(e) === "[object Date]" && ae(e);
|
|
1940
1941
|
}
|
|
1941
1942
|
function Fr(e) {
|
|
1942
1943
|
return X(e) === "[object RegExp]" && ae(e);
|
|
1943
1944
|
}
|
|
1944
|
-
function
|
|
1945
|
+
function Aa(e) {
|
|
1945
1946
|
return X(e) === "[object Error]" && ae(e);
|
|
1946
1947
|
}
|
|
1947
|
-
function
|
|
1948
|
+
function Ra(e) {
|
|
1948
1949
|
return X(e) === "[object String]" && ae(e);
|
|
1949
1950
|
}
|
|
1950
|
-
function
|
|
1951
|
+
function Pa(e) {
|
|
1951
1952
|
return X(e) === "[object Number]" && ae(e);
|
|
1952
1953
|
}
|
|
1953
|
-
function
|
|
1954
|
+
function Ta(e) {
|
|
1954
1955
|
return X(e) === "[object Boolean]" && ae(e);
|
|
1955
1956
|
}
|
|
1956
1957
|
function Un(e) {
|
|
@@ -1966,7 +1967,7 @@ function Un(e) {
|
|
|
1966
1967
|
}
|
|
1967
1968
|
return !1;
|
|
1968
1969
|
}
|
|
1969
|
-
function
|
|
1970
|
+
function Ia(e) {
|
|
1970
1971
|
if (!e || typeof e != "object" || !Ut)
|
|
1971
1972
|
return !1;
|
|
1972
1973
|
try {
|
|
@@ -1975,19 +1976,19 @@ function Ca(e) {
|
|
|
1975
1976
|
}
|
|
1976
1977
|
return !1;
|
|
1977
1978
|
}
|
|
1978
|
-
var
|
|
1979
|
+
var Ca = Object.prototype.hasOwnProperty || function(e) {
|
|
1979
1980
|
return e in this;
|
|
1980
1981
|
};
|
|
1981
1982
|
function G(e, t) {
|
|
1982
|
-
return
|
|
1983
|
+
return Ca.call(e, t);
|
|
1983
1984
|
}
|
|
1984
1985
|
function X(e) {
|
|
1985
|
-
return
|
|
1986
|
+
return ha.call(e);
|
|
1986
1987
|
}
|
|
1987
|
-
function
|
|
1988
|
+
function Na(e) {
|
|
1988
1989
|
if (e.name)
|
|
1989
1990
|
return e.name;
|
|
1990
|
-
var t =
|
|
1991
|
+
var t = va.call(ga.call(e), /^function\s*([\w$]+)/);
|
|
1991
1992
|
return t ? t[1] : null;
|
|
1992
1993
|
}
|
|
1993
1994
|
function Mn(e, t) {
|
|
@@ -1998,13 +1999,13 @@ function Mn(e, t) {
|
|
|
1998
1999
|
return r;
|
|
1999
2000
|
return -1;
|
|
2000
2001
|
}
|
|
2001
|
-
function
|
|
2002
|
-
if (!
|
|
2002
|
+
function xa(e) {
|
|
2003
|
+
if (!Ve || !e || typeof e != "object")
|
|
2003
2004
|
return !1;
|
|
2004
2005
|
try {
|
|
2005
|
-
|
|
2006
|
+
Ve.call(e);
|
|
2006
2007
|
try {
|
|
2007
|
-
|
|
2008
|
+
Ke.call(e);
|
|
2008
2009
|
} catch {
|
|
2009
2010
|
return !0;
|
|
2010
2011
|
}
|
|
@@ -2013,7 +2014,7 @@ function _a(e) {
|
|
|
2013
2014
|
}
|
|
2014
2015
|
return !1;
|
|
2015
2016
|
}
|
|
2016
|
-
function
|
|
2017
|
+
function _a(e) {
|
|
2017
2018
|
if (!Ae || !e || typeof e != "object")
|
|
2018
2019
|
return !1;
|
|
2019
2020
|
try {
|
|
@@ -2028,7 +2029,7 @@ function Fa(e) {
|
|
|
2028
2029
|
}
|
|
2029
2030
|
return !1;
|
|
2030
2031
|
}
|
|
2031
|
-
function
|
|
2032
|
+
function Fa(e) {
|
|
2032
2033
|
if (!Rr || !e || typeof e != "object")
|
|
2033
2034
|
return !1;
|
|
2034
2035
|
try {
|
|
@@ -2037,13 +2038,13 @@ function Da(e) {
|
|
|
2037
2038
|
}
|
|
2038
2039
|
return !1;
|
|
2039
2040
|
}
|
|
2040
|
-
function
|
|
2041
|
-
if (!
|
|
2041
|
+
function Da(e) {
|
|
2042
|
+
if (!Ke || !e || typeof e != "object")
|
|
2042
2043
|
return !1;
|
|
2043
2044
|
try {
|
|
2044
|
-
|
|
2045
|
+
Ke.call(e);
|
|
2045
2046
|
try {
|
|
2046
|
-
|
|
2047
|
+
Ve.call(e);
|
|
2047
2048
|
} catch {
|
|
2048
2049
|
return !0;
|
|
2049
2050
|
}
|
|
@@ -2052,7 +2053,7 @@ function $a(e) {
|
|
|
2052
2053
|
}
|
|
2053
2054
|
return !1;
|
|
2054
2055
|
}
|
|
2055
|
-
function
|
|
2056
|
+
function $a(e) {
|
|
2056
2057
|
if (!Re || !e || typeof e != "object")
|
|
2057
2058
|
return !1;
|
|
2058
2059
|
try {
|
|
@@ -2067,7 +2068,7 @@ function La(e) {
|
|
|
2067
2068
|
}
|
|
2068
2069
|
return !1;
|
|
2069
2070
|
}
|
|
2070
|
-
function
|
|
2071
|
+
function La(e) {
|
|
2071
2072
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
2072
2073
|
}
|
|
2073
2074
|
function Bn(e, t) {
|
|
@@ -2075,12 +2076,12 @@ function Bn(e, t) {
|
|
|
2075
2076
|
var r = e.length - t.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
2076
2077
|
return Bn(Xt.call(e, 0, t.maxStringLength), t) + n;
|
|
2077
2078
|
}
|
|
2078
|
-
var o =
|
|
2079
|
+
var o = ba[t.quoteStyle || "single"];
|
|
2079
2080
|
o.lastIndex = 0;
|
|
2080
|
-
var i = Q.call(Q.call(e, o, "\\$1"), /[\x00-\x1f]/g,
|
|
2081
|
+
var i = Q.call(Q.call(e, o, "\\$1"), /[\x00-\x1f]/g, Ua);
|
|
2081
2082
|
return Ln(i, "single", t);
|
|
2082
2083
|
}
|
|
2083
|
-
function
|
|
2084
|
+
function Ua(e) {
|
|
2084
2085
|
var t = e.charCodeAt(0), r = {
|
|
2085
2086
|
8: "b",
|
|
2086
2087
|
9: "t",
|
|
@@ -2088,7 +2089,7 @@ function Ma(e) {
|
|
|
2088
2089
|
12: "f",
|
|
2089
2090
|
13: "r"
|
|
2090
2091
|
}[t];
|
|
2091
|
-
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") +
|
|
2092
|
+
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") + Sa.call(t.toString(16));
|
|
2092
2093
|
}
|
|
2093
2094
|
function Oe(e) {
|
|
2094
2095
|
return "Object(" + e + ")";
|
|
@@ -2097,27 +2098,27 @@ function ht(e) {
|
|
|
2097
2098
|
return e + " { ? }";
|
|
2098
2099
|
}
|
|
2099
2100
|
function Dr(e, t, r, n) {
|
|
2100
|
-
var o = n ? jt(r, n) :
|
|
2101
|
+
var o = n ? jt(r, n) : J.call(r, ", ");
|
|
2101
2102
|
return e + " (" + t + ") {" + o + "}";
|
|
2102
2103
|
}
|
|
2103
|
-
function
|
|
2104
|
+
function Ma(e) {
|
|
2104
2105
|
for (var t = 0; t < e.length; t++)
|
|
2105
2106
|
if (Mn(e[t], `
|
|
2106
2107
|
`) >= 0)
|
|
2107
2108
|
return !1;
|
|
2108
2109
|
return !0;
|
|
2109
2110
|
}
|
|
2110
|
-
function
|
|
2111
|
+
function Ba(e, t) {
|
|
2111
2112
|
var r;
|
|
2112
2113
|
if (e.indent === " ")
|
|
2113
2114
|
r = " ";
|
|
2114
2115
|
else if (typeof e.indent == "number" && e.indent > 0)
|
|
2115
|
-
r =
|
|
2116
|
+
r = J.call(Array(e.indent + 1), " ");
|
|
2116
2117
|
else
|
|
2117
2118
|
return null;
|
|
2118
2119
|
return {
|
|
2119
2120
|
base: r,
|
|
2120
|
-
prev:
|
|
2121
|
+
prev: J.call(Array(t + 1), r)
|
|
2121
2122
|
};
|
|
2122
2123
|
}
|
|
2123
2124
|
function jt(e, t) {
|
|
@@ -2125,10 +2126,10 @@ function jt(e, t) {
|
|
|
2125
2126
|
return "";
|
|
2126
2127
|
var r = `
|
|
2127
2128
|
` + t.prev + t.base;
|
|
2128
|
-
return r +
|
|
2129
|
+
return r + J.call(e, "," + r) + `
|
|
2129
2130
|
` + t.prev;
|
|
2130
2131
|
}
|
|
2131
|
-
function
|
|
2132
|
+
function Be(e, t) {
|
|
2132
2133
|
var r = kt(e), n = [];
|
|
2133
2134
|
if (r) {
|
|
2134
2135
|
n.length = e.length;
|
|
@@ -2148,18 +2149,18 @@ function ke(e, t) {
|
|
|
2148
2149
|
Dn.call(e, i[u]) && n.push("[" + t(i[u]) + "]: " + t(e[i[u]], e));
|
|
2149
2150
|
return n;
|
|
2150
2151
|
}
|
|
2151
|
-
var
|
|
2152
|
+
var ka = ot, ja = Se, it = function(e, t, r) {
|
|
2152
2153
|
for (var n = e, o; (o = n.next) != null; n = o)
|
|
2153
2154
|
if (o.key === t)
|
|
2154
2155
|
return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2155
2156
|
e.next, e.next = o), o;
|
|
2156
|
-
},
|
|
2157
|
+
}, qa = function(e, t) {
|
|
2157
2158
|
if (e) {
|
|
2158
|
-
var r =
|
|
2159
|
+
var r = it(e, t);
|
|
2159
2160
|
return r && r.value;
|
|
2160
2161
|
}
|
|
2161
|
-
},
|
|
2162
|
-
var n =
|
|
2162
|
+
}, za = function(e, t, r) {
|
|
2163
|
+
var n = it(e, t);
|
|
2163
2164
|
n ? n.value = r : e.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2164
2165
|
{
|
|
2165
2166
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -2167,31 +2168,31 @@ var ja = it, qa = Se, at = function(e, t, r) {
|
|
|
2167
2168
|
next: e.next,
|
|
2168
2169
|
value: r
|
|
2169
2170
|
};
|
|
2171
|
+
}, Ha = function(e, t) {
|
|
2172
|
+
return e ? !!it(e, t) : !1;
|
|
2170
2173
|
}, Wa = function(e, t) {
|
|
2171
|
-
return e ? !!at(e, t) : !1;
|
|
2172
|
-
}, Ja = function(e, t) {
|
|
2173
2174
|
if (e)
|
|
2174
|
-
return
|
|
2175
|
-
},
|
|
2175
|
+
return it(e, t, !0);
|
|
2176
|
+
}, Ja = function() {
|
|
2176
2177
|
var t, r = {
|
|
2177
2178
|
assert: function(n) {
|
|
2178
2179
|
if (!r.has(n))
|
|
2179
|
-
throw new
|
|
2180
|
+
throw new ja("Side channel does not contain " + ka(n));
|
|
2180
2181
|
},
|
|
2181
2182
|
delete: function(n) {
|
|
2182
|
-
var o = t && t.next, i =
|
|
2183
|
+
var o = t && t.next, i = Wa(t, n);
|
|
2183
2184
|
return i && o && o === i && (t = void 0), !!i;
|
|
2184
2185
|
},
|
|
2185
2186
|
get: function(n) {
|
|
2186
|
-
return
|
|
2187
|
+
return qa(t, n);
|
|
2187
2188
|
},
|
|
2188
2189
|
has: function(n) {
|
|
2189
|
-
return
|
|
2190
|
+
return Ha(t, n);
|
|
2190
2191
|
},
|
|
2191
2192
|
set: function(n, o) {
|
|
2192
2193
|
t || (t = {
|
|
2193
2194
|
next: void 0
|
|
2194
|
-
}),
|
|
2195
|
+
}), za(
|
|
2195
2196
|
/** @type {NonNullable<typeof $o>} */
|
|
2196
2197
|
t,
|
|
2197
2198
|
n,
|
|
@@ -2200,26 +2201,26 @@ var ja = it, qa = Se, at = function(e, t, r) {
|
|
|
2200
2201
|
}
|
|
2201
2202
|
};
|
|
2202
2203
|
return r;
|
|
2203
|
-
}, kn = Object, Ga = Error,
|
|
2204
|
+
}, kn = Object, Ga = Error, Za = EvalError, Va = RangeError, Ka = ReferenceError, Qa = SyntaxError, Xa = URIError, Ya = Math.abs, es = Math.floor, ts = Math.max, rs = Math.min, ns = Math.pow, os = Math.round, is = Number.isNaN || function(t) {
|
|
2204
2205
|
return t !== t;
|
|
2205
|
-
},
|
|
2206
|
-
return
|
|
2207
|
-
},
|
|
2208
|
-
if (
|
|
2206
|
+
}, as = is, ss = function(t) {
|
|
2207
|
+
return as(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2208
|
+
}, cs = Object.getOwnPropertyDescriptor, We = cs;
|
|
2209
|
+
if (We)
|
|
2209
2210
|
try {
|
|
2210
|
-
|
|
2211
|
+
We([], "length");
|
|
2211
2212
|
} catch {
|
|
2212
|
-
|
|
2213
|
+
We = null;
|
|
2213
2214
|
}
|
|
2214
|
-
var jn =
|
|
2215
|
-
if (
|
|
2215
|
+
var jn = We, Je = Object.defineProperty || !1;
|
|
2216
|
+
if (Je)
|
|
2216
2217
|
try {
|
|
2217
|
-
|
|
2218
|
+
Je({}, "a", { value: 1 });
|
|
2218
2219
|
} catch {
|
|
2219
|
-
|
|
2220
|
+
Je = !1;
|
|
2220
2221
|
}
|
|
2221
|
-
var
|
|
2222
|
-
function
|
|
2222
|
+
var ls = Je, gt, $r;
|
|
2223
|
+
function us() {
|
|
2223
2224
|
return $r || ($r = 1, gt = function() {
|
|
2224
2225
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2225
2226
|
return !1;
|
|
@@ -2249,10 +2250,10 @@ function fs() {
|
|
|
2249
2250
|
}), gt;
|
|
2250
2251
|
}
|
|
2251
2252
|
var vt, Lr;
|
|
2252
|
-
function
|
|
2253
|
+
function fs() {
|
|
2253
2254
|
if (Lr) return vt;
|
|
2254
2255
|
Lr = 1;
|
|
2255
|
-
var e = typeof Symbol < "u" && Symbol, t =
|
|
2256
|
+
var e = typeof Symbol < "u" && Symbol, t = us();
|
|
2256
2257
|
return vt = function() {
|
|
2257
2258
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
2258
2259
|
}, vt;
|
|
@@ -2268,25 +2269,25 @@ function zn() {
|
|
|
2268
2269
|
var e = kn;
|
|
2269
2270
|
return wt = e.getPrototypeOf || null, wt;
|
|
2270
2271
|
}
|
|
2271
|
-
var
|
|
2272
|
+
var ps = "Function.prototype.bind called on incompatible ", ds = Object.prototype.toString, ys = Math.max, ms = "[object Function]", Br = function(t, r) {
|
|
2272
2273
|
for (var n = [], o = 0; o < t.length; o += 1)
|
|
2273
2274
|
n[o] = t[o];
|
|
2274
2275
|
for (var i = 0; i < r.length; i += 1)
|
|
2275
2276
|
n[i + t.length] = r[i];
|
|
2276
2277
|
return n;
|
|
2277
|
-
},
|
|
2278
|
+
}, hs = function(t, r) {
|
|
2278
2279
|
for (var n = [], o = r, i = 0; o < t.length; o += 1, i += 1)
|
|
2279
2280
|
n[i] = t[o];
|
|
2280
2281
|
return n;
|
|
2281
|
-
},
|
|
2282
|
+
}, gs = function(e, t) {
|
|
2282
2283
|
for (var r = "", n = 0; n < e.length; n += 1)
|
|
2283
2284
|
r += e[n], n + 1 < e.length && (r += t);
|
|
2284
2285
|
return r;
|
|
2285
|
-
},
|
|
2286
|
+
}, vs = function(t) {
|
|
2286
2287
|
var r = this;
|
|
2287
|
-
if (typeof r != "function" ||
|
|
2288
|
-
throw new TypeError(
|
|
2289
|
-
for (var n =
|
|
2288
|
+
if (typeof r != "function" || ds.apply(r) !== ms)
|
|
2289
|
+
throw new TypeError(ps + r);
|
|
2290
|
+
for (var n = hs(arguments, 1), o, i = function() {
|
|
2290
2291
|
if (this instanceof o) {
|
|
2291
2292
|
var l = r.apply(
|
|
2292
2293
|
this,
|
|
@@ -2298,24 +2299,24 @@ var ds = "Function.prototype.bind called on incompatible ", ys = Object.prototyp
|
|
|
2298
2299
|
t,
|
|
2299
2300
|
Br(n, arguments)
|
|
2300
2301
|
);
|
|
2301
|
-
}, a =
|
|
2302
|
+
}, a = ys(0, r.length - n.length), s = [], c = 0; c < a; c++)
|
|
2302
2303
|
s[c] = "$" + c;
|
|
2303
|
-
if (o = Function("binder", "return function (" +
|
|
2304
|
+
if (o = Function("binder", "return function (" + gs(s, ",") + "){ return binder.apply(this,arguments); }")(i), r.prototype) {
|
|
2304
2305
|
var u = function() {
|
|
2305
2306
|
};
|
|
2306
2307
|
u.prototype = r.prototype, o.prototype = new u(), u.prototype = null;
|
|
2307
2308
|
}
|
|
2308
2309
|
return o;
|
|
2309
|
-
},
|
|
2310
|
+
}, Ss = vs, at = Function.prototype.bind || Ss, Yt = Function.prototype.call, bt, kr;
|
|
2310
2311
|
function Hn() {
|
|
2311
2312
|
return kr || (kr = 1, bt = Function.prototype.apply), bt;
|
|
2312
2313
|
}
|
|
2313
|
-
var
|
|
2314
|
+
var ws = typeof Reflect < "u" && Reflect && Reflect.apply, bs = at, Es = Hn(), Os = Yt, As = ws, Rs = As || bs.call(Os, Es), Ps = at, Ts = Se, Is = Yt, Cs = Rs, Wn = function(t) {
|
|
2314
2315
|
if (t.length < 1 || typeof t[0] != "function")
|
|
2315
|
-
throw new
|
|
2316
|
-
return
|
|
2316
|
+
throw new Ts("a function is required");
|
|
2317
|
+
return Cs(Ps, Is, t);
|
|
2317
2318
|
}, Et, jr;
|
|
2318
|
-
function
|
|
2319
|
+
function Ns() {
|
|
2319
2320
|
if (jr) return Et;
|
|
2320
2321
|
jr = 1;
|
|
2321
2322
|
var e = Wn, t = jn, r;
|
|
@@ -2339,10 +2340,10 @@ function xs() {
|
|
|
2339
2340
|
) : !1, Et;
|
|
2340
2341
|
}
|
|
2341
2342
|
var Ot, qr;
|
|
2342
|
-
function
|
|
2343
|
+
function xs() {
|
|
2343
2344
|
if (qr) return Ot;
|
|
2344
2345
|
qr = 1;
|
|
2345
|
-
var e = qn(), t = zn(), r =
|
|
2346
|
+
var e = qn(), t = zn(), r = Ns();
|
|
2346
2347
|
return Ot = e ? function(o) {
|
|
2347
2348
|
return e(o);
|
|
2348
2349
|
} : t ? function(o) {
|
|
@@ -2354,18 +2355,18 @@ function _s() {
|
|
|
2354
2355
|
} : null, Ot;
|
|
2355
2356
|
}
|
|
2356
2357
|
var At, zr;
|
|
2357
|
-
function
|
|
2358
|
+
function _s() {
|
|
2358
2359
|
if (zr) return At;
|
|
2359
2360
|
zr = 1;
|
|
2360
|
-
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r =
|
|
2361
|
+
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = at;
|
|
2361
2362
|
return At = r.call(e, t), At;
|
|
2362
2363
|
}
|
|
2363
|
-
var w,
|
|
2364
|
+
var w, Fs = kn, Ds = Ga, $s = Za, Ls = Va, Us = Ka, he = Qa, pe = Se, Ms = Xa, Bs = Ya, ks = es, js = ts, qs = rs, zs = ns, Hs = os, Ws = ss, Jn = Function, Rt = function(e) {
|
|
2364
2365
|
try {
|
|
2365
2366
|
return Jn('"use strict"; return (' + e + ").constructor;")();
|
|
2366
2367
|
} catch {
|
|
2367
2368
|
}
|
|
2368
|
-
}, Ie = jn,
|
|
2369
|
+
}, Ie = jn, Js = ls, Pt = function() {
|
|
2369
2370
|
throw new pe();
|
|
2370
2371
|
}, Gs = Ie ? function() {
|
|
2371
2372
|
try {
|
|
@@ -2377,7 +2378,7 @@ var w, Ds = kn, $s = Ga, Ls = Va, Us = Ka, Ms = Qa, he = Xa, pe = Se, Bs = Ya, k
|
|
|
2377
2378
|
return Pt;
|
|
2378
2379
|
}
|
|
2379
2380
|
}
|
|
2380
|
-
}() : Pt, le =
|
|
2381
|
+
}() : Pt, le = fs()(), C = xs(), Zs = zn(), Vs = qn(), Gn = Hn(), De = Yt, fe = {}, Ks = typeof Uint8Array > "u" || !C ? w : C(Uint8Array), ne = {
|
|
2381
2382
|
__proto__: null,
|
|
2382
2383
|
"%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
|
|
2383
2384
|
"%Array%": Array,
|
|
@@ -2399,10 +2400,10 @@ var w, Ds = kn, $s = Ga, Ls = Va, Us = Ka, Ms = Qa, he = Xa, pe = Se, Bs = Ya, k
|
|
|
2399
2400
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2400
2401
|
"%encodeURI%": encodeURI,
|
|
2401
2402
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2402
|
-
"%Error%":
|
|
2403
|
+
"%Error%": Ds,
|
|
2403
2404
|
"%eval%": eval,
|
|
2404
2405
|
// eslint-disable-line no-eval
|
|
2405
|
-
"%EvalError%":
|
|
2406
|
+
"%EvalError%": $s,
|
|
2406
2407
|
"%Float16Array%": typeof Float16Array > "u" ? w : Float16Array,
|
|
2407
2408
|
"%Float32Array%": typeof Float32Array > "u" ? w : Float32Array,
|
|
2408
2409
|
"%Float64Array%": typeof Float64Array > "u" ? w : Float64Array,
|
|
@@ -2420,14 +2421,14 @@ var w, Ds = kn, $s = Ga, Ls = Va, Us = Ka, Ms = Qa, he = Xa, pe = Se, Bs = Ya, k
|
|
|
2420
2421
|
"%MapIteratorPrototype%": typeof Map > "u" || !le || !C ? w : C((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2421
2422
|
"%Math%": Math,
|
|
2422
2423
|
"%Number%": Number,
|
|
2423
|
-
"%Object%":
|
|
2424
|
+
"%Object%": Fs,
|
|
2424
2425
|
"%Object.getOwnPropertyDescriptor%": Ie,
|
|
2425
2426
|
"%parseFloat%": parseFloat,
|
|
2426
2427
|
"%parseInt%": parseInt,
|
|
2427
2428
|
"%Promise%": typeof Promise > "u" ? w : Promise,
|
|
2428
2429
|
"%Proxy%": typeof Proxy > "u" ? w : Proxy,
|
|
2429
|
-
"%RangeError%":
|
|
2430
|
-
"%ReferenceError%":
|
|
2430
|
+
"%RangeError%": Ls,
|
|
2431
|
+
"%ReferenceError%": Us,
|
|
2431
2432
|
"%Reflect%": typeof Reflect > "u" ? w : Reflect,
|
|
2432
2433
|
"%RegExp%": RegExp,
|
|
2433
2434
|
"%Set%": typeof Set > "u" ? w : Set,
|
|
@@ -2438,37 +2439,37 @@ var w, Ds = kn, $s = Ga, Ls = Va, Us = Ka, Ms = Qa, he = Xa, pe = Se, Bs = Ya, k
|
|
|
2438
2439
|
"%Symbol%": le ? Symbol : w,
|
|
2439
2440
|
"%SyntaxError%": he,
|
|
2440
2441
|
"%ThrowTypeError%": Gs,
|
|
2441
|
-
"%TypedArray%":
|
|
2442
|
+
"%TypedArray%": Ks,
|
|
2442
2443
|
"%TypeError%": pe,
|
|
2443
2444
|
"%Uint8Array%": typeof Uint8Array > "u" ? w : Uint8Array,
|
|
2444
2445
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? w : Uint8ClampedArray,
|
|
2445
2446
|
"%Uint16Array%": typeof Uint16Array > "u" ? w : Uint16Array,
|
|
2446
2447
|
"%Uint32Array%": typeof Uint32Array > "u" ? w : Uint32Array,
|
|
2447
|
-
"%URIError%":
|
|
2448
|
+
"%URIError%": Ms,
|
|
2448
2449
|
"%WeakMap%": typeof WeakMap > "u" ? w : WeakMap,
|
|
2449
2450
|
"%WeakRef%": typeof WeakRef > "u" ? w : WeakRef,
|
|
2450
2451
|
"%WeakSet%": typeof WeakSet > "u" ? w : WeakSet,
|
|
2451
2452
|
"%Function.prototype.call%": De,
|
|
2452
|
-
"%Function.prototype.apply%":
|
|
2453
|
-
"%Object.defineProperty%":
|
|
2454
|
-
"%Object.getPrototypeOf%":
|
|
2455
|
-
"%Math.abs%":
|
|
2456
|
-
"%Math.floor%":
|
|
2457
|
-
"%Math.max%":
|
|
2458
|
-
"%Math.min%":
|
|
2459
|
-
"%Math.pow%":
|
|
2460
|
-
"%Math.round%":
|
|
2461
|
-
"%Math.sign%":
|
|
2462
|
-
"%Reflect.getPrototypeOf%":
|
|
2453
|
+
"%Function.prototype.apply%": Gn,
|
|
2454
|
+
"%Object.defineProperty%": Js,
|
|
2455
|
+
"%Object.getPrototypeOf%": Zs,
|
|
2456
|
+
"%Math.abs%": Bs,
|
|
2457
|
+
"%Math.floor%": ks,
|
|
2458
|
+
"%Math.max%": js,
|
|
2459
|
+
"%Math.min%": qs,
|
|
2460
|
+
"%Math.pow%": zs,
|
|
2461
|
+
"%Math.round%": Hs,
|
|
2462
|
+
"%Math.sign%": Ws,
|
|
2463
|
+
"%Reflect.getPrototypeOf%": Vs
|
|
2463
2464
|
};
|
|
2464
2465
|
if (C)
|
|
2465
2466
|
try {
|
|
2466
2467
|
null.error;
|
|
2467
2468
|
} catch (e) {
|
|
2468
|
-
var
|
|
2469
|
-
ne["%Error.prototype%"] =
|
|
2469
|
+
var Qs = C(C(e));
|
|
2470
|
+
ne["%Error.prototype%"] = Qs;
|
|
2470
2471
|
}
|
|
2471
|
-
var
|
|
2472
|
+
var Xs = function e(t) {
|
|
2472
2473
|
var r;
|
|
2473
2474
|
if (t === "%AsyncFunction%")
|
|
2474
2475
|
r = Rt("async function () {}");
|
|
@@ -2537,21 +2538,21 @@ var Ys = function e(t) {
|
|
|
2537
2538
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2538
2539
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2539
2540
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2540
|
-
}, $e =
|
|
2541
|
-
var r =
|
|
2541
|
+
}, $e = at, Qe = _s(), Ys = $e.call(De, Array.prototype.concat), ec = $e.call(Gn, Array.prototype.splice), Wr = $e.call(De, String.prototype.replace), Xe = $e.call(De, String.prototype.slice), tc = $e.call(De, RegExp.prototype.exec), rc = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, nc = /\\(\\)?/g, oc = function(t) {
|
|
2542
|
+
var r = Xe(t, 0, 1), n = Xe(t, -1);
|
|
2542
2543
|
if (r === "%" && n !== "%")
|
|
2543
2544
|
throw new he("invalid intrinsic syntax, expected closing `%`");
|
|
2544
2545
|
if (n === "%" && r !== "%")
|
|
2545
2546
|
throw new he("invalid intrinsic syntax, expected opening `%`");
|
|
2546
2547
|
var o = [];
|
|
2547
|
-
return Wr(t,
|
|
2548
|
-
o[o.length] = s ? Wr(c,
|
|
2548
|
+
return Wr(t, rc, function(i, a, s, c) {
|
|
2549
|
+
o[o.length] = s ? Wr(c, nc, "$1") : a || i;
|
|
2549
2550
|
}), o;
|
|
2550
|
-
},
|
|
2551
|
+
}, ic = function(t, r) {
|
|
2551
2552
|
var n = t, o;
|
|
2552
|
-
if (
|
|
2553
|
+
if (Qe(Hr, n) && (o = Hr[n], n = "%" + o[0] + "%"), Qe(ne, n)) {
|
|
2553
2554
|
var i = ne[n];
|
|
2554
|
-
if (i === fe && (i =
|
|
2555
|
+
if (i === fe && (i = Xs(n)), typeof i > "u" && !r)
|
|
2555
2556
|
throw new pe("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
2556
2557
|
return {
|
|
2557
2558
|
alias: o,
|
|
@@ -2565,15 +2566,15 @@ var Ys = function e(t) {
|
|
|
2565
2566
|
throw new pe("intrinsic name must be a non-empty string");
|
|
2566
2567
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
2567
2568
|
throw new pe('"allowMissing" argument must be a boolean');
|
|
2568
|
-
if (
|
|
2569
|
+
if (tc(/^%?[^%]*%?$/, t) === null)
|
|
2569
2570
|
throw new he("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2570
|
-
var n =
|
|
2571
|
-
u && (o = u[0],
|
|
2571
|
+
var n = oc(t), o = n.length > 0 ? n[0] : "", i = ic("%" + o + "%", r), a = i.name, s = i.value, c = !1, u = i.alias;
|
|
2572
|
+
u && (o = u[0], ec(n, Ys([0, 1], u)));
|
|
2572
2573
|
for (var l = 1, p = !0; l < n.length; l += 1) {
|
|
2573
|
-
var y = n[l], v =
|
|
2574
|
+
var y = n[l], v = Xe(y, 0, 1), d = Xe(y, -1);
|
|
2574
2575
|
if ((v === '"' || v === "'" || v === "`" || d === '"' || d === "'" || d === "`") && v !== d)
|
|
2575
2576
|
throw new he("property names with quotes must have matching quotes");
|
|
2576
|
-
if ((y === "constructor" || !p) && (c = !0), o += "." + y, a = "%" + o + "%",
|
|
2577
|
+
if ((y === "constructor" || !p) && (c = !0), o += "." + y, a = "%" + o + "%", Qe(ne, a))
|
|
2577
2578
|
s = ne[a];
|
|
2578
2579
|
else if (s != null) {
|
|
2579
2580
|
if (!(y in s)) {
|
|
@@ -2585,79 +2586,79 @@ var Ys = function e(t) {
|
|
|
2585
2586
|
var h = Ie(s, y);
|
|
2586
2587
|
p = !!h, p && "get" in h && !("originalValue" in h.get) ? s = h.get : s = s[y];
|
|
2587
2588
|
} else
|
|
2588
|
-
p =
|
|
2589
|
+
p = Qe(s, y), s = s[y];
|
|
2589
2590
|
p && !c && (ne[a] = s);
|
|
2590
2591
|
}
|
|
2591
2592
|
}
|
|
2592
2593
|
return s;
|
|
2593
|
-
},
|
|
2594
|
+
}, Zn = er, Vn = Wn, ac = Vn([Zn("%String.prototype.indexOf%")]), Kn = function(t, r) {
|
|
2594
2595
|
var n = (
|
|
2595
2596
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2596
|
-
|
|
2597
|
+
Zn(t, !!r)
|
|
2597
2598
|
);
|
|
2598
|
-
return typeof n == "function" &&
|
|
2599
|
+
return typeof n == "function" && ac(t, ".prototype.") > -1 ? Vn(
|
|
2599
2600
|
/** @type {const} */
|
|
2600
2601
|
[n]
|
|
2601
2602
|
) : n;
|
|
2602
|
-
},
|
|
2603
|
+
}, sc = er, Le = Kn, cc = ot, lc = Se, Jr = sc("%Map%", !0), uc = Le("Map.prototype.get", !0), fc = Le("Map.prototype.set", !0), pc = Le("Map.prototype.has", !0), dc = Le("Map.prototype.delete", !0), yc = Le("Map.prototype.size", !0), Qn = !!Jr && /** @type {Exclude<import('.'), false>} */
|
|
2603
2604
|
function() {
|
|
2604
2605
|
var t, r = {
|
|
2605
2606
|
assert: function(n) {
|
|
2606
2607
|
if (!r.has(n))
|
|
2607
|
-
throw new
|
|
2608
|
+
throw new lc("Side channel does not contain " + cc(n));
|
|
2608
2609
|
},
|
|
2609
2610
|
delete: function(n) {
|
|
2610
2611
|
if (t) {
|
|
2611
|
-
var o =
|
|
2612
|
-
return
|
|
2612
|
+
var o = dc(t, n);
|
|
2613
|
+
return yc(t) === 0 && (t = void 0), o;
|
|
2613
2614
|
}
|
|
2614
2615
|
return !1;
|
|
2615
2616
|
},
|
|
2616
2617
|
get: function(n) {
|
|
2617
2618
|
if (t)
|
|
2618
|
-
return
|
|
2619
|
+
return uc(t, n);
|
|
2619
2620
|
},
|
|
2620
2621
|
has: function(n) {
|
|
2621
|
-
return t ?
|
|
2622
|
+
return t ? pc(t, n) : !1;
|
|
2622
2623
|
},
|
|
2623
2624
|
set: function(n, o) {
|
|
2624
|
-
t || (t = new Jr()),
|
|
2625
|
+
t || (t = new Jr()), fc(t, n, o);
|
|
2625
2626
|
}
|
|
2626
2627
|
};
|
|
2627
2628
|
return r;
|
|
2628
|
-
},
|
|
2629
|
+
}, mc = er, st = Kn, hc = ot, ke = Qn, gc = Se, ue = mc("%WeakMap%", !0), vc = st("WeakMap.prototype.get", !0), Sc = st("WeakMap.prototype.set", !0), wc = st("WeakMap.prototype.has", !0), bc = st("WeakMap.prototype.delete", !0), Ec = ue ? (
|
|
2629
2630
|
/** @type {Exclude<import('.'), false>} */
|
|
2630
2631
|
function() {
|
|
2631
2632
|
var t, r, n = {
|
|
2632
2633
|
assert: function(o) {
|
|
2633
2634
|
if (!n.has(o))
|
|
2634
|
-
throw new
|
|
2635
|
+
throw new gc("Side channel does not contain " + hc(o));
|
|
2635
2636
|
},
|
|
2636
2637
|
delete: function(o) {
|
|
2637
2638
|
if (ue && o && (typeof o == "object" || typeof o == "function")) {
|
|
2638
2639
|
if (t)
|
|
2639
|
-
return
|
|
2640
|
-
} else if (
|
|
2640
|
+
return bc(t, o);
|
|
2641
|
+
} else if (ke && r)
|
|
2641
2642
|
return r.delete(o);
|
|
2642
2643
|
return !1;
|
|
2643
2644
|
},
|
|
2644
2645
|
get: function(o) {
|
|
2645
|
-
return ue && o && (typeof o == "object" || typeof o == "function") && t ?
|
|
2646
|
+
return ue && o && (typeof o == "object" || typeof o == "function") && t ? vc(t, o) : r && r.get(o);
|
|
2646
2647
|
},
|
|
2647
2648
|
has: function(o) {
|
|
2648
|
-
return ue && o && (typeof o == "object" || typeof o == "function") && t ?
|
|
2649
|
+
return ue && o && (typeof o == "object" || typeof o == "function") && t ? wc(t, o) : !!r && r.has(o);
|
|
2649
2650
|
},
|
|
2650
2651
|
set: function(o, i) {
|
|
2651
|
-
ue && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new ue()),
|
|
2652
|
+
ue && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new ue()), Sc(t, o, i)) : ke && (r || (r = ke()), r.set(o, i));
|
|
2652
2653
|
}
|
|
2653
2654
|
};
|
|
2654
2655
|
return n;
|
|
2655
2656
|
}
|
|
2656
|
-
) :
|
|
2657
|
+
) : ke, Oc = Se, Ac = ot, Rc = Ja, Pc = Qn, Tc = Ec, Ic = Tc || Pc || Rc, Cc = function() {
|
|
2657
2658
|
var t, r = {
|
|
2658
2659
|
assert: function(n) {
|
|
2659
2660
|
if (!r.has(n))
|
|
2660
|
-
throw new
|
|
2661
|
+
throw new Oc("Side channel does not contain " + Ac(n));
|
|
2661
2662
|
},
|
|
2662
2663
|
delete: function(n) {
|
|
2663
2664
|
return !!t && t.delete(n);
|
|
@@ -2669,18 +2670,18 @@ function() {
|
|
|
2669
2670
|
return !!t && t.has(n);
|
|
2670
2671
|
},
|
|
2671
2672
|
set: function(n, o) {
|
|
2672
|
-
t || (t =
|
|
2673
|
+
t || (t = Ic()), t.set(n, o);
|
|
2673
2674
|
}
|
|
2674
2675
|
};
|
|
2675
2676
|
return r;
|
|
2676
|
-
},
|
|
2677
|
+
}, Nc = String.prototype.replace, xc = /%20/g, Tt = {
|
|
2677
2678
|
RFC1738: "RFC1738",
|
|
2678
2679
|
RFC3986: "RFC3986"
|
|
2679
2680
|
}, tr = {
|
|
2680
2681
|
default: Tt.RFC3986,
|
|
2681
2682
|
formatters: {
|
|
2682
2683
|
RFC1738: function(e) {
|
|
2683
|
-
return
|
|
2684
|
+
return Nc.call(e, xc, "+");
|
|
2684
2685
|
},
|
|
2685
2686
|
RFC3986: function(e) {
|
|
2686
2687
|
return String(e);
|
|
@@ -2688,11 +2689,11 @@ function() {
|
|
|
2688
2689
|
},
|
|
2689
2690
|
RFC1738: Tt.RFC1738,
|
|
2690
2691
|
RFC3986: Tt.RFC3986
|
|
2691
|
-
},
|
|
2692
|
+
}, _c = tr, It = Object.prototype.hasOwnProperty, ee = Array.isArray, H = function() {
|
|
2692
2693
|
for (var e = [], t = 0; t < 256; ++t)
|
|
2693
2694
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
2694
2695
|
return e;
|
|
2695
|
-
}(),
|
|
2696
|
+
}(), Fc = function(t) {
|
|
2696
2697
|
for (; t.length > 1; ) {
|
|
2697
2698
|
var r = t.pop(), n = r.obj[r.prop];
|
|
2698
2699
|
if (ee(n)) {
|
|
@@ -2705,7 +2706,7 @@ function() {
|
|
|
2705
2706
|
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < t.length; ++o)
|
|
2706
2707
|
typeof t[o] < "u" && (n[o] = t[o]);
|
|
2707
2708
|
return n;
|
|
2708
|
-
},
|
|
2709
|
+
}, Dc = function e(t, r, n) {
|
|
2709
2710
|
if (!r)
|
|
2710
2711
|
return t;
|
|
2711
2712
|
if (typeof r != "object" && typeof r != "function") {
|
|
@@ -2730,11 +2731,11 @@ function() {
|
|
|
2730
2731
|
var s = r[a];
|
|
2731
2732
|
return It.call(i, a) ? i[a] = e(i[a], s, n) : i[a] = s, i;
|
|
2732
2733
|
}, o);
|
|
2733
|
-
},
|
|
2734
|
+
}, $c = function(t, r) {
|
|
2734
2735
|
return Object.keys(r).reduce(function(n, o) {
|
|
2735
2736
|
return n[o] = r[o], n;
|
|
2736
2737
|
}, t);
|
|
2737
|
-
},
|
|
2738
|
+
}, Lc = function(e, t, r) {
|
|
2738
2739
|
var n = e.replace(/\+/g, " ");
|
|
2739
2740
|
if (r === "iso-8859-1")
|
|
2740
2741
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -2743,7 +2744,7 @@ function() {
|
|
|
2743
2744
|
} catch {
|
|
2744
2745
|
return n;
|
|
2745
2746
|
}
|
|
2746
|
-
}, Ct = 1024,
|
|
2747
|
+
}, Ct = 1024, Uc = function(t, r, n, o, i) {
|
|
2747
2748
|
if (t.length === 0)
|
|
2748
2749
|
return t;
|
|
2749
2750
|
var a = t;
|
|
@@ -2754,41 +2755,41 @@ function() {
|
|
|
2754
2755
|
for (var s = "", c = 0; c < a.length; c += Ct) {
|
|
2755
2756
|
for (var u = a.length >= Ct ? a.slice(c, c + Ct) : a, l = [], p = 0; p < u.length; ++p) {
|
|
2756
2757
|
var y = u.charCodeAt(p);
|
|
2757
|
-
if (y === 45 || y === 46 || y === 95 || y === 126 || y >= 48 && y <= 57 || y >= 65 && y <= 90 || y >= 97 && y <= 122 || i ===
|
|
2758
|
+
if (y === 45 || y === 46 || y === 95 || y === 126 || y >= 48 && y <= 57 || y >= 65 && y <= 90 || y >= 97 && y <= 122 || i === _c.RFC1738 && (y === 40 || y === 41)) {
|
|
2758
2759
|
l[l.length] = u.charAt(p);
|
|
2759
2760
|
continue;
|
|
2760
2761
|
}
|
|
2761
2762
|
if (y < 128) {
|
|
2762
|
-
l[l.length] =
|
|
2763
|
+
l[l.length] = H[y];
|
|
2763
2764
|
continue;
|
|
2764
2765
|
}
|
|
2765
2766
|
if (y < 2048) {
|
|
2766
|
-
l[l.length] =
|
|
2767
|
+
l[l.length] = H[192 | y >> 6] + H[128 | y & 63];
|
|
2767
2768
|
continue;
|
|
2768
2769
|
}
|
|
2769
2770
|
if (y < 55296 || y >= 57344) {
|
|
2770
|
-
l[l.length] =
|
|
2771
|
+
l[l.length] = H[224 | y >> 12] + H[128 | y >> 6 & 63] + H[128 | y & 63];
|
|
2771
2772
|
continue;
|
|
2772
2773
|
}
|
|
2773
|
-
p += 1, y = 65536 + ((y & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] =
|
|
2774
|
+
p += 1, y = 65536 + ((y & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] = H[240 | y >> 18] + H[128 | y >> 12 & 63] + H[128 | y >> 6 & 63] + H[128 | y & 63];
|
|
2774
2775
|
}
|
|
2775
2776
|
s += l.join("");
|
|
2776
2777
|
}
|
|
2777
2778
|
return s;
|
|
2778
|
-
},
|
|
2779
|
+
}, Mc = function(t) {
|
|
2779
2780
|
for (var r = [{ obj: { o: t }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
|
|
2780
2781
|
for (var i = r[o], a = i.obj[i.prop], s = Object.keys(a), c = 0; c < s.length; ++c) {
|
|
2781
2782
|
var u = s[c], l = a[u];
|
|
2782
2783
|
typeof l == "object" && l !== null && n.indexOf(l) === -1 && (r.push({ obj: a, prop: u }), n.push(l));
|
|
2783
2784
|
}
|
|
2784
|
-
return
|
|
2785
|
-
},
|
|
2785
|
+
return Fc(r), t;
|
|
2786
|
+
}, Bc = function(t) {
|
|
2786
2787
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
2787
|
-
},
|
|
2788
|
+
}, kc = function(t) {
|
|
2788
2789
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
2789
|
-
},
|
|
2790
|
+
}, jc = function(t, r) {
|
|
2790
2791
|
return [].concat(t, r);
|
|
2791
|
-
},
|
|
2792
|
+
}, qc = function(t, r) {
|
|
2792
2793
|
if (ee(t)) {
|
|
2793
2794
|
for (var n = [], o = 0; o < t.length; o += 1)
|
|
2794
2795
|
n.push(r(t[o]));
|
|
@@ -2797,16 +2798,16 @@ function() {
|
|
|
2797
2798
|
return r(t);
|
|
2798
2799
|
}, Yn = {
|
|
2799
2800
|
arrayToObject: Xn,
|
|
2800
|
-
assign:
|
|
2801
|
-
combine:
|
|
2802
|
-
compact:
|
|
2803
|
-
decode:
|
|
2804
|
-
encode:
|
|
2805
|
-
isBuffer:
|
|
2806
|
-
isRegExp:
|
|
2807
|
-
maybeMap:
|
|
2808
|
-
merge:
|
|
2809
|
-
}, eo =
|
|
2801
|
+
assign: $c,
|
|
2802
|
+
combine: jc,
|
|
2803
|
+
compact: Mc,
|
|
2804
|
+
decode: Lc,
|
|
2805
|
+
encode: Uc,
|
|
2806
|
+
isBuffer: kc,
|
|
2807
|
+
isRegExp: Bc,
|
|
2808
|
+
maybeMap: qc,
|
|
2809
|
+
merge: Dc
|
|
2810
|
+
}, eo = Cc, Ge = Yn, Te = tr, zc = Object.prototype.hasOwnProperty, to = {
|
|
2810
2811
|
brackets: function(t) {
|
|
2811
2812
|
return t + "[]";
|
|
2812
2813
|
},
|
|
@@ -2817,9 +2818,9 @@ function() {
|
|
|
2817
2818
|
repeat: function(t) {
|
|
2818
2819
|
return t;
|
|
2819
2820
|
}
|
|
2820
|
-
},
|
|
2821
|
-
|
|
2822
|
-
},
|
|
2821
|
+
}, W = Array.isArray, Hc = Array.prototype.push, ro = function(e, t) {
|
|
2822
|
+
Hc.apply(e, W(t) ? t : [t]);
|
|
2823
|
+
}, Wc = Date.prototype.toISOString, Gr = Te.default, I = {
|
|
2823
2824
|
addQueryPrefix: !1,
|
|
2824
2825
|
allowDots: !1,
|
|
2825
2826
|
allowEmptyArrays: !1,
|
|
@@ -2833,16 +2834,16 @@ function() {
|
|
|
2833
2834
|
encoder: Ge.encode,
|
|
2834
2835
|
encodeValuesOnly: !1,
|
|
2835
2836
|
filter: void 0,
|
|
2836
|
-
format:
|
|
2837
|
-
formatter: Te.formatters[
|
|
2837
|
+
format: Gr,
|
|
2838
|
+
formatter: Te.formatters[Gr],
|
|
2838
2839
|
// deprecated
|
|
2839
2840
|
indices: !1,
|
|
2840
2841
|
serializeDate: function(t) {
|
|
2841
|
-
return
|
|
2842
|
+
return Wc.call(t);
|
|
2842
2843
|
},
|
|
2843
2844
|
skipNulls: !1,
|
|
2844
2845
|
strictNullHandling: !1
|
|
2845
|
-
},
|
|
2846
|
+
}, Jc = function(t) {
|
|
2846
2847
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
2847
2848
|
}, Nt = {}, Gc = function e(t, r, n, o, i, a, s, c, u, l, p, y, v, d, h, m, b, O) {
|
|
2848
2849
|
for (var g = t, E = O, P = 0, L = !1; (E = E.get(Nt)) !== void 0 && !L; ) {
|
|
@@ -2854,14 +2855,14 @@ function() {
|
|
|
2854
2855
|
}
|
|
2855
2856
|
typeof E.get(Nt) > "u" && (P = 0);
|
|
2856
2857
|
}
|
|
2857
|
-
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" &&
|
|
2858
|
+
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" && W(g) && (g = Ge.maybeMap(g, function(be) {
|
|
2858
2859
|
return be instanceof Date ? v(be) : be;
|
|
2859
2860
|
})), g === null) {
|
|
2860
2861
|
if (a)
|
|
2861
2862
|
return u && !m ? u(r, I.encoder, b, "key", d) : r;
|
|
2862
2863
|
g = "";
|
|
2863
2864
|
}
|
|
2864
|
-
if (
|
|
2865
|
+
if (Jc(g) || Ge.isBuffer(g)) {
|
|
2865
2866
|
if (u) {
|
|
2866
2867
|
var V = m ? r : u(r, I.encoder, b, "key", d);
|
|
2867
2868
|
return [h(V) + "=" + h(u(g, I.encoder, b, "value", d))];
|
|
@@ -2872,33 +2873,33 @@ function() {
|
|
|
2872
2873
|
if (typeof g > "u")
|
|
2873
2874
|
return U;
|
|
2874
2875
|
var B;
|
|
2875
|
-
if (n === "comma" &&
|
|
2876
|
+
if (n === "comma" && W(g))
|
|
2876
2877
|
m && u && (g = Ge.maybeMap(g, u)), B = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2877
|
-
else if (
|
|
2878
|
+
else if (W(l))
|
|
2878
2879
|
B = l;
|
|
2879
2880
|
else {
|
|
2880
2881
|
var Y = Object.keys(g);
|
|
2881
2882
|
B = p ? Y.sort(p) : Y;
|
|
2882
2883
|
}
|
|
2883
|
-
var k = c ? String(r).replace(/\./g, "%2E") : String(r), N = o &&
|
|
2884
|
-
if (i &&
|
|
2884
|
+
var k = c ? String(r).replace(/\./g, "%2E") : String(r), N = o && W(g) && g.length === 1 ? k + "[]" : k;
|
|
2885
|
+
if (i && W(g) && g.length === 0)
|
|
2885
2886
|
return N + "[]";
|
|
2886
2887
|
for (var x = 0; x < B.length; ++x) {
|
|
2887
2888
|
var M = B[x], _ = typeof M == "object" && M && typeof M.value < "u" ? M.value : g[M];
|
|
2888
2889
|
if (!(s && _ === null)) {
|
|
2889
|
-
var se = y && c ? String(M).replace(/\./g, "%2E") : String(M),
|
|
2890
|
+
var se = y && c ? String(M).replace(/\./g, "%2E") : String(M), q = W(g) ? typeof n == "function" ? n(N, se) : N : N + (y ? "." + se : "[" + se + "]");
|
|
2890
2891
|
O.set(t, P);
|
|
2891
2892
|
var we = eo();
|
|
2892
2893
|
we.set(Nt, O), ro(U, e(
|
|
2893
2894
|
_,
|
|
2894
|
-
|
|
2895
|
+
q,
|
|
2895
2896
|
n,
|
|
2896
2897
|
o,
|
|
2897
2898
|
i,
|
|
2898
2899
|
a,
|
|
2899
2900
|
s,
|
|
2900
2901
|
c,
|
|
2901
|
-
n === "comma" && m &&
|
|
2902
|
+
n === "comma" && m && W(g) ? null : u,
|
|
2902
2903
|
l,
|
|
2903
2904
|
p,
|
|
2904
2905
|
y,
|
|
@@ -2912,7 +2913,7 @@ function() {
|
|
|
2912
2913
|
}
|
|
2913
2914
|
}
|
|
2914
2915
|
return U;
|
|
2915
|
-
},
|
|
2916
|
+
}, Zc = function(t) {
|
|
2916
2917
|
if (!t)
|
|
2917
2918
|
return I;
|
|
2918
2919
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -2926,12 +2927,12 @@ function() {
|
|
|
2926
2927
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2927
2928
|
var n = Te.default;
|
|
2928
2929
|
if (typeof t.format < "u") {
|
|
2929
|
-
if (!
|
|
2930
|
+
if (!zc.call(Te.formatters, t.format))
|
|
2930
2931
|
throw new TypeError("Unknown format option provided.");
|
|
2931
2932
|
n = t.format;
|
|
2932
2933
|
}
|
|
2933
2934
|
var o = Te.formatters[n], i = I.filter;
|
|
2934
|
-
(typeof t.filter == "function" ||
|
|
2935
|
+
(typeof t.filter == "function" || W(t.filter)) && (i = t.filter);
|
|
2935
2936
|
var a;
|
|
2936
2937
|
if (t.arrayFormat in to ? a = t.arrayFormat : "indices" in t ? a = t.indices ? "indices" : "repeat" : a = I.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
|
|
2937
2938
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -2957,9 +2958,9 @@ function() {
|
|
|
2957
2958
|
sort: typeof t.sort == "function" ? t.sort : null,
|
|
2958
2959
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : I.strictNullHandling
|
|
2959
2960
|
};
|
|
2960
|
-
},
|
|
2961
|
-
var r = e, n =
|
|
2962
|
-
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) :
|
|
2961
|
+
}, Vc = function(e, t) {
|
|
2962
|
+
var r = e, n = Zc(t), o, i;
|
|
2963
|
+
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : W(n.filter) && (i = n.filter, o = i);
|
|
2963
2964
|
var a = [];
|
|
2964
2965
|
if (typeof r != "object" || r === null)
|
|
2965
2966
|
return "";
|
|
@@ -2990,7 +2991,7 @@ function() {
|
|
|
2990
2991
|
}
|
|
2991
2992
|
var v = a.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
|
|
2992
2993
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), v.length > 0 ? d + v : "";
|
|
2993
|
-
}, ie = Yn, qt = Object.prototype.hasOwnProperty,
|
|
2994
|
+
}, ie = Yn, qt = Object.prototype.hasOwnProperty, Zr = Array.isArray, A = {
|
|
2994
2995
|
allowDots: !1,
|
|
2995
2996
|
allowEmptyArrays: !1,
|
|
2996
2997
|
allowPrototypes: !1,
|
|
@@ -3012,7 +3013,7 @@ function() {
|
|
|
3012
3013
|
strictDepth: !1,
|
|
3013
3014
|
strictNullHandling: !1,
|
|
3014
3015
|
throwOnLimitExceeded: !1
|
|
3015
|
-
},
|
|
3016
|
+
}, Kc = function(e) {
|
|
3016
3017
|
return e.replace(/&#(\d+);/g, function(t, r) {
|
|
3017
3018
|
return String.fromCharCode(parseInt(r, 10));
|
|
3018
3019
|
});
|
|
@@ -3022,7 +3023,7 @@ function() {
|
|
|
3022
3023
|
if (t.throwOnLimitExceeded && r >= t.arrayLimit)
|
|
3023
3024
|
throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3024
3025
|
return e;
|
|
3025
|
-
},
|
|
3026
|
+
}, Qc = "utf8=%26%2310003%3B", Xc = "utf8=%E2%9C%93", Yc = function(t, r) {
|
|
3026
3027
|
var n = { __proto__: null }, o = r.ignoreQueryPrefix ? t.replace(/^\?/, "") : t;
|
|
3027
3028
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3028
3029
|
var i = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, a = o.split(
|
|
@@ -3034,7 +3035,7 @@ function() {
|
|
|
3034
3035
|
var s = -1, c, u = r.charset;
|
|
3035
3036
|
if (r.charsetSentinel)
|
|
3036
3037
|
for (c = 0; c < a.length; ++c)
|
|
3037
|
-
a[c].indexOf("utf8=") === 0 && (a[c] ===
|
|
3038
|
+
a[c].indexOf("utf8=") === 0 && (a[c] === Xc ? u = "utf-8" : a[c] === Qc && (u = "iso-8859-1"), s = c, c = a.length);
|
|
3038
3039
|
for (c = 0; c < a.length; ++c)
|
|
3039
3040
|
if (c !== s) {
|
|
3040
3041
|
var l = a[c], p = l.indexOf("]="), y = p === -1 ? l.indexOf("=") : p + 1, v, d;
|
|
@@ -3042,17 +3043,17 @@ function() {
|
|
|
3042
3043
|
no(
|
|
3043
3044
|
l.slice(y + 1),
|
|
3044
3045
|
r,
|
|
3045
|
-
|
|
3046
|
+
Zr(n[v]) ? n[v].length : 0
|
|
3046
3047
|
),
|
|
3047
3048
|
function(m) {
|
|
3048
3049
|
return r.decoder(m, A.decoder, u, "value");
|
|
3049
3050
|
}
|
|
3050
|
-
)), d && r.interpretNumericEntities && u === "iso-8859-1" && (d =
|
|
3051
|
+
)), d && r.interpretNumericEntities && u === "iso-8859-1" && (d = Kc(String(d))), l.indexOf("[]=") > -1 && (d = Zr(d) ? [d] : d);
|
|
3051
3052
|
var h = qt.call(n, v);
|
|
3052
3053
|
h && r.duplicates === "combine" ? n[v] = ie.combine(n[v], d) : (!h || r.duplicates === "last") && (n[v] = d);
|
|
3053
3054
|
}
|
|
3054
3055
|
return n;
|
|
3055
|
-
},
|
|
3056
|
+
}, el = function(e, t, r, n) {
|
|
3056
3057
|
var o = 0;
|
|
3057
3058
|
if (e.length > 0 && e[e.length - 1] === "[]") {
|
|
3058
3059
|
var i = e.slice(0, -1).join("");
|
|
@@ -3070,7 +3071,7 @@ function() {
|
|
|
3070
3071
|
a = c;
|
|
3071
3072
|
}
|
|
3072
3073
|
return a;
|
|
3073
|
-
},
|
|
3074
|
+
}, tl = function(t, r, n, o) {
|
|
3074
3075
|
if (t) {
|
|
3075
3076
|
var i = n.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, a = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = n.depth > 0 && a.exec(i), u = c ? i.slice(0, c.index) : i, l = [];
|
|
3076
3077
|
if (u) {
|
|
@@ -3088,9 +3089,9 @@ function() {
|
|
|
3088
3089
|
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
3089
3090
|
l.push("[" + i.slice(c.index) + "]");
|
|
3090
3091
|
}
|
|
3091
|
-
return
|
|
3092
|
+
return el(l, r, n, o);
|
|
3092
3093
|
}
|
|
3093
|
-
},
|
|
3094
|
+
}, rl = function(t) {
|
|
3094
3095
|
if (!t)
|
|
3095
3096
|
return A;
|
|
3096
3097
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -3131,23 +3132,23 @@ function() {
|
|
|
3131
3132
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : A.strictNullHandling,
|
|
3132
3133
|
throwOnLimitExceeded: typeof t.throwOnLimitExceeded == "boolean" ? t.throwOnLimitExceeded : !1
|
|
3133
3134
|
};
|
|
3134
|
-
},
|
|
3135
|
-
var r =
|
|
3135
|
+
}, nl = function(e, t) {
|
|
3136
|
+
var r = rl(t);
|
|
3136
3137
|
if (e === "" || e === null || typeof e > "u")
|
|
3137
3138
|
return r.plainObjects ? { __proto__: null } : {};
|
|
3138
|
-
for (var n = typeof e == "string" ?
|
|
3139
|
-
var s = i[a], c =
|
|
3139
|
+
for (var n = typeof e == "string" ? Yc(e, r) : e, o = r.plainObjects ? { __proto__: null } : {}, i = Object.keys(n), a = 0; a < i.length; ++a) {
|
|
3140
|
+
var s = i[a], c = tl(s, n[s], r, typeof e == "string");
|
|
3140
3141
|
o = ie.merge(o, c, r);
|
|
3141
3142
|
}
|
|
3142
3143
|
return r.allowSparse === !0 ? o : ie.compact(o);
|
|
3143
|
-
},
|
|
3144
|
-
formats:
|
|
3145
|
-
parse:
|
|
3146
|
-
stringify:
|
|
3144
|
+
}, ol = Vc, il = nl, al = tr, sl = {
|
|
3145
|
+
formats: al,
|
|
3146
|
+
parse: il,
|
|
3147
|
+
stringify: ol
|
|
3147
3148
|
};
|
|
3148
|
-
const
|
|
3149
|
+
const cl = /* @__PURE__ */ sa(sl);
|
|
3149
3150
|
/*! js-cookie v3.0.5 | MIT */
|
|
3150
|
-
function
|
|
3151
|
+
function je(e) {
|
|
3151
3152
|
for (var t = 1; t < arguments.length; t++) {
|
|
3152
3153
|
var r = arguments[t];
|
|
3153
3154
|
for (var n in r)
|
|
@@ -3155,7 +3156,7 @@ function qe(e) {
|
|
|
3155
3156
|
}
|
|
3156
3157
|
return e;
|
|
3157
3158
|
}
|
|
3158
|
-
var
|
|
3159
|
+
var ll = {
|
|
3159
3160
|
read: function(e) {
|
|
3160
3161
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3161
3162
|
},
|
|
@@ -3169,7 +3170,7 @@ var ul = {
|
|
|
3169
3170
|
function zt(e, t) {
|
|
3170
3171
|
function r(o, i, a) {
|
|
3171
3172
|
if (!(typeof document > "u")) {
|
|
3172
|
-
a =
|
|
3173
|
+
a = je({}, t, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
3173
3174
|
var s = "";
|
|
3174
3175
|
for (var c in a)
|
|
3175
3176
|
a[c] && (s += "; " + c, a[c] !== !0 && (s += "=" + a[c].split(";")[0]));
|
|
@@ -3198,16 +3199,16 @@ function zt(e, t) {
|
|
|
3198
3199
|
r(
|
|
3199
3200
|
o,
|
|
3200
3201
|
"",
|
|
3201
|
-
|
|
3202
|
+
je({}, i, {
|
|
3202
3203
|
expires: -1
|
|
3203
3204
|
})
|
|
3204
3205
|
);
|
|
3205
3206
|
},
|
|
3206
3207
|
withAttributes: function(o) {
|
|
3207
|
-
return zt(this.converter,
|
|
3208
|
+
return zt(this.converter, je({}, this.attributes, o));
|
|
3208
3209
|
},
|
|
3209
3210
|
withConverter: function(o) {
|
|
3210
|
-
return zt(
|
|
3211
|
+
return zt(je({}, this.converter, o), this.attributes);
|
|
3211
3212
|
}
|
|
3212
3213
|
},
|
|
3213
3214
|
{
|
|
@@ -3216,63 +3217,46 @@ function zt(e, t) {
|
|
|
3216
3217
|
}
|
|
3217
3218
|
);
|
|
3218
3219
|
}
|
|
3219
|
-
var Vr = zt(
|
|
3220
|
+
var Vr = zt(ll, { path: "/" });
|
|
3221
|
+
de.extend(To);
|
|
3220
3222
|
de.extend(Io);
|
|
3221
|
-
|
|
3222
|
-
const oo = "UTC", rr = "timeZone", io = "timezonechange", fl = "__UPF_TIMEZONE_CHANGE__", Kr = /* @__PURE__ */ new Set();
|
|
3223
|
+
const oo = "UTC", rr = "timeZone", io = "timezonechange", ul = "__UPF_TIMEZONE_CHANGE__", Kr = /* @__PURE__ */ new Set();
|
|
3223
3224
|
var on, an;
|
|
3224
|
-
const
|
|
3225
|
+
const fl = (an = (on = de.tz) == null ? void 0 : on.guess) == null ? void 0 : an.bind(de.tz), Z = (e) => (e || "").trim(), ct = () => typeof window > "u" ? void 0 : window, ao = () => {
|
|
3225
3226
|
try {
|
|
3226
|
-
return typeof sessionStorage > "u" ? "" :
|
|
3227
|
+
return typeof sessionStorage > "u" ? "" : Z(sessionStorage.getItem(rr));
|
|
3227
3228
|
} catch {
|
|
3228
3229
|
return "";
|
|
3229
3230
|
}
|
|
3230
|
-
},
|
|
3231
|
+
}, pl = (e) => {
|
|
3231
3232
|
try {
|
|
3232
3233
|
typeof sessionStorage < "u" && sessionStorage.setItem(rr, e);
|
|
3233
3234
|
} catch {
|
|
3234
3235
|
}
|
|
3235
3236
|
}, so = () => {
|
|
3236
3237
|
var t;
|
|
3237
|
-
const e =
|
|
3238
|
-
try {
|
|
3239
|
-
return j((t = e == null ? void 0 : e.__UPF_TIMEZONE_SNAPSHOT__) == null ? void 0 : t.timeZone);
|
|
3240
|
-
} catch {
|
|
3241
|
-
return "";
|
|
3242
|
-
}
|
|
3243
|
-
}, co = () => {
|
|
3244
|
-
var t;
|
|
3245
|
-
const e = Ue();
|
|
3238
|
+
const e = ct();
|
|
3246
3239
|
if (!(e != null && e.name)) return "";
|
|
3247
3240
|
try {
|
|
3248
3241
|
const r = (t = JSON.parse(e.name || "{}")) == null ? void 0 : t.parentData;
|
|
3249
|
-
return
|
|
3242
|
+
return Z(r == null ? void 0 : r.timeZone);
|
|
3250
3243
|
} catch {
|
|
3251
3244
|
return "";
|
|
3252
3245
|
}
|
|
3253
|
-
},
|
|
3254
|
-
timeZone:
|
|
3246
|
+
}, co = (e, t) => ({
|
|
3247
|
+
timeZone: Z(e),
|
|
3255
3248
|
source: t,
|
|
3256
3249
|
timestamp: Date.now()
|
|
3257
|
-
});
|
|
3258
|
-
let Ht = so() || co() || ao();
|
|
3259
|
-
const yl = {
|
|
3260
|
-
get value() {
|
|
3261
|
-
return Ht;
|
|
3262
|
-
},
|
|
3263
|
-
set value(e) {
|
|
3264
|
-
El(e, { source: "clientTimeZone.value" });
|
|
3265
|
-
}
|
|
3266
|
-
}, ml = /* @__PURE__ */ new Set();
|
|
3250
|
+
}), Ht = Po(ao() || so()), dl = /* @__PURE__ */ new Set();
|
|
3267
3251
|
let Qr = !1;
|
|
3268
|
-
const
|
|
3252
|
+
const yl = () => {
|
|
3269
3253
|
if (!(typeof Intl > "u" || typeof Intl.DateTimeFormat != "function"))
|
|
3270
3254
|
try {
|
|
3271
3255
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3272
3256
|
} catch {
|
|
3273
3257
|
return;
|
|
3274
3258
|
}
|
|
3275
|
-
},
|
|
3259
|
+
}, ml = (e) => {
|
|
3276
3260
|
if (!e) return !1;
|
|
3277
3261
|
if (typeof Intl > "u" || typeof Intl.DateTimeFormat != "function") return !0;
|
|
3278
3262
|
try {
|
|
@@ -3280,84 +3264,77 @@ const hl = () => {
|
|
|
3280
3264
|
} catch {
|
|
3281
3265
|
return !1;
|
|
3282
3266
|
}
|
|
3283
|
-
},
|
|
3284
|
-
const t =
|
|
3285
|
-
return t ? Kr.size ? Kr.has(t) :
|
|
3286
|
-
},
|
|
3267
|
+
}, lo = (e) => {
|
|
3268
|
+
const t = Z(e);
|
|
3269
|
+
return t ? Kr.size ? Kr.has(t) : ml(t) : !1;
|
|
3270
|
+
}, hl = () => {
|
|
3287
3271
|
var r;
|
|
3288
|
-
const e = (r = de.tz) == null ? void 0 : r.guess, t = typeof e == "function" ? e :
|
|
3272
|
+
const e = (r = de.tz) == null ? void 0 : r.guess, t = typeof e == "function" ? e : fl;
|
|
3289
3273
|
try {
|
|
3290
3274
|
return t == null ? void 0 : t();
|
|
3291
3275
|
} catch {
|
|
3292
3276
|
return;
|
|
3293
3277
|
}
|
|
3294
|
-
},
|
|
3278
|
+
}, gl = (e) => {
|
|
3295
3279
|
var n, o;
|
|
3296
|
-
const t =
|
|
3297
|
-
return t ?
|
|
3298
|
-
},
|
|
3299
|
-
|
|
3280
|
+
const t = Z(e), r = de.tz;
|
|
3281
|
+
return t ? lo(t) ? ((o = r == null ? void 0 : r.setDefault) == null || o.call(r, t), !0) : !1 : ((n = r == null ? void 0 : r.setDefault) == null || n.call(r, oo), !0);
|
|
3282
|
+
}, vl = (e) => {
|
|
3283
|
+
dl.forEach((t) => {
|
|
3300
3284
|
try {
|
|
3301
3285
|
t(e.timeZone, e);
|
|
3302
3286
|
} catch {
|
|
3303
3287
|
}
|
|
3304
3288
|
});
|
|
3305
|
-
},
|
|
3289
|
+
}, Sl = (e) => {
|
|
3306
3290
|
var t;
|
|
3307
3291
|
try {
|
|
3308
|
-
(t =
|
|
3292
|
+
(t = ct()) == null || t.dispatchEvent(new CustomEvent(io, { detail: e }));
|
|
3309
3293
|
} catch {
|
|
3310
3294
|
}
|
|
3311
|
-
},
|
|
3312
|
-
const r =
|
|
3313
|
-
o && (Ht = r);
|
|
3295
|
+
}, wl = (e, t = {}) => {
|
|
3296
|
+
const r = Z(e), n = co(r, t.source), o = Ht.value !== r;
|
|
3297
|
+
o && (Ht.value = r);
|
|
3314
3298
|
try {
|
|
3315
|
-
const i =
|
|
3299
|
+
const i = ct();
|
|
3316
3300
|
i && (i.__UPF_TIMEZONE_SNAPSHOT__ = n);
|
|
3317
3301
|
} catch {
|
|
3318
3302
|
}
|
|
3319
|
-
return t.persist !== !1 &&
|
|
3320
|
-
},
|
|
3321
|
-
persist: !0,
|
|
3322
|
-
notify: !0,
|
|
3323
|
-
dispatchEvent: !0,
|
|
3324
|
-
syncDefault: !0,
|
|
3325
|
-
...t
|
|
3326
|
-
}), Ol = (e) => {
|
|
3303
|
+
return t.persist !== !1 && pl(r), t.syncDefault !== !1 && gl(r), t.notify !== !1 && o && vl(n), t.dispatchEvent !== !1 && Sl(n), r;
|
|
3304
|
+
}, bl = (e) => {
|
|
3327
3305
|
var r, n, o, i;
|
|
3328
|
-
if (typeof e == "string") return
|
|
3306
|
+
if (typeof e == "string") return co(e);
|
|
3329
3307
|
if (!e || typeof e != "object") return null;
|
|
3330
3308
|
const t = "timeZone" in e ? e.timeZone : e != null && e.detail && "timeZone" in e.detail ? e.detail.timeZone : e != null && e.params && "timeZone" in e.params ? e.params.timeZone : void 0;
|
|
3331
3309
|
return t == null ? null : {
|
|
3332
|
-
timeZone:
|
|
3310
|
+
timeZone: Z(t),
|
|
3333
3311
|
source: e.source || ((r = e.detail) == null ? void 0 : r.source) || ((n = e.params) == null ? void 0 : n.source),
|
|
3334
3312
|
timestamp: Number(e.timestamp || ((o = e.detail) == null ? void 0 : o.timestamp) || ((i = e.params) == null ? void 0 : i.timestamp) || Date.now())
|
|
3335
3313
|
};
|
|
3336
3314
|
}, nr = (e, t) => {
|
|
3337
|
-
const r =
|
|
3338
|
-
r &&
|
|
3315
|
+
const r = bl(e);
|
|
3316
|
+
r && wl(r.timeZone, {
|
|
3339
3317
|
source: r.source || t,
|
|
3340
|
-
persist: !1,
|
|
3341
3318
|
dispatchEvent: !1
|
|
3342
3319
|
});
|
|
3343
|
-
},
|
|
3320
|
+
}, El = (e) => {
|
|
3344
3321
|
nr(e.detail, "window-event");
|
|
3345
|
-
},
|
|
3322
|
+
}, Ol = (e) => {
|
|
3346
3323
|
e.key === rr && nr({ timeZone: e.newValue || "", source: "storage" }, "storage");
|
|
3347
|
-
},
|
|
3324
|
+
}, Al = (e) => {
|
|
3348
3325
|
const t = e.data;
|
|
3349
|
-
!t || t.type !==
|
|
3350
|
-
},
|
|
3351
|
-
const e =
|
|
3352
|
-
return !e || Qr ? !1 : (Qr = !0, e.addEventListener(io,
|
|
3326
|
+
!t || t.type !== ul || nr(t.detail || t, "message");
|
|
3327
|
+
}, Rl = () => {
|
|
3328
|
+
const e = ct();
|
|
3329
|
+
return !e || Qr ? !1 : (Qr = !0, e.addEventListener(io, El), e.addEventListener("storage", Ol), e.addEventListener("message", Al), !0);
|
|
3353
3330
|
};
|
|
3354
|
-
|
|
3355
|
-
const
|
|
3356
|
-
const t =
|
|
3357
|
-
return
|
|
3358
|
-
}, or = Ce(),
|
|
3331
|
+
Rl();
|
|
3332
|
+
const Pl = () => {
|
|
3333
|
+
const t = Z(Ht.value) || ao() || so() || hl() || yl();
|
|
3334
|
+
return lo(t) ? Z(t) : oo;
|
|
3335
|
+
}, or = Ce(), uo = or.sso ?? !0, Xr = or.i18n ?? !0, fo = or.noRedireLogin ?? !1;
|
|
3359
3336
|
let Yr = "", en = 0;
|
|
3360
|
-
const
|
|
3337
|
+
const Tl = 1e3, tn = async (e, t, r = []) => {
|
|
3361
3338
|
const n = Date.now(), o = 1200, i = 60;
|
|
3362
3339
|
for (; Date.now() - n < o; ) {
|
|
3363
3340
|
const a = e(t, ...r);
|
|
@@ -3367,19 +3344,19 @@ const Cl = 1e3, tn = async (e, t, r = []) => {
|
|
|
3367
3344
|
return e(t, ...r);
|
|
3368
3345
|
};
|
|
3369
3346
|
let xt = !1;
|
|
3370
|
-
const
|
|
3347
|
+
const Il = 5e3, po = () => xt ? !1 : (xt = !0, setTimeout(() => {
|
|
3371
3348
|
xt = !1;
|
|
3372
|
-
},
|
|
3373
|
-
if (
|
|
3349
|
+
}, Il), !0), yo = () => {
|
|
3350
|
+
if (fo) return;
|
|
3374
3351
|
const e = "/login";
|
|
3375
3352
|
if (location.pathname === e) return;
|
|
3376
3353
|
window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1;
|
|
3377
3354
|
const t = window.top;
|
|
3378
3355
|
t != null && t.vueRouter ? t.vueRouter.replace(e) : window.location.replace(`/#${e}`);
|
|
3379
|
-
},
|
|
3356
|
+
}, Cl = () => Eo("code") || "" || fo ? !1 : po() ? (uo ? Oo({ ...Ao, redirect_uri: Ro }) : yo(), !0) : !1, Nl = async (e) => {
|
|
3380
3357
|
var r;
|
|
3381
3358
|
return ((r = e.config) == null ? void 0 : r.responseType) === "blob" ? e : e.data ?? e;
|
|
3382
|
-
},
|
|
3359
|
+
}, xl = async (e, t) => {
|
|
3383
3360
|
var d, h, m, b;
|
|
3384
3361
|
const { t: r } = ln();
|
|
3385
3362
|
let n, o, i = {};
|
|
@@ -3387,7 +3364,7 @@ const Nl = 5e3, mo = () => xt ? !1 : (xt = !0, setTimeout(() => {
|
|
|
3387
3364
|
let s = ((d = e == null ? void 0 : e.response) == null ? void 0 : d.data) || {};
|
|
3388
3365
|
const c = s == null ? void 0 : s.code, u = (h = e.response) == null ? void 0 : h.status;
|
|
3389
3366
|
if (c === 401 || u === 401) {
|
|
3390
|
-
|
|
3367
|
+
Cl(), n = c || u, i = s;
|
|
3391
3368
|
const O = (t == null ? void 0 : t.i18n) ?? !0;
|
|
3392
3369
|
if (Xr && O && (s != null && s.status)) {
|
|
3393
3370
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
@@ -3417,12 +3394,12 @@ const Nl = 5e3, mo = () => xt ? !1 : (xt = !0, setTimeout(() => {
|
|
|
3417
3394
|
o || (o = a[e.response.status] || e.message);
|
|
3418
3395
|
} else e.request ? (n = 500, e.code === "ERR_CANCELED" ? o = e.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, e.code === "ERR_CANCELED" ? o = e.abortReason || "" : o = r("请求配置异常"));
|
|
3419
3396
|
t != null && t.customErrorMessage && (o = t == null ? void 0 : t.customErrorMessage(o, e));
|
|
3420
|
-
const p = Date.now(), y = o === Yr, v = p - en <
|
|
3397
|
+
const p = Date.now(), y = o === Yr, v = p - en < Tl;
|
|
3421
3398
|
return !(t != null && t.ignoreErrorMessage) && o && (!y || !v) && ((b = (m = window.DasMessage) == null ? void 0 : m.error) == null || b.call(m, { message: o, showClose: !0 }), Yr = o, en = p), { ...i, code: n, msg: o, error: e };
|
|
3422
3399
|
};
|
|
3423
|
-
function
|
|
3400
|
+
function _l(e, t) {
|
|
3424
3401
|
const r = R.create();
|
|
3425
|
-
return
|
|
3402
|
+
return wo(r, async (n) => {
|
|
3426
3403
|
const { currentLang: o } = ln(), i = Ce();
|
|
3427
3404
|
if (n.headers || (n.headers = {}), !(n != null && n.public)) {
|
|
3428
3405
|
let p = "";
|
|
@@ -3430,51 +3407,51 @@ function Dl(e, t) {
|
|
|
3430
3407
|
const y = new URL(location.href).searchParams;
|
|
3431
3408
|
p = y.get("token") || y.get("accessToken") || y.get("accesstoken") || "";
|
|
3432
3409
|
}
|
|
3433
|
-
if (
|
|
3434
|
-
p || (p = await
|
|
3410
|
+
if (uo)
|
|
3411
|
+
p || (p = await bo(n));
|
|
3435
3412
|
else {
|
|
3436
3413
|
p || (p = cn());
|
|
3437
3414
|
let y = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3438
|
-
p ? p = await
|
|
3439
|
-
|
|
3440
|
-
}) :
|
|
3415
|
+
p ? p = await _o(y, (d) => {
|
|
3416
|
+
xo(d);
|
|
3417
|
+
}) : po() && yo();
|
|
3441
3418
|
}
|
|
3442
3419
|
p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
|
|
3443
3420
|
}
|
|
3444
|
-
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = e), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) =>
|
|
3421
|
+
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = e), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => cl.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Nl), n.onError || (n.onError = xl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Vr.get("csrf-token"));
|
|
3445
3422
|
const c = n.params || {};
|
|
3446
3423
|
if (c.project === void 0) {
|
|
3447
3424
|
let p = 0;
|
|
3448
3425
|
const y = new URL(location.href).searchParams;
|
|
3449
|
-
p = y.get("project") || y.get("projectId") || 0, p || (p =
|
|
3426
|
+
p = y.get("project") || y.get("projectId") || 0, p || (p = Co().id ?? 0), (p || p === 0) && (c.project = p);
|
|
3450
3427
|
}
|
|
3451
3428
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3452
|
-
const { instanceInfo: p } =
|
|
3429
|
+
const { instanceInfo: p } = No();
|
|
3453
3430
|
p != null && p.instanceId && (c.instance = p.instanceId);
|
|
3454
3431
|
}
|
|
3455
|
-
n.params = c, n.headers.Timezone =
|
|
3432
|
+
n.params = c, n.headers.Timezone = Pl(), n.headers["X-Origin"] = location.origin;
|
|
3456
3433
|
const l = (o == null ? void 0 : o.value) ?? "";
|
|
3457
3434
|
return l && (n.headers["Accept-Language"] = l), l && Vr.set("locale", l), n;
|
|
3458
3435
|
});
|
|
3459
3436
|
}
|
|
3460
|
-
const
|
|
3437
|
+
const Fl = "v1", mo = _l(`/api/admin/basic-application/user-rights/${Fl}`), Dl = mo.get("/menu-module-func"), $l = mo.post("/right-func"), rn = (e) => Array.isArray(e) ? e : e == null || e === "" ? [] : [e], Ll = (e) => {
|
|
3461
3438
|
const t = rn(e == null ? void 0 : e.appIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o), r = rn(e == null ? void 0 : e.moduleIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o);
|
|
3462
3439
|
if (!t.length) return null;
|
|
3463
3440
|
const n = { appIds: t };
|
|
3464
3441
|
return r.length && (n.moduleIds = r), n;
|
|
3465
|
-
},
|
|
3442
|
+
}, Ul = (e) => {
|
|
3466
3443
|
const t = e && typeof e == "object" ? String((e == null ? void 0 : e.type) ?? "").trim() : "";
|
|
3467
3444
|
return t === "appId" || t === "menuId" ? t : e && typeof e == "object" && ("appIds" in e || "moduleIds" in e) ? "appId" : "menuId";
|
|
3468
|
-
},
|
|
3445
|
+
}, Ml = (e) => {
|
|
3469
3446
|
const t = e && typeof e == "object" ? e == null ? void 0 : e.menuId : e;
|
|
3470
3447
|
return typeof t == "number" ? Number.isNaN(t) ? "" : String(t) : String(t ?? "").trim();
|
|
3471
|
-
}, nn = (e) => typeof e == "number" ? Number.isNaN(e) ? "" : String(e) : String(e ?? "").trim(),
|
|
3448
|
+
}, nn = (e) => typeof e == "number" ? Number.isNaN(e) ? "" : String(e) : String(e ?? "").trim(), Bl = (e) => {
|
|
3472
3449
|
if (!e || typeof e != "object") return [];
|
|
3473
3450
|
const t = e == null ? void 0 : e.children;
|
|
3474
3451
|
return Array.isArray(t) ? t.filter((r) => r && typeof r == "object") : [];
|
|
3475
|
-
},
|
|
3452
|
+
}, ho = (e) => {
|
|
3476
3453
|
if (!e || typeof e != "object") return [];
|
|
3477
|
-
const r =
|
|
3454
|
+
const r = Bl(e).flatMap((i) => ho(i));
|
|
3478
3455
|
if (r.length) return r;
|
|
3479
3456
|
const n = String((e == null ? void 0 : e.type) ?? "").trim(), o = String((e == null ? void 0 : e.routeCode) ?? "").trim();
|
|
3480
3457
|
return n === "menu" && o ? [o] : [];
|
|
@@ -3504,7 +3481,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3504
3481
|
}
|
|
3505
3482
|
}
|
|
3506
3483
|
return t.code.sourceCode = Array.from(o), t;
|
|
3507
|
-
},
|
|
3484
|
+
}, kl = () => {
|
|
3508
3485
|
const e = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
|
|
3509
3486
|
try {
|
|
3510
3487
|
const t = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"), r = String((t == null ? void 0 : t.id) ?? "").trim(), n = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
|
|
@@ -3515,42 +3492,42 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3515
3492
|
} catch {
|
|
3516
3493
|
return _t([]);
|
|
3517
3494
|
}
|
|
3518
|
-
},
|
|
3495
|
+
}, go = (e = "id") => {
|
|
3519
3496
|
var a, s;
|
|
3520
|
-
const t =
|
|
3497
|
+
const t = kl();
|
|
3521
3498
|
if (!t || typeof t != "object")
|
|
3522
3499
|
return e === "all" ? { idList: [], codeList: [] } : [];
|
|
3523
3500
|
const r = (a = t == null ? void 0 : t.id) == null ? void 0 : a.id, n = Array.isArray(r) ? r : [], o = (s = t == null ? void 0 : t.code) == null ? void 0 : s.sourceCode, i = Array.isArray(o) ? o : [];
|
|
3524
3501
|
return e === "all" ? { idList: n, codeList: i } : e === "code" ? i : n;
|
|
3525
|
-
},
|
|
3502
|
+
}, au = (e, t) => {
|
|
3526
3503
|
const r = (async () => {
|
|
3527
|
-
if (
|
|
3528
|
-
const c =
|
|
3504
|
+
if (Ul(e) === "menuId") {
|
|
3505
|
+
const c = Ml(e);
|
|
3529
3506
|
if (!c) return [];
|
|
3530
|
-
const u = await
|
|
3507
|
+
const u = await Dl().run({ menuId: c }), [l, p] = u;
|
|
3531
3508
|
return l ? [] : p;
|
|
3532
3509
|
}
|
|
3533
|
-
const o =
|
|
3510
|
+
const o = Ll(e ?? {});
|
|
3534
3511
|
if (!o) return [];
|
|
3535
|
-
const i = await
|
|
3512
|
+
const i = await $l().run(o), [a, s] = i;
|
|
3536
3513
|
return a ? [] : s;
|
|
3537
3514
|
})();
|
|
3538
3515
|
return typeof t == "function" && r.then((n) => t(n)).catch(() => t([])), r;
|
|
3539
|
-
},
|
|
3516
|
+
}, su = (e, t) => {
|
|
3540
3517
|
const r = String(e ?? "").trim(), n = String(t ?? "").trim();
|
|
3541
3518
|
if (!r && !n) return !1;
|
|
3542
3519
|
if (!r && n)
|
|
3543
3520
|
return !!nn(n);
|
|
3544
3521
|
try {
|
|
3545
3522
|
const o = window.sessionStorage.getItem("menuList") || "[]", i = o ? JSON.parse(o) : [], a = Array.isArray(i) ? i : [];
|
|
3546
|
-
return (n ? a.filter((c) => nn(c == null ? void 0 : c.appId) === n) : a).some((c) =>
|
|
3523
|
+
return (n ? a.filter((c) => nn(c == null ? void 0 : c.appId) === n) : a).some((c) => ho(c).includes(r));
|
|
3547
3524
|
} catch {
|
|
3548
3525
|
return !1;
|
|
3549
3526
|
}
|
|
3550
|
-
},
|
|
3527
|
+
}, cu = (e) => {
|
|
3551
3528
|
const t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
|
|
3552
3529
|
return {
|
|
3553
|
-
authCodes:
|
|
3530
|
+
authCodes: go(),
|
|
3554
3531
|
routeUrl: t.routeUrl ?? "",
|
|
3555
3532
|
parentId: t.parentId ?? "",
|
|
3556
3533
|
id: t.id ?? "",
|
|
@@ -3560,7 +3537,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3560
3537
|
showName: t.showName ?? "",
|
|
3561
3538
|
type: (t == null ? void 0 : t.type) ?? ""
|
|
3562
3539
|
};
|
|
3563
|
-
},
|
|
3540
|
+
}, lu = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), uu = () => {
|
|
3564
3541
|
const e = JSON.parse(sessionStorage.getItem("menuList") || "[]"), t = {};
|
|
3565
3542
|
return e.forEach((r) => {
|
|
3566
3543
|
r.appId && (r.rightFuncCodes && r.rightFuncCodes.forEach((n) => t[n] = []), r.children && r.children.forEach((n) => {
|
|
@@ -3584,7 +3561,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3584
3561
|
});
|
|
3585
3562
|
}));
|
|
3586
3563
|
}), t;
|
|
3587
|
-
},
|
|
3564
|
+
}, jl = cn, fu = () => {
|
|
3588
3565
|
var r;
|
|
3589
3566
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3590
3567
|
return {
|
|
@@ -3593,7 +3570,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3593
3570
|
flag: e.flag ?? null,
|
|
3594
3571
|
tenantId: ((r = e == null ? void 0 : e.tenant) == null ? void 0 : r.id) ?? ""
|
|
3595
3572
|
};
|
|
3596
|
-
},
|
|
3573
|
+
}, pu = () => {
|
|
3597
3574
|
let e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
3598
3575
|
const t = Ce();
|
|
3599
3576
|
return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
|
|
@@ -3604,7 +3581,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3604
3581
|
email: e.email ?? "",
|
|
3605
3582
|
headPicture: e.headPicture ?? ""
|
|
3606
3583
|
};
|
|
3607
|
-
},
|
|
3584
|
+
}, du = () => {
|
|
3608
3585
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3609
3586
|
return {
|
|
3610
3587
|
userId: e.id ?? "",
|
|
@@ -3626,7 +3603,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3626
3603
|
address: e.address ?? "",
|
|
3627
3604
|
description: e.description ?? ""
|
|
3628
3605
|
};
|
|
3629
|
-
},
|
|
3606
|
+
}, yu = () => sessionStorage.getItem("languages"), ql = () => {
|
|
3630
3607
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
3631
3608
|
const t = Ce();
|
|
3632
3609
|
return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
|
|
@@ -3642,7 +3619,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3642
3619
|
leaf: (e == null ? void 0 : e.leaf) ?? !1,
|
|
3643
3620
|
optional: (e == null ? void 0 : e.leaf) ?? !0
|
|
3644
3621
|
};
|
|
3645
|
-
},
|
|
3622
|
+
}, mu = () => {
|
|
3646
3623
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || sessionStorage.getItem("project-message") || "{}");
|
|
3647
3624
|
return {
|
|
3648
3625
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
@@ -3672,7 +3649,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3672
3649
|
currencySymbol: "¥"
|
|
3673
3650
|
}
|
|
3674
3651
|
};
|
|
3675
|
-
},
|
|
3652
|
+
}, hu = () => {
|
|
3676
3653
|
const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
3677
3654
|
return {
|
|
3678
3655
|
applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
|
|
@@ -3683,31 +3660,31 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3683
3660
|
displayPosition: (e == null ? void 0 : e.displayPosition) ?? 1,
|
|
3684
3661
|
type: (e == null ? void 0 : e.type) ?? null
|
|
3685
3662
|
};
|
|
3686
|
-
},
|
|
3663
|
+
}, gu = () => {
|
|
3687
3664
|
const e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
|
|
3688
3665
|
return {
|
|
3689
3666
|
style: (e == null ? void 0 : e.style) ?? "",
|
|
3690
3667
|
skinStyle: (e == null ? void 0 : e.skinStyle) ?? ""
|
|
3691
3668
|
};
|
|
3692
|
-
},
|
|
3669
|
+
}, zl = () => {
|
|
3693
3670
|
try {
|
|
3694
3671
|
const e = window.sessionStorage.getItem("menuItem") || "", t = e ? JSON.parse(e) : {};
|
|
3695
3672
|
return String((t == null ? void 0 : t.routeCode) ?? "").trim();
|
|
3696
3673
|
} catch {
|
|
3697
3674
|
return "";
|
|
3698
3675
|
}
|
|
3699
|
-
},
|
|
3700
|
-
const r = (t == null ? void 0 : t.returnType) ?? "set", n = String((t == null ? void 0 : t.routeCode) ??
|
|
3676
|
+
}, Hl = (e, t) => {
|
|
3677
|
+
const r = (t == null ? void 0 : t.returnType) ?? "set", n = String((t == null ? void 0 : t.routeCode) ?? zl()).trim(), o = Array.isArray(e) ? e : e instanceof Set ? Array.from(e) : [], i = /* @__PURE__ */ new Set(), a = n ? `${n}.` : "";
|
|
3701
3678
|
return a && o.forEach((s) => {
|
|
3702
3679
|
const c = (s && typeof s == "object" ? s == null ? void 0 : s.code : s) ?? "", u = String(c).trim();
|
|
3703
3680
|
if (!u || !u.startsWith(a)) return;
|
|
3704
3681
|
const l = u.slice(a.length);
|
|
3705
3682
|
l && i.add(l.replace(/\./g, "-"));
|
|
3706
3683
|
}), r === "list" ? Array.from(i).map((s) => ({ code: s })) : i;
|
|
3707
|
-
},
|
|
3708
|
-
const r =
|
|
3709
|
-
return
|
|
3710
|
-
},
|
|
3684
|
+
}, Wl = (e, t) => {
|
|
3685
|
+
const r = go("code"), n = Array.isArray(r) ? r : [];
|
|
3686
|
+
return Hl(n, { returnType: "list" });
|
|
3687
|
+
}, vu = (e, t) => Wl() ?? [], Jl = () => {
|
|
3711
3688
|
const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
3712
3689
|
return {
|
|
3713
3690
|
appcategorys: e.appcategorys ?? [],
|
|
@@ -3716,9 +3693,9 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3716
3693
|
subAppList: e.subAppList ?? [],
|
|
3717
3694
|
menuCollapses: e.menuCollapses ?? []
|
|
3718
3695
|
};
|
|
3719
|
-
},
|
|
3696
|
+
}, Su = (e, t = !1) => {
|
|
3720
3697
|
var o, i;
|
|
3721
|
-
const r =
|
|
3698
|
+
const r = Jl().subAppList;
|
|
3722
3699
|
if (e)
|
|
3723
3700
|
return t ? ((o = r == null ? void 0 : r.find((a) => a.code === e)) == null ? void 0 : o.originalMenus) ?? [] : ((i = r == null ? void 0 : r.find((a) => a.code === e)) == null ? void 0 : i.menus) ?? [];
|
|
3724
3701
|
const n = {};
|
|
@@ -3727,7 +3704,7 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3727
3704
|
}) : r == null || r.forEach((a) => {
|
|
3728
3705
|
n[a.code] = a.menus ?? [];
|
|
3729
3706
|
}), n;
|
|
3730
|
-
},
|
|
3707
|
+
}, wu = () => {
|
|
3731
3708
|
const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
3732
3709
|
return {
|
|
3733
3710
|
currentCode: e.currentCode ?? "",
|
|
@@ -3735,41 +3712,41 @@ const $l = "v1", go = Dl(`/api/admin/basic-application/user-rights/${$l}`), Ll =
|
|
|
3735
3712
|
tabMap: e.tabMap ?? {},
|
|
3736
3713
|
preTab: e.preTab ?? {}
|
|
3737
3714
|
};
|
|
3738
|
-
},
|
|
3715
|
+
}, bu = () => {
|
|
3739
3716
|
const e = Ce(), t = sessionStorage.getItem("minioAddress");
|
|
3740
3717
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
3741
|
-
},
|
|
3718
|
+
}, Eu = () => ({
|
|
3742
3719
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
3743
|
-
}),
|
|
3744
|
-
|
|
3720
|
+
}), Ou = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
3721
|
+
jl() || vo();
|
|
3745
3722
|
var sn;
|
|
3746
|
-
(sn =
|
|
3723
|
+
(sn = ql()) != null && sn.id || So();
|
|
3747
3724
|
export {
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3725
|
+
Hl as buildActionSuffixSet,
|
|
3726
|
+
uu as getAuthobj,
|
|
3727
|
+
go as getCurrentModulePermissionData,
|
|
3728
|
+
zl as getCurrentRouteCode,
|
|
3729
|
+
au as getCurrentUserPermissionList,
|
|
3730
|
+
Ou as getFavIcon,
|
|
3731
|
+
kl as getGroupedCurrentUserPermissionList,
|
|
3732
|
+
hu as getHomeInfo,
|
|
3733
|
+
Eu as getInstanceInfo,
|
|
3734
|
+
yu as getLanguages,
|
|
3735
|
+
cu as getMenuItemInfo,
|
|
3736
|
+
lu as getMenuListnfo,
|
|
3737
|
+
Su as getMenus,
|
|
3738
|
+
bu as getMinioAddress,
|
|
3739
|
+
Wl as getPageAuth,
|
|
3740
|
+
vu as getPageAuthBtn,
|
|
3741
|
+
gu as getPersonalConfig,
|
|
3742
|
+
pu as getPersonalInfo,
|
|
3743
|
+
ql as getProjectInfo,
|
|
3744
|
+
mu as getProjectMessage,
|
|
3745
|
+
Jl as getSubApps,
|
|
3746
|
+
wu as getTabInfo,
|
|
3747
|
+
du as getTenantInfo,
|
|
3748
|
+
jl as getToken,
|
|
3749
|
+
fu as getUserInfo,
|
|
3773
3750
|
_t as groupPermissionListByModuleAndCode,
|
|
3774
|
-
|
|
3751
|
+
su as hasMenuPermissionByRouteCode
|
|
3775
3752
|
};
|