@das-fed/upf-utils 6.4.0-dev.230 → 6.4.0-dev.232
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 +904 -906
- package/api-services/index.js +683 -686
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1316 -1303
- package/api-services/modules/app-manage/index.js +1117 -1098
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +872 -868
- package/api-services/modules/authentication/index.js +676 -671
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1053 -1043
- package/api-services/modules/bems/index.js +870 -855
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1316 -1303
- package/api-services/modules/contract/index.js +1117 -1098
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +444 -443
- package/api-services/modules/duty-manage/index.js +340 -339
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +483 -482
- package/api-services/modules/enterpriseright/index.js +373 -372
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1344 -1353
- package/api-services/modules/file/es5.js +469 -468
- package/api-services/modules/file/index.js +350 -349
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1165 -1161
- package/api-services/modules/gateway-edge/index.js +953 -948
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1055 -1068
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +465 -464
- package/api-services/modules/iot/index.js +355 -354
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1317 -1304
- package/api-services/modules/justauth/index.js +1118 -1099
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1049 -1039
- package/api-services/modules/knowledge/index.js +867 -852
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1080 -1088
- package/api-services/modules/link/index.js +885 -898
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1071 -1058
- package/api-services/modules/permission/index.js +886 -867
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +486 -485
- package/api-services/modules/platformManage/index.js +382 -381
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1150 -1152
- package/api-services/modules/portal/index.js +940 -943
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +849 -851
- package/api-services/modules/space-manage/index.js +659 -662
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +450 -449
- package/api-services/modules/super-admin/index.js +343 -342
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +448 -447
- package/api-services/modules/supplier/index.js +342 -341
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1080 -1088
- package/api-services/modules/supplychain-manage/index.js +885 -898
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +849 -851
- package/api-services/modules/systemConfiguration/index.js +659 -662
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1078 -1087
- package/api-services/modules/tool/index.js +881 -894
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1328 -1339
- package/api-services/src/create-service/index.js +1116 -1133
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1362 -1371
- package/common-info/getPermissionMethod/es5.js +471 -470
- package/common-info/getPermissionMethod/index.js +360 -359
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1130 -1143
- package/common-info/index.js.gz +0 -0
- package/create-api-service/access-token-auto-refresh/es5.js +325 -0
- package/create-api-service/access-token-auto-refresh/index.d.ts +20 -0
- package/create-api-service/access-token-auto-refresh/index.js +182 -0
- package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
- package/create-api-service/check-token/es5.js +72 -2348
- package/create-api-service/check-token/index.d.ts +3 -8
- package/create-api-service/check-token/index.js +40 -1797
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +1329 -1340
- package/create-api-service/index.js +1117 -1134
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/token-refresh-shared/es5.js +2403 -0
- package/create-api-service/token-refresh-shared/index.d.ts +30 -0
- package/create-api-service/token-refresh-shared/index.js +1820 -0
- package/create-api-service/token-refresh-shared/index.js.gz +0 -0
- package/esm-map.json +19 -1
- package/package.json +3 -3
- package/token-tools/es5.js +85 -18
- package/token-tools/index.js +80 -8
- package/token-tools/index.js.gz +0 -0
|
@@ -7,30 +7,31 @@ import oo from "dayjs/plugin/timezone";
|
|
|
7
7
|
import { getProjectInfo as io, getInstanceInfo as ao } from "@das-fed/upf-utils/common-info";
|
|
8
8
|
import { getAccessToken as so } from "@das-fed/upf-utils/token-tools";
|
|
9
9
|
import { getConfig as Qr } from "@das-fed/upf-utils/config";
|
|
10
|
-
import {
|
|
10
|
+
import { applyRefreshedToken as lo } from "@das-fed/upf-utils/create-api-service/access-token-auto-refresh";
|
|
11
|
+
import { getValidAccessToken as co } from "@das-fed/upf-utils/create-api-service/check-token";
|
|
11
12
|
function Xr(t, e) {
|
|
12
13
|
return function() {
|
|
13
14
|
return t.apply(e, arguments);
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
|
-
const { toString:
|
|
17
|
-
const r =
|
|
17
|
+
const { toString: uo } = Object.prototype, { getPrototypeOf: qt } = Object, { iterator: Qe, toStringTag: Zr } = Symbol, Xe = /* @__PURE__ */ ((t) => (e) => {
|
|
18
|
+
const r = uo.call(e);
|
|
18
19
|
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
19
20
|
})(/* @__PURE__ */ Object.create(null)), q = (t) => (t = t.toLowerCase(), (e) => Xe(e) === t), Ze = (t) => (e) => typeof e === t, { isArray: he } = Array, pe = Ze("undefined");
|
|
20
21
|
function Te(t) {
|
|
21
22
|
return t !== null && !pe(t) && t.constructor !== null && !pe(t.constructor) && $(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
22
23
|
}
|
|
23
24
|
const Yr = q("ArrayBuffer");
|
|
24
|
-
function
|
|
25
|
+
function fo(t) {
|
|
25
26
|
let e;
|
|
26
27
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Yr(t.buffer), e;
|
|
27
28
|
}
|
|
28
|
-
const
|
|
29
|
+
const po = Ze("string"), $ = Ze("function"), en = Ze("number"), xe = (t) => t !== null && typeof t == "object", yo = (t) => t === !0 || t === !1, Me = (t) => {
|
|
29
30
|
if (Xe(t) !== "object")
|
|
30
31
|
return !1;
|
|
31
32
|
const e = qt(t);
|
|
32
33
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Zr in t) && !(Qe in t);
|
|
33
|
-
},
|
|
34
|
+
}, ho = (t) => {
|
|
34
35
|
if (!xe(t) || Te(t))
|
|
35
36
|
return !1;
|
|
36
37
|
try {
|
|
@@ -38,11 +39,11 @@ const fo = Ze("string"), $ = Ze("function"), en = Ze("number"), xe = (t) => t !=
|
|
|
38
39
|
} catch {
|
|
39
40
|
return !1;
|
|
40
41
|
}
|
|
41
|
-
},
|
|
42
|
+
}, mo = q("Date"), go = q("File"), vo = q("Blob"), wo = q("FileList"), So = (t) => xe(t) && $(t.pipe), bo = (t) => {
|
|
42
43
|
let e;
|
|
43
44
|
return t && (typeof FormData == "function" && t instanceof FormData || $(t.append) && ((e = Xe(t)) === "formdata" || // detect form-data instance
|
|
44
45
|
e === "object" && $(t.toString) && t.toString() === "[object FormData]"));
|
|
45
|
-
},
|
|
46
|
+
}, Eo = q("URLSearchParams"), [Oo, Ao, Ro, Po] = ["ReadableStream", "Request", "Response", "Headers"].map(q), To = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
46
47
|
function Ce(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
47
48
|
if (t === null || typeof t > "u")
|
|
48
49
|
return;
|
|
@@ -80,13 +81,13 @@ function Ct() {
|
|
|
80
81
|
arguments[o] && Ce(arguments[o], n);
|
|
81
82
|
return r;
|
|
82
83
|
}
|
|
83
|
-
const
|
|
84
|
+
const xo = (t, e, r, { allOwnKeys: n } = {}) => (Ce(e, (o, i) => {
|
|
84
85
|
r && $(o) ? t[i] = Xr(o, r) : t[i] = o;
|
|
85
|
-
}, { allOwnKeys: n }), t),
|
|
86
|
+
}, { allOwnKeys: n }), t), Co = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), _o = (t, e, r, n) => {
|
|
86
87
|
t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
87
88
|
value: e.prototype
|
|
88
89
|
}), r && Object.assign(t.prototype, r);
|
|
89
|
-
},
|
|
90
|
+
}, No = (t, e, r, n) => {
|
|
90
91
|
let o, i, a;
|
|
91
92
|
const s = {};
|
|
92
93
|
if (e = e || {}, t == null) return e;
|
|
@@ -96,11 +97,11 @@ const To = (t, e, r, { allOwnKeys: n } = {}) => (Ce(e, (o, i) => {
|
|
|
96
97
|
t = r !== !1 && qt(t);
|
|
97
98
|
} while (t && (!r || r(t, e)) && t !== Object.prototype);
|
|
98
99
|
return e;
|
|
99
|
-
},
|
|
100
|
+
}, Fo = (t, e, r) => {
|
|
100
101
|
t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
|
|
101
102
|
const n = t.indexOf(e, r);
|
|
102
103
|
return n !== -1 && n === r;
|
|
103
|
-
},
|
|
104
|
+
}, Io = (t) => {
|
|
104
105
|
if (!t) return null;
|
|
105
106
|
if (he(t)) return t;
|
|
106
107
|
let e = t.length;
|
|
@@ -109,31 +110,31 @@ const To = (t, e, r, { allOwnKeys: n } = {}) => (Ce(e, (o, i) => {
|
|
|
109
110
|
for (; e-- > 0; )
|
|
110
111
|
r[e] = t[e];
|
|
111
112
|
return r;
|
|
112
|
-
},
|
|
113
|
+
}, $o = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && qt(Uint8Array)), Do = (t, e) => {
|
|
113
114
|
const n = (t && t[Qe]).call(t);
|
|
114
115
|
let o;
|
|
115
116
|
for (; (o = n.next()) && !o.done; ) {
|
|
116
117
|
const i = o.value;
|
|
117
118
|
e.call(t, i[0], i[1]);
|
|
118
119
|
}
|
|
119
|
-
},
|
|
120
|
+
}, Lo = (t, e) => {
|
|
120
121
|
let r;
|
|
121
122
|
const n = [];
|
|
122
123
|
for (; (r = t.exec(e)) !== null; )
|
|
123
124
|
n.push(r);
|
|
124
125
|
return n;
|
|
125
|
-
},
|
|
126
|
+
}, Uo = q("HTMLFormElement"), Bo = (t) => t.toLowerCase().replace(
|
|
126
127
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
127
128
|
function(r, n, o) {
|
|
128
129
|
return n.toUpperCase() + o;
|
|
129
130
|
}
|
|
130
|
-
), er = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype),
|
|
131
|
+
), er = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Mo = q("RegExp"), nn = (t, e) => {
|
|
131
132
|
const r = Object.getOwnPropertyDescriptors(t), n = {};
|
|
132
133
|
Ce(r, (o, i) => {
|
|
133
134
|
let a;
|
|
134
135
|
(a = e(o, i, t)) !== !1 && (n[i] = a || o);
|
|
135
136
|
}), Object.defineProperties(t, n);
|
|
136
|
-
},
|
|
137
|
+
}, ko = (t) => {
|
|
137
138
|
nn(t, (e, r) => {
|
|
138
139
|
if ($(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
139
140
|
return !1;
|
|
@@ -148,19 +149,19 @@ const To = (t, e, r, { allOwnKeys: n } = {}) => (Ce(e, (o, i) => {
|
|
|
148
149
|
});
|
|
149
150
|
}
|
|
150
151
|
});
|
|
151
|
-
},
|
|
152
|
+
}, qo = (t, e) => {
|
|
152
153
|
const r = {}, n = (o) => {
|
|
153
154
|
o.forEach((i) => {
|
|
154
155
|
r[i] = !0;
|
|
155
156
|
});
|
|
156
157
|
};
|
|
157
158
|
return he(t) ? n(t) : n(String(t).split(e)), r;
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
function
|
|
159
|
+
}, jo = () => {
|
|
160
|
+
}, Ho = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
161
|
+
function zo(t) {
|
|
161
162
|
return !!(t && $(t.append) && t[Zr] === "FormData" && t[Qe]);
|
|
162
163
|
}
|
|
163
|
-
const
|
|
164
|
+
const Wo = (t) => {
|
|
164
165
|
const e = new Array(10), r = (n, o) => {
|
|
165
166
|
if (xe(n)) {
|
|
166
167
|
if (e.indexOf(n) >= 0)
|
|
@@ -179,72 +180,72 @@ const zo = (t) => {
|
|
|
179
180
|
return n;
|
|
180
181
|
};
|
|
181
182
|
return r(t, 0);
|
|
182
|
-
},
|
|
183
|
+
}, Go = q("AsyncFunction"), Jo = (t) => t && (xe(t) || $(t)) && $(t.then) && $(t.catch), on = ((t, e) => t ? setImmediate : e ? ((r, n) => (ee.addEventListener("message", ({ source: o, data: i }) => {
|
|
183
184
|
o === ee && i === r && n.length && n.shift()();
|
|
184
185
|
}, !1), (o) => {
|
|
185
186
|
n.push(o), ee.postMessage(r, "*");
|
|
186
187
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
187
188
|
typeof setImmediate == "function",
|
|
188
189
|
$(ee.postMessage)
|
|
189
|
-
),
|
|
190
|
+
), Vo = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || on, Ko = (t) => t != null && $(t[Qe]), f = {
|
|
190
191
|
isArray: he,
|
|
191
192
|
isArrayBuffer: Yr,
|
|
192
193
|
isBuffer: Te,
|
|
193
|
-
isFormData:
|
|
194
|
-
isArrayBufferView:
|
|
195
|
-
isString:
|
|
194
|
+
isFormData: bo,
|
|
195
|
+
isArrayBufferView: fo,
|
|
196
|
+
isString: po,
|
|
196
197
|
isNumber: en,
|
|
197
|
-
isBoolean:
|
|
198
|
+
isBoolean: yo,
|
|
198
199
|
isObject: xe,
|
|
199
200
|
isPlainObject: Me,
|
|
200
|
-
isEmptyObject:
|
|
201
|
-
isReadableStream:
|
|
202
|
-
isRequest:
|
|
203
|
-
isResponse:
|
|
204
|
-
isHeaders:
|
|
201
|
+
isEmptyObject: ho,
|
|
202
|
+
isReadableStream: Oo,
|
|
203
|
+
isRequest: Ao,
|
|
204
|
+
isResponse: Ro,
|
|
205
|
+
isHeaders: Po,
|
|
205
206
|
isUndefined: pe,
|
|
206
|
-
isDate:
|
|
207
|
-
isFile:
|
|
208
|
-
isBlob:
|
|
209
|
-
isRegExp:
|
|
207
|
+
isDate: mo,
|
|
208
|
+
isFile: go,
|
|
209
|
+
isBlob: vo,
|
|
210
|
+
isRegExp: Mo,
|
|
210
211
|
isFunction: $,
|
|
211
|
-
isStream:
|
|
212
|
-
isURLSearchParams:
|
|
213
|
-
isTypedArray:
|
|
214
|
-
isFileList:
|
|
212
|
+
isStream: So,
|
|
213
|
+
isURLSearchParams: Eo,
|
|
214
|
+
isTypedArray: $o,
|
|
215
|
+
isFileList: wo,
|
|
215
216
|
forEach: Ce,
|
|
216
217
|
merge: Ct,
|
|
217
|
-
extend:
|
|
218
|
-
trim:
|
|
219
|
-
stripBOM:
|
|
220
|
-
inherits:
|
|
221
|
-
toFlatObject:
|
|
218
|
+
extend: xo,
|
|
219
|
+
trim: To,
|
|
220
|
+
stripBOM: Co,
|
|
221
|
+
inherits: _o,
|
|
222
|
+
toFlatObject: No,
|
|
222
223
|
kindOf: Xe,
|
|
223
224
|
kindOfTest: q,
|
|
224
|
-
endsWith:
|
|
225
|
-
toArray:
|
|
226
|
-
forEachEntry:
|
|
227
|
-
matchAll:
|
|
228
|
-
isHTMLForm:
|
|
225
|
+
endsWith: Fo,
|
|
226
|
+
toArray: Io,
|
|
227
|
+
forEachEntry: Do,
|
|
228
|
+
matchAll: Lo,
|
|
229
|
+
isHTMLForm: Uo,
|
|
229
230
|
hasOwnProperty: er,
|
|
230
231
|
hasOwnProp: er,
|
|
231
232
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
232
233
|
reduceDescriptors: nn,
|
|
233
|
-
freezeMethods:
|
|
234
|
-
toObjectSet:
|
|
235
|
-
toCamelCase:
|
|
236
|
-
noop:
|
|
237
|
-
toFiniteNumber:
|
|
234
|
+
freezeMethods: ko,
|
|
235
|
+
toObjectSet: qo,
|
|
236
|
+
toCamelCase: Bo,
|
|
237
|
+
noop: jo,
|
|
238
|
+
toFiniteNumber: Ho,
|
|
238
239
|
findKey: tn,
|
|
239
240
|
global: ee,
|
|
240
241
|
isContextDefined: rn,
|
|
241
|
-
isSpecCompliantForm:
|
|
242
|
-
toJSONObject:
|
|
243
|
-
isAsyncFn:
|
|
244
|
-
isThenable:
|
|
242
|
+
isSpecCompliantForm: zo,
|
|
243
|
+
toJSONObject: Wo,
|
|
244
|
+
isAsyncFn: Go,
|
|
245
|
+
isThenable: Jo,
|
|
245
246
|
setImmediate: on,
|
|
246
|
-
asap:
|
|
247
|
-
isIterable:
|
|
247
|
+
asap: Vo,
|
|
248
|
+
isIterable: Ko
|
|
248
249
|
};
|
|
249
250
|
function w(t, e, r, n, o) {
|
|
250
251
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -298,7 +299,7 @@ w.from = (t, e, r, n, o, i) => {
|
|
|
298
299
|
const s = t && t.message ? t.message : "Error", c = e == null && t ? t.code : e;
|
|
299
300
|
return w.call(a, s, c, r, n, o), t && a.cause == null && Object.defineProperty(a, "cause", { value: t, configurable: !0 }), a.name = t && t.name || "Error", i && Object.assign(a, i), a;
|
|
300
301
|
};
|
|
301
|
-
const
|
|
302
|
+
const Qo = null;
|
|
302
303
|
function _t(t) {
|
|
303
304
|
return f.isPlainObject(t) || f.isArray(t);
|
|
304
305
|
}
|
|
@@ -310,10 +311,10 @@ function tr(t, e, r) {
|
|
|
310
311
|
return o = ln(o), !r && i ? "[" + o + "]" : o;
|
|
311
312
|
}).join(r ? "." : "") : e;
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function Xo(t) {
|
|
314
315
|
return f.isArray(t) && !t.some(_t);
|
|
315
316
|
}
|
|
316
|
-
const
|
|
317
|
+
const Zo = f.toFlatObject(f, {}, null, function(e) {
|
|
317
318
|
return /^is[A-Z]/.test(e);
|
|
318
319
|
});
|
|
319
320
|
function Ye(t, e, r) {
|
|
@@ -344,7 +345,7 @@ function Ye(t, e, r) {
|
|
|
344
345
|
if (d && !h && typeof d == "object") {
|
|
345
346
|
if (f.endsWith(m, "{}"))
|
|
346
347
|
m = n ? m : m.slice(0, -2), d = JSON.stringify(d);
|
|
347
|
-
else if (f.isArray(d) &&
|
|
348
|
+
else if (f.isArray(d) && Xo(d) || (f.isFileList(d) || f.endsWith(m, "[]")) && (b = f.toArray(d)))
|
|
348
349
|
return m = ln(m), b.forEach(function(g, E) {
|
|
349
350
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
350
351
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -355,7 +356,7 @@ function Ye(t, e, r) {
|
|
|
355
356
|
}
|
|
356
357
|
return _t(d) ? !0 : (e.append(tr(h, m, i), u(d)), !1);
|
|
357
358
|
}
|
|
358
|
-
const p = [], y = Object.assign(
|
|
359
|
+
const p = [], y = Object.assign(Zo, {
|
|
359
360
|
defaultVisitor: l,
|
|
360
361
|
convertValue: u,
|
|
361
362
|
isVisitable: _t
|
|
@@ -408,13 +409,13 @@ cn.toString = function(e) {
|
|
|
408
409
|
return r(o[0]) + "=" + r(o[1]);
|
|
409
410
|
}, "").join("&");
|
|
410
411
|
};
|
|
411
|
-
function
|
|
412
|
+
function Yo(t) {
|
|
412
413
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
413
414
|
}
|
|
414
415
|
function un(t, e, r) {
|
|
415
416
|
if (!e)
|
|
416
417
|
return t;
|
|
417
|
-
const n = r && r.encode ||
|
|
418
|
+
const n = r && r.encode || Yo;
|
|
418
419
|
f.isFunction(r) && (r = {
|
|
419
420
|
serialize: r
|
|
420
421
|
});
|
|
@@ -484,27 +485,27 @@ const fn = {
|
|
|
484
485
|
silentJSONParsing: !0,
|
|
485
486
|
forcedJSONParsing: !0,
|
|
486
487
|
clarifyTimeoutError: !1
|
|
487
|
-
},
|
|
488
|
+
}, ei = typeof URLSearchParams < "u" ? URLSearchParams : jt, ti = typeof FormData < "u" ? FormData : null, ri = typeof Blob < "u" ? Blob : null, ni = {
|
|
488
489
|
isBrowser: !0,
|
|
489
490
|
classes: {
|
|
490
|
-
URLSearchParams:
|
|
491
|
-
FormData:
|
|
492
|
-
Blob:
|
|
491
|
+
URLSearchParams: ei,
|
|
492
|
+
FormData: ti,
|
|
493
|
+
Blob: ri
|
|
493
494
|
},
|
|
494
495
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
495
|
-
}, Ht = typeof window < "u" && typeof document < "u", Nt = typeof navigator == "object" && navigator || void 0,
|
|
496
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
496
|
+
}, Ht = typeof window < "u" && typeof document < "u", Nt = typeof navigator == "object" && navigator || void 0, oi = Ht && (!Nt || ["ReactNative", "NativeScript", "NS"].indexOf(Nt.product) < 0), ii = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
497
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ai = Ht && window.location.href || "http://localhost", si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
497
498
|
__proto__: null,
|
|
498
499
|
hasBrowserEnv: Ht,
|
|
499
|
-
hasStandardBrowserEnv:
|
|
500
|
-
hasStandardBrowserWebWorkerEnv:
|
|
500
|
+
hasStandardBrowserEnv: oi,
|
|
501
|
+
hasStandardBrowserWebWorkerEnv: ii,
|
|
501
502
|
navigator: Nt,
|
|
502
|
-
origin:
|
|
503
|
+
origin: ai
|
|
503
504
|
}, Symbol.toStringTag, { value: "Module" })), I = {
|
|
504
|
-
...
|
|
505
|
-
...
|
|
505
|
+
...si,
|
|
506
|
+
...ni
|
|
506
507
|
};
|
|
507
|
-
function
|
|
508
|
+
function li(t, e) {
|
|
508
509
|
return Ye(t, new I.classes.URLSearchParams(), {
|
|
509
510
|
visitor: function(r, n, o, i) {
|
|
510
511
|
return I.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
@@ -512,10 +513,10 @@ function si(t, e) {
|
|
|
512
513
|
...e
|
|
513
514
|
});
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function ci(t) {
|
|
516
517
|
return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
517
518
|
}
|
|
518
|
-
function
|
|
519
|
+
function ui(t) {
|
|
519
520
|
const e = {}, r = Object.keys(t);
|
|
520
521
|
let n;
|
|
521
522
|
const o = r.length;
|
|
@@ -529,17 +530,17 @@ function pn(t) {
|
|
|
529
530
|
let a = r[i++];
|
|
530
531
|
if (a === "__proto__") return !0;
|
|
531
532
|
const s = Number.isFinite(+a), c = i >= r.length;
|
|
532
|
-
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] = []), e(r, n, o[a], i) && f.isArray(o[a]) && (o[a] =
|
|
533
|
+
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] = []), e(r, n, o[a], i) && f.isArray(o[a]) && (o[a] = ui(o[a])), !s);
|
|
533
534
|
}
|
|
534
535
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
|
535
536
|
const r = {};
|
|
536
537
|
return f.forEachEntry(t, (n, o) => {
|
|
537
|
-
e(
|
|
538
|
+
e(ci(n), o, r, 0);
|
|
538
539
|
}), r;
|
|
539
540
|
}
|
|
540
541
|
return null;
|
|
541
542
|
}
|
|
542
|
-
function
|
|
543
|
+
function fi(t, e, r) {
|
|
543
544
|
if (f.isString(t))
|
|
544
545
|
try {
|
|
545
546
|
return (e || JSON.parse)(t), f.trim(t);
|
|
@@ -565,7 +566,7 @@ const _e = {
|
|
|
565
566
|
let s;
|
|
566
567
|
if (i) {
|
|
567
568
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
568
|
-
return
|
|
569
|
+
return li(e, this.formSerializer).toString();
|
|
569
570
|
if ((s = f.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
570
571
|
const c = this.env && this.env.FormData;
|
|
571
572
|
return Ye(
|
|
@@ -575,7 +576,7 @@ const _e = {
|
|
|
575
576
|
);
|
|
576
577
|
}
|
|
577
578
|
}
|
|
578
|
-
return i || o ? (r.setContentType("application/json", !1),
|
|
579
|
+
return i || o ? (r.setContentType("application/json", !1), fi(e)) : e;
|
|
579
580
|
}],
|
|
580
581
|
transformResponse: [function(e) {
|
|
581
582
|
const r = this.transitional || _e.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -618,7 +619,7 @@ const _e = {
|
|
|
618
619
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
619
620
|
_e.headers[t] = {};
|
|
620
621
|
});
|
|
621
|
-
const
|
|
622
|
+
const pi = f.toObjectSet([
|
|
622
623
|
"age",
|
|
623
624
|
"authorization",
|
|
624
625
|
"content-length",
|
|
@@ -636,12 +637,12 @@ const fi = f.toObjectSet([
|
|
|
636
637
|
"referer",
|
|
637
638
|
"retry-after",
|
|
638
639
|
"user-agent"
|
|
639
|
-
]),
|
|
640
|
+
]), di = (t) => {
|
|
640
641
|
const e = {};
|
|
641
642
|
let r, n, o;
|
|
642
643
|
return t && t.split(`
|
|
643
644
|
`).forEach(function(a) {
|
|
644
|
-
o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || e[r] &&
|
|
645
|
+
o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || e[r] && pi[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
|
|
645
646
|
}), e;
|
|
646
647
|
}, or = Symbol("internals");
|
|
647
648
|
function Se(t) {
|
|
@@ -650,14 +651,14 @@ function Se(t) {
|
|
|
650
651
|
function ke(t) {
|
|
651
652
|
return t === !1 || t == null ? t : f.isArray(t) ? t.map(ke) : String(t);
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
+
function yi(t) {
|
|
654
655
|
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
655
656
|
let n;
|
|
656
657
|
for (; n = r.exec(t); )
|
|
657
658
|
e[n[1]] = n[2];
|
|
658
659
|
return e;
|
|
659
660
|
}
|
|
660
|
-
const
|
|
661
|
+
const hi = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
661
662
|
function at(t, e, r, n, o) {
|
|
662
663
|
if (f.isFunction(n))
|
|
663
664
|
return n.call(this, e, r);
|
|
@@ -668,10 +669,10 @@ function at(t, e, r, n, o) {
|
|
|
668
669
|
return n.test(e);
|
|
669
670
|
}
|
|
670
671
|
}
|
|
671
|
-
function
|
|
672
|
+
function mi(t) {
|
|
672
673
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
|
|
673
674
|
}
|
|
674
|
-
function
|
|
675
|
+
function gi(t, e) {
|
|
675
676
|
const r = f.toCamelCase(" " + e);
|
|
676
677
|
["get", "set", "has"].forEach((n) => {
|
|
677
678
|
Object.defineProperty(t, n + r, {
|
|
@@ -698,8 +699,8 @@ class D {
|
|
|
698
699
|
const a = (s, c) => f.forEach(s, (u, l) => i(u, l, c));
|
|
699
700
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
700
701
|
a(e, r);
|
|
701
|
-
else if (f.isString(e) && (e = e.trim()) && !
|
|
702
|
-
a(
|
|
702
|
+
else if (f.isString(e) && (e = e.trim()) && !hi(e))
|
|
703
|
+
a(di(e), r);
|
|
703
704
|
else if (f.isObject(e) && f.isIterable(e)) {
|
|
704
705
|
let s = {}, c, u;
|
|
705
706
|
for (const l of e) {
|
|
@@ -720,7 +721,7 @@ class D {
|
|
|
720
721
|
if (!r)
|
|
721
722
|
return o;
|
|
722
723
|
if (r === !0)
|
|
723
|
-
return
|
|
724
|
+
return yi(o);
|
|
724
725
|
if (f.isFunction(r))
|
|
725
726
|
return r.call(this, o, n);
|
|
726
727
|
if (f.isRegExp(r))
|
|
@@ -764,7 +765,7 @@ class D {
|
|
|
764
765
|
r[a] = ke(o), delete r[i];
|
|
765
766
|
return;
|
|
766
767
|
}
|
|
767
|
-
const s = e ?
|
|
768
|
+
const s = e ? mi(i) : String(i).trim();
|
|
768
769
|
s !== i && delete r[i], r[s] = ke(o), n[s] = !0;
|
|
769
770
|
}), this;
|
|
770
771
|
}
|
|
@@ -803,7 +804,7 @@ class D {
|
|
|
803
804
|
}).accessors, o = this.prototype;
|
|
804
805
|
function i(a) {
|
|
805
806
|
const s = Se(a);
|
|
806
|
-
n[s] || (
|
|
807
|
+
n[s] || (gi(o, a), n[s] = !0);
|
|
807
808
|
}
|
|
808
809
|
return f.isArray(e) ? e.forEach(i) : i(e), this;
|
|
809
810
|
}
|
|
@@ -845,11 +846,11 @@ function yn(t, e, r) {
|
|
|
845
846
|
r
|
|
846
847
|
));
|
|
847
848
|
}
|
|
848
|
-
function
|
|
849
|
+
function vi(t) {
|
|
849
850
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
850
851
|
return e && e[1] || "";
|
|
851
852
|
}
|
|
852
|
-
function
|
|
853
|
+
function wi(t, e) {
|
|
853
854
|
t = t || 10;
|
|
854
855
|
const r = new Array(t), n = new Array(t);
|
|
855
856
|
let o = 0, i = 0, a;
|
|
@@ -865,7 +866,7 @@ function vi(t, e) {
|
|
|
865
866
|
return v ? Math.round(y * 1e3 / v) : void 0;
|
|
866
867
|
};
|
|
867
868
|
}
|
|
868
|
-
function
|
|
869
|
+
function Si(t, e) {
|
|
869
870
|
let r = 0, n = 1e3 / e, o, i;
|
|
870
871
|
const a = (u, l = Date.now()) => {
|
|
871
872
|
r = l, o = null, i && (clearTimeout(i), i = null), t(...u);
|
|
@@ -879,8 +880,8 @@ function wi(t, e) {
|
|
|
879
880
|
}
|
|
880
881
|
const We = (t, e, r = 3) => {
|
|
881
882
|
let n = 0;
|
|
882
|
-
const o =
|
|
883
|
-
return
|
|
883
|
+
const o = wi(50, 250);
|
|
884
|
+
return Si((i) => {
|
|
884
885
|
const a = i.loaded, s = i.lengthComputable ? i.total : void 0, c = a - n, u = o(c), l = a <= s;
|
|
885
886
|
n = a;
|
|
886
887
|
const p = {
|
|
@@ -903,10 +904,10 @@ const We = (t, e, r = 3) => {
|
|
|
903
904
|
total: t,
|
|
904
905
|
loaded: n
|
|
905
906
|
}), e[1]];
|
|
906
|
-
}, ar = (t) => (...e) => f.asap(() => t(...e)),
|
|
907
|
+
}, ar = (t) => (...e) => f.asap(() => t(...e)), bi = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, I.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
|
|
907
908
|
new URL(I.origin),
|
|
908
909
|
I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
|
|
909
|
-
) : () => !0,
|
|
910
|
+
) : () => !0, Ei = I.hasStandardBrowserEnv ? (
|
|
910
911
|
// Standard browser envs support document.cookie
|
|
911
912
|
{
|
|
912
913
|
write(t, e, r, n, o, i, a) {
|
|
@@ -935,15 +936,15 @@ const We = (t, e, r = 3) => {
|
|
|
935
936
|
}
|
|
936
937
|
}
|
|
937
938
|
);
|
|
938
|
-
function
|
|
939
|
+
function Oi(t) {
|
|
939
940
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
+
function Ai(t, e) {
|
|
942
943
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
943
944
|
}
|
|
944
945
|
function hn(t, e, r) {
|
|
945
|
-
let n = !
|
|
946
|
-
return t && (n || r == !1) ?
|
|
946
|
+
let n = !Oi(e);
|
|
947
|
+
return t && (n || r == !1) ? Ai(t, e) : e;
|
|
947
948
|
}
|
|
948
949
|
const sr = (t) => t instanceof D ? { ...t } : t;
|
|
949
950
|
function ne(t, e) {
|
|
@@ -1026,12 +1027,12 @@ const mn = (t) => {
|
|
|
1026
1027
|
});
|
|
1027
1028
|
}
|
|
1028
1029
|
}
|
|
1029
|
-
if (I.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(e)), n || n !== !1 &&
|
|
1030
|
-
const c = o && i &&
|
|
1030
|
+
if (I.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(e)), n || n !== !1 && bi(e.url))) {
|
|
1031
|
+
const c = o && i && Ei.read(i);
|
|
1031
1032
|
c && a.set(o, c);
|
|
1032
1033
|
}
|
|
1033
1034
|
return e;
|
|
1034
|
-
},
|
|
1035
|
+
}, Ri = typeof XMLHttpRequest < "u", Pi = Ri && function(t) {
|
|
1035
1036
|
return new Promise(function(r, n) {
|
|
1036
1037
|
const o = mn(t);
|
|
1037
1038
|
let i = o.data;
|
|
@@ -1082,14 +1083,14 @@ const mn = (t) => {
|
|
|
1082
1083
|
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([y, d] = We(u, !0), h.addEventListener("progress", y)), c && h.upload && ([p, v] = We(c), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
|
|
1083
1084
|
h && (n(!g || g.type ? new me(null, t, h) : g), h.abort(), h = null);
|
|
1084
1085
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1085
|
-
const O =
|
|
1086
|
+
const O = vi(o.url);
|
|
1086
1087
|
if (O && I.protocols.indexOf(O) === -1) {
|
|
1087
1088
|
n(new w("Unsupported protocol " + O + ":", w.ERR_BAD_REQUEST, t));
|
|
1088
1089
|
return;
|
|
1089
1090
|
}
|
|
1090
1091
|
h.send(i || null);
|
|
1091
1092
|
});
|
|
1092
|
-
},
|
|
1093
|
+
}, Ti = (t, e) => {
|
|
1093
1094
|
const { length: r } = t = t ? t.filter(Boolean) : [];
|
|
1094
1095
|
if (e || r) {
|
|
1095
1096
|
let n = new AbortController(), o;
|
|
@@ -1112,7 +1113,7 @@ const mn = (t) => {
|
|
|
1112
1113
|
const { signal: c } = n;
|
|
1113
1114
|
return c.unsubscribe = () => f.asap(s), c;
|
|
1114
1115
|
}
|
|
1115
|
-
},
|
|
1116
|
+
}, xi = function* (t, e) {
|
|
1116
1117
|
let r = t.byteLength;
|
|
1117
1118
|
if (r < e) {
|
|
1118
1119
|
yield t;
|
|
@@ -1121,10 +1122,10 @@ const mn = (t) => {
|
|
|
1121
1122
|
let n = 0, o;
|
|
1122
1123
|
for (; n < r; )
|
|
1123
1124
|
o = n + e, yield t.slice(n, o), n = o;
|
|
1124
|
-
},
|
|
1125
|
-
for await (const r of
|
|
1126
|
-
yield*
|
|
1127
|
-
},
|
|
1125
|
+
}, Ci = async function* (t, e) {
|
|
1126
|
+
for await (const r of _i(t))
|
|
1127
|
+
yield* xi(r, e);
|
|
1128
|
+
}, _i = async function* (t) {
|
|
1128
1129
|
if (t[Symbol.asyncIterator]) {
|
|
1129
1130
|
yield* t;
|
|
1130
1131
|
return;
|
|
@@ -1141,7 +1142,7 @@ const mn = (t) => {
|
|
|
1141
1142
|
await e.cancel();
|
|
1142
1143
|
}
|
|
1143
1144
|
}, lr = (t, e, r, n) => {
|
|
1144
|
-
const o =
|
|
1145
|
+
const o = Ci(t, e);
|
|
1145
1146
|
let i = 0, a, s = (c) => {
|
|
1146
1147
|
a || (a = !0, n && n(c));
|
|
1147
1148
|
};
|
|
@@ -1169,7 +1170,7 @@ const mn = (t) => {
|
|
|
1169
1170
|
}, {
|
|
1170
1171
|
highWaterMark: 2
|
|
1171
1172
|
});
|
|
1172
|
-
}, cr = 64 * 1024, { isFunction: De } = f,
|
|
1173
|
+
}, cr = 64 * 1024, { isFunction: De } = f, Ni = (({ Request: t, Response: e }) => ({
|
|
1173
1174
|
Request: t,
|
|
1174
1175
|
Response: e
|
|
1175
1176
|
}))(f.global), {
|
|
@@ -1181,10 +1182,10 @@ const mn = (t) => {
|
|
|
1181
1182
|
} catch {
|
|
1182
1183
|
return !1;
|
|
1183
1184
|
}
|
|
1184
|
-
},
|
|
1185
|
+
}, Fi = (t) => {
|
|
1185
1186
|
t = f.merge.call({
|
|
1186
1187
|
skipUndefined: !0
|
|
1187
|
-
},
|
|
1188
|
+
}, Ni, t);
|
|
1188
1189
|
const { fetch: e, Request: r, Response: n } = t, o = e ? De(e) : typeof fetch == "function", i = De(r), a = De(n);
|
|
1189
1190
|
if (!o)
|
|
1190
1191
|
return !1;
|
|
@@ -1243,7 +1244,7 @@ const mn = (t) => {
|
|
|
1243
1244
|
fetchOptions: M
|
|
1244
1245
|
} = mn(d), Z = e || fetch;
|
|
1245
1246
|
T = T ? (T + "").toLowerCase() : "text";
|
|
1246
|
-
let k =
|
|
1247
|
+
let k = Ti([O, g && g.toAbortSignal()], E), _ = null;
|
|
1247
1248
|
const N = k && k.unsubscribe && (() => {
|
|
1248
1249
|
k.unsubscribe();
|
|
1249
1250
|
});
|
|
@@ -1313,22 +1314,22 @@ const mn = (t) => {
|
|
|
1313
1314
|
) : w.from(F, F && F.code, d, _);
|
|
1314
1315
|
}
|
|
1315
1316
|
};
|
|
1316
|
-
},
|
|
1317
|
+
}, Ii = /* @__PURE__ */ new Map(), gn = (t) => {
|
|
1317
1318
|
let e = t && t.env || {};
|
|
1318
1319
|
const { fetch: r, Request: n, Response: o } = e, i = [
|
|
1319
1320
|
n,
|
|
1320
1321
|
o,
|
|
1321
1322
|
r
|
|
1322
1323
|
];
|
|
1323
|
-
let a = i.length, s = a, c, u, l =
|
|
1324
|
+
let a = i.length, s = a, c, u, l = Ii;
|
|
1324
1325
|
for (; s--; )
|
|
1325
|
-
c = i[s], u = l.get(c), u === void 0 && l.set(c, u = s ? /* @__PURE__ */ new Map() :
|
|
1326
|
+
c = i[s], u = l.get(c), u === void 0 && l.set(c, u = s ? /* @__PURE__ */ new Map() : Fi(e)), l = u;
|
|
1326
1327
|
return u;
|
|
1327
1328
|
};
|
|
1328
1329
|
gn();
|
|
1329
1330
|
const zt = {
|
|
1330
|
-
http:
|
|
1331
|
-
xhr:
|
|
1331
|
+
http: Qo,
|
|
1332
|
+
xhr: Pi,
|
|
1332
1333
|
fetch: {
|
|
1333
1334
|
get: gn
|
|
1334
1335
|
}
|
|
@@ -1342,8 +1343,8 @@ f.forEach(zt, (t, e) => {
|
|
|
1342
1343
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1343
1344
|
}
|
|
1344
1345
|
});
|
|
1345
|
-
const dr = (t) => `- ${t}`,
|
|
1346
|
-
function
|
|
1346
|
+
const dr = (t) => `- ${t}`, $i = (t) => f.isFunction(t) || t === null || t === !1;
|
|
1347
|
+
function Di(t, e) {
|
|
1347
1348
|
t = f.isArray(t) ? t : [t];
|
|
1348
1349
|
const { length: r } = t;
|
|
1349
1350
|
let n, o;
|
|
@@ -1351,7 +1352,7 @@ function $i(t, e) {
|
|
|
1351
1352
|
for (let a = 0; a < r; a++) {
|
|
1352
1353
|
n = t[a];
|
|
1353
1354
|
let s;
|
|
1354
|
-
if (o = n,
|
|
1355
|
+
if (o = n, !$i(n) && (o = zt[(s = String(n)).toLowerCase()], o === void 0))
|
|
1355
1356
|
throw new w(`Unknown adapter '${s}'`);
|
|
1356
1357
|
if (o && (f.isFunction(o) || (o = o.get(e))))
|
|
1357
1358
|
break;
|
|
@@ -1376,7 +1377,7 @@ const vn = {
|
|
|
1376
1377
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1377
1378
|
* @type {Function}
|
|
1378
1379
|
*/
|
|
1379
|
-
getAdapter:
|
|
1380
|
+
getAdapter: Di,
|
|
1380
1381
|
/**
|
|
1381
1382
|
* Exposes all known adapters
|
|
1382
1383
|
* @type {Object<string, Function|Object>}
|
|
@@ -1428,7 +1429,7 @@ et.transitional = function(e, r, n) {
|
|
|
1428
1429
|
et.spelling = function(e) {
|
|
1429
1430
|
return (r, n) => !0;
|
|
1430
1431
|
};
|
|
1431
|
-
function
|
|
1432
|
+
function Li(t, e, r) {
|
|
1432
1433
|
if (typeof t != "object")
|
|
1433
1434
|
throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
|
|
1434
1435
|
const n = Object.keys(t);
|
|
@@ -1446,7 +1447,7 @@ function Di(t, e, r) {
|
|
|
1446
1447
|
}
|
|
1447
1448
|
}
|
|
1448
1449
|
const qe = {
|
|
1449
|
-
assertOptions:
|
|
1450
|
+
assertOptions: Li,
|
|
1450
1451
|
validators: et
|
|
1451
1452
|
}, H = qe.validators;
|
|
1452
1453
|
class te {
|
|
@@ -1646,12 +1647,12 @@ class Wt {
|
|
|
1646
1647
|
};
|
|
1647
1648
|
}
|
|
1648
1649
|
}
|
|
1649
|
-
function
|
|
1650
|
+
function Ui(t) {
|
|
1650
1651
|
return function(r) {
|
|
1651
1652
|
return t.apply(null, r);
|
|
1652
1653
|
};
|
|
1653
1654
|
}
|
|
1654
|
-
function
|
|
1655
|
+
function Bi(t) {
|
|
1655
1656
|
return f.isObject(t) && t.isAxiosError === !0;
|
|
1656
1657
|
}
|
|
1657
1658
|
const Ft = {
|
|
@@ -1746,8 +1747,8 @@ R.Cancel = R.CanceledError;
|
|
|
1746
1747
|
R.all = function(e) {
|
|
1747
1748
|
return Promise.all(e);
|
|
1748
1749
|
};
|
|
1749
|
-
R.spread =
|
|
1750
|
-
R.isAxiosError =
|
|
1750
|
+
R.spread = Ui;
|
|
1751
|
+
R.isAxiosError = Bi;
|
|
1751
1752
|
R.mergeConfig = ne;
|
|
1752
1753
|
R.AxiosHeaders = D;
|
|
1753
1754
|
R.formToJSON = (t) => pn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
@@ -1755,10 +1756,10 @@ R.getAdapter = vn.getAdapter;
|
|
|
1755
1756
|
R.HttpStatusCode = Ft;
|
|
1756
1757
|
R.default = R;
|
|
1757
1758
|
var mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1758
|
-
function
|
|
1759
|
+
function Mi(t) {
|
|
1759
1760
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1760
1761
|
}
|
|
1761
|
-
function
|
|
1762
|
+
function ki(t) {
|
|
1762
1763
|
if (t.__esModule) return t;
|
|
1763
1764
|
var e = t.default;
|
|
1764
1765
|
if (typeof e == "function") {
|
|
@@ -1778,11 +1779,11 @@ function Mi(t) {
|
|
|
1778
1779
|
}), r;
|
|
1779
1780
|
}
|
|
1780
1781
|
var ge = TypeError;
|
|
1781
|
-
const
|
|
1782
|
+
const qi = {}, ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1782
1783
|
__proto__: null,
|
|
1783
|
-
default:
|
|
1784
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1785
|
-
var Gt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ge = Gt && ct && typeof ct.get == "function" ? ct.get : null, gr = Gt && Map.prototype.forEach, Jt = typeof Set == "function" && Set.prototype, ut = Object.getOwnPropertyDescriptor && Jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = Jt && ut && typeof ut.get == "function" ? ut.get : null, vr = Jt && Set.prototype.forEach,
|
|
1784
|
+
default: qi
|
|
1785
|
+
}, Symbol.toStringTag, { value: "Module" })), Hi = /* @__PURE__ */ ki(ji);
|
|
1786
|
+
var Gt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ge = Gt && ct && typeof ct.get == "function" ? ct.get : null, gr = Gt && Map.prototype.forEach, Jt = typeof Set == "function" && Set.prototype, ut = Object.getOwnPropertyDescriptor && Jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = Jt && ut && typeof ut.get == "function" ? ut.get : null, vr = Jt && Set.prototype.forEach, zi = typeof WeakMap == "function" && WeakMap.prototype, Ee = zi ? WeakMap.prototype.has : null, Wi = typeof WeakSet == "function" && WeakSet.prototype, Oe = Wi ? WeakSet.prototype.has : null, Gi = typeof WeakRef == "function" && WeakRef.prototype, wr = Gi ? WeakRef.prototype.deref : null, Ji = Boolean.prototype.valueOf, Vi = Object.prototype.toString, Ki = Function.prototype.toString, Qi = String.prototype.match, Vt = String.prototype.slice, Q = String.prototype.replace, Xi = String.prototype.toUpperCase, Sr = String.prototype.toLowerCase, bn = RegExp.prototype.test, br = Array.prototype.concat, G = Array.prototype.join, Zi = Array.prototype.slice, Er = Math.floor, It = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ft = Object.getOwnPropertySymbols, $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, de = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ae = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === de || !0) ? Symbol.toStringTag : null, En = Object.prototype.propertyIsEnumerable, Or = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1786
1787
|
return t.__proto__;
|
|
1787
1788
|
} : null);
|
|
1788
1789
|
function Ar(t, e) {
|
|
@@ -1798,11 +1799,11 @@ function Ar(t, e) {
|
|
|
1798
1799
|
}
|
|
1799
1800
|
return Q.call(e, r, "$&_");
|
|
1800
1801
|
}
|
|
1801
|
-
var Dt =
|
|
1802
|
+
var Dt = Hi, Rr = Dt.custom, Pr = Rn(Rr) ? Rr : null, On = {
|
|
1802
1803
|
__proto__: null,
|
|
1803
1804
|
double: '"',
|
|
1804
1805
|
single: "'"
|
|
1805
|
-
},
|
|
1806
|
+
}, Yi = {
|
|
1806
1807
|
__proto__: null,
|
|
1807
1808
|
double: /(["\\])/g,
|
|
1808
1809
|
single: /(['\\])/g
|
|
@@ -1841,13 +1842,13 @@ var Dt = ji, Rr = Dt.custom, Pr = Rn(Rr) ? Rr : null, On = {
|
|
|
1841
1842
|
var l = typeof i.depth > "u" ? 5 : i.depth;
|
|
1842
1843
|
if (typeof n > "u" && (n = 0), n >= l && l > 0 && typeof e == "object")
|
|
1843
1844
|
return Lt(e) ? "[Array]" : "[Object]";
|
|
1844
|
-
var p =
|
|
1845
|
+
var p = ga(i, n);
|
|
1845
1846
|
if (typeof o > "u")
|
|
1846
1847
|
o = [];
|
|
1847
1848
|
else if (Pn(o, e) >= 0)
|
|
1848
1849
|
return "[Circular]";
|
|
1849
1850
|
function y(_, N, B) {
|
|
1850
|
-
if (N && (o =
|
|
1851
|
+
if (N && (o = Zi.call(o), o.push(N)), B) {
|
|
1851
1852
|
var F = {
|
|
1852
1853
|
depth: i.depth
|
|
1853
1854
|
};
|
|
@@ -1856,25 +1857,25 @@ var Dt = ji, Rr = Dt.custom, Pr = Rn(Rr) ? Rr : null, On = {
|
|
|
1856
1857
|
return t(_, i, n + 1, o);
|
|
1857
1858
|
}
|
|
1858
1859
|
if (typeof e == "function" && !Tr(e)) {
|
|
1859
|
-
var v =
|
|
1860
|
+
var v = la(e), d = Le(e, y);
|
|
1860
1861
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " + G.call(d, ", ") + " }" : "");
|
|
1861
1862
|
}
|
|
1862
1863
|
if (Rn(e)) {
|
|
1863
1864
|
var m = de ? Q.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : $t.call(e);
|
|
1864
1865
|
return typeof e == "object" && !de ? be(m) : m;
|
|
1865
1866
|
}
|
|
1866
|
-
if (
|
|
1867
|
+
if (ya(e)) {
|
|
1867
1868
|
for (var h = "<" + Sr.call(String(e.nodeName)), b = e.attributes || [], O = 0; O < b.length; O++)
|
|
1868
|
-
h += " " + b[O].name + "=" + An(
|
|
1869
|
+
h += " " + b[O].name + "=" + An(ea(b[O].value), "double", i);
|
|
1869
1870
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + Sr.call(String(e.nodeName)) + ">", h;
|
|
1870
1871
|
}
|
|
1871
1872
|
if (Lt(e)) {
|
|
1872
1873
|
if (e.length === 0)
|
|
1873
1874
|
return "[]";
|
|
1874
1875
|
var g = Le(e, y);
|
|
1875
|
-
return p && !
|
|
1876
|
+
return p && !ma(g) ? "[" + Ut(g, p) + "]" : "[ " + G.call(g, ", ") + " ]";
|
|
1876
1877
|
}
|
|
1877
|
-
if (
|
|
1878
|
+
if (ra(e)) {
|
|
1878
1879
|
var E = Le(e, y);
|
|
1879
1880
|
return !("cause" in Error.prototype) && "cause" in e && !En.call(e, "cause") ? "{ [" + String(e) + "] " + G.call(br.call("[cause]: " + y(e.cause), E), ", ") + " }" : E.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + G.call(E, ", ") + " }";
|
|
1880
1881
|
}
|
|
@@ -1884,37 +1885,37 @@ var Dt = ji, Rr = Dt.custom, Pr = Rn(Rr) ? Rr : null, On = {
|
|
|
1884
1885
|
if (a !== "symbol" && typeof e.inspect == "function")
|
|
1885
1886
|
return e.inspect();
|
|
1886
1887
|
}
|
|
1887
|
-
if (
|
|
1888
|
+
if (ca(e)) {
|
|
1888
1889
|
var P = [];
|
|
1889
1890
|
return gr && gr.call(e, function(_, N) {
|
|
1890
1891
|
P.push(y(N, e, !0) + " => " + y(_, e));
|
|
1891
1892
|
}), xr("Map", Ge.call(e), P, p);
|
|
1892
1893
|
}
|
|
1893
|
-
if (
|
|
1894
|
+
if (pa(e)) {
|
|
1894
1895
|
var L = [];
|
|
1895
1896
|
return vr && vr.call(e, function(_) {
|
|
1896
1897
|
L.push(y(_, e));
|
|
1897
1898
|
}), xr("Set", Je.call(e), L, p);
|
|
1898
1899
|
}
|
|
1899
|
-
if (
|
|
1900
|
+
if (ua(e))
|
|
1900
1901
|
return pt("WeakMap");
|
|
1901
|
-
if (
|
|
1902
|
+
if (da(e))
|
|
1902
1903
|
return pt("WeakSet");
|
|
1903
|
-
if (
|
|
1904
|
+
if (fa(e))
|
|
1904
1905
|
return pt("WeakRef");
|
|
1905
|
-
if (
|
|
1906
|
+
if (oa(e))
|
|
1906
1907
|
return be(y(Number(e)));
|
|
1907
|
-
if (
|
|
1908
|
+
if (aa(e))
|
|
1908
1909
|
return be(y(It.call(e)));
|
|
1909
|
-
if (
|
|
1910
|
-
return be(
|
|
1911
|
-
if (
|
|
1910
|
+
if (ia(e))
|
|
1911
|
+
return be(Ji.call(e));
|
|
1912
|
+
if (na(e))
|
|
1912
1913
|
return be(y(String(e)));
|
|
1913
1914
|
if (typeof window < "u" && e === window)
|
|
1914
1915
|
return "{ [object Window] }";
|
|
1915
1916
|
if (typeof globalThis < "u" && e === globalThis || typeof mr < "u" && e === mr)
|
|
1916
1917
|
return "{ [object globalThis] }";
|
|
1917
|
-
if (!
|
|
1918
|
+
if (!ta(e) && !Tr(e)) {
|
|
1918
1919
|
var T = Le(e, y), V = Or ? Or(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", M = !V && Ae && Object(e) === e && Ae in e ? Vt.call(X(e), 8, -1) : U ? "Object" : "", Z = V || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = Z + (M || U ? "[" + G.call(br.call([], M || [], U || []), ": ") + "] " : "");
|
|
1919
1920
|
return T.length === 0 ? k + "{}" : p ? k + "{" + Ut(T, p) + "}" : k + "{ " + G.call(T, ", ") + " }";
|
|
1920
1921
|
}
|
|
@@ -1924,7 +1925,7 @@ function An(t, e, r) {
|
|
|
1924
1925
|
var n = r.quoteStyle || e, o = On[n];
|
|
1925
1926
|
return o + t + o;
|
|
1926
1927
|
}
|
|
1927
|
-
function
|
|
1928
|
+
function ea(t) {
|
|
1928
1929
|
return Q.call(String(t), /"/g, """);
|
|
1929
1930
|
}
|
|
1930
1931
|
function ie(t) {
|
|
@@ -1933,22 +1934,22 @@ function ie(t) {
|
|
|
1933
1934
|
function Lt(t) {
|
|
1934
1935
|
return X(t) === "[object Array]" && ie(t);
|
|
1935
1936
|
}
|
|
1936
|
-
function
|
|
1937
|
+
function ta(t) {
|
|
1937
1938
|
return X(t) === "[object Date]" && ie(t);
|
|
1938
1939
|
}
|
|
1939
1940
|
function Tr(t) {
|
|
1940
1941
|
return X(t) === "[object RegExp]" && ie(t);
|
|
1941
1942
|
}
|
|
1942
|
-
function
|
|
1943
|
+
function ra(t) {
|
|
1943
1944
|
return X(t) === "[object Error]" && ie(t);
|
|
1944
1945
|
}
|
|
1945
|
-
function
|
|
1946
|
+
function na(t) {
|
|
1946
1947
|
return X(t) === "[object String]" && ie(t);
|
|
1947
1948
|
}
|
|
1948
|
-
function
|
|
1949
|
+
function oa(t) {
|
|
1949
1950
|
return X(t) === "[object Number]" && ie(t);
|
|
1950
1951
|
}
|
|
1951
|
-
function
|
|
1952
|
+
function ia(t) {
|
|
1952
1953
|
return X(t) === "[object Boolean]" && ie(t);
|
|
1953
1954
|
}
|
|
1954
1955
|
function Rn(t) {
|
|
@@ -1964,7 +1965,7 @@ function Rn(t) {
|
|
|
1964
1965
|
}
|
|
1965
1966
|
return !1;
|
|
1966
1967
|
}
|
|
1967
|
-
function
|
|
1968
|
+
function aa(t) {
|
|
1968
1969
|
if (!t || typeof t != "object" || !It)
|
|
1969
1970
|
return !1;
|
|
1970
1971
|
try {
|
|
@@ -1973,19 +1974,19 @@ function ia(t) {
|
|
|
1973
1974
|
}
|
|
1974
1975
|
return !1;
|
|
1975
1976
|
}
|
|
1976
|
-
var
|
|
1977
|
+
var sa = Object.prototype.hasOwnProperty || function(t) {
|
|
1977
1978
|
return t in this;
|
|
1978
1979
|
};
|
|
1979
1980
|
function J(t, e) {
|
|
1980
|
-
return
|
|
1981
|
+
return sa.call(t, e);
|
|
1981
1982
|
}
|
|
1982
1983
|
function X(t) {
|
|
1983
|
-
return
|
|
1984
|
+
return Vi.call(t);
|
|
1984
1985
|
}
|
|
1985
|
-
function
|
|
1986
|
+
function la(t) {
|
|
1986
1987
|
if (t.name)
|
|
1987
1988
|
return t.name;
|
|
1988
|
-
var e =
|
|
1989
|
+
var e = Qi.call(Ki.call(t), /^function\s*([\w$]+)/);
|
|
1989
1990
|
return e ? e[1] : null;
|
|
1990
1991
|
}
|
|
1991
1992
|
function Pn(t, e) {
|
|
@@ -1996,7 +1997,7 @@ function Pn(t, e) {
|
|
|
1996
1997
|
return r;
|
|
1997
1998
|
return -1;
|
|
1998
1999
|
}
|
|
1999
|
-
function
|
|
2000
|
+
function ca(t) {
|
|
2000
2001
|
if (!Ge || !t || typeof t != "object")
|
|
2001
2002
|
return !1;
|
|
2002
2003
|
try {
|
|
@@ -2011,7 +2012,7 @@ function la(t) {
|
|
|
2011
2012
|
}
|
|
2012
2013
|
return !1;
|
|
2013
2014
|
}
|
|
2014
|
-
function
|
|
2015
|
+
function ua(t) {
|
|
2015
2016
|
if (!Ee || !t || typeof t != "object")
|
|
2016
2017
|
return !1;
|
|
2017
2018
|
try {
|
|
@@ -2026,7 +2027,7 @@ function ca(t) {
|
|
|
2026
2027
|
}
|
|
2027
2028
|
return !1;
|
|
2028
2029
|
}
|
|
2029
|
-
function
|
|
2030
|
+
function fa(t) {
|
|
2030
2031
|
if (!wr || !t || typeof t != "object")
|
|
2031
2032
|
return !1;
|
|
2032
2033
|
try {
|
|
@@ -2035,7 +2036,7 @@ function ua(t) {
|
|
|
2035
2036
|
}
|
|
2036
2037
|
return !1;
|
|
2037
2038
|
}
|
|
2038
|
-
function
|
|
2039
|
+
function pa(t) {
|
|
2039
2040
|
if (!Je || !t || typeof t != "object")
|
|
2040
2041
|
return !1;
|
|
2041
2042
|
try {
|
|
@@ -2050,7 +2051,7 @@ function fa(t) {
|
|
|
2050
2051
|
}
|
|
2051
2052
|
return !1;
|
|
2052
2053
|
}
|
|
2053
|
-
function
|
|
2054
|
+
function da(t) {
|
|
2054
2055
|
if (!Oe || !t || typeof t != "object")
|
|
2055
2056
|
return !1;
|
|
2056
2057
|
try {
|
|
@@ -2065,7 +2066,7 @@ function pa(t) {
|
|
|
2065
2066
|
}
|
|
2066
2067
|
return !1;
|
|
2067
2068
|
}
|
|
2068
|
-
function
|
|
2069
|
+
function ya(t) {
|
|
2069
2070
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
2070
2071
|
}
|
|
2071
2072
|
function Tn(t, e) {
|
|
@@ -2073,12 +2074,12 @@ function Tn(t, e) {
|
|
|
2073
2074
|
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
2074
2075
|
return Tn(Vt.call(t, 0, e.maxStringLength), e) + n;
|
|
2075
2076
|
}
|
|
2076
|
-
var o =
|
|
2077
|
+
var o = Yi[e.quoteStyle || "single"];
|
|
2077
2078
|
o.lastIndex = 0;
|
|
2078
|
-
var i = Q.call(Q.call(t, o, "\\$1"), /[\x00-\x1f]/g,
|
|
2079
|
+
var i = Q.call(Q.call(t, o, "\\$1"), /[\x00-\x1f]/g, ha);
|
|
2079
2080
|
return An(i, "single", e);
|
|
2080
2081
|
}
|
|
2081
|
-
function
|
|
2082
|
+
function ha(t) {
|
|
2082
2083
|
var e = t.charCodeAt(0), r = {
|
|
2083
2084
|
8: "b",
|
|
2084
2085
|
9: "t",
|
|
@@ -2086,7 +2087,7 @@ function ya(t) {
|
|
|
2086
2087
|
12: "f",
|
|
2087
2088
|
13: "r"
|
|
2088
2089
|
}[e];
|
|
2089
|
-
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") +
|
|
2090
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Xi.call(e.toString(16));
|
|
2090
2091
|
}
|
|
2091
2092
|
function be(t) {
|
|
2092
2093
|
return "Object(" + t + ")";
|
|
@@ -2098,14 +2099,14 @@ function xr(t, e, r, n) {
|
|
|
2098
2099
|
var o = n ? Ut(r, n) : G.call(r, ", ");
|
|
2099
2100
|
return t + " (" + e + ") {" + o + "}";
|
|
2100
2101
|
}
|
|
2101
|
-
function
|
|
2102
|
+
function ma(t) {
|
|
2102
2103
|
for (var e = 0; e < t.length; e++)
|
|
2103
2104
|
if (Pn(t[e], `
|
|
2104
2105
|
`) >= 0)
|
|
2105
2106
|
return !1;
|
|
2106
2107
|
return !0;
|
|
2107
2108
|
}
|
|
2108
|
-
function
|
|
2109
|
+
function ga(t, e) {
|
|
2109
2110
|
var r;
|
|
2110
2111
|
if (t.indent === " ")
|
|
2111
2112
|
r = " ";
|
|
@@ -2146,17 +2147,17 @@ function Le(t, e) {
|
|
|
2146
2147
|
En.call(t, i[u]) && n.push("[" + e(i[u]) + "]: " + e(t[i[u]], t));
|
|
2147
2148
|
return n;
|
|
2148
2149
|
}
|
|
2149
|
-
var
|
|
2150
|
+
var va = tt, wa = ge, rt = function(t, e, r) {
|
|
2150
2151
|
for (var n = t, o; (o = n.next) != null; n = o)
|
|
2151
2152
|
if (o.key === e)
|
|
2152
2153
|
return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2153
2154
|
t.next, t.next = o), o;
|
|
2154
|
-
},
|
|
2155
|
+
}, Sa = function(t, e) {
|
|
2155
2156
|
if (t) {
|
|
2156
2157
|
var r = rt(t, e);
|
|
2157
2158
|
return r && r.value;
|
|
2158
2159
|
}
|
|
2159
|
-
},
|
|
2160
|
+
}, ba = function(t, e, r) {
|
|
2160
2161
|
var n = rt(t, e);
|
|
2161
2162
|
n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2162
2163
|
{
|
|
@@ -2165,31 +2166,31 @@ var ga = tt, va = ge, rt = function(t, e, r) {
|
|
|
2165
2166
|
next: t.next,
|
|
2166
2167
|
value: r
|
|
2167
2168
|
};
|
|
2168
|
-
}, ba = function(t, e) {
|
|
2169
|
-
return t ? !!rt(t, e) : !1;
|
|
2170
2169
|
}, Ea = function(t, e) {
|
|
2170
|
+
return t ? !!rt(t, e) : !1;
|
|
2171
|
+
}, Oa = function(t, e) {
|
|
2171
2172
|
if (t)
|
|
2172
2173
|
return rt(t, e, !0);
|
|
2173
|
-
},
|
|
2174
|
+
}, Aa = function() {
|
|
2174
2175
|
var e, r = {
|
|
2175
2176
|
assert: function(n) {
|
|
2176
2177
|
if (!r.has(n))
|
|
2177
|
-
throw new
|
|
2178
|
+
throw new wa("Side channel does not contain " + va(n));
|
|
2178
2179
|
},
|
|
2179
2180
|
delete: function(n) {
|
|
2180
|
-
var o = e && e.next, i =
|
|
2181
|
+
var o = e && e.next, i = Oa(e, n);
|
|
2181
2182
|
return i && o && o === i && (e = void 0), !!i;
|
|
2182
2183
|
},
|
|
2183
2184
|
get: function(n) {
|
|
2184
|
-
return
|
|
2185
|
+
return Sa(e, n);
|
|
2185
2186
|
},
|
|
2186
2187
|
has: function(n) {
|
|
2187
|
-
return
|
|
2188
|
+
return Ea(e, n);
|
|
2188
2189
|
},
|
|
2189
2190
|
set: function(n, o) {
|
|
2190
2191
|
e || (e = {
|
|
2191
2192
|
next: void 0
|
|
2192
|
-
}),
|
|
2193
|
+
}), ba(
|
|
2193
2194
|
/** @type {NonNullable<typeof $o>} */
|
|
2194
2195
|
e,
|
|
2195
2196
|
n,
|
|
@@ -2198,11 +2199,11 @@ var ga = tt, va = ge, rt = function(t, e, r) {
|
|
|
2198
2199
|
}
|
|
2199
2200
|
};
|
|
2200
2201
|
return r;
|
|
2201
|
-
}, xn = Object,
|
|
2202
|
+
}, xn = Object, Ra = Error, Pa = EvalError, Ta = RangeError, xa = ReferenceError, Ca = SyntaxError, _a = URIError, Na = Math.abs, Fa = Math.floor, Ia = Math.max, $a = Math.min, Da = Math.pow, La = Math.round, Ua = Number.isNaN || function(e) {
|
|
2202
2203
|
return e !== e;
|
|
2203
|
-
},
|
|
2204
|
-
return
|
|
2205
|
-
},
|
|
2204
|
+
}, Ba = Ua, Ma = function(e) {
|
|
2205
|
+
return Ba(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2206
|
+
}, ka = Object.getOwnPropertyDescriptor, je = ka;
|
|
2206
2207
|
if (je)
|
|
2207
2208
|
try {
|
|
2208
2209
|
je([], "length");
|
|
@@ -2216,8 +2217,8 @@ if (He)
|
|
|
2216
2217
|
} catch {
|
|
2217
2218
|
He = !1;
|
|
2218
2219
|
}
|
|
2219
|
-
var
|
|
2220
|
-
function
|
|
2220
|
+
var qa = He, dt, Cr;
|
|
2221
|
+
function ja() {
|
|
2221
2222
|
return Cr || (Cr = 1, dt = function() {
|
|
2222
2223
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2223
2224
|
return !1;
|
|
@@ -2247,10 +2248,10 @@ function qa() {
|
|
|
2247
2248
|
}), dt;
|
|
2248
2249
|
}
|
|
2249
2250
|
var yt, _r;
|
|
2250
|
-
function
|
|
2251
|
+
function Ha() {
|
|
2251
2252
|
if (_r) return yt;
|
|
2252
2253
|
_r = 1;
|
|
2253
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
2254
|
+
var t = typeof Symbol < "u" && Symbol, e = ja();
|
|
2254
2255
|
return yt = function() {
|
|
2255
2256
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2256
2257
|
}, yt;
|
|
@@ -2266,25 +2267,25 @@ function Nn() {
|
|
|
2266
2267
|
var t = xn;
|
|
2267
2268
|
return mt = t.getPrototypeOf || null, mt;
|
|
2268
2269
|
}
|
|
2269
|
-
var
|
|
2270
|
+
var za = "Function.prototype.bind called on incompatible ", Wa = Object.prototype.toString, Ga = Math.max, Ja = "[object Function]", Ir = function(e, r) {
|
|
2270
2271
|
for (var n = [], o = 0; o < e.length; o += 1)
|
|
2271
2272
|
n[o] = e[o];
|
|
2272
2273
|
for (var i = 0; i < r.length; i += 1)
|
|
2273
2274
|
n[i + e.length] = r[i];
|
|
2274
2275
|
return n;
|
|
2275
|
-
},
|
|
2276
|
+
}, Va = function(e, r) {
|
|
2276
2277
|
for (var n = [], o = r, i = 0; o < e.length; o += 1, i += 1)
|
|
2277
2278
|
n[i] = e[o];
|
|
2278
2279
|
return n;
|
|
2279
|
-
},
|
|
2280
|
+
}, Ka = function(t, e) {
|
|
2280
2281
|
for (var r = "", n = 0; n < t.length; n += 1)
|
|
2281
2282
|
r += t[n], n + 1 < t.length && (r += e);
|
|
2282
2283
|
return r;
|
|
2283
|
-
},
|
|
2284
|
+
}, Qa = function(e) {
|
|
2284
2285
|
var r = this;
|
|
2285
|
-
if (typeof r != "function" ||
|
|
2286
|
-
throw new TypeError(
|
|
2287
|
-
for (var n =
|
|
2286
|
+
if (typeof r != "function" || Wa.apply(r) !== Ja)
|
|
2287
|
+
throw new TypeError(za + r);
|
|
2288
|
+
for (var n = Va(arguments, 1), o, i = function() {
|
|
2288
2289
|
if (this instanceof o) {
|
|
2289
2290
|
var l = r.apply(
|
|
2290
2291
|
this,
|
|
@@ -2296,24 +2297,24 @@ var Ha = "Function.prototype.bind called on incompatible ", za = Object.prototyp
|
|
|
2296
2297
|
e,
|
|
2297
2298
|
Ir(n, arguments)
|
|
2298
2299
|
);
|
|
2299
|
-
}, a =
|
|
2300
|
+
}, a = Ga(0, r.length - n.length), s = [], c = 0; c < a; c++)
|
|
2300
2301
|
s[c] = "$" + c;
|
|
2301
|
-
if (o = Function("binder", "return function (" +
|
|
2302
|
+
if (o = Function("binder", "return function (" + Ka(s, ",") + "){ return binder.apply(this,arguments); }")(i), r.prototype) {
|
|
2302
2303
|
var u = function() {
|
|
2303
2304
|
};
|
|
2304
2305
|
u.prototype = r.prototype, o.prototype = new u(), u.prototype = null;
|
|
2305
2306
|
}
|
|
2306
2307
|
return o;
|
|
2307
|
-
},
|
|
2308
|
+
}, Xa = Qa, nt = Function.prototype.bind || Xa, Kt = Function.prototype.call, gt, $r;
|
|
2308
2309
|
function Fn() {
|
|
2309
2310
|
return $r || ($r = 1, gt = Function.prototype.apply), gt;
|
|
2310
2311
|
}
|
|
2311
|
-
var
|
|
2312
|
+
var Za = typeof Reflect < "u" && Reflect && Reflect.apply, Ya = nt, es = Fn(), ts = Kt, rs = Za, ns = rs || Ya.call(ts, es), os = nt, is = ge, as = Kt, ss = ns, In = function(e) {
|
|
2312
2313
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2313
|
-
throw new
|
|
2314
|
-
return
|
|
2314
|
+
throw new is("a function is required");
|
|
2315
|
+
return ss(os, as, e);
|
|
2315
2316
|
}, vt, Dr;
|
|
2316
|
-
function
|
|
2317
|
+
function ls() {
|
|
2317
2318
|
if (Dr) return vt;
|
|
2318
2319
|
Dr = 1;
|
|
2319
2320
|
var t = In, e = Cn, r;
|
|
@@ -2337,10 +2338,10 @@ function ss() {
|
|
|
2337
2338
|
) : !1, vt;
|
|
2338
2339
|
}
|
|
2339
2340
|
var wt, Lr;
|
|
2340
|
-
function
|
|
2341
|
+
function cs() {
|
|
2341
2342
|
if (Lr) return wt;
|
|
2342
2343
|
Lr = 1;
|
|
2343
|
-
var t = _n(), e = Nn(), r =
|
|
2344
|
+
var t = _n(), e = Nn(), r = ls();
|
|
2344
2345
|
return wt = t ? function(o) {
|
|
2345
2346
|
return t(o);
|
|
2346
2347
|
} : e ? function(o) {
|
|
@@ -2352,20 +2353,20 @@ function ls() {
|
|
|
2352
2353
|
} : null, wt;
|
|
2353
2354
|
}
|
|
2354
2355
|
var St, Ur;
|
|
2355
|
-
function
|
|
2356
|
+
function us() {
|
|
2356
2357
|
if (Ur) return St;
|
|
2357
2358
|
Ur = 1;
|
|
2358
2359
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = nt;
|
|
2359
2360
|
return St = r.call(t, e), St;
|
|
2360
2361
|
}
|
|
2361
|
-
var S,
|
|
2362
|
+
var S, fs = xn, ps = Ra, ds = Pa, ys = Ta, hs = xa, ye = Ca, fe = ge, ms = _a, gs = Na, vs = Fa, ws = Ia, Ss = $a, bs = Da, Es = La, Os = Ma, $n = Function, bt = function(t) {
|
|
2362
2363
|
try {
|
|
2363
2364
|
return $n('"use strict"; return (' + t + ").constructor;")();
|
|
2364
2365
|
} catch {
|
|
2365
2366
|
}
|
|
2366
|
-
}, Pe = Cn,
|
|
2367
|
+
}, Pe = Cn, As = qa, Et = function() {
|
|
2367
2368
|
throw new fe();
|
|
2368
|
-
},
|
|
2369
|
+
}, Rs = Pe ? function() {
|
|
2369
2370
|
try {
|
|
2370
2371
|
return arguments.callee, Et;
|
|
2371
2372
|
} catch {
|
|
@@ -2375,7 +2376,7 @@ var S, us = xn, fs = Aa, ps = Ra, ds = Pa, ys = Ta, ye = xa, fe = ge, hs = Ca, m
|
|
|
2375
2376
|
return Et;
|
|
2376
2377
|
}
|
|
2377
2378
|
}
|
|
2378
|
-
}() : Et, le =
|
|
2379
|
+
}() : Et, le = Ha()(), C = cs(), Ps = Nn(), Ts = _n(), Dn = Fn(), Ne = Kt, ue = {}, xs = typeof Uint8Array > "u" || !C ? S : C(Uint8Array), re = {
|
|
2379
2380
|
__proto__: null,
|
|
2380
2381
|
"%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
|
|
2381
2382
|
"%Array%": Array,
|
|
@@ -2397,10 +2398,10 @@ var S, us = xn, fs = Aa, ps = Ra, ds = Pa, ys = Ta, ye = xa, fe = ge, hs = Ca, m
|
|
|
2397
2398
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2398
2399
|
"%encodeURI%": encodeURI,
|
|
2399
2400
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2400
|
-
"%Error%":
|
|
2401
|
+
"%Error%": ps,
|
|
2401
2402
|
"%eval%": eval,
|
|
2402
2403
|
// eslint-disable-line no-eval
|
|
2403
|
-
"%EvalError%":
|
|
2404
|
+
"%EvalError%": ds,
|
|
2404
2405
|
"%Float16Array%": typeof Float16Array > "u" ? S : Float16Array,
|
|
2405
2406
|
"%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
|
|
2406
2407
|
"%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
|
|
@@ -2418,14 +2419,14 @@ var S, us = xn, fs = Aa, ps = Ra, ds = Pa, ys = Ta, ye = xa, fe = ge, hs = Ca, m
|
|
|
2418
2419
|
"%MapIteratorPrototype%": typeof Map > "u" || !le || !C ? S : C((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2419
2420
|
"%Math%": Math,
|
|
2420
2421
|
"%Number%": Number,
|
|
2421
|
-
"%Object%":
|
|
2422
|
+
"%Object%": fs,
|
|
2422
2423
|
"%Object.getOwnPropertyDescriptor%": Pe,
|
|
2423
2424
|
"%parseFloat%": parseFloat,
|
|
2424
2425
|
"%parseInt%": parseInt,
|
|
2425
2426
|
"%Promise%": typeof Promise > "u" ? S : Promise,
|
|
2426
2427
|
"%Proxy%": typeof Proxy > "u" ? S : Proxy,
|
|
2427
|
-
"%RangeError%":
|
|
2428
|
-
"%ReferenceError%":
|
|
2428
|
+
"%RangeError%": ys,
|
|
2429
|
+
"%ReferenceError%": hs,
|
|
2429
2430
|
"%Reflect%": typeof Reflect > "u" ? S : Reflect,
|
|
2430
2431
|
"%RegExp%": RegExp,
|
|
2431
2432
|
"%Set%": typeof Set > "u" ? S : Set,
|
|
@@ -2435,38 +2436,38 @@ var S, us = xn, fs = Aa, ps = Ra, ds = Pa, ys = Ta, ye = xa, fe = ge, hs = Ca, m
|
|
|
2435
2436
|
"%StringIteratorPrototype%": le && C ? C(""[Symbol.iterator]()) : S,
|
|
2436
2437
|
"%Symbol%": le ? Symbol : S,
|
|
2437
2438
|
"%SyntaxError%": ye,
|
|
2438
|
-
"%ThrowTypeError%":
|
|
2439
|
-
"%TypedArray%":
|
|
2439
|
+
"%ThrowTypeError%": Rs,
|
|
2440
|
+
"%TypedArray%": xs,
|
|
2440
2441
|
"%TypeError%": fe,
|
|
2441
2442
|
"%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
|
|
2442
2443
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
|
|
2443
2444
|
"%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
|
|
2444
2445
|
"%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
|
|
2445
|
-
"%URIError%":
|
|
2446
|
+
"%URIError%": ms,
|
|
2446
2447
|
"%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
|
|
2447
2448
|
"%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
|
|
2448
2449
|
"%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
|
|
2449
2450
|
"%Function.prototype.call%": Ne,
|
|
2450
2451
|
"%Function.prototype.apply%": Dn,
|
|
2451
|
-
"%Object.defineProperty%":
|
|
2452
|
-
"%Object.getPrototypeOf%":
|
|
2453
|
-
"%Math.abs%":
|
|
2454
|
-
"%Math.floor%":
|
|
2455
|
-
"%Math.max%":
|
|
2456
|
-
"%Math.min%":
|
|
2457
|
-
"%Math.pow%":
|
|
2458
|
-
"%Math.round%":
|
|
2459
|
-
"%Math.sign%":
|
|
2460
|
-
"%Reflect.getPrototypeOf%":
|
|
2452
|
+
"%Object.defineProperty%": As,
|
|
2453
|
+
"%Object.getPrototypeOf%": Ps,
|
|
2454
|
+
"%Math.abs%": gs,
|
|
2455
|
+
"%Math.floor%": vs,
|
|
2456
|
+
"%Math.max%": ws,
|
|
2457
|
+
"%Math.min%": Ss,
|
|
2458
|
+
"%Math.pow%": bs,
|
|
2459
|
+
"%Math.round%": Es,
|
|
2460
|
+
"%Math.sign%": Os,
|
|
2461
|
+
"%Reflect.getPrototypeOf%": Ts
|
|
2461
2462
|
};
|
|
2462
2463
|
if (C)
|
|
2463
2464
|
try {
|
|
2464
2465
|
null.error;
|
|
2465
2466
|
} catch (t) {
|
|
2466
|
-
var
|
|
2467
|
-
re["%Error.prototype%"] =
|
|
2467
|
+
var Cs = C(C(t));
|
|
2468
|
+
re["%Error.prototype%"] = Cs;
|
|
2468
2469
|
}
|
|
2469
|
-
var
|
|
2470
|
+
var _s = function t(e) {
|
|
2470
2471
|
var r;
|
|
2471
2472
|
if (e === "%AsyncFunction%")
|
|
2472
2473
|
r = bt("async function () {}");
|
|
@@ -2535,21 +2536,21 @@ var Cs = function t(e) {
|
|
|
2535
2536
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2536
2537
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2537
2538
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2538
|
-
}, Fe = nt, Ve =
|
|
2539
|
+
}, Fe = nt, Ve = us(), Ns = Fe.call(Ne, Array.prototype.concat), Fs = Fe.call(Dn, Array.prototype.splice), Mr = Fe.call(Ne, String.prototype.replace), Ke = Fe.call(Ne, String.prototype.slice), Is = Fe.call(Ne, RegExp.prototype.exec), $s = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ds = /\\(\\)?/g, Ls = function(e) {
|
|
2539
2540
|
var r = Ke(e, 0, 1), n = Ke(e, -1);
|
|
2540
2541
|
if (r === "%" && n !== "%")
|
|
2541
2542
|
throw new ye("invalid intrinsic syntax, expected closing `%`");
|
|
2542
2543
|
if (n === "%" && r !== "%")
|
|
2543
2544
|
throw new ye("invalid intrinsic syntax, expected opening `%`");
|
|
2544
2545
|
var o = [];
|
|
2545
|
-
return Mr(e,
|
|
2546
|
-
o[o.length] = s ? Mr(c,
|
|
2546
|
+
return Mr(e, $s, function(i, a, s, c) {
|
|
2547
|
+
o[o.length] = s ? Mr(c, Ds, "$1") : a || i;
|
|
2547
2548
|
}), o;
|
|
2548
|
-
},
|
|
2549
|
+
}, Us = function(e, r) {
|
|
2549
2550
|
var n = e, o;
|
|
2550
2551
|
if (Ve(Br, n) && (o = Br[n], n = "%" + o[0] + "%"), Ve(re, n)) {
|
|
2551
2552
|
var i = re[n];
|
|
2552
|
-
if (i === ue && (i =
|
|
2553
|
+
if (i === ue && (i = _s(n)), typeof i > "u" && !r)
|
|
2553
2554
|
throw new fe("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
2554
2555
|
return {
|
|
2555
2556
|
alias: o,
|
|
@@ -2563,10 +2564,10 @@ var Cs = function t(e) {
|
|
|
2563
2564
|
throw new fe("intrinsic name must be a non-empty string");
|
|
2564
2565
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
2565
2566
|
throw new fe('"allowMissing" argument must be a boolean');
|
|
2566
|
-
if (
|
|
2567
|
+
if (Is(/^%?[^%]*%?$/, e) === null)
|
|
2567
2568
|
throw new ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2568
|
-
var n =
|
|
2569
|
-
u && (o = u[0],
|
|
2569
|
+
var n = Ls(e), o = n.length > 0 ? n[0] : "", i = Us("%" + o + "%", r), a = i.name, s = i.value, c = !1, u = i.alias;
|
|
2570
|
+
u && (o = u[0], Fs(n, Ns([0, 1], u)));
|
|
2570
2571
|
for (var l = 1, p = !0; l < n.length; l += 1) {
|
|
2571
2572
|
var y = n[l], v = Ke(y, 0, 1), d = Ke(y, -1);
|
|
2572
2573
|
if ((v === '"' || v === "'" || v === "`" || d === '"' || d === "'" || d === "`") && v !== d)
|
|
@@ -2588,74 +2589,74 @@ var Cs = function t(e) {
|
|
|
2588
2589
|
}
|
|
2589
2590
|
}
|
|
2590
2591
|
return s;
|
|
2591
|
-
}, Ln = Qt, Un = In,
|
|
2592
|
+
}, Ln = Qt, Un = In, Bs = Un([Ln("%String.prototype.indexOf%")]), Bn = function(e, r) {
|
|
2592
2593
|
var n = (
|
|
2593
2594
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2594
2595
|
Ln(e, !!r)
|
|
2595
2596
|
);
|
|
2596
|
-
return typeof n == "function" &&
|
|
2597
|
+
return typeof n == "function" && Bs(e, ".prototype.") > -1 ? Un(
|
|
2597
2598
|
/** @type {const} */
|
|
2598
2599
|
[n]
|
|
2599
2600
|
) : n;
|
|
2600
|
-
},
|
|
2601
|
+
}, Ms = Qt, Ie = Bn, ks = tt, qs = ge, kr = Ms("%Map%", !0), js = Ie("Map.prototype.get", !0), Hs = Ie("Map.prototype.set", !0), zs = Ie("Map.prototype.has", !0), Ws = Ie("Map.prototype.delete", !0), Gs = Ie("Map.prototype.size", !0), Mn = !!kr && /** @type {Exclude<import('.'), false>} */
|
|
2601
2602
|
function() {
|
|
2602
2603
|
var e, r = {
|
|
2603
2604
|
assert: function(n) {
|
|
2604
2605
|
if (!r.has(n))
|
|
2605
|
-
throw new
|
|
2606
|
+
throw new qs("Side channel does not contain " + ks(n));
|
|
2606
2607
|
},
|
|
2607
2608
|
delete: function(n) {
|
|
2608
2609
|
if (e) {
|
|
2609
|
-
var o =
|
|
2610
|
-
return
|
|
2610
|
+
var o = Ws(e, n);
|
|
2611
|
+
return Gs(e) === 0 && (e = void 0), o;
|
|
2611
2612
|
}
|
|
2612
2613
|
return !1;
|
|
2613
2614
|
},
|
|
2614
2615
|
get: function(n) {
|
|
2615
2616
|
if (e)
|
|
2616
|
-
return
|
|
2617
|
+
return js(e, n);
|
|
2617
2618
|
},
|
|
2618
2619
|
has: function(n) {
|
|
2619
|
-
return e ?
|
|
2620
|
+
return e ? zs(e, n) : !1;
|
|
2620
2621
|
},
|
|
2621
2622
|
set: function(n, o) {
|
|
2622
|
-
e || (e = new kr()),
|
|
2623
|
+
e || (e = new kr()), Hs(e, n, o);
|
|
2623
2624
|
}
|
|
2624
2625
|
};
|
|
2625
2626
|
return r;
|
|
2626
|
-
},
|
|
2627
|
+
}, Js = Qt, ot = Bn, Vs = tt, Ue = Mn, Ks = ge, ce = Js("%WeakMap%", !0), Qs = ot("WeakMap.prototype.get", !0), Xs = ot("WeakMap.prototype.set", !0), Zs = ot("WeakMap.prototype.has", !0), Ys = ot("WeakMap.prototype.delete", !0), el = ce ? (
|
|
2627
2628
|
/** @type {Exclude<import('.'), false>} */
|
|
2628
2629
|
function() {
|
|
2629
2630
|
var e, r, n = {
|
|
2630
2631
|
assert: function(o) {
|
|
2631
2632
|
if (!n.has(o))
|
|
2632
|
-
throw new
|
|
2633
|
+
throw new Ks("Side channel does not contain " + Vs(o));
|
|
2633
2634
|
},
|
|
2634
2635
|
delete: function(o) {
|
|
2635
2636
|
if (ce && o && (typeof o == "object" || typeof o == "function")) {
|
|
2636
2637
|
if (e)
|
|
2637
|
-
return
|
|
2638
|
+
return Ys(e, o);
|
|
2638
2639
|
} else if (Ue && r)
|
|
2639
2640
|
return r.delete(o);
|
|
2640
2641
|
return !1;
|
|
2641
2642
|
},
|
|
2642
2643
|
get: function(o) {
|
|
2643
|
-
return ce && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2644
|
+
return ce && o && (typeof o == "object" || typeof o == "function") && e ? Qs(e, o) : r && r.get(o);
|
|
2644
2645
|
},
|
|
2645
2646
|
has: function(o) {
|
|
2646
|
-
return ce && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2647
|
+
return ce && o && (typeof o == "object" || typeof o == "function") && e ? Zs(e, o) : !!r && r.has(o);
|
|
2647
2648
|
},
|
|
2648
2649
|
set: function(o, i) {
|
|
2649
|
-
ce && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ce()),
|
|
2650
|
+
ce && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ce()), Xs(e, o, i)) : Ue && (r || (r = Ue()), r.set(o, i));
|
|
2650
2651
|
}
|
|
2651
2652
|
};
|
|
2652
2653
|
return n;
|
|
2653
2654
|
}
|
|
2654
|
-
) : Ue,
|
|
2655
|
+
) : Ue, tl = ge, rl = tt, nl = Aa, ol = Mn, il = el, al = il || ol || nl, sl = function() {
|
|
2655
2656
|
var e, r = {
|
|
2656
2657
|
assert: function(n) {
|
|
2657
2658
|
if (!r.has(n))
|
|
2658
|
-
throw new
|
|
2659
|
+
throw new tl("Side channel does not contain " + rl(n));
|
|
2659
2660
|
},
|
|
2660
2661
|
delete: function(n) {
|
|
2661
2662
|
return !!e && e.delete(n);
|
|
@@ -2667,18 +2668,18 @@ function() {
|
|
|
2667
2668
|
return !!e && e.has(n);
|
|
2668
2669
|
},
|
|
2669
2670
|
set: function(n, o) {
|
|
2670
|
-
e || (e =
|
|
2671
|
+
e || (e = al()), e.set(n, o);
|
|
2671
2672
|
}
|
|
2672
2673
|
};
|
|
2673
2674
|
return r;
|
|
2674
|
-
},
|
|
2675
|
+
}, ll = String.prototype.replace, cl = /%20/g, Ot = {
|
|
2675
2676
|
RFC1738: "RFC1738",
|
|
2676
2677
|
RFC3986: "RFC3986"
|
|
2677
2678
|
}, Xt = {
|
|
2678
2679
|
default: Ot.RFC3986,
|
|
2679
2680
|
formatters: {
|
|
2680
2681
|
RFC1738: function(t) {
|
|
2681
|
-
return
|
|
2682
|
+
return ll.call(t, cl, "+");
|
|
2682
2683
|
},
|
|
2683
2684
|
RFC3986: function(t) {
|
|
2684
2685
|
return String(t);
|
|
@@ -2686,11 +2687,11 @@ function() {
|
|
|
2686
2687
|
},
|
|
2687
2688
|
RFC1738: Ot.RFC1738,
|
|
2688
2689
|
RFC3986: Ot.RFC3986
|
|
2689
|
-
},
|
|
2690
|
+
}, ul = Xt, At = Object.prototype.hasOwnProperty, Y = Array.isArray, z = function() {
|
|
2690
2691
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2691
2692
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2692
2693
|
return t;
|
|
2693
|
-
}(),
|
|
2694
|
+
}(), fl = function(e) {
|
|
2694
2695
|
for (; e.length > 1; ) {
|
|
2695
2696
|
var r = e.pop(), n = r.obj[r.prop];
|
|
2696
2697
|
if (Y(n)) {
|
|
@@ -2703,7 +2704,7 @@ function() {
|
|
|
2703
2704
|
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
2704
2705
|
typeof e[o] < "u" && (n[o] = e[o]);
|
|
2705
2706
|
return n;
|
|
2706
|
-
},
|
|
2707
|
+
}, pl = function t(e, r, n) {
|
|
2707
2708
|
if (!r)
|
|
2708
2709
|
return e;
|
|
2709
2710
|
if (typeof r != "object" && typeof r != "function") {
|
|
@@ -2728,11 +2729,11 @@ function() {
|
|
|
2728
2729
|
var s = r[a];
|
|
2729
2730
|
return At.call(i, a) ? i[a] = t(i[a], s, n) : i[a] = s, i;
|
|
2730
2731
|
}, o);
|
|
2731
|
-
},
|
|
2732
|
+
}, dl = function(e, r) {
|
|
2732
2733
|
return Object.keys(r).reduce(function(n, o) {
|
|
2733
2734
|
return n[o] = r[o], n;
|
|
2734
2735
|
}, e);
|
|
2735
|
-
},
|
|
2736
|
+
}, yl = function(t, e, r) {
|
|
2736
2737
|
var n = t.replace(/\+/g, " ");
|
|
2737
2738
|
if (r === "iso-8859-1")
|
|
2738
2739
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -2741,7 +2742,7 @@ function() {
|
|
|
2741
2742
|
} catch {
|
|
2742
2743
|
return n;
|
|
2743
2744
|
}
|
|
2744
|
-
}, Rt = 1024,
|
|
2745
|
+
}, Rt = 1024, hl = function(e, r, n, o, i) {
|
|
2745
2746
|
if (e.length === 0)
|
|
2746
2747
|
return e;
|
|
2747
2748
|
var a = e;
|
|
@@ -2752,7 +2753,7 @@ function() {
|
|
|
2752
2753
|
for (var s = "", c = 0; c < a.length; c += Rt) {
|
|
2753
2754
|
for (var u = a.length >= Rt ? a.slice(c, c + Rt) : a, l = [], p = 0; p < u.length; ++p) {
|
|
2754
2755
|
var y = u.charCodeAt(p);
|
|
2755
|
-
if (y === 45 || y === 46 || y === 95 || y === 126 || y >= 48 && y <= 57 || y >= 65 && y <= 90 || y >= 97 && y <= 122 || i ===
|
|
2756
|
+
if (y === 45 || y === 46 || y === 95 || y === 126 || y >= 48 && y <= 57 || y >= 65 && y <= 90 || y >= 97 && y <= 122 || i === ul.RFC1738 && (y === 40 || y === 41)) {
|
|
2756
2757
|
l[l.length] = u.charAt(p);
|
|
2757
2758
|
continue;
|
|
2758
2759
|
}
|
|
@@ -2773,20 +2774,20 @@ function() {
|
|
|
2773
2774
|
s += l.join("");
|
|
2774
2775
|
}
|
|
2775
2776
|
return s;
|
|
2776
|
-
},
|
|
2777
|
+
}, ml = function(e) {
|
|
2777
2778
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
|
|
2778
2779
|
for (var i = r[o], a = i.obj[i.prop], s = Object.keys(a), c = 0; c < s.length; ++c) {
|
|
2779
2780
|
var u = s[c], l = a[u];
|
|
2780
2781
|
typeof l == "object" && l !== null && n.indexOf(l) === -1 && (r.push({ obj: a, prop: u }), n.push(l));
|
|
2781
2782
|
}
|
|
2782
|
-
return
|
|
2783
|
-
}, ml = function(e) {
|
|
2784
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
2783
|
+
return fl(r), e;
|
|
2785
2784
|
}, gl = function(e) {
|
|
2785
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
2786
|
+
}, vl = function(e) {
|
|
2786
2787
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
2787
|
-
}, vl = function(e, r) {
|
|
2788
|
-
return [].concat(e, r);
|
|
2789
2788
|
}, wl = function(e, r) {
|
|
2789
|
+
return [].concat(e, r);
|
|
2790
|
+
}, Sl = function(e, r) {
|
|
2790
2791
|
if (Y(e)) {
|
|
2791
2792
|
for (var n = [], o = 0; o < e.length; o += 1)
|
|
2792
2793
|
n.push(r(e[o]));
|
|
@@ -2795,16 +2796,16 @@ function() {
|
|
|
2795
2796
|
return r(e);
|
|
2796
2797
|
}, qn = {
|
|
2797
2798
|
arrayToObject: kn,
|
|
2798
|
-
assign:
|
|
2799
|
-
combine:
|
|
2800
|
-
compact:
|
|
2801
|
-
decode:
|
|
2802
|
-
encode:
|
|
2803
|
-
isBuffer:
|
|
2804
|
-
isRegExp:
|
|
2805
|
-
maybeMap:
|
|
2806
|
-
merge:
|
|
2807
|
-
}, jn =
|
|
2799
|
+
assign: dl,
|
|
2800
|
+
combine: wl,
|
|
2801
|
+
compact: ml,
|
|
2802
|
+
decode: yl,
|
|
2803
|
+
encode: hl,
|
|
2804
|
+
isBuffer: vl,
|
|
2805
|
+
isRegExp: gl,
|
|
2806
|
+
maybeMap: Sl,
|
|
2807
|
+
merge: pl
|
|
2808
|
+
}, jn = sl, ze = qn, Re = Xt, bl = Object.prototype.hasOwnProperty, Hn = {
|
|
2808
2809
|
brackets: function(e) {
|
|
2809
2810
|
return e + "[]";
|
|
2810
2811
|
},
|
|
@@ -2815,9 +2816,9 @@ function() {
|
|
|
2815
2816
|
repeat: function(e) {
|
|
2816
2817
|
return e;
|
|
2817
2818
|
}
|
|
2818
|
-
}, W = Array.isArray,
|
|
2819
|
-
|
|
2820
|
-
},
|
|
2819
|
+
}, W = Array.isArray, El = Array.prototype.push, zn = function(t, e) {
|
|
2820
|
+
El.apply(t, W(e) ? e : [e]);
|
|
2821
|
+
}, Ol = Date.prototype.toISOString, qr = Re.default, x = {
|
|
2821
2822
|
addQueryPrefix: !1,
|
|
2822
2823
|
allowDots: !1,
|
|
2823
2824
|
allowEmptyArrays: !1,
|
|
@@ -2836,13 +2837,13 @@ function() {
|
|
|
2836
2837
|
// deprecated
|
|
2837
2838
|
indices: !1,
|
|
2838
2839
|
serializeDate: function(e) {
|
|
2839
|
-
return
|
|
2840
|
+
return Ol.call(e);
|
|
2840
2841
|
},
|
|
2841
2842
|
skipNulls: !1,
|
|
2842
2843
|
strictNullHandling: !1
|
|
2843
|
-
},
|
|
2844
|
+
}, Al = function(e) {
|
|
2844
2845
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2845
|
-
}, Pt = {},
|
|
2846
|
+
}, Pt = {}, Rl = function t(e, r, n, o, i, a, s, c, u, l, p, y, v, d, m, h, b, O) {
|
|
2846
2847
|
for (var g = e, E = O, P = 0, L = !1; (E = E.get(Pt)) !== void 0 && !L; ) {
|
|
2847
2848
|
var T = E.get(e);
|
|
2848
2849
|
if (P += 1, typeof T < "u") {
|
|
@@ -2859,7 +2860,7 @@ function() {
|
|
|
2859
2860
|
return u && !h ? u(r, x.encoder, b, "key", d) : r;
|
|
2860
2861
|
g = "";
|
|
2861
2862
|
}
|
|
2862
|
-
if (
|
|
2863
|
+
if (Al(g) || ze.isBuffer(g)) {
|
|
2863
2864
|
if (u) {
|
|
2864
2865
|
var V = h ? r : u(r, x.encoder, b, "key", d);
|
|
2865
2866
|
return [m(V) + "=" + m(u(g, x.encoder, b, "value", d))];
|
|
@@ -2910,7 +2911,7 @@ function() {
|
|
|
2910
2911
|
}
|
|
2911
2912
|
}
|
|
2912
2913
|
return U;
|
|
2913
|
-
},
|
|
2914
|
+
}, Pl = function(e) {
|
|
2914
2915
|
if (!e)
|
|
2915
2916
|
return x;
|
|
2916
2917
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2924,7 +2925,7 @@ function() {
|
|
|
2924
2925
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2925
2926
|
var n = Re.default;
|
|
2926
2927
|
if (typeof e.format < "u") {
|
|
2927
|
-
if (!
|
|
2928
|
+
if (!bl.call(Re.formatters, e.format))
|
|
2928
2929
|
throw new TypeError("Unknown format option provided.");
|
|
2929
2930
|
n = e.format;
|
|
2930
2931
|
}
|
|
@@ -2955,8 +2956,8 @@ function() {
|
|
|
2955
2956
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
2956
2957
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : x.strictNullHandling
|
|
2957
2958
|
};
|
|
2958
|
-
},
|
|
2959
|
-
var r = t, n =
|
|
2959
|
+
}, Tl = function(t, e) {
|
|
2960
|
+
var r = t, n = Pl(e), o, i;
|
|
2960
2961
|
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : W(n.filter) && (i = n.filter, o = i);
|
|
2961
2962
|
var a = [];
|
|
2962
2963
|
if (typeof r != "object" || r === null)
|
|
@@ -2965,7 +2966,7 @@ function() {
|
|
|
2965
2966
|
o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
|
|
2966
2967
|
for (var u = jn(), l = 0; l < o.length; ++l) {
|
|
2967
2968
|
var p = o[l], y = r[p];
|
|
2968
|
-
n.skipNulls && y === null || zn(a,
|
|
2969
|
+
n.skipNulls && y === null || zn(a, Rl(
|
|
2969
2970
|
y,
|
|
2970
2971
|
p,
|
|
2971
2972
|
s,
|
|
@@ -3010,7 +3011,7 @@ function() {
|
|
|
3010
3011
|
strictDepth: !1,
|
|
3011
3012
|
strictNullHandling: !1,
|
|
3012
3013
|
throwOnLimitExceeded: !1
|
|
3013
|
-
},
|
|
3014
|
+
}, xl = function(t) {
|
|
3014
3015
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
3015
3016
|
return String.fromCharCode(parseInt(r, 10));
|
|
3016
3017
|
});
|
|
@@ -3020,7 +3021,7 @@ function() {
|
|
|
3020
3021
|
if (e.throwOnLimitExceeded && r >= e.arrayLimit)
|
|
3021
3022
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3022
3023
|
return t;
|
|
3023
|
-
},
|
|
3024
|
+
}, Cl = "utf8=%26%2310003%3B", _l = "utf8=%E2%9C%93", Nl = function(e, r) {
|
|
3024
3025
|
var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
3025
3026
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3026
3027
|
var i = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, a = o.split(
|
|
@@ -3032,7 +3033,7 @@ function() {
|
|
|
3032
3033
|
var s = -1, c, u = r.charset;
|
|
3033
3034
|
if (r.charsetSentinel)
|
|
3034
3035
|
for (c = 0; c < a.length; ++c)
|
|
3035
|
-
a[c].indexOf("utf8=") === 0 && (a[c] ===
|
|
3036
|
+
a[c].indexOf("utf8=") === 0 && (a[c] === _l ? u = "utf-8" : a[c] === Cl && (u = "iso-8859-1"), s = c, c = a.length);
|
|
3036
3037
|
for (c = 0; c < a.length; ++c)
|
|
3037
3038
|
if (c !== s) {
|
|
3038
3039
|
var l = a[c], p = l.indexOf("]="), y = p === -1 ? l.indexOf("=") : p + 1, v, d;
|
|
@@ -3045,12 +3046,12 @@ function() {
|
|
|
3045
3046
|
function(h) {
|
|
3046
3047
|
return r.decoder(h, A.decoder, u, "value");
|
|
3047
3048
|
}
|
|
3048
|
-
)), d && r.interpretNumericEntities && u === "iso-8859-1" && (d =
|
|
3049
|
+
)), d && r.interpretNumericEntities && u === "iso-8859-1" && (d = xl(String(d))), l.indexOf("[]=") > -1 && (d = jr(d) ? [d] : d);
|
|
3049
3050
|
var m = Bt.call(n, v);
|
|
3050
3051
|
m && r.duplicates === "combine" ? n[v] = oe.combine(n[v], d) : (!m || r.duplicates === "last") && (n[v] = d);
|
|
3051
3052
|
}
|
|
3052
3053
|
return n;
|
|
3053
|
-
},
|
|
3054
|
+
}, Fl = function(t, e, r, n) {
|
|
3054
3055
|
var o = 0;
|
|
3055
3056
|
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
3056
3057
|
var i = t.slice(0, -1).join("");
|
|
@@ -3068,7 +3069,7 @@ function() {
|
|
|
3068
3069
|
a = c;
|
|
3069
3070
|
}
|
|
3070
3071
|
return a;
|
|
3071
|
-
},
|
|
3072
|
+
}, Il = function(e, r, n, o) {
|
|
3072
3073
|
if (e) {
|
|
3073
3074
|
var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, a = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = n.depth > 0 && a.exec(i), u = c ? i.slice(0, c.index) : i, l = [];
|
|
3074
3075
|
if (u) {
|
|
@@ -3086,9 +3087,9 @@ function() {
|
|
|
3086
3087
|
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
3087
3088
|
l.push("[" + i.slice(c.index) + "]");
|
|
3088
3089
|
}
|
|
3089
|
-
return
|
|
3090
|
+
return Fl(l, r, n, o);
|
|
3090
3091
|
}
|
|
3091
|
-
},
|
|
3092
|
+
}, $l = function(e) {
|
|
3092
3093
|
if (!e)
|
|
3093
3094
|
return A;
|
|
3094
3095
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3129,21 +3130,21 @@ function() {
|
|
|
3129
3130
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : A.strictNullHandling,
|
|
3130
3131
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3131
3132
|
};
|
|
3132
|
-
},
|
|
3133
|
-
var r =
|
|
3133
|
+
}, Dl = function(t, e) {
|
|
3134
|
+
var r = $l(e);
|
|
3134
3135
|
if (t === "" || t === null || typeof t > "u")
|
|
3135
3136
|
return r.plainObjects ? { __proto__: null } : {};
|
|
3136
|
-
for (var n = typeof t == "string" ?
|
|
3137
|
-
var s = i[a], c =
|
|
3137
|
+
for (var n = typeof t == "string" ? Nl(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, i = Object.keys(n), a = 0; a < i.length; ++a) {
|
|
3138
|
+
var s = i[a], c = Il(s, n[s], r, typeof t == "string");
|
|
3138
3139
|
o = oe.merge(o, c, r);
|
|
3139
3140
|
}
|
|
3140
3141
|
return r.allowSparse === !0 ? o : oe.compact(o);
|
|
3141
|
-
},
|
|
3142
|
-
formats:
|
|
3143
|
-
parse:
|
|
3144
|
-
stringify:
|
|
3142
|
+
}, Ll = Tl, Ul = Dl, Bl = Xt, Ml = {
|
|
3143
|
+
formats: Bl,
|
|
3144
|
+
parse: Ul,
|
|
3145
|
+
stringify: Ll
|
|
3145
3146
|
};
|
|
3146
|
-
const
|
|
3147
|
+
const kl = /* @__PURE__ */ Mi(Ml);
|
|
3147
3148
|
/*! js-cookie v3.0.5 | MIT */
|
|
3148
3149
|
function Be(t) {
|
|
3149
3150
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3153,7 +3154,7 @@ function Be(t) {
|
|
|
3153
3154
|
}
|
|
3154
3155
|
return t;
|
|
3155
3156
|
}
|
|
3156
|
-
var
|
|
3157
|
+
var ql = {
|
|
3157
3158
|
read: function(t) {
|
|
3158
3159
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3159
3160
|
},
|
|
@@ -3214,12 +3215,12 @@ function Mt(t, e) {
|
|
|
3214
3215
|
}
|
|
3215
3216
|
);
|
|
3216
3217
|
}
|
|
3217
|
-
var Hr = Mt(
|
|
3218
|
+
var Hr = Mt(ql, { path: "/" });
|
|
3218
3219
|
kt.extend(no);
|
|
3219
3220
|
kt.extend(oo);
|
|
3220
3221
|
const Zt = Qr(), Gn = Zt.sso ?? !0, zr = Zt.i18n ?? !0, Jn = Zt.noRedireLogin ?? !1;
|
|
3221
3222
|
let Wr = "", Gr = 0;
|
|
3222
|
-
const
|
|
3223
|
+
const jl = 1e3, Jr = async (t, e, r = []) => {
|
|
3223
3224
|
const n = Date.now(), o = 1200, i = 60;
|
|
3224
3225
|
for (; Date.now() - n < o; ) {
|
|
3225
3226
|
const a = t(e, ...r);
|
|
@@ -3229,17 +3230,17 @@ const ql = 1e3, Jr = async (t, e, r = []) => {
|
|
|
3229
3230
|
return t(e, ...r);
|
|
3230
3231
|
};
|
|
3231
3232
|
let Tt = !1;
|
|
3232
|
-
const
|
|
3233
|
+
const Hl = 5e3, Vn = () => Tt ? !1 : (Tt = !0, setTimeout(() => {
|
|
3233
3234
|
Tt = !1;
|
|
3234
|
-
},
|
|
3235
|
+
}, Hl), !0), Kn = () => {
|
|
3235
3236
|
var e, r;
|
|
3236
3237
|
if (Jn) return;
|
|
3237
3238
|
const t = "/login";
|
|
3238
3239
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace(`/#${t}`));
|
|
3239
|
-
},
|
|
3240
|
+
}, zl = () => Yn("code") || "" || Jn ? !1 : Vn() ? (Gn ? eo({ ...to, redirect_uri: ro }) : Kn(), !0) : !1, Wl = async (t) => {
|
|
3240
3241
|
var r;
|
|
3241
3242
|
return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
|
|
3242
|
-
},
|
|
3243
|
+
}, Gl = async (t, e) => {
|
|
3243
3244
|
var d, m, h, b;
|
|
3244
3245
|
const { t: r } = Kr();
|
|
3245
3246
|
let n, o, i = {};
|
|
@@ -3247,7 +3248,7 @@ const jl = 5e3, Vn = () => Tt ? !1 : (Tt = !0, setTimeout(() => {
|
|
|
3247
3248
|
let s = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
|
|
3248
3249
|
const c = s == null ? void 0 : s.code, u = (m = t.response) == null ? void 0 : m.status;
|
|
3249
3250
|
if (c === 401 || u === 401) {
|
|
3250
|
-
|
|
3251
|
+
zl(), n = c || u, i = s;
|
|
3251
3252
|
const O = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3252
3253
|
if (zr && O && (s != null && s.status)) {
|
|
3253
3254
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
@@ -3277,10 +3278,10 @@ const jl = 5e3, Vn = () => Tt ? !1 : (Tt = !0, setTimeout(() => {
|
|
|
3277
3278
|
o || (o = a[t.response.status] || t.message);
|
|
3278
3279
|
} else t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
|
|
3279
3280
|
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3280
|
-
const p = Date.now(), y = o === Wr, v = p - Gr <
|
|
3281
|
+
const p = Date.now(), y = o === Wr, v = p - Gr < jl;
|
|
3281
3282
|
return !(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((b = (h = window.DasMessage) == null ? void 0 : h.error) == null || b.call(h, { message: o, showClose: !0 }), Wr = o, Gr = p), { ...i, code: n, msg: o, error: t };
|
|
3282
3283
|
};
|
|
3283
|
-
function
|
|
3284
|
+
function Jl(t, e) {
|
|
3284
3285
|
const r = R.create();
|
|
3285
3286
|
return Xn(r, async (n) => {
|
|
3286
3287
|
const { currentLang: o } = Kr(), i = Qr();
|
|
@@ -3295,13 +3296,13 @@ function Gl(t, e) {
|
|
|
3295
3296
|
else {
|
|
3296
3297
|
p || (p = so());
|
|
3297
3298
|
let y = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3298
|
-
p ? p = await
|
|
3299
|
-
|
|
3299
|
+
p ? p = await co(y, (d) => {
|
|
3300
|
+
lo(d);
|
|
3300
3301
|
}) : Vn() && Kn();
|
|
3301
3302
|
}
|
|
3302
3303
|
p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
|
|
3303
3304
|
}
|
|
3304
|
-
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) =>
|
|
3305
|
+
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => kl.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Wl), n.onError || (n.onError = Gl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Hr.get("csrf-token"));
|
|
3305
3306
|
const c = n.params || {};
|
|
3306
3307
|
if (c.project === void 0) {
|
|
3307
3308
|
let p = 0;
|
|
@@ -3317,7 +3318,7 @@ function Gl(t, e) {
|
|
|
3317
3318
|
return l && (n.headers["Accept-Language"] = l), l && Hr.set("locale", l), n;
|
|
3318
3319
|
});
|
|
3319
3320
|
}
|
|
3320
|
-
const
|
|
3321
|
+
const Vl = "v1", Qn = Jl(`/api/admin/basic-application/user-rights/${Vl}`), Kl = Qn.get("/menu-module-func"), Ql = Qn.post("/right-func"), Vr = (t) => Array.isArray(t) ? t : t == null || t === "" ? [] : [t], Xl = (t) => {
|
|
3321
3322
|
const e = Vr(t == null ? void 0 : t.appIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o), r = Vr(t == null ? void 0 : t.moduleIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o);
|
|
3322
3323
|
if (!e.length) return null;
|
|
3323
3324
|
const n = { appIds: e };
|
|
@@ -3348,7 +3349,7 @@ const Jl = "v1", Qn = Gl(`/api/admin/basic-application/user-rights/${Jl}`), Vl =
|
|
|
3348
3349
|
}
|
|
3349
3350
|
}
|
|
3350
3351
|
return e.code.sourceCode = Array.from(o), e;
|
|
3351
|
-
},
|
|
3352
|
+
}, Zl = () => {
|
|
3352
3353
|
const t = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
|
|
3353
3354
|
try {
|
|
3354
3355
|
const e = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"), r = String((e == null ? void 0 : e.id) ?? "").trim(), n = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
|
|
@@ -3359,34 +3360,34 @@ const Jl = "v1", Qn = Gl(`/api/admin/basic-application/user-rights/${Jl}`), Vl =
|
|
|
3359
3360
|
} catch {
|
|
3360
3361
|
return xt([]);
|
|
3361
3362
|
}
|
|
3362
|
-
},
|
|
3363
|
+
}, uc = (t = "id") => {
|
|
3363
3364
|
var a, s;
|
|
3364
|
-
const e =
|
|
3365
|
+
const e = Zl();
|
|
3365
3366
|
if (!e || typeof e != "object")
|
|
3366
3367
|
return t === "all" ? { idList: [], codeList: [] } : [];
|
|
3367
3368
|
const r = (a = e == null ? void 0 : e.id) == null ? void 0 : a.id, n = Array.isArray(r) ? r : [], o = (s = e == null ? void 0 : e.code) == null ? void 0 : s.sourceCode, i = Array.isArray(o) ? o : [];
|
|
3368
3369
|
return t === "all" ? { idList: n, codeList: i } : t === "code" ? i : n;
|
|
3369
|
-
},
|
|
3370
|
+
}, fc = (t, e) => {
|
|
3370
3371
|
const r = (async () => {
|
|
3371
|
-
const n =
|
|
3372
|
+
const n = Xl(t);
|
|
3372
3373
|
if (!n) return [];
|
|
3373
|
-
const o = await
|
|
3374
|
+
const o = await Ql().run(n), [i, a] = o;
|
|
3374
3375
|
return i ? [] : a;
|
|
3375
3376
|
})();
|
|
3376
3377
|
return typeof e == "function" && r.then((n) => e(n)).catch(() => e([])), r;
|
|
3377
|
-
},
|
|
3378
|
+
}, pc = (t, e) => {
|
|
3378
3379
|
const r = (async () => {
|
|
3379
3380
|
const n = String(t ?? "").trim();
|
|
3380
3381
|
if (!n) return [];
|
|
3381
|
-
const o = await
|
|
3382
|
+
const o = await Kl().run({ menuId: n }), [i, a] = o;
|
|
3382
3383
|
return i ? [] : a;
|
|
3383
3384
|
})();
|
|
3384
3385
|
return typeof e == "function" && r.then((n) => e(n)).catch(() => e([])), r;
|
|
3385
3386
|
};
|
|
3386
3387
|
export {
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3388
|
+
uc as getCurrentModulePermissionData,
|
|
3389
|
+
pc as getCurrentUserMenuPermissionsList,
|
|
3390
|
+
fc as getCurrentUserPermissionsList,
|
|
3391
|
+
Zl as getGroupedCurrentUserPermissionList,
|
|
3391
3392
|
xt as groupPermissionListByModuleAndCode
|
|
3392
3393
|
};
|