@nano-lib/util 1.1.10 → 1.1.12

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.mjs CHANGED
@@ -1,28 +1,28 @@
1
- var ws = Object.defineProperty;
2
- var vs = (t, e, n) => e in t ? ws(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var j = (t, e, n) => vs(t, typeof e != "symbol" ? e + "" : e, n);
4
- const Ts = (t, e, n, r) => (t /= r / 2, t < 1 ? n / 2 * t * t + e : (t--, -n / 2 * (t * (t - 2) - 1) + e)), Es = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || ((t) => window.setTimeout(t, 16.666666666666668));
5
- function Ss(t, e) {
1
+ var vs = Object.defineProperty;
2
+ var Es = (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) => Es(t, typeof e != "symbol" ? e + "" : e, n);
4
+ const Ts = (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 Rs(t) {
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 Os(t) {
16
- const { target: e, to: n = 0, duration: r = 500, callback: s } = t ?? {}, o = Rs(e), c = n - o, f = 20;
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
20
  const l = Ts(d, o, c, r);
21
- Ss(l, e), d < r ? Es(h) : s && s();
21
+ Rs(l, e), d < r ? Ss(h) : s && s();
22
22
  };
23
23
  h();
24
24
  }
25
- function Fs(t, e) {
25
+ function _s(t, e) {
26
26
  switch (arguments.length) {
27
27
  case 1:
28
28
  return parseInt((Math.random() * t + 1).toString(), 10);
@@ -65,12 +65,12 @@ 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 _s(t, e) {
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
71
  return s < 30 ? "刚刚" : s < 3600 ? `${Math.ceil(s / 60)}分钟前` : s < 3600 * 24 ? `${Math.ceil(s / 3600)}小时前` : s < 3600 * 24 * 2 ? "1天前" : e ? Yt(t, e) : `${n.getMonth() + 1}月${n.getDate()}日${n.getHours()}时${n.getMinutes()}分`;
72
72
  }
73
- function Is(t) {
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
76
  dateRange: [Yt(n), Yt(r)],
@@ -118,7 +118,7 @@ const ct = {
118
118
  localStorage.clear();
119
119
  }
120
120
  };
121
- function Bs(t, e) {
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 Cs(t, e) {
131
+ function Ds(t, e) {
132
132
  Se(t, e) || (t.className += ` ${e}`);
133
133
  }
134
- function Ds(t, e) {
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,43 +145,43 @@ function Ps(t) {
145
145
  }));
146
146
  };
147
147
  }
148
- function qs(t) {
148
+ function Ns(t) {
149
149
  t && (t.oncontextmenu = () => !1);
150
150
  }
151
151
  function Ms(t) {
152
152
  return /^(http(s)?:\/\/)/.test(t);
153
153
  }
154
- function Ns(t) {
154
+ function ks(t) {
155
155
  return /^(https?:|mailto:|tel:)/.test(t);
156
156
  }
157
- function ks(t) {
157
+ function Ls(t) {
158
158
  return Object.prototype.toString.call(t) === "[object String]";
159
159
  }
160
- function Ls(t) {
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 Us(t) {
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 zs(t, e = 8) {
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 js(t) {
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 $s(t) {
178
+ function Ys(t) {
179
179
  return /^0\d{2,3}-?\d{7,8}$/.test(t);
180
180
  }
181
- function Ys(t) {
181
+ function Ks(t) {
182
182
  return /^1[3-9]\d{9}$/.test(t);
183
183
  }
184
- const Me = () => {
184
+ const Ne = () => {
185
185
  };
186
186
  function Ia(t) {
187
187
  return new Promise((e) => setTimeout(e, t));
@@ -214,55 +214,55 @@ function Da(t, e) {
214
214
  }, e);
215
215
  };
216
216
  }
217
- function Pa(t) {
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 qa(t) {
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);
227
227
  }
228
- function Ma(t) {
229
- const { baseUrl: e, initUrl: n, initParams: r, initFn: s } = t;
230
- return new Promise((o) => {
228
+ function Na(t) {
229
+ const { baseUrl: e, initUrl: n, initParams: r, initFn: s, defaultHttpsPort: o, defaultHttpPort: c } = t;
230
+ return new Promise((f) => {
231
231
  if (e) {
232
- o(!0);
232
+ f(!0);
233
233
  return;
234
234
  }
235
- const c = {};
235
+ const d = {};
236
236
  if (r !== null && typeof r == "object")
237
- Object.assign(c, r);
237
+ Object.assign(d, r);
238
238
  else {
239
- const { protocol: f, hostname: d, port: h, pathname: l } = Vs();
240
- Object.assign(c, { frontendProtocol: f, frontendDomain: d, frontendPort: h, frontendContextPath: l });
239
+ const { protocol: h, hostname: l, port: v, pathname: O } = Vs(o, c);
240
+ Object.assign(d, { frontendProtocol: h, frontendDomain: l, frontendPort: v, frontendContextPath: O });
241
241
  }
242
- s(n, c).then((f) => o(f)).catch(() => o(!1));
242
+ s(n, d).then((h) => f(h)).catch(() => f(!1));
243
243
  });
244
244
  }
245
245
  const Vs = (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 = Ks(o);
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
- }, Ks = (t) => {
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
- }, Js = (t, e = "") => {
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
- }, Na = (t, e = "") => {
262
+ }, Ma = (t, e = "") => {
263
263
  typeof t == "string" && (t = t === "" ? [] : t.split(","));
264
264
  for (const n in t)
265
- t[n] = Js(t[n], e);
265
+ t[n] = Ws(t[n], e);
266
266
  return t;
267
267
  };
268
268
  function ka(t) {
@@ -279,27 +279,27 @@ function ka(t) {
279
279
  n();
280
280
  }
281
281
  function La(t) {
282
- let e = Me;
282
+ let e = Ne;
283
283
  return (...n) => new Promise((r, s) => {
284
284
  e(), e = () => {
285
- r = s = Me;
285
+ r = s = Ne;
286
286
  }, t(...n).then(
287
287
  (o) => r(o),
288
288
  (o) => s(o)
289
289
  );
290
290
  });
291
291
  }
292
- function Ha(t, e) {
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 Ws(t) {
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 Ua(t, e, n = !1) {
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 Zs = [
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
- ], Gs = {
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
- }, Xs = {
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
- }, Qs = new Map(Zs), dt = Gs, ti = Xs, pn = ["jpg", "jpeg", "png", "bmp", "gif"], mn = ["mp3", "mp4", "webm", "ogg", "3gp"], gn = ["doc", "docx", "xls", "xlsx", "ppt", "txt", "pdf", "zip"], ei = [...pn, ...mn, ...gn];
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 ti[t] ?? dt.defaultErrorCode;
393
+ return ei[t] ?? dt.defaultErrorCode;
394
394
  }
395
- function ni(t) {
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 ri(t) {
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 si(t) {
401
+ function ii(t) {
402
402
  return t ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : "";
403
403
  }
404
- function ii(t, e, n) {
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 oi(t) {
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 xn(t, e, n) {
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 && xn(t + 1, e, s.children), s.label) : "";
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 bn(t) {
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 ? Ws(
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 wn(t, e) {
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: vn } = Symbol, Zt = /* @__PURE__ */ ((t) => (e) => {
489
+ const { toString: di } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: Wt, toStringTag: En } = 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
- })(/* @__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");
492
+ })(/* @__PURE__ */ Object.create(null)), ut = (t) => (t = t.toLowerCase(), (e) => Zt(e) === t), Gt = (t) => (e) => typeof e === t, { isArray: Rt } = Array, Tt = Gt("undefined");
493
493
  function Bt(t) {
494
- return t !== null && !Et(t) && t.constructor !== null && !Et(t.constructor) && Q(t.constructor.isBuffer) && t.constructor.isBuffer(t);
494
+ return t !== null && !Tt(t) && t.constructor !== null && !Tt(t.constructor) && Q(t.constructor.isBuffer) && t.constructor.isBuffer(t);
495
495
  }
496
496
  const Tn = ut("ArrayBuffer");
497
497
  function pi(t) {
498
498
  let e;
499
499
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Tn(t.buffer), e;
500
500
  }
501
- const mi = Gt("string"), Q = Gt("function"), En = Gt("number"), Ct = (t) => t !== null && typeof t == "object", gi = (t) => t === !0 || t === !1, Ut = (t) => {
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) && !(vn in t) && !(Wt in t);
505
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(En in t) && !(Wt in t);
506
506
  }, yi = (t) => {
507
507
  if (!Ct(t) || Bt(t))
508
508
  return !1;
@@ -511,11 +511,11 @@ const mi = Gt("string"), Q = Gt("function"), En = Gt("number"), Ct = (t) => t !=
511
511
  } catch {
512
512
  return !1;
513
513
  }
514
- }, xi = ut("Date"), bi = ut("File"), wi = ut("Blob"), vi = ut("FileList"), Ti = (t) => Ct(t) && Q(t.pipe), Ei = (t) => {
514
+ }, xi = ut("Date"), bi = ut("File"), wi = ut("Blob"), vi = ut("FileList"), Ei = (t) => Ct(t) && Q(t.pipe), Ti = (t) => {
515
515
  let e;
516
516
  return t && (typeof FormData == "function" && t instanceof FormData || Q(t.append) && ((e = Zt(t)) === "formdata" || // detect form-data instance
517
517
  e === "object" && Q(t.toString) && t.toString() === "[object FormData]"));
518
- }, Si = ut("URLSearchParams"), [Ri, Oi, Fi, Ai] = ["ReadableStream", "Request", "Response", "Headers"].map(ut), _i = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
518
+ }, Si = ut("URLSearchParams"), [Ri, Oi, Fi, _i] = ["ReadableStream", "Request", "Response", "Headers"].map(ut), Ai = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
519
519
  function Dt(t, e, { allOwnKeys: n = !1 } = {}) {
520
520
  if (t === null || typeof t > "u")
521
521
  return;
@@ -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 Sn(t, e) {
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, Rn = (t) => !Et(t) && t !== xt;
546
+ const xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, On = (t) => !Tt(t) && t !== xt;
547
547
  function xe() {
548
- const { caseless: t, skipUndefined: e } = Rn(this) && this || {}, n = {}, r = (s, o) => {
549
- const c = t && Sn(n, o) || o;
550
- Ut(n[c]) && Ut(s) ? n[c] = xe(n[c], s) : Ut(s) ? n[c] = xe({}, s) : Rt(s) ? n[c] = s.slice() : (!e || !Et(s)) && (n[c] = s);
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 || !Tt(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] = wn(s, n) : t[o] = s;
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,20 +569,20 @@ 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
- }, Pi = (t, e, n) => {
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
- }, qi = (t) => {
576
+ }, Pi = (t) => {
577
577
  if (!t) return null;
578
578
  if (Rt(t)) return t;
579
579
  let e = t.length;
580
- if (!En(e)) return null;
580
+ if (!Sn(e)) return null;
581
581
  const n = new Array(e);
582
582
  for (; e-- > 0; )
583
583
  n[e] = t[e];
584
584
  return n;
585
- }, Mi = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Oe(Uint8Array)), Ni = (t, e) => {
585
+ }, Ni = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Oe(Uint8Array)), Mi = (t, e) => {
586
586
  const r = (t && t[Wt]).call(t);
587
587
  let s;
588
588
  for (; (s = r.next()) && !s.done; ) {
@@ -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"), Hi = (t) => t.toLowerCase().replace(
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), Ui = ut("RegExp"), On = (t, e) => {
603
+ ), Me = (({ 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
- On(t, (e, n) => {
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];
@@ -630,10 +630,10 @@ const Ii = (t, e, n, { allOwnKeys: r } = {}) => (Dt(e, (s, o) => {
630
630
  return Rt(t) ? r(t) : r(String(t).split(e)), n;
631
631
  }, $i = () => {
632
632
  }, Yi = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
633
- function Vi(t) {
634
- return !!(t && Q(t.append) && t[vn] === "FormData" && t[Wt]);
633
+ function Ki(t) {
634
+ return !!(t && Q(t.append) && t[En] === "FormData" && t[Wt]);
635
635
  }
636
- const Ki = (t) => {
636
+ const Vi = (t) => {
637
637
  const e = new Array(10), n = (r, s) => {
638
638
  if (Ct(r)) {
639
639
  if (e.indexOf(r) >= 0)
@@ -645,84 +645,84 @@ const Ki = (t) => {
645
645
  const o = Rt(r) ? [] : {};
646
646
  return Dt(r, (c, f) => {
647
647
  const d = n(c, s + 1);
648
- !Et(d) && (o[f] = d);
648
+ !Tt(d) && (o[f] = d);
649
649
  }), e[s] = void 0, o;
650
650
  }
651
651
  }
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), Fn = ((t, e) => t ? setImmediate : e ? ((n, r) => (xt.addEventListener("message", ({ source: s, data: o }) => {
655
+ }, Ji = ut("AsyncFunction"), Wi = (t) => t && (Ct(t) || Q(t)) && Q(t.then) && Q(t.catch), _n = ((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 || Fn, Gi = (t) => t != null && Q(t[Wt]), y = {
662
+ ), Zi = typeof queueMicrotask < "u" ? queueMicrotask.bind(xt) : typeof process < "u" && process.nextTick || _n, Gi = (t) => t != null && Q(t[Wt]), y = {
663
663
  isArray: Rt,
664
664
  isArrayBuffer: Tn,
665
665
  isBuffer: Bt,
666
- isFormData: Ei,
666
+ isFormData: Ti,
667
667
  isArrayBufferView: pi,
668
668
  isString: mi,
669
- isNumber: En,
669
+ isNumber: Sn,
670
670
  isBoolean: gi,
671
671
  isObject: Ct,
672
- isPlainObject: Ut,
672
+ isPlainObject: Ht,
673
673
  isEmptyObject: yi,
674
674
  isReadableStream: Ri,
675
675
  isRequest: Oi,
676
676
  isResponse: Fi,
677
- isHeaders: Ai,
678
- isUndefined: Et,
677
+ isHeaders: _i,
678
+ isUndefined: Tt,
679
679
  isDate: xi,
680
680
  isFile: bi,
681
681
  isBlob: wi,
682
- isRegExp: Ui,
682
+ isRegExp: Hi,
683
683
  isFunction: Q,
684
- isStream: Ti,
684
+ isStream: Ei,
685
685
  isURLSearchParams: Si,
686
- isTypedArray: Mi,
686
+ isTypedArray: Ni,
687
687
  isFileList: vi,
688
688
  forEach: Dt,
689
689
  merge: xe,
690
690
  extend: Ii,
691
- trim: _i,
691
+ trim: Ai,
692
692
  stripBOM: Bi,
693
693
  inherits: Ci,
694
694
  toFlatObject: Di,
695
695
  kindOf: Zt,
696
696
  kindOfTest: ut,
697
- endsWith: Pi,
698
- toArray: qi,
699
- forEachEntry: Ni,
697
+ endsWith: qi,
698
+ toArray: Pi,
699
+ forEachEntry: Mi,
700
700
  matchAll: ki,
701
701
  isHTMLForm: Li,
702
- hasOwnProperty: Ne,
703
- hasOwnProp: Ne,
702
+ hasOwnProperty: Me,
703
+ hasOwnProp: Me,
704
704
  // an alias to avoid ESLint no-prototype-builtins detection
705
- reduceDescriptors: On,
705
+ reduceDescriptors: Fn,
706
706
  freezeMethods: zi,
707
707
  toObjectSet: ji,
708
- toCamelCase: Hi,
708
+ toCamelCase: Ui,
709
709
  noop: $i,
710
710
  toFiniteNumber: Yi,
711
- findKey: Sn,
711
+ findKey: Rn,
712
712
  global: xt,
713
- isContextDefined: Rn,
714
- isSpecCompliantForm: Vi,
715
- toJSONObject: Ki,
713
+ isContextDefined: On,
714
+ isSpecCompliantForm: Ki,
715
+ toJSONObject: Vi,
716
716
  isAsyncFn: Ji,
717
717
  isThenable: Wi,
718
- setImmediate: Fn,
718
+ setImmediate: _n,
719
719
  asap: Zi,
720
720
  isIterable: Gi
721
721
  };
722
- function M(t, e, n, r, s) {
722
+ function N(t, e, n, r, s) {
723
723
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
724
724
  }
725
- y.inherits(M, Error, {
725
+ y.inherits(N, Error, {
726
726
  toJSON: function() {
727
727
  return {
728
728
  // Standard
@@ -743,7 +743,7 @@ y.inherits(M, Error, {
743
743
  };
744
744
  }
745
745
  });
746
- const An = M.prototype, _n = {};
746
+ const An = N.prototype, In = {};
747
747
  [
748
748
  "ERR_BAD_OPTION_VALUE",
749
749
  "ERR_BAD_OPTION",
@@ -759,28 +759,28 @@ const An = M.prototype, _n = {};
759
759
  "ERR_INVALID_URL"
760
760
  // eslint-disable-next-line func-names
761
761
  ].forEach((t) => {
762
- _n[t] = { value: t };
762
+ In[t] = { value: t };
763
763
  });
764
- Object.defineProperties(M, _n);
764
+ Object.defineProperties(N, In);
765
765
  Object.defineProperty(An, "isAxiosError", { value: !0 });
766
- M.from = (t, e, n, r, s, o) => {
766
+ N.from = (t, e, n, r, s, o) => {
767
767
  const c = Object.create(An);
768
768
  y.toFlatObject(t, c, function(l) {
769
769
  return l !== Error.prototype;
770
770
  }, (h) => h !== "isAxiosError");
771
771
  const f = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
772
- return M.call(c, f, d, n, r, s), t && c.cause == null && Object.defineProperty(c, "cause", { value: t, configurable: !0 }), c.name = t && t.name || "Error", o && Object.assign(c, o), c;
772
+ return N.call(c, f, d, n, r, s), t && c.cause == null && Object.defineProperty(c, "cause", { value: t, configurable: !0 }), c.name = t && t.name || "Error", o && Object.assign(c, o), c;
773
773
  };
774
774
  const Xi = null;
775
775
  function be(t) {
776
776
  return y.isPlainObject(t) || y.isArray(t);
777
777
  }
778
- function In(t) {
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 = In(s), !n && o ? "[" + s + "]" : s;
783
+ return s = Bn(s), !n && o ? "[" + s + "]" : s;
784
784
  }).join(n ? "." : "") : e;
785
785
  }
786
786
  function Qi(t) {
@@ -809,16 +809,16 @@ function Xt(t, e, n) {
809
809
  if (y.isBoolean(w))
810
810
  return w.toString();
811
811
  if (!d && y.isBlob(w))
812
- throw new M("Blob is not supported. Use a Buffer instead.");
812
+ throw new N("Blob is not supported. Use a Buffer instead.");
813
813
  return y.isArrayBuffer(w) || y.isTypedArray(w) ? d && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w;
814
814
  }
815
815
  function l(w, F, m) {
816
- let T = w;
816
+ let E = w;
817
817
  if (w && !m && typeof w == "object") {
818
818
  if (y.endsWith(F, "{}"))
819
819
  F = r ? F : F.slice(0, -2), w = JSON.stringify(w);
820
- else if (y.isArray(w) && Qi(w) || (y.isFileList(w) || y.endsWith(F, "[]")) && (T = y.toArray(w)))
821
- return F = In(F), T.forEach(function(g, S) {
820
+ else if (y.isArray(w) && Qi(w) || (y.isFileList(w) || y.endsWith(F, "[]")) && (E = y.toArray(w)))
821
+ return F = Bn(F), E.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 + "[]",
@@ -837,14 +837,14 @@ function Xt(t, e, n) {
837
837
  if (!y.isUndefined(w)) {
838
838
  if (v.indexOf(w) !== -1)
839
839
  throw Error("Circular reference detected in " + F.join("."));
840
- v.push(w), y.forEach(w, function(T, b) {
841
- (!(y.isUndefined(T) || T === null) && s.call(
840
+ v.push(w), y.forEach(w, function(E, b) {
841
+ (!(y.isUndefined(E) || E === null) && s.call(
842
842
  e,
843
- T,
843
+ E,
844
844
  y.isString(b) ? b.trim() : b,
845
845
  F,
846
846
  O
847
- )) === !0 && I(T, F ? F.concat(b) : [b]);
847
+ )) === !0 && I(E, F ? F.concat(b) : [b]);
848
848
  }), v.pop();
849
849
  }
850
850
  }
@@ -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 Bn = Fe.prototype;
873
- Bn.append = function(e, n) {
872
+ const Cn = Fe.prototype;
873
+ Cn.append = function(e, n) {
874
874
  this._pairs.push([e, n]);
875
875
  };
876
- Bn.toString = function(e) {
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 Cn(t, e, n) {
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 He {
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 Dn = {
956
+ const qn = {
957
957
  silentJSONParsing: !0,
958
958
  forcedJSONParsing: !0,
959
959
  clarifyTimeoutError: !1
@@ -965,10 +965,10 @@ const Dn = {
965
965
  Blob: so
966
966
  },
967
967
  protocols: ["http", "https", "file", "blob", "url", "data"]
968
- }, Ae = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, oo = Ae && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), ao = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
969
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", co = Ae && window.location.href || "http://localhost", uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
968
+ }, _e = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, oo = _e && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), ao = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
969
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", co = _e && window.location.href || "http://localhost", uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
970
970
  __proto__: null,
971
- hasBrowserEnv: Ae,
971
+ hasBrowserEnv: _e,
972
972
  hasStandardBrowserEnv: oo,
973
973
  hasStandardBrowserWebWorkerEnv: ao,
974
974
  navigator: we,
@@ -1022,8 +1022,8 @@ function po(t, e, n) {
1022
1022
  }
1023
1023
  return (n || JSON.stringify)(t);
1024
1024
  }
1025
- const Pt = {
1026
- transitional: Dn,
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 || Pt.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
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)) {
@@ -1060,7 +1060,7 @@ const Pt = {
1060
1060
  return JSON.parse(e, this.parseReviver);
1061
1061
  } catch (f) {
1062
1062
  if (c)
1063
- throw f.name === "SyntaxError" ? M.from(f, M.ERR_BAD_RESPONSE, this, null, this.response) : f;
1063
+ throw f.name === "SyntaxError" ? N.from(f, N.ERR_BAD_RESPONSE, this, null, this.response) : f;
1064
1064
  }
1065
1065
  }
1066
1066
  return e;
@@ -1089,7 +1089,7 @@ const Pt = {
1089
1089
  }
1090
1090
  };
1091
1091
  y.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
1092
- Pt.headers[t] = {};
1092
+ qt.headers[t] = {};
1093
1093
  });
1094
1094
  const mo = y.toObjectSet([
1095
1095
  "age",
@@ -1116,8 +1116,8 @@ 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
- }, Ue = Symbol("internals");
1120
- function _t(t) {
1119
+ }, He = Symbol("internals");
1120
+ function At(t) {
1121
1121
  return t && String(t).trim().toLowerCase();
1122
1122
  }
1123
1123
  function zt(t) {
@@ -1162,7 +1162,7 @@ let tt = class {
1162
1162
  set(e, n, r) {
1163
1163
  const s = this;
1164
1164
  function o(f, d, h) {
1165
- const l = _t(d);
1165
+ const l = At(d);
1166
1166
  if (!l)
1167
1167
  throw new Error("header name must be a non-empty string");
1168
1168
  const v = y.findKey(s, l);
@@ -1186,7 +1186,7 @@ let tt = class {
1186
1186
  return this;
1187
1187
  }
1188
1188
  get(e, n) {
1189
- if (e = _t(e), e) {
1189
+ if (e = At(e), e) {
1190
1190
  const r = y.findKey(this, e);
1191
1191
  if (r) {
1192
1192
  const s = this[r];
@@ -1203,7 +1203,7 @@ let tt = class {
1203
1203
  }
1204
1204
  }
1205
1205
  has(e, n) {
1206
- if (e = _t(e), e) {
1206
+ if (e = At(e), e) {
1207
1207
  const r = y.findKey(this, e);
1208
1208
  return !!(r && this[r] !== void 0 && (!n || oe(this, this[r], r, n)));
1209
1209
  }
@@ -1213,7 +1213,7 @@ let tt = class {
1213
1213
  const r = this;
1214
1214
  let s = !1;
1215
1215
  function o(c) {
1216
- if (c = _t(c), c) {
1216
+ if (c = At(c), c) {
1217
1217
  const f = y.findKey(r, c);
1218
1218
  f && (!n || oe(r, r[f], f, n)) && (delete r[f], s = !0);
1219
1219
  }
@@ -1271,11 +1271,11 @@ let tt = class {
1271
1271
  return n.forEach((s) => r.set(s)), r;
1272
1272
  }
1273
1273
  static accessor(e) {
1274
- const r = (this[Ue] = this[Ue] = {
1274
+ const r = (this[He] = this[He] = {
1275
1275
  accessors: {}
1276
1276
  }).accessors, s = this.prototype;
1277
1277
  function o(c) {
1278
- const f = _t(c);
1278
+ const f = At(c);
1279
1279
  r[f] || (wo(s, c), r[f] = !0);
1280
1280
  }
1281
1281
  return y.isArray(e) ? e.forEach(o) : o(e), this;
@@ -1293,26 +1293,26 @@ y.reduceDescriptors(tt.prototype, ({ value: t }, e) => {
1293
1293
  });
1294
1294
  y.freezeMethods(tt);
1295
1295
  function ae(t, e) {
1296
- const n = this || Pt, r = e || n, s = tt.from(r.headers);
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 qn(t) {
1302
+ function Nn(t) {
1303
1303
  return !!(t && t.__CANCEL__);
1304
1304
  }
1305
1305
  function Ot(t, e, n) {
1306
- M.call(this, t ?? "canceled", M.ERR_CANCELED, e, n), this.name = "CanceledError";
1306
+ N.call(this, t ?? "canceled", N.ERR_CANCELED, e, n), this.name = "CanceledError";
1307
1307
  }
1308
- y.inherits(Ot, M, {
1308
+ y.inherits(Ot, N, {
1309
1309
  __CANCEL__: !0
1310
1310
  });
1311
1311
  function Mn(t, e, n) {
1312
1312
  const r = n.config.validateStatus;
1313
- !n.status || !r || r(n.status) ? t(n) : e(new M(
1313
+ !n.status || !r || r(n.status) ? t(n) : e(new N(
1314
1314
  "Request failed with status code " + n.status,
1315
- [M.ERR_BAD_REQUEST, M.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1315
+ [N.ERR_BAD_REQUEST, N.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1316
1316
  n.config,
1317
1317
  n.request,
1318
1318
  n
@@ -1322,7 +1322,7 @@ function vo(t) {
1322
1322
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
1323
1323
  return e && e[1] || "";
1324
1324
  }
1325
- function To(t, e) {
1325
+ function Eo(t, e) {
1326
1326
  t = t || 10;
1327
1327
  const n = new Array(t), r = new Array(t);
1328
1328
  let s = 0, o = 0, c;
@@ -1338,7 +1338,7 @@ function To(t, e) {
1338
1338
  return I ? Math.round(O * 1e3 / I) : void 0;
1339
1339
  };
1340
1340
  }
1341
- function Eo(t, e) {
1341
+ function To(t, e) {
1342
1342
  let n = 0, r = 1e3 / e, s, o;
1343
1343
  const c = (h, l = Date.now()) => {
1344
1344
  n = l, s = null, o && (clearTimeout(o), o = null), t(...h);
@@ -1350,10 +1350,10 @@ function Eo(t, e) {
1350
1350
  }, r - v)));
1351
1351
  }, () => s && c(s)];
1352
1352
  }
1353
- const Vt = (t, e, n = 3) => {
1353
+ const Kt = (t, e, n = 3) => {
1354
1354
  let r = 0;
1355
- const s = To(50, 250);
1356
- return Eo((o) => {
1355
+ const s = Eo(50, 250);
1356
+ return To((o) => {
1357
1357
  const c = o.loaded, f = o.lengthComputable ? o.total : void 0, d = c - r, h = s(d), l = c <= f;
1358
1358
  r = c;
1359
1359
  const v = {
@@ -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 Nn(t, e, n) {
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 kn = (t) => {
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 = Cn(Nn(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), f && c.set(
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)) {
@@ -1502,9 +1502,9 @@ const kn = (t) => {
1502
1502
  d && c.set(s, d);
1503
1503
  }
1504
1504
  return e;
1505
- }, Ao = typeof XMLHttpRequest < "u", _o = Ao && function(t) {
1505
+ }, _o = typeof XMLHttpRequest < "u", Ao = _o && function(t) {
1506
1506
  return new Promise(function(n, r) {
1507
- const s = kn(t);
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;
@@ -1513,7 +1513,7 @@ const kn = (t) => {
1513
1513
  }
1514
1514
  let m = new XMLHttpRequest();
1515
1515
  m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
1516
- function T() {
1516
+ function E() {
1517
1517
  if (!m)
1518
1518
  return;
1519
1519
  const g = tt.from(
@@ -1532,30 +1532,30 @@ const kn = (t) => {
1532
1532
  r(C), F();
1533
1533
  }, x), m = null;
1534
1534
  }
1535
- "onloadend" in m ? m.onloadend = T : m.onreadystatechange = function() {
1536
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(T);
1535
+ "onloadend" in m ? m.onloadend = E : m.onreadystatechange = function() {
1536
+ !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(E);
1537
1537
  }, m.onabort = function() {
1538
- m && (r(new M("Request aborted", M.ECONNABORTED, t, m)), m = null);
1538
+ m && (r(new N("Request aborted", N.ECONNABORTED, t, m)), m = null);
1539
1539
  }, m.onerror = function(S) {
1540
- const x = S && S.message ? S.message : "Network Error", A = new M(x, M.ERR_NETWORK, t, m);
1541
- A.event = S || null, r(A), m = null;
1540
+ const x = S && S.message ? S.message : "Network Error", _ = new N(x, N.ERR_NETWORK, t, m);
1541
+ _.event = S || null, r(_), 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 || Dn;
1545
- s.timeoutErrorMessage && (S = s.timeoutErrorMessage), r(new M(
1544
+ const x = s.transitional || qn;
1545
+ s.timeoutErrorMessage && (S = s.timeoutErrorMessage), r(new N(
1546
1546
  S,
1547
- x.clarifyTimeoutError ? M.ETIMEDOUT : M.ECONNABORTED,
1547
+ x.clarifyTimeoutError ? N.ETIMEDOUT : N.ECONNABORTED,
1548
1548
  t,
1549
1549
  m
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] = Vt(h, !0), m.addEventListener("progress", O)), d && m.upload && ([v, I] = Vt(d), m.upload.addEventListener("progress", v), m.upload.addEventListener("loadend", I)), (s.cancelToken || s.signal) && (l = (g) => {
1553
+ }), y.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), f && f !== "json" && (m.responseType = s.responseType), h && ([O, w] = Kt(h, !0), m.addEventListener("progress", O)), d && m.upload && ([v, I] = Kt(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);
1557
1557
  if (b && W.protocols.indexOf(b) === -1) {
1558
- r(new M("Unsupported protocol " + b + ":", M.ERR_BAD_REQUEST, t));
1558
+ r(new N("Unsupported protocol " + b + ":", N.ERR_BAD_REQUEST, t));
1559
1559
  return;
1560
1560
  }
1561
1561
  m.send(o || null);
@@ -1568,11 +1568,11 @@ const kn = (t) => {
1568
1568
  if (!s) {
1569
1569
  s = !0, f();
1570
1570
  const l = h instanceof Error ? h : this.reason;
1571
- r.abort(l instanceof M ? l : new Ot(l instanceof Error ? l.message : l));
1571
+ r.abort(l instanceof N ? l : new Ot(l instanceof Error ? l.message : l));
1572
1572
  }
1573
1573
  };
1574
1574
  let c = e && setTimeout(() => {
1575
- c = null, o(new M(`timeout ${e} of ms exceeded`, M.ETIMEDOUT));
1575
+ c = null, o(new N(`timeout ${e} of ms exceeded`, N.ETIMEDOUT));
1576
1576
  }, e);
1577
1577
  const f = () => {
1578
1578
  t && (c && clearTimeout(c), c = null, t.forEach((h) => {
@@ -1640,11 +1640,11 @@ const kn = (t) => {
1640
1640
  }, {
1641
1641
  highWaterMark: 2
1642
1642
  });
1643
- }, Ve = 64 * 1024, { isFunction: Lt } = y, Po = (({ Request: t, Response: e }) => ({
1643
+ }, Ke = 64 * 1024, { isFunction: Lt } = y, qo = (({ Request: t, Response: e }) => ({
1644
1644
  Request: t,
1645
1645
  Response: e
1646
1646
  }))(y.global), {
1647
- ReadableStream: Ke,
1647
+ ReadableStream: Ve,
1648
1648
  TextEncoder: Je
1649
1649
  } = y.global, We = (t, ...e) => {
1650
1650
  try {
@@ -1652,17 +1652,17 @@ const kn = (t) => {
1652
1652
  } catch {
1653
1653
  return !1;
1654
1654
  }
1655
- }, qo = (t) => {
1655
+ }, Po = (t) => {
1656
1656
  t = y.merge.call({
1657
1657
  skipUndefined: !0
1658
- }, Po, t);
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;
1662
- const f = s && Lt(Ke), d = s && (typeof Je == "function" ? /* @__PURE__ */ ((w) => (F) => w.encode(F))(new Je()) : async (w) => new Uint8Array(await new n(w).arrayBuffer())), h = o && f && We(() => {
1662
+ const f = s && Lt(Ve), d = s && (typeof Je == "function" ? /* @__PURE__ */ ((w) => (F) => w.encode(F))(new Je()) : async (w) => new Uint8Array(await new n(w).arrayBuffer())), h = o && f && We(() => {
1663
1663
  let w = !1;
1664
1664
  const F = new n(W.origin, {
1665
- body: new Ke(),
1665
+ body: new Ve(),
1666
1666
  method: "POST",
1667
1667
  get duplex() {
1668
1668
  return w = !0, "half";
@@ -1674,10 +1674,10 @@ const kn = (t) => {
1674
1674
  };
1675
1675
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((w) => {
1676
1676
  !v[w] && (v[w] = (F, m) => {
1677
- let T = F && F[w];
1678
- if (T)
1679
- return T.call(F);
1680
- throw new M(`Response type '${w}' is not supported`, M.ERR_NOT_SUPPORT, m);
1677
+ let E = F && F[w];
1678
+ if (E)
1679
+ return E.call(F);
1680
+ throw new N(`Response type '${w}' is not supported`, N.ERR_NOT_SUPPORT, m);
1681
1681
  });
1682
1682
  });
1683
1683
  const O = async (w) => {
@@ -1702,70 +1702,70 @@ const kn = (t) => {
1702
1702
  let {
1703
1703
  url: F,
1704
1704
  method: m,
1705
- data: T,
1705
+ data: E,
1706
1706
  signal: b,
1707
1707
  cancelToken: g,
1708
1708
  timeout: S,
1709
1709
  onDownloadProgress: x,
1710
- onUploadProgress: A,
1710
+ onUploadProgress: _,
1711
1711
  responseType: C,
1712
- headers: q,
1713
- withCredentials: N = "same-origin",
1714
- fetchOptions: U
1715
- } = kn(w), P = e || fetch;
1712
+ headers: P,
1713
+ withCredentials: M = "same-origin",
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 H = k && k.unsubscribe && (() => {
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(q, T)) !== 0) {
1723
+ if (_ && h && m !== "get" && m !== "head" && (J = await I(P, E)) !== 0) {
1724
1724
  let et = new n(F, {
1725
1725
  method: "POST",
1726
- body: T,
1726
+ body: E,
1727
1727
  duplex: "half"
1728
1728
  }), D;
1729
- if (y.isFormData(T) && (D = et.headers.get("content-type")) && q.setContentType(D), et.body) {
1730
- const [Ft, Tt] = ze(
1729
+ if (y.isFormData(E) && (D = et.headers.get("content-type")) && P.setContentType(D), et.body) {
1730
+ const [Ft, Et] = ze(
1731
1731
  J,
1732
- Vt(je(A))
1732
+ Kt(je(_))
1733
1733
  );
1734
- T = Ye(et.body, Ve, Ft, Tt);
1734
+ E = Ye(et.body, Ke, Ft, Et);
1735
1735
  }
1736
1736
  }
1737
- y.isString(N) || (N = N ? "include" : "omit");
1737
+ y.isString(M) || (M = M ? "include" : "omit");
1738
1738
  const Y = o && "credentials" in n.prototype, X = {
1739
- ...U,
1739
+ ...H,
1740
1740
  signal: k,
1741
1741
  method: m.toUpperCase(),
1742
- headers: q.normalize().toJSON(),
1743
- body: T,
1742
+ headers: P.normalize().toJSON(),
1743
+ body: E,
1744
1744
  duplex: "half",
1745
- credentials: Y ? N : void 0
1745
+ credentials: Y ? M : void 0
1746
1746
  };
1747
1747
  L = o && new n(F, X);
1748
- let Z = await (o ? P(L, U) : P(F, X));
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 && H)) {
1750
+ if (l && (x || pt && U)) {
1751
1751
  const et = {};
1752
- ["status", "statusText", "headers"].forEach((qt) => {
1753
- et[qt] = Z[qt];
1752
+ ["status", "statusText", "headers"].forEach((Pt) => {
1753
+ et[Pt] = Z[Pt];
1754
1754
  });
1755
- const D = y.toFiniteNumber(Z.headers.get("content-length")), [Ft, Tt] = x && ze(
1755
+ const D = y.toFiniteNumber(Z.headers.get("content-length")), [Ft, Et] = x && ze(
1756
1756
  D,
1757
- Vt(je(x), !0)
1757
+ Kt(je(x), !0)
1758
1758
  ) || [];
1759
1759
  Z = new r(
1760
- Ye(Z.body, Ve, Ft, () => {
1761
- Tt && Tt(), H && H();
1760
+ Ye(Z.body, Ke, Ft, () => {
1761
+ Et && Et(), 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 && H && H(), await new Promise((et, D) => {
1768
+ return !pt && U && U(), await new Promise((et, D) => {
1769
1769
  Mn(et, D, {
1770
1770
  data: vt,
1771
1771
  headers: tt.from(Z.headers),
@@ -1776,32 +1776,32 @@ const kn = (t) => {
1776
1776
  });
1777
1777
  });
1778
1778
  } catch (Y) {
1779
- throw H && H(), Y && Y.name === "TypeError" && /Load failed|fetch/i.test(Y.message) ? Object.assign(
1780
- new M("Network Error", M.ERR_NETWORK, w, L),
1779
+ throw U && U(), Y && Y.name === "TypeError" && /Load failed|fetch/i.test(Y.message) ? Object.assign(
1780
+ new N("Network Error", N.ERR_NETWORK, w, L),
1781
1781
  {
1782
1782
  cause: Y.cause || Y
1783
1783
  }
1784
- ) : M.from(Y, Y && Y.code, w, L);
1784
+ ) : N.from(Y, Y && Y.code, w, L);
1785
1785
  }
1786
1786
  };
1787
- }, Mo = /* @__PURE__ */ new Map(), Ln = (t) => {
1787
+ }, No = /* @__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,
1791
1791
  s,
1792
1792
  n
1793
1793
  ];
1794
- let c = o.length, f = c, d, h, l = Mo;
1794
+ let c = o.length, f = c, d, h, l = No;
1795
1795
  for (; f--; )
1796
- d = o[f], h = l.get(d), h === void 0 && l.set(d, h = f ? /* @__PURE__ */ new Map() : qo(e)), l = h;
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
- Ln();
1799
+ Un();
1800
1800
  const ve = {
1801
1801
  http: Xi,
1802
- xhr: _o,
1802
+ xhr: Ao,
1803
1803
  fetch: {
1804
- get: Ln
1804
+ get: Un
1805
1805
  }
1806
1806
  };
1807
1807
  y.forEach(ve, (t, e) => {
@@ -1813,7 +1813,7 @@ y.forEach(ve, (t, e) => {
1813
1813
  Object.defineProperty(t, "adapterName", { value: e });
1814
1814
  }
1815
1815
  });
1816
- const Ze = (t) => `- ${t}`, No = (t) => y.isFunction(t) || t === null || t === !1, Hn = {
1816
+ const Ze = (t) => `- ${t}`, Mo = (t) => y.isFunction(t) || t === null || t === !1, Hn = {
1817
1817
  getAdapter: (t, e) => {
1818
1818
  t = y.isArray(t) ? t : [t];
1819
1819
  const { length: n } = t;
@@ -1822,8 +1822,8 @@ const Ze = (t) => `- ${t}`, No = (t) => y.isFunction(t) || t === null || t === !
1822
1822
  for (let c = 0; c < n; c++) {
1823
1823
  r = t[c];
1824
1824
  let f;
1825
- if (s = r, !No(r) && (s = ve[(f = String(r)).toLowerCase()], s === void 0))
1826
- throw new M(`Unknown adapter '${f}'`);
1825
+ if (s = r, !Mo(r) && (s = ve[(f = String(r)).toLowerCase()], s === void 0))
1826
+ throw new N(`Unknown adapter '${f}'`);
1827
1827
  if (s && (y.isFunction(s) || (s = s.get(e))))
1828
1828
  break;
1829
1829
  o[f || "#" + c] = s;
@@ -1835,7 +1835,7 @@ const Ze = (t) => `- ${t}`, No = (t) => y.isFunction(t) || t === null || t === !
1835
1835
  let f = n ? c.length > 1 ? `since :
1836
1836
  ` + c.map(Ze).join(`
1837
1837
  `) : " " + Ze(c[0]) : "as no adapter specified";
1838
- throw new M(
1838
+ throw new N(
1839
1839
  "There is no suitable adapter to dispatch the request " + f,
1840
1840
  "ERR_NOT_SUPPORT"
1841
1841
  );
@@ -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 || Pt.adapter, t)(t).then(function(r) {
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 qn(r) || (ce(t), r && r.response && (r.response.data = ae.call(
1862
+ return Nn(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 Un = "1.12.2", Qt = {};
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,13 +1875,13 @@ 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" + Un + "] Transitional option '" + o + "'" + c + (r ? ". " + r : "");
1878
+ return "[Axios v" + zn + "] Transitional option '" + o + "'" + c + (r ? ". " + r : "");
1879
1879
  }
1880
1880
  return (o, c, f) => {
1881
1881
  if (e === !1)
1882
- throw new M(
1882
+ throw new N(
1883
1883
  s(c, " has been removed" + (n ? " in " + n : "")),
1884
- M.ERR_DEPRECATED
1884
+ N.ERR_DEPRECATED
1885
1885
  );
1886
1886
  return n && !Xe[c] && (Xe[c] = !0, console.warn(
1887
1887
  s(
@@ -1896,7 +1896,7 @@ Qt.spelling = function(e) {
1896
1896
  };
1897
1897
  function ko(t, e, n) {
1898
1898
  if (typeof t != "object")
1899
- throw new M("options must be an object", M.ERR_BAD_OPTION_VALUE);
1899
+ throw new N("options must be an object", N.ERR_BAD_OPTION_VALUE);
1900
1900
  const r = Object.keys(t);
1901
1901
  let s = r.length;
1902
1902
  for (; s-- > 0; ) {
@@ -1904,11 +1904,11 @@ function ko(t, e, n) {
1904
1904
  if (c) {
1905
1905
  const f = t[o], d = f === void 0 || c(f, o, t);
1906
1906
  if (d !== !0)
1907
- throw new M("option " + o + " must be " + d, M.ERR_BAD_OPTION_VALUE);
1907
+ throw new N("option " + o + " must be " + d, N.ERR_BAD_OPTION_VALUE);
1908
1908
  continue;
1909
1909
  }
1910
1910
  if (n !== !0)
1911
- throw new M("Unknown option " + o, M.ERR_BAD_OPTION);
1911
+ throw new N("Unknown option " + o, N.ERR_BAD_OPTION);
1912
1912
  }
1913
1913
  }
1914
1914
  const jt = {
@@ -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 He(),
1922
- response: new He()
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 = Nn(e.baseURL, e.url, e.allowAbsoluteUrls);
2015
- return Cn(n, e.params, e.paramsSerializer);
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 zn {
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,22 +2105,22 @@ let Lo = class zn {
2105
2105
  static source() {
2106
2106
  let e;
2107
2107
  return {
2108
- token: new zn(function(s) {
2108
+ token: new jn(function(s) {
2109
2109
  e = s;
2110
2110
  }),
2111
2111
  cancel: e
2112
2112
  };
2113
2113
  }
2114
2114
  };
2115
- function Ho(t) {
2115
+ function Uo(t) {
2116
2116
  return function(n) {
2117
2117
  return t.apply(null, n);
2118
2118
  };
2119
2119
  }
2120
- function Uo(t) {
2120
+ function Ho(t) {
2121
2121
  return y.isObject(t) && t.isAxiosError === !0;
2122
2122
  }
2123
- const Te = {
2123
+ const Ee = {
2124
2124
  Continue: 100,
2125
2125
  SwitchingProtocols: 101,
2126
2126
  Processing: 102,
@@ -2185,37 +2185,37 @@ const Te = {
2185
2185
  NotExtended: 510,
2186
2186
  NetworkAuthenticationRequired: 511
2187
2187
  };
2188
- Object.entries(Te).forEach(([t, e]) => {
2189
- Te[e] = t;
2188
+ Object.entries(Ee).forEach(([t, e]) => {
2189
+ Ee[e] = t;
2190
2190
  });
2191
- function jn(t) {
2192
- const e = new bt(t), n = wn(bt.prototype.request, e);
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 jn(wt(t, s));
2194
+ return $n(wt(t, s));
2195
2195
  }, n;
2196
2196
  }
2197
- const $ = jn(Pt);
2197
+ const $ = $n(qt);
2198
2198
  $.Axios = bt;
2199
2199
  $.CanceledError = Ot;
2200
2200
  $.CancelToken = Lo;
2201
- $.isCancel = qn;
2202
- $.VERSION = Un;
2201
+ $.isCancel = Nn;
2202
+ $.VERSION = zn;
2203
2203
  $.toFormData = Xt;
2204
- $.AxiosError = M;
2204
+ $.AxiosError = N;
2205
2205
  $.Cancel = $.CanceledError;
2206
2206
  $.all = function(e) {
2207
2207
  return Promise.all(e);
2208
2208
  };
2209
- $.spread = Ho;
2210
- $.isAxiosError = Uo;
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);
2214
2214
  $.getAdapter = Hn.getAdapter;
2215
- $.HttpStatusCode = Te;
2215
+ $.HttpStatusCode = Ee;
2216
2216
  $.default = $;
2217
2217
  const {
2218
- Axios: Ka,
2218
+ Axios: Va,
2219
2219
  AxiosError: Ja,
2220
2220
  CanceledError: Wa,
2221
2221
  isCancel: Za,
@@ -2234,7 +2234,7 @@ const {
2234
2234
  } = $;
2235
2235
  class zo {
2236
2236
  constructor() {
2237
- j(this, "pendingMap", /* @__PURE__ */ new Map());
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;
@@ -2262,12 +2262,14 @@ class zo {
2262
2262
  }
2263
2263
  }
2264
2264
  class jo {
2265
- constructor() {
2266
- j(this, "TOKEN_KEY", "__AUTH_TOKEN");
2267
- j(this, "REFRESH_TOKEN_KEY", "__REFRESH_TOKEN");
2268
- j(this, "TOKEN_EXPIRES_KEY", "__TOKEN_EXPIRES_AT");
2269
- j(this, "isRefreshing", !1);
2270
- j(this, "refreshSubscribers", []);
2265
+ constructor(e = {}) {
2266
+ z(this, "TOKEN_KEY");
2267
+ z(this, "REFRESH_TOKEN_KEY");
2268
+ z(this, "TOKEN_EXPIRES_KEY");
2269
+ z(this, "isRefreshing", !1);
2270
+ z(this, "refreshSubscribers", []);
2271
+ const { TOKEN_KEY: n, REFRESH_TOKEN_KEY: r, TOKEN_EXPIRES_KEY: s } = e;
2272
+ this.TOKEN_KEY = n || "__AUTH_TOKEN", this.REFRESH_TOKEN_KEY = r || "__REFRESH_TOKEN", this.TOKEN_EXPIRES_KEY = s || "__TOKEN_EXPIRES_AT";
2271
2273
  }
2272
2274
  setToken({ accessToken: e, refreshToken: n, expiresIn: r }) {
2273
2275
  if (ct.set(this.TOKEN_KEY, e), n && ct.set(this.REFRESH_TOKEN_KEY, n), r) {
@@ -2319,7 +2321,7 @@ class jo {
2319
2321
  }
2320
2322
  class $o {
2321
2323
  constructor(e) {
2322
- j(this, "toastInstance");
2324
+ z(this, "toastInstance");
2323
2325
  this.toastInstance = e;
2324
2326
  }
2325
2327
  handleStatusError(e, n, r = !0) {
@@ -2352,11 +2354,11 @@ class $o {
2352
2354
  }
2353
2355
  class Yo {
2354
2356
  constructor(e) {
2355
- j(this, "toastInstance");
2356
- j(this, "status", navigator.onLine ? "online" : "offline");
2357
- j(this, "offlineQueue", []);
2358
- j(this, "listeners", /* @__PURE__ */ new Set());
2359
- j(this, "initialized", !1);
2357
+ z(this, "toastInstance");
2358
+ z(this, "status", navigator.onLine ? "online" : "offline");
2359
+ z(this, "offlineQueue", []);
2360
+ z(this, "listeners", /* @__PURE__ */ new Set());
2361
+ z(this, "initialized", !1);
2360
2362
  this.toastInstance = e, this.init();
2361
2363
  }
2362
2364
  init() {
@@ -2416,15 +2418,15 @@ class Yo {
2416
2418
  }
2417
2419
  class uc {
2418
2420
  constructor(e) {
2419
- j(this, "axiosInstance");
2420
- j(this, "errorInstance");
2421
- j(this, "networkInstance");
2422
- j(this, "cancelInstance");
2423
- j(this, "tokenInstance");
2424
- j(this, "loadingInstance");
2425
- j(this, "requestOptions", {});
2426
- j(this, "requestInstanceRequestOptions", {});
2427
- j(this, "defaultRequestOptions", {
2421
+ z(this, "axiosInstance");
2422
+ z(this, "errorInstance");
2423
+ z(this, "networkInstance");
2424
+ z(this, "cancelInstance");
2425
+ z(this, "tokenInstance");
2426
+ z(this, "loadingInstance");
2427
+ z(this, "requestOptions", {});
2428
+ z(this, "requestInstanceRequestOptions", {});
2429
+ z(this, "defaultRequestOptions", {
2428
2430
  showLoading: !1,
2429
2431
  cancelRepeatRequest: !0,
2430
2432
  needToken: !0,
@@ -2435,14 +2437,14 @@ class uc {
2435
2437
  maxRetries: 0,
2436
2438
  retryDelay: 1e3
2437
2439
  });
2438
- j(this, "defaultConfig", {
2440
+ z(this, "defaultConfig", {
2439
2441
  timeout: 10 * 1e3,
2440
2442
  headers: {
2441
2443
  "Content-Type": "application/json;charset=utf-8"
2442
2444
  }
2443
2445
  });
2444
- const { config: n = {}, requestOptions: r = {}, toastInstance: s, loadingInstance: o } = e;
2445
- this.errorInstance = new $o(s), this.networkInstance = new Yo(s), this.cancelInstance = new zo(), this.tokenInstance = new jo(), o && (this.loadingInstance = o), this.requestOptions = { ...this.defaultRequestOptions, ...r }, this.axiosInstance = $.create({
2446
+ const { config: n = {}, requestOptions: r = {}, toastInstance: s, loadingInstance: o, tokenKeys: c } = e;
2447
+ this.errorInstance = new $o(s), this.networkInstance = new Yo(s), this.cancelInstance = new zo(), this.tokenInstance = new jo(c), o && (this.loadingInstance = o), this.requestOptions = { ...this.defaultRequestOptions, ...r }, this.axiosInstance = $.create({
2446
2448
  ...this.defaultConfig,
2447
2449
  ...n
2448
2450
  }), this.setupInterceptors(), this.setupNetworkListener();
@@ -2472,7 +2474,7 @@ class uc {
2472
2474
  this.networkInstance.addToOfflineQueue(m);
2473
2475
  });
2474
2476
  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}?${bn(e.params)}`;
2477
+ let w = `${e.url}?${wn(e.params)}`;
2476
2478
  e.params = { _t: (/* @__PURE__ */ new Date()).getTime() }, e.url = w.slice(0, -1);
2477
2479
  }
2478
2480
  return this.tokenInstance.isTokenExpiringSoon() && h && this.refreshTokenInBackend(l, v), e;
@@ -2497,7 +2499,7 @@ class uc {
2497
2499
  return e.data;
2498
2500
  },
2499
2501
  async (e) => {
2500
- var w, F, m, T;
2502
+ var w, F, m, E;
2501
2503
  const n = e.config;
2502
2504
  if (!n)
2503
2505
  return (w = this.loadingInstance) == null || w.forceHide(), Promise.reject(e);
@@ -2525,7 +2527,7 @@ class uc {
2525
2527
  } catch (b) {
2526
2528
  return Promise.reject(b);
2527
2529
  }
2528
- return e.response && c ? this.errorInstance.handleStatusError(e.response.status, ((T = e.response.data) == null ? void 0 : T.message) || e.message, o) : e.request ? this.errorInstance.handleNetworkError(e, o) : (this.errorInstance.handleStatusError(909090, e.message, o), console.error("[Request Error]:", e)), Promise.reject(e);
2530
+ return e.response && c ? this.errorInstance.handleStatusError(e.response.status, ((E = e.response.data) == null ? void 0 : E.message) || e.message, o) : e.request ? this.errorInstance.handleNetworkError(e, o) : (this.errorInstance.handleStatusError(909090, e.message, o), console.error("[Request Error]:", e)), Promise.reject(e);
2529
2531
  }
2530
2532
  );
2531
2533
  }
@@ -2670,12 +2672,39 @@ class uc {
2670
2672
  this.networkInstance.clearOfflineQueue();
2671
2673
  }
2672
2674
  }
2675
+ class fc {
2676
+ constructor(e, n) {
2677
+ z(this, "controllerUrl");
2678
+ z(this, "controllerType");
2679
+ z(this, "requestInstance");
2680
+ z(this, "detail", (e) => this.requestInstance.get({
2681
+ url: `${this.controllerUrl}/select${this.controllerType}VoById/${e}`
2682
+ }));
2683
+ z(this, "list", (e = {}) => this.requestInstance.get({
2684
+ url: `${this.controllerUrl}/select${this.controllerType}VoList`,
2685
+ params: e
2686
+ }));
2687
+ z(this, "submitData", (e, n) => e === "add" ? this.add(n) : this.edit(n));
2688
+ z(this, "add", (e) => this.requestInstance.post({
2689
+ url: this.controllerUrl,
2690
+ data: e
2691
+ }));
2692
+ z(this, "edit", (e) => this.requestInstance.put({
2693
+ url: this.controllerUrl,
2694
+ data: e
2695
+ }));
2696
+ z(this, "del", (e) => this.requestInstance.delete({
2697
+ url: `${this.controllerUrl}/${e}`
2698
+ }));
2699
+ this.controllerUrl = e, this.controllerType = xn(this.controllerUrl.split("/").pop()), this.requestInstance = n;
2700
+ }
2701
+ }
2673
2702
  let yt = null;
2674
- function fc(t) {
2703
+ function lc(t) {
2675
2704
  const { cacheKey: e, cacheMode: n = "session", saveState: r = !0, handler: s } = t;
2676
2705
  return r && yt || (yt = n === "local" ? dn.get(e) : ct.get(e), yt && typeof s == "function" && (yt = s(yt))), yt;
2677
2706
  }
2678
- var $n = function() {
2707
+ var Yn = function() {
2679
2708
  if (typeof Map < "u")
2680
2709
  return Map;
2681
2710
  function t(e, n) {
@@ -2721,27 +2750,27 @@ var $n = function() {
2721
2750
  }, e;
2722
2751
  }()
2723
2752
  );
2724
- }(), Ee = typeof window < "u" && typeof document < "u" && window.document === document, Kt = function() {
2753
+ }(), Te = typeof window < "u" && typeof document < "u" && window.document === document, Vt = function() {
2725
2754
  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
- }(), Vo = function() {
2727
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Kt) : function(t) {
2755
+ }(), Ko = function() {
2756
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Vt) : function(t) {
2728
2757
  return setTimeout(function() {
2729
2758
  return t(Date.now());
2730
2759
  }, 1e3 / 60);
2731
2760
  };
2732
- }(), Ko = 2;
2761
+ }(), Vo = 2;
2733
2762
  function Jo(t, e) {
2734
2763
  var n = !1, r = !1, s = 0;
2735
2764
  function o() {
2736
2765
  n && (n = !1, t()), r && f();
2737
2766
  }
2738
2767
  function c() {
2739
- Vo(o);
2768
+ Ko(o);
2740
2769
  }
2741
2770
  function f() {
2742
2771
  var d = Date.now();
2743
2772
  if (n) {
2744
- if (d - s < Ko)
2773
+ if (d - s < Vo)
2745
2774
  return;
2746
2775
  r = !0;
2747
2776
  } else
@@ -2772,14 +2801,14 @@ var Wo = 20, Zo = ["top", "right", "bottom", "left", "width", "height", "size",
2772
2801
  return n.broadcastActive();
2773
2802
  }), e.length > 0;
2774
2803
  }, t.prototype.connect_ = function() {
2775
- !Ee || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Go ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
2804
+ !Te || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Go ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
2776
2805
  attributes: !0,
2777
2806
  childList: !0,
2778
2807
  characterData: !0,
2779
2808
  subtree: !0
2780
2809
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
2781
2810
  }, t.prototype.disconnect_ = function() {
2782
- !Ee || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
2811
+ !Te || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
2783
2812
  }, t.prototype.onTransitionEnd_ = function(e) {
2784
2813
  var n = e.propertyName, r = n === void 0 ? "" : n, s = Zo.some(function(o) {
2785
2814
  return !!~r.indexOf(o);
@@ -2789,7 +2818,7 @@ var Wo = 20, Zo = ["top", "right", "bottom", "left", "width", "height", "size",
2789
2818
  return this.instance_ || (this.instance_ = new t()), this.instance_;
2790
2819
  }, t.instance_ = null, t;
2791
2820
  }()
2792
- ), Yn = function(t, e) {
2821
+ ), Kn = function(t, e) {
2793
2822
  for (var n = 0, r = Object.keys(e); n < r.length; n++) {
2794
2823
  var s = r[n];
2795
2824
  Object.defineProperty(t, s, {
@@ -2802,7 +2831,7 @@ var Wo = 20, Zo = ["top", "right", "bottom", "left", "width", "height", "size",
2802
2831
  return t;
2803
2832
  }, St = function(t) {
2804
2833
  var e = t && t.ownerDocument && t.ownerDocument.defaultView;
2805
- return e || Kt;
2834
+ return e || Vt;
2806
2835
  }, Vn = te(0, 0, 0, 0);
2807
2836
  function Jt(t) {
2808
2837
  return parseFloat(t) || 0;
@@ -2848,11 +2877,11 @@ function ra(t) {
2848
2877
  return t === St(t).document.documentElement;
2849
2878
  }
2850
2879
  function sa(t) {
2851
- return Ee ? na(t) ? ta(t) : ea(t) : Vn;
2880
+ return Te ? na(t) ? ta(t) : ea(t) : Vn;
2852
2881
  }
2853
2882
  function ia(t) {
2854
2883
  var e = t.x, n = t.y, r = t.width, s = t.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, c = Object.create(o.prototype);
2855
- return Yn(c, {
2884
+ return Kn(c, {
2856
2885
  x: e,
2857
2886
  y: n,
2858
2887
  width: r,
@@ -2885,7 +2914,7 @@ var oa = (
2885
2914
  /* @__PURE__ */ function() {
2886
2915
  function t(e, n) {
2887
2916
  var r = ia(n);
2888
- Yn(this, { target: e, contentRect: r });
2917
+ Kn(this, { target: e, contentRect: r });
2889
2918
  }
2890
2919
  return t;
2891
2920
  }()
@@ -2893,7 +2922,7 @@ var oa = (
2893
2922
  /** @class */
2894
2923
  function() {
2895
2924
  function t(e, n, r) {
2896
- if (this.activeObservations_ = [], this.observations_ = new $n(), typeof e != "function")
2925
+ if (this.activeObservations_ = [], this.observations_ = new Yn(), typeof e != "function")
2897
2926
  throw new TypeError("The callback provided as parameter 1 is not a function.");
2898
2927
  this.callback_ = e, this.controller_ = n, this.callbackCtx_ = r;
2899
2928
  }
@@ -2935,7 +2964,7 @@ var oa = (
2935
2964
  return this.activeObservations_.length > 0;
2936
2965
  }, t;
2937
2966
  }()
2938
- ), Kn = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new $n(), Jn = (
2967
+ ), Jn = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Yn(), Wn = (
2939
2968
  /** @class */
2940
2969
  /* @__PURE__ */ function() {
2941
2970
  function t(e) {
@@ -2944,7 +2973,7 @@ var oa = (
2944
2973
  if (!arguments.length)
2945
2974
  throw new TypeError("1 argument required, but only 0 present.");
2946
2975
  var n = Xo.getInstance(), r = new ca(e, n, this);
2947
- Kn.set(this, r);
2976
+ Jn.set(this, r);
2948
2977
  }
2949
2978
  return t;
2950
2979
  }()
@@ -2954,13 +2983,13 @@ var oa = (
2954
2983
  "unobserve",
2955
2984
  "disconnect"
2956
2985
  ].forEach(function(t) {
2957
- Jn.prototype[t] = function() {
2986
+ Wn.prototype[t] = function() {
2958
2987
  var e;
2959
- return (e = Kn.get(this))[t].apply(e, arguments);
2988
+ return (e = Jn.get(this))[t].apply(e, arguments);
2960
2989
  };
2961
2990
  });
2962
2991
  var ua = function() {
2963
- return typeof Kt.ResizeObserver < "u" ? Kt.ResizeObserver : Jn;
2992
+ return typeof Vt.ResizeObserver < "u" ? Vt.ResizeObserver : Wn;
2964
2993
  }();
2965
2994
  function fa(t) {
2966
2995
  for (const e of t) {
@@ -2968,10 +2997,10 @@ function fa(t) {
2968
2997
  n.length && n.forEach((r) => r());
2969
2998
  }
2970
2999
  }
2971
- function lc(t, e) {
3000
+ function hc(t, e) {
2972
3001
  typeof window > "u" || (t.__resizeListeners__ || (t.__resizeListeners__ = [], t.__ro__ = new ua(fa), t.__ro__.observe(t)), t.__resizeListeners__.push(e));
2973
3002
  }
2974
- function hc(t, e) {
3003
+ function dc(t, e) {
2975
3004
  !t || !t.__resizeListeners__ || (t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e), 1), t.__resizeListeners__.length || t.__ro__.disconnect());
2976
3005
  }
2977
3006
  var $t = { exports: {} }, la = $t.exports, tn;
@@ -2985,26 +3014,26 @@ function ee() {
2985
3014
  function c() {
2986
3015
  return new o(null);
2987
3016
  }
2988
- function f(i, a, u, p, E, R) {
3017
+ function f(i, a, u, p, T, R) {
2989
3018
  for (; --R >= 0; ) {
2990
- var _ = a * this[i++] + u[p] + E;
2991
- E = Math.floor(_ / 67108864), u[p++] = _ & 67108863;
3019
+ var A = a * this[i++] + u[p] + T;
3020
+ T = Math.floor(A / 67108864), u[p++] = A & 67108863;
2992
3021
  }
2993
- return E;
3022
+ return T;
2994
3023
  }
2995
- function d(i, a, u, p, E, R) {
2996
- for (var _ = a & 32767, B = a >> 15; --R >= 0; ) {
2997
- var z = this[i] & 32767, K = this[i++] >> 15, st = B * z + K * _;
2998
- z = _ * z + ((st & 32767) << 15) + u[p] + (E & 1073741823), E = (z >>> 30) + (st >>> 15) + B * K + (E >>> 30), u[p++] = z & 1073741823;
3024
+ function d(i, a, u, p, T, R) {
3025
+ for (var A = a & 32767, B = a >> 15; --R >= 0; ) {
3026
+ var j = this[i] & 32767, V = this[i++] >> 15, st = B * j + V * A;
3027
+ j = A * j + ((st & 32767) << 15) + u[p] + (T & 1073741823), T = (j >>> 30) + (st >>> 15) + B * V + (T >>> 30), u[p++] = j & 1073741823;
2999
3028
  }
3000
- return E;
3029
+ return T;
3001
3030
  }
3002
- function h(i, a, u, p, E, R) {
3003
- for (var _ = a & 16383, B = a >> 14; --R >= 0; ) {
3004
- var z = this[i] & 16383, K = this[i++] >> 14, st = B * z + K * _;
3005
- z = _ * z + ((st & 16383) << 14) + u[p] + E, E = (z >> 28) + (st >> 14) + B * K, u[p++] = z & 268435455;
3031
+ function h(i, a, u, p, T, R) {
3032
+ for (var A = a & 16383, B = a >> 14; --R >= 0; ) {
3033
+ var j = this[i] & 16383, V = this[i++] >> 14, st = B * j + V * A;
3034
+ j = A * j + ((st & 16383) << 14) + u[p] + T, T = (j >> 28) + (st >> 14) + B * V, u[p++] = j & 268435455;
3006
3035
  }
3007
- return E;
3036
+ return T;
3008
3037
  }
3009
3038
  var l = typeof navigator < "u";
3010
3039
  l && s && navigator.appName == "Microsoft Internet Explorer" ? (o.prototype.am = d, n = 30) : l && s && navigator.appName != "Netscape" ? (o.prototype.am = f, n = 26) : (o.prototype.am = h, n = 28), o.prototype.DB = n, o.prototype.DM = (1 << n) - 1, o.prototype.DV = 1 << n;
@@ -3017,7 +3046,7 @@ function ee() {
3017
3046
  function m(i) {
3018
3047
  return O.charAt(i);
3019
3048
  }
3020
- function T(i, a) {
3049
+ function E(i, a) {
3021
3050
  var u = I[i.charCodeAt(a)];
3022
3051
  return u ?? -1;
3023
3052
  }
@@ -3045,17 +3074,17 @@ function ee() {
3045
3074
  return;
3046
3075
  }
3047
3076
  this.t = 0, this.s = 0;
3048
- for (var p = i.length, E = !1, R = 0; --p >= 0; ) {
3049
- var _ = u == 8 ? i[p] & 255 : T(i, p);
3050
- if (_ < 0) {
3051
- i.charAt(p) == "-" && (E = !0);
3077
+ for (var p = i.length, T = !1, R = 0; --p >= 0; ) {
3078
+ var A = u == 8 ? i[p] & 255 : E(i, p);
3079
+ if (A < 0) {
3080
+ i.charAt(p) == "-" && (T = !0);
3052
3081
  continue;
3053
3082
  }
3054
- E = !1, R == 0 ? this[this.t++] = _ : R + u > this.DB ? (this[this.t - 1] |= (_ & (1 << this.DB - R) - 1) << R, this[this.t++] = _ >> this.DB - R) : this[this.t - 1] |= _ << R, R += u, R >= this.DB && (R -= this.DB);
3083
+ T = !1, R == 0 ? this[this.t++] = A : R + u > this.DB ? (this[this.t - 1] |= (A & (1 << this.DB - R) - 1) << R, this[this.t++] = A >> this.DB - R) : this[this.t - 1] |= A << R, R += u, R >= this.DB && (R -= this.DB);
3055
3084
  }
3056
- u == 8 && (i[0] & 128) != 0 && (this.s = -1, R > 0 && (this[this.t - 1] |= (1 << this.DB - R) - 1 << R)), this.clamp(), E && o.ZERO.subTo(this, this);
3085
+ u == 8 && (i[0] & 128) != 0 && (this.s = -1, R > 0 && (this[this.t - 1] |= (1 << this.DB - R) - 1 << R)), this.clamp(), T && o.ZERO.subTo(this, this);
3057
3086
  }
3058
- function A() {
3087
+ function _() {
3059
3088
  for (var i = this.s & this.DM; this.t > 0 && this[this.t - 1] == i; ) --this.t;
3060
3089
  }
3061
3090
  function C(i) {
@@ -3067,20 +3096,20 @@ function ee() {
3067
3096
  else if (i == 32) a = 5;
3068
3097
  else if (i == 4) a = 2;
3069
3098
  else return this.toRadix(i);
3070
- var u = (1 << a) - 1, p, E = !1, R = "", _ = this.t, B = this.DB - _ * this.DB % a;
3071
- if (_-- > 0)
3072
- for (B < this.DB && (p = this[_] >> B) > 0 && (E = !0, R = m(p)); _ >= 0; )
3073
- 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
- return E ? R : "0";
3099
+ var u = (1 << a) - 1, p, T = !1, R = "", A = this.t, B = this.DB - A * this.DB % a;
3100
+ if (A-- > 0)
3101
+ for (B < this.DB && (p = this[A] >> B) > 0 && (T = !0, R = m(p)); A >= 0; )
3102
+ B < a ? (p = (this[A] & (1 << B) - 1) << a - B, p |= this[--A] >> (B += this.DB - a)) : (p = this[A] >> (B -= a) & u, B <= 0 && (B += this.DB, --A)), p > 0 && (T = !0), T && (R += m(p));
3103
+ return T ? R : "0";
3075
3104
  }
3076
- function q() {
3105
+ function P() {
3077
3106
  var i = c();
3078
3107
  return o.ZERO.subTo(this, i), i;
3079
3108
  }
3080
- function N() {
3109
+ function M() {
3081
3110
  return this.s < 0 ? this.negate() : this;
3082
3111
  }
3083
- function U(i) {
3112
+ function H(i) {
3084
3113
  var a = this.s - i.s;
3085
3114
  if (a != 0) return a;
3086
3115
  var u = this.t;
@@ -3088,12 +3117,12 @@ function ee() {
3088
3117
  for (; --u >= 0; ) if ((a = this[u] - i[u]) != 0) return a;
3089
3118
  return 0;
3090
3119
  }
3091
- function P(i) {
3120
+ function q(i) {
3092
3121
  var a = 1, u;
3093
3122
  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
3123
  }
3095
3124
  function k() {
3096
- return this.t <= 0 ? 0 : this.DB * (this.t - 1) + P(this[this.t - 1] ^ this.s & this.DM);
3125
+ return this.t <= 0 ? 0 : this.DB * (this.t - 1) + q(this[this.t - 1] ^ this.s & this.DM);
3097
3126
  }
3098
3127
  function L(i, a) {
3099
3128
  var u;
@@ -3101,16 +3130,16 @@ function ee() {
3101
3130
  for (u = i - 1; u >= 0; --u) a[u] = 0;
3102
3131
  a.t = this.t + i, a.s = this.s;
3103
3132
  }
3104
- function H(i, a) {
3133
+ function U(i, a) {
3105
3134
  for (var u = i; u < this.t; ++u) a[u - i] = this[u];
3106
3135
  a.t = Math.max(this.t - i, 0), a.s = this.s;
3107
3136
  }
3108
3137
  function J(i, a) {
3109
- var u = i % this.DB, p = this.DB - u, E = (1 << p) - 1, R = Math.floor(i / this.DB), _ = this.s << u & this.DM, B;
3138
+ var u = i % this.DB, p = this.DB - u, T = (1 << p) - 1, R = Math.floor(i / this.DB), A = this.s << u & this.DM, B;
3110
3139
  for (B = this.t - 1; B >= 0; --B)
3111
- a[B + R + 1] = this[B] >> p | _, _ = (this[B] & E) << u;
3140
+ a[B + R + 1] = this[B] >> p | A, A = (this[B] & T) << u;
3112
3141
  for (B = R - 1; B >= 0; --B) a[B] = 0;
3113
- a[R] = _, a.t = this.t + R + 1, a.s = this.s, a.clamp();
3142
+ a[R] = A, a.t = this.t + R + 1, a.s = this.s, a.clamp();
3114
3143
  }
3115
3144
  function Y(i, a) {
3116
3145
  a.s = this.s;
@@ -3119,14 +3148,14 @@ function ee() {
3119
3148
  a.t = 0;
3120
3149
  return;
3121
3150
  }
3122
- var p = i % this.DB, E = this.DB - p, R = (1 << p) - 1;
3151
+ var p = i % this.DB, T = this.DB - p, R = (1 << p) - 1;
3123
3152
  a[0] = this[u] >> p;
3124
- for (var _ = u + 1; _ < this.t; ++_)
3125
- a[_ - u - 1] |= (this[_] & R) << E, a[_ - u] = this[_] >> p;
3126
- p > 0 && (a[this.t - u - 1] |= (this.s & R) << E), a.t = this.t - u, a.clamp();
3153
+ for (var A = u + 1; A < this.t; ++A)
3154
+ a[A - u - 1] |= (this[A] & R) << T, a[A - u] = this[A] >> p;
3155
+ p > 0 && (a[this.t - u - 1] |= (this.s & R) << T), a.t = this.t - u, a.clamp();
3127
3156
  }
3128
3157
  function X(i, a) {
3129
- for (var u = 0, p = 0, E = Math.min(i.t, this.t); u < E; )
3158
+ for (var u = 0, p = 0, T = Math.min(i.t, this.t); u < T; )
3130
3159
  p += this[u] - i[u], a[u++] = p & this.DM, p >>= this.DB;
3131
3160
  if (i.t < this.t) {
3132
3161
  for (p -= i.s; u < this.t; )
@@ -3140,9 +3169,9 @@ function ee() {
3140
3169
  a.s = p < 0 ? -1 : 0, p < -1 ? a[u++] = this.DV + p : p > 0 && (a[u++] = p), a.t = u, a.clamp();
3141
3170
  }
3142
3171
  function Z(i, a) {
3143
- var u = this.abs(), p = i.abs(), E = u.t;
3144
- for (a.t = E + p.t; --E >= 0; ) a[E] = 0;
3145
- for (E = 0; E < p.t; ++E) a[E + u.t] = u.am(0, p[E], a, E, 0, u.t);
3172
+ var u = this.abs(), p = i.abs(), T = u.t;
3173
+ for (a.t = T + p.t; --T >= 0; ) a[T] = 0;
3174
+ for (T = 0; T < p.t; ++T) a[T + u.t] = u.am(0, p[T], a, T, 0, u.t);
3146
3175
  a.s = 0, a.clamp(), this.s != i.s && o.ZERO.subTo(a, a);
3147
3176
  }
3148
3177
  function pt(i) {
@@ -3156,24 +3185,24 @@ function ee() {
3156
3185
  function vt(i, a, u) {
3157
3186
  var p = i.abs();
3158
3187
  if (!(p.t <= 0)) {
3159
- var E = this.abs();
3160
- if (E.t < p.t) {
3188
+ var T = this.abs();
3189
+ if (T.t < p.t) {
3161
3190
  a != null && a.fromInt(0), u != null && this.copyTo(u);
3162
3191
  return;
3163
3192
  }
3164
3193
  u == null && (u = c());
3165
- var R = c(), _ = this.s, B = i.s, z = this.DB - P(p[p.t - 1]);
3166
- z > 0 ? (p.lShiftTo(z, R), E.lShiftTo(z, u)) : (p.copyTo(R), E.copyTo(u));
3167
- var K = R.t, st = R[K - 1];
3194
+ var R = c(), A = this.s, B = i.s, j = this.DB - q(p[p.t - 1]);
3195
+ j > 0 ? (p.lShiftTo(j, R), T.lShiftTo(j, u)) : (p.copyTo(R), T.copyTo(u));
3196
+ var V = R.t, st = R[V - 1];
3168
3197
  if (st != 0) {
3169
- 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();
3170
- for (R.dlShiftTo(kt, ht), u.compareTo(ht) >= 0 && (u[u.t++] = 1, u.subTo(ht, u)), o.ONE.dlShiftTo(K, ht), ht.subTo(R, R); R.t < K; ) R[R.t++] = 0;
3198
+ var rt = st * (1 << this.F1) + (V > 1 ? R[V - 2] >> this.F2 : 0), lt = this.FV / rt, Mt = (1 << this.F1) / rt, ot = 1 << this.F2, at = u.t, kt = at - V, ht = a ?? c();
3199
+ for (R.dlShiftTo(kt, ht), u.compareTo(ht) >= 0 && (u[u.t++] = 1, u.subTo(ht, u)), o.ONE.dlShiftTo(V, ht), ht.subTo(R, R); R.t < V; ) R[R.t++] = 0;
3171
3200
  for (; --kt >= 0; ) {
3172
- var ie = u[--at] == st ? this.DM : Math.floor(u[at] * lt + (u[at - 1] + ot) * Nt);
3173
- if ((u[at] += R.am(0, ie, u, kt, 0, K)) < ie)
3201
+ var ie = u[--at] == st ? this.DM : Math.floor(u[at] * lt + (u[at - 1] + ot) * Mt);
3202
+ if ((u[at] += R.am(0, ie, u, kt, 0, V)) < ie)
3174
3203
  for (R.dlShiftTo(kt, ht), u.subTo(ht, u); u[at] < --ie; ) u.subTo(ht, u);
3175
3204
  }
3176
- a != null && (u.drShiftTo(K, a), _ != B && o.ZERO.subTo(a, a)), u.t = K, u.clamp(), z > 0 && u.rShiftTo(z, u), _ < 0 && o.ZERO.subTo(u, u);
3205
+ a != null && (u.drShiftTo(V, a), A != B && o.ZERO.subTo(a, a)), u.t = V, u.clamp(), j > 0 && u.rShiftTo(j, u), A < 0 && o.ZERO.subTo(u, u);
3177
3206
  }
3178
3207
  }
3179
3208
  }
@@ -3187,20 +3216,20 @@ function ee() {
3187
3216
  function Ft(i) {
3188
3217
  return i.s < 0 || i.compareTo(this.m) >= 0 ? i.mod(this.m) : i;
3189
3218
  }
3190
- function Tt(i) {
3219
+ function Et(i) {
3191
3220
  return i;
3192
3221
  }
3193
- function qt(i) {
3222
+ function Pt(i) {
3194
3223
  i.divRemTo(this.m, null, i);
3195
3224
  }
3196
- function Qn(i, a, u) {
3225
+ function tr(i, a, u) {
3197
3226
  i.multiplyTo(a, u), this.reduce(u);
3198
3227
  }
3199
- function tr(i, a) {
3228
+ function er(i, a) {
3200
3229
  i.squareTo(a), this.reduce(a);
3201
3230
  }
3202
- D.prototype.convert = Ft, D.prototype.revert = Tt, D.prototype.reduce = qt, D.prototype.mulTo = Qn, D.prototype.sqrTo = tr;
3203
- function er() {
3231
+ D.prototype.convert = Ft, D.prototype.revert = Et, D.prototype.reduce = Pt, D.prototype.mulTo = tr, D.prototype.sqrTo = er;
3232
+ function nr() {
3204
3233
  if (this.t < 1) return 0;
3205
3234
  var i = this[0];
3206
3235
  if ((i & 1) == 0) return 0;
@@ -3210,15 +3239,15 @@ function ee() {
3210
3239
  function mt(i) {
3211
3240
  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
3241
  }
3213
- function nr(i) {
3242
+ function rr(i) {
3214
3243
  var a = c();
3215
3244
  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
3245
  }
3217
- function rr(i) {
3246
+ function sr(i) {
3218
3247
  var a = c();
3219
3248
  return i.copyTo(a), this.reduce(a), a;
3220
3249
  }
3221
- function sr(i) {
3250
+ function ir(i) {
3222
3251
  for (; i.t <= this.mt2; )
3223
3252
  i[i.t++] = 0;
3224
3253
  for (var a = 0; a < this.m.t; ++a) {
@@ -3228,37 +3257,37 @@ function ee() {
3228
3257
  }
3229
3258
  i.clamp(), i.drShiftTo(this.m.t, i), i.compareTo(this.m) >= 0 && i.subTo(this.m, i);
3230
3259
  }
3231
- function ir(i, a) {
3260
+ function or(i, a) {
3232
3261
  i.squareTo(a), this.reduce(a);
3233
3262
  }
3234
- function or(i, a, u) {
3263
+ function ar(i, a, u) {
3235
3264
  i.multiplyTo(a, u), this.reduce(u);
3236
3265
  }
3237
- mt.prototype.convert = nr, mt.prototype.revert = rr, mt.prototype.reduce = sr, mt.prototype.mulTo = or, mt.prototype.sqrTo = ir;
3238
- function ar() {
3266
+ mt.prototype.convert = rr, mt.prototype.revert = sr, mt.prototype.reduce = ir, mt.prototype.mulTo = ar, mt.prototype.sqrTo = or;
3267
+ function cr() {
3239
3268
  return (this.t > 0 ? this[0] & 1 : this.s) == 0;
3240
3269
  }
3241
- function cr(i, a) {
3270
+ function ur(i, a) {
3242
3271
  if (i > 4294967295 || i < 1) return o.ONE;
3243
- var u = c(), p = c(), E = a.convert(this), R = P(i) - 1;
3244
- for (E.copyTo(u); --R >= 0; )
3245
- if (a.sqrTo(u, p), (i & 1 << R) > 0) a.mulTo(p, E, u);
3272
+ var u = c(), p = c(), T = a.convert(this), R = q(i) - 1;
3273
+ for (T.copyTo(u); --R >= 0; )
3274
+ if (a.sqrTo(u, p), (i & 1 << R) > 0) a.mulTo(p, T, u);
3246
3275
  else {
3247
- var _ = u;
3248
- u = p, p = _;
3276
+ var A = u;
3277
+ u = p, p = A;
3249
3278
  }
3250
3279
  return a.revert(u);
3251
3280
  }
3252
- function ur(i, a) {
3281
+ function fr(i, a) {
3253
3282
  var u;
3254
3283
  return i < 256 || a.isEven() ? u = new D(a) : u = new mt(a), this.exp(i, u);
3255
3284
  }
3256
- o.prototype.copyTo = b, o.prototype.fromInt = g, o.prototype.fromString = x, o.prototype.clamp = A, o.prototype.dlShiftTo = L, o.prototype.drShiftTo = H, o.prototype.lShiftTo = J, o.prototype.rShiftTo = Y, o.prototype.subTo = X, o.prototype.multiplyTo = Z, o.prototype.squareTo = pt, o.prototype.divRemTo = vt, o.prototype.invDigit = er, o.prototype.isEven = ar, o.prototype.exp = cr, o.prototype.toString = C, o.prototype.negate = q, o.prototype.abs = N, o.prototype.compareTo = U, o.prototype.bitLength = k, o.prototype.mod = et, o.prototype.modPowInt = ur, o.ZERO = S(0), o.ONE = S(1);
3257
- function fr() {
3285
+ o.prototype.copyTo = b, o.prototype.fromInt = g, o.prototype.fromString = x, o.prototype.clamp = _, o.prototype.dlShiftTo = L, o.prototype.drShiftTo = U, o.prototype.lShiftTo = J, o.prototype.rShiftTo = Y, 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 = M, o.prototype.compareTo = H, o.prototype.bitLength = k, o.prototype.mod = et, o.prototype.modPowInt = fr, o.ZERO = S(0), o.ONE = S(1);
3286
+ function lr() {
3258
3287
  var i = c();
3259
3288
  return this.copyTo(i), i;
3260
3289
  }
3261
- function lr() {
3290
+ function hr() {
3262
3291
  if (this.s < 0) {
3263
3292
  if (this.t == 1) return this[0] - this.DV;
3264
3293
  if (this.t == 0) return -1;
@@ -3268,98 +3297,98 @@ function ee() {
3268
3297
  }
3269
3298
  return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0];
3270
3299
  }
3271
- function hr() {
3300
+ function dr() {
3272
3301
  return this.t == 0 ? this.s : this[0] << 24 >> 24;
3273
3302
  }
3274
- function dr() {
3303
+ function pr() {
3275
3304
  return this.t == 0 ? this.s : this[0] << 16 >> 16;
3276
3305
  }
3277
- function pr(i) {
3306
+ function mr(i) {
3278
3307
  return Math.floor(Math.LN2 * this.DB / Math.log(i));
3279
3308
  }
3280
- function mr() {
3309
+ function gr() {
3281
3310
  return this.s < 0 ? -1 : this.t <= 0 || this.t == 1 && this[0] <= 0 ? 0 : 1;
3282
3311
  }
3283
- function gr(i) {
3312
+ function yr(i) {
3284
3313
  if (i == null && (i = 10), this.signum() == 0 || i < 2 || i > 36) return "0";
3285
- var a = this.chunkSize(i), u = Math.pow(i, a), p = S(u), E = c(), R = c(), _ = "";
3286
- for (this.divRemTo(p, E, R); E.signum() > 0; )
3287
- _ = (u + R.intValue()).toString(i).substr(1) + _, E.divRemTo(p, E, R);
3288
- return R.intValue().toString(i) + _;
3314
+ var a = this.chunkSize(i), u = Math.pow(i, a), p = S(u), T = c(), R = c(), A = "";
3315
+ for (this.divRemTo(p, T, R); T.signum() > 0; )
3316
+ A = (u + R.intValue()).toString(i).substr(1) + A, T.divRemTo(p, T, R);
3317
+ return R.intValue().toString(i) + A;
3289
3318
  }
3290
- function yr(i, a) {
3319
+ function xr(i, a) {
3291
3320
  this.fromInt(0), a == null && (a = 10);
3292
- for (var u = this.chunkSize(a), p = Math.pow(a, u), E = !1, R = 0, _ = 0, B = 0; B < i.length; ++B) {
3293
- var z = T(i, B);
3294
- if (z < 0) {
3295
- i.charAt(B) == "-" && this.signum() == 0 && (E = !0);
3321
+ for (var u = this.chunkSize(a), p = Math.pow(a, u), T = !1, R = 0, A = 0, B = 0; B < i.length; ++B) {
3322
+ var j = E(i, B);
3323
+ if (j < 0) {
3324
+ i.charAt(B) == "-" && this.signum() == 0 && (T = !0);
3296
3325
  continue;
3297
3326
  }
3298
- _ = a * _ + z, ++R >= u && (this.dMultiply(p), this.dAddOffset(_, 0), R = 0, _ = 0);
3327
+ A = a * A + j, ++R >= u && (this.dMultiply(p), this.dAddOffset(A, 0), R = 0, A = 0);
3299
3328
  }
3300
- R > 0 && (this.dMultiply(Math.pow(a, R)), this.dAddOffset(_, 0)), E && o.ZERO.subTo(this, this);
3329
+ R > 0 && (this.dMultiply(Math.pow(a, R)), this.dAddOffset(A, 0)), T && o.ZERO.subTo(this, this);
3301
3330
  }
3302
- function xr(i, a, u) {
3331
+ function br(i, a, u) {
3303
3332
  if (typeof a == "number")
3304
3333
  if (i < 2) this.fromInt(1);
3305
3334
  else
3306
3335
  for (this.fromNumber(i, u), this.testBit(i - 1) || this.bitwiseTo(o.ONE.shiftLeft(i - 1), ne, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(a); )
3307
3336
  this.dAddOffset(2, 0), this.bitLength() > i && this.subTo(o.ONE.shiftLeft(i - 1), this);
3308
3337
  else {
3309
- var p = new Array(), E = i & 7;
3310
- p.length = (i >> 3) + 1, a.nextBytes(p), E > 0 ? p[0] &= (1 << E) - 1 : p[0] = 0, this.fromString(p, 256);
3338
+ var p = new Array(), T = i & 7;
3339
+ p.length = (i >> 3) + 1, a.nextBytes(p), T > 0 ? p[0] &= (1 << T) - 1 : p[0] = 0, this.fromString(p, 256);
3311
3340
  }
3312
3341
  }
3313
- function br() {
3342
+ function wr() {
3314
3343
  var i = this.t, a = new Array();
3315
3344
  a[0] = this.s;
3316
- var u = this.DB - i * this.DB % 8, p, E = 0;
3345
+ var u = this.DB - i * this.DB % 8, p, T = 0;
3317
3346
  if (i-- > 0)
3318
- for (u < this.DB && (p = this[i] >> u) != (this.s & this.DM) >> u && (a[E++] = p | this.s << this.DB - u); i >= 0; )
3319
- 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);
3347
+ for (u < this.DB && (p = this[i] >> u) != (this.s & this.DM) >> u && (a[T++] = p | this.s << this.DB - u); i >= 0; )
3348
+ 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), T == 0 && (this.s & 128) != (p & 128) && ++T, (T > 0 || p != this.s) && (a[T++] = p);
3320
3349
  return a;
3321
3350
  }
3322
- function wr(i) {
3351
+ function vr(i) {
3323
3352
  return this.compareTo(i) == 0;
3324
3353
  }
3325
- function vr(i) {
3354
+ function Er(i) {
3326
3355
  return this.compareTo(i) < 0 ? this : i;
3327
3356
  }
3328
3357
  function Tr(i) {
3329
3358
  return this.compareTo(i) > 0 ? this : i;
3330
3359
  }
3331
- function Er(i, a, u) {
3332
- var p, E, R = Math.min(i.t, this.t);
3360
+ function Sr(i, a, u) {
3361
+ var p, T, R = Math.min(i.t, this.t);
3333
3362
  for (p = 0; p < R; ++p) u[p] = a(this[p], i[p]);
3334
3363
  if (i.t < this.t) {
3335
- for (E = i.s & this.DM, p = R; p < this.t; ++p) u[p] = a(this[p], E);
3364
+ for (T = i.s & this.DM, p = R; p < this.t; ++p) u[p] = a(this[p], T);
3336
3365
  u.t = this.t;
3337
3366
  } else {
3338
- for (E = this.s & this.DM, p = R; p < i.t; ++p) u[p] = a(E, i[p]);
3367
+ for (T = this.s & this.DM, p = R; p < i.t; ++p) u[p] = a(T, i[p]);
3339
3368
  u.t = i.t;
3340
3369
  }
3341
3370
  u.s = a(this.s, i.s), u.clamp();
3342
3371
  }
3343
- function Sr(i, a) {
3372
+ function Rr(i, a) {
3344
3373
  return i & a;
3345
3374
  }
3346
- function Rr(i) {
3375
+ function Or(i) {
3347
3376
  var a = c();
3348
- return this.bitwiseTo(i, Sr, a), a;
3377
+ return this.bitwiseTo(i, Rr, a), a;
3349
3378
  }
3350
3379
  function ne(i, a) {
3351
3380
  return i | a;
3352
3381
  }
3353
- function Or(i) {
3382
+ function Fr(i) {
3354
3383
  var a = c();
3355
3384
  return this.bitwiseTo(i, ne, a), a;
3356
3385
  }
3357
- function _e(i, a) {
3386
+ function Ae(i, a) {
3358
3387
  return i ^ a;
3359
3388
  }
3360
- function Fr(i) {
3389
+ function _r(i) {
3361
3390
  var a = c();
3362
- return this.bitwiseTo(i, _e, a), a;
3391
+ return this.bitwiseTo(i, Ae, a), a;
3363
3392
  }
3364
3393
  function Ie(i, a) {
3365
3394
  return i & ~a;
@@ -3368,26 +3397,26 @@ function ee() {
3368
3397
  var a = c();
3369
3398
  return this.bitwiseTo(i, Ie, a), a;
3370
3399
  }
3371
- function _r() {
3400
+ function Ir() {
3372
3401
  for (var i = c(), a = 0; a < this.t; ++a) i[a] = this.DM & ~this[a];
3373
3402
  return i.t = this.t, i.s = ~this.s, i;
3374
3403
  }
3375
- function Ir(i) {
3404
+ function Br(i) {
3376
3405
  var a = c();
3377
3406
  return i < 0 ? this.rShiftTo(-i, a) : this.lShiftTo(i, a), a;
3378
3407
  }
3379
- function Br(i) {
3408
+ function Cr(i) {
3380
3409
  var a = c();
3381
3410
  return i < 0 ? this.lShiftTo(-i, a) : this.rShiftTo(i, a), a;
3382
3411
  }
3383
- function Cr(i) {
3412
+ function Dr(i) {
3384
3413
  if (i == 0) return -1;
3385
3414
  var a = 0;
3386
3415
  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
3416
  }
3388
- function Dr() {
3417
+ function qr() {
3389
3418
  for (var i = 0; i < this.t; ++i)
3390
- if (this[i] != 0) return i * this.DB + Cr(this[i]);
3419
+ if (this[i] != 0) return i * this.DB + Dr(this[i]);
3391
3420
  return this.s < 0 ? this.t * this.DB : -1;
3392
3421
  }
3393
3422
  function Pr(i) {
@@ -3395,7 +3424,7 @@ function ee() {
3395
3424
  i &= i - 1, ++a;
3396
3425
  return a;
3397
3426
  }
3398
- function qr() {
3427
+ function Nr() {
3399
3428
  for (var i = 0, a = this.s & this.DM, u = 0; u < this.t; ++u) i += Pr(this[u] ^ a);
3400
3429
  return i;
3401
3430
  }
@@ -3403,21 +3432,21 @@ function ee() {
3403
3432
  var a = Math.floor(i / this.DB);
3404
3433
  return a >= this.t ? this.s != 0 : (this[a] & 1 << i % this.DB) != 0;
3405
3434
  }
3406
- function Nr(i, a) {
3435
+ function kr(i, a) {
3407
3436
  var u = o.ONE.shiftLeft(i);
3408
3437
  return this.bitwiseTo(u, a, u), u;
3409
3438
  }
3410
- function kr(i) {
3439
+ function Lr(i) {
3411
3440
  return this.changeBit(i, ne);
3412
3441
  }
3413
- function Lr(i) {
3442
+ function Ur(i) {
3414
3443
  return this.changeBit(i, Ie);
3415
3444
  }
3416
3445
  function Hr(i) {
3417
- return this.changeBit(i, _e);
3446
+ return this.changeBit(i, Ae);
3418
3447
  }
3419
- function Ur(i, a) {
3420
- for (var u = 0, p = 0, E = Math.min(i.t, this.t); u < E; )
3448
+ function zr(i, a) {
3449
+ for (var u = 0, p = 0, T = Math.min(i.t, this.t); u < T; )
3421
3450
  p += this[u] + i[u], a[u++] = p & this.DM, p >>= this.DB;
3422
3451
  if (i.t < this.t) {
3423
3452
  for (p += i.s; u < this.t; )
@@ -3430,19 +3459,19 @@ function ee() {
3430
3459
  }
3431
3460
  a.s = p < 0 ? -1 : 0, p > 0 ? a[u++] = p : p < -1 && (a[u++] = this.DV + p), a.t = u, a.clamp();
3432
3461
  }
3433
- function zr(i) {
3462
+ function jr(i) {
3434
3463
  var a = c();
3435
3464
  return this.addTo(i, a), a;
3436
3465
  }
3437
- function jr(i) {
3466
+ function $r(i) {
3438
3467
  var a = c();
3439
3468
  return this.subTo(i, a), a;
3440
3469
  }
3441
- function $r(i) {
3470
+ function Yr(i) {
3442
3471
  var a = c();
3443
3472
  return this.multiplyTo(i, a), a;
3444
3473
  }
3445
- function Yr() {
3474
+ function Kr() {
3446
3475
  var i = c();
3447
3476
  return this.squareTo(i), i;
3448
3477
  }
@@ -3450,48 +3479,48 @@ function ee() {
3450
3479
  var a = c();
3451
3480
  return this.divRemTo(i, a, null), a;
3452
3481
  }
3453
- function Kr(i) {
3482
+ function Jr(i) {
3454
3483
  var a = c();
3455
3484
  return this.divRemTo(i, null, a), a;
3456
3485
  }
3457
- function Jr(i) {
3486
+ function Wr(i) {
3458
3487
  var a = c(), u = c();
3459
3488
  return this.divRemTo(i, a, u), new Array(a, u);
3460
3489
  }
3461
- function Wr(i) {
3490
+ function Zr(i) {
3462
3491
  this[this.t] = this.am(0, i - 1, this, 0, 0, this.t), ++this.t, this.clamp();
3463
3492
  }
3464
- function Zr(i, a) {
3493
+ function Gr(i, a) {
3465
3494
  if (i != 0) {
3466
3495
  for (; this.t <= a; ) this[this.t++] = 0;
3467
3496
  for (this[a] += i; this[a] >= this.DV; )
3468
3497
  this[a] -= this.DV, ++a >= this.t && (this[this.t++] = 0), ++this[a];
3469
3498
  }
3470
3499
  }
3471
- function At() {
3500
+ function _t() {
3472
3501
  }
3473
3502
  function Be(i) {
3474
3503
  return i;
3475
3504
  }
3476
- function Gr(i, a, u) {
3505
+ function Xr(i, a, u) {
3477
3506
  i.multiplyTo(a, u);
3478
3507
  }
3479
- function Xr(i, a) {
3508
+ function Qr(i, a) {
3480
3509
  i.squareTo(a);
3481
3510
  }
3482
- At.prototype.convert = Be, At.prototype.revert = Be, At.prototype.mulTo = Gr, At.prototype.sqrTo = Xr;
3483
- function Qr(i) {
3484
- return this.exp(i, new At());
3511
+ _t.prototype.convert = Be, _t.prototype.revert = Be, _t.prototype.mulTo = Xr, _t.prototype.sqrTo = Qr;
3512
+ function ts(i) {
3513
+ return this.exp(i, new _t());
3485
3514
  }
3486
- function ts(i, a, u) {
3515
+ function es(i, a, u) {
3487
3516
  var p = Math.min(this.t + i.t, a);
3488
3517
  for (u.s = 0, u.t = p; p > 0; ) u[--p] = 0;
3489
- var E;
3490
- for (E = u.t - this.t; p < E; ++p) u[p + this.t] = this.am(0, i[p], u, p, 0, this.t);
3491
- for (E = Math.min(i.t, a); p < E; ++p) this.am(0, i[p], u, p, 0, a - p);
3518
+ var T;
3519
+ for (T = u.t - this.t; p < T; ++p) u[p + this.t] = this.am(0, i[p], u, p, 0, this.t);
3520
+ for (T = Math.min(i.t, a); p < T; ++p) this.am(0, i[p], u, p, 0, a - p);
3492
3521
  u.clamp();
3493
3522
  }
3494
- function es(i, a, u) {
3523
+ function ns(i, a, u) {
3495
3524
  --a;
3496
3525
  var p = u.t = this.t + i.t - a;
3497
3526
  for (u.s = 0; --p >= 0; ) u[p] = 0;
@@ -3502,65 +3531,65 @@ function ee() {
3502
3531
  function gt(i) {
3503
3532
  this.r2 = c(), this.q3 = c(), o.ONE.dlShiftTo(2 * i.t, this.r2), this.mu = this.r2.divide(i), this.m = i;
3504
3533
  }
3505
- function ns(i) {
3534
+ function rs(i) {
3506
3535
  if (i.s < 0 || i.t > 2 * this.m.t) return i.mod(this.m);
3507
3536
  if (i.compareTo(this.m) < 0) return i;
3508
3537
  var a = c();
3509
3538
  return i.copyTo(a), this.reduce(a), a;
3510
3539
  }
3511
- function rs(i) {
3540
+ function ss(i) {
3512
3541
  return i;
3513
3542
  }
3514
- function ss(i) {
3543
+ function is(i) {
3515
3544
  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
3545
  for (i.subTo(this.r2, i); i.compareTo(this.m) >= 0; ) i.subTo(this.m, i);
3517
3546
  }
3518
- function is(i, a) {
3547
+ function os(i, a) {
3519
3548
  i.squareTo(a), this.reduce(a);
3520
3549
  }
3521
- function os(i, a, u) {
3550
+ function as(i, a, u) {
3522
3551
  i.multiplyTo(a, u), this.reduce(u);
3523
3552
  }
3524
- gt.prototype.convert = ns, gt.prototype.revert = rs, gt.prototype.reduce = ss, gt.prototype.mulTo = os, gt.prototype.sqrTo = is;
3525
- function as(i, a) {
3526
- var u = i.bitLength(), p, E = S(1), R;
3527
- if (u <= 0) return E;
3553
+ gt.prototype.convert = rs, gt.prototype.revert = ss, gt.prototype.reduce = is, gt.prototype.mulTo = as, gt.prototype.sqrTo = os;
3554
+ function cs(i, a) {
3555
+ var u = i.bitLength(), p, T = S(1), R;
3556
+ if (u <= 0) return T;
3528
3557
  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, z = p - 1, K = (1 << p) - 1;
3530
- if (_[1] = R.convert(this), p > 1) {
3558
+ var A = new Array(), B = 3, j = p - 1, V = (1 << p) - 1;
3559
+ if (A[1] = R.convert(this), p > 1) {
3531
3560
  var st = c();
3532
- for (R.sqrTo(_[1], st); B <= K; )
3533
- _[B] = c(), R.mulTo(st, _[B - 2], _[B]), B += 2;
3561
+ for (R.sqrTo(A[1], st); B <= V; )
3562
+ A[B] = c(), R.mulTo(st, A[B - 2], A[B]), B += 2;
3534
3563
  }
3535
- var rt = i.t - 1, lt, Nt = !0, ot = c(), at;
3536
- for (u = P(i[rt]) - 1; rt >= 0; ) {
3537
- for (u >= z ? lt = i[rt] >> u - z & K : (lt = (i[rt] & (1 << u + 1) - 1) << z - u, rt > 0 && (lt |= i[rt - 1] >> this.DB + u - z)), B = p; (lt & 1) == 0; )
3564
+ var rt = i.t - 1, lt, Mt = !0, ot = c(), at;
3565
+ for (u = q(i[rt]) - 1; rt >= 0; ) {
3566
+ for (u >= j ? lt = i[rt] >> u - j & V : (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
3567
  lt >>= 1, --B;
3539
- if ((u -= B) < 0 && (u += this.DB, --rt), Nt)
3540
- _[lt].copyTo(E), Nt = !1;
3568
+ if ((u -= B) < 0 && (u += this.DB, --rt), Mt)
3569
+ A[lt].copyTo(T), Mt = !1;
3541
3570
  else {
3542
3571
  for (; B > 1; )
3543
- R.sqrTo(E, ot), R.sqrTo(ot, E), B -= 2;
3544
- B > 0 ? R.sqrTo(E, ot) : (at = E, E = ot, ot = at), R.mulTo(ot, _[lt], E);
3572
+ R.sqrTo(T, ot), R.sqrTo(ot, T), B -= 2;
3573
+ B > 0 ? R.sqrTo(T, ot) : (at = T, T = ot, ot = at), R.mulTo(ot, A[lt], T);
3545
3574
  }
3546
3575
  for (; rt >= 0 && (i[rt] & 1 << u) == 0; )
3547
- R.sqrTo(E, ot), at = E, E = ot, ot = at, --u < 0 && (u = this.DB - 1, --rt);
3576
+ R.sqrTo(T, ot), at = T, T = ot, ot = at, --u < 0 && (u = this.DB - 1, --rt);
3548
3577
  }
3549
- return R.revert(E);
3578
+ return R.revert(T);
3550
3579
  }
3551
- function cs(i) {
3580
+ function us(i) {
3552
3581
  var a = this.s < 0 ? this.negate() : this.clone(), u = i.s < 0 ? i.negate() : i.clone();
3553
3582
  if (a.compareTo(u) < 0) {
3554
3583
  var p = a;
3555
3584
  a = u, u = p;
3556
3585
  }
3557
- var E = a.getLowestSetBit(), R = u.getLowestSetBit();
3586
+ var T = a.getLowestSetBit(), R = u.getLowestSetBit();
3558
3587
  if (R < 0) return a;
3559
- for (E < R && (R = E), R > 0 && (a.rShiftTo(R, a), u.rShiftTo(R, u)); a.signum() > 0; )
3560
- (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));
3588
+ for (T < R && (R = T), R > 0 && (a.rShiftTo(R, a), u.rShiftTo(R, u)); a.signum() > 0; )
3589
+ (T = a.getLowestSetBit()) > 0 && a.rShiftTo(T, a), (T = u.getLowestSetBit()) > 0 && u.rShiftTo(T, u), a.compareTo(u) >= 0 ? (a.subTo(u, a), a.rShiftTo(1, a)) : (u.subTo(a, u), u.rShiftTo(1, u));
3561
3590
  return R > 0 && u.lShiftTo(R, u), u;
3562
3591
  }
3563
- function us(i) {
3592
+ function fs(i) {
3564
3593
  if (i <= 0) return 0;
3565
3594
  var a = this.DV % i, u = this.s < 0 ? i - 1 : 0;
3566
3595
  if (this.t > 0)
@@ -3568,15 +3597,15 @@ function ee() {
3568
3597
  else for (var p = this.t - 1; p >= 0; --p) u = (a * u + this[p]) % i;
3569
3598
  return u;
3570
3599
  }
3571
- function fs(i) {
3600
+ function ls(i) {
3572
3601
  var a = i.isEven();
3573
3602
  if (this.isEven() && a || i.signum() == 0) return o.ZERO;
3574
- for (var u = i.clone(), p = this.clone(), E = S(1), R = S(0), _ = S(0), B = S(1); u.signum() != 0; ) {
3603
+ for (var u = i.clone(), p = this.clone(), T = S(1), R = S(0), A = S(0), B = S(1); u.signum() != 0; ) {
3575
3604
  for (; u.isEven(); )
3576
- u.rShiftTo(1, u), a ? ((!E.isEven() || !R.isEven()) && (E.addTo(this, E), R.subTo(i, R)), E.rShiftTo(1, E)) : R.isEven() || R.subTo(i, R), R.rShiftTo(1, R);
3605
+ u.rShiftTo(1, u), a ? ((!T.isEven() || !R.isEven()) && (T.addTo(this, T), R.subTo(i, R)), T.rShiftTo(1, T)) : R.isEven() || R.subTo(i, R), R.rShiftTo(1, R);
3577
3606
  for (; p.isEven(); )
3578
- p.rShiftTo(1, p), a ? ((!_.isEven() || !B.isEven()) && (_.addTo(this, _), B.subTo(i, B)), _.rShiftTo(1, _)) : B.isEven() || B.subTo(i, B), B.rShiftTo(1, B);
3579
- u.compareTo(p) >= 0 ? (u.subTo(p, u), a && E.subTo(_, E), R.subTo(B, R)) : (p.subTo(u, p), a && _.subTo(E, _), B.subTo(R, B));
3607
+ p.rShiftTo(1, p), a ? ((!A.isEven() || !B.isEven()) && (A.addTo(this, A), B.subTo(i, B)), A.rShiftTo(1, A)) : B.isEven() || B.subTo(i, B), B.rShiftTo(1, B);
3608
+ u.compareTo(p) >= 0 ? (u.subTo(p, u), a && T.subTo(A, T), R.subTo(B, R)) : (p.subTo(u, p), a && A.subTo(T, A), B.subTo(R, B));
3580
3609
  }
3581
3610
  if (p.compareTo(o.ONE) != 0) return o.ZERO;
3582
3611
  if (B.compareTo(i) >= 0) return B.subtract(i);
@@ -3584,8 +3613,8 @@ function ee() {
3584
3613
  else return B;
3585
3614
  return B.signum() < 0 ? B.add(i) : B;
3586
3615
  }
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], ls = (1 << 26) / G[G.length - 1];
3588
- function hs(i) {
3616
+ 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];
3617
+ function ds(i) {
3589
3618
  var a, u = this.abs();
3590
3619
  if (u.t == 1 && u[0] <= G[G.length - 1]) {
3591
3620
  for (a = 0; a < G.length; ++a)
@@ -3594,72 +3623,72 @@ function ee() {
3594
3623
  }
3595
3624
  if (u.isEven()) return !1;
3596
3625
  for (a = 1; a < G.length; ) {
3597
- for (var p = G[a], E = a + 1; E < G.length && p < ls; ) p *= G[E++];
3598
- for (p = u.modInt(p); a < E; ) if (p % G[a++] == 0) return !1;
3626
+ for (var p = G[a], T = a + 1; T < G.length && p < hs; ) p *= G[T++];
3627
+ for (p = u.modInt(p); a < T; ) if (p % G[a++] == 0) return !1;
3599
3628
  }
3600
3629
  return u.millerRabin(i);
3601
3630
  }
3602
- function ds(i) {
3631
+ function ps(i) {
3603
3632
  var a = this.subtract(o.ONE), u = a.getLowestSetBit();
3604
3633
  if (u <= 0) return !1;
3605
3634
  var p = a.shiftRight(u);
3606
3635
  i = i + 1 >> 1, i > G.length && (i = G.length);
3607
- for (var E = c(), R = 0; R < i; ++R) {
3608
- E.fromInt(G[Math.floor(Math.random() * G.length)]);
3609
- var _ = E.modPow(p, this);
3610
- if (_.compareTo(o.ONE) != 0 && _.compareTo(a) != 0) {
3611
- for (var B = 1; B++ < u && _.compareTo(a) != 0; )
3612
- if (_ = _.modPowInt(2, this), _.compareTo(o.ONE) == 0) return !1;
3613
- if (_.compareTo(a) != 0) return !1;
3636
+ for (var T = c(), R = 0; R < i; ++R) {
3637
+ T.fromInt(G[Math.floor(Math.random() * G.length)]);
3638
+ var A = T.modPow(p, this);
3639
+ if (A.compareTo(o.ONE) != 0 && A.compareTo(a) != 0) {
3640
+ for (var B = 1; B++ < u && A.compareTo(a) != 0; )
3641
+ if (A = A.modPowInt(2, this), A.compareTo(o.ONE) == 0) return !1;
3642
+ if (A.compareTo(a) != 0) return !1;
3614
3643
  }
3615
3644
  }
3616
3645
  return !0;
3617
3646
  }
3618
- o.prototype.chunkSize = pr, o.prototype.toRadix = gr, o.prototype.fromRadix = yr, o.prototype.fromNumber = xr, o.prototype.bitwiseTo = Er, o.prototype.changeBit = Nr, o.prototype.addTo = Ur, o.prototype.dMultiply = Wr, o.prototype.dAddOffset = Zr, o.prototype.multiplyLowerTo = ts, o.prototype.multiplyUpperTo = es, o.prototype.modInt = us, o.prototype.millerRabin = ds, o.prototype.clone = fr, o.prototype.intValue = lr, o.prototype.byteValue = hr, o.prototype.shortValue = dr, o.prototype.signum = mr, o.prototype.toByteArray = br, o.prototype.equals = wr, o.prototype.min = vr, o.prototype.max = Tr, o.prototype.and = Rr, o.prototype.or = Or, o.prototype.xor = Fr, o.prototype.andNot = Ar, o.prototype.not = _r, o.prototype.shiftLeft = Ir, o.prototype.shiftRight = Br, o.prototype.getLowestSetBit = Dr, o.prototype.bitCount = qr, o.prototype.testBit = Mr, o.prototype.setBit = kr, o.prototype.clearBit = Lr, o.prototype.flipBit = Hr, o.prototype.add = zr, o.prototype.subtract = jr, o.prototype.multiply = $r, o.prototype.divide = Vr, o.prototype.remainder = Kr, o.prototype.divideAndRemainder = Jr, o.prototype.modPow = as, o.prototype.modInverse = fs, o.prototype.pow = Qr, o.prototype.gcd = cs, o.prototype.isProbablePrime = hs, o.prototype.square = Yr, o.prototype.Barrett = gt;
3619
- var Mt, nt, V;
3620
- function ps(i) {
3621
- nt[V++] ^= i & 255, nt[V++] ^= i >> 8 & 255, nt[V++] ^= i >> 16 & 255, nt[V++] ^= i >> 24 & 255, V >= se && (V -= se);
3647
+ 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 = Er, o.prototype.max = Tr, o.prototype.and = Or, o.prototype.or = Fr, o.prototype.xor = _r, o.prototype.andNot = Ar, o.prototype.not = Ir, o.prototype.shiftLeft = Br, o.prototype.shiftRight = Cr, o.prototype.getLowestSetBit = qr, o.prototype.bitCount = Nr, o.prototype.testBit = Mr, o.prototype.setBit = Lr, o.prototype.clearBit = Ur, o.prototype.flipBit = Hr, o.prototype.add = jr, o.prototype.subtract = $r, o.prototype.multiply = Yr, o.prototype.divide = Vr, 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 = Kr, o.prototype.Barrett = gt;
3648
+ var Nt, nt, K;
3649
+ function ms(i) {
3650
+ nt[K++] ^= i & 255, nt[K++] ^= i >> 8 & 255, nt[K++] ^= i >> 16 & 255, nt[K++] ^= i >> 24 & 255, K >= se && (K -= se);
3622
3651
  }
3623
3652
  function Ce() {
3624
- ps((/* @__PURE__ */ new Date()).getTime());
3653
+ ms((/* @__PURE__ */ new Date()).getTime());
3625
3654
  }
3626
3655
  if (nt == null) {
3627
- nt = new Array(), V = 0;
3656
+ nt = new Array(), K = 0;
3628
3657
  var it;
3629
3658
  if (typeof window < "u" && window.crypto) {
3630
3659
  if (window.crypto.getRandomValues) {
3631
3660
  var De = new Uint8Array(32);
3632
3661
  for (window.crypto.getRandomValues(De), it = 0; it < 32; ++it)
3633
- nt[V++] = De[it];
3662
+ nt[K++] = De[it];
3634
3663
  } else if (navigator.appName == "Netscape" && navigator.appVersion < "5") {
3635
- var Pe = window.crypto.random(32);
3636
- for (it = 0; it < Pe.length; ++it)
3637
- nt[V++] = Pe.charCodeAt(it) & 255;
3664
+ var qe = window.crypto.random(32);
3665
+ for (it = 0; it < qe.length; ++it)
3666
+ nt[K++] = qe.charCodeAt(it) & 255;
3638
3667
  }
3639
3668
  }
3640
- for (; V < se; )
3641
- it = Math.floor(65536 * Math.random()), nt[V++] = it >>> 8, nt[V++] = it & 255;
3642
- V = 0, Ce();
3643
- }
3644
- function ms() {
3645
- if (Mt == null) {
3646
- for (Ce(), Mt = bs(), Mt.init(nt), V = 0; V < nt.length; ++V)
3647
- nt[V] = 0;
3648
- V = 0;
3669
+ for (; K < se; )
3670
+ it = Math.floor(65536 * Math.random()), nt[K++] = it >>> 8, nt[K++] = it & 255;
3671
+ K = 0, Ce();
3672
+ }
3673
+ function gs() {
3674
+ if (Nt == null) {
3675
+ for (Ce(), Nt = ws(), Nt.init(nt), K = 0; K < nt.length; ++K)
3676
+ nt[K] = 0;
3677
+ K = 0;
3649
3678
  }
3650
- return Mt.next();
3679
+ return Nt.next();
3651
3680
  }
3652
- function gs(i) {
3681
+ function ys(i) {
3653
3682
  var a;
3654
- for (a = 0; a < i.length; ++a) i[a] = ms();
3683
+ for (a = 0; a < i.length; ++a) i[a] = gs();
3655
3684
  }
3656
- function qe() {
3685
+ function Pe() {
3657
3686
  }
3658
- qe.prototype.nextBytes = gs;
3687
+ Pe.prototype.nextBytes = ys;
3659
3688
  function re() {
3660
3689
  this.i = 0, this.j = 0, this.S = new Array();
3661
3690
  }
3662
- function ys(i) {
3691
+ function xs(i) {
3663
3692
  var a, u, p;
3664
3693
  for (a = 0; a < 256; ++a)
3665
3694
  this.S[a] = a;
@@ -3667,19 +3696,19 @@ function ee() {
3667
3696
  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
3697
  this.i = 0, this.j = 0;
3669
3698
  }
3670
- function xs() {
3699
+ function bs() {
3671
3700
  var i;
3672
3701
  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
3702
  }
3674
- re.prototype.init = ys, re.prototype.next = xs;
3675
- function bs() {
3703
+ re.prototype.init = xs, re.prototype.next = bs;
3704
+ function ws() {
3676
3705
  return new re();
3677
3706
  }
3678
3707
  var se = 256;
3679
3708
  t.exports = {
3680
3709
  default: o,
3681
3710
  BigInteger: o,
3682
- SecureRandom: qe
3711
+ SecureRandom: Pe
3683
3712
  };
3684
3713
  }).call(la);
3685
3714
  }($t)), $t.exports;
@@ -3761,8 +3790,8 @@ function ha() {
3761
3790
  * 解析 ASN.1 der,针对 sm2 验签
3762
3791
  */
3763
3792
  decodeDer(d) {
3764
- const h = f(d, 0), l = f(d, h), v = c(d, h), O = d.substr(l, v * 2), I = l + O.length, w = f(d, I), F = c(d, I), m = d.substr(w, F * 2), T = new t(O, 16), b = new t(m, 16);
3765
- return { r: T, s: b };
3793
+ const h = f(d, 0), l = f(d, h), v = c(d, h), O = d.substr(l, v * 2), I = l + O.length, w = f(d, I), F = c(d, I), m = d.substr(w, F * 2), E = new t(O, 16), b = new t(m, 16);
3794
+ return { r: E, s: b };
3766
3795
  }
3767
3796
  }, ue;
3768
3797
  }
@@ -3875,11 +3904,11 @@ function da() {
3875
3904
  add(f) {
3876
3905
  if (this.isInfinity()) return f;
3877
3906
  if (f.isInfinity()) return this;
3878
- 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
- if (t.ZERO.equals(T))
3907
+ 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), E = F.subtract(m), b = h.multiply(I).mod(w), g = O.multiply(l).mod(w), S = b.subtract(g);
3908
+ if (t.ZERO.equals(E))
3880
3909
  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), q = T.multiply(C).mod(w), N = A.multiply(S.square()).subtract(x.multiply(C)).mod(w), U = T.multiply(N).mod(w), P = S.multiply(C.multiply(F).subtract(N)).subtract(b.multiply(q)).mod(w), k = q.multiply(A).mod(w);
3882
- return new s(this.curve, this.curve.fromBigInteger(U), this.curve.fromBigInteger(P), k);
3910
+ const x = F.add(m), _ = l.multiply(I).mod(w), C = E.square().mod(w), P = E.multiply(C).mod(w), M = _.multiply(S.square()).subtract(x.multiply(C)).mod(w), H = E.multiply(M).mod(w), q = S.multiply(C.multiply(F).subtract(M)).subtract(b.multiply(P)).mod(w), k = P.multiply(_).mod(w);
3911
+ return new s(this.curve, this.curve.fromBigInteger(H), this.curve.fromBigInteger(q), k);
3883
3912
  }
3884
3913
  /**
3885
3914
  * 自加
@@ -3899,7 +3928,7 @@ function da() {
3899
3928
  twice() {
3900
3929
  if (this.isInfinity()) return this;
3901
3930
  if (!this.y.toBigInteger().signum()) return this.curve.infinity;
3902
- const f = this.x.toBigInteger(), d = this.y.toBigInteger(), h = this.z, l = this.curve.q, v = this.curve.a.toBigInteger(), O = f.square().multiply(n).add(v.multiply(h.square())).mod(l), I = d.shiftLeft(1).multiply(h).mod(l), w = d.square().mod(l), F = w.multiply(f).multiply(h).mod(l), m = I.square().mod(l), T = O.square().subtract(F.shiftLeft(3)).mod(l), b = I.multiply(T).mod(l), g = O.multiply(F.shiftLeft(2).subtract(T)).subtract(m.shiftLeft(1).multiply(w)).mod(l), S = I.multiply(m).mod(l);
3931
+ const f = this.x.toBigInteger(), d = this.y.toBigInteger(), h = this.z, l = this.curve.q, v = this.curve.a.toBigInteger(), O = f.square().multiply(n).add(v.multiply(h.square())).mod(l), I = d.shiftLeft(1).multiply(h).mod(l), w = d.square().mod(l), F = w.multiply(f).multiply(h).mod(l), m = I.square().mod(l), E = O.square().subtract(F.shiftLeft(3)).mod(l), b = I.multiply(E).mod(l), g = O.multiply(F.shiftLeft(2).subtract(E)).subtract(m.shiftLeft(1).multiply(w)).mod(l), S = I.multiply(m).mod(l);
3903
3932
  return new s(this.curve, this.curve.fromBigInteger(b), this.curve.fromBigInteger(g), S);
3904
3933
  }
3905
3934
  /**
@@ -3976,27 +4005,27 @@ function pa() {
3976
4005
  return s;
3977
4006
  }
3978
4007
  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), q = x.decodePointHex("04" + "32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7" + "BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"), N = new t("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16);
3980
- return { curve: x, G: q, n: N };
4008
+ 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"), M = new t("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16);
4009
+ return { curve: x, G: P, n: M };
3981
4010
  }
3982
4011
  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), q = o.multiply(A), N = O(q.getX().toBigInteger().toString(16), 64), U = O(q.getY().toBigInteger().toString(16), 64), P = "04" + N + U;
3984
- return { privateKey: C, publicKey: P };
4012
+ const _ = (b ? new t(b, g, S) : new t(c.bitLength(), r)).mod(c.subtract(t.ONE)).add(t.ONE), C = O(_.toString(16), 64), P = o.multiply(_), M = O(P.getX().toBigInteger().toString(16), 64), H = O(P.getY().toBigInteger().toString(16), 64), q = "04" + M + H;
4013
+ return { privateKey: C, publicKey: q };
3985
4014
  }
3986
4015
  function l(b) {
3987
4016
  if (b.length !== 130) throw new Error("Invalid public key to compress");
3988
4017
  const g = (b.length - 2) / 2, S = b.substr(2, g), x = new t(b.substr(g + 2, g), 16);
3989
- let A = "03";
3990
- return x.mod(new t("2")).equals(t.ZERO) && (A = "02"), A + S;
4018
+ let _ = "03";
4019
+ return x.mod(new t("2")).equals(t.ZERO) && (_ = "02"), _ + S;
3991
4020
  }
3992
4021
  function v(b) {
3993
4022
  b = unescape(encodeURIComponent(b));
3994
4023
  const g = b.length, S = [];
3995
- for (let A = 0; A < g; A++)
3996
- S[A >>> 2] |= (b.charCodeAt(A) & 255) << 24 - A % 4 * 8;
4024
+ for (let _ = 0; _ < g; _++)
4025
+ S[_ >>> 2] |= (b.charCodeAt(_) & 255) << 24 - _ % 4 * 8;
3997
4026
  const x = [];
3998
- for (let A = 0; A < g; A++) {
3999
- const C = S[A >>> 2] >>> 24 - A % 4 * 8 & 255;
4027
+ for (let _ = 0; _ < g; _++) {
4028
+ const C = S[_ >>> 2] >>> 24 - _ % 4 * 8 & 255;
4000
4029
  x.push((C >>> 4).toString(16)), x.push((C & 15).toString(16));
4001
4030
  }
4002
4031
  return x.join("");
@@ -4014,8 +4043,8 @@ function pa() {
4014
4043
  g[x >>> 3] |= parseInt(b[S], 10) << 24 - x % 8 * 4, S++;
4015
4044
  try {
4016
4045
  const x = [];
4017
- for (let A = 0; A < b.length; A++) {
4018
- const C = g[A >>> 2] >>> 24 - A % 4 * 8 & 255;
4046
+ for (let _ = 0; _ < b.length; _++) {
4047
+ const C = g[_ >>> 2] >>> 24 - _ % 4 * 8 & 255;
4019
4048
  x.push(String.fromCharCode(C));
4020
4049
  }
4021
4050
  return decodeURIComponent(escape(x.join("")));
@@ -4037,7 +4066,7 @@ function pa() {
4037
4066
  const S = g.getX();
4038
4067
  return g.getY().square().equals(S.multiply(S.square()).add(S.multiply(s.a)).add(s.b));
4039
4068
  }
4040
- function T(b, g) {
4069
+ function E(b, g) {
4041
4070
  const S = s.decodePointHex(b);
4042
4071
  if (!S) return !1;
4043
4072
  const x = s.decodePointHex(g);
@@ -4054,11 +4083,11 @@ function pa() {
4054
4083
  arrayToUtf8: w,
4055
4084
  hexToArray: F,
4056
4085
  verifyPublicKey: m,
4057
- comparePublicKeyHex: T
4086
+ comparePublicKeyHex: E
4058
4087
  }, le;
4059
4088
  }
4060
4089
  var he, sn;
4061
- function Wn() {
4090
+ function Zn() {
4062
4091
  if (sn) return he;
4063
4092
  sn = 1;
4064
4093
  const t = new Uint32Array(68), e = new Uint32Array(64);
@@ -4081,32 +4110,32 @@ function Wn() {
4081
4110
  let O = v.length * 8, I = O % 512;
4082
4111
  I = I >= 448 ? 512 - I % 448 - 1 : 448 - I - 1;
4083
4112
  const w = new Array((I - 7) / 8), F = new Array(8);
4084
- for (let x = 0, A = w.length; x < A; x++) w[x] = 0;
4085
- for (let x = 0, A = F.length; x < A; x++) F[x] = 0;
4113
+ for (let x = 0, _ = w.length; x < _; x++) w[x] = 0;
4114
+ for (let x = 0, _ = F.length; x < _; x++) F[x] = 0;
4086
4115
  O = O.toString(2);
4087
4116
  for (let x = 7; x >= 0; x--)
4088
4117
  if (O.length > 8) {
4089
- const A = O.length - 8;
4090
- F[x] = parseInt(O.substr(A), 2), O = O.substr(0, A);
4118
+ const _ = O.length - 8;
4119
+ F[x] = parseInt(O.substr(_), 2), O = O.substr(0, _);
4091
4120
  } else O.length > 0 && (F[x] = parseInt(O, 2), O = "");
4092
- const m = new Uint8Array([...v, 128, ...w, ...F]), T = new DataView(m.buffer, 0), b = m.length / 64, g = new Uint32Array([1937774191, 1226093241, 388252375, 3666478592, 2842636476, 372324522, 3817729613, 2969243214]);
4121
+ const m = new Uint8Array([...v, 128, ...w, ...F]), E = new DataView(m.buffer, 0), b = m.length / 64, g = new Uint32Array([1937774191, 1226093241, 388252375, 3666478592, 2842636476, 372324522, 3817729613, 2969243214]);
4093
4122
  for (let x = 0; x < b; x++) {
4094
4123
  t.fill(0), e.fill(0);
4095
- const A = 16 * x;
4124
+ const _ = 16 * x;
4096
4125
  for (let D = 0; D < 16; D++)
4097
- t[D] = T.getUint32((A + D) * 4, !1);
4126
+ t[D] = E.getUint32((_ + D) * 4, !1);
4098
4127
  for (let D = 16; D < 68; D++)
4099
4128
  t[D] = o(t[D - 16] ^ t[D - 9] ^ n(t[D - 3], 15)) ^ n(t[D - 13], 7) ^ t[D - 6];
4100
4129
  for (let D = 0; D < 64; D++)
4101
4130
  e[D] = t[D] ^ t[D + 4];
4102
- const C = 2043430169, q = 2055708042;
4103
- let N = g[0], U = g[1], P = g[2], k = g[3], L = g[4], H = g[5], J = g[6], Y = g[7], X, Z, pt, vt, et;
4131
+ const C = 2043430169, P = 2055708042;
4132
+ let M = g[0], H = g[1], q = g[2], k = g[3], L = g[4], U = g[5], J = g[6], Y = g[7], X, Z, pt, vt, et;
4104
4133
  for (let D = 0; D < 64; D++)
4105
- et = D >= 0 && D <= 15 ? C : q, X = n(n(N, 12) + L + n(et, D), 7), Z = X ^ n(N, 12), pt = (D >= 0 && D <= 15 ? N ^ U ^ P : N & U | N & P | U & P) + k + Z + e[D], vt = (D >= 0 && D <= 15 ? L ^ H ^ J : L & H | ~L & J) + Y + X + t[D], k = P, P = n(U, 9), U = N, N = pt, Y = J, J = n(H, 19), H = L, L = s(vt);
4106
- g[0] ^= N, g[1] ^= U, g[2] ^= P, g[3] ^= k, g[4] ^= L, g[5] ^= H, g[6] ^= J, g[7] ^= Y;
4134
+ et = D >= 0 && D <= 15 ? C : P, X = n(n(M, 12) + L + n(et, D), 7), Z = X ^ n(M, 12), pt = (D >= 0 && D <= 15 ? M ^ H ^ q : M & H | M & q | H & q) + k + Z + e[D], vt = (D >= 0 && D <= 15 ? L ^ U ^ J : L & U | ~L & J) + Y + X + t[D], k = q, q = n(H, 9), H = M, M = pt, Y = J, J = n(U, 19), U = L, L = s(vt);
4135
+ g[0] ^= M, g[1] ^= H, g[2] ^= q, g[3] ^= k, g[4] ^= L, g[5] ^= U, g[6] ^= J, g[7] ^= Y;
4107
4136
  }
4108
4137
  const S = [];
4109
- for (let x = 0, A = g.length; x < A; x++) {
4138
+ for (let x = 0, _ = g.length; x < _; x++) {
4110
4139
  const C = g[x];
4111
4140
  S.push((C & 4278190080) >>> 24, (C & 16711680) >>> 16, (C & 65280) >>> 8, C & 255);
4112
4141
  }
@@ -4129,95 +4158,95 @@ var de, on;
4129
4158
  function ma() {
4130
4159
  if (on) return de;
4131
4160
  on = 1;
4132
- const { BigInteger: t } = ee(), { encodeDer: e, decodeDer: n } = ha(), r = pa(), s = Wn().sm3, { G: o, curve: c, n: f } = r.generateEcparam(), d = 0;
4133
- function h(m, T, b = 1) {
4134
- m = typeof m == "string" ? r.hexToArray(r.utf8ToHex(m)) : Array.prototype.slice.call(m), T = r.getGlobalCurve().decodePointHex(T);
4161
+ const { BigInteger: t } = ee(), { encodeDer: e, decodeDer: n } = ha(), r = pa(), s = Zn().sm3, { G: o, curve: c, n: f } = r.generateEcparam(), d = 0;
4162
+ function h(m, E, b = 1) {
4163
+ m = typeof m == "string" ? r.hexToArray(r.utf8ToHex(m)) : Array.prototype.slice.call(m), E = r.getGlobalCurve().decodePointHex(E);
4135
4164
  const g = r.generateKeyPairHex(), S = new t(g.privateKey, 16);
4136
4165
  let x = g.publicKey;
4137
4166
  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)), q = r.hexToArray(r.leftPad(A.getY().toBigInteger().toRadix(16), 64)), N = r.arrayToHex(s([].concat(C, m, q)));
4139
- let U = 1, P = 0, k = [];
4140
- const L = [].concat(C, q), H = () => {
4141
- k = s([...L, U >> 24 & 255, U >> 16 & 255, U >> 8 & 255, U & 255]), U++, P = 0;
4167
+ const _ = E.multiply(S), C = r.hexToArray(r.leftPad(_.getX().toBigInteger().toRadix(16), 64)), P = r.hexToArray(r.leftPad(_.getY().toBigInteger().toRadix(16), 64)), M = r.arrayToHex(s([].concat(C, m, P)));
4168
+ let H = 1, q = 0, k = [];
4169
+ const L = [].concat(C, P), U = () => {
4170
+ k = s([...L, H >> 24 & 255, H >> 16 & 255, H >> 8 & 255, H & 255]), H++, q = 0;
4142
4171
  };
4143
- H();
4172
+ U();
4144
4173
  for (let Y = 0, X = m.length; Y < X; Y++)
4145
- P === k.length && H(), m[Y] ^= k[P++] & 255;
4174
+ q === k.length && U(), m[Y] ^= k[q++] & 255;
4146
4175
  const J = r.arrayToHex(m);
4147
- return b === d ? x + J + N : x + N + J;
4176
+ return b === d ? x + J + M : x + M + J;
4148
4177
  }
4149
- function l(m, T, b = 1, {
4178
+ function l(m, E, b = 1, {
4150
4179
  output: g = "string"
4151
4180
  } = {}) {
4152
- T = new t(T, 16);
4181
+ E = new t(E, 16);
4153
4182
  let S = m.substr(128, 64), x = m.substr(192);
4154
4183
  b === d && (S = m.substr(m.length - 64), x = m.substr(128, m.length - 128 - 64));
4155
- const A = r.hexToArray(x), q = r.getGlobalCurve().decodePointHex("04" + m.substr(0, 128)).multiply(T), N = r.hexToArray(r.leftPad(q.getX().toBigInteger().toRadix(16), 64)), U = r.hexToArray(r.leftPad(q.getY().toBigInteger().toRadix(16), 64));
4156
- let P = 1, k = 0, L = [];
4157
- const H = [].concat(N, U), J = () => {
4158
- L = s([...H, P >> 24 & 255, P >> 16 & 255, P >> 8 & 255, P & 255]), P++, k = 0;
4184
+ const _ = r.hexToArray(x), P = r.getGlobalCurve().decodePointHex("04" + m.substr(0, 128)).multiply(E), M = r.hexToArray(r.leftPad(P.getX().toBigInteger().toRadix(16), 64)), H = r.hexToArray(r.leftPad(P.getY().toBigInteger().toRadix(16), 64));
4185
+ let q = 1, k = 0, L = [];
4186
+ const U = [].concat(M, H), J = () => {
4187
+ L = s([...U, q >> 24 & 255, q >> 16 & 255, q >> 8 & 255, q & 255]), q++, k = 0;
4159
4188
  };
4160
4189
  J();
4161
- for (let X = 0, Z = A.length; X < Z; X++)
4162
- k === L.length && J(), A[X] ^= L[k++] & 255;
4163
- return r.arrayToHex(s([].concat(N, A, U))) === S.toLowerCase() ? g === "array" ? A : r.arrayToUtf8(A) : g === "array" ? [] : "";
4190
+ for (let X = 0, Z = _.length; X < Z; X++)
4191
+ k === L.length && J(), _[X] ^= L[k++] & 255;
4192
+ return r.arrayToHex(s([].concat(M, _, H))) === S.toLowerCase() ? g === "array" ? _ : r.arrayToUtf8(_) : g === "array" ? [] : "";
4164
4193
  }
4165
- function v(m, T, {
4194
+ function v(m, E, {
4166
4195
  pointPool: b,
4167
4196
  der: g,
4168
4197
  hash: S,
4169
4198
  publicKey: x,
4170
- userId: A
4199
+ userId: _
4171
4200
  } = {}) {
4172
4201
  let C = typeof m == "string" ? r.utf8ToHex(m) : r.arrayToHex(m);
4173
- S && (x = x || w(T), C = I(C, x, A));
4174
- const q = new t(T, 16), N = new t(C, 16);
4175
- let U = null, P = null, k = null;
4202
+ S && (x = x || w(E), C = I(C, x, _));
4203
+ const P = new t(E, 16), M = new t(C, 16);
4204
+ let H = null, q = null, k = null;
4176
4205
  do {
4177
4206
  do {
4178
4207
  let L;
4179
- b && b.length ? L = b.pop() : L = F(), U = L.k, P = N.add(L.x1).mod(f);
4180
- } while (P.equals(t.ZERO) || P.add(U).equals(f));
4181
- k = q.add(t.ONE).modInverse(f).multiply(U.subtract(P.multiply(q))).mod(f);
4208
+ b && b.length ? L = b.pop() : L = F(), H = L.k, q = M.add(L.x1).mod(f);
4209
+ } while (q.equals(t.ZERO) || q.add(H).equals(f));
4210
+ k = P.add(t.ONE).modInverse(f).multiply(H.subtract(q.multiply(P))).mod(f);
4182
4211
  } while (k.equals(t.ZERO));
4183
- return g ? e(P, k) : r.leftPad(P.toString(16), 64) + r.leftPad(k.toString(16), 64);
4212
+ return g ? e(q, k) : r.leftPad(q.toString(16), 64) + r.leftPad(k.toString(16), 64);
4184
4213
  }
4185
- function O(m, T, b, { der: g, hash: S, userId: x } = {}) {
4186
- let A = typeof m == "string" ? r.utf8ToHex(m) : r.arrayToHex(m);
4187
- S && (A = I(A, b, x));
4188
- let C, q;
4214
+ function O(m, E, b, { der: g, hash: S, userId: x } = {}) {
4215
+ let _ = typeof m == "string" ? r.utf8ToHex(m) : r.arrayToHex(m);
4216
+ S && (_ = I(_, b, x));
4217
+ let C, P;
4189
4218
  if (g) {
4190
- const H = n(T);
4191
- C = H.r, q = H.s;
4219
+ const U = n(E);
4220
+ C = U.r, P = U.s;
4192
4221
  } else
4193
- C = new t(T.substring(0, 64), 16), q = new t(T.substring(64), 16);
4194
- const N = c.decodePointHex(b), U = new t(A, 16), P = C.add(q).mod(f);
4195
- if (P.equals(t.ZERO)) return !1;
4196
- const k = o.multiply(q).add(N.multiply(P)), L = U.add(k.getX().toBigInteger()).mod(f);
4222
+ C = new t(E.substring(0, 64), 16), P = new t(E.substring(64), 16);
4223
+ const M = c.decodePointHex(b), H = new t(_, 16), q = C.add(P).mod(f);
4224
+ if (q.equals(t.ZERO)) return !1;
4225
+ const k = o.multiply(P).add(M.multiply(q)), L = H.add(k.getX().toBigInteger()).mod(f);
4197
4226
  return C.equals(L);
4198
4227
  }
4199
- function I(m, T, b = "1234567812345678") {
4228
+ function I(m, E, b = "1234567812345678") {
4200
4229
  b = r.utf8ToHex(b);
4201
- 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, q;
4203
- if (T.length === 128)
4204
- C = T.substr(0, 64), q = T.substr(64, 64);
4230
+ 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), _ = r.leftPad(o.getY().toBigInteger().toRadix(16), 64);
4231
+ let C, P;
4232
+ if (E.length === 128)
4233
+ C = E.substr(0, 64), P = E.substr(64, 64);
4205
4234
  else {
4206
- const k = o.curve.decodePointHex(T);
4207
- C = r.leftPad(k.getX().toBigInteger().toRadix(16), 64), q = r.leftPad(k.getY().toBigInteger().toRadix(16), 64);
4235
+ const k = o.curve.decodePointHex(E);
4236
+ C = r.leftPad(k.getX().toBigInteger().toRadix(16), 64), P = r.leftPad(k.getY().toBigInteger().toRadix(16), 64);
4208
4237
  }
4209
- const N = r.hexToArray(b + g + S + x + A + C + q), U = b.length * 4;
4210
- N.unshift(U & 255), N.unshift(U >> 8 & 255);
4211
- const P = s(N);
4212
- return r.arrayToHex(s(P.concat(r.hexToArray(m))));
4238
+ const M = r.hexToArray(b + g + S + x + _ + C + P), H = b.length * 4;
4239
+ M.unshift(H & 255), M.unshift(H >> 8 & 255);
4240
+ const q = s(M);
4241
+ return r.arrayToHex(s(q.concat(r.hexToArray(m))));
4213
4242
  }
4214
4243
  function w(m) {
4215
- 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);
4244
+ const E = o.multiply(new t(m, 16)), b = r.leftPad(E.getX().toBigInteger().toString(16), 64), g = r.leftPad(E.getY().toBigInteger().toString(16), 64);
4216
4245
  return "04" + b + g;
4217
4246
  }
4218
4247
  function F() {
4219
- const m = r.generateKeyPairHex(), T = c.decodePointHex(m.publicKey);
4220
- return m.k = new t(m.privateKey, 16), m.x1 = T.getX().toBigInteger(), m;
4248
+ const m = r.generateKeyPairHex(), E = c.decodePointHex(m.publicKey);
4249
+ return m.k = new t(m.privateKey, 16), m.x1 = E.getX().toBigInteger(), m;
4221
4250
  }
4222
4251
  return de = {
4223
4252
  generateKeyPairHex: r.generateKeyPairHex,
@@ -4236,7 +4265,7 @@ var pe, an;
4236
4265
  function ga() {
4237
4266
  if (an) return pe;
4238
4267
  an = 1;
4239
- const { sm3: t, hmac: e } = Wn();
4268
+ const { sm3: t, hmac: e } = Zn();
4240
4269
  function n(c, f) {
4241
4270
  return c.length >= f ? c : new Array(f - c.length + 1).join("0") + c;
4242
4271
  }
@@ -4574,39 +4603,39 @@ function ya() {
4574
4603
  1684763257
4575
4604
  ];
4576
4605
  function o(m) {
4577
- const T = [];
4606
+ const E = [];
4578
4607
  for (let b = 0, g = m.length; b < g; b += 2)
4579
- T.push(parseInt(m.substr(b, 2), 16));
4580
- return T;
4608
+ E.push(parseInt(m.substr(b, 2), 16));
4609
+ return E;
4581
4610
  }
4582
4611
  function c(m) {
4583
- return m.map((T) => (T = T.toString(16), T.length === 1 ? "0" + T : T)).join("");
4612
+ return m.map((E) => (E = E.toString(16), E.length === 1 ? "0" + E : E)).join("");
4584
4613
  }
4585
4614
  function f(m) {
4586
- const T = [];
4615
+ const E = [];
4587
4616
  for (let b = 0, g = m.length; b < g; b++) {
4588
4617
  const S = m.codePointAt(b);
4589
4618
  if (S <= 127)
4590
- T.push(S);
4619
+ E.push(S);
4591
4620
  else if (S <= 2047)
4592
- T.push(192 | S >>> 6), T.push(128 | S & 63);
4621
+ E.push(192 | S >>> 6), E.push(128 | S & 63);
4593
4622
  else if (S <= 55295 || S >= 57344 && S <= 65535)
4594
- T.push(224 | S >>> 12), T.push(128 | S >>> 6 & 63), T.push(128 | S & 63);
4623
+ E.push(224 | S >>> 12), E.push(128 | S >>> 6 & 63), E.push(128 | S & 63);
4595
4624
  else if (S >= 65536 && S <= 1114111)
4596
- b++, T.push(240 | S >>> 18 & 28), T.push(128 | S >>> 12 & 63), T.push(128 | S >>> 6 & 63), T.push(128 | S & 63);
4625
+ b++, E.push(240 | S >>> 18 & 28), E.push(128 | S >>> 12 & 63), E.push(128 | S >>> 6 & 63), E.push(128 | S & 63);
4597
4626
  else
4598
- throw T.push(S), new Error("input is not supported");
4627
+ throw E.push(S), new Error("input is not supported");
4599
4628
  }
4600
- return T;
4629
+ return E;
4601
4630
  }
4602
4631
  function d(m) {
4603
- const T = [];
4632
+ const E = [];
4604
4633
  for (let b = 0, g = m.length; b < g; b++)
4605
- m[b] >= 240 && m[b] <= 247 ? (T.push(String.fromCodePoint(((m[b] & 7) << 18) + ((m[b + 1] & 63) << 12) + ((m[b + 2] & 63) << 6) + (m[b + 3] & 63))), b += 3) : m[b] >= 224 && m[b] <= 239 ? (T.push(String.fromCodePoint(((m[b] & 15) << 12) + ((m[b + 1] & 63) << 6) + (m[b + 2] & 63))), b += 2) : m[b] >= 192 && m[b] <= 223 ? (T.push(String.fromCodePoint(((m[b] & 31) << 6) + (m[b + 1] & 63))), b++) : T.push(String.fromCodePoint(m[b]));
4606
- return T.join("");
4634
+ m[b] >= 240 && m[b] <= 247 ? (E.push(String.fromCodePoint(((m[b] & 7) << 18) + ((m[b + 1] & 63) << 12) + ((m[b + 2] & 63) << 6) + (m[b + 3] & 63))), b += 3) : m[b] >= 224 && m[b] <= 239 ? (E.push(String.fromCodePoint(((m[b] & 15) << 12) + ((m[b + 1] & 63) << 6) + (m[b + 2] & 63))), b += 2) : m[b] >= 192 && m[b] <= 223 ? (E.push(String.fromCodePoint(((m[b] & 31) << 6) + (m[b + 1] & 63))), b++) : E.push(String.fromCodePoint(m[b]));
4635
+ return E.join("");
4607
4636
  }
4608
- function h(m, T) {
4609
- const b = T & 31;
4637
+ function h(m, E) {
4638
+ const b = E & 31;
4610
4639
  return m << b | m >>> 32 - b;
4611
4640
  }
4612
4641
  function l(m) {
@@ -4618,68 +4647,68 @@ function ya() {
4618
4647
  function O(m) {
4619
4648
  return m ^ h(m, 13) ^ h(m, 23);
4620
4649
  }
4621
- function I(m, T, b) {
4650
+ function I(m, E, b) {
4622
4651
  const g = new Array(4), S = new Array(4);
4623
4652
  for (let x = 0; x < 4; x++)
4624
4653
  S[0] = m[4 * x] & 255, S[1] = m[4 * x + 1] & 255, S[2] = m[4 * x + 2] & 255, S[3] = m[4 * x + 3] & 255, g[x] = S[0] << 24 | S[1] << 16 | S[2] << 8 | S[3];
4625
- for (let x = 0, A; x < 32; x += 4)
4626
- A = g[1] ^ g[2] ^ g[3] ^ b[x + 0], g[0] ^= v(l(A)), A = g[2] ^ g[3] ^ g[0] ^ b[x + 1], g[1] ^= v(l(A)), A = g[3] ^ g[0] ^ g[1] ^ b[x + 2], g[2] ^= v(l(A)), A = g[0] ^ g[1] ^ g[2] ^ b[x + 3], g[3] ^= v(l(A));
4654
+ for (let x = 0, _; x < 32; x += 4)
4655
+ _ = g[1] ^ g[2] ^ g[3] ^ b[x + 0], g[0] ^= v(l(_)), _ = g[2] ^ g[3] ^ g[0] ^ b[x + 1], g[1] ^= v(l(_)), _ = g[3] ^ g[0] ^ g[1] ^ b[x + 2], g[2] ^= v(l(_)), _ = g[0] ^ g[1] ^ g[2] ^ b[x + 3], g[3] ^= v(l(_));
4627
4656
  for (let x = 0; x < 16; x += 4)
4628
- T[x] = g[3 - x / 4] >>> 24 & 255, T[x + 1] = g[3 - x / 4] >>> 16 & 255, T[x + 2] = g[3 - x / 4] >>> 8 & 255, T[x + 3] = g[3 - x / 4] & 255;
4657
+ E[x] = g[3 - x / 4] >>> 24 & 255, E[x + 1] = g[3 - x / 4] >>> 16 & 255, E[x + 2] = g[3 - x / 4] >>> 8 & 255, E[x + 3] = g[3 - x / 4] & 255;
4629
4658
  }
4630
- function w(m, T, b) {
4659
+ function w(m, E, b) {
4631
4660
  const g = new Array(4), S = new Array(4);
4632
4661
  for (let x = 0; x < 4; x++)
4633
4662
  S[0] = m[0 + 4 * x] & 255, S[1] = m[1 + 4 * x] & 255, S[2] = m[2 + 4 * x] & 255, S[3] = m[3 + 4 * x] & 255, g[x] = S[0] << 24 | S[1] << 16 | S[2] << 8 | S[3];
4634
4663
  g[0] ^= 2746333894, g[1] ^= 1453994832, g[2] ^= 1736282519, g[3] ^= 2993693404;
4635
- for (let x = 0, A; x < 32; x += 4)
4636
- A = g[1] ^ g[2] ^ g[3] ^ s[x + 0], T[x + 0] = g[0] ^= O(l(A)), A = g[2] ^ g[3] ^ g[0] ^ s[x + 1], T[x + 1] = g[1] ^= O(l(A)), A = g[3] ^ g[0] ^ g[1] ^ s[x + 2], T[x + 2] = g[2] ^= O(l(A)), A = g[0] ^ g[1] ^ g[2] ^ s[x + 3], T[x + 3] = g[3] ^= O(l(A));
4664
+ for (let x = 0, _; x < 32; x += 4)
4665
+ _ = g[1] ^ g[2] ^ g[3] ^ s[x + 0], E[x + 0] = g[0] ^= O(l(_)), _ = g[2] ^ g[3] ^ g[0] ^ s[x + 1], E[x + 1] = g[1] ^= O(l(_)), _ = g[3] ^ g[0] ^ g[1] ^ s[x + 2], E[x + 2] = g[2] ^= O(l(_)), _ = g[0] ^ g[1] ^ g[2] ^ s[x + 3], E[x + 3] = g[3] ^= O(l(_));
4637
4666
  if (b === t)
4638
- for (let x = 0, A; x < 16; x++)
4639
- A = T[x], T[x] = T[31 - x], T[31 - x] = A;
4667
+ for (let x = 0, _; x < 16; x++)
4668
+ _ = E[x], E[x] = E[31 - x], E[31 - x] = _;
4640
4669
  }
4641
- function F(m, T, b, {
4670
+ function F(m, E, b, {
4642
4671
  padding: g = "pkcs#7",
4643
4672
  mode: S,
4644
4673
  iv: x = [],
4645
- output: A = "string"
4674
+ output: _ = "string"
4646
4675
  } = {}) {
4647
4676
  if (S === "cbc" && (typeof x == "string" && (x = o(x)), x.length !== 128 / 8))
4648
4677
  throw new Error("iv is invalid");
4649
- if (typeof T == "string" && (T = o(T)), T.length !== 128 / 8)
4678
+ if (typeof E == "string" && (E = o(E)), E.length !== 128 / 8)
4650
4679
  throw new Error("key is invalid");
4651
4680
  if (typeof m == "string" ? b !== t ? m = f(m) : m = o(m) : m = [...m], (g === "pkcs#5" || g === "pkcs#7") && b !== t) {
4652
4681
  const k = n - m.length % n;
4653
4682
  for (let L = 0; L < k; L++) m.push(k);
4654
4683
  }
4655
4684
  const C = new Array(e);
4656
- w(T, C, b);
4657
- const q = [];
4658
- let N = x, U = m.length, P = 0;
4659
- for (; U >= n; ) {
4660
- const k = m.slice(P, P + 16), L = new Array(16);
4685
+ w(E, C, b);
4686
+ const P = [];
4687
+ let M = x, H = m.length, q = 0;
4688
+ for (; H >= n; ) {
4689
+ const k = m.slice(q, q + 16), L = new Array(16);
4661
4690
  if (S === "cbc")
4662
- for (let H = 0; H < n; H++)
4663
- b !== t && (k[H] ^= N[H]);
4691
+ for (let U = 0; U < n; U++)
4692
+ b !== t && (k[U] ^= M[U]);
4664
4693
  I(k, L, C);
4665
- for (let H = 0; H < n; H++)
4666
- S === "cbc" && b === t && (L[H] ^= N[H]), q[P + H] = L[H];
4667
- S === "cbc" && (b !== t ? N = L : N = k), U -= n, P += n;
4694
+ for (let U = 0; U < n; U++)
4695
+ S === "cbc" && b === t && (L[U] ^= M[U]), P[q + U] = L[U];
4696
+ S === "cbc" && (b !== t ? M = L : M = k), H -= n, q += n;
4668
4697
  }
4669
4698
  if ((g === "pkcs#5" || g === "pkcs#7") && b === t) {
4670
- const k = q.length, L = q[k - 1];
4671
- for (let H = 1; H <= L; H++)
4672
- if (q[k - H] !== L) throw new Error("padding is invalid");
4673
- q.splice(k - L, L);
4699
+ const k = P.length, L = P[k - 1];
4700
+ for (let U = 1; U <= L; U++)
4701
+ if (P[k - U] !== L) throw new Error("padding is invalid");
4702
+ P.splice(k - L, L);
4674
4703
  }
4675
- return A !== "array" ? b !== t ? c(q) : d(q) : q;
4704
+ return _ !== "array" ? b !== t ? c(P) : d(P) : P;
4676
4705
  }
4677
4706
  return me = {
4678
- encrypt(m, T, b) {
4679
- return F(m, T, 1, b);
4707
+ encrypt(m, E, b) {
4708
+ return F(m, E, 1, b);
4680
4709
  },
4681
- decrypt(m, T, b) {
4682
- return F(m, T, 0, b);
4710
+ decrypt(m, E, b) {
4711
+ return F(m, E, 0, b);
4683
4712
  }
4684
4713
  }, me;
4685
4714
  }
@@ -4691,15 +4720,15 @@ function xa() {
4691
4720
  sm4: ya()
4692
4721
  }), ge;
4693
4722
  }
4694
- var Zn = xa();
4695
- const Gn = Zn.sm2, Xn = Zn.sm4, dc = (t, e, n = "04") => n + Gn.doEncrypt(t, e), pc = (t, e, n = "04") => Gn.doDecrypt(t.startsWith(n) ? t.slice(2) : t, e), mc = (t, e) => Xn.encrypt(t, e), gc = (t, e) => Xn.decrypt(t, e);
4723
+ var Gn = xa();
4724
+ 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
4725
  let It = [], ba = { consecutiveFrames: 0, lastBlinkTime: 0 }, wa = { consecutiveFrames: 0, lastBlinkTime: 0 };
4697
4726
  const va = /* @__PURE__ */ new Map([
4698
- ["nod", [Aa, 30]],
4727
+ ["nod", [_a, 30]],
4699
4728
  ["shake", [Fa, 7]],
4700
4729
  ["mouth", [Oa, 0.35]],
4701
4730
  ["eye", [Ra, 0.3]]
4702
- ]), yc = ["nod", "shake", "mouth", "eye"], xc = {
4731
+ ]), xc = ["nod", "shake", "mouth", "eye"], bc = {
4703
4732
  nod: "请点点头",
4704
4733
  shake: "请摇摇头",
4705
4734
  mouth: "请张张嘴",
@@ -4712,11 +4741,11 @@ function fn(t, e) {
4712
4741
  n.map((s, o) => s - r[o]).reduce((s, o) => s + Math.pow(o, 2), 0)
4713
4742
  );
4714
4743
  }
4715
- function* Ta(t, e, n, r, s) {
4744
+ function* Ea(t, e, n, r, s) {
4716
4745
  for (let o = n; o > 0; o--)
4717
4746
  yield t(e, s, r);
4718
4747
  }
4719
- function Ht(t) {
4748
+ function Ut(t) {
4720
4749
  return [t.x, t.y];
4721
4750
  }
4722
4751
  function ye(t, e) {
@@ -4727,8 +4756,8 @@ function ln(t) {
4727
4756
  const e = ye(t[1], t[5]), n = ye(t[2], t[4]), r = ye(t[0], t[3]);
4728
4757
  return (e + n) / (2 * r);
4729
4758
  }
4730
- function Ea(t) {
4731
- const e = fn(Ht(t[13]), Ht(t[19])), n = fn(Ht(t[0]), Ht(t[6]));
4759
+ function Ta(t) {
4760
+ const e = fn(Ut(t[13]), Ut(t[19])), n = fn(Ut(t[0]), Ut(t[6]));
4732
4761
  return e / n;
4733
4762
  }
4734
4763
  function Sa(t) {
@@ -4747,13 +4776,13 @@ function hn(t, e, n, r) {
4747
4776
  return !1;
4748
4777
  }
4749
4778
  function Oa(t, e) {
4750
- return Ea(t.getMouth()) > e;
4779
+ return Ta(t.getMouth()) > e;
4751
4780
  }
4752
4781
  function Fa(t, e) {
4753
4782
  const n = Sa(t);
4754
4783
  return Math.abs(n) > e;
4755
4784
  }
4756
- function Aa(t, e) {
4785
+ function _a(t, e) {
4757
4786
  const n = It.length, r = t.positions[33];
4758
4787
  if (n < 5)
4759
4788
  It.push(r.y);
@@ -4765,7 +4794,7 @@ function Aa(t, e) {
4765
4794
  }
4766
4795
  return !1;
4767
4796
  }
4768
- function bc(t, e = "blob", n = 1) {
4797
+ function wc(t, e = "blob", n = 1) {
4769
4798
  return new Promise((r) => {
4770
4799
  const s = document.createElement("canvas"), o = s.getContext("2d");
4771
4800
  s.width = t.videoWidth, s.height = t.videoHeight, o == null || o.drawImage(t, 0, 0, s.width, s.height), e === "blob" ? s.toBlob(
@@ -4778,10 +4807,10 @@ function bc(t, e = "blob", n = 1) {
4778
4807
  ) : r(s.toDataURL("image/png", n));
4779
4808
  });
4780
4809
  }
4781
- async function wc(t) {
4810
+ async function vc(t) {
4782
4811
  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
4812
  if (!d) return !1;
4784
- const l = [], v = Ta(e, n, o, c, f);
4813
+ const l = [], v = Ea(e, n, o, c, f);
4785
4814
  for (const O of v) {
4786
4815
  const I = await O;
4787
4816
  if (!I) continue;
@@ -4790,76 +4819,77 @@ async function wc(t) {
4790
4819
  }
4791
4820
  return l.includes(!0);
4792
4821
  }
4793
- const vc = { DATE_VALUE_FORMAT: Qs, COMMON_TEXT: dt, IMAGE_TYPE: pn, MEDIA_TYPE: mn, DOC_TYPE: gn, FILE_TYPE: ei }, Tc = {
4794
- encodeURIToParams: bn,
4822
+ const Ec = { DATE_VALUE_FORMAT: ti, COMMON_TEXT: dt, IMAGE_TYPE: pn, MEDIA_TYPE: mn, DOC_TYPE: gn, FILE_TYPE: ni }, Tc = {
4823
+ encodeURIToParams: wn,
4795
4824
  paramsToQueryString: li,
4796
4825
  queryStringToParams: hi,
4797
4826
  errorCodeToString: yn,
4798
- YNToString: ni,
4799
- HNToString: ri,
4827
+ YNToString: ri,
4828
+ HNToString: si,
4800
4829
  valueToLabel: ci,
4801
4830
  chargeToLabel: ui,
4802
- cascaderToLabel: xn,
4831
+ cascaderToLabel: bn,
4803
4832
  multipleSelectToLabel: fi,
4804
- phoneToAsterisk: si,
4805
- idNumberToAsterisk: ii,
4806
- firstLetterToUpperCase: oi,
4833
+ phoneToAsterisk: ii,
4834
+ idNumberToAsterisk: oi,
4835
+ firstLetterToUpperCase: xn,
4807
4836
  firstLetterToLowerCase: ai
4808
- }, Ec = {
4837
+ }, Sc = {
4809
4838
  validHttp: Ms,
4810
- validExternal: Ns,
4811
- validString: ks,
4812
- validNumberStr: Ls,
4839
+ validExternal: ks,
4840
+ validString: Ls,
4841
+ validNumberStr: Us,
4813
4842
  validEmptyObject: Hs,
4814
- validURL: Us,
4815
- validPassword: zs,
4816
- validEmail: js,
4843
+ validURL: zs,
4844
+ validPassword: js,
4845
+ validEmail: $s,
4817
4846
  validIdNumber: Re,
4818
- validPhone: Ys,
4819
- validTel: $s
4820
- }, Sc = { scrollTo: Os, addClass: Cs, removeClass: Ds, hasClass: Se, toggleClass: Bs, noContextmenu: qs, useRafThrottle: Ps }, Rc = { parseTime: Yt, getTimeDistance: _s, getDayRange: Is }, Oc = { local: dn, session: ct }, Fc = { uuid: As, randomNum: Fs };
4847
+ validPhone: Ks,
4848
+ validTel: Ys
4849
+ }, Rc = { scrollTo: Fs, addClass: Ds, removeClass: qs, hasClass: Se, toggleClass: Cs, noContextmenu: Ns, useRafThrottle: Ps }, Oc = { parseTime: Yt, getTimeDistance: Is, getDayRange: Bs }, Fc = { local: dn, session: ct }, _c = { uuid: As, randomNum: _s };
4821
4850
  export {
4822
- vc as CONSTANTS,
4823
- Me as NOOP,
4851
+ Ec as CONSTANTS,
4852
+ fc as CommonRequest,
4853
+ Ne as NOOP,
4824
4854
  Yo as NetworkManager,
4825
4855
  uc as Request,
4826
4856
  jo as TokenManager,
4827
- lc as addResizeListener,
4828
- Oc as cacheUtil,
4857
+ hc as addResizeListener,
4858
+ Fc as cacheUtil,
4829
4859
  Ba as countdownTimer,
4830
4860
  La as creatCancelTask,
4831
- Rc as dateUtil,
4861
+ Oc as dateUtil,
4832
4862
  Da as debounce,
4833
- Ha as downloadFile,
4834
- Sc as elementUtil,
4835
- yc as faceLivingEvent,
4836
- xc as faceLivingEventHint,
4837
- Na as getArrayFullUrl,
4838
- qa as getBirthdayByIdNumber,
4839
- wc as getFaceGestureResult,
4840
- bc as getFaceVideoFrame,
4841
- Js as getFullUrl,
4842
- Pa as getGenderByIdNumber,
4863
+ Ua as downloadFile,
4864
+ Rc as elementUtil,
4865
+ xc as faceLivingEvent,
4866
+ bc as faceLivingEventHint,
4867
+ Ma as getArrayFullUrl,
4868
+ Pa as getBirthdayByIdNumber,
4869
+ vc as getFaceGestureResult,
4870
+ wc as getFaceVideoFrame,
4871
+ Ws as getFullUrl,
4872
+ qa as getGenderByIdNumber,
4843
4873
  Vs as getLocationConfig,
4844
4874
  $a as getMapLocationIcon,
4845
- Ua as getPercentage,
4875
+ Ha as getPercentage,
4846
4876
  Ca as getRandomItemInArray,
4847
- fc as getRequestBaseUrl,
4848
- Ma as getSystemConfig,
4877
+ lc as getRequestBaseUrl,
4878
+ Na as getSystemConfig,
4849
4879
  za as loadCss,
4850
4880
  ja as loadJs,
4851
- Fc as randomUtil,
4852
- hc as removeResizeListener,
4881
+ _c as randomUtil,
4882
+ dc as removeResizeListener,
4853
4883
  ka as ricTask,
4854
4884
  Ia as sleep,
4855
- Gn as sm2Crypto,
4856
- pc as sm2Decrypt,
4857
- dc as sm2Encrypt,
4858
- Xn as sm4Crypto,
4859
- gc as sm4Decrypt,
4860
- mc as sm4Encrypt,
4885
+ Xn as sm2Crypto,
4886
+ mc as sm2Decrypt,
4887
+ pc as sm2Encrypt,
4888
+ Qn as sm4Crypto,
4889
+ yc as sm4Decrypt,
4890
+ gc as sm4Encrypt,
4861
4891
  Tc as toUtil,
4862
- Ks as transformPathName,
4863
- Ws as trimArray,
4864
- Ec as validUtil
4892
+ Js as transformPathName,
4893
+ Zs as trimArray,
4894
+ Sc as validUtil
4865
4895
  };