@sheetxl/sdk 0.8.0-beta.12 → 0.8.0-beta.14

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 (292) hide show
  1. package/THIRD-PARTY-NOTICES.md +172 -0
  2. package/browser/esm/{CBYMTDzMf1Vh7pkw.mjs → 3t4S9eda2I6jFad0.mjs} +1 -1
  3. package/browser/esm/{Bg5Di9GLNAkbqQ1P.mjs → AXlD9K1gCwPU4gCO.mjs} +1926 -1298
  4. package/browser/esm/{w6Jea0TiclPrYZ2M.mjs → B1aH_qa-czVyEVHd.mjs} +509 -509
  5. package/browser/esm/{DZiivy0NmO1Vnyzk.mjs → BEDfJP2tcuRy2Y2E.mjs} +2 -2
  6. package/browser/esm/{BdCJNawfifyPupCP.mjs → BLYl-afJe_3std8i.mjs} +1 -1
  7. package/browser/esm/{D2RZh0O9neOsyLAE.mjs → BPPMKyMn65i1a1mE.mjs} +69 -48
  8. package/browser/esm/{yuhcOYw6SHQ-RCm3.mjs → BSXQAXwZdJKYTO4P.mjs} +30 -30
  9. package/browser/esm/{-Jx-jNHmtIQQfLvK.mjs → BVqIknGhQCLUB_7Q.mjs} +1 -1
  10. package/browser/esm/{fXWUMDhZ5yMSO629.mjs → BWoz4kQdA5KKJfl6.mjs} +1 -1
  11. package/browser/esm/{DwwR3O2sEZApPSTF.mjs → Bdcd3QOzsc0aVMjN.mjs} +3 -3
  12. package/browser/esm/{2mIwPy2D2JUX-9wx.mjs → BpwULQPKbb4R9Jew.mjs} +2 -2
  13. package/browser/esm/{CwOPLXU3-9ZHGyOT.mjs → C7hpfT-sX2lyLS-D.mjs} +1 -1
  14. package/browser/esm/{BIHrHjRGWVlJglcp.mjs → CImFKFaYToUH-bSE.mjs} +2 -2
  15. package/browser/esm/{BTFBedJMRWGvZyCE.mjs → CM_X1zZYzEUPaNJL.mjs} +1 -1
  16. package/browser/esm/CPIWV3Enlh_BF2TY.mjs +19 -0
  17. package/browser/esm/{CndRBvVfQUJIYRRj.mjs → ChYgQL-8qIDFmX31.mjs} +50 -50
  18. package/browser/esm/{BudSIfXBAsTxvu-K.mjs → CtC__ALh4I8PKIln.mjs} +10071 -9246
  19. package/browser/esm/{qO-ujUrgq6H3TQix.mjs → Cy8uYCggktF83278.mjs} +1 -1
  20. package/browser/esm/D2NFcBM4xsv0JJ1q.mjs +184 -0
  21. package/browser/esm/{D9xNz46kAfXMZzp4.mjs → D39XcmtPXVtMN4yF.mjs} +2 -2
  22. package/browser/esm/{CdEO8CEee6lEhabA.mjs → DBvu0tdSf-5vol4e.mjs} +2 -2
  23. package/browser/esm/{Tah7cnFb_HNZdLtj.mjs → DIfAk63CvaOZ3QKi.mjs} +3 -3
  24. package/browser/esm/{B3wf5vZCsWfWsDbj.mjs → D_XMi4_5iO2rkET5.mjs} +1 -1
  25. package/browser/esm/{DgrAuRD2qr2DvFeJ.mjs → Dh84MDs-OhdCPCIg.mjs} +44 -44
  26. package/browser/esm/{DPhGQLNGmDZwODwJ.mjs → Dhw5XEJYFrkYjdU2.mjs} +94 -94
  27. package/browser/esm/{Cxjxk0ncRKx80I-w.mjs → DiXeQjc0WJGLSVEo.mjs} +1 -1
  28. package/browser/esm/DnR0xY7_iE3TmMcg.mjs +348 -0
  29. package/browser/esm/{DK899HhWX1HINMC1.mjs → DnqwX3-2NfGBaXXl.mjs} +25 -25
  30. package/browser/esm/{D64dM68B1pKYFzdP.mjs → DonQz2Tc3k9lNT8E.mjs} +2 -2
  31. package/browser/esm/{Bt8_m94tBdks209L.mjs → DvvqmUQ9Z0NFm1-4.mjs} +1 -1
  32. package/browser/esm/{BnC4-27Igwb8oDf2.mjs → Ln4gsmhqH1LyoANj.mjs} +44 -43
  33. package/browser/esm/{CUzYuYTTGsChC_kZ.mjs → MuNBN02MyZ558c_K.mjs} +2052 -1583
  34. package/browser/esm/{CRkYR-siY2C994KV.mjs → SwLp-iElwDjfcJtv.mjs} +1 -1
  35. package/browser/esm/{C9u8FUewte5ugUjH.mjs → UMQTbO0zNmBpzW1V.mjs} +725 -716
  36. package/browser/esm/aRXqxIzjuSLwawMh.mjs +18 -0
  37. package/browser/esm/index.mjs +482 -440
  38. package/browser/esm/{hCQJcmIzPDxDEv2q.mjs → oSCy1X5CJ1iYtGDp.mjs} +2 -2
  39. package/browser/esm/{DobHLF6VjHr7Xi40.mjs → qCqzZW74-fhaIG2V.mjs} +1 -1
  40. package/browser/esm/{CNdjyofiRu6CYOrr.mjs → r_EZapMBdyS4gUd-.mjs} +50 -48
  41. package/browser/esm/yuF8SbWfjBfrxcq5.mjs +367 -0
  42. package/licenses/dependencies.txt +71 -1
  43. package/node/esm/99miMotf3dOuG5Jk.mjs +372 -0
  44. package/node/esm/{-TA0MneBDKdGhsib.mjs → B3hBxzqJ2_hUylNr.mjs} +3329 -2852
  45. package/node/esm/{BNXLOEddJ6O9gYws.mjs → B5VmOC0jO9Zbh9Mq.mjs} +2 -2
  46. package/node/esm/{DhS6yWjrrSNIJMsn.mjs → B6jhx5pHPs2W5GE7.mjs} +234 -225
  47. package/node/esm/{DUTmDHbFbhLDT4F3.mjs → BCjHRVU8tC5lYypg.mjs} +1 -1
  48. package/node/esm/BEBt5fo__rvT2q_u.mjs +310 -0
  49. package/node/esm/{icn2nX5Z8e_3mNAv.mjs → BELc5aQ_pFPgbiso.mjs} +1 -1
  50. package/node/esm/{DrCf6ITcBhVOFpRj.mjs → BEdxa3I4VOiCsvy7.mjs} +7 -7
  51. package/node/esm/{D3ptRKzASqBut1DE.mjs → BLPrFp_jKGYgWPX1.mjs} +2 -2
  52. package/node/esm/{BskP3b8vUoIOGLY6.mjs → BSVttk12GXNfKZ9k.mjs} +2 -2
  53. package/node/esm/{D4ROK9UwDpS6jO3Z.mjs → BXg-D8Rc_iyB8p7X.mjs} +1 -1
  54. package/node/esm/{DV5CU37aEbFbWFL0.mjs → BfEdeOg4iYXaYTlh.mjs} +1 -1
  55. package/node/esm/BuyAYLI4s33-vmgG.mjs +18 -0
  56. package/node/esm/{C_xf5Bz30VqiJjXn.mjs → C-5JLSNof0FhkuFd.mjs} +1 -1
  57. package/node/esm/{eimUGjiIP-b8HiM6.mjs → C3S4hF1vn0NyJPPd.mjs} +52 -52
  58. package/node/esm/{BL2iiEoqxDEV2Xrg.mjs → CI8UIWR01z9QDlzH.mjs} +3348 -2610
  59. package/node/esm/{pYtP7wPyS96NQyXS.mjs → CPsGyt3vnOdLTShj.mjs} +25 -25
  60. package/node/esm/{CG-qBU5BAaVz7e-P.mjs → Ccocd9DTvOnlOE9D.mjs} +1 -1
  61. package/node/esm/{C14-R6tifRh7pc0p.mjs → CdSTmD2ZvG9NesNR.mjs} +1 -1
  62. package/node/esm/{Q_S1g46ZOTrdhTae.mjs → Crn6dnSQQRCQAnQ-.mjs} +1 -1
  63. package/node/esm/{DdoiuKg9BKubtF1V.mjs → Cyeq1rDslIqF1LKz.mjs} +1 -1
  64. package/node/esm/{Ci_zLYmCD7e-C79O.mjs → D30rC6AWaGGf3CaC.mjs} +1 -1
  65. package/node/esm/D4Y1WJgjiFEgbWrW.mjs +115 -0
  66. package/node/esm/{Vocy-I9dKzZMr0Ct.mjs → DLdXl0O0TXuyqLU4.mjs} +10898 -10685
  67. package/node/esm/{D8hO07ToAibIuniw.mjs → DbPUG2DcQ3T_QhcJ.mjs} +138 -136
  68. package/node/esm/{lGJ42sHqg5if2bba.mjs → DeFE8QfuCeGw-mvd.mjs} +458 -458
  69. package/node/esm/{CiIymQN6aJCul62g.mjs → DiCMnYA2bttmrX3q.mjs} +9 -9
  70. package/node/esm/{DhTya_mhmN53vskv.mjs → Dlk2ZYExFgQ0xE2H.mjs} +1 -1
  71. package/node/esm/{Btw4148Ot8ifhNc1.mjs → I-FZojIFWluC6X-j.mjs} +1 -1
  72. package/node/esm/{C99zzq8DImQXi4BQ.mjs → Lj98EH6coGdKUzuS.mjs} +10 -10
  73. package/node/esm/{B-HUPAcqvK0eeeCz.mjs → NA-8urR7T1NCwrgD.mjs} +38 -37
  74. package/node/esm/{DxazKtROyaI51dWl.mjs → YpOpRyciqQLIY1-G.mjs} +1 -1
  75. package/node/esm/{CkRYLed8Mmn3giNg.mjs → b3XnssSr9lmvAC2N.mjs} +2 -2
  76. package/node/esm/clgEkmEwfB28nkz2.mjs +351 -0
  77. package/node/esm/index.mjs +584 -540
  78. package/node/esm/{CRt3vXe6YmXzqk3H.mjs → pF2vCOTmrxPAB41Q.mjs} +102 -102
  79. package/node/esm/{CBuEu5Jk-LfaDy-H.mjs → uLrulyR7IXq0SF4j.mjs} +44 -44
  80. package/node/esm/{C_aL7CGS1lrNn1Ng.mjs → xRGObcoaGDnAZFnj.mjs} +1 -1
  81. package/package.json +10 -7
  82. package/resources/contents.json +108 -0
  83. package/resources/fonts/aptos-bold-italic.hinted.json +125 -0
  84. package/resources/fonts/aptos-bold-italic.metrics.json +221 -0
  85. package/resources/fonts/aptos-bold-italic.rows.json +8 -0
  86. package/resources/fonts/aptos-bold.hinted.json +125 -0
  87. package/resources/fonts/aptos-bold.metrics.json +221 -0
  88. package/resources/fonts/aptos-bold.rows.json +8 -0
  89. package/resources/fonts/aptos-display-bold-italic.hinted.json +125 -0
  90. package/resources/fonts/aptos-display-bold-italic.metrics.json +221 -0
  91. package/resources/fonts/aptos-display-bold-italic.rows.json +8 -0
  92. package/resources/fonts/aptos-display-bold.hinted.json +125 -0
  93. package/resources/fonts/aptos-display-bold.metrics.json +221 -0
  94. package/resources/fonts/aptos-display-bold.rows.json +8 -0
  95. package/resources/fonts/aptos-display-italic.hinted.json +124 -0
  96. package/resources/fonts/aptos-display-italic.metrics.json +221 -0
  97. package/resources/fonts/aptos-display-italic.rows.json +8 -0
  98. package/resources/fonts/aptos-display-regular.hinted.json +125 -0
  99. package/resources/fonts/aptos-display-regular.metrics.json +221 -0
  100. package/resources/fonts/aptos-display-regular.rows.json +8 -0
  101. package/resources/fonts/aptos-italic.hinted.json +125 -0
  102. package/resources/fonts/aptos-italic.metrics.json +221 -0
  103. package/resources/fonts/aptos-italic.rows.json +8 -0
  104. package/resources/fonts/aptos-narrow-bold-italic.hinted.json +125 -0
  105. package/resources/fonts/aptos-narrow-bold-italic.metrics.json +221 -0
  106. package/resources/fonts/aptos-narrow-bold-italic.rows.json +8 -0
  107. package/resources/fonts/aptos-narrow-bold.hinted.json +125 -0
  108. package/resources/fonts/aptos-narrow-bold.metrics.json +221 -0
  109. package/resources/fonts/aptos-narrow-bold.rows.json +8 -0
  110. package/resources/fonts/aptos-narrow-italic.hinted.json +125 -0
  111. package/resources/fonts/aptos-narrow-italic.metrics.json +221 -0
  112. package/resources/fonts/aptos-narrow-italic.rows.json +8 -0
  113. package/resources/fonts/aptos-narrow-regular.hinted.json +125 -0
  114. package/resources/fonts/aptos-narrow-regular.metrics.json +221 -0
  115. package/resources/fonts/aptos-narrow-regular.rows.json +8 -0
  116. package/resources/fonts/aptos-regular.hinted.json +125 -0
  117. package/resources/fonts/aptos-regular.metrics.json +221 -0
  118. package/resources/fonts/aptos-regular.rows.json +8 -0
  119. package/resources/fonts/arial-bold-italic.rows.json +0 -1
  120. package/resources/fonts/arial-bold.rows.json +0 -1
  121. package/resources/fonts/arial-italic.rows.json +0 -1
  122. package/resources/fonts/arial-regular.rows.json +0 -1
  123. package/resources/fonts/calibri-bold-italic.rows.json +0 -1
  124. package/resources/fonts/calibri-bold.rows.json +0 -1
  125. package/resources/fonts/calibri-italic.rows.json +0 -1
  126. package/resources/fonts/calibri-regular.rows.json +0 -1
  127. package/resources/fonts/cambria-bold-italic.rows.json +0 -1
  128. package/resources/fonts/cambria-bold.rows.json +0 -1
  129. package/resources/fonts/cambria-italic.rows.json +0 -1
  130. package/resources/fonts/cambria-regular.rows.json +0 -1
  131. package/resources/fonts/contents.json +240 -0
  132. package/resources/fonts/courier-new-bold-italic.rows.json +0 -1
  133. package/resources/fonts/courier-new-bold.rows.json +0 -1
  134. package/resources/fonts/courier-new-italic.rows.json +0 -1
  135. package/resources/fonts/courier-new-regular.rows.json +0 -1
  136. package/resources/fonts/times-new-roman-bold-italic.rows.json +0 -1
  137. package/resources/fonts/times-new-roman-bold.rows.json +0 -1
  138. package/resources/fonts/times-new-roman-italic.rows.json +0 -1
  139. package/resources/fonts/times-new-roman-regular.rows.json +0 -1
  140. package/resources/locales/de/model.msg.json +4 -0
  141. package/resources/locales/en/model.msg.json +4 -0
  142. package/types/scripting-api.json +9339 -9320
  143. package/types/scripting.d.ts +322 -200
  144. package/types/src/.generated/wasm/sdk.d.ts +5 -27
  145. package/types/src/address/AddressUtils.d.ts +8 -0
  146. package/types/src/address/_SheetNameQuoteChars.d.ts +3 -0
  147. package/types/src/anomalies/_FocusTable.d.ts +0 -6
  148. package/types/src/calculation/Calculation.d.ts +20 -95
  149. package/types/src/calculation/ExternalBookBindings.d.ts +0 -26
  150. package/types/src/calculation/NamedFormulaCollection.d.ts +6 -2
  151. package/types/src/calculation/TokenType.d.ts +0 -10
  152. package/types/src/calculation/_CloneBoundary.d.ts +0 -24
  153. package/types/src/calculation/_FormulaToolkit.d.ts +0 -5
  154. package/types/src/calculation/compiler/ASTTypes.d.ts +0 -13
  155. package/types/src/calculation/compiler/CompilerUtils.d.ts +0 -227
  156. package/types/src/calculation/compiler/FormulaLexer.d.ts +0 -8
  157. package/types/src/calculation/compiler/FormulaParser.d.ts +0 -61
  158. package/types/src/calculation/compiler/ParserUtils.d.ts +0 -24
  159. package/types/src/calculation/compiler/Types.d.ts +0 -52
  160. package/types/src/calculation/engine/CalcBackend.d.ts +15 -157
  161. package/types/src/calculation/engine/index.d.ts +0 -8
  162. package/types/src/calculation/executor/CalcExecutor.d.ts +13 -130
  163. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +30 -11
  164. package/types/src/calculation/executor/CircularReference.d.ts +0 -17
  165. package/types/src/calculation/executor/_BlockOrder.d.ts +29 -0
  166. package/types/src/calculation/executor/_WhatIf.d.ts +0 -19
  167. package/types/src/calculation/formula/FormulaBlock.d.ts +0 -28
  168. package/types/src/calculation/formula/FormulaRecordView.d.ts +0 -15
  169. package/types/src/calculation/formula/IFormulaBlock.d.ts +0 -12
  170. package/types/src/calculation/formula/LambdaValue.d.ts +0 -15
  171. package/types/src/calculation/formula/TokenUtils.d.ts +1 -8
  172. package/types/src/calculation/grid/CalcGrid.d.ts +5 -59
  173. package/types/src/calculation/grid/CalcGridBackend.d.ts +8 -9
  174. package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -13
  175. package/types/src/calculation/grid/CalcGridUtils.d.ts +18 -22
  176. package/types/src/calculation/grid/ICalcGrid.d.ts +13 -98
  177. package/types/src/calculation/grid/_CalcRequest.d.ts +1 -29
  178. package/types/src/calculation/spatial/CircularEntry.d.ts +0 -10
  179. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +52 -82
  180. package/types/src/calculation/spatial/SpillEntry.d.ts +10 -7
  181. package/types/src/calculation/state/CalcScope.d.ts +0 -9
  182. package/types/src/calculation/state/CalcState.d.ts +0 -12
  183. package/types/src/calculation/state/CalculationContext.d.ts +4 -37
  184. package/types/src/calculation/state/DeferredCalls.d.ts +11 -64
  185. package/types/src/calculation/state/IContextContainer.d.ts +4 -60
  186. package/types/src/calculation/state/_KeepBlanks.d.ts +5 -0
  187. package/types/src/calculation/state/_PendingOverlayGrid.d.ts +46 -33
  188. package/types/src/calculation/state/_WhatIfLayer.d.ts +0 -14
  189. package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +0 -42
  190. package/types/src/calculation/symbol/ISymbolRegistry.d.ts +0 -6
  191. package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +0 -12
  192. package/types/src/calculation/symbol/SymbolRegistry.d.ts +0 -9
  193. package/types/src/calculation/toolkit/index.d.ts +0 -8
  194. package/types/src/cell/ICell.d.ts +14 -28
  195. package/types/src/cellRange/ICellRange.d.ts +22 -11
  196. package/types/src/chart/Chart.d.ts +0 -16
  197. package/types/src/chart/_ChartParts.d.ts +0 -39
  198. package/types/src/chart/_ChartSource.d.ts +0 -14
  199. package/types/src/chart/createChart.d.ts +1 -1
  200. package/types/src/chart/kinds/ChartKind.d.ts +4 -4
  201. package/types/src/chart/kinds/_Placeholder.d.ts +0 -1
  202. package/types/src/chart/layout/TextMeasurer.d.ts +0 -20
  203. package/types/src/chart/layout/_LayoutUtils.d.ts +0 -16
  204. package/types/src/chart/math/BoxStats.d.ts +0 -8
  205. package/types/src/chart/math/DateUnitCalcs.d.ts +0 -10
  206. package/types/src/chart/math/Histogram.d.ts +0 -17
  207. package/types/src/chart/math/OrdUnitCalcs.d.ts +0 -53
  208. package/types/src/chart/math/Treemap.d.ts +0 -15
  209. package/types/src/chart/math/Trendlines.d.ts +0 -8
  210. package/types/src/chart/math/UnitCalcs.d.ts +0 -22
  211. package/types/src/chart/model/_Edits.d.ts +0 -33
  212. package/types/src/chart/model/_Grouping.d.ts +0 -25
  213. package/types/src/chart/model/_Inference.d.ts +0 -18
  214. package/types/src/chart/model/_NewChart.d.ts +0 -41
  215. package/types/src/chart/model/_OfPie.d.ts +0 -7
  216. package/types/src/chart/resolve/_LegacyStyles.d.ts +0 -20
  217. package/types/src/chart/resolve/_Resolve.d.ts +0 -19
  218. package/types/src/chart/resolve/_ResolvedChart.d.ts +0 -6
  219. package/types/src/collections/_GridUtils.d.ts +0 -10
  220. package/types/src/comment/_NoteBox.d.ts +0 -15
  221. package/types/src/condition/AnchoredConditional.d.ts +1 -23
  222. package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +0 -49
  223. package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +0 -10
  224. package/types/src/condition/ICondition.d.ts +2 -2
  225. package/types/src/condition/_ConditionUtils.d.ts +0 -38
  226. package/types/src/externalBook/ExternalBookCollection.d.ts +0 -15
  227. package/types/src/externalBook/ExternalBookName.d.ts +2 -3
  228. package/types/src/externalBook/IExternalBook.d.ts +13 -14
  229. package/types/src/fetch/IFetcher.d.ts +2 -1
  230. package/types/src/fetch/_WorkbookFetch.d.ts +1 -1
  231. package/types/src/font/AdvanceTable.d.ts +16 -42
  232. package/types/src/font/IFont.d.ts +32 -9
  233. package/types/src/font/TableFileAdvanceBuilder.d.ts +6 -3
  234. package/types/src/font/_FontUtils.d.ts +0 -8
  235. package/types/src/font/_StandIns.d.ts +33 -0
  236. package/types/src/io/IWorkbookIO.d.ts +3 -3
  237. package/types/src/io/WorkbookOrigin.d.ts +2 -2
  238. package/types/src/license/LicenseManager.d.ts +2 -1
  239. package/types/src/license/_Utils.d.ts +4 -3
  240. package/types/src/license/details.d.ts +3 -1
  241. package/types/src/license/keys.d.ts +6 -0
  242. package/types/src/license/license-key.d.ts +15 -33
  243. package/types/src/license/token.d.ts +55 -0
  244. package/types/src/picture/IPicture.d.ts +45 -0
  245. package/types/src/picture/Picture.d.ts +12 -0
  246. package/types/src/pivot/PivotTable.d.ts +0 -7
  247. package/types/src/primitives/AsyncValue.d.ts +0 -12
  248. package/types/src/primitives/PrimitiveUtils.d.ts +1 -110
  249. package/types/src/primitives/Range.d.ts +0 -60
  250. package/types/src/primitives/ScalarCollation.d.ts +0 -106
  251. package/types/src/primitives/stats/AggregateStats.d.ts +0 -19
  252. package/types/src/print/PageLayout.d.ts +0 -6
  253. package/types/src/reference/ReferenceUtils.d.ts +4 -2
  254. package/types/src/richData/RichDataRegistry.d.ts +6 -0
  255. package/types/src/scripting/TypedFunction.d.ts +0 -109
  256. package/types/src/scripting/enumManifest.browser.d.ts +7 -2
  257. package/types/src/sheet/IWorksheet.d.ts +2 -5
  258. package/types/src/sheet/NamedCellRange.d.ts +0 -21
  259. package/types/src/sheet/SheetCell.d.ts +8 -2
  260. package/types/src/sheet/Worksheet.d.ts +7 -48
  261. package/types/src/sheet/_DelimitedText.d.ts +13 -0
  262. package/types/src/sheet/_IgnoredErrors.d.ts +0 -12
  263. package/types/src/sheet/_ScalarListFactory.d.ts +0 -19
  264. package/types/src/sheet/_SheetCoords.d.ts +0 -7
  265. package/types/src/sheet/_SheetFilterUtils.d.ts +0 -8
  266. package/types/src/sheet/_SheetStateReader.d.ts +0 -10
  267. package/types/src/sheet/_SheetStateTypes.d.ts +0 -3
  268. package/types/src/sheet/_SheetUtils.d.ts +1 -1
  269. package/types/src/sheet/style/_RowLine.d.ts +32 -0
  270. package/types/src/sheet/style/_StyleUtils.d.ts +6 -14
  271. package/types/src/sheetView/_SheetViewUtils.d.ts +0 -1
  272. package/types/src/slicer/_BuiltInSlicerStyles.d.ts +0 -5
  273. package/types/src/style/ICellStyle.d.ts +4 -0
  274. package/types/src/table/AnchoredTable.d.ts +0 -147
  275. package/types/src/text/TextFrame.d.ts +4 -1
  276. package/types/src/text/TextStacked.d.ts +0 -24
  277. package/types/src/text/TextWrapper.d.ts +3 -5
  278. package/types/src/text/_LineBox.d.ts +24 -0
  279. package/types/src/text/_TextUtils.d.ts +5 -2
  280. package/types/src/text/_TextWrapperFallback.d.ts +2 -1
  281. package/types/src/wasm/sdkWasm.d.ts +1 -1
  282. package/types/src/workbook/Workbook.d.ts +0 -10
  283. package/browser/esm/2WuhYrIpYmOR5H73.mjs +0 -698
  284. package/browser/esm/CTe2qfmIUEad6FJv.mjs +0 -199
  285. package/browser/esm/CfRqiPDg6RBTg1EN.mjs +0 -367
  286. package/browser/esm/DVroRnhi-5IDXNgM.mjs +0 -210
  287. package/browser/esm/DwZCT7DZiiXoTweg.mjs +0 -14
  288. package/node/esm/BSvOluusoDM4z_dx.mjs +0 -811
  289. package/node/esm/CPI58duc0j0a-HpJ.mjs +0 -115
  290. package/node/esm/DggQ23jKMpwhENfa.mjs +0 -372
  291. package/node/esm/Dn1M7YWi25DeeYUb.mjs +0 -210
  292. package/node/esm/ZXPFcsT2zrALCZux.mjs +0 -289
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.14
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 { $n as e, Bn as t, Gn as s, Hn as r, In as i, Jn as n, Kn as o, Pn as a, Qn as h, Rn as l, Un as u, Wn as c, Xn as p, Yn as g, Zn as m, ar as O, br as _, dr as E, er as L, fr as f, gr as A, hr as C, ir as T, nr as N, or as U, pr as S, qn as d, rr as x, tr as R, zn as I } from "./Vocy-I9dKzZMr0Ct.mjs";
7
+ import { $n as e, Bn as t, Fn as s, Gn as r, Jn as i, Kn as n, Ln as o, Qn as a, Un as h, Vn as l, Wn as u, Xn as c, Yn as p, Zn as g, _r as m, ar as O, er as _, fr as E, gr as L, ir as A, mr as f, nr as C, or as T, pr as N, qn as U, rr as S, sr as d, tr as x, xr as R, zn as I } from "./DLdXl0O0TXuyqLU4.mjs";
8
8
  import { FormulaError as M } from "@sheetxl/primitives";
9
9
  import { EOF as P, EmbeddedActionsParser as b, Lexer as v, createToken as k, defaultParserErrorProvider as w } from "chevrotain";
10
10
  var y = class e {
11
11
  static shared(t) {
12
- const s = t?.locale ?? A, r = t?.maxColumn ?? D, i = t?.maxRow ?? G;
12
+ const s = t?.locale ?? m, r = t?.maxColumn ?? D, i = t?.maxRow ?? G;
13
13
  let n = $.get(s);
14
14
  n || (n = /* @__PURE__ */ new Map(), $.set(s, n));
15
15
  const o = `${r}:${i}`;
@@ -21,7 +21,7 @@ var y = class e {
21
21
  }), n.set(o, a)), a;
22
22
  }
23
23
  constructor(e) {
24
- const t = e?.maxColumn ?? D, s = e?.maxRow ?? G, r = e?.locale ?? A;
24
+ const t = e?.maxColumn ?? D, s = e?.maxRow ?? G, r = e?.locale ?? m;
25
25
  this._locale = r, this._maxColumn = t, this._maxRow = s;
26
26
  const { separatorFunction: i, separatorColumn: n, separatorRow: o, separatorDecimal: a } = r.separators;
27
27
  if (n === o) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${n}')`);
@@ -37,7 +37,7 @@ var y = class e {
37
37
  pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
38
38
  }), c = k({
39
39
  name: "TableReference",
40
- pattern: { exec: f },
40
+ pattern: { exec: N },
41
41
  line_breaks: !1,
42
42
  start_chars_hint: B
43
43
  }), p = k({
@@ -46,7 +46,7 @@ var y = class e {
46
46
  line_breaks: !1,
47
47
  start_chars_hint: [91],
48
48
  longer_alt: [c, l]
49
- }), g = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), m = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), O = k({
49
+ }), g = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), O = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), _ = k({
50
50
  name: "LiteralError",
51
51
  pattern: new RegExp(g(r.errorLiterals) + [
52
52
  "#PARSE!",
@@ -65,24 +65,24 @@ var y = class e {
65
65
  "#BUSY!",
66
66
  "#PYTHON!",
67
67
  "#TIMEOUT!"
68
- ].map(m).join("|"))
69
- }), _ = k({
70
- name: "RefError",
71
- pattern: new RegExp(g(r.errorRefs) + ["#REF!", "#NAME\\?"].map(m).join("|"))
68
+ ].map(O).join("|"))
72
69
  }), L = k({
70
+ name: "RefError",
71
+ pattern: new RegExp(g(r.errorRefs) + ["#REF!", "#NAME\\?"].map(O).join("|"))
72
+ }), A = k({
73
73
  name: "SingleQuotedString",
74
74
  pattern: /'(''|[^'])*'/
75
- }), C = k({
75
+ }), f = k({
76
76
  name: "SheetQuoted",
77
77
  pattern: /'(?:''|[^'])*?'!/
78
- }), T = k({
78
+ }), C = k({
79
79
  name: "Sheet",
80
80
  pattern: /[A-Za-z_.\d\u007F-\uFFFF]*!/
81
- }), N = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, U = k({
81
+ }), T = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, U = k({
82
82
  name: "NamedToken",
83
83
  pattern: { exec: (e, t) => {
84
- N.lastIndex = t;
85
- const s = N.exec(e);
84
+ T.lastIndex = t;
85
+ const s = T.exec(e);
86
86
  if (!s) return null;
87
87
  let r = s[0];
88
88
  const i = r.indexOf(".:");
@@ -185,7 +185,7 @@ var y = class e {
185
185
  }), le = k({
186
186
  name: "ArrayAnchorOp",
187
187
  pattern: /#/,
188
- longer_alt: [O, _]
188
+ longer_alt: [_, L]
189
189
  }), ue = k({
190
190
  name: "GtOp",
191
191
  pattern: />/
@@ -198,14 +198,14 @@ var y = class e {
198
198
  }), ge = [
199
199
  h,
200
200
  l,
201
+ f,
202
+ A,
201
203
  C,
202
- L,
203
- T,
204
204
  u,
205
205
  c,
206
206
  p,
207
- O,
208
207
  _,
208
+ L,
209
209
  y,
210
210
  ...n !== i ? [$] : [],
211
211
  Y,
@@ -355,28 +355,28 @@ function V(e) {
355
355
  return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
356
356
  }
357
357
  var j = class {
358
- constructor(e = A) {
358
+ constructor(e = m) {
359
359
  const t = function(e) {
360
- const t = [...a];
360
+ const t = [...s];
361
361
  if (e) for (const s of Object.values(e)) {
362
362
  const e = s?.trim();
363
363
  e && !t.some((t) => t.toLowerCase() === e.toLowerCase()) && t.push(e);
364
364
  }
365
365
  return t.sort((e, t) => t.length - e.length), t.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
366
- }(e.specifiers), s = k({
366
+ }(e.specifiers), r = k({
367
367
  name: "WhiteSpace",
368
368
  pattern: /\s+/,
369
369
  group: v.SKIPPED
370
- }), r = k({
370
+ }), i = k({
371
371
  name: "TableSpecifier",
372
372
  pattern: new RegExp(`\\[#(?:${t})\\]`, "i")
373
- }), i = [
374
- s,
373
+ }), n = [
375
374
  r,
375
+ i,
376
376
  k({
377
377
  name: "BracketedColumn",
378
378
  pattern: /\[(?:'['#[\]]|'(?!['#[\]])|[^'[\]])*\]/,
379
- longer_alt: [r]
379
+ longer_alt: [i]
380
380
  }),
381
381
  k({
382
382
  name: "BareSpecifier",
@@ -391,11 +391,11 @@ var j = class {
391
391
  pattern: new RegExp(e.separators.separatorFunction.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"))
392
392
  })
393
393
  ];
394
- this._lexer = new v(i, { ensureOptimizations: !0 });
395
- const n = {};
396
- i.forEach((e) => {
397
- n[e.name] = e;
398
- }), this._vocabulary = n;
394
+ this._lexer = new v(n, { ensureOptimizations: !0 });
395
+ const o = {};
396
+ n.forEach((e) => {
397
+ o[e.name] = e;
398
+ }), this._vocabulary = o;
399
399
  }
400
400
  getVocabulary() {
401
401
  return this._vocabulary;
@@ -404,7 +404,7 @@ var j = class {
404
404
  return this._lexer.tokenize(e);
405
405
  }
406
406
  }, Q = class extends b {
407
- constructor(e = A) {
407
+ constructor(e = m) {
408
408
  const t = new j(e), s = t.getVocabulary();
409
409
  super(s, {
410
410
  nodeLocationTracking: "none",
@@ -412,83 +412,83 @@ var j = class {
412
412
  skipValidations: !0,
413
413
  recoveryEnabled: !1
414
414
  }), this._lexer = t;
415
- const { TableSpecifier: r, BracketedColumn: i, BareSpecifier: n, ColumnSep: a, ListSep: h } = s, l = this;
416
- l.RULE("ruleContent", () => {
417
- const e = [], t = l.SUBRULE(l.ruleItem);
418
- return l.ACTION(() => {
415
+ const { TableSpecifier: r, BracketedColumn: i, BareSpecifier: n, ColumnSep: o, ListSep: a } = s, h = this;
416
+ h.RULE("ruleContent", () => {
417
+ const e = [], t = h.SUBRULE(h.ruleItem);
418
+ return h.ACTION(() => {
419
419
  t && e.push(t);
420
- }), l.MANY(() => {
421
- l.CONSUME(h), l.OPTION(() => {
422
- const t = l.SUBRULE2(l.ruleItem);
423
- l.ACTION(() => {
420
+ }), h.MANY(() => {
421
+ h.CONSUME(a), h.OPTION(() => {
422
+ const t = h.SUBRULE2(h.ruleItem);
423
+ h.ACTION(() => {
424
424
  t && e.push(t);
425
425
  });
426
426
  });
427
427
  }), e;
428
- }), l.RULE("ruleItem", () => l.OR([{ ALT: () => l.SUBRULE(l.ruleSpecifier) }, { ALT: () => l.SUBRULE(l.ruleColumnOrRange) }])), l.RULE("ruleSpecifier", () => l.OR([{ ALT: () => {
429
- const t = l.CONSUME(r);
430
- return l.ACTION(() => {
431
- const s = U(t.image, e);
428
+ }), h.RULE("ruleItem", () => h.OR([{ ALT: () => h.SUBRULE(h.ruleSpecifier) }, { ALT: () => h.SUBRULE(h.ruleColumnOrRange) }])), h.RULE("ruleSpecifier", () => h.OR([{ ALT: () => {
429
+ const t = h.CONSUME(r);
430
+ return h.ACTION(() => {
431
+ const s = d(t.image, e);
432
432
  return s.image = t.image, s;
433
433
  });
434
434
  } }, { ALT: () => {
435
- const t = l.CONSUME(n);
436
- return l.ACTION(() => {
437
- const s = U(t.image, e);
435
+ const t = h.CONSUME(n);
436
+ return h.ACTION(() => {
437
+ const s = d(t.image, e);
438
438
  return s.image = t.image, s;
439
439
  });
440
- } }])), l.RULE("ruleColumnOrRange", () => {
441
- const e = l.CONSUME(i);
440
+ } }])), h.RULE("ruleColumnOrRange", () => {
441
+ const e = h.CONSUME(i);
442
442
  let t, s;
443
- return l.OPTION(() => {
444
- t = l.CONSUME(a), s = l.CONSUME2(i);
445
- }), l.ACTION(() => {
446
- const r = T(e.image);
443
+ return h.OPTION(() => {
444
+ t = h.CONSUME(o), s = h.CONSUME2(i);
445
+ }), h.ACTION(() => {
446
+ const r = O(e.image);
447
447
  if (r.image = e.image, !s) return r;
448
- const i = T(s.image);
448
+ const i = O(s.image);
449
449
  i.image = s.image;
450
- const n = o(":", r, i, !0);
450
+ const n = U(":", r, i, !0);
451
451
  return n.image = t?.image ?? ":", n;
452
452
  });
453
- }), l.performSelfAnalysis();
453
+ }), h.performSelfAnalysis();
454
454
  }
455
455
  _parseInner(e) {
456
456
  const t = this._lexer.tokenize(e);
457
457
  return t.errors.length > 0 || 0 === t.tokens.length ? [] : (this.input = t.tokens, this.reset(), this.ruleContent() ?? []);
458
458
  }
459
- _parseContent(t) {
459
+ _parseContent(e) {
460
+ if (!e) return [];
461
+ const t = e.trim();
460
462
  if (!t) return [];
461
- const s = t.trim();
462
- if (!s) return [];
463
- const r = s[0];
464
- if ("@" === r) {
465
- const t = s.slice(1).trim();
466
- if (!t) {
467
- const t = e("@", null, !0);
468
- return t.image = "@", [t];
463
+ const s = t[0];
464
+ if ("@" === s) {
465
+ const e = t.slice(1).trim();
466
+ if (!e) {
467
+ const e = _("@", null, !0);
468
+ return e.image = "@", [e];
469
469
  }
470
- if ("[" === t.charAt(0)) {
471
- const s = this._parseInner(t);
472
- if (1 === s.length && "infix" === s[0].type) {
473
- const t = e("@", s[0], !0);
474
- return t.image = "@", [t];
470
+ if ("[" === e.charAt(0)) {
471
+ const t = this._parseInner(e);
472
+ if (1 === t.length && "infix" === t[0].type) {
473
+ const e = _("@", t[0], !0);
474
+ return e.image = "@", [e];
475
475
  }
476
476
  }
477
- const r = T(t);
478
- r.image = t;
479
- const i = e("@", r, !0);
480
- return i.image = "@", [i];
477
+ const s = O(e);
478
+ s.image = e;
479
+ const r = _("@", s, !0);
480
+ return r.image = "@", [r];
481
481
  }
482
- if ("[" !== r && "#" !== r) {
483
- const e = T(t);
484
- return e.image = t, [e];
482
+ if ("[" !== s && "#" !== s) {
483
+ const t = O(e);
484
+ return t.image = e, [t];
485
485
  }
486
- return this._parseInner(s);
486
+ return this._parseInner(t);
487
487
  }
488
488
  parse(e, t, s) {
489
489
  this.reset();
490
490
  const r = () => ({
491
- root: O("", []),
491
+ root: T("", []),
492
492
  errors: []
493
493
  });
494
494
  if (!s) return r();
@@ -501,7 +501,7 @@ var j = class {
501
501
  if (-1 === n) return r();
502
502
  const o = s.slice(0, n), a = s.slice(n + 1, -1), h = this._parseContent(a);
503
503
  return {
504
- root: O(o, h),
504
+ root: T(o, h),
505
505
  errors: this.errors.length > 0 ? [...this.errors] : []
506
506
  };
507
507
  }
@@ -516,7 +516,7 @@ var j = class {
516
516
  ":."
517
517
  ]), K = (e) => {
518
518
  if (!e) return null;
519
- if (e.type === _.Cell) {
519
+ if (e.type === R.Cell) {
520
520
  const t = e.value;
521
521
  return t.rowIndex === Number.MIN_SAFE_INTEGER ? "col" : t.colIndex === Number.MIN_SAFE_INTEGER ? "row" : null;
522
522
  }
@@ -546,130 +546,136 @@ var te = {
546
546
  return e.expected === P && t ? `Unexpected '${t}'` : w.buildMismatchTokenMessage(e);
547
547
  }
548
548
  }, se = class extends b {
549
- constructor(a) {
550
- const l = a?.lexer ?? y.shared(a?.lexerOptions), O = l.getVocabulary();
549
+ constructor(s) {
550
+ const m = s?.lexer ?? y.shared(s?.lexerOptions), O = m.getVocabulary();
551
551
  super(O, {
552
552
  skipValidations: !0,
553
553
  recoveryEnabled: !0,
554
- ...a,
554
+ ...s,
555
555
  nodeLocationTracking: "full",
556
556
  errorMessageProvider: te,
557
557
  maxLookahead: 1
558
558
  }), this._ruleInfixOp = this.RULE("ruleInfixOp", () => {
559
- const { PlusOp: e, MinOp: t, MulOp: s, DivOp: r, ExOp: n, ConcatOp: a, GtOp: h, EqOp: l, LtOp: u, NeqOp: c, GteOp: p, LteOp: g } = this._vocab, m = [];
560
- return m.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
561
- const i = this.OR(this._c1 || (this._c1 = [
559
+ const { PlusOp: e, MinOp: t, MulOp: s, DivOp: r, ExOp: i, ConcatOp: n, GtOp: a, EqOp: h, LtOp: l, NeqOp: u, GteOp: c, LteOp: p } = this._vocab, g = [];
560
+ return g.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
561
+ const o = this.OR(this._c1 || (this._c1 = [
562
562
  { ALT: () => this.CONSUME(e).image },
563
563
  { ALT: () => this.CONSUME(t).image },
564
564
  { ALT: () => this.CONSUME(s).image },
565
565
  { ALT: () => this.CONSUME(r).image },
566
+ { ALT: () => this.CONSUME(i).image },
566
567
  { ALT: () => this.CONSUME(n).image },
567
568
  { ALT: () => this.CONSUME(a).image },
568
569
  { ALT: () => this.CONSUME(h).image },
569
570
  { ALT: () => this.CONSUME(l).image },
570
571
  { ALT: () => this.CONSUME(u).image },
571
572
  { ALT: () => this.CONSUME(c).image },
572
- { ALT: () => this.CONSUME(p).image },
573
- { ALT: () => this.CONSUME(g).image }
574
- ])), o = {
575
- value: i,
573
+ { ALT: () => this.CONSUME(p).image }
574
+ ])), m = {
575
+ value: o,
576
576
  index: this.getLexerPosition(),
577
- isRange: S.includes(i)
577
+ isRange: f.includes(o)
578
578
  }, O = this.SUBRULE2(this._rulePostfixOp);
579
- m.push({
580
- op: o,
579
+ g.push({
580
+ op: m,
581
581
  node: O
582
582
  });
583
583
  }), this.ACTION(() => {
584
- let e = m.length - 1;
585
- const t = i.length;
584
+ let e = g.length - 1;
585
+ const t = o.length;
586
586
  for (let s = 0; e > 0 && s < t; s++) {
587
- const t = i[s];
587
+ const t = o[s];
588
588
  let r = 1;
589
- for (; r < m.length;) {
590
- const s = m[r].op;
589
+ for (; r < g.length;) {
590
+ const s = g[r].op;
591
591
  if (t.includes(s.value)) {
592
- const t = m[r - 1].node, i = m[r].node;
593
- let n = o(s.value, t, i, s.isRange);
594
- n = this._tag(n, s.index), m[r - 1].node = n, m.splice(r, 1), e--;
592
+ const t = g[r - 1].node, i = g[r].node;
593
+ let n = U(s.value, t, i, s.isRange);
594
+ n = this._tag(n, s.index), g[r - 1].node = n, g.splice(r, 1), e--;
595
595
  } else r++;
596
596
  }
597
597
  }
598
- }), m[0].node;
598
+ }), g[0].node;
599
599
  }), this._rulePlusMinusOp = this.RULE("rulePlusMinusOp", () => {
600
600
  const { PlusOp: e, MinOp: t } = this._vocab;
601
601
  return this.OR([{ ALT: () => this.CONSUME(e) }, { ALT: () => this.CONSUME(t) }]);
602
602
  }), this._rulePostfixOp = this.RULE("rulePostfixOp", () => {
603
- const { PercentOp: e } = this._vocab;
604
- let t = this.SUBRULE(this._rulePrefixOp);
605
- const s = [];
603
+ const { PercentOp: t } = this._vocab;
604
+ let s = this.SUBRULE(this._rulePrefixOp);
605
+ const r = [];
606
606
  return this.MANY(() => {
607
- const t = this.CONSUME(e).image;
607
+ const e = this.CONSUME(t).image;
608
608
  this.ACTION(() => {
609
- s.push([t, this.getLexerPosition()]);
609
+ r.push([e, this.getLexerPosition()]);
610
610
  });
611
611
  }), this.ACTION(() => {
612
- const e = s.length;
613
- if (0 !== e) for (let r = 0; r < e; r++) {
614
- const e = s[r], i = e[0], n = e[1], o = S.includes(i);
615
- t = h(i, t, o), t = this._tag(t, n);
612
+ const t = r.length;
613
+ if (0 !== t) for (let i = 0; i < t; i++) {
614
+ const t = r[i], n = t[0], o = t[1], a = f.includes(n);
615
+ s = e(n, s, a), s = this._tag(s, o);
616
616
  }
617
- }), t;
617
+ }), s;
618
618
  }), this._rulePrefixOp = this.RULE("rulePrefixOp", () => {
619
- const { PlusOp: t, MinOp: s, ImplicitIntersectOp: r } = this._vocab, i = [];
619
+ const { PlusOp: e, MinOp: t, ImplicitIntersectOp: s } = this._vocab, r = [];
620
620
  this.MANY(() => {
621
- const e = this.OR([
621
+ const i = this.OR([
622
+ { ALT: () => this.CONSUME(e).image },
622
623
  { ALT: () => this.CONSUME(t).image },
623
- { ALT: () => this.CONSUME(s).image },
624
- { ALT: () => this.CONSUME(r).image }
624
+ { ALT: () => this.CONSUME(s).image }
625
625
  ]);
626
626
  this.ACTION(() => {
627
- i.push([e, this.getLexerPosition()]);
627
+ r.push([i, this.getLexerPosition()]);
628
628
  });
629
629
  });
630
- let n = this.SUBRULE(this._ruleRangeOp);
630
+ let i = this.SUBRULE(this._ruleRangeOp);
631
631
  return this.ACTION(() => {
632
- const t = i.length;
633
- if (0 !== t) for (let s = t - 1; s >= 0; s--) {
634
- const t = i[s], r = t[0], o = t[1], a = S.includes(r);
635
- n = e(r, n, a), n = this._tag(n, o);
632
+ const e = r.length;
633
+ if (0 !== e) for (let t = e - 1; t >= 0; t--) {
634
+ const e = r[t], s = e[0], n = e[1], o = f.includes(s);
635
+ i = _(s, i, o), i = this._tag(i, n);
636
636
  }
637
- }), n;
637
+ }), i;
638
638
  }), this._ruleRangeOp = this.RULE("ruleRangeOp", () => {
639
- const { RangeOp: e, RangeTrimFullOp: t, RangeTrimLeadingOp: s, RangeTrimTrailingOp: r, ArrayAnchorOp: i } = this._vocab, n = [];
640
- return n.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
641
- this.CONSUME(i), n.push({ anchor: this.getLexerPosition() });
639
+ const { RangeOp: t, RangeTrimFullOp: s, RangeTrimLeadingOp: r, RangeTrimTrailingOp: i, ArrayAnchorOp: n } = this._vocab, o = [];
640
+ return o.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
641
+ this.CONSUME(n), o.push({ anchor: this.getLexerPosition() });
642
642
  }), this.MANY(() => {
643
- const o = {
643
+ const e = {
644
644
  value: this.OR(this._c2 || (this._c2 = [
645
- { ALT: () => this.CONSUME(e).image },
646
645
  { ALT: () => this.CONSUME(t).image },
647
646
  { ALT: () => this.CONSUME(s).image },
648
- { ALT: () => this.CONSUME(r).image }
647
+ { ALT: () => this.CONSUME(r).image },
648
+ { ALT: () => this.CONSUME(i).image }
649
649
  ])),
650
650
  index: this.getLexerPosition()
651
651
  }, a = this.SUBRULE2(this._ruleCallOp);
652
- n.push({
653
- op: o,
652
+ o.push({
653
+ op: e,
654
654
  node: a
655
655
  }), this.MANY3(() => {
656
- this.CONSUME2(i), n.push({ anchor: this.getLexerPosition() });
656
+ this.CONSUME2(n), o.push({ anchor: this.getLexerPosition() });
657
657
  });
658
658
  }), this.ACTION(() => {
659
- for (let e = 1; e < n.length; e++) {
660
- const t = n[e];
661
- if (void 0 !== t.anchor) {
662
- n[0].node = this._tag(h("#", n[0].node, !0), t.anchor);
659
+ for (let e = 1; e + 1 < o.length; e++) {
660
+ const t = o[e], s = o[e + 1];
661
+ if (":" !== t.op?.value || ":" !== s.op?.value) continue;
662
+ const r = K(t.node);
663
+ r && K(s.node) === r && K(o[e - 1].node) !== r && (t.node = this._tag(U(":", t.node, s.node, !0), s.op.index), o.splice(e + 1, 1));
664
+ }
665
+ for (let t = 1; t < o.length; t++) {
666
+ const s = o[t];
667
+ if (void 0 !== s.anchor) {
668
+ o[0].node = this._tag(e("#", o[0].node, !0), s.anchor);
663
669
  continue;
664
670
  }
665
- const s = t.op;
666
- let r = o(s.value, n[0].node, t.node, !0);
667
- r = this._tag(r, s.index), n[0].node = r;
671
+ const r = s.op;
672
+ let i = U(r.value, o[0].node, s.node, !0);
673
+ i = this._tag(i, r.index), o[0].node = i;
668
674
  }
669
- }), n[0].node;
675
+ }), o[0].node;
670
676
  }), this._ruleCallOp = this.RULE("ruleCallOp", () => {
671
- const { OpenParen: e, CloseParen: s } = this._vocab;
672
- let r = this.SUBRULE(this._ruleFormula);
677
+ const { OpenParen: e, CloseParen: t } = this._vocab;
678
+ let s = this.SUBRULE(this._ruleFormula);
673
679
  return this.MANY({
674
680
  GATE: () => {
675
681
  const t = this.LA(0), s = this.LA(1);
@@ -677,12 +683,12 @@ var te = {
677
683
  },
678
684
  DEF: () => {
679
685
  this.CONSUME(e);
680
- const i = this.getLexerPosition(), n = this.SUBRULE(this._ruleFunctionArguments), o = r, a = this.ACTION(() => this._tag(t(o, n), i)), h = this.OPTION(() => this.CONSUME(s));
686
+ const r = this.getLexerPosition(), i = this.SUBRULE(this._ruleFunctionArguments), n = s, o = this.ACTION(() => this._tag(l(n, i), r)), a = this.OPTION(() => this.CONSUME(t));
681
687
  this.ACTION(() => {
682
- h || this._reportError(a, "Missing closing parenthesis ')'", i), this._tagClose(a, this.getLexerPosition()), r = a;
688
+ a || this._reportError(o, "Missing closing parenthesis ')'", r), this._tagClose(o, this.getLexerPosition()), s = o;
683
689
  });
684
690
  }
685
- }), r;
691
+ }), s;
686
692
  }), this._ruleIntersectOp = this.RULE("ruleIntersectOp", () => {
687
693
  const e = [this.SUBRULE(this._ruleInfixOp)];
688
694
  return this.MANY(() => {
@@ -699,14 +705,14 @@ var te = {
699
705
  for (; e.length > 1;) {
700
706
  let t = e.length - 1;
701
707
  for (let s = 0; s < t; s++) {
702
- const r = e[s], i = e[s + 1], n = o(" ", r, i, !0), a = this._tokenMap.get(r);
703
- a && delete a.tokenIndexClose;
704
- const h = this._tokenMap.get(i), l = h?.tokenIndex;
705
- if (void 0 !== l) {
706
- const e = this.input[l], t = this.input[l - 1]?.endOffset ?? -1, s = this._inputText.slice(t + 1, e.startOffset).slice(0, -1);
708
+ const r = e[s], i = e[s + 1], n = U(" ", r, i, !0), o = this._tokenMap.get(r);
709
+ o && delete o.tokenIndexClose;
710
+ const a = this._tokenMap.get(i), h = a?.tokenIndex;
711
+ if (void 0 !== h) {
712
+ const e = this.input[h], t = this.input[h - 1]?.endOffset ?? -1, s = this._inputText.slice(t + 1, e.startOffset).slice(0, -1);
707
713
  s.length > 0 && (n.wsBefore = s);
708
714
  }
709
- h && delete h.tokenIndex, s + 1 < t && h && delete h.tokenIndexClose, e.splice(s, 2, n), s--, t--;
715
+ a && delete a.tokenIndex, s + 1 < t && a && delete a.tokenIndexClose, e.splice(s, 2, n), s--, t--;
710
716
  }
711
717
  }
712
718
  }), e[0];
@@ -729,16 +735,16 @@ var te = {
729
735
  }), t;
730
736
  }), this._ruleParen = this.RULE("ruleParen", () => {
731
737
  const { OpenParen: e, CloseParen: t } = this._vocab;
732
- return this._processParen(_.Paren, e, t);
738
+ return this._processParen(R.Paren, e, t);
733
739
  }), this._ruleLiteralArray = this.RULE("ruleLiteralArray", () => {
734
740
  const { OpenCurlyParen: e, CloseCurlyParen: t, ColSeparator: s, RowSeparator: r } = this._vocab;
735
- let i = g();
741
+ let n = c();
736
742
  this.CONSUME(e);
737
- const n = this.getLexerPosition();
738
- let o = this.ACTION(() => this._tag(d(i), n));
739
- const a = this.SUBRULE(this._ruleLiteralForArray);
743
+ const o = this.getLexerPosition();
744
+ let a = this.ACTION(() => this._tag(i(n), o));
745
+ const h = this.SUBRULE(this._ruleLiteralForArray);
740
746
  this.ACTION(() => {
741
- i.value.push(a);
747
+ n.value.push(h);
742
748
  }), this.MANY(() => {
743
749
  let e = !1;
744
750
  this.OR([{ ALT: () => {
@@ -746,66 +752,66 @@ var te = {
746
752
  } }, { ALT: () => this.CONSUME(r) }]);
747
753
  const t = this.SUBRULE2(this._ruleLiteralForArray);
748
754
  this.ACTION(() => {
749
- e || (i = g(), o.value.push(i)), i.value.push(t);
755
+ e || (n = c(), a.value.push(n)), n.value.push(t);
750
756
  });
751
757
  });
752
- const h = this.OPTION(() => this.CONSUME(t));
753
- return o = this.ACTION(() => (h || this._reportError(o, "Missing closing parenthesis '}'", n), this._tagClose(o, this.getLexerPosition()))), o;
758
+ const l = this.OPTION(() => this.CONSUME(t));
759
+ return a = this.ACTION(() => (l || this._reportError(a, "Missing closing parenthesis '}'", o), this._tagClose(a, this.getLexerPosition()))), a;
754
760
  }), this._ruleLiteralForArray = this.RULE("ruleLiteralForArray", () => {
755
- const { StringToken: e, BooleanToken: t, LiteralError: s, RefError: r } = this._vocab;
761
+ const { StringToken: e, BooleanToken: s, LiteralError: r, RefError: i } = this._vocab;
756
762
  return this.OR([
757
763
  { ALT: () => {
758
- const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), s = this.ACTION(() => this._tag(m(t.image, this._locale), this.getLexerPosition()));
759
- return this.ACTION(() => e ? L(e.image, s) : s);
764
+ const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), s = this.ACTION(() => this._tag(a(t.image, this._locale), this.getLexerPosition()));
765
+ return this.ACTION(() => e ? x(e.image, s) : s);
760
766
  } },
761
767
  { ALT: () => {
762
768
  const t = this.CONSUME(e);
763
- return this.ACTION(() => this._tag(x(t.image), this.getLexerPosition()));
764
- } },
765
- { ALT: () => {
766
- const e = this.CONSUME(t);
767
- return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
769
+ return this.ACTION(() => this._tag(A(t.image), this.getLexerPosition()));
768
770
  } },
769
771
  { ALT: () => {
770
772
  const e = this.CONSUME(s);
771
- return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
773
+ return this.ACTION(() => this._tag(t(e.image, this._locale), this.getLexerPosition()));
772
774
  } },
773
775
  { ALT: () => {
774
776
  const e = this.CONSUME(r);
775
- return this.ACTION(() => this._tag(R(e.image, this._locale), this.getLexerPosition()));
777
+ return this.ACTION(() => this._tag(p(e.image, this._locale), this.getLexerPosition()));
778
+ } },
779
+ { ALT: () => {
780
+ const e = this.CONSUME(i);
781
+ return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
776
782
  } }
777
783
  ]);
778
784
  }), this._ruleLiteral = this.RULE("ruleLiteral", () => {
779
- const { StringToken: e, BooleanToken: t, LiteralError: s, RefError: r } = this._vocab;
785
+ const { StringToken: e, BooleanToken: s, LiteralError: r, RefError: i } = this._vocab;
780
786
  return this.OR([
781
787
  { ALT: () => {
782
788
  const e = this.SUBRULE(this._ruleNumber);
783
- return this.ACTION(() => this._tag(m(e.image, this._locale), this.getLexerPosition()));
789
+ return this.ACTION(() => this._tag(a(e.image, this._locale), this.getLexerPosition()));
784
790
  } },
785
791
  { ALT: () => {
786
792
  const t = this.CONSUME(e);
787
- return this.ACTION(() => this._tag(x(t.image), this.getLexerPosition()));
788
- } },
789
- { ALT: () => {
790
- const e = this.CONSUME(t);
791
- return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
793
+ return this.ACTION(() => this._tag(A(t.image), this.getLexerPosition()));
792
794
  } },
793
795
  { ALT: () => {
794
796
  const e = this.CONSUME(s);
795
- return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
797
+ return this.ACTION(() => this._tag(t(e.image, this._locale), this.getLexerPosition()));
796
798
  } },
797
799
  { ALT: () => {
798
800
  const e = this.CONSUME(r);
799
- return this.ACTION(() => this._tag(R(e.image, this._locale), this.getLexerPosition()));
801
+ return this.ACTION(() => this._tag(p(e.image, this._locale), this.getLexerPosition()));
802
+ } },
803
+ { ALT: () => {
804
+ const e = this.CONSUME(i);
805
+ return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
800
806
  } }
801
807
  ]);
802
808
  }), this._ruleFunction = this.RULE("ruleFunction", () => {
803
- const { FunctionToken: e, OpenParen: t, CloseParen: r } = this._vocab, i = this.CONSUME(e).image, n = this.getLexerPosition();
809
+ const { FunctionToken: e, OpenParen: t, CloseParen: s } = this._vocab, r = this.CONSUME(e).image, i = this.getLexerPosition();
804
810
  this.CONSUME(t);
805
811
  const o = this.SUBRULE(this._ruleFunctionArguments);
806
- let a = this.ACTION(() => this._tag(s(i, o), n));
807
- const h = this.OPTION(() => this.CONSUME(r));
808
- return a = this.ACTION(() => (h || this._reportError(a, "Missing closing parenthesis ')'", n), this._tagClose(a, this.getLexerPosition()))), a;
812
+ let a = this.ACTION(() => this._tag(n(r, o), i));
813
+ const h = this.OPTION(() => this.CONSUME(s));
814
+ return a = this.ACTION(() => (h || this._reportError(a, "Missing closing parenthesis ')'", i), this._tagClose(a, this.getLexerPosition()))), a;
809
815
  }), this._ruleFunctionArguments = this.RULE("ruleFunctionArguments", () => {
810
816
  const { ArgSeparator: e, CloseParen: t } = this._vocab, s = [];
811
817
  return this.OPTION({
@@ -814,11 +820,11 @@ var te = {
814
820
  let t;
815
821
  this.OPTION2(() => {
816
822
  t = this.SUBRULE(this._ruleIntersectOp);
817
- }), t = this.ACTION(() => t ?? this._tagClose(c(), this.getLexerPosition())), s.push(t), this.MANY(() => {
823
+ }), t = this.ACTION(() => t ?? this._tagClose(r(), this.getLexerPosition())), s.push(t), this.MANY(() => {
818
824
  let t;
819
825
  this.CONSUME(e), this.OPTION3(() => {
820
826
  t = this.SUBRULE2(this._ruleIntersectOp);
821
- }), t = this.ACTION(() => t ?? this._tagClose(c(), this.getLexerPosition())), s.push(t);
827
+ }), t = this.ACTION(() => t ?? this._tagClose(r(), this.getLexerPosition())), s.push(t);
822
828
  });
823
829
  }
824
830
  }), s;
@@ -837,62 +843,62 @@ var te = {
837
843
  return this._tag(e.root, s);
838
844
  });
839
845
  }), this._ruleReference = this.RULE("ruleReference", () => {
840
- const { Sheet: e, SheetQuoted: t, DivOp: s, MulOp: i, PlusOp: n, MinOp: o, ArgSeparator: a, Cell: h, NamedToken: l, SingleQuotedString: c, Column: g, AbsRow: m, DigitToken: O, RefError: E } = this._vocab;
841
- let L, f;
846
+ const { Sheet: e, SheetQuoted: t, DivOp: s, MulOp: r, PlusOp: i, MinOp: n, ArgSeparator: o, Cell: a, NamedToken: l, SingleQuotedString: c, Column: p, AbsRow: m, DigitToken: O, RefError: _ } = this._vocab;
847
+ let E, L;
842
848
  this.OPTION2({
843
849
  GATE: () => {
844
- for (let r = 1; r < 6; r++) {
845
- const h = this.LA(r);
850
+ for (let a = 1; a < 6; a++) {
851
+ const h = this.LA(a);
846
852
  if (h.tokenType === e || h.tokenType === t) return !0;
847
- if ("" === h.image || ")" === h.image || h.tokenType === s || h.tokenType === i || h.tokenType === n || h.tokenType === o || h.tokenType === a) break;
853
+ if ("" === h.image || ")" === h.image || h.tokenType === s || h.tokenType === r || h.tokenType === i || h.tokenType === n || h.tokenType === o) break;
848
854
  }
849
855
  return !1;
850
856
  },
851
857
  DEF: () => {
852
- f = this.getLexerPosition() + 1, L = this.SUBRULE(this._rulePrefixSheetName);
858
+ L = this.getLexerPosition() + 1, E = this.SUBRULE(this._rulePrefixSheetName);
853
859
  }
854
860
  });
855
861
  let A = this.OR([
856
862
  { ALT: () => {
857
- const e = this.CONSUME(h), t = this.getLexerPosition();
858
- return this.ACTION(() => this._tag(r(e.image, this.rowIndex, this.colIndex), t));
863
+ const e = this.CONSUME(a), t = this.getLexerPosition();
864
+ return this.ACTION(() => this._tag(h(e.image, this.rowIndex, this.colIndex), t));
859
865
  } },
860
866
  { ALT: () => {
861
867
  const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(c) }]);
862
- return this.ACTION(() => this._tag(p(e.image), this.getLexerPosition()));
868
+ return this.ACTION(() => this._tag(g(e.image), this.getLexerPosition()));
863
869
  } },
864
870
  { ALT: () => this.SUBRULE(this._ruleBracketedString) },
865
871
  { ALT: () => this.SUBRULE(this._ruleFunction) },
866
872
  { ALT: () => {
867
- const e = this.CONSUME(g);
873
+ const e = this.CONSUME(p);
868
874
  return this.ACTION(() => this._tag(u(e.image, this.colIndex), this.getLexerPosition()));
869
875
  } },
870
876
  { ALT: () => {
871
877
  const e = this.CONSUME(m);
872
- return this.ACTION(() => this._tag(N(e.image, this.rowIndex), this.getLexerPosition()));
878
+ return this.ACTION(() => this._tag(S(e.image, this.rowIndex), this.getLexerPosition()));
873
879
  } },
874
880
  { ALT: () => {
875
881
  const e = this.CONSUME(O);
876
- return this.ACTION(() => this._tag(N(e.image, this.rowIndex), this.getLexerPosition()));
882
+ return this.ACTION(() => this._tag(S(e.image, this.rowIndex), this.getLexerPosition()));
877
883
  } },
878
884
  { ALT: () => {
879
- const e = this.CONSUME(E);
880
- return this.ACTION(() => this._tag(R(e.image, this._locale), this.getLexerPosition()));
885
+ const e = this.CONSUME(_);
886
+ return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
881
887
  } }
882
888
  ]);
883
889
  return this.ACTION(() => {
884
- if (L && A) {
885
- if ("" === L.name) return void this._reportError(A, `'${L.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
890
+ if (E && A) {
891
+ if ("" === E.name) return void this._reportError(A, `'${E.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
886
892
  let e = A;
887
- if (A.type === _.Postfix && A.inputs?.[0] && (e = A.inputs[0]), e.type === _.Cell || e.type === _.Named || e.type === _.Row || e.type === _.TableColumn || e.type === _.Error) {
888
- e.value.scope = L.name, e.value.scopeImage = L.image;
893
+ if (A.type === R.Postfix && A.inputs?.[0] && (e = A.inputs[0]), e.type === R.Cell || e.type === R.Named || e.type === R.Row || e.type === R.TableColumn || e.type === R.Error) {
894
+ e.value.scope = E.name, e.value.scopeImage = E.image;
889
895
  const t = this._tokenMap.get(e);
890
- t && void 0 !== f && (t.tokenIndex = f);
896
+ t && void 0 !== L && (t.tokenIndex = L);
891
897
  }
892
898
  }
893
899
  }), A;
894
900
  }), this._rulePrefixSheetName = this.RULE("rulePrefixSheetName", () => {
895
- const { SheetQuoted: e, BracketedString: t, NamedToken: s, RangeOp: r, Sheet: i } = this._vocab;
901
+ const { SheetQuoted: e, BracketedString: t, NamedToken: s, Column: r, RangeOp: i, Sheet: n } = this._vocab;
896
902
  return this.OR([{ ALT: () => {
897
903
  const t = this.CONSUME(e).image;
898
904
  return {
@@ -904,15 +910,18 @@ var te = {
904
910
  this.OPTION(() => {
905
911
  e += this.CONSUME(t).image;
906
912
  }), this.OPTION2({
907
- GATE: () => this.LA(2).tokenType === r,
913
+ GATE: () => this.LA(2).tokenType === i,
908
914
  DEF: () => {
909
- e += this.CONSUME(s).image, this.CONSUME(r), e += ":";
915
+ e += this.OR2([{ ALT: () => this.CONSUME(s).image }, {
916
+ GATE: () => 36 !== this.LA(1).image.charCodeAt(0),
917
+ ALT: () => this.CONSUME(r).image
918
+ }]), this.CONSUME(i), e += ":";
910
919
  }
911
920
  });
912
- const n = this.CONSUME(i).image;
921
+ const o = this.CONSUME(n).image;
913
922
  return {
914
- name: e + n.slice(0, -1),
915
- image: e + n
923
+ name: e + o.slice(0, -1),
924
+ image: e + o
916
925
  };
917
926
  } }]);
918
927
  }), this._ruleNumber = this.RULE("ruleNumber", () => {
@@ -927,12 +936,12 @@ var te = {
927
936
  return this.MANY(() => {
928
937
  this.CONSUME(e), s.push(this.SUBRULE2(this._ruleIntersectOp));
929
938
  }), this.ACTION(() => 0 === s.length ? t : {
930
- type: _.List,
939
+ type: R.List,
931
940
  value: ",",
932
941
  inputs: [t, ...s],
933
942
  isReference: !0
934
943
  });
935
- }), this._lexer = l, this._locale = l.getLocale(), this._vocab = O, this._srParser = a?.srParser ?? new Q(this._locale), this.performSelfAnalysis();
944
+ }), this._lexer = m, this._locale = m.getLocale(), this._vocab = O, this._srParser = s?.srParser ?? new Q(this._locale), this.performSelfAnalysis();
936
945
  }
937
946
  getLexer() {
938
947
  return this._lexer;
@@ -942,26 +951,26 @@ var te = {
942
951
  let i;
943
952
  if (!r) return {
944
953
  root: {
945
- type: _.Unparsed,
954
+ type: R.Unparsed,
946
955
  value: s
947
956
  },
948
957
  errors: []
949
958
  };
950
959
  const n = r.tokens;
951
960
  if (0 === n.length) throw new M.Parse(J);
952
- return this.input = n, this._inputText = s, this._inputTextLength = s.length, this.rowIndex = e, this.colIndex = t, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), i = this._ruleRoot(), i && this._bindAllWhitespace(i), i = C(i, (t, s) => {
953
- const r = t.type, i = s?.isReference ? s.value : void 0, n = "string" == typeof i && Z.has(i), o = "string" == typeof i && q.has(i), a = n ? s.inputs : void 0, h = a ? a[0] === t ? a[1] : a[0] : void 0, u = this._lexer.getMaxRow();
954
- if (n && r !== _.Cell && Number.isInteger(t.value)) {
955
- const s = N(t.image, e);
956
- return l(s, t), "row" !== K(h) ? this._reportError(s, `'${t.image}' is not a valid reference — a whole row can only pair with another row (as in ${t.image}:${t.image})`) : H(t.image, u) || this._reportError(s, `'${t.image}' is not a valid row — rows run from 1 to ${u}`), s;
961
+ return this.input = n, this._inputText = s, this._inputTextLength = s.length, this.rowIndex = e, this.colIndex = t, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), i = this._ruleRoot(), i && this._bindAllWhitespace(i), i = L(i, (t, s) => {
962
+ const r = t.type, i = s?.isReference ? s.value : void 0, n = "string" == typeof i && Z.has(i), o = "string" == typeof i && q.has(i), a = n ? s.inputs : void 0, h = a ? a[0] === t ? a[1] : a[0] : void 0, l = this._lexer.getMaxRow();
963
+ if (n && r !== R.Cell && Number.isInteger(t.value)) {
964
+ const s = S(t.image, e);
965
+ return I(s, t), "row" !== K(h) ? this._reportError(s, `'${t.image}' is not a valid reference — a whole row can only pair with another row (as in ${t.image}:${t.image})`) : H(t.image, l) || this._reportError(s, `'${t.image}' is not a valid row — rows run from 1 to ${l}`), s;
957
966
  }
958
- if (o && r === _.Named) return this._reportError(t, `'${t.image ?? t.value?.nameId}' is a name — '${i}' needs a cell or range on both sides`), t;
959
- if (r === _.Cell) {
967
+ if (o && r === R.Named) return this._reportError(t, `'${t.image ?? t.value?.nameId}' is a name — '${i}' needs a cell or range on both sides`), t;
968
+ if (r === R.Cell) {
960
969
  const e = t.value, s = e.colIndex === Number.MIN_SAFE_INTEGER, r = e.rowIndex === Number.MIN_SAFE_INTEGER;
961
- if ((s || r) && K(h) === (s ? "row" : "col")) return s && !H(t.image, u) && this._reportError(t, `'${t.image}' is not a valid row — rows run from 1 to ${u}`), t;
970
+ if ((s || r) && K(h) === (s ? "row" : "col")) return s && !H(t.image, l) && this._reportError(t, `'${t.image}' is not a valid row — rows run from 1 to ${l}`), t;
962
971
  if (s || r || e.colIndex >= 16384) {
963
- const n = p(t.image);
964
- l(n, t);
972
+ const n = g(t.image);
973
+ I(n, t);
965
974
  const a = e.scope;
966
975
  return a && (n.value.scope = a, n.value.scopeImage = e.scopeImage), s ? this._reportError(n, `'${t.image}' is not a valid reference — a row needs a column (use ${t.image}:${t.image} for the whole row)`) : r && t.image.includes("$") ? this._reportError(n, `'${t.image}' is not a valid reference — a whole column can only pair with another column (as in ${t.image}:${t.image})`) : o && this._reportError(n, `'${t.image}' is a name — '${i}' needs a cell or range on both sides`), n;
967
976
  }
@@ -1024,7 +1033,7 @@ var te = {
1024
1033
  _bindAllWhitespace(e) {
1025
1034
  if (e) {
1026
1035
  if (this._bindNodeWhitespace(e), e.inputs) for (const t of e.inputs) t && this._bindAllWhitespace(t);
1027
- if (e.type === _.Array && Array.isArray(e.value)) {
1036
+ if (e.type === R.Array && Array.isArray(e.value)) {
1028
1037
  for (const t of e.value) if (t && Array.isArray(t.value)) for (const e of t.value) e && this._bindAllWhitespace(e);
1029
1038
  }
1030
1039
  }