@sheetxl/sdk 0.8.0-beta.17 → 0.8.0-beta.18

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 (110) hide show
  1. package/browser/esm/{CAjITJT3eLst9Rhi.mjs → -P0fym6eh9hn9row.mjs} +2 -2
  2. package/browser/esm/{CFywn1iiD35nNNUP.mjs → -nOfWMHdlTb9ShjF.mjs} +9 -9
  3. package/browser/esm/{Byp_bvP9G-tN6hcz.mjs → 0Mw5Ew_7tAiWgc5J.mjs} +14 -14
  4. package/browser/esm/{CHByUyHFA3ESf7DX.mjs → 1ktaHvjuYL6stU4C.mjs} +1 -1
  5. package/browser/esm/{CVV4xqwD8gIjYj1E.mjs → B3ifnlsuky2L9HmB.mjs} +33 -33
  6. package/browser/esm/{WR3-xqcK1gF3ewAR.mjs → B67q5ZrwyKvm3d6W.mjs} +3 -3
  7. package/browser/esm/{DTXsi--x2wgqgwtf.mjs → BQSd_URWugiyNoNj.mjs} +2 -2
  8. package/browser/esm/{C0o6WpBojS7XhV5m.mjs → BWHHWC6H2JgG11Kq.mjs} +2 -2
  9. package/browser/esm/{BlkstmZEklk6Y1QD.mjs → BYbb2weYQCb_7KI3.mjs} +21 -21
  10. package/browser/esm/{DJTEQZiR9IFTuN_4.mjs → B_hrmyuWaH5VIFpV.mjs} +2 -2
  11. package/browser/esm/{O970I8lbI7okqG7N.mjs → Bql31KGUYo0SCMwZ.mjs} +392 -392
  12. package/browser/esm/{YwDdO4YwcIE4OB0D.mjs → BtVpErObXYKJCwHG.mjs} +1 -1
  13. package/browser/esm/{B-Q1-7RgSnA75J32.mjs → By7_c19Kv2YQaDVF.mjs} +475 -475
  14. package/browser/esm/{taTjDyUIIxq2eClH.mjs → C6M_XM08QtHuaInQ.mjs} +3 -3
  15. package/browser/esm/{DDNerAeet8uDYKhf.mjs → CBHwju4PYiv85_jD.mjs} +2 -2
  16. package/browser/esm/{Dx_dZ7jrw5Hxeoot.mjs → CJhYhZtsey3OnWKd.mjs} +1 -1
  17. package/browser/esm/{DnMFW_oKYQxRjP1l.mjs → CQlxAbhdxgfu0ERF.mjs} +1 -1
  18. package/browser/esm/{CLT3qGy_brDIwbYd.mjs → CVXOtvee4oFImGyR.mjs} +504 -504
  19. package/browser/esm/{Dlk1kRgkiBIpUxd9.mjs → CXQLYHAhE5MLKxZ4.mjs} +37 -37
  20. package/browser/esm/{jotvQFBWO2jXAhWx.mjs → CZiJYw94Yt7xslXS.mjs} +1 -1
  21. package/browser/esm/{aYpwVCDSwMUuz147.mjs → ChRUNekYurtOtrP1.mjs} +113 -113
  22. package/browser/esm/{JmmPE8Vsj85wdV8H.mjs → CnobgPLHEsTPTFY5.mjs} +1 -1
  23. package/browser/esm/{DGUOlgm1_WFmf_xO.mjs → CxNnMvwtOf76r7yY.mjs} +1 -1
  24. package/browser/esm/{DW3kFc5t4Wnh5E9S.mjs → CzmmdfrOYDUGx-Yh.mjs} +1 -1
  25. package/browser/esm/{XHhDDWrJiZJgWxPM.mjs → D2P43UD6TGSXErhr.mjs} +2 -2
  26. package/browser/esm/{DrmOaEx6CQ91zBsP.mjs → DH8NuKmZAC9EaqwP.mjs} +18 -18
  27. package/browser/esm/{DUB6Oj_aiV3f8s5_.mjs → DJuiV0Y8olnwuqB-.mjs} +21 -21
  28. package/browser/esm/{DkmqFp_-iUIy_l3D.mjs → DKFaQ2QOyUPCk0sD.mjs} +3 -3
  29. package/browser/esm/{BI6NwRrdLCbPdz6f.mjs → DLR8g1DkooIBl8S1.mjs} +2 -2
  30. package/browser/esm/{DsWDvmky7CgzX_7W.mjs → DNAXbbB8DGE2xeHy.mjs} +2 -2
  31. package/browser/esm/{BY_-BTa5h6HnnZ1W.mjs → DQTUUXcERWI4l0to.mjs} +2 -2
  32. package/browser/esm/{DJrnSjYjFxJvpQiH.mjs → DpFowFtk9AeU-89B.mjs} +1 -1
  33. package/browser/esm/{Dy0TAi9WafVT8eke.mjs → DyRVg5YJn7voOO6z.mjs} +2 -2
  34. package/browser/esm/{qNv1x-Ny9TPbvZzj.mjs → Pn5Jc-47dk16sYQ4.mjs} +1 -1
  35. package/browser/esm/{CWkaF7gYWCkW7vDA.mjs → _WWjW2f-YW-AVqAL.mjs} +1 -1
  36. package/browser/esm/{gQzj95vSMXdKhpWf.mjs → _lh_Rr5SwLthmbmu.mjs} +7797 -5857
  37. package/browser/esm/index.mjs +367 -366
  38. package/browser/esm/{yudASWe8CWXYcGt3.mjs → mecFApGwMvcIzlpd.mjs} +36 -36
  39. package/browser/esm/{mufbL88lyIKJEWyP.mjs → n4LOSiYtWTzqQa4w.mjs} +661 -661
  40. package/{node/esm/Cle-_21jebWv_-D4.mjs → browser/esm/tJB0V8fKbukOYt9U.mjs} +2 -2
  41. package/browser/esm/{BWNQcQyx8wt6huOq.mjs → yRhetuEQfV7moa4B.mjs} +1 -1
  42. package/browser/esm/{BuKA3E-Ev8Dp5W2I.mjs → ybFoQ6IijUJnBeCF.mjs} +1 -1
  43. package/node/esm/{Yo7_havHbr9VL8R4.mjs → 0313aQKBU4DE3v2j.mjs} +1 -1
  44. package/node/esm/{DfrxGbxxowFmm3SF.mjs → 3gjEEXV2aSt7cKeD.mjs} +1 -1
  45. package/node/esm/{NnrDjio_xwTBs05n.mjs → 3smtwEJ0ASF0tKBY.mjs} +2 -2
  46. package/node/esm/{cRz94rkuvDrA8mr9.mjs → 4k3KKByrUw2Wr2TX.mjs} +1 -1
  47. package/node/esm/{jqBKdf9DG54xqpaw.mjs → 90jp-mCVEr43zZTj.mjs} +2 -2
  48. package/node/esm/{OCrS6pBT6lGRu82d.mjs → BAEmzj0gb8Cbgz7p.mjs} +3293 -3293
  49. package/node/esm/{CIxb44vA81H9lRip.mjs → BBC5dL9bXzOrQDGY.mjs} +1 -1
  50. package/node/esm/{7ZwdVIsOdcziHpMD.mjs → BV0cJ_YP_0qzJuPt.mjs} +180 -180
  51. package/node/esm/{DxnBYzOueAKEqaQT.mjs → BcxcYoF_4GFL7Zkl.mjs} +15 -15
  52. package/node/esm/{BwyoLlHutolJw7OW.mjs → BesaVk0x7UyfLDk2.mjs} +1 -1
  53. package/node/esm/{ClJJC8tBpgsqHwdn.mjs → C-LmDC9oNcbENOK1.mjs} +1 -1
  54. package/node/esm/{BSlFO0_8UZ38gfeE.mjs → CDkUQn5AwYGomlsT.mjs} +36 -36
  55. package/node/esm/{CjCqcGyCYGkaMQI9.mjs → CE4I5qfVmUBf7mED.mjs} +1 -1
  56. package/node/esm/{DgsBYF3xbjgx9Mzp.mjs → CO0UDgbkHGwyTfev.mjs} +1 -1
  57. package/node/esm/{DfbVTAhNutxM74E8.mjs → CTWihjVB5uFX7U4j.mjs} +2 -2
  58. package/node/esm/{-q1xF3_2jmk3QHIY.mjs → CUNaLYCntlclipWu.mjs} +497 -497
  59. package/node/esm/{BhosJbKOPgbJSZMY.mjs → CY9JqXFJTt5pGhC3.mjs} +1 -1
  60. package/node/esm/{B6BQYUDRxbRnzca4.mjs → C_Sqy290v4uzyi1E.mjs} +3 -3
  61. package/node/esm/{BoLecFnIxhYKGor-.mjs → Cf-cK3yPe9bjK6o2.mjs} +561 -561
  62. package/node/esm/{Cb1-r2RCxcJZB6fM.mjs → CpvUwhAeDmdEpdR-.mjs} +10018 -8039
  63. package/{browser/esm/DCs7bk-yx0UhCvQ4.mjs → node/esm/Crhg3srH-O5sJERh.mjs} +2 -2
  64. package/node/esm/{M3jahkTgfUxGyeZv.mjs → Cx2U91jhiTDz600y.mjs} +116 -116
  65. package/node/esm/{BQko-9y6mf2oQK7u.mjs → CyWWKan_uk4dHZ6P.mjs} +1 -1
  66. package/node/esm/{Bgy7uWJVGwkN7AlD.mjs → D48MjKzkj37XsVm1.mjs} +2 -2
  67. package/node/esm/{XhDjStxKy-dd3WKa.mjs → D7c0zfLVoG7EEln5.mjs} +43 -43
  68. package/node/esm/{CIlH2fSEpdYBZwUA.mjs → D8J4JmOPwG_Yr2GD.mjs} +1 -1
  69. package/node/esm/{oGGVbqahqfK45-Uz.mjs → D91qb21TrJX98Rw8.mjs} +3 -3
  70. package/node/esm/{btVWSwUwMjM0J5fS.mjs → D9D2NyyKbWXpTj5I.mjs} +2 -2
  71. package/node/esm/{DCSJKgcCQzOV-dMJ.mjs → DBF7pIpitcmhi65H.mjs} +2 -2
  72. package/node/esm/{CDgUHRW6vSASfqNr.mjs → DLPVrV723TSxkXqL.mjs} +1 -1
  73. package/node/esm/{DTkV7IK2_ODMJAP5.mjs → DWsnb-a-9dfRn5jJ.mjs} +24 -24
  74. package/node/esm/{DCaLNIs-_4Y6hJ8S.mjs → Dj1pybJRqeZiP1Z6.mjs} +1 -1
  75. package/node/esm/{BBUVvO9Ma1RzbKux.mjs → DtNJOImWtsXVrQps.mjs} +2 -2
  76. package/node/esm/{zh6vcRzFqdV1aYh5.mjs → DxROQlX1KHLb9tHS.mjs} +1 -1
  77. package/node/esm/{B8MYgBe4XICBSROW.mjs → dp4LxzOEkfTbVX_1.mjs} +21 -21
  78. package/node/esm/{CHS84ZGEoH6aeHsZ.mjs → ee_DgHTffiVTOiU2.mjs} +21 -21
  79. package/node/esm/{fwfAgq8qIADcHmY4.mjs → fMFapG4AGMQKX8c5.mjs} +33 -33
  80. package/node/esm/index.mjs +545 -544
  81. package/node/esm/{nxxwAZZF8NsdErJW.mjs → jmElgIMAkpc2Ab1m.mjs} +1 -1
  82. package/node/esm/{D51xu0rubo34Ppeg.mjs → yVJ2lEYZob1gwiRZ.mjs} +14 -14
  83. package/package.json +6 -6
  84. package/resources/locales/de/model.msg.json +15 -0
  85. package/resources/locales/en/model.msg.json +15 -0
  86. package/types/scripting-api.json +11445 -11299
  87. package/types/scripting-enums.json +22 -1
  88. package/types/scripting.d.ts +623 -0
  89. package/types/src/address/index.d.ts +2 -0
  90. package/types/src/anomalies/_Anomalies.d.ts +34 -0
  91. package/types/src/anomalies/_CompletenessChecks.d.ts +32 -0
  92. package/types/src/cell/ICell.d.ts +36 -1
  93. package/types/src/cellRange/ICellRange.d.ts +106 -0
  94. package/types/src/index.d.ts +1 -0
  95. package/types/src/license/runtime.browser.d.ts +3 -1
  96. package/types/src/sheet/IWorksheet.d.ts +17 -0
  97. package/types/src/sheet/SheetCell.d.ts +3 -0
  98. package/types/src/sheet/SheetRange.d.ts +6 -0
  99. package/types/src/sheet/Worksheet.d.ts +103 -1
  100. package/types/src/sheet/_ListenerAnchor.d.ts +14 -0
  101. package/types/src/sheet/_SheetStateTypes.d.ts +13 -0
  102. package/types/src/sparkline/ISparklineGroup.d.ts +338 -0
  103. package/types/src/sparkline/ISparklineGroupCollection.d.ts +68 -0
  104. package/types/src/sparkline/SparklineGroup.d.ts +271 -0
  105. package/types/src/sparkline/SparklineGroupCollection.d.ts +25 -0
  106. package/types/src/sparkline/SparklineRanges.d.ts +195 -0
  107. package/types/src/sparkline/index.d.ts +4 -0
  108. package/types/src/sparkline/layout/SparklineLayout.d.ts +71 -0
  109. package/types/src/sparkline/layout/_layoutSparkline.d.ts +42 -0
  110. package/types/src/sparkline/layout/index.d.ts +2 -0
@@ -1,20 +1,20 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { Hi as r, Mr as e, Ui as t, Vr as n, Wr as o, Xr as s, gt as a, mt as i, pi as c, rr as l } from "./Cb1-r2RCxcJZB6fM.mjs";
8
- import { C as u, E as m, T as f, h as p, i as d, r as g, w as h, x as y, y as v } from "./-q1xF3_2jmk3QHIY.mjs";
9
- import { n as w, r as x, t as k } from "./XhDjStxKy-dd3WKa.mjs";
10
- import { i as j, r as T } from "./7ZwdVIsOdcziHpMD.mjs";
11
- import { a as b, n as E } from "./Bgy7uWJVGwkN7AlD.mjs";
7
+ import { Gr as r, Hr as e, Nr as t, Ui as n, Wi as o, Zr as s, gt as a, ir as i, mi as c, mt as l } from "./CpvUwhAeDmdEpdR-.mjs";
8
+ import { C as u, E as m, T as f, h as p, i as d, r as g, w as h, x as y, y as v } from "./CUNaLYCntlclipWu.mjs";
9
+ import { n as w, r as x, t as k } from "./D7c0zfLVoG7EEln5.mjs";
10
+ import { i as j, r as T } from "./BV0cJ_YP_0qzJuPt.mjs";
11
+ import { a as b, n as E } from "./D48MjKzkj37XsVm1.mjs";
12
12
  import { ScalarType as I } from "@sheetxl/primitives";
13
13
  import S from "@sheetxl/formulas/declarations";
14
14
  import C from "@sheetxl/formulas-extended/declarations";
15
- var M = null;
15
+ var N = null;
16
16
  function O(r) {
17
- return M || (M = (() => {
17
+ return N || (N = (() => {
18
18
  const r = /* @__PURE__ */ new Map(), e = [
19
19
  ...S,
20
20
  ...C,
@@ -35,7 +35,7 @@ function O(r) {
35
35
  return t;
36
36
  };
37
37
  for (const e of Object.keys(t)) {
38
- const { decl: n } = b(e, t[e], o), s = new l(n);
38
+ const { decl: n } = b(e, t[e], o), s = new i(n);
39
39
  r.set(e.toUpperCase(), {
40
40
  getName: () => e,
41
41
  getDeclaration: () => s,
@@ -44,15 +44,15 @@ function O(r) {
44
44
  }
45
45
  }
46
46
  return r;
47
- })()), M.get(r.toUpperCase()) ?? null;
47
+ })()), N.get(r.toUpperCase()) ?? null;
48
48
  }
49
49
  var U = null, z = Object.freeze({
50
50
  rowStart: 0,
51
51
  colStart: 0,
52
- rowEnd: t,
53
- colEnd: r
52
+ rowEnd: o,
53
+ colEnd: n
54
54
  }), D = (r) => O(r);
55
- function N(r, e) {
55
+ function M(r, e) {
56
56
  if ("string" != typeof r || 0 === r.length) return null;
57
57
  U || (U = new T());
58
58
  const t = e?.anchor;
@@ -72,16 +72,16 @@ function N(r, e) {
72
72
  function B(r, e) {
73
73
  return x(r, e);
74
74
  }
75
- function H(r, e) {
75
+ function G(r, e) {
76
76
  const t = p(g(v(k(r)), D)), n = e?.entireCoords ?? z, o = !0 === e?.r1c1;
77
- return (r) => o ? a(t, n) : i(t, n, r?.rowIndex ?? 0, r?.colIndex ?? 0);
77
+ return (r) => o ? a(t, n) : l(t, n, r?.rowIndex ?? 0, r?.colIndex ?? 0);
78
78
  }
79
- function L(r) {
80
- const t = r.trim();
81
- if (!t) return;
79
+ function H(n) {
80
+ const o = n.trim();
81
+ if (!o) return;
82
82
  let a;
83
83
  try {
84
- const r = j.shared().tokenize(t, !1);
84
+ const r = j.shared().tokenize(o, !1);
85
85
  if (r.errors.length > 0) return;
86
86
  a = r.tokens;
87
87
  } catch {
@@ -99,17 +99,17 @@ function L(r) {
99
99
  case "NumberToken":
100
100
  case "ScientificDigit":
101
101
  case "DigitToken": {
102
- const r = o(u).value;
103
- return 0 === i ? r : i * r;
102
+ const e = r(u).value;
103
+ return 0 === i ? e : i * e;
104
104
  }
105
105
  case "StringToken": return 0 === i ? s(u).value : void 0;
106
- case "BooleanToken": return 0 === i ? e(u).value : void 0;
106
+ case "BooleanToken": return 0 === i ? t(u).value : void 0;
107
107
  case "LiteralError":
108
- case "RefError": return 0 === i ? n(u).value : void 0;
108
+ case "RefError": return 0 === i ? e(u).value : void 0;
109
109
  default: return;
110
110
  }
111
111
  } catch {
112
112
  return;
113
113
  }
114
114
  }
115
- export { O as getFunctionDeclaration, H as imager, N as parse, L as readFormulaLiteral, B as transform };
115
+ export { O as getFunctionDeclaration, G as imager, M as parse, H as readFormulaLiteral, B as transform };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as A } from "./ClJJC8tBpgsqHwdn.mjs";
7
+ import { t as A } from "./C-LmDC9oNcbENOK1.mjs";
8
8
  import { instantiateWasmBindgen as I } from "@sheetxl/utils";
9
9
  var Q = A({
10
10
  FaceInfo: () => g,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { Fa as t, Pa as o, Xa as r, Ya as n, Za as l, dr as e, n as a, vi as c } from "./Cb1-r2RCxcJZB6fM.mjs";
7
+ import { Fa as t, Ia as o, Qa as r, Xa as n, Za as l, fr as e, n as a, yi as c } from "./CpvUwhAeDmdEpdR-.mjs";
8
8
  import { FormulaError as s, IRange as u } from "@sheetxl/primitives";
9
9
  import { CommonUtils as d } from "@sheetxl/utils";
10
10
  var i = (t) => {
@@ -27,27 +27,27 @@ var i = (t) => {
27
27
  }, f = (t) => {
28
28
  const o = t.precedents;
29
29
  return null !== o ? o.length : t.block.paramLength;
30
- }, S = (t) => {
31
- if (t instanceof o) return new l(t);
32
- const n = !0 === t.isIRepeatingList ? t : null, e = n ? n.getPeriod() : t.length, a = Array.isArray(t);
33
- if (!n && !a && !m(t)) return new l(t);
30
+ }, S = (o) => {
31
+ if (o instanceof t) return new r(o);
32
+ const n = !0 === o.isIRepeatingList ? o : null, e = n ? n.getPeriod() : o.length, a = Array.isArray(o);
33
+ if (!n && !a && !m(o)) return new r(o);
34
34
  let c = null;
35
- for (let o = 0; o < e; o++) if (h(a ? t[o] : t.at(o))) {
35
+ for (let t = 0; t < e; t++) if (h(a ? o[t] : o.at(t))) {
36
36
  if (null === c) {
37
37
  c = new Array(e);
38
- for (let o = 0; o < e; o++) c[o] = a ? t[o] : t.at(o);
38
+ for (let t = 0; t < e; t++) c[t] = a ? o[t] : o.at(t);
39
39
  }
40
- c[o] = s.BuiltIn.Calc;
40
+ c[t] = s.BuiltIn.Calc;
41
41
  }
42
- return new l(null === c ? t : n ? new r(c, t.length) : c);
43
- }, h = (t) => null !== t && "object" == typeof t && !s.isError(t) && !0 !== t.isIRichData && !c(t), m = (t) => {
44
- let r = !1;
45
- return l.forEachLeaf(t, (t, n, l, e) => {
46
- if (r || t instanceof o) return;
47
- let a = n + e - l;
48
- !0 === t.isIRepeatingList && (a = Math.min(a, n + t.getPeriod() - 1));
49
- for (let o = n; !r && o <= a; o++) r = h(t.at(o));
50
- }), r;
42
+ return new r(null === c ? o : n ? new l(c, o.length) : c);
43
+ }, h = (t) => null !== t && "object" == typeof t && !s.isError(t) && !0 !== t.isIRichData && !c(t), m = (o) => {
44
+ let n = !1;
45
+ return r.forEachLeaf(o, (o, r, l, e) => {
46
+ if (n || o instanceof t) return;
47
+ let a = r + e - l;
48
+ !0 === o.isIRepeatingList && (a = Math.min(a, r + o.getPeriod() - 1));
49
+ for (let t = r; !n && t <= a; t++) n = h(o.at(t));
50
+ }), n;
51
51
  }, g = class extends e {
52
52
  constructor(t, o) {
53
53
  super(), this.nodes = t, this.count = o;
@@ -70,9 +70,9 @@ function p(t, o = 0, r = 0) {
70
70
  }
71
71
  return i.build();
72
72
  }
73
- function x(o) {
74
- if (null === o || "object" != typeof o || !0 !== o.isIRange) return o;
75
- const r = o, n = r._values, l = new t({
73
+ function x(t) {
74
+ if (null === t || "object" != typeof t || !0 !== t.isIRange) return t;
75
+ const r = t, n = r._values, l = new o({
76
76
  axis: n.getAxis(),
77
77
  createRun: S
78
78
  }), e = p(r);
@@ -1,30 +1,30 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { jt as e, mi as t, pi as n } from "./Cb1-r2RCxcJZB6fM.mjs";
8
- import { D as r, E as s, a, c as o, d as l, f as i, l as c, m as u, n as p, o as d, p as f, r as h, s as g, u as m, v as x, w as y } from "./-q1xF3_2jmk3QHIY.mjs";
9
- import { n as v, r as I, t as b } from "./7ZwdVIsOdcziHpMD.mjs";
7
+ import { hi as e, jt as t, mi as n } from "./CpvUwhAeDmdEpdR-.mjs";
8
+ import { D as r, E as s, a, c as o, d as l, f as i, l as c, m as u, n as p, o as d, p as f, r as h, s as g, u as m, v as x, w as y } from "./CUNaLYCntlclipWu.mjs";
9
+ import { n as v, r as I, t as b } from "./BV0cJ_YP_0qzJuPt.mjs";
10
10
  import { FormulaError as _ } from "@sheetxl/primitives";
11
11
  import { CommonUtils as T } from "@sheetxl/utils";
12
12
  var P = class {
13
13
  constructor(e) {
14
14
  e = { ...e }, this._editing = "editing" === e.profile, this._parser = new I(e);
15
15
  }
16
- compile(e, n, p, I, T, P, k, E, w) {
16
+ compile(t, n, p, I, T, P, k, E, w) {
17
17
  if (0 === I.length) {
18
- const t = new _.Parse(b);
19
- return this._compileUnparsed(e, T, I, {
18
+ const e = new _.Parse(b);
19
+ return this._compileUnparsed(t, T, I, {
20
20
  input: I,
21
- cause: t,
22
- causes: [t]
21
+ cause: e,
22
+ causes: [e]
23
23
  });
24
24
  }
25
- if (I.length > t.MAX_EXPRESSION_LENGTH) {
26
- const n = new _.Parse(v(I.length, t.MAX_EXPRESSION_LENGTH));
27
- return this._compileUnparsed(e, T, I, {
25
+ if (I.length > e.MAX_EXPRESSION_LENGTH) {
26
+ const n = new _.Parse(v(I.length, e.MAX_EXPRESSION_LENGTH));
27
+ return this._compileUnparsed(t, T, I, {
28
28
  input: I,
29
29
  cause: n,
30
30
  causes: [n]
@@ -59,10 +59,10 @@ var P = class {
59
59
  causes: z.length > 0 ? z : [C]
60
60
  }), !F) {
61
61
  if (this._editing) {
62
- const t = this._recoverCompiled(e, n, p, I, T, R, k);
63
- if (t) return t;
62
+ const e = this._recoverCompiled(t, n, p, I, T, R, k);
63
+ if (e) return e;
64
64
  }
65
- return this._compileUnparsed(e, T, I, R, this._editing, () => A(T, k, n, p));
65
+ return this._compileUnparsed(t, T, I, R, this._editing, () => A(T, k, n, p));
66
66
  }
67
67
  if (F = s(F, P ?? null), F = h(F, P ?? null), T) {
68
68
  const e = this._editing ? w : {
@@ -83,8 +83,8 @@ var P = class {
83
83
  };
84
84
  }
85
85
  }
86
- const S = a(e, T, F, this._editing, R, P ?? null);
87
- if (this._editing && R && r(S.getTokens(), T) !== I) return this._recoverCompiled(e, n, p, I, T, R, k) || this._compileUnparsed(e, T, I, R, !0);
86
+ const S = a(t, T, F, this._editing, R, P ?? null);
87
+ if (this._editing && R && r(S.getTokens(), T) !== I) return this._recoverCompiled(t, n, p, I, T, R, k) || this._compileUnparsed(t, T, I, R, !0);
88
88
  return S;
89
89
  }
90
90
  autoCorrect(e) {
@@ -268,14 +268,14 @@ var P = class {
268
268
  c >= 0 && !/[A-Za-z0-9_.]/.test(u) ? (c > 0 && l(t.slice(0, c)), l(t.slice(c), !0)) : l(t);
269
269
  }
270
270
  };
271
- function A(t, n, r, s) {
272
- if (!t || !n) return;
273
- const a = t.bind(e.Table, "", { at: {
271
+ function A(e, n, r, s) {
272
+ if (!e || !n) return;
273
+ const a = e.bind(t.Table, "", { at: {
274
274
  scope: n,
275
275
  rowIndex: r,
276
276
  colIndex: s
277
277
  } });
278
- return a ? t.resolve(e.Table, a)?.toString() : void 0;
278
+ return a ? e.resolve(t.Table, a)?.toString() : void 0;
279
279
  }
280
280
  var k = /[A-Za-z_\\\u007F-\uFFFF][A-Za-z0-9_.\u007F-\uFFFF]*$/, E = /[A-Za-z0-9_.)\]}"'!#\u007F-\uFFFF]/;
281
281
  function w(e, t) {
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t } from "./CjCqcGyCYGkaMQI9.mjs";
8
- import { Ki as e, Ta as r, aa as s, ia as i, ji as n, na as o, on as l } from "./Cb1-r2RCxcJZB6fM.mjs";
9
- import { $t as a, Bt as u, Ct as h, Ht as c, Lt as d, Pt as p, Qt as g, T as f, Ut as m, Y as y, et as x, lt as b, mt as v } from "./D51xu0rubo34Ppeg.mjs";
10
- import { i as w, r as _, t as k } from "./B6BQYUDRxbRnzca4.mjs";
7
+ import { t } from "./CE4I5qfVmUBf7mED.mjs";
8
+ import { Ea as e, Mi as r, aa as s, oa as i, qi as n, ra as o, sn as l } from "./CpvUwhAeDmdEpdR-.mjs";
9
+ import { $t as a, Bt as u, Ct as h, Ht as c, Lt as d, Pt as p, Qt as g, T as f, Ut as m, Y as y, et as x, lt as b, mt as v } from "./yVJ2lEYZob1gwiRZ.mjs";
10
+ import { i as w, r as _, t as k } from "./C_Sqy290v4uzyi1E.mjs";
11
11
  import { FormulaError as S } from "@sheetxl/primitives";
12
12
  import { ExpectedError as M, messageKey as P, t as L } from "@sheetxl/utils";
13
13
  var C = /<!\[CDATA\[([\s\S]*?)\]\]>|<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<(\/?)([^\s/>]+)((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*(\/?)>|([^<]+)/g, A = {
@@ -2181,23 +2181,23 @@ function Te(t, e, r) {
2181
2181
  return new Ce(t, e, r ?? null).resolve();
2182
2182
  }
2183
2183
  var Ie = /^\p{White_Space}$/u;
2184
- function Fe(t = r.getShared()) {
2185
- const e = (e) => t.getByName(e.family, {
2184
+ function Fe(t = e.getShared()) {
2185
+ const r = (e) => t.getByName(e.family, {
2186
2186
  bold: e.bold,
2187
2187
  italic: e.italic
2188
2188
  }).table;
2189
2189
  return {
2190
- width: (t, r) => function(t, e, r) {
2190
+ width: (t, e) => function(t, e, r) {
2191
2191
  if (!t.isHinted) return t.width(e, r);
2192
2192
  const s = t.advance(32) ?? 0;
2193
2193
  let i = 0;
2194
2194
  for (const r of e) i += t.advance(r.codePointAt(0)) ?? (Ie.test(r) ? s : 0);
2195
2195
  return i * r;
2196
- }(e(r), t, r.size),
2196
+ }(r(e), t, e.size),
2197
2197
  lineHeight: (t) => {
2198
- const r = e(t);
2199
- if (null !== r.typoLine) return r.typoLine * t.size;
2200
- const s = r.metrics(1e4);
2198
+ const e = r(t);
2199
+ if (null !== e.typoLine) return e.typoLine * t.size;
2200
+ const s = e.metrics(1e4);
2201
2201
  return (s.ascent + s.descent) / 1e4 * t.size;
2202
2202
  }
2203
2203
  };
@@ -8378,9 +8378,9 @@ var Wo = (t, e) => {
8378
8378
  format(t, e) {
8379
8379
  return this._at(t, e).format;
8380
8380
  }
8381
- }, qo = (t, r) => {
8382
- const s = i(t.getName()), n = (t, r) => `$${e(r)}$${o(t)}`, l = n(r.rowStart, r.colStart);
8383
- return `${s}!${r.rowStart === r.rowEnd && r.colStart === r.colEnd ? l : `${l}:${n(r.rowEnd, r.colEnd)}`}`;
8381
+ }, qo = (t, e) => {
8382
+ const r = s(t.getName()), i = (t, e) => `$${n(e)}$${o(t)}`, l = i(e.rowStart, e.colStart);
8383
+ return `${r}!${e.rowStart === e.rowEnd && e.colStart === e.colEnd ? l : `${l}:${i(e.rowEnd, e.colEnd)}`}`;
8384
8384
  }, Ko = (t) => qo(t.getWorksheet(), t.getCoords()), Yo = (t) => {
8385
8385
  const e = /^\{(.*)\}$/s.exec(t.trim());
8386
8386
  if (!e) return null;
@@ -8427,7 +8427,7 @@ var Wo = (t, e) => {
8427
8427
  };
8428
8428
  };
8429
8429
  function Jo(t, e, r) {
8430
- let i, n = null;
8430
+ let s, n = null;
8431
8431
  if ("string" == typeof t) {
8432
8432
  const o = t.trim().replace(/^=/, ""), l = Yo(o);
8433
8433
  if (l) {
@@ -8442,20 +8442,20 @@ function Jo(t, e, r) {
8442
8442
  return l.numbers || "values" === e ? { numLit: t } : { strLit: t };
8443
8443
  }
8444
8444
  if (!o) throw new M(L("error.chart.noData"));
8445
- n = Xo(o, r), i = n && s(o) ? Ko(n) : o;
8446
- } else n = t, i = Ko(t);
8447
- if ("values" === e) return { numRef: { f: i } };
8448
- if (!n || n.isInvalid()) return { strRef: { f: i } };
8445
+ n = Xo(o, r), s = n && i(o) ? Ko(n) : o;
8446
+ } else n = t, s = Ko(t);
8447
+ if ("values" === e) return { numRef: { f: s } };
8448
+ if (!n || n.isInvalid()) return { strRef: { f: s } };
8449
8449
  const o = n.getCoords();
8450
- if (o.rowEnd > o.rowStart && o.colEnd > o.colStart) return { multiLvlStrRef: { f: i } };
8450
+ if (o.rowEnd > o.rowStart && o.colEnd > o.colStart) return { multiLvlStrRef: { f: s } };
8451
8451
  const l = n.getValues(), a = n.getNumberFormats();
8452
8452
  let u = 0;
8453
8453
  for (let t = 0; t < l.length; t++) for (let e = 0; e < l[t].length; e++) {
8454
8454
  const r = Go(l[t][e], a[t]?.[e] ?? "");
8455
- if ("text" === r) return { strRef: { f: i } };
8455
+ if ("text" === r) return { strRef: { f: s } };
8456
8456
  "blank" !== r && u++;
8457
8457
  }
8458
- return u > 0 ? { numRef: { f: i } } : { strRef: { f: i } };
8458
+ return u > 0 ? { numRef: { f: s } } : { strRef: { f: s } };
8459
8459
  }
8460
8460
  function Qo(t, e) {
8461
8461
  if ("string" != typeof t) return t.isInvalid() ? 0 : t.size;
@@ -11925,7 +11925,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
11925
11925
  const e = {};
11926
11926
  for (const [r, s] of Object.entries(t ?? {})) void 0 !== s && (e[r] = s);
11927
11927
  return e;
11928
- }, Ra = class e extends t {
11928
+ }, Ra = class s extends t {
11929
11929
  constructor(t) {
11930
11930
  super(t), this._part = null, this._readSource = null, this._read = null, this._partModel = null, this._series = null, this._parts = null, this._held = null, this._heldModel = null, this._heldBefore = /* @__PURE__ */ new WeakMap(), this._layoutListeners = 0, this._layoutSources = null, this._dataListeners = /* @__PURE__ */ new Map(), this._sheetListeners = /* @__PURE__ */ new Map(), this._layoutQueued = !1, this._getStyles = t.getStyles ?? null, this._canHold = !!t.addWatch, t.json && (this._part = l.fromJSON(t.json.part, t.fromResourceId), this._updateState({ data: t.json }), this._partModel = t.json.model ?? null), this._syncHolds();
11931
11931
  }
@@ -12026,7 +12026,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
12026
12026
  }
12027
12027
  _rangeAt(t) {
12028
12028
  const e = this._formulaAt(t);
12029
- if (!e || !s(e)) return null;
12029
+ if (!e || !i(e)) return null;
12030
12030
  try {
12031
12031
  return this._resolveRange(e);
12032
12032
  } catch {
@@ -12328,10 +12328,10 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
12328
12328
  return t && "groups" in t ? t : this._getLayout(t);
12329
12329
  }
12330
12330
  _hitNames(t) {
12331
- const r = e._hitNamesOf.get(t);
12332
- if (r) return r;
12333
- const s = this._nameHits();
12334
- return e._hitNamesOf.set(t, s), s;
12331
+ const e = s._hitNamesOf.get(t);
12332
+ if (e) return e;
12333
+ const r = this._nameHits();
12334
+ return s._hitNamesOf.set(t, r), r;
12335
12335
  }
12336
12336
  _nameHits() {
12337
12337
  const t = this._getParts(), e = /* @__PURE__ */ new Map();
@@ -12668,7 +12668,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
12668
12668
  return t && G(t) ? Te(t, le(this._styles()), this._dataReader()) : null;
12669
12669
  }
12670
12670
  _styles() {
12671
- return this._getStyles?.() ?? (e._defaultStyles ??= new n());
12671
+ return this._getStyles?.() ?? (s._defaultStyles ??= new r());
12672
12672
  }
12673
12673
  getPivotSource() {
12674
12674
  return this._getFacts()?.pivotSource ?? null;
@@ -12836,7 +12836,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
12836
12836
  if (this._layoutListeners += t, this._layoutListeners > 0 && !this._layoutSources && !this._closed) {
12837
12837
  const t = () => {
12838
12838
  this._closed || this._emitter.notify("onLayoutChange");
12839
- }, e = this.getMovable(), s = () => JSON.stringify(e?.getBounds() ?? null);
12839
+ }, r = this.getMovable(), s = () => JSON.stringify(r?.getBounds() ?? null);
12840
12840
  let i = s();
12841
12841
  const n = () => {
12842
12842
  const e = s();
@@ -12846,9 +12846,9 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
12846
12846
  onAnyChange: t,
12847
12847
  onReferencesChange: () => this._syncDataListeners()
12848
12848
  }),
12849
- e?.addListeners({ onBoundsChange: n }),
12849
+ r?.addListeners({ onBoundsChange: n }),
12850
12850
  this._getStyles?.()?.addListeners({ onThemeChange: t }),
12851
- r.getShared().addListeners({ onCollectionChange: t })
12851
+ e.getShared().addListeners({ onCollectionChange: t })
12852
12852
  ];
12853
12853
  this._layoutSources = o.filter((t) => !!t), this._syncDataListeners();
12854
12854
  } else this._layoutListeners <= 0 && this._layoutSources && this._releaseLayoutSources();