nhanh-pure-function 4.2.3 → 4.2.4

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.es.js CHANGED
@@ -5,7 +5,7 @@ var we = (r) => {
5
5
  };
6
6
  var Qe = (r, s, t) => s in r ? Ze(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t;
7
7
  var d = (r, s, t) => Qe(r, typeof s != "symbol" ? s + "" : s, t), xe = (r, s, t) => s.has(r) || we("Cannot " + t);
8
- var x = (r, s, t) => (xe(r, s, "read from private field"), t ? t.call(r) : s.get(r)), L = (r, s, t) => s.has(r) ? we("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), M = (r, s, t, e) => (xe(r, s, "write to private field"), e ? e.call(r, t) : s.set(r, t), t);
8
+ var x = (r, s, t) => (xe(r, s, "read from private field"), t ? t.call(r) : s.get(r)), L = (r, s, t) => s.has(r) ? we("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), _ = (r, s, t, e) => (xe(r, s, "write to private field"), e ? e.call(r, t) : s.set(r, t), t);
9
9
  const Je = {
10
10
  ".mp3": "audio/mpeg",
11
11
  ".mp4": "video/mp4",
@@ -262,7 +262,7 @@ const Je = {
262
262
  "正",
263
263
  "载",
264
264
  "极"
265
- ], Ls = ["_self", "_blank", "_parent", "_top"], Re = {
265
+ ], Ts = ["_self", "_blank", "_parent", "_top"], De = {
266
266
  // 北美标准尺寸 (毫米)
267
267
  Letter: { width: 215.9, height: 279.4 },
268
268
  // 8.5 × 11 英寸
@@ -315,7 +315,7 @@ const Je = {
315
315
  C6: { width: 114, height: 162 },
316
316
  C7: { width: 81, height: 114 },
317
317
  C8: { width: 57, height: 81 }
318
- }, Ts = Object.keys(Re).map(
318
+ }, Is = Object.keys(De).map(
319
319
  (r) => ({ value: r, label: r })
320
320
  );
321
321
  function Wt(r, s = 500) {
@@ -328,19 +328,19 @@ function Wt(r, s = 500) {
328
328
  }
329
329
  return requestAnimationFrame(i), () => e = !1;
330
330
  }
331
- function Is(r, s, t, e, i = 2) {
331
+ function Ns(r, s, t, e, i = 2) {
332
332
  let n = r, o = !1, a = 1, l = r, c = s, h = t;
333
333
  const u = () => {
334
334
  const P = (c - l) / h;
335
335
  return Number(P.toFixed(i));
336
336
  };
337
337
  let f = u();
338
- const m = (P) => Math.min(Math.max(P, l), c), p = (P) => Number(P.toFixed(i)), g = (P, b, _) => {
339
- const A = [];
340
- return P >= b && A.push("最小值必须小于最大值"), _ <= 0 ? A.push("分段数必须为正数") : u() == 0 && A.push("数值精度过低,致使动画步长为 0"), A;
341
- }, y = (P, b, _) => {
342
- const A = g(P, b, _);
343
- return A.length > 0 ? (console.error(`参数更新失败: ${A.join("; ")}`), !1) : (l = P, c = b, h = _, f = u(), n = m(n), !0);
338
+ const m = (P) => Math.min(Math.max(P, l), c), p = (P) => Number(P.toFixed(i)), g = (P, b, M) => {
339
+ const O = [];
340
+ return P >= b && O.push("最小值必须小于最大值"), M <= 0 ? O.push("分段数必须为正数") : u() == 0 && O.push("数值精度过低,致使动画步长为 0"), O;
341
+ }, y = (P, b, M) => {
342
+ const O = g(P, b, M);
343
+ return O.length > 0 ? (console.error(`参数更新失败: ${O.join("; ")}`), !1) : (l = P, c = b, h = M, f = u(), n = m(n), !0);
344
344
  }, w = () => {
345
345
  o && (a = n >= c ? -1 : n <= l ? 1 : a, n = m(n + f * a), e(p(n)), requestAnimationFrame(w));
346
346
  };
@@ -376,7 +376,7 @@ function Ke(r, s, t, e, i = 4) {
376
376
  };
377
377
  h();
378
378
  }
379
- function Ns(r, s, t, e) {
379
+ function Hs(r, s, t, e) {
380
380
  const i = (l) => 3 * (1 - l) ** 2 * l * r + 3 * (1 - l) * l ** 2 * t + l ** 3, n = (l) => 3 * (1 - l) ** 2 * l * s + 3 * (1 - l) * l ** 2 * e + l ** 3, o = (l) => 3 * r * (1 - l) * (1 - 3 * l) + 3 * t * (2 * l - 3 * l ** 2) + 3 * l ** 2, a = (l) => {
381
381
  if (l <= 0) return 0;
382
382
  if (l >= 1) return 1;
@@ -404,7 +404,7 @@ function Ns(r, s, t, e) {
404
404
  return n(a(c));
405
405
  };
406
406
  }
407
- function Hs(r, s = "image/png") {
407
+ function Fs(r, s = "image/png") {
408
408
  try {
409
409
  let t, e = s;
410
410
  if (r instanceof File)
@@ -441,7 +441,7 @@ function Hs(r, s = "image/png") {
441
441
  ), null;
442
442
  }
443
443
  }
444
- function Fs(r) {
444
+ function zs(r) {
445
445
  return r.charAt(0).toUpperCase() + r.slice(1);
446
446
  }
447
447
  function Bs(r, s, t = 2) {
@@ -451,7 +451,7 @@ function le(r) {
451
451
  const t = r.toString().split("."), e = t[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
452
452
  return t.length > 1 ? e + "." + t[1] : e;
453
453
  }
454
- function zs(r, s) {
454
+ function Us(r, s) {
455
455
  const t = {
456
456
  join: !0,
457
457
  suffix: "",
@@ -495,10 +495,10 @@ function ce(r, s = "file") {
495
495
  const t = r.split("/");
496
496
  return t[t.length - 1].split("?")[0];
497
497
  }
498
- function Us(r, s) {
498
+ function Xs(r, s) {
499
499
  return r = r.replace(/([^a-zA-Z][a-z])/g, (t) => t.toUpperCase()), s ? r.replace(/[^a-zA-Z]+/g, "") : r;
500
500
  }
501
- function Xs(r, s, t = ",") {
501
+ function Ys(r, s, t = ",") {
502
502
  const e = new RegExp(
503
503
  `(^|${t})${s}(${t}|$)`,
504
504
  "g"
@@ -507,7 +507,7 @@ function Xs(r, s, t = ",") {
507
507
  return n === o ? t : "";
508
508
  });
509
509
  }
510
- function Ys(r, s = !0) {
510
+ function js(r, s = !0) {
511
511
  const t = {
512
512
  "\b": "\\b",
513
513
  " ": "\\t",
@@ -534,7 +534,7 @@ const It = [
534
534
  ["秒", 1e3],
535
535
  ["毫秒", 1]
536
536
  ];
537
- function js(r, s) {
537
+ function Ws(r, s) {
538
538
  if (!Number.isFinite(r) || r < 0) return "0毫秒";
539
539
  r = Math.round(r);
540
540
  const t = s ? It.findIndex(([i]) => i === s) : 0, e = t === -1 ? 0 : t;
@@ -548,7 +548,7 @@ function js(r, s) {
548
548
  }
549
549
  return "0毫秒";
550
550
  }
551
- function Ws(r, s) {
551
+ function $s(r, s) {
552
552
  if (s < 1)
553
553
  return console.error("分割大小必须大于0"), [];
554
554
  const t = [];
@@ -565,7 +565,7 @@ function ve(r, s = 2) {
565
565
  } else return !1;
566
566
  return !0;
567
567
  }
568
- function qt(r, s = 1, t = 2) {
568
+ function $t(r, s = 1, t = 2) {
569
569
  if (Array.isArray(r) && r.length >= s) {
570
570
  for (let i = 0; i < r.length; i++)
571
571
  if (!ve(r[i], t)) return !1;
@@ -575,7 +575,7 @@ function qt(r, s = 1, t = 2) {
575
575
  function qs(r, s, t) {
576
576
  return Math.abs(r - s) <= t;
577
577
  }
578
- function $s(r, s) {
578
+ function Zs(r, s) {
579
579
  let t = !1;
580
580
  const { x: e, y: i } = r, n = s.length;
581
581
  for (let o = 0, a = n - 1; o < n; a = o++) {
@@ -584,7 +584,7 @@ function $s(r, s) {
584
584
  }
585
585
  return t;
586
586
  }
587
- function Zs(r, s, t, e) {
587
+ function Qs(r, s, t, e) {
588
588
  const i = Math.min(r[0], s[0]), n = Math.max(r[0], s[0]), o = Math.min(r[1], s[1]), a = Math.max(r[1], s[1]), l = [
589
589
  [i, o],
590
590
  // 左上
@@ -611,7 +611,7 @@ function Zs(r, s, t, e) {
611
611
  function he(r) {
612
612
  return Object.prototype.toString.call(r).slice(8, -1).toLowerCase();
613
613
  }
614
- function Qs(r) {
614
+ function Js(r) {
615
615
  return [
616
616
  "https:",
617
617
  // HTTPS协议,用于安全地浏览网页
@@ -635,7 +635,7 @@ function Qs(r) {
635
635
  // VPN协议,用于创建安全的网络连接
636
636
  ].some((t) => r.startsWith(t));
637
637
  }
638
- function Js(r) {
638
+ function Ks(r) {
639
639
  return new Promise((s, t) => {
640
640
  if (typeof r != "string" || r.trim() === "" || !r.includes("://")) {
641
641
  t(new Error("Invalid URL: Must be a non-empty string"));
@@ -743,11 +743,11 @@ const it = class it {
743
743
  // 缓存文件扩展名的条目,以提高性能
744
744
  d(it, "cachedEntries", Object.entries(re));
745
745
  let be = it;
746
- const ei = /\w*(?:\[\d+\])+|\w+/g, ke = /^\w*(?:\[\d+\])+$/, Ve = /\w+|(\[\d+\])/g, Oe = /\[(\d+)\]/;
747
- function Ae(r) {
746
+ const ei = /\w*(?:\[\d+\])+|\w+/g, ke = /^\w*(?:\[\d+\])+$/, Ve = /\w+|(\[\d+\])/g, Ae = /\[(\d+)\]/;
747
+ function Oe(r) {
748
748
  return r ? r.match(ei) || [] : [];
749
749
  }
750
- function Ks(r, s = 3e3) {
750
+ function tn(r, s = 3e3) {
751
751
  if (typeof r != "function")
752
752
  return console.error("非函数:", r);
753
753
  const t = window.requestIdleCallback, e = function(i) {
@@ -814,7 +814,7 @@ function Le(r, s) {
814
814
  }, s);
815
815
  };
816
816
  }
817
- function tn(r, s) {
817
+ function en(r, s) {
818
818
  let t = -1 / 0;
819
819
  return function(...e) {
820
820
  const i = performance.now();
@@ -828,9 +828,9 @@ function tn(r, s) {
828
828
  }
829
829
  };
830
830
  }
831
- function en(r, s) {
831
+ function sn(r, s) {
832
832
  if (!r || !s) return r;
833
- const t = Ae(s);
833
+ const t = Oe(s);
834
834
  return t.length ? t.reduce((e, i, n) => {
835
835
  const o = n === t.length - 1;
836
836
  if (ke.test(i)) {
@@ -838,16 +838,16 @@ function en(r, s) {
838
838
  return a.reduce((l, c, h) => {
839
839
  if (/^\w+$/.test(c))
840
840
  return l[c] || (h < a.length - 1 ? [] : {});
841
- const u = c.match(Oe), f = u ? parseInt(u[1], 10) : 0, m = h === a.length - 1;
841
+ const u = c.match(Ae), f = u ? parseInt(u[1], 10) : 0, m = h === a.length - 1;
842
842
  return m && o ? l[f] : l[f] || (m ? {} : []);
843
843
  }, e);
844
844
  }
845
845
  return o ? e[i] : e[i] || {};
846
846
  }, r) : r;
847
847
  }
848
- function sn(r, s, t, e) {
848
+ function nn(r, s, t, e) {
849
849
  if (!r || !s) return t;
850
- const i = Ae(s);
850
+ const i = Oe(s);
851
851
  return i.length ? i.reduce((n, o, a) => {
852
852
  const l = a === i.length - 1;
853
853
  if (ke.test(o)) {
@@ -856,14 +856,14 @@ function sn(r, s, t, e) {
856
856
  const m = f === c.length - 1;
857
857
  if (/^\w+$/.test(u))
858
858
  return h.hasOwnProperty(u) || (h[u] = []), h[u];
859
- const p = u.match(Oe), g = p ? parseInt(p[1], 10) : 0, y = m && l;
859
+ const p = u.match(Ae), g = p ? parseInt(p[1], 10) : 0, y = m && l;
860
860
  return h.hasOwnProperty(g) ? y && !e && (h[g] = t) : h[g] = y ? t : m ? {} : [], h[g];
861
861
  }, n);
862
862
  }
863
863
  return l ? ((!e || !n.hasOwnProperty(o)) && (n[o] = t), n[o]) : (n.hasOwnProperty(o) || (n[o] = {}), n[o]);
864
864
  }, r) : t;
865
865
  }
866
- function nn(r) {
866
+ function rn(r) {
867
867
  return r.map((s, t) => r.slice(t).concat(r.slice(0, t)));
868
868
  }
869
869
  function si(r) {
@@ -989,7 +989,7 @@ function ni(r, s) {
989
989
  ), f;
990
990
  };
991
991
  }
992
- function rn(r) {
992
+ function on(r) {
993
993
  const s = Date.now();
994
994
  let t = performance.now();
995
995
  for (; Date.now() - s < r; ) {
@@ -1002,8 +1002,191 @@ function rn(r) {
1002
1002
  }
1003
1003
  return Date.now() - s;
1004
1004
  }
1005
+ class ri {
1006
+ constructor() {
1007
+ }
1008
+ /**
1009
+ * 数值钳制,确保在合法区间内。
1010
+ */
1011
+ static clamp(s, t, e) {
1012
+ return Math.min(Math.max(s, t), e);
1013
+ }
1014
+ static normalizeHue(s) {
1015
+ return (s % 360 + 360) % 360;
1016
+ }
1017
+ /**
1018
+ * 根据色相分段与色度参数生成 RGB(0-255)。
1019
+ */
1020
+ static chromaToRgb(s, t, e) {
1021
+ const i = t * (1 - Math.abs(s / 60 % 2 - 1));
1022
+ let n = 0, o = 0, a = 0;
1023
+ return s < 60 ? [n, o, a] = [t, i, 0] : s < 120 ? [n, o, a] = [i, t, 0] : s < 180 ? [n, o, a] = [0, t, i] : s < 240 ? [n, o, a] = [0, i, t] : s < 300 ? [n, o, a] = [i, 0, t] : [n, o, a] = [t, 0, i], {
1024
+ r: (n + e) * 255,
1025
+ g: (o + e) * 255,
1026
+ b: (a + e) * 255
1027
+ };
1028
+ }
1029
+ static resolveAlpha(s, t) {
1030
+ return Number.isFinite(s) ? this.clamp(s, 0, 1) : t;
1031
+ }
1032
+ static toRoundedRgbString(s, t, e) {
1033
+ return `rgb(${Math.round(s)}, ${Math.round(t)}, ${Math.round(e)})`;
1034
+ }
1035
+ /**
1036
+ * HSL 转 RGB。
1037
+ * h: 0-360, s/l: 0-100
1038
+ */
1039
+ static hslToRgb(s, t, e) {
1040
+ const i = this.normalizeHue(s), n = this.clamp(t, 0, 100) / 100, o = this.clamp(e, 0, 100) / 100, a = (1 - Math.abs(2 * o - 1)) * n, l = o - a / 2;
1041
+ return this.chromaToRgb(i, a, l);
1042
+ }
1043
+ /**
1044
+ * HSV 转 RGB。
1045
+ * h: 0-360, s/v: 0-100
1046
+ */
1047
+ static hsvToRgb(s, t, e) {
1048
+ const i = this.normalizeHue(s), n = this.clamp(t, 0, 100) / 100, o = this.clamp(e, 0, 100) / 100, a = o * n, l = o - a;
1049
+ return this.chromaToRgb(i, a, l);
1050
+ }
1051
+ /**
1052
+ * 解析任意受支持的颜色格式并标准化为 RGBA。
1053
+ */
1054
+ static parseColor(s) {
1055
+ const t = s.trim().toLowerCase();
1056
+ if (t.startsWith("#")) {
1057
+ const o = t.slice(1);
1058
+ if (o.length === 3 || o.length === 4) {
1059
+ const [a, l, c, h = "f"] = o.split("");
1060
+ return {
1061
+ r: parseInt(`${a}${a}`, 16),
1062
+ g: parseInt(`${l}${l}`, 16),
1063
+ b: parseInt(`${c}${c}`, 16),
1064
+ a: parseInt(`${h}${h}`, 16) / 255
1065
+ };
1066
+ }
1067
+ if (o.length === 6 || o.length === 8) {
1068
+ const a = parseInt(o.slice(0, 2), 16), l = parseInt(o.slice(2, 4), 16), c = parseInt(o.slice(4, 6), 16), h = o.length === 8 ? parseInt(o.slice(6, 8), 16) / 255 : this.DEFAULT_ALPHA;
1069
+ return { r: a, g: l, b: c, a: h };
1070
+ }
1071
+ }
1072
+ const e = t.match(/^rgba?\(([^)]+)\)$/);
1073
+ if (e) {
1074
+ const o = e[1].split(",").map((a) => a.trim());
1075
+ if (o.length >= 3) {
1076
+ const a = this.clamp(Number(o[0]), 0, 255), l = this.clamp(Number(o[1]), 0, 255), c = this.clamp(Number(o[2]), 0, 255), h = o.length >= 4 ? this.clamp(Number(o[3]), 0, 1) : this.DEFAULT_ALPHA;
1077
+ return { r: a, g: l, b: c, a: h };
1078
+ }
1079
+ }
1080
+ const i = t.match(/^hsl\(([^)]+)\)$/);
1081
+ if (i) {
1082
+ const o = i[1].split(",").map((a) => a.trim().replace("%", ""));
1083
+ if (o.length >= 3) {
1084
+ const a = Number(o[0]), l = Number(o[1]), c = Number(o[2]);
1085
+ return { ...this.hslToRgb(a, l, c), a: this.DEFAULT_ALPHA };
1086
+ }
1087
+ }
1088
+ const n = t.match(/^hsv\(([^)]+)\)$/);
1089
+ if (n) {
1090
+ const o = n[1].split(",").map((a) => a.trim().replace("%", ""));
1091
+ if (o.length >= 3) {
1092
+ const a = Number(o[0]), l = Number(o[1]), c = Number(o[2]);
1093
+ return { ...this.hsvToRgb(a, l, c), a: this.DEFAULT_ALPHA };
1094
+ }
1095
+ }
1096
+ return console.error("Invalid color format", s), { r: 0, g: 0, b: 0, a: this.DEFAULT_ALPHA };
1097
+ }
1098
+ /**
1099
+ * 十进制颜色分量转两位十六进制字符串。
1100
+ */
1101
+ static toHexPart(s) {
1102
+ return Math.round(this.clamp(s, 0, 255)).toString(16).padStart(2, "0");
1103
+ }
1104
+ /**
1105
+ * RGB 转 HSL。
1106
+ * 返回 h:0-360, s/l:0-100
1107
+ */
1108
+ static rgbToHsl(s, t, e) {
1109
+ const i = this.clamp(s, 0, 255) / 255, n = this.clamp(t, 0, 255) / 255, o = this.clamp(e, 0, 255) / 255, a = Math.max(i, n, o), l = Math.min(i, n, o), c = a - l;
1110
+ let h = 0;
1111
+ c !== 0 && (a === i ? h = 60 * ((n - o) / c % 6) : a === n ? h = 60 * ((o - i) / c + 2) : h = 60 * ((i - n) / c + 4)), h < 0 && (h += 360);
1112
+ const u = (a + l) / 2, f = c === 0 ? 0 : c / (1 - Math.abs(2 * u - 1));
1113
+ return { h, s: f * 100, l: u * 100 };
1114
+ }
1115
+ /**
1116
+ * RGB 转 HSV。
1117
+ * 返回 h:0-360, s/v:0-100
1118
+ */
1119
+ static rgbToHsv(s, t, e) {
1120
+ const i = this.clamp(s, 0, 255) / 255, n = this.clamp(t, 0, 255) / 255, o = this.clamp(e, 0, 255) / 255, a = Math.max(i, n, o), l = Math.min(i, n, o), c = a - l;
1121
+ let h = 0;
1122
+ c !== 0 && (a === i ? h = 60 * ((n - o) / c % 6) : a === n ? h = 60 * ((o - i) / c + 2) : h = 60 * ((i - n) / c + 4)), h < 0 && (h += 360);
1123
+ const u = a === 0 ? 0 : c / a, f = a;
1124
+ return { h, s: u * 100, v: f * 100 };
1125
+ }
1126
+ /**
1127
+ * 转换为 HEX(#RRGGBB)。
1128
+ */
1129
+ static toHex(s) {
1130
+ const { r: t, g: e, b: i } = this.parseColor(s);
1131
+ return `#${this.toHexPart(t)}${this.toHexPart(e)}${this.toHexPart(i)}`;
1132
+ }
1133
+ /**
1134
+ * 转换为 HEXA(#RRGGBBAA)。
1135
+ * alpha 不传时保留输入颜色中的透明度(默认 1)。
1136
+ */
1137
+ static toHexa(s, t) {
1138
+ const { r: e, g: i, b: n, a: o } = this.parseColor(s), a = this.resolveAlpha(t, o);
1139
+ return `#${this.toHexPart(e)}${this.toHexPart(i)}${this.toHexPart(n)}${this.toHexPart(a * 255)}`;
1140
+ }
1141
+ /**
1142
+ * 转换为 RGB(rgb(r, g, b))。
1143
+ */
1144
+ static toRgb(s) {
1145
+ const { r: t, g: e, b: i } = this.parseColor(s);
1146
+ return this.toRoundedRgbString(t, e, i);
1147
+ }
1148
+ /**
1149
+ * 转换为 RGBA(rgba(r, g, b, a))。
1150
+ * alpha 不传时保留输入颜色中的透明度(默认 1)。
1151
+ */
1152
+ static toRgba(s, t) {
1153
+ const e = this.parseColor(s), i = this.resolveAlpha(t, e.a);
1154
+ return `rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${i})`;
1155
+ }
1156
+ /**
1157
+ * 转换为 HSL(hsl(h, s%, l%))。
1158
+ */
1159
+ static toHsl(s) {
1160
+ const { r: t, g: e, b: i } = this.parseColor(s), { h: n, s: o, l: a } = this.rgbToHsl(t, e, i);
1161
+ return `hsl(${Math.round(n)}, ${Math.round(o)}%, ${Math.round(a)}%)`;
1162
+ }
1163
+ /**
1164
+ * 转换为 HSLA(hsla(h, s%, l%, a))。
1165
+ * alpha 不传时保留输入颜色中的透明度(默认 1)。
1166
+ */
1167
+ static toHsla(s, t) {
1168
+ const e = this.parseColor(s), { h: i, s: n, l: o } = this.rgbToHsl(e.r, e.g, e.b), a = this.resolveAlpha(t, e.a);
1169
+ return `hsla(${Math.round(i)}, ${Math.round(n)}%, ${Math.round(o)}%, ${a})`;
1170
+ }
1171
+ /**
1172
+ * 转换为 HSV(hsv(h, s%, v%))。
1173
+ */
1174
+ static toHsv(s) {
1175
+ const { r: t, g: e, b: i } = this.parseColor(s), { h: n, s: o, v: a } = this.rgbToHsv(t, e, i);
1176
+ return `hsv(${Math.round(n)}, ${Math.round(o)}%, ${Math.round(a)}%)`;
1177
+ }
1178
+ /**
1179
+ * 转换为 HSVA(hsva(h, s%, v%, a))。
1180
+ * alpha 不传时保留输入颜色中的透明度(默认 1)。
1181
+ */
1182
+ static toHsva(s, t) {
1183
+ const e = this.parseColor(s), { h: i, s: n, v: o } = this.rgbToHsv(e.r, e.g, e.b), a = this.resolveAlpha(t, e.a);
1184
+ return `hsva(${Math.round(i)}, ${Math.round(n)}%, ${Math.round(o)}%, ${a})`;
1185
+ }
1186
+ }
1187
+ d(ri, "DEFAULT_ALPHA", 1);
1005
1188
  var yt = /* @__PURE__ */ ((r) => (r.RESPONSE = "response", r.QUERY = "query", r))(yt || {});
1006
- class on {
1189
+ class an {
1007
1190
  constructor(s, t) {
1008
1191
  /** 音效资源地址映射(preload 成功后对应项会替换为 blob: URL) */
1009
1192
  d(this, "soundSources");
@@ -1097,7 +1280,7 @@ function Ce(r, s) {
1097
1280
  for (const t of Object.keys(s))
1098
1281
  s[t] !== void 0 && (r[t] = s[t]);
1099
1282
  }
1100
- class an {
1283
+ class ln {
1101
1284
  constructor(s) {
1102
1285
  /** WebSocket地址 */
1103
1286
  d(this, "url");
@@ -1189,7 +1372,7 @@ class an {
1189
1372
  (s = this.socket) == null || s.close(), this.socket = void 0;
1190
1373
  }
1191
1374
  }
1192
- function ln(r, s = 10) {
1375
+ function cn(r, s = 10) {
1193
1376
  let t = 0, e = s;
1194
1377
  function i() {
1195
1378
  if (e > 0)
@@ -1203,7 +1386,7 @@ function ln(r, s = 10) {
1203
1386
  t = Date.now(), i();
1204
1387
  });
1205
1388
  }
1206
- function cn(r) {
1389
+ function hn(r) {
1207
1390
  const s = () => Promise.resolve(), t = (a) => (console.error(a), Promise.reject(a));
1208
1391
  function e() {
1209
1392
  return navigator.clipboard.writeText(r).then(s).catch(t);
@@ -1230,8 +1413,8 @@ function cn(r) {
1230
1413
  }
1231
1414
  return navigator.clipboard ? e().catch(o) : o();
1232
1415
  }
1233
- function hn(r, s) {
1234
- const t = Re[r];
1416
+ function un(r, s) {
1417
+ const t = De[r];
1235
1418
  if (!t) return console.error(`未知纸张类型: ${r}`);
1236
1419
  const { width: e, height: i } = t, n = (p) => p / 25.4, a = typeof window < "u" ? window.devicePixelRatio * 96 : 300, l = (p) => Math.round(n(p) * a), c = l(e), h = l(i), u = l(s), f = Math.max(0, c - 2 * u), m = Math.max(0, h - 2 * u);
1237
1420
  return {
@@ -1343,7 +1526,7 @@ d(Nt, "timeout", 150), /**
1343
1526
  * @param callback 匹配标签页的回调函数
1344
1527
  */
1345
1528
  d(Nt, "pendingQueries", /* @__PURE__ */ new Map());
1346
- class un {
1529
+ class dn {
1347
1530
  constructor() {
1348
1531
  /** 用户状态:active(活跃) / idle(闲置) */
1349
1532
  d(this, "status", "active");
@@ -1392,7 +1575,7 @@ class un {
1392
1575
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
1393
1576
  * MIT Licence
1394
1577
  */
1395
- var de = 9e15, ut = 1e9, fe = "0123456789abcdef", $t = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Zt = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", me = {
1578
+ var de = 9e15, ut = 1e9, fe = "0123456789abcdef", qt = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Zt = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", me = {
1396
1579
  // These values must be integers within the stated ranges (inclusive).
1397
1580
  // Most of these values can be changed at run-time using the `Decimal.config` method.
1398
1581
  // The maximum number of significant digits of the result of a calculation or base conversion.
@@ -1450,7 +1633,7 @@ var de = 9e15, ut = 1e9, fe = "0123456789abcdef", $t = "2.3025850929940456840179
1450
1633
  // Whether to use cryptographically-secure random number generation, if available.
1451
1634
  crypto: !1
1452
1635
  // true/false
1453
- }, Te, nt, E = !0, ee = "[DecimalError] ", ht = ee + "Invalid argument: ", Ie = ee + "Precision limit exceeded", Ne = ee + "crypto unavailable", He = "[object Decimal]", F = Math.floor, I = Math.pow, ri = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, oi = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, ai = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, Fe = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Q = 1e7, S = 7, li = 9007199254740991, ci = $t.length - 1, ge = Zt.length - 1, v = { toStringTag: He };
1636
+ }, Te, nt, E = !0, ee = "[DecimalError] ", ht = ee + "Invalid argument: ", Ie = ee + "Precision limit exceeded", Ne = ee + "crypto unavailable", He = "[object Decimal]", F = Math.floor, I = Math.pow, oi = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, ai = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, li = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, Fe = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Q = 1e7, S = 7, ci = 9007199254740991, hi = qt.length - 1, ge = Zt.length - 1, v = { toStringTag: He };
1454
1637
  v.absoluteValue = v.abs = function() {
1455
1638
  var r = new this.constructor(this);
1456
1639
  return r.s < 0 && (r.s = 1), C(r);
@@ -1477,7 +1660,7 @@ v.comparedTo = v.cmp = function(r) {
1477
1660
  };
1478
1661
  v.cosine = v.cos = function() {
1479
1662
  var r, s, t = this, e = t.constructor;
1480
- return t.d ? t.d[0] ? (r = e.precision, s = e.rounding, e.precision = r + Math.max(t.e, t.sd()) + S, e.rounding = 1, t = hi(e, Xe(e, t)), e.precision = r, e.rounding = s, C(nt == 2 || nt == 3 ? t.neg() : t, r, s, !0)) : new e(1) : new e(NaN);
1663
+ return t.d ? t.d[0] ? (r = e.precision, s = e.rounding, e.precision = r + Math.max(t.e, t.sd()) + S, e.rounding = 1, t = ui(e, Xe(e, t)), e.precision = r, e.rounding = s, C(nt == 2 || nt == 3 ? t.neg() : t, r, s, !0)) : new e(1) : new e(NaN);
1481
1664
  };
1482
1665
  v.cubeRoot = v.cbrt = function() {
1483
1666
  var r, s, t, e, i, n, o, a, l, c, h = this, u = h.constructor;
@@ -1528,7 +1711,7 @@ v.hyperbolicCosine = v.cosh = function() {
1528
1711
  var r, s, t, e, i, n = this, o = n.constructor, a = new o(1);
1529
1712
  if (!n.isFinite()) return new o(n.s ? 1 / 0 : NaN);
1530
1713
  if (n.isZero()) return a;
1531
- t = o.precision, e = o.rounding, o.precision = t + Math.max(n.e, n.sd()) + 4, o.rounding = 1, i = n.d.length, i < 32 ? (r = Math.ceil(i / 3), s = (1 / se(4, r)).toString()) : (r = 16, s = "2.3283064365386962890625e-10"), n = Mt(o, 1, n.times(s), new o(1), !0);
1714
+ t = o.precision, e = o.rounding, o.precision = t + Math.max(n.e, n.sd()) + 4, o.rounding = 1, i = n.d.length, i < 32 ? (r = Math.ceil(i / 3), s = (1 / se(4, r)).toString()) : (r = 16, s = "2.3283064365386962890625e-10"), n = _t(o, 1, n.times(s), new o(1), !0);
1532
1715
  for (var l, c = r, h = new o(8); c--; )
1533
1716
  l = n.times(n), n = a.minus(l.times(h.minus(l.times(h))));
1534
1717
  return C(n, o.precision = t, o.rounding = e, !0);
@@ -1537,9 +1720,9 @@ v.hyperbolicSine = v.sinh = function() {
1537
1720
  var r, s, t, e, i = this, n = i.constructor;
1538
1721
  if (!i.isFinite() || i.isZero()) return new n(i);
1539
1722
  if (s = n.precision, t = n.rounding, n.precision = s + Math.max(i.e, i.sd()) + 4, n.rounding = 1, e = i.d.length, e < 3)
1540
- i = Mt(n, 2, i, i, !0);
1723
+ i = _t(n, 2, i, i, !0);
1541
1724
  else {
1542
- r = 1.4 * Math.sqrt(e), r = r > 16 ? 16 : r | 0, i = i.times(1 / se(5, r)), i = Mt(n, 2, i, i, !0);
1725
+ r = 1.4 * Math.sqrt(e), r = r > 16 ? 16 : r | 0, i = i.times(1 / se(5, r)), i = _t(n, 2, i, i, !0);
1543
1726
  for (var o, a = new n(5), l = new n(16), c = new n(20); r--; )
1544
1727
  o = i.times(i), i = i.times(a.plus(o.times(l.times(o).plus(c))));
1545
1728
  }
@@ -1705,7 +1888,7 @@ v.plus = v.add = function(r) {
1705
1888
  v.precision = v.sd = function(r) {
1706
1889
  var s, t = this;
1707
1890
  if (r !== void 0 && r !== !!r && r !== 1 && r !== 0) throw Error(ht + r);
1708
- return t.d ? (s = Be(t.d), r && t.e + 1 > s && (s = t.e + 1)) : s = NaN, s;
1891
+ return t.d ? (s = ze(t.d), r && t.e + 1 > s && (s = t.e + 1)) : s = NaN, s;
1709
1892
  };
1710
1893
  v.round = function() {
1711
1894
  var r = this, s = r.constructor;
@@ -1713,7 +1896,7 @@ v.round = function() {
1713
1896
  };
1714
1897
  v.sine = v.sin = function() {
1715
1898
  var r, s, t = this, e = t.constructor;
1716
- return t.isFinite() ? t.isZero() ? new e(t) : (r = e.precision, s = e.rounding, e.precision = r + Math.max(t.e, t.sd()) + S, e.rounding = 1, t = di(e, Xe(e, t)), e.precision = r, e.rounding = s, C(nt > 2 ? t.neg() : t, r, s, !0)) : new e(NaN);
1899
+ return t.isFinite() ? t.isZero() ? new e(t) : (r = e.precision, s = e.rounding, e.precision = r + Math.max(t.e, t.sd()) + S, e.rounding = 1, t = fi(e, Xe(e, t)), e.precision = r, e.rounding = s, C(nt > 2 ? t.neg() : t, r, s, !0)) : new e(NaN);
1717
1900
  };
1718
1901
  v.squareRoot = v.sqrt = function() {
1719
1902
  var r, s, t, e, i, n, o = this, a = o.d, l = o.e, c = o.s, h = o.constructor;
@@ -1755,20 +1938,20 @@ v.toBinary = function(r, s) {
1755
1938
  };
1756
1939
  v.toDecimalPlaces = v.toDP = function(r, s) {
1757
1940
  var t = this, e = t.constructor;
1758
- return t = new e(t), r === void 0 ? t : (G(r, 0, ut), s === void 0 ? s = e.rounding : G(s, 0, 8), C(t, r + t.e + 1, s));
1941
+ return t = new e(t), r === void 0 ? t : (U(r, 0, ut), s === void 0 ? s = e.rounding : U(s, 0, 8), C(t, r + t.e + 1, s));
1759
1942
  };
1760
1943
  v.toExponential = function(r, s) {
1761
1944
  var t, e = this, i = e.constructor;
1762
- return r === void 0 ? t = et(e, !0) : (G(r, 0, ut), s === void 0 ? s = i.rounding : G(s, 0, 8), e = C(new i(e), r + 1, s), t = et(e, !0, r + 1)), e.isNeg() && !e.isZero() ? "-" + t : t;
1945
+ return r === void 0 ? t = et(e, !0) : (U(r, 0, ut), s === void 0 ? s = i.rounding : U(s, 0, 8), e = C(new i(e), r + 1, s), t = et(e, !0, r + 1)), e.isNeg() && !e.isZero() ? "-" + t : t;
1763
1946
  };
1764
1947
  v.toFixed = function(r, s) {
1765
1948
  var t, e, i = this, n = i.constructor;
1766
- return r === void 0 ? t = et(i) : (G(r, 0, ut), s === void 0 ? s = n.rounding : G(s, 0, 8), e = C(new n(i), r + i.e + 1, s), t = et(e, !1, r + e.e + 1)), i.isNeg() && !i.isZero() ? "-" + t : t;
1949
+ return r === void 0 ? t = et(i) : (U(r, 0, ut), s === void 0 ? s = n.rounding : U(s, 0, 8), e = C(new n(i), r + i.e + 1, s), t = et(e, !1, r + e.e + 1)), i.isNeg() && !i.isZero() ? "-" + t : t;
1767
1950
  };
1768
1951
  v.toFraction = function(r) {
1769
1952
  var s, t, e, i, n, o, a, l, c, h, u, f, m = this, p = m.d, g = m.constructor;
1770
1953
  if (!p) return new g(m);
1771
- if (c = t = new g(1), e = l = new g(0), s = new g(e), n = s.e = Be(p) - m.e - 1, o = n % S, s.d[0] = I(10, o < 0 ? S + o : o), r == null)
1954
+ if (c = t = new g(1), e = l = new g(0), s = new g(e), n = s.e = ze(p) - m.e - 1, o = n % S, s.d[0] = I(10, o < 0 ? S + o : o), r == null)
1772
1955
  r = n > 0 ? s : c;
1773
1956
  else {
1774
1957
  if (a = new g(r), !a.isInt() || a.lt(c)) throw Error(ht + a);
@@ -1787,7 +1970,7 @@ v.toNearest = function(r, s) {
1787
1970
  if (!t.d) return t;
1788
1971
  r = new e(1), s = e.rounding;
1789
1972
  } else {
1790
- if (r = new e(r), s === void 0 ? s = e.rounding : G(s, 0, 8), !t.d) return r.s ? t : r;
1973
+ if (r = new e(r), s === void 0 ? s = e.rounding : U(s, 0, 8), !t.d) return r.s ? t : r;
1791
1974
  if (!r.d)
1792
1975
  return r.s && (r.s = t.s), r;
1793
1976
  }
@@ -1804,8 +1987,8 @@ v.toPower = v.pow = function(r) {
1804
1987
  if (!a.d || !r.d || !a.d[0] || !r.d[0]) return new l(I(+a, c));
1805
1988
  if (a = new l(a), a.eq(1)) return a;
1806
1989
  if (e = l.precision, n = l.rounding, r.eq(1)) return C(a, e, n);
1807
- if (s = F(r.e / S), s >= r.d.length - 1 && (t = c < 0 ? -c : c) <= li)
1808
- return i = ze(l, a, t, e), r.s < 0 ? new l(1).div(i) : C(i, e, n);
1990
+ if (s = F(r.e / S), s >= r.d.length - 1 && (t = c < 0 ? -c : c) <= ci)
1991
+ return i = Be(l, a, t, e), r.s < 0 ? new l(1).div(i) : C(i, e, n);
1809
1992
  if (o = a.s, o < 0) {
1810
1993
  if (s < r.d.length - 1) return new l(NaN);
1811
1994
  if (r.d[s] & 1 || (o = 1), a.e == 0 && a.d[0] == 1 && a.d.length == 1)
@@ -1815,11 +1998,11 @@ v.toPower = v.pow = function(r) {
1815
1998
  };
1816
1999
  v.toPrecision = function(r, s) {
1817
2000
  var t, e = this, i = e.constructor;
1818
- return r === void 0 ? t = et(e, e.e <= i.toExpNeg || e.e >= i.toExpPos) : (G(r, 1, ut), s === void 0 ? s = i.rounding : G(s, 0, 8), e = C(new i(e), r, s), t = et(e, r <= e.e || e.e <= i.toExpNeg, r)), e.isNeg() && !e.isZero() ? "-" + t : t;
2001
+ return r === void 0 ? t = et(e, e.e <= i.toExpNeg || e.e >= i.toExpPos) : (U(r, 1, ut), s === void 0 ? s = i.rounding : U(s, 0, 8), e = C(new i(e), r, s), t = et(e, r <= e.e || e.e <= i.toExpNeg, r)), e.isNeg() && !e.isZero() ? "-" + t : t;
1819
2002
  };
1820
2003
  v.toSignificantDigits = v.toSD = function(r, s) {
1821
2004
  var t = this, e = t.constructor;
1822
- return r === void 0 ? (r = e.precision, s = e.rounding) : (G(r, 1, ut), s === void 0 ? s = e.rounding : G(s, 0, 8)), C(new e(t), r, s);
2005
+ return r === void 0 ? (r = e.precision, s = e.rounding) : (U(r, 1, ut), s === void 0 ? s = e.rounding : U(s, 0, 8)), C(new e(t), r, s);
1823
2006
  };
1824
2007
  v.toString = function() {
1825
2008
  var r = this, s = r.constructor, t = et(r, r.e <= s.toExpNeg || r.e >= s.toExpPos);
@@ -1843,7 +2026,7 @@ function N(r) {
1843
2026
  for (; o % 10 === 0; ) o /= 10;
1844
2027
  return n + o;
1845
2028
  }
1846
- function G(r, s, t) {
2029
+ function U(r, s, t) {
1847
2030
  if (r !== ~~r || r < s || r > t)
1848
2031
  throw Error(ht + r);
1849
2032
  }
@@ -1860,10 +2043,10 @@ function Ft(r, s, t) {
1860
2043
  }
1861
2044
  return i.reverse();
1862
2045
  }
1863
- function hi(r, s) {
2046
+ function ui(r, s) {
1864
2047
  var t, e, i;
1865
2048
  if (s.isZero()) return s;
1866
- e = s.d.length, e < 32 ? (t = Math.ceil(e / 3), i = (1 / se(4, t)).toString()) : (t = 16, i = "2.3283064365386962890625e-10"), r.precision += t, s = Mt(r, 1, s.times(i), new r(1));
2049
+ e = s.d.length, e < 32 ? (t = Math.ceil(e / 3), i = (1 / se(4, t)).toString()) : (t = 16, i = "2.3283064365386962890625e-10"), r.precision += t, s = _t(r, 1, s.times(i), new r(1));
1867
2050
  for (var n = t; n--; ) {
1868
2051
  var o = s.times(s);
1869
2052
  s = o.times(o).minus(o).times(8).plus(1);
@@ -1895,29 +2078,29 @@ var V = /* @__PURE__ */ function() {
1895
2078
  for (; !e[0] && e.length > 1; ) e.shift();
1896
2079
  }
1897
2080
  return function(e, i, n, o, a, l) {
1898
- var c, h, u, f, m, p, g, y, w, P, b, _, A, U, At, dt, rt, vt, X, Lt, Tt = e.constructor, ne = e.s == i.s ? 1 : -1, H = e.d, O = i.d;
1899
- if (!H || !H[0] || !O || !O[0])
2081
+ var c, h, u, f, m, p, g, y, w, P, b, M, O, G, Ot, dt, rt, vt, X, Lt, Tt = e.constructor, ne = e.s == i.s ? 1 : -1, H = e.d, A = i.d;
2082
+ if (!H || !H[0] || !A || !A[0])
1900
2083
  return new Tt(
1901
2084
  // Return NaN if either NaN, or both Infinity or 0.
1902
- !e.s || !i.s || (H ? O && H[0] == O[0] : !O) ? NaN : (
2085
+ !e.s || !i.s || (H ? A && H[0] == A[0] : !A) ? NaN : (
1903
2086
  // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
1904
- H && H[0] == 0 || !O ? ne * 0 : ne / 0
2087
+ H && H[0] == 0 || !A ? ne * 0 : ne / 0
1905
2088
  )
1906
2089
  );
1907
- for (l ? (m = 1, h = e.e - i.e) : (l = Q, m = S, h = F(e.e / m) - F(i.e / m)), X = O.length, rt = H.length, w = new Tt(ne), P = w.d = [], u = 0; O[u] == (H[u] || 0); u++) ;
1908
- if (O[u] > (H[u] || 0) && h--, n == null ? (U = n = Tt.precision, o = Tt.rounding) : a ? U = n + (e.e - i.e) + 1 : U = n, U < 0)
2090
+ for (l ? (m = 1, h = e.e - i.e) : (l = Q, m = S, h = F(e.e / m) - F(i.e / m)), X = A.length, rt = H.length, w = new Tt(ne), P = w.d = [], u = 0; A[u] == (H[u] || 0); u++) ;
2091
+ if (A[u] > (H[u] || 0) && h--, n == null ? (G = n = Tt.precision, o = Tt.rounding) : a ? G = n + (e.e - i.e) + 1 : G = n, G < 0)
1909
2092
  P.push(1), p = !0;
1910
2093
  else {
1911
- if (U = U / m + 2 | 0, u = 0, X == 1) {
1912
- for (f = 0, O = O[0], U++; (u < rt || f) && U--; u++)
1913
- At = f * l + (H[u] || 0), P[u] = At / O | 0, f = At % O | 0;
2094
+ if (G = G / m + 2 | 0, u = 0, X == 1) {
2095
+ for (f = 0, A = A[0], G++; (u < rt || f) && G--; u++)
2096
+ Ot = f * l + (H[u] || 0), P[u] = Ot / A | 0, f = Ot % A | 0;
1914
2097
  p = f || u < rt;
1915
2098
  } else {
1916
- for (f = l / (O[0] + 1) | 0, f > 1 && (O = r(O, f, l), H = r(H, f, l), X = O.length, rt = H.length), dt = X, b = H.slice(0, X), _ = b.length; _ < X; ) b[_++] = 0;
1917
- Lt = O.slice(), Lt.unshift(0), vt = O[0], O[1] >= l / 2 && ++vt;
2099
+ for (f = l / (A[0] + 1) | 0, f > 1 && (A = r(A, f, l), H = r(H, f, l), X = A.length, rt = H.length), dt = X, b = H.slice(0, X), M = b.length; M < X; ) b[M++] = 0;
2100
+ Lt = A.slice(), Lt.unshift(0), vt = A[0], A[1] >= l / 2 && ++vt;
1918
2101
  do
1919
- f = 0, c = s(O, b, X, _), c < 0 ? (A = b[0], X != _ && (A = A * l + (b[1] || 0)), f = A / vt | 0, f > 1 ? (f >= l && (f = l - 1), g = r(O, f, l), y = g.length, _ = b.length, c = s(g, b, y, _), c == 1 && (f--, t(g, X < y ? Lt : O, y, l))) : (f == 0 && (c = f = 1), g = O.slice()), y = g.length, y < _ && g.unshift(0), t(b, g, _, l), c == -1 && (_ = b.length, c = s(O, b, X, _), c < 1 && (f++, t(b, X < _ ? Lt : O, _, l))), _ = b.length) : c === 0 && (f++, b = [0]), P[u++] = f, c && b[0] ? b[_++] = H[dt] || 0 : (b = [H[dt]], _ = 1);
1920
- while ((dt++ < rt || b[0] !== void 0) && U--);
2102
+ f = 0, c = s(A, b, X, M), c < 0 ? (O = b[0], X != M && (O = O * l + (b[1] || 0)), f = O / vt | 0, f > 1 ? (f >= l && (f = l - 1), g = r(A, f, l), y = g.length, M = b.length, c = s(g, b, y, M), c == 1 && (f--, t(g, X < y ? Lt : A, y, l))) : (f == 0 && (c = f = 1), g = A.slice()), y = g.length, y < M && g.unshift(0), t(b, g, M, l), c == -1 && (M = b.length, c = s(A, b, X, M), c < 1 && (f++, t(b, X < M ? Lt : A, M, l))), M = b.length) : c === 0 && (f++, b = [0]), P[u++] = f, c && b[0] ? b[M++] = H[dt] || 0 : (b = [H[dt]], M = 1);
2103
+ while ((dt++ < rt || b[0] !== void 0) && G--);
1921
2104
  p = b[0] !== void 0;
1922
2105
  }
1923
2106
  P[0] || P.shift();
@@ -1967,7 +2150,7 @@ function C(r, s, t, e) {
1967
2150
  return E && (r.e > m.maxE ? (r.d = null, r.e = NaN) : r.e < m.minE && (r.e = 0, r.d = [0])), r;
1968
2151
  }
1969
2152
  function et(r, s, t) {
1970
- if (!r.isFinite()) return Ue(r);
2153
+ if (!r.isFinite()) return Ge(r);
1971
2154
  var e, i = r.e, n = N(r.d), o = n.length;
1972
2155
  return s ? (t && (e = t - o) > 0 ? n = n.charAt(0) + "." + n.slice(1) + ot(e) : o > 1 && (n = n.charAt(0) + "." + n.slice(1)), n = n + (r.e < 0 ? "e" : "e+") + r.e) : i < 0 ? (n = "0." + ot(-i - 1) + n, t && (e = t - o) > 0 && (n += ot(e))) : i >= o ? (n += ot(i + 1 - o), t && (e = t - i - 1) > 0 && (n = n + "." + ot(e))) : ((e = i + 1) < o && (n = n.slice(0, e) + "." + n.slice(e)), t && (e = t - o) > 0 && (i + 1 === o && (n += "."), n += ot(e))), n;
1973
2156
  }
@@ -1977,15 +2160,15 @@ function ie(r, s) {
1977
2160
  return s;
1978
2161
  }
1979
2162
  function Qt(r, s, t) {
1980
- if (s > ci)
2163
+ if (s > hi)
1981
2164
  throw E = !0, t && (r.precision = t), Error(Ie);
1982
- return C(new r($t), s, 1, !0);
2165
+ return C(new r(qt), s, 1, !0);
1983
2166
  }
1984
2167
  function tt(r, s, t) {
1985
2168
  if (s > ge) throw Error(Ie);
1986
2169
  return C(new r(Zt), s, t, !0);
1987
2170
  }
1988
- function Be(r) {
2171
+ function ze(r) {
1989
2172
  var s = r.length - 1, t = s * S + 1;
1990
2173
  if (s = r[s], s) {
1991
2174
  for (; s % 10 == 0; s /= 10) t--;
@@ -1997,7 +2180,7 @@ function ot(r) {
1997
2180
  for (var s = ""; r--; ) s += "0";
1998
2181
  return s;
1999
2182
  }
2000
- function ze(r, s, t, e) {
2183
+ function Be(r, s, t, e) {
2001
2184
  var i, n = new r(1), o = Math.ceil(e / S + 4);
2002
2185
  for (E = !1; ; ) {
2003
2186
  if (t % 2 && (n = n.times(s), Ee(n.d, o) && (i = !0)), t = F(t / 2), t === 0) {
@@ -2011,7 +2194,7 @@ function ze(r, s, t, e) {
2011
2194
  function Se(r) {
2012
2195
  return r.d[r.d.length - 1] & 1;
2013
2196
  }
2014
- function Ge(r, s, t) {
2197
+ function Ue(r, s, t) {
2015
2198
  for (var e, i, n = new r(s[0]), o = 0; ++o < s.length; ) {
2016
2199
  if (i = new r(s[o]), !i.s) {
2017
2200
  n = i;
@@ -2063,10 +2246,10 @@ function at(r, s) {
2063
2246
  l = c, i += 2;
2064
2247
  }
2065
2248
  }
2066
- function Ue(r) {
2249
+ function Ge(r) {
2067
2250
  return String(r.s * r.s / 0);
2068
2251
  }
2069
- function Bt(r, s) {
2252
+ function zt(r, s) {
2070
2253
  var t, e, i;
2071
2254
  for ((t = s.indexOf(".")) > -1 && (s = s.replace(".", "")), (e = s.search(/e/i)) > 0 ? (t < 0 && (t = e), t += +s.slice(e + 1), s = s.substring(0, e)) : t < 0 && (t = s.length), e = 0; s.charCodeAt(e) === 48; e++) ;
2072
2255
  for (i = s.length; s.charCodeAt(i - 1) === 48; --i) ;
@@ -2082,33 +2265,33 @@ function Bt(r, s) {
2082
2265
  r.e = 0, r.d = [0];
2083
2266
  return r;
2084
2267
  }
2085
- function ui(r, s) {
2268
+ function di(r, s) {
2086
2269
  var t, e, i, n, o, a, l, c, h;
2087
2270
  if (s.indexOf("_") > -1) {
2088
- if (s = s.replace(/(\d)_(?=\d)/g, "$1"), Fe.test(s)) return Bt(r, s);
2271
+ if (s = s.replace(/(\d)_(?=\d)/g, "$1"), Fe.test(s)) return zt(r, s);
2089
2272
  } else if (s === "Infinity" || s === "NaN")
2090
2273
  return +s || (r.s = NaN), r.e = NaN, r.d = null, r;
2091
- if (oi.test(s))
2274
+ if (ai.test(s))
2092
2275
  t = 16, s = s.toLowerCase();
2093
- else if (ri.test(s))
2276
+ else if (oi.test(s))
2094
2277
  t = 2;
2095
- else if (ai.test(s))
2278
+ else if (li.test(s))
2096
2279
  t = 8;
2097
2280
  else
2098
2281
  throw Error(ht + s);
2099
- for (n = s.search(/p/i), n > 0 ? (l = +s.slice(n + 1), s = s.substring(2, n)) : s = s.slice(2), n = s.indexOf("."), o = n >= 0, e = r.constructor, o && (s = s.replace(".", ""), a = s.length, n = a - n, i = ze(e, new e(t), n, n * 2)), c = Ft(s, t, Q), h = c.length - 1, n = h; c[n] === 0; --n) c.pop();
2100
- return n < 0 ? new e(r.s * 0) : (r.e = ie(c, h), r.d = c, E = !1, o && (r = V(r, i, a * 4)), l && (r = r.times(Math.abs(l) < 54 ? I(2, l) : R.pow(2, l))), E = !0, r);
2282
+ for (n = s.search(/p/i), n > 0 ? (l = +s.slice(n + 1), s = s.substring(2, n)) : s = s.slice(2), n = s.indexOf("."), o = n >= 0, e = r.constructor, o && (s = s.replace(".", ""), a = s.length, n = a - n, i = Be(e, new e(t), n, n * 2)), c = Ft(s, t, Q), h = c.length - 1, n = h; c[n] === 0; --n) c.pop();
2283
+ return n < 0 ? new e(r.s * 0) : (r.e = ie(c, h), r.d = c, E = !1, o && (r = V(r, i, a * 4)), l && (r = r.times(Math.abs(l) < 54 ? I(2, l) : D.pow(2, l))), E = !0, r);
2101
2284
  }
2102
- function di(r, s) {
2285
+ function fi(r, s) {
2103
2286
  var t, e = s.d.length;
2104
2287
  if (e < 3)
2105
- return s.isZero() ? s : Mt(r, 2, s, s);
2106
- t = 1.4 * Math.sqrt(e), t = t > 16 ? 16 : t | 0, s = s.times(1 / se(5, t)), s = Mt(r, 2, s, s);
2288
+ return s.isZero() ? s : _t(r, 2, s, s);
2289
+ t = 1.4 * Math.sqrt(e), t = t > 16 ? 16 : t | 0, s = s.times(1 / se(5, t)), s = _t(r, 2, s, s);
2107
2290
  for (var i, n = new r(5), o = new r(16), a = new r(20); t--; )
2108
2291
  i = s.times(s), s = s.times(n.plus(i.times(o.times(i).minus(a))));
2109
2292
  return s;
2110
2293
  }
2111
- function Mt(r, s, t, e, i) {
2294
+ function _t(r, s, t, e, i) {
2112
2295
  var n, o, a, l, c = r.precision, h = Math.ceil(c / S);
2113
2296
  for (E = !1, l = t.times(t), a = new r(e); ; ) {
2114
2297
  if (o = V(a.times(l), new r(s++ * s++), c, 1), a = i ? e.plus(o) : e.minus(o), e = V(o.times(l), new r(s++ * s++), c, 1), o = a.plus(e), o.d[h] !== void 0) {
@@ -2138,8 +2321,8 @@ function Xe(r, s) {
2138
2321
  }
2139
2322
  function ye(r, s, t, e) {
2140
2323
  var i, n, o, a, l, c, h, u, f, m = r.constructor, p = t !== void 0;
2141
- if (p ? (G(t, 1, ut), e === void 0 ? e = m.rounding : G(e, 0, 8)) : (t = m.precision, e = m.rounding), !r.isFinite())
2142
- h = Ue(r);
2324
+ if (p ? (U(t, 1, ut), e === void 0 ? e = m.rounding : U(e, 0, 8)) : (t = m.precision, e = m.rounding), !r.isFinite())
2325
+ h = Ge(r);
2143
2326
  else {
2144
2327
  for (h = et(r), o = h.indexOf("."), p ? (i = 2, s == 16 ? t = t * 4 - 3 : s == 8 && (t = t * 3 - 2)) : i = s, o >= 0 && (h = h.replace(".", ""), f = new m(1), f.e = h.length - o, f.d = Ft(et(f), 10, i), f.e = f.d.length), u = Ft(h, 10, i), n = l = u.length; u[--l] == 0; ) u.pop();
2145
2328
  if (!u[0])
@@ -2173,45 +2356,45 @@ function Ee(r, s) {
2173
2356
  if (r.length > s)
2174
2357
  return r.length = s, !0;
2175
2358
  }
2176
- function fi(r) {
2359
+ function mi(r) {
2177
2360
  return new this(r).abs();
2178
2361
  }
2179
- function mi(r) {
2362
+ function gi(r) {
2180
2363
  return new this(r).acos();
2181
2364
  }
2182
- function gi(r) {
2365
+ function pi(r) {
2183
2366
  return new this(r).acosh();
2184
2367
  }
2185
- function pi(r, s) {
2368
+ function vi(r, s) {
2186
2369
  return new this(r).plus(s);
2187
2370
  }
2188
- function vi(r) {
2371
+ function yi(r) {
2189
2372
  return new this(r).asin();
2190
2373
  }
2191
- function yi(r) {
2374
+ function wi(r) {
2192
2375
  return new this(r).asinh();
2193
2376
  }
2194
- function wi(r) {
2377
+ function xi(r) {
2195
2378
  return new this(r).atan();
2196
2379
  }
2197
- function xi(r) {
2380
+ function Pi(r) {
2198
2381
  return new this(r).atanh();
2199
2382
  }
2200
- function Pi(r, s) {
2383
+ function bi(r, s) {
2201
2384
  r = new this(r), s = new this(s);
2202
2385
  var t, e = this.precision, i = this.rounding, n = e + 4;
2203
2386
  return !r.s || !s.s ? t = new this(NaN) : !r.d && !s.d ? (t = tt(this, n, 1).times(s.s > 0 ? 0.25 : 0.75), t.s = r.s) : !s.d || r.isZero() ? (t = s.s < 0 ? tt(this, e, i) : new this(0), t.s = r.s) : !r.d || s.isZero() ? (t = tt(this, n, 1).times(0.5), t.s = r.s) : s.s < 0 ? (this.precision = n, this.rounding = 1, t = this.atan(V(r, s, n, 1)), s = tt(this, n, 1), this.precision = e, this.rounding = i, t = r.s < 0 ? t.minus(s) : t.plus(s)) : t = this.atan(V(r, s, n, 1)), t;
2204
2387
  }
2205
- function bi(r) {
2388
+ function Ci(r) {
2206
2389
  return new this(r).cbrt();
2207
2390
  }
2208
- function Ci(r) {
2391
+ function Si(r) {
2209
2392
  return C(r = new this(r), r.e + 1, 2);
2210
2393
  }
2211
- function Si(r, s, t) {
2394
+ function Ei(r, s, t) {
2212
2395
  return new this(r).clamp(s, t);
2213
2396
  }
2214
- function Ei(r) {
2397
+ function Mi(r) {
2215
2398
  if (!r || typeof r != "object") throw Error(ee + "Object expected");
2216
2399
  var s, t, e, i = r.defaults === !0, n = [
2217
2400
  "precision",
@@ -2256,7 +2439,7 @@ function Ei(r) {
2256
2439
  function _i(r) {
2257
2440
  return new this(r).cos();
2258
2441
  }
2259
- function Mi(r) {
2442
+ function Ri(r) {
2260
2443
  return new this(r).cosh();
2261
2444
  }
2262
2445
  function Ye(r) {
@@ -2264,7 +2447,7 @@ function Ye(r) {
2264
2447
  function i(n) {
2265
2448
  var o, a, l, c = this;
2266
2449
  if (!(c instanceof i)) return new i(n);
2267
- if (c.constructor = i, _e(n)) {
2450
+ if (c.constructor = i, Me(n)) {
2268
2451
  c.s = n.s, E ? !n.d || n.e > i.maxE ? (c.e = NaN, c.d = null) : n.e < i.minE ? (c.e = 0, c.d = [0]) : (c.e = n.e, c.d = n.d.slice()) : (c.e = n.e, c.d = n.d ? n.d.slice() : n.d);
2269
2452
  return;
2270
2453
  }
@@ -2282,28 +2465,28 @@ function Ye(r) {
2282
2465
  n || (c.s = NaN), c.e = NaN, c.d = null;
2283
2466
  return;
2284
2467
  }
2285
- return Bt(c, n.toString());
2468
+ return zt(c, n.toString());
2286
2469
  }
2287
2470
  if (l === "string")
2288
- return (a = n.charCodeAt(0)) === 45 ? (n = n.slice(1), c.s = -1) : (a === 43 && (n = n.slice(1)), c.s = 1), Fe.test(n) ? Bt(c, n) : ui(c, n);
2471
+ return (a = n.charCodeAt(0)) === 45 ? (n = n.slice(1), c.s = -1) : (a === 43 && (n = n.slice(1)), c.s = 1), Fe.test(n) ? zt(c, n) : di(c, n);
2289
2472
  if (l === "bigint")
2290
- return n < 0 ? (n = -n, c.s = -1) : c.s = 1, Bt(c, n.toString());
2473
+ return n < 0 ? (n = -n, c.s = -1) : c.s = 1, zt(c, n.toString());
2291
2474
  throw Error(ht + n);
2292
2475
  }
2293
- if (i.prototype = v, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = Ei, i.clone = Ye, i.isDecimal = _e, i.abs = fi, i.acos = mi, i.acosh = gi, i.add = pi, i.asin = vi, i.asinh = yi, i.atan = wi, i.atanh = xi, i.atan2 = Pi, i.cbrt = bi, i.ceil = Ci, i.clamp = Si, i.cos = _i, i.cosh = Mi, i.div = Di, i.exp = Ri, i.floor = ki, i.hypot = Vi, i.ln = Oi, i.log = Ai, i.log10 = Ti, i.log2 = Li, i.max = Ii, i.min = Ni, i.mod = Hi, i.mul = Fi, i.pow = Bi, i.random = zi, i.round = Gi, i.sign = Ui, i.sin = Xi, i.sinh = Yi, i.sqrt = ji, i.sub = Wi, i.sum = qi, i.tan = $i, i.tanh = Zi, i.trunc = Qi, r === void 0 && (r = {}), r && r.defaults !== !0)
2476
+ if (i.prototype = v, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = Mi, i.clone = Ye, i.isDecimal = Me, i.abs = mi, i.acos = gi, i.acosh = pi, i.add = vi, i.asin = yi, i.asinh = wi, i.atan = xi, i.atanh = Pi, i.atan2 = bi, i.cbrt = Ci, i.ceil = Si, i.clamp = Ei, i.cos = _i, i.cosh = Ri, i.div = Di, i.exp = ki, i.floor = Vi, i.hypot = Ai, i.ln = Oi, i.log = Li, i.log10 = Ii, i.log2 = Ti, i.max = Ni, i.min = Hi, i.mod = Fi, i.mul = zi, i.pow = Bi, i.random = Ui, i.round = Gi, i.sign = Xi, i.sin = Yi, i.sinh = ji, i.sqrt = Wi, i.sub = $i, i.sum = qi, i.tan = Zi, i.tanh = Qi, i.trunc = Ji, r === void 0 && (r = {}), r && r.defaults !== !0)
2294
2477
  for (e = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], s = 0; s < e.length; ) r.hasOwnProperty(t = e[s++]) || (r[t] = this[t]);
2295
2478
  return i.config(r), i;
2296
2479
  }
2297
2480
  function Di(r, s) {
2298
2481
  return new this(r).div(s);
2299
2482
  }
2300
- function Ri(r) {
2483
+ function ki(r) {
2301
2484
  return new this(r).exp();
2302
2485
  }
2303
- function ki(r) {
2486
+ function Vi(r) {
2304
2487
  return C(r = new this(r), r.e + 1, 3);
2305
2488
  }
2306
- function Vi() {
2489
+ function Ai() {
2307
2490
  var r, s, t = new this(0);
2308
2491
  for (E = !1, r = 0; r < arguments.length; )
2309
2492
  if (s = new this(arguments[r++]), s.d)
@@ -2315,39 +2498,39 @@ function Vi() {
2315
2498
  }
2316
2499
  return E = !0, t.sqrt();
2317
2500
  }
2318
- function _e(r) {
2319
- return r instanceof R || r && r.toStringTag === He || !1;
2501
+ function Me(r) {
2502
+ return r instanceof D || r && r.toStringTag === He || !1;
2320
2503
  }
2321
2504
  function Oi(r) {
2322
2505
  return new this(r).ln();
2323
2506
  }
2324
- function Ai(r, s) {
2507
+ function Li(r, s) {
2325
2508
  return new this(r).log(s);
2326
2509
  }
2327
- function Li(r) {
2510
+ function Ti(r) {
2328
2511
  return new this(r).log(2);
2329
2512
  }
2330
- function Ti(r) {
2513
+ function Ii(r) {
2331
2514
  return new this(r).log(10);
2332
2515
  }
2333
- function Ii() {
2334
- return Ge(this, arguments, -1);
2335
- }
2336
2516
  function Ni() {
2337
- return Ge(this, arguments, 1);
2517
+ return Ue(this, arguments, -1);
2338
2518
  }
2339
- function Hi(r, s) {
2340
- return new this(r).mod(s);
2519
+ function Hi() {
2520
+ return Ue(this, arguments, 1);
2341
2521
  }
2342
2522
  function Fi(r, s) {
2523
+ return new this(r).mod(s);
2524
+ }
2525
+ function zi(r, s) {
2343
2526
  return new this(r).mul(s);
2344
2527
  }
2345
2528
  function Bi(r, s) {
2346
2529
  return new this(r).pow(s);
2347
2530
  }
2348
- function zi(r) {
2531
+ function Ui(r) {
2349
2532
  var s, t, e, i, n = 0, o = new this(1), a = [];
2350
- if (r === void 0 ? r = this.precision : G(r, 1, ut), e = Math.ceil(r / S), this.crypto)
2533
+ if (r === void 0 ? r = this.precision : U(r, 1, ut), e = Math.ceil(r / S), this.crypto)
2351
2534
  if (crypto.getRandomValues)
2352
2535
  for (s = crypto.getRandomValues(new Uint32Array(e)); n < e; )
2353
2536
  i = s[n], i >= 429e7 ? s[n] = crypto.getRandomValues(new Uint32Array(1))[0] : a[n++] = i % 1e7;
@@ -2371,19 +2554,19 @@ function zi(r) {
2371
2554
  function Gi(r) {
2372
2555
  return C(r = new this(r), r.e + 1, this.rounding);
2373
2556
  }
2374
- function Ui(r) {
2557
+ function Xi(r) {
2375
2558
  return r = new this(r), r.d ? r.d[0] ? r.s : 0 * r.s : r.s || NaN;
2376
2559
  }
2377
- function Xi(r) {
2560
+ function Yi(r) {
2378
2561
  return new this(r).sin();
2379
2562
  }
2380
- function Yi(r) {
2563
+ function ji(r) {
2381
2564
  return new this(r).sinh();
2382
2565
  }
2383
- function ji(r) {
2566
+ function Wi(r) {
2384
2567
  return new this(r).sqrt();
2385
2568
  }
2386
- function Wi(r, s) {
2569
+ function $i(r, s) {
2387
2570
  return new this(r).sub(s);
2388
2571
  }
2389
2572
  function qi() {
@@ -2391,21 +2574,21 @@ function qi() {
2391
2574
  for (E = !1; t.s && ++r < s.length; ) t = t.plus(s[r]);
2392
2575
  return E = !0, C(t, this.precision, this.rounding);
2393
2576
  }
2394
- function $i(r) {
2577
+ function Zi(r) {
2395
2578
  return new this(r).tan();
2396
2579
  }
2397
- function Zi(r) {
2580
+ function Qi(r) {
2398
2581
  return new this(r).tanh();
2399
2582
  }
2400
- function Qi(r) {
2583
+ function Ji(r) {
2401
2584
  return C(r = new this(r), r.e + 1, 1);
2402
2585
  }
2403
2586
  v[Symbol.for("nodejs.util.inspect.custom")] = v.toString;
2404
2587
  v[Symbol.toStringTag] = "Decimal";
2405
- var R = v.constructor = Ye(me);
2406
- $t = new R($t);
2407
- Zt = new R(Zt);
2408
- class Ji {
2588
+ var D = v.constructor = Ye(me);
2589
+ qt = new D(qt);
2590
+ Zt = new D(Zt);
2591
+ class Ki {
2409
2592
  constructor() {
2410
2593
  /** 父级 */
2411
2594
  d(this, "parent");
@@ -2435,7 +2618,7 @@ class Ji {
2435
2618
  this.mainCanvas = s;
2436
2619
  }
2437
2620
  }
2438
- class Ki extends Ji {
2621
+ class ts extends Ki {
2439
2622
  constructor() {
2440
2623
  super(...arguments);
2441
2624
  d(this, "_isVisible", !0);
@@ -2481,12 +2664,12 @@ class Ki extends Ji {
2481
2664
  return !0;
2482
2665
  }
2483
2666
  }
2484
- let ts = class extends Ki {
2667
+ let es = class extends ts {
2485
2668
  constructor(s) {
2486
2669
  super(), s.name = s.name || ue("default-name-"), Object.assign(this, { ...s });
2487
2670
  }
2488
2671
  };
2489
- class es extends ts {
2672
+ class is extends es {
2490
2673
  constructor(t) {
2491
2674
  super(t);
2492
2675
  d(this, "_isInteractive", !0);
@@ -2565,7 +2748,7 @@ class es extends ts {
2565
2748
  return (this.parent ? this.parent[t] : !0) && e && (i ? this.isInteractive : !0);
2566
2749
  }
2567
2750
  }
2568
- class is {
2751
+ class ss {
2569
2752
  constructor(s) {
2570
2753
  d(this, "propagationStopped", !1);
2571
2754
  this.data = s;
@@ -2577,7 +2760,7 @@ class is {
2577
2760
  return !this.propagationStopped;
2578
2761
  }
2579
2762
  }
2580
- class Vt extends es {
2763
+ class Vt extends is {
2581
2764
  constructor() {
2582
2765
  super(...arguments);
2583
2766
  //#region 4. 添加事件管理器
@@ -2695,7 +2878,7 @@ class Vt extends es {
2695
2878
  var c, h;
2696
2879
  if (!this[n]) return;
2697
2880
  this.updateStates(t, e);
2698
- const o = new is(e);
2881
+ const o = new ss(e);
2699
2882
  this.listeners[t].forEach((u) => u(o, i));
2700
2883
  const a = "notify" + (t.charAt(0).toUpperCase() + t.slice(1)), l = ["notifyDragg", "notifyWheel"].includes(a) ? e : e.state;
2701
2884
  o.canPropagate && ((c = this.parent) == null || c[a](l, i)), (h = this.sharedControllers[t]) == null || h.forEach(
@@ -2751,7 +2934,7 @@ class Vt extends es {
2751
2934
  }
2752
2935
  //#region 6. 添加事件通知方法
2753
2936
  }
2754
- class ss extends Vt {
2937
+ class ns extends Vt {
2755
2938
  constructor(t) {
2756
2939
  super(t);
2757
2940
  /** 画布元素 */
@@ -2908,7 +3091,7 @@ class ss extends Vt {
2908
3091
  let l, c;
2909
3092
  t === "center" ? (l = a.left + a.width / 2, c = a.top + a.height / 2) : [l, c] = [t.clientX, t.clientY];
2910
3093
  const h = this.getMousePositionOnAxis({ clientX: l, clientY: c }), u = this.getAxisValueByPoint(h.x, h.y);
2911
- this.scale = new R(this.scale).add(e).toNumber(), this.isScaleUpdated = !0, this.updateSize();
3094
+ this.scale = new D(this.scale).add(e).toNumber(), this.isScaleUpdated = !0, this.updateSize();
2912
3095
  const f = this.getAxisPointByValue(
2913
3096
  u.xV,
2914
3097
  u.yV
@@ -2942,7 +3125,7 @@ class ss extends Vt {
2942
3125
  */
2943
3126
  getGridSize(t) {
2944
3127
  const { cycle: e, delta: i, axisConfig: n } = this;
2945
- let o = new R(t).sub(1).abs().mod(e * i).div(i).toNumber();
3128
+ let o = new D(t).sub(1).abs().mod(e * i).div(i).toNumber();
2946
3129
  return o = t < 1 && o != 0 ? e - o : o, Number(((o / e + 1) * n.min).toFixed(0));
2947
3130
  }
2948
3131
  /**
@@ -2954,11 +3137,11 @@ class ss extends Vt {
2954
3137
  const { axisConfig: e, cycle: i, delta: n } = this, o = e.count, a = i * n;
2955
3138
  if (t === 1) return o;
2956
3139
  if (t > 1) {
2957
- const l = new R(t).sub(1).div(a).floor();
2958
- return new R(o).div(new R(2).pow(l)).toNumber();
3140
+ const l = new D(t).sub(1).div(a).floor();
3141
+ return new D(o).div(new D(2).pow(l)).toNumber();
2959
3142
  } else {
2960
- const l = new R(1).sub(t).div(a).ceil();
2961
- return new R(o).mul(new R(2).pow(l)).toNumber();
3143
+ const l = new D(1).sub(t).div(a).ceil();
3144
+ return new D(o).mul(new D(2).pow(l)).toNumber();
2962
3145
  }
2963
3146
  }
2964
3147
  /** 获取每个网格表示的数字 */
@@ -2981,7 +3164,7 @@ class ss extends Vt {
2981
3164
  xV: t / n.min * n.count,
2982
3165
  yV: e / n.min * n.count
2983
3166
  };
2984
- const o = this.getNowGridCount, a = new R(t).div(n.size).mul(o).toFixed(8), l = new R(e).div(n.size).mul(o).toFixed(8);
3167
+ const o = this.getNowGridCount, a = new D(t).div(n.size).mul(o).toFixed(8), l = new D(e).div(n.size).mul(o).toFixed(8);
2985
3168
  return { xV: Number(a), yV: Number(l) };
2986
3169
  }
2987
3170
  /** 通过坐标轴上的值 获取坐标轴上的点 */
@@ -2992,7 +3175,7 @@ class ss extends Vt {
2992
3175
  x: t / n.count * n.min,
2993
3176
  y: e / n.count * n.min
2994
3177
  };
2995
- const o = this.getNowGridCount, a = new R(t).div(o).mul(n.size).toFixed(3), l = new R(e).div(o).mul(n.size).toFixed(3);
3178
+ const o = this.getNowGridCount, a = new D(t).div(o).mul(n.size).toFixed(3), l = new D(e).div(o).mul(n.size).toFixed(3);
2996
3179
  return { x: Number(a), y: Number(l) };
2997
3180
  }
2998
3181
  /** 获取最大/小的 值 */
@@ -3022,7 +3205,7 @@ class ss extends Vt {
3022
3205
  ) : l(t);
3023
3206
  }
3024
3207
  }
3025
- class ns extends ss {
3208
+ class rs extends ns {
3026
3209
  constructor(t) {
3027
3210
  super(t);
3028
3211
  /** 主题 */
@@ -3282,7 +3465,7 @@ class ns extends ss {
3282
3465
  t in this.style && (this.theme = t, this.isThemeUpdated = !0);
3283
3466
  }
3284
3467
  }
3285
- class D extends Vt {
3468
+ class R extends Vt {
3286
3469
  constructor(t) {
3287
3470
  t = { ...t }, t.isDraggable = t.isDraggable ?? !1;
3288
3471
  const { mainCanvas: e, notifyReload: i } = t;
@@ -3548,7 +3731,7 @@ class D extends Vt {
3548
3731
  handleValuePosition(t, e) {
3549
3732
  let { value: i, position: n, mainCanvas: o } = this;
3550
3733
  if (!o) return !1;
3551
- const a = t === "array1D" ? ve : qt, [l, c] = [
3734
+ const a = t === "array1D" ? ve : $t, [l, c] = [
3552
3735
  a(i) && (!e || i.length >= e),
3553
3736
  a(n) && (!e || n.length >= e)
3554
3737
  ], h = {
@@ -3605,8 +3788,8 @@ class D extends Vt {
3605
3788
  return this.isInteractive ? this.isDraggable ? "_nhanh_canvas_hover_overlay_draggable" : "_nhanh_canvas_hover_overlay" : void 0;
3606
3789
  }
3607
3790
  }
3608
- d(D, "ctx", document.createElement("canvas").getContext("2d"));
3609
- class zt extends D {
3791
+ d(R, "ctx", document.createElement("canvas").getContext("2d"));
3792
+ class Bt extends R {
3610
3793
  constructor(t) {
3611
3794
  super(t);
3612
3795
  d(this, "_draw");
@@ -3639,13 +3822,13 @@ class zt extends D {
3639
3822
  n[1],
3640
3823
  !0
3641
3824
  );
3642
- e.push([o.x, o.y]), n[0] != 0 ? i = new R(o.x).div(n[0]).toNumber() : n[1] != 0 && (i = new R(o.y).div(n[1]).toNumber());
3825
+ e.push([o.x, o.y]), n[0] != 0 ? i = new D(o.x).div(n[0]).toNumber() : n[1] != 0 && (i = new D(o.y).div(n[1]).toNumber());
3643
3826
  } else
3644
3827
  e.push([
3645
3828
  // this.mainCanvas!.preservePrecision(scale * item[0]),
3646
3829
  // this.mainCanvas!.preservePrecision(scale * item[1]),
3647
- new R(i).mul(n[0]).toNumber(),
3648
- new R(i).mul(n[1]).toNumber()
3830
+ new D(i).mul(n[0]).toNumber(),
3831
+ new D(i).mul(n[1]).toNumber()
3649
3832
  ]);
3650
3833
  }), e;
3651
3834
  }
@@ -3659,13 +3842,13 @@ class zt extends D {
3659
3842
  n[1],
3660
3843
  !0
3661
3844
  );
3662
- e.push([a.xV, a.yV]), n[0] != 0 ? i = new R(a.xV).div(n[0]).toNumber() : n[1] != 0 && (i = new R(a.yV).div(n[1]).toNumber());
3845
+ e.push([a.xV, a.yV]), n[0] != 0 ? i = new D(a.xV).div(n[0]).toNumber() : n[1] != 0 && (i = new D(a.yV).div(n[1]).toNumber());
3663
3846
  } else
3664
3847
  e.push([
3665
3848
  // this.mainCanvas!.preservePrecision(scale * item[0]),
3666
3849
  // this.mainCanvas!.preservePrecision(scale * item[1]),
3667
- new R(i).mul(n[0]).toNumber(),
3668
- new R(i).mul(n[1]).toNumber()
3850
+ new D(i).mul(n[0]).toNumber(),
3851
+ new D(i).mul(n[1]).toNumber()
3669
3852
  ]);
3670
3853
  }), e;
3671
3854
  }
@@ -3702,19 +3885,19 @@ class zt extends D {
3702
3885
  }
3703
3886
  class k {
3704
3887
  static add(s, t) {
3705
- return new R(s).add(t).toNumber();
3888
+ return new D(s).add(t).toNumber();
3706
3889
  }
3707
3890
  static sub(s, t) {
3708
- return new R(s).sub(t).toNumber();
3891
+ return new D(s).sub(t).toNumber();
3709
3892
  }
3710
3893
  static mul(s, t) {
3711
- return new R(s).mul(t).toNumber();
3894
+ return new D(s).mul(t).toNumber();
3712
3895
  }
3713
3896
  static div(s, t) {
3714
- return new R(s).div(t).toNumber();
3897
+ return new D(s).div(t).toNumber();
3715
3898
  }
3716
3899
  }
3717
- class Gt extends D {
3900
+ class Ut extends R {
3718
3901
  constructor(t) {
3719
3902
  super(t);
3720
3903
  /** 文字偏差 */
@@ -3763,7 +3946,7 @@ class Gt extends D {
3763
3946
  });
3764
3947
  }
3765
3948
  isPointInPath(t, e) {
3766
- return this.path ? D.ctx.isPointInPath(this.path, t, e) : !1;
3949
+ return this.path ? R.ctx.isPointInPath(this.path, t, e) : !1;
3767
3950
  }
3768
3951
  isPointInStroke(t, e) {
3769
3952
  return !1;
@@ -3772,7 +3955,7 @@ class Gt extends D {
3772
3955
  if (!this.mainCanvas) return;
3773
3956
  if (!this.text || this.text.length == 0)
3774
3957
  return this.internalUpdate({ dynamicPosition: void 0 });
3775
- const t = D.ctx;
3958
+ const t = R.ctx;
3776
3959
  this.setOverlayStyles(t);
3777
3960
  const e = t.measureText(this.text);
3778
3961
  this.textOffset = {
@@ -3814,7 +3997,7 @@ class Gt extends D {
3814
3997
  }
3815
3998
  }
3816
3999
  }
3817
- class lt extends D {
4000
+ class lt extends R {
3818
4001
  constructor(t) {
3819
4002
  super(t);
3820
4003
  d(this, "angle", 2 * Math.PI);
@@ -3884,13 +4067,13 @@ class lt extends D {
3884
4067
  e !== this.fillProgress.lineWidthOffset && (this.fillProgress.lineWidthOffset = e, (i = this.notifyReload) == null || i.call(this));
3885
4068
  }
3886
4069
  isPointInPath(t, e) {
3887
- return this.path ? D.ctx.isPointInPath(this.path, t, e) : !1;
4070
+ return this.path ? R.ctx.isPointInPath(this.path, t, e) : !1;
3888
4071
  }
3889
4072
  isPointInStroke(t, e) {
3890
4073
  var i;
3891
4074
  if (this.path && this.mainCanvas) {
3892
- const { width: n } = this.setOverlayStyles(D.ctx);
3893
- return ((i = this.fillProgress) == null ? void 0 : i.lineWidthOffset) == n ? !1 : D.ctx.isPointInStroke(this.path, t, e);
4075
+ const { width: n } = this.setOverlayStyles(R.ctx);
4076
+ return ((i = this.fillProgress) == null ? void 0 : i.lineWidthOffset) == n ? !1 : R.ctx.isPointInStroke(this.path, t, e);
3894
4077
  }
3895
4078
  return !1;
3896
4079
  }
@@ -3930,7 +4113,7 @@ class lt extends D {
3930
4113
  }
3931
4114
  }
3932
4115
  }
3933
- class je extends D {
4116
+ class je extends R {
3934
4117
  constructor(t) {
3935
4118
  super(t);
3936
4119
  /** 控制点 */
@@ -4029,7 +4212,7 @@ class je extends D {
4029
4212
  tryCreateNewHandlePoint(t, e) {
4030
4213
  var c;
4031
4214
  if (!this.isPointInStroke(t, e)) return;
4032
- const i = this.getExtendedDynamicPositions(), n = rs([t, e], i);
4215
+ const i = this.getExtendedDynamicPositions(), n = os([t, e], i);
4033
4216
  if (n === -1) return;
4034
4217
  const [o, a] = this.getAdjacentIndices(n), l = this.createNewHandlePoint(o, a);
4035
4218
  this.insertHandlePoint(n, l), this.lockHandlePointCreationTemporarily(), (c = this.notifyReload) == null || c.call(this);
@@ -4128,12 +4311,12 @@ class je extends D {
4128
4311
  });
4129
4312
  }
4130
4313
  }
4131
- function rs(r, s, t = 10) {
4314
+ function os(r, s, t = 10) {
4132
4315
  if (s.length === 0) return 0;
4133
4316
  if (s.length === 1) return 1;
4134
4317
  let e = 1 / 0, i = -1;
4135
4318
  for (let n = 0; n < s.length - 1; n++) {
4136
- const o = Rs(
4319
+ const o = ks(
4137
4320
  r,
4138
4321
  s[n],
4139
4322
  s[n + 1]
@@ -4145,10 +4328,10 @@ function rs(r, s, t = 10) {
4145
4328
  return i;
4146
4329
  }
4147
4330
  function oe(r, s) {
4148
- const { x: t, y: e } = $e(...r, ...s);
4331
+ const { x: t, y: e } = qe(...r, ...s);
4149
4332
  return [t, e];
4150
4333
  }
4151
- class Ut extends je {
4334
+ class Gt extends je {
4152
4335
  constructor(t) {
4153
4336
  super(t);
4154
4337
  d(this, "_isInfinite");
@@ -4172,7 +4355,7 @@ class Ut extends je {
4172
4355
  return !1;
4173
4356
  }
4174
4357
  isPointInStroke(t, e) {
4175
- return this.path && this.mainCanvas ? (this.setOverlayStyles(D.ctx), this.isDraggable && (D.ctx.lineWidth = Math.max(D.ctx.lineWidth, 20)), D.ctx.isPointInStroke(this.path, t, e)) : !1;
4358
+ return this.path && this.mainCanvas ? (this.setOverlayStyles(R.ctx), this.isDraggable && (R.ctx.lineWidth = Math.max(R.ctx.lineWidth, 20)), R.ctx.isPointInStroke(this.path, t, e)) : !1;
4176
4359
  }
4177
4360
  isPointInAnywhere(t, e) {
4178
4361
  return ((n) => {
@@ -4189,7 +4372,7 @@ class Ut extends je {
4189
4372
  if (this.isInfinite) {
4190
4373
  this.isRecalculate && this.updateDynamicPosition();
4191
4374
  const { width: t, height: e } = this.mainCanvas.rect;
4192
- return os(
4375
+ return as(
4193
4376
  [0, 0],
4194
4377
  [t, e],
4195
4378
  this.finalDynamicPosition[0],
@@ -4239,12 +4422,12 @@ class Ut extends je {
4239
4422
  const { rect: n } = e, [o, a] = i, l = [a[0] - o[0], a[1] - o[1]];
4240
4423
  if (l[0] === 0 && l[1] === 0)
4241
4424
  return console.error("重合点无法确定方向");
4242
- const c = Me(
4425
+ const c = _e(
4243
4426
  o,
4244
4427
  [-l[0], -l[1]],
4245
4428
  n.width,
4246
4429
  n.height
4247
- ), h = Me(
4430
+ ), h = _e(
4248
4431
  a,
4249
4432
  l,
4250
4433
  n.width,
@@ -4259,7 +4442,7 @@ class Ut extends je {
4259
4442
  }
4260
4443
  }
4261
4444
  }
4262
- function Me(r, s, t, e) {
4445
+ function _e(r, s, t, e) {
4263
4446
  const [i, n] = r, [o, a] = s;
4264
4447
  let l = 1 / 0;
4265
4448
  if (o !== 0) {
@@ -4272,7 +4455,7 @@ function Me(r, s, t, e) {
4272
4455
  }
4273
4456
  return l === 1 / 0 ? r : [i + o * l, n + a * l];
4274
4457
  }
4275
- function os(r, s, t, e) {
4458
+ function as(r, s, t, e) {
4276
4459
  const i = Math.min(r[0], s[0]), n = Math.max(r[0], s[0]), o = Math.min(r[1], s[1]), a = Math.max(r[1], s[1]), l = [
4277
4460
  [i, o],
4278
4461
  // 左上
@@ -4338,10 +4521,10 @@ class Xt extends je {
4338
4521
  this.initValueScope();
4339
4522
  }
4340
4523
  isPointInPath(t, e) {
4341
- return this.path ? D.ctx.isPointInPath(this.path, t, e) : !1;
4524
+ return this.path ? R.ctx.isPointInPath(this.path, t, e) : !1;
4342
4525
  }
4343
4526
  isPointInStroke(t, e) {
4344
- return this.path && this.mainCanvas ? (this.setOverlayStyles(D.ctx), this.isDraggable && (D.ctx.lineWidth = Math.max(D.ctx.lineWidth, 20)), D.ctx.isPointInStroke(this.path, t, e)) : !1;
4527
+ return this.path && this.mainCanvas ? (this.setOverlayStyles(R.ctx), this.isDraggable && (R.ctx.lineWidth = Math.max(R.ctx.lineWidth, 20)), R.ctx.isPointInStroke(this.path, t, e)) : !1;
4345
4528
  }
4346
4529
  isPointInAnywhere(t, e) {
4347
4530
  return ((n) => {
@@ -4433,7 +4616,7 @@ class Xt extends je {
4433
4616
  }
4434
4617
  }
4435
4618
  }
4436
- class Yt extends D {
4619
+ class Yt extends R {
4437
4620
  constructor(t) {
4438
4621
  super(t);
4439
4622
  d(this, "_isFill", !1);
@@ -4605,10 +4788,10 @@ class Yt extends D {
4605
4788
  }));
4606
4789
  }
4607
4790
  isPointInPath(t, e) {
4608
- return this.isFill && this.path ? D.ctx.isPointInPath(this.path, t, e) : !1;
4791
+ return this.isFill && this.path ? R.ctx.isPointInPath(this.path, t, e) : !1;
4609
4792
  }
4610
4793
  isPointInStroke(t, e) {
4611
- return this.path && this.mainCanvas ? (this.setOverlayStyles(D.ctx), this.isDraggable && (D.ctx.lineWidth = Math.max(D.ctx.lineWidth, 20)), D.ctx.isPointInStroke(this.path, t, e)) : !1;
4794
+ return this.path && this.mainCanvas ? (this.setOverlayStyles(R.ctx), this.isDraggable && (R.ctx.lineWidth = Math.max(R.ctx.lineWidth, 20)), R.ctx.isPointInStroke(this.path, t, e)) : !1;
4612
4795
  }
4613
4796
  isPointInAnywhere(t, e) {
4614
4797
  return ((n) => {
@@ -4657,7 +4840,7 @@ class Yt extends D {
4657
4840
  offset: c
4658
4841
  } = this;
4659
4842
  if (!t || !a || !l) return;
4660
- const [h, u] = as(
4843
+ const [h, u] = ls(
4661
4844
  ...e,
4662
4845
  i,
4663
4846
  n,
@@ -4761,14 +4944,14 @@ class Yt extends D {
4761
4944
  }
4762
4945
  }
4763
4946
  }
4764
- function as(r, s, t, e, i, n = 1, o = 1) {
4947
+ function ls(r, s, t, e, i, n = 1, o = 1) {
4765
4948
  const a = r + t * Math.cos(e) * n, l = s + t * Math.sin(e) * o, c = r + t * Math.cos(i) * n, h = s + t * Math.sin(i) * o;
4766
4949
  return [
4767
4950
  [a, l],
4768
4951
  [c, h]
4769
4952
  ];
4770
4953
  }
4771
- class jt extends D {
4954
+ class jt extends R {
4772
4955
  constructor(t) {
4773
4956
  super(t);
4774
4957
  /** 控制点 */
@@ -4833,7 +5016,7 @@ class jt extends D {
4833
5016
  return !1;
4834
5017
  }
4835
5018
  isPointInStroke(t, e) {
4836
- return this.path && this.mainCanvas ? (this.setOverlayStyles(D.ctx), this.isDraggable && (D.ctx.lineWidth = Math.max(D.ctx.lineWidth, 20)), D.ctx.isPointInStroke(this.path, t, e)) : !1;
5019
+ return this.path && this.mainCanvas ? (this.setOverlayStyles(R.ctx), this.isDraggable && (R.ctx.lineWidth = Math.max(R.ctx.lineWidth, 20)), R.ctx.isPointInStroke(this.path, t, e)) : !1;
4837
5020
  }
4838
5021
  isPointInAnywhere(t, e) {
4839
5022
  return ((n) => {
@@ -4892,8 +5075,8 @@ class jt extends D {
4892
5075
  if (!this.mainCanvas) return;
4893
5076
  let { value: t, position: e } = this;
4894
5077
  const [i, n] = [
4895
- qt(t) && t.length > 1,
4896
- qt(e) && e.length > 1
5078
+ $t(t) && t.length > 1,
5079
+ $t(e) && e.length > 1
4897
5080
  ];
4898
5081
  if (!i && !n)
4899
5082
  return this.handlePoints = void 0, this.internalUpdate({ dynamicPosition: void 0 });
@@ -4935,7 +5118,7 @@ class jt extends D {
4935
5118
  }
4936
5119
  }
4937
5120
  }
4938
- class ls extends ns {
5121
+ class cs extends rs {
4939
5122
  constructor(t) {
4940
5123
  super(t);
4941
5124
  /** 监听元素大小 */
@@ -5012,7 +5195,7 @@ class ls extends ns {
5012
5195
  if (a !== h) return h - a;
5013
5196
  if (l !== u)
5014
5197
  return u - l;
5015
- const m = (p) => p instanceof zt ? 5 : p instanceof Gt ? 4 : p instanceof lt ? 3 : p instanceof Ut || p instanceof Yt || p instanceof jt ? 2 : p instanceof Xt ? 1 : 0;
5198
+ const m = (p) => p instanceof Bt ? 5 : p instanceof Ut ? 4 : p instanceof lt ? 3 : p instanceof Gt || p instanceof Yt || p instanceof jt ? 2 : p instanceof Xt ? 1 : 0;
5016
5199
  return m(f) - m(c);
5017
5200
  }
5018
5201
  ), this.currentDrawOverlays = t.map(
@@ -5047,7 +5230,7 @@ class ls extends ns {
5047
5230
  (t = this.resizeObserver) == null || t.disconnect();
5048
5231
  }
5049
5232
  }
5050
- class cs extends ls {
5233
+ class hs extends cs {
5051
5234
  constructor(t) {
5052
5235
  super(t);
5053
5236
  /** 鼠标是否在画布内 */
@@ -5150,16 +5333,16 @@ class cs extends ls {
5150
5333
  keydown(t) {
5151
5334
  const { mouseInCanvas: e, offset: i, delta: n, axisConfig: o } = this, a = t.key;
5152
5335
  if (!e || !this.isDraggable || this.isAuto) return;
5153
- const l = this.getStep(a), c = this.lastClickedOverlay, u = (c == null ? void 0 : c.isDraggable) && this.currentDrawOverlays.includes(c) && (qt(c.value) ? "Matrix" : ve(c.value) ? "Single" : !1), f = (y, w) => {
5336
+ const l = this.getStep(a), c = this.lastClickedOverlay, u = (c == null ? void 0 : c.isDraggable) && this.currentDrawOverlays.includes(c) && ($t(c.value) ? "Matrix" : ve(c.value) ? "Single" : !1), f = (y, w) => {
5154
5337
  if (!u)
5155
5338
  return i.x += y * l, i.y += w * l, !0;
5156
- const P = this.getAxisValueByPoint(l, 0).xV, [b, _] = [P * o.x, P * o.y];
5339
+ const P = this.getAxisValueByPoint(l, 0).xV, [b, M] = [P * o.x, P * o.y];
5157
5340
  if (u === "Single") {
5158
- const A = c.value;
5159
- A[0] += y * b, A[1] += w * _;
5341
+ const O = c.value;
5342
+ O[0] += y * b, O[1] += w * M;
5160
5343
  } else
5161
- c.value.forEach((A) => {
5162
- A[0] += y * b, A[1] += w * _;
5344
+ c.value.forEach((O) => {
5345
+ O[0] += y * b, O[1] += w * M;
5163
5346
  });
5164
5347
  return c.value = [...c.value], !0;
5165
5348
  }, m = (y) => (this.setScale("center", y * n), !0), g = {
@@ -5271,17 +5454,17 @@ class cs extends ls {
5271
5454
  } else if (e.length === 2) {
5272
5455
  const { clientX: h, clientY: u } = e[0], { clientX: f, clientY: m } = e[1];
5273
5456
  if (i.length == 2) {
5274
- const p = De(
5457
+ const p = Re(
5275
5458
  i[0],
5276
5459
  n[0],
5277
5460
  i[1],
5278
5461
  n[1]
5279
- ), g = De(
5462
+ ), g = Re(
5280
5463
  h,
5281
5464
  u,
5282
5465
  f,
5283
5466
  m
5284
- ), { x: y, y: w } = $e(
5467
+ ), { x: y, y: w } = qe(
5285
5468
  h,
5286
5469
  u,
5287
5470
  f,
@@ -5456,7 +5639,7 @@ class j extends Vt {
5456
5639
  }
5457
5640
  }
5458
5641
  }
5459
- class Rt extends Vt {
5642
+ class Dt extends Vt {
5460
5643
  constructor(t) {
5461
5644
  super(t);
5462
5645
  /** 图层群组 */
@@ -5525,7 +5708,7 @@ class Rt extends Vt {
5525
5708
  return [];
5526
5709
  }
5527
5710
  }
5528
- class hs extends cs {
5711
+ class us extends hs {
5529
5712
  /** 获取默认覆盖物群组 */
5530
5713
  getDefaultOverlayGroup() {
5531
5714
  var c, h, u, f, m, p, g;
@@ -5550,7 +5733,7 @@ class hs extends cs {
5550
5733
  const t = [], e = s !== void 0 ? Array.isArray(s) ? [...s] : [s] : Array.from(this.layerGroups.values());
5551
5734
  for (; e.length > 0; ) {
5552
5735
  const i = e.pop();
5553
- if (i instanceof Rt) {
5736
+ if (i instanceof Dt) {
5554
5737
  if (!i.isVisible) continue;
5555
5738
  e.push(...i.layers.values());
5556
5739
  } else if (i instanceof j) {
@@ -5565,7 +5748,7 @@ class hs extends cs {
5565
5748
  return t;
5566
5749
  }
5567
5750
  }
5568
- class us extends hs {
5751
+ class ds extends us {
5569
5752
  /** 缩放画布 */
5570
5753
  zoom(s) {
5571
5754
  const { canvas: t, rect: e } = this;
@@ -5598,7 +5781,7 @@ class us extends hs {
5598
5781
  super.setDefaultCenter(s), this.redrawOnce();
5599
5782
  }
5600
5783
  }
5601
- class ds extends us {
5784
+ class fs extends ds {
5602
5785
  /**
5603
5786
  * 调整视图以适应指定覆盖层
5604
5787
  * @param overlays 目标覆盖层数组,默认使用全部可见覆盖层
@@ -5656,13 +5839,13 @@ class ds extends us {
5656
5839
  const m = s / u, p = t / f, g = Math.max(m, p), y = a.count, w = y / a.min, P = n * o;
5657
5840
  let b;
5658
5841
  if (g > w) {
5659
- const _ = Math.ceil(g / w);
5660
- b = 1 - ((y * _ / g - a.min) / a.min + (_ - 2)) * P;
5842
+ const M = Math.ceil(g / w);
5843
+ b = 1 - ((y * M / g - a.min) / a.min + (M - 2)) * P;
5661
5844
  } else {
5662
- const _ = (dt, rt, vt) => dt < rt ? vt - 1 : _(dt / 2, rt, vt + 1), A = _(w, g, 0), U = Math.pow(2, A);
5663
- b = 1 + ((y / U / g - a.min) / a.min + A) * P;
5845
+ const M = (dt, rt, vt) => dt < rt ? vt - 1 : M(dt / 2, rt, vt + 1), O = M(w, g, 0), G = Math.pow(2, O);
5846
+ b = 1 + ((y / G / g - a.min) / a.min + O) * P;
5664
5847
  }
5665
- return i !== void 0 && (b = Math.min(i, b)), b = new R(b).div(o).round().mul(o).toNumber(), b;
5848
+ return i !== void 0 && (b = Math.min(i, b)), b = new D(b).div(o).round().mul(o).toNumber(), b;
5666
5849
  }
5667
5850
  /** 计算目标位置偏移 */
5668
5851
  calculateOffsetDifference(s, t, e, i, n) {
@@ -5741,7 +5924,7 @@ class ds extends us {
5741
5924
  });
5742
5925
  }
5743
5926
  }
5744
- class fs extends ds {
5927
+ class ms extends fs {
5745
5928
  /** 开关坐标轴 */
5746
5929
  toggleAxis(s) {
5747
5930
  this.drawAxis.toggleAxis(s), this.redrawOnce();
@@ -5766,7 +5949,7 @@ class fs extends ds {
5766
5949
  return this.isInteractive = s ?? !this.isInteractive, this.isInteractive;
5767
5950
  }
5768
5951
  }
5769
- class ms extends fs {
5952
+ class gs extends ms {
5770
5953
  /**
5771
5954
  * 清除指定区域的像素点
5772
5955
  * @param ctx - Canvas 2D绘图上下文
@@ -5777,9 +5960,9 @@ class ms extends fs {
5777
5960
  s.save(), s.beginPath(), s.clip(t), s.clearRect(0, 0, e, i), s.restore();
5778
5961
  }
5779
5962
  }
5780
- class gs extends ms {
5963
+ class ps extends gs {
5781
5964
  }
5782
- class ps {
5965
+ class vs {
5783
5966
  constructor(s) {
5784
5967
  /** 画布 */
5785
5968
  d(this, "canvas");
@@ -5894,8 +6077,8 @@ class ps {
5894
6077
  const y = i.y > c || i.y < 0;
5895
6078
  let w = i.x > 0 ? i.x % p : i.x < 0 ? p + i.x % p : 0, P = s.getAxisValueByPoint((w - i.x) * n.x, 0).xV;
5896
6079
  for (; w <= l; ) {
5897
- const b = le(P), _ = h(b);
5898
- P !== 0 && this.drawText(b, w - _ / 2, g, y), w += p, P = new R(m).mul(n.x).add(P).toNumber();
6080
+ const b = le(P), M = h(b);
6081
+ P !== 0 && this.drawText(b, w - M / 2, g, y), w += p, P = new D(m).mul(n.x).add(P).toNumber();
5899
6082
  }
5900
6083
  }
5901
6084
  {
@@ -5903,13 +6086,13 @@ class ps {
5903
6086
  let y = i.y > 0 ? i.y % p : i.y < 0 ? p + i.y % p : 0, w = s.getAxisValueByPoint(0, (y - i.y) * n.y).yV;
5904
6087
  for (; y <= c; ) {
5905
6088
  const P = le(w), b = h(P);
5906
- let _ = i.x - b - u;
5907
- _ = Math.max(Math.min(_, l - b - u), u), w != 0 && this.drawText(P, _, y + f / 2, g), y += p, w = new R(m).mul(n.y).add(w).toNumber();
6089
+ let M = i.x - b - u;
6090
+ M = Math.max(Math.min(M, l - b - u), u), w != 0 && this.drawText(P, M, y + f / 2, g), y += p, w = new D(m).mul(n.y).add(w).toNumber();
5908
6091
  }
5909
6092
  }
5910
6093
  }
5911
6094
  }
5912
- class vs {
6095
+ class ys {
5913
6096
  constructor(s) {
5914
6097
  /** 绑定的画布实例 */
5915
6098
  d(this, "canvas");
@@ -6013,7 +6196,7 @@ class vs {
6013
6196
  }
6014
6197
  }
6015
6198
  }
6016
- class ys {
6199
+ class ws {
6017
6200
  /**
6018
6201
  * 计算默认缩放比例,使图像适配视图容器
6019
6202
  * @param naturalWidth 图像原始宽度
@@ -6048,7 +6231,7 @@ class ys {
6048
6231
  };
6049
6232
  }
6050
6233
  }
6051
- class ws extends D {
6234
+ class xs extends R {
6052
6235
  constructor(t) {
6053
6236
  super(t);
6054
6237
  d(this, "_ready", !1);
@@ -6106,12 +6289,12 @@ class ws extends D {
6106
6289
  const p = u.w / u.h, g = f / m;
6107
6290
  if (o === "fill") return u;
6108
6291
  if (o === "contain" || o === "scale-down") {
6109
- const P = Math.min(u.w / f, u.h / m), b = o === "scale-down" ? Math.min(1, P) : P, _ = f * b, A = m * b;
6292
+ const P = Math.min(u.w / f, u.h / m), b = o === "scale-down" ? Math.min(1, P) : P, M = f * b, O = m * b;
6110
6293
  return {
6111
- x: u.x + (u.w - _) / 2,
6112
- y: u.y + (u.h - A) / 2,
6113
- w: _,
6114
- h: A
6294
+ x: u.x + (u.w - M) / 2,
6295
+ y: u.y + (u.h - O) / 2,
6296
+ w: M,
6297
+ h: O
6115
6298
  };
6116
6299
  }
6117
6300
  if (g > p) {
@@ -6137,7 +6320,7 @@ class ws extends D {
6137
6320
  this.mainCanvas && (this.ready = !1, this.url && (this.image.src = this.url), this.handleValuePosition("array2D", 1));
6138
6321
  }
6139
6322
  }
6140
- class ae extends ws {
6323
+ class ae extends xs {
6141
6324
  constructor(t) {
6142
6325
  super(t);
6143
6326
  d(this, "defaultDragg", (t, e) => {
@@ -6163,7 +6346,7 @@ class ae extends ws {
6163
6346
  this.initValueScope();
6164
6347
  }
6165
6348
  isPointInPath(t, e) {
6166
- return this.path ? D.ctx.isPointInPath(this.path, t, e) : !1;
6349
+ return this.path ? R.ctx.isPointInPath(this.path, t, e) : !1;
6167
6350
  }
6168
6351
  isPointInStroke(t, e) {
6169
6352
  return !1;
@@ -6203,12 +6386,12 @@ class ae extends ws {
6203
6386
  function Ht(r) {
6204
6387
  return [r].flat(1 / 0);
6205
6388
  }
6206
- class T extends gs {
6389
+ class T extends ps {
6207
6390
  constructor(t) {
6208
6391
  super(t);
6209
6392
  /** 按坐标轴值创建覆盖物(多边形/线)的交互管理 */
6210
6393
  d(this, "overlayCreator");
6211
- this.drawAxis = new ps(this), "axisShow" in t && this.toggleAxis(t.axisShow), this.overlayCreator = new vs(this), this.initLayerGroups(), this.updateCenter();
6394
+ this.drawAxis = new vs(this), "axisShow" in t && this.toggleAxis(t.axisShow), this.overlayCreator = new ys(this), this.initLayerGroups(), this.updateCenter();
6212
6395
  }
6213
6396
  initLayerGroups() {
6214
6397
  const t = new j({ name: "其他图层", zIndex: 1 });
@@ -6225,7 +6408,7 @@ class T extends gs {
6225
6408
  a.addGroup(new Y({ name: "文字覆盖物群组" }));
6226
6409
  const l = new j({ name: "自定义绘制图层", zIndex: 7 });
6227
6410
  l.addGroup(new Y({ name: "自定义绘制覆盖物群组" }));
6228
- const c = new Rt({ name: "默认图层群组" });
6411
+ const c = new Dt({ name: "默认图层群组" });
6229
6412
  c.addLayer([
6230
6413
  a,
6231
6414
  o,
@@ -6242,11 +6425,11 @@ class T extends gs {
6242
6425
  }
6243
6426
  /** 设置图层群组 */
6244
6427
  setLayerGroup(t) {
6245
- t instanceof Rt && (this.layerGroups.set(t.name, t), t.setNotifyReload(() => this.redrawOnce()), t.setMainCanvas(this), t.parent = this);
6428
+ t instanceof Dt && (this.layerGroups.set(t.name, t), t.setNotifyReload(() => this.redrawOnce()), t.setMainCanvas(this), t.parent = this);
6246
6429
  }
6247
6430
  /** 移除图层群组 */
6248
6431
  removeLayerGroup(t) {
6249
- t instanceof Rt && (this.layerGroups.delete(t.name), t.setNotifyReload(), t.setMainCanvas(), t.parent = void 0, this.redrawOnce());
6432
+ t instanceof Dt && (this.layerGroups.delete(t.name), t.setNotifyReload(), t.setMainCanvas(), t.parent = void 0, this.redrawOnce());
6250
6433
  }
6251
6434
  /** 添加图层 */
6252
6435
  addLayer(t) {
@@ -6270,7 +6453,7 @@ class T extends gs {
6270
6453
  overlays_other: c
6271
6454
  } = this.getDefaultOverlayGroup() || {};
6272
6455
  Ht(t).forEach((h) => {
6273
- h instanceof Gt ? e == null || e.addOverlay(h) : h instanceof lt ? i == null || i.addOverlay(h) : h instanceof Ut || h instanceof Yt || h instanceof jt ? n == null || n.addOverlay(h) : h instanceof Xt ? o == null || o.addOverlay(h) : h instanceof zt ? a == null || a.addOverlay(h) : h instanceof ae ? l == null || l.addOverlay(h) : c == null || c.addOverlay(h);
6456
+ h instanceof Ut ? e == null || e.addOverlay(h) : h instanceof lt ? i == null || i.addOverlay(h) : h instanceof Gt || h instanceof Yt || h instanceof jt ? n == null || n.addOverlay(h) : h instanceof Xt ? o == null || o.addOverlay(h) : h instanceof Bt ? a == null || a.addOverlay(h) : h instanceof ae ? l == null || l.addOverlay(h) : c == null || c.addOverlay(h);
6274
6457
  });
6275
6458
  }
6276
6459
  /** 移除覆盖物 */
@@ -6285,7 +6468,7 @@ class T extends gs {
6285
6468
  overlays_other: c
6286
6469
  } = this.getDefaultOverlayGroup() || {};
6287
6470
  Ht(t).forEach((h) => {
6288
- h instanceof Gt ? e == null || e.removeOverlay(h) : h instanceof lt ? i == null || i.removeOverlay(h) : h instanceof Ut || h instanceof Yt || h instanceof jt ? n == null || n.removeOverlay(h) : h instanceof Xt ? o == null || o.removeOverlay(h) : h instanceof zt ? a == null || a.addOverlay(h) : h instanceof ae ? l == null || l.removeOverlay(h) : c == null || c.removeOverlay(h);
6471
+ h instanceof Ut ? e == null || e.removeOverlay(h) : h instanceof lt ? i == null || i.removeOverlay(h) : h instanceof Gt || h instanceof Yt || h instanceof jt ? n == null || n.removeOverlay(h) : h instanceof Xt ? o == null || o.removeOverlay(h) : h instanceof Bt ? a == null || a.addOverlay(h) : h instanceof ae ? l == null || l.removeOverlay(h) : c == null || c.removeOverlay(h);
6289
6472
  });
6290
6473
  }
6291
6474
  /** 销毁 */
@@ -6294,19 +6477,19 @@ class T extends gs {
6294
6477
  }
6295
6478
  }
6296
6479
  /** 视图适配工具:默认缩放、居中计算 */
6297
- d(T, "ViewFit", ys), /** 图层群组 */
6298
- d(T, "LayerGroup", Rt), /** 图层 */
6480
+ d(T, "ViewFit", ws), /** 图层群组 */
6481
+ d(T, "LayerGroup", Dt), /** 图层 */
6299
6482
  d(T, "Layer", j), /** 覆盖物群组 */
6300
6483
  d(T, "OverlayGroup", Y), /** 文字 */
6301
- d(T, "Text", Gt), /** 点位 */
6484
+ d(T, "Text", Ut), /** 点位 */
6302
6485
  d(T, "Point", lt), /** 线段 */
6303
- d(T, "Line", Ut), /** 多边形 */
6486
+ d(T, "Line", Gt), /** 多边形 */
6304
6487
  d(T, "Polygon", Xt), /** 自定义绘制 */
6305
- d(T, "Custom", zt), /** 圆弧 */
6488
+ d(T, "Custom", Bt), /** 圆弧 */
6306
6489
  d(T, "Arc", Yt), /** 圆角 */
6307
6490
  d(T, "ArcTo", jt), /** 图片 */
6308
6491
  d(T, "Billboard", ae);
6309
- class xs {
6492
+ class Ps {
6310
6493
  /** @param id canvas DOM id(通过 getElementById 定位) */
6311
6494
  constructor(s) {
6312
6495
  /** Canvas DOM id(用于 `document.getElementById` 定位) */
@@ -6360,7 +6543,7 @@ class xs {
6360
6543
  this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = void 0);
6361
6544
  }
6362
6545
  }
6363
- class Ps {
6546
+ class bs {
6364
6547
  /**
6365
6548
  * @param canvas 绑定 mousedown 的 canvas
6366
6549
  * @param onOffsetDelta 拖拽时的 dx 回调(由外部映射到时间偏移)
@@ -6399,7 +6582,7 @@ class Ps {
6399
6582
  this.canvas.removeEventListener("mousedown", this.handleMouseDown), window.removeEventListener("mousemove", this.handleMouseMove), window.removeEventListener("mouseup", this.handleMouseUp);
6400
6583
  }
6401
6584
  }
6402
- class bs {
6585
+ class Cs {
6403
6586
  /**
6404
6587
  * @param canvas 绑定 wheel 事件的 canvas
6405
6588
  * @param getTimeSpacing 读取当前 timeSpacing 的函数
@@ -6434,7 +6617,7 @@ class bs {
6434
6617
  this.canvas.removeEventListener("wheel", this.handleWheel);
6435
6618
  }
6436
6619
  }
6437
- class Cs {
6620
+ class Ss {
6438
6621
  /**
6439
6622
  * 只负责计算鼠标所在 x/y 对应的时间,并把结果通知给 TimeAxis(不直接操作 DOM)。
6440
6623
  */
@@ -6471,10 +6654,10 @@ class Cs {
6471
6654
  this.canvas.removeEventListener("mousemove", this.handleMouseMove), this.canvas.removeEventListener("mouseleave", this.handleMouseLeave);
6472
6655
  }
6473
6656
  }
6474
- const Ss = {
6657
+ const Es = {
6475
6658
  easeInOutQuad: (r) => r < 0.5 ? 2 * r * r : 1 - Math.pow(-2 * r + 2, 2) / 2
6476
6659
  };
6477
- class Es {
6660
+ class Ms {
6478
6661
  /**
6479
6662
  * 创建时间轴引擎:会在构造后 `requestAnimationFrame` 初始化并开始渲染。
6480
6663
  * @param id canvas DOM id
@@ -6520,13 +6703,13 @@ class Es {
6520
6703
  * 可用于叠加额外图形(如指示线、事件点等)
6521
6704
  */
6522
6705
  d(this, "onDrawOverlay");
6523
- this.canvasManager = new xs(s), this.onMouseTimeChange = t, requestAnimationFrame(() => this.init());
6706
+ this.canvasManager = new Ps(s), this.onMouseTimeChange = t, requestAnimationFrame(() => this.init());
6524
6707
  }
6525
6708
  /** 初始化交互:拖拽平移、滚轮缩放、鼠标时间通知,并触发首次绘制 */
6526
6709
  init() {
6527
6710
  if (!this.canvasManager.init(() => this.render())) return;
6528
6711
  const t = this.canvasManager.getCanvas();
6529
- t && (this.offsetDrag = new Ps(
6712
+ t && (this.offsetDrag = new bs(
6530
6713
  t,
6531
6714
  (e) => {
6532
6715
  this.currentTime -= Math.round(
@@ -6536,14 +6719,14 @@ class Es {
6536
6719
  () => {
6537
6720
  this.stopCenterTimeAnimation();
6538
6721
  }
6539
- ), this.wheelZoom = new bs(
6722
+ ), this.wheelZoom = new Cs(
6540
6723
  t,
6541
6724
  () => this.timeSpacing,
6542
6725
  (e, i) => {
6543
6726
  const n = this.getTimeAtCanvasX(i);
6544
6727
  this.timeSpacing = e, this.setTimeAtCanvasX(n, i), this.render();
6545
6728
  }
6546
- ), this.centerTime = Date.now(), this.mouseTimeReporter = new Cs(
6729
+ ), this.centerTime = Date.now(), this.mouseTimeReporter = new Ss(
6547
6730
  t,
6548
6731
  (e) => this.getTimeAtCanvasX(e),
6549
6732
  (e) => {
@@ -6642,7 +6825,7 @@ class Es {
6642
6825
  Math.max(0.5, h)
6643
6826
  );
6644
6827
  return Math.max(1, Math.round(u * 60));
6645
- })(), a = (t == null ? void 0 : t.curve) ?? Ss.easeInOutQuad;
6828
+ })(), a = (t == null ? void 0 : t.curve) ?? Es.easeInOutQuad;
6646
6829
  Ke(
6647
6830
  0,
6648
6831
  1,
@@ -6664,7 +6847,7 @@ class Es {
6664
6847
  (s = this.offsetDrag) == null || s.destroy(), (t = this.wheelZoom) == null || t.destroy(), (e = this.mouseTimeReporter) == null || e.destroy(), this.canvasManager.destroy();
6665
6848
  }
6666
6849
  }
6667
- class fn extends Es {
6850
+ class mn extends Ms {
6668
6851
  /**
6669
6852
  * 将填充样式解析为 ctx.fillStyle 可用的值(纯色或线性渐变)
6670
6853
  * @param rect 矩形区域,用于计算渐变起止点
@@ -6709,7 +6892,7 @@ class fn extends Es {
6709
6892
  g && (t.fillStyle = g), h && (t.strokeStyle = h), t.lineWidth = u, t.beginPath(), typeof t.roundRect == "function" ? t.roundRect(f, o, p, a + o, l) : t.rect(f, o, p, a + o), c && t.fill(), h && t.stroke();
6710
6893
  }
6711
6894
  }
6712
- function Ot(r) {
6895
+ function At(r) {
6713
6896
  if (typeof r == "string") {
6714
6897
  const s = document.querySelector(r);
6715
6898
  if (s)
@@ -6719,25 +6902,25 @@ function Ot(r) {
6719
6902
  return r || document.documentElement;
6720
6903
  }
6721
6904
  function We(r) {
6722
- const s = Ot(r);
6905
+ const s = At(r);
6723
6906
  return s ? s.requestFullscreen ? s.requestFullscreen() : s.mozRequestFullScreen ? s.mozRequestFullScreen() : s.webkitRequestFullscreen ? s.webkitRequestFullscreen() : s.msRequestFullscreen ? s.msRequestFullscreen() : Promise.reject("No Fullscreen API") : Promise.reject("No Element");
6724
6907
  }
6725
- function qe() {
6908
+ function $e() {
6726
6909
  const r = document;
6727
6910
  return document.exitFullscreen ? document.exitFullscreen() : r.mozCancelFullScreen ? r.mozCancelFullScreen() : r.webkitExitFullscreen ? r.webkitExitFullscreen() : r.msExitFullscreen ? r.msExitFullscreen() : Promise.reject("No ExitFullscreen API");
6728
6911
  }
6729
6912
  function Jt(r) {
6730
- const s = Ot(r), t = document, e = document.fullscreenElement || t.webkitFullscreenElement || t.mozFullScreenElement || t.msFullscreenElement;
6913
+ const s = At(r), t = document, e = document.fullscreenElement || t.webkitFullscreenElement || t.mozFullScreenElement || t.msFullscreenElement;
6731
6914
  return s == e || !r && window.innerWidth == screen.width && window.innerHeight == screen.height;
6732
6915
  }
6733
- function mn(r) {
6734
- if (r = Ot(r), !!r)
6916
+ function gn(r) {
6917
+ if (r = At(r), !!r)
6735
6918
  return function() {
6736
- Jt(r) ? qe() : We(r);
6919
+ Jt(r) ? $e() : We(r);
6737
6920
  };
6738
6921
  }
6739
- function gn(r, s) {
6740
- const t = Ot(s);
6922
+ function pn(r, s) {
6923
+ const t = At(s);
6741
6924
  if (!t) return;
6742
6925
  const e = () => {
6743
6926
  r(Jt(t));
@@ -6746,7 +6929,7 @@ function gn(r, s) {
6746
6929
  document.removeEventListener("fullscreenchange", e), document.removeEventListener("webkitfullscreenchange", e), document.removeEventListener("mozfullscreenchange", e), document.removeEventListener("MSFullscreenChange", e);
6747
6930
  };
6748
6931
  }
6749
- class pn {
6932
+ class vn {
6750
6933
  constructor(s, t) {
6751
6934
  /** 要全屏展示的目标元素 */
6752
6935
  d(this, "targetElement");
@@ -6762,7 +6945,7 @@ class pn {
6762
6945
  * 设置或更新目标元素(`HTMLElement` 或 CSS 选择器;未传时内部会回退到 `document.documentElement`)
6763
6946
  */
6764
6947
  init(s) {
6765
- this.targetElement = Ot(s);
6948
+ this.targetElement = At(s);
6766
6949
  }
6767
6950
  /** 使目标元素进入浏览器全屏 */
6768
6951
  enter() {
@@ -6770,7 +6953,7 @@ class pn {
6770
6953
  }
6771
6954
  /** 退出浏览器全屏(不区分由哪个元素进入) */
6772
6955
  exit() {
6773
- this.targetElement && qe();
6956
+ this.targetElement && $e();
6774
6957
  }
6775
6958
  /** 若当前已为该目标全屏则退出,否则进入全屏 */
6776
6959
  toggle() {
@@ -6808,7 +6991,7 @@ class pn {
6808
6991
  (s = this.detachFullscreenListeners) == null || s.call(this), this.detachFullscreenListeners = void 0, this.targetElement = void 0, this.onFullscreenChange = void 0;
6809
6992
  }
6810
6993
  }
6811
- function vn(r) {
6994
+ function yn(r) {
6812
6995
  const s = Le(r, 100);
6813
6996
  let t = 0, e = 0;
6814
6997
  return function(i) {
@@ -6837,7 +7020,7 @@ function vn(r) {
6837
7020
  f(), m();
6838
7021
  };
6839
7022
  }
6840
- function yn(r, s, t) {
7023
+ function wn(r, s, t) {
6841
7024
  const { isClickAllowed: e, uiLibrary: i = ["naiveUI", "ElementPlus", "Element"] } = t || {}, n = function(l) {
6842
7025
  const c = [];
6843
7026
  for (const h in l)
@@ -6870,7 +7053,7 @@ function yn(r, s, t) {
6870
7053
  );
6871
7054
  }
6872
7055
  var W, ft, mt, xt, Pt, J, K, st, bt;
6873
- class wn {
7056
+ class xn {
6874
7057
  constructor() {
6875
7058
  L(this, W);
6876
7059
  L(this, ft, !1);
@@ -6883,7 +7066,7 @@ class wn {
6883
7066
  L(this, bt);
6884
7067
  }
6885
7068
  init(s, t) {
6886
- this.finish(), M(this, W, s), M(this, st, t == null ? void 0 : t.limit), M(this, bt, t == null ? void 0 : t.dragDom), M(this, mt, {
7069
+ this.finish(), _(this, W, s), _(this, st, t == null ? void 0 : t.limit), _(this, bt, t == null ? void 0 : t.dragDom), _(this, mt, {
6887
7070
  mousedown: this.mousedown.bind(this),
6888
7071
  mousemove: this.mousemove.bind(this),
6889
7072
  mouseup: this.mouseup.bind(this)
@@ -6899,40 +7082,40 @@ class wn {
6899
7082
  }
6900
7083
  alterLocation() {
6901
7084
  if (!x(this, W)) return console.error("No DOM");
6902
- x(this, st) && (M(this, J, Math.min(x(this, J), x(this, st).max.top)), M(this, J, Math.max(x(this, J), x(this, st).min.top)), M(this, K, Math.min(x(this, K), x(this, st).max.left)), M(this, K, Math.max(x(this, K), x(this, st).min.left))), x(this, W).style.setProperty("--top", x(this, J) + "px"), x(this, W).style.setProperty("--left", x(this, K) + "px");
7085
+ x(this, st) && (_(this, J, Math.min(x(this, J), x(this, st).max.top)), _(this, J, Math.max(x(this, J), x(this, st).min.top)), _(this, K, Math.min(x(this, K), x(this, st).max.left)), _(this, K, Math.max(x(this, K), x(this, st).min.left))), x(this, W).style.setProperty("--top", x(this, J) + "px"), x(this, W).style.setProperty("--left", x(this, K) + "px");
6903
7086
  }
6904
7087
  mousedown(s) {
6905
7088
  if (!x(this, W)) return console.error("No DOM");
6906
7089
  if (x(this, bt) && s.target != x(this, bt)) return;
6907
- document.body.classList.add("no-select"), M(this, ft, !0);
7090
+ document.body.classList.add("no-select"), _(this, ft, !0);
6908
7091
  const t = x(this, W).getBoundingClientRect(), { pageX: e, pageY: i } = s;
6909
- M(this, xt, e), M(this, Pt, i), M(this, J, t.y), M(this, K, t.x);
7092
+ _(this, xt, e), _(this, Pt, i), _(this, J, t.y), _(this, K, t.x);
6910
7093
  }
6911
7094
  mousemove(s) {
6912
7095
  const { pageX: t, pageY: e } = s;
6913
- x(this, ft) && (M(this, J, x(this, J) + (e - x(this, Pt))), M(this, K, x(this, K) + (t - x(this, xt))), M(this, xt, t), M(this, Pt, e), this.alterLocation());
7096
+ x(this, ft) && (_(this, J, x(this, J) + (e - x(this, Pt))), _(this, K, x(this, K) + (t - x(this, xt))), _(this, xt, t), _(this, Pt, e), this.alterLocation());
6914
7097
  }
6915
7098
  mouseup() {
6916
- x(this, ft) && (M(this, ft, !1), document.body.classList.remove("no-select"));
7099
+ x(this, ft) && (_(this, ft, !1), document.body.classList.remove("no-select"));
6917
7100
  }
6918
7101
  }
6919
7102
  W = new WeakMap(), ft = new WeakMap(), mt = new WeakMap(), xt = new WeakMap(), Pt = new WeakMap(), J = new WeakMap(), K = new WeakMap(), st = new WeakMap(), bt = new WeakMap();
6920
- var q, gt, pt, Ct, St, $, Z, z, Et, _t;
6921
- class xn {
7103
+ var $, gt, pt, Ct, St, q, Z, B, Et, Mt;
7104
+ class Pn {
6922
7105
  constructor() {
6923
- L(this, q);
7106
+ L(this, $);
6924
7107
  L(this, gt, !1);
6925
7108
  L(this, pt, {});
6926
7109
  L(this, Ct, 0);
6927
7110
  L(this, St, 0);
6928
- L(this, $, 0);
7111
+ L(this, q, 0);
6929
7112
  L(this, Z, 0);
6930
- L(this, z);
7113
+ L(this, B);
6931
7114
  L(this, Et);
6932
- L(this, _t);
7115
+ L(this, Mt);
6933
7116
  }
6934
7117
  init(s, t = {}) {
6935
- this.finish(), M(this, q, s), M(this, z, t.limit), M(this, Et, t.update_move), M(this, _t, t.update_up), M(this, pt, {
7118
+ this.finish(), _(this, $, s), _(this, B, t.limit), _(this, Et, t.update_move), _(this, Mt, t.update_up), _(this, pt, {
6936
7119
  mousedown: this.mousedown.bind(this),
6937
7120
  mousemove: this.mousemove.bind(this),
6938
7121
  mouseup: this.mouseup.bind(this)
@@ -6943,17 +7126,17 @@ class xn {
6943
7126
  }
6944
7127
  bindOrUnbindEvent(s) {
6945
7128
  const t = s === "bind" ? "addEventListener" : "removeEventListener";
6946
- if (!x(this, q)) return console.error("No DOM");
6947
- x(this, q)[t]("mousedown", x(this, pt).mousedown), document[t]("mousemove", x(this, pt).mousemove), document[t]("mouseup", x(this, pt).mouseup);
7129
+ if (!x(this, $)) return console.error("No DOM");
7130
+ x(this, $)[t]("mousedown", x(this, pt).mousedown), document[t]("mousemove", x(this, pt).mousemove), document[t]("mouseup", x(this, pt).mouseup);
6948
7131
  }
6949
7132
  updateValue() {
6950
7133
  const s = {
6951
- top: x(this, $),
7134
+ top: x(this, q),
6952
7135
  left: x(this, Z),
6953
7136
  percentage: { top: 0, left: 0 }
6954
7137
  };
6955
- if (x(this, z)) {
6956
- const t = (e) => x(this, z) ? (s[e] - x(this, z).min[e]) / (x(this, z).max[e] - x(this, z).min[e]) : 0;
7138
+ if (x(this, B)) {
7139
+ const t = (e) => x(this, B) ? (s[e] - x(this, B).min[e]) / (x(this, B).max[e] - x(this, B).min[e]) : 0;
6957
7140
  s.percentage = {
6958
7141
  top: t("top") || 0,
6959
7142
  left: t("left") || 0
@@ -6962,27 +7145,27 @@ class xn {
6962
7145
  return s;
6963
7146
  }
6964
7147
  alterLocation() {
6965
- if (!x(this, q)) return console.error("No DOM");
6966
- x(this, z) && (M(this, $, Math.min(x(this, $), x(this, z).max.top)), M(this, $, Math.max(x(this, $), x(this, z).min.top)), M(this, Z, Math.min(x(this, Z), x(this, z).max.left)), M(this, Z, Math.max(x(this, Z), x(this, z).min.left))), x(this, Et) && x(this, Et).call(this, this.updateValue()), x(this, q).style.setProperty("--top", x(this, $) + "px"), x(this, q).style.setProperty("--left", x(this, Z) + "px");
7148
+ if (!x(this, $)) return console.error("No DOM");
7149
+ x(this, B) && (_(this, q, Math.min(x(this, q), x(this, B).max.top)), _(this, q, Math.max(x(this, q), x(this, B).min.top)), _(this, Z, Math.min(x(this, Z), x(this, B).max.left)), _(this, Z, Math.max(x(this, Z), x(this, B).min.left))), x(this, Et) && x(this, Et).call(this, this.updateValue()), x(this, $).style.setProperty("--top", x(this, q) + "px"), x(this, $).style.setProperty("--left", x(this, Z) + "px");
6967
7150
  }
6968
7151
  mousedown(s) {
6969
- if (!x(this, q)) return console.error("No DOM");
6970
- document.body.classList.add("no-select"), M(this, gt, !0);
6971
- const t = x(this, q).getBoundingClientRect();
6972
- M(this, St, t.y), M(this, Ct, t.x);
7152
+ if (!x(this, $)) return console.error("No DOM");
7153
+ document.body.classList.add("no-select"), _(this, gt, !0);
7154
+ const t = x(this, $).getBoundingClientRect();
7155
+ _(this, St, t.y), _(this, Ct, t.x);
6973
7156
  const { pageX: e, pageY: i } = s;
6974
- M(this, $, i - x(this, St)), M(this, Z, e - x(this, Ct)), this.alterLocation();
7157
+ _(this, q, i - x(this, St)), _(this, Z, e - x(this, Ct)), this.alterLocation();
6975
7158
  }
6976
7159
  mousemove(s) {
6977
7160
  const { pageX: t, pageY: e } = s;
6978
- x(this, gt) && (M(this, $, e - x(this, St)), M(this, Z, t - x(this, Ct)), this.alterLocation());
7161
+ x(this, gt) && (_(this, q, e - x(this, St)), _(this, Z, t - x(this, Ct)), this.alterLocation());
6979
7162
  }
6980
7163
  mouseup() {
6981
- x(this, gt) && (M(this, gt, !1), document.body.classList.remove("no-select"), x(this, _t) && x(this, _t).call(this, this.updateValue()));
7164
+ x(this, gt) && (_(this, gt, !1), document.body.classList.remove("no-select"), x(this, Mt) && x(this, Mt).call(this, this.updateValue()));
6982
7165
  }
6983
7166
  }
6984
- q = new WeakMap(), gt = new WeakMap(), pt = new WeakMap(), Ct = new WeakMap(), St = new WeakMap(), $ = new WeakMap(), Z = new WeakMap(), z = new WeakMap(), Et = new WeakMap(), _t = new WeakMap();
6985
- function Pn(r, s) {
7167
+ $ = new WeakMap(), gt = new WeakMap(), pt = new WeakMap(), Ct = new WeakMap(), St = new WeakMap(), q = new WeakMap(), Z = new WeakMap(), B = new WeakMap(), Et = new WeakMap(), Mt = new WeakMap();
7168
+ function bn(r, s) {
6986
7169
  if (typeof r == "number") return r;
6987
7170
  if (/px/.test(r)) return Number(r.replace(/px/, "")) || 0;
6988
7171
  const t = document.createElement("div");
@@ -6990,7 +7173,7 @@ function Pn(r, s) {
6990
7173
  const e = t.getBoundingClientRect().width;
6991
7174
  return s.removeChild(t), e;
6992
7175
  }
6993
- function bn(r, s) {
7176
+ function Cn(r, s) {
6994
7177
  if (!r) return;
6995
7178
  let t, e;
6996
7179
  if (typeof s == "string") {
@@ -7007,7 +7190,7 @@ function bn(r, s) {
7007
7190
  const i = t / e;
7008
7191
  return i > r ? [r * e, e] : i < r ? [t, t / r] : [t, e];
7009
7192
  }
7010
- function Cn(r, s = 5e3) {
7193
+ function Sn(r, s = 5e3) {
7011
7194
  return new Promise((t, e) => {
7012
7195
  const i = new Image();
7013
7196
  i.src = r;
@@ -7023,7 +7206,7 @@ function Cn(r, s = 5e3) {
7023
7206
  }, i.crossOrigin = "Anonymous";
7024
7207
  });
7025
7208
  }
7026
- function Sn(r) {
7209
+ function En(r) {
7027
7210
  const t = document.getElementById(r).querySelectorAll("img"), e = t.length, i = [];
7028
7211
  let n = 0;
7029
7212
  return e === 0 ? Promise.resolve({
@@ -7065,13 +7248,22 @@ function Sn(r) {
7065
7248
  });
7066
7249
  });
7067
7250
  }
7068
- function En(r) {
7251
+ function Mn(r) {
7069
7252
  return new Promise((s, t) => {
7070
7253
  fetch(r).then((e) => s(e.text())).catch((e) => {
7071
7254
  console.error("Error fetching :", e), t(e);
7072
7255
  });
7073
7256
  });
7074
7257
  }
7258
+ function _n(r) {
7259
+ const s = document.createElement("input");
7260
+ return s.type = "file", s.accept = (r == null ? void 0 : r.accept) || "", s.multiple = (r == null ? void 0 : r.multiple) || !1, new Promise((t, e) => {
7261
+ s.addEventListener("change", (i) => {
7262
+ const n = i.target.files;
7263
+ n ? t(Array.from(n)) : e();
7264
+ }), s.click();
7265
+ });
7266
+ }
7075
7267
  function _s(r) {
7076
7268
  const {
7077
7269
  href: s,
@@ -7111,7 +7303,7 @@ function _s(r) {
7111
7303
  !a && l && u();
7112
7304
  } };
7113
7305
  }
7114
- function _n(r, s, t) {
7306
+ function Rn(r, s, t) {
7115
7307
  if (!t) {
7116
7308
  let n = s.replace(/^[^.]+./, "");
7117
7309
  n = n == s ? "text/plain" : "application/" + n, t = { type: n };
@@ -7119,16 +7311,16 @@ function _n(r, s, t) {
7119
7311
  const e = new Blob(r, t), i = URL.createObjectURL(e);
7120
7312
  _s({ href: i, fileName: s });
7121
7313
  }
7122
- const Ms = Math.PI / 2, Kt = Math.PI / 180, te = 6378137, Ds = 85.05112878;
7123
- function Mn(r, s) {
7314
+ const Rs = Math.PI / 2, Kt = Math.PI / 180, te = 6378137, Ds = 85.05112878;
7315
+ function Dn(r, s) {
7124
7316
  const t = Math.max(Math.min(r, 180), -180), e = Math.max(Math.min(s, Ds), -85.05112878), i = t * Kt * te, n = e * Kt, o = Math.log(Math.tan(Math.PI / 4 + n / 2)) * te;
7125
7317
  return [i, o];
7126
7318
  }
7127
- function Dn(r, s) {
7128
- const t = r / te / Kt, e = (2 * Math.atan(Math.exp(s / te)) - Ms) / Kt;
7319
+ function kn(r, s) {
7320
+ const t = r / te / Kt, e = (2 * Math.atan(Math.exp(s / te)) - Rs) / Kt;
7129
7321
  return [t, e];
7130
7322
  }
7131
- function Rs(r, s, t) {
7323
+ function ks(r, s, t) {
7132
7324
  const [e, i] = r, [n, o] = s, [a, l] = t, c = (a - n) ** 2 + (l - o) ** 2;
7133
7325
  if (c === 0) return Math.sqrt((e - n) ** 2 + (i - o) ** 2);
7134
7326
  let h = ((e - n) * (a - n) + (i - o) * (l - o)) / c;
@@ -7136,21 +7328,21 @@ function Rs(r, s, t) {
7136
7328
  (e - (n + h * (a - n))) ** 2 + (i - (o + h * (l - o))) ** 2
7137
7329
  );
7138
7330
  }
7139
- function Rn(r, s, t, e, i, n = 1, o = 1) {
7331
+ function Vn(r, s, t, e, i, n = 1, o = 1) {
7140
7332
  const a = r + t * Math.cos(e) * n, l = s + t * Math.sin(e) * o, c = r + t * Math.cos(i) * n, h = s + t * Math.sin(i) * o;
7141
7333
  return [
7142
7334
  [a, l],
7143
7335
  [c, h]
7144
7336
  ];
7145
7337
  }
7146
- function De(r, s, t, e) {
7338
+ function Re(r, s, t, e) {
7147
7339
  return Math.hypot(Math.abs(t - r), Math.abs(e - s));
7148
7340
  }
7149
- function $e(r, s, t, e) {
7341
+ function qe(r, s, t, e) {
7150
7342
  const i = (r + t) / 2, n = (s + e) / 2;
7151
7343
  return { x: i, y: n };
7152
7344
  }
7153
- function kn(r, s, t, e) {
7345
+ function An(r, s, t, e) {
7154
7346
  const [i, n] = r, [o, a] = s;
7155
7347
  let l = 1 / 0;
7156
7348
  if (o !== 0) {
@@ -7163,7 +7355,7 @@ function kn(r, s, t, e) {
7163
7355
  }
7164
7356
  return l === 1 / 0 ? r : [i + o * l, n + a * l];
7165
7357
  }
7166
- const ks = /* @__PURE__ */ new Set([
7358
+ const Vs = /* @__PURE__ */ new Set([
7167
7359
  "sin",
7168
7360
  "cos",
7169
7361
  "tan",
@@ -7171,9 +7363,9 @@ const ks = /* @__PURE__ */ new Set([
7171
7363
  "acos",
7172
7364
  "atan",
7173
7365
  "atan2"
7174
- ]), Vn = new Proxy(Math, {
7366
+ ]), On = new Proxy(Math, {
7175
7367
  get(r, s) {
7176
- return ks.has(s) ? function(...t) {
7368
+ return Vs.has(s) ? function(...t) {
7177
7369
  const e = t.map((i) => i / 180 * Math.PI);
7178
7370
  return r[s](...e);
7179
7371
  } : r[s];
@@ -7204,21 +7396,21 @@ class wt {
7204
7396
  }) : s ? (t = this.resolve) == null || t.call(this) : (e = this.reject) == null || e.call(this), s;
7205
7397
  }
7206
7398
  }
7207
- class Vs extends wt {
7399
+ class As extends wt {
7208
7400
  constructor(s) {
7209
7401
  super(), this.resolve = s;
7210
7402
  }
7211
7403
  warning(...s) {
7212
7404
  const t = () => {
7213
7405
  var e, i;
7214
- return (i = (e = Dt.tips).warning) == null ? void 0 : i.call(e, ...s);
7406
+ return (i = (e = Rt.tips).warning) == null ? void 0 : i.call(e, ...s);
7215
7407
  };
7216
7408
  return new wt(this.resolve, t);
7217
7409
  }
7218
7410
  error(...s) {
7219
7411
  const t = () => {
7220
7412
  var e, i;
7221
- return (i = (e = Dt.tips).error) == null ? void 0 : i.call(e, ...s);
7413
+ return (i = (e = Rt.tips).error) == null ? void 0 : i.call(e, ...s);
7222
7414
  };
7223
7415
  return new wt(this.resolve, t);
7224
7416
  }
@@ -7230,136 +7422,138 @@ class Os extends wt {
7230
7422
  info(...s) {
7231
7423
  const t = () => {
7232
7424
  var e, i;
7233
- return (i = (e = Dt.tips).info) == null ? void 0 : i.call(e, ...s);
7425
+ return (i = (e = Rt.tips).info) == null ? void 0 : i.call(e, ...s);
7234
7426
  };
7235
7427
  return new wt(t, this.reject);
7236
7428
  }
7237
7429
  success(...s) {
7238
7430
  const t = () => {
7239
7431
  var e, i;
7240
- return (i = (e = Dt.tips).success) == null ? void 0 : i.call(e, ...s);
7432
+ return (i = (e = Rt.tips).success) == null ? void 0 : i.call(e, ...s);
7241
7433
  };
7242
7434
  return new wt(t, this.reject);
7243
7435
  }
7244
7436
  }
7245
- const B = class B {
7437
+ const z = class z {
7246
7438
  /**
7247
7439
  * 构造函数
7248
7440
  * @throws 如果尝试实例化该类,则抛出错误,因为应该使用静态方法
7249
7441
  */
7250
7442
  constructor() {
7251
- if (new.target === B)
7443
+ if (new.target === z)
7252
7444
  throw new Error("请直接使用静态方法,而不是实例化此类");
7253
7445
  }
7254
7446
  static register(s, t) {
7255
7447
  if (typeof t != "function")
7256
7448
  return console.error("TipHandler must be a function");
7257
- B.tips[s] = t;
7449
+ z.tips[s] = t;
7258
7450
  }
7259
7451
  static resolveTip(s) {
7260
7452
  return function(...t) {
7261
7453
  const e = () => {
7262
7454
  var i, n;
7263
- return (n = (i = B.tips)[s]) == null ? void 0 : n.call(i, ...t);
7455
+ return (n = (i = z.tips)[s]) == null ? void 0 : n.call(i, ...t);
7264
7456
  };
7265
- return new Vs(e);
7457
+ return new As(e);
7266
7458
  };
7267
7459
  }
7268
7460
  static rejectTip(s) {
7269
7461
  return function(...t) {
7270
7462
  const e = () => {
7271
7463
  var i, n;
7272
- return (n = (i = B.tips)[s]) == null ? void 0 : n.call(i, ...t);
7464
+ return (n = (i = z.tips)[s]) == null ? void 0 : n.call(i, ...t);
7273
7465
  };
7274
7466
  return new Os(e);
7275
7467
  };
7276
7468
  }
7277
7469
  };
7278
- d(B, "tips", {
7470
+ d(z, "tips", {
7279
7471
  info: void 0,
7280
7472
  success: void 0,
7281
7473
  warning: void 0,
7282
7474
  error: void 0
7283
- }), d(B, "info", B.resolveTip("info")), d(B, "success", B.resolveTip("success")), d(B, "warning", B.rejectTip("warning")), d(B, "error", B.rejectTip("error"));
7284
- let Dt = B;
7475
+ }), d(z, "info", z.resolveTip("info")), d(z, "success", z.resolveTip("success")), d(z, "warning", z.rejectTip("warning")), d(z, "error", z.rejectTip("error"));
7476
+ let Rt = z;
7285
7477
  export {
7286
7478
  Je as EXTENSION_TO_MIME,
7287
7479
  re as FILE_EXTENSIONS,
7288
- Re as PAPER_SIZE_DEFINITIONS,
7289
- Ts as PAPER_SIZE_OPTIONS,
7480
+ De as PAPER_SIZE_DEFINITIONS,
7481
+ Is as PAPER_SIZE_OPTIONS,
7290
7482
  Pe as UNIT_LABELS,
7291
- Ls as WINDOW_TARGET,
7292
- Is as _Animate_CreateOscillator,
7293
- Ns as _Animate_CubicBezier,
7483
+ Ts as WINDOW_TARGET,
7484
+ Ns as _Animate_CreateOscillator,
7485
+ Hs as _Animate_CubicBezier,
7294
7486
  Ke as _Animate_NumericTransition,
7295
7487
  Wt as _Animate_Schedule,
7296
- Hs as _Blob_ConvertDataToImageUrl,
7297
- hn as _Browser_CalculatePrintableArea,
7298
- cn as _Browser_CopyToClipboard,
7299
- ln as _Browser_GetFrameRate,
7300
- un as _Browser_IdleDetection,
7488
+ Fs as _Blob_ConvertDataToImageUrl,
7489
+ un as _Browser_CalculatePrintableArea,
7490
+ hn as _Browser_CopyToClipboard,
7491
+ cn as _Browser_GetFrameRate,
7492
+ dn as _Browser_IdleDetection,
7301
7493
  Nt as _Browser_SameOriginTabManager,
7302
- on as _Browser_SoundEffects,
7303
- an as _Browser_WebSocketClient,
7494
+ an as _Browser_SoundEffects,
7495
+ ln as _Browser_WebSocketClient,
7304
7496
  T as _Canvas_Axis,
7305
- fn as _Canvas_TimeAxis,
7306
- bn as _Element_CalculateCanvasSize,
7307
- Sn as _Element_CheckImagesLoaded,
7308
- yn as _Element_CloseOnOutsideClick,
7309
- wn as _Element_Drag,
7497
+ mn as _Canvas_TimeAxis,
7498
+ Cn as _Element_CalculateCanvasSize,
7499
+ En as _Element_CheckImagesLoaded,
7500
+ wn as _Element_CloseOnOutsideClick,
7501
+ xn as _Element_Drag,
7310
7502
  We as _Element_EnterFullscreen,
7311
- qe as _Element_ExitFullscreen,
7312
- mn as _Element_Fullscreen,
7313
- pn as _Element_FullscreenController,
7314
- gn as _Element_FullscreenObserver,
7315
- Pn as _Element_GetOtherSizeInPixels,
7503
+ $e as _Element_ExitFullscreen,
7504
+ gn as _Element_Fullscreen,
7505
+ vn as _Element_FullscreenController,
7506
+ pn as _Element_FullscreenObserver,
7507
+ bn as _Element_GetOtherSizeInPixels,
7316
7508
  Jt as _Element_IsFullscreen,
7317
- Cn as _Element_LoadImage,
7318
- xn as _Element_LocalDrag,
7319
- vn as _Element_ScrollEndListener,
7320
- _n as _File_CreateAndDownload,
7509
+ Sn as _Element_LoadImage,
7510
+ Pn as _Element_LocalDrag,
7511
+ yn as _Element_ScrollEndListener,
7512
+ Rn as _File_CreateAndDownload,
7321
7513
  _s as _File_Download,
7322
- En as _File_Read,
7323
- Us as _Format_CamelCase,
7324
- Fs as _Format_CapitalizeFirstLetter,
7325
- Ws as _Format_ChunkArray,
7326
- Xs as _Format_ExcludeSubstring,
7514
+ Mn as _File_Read,
7515
+ _n as _File_Select,
7516
+ Xs as _Format_CamelCase,
7517
+ zs as _Format_CapitalizeFirstLetter,
7518
+ $s as _Format_ChunkArray,
7519
+ Ys as _Format_ExcludeSubstring,
7327
7520
  Gs as _Format_FileSize,
7328
7521
  ce as _Format_HrefName,
7329
- js as _Format_MillisecondToReadable,
7522
+ Ws as _Format_MillisecondToReadable,
7330
7523
  le as _Format_NumberWithCommas,
7331
- zs as _Format_NumberWithUnit,
7524
+ Us as _Format_NumberWithUnit,
7332
7525
  Bs as _Format_Percentage,
7333
7526
  ti as _Format_Timestamp,
7334
- Ys as _Format_ToggleInvisibleChars,
7335
- De as _Math_CalculateDistance2D,
7336
- Vn as _Math_Degree,
7337
- Rn as _Math_GetArcPoints,
7338
- kn as _Math_GetBoundaryIntersection,
7339
- $e as _Math_GetMidpoint,
7340
- Mn as _Math_LngLatToPlane,
7341
- Dn as _Math_PlaneToLngLat,
7342
- Rs as _Math_PointToLineDistance,
7343
- Dt as _Tip,
7527
+ js as _Format_ToggleInvisibleChars,
7528
+ Re as _Math_CalculateDistance2D,
7529
+ On as _Math_Degree,
7530
+ Vn as _Math_GetArcPoints,
7531
+ An as _Math_GetBoundaryIntersection,
7532
+ qe as _Math_GetMidpoint,
7533
+ Dn as _Math_LngLatToPlane,
7534
+ kn as _Math_PlaneToLngLat,
7535
+ ks as _Math_PointToLineDistance,
7536
+ Rt as _Tip,
7344
7537
  si as _Utility_Clone,
7538
+ ri as _Utility_ColorConverter,
7345
7539
  Le as _Utility_Debounce,
7346
- Ks as _Utility_ExecuteWhenIdle,
7540
+ tn as _Utility_ExecuteWhenIdle,
7347
7541
  ue as _Utility_GenerateUUID,
7348
- en as _Utility_GetTargetByPath,
7542
+ sn as _Utility_GetTargetByPath,
7349
7543
  ct as _Utility_MergeObjects,
7350
- nn as _Utility_RotateList,
7351
- sn as _Utility_SetTargetByPath,
7352
- rn as _Utility_Sleep,
7353
- tn as _Utility_Throttle,
7544
+ rn as _Utility_RotateList,
7545
+ nn as _Utility_SetTargetByPath,
7546
+ on as _Utility_Sleep,
7547
+ en as _Utility_Throttle,
7354
7548
  ni as _Utility_TimeConsumption,
7355
7549
  ii as _Utility_WaitForCondition,
7356
- Js as _Valid_CheckConnectionWithXHR,
7550
+ Ks as _Valid_CheckConnectionWithXHR,
7357
7551
  he as _Valid_DataType,
7358
- Zs as _Valid_DoesInfiniteLineIntersectRectangle,
7552
+ Qs as _Valid_DoesInfiniteLineIntersectRectangle,
7359
7553
  be as _Valid_FileTypeChecker,
7360
- qt as _Valid_Is2DNumberArray,
7554
+ $t as _Valid_Is2DNumberArray,
7361
7555
  qs as _Valid_IsInMargin,
7362
7556
  ve as _Valid_IsNumberArray,
7363
- $s as _Valid_IsPointInPolygon,
7364
- Qs as _Valid_IsSecureContext
7557
+ Zs as _Valid_IsPointInPolygon,
7558
+ Js as _Valid_IsSecureContext
7365
7559
  };