@sheetxl/mcp 0.8.0-beta.14 → 0.8.0-beta.15

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 (160) hide show
  1. package/assets/{DIy1659Yv5-fD69E.js → 9U9XCqqdn-q3i2fj.js} +1 -1
  2. package/assets/{2zIY9Xuml4y8NI05.js → B-MqXm_7luDLwazY.js} +1 -1
  3. package/assets/{DUYoUViqY5U6uQX3.js → B2Ek-DWpZMGJ0V1Z.js} +2 -2
  4. package/assets/{CH9M37mRwnS0t9wM.js → B2udpZ-uIaql3AUh.js} +5 -5
  5. package/assets/{CHHJZPAuM3OjbzF6.js → B4VnJacrzr1x4PHR.js} +4 -4
  6. package/assets/{B5xHa5bjZu5ONrm5.js → B5lHOOQ_rkP4Mi2r.js} +1 -1
  7. package/assets/{DWTpPijG5yeNFR0W.js → B7gUyrfLln3TiyKM.js} +1 -1
  8. package/assets/{a7BoASyT8yQZY9hJ.js → B9US2ZrF93KOjmAx.js} +1 -1
  9. package/assets/{CdF5MxGnISAZ41oQ.js → BBb_3gEGzmEzbTIk.js} +24 -24
  10. package/assets/{33QTHR3r6ZujxFx8.js → BCy1zP97fsiIcvj6.js} +1 -1
  11. package/assets/{CwJyw5Yxpj4PGh14.js → BFXeoFUbuc4IKTz9.js} +1 -1
  12. package/assets/{D94hlZEaHtGHdN_K.js → BFdeov2e_xUQPEY_.js} +6 -6
  13. package/assets/{D3BAmD-1AfFtHdC6.js → BG5kgbDRXMc0re6W.js} +8 -8
  14. package/assets/{UX2ywz3gr7q-MlHr.js → BJxfinOazQqqByc-.js} +1 -1
  15. package/assets/{hRLLK6I6m0uGKWo8.js → BOPsJmq7v7HOKUkO.js} +5 -5
  16. package/assets/{DPazQ_nZv-sXUwO3.js → BPwmBu_aouERJjiW.js} +1 -1
  17. package/assets/{DkFK1iu4vqjLZMja.js → BQMDOjNBMjAx9WiW.js} +1 -1
  18. package/assets/{CBNNl8igIyeHY4St.js → BQbF1RkUH8WyXqSD.js} +1 -1
  19. package/assets/{DpGuA6U12gwyGHEM.js → BRzp6DEIYUgM3NkN.js} +3 -3
  20. package/assets/{W-MzzQHZuRxr8adc.js → BSxTn2BhkEEeF9x_.js} +2 -2
  21. package/assets/{CfiVUfpeONJ3rf31.js → BTQhJQ3e0hsiousD.js} +1 -1
  22. package/assets/{Doqy_uDSQTCv6a6X.js → BZPTaa0WjpoUAbgZ.js} +1 -1
  23. package/assets/{CPDkdp0yI4DwUHGZ.js → BbAmA46MhQSu3ZF_.js} +1 -1
  24. package/assets/{yNiBIhsMP9BCWd67.js → BbcUxIZe3YXywsQR.js} +1 -1
  25. package/assets/{QXKcNTuZqOauSidr.js → BeLr36oL3jmeXFFi.js} +1 -1
  26. package/assets/{9MRZ5Yc2RBgcqZSp.js → Bg95xYj5siqhHVEz.js} +2 -2
  27. package/assets/{DTlvhtB9hvPdbdxu.js → Bh0PNKlrR4VAqnP8.js} +5161 -5154
  28. package/assets/{ZBYHyJs7CQgnnHfR.js → BjqQjxBuoXza8oqg.js} +1 -1
  29. package/assets/{DSSrCrejjpWoszj7.js → BlPubAFi7DY7VrAo.js} +1 -1
  30. package/assets/{eHAVGCUcMAfNjEGt.js → BleMG0hAQgjE8fTa.js} +2 -2
  31. package/assets/{DoIU_ohoCBwTZV9G.js → Bn8D2bebQ2tFfwQt.js} +19 -19
  32. package/assets/{DUUt1z6Y_cpxEpYY.js → BrcQmHcE7Hcr1erJ.js} +1 -1
  33. package/assets/{B9qiPx_BXxo1jgcx.js → BsQZI1vXTRE63Zy-.js} +21 -21
  34. package/assets/{EeSGsbh_r4N-qs4w.js → BtjqpAKczftx91BQ.js} +1 -1
  35. package/assets/{BYtBi8vLoB41QkV8.js → Btys7KwtvV3hz2F6.js} +4 -4
  36. package/assets/{w8YWSMNTTn45ImnB.js → BuUEsifnQALe49uk.js} +1 -1
  37. package/assets/{CULV-2mwmqYYpAjM.js → By-7OWXShMlFFejV.js} +1 -1
  38. package/assets/{PmooYGqWqoTxPExF.js → C0CiMKC3lWK1z9p5.js} +2 -2
  39. package/assets/{aqguaobnu61szXWM.js → C2OrZ8LZ-TI6eYG0.js} +1 -1
  40. package/assets/{Dl87mJoXDkCkzBi7.js → C4z2IilWTuu2TWXw.js} +2 -2
  41. package/assets/{DBFXsbIHDxbMBrzV.js → C7ONfuYIWRmDu_vs.js} +1 -1
  42. package/assets/{ByziR0Anm39Bw0Bc.js → C7Z1li2XjWi6bkrp.js} +3 -3
  43. package/assets/{C1w8NQeox7_92swz.js → C97xDe_wBbLZh_uW.js} +1 -1
  44. package/assets/{BOcWUnxWSG1d5Ljc.js → CGBGyaCGdlZFQYK0.js} +1 -1
  45. package/assets/{DCHsM8bfVisYJFTT.js → CJ5WQnaoCsdr5gf4.js} +1 -1
  46. package/assets/{GnXTzeDYWWeEf5yV.js → CMK6tIDVqYYvK4GZ.js} +1 -1
  47. package/assets/{DK0VM9-qrEXBm8Ud.js → CMWAsUQ66V8fYrME.js} +2 -2
  48. package/assets/{CDGeuGB9CBXeCIm6.js → CNz3LdmvsOEJoLO9.js} +1 -1
  49. package/assets/{DZZ5R3msiytVNCqK.js → CWVWdbY1B1-WLl9k.js} +55 -55
  50. package/assets/{CeDqeFLuUfN8UIGx.js → CWl6oHiJxkNKRixk.js} +1 -1
  51. package/assets/{ddJqSu7gXUkXjGxZ.js → CXHslDxkWCuEcCSQ.js} +1 -1
  52. package/assets/{B6BP5l2qmeZhqVV7.js → CZTSZL3T_f-vSXqM.js} +2 -2
  53. package/assets/{DuZ6DXQGttY3Lrhd.js → CduNzsdbTigxH-ZK.js} +124 -124
  54. package/assets/{BFwNQZVRnbNt-gRJ.js → CecTe22WURiXbVdY.js} +1 -1
  55. package/assets/{CVFTQ0OwsUt03r4o.js → Cf2dcwmmmf13Rywg.js} +1 -1
  56. package/assets/{OU7gC5JF-lyDOOid.js → Cf9LpgZz-W5blzy_.js} +2 -2
  57. package/assets/{ThqyayHHaBxzfaAt.js → Cfhv_Yw_LT8VzAMt.js} +1 -1
  58. package/assets/{CjwzOAnab_dpAqiG.js → Cg51xaLRUkVOMdCZ.js} +1 -1
  59. package/assets/{B9w1dNK8pNq-Z1P3.js → ChWpsFGl-BYOnX_A.js} +1 -1
  60. package/assets/{CcLPa6zB5PH3OG2O.js → ClNQN3vEg5b5qUDp.js} +8 -8
  61. package/assets/{BiAEoWSl8c6jcUnS.js → Crt2kLdGIlBHANgg.js} +1 -1
  62. package/assets/{CMTDUipnLiOj5pbe.js → CudNpUD78SrtJIiy.js} +2 -2
  63. package/assets/{BmxgDCZk_aMDms4i.js → CvngwB17_ve4W49b.js} +27 -27
  64. package/assets/{Dfd7kvLIFNqu-m-r.js → CwPBmcY6xSP8dNlh.js} +11 -11
  65. package/assets/{PRSerWiAGYu8MVnd.js → CxjchwpiqxPM1XKd.js} +54 -54
  66. package/assets/{CtpcYuBFU6fxsUhs.js → D-ffk16w8c5w0mxI.js} +1 -1
  67. package/assets/{D81iH5MJJfq2t9FP.js → D0CHDsemn0S31ltt.js} +1 -1
  68. package/assets/{DUzaW_op2vBTwOOI.js → D7oUtYjetuykGhQ5.js} +1 -1
  69. package/assets/{DkPXpv81Y5teMd-R.js → D8J14MLlN2HRXdXB.js} +1 -1
  70. package/assets/{BW8XjynUqlfvuQUV.js → DA_ar3QKLKtJ9fJD.js} +1 -1
  71. package/assets/{CXM1IYmE-TDInPwr.js → DB-tkqI6wFXDKEfB.js} +1 -1
  72. package/assets/{C55MTJ_5qW94RElE.js → DD8HNAUFroTCuD-b.js} +96 -96
  73. package/assets/{CpOhY88x6AgVxvTz.js → DDnwKPJSznyfYDZS.js} +2 -2
  74. package/assets/{cv7k-VAIJtYeL9k4.js → DEW2GxfGYqVFvrfg.js} +1 -1
  75. package/assets/{CgjR_TiVOcuxg5tO.js → DH7sGHzxUqIQkDnd.js} +1 -1
  76. package/assets/{BMnNvUCJu35tT_aO.js → DJiLWtmPR2OQNjzi.js} +1 -1
  77. package/assets/{BOF64A2D2KKcv_fo.js → DKLm4nWzynGw1Kr9.js} +1 -1
  78. package/assets/{B_-VPqfsse8AlCTm.js → DPCKMM7sgWbrtB8z.js} +1 -1
  79. package/assets/{B-jE7tAMA559MtNt.js → DTfl-4Iboi6TQU5m.js} +3 -3
  80. package/assets/{Df2IAW-O7Gwl7V1l.js → DVchxwp6w6lu2Ihu.js} +2 -2
  81. package/assets/{COFze3jkZDQRSij9.js → DaoSWy3EFlqpZaLr.js} +196 -196
  82. package/assets/{ZTEO4JX22YIOkrJg.js → DcWTBOi_iBFc6U4J.js} +3 -3
  83. package/assets/Dht2mcOSyYlPY32b.js +14 -0
  84. package/assets/{9dbZwzIWefGss7is.js → Diee6f_qAmcZBd2_.js} +1 -1
  85. package/assets/{CwdOInoJwCxXnhog.js → DkibD_CEVePaoj_y.js} +2 -2
  86. package/assets/{DvD_K4M5HgJ4uJ8L.js → DlBdhv6NHgrNp5Yo.js} +2 -2
  87. package/assets/{BWsXOU_jh_cA8m8I.js → DoILAmhKUOlKWRVw.js} +1 -1
  88. package/assets/{cdIvC9t9tYtVn4nc.js → DpdHDTFOeuzDVNEe.js} +46 -46
  89. package/assets/{C-5LlJ5qhC7Ef0gV.js → DsCI_ZYm_jDjXF3J.js} +14 -14
  90. package/assets/{Du_JrYiYGJo5_B9H.js → DvUUArnZwoYOKOuk.js} +1 -1
  91. package/assets/{BXC6616BWEWNZ2-D.js → DwLZpYUp85UHBE3H.js} +1 -1
  92. package/assets/{BNfBq8Eic3Cl-f6A.js → DwWngYJTgC0KLbih.js} +1 -1
  93. package/assets/{C1rIlmARlinuie5E.js → Dz8UUJ7Xc2oN5PBG.js} +1 -1
  94. package/assets/{Dg7xy50qHwqkYd4g.js → FS9NbEKgQvz5wqvZ.js} +1 -1
  95. package/assets/{D2w3KjYuONW1G1kX.js → F_f0jJqM5MrXGbwC.js} +3 -3
  96. package/assets/{TzsPqmpG77I4ewVt.js → FzNG48GE_wso6RII.js} +1 -1
  97. package/assets/{BwisWvPpXRhyIP4O.js → JO3zH9hupFSV6vj2.js} +1 -1
  98. package/assets/{C-CNmTrzNS-ZlQ8j.js → LEJp05fjmflKgyqF.js} +148 -148
  99. package/assets/{Cm3Q_-DDdnVHRBxr.js → LyLlBk--VJD2V-f8.js} +4 -4
  100. package/assets/{DnmjS548g7nY6EUS.js → OVRdpPUzR0-ueTxE.js} +1 -1
  101. package/assets/{mcFLzsOH35mvmd3C.js → PpFbmF0DFeUdpb9I.js} +1 -1
  102. package/assets/{B66aeGYrHLbGpuN9.js → S16s2h9qoYVBlVEa.js} +320 -320
  103. package/assets/{BkBCkgPNrFR5N9fo.js → SHZe9VOU1prGs1F9.js} +1 -1
  104. package/assets/{DihigEGfNCLR8UPN.js → U1XXGEPuuqIAzYl1.js} +1 -1
  105. package/assets/{zu-72oKE_gCkrozc.js → ZuYfVKlp41IJnrOS.js} +1 -1
  106. package/assets/{8vRAQlvTcvMLeio0.js → _d5XJ7dn1CKKYrep.js} +2 -2
  107. package/assets/{BoTScfjgygCozDVi.js → _fUXIv6nKvgZkhxn.js} +2 -2
  108. package/assets/{C2Rgsb69SnMOohGt.js → fDMpDhXp36CatF-G.js} +1 -1
  109. package/assets/{B9QlqO6n3MCBsvoj.js → hulrR0PldUxMJm_F.js} +3 -3
  110. package/assets/{B-1_xSqUFCJ6jNjn.js → iujMYIEPx_v3sdPf.js} +15 -15
  111. package/assets/{CutEBbZl8oFbTlXZ.js → jPUOH4FHF4b-rapv.js} +1 -1
  112. package/assets/{BDZ1FGc1zFqO1nK7.js → jadLBUNBVR9mbZ35.js} +149 -149
  113. package/assets/{D2_T0KSaye0ncjQa.js → jiEe5eKV3BFPBWfi.js} +67 -67
  114. package/assets/{KpCEdfpsHnfkyqjx.js → oxjm7Yr7u7MeaO5P.js} +1 -1
  115. package/assets/{B6b9ytNrHR-ijcOa.js → vZZi_iKYHm05gAye.js} +1 -1
  116. package/assets/{st-UQngeBG4hwKoy.js → wfVh0olISLRWdv9Q.js} +1 -1
  117. package/assets/{HKLw8b2xTdu5c1w5.js → xmTQJJVyCrcq77WR.js} +1 -1
  118. package/assets/{DZRp3_yqPS6Lshho.js → xnhBSX6lAcmBM65y.js} +1 -1
  119. package/index.js +29 -29
  120. package/lib.js +1 -1
  121. package/licenses/dependencies.txt +57 -57
  122. package/package.json +8 -8
  123. package/screenshot-page/assets/B2MJPcMcsuv6FekC.js +1 -0
  124. package/screenshot-page/assets/{BCl5buf87xUgIfEB.js → BSdFVGZNhU6YHbMI.js} +1 -1
  125. package/screenshot-page/assets/{Cv8FG9PPBkkPw86e.js → BTMW3ukmc44U2fy7.js} +1 -1
  126. package/screenshot-page/assets/{Miyn0clMq0rovRIo.js → BTboCICZ-951XWsi.js} +1 -1
  127. package/screenshot-page/assets/B_W2QroTKADz3ABp.js +2 -0
  128. package/screenshot-page/assets/{Bor_tayB4yBfNOH5.js → Bj-vfAT28PK-tWWa.js} +2 -2
  129. package/screenshot-page/assets/{CvL9XK3Ht1mP-rGz.js → BnoVwUBEor8NgQNs.js} +2 -2
  130. package/screenshot-page/assets/{DzZRUd0p22CBa27b.js → BzQ5GyiXq8gTz-H-.js} +1 -1
  131. package/screenshot-page/assets/CwqNb7JYzC03lCj0.js +1 -0
  132. package/screenshot-page/assets/CzhH7lTYQrYGHct6.js +1 -0
  133. package/screenshot-page/assets/{CnZJ44ncMxZ4ivcB.js → D66vSE1ConAuENmB.js} +7 -7
  134. package/screenshot-page/assets/DCVUZ_ayOXFwV2d_.js +3 -0
  135. package/screenshot-page/assets/DFE-fKq5NV7_O8V6.js +1 -0
  136. package/screenshot-page/assets/{zHHZFbk5RXnrxbOc.js → DK_QSosKV62NDcuT.js} +9 -9
  137. package/screenshot-page/assets/{Bz2U7weS0spa8Xbh.js → DTFRGj188QuLKEXw.js} +1 -1
  138. package/screenshot-page/assets/{DDpAoGAPzo1c4vl5.js → DXQLzGmxoyN3kfQi.js} +3 -3
  139. package/screenshot-page/assets/DXWWyJlMSWgDFxs1.js +10 -0
  140. package/screenshot-page/assets/{DqM1wwsmN1J4MXMm.js → Dsx0NUmGIxS7SvZ8.js} +1 -1
  141. package/screenshot-page/assets/Q5EKmzoJZCE81Om-.js +2 -0
  142. package/screenshot-page/assets/{BYRwTzX1q407lHUS.js → TfhknTx8vxQkw4zV.js} +2 -2
  143. package/screenshot-page/assets/VvqAh6BWzaD5OUPF.js +1 -0
  144. package/screenshot-page/assets/{CE0MnsfMjqV2ICzk.js → hp_-JA1DMK4Yoztn.js} +12 -12
  145. package/screenshot-page/assets/{BRqSWCr2mTVNFquQ.js → l32n8O_A78Qqduv3.js} +1 -1
  146. package/screenshot-page/assets/sHBomL5R4-_px8rD.js +1 -0
  147. package/screenshot-page/assets/skRJ2qjA7kcmnOsh.js +39 -0
  148. package/screenshot-page/index.html +3 -3
  149. package/assets/Cfvhcua4c6onouhP.js +0 -14
  150. package/screenshot-page/assets/04d8koPx6lzeMYRQ.js +0 -39
  151. package/screenshot-page/assets/Bwql3QifB2cv7Mqp.js +0 -3
  152. package/screenshot-page/assets/CFOaI8g7pJuPzsyk.js +0 -1
  153. package/screenshot-page/assets/DUJzubL4qqOyizfu.js +0 -1
  154. package/screenshot-page/assets/DWiI5I3RtoKvVT66.js +0 -1
  155. package/screenshot-page/assets/D_H2dlsQ8PJ0r1WD.js +0 -10
  156. package/screenshot-page/assets/DsL71n5SxCVjL6Ho.js +0 -2
  157. package/screenshot-page/assets/IfF7Tv-nhz6Ikpn0.js +0 -1
  158. package/screenshot-page/assets/Rm5Sf5E6t8bk_Y3r.js +0 -1
  159. package/screenshot-page/assets/b3AbgxQkoaCiBi15.js +0 -1
  160. package/screenshot-page/assets/qm3VY0bH7F7EgSdi.js +0 -2
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.14
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.15
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { Q as t, St as e, Z as n, ht as r, ot as o, r as s, u as l } from "./DkFK1iu4vqjLZMja.js";
8
- import { a as i, r as a } from "./8vRAQlvTcvMLeio0.js";
9
- import { B as c, M as d, _ as h, at as u, d as _, in as f, k as g } from "./B-1_xSqUFCJ6jNjn.js";
10
- import { a as p, d as m, m as S, p as w, t as E, u as I } from "./CBNNl8igIyeHY4St.js";
11
- import { $ as y, $i as v, $n as x, Ai as C, An as b, Ar as A, At as R, Bi as k, Bn as N, Bt as M, Dr as F, Et as D, F as T, Fn as G, Ft as B, G as V, Gt as O, Ii as P, In as z, Ir as L, J as $, Jn as H, Ki as j, Kt as K, L as W, Li as q, Ln as X, M as U, Mi as J, Mn as Q, Mr as Y, Ni as Z, Nn as tt, Nr as et, Nt as nt, Oi as rt, P as ot, Pr as st, Pt as lt, Q as it, Qi as at, Qr as ct, S as dt, Si as ht, Sr as ut, Tr as _t, U as ft, Ui as gt, Ur as pt, Ut as mt, Vi as St, W as wt, Wn as Et, X as It, Xr as yt, Y as vt, Yi as xt, Yn as Ct, Yt as bt, Zn as At, Zt as Rt, _ as kt, _r as Nt, a as Mt, bn as Ft, br as Dt, c as Tt, ci as Gt, cr as Bt, dn as Vt, dt as Ot, ea as Pt, ei as zt, er as Lt, et as $t, g as Ht, gr as jt, gt as Kt, h as Wt, hi as qt, hr as Xt, i as Ut, ia as Jt, in as Qt, jn as Yt, jr as Zt, la as te, li as ee, ln as ne, lr as re, lt as oe, ma as se, mi as le, na as ie, ni as ae, nn as ce, nr as de, p as he, pa as ue, pi as _e, q as fe, qn as ge, r as pe, ra as me, rr as Se, si as we, ta as Ee, tn as Ie, u as ye, ur as ve, va as xe, vi as Ce, vn as be, vr as Ae, w as Re, wr as ke, x as Ne, xi as Me, xn as Fe, xr as De, ya as Te, yi as Ge, yn as Be, zn as Ve } from "./DTlvhtB9hvPdbdxu.js";
12
- import { C as Oe, E as Pe, _ as ze, d as Le, f as $e, h as He, l as je, r as Ke, v as We, x as qe } from "./C-CNmTrzNS-ZlQ8j.js";
13
- import { r as Xe } from "./DZZ5R3msiytVNCqK.js";
14
- import { _ as Ue, a as Je, c as Qe, d as Ye, f as Ze, g as tn, h as en, i as nn, l as rn, m as on, n as sn, o as ln, p as an, r as cn, s as dn, u as hn } from "./DoIU_ohoCBwTZV9G.js";
7
+ import { Q as t, St as e, Z as n, ht as r, ot as o, r as s, u as l } from "./BQMDOjNBMjAx9WiW.js";
8
+ import { a as i, r as a } from "./_d5XJ7dn1CKKYrep.js";
9
+ import { B as c, M as d, _ as h, at as u, d as _, in as f, k as g } from "./iujMYIEPx_v3sdPf.js";
10
+ import { a as p, d as m, m as S, p as w, t as E, u as I } from "./BQbF1RkUH8WyXqSD.js";
11
+ import { $ as y, $i as v, $n as x, Ai as C, An as b, Ar as A, Bi as R, Bn as k, C as N, Ct as M, Dr as F, Et as D, Fn as T, Gt as G, H as B, Ht as V, I as O, Ii as P, In as z, Ir as L, J as $, Jn as H, Jt as j, K, Ki as W, Li as q, Ln as X, Mi as U, Mn as J, Mr as Q, Mt as Y, N as Z, Ni as tt, Nn as et, Nr as nt, Nt as rt, Oi as ot, P as st, Pr as lt, Pt as it, Q as at, Qi as ct, Qr as dt, Si as ht, Sr as ut, Tr as _t, U as ft, Ui as gt, Ur as pt, Vi as mt, W as St, Wn as wt, Wt as Et, Xr as It, Xt as yt, Y as vt, Yi as xt, Yn as Ct, Z as bt, Zn as At, _ as Rt, _r as kt, a as Nt, bn as Mt, br as Ft, c as Dt, ci as Tt, cn as Gt, cr as Bt, ea as Vt, ei as Ot, en as Pt, er as zt, ft as Lt, g as $t, gr as Ht, h as jt, hi as Kt, hr as Wt, i as qt, ia as Xt, j as Ut, jn as Jt, jr as Qt, kt as Yt, la as Zt, li as te, lr as ee, ma as ne, mi as re, mt as oe, na as se, ni as le, nr as ie, p as ae, pa as ce, pi as de, q as he, qn as ue, r as _e, ra as fe, rn as ge, rr as pe, si as me, ta as Se, tn as we, u as Ee, un as Ie, ur as ye, va as ve, vi as xe, vn as Ce, vr as be, wr as Ae, x as Re, xi as ke, xn as Ne, xr as Me, ya as Fe, yi as De, yn as Te, yt as Ge, zn as Be, zt as Ve } from "./Bh0PNKlrR4VAqnP8.js";
12
+ import { C as Oe, E as Pe, _ as ze, d as Le, f as $e, h as He, l as je, r as Ke, v as We, x as qe } from "./LEJp05fjmflKgyqF.js";
13
+ import { r as Xe } from "./CWVWdbY1B1-WLl9k.js";
14
+ import { _ as Ue, a as Je, c as Qe, d as Ye, f as Ze, g as tn, h as en, i as nn, l as rn, m as on, n as sn, o as ln, p as an, r as cn, s as dn, u as hn } from "./Bn8D2bebQ2tFfwQt.js";
15
15
  var un = class e {
16
16
  constructor(e, n) {
17
17
  this._grid = null, this._value = e, this._axis = n?.axis ?? t.Row, this._maxCoords = n?.maxCoords;
@@ -19,7 +19,7 @@ var un = class e {
19
19
  _materialize() {
20
20
  let t = this._grid;
21
21
  if (!t) {
22
- t = new ot({
22
+ t = new Z({
23
23
  axis: this._axis,
24
24
  maxCoords: this._maxCoords
25
25
  });
@@ -75,13 +75,13 @@ var un = class e {
75
75
  if (n) return n.entries(e);
76
76
  if (e?.processRowSkip || e?.processColumnSkip) return this._materialize().entries(e);
77
77
  const r = this._value;
78
- if (null == r) return k;
78
+ if (null == r) return R;
79
79
  const o = e?.bounds;
80
- if (o && ((o.colStart ?? 0) > 0 || (o.rowStart ?? 0) > 0 || (o.colEnd ?? 0) < 0 || (o.rowEnd ?? 0) < 0)) return k;
81
- const s = e?.axis ? e.axis === t.Column : this._axis === t.Column, l = e ? Xt(e.reuseResult) : void 0, i = this;
80
+ if (o && ((o.colStart ?? 0) > 0 || (o.rowStart ?? 0) > 0 || (o.colEnd ?? 0) < 0 || (o.rowEnd ?? 0) < 0)) return R;
81
+ const s = e?.axis ? e.axis === t.Column : this._axis === t.Column, l = e ? Wt(e.reuseResult) : void 0, i = this;
82
82
  let a = !1, c = null;
83
83
  return {
84
- next: (t) => c ? c.next(t) : t ? (c = i._materialize().entries(e), c.next(t)) : a ? b : (a = !0, ye(0, 0, r, s, l)),
84
+ next: (t) => c ? c.next(t) : t ? (c = i._materialize().entries(e), c.next(t)) : a ? b : (a = !0, Ee(0, 0, r, s, l)),
85
85
  [Symbol.iterator]() {
86
86
  return this;
87
87
  },
@@ -262,7 +262,7 @@ var un = class e {
262
262
  return n.isLambdaCallable = !0, n.checkArity = (n) => n >= e && n <= t.length, n.paramCount = t.length, n;
263
263
  }
264
264
  _function() {
265
- return this._asFunction ??= rt(this);
265
+ return this._asFunction ??= ot(this);
266
266
  }
267
267
  execute(...t) {
268
268
  return this._function().execute(...t);
@@ -300,7 +300,7 @@ var un = class e {
300
300
  try {
301
301
  return t.execute(...e);
302
302
  } catch (t) {
303
- if (Be(t)) throw t;
303
+ if (Te(t)) throw t;
304
304
  return m.isError(t) ? t : new m.Value(t?.message, { cause: t });
305
305
  }
306
306
  };
@@ -341,17 +341,17 @@ var un = class e {
341
341
  const s = "display" === o, l = this._compiled;
342
342
  if (l.error && !l.ast) return l.error.input;
343
343
  let i = void 0 !== r ? qe(l.ast, r) : l.getTokens();
344
- i = Z(i, l.symbols, !s, s, s ? {
344
+ i = tt(i, l.symbols, !s, s, s ? {
345
345
  scope: this._gridId,
346
346
  rowIndex: t,
347
347
  colIndex: e
348
348
  } : null);
349
- const a = s ? this._displayLocale() : oe;
350
- return n ? Y(i, this._getEntireCoords?.(), a) : yt(i, this._getEntireCoords?.(), t, e, a);
349
+ const a = s ? this._displayLocale() : Lt;
350
+ return n ? Q(i, this._getEntireCoords?.(), a) : It(i, this._getEntireCoords?.(), t, e, a);
351
351
  }
352
352
  _displayLocale() {
353
353
  const t = this._context.getRuntime().getLocaleProfile();
354
- return R(B(t.decimal));
354
+ return Yt(it(t.decimal));
355
355
  }
356
356
  getRecord() {
357
357
  const t = this._record;
@@ -395,7 +395,7 @@ var un = class e {
395
395
  $rowEnd: e.$rowEnd,
396
396
  scope: t.scope
397
397
  };
398
- } else n.node.type === me.Cell ? i = { ...o[n.value] } : n.op === me.Named ? i = { nameId: n.node.value.nameId } : n.op === me.TableReference && (i = { table: { ...n.node.value } });
398
+ } else n.node.type === fe.Cell ? i = { ...o[n.value] } : n.op === fe.Named ? i = { nameId: n.node.value.nameId } : n.op === fe.TableReference && (i = { table: { ...n.node.value } });
399
399
  s[t] = i;
400
400
  }
401
401
  return s;
@@ -407,7 +407,7 @@ var un = class e {
407
407
  getTokensAt(t, e, n) {
408
408
  const r = this._compiled;
409
409
  let o = void 0 !== n ? qe(r.ast, n) : r.getTokens();
410
- return o = Z(o, r.symbols, !1, !0), Lt(o, t, e);
410
+ return o = tt(o, r.symbols, !1, !0), zt(o, t, e);
411
411
  }
412
412
  getError() {
413
413
  return this._compiled.error ?? null;
@@ -458,7 +458,7 @@ var un = class e {
458
458
  const n = this._compiled.getTokens(), r = e._compiled.getTokens();
459
459
  if (n.length !== r.length) return !1;
460
460
  const o = this._context.getEntireCoords();
461
- return Y(n, o) === Y(r, o);
461
+ return Q(n, o) === Q(r, o);
462
462
  }
463
463
  getReferences(t, e) {
464
464
  const n = this._compiled, o = n.referenceIndices, s = o.length;
@@ -479,26 +479,26 @@ var un = class e {
479
479
  $rowEnd: e.$rowEnd,
480
480
  scope: t.scope
481
481
  };
482
- } else if (r.node.type === me.Cell) {
482
+ } else if (r.node.type === fe.Cell) {
483
483
  const t = i[r.value];
484
484
  a[n] = { ...t };
485
- } else if (r.op === me.Named) {
486
- const t = r.node.value.nameId, e = this._compiled.symbols?.resolve(Pt.NamedFormula, t)?.toString() ?? t;
485
+ } else if (r.op === fe.Named) {
486
+ const t = r.node.value.nameId, e = this._compiled.symbols?.resolve(Vt.NamedFormula, t)?.toString() ?? t;
487
487
  a[n] = { nameId: e };
488
- } else if (r.op === me.TableReference) {
488
+ } else if (r.op === fe.TableReference) {
489
489
  const o = r.node.value;
490
490
  let s = this._resolveStructuredRef(o, t, e);
491
491
  !s || m.isError(s) ? a[n] = null : a[n] = {
492
492
  ...s,
493
493
  tableId: o.tableId
494
494
  };
495
- } else r.op === me.Error && (a[n] = null);
495
+ } else r.op === fe.Error && (a[n] = null);
496
496
  }
497
497
  return a;
498
498
  }
499
499
  getReferencesAt(t, e) {
500
500
  const n = this.getReferences(t, e);
501
- return 0 === n.length ? r.EmptyArray : Gt(n, t, e);
501
+ return 0 === n.length ? r.EmptyArray : Tt(n, t, e);
502
502
  }
503
503
  getFormatReferences() {
504
504
  const t = this._formatReferences;
@@ -528,7 +528,7 @@ var un = class e {
528
528
  e < 0 && (e = i.length + e);
529
529
  const c = i[e];
530
530
  if (void 0 === c) throw new Error(`Invalid reference index: ${e}`);
531
- const d = a[c], h = d.node, u = h.inputs ?? r.EmptyArray, _ = d.op === me.Named, f = 2 === u.length;
531
+ const d = a[c], h = d.node, u = h.inputs ?? r.EmptyArray, _ = d.op === fe.Named, f = 2 === u.length;
532
532
  let g, p, S = !1;
533
533
  n && m.isError(n) && (n = null), n && "nameId" in n && !_ && (n = null);
534
534
  const w = n && "nameId" in n ? null : n, E = !!w && void 0 !== w.colIndex;
@@ -558,7 +558,7 @@ var un = class e {
558
558
  let y = -1, v = -1, x = -1, C = -1;
559
559
  if (f) y = u[0].evalIndex, v = u[1].evalIndex;
560
560
  else if ("cell" === h.type) y = h.evalIndex;
561
- else if (d.op === me.TableReference) x = h.evalIndex;
561
+ else if (d.op === fe.TableReference) x = h.evalIndex;
562
562
  else {
563
563
  if (!_) throw new Error(`Invalidate reference index: ${e}`);
564
564
  C = h.evalIndex;
@@ -568,31 +568,31 @@ var un = class e {
568
568
  const e = this._compiled.symbols;
569
569
  for (let n = 0; n < t.length; n++) {
570
570
  const r = (t[n]?.value)?.scope;
571
- if (r) return e && !e.resolve(Pt.Sheet, r) ? null : r;
571
+ if (r) return e && !e.resolve(Vt.Sheet, r) ? null : r;
572
572
  }
573
573
  return null;
574
- }, A = h, R = this._compiled.ast, k = Ee(R, (t) => {
574
+ }, A = h, R = this._compiled.ast, k = Se(R, (t) => {
575
575
  if (!t || !t.isReference) return;
576
- if (I && t === A) return O(g);
576
+ if (I && t === A) return Et(g);
577
577
  const e = t.type;
578
- if (-1 !== C && t.evalIndex === C && e === me.Named) {
579
- if (!n) return Ae();
578
+ if (-1 !== C && t.evalIndex === C && e === fe.Named) {
579
+ if (!n) return be();
580
580
  if (n && "nameId" in n) {
581
- const e = n, r = this._compiled.symbols?.bind(Pt.NamedFormula, e.nameId) ?? e.nameId, o = { ...t };
581
+ const e = n, r = this._compiled.symbols?.bind(Vt.NamedFormula, e.nameId) ?? e.nameId, o = { ...t };
582
582
  return o.value = {
583
583
  ...t.value,
584
584
  ...e,
585
585
  nameId: r
586
586
  }, o;
587
587
  }
588
- return S ? re(":", O(g), O(p), !0) : O(g);
588
+ return S ? ee(":", Et(g), Et(p), !0) : Et(g);
589
589
  }
590
- if (-1 !== x && t.evalIndex === x && e === me.TableReference) return n ? S ? re(":", O(g), O(p), !0) : O(g) : Ae();
590
+ if (-1 !== x && t.evalIndex === x && e === fe.TableReference) return n ? S ? ee(":", Et(g), Et(p), !0) : Et(g) : be();
591
591
  if (!n && Le.includes(t.value)) {
592
592
  const e = t.inputs ?? r.EmptyArray, n = e[0], o = e[1];
593
593
  let s = n.evalIndex === y, l = o.evalIndex === v;
594
594
  if (s || l) {
595
- const e = Ae(void 0, void 0, b(n, o));
595
+ const e = be(void 0, void 0, b(n, o));
596
596
  return e.evalIndex = t.evalIndex, e;
597
597
  }
598
598
  }
@@ -603,8 +603,8 @@ var un = class e {
603
603
  if (n) if (f === S) {
604
604
  let e = l ? g : p;
605
605
  s = { ...t }, s.value = e, s.image = null;
606
- } else s = re(":", O(g), O(p), !0);
607
- else s = Ae(void 0, void 0, b(t)), s.evalIndex = t.evalIndex;
606
+ } else s = ee(":", Et(g), Et(p), !0);
607
+ else s = be(void 0, void 0, b(t)), s.evalIndex = t.evalIndex;
608
608
  return s;
609
609
  }
610
610
  });
@@ -613,9 +613,9 @@ var un = class e {
613
613
  return new t(N, this._context, this._calcScope, this._gridId, this._getEntireCoords, this._resolvers);
614
614
  }
615
615
  reanchorReferences(e, n) {
616
- const r = this._compiled, o = this._gridId, s = this._compiled.symbols.bind(Pt.Sheet, e), l = r.transform((t, e) => {
616
+ const r = this._compiled, o = this._gridId, s = this._compiled.symbols.bind(Vt.Sheet, e), l = r.transform((t, e) => {
617
617
  if (!t || !t.isReference) return;
618
- if (t.type !== me.Cell) return;
618
+ if (t.type !== fe.Cell) return;
619
619
  if (ze(e) && e.inputs?.[0] !== t) return;
620
620
  let r;
621
621
  const l = t.value.scope;
@@ -627,7 +627,7 @@ var un = class e {
627
627
  if (e === n) return this;
628
628
  const r = this._compiled, o = r.transform((t, r) => {
629
629
  if (!t || !t.isReference) return;
630
- if (t.type !== me.Cell) return;
630
+ if (t.type !== fe.Cell) return;
631
631
  if (ze(r) && r.inputs?.[0] !== t) return;
632
632
  if (t.value.scope !== e) return;
633
633
  const o = { ...t };
@@ -637,7 +637,7 @@ var un = class e {
637
637
  }
638
638
  replaceTableReferences(e, n) {
639
639
  const r = this._compiled, o = r.transform((t) => {
640
- if (t?.type !== me.TableReference) return;
640
+ if (t?.type !== fe.TableReference) return;
641
641
  const r = t.value;
642
642
  if ("object" != typeof r || r?.tableId !== e) return;
643
643
  const o = n(r);
@@ -650,7 +650,7 @@ var un = class e {
650
650
  if (o.activeNames.has(r)) return m.BuiltIn.Ref;
651
651
  const s = this._resolvers?.getNamedFormulaBlock?.(r);
652
652
  if (!s) {
653
- const t = this._compiled, e = t.symbols?.resolve(Pt.NamedFormula, r), n = e ? e.toString() : r, o = t.getFunction?.(n) ?? null;
653
+ const t = this._compiled, e = t.symbols?.resolve(Vt.NamedFormula, r), n = e ? e.toString() : r, o = t.getFunction?.(n) ?? null;
654
654
  return o ? new mn(o) : m.BuiltIn.Name;
655
655
  }
656
656
  const l = o.gridId, i = o.rowIndex, a = o.colIndex;
@@ -690,15 +690,15 @@ var un = class e {
690
690
  f[r.index] = t;
691
691
  continue;
692
692
  }
693
- if (o === me.Named) {
693
+ if (o === fe.Named) {
694
694
  f[r.index] = this._resolveNamedPrecedents(r.node.value, t, e);
695
695
  continue;
696
696
  }
697
- if (o === me.Error) {
698
- f[r.index] = Tt(r.node.value);
697
+ if (o === fe.Error) {
698
+ f[r.index] = Dt(r.node.value);
699
699
  continue;
700
700
  }
701
- if (o === me.TableReference) {
701
+ if (o === fe.TableReference) {
702
702
  const n = r.node.value;
703
703
  let o;
704
704
  n && (o = this._resolveStructuredRef(n, t, e)), o || (o = m.BuiltIn.Ref), f[r.index] = o;
@@ -725,13 +725,13 @@ var un = class e {
725
725
  else {
726
726
  if (" " === o) {
727
727
  const t = l.scope ? a.scope ? null : l.scope : a.scope;
728
- i = t && this._gridId && t !== this._gridId ? m.BuiltIn.Value : wt(l, a);
729
- } else if (":" === o || ".:." === o || ":." === o || ".:" === o) i = xe(l, a);
728
+ i = t && this._gridId && t !== this._gridId ? m.BuiltIn.Value : ft(l, a);
729
+ } else if (":" === o || ".:." === o || ":." === o || ".:" === o) i = ve(l, a);
730
730
  else if ("," === o) {
731
731
  const t = s.length;
732
732
  for (let e = 0; e < t; e++) {
733
733
  const t = f[s[e]];
734
- void 0 === t || Array.isArray(t) || m.isError(t) || (i = i ? xe(i, t) : t);
734
+ void 0 === t || Array.isArray(t) || m.isError(t) || (i = i ? ve(i, t) : t);
735
735
  }
736
736
  }
737
737
  f[r.index] = i ?? m.BuiltIn.Null;
@@ -758,7 +758,7 @@ var un = class e {
758
758
  const s = e.op;
759
759
  let h, u = null;
760
760
  if (s) {
761
- if (s === me.Error) h = Tt(e.node.value);
761
+ if (s === fe.Error) h = Dt(e.node.value);
762
762
  else if (":" === s || ".:." === s || ":." === s || ".:" === s) {
763
763
  const t = e.inputs;
764
764
  if (t && 2 === t.length) {
@@ -787,7 +787,7 @@ var un = class e {
787
787
  let s = this._compiled;
788
788
  if (void 0 !== n) {
789
789
  let r;
790
- if (Ee(s.ast, (t) => {
790
+ if (Se(s.ast, (t) => {
791
791
  t.evalIndex === n && (r = t);
792
792
  }), !r) throw new Error(`Invalid evalIndex: ${n}`);
793
793
  if (s.bindings.length > 0 && !s.error) {
@@ -804,13 +804,13 @@ var un = class e {
804
804
  const a = s.referencesExecute, c = s.referencesRelative, d = s.referencesAbsolute, h = a.length;
805
805
  for (let n = 0; n < h; n++) {
806
806
  const r = a[n], s = r.op, i = r.node;
807
- if (s) if (s === me.Named) if (r.node.deferredResolve) l[r.node.evalIndex] = null;
807
+ if (s) if (s === fe.Named) if (r.node.deferredResolve) l[r.node.evalIndex] = null;
808
808
  else {
809
809
  const n = r.node.value;
810
810
  l[r.node.evalIndex] = this._evaluateNamed(n, t, e);
811
811
  }
812
- else if (s === me.Error) l[i.evalIndex] = Tt(r.node.value);
813
- else if (s === me.TableReference) {
812
+ else if (s === fe.Error) l[i.evalIndex] = Dt(r.node.value);
813
+ else if (s === fe.TableReference) {
814
814
  const n = r.node.value;
815
815
  let s;
816
816
  s = n ? this._resolveStructuredRef(n, t, e) : m.BuiltIn.Ref, m.isError(s) || void 0 === s?.colStart ? l[i.evalIndex] = s ?? m.BuiltIn.Ref : l[i.evalIndex] = o.getReference(s);
@@ -826,10 +826,10 @@ var un = class e {
826
826
  const o = this._compiled, s = o.ast;
827
827
  if (!s || !s.isReference) return this;
828
828
  if ("cell" === s.type) return this;
829
- if (s.type === me.Error) return this;
829
+ if (s.type === fe.Error) return this;
830
830
  if ("@" === s.value) return this;
831
831
  if (!r) return this;
832
- const l = he(n) + Jt(e);
832
+ const l = ae(n) + Xt(e);
833
833
  if (r.has(l)) return this;
834
834
  const i = C("@", s, !0), a = Ke(o.runtime, o.symbols, i, !1, o.error, o.getFunction);
835
835
  return new t(a, this._context, this._calcScope, this._gridId, this._getEntireCoords, this._resolvers);
@@ -838,21 +838,21 @@ var un = class e {
838
838
  const s = this._context, l = t.inputs, i = l ? l.length : 0, a = t.type;
839
839
  let c;
840
840
  switch (a) {
841
- case me.Infix: {
841
+ case fe.Infix: {
842
842
  const n = t.value;
843
843
  let r = e[l[0].evalIndex], o = e[l[1].evalIndex];
844
844
  if (!0 === t.firstCell && !t.isReference && this._demandsFirstCell() && (r = yn(r), o = yn(o)), ("+" === n || "-" === n) && (r = In(s, r), "number" == typeof r && (o = In(s, o), "number" == typeof o))) {
845
845
  const e = "+" === n ? r + o : r - o;
846
- return zt(!0 === t.snapsCancellation ? jt(e, r) : e, null);
846
+ return Ot(!0 === t.snapsCancellation ? Ht(e, r) : e, null);
847
847
  }
848
848
  if (!t.isReference) {
849
849
  if (r && m.isError(r)) return r;
850
850
  if (o && m.isError(o)) return o;
851
851
  }
852
852
  const i = t.fn ?? (t.fn = !0 === t.snapsCancellation ? Pe[t.value] : $e[t.value]);
853
- return c = i ? i(s, r, o) : m.BuiltIn.Value, c = zt(c, null), c;
853
+ return c = i ? i(s, r, o) : m.BuiltIn.Value, c = Ot(c, null), c;
854
854
  }
855
- case me.Function: {
855
+ case fe.Function: {
856
856
  const s = t.binder;
857
857
  if (void 0 !== s) return "let" === s.kind ? e[l[i - 1].evalIndex] : this._createLambdaValue(t, e, o, n, r);
858
858
  if (!0 === t.hasLazyArgs) {
@@ -868,15 +868,15 @@ var un = class e {
868
868
  }
869
869
  return c;
870
870
  }
871
- case me.Prefix:
872
- case me.Postfix: {
871
+ case fe.Prefix:
872
+ case fe.Postfix: {
873
873
  let n = e[l[0].evalIndex];
874
874
  if (!0 === t.firstCell && !t.isReference && "@" !== t.value && this._demandsFirstCell() && (n = yn(n)), n && m.isError(n)) return n;
875
- const r = t.fn ?? (t.fn = a === me.Prefix ? He[t.value] : We[t.value]);
875
+ const r = t.fn ?? (t.fn = a === fe.Prefix ? He[t.value] : We[t.value]);
876
876
  return c = r ? r(s, n) : m.BuiltIn.Value, c;
877
877
  }
878
- case me.List:
879
- case me.Paren: {
878
+ case fe.List:
879
+ case fe.Paren: {
880
880
  if (1 === i) return e[l[0].evalIndex];
881
881
  for (let t = 0; t < i; t++) {
882
882
  const n = e[l[t].evalIndex];
@@ -901,7 +901,7 @@ var un = class e {
901
901
  for (let t = 0; t < i; t++) n[t] = e[l[t].evalIndex];
902
902
  return n;
903
903
  }
904
- case me.Named: {
904
+ case fe.Named: {
905
905
  const s = t.binding;
906
906
  if (void 0 !== s) {
907
907
  const n = this._compiled.bindings[s.slot];
@@ -917,12 +917,12 @@ var un = class e {
917
917
  }
918
918
  return !0 === t.deferredResolve ? this._evaluateNamed(t.value, n, r) : e[t.evalIndex] ?? null;
919
919
  }
920
- case me.TableReference: return e[t.evalIndex] ?? null;
921
- case me.Call: {
920
+ case fe.TableReference: return e[t.evalIndex] ?? null;
921
+ case fe.Call: {
922
922
  const n = e[l[0].evalIndex];
923
923
  return n && m.isError(n) ? n : (c = this._applyCallee(n, t, e), c);
924
924
  }
925
- case me.Empty: return;
925
+ case fe.Empty: return;
926
926
  }
927
927
  var d;
928
928
  }
@@ -968,14 +968,14 @@ var un = class e {
968
968
  if (o > e.length || o < s) return m.BuiltIn.Value;
969
969
  const l = new Map(t.frame ?? void 0);
970
970
  for (let t = 0; t < e.length; t++) {
971
- const s = e[t], i = t >= o || r[t + 1]?.type === me.Empty;
971
+ const s = e[t], i = t >= o || r[t + 1]?.type === fe.Empty;
972
972
  l.set(s.slot, i ? Sn : n[r[t + 1].evalIndex]);
973
973
  }
974
974
  return t.owner._evaluateBody(t, l);
975
975
  }
976
976
  if (t instanceof mn) {
977
977
  const e = [];
978
- for (let t = 1; t < r.length; t++) e.push(r[t]?.type === me.Empty ? void 0 : n[r[t].evalIndex]);
978
+ for (let t = 1; t < r.length; t++) e.push(r[t]?.type === fe.Empty ? void 0 : n[r[t].evalIndex]);
979
979
  return this._dispatchFunction(t.fn, e, e.length);
980
980
  }
981
981
  return t && (t.isIRange || void 0 !== t.colStart) ? m.BuiltIn.Ref : m.BuiltIn.Value;
@@ -991,7 +991,7 @@ var un = class e {
991
991
  o.set(n[t].slot, void 0 === r ? Sn : r);
992
992
  }
993
993
  const s = this._evaluateBody(t, o);
994
- return zt(s, this._context);
994
+ return Ot(s, this._context);
995
995
  }
996
996
  _evaluateBody(t, e) {
997
997
  const n = this._calcScope;
@@ -1015,7 +1015,7 @@ var un = class e {
1015
1015
  return this._runList(s, e, r, o, n), e[t.evalIndex];
1016
1016
  } catch (t) {
1017
1017
  if (m.isError(t)) return t;
1018
- if (Be(t)) throw t;
1018
+ if (Te(t)) throw t;
1019
1019
  return t instanceof RangeError ? m.BuiltIn.Num : new m.Value(t?.message, { cause: t });
1020
1020
  }
1021
1021
  }
@@ -1028,7 +1028,7 @@ var un = class e {
1028
1028
  }
1029
1029
  _listWithin(t) {
1030
1030
  let e;
1031
- Ee(this._compiled.ast, (n, r, o) => {
1031
+ Se(this._compiled.ast, (n, r, o) => {
1032
1032
  if (n === t) {
1033
1033
  for (let t = o.length - 1; t >= 0; t--) if (void 0 !== o[t].deferred) {
1034
1034
  e = o[t];
@@ -1037,7 +1037,7 @@ var un = class e {
1037
1037
  }
1038
1038
  });
1039
1039
  const n = /* @__PURE__ */ new Set();
1040
- Ee(t, (t) => {
1040
+ Se(t, (t) => {
1041
1041
  n.add(t);
1042
1042
  });
1043
1043
  const r = e?.deferred?.filter((t) => n.has(t)) ?? [];
@@ -1077,7 +1077,7 @@ var un = class e {
1077
1077
  try {
1078
1078
  r = t.execute();
1079
1079
  } catch (t) {
1080
- if (Be(t)) throw t;
1080
+ if (Te(t)) throw t;
1081
1081
  r = kn(t);
1082
1082
  }
1083
1083
  s.argsValues = null, s.argsLength = 0;
@@ -1107,7 +1107,7 @@ var un = class e {
1107
1107
  r = t.execute(...o);
1108
1108
  }
1109
1109
  } catch (t) {
1110
- if (Be(t)) throw t;
1110
+ if (Te(t)) throw t;
1111
1111
  r = kn(t);
1112
1112
  }
1113
1113
  const l = this._calcScope;
@@ -1119,7 +1119,7 @@ var un = class e {
1119
1119
  }
1120
1120
  finalizeValue(t) {
1121
1121
  const e = this._context;
1122
- if (Q(t)) return m.BuiltIn.Calc;
1122
+ if (J(t)) return m.BuiltIn.Calc;
1123
1123
  if (p(t)) return m.BuiltIn.Calc;
1124
1124
  if (t && void 0 !== t.colStart) try {
1125
1125
  if (t.scope) {
@@ -1128,7 +1128,7 @@ var un = class e {
1128
1128
  }
1129
1129
  t = e.getValueAt(t.rowStart, t.colStart, t.scope);
1130
1130
  } catch (t) {
1131
- if (Be(t)) throw t;
1131
+ if (Te(t)) throw t;
1132
1132
  return m.isError(t) ? t : new m.Value(t?.message, { cause: t });
1133
1133
  }
1134
1134
  if (Array.isArray(t) && t.isSheetSpan) return m.BuiltIn.Ref;
@@ -1146,7 +1146,7 @@ var un = class e {
1146
1146
  }
1147
1147
  }
1148
1148
  var n;
1149
- return t?.isIRange ? t.size <= 1 ? (t = 0 === t.size ? null : t.getValueAt(0, 0, Cn), null === (t = zt(t, e)) && (t = 0)) : (n = t, wn.has(n) || (t = t.fillEmpty(0))) : null === (t = zt(t, e)) && (t = 0), t;
1149
+ return t?.isIRange ? t.size <= 1 ? (t = 0 === t.size ? null : t.getValueAt(0, 0, Cn), null === (t = Ot(t, e)) && (t = 0)) : (n = t, wn.has(n) || (t = t.fillEmpty(0))) : null === (t = Ot(t, e)) && (t = 0), t;
1150
1150
  }
1151
1151
  finalizeValueForCell(t) {
1152
1152
  const e = this.finalizeValue(t);
@@ -1156,7 +1156,7 @@ var un = class e {
1156
1156
  const t = this._compiled;
1157
1157
  if (t.error) return t.error.toString();
1158
1158
  const e = this._calcScope;
1159
- return e?.node ? this.getTextAt(e.node.rowIndex, e.node.colIndex) : Y(t.getTokens(), null);
1159
+ return e?.node ? this.getTextAt(e.node.rowIndex, e.node.colIndex) : Q(t.getTokens(), null);
1160
1160
  }
1161
1161
  get [Symbol.toStringTag]() {
1162
1162
  return "[FormulaBlock]";
@@ -1199,7 +1199,7 @@ var xn = (t, e, n, r, o, s, l) => {
1199
1199
  } else r[o] = c;
1200
1200
  return s && (s[o] = d), l && (l[o] = h), o + 1;
1201
1201
  }, Cn = Object.freeze({ type: null }), bn = new Array(255), An = (t, e) => {
1202
- for (let n = 0; n < e; n++) t[n]?.type === me.Empty && (bn[n] = Sn);
1202
+ for (let n = 0; n < e; n++) t[n]?.type === fe.Empty && (bn[n] = Sn);
1203
1203
  }, Rn = (t) => {
1204
1204
  const e = { ...t };
1205
1205
  return delete e.inLazy, delete e.lazyArg, delete e.hasLazyArgs, delete e.deferred, t.inputs && (e.inputs = t.inputs.map((t) => t ? Rn(t) : t)), e;
@@ -1317,7 +1317,7 @@ var xn = (t, e, n, r, o, s, l) => {
1317
1317
  colEnd: e
1318
1318
  });
1319
1319
  for (const t of i.entries()) {
1320
- const e = te(t.value);
1320
+ const e = Zt(t.value);
1321
1321
  let r = s.get(e);
1322
1322
  void 0 === r && (r = s.size + 1, s.set(e, r)), n[t.coords.rowIndex] = r;
1323
1323
  }
@@ -1760,7 +1760,7 @@ var Br = {
1760
1760
  return void 0 === o && (o = this._newNode(t, e, this.gridId, null), r.setValueAt(t, e, o)), o;
1761
1761
  }
1762
1762
  _newSparseStore() {
1763
- const t = new ot({ axis: S.Axis.Column }), e = this._anchor;
1763
+ const t = new Z({ axis: S.Axis.Column }), e = this._anchor;
1764
1764
  return null !== e && t.setValueAt(e.rowIndex, e.colIndex, e), this._nodes = t, t;
1765
1765
  }
1766
1766
  _mintDense() {
@@ -1822,7 +1822,7 @@ var Br = {
1822
1822
  if (l > i || a > c) return;
1823
1823
  const d = this.gridId;
1824
1824
  let h = null;
1825
- for (let t = a; t <= c; t++) for (let e = l; e <= i; e++) void 0 === o.getValueAt(e, t) && (null === h && (h = new Ce.Builder()), h.pushAt(t, e, this._newNode(e, t, d, null)));
1825
+ for (let t = a; t <= c; t++) for (let e = l; e <= i; e++) void 0 === o.getValueAt(e, t) && (null === h && (h = new xe.Builder()), h.pushAt(t, e, this._newNode(e, t, d, null)));
1826
1826
  if (null !== h) {
1827
1827
  const t = h.build();
1828
1828
  t && o.setValues(t.tuples);
@@ -1865,7 +1865,7 @@ var Br = {
1865
1865
  continue;
1866
1866
  }
1867
1867
  vn(i, t, e, Br), vn(c, t, e, Lr);
1868
- const d = xe(Br, Lr, a);
1868
+ const d = ve(Br, Lr, a);
1869
1869
  o[n] = d ?? m.BuiltIn.Null;
1870
1870
  }
1871
1871
  return this._scratchRow = t, this._scratchCol = e, o;
@@ -2095,7 +2095,7 @@ var Br = {
2095
2095
  if (null !== a && 0 === l.originRow && 0 === l.originCol && i.rowStart === n && i.colStart === r && i.rowEnd === e.rowEnd && i.colEnd === e.colEnd) return t._nodes = null, this._nodes = a, void this.forEachNode((t) => {
2096
2096
  this._adoptNode(t, t.rowIndex, t.colIndex, null);
2097
2097
  });
2098
- const c = i.rowStart + l.originRow, d = i.colStart + l.originCol, h = n - c, u = r - d, _ = new Ce.Builder();
2098
+ const c = i.rowStart + l.originRow, d = i.colStart + l.originCol, h = n - c, u = r - d, _ = new xe.Builder();
2099
2099
  t.forEachNodeIn(c, c + o - 1, d, d + s - 1, (t) => {
2100
2100
  const e = t.rowIndex + h, n = t.colIndex + u;
2101
2101
  this._adoptNode(t, e, n, null), _.pushAt(n, e, t);
@@ -2114,7 +2114,7 @@ var Br = {
2114
2114
  }
2115
2115
  if (0 === i.length) return;
2116
2116
  i.sort(Pr);
2117
- const a = new Ce.Builder();
2117
+ const a = new xe.Builder();
2118
2118
  for (let t = 0; t < i.length; t++) {
2119
2119
  const e = i[t];
2120
2120
  t > 0 && i[t - 1].rowIndex === e.rowIndex && i[t - 1].colIndex === e.colIndex || a.pushAt(e.colIndex, e.rowIndex, e);
@@ -2124,7 +2124,7 @@ var Br = {
2124
2124
  }
2125
2125
  toJSON(t = !1, e = this.ref) {
2126
2126
  const n = e;
2127
- return [Qt(n), this.formula.getTextAt(n.rowStart, n.colStart, t)];
2127
+ return [ge(n), this.formula.getTextAt(n.rowStart, n.colStart, t)];
2128
2128
  }
2129
2129
  getCoords() {
2130
2130
  return this.ref;
@@ -2516,12 +2516,12 @@ var Br = {
2516
2516
  const o = this._container.getGrid(this._calcScope.gridId)?.getEntireCoords(), s = o && t > o.rowEnd + 1 ? {
2517
2517
  ...o,
2518
2518
  rowEnd: t - 1
2519
- } : o, l = new ot({
2519
+ } : o, l = new Z({
2520
2520
  axis: this._axis,
2521
2521
  maxCoords: s
2522
2522
  });
2523
2523
  for (let t = 0; t < r; t++) l.setValueAt(e[t], 0, n[t]);
2524
- return new ae(this._runtime, l, {
2524
+ return new le(this._runtime, l, {
2525
2525
  colStart: 0,
2526
2526
  rowStart: 0,
2527
2527
  colEnd: 0,
@@ -2554,15 +2554,15 @@ var Br = {
2554
2554
  return this._calcScope.node ? this._container.evaluateWhatIf(t) : null;
2555
2555
  }
2556
2556
  async _initialize(t) {
2557
- const e = await dt.assertUsable(), n = this._container, r = n.getRuntime();
2558
- this._runtime = new lt("Calculation Runtime", {
2557
+ const e = await M.assertUsable(), n = this._container, r = n.getRuntime();
2558
+ this._runtime = new rt("Calculation Runtime", {
2559
2559
  isDate1904: () => r.isDate1904(),
2560
2560
  isR1C1: () => r.isR1C1(),
2561
2561
  getNow: () => n.getNow(),
2562
2562
  getRandom: () => r.getRandom(),
2563
2563
  getLocale: () => r.getLocale()
2564
- }, e), this._calcScope = n.getScope(), this._coerceToNumber = F(this._runtime, w.Number, vt);
2565
- const { initializeFunctions: o } = await import("./CcLPa6zB5PH3OG2O.js"), s = this, l = Object.freeze(o(() => s, this._functionProviders)), a = new _t({
2564
+ }, e), this._calcScope = n.getScope(), this._coerceToNumber = F(this._runtime, w.Number, $);
2565
+ const { initializeFunctions: o } = await import("./ClNQN3vEg5b5qUDp.js"), s = this, l = Object.freeze(o(() => s, this._functionProviders)), a = new _t({
2566
2566
  transactions: t ?? new i({ transient: !0 }),
2567
2567
  context: this,
2568
2568
  readonlyFunctions: l,
@@ -2571,7 +2571,7 @@ var Br = {
2571
2571
  return this._functions = a, { functions: a };
2572
2572
  }
2573
2573
  _createScoped(e) {
2574
- const n = this._container, r = n.getSymbols().bind(Pt.Sheet, e);
2574
+ const n = this._container, r = n.getSymbols().bind(Vt.Sheet, e);
2575
2575
  if (!r || !n.getGrid(r)) return null;
2576
2576
  const o = new t(n, this._axis, this._functionProviders);
2577
2577
  return o._runtime = this._runtime, o._functions = this._functions, o._coerceToNumber = this._coerceToNumber, o._instanceScope = this._instanceScope, o._calcScope = {
@@ -2613,7 +2613,7 @@ var Br = {
2613
2613
  }, t;
2614
2614
  }
2615
2615
  getFunction(t) {
2616
- const e = St(t);
2616
+ const e = mt(t);
2617
2617
  if (void 0 !== e) {
2618
2618
  const t = this._functions.getByName(e);
2619
2619
  if (t && !t.isLambda()) return t;
@@ -2636,7 +2636,7 @@ var Br = {
2636
2636
  getFormulaAt(t, e, n) {
2637
2637
  const r = this._container;
2638
2638
  let o;
2639
- if (this._calcScope.perCellRead = !0, o = n ? r.getSymbols().bind(Pt.Sheet, n) : this._calcScope.gridId, !o) return null;
2639
+ if (this._calcScope.perCellRead = !0, o = n ? r.getSymbols().bind(Vt.Sheet, n) : this._calcScope.gridId, !o) return null;
2640
2640
  const s = r.getFormulas();
2641
2641
  if (!s) return null;
2642
2642
  eo.colStart = e, eo.rowStart = t, eo.colEnd = e, eo.rowEnd = t, eo.scope = o;
@@ -2652,15 +2652,15 @@ var Br = {
2652
2652
  defer(t, e) {
2653
2653
  if ("function" != typeof t) throw new m.Value("defer needs an executor function");
2654
2654
  const n = this._container.getDeferred?.();
2655
- if (n) return Nt(n.defer(t, e, de(), ut())), n.previous;
2656
- Nt(null);
2655
+ if (n) return kt(n.defer(t, e, ie(), ut())), n.previous;
2656
+ kt(null);
2657
2657
  }
2658
2658
  formatResults(t) {
2659
2659
  const e = this._calcScope.node;
2660
2660
  e && (e.numFmt = t);
2661
2661
  }
2662
2662
  filterHidden(t, e) {
2663
- if (!(t?.isIReferenceRange && t instanceof ft)) return t;
2663
+ if (!(t?.isIReferenceRange && t instanceof B)) return t;
2664
2664
  const n = t.getCoords(), r = this._gridIdOf(n), o = r ? this._container.getGrid(r) : null;
2665
2665
  if (!o) return t;
2666
2666
  if (e?.onlyWhileFiltered && !o.isFiltered()) return t;
@@ -2671,7 +2671,7 @@ var Br = {
2671
2671
  }) : t;
2672
2672
  }
2673
2673
  _gridIdOf(t) {
2674
- return t.scope ? this._container.getSymbols().bind(Pt.Sheet, t.scope) : this._calcScope.gridId;
2674
+ return t.scope ? this._container.getSymbols().bind(Vt.Sheet, t.scope) : this._calcScope.gridId;
2675
2675
  }
2676
2676
  filterTotals(t) {
2677
2677
  const e = t;
@@ -2715,7 +2715,7 @@ var Br = {
2715
2715
  const n = t?.getCoords()?.scope;
2716
2716
  if (n) e = n;
2717
2717
  else {
2718
- const t = this._container.getSymbols().resolve(Pt.Sheet, this._calcScope.gridId);
2718
+ const t = this._container.getSymbols().resolve(Vt.Sheet, this._calcScope.gridId);
2719
2719
  e = t ? t.getName ? t.getName() ?? void 0 : t.toString() : void 0;
2720
2720
  }
2721
2721
  }
@@ -2765,7 +2765,7 @@ var Br = {
2765
2765
  const r = t.gridId;
2766
2766
  if (r !== this._gridKeyId) {
2767
2767
  this._gridKeyId = r;
2768
- const t = null === r ? null : this._container.getSymbols().resolve(Pt.Sheet, r), n = t?.getName ? t.getName() : null;
2768
+ const t = null === r ? null : this._container.getSymbols().resolve(Vt.Sheet, r), n = t?.getName ? t.getName() : null;
2769
2769
  this._gridKey = n ? e(n) : 0;
2770
2770
  }
2771
2771
  }
@@ -2776,19 +2776,19 @@ var Br = {
2776
2776
  }
2777
2777
  _fromTuples(t, e = null, n = !1, r = !1) {
2778
2778
  if (!t) return null;
2779
- const o = Dt(t.bounds, !0), s = this._container.getGrid(this._calcScope.gridId)?.getEntireCoords(), l = new ot({
2779
+ const o = Ft(t.bounds, !0), s = this._container.getGrid(this._calcScope.gridId)?.getEntireCoords(), l = new Z({
2780
2780
  axis: this._axis,
2781
2781
  maxCoords: s
2782
2782
  });
2783
2783
  l.setValues(t.tuples);
2784
2784
  let i = e ? { type: e } : void 0;
2785
- return new ae(this._runtime, l, o, i, n, r);
2785
+ return new le(this._runtime, l, o, i, n, r);
2786
2786
  }
2787
2787
  getValueAt(t, e, n = null, o) {
2788
2788
  const s = this._container, l = this._calcScope;
2789
2789
  let i, a;
2790
2790
  if (n) {
2791
- if (i = s.getSymbols().bind(Pt.Sheet, n), L(i)) return m.BuiltIn.Ref;
2791
+ if (i = s.getSymbols().bind(Vt.Sheet, n), L(i)) return m.BuiltIn.Ref;
2792
2792
  } else i = l.gridId;
2793
2793
  if (!i) return m.BuiltIn.Ref;
2794
2794
  const c = l.node, d = c ? en(c) : r.EmptyArray, h = d.length;
@@ -2807,12 +2807,12 @@ var Br = {
2807
2807
  } else a = l;
2808
2808
  break;
2809
2809
  }
2810
- return void 0 === a && (this._onRead?.(i, t, e, t, e), a = s.getGridValues(i)?.getValueAt(t, e) ?? null, s.getDeferred?.()?.hasHolders() && (a = M(a))), o && o.type, a;
2810
+ return void 0 === a && (this._onRead?.(i, t, e, t, e), a = s.getGridValues(i)?.getValueAt(t, e) ?? null, s.getDeferred?.()?.hasHolders() && (a = Ve(a))), o && o.type, a;
2811
2811
  }
2812
2812
  getSpillAt(t, e, n) {
2813
2813
  const r = this._container, o = this._calcScope;
2814
2814
  let s;
2815
- s = n ? r.getSymbols().bind(Pt.Sheet, n) : o.gridId;
2815
+ s = n ? r.getSymbols().bind(Vt.Sheet, n) : o.gridId;
2816
2816
  const l = s === o.gridId ? null : s, i = r.getIncrementalUpdates(s)?.spillSpatial ?? r.getGrid(s)?.getSpills();
2817
2817
  if (i) {
2818
2818
  no.rowStart = t, no.colStart = e, no.rowEnd = t, no.colEnd = e, no.scope = s;
@@ -2842,12 +2842,12 @@ var Br = {
2842
2842
  ...r,
2843
2843
  rowEnd: Math.max(r.rowEnd, t - 1),
2844
2844
  colEnd: Math.max(r.colEnd, e - 1)
2845
- } : r, s = new ot({
2845
+ } : r, s = new Z({
2846
2846
  axis: this._axis,
2847
2847
  maxCoords: o
2848
2848
  });
2849
- let l = new ae(this._runtime, s, null, void 0, !1);
2850
- return t > 0 && e > 0 && ("function" == typeof n ? (l = l.resize(t, e), l = l.map(n, oo)) : Array.isArray(n) ? (l = l.replace(n), l = l.resize(t, e)) : l = null != n ? new ae(this._runtime, s, {
2849
+ let l = new le(this._runtime, s, null, void 0, !1);
2850
+ return t > 0 && e > 0 && ("function" == typeof n ? (l = l.resize(t, e), l = l.map(n, oo)) : Array.isArray(n) ? (l = l.replace(n), l = l.resize(t, e)) : l = null != n ? new le(this._runtime, s, {
2851
2851
  colStart: 0,
2852
2852
  rowStart: 0,
2853
2853
  colEnd: e - 1,
@@ -2876,7 +2876,7 @@ var Br = {
2876
2876
  const s = Array.isArray(t);
2877
2877
  if (n = n ?? s, !s && void 0 !== t) {
2878
2878
  const r = this._container.getGrid(this._calcScope.gridId)?.getEntireCoords();
2879
- return new ae(this._runtime, new un(t, {
2879
+ return new le(this._runtime, new un(t, {
2880
2880
  axis: this._axis,
2881
2881
  maxCoords: r
2882
2882
  }), {
@@ -2891,13 +2891,13 @@ var Br = {
2891
2891
  if (t[0]?.isIRange) throw m.BuiltIn.Value;
2892
2892
  r = [t];
2893
2893
  }
2894
- const l = this._axis, i = l === S.Axis.Column, a = this._fromTuples(ue(r, i, ke(0, 0, void 0, void 0, i), !0), e, n, !s);
2894
+ const l = this._axis, i = l === S.Axis.Column, a = this._fromTuples(ce(r, i, Ae(0, 0, void 0, void 0, i), !0), e, n, !s);
2895
2895
  if (a) return a;
2896
- const c = this._container.getGrid(this._calcScope.gridId)?.getEntireCoords(), d = new ot({
2896
+ const c = this._container.getGrid(this._calcScope.gridId)?.getEntireCoords(), d = new Z({
2897
2897
  axis: l,
2898
2898
  maxCoords: c
2899
2899
  }), h = e ? { type: e } : void 0;
2900
- return new ae(this._runtime, d, o.EmptyRange, h, n);
2900
+ return new le(this._runtime, d, o.EmptyRange, h, n);
2901
2901
  }
2902
2902
  getRow() {
2903
2903
  const t = this._calcScope;
@@ -2965,7 +2965,7 @@ var Br = {
2965
2965
  if (!t) throw m.BuiltIn.Ref;
2966
2966
  let a = t.scope;
2967
2967
  if (a) {
2968
- if (a = r.getSymbols().bind(Pt.Sheet, t.scope), !a) return m.BuiltIn.Ref;
2968
+ if (a = r.getSymbols().bind(Vt.Sheet, t.scope), !a) return m.BuiltIn.Ref;
2969
2969
  const e = r.getSheetSpanIds?.(a) ?? null;
2970
2970
  if (e) {
2971
2971
  if (r.isGridless?.(e[0]) || r.isGridless?.(e[e.length - 1])) return m.BuiltIn.Name;
@@ -2982,7 +2982,7 @@ var Br = {
2982
2982
  scope: a
2983
2983
  };
2984
2984
  if (r.isGridless?.(a)) {
2985
- const t = new ot({ axis: this._axis });
2985
+ const t = new Z({ axis: this._axis });
2986
2986
  return this._toReference(t, e, void 0, a, !1, null);
2987
2987
  }
2988
2988
  t = e;
@@ -3003,7 +3003,7 @@ var Br = {
3003
3003
  else {
3004
3004
  let n = e;
3005
3005
  null !== n && n.isIRange && (n = n.getValueAt(0, 0));
3006
- const r = new ot({
3006
+ const r = new Z({
3007
3007
  axis: this._axis,
3008
3008
  maxCoords: i?.()
3009
3009
  });
@@ -3047,7 +3047,7 @@ var Br = {
3047
3047
  const i = this._onRead ?? (s ? this._dynamicRead : null);
3048
3048
  i && (t = new Ur(t, o, i));
3049
3049
  try {
3050
- const n = new ft(this._runtime, t, e, void 0, r, this._container.resolveScope);
3050
+ const n = new B(this._runtime, t, e, void 0, r, this._container.resolveScope);
3051
3051
  return n._setCoordsReadHook(this._positionRead), null !== l && n._setErrorIndex(null === i ? l : { hasErrorIn: (t) => (i(o, t.rowStart, t.colStart, t.rowEnd, t.colEnd), l.hasErrorIn(t)) }), n;
3052
3052
  } catch (t) {
3053
3053
  if (t instanceof n) throw m.BuiltIn.Ref;
@@ -3057,7 +3057,7 @@ var Br = {
3057
3057
  getAddress(t, e = !1) {
3058
3058
  t || (this._calcScope.positionRead = !0, ro.rowIndex = this._calcScope.rowIndex, ro.colIndex = this._calcScope.colIndex, ro.scope = null, t = ro);
3059
3059
  const n = this.getEntireCoords().scope;
3060
- return void 0 !== t.colIndex ? $t(t, n, e) : Me(t, n, e);
3060
+ return void 0 !== t.colIndex ? y(t, n, e) : ke(t, n, e);
3061
3061
  }
3062
3062
  parseAsSerialDate(t, e) {
3063
3063
  if (void 0 === t) return;
@@ -3114,16 +3114,16 @@ var Br = {
3114
3114
  return new lr(t, this._createSparseColumn, e);
3115
3115
  }
3116
3116
  parseAsLiteral(t) {
3117
- return Mt(t) ?? Ft(t);
3117
+ return Nt(t) ?? Mt(t);
3118
3118
  }
3119
3119
  toText(t) {
3120
- return ee(t, this._runtime);
3120
+ return te(t, this._runtime);
3121
3121
  }
3122
3122
  getRuntime() {
3123
3123
  return this._runtime;
3124
3124
  }
3125
3125
  createRichData(t, e) {
3126
- return K.fromJSON({
3126
+ return G.fromJSON({
3127
3127
  type: t,
3128
3128
  data: e
3129
3129
  }, this._container.getRichDataContext?.());
@@ -3251,7 +3251,7 @@ function ao(t, e, n) {
3251
3251
  colEnd: a[1]
3252
3252
  };
3253
3253
  }
3254
- var co = class extends ie {
3254
+ var co = class extends se {
3255
3255
  constructor(t) {
3256
3256
  const e = (t = { ...t }).container;
3257
3257
  super({
@@ -3259,12 +3259,12 @@ var co = class extends ie {
3259
3259
  send: (t, n, r) => e.sendRequest(t, n, r),
3260
3260
  calculation: t.calculation
3261
3261
  }), this._touchedOthers = null, this._iterationId = 0, this._resized = null, this._hiddenRows = null, this._hiddenColumns = null, this._filtered = !1, this._demanded = [], this._isProcessingJSON = !1, this._snapshots = null, this._options = t, this._context = t.context, this._container = t.container;
3262
- const n = { ...bt }, o = t.getEntireCoords ?? (() => n);
3262
+ const n = { ...j }, o = t.getEntireCoords ?? (() => n);
3263
3263
  if (this._getEntireCoords = o, this._unanchored = !0 === t.unanchored, this._shadowOf = t.shadowOf ?? null, this._arrayFirstCell = !0 === t.arrayFirstCell, this._paged = !0 === t.paged, !this._context || !this._container) throw new Error("Invalid Options");
3264
3264
  const s = t?.onCalculated;
3265
3265
  this._onCalculated = s ? (t) => {
3266
- s(Ge(De.results(t, "onCalculated"), this._container.getImager(this._gridId)));
3267
- } : () => {}, this._values = new ot({
3266
+ s(De(Me.results(t, "onCalculated"), this._container.getImager(this._gridId)));
3267
+ } : () => {}, this._values = new Z({
3268
3268
  axis: S.Axis.Column,
3269
3269
  createRun: Qe
3270
3270
  }), this._iterationId = 0, this._contentfulSpatial = new ht({ updateEntryOptions: {
@@ -3400,7 +3400,7 @@ var co = class extends ie {
3400
3400
  cycleId: this._container.getCycleId(),
3401
3401
  commitId: t.commitId
3402
3402
  };
3403
- const r = st(t.destination, t.coords, t.fitDestination, t.transpose);
3403
+ const r = lt(t.destination, t.coords, t.fitDestination, t.transpose);
3404
3404
  return r.scope = this._gridId, this._land(e, () => {
3405
3405
  t.isCut ? this._moveTo(n, t.coords, r) : this._copyTo(n, t.coords, r);
3406
3406
  const e = this._mutationResults(t.commitId);
@@ -3517,8 +3517,8 @@ var co = class extends ie {
3517
3517
  const e = this, n = this.getId(), r = { ...t };
3518
3518
  r.range = { ...r.range }, r.range.scope = n, delete r.onShift;
3519
3519
  const o = e._values, s = r.range, l = r.direction, i = l === S.Direction.Left || l === S.Direction.Right, a = l === S.Direction.Down || l === S.Direction.Right, c = a ? 1 : -1, d = e._spillSpatial, h = e._contentfulSpatial;
3520
- ct(d, s, i, a);
3521
- const u = [], _ = this._container.getPrecedents().search(s), f = Et(s, d, o, h, void 0, !1, !1, void 0, (t, e, r, o) => {
3520
+ dt(d, s, i, a);
3521
+ const u = [], _ = this._container.getPrecedents().search(s), f = wt(s, d, o, h, void 0, !1, !1, void 0, (t, e, r, o) => {
3522
3522
  u.push({
3523
3523
  colStart: t,
3524
3524
  rowStart: e,
@@ -3536,7 +3536,7 @@ var co = class extends ie {
3536
3536
  colEnd: i && 1 === c ? w.colEnd : s.colEnd,
3537
3537
  rowEnd: i || 1 !== c ? s.rowEnd : w.rowEnd,
3538
3538
  scope: n
3539
- }, I = a ? Fe(m, E) : tt(m, s);
3539
+ }, I = a ? Ne(m, E) : et(m, s);
3540
3540
  I && (No(p, m, I.formulas.inserts, I.formulas.removes), e._touchFormulas(I.formulas.removes), e._touchFormulas(I.formulas.inserts));
3541
3541
  const y = i ? s.colEnd - s.colStart + 1 : s.rowEnd - s.rowStart + 1, v = y * c, x = {
3542
3542
  colStart: s.colStart,
@@ -3546,7 +3546,7 @@ var co = class extends ie {
3546
3546
  scope: n
3547
3547
  };
3548
3548
  let C;
3549
- const b = qt(() => m, () => {
3549
+ const b = Kt(() => m, () => {
3550
3550
  const t = g.getDynamics();
3551
3551
  return C = new Map(t), C;
3552
3552
  }, x, {
@@ -3638,9 +3638,9 @@ var co = class extends ie {
3638
3638
  let h = c;
3639
3639
  for (let r = 0; r < d.length; r++) {
3640
3640
  const o = d[r];
3641
- if (!Rt(o)) continue;
3641
+ if (!yt(o)) continue;
3642
3642
  let s = l.get(o);
3643
- void 0 === s && (s = W(o, t, e, n) ?? null, l.set(o, s)), null !== s && (h = h.replaceScopeIds(o, s));
3643
+ void 0 === s && (s = O(o, t, e, n) ?? null, l.set(o, s)), null !== s && (h = h.replaceScopeIds(o, s));
3644
3644
  }
3645
3645
  h !== c && (i.push(o), a.push({
3646
3646
  ...o,
@@ -3753,7 +3753,7 @@ var co = class extends ie {
3753
3753
  l || (l = /* @__PURE__ */ new Map(), ho.set(r, l));
3754
3754
  let i = l.get(e);
3755
3755
  if (!i) {
3756
- const t = pe(r);
3756
+ const t = _e(r);
3757
3757
  i = 0 === e ? t : (n, r) => t(n + e, r) - e, l.set(e, i);
3758
3758
  }
3759
3759
  return i;
@@ -3882,7 +3882,7 @@ var co = class extends ie {
3882
3882
  }
3883
3883
  this._pushWithSpills(h, w);
3884
3884
  }
3885
- return h = J(h, 2, t.Row), h.sort(o.rowFirstRangeComparator), h;
3885
+ return h = U(h, 2, t.Row), h.sort(o.rowFirstRangeComparator), h;
3886
3886
  }
3887
3887
  _pushWithSpills(t, e) {
3888
3888
  t.push(e);
@@ -3939,7 +3939,7 @@ var co = class extends ie {
3939
3939
  for (let t = 0; t < a.length; t++) {
3940
3940
  const e = a[t];
3941
3941
  if (void 0 === e?.colStart) continue;
3942
- const n = e.scope, o = _(n), s = it(e, r.rowStart + I, r.colStart + y), l = it(e, r.rowStart + v, r.colStart + x), i = {
3942
+ const n = e.scope, o = _(n), s = bt(e, r.rowStart + I, r.colStart + y), l = bt(e, r.rowStart + v, r.colStart + x), i = {
3943
3943
  colStart: Math.max(Math.min(s.colStart, l.colStart), o.colStart),
3944
3944
  rowStart: Math.max(Math.min(s.rowStart, l.rowStart), o.rowStart),
3945
3945
  colEnd: Math.min(Math.max(s.colEnd, l.colEnd), o.colEnd),
@@ -3950,7 +3950,7 @@ var co = class extends ie {
3950
3950
  }
3951
3951
  f.push(...C);
3952
3952
  }
3953
- return f = J(f, 2, t.Row), f.sort(o.rowFirstRangeComparator), f;
3953
+ return f = U(f, 2, t.Row), f.sort(o.rowFirstRangeComparator), f;
3954
3954
  }
3955
3955
  _directAcrossGrids(t, e) {
3956
3956
  const n = this._gridId, o = t.scope, s = o && o !== n ? this._container.getGrid(o) ?? null : this;
@@ -4087,7 +4087,7 @@ var co = class extends ie {
4087
4087
  let o = t.evaluateAt(e, n, r);
4088
4088
  if (o && void 0 !== o.colStart) o = t.finalizeValue(o);
4089
4089
  else if (Ct(o)) return t.finalizeValue(o);
4090
- const s = zt(o, this._context);
4090
+ const s = Ot(o, this._context);
4091
4091
  return null === s ? 0 : s;
4092
4092
  }
4093
4093
  return tn(t.finalizeValue(t.evaluateAt(e, n, r)));
@@ -4095,7 +4095,7 @@ var co = class extends ie {
4095
4095
  _setReferenceNow(t, e, n, r) {
4096
4096
  const o = this._formulaAt(t, e);
4097
4097
  let s = r;
4098
- r && void 0 !== r.colStart ? s = ge(s, t, e) : r && void 0 !== r.colIndex && (s = xt(s, t, e));
4098
+ r && void 0 !== r.colStart ? s = ue(s, t, e) : r && void 0 !== r.colIndex && (s = xt(s, t, e));
4099
4099
  const l = o.value.formula.setReferenceAt(n, s).getTextAt(t, e);
4100
4100
  return this._land(void 0, () => {
4101
4101
  l ? this._setInputsNow(null, [{
@@ -4151,7 +4151,7 @@ var co = class extends ie {
4151
4151
  rowStart: u,
4152
4152
  colEnd: o,
4153
4153
  rowEnd: f,
4154
- value: new mt(g, 0, e.value.getKind())
4154
+ value: new V(g, 0, e.value.getKind())
4155
4155
  });
4156
4156
  }
4157
4157
  return {
@@ -4164,7 +4164,7 @@ var co = class extends ie {
4164
4164
  if (0 === o) return;
4165
4165
  const s = this._container, l = n ?? this._gridId, i = null != n ? l : e ?? l, a = s.getScope();
4166
4166
  a.gridId = i;
4167
- const c = e ? s.getSymbols().resolve(Pt.Sheet, e)?.toString() : void 0, d = this._context;
4167
+ const c = e ? s.getSymbols().resolve(Vt.Sheet, e)?.toString() : void 0, d = this._context;
4168
4168
  for (let n = 0; n < o; n++) {
4169
4169
  const o = t[n], h = o.value, u = h.ref, _ = h.formula.getTextAt(u.rowStart, u.colStart);
4170
4170
  a.colIndex = u.colStart, a.rowIndex = u.rowStart;
@@ -4200,7 +4200,7 @@ var co = class extends ie {
4200
4200
  if (p === Number.MIN_SAFE_INTEGER && (I = a, v = d), m === Number.MIN_SAFE_INTEGER && (y = c, x = h), I < a || v > d || y < c || x > h) {
4201
4201
  const o = a - I, g = c - y, p = d - v, m = h - x;
4202
4202
  yo.colStart = Math.max(s, s + o), yo.rowStart = Math.max(l, l + g), yo.colEnd = Math.min(i, i + p), yo.rowEnd = Math.min(u, u + m);
4203
- const w = Yt(t, yo, le);
4203
+ const w = Jt(t, yo, re);
4204
4204
  if (w) {
4205
4205
  const e = w.length;
4206
4206
  t = w[e - 1], n = t.value, r = n.ref, s = r.colStart, l = r.rowStart, i = r.colEnd, u = r.rowEnd;
@@ -4294,7 +4294,7 @@ var co = class extends ie {
4294
4294
  t.values.copyTo(E, {
4295
4295
  colIndex: n.colStart,
4296
4296
  rowIndex: n.rowStart
4297
- }, e), Kt(this._errorSpatial, E, n);
4297
+ }, e), Ge(this._errorSpatial, E, n);
4298
4298
  const I = t.spillSpatial;
4299
4299
  let y = [], v = [];
4300
4300
  for (let t = 0; t < f; t++) {
@@ -4307,7 +4307,7 @@ var co = class extends ie {
4307
4307
  const t = (t, e) => {
4308
4308
  t && this._notifySpillsInsert.push(t), e && this._notifySpillsRemove.push(e);
4309
4309
  };
4310
- fe(a.getCycleId(), v, r.EmptyArray, s._contentfulSpatial, s._spillSpatial, s._values, (t, e, n, r) => {
4310
+ K(a.getCycleId(), v, r.EmptyArray, s._contentfulSpatial, s._spillSpatial, s._values, (t, e, n, r) => {
4311
4311
  x.push({
4312
4312
  colStart: t,
4313
4313
  rowStart: e,
@@ -4353,7 +4353,7 @@ var co = class extends ie {
4353
4353
  }
4354
4354
  }
4355
4355
  e && (t = l.concat(e)), t.sort(o.columnFirstRangeComparator);
4356
- const n = new Ce.Builder((t, e) => new be.ArrayList(t.slice(0, e)));
4356
+ const n = new xe.Builder((t, e) => new Ce.ArrayList(t.slice(0, e)));
4357
4357
  let r;
4358
4358
  const i = !0 === this._container.getDeferred?.()?.hasHolders(), a = this._values, c = a.getAxis() === S.Axis.Column, d = t.length;
4359
4359
  for (let e = 0; e < d; e++) {
@@ -4452,7 +4452,7 @@ var co = class extends ie {
4452
4452
  let o = i[e];
4453
4453
  if (pt(s.rowStart, s.colStart, o) && (r || o.value.getCycleId() === t)) {
4454
4454
  p || (p = [], n = /* @__PURE__ */ new Set());
4455
- const t = he(o.colStart) + Jt(o.rowStart);
4455
+ const t = ae(o.colStart) + Xt(o.rowStart);
4456
4456
  if (n.has(t)) continue;
4457
4457
  n.add(t);
4458
4458
  const e = o.value.getBlockedCoords() ?? s;
@@ -4487,7 +4487,7 @@ var co = class extends ie {
4487
4487
  if (t && t.tuples) {
4488
4488
  I = t.tuples;
4489
4489
  let e = t.bounds;
4490
- if (e ? (y = Dt(e, f), y.scope = l) : y = {
4490
+ if (e ? (y = Ft(e, f), y.scope = l) : y = {
4491
4491
  colStart: Number.MIN_SAFE_INTEGER,
4492
4492
  rowStart: Number.MIN_SAFE_INTEGER,
4493
4493
  colEnd: Number.MAX_SAFE_INTEGER,
@@ -4510,7 +4510,7 @@ var co = class extends ie {
4510
4510
  t.minorStart = n[0];
4511
4511
  const r = n[1];
4512
4512
  t.minorEnd = t.minorStart + r.length - 1;
4513
- const s = Dt(t, f);
4513
+ const s = Ft(t, f);
4514
4514
  s.scope = l, x && c.search(s).length > 0 && x.push(s);
4515
4515
  }
4516
4516
  }
@@ -4522,7 +4522,7 @@ var co = class extends ie {
4522
4522
  };
4523
4523
  if (n || I) {
4524
4524
  let t;
4525
- n && (t = Et(n, g, _, w, C, !1, !0, this._notifyValues, (t, e, n, r) => {
4525
+ n && (t = wt(n, g, _, w, C, !1, !0, this._notifyValues, (t, e, n, r) => {
4526
4526
  E.push({
4527
4527
  colStart: t,
4528
4528
  rowStart: e,
@@ -4530,7 +4530,7 @@ var co = class extends ie {
4530
4530
  rowEnd: r,
4531
4531
  scope: l
4532
4532
  });
4533
- })), fe(-1, n ? [n] : r.EmptyArray, v, w, g, _, (t, e, n, r) => {
4533
+ })), K(-1, n ? [n] : r.EmptyArray, v, w, g, _, (t, e, n, r) => {
4534
4534
  E.push({
4535
4535
  colStart: t,
4536
4536
  rowStart: e,
@@ -4538,11 +4538,11 @@ var co = class extends ie {
4538
4538
  rowEnd: r,
4539
4539
  scope: l
4540
4540
  });
4541
- }, this._notifyValues, C, this._notifyCalcStatus, p, f, !1, this._circularSpatial, this._calcStatusSpatial), n && (_.delete(n), Re(p, n)), t?.(), I && (_.setValues(I), T(p, I, f));
4541
+ }, this._notifyValues, C, this._notifyCalcStatus, p, f, !1, this._circularSpatial, this._calcStatusSpatial), n && (_.delete(n), N(p, n)), t?.(), I && (_.setValues(I), st(p, I, f));
4542
4542
  }
4543
4543
  const b = i.getScope();
4544
- let A, R, k, N, M;
4545
- const F = (t, e) => {
4544
+ let A, R, k, M, F;
4545
+ const D = (t, e) => {
4546
4546
  const n = t.rowStart, r = t.colStart;
4547
4547
  b && (b.rowIndex = n, b.colIndex = r);
4548
4548
  const o = i.createFormulaBlock(l, a, e, n, r), c = new qr(t, l, o, i, this._unanchored), d = s?.arrayFixed;
@@ -4558,7 +4558,7 @@ var co = class extends ie {
4558
4558
  value: c
4559
4559
  };
4560
4560
  A || (A = []), A.push(h);
4561
- }, D = (t) => {
4561
+ }, T = (t) => {
4562
4562
  const e = {
4563
4563
  ...t,
4564
4564
  scope: l,
@@ -4570,12 +4570,12 @@ var co = class extends ie {
4570
4570
  R || (R = []);
4571
4571
  for (let t = 0; t < e.length; t++) {
4572
4572
  const n = e[t];
4573
- if (R.push(n), M) for (let t = M.length - 1; t >= 0; t--) M[t].value === n.value && M.splice(t, 1);
4573
+ if (R.push(n), F) for (let t = F.length - 1; t >= 0; t--) F[t].value === n.value && F.splice(t, 1);
4574
4574
  }
4575
4575
  const r = t ? t.length : 0;
4576
4576
  for (let e = 0; e < r; e++) {
4577
4577
  const n = t[e];
4578
- null !== n.value && (M || (M = []), M.push(n));
4578
+ null !== n.value && (F || (F = []), F.push(n));
4579
4579
  }
4580
4580
  }
4581
4581
  });
@@ -4585,27 +4585,27 @@ var co = class extends ie {
4585
4585
  B = z(u);
4586
4586
  for (let t = 0; t < u; t++) {
4587
4587
  const n = e[t], r = n.value, s = o.sanitizeRange(n);
4588
- B[t] = s, null !== r && F(s, r);
4588
+ B[t] = s, null !== r && D(s, r);
4589
4589
  }
4590
4590
  }
4591
4591
  const V = s?.cloneKey ?? null;
4592
4592
  (G > 0 || u > 0) && (k = i.getFormulas().clone(V));
4593
- for (let t = 0; t < G; t++) D(x[t]);
4594
- for (let t = 0; t < u; t++) D(B[t]);
4593
+ for (let t = 0; t < G; t++) T(x[t]);
4594
+ for (let t = 0; t < u; t++) T(B[t]);
4595
4595
  const O = R ? R.length : 0;
4596
4596
  if (O > 0) {
4597
4597
  const t = i.getDynamics();
4598
4598
  let e = null;
4599
4599
  for (let n = 0; n < O; n++) {
4600
4600
  const r = R[n].value, o = t.get(r);
4601
- o && (N || (N = i.getPrecedents().clone(V)), N.removeAll(o, bo), e || (e = new Map(t)), e.delete(r));
4601
+ o && (M || (M = i.getPrecedents().clone(V)), M.removeAll(o, bo), e || (e = new Map(t)), e.delete(r));
4602
4602
  }
4603
4603
  e && i.setDynamics(e);
4604
4604
  }
4605
4605
  let P = [];
4606
4606
  if (A || R) {
4607
- N || (N = i.getPrecedents().clone(V)), No(k, N, A, R), M && Fo(N, M, null);
4608
- const t = A ? this._joinInserted(k, N, A, (t) => {
4607
+ M || (M = i.getPrecedents().clone(V)), No(k, M, A, R), F && Fo(M, F, null);
4608
+ const t = A ? this._joinInserted(k, M, A, (t) => {
4609
4609
  E.push({
4610
4610
  colStart: t.colStart,
4611
4611
  rowStart: t.rowStart,
@@ -4614,8 +4614,8 @@ var co = class extends ie {
4614
4614
  scope: l
4615
4615
  });
4616
4616
  }) : null;
4617
- this._touchFormulas(R), this._touchFormulas(A), this._touchFormulas(M), this._touchFormulas(t);
4618
- const e = M ? function(t, ...e) {
4617
+ this._touchFormulas(R), this._touchFormulas(A), this._touchFormulas(F), this._touchFormulas(t);
4618
+ const e = F ? function(t, ...e) {
4619
4619
  const n = [];
4620
4620
  if (!t) return n;
4621
4621
  for (let r = 0; r < t.length; r++) {
@@ -4633,7 +4633,7 @@ var co = class extends ie {
4633
4633
  }
4634
4634
  return n;
4635
4635
  }(R, x, B) : R;
4636
- fe(-1, e, A, w, g, _, (t, e, n, r) => {
4636
+ K(-1, e, A, w, g, _, (t, e, n, r) => {
4637
4637
  E.push({
4638
4638
  colStart: t,
4639
4639
  rowStart: e,
@@ -4643,7 +4643,7 @@ var co = class extends ie {
4643
4643
  });
4644
4644
  }, this._notifyValues, C, this._notifyCalcStatus, p, f, !0, this._circularSpatial, this._calcStatusSpatial);
4645
4645
  }
4646
- if (N && i.setPrecedents(N), k && (A || R || M) && i.setFormulas(k), A) for (let t = 0; t < A.length; t++) {
4646
+ if (M && i.setPrecedents(M), k && (A || R || F) && i.setFormulas(k), A) for (let t = 0; t < A.length; t++) {
4647
4647
  const e = A[t];
4648
4648
  P.push({
4649
4649
  colStart: e.colStart,
@@ -4701,7 +4701,7 @@ var co = class extends ie {
4701
4701
  const s = n[o];
4702
4702
  if (!a(s) || !d(s)) continue;
4703
4703
  h = !1;
4704
- const l = Zt(c, s, (t, e, n, r) => {
4704
+ const l = Qt(c, s, (t, e, n, r) => {
4705
4705
  if (!a(t) || !a(e)) return;
4706
4706
  const o = {
4707
4707
  colStart: n.colStart,
@@ -4752,7 +4752,7 @@ var co = class extends ie {
4752
4752
  const e = t.data;
4753
4753
  this._values.setValues(e);
4754
4754
  const n = this._values.getAxis() === S.Axis.Column;
4755
- T(this._errorSpatial, e, n);
4755
+ st(this._errorSpatial, e, n);
4756
4756
  const r = H(e, n, this._gridId);
4757
4757
  this._contentfulSpatial.load(r);
4758
4758
  }
@@ -4765,9 +4765,9 @@ var co = class extends ie {
4765
4765
  if (c) {
4766
4766
  const t = c.length;
4767
4767
  for (let e = 0; e < t; e++) {
4768
- const t = c[e], n = t[0], r = Vt(n, s).split(":")[0];
4768
+ const t = c[e], n = t[0], r = D(n, s).split(":")[0];
4769
4769
  d.add(r);
4770
- const o = Wt(t, s);
4770
+ const o = jt(t, s);
4771
4771
  o && h.add(`${o.rowStart},${o.colStart}`);
4772
4772
  }
4773
4773
  }
@@ -4775,7 +4775,7 @@ var co = class extends ie {
4775
4775
  S.colIndex = 0, S.rowIndex = 0, S.gridId = e;
4776
4776
  const w = n.isLegacyIntersect();
4777
4777
  for (let t = 0; t < u; t++) {
4778
- const r = Wt(a[t], s);
4778
+ const r = jt(a[t], s);
4779
4779
  r.scope = e;
4780
4780
  const o = r.value, l = r.rowStart, i = r.colStart;
4781
4781
  S.colIndex = i, S.rowIndex = l;
@@ -4789,7 +4789,7 @@ var co = class extends ie {
4789
4789
  for (let t = 0; t < E; t++) {
4790
4790
  const n = g[t];
4791
4791
  if (m.isError(n)) continue;
4792
- const o = ce(b[t], mo[t], po[t]), s = o.$absColEnd, l = o.$absRowEnd, i = {
4792
+ const o = we(b[t], mo[t], po[t]), s = o.$absColEnd, l = o.$absRowEnd, i = {
4793
4793
  colStart: n.colStart,
4794
4794
  rowStart: n.rowStart,
4795
4795
  colEnd: n.colEnd + (s ? 0 : v),
@@ -4812,7 +4812,7 @@ var co = class extends ie {
4812
4812
  if (o.load(_), r.load(f), n.bumpCalcEpochs(!0), l.formulaInserts = this._formulaRecords(_), c) {
4813
4813
  const t = [], i = [], a = /* @__PURE__ */ new Map(), d = this._values, h = c.length;
4814
4814
  for (let n = 0; n < h; n++) {
4815
- const r = Wt(c[n], s), l = r.value ?? "dynamic", h = "error" === l, u = r.colStart, _ = r.rowStart;
4815
+ const r = jt(c[n], s), l = r.value ?? "dynamic", h = "error" === l, u = r.colStart, _ = r.rowStart;
4816
4816
  So.colStart = u, So.rowStart = _, So.colEnd = u, So.rowEnd = _, So.scope = e;
4817
4817
  const f = o.search(So);
4818
4818
  if (1 !== f.length) continue;
@@ -4822,13 +4822,13 @@ var co = class extends ie {
4822
4822
  colEnd: w,
4823
4823
  rowEnd: E
4824
4824
  };
4825
- "fixed" === l && (Ze(S).fixedRef = I, p.densify()), S.cachedValue = h ? m.BuiltIn.Spill : new ae(g, d, I);
4825
+ "fixed" === l && (Ze(S).fixedRef = I, p.densify()), S.cachedValue = h ? m.BuiltIn.Spill : new le(g, d, I);
4826
4826
  const y = {
4827
4827
  colStart: u,
4828
4828
  rowStart: _,
4829
4829
  colEnd: w,
4830
4830
  rowEnd: E,
4831
- value: new mt(I, 0, l)
4831
+ value: new V(I, 0, l)
4832
4832
  };
4833
4833
  i.push(y), t.push({
4834
4834
  colStart: u,
@@ -4836,7 +4836,7 @@ var co = class extends ie {
4836
4836
  colEnd: w,
4837
4837
  rowEnd: E,
4838
4838
  value: l
4839
- }), Te(a, S, I, -2);
4839
+ }), Fe(a, S, I, -2);
4840
4840
  }
4841
4841
  if (this._spillSpatial.load(i), a.size > 0) {
4842
4842
  r.load(Array.from(a.values()).flat()), n.bumpCalcEpochs(!1);
@@ -4853,12 +4853,12 @@ var co = class extends ie {
4853
4853
  t.add(e), e.state |= Vn, e.block.calcOnLoad = !0;
4854
4854
  }, r = new Array(y);
4855
4855
  for (let t = 0; t < y; t++) {
4856
- const n = I[t], l = D(n, s);
4856
+ const n = I[t], l = Ie(n, s);
4857
4857
  r[t] = { ...l };
4858
4858
  const i = o.search(l), a = i.length;
4859
4859
  for (let t = 0; t < a; t++) {
4860
4860
  const n = i[t];
4861
- et(n, l, e);
4861
+ nt(n, l, e);
4862
4862
  }
4863
4863
  }
4864
4864
  this._markDirtyRegionsNow(r), E = !0;
@@ -4936,7 +4936,7 @@ var co = class extends ie {
4936
4936
  }
4937
4937
  _toJSONNow(e) {
4938
4938
  let n = this._container.getFormulas().getSpatialAt(this._gridId)?.all(), r = n ? n.length : 0;
4939
- r > 0 && (n = we(n, t.Column, 2, Ao), n.sort(o.rowFirstRangeComparator)), r = n ? n.length : 0;
4939
+ r > 0 && (n = me(n, t.Column, 2, Ao), n.sort(o.rowFirstRangeComparator)), r = n ? n.length : 0;
4940
4940
  const s = this._hiddenRows, l = this._hiddenColumns, i = this._filtered;
4941
4941
  if (0 === r && !s && !l && !i) return null;
4942
4942
  const a = {};
@@ -4953,7 +4953,7 @@ var co = class extends ie {
4953
4953
  if (d > 0) {
4954
4954
  const t = this.getEntireCoords(), e = new Array(d);
4955
4955
  for (let n = 0; n < d; n++) {
4956
- const r = c[n], o = Qt(r, t);
4956
+ const r = c[n], o = ge(r, t);
4957
4957
  e[n] = [o, r.value.getKind()];
4958
4958
  }
4959
4959
  a.formulaArray = e;
@@ -4963,7 +4963,7 @@ var co = class extends ie {
4963
4963
  if (h.size > 0) {
4964
4964
  const t = h.values();
4965
4965
  let e = t.next();
4966
- const n = this._values.getAxis() === S.Axis.Column, r = Ht(!0);
4966
+ const n = this._values.getAxis() === S.Axis.Column, r = $t(!0);
4967
4967
  for (; !e.done;) {
4968
4968
  const o = e.value;
4969
4969
  if (e = t.next(), o.gridId !== u) continue;
@@ -4987,14 +4987,14 @@ var co = class extends ie {
4987
4987
  }
4988
4988
  };
4989
4989
  f.isEmpty() || n(f.all());
4990
- const r = g.isEmpty() ? [] : g.all().filter((t) => t.value === Se.CalcStatus.Working);
4991
- r.length > 0 && n(r), p.length > 0 && n(p), _ = we(e, t.Column, 2);
4990
+ const r = g.isEmpty() ? [] : g.all().filter((t) => t.value === pe.CalcStatus.Working);
4991
+ r.length > 0 && n(r), p.length > 0 && n(p), _ = me(e, t.Column, 2);
4992
4992
  }
4993
4993
  const m = _ ? _.length : 0;
4994
4994
  if (m > 0) {
4995
4995
  const t = new Array(m);
4996
4996
  for (let e = 0; e < m; e++) {
4997
- const n = _[e], r = Qt(n, this.getEntireCoords());
4997
+ const n = _[e], r = ge(n, this.getEntireCoords());
4998
4998
  t[e] = r;
4999
4999
  }
5000
5000
  a.volatile = t;
@@ -5108,25 +5108,25 @@ function Fo(t, e, n) {
5108
5108
  const s = [];
5109
5109
  for (let t = 0; t < o; t++) {
5110
5110
  const n = e[t], r = [], o = s.length;
5111
- ne(n, s, r), s.length > o && (n.value.registeredPrecedents = s.slice(o));
5111
+ Gt(n, s, r), s.length > o && (n.value.registeredPrecedents = s.slice(o));
5112
5112
  }
5113
5113
  t.load(s);
5114
5114
  }
5115
5115
  Co.fill(null, 0, 10);
5116
5116
  var Do = (t) => {
5117
5117
  let e = !1;
5118
- if (ve.forEachLeaf(t, (t, n, r, o) => {
5119
- if (e || t instanceof Ie) return;
5118
+ if (ye.forEachLeaf(t, (t, n, r, o) => {
5119
+ if (e || t instanceof Pt) return;
5120
5120
  let s = n + o - r;
5121
5121
  !0 === t.isIRepeatingList && (s = Math.min(s, n + t.getPeriod() - 1));
5122
- for (let r = n; !e && r <= s; r++) e = kt(t.at(r));
5122
+ for (let r = n; !e && r <= s; r++) e = Rt(t.at(r));
5123
5123
  }), !e) return t;
5124
5124
  const n = t.length, r = new Array(n);
5125
- for (let e = 0; e < n; e++) r[e] = M(t.at(e));
5126
- return new be.ArrayList(r);
5125
+ for (let e = 0; e < n; e++) r[e] = Ve(t.at(e));
5126
+ return new Ce.ArrayList(r);
5127
5127
  }, To = (t, e, n) => {
5128
5128
  const r = n?.fetchedFrom;
5129
- if (!t) return new V({
5129
+ if (!t) return new St({
5130
5130
  source: { buffer: e },
5131
5131
  fetchedFrom: r
5132
5132
  });
@@ -5167,13 +5167,13 @@ var Do = (t) => {
5167
5167
  }
5168
5168
  }
5169
5169
  _moved() {
5170
- G(), this._onMoved?.(this);
5170
+ T(), this._onMoved?.(this);
5171
5171
  }
5172
5172
  _final() {
5173
5173
  const t = this._onFinal;
5174
5174
  this._onFinal = null, t?.(this);
5175
5175
  }
5176
- }, Bo = (t) => t, Vo = (t, e) => K.fromJSON({
5176
+ }, Bo = (t) => t, Vo = (t, e) => G.fromJSON({
5177
5177
  type: t,
5178
5178
  data: e
5179
5179
  }), Oo = (t, e) => globalThis.fetch(t, e), Po = () => {
@@ -5289,7 +5289,7 @@ var Do = (t) => {
5289
5289
  }, t);
5290
5290
  }
5291
5291
  newHolder(t, e) {
5292
- return this._holders = !0, new at(t, e.calls, e.direct);
5292
+ return this._holders = !0, new ct(t, e.calls, e.direct);
5293
5293
  }
5294
5294
  defer(t, e, n = null, r = !1) {
5295
5295
  const o = this._scope, s = o.deferOrdinal++;
@@ -5365,7 +5365,7 @@ var Do = (t) => {
5365
5365
  const e = this._scope, n = e.node;
5366
5366
  if (!n || !this._holders || !e.gridId) return;
5367
5367
  let r = this._heldAt(e.gridId, e.rowIndex, e.colIndex);
5368
- return null === r && kt(n.cachedValue) && (r = n.cachedValue), null !== r ? r.calls[t] : void 0;
5368
+ return null === r && Rt(n.cachedValue) && (r = n.cachedValue), null !== r ? r.calls[t] : void 0;
5369
5369
  }
5370
5370
  }, Ho = (t, e) => {
5371
5371
  for (const n of t) n.isOpen() && n.reject(e);
@@ -5853,7 +5853,7 @@ var Yo = {
5853
5853
  const e = this.getRuns(t ? { bounds: t } : void 0);
5854
5854
  let n = e.next();
5855
5855
  if (n.done) return null;
5856
- const r = new Ce.Builder();
5856
+ const r = new xe.Builder();
5857
5857
  for (; !n.done;) r.pushMultipleAt(n.value[0], n.value[1], n.value[2]), n = e.next();
5858
5858
  return r.build();
5859
5859
  }
@@ -6201,7 +6201,7 @@ var hs = class {
6201
6201
  };
6202
6202
  const b = /* @__PURE__ */ new Map();
6203
6203
  this._addDynamicPrecedent = (t, e, n) => {
6204
- t?.block && (u.getScope().perCellRead = !0, -1 === n && (t.state |= Vn), Te(b, t, e, n));
6204
+ t?.block && (u.getScope().perCellRead = !0, -1 === n && (t.state |= Vn), Fe(b, t, e, n));
6205
6205
  };
6206
6206
  const A = /* @__PURE__ */ new Map(), R = (t, e) => {
6207
6207
  (function(t, e, n, r) {
@@ -6209,7 +6209,7 @@ var hs = class {
6209
6209
  let o, s, l, i = Ss, a = [];
6210
6210
  const c = /* @__PURE__ */ new Set(), d = () => {
6211
6211
  const t = o.build();
6212
- t && t.tuples && (l.values.setValues(t.tuples), T(l.errorSpatial, t.tuples, r));
6212
+ t && t.tuples && (l.values.setValues(t.tuples), st(l.errorSpatial, t.tuples, r));
6213
6213
  const e = s.done(!0);
6214
6214
  for (let t = 0; t < e.length; t++) {
6215
6215
  const n = e[t];
@@ -6235,7 +6235,7 @@ var hs = class {
6235
6235
  t.length = e, t.sort(Is);
6236
6236
  for (let h = 0; h < e; h++) {
6237
6237
  const e = t[h], u = e.colIndex, _ = e.rowIndex, f = e.gridId;
6238
- f || console.log("nodeGridId is null", e), f !== i && (i !== Ss && d(), o = new Ce.Builder(us), s = Ht(r), i = f, l = n(f));
6238
+ f || console.log("nodeGridId is null", e), f !== i && (i !== Ss && d(), o = new xe.Builder(us), s = $t(r), i = f, l = n(f));
6239
6239
  const g = u, p = _, m = e.cachedValue;
6240
6240
  m?.isIRange || (o.pushAt(g, p, m), s.append(g, p));
6241
6241
  const S = e.block, w = e.numFmt;
@@ -6256,7 +6256,7 @@ var hs = class {
6256
6256
  }
6257
6257
  });
6258
6258
  }
6259
- } else null !== w && (l.formatsConflating || (l.formatsConflating = Ht(r)), l.formatsConflating.append(g, p, w));
6259
+ } else null !== w && (l.formatsConflating || (l.formatsConflating = $t(r)), l.formatsConflating.append(g, p, w));
6260
6260
  }
6261
6261
  d();
6262
6262
  })(t, e, _, !0);
@@ -6326,7 +6326,7 @@ var hs = class {
6326
6326
  if (r?.isIRange && r.size > 1) {
6327
6327
  if (e.uncalculated) return;
6328
6328
  const o = t.rowIndex, s = t.colIndex;
6329
- return new ae(this._container.getRuntime(), n.getValues().clone(), {
6329
+ return new le(this._container.getRuntime(), n.getValues().clone(), {
6330
6330
  rowStart: o,
6331
6331
  colStart: s,
6332
6332
  rowEnd: o + r.getRowCount() - 1,
@@ -6525,7 +6525,7 @@ var hs = class {
6525
6525
  const e = r.deferCount;
6526
6526
  o = n.finalizeValueForCell(n.evaluateAt(t.rowIndex, t.colIndex)), r.deferCount !== e && (o = this._takeDeferred(t, o));
6527
6527
  } catch (e) {
6528
- if (!(e instanceof Ut)) throw e;
6528
+ if (!(e instanceof qt)) throw e;
6529
6529
  o = t.cachedValue ?? null;
6530
6530
  }
6531
6531
  return this._fitCell(e, o);
@@ -6563,11 +6563,11 @@ var hs = class {
6563
6563
  o.blankValue = e, o.blankCycleId = s, o.blankMarkId = l;
6564
6564
  const _ = o.getTouchedCached().blank, f = t.gridId, g = n.values, p = n.errorSpatial, m = this._container.getGrid(f);
6565
6565
  if (null !== m && null !== m.getShadowOf()) return void fs(_, n, f);
6566
- const w = g.getAxis() === S.Axis.Column, E = w ? S.Axis.Column : S.Axis.Row, I = Vs, v = Os;
6566
+ const w = g.getAxis() === S.Axis.Column, E = w ? S.Axis.Column : S.Axis.Row, I = Vs, y = Os;
6567
6567
  for (let t = 0; t < _.length; t++) {
6568
- const n = _[t], r = w ? n.colStart : n.rowStart, o = w ? n.colEnd : n.rowEnd, s = w ? n.rowStart : n.colStart, l = w ? n.rowEnd - n.rowStart + 1 : n.colEnd - n.colStart + 1, i = new Ve([e], l), a = new Array(o - r + 1);
6568
+ const n = _[t], r = w ? n.colStart : n.rowStart, o = w ? n.colEnd : n.rowEnd, s = w ? n.rowStart : n.colStart, l = w ? n.rowEnd - n.rowStart + 1 : n.colEnd - n.colStart + 1, i = new Be([e], l), a = new Array(o - r + 1);
6569
6569
  for (let t = r; t <= o; t++) a[t - r] = [t, [[s, i]]];
6570
- g.setValues(a), Re(p, n), T(p, a, w);
6570
+ g.setValues(a), N(p, n), st(p, a, w);
6571
6571
  const c = {
6572
6572
  colStart: n.colStart,
6573
6573
  rowStart: n.rowStart,
@@ -6577,10 +6577,10 @@ var hs = class {
6577
6577
  };
6578
6578
  I.push({
6579
6579
  ...c,
6580
- value: new y(c, E)
6581
- }), v.push(c);
6580
+ value: new at(c, E)
6581
+ }), y.push(c);
6582
6582
  }
6583
- n.contentfulSpatial.insertAllNonOverlapping(I), n.notifyValues.insertAllNonOverlapping(v), I.length = 0, v.length = 0, o.setBlankShared(_), this._dirtyBlankReaders(f, _, u === e ? h : null);
6583
+ n.contentfulSpatial.insertAllNonOverlapping(I), n.notifyValues.insertAllNonOverlapping(y), I.length = 0, y.length = 0, o.setBlankShared(_), this._dirtyBlankReaders(f, _, u === e ? h : null);
6584
6584
  }
6585
6585
  _dirtyBlankReaders(t, e, n) {
6586
6586
  if (null !== n && Dr(e, n)) return;
@@ -6922,7 +6922,7 @@ var hs = class {
6922
6922
  const e = this._cycleOf(i), n = l === tr;
6923
6923
  (n ? e.members : e.downstream).add(t), a = e.getEntry(n);
6924
6924
  }
6925
- s.shownGroup = i, t.state = t.state & ~Ln | l << 2, e.circularConflating || (e.circularConflating = Ht(o)), e.circularConflating.append(n, r, a);
6925
+ s.shownGroup = i, t.state = t.state & ~Ln | l << 2, e.circularConflating || (e.circularConflating = $t(o)), e.circularConflating.append(n, r, a);
6926
6926
  }
6927
6927
  _cycleOf(t) {
6928
6928
  let e = this._cycles.get(t);
@@ -7299,15 +7299,15 @@ var hs = class {
7299
7299
  const l = xs(), i = this._container, a = this._context, c = i.getScope(), d = a.getRuntime(), h = i.getDeferred?.() ?? null, u = s.values, _ = s.length;
7300
7300
  Rl = this._passCycleId, kl = this._passMarkId;
7301
7301
  const f = Ws;
7302
- let g, p, w, E, I, v, x, C, b, A, R, k, N, F = 0;
7303
- const D = /* @__PURE__ */ new Map();
7304
- this._overlays = D;
7305
- const G = (t) => this._overlayFor(t), B = (t) => {
7306
- R = i.getGrid(t), A = R.getEntireCoords.bind(R), p = e(t), w = p.gridId, N = G(t), E = p.values, k = p.errorSpatial, I = p.contentfulSpatial, v = p.spillSpatial, x = p.notifyValues, C = p.notifySpillsInsert, b = p.notifySpillsRemove, p.notifyFormats, p.notifyCalcStatus, c.gridId = w;
7307
- }, V = S.Axis.Column, O = V === S.Axis.Column, P = () => {
7308
- if (F > 0) {
7309
- n(f, F), F = 0;
7310
- for (const t of D.values()) t.reset();
7302
+ let g, p, w, E, I, y, v, x, C, b, A, R, k, M = 0;
7303
+ const F = /* @__PURE__ */ new Map();
7304
+ this._overlays = F;
7305
+ const D = (t) => this._overlayFor(t), T = (t) => {
7306
+ A = i.getGrid(t), b = A.getEntireCoords.bind(A), p = e(t), w = p.gridId, k = D(t), E = p.values, R = p.errorSpatial, I = p.contentfulSpatial, y = p.spillSpatial, v = p.notifyValues, x = p.notifySpillsInsert, C = p.notifySpillsRemove, p.notifyFormats, p.notifyCalcStatus, c.gridId = w;
7307
+ }, G = S.Axis.Column, O = G === S.Axis.Column, P = () => {
7308
+ if (M > 0) {
7309
+ n(f, M), M = 0;
7310
+ for (const t of F.values()) t.reset();
7311
7311
  void 0 !== w && (p = e(w));
7312
7312
  }
7313
7313
  };
@@ -7327,10 +7327,10 @@ var hs = class {
7327
7327
  }
7328
7328
  if (z && n.block.hasDataTable()) continue;
7329
7329
  const a = n.gridId;
7330
- a !== w && B(a);
7331
- const _ = n.block, S = _.representative === n && _.isBlankAware(t), D = n.cachedValue;
7330
+ a !== w && T(a);
7331
+ const _ = n.block, S = _.representative === n && _.isBlankAware(t), F = n.cachedValue;
7332
7332
  let $, H, j = !1;
7333
- "object" == typeof D && null !== D && (D.isIRange ? $ = D : m.isError(D, m.Code.Spill) && (H = D, j = !0));
7333
+ "object" == typeof F && null !== F && (F.isIRange ? $ = F : m.isError(F, m.Code.Spill) && (H = F, j = !0));
7334
7334
  const K = 0 !== (n.state & Bn);
7335
7335
  K && (n.state & Pn) !== Zn && (P(), this.doDemandEvaluate(t, e, this._demandBatch, P), c.gridId = a);
7336
7336
  const W = K ? null : en(n), q = n.inputsAt;
@@ -7344,11 +7344,11 @@ var hs = class {
7344
7344
  }
7345
7345
  const r = e.colStart, o = e.rowStart, s = e.colEnd, l = e.rowEnd;
7346
7346
  if (l !== o || r !== s) {
7347
- let a = e.scope, c = E, h = A, u = N, _ = R;
7348
- a && a !== w && (_ = i.getGrid(a), _ && (c = _.getValues(), u = G(a), h = _.getEntireCoords.bind(_)));
7347
+ let a = e.scope, c = E, h = b, u = k, _ = A;
7348
+ a && a !== w && (_ = i.getGrid(a), _ && (c = _.getValues(), u = D(a), h = _.getEntireCoords.bind(_)));
7349
7349
  let f = _;
7350
7350
  u.intersects(o, r, l, s) && (c = u, f = u);
7351
- const g = new ft(d, c, { ...e }, null, h, i.resolveScope);
7351
+ const g = new B(d, c, { ...e }, null, h, i.resolveScope);
7352
7352
  g._setErrorIndex(f), t[q + n] = g;
7353
7353
  }
7354
7354
  }
@@ -7358,7 +7358,7 @@ var hs = class {
7358
7358
  c.node = n, c.colIndex = s, c.rowIndex = l, c.drawIndex = 0;
7359
7359
  const J = _.formula;
7360
7360
  let Q, Y = null, Z = !1;
7361
- const tt = 4 & n.state ? 0 !== (n.state & Jn) ? Se.CalcStatus.Working : Se.CalcStatus.Waiting : 0;
7361
+ const tt = 4 & n.state ? 0 !== (n.state & Jn) ? pe.CalcStatus.Working : pe.CalcStatus.Waiting : 0;
7362
7362
  let et = tt;
7363
7363
  const nt = r ? 0 : tt, rt = n.ext;
7364
7364
  if (K && !this._iterate && 0 !== (n.state & zn)) null !== rt && (rt.demandValue = void 0), Q = Hs(n), et = 0;
@@ -7369,10 +7369,10 @@ var hs = class {
7369
7369
  } else {
7370
7370
  if (n.state = n.state & ~Pn | Yn, c.perCellRead = !1, c.positionRead = !1, 0 !== (n.state & Xn)) {
7371
7371
  n.state &= ~Xn;
7372
- const t = this._settlePass ? ms(E, v, l, s) : null;
7372
+ const t = this._settlePass ? ms(E, y, l, s) : null;
7373
7373
  if (null !== t && t.direct) {
7374
7374
  Z = !0, n.state &= -2621441;
7375
- const e = M(t);
7375
+ const e = Ve(t);
7376
7376
  e?.isIRange ? (Q = J.finalizeValueForCell(e), Y = t) : Q = t;
7377
7377
  }
7378
7378
  }
@@ -7382,105 +7382,105 @@ var hs = class {
7382
7382
  Q = J.evaluateAt(l, s), Q = J.finalizeValueForCell(Q), (c.perCellRead || c.positionRead) && (n.block.positionRead = !0), c.deferCount !== t && (Q = this._takeDeferred(n, Q), Y = this._spillHolder, this._spillHolder = null);
7383
7383
  }
7384
7384
  }
7385
- et = 0 !== (n.state & Un) ? Se.CalcStatus.Working : 0 !== (n.state & (Wn | qn)) ? Se.CalcStatus.Waiting : 0, 0 !== et && (n.state |= qn);
7385
+ et = 0 !== (n.state & Un) ? pe.CalcStatus.Working : 0 !== (n.state & (Wn | qn)) ? pe.CalcStatus.Waiting : 0, 0 !== et && (n.state |= qn);
7386
7386
  }
7387
7387
  let ot;
7388
- (n.state & Pn) !== Zn && (n.state = n.state & ~Pn | 768), et !== nt && (0 === et ? n.state &= ~(4 | Jn) : et === Se.CalcStatus.Working ? n.state |= 4 | Jn : n.state = (4 | n.state) & ~Jn, p.calcStatusConflating || (p.calcStatusConflating = Ht(O)), p.calcStatusConflating.append(X, U, 0 !== et && et)), K && N.takeDemand(l, s);
7389
- const st = n.ext, lt = null !== st ? st.fixedRef : null;
7390
- if ($ || H || lt) {
7388
+ (n.state & Pn) !== Zn && (n.state = n.state & ~Pn | 768), et !== nt && (0 === et ? n.state &= ~(4 | Jn) : et === pe.CalcStatus.Working ? n.state |= 4 | Jn : n.state = (4 | n.state) & ~Jn, p.calcStatusConflating || (p.calcStatusConflating = $t(O)), p.calcStatusConflating.append(X, U, 0 !== et && et)), K && k.takeDemand(l, s);
7389
+ const lt = n.ext, it = null !== lt ? lt.fixedRef : null;
7390
+ if ($ || H || it) {
7391
7391
  js.colStart = s, js.rowStart = l, js.colEnd = s, js.rowEnd = l;
7392
- const t = v.search(js);
7392
+ const t = y.search(js);
7393
7393
  for (let e = 0; !ot && e < t.length; e++) {
7394
7394
  const n = t[e];
7395
7395
  n.colStart === s && n.rowStart === l && (ot = n);
7396
7396
  }
7397
- if (ot && (v.remove(ot, bo), !ot || !ot.value.getError())) {
7397
+ if (ot && (y.remove(ot, bo), !ot || !ot.value.getError())) {
7398
7398
  const t = {
7399
7399
  ...ot,
7400
7400
  value: null
7401
7401
  };
7402
- I.insertNonOverlapping(t), E.delete(t), Re(k, t);
7402
+ I.insertNonOverlapping(t), E.delete(t), N(R, t);
7403
7403
  }
7404
7404
  }
7405
7405
  Q = this._fitCell(_, Q);
7406
- let it = 1, at = 1;
7407
- const ct = Q, dt = "object" == typeof Q && null !== Q, ut = dt && ct.isIRange;
7408
- let _t, gt = dt && m.isError(Q, m.Code.Spill);
7409
- if (lt) {
7410
- it = lt.colEnd - lt.colStart + 1, at = lt.rowEnd - lt.rowStart + 1;
7406
+ let ct = 1, dt = 1;
7407
+ const ut = Q, _t = "object" == typeof Q && null !== Q, ft = _t && ut.isIRange;
7408
+ let gt, pt = _t && m.isError(Q, m.Code.Spill);
7409
+ if (it) {
7410
+ ct = it.colEnd - it.colStart + 1, dt = it.rowEnd - it.rowStart + 1;
7411
7411
  const e = {
7412
- colStart: lt.colStart,
7413
- rowStart: lt.rowStart,
7414
- colEnd: lt.colEnd,
7415
- rowEnd: lt.rowEnd,
7412
+ colStart: it.colStart,
7413
+ rowStart: it.rowStart,
7414
+ colEnd: it.colEnd,
7415
+ rowEnd: it.rowEnd,
7416
7416
  scope: a
7417
7417
  }, r = rn(Q, e, O)?.tuples;
7418
- E.delete(e), r && E.setValues(r), Re(k, e), T(k, r, O), _t = {
7418
+ E.delete(e), r && E.setValues(r), N(R, e), st(R, r, O), gt = {
7419
7419
  ...e,
7420
- value: new mt(e, t, "fixed", Y)
7421
- }, v.insert(_t), i.addDynamicPrecedent(n, e, -2), I.insertNonOverlapping({
7420
+ value: new V(e, t, "fixed", Y)
7421
+ }, y.insert(gt), i.addDynamicPrecedent(n, e, -2), I.insertNonOverlapping({
7422
7422
  ...e,
7423
- value: new y(e, V)
7423
+ value: new at(e, G)
7424
7424
  });
7425
- } else if (ut && ct.size > 1) {
7426
- it = ct.getColumnCount(), at = ct.getRowCount();
7425
+ } else if (ft && ut.size > 1) {
7426
+ ct = ut.getColumnCount(), dt = ut.getRowCount();
7427
7427
  const e = {
7428
7428
  colStart: s,
7429
7429
  rowStart: l,
7430
- colEnd: s + it - 1,
7431
- rowEnd: l + at - 1,
7430
+ colEnd: s + ct - 1,
7431
+ rowEnd: l + dt - 1,
7432
7432
  scope: a
7433
- }, r = A(), c = !o.isRangeWithinRange(e, r);
7434
- if (c && (e.colEnd = Math.min(e.colEnd, r.colEnd), e.rowEnd = Math.min(e.rowEnd, r.rowEnd)), gt = c, !gt) {
7433
+ }, r = b(), c = !o.isRangeWithinRange(e, r);
7434
+ if (c && (e.colEnd = Math.min(e.colEnd, r.colEnd), e.rowEnd = Math.min(e.rowEnd, r.rowEnd)), pt = c, !pt) {
7435
7435
  const t = I.search(e);
7436
- if (gt = t.length > 1, !gt && 1 === t.length) {
7436
+ if (pt = t.length > 1, !pt && 1 === t.length) {
7437
7437
  const n = t[0], r = o.intersectRanges(e, n, Ns);
7438
- !r || r.rowEnd === r.rowStart && r.colStart === r.colEnd && r.colStart === s && r.rowStart === l || (gt = !0);
7438
+ !r || r.rowEnd === r.rowStart && r.colStart === r.colEnd && r.colStart === s && r.rowStart === l || (pt = !0);
7439
7439
  }
7440
7440
  }
7441
7441
  let d, h;
7442
- if (gt) Q = m.BuiltIn.Spill, it = 1, at = 1, d = [[X, [[U, [Q]]]]], E.setValues(d), T(k, d, O), h = {
7442
+ if (pt) Q = m.BuiltIn.Spill, ct = 1, dt = 1, d = [[X, [[U, [Q]]]]], E.setValues(d), st(R, d, O), h = {
7443
7443
  colStart: s,
7444
7444
  rowStart: l,
7445
7445
  colEnd: s,
7446
7446
  rowEnd: l
7447
7447
  };
7448
7448
  else {
7449
- const t = on(ct, X, U);
7450
- t && (d = t.tuples), E.delete(e), d && E.setValues(d), Re(k, e), T(k, d, O), h = e;
7449
+ const t = on(ut, X, U);
7450
+ t && (d = t.tuples), E.delete(e), d && E.setValues(d), N(R, e), st(R, d, O), h = e;
7451
7451
  }
7452
- const u = gt ? {
7452
+ const u = pt ? {
7453
7453
  colStart: s,
7454
7454
  rowStart: l,
7455
7455
  colEnd: s,
7456
7456
  rowEnd: l,
7457
7457
  scope: a
7458
7458
  } : e;
7459
- _t = {
7459
+ gt = {
7460
7460
  ...u,
7461
- value: new mt(u, t, gt ? "error" : "dynamic", Y, gt ? e : null)
7462
- }, v.insert(_t), i.addDynamicPrecedent(n, e, -2), I.insertNonOverlapping({
7461
+ value: new V(u, t, pt ? "error" : "dynamic", Y, pt ? e : null)
7462
+ }, y.insert(gt), i.addDynamicPrecedent(n, e, -2), I.insertNonOverlapping({
7463
7463
  ...h,
7464
- value: new y(h, V)
7464
+ value: new at(h, G)
7465
7465
  });
7466
7466
  }
7467
- !S || _.blankCycleId === t && _.blankMarkId === this._passMarkId || this._finalizeRepresentative(n, Q, p, 0 !== et || K || !0 === ut || gt || null !== lt || Z);
7468
- let pt = !1;
7469
- if ((ot || _t || gt || H) && (pt = o.isEqualRanges(ot, _t), ot && b.push(ot), _t && C.push(_t)), _t || ot) {
7467
+ !S || _.blankCycleId === t && _.blankMarkId === this._passMarkId || this._finalizeRepresentative(n, Q, p, 0 !== et || K || !0 === ft || pt || null !== it || Z);
7468
+ let mt = !1;
7469
+ if ((ot || gt || pt || H) && (mt = o.isEqualRanges(ot, gt), ot && C.push(ot), gt && x.push(gt)), gt || ot) {
7470
7470
  let t = 1, e = 1;
7471
7471
  ot && (t = ot.colEnd - ot.colStart + 1, e = ot.rowEnd - ot.rowStart + 1);
7472
7472
  const r = {
7473
7473
  colStart: s,
7474
7474
  rowStart: l,
7475
- colEnd: s + Math.max(it, t) - 1,
7476
- rowEnd: l + Math.max(at, e) - 1,
7475
+ colEnd: s + Math.max(ct, t) - 1,
7476
+ rowEnd: l + Math.max(dt, e) - 1,
7477
7477
  scope: a
7478
7478
  };
7479
- x.insertNonOverlapping(r), pt && gt === j || (this._invalidatePlans(), i.getPrecedents().search(r).length > 0 && (n.state |= 1, g || (g = new ht()), g.insertNonOverlapping(r)));
7479
+ v.insertNonOverlapping(r), mt && pt === j || (this._invalidatePlans(), i.getPrecedents().search(r).length > 0 && (n.state |= 1, g || (g = new ht()), g.insertNonOverlapping(r)));
7480
7480
  }
7481
- n.cachedValue = Q, f[F++] = n;
7482
- const St = null !== h && h.hasHolders() ? M(Q) : Q;
7483
- ut || lt || N.push(l, s, St), F >= (N.observed ? ws : Es) && P(), (0 !== (n.state & zn) || null !== n.ext && 0 !== n.ext.shownGroup) && this._trackCircular(n, p, X, U, O);
7481
+ n.cachedValue = Q, f[M++] = n;
7482
+ const St = null !== h && h.hasHolders() ? Ve(Q) : Q;
7483
+ ft || it || k.push(l, s, St), M >= (k.observed ? ws : Es) && P(), (0 !== (n.state & zn) || null !== n.ext && 0 !== n.ext.shownGroup) && this._trackCircular(n, p, X, U, O);
7484
7484
  const wt = n.dependents, Et = wt.length;
7485
7485
  if (Et > 0) {
7486
7486
  const t = !!(4 & n.state), e = !this._iterate && 0 !== (n.state & zn);
@@ -7511,7 +7511,7 @@ var hs = class {
7511
7511
  c.gridId = r.gridId;
7512
7512
  }
7513
7513
  c.node = null, c.colIndex = Number.MAX_SAFE_INTEGER, c.rowIndex = Number.MAX_SAFE_INTEGER, P();
7514
- for (const t of D.values()) t.commitDemand();
7514
+ for (const t of F.values()) t.commitDemand();
7515
7515
  this._flush = null, this._overlays = null;
7516
7516
  const $ = this._fallbackDirty;
7517
7517
  return null !== $ && (this._fallbackDirty = null, g ? g.insertAllNonOverlapping($.all()) : g = $), (() => {
@@ -7520,7 +7520,7 @@ var hs = class {
7520
7520
  Mn = 0;
7521
7521
  })(), this._planStats.evaluateMs += xs() - l, g;
7522
7522
  }
7523
- }, us = (t, e) => new be.ArrayList(t.slice(0, e));
7523
+ }, us = (t, e) => new Ce.ArrayList(t.slice(0, e));
7524
7524
  function _s(t, e, n, r, o, s) {
7525
7525
  const l = e.rowStart + n, i = e.rowStart + r, a = e.colStart + o, c = e.colStart + s;
7526
7526
  for (let e = 0; e < t.length; e++) {
@@ -7533,7 +7533,7 @@ function fs(t, e, n) {
7533
7533
  const r = e.values, o = e.errorSpatial, s = Vs, l = Os;
7534
7534
  for (let i = 0; i < t.length; i++) {
7535
7535
  const a = t[i];
7536
- r.delete(a), Re(o, a);
7536
+ r.delete(a), N(o, a);
7537
7537
  const c = {
7538
7538
  colStart: a.colStart,
7539
7539
  rowStart: a.rowStart,
@@ -7562,7 +7562,7 @@ function ps(t, e, n) {
7562
7562
  }
7563
7563
  var ms = (t, e, n, r) => {
7564
7564
  const o = t.getValueAt(n, r);
7565
- return kt(o) ? o : se(e, n, r);
7565
+ return Rt(o) ? o : ne(e, n, r);
7566
7566
  }, Ss = Symbol("unsetGridId"), ws = 1024, Es = 65536;
7567
7567
  function Is(t, e) {
7568
7568
  return t.scope !== e.scope ? null === t.scope ? -1 : null === e.scope ? 1 : t.scope.localeCompare(e.scope) : t.colIndex === e.colIndex ? t.rowIndex - e.rowIndex : t.colIndex - e.colIndex;
@@ -7638,7 +7638,7 @@ var Ns = {
7638
7638
  }, $s = (t) => {
7639
7639
  const e = t.ext;
7640
7640
  return null === e ? 0 : 0 !== (t.state & zn) ? e.cycleGroup : e.shownGroup;
7641
- }, Hs = (t) => M(t.cachedValue) ?? 0, js = {
7641
+ }, Hs = (t) => Ve(t.cachedValue) ?? 0, js = {
7642
7642
  rowStart: 0,
7643
7643
  colStart: 0,
7644
7644
  rowEnd: 0,
@@ -7696,14 +7696,14 @@ var Tl = {
7696
7696
  for (let e = 0; e < a.length; e++) {
7697
7697
  const c = a[e], d = c.getId(), h = c.getSheetNames();
7698
7698
  for (let t = 0; t < h.length; t++) {
7699
- const e = Ne(d, t);
7699
+ const e = Re(d, t);
7700
7700
  s.add(e), o && (n(e) ? this._loadedData.get(e) !== (c.getSheetData(t)?.data ?? null) && (r(e), this._registerSheet(c, t, e), i.add(d)) : (this._registerSheet(c, t, e), i.add(d)));
7701
7701
  }
7702
7702
  const u = c.getDefinedNames();
7703
7703
  for (let e = 0; e < u.length; e++) {
7704
7704
  const n = u[e];
7705
7705
  if (!n.name) continue;
7706
- const r = n.sheetIndex, o = Ne(d, void 0 !== r && r >= 0 && r < h.length ? r : -1), s = Vl(o, n.name);
7706
+ const r = n.sheetIndex, o = Re(d, void 0 !== r && r >= 0 && r < h.length ? r : -1), s = Vl(o, n.name);
7707
7707
  l.add(s);
7708
7708
  const a = this._namesByKey.get(s);
7709
7709
  if (a) {
@@ -7715,12 +7715,12 @@ var Tl = {
7715
7715
  } else this._registerName(c, o, n, t), i.add(d);
7716
7716
  }
7717
7717
  }
7718
- for (const t of this._registeredSheetGrids()) s.has(t) || (r(t), this._loadedData.delete(t), i.add(nt(t).bookId));
7718
+ for (const t of this._registeredSheetGrids()) s.has(t) || (r(t), this._loadedData.delete(t), i.add(Y(t).bookId));
7719
7719
  for (const [t, e] of this._namesByKey) {
7720
7720
  if (l.has(t)) continue;
7721
7721
  this._namesByKey.delete(t), this._namesById.delete(e.getId());
7722
7722
  const n = this._hostsById.get(e.getId());
7723
- this._hostsById.delete(e.getId()), n?.setPlaceholder(m.BuiltIn.Name.toString()), i.add(nt(e.getScope()).bookId);
7723
+ this._hostsById.delete(e.getId()), n?.setPlaceholder(m.BuiltIn.Name.toString()), i.add(Y(e.getScope()).bookId);
7724
7724
  }
7725
7725
  return i;
7726
7726
  }
@@ -7733,7 +7733,7 @@ var Tl = {
7733
7733
  _registeredSheetGrids() {
7734
7734
  const t = [];
7735
7735
  for (const e of this._options.gridIds()) {
7736
- const n = nt(e);
7736
+ const n = Y(e);
7737
7737
  n && n.sheetIndex >= 0 && t.push(e);
7738
7738
  }
7739
7739
  return t;
@@ -7749,7 +7749,7 @@ var Tl = {
7749
7749
  for (let t = 0; t < o.length; t++) {
7750
7750
  const [n, s] = o[t], l = s.length;
7751
7751
  for (let t = 0; t < l; t++) {
7752
- const o = U.fromJSONValue(s.at(t));
7752
+ const o = Ut.fromJSONValue(s.at(t));
7753
7753
  null != o && e.push({
7754
7754
  col: n + t,
7755
7755
  row: r,
@@ -7760,7 +7760,7 @@ var Tl = {
7760
7760
  }
7761
7761
  if (0 === e.length) return null;
7762
7762
  e.sort((t, e) => t.col - e.col || t.row - e.row);
7763
- const n = new Ce.Builder();
7763
+ const n = new xe.Builder();
7764
7764
  for (let t = 0; t < e.length; t++) n.pushAt(e[t].col, e[t].row, e[t].value);
7765
7765
  return n.build()?.tuples ?? null;
7766
7766
  }(o);
@@ -7781,7 +7781,7 @@ var Tl = {
7781
7781
  const { queue: l, recompileNamed: i } = this._options;
7782
7782
  let a = o.trim();
7783
7783
  a.startsWith("=") && (a = a.substring(1)), a || (a = m.BuiltIn.Ref.toString());
7784
- const c = nt(r), d = c.sheetIndex >= 0 ? c.sheetIndex : n.getSheetNames().length > 0 ? 0 : -1, h = Ne(c.bookId, d);
7784
+ const c = Y(r), d = c.sheetIndex >= 0 ? c.sheetIndex : n.getSheetNames().length > 0 ? 0 : -1, h = Re(c.bookId, d);
7785
7785
  l(async () => {
7786
7786
  this._hostsById.get(t) === e && e.setBody({
7787
7787
  coords: Ol,
@@ -7817,7 +7817,7 @@ var Tl = {
7817
7817
  deferOrdinal: 0,
7818
7818
  deferRoot: !1,
7819
7819
  deferServed: null
7820
- }, this._cycleId = 0, this._staticEpoch = 1, this._precedentEpoch = 1, this._epochSeenFormulas = null, this._epochSeenPrecedents = null, this._epochSeenDynamics = null, this._volatiles = /* @__PURE__ */ new Set(), this._calculatedCommitId = null, this._calculatedEngineId = null, this._holdsGrids = !1, this._engineIds = /* @__PURE__ */ new Map(), this._landingOf = /* @__PURE__ */ new Map(), this._mirroredId = null, this._lastRevert = null, this._symbolIndex = null, this._symbolIndexOf = null, this._sheetsDerived = null, this._tablesDerived = null, this._namesDerived = null, this._collecting = null, this._recompileNamedPending = null, this._recompileLoadedPending = null, this._invalidateNamedPending = null, this.resolveScope = (t) => this._symbols.resolve(Pt.Sheet, t)?.toString(), this._heldCloneKey = null, this._callbacks = t.callbacks, this._runtime = t.runtime, this._richData = t.richData ?? _e.DetachedContext, this._symbols = t.symbols, this._resolvers = t.resolvers, this._getSheetIndex = t.getSheetIndex ?? null, this._legacyIntersect = !0 === t.legacyIntersect, this._gridOptions = t.gridOptions ?? {}, this._calculation = t.calculation;
7820
+ }, this._cycleId = 0, this._staticEpoch = 1, this._precedentEpoch = 1, this._epochSeenFormulas = null, this._epochSeenPrecedents = null, this._epochSeenDynamics = null, this._volatiles = /* @__PURE__ */ new Set(), this._calculatedCommitId = null, this._calculatedEngineId = null, this._holdsGrids = !1, this._engineIds = /* @__PURE__ */ new Map(), this._landingOf = /* @__PURE__ */ new Map(), this._mirroredId = null, this._lastRevert = null, this._symbolIndex = null, this._symbolIndexOf = null, this._sheetsDerived = null, this._tablesDerived = null, this._namesDerived = null, this._collecting = null, this._recompileNamedPending = null, this._recompileLoadedPending = null, this._invalidateNamedPending = null, this.resolveScope = (t) => this._symbols.resolve(Vt.Sheet, t)?.toString(), this._heldCloneKey = null, this._callbacks = t.callbacks, this._runtime = t.runtime, this._richData = t.richData ?? de.DetachedContext, this._symbols = t.symbols, this._resolvers = t.resolvers, this._getSheetIndex = t.getSheetIndex ?? null, this._legacyIntersect = !0 === t.legacyIntersect, this._gridOptions = t.gridOptions ?? {}, this._calculation = t.calculation;
7821
7821
  const e = t.replica;
7822
7822
  this._updateState({
7823
7823
  gridsAll: /* @__PURE__ */ new Map(),
@@ -7837,7 +7837,7 @@ var Tl = {
7837
7837
  dynamicByBlock: /* @__PURE__ */ new Map(),
7838
7838
  dirtySpatial: new _n()
7839
7839
  }), t.modelCommitId && this.mirror(t.modelCommitId), this._context = new Yr(this, S.Axis.Column, t.functions), this._deferred = new $o(this._calcScope, (t, e, n) => this._holderAt(t, e, n), () => this._runtime.getRandom(), () => this._settle(), void 0, (t, e) => this._normalizeResult(t, e), {
7840
- createRichData: (t, e) => K.fromJSON({
7840
+ createRichData: (t, e) => G.fromJSON({
7841
7841
  type: t,
7842
7842
  data: e
7843
7843
  }, this._richData),
@@ -7925,7 +7925,7 @@ var Tl = {
7925
7925
  const r = this.getGrid(t);
7926
7926
  if (!r) return null;
7927
7927
  const o = r.getValues().getValueAt(e, n);
7928
- return kt(o) ? o : se(r.getSpills(), e, n);
7928
+ return Rt(o) ? o : ne(r.getSpills(), e, n);
7929
7929
  }
7930
7930
  _settleNow() {
7931
7931
  const t = this._deferred, e = t.takeMoved();
@@ -7945,7 +7945,7 @@ var Tl = {
7945
7945
  if (null === _ || !o.isLiveNode(_)) continue;
7946
7946
  const f = _.gridId, g = n.gridsAll.get(f);
7947
7947
  if (!g) continue;
7948
- const p = _.rowIndex, S = _.colIndex, w = g.getValues().getValueAt(p, S), E = kt(w), I = E ? w : se(g.getSpills(), p, S);
7948
+ const p = _.rowIndex, S = _.colIndex, w = g.getValues().getValueAt(p, S), E = Rt(w), I = E ? w : ne(g.getSpills(), p, S);
7949
7949
  if (null === I || I.calls.indexOf(u) < 0) continue;
7950
7950
  if (!I.direct) {
7951
7951
  c.add(_), i(s, f).add(p, S);
@@ -7998,7 +7998,7 @@ var Tl = {
7998
7998
  }), s[t] = {
7999
7999
  ...e,
8000
8000
  value: !1
8001
- }, Re(r.errorSpatial, e);
8001
+ }, N(r.errorSpatial, e);
8002
8002
  }
8003
8003
  r.notifyCalcStatus.load(s);
8004
8004
  for (const [t, e] of n.errors) r.errorSpatial.load(jl(e).map((e) => ({
@@ -8024,8 +8024,8 @@ var Tl = {
8024
8024
  createFormulaBlock(t, e, n, r, o, s, l) {
8025
8025
  const i = this._callbacks.getCompiler(s);
8026
8026
  if (!i) throw new Error("The calculation engine has not started; nothing can compile yet.");
8027
- const a = nt(t)?.bookId ?? null, c = a ? null : nt(this._externalBindings.getNameById(t)?.getScope() ?? "")?.bookId ?? null;
8028
- return new En(i.compile(e.getRuntime(), r, o, n, this._symbols, (t) => e.getFunction(t), a ?? c ? Ne(a ?? c, -1) : this.getSheetName(t), l, a ? { book: a } : void 0), e, this._calcScope, t, () => this.getGrid(t)?.getEntireCoords() ?? null, this._resolvers);
8027
+ const a = Y(t)?.bookId ?? null, c = a ? null : Y(this._externalBindings.getNameById(t)?.getScope() ?? "")?.bookId ?? null;
8028
+ return new En(i.compile(e.getRuntime(), r, o, n, this._symbols, (t) => e.getFunction(t), a ?? c ? Re(a ?? c, -1) : this.getSheetName(t), l, a ? { book: a } : void 0), e, this._calcScope, t, () => this.getGrid(t)?.getEntireCoords() ?? null, this._resolvers);
8029
8029
  }
8030
8030
  getSymbols() {
8031
8031
  return this._symbols;
@@ -8042,15 +8042,15 @@ var Tl = {
8042
8042
  return this._sheetsCache().ids;
8043
8043
  }
8044
8044
  getSheetSpanIds(t) {
8045
- const e = Rt(t);
8045
+ const e = yt(t);
8046
8046
  if (e) {
8047
8047
  const t = this.getSheetIds(), n = t.indexOf(e[0]), r = t.indexOf(e[1]);
8048
8048
  return -1 === n || -1 === r ? null : t.slice(Math.min(n, r), Math.max(n, r) + 1);
8049
8049
  }
8050
- const n = nt(t);
8050
+ const n = Y(t);
8051
8051
  if (!n || n.sheetEnd === n.sheetIndex) return null;
8052
8052
  const r = [];
8053
- for (let t = n.sheetIndex; t <= n.sheetEnd; t++) r.push(Ne(n.bookId, t));
8053
+ for (let t = n.sheetIndex; t <= n.sheetEnd; t++) r.push(Re(n.bookId, t));
8054
8054
  return r;
8055
8055
  }
8056
8056
  getFormulas() {
@@ -8159,7 +8159,7 @@ var Tl = {
8159
8159
  }
8160
8160
  markDirty(t) {
8161
8161
  const e = this._getState(), n = e.dirtySpatial.clone(this._heldCloneKey), r = e.precedentSpatial, o = e.formulaSpatial;
8162
- let s = !1, l = we(t, S.Axis.Column, 2);
8162
+ let s = !1, l = me(t, S.Axis.Column, 2);
8163
8163
  for (let t = 0; t < l.length; t++) {
8164
8164
  const e = l[t];
8165
8165
  (r?.has(e) || o?.has(e)) && (s = !0, n.insertNonOverlapping(e));
@@ -8361,7 +8361,7 @@ var Tl = {
8361
8361
  }), e;
8362
8362
  }
8363
8363
  createEngineGrid(t) {
8364
- const e = t.id, n = t.sizeOf, r = t.entireCoords, o = void 0 !== n ? () => this.getGrid(n)?.getEntireCoords() ?? bt : r ? () => r : void 0, s = this._callbacks;
8364
+ const e = t.id, n = t.sizeOf, r = t.entireCoords, o = void 0 !== n ? () => this.getGrid(n)?.getEntireCoords() ?? j : r ? () => r : void 0, s = this._callbacks;
8365
8365
  return this.createBackendGrid({
8366
8366
  uuid: e,
8367
8367
  shadowOf: t.shadowOf,
@@ -8409,15 +8409,15 @@ var Tl = {
8409
8409
  switch (n.type) {
8410
8410
  case "sheets": return this.applySheets(n.sheets), {
8411
8411
  cycleId: this._cycleId,
8412
- commitId: N(n)
8412
+ commitId: k(n)
8413
8413
  };
8414
8414
  case "tables": return this.applyTables(n.changes), {
8415
8415
  cycleId: this._cycleId,
8416
- commitId: N(n)
8416
+ commitId: k(n)
8417
8417
  };
8418
8418
  case "names": return this.applyNames(n.changes), {
8419
8419
  cycleId: this._cycleId,
8420
- commitId: N(n)
8420
+ commitId: k(n)
8421
8421
  };
8422
8422
  case "nameGraph": return {
8423
8423
  cycleId: this._cycleId,
@@ -8430,7 +8430,7 @@ var Tl = {
8430
8430
  const o = this.getGrid(t);
8431
8431
  return o ? r ? o._apply(n, this.getCurrentCommitId(), !0) : o._apply(n, e) : {
8432
8432
  cycleId: this._cycleId,
8433
- commitId: N(n)
8433
+ commitId: k(n)
8434
8434
  };
8435
8435
  }
8436
8436
  applyHeld(t, e) {
@@ -8495,7 +8495,7 @@ var Tl = {
8495
8495
  return l;
8496
8496
  }
8497
8497
  followRestore(t, e) {
8498
- return e === $.Status.Off || e === $.Status.Error ? (this.retarget(t), !1) : e !== $.Status.Running ? (null !== this.restoreTo(t) || this.holdsModelCommit(t) || this.retarget(t), !1) : this.holdsModelCommit(t) ? (this.restoreTo(t), !1) : (this.retarget(t), !0);
8498
+ return e === he.Status.Off || e === he.Status.Error ? (this.retarget(t), !1) : e !== he.Status.Running ? (null !== this.restoreTo(t) || this.holdsModelCommit(t) || this.retarget(t), !1) : this.holdsModelCommit(t) ? (this.restoreTo(t), !1) : (this.retarget(t), !0);
8499
8499
  }
8500
8500
  rebuild(t) {
8501
8501
  this.drop(), this.setReplica(t), this.open();
@@ -8527,13 +8527,13 @@ var Tl = {
8527
8527
  if (u.deferCount !== l) {
8528
8528
  const t = this._deferred, e = t.endEvaluation();
8529
8529
  o.cachedValue = e.calls.length > 0 ? t.newHolder(a, e) : void 0, t.flush();
8530
- } else kt(o.cachedValue) && (o.cachedValue = void 0);
8530
+ } else Rt(o.cachedValue) && (o.cachedValue = void 0);
8531
8531
  let c = tn(t.finalizeValue(a));
8532
8532
  return null === c && (c = 0), !r || c?.isIRange || Array.isArray(c) ? c : i.createRange(1, 1, c);
8533
8533
  },
8534
8534
  getCalls: () => {
8535
8535
  const t = f.getAnchorNode().cachedValue;
8536
- return kt(t) ? t.calls : r.EmptyArray;
8536
+ return Rt(t) ? t.calls : r.EmptyArray;
8537
8537
  }
8538
8538
  };
8539
8539
  }
@@ -8550,7 +8550,7 @@ var Tl = {
8550
8550
  for (let t = 0; t < n.length; t++) {
8551
8551
  const r = n[t].value;
8552
8552
  if (null == r.gridId) continue;
8553
- if (Ot(r.gridId) || this._externalBindings.getNameById(r.gridId)) continue;
8553
+ if (oe(r.gridId) || this._externalBindings.getNameById(r.gridId)) continue;
8554
8554
  const o = r.getReferencedSymbolIds();
8555
8555
  if (0 === o.length) continue;
8556
8556
  const s = r.ref, l = {
@@ -8613,10 +8613,10 @@ var Tl = {
8613
8613
  e ? e.push(l[t]) : s.set(u, [l[t]]);
8614
8614
  continue;
8615
8615
  }
8616
- const _ = null != u && !n.isDefinedName(u) && !Ot(u) && !this._externalBindings.getNameById(u);
8616
+ const _ = null != u && !n.isDefinedName(u) && !oe(u) && !this._externalBindings.getNameById(u);
8617
8617
  if (h && _) for (let t = 0; t < o.length; t++) {
8618
8618
  const [e, n] = o[t];
8619
- a.includes(e) && (h = h.replaceTableReferences(e, (t) => It(t, n) ? Ae() : null));
8619
+ a.includes(e) && (h = h.replaceTableReferences(e, (t) => vt(t, n) ? be() : null));
8620
8620
  }
8621
8621
  const f = h && h !== i.formula ? h.getTextAt(d.rowStart, d.colStart) : i.getTextAt(d.rowStart, d.colStart);
8622
8622
  this._writeBlockText(i, f);
@@ -8624,7 +8624,7 @@ var Tl = {
8624
8624
  if (s) for (const [t, e] of s) this.getGrid(t)?._rederivePrecedentsNow(e);
8625
8625
  }
8626
8626
  refitTableRows(t, e, n, r, s) {
8627
- const l = this._symbols.bind(Pt.Sheet, t);
8627
+ const l = this._symbols.bind(Vt.Sheet, t);
8628
8628
  if (!l) return;
8629
8629
  const i = this._getState().precedentSpatial.search({
8630
8630
  colStart: e.colStart,
@@ -8638,7 +8638,7 @@ var Tl = {
8638
8638
  const e = i[t].value;
8639
8639
  if (e.index < 0) continue;
8640
8640
  const n = e.formulaEntry.value, r = n.gridId;
8641
- if (null == r || Ot(r) || this._externalBindings.getNameById(r)) continue;
8641
+ if (null == r || oe(r) || this._externalBindings.getNameById(r)) continue;
8642
8642
  const o = (a ??= /* @__PURE__ */ new Map()).get(n);
8643
8643
  o ? o.includes(e.index) || o.push(e.index) : a.set(n, [e.index]);
8644
8644
  }
@@ -8704,11 +8704,11 @@ var Tl = {
8704
8704
  }
8705
8705
  }
8706
8706
  rewriteTableReferences(t, e) {
8707
- const n = (t) => e ? j(t, e) : Ae(), r = this._callbacks, o = this._getState().formulaSpatial.all3D();
8707
+ const n = (t) => e ? W(t, e) : be(), r = this._callbacks, o = this._getState().formulaSpatial.all3D();
8708
8708
  for (let e = 0; e < o.length; e++) {
8709
8709
  const s = o[e].value, l = s.gridId;
8710
8710
  if (null == l || !s.getReferencedSymbolIds().includes(t)) continue;
8711
- if (r.isDefinedName(l) || Ot(l) || this._externalBindings.getNameById(l)) continue;
8711
+ if (r.isDefinedName(l) || oe(l) || this._externalBindings.getNameById(l)) continue;
8712
8712
  const i = s.formula, a = i?.replaceTableReferences(t, n);
8713
8713
  if (!a || a === i) continue;
8714
8714
  const c = s.ref;
@@ -9089,7 +9089,7 @@ var Tl = {
9089
9089
  scope: void 0
9090
9090
  }, $l = class {
9091
9091
  constructor(t) {
9092
- this._unordered = null, this._lastMajor = -1, this._lastMinor = -1, this._isColumn = t, this._conflating = Ht(t);
9092
+ this._unordered = null, this._lastMajor = -1, this._lastMinor = -1, this._isColumn = t, this._conflating = $t(t);
9093
9093
  }
9094
9094
  add(t, e) {
9095
9095
  const n = this._unordered;
@@ -9118,7 +9118,7 @@ var Tl = {
9118
9118
  colEnd: t.colEnd,
9119
9119
  rowEnd: t.rowEnd
9120
9120
  }), jl = (t) => {
9121
- const e = we(t, S.Axis.Column, 2), n = new Array(e.length);
9121
+ const e = me(t, S.Axis.Column, 2), n = new Array(e.length);
9122
9122
  for (let t = 0; t < e.length; t++) {
9123
9123
  const r = e[t];
9124
9124
  n[t] = {