@nano-lib/util 1.1.10 → 1.1.11
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/lib/index.d.ts +1 -0
- package/lib/index.js +5 -5
- package/lib/index.mjs +476 -448
- package/lib/utils/request/commonRequest.d.ts +15 -0
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
function
|
|
1
|
+
var vs = Object.defineProperty;
|
|
2
|
+
var Ts = (t, e, n) => e in t ? vs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var z = (t, e, n) => Ts(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
const Es = (t, e, n, r) => (t /= r / 2, t < 1 ? n / 2 * t * t + e : (t--, -n / 2 * (t * (t - 2) - 1) + e)), Ss = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || ((t) => window.setTimeout(t, 16.666666666666668));
|
|
5
|
+
function Rs(t, e) {
|
|
6
6
|
if (e) {
|
|
7
7
|
document.querySelector(e).scrollTop = t;
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
10
|
document.documentElement.scrollTop = t, document.body.parentNode.scrollTop = t, document.body.scrollTop = t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Os(t) {
|
|
13
13
|
return t ? document.querySelector(t).scrollTop : document.documentElement.scrollTop || document.body.parentNode.scrollTop || document.body.scrollTop;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const { target: e, to: n = 0, duration: r = 500, callback: s } = t ?? {}, o =
|
|
15
|
+
function Fs(t) {
|
|
16
|
+
const { target: e, to: n = 0, duration: r = 500, callback: s } = t ?? {}, o = Os(e), c = n - o, f = 20;
|
|
17
17
|
let d = 0;
|
|
18
18
|
const h = function() {
|
|
19
19
|
d += f;
|
|
20
|
-
const l =
|
|
21
|
-
|
|
20
|
+
const l = Es(d, o, c, r);
|
|
21
|
+
Rs(l, e), d < r ? Ss(h) : s && s();
|
|
22
22
|
};
|
|
23
23
|
h();
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function As(t, e) {
|
|
26
26
|
switch (arguments.length) {
|
|
27
27
|
case 1:
|
|
28
28
|
return parseInt((Math.random() * t + 1).toString(), 10);
|
|
@@ -32,7 +32,7 @@ function Fs(t, e) {
|
|
|
32
32
|
return 0;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function _s() {
|
|
36
36
|
let t = "";
|
|
37
37
|
const e = [];
|
|
38
38
|
for (let n = 0; n <= 15; n++)
|
|
@@ -41,7 +41,7 @@ function As() {
|
|
|
41
41
|
n === 9 || n === 14 || n === 19 || n === 24 ? t += "-" : n === 15 ? t += 4 : n === 20 ? t += e[Math.random() * 4 | 8] : t += e[Math.random() * 16 | 0];
|
|
42
42
|
return t;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Vt(t, e) {
|
|
45
45
|
if (!t) return "-";
|
|
46
46
|
t.toString().length === 10 && (t = +t * 1e3), e ?? (e = "YYYY-MM-DD HH:mm:ss");
|
|
47
47
|
const n = new Date(t), r = (c, f, d = " ") => {
|
|
@@ -65,15 +65,15 @@ function Yt(t, e) {
|
|
|
65
65
|
s = new RegExp("(" + c + ")").exec(e), s && (e = e.replace(s[1], s[1].length == 1 ? o[c] : r(o[c], s[1].length, "0")));
|
|
66
66
|
return e;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Is(t, e) {
|
|
69
69
|
`${t}`.length === 10 ? t = parseInt(t + "") * 1e3 : t = +t;
|
|
70
70
|
const n = new Date(t), s = (Date.now() - Number(n)) / 1e3;
|
|
71
|
-
return s < 30 ? "刚刚" : s < 3600 ? `${Math.ceil(s / 60)}分钟前` : s < 3600 * 24 ? `${Math.ceil(s / 3600)}小时前` : s < 3600 * 24 * 2 ? "1天前" : e ?
|
|
71
|
+
return s < 30 ? "刚刚" : s < 3600 ? `${Math.ceil(s / 60)}分钟前` : s < 3600 * 24 ? `${Math.ceil(s / 3600)}小时前` : s < 3600 * 24 * 2 ? "1天前" : e ? Vt(t, e) : `${n.getMonth() + 1}月${n.getDate()}日${n.getHours()}时${n.getMinutes()}分`;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Bs(t) {
|
|
74
74
|
const e = t || /* @__PURE__ */ new Date(), n = new Date(e), r = new Date(e);
|
|
75
75
|
return n.setHours(0, 0, 0), r.setHours(23, 59, 59), {
|
|
76
|
-
dateRange: [
|
|
76
|
+
dateRange: [Vt(n), Vt(r)],
|
|
77
77
|
timestampRange: [n.getTime(), r.getTime()]
|
|
78
78
|
};
|
|
79
79
|
}
|
|
@@ -118,7 +118,7 @@ const ct = {
|
|
|
118
118
|
localStorage.clear();
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
function
|
|
121
|
+
function Cs(t, e) {
|
|
122
122
|
if (!t || !e)
|
|
123
123
|
return;
|
|
124
124
|
let n = t.className;
|
|
@@ -128,10 +128,10 @@ function Bs(t, e) {
|
|
|
128
128
|
function Se(t, e) {
|
|
129
129
|
return t.className.match(new RegExp("(?:\\s|^)" + e + "(?:\\s|$)"));
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ds(t, e) {
|
|
132
132
|
Se(t, e) || (t.className += ` ${e}`);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function qs(t, e) {
|
|
135
135
|
if (Se(t, e)) {
|
|
136
136
|
const n = new RegExp("(?:\\s|^)" + e + "(?:\\s|$)");
|
|
137
137
|
t.className = t.className.replace(n, " ");
|
|
@@ -145,37 +145,37 @@ function Ps(t) {
|
|
|
145
145
|
}));
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Ms(t) {
|
|
149
149
|
t && (t.oncontextmenu = () => !1);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ns(t) {
|
|
152
152
|
return /^(http(s)?:\/\/)/.test(t);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function ks(t) {
|
|
155
155
|
return /^(https?:|mailto:|tel:)/.test(t);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Ls(t) {
|
|
158
158
|
return Object.prototype.toString.call(t) === "[object String]";
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Us(t) {
|
|
161
161
|
return /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(t);
|
|
162
162
|
}
|
|
163
163
|
function Hs(t) {
|
|
164
164
|
return !Object.keys(t).length;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function zs(t) {
|
|
167
167
|
return /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function js(t, e = 8) {
|
|
170
170
|
return new RegExp(`^S*(?=S{${e}},})(?=S*d)(?=S*[A-Z])(?=S*[a-z])(?=S*[!@#$%^&*?])S*$`).test(t);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function $s(t) {
|
|
173
173
|
return /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t);
|
|
174
174
|
}
|
|
175
175
|
function Re(t) {
|
|
176
176
|
return /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/.test(t);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Vs(t) {
|
|
179
179
|
return /^0\d{2,3}-?\d{7,8}$/.test(t);
|
|
180
180
|
}
|
|
181
181
|
function Ys(t) {
|
|
@@ -214,13 +214,13 @@ function Da(t, e) {
|
|
|
214
214
|
}, e);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function qa(t) {
|
|
218
218
|
if (!Re(t))
|
|
219
219
|
throw new Error("Please provide a valid ID number!");
|
|
220
220
|
const e = t.length, n = e === 15 ? t[e - 1] : t[e - 2];
|
|
221
221
|
return parseInt(n) % 2 === 1 ? "1" : "2";
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Pa(t) {
|
|
224
224
|
if (!Re(t))
|
|
225
225
|
throw new Error("Please provide a valid ID number!");
|
|
226
226
|
return t.substring(6, 10) + "-" + t.substring(10, 12) + "-" + t.substring(12, 14);
|
|
@@ -236,33 +236,33 @@ function Ma(t) {
|
|
|
236
236
|
if (r !== null && typeof r == "object")
|
|
237
237
|
Object.assign(c, r);
|
|
238
238
|
else {
|
|
239
|
-
const { protocol: f, hostname: d, port: h, pathname: l } =
|
|
239
|
+
const { protocol: f, hostname: d, port: h, pathname: l } = Ks();
|
|
240
240
|
Object.assign(c, { frontendProtocol: f, frontendDomain: d, frontendPort: h, frontendContextPath: l });
|
|
241
241
|
}
|
|
242
242
|
s(n, c).then((f) => o(f)).catch(() => o(!1));
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
const
|
|
246
|
-
const { protocol: n, hostname: r, port: s, pathname: o } = window.location, c = n.replace(":", ""), f = s || (c === "https" ? t : e), d =
|
|
245
|
+
const Ks = (t = "443", e = "80") => {
|
|
246
|
+
const { protocol: n, hostname: r, port: s, pathname: o } = window.location, c = n.replace(":", ""), f = s || (c === "https" ? t : e), d = Js(o);
|
|
247
247
|
return {
|
|
248
248
|
hostname: r,
|
|
249
249
|
protocol: c,
|
|
250
250
|
port: f,
|
|
251
251
|
pathname: d
|
|
252
252
|
};
|
|
253
|
-
},
|
|
253
|
+
}, Js = (t) => {
|
|
254
254
|
const e = "/";
|
|
255
255
|
if (!t || t === e) return e;
|
|
256
256
|
const n = t.endsWith("/") ? t.slice(0, -1) : t, r = n.lastIndexOf("/");
|
|
257
257
|
return r > 0 && n.substring(r + 1).includes(".") ? n.substring(0, r) : n;
|
|
258
|
-
},
|
|
258
|
+
}, Ws = (t, e = "") => {
|
|
259
259
|
e || (e = location.origin);
|
|
260
260
|
const n = new RegExp(/^http(s)?:\/\//), r = new RegExp(/^((?:[a-z]+:)?\/\/|data:image\/)(.*)/i);
|
|
261
261
|
return n.test(t) || r.test(t) ? t : e + t;
|
|
262
262
|
}, Na = (t, e = "") => {
|
|
263
263
|
typeof t == "string" && (t = t === "" ? [] : t.split(","));
|
|
264
264
|
for (const n in t)
|
|
265
|
-
t[n] =
|
|
265
|
+
t[n] = Ws(t[n], e);
|
|
266
266
|
return t;
|
|
267
267
|
};
|
|
268
268
|
function ka(t) {
|
|
@@ -289,17 +289,17 @@ function La(t) {
|
|
|
289
289
|
);
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Ua(t, e) {
|
|
293
293
|
const n = document.createElement("a");
|
|
294
294
|
n.download = e, n.href = t, n.click();
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Zs(t) {
|
|
297
297
|
const e = [];
|
|
298
298
|
for (let n = 0; n < t.length; n++)
|
|
299
299
|
t[n] && e.push(t[n]);
|
|
300
300
|
return e;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Ha(t, e, n = !1) {
|
|
303
303
|
let r = Math.round(t / e * 1e4) / 100;
|
|
304
304
|
return Number.isNaN(r) && (r = 0), n ? Math.floor(r) : r;
|
|
305
305
|
}
|
|
@@ -317,7 +317,7 @@ function $a(t, e = 48, n = 48) {
|
|
|
317
317
|
const r = t.replace("#", "");
|
|
318
318
|
return `data:image/svg+xml;utf8,<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="${e}" height="${n}"><path d="M787.510356 387.850445c0-152.160515-123.350352-275.511891-275.510868-275.511891S236.487597 235.68993 236.487597 387.850445c0 44.665269 10.640338 86.841857 29.507034 124.151601l-0.010233-0.001023 0.059352 0.100284c5.548366 10.962679 11.812023 21.500687 18.723434 31.56081L511.999488 926.678464l227.234351-383.021463c6.909363-10.057053 13.170974-20.593014 18.71934-31.552623l0.062422-0.104377-0.011256 0.002047C776.870018 474.692303 787.510356 432.515714 787.510356 387.850445zM511.999488 506.802628c-74.596975 0-135.070278-60.47228-135.070278-135.070278 0-74.595952 60.47228-135.069255 135.070278-135.069255 74.595952 0 135.069255 60.473303 135.069255 135.069255C647.068743 446.330348 586.59544 506.802628 511.999488 506.802628z" fill="%23${r}"></path></svg>`;
|
|
319
319
|
}
|
|
320
|
-
const
|
|
320
|
+
const Gs = [
|
|
321
321
|
["date", "YYYY-MM-DD"],
|
|
322
322
|
["daterange", "YYYY-MM-DD"],
|
|
323
323
|
["datetime", "YYYY-MM-DD HH:mm:ss"],
|
|
@@ -327,7 +327,7 @@ const Zs = [
|
|
|
327
327
|
["year", "YYYY"],
|
|
328
328
|
["yearrange", "YYYY"],
|
|
329
329
|
["time", "HH:mm:ss"]
|
|
330
|
-
],
|
|
330
|
+
], Xs = {
|
|
331
331
|
view: "查看",
|
|
332
332
|
add: "添加",
|
|
333
333
|
edit: "编辑",
|
|
@@ -377,7 +377,7 @@ const Zs = [
|
|
|
377
377
|
import: "导入",
|
|
378
378
|
tip: "提示",
|
|
379
379
|
defaultErrorCode: "系统未知错误,请反馈给管理员"
|
|
380
|
-
},
|
|
380
|
+
}, Qs = {
|
|
381
381
|
400: "请求失败,请您稍后重试!",
|
|
382
382
|
401: "认证失败,无法访问系统资源!",
|
|
383
383
|
403: "当前操作没有权限!",
|
|
@@ -388,27 +388,27 @@ const Zs = [
|
|
|
388
388
|
502: "网关错误!",
|
|
389
389
|
503: "服务不可用!",
|
|
390
390
|
504: "网关超时!"
|
|
391
|
-
},
|
|
391
|
+
}, ti = new Map(Gs), dt = Xs, ei = Qs, pn = ["jpg", "jpeg", "png", "bmp", "gif"], mn = ["mp3", "mp4", "webm", "ogg", "3gp"], gn = ["doc", "docx", "xls", "xlsx", "ppt", "txt", "pdf", "zip"], ni = [...pn, ...mn, ...gn];
|
|
392
392
|
function yn(t) {
|
|
393
|
-
return
|
|
393
|
+
return ei[t] ?? dt.defaultErrorCode;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function ri(t) {
|
|
396
396
|
return t == null ? dt.unfilled : (t = typeof t == "number" ? `${t}` : t, t === "1" ? dt.yes : dt.no);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function si(t) {
|
|
399
399
|
return t == null ? dt.unfilled : (t = typeof t == "number" ? `${t}` : t, t === "1" ? dt.have : dt.noHave);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function ii(t) {
|
|
402
402
|
return t ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : "";
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function oi(t, e, n) {
|
|
405
405
|
if (e ?? (e = 4), n ?? (n = 4), t) {
|
|
406
406
|
const r = t.length;
|
|
407
407
|
return t.substring(0, e) + "*".repeat(r - e - n) + t.substring(r - n);
|
|
408
408
|
}
|
|
409
409
|
return "";
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function xn(t) {
|
|
412
412
|
return t.replace(/( |^)[a-z]/g, (e) => e.toUpperCase());
|
|
413
413
|
}
|
|
414
414
|
function ai(t) {
|
|
@@ -429,11 +429,11 @@ function ui(t, e, n) {
|
|
|
429
429
|
});
|
|
430
430
|
}), r.map((f) => f.label).join();
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function bn(t, e, n) {
|
|
433
433
|
var o;
|
|
434
434
|
if (!e) return "";
|
|
435
435
|
const r = e.split(","), s = n.find((c) => c.value === r[t]);
|
|
436
|
-
return s ? ((o = s.children) != null && o.length &&
|
|
436
|
+
return s ? ((o = s.children) != null && o.length && bn(t + 1, e, s.children), s.label) : "";
|
|
437
437
|
}
|
|
438
438
|
function fi(t, e, n) {
|
|
439
439
|
if (!t) return "";
|
|
@@ -447,7 +447,7 @@ function fi(t, e, n) {
|
|
|
447
447
|
d && s.push(d);
|
|
448
448
|
}), s.map((f) => f.label).join();
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function wn(t) {
|
|
451
451
|
let e = "";
|
|
452
452
|
for (const n of Object.keys(t)) {
|
|
453
453
|
const r = t[n], s = `${encodeURIComponent(n)}=`;
|
|
@@ -464,7 +464,7 @@ function bn(t) {
|
|
|
464
464
|
return e;
|
|
465
465
|
}
|
|
466
466
|
function li(t) {
|
|
467
|
-
return t ?
|
|
467
|
+
return t ? Zs(
|
|
468
468
|
Object.keys(t).map((e) => t[e] === void 0 ? "" : `${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)
|
|
469
469
|
).join("&") : "";
|
|
470
470
|
}
|
|
@@ -481,28 +481,28 @@ function hi(t) {
|
|
|
481
481
|
}
|
|
482
482
|
}), n;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function vn(t, e) {
|
|
485
485
|
return function() {
|
|
486
486
|
return t.apply(e, arguments);
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
const { toString: di } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: Wt, toStringTag:
|
|
489
|
+
const { toString: di } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: Wt, toStringTag: Tn } = Symbol, Zt = /* @__PURE__ */ ((t) => (e) => {
|
|
490
490
|
const n = di.call(e);
|
|
491
491
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
492
492
|
})(/* @__PURE__ */ Object.create(null)), ut = (t) => (t = t.toLowerCase(), (e) => Zt(e) === t), Gt = (t) => (e) => typeof e === t, { isArray: Rt } = Array, Et = Gt("undefined");
|
|
493
493
|
function Bt(t) {
|
|
494
494
|
return t !== null && !Et(t) && t.constructor !== null && !Et(t.constructor) && Q(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
495
495
|
}
|
|
496
|
-
const
|
|
496
|
+
const En = ut("ArrayBuffer");
|
|
497
497
|
function pi(t) {
|
|
498
498
|
let e;
|
|
499
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
499
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && En(t.buffer), e;
|
|
500
500
|
}
|
|
501
|
-
const mi = Gt("string"), Q = Gt("function"),
|
|
501
|
+
const mi = Gt("string"), Q = Gt("function"), Sn = Gt("number"), Ct = (t) => t !== null && typeof t == "object", gi = (t) => t === !0 || t === !1, Ht = (t) => {
|
|
502
502
|
if (Zt(t) !== "object")
|
|
503
503
|
return !1;
|
|
504
504
|
const e = Oe(t);
|
|
505
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
505
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Tn in t) && !(Wt in t);
|
|
506
506
|
}, yi = (t) => {
|
|
507
507
|
if (!Ct(t) || Bt(t))
|
|
508
508
|
return !1;
|
|
@@ -532,7 +532,7 @@ function Dt(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
532
532
|
f = o[r], e.call(null, t[f], f, t);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Rn(t, e) {
|
|
536
536
|
if (Bt(t))
|
|
537
537
|
return null;
|
|
538
538
|
e = e.toLowerCase();
|
|
@@ -543,18 +543,18 @@ function Sn(t, e) {
|
|
|
543
543
|
return s;
|
|
544
544
|
return null;
|
|
545
545
|
}
|
|
546
|
-
const xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
546
|
+
const xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, On = (t) => !Et(t) && t !== xt;
|
|
547
547
|
function xe() {
|
|
548
|
-
const { caseless: t, skipUndefined: e } =
|
|
549
|
-
const c = t &&
|
|
550
|
-
|
|
548
|
+
const { caseless: t, skipUndefined: e } = On(this) && this || {}, n = {}, r = (s, o) => {
|
|
549
|
+
const c = t && Rn(n, o) || o;
|
|
550
|
+
Ht(n[c]) && Ht(s) ? n[c] = xe(n[c], s) : Ht(s) ? n[c] = xe({}, s) : Rt(s) ? n[c] = s.slice() : (!e || !Et(s)) && (n[c] = s);
|
|
551
551
|
};
|
|
552
552
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
553
553
|
arguments[s] && Dt(arguments[s], r);
|
|
554
554
|
return n;
|
|
555
555
|
}
|
|
556
556
|
const Ii = (t, e, n, { allOwnKeys: r } = {}) => (Dt(e, (s, o) => {
|
|
557
|
-
n && Q(s) ? t[o] =
|
|
557
|
+
n && Q(s) ? t[o] = vn(s, n) : t[o] = s;
|
|
558
558
|
}, { allOwnKeys: r }), t), Bi = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ci = (t, e, n, r) => {
|
|
559
559
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
560
560
|
value: e.prototype
|
|
@@ -569,15 +569,15 @@ const Ii = (t, e, n, { allOwnKeys: r } = {}) => (Dt(e, (s, o) => {
|
|
|
569
569
|
t = n !== !1 && Oe(t);
|
|
570
570
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
571
571
|
return e;
|
|
572
|
-
},
|
|
572
|
+
}, qi = (t, e, n) => {
|
|
573
573
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
574
574
|
const r = t.indexOf(e, n);
|
|
575
575
|
return r !== -1 && r === n;
|
|
576
|
-
},
|
|
576
|
+
}, Pi = (t) => {
|
|
577
577
|
if (!t) return null;
|
|
578
578
|
if (Rt(t)) return t;
|
|
579
579
|
let e = t.length;
|
|
580
|
-
if (!
|
|
580
|
+
if (!Sn(e)) return null;
|
|
581
581
|
const n = new Array(e);
|
|
582
582
|
for (; e-- > 0; )
|
|
583
583
|
n[e] = t[e];
|
|
@@ -595,19 +595,19 @@ const Ii = (t, e, n, { allOwnKeys: r } = {}) => (Dt(e, (s, o) => {
|
|
|
595
595
|
for (; (n = t.exec(e)) !== null; )
|
|
596
596
|
r.push(n);
|
|
597
597
|
return r;
|
|
598
|
-
}, Li = ut("HTMLFormElement"),
|
|
598
|
+
}, Li = ut("HTMLFormElement"), Ui = (t) => t.toLowerCase().replace(
|
|
599
599
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
600
600
|
function(n, r, s) {
|
|
601
601
|
return r.toUpperCase() + s;
|
|
602
602
|
}
|
|
603
|
-
), Ne = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype),
|
|
603
|
+
), Ne = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Hi = ut("RegExp"), Fn = (t, e) => {
|
|
604
604
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
605
605
|
Dt(n, (s, o) => {
|
|
606
606
|
let c;
|
|
607
607
|
(c = e(s, o, t)) !== !1 && (r[o] = c || s);
|
|
608
608
|
}), Object.defineProperties(t, r);
|
|
609
609
|
}, zi = (t) => {
|
|
610
|
-
|
|
610
|
+
Fn(t, (e, n) => {
|
|
611
611
|
if (Q(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
612
612
|
return !1;
|
|
613
613
|
const r = t[n];
|
|
@@ -629,9 +629,9 @@ const Ii = (t, e, n, { allOwnKeys: r } = {}) => (Dt(e, (s, o) => {
|
|
|
629
629
|
};
|
|
630
630
|
return Rt(t) ? r(t) : r(String(t).split(e)), n;
|
|
631
631
|
}, $i = () => {
|
|
632
|
-
},
|
|
633
|
-
function
|
|
634
|
-
return !!(t && Q(t.append) && t[
|
|
632
|
+
}, Vi = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
633
|
+
function Yi(t) {
|
|
634
|
+
return !!(t && Q(t.append) && t[Tn] === "FormData" && t[Wt]);
|
|
635
635
|
}
|
|
636
636
|
const Ki = (t) => {
|
|
637
637
|
const e = new Array(10), n = (r, s) => {
|
|
@@ -652,24 +652,24 @@ const Ki = (t) => {
|
|
|
652
652
|
return r;
|
|
653
653
|
};
|
|
654
654
|
return n(t, 0);
|
|
655
|
-
}, Ji = ut("AsyncFunction"), Wi = (t) => t && (Ct(t) || Q(t)) && Q(t.then) && Q(t.catch),
|
|
655
|
+
}, Ji = ut("AsyncFunction"), Wi = (t) => t && (Ct(t) || Q(t)) && Q(t.then) && Q(t.catch), An = ((t, e) => t ? setImmediate : e ? ((n, r) => (xt.addEventListener("message", ({ source: s, data: o }) => {
|
|
656
656
|
s === xt && o === n && r.length && r.shift()();
|
|
657
657
|
}, !1), (s) => {
|
|
658
658
|
r.push(s), xt.postMessage(n, "*");
|
|
659
659
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
660
660
|
typeof setImmediate == "function",
|
|
661
661
|
Q(xt.postMessage)
|
|
662
|
-
), Zi = typeof queueMicrotask < "u" ? queueMicrotask.bind(xt) : typeof process < "u" && process.nextTick ||
|
|
662
|
+
), Zi = typeof queueMicrotask < "u" ? queueMicrotask.bind(xt) : typeof process < "u" && process.nextTick || An, Gi = (t) => t != null && Q(t[Wt]), y = {
|
|
663
663
|
isArray: Rt,
|
|
664
|
-
isArrayBuffer:
|
|
664
|
+
isArrayBuffer: En,
|
|
665
665
|
isBuffer: Bt,
|
|
666
666
|
isFormData: Ei,
|
|
667
667
|
isArrayBufferView: pi,
|
|
668
668
|
isString: mi,
|
|
669
|
-
isNumber:
|
|
669
|
+
isNumber: Sn,
|
|
670
670
|
isBoolean: gi,
|
|
671
671
|
isObject: Ct,
|
|
672
|
-
isPlainObject:
|
|
672
|
+
isPlainObject: Ht,
|
|
673
673
|
isEmptyObject: yi,
|
|
674
674
|
isReadableStream: Ri,
|
|
675
675
|
isRequest: Oi,
|
|
@@ -679,7 +679,7 @@ const Ki = (t) => {
|
|
|
679
679
|
isDate: xi,
|
|
680
680
|
isFile: bi,
|
|
681
681
|
isBlob: wi,
|
|
682
|
-
isRegExp:
|
|
682
|
+
isRegExp: Hi,
|
|
683
683
|
isFunction: Q,
|
|
684
684
|
isStream: Ti,
|
|
685
685
|
isURLSearchParams: Si,
|
|
@@ -694,28 +694,28 @@ const Ki = (t) => {
|
|
|
694
694
|
toFlatObject: Di,
|
|
695
695
|
kindOf: Zt,
|
|
696
696
|
kindOfTest: ut,
|
|
697
|
-
endsWith:
|
|
698
|
-
toArray:
|
|
697
|
+
endsWith: qi,
|
|
698
|
+
toArray: Pi,
|
|
699
699
|
forEachEntry: Ni,
|
|
700
700
|
matchAll: ki,
|
|
701
701
|
isHTMLForm: Li,
|
|
702
702
|
hasOwnProperty: Ne,
|
|
703
703
|
hasOwnProp: Ne,
|
|
704
704
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
705
|
-
reduceDescriptors:
|
|
705
|
+
reduceDescriptors: Fn,
|
|
706
706
|
freezeMethods: zi,
|
|
707
707
|
toObjectSet: ji,
|
|
708
|
-
toCamelCase:
|
|
708
|
+
toCamelCase: Ui,
|
|
709
709
|
noop: $i,
|
|
710
|
-
toFiniteNumber:
|
|
711
|
-
findKey:
|
|
710
|
+
toFiniteNumber: Vi,
|
|
711
|
+
findKey: Rn,
|
|
712
712
|
global: xt,
|
|
713
|
-
isContextDefined:
|
|
714
|
-
isSpecCompliantForm:
|
|
713
|
+
isContextDefined: On,
|
|
714
|
+
isSpecCompliantForm: Yi,
|
|
715
715
|
toJSONObject: Ki,
|
|
716
716
|
isAsyncFn: Ji,
|
|
717
717
|
isThenable: Wi,
|
|
718
|
-
setImmediate:
|
|
718
|
+
setImmediate: An,
|
|
719
719
|
asap: Zi,
|
|
720
720
|
isIterable: Gi
|
|
721
721
|
};
|
|
@@ -743,7 +743,7 @@ y.inherits(M, Error, {
|
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
|
-
const
|
|
746
|
+
const _n = M.prototype, In = {};
|
|
747
747
|
[
|
|
748
748
|
"ERR_BAD_OPTION_VALUE",
|
|
749
749
|
"ERR_BAD_OPTION",
|
|
@@ -759,12 +759,12 @@ const An = M.prototype, _n = {};
|
|
|
759
759
|
"ERR_INVALID_URL"
|
|
760
760
|
// eslint-disable-next-line func-names
|
|
761
761
|
].forEach((t) => {
|
|
762
|
-
|
|
762
|
+
In[t] = { value: t };
|
|
763
763
|
});
|
|
764
|
-
Object.defineProperties(M,
|
|
765
|
-
Object.defineProperty(
|
|
764
|
+
Object.defineProperties(M, In);
|
|
765
|
+
Object.defineProperty(_n, "isAxiosError", { value: !0 });
|
|
766
766
|
M.from = (t, e, n, r, s, o) => {
|
|
767
|
-
const c = Object.create(
|
|
767
|
+
const c = Object.create(_n);
|
|
768
768
|
y.toFlatObject(t, c, function(l) {
|
|
769
769
|
return l !== Error.prototype;
|
|
770
770
|
}, (h) => h !== "isAxiosError");
|
|
@@ -775,12 +775,12 @@ const Xi = null;
|
|
|
775
775
|
function be(t) {
|
|
776
776
|
return y.isPlainObject(t) || y.isArray(t);
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function Bn(t) {
|
|
779
779
|
return y.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
780
780
|
}
|
|
781
781
|
function ke(t, e, n) {
|
|
782
782
|
return t ? t.concat(e).map(function(s, o) {
|
|
783
|
-
return s =
|
|
783
|
+
return s = Bn(s), !n && o ? "[" + s + "]" : s;
|
|
784
784
|
}).join(n ? "." : "") : e;
|
|
785
785
|
}
|
|
786
786
|
function Qi(t) {
|
|
@@ -818,7 +818,7 @@ function Xt(t, e, n) {
|
|
|
818
818
|
if (y.endsWith(F, "{}"))
|
|
819
819
|
F = r ? F : F.slice(0, -2), w = JSON.stringify(w);
|
|
820
820
|
else if (y.isArray(w) && Qi(w) || (y.isFileList(w) || y.endsWith(F, "[]")) && (T = y.toArray(w)))
|
|
821
|
-
return F =
|
|
821
|
+
return F = Bn(F), T.forEach(function(g, S) {
|
|
822
822
|
!(y.isUndefined(g) || g === null) && e.append(
|
|
823
823
|
// eslint-disable-next-line no-nested-ternary
|
|
824
824
|
c === !0 ? ke([F], S, o) : c === null ? F : F + "[]",
|
|
@@ -869,11 +869,11 @@ function Le(t) {
|
|
|
869
869
|
function Fe(t, e) {
|
|
870
870
|
this._pairs = [], t && Xt(t, this, e);
|
|
871
871
|
}
|
|
872
|
-
const
|
|
873
|
-
|
|
872
|
+
const Cn = Fe.prototype;
|
|
873
|
+
Cn.append = function(e, n) {
|
|
874
874
|
this._pairs.push([e, n]);
|
|
875
875
|
};
|
|
876
|
-
|
|
876
|
+
Cn.toString = function(e) {
|
|
877
877
|
const n = e ? function(r) {
|
|
878
878
|
return e.call(this, r, Le);
|
|
879
879
|
} : Le;
|
|
@@ -884,7 +884,7 @@ Bn.toString = function(e) {
|
|
|
884
884
|
function eo(t) {
|
|
885
885
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function Dn(t, e, n) {
|
|
888
888
|
if (!e)
|
|
889
889
|
return t;
|
|
890
890
|
const r = n && n.encode || eo;
|
|
@@ -899,7 +899,7 @@ function Cn(t, e, n) {
|
|
|
899
899
|
}
|
|
900
900
|
return t;
|
|
901
901
|
}
|
|
902
|
-
class
|
|
902
|
+
class Ue {
|
|
903
903
|
constructor() {
|
|
904
904
|
this.handlers = [];
|
|
905
905
|
}
|
|
@@ -953,7 +953,7 @@ class He {
|
|
|
953
953
|
});
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
const
|
|
956
|
+
const qn = {
|
|
957
957
|
silentJSONParsing: !0,
|
|
958
958
|
forcedJSONParsing: !0,
|
|
959
959
|
clarifyTimeoutError: !1
|
|
@@ -1022,8 +1022,8 @@ function po(t, e, n) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
return (n || JSON.stringify)(t);
|
|
1024
1024
|
}
|
|
1025
|
-
const
|
|
1026
|
-
transitional:
|
|
1025
|
+
const qt = {
|
|
1026
|
+
transitional: qn,
|
|
1027
1027
|
adapter: ["xhr", "http", "fetch"],
|
|
1028
1028
|
transformRequest: [function(e, n) {
|
|
1029
1029
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = y.isObject(e);
|
|
@@ -1051,7 +1051,7 @@ const Pt = {
|
|
|
1051
1051
|
return o || s ? (n.setContentType("application/json", !1), po(e)) : e;
|
|
1052
1052
|
}],
|
|
1053
1053
|
transformResponse: [function(e) {
|
|
1054
|
-
const n = this.transitional ||
|
|
1054
|
+
const n = this.transitional || qt.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
1055
1055
|
if (y.isResponse(e) || y.isReadableStream(e))
|
|
1056
1056
|
return e;
|
|
1057
1057
|
if (e && y.isString(e) && (r && !this.responseType || s)) {
|
|
@@ -1089,7 +1089,7 @@ const Pt = {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
1091
|
y.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
1092
|
-
|
|
1092
|
+
qt.headers[t] = {};
|
|
1093
1093
|
});
|
|
1094
1094
|
const mo = y.toObjectSet([
|
|
1095
1095
|
"age",
|
|
@@ -1116,7 +1116,7 @@ const mo = y.toObjectSet([
|
|
|
1116
1116
|
`).forEach(function(c) {
|
|
1117
1117
|
s = c.indexOf(":"), n = c.substring(0, s).trim().toLowerCase(), r = c.substring(s + 1).trim(), !(!n || e[n] && mo[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
1118
1118
|
}), e;
|
|
1119
|
-
},
|
|
1119
|
+
}, He = Symbol("internals");
|
|
1120
1120
|
function _t(t) {
|
|
1121
1121
|
return t && String(t).trim().toLowerCase();
|
|
1122
1122
|
}
|
|
@@ -1271,7 +1271,7 @@ let tt = class {
|
|
|
1271
1271
|
return n.forEach((s) => r.set(s)), r;
|
|
1272
1272
|
}
|
|
1273
1273
|
static accessor(e) {
|
|
1274
|
-
const r = (this[
|
|
1274
|
+
const r = (this[He] = this[He] = {
|
|
1275
1275
|
accessors: {}
|
|
1276
1276
|
}).accessors, s = this.prototype;
|
|
1277
1277
|
function o(c) {
|
|
@@ -1293,13 +1293,13 @@ y.reduceDescriptors(tt.prototype, ({ value: t }, e) => {
|
|
|
1293
1293
|
});
|
|
1294
1294
|
y.freezeMethods(tt);
|
|
1295
1295
|
function ae(t, e) {
|
|
1296
|
-
const n = this ||
|
|
1296
|
+
const n = this || qt, r = e || n, s = tt.from(r.headers);
|
|
1297
1297
|
let o = r.data;
|
|
1298
1298
|
return y.forEach(t, function(f) {
|
|
1299
1299
|
o = f.call(n, o, s.normalize(), e ? e.status : void 0);
|
|
1300
1300
|
}), s.normalize(), o;
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function Mn(t) {
|
|
1303
1303
|
return !!(t && t.__CANCEL__);
|
|
1304
1304
|
}
|
|
1305
1305
|
function Ot(t, e, n) {
|
|
@@ -1308,7 +1308,7 @@ function Ot(t, e, n) {
|
|
|
1308
1308
|
y.inherits(Ot, M, {
|
|
1309
1309
|
__CANCEL__: !0
|
|
1310
1310
|
});
|
|
1311
|
-
function
|
|
1311
|
+
function Nn(t, e, n) {
|
|
1312
1312
|
const r = n.config.validateStatus;
|
|
1313
1313
|
!n.status || !r || r(n.status) ? t(n) : e(new M(
|
|
1314
1314
|
"Request failed with status code " + n.status,
|
|
@@ -1350,7 +1350,7 @@ function Eo(t, e) {
|
|
|
1350
1350
|
}, r - v)));
|
|
1351
1351
|
}, () => s && c(s)];
|
|
1352
1352
|
}
|
|
1353
|
-
const
|
|
1353
|
+
const Yt = (t, e, n = 3) => {
|
|
1354
1354
|
let r = 0;
|
|
1355
1355
|
const s = To(50, 250);
|
|
1356
1356
|
return Eo((o) => {
|
|
@@ -1412,7 +1412,7 @@ function Oo(t) {
|
|
|
1412
1412
|
function Fo(t, e) {
|
|
1413
1413
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function kn(t, e, n) {
|
|
1416
1416
|
let r = !Oo(e);
|
|
1417
1417
|
return t && (r || n == !1) ? Fo(t, e) : e;
|
|
1418
1418
|
}
|
|
@@ -1481,10 +1481,10 @@ function wt(t, e) {
|
|
|
1481
1481
|
y.isUndefined(O) && v !== f || (n[l] = O);
|
|
1482
1482
|
}), n;
|
|
1483
1483
|
}
|
|
1484
|
-
const
|
|
1484
|
+
const Ln = (t) => {
|
|
1485
1485
|
const e = wt({}, t);
|
|
1486
1486
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: c, auth: f } = e;
|
|
1487
|
-
if (e.headers = c = tt.from(c), e.url =
|
|
1487
|
+
if (e.headers = c = tt.from(c), e.url = Dn(kn(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), f && c.set(
|
|
1488
1488
|
"Authorization",
|
|
1489
1489
|
"Basic " + btoa((f.username || "") + ":" + (f.password ? unescape(encodeURIComponent(f.password)) : ""))
|
|
1490
1490
|
), y.isFormData(n)) {
|
|
@@ -1504,7 +1504,7 @@ const kn = (t) => {
|
|
|
1504
1504
|
return e;
|
|
1505
1505
|
}, Ao = typeof XMLHttpRequest < "u", _o = Ao && function(t) {
|
|
1506
1506
|
return new Promise(function(n, r) {
|
|
1507
|
-
const s =
|
|
1507
|
+
const s = Ln(t);
|
|
1508
1508
|
let o = s.data;
|
|
1509
1509
|
const c = tt.from(s.headers).normalize();
|
|
1510
1510
|
let { responseType: f, onUploadProgress: d, onDownloadProgress: h } = s, l, v, O, I, w;
|
|
@@ -1526,7 +1526,7 @@ const kn = (t) => {
|
|
|
1526
1526
|
config: t,
|
|
1527
1527
|
request: m
|
|
1528
1528
|
};
|
|
1529
|
-
|
|
1529
|
+
Nn(function(C) {
|
|
1530
1530
|
n(C), F();
|
|
1531
1531
|
}, function(C) {
|
|
1532
1532
|
r(C), F();
|
|
@@ -1541,7 +1541,7 @@ const kn = (t) => {
|
|
|
1541
1541
|
A.event = S || null, r(A), m = null;
|
|
1542
1542
|
}, m.ontimeout = function() {
|
|
1543
1543
|
let S = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1544
|
-
const x = s.transitional ||
|
|
1544
|
+
const x = s.transitional || qn;
|
|
1545
1545
|
s.timeoutErrorMessage && (S = s.timeoutErrorMessage), r(new M(
|
|
1546
1546
|
S,
|
|
1547
1547
|
x.clarifyTimeoutError ? M.ETIMEDOUT : M.ECONNABORTED,
|
|
@@ -1550,7 +1550,7 @@ const kn = (t) => {
|
|
|
1550
1550
|
)), m = null;
|
|
1551
1551
|
}, o === void 0 && c.setContentType(null), "setRequestHeader" in m && y.forEach(c.toJSON(), function(S, x) {
|
|
1552
1552
|
m.setRequestHeader(x, S);
|
|
1553
|
-
}), y.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), f && f !== "json" && (m.responseType = s.responseType), h && ([O, w] =
|
|
1553
|
+
}), y.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), f && f !== "json" && (m.responseType = s.responseType), h && ([O, w] = Yt(h, !0), m.addEventListener("progress", O)), d && m.upload && ([v, I] = Yt(d), m.upload.addEventListener("progress", v), m.upload.addEventListener("loadend", I)), (s.cancelToken || s.signal) && (l = (g) => {
|
|
1554
1554
|
m && (r(!g || g.type ? new Ot(null, t, m) : g), m.abort(), m = null);
|
|
1555
1555
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1556
1556
|
const b = vo(s.url);
|
|
@@ -1611,7 +1611,7 @@ const kn = (t) => {
|
|
|
1611
1611
|
} finally {
|
|
1612
1612
|
await e.cancel();
|
|
1613
1613
|
}
|
|
1614
|
-
},
|
|
1614
|
+
}, Ve = (t, e, n, r) => {
|
|
1615
1615
|
const s = Co(t, e);
|
|
1616
1616
|
let o = 0, c, f = (d) => {
|
|
1617
1617
|
c || (c = !0, r && r(d));
|
|
@@ -1640,7 +1640,7 @@ const kn = (t) => {
|
|
|
1640
1640
|
}, {
|
|
1641
1641
|
highWaterMark: 2
|
|
1642
1642
|
});
|
|
1643
|
-
},
|
|
1643
|
+
}, Ye = 64 * 1024, { isFunction: Lt } = y, qo = (({ Request: t, Response: e }) => ({
|
|
1644
1644
|
Request: t,
|
|
1645
1645
|
Response: e
|
|
1646
1646
|
}))(y.global), {
|
|
@@ -1652,10 +1652,10 @@ const kn = (t) => {
|
|
|
1652
1652
|
} catch {
|
|
1653
1653
|
return !1;
|
|
1654
1654
|
}
|
|
1655
|
-
},
|
|
1655
|
+
}, Po = (t) => {
|
|
1656
1656
|
t = y.merge.call({
|
|
1657
1657
|
skipUndefined: !0
|
|
1658
|
-
},
|
|
1658
|
+
}, qo, t);
|
|
1659
1659
|
const { fetch: e, Request: n, Response: r } = t, s = e ? Lt(e) : typeof fetch == "function", o = Lt(n), c = Lt(r);
|
|
1660
1660
|
if (!s)
|
|
1661
1661
|
return !1;
|
|
@@ -1709,64 +1709,64 @@ const kn = (t) => {
|
|
|
1709
1709
|
onDownloadProgress: x,
|
|
1710
1710
|
onUploadProgress: A,
|
|
1711
1711
|
responseType: C,
|
|
1712
|
-
headers:
|
|
1712
|
+
headers: P,
|
|
1713
1713
|
withCredentials: N = "same-origin",
|
|
1714
|
-
fetchOptions:
|
|
1715
|
-
} =
|
|
1714
|
+
fetchOptions: H
|
|
1715
|
+
} = Ln(w), q = e || fetch;
|
|
1716
1716
|
C = C ? (C + "").toLowerCase() : "text";
|
|
1717
1717
|
let k = Io([b, g && g.toAbortSignal()], S), L = null;
|
|
1718
|
-
const
|
|
1718
|
+
const U = k && k.unsubscribe && (() => {
|
|
1719
1719
|
k.unsubscribe();
|
|
1720
1720
|
});
|
|
1721
1721
|
let J;
|
|
1722
1722
|
try {
|
|
1723
|
-
if (A && h && m !== "get" && m !== "head" && (J = await I(
|
|
1723
|
+
if (A && h && m !== "get" && m !== "head" && (J = await I(P, T)) !== 0) {
|
|
1724
1724
|
let et = new n(F, {
|
|
1725
1725
|
method: "POST",
|
|
1726
1726
|
body: T,
|
|
1727
1727
|
duplex: "half"
|
|
1728
1728
|
}), D;
|
|
1729
|
-
if (y.isFormData(T) && (D = et.headers.get("content-type")) &&
|
|
1729
|
+
if (y.isFormData(T) && (D = et.headers.get("content-type")) && P.setContentType(D), et.body) {
|
|
1730
1730
|
const [Ft, Tt] = ze(
|
|
1731
1731
|
J,
|
|
1732
|
-
|
|
1732
|
+
Yt(je(A))
|
|
1733
1733
|
);
|
|
1734
|
-
T =
|
|
1734
|
+
T = Ve(et.body, Ye, Ft, Tt);
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
y.isString(N) || (N = N ? "include" : "omit");
|
|
1738
|
-
const
|
|
1739
|
-
...
|
|
1738
|
+
const V = o && "credentials" in n.prototype, X = {
|
|
1739
|
+
...H,
|
|
1740
1740
|
signal: k,
|
|
1741
1741
|
method: m.toUpperCase(),
|
|
1742
|
-
headers:
|
|
1742
|
+
headers: P.normalize().toJSON(),
|
|
1743
1743
|
body: T,
|
|
1744
1744
|
duplex: "half",
|
|
1745
|
-
credentials:
|
|
1745
|
+
credentials: V ? N : void 0
|
|
1746
1746
|
};
|
|
1747
1747
|
L = o && new n(F, X);
|
|
1748
|
-
let Z = await (o ?
|
|
1748
|
+
let Z = await (o ? q(L, H) : q(F, X));
|
|
1749
1749
|
const pt = l && (C === "stream" || C === "response");
|
|
1750
|
-
if (l && (x || pt &&
|
|
1750
|
+
if (l && (x || pt && U)) {
|
|
1751
1751
|
const et = {};
|
|
1752
|
-
["status", "statusText", "headers"].forEach((
|
|
1753
|
-
et[
|
|
1752
|
+
["status", "statusText", "headers"].forEach((Pt) => {
|
|
1753
|
+
et[Pt] = Z[Pt];
|
|
1754
1754
|
});
|
|
1755
1755
|
const D = y.toFiniteNumber(Z.headers.get("content-length")), [Ft, Tt] = x && ze(
|
|
1756
1756
|
D,
|
|
1757
|
-
|
|
1757
|
+
Yt(je(x), !0)
|
|
1758
1758
|
) || [];
|
|
1759
1759
|
Z = new r(
|
|
1760
|
-
|
|
1761
|
-
Tt && Tt(),
|
|
1760
|
+
Ve(Z.body, Ye, Ft, () => {
|
|
1761
|
+
Tt && Tt(), U && U();
|
|
1762
1762
|
}),
|
|
1763
1763
|
et
|
|
1764
1764
|
);
|
|
1765
1765
|
}
|
|
1766
1766
|
C = C || "text";
|
|
1767
1767
|
let vt = await v[y.findKey(v, C) || "text"](Z, w);
|
|
1768
|
-
return !pt &&
|
|
1769
|
-
|
|
1768
|
+
return !pt && U && U(), await new Promise((et, D) => {
|
|
1769
|
+
Nn(et, D, {
|
|
1770
1770
|
data: vt,
|
|
1771
1771
|
headers: tt.from(Z.headers),
|
|
1772
1772
|
status: Z.status,
|
|
@@ -1775,16 +1775,16 @@ const kn = (t) => {
|
|
|
1775
1775
|
request: L
|
|
1776
1776
|
});
|
|
1777
1777
|
});
|
|
1778
|
-
} catch (
|
|
1779
|
-
throw
|
|
1778
|
+
} catch (V) {
|
|
1779
|
+
throw U && U(), V && V.name === "TypeError" && /Load failed|fetch/i.test(V.message) ? Object.assign(
|
|
1780
1780
|
new M("Network Error", M.ERR_NETWORK, w, L),
|
|
1781
1781
|
{
|
|
1782
|
-
cause:
|
|
1782
|
+
cause: V.cause || V
|
|
1783
1783
|
}
|
|
1784
|
-
) : M.from(
|
|
1784
|
+
) : M.from(V, V && V.code, w, L);
|
|
1785
1785
|
}
|
|
1786
1786
|
};
|
|
1787
|
-
}, Mo = /* @__PURE__ */ new Map(),
|
|
1787
|
+
}, Mo = /* @__PURE__ */ new Map(), Un = (t) => {
|
|
1788
1788
|
let e = t ? t.env : {};
|
|
1789
1789
|
const { fetch: n, Request: r, Response: s } = e, o = [
|
|
1790
1790
|
r,
|
|
@@ -1793,15 +1793,15 @@ const kn = (t) => {
|
|
|
1793
1793
|
];
|
|
1794
1794
|
let c = o.length, f = c, d, h, l = Mo;
|
|
1795
1795
|
for (; f--; )
|
|
1796
|
-
d = o[f], h = l.get(d), h === void 0 && l.set(d, h = f ? /* @__PURE__ */ new Map() :
|
|
1796
|
+
d = o[f], h = l.get(d), h === void 0 && l.set(d, h = f ? /* @__PURE__ */ new Map() : Po(e)), l = h;
|
|
1797
1797
|
return h;
|
|
1798
1798
|
};
|
|
1799
|
-
|
|
1799
|
+
Un();
|
|
1800
1800
|
const ve = {
|
|
1801
1801
|
http: Xi,
|
|
1802
1802
|
xhr: _o,
|
|
1803
1803
|
fetch: {
|
|
1804
|
-
get:
|
|
1804
|
+
get: Un
|
|
1805
1805
|
}
|
|
1806
1806
|
};
|
|
1807
1807
|
y.forEach(ve, (t, e) => {
|
|
@@ -1852,21 +1852,21 @@ function Ge(t) {
|
|
|
1852
1852
|
return ce(t), t.headers = tt.from(t.headers), t.data = ae.call(
|
|
1853
1853
|
t,
|
|
1854
1854
|
t.transformRequest
|
|
1855
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Hn.getAdapter(t.adapter ||
|
|
1855
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Hn.getAdapter(t.adapter || qt.adapter, t)(t).then(function(r) {
|
|
1856
1856
|
return ce(t), r.data = ae.call(
|
|
1857
1857
|
t,
|
|
1858
1858
|
t.transformResponse,
|
|
1859
1859
|
r
|
|
1860
1860
|
), r.headers = tt.from(r.headers), r;
|
|
1861
1861
|
}, function(r) {
|
|
1862
|
-
return
|
|
1862
|
+
return Mn(r) || (ce(t), r && r.response && (r.response.data = ae.call(
|
|
1863
1863
|
t,
|
|
1864
1864
|
t.transformResponse,
|
|
1865
1865
|
r.response
|
|
1866
1866
|
), r.response.headers = tt.from(r.response.headers))), Promise.reject(r);
|
|
1867
1867
|
});
|
|
1868
1868
|
}
|
|
1869
|
-
const
|
|
1869
|
+
const zn = "1.12.2", Qt = {};
|
|
1870
1870
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1871
1871
|
Qt[t] = function(r) {
|
|
1872
1872
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
@@ -1875,7 +1875,7 @@ const Un = "1.12.2", Qt = {};
|
|
|
1875
1875
|
const Xe = {};
|
|
1876
1876
|
Qt.transitional = function(e, n, r) {
|
|
1877
1877
|
function s(o, c) {
|
|
1878
|
-
return "[Axios v" +
|
|
1878
|
+
return "[Axios v" + zn + "] Transitional option '" + o + "'" + c + (r ? ". " + r : "");
|
|
1879
1879
|
}
|
|
1880
1880
|
return (o, c, f) => {
|
|
1881
1881
|
if (e === !1)
|
|
@@ -1918,8 +1918,8 @@ const jt = {
|
|
|
1918
1918
|
let bt = class {
|
|
1919
1919
|
constructor(e) {
|
|
1920
1920
|
this.defaults = e || {}, this.interceptors = {
|
|
1921
|
-
request: new
|
|
1922
|
-
response: new
|
|
1921
|
+
request: new Ue(),
|
|
1922
|
+
response: new Ue()
|
|
1923
1923
|
};
|
|
1924
1924
|
}
|
|
1925
1925
|
/**
|
|
@@ -2011,8 +2011,8 @@ let bt = class {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
getUri(e) {
|
|
2013
2013
|
e = wt(this.defaults, e);
|
|
2014
|
-
const n =
|
|
2015
|
-
return
|
|
2014
|
+
const n = kn(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
2015
|
+
return Dn(n, e.params, e.paramsSerializer);
|
|
2016
2016
|
}
|
|
2017
2017
|
};
|
|
2018
2018
|
y.forEach(["delete", "get", "head", "options"], function(e) {
|
|
@@ -2039,7 +2039,7 @@ y.forEach(["post", "put", "patch"], function(e) {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
bt.prototype[e] = n(), bt.prototype[e + "Form"] = n(!0);
|
|
2041
2041
|
});
|
|
2042
|
-
let Lo = class
|
|
2042
|
+
let Lo = class jn {
|
|
2043
2043
|
constructor(e) {
|
|
2044
2044
|
if (typeof e != "function")
|
|
2045
2045
|
throw new TypeError("executor must be a function.");
|
|
@@ -2105,19 +2105,19 @@ let Lo = class zn {
|
|
|
2105
2105
|
static source() {
|
|
2106
2106
|
let e;
|
|
2107
2107
|
return {
|
|
2108
|
-
token: new
|
|
2108
|
+
token: new jn(function(s) {
|
|
2109
2109
|
e = s;
|
|
2110
2110
|
}),
|
|
2111
2111
|
cancel: e
|
|
2112
2112
|
};
|
|
2113
2113
|
}
|
|
2114
2114
|
};
|
|
2115
|
-
function
|
|
2115
|
+
function Uo(t) {
|
|
2116
2116
|
return function(n) {
|
|
2117
2117
|
return t.apply(null, n);
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function Ho(t) {
|
|
2121
2121
|
return y.isObject(t) && t.isAxiosError === !0;
|
|
2122
2122
|
}
|
|
2123
2123
|
const Te = {
|
|
@@ -2188,26 +2188,26 @@ const Te = {
|
|
|
2188
2188
|
Object.entries(Te).forEach(([t, e]) => {
|
|
2189
2189
|
Te[e] = t;
|
|
2190
2190
|
});
|
|
2191
|
-
function
|
|
2192
|
-
const e = new bt(t), n =
|
|
2191
|
+
function $n(t) {
|
|
2192
|
+
const e = new bt(t), n = vn(bt.prototype.request, e);
|
|
2193
2193
|
return y.extend(n, bt.prototype, e, { allOwnKeys: !0 }), y.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2194
|
-
return
|
|
2194
|
+
return $n(wt(t, s));
|
|
2195
2195
|
}, n;
|
|
2196
2196
|
}
|
|
2197
|
-
const $ =
|
|
2197
|
+
const $ = $n(qt);
|
|
2198
2198
|
$.Axios = bt;
|
|
2199
2199
|
$.CanceledError = Ot;
|
|
2200
2200
|
$.CancelToken = Lo;
|
|
2201
|
-
$.isCancel =
|
|
2202
|
-
$.VERSION =
|
|
2201
|
+
$.isCancel = Mn;
|
|
2202
|
+
$.VERSION = zn;
|
|
2203
2203
|
$.toFormData = Xt;
|
|
2204
2204
|
$.AxiosError = M;
|
|
2205
2205
|
$.Cancel = $.CanceledError;
|
|
2206
2206
|
$.all = function(e) {
|
|
2207
2207
|
return Promise.all(e);
|
|
2208
2208
|
};
|
|
2209
|
-
$.spread =
|
|
2210
|
-
$.isAxiosError =
|
|
2209
|
+
$.spread = Uo;
|
|
2210
|
+
$.isAxiosError = Ho;
|
|
2211
2211
|
$.mergeConfig = wt;
|
|
2212
2212
|
$.AxiosHeaders = tt;
|
|
2213
2213
|
$.formToJSON = (t) => Pn(y.isHTMLForm(t) ? new FormData(t) : t);
|
|
@@ -2234,7 +2234,7 @@ const {
|
|
|
2234
2234
|
} = $;
|
|
2235
2235
|
class zo {
|
|
2236
2236
|
constructor() {
|
|
2237
|
-
|
|
2237
|
+
z(this, "pendingMap", /* @__PURE__ */ new Map());
|
|
2238
2238
|
}
|
|
2239
2239
|
generateRequestKey(e) {
|
|
2240
2240
|
const { method: n, url: r, params: s, data: o } = e;
|
|
@@ -2263,11 +2263,11 @@ class zo {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
class jo {
|
|
2265
2265
|
constructor() {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2266
|
+
z(this, "TOKEN_KEY", "__AUTH_TOKEN");
|
|
2267
|
+
z(this, "REFRESH_TOKEN_KEY", "__REFRESH_TOKEN");
|
|
2268
|
+
z(this, "TOKEN_EXPIRES_KEY", "__TOKEN_EXPIRES_AT");
|
|
2269
|
+
z(this, "isRefreshing", !1);
|
|
2270
|
+
z(this, "refreshSubscribers", []);
|
|
2271
2271
|
}
|
|
2272
2272
|
setToken({ accessToken: e, refreshToken: n, expiresIn: r }) {
|
|
2273
2273
|
if (ct.set(this.TOKEN_KEY, e), n && ct.set(this.REFRESH_TOKEN_KEY, n), r) {
|
|
@@ -2319,7 +2319,7 @@ class jo {
|
|
|
2319
2319
|
}
|
|
2320
2320
|
class $o {
|
|
2321
2321
|
constructor(e) {
|
|
2322
|
-
|
|
2322
|
+
z(this, "toastInstance");
|
|
2323
2323
|
this.toastInstance = e;
|
|
2324
2324
|
}
|
|
2325
2325
|
handleStatusError(e, n, r = !0) {
|
|
@@ -2350,13 +2350,13 @@ class $o {
|
|
|
2350
2350
|
$.isAxiosError(e) ? e.response ? this.handleStatusError(e.response.status, ((r = e.response.data) == null ? void 0 : r.message) || e.message, n) : this.handleNetworkError(e, n) : (n && this.toastInstance.error((e == null ? void 0 : e.message) || "发生未知错误"), console.error("[Error]:", e));
|
|
2351
2351
|
}
|
|
2352
2352
|
}
|
|
2353
|
-
class
|
|
2353
|
+
class Vo {
|
|
2354
2354
|
constructor(e) {
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2355
|
+
z(this, "toastInstance");
|
|
2356
|
+
z(this, "status", navigator.onLine ? "online" : "offline");
|
|
2357
|
+
z(this, "offlineQueue", []);
|
|
2358
|
+
z(this, "listeners", /* @__PURE__ */ new Set());
|
|
2359
|
+
z(this, "initialized", !1);
|
|
2360
2360
|
this.toastInstance = e, this.init();
|
|
2361
2361
|
}
|
|
2362
2362
|
init() {
|
|
@@ -2416,15 +2416,15 @@ class Yo {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
class uc {
|
|
2418
2418
|
constructor(e) {
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2419
|
+
z(this, "axiosInstance");
|
|
2420
|
+
z(this, "errorInstance");
|
|
2421
|
+
z(this, "networkInstance");
|
|
2422
|
+
z(this, "cancelInstance");
|
|
2423
|
+
z(this, "tokenInstance");
|
|
2424
|
+
z(this, "loadingInstance");
|
|
2425
|
+
z(this, "requestOptions", {});
|
|
2426
|
+
z(this, "requestInstanceRequestOptions", {});
|
|
2427
|
+
z(this, "defaultRequestOptions", {
|
|
2428
2428
|
showLoading: !1,
|
|
2429
2429
|
cancelRepeatRequest: !0,
|
|
2430
2430
|
needToken: !0,
|
|
@@ -2435,14 +2435,14 @@ class uc {
|
|
|
2435
2435
|
maxRetries: 0,
|
|
2436
2436
|
retryDelay: 1e3
|
|
2437
2437
|
});
|
|
2438
|
-
|
|
2438
|
+
z(this, "defaultConfig", {
|
|
2439
2439
|
timeout: 10 * 1e3,
|
|
2440
2440
|
headers: {
|
|
2441
2441
|
"Content-Type": "application/json;charset=utf-8"
|
|
2442
2442
|
}
|
|
2443
2443
|
});
|
|
2444
2444
|
const { config: n = {}, requestOptions: r = {}, toastInstance: s, loadingInstance: o } = e;
|
|
2445
|
-
this.errorInstance = new $o(s), this.networkInstance = new
|
|
2445
|
+
this.errorInstance = new $o(s), this.networkInstance = new Vo(s), this.cancelInstance = new zo(), this.tokenInstance = new jo(), o && (this.loadingInstance = o), this.requestOptions = { ...this.defaultRequestOptions, ...r }, this.axiosInstance = $.create({
|
|
2446
2446
|
...this.defaultConfig,
|
|
2447
2447
|
...n
|
|
2448
2448
|
}), this.setupInterceptors(), this.setupNetworkListener();
|
|
@@ -2472,7 +2472,7 @@ class uc {
|
|
|
2472
2472
|
this.networkInstance.addToOfflineQueue(m);
|
|
2473
2473
|
});
|
|
2474
2474
|
if (n && ((O = this.loadingInstance) == null || O.show(d)), s && this.cancelInstance.addPending(e), o && typeof o == "function" && o(e, c), ((I = e.method) == null ? void 0 : I.toUpperCase()) === "GET" && e.params) {
|
|
2475
|
-
let w = `${e.url}?${
|
|
2475
|
+
let w = `${e.url}?${wn(e.params)}`;
|
|
2476
2476
|
e.params = { _t: (/* @__PURE__ */ new Date()).getTime() }, e.url = w.slice(0, -1);
|
|
2477
2477
|
}
|
|
2478
2478
|
return this.tokenInstance.isTokenExpiringSoon() && h && this.refreshTokenInBackend(l, v), e;
|
|
@@ -2670,12 +2670,39 @@ class uc {
|
|
|
2670
2670
|
this.networkInstance.clearOfflineQueue();
|
|
2671
2671
|
}
|
|
2672
2672
|
}
|
|
2673
|
+
class fc {
|
|
2674
|
+
constructor(e, n) {
|
|
2675
|
+
z(this, "controllerUrl");
|
|
2676
|
+
z(this, "controllerType");
|
|
2677
|
+
z(this, "requestInstance");
|
|
2678
|
+
z(this, "detail", (e) => this.requestInstance.get({
|
|
2679
|
+
url: `${this.controllerUrl}/select${this.controllerType}VoById/${e}`
|
|
2680
|
+
}));
|
|
2681
|
+
z(this, "list", (e = {}) => this.requestInstance.get({
|
|
2682
|
+
url: `${this.controllerUrl}/select${this.controllerType}VoList`,
|
|
2683
|
+
params: e
|
|
2684
|
+
}));
|
|
2685
|
+
z(this, "submitData", (e, n) => e === "add" ? this.add(n) : this.edit(n));
|
|
2686
|
+
z(this, "add", (e) => this.requestInstance.post({
|
|
2687
|
+
url: this.controllerUrl,
|
|
2688
|
+
data: e
|
|
2689
|
+
}));
|
|
2690
|
+
z(this, "edit", (e) => this.requestInstance.put({
|
|
2691
|
+
url: this.controllerUrl,
|
|
2692
|
+
data: e
|
|
2693
|
+
}));
|
|
2694
|
+
z(this, "del", (e) => this.requestInstance.delete({
|
|
2695
|
+
url: `${this.controllerUrl}/${e}`
|
|
2696
|
+
}));
|
|
2697
|
+
this.controllerUrl = e, this.controllerType = xn(this.controllerUrl.split("/").pop()), this.requestInstance = n;
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2673
2700
|
let yt = null;
|
|
2674
|
-
function
|
|
2701
|
+
function lc(t) {
|
|
2675
2702
|
const { cacheKey: e, cacheMode: n = "session", saveState: r = !0, handler: s } = t;
|
|
2676
2703
|
return r && yt || (yt = n === "local" ? dn.get(e) : ct.get(e), yt && typeof s == "function" && (yt = s(yt))), yt;
|
|
2677
2704
|
}
|
|
2678
|
-
var
|
|
2705
|
+
var Vn = function() {
|
|
2679
2706
|
if (typeof Map < "u")
|
|
2680
2707
|
return Map;
|
|
2681
2708
|
function t(e, n) {
|
|
@@ -2723,7 +2750,7 @@ var $n = function() {
|
|
|
2723
2750
|
);
|
|
2724
2751
|
}(), Ee = typeof window < "u" && typeof document < "u" && window.document === document, Kt = function() {
|
|
2725
2752
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
2726
|
-
}(),
|
|
2753
|
+
}(), Yo = function() {
|
|
2727
2754
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Kt) : function(t) {
|
|
2728
2755
|
return setTimeout(function() {
|
|
2729
2756
|
return t(Date.now());
|
|
@@ -2736,7 +2763,7 @@ function Jo(t, e) {
|
|
|
2736
2763
|
n && (n = !1, t()), r && f();
|
|
2737
2764
|
}
|
|
2738
2765
|
function c() {
|
|
2739
|
-
|
|
2766
|
+
Yo(o);
|
|
2740
2767
|
}
|
|
2741
2768
|
function f() {
|
|
2742
2769
|
var d = Date.now();
|
|
@@ -2803,7 +2830,7 @@ var Wo = 20, Zo = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
2803
2830
|
}, St = function(t) {
|
|
2804
2831
|
var e = t && t.ownerDocument && t.ownerDocument.defaultView;
|
|
2805
2832
|
return e || Kt;
|
|
2806
|
-
},
|
|
2833
|
+
}, Kn = te(0, 0, 0, 0);
|
|
2807
2834
|
function Jt(t) {
|
|
2808
2835
|
return parseFloat(t) || 0;
|
|
2809
2836
|
}
|
|
@@ -2829,7 +2856,7 @@ function ta(t) {
|
|
|
2829
2856
|
function ea(t) {
|
|
2830
2857
|
var e = t.clientWidth, n = t.clientHeight;
|
|
2831
2858
|
if (!e && !n)
|
|
2832
|
-
return
|
|
2859
|
+
return Kn;
|
|
2833
2860
|
var r = St(t).getComputedStyle(t), s = Qo(r), o = s.left + s.right, c = s.top + s.bottom, f = Jt(r.width), d = Jt(r.height);
|
|
2834
2861
|
if (r.boxSizing === "border-box" && (Math.round(f + o) !== e && (f -= Qe(r, "left", "right") + o), Math.round(d + c) !== n && (d -= Qe(r, "top", "bottom") + c)), !ra(t)) {
|
|
2835
2862
|
var h = Math.round(f + o) - e, l = Math.round(d + c) - n;
|
|
@@ -2848,7 +2875,7 @@ function ra(t) {
|
|
|
2848
2875
|
return t === St(t).document.documentElement;
|
|
2849
2876
|
}
|
|
2850
2877
|
function sa(t) {
|
|
2851
|
-
return Ee ? na(t) ? ta(t) : ea(t) :
|
|
2878
|
+
return Ee ? na(t) ? ta(t) : ea(t) : Kn;
|
|
2852
2879
|
}
|
|
2853
2880
|
function ia(t) {
|
|
2854
2881
|
var e = t.x, n = t.y, r = t.width, s = t.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, c = Object.create(o.prototype);
|
|
@@ -2893,7 +2920,7 @@ var oa = (
|
|
|
2893
2920
|
/** @class */
|
|
2894
2921
|
function() {
|
|
2895
2922
|
function t(e, n, r) {
|
|
2896
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
2923
|
+
if (this.activeObservations_ = [], this.observations_ = new Vn(), typeof e != "function")
|
|
2897
2924
|
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
2898
2925
|
this.callback_ = e, this.controller_ = n, this.callbackCtx_ = r;
|
|
2899
2926
|
}
|
|
@@ -2935,7 +2962,7 @@ var oa = (
|
|
|
2935
2962
|
return this.activeObservations_.length > 0;
|
|
2936
2963
|
}, t;
|
|
2937
2964
|
}()
|
|
2938
|
-
),
|
|
2965
|
+
), Jn = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Vn(), Wn = (
|
|
2939
2966
|
/** @class */
|
|
2940
2967
|
/* @__PURE__ */ function() {
|
|
2941
2968
|
function t(e) {
|
|
@@ -2944,7 +2971,7 @@ var oa = (
|
|
|
2944
2971
|
if (!arguments.length)
|
|
2945
2972
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
2946
2973
|
var n = Xo.getInstance(), r = new ca(e, n, this);
|
|
2947
|
-
|
|
2974
|
+
Jn.set(this, r);
|
|
2948
2975
|
}
|
|
2949
2976
|
return t;
|
|
2950
2977
|
}()
|
|
@@ -2954,13 +2981,13 @@ var oa = (
|
|
|
2954
2981
|
"unobserve",
|
|
2955
2982
|
"disconnect"
|
|
2956
2983
|
].forEach(function(t) {
|
|
2957
|
-
|
|
2984
|
+
Wn.prototype[t] = function() {
|
|
2958
2985
|
var e;
|
|
2959
|
-
return (e =
|
|
2986
|
+
return (e = Jn.get(this))[t].apply(e, arguments);
|
|
2960
2987
|
};
|
|
2961
2988
|
});
|
|
2962
2989
|
var ua = function() {
|
|
2963
|
-
return typeof Kt.ResizeObserver < "u" ? Kt.ResizeObserver :
|
|
2990
|
+
return typeof Kt.ResizeObserver < "u" ? Kt.ResizeObserver : Wn;
|
|
2964
2991
|
}();
|
|
2965
2992
|
function fa(t) {
|
|
2966
2993
|
for (const e of t) {
|
|
@@ -2968,10 +2995,10 @@ function fa(t) {
|
|
|
2968
2995
|
n.length && n.forEach((r) => r());
|
|
2969
2996
|
}
|
|
2970
2997
|
}
|
|
2971
|
-
function
|
|
2998
|
+
function hc(t, e) {
|
|
2972
2999
|
typeof window > "u" || (t.__resizeListeners__ || (t.__resizeListeners__ = [], t.__ro__ = new ua(fa), t.__ro__.observe(t)), t.__resizeListeners__.push(e));
|
|
2973
3000
|
}
|
|
2974
|
-
function
|
|
3001
|
+
function dc(t, e) {
|
|
2975
3002
|
!t || !t.__resizeListeners__ || (t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e), 1), t.__resizeListeners__.length || t.__ro__.disconnect());
|
|
2976
3003
|
}
|
|
2977
3004
|
var $t = { exports: {} }, la = $t.exports, tn;
|
|
@@ -2994,15 +3021,15 @@ function ee() {
|
|
|
2994
3021
|
}
|
|
2995
3022
|
function d(i, a, u, p, E, R) {
|
|
2996
3023
|
for (var _ = a & 32767, B = a >> 15; --R >= 0; ) {
|
|
2997
|
-
var
|
|
2998
|
-
|
|
3024
|
+
var j = this[i] & 32767, K = this[i++] >> 15, st = B * j + K * _;
|
|
3025
|
+
j = _ * j + ((st & 32767) << 15) + u[p] + (E & 1073741823), E = (j >>> 30) + (st >>> 15) + B * K + (E >>> 30), u[p++] = j & 1073741823;
|
|
2999
3026
|
}
|
|
3000
3027
|
return E;
|
|
3001
3028
|
}
|
|
3002
3029
|
function h(i, a, u, p, E, R) {
|
|
3003
3030
|
for (var _ = a & 16383, B = a >> 14; --R >= 0; ) {
|
|
3004
|
-
var
|
|
3005
|
-
|
|
3031
|
+
var j = this[i] & 16383, K = this[i++] >> 14, st = B * j + K * _;
|
|
3032
|
+
j = _ * j + ((st & 16383) << 14) + u[p] + E, E = (j >> 28) + (st >> 14) + B * K, u[p++] = j & 268435455;
|
|
3006
3033
|
}
|
|
3007
3034
|
return E;
|
|
3008
3035
|
}
|
|
@@ -3073,14 +3100,14 @@ function ee() {
|
|
|
3073
3100
|
B < a ? (p = (this[_] & (1 << B) - 1) << a - B, p |= this[--_] >> (B += this.DB - a)) : (p = this[_] >> (B -= a) & u, B <= 0 && (B += this.DB, --_)), p > 0 && (E = !0), E && (R += m(p));
|
|
3074
3101
|
return E ? R : "0";
|
|
3075
3102
|
}
|
|
3076
|
-
function
|
|
3103
|
+
function P() {
|
|
3077
3104
|
var i = c();
|
|
3078
3105
|
return o.ZERO.subTo(this, i), i;
|
|
3079
3106
|
}
|
|
3080
3107
|
function N() {
|
|
3081
3108
|
return this.s < 0 ? this.negate() : this;
|
|
3082
3109
|
}
|
|
3083
|
-
function
|
|
3110
|
+
function H(i) {
|
|
3084
3111
|
var a = this.s - i.s;
|
|
3085
3112
|
if (a != 0) return a;
|
|
3086
3113
|
var u = this.t;
|
|
@@ -3088,12 +3115,12 @@ function ee() {
|
|
|
3088
3115
|
for (; --u >= 0; ) if ((a = this[u] - i[u]) != 0) return a;
|
|
3089
3116
|
return 0;
|
|
3090
3117
|
}
|
|
3091
|
-
function
|
|
3118
|
+
function q(i) {
|
|
3092
3119
|
var a = 1, u;
|
|
3093
3120
|
return (u = i >>> 16) != 0 && (i = u, a += 16), (u = i >> 8) != 0 && (i = u, a += 8), (u = i >> 4) != 0 && (i = u, a += 4), (u = i >> 2) != 0 && (i = u, a += 2), (u = i >> 1) != 0 && (i = u, a += 1), a;
|
|
3094
3121
|
}
|
|
3095
3122
|
function k() {
|
|
3096
|
-
return this.t <= 0 ? 0 : this.DB * (this.t - 1) +
|
|
3123
|
+
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + q(this[this.t - 1] ^ this.s & this.DM);
|
|
3097
3124
|
}
|
|
3098
3125
|
function L(i, a) {
|
|
3099
3126
|
var u;
|
|
@@ -3101,7 +3128,7 @@ function ee() {
|
|
|
3101
3128
|
for (u = i - 1; u >= 0; --u) a[u] = 0;
|
|
3102
3129
|
a.t = this.t + i, a.s = this.s;
|
|
3103
3130
|
}
|
|
3104
|
-
function
|
|
3131
|
+
function U(i, a) {
|
|
3105
3132
|
for (var u = i; u < this.t; ++u) a[u - i] = this[u];
|
|
3106
3133
|
a.t = Math.max(this.t - i, 0), a.s = this.s;
|
|
3107
3134
|
}
|
|
@@ -3112,7 +3139,7 @@ function ee() {
|
|
|
3112
3139
|
for (B = R - 1; B >= 0; --B) a[B] = 0;
|
|
3113
3140
|
a[R] = _, a.t = this.t + R + 1, a.s = this.s, a.clamp();
|
|
3114
3141
|
}
|
|
3115
|
-
function
|
|
3142
|
+
function V(i, a) {
|
|
3116
3143
|
a.s = this.s;
|
|
3117
3144
|
var u = Math.floor(i / this.DB);
|
|
3118
3145
|
if (u >= this.t) {
|
|
@@ -3162,8 +3189,8 @@ function ee() {
|
|
|
3162
3189
|
return;
|
|
3163
3190
|
}
|
|
3164
3191
|
u == null && (u = c());
|
|
3165
|
-
var R = c(), _ = this.s, B = i.s,
|
|
3166
|
-
|
|
3192
|
+
var R = c(), _ = this.s, B = i.s, j = this.DB - q(p[p.t - 1]);
|
|
3193
|
+
j > 0 ? (p.lShiftTo(j, R), E.lShiftTo(j, u)) : (p.copyTo(R), E.copyTo(u));
|
|
3167
3194
|
var K = R.t, st = R[K - 1];
|
|
3168
3195
|
if (st != 0) {
|
|
3169
3196
|
var rt = st * (1 << this.F1) + (K > 1 ? R[K - 2] >> this.F2 : 0), lt = this.FV / rt, Nt = (1 << this.F1) / rt, ot = 1 << this.F2, at = u.t, kt = at - K, ht = a ?? c();
|
|
@@ -3173,7 +3200,7 @@ function ee() {
|
|
|
3173
3200
|
if ((u[at] += R.am(0, ie, u, kt, 0, K)) < ie)
|
|
3174
3201
|
for (R.dlShiftTo(kt, ht), u.subTo(ht, u); u[at] < --ie; ) u.subTo(ht, u);
|
|
3175
3202
|
}
|
|
3176
|
-
a != null && (u.drShiftTo(K, a), _ != B && o.ZERO.subTo(a, a)), u.t = K, u.clamp(),
|
|
3203
|
+
a != null && (u.drShiftTo(K, a), _ != B && o.ZERO.subTo(a, a)), u.t = K, u.clamp(), j > 0 && u.rShiftTo(j, u), _ < 0 && o.ZERO.subTo(u, u);
|
|
3177
3204
|
}
|
|
3178
3205
|
}
|
|
3179
3206
|
}
|
|
@@ -3190,17 +3217,17 @@ function ee() {
|
|
|
3190
3217
|
function Tt(i) {
|
|
3191
3218
|
return i;
|
|
3192
3219
|
}
|
|
3193
|
-
function
|
|
3220
|
+
function Pt(i) {
|
|
3194
3221
|
i.divRemTo(this.m, null, i);
|
|
3195
3222
|
}
|
|
3196
|
-
function
|
|
3223
|
+
function tr(i, a, u) {
|
|
3197
3224
|
i.multiplyTo(a, u), this.reduce(u);
|
|
3198
3225
|
}
|
|
3199
|
-
function
|
|
3226
|
+
function er(i, a) {
|
|
3200
3227
|
i.squareTo(a), this.reduce(a);
|
|
3201
3228
|
}
|
|
3202
|
-
D.prototype.convert = Ft, D.prototype.revert = Tt, D.prototype.reduce =
|
|
3203
|
-
function
|
|
3229
|
+
D.prototype.convert = Ft, D.prototype.revert = Tt, D.prototype.reduce = Pt, D.prototype.mulTo = tr, D.prototype.sqrTo = er;
|
|
3230
|
+
function nr() {
|
|
3204
3231
|
if (this.t < 1) return 0;
|
|
3205
3232
|
var i = this[0];
|
|
3206
3233
|
if ((i & 1) == 0) return 0;
|
|
@@ -3210,15 +3237,15 @@ function ee() {
|
|
|
3210
3237
|
function mt(i) {
|
|
3211
3238
|
this.m = i, this.mp = i.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << i.DB - 15) - 1, this.mt2 = 2 * i.t;
|
|
3212
3239
|
}
|
|
3213
|
-
function
|
|
3240
|
+
function rr(i) {
|
|
3214
3241
|
var a = c();
|
|
3215
3242
|
return i.abs().dlShiftTo(this.m.t, a), a.divRemTo(this.m, null, a), i.s < 0 && a.compareTo(o.ZERO) > 0 && this.m.subTo(a, a), a;
|
|
3216
3243
|
}
|
|
3217
|
-
function
|
|
3244
|
+
function sr(i) {
|
|
3218
3245
|
var a = c();
|
|
3219
3246
|
return i.copyTo(a), this.reduce(a), a;
|
|
3220
3247
|
}
|
|
3221
|
-
function
|
|
3248
|
+
function ir(i) {
|
|
3222
3249
|
for (; i.t <= this.mt2; )
|
|
3223
3250
|
i[i.t++] = 0;
|
|
3224
3251
|
for (var a = 0; a < this.m.t; ++a) {
|
|
@@ -3228,19 +3255,19 @@ function ee() {
|
|
|
3228
3255
|
}
|
|
3229
3256
|
i.clamp(), i.drShiftTo(this.m.t, i), i.compareTo(this.m) >= 0 && i.subTo(this.m, i);
|
|
3230
3257
|
}
|
|
3231
|
-
function
|
|
3258
|
+
function or(i, a) {
|
|
3232
3259
|
i.squareTo(a), this.reduce(a);
|
|
3233
3260
|
}
|
|
3234
|
-
function
|
|
3261
|
+
function ar(i, a, u) {
|
|
3235
3262
|
i.multiplyTo(a, u), this.reduce(u);
|
|
3236
3263
|
}
|
|
3237
|
-
mt.prototype.convert =
|
|
3238
|
-
function
|
|
3264
|
+
mt.prototype.convert = rr, mt.prototype.revert = sr, mt.prototype.reduce = ir, mt.prototype.mulTo = ar, mt.prototype.sqrTo = or;
|
|
3265
|
+
function cr() {
|
|
3239
3266
|
return (this.t > 0 ? this[0] & 1 : this.s) == 0;
|
|
3240
3267
|
}
|
|
3241
|
-
function
|
|
3268
|
+
function ur(i, a) {
|
|
3242
3269
|
if (i > 4294967295 || i < 1) return o.ONE;
|
|
3243
|
-
var u = c(), p = c(), E = a.convert(this), R =
|
|
3270
|
+
var u = c(), p = c(), E = a.convert(this), R = q(i) - 1;
|
|
3244
3271
|
for (E.copyTo(u); --R >= 0; )
|
|
3245
3272
|
if (a.sqrTo(u, p), (i & 1 << R) > 0) a.mulTo(p, E, u);
|
|
3246
3273
|
else {
|
|
@@ -3249,16 +3276,16 @@ function ee() {
|
|
|
3249
3276
|
}
|
|
3250
3277
|
return a.revert(u);
|
|
3251
3278
|
}
|
|
3252
|
-
function
|
|
3279
|
+
function fr(i, a) {
|
|
3253
3280
|
var u;
|
|
3254
3281
|
return i < 256 || a.isEven() ? u = new D(a) : u = new mt(a), this.exp(i, u);
|
|
3255
3282
|
}
|
|
3256
|
-
o.prototype.copyTo = b, o.prototype.fromInt = g, o.prototype.fromString = x, o.prototype.clamp = A, o.prototype.dlShiftTo = L, o.prototype.drShiftTo =
|
|
3257
|
-
function
|
|
3283
|
+
o.prototype.copyTo = b, o.prototype.fromInt = g, o.prototype.fromString = x, o.prototype.clamp = A, o.prototype.dlShiftTo = L, o.prototype.drShiftTo = U, o.prototype.lShiftTo = J, o.prototype.rShiftTo = V, o.prototype.subTo = X, o.prototype.multiplyTo = Z, o.prototype.squareTo = pt, o.prototype.divRemTo = vt, o.prototype.invDigit = nr, o.prototype.isEven = cr, o.prototype.exp = ur, o.prototype.toString = C, o.prototype.negate = P, o.prototype.abs = N, o.prototype.compareTo = H, o.prototype.bitLength = k, o.prototype.mod = et, o.prototype.modPowInt = fr, o.ZERO = S(0), o.ONE = S(1);
|
|
3284
|
+
function lr() {
|
|
3258
3285
|
var i = c();
|
|
3259
3286
|
return this.copyTo(i), i;
|
|
3260
3287
|
}
|
|
3261
|
-
function
|
|
3288
|
+
function hr() {
|
|
3262
3289
|
if (this.s < 0) {
|
|
3263
3290
|
if (this.t == 1) return this[0] - this.DV;
|
|
3264
3291
|
if (this.t == 0) return -1;
|
|
@@ -3268,38 +3295,38 @@ function ee() {
|
|
|
3268
3295
|
}
|
|
3269
3296
|
return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0];
|
|
3270
3297
|
}
|
|
3271
|
-
function
|
|
3298
|
+
function dr() {
|
|
3272
3299
|
return this.t == 0 ? this.s : this[0] << 24 >> 24;
|
|
3273
3300
|
}
|
|
3274
|
-
function
|
|
3301
|
+
function pr() {
|
|
3275
3302
|
return this.t == 0 ? this.s : this[0] << 16 >> 16;
|
|
3276
3303
|
}
|
|
3277
|
-
function
|
|
3304
|
+
function mr(i) {
|
|
3278
3305
|
return Math.floor(Math.LN2 * this.DB / Math.log(i));
|
|
3279
3306
|
}
|
|
3280
|
-
function
|
|
3307
|
+
function gr() {
|
|
3281
3308
|
return this.s < 0 ? -1 : this.t <= 0 || this.t == 1 && this[0] <= 0 ? 0 : 1;
|
|
3282
3309
|
}
|
|
3283
|
-
function
|
|
3310
|
+
function yr(i) {
|
|
3284
3311
|
if (i == null && (i = 10), this.signum() == 0 || i < 2 || i > 36) return "0";
|
|
3285
3312
|
var a = this.chunkSize(i), u = Math.pow(i, a), p = S(u), E = c(), R = c(), _ = "";
|
|
3286
3313
|
for (this.divRemTo(p, E, R); E.signum() > 0; )
|
|
3287
3314
|
_ = (u + R.intValue()).toString(i).substr(1) + _, E.divRemTo(p, E, R);
|
|
3288
3315
|
return R.intValue().toString(i) + _;
|
|
3289
3316
|
}
|
|
3290
|
-
function
|
|
3317
|
+
function xr(i, a) {
|
|
3291
3318
|
this.fromInt(0), a == null && (a = 10);
|
|
3292
3319
|
for (var u = this.chunkSize(a), p = Math.pow(a, u), E = !1, R = 0, _ = 0, B = 0; B < i.length; ++B) {
|
|
3293
|
-
var
|
|
3294
|
-
if (
|
|
3320
|
+
var j = T(i, B);
|
|
3321
|
+
if (j < 0) {
|
|
3295
3322
|
i.charAt(B) == "-" && this.signum() == 0 && (E = !0);
|
|
3296
3323
|
continue;
|
|
3297
3324
|
}
|
|
3298
|
-
_ = a * _ +
|
|
3325
|
+
_ = a * _ + j, ++R >= u && (this.dMultiply(p), this.dAddOffset(_, 0), R = 0, _ = 0);
|
|
3299
3326
|
}
|
|
3300
3327
|
R > 0 && (this.dMultiply(Math.pow(a, R)), this.dAddOffset(_, 0)), E && o.ZERO.subTo(this, this);
|
|
3301
3328
|
}
|
|
3302
|
-
function
|
|
3329
|
+
function br(i, a, u) {
|
|
3303
3330
|
if (typeof a == "number")
|
|
3304
3331
|
if (i < 2) this.fromInt(1);
|
|
3305
3332
|
else
|
|
@@ -3310,7 +3337,7 @@ function ee() {
|
|
|
3310
3337
|
p.length = (i >> 3) + 1, a.nextBytes(p), E > 0 ? p[0] &= (1 << E) - 1 : p[0] = 0, this.fromString(p, 256);
|
|
3311
3338
|
}
|
|
3312
3339
|
}
|
|
3313
|
-
function
|
|
3340
|
+
function wr() {
|
|
3314
3341
|
var i = this.t, a = new Array();
|
|
3315
3342
|
a[0] = this.s;
|
|
3316
3343
|
var u = this.DB - i * this.DB % 8, p, E = 0;
|
|
@@ -3319,16 +3346,16 @@ function ee() {
|
|
|
3319
3346
|
u < 8 ? (p = (this[i] & (1 << u) - 1) << 8 - u, p |= this[--i] >> (u += this.DB - 8)) : (p = this[i] >> (u -= 8) & 255, u <= 0 && (u += this.DB, --i)), (p & 128) != 0 && (p |= -256), E == 0 && (this.s & 128) != (p & 128) && ++E, (E > 0 || p != this.s) && (a[E++] = p);
|
|
3320
3347
|
return a;
|
|
3321
3348
|
}
|
|
3322
|
-
function
|
|
3349
|
+
function vr(i) {
|
|
3323
3350
|
return this.compareTo(i) == 0;
|
|
3324
3351
|
}
|
|
3325
|
-
function
|
|
3352
|
+
function Tr(i) {
|
|
3326
3353
|
return this.compareTo(i) < 0 ? this : i;
|
|
3327
3354
|
}
|
|
3328
|
-
function
|
|
3355
|
+
function Er(i) {
|
|
3329
3356
|
return this.compareTo(i) > 0 ? this : i;
|
|
3330
3357
|
}
|
|
3331
|
-
function
|
|
3358
|
+
function Sr(i, a, u) {
|
|
3332
3359
|
var p, E, R = Math.min(i.t, this.t);
|
|
3333
3360
|
for (p = 0; p < R; ++p) u[p] = a(this[p], i[p]);
|
|
3334
3361
|
if (i.t < this.t) {
|
|
@@ -3340,54 +3367,54 @@ function ee() {
|
|
|
3340
3367
|
}
|
|
3341
3368
|
u.s = a(this.s, i.s), u.clamp();
|
|
3342
3369
|
}
|
|
3343
|
-
function
|
|
3370
|
+
function Rr(i, a) {
|
|
3344
3371
|
return i & a;
|
|
3345
3372
|
}
|
|
3346
|
-
function
|
|
3373
|
+
function Or(i) {
|
|
3347
3374
|
var a = c();
|
|
3348
|
-
return this.bitwiseTo(i,
|
|
3375
|
+
return this.bitwiseTo(i, Rr, a), a;
|
|
3349
3376
|
}
|
|
3350
3377
|
function ne(i, a) {
|
|
3351
3378
|
return i | a;
|
|
3352
3379
|
}
|
|
3353
|
-
function
|
|
3380
|
+
function Fr(i) {
|
|
3354
3381
|
var a = c();
|
|
3355
3382
|
return this.bitwiseTo(i, ne, a), a;
|
|
3356
3383
|
}
|
|
3357
3384
|
function _e(i, a) {
|
|
3358
3385
|
return i ^ a;
|
|
3359
3386
|
}
|
|
3360
|
-
function
|
|
3387
|
+
function Ar(i) {
|
|
3361
3388
|
var a = c();
|
|
3362
3389
|
return this.bitwiseTo(i, _e, a), a;
|
|
3363
3390
|
}
|
|
3364
3391
|
function Ie(i, a) {
|
|
3365
3392
|
return i & ~a;
|
|
3366
3393
|
}
|
|
3367
|
-
function
|
|
3394
|
+
function _r(i) {
|
|
3368
3395
|
var a = c();
|
|
3369
3396
|
return this.bitwiseTo(i, Ie, a), a;
|
|
3370
3397
|
}
|
|
3371
|
-
function
|
|
3398
|
+
function Ir() {
|
|
3372
3399
|
for (var i = c(), a = 0; a < this.t; ++a) i[a] = this.DM & ~this[a];
|
|
3373
3400
|
return i.t = this.t, i.s = ~this.s, i;
|
|
3374
3401
|
}
|
|
3375
|
-
function
|
|
3402
|
+
function Br(i) {
|
|
3376
3403
|
var a = c();
|
|
3377
3404
|
return i < 0 ? this.rShiftTo(-i, a) : this.lShiftTo(i, a), a;
|
|
3378
3405
|
}
|
|
3379
|
-
function
|
|
3406
|
+
function Cr(i) {
|
|
3380
3407
|
var a = c();
|
|
3381
3408
|
return i < 0 ? this.lShiftTo(-i, a) : this.rShiftTo(i, a), a;
|
|
3382
3409
|
}
|
|
3383
|
-
function
|
|
3410
|
+
function Dr(i) {
|
|
3384
3411
|
if (i == 0) return -1;
|
|
3385
3412
|
var a = 0;
|
|
3386
3413
|
return (i & 65535) == 0 && (i >>= 16, a += 16), (i & 255) == 0 && (i >>= 8, a += 8), (i & 15) == 0 && (i >>= 4, a += 4), (i & 3) == 0 && (i >>= 2, a += 2), (i & 1) == 0 && ++a, a;
|
|
3387
3414
|
}
|
|
3388
|
-
function
|
|
3415
|
+
function qr() {
|
|
3389
3416
|
for (var i = 0; i < this.t; ++i)
|
|
3390
|
-
if (this[i] != 0) return i * this.DB +
|
|
3417
|
+
if (this[i] != 0) return i * this.DB + Dr(this[i]);
|
|
3391
3418
|
return this.s < 0 ? this.t * this.DB : -1;
|
|
3392
3419
|
}
|
|
3393
3420
|
function Pr(i) {
|
|
@@ -3395,28 +3422,28 @@ function ee() {
|
|
|
3395
3422
|
i &= i - 1, ++a;
|
|
3396
3423
|
return a;
|
|
3397
3424
|
}
|
|
3398
|
-
function
|
|
3425
|
+
function Mr() {
|
|
3399
3426
|
for (var i = 0, a = this.s & this.DM, u = 0; u < this.t; ++u) i += Pr(this[u] ^ a);
|
|
3400
3427
|
return i;
|
|
3401
3428
|
}
|
|
3402
|
-
function
|
|
3429
|
+
function Nr(i) {
|
|
3403
3430
|
var a = Math.floor(i / this.DB);
|
|
3404
3431
|
return a >= this.t ? this.s != 0 : (this[a] & 1 << i % this.DB) != 0;
|
|
3405
3432
|
}
|
|
3406
|
-
function
|
|
3433
|
+
function kr(i, a) {
|
|
3407
3434
|
var u = o.ONE.shiftLeft(i);
|
|
3408
3435
|
return this.bitwiseTo(u, a, u), u;
|
|
3409
3436
|
}
|
|
3410
|
-
function
|
|
3437
|
+
function Lr(i) {
|
|
3411
3438
|
return this.changeBit(i, ne);
|
|
3412
3439
|
}
|
|
3413
|
-
function
|
|
3440
|
+
function Ur(i) {
|
|
3414
3441
|
return this.changeBit(i, Ie);
|
|
3415
3442
|
}
|
|
3416
3443
|
function Hr(i) {
|
|
3417
3444
|
return this.changeBit(i, _e);
|
|
3418
3445
|
}
|
|
3419
|
-
function
|
|
3446
|
+
function zr(i, a) {
|
|
3420
3447
|
for (var u = 0, p = 0, E = Math.min(i.t, this.t); u < E; )
|
|
3421
3448
|
p += this[u] + i[u], a[u++] = p & this.DM, p >>= this.DB;
|
|
3422
3449
|
if (i.t < this.t) {
|
|
@@ -3430,15 +3457,15 @@ function ee() {
|
|
|
3430
3457
|
}
|
|
3431
3458
|
a.s = p < 0 ? -1 : 0, p > 0 ? a[u++] = p : p < -1 && (a[u++] = this.DV + p), a.t = u, a.clamp();
|
|
3432
3459
|
}
|
|
3433
|
-
function
|
|
3460
|
+
function jr(i) {
|
|
3434
3461
|
var a = c();
|
|
3435
3462
|
return this.addTo(i, a), a;
|
|
3436
3463
|
}
|
|
3437
|
-
function
|
|
3464
|
+
function $r(i) {
|
|
3438
3465
|
var a = c();
|
|
3439
3466
|
return this.subTo(i, a), a;
|
|
3440
3467
|
}
|
|
3441
|
-
function
|
|
3468
|
+
function Vr(i) {
|
|
3442
3469
|
var a = c();
|
|
3443
3470
|
return this.multiplyTo(i, a), a;
|
|
3444
3471
|
}
|
|
@@ -3446,22 +3473,22 @@ function ee() {
|
|
|
3446
3473
|
var i = c();
|
|
3447
3474
|
return this.squareTo(i), i;
|
|
3448
3475
|
}
|
|
3449
|
-
function
|
|
3476
|
+
function Kr(i) {
|
|
3450
3477
|
var a = c();
|
|
3451
3478
|
return this.divRemTo(i, a, null), a;
|
|
3452
3479
|
}
|
|
3453
|
-
function
|
|
3480
|
+
function Jr(i) {
|
|
3454
3481
|
var a = c();
|
|
3455
3482
|
return this.divRemTo(i, null, a), a;
|
|
3456
3483
|
}
|
|
3457
|
-
function
|
|
3484
|
+
function Wr(i) {
|
|
3458
3485
|
var a = c(), u = c();
|
|
3459
3486
|
return this.divRemTo(i, a, u), new Array(a, u);
|
|
3460
3487
|
}
|
|
3461
|
-
function
|
|
3488
|
+
function Zr(i) {
|
|
3462
3489
|
this[this.t] = this.am(0, i - 1, this, 0, 0, this.t), ++this.t, this.clamp();
|
|
3463
3490
|
}
|
|
3464
|
-
function
|
|
3491
|
+
function Gr(i, a) {
|
|
3465
3492
|
if (i != 0) {
|
|
3466
3493
|
for (; this.t <= a; ) this[this.t++] = 0;
|
|
3467
3494
|
for (this[a] += i; this[a] >= this.DV; )
|
|
@@ -3473,17 +3500,17 @@ function ee() {
|
|
|
3473
3500
|
function Be(i) {
|
|
3474
3501
|
return i;
|
|
3475
3502
|
}
|
|
3476
|
-
function
|
|
3503
|
+
function Xr(i, a, u) {
|
|
3477
3504
|
i.multiplyTo(a, u);
|
|
3478
3505
|
}
|
|
3479
|
-
function
|
|
3506
|
+
function Qr(i, a) {
|
|
3480
3507
|
i.squareTo(a);
|
|
3481
3508
|
}
|
|
3482
|
-
At.prototype.convert = Be, At.prototype.revert = Be, At.prototype.mulTo =
|
|
3483
|
-
function
|
|
3509
|
+
At.prototype.convert = Be, At.prototype.revert = Be, At.prototype.mulTo = Xr, At.prototype.sqrTo = Qr;
|
|
3510
|
+
function ts(i) {
|
|
3484
3511
|
return this.exp(i, new At());
|
|
3485
3512
|
}
|
|
3486
|
-
function
|
|
3513
|
+
function es(i, a, u) {
|
|
3487
3514
|
var p = Math.min(this.t + i.t, a);
|
|
3488
3515
|
for (u.s = 0, u.t = p; p > 0; ) u[--p] = 0;
|
|
3489
3516
|
var E;
|
|
@@ -3491,7 +3518,7 @@ function ee() {
|
|
|
3491
3518
|
for (E = Math.min(i.t, a); p < E; ++p) this.am(0, i[p], u, p, 0, a - p);
|
|
3492
3519
|
u.clamp();
|
|
3493
3520
|
}
|
|
3494
|
-
function
|
|
3521
|
+
function ns(i, a, u) {
|
|
3495
3522
|
--a;
|
|
3496
3523
|
var p = u.t = this.t + i.t - a;
|
|
3497
3524
|
for (u.s = 0; --p >= 0; ) u[p] = 0;
|
|
@@ -3502,39 +3529,39 @@ function ee() {
|
|
|
3502
3529
|
function gt(i) {
|
|
3503
3530
|
this.r2 = c(), this.q3 = c(), o.ONE.dlShiftTo(2 * i.t, this.r2), this.mu = this.r2.divide(i), this.m = i;
|
|
3504
3531
|
}
|
|
3505
|
-
function
|
|
3532
|
+
function rs(i) {
|
|
3506
3533
|
if (i.s < 0 || i.t > 2 * this.m.t) return i.mod(this.m);
|
|
3507
3534
|
if (i.compareTo(this.m) < 0) return i;
|
|
3508
3535
|
var a = c();
|
|
3509
3536
|
return i.copyTo(a), this.reduce(a), a;
|
|
3510
3537
|
}
|
|
3511
|
-
function
|
|
3538
|
+
function ss(i) {
|
|
3512
3539
|
return i;
|
|
3513
3540
|
}
|
|
3514
|
-
function
|
|
3541
|
+
function is(i) {
|
|
3515
3542
|
for (i.drShiftTo(this.m.t - 1, this.r2), i.t > this.m.t + 1 && (i.t = this.m.t + 1, i.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); i.compareTo(this.r2) < 0; ) i.dAddOffset(1, this.m.t + 1);
|
|
3516
3543
|
for (i.subTo(this.r2, i); i.compareTo(this.m) >= 0; ) i.subTo(this.m, i);
|
|
3517
3544
|
}
|
|
3518
|
-
function
|
|
3545
|
+
function os(i, a) {
|
|
3519
3546
|
i.squareTo(a), this.reduce(a);
|
|
3520
3547
|
}
|
|
3521
|
-
function
|
|
3548
|
+
function as(i, a, u) {
|
|
3522
3549
|
i.multiplyTo(a, u), this.reduce(u);
|
|
3523
3550
|
}
|
|
3524
|
-
gt.prototype.convert =
|
|
3525
|
-
function
|
|
3551
|
+
gt.prototype.convert = rs, gt.prototype.revert = ss, gt.prototype.reduce = is, gt.prototype.mulTo = as, gt.prototype.sqrTo = os;
|
|
3552
|
+
function cs(i, a) {
|
|
3526
3553
|
var u = i.bitLength(), p, E = S(1), R;
|
|
3527
3554
|
if (u <= 0) return E;
|
|
3528
3555
|
u < 18 ? p = 1 : u < 48 ? p = 3 : u < 144 ? p = 4 : u < 768 ? p = 5 : p = 6, u < 8 ? R = new D(a) : a.isEven() ? R = new gt(a) : R = new mt(a);
|
|
3529
|
-
var _ = new Array(), B = 3,
|
|
3556
|
+
var _ = new Array(), B = 3, j = p - 1, K = (1 << p) - 1;
|
|
3530
3557
|
if (_[1] = R.convert(this), p > 1) {
|
|
3531
3558
|
var st = c();
|
|
3532
3559
|
for (R.sqrTo(_[1], st); B <= K; )
|
|
3533
3560
|
_[B] = c(), R.mulTo(st, _[B - 2], _[B]), B += 2;
|
|
3534
3561
|
}
|
|
3535
3562
|
var rt = i.t - 1, lt, Nt = !0, ot = c(), at;
|
|
3536
|
-
for (u =
|
|
3537
|
-
for (u >=
|
|
3563
|
+
for (u = q(i[rt]) - 1; rt >= 0; ) {
|
|
3564
|
+
for (u >= j ? lt = i[rt] >> u - j & K : (lt = (i[rt] & (1 << u + 1) - 1) << j - u, rt > 0 && (lt |= i[rt - 1] >> this.DB + u - j)), B = p; (lt & 1) == 0; )
|
|
3538
3565
|
lt >>= 1, --B;
|
|
3539
3566
|
if ((u -= B) < 0 && (u += this.DB, --rt), Nt)
|
|
3540
3567
|
_[lt].copyTo(E), Nt = !1;
|
|
@@ -3548,7 +3575,7 @@ function ee() {
|
|
|
3548
3575
|
}
|
|
3549
3576
|
return R.revert(E);
|
|
3550
3577
|
}
|
|
3551
|
-
function
|
|
3578
|
+
function us(i) {
|
|
3552
3579
|
var a = this.s < 0 ? this.negate() : this.clone(), u = i.s < 0 ? i.negate() : i.clone();
|
|
3553
3580
|
if (a.compareTo(u) < 0) {
|
|
3554
3581
|
var p = a;
|
|
@@ -3560,7 +3587,7 @@ function ee() {
|
|
|
3560
3587
|
(E = a.getLowestSetBit()) > 0 && a.rShiftTo(E, a), (E = u.getLowestSetBit()) > 0 && u.rShiftTo(E, u), a.compareTo(u) >= 0 ? (a.subTo(u, a), a.rShiftTo(1, a)) : (u.subTo(a, u), u.rShiftTo(1, u));
|
|
3561
3588
|
return R > 0 && u.lShiftTo(R, u), u;
|
|
3562
3589
|
}
|
|
3563
|
-
function
|
|
3590
|
+
function fs(i) {
|
|
3564
3591
|
if (i <= 0) return 0;
|
|
3565
3592
|
var a = this.DV % i, u = this.s < 0 ? i - 1 : 0;
|
|
3566
3593
|
if (this.t > 0)
|
|
@@ -3568,7 +3595,7 @@ function ee() {
|
|
|
3568
3595
|
else for (var p = this.t - 1; p >= 0; --p) u = (a * u + this[p]) % i;
|
|
3569
3596
|
return u;
|
|
3570
3597
|
}
|
|
3571
|
-
function
|
|
3598
|
+
function ls(i) {
|
|
3572
3599
|
var a = i.isEven();
|
|
3573
3600
|
if (this.isEven() && a || i.signum() == 0) return o.ZERO;
|
|
3574
3601
|
for (var u = i.clone(), p = this.clone(), E = S(1), R = S(0), _ = S(0), B = S(1); u.signum() != 0; ) {
|
|
@@ -3584,8 +3611,8 @@ function ee() {
|
|
|
3584
3611
|
else return B;
|
|
3585
3612
|
return B.signum() < 0 ? B.add(i) : B;
|
|
3586
3613
|
}
|
|
3587
|
-
var G = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997],
|
|
3588
|
-
function
|
|
3614
|
+
var G = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], hs = (1 << 26) / G[G.length - 1];
|
|
3615
|
+
function ds(i) {
|
|
3589
3616
|
var a, u = this.abs();
|
|
3590
3617
|
if (u.t == 1 && u[0] <= G[G.length - 1]) {
|
|
3591
3618
|
for (a = 0; a < G.length; ++a)
|
|
@@ -3594,12 +3621,12 @@ function ee() {
|
|
|
3594
3621
|
}
|
|
3595
3622
|
if (u.isEven()) return !1;
|
|
3596
3623
|
for (a = 1; a < G.length; ) {
|
|
3597
|
-
for (var p = G[a], E = a + 1; E < G.length && p <
|
|
3624
|
+
for (var p = G[a], E = a + 1; E < G.length && p < hs; ) p *= G[E++];
|
|
3598
3625
|
for (p = u.modInt(p); a < E; ) if (p % G[a++] == 0) return !1;
|
|
3599
3626
|
}
|
|
3600
3627
|
return u.millerRabin(i);
|
|
3601
3628
|
}
|
|
3602
|
-
function
|
|
3629
|
+
function ps(i) {
|
|
3603
3630
|
var a = this.subtract(o.ONE), u = a.getLowestSetBit();
|
|
3604
3631
|
if (u <= 0) return !1;
|
|
3605
3632
|
var p = a.shiftRight(u);
|
|
@@ -3615,51 +3642,51 @@ function ee() {
|
|
|
3615
3642
|
}
|
|
3616
3643
|
return !0;
|
|
3617
3644
|
}
|
|
3618
|
-
o.prototype.chunkSize =
|
|
3619
|
-
var Mt, nt,
|
|
3620
|
-
function
|
|
3621
|
-
nt[
|
|
3645
|
+
o.prototype.chunkSize = mr, o.prototype.toRadix = yr, o.prototype.fromRadix = xr, o.prototype.fromNumber = br, o.prototype.bitwiseTo = Sr, o.prototype.changeBit = kr, o.prototype.addTo = zr, o.prototype.dMultiply = Zr, o.prototype.dAddOffset = Gr, o.prototype.multiplyLowerTo = es, o.prototype.multiplyUpperTo = ns, o.prototype.modInt = fs, o.prototype.millerRabin = ps, o.prototype.clone = lr, o.prototype.intValue = hr, o.prototype.byteValue = dr, o.prototype.shortValue = pr, o.prototype.signum = gr, o.prototype.toByteArray = wr, o.prototype.equals = vr, o.prototype.min = Tr, o.prototype.max = Er, o.prototype.and = Or, o.prototype.or = Fr, o.prototype.xor = Ar, o.prototype.andNot = _r, o.prototype.not = Ir, o.prototype.shiftLeft = Br, o.prototype.shiftRight = Cr, o.prototype.getLowestSetBit = qr, o.prototype.bitCount = Mr, o.prototype.testBit = Nr, o.prototype.setBit = Lr, o.prototype.clearBit = Ur, o.prototype.flipBit = Hr, o.prototype.add = jr, o.prototype.subtract = $r, o.prototype.multiply = Vr, o.prototype.divide = Kr, o.prototype.remainder = Jr, o.prototype.divideAndRemainder = Wr, o.prototype.modPow = cs, o.prototype.modInverse = ls, o.prototype.pow = ts, o.prototype.gcd = us, o.prototype.isProbablePrime = ds, o.prototype.square = Yr, o.prototype.Barrett = gt;
|
|
3646
|
+
var Mt, nt, Y;
|
|
3647
|
+
function ms(i) {
|
|
3648
|
+
nt[Y++] ^= i & 255, nt[Y++] ^= i >> 8 & 255, nt[Y++] ^= i >> 16 & 255, nt[Y++] ^= i >> 24 & 255, Y >= se && (Y -= se);
|
|
3622
3649
|
}
|
|
3623
3650
|
function Ce() {
|
|
3624
|
-
|
|
3651
|
+
ms((/* @__PURE__ */ new Date()).getTime());
|
|
3625
3652
|
}
|
|
3626
3653
|
if (nt == null) {
|
|
3627
|
-
nt = new Array(),
|
|
3654
|
+
nt = new Array(), Y = 0;
|
|
3628
3655
|
var it;
|
|
3629
3656
|
if (typeof window < "u" && window.crypto) {
|
|
3630
3657
|
if (window.crypto.getRandomValues) {
|
|
3631
3658
|
var De = new Uint8Array(32);
|
|
3632
3659
|
for (window.crypto.getRandomValues(De), it = 0; it < 32; ++it)
|
|
3633
|
-
nt[
|
|
3660
|
+
nt[Y++] = De[it];
|
|
3634
3661
|
} else if (navigator.appName == "Netscape" && navigator.appVersion < "5") {
|
|
3635
|
-
var
|
|
3636
|
-
for (it = 0; it <
|
|
3637
|
-
nt[
|
|
3662
|
+
var qe = window.crypto.random(32);
|
|
3663
|
+
for (it = 0; it < qe.length; ++it)
|
|
3664
|
+
nt[Y++] = qe.charCodeAt(it) & 255;
|
|
3638
3665
|
}
|
|
3639
3666
|
}
|
|
3640
|
-
for (;
|
|
3641
|
-
it = Math.floor(65536 * Math.random()), nt[
|
|
3642
|
-
|
|
3667
|
+
for (; Y < se; )
|
|
3668
|
+
it = Math.floor(65536 * Math.random()), nt[Y++] = it >>> 8, nt[Y++] = it & 255;
|
|
3669
|
+
Y = 0, Ce();
|
|
3643
3670
|
}
|
|
3644
|
-
function
|
|
3671
|
+
function gs() {
|
|
3645
3672
|
if (Mt == null) {
|
|
3646
|
-
for (Ce(), Mt =
|
|
3647
|
-
nt[
|
|
3648
|
-
|
|
3673
|
+
for (Ce(), Mt = ws(), Mt.init(nt), Y = 0; Y < nt.length; ++Y)
|
|
3674
|
+
nt[Y] = 0;
|
|
3675
|
+
Y = 0;
|
|
3649
3676
|
}
|
|
3650
3677
|
return Mt.next();
|
|
3651
3678
|
}
|
|
3652
|
-
function
|
|
3679
|
+
function ys(i) {
|
|
3653
3680
|
var a;
|
|
3654
|
-
for (a = 0; a < i.length; ++a) i[a] =
|
|
3681
|
+
for (a = 0; a < i.length; ++a) i[a] = gs();
|
|
3655
3682
|
}
|
|
3656
|
-
function
|
|
3683
|
+
function Pe() {
|
|
3657
3684
|
}
|
|
3658
|
-
|
|
3685
|
+
Pe.prototype.nextBytes = ys;
|
|
3659
3686
|
function re() {
|
|
3660
3687
|
this.i = 0, this.j = 0, this.S = new Array();
|
|
3661
3688
|
}
|
|
3662
|
-
function
|
|
3689
|
+
function xs(i) {
|
|
3663
3690
|
var a, u, p;
|
|
3664
3691
|
for (a = 0; a < 256; ++a)
|
|
3665
3692
|
this.S[a] = a;
|
|
@@ -3667,19 +3694,19 @@ function ee() {
|
|
|
3667
3694
|
u = u + this.S[a] + i[a % i.length] & 255, p = this.S[a], this.S[a] = this.S[u], this.S[u] = p;
|
|
3668
3695
|
this.i = 0, this.j = 0;
|
|
3669
3696
|
}
|
|
3670
|
-
function
|
|
3697
|
+
function bs() {
|
|
3671
3698
|
var i;
|
|
3672
3699
|
return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, i = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = i, this.S[i + this.S[this.i] & 255];
|
|
3673
3700
|
}
|
|
3674
|
-
re.prototype.init =
|
|
3675
|
-
function
|
|
3701
|
+
re.prototype.init = xs, re.prototype.next = bs;
|
|
3702
|
+
function ws() {
|
|
3676
3703
|
return new re();
|
|
3677
3704
|
}
|
|
3678
3705
|
var se = 256;
|
|
3679
3706
|
t.exports = {
|
|
3680
3707
|
default: o,
|
|
3681
3708
|
BigInteger: o,
|
|
3682
|
-
SecureRandom:
|
|
3709
|
+
SecureRandom: Pe
|
|
3683
3710
|
};
|
|
3684
3711
|
}).call(la);
|
|
3685
3712
|
}($t)), $t.exports;
|
|
@@ -3878,8 +3905,8 @@ function da() {
|
|
|
3878
3905
|
const d = this.x.toBigInteger(), h = this.y.toBigInteger(), l = this.z, v = f.x.toBigInteger(), O = f.y.toBigInteger(), I = f.z, w = this.curve.q, F = d.multiply(I).mod(w), m = v.multiply(l).mod(w), T = F.subtract(m), b = h.multiply(I).mod(w), g = O.multiply(l).mod(w), S = b.subtract(g);
|
|
3879
3906
|
if (t.ZERO.equals(T))
|
|
3880
3907
|
return t.ZERO.equals(S) ? this.twice() : this.curve.infinity;
|
|
3881
|
-
const x = F.add(m), A = l.multiply(I).mod(w), C = T.square().mod(w),
|
|
3882
|
-
return new s(this.curve, this.curve.fromBigInteger(
|
|
3908
|
+
const x = F.add(m), A = l.multiply(I).mod(w), C = T.square().mod(w), P = T.multiply(C).mod(w), N = A.multiply(S.square()).subtract(x.multiply(C)).mod(w), H = T.multiply(N).mod(w), q = S.multiply(C.multiply(F).subtract(N)).subtract(b.multiply(P)).mod(w), k = P.multiply(A).mod(w);
|
|
3909
|
+
return new s(this.curve, this.curve.fromBigInteger(H), this.curve.fromBigInteger(q), k);
|
|
3883
3910
|
}
|
|
3884
3911
|
/**
|
|
3885
3912
|
* 自加
|
|
@@ -3976,12 +4003,12 @@ function pa() {
|
|
|
3976
4003
|
return s;
|
|
3977
4004
|
}
|
|
3978
4005
|
function d() {
|
|
3979
|
-
const b = new t("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), g = new t("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), S = new t("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16), x = new n(b, g, S),
|
|
3980
|
-
return { curve: x, G:
|
|
4006
|
+
const b = new t("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), g = new t("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), S = new t("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16), x = new n(b, g, S), P = x.decodePointHex("04" + "32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7" + "BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"), N = new t("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16);
|
|
4007
|
+
return { curve: x, G: P, n: N };
|
|
3981
4008
|
}
|
|
3982
4009
|
function h(b, g, S) {
|
|
3983
|
-
const A = (b ? new t(b, g, S) : new t(c.bitLength(), r)).mod(c.subtract(t.ONE)).add(t.ONE), C = O(A.toString(16), 64),
|
|
3984
|
-
return { privateKey: C, publicKey:
|
|
4010
|
+
const A = (b ? new t(b, g, S) : new t(c.bitLength(), r)).mod(c.subtract(t.ONE)).add(t.ONE), C = O(A.toString(16), 64), P = o.multiply(A), N = O(P.getX().toBigInteger().toString(16), 64), H = O(P.getY().toBigInteger().toString(16), 64), q = "04" + N + H;
|
|
4011
|
+
return { privateKey: C, publicKey: q };
|
|
3985
4012
|
}
|
|
3986
4013
|
function l(b) {
|
|
3987
4014
|
if (b.length !== 130) throw new Error("Invalid public key to compress");
|
|
@@ -4058,7 +4085,7 @@ function pa() {
|
|
|
4058
4085
|
}, le;
|
|
4059
4086
|
}
|
|
4060
4087
|
var he, sn;
|
|
4061
|
-
function
|
|
4088
|
+
function Zn() {
|
|
4062
4089
|
if (sn) return he;
|
|
4063
4090
|
sn = 1;
|
|
4064
4091
|
const t = new Uint32Array(68), e = new Uint32Array(64);
|
|
@@ -4099,11 +4126,11 @@ function Wn() {
|
|
|
4099
4126
|
t[D] = o(t[D - 16] ^ t[D - 9] ^ n(t[D - 3], 15)) ^ n(t[D - 13], 7) ^ t[D - 6];
|
|
4100
4127
|
for (let D = 0; D < 64; D++)
|
|
4101
4128
|
e[D] = t[D] ^ t[D + 4];
|
|
4102
|
-
const C = 2043430169,
|
|
4103
|
-
let N = g[0],
|
|
4129
|
+
const C = 2043430169, P = 2055708042;
|
|
4130
|
+
let N = g[0], H = g[1], q = g[2], k = g[3], L = g[4], U = g[5], J = g[6], V = g[7], X, Z, pt, vt, et;
|
|
4104
4131
|
for (let D = 0; D < 64; D++)
|
|
4105
|
-
et = D >= 0 && D <= 15 ? C :
|
|
4106
|
-
g[0] ^= N, g[1] ^=
|
|
4132
|
+
et = D >= 0 && D <= 15 ? C : P, X = n(n(N, 12) + L + n(et, D), 7), Z = X ^ n(N, 12), pt = (D >= 0 && D <= 15 ? N ^ H ^ q : N & H | N & q | H & q) + k + Z + e[D], vt = (D >= 0 && D <= 15 ? L ^ U ^ J : L & U | ~L & J) + V + X + t[D], k = q, q = n(H, 9), H = N, N = pt, V = J, J = n(U, 19), U = L, L = s(vt);
|
|
4133
|
+
g[0] ^= N, g[1] ^= H, g[2] ^= q, g[3] ^= k, g[4] ^= L, g[5] ^= U, g[6] ^= J, g[7] ^= V;
|
|
4107
4134
|
}
|
|
4108
4135
|
const S = [];
|
|
4109
4136
|
for (let x = 0, A = g.length; x < A; x++) {
|
|
@@ -4129,20 +4156,20 @@ var de, on;
|
|
|
4129
4156
|
function ma() {
|
|
4130
4157
|
if (on) return de;
|
|
4131
4158
|
on = 1;
|
|
4132
|
-
const { BigInteger: t } = ee(), { encodeDer: e, decodeDer: n } = ha(), r = pa(), s =
|
|
4159
|
+
const { BigInteger: t } = ee(), { encodeDer: e, decodeDer: n } = ha(), r = pa(), s = Zn().sm3, { G: o, curve: c, n: f } = r.generateEcparam(), d = 0;
|
|
4133
4160
|
function h(m, T, b = 1) {
|
|
4134
4161
|
m = typeof m == "string" ? r.hexToArray(r.utf8ToHex(m)) : Array.prototype.slice.call(m), T = r.getGlobalCurve().decodePointHex(T);
|
|
4135
4162
|
const g = r.generateKeyPairHex(), S = new t(g.privateKey, 16);
|
|
4136
4163
|
let x = g.publicKey;
|
|
4137
4164
|
x.length > 128 && (x = x.substr(x.length - 128));
|
|
4138
|
-
const A = T.multiply(S), C = r.hexToArray(r.leftPad(A.getX().toBigInteger().toRadix(16), 64)),
|
|
4139
|
-
let
|
|
4140
|
-
const L = [].concat(C,
|
|
4141
|
-
k = s([...L,
|
|
4165
|
+
const A = T.multiply(S), C = r.hexToArray(r.leftPad(A.getX().toBigInteger().toRadix(16), 64)), P = r.hexToArray(r.leftPad(A.getY().toBigInteger().toRadix(16), 64)), N = r.arrayToHex(s([].concat(C, m, P)));
|
|
4166
|
+
let H = 1, q = 0, k = [];
|
|
4167
|
+
const L = [].concat(C, P), U = () => {
|
|
4168
|
+
k = s([...L, H >> 24 & 255, H >> 16 & 255, H >> 8 & 255, H & 255]), H++, q = 0;
|
|
4142
4169
|
};
|
|
4143
|
-
|
|
4144
|
-
for (let
|
|
4145
|
-
|
|
4170
|
+
U();
|
|
4171
|
+
for (let V = 0, X = m.length; V < X; V++)
|
|
4172
|
+
q === k.length && U(), m[V] ^= k[q++] & 255;
|
|
4146
4173
|
const J = r.arrayToHex(m);
|
|
4147
4174
|
return b === d ? x + J + N : x + N + J;
|
|
4148
4175
|
}
|
|
@@ -4152,15 +4179,15 @@ function ma() {
|
|
|
4152
4179
|
T = new t(T, 16);
|
|
4153
4180
|
let S = m.substr(128, 64), x = m.substr(192);
|
|
4154
4181
|
b === d && (S = m.substr(m.length - 64), x = m.substr(128, m.length - 128 - 64));
|
|
4155
|
-
const A = r.hexToArray(x),
|
|
4156
|
-
let
|
|
4157
|
-
const
|
|
4158
|
-
L = s([...
|
|
4182
|
+
const A = r.hexToArray(x), P = r.getGlobalCurve().decodePointHex("04" + m.substr(0, 128)).multiply(T), N = r.hexToArray(r.leftPad(P.getX().toBigInteger().toRadix(16), 64)), H = r.hexToArray(r.leftPad(P.getY().toBigInteger().toRadix(16), 64));
|
|
4183
|
+
let q = 1, k = 0, L = [];
|
|
4184
|
+
const U = [].concat(N, H), J = () => {
|
|
4185
|
+
L = s([...U, q >> 24 & 255, q >> 16 & 255, q >> 8 & 255, q & 255]), q++, k = 0;
|
|
4159
4186
|
};
|
|
4160
4187
|
J();
|
|
4161
4188
|
for (let X = 0, Z = A.length; X < Z; X++)
|
|
4162
4189
|
k === L.length && J(), A[X] ^= L[k++] & 255;
|
|
4163
|
-
return r.arrayToHex(s([].concat(N, A,
|
|
4190
|
+
return r.arrayToHex(s([].concat(N, A, H))) === S.toLowerCase() ? g === "array" ? A : r.arrayToUtf8(A) : g === "array" ? [] : "";
|
|
4164
4191
|
}
|
|
4165
4192
|
function v(m, T, {
|
|
4166
4193
|
pointPool: b,
|
|
@@ -4171,45 +4198,45 @@ function ma() {
|
|
|
4171
4198
|
} = {}) {
|
|
4172
4199
|
let C = typeof m == "string" ? r.utf8ToHex(m) : r.arrayToHex(m);
|
|
4173
4200
|
S && (x = x || w(T), C = I(C, x, A));
|
|
4174
|
-
const
|
|
4175
|
-
let
|
|
4201
|
+
const P = new t(T, 16), N = new t(C, 16);
|
|
4202
|
+
let H = null, q = null, k = null;
|
|
4176
4203
|
do {
|
|
4177
4204
|
do {
|
|
4178
4205
|
let L;
|
|
4179
|
-
b && b.length ? L = b.pop() : L = F(),
|
|
4180
|
-
} while (
|
|
4181
|
-
k =
|
|
4206
|
+
b && b.length ? L = b.pop() : L = F(), H = L.k, q = N.add(L.x1).mod(f);
|
|
4207
|
+
} while (q.equals(t.ZERO) || q.add(H).equals(f));
|
|
4208
|
+
k = P.add(t.ONE).modInverse(f).multiply(H.subtract(q.multiply(P))).mod(f);
|
|
4182
4209
|
} while (k.equals(t.ZERO));
|
|
4183
|
-
return g ? e(
|
|
4210
|
+
return g ? e(q, k) : r.leftPad(q.toString(16), 64) + r.leftPad(k.toString(16), 64);
|
|
4184
4211
|
}
|
|
4185
4212
|
function O(m, T, b, { der: g, hash: S, userId: x } = {}) {
|
|
4186
4213
|
let A = typeof m == "string" ? r.utf8ToHex(m) : r.arrayToHex(m);
|
|
4187
4214
|
S && (A = I(A, b, x));
|
|
4188
|
-
let C,
|
|
4215
|
+
let C, P;
|
|
4189
4216
|
if (g) {
|
|
4190
|
-
const
|
|
4191
|
-
C =
|
|
4217
|
+
const U = n(T);
|
|
4218
|
+
C = U.r, P = U.s;
|
|
4192
4219
|
} else
|
|
4193
|
-
C = new t(T.substring(0, 64), 16),
|
|
4194
|
-
const N = c.decodePointHex(b),
|
|
4195
|
-
if (
|
|
4196
|
-
const k = o.multiply(
|
|
4220
|
+
C = new t(T.substring(0, 64), 16), P = new t(T.substring(64), 16);
|
|
4221
|
+
const N = c.decodePointHex(b), H = new t(A, 16), q = C.add(P).mod(f);
|
|
4222
|
+
if (q.equals(t.ZERO)) return !1;
|
|
4223
|
+
const k = o.multiply(P).add(N.multiply(q)), L = H.add(k.getX().toBigInteger()).mod(f);
|
|
4197
4224
|
return C.equals(L);
|
|
4198
4225
|
}
|
|
4199
4226
|
function I(m, T, b = "1234567812345678") {
|
|
4200
4227
|
b = r.utf8ToHex(b);
|
|
4201
4228
|
const g = r.leftPad(o.curve.a.toBigInteger().toRadix(16), 64), S = r.leftPad(o.curve.b.toBigInteger().toRadix(16), 64), x = r.leftPad(o.getX().toBigInteger().toRadix(16), 64), A = r.leftPad(o.getY().toBigInteger().toRadix(16), 64);
|
|
4202
|
-
let C,
|
|
4229
|
+
let C, P;
|
|
4203
4230
|
if (T.length === 128)
|
|
4204
|
-
C = T.substr(0, 64),
|
|
4231
|
+
C = T.substr(0, 64), P = T.substr(64, 64);
|
|
4205
4232
|
else {
|
|
4206
4233
|
const k = o.curve.decodePointHex(T);
|
|
4207
|
-
C = r.leftPad(k.getX().toBigInteger().toRadix(16), 64),
|
|
4234
|
+
C = r.leftPad(k.getX().toBigInteger().toRadix(16), 64), P = r.leftPad(k.getY().toBigInteger().toRadix(16), 64);
|
|
4208
4235
|
}
|
|
4209
|
-
const N = r.hexToArray(b + g + S + x + A + C +
|
|
4210
|
-
N.unshift(
|
|
4211
|
-
const
|
|
4212
|
-
return r.arrayToHex(s(
|
|
4236
|
+
const N = r.hexToArray(b + g + S + x + A + C + P), H = b.length * 4;
|
|
4237
|
+
N.unshift(H & 255), N.unshift(H >> 8 & 255);
|
|
4238
|
+
const q = s(N);
|
|
4239
|
+
return r.arrayToHex(s(q.concat(r.hexToArray(m))));
|
|
4213
4240
|
}
|
|
4214
4241
|
function w(m) {
|
|
4215
4242
|
const T = o.multiply(new t(m, 16)), b = r.leftPad(T.getX().toBigInteger().toString(16), 64), g = r.leftPad(T.getY().toBigInteger().toString(16), 64);
|
|
@@ -4236,7 +4263,7 @@ var pe, an;
|
|
|
4236
4263
|
function ga() {
|
|
4237
4264
|
if (an) return pe;
|
|
4238
4265
|
an = 1;
|
|
4239
|
-
const { sm3: t, hmac: e } =
|
|
4266
|
+
const { sm3: t, hmac: e } = Zn();
|
|
4240
4267
|
function n(c, f) {
|
|
4241
4268
|
return c.length >= f ? c : new Array(f - c.length + 1).join("0") + c;
|
|
4242
4269
|
}
|
|
@@ -4654,25 +4681,25 @@ function ya() {
|
|
|
4654
4681
|
}
|
|
4655
4682
|
const C = new Array(e);
|
|
4656
4683
|
w(T, C, b);
|
|
4657
|
-
const
|
|
4658
|
-
let N = x,
|
|
4659
|
-
for (;
|
|
4660
|
-
const k = m.slice(
|
|
4684
|
+
const P = [];
|
|
4685
|
+
let N = x, H = m.length, q = 0;
|
|
4686
|
+
for (; H >= n; ) {
|
|
4687
|
+
const k = m.slice(q, q + 16), L = new Array(16);
|
|
4661
4688
|
if (S === "cbc")
|
|
4662
|
-
for (let
|
|
4663
|
-
b !== t && (k[
|
|
4689
|
+
for (let U = 0; U < n; U++)
|
|
4690
|
+
b !== t && (k[U] ^= N[U]);
|
|
4664
4691
|
I(k, L, C);
|
|
4665
|
-
for (let
|
|
4666
|
-
S === "cbc" && b === t && (L[
|
|
4667
|
-
S === "cbc" && (b !== t ? N = L : N = k),
|
|
4692
|
+
for (let U = 0; U < n; U++)
|
|
4693
|
+
S === "cbc" && b === t && (L[U] ^= N[U]), P[q + U] = L[U];
|
|
4694
|
+
S === "cbc" && (b !== t ? N = L : N = k), H -= n, q += n;
|
|
4668
4695
|
}
|
|
4669
4696
|
if ((g === "pkcs#5" || g === "pkcs#7") && b === t) {
|
|
4670
|
-
const k =
|
|
4671
|
-
for (let
|
|
4672
|
-
if (
|
|
4673
|
-
|
|
4697
|
+
const k = P.length, L = P[k - 1];
|
|
4698
|
+
for (let U = 1; U <= L; U++)
|
|
4699
|
+
if (P[k - U] !== L) throw new Error("padding is invalid");
|
|
4700
|
+
P.splice(k - L, L);
|
|
4674
4701
|
}
|
|
4675
|
-
return A !== "array" ? b !== t ? c(
|
|
4702
|
+
return A !== "array" ? b !== t ? c(P) : d(P) : P;
|
|
4676
4703
|
}
|
|
4677
4704
|
return me = {
|
|
4678
4705
|
encrypt(m, T, b) {
|
|
@@ -4691,15 +4718,15 @@ function xa() {
|
|
|
4691
4718
|
sm4: ya()
|
|
4692
4719
|
}), ge;
|
|
4693
4720
|
}
|
|
4694
|
-
var
|
|
4695
|
-
const
|
|
4721
|
+
var Gn = xa();
|
|
4722
|
+
const Xn = Gn.sm2, Qn = Gn.sm4, pc = (t, e, n = "04") => n + Xn.doEncrypt(t, e), mc = (t, e, n = "04") => Xn.doDecrypt(t.startsWith(n) ? t.slice(2) : t, e), gc = (t, e) => Qn.encrypt(t, e), yc = (t, e) => Qn.decrypt(t, e);
|
|
4696
4723
|
let It = [], ba = { consecutiveFrames: 0, lastBlinkTime: 0 }, wa = { consecutiveFrames: 0, lastBlinkTime: 0 };
|
|
4697
4724
|
const va = /* @__PURE__ */ new Map([
|
|
4698
4725
|
["nod", [Aa, 30]],
|
|
4699
4726
|
["shake", [Fa, 7]],
|
|
4700
4727
|
["mouth", [Oa, 0.35]],
|
|
4701
4728
|
["eye", [Ra, 0.3]]
|
|
4702
|
-
]),
|
|
4729
|
+
]), xc = ["nod", "shake", "mouth", "eye"], bc = {
|
|
4703
4730
|
nod: "请点点头",
|
|
4704
4731
|
shake: "请摇摇头",
|
|
4705
4732
|
mouth: "请张张嘴",
|
|
@@ -4716,7 +4743,7 @@ function* Ta(t, e, n, r, s) {
|
|
|
4716
4743
|
for (let o = n; o > 0; o--)
|
|
4717
4744
|
yield t(e, s, r);
|
|
4718
4745
|
}
|
|
4719
|
-
function
|
|
4746
|
+
function Ut(t) {
|
|
4720
4747
|
return [t.x, t.y];
|
|
4721
4748
|
}
|
|
4722
4749
|
function ye(t, e) {
|
|
@@ -4728,7 +4755,7 @@ function ln(t) {
|
|
|
4728
4755
|
return (e + n) / (2 * r);
|
|
4729
4756
|
}
|
|
4730
4757
|
function Ea(t) {
|
|
4731
|
-
const e = fn(
|
|
4758
|
+
const e = fn(Ut(t[13]), Ut(t[19])), n = fn(Ut(t[0]), Ut(t[6]));
|
|
4732
4759
|
return e / n;
|
|
4733
4760
|
}
|
|
4734
4761
|
function Sa(t) {
|
|
@@ -4765,7 +4792,7 @@ function Aa(t, e) {
|
|
|
4765
4792
|
}
|
|
4766
4793
|
return !1;
|
|
4767
4794
|
}
|
|
4768
|
-
function
|
|
4795
|
+
function wc(t, e = "blob", n = 1) {
|
|
4769
4796
|
return new Promise((r) => {
|
|
4770
4797
|
const s = document.createElement("canvas"), o = s.getContext("2d");
|
|
4771
4798
|
s.width = t.videoWidth, s.height = t.videoHeight, o == null || o.drawImage(t, 0, 0, s.width, s.height), e === "blob" ? s.toBlob(
|
|
@@ -4778,7 +4805,7 @@ function bc(t, e = "blob", n = 1) {
|
|
|
4778
4805
|
) : r(s.toDataURL("image/png", n));
|
|
4779
4806
|
});
|
|
4780
4807
|
}
|
|
4781
|
-
async function
|
|
4808
|
+
async function vc(t) {
|
|
4782
4809
|
const { landmarksFn: e, videoEl: n, gesture: r, gestureThreshold: s, generatedNumber: o = 5, waitTime: c = 100, detectionScore: f = 0.5 } = t, [d, h] = va.get(r);
|
|
4783
4810
|
if (!d) return !1;
|
|
4784
4811
|
const l = [], v = Ta(e, n, o, c, f);
|
|
@@ -4790,76 +4817,77 @@ async function wc(t) {
|
|
|
4790
4817
|
}
|
|
4791
4818
|
return l.includes(!0);
|
|
4792
4819
|
}
|
|
4793
|
-
const
|
|
4794
|
-
encodeURIToParams:
|
|
4820
|
+
const Tc = { DATE_VALUE_FORMAT: ti, COMMON_TEXT: dt, IMAGE_TYPE: pn, MEDIA_TYPE: mn, DOC_TYPE: gn, FILE_TYPE: ni }, Ec = {
|
|
4821
|
+
encodeURIToParams: wn,
|
|
4795
4822
|
paramsToQueryString: li,
|
|
4796
4823
|
queryStringToParams: hi,
|
|
4797
4824
|
errorCodeToString: yn,
|
|
4798
|
-
YNToString:
|
|
4799
|
-
HNToString:
|
|
4825
|
+
YNToString: ri,
|
|
4826
|
+
HNToString: si,
|
|
4800
4827
|
valueToLabel: ci,
|
|
4801
4828
|
chargeToLabel: ui,
|
|
4802
|
-
cascaderToLabel:
|
|
4829
|
+
cascaderToLabel: bn,
|
|
4803
4830
|
multipleSelectToLabel: fi,
|
|
4804
|
-
phoneToAsterisk:
|
|
4805
|
-
idNumberToAsterisk:
|
|
4806
|
-
firstLetterToUpperCase:
|
|
4831
|
+
phoneToAsterisk: ii,
|
|
4832
|
+
idNumberToAsterisk: oi,
|
|
4833
|
+
firstLetterToUpperCase: xn,
|
|
4807
4834
|
firstLetterToLowerCase: ai
|
|
4808
|
-
},
|
|
4809
|
-
validHttp:
|
|
4810
|
-
validExternal:
|
|
4811
|
-
validString:
|
|
4812
|
-
validNumberStr:
|
|
4835
|
+
}, Sc = {
|
|
4836
|
+
validHttp: Ns,
|
|
4837
|
+
validExternal: ks,
|
|
4838
|
+
validString: Ls,
|
|
4839
|
+
validNumberStr: Us,
|
|
4813
4840
|
validEmptyObject: Hs,
|
|
4814
|
-
validURL:
|
|
4815
|
-
validPassword:
|
|
4816
|
-
validEmail:
|
|
4841
|
+
validURL: zs,
|
|
4842
|
+
validPassword: js,
|
|
4843
|
+
validEmail: $s,
|
|
4817
4844
|
validIdNumber: Re,
|
|
4818
4845
|
validPhone: Ys,
|
|
4819
|
-
validTel:
|
|
4820
|
-
},
|
|
4846
|
+
validTel: Vs
|
|
4847
|
+
}, Rc = { scrollTo: Fs, addClass: Ds, removeClass: qs, hasClass: Se, toggleClass: Cs, noContextmenu: Ms, useRafThrottle: Ps }, Oc = { parseTime: Vt, getTimeDistance: Is, getDayRange: Bs }, Fc = { local: dn, session: ct }, Ac = { uuid: _s, randomNum: As };
|
|
4821
4848
|
export {
|
|
4822
|
-
|
|
4849
|
+
Tc as CONSTANTS,
|
|
4850
|
+
fc as CommonRequest,
|
|
4823
4851
|
Me as NOOP,
|
|
4824
|
-
|
|
4852
|
+
Vo as NetworkManager,
|
|
4825
4853
|
uc as Request,
|
|
4826
4854
|
jo as TokenManager,
|
|
4827
|
-
|
|
4828
|
-
|
|
4855
|
+
hc as addResizeListener,
|
|
4856
|
+
Fc as cacheUtil,
|
|
4829
4857
|
Ba as countdownTimer,
|
|
4830
4858
|
La as creatCancelTask,
|
|
4831
|
-
|
|
4859
|
+
Oc as dateUtil,
|
|
4832
4860
|
Da as debounce,
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4861
|
+
Ua as downloadFile,
|
|
4862
|
+
Rc as elementUtil,
|
|
4863
|
+
xc as faceLivingEvent,
|
|
4864
|
+
bc as faceLivingEventHint,
|
|
4837
4865
|
Na as getArrayFullUrl,
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4866
|
+
Pa as getBirthdayByIdNumber,
|
|
4867
|
+
vc as getFaceGestureResult,
|
|
4868
|
+
wc as getFaceVideoFrame,
|
|
4869
|
+
Ws as getFullUrl,
|
|
4870
|
+
qa as getGenderByIdNumber,
|
|
4871
|
+
Ks as getLocationConfig,
|
|
4844
4872
|
$a as getMapLocationIcon,
|
|
4845
|
-
|
|
4873
|
+
Ha as getPercentage,
|
|
4846
4874
|
Ca as getRandomItemInArray,
|
|
4847
|
-
|
|
4875
|
+
lc as getRequestBaseUrl,
|
|
4848
4876
|
Ma as getSystemConfig,
|
|
4849
4877
|
za as loadCss,
|
|
4850
4878
|
ja as loadJs,
|
|
4851
|
-
|
|
4852
|
-
|
|
4879
|
+
Ac as randomUtil,
|
|
4880
|
+
dc as removeResizeListener,
|
|
4853
4881
|
ka as ricTask,
|
|
4854
4882
|
Ia as sleep,
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4883
|
+
Xn as sm2Crypto,
|
|
4884
|
+
mc as sm2Decrypt,
|
|
4885
|
+
pc as sm2Encrypt,
|
|
4886
|
+
Qn as sm4Crypto,
|
|
4887
|
+
yc as sm4Decrypt,
|
|
4888
|
+
gc as sm4Encrypt,
|
|
4889
|
+
Ec as toUtil,
|
|
4890
|
+
Js as transformPathName,
|
|
4891
|
+
Zs as trimArray,
|
|
4892
|
+
Sc as validUtil
|
|
4865
4893
|
};
|