ooxml-core 1.33.0 → 1.34.0

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 (381) hide show
  1. package/dist/PptxHandler-5UDSMCBG.cjs +14 -0
  2. package/dist/PptxHandler-TTRTAQAR.mjs +5 -0
  3. package/dist/{PptxHandler-Q7CFNKOU.mjs → PptxHandler-XCYX5DVX.mjs} +2 -2
  4. package/dist/{PresentationBuilder-VP2637RH.cjs → PresentationBuilder-HA56ZY23.cjs} +6 -5
  5. package/dist/{PresentationBuilder-SADKXDWC.mjs → PresentationBuilder-IVLUEB4K.mjs} +2 -2
  6. package/dist/{PresentationBuilder-PJMQRZI6.mjs → PresentationBuilder-JBTNOIL7.mjs} +3 -2
  7. package/dist/automation/index.cjs +45489 -42876
  8. package/dist/automation/index.mjs +45489 -42876
  9. package/dist/{chunk-2LTIDUXH.cjs → chunk-A27O7M5X.cjs} +147 -133
  10. package/dist/{chunk-Y2RH4QWG.mjs → chunk-EGBNPVBA.mjs} +1542 -721
  11. package/dist/{chunk-QRXMYOVN.mjs → chunk-GNGL4BO7.mjs} +66 -44
  12. package/dist/chunk-LSO5SSFX.mjs +112 -0
  13. package/dist/chunk-MB3TYNMV.mjs +28 -0
  14. package/dist/{chunk-EBBWRRSB.mjs → chunk-MK2IBZU6.mjs} +1 -1
  15. package/dist/{chunk-BDZR4DZ6.cjs → chunk-PA5ADSTX.cjs} +1329 -1306
  16. package/dist/{chunk-BQGLWC6N.mjs → chunk-RI56PFGL.mjs} +67 -44
  17. package/dist/{chunk-3LMHYL4W.mjs → chunk-RPJHMPEL.mjs} +1 -1
  18. package/dist/{chunk-JQVOUS6B.mjs → chunk-TJXK4D4U.mjs} +4 -4
  19. package/dist/{chunk-6LJW76BZ.mjs → chunk-UQMAPY6D.mjs} +147 -128
  20. package/dist/chunk-XF6ZRA2D.cjs +120 -0
  21. package/dist/crypto/index.cjs +23 -15
  22. package/dist/crypto/index.mjs +23 -15
  23. package/dist/docx/block-parser.d.ts.map +1 -1
  24. package/dist/docx/embedded.cjs +519 -161
  25. package/dist/docx/embedded.mjs +519 -161
  26. package/dist/docx/find-pattern.d.ts +33 -0
  27. package/dist/docx/find-pattern.d.ts.map +1 -0
  28. package/dist/docx/find-replacement.d.ts +16 -0
  29. package/dist/docx/find-replacement.d.ts.map +1 -0
  30. package/dist/docx/find-syntax.d.ts +13 -0
  31. package/dist/docx/find-syntax.d.ts.map +1 -0
  32. package/dist/docx/find-wildcards.d.ts +8 -0
  33. package/dist/docx/find-wildcards.d.ts.map +1 -0
  34. package/dist/docx/form-field-model.d.ts +39 -0
  35. package/dist/docx/form-field-model.d.ts.map +1 -1
  36. package/dist/docx/index.cjs +3157 -994
  37. package/dist/docx/index.d.ts +3 -1
  38. package/dist/docx/index.d.ts.map +1 -1
  39. package/dist/docx/index.mjs +3153 -995
  40. package/dist/docx/layout/adapter.d.ts.map +1 -1
  41. package/dist/docx/layout/index.cjs +30 -8
  42. package/dist/docx/layout/index.mjs +30 -8
  43. package/dist/docx/layout/input.d.ts +2 -0
  44. package/dist/docx/layout/input.d.ts.map +1 -1
  45. package/dist/docx/load/index.cjs +6706 -1322
  46. package/dist/docx/load/index.mjs +6706 -1322
  47. package/dist/docx/load/legacy-doc/binary-save.d.ts +4 -0
  48. package/dist/docx/load/legacy-doc/binary-save.d.ts.map +1 -0
  49. package/dist/docx/load/legacy-doc/blocks.d.ts +19 -0
  50. package/dist/docx/load/legacy-doc/blocks.d.ts.map +1 -0
  51. package/dist/docx/load/legacy-doc/borders.d.ts +7 -0
  52. package/dist/docx/load/legacy-doc/borders.d.ts.map +1 -0
  53. package/dist/docx/load/legacy-doc/context.d.ts +65 -0
  54. package/dist/docx/load/legacy-doc/context.d.ts.map +1 -0
  55. package/dist/docx/load/legacy-doc/drawing.d.ts +15 -0
  56. package/dist/docx/load/legacy-doc/drawing.d.ts.map +1 -0
  57. package/dist/docx/load/legacy-doc/error.d.ts +5 -0
  58. package/dist/docx/load/legacy-doc/error.d.ts.map +1 -0
  59. package/dist/docx/load/legacy-doc/inline.d.ts +7 -0
  60. package/dist/docx/load/legacy-doc/inline.d.ts.map +1 -0
  61. package/dist/docx/load/legacy-doc/numbering-part.d.ts +3 -0
  62. package/dist/docx/load/legacy-doc/numbering-part.d.ts.map +1 -0
  63. package/dist/docx/load/legacy-doc/package.d.ts +8 -0
  64. package/dist/docx/load/legacy-doc/package.d.ts.map +1 -0
  65. package/dist/docx/load/legacy-doc/para-props.d.ts +6 -0
  66. package/dist/docx/load/legacy-doc/para-props.d.ts.map +1 -0
  67. package/dist/docx/load/legacy-doc/run-props.d.ts +8 -0
  68. package/dist/docx/load/legacy-doc/run-props.d.ts.map +1 -0
  69. package/dist/docx/load/legacy-doc/sections.d.ts +23 -0
  70. package/dist/docx/load/legacy-doc/sections.d.ts.map +1 -0
  71. package/dist/docx/load/legacy-doc/styles-part.d.ts +3 -0
  72. package/dist/docx/load/legacy-doc/styles-part.d.ts.map +1 -0
  73. package/dist/docx/load/legacy-doc/table.d.ts +6 -0
  74. package/dist/docx/load/legacy-doc/table.d.ts.map +1 -0
  75. package/dist/docx/load/legacy-doc/xml.d.ts +21 -0
  76. package/dist/docx/load/legacy-doc/xml.d.ts.map +1 -0
  77. package/dist/docx/load/legacy-doc.d.ts +5 -4
  78. package/dist/docx/load/legacy-doc.d.ts.map +1 -1
  79. package/dist/docx/model-paragraph.d.ts +5 -0
  80. package/dist/docx/model-paragraph.d.ts.map +1 -1
  81. package/dist/docx/model.d.ts +3 -0
  82. package/dist/docx/model.d.ts.map +1 -1
  83. package/dist/docx/numbering-editing.d.ts +11 -1
  84. package/dist/docx/numbering-editing.d.ts.map +1 -1
  85. package/dist/docx/numbering-format.d.ts.map +1 -1
  86. package/dist/docx/numbering-model.d.ts +17 -0
  87. package/dist/docx/numbering-model.d.ts.map +1 -1
  88. package/dist/docx/numbering-package.d.ts +2 -2
  89. package/dist/docx/numbering-package.d.ts.map +1 -1
  90. package/dist/docx/numbering-parse.d.ts +2 -1
  91. package/dist/docx/numbering-parse.d.ts.map +1 -1
  92. package/dist/docx/numbering-picture-save.d.ts +13 -0
  93. package/dist/docx/numbering-picture-save.d.ts.map +1 -0
  94. package/dist/docx/numbering-picture.d.ts +18 -0
  95. package/dist/docx/numbering-picture.d.ts.map +1 -0
  96. package/dist/docx/parse.d.ts.map +1 -1
  97. package/dist/docx/permission-markers.d.ts +19 -0
  98. package/dist/docx/permission-markers.d.ts.map +1 -0
  99. package/dist/docx/permissions.d.ts +11 -0
  100. package/dist/docx/permissions.d.ts.map +1 -0
  101. package/dist/docx/protection-legacy.d.ts +13 -0
  102. package/dist/docx/protection-legacy.d.ts.map +1 -0
  103. package/dist/docx/protection.d.ts +30 -0
  104. package/dist/docx/protection.d.ts.map +1 -0
  105. package/dist/docx/save.d.ts.map +1 -1
  106. package/dist/docx/settings.d.ts +6 -1
  107. package/dist/docx/settings.d.ts.map +1 -1
  108. package/dist/docx/ui/customization.d.ts.map +1 -1
  109. package/dist/docx/ui/edit-restriction.d.ts +53 -0
  110. package/dist/docx/ui/edit-restriction.d.ts.map +1 -0
  111. package/dist/docx/ui/index.cjs +548 -18
  112. package/dist/docx/ui/index.d.ts +4 -0
  113. package/dist/docx/ui/index.d.ts.map +1 -1
  114. package/dist/docx/ui/index.mjs +528 -19
  115. package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
  116. package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
  117. package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
  118. package/dist/docx/write-paragraph.d.ts.map +1 -1
  119. package/dist/drawingml/index.cjs +1 -0
  120. package/dist/drawingml/index.mjs +1 -0
  121. package/dist/drawingml/write-theme.d.ts +2 -0
  122. package/dist/drawingml/write-theme.d.ts.map +1 -1
  123. package/dist/index.cjs +337 -95
  124. package/dist/index.mjs +337 -95
  125. package/dist/pptx/automation/index.cjs +1919 -758
  126. package/dist/pptx/automation/index.d.ts +37 -3
  127. package/dist/pptx/automation/index.d.ts.map +1 -1
  128. package/dist/pptx/automation/index.mjs +252 -10
  129. package/dist/pptx/automation/schemas/index.cjs +26 -0
  130. package/dist/pptx/automation/schemas/index.d.ts +26 -1
  131. package/dist/pptx/automation/schemas/index.d.ts.map +1 -0
  132. package/dist/pptx/automation/schemas/index.mjs +1 -1
  133. package/dist/pptx/chunks/index-Bp-1pGo1.d.ts.map +1 -1
  134. package/dist/pptx/chunks/{index-BuMPQDQb.d.ts → index-pLLN4OTz.d.ts} +37 -10
  135. package/dist/pptx/chunks/{index-BuMPQDQb.d.ts.map → index-pLLN4OTz.d.ts.map} +1 -1
  136. package/dist/pptx/cli/index.cjs +281 -116
  137. package/dist/pptx/cli/index.mjs +4 -4
  138. package/dist/pptx/converter/index.mjs +2 -2
  139. package/dist/pptx/editor/render/custom-show-operations.cjs +133 -0
  140. package/dist/pptx/editor/render/custom-show-operations.d.ts +42 -0
  141. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -0
  142. package/dist/pptx/editor/render/custom-show-operations.mjs +119 -0
  143. package/dist/pptx/editor/render/find-replace.cjs +15 -14
  144. package/dist/pptx/editor/render/find-replace.d.ts +1 -1
  145. package/dist/pptx/editor/render/find-replace.mjs +2 -1
  146. package/dist/pptx/editor/render/slide-operations.cjs +9 -8
  147. package/dist/pptx/editor/render/slide-operations.mjs +3 -2
  148. package/dist/pptx/editor/render/table-data-grid-ops.cjs +1 -1
  149. package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
  150. package/dist/pptx/index.cjs +1656 -761
  151. package/dist/pptx/index.d.ts +2 -2
  152. package/dist/pptx/index.mjs +5 -5
  153. package/dist/teams/index.cjs +213 -26
  154. package/dist/teams/index.mjs +213 -26
  155. package/dist/text/index.cjs +241 -0
  156. package/dist/text/index.d.ts +2 -0
  157. package/dist/text/index.d.ts.map +1 -1
  158. package/dist/text/index.mjs +240 -1
  159. package/dist/text/truetype/parse.d.ts +36 -0
  160. package/dist/text/truetype/parse.d.ts.map +1 -0
  161. package/dist/text/truetype/subset.d.ts +16 -0
  162. package/dist/text/truetype/subset.d.ts.map +1 -0
  163. package/dist/visio/cell-formula.d.ts.map +1 -1
  164. package/dist/visio/container-relationships.d.ts +40 -6
  165. package/dist/visio/container-relationships.d.ts.map +1 -1
  166. package/dist/visio/data-connections.d.ts +32 -0
  167. package/dist/visio/data-connections.d.ts.map +1 -0
  168. package/dist/visio/data-recordsets.d.ts +7 -0
  169. package/dist/visio/data-recordsets.d.ts.map +1 -1
  170. package/dist/visio/data-refresh.d.ts +33 -0
  171. package/dist/visio/data-refresh.d.ts.map +1 -0
  172. package/dist/visio/edit-commands.d.ts +6 -1
  173. package/dist/visio/edit-commands.d.ts.map +1 -1
  174. package/dist/visio/edit-connector.d.ts.map +1 -1
  175. package/dist/visio/edit-container-fit.d.ts +15 -2
  176. package/dist/visio/edit-container-fit.d.ts.map +1 -1
  177. package/dist/visio/edit-container-members.d.ts +12 -0
  178. package/dist/visio/edit-container-members.d.ts.map +1 -1
  179. package/dist/visio/edit-container-options.d.ts +33 -0
  180. package/dist/visio/edit-container-options.d.ts.map +1 -0
  181. package/dist/visio/edit-data-commands.d.ts +5 -0
  182. package/dist/visio/edit-data-commands.d.ts.map +1 -1
  183. package/dist/visio/edit-data-parts.d.ts +2 -0
  184. package/dist/visio/edit-data-parts.d.ts.map +1 -1
  185. package/dist/visio/edit-data.d.ts.map +1 -1
  186. package/dist/visio/edit-diagram-parts-commands.d.ts +2 -1
  187. package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -1
  188. package/dist/visio/edit-diagram-parts.d.ts +8 -0
  189. package/dist/visio/edit-diagram-parts.d.ts.map +1 -1
  190. package/dist/visio/edit-group-resize.d.ts.map +1 -1
  191. package/dist/visio/edit-instance-checks.d.ts.map +1 -1
  192. package/dist/visio/edit-package.d.ts.map +1 -1
  193. package/dist/visio/edit-page-theme-commands.d.ts +26 -0
  194. package/dist/visio/edit-page-theme-commands.d.ts.map +1 -1
  195. package/dist/visio/edit-page-theme-part.d.ts +6 -0
  196. package/dist/visio/edit-page-theme-part.d.ts.map +1 -0
  197. package/dist/visio/edit-page-theme.d.ts +9 -1
  198. package/dist/visio/edit-page-theme.d.ts.map +1 -1
  199. package/dist/visio/edit-picture-adjust.d.ts +32 -0
  200. package/dist/visio/edit-picture-adjust.d.ts.map +1 -0
  201. package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
  202. package/dist/visio/edit-swimlane-commands.d.ts +91 -0
  203. package/dist/visio/edit-swimlane-commands.d.ts.map +1 -0
  204. package/dist/visio/edit-swimlane-layout.d.ts +64 -0
  205. package/dist/visio/edit-swimlane-layout.d.ts.map +1 -0
  206. package/dist/visio/edit-swimlane-ops.d.ts +11 -0
  207. package/dist/visio/edit-swimlane-ops.d.ts.map +1 -0
  208. package/dist/visio/edit-swimlane-shapes.d.ts +42 -0
  209. package/dist/visio/edit-swimlane-shapes.d.ts.map +1 -0
  210. package/dist/visio/edit-swimlane-turn.d.ts +9 -0
  211. package/dist/visio/edit-swimlane-turn.d.ts.map +1 -0
  212. package/dist/visio/edit.d.ts.map +1 -1
  213. package/dist/visio/effects.d.ts +3 -2
  214. package/dist/visio/effects.d.ts.map +1 -1
  215. package/dist/visio/geometry.d.ts +2 -1
  216. package/dist/visio/geometry.d.ts.map +1 -1
  217. package/dist/visio/index.cjs +10254 -7285
  218. package/dist/visio/index.d.ts +7 -0
  219. package/dist/visio/index.d.ts.map +1 -1
  220. package/dist/visio/index.mjs +10248 -7286
  221. package/dist/visio/infinite-line.d.ts +17 -0
  222. package/dist/visio/infinite-line.d.ts.map +1 -0
  223. package/dist/visio/model.d.ts +46 -0
  224. package/dist/visio/model.d.ts.map +1 -1
  225. package/dist/visio/package-kind.d.ts +34 -0
  226. package/dist/visio/package-kind.d.ts.map +1 -0
  227. package/dist/visio/page-theme.d.ts +7 -0
  228. package/dist/visio/page-theme.d.ts.map +1 -1
  229. package/dist/visio/parser.d.ts +2 -2
  230. package/dist/visio/parser.d.ts.map +1 -1
  231. package/dist/visio/shadow.d.ts +2 -1
  232. package/dist/visio/shadow.d.ts.map +1 -1
  233. package/dist/visio/shape-structure.d.ts +14 -1
  234. package/dist/visio/shape-structure.d.ts.map +1 -1
  235. package/dist/visio/shapes.d.ts +7 -1
  236. package/dist/visio/shapes.d.ts.map +1 -1
  237. package/dist/visio/stencil-file.d.ts +2 -2
  238. package/dist/visio/style.d.ts.map +1 -1
  239. package/dist/visio/swimlane-stack.d.ts +65 -0
  240. package/dist/visio/swimlane-stack.d.ts.map +1 -0
  241. package/dist/visio/theme-builtins.d.ts +3 -0
  242. package/dist/visio/theme-builtins.d.ts.map +1 -1
  243. package/dist/visio/theme-effects.d.ts +19 -0
  244. package/dist/visio/theme-effects.d.ts.map +1 -0
  245. package/dist/visio/theme-font.d.ts +13 -0
  246. package/dist/visio/theme-font.d.ts.map +1 -0
  247. package/dist/visio/theme-line.d.ts.map +1 -1
  248. package/dist/visio/theme-write.d.ts.map +1 -1
  249. package/dist/visio/theme.d.ts +7 -0
  250. package/dist/visio/theme.d.ts.map +1 -1
  251. package/dist/visio/ui/data-graphic-config.d.ts +45 -0
  252. package/dist/visio/ui/data-graphic-config.d.ts.map +1 -0
  253. package/dist/visio/ui/data-graphic-rules.d.ts +7 -0
  254. package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
  255. package/dist/visio/ui/data-graphics.d.ts +9 -0
  256. package/dist/visio/ui/data-graphics.d.ts.map +1 -1
  257. package/dist/visio/ui/diagram-parts.d.ts +8 -1
  258. package/dist/visio/ui/diagram-parts.d.ts.map +1 -1
  259. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  260. package/dist/visio/ui/guides.d.ts +9 -1
  261. package/dist/visio/ui/guides.d.ts.map +1 -1
  262. package/dist/visio/ui/index.cjs +12664 -9884
  263. package/dist/visio/ui/index.d.ts +4 -0
  264. package/dist/visio/ui/index.d.ts.map +1 -1
  265. package/dist/visio/ui/index.mjs +12630 -9885
  266. package/dist/visio/ui/org-chart.d.ts +75 -0
  267. package/dist/visio/ui/org-chart.d.ts.map +1 -0
  268. package/dist/visio/ui/resize-snap.d.ts +51 -0
  269. package/dist/visio/ui/resize-snap.d.ts.map +1 -0
  270. package/dist/visio/ui/sample-drawing.d.ts +26 -0
  271. package/dist/visio/ui/sample-drawing.d.ts.map +1 -1
  272. package/dist/visio/ui/scene-validation.d.ts.map +1 -1
  273. package/dist/visio/ui/selection-resize.d.ts +2 -2
  274. package/dist/visio/ui/selection-resize.d.ts.map +1 -1
  275. package/dist/visio/ui/shape-resize.d.ts +29 -1
  276. package/dist/visio/ui/shape-resize.d.ts.map +1 -1
  277. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  278. package/dist/visio/ui/swimlane.d.ts +37 -0
  279. package/dist/visio/ui/swimlane.d.ts.map +1 -0
  280. package/dist/visio/ui/templates.d.ts +26 -0
  281. package/dist/visio/ui/templates.d.ts.map +1 -0
  282. package/dist/xlsx/audit/ast-text.d.ts +12 -0
  283. package/dist/xlsx/audit/ast-text.d.ts.map +1 -0
  284. package/dist/xlsx/audit/error-check.d.ts +23 -0
  285. package/dist/xlsx/audit/error-check.d.ts.map +1 -0
  286. package/dist/xlsx/audit/evaluate-steps.d.ts +48 -0
  287. package/dist/xlsx/audit/evaluate-steps.d.ts.map +1 -0
  288. package/dist/xlsx/audit/index.d.ts +6 -0
  289. package/dist/xlsx/audit/index.d.ts.map +1 -0
  290. package/dist/xlsx/audit/trace.d.ts +59 -0
  291. package/dist/xlsx/audit/trace.d.ts.map +1 -0
  292. package/dist/xlsx/audit/watch.d.ts +17 -0
  293. package/dist/xlsx/audit/watch.d.ts.map +1 -0
  294. package/dist/xlsx/edit/filter.d.ts +5 -2
  295. package/dist/xlsx/edit/filter.d.ts.map +1 -1
  296. package/dist/xlsx/edit/index.d.ts +4 -1
  297. package/dist/xlsx/edit/index.d.ts.map +1 -1
  298. package/dist/xlsx/edit/session.d.ts.map +1 -1
  299. package/dist/xlsx/edit/sort-choices.d.ts +23 -0
  300. package/dist/xlsx/edit/sort-choices.d.ts.map +1 -0
  301. package/dist/xlsx/edit/sort-keys.d.ts +49 -0
  302. package/dist/xlsx/edit/sort-keys.d.ts.map +1 -0
  303. package/dist/xlsx/edit/sort-reapply.d.ts +11 -0
  304. package/dist/xlsx/edit/sort-reapply.d.ts.map +1 -0
  305. package/dist/xlsx/edit/sort.d.ts +14 -12
  306. package/dist/xlsx/edit/sort.d.ts.map +1 -1
  307. package/dist/xlsx/edit/types.d.ts +7 -6
  308. package/dist/xlsx/edit/types.d.ts.map +1 -1
  309. package/dist/xlsx/edit/view.d.ts +9 -1
  310. package/dist/xlsx/edit/view.d.ts.map +1 -1
  311. package/dist/xlsx/filter-criteria.d.ts +2 -1
  312. package/dist/xlsx/filter-criteria.d.ts.map +1 -1
  313. package/dist/xlsx/formula/engine-types.d.ts +8 -0
  314. package/dist/xlsx/formula/engine-types.d.ts.map +1 -1
  315. package/dist/xlsx/formula/engine.d.ts.map +1 -1
  316. package/dist/xlsx/index.cjs +5478 -4220
  317. package/dist/xlsx/index.d.ts +1 -0
  318. package/dist/xlsx/index.d.ts.map +1 -1
  319. package/dist/xlsx/index.mjs +5450 -4221
  320. package/dist/xlsx/layout/index.d.ts +1 -0
  321. package/dist/xlsx/layout/index.d.ts.map +1 -1
  322. package/dist/xlsx/layout/split.d.ts +55 -0
  323. package/dist/xlsx/layout/split.d.ts.map +1 -0
  324. package/dist/xlsx/layout/viewport.d.ts +2 -0
  325. package/dist/xlsx/layout/viewport.d.ts.map +1 -1
  326. package/dist/xlsx/load/index.cjs +305 -109
  327. package/dist/xlsx/load/index.mjs +305 -109
  328. package/dist/xlsx/model-sort.d.ts +27 -0
  329. package/dist/xlsx/model-sort.d.ts.map +1 -0
  330. package/dist/xlsx/model.d.ts +39 -1
  331. package/dist/xlsx/model.d.ts.map +1 -1
  332. package/dist/xlsx/read/ignored-errors.d.ts +4 -0
  333. package/dist/xlsx/read/ignored-errors.d.ts.map +1 -0
  334. package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
  335. package/dist/xlsx/read/sort-state.d.ts +5 -0
  336. package/dist/xlsx/read/sort-state.d.ts.map +1 -0
  337. package/dist/xlsx/read/tables.d.ts +2 -2
  338. package/dist/xlsx/read/tables.d.ts.map +1 -1
  339. package/dist/xlsx/read/worksheet.d.ts.map +1 -1
  340. package/dist/xlsx/sort-lists.d.ts +6 -0
  341. package/dist/xlsx/sort-lists.d.ts.map +1 -0
  342. package/dist/xlsx/ui/audit-state.d.ts +19 -0
  343. package/dist/xlsx/ui/audit-state.d.ts.map +1 -0
  344. package/dist/xlsx/ui/commands/audit.d.ts +3 -0
  345. package/dist/xlsx/ui/commands/audit.d.ts.map +1 -0
  346. package/dist/xlsx/ui/commands/formulas.d.ts.map +1 -1
  347. package/dist/xlsx/ui/commands/i18n/audit.d.ts +3 -0
  348. package/dist/xlsx/ui/commands/i18n/audit.d.ts.map +1 -0
  349. package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -1
  350. package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
  351. package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -1
  352. package/dist/xlsx/ui/commands/i18n/rules.d.ts.map +1 -1
  353. package/dist/xlsx/ui/commands/icons.d.ts.map +1 -1
  354. package/dist/xlsx/ui/commands/sort-filter.d.ts.map +1 -1
  355. package/dist/xlsx/ui/context.d.ts +6 -1
  356. package/dist/xlsx/ui/context.d.ts.map +1 -1
  357. package/dist/xlsx/ui/grid/geometry.d.ts +29 -1
  358. package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
  359. package/dist/xlsx/ui/index.cjs +10761 -9573
  360. package/dist/xlsx/ui/index.d.ts +1 -0
  361. package/dist/xlsx/ui/index.d.ts.map +1 -1
  362. package/dist/xlsx/ui/index.mjs +10755 -9574
  363. package/dist/xlsx/ui/ribbon/icon-paths.d.ts.map +1 -1
  364. package/dist/xlsx/ui/ribbon/tabs/review-view.d.ts.map +1 -1
  365. package/dist/xlsx/write/filter-columns.d.ts +14 -0
  366. package/dist/xlsx/write/filter-columns.d.ts.map +1 -1
  367. package/dist/xlsx/write/ignored-errors.d.ts +3 -0
  368. package/dist/xlsx/write/ignored-errors.d.ts.map +1 -0
  369. package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
  370. package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
  371. package/dist/xlsx/write/sort-state.d.ts +55 -0
  372. package/dist/xlsx/write/sort-state.d.ts.map +1 -0
  373. package/dist/xlsx/write/table-patch.d.ts +2 -1
  374. package/dist/xlsx/write/table-patch.d.ts.map +1 -1
  375. package/dist/xlsx/write/tables.d.ts +2 -1
  376. package/dist/xlsx/write/tables.d.ts.map +1 -1
  377. package/dist/xlsx/write/worksheet.d.ts.map +1 -1
  378. package/package.json +2 -2
  379. package/dist/PptxHandler-MGKMIK22.cjs +0 -13
  380. package/dist/PptxHandler-TEC7SWBU.mjs +0 -4
  381. package/dist/chunk-MHNETXQB.mjs +0 -1
@@ -29,7 +29,7 @@ function isOoxmlCryptoError(error) {
29
29
  return code === "password-required" || code === "incorrect-password" || code === "data-integrity";
30
30
  }
31
31
 
32
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
32
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
33
33
  var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
34
34
  var ENDOFCHAIN = 4294967294;
35
35
  var FREESECT = 4294967295;
@@ -49,16 +49,18 @@ var Ole2ParseError = class extends Error {
49
49
  }
50
50
  };
51
51
 
52
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-directory.js
53
- var FILETIME_UNIX_EPOCH = 116444736000000000n;
54
- function readFileTime(view, offset2) {
55
- const ticks = view.getBigUint64(offset2, true);
52
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-filetime.js
53
+ var EPOCH = 116444736000000000n;
54
+ function fileTimeDate(ticks) {
56
55
  if (ticks === 0n)
57
56
  return void 0;
58
- const ms = Number((ticks - FILETIME_UNIX_EPOCH) / 10000n);
59
- const date = new Date(ms);
57
+ const delta = ticks - EPOCH;
58
+ const ms = delta >= 0n ? delta / 10000n : (delta - 9999n) / 10000n;
59
+ const date = new Date(Number(ms));
60
60
  return Number.isNaN(date.getTime()) ? void 0 : date;
61
61
  }
62
+
63
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-directory.js
62
64
  function decodeSlot(dir, id, majorVersion, warnings) {
63
65
  const view = new DataView(dir.buffer, dir.byteOffset + id * DIR_ENTRY_SIZE, DIR_ENTRY_SIZE);
64
66
  const nameLen = view.getUint16(64, true);
@@ -94,8 +96,10 @@ function decodeSlot(dir, id, majorVersion, warnings) {
94
96
  childId: link(76),
95
97
  clsid: new Uint8Array(view.buffer.slice(view.byteOffset + 80, view.byteOffset + 96)),
96
98
  stateBits: view.getUint32(96, true),
97
- created: readFileTime(view, 100),
98
- modified: readFileTime(view, 108),
99
+ created: fileTimeDate(view.getBigUint64(100, true)),
100
+ modified: fileTimeDate(view.getBigUint64(108, true)),
101
+ createdFileTime: view.getBigUint64(100, true),
102
+ modifiedFileTime: view.getBigUint64(108, true),
99
103
  startSector: view.getUint32(116, true),
100
104
  size,
101
105
  parentId: -1
@@ -211,7 +215,7 @@ function findStreamByName(entries, name, isReadable) {
211
215
  return top.find((entry3) => entry3.name === name) ?? top.find((entry3) => sameName(entry3.name, name)) ?? entries.find((entry3) => entry3.name === name && isReadable(entry3));
212
216
  }
213
217
 
214
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
218
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
215
219
  function parseOle2(buffer, options = {}) {
216
220
  const strict = options.strict === true;
217
221
  const data = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
@@ -358,7 +362,11 @@ function parseOle2(buffer, options = {}) {
358
362
  }
359
363
  if (firstDirectorySector > MAXREGSECT)
360
364
  throw new Ole2ParseError("Missing directory chain");
361
- const entries = readDirectory(readMetadataChain(firstDirectorySector, "directory"), majorVersion, strict, warnings);
365
+ const directoryBytes = readMetadataChain(firstDirectorySector, "directory");
366
+ if (strict && majorVersion === 4 && view.getUint32(40, true) !== directoryBytes.length / sectorSize) {
367
+ throw new Ole2ParseError("Unexpected directory sector count");
368
+ }
369
+ const entries = readDirectory(directoryBytes, majorVersion, strict, warnings);
362
370
  for (const entry3 of entries) {
363
371
  if (majorVersion === 4 && (!Number.isSafeInteger(entry3.size) || entry3.size > sectorCount * sectorSize)) {
364
372
  throw new Ole2ParseError("Stream size exceeds supported file bounds");
@@ -466,7 +474,7 @@ function createOfficeGuid() {
466
474
  return `{${uuid.toUpperCase()}}`;
467
475
  }
468
476
 
469
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/ooxml-crypto-primitives.js
477
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/utils/ooxml-crypto-primitives.js
470
478
  function getSubtle() {
471
479
  if (typeof globalThis.crypto !== "undefined" && globalThis.crypto.subtle) {
472
480
  return globalThis.crypto.subtle;
@@ -2660,7 +2668,7 @@ function isEncryptedOoxmlPackage(input) {
2660
2668
  }
2661
2669
  }
2662
2670
 
2663
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
2671
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
2664
2672
  function compareDirEntryNames(a2, b) {
2665
2673
  const ua = a2.toUpperCase();
2666
2674
  const ub = b.toUpperCase();
@@ -2727,7 +2735,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
2727
2735
  }
2728
2736
  }
2729
2737
 
2730
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
2738
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
2731
2739
  function writeHeader(outView, outBytes, params) {
2732
2740
  outBytes.set(OLE_MAGIC, 0);
2733
2741
  outView.setUint16(24, 62, true);
@@ -2820,7 +2828,7 @@ function writeStreamSectors(outBytes, streamData, chain2, sectorSize) {
2820
2828
  }
2821
2829
  }
2822
2830
 
2823
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
2831
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
2824
2832
  function buildOle2(streams2, rootClsid, miniStreamCutoff = 4096) {
2825
2833
  const sectorSize = 512;
2826
2834
  const miniSectorSize = 64;
@@ -4690,6 +4698,17 @@ var TIME_PERIODS = [
4690
4698
  "lastMonth",
4691
4699
  "nextMonth"
4692
4700
  ];
4701
+ var IGNORED_ERROR_FLAGS = [
4702
+ "evalError",
4703
+ "twoDigitTextYear",
4704
+ "numberStoredAsText",
4705
+ "formula",
4706
+ "formulaRange",
4707
+ "unlockedFormula",
4708
+ "emptyCellReference",
4709
+ "listDataValidation",
4710
+ "calculatedColumn"
4711
+ ];
4693
4712
 
4694
4713
  // xlsx/numfmt/builtins.ts
4695
4714
  var BUILTIN_NUMBER_FORMATS = Object.freeze({
@@ -12340,6 +12359,41 @@ function readFilterColumn(column2, dxfs) {
12340
12359
  return entry3;
12341
12360
  }
12342
12361
 
12362
+ // xlsx/read/sort-state.ts
12363
+ var SORT_BY = /* @__PURE__ */ new Set(["value", "cellColor", "fontColor", "icon"]);
12364
+ function readSortState(node2, dxfs) {
12365
+ const range = parseRange(att(node2, "ref") ?? "");
12366
+ if (!node2 || !range) return void 0;
12367
+ const conditions = [];
12368
+ for (const child6 of xChildren(node2, "sortCondition")) {
12369
+ const ref = parseRange(att(child6, "ref") ?? "");
12370
+ if (!ref) continue;
12371
+ const condition = { ref };
12372
+ if (boolAttr(child6, "descending", false)) condition.descending = true;
12373
+ const by = att(child6, "sortBy");
12374
+ if (by && SORT_BY.has(by) && by !== "value") condition.sortBy = by;
12375
+ const customList = att(child6, "customList");
12376
+ if (customList) condition.customList = customList;
12377
+ const dxfId = numAttr(child6, "dxfId");
12378
+ if (dxfId !== void 0) {
12379
+ condition.dxfId = dxfId;
12380
+ const style2 = dxfs?.[dxfId];
12381
+ if (style2) condition.style = structuredClone(style2);
12382
+ }
12383
+ const iconSet = att(child6, "iconSet");
12384
+ if (iconSet) condition.iconSet = iconSet;
12385
+ const iconId = numAttr(child6, "iconId");
12386
+ if (iconId !== void 0) condition.iconId = iconId;
12387
+ conditions.push(condition);
12388
+ }
12389
+ return {
12390
+ range,
12391
+ ...boolAttr(node2, "columnSort", false) ? { columnSort: true } : {},
12392
+ ...boolAttr(node2, "caseSensitive", false) ? { caseSensitive: true } : {},
12393
+ conditions
12394
+ };
12395
+ }
12396
+
12343
12397
  // xlsx/read/sheet-props.ts
12344
12398
  var defaultSheetView = () => ({
12345
12399
  showGridLines: true,
@@ -12354,6 +12408,7 @@ function parseSqref(sqref2) {
12354
12408
  }
12355
12409
  var readTabColor = (sheetPr, palette) => parseColor(xFirst(sheetPr, "tabColor"), palette);
12356
12410
  var readFitToPage = (sheetPr) => boolAttr(xFirst(sheetPr, "pageSetUpPr"), "fitToPage") ?? false;
12411
+ var PANES = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight"]);
12357
12412
  function readSheetView(sheetViews) {
12358
12413
  const view = defaultSheetView();
12359
12414
  const node2 = xFirst(sheetViews, "sheetView");
@@ -12374,23 +12429,41 @@ function readSheetView(sheetViews) {
12374
12429
  const cols = Math.max(0, Math.round(numAttr(pane, "xSplit") ?? 0));
12375
12430
  if (rows || cols) view.freeze = { rows, cols };
12376
12431
  }
12432
+ const split2 = pane && state === "split";
12433
+ if (split2) {
12434
+ const x = Math.max(0, Math.round(numAttr(pane, "xSplit") ?? 0));
12435
+ const y = Math.max(0, Math.round(numAttr(pane, "ySplit") ?? 0));
12436
+ if (x || y) {
12437
+ view.split = { x, y };
12438
+ const first2 = parseAddress(att(node2, "topLeftCell") ?? "");
12439
+ if (first2) view.split.topLeft = first2;
12440
+ const active = att(pane, "activePane");
12441
+ if (active && PANES.has(active))
12442
+ view.split.activePane = active;
12443
+ }
12444
+ }
12377
12445
  const topLeft = parseAddress(
12378
- (frozen ? att(pane, "topLeftCell") : att(node2, "topLeftCell")) ?? ""
12446
+ (frozen || split2 ? att(pane, "topLeftCell") : att(node2, "topLeftCell")) ?? ""
12379
12447
  );
12380
12448
  if (topLeft) view.topLeft = topLeft;
12381
12449
  const selections = xChildren(node2, "selection");
12382
12450
  const activePane = att(pane, "activePane") ?? "topLeft";
12383
12451
  const selection = selections.find((sel) => (att(sel, "pane") ?? "topLeft") === activePane) ?? selections[0];
12384
- if (selection) {
12385
- const ranges = parseSqref(att(selection, "sqref") ?? att(selection, "activeCell") ?? "A1");
12386
- const active = parseAddress(att(selection, "activeCell") ?? "") ?? ranges[0]?.start ?? { row: 0, col: 0 };
12387
- view.selection = {
12388
- active,
12389
- ranges: ranges.length ? ranges : [{ start: active, end: { ...active } }]
12390
- };
12452
+ if (selection) view.selection = readSelection(selection);
12453
+ if (view.split) {
12454
+ for (const other of selections) {
12455
+ const name = att(other, "pane") ?? "topLeft";
12456
+ if (other === selection || !PANES.has(name)) continue;
12457
+ (view.split.paneSelections ??= {})[name] = readSelection(other);
12458
+ }
12391
12459
  }
12392
12460
  return view;
12393
12461
  }
12462
+ function readSelection(selection) {
12463
+ const ranges = parseSqref(att(selection, "sqref") ?? att(selection, "activeCell") ?? "A1");
12464
+ const active = parseAddress(att(selection, "activeCell") ?? "") ?? ranges[0]?.start ?? { row: 0, col: 0 };
12465
+ return { active, ranges: ranges.length ? ranges : [{ start: active, end: { ...active } }] };
12466
+ }
12394
12467
  var FORMAT_FLAGS = ["zeroHeight", "customHeight", "thickTop", "thickBottom"];
12395
12468
  function readSheetFormat(format) {
12396
12469
  const result2 = {
@@ -12435,6 +12508,8 @@ function readAutoFilter(node2, dxfs) {
12435
12508
  const filter2 = { range };
12436
12509
  const columns = xChildren(node2, "filterColumn").map((column2) => readFilterColumn(column2, dxfs));
12437
12510
  if (columns.length) filter2.columns = columns;
12511
+ const sortState = readSortState(xFirst(node2, "sortState"), dxfs);
12512
+ if (sortState) filter2.sortState = sortState;
12438
12513
  return filter2;
12439
12514
  }
12440
12515
  var HEADER_FOOTER_TEXT = {
@@ -26403,8 +26478,8 @@ function runSmartArtEngine(data, layoutXml3, width, height, context) {
26403
26478
  if (!def) {
26404
26479
  return void 0;
26405
26480
  }
26406
- const model2 = buildDataModel(data.nodes, data.connections);
26407
- const tree = buildPresentationTree(def, model2.doc, {
26481
+ const model3 = buildDataModel(data.nodes, data.connections);
26482
+ const tree = buildPresentationTree(def, model3.doc, {
26408
26483
  direction: data.presLayoutVars?.direction === "rev" ? "rev" : void 0
26409
26484
  });
26410
26485
  if (!tree) {
@@ -29030,20 +29105,20 @@ function newPoint(doc, modelId, type, cxnId, placeholder2 = false) {
29030
29105
  pt.appendChild(emptyBody(doc));
29031
29106
  return pt;
29032
29107
  }
29033
- function dropDrawingExtension(model2) {
29034
- const extLst = child2(model2, "extLst");
29108
+ function dropDrawingExtension(model3) {
29109
+ const extLst = child2(model3, "extLst");
29035
29110
  if (!extLst) return;
29036
29111
  for (const ext of elements(extLst))
29037
29112
  if (ext.getAttribute("uri") === DSP_EXT_URI) extLst.removeChild(ext);
29038
- if (elements(extLst).length === 0) model2.removeChild(extLst);
29113
+ if (elements(extLst).length === 0) model3.removeChild(extLst);
29039
29114
  }
29040
29115
  function writeEditedDiagramData(xml, nodes, options = {}) {
29041
29116
  const createModelId = options.createModelId ?? createOfficeGuid;
29042
29117
  const doc = parseXml(xml, { label: "diagram data" });
29043
- const model2 = doc.documentElement;
29044
- const ptLst = child2(model2, "ptLst");
29118
+ const model3 = doc.documentElement;
29119
+ const ptLst = child2(model3, "ptLst");
29045
29120
  if (!ptLst) throw new Error("The diagram data part has no point list.");
29046
- let cxnLst = child2(model2, "cxnLst");
29121
+ let cxnLst = child2(model3, "cxnLst");
29047
29122
  if (!cxnLst) {
29048
29123
  cxnLst = element(doc, DGM, "dgm:cxnLst");
29049
29124
  ptLst.parentNode?.insertBefore(cxnLst, ptLst.nextSibling);
@@ -29150,7 +29225,7 @@ function writeEditedDiagramData(xml, nodes, options = {}) {
29150
29225
  if (options.colorsId) prSet.setAttribute("csTypeId", options.colorsId);
29151
29226
  if (options.quickStyleId) prSet.setAttribute("qsTypeId", options.quickStyleId);
29152
29227
  }
29153
- if (options.dropDrawingLink) dropDrawingExtension(model2);
29228
+ if (options.dropDrawingLink) dropDrawingExtension(model3);
29154
29229
  return buildXml(doc);
29155
29230
  }
29156
29231
 
@@ -30350,7 +30425,7 @@ function remapFill(fill, id) {
30350
30425
  }
30351
30426
  return { ...fill, relId: id, sourceXml: buildXml(node2) };
30352
30427
  }
30353
- function captureDiagramPictures(model2, dataXml2, dataParts, drawing) {
30428
+ function captureDiagramPictures(model3, dataXml2, dataParts, drawing) {
30354
30429
  const pictures = [];
30355
30430
  const parts = { ...dataParts };
30356
30431
  const add3 = (source3, owner) => {
@@ -30375,7 +30450,7 @@ function captureDiagramPictures(model2, dataXml2, dataParts, drawing) {
30375
30450
  for (const element3 of saved) {
30376
30451
  const nodeId = element3.getAttribute("nodeId");
30377
30452
  const fill = first(element3, "blipFill", NS.a);
30378
- if (nodeId && fill && model2.nodes.some((node2) => node2.modelId === nodeId))
30453
+ if (nodeId && fill && model3.nodes.some((node2) => node2.modelId === nodeId))
30379
30454
  add3(
30380
30455
  {
30381
30456
  nodeId,
@@ -30386,10 +30461,10 @@ function captureDiagramPictures(model2, dataXml2, dataParts, drawing) {
30386
30461
  dataParts
30387
30462
  );
30388
30463
  }
30389
- for (const point of model2.points) {
30464
+ for (const point of model3.points) {
30390
30465
  if (point.fill?.kind !== "picture") continue;
30391
30466
  const nodeId = point.type === "pres" ? point.presAssocId : point.modelId;
30392
- if (nodeId && model2.nodes.some((node2) => node2.modelId === nodeId) && !pictures.some((item2) => item2.nodeId === nodeId))
30467
+ if (nodeId && model3.nodes.some((node2) => node2.modelId === nodeId) && !pictures.some((item2) => item2.nodeId === nodeId))
30393
30468
  add3(
30394
30469
  {
30395
30470
  nodeId,
@@ -30402,14 +30477,14 @@ function captureDiagramPictures(model2, dataXml2, dataParts, drawing) {
30402
30477
  }
30403
30478
  for (const shape2 of drawing?.shapes ?? []) {
30404
30479
  if (shape2.fill?.kind !== "picture") continue;
30405
- const point = model2.points.find((point2) => point2.modelId === shape2.modelId);
30480
+ const point = model3.points.find((point2) => point2.modelId === shape2.modelId);
30406
30481
  const nodeId = shape2.sourceNodeId ?? (point?.type === "pres" ? point.presAssocId : point?.modelId);
30407
30482
  const part = shape2.fill.relId ? drawing?.pictureParts?.[shape2.fill.relId] : void 0;
30408
30483
  if (saved.length && pictures.some(
30409
30484
  (item2) => item2.nodeId === nodeId && item2.fill.relId && parts[item2.fill.relId] === part && item2.role !== point?.presName && item2.styleLabel !== point?.presStyleLabel
30410
30485
  ))
30411
30486
  continue;
30412
- if (nodeId && model2.nodes.some((node2) => node2.modelId === nodeId))
30487
+ if (nodeId && model3.nodes.some((node2) => node2.modelId === nodeId))
30413
30488
  add3(
30414
30489
  {
30415
30490
  nodeId,
@@ -30785,10 +30860,10 @@ function add(parent, namespace, name, attrs3 = {}) {
30785
30860
  }
30786
30861
  function withDiagramDrawingRelationship(xml, relationshipId) {
30787
30862
  const doc = parseXml(xml);
30788
- const model2 = doc.documentElement;
30789
- let extension = descendants2(model2, "dataModelExt").find((node2) => node2.namespaceURI === DSP2);
30863
+ const model3 = doc.documentElement;
30864
+ let extension = descendants2(model3, "dataModelExt").find((node2) => node2.namespaceURI === DSP2);
30790
30865
  if (!extension) {
30791
- const extLst = first(model2, "extLst", NS.dgm) ?? add(model2, NS.dgm, "dgm:extLst");
30866
+ const extLst = first(model3, "extLst", NS.dgm) ?? add(model3, NS.dgm, "dgm:extLst");
30792
30867
  extension = add(add(extLst, NS.a, "a:ext", { uri: DSP2 }), DSP2, "dsp:dataModelExt", {
30793
30868
  minVer: NS.dgm
30794
30869
  });
@@ -30799,13 +30874,13 @@ function withDiagramDrawingRelationship(xml, relationshipId) {
30799
30874
  function buildGeneratedDiagramCache(dataXml2, input) {
30800
30875
  dataXml2 = withDiagramPictureSources(dataXml2, input.source);
30801
30876
  const source3 = { ...input.source, dataXml: dataXml2 };
30802
- const model2 = parseDiagramDataModel(dataXml2);
30877
+ const model3 = parseDiagramDataModel(dataXml2);
30803
30878
  const scheme2 = { ...DEFAULT_GENERATED_DIAGRAM_SCHEME, ...input.scheme };
30804
30879
  const preview = previewDiagramLayout({
30805
30880
  ...input,
30806
30881
  source: source3,
30807
30882
  scheme: scheme2,
30808
- nodes: diagramNodesInTreeOrder(model2)
30883
+ nodes: diagramNodesInTreeOrder(model3)
30809
30884
  });
30810
30885
  if (preview.mode !== "interpreted" || preview.issues.length || !preview.drawing?.shapes.length)
30811
30886
  return void 0;
@@ -30837,7 +30912,7 @@ function buildGeneratedDiagramCache(dataXml2, input) {
30837
30912
  const point = children(points2, "pt", NS.dgm).find(
30838
30913
  (point2) => point2.getAttribute("modelId") === shape2.sourceNodeId
30839
30914
  );
30840
- const direct = model2.nodes.find((node2) => node2.modelId === shape2.sourceNodeId);
30915
+ const direct = model3.nodes.find((node2) => node2.modelId === shape2.sourceNodeId);
30841
30916
  const fillIndex = shape2.style?.fill?.index;
30842
30917
  const template2 = fillIndex ? input.formatScheme?.fillStyles[fillIndex - 1]?.fill : void 0;
30843
30918
  if (!direct?.fill && shape2.fill?.kind === "solid" && shape2.fill.color.kind === "srgb" && (!template2 || template2.kind === "solid" && template2.color.kind === "scheme" && template2.color.value === "phClr")) {
@@ -35742,6 +35817,21 @@ function markSpills(sheet, anchors) {
35742
35817
  }
35743
35818
  }
35744
35819
 
35820
+ // xlsx/read/ignored-errors.ts
35821
+ function readIgnoredErrors(node2) {
35822
+ if (!node2) return [];
35823
+ const out = [];
35824
+ for (const child6 of xChildren(node2, "ignoredError")) {
35825
+ const ranges = (att(child6, "sqref") ?? "").split(/\s+/).map((ref) => parseRange(ref)).filter((range) => range !== void 0);
35826
+ const flags = IGNORED_ERROR_FLAGS.filter((flag2) => {
35827
+ const value2 = att(child6, flag2);
35828
+ return value2 === "1" || value2 === "true";
35829
+ });
35830
+ if (ranges.length && flags.length) out.push({ ranges, flags });
35831
+ }
35832
+ return out;
35833
+ }
35834
+
35745
35835
  // xlsx/read/scenarios.ts
35746
35836
  function readScenarios(node2) {
35747
35837
  if (!node2) return void 0;
@@ -35775,7 +35865,7 @@ function readScenarios(node2) {
35775
35865
  }
35776
35866
 
35777
35867
  // xlsx/read/tables.ts
35778
- function parseTable(xml, partName) {
35868
+ function parseTable(xml, partName, dxfs) {
35779
35869
  const root = parseXml(xml, { label: "XLSX table" }).documentElement;
35780
35870
  const range = parseRange(att(root, "ref") ?? "");
35781
35871
  if (!range) return void 0;
@@ -35804,7 +35894,7 @@ function parseTable(xml, partName) {
35804
35894
  columns,
35805
35895
  partName
35806
35896
  };
35807
- readColumnFilters(root, table2);
35897
+ readColumnFilters(root, table2, dxfs);
35808
35898
  const info = xFirst(root, "tableStyleInfo");
35809
35899
  if (info) {
35810
35900
  const style2 = att(info, "name");
@@ -35816,8 +35906,10 @@ function parseTable(xml, partName) {
35816
35906
  }
35817
35907
  return table2;
35818
35908
  }
35819
- function readColumnFilters(root, table2) {
35909
+ function readColumnFilters(root, table2, dxfs) {
35820
35910
  const filter2 = xFirst(root, "autoFilter");
35911
+ const sortState = readSortState(xFirst(filter2, "sortState") ?? xFirst(root, "sortState"), dxfs);
35912
+ if (sortState) table2.sortState = sortState;
35821
35913
  for (const node2 of filter2 ? xChildren(filter2, "filterColumn") : []) {
35822
35914
  const column2 = table2.columns[numAttr(node2, "colId") ?? -1];
35823
35915
  const filters = xChildren(node2, "filters");
@@ -35865,7 +35957,8 @@ var MODELLED = /* @__PURE__ */ new Set([
35865
35957
  "legacyDrawing",
35866
35958
  "tableParts",
35867
35959
  "scenarios",
35868
- "customSheetViews"
35960
+ "customSheetViews",
35961
+ "ignoredErrors"
35869
35962
  ]);
35870
35963
  function reportUnplaceable(ctx, sheet, element3) {
35871
35964
  ctx.warn(
@@ -35908,7 +36001,7 @@ function readTables(ctx, partName, node2, sheet) {
35908
36001
  const rel = rels.get(relAttr(part, "id") ?? "");
35909
36002
  const target = rel ? ctx.source.target(partName, rel) : void 0;
35910
36003
  const xml = target ? ctx.source.text(target) : void 0;
35911
- const table2 = target && xml ? parseTable(xml, target) : void 0;
36004
+ const table2 = target && xml ? parseTable(xml, target, ctx.dxfs) : void 0;
35912
36005
  if (table2) sheet.tables.push(table2);
35913
36006
  else ctx.warn("A table part could not be read and was dropped.");
35914
36007
  }
@@ -35978,6 +36071,8 @@ function readWorksheet(ctx, partName, name, sheetId, xml, rows) {
35978
36071
  if (protection) sheet.protection = protection;
35979
36072
  const autoFilter = readAutoFilter(byName.get("autoFilter"), ctx.dxfs);
35980
36073
  if (autoFilter) sheet.autoFilter = autoFilter;
36074
+ const sortState = readSortState(byName.get("sortState"), ctx.dxfs);
36075
+ if (sortState) sheet.sortState = sortState;
35981
36076
  sheet.merges = xChildren(byName.get("mergeCells") ?? root, "mergeCell").map((node2) => parseRange(att(node2, "ref") ?? "")).filter((range) => range !== void 0);
35982
36077
  sheet.conditionalFormats = readConditionalFormats(
35983
36078
  cfBlocks,
@@ -35985,6 +36080,8 @@ function readWorksheet(ctx, partName, name, sheetId, xml, rows) {
35985
36080
  ctx.palette,
35986
36081
  (m) => ctx.warn(m)
35987
36082
  );
36083
+ const ignored = readIgnoredErrors(byName.get("ignoredErrors"));
36084
+ if (ignored.length) sheet.ignoredErrors = ignored;
35988
36085
  const scenarios = readScenarios(byName.get("scenarios"));
35989
36086
  if (scenarios) sheet.scenarios = scenarios;
35990
36087
  sheet.dataValidations = readDataValidations(byName.get("dataValidations"));
@@ -48928,6 +49025,10 @@ function criteriaOf(column2) {
48928
49025
  function unresolvedFilter(filter2) {
48929
49026
  return filter2 && {
48930
49027
  range: filter2.range,
49028
+ sortState: filter2.sortState && {
49029
+ ...filter2.sortState,
49030
+ conditions: filter2.sortState.conditions.map(({ style: _style, ...rest }) => rest)
49031
+ },
48931
49032
  columns: filter2.columns?.map((column2) => ({
48932
49033
  offset: column2.offset,
48933
49034
  sourceXml: column2.sourceXml,
@@ -49008,6 +49109,49 @@ function filterColumnXml2(column2, styles) {
49008
49109
  );
49009
49110
  }
49010
49111
 
49112
+ // xlsx/write/sort-state.ts
49113
+ function sortStateXml(state, styles) {
49114
+ if (!state) return "";
49115
+ const levels = state.conditions.map((c2) => {
49116
+ const dxfId = c2.style && styles ? styles.dxfId(c2.style) : c2.dxfId;
49117
+ return el("sortCondition", {
49118
+ descending: c2.descending || void 0,
49119
+ sortBy: c2.sortBy && c2.sortBy !== "value" ? c2.sortBy : void 0,
49120
+ ref: formatRange(c2.ref),
49121
+ customList: c2.customList,
49122
+ dxfId,
49123
+ iconSet: c2.iconSet,
49124
+ iconId: c2.iconId
49125
+ });
49126
+ }).join("");
49127
+ return el(
49128
+ "sortState",
49129
+ {
49130
+ columnSort: state.columnSort || void 0,
49131
+ caseSensitive: state.caseSensitive || void 0,
49132
+ ref: formatRange(state.range)
49133
+ },
49134
+ levels
49135
+ );
49136
+ }
49137
+ var bareSortState = (state) => state && {
49138
+ ...state,
49139
+ conditions: state.conditions.map(({ style: _style, ...rest }) => rest)
49140
+ };
49141
+ function sheetSortStateXml(sheet, styles) {
49142
+ if (!sheet.sortState) return "";
49143
+ const kept = sheet.preserved.get("sortState")?.[0];
49144
+ if (kept) {
49145
+ try {
49146
+ const source3 = readSortState(parseXml(kept, { label: "XLSX worksheet" }).documentElement);
49147
+ if (sameModel(bareSortState(source3), bareSortState(sheet.sortState))) return "";
49148
+ } catch {
49149
+ }
49150
+ }
49151
+ return sortStateXml(sheet.sortState, styles);
49152
+ }
49153
+ var unresolvedTable = (table2) => table2 && { ...table2, sortState: bareSortState(table2.sortState) };
49154
+
49011
49155
  // xlsx/write/sheet-props.ts
49012
49156
  var sqref = (ranges) => ranges.map((range) => formatRange(range)).join(" ");
49013
49157
  function sheetPrXml(sheet) {
@@ -49033,6 +49177,19 @@ function dimensionXml(sheet) {
49033
49177
  const used = usedRange(sheet);
49034
49178
  return `<dimension ref="${used ? formatRange(used) : "A1"}"/>`;
49035
49179
  }
49180
+ function splitActivePane(split2) {
49181
+ const both = split2.x > 0 && split2.y > 0;
49182
+ const valid = both ? ["topLeft", "topRight", "bottomLeft", "bottomRight"] : split2.y > 0 ? ["topLeft", "bottomLeft"] : ["topLeft", "topRight"];
49183
+ if (split2.activePane && valid.includes(split2.activePane)) return split2.activePane;
49184
+ return both ? "bottomRight" : split2.y > 0 ? "bottomLeft" : "topRight";
49185
+ }
49186
+ function selectionXml(selection, pane) {
49187
+ return el("selection", {
49188
+ pane,
49189
+ activeCell: formatAddress(selection.active),
49190
+ sqref: sqref(selection.ranges) || formatAddress(selection.active)
49191
+ });
49192
+ }
49036
49193
  function sheetViewsXml(sheet, tabSelected) {
49037
49194
  const source3 = snapshotElement(sheet, "sheetViews");
49038
49195
  if (source3 && sameModel(readSheetView(source3), sheet.view)) {
@@ -49061,20 +49218,31 @@ function sheetViewsXml(sheet, tabSelected) {
49061
49218
  state: "frozen"
49062
49219
  });
49063
49220
  }
49064
- if (view.selection) {
49065
- inner += el("selection", {
49066
- pane,
49067
- activeCell: formatAddress(view.selection.active),
49068
- sqref: sqref(view.selection.ranges) || formatAddress(view.selection.active)
49221
+ const split2 = view.split && (view.split.x > 0 || view.split.y > 0) ? view.split : void 0;
49222
+ if (split2 && !pane) {
49223
+ const { x, y } = split2;
49224
+ pane = splitActivePane(split2);
49225
+ inner += el("pane", {
49226
+ xSplit: x || void 0,
49227
+ ySplit: y || void 0,
49228
+ topLeftCell: view.topLeft ? formatAddress(view.topLeft) : void 0,
49229
+ activePane: pane,
49230
+ state: "split"
49069
49231
  });
49070
49232
  }
49233
+ if (split2) {
49234
+ for (const name of ["topLeft", "topRight", "bottomLeft", "bottomRight"]) {
49235
+ const own = name === pane ? view.selection : split2.paneSelections?.[name];
49236
+ if (own) inner += selectionXml(own, name);
49237
+ }
49238
+ } else if (view.selection) inner += selectionXml(view.selection, pane);
49071
49239
  const attributes2 = attrs({
49072
49240
  tabSelected: tabSelected || void 0,
49073
49241
  showGridLines: view.showGridLines ? void 0 : false,
49074
49242
  showRowColHeaders: view.showHeaders ? void 0 : false,
49075
49243
  showZeros: view.showZeros ? void 0 : false,
49076
49244
  rightToLeft: view.rightToLeft || void 0,
49077
- topLeftCell: !view.freeze && view.topLeft ? formatAddress(view.topLeft) : void 0,
49245
+ topLeftCell: split2 ? split2.topLeft ? formatAddress(split2.topLeft) : void 0 : !view.freeze && view.topLeft ? formatAddress(view.topLeft) : void 0,
49078
49246
  showFormulas: view.showFormulas || void 0,
49079
49247
  view: view.mode,
49080
49248
  zoomScale: view.zoom !== 100 ? view.zoom : void 0,
@@ -49150,6 +49318,7 @@ function protectionXml2(sheet) {
49150
49318
  for (const name of allow) values2[name] = false;
49151
49319
  return el("sheetProtection", values2);
49152
49320
  }
49321
+ var extLstOf = (source3) => source3 ? elements(source3).filter((node2) => node2.localName === "extLst").map((node2) => outerXml(node2)).join("") : "";
49153
49322
  function autoFilterXml(sheet, styles) {
49154
49323
  const filter2 = sheet.autoFilter;
49155
49324
  if (!filter2) return "";
@@ -49158,7 +49327,7 @@ function autoFilterXml(sheet, styles) {
49158
49327
  return snapshotXml(sheet, "autoFilter") ?? "";
49159
49328
  const width = filter2.range.end.col - filter2.range.start.col + 1;
49160
49329
  const columns = (filter2.columns ?? []).filter((column2) => column2.offset >= 0 && column2.offset < width).sort((a2, b) => a2.offset - b.offset).map((column2) => filterColumnXml2(column2, styles)).join("");
49161
- const sort2 = source3 && sameModel(readAutoFilter(source3)?.range, filter2.range) ? elements(source3).filter((node2) => node2.localName === "sortState" || node2.localName === "extLst").map((node2) => outerXml(node2)).join("") : "";
49330
+ const sort2 = filter2.sortState ? sortStateXml(filter2.sortState, styles) + extLstOf(source3) : source3 && sameModel(readAutoFilter(source3)?.range, filter2.range) ? elements(source3).filter((node2) => node2.localName === "sortState" || node2.localName === "extLst").map((node2) => outerXml(node2)).join("") : "";
49162
49331
  return el("autoFilter", { ref: formatRange(filter2.range) }, columns + sort2);
49163
49332
  }
49164
49333
  function mergeCellsXml(sheet) {
@@ -50220,7 +50389,7 @@ function syncColumnFilters(doc, filter2, table2) {
50220
50389
  }
50221
50390
  });
50222
50391
  }
50223
- function patchAutoFilter(doc, root, table2, before, names) {
50392
+ function patchAutoFilter(doc, root, table2, before, names, styles) {
50224
50393
  const existing = xKid(root, "autoFilter");
50225
50394
  if (!table2.headerRow) {
50226
50395
  if (existing) root.removeChild(existing);
@@ -50241,6 +50410,19 @@ function patchAutoFilter(doc, root, table2, before, names) {
50241
50410
  syncColumnFilters(doc, filter2, table2);
50242
50411
  if (!existing) insertBefore(root, filter2, ["sortState", "tableColumns"]);
50243
50412
  const sort2 = xKid(filter2, "sortState") ?? xKid(root, "sortState");
50413
+ if (table2.sortState) {
50414
+ const kept = sort2 && bareSortState(readSortState(sort2));
50415
+ if (!sameModel(kept, bareSortState(table2.sortState))) {
50416
+ sort2?.parentNode?.removeChild(sort2);
50417
+ const xml = sortStateXml(table2.sortState, styles).replace(
50418
+ "<sortState",
50419
+ `<sortState xmlns="${NS.x}"`
50420
+ );
50421
+ const fresh = doc.importNode(parseXml(xml, { label: "XLSX table" }).documentElement, true);
50422
+ insertBefore(filter2, fresh, ["extLst"]);
50423
+ return;
50424
+ }
50425
+ }
50244
50426
  if (!sort2) return;
50245
50427
  const moved = before.start.row !== table2.range.start.row || before.start.col !== table2.range.start.col || before.end.col !== table2.range.end.col;
50246
50428
  if (moved) {
@@ -50286,11 +50468,11 @@ function patchColumns(doc, root, sheet, table2, names) {
50286
50468
  const column2 = picked[index3] ?? doc.createElementNS(NS.x, "tableColumn");
50287
50469
  if (!column2.getAttribute("id")) column2.setAttribute("id", num(nextId++));
50288
50470
  column2.setAttribute("name", name);
50289
- const model2 = table2.columns[index3];
50290
- const fn = table2.totalsRow ? model2?.totalsRowFunction : void 0;
50471
+ const model3 = table2.columns[index3];
50472
+ const fn = table2.totalsRow ? model3?.totalsRowFunction : void 0;
50291
50473
  setOrRemove(column2, "totalsRowFunction", fn);
50292
- setOrRemove(column2, "totalsRowLabel", table2.totalsRow ? model2?.totalsRowLabel : void 0);
50293
- const calculated = model2?.calculatedColumnFormula;
50474
+ setOrRemove(column2, "totalsRowLabel", table2.totalsRow ? model3?.totalsRowLabel : void 0);
50475
+ const calculated = model3?.calculatedColumnFormula;
50294
50476
  setChildText(
50295
50477
  doc,
50296
50478
  column2,
@@ -50326,7 +50508,7 @@ function patchStyleInfo(doc, root, table2) {
50326
50508
  info.setAttribute("showRowStripes", flag(table2.showRowStripes, true));
50327
50509
  info.setAttribute("showColumnStripes", flag(table2.showColumnStripes, false));
50328
50510
  }
50329
- function patchTableXml(sourceXml, sheet, table2, id, names) {
50511
+ function patchTableXml(sourceXml, sheet, table2, id, names, styles) {
50330
50512
  let doc;
50331
50513
  try {
50332
50514
  doc = parseXml(sourceXml, { label: "XLSX table" });
@@ -50348,7 +50530,7 @@ function patchTableXml(sourceXml, sheet, table2, id, names) {
50348
50530
  root.removeAttribute("totalsRowCount");
50349
50531
  if (!root.hasAttribute("totalsRowShown")) root.setAttribute("totalsRowShown", "0");
50350
50532
  }
50351
- patchAutoFilter(doc, root, table2, before, names);
50533
+ patchAutoFilter(doc, root, table2, before, names, styles);
50352
50534
  patchColumns(doc, root, sheet, table2, names);
50353
50535
  patchStyleInfo(doc, root, table2);
50354
50536
  return buildXml(doc);
@@ -50377,12 +50559,13 @@ function resolveTableColumns(sheet, table2) {
50377
50559
  }
50378
50560
  return { names, headerText };
50379
50561
  }
50380
- function tableXml(table2, id, names) {
50562
+ function tableXml(table2, id, names, styles) {
50381
50563
  const range = formatRange(table2.range);
50382
50564
  const filterEnd = { ...table2.range.end, row: table2.range.end.row - (table2.totalsRow ? 1 : 0) };
50383
50565
  const criteria = table2.columns.map((column2, index3) => column2.filter ? filterColumnXml(index3, column2.filter) : "").join("");
50384
50566
  const filterRef = formatRange({ start: table2.range.start, end: filterEnd });
50385
- const filter2 = table2.headerRow ? criteria ? `<autoFilter ref="${filterRef}">${criteria}</autoFilter>` : `<autoFilter ref="${filterRef}"/>` : "";
50567
+ const sort2 = sortStateXml(table2.sortState, styles);
50568
+ const filter2 = table2.headerRow ? criteria || sort2 ? `<autoFilter ref="${filterRef}">${criteria}${sort2}</autoFilter>` : `<autoFilter ref="${filterRef}"/>` : "";
50386
50569
  const columns = names.map((name, index3) => {
50387
50570
  const column2 = table2.columns[index3];
50388
50571
  const calculated = column2?.calculatedColumnFormula ? `<calculatedColumnFormula>${escapeText2(addFuturePrefixes(column2.calculatedColumnFormula))}</calculatedColumnFormula>` : "";
@@ -50538,7 +50721,7 @@ function writeTables(ctx, sheet, partName, rels, headerText, formulas) {
50538
50721
  const totals = totalsRowFormulas(sheet, table2, names);
50539
50722
  for (const [key, formula2] of totals) formulas.set(key, formula2);
50540
50723
  let id = table2.id;
50541
- const unchanged = table2.partName && sourceXml && !writer.has(table2.partName) && !ctx.tableIds.has(id) && forced.size === 0 && totals.size === 0 && table2 === original && sameModel(before, table2);
50724
+ const unchanged = table2.partName && sourceXml && !writer.has(table2.partName) && !ctx.tableIds.has(id) && forced.size === 0 && totals.size === 0 && table2 === original && sameModel(unresolvedTable(before), unresolvedTable(table2));
50542
50725
  let part;
50543
50726
  if (unchanged && table2.partName) {
50544
50727
  part = table2.partName;
@@ -50546,7 +50729,7 @@ function writeTables(ctx, sheet, partName, rels, headerText, formulas) {
50546
50729
  } else {
50547
50730
  while (ctx.tableIds.has(id) || id < 1) id++;
50548
50731
  part = table2.partName && !writer.has(table2.partName) ? table2.partName : writer.uniqueName((n) => `xl/tables/table${n}.xml`, ctx.reserved);
50549
- const xml = (sourceXml && patchTableXml(sourceXml, sheet, table2, id, names)) ?? tableXml(table2, id, names);
50732
+ const xml = (sourceXml && patchTableXml(sourceXml, sheet, table2, id, names, ctx.styles)) ?? tableXml(table2, id, names, ctx.styles);
50550
50733
  writer.add(part, xml, CONTENT_TYPES.table);
50551
50734
  }
50552
50735
  ctx.tableIds.add(id);
@@ -50607,6 +50790,17 @@ function scenariosXml(set) {
50607
50790
  return `<scenarios${a2}>${body}</scenarios>`;
50608
50791
  }
50609
50792
 
50793
+ // xlsx/write/ignored-errors.ts
50794
+ function ignoredErrorsXml(list2) {
50795
+ const items = (list2 ?? []).filter((e) => e.ranges.length && e.flags.length);
50796
+ if (!items.length) return "";
50797
+ const body = items.map((e) => {
50798
+ const flags = e.flags.map((flag2) => ` ${flag2}="1"`).join("");
50799
+ return `<ignoredError sqref="${e.ranges.map(formatRange).join(" ")}"${flags}/>`;
50800
+ }).join("");
50801
+ return `<ignoredErrors>${body}</ignoredErrors>`;
50802
+ }
50803
+
50610
50804
  // xlsx/write/worksheet.ts
50611
50805
  var REGENERATED = /* @__PURE__ */ new Set([
50612
50806
  RELATIONSHIP_TYPES.hyperlink,
@@ -50662,7 +50856,9 @@ function writeWorksheet(ctx, sheet, index3, partName) {
50662
50856
  blocks.set("scenarios", scenariosXml(sheet.scenarios));
50663
50857
  blocks.set("customSheetViews", customSheetViewsXml(sheet.customViews));
50664
50858
  blocks.set("autoFilter", autoFilterXml(sheet, ctx.styles));
50859
+ blocks.set("sortState", sheetSortStateXml(sheet, ctx.styles));
50665
50860
  blocks.set("mergeCells", mergeCellsXml(sheet));
50861
+ blocks.set("ignoredErrors", ignoredErrorsXml(sheet.ignoredErrors));
50666
50862
  blocks.set("conditionalFormatting", conditionalFormatsXml(sheet.conditionalFormats, ctx.styles));
50667
50863
  blocks.set("dataValidations", dataValidationsXml(sheet.dataValidations));
50668
50864
  const links = sheet.hyperlinks.map((link) => {
@@ -52114,7 +52310,7 @@ var xlsbUnsupported = () => new UnsupportedWorkbookError(
52114
52310
  "Excel Binary Workbook (.xlsb) files are not supported; save as .xlsx in Excel."
52115
52311
  );
52116
52312
 
52117
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-stream-edit.js
52313
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-stream-edit.js
52118
52314
  var END = 4294967294;
52119
52315
  var MAX = 4294967290;
52120
52316
  var NIL = 4294967295;
@@ -52202,21 +52398,21 @@ function readTarget(input, target, root, fat, sector, sectorCount, sectorSize, m
52202
52398
  return out;
52203
52399
  }
52204
52400
  function processCompoundFileStream(input, path3, replacement) {
52205
- const reject = () => replacement ? input : void 0;
52401
+ const reject2 = () => replacement ? input : void 0;
52206
52402
  try {
52207
52403
  if (path3.length === 0 || path3.some((part) => !part) || input.length < 512)
52208
- return reject();
52404
+ return reject2();
52209
52405
  const view = new DataView(input.buffer, input.byteOffset, input.byteLength);
52210
52406
  const read32 = (offset3) => view.getUint32(offset3, true);
52211
52407
  if (input[0] !== 208 || input[1] !== 207 || input[2] !== 17 || input[3] !== 224 || input[4] !== 161 || input[5] !== 177 || input[6] !== 26 || input[7] !== 225 || // Readers tolerate a non-canonical byte-order mark; edits do not.
52212
52408
  replacement && view.getUint16(28, true) !== 65534)
52213
- return reject();
52409
+ return reject2();
52214
52410
  const major = view.getUint16(26, true), shift3 = view.getUint16(30, true), miniShift = view.getUint16(32, true);
52215
52411
  if (major !== 3 && major !== 4 || shift3 !== (major === 3 ? 9 : 12) || miniShift !== 6)
52216
- return reject();
52412
+ return reject2();
52217
52413
  const sectorSize = 1 << shift3, miniSize = 1 << miniShift;
52218
52414
  if (input.length < sectorSize || replacement && input.length % sectorSize !== 0)
52219
- return reject();
52415
+ return reject2();
52220
52416
  const sectorCount = Math.ceil(input.length / sectorSize) - 1;
52221
52417
  const offset2 = (id) => (id + 1) * sectorSize;
52222
52418
  const sector = (id) => {
@@ -52235,7 +52431,7 @@ function processCompoundFileStream(input, path3, replacement) {
52235
52431
  const difatIds = /* @__PURE__ */ new Set();
52236
52432
  for (let i2 = 0; i2 < difatCount; i2++) {
52237
52433
  if (difatIds.has(difat) || difat > MAX)
52238
- return reject();
52434
+ return reject2();
52239
52435
  difatIds.add(difat);
52240
52436
  const bytes = sector(difat), dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
52241
52437
  for (let j = 0; j < (sectorSize - 4) / 4 && fatIds.length < fatCount; j++) {
@@ -52246,7 +52442,7 @@ function processCompoundFileStream(input, path3, replacement) {
52246
52442
  difat = dv.getUint32(sectorSize - 4, true);
52247
52443
  }
52248
52444
  if (fatIds.length !== fatCount || new Set(fatIds).size !== fatIds.length || fatIds.some((id) => difatIds.has(id)))
52249
- return reject();
52445
+ return reject2();
52250
52446
  const fat = [];
52251
52447
  for (const id of fatIds) {
52252
52448
  const bytes = sector(id), dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -52265,13 +52461,13 @@ function processCompoundFileStream(input, path3, replacement) {
52265
52461
  continue;
52266
52462
  const nameLength = dvDir.getUint16(p + 64, true);
52267
52463
  if (nameLength < 2 || nameLength > 64 || nameLength % 2)
52268
- return reject();
52464
+ return reject2();
52269
52465
  let name = "";
52270
52466
  for (let i2 = 0; i2 < nameLength - 2; i2 += 2)
52271
52467
  name += String.fromCharCode(dvDir.getUint16(p + i2, true));
52272
52468
  const sizeLow = dvDir.getUint32(p + 120, true), sizeHigh = dvDir.getUint32(p + 124, true);
52273
52469
  if (sizeHigh !== 0 && (replacement || major === 4))
52274
- return reject();
52470
+ return reject2();
52275
52471
  entries.push({
52276
52472
  id,
52277
52473
  name,
@@ -52286,7 +52482,7 @@ function processCompoundFileStream(input, path3, replacement) {
52286
52482
  const byId = new Map(entries.map((e) => [e.id, e]));
52287
52483
  const root = entries.find((e) => e.type === 5);
52288
52484
  if (!root)
52289
- return reject();
52485
+ return reject2();
52290
52486
  let parent = root, target;
52291
52487
  for (let partIndex = 0; partIndex < path3.length; partIndex++) {
52292
52488
  const matches2 = [], seen = /* @__PURE__ */ new Set();
@@ -52306,22 +52502,22 @@ function processCompoundFileStream(input, path3, replacement) {
52306
52502
  };
52307
52503
  visit(parent.child);
52308
52504
  if (matches2.length !== 1)
52309
- return reject();
52505
+ return reject2();
52310
52506
  target = matches2[0];
52311
52507
  if (partIndex < path3.length - 1) {
52312
52508
  if (target.type !== 1)
52313
- return reject();
52509
+ return reject2();
52314
52510
  parent = target;
52315
52511
  } else if (target.type !== 2 || replacement && replacement.length !== target.size)
52316
- return reject();
52512
+ return reject2();
52317
52513
  }
52318
52514
  if (!target)
52319
- return reject();
52515
+ return reject2();
52320
52516
  if (!replacement)
52321
52517
  return readTarget(input, target, root, fat, sector, sectorCount, sectorSize, miniSize, read32);
52322
52518
  const names = entries.map((e) => e.name.toLowerCase());
52323
52519
  if (replacement && (names.includes("encryptioninfo") || names.includes("encryptedpackage")))
52324
- return reject();
52520
+ return reject2();
52325
52521
  for (const name of replacement ? ["book", "workbook"] : []) {
52326
52522
  if (!names.includes(name))
52327
52523
  continue;
@@ -52332,7 +52528,7 @@ function processCompoundFileStream(input, path3, replacement) {
52332
52528
  const record = workbook[p] | workbook[p + 1] << 8;
52333
52529
  const length = workbook[p + 2] | workbook[p + 3] << 8;
52334
52530
  if (record === 47)
52335
- return reject();
52531
+ return reject2();
52336
52532
  if (p + 4 + length > workbook.length || record === 10)
52337
52533
  break;
52338
52534
  p += 4 + length;
@@ -52341,13 +52537,13 @@ function processCompoundFileStream(input, path3, replacement) {
52341
52537
  if (replacement && names.includes("worddocument")) {
52342
52538
  const word = readCompoundFileStream(input, ["WordDocument"]);
52343
52539
  if (word && word.length >= 12 && ((word[10] | word[11] << 8) & 256) !== 0)
52344
- return reject();
52540
+ return reject2();
52345
52541
  }
52346
52542
  const miniCutoff = read32(56), miniFatCount = read32(64), miniFatStart = read32(60);
52347
52543
  const miniFatSectors = miniFatCount ? chain(fat, miniFatStart, miniFatCount) : [];
52348
52544
  const metadataSectors = [...fatIds, ...difatIds, ...dirSectors, ...miniFatSectors];
52349
52545
  if (new Set(metadataSectors).size !== metadataSectors.length)
52350
- return reject();
52546
+ return reject2();
52351
52547
  const miniFat = [];
52352
52548
  const miniCapacity = Math.floor(Math.min(root.size, sectorCount * sectorSize) / miniSize);
52353
52549
  for (const id of miniFatSectors) {
@@ -52366,7 +52562,7 @@ function processCompoundFileStream(input, path3, replacement) {
52366
52562
  for (const id of exactChain(fat, entry3.start, entry3.size, sectorSize)) {
52367
52563
  sector(id);
52368
52564
  if (regularUsed.has(id))
52369
- return reject();
52565
+ return reject2();
52370
52566
  regularUsed.add(id);
52371
52567
  }
52372
52568
  }
@@ -52377,7 +52573,7 @@ function processCompoundFileStream(input, path3, replacement) {
52377
52573
  const ids = exactChain(miniFat, entry3.start, entry3.size, miniSize);
52378
52574
  for (const id of ids) {
52379
52575
  if ((id + 1) * miniSize > rootMini.size || miniUsed.has(id))
52380
- return reject();
52576
+ return reject2();
52381
52577
  miniUsed.add(id);
52382
52578
  }
52383
52579
  }
@@ -52411,7 +52607,7 @@ function processCompoundFileStream(input, path3, replacement) {
52411
52607
  output.set(replacement.subarray(i2 * sectorSize, Math.min((i2 + 1) * sectorSize, replacement.length)), offset2(sectors[i2]));
52412
52608
  } else {
52413
52609
  if (!miniFat.length)
52414
- return reject();
52610
+ return reject2();
52415
52611
  const miniSectors = exactChain(miniFat, target.start, target.size, miniSize);
52416
52612
  const rootMini2 = entries.find((e) => e.type === 5);
52417
52613
  const rootSectors = exactChain(fat, rootMini2.start, rootMini2.size, sectorSize);
@@ -52421,18 +52617,18 @@ function processCompoundFileStream(input, path3, replacement) {
52421
52617
  for (let i2 = 0; i2 < replacement.length; i2++) {
52422
52618
  const miniOffset = miniSectors[Math.floor(i2 / miniSize)] * miniSize + i2 % miniSize;
52423
52619
  if (miniOffset >= rootData.length)
52424
- return reject();
52620
+ return reject2();
52425
52621
  const rootSectorIndex = Math.floor(miniOffset / sectorSize);
52426
52622
  const rootSector = rootSectors[rootSectorIndex];
52427
52623
  if (rootSector === void 0)
52428
- return reject();
52624
+ return reject2();
52429
52625
  const physical = offset2(rootSector) + miniOffset % sectorSize;
52430
52626
  output[physical] = replacement[i2];
52431
52627
  }
52432
52628
  }
52433
52629
  return output;
52434
52630
  } catch {
52435
- return reject();
52631
+ return reject2();
52436
52632
  }
52437
52633
  }
52438
52634
  function readCompoundFileStream(input, path3) {
@@ -52442,7 +52638,7 @@ function replaceCompoundFileStream(input, path3, replacement) {
52442
52638
  return processCompoundFileStream(input, path3, replacement) ?? input;
52443
52639
  }
52444
52640
 
52445
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-cfb.js
52641
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-cfb.js
52446
52642
  var WORKBOOK_STREAM_NAMES = ["workbook", "book"];
52447
52643
  function unwrapXlsBytes(bytes) {
52448
52644
  if (!isCfb(bytes)) {
@@ -52509,7 +52705,7 @@ function isCfb(bytes) {
52509
52705
  return OLE_MAGIC.every((value2, index3) => bytes[index3] === value2);
52510
52706
  }
52511
52707
 
52512
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-functions.js
52708
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-functions.js
52513
52709
  var TABLE9 = `0 COUNT -1|1 IF -1|2 ISNA 1|3 ISERROR 1|4 SUM -1|5 AVERAGE -1|6 MIN -1|7 MAX -1|8 ROW -1|9 COLUMN -1|10 NA 0|11 NPV -1|12 STDEV -1|13 DOLLAR -1|14 FIXED -1|15 SIN 1|16 COS 1|17 TAN 1|18 ATAN 1|19 PI 0|20 SQRT 1|21 EXP 1|22 LN 1|23 LOG10 1|24 ABS 1|25 INT 1|26 SIGN 1|27 ROUND 2|28 LOOKUP -1|29 INDEX -1|30 REPT 2|31 MID 3|32 LEN 1|33 VALUE 1|34 TRUE 0|35 FALSE 0|36 AND -1|37 OR -1|38 NOT 1|39 MOD 2|40 DCOUNT 3|41 DSUM 3|42 DAVERAGE 3|43 DMIN 3|44 DMAX 3|45 DSTDEV 3|46 VAR -1|47 DVAR 3|48 TEXT 2|49 LINEST -1|50 TREND -1|51 LOGEST -1|52 GROWTH -1|56 PV -1|57 FV -1|58 NPER -1|59 PMT -1|60 RATE -1|61 MIRR 3|62 IRR -1|63 RAND 0|64 MATCH -1|65 DATE 3|66 TIME 3|67 DAY 1|68 MONTH 1|69 YEAR 1|70 WEEKDAY -1|71 HOUR 1|72 MINUTE 1|73 SECOND 1|74 NOW 0|75 AREAS 1|76 ROWS 1|77 COLUMNS 1|78 OFFSET -1|82 SEARCH -1|83 TRANSPOSE 1|86 TYPE 1|97 ATAN2 2|98 ASIN 1|99 ACOS 1|100 CHOOSE -1|101 HLOOKUP -1|102 VLOOKUP -1|105 ISREF 1|109 LOG -1|111 CHAR 1|112 LOWER 1|113 UPPER 1|114 PROPER 1|115 LEFT -1|116 RIGHT -1|117 EXACT 2|118 TRIM 1|119 REPLACE 4|120 SUBSTITUTE -1|121 CODE 1|124 FIND -1|125 CELL -1|126 ISERR 1|127 ISTEXT 1|128 ISNUMBER 1|129 ISBLANK 1|130 T 1|131 N 1|140 DATEVALUE 1|141 TIMEVALUE 1|142 SLN 3|143 SYD 4|144 DDB -1|148 INDIRECT -1|150 CALL -1|162 CLEAN 1|163 MDETERM 1|164 MINVERSE 1|165 MMULT 2|167 IPMT -1|168 PPMT -1|169 COUNTA -1|183 PRODUCT -1|184 FACT 1|189 DPRODUCT 3|190 ISNONTEXT 1|193 STDEVP -1|194 VARP -1|195 DSTDEVP 3|196 DVARP 3|197 TRUNC -1|198 ISLOGICAL 1|199 DCOUNTA 3|204 USDOLLAR -1|205 FINDB -1|206 SEARCHB -1|207 REPLACEB 4|208 LEFTB -1|209 RIGHTB -1|210 MIDB 3|211 LENB 1|212 ROUNDUP 2|213 ROUNDDOWN 2|214 ASC 1|215 DBCS 1|216 RANK -1|219 ADDRESS -1|220 DAYS360 -1|221 TODAY 0|222 VDB -1|227 MEDIAN -1|228 SUMPRODUCT -1|229 SINH 1|230 COSH 1|231 TANH 1|232 ASINH 1|233 ACOSH 1|234 ATANH 1|235 DGET 3|244 INFO 1|247 DB -1|252 FREQUENCY 2|261 ERROR.TYPE 1|269 AVEDEV -1|270 BETADIST -1|271 GAMMALN 1|272 BETAINV -1|273 BINOMDIST 4|274 CHIDIST 2|275 CHIINV 2|276 COMBIN 2|277 CONFIDENCE 3|278 CRITBINOM 3|279 EVEN 1|280 EXPONDIST 3|281 FDIST 3|282 FINV 3|283 FISHER 1|284 FISHERINV 1|285 FLOOR 2|286 GAMMADIST 4|287 GAMMAINV 3|288 CEILING 2|289 HYPGEOMDIST 4|290 LOGNORMDIST 3|291 LOGINV 3|292 NEGBINOMDIST 3|293 NORMDIST 4|294 NORMSDIST 1|295 NORMINV 3|296 NORMSINV 1|297 STANDARDIZE 3|298 ODD 1|299 PERMUT 2|300 POISSON 3|301 TDIST 3|302 WEIBULL 4|303 SUMXMY2 2|304 SUMX2MY2 2|305 SUMX2PY2 2|306 CHITEST 2|307 CORREL 2|308 COVAR 2|309 FORECAST 3|310 FTEST 2|311 INTERCEPT 2|312 PEARSON 2|313 RSQ 2|314 STEYX 2|315 SLOPE 2|316 TTEST 4|317 PROB -1|318 DEVSQ -1|319 GEOMEAN -1|320 HARMEAN -1|321 SUMSQ -1|322 KURT -1|323 SKEW -1|324 ZTEST -1|325 LARGE 2|326 SMALL 2|327 QUARTILE 2|328 PERCENTILE 2|329 PERCENTRANK -1|330 MODE -1|331 TRIMMEAN 2|332 TINV 2|336 CONCATENATE -1|337 POWER 2|342 RADIANS 1|343 DEGREES 1|344 SUBTOTAL -1|345 SUMIF -1|346 COUNTIF 2|347 COUNTBLANK 1|350 ISPMT 4|351 DATEDIF 3|352 DATESTRING 1|353 NUMBERSTRING 2|354 ROMAN -1|358 GETPIVOTDATA -1|359 HYPERLINK -1|360 PHONETIC 1|361 AVERAGEA -1|362 MAXA -1|363 MINA -1|364 STDEVPA -1|365 VARPA -1|366 STDEVA -1|367 VARA -1|368 BAHTTEXT 1`;
52514
52710
  var XLS_FUNCTIONS = new Map(TABLE9.split("|").map((entry3) => {
52515
52711
  const [id, name, argc] = entry3.split(" ");
@@ -52517,7 +52713,7 @@ var XLS_FUNCTIONS = new Map(TABLE9.split("|").map((entry3) => {
52517
52713
  }));
52518
52714
  var XLS_USER_FUNCTION_ID = 255;
52519
52715
 
52520
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-ptg-text.js
52716
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-ptg-text.js
52521
52717
  var BIFF_ERRORS = {
52522
52718
  0: "#NULL!",
52523
52719
  7: "#DIV/0!",
@@ -52612,7 +52808,7 @@ function readArrayConstant(extra) {
52612
52808
  return `{${lines2.join(";")}}`;
52613
52809
  }
52614
52810
 
52615
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-records.js
52811
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-records.js
52616
52812
  var RT_CONTINUE = 60;
52617
52813
  function readXlsRecords(bytes, start = 0, end = bytes.length) {
52618
52814
  const records = [];
@@ -52778,7 +52974,7 @@ function joinedData(record) {
52778
52974
  return out;
52779
52975
  }
52780
52976
 
52781
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-ptg.js
52977
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-ptg.js
52782
52978
  function decodeFormula(rgce, extra, context, options) {
52783
52979
  try {
52784
52980
  return decode2(rgce, new ByteReader(extra), context, options);
@@ -53009,7 +53205,7 @@ function readAttr(reader, stack2, whitespace) {
53009
53205
  }
53010
53206
  }
53011
53207
 
53012
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sst.js
53208
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sst.js
53013
53209
  function parseSharedStrings2(record) {
53014
53210
  const reader = SegmentReader.of(record);
53015
53211
  reader.u32();
@@ -53026,7 +53222,7 @@ function parseSharedStrings2(record) {
53026
53222
  return strings;
53027
53223
  }
53028
53224
 
53029
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-styles.js
53225
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-styles.js
53030
53226
  var DEFAULT_XLS_PALETTE = "000000 FFFFFF FF0000 00FF00 0000FF FFFF00 FF00FF 00FFFF 000000 FFFFFF FF0000 00FF00 0000FF FFFF00 FF00FF 00FFFF 800000 008000 000080 808000 800080 008080 C0C0C0 808080 9999FF 993366 FFFFCC CCFFFF 660066 FF8080 0066CC CCCCFF 000080 FF00FF FFFF00 00FFFF 800080 800000 008080 0000FF 00CCFF CCFFFF CCFFCC FFFF99 99CCFF FF99CC CC99FF FFCC99 3366FF 33CCCC 99CC00 FFCC00 FF9900 FF6600 666699 969696 003366 339966 003300 333300 993300 993366 333399 333333".split(" ");
53031
53227
  var XLS_BUILTIN_FORMATS = {
53032
53228
  0: "General",
@@ -53283,7 +53479,7 @@ function applyXfExt(data, xfs, palette) {
53283
53479
  }
53284
53480
  }
53285
53481
 
53286
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-types.js
53482
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-types.js
53287
53483
  var XlsReadError = class extends Error {
53288
53484
  code;
53289
53485
  constructor(code, message) {
@@ -53293,7 +53489,7 @@ var XlsReadError = class extends Error {
53293
53489
  }
53294
53490
  };
53295
53491
 
53296
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-globals.js
53492
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-globals.js
53297
53493
  var RT = {
53298
53494
  BOF: 2057,
53299
53495
  EOF: 10,
@@ -53531,7 +53727,7 @@ function parseGlobals(records) {
53531
53727
  return out;
53532
53728
  }
53533
53729
 
53534
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-biff8.js
53730
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-biff8.js
53535
53731
  function decodeRk(rk) {
53536
53732
  const isInt = (rk & 2) !== 0;
53537
53733
  const isDiv100 = (rk & 1) !== 0;
@@ -53548,7 +53744,7 @@ function decodeRk(rk) {
53548
53744
  return isDiv100 ? value2 / 100 : value2;
53549
53745
  }
53550
53746
 
53551
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-formulas.js
53747
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-formulas.js
53552
53748
  function readRefU(r) {
53553
53749
  return { firstRow: r.u16(), lastRow: r.u16(), firstCol: r.u8(), lastCol: r.u8() };
53554
53750
  }
@@ -53606,7 +53802,7 @@ function resolveFormulas(formulas, shared, arrays, globals) {
53606
53802
  }
53607
53803
  }
53608
53804
 
53609
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sheet-extras.js
53805
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sheet-extras.js
53610
53806
  function parseMergedCells(data) {
53611
53807
  const r = new ByteReader(data);
53612
53808
  const count2 = r.u16();
@@ -53801,7 +53997,7 @@ function parseNote(data) {
53801
53997
  return { row: row2, col, visible: (flags & 2) !== 0, id, author: r.xlString() };
53802
53998
  }
53803
53999
 
53804
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sheet.js
54000
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sheet.js
53805
54001
  var UNSUPPORTED = {
53806
54002
  432: "conditional formatting",
53807
54003
  2169: "conditional formatting",
@@ -54057,7 +54253,7 @@ function parseSheet(bound, records, start, globals) {
54057
54253
  return sheet;
54058
54254
  }
54059
54255
 
54060
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook.js
54256
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook.js
54061
54257
  function compoundStreamNames(bytes) {
54062
54258
  if (!OLE_MAGIC.every((value2, index3) => bytes[index3] === value2))
54063
54259
  return [];
@@ -54127,7 +54323,7 @@ function readXlsWorkbook(bytes) {
54127
54323
  };
54128
54324
  }
54129
54325
 
54130
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
54326
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
54131
54327
  var CP1252_HIGH_BLOCK = [
54132
54328
  8364,
54133
54329
  129,
@@ -54177,7 +54373,7 @@ function decodeCp1252(bytes) {
54177
54373
  return out;
54178
54374
  }
54179
54375
 
54180
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole-summary-properties.js
54376
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole-summary-properties.js
54181
54377
  var SUMMARY_STREAM_NAME = "SummaryInformation";
54182
54378
  var SUMMARY_TEXT_PROPERTIES = {
54183
54379
  title: 2,
@@ -54292,7 +54488,7 @@ function readSummaryProperties(bytes) {
54292
54488
  return result2;
54293
54489
  }
54294
54490
 
54295
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-office-metadata.js
54491
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-office-metadata.js
54296
54492
  function summaryStream(bytes) {
54297
54493
  return readCompoundFileStream(bytes, [SUMMARY_STREAM_NAME]);
54298
54494
  }