onchain-uikit 5.0.2 → 5.0.3

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/xlsx.js CHANGED
@@ -118,9 +118,9 @@ function br(e) {
118
118
  i = _t.indexOf(e.charAt(o++)), s = _t.indexOf(e.charAt(o++)), r = i << 2 | s >> 4, t += String.fromCharCode(r), f = _t.indexOf(e.charAt(o++)), a = (s & 15) << 4 | f >> 2, f !== 64 && (t += String.fromCharCode(a)), c = _t.indexOf(e.charAt(o++)), n = (f & 3) << 6 | c, c !== 64 && (t += String.fromCharCode(n));
119
119
  return t;
120
120
  }
121
- var Te = /* @__PURE__ */ function() {
121
+ var Te = /* @__PURE__ */ (function() {
122
122
  return typeof Buffer < "u" && typeof process < "u" && typeof process.versions < "u" && !!process.versions.node;
123
- }(), xt = /* @__PURE__ */ function() {
123
+ })(), xt = /* @__PURE__ */ (function() {
124
124
  if (typeof Buffer < "u") {
125
125
  var e = !Buffer.from;
126
126
  if (!e) try {
@@ -134,7 +134,7 @@ var Te = /* @__PURE__ */ function() {
134
134
  }
135
135
  return function() {
136
136
  };
137
- }();
137
+ })();
138
138
  function Tt(e) {
139
139
  return Te ? Buffer.alloc ? Buffer.alloc(e) : new Buffer(e) : typeof Uint8Array < "u" ? new Uint8Array(e) : new Array(e);
140
140
  }
@@ -395,7 +395,7 @@ function wt(e, t, r) {
395
395
  var ds = /* @__PURE__ */ new Date(1899, 11, 31, 0, 0, 0), Zc = /* @__PURE__ */ ds.getTime(), qc = /* @__PURE__ */ new Date(1900, 2, 1, 0, 0, 0);
396
396
  function vs(e, t) {
397
397
  var r = /* @__PURE__ */ e.getTime();
398
- return t ? r -= 1461 * 24 * 60 * 60 * 1e3 : e >= qc && (r += 24 * 60 * 60 * 1e3), (r - (Zc + (/* @__PURE__ */ e.getTimezoneOffset() - /* @__PURE__ */ ds.getTimezoneOffset()) * 6e4)) / (24 * 60 * 60 * 1e3);
398
+ return t ? r -= 1461 * 24 * 60 * 60 * 1e3 : e >= qc && (r += 1440 * 60 * 1e3), (r - (Zc + (/* @__PURE__ */ e.getTimezoneOffset() - /* @__PURE__ */ ds.getTimezoneOffset()) * 6e4)) / (1440 * 60 * 1e3);
399
399
  }
400
400
  function dn(e) {
401
401
  return e.indexOf(".") == -1 ? e : e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
@@ -1301,7 +1301,7 @@ function _o(e, t, r) {
1301
1301
  var l = ("00" + (s >= 0 ? s : 0)).slice(-2) + ":" + ("00" + (f >= 0 ? f : 0)).slice(-2) + ":" + ("00" + (c >= 0 ? c : 0)).slice(-2);
1302
1302
  return s == -1 && f == -1 && c == -1 ? o : a == -1 && n == -1 && i == -1 ? l : o + "T" + l;
1303
1303
  }
1304
- var wo = /* @__PURE__ */ function() {
1304
+ var wo = /* @__PURE__ */ (function() {
1305
1305
  var e = {};
1306
1306
  e.version = "1.2.0";
1307
1307
  function t() {
@@ -1335,7 +1335,7 @@ var wo = /* @__PURE__ */ function() {
1335
1335
  return ~I;
1336
1336
  }
1337
1337
  return e.table = r, e.bstr = D, e.buf = b, e.str = N, e;
1338
- }(), xe = /* @__PURE__ */ function() {
1338
+ })(), xe = /* @__PURE__ */ (function() {
1339
1339
  var t = {};
1340
1340
  t.version = "1.2.1";
1341
1341
  function r(m, E) {
@@ -1642,7 +1642,7 @@ var wo = /* @__PURE__ */ function() {
1642
1642
  case "zip":
1643
1643
  return Oc(m, _);
1644
1644
  }
1645
- var k = function(ue) {
1645
+ var k = (function(ue) {
1646
1646
  for (var ee = 0, oe = 0, _e = 0; _e < ue.FileIndex.length; ++_e) {
1647
1647
  var Xe = ue.FileIndex[_e];
1648
1648
  if (Xe.content) {
@@ -1653,7 +1653,7 @@ var wo = /* @__PURE__ */ function() {
1653
1653
  for (var xr = ue.FullPaths.length + 3 >> 2, pa = ee + 7 >> 3, ma = ee + 127 >> 7, ga = pa + oe + xr + ma, It = ga + 127 >> 7, L0 = It <= 109 ? 0 : Math.ceil((It - 109) / 127); ga + It + L0 + 127 >> 7 > It; ) L0 = ++It <= 109 ? 0 : Math.ceil((It - 109) / 127);
1654
1654
  var ot = [1, L0, It, ma, xr, oe, ee, 0];
1655
1655
  return ue.FileIndex[0].size = ee << 6, ot[7] = (ue.FileIndex[0].start = ot[0] + ot[1] + ot[2] + ot[3] + ot[4] + ot[5]) + (ot[6] + 7 >> 3), ot;
1656
- }(m), T = G(k[7] << 9), S = 0, U = 0;
1656
+ })(m), T = G(k[7] << 9), S = 0, U = 0;
1657
1657
  {
1658
1658
  for (S = 0; S < 8; ++S) T.write_shift(1, ie[S]);
1659
1659
  for (S = 0; S < 8; ++S) T.write_shift(2, 0);
@@ -1892,7 +1892,7 @@ var wo = /* @__PURE__ */ function() {
1892
1892
  for (; E <= 287; E++) _.push(8);
1893
1893
  ct(_, mt, 288);
1894
1894
  })();
1895
- var qr = /* @__PURE__ */ function() {
1895
+ var qr = /* @__PURE__ */ (function() {
1896
1896
  for (var E = Q ? new Uint8Array(32768) : [], _ = 0, k = 0; _ < re.length - 1; ++_)
1897
1897
  for (; k < re[_ + 1]; ++k) E[k] = _;
1898
1898
  for (; k < 32768; ++k) E[k] = 29;
@@ -1943,7 +1943,7 @@ var wo = /* @__PURE__ */ function() {
1943
1943
  return function(M, W) {
1944
1944
  return M.length < 8 ? S(M, W) : U(M, W);
1945
1945
  };
1946
- }();
1946
+ })();
1947
1947
  function Se(m) {
1948
1948
  var E = G(50 + Math.floor(m.length * 1.1)), _ = qr(m, E);
1949
1949
  return E.slice(0, _);
@@ -1991,7 +1991,7 @@ var wo = /* @__PURE__ */ function() {
1991
1991
  function Cc(m, E) {
1992
1992
  if (m[0] == 3 && !(m[1] & 3))
1993
1993
  return [Tt(E), 2];
1994
- for (var _ = 0, k = 0, T = si(E || 1 << 18), S = 0, U = T.length >>> 0, K = 0, M = 0; !(k & 1); ) {
1994
+ for (var _ = 0, k = 0, T = si(E || 1 << 18), S = 0, U = T.length >>> 0, K = 0, M = 0; (k & 1) == 0; ) {
1995
1995
  if (k = Ce(m, _), _ += 3, k >>> 1)
1996
1996
  k >> 1 == 1 ? (K = 9, M = 5) : (_ = Ac(m, _), K = Ot, M = ti);
1997
1997
  else {
@@ -2005,7 +2005,7 @@ var wo = /* @__PURE__ */ function() {
2005
2005
  for (; ; ) {
2006
2006
  !E && U < S + 32767 && (T = pt(T, S + 32767), U = T.length);
2007
2007
  var H = Je(m, _, K), q = k >>> 1 == 1 ? mt[H] : Ze[H];
2008
- if (_ += q & 15, q >>>= 4, !(q >>> 8 & 255)) T[S++] = q;
2008
+ if (_ += q & 15, q >>>= 4, (q >>> 8 & 255) === 0) T[S++] = q;
2009
2009
  else {
2010
2010
  if (q == 256) break;
2011
2011
  q -= 257;
@@ -2294,7 +2294,7 @@ var wo = /* @__PURE__ */ function() {
2294
2294
  _inflateRaw: ai,
2295
2295
  consts: ce
2296
2296
  }, t;
2297
- }();
2297
+ })();
2298
2298
  let Et;
2299
2299
  function Wg(e) {
2300
2300
  Et = e;
@@ -2382,7 +2382,7 @@ function To(e) {
2382
2382
  var v0 = /* @__PURE__ */ new Date(1899, 11, 30, 0, 0, 0);
2383
2383
  function ir(e, t) {
2384
2384
  var r = /* @__PURE__ */ e.getTime(), a = /* @__PURE__ */ v0.getTime() + (/* @__PURE__ */ e.getTimezoneOffset() - /* @__PURE__ */ v0.getTimezoneOffset()) * 6e4;
2385
- return (r - a) / (24 * 60 * 60 * 1e3);
2385
+ return (r - a) / (1440 * 60 * 1e3);
2386
2386
  }
2387
2387
  var Fs = /* @__PURE__ */ new Date(), So = /* @__PURE__ */ v0.getTime() + (/* @__PURE__ */ Fs.getTimezoneOffset() - /* @__PURE__ */ v0.getTimezoneOffset()) * 6e4, vi = /* @__PURE__ */ Fs.getTimezoneOffset();
2388
2388
  function C0(e) {
@@ -2507,7 +2507,7 @@ function fa(e) {
2507
2507
  } else if (s.match(/[a-z]/)) return r;
2508
2508
  return a < 0 || a > 8099 ? r : (n > 0 || i > 1) && a != 101 ? t : e.match(/[^-0-9:,\/\\]/) ? r : t;
2509
2509
  }
2510
- var Co = /* @__PURE__ */ function() {
2510
+ var Co = /* @__PURE__ */ (function() {
2511
2511
  var e = "abacaba".split(/(:?b)/i).length == 5;
2512
2512
  return function(r, a, n) {
2513
2513
  if (e || typeof a == "string") return r.split(a);
@@ -2515,7 +2515,7 @@ var Co = /* @__PURE__ */ function() {
2515
2515
  s.push(n), s.push(i[f]);
2516
2516
  return s;
2517
2517
  };
2518
- }();
2518
+ })();
2519
2519
  function As(e) {
2520
2520
  return e ? e.content && e.type ? Ut(e.content, !0) : e.data ? ra(e.data) : e.asNodeBuffer && Te ? ra(e.asNodeBuffer().toString("binary")) : e.asBinary ? ra(e.asBinary()) : e._data && e._data.getContent ? ra(Ut(Array.prototype.slice.call(e._data.getContent(), 0))) : null : null;
2521
2521
  }
@@ -2632,7 +2632,7 @@ var Os = {
2632
2632
  "&gt;": ">",
2633
2633
  "&lt;": "<",
2634
2634
  "&amp;": "&"
2635
- }, mn = /* @__PURE__ */ y0(Os), Oe = /* @__PURE__ */ function() {
2635
+ }, mn = /* @__PURE__ */ y0(Os), Oe = /* @__PURE__ */ (function() {
2636
2636
  var e = /&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig, t = /_x([\da-fA-F]{4})_/ig;
2637
2637
  return function r(a) {
2638
2638
  var n = a + "", i = n.indexOf("<![CDATA[");
@@ -2644,7 +2644,7 @@ var Os = {
2644
2644
  var s = n.indexOf("]]>");
2645
2645
  return r(n.slice(0, i)) + n.slice(i + 9, s) + r(n.slice(s + 3));
2646
2646
  };
2647
- }(), gn = /[&<>'"]/g, Po = /[\u0000-\u0008\u000b-\u001f]/g;
2647
+ })(), gn = /[&<>'"]/g, Po = /[\u0000-\u0008\u000b-\u001f]/g;
2648
2648
  function be(e) {
2649
2649
  var t = e + "";
2650
2650
  return t.replace(gn, function(r) {
@@ -2673,7 +2673,7 @@ function Lo(e) {
2673
2673
  return "&#x" + r.charCodeAt(0).toString(16).toUpperCase() + ";";
2674
2674
  });
2675
2675
  }
2676
- var wi = /* @__PURE__ */ function() {
2676
+ var wi = /* @__PURE__ */ (function() {
2677
2677
  var e = /&#(\d+);/g;
2678
2678
  function t(r, a) {
2679
2679
  return String.fromCharCode(parseInt(a, 10));
@@ -2681,7 +2681,7 @@ var wi = /* @__PURE__ */ function() {
2681
2681
  return function(a) {
2682
2682
  return a.replace(e, t);
2683
2683
  };
2684
- }();
2684
+ })();
2685
2685
  function Bo(e) {
2686
2686
  return e.replace(/(\r\n|[\r\n])/g, "&#10;");
2687
2687
  }
@@ -2743,13 +2743,13 @@ var r0 = "foo bar baz☃🍣", Le = Te && (/* @__PURE__ */ Ei(r0) == /* @
2743
2743
  t.push(String.fromCharCode(224 + (a >> 12))), t.push(String.fromCharCode(128 + (a >> 6 & 63))), t.push(String.fromCharCode(128 + (a & 63)));
2744
2744
  }
2745
2745
  return t.join("");
2746
- }, ba = /* @__PURE__ */ function() {
2746
+ }, ba = /* @__PURE__ */ (function() {
2747
2747
  var e = {};
2748
2748
  return function(r, a) {
2749
2749
  var n = r + "|" + (a || "");
2750
2750
  return e[n] ? e[n] : e[n] = new RegExp("<(?:\\w+:)?" + r + '(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?' + r + ">", a || "");
2751
2751
  };
2752
- }(), Rs = /* @__PURE__ */ function() {
2752
+ })(), Rs = /* @__PURE__ */ (function() {
2753
2753
  var e = [
2754
2754
  ["nbsp", " "],
2755
2755
  ["middot", "·"],
@@ -2766,12 +2766,12 @@ var r0 = "foo bar baz☃🍣", Le = Te && (/* @__PURE__ */ Ei(r0) == /* @
2766
2766
  `).replace(/<[^>]*>/g, ""), n = 0; n < e.length; ++n) a = a.replace(e[n][0], e[n][1]);
2767
2767
  return a;
2768
2768
  };
2769
- }(), Mo = /* @__PURE__ */ function() {
2769
+ })(), Mo = /* @__PURE__ */ (function() {
2770
2770
  var e = {};
2771
2771
  return function(r) {
2772
2772
  return e[r] !== void 0 ? e[r] : e[r] = new RegExp("<(?:vt:)?" + r + ">([\\s\\S]*?)</(?:vt:)?" + r + ">", "g");
2773
2773
  };
2774
- }(), Uo = /<\/?(?:vt:)?variant>/g, Wo = /<(?:vt:)([^>]*)>([\s\S]*)</;
2774
+ })(), Uo = /<\/?(?:vt:)?variant>/g, Wo = /<(?:vt:)([^>]*)>([\s\S]*)</;
2775
2775
  function Ti(e, t) {
2776
2776
  var r = me(e), a = e.match(Mo(r.baseType)) || [], n = [];
2777
2777
  if (a.length != r.size) {
@@ -3044,7 +3044,7 @@ function Ta(e, t) {
3044
3044
  return a = (t === "i" ? Go : lt)(this, this.l), this.l += 2, a;
3045
3045
  case 4:
3046
3046
  case -4:
3047
- return t === "i" || !(this[this.l + 3] & 128) ? (a = (e > 0 ? Rt : zo)(this, this.l), this.l += 4, a) : (n = fr(this, this.l), this.l += 4, n);
3047
+ return t === "i" || (this[this.l + 3] & 128) === 0 ? (a = (e > 0 ? Rt : zo)(this, this.l), this.l += 4, a) : (n = fr(this, this.l), this.l += 4, n);
3048
3048
  case 8:
3049
3049
  case -8:
3050
3050
  if (t === "f")
@@ -3349,7 +3349,7 @@ function al(e, t) {
3349
3349
  }
3350
3350
  function Dn(e, t) {
3351
3351
  var r = e.l, a = e.read_shift(1), n = wr(e), i = [], s = { t: n, h: n };
3352
- if (a & 1) {
3352
+ if ((a & 1) !== 0) {
3353
3353
  for (var f = e.read_shift(4), c = 0; c != f; ++c) i.push(tl(e));
3354
3354
  s.r = i;
3355
3355
  } else s.r = [{ ich: 0, ifnt: 0 }];
@@ -4336,13 +4336,13 @@ var zr = [
4336
4336
  ["dc:title", "Title"],
4337
4337
  ["dcterms:created", "CreatedDate", "date"],
4338
4338
  ["dcterms:modified", "ModifiedDate", "date"]
4339
- ], Dl = /* @__PURE__ */ function() {
4339
+ ], Dl = /* @__PURE__ */ (function() {
4340
4340
  for (var e = new Array(zr.length), t = 0; t < zr.length; ++t) {
4341
4341
  var r = zr[t], a = "(?:" + r[0].slice(0, r[0].indexOf(":")) + ":)" + r[0].slice(r[0].indexOf(":") + 1);
4342
4342
  e[t] = new RegExp("<" + a + "[^>]*>([\\s\\S]*?)</" + a + ">");
4343
4343
  }
4344
4344
  return e;
4345
- }();
4345
+ })();
4346
4346
  function qs(e) {
4347
4347
  var t = {};
4348
4348
  e = Le(e);
@@ -5797,7 +5797,7 @@ function Ih(e, t, r) {
5797
5797
  var a = e.l + t, n = st(e), i = e.read_shift(2), s = Ht(e, i, r);
5798
5798
  return e.l = a, n.t = "str", n.val = s, n;
5799
5799
  }
5800
- var Rh = [2, 3, 48, 49, 131, 139, 140, 245], sn = /* @__PURE__ */ function() {
5800
+ var Rh = [2, 3, 48, 49, 131, 139, 140, 245], sn = /* @__PURE__ */ (function() {
5801
5801
  var e = {
5802
5802
  /* Code Pages Supported by Visual FoxPro */
5803
5803
  /*::[*/
@@ -6289,7 +6289,7 @@ var Rh = [2, 3, 48, 49, 131, 139, 140, 245], sn = /* @__PURE__ */ function() {
6289
6289
  to_sheet: a,
6290
6290
  from_sheet: s
6291
6291
  };
6292
- }(), kf = /* @__PURE__ */ function() {
6292
+ })(), kf = /* @__PURE__ */ (function() {
6293
6293
  var e = {
6294
6294
  AA: "À",
6295
6295
  BA: "Á",
@@ -6583,7 +6583,7 @@ var Rh = [2, 3, 48, 49, 131, 139, 140, 245], sn = /* @__PURE__ */ function() {
6583
6583
  to_sheet: s,
6584
6584
  from_sheet: u
6585
6585
  };
6586
- }(), Ef = /* @__PURE__ */ function() {
6586
+ })(), Ef = /* @__PURE__ */ (function() {
6587
6587
  function e(i, s) {
6588
6588
  switch (s.type) {
6589
6589
  case "base64":
@@ -6634,7 +6634,7 @@ var Rh = [2, 3, 48, 49, 131, 139, 140, 245], sn = /* @__PURE__ */ function() {
6634
6634
  function a(i, s) {
6635
6635
  return Ct(r(i, s), s);
6636
6636
  }
6637
- var n = /* @__PURE__ */ function() {
6637
+ var n = /* @__PURE__ */ (function() {
6638
6638
  var i = function(c, o, l, u, x) {
6639
6639
  c.push(o), c.push(l + "," + u), c.push('"' + x.replace(/"/g, '""') + '"');
6640
6640
  }, s = function(c, o, l, u) {
@@ -6675,13 +6675,13 @@ var Rh = [2, 3, 48, 49, 131, 139, 140, 245], sn = /* @__PURE__ */ function() {
6675
6675
  `, y = o.join(w);
6676
6676
  return y;
6677
6677
  };
6678
- }();
6678
+ })();
6679
6679
  return {
6680
6680
  to_workbook: a,
6681
6681
  to_sheet: r,
6682
6682
  from_sheet: n
6683
6683
  };
6684
- }(), Tf = /* @__PURE__ */ function() {
6684
+ })(), Tf = /* @__PURE__ */ (function() {
6685
6685
  function e(u) {
6686
6686
  return u.replace(/\\b/g, "\\").replace(/\\c/g, ":").replace(/\\n/g, `
6687
6687
  `);
@@ -6779,7 +6779,7 @@ var Rh = [2, 3, 48, 49, 131, 139, 140, 245], sn = /* @__PURE__ */ function() {
6779
6779
  to_sheet: a,
6780
6780
  from_sheet: l
6781
6781
  };
6782
- }(), ca = /* @__PURE__ */ function() {
6782
+ })(), ca = /* @__PURE__ */ (function() {
6783
6783
  function e(l, u, x, d, v) {
6784
6784
  v.raw ? u[x][d] = l : l === "" || (l === "TRUE" ? u[x][d] = !0 : l === "FALSE" ? u[x][d] = !1 : isNaN(jr(l)) ? isNaN(fa(l).getDate()) ? u[x][d] = l : u[x][d] = Ve(l) : u[x][d] = jr(l));
6785
6785
  }
@@ -6922,7 +6922,7 @@ var Rh = [2, 3, 48, 49, 131, 139, 140, 245], sn = /* @__PURE__ */ function() {
6922
6922
  to_sheet: f,
6923
6923
  from_sheet: o
6924
6924
  };
6925
- }();
6925
+ })();
6926
6926
  function Nh(e, t) {
6927
6927
  var r = t || {}, a = !!r.WTF;
6928
6928
  r.WTF = !0;
@@ -6934,7 +6934,7 @@ function Nh(e, t) {
6934
6934
  return ca.to_workbook(e, t);
6935
6935
  }
6936
6936
  }
6937
- var Pt = /* @__PURE__ */ function() {
6937
+ var Pt = /* @__PURE__ */ (function() {
6938
6938
  function e(C, P, O) {
6939
6939
  if (C) {
6940
6940
  ur(C, C.l || 0);
@@ -7331,7 +7331,7 @@ var Pt = /* @__PURE__ */ function() {
7331
7331
  if (Y.write_shift(2, C), Y.write_shift(1, O), Y.write_shift(1, P), R == 0)
7332
7332
  return Y.write_shift(4, 0), Y.write_shift(4, 0), Y.write_shift(2, 65535), Y;
7333
7333
  var re = 0, te = 0, Q = 0, Z = 0;
7334
- return R < 0 && (re = 1, R = -R), te = Math.log2(R) | 0, R /= Math.pow(2, te - 31), Z = R >>> 0, Z & 2147483648 || (R /= 2, ++te, Z = R >>> 0), R -= Z, Z |= 2147483648, Z >>>= 0, R *= Math.pow(2, 32), Q = R >>> 0, Y.write_shift(4, Q), Y.write_shift(4, Z), te += 16383 + (re ? 32768 : 0), Y.write_shift(2, te), Y;
7334
+ return R < 0 && (re = 1, R = -R), te = Math.log2(R) | 0, R /= Math.pow(2, te - 31), Z = R >>> 0, (Z & 2147483648) == 0 && (R /= 2, ++te, Z = R >>> 0), R -= Z, Z |= 2147483648, Z >>>= 0, R *= Math.pow(2, 32), Q = R >>> 0, Y.write_shift(4, Q), Y.write_shift(4, Z), te += 16383 + (re ? 32768 : 0), Y.write_shift(2, te), Y;
7335
7335
  }
7336
7336
  function X(C, P) {
7337
7337
  var O = I(C);
@@ -7768,7 +7768,7 @@ var Pt = /* @__PURE__ */ function() {
7768
7768
  book_to_wk3: n,
7769
7769
  to_workbook: t
7770
7770
  };
7771
- }();
7771
+ })();
7772
7772
  function bh(e) {
7773
7773
  var t = {}, r = e.match(Er), a = 0, n = !1;
7774
7774
  if (r) for (; a != r.length; ++a) {
@@ -7915,7 +7915,7 @@ function bh(e) {
7915
7915
  }
7916
7916
  return t;
7917
7917
  }
7918
- var Ph = /* @__PURE__ */ function() {
7918
+ var Ph = /* @__PURE__ */ (function() {
7919
7919
  var e = ba("t"), t = ba("rPr");
7920
7920
  function r(i) {
7921
7921
  var s = i.match(e);
@@ -7929,7 +7929,7 @@ var Ph = /* @__PURE__ */ function() {
7929
7929
  return f.v;
7930
7930
  });
7931
7931
  };
7932
- }(), Lh = /* @__PURE__ */ function() {
7932
+ })(), Lh = /* @__PURE__ */ (function() {
7933
7933
  var t = /(\r\n|\n)/g;
7934
7934
  function r(n, i, s) {
7935
7935
  var f = [];
@@ -7944,7 +7944,7 @@ var Ph = /* @__PURE__ */ function() {
7944
7944
  return function(i) {
7945
7945
  return i.map(a).join("");
7946
7946
  };
7947
- }(), Bh = /<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g, Mh = /<(?:\w+:)?r>/, Uh = /<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;
7947
+ })(), Bh = /<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g, Mh = /<(?:\w+:)?r>/, Uh = /<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;
7948
7948
  function Bn(e, t) {
7949
7949
  var r = t ? t.cellHTML : !0, a = {};
7950
7950
  return e ? (e.match(/^\s*<(?:\w+:)?t[^>]*>/) ? (a.t = Oe(Le(e.slice(e.indexOf(">") + 1).split(/<\/(?:\w+:)?t>/)[0] || "")), a.r = Le(e), r && (a.h = _n(a.t))) : (
@@ -8165,10 +8165,10 @@ function Mn(e) {
8165
8165
  var t = 0, r, a = Ff(e), n = a.length + 1, i, s, f, c, o;
8166
8166
  for (r = Tt(n), r[0] = a.length, i = 1; i != n; ++i) r[i] = a[i - 1];
8167
8167
  for (i = n - 1; i >= 0; --i)
8168
- s = r[i], f = t & 16384 ? 1 : 0, c = t << 1 & 32767, o = f | c, t = o ^ s;
8168
+ s = r[i], f = (t & 16384) === 0 ? 0 : 1, c = t << 1 & 32767, o = f | c, t = o ^ s;
8169
8169
  return t ^ 52811;
8170
8170
  }
8171
- var Cf = /* @__PURE__ */ function() {
8171
+ var Cf = /* @__PURE__ */ (function() {
8172
8172
  var e = [187, 255, 255, 186, 255, 255, 185, 128, 0, 190, 15, 0, 191, 15, 0], t = [57840, 7439, 52380, 33984, 4364, 3600, 61902, 12606, 6258, 57657, 54287, 34041, 10252, 43370, 20163], r = [44796, 19929, 39858, 10053, 20106, 40212, 10761, 31585, 63170, 64933, 60267, 50935, 40399, 11199, 17763, 35526, 1453, 2906, 5812, 11624, 23248, 885, 1770, 3540, 7080, 14160, 28320, 56640, 55369, 41139, 20807, 41614, 21821, 43642, 17621, 28485, 56970, 44341, 19019, 38038, 14605, 29210, 60195, 50791, 40175, 10751, 21502, 43004, 24537, 18387, 36774, 3949, 7898, 15796, 31592, 63184, 47201, 24803, 49606, 37805, 14203, 28406, 56812, 17824, 35648, 1697, 3394, 6788, 13576, 27152, 43601, 17539, 35078, 557, 1114, 2228, 4456, 30388, 60776, 51953, 34243, 7079, 14158, 28316, 14128, 28256, 56512, 43425, 17251, 34502, 7597, 13105, 26210, 52420, 35241, 883, 1766, 3532, 4129, 8258, 16516, 33032, 4657, 9314, 18628], a = function(s) {
8173
8173
  return (s / 2 | s * 128) & 255;
8174
8174
  }, n = function(s, f) {
@@ -8188,7 +8188,7 @@ var Cf = /* @__PURE__ */ function() {
8188
8188
  x = c >> 8, l[o] = n(e[v], x), --o, --v, x = c & 255, l[o] = n(f[o], x), --o, --v;
8189
8189
  return l;
8190
8190
  };
8191
- }(), c1 = function(e, t, r, a, n) {
8191
+ })(), c1 = function(e, t, r, a, n) {
8192
8192
  n || (n = t), a || (a = Cf(e));
8193
8193
  var i, s;
8194
8194
  for (i = 0; i != t.length; ++i)
@@ -8213,7 +8213,7 @@ function h1(e, t, r) {
8213
8213
  var a = { Type: r.biff >= 8 ? e.read_shift(2) : 0 };
8214
8214
  return a.Type ? u1(e, t - 2, a) : l1(e, r.biff >= 8 ? t : t - 2, r, a), a;
8215
8215
  }
8216
- var Df = /* @__PURE__ */ function() {
8216
+ var Df = /* @__PURE__ */ (function() {
8217
8217
  function e(n, i) {
8218
8218
  switch (i.type) {
8219
8219
  case "base64":
@@ -8268,7 +8268,7 @@ var Df = /* @__PURE__ */ function() {
8268
8268
  to_sheet: e,
8269
8269
  from_sheet: a
8270
8270
  };
8271
- }();
8271
+ })();
8272
8272
  function x1(e) {
8273
8273
  var t = e.slice(e[0] === "#" ? 1 : 0).slice(0, 6);
8274
8274
  return [parseInt(t.slice(0, 2), 16), parseInt(t.slice(2, 4), 16), parseInt(t.slice(4, 6), 16)];
@@ -8836,7 +8836,7 @@ function y1(e) {
8836
8836
  t[t.length] = ae("xf", null, r);
8837
8837
  }), t[t.length] = "</cellXfs>", t.length === 2 ? "" : (t[0] = ae("cellXfs", null, { count: t.length - 2 }).replace("/>", ">"), t.join(""));
8838
8838
  }
8839
- var A1 = /* @__PURE__ */ function() {
8839
+ var A1 = /* @__PURE__ */ (function() {
8840
8840
  var t = /<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/, r = /<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/, a = /<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/, n = /<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/, i = /<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;
8841
8841
  return function(f, c, o) {
8842
8842
  var l = {};
@@ -8845,7 +8845,7 @@ var A1 = /* @__PURE__ */ function() {
8845
8845
  var u;
8846
8846
  return (u = f.match(t)) && T1(u, l, o), (u = f.match(n)) && E1(u, l, c, o), (u = f.match(a)) && k1(u, l, c, o), (u = f.match(i)) && w1(u, l, c, o), (u = f.match(r)) && F1(u, l, o), l;
8847
8847
  };
8848
- }();
8848
+ })();
8849
8849
  function Rf(e, t) {
8850
8850
  var r = [Qe, ae("styleSheet", null, {
8851
8851
  xmlns: zt[0],
@@ -8894,7 +8894,7 @@ function O1(e, t, r) {
8894
8894
  return a.name = wr(e), a;
8895
8895
  }
8896
8896
  function I1(e, t) {
8897
- t || (t = G(25 + 4 * 32)), t.write_shift(2, e.sz * 20), hl(e, t), t.write_shift(2, e.bold ? 700 : 400);
8897
+ t || (t = G(153)), t.write_shift(2, e.sz * 20), hl(e, t), t.write_shift(2, e.bold ? 700 : 400);
8898
8898
  var r = 0;
8899
8899
  e.vertAlign == "superscript" ? r = 1 : e.vertAlign == "subscript" && (r = 2), t.write_shift(2, r), t.write_shift(1, e.underline || 0), t.write_shift(1, e.family || 0), t.write_shift(1, e.charset || 0), t.write_shift(1, 0), g0(e.color, t);
8900
8900
  var a = 0;
@@ -8922,7 +8922,7 @@ var R1 = [
8922
8922
  "gray0625"
8923
8923
  ], X0, N1 = kr;
8924
8924
  function ji(e, t) {
8925
- t || (t = G(4 * 3 + 8 * 7 + 16 * 1)), X0 || (X0 = y0(R1));
8925
+ t || (t = G(84)), X0 || (X0 = y0(R1));
8926
8926
  var r = X0[e.patternType];
8927
8927
  r == null && (r = 40), t.write_shift(4, r);
8928
8928
  var a = 0;
@@ -8951,7 +8951,7 @@ function L1(e, t) {
8951
8951
  return t || (t = G(51)), t.write_shift(1, 0), _a(null, t), _a(null, t), _a(null, t), _a(null, t), _a(null, t), t.length > t.l ? t.slice(0, t.l) : t;
8952
8952
  }
8953
8953
  function B1(e, t) {
8954
- return t || (t = G(12 + 4 * 10)), t.write_shift(4, e.xfId), t.write_shift(2, 1), t.write_shift(1, 0), t.write_shift(1, 0), m0(e.name || "", t), t.length > t.l ? t.slice(0, t.l) : t;
8954
+ return t || (t = G(52)), t.write_shift(4, e.xfId), t.write_shift(2, 1), t.write_shift(1, 0), t.write_shift(1, 0), m0(e.name || "", t), t.length > t.l ? t.slice(0, t.l) : t;
8955
8955
  }
8956
8956
  function M1(e, t, r) {
8957
8957
  var a = G(2052);
@@ -9323,8 +9323,7 @@ function ux(e, t) {
9323
9323
  }
9324
9324
  function hx(e, t) {
9325
9325
  t.forEach(function(r) {
9326
- switch (r[0]) {
9327
- }
9326
+ r[0];
9328
9327
  });
9329
9328
  }
9330
9329
  function xx(e, t) {
@@ -9966,7 +9965,7 @@ function Gx() {
9966
9965
  function zx() {
9967
9966
  return { "!type": "macro" };
9968
9967
  }
9969
- var ia = /* @__PURE__ */ function() {
9968
+ var ia = /* @__PURE__ */ (function() {
9970
9969
  var e = /(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g, t = { r: 0, c: 0 };
9971
9970
  function r(a, n, i, s) {
9972
9971
  var f = !1, c = !1;
@@ -9977,14 +9976,14 @@ var ia = /* @__PURE__ */ function() {
9977
9976
  return function(n, i) {
9978
9977
  return t = i, n.replace(e, r);
9979
9978
  };
9980
- }(), Hn = /(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g, Vn = /* @__PURE__ */ function() {
9979
+ })(), Hn = /(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g, Vn = /* @__PURE__ */ (function() {
9981
9980
  return function(t, r) {
9982
9981
  return t.replace(Hn, function(a, n, i, s, f, c) {
9983
9982
  var o = Cn(s) - (i ? 0 : r.c), l = An(c) - (f ? 0 : r.r), u = l == 0 ? "" : f ? l + 1 : "[" + l + "]", x = o == 0 ? "" : i ? o + 1 : "[" + o + "]";
9984
9983
  return n + "R" + u + "C" + x;
9985
9984
  });
9986
9985
  };
9987
- }();
9986
+ })();
9988
9987
  function Uf(e, t) {
9989
9988
  return e.replace(Hn, function(r, a, n, i, s, f) {
9990
9989
  return a + (n == "$" ? n + i : He(Cn(i) + t.c)) + (s == "$" ? s + f : Ke(An(f) + t.r));
@@ -12481,7 +12480,7 @@ function jv(e, t, r, a) {
12481
12480
  }
12482
12481
  return e.l && r["!links"].push([t, e.l]), e.D && (c.cm = 1), ae("c", f, c);
12483
12482
  }
12484
- var Jv = /* @__PURE__ */ function() {
12483
+ var Jv = /* @__PURE__ */ (function() {
12485
12484
  var e = /<(?:\w+:)?c[ \/>]/, t = /<\/(?:\w+:)?row>/, r = /r=["']([^"']*)["']/, a = /<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/, n = /ref=["']([^"']*)["']/, i = ba("v"), s = ba("f");
12486
12485
  return function(c, o, l, u, x, d) {
12487
12486
  for (var v = 0, h = "", p = [], w = [], y = 0, g = 0, D = 0, b = "", N, F, B = 0, I = 0, z, X, L = 0, J = 0, le = Array.isArray(d.CellXf), ie, he = [], ce = [], Pe = Array.isArray(o), V = [], ve = {}, ge = !1, C = !!l.sheetStubs, P = c.split(t), O = 0, R = P.length; O != R; ++O) {
@@ -12594,7 +12593,7 @@ var Jv = /* @__PURE__ */ function() {
12594
12593
  }
12595
12594
  V.length > 0 && (o["!rows"] = V);
12596
12595
  };
12597
- }();
12596
+ })();
12598
12597
  function Zv(e, t, r, a) {
12599
12598
  var n = [], i = [], s = Ae(e["!ref"]), f = "", c, o = "", l = [], u = 0, x = 0, d = e["!rows"], v = Array.isArray(e), h = { r: o }, p, w = -1;
12600
12599
  for (x = s.s.c; x <= s.e.c; ++x) l[x] = He(x);
@@ -12882,7 +12881,7 @@ function K2(e) {
12882
12881
  }), t;
12883
12882
  }
12884
12883
  function Y2(e, t) {
12885
- return t == null && (t = G(6 * 8)), Lt(e), Zf.forEach(function(r) {
12884
+ return t == null && (t = G(48)), Lt(e), Zf.forEach(function(r) {
12886
12885
  Wt(e[r], t);
12887
12886
  }), t;
12888
12887
  }
@@ -12900,7 +12899,7 @@ function Z2(e) {
12900
12899
  return t.write_shift(4, 4), t.write_shift(4, 1), xa(e, t), t;
12901
12900
  }
12902
12901
  function q2(e, t) {
12903
- return t == null && (t = G(16 * 4 + 2)), t.write_shift(2, e.password ? Mn(e.password) : 0), t.write_shift(4, 1), [
12902
+ return t == null && (t = G(66)), t.write_shift(2, e.password ? Mn(e.password) : 0), t.write_shift(4, 1), [
12904
12903
  ["objects", !1],
12905
12904
  // fObjects
12906
12905
  ["scenarios", !1],
@@ -14144,7 +14143,7 @@ function fm(e, t, r, a, n, i, s, f, c, o) {
14144
14143
  a.t = "s", a.r = wi(Oe(e)), a.v = e.indexOf("<") > -1 ? Oe(t || e).replace(/<.*?>/g, "") : a.r;
14145
14144
  break;
14146
14145
  case "DateTime":
14147
- e.slice(-1) != "Z" && (e += "Z"), a.v = (Ve(e) - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1e3), a.v !== a.v ? a.v = Oe(e) : a.v < 60 && (a.v = a.v - 1), (!l || l == "General") && (l = "yyyy-mm-dd");
14146
+ e.slice(-1) != "Z" && (e += "Z"), a.v = (Ve(e) - new Date(Date.UTC(1899, 11, 30))) / (1440 * 60 * 1e3), a.v !== a.v ? a.v = Oe(e) : a.v < 60 && (a.v = a.v - 1), (!l || l == "General") && (l = "yyyy-mm-dd");
14148
14147
  /* falls through */
14149
14148
  case "Number":
14150
14149
  a.v === void 0 && (a.v = +e), a.t || (a.t = "n");
@@ -22818,7 +22817,7 @@ function fs(e, t) {
22818
22817
  function cs(e, t) {
22819
22818
  return dc(e, t);
22820
22819
  }
22821
- var Ym = /* @__PURE__ */ function() {
22820
+ var Ym = /* @__PURE__ */ (function() {
22822
22821
  var e = [
22823
22822
  "<office:master-styles>",
22824
22823
  '<style:master-page style:name="mp1" style:page-layout-name="mp1">',
@@ -22845,7 +22844,7 @@ var Ym = /* @__PURE__ */ function() {
22845
22844
  return function() {
22846
22845
  return Qe + t;
22847
22846
  };
22848
- }(), os = /* @__PURE__ */ function() {
22847
+ })(), os = /* @__PURE__ */ (function() {
22849
22848
  var e = function(i) {
22850
22849
  return be(i).replace(/ +/g, function(s) {
22851
22850
  return '<text:s text:c="' + s.length + '"/>';
@@ -23020,7 +23019,7 @@ var Ym = /* @__PURE__ */ function() {
23020
23019
  `), c.push(` </office:body>
23021
23020
  `), f.bookType == "fods" ? c.push("</office:document>") : c.push("</office:document-content>"), c.join("");
23022
23021
  };
23023
- }();
23022
+ })();
23024
23023
  function vc(e, t) {
23025
23024
  if (t.bookType == "fods") return os(e, t);
23026
23025
  var r = pn(), a = "", n = [], i = [];
@@ -1,3 +1 @@
1
- import { default as React } from 'react';
2
- declare const Independent: React.FC;
3
- export default Independent;
1
+ export {};
@@ -1,14 +1 @@
1
- import { StoryObj } from '@storybook/react';
2
- declare const meta: {
3
- title: string;
4
- component: import('react').FC<{}>;
5
- parameters: {
6
- layout: string;
7
- };
8
- tags: string[];
9
- argTypes: {};
10
- args: {};
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof meta>;
14
- export declare const Init: Story;
1
+ export {};
@@ -1,6 +1 @@
1
- import { FC } from 'react';
2
- export interface placeholderNodeProps {
3
- onPromptsItemClick: (...args: any[]) => any;
4
- }
5
- declare const PlaceholderNode: FC<placeholderNodeProps>;
6
- export default PlaceholderNode;
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import('react').FC<import('rc-image').ImageProps>;
4
+ component: import('react').FC<import('antd').ImageProps>;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -18620,9 +18620,9 @@ declare class Z_ {
18620
18620
  drawPolygons(t: any): SVGPolygonElement[];
18621
18621
  drawRectangle(t: any): SVGRectElement;
18622
18622
  drawRectangles(t: any): SVGRectElement[];
18623
- drawTextBox(t: any): (SVGTextElement | SVGRectElement)[];
18624
- drawTextBoxes(t: any): (SVGTextElement | SVGRectElement)[][];
18625
- _addTextBoxElement(t: any, e: any, i: any): (SVGTextElement | SVGRectElement)[];
18623
+ drawTextBox(t: any): (SVGRectElement | SVGTextElement)[];
18624
+ drawTextBoxes(t: any): (SVGRectElement | SVGTextElement)[][];
18625
+ _addTextBoxElement(t: any, e: any, i: any): (SVGRectElement | SVGTextElement)[];
18626
18626
  _renderEndcaps(t: any, e: any, i: any, n: any): void;
18627
18627
  _createTextElement(t: any, e: any, i: any): SVGTextElement;
18628
18628
  _addTextElement(t: any, e: any, i: any): SVGTextElement;
@@ -1,6 +1,7 @@
1
1
  import { ContextData } from '../../app/main/model/context';
2
2
  import { ConfigProviderProps } from 'antd';
3
3
  import { default as React } from 'react';
4
+ import { AliasToken } from 'antd/lib/theme/interface';
4
5
  /**
5
6
  * Antd Provider
6
7
  */
@@ -11,9 +12,11 @@ export interface OnChainProviderProps extends ConfigProviderProps {
11
12
  prefixCls?: string;
12
13
  /** 内容 */
13
14
  children?: React.ReactNode;
15
+ /** 主题 */
16
+ token?: Partial<AliasToken>;
14
17
  }
15
18
  /**
16
19
  * icon、AntD、国际化等全局配置
17
20
  */
18
- declare const OnChainProvider: ({ prefixCls, ...props }: OnChainProviderProps, ref: any) => import("react/jsx-runtime").JSX.Element;
21
+ declare const OnChainProvider: ({ prefixCls, token, ...props }: OnChainProviderProps, ref: any) => import("react/jsx-runtime").JSX.Element;
19
22
  export default OnChainProvider;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ prefixCls, ...props }: import('.').OnChainProviderProps, ref: any) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ prefixCls, token, ...props }: import('.').OnChainProviderProps, ref: any) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -31,6 +31,7 @@ type ExtendColumnType = BasicsColumn & CompatibleITabColumn;
31
31
  export type singleColumnType = ExtendColumnType;
32
32
  export type TableColumnsType = ExtendColumnType[];
33
33
  export interface OnChainTableProps extends Omit<TableProps<any>, 'onScroll'>, BaseComponentProps {
34
+ customClassName?: string;
34
35
  selectedCell?: Record<string, any>;
35
36
  columns: TableColumnsType;
36
37
  onSubmit?: (values: any, col: any) => void;
@@ -80,6 +81,9 @@ export interface OnChainTableProps extends Omit<TableProps<any>, 'onScroll'>, Ba
80
81
  /** 自定义渲染底部数据 */
81
82
  tableFooterDateRender?: TableFooterDataRender;
82
83
  tableFooterClassName?: string;
84
+ disabledResizable?: boolean;
85
+ /** 自定义包裹容器的ref,用于计算表格滚动高度。如果设置了这个ref,则会根据这个容器的高度来计算表格滚动高度 */
86
+ wrapRef?: React.RefObject<HTMLDivElement>;
83
87
  }
84
88
  export type OnChainColumn = Partial<ExtendColumnType>;
85
89
  export type OnChainTableColumnProps = Partial<ExtendColumnType>[];
@@ -13,13 +13,11 @@ declare const meta: {
13
13
  };
14
14
  args: {
15
15
  /** 列表值 */
16
- dataSource: {
17
- label: string;
18
- value: string;
19
- }[];
16
+ dataSource: any[];
20
17
  columns: {
21
18
  dataIndex: string;
22
19
  title: string;
20
+ width: number;
23
21
  search: {
24
22
  type: string;
25
23
  };