@pubinfo/module-crypto 2.1.12 → 2.2.0-beta.1

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/dist/index.js CHANGED
@@ -1,63 +1,58 @@
1
- import { PubinfoIcon as e, createContext as t, defineIconModule as n, defineRouteModule as r, useAuth as i, wrapProxy as a } from "pubinfo";
2
- import { Button as o, CheckableTag as s, Drawer as c, Form as l, FormItem as u, Input as d, Space as f, Switch as p, Textarea as m } from "ant-design-vue/es";
3
- import { PlusCircleOutlined as h, QuestionCircleOutlined as g } from "@ant-design/icons-vue";
4
- import { createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, isRef as w, normalizeClass as T, onMounted as E, openBlock as D, reactive as O, ref as k, resolveDirective as A, shallowRef as j, toDisplayString as M, toValue as ee, unref as N, withCtx as P, withDirectives as te } from "vue";
5
- import { ProTable as F } from "@pubinfo/pro-components";
6
- import { Modal as I, message as ne } from "ant-design-vue";
1
+ import { createContext as e, defineIconModule as t, defineRouteModule as n, wrapProxy as r } from "pubinfo";
7
2
  import './index.css';//#region \0rolldown/runtime.js
8
- var re = Object.create, ie = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, oe = Object.getOwnPropertyNames, L = Object.getPrototypeOf, se = Object.prototype.hasOwnProperty, R = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), ce = (e, t) => {
3
+ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.getPrototypeOf, l = Object.prototype.hasOwnProperty, u = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), d = (e, t) => {
9
4
  let n = {};
10
- for (var r in e) ie(n, r, {
5
+ for (var r in e) a(n, r, {
11
6
  get: e[r],
12
7
  enumerable: !0
13
8
  });
14
- return t || ie(n, Symbol.toStringTag, { value: "Module" }), n;
15
- }, le = (e, t, n, r) => {
16
- if (t && typeof t == "object" || typeof t == "function") for (var i = oe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !se.call(e, s) && s !== n && ie(e, s, {
17
- get: ((e) => t[e]).bind(null, s),
18
- enumerable: !(r = ae(t, s)) || r.enumerable
9
+ return t || a(n, Symbol.toStringTag, { value: "Module" }), n;
10
+ }, f = (e, t, n, r) => {
11
+ if (t && typeof t == "object" || typeof t == "function") for (var i = s(t), c = 0, u = i.length, d; c < u; c++) d = i[c], !l.call(e, d) && d !== n && a(e, d, {
12
+ get: ((e) => t[e]).bind(null, d),
13
+ enumerable: !(r = o(t, d)) || r.enumerable
19
14
  });
20
15
  return e;
21
- }, ue = (e, t, n) => (n = e == null ? {} : re(L(e)), le(t || !e || !e.__esModule ? ie(n, "default", {
16
+ }, p = (e, t, n) => (n = e == null ? {} : i(c(e)), f(t || !e || !e.__esModule ? a(n, "default", {
22
17
  value: e,
23
18
  enumerable: !0
24
- }) : n, e)), de = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
19
+ }) : n, e)), m = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
25
20
  if (typeof require < "u") return require.apply(this, arguments);
26
21
  throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
27
- }), fe = {
22
+ }), h = {
28
23
  icons: {},
29
24
  layouts: {},
30
25
  pages: {
31
- "src/pages/setting.vue": () => Promise.resolve().then(() => Dr),
32
- "src/pages/components/drawerCryptoUrl.vue": () => Promise.resolve().then(() => dr)
26
+ "src/pages/setting.vue": () => import("./setting-DqRQHDJJ.js"),
27
+ "src/pages/components/drawerCryptoUrl.vue": () => import("./drawerCryptoUrl-BtGF8N07.js").then((e) => e.n)
33
28
  }
34
- }, pe = t("crypto-api"), me = a(pe.use, "request");
29
+ }, g = e("crypto-api"), _ = r(g.use, "request");
35
30
  //#endregion
36
31
  //#region src/api/modules/crypto/pubSysConfigController.ts
37
- function he(e, t) {
38
- return me.Post("/crypto/editCryptoConfig", e, {
32
+ function v(e, t) {
33
+ return _.Post("/crypto/editCryptoConfig", e, {
39
34
  headers: { "Content-Type": "application/json" },
40
35
  ...t || {}
41
36
  });
42
37
  }
43
- function ge(e) {
44
- return me.Get("/crypto/getCryptoConfig", { ...e || {} });
38
+ function y(e) {
39
+ return _.Get("/crypto/getCryptoConfig", { ...e || {} });
45
40
  }
46
- function _e(e) {
47
- return me.Get("/crypto/getPublicKeyAndConfig", { ...e || {} });
41
+ function b(e) {
42
+ return _.Get("/crypto/getPublicKeyAndConfig", { ...e || {} });
48
43
  }
49
44
  //#endregion
50
45
  //#region src/context.ts
51
- var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
46
+ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
52
47
  t.exports = {};
53
- })), B = /* @__PURE__ */ R(((e, t) => {
48
+ })), C = /* @__PURE__ */ u(((e, t) => {
54
49
  (function(n, r) {
55
50
  typeof e == "object" ? t.exports = e = r() : typeof define == "function" && define.amd ? define([], r) : n.CryptoJS = r();
56
51
  })(e, function() {
57
52
  var e = e || function(e, t) {
58
53
  var n;
59
- if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof global < "u" && global.crypto && (n = global.crypto), !n && typeof de == "function") try {
60
- n = ve();
54
+ if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof global < "u" && global.crypto && (n = global.crypto), !n && typeof m == "function") try {
55
+ n = S();
61
56
  } catch {}
62
57
  var r = function() {
63
58
  if (n) {
@@ -204,18 +199,18 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
204
199
  },
205
200
  _createHmacHelper: function(e) {
206
201
  return function(t, n) {
207
- return new m.HMAC.init(e, n).finalize(t);
202
+ return new h.HMAC.init(e, n).finalize(t);
208
203
  };
209
204
  }
210
205
  });
211
- var m = a.algo = {};
206
+ var h = a.algo = {};
212
207
  return a;
213
208
  }(Math);
214
209
  return e;
215
210
  });
216
- })), ye = /* @__PURE__ */ R(((e, t) => {
211
+ })), w = /* @__PURE__ */ u(((e, t) => {
217
212
  (function(n, r) {
218
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
213
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
219
214
  })(e, function(e) {
220
215
  return (function(t) {
221
216
  var n = e, r = n.lib, i = r.Base, a = r.WordArray, o = n.x64 = {};
@@ -239,9 +234,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
239
234
  });
240
235
  })(), e;
241
236
  });
242
- })), be = /* @__PURE__ */ R(((e, t) => {
237
+ })), T = /* @__PURE__ */ u(((e, t) => {
243
238
  (function(n, r) {
244
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
239
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
245
240
  })(e, function(e) {
246
241
  return (function() {
247
242
  if (typeof ArrayBuffer == "function") {
@@ -255,9 +250,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
255
250
  }
256
251
  })(), e.lib.WordArray;
257
252
  });
258
- })), xe = /* @__PURE__ */ R(((e, t) => {
253
+ })), E = /* @__PURE__ */ u(((e, t) => {
259
254
  (function(n, r) {
260
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
255
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
261
256
  })(e, function(e) {
262
257
  return (function() {
263
258
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -291,9 +286,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
291
286
  }
292
287
  })(), e.enc.Utf16;
293
288
  });
294
- })), Se = /* @__PURE__ */ R(((e, t) => {
289
+ })), D = /* @__PURE__ */ u(((e, t) => {
295
290
  (function(n, r) {
296
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
291
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
297
292
  })(e, function(e) {
298
293
  return (function() {
299
294
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -330,9 +325,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
330
325
  }
331
326
  })(), e.enc.Base64;
332
327
  });
333
- })), Ce = /* @__PURE__ */ R(((e, t) => {
328
+ })), O = /* @__PURE__ */ u(((e, t) => {
334
329
  (function(n, r) {
335
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
330
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
336
331
  })(e, function(e) {
337
332
  return (function() {
338
333
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -372,9 +367,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
372
367
  }
373
368
  })(), e.enc.Base64url;
374
369
  });
375
- })), we = /* @__PURE__ */ R(((e, t) => {
370
+ })), k = /* @__PURE__ */ u(((e, t) => {
376
371
  (function(n, r) {
377
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
372
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
378
373
  })(e, function(e) {
379
374
  return (function(t) {
380
375
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = [];
@@ -433,9 +428,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
433
428
  n.MD5 = a._createHelper(c), n.HmacMD5 = a._createHmacHelper(c);
434
429
  })(Math), e.MD5;
435
430
  });
436
- })), Te = /* @__PURE__ */ R(((e, t) => {
431
+ })), A = /* @__PURE__ */ u(((e, t) => {
437
432
  (function(n, r) {
438
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
433
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
439
434
  })(e, function(e) {
440
435
  return (function() {
441
436
  var t = e, n = t.lib, r = n.WordArray, i = n.Hasher, a = t.algo, o = [], s = a.SHA1 = i.extend({
@@ -472,9 +467,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
472
467
  t.SHA1 = i._createHelper(s), t.HmacSHA1 = i._createHmacHelper(s);
473
468
  })(), e.SHA1;
474
469
  });
475
- })), Ee = /* @__PURE__ */ R(((e, t) => {
470
+ })), j = /* @__PURE__ */ u(((e, t) => {
476
471
  (function(n, r) {
477
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
472
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
478
473
  })(e, function(e) {
479
474
  return (function(t) {
480
475
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = [], c = [];
@@ -516,9 +511,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
516
511
  n.SHA256 = a._createHelper(u), n.HmacSHA256 = a._createHmacHelper(u);
517
512
  })(Math), e.SHA256;
518
513
  });
519
- })), De = /* @__PURE__ */ R(((e, t) => {
514
+ })), M = /* @__PURE__ */ u(((e, t) => {
520
515
  (function(n, r, i) {
521
- typeof e == "object" ? t.exports = e = r(B(), Ee()) : typeof define == "function" && define.amd ? define(["./core", "./sha256"], r) : r(n.CryptoJS);
516
+ typeof e == "object" ? t.exports = e = r(C(), j()) : typeof define == "function" && define.amd ? define(["./core", "./sha256"], r) : r(n.CryptoJS);
522
517
  })(e, function(e) {
523
518
  return (function() {
524
519
  var t = e, n = t.lib.WordArray, r = t.algo, i = r.SHA256, a = r.SHA224 = i.extend({
@@ -542,9 +537,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
542
537
  t.SHA224 = i._createHelper(a), t.HmacSHA224 = i._createHmacHelper(a);
543
538
  })(), e.SHA224;
544
539
  });
545
- })), Oe = /* @__PURE__ */ R(((e, t) => {
540
+ })), ee = /* @__PURE__ */ u(((e, t) => {
546
541
  (function(n, r, i) {
547
- typeof e == "object" ? t.exports = e = r(B(), ye()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
542
+ typeof e == "object" ? t.exports = e = r(C(), w()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
548
543
  })(e, function(e) {
549
544
  return (function() {
550
545
  var t = e, n = t.lib.Hasher, r = t.x64, i = r.Word, a = r.WordArray, o = t.algo;
@@ -650,17 +645,17 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
650
645
  ]);
651
646
  },
652
647
  _doProcessBlock: function(e, t) {
653
- for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, ee = _, N = v, P = y, te = b, F = x, I = S, ne = C, re = w, ie = T, ae = E, oe = D, L = O, se = 0; se < 80; se++) {
654
- var R, ce, le = l[se];
655
- if (se < 16) ce = le.high = e[t + se * 2] | 0, R = le.low = e[t + se * 2 + 1] | 0;
648
+ for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, ee = _, N = v, te = y, ne = b, P = x, F = S, I = C, L = w, re = T, ie = E, ae = D, R = O, z = 0; z < 80; z++) {
649
+ var oe, se, ce = l[z];
650
+ if (z < 16) se = ce.high = e[t + z * 2] | 0, oe = ce.low = e[t + z * 2 + 1] | 0;
656
651
  else {
657
- var ue = l[se - 15], de = ue.high, fe = ue.low, pe = (de >>> 1 | fe << 31) ^ (de >>> 8 | fe << 24) ^ de >>> 7, me = (fe >>> 1 | de << 31) ^ (fe >>> 8 | de << 24) ^ (fe >>> 7 | de << 25), he = l[se - 2], ge = he.high, _e = he.low, z = (ge >>> 19 | _e << 13) ^ (ge << 3 | _e >>> 29) ^ ge >>> 6, ve = (_e >>> 19 | ge << 13) ^ (_e << 3 | ge >>> 29) ^ (_e >>> 6 | ge << 26), B = l[se - 7], ye = B.high, be = B.low, xe = l[se - 16], Se = xe.high, Ce = xe.low;
658
- R = me + be, ce = pe + ye + (R >>> 0 < me >>> 0 ? 1 : 0), R += ve, ce = ce + z + (R >>> 0 < ve >>> 0 ? 1 : 0), R += Ce, ce = ce + Se + (R >>> 0 < Ce >>> 0 ? 1 : 0), le.high = ce, le.low = R;
652
+ var le = l[z - 15], ue = le.high, de = le.low, fe = (ue >>> 1 | de << 31) ^ (ue >>> 8 | de << 24) ^ ue >>> 7, pe = (de >>> 1 | ue << 31) ^ (de >>> 8 | ue << 24) ^ (de >>> 7 | ue << 25), me = l[z - 2], he = me.high, ge = me.low, _e = (he >>> 19 | ge << 13) ^ (he << 3 | ge >>> 29) ^ he >>> 6, ve = (ge >>> 19 | he << 13) ^ (ge << 3 | he >>> 29) ^ (ge >>> 6 | he << 26), ye = l[z - 7], be = ye.high, xe = ye.low, Se = l[z - 16], Ce = Se.high, we = Se.low;
653
+ oe = pe + xe, se = fe + be + (oe >>> 0 < pe >>> 0 ? 1 : 0), oe += ve, se = se + _e + (oe >>> 0 < ve >>> 0 ? 1 : 0), oe += we, se = se + Ce + (oe >>> 0 < we >>> 0 ? 1 : 0), ce.high = se, ce.low = oe;
659
654
  }
660
- var we = F & ne ^ ~F & ie, Te = I & re ^ ~I & ae, Ee = k & j ^ k & ee ^ j & ee, De = A & M ^ A & N ^ M & N, Oe = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), ke = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), Ae = (F >>> 14 | I << 18) ^ (F >>> 18 | I << 14) ^ (F << 23 | I >>> 9), je = (I >>> 14 | F << 18) ^ (I >>> 18 | F << 14) ^ (I << 23 | F >>> 9), Me = c[se], Ne = Me.high, Pe = Me.low, V = L + je, Fe = oe + Ae + (V >>> 0 < L >>> 0 ? 1 : 0), V = V + Te, Fe = Fe + we + (V >>> 0 < Te >>> 0 ? 1 : 0), V = V + Pe, Fe = Fe + Ne + (V >>> 0 < Pe >>> 0 ? 1 : 0), V = V + R, Fe = Fe + ce + (V >>> 0 < R >>> 0 ? 1 : 0), Ie = ke + De, Le = Oe + Ee + (Ie >>> 0 < ke >>> 0 ? 1 : 0);
661
- oe = ie, L = ae, ie = ne, ae = re, ne = F, re = I, I = te + V | 0, F = P + Fe + (I >>> 0 < te >>> 0 ? 1 : 0) | 0, P = ee, te = N, ee = j, N = M, j = k, M = A, A = V + Ie | 0, k = Fe + Le + (A >>> 0 < V >>> 0 ? 1 : 0) | 0;
655
+ var Te = P & I ^ ~P & re, Ee = F & L ^ ~F & ie, De = k & j ^ k & ee ^ j & ee, Oe = A & M ^ A & N ^ M & N, ke = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), Ae = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), je = (P >>> 14 | F << 18) ^ (P >>> 18 | F << 14) ^ (P << 23 | F >>> 9), Me = (F >>> 14 | P << 18) ^ (F >>> 18 | P << 14) ^ (F << 23 | P >>> 9), Ne = c[z], Pe = Ne.high, Fe = Ne.low, B = R + Me, Ie = ae + je + (B >>> 0 < R >>> 0 ? 1 : 0), B = B + Ee, Ie = Ie + Te + (B >>> 0 < Ee >>> 0 ? 1 : 0), B = B + Fe, Ie = Ie + Pe + (B >>> 0 < Fe >>> 0 ? 1 : 0), B = B + oe, Ie = Ie + se + (B >>> 0 < oe >>> 0 ? 1 : 0), Le = Ae + Oe, Re = ke + De + (Le >>> 0 < Ae >>> 0 ? 1 : 0);
656
+ ae = re, R = ie, re = I, ie = L, I = P, L = F, F = ne + B | 0, P = te + Ie + (F >>> 0 < ne >>> 0 ? 1 : 0) | 0, te = ee, ne = N, ee = j, N = M, j = k, M = A, A = B + Le | 0, k = Ie + Re + (A >>> 0 < B >>> 0 ? 1 : 0) | 0;
662
657
  }
663
- m = r.low = m + A, r.high = p + k + (m >>> 0 < A >>> 0 ? 1 : 0), g = i.low = g + M, i.high = h + j + (g >>> 0 < M >>> 0 ? 1 : 0), v = a.low = v + N, a.high = _ + ee + (v >>> 0 < N >>> 0 ? 1 : 0), b = o.low = b + te, o.high = y + P + (b >>> 0 < te >>> 0 ? 1 : 0), S = s.low = S + I, s.high = x + F + (S >>> 0 < I >>> 0 ? 1 : 0), w = u.low = w + re, u.high = C + ne + (w >>> 0 < re >>> 0 ? 1 : 0), E = d.low = E + ae, d.high = T + ie + (E >>> 0 < ae >>> 0 ? 1 : 0), O = f.low = O + L, f.high = D + oe + (O >>> 0 < L >>> 0 ? 1 : 0);
658
+ m = r.low = m + A, r.high = p + k + (m >>> 0 < A >>> 0 ? 1 : 0), g = i.low = g + M, i.high = h + j + (g >>> 0 < M >>> 0 ? 1 : 0), v = a.low = v + N, a.high = _ + ee + (v >>> 0 < N >>> 0 ? 1 : 0), b = o.low = b + ne, o.high = y + te + (b >>> 0 < ne >>> 0 ? 1 : 0), S = s.low = S + F, s.high = x + P + (S >>> 0 < F >>> 0 ? 1 : 0), w = u.low = w + L, u.high = C + I + (w >>> 0 < L >>> 0 ? 1 : 0), E = d.low = E + ie, d.high = T + re + (E >>> 0 < ie >>> 0 ? 1 : 0), O = f.low = O + R, f.high = D + ae + (O >>> 0 < R >>> 0 ? 1 : 0);
664
659
  },
665
660
  _doFinalize: function() {
666
661
  var e = this._data, t = e.words, n = this._nDataBytes * 8, r = e.sigBytes * 8;
@@ -675,9 +670,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
675
670
  t.SHA512 = n._createHelper(u), t.HmacSHA512 = n._createHmacHelper(u);
676
671
  })(), e.SHA512;
677
672
  });
678
- })), ke = /* @__PURE__ */ R(((e, t) => {
673
+ })), N = /* @__PURE__ */ u(((e, t) => {
679
674
  (function(n, r, i) {
680
- typeof e == "object" ? t.exports = e = r(B(), ye(), Oe()) : typeof define == "function" && define.amd ? define([
675
+ typeof e == "object" ? t.exports = e = r(C(), w(), ee()) : typeof define == "function" && define.amd ? define([
681
676
  "./core",
682
677
  "./x64-core",
683
678
  "./sha512"
@@ -705,9 +700,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
705
700
  t.SHA384 = o._createHelper(s), t.HmacSHA384 = o._createHmacHelper(s);
706
701
  })(), e.SHA384;
707
702
  });
708
- })), Ae = /* @__PURE__ */ R(((e, t) => {
703
+ })), te = /* @__PURE__ */ u(((e, t) => {
709
704
  (function(n, r, i) {
710
- typeof e == "object" ? t.exports = e = r(B(), ye()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
705
+ typeof e == "object" ? t.exports = e = r(C(), w()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
711
706
  })(e, function(e) {
712
707
  return (function(t) {
713
708
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.x64.Word, s = n.algo, c = [], l = [], u = [];
@@ -794,9 +789,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
794
789
  n.SHA3 = a._createHelper(f), n.HmacSHA3 = a._createHmacHelper(f);
795
790
  })(Math), e.SHA3;
796
791
  });
797
- })), je = /* @__PURE__ */ R(((e, t) => {
792
+ })), ne = /* @__PURE__ */ u(((e, t) => {
798
793
  (function(n, r) {
799
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
794
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
800
795
  })(e, function(e) {
801
796
  return (function(t) {
802
797
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = i.create([
@@ -1188,9 +1183,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1188
1183
  n.RIPEMD160 = a._createHelper(p), n.HmacRIPEMD160 = a._createHmacHelper(p);
1189
1184
  })(Math), e.RIPEMD160;
1190
1185
  });
1191
- })), Me = /* @__PURE__ */ R(((e, t) => {
1186
+ })), P = /* @__PURE__ */ u(((e, t) => {
1192
1187
  (function(n, r) {
1193
- typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1188
+ typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1194
1189
  })(e, function(e) {
1195
1190
  (function() {
1196
1191
  var t = e, n = t.lib.Base, r = t.enc.Utf8, i = t.algo;
@@ -1216,9 +1211,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1216
1211
  });
1217
1212
  })();
1218
1213
  });
1219
- })), Ne = /* @__PURE__ */ R(((e, t) => {
1214
+ })), F = /* @__PURE__ */ u(((e, t) => {
1220
1215
  (function(n, r, i) {
1221
- typeof e == "object" ? t.exports = e = r(B(), Ee(), Me()) : typeof define == "function" && define.amd ? define([
1216
+ typeof e == "object" ? t.exports = e = r(C(), j(), P()) : typeof define == "function" && define.amd ? define([
1222
1217
  "./core",
1223
1218
  "./sha256",
1224
1219
  "./hmac"
@@ -1252,9 +1247,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1252
1247
  };
1253
1248
  })(), e.PBKDF2;
1254
1249
  });
1255
- })), Pe = /* @__PURE__ */ R(((e, t) => {
1250
+ })), I = /* @__PURE__ */ u(((e, t) => {
1256
1251
  (function(n, r, i) {
1257
- typeof e == "object" ? t.exports = e = r(B(), Te(), Me()) : typeof define == "function" && define.amd ? define([
1252
+ typeof e == "object" ? t.exports = e = r(C(), A(), P()) : typeof define == "function" && define.amd ? define([
1258
1253
  "./core",
1259
1254
  "./sha1",
1260
1255
  "./hmac"
@@ -1284,9 +1279,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1284
1279
  };
1285
1280
  })(), e.EvpKDF;
1286
1281
  });
1287
- })), V = /* @__PURE__ */ R(((e, t) => {
1282
+ })), L = /* @__PURE__ */ u(((e, t) => {
1288
1283
  (function(n, r, i) {
1289
- typeof e == "object" ? t.exports = e = r(B(), Pe()) : typeof define == "function" && define.amd ? define(["./core", "./evpkdf"], r) : r(n.CryptoJS);
1284
+ typeof e == "object" ? t.exports = e = r(C(), I()) : typeof define == "function" && define.amd ? define(["./core", "./evpkdf"], r) : r(n.CryptoJS);
1290
1285
  })(e, function(e) {
1291
1286
  e.lib.Cipher || function(t) {
1292
1287
  var n = e, r = n.lib, i = r.Base, a = r.WordArray, o = r.BufferedBlockAlgorithm, s = n.enc;
@@ -1463,9 +1458,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1463
1458
  });
1464
1459
  }();
1465
1460
  });
1466
- })), Fe = /* @__PURE__ */ R(((e, t) => {
1461
+ })), re = /* @__PURE__ */ u(((e, t) => {
1467
1462
  (function(n, r, i) {
1468
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1463
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1469
1464
  })(e, function(e) {
1470
1465
  return e.mode.CFB = function() {
1471
1466
  var t = e.lib.BlockCipherMode.extend();
@@ -1484,9 +1479,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1484
1479
  return t;
1485
1480
  }(), e.mode.CFB;
1486
1481
  });
1487
- })), Ie = /* @__PURE__ */ R(((e, t) => {
1482
+ })), ie = /* @__PURE__ */ u(((e, t) => {
1488
1483
  (function(n, r, i) {
1489
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1484
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1490
1485
  })(e, function(e) {
1491
1486
  return e.mode.CTR = function() {
1492
1487
  var t = e.lib.BlockCipherMode.extend();
@@ -1499,9 +1494,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1499
1494
  } }), t;
1500
1495
  }(), e.mode.CTR;
1501
1496
  });
1502
- })), Le = /* @__PURE__ */ R(((e, t) => {
1497
+ })), ae = /* @__PURE__ */ u(((e, t) => {
1503
1498
  (function(n, r, i) {
1504
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1499
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1505
1500
  })(e, function(e) {
1506
1501
  return e.mode.CTRGladman = function() {
1507
1502
  var t = e.lib.BlockCipherMode.extend();
@@ -1524,9 +1519,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1524
1519
  } }), t;
1525
1520
  }(), e.mode.CTRGladman;
1526
1521
  });
1527
- })), Re = /* @__PURE__ */ R(((e, t) => {
1522
+ })), R = /* @__PURE__ */ u(((e, t) => {
1528
1523
  (function(n, r, i) {
1529
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1524
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1530
1525
  })(e, function(e) {
1531
1526
  return e.mode.OFB = function() {
1532
1527
  var t = e.lib.BlockCipherMode.extend();
@@ -1537,9 +1532,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1537
1532
  } }), t;
1538
1533
  }(), e.mode.OFB;
1539
1534
  });
1540
- })), ze = /* @__PURE__ */ R(((e, t) => {
1535
+ })), z = /* @__PURE__ */ u(((e, t) => {
1541
1536
  (function(n, r, i) {
1542
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1537
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1543
1538
  })(e, function(e) {
1544
1539
  return e.mode.ECB = function() {
1545
1540
  var t = e.lib.BlockCipherMode.extend();
@@ -1550,9 +1545,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1550
1545
  } }), t;
1551
1546
  }(), e.mode.ECB;
1552
1547
  });
1553
- })), Be = /* @__PURE__ */ R(((e, t) => {
1548
+ })), oe = /* @__PURE__ */ u(((e, t) => {
1554
1549
  (function(n, r, i) {
1555
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1550
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1556
1551
  })(e, function(e) {
1557
1552
  return e.pad.AnsiX923 = {
1558
1553
  pad: function(e, t) {
@@ -1565,9 +1560,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1565
1560
  }
1566
1561
  }, e.pad.Ansix923;
1567
1562
  });
1568
- })), Ve = /* @__PURE__ */ R(((e, t) => {
1563
+ })), se = /* @__PURE__ */ u(((e, t) => {
1569
1564
  (function(n, r, i) {
1570
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1565
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1571
1566
  })(e, function(e) {
1572
1567
  return e.pad.Iso10126 = {
1573
1568
  pad: function(t, n) {
@@ -1580,9 +1575,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1580
1575
  }
1581
1576
  }, e.pad.Iso10126;
1582
1577
  });
1583
- })), He = /* @__PURE__ */ R(((e, t) => {
1578
+ })), ce = /* @__PURE__ */ u(((e, t) => {
1584
1579
  (function(n, r, i) {
1585
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1580
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1586
1581
  })(e, function(e) {
1587
1582
  return e.pad.Iso97971 = {
1588
1583
  pad: function(t, n) {
@@ -1593,9 +1588,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1593
1588
  }
1594
1589
  }, e.pad.Iso97971;
1595
1590
  });
1596
- })), Ue = /* @__PURE__ */ R(((e, t) => {
1591
+ })), le = /* @__PURE__ */ u(((e, t) => {
1597
1592
  (function(n, r, i) {
1598
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1593
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1599
1594
  })(e, function(e) {
1600
1595
  return e.pad.ZeroPadding = {
1601
1596
  pad: function(e, t) {
@@ -1610,18 +1605,18 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1610
1605
  }
1611
1606
  }, e.pad.ZeroPadding;
1612
1607
  });
1613
- })), We = /* @__PURE__ */ R(((e, t) => {
1608
+ })), ue = /* @__PURE__ */ u(((e, t) => {
1614
1609
  (function(n, r, i) {
1615
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1610
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1616
1611
  })(e, function(e) {
1617
1612
  return e.pad.NoPadding = {
1618
1613
  pad: function() {},
1619
1614
  unpad: function() {}
1620
1615
  }, e.pad.NoPadding;
1621
1616
  });
1622
- })), Ge = /* @__PURE__ */ R(((e, t) => {
1617
+ })), de = /* @__PURE__ */ u(((e, t) => {
1623
1618
  (function(n, r, i) {
1624
- typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1619
+ typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1625
1620
  })(e, function(e) {
1626
1621
  return (function(t) {
1627
1622
  var n = e, r = n.lib.CipherParams, i = n.enc.Hex, a = n.format;
@@ -1636,9 +1631,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1636
1631
  };
1637
1632
  })(), e.format.Hex;
1638
1633
  });
1639
- })), Ke = /* @__PURE__ */ R(((e, t) => {
1634
+ })), fe = /* @__PURE__ */ u(((e, t) => {
1640
1635
  (function(n, r, i) {
1641
- typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
1636
+ typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
1642
1637
  "./core",
1643
1638
  "./enc-base64",
1644
1639
  "./md5",
@@ -1706,9 +1701,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
1706
1701
  t.AES = n._createHelper(h);
1707
1702
  })(), e.AES;
1708
1703
  });
1709
- })), qe = /* @__PURE__ */ R(((e, t) => {
1704
+ })), pe = /* @__PURE__ */ u(((e, t) => {
1710
1705
  (function(n, r, i) {
1711
- typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
1706
+ typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
1712
1707
  "./core",
1713
1708
  "./enc-base64",
1714
1709
  "./md5",
@@ -2440,9 +2435,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
2440
2435
  t.TripleDES = i._createHelper(m);
2441
2436
  })(), e.TripleDES;
2442
2437
  });
2443
- })), Je = /* @__PURE__ */ R(((e, t) => {
2438
+ })), me = /* @__PURE__ */ u(((e, t) => {
2444
2439
  (function(n, r, i) {
2445
- typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
2440
+ typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
2446
2441
  "./core",
2447
2442
  "./enc-base64",
2448
2443
  "./md5",
@@ -2487,9 +2482,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
2487
2482
  t.RC4Drop = n._createHelper(o);
2488
2483
  })(), e.RC4;
2489
2484
  });
2490
- })), Ye = /* @__PURE__ */ R(((e, t) => {
2485
+ })), he = /* @__PURE__ */ u(((e, t) => {
2491
2486
  (function(n, r, i) {
2492
- typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
2487
+ typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
2493
2488
  "./core",
2494
2489
  "./enc-base64",
2495
2490
  "./md5",
@@ -2549,9 +2544,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
2549
2544
  t.Rabbit = n._createHelper(s);
2550
2545
  })(), e.Rabbit;
2551
2546
  });
2552
- })), Xe = /* @__PURE__ */ R(((e, t) => {
2547
+ })), ge = /* @__PURE__ */ u(((e, t) => {
2553
2548
  (function(n, r, i) {
2554
- typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
2549
+ typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
2555
2550
  "./core",
2556
2551
  "./enc-base64",
2557
2552
  "./md5",
@@ -2610,9 +2605,9 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
2610
2605
  t.RabbitLegacy = n._createHelper(s);
2611
2606
  })(), e.RabbitLegacy;
2612
2607
  });
2613
- })), Ze = /* @__PURE__ */ R(((e, t) => {
2608
+ })), _e = /* @__PURE__ */ u(((e, t) => {
2614
2609
  (function(n, r, i) {
2615
- typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
2610
+ typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
2616
2611
  "./core",
2617
2612
  "./enc-base64",
2618
2613
  "./md5",
@@ -3733,122 +3728,122 @@ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
3733
3728
  t.Blowfish = n._createHelper(d);
3734
3729
  })(), e.Blowfish;
3735
3730
  });
3736
- })), Qe = /* @__PURE__ */ ue((/* @__PURE__ */ R(((e, t) => {
3731
+ })), ve = /* @__PURE__ */ p((/* @__PURE__ */ u(((e, t) => {
3737
3732
  (function(n, r, i) {
3738
- typeof e == "object" ? t.exports = e = r(B(), ye(), be(), xe(), Se(), Ce(), we(), Te(), Ee(), De(), Oe(), ke(), Ae(), je(), Me(), Ne(), Pe(), V(), Fe(), Ie(), Le(), Re(), ze(), Be(), Ve(), He(), Ue(), We(), Ge(), Ke(), qe(), Je(), Ye(), Xe(), Ze()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish".split(","), r) : n.CryptoJS = r(n.CryptoJS);
3733
+ typeof e == "object" ? t.exports = e = r(C(), w(), T(), E(), D(), O(), k(), A(), j(), M(), ee(), N(), te(), ne(), P(), F(), I(), L(), re(), ie(), ae(), R(), z(), oe(), se(), ce(), le(), ue(), de(), fe(), pe(), me(), he(), ge(), _e()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish".split(","), r) : n.CryptoJS = r(n.CryptoJS);
3739
3734
  })(e, function(e) {
3740
3735
  return e;
3741
3736
  });
3742
3737
  })))(), 1);
3743
- function $e(e) {
3738
+ function ye(e) {
3744
3739
  return new Promise((t) => {
3745
- let n = z.use().key || "chartext12345677";
3746
- t(Qe.default.AES.encrypt(e, Qe.default.enc.Utf8.parse(n), {
3747
- mode: Qe.default.mode.ECB,
3748
- padding: Qe.default.pad.Pkcs7
3740
+ let n = x.use().key || "chartext12345677";
3741
+ t(ve.default.AES.encrypt(e, ve.default.enc.Utf8.parse(n), {
3742
+ mode: ve.default.mode.ECB,
3743
+ padding: ve.default.pad.Pkcs7
3749
3744
  }).toString().replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replaceAll(/=/g, ""));
3750
3745
  });
3751
3746
  }
3752
- function et(e) {
3747
+ function be(e) {
3753
3748
  return new Promise((t) => {
3754
- let n = z.use().key || "chartext12345677", r = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
3749
+ let n = x.use().key || "chartext12345677", r = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
3755
3750
  for (; r.length % 4;) r += "=";
3756
- let i = Qe.default.AES.decrypt(r, Qe.default.enc.Utf8.parse(n), {
3757
- mode: Qe.default.mode.ECB,
3758
- padding: Qe.default.pad.Pkcs7
3751
+ let i = ve.default.AES.decrypt(r, ve.default.enc.Utf8.parse(n), {
3752
+ mode: ve.default.mode.ECB,
3753
+ padding: ve.default.pad.Pkcs7
3759
3754
  });
3760
3755
  try {
3761
- t(JSON.parse(i.toString(Qe.default.enc.Utf8)));
3756
+ t(JSON.parse(i.toString(ve.default.enc.Utf8)));
3762
3757
  } catch {
3763
- t(i.toString(Qe.default.enc.Utf8));
3758
+ t(i.toString(ve.default.enc.Utf8));
3764
3759
  }
3765
3760
  });
3766
3761
  }
3767
- function tt() {
3762
+ function xe() {
3768
3763
  return {
3769
3764
  name: "aes",
3770
- encrypt: $e,
3771
- decrypt: et
3765
+ encrypt: ye,
3766
+ decrypt: be
3772
3767
  };
3773
3768
  }
3774
3769
  //#endregion
3775
3770
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/util.js
3776
- var nt = "0123456789abcdefghijklmnopqrstuvwxyz";
3777
- function rt(e) {
3778
- return nt.charAt(e);
3771
+ var Se = "0123456789abcdefghijklmnopqrstuvwxyz";
3772
+ function Ce(e) {
3773
+ return Se.charAt(e);
3779
3774
  }
3780
- function it(e, t) {
3775
+ function we(e, t) {
3781
3776
  return e & t;
3782
3777
  }
3783
- function at(e, t) {
3778
+ function Te(e, t) {
3784
3779
  return e | t;
3785
3780
  }
3786
- function ot(e, t) {
3781
+ function Ee(e, t) {
3787
3782
  return e ^ t;
3788
3783
  }
3789
- function st(e, t) {
3784
+ function De(e, t) {
3790
3785
  return e & ~t;
3791
3786
  }
3792
- function ct(e) {
3787
+ function Oe(e) {
3793
3788
  if (e == 0) return -1;
3794
3789
  var t = 0;
3795
3790
  return e & 65535 || (e >>= 16, t += 16), e & 255 || (e >>= 8, t += 8), e & 15 || (e >>= 4, t += 4), e & 3 || (e >>= 2, t += 2), e & 1 || ++t, t;
3796
3791
  }
3797
- function lt(e) {
3792
+ function ke(e) {
3798
3793
  for (var t = 0; e != 0;) e &= e - 1, ++t;
3799
3794
  return t;
3800
3795
  }
3801
3796
  //#endregion
3802
3797
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/base64.js
3803
- var ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", dt = "=";
3804
- function ft(e) {
3798
+ var Ae = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", je = "=";
3799
+ function Me(e) {
3805
3800
  var t, n, r = "";
3806
- for (t = 0; t + 3 <= e.length; t += 3) n = parseInt(e.substring(t, t + 3), 16), r += ut.charAt(n >> 6) + ut.charAt(n & 63);
3807
- for (t + 1 == e.length ? (n = parseInt(e.substring(t, t + 1), 16), r += ut.charAt(n << 2)) : t + 2 == e.length && (n = parseInt(e.substring(t, t + 2), 16), r += ut.charAt(n >> 2) + ut.charAt((n & 3) << 4)); (r.length & 3) > 0;) r += dt;
3801
+ for (t = 0; t + 3 <= e.length; t += 3) n = parseInt(e.substring(t, t + 3), 16), r += Ae.charAt(n >> 6) + Ae.charAt(n & 63);
3802
+ for (t + 1 == e.length ? (n = parseInt(e.substring(t, t + 1), 16), r += Ae.charAt(n << 2)) : t + 2 == e.length && (n = parseInt(e.substring(t, t + 2), 16), r += Ae.charAt(n >> 2) + Ae.charAt((n & 3) << 4)); (r.length & 3) > 0;) r += je;
3808
3803
  return r;
3809
3804
  }
3810
- function pt(e) {
3805
+ function Ne(e) {
3811
3806
  var t = "", n, r = 0, i = 0;
3812
- for (n = 0; n < e.length && e.charAt(n) != dt; ++n) {
3813
- var a = ut.indexOf(e.charAt(n));
3814
- a < 0 || (r == 0 ? (t += rt(a >> 2), i = a & 3, r = 1) : r == 1 ? (t += rt(i << 2 | a >> 4), i = a & 15, r = 2) : r == 2 ? (t += rt(i), t += rt(a >> 2), i = a & 3, r = 3) : (t += rt(i << 2 | a >> 4), t += rt(a & 15), r = 0));
3807
+ for (n = 0; n < e.length && e.charAt(n) != je; ++n) {
3808
+ var a = Ae.indexOf(e.charAt(n));
3809
+ a < 0 || (r == 0 ? (t += Ce(a >> 2), i = a & 3, r = 1) : r == 1 ? (t += Ce(i << 2 | a >> 4), i = a & 15, r = 2) : r == 2 ? (t += Ce(i), t += Ce(a >> 2), i = a & 3, r = 3) : (t += Ce(i << 2 | a >> 4), t += Ce(a & 15), r = 0));
3815
3810
  }
3816
- return r == 1 && (t += rt(i << 2)), t;
3811
+ return r == 1 && (t += Ce(i << 2)), t;
3817
3812
  }
3818
3813
  //#endregion
3819
3814
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/asn1js/hex.js
3820
- var mt, ht = { decode: function(e) {
3815
+ var Pe, Fe = { decode: function(e) {
3821
3816
  var t;
3822
- if (mt === void 0) {
3817
+ if (Pe === void 0) {
3823
3818
  var n = "0123456789ABCDEF", r = " \f\n\r \xA0\u2028\u2029";
3824
- for (mt = {}, t = 0; t < 16; ++t) mt[n.charAt(t)] = t;
3825
- for (n = n.toLowerCase(), t = 10; t < 16; ++t) mt[n.charAt(t)] = t;
3826
- for (t = 0; t < r.length; ++t) mt[r.charAt(t)] = -1;
3819
+ for (Pe = {}, t = 0; t < 16; ++t) Pe[n.charAt(t)] = t;
3820
+ for (n = n.toLowerCase(), t = 10; t < 16; ++t) Pe[n.charAt(t)] = t;
3821
+ for (t = 0; t < r.length; ++t) Pe[r.charAt(t)] = -1;
3827
3822
  }
3828
3823
  var i = [], a = 0, o = 0;
3829
3824
  for (t = 0; t < e.length; ++t) {
3830
3825
  var s = e.charAt(t);
3831
3826
  if (s == "=") break;
3832
- if (s = mt[s], s != -1) {
3827
+ if (s = Pe[s], s != -1) {
3833
3828
  if (s === void 0) throw Error("Illegal character at offset " + t);
3834
3829
  a |= s, ++o >= 2 ? (i[i.length] = a, a = 0, o = 0) : a <<= 4;
3835
3830
  }
3836
3831
  }
3837
3832
  if (o) throw Error("Hex encoding incomplete: 4 bits missing");
3838
3833
  return i;
3839
- } }, gt, _t = {
3834
+ } }, B, Ie = {
3840
3835
  decode: function(e) {
3841
3836
  var t;
3842
- if (gt === void 0) {
3837
+ if (B === void 0) {
3843
3838
  var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = "= \f\n\r \xA0\u2028\u2029";
3844
- for (gt = Object.create(null), t = 0; t < 64; ++t) gt[n.charAt(t)] = t;
3845
- for (gt["-"] = 62, gt._ = 63, t = 0; t < r.length; ++t) gt[r.charAt(t)] = -1;
3839
+ for (B = Object.create(null), t = 0; t < 64; ++t) B[n.charAt(t)] = t;
3840
+ for (B["-"] = 62, B._ = 63, t = 0; t < r.length; ++t) B[r.charAt(t)] = -1;
3846
3841
  }
3847
3842
  var i = [], a = 0, o = 0;
3848
3843
  for (t = 0; t < e.length; ++t) {
3849
3844
  var s = e.charAt(t);
3850
3845
  if (s == "=") break;
3851
- if (s = gt[s], s != -1) {
3846
+ if (s = B[s], s != -1) {
3852
3847
  if (s === void 0) throw Error("Illegal character at offset " + t);
3853
3848
  a |= s, ++o >= 4 ? (i[i.length] = a >> 16, i[i.length] = a >> 8 & 255, i[i.length] = a & 255, a = 0, o = 0) : a <<= 6;
3854
3849
  }
@@ -3866,40 +3861,40 @@ var mt, ht = { decode: function(e) {
3866
3861
  },
3867
3862
  re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,
3868
3863
  unarmor: function(e) {
3869
- var t = _t.re.exec(e);
3864
+ var t = Ie.re.exec(e);
3870
3865
  if (t) if (t[1]) e = t[1];
3871
3866
  else if (t[2]) e = t[2];
3872
3867
  else throw Error("RegExp out of sync");
3873
- return _t.decode(e);
3868
+ return Ie.decode(e);
3874
3869
  }
3875
- }, H = 0x9184e72a000, vt = function() {
3870
+ }, Le = 0x9184e72a000, Re = function() {
3876
3871
  function e(e) {
3877
3872
  this.buf = [+e || 0];
3878
3873
  }
3879
3874
  return e.prototype.mulAdd = function(e, t) {
3880
3875
  var n = this.buf, r = n.length, i, a;
3881
- for (i = 0; i < r; ++i) a = n[i] * e + t, a < H ? t = 0 : (t = 0 | a / H, a -= t * H), n[i] = a;
3876
+ for (i = 0; i < r; ++i) a = n[i] * e + t, a < Le ? t = 0 : (t = 0 | a / Le, a -= t * Le), n[i] = a;
3882
3877
  t > 0 && (n[i] = t);
3883
3878
  }, e.prototype.sub = function(e) {
3884
3879
  var t = this.buf, n = t.length, r, i;
3885
- for (r = 0; r < n; ++r) i = t[r] - e, i < 0 ? (i += H, e = 1) : e = 0, t[r] = i;
3880
+ for (r = 0; r < n; ++r) i = t[r] - e, i < 0 ? (i += Le, e = 1) : e = 0, t[r] = i;
3886
3881
  for (; t[t.length - 1] === 0;) t.pop();
3887
3882
  }, e.prototype.toString = function(e) {
3888
3883
  if ((e || 10) != 10) throw Error("only base 10 is supported");
3889
- for (var t = this.buf, n = t[t.length - 1].toString(), r = t.length - 2; r >= 0; --r) n += (H + t[r]).toString().substring(1);
3884
+ for (var t = this.buf, n = t[t.length - 1].toString(), r = t.length - 2; r >= 0; --r) n += (Le + t[r]).toString().substring(1);
3890
3885
  return n;
3891
3886
  }, e.prototype.valueOf = function() {
3892
- for (var e = this.buf, t = 0, n = e.length - 1; n >= 0; --n) t = t * H + e[n];
3887
+ for (var e = this.buf, t = 0, n = e.length - 1; n >= 0; --n) t = t * Le + e[n];
3893
3888
  return t;
3894
3889
  }, e.prototype.simplify = function() {
3895
3890
  var e = this.buf;
3896
3891
  return e.length == 1 ? e[0] : this;
3897
3892
  }, e;
3898
- }(), yt = "…", bt = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/, xt = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
3899
- function U(e, t) {
3900
- return e.length > t && (e = e.substring(0, t) + yt), e;
3893
+ }(), ze = "…", Be = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/, Ve = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
3894
+ function He(e, t) {
3895
+ return e.length > t && (e = e.substring(0, t) + ze), e;
3901
3896
  }
3902
- var W = function() {
3897
+ var Ue = function() {
3903
3898
  function e(t, n) {
3904
3899
  this.hexDigits = "0123456789ABCDEF", t instanceof e ? (this.enc = t.enc, this.pos = t.pos) : (this.enc = t, this.pos = n);
3905
3900
  }
@@ -3938,7 +3933,7 @@ var W = function() {
3938
3933
  for (var n = "", r, i, a = e; a < t;) r = this.get(a++), i = this.get(a++), n += String.fromCharCode(r << 8 | i);
3939
3934
  return n;
3940
3935
  }, e.prototype.parseTime = function(e, t, n) {
3941
- var r = this.parseStringISO(e, t), i = (n ? bt : xt).exec(r);
3936
+ var r = this.parseStringISO(e, t), i = (n ? Be : Ve).exec(r);
3942
3937
  return i ? (n && (i[1] = +i[1], i[1] += +i[1] < 70 ? 2e3 : 1900), r = i[1] + "-" + i[2] + "-" + i[3] + " " + i[4], i[5] && (r += ":" + i[5], i[6] && (r += ":" + i[6], i[7] && (r += "." + i[7]))), i[8] && (r += " UTC", i[8] != "Z" && (r += i[8], i[9] && (r += ":" + i[9]))), r) : "Unrecognized time: " + r;
3943
3938
  }, e.prototype.parseInteger = function(e, t) {
3944
3939
  for (var n = this.get(e), r = n > 127, i = r ? 255 : 0, a, o = ""; n == i && ++e < t;) n = this.get(e);
@@ -3948,39 +3943,39 @@ var W = function() {
3948
3943
  o = "(" + a + " bit)\n";
3949
3944
  }
3950
3945
  r && (n -= 256);
3951
- for (var s = new vt(n), c = e + 1; c < t; ++c) s.mulAdd(256, this.get(c));
3946
+ for (var s = new Re(n), c = e + 1; c < t; ++c) s.mulAdd(256, this.get(c));
3952
3947
  return o + s.toString();
3953
3948
  }, e.prototype.parseBitString = function(e, t, n) {
3954
3949
  for (var r = this.get(e), i = "(" + ((t - e - 1 << 3) - r) + " bit)\n", a = "", o = e + 1; o < t; ++o) {
3955
3950
  for (var s = this.get(o), c = o == t - 1 ? r : 0, l = 7; l >= c; --l) a += s >> l & 1 ? "1" : "0";
3956
- if (a.length > n) return i + U(a, n);
3951
+ if (a.length > n) return i + He(a, n);
3957
3952
  }
3958
3953
  return i + a;
3959
3954
  }, e.prototype.parseOctetString = function(e, t, n) {
3960
- if (this.isASCII(e, t)) return U(this.parseStringISO(e, t), n);
3955
+ if (this.isASCII(e, t)) return He(this.parseStringISO(e, t), n);
3961
3956
  var r = t - e, i = "(" + r + " byte)\n";
3962
3957
  n /= 2, r > n && (t = e + n);
3963
3958
  for (var a = e; a < t; ++a) i += this.hexByte(this.get(a));
3964
- return r > n && (i += yt), i;
3959
+ return r > n && (i += ze), i;
3965
3960
  }, e.prototype.parseOID = function(e, t, n) {
3966
- for (var r = "", i = new vt(), a = 0, o = e; o < t; ++o) {
3961
+ for (var r = "", i = new Re(), a = 0, o = e; o < t; ++o) {
3967
3962
  var s = this.get(o);
3968
3963
  if (i.mulAdd(128, s & 127), a += 7, !(s & 128)) {
3969
- if (r === "") if (i = i.simplify(), i instanceof vt) i.sub(80), r = "2." + i.toString();
3964
+ if (r === "") if (i = i.simplify(), i instanceof Re) i.sub(80), r = "2." + i.toString();
3970
3965
  else {
3971
3966
  var c = i < 80 ? i < 40 ? 0 : 1 : 2;
3972
3967
  r = c + "." + (i - c * 40);
3973
3968
  }
3974
3969
  else r += "." + i.toString();
3975
- if (r.length > n) return U(r, n);
3976
- i = new vt(), a = 0;
3970
+ if (r.length > n) return He(r, n);
3971
+ i = new Re(), a = 0;
3977
3972
  }
3978
3973
  }
3979
3974
  return a > 0 && (r += ".incomplete"), r;
3980
3975
  }, e;
3981
- }(), St = function() {
3976
+ }(), We = function() {
3982
3977
  function e(e, t, n, r, i) {
3983
- if (!(r instanceof Ct)) throw Error("Invalid tag value.");
3978
+ if (!(r instanceof Ge)) throw Error("Invalid tag value.");
3984
3979
  this.stream = e, this.header = t, this.length = n, this.tag = r, this.sub = i;
3985
3980
  }
3986
3981
  return e.prototype.typeName = function() {
@@ -4033,14 +4028,14 @@ var W = function() {
4033
4028
  case 6: return this.stream.parseOID(t, t + n, e);
4034
4029
  case 16:
4035
4030
  case 17: return this.sub === null ? "(no elem)" : "(" + this.sub.length + " elem)";
4036
- case 12: return U(this.stream.parseStringUTF(t, t + n), e);
4031
+ case 12: return He(this.stream.parseStringUTF(t, t + n), e);
4037
4032
  case 18:
4038
4033
  case 19:
4039
4034
  case 20:
4040
4035
  case 21:
4041
4036
  case 22:
4042
- case 26: return U(this.stream.parseStringISO(t, t + n), e);
4043
- case 30: return U(this.stream.parseStringBMP(t, t + n), e);
4037
+ case 26: return He(this.stream.parseStringISO(t, t + n), e);
4038
+ case 30: return He(this.stream.parseStringBMP(t, t + n), e);
4044
4039
  case 23:
4045
4040
  case 24: return this.stream.parseTime(t, t + n, this.tag.tagNumber == 23);
4046
4041
  }
@@ -4075,7 +4070,7 @@ var W = function() {
4075
4070
  var e = this.toHexString(), t = this.header * 2, n = this.length * 2;
4076
4071
  return e.substring(t, t + n);
4077
4072
  }, e.decode = function(t) {
4078
- var n = t instanceof W ? t : new W(t, 0), r = new W(n), i = new Ct(n), a = e.decodeLength(n), o = n.pos, s = o - r.pos, c = null, l = function() {
4073
+ var n = t instanceof Ue ? t : new Ue(t, 0), r = new Ue(n), i = new Ge(n), a = e.decodeLength(n), o = n.pos, s = o - r.pos, c = null, l = function() {
4079
4074
  var t = [];
4080
4075
  if (a !== null) {
4081
4076
  for (var r = o + a; n.pos < r;) t[t.length] = e.decode(n);
@@ -4106,11 +4101,11 @@ var W = function() {
4106
4101
  }
4107
4102
  return new e(r, s, a, i, c);
4108
4103
  }, e;
4109
- }(), Ct = function() {
4104
+ }(), Ge = function() {
4110
4105
  function e(e) {
4111
4106
  var t = e.get();
4112
4107
  if (this.tagClass = t >> 6, this.tagConstructed = (t & 32) != 0, this.tagNumber = t & 31, this.tagNumber == 31) {
4113
- var n = new vt();
4108
+ var n = new Re();
4114
4109
  do
4115
4110
  t = e.get(), n.mulAdd(128, t & 127);
4116
4111
  while (t & 128);
@@ -4122,7 +4117,7 @@ var W = function() {
4122
4117
  }, e.prototype.isEOC = function() {
4123
4118
  return this.tagClass === 0 && this.tagNumber === 0;
4124
4119
  }, e;
4125
- }(), G, wt = !0, K = [
4120
+ }(), Ke, qe = !0, V = [
4126
4121
  2,
4127
4122
  3,
4128
4123
  5,
@@ -4291,7 +4286,7 @@ var W = function() {
4291
4286
  983,
4292
4287
  991,
4293
4288
  997
4294
- ], Tt = (1 << 26) / K[K.length - 1], q = function() {
4289
+ ], Je = (1 << 26) / V[V.length - 1], H = function() {
4295
4290
  function e(e, t, n) {
4296
4291
  e != null && (typeof e == "number" ? this.fromNumber(e, t, n) : t == null && typeof e != "string" ? this.fromString(e, 256) : this.fromString(e, t));
4297
4292
  }
@@ -4305,10 +4300,10 @@ var W = function() {
4305
4300
  else if (e == 4) t = 2;
4306
4301
  else return this.toRadix(e);
4307
4302
  var n = (1 << t) - 1, r, i = !1, a = "", o = this.t, s = this.DB - o * this.DB % t;
4308
- if (o-- > 0) for (s < this.DB && (r = this[o] >> s) > 0 && (i = !0, a = rt(r)); o >= 0;) s < t ? (r = (this[o] & (1 << s) - 1) << t - s, r |= this[--o] >> (s += this.DB - t)) : (r = this[o] >> (s -= t) & n, s <= 0 && (s += this.DB, --o)), r > 0 && (i = !0), i && (a += rt(r));
4303
+ if (o-- > 0) for (s < this.DB && (r = this[o] >> s) > 0 && (i = !0, a = Ce(r)); o >= 0;) s < t ? (r = (this[o] & (1 << s) - 1) << t - s, r |= this[--o] >> (s += this.DB - t)) : (r = this[o] >> (s -= t) & n, s <= 0 && (s += this.DB, --o)), r > 0 && (i = !0), i && (a += Ce(r));
4309
4304
  return i ? a : "0";
4310
4305
  }, e.prototype.negate = function() {
4311
- var t = J();
4306
+ var t = U();
4312
4307
  return e.ZERO.subTo(this, t), t;
4313
4308
  }, e.prototype.abs = function() {
4314
4309
  return this.s < 0 ? this.negate() : this;
@@ -4320,15 +4315,15 @@ var W = function() {
4320
4315
  for (; --n >= 0;) if ((t = this[n] - e[n]) != 0) return t;
4321
4316
  return 0;
4322
4317
  }, e.prototype.bitLength = function() {
4323
- return this.t <= 0 ? 0 : this.DB * (this.t - 1) + Lt(this[this.t - 1] ^ this.s & this.DM);
4318
+ return this.t <= 0 ? 0 : this.DB * (this.t - 1) + at(this[this.t - 1] ^ this.s & this.DM);
4324
4319
  }, e.prototype.mod = function(t) {
4325
- var n = J();
4320
+ var n = U();
4326
4321
  return this.abs().divRemTo(t, null, n), this.s < 0 && n.compareTo(e.ZERO) > 0 && t.subTo(n, n), n;
4327
4322
  }, e.prototype.modPowInt = function(e, t) {
4328
- var n = e < 256 || t.isEven() ? new Dt(t) : new Ot(t);
4323
+ var n = e < 256 || t.isEven() ? new Xe(t) : new Ze(t);
4329
4324
  return this.exp(e, n);
4330
4325
  }, e.prototype.clone = function() {
4331
- var e = J();
4326
+ var e = U();
4332
4327
  return this.copyTo(e), e;
4333
4328
  }, e.prototype.intValue = function() {
4334
4329
  if (this.s < 0) {
@@ -4356,70 +4351,70 @@ var W = function() {
4356
4351
  }, e.prototype.max = function(e) {
4357
4352
  return this.compareTo(e) > 0 ? this : e;
4358
4353
  }, e.prototype.and = function(e) {
4359
- var t = J();
4360
- return this.bitwiseTo(e, it, t), t;
4354
+ var t = U();
4355
+ return this.bitwiseTo(e, we, t), t;
4361
4356
  }, e.prototype.or = function(e) {
4362
- var t = J();
4363
- return this.bitwiseTo(e, at, t), t;
4357
+ var t = U();
4358
+ return this.bitwiseTo(e, Te, t), t;
4364
4359
  }, e.prototype.xor = function(e) {
4365
- var t = J();
4366
- return this.bitwiseTo(e, ot, t), t;
4360
+ var t = U();
4361
+ return this.bitwiseTo(e, Ee, t), t;
4367
4362
  }, e.prototype.andNot = function(e) {
4368
- var t = J();
4369
- return this.bitwiseTo(e, st, t), t;
4363
+ var t = U();
4364
+ return this.bitwiseTo(e, De, t), t;
4370
4365
  }, e.prototype.not = function() {
4371
- for (var e = J(), t = 0; t < this.t; ++t) e[t] = this.DM & ~this[t];
4366
+ for (var e = U(), t = 0; t < this.t; ++t) e[t] = this.DM & ~this[t];
4372
4367
  return e.t = this.t, e.s = ~this.s, e;
4373
4368
  }, e.prototype.shiftLeft = function(e) {
4374
- var t = J();
4369
+ var t = U();
4375
4370
  return e < 0 ? this.rShiftTo(-e, t) : this.lShiftTo(e, t), t;
4376
4371
  }, e.prototype.shiftRight = function(e) {
4377
- var t = J();
4372
+ var t = U();
4378
4373
  return e < 0 ? this.lShiftTo(-e, t) : this.rShiftTo(e, t), t;
4379
4374
  }, e.prototype.getLowestSetBit = function() {
4380
- for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + ct(this[e]);
4375
+ for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + Oe(this[e]);
4381
4376
  return this.s < 0 ? this.t * this.DB : -1;
4382
4377
  }, e.prototype.bitCount = function() {
4383
- for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += lt(this[n] ^ t);
4378
+ for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += ke(this[n] ^ t);
4384
4379
  return e;
4385
4380
  }, e.prototype.testBit = function(e) {
4386
4381
  var t = Math.floor(e / this.DB);
4387
4382
  return t >= this.t ? this.s != 0 : (this[t] & 1 << e % this.DB) != 0;
4388
4383
  }, e.prototype.setBit = function(e) {
4389
- return this.changeBit(e, at);
4384
+ return this.changeBit(e, Te);
4390
4385
  }, e.prototype.clearBit = function(e) {
4391
- return this.changeBit(e, st);
4386
+ return this.changeBit(e, De);
4392
4387
  }, e.prototype.flipBit = function(e) {
4393
- return this.changeBit(e, ot);
4388
+ return this.changeBit(e, Ee);
4394
4389
  }, e.prototype.add = function(e) {
4395
- var t = J();
4390
+ var t = U();
4396
4391
  return this.addTo(e, t), t;
4397
4392
  }, e.prototype.subtract = function(e) {
4398
- var t = J();
4393
+ var t = U();
4399
4394
  return this.subTo(e, t), t;
4400
4395
  }, e.prototype.multiply = function(e) {
4401
- var t = J();
4396
+ var t = U();
4402
4397
  return this.multiplyTo(e, t), t;
4403
4398
  }, e.prototype.divide = function(e) {
4404
- var t = J();
4399
+ var t = U();
4405
4400
  return this.divRemTo(e, t, null), t;
4406
4401
  }, e.prototype.remainder = function(e) {
4407
- var t = J();
4402
+ var t = U();
4408
4403
  return this.divRemTo(e, null, t), t;
4409
4404
  }, e.prototype.divideAndRemainder = function(e) {
4410
- var t = J(), n = J();
4405
+ var t = U(), n = U();
4411
4406
  return this.divRemTo(e, t, n), [t, n];
4412
4407
  }, e.prototype.modPow = function(e, t) {
4413
- var n = e.bitLength(), r, i = It(1), a;
4408
+ var n = e.bitLength(), r, i = G(1), a;
4414
4409
  if (n <= 0) return i;
4415
- r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new Dt(t) : t.isEven() ? new kt(t) : new Ot(t);
4410
+ r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new Xe(t) : t.isEven() ? new Qe(t) : new Ze(t);
4416
4411
  var o = [], s = 3, c = r - 1, l = (1 << r) - 1;
4417
4412
  if (o[1] = a.convert(this), r > 1) {
4418
- var u = J();
4419
- for (a.sqrTo(o[1], u); s <= l;) o[s] = J(), a.mulTo(u, o[s - 2], o[s]), s += 2;
4413
+ var u = U();
4414
+ for (a.sqrTo(o[1], u); s <= l;) o[s] = U(), a.mulTo(u, o[s - 2], o[s]), s += 2;
4420
4415
  }
4421
- var d = e.t - 1, f, p = !0, m = J(), h;
4422
- for (n = Lt(e[d]) - 1; d >= 0;) {
4416
+ var d = e.t - 1, f, p = !0, m = U(), h;
4417
+ for (n = at(e[d]) - 1; d >= 0;) {
4423
4418
  for (n >= c ? f = e[d] >> n - c & l : (f = (e[d] & (1 << n + 1) - 1) << c - n, d > 0 && (f |= e[d - 1] >> this.DB + n - c)), s = r; !(f & 1);) f >>= 1, --s;
4424
4419
  if ((n -= s) < 0 && (n += this.DB, --d), p) o[f].copyTo(i), p = !1;
4425
4420
  else {
@@ -4432,7 +4427,7 @@ var W = function() {
4432
4427
  }, e.prototype.modInverse = function(t) {
4433
4428
  var n = t.isEven();
4434
4429
  if (this.isEven() && n || t.signum() == 0) return e.ZERO;
4435
- for (var r = t.clone(), i = this.clone(), a = It(1), o = It(0), s = It(0), c = It(1); r.signum() != 0;) {
4430
+ for (var r = t.clone(), i = this.clone(), a = G(1), o = G(0), s = G(0), c = G(1); r.signum() != 0;) {
4436
4431
  for (; r.isEven();) r.rShiftTo(1, r), n ? ((!a.isEven() || !o.isEven()) && (a.addTo(this, a), o.subTo(t, o)), a.rShiftTo(1, a)) : o.isEven() || o.subTo(t, o), o.rShiftTo(1, o);
4437
4432
  for (; i.isEven();) i.rShiftTo(1, i), n ? ((!s.isEven() || !c.isEven()) && (s.addTo(this, s), c.subTo(t, c)), s.rShiftTo(1, s)) : c.isEven() || c.subTo(t, c), c.rShiftTo(1, c);
4438
4433
  r.compareTo(i) >= 0 ? (r.subTo(i, r), n && a.subTo(s, a), o.subTo(c, o)) : (i.subTo(r, i), n && s.subTo(a, s), c.subTo(o, c));
@@ -4443,7 +4438,7 @@ var W = function() {
4443
4438
  else return c;
4444
4439
  return c.signum() < 0 ? c.add(t) : c;
4445
4440
  }, e.prototype.pow = function(e) {
4446
- return this.exp(e, new Et());
4441
+ return this.exp(e, new Ye());
4447
4442
  }, e.prototype.gcd = function(e) {
4448
4443
  var t = this.s < 0 ? this.negate() : this.clone(), n = e.s < 0 ? e.negate() : e.clone();
4449
4444
  if (t.compareTo(n) < 0) {
@@ -4456,14 +4451,14 @@ var W = function() {
4456
4451
  return a > 0 && n.lShiftTo(a, n), n;
4457
4452
  }, e.prototype.isProbablePrime = function(e) {
4458
4453
  var t, n = this.abs();
4459
- if (n.t == 1 && n[0] <= K[K.length - 1]) {
4460
- for (t = 0; t < K.length; ++t) if (n[0] == K[t]) return !0;
4454
+ if (n.t == 1 && n[0] <= V[V.length - 1]) {
4455
+ for (t = 0; t < V.length; ++t) if (n[0] == V[t]) return !0;
4461
4456
  return !1;
4462
4457
  }
4463
4458
  if (n.isEven()) return !1;
4464
- for (t = 1; t < K.length;) {
4465
- for (var r = K[t], i = t + 1; i < K.length && r < Tt;) r *= K[i++];
4466
- for (r = n.modInt(r); t < i;) if (r % K[t++] == 0) return !1;
4459
+ for (t = 1; t < V.length;) {
4460
+ for (var r = V[t], i = t + 1; i < V.length && r < Je;) r *= V[i++];
4461
+ for (r = n.modInt(r); t < i;) if (r % V[t++] == 0) return !1;
4467
4462
  }
4468
4463
  return n.millerRabin(e);
4469
4464
  }, e.prototype.copyTo = function(e) {
@@ -4485,7 +4480,7 @@ var W = function() {
4485
4480
  }
4486
4481
  this.t = 0, this.s = 0;
4487
4482
  for (var i = t.length, a = !1, o = 0; --i >= 0;) {
4488
- var s = r == 8 ? t[i] & 255 : Ft(t, i);
4483
+ var s = r == 8 ? t[i] & 255 : it(t, i);
4489
4484
  if (s < 0) {
4490
4485
  t.charAt(i) == "-" && (a = !0);
4491
4486
  continue;
@@ -4548,12 +4543,12 @@ var W = function() {
4548
4543
  n?.fromInt(0), r != null && this.copyTo(r);
4549
4544
  return;
4550
4545
  }
4551
- r ??= J();
4552
- var o = J(), s = this.s, c = t.s, l = this.DB - Lt(i[i.t - 1]);
4546
+ r ??= U();
4547
+ var o = U(), s = this.s, c = t.s, l = this.DB - at(i[i.t - 1]);
4553
4548
  l > 0 ? (i.lShiftTo(l, o), a.lShiftTo(l, r)) : (i.copyTo(o), a.copyTo(r));
4554
4549
  var u = o.t, d = o[u - 1];
4555
4550
  if (d != 0) {
4556
- var f = d * (1 << this.F1) + (u > 1 ? o[u - 2] >> this.F2 : 0), p = this.FV / f, m = (1 << this.F1) / f, h = 1 << this.F2, g = r.t, _ = g - u, v = n ?? J();
4551
+ var f = d * (1 << this.F1) + (u > 1 ? o[u - 2] >> this.F2 : 0), p = this.FV / f, m = (1 << this.F1) / f, h = 1 << this.F2, g = r.t, _ = g - u, v = n ?? U();
4557
4552
  for (o.dlShiftTo(_, v), r.compareTo(v) >= 0 && (r[r.t++] = 1, r.subTo(v, r)), e.ONE.dlShiftTo(u, v), v.subTo(o, o); o.t < u;) o[o.t++] = 0;
4558
4553
  for (; --_ >= 0;) {
4559
4554
  var y = r[--g] == d ? this.DM : Math.floor(r[g] * p + (r[g - 1] + h) * m);
@@ -4572,7 +4567,7 @@ var W = function() {
4572
4567
  return (this.t > 0 ? this[0] & 1 : this.s) == 0;
4573
4568
  }, e.prototype.exp = function(t, n) {
4574
4569
  if (t > 4294967295 || t < 1) return e.ONE;
4575
- var r = J(), i = J(), a = n.convert(this), o = Lt(t) - 1;
4570
+ var r = U(), i = U(), a = n.convert(this), o = at(t) - 1;
4576
4571
  for (a.copyTo(r); --o >= 0;) if (n.sqrTo(r, i), (t & 1 << o) > 0) n.mulTo(i, a, r);
4577
4572
  else {
4578
4573
  var s = r;
@@ -4583,13 +4578,13 @@ var W = function() {
4583
4578
  return Math.floor(Math.LN2 * this.DB / Math.log(e));
4584
4579
  }, e.prototype.toRadix = function(e) {
4585
4580
  if (e ??= 10, this.signum() == 0 || e < 2 || e > 36) return "0";
4586
- var t = this.chunkSize(e), n = e ** +t, r = It(n), i = J(), a = J(), o = "";
4581
+ var t = this.chunkSize(e), n = e ** +t, r = G(n), i = U(), a = U(), o = "";
4587
4582
  for (this.divRemTo(r, i, a); i.signum() > 0;) o = (n + a.intValue()).toString(e).substring(1) + o, i.divRemTo(r, i, a);
4588
4583
  return a.intValue().toString(e) + o;
4589
4584
  }, e.prototype.fromRadix = function(t, n) {
4590
4585
  this.fromInt(0), n ??= 10;
4591
4586
  for (var r = this.chunkSize(n), i = n ** +r, a = !1, o = 0, s = 0, c = 0; c < t.length; ++c) {
4592
- var l = Ft(t, c);
4587
+ var l = it(t, c);
4593
4588
  if (l < 0) {
4594
4589
  t.charAt(c) == "-" && this.signum() == 0 && (a = !0);
4595
4590
  continue;
@@ -4599,7 +4594,7 @@ var W = function() {
4599
4594
  o > 0 && (this.dMultiply(n ** +o), this.dAddOffset(s, 0)), a && e.ZERO.subTo(this, this);
4600
4595
  }, e.prototype.fromNumber = function(t, n, r) {
4601
4596
  if (typeof n == "number") if (t < 2) this.fromInt(1);
4602
- else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), at, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(n);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this);
4597
+ else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), Te, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(n);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this);
4603
4598
  else {
4604
4599
  var i = [], a = t & 7;
4605
4600
  i.length = (t >> 3) + 1, n.nextBytes(i), a > 0 ? i[0] &= (1 << a) - 1 : i[0] = 0, this.fromString(i, 256);
@@ -4657,9 +4652,9 @@ var W = function() {
4657
4652
  var n = this.subtract(e.ONE), r = n.getLowestSetBit();
4658
4653
  if (r <= 0) return !1;
4659
4654
  var i = n.shiftRight(r);
4660
- t = t + 1 >> 1, t > K.length && (t = K.length);
4661
- for (var a = J(), o = 0; o < t; ++o) {
4662
- a.fromInt(K[Math.floor(Math.random() * K.length)]);
4655
+ t = t + 1 >> 1, t > V.length && (t = V.length);
4656
+ for (var a = U(), o = 0; o < t; ++o) {
4657
+ a.fromInt(V[Math.floor(Math.random() * V.length)]);
4663
4658
  var s = a.modPow(i, this);
4664
4659
  if (s.compareTo(e.ONE) != 0 && s.compareTo(n) != 0) {
4665
4660
  for (var c = 1; c++ < r && s.compareTo(n) != 0;) if (s = s.modPowInt(2, this), s.compareTo(e.ONE) == 0) return !1;
@@ -4668,7 +4663,7 @@ var W = function() {
4668
4663
  }
4669
4664
  return !0;
4670
4665
  }, e.prototype.square = function() {
4671
- var e = J();
4666
+ var e = U();
4672
4667
  return this.squareTo(e), e;
4673
4668
  }, e.prototype.gcda = function(e, t) {
4674
4669
  var n = this.s < 0 ? this.negate() : this.clone(), r = e.s < 0 ? e.negate() : e.clone();
@@ -4691,7 +4686,7 @@ var W = function() {
4691
4686
  }, e.prototype.fromNumberAsync = function(t, n, r, i) {
4692
4687
  if (typeof n == "number") if (t < 2) this.fromInt(1);
4693
4688
  else {
4694
- this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), at, this), this.isEven() && this.dAddOffset(1, 0);
4689
+ this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), Te, this), this.isEven() && this.dAddOffset(1, 0);
4695
4690
  var a = this, o = function() {
4696
4691
  a.dAddOffset(2, 0), a.bitLength() > t && a.subTo(e.ONE.shiftLeft(t - 1), a), a.isProbablePrime(n) ? setTimeout(function() {
4697
4692
  i();
@@ -4704,7 +4699,7 @@ var W = function() {
4704
4699
  s.length = (t >> 3) + 1, n.nextBytes(s), c > 0 ? s[0] &= (1 << c) - 1 : s[0] = 0, this.fromString(s, 256);
4705
4700
  }
4706
4701
  }, e;
4707
- }(), Et = function() {
4702
+ }(), Ye = function() {
4708
4703
  function e() {}
4709
4704
  return e.prototype.convert = function(e) {
4710
4705
  return e;
@@ -4715,7 +4710,7 @@ var W = function() {
4715
4710
  }, e.prototype.sqrTo = function(e, t) {
4716
4711
  e.squareTo(t);
4717
4712
  }, e;
4718
- }(), Dt = function() {
4713
+ }(), Xe = function() {
4719
4714
  function e(e) {
4720
4715
  this.m = e;
4721
4716
  }
@@ -4730,15 +4725,15 @@ var W = function() {
4730
4725
  }, e.prototype.sqrTo = function(e, t) {
4731
4726
  e.squareTo(t), this.reduce(t);
4732
4727
  }, e;
4733
- }(), Ot = function() {
4728
+ }(), Ze = function() {
4734
4729
  function e(e) {
4735
4730
  this.m = e, this.mp = e.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << e.DB - 15) - 1, this.mt2 = 2 * e.t;
4736
4731
  }
4737
4732
  return e.prototype.convert = function(e) {
4738
- var t = J();
4739
- return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && t.compareTo(q.ZERO) > 0 && this.m.subTo(t, t), t;
4733
+ var t = U();
4734
+ return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && t.compareTo(H.ZERO) > 0 && this.m.subTo(t, t), t;
4740
4735
  }, e.prototype.revert = function(e) {
4741
- var t = J();
4736
+ var t = U();
4742
4737
  return e.copyTo(t), this.reduce(t), t;
4743
4738
  }, e.prototype.reduce = function(e) {
4744
4739
  for (; e.t <= this.mt2;) e[e.t++] = 0;
@@ -4752,14 +4747,14 @@ var W = function() {
4752
4747
  }, e.prototype.sqrTo = function(e, t) {
4753
4748
  e.squareTo(t), this.reduce(t);
4754
4749
  }, e;
4755
- }(), kt = function() {
4750
+ }(), Qe = function() {
4756
4751
  function e(e) {
4757
- this.m = e, this.r2 = J(), this.q3 = J(), q.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e);
4752
+ this.m = e, this.r2 = U(), this.q3 = U(), H.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e);
4758
4753
  }
4759
4754
  return e.prototype.convert = function(e) {
4760
4755
  if (e.s < 0 || e.t > 2 * this.m.t) return e.mod(this.m);
4761
4756
  if (e.compareTo(this.m) < 0) return e;
4762
- var t = J();
4757
+ var t = U();
4763
4758
  return e.copyTo(t), this.reduce(t), t;
4764
4759
  }, e.prototype.revert = function(e) {
4765
4760
  return e;
@@ -4772,53 +4767,53 @@ var W = function() {
4772
4767
  e.squareTo(t), this.reduce(t);
4773
4768
  }, e;
4774
4769
  }();
4775
- function J() {
4776
- return new q(null);
4770
+ function U() {
4771
+ return new H(null);
4777
4772
  }
4778
- function Y(e, t) {
4779
- return new q(e, t);
4773
+ function W(e, t) {
4774
+ return new H(e, t);
4780
4775
  }
4781
- var At = typeof navigator < "u";
4782
- At && wt && navigator.appName == "Microsoft Internet Explorer" ? (q.prototype.am = function(e, t, n, r, i, a) {
4776
+ var $e = typeof navigator < "u";
4777
+ $e && qe && navigator.appName == "Microsoft Internet Explorer" ? (H.prototype.am = function(e, t, n, r, i, a) {
4783
4778
  for (var o = t & 32767, s = t >> 15; --a >= 0;) {
4784
4779
  var c = this[e] & 32767, l = this[e++] >> 15, u = s * c + l * o;
4785
4780
  c = o * c + ((u & 32767) << 15) + n[r] + (i & 1073741823), i = (c >>> 30) + (u >>> 15) + s * l + (i >>> 30), n[r++] = c & 1073741823;
4786
4781
  }
4787
4782
  return i;
4788
- }, G = 30) : At && wt && navigator.appName != "Netscape" ? (q.prototype.am = function(e, t, n, r, i, a) {
4783
+ }, Ke = 30) : $e && qe && navigator.appName != "Netscape" ? (H.prototype.am = function(e, t, n, r, i, a) {
4789
4784
  for (; --a >= 0;) {
4790
4785
  var o = t * this[e++] + n[r] + i;
4791
4786
  i = Math.floor(o / 67108864), n[r++] = o & 67108863;
4792
4787
  }
4793
4788
  return i;
4794
- }, G = 26) : (q.prototype.am = function(e, t, n, r, i, a) {
4789
+ }, Ke = 26) : (H.prototype.am = function(e, t, n, r, i, a) {
4795
4790
  for (var o = t & 16383, s = t >> 14; --a >= 0;) {
4796
4791
  var c = this[e] & 16383, l = this[e++] >> 14, u = s * c + l * o;
4797
4792
  c = o * c + ((u & 16383) << 14) + n[r] + i, i = (c >> 28) + (u >> 14) + s * l, n[r++] = c & 268435455;
4798
4793
  }
4799
4794
  return i;
4800
- }, G = 28), q.prototype.DB = G, q.prototype.DM = (1 << G) - 1, q.prototype.DV = 1 << G;
4801
- var jt = 52;
4802
- q.prototype.FV = 2 ** jt, q.prototype.F1 = jt - G, q.prototype.F2 = 2 * G - jt;
4803
- var Mt = [], Nt = 48, Pt;
4804
- for (Pt = 0; Pt <= 9; ++Pt) Mt[Nt++] = Pt;
4805
- for (Nt = 97, Pt = 10; Pt < 36; ++Pt) Mt[Nt++] = Pt;
4806
- for (Nt = 65, Pt = 10; Pt < 36; ++Pt) Mt[Nt++] = Pt;
4807
- function Ft(e, t) {
4808
- return Mt[e.charCodeAt(t)] ?? -1;
4795
+ }, Ke = 28), H.prototype.DB = Ke, H.prototype.DM = (1 << Ke) - 1, H.prototype.DV = 1 << Ke;
4796
+ var et = 52;
4797
+ H.prototype.FV = 2 ** et, H.prototype.F1 = et - Ke, H.prototype.F2 = 2 * Ke - et;
4798
+ var tt = [], nt = 48, rt;
4799
+ for (rt = 0; rt <= 9; ++rt) tt[nt++] = rt;
4800
+ for (nt = 97, rt = 10; rt < 36; ++rt) tt[nt++] = rt;
4801
+ for (nt = 65, rt = 10; rt < 36; ++rt) tt[nt++] = rt;
4802
+ function it(e, t) {
4803
+ return tt[e.charCodeAt(t)] ?? -1;
4809
4804
  }
4810
- function It(e) {
4811
- var t = J();
4805
+ function G(e) {
4806
+ var t = U();
4812
4807
  return t.fromInt(e), t;
4813
4808
  }
4814
- function Lt(e) {
4809
+ function at(e) {
4815
4810
  var t = 1, n;
4816
4811
  return (n = e >>> 16) != 0 && (e = n, t += 16), (n = e >> 8) != 0 && (e = n, t += 8), (n = e >> 4) != 0 && (e = n, t += 4), (n = e >> 2) != 0 && (e = n, t += 2), (n = e >> 1) != 0 && (e = n, t += 1), t;
4817
4812
  }
4818
- q.ZERO = It(0), q.ONE = It(1);
4813
+ H.ZERO = G(0), H.ONE = G(1);
4819
4814
  //#endregion
4820
4815
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/prng4.js
4821
- var Rt = function() {
4816
+ var ot = function() {
4822
4817
  function e() {
4823
4818
  this.i = 0, this.j = 0, this.S = [];
4824
4819
  }
@@ -4832,94 +4827,94 @@ var Rt = function() {
4832
4827
  return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, e = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = e, this.S[e + this.S[this.i] & 255];
4833
4828
  }, e;
4834
4829
  }();
4835
- function zt() {
4836
- return new Rt();
4830
+ function st() {
4831
+ return new ot();
4837
4832
  }
4838
4833
  //#endregion
4839
4834
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/rng.js
4840
- var Bt, Vt = null, Ht;
4841
- if (Vt == null) {
4842
- Vt = [], Ht = 0;
4843
- var Ut = void 0;
4835
+ var ct, lt = null, ut;
4836
+ if (lt == null) {
4837
+ lt = [], ut = 0;
4838
+ var dt = void 0;
4844
4839
  if (typeof window < "u" && self.crypto && self.crypto.getRandomValues) {
4845
- var Wt = new Uint32Array(256);
4846
- for (self.crypto.getRandomValues(Wt), Ut = 0; Ut < Wt.length; ++Ut) Vt[Ht++] = Wt[Ut] & 255;
4840
+ var ft = new Uint32Array(256);
4841
+ for (self.crypto.getRandomValues(ft), dt = 0; dt < ft.length; ++dt) lt[ut++] = ft[dt] & 255;
4847
4842
  }
4848
- var Gt = 0, Kt = function(e) {
4849
- if (Gt ||= 0, Gt >= 256 || Ht >= 256) {
4850
- self.removeEventListener ? self.removeEventListener("mousemove", Kt, !1) : self.detachEvent && self.detachEvent("onmousemove", Kt);
4843
+ var pt = 0, K = function(e) {
4844
+ if (pt ||= 0, pt >= 256 || ut >= 256) {
4845
+ self.removeEventListener ? self.removeEventListener("mousemove", K, !1) : self.detachEvent && self.detachEvent("onmousemove", K);
4851
4846
  return;
4852
4847
  }
4853
4848
  try {
4854
4849
  var t = e.x + e.y;
4855
- Vt[Ht++] = t & 255, Gt += 1;
4850
+ lt[ut++] = t & 255, pt += 1;
4856
4851
  } catch {}
4857
4852
  };
4858
- typeof window < "u" && (self.addEventListener ? self.addEventListener("mousemove", Kt, !1) : self.attachEvent && self.attachEvent("onmousemove", Kt));
4853
+ typeof window < "u" && (self.addEventListener ? self.addEventListener("mousemove", K, !1) : self.attachEvent && self.attachEvent("onmousemove", K));
4859
4854
  }
4860
- function qt() {
4861
- if (Bt == null) {
4862
- for (Bt = zt(); Ht < 256;) {
4855
+ function mt() {
4856
+ if (ct == null) {
4857
+ for (ct = st(); ut < 256;) {
4863
4858
  var e = Math.floor(65536 * Math.random());
4864
- Vt[Ht++] = e & 255;
4859
+ lt[ut++] = e & 255;
4865
4860
  }
4866
- for (Bt.init(Vt), Ht = 0; Ht < Vt.length; ++Ht) Vt[Ht] = 0;
4867
- Ht = 0;
4861
+ for (ct.init(lt), ut = 0; ut < lt.length; ++ut) lt[ut] = 0;
4862
+ ut = 0;
4868
4863
  }
4869
- return Bt.next();
4864
+ return ct.next();
4870
4865
  }
4871
- var Jt = function() {
4866
+ var ht = function() {
4872
4867
  function e() {}
4873
4868
  return e.prototype.nextBytes = function(e) {
4874
- for (var t = 0; t < e.length; ++t) e[t] = qt();
4869
+ for (var t = 0; t < e.length; ++t) e[t] = mt();
4875
4870
  }, e;
4876
4871
  }();
4877
4872
  //#endregion
4878
4873
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/sha256.js
4879
- function Yt(e) {
4880
- return Qt(ln(Zt(e), e.length * 8));
4874
+ function gt(e) {
4875
+ return q(Ot(vt(e), e.length * 8));
4881
4876
  }
4882
- function Xt(e) {
4877
+ function _t(e) {
4883
4878
  for (var t = "0123456789abcdef", n = "", r = 0; r < e.length; r++) {
4884
4879
  var i = e.charCodeAt(r);
4885
4880
  n += t.charAt(i >>> 4 & 15) + t.charAt(i & 15);
4886
4881
  }
4887
4882
  return n;
4888
4883
  }
4889
- function Zt(e) {
4884
+ function vt(e) {
4890
4885
  for (var t = Array(e.length >> 2), n = 0; n < t.length; n++) t[n] = 0;
4891
4886
  for (var n = 0; n < e.length * 8; n += 8) t[n >> 5] |= (e.charCodeAt(n / 8) & 255) << 24 - n % 32;
4892
4887
  return t;
4893
4888
  }
4894
- function Qt(e) {
4889
+ function q(e) {
4895
4890
  for (var t = "", n = 0; n < e.length * 32; n += 8) t += String.fromCharCode(e[n >> 5] >>> 24 - n % 32 & 255);
4896
4891
  return t;
4897
4892
  }
4898
- function $t(e, t) {
4893
+ function yt(e, t) {
4899
4894
  return e >>> t | e << 32 - t;
4900
4895
  }
4901
- function en(e, t) {
4896
+ function bt(e, t) {
4902
4897
  return e >>> t;
4903
4898
  }
4904
- function tn(e, t, n) {
4899
+ function xt(e, t, n) {
4905
4900
  return e & t ^ ~e & n;
4906
4901
  }
4907
- function nn(e, t, n) {
4902
+ function St(e, t, n) {
4908
4903
  return e & t ^ e & n ^ t & n;
4909
4904
  }
4910
- function rn(e) {
4911
- return $t(e, 2) ^ $t(e, 13) ^ $t(e, 22);
4905
+ function Ct(e) {
4906
+ return yt(e, 2) ^ yt(e, 13) ^ yt(e, 22);
4912
4907
  }
4913
- function an(e) {
4914
- return $t(e, 6) ^ $t(e, 11) ^ $t(e, 25);
4908
+ function wt(e) {
4909
+ return yt(e, 6) ^ yt(e, 11) ^ yt(e, 25);
4915
4910
  }
4916
- function on(e) {
4917
- return $t(e, 7) ^ $t(e, 18) ^ en(e, 3);
4911
+ function Tt(e) {
4912
+ return yt(e, 7) ^ yt(e, 18) ^ bt(e, 3);
4918
4913
  }
4919
- function sn(e) {
4920
- return $t(e, 17) ^ $t(e, 19) ^ en(e, 10);
4914
+ function Et(e) {
4915
+ return yt(e, 17) ^ yt(e, 19) ^ bt(e, 10);
4921
4916
  }
4922
- var cn = [
4917
+ var Dt = [
4923
4918
  1116352408,
4924
4919
  1899447441,
4925
4920
  -1245643825,
@@ -4985,7 +4980,7 @@ var cn = [
4985
4980
  -1090935817,
4986
4981
  -965641998
4987
4982
  ];
4988
- function ln(e, t) {
4983
+ function Ot(e, t) {
4989
4984
  var n = [
4990
4985
  1779033703,
4991
4986
  -1150833019,
@@ -4997,36 +4992,36 @@ function ln(e, t) {
4997
4992
  1541459225
4998
4993
  ], r = Array(64), i, a, o, s, c, l, u, d, f, p, m, h;
4999
4994
  for (e[t >> 5] |= 128 << 24 - t % 32, e[(t + 64 >> 9 << 4) + 15] = t, f = 0; f < e.length; f += 16) {
5000
- for (i = n[0], a = n[1], o = n[2], s = n[3], c = n[4], l = n[5], u = n[6], d = n[7], p = 0; p < 64; p++) p < 16 ? r[p] = e[p + f] : r[p] = X(X(X(sn(r[p - 2]), r[p - 7]), on(r[p - 15])), r[p - 16]), m = X(X(X(X(d, an(c)), tn(c, l, u)), cn[p]), r[p]), h = X(rn(i), nn(i, a, o)), d = u, u = l, l = c, c = X(s, m), s = o, o = a, a = i, i = X(m, h);
5001
- n[0] = X(i, n[0]), n[1] = X(a, n[1]), n[2] = X(o, n[2]), n[3] = X(s, n[3]), n[4] = X(c, n[4]), n[5] = X(l, n[5]), n[6] = X(u, n[6]), n[7] = X(d, n[7]);
4995
+ for (i = n[0], a = n[1], o = n[2], s = n[3], c = n[4], l = n[5], u = n[6], d = n[7], p = 0; p < 64; p++) p < 16 ? r[p] = e[p + f] : r[p] = J(J(J(Et(r[p - 2]), r[p - 7]), Tt(r[p - 15])), r[p - 16]), m = J(J(J(J(d, wt(c)), xt(c, l, u)), Dt[p]), r[p]), h = J(Ct(i), St(i, a, o)), d = u, u = l, l = c, c = J(s, m), s = o, o = a, a = i, i = J(m, h);
4996
+ n[0] = J(i, n[0]), n[1] = J(a, n[1]), n[2] = J(o, n[2]), n[3] = J(s, n[3]), n[4] = J(c, n[4]), n[5] = J(l, n[5]), n[6] = J(u, n[6]), n[7] = J(d, n[7]);
5002
4997
  }
5003
4998
  return n;
5004
4999
  }
5005
- function X(e, t) {
5000
+ function J(e, t) {
5006
5001
  var n = (e & 65535) + (t & 65535);
5007
5002
  return (e >> 16) + (t >> 16) + (n >> 16) << 16 | n & 65535;
5008
5003
  }
5009
5004
  //#endregion
5010
5005
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/rsa.js
5011
- function un(e, t) {
5006
+ function kt(e, t) {
5012
5007
  if (t < e.length + 22) return console.error("Message too long for RSA"), null;
5013
5008
  for (var n = t - e.length - 6, r = "", i = 0; i < n; i += 2) r += "ff";
5014
- return Y("0001" + r + "00" + e, 16);
5009
+ return W("0001" + r + "00" + e, 16);
5015
5010
  }
5016
- function dn(e, t) {
5011
+ function At(e, t) {
5017
5012
  if (t < e.length + 11) return console.error("Message too long for RSA"), null;
5018
5013
  for (var n = [], r = e.length - 1; r >= 0 && t > 0;) {
5019
5014
  var i = e.charCodeAt(r--);
5020
5015
  i < 128 ? n[--t] = i : i > 127 && i < 2048 ? (n[--t] = i & 63 | 128, n[--t] = i >> 6 | 192) : (n[--t] = i & 63 | 128, n[--t] = i >> 6 & 63 | 128, n[--t] = i >> 12 | 224);
5021
5016
  }
5022
5017
  n[--t] = 0;
5023
- for (var a = new Jt(), o = []; t > 2;) {
5018
+ for (var a = new ht(), o = []; t > 2;) {
5024
5019
  for (o[0] = 0; o[0] == 0;) a.nextBytes(o);
5025
5020
  n[--t] = o[0];
5026
5021
  }
5027
- return n[--t] = 2, n[--t] = 0, new q(n);
5022
+ return n[--t] = 2, n[--t] = 0, new H(n);
5028
5023
  }
5029
- function fn(e, t, n) {
5024
+ function jt(e, t, n) {
5030
5025
  for (var r = "", i = 0; r.length < t;) r += n(String.fromCharCode.apply(String, e.concat([
5031
5026
  (i & 4278190080) >> 24,
5032
5027
  (i & 16711680) >> 16,
@@ -5035,21 +5030,21 @@ function fn(e, t, n) {
5035
5030
  ]))), i += 1;
5036
5031
  return r;
5037
5032
  }
5038
- var pn = 32;
5039
- function mn(e, t) {
5040
- var n = pn, r = Yt;
5033
+ var Mt = 32;
5034
+ function Nt(e, t) {
5035
+ var n = Mt, r = gt;
5041
5036
  if (e.length + 2 * n + 2 > t) throw "Message too long for RSA";
5042
5037
  var i = "", a;
5043
5038
  for (a = 0; a < t - e.length - 2 * n - 2; a += 1) i += "\0";
5044
5039
  var o = r("") + i + "" + e, s = Array(n);
5045
- new Jt().nextBytes(s);
5046
- var c = fn(s, o.length, r), l = [];
5040
+ new ht().nextBytes(s);
5041
+ var c = jt(s, o.length, r), l = [];
5047
5042
  for (a = 0; a < o.length; a += 1) l[a] = o.charCodeAt(a) ^ c.charCodeAt(a);
5048
- var u = fn(l, s.length, r), d = [0];
5043
+ var u = jt(l, s.length, r), d = [0];
5049
5044
  for (a = 0; a < s.length; a += 1) d[a + 1] = s[a] ^ u.charCodeAt(a);
5050
- return new q(d.concat(l));
5045
+ return new H(d.concat(l));
5051
5046
  }
5052
- var hn = function() {
5047
+ var Pt = function() {
5053
5048
  function e() {
5054
5049
  this.n = null, this.e = 0, this.d = null, this.p = null, this.q = null, this.dmp1 = null, this.dmq1 = null, this.coeff = null;
5055
5050
  }
@@ -5060,9 +5055,9 @@ var hn = function() {
5060
5055
  for (var t = e.mod(this.p).modPow(this.dmp1, this.p), n = e.mod(this.q).modPow(this.dmq1, this.q); t.compareTo(n) < 0;) t = t.add(this.p);
5061
5056
  return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n);
5062
5057
  }, e.prototype.setPublic = function(e, t) {
5063
- e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = Y(e, 16), this.e = parseInt(t, 16)) : console.error("Invalid RSA public key");
5058
+ e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = W(e, 16), this.e = parseInt(t, 16)) : console.error("Invalid RSA public key");
5064
5059
  }, e.prototype.encrypt = function(e, t) {
5065
- t === void 0 && (t = dn);
5060
+ t === void 0 && (t = At);
5066
5061
  var n = this.n.bitLength() + 7 >> 3, r = t(e, n);
5067
5062
  if (r == null) return null;
5068
5063
  var i = this.doPublic(r);
@@ -5070,51 +5065,51 @@ var hn = function() {
5070
5065
  for (var a = i.toString(16), o = a.length, s = 0; s < n * 2 - o; s++) a = "0" + a;
5071
5066
  return a;
5072
5067
  }, e.prototype.setPrivate = function(e, t, n) {
5073
- e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = Y(e, 16), this.e = parseInt(t, 16), this.d = Y(n, 16)) : console.error("Invalid RSA private key");
5068
+ e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = W(e, 16), this.e = parseInt(t, 16), this.d = W(n, 16)) : console.error("Invalid RSA private key");
5074
5069
  }, e.prototype.setPrivateEx = function(e, t, n, r, i, a, o, s) {
5075
- e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = Y(e, 16), this.e = parseInt(t, 16), this.d = Y(n, 16), this.p = Y(r, 16), this.q = Y(i, 16), this.dmp1 = Y(a, 16), this.dmq1 = Y(o, 16), this.coeff = Y(s, 16)) : console.error("Invalid RSA private key");
5070
+ e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = W(e, 16), this.e = parseInt(t, 16), this.d = W(n, 16), this.p = W(r, 16), this.q = W(i, 16), this.dmp1 = W(a, 16), this.dmq1 = W(o, 16), this.coeff = W(s, 16)) : console.error("Invalid RSA private key");
5076
5071
  }, e.prototype.generate = function(e, t) {
5077
- var n = new Jt(), r = e >> 1;
5072
+ var n = new ht(), r = e >> 1;
5078
5073
  this.e = parseInt(t, 16);
5079
- for (var i = new q(t, 16);;) {
5080
- for (; this.p = new q(e - r, 1, n), !(this.p.subtract(q.ONE).gcd(i).compareTo(q.ONE) == 0 && this.p.isProbablePrime(10)););
5081
- for (; this.q = new q(r, 1, n), !(this.q.subtract(q.ONE).gcd(i).compareTo(q.ONE) == 0 && this.q.isProbablePrime(10)););
5074
+ for (var i = new H(t, 16);;) {
5075
+ for (; this.p = new H(e - r, 1, n), !(this.p.subtract(H.ONE).gcd(i).compareTo(H.ONE) == 0 && this.p.isProbablePrime(10)););
5076
+ for (; this.q = new H(r, 1, n), !(this.q.subtract(H.ONE).gcd(i).compareTo(H.ONE) == 0 && this.q.isProbablePrime(10)););
5082
5077
  if (this.p.compareTo(this.q) <= 0) {
5083
5078
  var a = this.p;
5084
5079
  this.p = this.q, this.q = a;
5085
5080
  }
5086
- var o = this.p.subtract(q.ONE), s = this.q.subtract(q.ONE), c = o.multiply(s);
5087
- if (c.gcd(i).compareTo(q.ONE) == 0) {
5081
+ var o = this.p.subtract(H.ONE), s = this.q.subtract(H.ONE), c = o.multiply(s);
5082
+ if (c.gcd(i).compareTo(H.ONE) == 0) {
5088
5083
  this.n = this.p.multiply(this.q), this.d = i.modInverse(c), this.dmp1 = this.d.mod(o), this.dmq1 = this.d.mod(s), this.coeff = this.q.modInverse(this.p);
5089
5084
  break;
5090
5085
  }
5091
5086
  }
5092
5087
  }, e.prototype.decrypt = function(e) {
5093
- var t = Y(e, 16), n = this.doPrivate(t);
5094
- return n == null ? null : gn(n, this.n.bitLength() + 7 >> 3);
5088
+ var t = W(e, 16), n = this.doPrivate(t);
5089
+ return n == null ? null : Ft(n, this.n.bitLength() + 7 >> 3);
5095
5090
  }, e.prototype.generateAsync = function(e, t, n) {
5096
- var r = new Jt(), i = e >> 1;
5091
+ var r = new ht(), i = e >> 1;
5097
5092
  this.e = parseInt(t, 16);
5098
- var a = new q(t, 16), o = this, s = function() {
5093
+ var a = new H(t, 16), o = this, s = function() {
5099
5094
  var t = function() {
5100
5095
  if (o.p.compareTo(o.q) <= 0) {
5101
5096
  var e = o.p;
5102
5097
  o.p = o.q, o.q = e;
5103
5098
  }
5104
- var t = o.p.subtract(q.ONE), r = o.q.subtract(q.ONE), i = t.multiply(r);
5105
- i.gcd(a).compareTo(q.ONE) == 0 ? (o.n = o.p.multiply(o.q), o.d = a.modInverse(i), o.dmp1 = o.d.mod(t), o.dmq1 = o.d.mod(r), o.coeff = o.q.modInverse(o.p), setTimeout(function() {
5099
+ var t = o.p.subtract(H.ONE), r = o.q.subtract(H.ONE), i = t.multiply(r);
5100
+ i.gcd(a).compareTo(H.ONE) == 0 ? (o.n = o.p.multiply(o.q), o.d = a.modInverse(i), o.dmp1 = o.d.mod(t), o.dmq1 = o.d.mod(r), o.coeff = o.q.modInverse(o.p), setTimeout(function() {
5106
5101
  n();
5107
5102
  }, 0)) : setTimeout(s, 0);
5108
5103
  }, c = function() {
5109
- o.q = J(), o.q.fromNumberAsync(i, 1, r, function() {
5110
- o.q.subtract(q.ONE).gcda(a, function(e) {
5111
- e.compareTo(q.ONE) == 0 && o.q.isProbablePrime(10) ? setTimeout(t, 0) : setTimeout(c, 0);
5104
+ o.q = U(), o.q.fromNumberAsync(i, 1, r, function() {
5105
+ o.q.subtract(H.ONE).gcda(a, function(e) {
5106
+ e.compareTo(H.ONE) == 0 && o.q.isProbablePrime(10) ? setTimeout(t, 0) : setTimeout(c, 0);
5112
5107
  });
5113
5108
  });
5114
5109
  }, l = function() {
5115
- o.p = J(), o.p.fromNumberAsync(e - i, 1, r, function() {
5116
- o.p.subtract(q.ONE).gcda(a, function(e) {
5117
- e.compareTo(q.ONE) == 0 && o.p.isProbablePrime(10) ? setTimeout(c, 0) : setTimeout(l, 0);
5110
+ o.p = U(), o.p.fromNumberAsync(e - i, 1, r, function() {
5111
+ o.p.subtract(H.ONE).gcda(a, function(e) {
5112
+ e.compareTo(H.ONE) == 0 && o.p.isProbablePrime(10) ? setTimeout(c, 0) : setTimeout(l, 0);
5118
5113
  });
5119
5114
  });
5120
5115
  };
@@ -5122,18 +5117,18 @@ var hn = function() {
5122
5117
  };
5123
5118
  setTimeout(s, 0);
5124
5119
  }, e.prototype.sign = function(e, t, n) {
5125
- var r = vn(n) + t(e).toString(), i = this.n.bitLength() / 4, a = un(r, i);
5120
+ var r = Lt(n) + t(e).toString(), i = this.n.bitLength() / 4, a = kt(r, i);
5126
5121
  if (a == null) return null;
5127
5122
  var o = this.doPrivate(a);
5128
5123
  if (o == null) return null;
5129
5124
  for (var s = o.toString(16), c = s.length, l = 0; l < i - c; l++) s = "0" + s;
5130
5125
  return s;
5131
5126
  }, e.prototype.verify = function(e, t, n) {
5132
- var r = Y(t, 16), i = this.doPublic(r);
5133
- return i == null ? null : yn(i.toString(16).replace(/^1f+00/, "")) == n(e).toString();
5127
+ var r = W(t, 16), i = this.doPublic(r);
5128
+ return i == null ? null : Rt(i.toString(16).replace(/^1f+00/, "")) == n(e).toString();
5134
5129
  }, e;
5135
5130
  }();
5136
- function gn(e, t) {
5131
+ function Ft(e, t) {
5137
5132
  for (var n = e.toByteArray(), r = 0; r < n.length && n[r] == 0;) ++r;
5138
5133
  if (n.length - r != t - 1 || n[r] != 2) return null;
5139
5134
  for (++r; n[r] != 0;) if (++r >= n.length) return null;
@@ -5143,7 +5138,7 @@ function gn(e, t) {
5143
5138
  }
5144
5139
  return i;
5145
5140
  }
5146
- var _n = {
5141
+ var It = {
5147
5142
  md2: "3020300c06082a864886f70d020205000410",
5148
5143
  md5: "3020300c06082a864886f70d020505000410",
5149
5144
  sha1: "3021300906052b0e03021a05000414",
@@ -5153,19 +5148,19 @@ var _n = {
5153
5148
  sha512: "3051300d060960864801650304020305000440",
5154
5149
  ripemd160: "3021300906052b2403020105000414"
5155
5150
  };
5156
- function vn(e) {
5157
- return _n[e] || "";
5151
+ function Lt(e) {
5152
+ return It[e] || "";
5158
5153
  }
5159
- function yn(e) {
5160
- for (var t in _n) if (_n.hasOwnProperty(t)) {
5161
- var n = _n[t], r = n.length;
5154
+ function Rt(e) {
5155
+ for (var t in It) if (It.hasOwnProperty(t)) {
5156
+ var n = It[t], r = n.length;
5162
5157
  if (e.substring(0, r) == n) return e.substring(r);
5163
5158
  }
5164
5159
  return e;
5165
5160
  }
5166
5161
  //#endregion
5167
5162
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js
5168
- function Z(e, t, n) {
5163
+ function Y(e, t, n) {
5169
5164
  if (!t || !e) throw Error("extend failed, please check that all dependencies are included.");
5170
5165
  var r = function() {};
5171
5166
  if (r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e, e.superclass = t.prototype, t.prototype.constructor == Object.prototype.constructor && (t.prototype.constructor = t), n) {
@@ -5182,8 +5177,8 @@ function Z(e, t, n) {
5182
5177
  a(e.prototype, n);
5183
5178
  }
5184
5179
  }
5185
- var Q = {};
5186
- (Q.asn1 === void 0 || !Q.asn1) && (Q.asn1 = {}), Q.asn1.ASN1Util = new function() {
5180
+ var X = {};
5181
+ (X.asn1 === void 0 || !X.asn1) && (X.asn1 = {}), X.asn1.ASN1Util = new function() {
5187
5182
  this.integerToByteHex = function(e) {
5188
5183
  var t = e.toString(16);
5189
5184
  return t.length % 2 == 1 && (t = "0" + t), t;
@@ -5194,13 +5189,13 @@ var Q = {};
5194
5189
  var n = t.substring(1).length;
5195
5190
  n % 2 == 1 ? n += 1 : t.match(/^[0-7]/) || (n += 2);
5196
5191
  for (var r = "", i = 0; i < n; i++) r += "f";
5197
- t = new q(r, 16).xor(e).add(q.ONE).toString(16).replace(/^-/, "");
5192
+ t = new H(r, 16).xor(e).add(H.ONE).toString(16).replace(/^-/, "");
5198
5193
  }
5199
5194
  return t;
5200
5195
  }, this.getPEMStringFromHex = function(e, t) {
5201
5196
  return hextopem(e, t);
5202
5197
  }, this.newObject = function(e) {
5203
- var t = Q.asn1, n = t.DERBoolean, r = t.DERInteger, i = t.DERBitString, a = t.DEROctetString, o = t.DERNull, s = t.DERObjectIdentifier, c = t.DEREnumerated, l = t.DERUTF8String, u = t.DERNumericString, d = t.DERPrintableString, f = t.DERTeletexString, p = t.DERIA5String, m = t.DERUTCTime, h = t.DERGeneralizedTime, g = t.DERSequence, _ = t.DERSet, v = t.DERTaggedObject, y = t.ASN1Util.newObject, b = Object.keys(e);
5198
+ var t = X.asn1, n = t.DERBoolean, r = t.DERInteger, i = t.DERBitString, a = t.DEROctetString, o = t.DERNull, s = t.DERObjectIdentifier, c = t.DEREnumerated, l = t.DERUTF8String, u = t.DERNumericString, d = t.DERPrintableString, f = t.DERTeletexString, p = t.DERIA5String, m = t.DERUTCTime, h = t.DERGeneralizedTime, g = t.DERSequence, _ = t.DERSet, v = t.DERTaggedObject, y = t.ASN1Util.newObject, b = Object.keys(e);
5204
5199
  if (b.length != 1) throw "key of param shall be only one.";
5205
5200
  var x = b[0];
5206
5201
  if (":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + x + ":") == -1) throw "undefined key: " + x;
@@ -5250,21 +5245,21 @@ var Q = {};
5250
5245
  }, this.jsonToASN1HEX = function(e) {
5251
5246
  return this.newObject(e).getEncodedHex();
5252
5247
  };
5253
- }(), Q.asn1.ASN1Util.oidHexToInt = function(e) {
5248
+ }(), X.asn1.ASN1Util.oidHexToInt = function(e) {
5254
5249
  for (var t = "", n = parseInt(e.substring(0, 2), 16), r = Math.floor(n / 40), i = n % 40, t = r + "." + i, a = "", o = 2; o < e.length; o += 2) {
5255
5250
  var s = ("00000000" + parseInt(e.substring(o, o + 2), 16).toString(2)).slice(-8);
5256
5251
  if (a += s.substring(1, 8), s.substring(0, 1) == "0") {
5257
- var c = new q(a, 2);
5252
+ var c = new H(a, 2);
5258
5253
  t = t + "." + c.toString(10), a = "";
5259
5254
  }
5260
5255
  }
5261
5256
  return t;
5262
- }, Q.asn1.ASN1Util.oidIntToHex = function(e) {
5257
+ }, X.asn1.ASN1Util.oidIntToHex = function(e) {
5263
5258
  var t = function(e) {
5264
5259
  var t = e.toString(16);
5265
5260
  return t.length == 1 && (t = "0" + t), t;
5266
5261
  }, n = function(e) {
5267
- var n = "", r = new q(e, 10).toString(2), i = 7 - r.length % 7;
5262
+ var n = "", r = new H(e, 10).toString(2), i = 7 - r.length % 7;
5268
5263
  i == 7 && (i = 0);
5269
5264
  for (var a = "", o = 0; o < i; o++) a += "0";
5270
5265
  r = a + r;
@@ -5279,7 +5274,7 @@ var Q = {};
5279
5274
  r += t(a), i.splice(0, 2);
5280
5275
  for (var o = 0; o < i.length; o++) r += n(i[o]);
5281
5276
  return r;
5282
- }, Q.asn1.ASN1Object = function() {
5277
+ }, X.asn1.ASN1Object = function() {
5283
5278
  var e = "";
5284
5279
  this.getLengthHexFromValue = function() {
5285
5280
  if (this.hV === void 0 || this.hV == null) throw "this.hV is null or undefined.";
@@ -5296,8 +5291,8 @@ var Q = {};
5296
5291
  }, this.getFreshValueHex = function() {
5297
5292
  return "";
5298
5293
  };
5299
- }, Q.asn1.DERAbstractString = function(e) {
5300
- Q.asn1.DERAbstractString.superclass.constructor.call(this), this.getString = function() {
5294
+ }, X.asn1.DERAbstractString = function(e) {
5295
+ X.asn1.DERAbstractString.superclass.constructor.call(this), this.getString = function() {
5301
5296
  return this.s;
5302
5297
  }, this.setString = function(e) {
5303
5298
  this.hTLV = null, this.isModified = !0, this.s = e, this.hV = stohex(this.s);
@@ -5306,8 +5301,8 @@ var Q = {};
5306
5301
  }, this.getFreshValueHex = function() {
5307
5302
  return this.hV;
5308
5303
  }, e !== void 0 && (typeof e == "string" ? this.setString(e) : e.str === void 0 ? e.hex !== void 0 && this.setStringHex(e.hex) : this.setString(e.str));
5309
- }, Z(Q.asn1.DERAbstractString, Q.asn1.ASN1Object), Q.asn1.DERAbstractTime = function(e) {
5310
- Q.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function(e) {
5304
+ }, Y(X.asn1.DERAbstractString, X.asn1.ASN1Object), X.asn1.DERAbstractTime = function(e) {
5305
+ X.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function(e) {
5311
5306
  return utc = e.getTime() + e.getTimezoneOffset() * 6e4, new Date(utc);
5312
5307
  }, this.formatDate = function(e, t, n) {
5313
5308
  var r = this.zeroPadding, i = this.localDateToUTC(e), a = String(i.getFullYear());
@@ -5333,27 +5328,27 @@ var Q = {};
5333
5328
  }, this.getFreshValueHex = function() {
5334
5329
  return this.hV;
5335
5330
  };
5336
- }, Z(Q.asn1.DERAbstractTime, Q.asn1.ASN1Object), Q.asn1.DERAbstractStructured = function(e) {
5337
- Q.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function(e) {
5331
+ }, Y(X.asn1.DERAbstractTime, X.asn1.ASN1Object), X.asn1.DERAbstractStructured = function(e) {
5332
+ X.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function(e) {
5338
5333
  this.hTLV = null, this.isModified = !0, this.asn1Array = e;
5339
5334
  }, this.appendASN1Object = function(e) {
5340
5335
  this.hTLV = null, this.isModified = !0, this.asn1Array.push(e);
5341
5336
  }, this.asn1Array = [], e !== void 0 && e.array !== void 0 && (this.asn1Array = e.array);
5342
- }, Z(Q.asn1.DERAbstractStructured, Q.asn1.ASN1Object), Q.asn1.DERBoolean = function() {
5343
- Q.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff";
5344
- }, Z(Q.asn1.DERBoolean, Q.asn1.ASN1Object), Q.asn1.DERInteger = function(e) {
5345
- Q.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(e) {
5346
- this.hTLV = null, this.isModified = !0, this.hV = Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
5337
+ }, Y(X.asn1.DERAbstractStructured, X.asn1.ASN1Object), X.asn1.DERBoolean = function() {
5338
+ X.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff";
5339
+ }, Y(X.asn1.DERBoolean, X.asn1.ASN1Object), X.asn1.DERInteger = function(e) {
5340
+ X.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(e) {
5341
+ this.hTLV = null, this.isModified = !0, this.hV = X.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
5347
5342
  }, this.setByInteger = function(e) {
5348
- var t = new q(String(e), 10);
5343
+ var t = new H(String(e), 10);
5349
5344
  this.setByBigInteger(t);
5350
5345
  }, this.setValueHex = function(e) {
5351
5346
  this.hV = e;
5352
5347
  }, this.getFreshValueHex = function() {
5353
5348
  return this.hV;
5354
5349
  }, e !== void 0 && (e.bigint === void 0 ? e.int === void 0 ? typeof e == "number" ? this.setByInteger(e) : e.hex !== void 0 && this.setValueHex(e.hex) : this.setByInteger(e.int) : this.setByBigInteger(e.bigint));
5355
- }, Z(Q.asn1.DERInteger, Q.asn1.ASN1Object), Q.asn1.DERBitString = function(e) {
5356
- e !== void 0 && e.obj !== void 0 && (e.hex = "00" + Q.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), Q.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function(e) {
5350
+ }, Y(X.asn1.DERInteger, X.asn1.ASN1Object), X.asn1.DERBitString = function(e) {
5351
+ e !== void 0 && e.obj !== void 0 && (e.hex = "00" + X.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), X.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function(e) {
5357
5352
  this.hTLV = null, this.isModified = !0, this.hV = e;
5358
5353
  }, this.setUnusedBitsAndHexValue = function(e, t) {
5359
5354
  if (e < 0 || 7 < e) throw "unused bits shall be from 0 to 7: u = " + e;
@@ -5378,16 +5373,16 @@ var Q = {};
5378
5373
  }, this.getFreshValueHex = function() {
5379
5374
  return this.hV;
5380
5375
  }, e !== void 0 && (typeof e == "string" && e.toLowerCase().match(/^[0-9a-f]+$/) ? this.setHexValueIncludingUnusedBits(e) : e.hex === void 0 ? e.bin === void 0 ? e.array !== void 0 && this.setByBooleanArray(e.array) : this.setByBinaryString(e.bin) : this.setHexValueIncludingUnusedBits(e.hex));
5381
- }, Z(Q.asn1.DERBitString, Q.asn1.ASN1Object), Q.asn1.DEROctetString = function(e) {
5382
- e !== void 0 && e.obj !== void 0 && (e.hex = Q.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), Q.asn1.DEROctetString.superclass.constructor.call(this, e), this.hT = "04";
5383
- }, Z(Q.asn1.DEROctetString, Q.asn1.DERAbstractString), Q.asn1.DERNull = function() {
5384
- Q.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500";
5385
- }, Z(Q.asn1.DERNull, Q.asn1.ASN1Object), Q.asn1.DERObjectIdentifier = function(e) {
5376
+ }, Y(X.asn1.DERBitString, X.asn1.ASN1Object), X.asn1.DEROctetString = function(e) {
5377
+ e !== void 0 && e.obj !== void 0 && (e.hex = X.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), X.asn1.DEROctetString.superclass.constructor.call(this, e), this.hT = "04";
5378
+ }, Y(X.asn1.DEROctetString, X.asn1.DERAbstractString), X.asn1.DERNull = function() {
5379
+ X.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500";
5380
+ }, Y(X.asn1.DERNull, X.asn1.ASN1Object), X.asn1.DERObjectIdentifier = function(e) {
5386
5381
  var t = function(e) {
5387
5382
  var t = e.toString(16);
5388
5383
  return t.length == 1 && (t = "0" + t), t;
5389
5384
  }, n = function(e) {
5390
- var n = "", r = new q(e, 10).toString(2), i = 7 - r.length % 7;
5385
+ var n = "", r = new H(e, 10).toString(2), i = 7 - r.length % 7;
5391
5386
  i == 7 && (i = 0);
5392
5387
  for (var a = "", o = 0; o < i; o++) a += "0";
5393
5388
  r = a + r;
@@ -5397,7 +5392,7 @@ var Q = {};
5397
5392
  }
5398
5393
  return n;
5399
5394
  };
5400
- Q.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function(e) {
5395
+ X.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function(e) {
5401
5396
  this.hTLV = null, this.isModified = !0, this.s = null, this.hV = e;
5402
5397
  }, this.setValueOidString = function(e) {
5403
5398
  if (!e.match(/^[0-9.]+$/)) throw "malformed oid string: " + e;
@@ -5406,71 +5401,71 @@ var Q = {};
5406
5401
  for (var o = 0; o < i.length; o++) r += n(i[o]);
5407
5402
  this.hTLV = null, this.isModified = !0, this.s = null, this.hV = r;
5408
5403
  }, this.setValueName = function(e) {
5409
- var t = Q.asn1.x509.OID.name2oid(e);
5404
+ var t = X.asn1.x509.OID.name2oid(e);
5410
5405
  if (t !== "") this.setValueOidString(t);
5411
5406
  else throw "DERObjectIdentifier oidName undefined: " + e;
5412
5407
  }, this.getFreshValueHex = function() {
5413
5408
  return this.hV;
5414
5409
  }, e !== void 0 && (typeof e == "string" ? e.match(/^[0-2].[0-9.]+$/) ? this.setValueOidString(e) : this.setValueName(e) : e.oid === void 0 ? e.hex === void 0 ? e.name !== void 0 && this.setValueName(e.name) : this.setValueHex(e.hex) : this.setValueOidString(e.oid));
5415
- }, Z(Q.asn1.DERObjectIdentifier, Q.asn1.ASN1Object), Q.asn1.DEREnumerated = function(e) {
5416
- Q.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(e) {
5417
- this.hTLV = null, this.isModified = !0, this.hV = Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
5410
+ }, Y(X.asn1.DERObjectIdentifier, X.asn1.ASN1Object), X.asn1.DEREnumerated = function(e) {
5411
+ X.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(e) {
5412
+ this.hTLV = null, this.isModified = !0, this.hV = X.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
5418
5413
  }, this.setByInteger = function(e) {
5419
- var t = new q(String(e), 10);
5414
+ var t = new H(String(e), 10);
5420
5415
  this.setByBigInteger(t);
5421
5416
  }, this.setValueHex = function(e) {
5422
5417
  this.hV = e;
5423
5418
  }, this.getFreshValueHex = function() {
5424
5419
  return this.hV;
5425
5420
  }, e !== void 0 && (e.int === void 0 ? typeof e == "number" ? this.setByInteger(e) : e.hex !== void 0 && this.setValueHex(e.hex) : this.setByInteger(e.int));
5426
- }, Z(Q.asn1.DEREnumerated, Q.asn1.ASN1Object), Q.asn1.DERUTF8String = function(e) {
5427
- Q.asn1.DERUTF8String.superclass.constructor.call(this, e), this.hT = "0c";
5428
- }, Z(Q.asn1.DERUTF8String, Q.asn1.DERAbstractString), Q.asn1.DERNumericString = function(e) {
5429
- Q.asn1.DERNumericString.superclass.constructor.call(this, e), this.hT = "12";
5430
- }, Z(Q.asn1.DERNumericString, Q.asn1.DERAbstractString), Q.asn1.DERPrintableString = function(e) {
5431
- Q.asn1.DERPrintableString.superclass.constructor.call(this, e), this.hT = "13";
5432
- }, Z(Q.asn1.DERPrintableString, Q.asn1.DERAbstractString), Q.asn1.DERTeletexString = function(e) {
5433
- Q.asn1.DERTeletexString.superclass.constructor.call(this, e), this.hT = "14";
5434
- }, Z(Q.asn1.DERTeletexString, Q.asn1.DERAbstractString), Q.asn1.DERIA5String = function(e) {
5435
- Q.asn1.DERIA5String.superclass.constructor.call(this, e), this.hT = "16";
5436
- }, Z(Q.asn1.DERIA5String, Q.asn1.DERAbstractString), Q.asn1.DERUTCTime = function(e) {
5437
- Q.asn1.DERUTCTime.superclass.constructor.call(this, e), this.hT = "17", this.setByDate = function(e) {
5421
+ }, Y(X.asn1.DEREnumerated, X.asn1.ASN1Object), X.asn1.DERUTF8String = function(e) {
5422
+ X.asn1.DERUTF8String.superclass.constructor.call(this, e), this.hT = "0c";
5423
+ }, Y(X.asn1.DERUTF8String, X.asn1.DERAbstractString), X.asn1.DERNumericString = function(e) {
5424
+ X.asn1.DERNumericString.superclass.constructor.call(this, e), this.hT = "12";
5425
+ }, Y(X.asn1.DERNumericString, X.asn1.DERAbstractString), X.asn1.DERPrintableString = function(e) {
5426
+ X.asn1.DERPrintableString.superclass.constructor.call(this, e), this.hT = "13";
5427
+ }, Y(X.asn1.DERPrintableString, X.asn1.DERAbstractString), X.asn1.DERTeletexString = function(e) {
5428
+ X.asn1.DERTeletexString.superclass.constructor.call(this, e), this.hT = "14";
5429
+ }, Y(X.asn1.DERTeletexString, X.asn1.DERAbstractString), X.asn1.DERIA5String = function(e) {
5430
+ X.asn1.DERIA5String.superclass.constructor.call(this, e), this.hT = "16";
5431
+ }, Y(X.asn1.DERIA5String, X.asn1.DERAbstractString), X.asn1.DERUTCTime = function(e) {
5432
+ X.asn1.DERUTCTime.superclass.constructor.call(this, e), this.hT = "17", this.setByDate = function(e) {
5438
5433
  this.hTLV = null, this.isModified = !0, this.date = e, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s);
5439
5434
  }, this.getFreshValueHex = function() {
5440
5435
  return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s)), this.hV;
5441
5436
  }, e !== void 0 && (e.str === void 0 ? typeof e == "string" && e.match(/^[0-9]{12}Z$/) ? this.setString(e) : e.hex === void 0 ? e.date !== void 0 && this.setByDate(e.date) : this.setStringHex(e.hex) : this.setString(e.str));
5442
- }, Z(Q.asn1.DERUTCTime, Q.asn1.DERAbstractTime), Q.asn1.DERGeneralizedTime = function(e) {
5443
- Q.asn1.DERGeneralizedTime.superclass.constructor.call(this, e), this.hT = "18", this.withMillis = !1, this.setByDate = function(e) {
5437
+ }, Y(X.asn1.DERUTCTime, X.asn1.DERAbstractTime), X.asn1.DERGeneralizedTime = function(e) {
5438
+ X.asn1.DERGeneralizedTime.superclass.constructor.call(this, e), this.hT = "18", this.withMillis = !1, this.setByDate = function(e) {
5444
5439
  this.hTLV = null, this.isModified = !0, this.date = e, this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s);
5445
5440
  }, this.getFreshValueHex = function() {
5446
5441
  return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s)), this.hV;
5447
5442
  }, e !== void 0 && (e.str === void 0 ? typeof e == "string" && e.match(/^[0-9]{14}Z$/) ? this.setString(e) : e.hex === void 0 ? e.date !== void 0 && this.setByDate(e.date) : this.setStringHex(e.hex) : this.setString(e.str), e.millis === !0 && (this.withMillis = !0));
5448
- }, Z(Q.asn1.DERGeneralizedTime, Q.asn1.DERAbstractTime), Q.asn1.DERSequence = function(e) {
5449
- Q.asn1.DERSequence.superclass.constructor.call(this, e), this.hT = "30", this.getFreshValueHex = function() {
5443
+ }, Y(X.asn1.DERGeneralizedTime, X.asn1.DERAbstractTime), X.asn1.DERSequence = function(e) {
5444
+ X.asn1.DERSequence.superclass.constructor.call(this, e), this.hT = "30", this.getFreshValueHex = function() {
5450
5445
  for (var e = "", t = 0; t < this.asn1Array.length; t++) {
5451
5446
  var n = this.asn1Array[t];
5452
5447
  e += n.getEncodedHex();
5453
5448
  }
5454
5449
  return this.hV = e, this.hV;
5455
5450
  };
5456
- }, Z(Q.asn1.DERSequence, Q.asn1.DERAbstractStructured), Q.asn1.DERSet = function(e) {
5457
- Q.asn1.DERSet.superclass.constructor.call(this, e), this.hT = "31", this.sortFlag = !0, this.getFreshValueHex = function() {
5451
+ }, Y(X.asn1.DERSequence, X.asn1.DERAbstractStructured), X.asn1.DERSet = function(e) {
5452
+ X.asn1.DERSet.superclass.constructor.call(this, e), this.hT = "31", this.sortFlag = !0, this.getFreshValueHex = function() {
5458
5453
  for (var e = [], t = 0; t < this.asn1Array.length; t++) {
5459
5454
  var n = this.asn1Array[t];
5460
5455
  e.push(n.getEncodedHex());
5461
5456
  }
5462
5457
  return this.sortFlag == 1 && e.sort(), this.hV = e.join(""), this.hV;
5463
5458
  }, e !== void 0 && e.sortflag !== void 0 && e.sortflag == 0 && (this.sortFlag = !1);
5464
- }, Z(Q.asn1.DERSet, Q.asn1.DERAbstractStructured), Q.asn1.DERTaggedObject = function(e) {
5465
- Q.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function(e, t, n) {
5459
+ }, Y(X.asn1.DERSet, X.asn1.DERAbstractStructured), X.asn1.DERTaggedObject = function(e) {
5460
+ X.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function(e, t, n) {
5466
5461
  this.hT = t, this.isExplicit = e, this.asn1Object = n, this.isExplicit ? (this.hV = this.asn1Object.getEncodedHex(), this.hTLV = null, this.isModified = !0) : (this.hV = null, this.hTLV = n.getEncodedHex(), this.hTLV = this.hTLV.replace(/^../, t), this.isModified = !1);
5467
5462
  }, this.getFreshValueHex = function() {
5468
5463
  return this.hV;
5469
5464
  }, e !== void 0 && (e.tag !== void 0 && (this.hT = e.tag), e.explicit !== void 0 && (this.isExplicit = e.explicit), e.obj !== void 0 && (this.asn1Object = e.obj, this.setASN1Object(this.isExplicit, this.hT, this.asn1Object)));
5470
- }, Z(Q.asn1.DERTaggedObject, Q.asn1.ASN1Object);
5465
+ }, Y(X.asn1.DERTaggedObject, X.asn1.ASN1Object);
5471
5466
  //#endregion
5472
5467
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/JSEncryptRSAKey.js
5473
- var bn = (function() {
5468
+ var zt = (function() {
5474
5469
  var e = function(t, n) {
5475
5470
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
5476
5471
  e.__proto__ = t;
@@ -5486,20 +5481,20 @@ var bn = (function() {
5486
5481
  }
5487
5482
  t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
5488
5483
  };
5489
- })(), xn = function(e) {
5490
- bn(t, e);
5484
+ })(), Bt = function(e) {
5485
+ zt(t, e);
5491
5486
  function t(n) {
5492
5487
  var r = e.call(this) || this;
5493
5488
  return n && (typeof n == "string" ? r.parseKey(n) : (t.hasPrivateKeyProperty(n) || t.hasPublicKeyProperty(n)) && r.parsePropertiesFrom(n)), r;
5494
5489
  }
5495
5490
  return t.prototype.parseKey = function(e) {
5496
5491
  try {
5497
- var t = 0, n = 0, r = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e) ? ht.decode(e) : _t.unarmor(e), i = St.decode(r);
5498
- if (i.sub.length === 3 && (i = i.sub[2].sub[0]), i.sub.length === 9) t = i.sub[1].getHexStringValue(), this.n = Y(t, 16), n = i.sub[2].getHexStringValue(), this.e = parseInt(n, 16), this.d = Y(i.sub[3].getHexStringValue(), 16), this.p = Y(i.sub[4].getHexStringValue(), 16), this.q = Y(i.sub[5].getHexStringValue(), 16), this.dmp1 = Y(i.sub[6].getHexStringValue(), 16), this.dmq1 = Y(i.sub[7].getHexStringValue(), 16), this.coeff = Y(i.sub[8].getHexStringValue(), 16);
5492
+ var t = 0, n = 0, r = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e) ? Fe.decode(e) : Ie.unarmor(e), i = We.decode(r);
5493
+ if (i.sub.length === 3 && (i = i.sub[2].sub[0]), i.sub.length === 9) t = i.sub[1].getHexStringValue(), this.n = W(t, 16), n = i.sub[2].getHexStringValue(), this.e = parseInt(n, 16), this.d = W(i.sub[3].getHexStringValue(), 16), this.p = W(i.sub[4].getHexStringValue(), 16), this.q = W(i.sub[5].getHexStringValue(), 16), this.dmp1 = W(i.sub[6].getHexStringValue(), 16), this.dmq1 = W(i.sub[7].getHexStringValue(), 16), this.coeff = W(i.sub[8].getHexStringValue(), 16);
5499
5494
  else if (i.sub.length === 2) if (i.sub[0].sub) {
5500
5495
  var a = i.sub[1].sub[0];
5501
- t = a.sub[0].getHexStringValue(), this.n = Y(t, 16), n = a.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
5502
- } else t = i.sub[0].getHexStringValue(), this.n = Y(t, 16), n = i.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
5496
+ t = a.sub[0].getHexStringValue(), this.n = W(t, 16), n = a.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
5497
+ } else t = i.sub[0].getHexStringValue(), this.n = W(t, 16), n = i.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
5503
5498
  else return !1;
5504
5499
  return !0;
5505
5500
  } catch {
@@ -5507,24 +5502,24 @@ var bn = (function() {
5507
5502
  }
5508
5503
  }, t.prototype.getPrivateBaseKey = function() {
5509
5504
  var e = { array: [
5510
- new Q.asn1.DERInteger({ int: 0 }),
5511
- new Q.asn1.DERInteger({ bigint: this.n }),
5512
- new Q.asn1.DERInteger({ int: this.e }),
5513
- new Q.asn1.DERInteger({ bigint: this.d }),
5514
- new Q.asn1.DERInteger({ bigint: this.p }),
5515
- new Q.asn1.DERInteger({ bigint: this.q }),
5516
- new Q.asn1.DERInteger({ bigint: this.dmp1 }),
5517
- new Q.asn1.DERInteger({ bigint: this.dmq1 }),
5518
- new Q.asn1.DERInteger({ bigint: this.coeff })
5505
+ new X.asn1.DERInteger({ int: 0 }),
5506
+ new X.asn1.DERInteger({ bigint: this.n }),
5507
+ new X.asn1.DERInteger({ int: this.e }),
5508
+ new X.asn1.DERInteger({ bigint: this.d }),
5509
+ new X.asn1.DERInteger({ bigint: this.p }),
5510
+ new X.asn1.DERInteger({ bigint: this.q }),
5511
+ new X.asn1.DERInteger({ bigint: this.dmp1 }),
5512
+ new X.asn1.DERInteger({ bigint: this.dmq1 }),
5513
+ new X.asn1.DERInteger({ bigint: this.coeff })
5519
5514
  ] };
5520
- return new Q.asn1.DERSequence(e).getEncodedHex();
5515
+ return new X.asn1.DERSequence(e).getEncodedHex();
5521
5516
  }, t.prototype.getPrivateBaseKeyB64 = function() {
5522
- return ft(this.getPrivateBaseKey());
5517
+ return Me(this.getPrivateBaseKey());
5523
5518
  }, t.prototype.getPublicBaseKey = function() {
5524
- var e = new Q.asn1.DERSequence({ array: [new Q.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }), new Q.asn1.DERNull()] }), t = new Q.asn1.DERSequence({ array: [new Q.asn1.DERInteger({ bigint: this.n }), new Q.asn1.DERInteger({ int: this.e })] }), n = new Q.asn1.DERBitString({ hex: "00" + t.getEncodedHex() });
5525
- return new Q.asn1.DERSequence({ array: [e, n] }).getEncodedHex();
5519
+ var e = new X.asn1.DERSequence({ array: [new X.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }), new X.asn1.DERNull()] }), t = new X.asn1.DERSequence({ array: [new X.asn1.DERInteger({ bigint: this.n }), new X.asn1.DERInteger({ int: this.e })] }), n = new X.asn1.DERBitString({ hex: "00" + t.getEncodedHex() });
5520
+ return new X.asn1.DERSequence({ array: [e, n] }).getEncodedHex();
5526
5521
  }, t.prototype.getPublicBaseKeyB64 = function() {
5527
- return ft(this.getPublicBaseKey());
5522
+ return Me(this.getPublicBaseKey());
5528
5523
  }, t.wordwrap = function(e, t) {
5529
5524
  if (t ||= 64, !e) return e;
5530
5525
  var n = "(.{1," + t + "})( +|$\n?)|(.{1," + t + "})";
@@ -5542,31 +5537,31 @@ var bn = (function() {
5542
5537
  }, t.prototype.parsePropertiesFrom = function(e) {
5543
5538
  this.n = e.n, this.e = e.e, e.hasOwnProperty("d") && (this.d = e.d, this.p = e.p, this.q = e.q, this.dmp1 = e.dmp1, this.dmq1 = e.dmq1, this.coeff = e.coeff);
5544
5539
  }, t;
5545
- }(hn), Sn = typeof process < "u" ? process.env?.npm_package_version : void 0, Cn = function() {
5540
+ }(Pt), Vt = typeof process < "u" ? process.env?.npm_package_version : void 0, Ht = function() {
5546
5541
  function e(e) {
5547
5542
  e === void 0 && (e = {}), this.default_key_size = e.default_key_size ? parseInt(e.default_key_size, 10) : 1024, this.default_public_exponent = e.default_public_exponent || "010001", this.log = e.log || !1, this.key = e.key || null;
5548
5543
  }
5549
5544
  return e.prototype.setKey = function(e) {
5550
- e ? (this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new xn(e)) : !this.key && this.log && console.error("A key was not set.");
5545
+ e ? (this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new Bt(e)) : !this.key && this.log && console.error("A key was not set.");
5551
5546
  }, e.prototype.setPrivateKey = function(e) {
5552
5547
  this.setKey(e);
5553
5548
  }, e.prototype.setPublicKey = function(e) {
5554
5549
  this.setKey(e);
5555
5550
  }, e.prototype.decrypt = function(e) {
5556
5551
  try {
5557
- return this.getKey().decrypt(pt(e));
5552
+ return this.getKey().decrypt(Ne(e));
5558
5553
  } catch {
5559
5554
  return !1;
5560
5555
  }
5561
5556
  }, e.prototype.encrypt = function(e) {
5562
5557
  try {
5563
- return ft(this.getKey().encrypt(e));
5558
+ return Me(this.getKey().encrypt(e));
5564
5559
  } catch {
5565
5560
  return !1;
5566
5561
  }
5567
5562
  }, e.prototype.encryptOAEP = function(e) {
5568
5563
  try {
5569
- return ft(this.getKey().encrypt(e, mn));
5564
+ return Me(this.getKey().encrypt(e, Nt));
5570
5565
  } catch {
5571
5566
  return !1;
5572
5567
  }
@@ -5575,30 +5570,30 @@ var bn = (function() {
5575
5570
  return e;
5576
5571
  }), n === void 0 && (n = "");
5577
5572
  try {
5578
- return ft(this.getKey().sign(e, t, n));
5573
+ return Me(this.getKey().sign(e, t, n));
5579
5574
  } catch {
5580
5575
  return !1;
5581
5576
  }
5582
5577
  }, e.prototype.signSha256 = function(e) {
5583
5578
  return this.sign(e, function(e) {
5584
- return Xt(Yt(e));
5579
+ return _t(gt(e));
5585
5580
  }, "sha256");
5586
5581
  }, e.prototype.verify = function(e, t, n) {
5587
5582
  n === void 0 && (n = function(e) {
5588
5583
  return e;
5589
5584
  });
5590
5585
  try {
5591
- return this.getKey().verify(e, pt(t), n);
5586
+ return this.getKey().verify(e, Ne(t), n);
5592
5587
  } catch {
5593
5588
  return !1;
5594
5589
  }
5595
5590
  }, e.prototype.verifySha256 = function(e, t) {
5596
5591
  return this.verify(e, t, function(e) {
5597
- return Xt(Yt(e));
5592
+ return _t(gt(e));
5598
5593
  });
5599
5594
  }, e.prototype.getKey = function(e) {
5600
5595
  if (!this.key) {
5601
- if (this.key = new xn(), e && {}.toString.call(e) === "[object Function]") {
5596
+ if (this.key = new Bt(), e && {}.toString.call(e) === "[object Function]") {
5602
5597
  this.key.generateAsync(this.default_key_size, this.default_public_exponent, e);
5603
5598
  return;
5604
5599
  }
@@ -5613,22 +5608,22 @@ var bn = (function() {
5613
5608
  return this.getKey().getPublicKey();
5614
5609
  }, e.prototype.getPublicKeyB64 = function() {
5615
5610
  return this.getKey().getPublicBaseKeyB64();
5616
- }, e.version = Sn, e;
5611
+ }, e.version = Vt, e;
5617
5612
  }();
5618
5613
  //#endregion
5619
5614
  //#region src/cryptoAlg/rsa.ts
5620
- function wn(e) {
5615
+ function Ut(e) {
5621
5616
  return new Promise((t) => {
5622
- let n = z.use().publicKey, r = new Cn();
5617
+ let n = x.use().publicKey, r = new Ht();
5623
5618
  r.setPublicKey(`-----BEGIN PUBLIC KEY-----\n${n}\n-----END PUBLIC KEY-----`), t(n ? r.encrypt(e) || "" : e);
5624
5619
  });
5625
5620
  }
5626
5621
  //#endregion
5627
5622
  //#region src/cryptoSetting.ts
5628
- function Tn(e, t, n, r) {
5629
- return e === "/crypto/getPublicKeyAndConfig" ? !1 : !En(e, n, r) && t;
5623
+ function Wt(e, t, n, r) {
5624
+ return e === "/crypto/getPublicKeyAndConfig" ? !1 : !Gt(e, n, r) && t;
5630
5625
  }
5631
- function En(e, t, n) {
5626
+ function Gt(e, t, n) {
5632
5627
  if (t && n?.length === 0) return !1;
5633
5628
  if (!t && n?.length === 0) return !0;
5634
5629
  {
@@ -5640,31 +5635,31 @@ function En(e, t, n) {
5640
5635
  return t ? r : !r;
5641
5636
  }
5642
5637
  }
5643
- async function Dn(e, t) {
5638
+ async function Kt(e, t) {
5644
5639
  if (e.data && !(e.data instanceof FormData) && (e.data = await t(JSON.stringify(e.data))), e.config.params && JSON.stringify(e.config.params) !== "{}") {
5645
5640
  let n = JSON.parse(JSON.stringify(e.config.params));
5646
5641
  e.config.params = { secureData: decodeURIComponent(await t(decodeURIComponent(new URLSearchParams(n).toString()))) };
5647
5642
  }
5648
5643
  if (e.config.meta && e.config.meta.pathParams) for (let n of e.config.meta.pathParams) e.url = e.url.replace(n, await t(`${n}`));
5649
5644
  }
5650
- async function On(e, t) {
5651
- let n = z.use().key, r = z.use().iv;
5652
- e.config.headers["X-Crypyto-Key"] = await wn(JSON.stringify({
5645
+ async function qt(e, t) {
5646
+ let n = x.use().key, r = x.use().iv;
5647
+ e.config.headers["X-Crypyto-Key"] = await Ut(JSON.stringify({
5653
5648
  "Algorithm-Name": t?.name,
5654
5649
  "Algorithm-Key": n,
5655
5650
  "Algorithm-Iv": r,
5656
5651
  ...t?.header
5657
- })), await Dn(e, t.encrypt);
5652
+ })), await Kt(e, t.encrypt);
5658
5653
  }
5659
- async function kn(e, t) {
5654
+ async function Jt(e, t) {
5660
5655
  e.data = await t.decrypt(e.data);
5661
5656
  }
5662
5657
  //#endregion
5663
5658
  //#region src/helper.ts
5664
- function An(e) {
5659
+ function Yt(e) {
5665
5660
  return e.meta = { authRole: null }, e;
5666
5661
  }
5667
- function jn(e) {
5662
+ function Xt(e) {
5668
5663
  let t = "";
5669
5664
  if (e < 0) return t;
5670
5665
  for (let n = 0; n < e; n++) {
@@ -5675,7 +5670,7 @@ function jn(e) {
5675
5670
  }
5676
5671
  //#endregion
5677
5672
  //#region ../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js
5678
- var Mn = /* @__PURE__ */ R(((e) => {
5673
+ var Zt = /* @__PURE__ */ u(((e) => {
5679
5674
  e.byteLength = c, e.toByteArray = u, e.fromByteArray = p;
5680
5675
  for (var t = [], n = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, o = i.length; a < o; ++a) t[a] = i[a], n[i.charCodeAt(a)] = a;
5681
5676
  n[45] = 62, n[95] = 63;
@@ -5710,7 +5705,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5710
5705
  for (var n, r = e.length, i = r % 3, a = [], o = 16383, s = 0, c = r - i; s < c; s += o) a.push(f(e, s, s + o > c ? c : s + o));
5711
5706
  return i === 1 ? (n = e[r - 1], a.push(t[n >> 2] + t[n << 4 & 63] + "==")) : i === 2 && (n = (e[r - 2] << 8) + e[r - 1], a.push(t[n >> 10] + t[n >> 4 & 63] + t[n << 2 & 63] + "=")), a.join("");
5712
5707
  }
5713
- })), Nn = /* @__PURE__ */ R(((e) => {
5708
+ })), Qt = /* @__PURE__ */ u(((e) => {
5714
5709
  e.read = function(e, t, n, r, i) {
5715
5710
  var a, o, s = i * 8 - r - 1, c = (1 << s) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, p = e[t + d];
5716
5711
  for (d += f, a = p & (1 << -u) - 1, p >>= -u, u += s; u > 0; a = a * 256 + e[t + d], d += f, u -= 8);
@@ -5725,8 +5720,8 @@ var Mn = /* @__PURE__ */ R(((e) => {
5725
5720
  for (o = o << i | s, l += i; l > 0; e[n + p] = o & 255, p += m, o /= 256, l -= 8);
5726
5721
  e[n + p - m] |= h * 128;
5727
5722
  };
5728
- })), Pn = /* @__PURE__ */ R(((e) => {
5729
- var t = Mn(), n = Nn(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
5723
+ })), $t = /* @__PURE__ */ u(((e) => {
5724
+ var t = Zt(), n = Qt(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
5730
5725
  e.Buffer = s, e.SlowBuffer = v, e.INSPECT_MAX_BYTES = 50;
5731
5726
  var i = 2147483647;
5732
5727
  e.kMaxLength = i, s.TYPED_ARRAY_SUPPORT = a(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
@@ -5768,7 +5763,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5768
5763
  if (typeof e == "string") return f(e, t);
5769
5764
  if (ArrayBuffer.isView(e)) return m(e);
5770
5765
  if (e == null) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
5771
- if (ue(e, ArrayBuffer) || e && ue(e.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ue(e, SharedArrayBuffer) || e && ue(e.buffer, SharedArrayBuffer))) return h(e, t, n);
5766
+ if (le(e, ArrayBuffer) || e && le(e.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (le(e, SharedArrayBuffer) || e && le(e.buffer, SharedArrayBuffer))) return h(e, t, n);
5772
5767
  if (typeof e == "number") throw TypeError("The \"value\" argument must not be of type number. Received type number");
5773
5768
  var r = e.valueOf && e.valueOf();
5774
5769
  if (r != null && r !== e) return s.from(r, t, n);
@@ -5808,7 +5803,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5808
5803
  return n;
5809
5804
  }
5810
5805
  function m(e) {
5811
- if (ue(e, Uint8Array)) {
5806
+ if (le(e, Uint8Array)) {
5812
5807
  var t = new Uint8Array(e);
5813
5808
  return h(t.buffer, t.byteOffset, t.byteLength);
5814
5809
  }
@@ -5825,7 +5820,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5825
5820
  var t = _(e.length) | 0, n = o(t);
5826
5821
  return n.length === 0 || e.copy(n, 0, 0, t), n;
5827
5822
  }
5828
- if (e.length !== void 0) return typeof e.length != "number" || de(e.length) ? o(0) : p(e);
5823
+ if (e.length !== void 0) return typeof e.length != "number" || ue(e.length) ? o(0) : p(e);
5829
5824
  if (e.type === "Buffer" && Array.isArray(e.data)) return p(e.data);
5830
5825
  }
5831
5826
  function _(e) {
@@ -5838,7 +5833,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5838
5833
  s.isBuffer = function(e) {
5839
5834
  return e != null && e._isBuffer === !0 && e !== s.prototype;
5840
5835
  }, s.compare = function(e, t) {
5841
- if (ue(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), ue(t, Uint8Array) && (t = s.from(t, t.offset, t.byteLength)), !s.isBuffer(e) || !s.isBuffer(t)) throw TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
5836
+ if (le(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), le(t, Uint8Array) && (t = s.from(t, t.offset, t.byteLength)), !s.isBuffer(e) || !s.isBuffer(t)) throw TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
5842
5837
  if (e === t) return 0;
5843
5838
  for (var n = e.length, r = t.length, i = 0, a = Math.min(n, r); i < a; ++i) if (e[i] !== t[i]) {
5844
5839
  n = e[i], r = t[i];
@@ -5868,7 +5863,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5868
5863
  var r = s.allocUnsafe(t), i = 0;
5869
5864
  for (n = 0; n < e.length; ++n) {
5870
5865
  var a = e[n];
5871
- if (ue(a, Uint8Array)) i + a.length > r.length ? s.from(a).copy(r, i) : Uint8Array.prototype.set.call(r, a, i);
5866
+ if (le(a, Uint8Array)) i + a.length > r.length ? s.from(a).copy(r, i) : Uint8Array.prototype.set.call(r, a, i);
5872
5867
  else if (s.isBuffer(a)) a.copy(r, i);
5873
5868
  else throw TypeError("\"list\" argument must be an Array of Buffers");
5874
5869
  i += a.length;
@@ -5877,7 +5872,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5877
5872
  };
5878
5873
  function y(e, t) {
5879
5874
  if (s.isBuffer(e)) return e.length;
5880
- if (ArrayBuffer.isView(e) || ue(e, ArrayBuffer)) return e.byteLength;
5875
+ if (ArrayBuffer.isView(e) || le(e, ArrayBuffer)) return e.byteLength;
5881
5876
  if (typeof e != "string") throw TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type " + typeof e);
5882
5877
  var n = e.length, r = arguments.length > 2 && arguments[2] === !0;
5883
5878
  if (!r && n === 0) return 0;
@@ -5886,15 +5881,15 @@ var Mn = /* @__PURE__ */ R(((e) => {
5886
5881
  case "latin1":
5887
5882
  case "binary": return n;
5888
5883
  case "utf8":
5889
- case "utf-8": return L(e).length;
5884
+ case "utf-8": return R(e).length;
5890
5885
  case "ucs2":
5891
5886
  case "ucs-2":
5892
5887
  case "utf16le":
5893
5888
  case "utf-16le": return n * 2;
5894
5889
  case "hex": return n >>> 1;
5895
- case "base64": return ce(e).length;
5890
+ case "base64": return se(e).length;
5896
5891
  default:
5897
- if (i) return r ? -1 : L(e).length;
5892
+ if (i) return r ? -1 : R(e).length;
5898
5893
  t = ("" + t).toLowerCase(), i = !0;
5899
5894
  }
5900
5895
  }
@@ -5903,7 +5898,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5903
5898
  var r = !1;
5904
5899
  if ((t === void 0 || t < 0) && (t = 0), t > this.length || ((n === void 0 || n > this.length) && (n = this.length), n <= 0) || (n >>>= 0, t >>>= 0, n <= t)) return "";
5905
5900
  for (e ||= "utf8";;) switch (e) {
5906
- case "hex": return P(this, t, n);
5901
+ case "hex": return te(this, t, n);
5907
5902
  case "utf8":
5908
5903
  case "utf-8": return A(this, t, n);
5909
5904
  case "ascii": return ee(this, t, n);
@@ -5913,7 +5908,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5913
5908
  case "ucs2":
5914
5909
  case "ucs-2":
5915
5910
  case "utf16le":
5916
- case "utf-16le": return te(this, t, n);
5911
+ case "utf-16le": return ne(this, t, n);
5917
5912
  default:
5918
5913
  if (r) throw TypeError("Unknown encoding: " + e);
5919
5914
  e = (e + "").toLowerCase(), r = !0;
@@ -5949,7 +5944,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5949
5944
  var t = "", n = e.INSPECT_MAX_BYTES;
5950
5945
  return t = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(), this.length > n && (t += " ... "), "<Buffer " + t + ">";
5951
5946
  }, r && (s.prototype[r] = s.prototype.inspect), s.prototype.compare = function(e, t, n, r, i) {
5952
- if (ue(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), !s.isBuffer(e)) throw TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof e);
5947
+ if (le(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), !s.isBuffer(e)) throw TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof e);
5953
5948
  if (t === void 0 && (t = 0), n === void 0 && (n = e ? e.length : 0), r === void 0 && (r = 0), i === void 0 && (i = this.length), t < 0 || n > e.length || r < 0 || i > this.length) throw RangeError("out of range index");
5954
5949
  if (r >= i && t >= n) return 0;
5955
5950
  if (r >= i) return -1;
@@ -5963,7 +5958,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
5963
5958
  };
5964
5959
  function S(e, t, n, r, i) {
5965
5960
  if (e.length === 0) return -1;
5966
- if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, de(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
5961
+ if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, ue(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
5967
5962
  if (i) return -1;
5968
5963
  n = e.length - 1;
5969
5964
  } else if (n < 0) if (i) n = 0;
@@ -6011,22 +6006,22 @@ var Mn = /* @__PURE__ */ R(((e) => {
6011
6006
  r > a / 2 && (r = a / 2);
6012
6007
  for (var o = 0; o < r; ++o) {
6013
6008
  var s = parseInt(t.substr(o * 2, 2), 16);
6014
- if (de(s)) return o;
6009
+ if (ue(s)) return o;
6015
6010
  e[n + o] = s;
6016
6011
  }
6017
6012
  return o;
6018
6013
  }
6019
6014
  function T(e, t, n, r) {
6020
- return le(L(t, e.length - n), e, n, r);
6015
+ return ce(R(t, e.length - n), e, n, r);
6021
6016
  }
6022
6017
  function E(e, t, n, r) {
6023
- return le(se(t), e, n, r);
6018
+ return ce(z(t), e, n, r);
6024
6019
  }
6025
6020
  function D(e, t, n, r) {
6026
- return le(ce(t), e, n, r);
6021
+ return ce(se(t), e, n, r);
6027
6022
  }
6028
6023
  function O(e, t, n, r) {
6029
- return le(R(t, e.length - n), e, n, r);
6024
+ return ce(oe(t, e.length - n), e, n, r);
6030
6025
  }
6031
6026
  s.prototype.write = function(e, t, n, r) {
6032
6027
  if (t === void 0) r = "utf8", n = this.length, t = 0;
@@ -6103,13 +6098,13 @@ var Mn = /* @__PURE__ */ R(((e) => {
6103
6098
  for (var i = t; i < n; ++i) r += String.fromCharCode(e[i]);
6104
6099
  return r;
6105
6100
  }
6106
- function P(e, t, n) {
6101
+ function te(e, t, n) {
6107
6102
  var r = e.length;
6108
6103
  (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
6109
- for (var i = "", a = t; a < n; ++a) i += fe[e[a]];
6104
+ for (var i = "", a = t; a < n; ++a) i += de[e[a]];
6110
6105
  return i;
6111
6106
  }
6112
- function te(e, t, n) {
6107
+ function ne(e, t, n) {
6113
6108
  for (var r = e.slice(t, n), i = "", a = 0; a < r.length - 1; a += 2) i += String.fromCharCode(r[a] + r[a + 1] * 256);
6114
6109
  return i;
6115
6110
  }
@@ -6119,60 +6114,60 @@ var Mn = /* @__PURE__ */ R(((e) => {
6119
6114
  var r = this.subarray(e, t);
6120
6115
  return Object.setPrototypeOf(r, s.prototype), r;
6121
6116
  };
6122
- function F(e, t, n) {
6117
+ function P(e, t, n) {
6123
6118
  if (e % 1 != 0 || e < 0) throw RangeError("offset is not uint");
6124
6119
  if (e + t > n) throw RangeError("Trying to access beyond buffer length");
6125
6120
  }
6126
6121
  s.prototype.readUintLE = s.prototype.readUIntLE = function(e, t, n) {
6127
- e >>>= 0, t >>>= 0, n || F(e, t, this.length);
6122
+ e >>>= 0, t >>>= 0, n || P(e, t, this.length);
6128
6123
  for (var r = this[e], i = 1, a = 0; ++a < t && (i *= 256);) r += this[e + a] * i;
6129
6124
  return r;
6130
6125
  }, s.prototype.readUintBE = s.prototype.readUIntBE = function(e, t, n) {
6131
- e >>>= 0, t >>>= 0, n || F(e, t, this.length);
6126
+ e >>>= 0, t >>>= 0, n || P(e, t, this.length);
6132
6127
  for (var r = this[e + --t], i = 1; t > 0 && (i *= 256);) r += this[e + --t] * i;
6133
6128
  return r;
6134
6129
  }, s.prototype.readUint8 = s.prototype.readUInt8 = function(e, t) {
6135
- return e >>>= 0, t || F(e, 1, this.length), this[e];
6130
+ return e >>>= 0, t || P(e, 1, this.length), this[e];
6136
6131
  }, s.prototype.readUint16LE = s.prototype.readUInt16LE = function(e, t) {
6137
- return e >>>= 0, t || F(e, 2, this.length), this[e] | this[e + 1] << 8;
6132
+ return e >>>= 0, t || P(e, 2, this.length), this[e] | this[e + 1] << 8;
6138
6133
  }, s.prototype.readUint16BE = s.prototype.readUInt16BE = function(e, t) {
6139
- return e >>>= 0, t || F(e, 2, this.length), this[e] << 8 | this[e + 1];
6134
+ return e >>>= 0, t || P(e, 2, this.length), this[e] << 8 | this[e + 1];
6140
6135
  }, s.prototype.readUint32LE = s.prototype.readUInt32LE = function(e, t) {
6141
- return e >>>= 0, t || F(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
6136
+ return e >>>= 0, t || P(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
6142
6137
  }, s.prototype.readUint32BE = s.prototype.readUInt32BE = function(e, t) {
6143
- return e >>>= 0, t || F(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
6138
+ return e >>>= 0, t || P(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
6144
6139
  }, s.prototype.readIntLE = function(e, t, n) {
6145
- e >>>= 0, t >>>= 0, n || F(e, t, this.length);
6140
+ e >>>= 0, t >>>= 0, n || P(e, t, this.length);
6146
6141
  for (var r = this[e], i = 1, a = 0; ++a < t && (i *= 256);) r += this[e + a] * i;
6147
6142
  return i *= 128, r >= i && (r -= 2 ** (8 * t)), r;
6148
6143
  }, s.prototype.readIntBE = function(e, t, n) {
6149
- e >>>= 0, t >>>= 0, n || F(e, t, this.length);
6144
+ e >>>= 0, t >>>= 0, n || P(e, t, this.length);
6150
6145
  for (var r = t, i = 1, a = this[e + --r]; r > 0 && (i *= 256);) a += this[e + --r] * i;
6151
6146
  return i *= 128, a >= i && (a -= 2 ** (8 * t)), a;
6152
6147
  }, s.prototype.readInt8 = function(e, t) {
6153
- return e >>>= 0, t || F(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
6148
+ return e >>>= 0, t || P(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
6154
6149
  }, s.prototype.readInt16LE = function(e, t) {
6155
- e >>>= 0, t || F(e, 2, this.length);
6150
+ e >>>= 0, t || P(e, 2, this.length);
6156
6151
  var n = this[e] | this[e + 1] << 8;
6157
6152
  return n & 32768 ? n | 4294901760 : n;
6158
6153
  }, s.prototype.readInt16BE = function(e, t) {
6159
- e >>>= 0, t || F(e, 2, this.length);
6154
+ e >>>= 0, t || P(e, 2, this.length);
6160
6155
  var n = this[e + 1] | this[e] << 8;
6161
6156
  return n & 32768 ? n | 4294901760 : n;
6162
6157
  }, s.prototype.readInt32LE = function(e, t) {
6163
- return e >>>= 0, t || F(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
6158
+ return e >>>= 0, t || P(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
6164
6159
  }, s.prototype.readInt32BE = function(e, t) {
6165
- return e >>>= 0, t || F(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
6160
+ return e >>>= 0, t || P(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
6166
6161
  }, s.prototype.readFloatLE = function(e, t) {
6167
- return e >>>= 0, t || F(e, 4, this.length), n.read(this, e, !0, 23, 4);
6162
+ return e >>>= 0, t || P(e, 4, this.length), n.read(this, e, !0, 23, 4);
6168
6163
  }, s.prototype.readFloatBE = function(e, t) {
6169
- return e >>>= 0, t || F(e, 4, this.length), n.read(this, e, !1, 23, 4);
6164
+ return e >>>= 0, t || P(e, 4, this.length), n.read(this, e, !1, 23, 4);
6170
6165
  }, s.prototype.readDoubleLE = function(e, t) {
6171
- return e >>>= 0, t || F(e, 8, this.length), n.read(this, e, !0, 52, 8);
6166
+ return e >>>= 0, t || P(e, 8, this.length), n.read(this, e, !0, 52, 8);
6172
6167
  }, s.prototype.readDoubleBE = function(e, t) {
6173
- return e >>>= 0, t || F(e, 8, this.length), n.read(this, e, !1, 52, 8);
6168
+ return e >>>= 0, t || P(e, 8, this.length), n.read(this, e, !1, 52, 8);
6174
6169
  };
6175
- function I(e, t, n, r, i, a) {
6170
+ function F(e, t, n, r, i, a) {
6176
6171
  if (!s.isBuffer(e)) throw TypeError("\"buffer\" argument must be a Buffer instance");
6177
6172
  if (t > i || t < a) throw RangeError("\"value\" argument is out of bounds");
6178
6173
  if (n + r > e.length) throw RangeError("Index out of range");
@@ -6180,7 +6175,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
6180
6175
  s.prototype.writeUintLE = s.prototype.writeUIntLE = function(e, t, n, r) {
6181
6176
  if (e = +e, t >>>= 0, n >>>= 0, !r) {
6182
6177
  var i = 2 ** (8 * n) - 1;
6183
- I(this, e, t, n, i, 0);
6178
+ F(this, e, t, n, i, 0);
6184
6179
  }
6185
6180
  var a = 1, o = 0;
6186
6181
  for (this[t] = e & 255; ++o < n && (a *= 256);) this[t + o] = e / a & 255;
@@ -6188,25 +6183,25 @@ var Mn = /* @__PURE__ */ R(((e) => {
6188
6183
  }, s.prototype.writeUintBE = s.prototype.writeUIntBE = function(e, t, n, r) {
6189
6184
  if (e = +e, t >>>= 0, n >>>= 0, !r) {
6190
6185
  var i = 2 ** (8 * n) - 1;
6191
- I(this, e, t, n, i, 0);
6186
+ F(this, e, t, n, i, 0);
6192
6187
  }
6193
6188
  var a = n - 1, o = 1;
6194
6189
  for (this[t + a] = e & 255; --a >= 0 && (o *= 256);) this[t + a] = e / o & 255;
6195
6190
  return t + n;
6196
6191
  }, s.prototype.writeUint8 = s.prototype.writeUInt8 = function(e, t, n) {
6197
- return e = +e, t >>>= 0, n || I(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
6192
+ return e = +e, t >>>= 0, n || F(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
6198
6193
  }, s.prototype.writeUint16LE = s.prototype.writeUInt16LE = function(e, t, n) {
6199
- return e = +e, t >>>= 0, n || I(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
6194
+ return e = +e, t >>>= 0, n || F(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
6200
6195
  }, s.prototype.writeUint16BE = s.prototype.writeUInt16BE = function(e, t, n) {
6201
- return e = +e, t >>>= 0, n || I(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
6196
+ return e = +e, t >>>= 0, n || F(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
6202
6197
  }, s.prototype.writeUint32LE = s.prototype.writeUInt32LE = function(e, t, n) {
6203
- return e = +e, t >>>= 0, n || I(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
6198
+ return e = +e, t >>>= 0, n || F(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
6204
6199
  }, s.prototype.writeUint32BE = s.prototype.writeUInt32BE = function(e, t, n) {
6205
- return e = +e, t >>>= 0, n || I(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
6200
+ return e = +e, t >>>= 0, n || F(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
6206
6201
  }, s.prototype.writeIntLE = function(e, t, n, r) {
6207
6202
  if (e = +e, t >>>= 0, !r) {
6208
6203
  var i = 2 ** (8 * n - 1);
6209
- I(this, e, t, n, i - 1, -i);
6204
+ F(this, e, t, n, i - 1, -i);
6210
6205
  }
6211
6206
  var a = 0, o = 1, s = 0;
6212
6207
  for (this[t] = e & 255; ++a < n && (o *= 256);) e < 0 && s === 0 && this[t + a - 1] !== 0 && (s = 1), this[t + a] = (e / o >> 0) - s & 255;
@@ -6214,40 +6209,40 @@ var Mn = /* @__PURE__ */ R(((e) => {
6214
6209
  }, s.prototype.writeIntBE = function(e, t, n, r) {
6215
6210
  if (e = +e, t >>>= 0, !r) {
6216
6211
  var i = 2 ** (8 * n - 1);
6217
- I(this, e, t, n, i - 1, -i);
6212
+ F(this, e, t, n, i - 1, -i);
6218
6213
  }
6219
6214
  var a = n - 1, o = 1, s = 0;
6220
6215
  for (this[t + a] = e & 255; --a >= 0 && (o *= 256);) e < 0 && s === 0 && this[t + a + 1] !== 0 && (s = 1), this[t + a] = (e / o >> 0) - s & 255;
6221
6216
  return t + n;
6222
6217
  }, s.prototype.writeInt8 = function(e, t, n) {
6223
- return e = +e, t >>>= 0, n || I(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
6218
+ return e = +e, t >>>= 0, n || F(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
6224
6219
  }, s.prototype.writeInt16LE = function(e, t, n) {
6225
- return e = +e, t >>>= 0, n || I(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
6220
+ return e = +e, t >>>= 0, n || F(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
6226
6221
  }, s.prototype.writeInt16BE = function(e, t, n) {
6227
- return e = +e, t >>>= 0, n || I(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
6222
+ return e = +e, t >>>= 0, n || F(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
6228
6223
  }, s.prototype.writeInt32LE = function(e, t, n) {
6229
- return e = +e, t >>>= 0, n || I(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
6224
+ return e = +e, t >>>= 0, n || F(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
6230
6225
  }, s.prototype.writeInt32BE = function(e, t, n) {
6231
- return e = +e, t >>>= 0, n || I(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
6226
+ return e = +e, t >>>= 0, n || F(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
6232
6227
  };
6233
- function ne(e, t, n, r, i, a) {
6228
+ function I(e, t, n, r, i, a) {
6234
6229
  if (n + r > e.length || n < 0) throw RangeError("Index out of range");
6235
6230
  }
6236
- function re(e, t, r, i, a) {
6237
- return t = +t, r >>>= 0, a || ne(e, t, r, 4, 34028234663852886e22, -34028234663852886e22), n.write(e, t, r, i, 23, 4), r + 4;
6231
+ function L(e, t, r, i, a) {
6232
+ return t = +t, r >>>= 0, a || I(e, t, r, 4, 34028234663852886e22, -34028234663852886e22), n.write(e, t, r, i, 23, 4), r + 4;
6238
6233
  }
6239
6234
  s.prototype.writeFloatLE = function(e, t, n) {
6240
- return re(this, e, t, !0, n);
6235
+ return L(this, e, t, !0, n);
6241
6236
  }, s.prototype.writeFloatBE = function(e, t, n) {
6242
- return re(this, e, t, !1, n);
6237
+ return L(this, e, t, !1, n);
6243
6238
  };
6244
- function ie(e, t, r, i, a) {
6245
- return t = +t, r >>>= 0, a || ne(e, t, r, 8, 17976931348623157e292, -17976931348623157e292), n.write(e, t, r, i, 52, 8), r + 8;
6239
+ function re(e, t, r, i, a) {
6240
+ return t = +t, r >>>= 0, a || I(e, t, r, 8, 17976931348623157e292, -17976931348623157e292), n.write(e, t, r, i, 52, 8), r + 8;
6246
6241
  }
6247
6242
  s.prototype.writeDoubleLE = function(e, t, n) {
6248
- return ie(this, e, t, !0, n);
6243
+ return re(this, e, t, !0, n);
6249
6244
  }, s.prototype.writeDoubleBE = function(e, t, n) {
6250
- return ie(this, e, t, !1, n);
6245
+ return re(this, e, t, !1, n);
6251
6246
  }, s.prototype.copy = function(e, t, n, r) {
6252
6247
  if (!s.isBuffer(e)) throw TypeError("argument should be a Buffer");
6253
6248
  if (n ||= 0, !r && r !== 0 && (r = this.length), t >= e.length && (t = e.length), t ||= 0, r > 0 && r < n && (r = n), r === n || e.length === 0 || this.length === 0) return 0;
@@ -6278,13 +6273,13 @@ var Mn = /* @__PURE__ */ R(((e) => {
6278
6273
  }
6279
6274
  return this;
6280
6275
  };
6281
- var ae = /[^+/0-9A-Za-z-_]/g;
6282
- function oe(e) {
6283
- if (e = e.split("=")[0], e = e.trim().replace(ae, ""), e.length < 2) return "";
6276
+ var ie = /[^+/0-9A-Za-z-_]/g;
6277
+ function ae(e) {
6278
+ if (e = e.split("=")[0], e = e.trim().replace(ie, ""), e.length < 2) return "";
6284
6279
  for (; e.length % 4 != 0;) e += "=";
6285
6280
  return e;
6286
6281
  }
6287
- function L(e, t) {
6282
+ function R(e, t) {
6288
6283
  t ||= Infinity;
6289
6284
  for (var n, r = e.length, i = null, a = [], o = 0; o < r; ++o) {
6290
6285
  if (n = e.charCodeAt(o), n > 55295 && n < 57344) {
@@ -6321,33 +6316,33 @@ var Mn = /* @__PURE__ */ R(((e) => {
6321
6316
  }
6322
6317
  return a;
6323
6318
  }
6324
- function se(e) {
6319
+ function z(e) {
6325
6320
  for (var t = [], n = 0; n < e.length; ++n) t.push(e.charCodeAt(n) & 255);
6326
6321
  return t;
6327
6322
  }
6328
- function R(e, t) {
6323
+ function oe(e, t) {
6329
6324
  for (var n, r, i, a = [], o = 0; o < e.length && !((t -= 2) < 0); ++o) n = e.charCodeAt(o), r = n >> 8, i = n % 256, a.push(i), a.push(r);
6330
6325
  return a;
6331
6326
  }
6332
- function ce(e) {
6333
- return t.toByteArray(oe(e));
6327
+ function se(e) {
6328
+ return t.toByteArray(ae(e));
6334
6329
  }
6335
- function le(e, t, n, r) {
6330
+ function ce(e, t, n, r) {
6336
6331
  for (var i = 0; i < r && !(i + n >= t.length || i >= e.length); ++i) t[i + n] = e[i];
6337
6332
  return i;
6338
6333
  }
6339
- function ue(e, t) {
6334
+ function le(e, t) {
6340
6335
  return e instanceof t || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === t.name;
6341
6336
  }
6342
- function de(e) {
6337
+ function ue(e) {
6343
6338
  return e !== e;
6344
6339
  }
6345
- var fe = (function() {
6340
+ var de = (function() {
6346
6341
  for (var e = "0123456789abcdef", t = Array(256), n = 0; n < 16; ++n) for (var r = n * 16, i = 0; i < 16; ++i) t[r + i] = e[n] + e[i];
6347
6342
  return t;
6348
6343
  })();
6349
- })), Fn = /* @__PURE__ */ R(((e, t) => {
6350
- var n = Pn().Buffer;
6344
+ })), en = /* @__PURE__ */ u(((e, t) => {
6345
+ var n = $t().Buffer;
6351
6346
  t.exports = function(e) {
6352
6347
  if (e instanceof Uint8Array) {
6353
6348
  if (e.byteOffset === 0 && e.byteLength === e.buffer.byteLength) return e.buffer;
@@ -6358,7 +6353,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
6358
6353
  return t.buffer;
6359
6354
  } else throw Error("Argument must be a Buffer");
6360
6355
  };
6361
- })), In = /* @__PURE__ */ R(((e, t) => {
6356
+ })), tn = /* @__PURE__ */ u(((e, t) => {
6362
6357
  (function() {
6363
6358
  var n, r = !0;
6364
6359
  function i(e, t, n) {
@@ -6527,7 +6522,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
6527
6522
  }
6528
6523
  e.t > 0 && (e[e.t - 1] += t.am(n, t[n], e, 2 * n, 0, 1)), e.s = 0, e.clamp();
6529
6524
  }
6530
- function P(e, t, n) {
6525
+ function te(e, t, n) {
6531
6526
  var r = e.abs();
6532
6527
  if (!(r.t <= 0)) {
6533
6528
  var o = this.abs();
@@ -6550,48 +6545,48 @@ var Mn = /* @__PURE__ */ R(((e) => {
6550
6545
  }
6551
6546
  }
6552
6547
  }
6553
- function te(e) {
6548
+ function ne(e) {
6554
6549
  var t = a();
6555
6550
  return this.abs().divRemTo(e, null, t), this.s < 0 && t.compareTo(i.ZERO) > 0 && e.subTo(t, t), t;
6556
6551
  }
6557
- function F(e) {
6552
+ function P(e) {
6558
6553
  this.m = e;
6559
6554
  }
6560
- function I(e) {
6555
+ function F(e) {
6561
6556
  return e.s < 0 || e.compareTo(this.m) >= 0 ? e.mod(this.m) : e;
6562
6557
  }
6563
- function ne(e) {
6558
+ function I(e) {
6564
6559
  return e;
6565
6560
  }
6566
- function re(e) {
6561
+ function L(e) {
6567
6562
  e.divRemTo(this.m, null, e);
6568
6563
  }
6569
- function ie(e, t, n) {
6564
+ function re(e, t, n) {
6570
6565
  e.multiplyTo(t, n), this.reduce(n);
6571
6566
  }
6572
- function ae(e, t) {
6567
+ function ie(e, t) {
6573
6568
  e.squareTo(t), this.reduce(t);
6574
6569
  }
6575
- F.prototype.convert = I, F.prototype.revert = ne, F.prototype.reduce = re, F.prototype.mulTo = ie, F.prototype.sqrTo = ae;
6576
- function oe() {
6570
+ P.prototype.convert = F, P.prototype.revert = I, P.prototype.reduce = L, P.prototype.mulTo = re, P.prototype.sqrTo = ie;
6571
+ function ae() {
6577
6572
  if (this.t < 1) return 0;
6578
6573
  var e = this[0];
6579
6574
  if (!(e & 1)) return 0;
6580
6575
  var t = e & 3;
6581
6576
  return t = t * (2 - (e & 15) * t) & 15, t = t * (2 - (e & 255) * t) & 255, t = t * (2 - ((e & 65535) * t & 65535)) & 65535, t = t * (2 - e * t % this.DV) % this.DV, t > 0 ? this.DV - t : -t;
6582
6577
  }
6583
- function L(e) {
6578
+ function R(e) {
6584
6579
  this.m = e, this.mp = e.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << e.DB - 15) - 1, this.mt2 = 2 * e.t;
6585
6580
  }
6586
- function se(e) {
6581
+ function z(e) {
6587
6582
  var t = a();
6588
6583
  return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && t.compareTo(i.ZERO) > 0 && this.m.subTo(t, t), t;
6589
6584
  }
6590
- function R(e) {
6585
+ function oe(e) {
6591
6586
  var t = a();
6592
6587
  return e.copyTo(t), this.reduce(t), t;
6593
6588
  }
6594
- function ce(e) {
6589
+ function se(e) {
6595
6590
  for (; e.t <= this.mt2;) e[e.t++] = 0;
6596
6591
  for (var t = 0; t < this.m.t; ++t) {
6597
6592
  var n = e[t] & 32767, r = n * this.mpl + ((n * this.mph + (e[t] >> 15) * this.mpl & this.um) << 15) & e.DM;
@@ -6599,17 +6594,17 @@ var Mn = /* @__PURE__ */ R(((e) => {
6599
6594
  }
6600
6595
  e.clamp(), e.drShiftTo(this.m.t, e), e.compareTo(this.m) >= 0 && e.subTo(this.m, e);
6601
6596
  }
6602
- function le(e, t) {
6597
+ function ce(e, t) {
6603
6598
  e.squareTo(t), this.reduce(t);
6604
6599
  }
6605
- function ue(e, t, n) {
6600
+ function le(e, t, n) {
6606
6601
  e.multiplyTo(t, n), this.reduce(n);
6607
6602
  }
6608
- L.prototype.convert = se, L.prototype.revert = R, L.prototype.reduce = ce, L.prototype.mulTo = ue, L.prototype.sqrTo = le;
6609
- function de() {
6603
+ R.prototype.convert = z, R.prototype.revert = oe, R.prototype.reduce = se, R.prototype.mulTo = le, R.prototype.sqrTo = ce;
6604
+ function ue() {
6610
6605
  return (this.t > 0 ? this[0] & 1 : this.s) == 0;
6611
6606
  }
6612
- function fe(e, t) {
6607
+ function de(e, t) {
6613
6608
  if (e > 4294967295 || e < 1) return i.ONE;
6614
6609
  var n = a(), r = a(), o = t.convert(this), s = E(e) - 1;
6615
6610
  for (o.copyTo(n); --s >= 0;) if (t.sqrTo(n, r), (e & 1 << s) > 0) t.mulTo(r, o, n);
@@ -6619,16 +6614,16 @@ var Mn = /* @__PURE__ */ R(((e) => {
6619
6614
  }
6620
6615
  return t.revert(n);
6621
6616
  }
6622
- function pe(e, t) {
6623
- var n = e < 256 || t.isEven() ? new F(t) : new L(t);
6617
+ function fe(e, t) {
6618
+ var n = e < 256 || t.isEven() ? new P(t) : new R(t);
6624
6619
  return this.exp(e, n);
6625
6620
  }
6626
- i.prototype.copyTo = _, i.prototype.fromInt = v, i.prototype.fromString = b, i.prototype.clamp = x, i.prototype.dlShiftTo = O, i.prototype.drShiftTo = k, i.prototype.lShiftTo = A, i.prototype.rShiftTo = j, i.prototype.subTo = M, i.prototype.multiplyTo = ee, i.prototype.squareTo = N, i.prototype.divRemTo = P, i.prototype.invDigit = oe, i.prototype.isEven = de, i.prototype.exp = fe, i.prototype.toString = S, i.prototype.negate = C, i.prototype.abs = w, i.prototype.compareTo = T, i.prototype.bitLength = D, i.prototype.mod = te, i.prototype.modPowInt = pe, i.ZERO = y(0), i.ONE = y(1);
6627
- function me() {
6621
+ i.prototype.copyTo = _, i.prototype.fromInt = v, i.prototype.fromString = b, i.prototype.clamp = x, i.prototype.dlShiftTo = O, i.prototype.drShiftTo = k, i.prototype.lShiftTo = A, i.prototype.rShiftTo = j, i.prototype.subTo = M, i.prototype.multiplyTo = ee, i.prototype.squareTo = N, i.prototype.divRemTo = te, i.prototype.invDigit = ae, i.prototype.isEven = ue, i.prototype.exp = de, i.prototype.toString = S, i.prototype.negate = C, i.prototype.abs = w, i.prototype.compareTo = T, i.prototype.bitLength = D, i.prototype.mod = ne, i.prototype.modPowInt = fe, i.ZERO = y(0), i.ONE = y(1);
6622
+ function pe() {
6628
6623
  var e = a();
6629
6624
  return this.copyTo(e), e;
6630
6625
  }
6631
- function he() {
6626
+ function me() {
6632
6627
  if (this.s < 0) {
6633
6628
  if (this.t == 1) return this[0] - this.DV;
6634
6629
  if (this.t == 0) return -1;
@@ -6636,25 +6631,25 @@ var Mn = /* @__PURE__ */ R(((e) => {
6636
6631
  else if (this.t == 0) return 0;
6637
6632
  return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0];
6638
6633
  }
6639
- function ge() {
6634
+ function he() {
6640
6635
  return this.t == 0 ? this.s : this[0] << 24 >> 24;
6641
6636
  }
6642
- function _e() {
6637
+ function ge() {
6643
6638
  return this.t == 0 ? this.s : this[0] << 16 >> 16;
6644
6639
  }
6645
- function z(e) {
6640
+ function _e(e) {
6646
6641
  return Math.floor(Math.LN2 * this.DB / Math.log(e));
6647
6642
  }
6648
6643
  function ve() {
6649
6644
  return this.s < 0 ? -1 : this.t <= 0 || this.t == 1 && this[0] <= 0 ? 0 : 1;
6650
6645
  }
6651
- function B(e) {
6646
+ function ye(e) {
6652
6647
  if (e ??= 10, this.signum() == 0 || e < 2 || e > 36) return "0";
6653
6648
  var t = this.chunkSize(e), n = e ** +t, r = y(n), i = a(), o = a(), s = "";
6654
6649
  for (this.divRemTo(r, i, o); i.signum() > 0;) s = (n + o.intValue()).toString(e).substr(1) + s, i.divRemTo(r, i, o);
6655
6650
  return o.intValue().toString(e) + s;
6656
6651
  }
6657
- function ye(e, t) {
6652
+ function be(e, t) {
6658
6653
  this.fromInt(0), t ??= 10;
6659
6654
  for (var n = this.chunkSize(t), r = t ** +n, a = !1, o = 0, s = 0, c = 0; c < e.length; ++c) {
6660
6655
  var l = g(e, c);
@@ -6666,31 +6661,31 @@ var Mn = /* @__PURE__ */ R(((e) => {
6666
6661
  }
6667
6662
  o > 0 && (this.dMultiply(t ** +o), this.dAddOffset(s, 0)), a && i.ZERO.subTo(this, this);
6668
6663
  }
6669
- function be(e, t, n) {
6664
+ function xe(e, t, n) {
6670
6665
  if (typeof t == "number") if (e < 2) this.fromInt(1);
6671
- else for (this.fromNumber(e, n), this.testBit(e - 1) || this.bitwiseTo(i.ONE.shiftLeft(e - 1), Oe, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(t);) this.dAddOffset(2, 0), this.bitLength() > e && this.subTo(i.ONE.shiftLeft(e - 1), this);
6666
+ else for (this.fromNumber(e, n), this.testBit(e - 1) || this.bitwiseTo(i.ONE.shiftLeft(e - 1), ke, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(t);) this.dAddOffset(2, 0), this.bitLength() > e && this.subTo(i.ONE.shiftLeft(e - 1), this);
6672
6667
  else {
6673
6668
  var r = [], a = e & 7;
6674
6669
  r.length = (e >> 3) + 1, t.nextBytes(r), a > 0 ? r[0] &= (1 << a) - 1 : r[0] = 0, this.fromString(r, 256);
6675
6670
  }
6676
6671
  }
6677
- function xe() {
6672
+ function Se() {
6678
6673
  var e = this.t, t = [];
6679
6674
  t[0] = this.s;
6680
6675
  var n = this.DB - e * this.DB % 8, r, i = 0;
6681
6676
  if (e-- > 0) for (n < this.DB && (r = this[e] >> n) != (this.s & this.DM) >> n && (t[i++] = r | this.s << this.DB - n); e >= 0;) n < 8 ? (r = (this[e] & (1 << n) - 1) << 8 - n, r |= this[--e] >> (n += this.DB - 8)) : (r = this[e] >> (n -= 8) & 255, n <= 0 && (n += this.DB, --e)), r & 128 && (r |= -256), i == 0 && (this.s & 128) != (r & 128) && ++i, (i > 0 || r != this.s) && (t[i++] = r);
6682
6677
  return t;
6683
6678
  }
6684
- function Se(e) {
6679
+ function Ce(e) {
6685
6680
  return this.compareTo(e) == 0;
6686
6681
  }
6687
- function Ce(e) {
6682
+ function we(e) {
6688
6683
  return this.compareTo(e) < 0 ? this : e;
6689
6684
  }
6690
- function we(e) {
6685
+ function Te(e) {
6691
6686
  return this.compareTo(e) > 0 ? this : e;
6692
6687
  }
6693
- function Te(e, t, n) {
6688
+ function Ee(e, t, n) {
6694
6689
  var r, i, a = Math.min(e.t, this.t);
6695
6690
  for (r = 0; r < a; ++r) n[r] = t(this[r], e[r]);
6696
6691
  if (e.t < this.t) {
@@ -6702,81 +6697,81 @@ var Mn = /* @__PURE__ */ R(((e) => {
6702
6697
  }
6703
6698
  n.s = t(this.s, e.s), n.clamp();
6704
6699
  }
6705
- function Ee(e, t) {
6700
+ function De(e, t) {
6706
6701
  return e & t;
6707
6702
  }
6708
- function De(e) {
6703
+ function Oe(e) {
6709
6704
  var t = a();
6710
- return this.bitwiseTo(e, Ee, t), t;
6705
+ return this.bitwiseTo(e, De, t), t;
6711
6706
  }
6712
- function Oe(e, t) {
6707
+ function ke(e, t) {
6713
6708
  return e | t;
6714
6709
  }
6715
- function ke(e) {
6710
+ function Ae(e) {
6716
6711
  var t = a();
6717
- return this.bitwiseTo(e, Oe, t), t;
6712
+ return this.bitwiseTo(e, ke, t), t;
6718
6713
  }
6719
- function Ae(e, t) {
6714
+ function je(e, t) {
6720
6715
  return e ^ t;
6721
6716
  }
6722
- function je(e) {
6717
+ function Me(e) {
6723
6718
  var t = a();
6724
- return this.bitwiseTo(e, Ae, t), t;
6719
+ return this.bitwiseTo(e, je, t), t;
6725
6720
  }
6726
- function Me(e, t) {
6721
+ function Ne(e, t) {
6727
6722
  return e & ~t;
6728
6723
  }
6729
- function Ne(e) {
6724
+ function Pe(e) {
6730
6725
  var t = a();
6731
- return this.bitwiseTo(e, Me, t), t;
6726
+ return this.bitwiseTo(e, Ne, t), t;
6732
6727
  }
6733
- function Pe() {
6728
+ function Fe() {
6734
6729
  for (var e = a(), t = 0; t < this.t; ++t) e[t] = this.DM & ~this[t];
6735
6730
  return e.t = this.t, e.s = ~this.s, e;
6736
6731
  }
6737
- function V(e) {
6732
+ function B(e) {
6738
6733
  var t = a();
6739
6734
  return e < 0 ? this.rShiftTo(-e, t) : this.lShiftTo(e, t), t;
6740
6735
  }
6741
- function Fe(e) {
6736
+ function Ie(e) {
6742
6737
  var t = a();
6743
6738
  return e < 0 ? this.lShiftTo(-e, t) : this.rShiftTo(e, t), t;
6744
6739
  }
6745
- function Ie(e) {
6740
+ function Le(e) {
6746
6741
  if (e == 0) return -1;
6747
6742
  var t = 0;
6748
6743
  return e & 65535 || (e >>= 16, t += 16), e & 255 || (e >>= 8, t += 8), e & 15 || (e >>= 4, t += 4), e & 3 || (e >>= 2, t += 2), e & 1 || ++t, t;
6749
6744
  }
6750
- function Le() {
6751
- for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + Ie(this[e]);
6745
+ function Re() {
6746
+ for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + Le(this[e]);
6752
6747
  return this.s < 0 ? this.t * this.DB : -1;
6753
6748
  }
6754
- function Re(e) {
6749
+ function ze(e) {
6755
6750
  for (var t = 0; e != 0;) e &= e - 1, ++t;
6756
6751
  return t;
6757
6752
  }
6758
- function ze() {
6759
- for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += Re(this[n] ^ t);
6753
+ function Be() {
6754
+ for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += ze(this[n] ^ t);
6760
6755
  return e;
6761
6756
  }
6762
- function Be(e) {
6757
+ function Ve(e) {
6763
6758
  var t = Math.floor(e / this.DB);
6764
6759
  return t >= this.t ? this.s != 0 : (this[t] & 1 << e % this.DB) != 0;
6765
6760
  }
6766
- function Ve(e, t) {
6761
+ function He(e, t) {
6767
6762
  var n = i.ONE.shiftLeft(e);
6768
6763
  return this.bitwiseTo(n, t, n), n;
6769
6764
  }
6770
- function He(e) {
6771
- return this.changeBit(e, Oe);
6772
- }
6773
6765
  function Ue(e) {
6774
- return this.changeBit(e, Me);
6766
+ return this.changeBit(e, ke);
6775
6767
  }
6776
6768
  function We(e) {
6777
- return this.changeBit(e, Ae);
6769
+ return this.changeBit(e, Ne);
6770
+ }
6771
+ function Ge(e) {
6772
+ return this.changeBit(e, je);
6778
6773
  }
6779
- function Ge(e, t) {
6774
+ function Ke(e, t) {
6780
6775
  for (var n = 0, r = 0, i = Math.min(e.t, this.t); n < i;) r += this[n] + e[n], t[n++] = r & this.DM, r >>= this.DB;
6781
6776
  if (e.t < this.t) {
6782
6777
  for (r += e.s; n < this.t;) r += this[n], t[n++] = r & this.DM, r >>= this.DB;
@@ -6787,11 +6782,11 @@ var Mn = /* @__PURE__ */ R(((e) => {
6787
6782
  }
6788
6783
  t.s = r < 0 ? -1 : 0, r > 0 ? t[n++] = r : r < -1 && (t[n++] = this.DV + r), t.t = n, t.clamp();
6789
6784
  }
6790
- function Ke(e) {
6785
+ function qe(e) {
6791
6786
  var t = a();
6792
6787
  return this.addTo(e, t), t;
6793
6788
  }
6794
- function qe(e) {
6789
+ function V(e) {
6795
6790
  var t = a();
6796
6791
  return this.subTo(e, t), t;
6797
6792
  }
@@ -6799,46 +6794,46 @@ var Mn = /* @__PURE__ */ R(((e) => {
6799
6794
  var t = a();
6800
6795
  return this.multiplyTo(e, t), t;
6801
6796
  }
6802
- function Ye() {
6797
+ function H() {
6803
6798
  var e = a();
6804
6799
  return this.squareTo(e), e;
6805
6800
  }
6806
- function Xe(e) {
6801
+ function Ye(e) {
6807
6802
  var t = a();
6808
6803
  return this.divRemTo(e, t, null), t;
6809
6804
  }
6810
- function Ze(e) {
6805
+ function Xe(e) {
6811
6806
  var t = a();
6812
6807
  return this.divRemTo(e, null, t), t;
6813
6808
  }
6814
- function Qe(e) {
6809
+ function Ze(e) {
6815
6810
  var t = a(), n = a();
6816
6811
  return this.divRemTo(e, t, n), [t, n];
6817
6812
  }
6818
- function $e(e) {
6813
+ function Qe(e) {
6819
6814
  this[this.t] = this.am(0, e - 1, this, 0, 0, this.t), ++this.t, this.clamp();
6820
6815
  }
6821
- function et(e, t) {
6816
+ function U(e, t) {
6822
6817
  if (e != 0) {
6823
6818
  for (; this.t <= t;) this[this.t++] = 0;
6824
6819
  for (this[t] += e; this[t] >= this.DV;) this[t] -= this.DV, ++t >= this.t && (this[this.t++] = 0), ++this[t];
6825
6820
  }
6826
6821
  }
6827
- function tt() {}
6828
- function nt(e) {
6822
+ function W() {}
6823
+ function $e(e) {
6829
6824
  return e;
6830
6825
  }
6831
- function rt(e, t, n) {
6826
+ function et(e, t, n) {
6832
6827
  e.multiplyTo(t, n);
6833
6828
  }
6834
- function it(e, t) {
6829
+ function tt(e, t) {
6835
6830
  e.squareTo(t);
6836
6831
  }
6837
- tt.prototype.convert = nt, tt.prototype.revert = nt, tt.prototype.mulTo = rt, tt.prototype.sqrTo = it;
6838
- function at(e) {
6839
- return this.exp(e, new tt());
6832
+ W.prototype.convert = $e, W.prototype.revert = $e, W.prototype.mulTo = et, W.prototype.sqrTo = tt;
6833
+ function nt(e) {
6834
+ return this.exp(e, new W());
6840
6835
  }
6841
- function ot(e, t, n) {
6836
+ function rt(e, t, n) {
6842
6837
  var r = Math.min(this.t + e.t, t);
6843
6838
  for (n.s = 0, n.t = r; r > 0;) n[--r] = 0;
6844
6839
  var i;
@@ -6846,40 +6841,40 @@ var Mn = /* @__PURE__ */ R(((e) => {
6846
6841
  for (i = Math.min(e.t, t); r < i; ++r) this.am(0, e[r], n, r, 0, t - r);
6847
6842
  n.clamp();
6848
6843
  }
6849
- function st(e, t, n) {
6844
+ function it(e, t, n) {
6850
6845
  --t;
6851
6846
  var r = n.t = this.t + e.t - t;
6852
6847
  for (n.s = 0; --r >= 0;) n[r] = 0;
6853
6848
  for (r = Math.max(t - this.t, 0); r < e.t; ++r) n[this.t + r - t] = this.am(t - r, e[r], n, 0, 0, this.t + r - t);
6854
6849
  n.clamp(), n.drShiftTo(1, n);
6855
6850
  }
6856
- function ct(e) {
6851
+ function G(e) {
6857
6852
  this.r2 = a(), this.q3 = a(), i.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e), this.m = e;
6858
6853
  }
6859
- function lt(e) {
6854
+ function at(e) {
6860
6855
  if (e.s < 0 || e.t > 2 * this.m.t) return e.mod(this.m);
6861
6856
  if (e.compareTo(this.m) < 0) return e;
6862
6857
  var t = a();
6863
6858
  return e.copyTo(t), this.reduce(t), t;
6864
6859
  }
6865
- function ut(e) {
6860
+ function ot(e) {
6866
6861
  return e;
6867
6862
  }
6868
- function dt(e) {
6863
+ function st(e) {
6869
6864
  for (e.drShiftTo(this.m.t - 1, this.r2), e.t > this.m.t + 1 && (e.t = this.m.t + 1, e.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); e.compareTo(this.r2) < 0;) e.dAddOffset(1, this.m.t + 1);
6870
6865
  for (e.subTo(this.r2, e); e.compareTo(this.m) >= 0;) e.subTo(this.m, e);
6871
6866
  }
6872
- function ft(e, t) {
6867
+ function ct(e, t) {
6873
6868
  e.squareTo(t), this.reduce(t);
6874
6869
  }
6875
- function pt(e, t, n) {
6870
+ function lt(e, t, n) {
6876
6871
  e.multiplyTo(t, n), this.reduce(n);
6877
6872
  }
6878
- ct.prototype.convert = lt, ct.prototype.revert = ut, ct.prototype.reduce = dt, ct.prototype.mulTo = pt, ct.prototype.sqrTo = ft;
6879
- function mt(e, t) {
6873
+ G.prototype.convert = at, G.prototype.revert = ot, G.prototype.reduce = st, G.prototype.mulTo = lt, G.prototype.sqrTo = ct;
6874
+ function ut(e, t) {
6880
6875
  var n = e.bitLength(), r, i = y(1), o;
6881
6876
  if (n <= 0) return i;
6882
- r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, o = n < 8 ? new F(t) : t.isEven() ? new ct(t) : new L(t);
6877
+ r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, o = n < 8 ? new P(t) : t.isEven() ? new G(t) : new R(t);
6883
6878
  var s = [], c = 3, l = r - 1, u = (1 << r) - 1;
6884
6879
  if (s[1] = o.convert(this), r > 1) {
6885
6880
  var d = a();
@@ -6897,7 +6892,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
6897
6892
  }
6898
6893
  return o.revert(i);
6899
6894
  }
6900
- function ht(e) {
6895
+ function dt(e) {
6901
6896
  var t = this.s < 0 ? this.negate() : this.clone(), n = e.s < 0 ? e.negate() : e.clone();
6902
6897
  if (t.compareTo(n) < 0) {
6903
6898
  var r = t;
@@ -6908,14 +6903,14 @@ var Mn = /* @__PURE__ */ R(((e) => {
6908
6903
  for (i < a && (a = i), a > 0 && (t.rShiftTo(a, t), n.rShiftTo(a, n)); t.signum() > 0;) (i = t.getLowestSetBit()) > 0 && t.rShiftTo(i, t), (i = n.getLowestSetBit()) > 0 && n.rShiftTo(i, n), t.compareTo(n) >= 0 ? (t.subTo(n, t), t.rShiftTo(1, t)) : (n.subTo(t, n), n.rShiftTo(1, n));
6909
6904
  return a > 0 && n.lShiftTo(a, n), n;
6910
6905
  }
6911
- function gt(e) {
6906
+ function ft(e) {
6912
6907
  if (e <= 0) return 0;
6913
6908
  var t = this.DV % e, n = this.s < 0 ? e - 1 : 0;
6914
6909
  if (this.t > 0) if (t == 0) n = this[0] % e;
6915
6910
  else for (var r = this.t - 1; r >= 0; --r) n = (t * n + this[r]) % e;
6916
6911
  return n;
6917
6912
  }
6918
- function _t(e) {
6913
+ function pt(e) {
6919
6914
  var t = e.isEven();
6920
6915
  if (this.isEven() && t || e.signum() == 0) return i.ZERO;
6921
6916
  for (var n = e.clone(), r = this.clone(), a = y(1), o = y(0), s = y(0), c = y(1); n.signum() != 0;) {
@@ -6929,7 +6924,7 @@ var Mn = /* @__PURE__ */ R(((e) => {
6929
6924
  else return c;
6930
6925
  return c.signum() < 0 ? c.add(e) : c;
6931
6926
  }
6932
- var H = [
6927
+ var K = [
6933
6928
  2,
6934
6929
  3,
6935
6930
  5,
@@ -7098,27 +7093,27 @@ var Mn = /* @__PURE__ */ R(((e) => {
7098
7093
  983,
7099
7094
  991,
7100
7095
  997
7101
- ], vt = (1 << 26) / H[H.length - 1];
7102
- function yt(e) {
7096
+ ], mt = (1 << 26) / K[K.length - 1];
7097
+ function ht(e) {
7103
7098
  var t, n = this.abs();
7104
- if (n.t == 1 && n[0] <= H[H.length - 1]) {
7105
- for (t = 0; t < H.length; ++t) if (n[0] == H[t]) return !0;
7099
+ if (n.t == 1 && n[0] <= K[K.length - 1]) {
7100
+ for (t = 0; t < K.length; ++t) if (n[0] == K[t]) return !0;
7106
7101
  return !1;
7107
7102
  }
7108
7103
  if (n.isEven()) return !1;
7109
- for (t = 1; t < H.length;) {
7110
- for (var r = H[t], i = t + 1; i < H.length && r < vt;) r *= H[i++];
7111
- for (r = n.modInt(r); t < i;) if (r % H[t++] == 0) return !1;
7104
+ for (t = 1; t < K.length;) {
7105
+ for (var r = K[t], i = t + 1; i < K.length && r < mt;) r *= K[i++];
7106
+ for (r = n.modInt(r); t < i;) if (r % K[t++] == 0) return !1;
7112
7107
  }
7113
7108
  return n.millerRabin(e);
7114
7109
  }
7115
- function bt(e) {
7110
+ function gt(e) {
7116
7111
  var t = this.subtract(i.ONE), n = t.getLowestSetBit();
7117
7112
  if (n <= 0) return !1;
7118
7113
  var r = t.shiftRight(n);
7119
- e = e + 1 >> 1, e > H.length && (e = H.length);
7114
+ e = e + 1 >> 1, e > K.length && (e = K.length);
7120
7115
  for (var o = a(), s = 0; s < e; ++s) {
7121
- o.fromInt(H[Math.floor(Math.random() * H.length)]);
7116
+ o.fromInt(K[Math.floor(Math.random() * K.length)]);
7122
7117
  var c = o.modPow(r, this);
7123
7118
  if (c.compareTo(i.ONE) != 0 && c.compareTo(t) != 0) {
7124
7119
  for (var l = 1; l++ < n && c.compareTo(t) != 0;) if (c = c.modPowInt(2, this), c.compareTo(i.ONE) == 0) return !1;
@@ -7127,42 +7122,42 @@ var Mn = /* @__PURE__ */ R(((e) => {
7127
7122
  }
7128
7123
  return !0;
7129
7124
  }
7130
- i.prototype.chunkSize = z, i.prototype.toRadix = B, i.prototype.fromRadix = ye, i.prototype.fromNumber = be, i.prototype.bitwiseTo = Te, i.prototype.changeBit = Ve, i.prototype.addTo = Ge, i.prototype.dMultiply = $e, i.prototype.dAddOffset = et, i.prototype.multiplyLowerTo = ot, i.prototype.multiplyUpperTo = st, i.prototype.modInt = gt, i.prototype.millerRabin = bt, i.prototype.clone = me, i.prototype.intValue = he, i.prototype.byteValue = ge, i.prototype.shortValue = _e, i.prototype.signum = ve, i.prototype.toByteArray = xe, i.prototype.equals = Se, i.prototype.min = Ce, i.prototype.max = we, i.prototype.and = De, i.prototype.or = ke, i.prototype.xor = je, i.prototype.andNot = Ne, i.prototype.not = Pe, i.prototype.shiftLeft = V, i.prototype.shiftRight = Fe, i.prototype.getLowestSetBit = Le, i.prototype.bitCount = ze, i.prototype.testBit = Be, i.prototype.setBit = He, i.prototype.clearBit = Ue, i.prototype.flipBit = We, i.prototype.add = Ke, i.prototype.subtract = qe, i.prototype.multiply = Je, i.prototype.divide = Xe, i.prototype.remainder = Ze, i.prototype.divideAndRemainder = Qe, i.prototype.modPow = mt, i.prototype.modInverse = _t, i.prototype.pow = at, i.prototype.gcd = ht, i.prototype.isProbablePrime = yt, i.prototype.square = Ye, i.prototype.Barrett = ct;
7131
- var xt, U, W;
7132
- function St(e) {
7133
- U[W++] ^= e & 255, U[W++] ^= e >> 8 & 255, U[W++] ^= e >> 16 & 255, U[W++] ^= e >> 24 & 255, W >= Y && (W -= Y);
7125
+ i.prototype.chunkSize = _e, i.prototype.toRadix = ye, i.prototype.fromRadix = be, i.prototype.fromNumber = xe, i.prototype.bitwiseTo = Ee, i.prototype.changeBit = He, i.prototype.addTo = Ke, i.prototype.dMultiply = Qe, i.prototype.dAddOffset = U, i.prototype.multiplyLowerTo = rt, i.prototype.multiplyUpperTo = it, i.prototype.modInt = ft, i.prototype.millerRabin = gt, i.prototype.clone = pe, i.prototype.intValue = me, i.prototype.byteValue = he, i.prototype.shortValue = ge, i.prototype.signum = ve, i.prototype.toByteArray = Se, i.prototype.equals = Ce, i.prototype.min = we, i.prototype.max = Te, i.prototype.and = Oe, i.prototype.or = Ae, i.prototype.xor = Me, i.prototype.andNot = Pe, i.prototype.not = Fe, i.prototype.shiftLeft = B, i.prototype.shiftRight = Ie, i.prototype.getLowestSetBit = Re, i.prototype.bitCount = Be, i.prototype.testBit = Ve, i.prototype.setBit = Ue, i.prototype.clearBit = We, i.prototype.flipBit = Ge, i.prototype.add = qe, i.prototype.subtract = V, i.prototype.multiply = Je, i.prototype.divide = Ye, i.prototype.remainder = Xe, i.prototype.divideAndRemainder = Ze, i.prototype.modPow = ut, i.prototype.modInverse = pt, i.prototype.pow = nt, i.prototype.gcd = dt, i.prototype.isProbablePrime = ht, i.prototype.square = H, i.prototype.Barrett = G;
7126
+ var _t, vt, q;
7127
+ function yt(e) {
7128
+ vt[q++] ^= e & 255, vt[q++] ^= e >> 8 & 255, vt[q++] ^= e >> 16 & 255, vt[q++] ^= e >> 24 & 255, q >= At && (q -= At);
7134
7129
  }
7135
- function Ct() {
7136
- St((/* @__PURE__ */ new Date()).getTime());
7130
+ function bt() {
7131
+ yt((/* @__PURE__ */ new Date()).getTime());
7137
7132
  }
7138
- if (U == null) {
7139
- U = [], W = 0;
7140
- var G;
7133
+ if (vt == null) {
7134
+ vt = [], q = 0;
7135
+ var xt;
7141
7136
  if (typeof window < "u" && window.crypto) {
7142
7137
  if (window.crypto.getRandomValues) {
7143
- var wt = new Uint8Array(32);
7144
- for (window.crypto.getRandomValues(wt), G = 0; G < 32; ++G) U[W++] = wt[G];
7138
+ var St = new Uint8Array(32);
7139
+ for (window.crypto.getRandomValues(St), xt = 0; xt < 32; ++xt) vt[q++] = St[xt];
7145
7140
  } else if (navigator.appName == "Netscape" && navigator.appVersion < "5") {
7146
- var K = window.crypto.random(32);
7147
- for (G = 0; G < K.length; ++G) U[W++] = K.charCodeAt(G) & 255;
7141
+ var Ct = window.crypto.random(32);
7142
+ for (xt = 0; xt < Ct.length; ++xt) vt[q++] = Ct.charCodeAt(xt) & 255;
7148
7143
  }
7149
7144
  }
7150
- for (; W < Y;) G = Math.floor(65536 * Math.random()), U[W++] = G >>> 8, U[W++] = G & 255;
7151
- W = 0, Ct();
7145
+ for (; q < At;) xt = Math.floor(65536 * Math.random()), vt[q++] = xt >>> 8, vt[q++] = xt & 255;
7146
+ q = 0, bt();
7152
7147
  }
7153
- function Tt() {
7154
- if (xt == null) {
7155
- for (Ct(), xt = J(), xt.init(U), W = 0; W < U.length; ++W) U[W] = 0;
7156
- W = 0;
7148
+ function wt() {
7149
+ if (_t == null) {
7150
+ for (bt(), _t = kt(), _t.init(vt), q = 0; q < vt.length; ++q) vt[q] = 0;
7151
+ q = 0;
7157
7152
  }
7158
- return xt.next();
7153
+ return _t.next();
7159
7154
  }
7160
- function q(e) {
7155
+ function Tt(e) {
7161
7156
  var t;
7162
- for (t = 0; t < e.length; ++t) e[t] = Tt();
7157
+ for (t = 0; t < e.length; ++t) e[t] = wt();
7163
7158
  }
7164
7159
  function Et() {}
7165
- Et.prototype.nextBytes = q;
7160
+ Et.prototype.nextBytes = Tt;
7166
7161
  function Dt() {
7167
7162
  this.i = 0, this.j = 0, this.S = [];
7168
7163
  }
@@ -7172,15 +7167,15 @@ var Mn = /* @__PURE__ */ R(((e) => {
7172
7167
  for (n = 0, t = 0; t < 256; ++t) n = n + this.S[t] + e[t % e.length] & 255, r = this.S[t], this.S[t] = this.S[n], this.S[n] = r;
7173
7168
  this.i = 0, this.j = 0;
7174
7169
  }
7175
- function kt() {
7170
+ function J() {
7176
7171
  var e;
7177
7172
  return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, e = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = e, this.S[e + this.S[this.i] & 255];
7178
7173
  }
7179
- Dt.prototype.init = Ot, Dt.prototype.next = kt;
7180
- function J() {
7174
+ Dt.prototype.init = Ot, Dt.prototype.next = J;
7175
+ function kt() {
7181
7176
  return new Dt();
7182
7177
  }
7183
- var Y = 256;
7178
+ var At = 256;
7184
7179
  e === void 0 ? this.jsbn = {
7185
7180
  BigInteger: i,
7186
7181
  SecureRandom: Et
@@ -7190,88 +7185,88 @@ var Mn = /* @__PURE__ */ R(((e) => {
7190
7185
  SecureRandom: Et
7191
7186
  };
7192
7187
  }).call(e);
7193
- })), Ln = /* @__PURE__ */ ue(Fn()), Rn = Pn(), $ = In(), zn = $.BigInteger.prototype.Barrett;
7194
- function Bn(e, t) {
7188
+ })), nn = /* @__PURE__ */ p(en()), Z = $t(), Q = tn(), rn = Q.BigInteger.prototype.Barrett;
7189
+ function $(e, t) {
7195
7190
  this.x = t, this.q = e;
7196
7191
  }
7197
- function Vn(e, t, n, r) {
7198
- this.curve = e, this.x = t, this.y = n, this.z = r ?? $.BigInteger.ONE, this.zinv = null;
7192
+ function an(e, t, n, r) {
7193
+ this.curve = e, this.x = t, this.y = n, this.z = r ?? Q.BigInteger.ONE, this.zinv = null;
7199
7194
  }
7200
- function Hn(e, t, n) {
7201
- this.q = e, this.a = this.fromBigInteger(t), this.b = this.fromBigInteger(n), this.infinity = new Vn(this, null, null), this.reducer = new zn(this.q);
7195
+ function on(e, t, n) {
7196
+ this.q = e, this.a = this.fromBigInteger(t), this.b = this.fromBigInteger(n), this.infinity = new an(this, null, null), this.reducer = new rn(this.q);
7202
7197
  }
7203
- Bn.prototype.equals = function(e) {
7198
+ $.prototype.equals = function(e) {
7204
7199
  return e == this || this.q.equals(e.q) && this.x.equals(e.x);
7205
- }, Bn.prototype.toBigInteger = function() {
7200
+ }, $.prototype.toBigInteger = function() {
7206
7201
  return this.x;
7207
- }, Bn.prototype.negate = function() {
7208
- return new Bn(this.q, this.x.negate().mod(this.q));
7209
- }, Bn.prototype.add = function(e) {
7210
- return new Bn(this.q, this.x.add(e.toBigInteger()).mod(this.q));
7211
- }, Bn.prototype.subtract = function(e) {
7212
- return new Bn(this.q, this.x.subtract(e.toBigInteger()).mod(this.q));
7213
- }, Bn.prototype.multiply = function(e) {
7214
- return new Bn(this.q, this.x.multiply(e.toBigInteger()).mod(this.q));
7215
- }, Bn.prototype.square = function() {
7216
- return new Bn(this.q, this.x.square().mod(this.q));
7217
- }, Bn.prototype.divide = function(e) {
7218
- return new Bn(this.q, this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q));
7219
- }, Vn.prototype.getX = function() {
7202
+ }, $.prototype.negate = function() {
7203
+ return new $(this.q, this.x.negate().mod(this.q));
7204
+ }, $.prototype.add = function(e) {
7205
+ return new $(this.q, this.x.add(e.toBigInteger()).mod(this.q));
7206
+ }, $.prototype.subtract = function(e) {
7207
+ return new $(this.q, this.x.subtract(e.toBigInteger()).mod(this.q));
7208
+ }, $.prototype.multiply = function(e) {
7209
+ return new $(this.q, this.x.multiply(e.toBigInteger()).mod(this.q));
7210
+ }, $.prototype.square = function() {
7211
+ return new $(this.q, this.x.square().mod(this.q));
7212
+ }, $.prototype.divide = function(e) {
7213
+ return new $(this.q, this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q));
7214
+ }, an.prototype.getX = function() {
7220
7215
  this.zinv ??= this.z.modInverse(this.curve.q);
7221
7216
  var e = this.x.toBigInteger().multiply(this.zinv);
7222
7217
  return this.curve.reduce(e), this.curve.fromBigInteger(e);
7223
- }, Vn.prototype.getY = function() {
7218
+ }, an.prototype.getY = function() {
7224
7219
  this.zinv ??= this.z.modInverse(this.curve.q);
7225
7220
  var e = this.y.toBigInteger().multiply(this.zinv);
7226
7221
  return this.curve.reduce(e), this.curve.fromBigInteger(e);
7227
- }, Vn.prototype.equals = function(e) {
7228
- return e == this || (this.isInfinity() ? e.isInfinity() : e.isInfinity() ? this.isInfinity() : !!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals($.BigInteger.ZERO) && e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals($.BigInteger.ZERO));
7229
- }, Vn.prototype.isInfinity = function() {
7230
- return this.x == null && this.y == null || this.z.equals($.BigInteger.ZERO) && !this.y.toBigInteger().equals($.BigInteger.ZERO);
7231
- }, Vn.prototype.negate = function() {
7232
- return new Vn(this.curve, this.x, this.y.negate(), this.z);
7233
- }, Vn.prototype.add = function(e) {
7222
+ }, an.prototype.equals = function(e) {
7223
+ return e == this || (this.isInfinity() ? e.isInfinity() : e.isInfinity() ? this.isInfinity() : !!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Q.BigInteger.ZERO) && e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Q.BigInteger.ZERO));
7224
+ }, an.prototype.isInfinity = function() {
7225
+ return this.x == null && this.y == null || this.z.equals(Q.BigInteger.ZERO) && !this.y.toBigInteger().equals(Q.BigInteger.ZERO);
7226
+ }, an.prototype.negate = function() {
7227
+ return new an(this.curve, this.x, this.y.negate(), this.z);
7228
+ }, an.prototype.add = function(e) {
7234
7229
  if (this.isInfinity()) return e;
7235
7230
  if (e.isInfinity()) return this;
7236
7231
  var t = e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q), n = e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);
7237
- if ($.BigInteger.ZERO.equals(n)) return $.BigInteger.ZERO.equals(t) ? this.twice() : this.curve.getInfinity();
7238
- var r = new $.BigInteger("3"), i = this.x.toBigInteger(), a = this.y.toBigInteger(), o = (e.x.toBigInteger(), e.y.toBigInteger(), n.square()), s = o.multiply(n), c = i.multiply(o), l = t.square().multiply(this.z), u = l.subtract(c.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q), d = c.multiply(r).multiply(t).subtract(a.multiply(s)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q), f = s.multiply(this.z).multiply(e.z).mod(this.curve.q);
7239
- return new Vn(this.curve, this.curve.fromBigInteger(u), this.curve.fromBigInteger(d), f);
7240
- }, Vn.prototype.twice = function() {
7232
+ if (Q.BigInteger.ZERO.equals(n)) return Q.BigInteger.ZERO.equals(t) ? this.twice() : this.curve.getInfinity();
7233
+ var r = new Q.BigInteger("3"), i = this.x.toBigInteger(), a = this.y.toBigInteger(), o = (e.x.toBigInteger(), e.y.toBigInteger(), n.square()), s = o.multiply(n), c = i.multiply(o), l = t.square().multiply(this.z), u = l.subtract(c.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q), d = c.multiply(r).multiply(t).subtract(a.multiply(s)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q), f = s.multiply(this.z).multiply(e.z).mod(this.curve.q);
7234
+ return new an(this.curve, this.curve.fromBigInteger(u), this.curve.fromBigInteger(d), f);
7235
+ }, an.prototype.twice = function() {
7241
7236
  if (this.isInfinity()) return this;
7242
7237
  if (this.y.toBigInteger().signum() == 0) return this.curve.getInfinity();
7243
- var e = new $.BigInteger("3"), t = this.x.toBigInteger(), n = this.y.toBigInteger(), r = n.multiply(this.z), i = r.multiply(n).mod(this.curve.q), a = this.curve.a.toBigInteger(), o = t.square().multiply(e);
7244
- $.BigInteger.ZERO.equals(a) || (o = o.add(this.z.square().multiply(a)));
7238
+ var e = new Q.BigInteger("3"), t = this.x.toBigInteger(), n = this.y.toBigInteger(), r = n.multiply(this.z), i = r.multiply(n).mod(this.curve.q), a = this.curve.a.toBigInteger(), o = t.square().multiply(e);
7239
+ Q.BigInteger.ZERO.equals(a) || (o = o.add(this.z.square().multiply(a)));
7245
7240
  var s = (o = o.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q), c = o.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(o.square().multiply(o)).mod(this.curve.q), l = r.square().multiply(r).shiftLeft(3).mod(this.curve.q);
7246
- return new Vn(this.curve, this.curve.fromBigInteger(s), this.curve.fromBigInteger(c), l);
7247
- }, Vn.prototype.multiply = function(e) {
7241
+ return new an(this.curve, this.curve.fromBigInteger(s), this.curve.fromBigInteger(c), l);
7242
+ }, an.prototype.multiply = function(e) {
7248
7243
  if (this.isInfinity()) return this;
7249
7244
  if (e.signum() == 0) return this.curve.getInfinity();
7250
- var t, n = e, r = n.multiply(new $.BigInteger("3")), i = this.negate(), a = this;
7245
+ var t, n = e, r = n.multiply(new Q.BigInteger("3")), i = this.negate(), a = this;
7251
7246
  for (t = r.bitLength() - 2; t > 0; --t) {
7252
7247
  a = a.twice();
7253
7248
  var o = r.testBit(t);
7254
7249
  o != n.testBit(t) && (a = a.add(o ? this : i));
7255
7250
  }
7256
7251
  return a;
7257
- }, Vn.prototype.multiplyTwo = function(e, t, n) {
7252
+ }, an.prototype.multiplyTwo = function(e, t, n) {
7258
7253
  for (var r = e.bitLength() > n.bitLength() ? e.bitLength() - 1 : n.bitLength() - 1, i = this.curve.getInfinity(), a = this.add(t); r >= 0;) i = i.twice(), e.testBit(r) ? i = n.testBit(r) ? i.add(a) : i.add(this) : n.testBit(r) && (i = i.add(t)), --r;
7259
7254
  return i;
7260
- }, Hn.prototype.getQ = function() {
7255
+ }, on.prototype.getQ = function() {
7261
7256
  return this.q;
7262
- }, Hn.prototype.getA = function() {
7257
+ }, on.prototype.getA = function() {
7263
7258
  return this.a;
7264
- }, Hn.prototype.getB = function() {
7259
+ }, on.prototype.getB = function() {
7265
7260
  return this.b;
7266
- }, Hn.prototype.equals = function(e) {
7261
+ }, on.prototype.equals = function(e) {
7267
7262
  return e == this || this.q.equals(e.q) && this.a.equals(e.a) && this.b.equals(e.b);
7268
- }, Hn.prototype.getInfinity = function() {
7263
+ }, on.prototype.getInfinity = function() {
7269
7264
  return this.infinity;
7270
- }, Hn.prototype.fromBigInteger = function(e) {
7271
- return new Bn(this.q, e);
7272
- }, Hn.prototype.reduce = function(e) {
7265
+ }, on.prototype.fromBigInteger = function(e) {
7266
+ return new $(this.q, e);
7267
+ }, on.prototype.reduce = function(e) {
7273
7268
  this.reducer.reduce(e);
7274
- }, Hn.prototype.decodePointHex = function(e) {
7269
+ }, on.prototype.decodePointHex = function(e) {
7275
7270
  switch (parseInt(e.substr(0, 2), 16)) {
7276
7271
  case 0: return this.infinity;
7277
7272
  case 2:
@@ -7280,30 +7275,30 @@ Bn.prototype.equals = function(e) {
7280
7275
  case 6:
7281
7276
  case 7:
7282
7277
  var t = (e.length - 2) / 2, n = e.substr(2, t), r = e.substr(t + 2, t);
7283
- return new Vn(this, this.fromBigInteger(new $.BigInteger(n, 16)), this.fromBigInteger(new $.BigInteger(r, 16)));
7278
+ return new an(this, this.fromBigInteger(new Q.BigInteger(n, 16)), this.fromBigInteger(new Q.BigInteger(r, 16)));
7284
7279
  default: return null;
7285
7280
  }
7286
- }, Hn.prototype.encodePointHex = function(e) {
7281
+ }, on.prototype.encodePointHex = function(e) {
7287
7282
  if (e.isInfinity()) return "00";
7288
7283
  var t = e.getX().toBigInteger().toString(16), n = e.getY().toBigInteger().toString(16), r = this.getQ().toString(16).length;
7289
7284
  for (r % 2 != 0 && r++; t.length < r;) t = "0" + t;
7290
7285
  for (; n.length < r;) n = "0" + n;
7291
7286
  return "04" + t + n;
7292
7287
  };
7293
- var Un = function(e, t) {
7288
+ var sn = function(e, t) {
7294
7289
  return e << (t %= 32) | e >>> 32 - t;
7295
7290
  };
7296
- new $.SecureRandom();
7297
- var Wn = function() {
7298
- var e = new Hn(new $.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), new $.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), new $.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16));
7291
+ new Q.SecureRandom();
7292
+ var cn = function() {
7293
+ var e = new on(new Q.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), new Q.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), new Q.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16));
7299
7294
  return {
7300
7295
  curve: e,
7301
7296
  G: e.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),
7302
- n: new $.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16)
7297
+ n: new Q.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16)
7303
7298
  };
7304
7299
  }();
7305
- Wn.curve, Wn.G, Wn.n;
7306
- var Gn = [
7300
+ cn.curve, cn.G, cn.n;
7301
+ var ln = [
7307
7302
  [
7308
7303
  214,
7309
7304
  144,
@@ -7592,12 +7587,12 @@ var Gn = [
7592
7587
  57,
7593
7588
  72
7594
7589
  ]
7595
- ], Kn = [
7590
+ ], un = [
7596
7591
  2746333894,
7597
7592
  1453994832,
7598
7593
  1736282519,
7599
7594
  2993693404
7600
- ], qn = [
7595
+ ], dn = [
7601
7596
  462357,
7602
7597
  472066609,
7603
7598
  943670861,
@@ -7630,43 +7625,43 @@ var Gn = [
7630
7625
  741554753,
7631
7626
  1213159005,
7632
7627
  1684763257
7633
- ], Jn = /^[0-9a-f]{32}$/i, Yn = function(e) {
7634
- return Gn[(4026531840 & e) >>> 28][(251658240 & e) >>> 24] << 24 | Gn[(15728640 & e) >>> 20][(983040 & e) >>> 16] << 16 | Gn[(61440 & e) >>> 12][(3840 & e) >>> 8] << 8 | Gn[(240 & e) >>> 4][(15 & e) >>> 0] << 0;
7635
- }, Xn = function(e) {
7636
- return (t = Yn(e)) ^ Un(t, 2) ^ Un(t, 10) ^ Un(t, 18) ^ Un(t, 24);
7628
+ ], fn = /^[0-9a-f]{32}$/i, pn = function(e) {
7629
+ return ln[(4026531840 & e) >>> 28][(251658240 & e) >>> 24] << 24 | ln[(15728640 & e) >>> 20][(983040 & e) >>> 16] << 16 | ln[(61440 & e) >>> 12][(3840 & e) >>> 8] << 8 | ln[(240 & e) >>> 4][(15 & e) >>> 0] << 0;
7630
+ }, mn = function(e) {
7631
+ return (t = pn(e)) ^ sn(t, 2) ^ sn(t, 10) ^ sn(t, 18) ^ sn(t, 24);
7637
7632
  var t;
7638
- }, Zn = function(e) {
7633
+ }, hn = function(e) {
7639
7634
  var t, n = Array(36);
7640
- n[0] = e[0] ^ Kn[0], n[1] = e[1] ^ Kn[1], n[2] = e[2] ^ Kn[2], n[3] = e[3] ^ Kn[3];
7641
- for (var r = Array(32), i = 0; i < 32; i++) n[i + 4] = n[i] ^ (t = Yn(n[i + 1] ^ n[i + 2] ^ n[i + 3] ^ qn[i])) ^ Un(t, 13) ^ Un(t, 23), r[i] = n[i + 4];
7635
+ n[0] = e[0] ^ un[0], n[1] = e[1] ^ un[1], n[2] = e[2] ^ un[2], n[3] = e[3] ^ un[3];
7636
+ for (var r = Array(32), i = 0; i < 32; i++) n[i + 4] = n[i] ^ (t = pn(n[i + 1] ^ n[i + 2] ^ n[i + 3] ^ dn[i])) ^ sn(t, 13) ^ sn(t, 23), r[i] = n[i + 4];
7642
7637
  return r;
7643
- }, Qn = function(e, t) {
7644
- for (var n = Zn(t), r = 0; r < 32; r++) e[r + 4] = e[r] ^ Xn(e[r + 1] ^ e[r + 2] ^ e[r + 3] ^ n[r]);
7638
+ }, gn = function(e, t) {
7639
+ for (var n = hn(t), r = 0; r < 32; r++) e[r + 4] = e[r] ^ mn(e[r + 1] ^ e[r + 2] ^ e[r + 3] ^ n[r]);
7645
7640
  return [
7646
7641
  e[35],
7647
7642
  e[34],
7648
7643
  e[33],
7649
7644
  e[32]
7650
7645
  ];
7651
- }, $n = function(e, t) {
7652
- for (var n = Zn(t).reverse(), r = 0; r < 32; r++) e[r + 4] = e[r] ^ Xn(e[r + 1] ^ e[r + 2] ^ e[r + 3] ^ n[r]);
7646
+ }, _n = function(e, t) {
7647
+ for (var n = hn(t).reverse(), r = 0; r < 32; r++) e[r + 4] = e[r] ^ mn(e[r + 1] ^ e[r + 2] ^ e[r + 3] ^ n[r]);
7653
7648
  return [
7654
7649
  e[35],
7655
7650
  e[34],
7656
7651
  e[33],
7657
7652
  e[32]
7658
7653
  ];
7659
- }, er = function(e) {
7654
+ }, vn = function(e) {
7660
7655
  return [
7661
7656
  e.readInt32BE(0),
7662
7657
  e.readInt32BE(4),
7663
7658
  e.readInt32BE(8),
7664
7659
  e.readInt32BE(12)
7665
7660
  ];
7666
- }, tr = function(e) {
7667
- for (var t = Rn.Buffer.alloc(16), n = 0; n < 4; n++) t.writeInt32BE(e[n], 4 * n);
7661
+ }, yn = function(e) {
7662
+ for (var t = Z.Buffer.alloc(16), n = 0; n < 4; n++) t.writeInt32BE(e[n], 4 * n);
7668
7663
  return t;
7669
- }, nr = {
7664
+ }, bn = {
7670
7665
  __proto__: null,
7671
7666
  constants: {
7672
7667
  ECB: 1,
@@ -7674,42 +7669,42 @@ var Gn = [
7674
7669
  },
7675
7670
  encrypt: function(e, t, n) {
7676
7671
  var r = n || {}, i = r.mode, a = r.iv, o = r.outputEncoding;
7677
- if (typeof e == "string" ? e = Rn.Buffer.from(e, r.inputEncoding || "utf8") : e instanceof ArrayBuffer && (e = Rn.Buffer.from(e)), !Rn.Buffer.isBuffer(e)) throw TypeError("Expected \"string\" | \"Buffer\" | \"ArrayBuffer\" but received \"" + Object.prototype.toString.call(e) + "\"");
7678
- if (!Jn.test(t)) throw TypeError("Invalid value of cipher `key`");
7679
- if (t = Rn.Buffer.from(t, "hex"), i === 2 && !Jn.test(a)) throw TypeError("Invalid value of `iv` option");
7672
+ if (typeof e == "string" ? e = Z.Buffer.from(e, r.inputEncoding || "utf8") : e instanceof ArrayBuffer && (e = Z.Buffer.from(e)), !Z.Buffer.isBuffer(e)) throw TypeError("Expected \"string\" | \"Buffer\" | \"ArrayBuffer\" but received \"" + Object.prototype.toString.call(e) + "\"");
7673
+ if (!fn.test(t)) throw TypeError("Invalid value of cipher `key`");
7674
+ if (t = Z.Buffer.from(t, "hex"), i === 2 && !fn.test(a)) throw TypeError("Invalid value of `iv` option");
7680
7675
  return function(e, t, n, r) {
7681
- n &&= er(n), t = er(t);
7676
+ n &&= vn(n), t = vn(t);
7682
7677
  for (var i = [], a = (e = function(e) {
7683
- var t = 16 - e.length % 16, n = Rn.Buffer.alloc(t, t);
7684
- return Rn.Buffer.concat([e, n], e.length + t);
7678
+ var t = 16 - e.length % 16, n = Z.Buffer.alloc(t, t);
7679
+ return Z.Buffer.concat([e, n], e.length + t);
7685
7680
  }(e)).length / 16, o = 0; o < a; o++) if (n) {
7686
- var s = 16 * o, c = Qn([
7681
+ var s = 16 * o, c = gn([
7687
7682
  n[0] ^ e.readInt32BE(s),
7688
7683
  n[1] ^ e.readInt32BE(s + 4),
7689
7684
  n[2] ^ e.readInt32BE(s + 8),
7690
7685
  n[3] ^ e.readInt32BE(s + 12)
7691
7686
  ], t);
7692
- i.push(tr(c)), n = c.slice(0);
7687
+ i.push(yn(c)), n = c.slice(0);
7693
7688
  } else {
7694
- var l = 16 * o, u = Qn([
7689
+ var l = 16 * o, u = gn([
7695
7690
  e.readInt32BE(l),
7696
7691
  e.readInt32BE(l + 4),
7697
7692
  e.readInt32BE(l + 8),
7698
7693
  e.readInt32BE(l + 12)
7699
7694
  ], t);
7700
- i.push(tr(u));
7695
+ i.push(yn(u));
7701
7696
  }
7702
- var d = Rn.Buffer.concat(i, e.length);
7703
- return r ? d.toString(r) : (0, Ln.default)(d);
7704
- }(e, t, a = i === 2 ? Rn.Buffer.from(a, "hex") : null, o);
7697
+ var d = Z.Buffer.concat(i, e.length);
7698
+ return r ? d.toString(r) : (0, nn.default)(d);
7699
+ }(e, t, a = i === 2 ? Z.Buffer.from(a, "hex") : null, o);
7705
7700
  },
7706
7701
  decrypt: function(e, t, n) {
7707
7702
  var r = n || {}, i = r.mode, a = r.iv, o = r.outputEncoding;
7708
- if (typeof e == "string" ? e = Rn.Buffer.from(e, r.inputEncoding) : e instanceof ArrayBuffer && (e = Rn.Buffer.from(e)), !Rn.Buffer.isBuffer(e)) throw TypeError("Expected \"string\" | \"Buffer\" | \"ArrayBuffer\" but received \"" + Object.prototype.toString.call(e) + "\"");
7709
- if (!Jn.test(t)) throw TypeError("Invalid value of cipher `key`");
7710
- if (t = Rn.Buffer.from(t, "hex"), i === 2 && !Jn.test(a)) throw TypeError("Invalid value of `iv` option");
7703
+ if (typeof e == "string" ? e = Z.Buffer.from(e, r.inputEncoding) : e instanceof ArrayBuffer && (e = Z.Buffer.from(e)), !Z.Buffer.isBuffer(e)) throw TypeError("Expected \"string\" | \"Buffer\" | \"ArrayBuffer\" but received \"" + Object.prototype.toString.call(e) + "\"");
7704
+ if (!fn.test(t)) throw TypeError("Invalid value of cipher `key`");
7705
+ if (t = Z.Buffer.from(t, "hex"), i === 2 && !fn.test(a)) throw TypeError("Invalid value of `iv` option");
7711
7706
  return function(e, t, n, r) {
7712
- n &&= er(n), t = er(t);
7707
+ n &&= vn(n), t = vn(t);
7713
7708
  var i = [], a = e.length / 16;
7714
7709
  if (n) for (var o = a - 1; o >= 0; o--) {
7715
7710
  var s, c = 16 * o;
@@ -7719,13 +7714,13 @@ var Gn = [
7719
7714
  e.readInt32BE(c - 16 + 8),
7720
7715
  e.readInt32BE(c - 16 + 12)
7721
7716
  ] : n;
7722
- var l = $n([
7717
+ var l = _n([
7723
7718
  e.readInt32BE(c),
7724
7719
  e.readInt32BE(c + 4),
7725
7720
  e.readInt32BE(c + 8),
7726
7721
  e.readInt32BE(c + 12)
7727
7722
  ], t);
7728
- i.unshift(tr([
7723
+ i.unshift(yn([
7729
7724
  l[0] ^ s[0],
7730
7725
  l[1] ^ s[1],
7731
7726
  l[2] ^ s[2],
@@ -7733,39 +7728,39 @@ var Gn = [
7733
7728
  ]));
7734
7729
  }
7735
7730
  else for (var u = 0; u < a; u++) {
7736
- var d = 16 * u, f = $n([
7731
+ var d = 16 * u, f = _n([
7737
7732
  e.readInt32BE(d),
7738
7733
  e.readInt32BE(d + 4),
7739
7734
  e.readInt32BE(d + 8),
7740
7735
  e.readInt32BE(d + 12)
7741
7736
  ], t);
7742
- i.push(tr(f));
7737
+ i.push(yn(f));
7743
7738
  }
7744
- var p = Rn.Buffer.concat(i, e.length - i[i.length - 1][15]);
7745
- return r ? p.toString(r) : (0, Ln.default)(p);
7746
- }(e, t, a = i === 2 ? Rn.Buffer.from(a, "hex") : null, o);
7739
+ var p = Z.Buffer.concat(i, e.length - i[i.length - 1][15]);
7740
+ return r ? p.toString(r) : (0, nn.default)(p);
7741
+ }(e, t, a = i === 2 ? Z.Buffer.from(a, "hex") : null, o);
7747
7742
  }
7748
7743
  };
7749
7744
  //#endregion
7750
7745
  //#region src/cryptoAlg/sm4-cbc.ts
7751
- function rr(e) {
7746
+ function xn(e) {
7752
7747
  return new Promise((t) => {
7753
- let n = z.use().key || "0123456789abcdeffedcba9876543210", r = z.use().iv || "0123456789abcdeffedcba9876543210";
7754
- t(nr.encrypt(e, n.toLowerCase(), {
7748
+ let n = x.use().key || "0123456789abcdeffedcba9876543210", r = x.use().iv || "0123456789abcdeffedcba9876543210";
7749
+ t(bn.encrypt(e, n.toLowerCase(), {
7755
7750
  iv: r,
7756
- mode: nr.constants.CBC,
7751
+ mode: bn.constants.CBC,
7757
7752
  inputEncoding: "utf8",
7758
7753
  outputEncoding: "base64"
7759
7754
  }).replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replaceAll(/=/g, ""));
7760
7755
  });
7761
7756
  }
7762
- function ir(e) {
7757
+ function Sn(e) {
7763
7758
  return new Promise((t) => {
7764
- let n = z.use().key || "0123456789abcdeffedcba9876543210", r = z.use().iv || "0123456789abcdeffedcba9876543210", i = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
7759
+ let n = x.use().key || "0123456789abcdeffedcba9876543210", r = x.use().iv || "0123456789abcdeffedcba9876543210", i = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
7765
7760
  for (; i.length % 4;) i += "=";
7766
- let a = nr.decrypt(i, n.toLowerCase(), {
7761
+ let a = bn.decrypt(i, n.toLowerCase(), {
7767
7762
  iv: r,
7768
- mode: nr.constants.CBC,
7763
+ mode: bn.constants.CBC,
7769
7764
  inputEncoding: "base64",
7770
7765
  outputEncoding: "utf8"
7771
7766
  });
@@ -7776,31 +7771,31 @@ function ir(e) {
7776
7771
  }
7777
7772
  });
7778
7773
  }
7779
- function ar() {
7774
+ function Cn() {
7780
7775
  return {
7781
7776
  name: "sm4-cbc",
7782
- encrypt: rr,
7783
- decrypt: ir
7777
+ encrypt: xn,
7778
+ decrypt: Sn
7784
7779
  };
7785
7780
  }
7786
7781
  //#endregion
7787
7782
  //#region src/cryptoAlg/sm4-ecb.ts
7788
- function or(e) {
7783
+ function wn(e) {
7789
7784
  return new Promise((t) => {
7790
- let n = z.use().key || "0123456789abcdeffedcba9876543210";
7791
- t(nr.encrypt(e, n.toLowerCase(), {
7792
- mode: nr.constants.ECB,
7785
+ let n = x.use().key || "0123456789abcdeffedcba9876543210";
7786
+ t(bn.encrypt(e, n.toLowerCase(), {
7787
+ mode: bn.constants.ECB,
7793
7788
  inputEncoding: "utf8",
7794
7789
  outputEncoding: "base64"
7795
7790
  }).replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replaceAll(/=/g, ""));
7796
7791
  });
7797
7792
  }
7798
- function sr(e) {
7793
+ function Tn(e) {
7799
7794
  return new Promise((t) => {
7800
- let n = z.use().key || "0123456789abcdeffedcba9876543210", r = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
7795
+ let n = x.use().key || "0123456789abcdeffedcba9876543210", r = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
7801
7796
  for (; r.length % 4;) r += "=";
7802
- let i = nr.decrypt(r, n.toLowerCase(), {
7803
- mode: nr.constants.ECB,
7797
+ let i = bn.decrypt(r, n.toLowerCase(), {
7798
+ mode: bn.constants.ECB,
7804
7799
  inputEncoding: "base64",
7805
7800
  outputEncoding: "utf8"
7806
7801
  });
@@ -7811,336 +7806,26 @@ function sr(e) {
7811
7806
  }
7812
7807
  });
7813
7808
  }
7814
- function cr() {
7809
+ function En() {
7815
7810
  return {
7816
7811
  name: "sm4-ecb",
7817
- encrypt: or,
7818
- decrypt: sr
7812
+ encrypt: wn,
7813
+ decrypt: Tn
7819
7814
  };
7820
7815
  }
7821
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7822
- function lr(e = !1, t = {}) {
7823
- let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = w(e), a = j(e);
7824
- function o(e) {
7825
- if (arguments.length) return a.value = e, a.value;
7826
- {
7827
- let e = ee(n);
7828
- return a.value = a.value === e ? ee(r) : e, a.value;
7829
- }
7830
- }
7831
- return i ? o : [a, o];
7832
- }
7833
- //#endregion
7834
- //#region src/pages/components/drawerCryptoUrl.vue?vue&type=script&setup=true&lang.ts
7835
- var ur = /* @__PURE__ */ C({
7836
- name: "DrawerCryptoUrl",
7837
- __name: "drawerCryptoUrl",
7838
- emits: ["submit"],
7839
- setup(e, { expose: t, emit: n }) {
7840
- let r = n, i = { url: [{
7841
- required: !0,
7842
- validator: b,
7843
- trigger: ["blur", "change"]
7844
- }] }, [a, s] = lr(!1), p = k(), h = k({}), g = k(!1), v = k([]), y = k(0);
7845
- function b(e, t, n) {
7846
- t ? /^\/(?!.*\*{3})(?:[\w-]+|:\w+|\*{1,2})(?:\/(?:[\w-]+|:\w+|\*{1,2}))*$/.test(t) ? n() : n(/* @__PURE__ */ Error("url格式不正确")) : n(/* @__PURE__ */ Error("请输入url"));
7847
- }
7848
- async function C(e, t, n) {
7849
- s(!0), v.value = t || [], y.value = n || 0, e ? (g.value = !0, h.value = { ...t?.[n || 0] }) : (g.value = !1, h.value = {});
7850
- }
7851
- let [T, E] = lr(!1);
7852
- function O() {
7853
- p.value?.validate().then(() => {
7854
- E(!0);
7855
- let e = { ...h.value };
7856
- g.value ? v.value[y.value] = e : v.value.push(e), E(!1), A(), r("submit", v.value);
7857
- });
7858
- }
7859
- function A() {
7860
- s(!1);
7861
- }
7862
- return t({ open: C }), (e, t) => {
7863
- let n = d, r = u, s = m, g = l, v = o, y = f, b = c;
7864
- return D(), _(b, {
7865
- open: N(a),
7866
- "onUpdate:open": t[3] ||= (e) => w(a) ? a.value = e : null,
7867
- title: "url信息",
7868
- placement: "right",
7869
- width: 600,
7870
- "destroy-on-close": "",
7871
- "footer-style": { textAlign: "right" },
7872
- onClose: A
7873
- }, {
7874
- footer: P(() => [S(y, null, {
7875
- default: P(() => [S(v, { onClick: A }, {
7876
- default: P(() => [...t[4] ||= [x(" 取消 ", -1)]]),
7877
- _: 1
7878
- }), S(v, {
7879
- type: "primary",
7880
- loading: N(T),
7881
- onClick: t[2] ||= (e) => O()
7882
- }, {
7883
- default: P(() => [...t[5] ||= [x(" 提交 ", -1)]]),
7884
- _: 1
7885
- }, 8, ["loading"])]),
7886
- _: 1
7887
- })]),
7888
- default: P(() => [S(g, {
7889
- ref_key: "formRef",
7890
- ref: p,
7891
- model: N(h),
7892
- rules: i,
7893
- "label-col": { style: { width: "90px" } }
7894
- }, {
7895
- default: P(() => [S(r, {
7896
- label: "url地址",
7897
- name: "url",
7898
- tooltip: "支持url通配符,示例:/api/v1/user/*,/api/login/**"
7899
- }, {
7900
- default: P(() => [S(n, {
7901
- value: N(h).url,
7902
- "onUpdate:value": t[0] ||= (e) => N(h).url = e,
7903
- maxlength: 200
7904
- }, null, 8, ["value"])]),
7905
- _: 1
7906
- }), S(r, {
7907
- label: "描述",
7908
- name: "description"
7909
- }, {
7910
- default: P(() => [S(s, {
7911
- value: N(h).description,
7912
- "onUpdate:value": t[1] ||= (e) => N(h).description = e,
7913
- rows: 3,
7914
- "show-count": "",
7915
- maxlength: 200
7916
- }, null, 8, ["value"])]),
7917
- _: 1
7918
- })]),
7919
- _: 1
7920
- }, 8, ["model"])]),
7921
- _: 1
7922
- }, 8, ["open"]);
7923
- };
7924
- }
7925
- }), dr = /* @__PURE__ */ ce({ default: () => fr }), fr = ur, pr = /* @__PURE__ */ function(e) {
7926
- return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e.ENABLE = "启用", e.DISABLE = "停用", e;
7927
- }({}), mr = {
7928
- "w-full": "",
7929
- "h-full": "",
7930
- "pt-10px": "",
7931
- "px-10px": "",
7932
- "overflow-auto": ""
7933
- }, hr = {
7934
- "h-full": "",
7935
- "min-w-1130px": ""
7936
- }, gr = { class: "pt-20px pl-20px h-161px flex flex-col bg-[#ffffff] box-border bg-[url('@/assets/images/crypto-setting-bg.png')] bg-cover text-[#4e5969] dark:text-[#C9CDD4]" }, _r = { class: "flex items-center" }, vr = { class: "p-5px bg-[#f2f3f5] rounded-5px flex items-center" }, yr = { class: "flex items-center ml-15px text-[#a3a4a8]" }, br = { class: "h-[calc(100%-165px)]" }, xr = ["onClick"], Sr = { class: "ml-4px" }, Cr = ["onClick"], wr = { class: "ml-4px" }, Tr = /* @__PURE__ */ C({
7937
- __name: "setting",
7938
- setup(t) {
7939
- let n = k(), r = k(), a = k(), c = { style: { width: "auto" } }, d = { span: 24 }, { auth: m } = i(), C = O({
7940
- isCrypto: !0,
7941
- mode: !0,
7942
- whiteListUrls: []
7943
- }), [w, j] = lr(!1);
7944
- E(ee);
7945
- async function ee() {
7946
- await ge().then((e) => {
7947
- j(!1), e && e.data && e.success && (C.isCrypto = e.data.cryptoEnabled || !1, C.whiteListUrls = e.data.cryptoWhitePath, C.mode = e.data.cryptoMode === void 0 ? !0 : e.data.cryptoMode);
7948
- });
7949
- }
7950
- function re(e, t) {
7951
- t && (C.mode = e, ie());
7952
- }
7953
- async function ie() {
7954
- if (!w.value) {
7955
- j(!0);
7956
- try {
7957
- await r.value?.validate();
7958
- let { isCrypto: e, mode: t, whiteListUrls: n } = C, i = {
7959
- cryptoEnabled: e,
7960
- cryptoMode: t,
7961
- cryptoWhitePath: n
7962
- }, { success: a } = await he({ json: JSON.stringify(i) });
7963
- a && (ne.success("配置更改成功"), z.callAsync({
7964
- ...z.use(),
7965
- isCrypto: C.isCrypto,
7966
- cryptoMode: C.mode,
7967
- whiteListUrls: C.whiteListUrls
7968
- }, () => {
7969
- ee();
7970
- }));
7971
- } catch {
7972
- j(!1);
7973
- }
7974
- }
7975
- }
7976
- let ae = [
7977
- {
7978
- minWidth: 60,
7979
- hideInTable: !1,
7980
- title: "url地址",
7981
- dataIndex: "url"
7982
- },
7983
- {
7984
- hideInSearch: !0,
7985
- minWidth: 200,
7986
- title: "描述",
7987
- dataIndex: "description",
7988
- ellipsis: !0
7989
- },
7990
- {
7991
- hideInSearch: !0,
7992
- title: "操作",
7993
- dataIndex: "action",
7994
- width: 200,
7995
- fixed: "right",
7996
- hideInTable() {
7997
- return !m([
7998
- "crypto_url_add",
7999
- "crypto_url_edit",
8000
- "crypto_url_delete"
8001
- ]);
8002
- }
8003
- }
8004
- ];
8005
- function oe(e, t) {
8006
- if (!w.value) switch (e) {
8007
- case pr.ADD:
8008
- a.value.open(!1, C.whiteListUrls);
8009
- break;
8010
- case pr.EDIT:
8011
- a.value.open(!0, C.whiteListUrls, t);
8012
- break;
8013
- case pr.REMOVE:
8014
- L(C.whiteListUrls || [], t || 0);
8015
- break;
8016
- }
8017
- }
8018
- function L(e, t) {
8019
- I.confirm({
8020
- title: "删除",
8021
- content: "确定要删除该条数据吗?",
8022
- async onOk() {
8023
- e.splice(t, 1), se(e);
8024
- }
8025
- });
8026
- }
8027
- function se(e) {
8028
- C.whiteListUrls = e, ie();
8029
- }
8030
- return (t, i) => {
8031
- let m = p, E = u, O = s, k = l, j = h, ee = o, I = e, ne = f, L = A("auth");
8032
- return D(), y("div", mr, [b("div", hr, [b("div", gr, [S(k, {
8033
- ref_key: "formRef",
8034
- ref: r,
8035
- model: C,
8036
- "label-col": c,
8037
- "wrapper-col": d,
8038
- class: "safe-rule-form"
8039
- }, {
8040
- default: P(() => [S(E, {
8041
- label: "开启加密",
8042
- name: "isCrypto"
8043
- }, {
8044
- default: P(() => [S(m, {
8045
- checked: C.isCrypto,
8046
- "onUpdate:checked": i[0] ||= (e) => C.isCrypto = e,
8047
- disabled: N(w),
8048
- onChange: ie
8049
- }, null, 8, ["checked", "disabled"])]),
8050
- _: 1
8051
- }), S(E, {
8052
- label: "模式",
8053
- name: "isCrypto"
8054
- }, {
8055
- default: P(() => [b("div", _r, [b("div", vr, [S(O, {
8056
- checked: C.mode,
8057
- disabled: N(w),
8058
- class: T(N(w) ? "cursor-not-allowed!" : ""),
8059
- onChange: i[1] ||= (e) => !N(w) && re(!0, e)
8060
- }, {
8061
- default: P(() => [...i[4] ||= [x(" 白名单 ", -1)]]),
8062
- _: 1
8063
- }, 8, [
8064
- "checked",
8065
- "disabled",
8066
- "class"
8067
- ]), S(O, {
8068
- checked: !C.mode,
8069
- class: T(["mr-0px!", N(w) ? "cursor-not-allowed!" : ""]),
8070
- onChange: i[2] ||= (e) => !N(w) && re(!1, e)
8071
- }, {
8072
- default: P(() => [...i[5] ||= [x(" 黑名单 ", -1)]]),
8073
- _: 1
8074
- }, 8, ["checked", "class"])]), b("div", yr, [S(N(g), { class: "mr-5px" }), i[6] ||= x("白名单模式下,仅不加密过滤列表中的接口;黑名单模式下,仅加密过滤列表中的接口。 ", -1)])])]),
8075
- _: 1
8076
- })]),
8077
- _: 1
8078
- }, 8, ["model"])]), b("div", br, [S(N(F), {
8079
- ref_key: "tableRef",
8080
- ref: n,
8081
- "row-key": "id",
8082
- "data-source": C.whiteListUrls,
8083
- columns: ae,
8084
- "auto-height": "",
8085
- search: !1,
8086
- pagination: !1,
8087
- scroll: { x: 1e3 }
8088
- }, {
8089
- toolbar: P(() => [te((D(), _(ee, {
8090
- type: "primary",
8091
- disabled: N(w),
8092
- onClick: i[3] ||= (e) => oe(N(pr).ADD)
8093
- }, {
8094
- default: P(() => [S(j), x(" " + M(N(pr).ADD), 1)]),
8095
- _: 1
8096
- }, 8, ["disabled"])), [[L, "crypto_url_add"]])]),
8097
- bodyCell: P(({ column: e, index: t }) => [e.dataIndex === "action" ? (D(), _(ne, { key: 0 }, {
8098
- default: P(() => [te((D(), y("a", {
8099
- class: "flex items-center hover:opacity-80",
8100
- onClick: (e) => oe(N(pr).EDIT, t)
8101
- }, [S(I, {
8102
- name: "edit",
8103
- class: "text-base"
8104
- }), b("span", Sr, M(N(pr).EDIT), 1)], 8, xr)), [[L, "crypto_url_edit"]]), te((D(), y("span", {
8105
- flex: "",
8106
- "items-center": "",
8107
- "text-red-500": "",
8108
- "hover:cursor-pointer": "",
8109
- "hover:text-red-500": "",
8110
- "hover:opacity-80": "",
8111
- onClick: (e) => oe(N(pr).REMOVE, t)
8112
- }, [S(I, {
8113
- name: "remove",
8114
- class: "text-base"
8115
- }), b("span", wr, M(N(pr).REMOVE), 1)], 8, Cr)), [[L, "crypto_url_delete"]])]),
8116
- _: 2
8117
- }, 1024)) : v("", !0)]),
8118
- _: 1
8119
- }, 8, ["data-source"])])]), S(fr, {
8120
- ref_key: "drawerRef",
8121
- ref: a,
8122
- onSubmit: se
8123
- }, null, 512)]);
8124
- };
8125
- }
8126
- }), Er = (e, t) => {
8127
- let n = e.__vccOpts || e;
8128
- for (let [e, r] of t) n[e] = r;
8129
- return n;
8130
- }, Dr = /* @__PURE__ */ ce({ default: () => Or }), Or = /* @__PURE__ */ Er(Tr, [["__scopeId", "data-v-89197708"]]);
8131
- r("crypto", fe.pages), n("crypto", fe.icons);
8132
- function kr(e) {
7816
+ n("crypto", h.pages), t("crypto", h.icons);
7817
+ function Dn(e) {
8133
7818
  let { request: t, cryptoSetting: n } = e;
8134
- return pe.set({ request: t }), z.set({
7819
+ return g.set({ request: t }), x.set({
8135
7820
  isCrypto: !1,
8136
7821
  cryptoMode: !1,
8137
- cryptoSetting: tt()
7822
+ cryptoSetting: xe()
8138
7823
  }), {
8139
7824
  name: "pubinfo:crypto",
8140
7825
  enforce: "pre",
8141
7826
  async setup() {
8142
- let { data: e } = await An(_e()), t = jn(32), r = jn(32);
8143
- z.callAsync({
7827
+ let { data: e } = await Yt(b()), t = Xt(32), r = Xt(32);
7828
+ x.callAsync({
8144
7829
  publicKey: e.publicKey,
8145
7830
  isCrypto: e.cryptoEnabled || !1,
8146
7831
  cryptoSetting: n,
@@ -8152,11 +7837,11 @@ function kr(e) {
8152
7837
  },
8153
7838
  hooks: {
8154
7839
  "http:request": async (e) => {
8155
- !e.config?.headers?.["X-Crypyto-Key"] && Tn(e.url, z.use().isCrypto, z.use().cryptoMode, z.use().whiteListUrls) && await On(e, z.use().cryptoSetting);
7840
+ !e.config?.headers?.["X-Crypyto-Key"] && Wt(e.url, x.use().isCrypto, x.use().cryptoMode, x.use().whiteListUrls) && await qt(e, x.use().cryptoSetting);
8156
7841
  },
8157
- "http:response": { onSuccess: async (e) => (e.config?.responseType !== "blob" && Tn(e.config.url, z.use().isCrypto, z.use().cryptoMode, z.use().whiteListUrls) && await kn(e, z.use().cryptoSetting), e) }
7842
+ "http:response": { onSuccess: async (e) => (e.config?.responseType !== "blob" && Wt(e.config.url, x.use().isCrypto, x.use().cryptoMode, x.use().whiteListUrls) && await Jt(e, x.use().cryptoSetting), e) }
8158
7843
  }
8159
7844
  };
8160
7845
  }
8161
7846
  //#endregion
8162
- export { Or as CryptoSettingPage, kr as crypto, tt as setupAes, ar as setupSm4Cbc, cr as setupSm4Ecb };
7847
+ export { Dn as crypto, x as cryptoContext, v as n, d as r, xe as setupAes, Cn as setupSm4Cbc, En as setupSm4Ecb, y as t };