@fileverse-dev/dsheet 2.0.33-rtc-g → 2.0.34-smb

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.
Files changed (36) hide show
  1. package/dist/{constants-yStXQJiK.js → constants-CnhOvijG.js} +14 -35
  2. package/dist/constants.d.ts +0 -4
  3. package/dist/constants.js +3 -6
  4. package/dist/editor/contexts/editor-context.d.ts +5 -13
  5. package/dist/editor/dsheet-editor.d.ts +1 -1
  6. package/dist/editor/hooks/use-editor-collaboration.d.ts +9 -0
  7. package/dist/editor/hooks/use-editor-data.d.ts +1 -1
  8. package/dist/editor/hooks/use-editor-sync.d.ts +6 -9
  9. package/dist/editor/types.d.ts +2 -2
  10. package/dist/{executeStringFunction-9cGLblM5.js → executeStringFunction-DmSriw-r.js} +222 -242
  11. package/dist/formula.js +1 -1
  12. package/dist/index-K5wvW66i.js +40192 -0
  13. package/dist/index.d.ts +0 -2
  14. package/dist/index.es.js +29 -30
  15. package/dist/sheet-engine/core/index.d.ts +1 -1
  16. package/dist/sheet-engine/core/modules/index.d.ts +1 -1
  17. package/dist/sheet-engine/core/settings.d.ts +1 -2
  18. package/dist/sheet-engine/core/types.d.ts +0 -1
  19. package/dist/sheet-engine/react/constants.d.ts +12 -2
  20. package/dist/sheet-engine/react/utils/convertCellsToCrypto.d.ts +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{use-xlsx-import-impl-BknTr9B-.js → use-xlsx-import-impl-CVZz9FqM.js} +2 -2
  23. package/dist/{xlsx-export-impl-DVg8rluj.js → xlsx-export-impl-C7VFyndH.js} +295 -293
  24. package/package.json +10 -14
  25. package/dist/editor/components/collab-status-chip.d.ts +0 -8
  26. package/dist/editor/hooks/use-collab-awareness.d.ts +0 -17
  27. package/dist/index-DJ9rTJnP.js +0 -50816
  28. package/dist/sync-local/SyncManager.d.ts +0 -67
  29. package/dist/sync-local/collabStateMachine.d.ts +0 -23
  30. package/dist/sync-local/crypto/index.d.ts +0 -6
  31. package/dist/sync-local/index.d.ts +0 -3
  32. package/dist/sync-local/socketClient.d.ts +0 -68
  33. package/dist/sync-local/types/index.d.ts +0 -211
  34. package/dist/sync-local/useSyncManager.d.ts +0 -12
  35. package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +0 -8
  36. package/dist/sync-local/utils/objectToFile.d.ts +0 -1
@@ -9,25 +9,6 @@ var Bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
9
9
  function Wo(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
11
  }
12
- function Sf(e) {
13
- if (e.__esModule) return e;
14
- var t = e.default;
15
- if (typeof t == "function") {
16
- var r = function a() {
17
- return this instanceof a ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
18
- };
19
- r.prototype = t.prototype;
20
- } else r = {};
21
- return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(a) {
22
- var n = Object.getOwnPropertyDescriptor(e, a);
23
- Object.defineProperty(r, a, n.get ? n : {
24
- enumerable: !0,
25
- get: function() {
26
- return e[a];
27
- }
28
- });
29
- }), r;
30
- }
31
12
  const Ln = {}, Ar = {
32
13
  en: () => Promise.resolve().then(() => Ql),
33
14
  zh: () => import("./zh-BfQYzoDQ.js"),
@@ -35,7 +16,7 @@ const Ln = {}, Ar = {
35
16
  hi: () => import("./hi-Ca55EZ4A.js"),
36
17
  "zh-TW": () => import("./zh_tw-CINWHD2H.js")
37
18
  };
38
- async function kf(e) {
19
+ async function Sf(e) {
39
20
  const t = e in Ar ? e : e.split("-")[0], r = t in Ar ? t : "en";
40
21
  if (Ln[r]) return;
41
22
  const a = await Ar[r]();
@@ -11321,45 +11302,45 @@ If the value is FALSE, return the accrued interest from the first interest accru
11321
11302
  currencyDetail: [
11322
11303
  { name: "US dollar", pos: "before", value: "$", geckoId: "usd" },
11323
11304
  { name: "EUR", pos: "before", value: "€", geckoId: "eur" },
11324
- { name: "RMB", pos: "before", value: "CN¥", geckoId: "cny" },
11305
+ { name: "RMB", pos: "before", value: "¥", geckoId: "cny" },
11325
11306
  { name: "GBP", pos: "before", value: "£", geckoId: "gbp" },
11326
- { name: "HK", pos: "before", value: "K$", geckoId: "hkd" },
11327
- { name: "JPY", pos: "before", value: "jp¥", geckoId: "jpy" },
11307
+ { name: "HK", pos: "before", value: "HK$", geckoId: "hkd" },
11308
+ { name: "JPY", pos: "before", value: "", geckoId: "jpy" },
11328
11309
  { name: "Australian Dollar", pos: "before", value: "AU$", geckoId: "aud" },
11329
11310
  { name: "Bangladeshi Taka", pos: "before", value: "৳", geckoId: "bdt" },
11330
- { name: "Bahraini Dinar", pos: "before", value: "NAR", geckoId: "bhd" },
11311
+ { name: "Bahraini Dinar", pos: "before", value: "din", geckoId: "bhd" },
11331
11312
  { name: "Bermudian Dollar", pos: "before", value: "$", geckoId: "bmd" },
11332
11313
  { name: "Brazilian real", pos: "before", value: "R$", geckoId: "brl" },
11333
11314
  { name: "Canadian Dollar", pos: "before", value: "CA$", geckoId: "cad" },
11334
- { name: "Swiss Franc", pos: "before", value: "CF", geckoId: "chf" },
11335
- { name: "Chilean Peso", pos: "before", value: "CLP$", geckoId: "clp" },
11336
- { name: "Czech Koruna", pos: "after", value: "CZK", geckoId: "czk" },
11315
+ { name: "Swiss Franc", pos: "before", value: "CHF", geckoId: "chf" },
11316
+ { name: "Chilean Peso", pos: "before", value: "$", geckoId: "clp" },
11317
+ { name: "Czech Koruna", pos: "after", value: "", geckoId: "czk" },
11337
11318
  { name: "Danish Krone", pos: "after", value: "kr", geckoId: "dkk" },
11338
- { name: "Georgian Lari", pos: "before", value: "gl", geckoId: "gel" },
11319
+ { name: "Georgian Lari", pos: "before", value: "GEL", geckoId: "gel" },
11339
11320
  { name: "Hungarian Forint", pos: "before", value: "Ft", geckoId: "huf" },
11340
11321
  { name: "Indonesian Rupiah", pos: "before", value: "Rp", geckoId: "idr" },
11341
- { name: "New Israeli Shekel", pos: "before", value: "N£", geckoId: "ils" },
11322
+ { name: "New Israeli Shekel", pos: "before", value: "", geckoId: "ils" },
11342
11323
  { name: "Indian Rupee", pos: "before", value: "₹", geckoId: "inr" },
11343
- { name: "Soutth korean won", pos: "before", value: "₩", geckoId: "krw" },
11344
- { name: "Kuwaiti Dinar", pos: "before", value: "KW", geckoId: "kwd" },
11345
- { name: "Sri Lanka Rupee", pos: "before", value: "L₹", geckoId: "lkr" },
11324
+ { name: "South Korean won", pos: "before", value: "₩", geckoId: "krw" },
11325
+ { name: "Kuwaiti Dinar", pos: "before", value: "din", geckoId: "kwd" },
11326
+ { name: "Sri Lanka Rupee", pos: "before", value: "Rs", geckoId: "lkr" },
11346
11327
  { name: "Myanmar Kyat", pos: "before", value: "K", geckoId: "mmk" },
11347
- { name: "Mexican Peso", pos: "before", value: "PO$", geckoId: "mxn" },
11348
- { name: "Malaysian Ringgit", pos: "before", value: "R", geckoId: "myr" },
11328
+ { name: "Mexican Peso", pos: "before", value: "MX$", geckoId: "mxn" },
11329
+ { name: "Malaysian Ringgit", pos: "before", value: "RM", geckoId: "myr" },
11349
11330
  { name: "Nigerian Naira", pos: "before", value: "₦", geckoId: "ngn" },
11350
- { name: "Norwegian Krone", pos: "after", value: "kr", geckoId: "nok" },
11351
- { name: "New Zealand Dollar", pos: "before", value: "Z$", geckoId: "nzd" },
11331
+ { name: "Norwegian Krone", pos: "after", value: "kr", geckoId: "nok" },
11332
+ { name: "New Zealand Dollar", pos: "before", value: "NZ$", geckoId: "nzd" },
11352
11333
  { name: "Philippine Peso", pos: "before", value: "₱", geckoId: "php" },
11353
- { name: "Pakistan Rupee", pos: "before", value: "P₹", geckoId: "pkr" },
11334
+ { name: "Pakistan Rupee", pos: "before", value: "Rs", geckoId: "pkr" },
11354
11335
  { name: "Polish Zloty", pos: "after", value: "zł", geckoId: "pln" },
11355
- { name: "Russian Ruble", pos: "after", value: "RU", geckoId: "rub" },
11336
+ { name: "Russian Ruble", pos: "after", value: "", geckoId: "rub" },
11356
11337
  { name: "Saudi Riyal", pos: "before", value: "Rial", geckoId: "sar" },
11357
11338
  { name: "Swedish Krona", pos: "after", value: "kr", geckoId: "sek" },
11358
- { name: "Singapore Dollar", pos: "before", value: "P$", geckoId: "sgd" },
11339
+ { name: "Singapore Dollar", pos: "before", value: "S$", geckoId: "sgd" },
11359
11340
  { name: "Thai Baht", pos: "before", value: "฿", geckoId: "thb" },
11360
- { name: "Turkish Lira", pos: "before", value: "TL", geckoId: "try" },
11341
+ { name: "Turkish Lira", pos: "before", value: "", geckoId: "try" },
11361
11342
  { name: "Ukrainian Hryvnia", pos: "before", value: "грн.", geckoId: "uah" },
11362
- { name: "South African Rand", pos: "before", value: "ZAR", geckoId: "zar" }
11343
+ { name: "South African Rand", pos: "before", value: "R", geckoId: "zar" }
11363
11344
  ],
11364
11345
  defaultFmt: (e) => [
11365
11346
  { text: "Auto", value: "General", example: "" },
@@ -13895,7 +13876,7 @@ let ma = "uk";
13895
13876
  function As(e) {
13896
13877
  return e === "us" ? "us" : "uk";
13897
13878
  }
13898
- function Ef(e) {
13879
+ function kf(e) {
13899
13880
  ma = As(e);
13900
13881
  }
13901
13882
  function Ss() {
@@ -13929,7 +13910,7 @@ function qs(e) {
13929
13910
  function Ms(e, t) {
13930
13911
  return qs(e) ? e : Ko(t);
13931
13912
  }
13932
- function qf(e) {
13913
+ function Ef(e) {
13933
13914
  if (document.createRange)
13934
13915
  if (e.innerHTML !== e.innerText || e.innerHTML === "") {
13935
13916
  e.focus();
@@ -13971,7 +13952,7 @@ function Kr(e) {
13971
13952
  `).replace(/\r/g, `
13972
13953
  `);
13973
13954
  }
13974
- function Mf(e) {
13955
+ function qf(e) {
13975
13956
  const t = window.getSelection();
13976
13957
  if (!t || t.rangeCount === 0) return null;
13977
13958
  const r = t.focusNode;
@@ -13979,7 +13960,7 @@ function Mf(e) {
13979
13960
  const a = document.createRange();
13980
13961
  return a.selectNodeContents(e), a.setEnd(r, t.focusOffset), Kr(a.toString()).length;
13981
13962
  }
13982
- function Rf(e) {
13963
+ function Mf(e) {
13983
13964
  const t = window.getSelection();
13984
13965
  if (!t || t.rangeCount === 0) return null;
13985
13966
  const r = t.getRangeAt(0);
@@ -13990,7 +13971,7 @@ function Rf(e) {
13990
13971
  const n = Kr(a.toString()).length, o = Kr(r.toString());
13991
13972
  return { start: n, end: n + o.length };
13992
13973
  }
13993
- function If(e, t, r) {
13974
+ function Rf(e, t, r) {
13994
13975
  e.focus({ preventScroll: !0 });
13995
13976
  const a = window.getSelection();
13996
13977
  if (!a) return;
@@ -14021,7 +14002,7 @@ function If(e, t, r) {
14021
14002
  u.setStart(o, i), u.setEnd(l, c), a.removeAllRanges(), a.addRange(u);
14022
14003
  }
14023
14004
  }
14024
- function Df(e, t, r) {
14005
+ function If(e, t, r) {
14025
14006
  if (t >= r) return [];
14026
14007
  let a = 0, n = null, o = 0, i = null, l = 0;
14027
14008
  function c(f) {
@@ -14059,7 +14040,7 @@ const wo = {
14059
14040
  fc: "color",
14060
14041
  cl: "text-decoration",
14061
14042
  un: "border-bottom"
14062
- }, Of = {
14043
+ }, Df = {
14063
14044
  bl: 1,
14064
14045
  it: 1,
14065
14046
  ff: 1,
@@ -14084,7 +14065,7 @@ function br(e) {
14084
14065
  var t;
14085
14066
  return (e == null ? void 0 : e.t) === "inlineStr" && (((t = e == null ? void 0 : e.s) == null ? void 0 : t.length) ?? 0) > 0;
14086
14067
  }
14087
- function Lf(e, t, r) {
14068
+ function Of(e, t, r) {
14088
14069
  const a = Ke(e, t, r, "ct");
14089
14070
  if (br(a)) {
14090
14071
  const n = a.s;
@@ -14143,7 +14124,7 @@ function Ls(e) {
14143
14124
  const t = Os(e);
14144
14125
  return t === "rgb(0,0,255)" || t === "#0000ff" || t === "#00f" || t === "blue";
14145
14126
  }
14146
- function Ff(e) {
14127
+ function Lf(e) {
14147
14128
  typeof e.fc == "string" && Ls(e.fc) && delete e.fc, e.un === 1 && delete e.un;
14148
14129
  }
14149
14130
  function Fs(e, t) {
@@ -14172,7 +14153,7 @@ function Fs(e, t) {
14172
14153
  }
14173
14154
  return r;
14174
14155
  }
14175
- function Bf(e, t, r) {
14156
+ function Ff(e, t, r) {
14176
14157
  if (h.isNil(e.ct))
14177
14158
  return;
14178
14159
  const { s: a } = e.ct;
@@ -14277,7 +14258,7 @@ function pn(e, t, r = !0) {
14277
14258
  function Ye(e) {
14278
14259
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
14279
14260
  }
14280
- function Pf(e, t, r, a) {
14261
+ function Bf(e, t, r, a) {
14281
14262
  var d, p, y;
14282
14263
  const n = window.getSelection();
14283
14264
  if (!n || n.rangeCount === 0) return;
@@ -14481,7 +14462,7 @@ function Jn(e, t, r) {
14481
14462
  }
14482
14463
  return a + r;
14483
14464
  }
14484
- function Hf(e, t, r) {
14465
+ function Pf(e, t, r) {
14485
14466
  var d, p, y, g, b, w;
14486
14467
  const a = window.getSelection();
14487
14468
  if (!a || a.rangeCount === 0) return;
@@ -14627,7 +14608,7 @@ function Us(e) {
14627
14608
  if (!(!a || !n) && !(a.linkType !== n.linkType || a.linkAddress !== n.linkAddress))
14628
14609
  return a;
14629
14610
  }
14630
- function zf(e) {
14611
+ function Hf(e) {
14631
14612
  const t = window.getSelection();
14632
14613
  if (!(t != null && t.rangeCount) || !t.anchorNode || !e.contains(t.anchorNode))
14633
14614
  return;
@@ -14666,7 +14647,7 @@ function Ys(e, t, r, a, n) {
14666
14647
  const u = a.measureText(o).width, f = a.measureText(s).width, m = Math.max(1, a.measureText(" ").width || 1), d = r - n - u - f, p = Math.floor(d / m);
14667
14648
  return p <= 1 ? e : `${`${c}${o}`}${" ".repeat(p)}${s}`;
14668
14649
  }
14669
- function Uf() {
14650
+ function zf() {
14670
14651
  jt = {}, or = 0, tl = {};
14671
14652
  for (const e in mn) delete mn[e];
14672
14653
  ir = 0;
@@ -17454,7 +17435,7 @@ function gc(e) {
17454
17435
  let r = 1, a = e.replace(/([\d]),([\d])/g, "$1$2").replace(/[$]/g, "").replace(/[%]/g, () => (r *= 100, ""));
17455
17436
  return t = Number(a), !Number.isNaN(t) || (a = a.replace(/[(](.*)[)]/, (n, o) => (r = -r, o)), t = Number(a), !Number.isNaN(t)) ? t / r : t;
17456
17437
  }
17457
- function Wf(e, t, r) {
17438
+ function Uf(e, t, r) {
17458
17439
  var n, o, i, l, c, s;
17459
17440
  let a = Ke(e, t, r, "m");
17460
17441
  return a == null ? a = Ke(e, t, r, "v") : Number.isNaN(gc(a)) ? ((i = (o = (n = r[e]) == null ? void 0 : n[t]) == null ? void 0 : o.ct) == null ? void 0 : i.t) === "d" || ((s = (c = (l = r[e]) == null ? void 0 : l[t]) == null ? void 0 : c.ct) == null ? void 0 : s.t) === "b" || (a = Ke(e, t, r, "v")) : h.isString(a) && a.indexOf("%") > -1 || (a = Ke(e, t, r, "v")), a;
@@ -18149,7 +18130,7 @@ function Bc(e, t) {
18149
18130
  }
18150
18131
  return c.push(t), c;
18151
18132
  }
18152
- function Vf(e) {
18133
+ function Wf(e) {
18153
18134
  var r, a;
18154
18135
  const { luckysheetfile: t } = e;
18155
18136
  if (e.groupValuesRefreshData.length > 0) {
@@ -18447,7 +18428,7 @@ function Pc(e, t, r) {
18447
18428
  }
18448
18429
  return null;
18449
18430
  }
18450
- function Gf(e) {
18431
+ function Vf(e) {
18451
18432
  var a, n;
18452
18433
  if (e.formulaCache.func_selectedrange) return !0;
18453
18434
  const t = e.luckysheet_select_save;
@@ -18469,7 +18450,7 @@ function Gf(e) {
18469
18450
  moveXY: r.moveXY
18470
18451
  }, !0);
18471
18452
  }
18472
- function Yf(e, t) {
18453
+ function Gf(e, t) {
18473
18454
  e.formulaRangeSelect = t;
18474
18455
  }
18475
18456
  function Hc(e, t, r = -1) {
@@ -18851,7 +18832,7 @@ function vr(e) {
18851
18832
  const i = parseInt(o, 10);
18852
18833
  return Number.isNaN(i) ? null : i;
18853
18834
  }
18854
- function jf(e, t) {
18835
+ function Yf(e, t) {
18855
18836
  e.formulaCache.formulaEditorOwner = t;
18856
18837
  }
18857
18838
  function cl(e) {
@@ -18940,7 +18921,7 @@ function Jc(e) {
18940
18921
  function eu(e) {
18941
18922
  e.formulaCache.rangeSelectionActive = !1, e.formulaRangeHighlight = [], e.formulaRangeSelect = void 0, e.formulaCache.selectingRangeIndex = -1, e.formulaCache.func_selectedrange = void 0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangechangeindex = void 0;
18942
18923
  }
18943
- function Xf(e) {
18924
+ function jf(e) {
18944
18925
  const t = vr(e);
18945
18926
  if (t !== null) return t;
18946
18927
  const r = Yc(e);
@@ -19066,7 +19047,7 @@ function nu(e) {
19066
19047
  }
19067
19048
  return Dr(t);
19068
19049
  }
19069
- function Zf(e, t, r) {
19050
+ function Xf(e, t, r) {
19070
19051
  if (!r) return !1;
19071
19052
  const a = window.getSelection();
19072
19053
  if (!a || a.rangeCount === 0 || !a.anchorNode || !r.contains(a.anchorNode)) return !1;
@@ -19171,7 +19152,7 @@ function So(e, t, r) {
19171
19152
  }
19172
19153
  return !1;
19173
19154
  }
19174
- function Kf(e) {
19155
+ function Zf(e) {
19175
19156
  return !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0 || _r(e);
19176
19157
  }
19177
19158
  function _r(e, t) {
@@ -19245,11 +19226,11 @@ function _r(e, t) {
19245
19226
  }
19246
19227
  return !1;
19247
19228
  }
19248
- function Qf(e) {
19229
+ function Kf(e) {
19249
19230
  const t = ul(e), r = ((t == null ? void 0 : t.innerText) || "").trim(), a = !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start, n = !!t && Ca(t), o = a || e.formulaCache.rangeSelectionActive === !0;
19250
19231
  return r.startsWith("=") ? e.formulaCache.rangeSelectionActive === !0 && t && vr(t) !== null ? !0 : /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(r) || e.formulaCache.rangeSelectionActive === !1 ? !1 : o ? a ? !0 : n : n ? !0 : _r(e) : !1;
19251
19232
  }
19252
- function Jf(e) {
19233
+ function Qf(e) {
19253
19234
  if (e.formulaCache.rangeSelectionActive !== !1)
19254
19235
  return !1;
19255
19236
  const t = ul(e);
@@ -19380,7 +19361,7 @@ function Na(e, t, r, a) {
19380
19361
  }
19381
19362
  u && (u.innerHTML = s.innerHTML);
19382
19363
  }
19383
- function ed(e) {
19364
+ function Jf(e) {
19384
19365
  if (e.formulaCache.func_selectedrange) {
19385
19366
  const {
19386
19367
  left_move: t,
@@ -19404,7 +19385,7 @@ function xa(e, t, r, a, n) {
19404
19385
  );
19405
19386
  o != null && (o.style.left = `${t}px`, o.style.top = `${r}px`, o.style.height = `${a}px`, o.style.width = `${n}px`);
19406
19387
  }
19407
- function td(e, t, r, a, n, o, i) {
19388
+ function ed(e, t, r, a, n, o, i) {
19408
19389
  e.formulaCache.rangeSelectionActive = !0;
19409
19390
  const { func_selectedrange: l } = e.formulaCache;
19410
19391
  if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
@@ -19434,7 +19415,7 @@ function td(e, t, r, a, n, o, i) {
19434
19415
  i
19435
19416
  ), xa(o, $, b, w, _), t.preventDefault();
19436
19417
  }
19437
- function nd(e, t, r, a, n, o, i) {
19418
+ function td(e, t, r, a, n, o, i) {
19438
19419
  e.formulaCache.rangeSelectionActive = !0;
19439
19420
  const { func_selectedrange: l } = e.formulaCache;
19440
19421
  if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
@@ -19462,7 +19443,7 @@ function nd(e, t, r, a, n, o, i) {
19462
19443
  i
19463
19444
  ), xa(o, b, d, m - d - 1, w);
19464
19445
  }
19465
- function rd(e, t, r, a, n, o, i) {
19446
+ function nd(e, t, r, a, n, o, i) {
19466
19447
  e.formulaCache.rangeSelectionActive = !0;
19467
19448
  const { func_selectedrange: l } = e.formulaCache;
19468
19449
  if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
@@ -19721,7 +19702,7 @@ function dl(e, t, r, a) {
19721
19702
  const l = (u = n.config) == null ? void 0 : u.authority;
19722
19703
  return !(h.isNil(l) || h.isNil(l.sheet) || l.sheet === 0);
19723
19704
  }
19724
- function ad(e, t, r, a) {
19705
+ function rd(e, t, r, a) {
19725
19706
  var c;
19726
19707
  const n = xr(e, a);
19727
19708
  if (h.isNil(n) || h.isNil(n.config) || h.isNil(n.config.authority))
@@ -19732,7 +19713,7 @@ function ad(e, t, r, a) {
19732
19713
  const { data: i } = n, l = (c = i == null ? void 0 : i[t]) == null ? void 0 : c[r];
19733
19714
  return l && l.lo === 0 ? !!(o.selectunLockedCells === 1 || h.isNil(o.selectunLockedCells)) : !!(o.selectLockedCells === 1 || h.isNil(o.selectLockedCells));
19734
19715
  }
19735
- function id(e, t) {
19716
+ function ad(e, t) {
19736
19717
  const r = xr(e, t);
19737
19718
  if (h.isNil(r) || h.isNil(r.config) || h.isNil(r.config.authority))
19738
19719
  return !0;
@@ -19864,7 +19845,7 @@ function na(e) {
19864
19845
  return _n(t);
19865
19846
  }
19866
19847
  }
19867
- function od(e) {
19848
+ function id(e) {
19868
19849
  const t = dr;
19869
19850
  if (!e || e.length === 0)
19870
19851
  return {
@@ -19991,7 +19972,7 @@ function ra(e) {
19991
19972
  let n = String(e.dateValue ?? "").trim();
19992
19973
  return r !== "exact" && (n = n || na(r)), [`preset:${r}`, n, a];
19993
19974
  }
19994
- function ld(e, t, r, a, n, o, i) {
19975
+ function od(e, t, r, a, n, o, i) {
19995
19976
  var y, g, b, w;
19996
19977
  if (!hu(e))
19997
19978
  return;
@@ -21046,7 +21027,7 @@ function Eu(e, t) {
21046
21027
  }
21047
21028
  return r;
21048
21029
  }
21049
- function sd(e, t, r, a) {
21030
+ function ld(e, t, r, a) {
21050
21031
  const n = nn(e), o = cf(e);
21051
21032
  if (!n || o) return;
21052
21033
  const i = document.getElementById(
@@ -21079,7 +21060,7 @@ function sd(e, t, r, a) {
21079
21060
  x === "en" ? _ = '<span style="color:#f72626;">Failure: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? _ = '<span style="color:#f72626;">失效:</span>' : x === "es" ? _ = '<span style="color:#f72626;">Caducidad: </span>' : x === "hi" && (_ = '<span style="color:#f72626;">असफलता: </span>'), _ = N + _ + yl(e, u), i.innerHTML = _, i.style.display = "block", i.style.left = `${g}px`, i.style.top = `${d}px`;
21080
21061
  }
21081
21062
  }
21082
- function cd(e, t, r) {
21063
+ function sd(e, t, r) {
21083
21064
  var p, y;
21084
21065
  if (!e.luckysheet_select_save) return;
21085
21066
  const a = Re(e);
@@ -21129,7 +21110,7 @@ function cd(e, t, r) {
21129
21110
  [String(o)]: d
21130
21111
  }), bl(e, null, void 0);
21131
21112
  }
21132
- function ud(e, t, r) {
21113
+ function cd(e, t, r) {
21133
21114
  var p, y;
21134
21115
  const a = zn(
21135
21116
  e,
@@ -21266,7 +21247,7 @@ function wl(e, t, r, a, n, o, i, l, c) {
21266
21247
  b.length > 0 && e.hooks.updateCellYdoc(b);
21267
21248
  }
21268
21249
  }
21269
- function fd(e, t, r = 0) {
21250
+ function ud(e, t, r = 0) {
21270
21251
  var d;
21271
21252
  if (e.allowEdit === !1 || e.luckysheet_select_save == null || e.luckysheet_select_save.length > 1)
21272
21253
  return;
@@ -21306,7 +21287,7 @@ function fd(e, t, r = 0) {
21306
21287
  f || wl(e, n, m, r, t, s, u, l, c);
21307
21288
  }
21308
21289
  }
21309
- function dd(e, t) {
21290
+ function fd(e, t) {
21310
21291
  var f, m, d;
21311
21292
  if (e.allowEdit === !1) return;
21312
21293
  const r = Re(e);
@@ -21468,7 +21449,7 @@ function yt(e, t, r = 10) {
21468
21449
  } else t === "fs" ? n || (n = r.toString()) : (t === "tb" || t === "tr") && (n || (n = "0"));
21469
21450
  return n;
21470
21451
  }
21471
- function md(e, t, r, a) {
21452
+ function dd(e, t, r, a) {
21472
21453
  if (!e || !e[t])
21473
21454
  return null;
21474
21455
  const n = e[t][r];
@@ -21762,7 +21743,7 @@ function bn(e, t, r, a, n) {
21762
21743
  }
21763
21744
  h.isNil(o.f) || (c ? (o.ct || (o.ct = { fa: "General", t: "g" }), o.ct.s = c) : o != null && o.ct && h.isPlainObject(n) && Object.prototype.hasOwnProperty.call(n, "ct") && delete o.ct.s), a[t][r] = o, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
21764
21745
  }
21765
- function hd(e, t, r, a) {
21746
+ function md(e, t, r, a) {
21766
21747
  let n = Ke(e, t, r, "m");
21767
21748
  if (h.isNil(n) && (n = Ke(e, t, r, a), h.isNil(n))) {
21768
21749
  const o = Ke(e, t, r, "ct");
@@ -21860,7 +21841,7 @@ function Bu(e) {
21860
21841
  const t = e[0];
21861
21842
  return Array.isArray(t) && e.every((r) => Array.isArray(r)) ? e.map((r) => r.map((a) => String(a ?? "")).join(", ")).join("; ") : e.map((r) => String(r ?? "")).join(", ");
21862
21843
  }
21863
- function pd(e, t, r, a, n, o) {
21844
+ function hd(e, t, r, a, n, o) {
21864
21845
  var i, l, c, s, u, f, m, d, p, y, g, b, w, T, $, _, x, N, O, E, B, W, Q, Y, J;
21865
21846
  try {
21866
21847
  if (e.allowEdit === !1 || e.isFlvReadOnly) return;
@@ -22180,11 +22161,11 @@ function Uu(e) {
22180
22161
  }
22181
22162
  return !1;
22182
22163
  }
22183
- function gd(e, t) {
22164
+ function pd(e, t) {
22184
22165
  const r = (t ?? "").trim();
22185
22166
  return r === "" ? !0 : Uu(r) ? !1 : zn(e, r).length > 0;
22186
22167
  }
22187
- function yd(e, t, r) {
22168
+ function gd(e, t, r) {
22188
22169
  if (!h.isEmpty(e.luckysheetCellUpdate)) {
22189
22170
  const o = window.getSelection();
22190
22171
  if (!o || o.rangeCount === 0) return !1;
@@ -22334,7 +22315,7 @@ function $l(e, t, r, a) {
22334
22315
  }
22335
22316
  return "";
22336
22317
  }
22337
- function bd(e, t, r) {
22318
+ function yd(e, t, r) {
22338
22319
  let a = "";
22339
22320
  if (e.toString().indexOf("pt") > -1) {
22340
22321
  const o = parseFloat(e);
@@ -22363,7 +22344,7 @@ function Gu(e, t, r) {
22363
22344
  }
22364
22345
  return o;
22365
22346
  }
22366
- function wd(e, t, r) {
22347
+ function bd(e, t, r) {
22367
22348
  var o;
22368
22349
  const a = Re(e), n = (o = a == null ? void 0 : a[t]) == null ? void 0 : o[r];
22369
22350
  (n == null ? void 0 : n.f) != null && String(n.f).trim() !== "" && Qc(e), e.luckysheetCellUpdate = [t, r];
@@ -22412,7 +22393,7 @@ function ka(e) {
22412
22393
  ...n != null && typeof n == "object" ? { ct: n } : {}
22413
22394
  } : null;
22414
22395
  }
22415
- function vd(e) {
22396
+ function wd(e) {
22416
22397
  var i;
22417
22398
  const t = Le(e, e.currentSheetId);
22418
22399
  if (t == null) return;
@@ -22441,7 +22422,7 @@ function vd(e) {
22441
22422
  }
22442
22423
  }), (i = e == null ? void 0 : e.hooks) != null && i.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
22443
22424
  }
22444
- function _d(e) {
22425
+ function vd(e) {
22445
22426
  var l, c;
22446
22427
  const t = Le(e, e.currentSheetId);
22447
22428
  if (t == null) return;
@@ -22470,7 +22451,7 @@ function _d(e) {
22470
22451
  }
22471
22452
  }), (c = e == null ? void 0 : e.hooks) != null && c.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
22472
22453
  }
22473
- function Td(e) {
22454
+ function _d(e) {
22474
22455
  var l;
22475
22456
  const t = Le(e, e.currentSheetId);
22476
22457
  if (t == null) return;
@@ -22517,7 +22498,7 @@ class ju {
22517
22498
  }
22518
22499
  }
22519
22500
  }
22520
- function $d(e, t, r, a, n) {
22501
+ function Td(e, t, r, a, n) {
22521
22502
  var Q, Y, J, H, X;
22522
22503
  const o = Re(e);
22523
22504
  if (!o) return;
@@ -22566,7 +22547,7 @@ function Xu(e) {
22566
22547
  });
22567
22548
  });
22568
22549
  }
22569
- const Cd = {
22550
+ const $d = {
22570
22551
  isPasteAction: !1,
22571
22552
  isPasteValuesOnly: !1
22572
22553
  }, Zu = 14e5;
@@ -22635,7 +22616,7 @@ function Oo(e, t) {
22635
22616
  e.primaryCellActive = { r: o, c: i };
22636
22617
  }
22637
22618
  }
22638
- function Nd(e, t = !0) {
22619
+ function Cd(e, t = !0) {
22639
22620
  const r = e.luckysheet_select_save;
22640
22621
  if (!(r != null && r.length)) return !1;
22641
22622
  const a = r[r.length - 1], n = a.row[0], o = a.row[1], i = a.column[0], l = a.column[1];
@@ -22647,10 +22628,10 @@ function Nd(e, t = !0) {
22647
22628
  let g, b;
22648
22629
  return t ? d < s ? (g = d + 1, b = p) : p < f ? (g = c, b = p + 1) : (g = c, b = u) : d > c ? (g = d - 1, b = p) : p > u ? (g = s, b = p - 1) : (g = s, b = f), a.row_focus = g, a.column_focus = b, Jt(e, r), !0;
22649
22630
  }
22650
- function xd(e, t, r) {
22631
+ function Nd(e, t, r) {
22651
22632
  e.primaryCellActive = { r: t, c: r };
22652
22633
  }
22653
- function Ad(e, t, r) {
22634
+ function xd(e, t, r) {
22654
22635
  const a = e.luckysheet_select_save, n = a == null ? void 0 : a[a.length - 1];
22655
22636
  if (!(n != null && n.row) || n.row.length < 2 || !n.column || n.column.length < 2) {
22656
22637
  e.luckysheet_select_save = [
@@ -22673,7 +22654,7 @@ function Ad(e, t, r) {
22673
22654
  }
22674
22655
  ], Jt(e, e.luckysheet_select_save));
22675
22656
  }
22676
- function Sd(e) {
22657
+ function Ad(e) {
22677
22658
  var t, r, a, n;
22678
22659
  return (r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t[0]) != null && r.mc && !h.isNil((a = e[0][0].mc) == null ? void 0 : a.rs) && !h.isNil((n = e[0][0].mc) == null ? void 0 : n.cs) ? [
22679
22660
  {
@@ -22700,13 +22681,13 @@ function Jt(e, t) {
22700
22681
  }
22701
22682
  return Oo(e, t), t;
22702
22683
  }
22703
- function kd(e, t, r) {
22684
+ function Sd(e, t, r) {
22704
22685
  const a = e || {};
22705
22686
  for (let n = t; n <= r; n += 1)
22706
22687
  n in a || (a[n] = 0);
22707
22688
  return a;
22708
22689
  }
22709
- function Ed(e) {
22690
+ function kd(e) {
22710
22691
  const t = Object.keys(e).map(Number);
22711
22692
  t.sort((n, o) => n - o);
22712
22693
  let r, a = [];
@@ -22726,7 +22707,7 @@ function Lo(e) {
22726
22707
  const t = h.cloneDeep(e);
22727
22708
  return delete t.cellrange, JSON.stringify(t);
22728
22709
  }
22729
- function qd(e, t) {
22710
+ function Ed(e, t) {
22730
22711
  var F, te;
22731
22712
  const r = e.config;
22732
22713
  if (r.merge == null && (r.merge = {}), !t) return;
@@ -22895,7 +22876,7 @@ function qd(e, t) {
22895
22876
  }
22896
22877
  Xu(e);
22897
22878
  }
22898
- function Md(e, t) {
22879
+ function qd(e, t) {
22899
22880
  e == null && (e = t.luckysheet_selection_range), e = JSON.parse(JSON.stringify(e));
22900
22881
  }
22901
22882
  function St(e, t, r, a) {
@@ -23006,7 +22987,7 @@ function zt(e, t, r, a) {
23006
22987
  l = o;
23007
22988
  return [i, l];
23008
22989
  }
23009
- function Rd(e, t, r, a) {
22990
+ function Md(e, t, r, a) {
23010
22991
  var y;
23011
22992
  const n = Re(e);
23012
22993
  if (!n) return;
@@ -23084,7 +23065,7 @@ function Rd(e, t, r, a) {
23084
23065
  }, Un(e, s, d);
23085
23066
  }
23086
23067
  }
23087
- function Id(e, t, r, a) {
23068
+ function Rd(e, t, r, a) {
23088
23069
  let n, o, i, l;
23089
23070
  const c = Re(e);
23090
23071
  if (!h.isNil(c) && !h.isNil(e.luckysheet_select_save)) {
@@ -23461,7 +23442,7 @@ function ef(e, t, r, a) {
23461
23442
  }
23462
23443
  return `<table data-type="fortune-copy-action-table">${g}${p}</table>`;
23463
23444
  }
23464
- function Dd(e) {
23445
+ function Id(e) {
23465
23446
  var y, g, b, w;
23466
23447
  const t = Re(e);
23467
23448
  e.lastInternalCopyHtmlMetadataStripped = !1, e.luckysheet_selection_range = [];
@@ -23544,7 +23525,7 @@ function Dd(e) {
23544
23525
  let p = !1;
23545
23526
  f && u && f.length > Zu && (p = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = p, ju.writeHtml(f));
23546
23527
  }
23547
- function Od(e) {
23528
+ function Dd(e) {
23548
23529
  var a, n, o, i, l, c, s, u;
23549
23530
  if (nn(e) === !1 || e.isFlvReadOnly)
23550
23531
  return "allowEdit";
@@ -23597,7 +23578,7 @@ function Od(e) {
23597
23578
  }
23598
23579
  return "success";
23599
23580
  }
23600
- function Ld(e) {
23581
+ function Od(e) {
23601
23582
  var a;
23602
23583
  if (nn(e) === !1)
23603
23584
  return "allowEdit";
@@ -23635,7 +23616,7 @@ function Ld(e) {
23635
23616
  }
23636
23617
  return "success";
23637
23618
  }
23638
- function Fd(e) {
23619
+ function Ld(e) {
23639
23620
  var a, n, o;
23640
23621
  if (nn(e) === !1)
23641
23622
  return "allowEdit";
@@ -23742,7 +23723,7 @@ function Fd(e) {
23742
23723
  }
23743
23724
  return "success";
23744
23725
  }
23745
- function Bd(e) {
23726
+ function Fd(e) {
23746
23727
  var a, n, o;
23747
23728
  if (nn(e) === !1)
23748
23729
  return "allowEdit";
@@ -23849,7 +23830,7 @@ function Bd(e) {
23849
23830
  }
23850
23831
  return "success";
23851
23832
  }
23852
- function Pd(e, t) {
23833
+ function Bd(e, t) {
23853
23834
  var n;
23854
23835
  if (nn(e) === !1)
23855
23836
  return "allowEdit";
@@ -23887,7 +23868,7 @@ function Pd(e, t) {
23887
23868
  }
23888
23869
  return "success";
23889
23870
  }
23890
- function Hd(e) {
23871
+ function Pd(e) {
23891
23872
  var a;
23892
23873
  if (nn(e) === !1)
23893
23874
  return "allowEdit";
@@ -23930,7 +23911,7 @@ function Hd(e) {
23930
23911
  }
23931
23912
  return "success";
23932
23913
  }
23933
- function zd(e) {
23914
+ function Hd(e) {
23934
23915
  var a;
23935
23916
  if (nn(e) === !1)
23936
23917
  return "allowEdit";
@@ -23972,10 +23953,10 @@ function zd(e) {
23972
23953
  }
23973
23954
  return "success";
23974
23955
  }
23975
- function Ud(e, t) {
23956
+ function zd(e, t) {
23976
23957
  return !1;
23977
23958
  }
23978
- function Wd(e) {
23959
+ function Ud(e) {
23979
23960
  const t = Re(e);
23980
23961
  t && (e.luckysheet_select_status = !1, e.luckysheet_select_save = [
23981
23962
  {
@@ -23988,7 +23969,7 @@ function Wd(e) {
23988
23969
  }
23989
23970
  ], Jt(e, e.luckysheet_select_save));
23990
23971
  }
23991
- function Vd(e, t, r, a) {
23972
+ function Wd(e, t, r, a) {
23992
23973
  var c;
23993
23974
  if (!a) return {};
23994
23975
  const n = {}, { scrollTop: o } = e, i = (c = a.horizontal) == null ? void 0 : c.freezenhorizontaldata;
@@ -23999,7 +23980,7 @@ function Vd(e, t, r, a) {
23999
23980
  }
24000
23981
  return l || (n.display = "none"), n;
24001
23982
  }
24002
- function Gd(e, t, r, a) {
23983
+ function Vd(e, t, r, a) {
24003
23984
  var c;
24004
23985
  if (!a) return {};
24005
23986
  const n = {}, { scrollLeft: o } = e, i = (c = a.vertical) == null ? void 0 : c.freezenverticaldata;
@@ -24010,7 +23991,7 @@ function Gd(e, t, r, a) {
24010
23991
  }
24011
23992
  return l || (n.display = "none"), n;
24012
23993
  }
24013
- function Yd(e) {
23994
+ function Gd(e) {
24014
23995
  var c, s, u, f, m, d, p, y, g, b, w, T, $, _, x, N, O, E;
24015
23996
  const t = e.luckysheet_select_save;
24016
23997
  let r = 0, a = 0, n = 0, o = -1 / 0, i = 1 / 0;
@@ -24029,7 +24010,7 @@ function Yd(e) {
24029
24010
  const l = String(n / r);
24030
24011
  return { numberC: r, count: a, sum: n, max: o, min: i, average: l };
24031
24012
  }
24032
- function jd(e) {
24013
+ function Yd(e) {
24033
24014
  return {
24034
24015
  luckysheetfile: [],
24035
24016
  defaultcolumnNum: 60,
@@ -24342,7 +24323,7 @@ function tf(e, t, r) {
24342
24323
  }
24343
24324
  e.ch_width += a;
24344
24325
  }
24345
- function Xd(e, t) {
24326
+ function jd(e, t) {
24346
24327
  if ((e == null ? void 0 : e.length) > 0) {
24347
24328
  let r = !1;
24348
24329
  const a = [];
@@ -24351,7 +24332,7 @@ function Xd(e, t) {
24351
24332
  }), r || (e[0].status = 1);
24352
24333
  }
24353
24334
  }
24354
- function Zd(e) {
24335
+ function Xd(e) {
24355
24336
  const t = e.luckysheetfile.filter(
24356
24337
  (r) => h.isUndefined(r.hide) || r.hide !== 1
24357
24338
  );
@@ -24362,11 +24343,11 @@ function Zd(e) {
24362
24343
  break;
24363
24344
  }
24364
24345
  }
24365
- function Kd(e, t) {
24346
+ function Zd(e, t) {
24366
24347
  const r = t.length, a = r === 0 ? 0 : t[0].length;
24367
24348
  tf(e, r, a), Jt(e, e.luckysheet_select_save);
24368
24349
  }
24369
- function Qd(e, t, r) {
24350
+ function Kd(e, t, r) {
24370
24351
  e.luckysheetTableContentHW = [
24371
24352
  r.clientWidth,
24372
24353
  r.clientHeight
@@ -26137,7 +26118,7 @@ function kl(e, t) {
26137
26118
  C.length > 0 && (e.formulaCache.execFunctionExist = C, Vn(e, null, null, null, null, Re(e)), e.formulaCache.execFunctionExist = void 0);
26138
26119
  }
26139
26120
  }
26140
- function Jd(e, t) {
26121
+ function Qd(e, t) {
26141
26122
  if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
26142
26123
  return "noMulti";
26143
26124
  const r = Le(e, e.currentSheetId);
@@ -26159,7 +26140,7 @@ function Jd(e, t) {
26159
26140
  }
26160
26141
  return e.luckysheetfile[r].config = e.config, "";
26161
26142
  }
26162
- function em(e, t) {
26143
+ function Jd(e, t) {
26163
26144
  if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
26164
26145
  return "noMulti";
26165
26146
  const r = Le(e, e.currentSheetId);
@@ -26177,7 +26158,7 @@ function em(e, t) {
26177
26158
  }
26178
26159
  return e.luckysheetfile[r].config = e.config, "";
26179
26160
  }
26180
- function tm(e) {
26161
+ function em(e) {
26181
26162
  var t, r, a, n;
26182
26163
  if (!e.luckysheet_select_save || !e.config.colhidden && !e.config.rowhidden)
26183
26164
  return !1;
@@ -26193,7 +26174,7 @@ function tm(e) {
26193
26174
  }
26194
26175
  return !1;
26195
26176
  }
26196
- function nm(e, t) {
26177
+ function tm(e, t) {
26197
26178
  let r = 1;
26198
26179
  if (!e.luckysheet_select_save) return 0;
26199
26180
  const a = e.luckysheet_select_save[0], n = e.config.rowhidden ?? {}, o = e.config.colhidden ?? {};
@@ -26238,7 +26219,7 @@ function nm(e, t) {
26238
26219
  }
26239
26220
  return r;
26240
26221
  }
26241
- function rm(e, t, r) {
26222
+ function nm(e, t, r) {
26242
26223
  let a = e.length;
26243
26224
  const n = Rt(r).pivotTable, { title: o } = n;
26244
26225
  for (let i = 0; i < e.length; i += 1)
@@ -26295,7 +26276,7 @@ function xr(e, t) {
26295
26276
  const r = Le(e, t);
26296
26277
  return h.isNil(r) ? null : e.luckysheetfile[r];
26297
26278
  }
26298
- function am(e) {
26279
+ function rm(e) {
26299
26280
  const t = /* @__PURE__ */ new Date(), r = t.getFullYear();
26300
26281
  let a = t.getMonth(), n = t.getDate(), o = t.getHours(), i = t.getMinutes(), l = t.getSeconds();
26301
26282
  a += 1, a < 10 && (a = `0${a}`), n < 10 && (n = `0${n}`), o < 10 && (o = `0${o}`), i < 10 && (i = `0${i}`), l < 10 && (l = `0${l}`);
@@ -26308,10 +26289,10 @@ function Bo(e, t) {
26308
26289
  return typeof n < "u" ? n : r;
26309
26290
  });
26310
26291
  }
26311
- function im(e) {
26292
+ function am(e) {
26312
26293
  return e.replace("~*", "\\*").replace("~?", "\\?").replace(".", "\\.").replace("*", ".*").replace("?", ".");
26313
26294
  }
26314
- function om(e) {
26295
+ function im(e) {
26315
26296
  let n = "";
26316
26297
  for (; e >= 0; )
26317
26298
  n = String.fromCharCode(e % 26 + 97) + n, e = Math.floor(e / 26) - 1;
@@ -26439,7 +26420,7 @@ const rn = new Error("invalid params"), Po = new Error("sheet not found"), mf =
26439
26420
  n != null && t.push({ r, c: a, v: n });
26440
26421
  }
26441
26422
  return t;
26442
- }, lm = (e, t, r) => {
26423
+ }, om = (e, t, r) => {
26443
26424
  const a = h.maxBy(e, "r"), n = h.maxBy(e, "c");
26444
26425
  let o = ((a == null ? void 0 : a.r) ?? 0) + 1, i = ((n == null ? void 0 : n.c) ?? 0) + 1;
26445
26426
  if (t != null && r != null && t > 0 && r > 0 && (o = Math.max(o, t), i = Math.max(i, r)), o && i) {
@@ -26462,11 +26443,11 @@ function an(e, t = {}) {
26462
26443
  throw Po;
26463
26444
  return a;
26464
26445
  }
26465
- function sm(e, t = {}) {
26446
+ function lm(e, t = {}) {
26466
26447
  const r = an(e, t);
26467
26448
  return { ...r, celldata: mf(r.data) };
26468
26449
  }
26469
- function cm(e, t, r, a = {}) {
26450
+ function sm(e, t, r, a = {}) {
26470
26451
  const n = an(e, a), i = {
26471
26452
  row: "rangeRow",
26472
26453
  column: "rangeColumn",
@@ -26481,7 +26462,7 @@ function cm(e, t, r, a = {}) {
26481
26462
  }
26482
26463
  };
26483
26464
  }
26484
- function um(e, t, r, a, n, o = {}) {
26465
+ function cm(e, t, r, a, n, o = {}) {
26485
26466
  if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a) || !["lefttop", "rightbottom"].includes(n))
26486
26467
  throw rn;
26487
26468
  const i = an(e, o);
@@ -26497,13 +26478,13 @@ function um(e, t, r, a, n, o = {}) {
26497
26478
  console.error(l);
26498
26479
  }
26499
26480
  }
26500
- function fm(e, t, r, a, n = {}) {
26481
+ function um(e, t, r, a, n = {}) {
26501
26482
  if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a))
26502
26483
  throw rn;
26503
26484
  const o = an(e, n);
26504
26485
  kl(e, { type: t, start: r, end: a, id: o.id });
26505
26486
  }
26506
- function dm(e, t, r) {
26487
+ function fm(e, t, r) {
26507
26488
  if (!["row", "column"].includes(r))
26508
26489
  throw rn;
26509
26490
  if (!e || !e.config) return;
@@ -26522,7 +26503,7 @@ function dm(e, t, r) {
26522
26503
  }
26523
26504
  e.luckysheetfile[a].config = e.config;
26524
26505
  }
26525
- function mm(e, t, r) {
26506
+ function dm(e, t, r) {
26526
26507
  if (!["row", "column"].includes(r))
26527
26508
  throw rn;
26528
26509
  if (!e || !e.config) return;
@@ -26549,7 +26530,7 @@ function hf(e, t, r = {}, a = !1) {
26549
26530
  Number(l) >= 0 && Number(i) >= 0 && (o.rowlen[Number(l)] = Number(i), a && h.isUndefined(o.customHeight) ? o.customHeight = { [l]: 1 } : a && (o.customHeight[l] = 1));
26550
26531
  }), n.config = o, e.currentSheetId === n.id && (e.config = o);
26551
26532
  }
26552
- function hm(e, t, r = {}, a = !1) {
26533
+ function mm(e, t, r = {}, a = !1) {
26553
26534
  if (!h.isPlainObject(t))
26554
26535
  throw rn;
26555
26536
  const n = an(e, r), o = n.config || {};
@@ -26568,7 +26549,7 @@ function pf(e, t, r = {}) {
26568
26549
  }
26569
26550
  }), i;
26570
26551
  }
26571
- function pm(e, t, r = {}) {
26552
+ function hm(e, t, r = {}) {
26572
26553
  if (!h.isArray(t) || t.length === 0)
26573
26554
  throw rn;
26574
26555
  const o = (an(e, r).config || {}).columnlen || {}, i = {};
@@ -26859,7 +26840,7 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
26859
26840
  formulaResponseUiSync: bf
26860
26841
  }, { callSignature: l } = e;
26861
26842
  await t(i)(l);
26862
- }, gm = async ({
26843
+ }, pm = async ({
26863
26844
  functionCallString: e,
26864
26845
  sheetEditorRef: t,
26865
26846
  dataBlockRow: r,
@@ -26990,36 +26971,36 @@ function $f(e) {
26990
26971
  return c;
26991
26972
  }
26992
26973
  export {
26993
- md as $,
26974
+ dd as $,
26994
26975
  Fs as A,
26995
26976
  Yt as B,
26996
26977
  Vt as C,
26997
26978
  Vn as D,
26998
- Md as E,
26999
- Rf as F,
27000
- Mf as G,
26979
+ qd as E,
26980
+ Mf as F,
26981
+ qf as G,
27001
26982
  Us as H,
27002
26983
  tn as I,
27003
- fd as J,
27004
- Of as K,
27005
- Pf as L,
27006
- Vf as M,
26984
+ ud as J,
26985
+ Df as K,
26986
+ Bf as L,
26987
+ Wf as M,
27007
26988
  va as N,
27008
26989
  Xe as O,
27009
26990
  pa as P,
27010
26991
  wr as Q,
27011
26992
  Et as R,
27012
- Bf as S,
26993
+ Ff as S,
27013
26994
  Ks as T,
27014
- Uf as U,
26995
+ zf as U,
27015
26996
  _l as V,
27016
26997
  fr as W,
27017
26998
  Je as X,
27018
26999
  rc as Y,
27019
- yd as Z,
27000
+ gd as Z,
27020
27001
  cl as _,
27021
27002
  Le as a,
27022
- Pd as a$,
27003
+ Bd as a$,
27023
27004
  pc as a0,
27024
27005
  Rr as a1,
27025
27006
  Io as a2,
@@ -27027,42 +27008,42 @@ export {
27027
27008
  _a as a4,
27028
27009
  _r as a5,
27029
27010
  Na as a6,
27030
- Yf as a7,
27011
+ Gf as a7,
27031
27012
  Xs as a8,
27032
27013
  un as a9,
27033
27014
  Gu as aA,
27034
27015
  Mn as aB,
27035
- Kd as aC,
27016
+ Zd as aC,
27036
27017
  Ke as aD,
27037
27018
  an as aE,
27038
27019
  ea as aF,
27039
27020
  Po as aG,
27040
27021
  ta as aH,
27041
27022
  qt as aI,
27042
- pd as aJ,
27023
+ hd as aJ,
27043
27024
  rn as aK,
27044
27025
  ef as aL,
27045
- lm as aM,
27026
+ om as aM,
27046
27027
  Kt as aN,
27047
- fm as aO,
27048
- cm as aP,
27028
+ um as aO,
27029
+ sm as aP,
27049
27030
  pf as aQ,
27050
- sm as aR,
27051
- dm as aS,
27052
- um as aT,
27053
- $d as aU,
27031
+ lm as aR,
27032
+ fm as aS,
27033
+ cm as aT,
27034
+ Td as aU,
27054
27035
  ia as aV,
27055
- hm as aW,
27036
+ mm as aW,
27056
27037
  hf as aX,
27057
- mm as aY,
27058
- Ud as aZ,
27059
- Dd as a_,
27038
+ dm as aY,
27039
+ zd as aZ,
27040
+ Id as a_,
27060
27041
  Ze as aa,
27061
27042
  pl as ab,
27062
- hd as ac,
27043
+ md as ac,
27063
27044
  nf as ad,
27064
27045
  Nu as ae,
27065
- pm as af,
27046
+ hm as af,
27066
27047
  gl as ag,
27067
27048
  Xt as ah,
27068
27049
  $o as ai,
@@ -27073,11 +27054,11 @@ export {
27073
27054
  It as an,
27074
27055
  xu as ao,
27075
27056
  bl as ap,
27076
- Wf as aq,
27057
+ Uf as aq,
27077
27058
  zn as ar,
27078
27059
  Un as as,
27079
- om as at,
27080
- im as au,
27060
+ im as at,
27061
+ am as au,
27081
27062
  jn as av,
27082
27063
  Nr as aw,
27083
27064
  lf as ax,
@@ -27085,125 +27066,124 @@ export {
27085
27066
  al as az,
27086
27067
  bc as b,
27087
27068
  Nl as b$,
27088
- Hd as b0,
27089
- zd as b1,
27090
- Fd as b2,
27091
- Bd as b3,
27092
- Qf as b4,
27093
- Rd as b5,
27094
- nm as b6,
27069
+ Pd as b0,
27070
+ Hd as b1,
27071
+ Ld as b2,
27072
+ Fd as b3,
27073
+ Kf as b4,
27074
+ Md as b5,
27075
+ tm as b6,
27095
27076
  Qc as b7,
27096
- Zf as b8,
27077
+ Xf as b8,
27097
27078
  eu as b9,
27098
- qd as bA,
27099
- td as bB,
27100
- rd as bC,
27101
- nd as bD,
27079
+ Ed as bA,
27080
+ ed as bB,
27081
+ nd as bC,
27082
+ td as bD,
27102
27083
  Xu as bE,
27103
27084
  ju as bF,
27104
27085
  dr as bG,
27105
27086
  Mc as bH,
27106
- Yd as bI,
27107
- Td as bJ,
27108
- _d as bK,
27109
- vd as bL,
27110
- ud as bM,
27111
- jd as bN,
27112
- Sd as bO,
27087
+ Gd as bI,
27088
+ _d as bJ,
27089
+ vd as bK,
27090
+ wd as bL,
27091
+ cd as bM,
27092
+ Yd as bN,
27093
+ Ad as bO,
27113
27094
  kl as bP,
27114
27095
  xt as bQ,
27115
- Xd as bR,
27096
+ jd as bR,
27116
27097
  Wn as bS,
27117
27098
  sf as bT,
27118
- Gd as bU,
27119
- Vd as bV,
27099
+ Vd as bU,
27100
+ Wd as bV,
27120
27101
  na as bW,
27121
27102
  Ko as bX,
27122
27103
  Ss as bY,
27123
27104
  Ms as bZ,
27124
27105
  Au as b_,
27125
- Od as ba,
27126
- jf as bb,
27106
+ Dd as ba,
27107
+ Yf as bb,
27127
27108
  tu as bc,
27128
- qf as bd,
27129
- Nd as be,
27130
- Kf as bf,
27131
- am as bg,
27132
- Ld as bh,
27133
- Wd as bi,
27134
- Jf as bj,
27135
- Id as bk,
27109
+ Ef as bd,
27110
+ Cd as be,
27111
+ Zf as bf,
27112
+ rm as bg,
27113
+ Od as bh,
27114
+ Ud as bi,
27115
+ Qf as bj,
27116
+ Rd as bk,
27136
27117
  vr as bl,
27137
27118
  Ca as bm,
27138
- Gf as bn,
27139
- Cd as bo,
27140
- bd as bp,
27141
- wd as bq,
27142
- sd as br,
27119
+ Vf as bn,
27120
+ $d as bo,
27121
+ yd as bp,
27122
+ bd as bq,
27123
+ ld as br,
27143
27124
  Yn as bs,
27144
27125
  Tl as bt,
27145
27126
  Hc as bu,
27146
27127
  Vc as bv,
27147
- ad as bw,
27148
- id as bx,
27128
+ rd as bw,
27129
+ ad as bx,
27149
27130
  Oo as by,
27150
- ed as bz,
27131
+ Jf as bz,
27151
27132
  Bl as c,
27152
27133
  Mt as c0,
27153
- Xf as c1,
27154
- zf as c2,
27134
+ jf as c1,
27135
+ Hf as c2,
27155
27136
  $l as c3,
27156
- Lf as c4,
27157
- Df as c5,
27137
+ Of as c4,
27138
+ If as c5,
27158
27139
  aa as c6,
27159
27140
  Wc as c7,
27160
- Jd as c8,
27161
- Zd as c9,
27162
- Qd as cA,
27163
- Sf as cB,
27164
- yf as cC,
27165
- Tf as cD,
27166
- Dl as cE,
27167
- $f as cF,
27168
- gr as cG,
27169
- la as cH,
27170
- vf as cI,
27171
- _f as cJ,
27172
- Rl as cK,
27141
+ Qd as c8,
27142
+ Xd as c9,
27143
+ Kd as cA,
27144
+ yf as cB,
27145
+ Tf as cC,
27146
+ Dl as cD,
27147
+ $f as cE,
27148
+ gr as cF,
27149
+ la as cG,
27150
+ vf as cH,
27151
+ _f as cI,
27152
+ Rl as cJ,
27173
27153
  of as ca,
27174
27154
  mc as cb,
27175
- tm as cc,
27155
+ em as cc,
27176
27156
  dc as cd,
27177
27157
  ha as ce,
27178
- gd as cf,
27158
+ pd as cf,
27179
27159
  Nn as cg,
27180
- kf as ch,
27160
+ Sf as ch,
27181
27161
  As as ci,
27182
27162
  yt as cj,
27183
- od as ck,
27163
+ id as ck,
27184
27164
  Gn as cl,
27185
27165
  cu as cm,
27186
27166
  Bo as cn,
27187
- kd as co,
27188
- Ed as cp,
27167
+ Sd as co,
27168
+ kd as cp,
27189
27169
  Qu as cq,
27190
27170
  Ku as cr,
27191
- ld as cs,
27192
- Ef as ct,
27193
- cd as cu,
27194
- xd as cv,
27171
+ od as cs,
27172
+ kf as ct,
27173
+ sd as cu,
27174
+ Nd as cv,
27195
27175
  qs as cw,
27196
- em as cx,
27197
- Ad as cy,
27198
- dd as cz,
27176
+ Jd as cx,
27177
+ xd as cy,
27178
+ fd as cz,
27199
27179
  Tn as d,
27200
- gm as e,
27180
+ pm as e,
27201
27181
  bf as f,
27202
27182
  Wo as g,
27203
27183
  Re as h,
27204
27184
  Lc as i,
27205
27185
  mf as j,
27206
- rm as k,
27186
+ nm as k,
27207
27187
  Rt as l,
27208
27188
  br as m,
27209
27189
  Ds as n,
@@ -27216,7 +27196,7 @@ export {
27216
27196
  Jt as u,
27217
27197
  vt as v,
27218
27198
  nn as w,
27219
- Ff as x,
27220
- If as y,
27221
- Hf as z
27199
+ Lf as x,
27200
+ Rf as y,
27201
+ Pf as z
27222
27202
  };