@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,19 +1,19 @@
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 { r as e } from "./DnMFW_oKYQxRjP1l.mjs";
8
- import { a as t, l as n, o as r, t as i, u as a } from "./YwDdO4YwcIE4OB0D.mjs";
9
- import { $i as o, $n as s, $t as c, A as l, Aa as u, Ai as d, At as f, Bi as p, Bt as m, C as h, Ca as g, Ci as _, D as v, Da as y, Di as b, Dt as x, E as S, Ei as C, Er as w, Et as ee, F as te, Fi as ne, Ft as re, Gn as ie, Gt as ae, Hn as oe, Ht as se, I as ce, Ii as le, It as ue, Jt as de, L as fe, Li as pe, Lt as me, M as he, Ma as ge, Mi as _e, Na as ve, Ni as ye, O as be, Oa as xe, Oi as Se, Ot as Ce, Pi as we, Pt as Te, Qt as Ee, R as De, Ri as Oe, S as ke, Sa as Ae, Si as je, T, Ta as Me, Ti as Ne, Tr as Pe, Tt as Fe, Ut as Ie, Vi as Le, Vn as Re, Vt as ze, Wn as Be, Wt as Ve, Xn as He, Xt as Ue, Ya as We, Yi as Ge, Yn as Ke, Yt as qe, Zi as Je, Zn as E, Zt as Ye, _a as Xe, _r as Ze, a as Qe, aa as $e, ao as D, b as O, ba as et, co as tt, da as nt, do as rt, ea as it, en as at, eo as ot, er as st, fa as ct, fo as k, ga as lt, gi as ut, ha as dt, hi as ft, ho as pt, i as mt, ia as ht, io as gt, j as _t, ja as vt, ji as yt, k as bt, ka as xt, ki as St, kt as Ct, lo as wt, ma as Tt, mi as Et, mo as Dt, mr as Ot, no as kt, nr as At, on as A, oo as jt, pa as Mt, po as Nt, pr as Pt, qi as Ft, qt as It, r as Lt, ra as Rt, ro as zt, sn as Bt, so as Vt, tn as Ht, tr as Ut, ua as j, uo as Wt, v as Gt, va as Kt, w as qt, wi as Jt, wt as Yt, x as M, xa as Xt, xi as Zt, xr as Qt, y as $t, ya as en, zi as tn, zt as nn } from "./gQzj95vSMXdKhpWf.mjs";
10
- import { A as rn, B as an, Dt as on, Et as sn, H as cn, K as ln, O as un, Qt as N, R as dn, U as fn, V as pn, W as mn, Xt as hn, Zt as gn, an as _n, at as vn, ct as yn, dt as bn, en as P, ft as xn, k as Sn, lt as Cn, mt as F, on as wn, pt as Tn, sn as I, st as En, ut as Dn, z as On } from "./Byp_bvP9G-tN6hcz.mjs";
11
- import { n as kn, t as An } from "./taTjDyUIIxq2eClH.mjs";
7
+ import { r as e } from "./CQlxAbhdxgfu0ERF.mjs";
8
+ import { a as t, l as n, o as r, t as i, u as a } from "./BtVpErObXYKJCwHG.mjs";
9
+ import { $t as o, A as s, Aa as c, Ai as l, At as u, Bi as d, Bt as f, C as p, Ca as m, Ci as h, D as g, Di as _, Dr as v, Dt as y, E as b, Ea as x, Ei as S, Er as C, Et as w, F as ee, Fi as te, Ft as ne, Gn as re, Gt as ie, Hi as ae, Hn as oe, Ht as se, I as ce, Ii as le, It as ue, Ji as de, Jt as fe, Kn as pe, Kt as me, L as he, Li as ge, Lt as _e, M as ve, Ma as ye, Mi as be, Na as xe, Ni as Se, O as Ce, Oa as we, Oi as Te, Ot as Ee, Pa as De, Pi as Oe, Pt as ke, Qi as Ae, Qn as T, Qt as je, R as Me, Ri as Ne, S as Pe, Sa as Fe, Si as Ie, Sr as Le, T as E, Ti as Re, Tt as ze, Un as Be, Ut as Ve, Vi as He, Vt as Ue, Wt as We, Xa as Ge, Xi as Ke, Xn as qe, Xt as Je, Yt as Ye, Zn as Xe, Zt as Ze, _a as Qe, _i as $e, a as et, aa as tt, ao as nt, b as D, ba as rt, cn as it, co as at, da as O, do as ot, ea as st, en as ct, er as lt, fa as ut, fo as dt, ga as ft, gi as pt, go as mt, ha as ht, hi as gt, ho as _t, hr as vt, i as yt, ia as bt, io as xt, j as St, ja as Ct, ji as wt, k as Tt, ka as Et, ki as Dt, kt as Ot, lo as kt, ma as At, mo as jt, mr as Mt, nn as Nt, nr as Pt, oa as Ft, oo as k, pa as It, po as A, r as Lt, ro as Rt, rr as zt, sn as j, so as Bt, ta as Vt, tn as Ht, to as Ut, tr as Wt, uo as Gt, v as Kt, va as qt, vr as Jt, w as Yt, wa as Xt, wi as Zt, wt as Qt, x as M, xa as $t, y as en, ya as tn, zi as nn, zt as rn } from "./_lh_Rr5SwLthmbmu.mjs";
10
+ import { A as an, B as on, Dt as sn, Et as cn, H as ln, K as un, O as dn, Qt as N, R as fn, U as pn, V as mn, W as hn, Xt as gn, Zt as _n, an as vn, at as yn, ct as bn, dt as xn, en as P, ft as Sn, k as Cn, lt as wn, mt as F, on as Tn, pt as En, sn as I, st as Dn, ut as On, z as kn } from "./0Mw5Ew_7tAiWgc5J.mjs";
11
+ import { n as An, t as jn } from "./C6M_XM08QtHuaInQ.mjs";
12
12
  import { FormulaError as L, ScalarType as R } from "@sheetxl/primitives";
13
- import { BufferUtils as jn, CommonUtils as z, CoordUtils as B, DOMUtils as Mn, DefaultLanguagePackService as Nn, ExpectedError as V, ImageUtils as Pn, InvalidPasswordError as Fn, MimeType as In, Notifier as Ln, NullNotAllowedError as Rn, OutOfBoundsError as H, PasswordRequiredError as zn, ProtectedError as U, UndoManager as Bn, messageKey as W, t as G } from "@sheetxl/utils";
13
+ import { BufferUtils as Mn, CommonUtils as z, CoordUtils as B, DOMUtils as Nn, DefaultLanguagePackService as Pn, ExpectedError as V, ImageUtils as Fn, InvalidPasswordError as In, MimeType as Ln, Notifier as Rn, NullNotAllowedError as zn, OutOfBoundsError as H, PasswordRequiredError as Bn, ProtectedError as U, UndoManager as Vn, messageKey as W, t as G } from "@sheetxl/utils";
14
14
  export * from "@sheetxl/primitives";
15
15
  export * from "@sheetxl/utils";
16
- var Vn, Hn = class extends Bn {
16
+ var Hn, Un = class extends Vn {
17
17
  constructor(e, t = 50) {
18
18
  super(t), this._transactions = e, this._floorId = e ? e.getCurrentCommit(!1).getId() : null, this._removeListener = e?.addListener({ onCommitChange: () => this._notifyOnStackChange() });
19
19
  }
@@ -98,14 +98,14 @@ var Vn, Hn = class extends Bn {
98
98
  return e.length === 0 && this._repeatOperation !== null && e.push(this._repeatOperation.description), Object.freeze(e);
99
99
  }
100
100
  getUndoEntries() {
101
- return this._undoCommits().map(Wn);
101
+ return this._undoCommits().map(Gn);
102
102
  }
103
103
  getRedoEntries() {
104
- let e = this._redoCommits().map(Wn);
104
+ let e = this._redoCommits().map(Gn);
105
105
  return e.length === 0 && this._repeatOperation !== null && e.push({
106
106
  description: this._repeatOperation.description,
107
107
  author: null,
108
- meta: Un
108
+ meta: Wn
109
109
  }), Object.freeze(e);
110
110
  }
111
111
  addUndoOperation() {
@@ -117,11 +117,11 @@ var Vn, Hn = class extends Bn {
117
117
  close() {
118
118
  this._removeListener?.();
119
119
  }
120
- }, Un = Object.freeze({}), Wn = (e) => ({
120
+ }, Wn = Object.freeze({}), Gn = (e) => ({
121
121
  description: e.getDescription(),
122
122
  author: e.getAuthor(),
123
- meta: e.getMeta() ?? Un
124
- }), Gn = class {
123
+ meta: e.getMeta() ?? Wn
124
+ }), Kn = class {
125
125
  constructor(e, n) {
126
126
  this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new t(this);
127
127
  let r = this;
@@ -159,8 +159,8 @@ var Vn, Hn = class extends Bn {
159
159
  this._removeStoreListener?.(), this._removeCommitListener?.(), this._emitter.close();
160
160
  }
161
161
  };
162
- Vn ||= {};
163
- var Kn, K = class e {
162
+ Hn ||= {};
163
+ var qn, K = class e {
164
164
  constructor(n, r = {}) {
165
165
  this._password = null, this._emitter = new t(this), this._path = n ?? null, this._name = r.name ?? null, this._format = r.format ?? null, this._size = r.size ?? null, this._lastModified = r.lastModified ?? null, this._canWrite = r.canWrite ?? e._defaultCanWrite(this._path), this._encryption = r.encryption ?? null;
166
166
  }
@@ -173,7 +173,7 @@ var Kn, K = class e {
173
173
  getName() {
174
174
  if (this._name !== null && this._name !== void 0) return this._name;
175
175
  let e = this._cleanPath();
176
- return e && rt(e) || null;
176
+ return e && dt(e) || null;
177
177
  }
178
178
  getPath() {
179
179
  return this._path;
@@ -184,7 +184,7 @@ var Kn, K = class e {
184
184
  getExtension() {
185
185
  let e = this._cleanPath();
186
186
  if (!e) return null;
187
- let t = k(e);
187
+ let t = A(e);
188
188
  return t ? t.toLowerCase() : null;
189
189
  }
190
190
  getEncryption() {
@@ -234,9 +234,9 @@ var Kn, K = class e {
234
234
  ];
235
235
  return `${t} ${(n / 1024 ** r).toFixed(2)}${i[Math.min(r, i.length - 1)]}`;
236
236
  }
237
- }, q = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new Set(), Jn = (e) => q.get(e) ?? null, Yn = () => Array.from(qn, (e) => e.getOrigin()), Xn = class e {
237
+ }, q = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new Set(), Yn = (e) => q.get(e) ?? null, Xn = () => Array.from(Jn, (e) => e.getOrigin()), Zn = class e {
238
238
  constructor(n) {
239
- this._released = !1, e._assertFree(n), this._emitter = new t(this), this._origin = n, q.set(n, this), qn.add(this);
239
+ this._released = !1, e._assertFree(n), this._emitter = new t(this), this._origin = n, q.set(n, this), Jn.add(this);
240
240
  }
241
241
  getOrigin() {
242
242
  return this._origin;
@@ -245,7 +245,7 @@ var Kn, K = class e {
245
245
  t !== this._origin && (e._assertFree(t), this._released || (q.delete(this._origin), q.set(t, this)), this._origin = t, this._emitter.notify("onOriginChange"));
246
246
  }
247
247
  release() {
248
- this._released || (this._released = !0, q.get(this._origin) === this && q.delete(this._origin), qn.delete(this));
248
+ this._released || (this._released = !0, q.get(this._origin) === this && q.delete(this._origin), Jn.delete(this));
249
249
  }
250
250
  addListeners(e, t) {
251
251
  return this._emitter.addListeners(e, t);
@@ -253,7 +253,7 @@ var Kn, K = class e {
253
253
  static _assertFree(e) {
254
254
  if (q.has(e)) throw Error("This origin already backs an open workbook; an origin backs one workbook at a time.");
255
255
  }
256
- }, Zn = class {
256
+ }, Qn = class {
257
257
  constructor() {
258
258
  this._defaultStringSourceType = "filepath";
259
259
  }
@@ -271,10 +271,10 @@ var Kn, K = class e {
271
271
  }
272
272
  switch (o) {
273
273
  case "file": {
274
- let e = n, r = e?.name, o = r ? `${rt(r)}` : "";
274
+ let e = n, r = e?.name, o = r ? `${dt(r)}` : "";
275
275
  s = await e.arrayBuffer(), c = {
276
276
  format: a,
277
- ext: k(r),
277
+ ext: A(r),
278
278
  name: o,
279
279
  absolutePath: r,
280
280
  size: e.size,
@@ -298,7 +298,7 @@ var Kn, K = class e {
298
298
  let [, t] = n.split(",");
299
299
  e = t;
300
300
  } else e = n;
301
- s = jn.base64ToArrayBuffer(e), c = {
301
+ s = Mn.base64ToArrayBuffer(e), c = {
302
302
  format: a,
303
303
  size: e.length
304
304
  };
@@ -314,7 +314,7 @@ var Kn, K = class e {
314
314
  e = i.input, t = i.init, r = i.timeout;
315
315
  }
316
316
  }
317
- let i = r || 3e4, o = new AbortController(), l = setTimeout(() => o.abort(), i), u = typeof e == "string" ? e : e.toString(), d = k(u);
317
+ let i = r || 3e4, o = new AbortController(), l = setTimeout(() => o.abort(), i), u = typeof e == "string" ? e : e.toString(), d = A(u);
318
318
  try {
319
319
  let n = await fetch(e, {
320
320
  ...t,
@@ -326,7 +326,7 @@ var Kn, K = class e {
326
326
  s = r, c = {
327
327
  format: a,
328
328
  ext: d,
329
- name: rt(u, !0),
329
+ name: dt(u, !0),
330
330
  absolutePath: u
331
331
  };
332
332
  } catch (e) {
@@ -366,7 +366,7 @@ var Kn, K = class e {
366
366
  return t.absolutePath ? this.findOpenPath(t.absolutePath) : null;
367
367
  }
368
368
  findOpenPath(e, t) {
369
- return Yn().find((n) => {
369
+ return Xn().find((n) => {
370
370
  if (n === t || !n.canWrite()) return !1;
371
371
  let r = n.getPath();
372
372
  return !!r && this.isSamePath(r, e);
@@ -397,21 +397,21 @@ var Kn, K = class e {
397
397
  }
398
398
  if (typeof File < "u" && e instanceof File) return "file";
399
399
  if (typeof Blob < "u" && e instanceof Blob) return "blob";
400
- let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = jn.isNodeBuffer(e);
400
+ let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = Mn.isNodeBuffer(e);
401
401
  return t || n || r ? "buffer" : typeof ReadableStream < "u" && e instanceof ReadableStream || Object.prototype.toString.call(e) === "[object ReadableStream]" || e && typeof e.getReader == "function" && e.locked !== void 0 ? "stream" : null;
402
402
  }
403
- }, Qn = class extends Zn {
403
+ }, $n = class extends Qn {
404
404
  constructor(e, t) {
405
405
  super(), this._getWriteFormats = e, this._getReadFormats = t, this._defaultStringSourceType = "fetch", this._handleCache = /* @__PURE__ */ new WeakMap();
406
406
  }
407
407
  async fileFromHandle(e) {
408
- return er(e) ? e.getFile() : null;
408
+ return tr(e) ? e.getFile() : null;
409
409
  }
410
410
  async resolveSource() {
411
411
  let e = await this._getReadFormats?.() ?? [];
412
412
  if (typeof globalThis.showOpenFilePicker == "function") try {
413
413
  let t = function(e) {
414
- let t = $n(e);
414
+ let t = er(e);
415
415
  if (t.length <= 1) return t;
416
416
  let n = /* @__PURE__ */ new Set(), r = {};
417
417
  for (let e of t) for (let [t, i] of Object.entries(e.accept)) for (let e of i) n.has(e) || (n.add(e), (r[t] ??= []).push(e));
@@ -426,13 +426,13 @@ var Kn, K = class e {
426
426
  throw e;
427
427
  }
428
428
  let t = e.flatMap((e) => e.exts.map((e) => "." + e)).join(", ");
429
- return Mn.openFileDialog(t);
429
+ return Nn.openFileDialog(t);
430
430
  }
431
431
  async findOpenOrigin(e) {
432
- return er(e) ? this._findOpenHandle(e) : null;
432
+ return tr(e) ? this._findOpenHandle(e) : null;
433
433
  }
434
434
  async _findOpenHandle(e, t) {
435
- for (let n of Yn()) {
435
+ for (let n of Xn()) {
436
436
  if (n === t || !n.canWrite()) continue;
437
437
  let r = this._handleCache.get(n);
438
438
  if (r && typeof r.isSameEntry == "function" && await r.isSameEntry(e)) return n;
@@ -440,7 +440,7 @@ var Kn, K = class e {
440
440
  return null;
441
441
  }
442
442
  async onWorkbookRead(e, t) {
443
- if (!er(t)) return;
443
+ if (!tr(t)) return;
444
444
  let n = e.getOrigin?.();
445
445
  n?.canWrite() && this._handleCache.set(n, t);
446
446
  }
@@ -467,17 +467,17 @@ var Kn, K = class e {
467
467
  if (!a) {
468
468
  c = await globalThis.showSaveFilePicker({
469
469
  suggestedName: n,
470
- types: $n(o)
470
+ types: er(o)
471
471
  });
472
472
  let t = await this._findOpenHandle(c, e.workbook?.getOrigin?.());
473
473
  if (t) throw new V(G("error.io.openElsewhere", { name: t.getName() ?? c.name ?? "" }));
474
474
  }
475
- let s = nr(c.name ?? n), l = o.find((e) => e.exts.some((e) => e.toLowerCase() === s)) ?? r, u = a ? t : new K(c.name ?? n, {
475
+ let s = rr(c.name ?? n), l = o.find((e) => e.exts.some((e) => e.toLowerCase() === s)) ?? r, u = a ? t : new K(c.name ?? n, {
476
476
  format: l.key,
477
477
  canWrite: !0
478
478
  }), d = await i(l.key, u);
479
479
  if (!d) return null;
480
- let f = new Blob([tr(d)], { type: l.mimeType || "application/octet-stream" }), p = await c.createWritable();
480
+ let f = new Blob([nr(d)], { type: l.mimeType || "application/octet-stream" }), p = await c.createWritable();
481
481
  if (await p.write(f), await p.close(), this._handleCache.set(u, c), u instanceof K) {
482
482
  let e = await Promise.resolve(c.getFile?.()).then((e) => e?.lastModified ?? null, () => null);
483
483
  u.update({
@@ -490,19 +490,19 @@ var Kn, K = class e {
490
490
  if (e?.name === "AbortError") return null;
491
491
  if (e instanceof V) throw e;
492
492
  }
493
- let l = t.getPath(), u = l ? l.split(/[/\\]/).pop() : null, d = u && r.exts.some((e) => e.toLowerCase() === nr(u)) ? u : n, f = l !== d || t.canWrite() ? new K(d, {
493
+ let l = t.getPath(), u = l ? l.split(/[/\\]/).pop() : null, d = u && r.exts.some((e) => e.toLowerCase() === rr(u)) ? u : n, f = l !== d || t.canWrite() ? new K(d, {
494
494
  format: r.key,
495
495
  canWrite: !1
496
496
  }) : t, p = await i(r.key, f);
497
497
  if (!p) return null;
498
- let m = new Blob([tr(p)], { type: r.mimeType || "application/octet-stream" });
498
+ let m = new Blob([nr(p)], { type: r.mimeType || "application/octet-stream" });
499
499
  return function(e, t) {
500
500
  let n = URL.createObjectURL(e), r = document.createElement("a");
501
501
  r.style.display = "none", r.href = n, r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
502
502
  }(m, d), f instanceof K && f.update({ size: m.size }), f;
503
503
  }
504
504
  };
505
- function $n(e) {
505
+ function er(e) {
506
506
  return e.map((e) => {
507
507
  let t = e.mimeType && e.mimeType.includes("/") ? e.mimeType : "application/octet-stream";
508
508
  return {
@@ -511,27 +511,27 @@ function $n(e) {
511
511
  };
512
512
  });
513
513
  }
514
- function er(e) {
514
+ function tr(e) {
515
515
  return !!e && e.kind === "file" && typeof e.getFile == "function";
516
516
  }
517
- function tr(e) {
517
+ function nr(e) {
518
518
  if (typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) {
519
519
  let t = new ArrayBuffer(e.byteLength);
520
520
  return new Uint8Array(t).set(new Uint8Array(e)), t;
521
521
  }
522
522
  return e;
523
523
  }
524
- function nr(e) {
524
+ function rr(e) {
525
525
  let t = e.lastIndexOf(".");
526
526
  return t >= 0 ? e.slice(t + 1).toLowerCase() : "";
527
527
  }
528
- (Kn ||= {}).SortOn = {
528
+ (qn ||= {}).SortOn = {
529
529
  Value: "value",
530
530
  FillColor: "fillColor",
531
531
  FontColor: "fontColor",
532
532
  Icon: "icon"
533
533
  };
534
- var rr = {
534
+ var ir = {
535
535
  TopLeft: "tl",
536
536
  Top: "t",
537
537
  TopRight: "tr",
@@ -541,7 +541,7 @@ var rr = {
541
541
  BottomLeft: "bl",
542
542
  Bottom: "b",
543
543
  BottomRight: "br"
544
- }, J = En.BuiltInName, ir = {
544
+ }, J = Dn.BuiltInName, ar = {
545
545
  [J.Normal]: W("style.builtin.normal"),
546
546
  [J.Comma]: W("style.builtin.comma"),
547
547
  [J.Currency]: W("style.builtin.currency"),
@@ -563,31 +563,31 @@ var rr = {
563
563
  [J.Bad]: W("style.builtin.bad"),
564
564
  [J.Neutral]: W("style.builtin.neutral"),
565
565
  [J.ExplanatoryText]: W("style.builtin.explanatoryText")
566
- }, ar = W("style.builtin.heading"), or = W("style.builtin.accent"), sr = W("style.builtin.accentTint"), cr = /^Heading ([1-4])$/, lr = /^Accent([1-6])$/, ur = /^(20|40|60)% - Accent([1-6])$/;
567
- function dr(e) {
568
- let t = ir[e];
566
+ }, or = W("style.builtin.heading"), sr = W("style.builtin.accent"), cr = W("style.builtin.accentTint"), lr = /^Heading ([1-4])$/, ur = /^Accent([1-6])$/, dr = /^(20|40|60)% - Accent([1-6])$/;
567
+ function fr(e) {
568
+ let t = ar[e];
569
569
  if (t) return { key: t };
570
- let n = cr.exec(e);
570
+ let n = lr.exec(e);
571
571
  return n ? {
572
- key: ar,
573
- params: { n: +n[1] }
574
- } : (n = lr.exec(e), n ? {
575
572
  key: or,
576
573
  params: { n: +n[1] }
577
574
  } : (n = ur.exec(e), n ? {
578
575
  key: sr,
576
+ params: { n: +n[1] }
577
+ } : (n = dr.exec(e), n ? {
578
+ key: cr,
579
579
  params: {
580
580
  pct: +n[1],
581
581
  n: +n[2]
582
582
  }
583
583
  } : null));
584
584
  }
585
- var fr, pr, mr, hr, gr = (e, t, n, r, i) => {
585
+ var pr, mr, hr, gr, _r = (e, t, n, r, i) => {
586
586
  let a = JSON.parse(JSON.stringify(e.definition));
587
587
  a.adjs ||= [];
588
588
  let o = "", s = 0, c = 0;
589
- t > 0 ? (c = t, s = 100 - t, o = G("op.lighterPercent", { percent: t })) : t < 0 && (s = 100 + t, o = G("op.darkerPercent", { percent: -t })), s && a.adjs.push({ [Tn.AdjustmentType.LumMod]: s }), c && a.adjs.push({ [Tn.AdjustmentType.LumOff]: c });
590
- let l = new bn({
589
+ t > 0 ? (c = t, s = 100 - t, o = G("op.lighterPercent", { percent: t })) : t < 0 && (s = 100 + t, o = G("op.darkerPercent", { percent: -t })), s && a.adjs.push({ [En.AdjustmentType.LumMod]: s }), c && a.adjs.push({ [En.AdjustmentType.LumOff]: c });
590
+ let l = new xn({
591
591
  val: a.val,
592
592
  adjs: a.adjs
593
593
  }, n), u = l.toString();
@@ -598,14 +598,14 @@ var fr, pr, mr, hr, gr = (e, t, n, r, i) => {
598
598
  definition: a
599
599
  };
600
600
  };
601
- function _r(e, t, n, r) {
601
+ function vr(e, t, n, r) {
602
602
  let i = [];
603
603
  for (let a = 0; a < e.length; a++) {
604
604
  let o = [];
605
605
  i.push(o);
606
606
  let s = (i) => {
607
- for (let s = 0; s < i.length; s++) o.push(gr(e[a], i[s], t, n, r));
608
- }, c = new bn({
607
+ for (let s = 0; s < i.length; s++) o.push(_r(e[a], i[s], t, n, r));
608
+ }, c = new xn({
609
609
  val: e[a].definition.val,
610
610
  adjs: e[a].definition.adjs
611
611
  }, t).toHSLA().lum;
@@ -643,11 +643,11 @@ function _r(e, t, n, r) {
643
643
  }
644
644
  return i;
645
645
  }
646
- (fr ||= {}).buildPalette = _r, pr ||= {}, mr ||= {}, hr ||= {};
647
- var vr, Y = null;
648
- function yr() {
646
+ (pr ||= {}).buildPalette = vr, mr ||= {}, hr ||= {}, gr ||= {};
647
+ var yr, Y = null;
648
+ function br() {
649
649
  if (!Y) {
650
- let e = import("./CFywn1iiD35nNNUP.mjs").then(({ initializeFunctions: e }) => {
650
+ let e = import("./-nOfWMHdlTb9ShjF.mjs").then(({ initializeFunctions: e }) => {
651
651
  let t = e(() => null);
652
652
  return Object.freeze(Array.from(t.keys()));
653
653
  });
@@ -657,14 +657,14 @@ function yr() {
657
657
  }
658
658
  return Y;
659
659
  }
660
- function br(e) {
661
- return w.peek()?.readFormulaLiteral(e);
660
+ function xr(e) {
661
+ return v.peek()?.readFormulaLiteral(e);
662
662
  }
663
- function xr(e, t) {
664
- let n = Sr(e), r = Sr(t);
663
+ function Sr(e, t) {
664
+ let n = Cr(e), r = Cr(t);
665
665
  return n === r ? e === t ? 0 : typeof e == "number" && typeof t == "number" ? e < t ? -1 : 1 : typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : typeof e == "boolean" ? e ? 1 : -1 : L.isError(e) && L.isError(t) ? e.getCode() - t.getCode() : 0 : n - r;
666
666
  }
667
- function Sr(e) {
667
+ function Cr(e) {
668
668
  if (e === null) return 0;
669
669
  switch (typeof e) {
670
670
  case "number": return 1;
@@ -675,13 +675,13 @@ function Sr(e) {
675
675
  }
676
676
  (function(e) {
677
677
  function t(e) {
678
- return w.peek()?.getFunctionDeclaration(e) ?? null;
678
+ return v.peek()?.getFunctionDeclaration(e) ?? null;
679
679
  }
680
680
  e.get = t, e.has = function(e) {
681
681
  return t(e) !== null;
682
682
  };
683
- })(vr ||= {});
684
- var Cr = class {
683
+ })(yr ||= {});
684
+ var wr = class {
685
685
  constructor(e) {
686
686
  this._children = e;
687
687
  }
@@ -728,17 +728,17 @@ var Cr = class {
728
728
  }
729
729
  e = new Lt(function(e) {
730
730
  let t = e.length;
731
- if (t === 0) return wr;
731
+ if (t === 0) return Tr;
732
732
  if (t === 1) return e[0];
733
733
  let n = e[0];
734
- for (let r = 1; r < t; r++) n = Tr(n, e[r]);
734
+ for (let r = 1; r < t; r++) n = Er(n, e[r]);
735
735
  return Object.freeze(n);
736
736
  }(r)), this._sortedNumbers = e;
737
737
  }
738
738
  return e;
739
739
  }
740
740
  getRanked(e) {
741
- return mt(this._children, e, xr)[Symbol.iterator]();
741
+ return yt(this._children, e, Sr)[Symbol.iterator]();
742
742
  }
743
743
  getFrequencies(e) {
744
744
  if (e) return this._mergeFrequencies(e);
@@ -746,7 +746,7 @@ var Cr = class {
746
746
  return t || (t = this._mergeFrequencies(), this._frequencies = t), t;
747
747
  }
748
748
  _mergeFrequencies(e) {
749
- let t = e?.keyFn ?? ut, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
749
+ let t = e?.keyFn ?? $e, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
750
750
  for (let l = 0; l < a; l++) {
751
751
  let a = i[l].getFrequencies(e);
752
752
  o += a.getVisitedCount(), s += a.getTotalCount(), c ||= a.isTruncated();
@@ -759,7 +759,7 @@ var Cr = class {
759
759
  }) : c = !0, d = u.next();
760
760
  }
761
761
  }
762
- return ft.fromGroups(r, t, e, xr, o, s, c);
762
+ return pt.fromGroups(r, t, e, Sr, o, s, c);
763
763
  }
764
764
  getTypedCounts(e) {
765
765
  let t = this._typedCounts;
@@ -809,24 +809,24 @@ var Cr = class {
809
809
  let a = n.numericalCount;
810
810
  a <= 0 || (r.numericalCount += a, r.sum += n.sum, r.sumSq += n.varP * a + n.sum * n.sum / a, (r.min === void 0 || n.min < r.min) && (r.min = n.min), (r.max === void 0 || n.max > r.max) && (r.max = n.max));
811
811
  }
812
- return Qe(r);
812
+ return et(r);
813
813
  }
814
- }, wr = Object.freeze([]);
815
- function Tr(e, t) {
814
+ }, Tr = Object.freeze([]);
815
+ function Er(e, t) {
816
816
  let n = e.length, r = t.length, i = Array(n + r), a = 0, o = 0, s = 0;
817
817
  for (; a < n && o < r;) i[s++] = e[a] <= t[o] ? e[a++] : t[o++];
818
818
  for (; a < n;) i[s++] = e[a++];
819
819
  for (; o < r;) i[s++] = t[o++];
820
820
  return i;
821
821
  }
822
- var Er, Dr = class e {
822
+ var Dr, Or = class e {
823
823
  constructor(e, t) {
824
824
  this._source = null, this._fresh = /* @__PURE__ */ new WeakSet(), this._unwatch = null, this.cacheId = e, this._store = t, this._fresh.add(t.get());
825
825
  }
826
826
  static dataOf(t, n) {
827
827
  let r = e.modelOf(t);
828
828
  return {
829
- part: A.fromJSON(t.part, n),
829
+ part: j.fromJSON(t.part, n),
830
830
  model: r,
831
831
  partFormats: !r && t.partFormats ? t.partFormats : null,
832
832
  source: !r && t.source ? t.source : null
@@ -867,7 +867,7 @@ var Er, Dr = class e {
867
867
  _hold(e, t) {
868
868
  if (this._source) return;
869
869
  let { ref: n, sheet: r, name: i } = this._sourceAsRead() ?? {}, a = null, o = null;
870
- if (n && r && !n.includes("#REF!") ? (a = e(r), o = `${ht(r)}!${oe(n)}`) : !i || n || r ? i && r && !n && (a = e(r), o = `${ht(r)}!${i}`) : (a = t(i), o = `${i}[#All]`), !a || !o) return;
870
+ if (n && r && !n.includes("#REF!") ? (a = e(r), o = `${tt(r)}!${Be(n)}`) : !i || n || r ? i && r && !n && (a = e(r), o = `${tt(r)}!${i}`) : (a = t(i), o = `${i}[#All]`), !a || !o) return;
871
871
  let s = {
872
872
  formula: null,
873
873
  wired: null,
@@ -918,17 +918,17 @@ var Er, Dr = class e {
918
918
  if (t === null || t === e.wired) return null;
919
919
  let n = this._sourceAsRead();
920
920
  if (n?.name && n.sheet) {
921
- let e = v(t)?.sheet;
921
+ let e = g(t)?.sheet;
922
922
  return e ? { sheet: e } : null;
923
923
  }
924
924
  let r = /^(.+)\[#All\]$/.exec(t)?.[1];
925
925
  if (r) return { name: r };
926
- let i = v(t);
926
+ let i = g(t);
927
927
  return i ? {
928
928
  name: null,
929
- ref: Be(i.reference),
929
+ ref: re(i.reference),
930
930
  sheet: i.sheet
931
- } : { ref: Be(t) };
931
+ } : { ref: re(t) };
932
932
  }
933
933
  _getSource() {
934
934
  let e = this._sourceAsRead();
@@ -947,7 +947,7 @@ var Er, Dr = class e {
947
947
  return t;
948
948
  }
949
949
  toJSON(e) {
950
- let t = { cacheId: this.cacheId }, n = A.toJSON(this.part, e);
950
+ let t = { cacheId: this.cacheId }, n = j.toJSON(this.part, e);
951
951
  if (n) {
952
952
  t.part = n;
953
953
  let e = this._store.get().partFormats;
@@ -958,7 +958,7 @@ var Er, Dr = class e {
958
958
  let i = this._getSource();
959
959
  return i && (t.source = i), t;
960
960
  }
961
- }, Or = class {
961
+ }, kr = class {
962
962
  constructor(e, t) {
963
963
  this._deleted = !1, this._json = { ...e }, this._deleteFromCollection = t ?? null;
964
964
  }
@@ -992,7 +992,7 @@ var Er, Dr = class e {
992
992
  get isIPerson() {
993
993
  return !0;
994
994
  }
995
- }, kr = class extends pt {
995
+ }, Ar = class extends mt {
996
996
  constructor(e) {
997
997
  super(), this._byId = /* @__PURE__ */ new Map(), this._byDisplayName = /* @__PURE__ */ new Map(), this._items = null, this._current = null, e && this.fromJSON(e);
998
998
  }
@@ -1013,7 +1013,7 @@ var Er, Dr = class e {
1013
1013
  let e = this._byDisplayName.get(r);
1014
1014
  if (e) return e;
1015
1015
  }
1016
- let i = new Or({
1016
+ let i = new kr({
1017
1017
  ...t,
1018
1018
  displayName: r,
1019
1019
  id: n ?? z.uuidV4().toUpperCase()
@@ -1056,7 +1056,7 @@ var Er, Dr = class e {
1056
1056
  get isIPersonCollection() {
1057
1057
  return !0;
1058
1058
  }
1059
- }, Ar = (e, t) => {
1059
+ }, jr = (e, t) => {
1060
1060
  let n = [0];
1061
1061
  for (let t = 0; t < e.length; t++) e[t] === "\n" && n.push(t + 1);
1062
1062
  let r = t.map((e) => ` ${((e) => {
@@ -1068,7 +1068,7 @@ var Er, Dr = class e {
1068
1068
  return `${t + 1}:${e - n[t] + 1}`;
1069
1069
  })(e.start)} ${e.code}: ${e.message}`), i = t.length;
1070
1070
  return `Script has ${i} compile error${i === 1 ? "" : "s"}:\n${r.join("\n")}`;
1071
- }, jr = class {
1071
+ }, Mr = class {
1072
1072
  constructor(e) {
1073
1073
  this._options = e, this._emitter = new t(this), this._initState();
1074
1074
  }
@@ -1093,17 +1093,17 @@ var Er, Dr = class e {
1093
1093
  minify: !0,
1094
1094
  ...e
1095
1095
  });
1096
- return t.module ? await E(st.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1096
+ return t.module ? await T(Wt.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1097
1097
  }
1098
1098
  addModule(e, t, n) {
1099
1099
  this._modules.add(e, t, n);
1100
1100
  }
1101
1101
  async addModuleFromJSON(e, t, n) {
1102
- let r = await E(e, t);
1102
+ let r = await T(e, t);
1103
1103
  return this.addModule(e, r, n), r;
1104
1104
  }
1105
1105
  async executeMacro(e, t, n) {
1106
- await D.assertUsable("scripts");
1106
+ await k.assertUsable("scripts");
1107
1107
  let r = this._modules.getItems({ name: t }), i = r.length;
1108
1108
  for (let t = 0; t < i; t++) {
1109
1109
  let i = r[t].getFunctions().getByName(e);
@@ -1116,8 +1116,8 @@ var Er, Dr = class e {
1116
1116
  }
1117
1117
  async run(e, t) {
1118
1118
  try {
1119
- await D.assertUsable("scripts");
1120
- let n = typeof e == "string" ? await this.createModule({ source: e }) : await E(st.DEFAULT_MODULE, e), r = typeof e == "string" ? e : e?.source ?? "";
1119
+ await k.assertUsable("scripts");
1120
+ let n = typeof e == "string" ? await this.createModule({ source: e }) : await T(Wt.DEFAULT_MODULE, e), r = typeof e == "string" ? e : e?.source ?? "";
1121
1121
  return await this._runModule(n, r, t);
1122
1122
  } catch (e) {
1123
1123
  return {
@@ -1134,7 +1134,7 @@ var Er, Dr = class e {
1134
1134
  };
1135
1135
  let i = e.getDiagnostics(), a = i.filter((e) => e.severity === "error");
1136
1136
  if (a.length > 0) {
1137
- let e = Error(Ar(t, a));
1137
+ let e = Error(jr(t, a));
1138
1138
  return e.diagnostics = a, {
1139
1139
  ok: !1,
1140
1140
  error: e,
@@ -1185,7 +1185,7 @@ var Er, Dr = class e {
1185
1185
  }
1186
1186
  if (!i || i.length === 0) return z.EmptyArray;
1187
1187
  let o = e?.text ? e.text.trim().toUpperCase() : null;
1188
- return o ? s(i, o) : i.sort((e, t) => {
1188
+ return o ? lt(i, o) : i.sort((e, t) => {
1189
1189
  let n = e.getName().toUpperCase(), r = t.getName().toUpperCase();
1190
1190
  return n < r ? -1 : +(n > r);
1191
1191
  }), n !== void 0 && i.length > n ? i.slice(0, n) : i;
@@ -1212,7 +1212,7 @@ var Er, Dr = class e {
1212
1212
  }), r = t.length;
1213
1213
  for (let n = 0; n < r; n++) await t[n].execute(e);
1214
1214
  } catch (e) {
1215
- Ln.error("Error executing autoRun script:", e);
1215
+ Rn.error("Error executing autoRun script:", e);
1216
1216
  }
1217
1217
  }
1218
1218
  }
@@ -1223,13 +1223,13 @@ var Er, Dr = class e {
1223
1223
  for (let i = 0; i < r.length; i++) {
1224
1224
  let a = r[i], o = t[a];
1225
1225
  try {
1226
- n[a] = await E(a, o, !1, [], o?.scope === "workbook" ? e : null);
1226
+ n[a] = await T(a, o, !1, [], o?.scope === "workbook" ? e : null);
1227
1227
  } catch (e) {
1228
- Ln.error(`Could not load script '${a}'; it will be unavailable.`, e);
1228
+ Rn.error(`Could not load script '${a}'; it will be unavailable.`, e);
1229
1229
  }
1230
1230
  }
1231
1231
  }
1232
- let r = this, i = new Pt({
1232
+ let r = this, i = new Mt({
1233
1233
  transactions: this._options?.transactions,
1234
1234
  initial: n,
1235
1235
  isReadOnly: () => r.isReadOnly(),
@@ -1257,10 +1257,10 @@ var Er, Dr = class e {
1257
1257
  get isIScript() {
1258
1258
  return !0;
1259
1259
  }
1260
- }, Mr = /^([a-z][a-z0-9+.-]*):/i, Nr = (e) => {
1260
+ }, Nr = /^([a-z][a-z0-9+.-]*):/i, Pr = (e) => {
1261
1261
  let t = e.toLowerCase();
1262
1262
  return t.endsWith(":") ? t : t + ":";
1263
- }, Pr = async (e, t) => {
1263
+ }, Fr = async (e, t) => {
1264
1264
  try {
1265
1265
  return await globalThis.fetch(e, t);
1266
1266
  } catch (n) {
@@ -1281,12 +1281,12 @@ var Er, Dr = class e {
1281
1281
  }
1282
1282
  })(e, t) ? new L.Blocked("This site is restricted: it doesn't allow web apps to read its data, so the browser blocked the request for security.", { cause: n }) : n;
1283
1283
  }
1284
- }, Fr = class {
1284
+ }, Ir = class {
1285
1285
  constructor() {
1286
- this._handlers = /* @__PURE__ */ new Map([["http:", Pr], ["https:", Pr]]);
1286
+ this._handlers = /* @__PURE__ */ new Map([["http:", Fr], ["https:", Fr]]);
1287
1287
  }
1288
1288
  fetch(e, t) {
1289
- let n = Mr.exec(e)?.[1], r = this._handlers.get(n ? Nr(n) : "https:");
1289
+ let n = Nr.exec(e)?.[1], r = this._handlers.get(n ? Pr(n) : "https:");
1290
1290
  if (!r) return Promise.reject(/* @__PURE__ */ TypeError(`No fetcher serves '${n}:'.`));
1291
1291
  try {
1292
1292
  return r(e, t);
@@ -1295,7 +1295,7 @@ var Er, Dr = class e {
1295
1295
  }
1296
1296
  }
1297
1297
  register(e, t) {
1298
- let n = Nr(e), r = this._handlers.get(n);
1298
+ let n = Pr(e), r = this._handlers.get(n);
1299
1299
  return this._handlers.set(n, t), () => {
1300
1300
  this._handlers.get(n) === t && (r ? this._handlers.set(n, r) : this._handlers.delete(n));
1301
1301
  };
@@ -1303,17 +1303,17 @@ var Er, Dr = class e {
1303
1303
  get isIFetcher() {
1304
1304
  return !0;
1305
1305
  }
1306
- }, Ir = /* @__PURE__ */ new Set([
1306
+ }, Lr = /* @__PURE__ */ new Set([
1307
1307
  101,
1308
1308
  103,
1309
1309
  204,
1310
1310
  205,
1311
1311
  304
1312
- ]), X = (e) => new Response(Ir.has(e.status) ? null : e.body, {
1312
+ ]), X = (e) => new Response(Lr.has(e.status) ? null : e.body, {
1313
1313
  status: e.status,
1314
1314
  statusText: e.statusText,
1315
1315
  headers: e.headers
1316
- }), Lr = class {
1316
+ }), Rr = class {
1317
1317
  constructor(e, t) {
1318
1318
  this._kept = /* @__PURE__ */ new Map(), this._cached = /* @__PURE__ */ new Map(), this._inFlight = /* @__PURE__ */ new Map(), this._resources = e, this._fetcher = t;
1319
1319
  }
@@ -1363,7 +1363,7 @@ var Er, Dr = class e {
1363
1363
  });
1364
1364
  }
1365
1365
  async _request(e, t) {
1366
- let n = await this._fetcher.fetch(e, t), r = Ir.has(n.status) ? null : await n.arrayBuffer(), i = [];
1366
+ let n = await this._fetcher.fetch(e, t), r = Lr.has(n.status) ? null : await n.arrayBuffer(), i = [];
1367
1367
  n.headers.forEach((e, t) => {
1368
1368
  i.push([t, e]);
1369
1369
  });
@@ -1374,14 +1374,14 @@ var Er, Dr = class e {
1374
1374
  body: r
1375
1375
  };
1376
1376
  if (n.ok && r && r.byteLength > 0) {
1377
- let t = await new b({ source: { buffer: r } }).getType();
1377
+ let t = await new Te({ source: { buffer: r } }).getType();
1378
1378
  t?.mime.startsWith("image/") ? (a.headers = i.filter(([e]) => e.toLowerCase() !== "content-type"), a.headers.push(["content-type", t.mime])) : this._cached.set(e, a);
1379
1379
  }
1380
1380
  return a;
1381
1381
  }
1382
- }, Rr = class {
1382
+ }, zr = class {
1383
1383
  constructor(e, t, n, r) {
1384
- this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? B.EmptyCell, this._sheet = new T({
1384
+ this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? B.EmptyCell, this._sheet = new E({
1385
1385
  runtime: e,
1386
1386
  styles: this._styles,
1387
1387
  calcOnLoad: "none",
@@ -1402,28 +1402,28 @@ var Er, Dr = class e {
1402
1402
  e.includes(r) && delete i[r];
1403
1403
  }
1404
1404
  }
1405
- let a = fn(i.fontFamily);
1405
+ let a = pn(i.fontFamily);
1406
1406
  r.font = {}, a && (r.font.family = a.family, r.font.fallbacks = a.fallbacks, r.font.size = a.size), r.font.size = i.fontSize, r.font.weight = i.fontWeight, r.font.style = i.fontStyle, r.font.color = i.color;
1407
- let o = an(i.textDecoration);
1408
- r.font.underline = o.underline, r.font.strike = o.strike ? P.StrikeStyle.Single : P.StrikeStyle.None, i.textUnderlineStyle && (r.font.underline = pn(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = On(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = I.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = I.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = I.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.baseline = N.Baseline.Superscript : i.verticalAlign.toLowerCase() === "sub" ? r.font.baseline = N.Baseline.Subscript : r.alignment.vertical = cn(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = I.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? I.Overflow.Visible : I.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = I.Overflow.Shrink);
1407
+ let o = on(i.textDecoration);
1408
+ r.font.underline = o.underline, r.font.strike = o.strike ? P.StrikeStyle.Single : P.StrikeStyle.None, i.textUnderlineStyle && (r.font.underline = mn(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = kn(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = I.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = I.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = I.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.baseline = N.Baseline.Superscript : i.verticalAlign.toLowerCase() === "sub" ? r.font.baseline = N.Baseline.Subscript : r.alignment.vertical = ln(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = I.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? I.Overflow.Visible : I.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = I.Overflow.Shrink);
1409
1409
  let s = null;
1410
1410
  if (i.background ? s = i.background : i.backgroundColor && (s = i.backgroundColor), s && (r.fill = { color: s }), i.msoPattern) {
1411
- let e = ln(i.msoPattern);
1412
- e && (e.patternType === Dn.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== Dn.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1411
+ let e = un(i.msoPattern);
1412
+ e && (e.patternType === On.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== On.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1413
1413
  }
1414
- i.layoutFlow === "vertical" || i.layoutFlow === "vertical-ideographic" ? r.alignment.stacked = !0 : i.msoRotate !== void 0 && (r.alignment.rotation = dn(i.msoRotate));
1414
+ i.layoutFlow === "vertical" || i.layoutFlow === "vertical-ideographic" ? r.alignment.stacked = !0 : i.msoRotate !== void 0 && (r.alignment.rotation = fn(i.msoRotate));
1415
1415
  let c = (e, t) => {
1416
1416
  e && (r.borders ||= {}, r.borders[e] = t);
1417
1417
  };
1418
1418
  i.border && i.border !== "none" && (c("top", i.border), c("left", i.border), c("right", i.border), c("bottom", i.border)), i.borderTop && c("top", i.borderTop), i.borderLeft && c("left", i.borderLeft), i.borderRight && c("right", i.borderRight), i.borderBottom && c("bottom", i.borderBottom), i.msoDiagonalUp && c("diagonalUp", i.msoDiagonalUp), i.msoDiagonalDown && c("diagonalDown", i.msoDiagonalDown);
1419
1419
  let l = r.numberFormat;
1420
- i.msoNumberFormat && (l = vn(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = F.Styles.lookupStyle(r.numberFormat).formatType === F.Type.Number ? null : F.Type.Number : l === "Percent" && (l = F.Styles.lookupStyle(r.numberFormat).formatType === F.Type.Percentage ? null : F.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1420
+ i.msoNumberFormat && (l = yn(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = F.Styles.lookupStyle(r.numberFormat).formatType === F.Type.Number ? null : F.Type.Number : l === "Percent" && (l = F.Styles.lookupStyle(r.numberFormat).formatType === F.Type.Percentage ? null : F.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1421
1421
  }
1422
1422
  onCell(e, t, n, r, i) {
1423
1423
  let a = r(i), o = { value: t === void 0 ? n ?? "" : t };
1424
1424
  if (typeof o.value == "string" && o.value.length === 0 && (o.value = void 0), a && this.applyCSSStyle(o, a), typeof o.value == "string" && /^#+$/.test(o.value)) {
1425
1425
  let e = o.style?.numberFormat;
1426
- e && (sn(e) || on(e)) && (o.value = L.BuiltIn.Num);
1426
+ e && (cn(e) || sn(e)) && (o.value = L.BuiltIn.Num);
1427
1427
  }
1428
1428
  if (i?.tagName.toUpperCase() === "TD") {
1429
1429
  let e = o.style, t = e?.font ?? {};
@@ -1474,8 +1474,8 @@ var Er, Dr = class e {
1474
1474
  let i = n(r);
1475
1475
  if (i.msoHeightSource !== "userset" || !r) return;
1476
1476
  let a = r.getAttribute("height") ?? i.height, o = null;
1477
- if (a && (o = mn(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1478
- let t = r.cells[e], i = t.getAttribute("height") ?? n(t).height, a = mn(i, this._styles.getNormal().getFont().getSize(), "px");
1477
+ if (a && (o = hn(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1478
+ let t = r.cells[e], i = t.getAttribute("height") ?? n(t).height, a = hn(i, this._styles.getNormal().getFont().getSize(), "px");
1479
1479
  a !== null && (o = Math.max(a, o ?? 0));
1480
1480
  }
1481
1481
  o !== null && this._rowsReading.push({
@@ -1490,7 +1490,7 @@ var Er, Dr = class e {
1490
1490
  let i = n(r);
1491
1491
  if (i.msoWidthSource !== "userset" || !r) return;
1492
1492
  let a = r.getAttribute("width") ?? i.width, o = null;
1493
- a && (o = mn(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1493
+ a && (o = hn(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1494
1494
  address: {
1495
1495
  min: this._topLeft.colIndex + e,
1496
1496
  max: this._topLeft.colIndex + e + t - 1
@@ -1506,9 +1506,9 @@ var Er, Dr = class e {
1506
1506
  sheet() {
1507
1507
  return this._sheet;
1508
1508
  }
1509
- }, zr = class {
1509
+ }, Br = class {
1510
1510
  constructor(e) {
1511
- if (!e) throw new Rn("snapshot is required.");
1511
+ if (!e) throw new zn("snapshot is required.");
1512
1512
  this._snapshot = e;
1513
1513
  }
1514
1514
  getItemType() {
@@ -1538,9 +1538,9 @@ var Er, Dr = class e {
1538
1538
  get isClipboardItem() {
1539
1539
  return !0;
1540
1540
  }
1541
- }, Br = class {
1541
+ }, Vr = class {
1542
1542
  constructor(e, t, n, r, i) {
1543
- if (this._parsed = void 0, this._runtime = e, !t) throw new Rn("nativeItems are required.");
1543
+ if (this._parsed = void 0, this._runtime = e, !t) throw new zn("nativeItems are required.");
1544
1544
  this._topLeft = n ?? B.EmptyCell, this._native = t, this._markOptions = Object.freeze(r ?? {}), this._styles = i;
1545
1545
  }
1546
1546
  getItemType() {
@@ -1586,14 +1586,14 @@ var Er, Dr = class e {
1586
1586
  async parse() {
1587
1587
  let e, t = this._native?.text, n = this._native.html;
1588
1588
  if (n === null && t && t.includes("<table")) try {
1589
- let e = new DOMParser().parseFromString(t, In.Html), r = e.querySelector("parsererror");
1589
+ let e = new DOMParser().parseFromString(t, Ln.Html), r = e.querySelector("parsererror");
1590
1590
  if (r) throw new V("Unable to parse: " + r);
1591
1591
  n = e, t = null;
1592
1592
  } catch {
1593
1593
  console.warn("Discovered text as html table but could could not parse.");
1594
1594
  }
1595
1595
  try {
1596
- let r = new Rr(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text"), i = await Promise.resolve(t ? fe(t) : [[]]), a;
1596
+ let r = new zr(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text"), i = await Promise.resolve(t ? he(t) : [[]]), a;
1597
1597
  if (ce(n, i, r) ? (e = r.sheet(), a = e.getUsedRange()) : n = null, a) {
1598
1598
  let t = a.getSnapshot();
1599
1599
  return this._parsed = {
@@ -1608,7 +1608,7 @@ var Er, Dr = class e {
1608
1608
  throw e;
1609
1609
  }
1610
1610
  if (!t && !n && this._native.image) {
1611
- let e = await this._native.image.arrayBuffer(), t = Pn.getPngStatedSize(e), n = null;
1611
+ let e = await this._native.image.arrayBuffer(), t = Fn.getPngStatedSize(e), n = null;
1612
1612
  return this._parsed = {
1613
1613
  async prepare(r) {
1614
1614
  let i = r.getWorksheet();
@@ -1635,7 +1635,7 @@ var Er, Dr = class e {
1635
1635
  get isClipboardItem() {
1636
1636
  return !0;
1637
1637
  }
1638
- }, Vr = class {
1638
+ }, Hr = class {
1639
1639
  constructor(e) {
1640
1640
  this._closed = !1, this._kind = e.kind, this._id = e.id, this._part = e.part, this._styles = e.styles, this._tabColor = e.tabColor ? this._styles.parseColor(e.tabColor) : null, this._transactions = e.transactions, this._workbook = e.workbook ?? null, this._container = e.container, this._emitter = new t(this, this._transactions);
1641
1641
  }
@@ -1652,11 +1652,11 @@ var Er, Dr = class e {
1652
1652
  return this._assertOpen(), this._container.setName(e, t), this;
1653
1653
  }
1654
1654
  getVisibility() {
1655
- return this._closed ? j.Visibility.VeryHidden : this._container.getVisibility();
1655
+ return this._closed ? O.Visibility.VeryHidden : this._container.getVisibility();
1656
1656
  }
1657
1657
  setVisibility(e = !0, t) {
1658
1658
  let n;
1659
- return this._assertOpen(), n = !0 === e ? j.Visibility.Visible : !1 === e ? j.Visibility.Hidden : e, this._container.setVisibility(n, t), this;
1659
+ return this._assertOpen(), n = !0 === e ? O.Visibility.Visible : !1 === e ? O.Visibility.Hidden : e, this._container.setVisibility(n, t), this;
1660
1660
  }
1661
1661
  getIndex() {
1662
1662
  return this._container.getIndex();
@@ -1724,12 +1724,12 @@ var Er, Dr = class e {
1724
1724
  return !0;
1725
1725
  }
1726
1726
  };
1727
- (Er ||= {}).Visibility = {
1727
+ (Dr ||= {}).Visibility = {
1728
1728
  Visible: "visible",
1729
1729
  Hidden: "hidden",
1730
1730
  VeryHidden: "veryHidden"
1731
1731
  };
1732
- var Z, Hr = {
1732
+ var Z, Ur = {
1733
1733
  showFormulaBar: !0,
1734
1734
  showTabs: !0,
1735
1735
  tabRatio: 600,
@@ -1740,11 +1740,11 @@ var Z, Hr = {
1740
1740
  firstTab: 0,
1741
1741
  windowBounds: null,
1742
1742
  minimized: !1,
1743
- visibility: Er.Visibility.Visible,
1743
+ visibility: Dr.Visibility.Visible,
1744
1744
  autoFilterDateGrouping: !0
1745
- }, Ur = class {
1745
+ }, Wr = class {
1746
1746
  constructor(e) {
1747
- this._id = z.uuidV4(), this._emitter = new t(this), this._state = { ...Hr }, e?.json && this._fromJSON(e?.json);
1747
+ this._id = z.uuidV4(), this._emitter = new t(this), this._state = { ...Ur }, e?.json && this._fromJSON(e?.json);
1748
1748
  }
1749
1749
  getId() {
1750
1750
  return this._id;
@@ -1832,7 +1832,7 @@ var Z, Hr = {
1832
1832
  let e = {}, t = Object.keys(this._state), n = t.length;
1833
1833
  for (let r = 0; r < n; r++) {
1834
1834
  let n = t[r], i = this._state[n];
1835
- i != null && i !== Hr[n] && (e[n] = i);
1835
+ i != null && i !== Ur[n] && (e[n] = i);
1836
1836
  }
1837
1837
  return Object.keys(e).length === 0 && (e = null), e;
1838
1838
  }
@@ -1842,7 +1842,7 @@ var Z, Hr = {
1842
1842
  }
1843
1843
  update(e, t = !0) {
1844
1844
  this._state = {
1845
- ...Hr,
1845
+ ...Ur,
1846
1846
  ...this._state,
1847
1847
  ...e
1848
1848
  }, t && this._emitter.notify("onViewChange");
@@ -1857,13 +1857,13 @@ var Z, Hr = {
1857
1857
  get isIWorkbookView() {
1858
1858
  return !0;
1859
1859
  }
1860
- }, Wr = Object.freeze({
1860
+ }, Gr = Object.freeze({
1861
1861
  structure: !1,
1862
1862
  windows: !1,
1863
1863
  revision: !0,
1864
1864
  password: null,
1865
1865
  revisionsPassword: null
1866
- }), Gr = class extends St {
1866
+ }), Kr = class extends l {
1867
1867
  isWindowsAllowed() {
1868
1868
  return this._isPropertyAllowed("windows");
1869
1869
  }
@@ -1885,7 +1885,7 @@ var Z, Hr = {
1885
1885
  let n = Object.keys(t), r = n.length;
1886
1886
  for (let i = 0; i < r; i++) {
1887
1887
  let r = n[i], a = t[r];
1888
- a != null && a !== Wr[r] && (e[r] = a);
1888
+ a != null && a !== Gr[r] && (e[r] = a);
1889
1889
  }
1890
1890
  }
1891
1891
  return super._toJSON(e);
@@ -1904,7 +1904,7 @@ var Z, Hr = {
1904
1904
  String: "string",
1905
1905
  Float: "float"
1906
1906
  };
1907
- var Kr = (e) => {
1907
+ var qr = (e) => {
1908
1908
  if (typeof e == "string") return {
1909
1909
  type: Z.Type.String,
1910
1910
  value: e
@@ -1928,7 +1928,7 @@ var Kr = (e) => {
1928
1928
  };
1929
1929
  }
1930
1930
  throw Error("A custom property value must be a string, number, boolean or Date.");
1931
- }, qr = class {
1931
+ }, Jr = class {
1932
1932
  constructor(e, t) {
1933
1933
  this._json = e, this._owner = t;
1934
1934
  }
@@ -1948,7 +1948,7 @@ var Kr = (e) => {
1948
1948
  setValue(e) {
1949
1949
  this._owner._assertCustomEditable(this), this._json = {
1950
1950
  ...this._json,
1951
- ...Kr(e)
1951
+ ...qr(e)
1952
1952
  };
1953
1953
  }
1954
1954
  delete() {
@@ -1957,7 +1957,7 @@ var Kr = (e) => {
1957
1957
  toJSON() {
1958
1958
  return { ...this._json };
1959
1959
  }
1960
- }, Jr = class {
1960
+ }, Yr = class {
1961
1961
  constructor(e) {
1962
1962
  this._json = {}, this._custom = [], this._assertOpen = e;
1963
1963
  }
@@ -2047,9 +2047,9 @@ var Kr = (e) => {
2047
2047
  if (this._assertOpen(), typeof e != "string" || e === "") throw Error("A custom property needs a name.");
2048
2048
  let n = this.getCustomProperty(e);
2049
2049
  if (n) return n.setValue(t), n;
2050
- let r = new qr({
2050
+ let r = new Jr({
2051
2051
  key: e,
2052
- ...Kr(t)
2052
+ ...qr(t)
2053
2053
  }, this);
2054
2054
  return this._custom.push(r), r;
2055
2055
  }
@@ -2064,26 +2064,26 @@ var Kr = (e) => {
2064
2064
  }
2065
2065
  fromJSON(e) {
2066
2066
  let { custom: t, ...n } = e ?? {};
2067
- this._json = n, this._custom = (t ?? []).map((e) => new qr({ ...e }, this));
2067
+ this._json = n, this._custom = (t ?? []).map((e) => new Jr({ ...e }, this));
2068
2068
  }
2069
2069
  toJSON() {
2070
2070
  let e = { ...this._json };
2071
2071
  return this._custom.length > 0 && (e.custom = this._custom.map((e) => e.toJSON())), e;
2072
2072
  }
2073
2073
  };
2074
- function Yr(e) {
2074
+ function Xr(e) {
2075
2075
  return G("error.workbook.invalidSheetKey", { key: e });
2076
2076
  }
2077
- function Xr(e) {
2077
+ function Zr(e) {
2078
2078
  return G("error.workbook.sheetNameNotFound", { sheetName: e });
2079
2079
  }
2080
- function Zr(e, t) {
2080
+ function Qr(e, t) {
2081
2081
  return G(t === "chart" ? "error.workbook.sheetIsChart" : t === "macro" ? "error.workbook.sheetIsMacro" : "error.workbook.sheetIsDialog", { sheetName: e });
2082
2082
  }
2083
- function Qr(e, t) {
2083
+ function $r(e, t) {
2084
2084
  return t === "chart" ? G("error.workbook.selectedIsChart", { sheetName: e }) : t === "macro" ? G("error.workbook.selectedIsMacro", { sheetName: e }) : t === "dialog" ? G("error.workbook.selectedIsDialog", { sheetName: e }) : G("error.workbook.noWorksheet");
2085
2085
  }
2086
- var $r = class extends pt {
2086
+ var ei = class extends mt {
2087
2087
  constructor(e, t, n, r) {
2088
2088
  super(), this._add = e, this._get = t, this._addListeners = n, this._getSelected = r;
2089
2089
  }
@@ -2114,25 +2114,25 @@ var $r = class extends pt {
2114
2114
  get isIWorksheetCollection() {
2115
2115
  return !0;
2116
2116
  }
2117
- }, ei = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), ti = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
2118
- function ni(e) {
2117
+ }, ti = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), ni = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
2118
+ function ri(e) {
2119
2119
  let t = G(W("workbook.defaultSheetName"), { n: e + 1 });
2120
2120
  return t === "workbook.defaultSheetName" ? `Sheet${e + 1}` : t;
2121
2121
  }
2122
- function ri(e, t) {
2122
+ function ii(e, t) {
2123
2123
  return {
2124
- ...ke,
2124
+ ...Pe,
2125
2125
  getWorksheet: () => null,
2126
- toString: () => Ge(e, t)
2126
+ toString: () => Ke(e, t)
2127
2127
  };
2128
2128
  }
2129
- function ii(e, t = !1) {
2129
+ function ai(e, t = !1) {
2130
2130
  if (!e) throw Error(G("error.workbook.sheetNameBlank"));
2131
- if (ei.test(e)) {
2131
+ if (ti.test(e)) {
2132
2132
  if (!t) throw Error(function(e) {
2133
2133
  return e ? G("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : G("error.workbook.sheetNameInvalidChars");
2134
2134
  }(e));
2135
- e = e.replace(ei, "");
2135
+ e = e.replace(ti, "");
2136
2136
  }
2137
2137
  if (e.length === 0) throw Error(G("error.workbook.sheetNameBlank"));
2138
2138
  let n = e.length;
@@ -2146,7 +2146,7 @@ function ii(e, t = !1) {
2146
2146
  }
2147
2147
  return e;
2148
2148
  }
2149
- var ai = "workbook.activeSheet", oi = class e extends qt {
2149
+ var oi = "workbook.activeSheet", si = class e extends Yt {
2150
2150
  constructor(e, t, n, r) {
2151
2151
  super(e, t, r), this._workbook = n;
2152
2152
  }
@@ -2161,12 +2161,12 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2161
2161
  }), new e(t, this._internal, this._workbook, r);
2162
2162
  }
2163
2163
  _createRange(e, t) {
2164
- let n = e ? { ...e } : null, r = this._workbook, i = n ? r._getSheetRef(n.scope, j.Visibility.VeryHidden) : null;
2165
- if (i && !i.sheet.isIWorksheet) throw new V(Zr(i.name, i.sheet.getKind()));
2164
+ let n = e ? { ...e } : null, r = this._workbook, i = n ? r._getSheetRef(n.scope, O.Visibility.VeryHidden) : null;
2165
+ if (i && !i.sheet.isIWorksheet) throw new V(Qr(i.name, i.sheet.getKind()));
2166
2166
  if (!i) {
2167
2167
  let e = r._anchorWorksheet();
2168
- return delete n?.scope, ri(n, n ? {
2169
- scope: Le,
2168
+ return delete n?.scope, ii(n, n ? {
2169
+ scope: ae,
2170
2170
  ...e.getEntireRange().getCoords()
2171
2171
  } : null);
2172
2172
  }
@@ -2174,7 +2174,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2174
2174
  return t && (a = {
2175
2175
  ...this._options,
2176
2176
  getOptions: M(this._options.getOptions, t)
2177
- }), new si(e, O(i.sheet), this._workbook, a);
2177
+ }), new ci(e, D(i.sheet), this._workbook, a);
2178
2178
  }
2179
2179
  async select(e) {
2180
2180
  let t = [], n = null, r = this.getCoords();
@@ -2198,15 +2198,15 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2198
2198
  }
2199
2199
  getAddress(e) {
2200
2200
  let t = this._internal.getSheet(), n = t.getEntireRange().getCoords();
2201
- return Ft(this.getCoords(), {
2201
+ return de(this.getCoords(), {
2202
2202
  ...n,
2203
2203
  scope: t.getName()
2204
- }, Ge, Rt, e);
2204
+ }, Ke, bt, e);
2205
2205
  }
2206
2206
  toString() {
2207
2207
  return this.getAddress();
2208
2208
  }
2209
- }, si = class e extends re {
2209
+ }, ci = class e extends ne {
2210
2210
  constructor(e, t, n, r) {
2211
2211
  super(e, t, r), this._workbook = n;
2212
2212
  }
@@ -2215,12 +2215,12 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2215
2215
  return t && (n = {
2216
2216
  ...this._options,
2217
2217
  getOptions: M(this._options?.getOptions, t)
2218
- }), new oi(e, this._internal, this._workbook, n);
2218
+ }), new si(e, this._internal, this._workbook, n);
2219
2219
  }
2220
2220
  _createRange(t, n) {
2221
2221
  let r = this._internal;
2222
- if (!t) return $t(r.getSheet(), r.getSheet().getEntireCoords());
2223
- if (r.validateCoords(t), r.getSheet().isClosed()) return $t(null, r.getSheet().getEntireCoords(), t);
2222
+ if (!t) return en(r.getSheet(), r.getSheet().getEntireCoords());
2223
+ if (r.validateCoords(t), r.getSheet().isClosed()) return en(null, r.getSheet().getEntireCoords(), t);
2224
2224
  let i = this._options;
2225
2225
  return n && (i = {
2226
2226
  ...this._options,
@@ -2237,7 +2237,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2237
2237
  }
2238
2238
  getAddress(e) {
2239
2239
  let t = this._internal.getSheet(), n = t?.getEntireRange().getCoords() ?? null;
2240
- return Ge(this.getCoords(), {
2240
+ return Ke(this.getCoords(), {
2241
2241
  ...n,
2242
2242
  scope: t.getName()
2243
2243
  });
@@ -2245,15 +2245,15 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2245
2245
  toString() {
2246
2246
  return this.getAddress();
2247
2247
  }
2248
- }, ci = (e) => !!e && typeof e == "object" && typeof e.getOrigin == "function", li = class {
2248
+ }, li = (e) => !!e && typeof e == "object" && typeof e.getOrigin == "function", ui = class {
2249
2249
  constructor(n) {
2250
- this._isLoadingSheets = !1, this._lastTransactionUUID = null, this._starting = null, this._closed = !1, this._listenerOriginProvider = null, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._pivotCaches = [], this._pivotTableCollection = new Ye(() => {
2250
+ this._isLoadingSheets = !1, this._lastTransactionUUID = null, this._starting = null, this._closed = !1, this._listenerOriginProvider = null, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._pivotCaches = [], this._pivotTableCollection = new je(() => {
2251
2251
  let e = [];
2252
- for (let t of this.getWorksheets().getItems({ visibility: j.Visibility.VeryHidden })) e.push(...t.getPivotTables());
2252
+ for (let t of this.getWorksheets().getItems({ visibility: O.Visibility.VeryHidden })) e.push(...t.getPivotTables());
2253
2253
  return e;
2254
- }, (e, t) => this.doBatch(e, t)), this._people = new kr(), this._commentCollection = new m(null, (e, t, n) => {
2254
+ }, (e, t) => this.doBatch(e, t)), this._people = new Ar(), this._commentCollection = new f(null, (e, t, n) => {
2255
2255
  let r = [];
2256
- for (let i of this.getWorksheets().getItems({ visibility: j.Visibility.VeryHidden })) r.push(...i.getComments().getItems(e ? {
2256
+ for (let i of this.getWorksheets().getItems({ visibility: O.Visibility.VeryHidden })) r.push(...i.getComments().getItems(e ? {
2257
2257
  address: e,
2258
2258
  ignoreHidden: t,
2259
2259
  fullyContained: n
@@ -2264,25 +2264,25 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2264
2264
  return r;
2265
2265
  }, (e, t) => this.addListeners({ onSheetsChange: e.onCollectionChange ? () => {
2266
2266
  e.onCollectionChange(this._commentCollection);
2267
- } : void 0 }, t)), this._isDate1904 = !1, this._codeName = null, this._updateLinks = null, this._hiddenPivotFieldList = !1, this._documentProperties = new Jr(() => {
2267
+ } : void 0 }, t)), this._isDate1904 = !1, this._codeName = null, this._updateLinks = null, this._hiddenPivotFieldList = !1, this._documentProperties = new Yr(() => {
2268
2268
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
2269
2269
  }), this._locale = null, this._localeOverrides = null, this._startModules = /* @__PURE__ */ new WeakSet();
2270
2270
  let r = typeof n == "string" ? { origin: n } : { ...n }, i = r.origin;
2271
- this._ownOriginProvider = !ci(i), this._originProvider = ci(i) ? i : new Xn(typeof i == "string" ? new K(null, { name: i }) : i ?? new K(null)), delete r.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
2271
+ this._ownOriginProvider = !li(i), this._originProvider = li(i) ? i : new Zn(typeof i == "string" ? new K(null, { name: i }) : i ?? new K(null)), delete r.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
2272
2272
  let o = r.json;
2273
- delete r.json, this._transactions = r.transactions ?? new a(), this._id = this._transactions.create(), this._ownTransactions = !r.transactions, this._emitter = new t(this, this._transactions), this._runtime = r.runtime ?? new kt("Workbook Runtime", {
2273
+ delete r.json, this._transactions = r.transactions ?? new a(), this._id = this._transactions.create(), this._ownTransactions = !r.transactions, this._emitter = new t(this, this._transactions), this._runtime = r.runtime ?? new Rt("Workbook Runtime", {
2274
2274
  isDate1904: () => this._isDate1904,
2275
2275
  getNow: () => this._transactions.getCurrentCommit().getTimestamp(),
2276
- getLocale: () => this._locale ?? gt() ?? zt(),
2276
+ getLocale: () => this._locale ?? nt() ?? xt(),
2277
2277
  getLocaleOverrides: () => this._localeOverrides
2278
- }), this._listenerLanguage = Nn.addChangeListener(() => {
2278
+ }), this._listenerLanguage = Pn.addChangeListener(() => {
2279
2279
  this._closed || this._notifyAllChange();
2280
2280
  });
2281
2281
  let s = this, c = this._beginCommit({ description: W(o ? "op.openWorkbook" : "op.newWorkbook") });
2282
2282
  try {
2283
- this._strings = r.strings ?? new Ne(), this._ownStrings = !r.strings, this._richValues = r.richData ?? new It(), this._resources = r.resources ?? new C(), this._ownResources = !r.resources, this._fetch = new Lr(this._resources, r.fetcher ?? new Fr()), this._createSheetName = r.createSheetNameCallback ?? ni;
2283
+ this._strings = r.strings ?? new S(), this._ownStrings = !r.strings, this._richValues = r.richData ?? new fe(), this._resources = r.resources ?? new _(), this._ownResources = !r.resources, this._fetch = new Rr(this._resources, r.fetcher ?? new Ir()), this._createSheetName = r.createSheetNameCallback ?? ri;
2284
2284
  let t = r.createWorksheetCallback;
2285
- t ||= (e) => new T(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (e, n, r, i, a, o, c) => {
2285
+ t ||= (e) => new E(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (e, n, r, i, a, o, c) => {
2286
2286
  let l = null, u = {
2287
2287
  runtime: s._runtime,
2288
2288
  readonly: s._options.readonly ?? !1,
@@ -2302,7 +2302,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2302
2302
  l = t, s._addSheetRef({
2303
2303
  name: n,
2304
2304
  id: e,
2305
- visibility: r ?? j.Visibility.Visible,
2305
+ visibility: r ?? O.Visibility.Visible,
2306
2306
  sheetId: a,
2307
2307
  sheet: t
2308
2308
  }, i);
@@ -2319,7 +2319,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2319
2319
  },
2320
2320
  getVisibility: () => {
2321
2321
  let e = s._getSheetRef(l);
2322
- return e ? e.visibility : j.Visibility.Visible;
2322
+ return e ? e.visibility : O.Visibility.Visible;
2323
2323
  },
2324
2324
  setVisibility: (e, t) => {
2325
2325
  s._setSheetVisibility(l, e, t);
@@ -2330,10 +2330,10 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2330
2330
  duplicate: () => s._duplicateSheet(l),
2331
2331
  getIndex: () => {
2332
2332
  let e = s._getSheetRef(l);
2333
- return e ? s._getOffsetForId(e.id, s._getSheetRefs(j.Visibility.VeryHidden)) : i;
2333
+ return e ? s._getOffsetForId(e.id, s._getSheetRefs(O.Visibility.VeryHidden)) : i;
2334
2334
  },
2335
2335
  setIndex: (e, t) => {
2336
- let n = s._getSheetRef(l, j.Visibility.VeryHidden);
2336
+ let n = s._getSheetRef(l, O.Visibility.VeryHidden);
2337
2337
  return !!n && (s._moveSheet(n, e, t), !0);
2338
2338
  },
2339
2339
  setIndexCallback: (t) => {
@@ -2343,16 +2343,16 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2343
2343
  }
2344
2344
  };
2345
2345
  return o && (u.json = o), c !== void 0 && (u.uid = () => c), l = t(u, n, i, r), l;
2346
- }, this._namedTableSource = new _({
2347
- getSheets: () => s._sheets ? s.getWorksheets().getItems({ visibility: j.Visibility.VeryHidden }) : z.EmptyArray,
2346
+ }, this._namedTableSource = new Zt({
2347
+ getSheets: () => s._sheets ? s.getWorksheets().getItems({ visibility: O.Visibility.VeryHidden }) : z.EmptyArray,
2348
2348
  addSheetsListener: (e, t) => s.addListeners({ onSheetsChange: e }, t)
2349
- }), this._names = r.names ?? new ie({
2349
+ }), this._names = r.names ?? new pe({
2350
2350
  addressToRanges: (e) => s.getRanges(e),
2351
2351
  getCurrentScope: () => s.getSelectedWorksheet()?.getName() ?? null,
2352
2352
  isReadOnly: () => (s._options.readonly ?? !1) || s._isStructureProtected(),
2353
2353
  transactions: s._transactions,
2354
2354
  getSources: () => s._calculation ? [s._calculation.getNamedFormulas(), s._namedTableSource] : z.EmptyArray
2355
- }), this._ownNames = !r.names, this._calculation = r.calculation ?? new be({
2355
+ }), this._ownNames = !r.names, this._calculation = r.calculation ?? new Ce({
2356
2356
  runtime: s._runtime,
2357
2357
  functions: r.functions,
2358
2358
  json: o?.calc,
@@ -2371,19 +2371,19 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2371
2371
  getSheetIndex: (e) => {
2372
2372
  if (e === void 0) {
2373
2373
  let e = s.getSelectedSheet();
2374
- return e ? this._getSheetRefs(j.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
2374
+ return e ? this._getSheetRefs(O.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
2375
2375
  }
2376
- let t = this._getSheetRefs(j.Visibility.VeryHidden);
2376
+ let t = this._getSheetRefs(O.Visibility.VeryHidden);
2377
2377
  e = e.toLowerCase();
2378
2378
  let n = t.length;
2379
2379
  for (let r = 0; r < n; r++) if (t[r].name.toLowerCase() === e) return r;
2380
2380
  try {
2381
- ui.address = e;
2382
- let t = this._names.getItems(ui);
2381
+ di.address = e;
2382
+ let t = this._names.getItems(di);
2383
2383
  if (!t || t.length === 0) return -1;
2384
2384
  let n = t[0].getRanges?.()?.getCoords()?.[0]?.scope;
2385
2385
  if (!n) return -1;
2386
- let r = this._getSheetRefs(j.Visibility.VeryHidden);
2386
+ let r = this._getSheetRefs(O.Visibility.VeryHidden);
2387
2387
  n = n.toLowerCase();
2388
2388
  let i = r.length;
2389
2389
  for (let e = 0; e < i; e++) if (r[e].name.toLowerCase() === n) return e;
@@ -2392,7 +2392,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2392
2392
  }
2393
2393
  return -1;
2394
2394
  },
2395
- getSheetCount: () => s._getSheetRefs(j.Visibility.VeryHidden).length,
2395
+ getSheetCount: () => s._getSheetRefs(O.Visibility.VeryHidden).length,
2396
2396
  externalBooks: o?.externalBooks,
2397
2397
  externalBookResolver: r.externalBookResolver,
2398
2398
  namedCollection: s._names,
@@ -2402,7 +2402,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2402
2402
  },
2403
2403
  fetch: (e, t) => s._fetch.fetch(e, t),
2404
2404
  parseText: (t, n) => (async (t, n, r) => {
2405
- let i = await import("./BI6NwRrdLCbPdz6f.mjs").then((t) => e(t.default, 1)), a = (i.default ?? i).parse(n, {
2405
+ let i = await import("./DLR8g1DkooIBl8S1.mjs").then((t) => e(t.default, 1)), a = (i.default ?? i).parse(n, {
2406
2406
  delimiter: r?.delimiter ?? ",",
2407
2407
  skipEmptyLines: !1
2408
2408
  }).data, o = a.length, s = a[o - 1];
@@ -2414,7 +2414,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2414
2414
  let n = a[e], r = Array(c);
2415
2415
  for (let e = 0; e < c; e++) {
2416
2416
  let i = n[e];
2417
- r[e] = i === void 0 || i === "" ? null : Gt(t, i).value;
2417
+ r[e] = i === void 0 || i === "" ? null : Kt(t, i).value;
2418
2418
  }
2419
2419
  l[e] = r;
2420
2420
  }
@@ -2426,7 +2426,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2426
2426
  }), this._ownCalculation = !r.calculation, this._scripts = this._createScripts(o?.modules), this._ownNames = !r.names, this._options = Object.freeze({ ...r });
2427
2427
  let n = o?.sheets?.length ? o.sheets.map((e) => e.name) : [this._createSheetName(0)], i = n.map((e) => e + "-" + z.uuidV4()), a = (e) => {
2428
2428
  let t = o?.sheets?.[e]?.kind;
2429
- return !!t && t !== j.Kind.Worksheet;
2429
+ return !!t && t !== O.Kind.Worksheet;
2430
2430
  };
2431
2431
  this._calculation._setSheets(n.map((e, t) => a(t) ? [
2432
2432
  i[t],
@@ -2441,7 +2441,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2441
2441
  u = !0, this._starting = null;
2442
2442
  }
2443
2443
  })();
2444
- u || (this._starting = d), this._starting?.catch(() => {}), o ? this._fromJSON(o, i) : (this._initState(), this._addSheet(!1, n[0], null, i[0])), this._sheets = new $r((e) => s._addSheetOptions(e), (e, t) => {
2444
+ u || (this._starting = d), this._starting?.catch(() => {}), o ? this._fromJSON(o, i) : (this._initState(), this._addSheet(!1, n[0], null, i[0])), this._sheets = new ei((e) => s._addSheetOptions(e), (e, t) => {
2445
2445
  if (e) {
2446
2446
  let n = this._getSheetRef(e, t);
2447
2447
  return n && Q(n) ? [n.sheet] : z.EmptyArray;
@@ -2467,13 +2467,13 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2467
2467
  let e = this._getSheetRefs();
2468
2468
  for (let t = (e ? e.length : 0) - 1; t >= 0; t--);
2469
2469
  let t = this._options;
2470
- this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new tn().getDefaultTheme(), this._styles = t?.styles ?? new yt(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Ur()), this._listenerProtection?.(), this._protection = new Gr(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2470
+ this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new d().getDefaultTheme(), this._styles = t?.styles ?? new be(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Wr()), this._listenerProtection?.(), this._protection = new Kr(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2471
2471
  n._emitter.notify("onProtectionChange");
2472
2472
  } });
2473
2473
  let n = this;
2474
2474
  this._transactionsRemoveListener = this._transactions.addStateListener(this._id, {
2475
2475
  async onAfterStateChange(e, t, r, i, a) {
2476
- let o = n._view, s = a?.[ai], c = r ? s?.before : s?.after, l = s?.viewId === o.getId() && c != null, u = l ? c : o.getActiveSheetId(), d = l && t.getId() === n._lastTransactionUUID ? n._getSheetRef({ id: u }) : null;
2476
+ let o = n._view, s = a?.[oi], c = r ? s?.before : s?.after, l = s?.viewId === o.getId() && c != null, u = l ? c : o.getActiveSheetId(), d = l && t.getId() === n._lastTransactionUUID ? n._getSheetRef({ id: u }) : null;
2477
2477
  d ? await d.sheet.select() : n._resyncActiveSheet(u, e), n._lastTransactionUUID = t.getId(), (r || i) && n._emitter.notify("onSheetsChange"), n._emitter.notify("onSelectedSheetChange"), n._emitter.notify("onViewChange");
2478
2478
  },
2479
2479
  onRestoreOrRevert() {
@@ -2584,10 +2584,10 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2584
2584
  return this._transactions;
2585
2585
  }
2586
2586
  getChanges(e) {
2587
- let t = this._transactions, [n, r] = t.getLog(e ?? t.getCurrentCommit(!1).getId(), 2), i = [], a = this.getWorksheets().getItems({ visibility: j.Visibility.VeryHidden });
2587
+ let t = this._transactions, [n, r] = t.getLog(e ?? t.getCurrentCommit(!1).getId(), 2), i = [], a = this.getWorksheets().getItems({ visibility: O.Visibility.VeryHidden });
2588
2588
  for (let e = 0; e < a.length; e++) {
2589
2589
  let t = a[e];
2590
- t instanceof T && i.push(...t._changeEventsOf(n, r ?? null));
2590
+ t instanceof E && i.push(...t._changeEventsOf(n, r ?? null));
2591
2591
  }
2592
2592
  return i;
2593
2593
  }
@@ -2640,7 +2640,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2640
2640
  return this.getSelectedWorksheet();
2641
2641
  }
2642
2642
  getSheets(e) {
2643
- let t = this._getSheetRefs(e?.visibility ?? j.Visibility.Visible), n = Array(t.length);
2643
+ let t = this._getSheetRefs(e?.visibility ?? O.Visibility.Visible), n = Array(t.length);
2644
2644
  for (let e = 0; e < t.length; e++) n[e] = t[e].sheet;
2645
2645
  return n;
2646
2646
  }
@@ -2648,19 +2648,19 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2648
2648
  if (e === void 0) return this.getSelectedSheet();
2649
2649
  if (!e) throw Error(G("error.workbook.sheetNameNotProvided"));
2650
2650
  let t = this._getSheetRef(e);
2651
- if (!t) throw new H(Xr(e));
2651
+ if (!t) throw new H(Zr(e));
2652
2652
  return t.sheet;
2653
2653
  }
2654
- getWorksheet(e, t = j.Visibility.Visible) {
2654
+ getWorksheet(e, t = O.Visibility.Visible) {
2655
2655
  if (typeof e == "number") return this.getWorksheetAt(e, t);
2656
2656
  if (e === void 0) return this._requireSelectedWorksheet();
2657
2657
  if (!e) throw Error(G("error.workbook.sheetNameNotProvided"));
2658
2658
  let n = this._getSheetRef(e, t);
2659
- if (!n) throw new H(Xr(e));
2660
- if (!Q(n)) throw new H(Zr(n.name, n.sheet.getKind()));
2659
+ if (!n) throw new H(Zr(e));
2660
+ if (!Q(n)) throw new H(Qr(n.name, n.sheet.getKind()));
2661
2661
  return n.sheet;
2662
2662
  }
2663
- getWorksheetAt(e, t = j.Visibility.Visible) {
2663
+ getWorksheetAt(e, t = O.Visibility.Visible) {
2664
2664
  let n = this._getWorksheets(t)[e];
2665
2665
  if (!n) throw new H(function(e) {
2666
2666
  return G("error.workbook.sheetIndexNotFound", { index: e });
@@ -2671,10 +2671,10 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2671
2671
  let e = this.getSelectedWorksheet();
2672
2672
  if (e) return e;
2673
2673
  let t = this.getSelectedSheet();
2674
- throw new V(Qr(t?.getName() ?? "", t?.getKind() ?? j.Kind.Worksheet));
2674
+ throw new V($r(t?.getName() ?? "", t?.getKind() ?? O.Kind.Worksheet));
2675
2675
  }
2676
2676
  _anchorWorksheet() {
2677
- return this.getSelectedWorksheet() || (this._getWorksheets(j.Visibility.VeryHidden)[0] ?? null);
2677
+ return this.getSelectedWorksheet() || (this._getWorksheets(O.Visibility.VeryHidden)[0] ?? null);
2678
2678
  }
2679
2679
  getWorksheets() {
2680
2680
  return this._sheets;
@@ -2682,7 +2682,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2682
2682
  addWorksheet(e) {
2683
2683
  return this.getWorksheets().add(e);
2684
2684
  }
2685
- _getWorksheets(e = j.Visibility.Visible) {
2685
+ _getWorksheets(e = O.Visibility.Visible) {
2686
2686
  let t = this._getSheetRefs(e), n = [], r = t.length;
2687
2687
  for (let e = 0; e < r; e++) {
2688
2688
  let r = t[e];
@@ -2690,27 +2690,27 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2690
2690
  }
2691
2691
  return n;
2692
2692
  }
2693
- _getSheetRefs(e = j.Visibility.Visible) {
2693
+ _getSheetRefs(e = O.Visibility.Visible) {
2694
2694
  let t = this._getState();
2695
- return t ? e === j.Visibility.Visible ? t.sheetRefsVisible : e === j.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === j.Visibility.VeryHidden ? t.sheetRefsAll : z.EmptyArray : [];
2695
+ return t ? e === O.Visibility.Visible ? t.sheetRefsVisible : e === O.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === O.Visibility.VeryHidden ? t.sheetRefsAll : z.EmptyArray : [];
2696
2696
  }
2697
- _getSheetRef(e, t = j.Visibility.Visible) {
2697
+ _getSheetRef(e, t = O.Visibility.Visible) {
2698
2698
  let n = null;
2699
2699
  return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : !0 === e?.isISheet ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2700
2700
  }
2701
2701
  _validateNewSheetName(e, t = !0) {
2702
2702
  if (e == null) return e;
2703
- if (ii(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new V(G("error.workbook.nameTaken"));
2703
+ if (ai(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new V(G("error.workbook.nameTaken"));
2704
2704
  return e.substring(0, 31);
2705
2705
  }
2706
2706
  findValidSheetName(e) {
2707
- e &&= ii(e, !0);
2707
+ e &&= ai(e, !0);
2708
2708
  try {
2709
2709
  return function(e, t) {
2710
2710
  try {
2711
2711
  if (t(e)) return e;
2712
2712
  } catch {}
2713
- let n, r, i = ti.exec(e);
2713
+ let n, r, i = ni.exec(e);
2714
2714
  for (i === null ? (n = e + " ", r = 1) : (n = e.substring(0, i.index), r = parseFloat(i[1])); r < 256;) {
2715
2715
  r++;
2716
2716
  let e = "(" + r + ")", i = n.substring(0, 31 - e.length) + e;
@@ -2725,7 +2725,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2725
2725
  }
2726
2726
  }
2727
2727
  isValidSheetNameCharacter(e) {
2728
- return !ei.test(e);
2728
+ return !ti.test(e);
2729
2729
  }
2730
2730
  _isStructureProtected() {
2731
2731
  return !this._initializing && !this.getProtection().isStructureAllowed();
@@ -2767,13 +2767,13 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2767
2767
  }
2768
2768
  _addSheet(e, t = null, n = null, r) {
2769
2769
  t = this._nextSheetName(t);
2770
- let i = this._getState(), a = this._createSheet(i.lastId, t, j.Visibility.Visible, n, void 0, null, r);
2770
+ let i = this._getState(), a = this._createSheet(i.lastId, t, O.Visibility.Visible, n, void 0, null, r);
2771
2771
  if (!a) throw new V(G("error.workbook.sheetNameBlank"));
2772
2772
  return e && (this._tellSheets(), this._emitter.notify("onSheetsChange")), a;
2773
2773
  }
2774
2774
  _createOpaqueSheet(e, t, n, r, i, a, o, s, c) {
2775
2775
  let l = this, u = null;
2776
- return u = new Vr({
2776
+ return u = new Hr({
2777
2777
  kind: a,
2778
2778
  id: c ?? t + "-" + z.uuidV4(),
2779
2779
  part: o,
@@ -2786,25 +2786,25 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2786
2786
  setName: (e, t) => {
2787
2787
  l._setSheetName(u, e, t);
2788
2788
  },
2789
- getVisibility: () => l._getSheetRef(u, j.Visibility.VeryHidden)?.visibility ?? j.Visibility.Visible,
2789
+ getVisibility: () => l._getSheetRef(u, O.Visibility.VeryHidden)?.visibility ?? O.Visibility.Visible,
2790
2790
  setVisibility: (e, t) => {
2791
2791
  l._setSheetVisibility(u, e, t);
2792
2792
  },
2793
2793
  getIndex: () => {
2794
- let e = l._getSheetRef(u, j.Visibility.VeryHidden);
2795
- return e ? l._getOffsetForId(e.id, l._getSheetRefs(j.Visibility.VeryHidden)) : -1;
2794
+ let e = l._getSheetRef(u, O.Visibility.VeryHidden);
2795
+ return e ? l._getOffsetForId(e.id, l._getSheetRefs(O.Visibility.VeryHidden)) : -1;
2796
2796
  },
2797
2797
  setIndex: (e, t) => {
2798
- let n = l._getSheetRef(u, j.Visibility.VeryHidden);
2798
+ let n = l._getSheetRef(u, O.Visibility.VeryHidden);
2799
2799
  n && l._moveSheet(n, e, t);
2800
2800
  },
2801
2801
  requestSelect: () => l._requestSelect(u),
2802
- isAttached: () => !!l._getSheetRef(u, j.Visibility.VeryHidden)
2802
+ isAttached: () => !!l._getSheetRef(u, O.Visibility.VeryHidden)
2803
2803
  }
2804
2804
  }), this._sheetOnNameChange.set(e, () => u._notify("onNameChange")), this._sheetOnVisibilityChange.set(e, () => u._notify("onVisibilityChange")), this._sheetOnIndexChange.set(e, () => u._notify("onIndexChange")), this._addSheetRef({
2805
2805
  name: t,
2806
2806
  id: e,
2807
- visibility: n ?? j.Visibility.Visible,
2807
+ visibility: n ?? O.Visibility.Visible,
2808
2808
  sheetId: i,
2809
2809
  sheet: u
2810
2810
  }, r), u;
@@ -2820,7 +2820,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2820
2820
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
2821
2821
  if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new U(G("error.workbook.protection"));
2822
2822
  let t = e, n = [], r = [], i = t.length;
2823
- for (let e = 0; e < i; e++) t[e].visibility === j.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === j.Visibility.Hidden && r.push(t[e]);
2823
+ for (let e = 0; e < i; e++) t[e].visibility === O.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === O.Visibility.Hidden && r.push(t[e]);
2824
2824
  this._updateState({
2825
2825
  sheetRefsAll: t,
2826
2826
  sheetRefsVisible: n,
@@ -2860,7 +2860,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2860
2860
  p._validateDeleteSheet(e);
2861
2861
  },
2862
2862
  onDelete(e) {
2863
- let t = p._getSheetRef(e, j.Visibility.VeryHidden);
2863
+ let t = p._getSheetRef(e, O.Visibility.VeryHidden);
2864
2864
  if (!t) return;
2865
2865
  let n = p._beginCommit({ description: G("op.deleteSheet", { name: t.name }) });
2866
2866
  try {
@@ -2916,7 +2916,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2916
2916
  }
2917
2917
  _recordActiveSheet(e, t, n) {
2918
2918
  let r = this.getView().getId();
2919
- e.setIntent(ai, (e) => ({
2919
+ e.setIntent(oi, (e) => ({
2920
2920
  viewId: r,
2921
2921
  before: e?.before ?? t,
2922
2922
  after: n
@@ -2946,7 +2946,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2946
2946
  let n = this._view.getActiveSheetId();
2947
2947
  n ??= (this._view.setActiveSheetId(t), t);
2948
2948
  let r = e.refsById.get(n);
2949
- r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === j.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2949
+ r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === O.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2950
2950
  }
2951
2951
  _validateDeleteSheet(e) {
2952
2952
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
@@ -2966,7 +2966,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2966
2966
  find(e) {
2967
2967
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
2968
2968
  let t = this._getWorksheets();
2969
- if (t.length === 0) return { next: () => ot };
2969
+ if (t.length === 0) return { next: () => Ut };
2970
2970
  if (t.length === 1) return t[0].find(e);
2971
2971
  typeof e == "string" && (e = { text: e });
2972
2972
  let n = !e?.reverse, r = e?.disableWrap ?? !1, i = this._worksheetOffsetFrom(this.getSelectedSheetIndex(), t), a = i, o = t[a], s = !1;
@@ -2992,7 +2992,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
2992
2992
  }
2993
2993
  if (!d && s && a === i && (u.done || !c || !u.done && f(u.value.getCoords(), c) >= 0) && (d = !0), d) {
2994
2994
  let e = u;
2995
- return u = ot, e;
2995
+ return u = Ut, e;
2996
2996
  }
2997
2997
  let p = u;
2998
2998
  return u = l.next(), p;
@@ -3004,7 +3004,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3004
3004
  } };
3005
3005
  }
3006
3006
  replace(e, t, n) {
3007
- let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, s = !n?.maxCount, c = "", l = typeof t == "string" ? Wt(t) : null, u = n?.description ?? W("op.replace"), d = this._transactions.beginCommit({ description: u });
3007
+ let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, s = !n?.maxCount, c = "", l = typeof t == "string" ? ot(t) : null, u = n?.description ?? W("op.replace"), d = this._transactions.beginCommit({ description: u });
3008
3008
  try {
3009
3009
  let u = null, f = null, p = e.next();
3010
3010
  for (; !p.done && r < o;) {
@@ -3061,7 +3061,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3061
3061
  if (!this.getProtection().isStructureAllowed()) throw new U(G("error.workbook.protection"));
3062
3062
  let t = this._getSheetRefs(), n = this.getSelectedSheetIndex(), r = null;
3063
3063
  if (e) {
3064
- if (r = this._getSheetRef(e), !r) throw new V(Yr(r));
3064
+ if (r = this._getSheetRef(e), !r) throw new V(Xr(r));
3065
3065
  } else r = t[n];
3066
3066
  if (!r) return null;
3067
3067
  if (!Q(r)) throw new V((i = r.name, G("error.workbook.sheetNotDuplicable", { sheetName: i })));
@@ -3078,33 +3078,33 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3078
3078
  return d;
3079
3079
  }
3080
3080
  _createRange(e, t) {
3081
- let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, j.Visibility.VeryHidden) : null;
3082
- if (r && !Q(r)) throw new V(Zr(r.name, r.sheet.getKind()));
3081
+ let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, O.Visibility.VeryHidden) : null;
3082
+ if (r && !Q(r)) throw new V(Qr(r.name, r.sheet.getKind()));
3083
3083
  if (!r) {
3084
3084
  let e = this._anchorWorksheet();
3085
- return e ? (delete n?.scope, ri(n, n ? {
3086
- scope: Le,
3085
+ return e ? (delete n?.scope, ii(n, n ? {
3086
+ scope: ae,
3087
3087
  ...e.getEntireRange().getCoords()
3088
3088
  } : null)) : void console.warn(G("error.workbook.noVisibleRefs"));
3089
3089
  }
3090
3090
  let i = r.sheet, a = null;
3091
- return t && (a = { getOptions: t }), new si(e, O(i), this, a);
3091
+ return t && (a = { getOptions: t }), new ci(e, D(i), this, a);
3092
3092
  }
3093
3093
  _createRanges(e, t) {
3094
3094
  let n = this._anchorWorksheet();
3095
- if (!n) throw new V(Qr("", j.Kind.Worksheet));
3095
+ if (!n) throw new V($r("", O.Kind.Worksheet));
3096
3096
  let r = null;
3097
- return t && (r = { getOptions: t }), new oi(e, O(n), this, r);
3097
+ return t && (r = { getOptions: t }), new si(e, D(n), this, r);
3098
3098
  }
3099
3099
  getRange(e, t) {
3100
3100
  if (e === void 0) return this.getSelectedRange(t);
3101
- typeof e == "number" && (e = Je(arguments), t = void 0);
3101
+ typeof e == "number" && (e = Ae(arguments), t = void 0);
3102
3102
  try {
3103
3103
  let n = this._rangesAddressToCoords(e);
3104
3104
  if (n.length !== 1) throw new V(G("error.address.singleRangeOnlyAlt"));
3105
3105
  return this._createRange(n[0], t);
3106
3106
  } catch (t) {
3107
- throw t instanceof H ? new H(t.message) : new V(t.message ?? Se(e));
3107
+ throw t instanceof H ? new H(t.message) : new V(t.message ?? Dt(e));
3108
3108
  }
3109
3109
  }
3110
3110
  getCell(e) {
@@ -3115,38 +3115,38 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3115
3115
  }
3116
3116
  getRanges(e, t) {
3117
3117
  let n = this._rangesAddressToCoords(e);
3118
- if (n.length === 0) throw new V(Se(e));
3118
+ if (n.length === 0) throw new V(Dt(e));
3119
3119
  return this._createRanges(n, t);
3120
3120
  }
3121
3121
  _createGraphRanges(e, t) {
3122
3122
  let n = [], r = this.getCalculation()?.getNamedFormulas() ?? null;
3123
3123
  for (let e = 0; e < t.length; e++) {
3124
- let i = t[e], a = i.sheetName ? this._getSheetRef(i.sheetName, j.Visibility.VeryHidden) : null, o = a && Q(a) ? a.sheet : this._anchorWorksheet();
3125
- o && n.push(new Te(i, r, O(o), null));
3124
+ let i = t[e], a = i.sheetName ? this._getSheetRef(i.sheetName, O.Visibility.VeryHidden) : null, o = a && Q(a) ? a.sheet : this._anchorWorksheet();
3125
+ o && n.push(new ke(i, r, D(o), null));
3126
3126
  }
3127
3127
  for (let t = 0; t < e.length; t++) n.push(e[t]);
3128
3128
  let i = this._anchorWorksheet();
3129
- return n.length !== 0 && i ? new oi(n, O(i), this, null) : null;
3129
+ return n.length !== 0 && i ? new si(n, D(i), this, null) : null;
3130
3130
  }
3131
3131
  getAnomalies(e) {
3132
3132
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
3133
- let t = me(e), n = this._getWorksheets(j.Visibility.VeryHidden).map((e) => {
3134
- let t = O(e);
3133
+ let t = _e(e), n = this._getWorksheets(O.Visibility.VeryHidden).map((e) => {
3134
+ let t = D(e);
3135
3135
  return {
3136
3136
  bounds: t.getSheet().getEntireCoords(),
3137
3137
  internal: t,
3138
3138
  qualified: !0
3139
3139
  };
3140
3140
  });
3141
- return new ue(n, () => (this.getSelectedWorksheet() ?? this._getWorksheets(j.Visibility.VeryHidden)[0]).getEntireRange(), t);
3141
+ return new ue(n, () => (this.getSelectedWorksheet() ?? this._getWorksheets(O.Visibility.VeryHidden)[0]).getEntireRange(), t);
3142
3142
  }
3143
3143
  getStats(e) {
3144
3144
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
3145
- let t = this._getWorksheets(j.Visibility.VeryHidden), n = t.length;
3145
+ let t = this._getWorksheets(O.Visibility.VeryHidden), n = t.length;
3146
3146
  if (n === 1) return t[0].getStats(e);
3147
3147
  let r = Array(n);
3148
3148
  for (let i = 0; i < n; i++) r[i] = t[i].getStats(e);
3149
- return new Cr(r);
3149
+ return new wr(r);
3150
3150
  }
3151
3151
  _activeRangeCoords() {
3152
3152
  let e = this._requireSelectedWorksheet(), t = e.getSelection().getRanges().getCoords(), n = e.getName(), r = t.length, i = Array(r);
@@ -3171,7 +3171,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3171
3171
  getSelectedCell() {
3172
3172
  return this._requireSelectedWorksheet().getSelectedCell();
3173
3173
  }
3174
- _rangesAddressToCoords(e, t = !0, n = j.Visibility.Hidden) {
3174
+ _rangesAddressToCoords(e, t = !0, n = O.Visibility.Hidden) {
3175
3175
  if (!e) throw new V(G("error.address.noAddress"));
3176
3176
  let r = this.getSelectedWorksheet(), i = { ...(r ?? this._anchorWorksheet())?.getEntireRange().getCoords() }, a = r?.getName();
3177
3177
  if (a && (i.scope = a), typeof e == "string") {
@@ -3181,11 +3181,11 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3181
3181
  t === "r" ? r.rowStart = r.rowEnd = n.rowIndex : r.colStart = r.colEnd = n.colIndex, e = r;
3182
3182
  }
3183
3183
  }
3184
- let o = this, s = it(e, i, $e, (e) => {
3184
+ let o = this, s = Vt(e, i, Ft, (e) => {
3185
3185
  if (!t) return null;
3186
3186
  if (typeof e == "string") {
3187
- let t = he(e, {
3188
- getTable: (e) => _t(o.getNames().getByName(e)),
3187
+ let t = ve(e, {
3188
+ getTable: (e) => St(o.getNames().getByName(e)),
3189
3189
  getAnchor: () => r ? {
3190
3190
  sheet: r,
3191
3191
  coords: r.getSelectedCell().getCoords()
@@ -3200,7 +3200,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3200
3200
  for (let e = 0; e < c; e++) this._validateCoords(s[e], n);
3201
3201
  return s;
3202
3202
  }
3203
- _validateCoords(e, t = j.Visibility.Visible, n = G("error.sheet.oobRange")) {
3203
+ _validateCoords(e, t = O.Visibility.Visible, n = G("error.sheet.oobRange")) {
3204
3204
  if (e === null) return;
3205
3205
  let r = this.getWorksheet(e.scope ?? void 0, t).getEntireRange().getCoords();
3206
3206
  if (!B.isRangeWithinRange(e, r)) throw new H(n);
@@ -3227,7 +3227,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3227
3227
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
3228
3228
  if (!this.getProtection().isStructureAllowed()) throw new U(G("error.workbook.protection"));
3229
3229
  let r = this._getSheetRef(e);
3230
- if (!r) throw new V(Yr(e));
3230
+ if (!r) throw new V(Xr(e));
3231
3231
  if (t === r.name) return r.sheet;
3232
3232
  if ((t = this._validateNewSheetName(t)) == null) throw new V(G("error.workbook.sheetNameNotProvided"));
3233
3233
  let i = Object.freeze({
@@ -3244,23 +3244,23 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3244
3244
  }
3245
3245
  return a;
3246
3246
  }
3247
- _setSheetVisibility(e, t = j.Visibility.Visible, n) {
3247
+ _setSheetVisibility(e, t = O.Visibility.Visible, n) {
3248
3248
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
3249
3249
  if (!this.getProtection().isStructureAllowed()) throw new U(G("error.workbook.protection"));
3250
- let r = this._getSheetRef(e, j.Visibility.VeryHidden);
3250
+ let r = this._getSheetRef(e, O.Visibility.VeryHidden);
3251
3251
  if (!r) return null;
3252
3252
  if (t === r.visibility) return;
3253
3253
  let i = null, a = "";
3254
- t === j.Visibility.Visible ? a = W("op.unhideSheet") : t === j.Visibility.Hidden ? a = W("op.hideSheet") : t === j.Visibility.VeryHidden && (a = W("op.veryHideSheet"));
3254
+ t === O.Visibility.Visible ? a = W("op.unhideSheet") : t === O.Visibility.Hidden ? a = W("op.hideSheet") : t === O.Visibility.VeryHidden && (a = W("op.veryHideSheet"));
3255
3255
  let o = this.beginCommit(a);
3256
3256
  try {
3257
3257
  let e = this._getState().sheetRefsVisible;
3258
- if (t !== j.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new V(G("error.workbook.sheetOne"));
3258
+ if (t !== O.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new V(G("error.workbook.sheetOne"));
3259
3259
  let a = {
3260
3260
  ...r,
3261
3261
  visibility: t
3262
3262
  }, s = -1;
3263
- t !== j.Visibility.Visible && (s = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== j.Visibility.Visible && this._adjustRemoveSelectionIfRequired(s, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
3263
+ t !== O.Visibility.Visible && (s = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== O.Visibility.Visible && this._adjustRemoveSelectionIfRequired(s, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
3264
3264
  } catch (e) {
3265
3265
  throw o.rollback(), e;
3266
3266
  }
@@ -3289,9 +3289,9 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3289
3289
  _setSelectedSheet(e) {
3290
3290
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
3291
3291
  let t = this._getSheetRef(e);
3292
- if (!t) throw new V(Yr(e));
3292
+ if (!t) throw new V(Xr(e));
3293
3293
  let n = null;
3294
- return t.visibility !== j.Visibility.Visible && this._setSheetVisibility(t, j.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
3294
+ return t.visibility !== O.Visibility.Visible && this._setSheetVisibility(t, O.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
3295
3295
  }
3296
3296
  getProtection() {
3297
3297
  return this._protection;
@@ -3309,7 +3309,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3309
3309
  return this._calculation;
3310
3310
  }
3311
3311
  getFonts() {
3312
- return Me.getShared();
3312
+ return x.getShared();
3313
3313
  }
3314
3314
  createFormula(e, t, n) {
3315
3315
  return this.getCalculation().createFormula(e, t, n);
@@ -3364,6 +3364,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3364
3364
  return e ? n(e) : null;
3365
3365
  },
3366
3366
  getPreviousAddress: () => t.getPreviousAddress(),
3367
+ getEdits: () => t.getEdits(),
3367
3368
  getTrigger: () => t.getTrigger(),
3368
3369
  isUndo: () => t.isUndo(),
3369
3370
  getCommit: () => t.getCommit(),
@@ -3379,7 +3380,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3379
3380
  let t = this._getSheetRef(e), n = t && Q(t) ? t.sheet : null;
3380
3381
  return n ? n._contentAddWatch(() => null) : null;
3381
3382
  }, n = (e) => {
3382
- for (let t of this._getSheetRefs(j.Visibility.VeryHidden)) {
3383
+ for (let t of this._getSheetRefs(O.Visibility.VeryHidden)) {
3383
3384
  if (!Q(t)) continue;
3384
3385
  let n = t.sheet;
3385
3386
  if (n.getTables().getByName(e)) return n._contentAddWatch(() => null);
@@ -3389,14 +3390,14 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3389
3390
  let n = this._getSheetRef(e);
3390
3391
  return n && Q(n) ? n.sheet.getRange(t) : null;
3391
3392
  }, i = (e) => {
3392
- for (let t of this._getSheetRefs(j.Visibility.VeryHidden)) {
3393
+ for (let t of this._getSheetRefs(O.Visibility.VeryHidden)) {
3393
3394
  if (!Q(t)) continue;
3394
3395
  let n = t.sheet.getTables().getByName(e);
3395
3396
  if (n) return n;
3396
3397
  }
3397
3398
  return null;
3398
3399
  }, a = (e, t) => {
3399
- let n = this._pivotSourceNamed(e, t)?.getValue(), i = typeof n == "string" ? v(n) : null;
3400
+ let n = this._pivotSourceNamed(e, t)?.getValue(), i = typeof n == "string" ? g(n) : null;
3400
3401
  return i && /^\$?[A-Za-z]+\$?\d+(?::\$?[A-Za-z]+\$?\d+)?$/.test(i.reference) ? r(i.sheet, i.reference.replaceAll("$", "")) : null;
3401
3402
  };
3402
3403
  for (let o = 0; o < e.length; o++) this._getState().pivotCacheData.has(e[o].cacheId) && (e[o]._hold(t, n), e[o]._watchSource(r, i, a));
@@ -3419,13 +3420,13 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3419
3420
  if (e.isITable) return { name: e.getName() };
3420
3421
  let n = null;
3421
3422
  if (typeof e == "string") {
3422
- for (let t of this._getSheetRefs(j.Visibility.VeryHidden)) if (Q(t) && t.sheet.getTables().getByName(e)) return { name: e };
3423
+ for (let t of this._getSheetRefs(O.Visibility.VeryHidden)) if (Q(t) && t.sheet.getTables().getByName(e)) return { name: e };
3423
3424
  if (this.getNames().getByName(e)) return { name: e };
3424
3425
  if (t.getNames().getByName(e)?.getScope()) return {
3425
3426
  name: e,
3426
3427
  sheet: t.getName()
3427
3428
  };
3428
- let r = v(e), i = r ? this._getSheetRef(r.sheet) : null;
3429
+ let r = g(e), i = r ? this._getSheetRef(r.sheet) : null;
3429
3430
  if (r && (!i || !Q(i))) return null;
3430
3431
  try {
3431
3432
  n = r ? i.sheet.getRange(r.reference) : t.getRange(e);
@@ -3435,13 +3436,13 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3435
3436
  }
3436
3437
  } else n = e.isICellRange ? e : t.getRange(e);
3437
3438
  if (!n || n.isInvalid()) return null;
3438
- let { rowStart: r, colStart: i, rowEnd: a, colEnd: s } = n.getCoords();
3439
+ let { rowStart: r, colStart: i, rowEnd: a, colEnd: o } = n.getCoords();
3439
3440
  return {
3440
- ref: o({
3441
+ ref: st({
3441
3442
  rowStart: r,
3442
3443
  colStart: i,
3443
3444
  rowEnd: a,
3444
- colEnd: s
3445
+ colEnd: o
3445
3446
  }),
3446
3447
  sheet: n.getWorksheet().getName()
3447
3448
  };
@@ -3462,12 +3463,12 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3462
3463
  partFormats: null,
3463
3464
  source: null
3464
3465
  });
3465
- let r = new Dr(t, n);
3466
+ let r = new Or(t, n);
3466
3467
  return this._pivotCaches.push(r), this._holdPivotCaches(), r;
3467
3468
  }
3468
3469
  async _refreshPivotCaches(e, t) {
3469
3470
  let n = [];
3470
- for (let t of this._getSheetRefs(j.Visibility.VeryHidden)) if (Q(t)) for (let r of t.sheet.getPivotTables().getItems()) e.has(r.getCacheId()) && n.push(r);
3471
+ for (let t of this._getSheetRefs(O.Visibility.VeryHidden)) if (Q(t)) for (let r of t.sheet.getPivotTables().getItems()) e.has(r.getCacheId()) && n.push(r);
3471
3472
  for (let e of n) e._assertRefreshAllowed();
3472
3473
  for (let r of e) {
3473
3474
  let e = this._getPivotCache(r), i = e ? await this._pivotSourceRangeOf(e._getSource()) : null;
@@ -3486,7 +3487,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3486
3487
  async _refreshPivotCachesOnLoad() {
3487
3488
  let e = this._pivotCaches.filter((e) => !!e._getData().model?.refreshOnLoad);
3488
3489
  if (e.length === 0) return;
3489
- let t = await Ht.load();
3490
+ let t = await Nt.load();
3490
3491
  for (let n of e) {
3491
3492
  if (this._closed) return;
3492
3493
  try {
@@ -3504,7 +3505,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3504
3505
  return t && Q(t) ? t.sheet.getRange(e.ref) : null;
3505
3506
  }
3506
3507
  if (!e.name) return null;
3507
- if (!e.sheet) for (let t of this._getSheetRefs(j.Visibility.VeryHidden)) {
3508
+ if (!e.sheet) for (let t of this._getSheetRefs(O.Visibility.VeryHidden)) {
3508
3509
  if (!Q(t)) continue;
3509
3510
  let n = t.sheet.getTables().getByName(e.name);
3510
3511
  if (!n || n.isDeleted()) continue;
@@ -3531,7 +3532,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3531
3532
  let n = this._getSheetRef(e);
3532
3533
  return (n && Q(n) ? n.sheet : null)?.getPivotTables().getByName(t) ?? null;
3533
3534
  };
3534
- for (let t of this._getSheetRefs(j.Visibility.VeryHidden)) {
3535
+ for (let t of this._getSheetRefs(O.Visibility.VeryHidden)) {
3535
3536
  if (!Q(t)) continue;
3536
3537
  let n = t.sheet.getMovables().getItems();
3537
3538
  for (let t = 0; t < n.length; t++) {
@@ -3542,7 +3543,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3542
3543
  }
3543
3544
  _fromJSON(e, t) {
3544
3545
  if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new V(G("error.workbook.sheetOne"));
3545
- e.theme && (this._theme = new Oe(e.theme), this._styles.setTheme(this._theme));
3546
+ e.theme && (this._theme = new nn(e.theme), this._styles.setTheme(this._theme));
3546
3547
  let n = this._strings.beginPersist(), r = this._resources.beginPersist(), i = this._styles.beginPersist(), a = this._richValues.beginPersist();
3547
3548
  try {
3548
3549
  n.fromJSON(e.strings), r.fromJSON(e.resources), this._fetch.adopt(this._resources.getItems()), i.fromJSON(e.styles), a.fromJSON(e.richData, {
@@ -3555,23 +3556,23 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3555
3556
  let e = r.fromResourceId.bind(r);
3556
3557
  for (let t = 0; t < c.length; t++) {
3557
3558
  let n = c[t];
3558
- n && typeof n.cacheId == "number" && !s.has(n.cacheId) && s.set(n.cacheId, Dr.dataOf(n, e));
3559
+ n && typeof n.cacheId == "number" && !s.has(n.cacheId) && s.set(n.cacheId, Or.dataOf(n, e));
3559
3560
  }
3560
3561
  }
3561
3562
  this._updateState({ pivotCacheData: s });
3562
- for (let e of s.keys()) o.push(new Dr(e, this._pivotCacheStore(e)));
3563
+ for (let e of s.keys()) o.push(new Or(e, this._pivotCacheStore(e)));
3563
3564
  this._pivotCaches = o, this._people.fromJSON(e.people);
3564
3565
  let l = e.sheets, u = l.length, d = e.view.activeSheetId ?? null;
3565
3566
  d !== null && (d = Math.min(Math.max(0, d), u - 1));
3566
3567
  let f = null, p = null;
3567
3568
  this._isLoadingSheets = !0;
3568
3569
  for (let e = 0; e < u; e++) {
3569
- let n = l[e], i = n.visibility || j.Visibility.Visible, a = e;
3570
- p = a, i === j.Visibility.Visible ? f === null && (f = a) : d !== null && d === a && (d = null);
3570
+ let n = l[e], i = n.visibility || O.Visibility.Visible, a = e;
3571
+ p = a, i === O.Visibility.Visible ? f === null && (f = a) : d !== null && d === a && (d = null);
3571
3572
  try {
3572
- let o = n.kind ?? j.Kind.Worksheet;
3573
- if (o !== j.Kind.Worksheet) {
3574
- let s = n.sheet, c = A.fromJSON(s?.part, r.fromResourceId.bind(r));
3573
+ let o = n.kind ?? O.Kind.Worksheet;
3574
+ if (o !== O.Kind.Worksheet) {
3575
+ let s = n.sheet, c = j.fromJSON(s?.part, r.fromResourceId.bind(r));
3575
3576
  if (!c) throw new V(G("error.workbook.sheetPartMissing", { sheetName: n.name }));
3576
3577
  this._createOpaqueSheet(a, n.name, i, e, n.sheetId, o, c, s?.tabColor ?? null, t?.[e]);
3577
3578
  } else this._createSheet(a, n.name, i, e, n.sheetId, n.sheet, t?.[e]);
@@ -3580,10 +3581,10 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3580
3581
  }
3581
3582
  }
3582
3583
  this._isLoadingSheets = !1, this._tellSheets(), this._holdPivotCaches(), this._holdPivotSlicers();
3583
- for (let e of this._getSheetRefs(j.Visibility.VeryHidden)) Q(e) && e.sheet._tellPivots();
3584
- this._updateState({ lastId: p }), e.view.activeSheetId = d ?? f, this.setView(new Ur({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
3584
+ for (let e of this._getSheetRefs(O.Visibility.VeryHidden)) Q(e) && e.sheet._tellPivots();
3585
+ this._updateState({ lastId: p }), e.view.activeSheetId = d ?? f, this.setView(new Wr({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
3585
3586
  let m = this;
3586
- this._protection = new Gr(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
3587
+ this._protection = new Kr(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
3587
3588
  m._emitter.notify("onProtectionChange", { source: e });
3588
3589
  } }), this._emitter.notify("onLoad");
3589
3590
  } finally {
@@ -3603,14 +3604,14 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3603
3604
  }
3604
3605
  _createScripts(e) {
3605
3606
  let t = this;
3606
- return new jr({
3607
+ return new Mr({
3607
3608
  transactions: this._transactions,
3608
3609
  json: e,
3609
3610
  workbook: t,
3610
3611
  getBuiltInFunctions: () => t._calculation?.getFunctions(),
3611
3612
  onAdd: (e, n) => {
3612
3613
  let r = t._calculation;
3613
- r.getStatus() !== Et.Status.Off && r.start().then(async () => {
3614
+ r.getStatus() !== gt.Status.Off && r.start().then(async () => {
3614
3615
  if (t._startModules.has(n)) return;
3615
3616
  let e = n.getFunctions().getItems({
3616
3617
  type: "formula",
@@ -3621,7 +3622,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3621
3622
  try {
3622
3623
  await this._calculation.getFunctions().add(n);
3623
3624
  } catch (e) {
3624
- Ln.error(e?.message ?? String(e), e);
3625
+ Rn.error(e?.message ?? String(e), e);
3625
3626
  }
3626
3627
  }
3627
3628
  }).catch(() => {});
@@ -3633,7 +3634,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3633
3634
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
3634
3635
  await Promise.resolve(this._starting);
3635
3636
  let t = this.getCalculation();
3636
- t.getStatus() !== Et.Status.Off && (await t.ready(), await t._whenRequestsSettled?.()), await this._emitter.notify("onBeforeSave", { async: !0 });
3637
+ t.getStatus() !== gt.Status.Off && (await t.ready(), await t._whenRequestsSettled?.()), await this._emitter.notify("onBeforeSave", { async: !0 });
3637
3638
  let n = { sheets: [] }, r = e?.ignoreStyles ?? !1;
3638
3639
  if (!r) {
3639
3640
  let e = this._theme.toJSON();
@@ -3656,14 +3657,14 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3656
3657
  sheet: await a.sheet.toJSON(e)
3657
3658
  };
3658
3659
  else {
3659
- let e = l, t = c ? c.toResourceId.bind(c) : () => null, n = { part: A.toJSON(e._getPart(), t) }, r = e.getTabColor();
3660
+ let e = l, t = c ? c.toResourceId.bind(c) : () => null, n = { part: j.toJSON(e._getPart(), t) }, r = e.getTabColor();
3660
3661
  r && (n.tabColor = r.toString()), s = {
3661
3662
  name: a.name,
3662
3663
  kind: e.getKind(),
3663
3664
  sheet: n
3664
3665
  };
3665
3666
  }
3666
- a.sheetId !== void 0 && (s.sheetId = a.sheetId), a.visibility === j.Visibility.Visible ? d === null && (d = o) : s.visibility = a.visibility, a.id === t && (i = o), n.sheets.push(s);
3667
+ a.sheetId !== void 0 && (s.sheetId = a.sheetId), a.visibility === O.Visibility.Visible ? d === null && (d = o) : s.visibility = a.visibility, a.id === t && (i = o), n.sheets.push(s);
3667
3668
  }
3668
3669
  if (!r) {
3669
3670
  let e = l.toJSON();
@@ -3687,7 +3688,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3687
3688
  if (x.length > 0) {
3688
3689
  let e = c ? c.toResourceId.bind(c) : () => null, t = /* @__PURE__ */ new Set();
3689
3690
  for (let e of this.getPivotTables()) t.add(e.getCacheId());
3690
- let r = Ze(this);
3691
+ let r = Jt(this);
3691
3692
  for (let e = 0; e < r.length; e++) {
3692
3693
  let n = r[e].toJSON()?.pivot?.cacheId;
3693
3694
  n !== void 0 && t.add(n);
@@ -3726,7 +3727,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3726
3727
  } catch (e) {
3727
3728
  console.warn("error on close", e);
3728
3729
  }
3729
- this._ownResources, this._ownNames && this._names.close(), this._ownCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._listenerLanguage?.(), this._listenerOrigin?.(), this._listenerOriginProvider?.(), this._ownOriginProvider && this._originProvider instanceof Xn && this._originProvider.release(), this._closed = !0;
3730
+ this._ownResources, this._ownNames && this._names.close(), this._ownCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._listenerLanguage?.(), this._listenerOrigin?.(), this._listenerOriginProvider?.(), this._ownOriginProvider && this._originProvider instanceof Zn && this._originProvider.release(), this._closed = !0;
3730
3731
  }
3731
3732
  beginCommit(e) {
3732
3733
  if (this._closed) throw Error(G("error.workbook.modelClosed"));
@@ -3776,7 +3777,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3776
3777
  get isIWorkbook() {
3777
3778
  return !0;
3778
3779
  }
3779
- }, ui = { address: null }, Q = (e) => e.sheet.getKind() === j.Kind.Worksheet, di = class {
3780
+ }, di = { address: null }, Q = (e) => e.sheet.getKind() === O.Kind.Worksheet, fi = class {
3780
3781
  constructor() {
3781
3782
  this._readFormats = [], this._writeFormats = [], this._encryptions = [];
3782
3783
  }
@@ -3850,9 +3851,9 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3850
3851
  return !0;
3851
3852
  });
3852
3853
  }
3853
- }, fi = /* @__PURE__ */ new WeakMap(), pi = (e) => !!e && typeof e == "object" && typeof e.getPath == "function" && typeof e.canWrite == "function", mi = class {
3854
+ }, pi = /* @__PURE__ */ new WeakMap(), mi = (e) => !!e && typeof e == "object" && typeof e.getPath == "function" && typeof e.canWrite == "function", hi = class {
3854
3855
  constructor() {
3855
- this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new t(this), this._registry = new di(), this._defaultStore = new Qn(() => this.getWriteFormats(), () => this.getReadFormats());
3856
+ this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new t(this), this._registry = new fi(), this._defaultStore = new $n(() => this.getWriteFormats(), () => this.getReadFormats());
3856
3857
  }
3857
3858
  getBackingStore() {
3858
3859
  return this._backingStore ?? this._defaultStore;
@@ -3892,10 +3893,10 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3892
3893
  async read(e) {
3893
3894
  let t = null;
3894
3895
  if (typeof e == "string") e = { source: e };
3895
- else if (pi(e)) {
3896
+ else if (mi(e)) {
3896
3897
  let n = e.getPath();
3897
3898
  if (!n) throw Error("Cannot read from an unbound origin (no path).");
3898
- Jn(e) ? e = {
3899
+ Yn(e) ? e = {
3899
3900
  source: n,
3900
3901
  asCopy: !0
3901
3902
  } : (t = e, e = { source: n });
@@ -3966,7 +3967,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3966
3967
  try {
3967
3968
  return i = await r.decode(e, t), !0;
3968
3969
  } catch (e) {
3969
- if (!(e instanceof Fn)) throw e;
3970
+ if (!(e instanceof In)) throw e;
3970
3971
  return !1;
3971
3972
  }
3972
3973
  };
@@ -3976,7 +3977,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3976
3977
  };
3977
3978
  if (!n?.onPassword) {
3978
3979
  let e = t.getName();
3979
- throw new zn(e ? G("error.io.passwordRequired", { name: e }) : G("error.io.passwordRequiredUnnamed"));
3980
+ throw new Bn(e ? G("error.io.passwordRequired", { name: e }) : G("error.io.passwordRequiredUnnamed"));
3980
3981
  }
3981
3982
  let o = await Promise.resolve(n.onPassword({
3982
3983
  origin: t,
@@ -3988,7 +3989,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3988
3989
  bytes: i,
3989
3990
  password: o
3990
3991
  };
3991
- throw new Fn(G("error.io.passwordIncorrect"));
3992
+ throw new In(G("error.io.passwordIncorrect"));
3992
3993
  }
3993
3994
  async writeArrayBuffer(e, t) {
3994
3995
  if (!t?.format) throw Error("A format must be specified to write to an ArrayBuffer (e.g. { format: 'xlsx' }).");
@@ -3997,7 +3998,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
3997
3998
  return this._writeArrayBuffer(e, n, t);
3998
3999
  }
3999
4000
  async write(e, t, n) {
4000
- return typeof t == "string" || pi(t) ? this._write(e, t, !1, n) : this._write(e, e?.getOrigin?.(), !0, t ?? n);
4001
+ return typeof t == "string" || mi(t) ? this._write(e, t, !1, n) : this._write(e, e?.getOrigin?.(), !0, t ?? n);
4001
4002
  }
4002
4003
  async writeAs(e, t, n) {
4003
4004
  if (!t) throw Error("A target must be provided for writeAs (use write(workbook) for a plain save).");
@@ -4021,13 +4022,13 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4021
4022
  }
4022
4023
  if (typeof t == "string") {
4023
4024
  let e = i.getPath();
4024
- i = new K(k(e) ? e : `${e}.${o.exts[0]}`, { format: o.key });
4025
+ i = new K(A(e) ? e : `${e}.${o.exts[0]}`, { format: o.key });
4025
4026
  }
4026
4027
  let c = i.getEncryption(), l = e.getOrigin?.(), u = (i instanceof K ? i.getPassword() : null) ?? (l instanceof K ? l.getPassword() : null), d = i.isEncrypted() || (l?.isEncrypted() ?? !1), f = r?.password === void 0 ? u ?? (d ? void 0 : null) : r.password, p = null;
4027
4028
  if (f === void 0) {
4028
4029
  if (d) {
4029
4030
  let e = i.getName();
4030
- throw new zn(e ? G("error.io.passwordRequiredSave", { name: e }) : G("error.io.passwordRequiredSaveUnnamed"));
4031
+ throw new Bn(e ? G("error.io.passwordRequiredSave", { name: e }) : G("error.io.passwordRequiredSaveUnnamed"));
4031
4032
  }
4032
4033
  } else if (f !== null && (p = await this._registry.getEncryption(c), !p)) throw new V(G("error.io.encryptionUnavailable"));
4033
4034
  let m = `${i.getName() ?? G("workbook.defaultName")}.${o.exts[0]}`, h = r?.progress, g = !i.getPath() || !i.canWrite() || !!r?.prompt, _ = !1, v = this, y = null, b = [], x = {
@@ -4055,7 +4056,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4055
4056
  }))(h, l), d = await v._writeArrayBuffer(e, c, {
4056
4057
  ...r,
4057
4058
  progress: u
4058
- }), m = fi.get(s);
4059
+ }), m = pi.get(s);
4059
4060
  if (l.some((e) => !m?.has(e.message)) && r?.onWarnings) {
4060
4061
  let t = await Promise.resolve(r.onWarnings({
4061
4062
  workbook: e,
@@ -4074,11 +4075,11 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4074
4075
  if (!t.write) throw Error("The active backing store is read-only (no write implementation).");
4075
4076
  if (S = await t.write(x), S) {
4076
4077
  if (f !== void 0 && S instanceof K && (S.setPassword(f), S.update({ encryption: p ? p.key : null })), b.length) {
4077
- let e = fi.get(S) ?? /* @__PURE__ */ new Set();
4078
+ let e = pi.get(S) ?? /* @__PURE__ */ new Set();
4078
4079
  for (let t of b) e.add(t.message);
4079
- fi.set(S, e);
4080
+ pi.set(S, e);
4080
4081
  }
4081
- n && S !== e.getOrigin() && Jn(e.getOrigin())?.setOrigin(S);
4082
+ n && S !== e.getOrigin() && Yn(e.getOrigin())?.setOrigin(S);
4082
4083
  let t = y ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
4083
4084
  this._emitter.notify("onWrite", {
4084
4085
  params: {
@@ -4098,7 +4099,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4098
4099
  return S;
4099
4100
  }
4100
4101
  _stripExtension(e) {
4101
- let t = k(e);
4102
+ let t = A(e);
4102
4103
  return t ? e.slice(0, e.length - t.length - 1) : e;
4103
4104
  }
4104
4105
  _baseName(e) {
@@ -4110,7 +4111,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4110
4111
  if (!t) throw Error("A write format must be provided.");
4111
4112
  let r = t.handler;
4112
4113
  if (!r) throw Error(`Unable to resolve a write handler for '${t.key}'.`);
4113
- return jt(t.key) || await D.assertUsable("exports", 0), r(e, {
4114
+ return Bt(t.key) || await k.assertUsable("exports", 0), r(e, {
4114
4115
  ...n,
4115
4116
  format: t.key
4116
4117
  });
@@ -4118,7 +4119,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4118
4119
  async _readArrayBuffer(e, t, n) {
4119
4120
  if (!e) throw Error("ArrayBuffer must be specified.");
4120
4121
  if (!t) throw Error("format must be specified.");
4121
- if (e.byteLength === 0) return new li(n?.createWorkbookOptions);
4122
+ if (e.byteLength === 0) return new ui(n?.createWorkbookOptions);
4122
4123
  let r = t.handler;
4123
4124
  if (!r) throw Error(`Unable to resolve a read handler for '${t.key}'.`);
4124
4125
  let i;
@@ -4130,12 +4131,12 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4130
4131
  reason: e?.message ?? String(e)
4131
4132
  }), { cause: e });
4132
4133
  }
4133
- return await Ke(), i;
4134
+ return await qe(), i;
4134
4135
  }
4135
4136
  get isIWorkbookIO() {
4136
4137
  return !0;
4137
4138
  }
4138
- }, hi = new mi(), gi = class {
4139
+ }, gi = new hi(), _i = class {
4139
4140
  constructor() {
4140
4141
  this._buffer = null, this._formatKey = null;
4141
4142
  }
@@ -4149,7 +4150,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4149
4150
  async read(e) {
4150
4151
  return this._buffer ? e.decode(this._buffer, { format: this._formatKey ?? void 0 }) : null;
4151
4152
  }
4152
- }, _i = "locales", vi = "fonts", yi = {
4153
+ }, vi = "locales", yi = "fonts", bi = {
4153
4154
  suffix: ".msg.json",
4154
4155
  async extract(e) {
4155
4156
  let t = e.relPath.split("/");
@@ -4159,7 +4160,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4159
4160
  } : null;
4160
4161
  },
4161
4162
  place: (e, t) => t ? `${t}/${e}` : null
4162
- }, bi = [
4163
+ }, xi = [
4163
4164
  ".woff2",
4164
4165
  ".woff",
4165
4166
  ".ttf",
@@ -4169,7 +4170,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4169
4170
  ].map((e) => ({
4170
4171
  suffix: e,
4171
4172
  place: (e, t) => t ? `${t}/${e}` : e
4172
- })), xi = {
4173
+ })), Si = {
4173
4174
  suffix: ".metrics.json",
4174
4175
  async extract(e) {
4175
4176
  let t = await e.readJson();
@@ -4180,13 +4181,13 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4180
4181
  } : null;
4181
4182
  },
4182
4183
  place: (e, t) => t ? `${t}/${e}` : e
4183
- }, Si = [{
4184
- kind: _i,
4185
- files: [yi]
4186
- }, {
4184
+ }, Ci = [{
4187
4185
  kind: vi,
4186
+ files: [bi]
4187
+ }, {
4188
+ kind: yi,
4188
4189
  files: [
4189
- xi,
4190
+ Si,
4190
4191
  {
4191
4192
  suffix: ".hinted.json",
4192
4193
  async extract(e) {
@@ -4198,7 +4199,7 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4198
4199
  hinted: !0
4199
4200
  } : null;
4200
4201
  },
4201
- place: xi.place
4202
+ place: Si.place
4202
4203
  },
4203
4204
  {
4204
4205
  suffix: ".rows.json",
@@ -4211,25 +4212,25 @@ var ai = "workbook.activeSheet", oi = class e extends qt {
4211
4212
  rows: !0
4212
4213
  } : null;
4213
4214
  },
4214
- place: xi.place
4215
+ place: Si.place
4215
4216
  },
4216
- ...bi
4217
+ ...xi
4217
4218
  ]
4218
4219
  }];
4219
- async function Ci(e, t) {
4220
- let { Chart: n } = await import("./CVV4xqwD8gIjYj1E.mjs");
4220
+ async function wi(e, t) {
4221
+ let { Chart: n } = await import("./B3ifnlsuky2L9HmB.mjs");
4221
4222
  return new n({
4222
4223
  json: e,
4223
4224
  getStyles: t?.getStyles
4224
4225
  });
4225
4226
  }
4226
- var wi, Ti = {
4227
+ var Ti, Ei = {
4227
4228
  showRowHeaders: !0,
4228
4229
  showColumnHeaders: !0,
4229
4230
  showRowStripes: !1,
4230
4231
  showColumnStripes: !1,
4231
4232
  showLastColumn: !0
4232
- }, Ei = class extends Bt {
4233
+ }, Di = class extends it {
4233
4234
  constructor(e, t, n, r) {
4234
4235
  super(e, t?.getProperties() ?? { name: "" }, {
4235
4236
  rowStart: 0,
@@ -4249,12 +4250,12 @@ var wi, Ti = {
4249
4250
  _bandOf(e, t, n) {
4250
4251
  return n === "firstRowSubheading" ? `${e}` : "";
4251
4252
  }
4252
- }, Di = (e, t, n, r = 5) => {
4253
- let i = Math.max(3, Math.floor(r)), a = new Ei(e, t, n ?? Ti, i);
4253
+ }, Oi = (e, t, n, r = 5) => {
4254
+ let i = Math.max(3, Math.floor(r)), a = new Di(e, t, n ?? Ei, i);
4254
4255
  return {
4255
4256
  rows: i,
4256
4257
  columns: 5,
4257
- getStyleAt: (t, n) => d(void 0, e, a, {
4258
+ getStyleAt: (t, n) => wt(void 0, e, a, {
4258
4259
  rowStart: t,
4259
4260
  colStart: n,
4260
4261
  rowEnd: t,
@@ -4262,28 +4263,28 @@ var wi, Ti = {
4262
4263
  })
4263
4264
  };
4264
4265
  };
4265
- wi ||= {};
4266
+ Ti ||= {};
4266
4267
  var $ = null;
4267
- function Oi() {
4268
+ function ki() {
4268
4269
  if (!$) {
4269
- let e = import("./C0o6WpBojS7XhV5m.mjs").then((e) => e.loadScriptingDeclarations());
4270
+ let e = import("./BWHHWC6H2JgG11Kq.mjs").then((e) => e.loadScriptingDeclarations());
4270
4271
  e.catch(() => {
4271
4272
  $ = null;
4272
4273
  }), $ = e;
4273
4274
  }
4274
4275
  return $;
4275
4276
  }
4276
- var ki, Ai, ji, Mi = null;
4277
- function Ni() {
4278
- if (!Mi) {
4279
- let e = import("./C0o6WpBojS7XhV5m.mjs").then((e) => e.loadScriptingApi()).then((e) => JSON.parse(e));
4277
+ var Ai, ji, Mi, Ni = null;
4278
+ function Pi() {
4279
+ if (!Ni) {
4280
+ let e = import("./BWHHWC6H2JgG11Kq.mjs").then((e) => e.loadScriptingApi()).then((e) => JSON.parse(e));
4280
4281
  e.catch(() => {
4281
- Mi = null;
4282
- }), Mi = e;
4282
+ Ni = null;
4283
+ }), Ni = e;
4283
4284
  }
4284
- return Mi;
4285
+ return Ni;
4285
4286
  }
4286
- ki ||= {}, (Ai ||= {}).Type = {
4287
+ Ai ||= {}, (ji ||= {}).Type = {
4287
4288
  Button: "button",
4288
4289
  CheckBox: "checkBox",
4289
4290
  OptionButton: "optionButton",
@@ -4296,12 +4297,12 @@ ki ||= {}, (Ai ||= {}).Type = {
4296
4297
  EditBox: "editBox",
4297
4298
  Dialog: "dialog",
4298
4299
  Unknown: "formControl"
4299
- }, (ji ||= {}).DropStyle = {
4300
+ }, (Mi ||= {}).DropStyle = {
4300
4301
  Combo: "combo",
4301
4302
  ComboEdit: "comboEdit",
4302
4303
  Simple: "simple"
4303
4304
  };
4304
- var Pi = class extends Ot {
4305
+ var Fi = class extends vt {
4305
4306
  constructor(e) {
4306
4307
  super(e);
4307
4308
  }
@@ -4314,8 +4315,8 @@ var Pi = class extends Ot {
4314
4315
  colEnd: (e?.size?.width ?? 5) - 1,
4315
4316
  rowEnd: (e?.size?.height ?? 5) - 1
4316
4317
  },
4317
- getRanges: (e) => new h(null)
4318
+ getRanges: (e) => new p(null)
4318
4319
  }, super._initializeOptions(e);
4319
4320
  }
4320
- }, Fi = "0.8.0-beta.17", Ii = "2026-11-05T20:40:26.595Z";
4321
- export { pt as AbstractCollection, i as AbstractMovableContent, ae as AddressUtils, gi as ArrayBackingStore, te as AutoFill, Ii as BUILD_DATE, ze as CellControlRegistry, Xe as CellImage, Kt as CellImageKind, l as ChartElementSelection, An as ChartKinds, se as CheckboxKind, bn as Color, Qt as Condition, nt as DateUtils, mi as DefaultWorkbookIO, Yt as EXTERNAL_LINK_PATH_REL_TYPE, Br as ExternalRangeClipboardItem, vi as FONTS_KIND, Fr as Fetcher, gn as FontUtils, Pe as FormulaText, vr as FunctionDeclarations, De as GeomUtils, en as Hyperlink, et as HyperlinkKind, Jt as IAnchored, hn as IBorders, Et as ICalculation, Ue as ICell, hr as ICellHeaderRange, je as ICellRange, mr as ICellRanges, En as ICellStyle, Tn as IColor, Zt as ICondition, Ve as IConditionalFormat, Z as ICustomProperty, Ie as IDataValidation, ji as IDropDown, yn as IEffect, Dn as IFill, P as IFont, Me as IFontCollection, N as IFontStyle, Ai as IFormControl, rn as IGeometry, ki as IMovable, bt as IPageLayout, wi as IPicture, Re as IPivotTable, pr as IResource, g as IRichDataKind, st as IScript, Sn as IShape, j as ISheet, _e as ISlicerStyle, Kn as ISort, Cn as IStroke, pe as ITable, le as ITableStyle, Nt as IText, I as ITextFrame, fr as ITheme, p as IThemeCollection, Vn as IWorkbookIO, Er as IWorkbookView, nn as IWorksheetView, _i as LOCALES_KIND, D as LicenseManager, He as MovableContentRegistry, ne as NamedStyleCollection, F as NumberFormat, kn as PaintUtils, kr as PersonCollection, zr as RangeClipboardItem, rr as RectAlignment, Dt as Registry, b as Resource, C as ResourceCollection, dt as RichArray, lt as RichArrayKind, It as RichDataCollection, Mt as RichDataRegistry, Tt as RichRecord, Xt as RichText, Ae as RichTextKind, Si as SHEETXL_RESOURCE_KINDS, xn as SYSTEM_COLOR_CSS_PREFIX, un as ShapeStyleUtils, y as SimpleFontFace, ye as SlicerStyleCollection, ct as Sort, Ne as StringCollection, yt as StyleCollection, Pi as Table, we as TableStyleCollection, tt as TextRotation, Vt as TextStacked, wt as TextUtils, Oe as Theme, tn as ThemeCollection, n as TransactionConflictError, Gn as TransactionSaveStateManager, a as TransactionStore, Hn as TransactionUndoManager, We as Tuple, Fi as VERSION, li as Workbook, hi as WorkbookIO, K as WorkbookOrigin, Ur as WorkbookView, T as Worksheet, dr as builtInStyleNameDisplay, S as createCellRangeCounts, Ci as createChart, Fe as externalBookClosedName, ee as externalBookFileName, x as externalBookLocation, Ce as externalBookOpenName, de as findLabel, yr as getBuiltInFunctionNames, xt as getLanguagePack, _n as getLocaleProfile, Ut as getScriptRuntime, Ni as getScriptingApi, Oi as getScriptingDeclarations, u as localizeBoolean, vt as localizeErrorLabel, wn as makeLocaleProfile, qe as normalizeLabel, ge as parseBooleanLocal, ve as parseErrorLocal, Ct as parseExternalScope, br as parseFormulaLiteral, Ee as pivotBoxOf, c as pivotCellFormatsOf, at as pivotControlsIn, Di as pivotStylePreviewOf, xe as registerSdkLocales, f as sourceEntryFromPath, At as withScriptRuntime };
4321
+ }, Ii = "0.8.0-beta.18", Li = "2026-11-07T22:09:32.300Z";
4322
+ export { mt as AbstractCollection, i as AbstractMovableContent, me as AddressUtils, _i as ArrayBackingStore, ee as AutoFill, Li as BUILD_DATE, se as CellControlRegistry, qt as CellImage, tn as CellImageKind, s as ChartElementSelection, jn as ChartKinds, Ve as CheckboxKind, xn as Color, Le as Condition, ut as DateUtils, hi as DefaultWorkbookIO, Qt as EXTERNAL_LINK_PATH_REL_TYPE, Vr as ExternalRangeClipboardItem, yi as FONTS_KIND, Ir as Fetcher, _n as FontUtils, C as FormulaText, yr as FunctionDeclarations, Me as GeomUtils, rt as Hyperlink, $t as HyperlinkKind, Re as IAnchored, gn as IBorders, gt as ICalculation, Ze as ICell, gr as ICellHeaderRange, h as ICellRange, hr as ICellRanges, Dn as ICellStyle, En as IColor, Ie as ICondition, ie as IConditionalFormat, Z as ICustomProperty, We as IDataValidation, Mi as IDropDown, bn as IEffect, On as IFill, P as IFont, x as IFontCollection, N as IFontStyle, ji as IFormControl, an as IGeometry, Ai as IMovable, Tt as IPageLayout, Ti as IPicture, oe as IPivotTable, mr as IResource, Xt as IRichDataKind, Wt as IScript, Cn as IShape, O as ISheet, Se as ISlicerStyle, qn as ISort, Ue as ISparklineGroup, wn as IStroke, Ne as ITable, ge as ITableStyle, jt as IText, I as ITextFrame, pr as ITheme, He as IThemeCollection, Hn as IWorkbookIO, Dr as IWorkbookView, rn as IWorksheetView, vi as LOCALES_KIND, k as LicenseManager, Xe as MovableContentRegistry, le as NamedStyleCollection, F as NumberFormat, An as PaintUtils, Ar as PersonCollection, Br as RangeClipboardItem, ir as RectAlignment, _t as Registry, Te as Resource, _ as ResourceCollection, ft as RichArray, Qe as RichArrayKind, fe as RichDataCollection, At as RichDataRegistry, ht as RichRecord, Fe as RichText, m as RichTextKind, Ci as SHEETXL_RESOURCE_KINDS, Sn as SYSTEM_COLOR_CSS_PREFIX, dn as ShapeStyleUtils, we as SimpleFontFace, Oe as SlicerStyleCollection, It as Sort, S as StringCollection, be as StyleCollection, Fi as Table, te as TableStyleCollection, kt as TextRotation, at as TextStacked, Gt as TextUtils, nn as Theme, d as ThemeCollection, n as TransactionConflictError, Kn as TransactionSaveStateManager, a as TransactionStore, Un as TransactionUndoManager, Ge as Tuple, Ii as VERSION, ui as Workbook, gi as WorkbookIO, K as WorkbookOrigin, Wr as WorkbookView, E as Worksheet, fr as builtInStyleNameDisplay, b as createCellRangeCounts, wi as createChart, ze as externalBookClosedName, w as externalBookFileName, y as externalBookLocation, Ee as externalBookOpenName, Ye as findLabel, br as getBuiltInFunctionNames, c as getLanguagePack, vn as getLocaleProfile, Pt as getScriptRuntime, Pi as getScriptingApi, ki as getScriptingDeclarations, Ct as localizeBoolean, ye as localizeErrorLabel, Tn as makeLocaleProfile, Je as normalizeLabel, xe as parseBooleanLocal, De as parseErrorLocal, Ot as parseExternalScope, xr as parseFormulaLiteral, o as pivotBoxOf, ct as pivotCellFormatsOf, Ht as pivotControlsIn, Oi as pivotStylePreviewOf, Et as registerSdkLocales, u as sourceEntryFromPath, zt as withScriptRuntime };