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
@@ -35,7 +35,7 @@ function isOoxmlCryptoError(error) {
35
35
  return code === "password-required" || code === "incorrect-password" || code === "data-integrity";
36
36
  }
37
37
 
38
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
38
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
39
39
  var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
40
40
  var ENDOFCHAIN = 4294967294;
41
41
  var FREESECT = 4294967295;
@@ -55,16 +55,18 @@ var Ole2ParseError = class extends Error {
55
55
  }
56
56
  };
57
57
 
58
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-directory.js
59
- var FILETIME_UNIX_EPOCH = 116444736000000000n;
60
- function readFileTime(view, offset2) {
61
- const ticks = view.getBigUint64(offset2, true);
58
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-filetime.js
59
+ var EPOCH = 116444736000000000n;
60
+ function fileTimeDate(ticks) {
62
61
  if (ticks === 0n)
63
62
  return void 0;
64
- const ms = Number((ticks - FILETIME_UNIX_EPOCH) / 10000n);
65
- const date = new Date(ms);
63
+ const delta = ticks - EPOCH;
64
+ const ms = delta >= 0n ? delta / 10000n : (delta - 9999n) / 10000n;
65
+ const date = new Date(Number(ms));
66
66
  return Number.isNaN(date.getTime()) ? void 0 : date;
67
67
  }
68
+
69
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-directory.js
68
70
  function decodeSlot(dir, id, majorVersion, warnings) {
69
71
  const view = new DataView(dir.buffer, dir.byteOffset + id * DIR_ENTRY_SIZE, DIR_ENTRY_SIZE);
70
72
  const nameLen = view.getUint16(64, true);
@@ -100,8 +102,10 @@ function decodeSlot(dir, id, majorVersion, warnings) {
100
102
  childId: link(76),
101
103
  clsid: new Uint8Array(view.buffer.slice(view.byteOffset + 80, view.byteOffset + 96)),
102
104
  stateBits: view.getUint32(96, true),
103
- created: readFileTime(view, 100),
104
- modified: readFileTime(view, 108),
105
+ created: fileTimeDate(view.getBigUint64(100, true)),
106
+ modified: fileTimeDate(view.getBigUint64(108, true)),
107
+ createdFileTime: view.getBigUint64(100, true),
108
+ modifiedFileTime: view.getBigUint64(108, true),
105
109
  startSector: view.getUint32(116, true),
106
110
  size,
107
111
  parentId: -1
@@ -217,7 +221,7 @@ function findStreamByName(entries, name, isReadable) {
217
221
  return top.find((entry3) => entry3.name === name) ?? top.find((entry3) => sameName(entry3.name, name)) ?? entries.find((entry3) => entry3.name === name && isReadable(entry3));
218
222
  }
219
223
 
220
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
224
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
221
225
  function parseOle2(buffer, options = {}) {
222
226
  const strict = options.strict === true;
223
227
  const data = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
@@ -364,7 +368,11 @@ function parseOle2(buffer, options = {}) {
364
368
  }
365
369
  if (firstDirectorySector > MAXREGSECT)
366
370
  throw new Ole2ParseError("Missing directory chain");
367
- const entries = readDirectory(readMetadataChain(firstDirectorySector, "directory"), majorVersion, strict, warnings);
371
+ const directoryBytes = readMetadataChain(firstDirectorySector, "directory");
372
+ if (strict && majorVersion === 4 && view.getUint32(40, true) !== directoryBytes.length / sectorSize) {
373
+ throw new Ole2ParseError("Unexpected directory sector count");
374
+ }
375
+ const entries = readDirectory(directoryBytes, majorVersion, strict, warnings);
368
376
  for (const entry3 of entries) {
369
377
  if (majorVersion === 4 && (!Number.isSafeInteger(entry3.size) || entry3.size > sectorCount * sectorSize)) {
370
378
  throw new Ole2ParseError("Stream size exceeds supported file bounds");
@@ -472,7 +480,7 @@ function createOfficeGuid() {
472
480
  return `{${uuid.toUpperCase()}}`;
473
481
  }
474
482
 
475
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/ooxml-crypto-primitives.js
483
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/utils/ooxml-crypto-primitives.js
476
484
  function getSubtle() {
477
485
  if (typeof globalThis.crypto !== "undefined" && globalThis.crypto.subtle) {
478
486
  return globalThis.crypto.subtle;
@@ -2666,7 +2674,7 @@ function isEncryptedOoxmlPackage(input) {
2666
2674
  }
2667
2675
  }
2668
2676
 
2669
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
2677
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
2670
2678
  function compareDirEntryNames(a2, b) {
2671
2679
  const ua = a2.toUpperCase();
2672
2680
  const ub = b.toUpperCase();
@@ -2733,7 +2741,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
2733
2741
  }
2734
2742
  }
2735
2743
 
2736
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
2744
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
2737
2745
  function writeHeader(outView, outBytes, params) {
2738
2746
  outBytes.set(OLE_MAGIC, 0);
2739
2747
  outView.setUint16(24, 62, true);
@@ -2826,7 +2834,7 @@ function writeStreamSectors(outBytes, streamData, chain2, sectorSize) {
2826
2834
  }
2827
2835
  }
2828
2836
 
2829
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
2837
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
2830
2838
  function buildOle2(streams2, rootClsid, miniStreamCutoff = 4096) {
2831
2839
  const sectorSize = 512;
2832
2840
  const miniSectorSize = 64;
@@ -4696,6 +4704,17 @@ var TIME_PERIODS = [
4696
4704
  "lastMonth",
4697
4705
  "nextMonth"
4698
4706
  ];
4707
+ var IGNORED_ERROR_FLAGS = [
4708
+ "evalError",
4709
+ "twoDigitTextYear",
4710
+ "numberStoredAsText",
4711
+ "formula",
4712
+ "formulaRange",
4713
+ "unlockedFormula",
4714
+ "emptyCellReference",
4715
+ "listDataValidation",
4716
+ "calculatedColumn"
4717
+ ];
4699
4718
 
4700
4719
  // xlsx/numfmt/builtins.ts
4701
4720
  var BUILTIN_NUMBER_FORMATS = Object.freeze({
@@ -12346,6 +12365,41 @@ function readFilterColumn(column2, dxfs) {
12346
12365
  return entry3;
12347
12366
  }
12348
12367
 
12368
+ // xlsx/read/sort-state.ts
12369
+ var SORT_BY = /* @__PURE__ */ new Set(["value", "cellColor", "fontColor", "icon"]);
12370
+ function readSortState(node2, dxfs) {
12371
+ const range = parseRange(att(node2, "ref") ?? "");
12372
+ if (!node2 || !range) return void 0;
12373
+ const conditions = [];
12374
+ for (const child6 of xChildren(node2, "sortCondition")) {
12375
+ const ref = parseRange(att(child6, "ref") ?? "");
12376
+ if (!ref) continue;
12377
+ const condition = { ref };
12378
+ if (boolAttr(child6, "descending", false)) condition.descending = true;
12379
+ const by = att(child6, "sortBy");
12380
+ if (by && SORT_BY.has(by) && by !== "value") condition.sortBy = by;
12381
+ const customList = att(child6, "customList");
12382
+ if (customList) condition.customList = customList;
12383
+ const dxfId = numAttr(child6, "dxfId");
12384
+ if (dxfId !== void 0) {
12385
+ condition.dxfId = dxfId;
12386
+ const style2 = dxfs?.[dxfId];
12387
+ if (style2) condition.style = structuredClone(style2);
12388
+ }
12389
+ const iconSet = att(child6, "iconSet");
12390
+ if (iconSet) condition.iconSet = iconSet;
12391
+ const iconId = numAttr(child6, "iconId");
12392
+ if (iconId !== void 0) condition.iconId = iconId;
12393
+ conditions.push(condition);
12394
+ }
12395
+ return {
12396
+ range,
12397
+ ...boolAttr(node2, "columnSort", false) ? { columnSort: true } : {},
12398
+ ...boolAttr(node2, "caseSensitive", false) ? { caseSensitive: true } : {},
12399
+ conditions
12400
+ };
12401
+ }
12402
+
12349
12403
  // xlsx/read/sheet-props.ts
12350
12404
  var defaultSheetView = () => ({
12351
12405
  showGridLines: true,
@@ -12360,6 +12414,7 @@ function parseSqref(sqref2) {
12360
12414
  }
12361
12415
  var readTabColor = (sheetPr, palette) => parseColor(xFirst(sheetPr, "tabColor"), palette);
12362
12416
  var readFitToPage = (sheetPr) => boolAttr(xFirst(sheetPr, "pageSetUpPr"), "fitToPage") ?? false;
12417
+ var PANES = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight"]);
12363
12418
  function readSheetView(sheetViews) {
12364
12419
  const view = defaultSheetView();
12365
12420
  const node2 = xFirst(sheetViews, "sheetView");
@@ -12380,23 +12435,41 @@ function readSheetView(sheetViews) {
12380
12435
  const cols = Math.max(0, Math.round(numAttr(pane, "xSplit") ?? 0));
12381
12436
  if (rows || cols) view.freeze = { rows, cols };
12382
12437
  }
12438
+ const split2 = pane && state === "split";
12439
+ if (split2) {
12440
+ const x = Math.max(0, Math.round(numAttr(pane, "xSplit") ?? 0));
12441
+ const y = Math.max(0, Math.round(numAttr(pane, "ySplit") ?? 0));
12442
+ if (x || y) {
12443
+ view.split = { x, y };
12444
+ const first2 = parseAddress(att(node2, "topLeftCell") ?? "");
12445
+ if (first2) view.split.topLeft = first2;
12446
+ const active = att(pane, "activePane");
12447
+ if (active && PANES.has(active))
12448
+ view.split.activePane = active;
12449
+ }
12450
+ }
12383
12451
  const topLeft = parseAddress(
12384
- (frozen ? att(pane, "topLeftCell") : att(node2, "topLeftCell")) ?? ""
12452
+ (frozen || split2 ? att(pane, "topLeftCell") : att(node2, "topLeftCell")) ?? ""
12385
12453
  );
12386
12454
  if (topLeft) view.topLeft = topLeft;
12387
12455
  const selections = xChildren(node2, "selection");
12388
12456
  const activePane = att(pane, "activePane") ?? "topLeft";
12389
12457
  const selection = selections.find((sel) => (att(sel, "pane") ?? "topLeft") === activePane) ?? selections[0];
12390
- if (selection) {
12391
- const ranges = parseSqref(att(selection, "sqref") ?? att(selection, "activeCell") ?? "A1");
12392
- const active = parseAddress(att(selection, "activeCell") ?? "") ?? ranges[0]?.start ?? { row: 0, col: 0 };
12393
- view.selection = {
12394
- active,
12395
- ranges: ranges.length ? ranges : [{ start: active, end: { ...active } }]
12396
- };
12458
+ if (selection) view.selection = readSelection(selection);
12459
+ if (view.split) {
12460
+ for (const other of selections) {
12461
+ const name = att(other, "pane") ?? "topLeft";
12462
+ if (other === selection || !PANES.has(name)) continue;
12463
+ (view.split.paneSelections ??= {})[name] = readSelection(other);
12464
+ }
12397
12465
  }
12398
12466
  return view;
12399
12467
  }
12468
+ function readSelection(selection) {
12469
+ const ranges = parseSqref(att(selection, "sqref") ?? att(selection, "activeCell") ?? "A1");
12470
+ const active = parseAddress(att(selection, "activeCell") ?? "") ?? ranges[0]?.start ?? { row: 0, col: 0 };
12471
+ return { active, ranges: ranges.length ? ranges : [{ start: active, end: { ...active } }] };
12472
+ }
12400
12473
  var FORMAT_FLAGS = ["zeroHeight", "customHeight", "thickTop", "thickBottom"];
12401
12474
  function readSheetFormat(format) {
12402
12475
  const result2 = {
@@ -12441,6 +12514,8 @@ function readAutoFilter(node2, dxfs) {
12441
12514
  const filter2 = { range };
12442
12515
  const columns = xChildren(node2, "filterColumn").map((column2) => readFilterColumn(column2, dxfs));
12443
12516
  if (columns.length) filter2.columns = columns;
12517
+ const sortState = readSortState(xFirst(node2, "sortState"), dxfs);
12518
+ if (sortState) filter2.sortState = sortState;
12444
12519
  return filter2;
12445
12520
  }
12446
12521
  var HEADER_FOOTER_TEXT = {
@@ -26409,8 +26484,8 @@ function runSmartArtEngine(data, layoutXml3, width, height, context) {
26409
26484
  if (!def) {
26410
26485
  return void 0;
26411
26486
  }
26412
- const model2 = buildDataModel(data.nodes, data.connections);
26413
- const tree = buildPresentationTree(def, model2.doc, {
26487
+ const model3 = buildDataModel(data.nodes, data.connections);
26488
+ const tree = buildPresentationTree(def, model3.doc, {
26414
26489
  direction: data.presLayoutVars?.direction === "rev" ? "rev" : void 0
26415
26490
  });
26416
26491
  if (!tree) {
@@ -29036,20 +29111,20 @@ function newPoint(doc, modelId, type, cxnId, placeholder2 = false) {
29036
29111
  pt.appendChild(emptyBody(doc));
29037
29112
  return pt;
29038
29113
  }
29039
- function dropDrawingExtension(model2) {
29040
- const extLst = child2(model2, "extLst");
29114
+ function dropDrawingExtension(model3) {
29115
+ const extLst = child2(model3, "extLst");
29041
29116
  if (!extLst) return;
29042
29117
  for (const ext of elements(extLst))
29043
29118
  if (ext.getAttribute("uri") === DSP_EXT_URI) extLst.removeChild(ext);
29044
- if (elements(extLst).length === 0) model2.removeChild(extLst);
29119
+ if (elements(extLst).length === 0) model3.removeChild(extLst);
29045
29120
  }
29046
29121
  function writeEditedDiagramData(xml, nodes, options = {}) {
29047
29122
  const createModelId = options.createModelId ?? createOfficeGuid;
29048
29123
  const doc = parseXml(xml, { label: "diagram data" });
29049
- const model2 = doc.documentElement;
29050
- const ptLst = child2(model2, "ptLst");
29124
+ const model3 = doc.documentElement;
29125
+ const ptLst = child2(model3, "ptLst");
29051
29126
  if (!ptLst) throw new Error("The diagram data part has no point list.");
29052
- let cxnLst = child2(model2, "cxnLst");
29127
+ let cxnLst = child2(model3, "cxnLst");
29053
29128
  if (!cxnLst) {
29054
29129
  cxnLst = element(doc, DGM, "dgm:cxnLst");
29055
29130
  ptLst.parentNode?.insertBefore(cxnLst, ptLst.nextSibling);
@@ -29156,7 +29231,7 @@ function writeEditedDiagramData(xml, nodes, options = {}) {
29156
29231
  if (options.colorsId) prSet.setAttribute("csTypeId", options.colorsId);
29157
29232
  if (options.quickStyleId) prSet.setAttribute("qsTypeId", options.quickStyleId);
29158
29233
  }
29159
- if (options.dropDrawingLink) dropDrawingExtension(model2);
29234
+ if (options.dropDrawingLink) dropDrawingExtension(model3);
29160
29235
  return buildXml(doc);
29161
29236
  }
29162
29237
 
@@ -30356,7 +30431,7 @@ function remapFill(fill, id) {
30356
30431
  }
30357
30432
  return { ...fill, relId: id, sourceXml: buildXml(node2) };
30358
30433
  }
30359
- function captureDiagramPictures(model2, dataXml2, dataParts, drawing) {
30434
+ function captureDiagramPictures(model3, dataXml2, dataParts, drawing) {
30360
30435
  const pictures = [];
30361
30436
  const parts = { ...dataParts };
30362
30437
  const add3 = (source3, owner) => {
@@ -30381,7 +30456,7 @@ function captureDiagramPictures(model2, dataXml2, dataParts, drawing) {
30381
30456
  for (const element3 of saved) {
30382
30457
  const nodeId = element3.getAttribute("nodeId");
30383
30458
  const fill = first(element3, "blipFill", NS.a);
30384
- if (nodeId && fill && model2.nodes.some((node2) => node2.modelId === nodeId))
30459
+ if (nodeId && fill && model3.nodes.some((node2) => node2.modelId === nodeId))
30385
30460
  add3(
30386
30461
  {
30387
30462
  nodeId,
@@ -30392,10 +30467,10 @@ function captureDiagramPictures(model2, dataXml2, dataParts, drawing) {
30392
30467
  dataParts
30393
30468
  );
30394
30469
  }
30395
- for (const point of model2.points) {
30470
+ for (const point of model3.points) {
30396
30471
  if (point.fill?.kind !== "picture") continue;
30397
30472
  const nodeId = point.type === "pres" ? point.presAssocId : point.modelId;
30398
- if (nodeId && model2.nodes.some((node2) => node2.modelId === nodeId) && !pictures.some((item2) => item2.nodeId === nodeId))
30473
+ if (nodeId && model3.nodes.some((node2) => node2.modelId === nodeId) && !pictures.some((item2) => item2.nodeId === nodeId))
30399
30474
  add3(
30400
30475
  {
30401
30476
  nodeId,
@@ -30408,14 +30483,14 @@ function captureDiagramPictures(model2, dataXml2, dataParts, drawing) {
30408
30483
  }
30409
30484
  for (const shape2 of drawing?.shapes ?? []) {
30410
30485
  if (shape2.fill?.kind !== "picture") continue;
30411
- const point = model2.points.find((point2) => point2.modelId === shape2.modelId);
30486
+ const point = model3.points.find((point2) => point2.modelId === shape2.modelId);
30412
30487
  const nodeId = shape2.sourceNodeId ?? (point?.type === "pres" ? point.presAssocId : point?.modelId);
30413
30488
  const part = shape2.fill.relId ? drawing?.pictureParts?.[shape2.fill.relId] : void 0;
30414
30489
  if (saved.length && pictures.some(
30415
30490
  (item2) => item2.nodeId === nodeId && item2.fill.relId && parts[item2.fill.relId] === part && item2.role !== point?.presName && item2.styleLabel !== point?.presStyleLabel
30416
30491
  ))
30417
30492
  continue;
30418
- if (nodeId && model2.nodes.some((node2) => node2.modelId === nodeId))
30493
+ if (nodeId && model3.nodes.some((node2) => node2.modelId === nodeId))
30419
30494
  add3(
30420
30495
  {
30421
30496
  nodeId,
@@ -30791,10 +30866,10 @@ function add(parent, namespace, name, attrs3 = {}) {
30791
30866
  }
30792
30867
  function withDiagramDrawingRelationship(xml, relationshipId) {
30793
30868
  const doc = parseXml(xml);
30794
- const model2 = doc.documentElement;
30795
- let extension = descendants2(model2, "dataModelExt").find((node2) => node2.namespaceURI === DSP2);
30869
+ const model3 = doc.documentElement;
30870
+ let extension = descendants2(model3, "dataModelExt").find((node2) => node2.namespaceURI === DSP2);
30796
30871
  if (!extension) {
30797
- const extLst = first(model2, "extLst", NS.dgm) ?? add(model2, NS.dgm, "dgm:extLst");
30872
+ const extLst = first(model3, "extLst", NS.dgm) ?? add(model3, NS.dgm, "dgm:extLst");
30798
30873
  extension = add(add(extLst, NS.a, "a:ext", { uri: DSP2 }), DSP2, "dsp:dataModelExt", {
30799
30874
  minVer: NS.dgm
30800
30875
  });
@@ -30805,13 +30880,13 @@ function withDiagramDrawingRelationship(xml, relationshipId) {
30805
30880
  function buildGeneratedDiagramCache(dataXml2, input) {
30806
30881
  dataXml2 = withDiagramPictureSources(dataXml2, input.source);
30807
30882
  const source3 = { ...input.source, dataXml: dataXml2 };
30808
- const model2 = parseDiagramDataModel(dataXml2);
30883
+ const model3 = parseDiagramDataModel(dataXml2);
30809
30884
  const scheme2 = { ...DEFAULT_GENERATED_DIAGRAM_SCHEME, ...input.scheme };
30810
30885
  const preview = previewDiagramLayout({
30811
30886
  ...input,
30812
30887
  source: source3,
30813
30888
  scheme: scheme2,
30814
- nodes: diagramNodesInTreeOrder(model2)
30889
+ nodes: diagramNodesInTreeOrder(model3)
30815
30890
  });
30816
30891
  if (preview.mode !== "interpreted" || preview.issues.length || !preview.drawing?.shapes.length)
30817
30892
  return void 0;
@@ -30843,7 +30918,7 @@ function buildGeneratedDiagramCache(dataXml2, input) {
30843
30918
  const point = children(points2, "pt", NS.dgm).find(
30844
30919
  (point2) => point2.getAttribute("modelId") === shape2.sourceNodeId
30845
30920
  );
30846
- const direct = model2.nodes.find((node2) => node2.modelId === shape2.sourceNodeId);
30921
+ const direct = model3.nodes.find((node2) => node2.modelId === shape2.sourceNodeId);
30847
30922
  const fillIndex = shape2.style?.fill?.index;
30848
30923
  const template2 = fillIndex ? input.formatScheme?.fillStyles[fillIndex - 1]?.fill : void 0;
30849
30924
  if (!direct?.fill && shape2.fill?.kind === "solid" && shape2.fill.color.kind === "srgb" && (!template2 || template2.kind === "solid" && template2.color.kind === "scheme" && template2.color.value === "phClr")) {
@@ -35748,6 +35823,21 @@ function markSpills(sheet, anchors) {
35748
35823
  }
35749
35824
  }
35750
35825
 
35826
+ // xlsx/read/ignored-errors.ts
35827
+ function readIgnoredErrors(node2) {
35828
+ if (!node2) return [];
35829
+ const out = [];
35830
+ for (const child6 of xChildren(node2, "ignoredError")) {
35831
+ const ranges = (att(child6, "sqref") ?? "").split(/\s+/).map((ref) => parseRange(ref)).filter((range) => range !== void 0);
35832
+ const flags = IGNORED_ERROR_FLAGS.filter((flag2) => {
35833
+ const value2 = att(child6, flag2);
35834
+ return value2 === "1" || value2 === "true";
35835
+ });
35836
+ if (ranges.length && flags.length) out.push({ ranges, flags });
35837
+ }
35838
+ return out;
35839
+ }
35840
+
35751
35841
  // xlsx/read/scenarios.ts
35752
35842
  function readScenarios(node2) {
35753
35843
  if (!node2) return void 0;
@@ -35781,7 +35871,7 @@ function readScenarios(node2) {
35781
35871
  }
35782
35872
 
35783
35873
  // xlsx/read/tables.ts
35784
- function parseTable(xml, partName) {
35874
+ function parseTable(xml, partName, dxfs) {
35785
35875
  const root = parseXml(xml, { label: "XLSX table" }).documentElement;
35786
35876
  const range = parseRange(att(root, "ref") ?? "");
35787
35877
  if (!range) return void 0;
@@ -35810,7 +35900,7 @@ function parseTable(xml, partName) {
35810
35900
  columns,
35811
35901
  partName
35812
35902
  };
35813
- readColumnFilters(root, table2);
35903
+ readColumnFilters(root, table2, dxfs);
35814
35904
  const info = xFirst(root, "tableStyleInfo");
35815
35905
  if (info) {
35816
35906
  const style2 = att(info, "name");
@@ -35822,8 +35912,10 @@ function parseTable(xml, partName) {
35822
35912
  }
35823
35913
  return table2;
35824
35914
  }
35825
- function readColumnFilters(root, table2) {
35915
+ function readColumnFilters(root, table2, dxfs) {
35826
35916
  const filter2 = xFirst(root, "autoFilter");
35917
+ const sortState = readSortState(xFirst(filter2, "sortState") ?? xFirst(root, "sortState"), dxfs);
35918
+ if (sortState) table2.sortState = sortState;
35827
35919
  for (const node2 of filter2 ? xChildren(filter2, "filterColumn") : []) {
35828
35920
  const column2 = table2.columns[numAttr(node2, "colId") ?? -1];
35829
35921
  const filters = xChildren(node2, "filters");
@@ -35871,7 +35963,8 @@ var MODELLED = /* @__PURE__ */ new Set([
35871
35963
  "legacyDrawing",
35872
35964
  "tableParts",
35873
35965
  "scenarios",
35874
- "customSheetViews"
35966
+ "customSheetViews",
35967
+ "ignoredErrors"
35875
35968
  ]);
35876
35969
  function reportUnplaceable(ctx, sheet, element3) {
35877
35970
  ctx.warn(
@@ -35914,7 +36007,7 @@ function readTables(ctx, partName, node2, sheet) {
35914
36007
  const rel = rels.get(relAttr(part, "id") ?? "");
35915
36008
  const target = rel ? ctx.source.target(partName, rel) : void 0;
35916
36009
  const xml = target ? ctx.source.text(target) : void 0;
35917
- const table2 = target && xml ? parseTable(xml, target) : void 0;
36010
+ const table2 = target && xml ? parseTable(xml, target, ctx.dxfs) : void 0;
35918
36011
  if (table2) sheet.tables.push(table2);
35919
36012
  else ctx.warn("A table part could not be read and was dropped.");
35920
36013
  }
@@ -35984,6 +36077,8 @@ function readWorksheet(ctx, partName, name, sheetId, xml, rows) {
35984
36077
  if (protection) sheet.protection = protection;
35985
36078
  const autoFilter = readAutoFilter(byName.get("autoFilter"), ctx.dxfs);
35986
36079
  if (autoFilter) sheet.autoFilter = autoFilter;
36080
+ const sortState = readSortState(byName.get("sortState"), ctx.dxfs);
36081
+ if (sortState) sheet.sortState = sortState;
35987
36082
  sheet.merges = xChildren(byName.get("mergeCells") ?? root, "mergeCell").map((node2) => parseRange(att(node2, "ref") ?? "")).filter((range) => range !== void 0);
35988
36083
  sheet.conditionalFormats = readConditionalFormats(
35989
36084
  cfBlocks,
@@ -35991,6 +36086,8 @@ function readWorksheet(ctx, partName, name, sheetId, xml, rows) {
35991
36086
  ctx.palette,
35992
36087
  (m) => ctx.warn(m)
35993
36088
  );
36089
+ const ignored = readIgnoredErrors(byName.get("ignoredErrors"));
36090
+ if (ignored.length) sheet.ignoredErrors = ignored;
35994
36091
  const scenarios = readScenarios(byName.get("scenarios"));
35995
36092
  if (scenarios) sheet.scenarios = scenarios;
35996
36093
  sheet.dataValidations = readDataValidations(byName.get("dataValidations"));
@@ -48934,6 +49031,10 @@ function criteriaOf(column2) {
48934
49031
  function unresolvedFilter(filter2) {
48935
49032
  return filter2 && {
48936
49033
  range: filter2.range,
49034
+ sortState: filter2.sortState && {
49035
+ ...filter2.sortState,
49036
+ conditions: filter2.sortState.conditions.map(({ style: _style, ...rest }) => rest)
49037
+ },
48937
49038
  columns: filter2.columns?.map((column2) => ({
48938
49039
  offset: column2.offset,
48939
49040
  sourceXml: column2.sourceXml,
@@ -49014,6 +49115,49 @@ function filterColumnXml2(column2, styles) {
49014
49115
  );
49015
49116
  }
49016
49117
 
49118
+ // xlsx/write/sort-state.ts
49119
+ function sortStateXml(state, styles) {
49120
+ if (!state) return "";
49121
+ const levels = state.conditions.map((c2) => {
49122
+ const dxfId = c2.style && styles ? styles.dxfId(c2.style) : c2.dxfId;
49123
+ return el("sortCondition", {
49124
+ descending: c2.descending || void 0,
49125
+ sortBy: c2.sortBy && c2.sortBy !== "value" ? c2.sortBy : void 0,
49126
+ ref: formatRange(c2.ref),
49127
+ customList: c2.customList,
49128
+ dxfId,
49129
+ iconSet: c2.iconSet,
49130
+ iconId: c2.iconId
49131
+ });
49132
+ }).join("");
49133
+ return el(
49134
+ "sortState",
49135
+ {
49136
+ columnSort: state.columnSort || void 0,
49137
+ caseSensitive: state.caseSensitive || void 0,
49138
+ ref: formatRange(state.range)
49139
+ },
49140
+ levels
49141
+ );
49142
+ }
49143
+ var bareSortState = (state) => state && {
49144
+ ...state,
49145
+ conditions: state.conditions.map(({ style: _style, ...rest }) => rest)
49146
+ };
49147
+ function sheetSortStateXml(sheet, styles) {
49148
+ if (!sheet.sortState) return "";
49149
+ const kept = sheet.preserved.get("sortState")?.[0];
49150
+ if (kept) {
49151
+ try {
49152
+ const source3 = readSortState(parseXml(kept, { label: "XLSX worksheet" }).documentElement);
49153
+ if (sameModel(bareSortState(source3), bareSortState(sheet.sortState))) return "";
49154
+ } catch {
49155
+ }
49156
+ }
49157
+ return sortStateXml(sheet.sortState, styles);
49158
+ }
49159
+ var unresolvedTable = (table2) => table2 && { ...table2, sortState: bareSortState(table2.sortState) };
49160
+
49017
49161
  // xlsx/write/sheet-props.ts
49018
49162
  var sqref = (ranges) => ranges.map((range) => formatRange(range)).join(" ");
49019
49163
  function sheetPrXml(sheet) {
@@ -49039,6 +49183,19 @@ function dimensionXml(sheet) {
49039
49183
  const used = usedRange(sheet);
49040
49184
  return `<dimension ref="${used ? formatRange(used) : "A1"}"/>`;
49041
49185
  }
49186
+ function splitActivePane(split2) {
49187
+ const both = split2.x > 0 && split2.y > 0;
49188
+ const valid = both ? ["topLeft", "topRight", "bottomLeft", "bottomRight"] : split2.y > 0 ? ["topLeft", "bottomLeft"] : ["topLeft", "topRight"];
49189
+ if (split2.activePane && valid.includes(split2.activePane)) return split2.activePane;
49190
+ return both ? "bottomRight" : split2.y > 0 ? "bottomLeft" : "topRight";
49191
+ }
49192
+ function selectionXml(selection, pane) {
49193
+ return el("selection", {
49194
+ pane,
49195
+ activeCell: formatAddress(selection.active),
49196
+ sqref: sqref(selection.ranges) || formatAddress(selection.active)
49197
+ });
49198
+ }
49042
49199
  function sheetViewsXml(sheet, tabSelected) {
49043
49200
  const source3 = snapshotElement(sheet, "sheetViews");
49044
49201
  if (source3 && sameModel(readSheetView(source3), sheet.view)) {
@@ -49067,20 +49224,31 @@ function sheetViewsXml(sheet, tabSelected) {
49067
49224
  state: "frozen"
49068
49225
  });
49069
49226
  }
49070
- if (view.selection) {
49071
- inner += el("selection", {
49072
- pane,
49073
- activeCell: formatAddress(view.selection.active),
49074
- sqref: sqref(view.selection.ranges) || formatAddress(view.selection.active)
49227
+ const split2 = view.split && (view.split.x > 0 || view.split.y > 0) ? view.split : void 0;
49228
+ if (split2 && !pane) {
49229
+ const { x, y } = split2;
49230
+ pane = splitActivePane(split2);
49231
+ inner += el("pane", {
49232
+ xSplit: x || void 0,
49233
+ ySplit: y || void 0,
49234
+ topLeftCell: view.topLeft ? formatAddress(view.topLeft) : void 0,
49235
+ activePane: pane,
49236
+ state: "split"
49075
49237
  });
49076
49238
  }
49239
+ if (split2) {
49240
+ for (const name of ["topLeft", "topRight", "bottomLeft", "bottomRight"]) {
49241
+ const own = name === pane ? view.selection : split2.paneSelections?.[name];
49242
+ if (own) inner += selectionXml(own, name);
49243
+ }
49244
+ } else if (view.selection) inner += selectionXml(view.selection, pane);
49077
49245
  const attributes2 = attrs({
49078
49246
  tabSelected: tabSelected || void 0,
49079
49247
  showGridLines: view.showGridLines ? void 0 : false,
49080
49248
  showRowColHeaders: view.showHeaders ? void 0 : false,
49081
49249
  showZeros: view.showZeros ? void 0 : false,
49082
49250
  rightToLeft: view.rightToLeft || void 0,
49083
- topLeftCell: !view.freeze && view.topLeft ? formatAddress(view.topLeft) : void 0,
49251
+ topLeftCell: split2 ? split2.topLeft ? formatAddress(split2.topLeft) : void 0 : !view.freeze && view.topLeft ? formatAddress(view.topLeft) : void 0,
49084
49252
  showFormulas: view.showFormulas || void 0,
49085
49253
  view: view.mode,
49086
49254
  zoomScale: view.zoom !== 100 ? view.zoom : void 0,
@@ -49156,6 +49324,7 @@ function protectionXml2(sheet) {
49156
49324
  for (const name of allow) values2[name] = false;
49157
49325
  return el("sheetProtection", values2);
49158
49326
  }
49327
+ var extLstOf = (source3) => source3 ? elements(source3).filter((node2) => node2.localName === "extLst").map((node2) => outerXml(node2)).join("") : "";
49159
49328
  function autoFilterXml(sheet, styles) {
49160
49329
  const filter2 = sheet.autoFilter;
49161
49330
  if (!filter2) return "";
@@ -49164,7 +49333,7 @@ function autoFilterXml(sheet, styles) {
49164
49333
  return snapshotXml(sheet, "autoFilter") ?? "";
49165
49334
  const width = filter2.range.end.col - filter2.range.start.col + 1;
49166
49335
  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("");
49167
- const sort2 = source3 && sameModel(readAutoFilter(source3)?.range, filter2.range) ? elements(source3).filter((node2) => node2.localName === "sortState" || node2.localName === "extLst").map((node2) => outerXml(node2)).join("") : "";
49336
+ 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("") : "";
49168
49337
  return el("autoFilter", { ref: formatRange(filter2.range) }, columns + sort2);
49169
49338
  }
49170
49339
  function mergeCellsXml(sheet) {
@@ -50226,7 +50395,7 @@ function syncColumnFilters(doc, filter2, table2) {
50226
50395
  }
50227
50396
  });
50228
50397
  }
50229
- function patchAutoFilter(doc, root, table2, before, names) {
50398
+ function patchAutoFilter(doc, root, table2, before, names, styles) {
50230
50399
  const existing = xKid(root, "autoFilter");
50231
50400
  if (!table2.headerRow) {
50232
50401
  if (existing) root.removeChild(existing);
@@ -50247,6 +50416,19 @@ function patchAutoFilter(doc, root, table2, before, names) {
50247
50416
  syncColumnFilters(doc, filter2, table2);
50248
50417
  if (!existing) insertBefore(root, filter2, ["sortState", "tableColumns"]);
50249
50418
  const sort2 = xKid(filter2, "sortState") ?? xKid(root, "sortState");
50419
+ if (table2.sortState) {
50420
+ const kept = sort2 && bareSortState(readSortState(sort2));
50421
+ if (!sameModel(kept, bareSortState(table2.sortState))) {
50422
+ sort2?.parentNode?.removeChild(sort2);
50423
+ const xml = sortStateXml(table2.sortState, styles).replace(
50424
+ "<sortState",
50425
+ `<sortState xmlns="${NS.x}"`
50426
+ );
50427
+ const fresh = doc.importNode(parseXml(xml, { label: "XLSX table" }).documentElement, true);
50428
+ insertBefore(filter2, fresh, ["extLst"]);
50429
+ return;
50430
+ }
50431
+ }
50250
50432
  if (!sort2) return;
50251
50433
  const moved = before.start.row !== table2.range.start.row || before.start.col !== table2.range.start.col || before.end.col !== table2.range.end.col;
50252
50434
  if (moved) {
@@ -50292,11 +50474,11 @@ function patchColumns(doc, root, sheet, table2, names) {
50292
50474
  const column2 = picked[index3] ?? doc.createElementNS(NS.x, "tableColumn");
50293
50475
  if (!column2.getAttribute("id")) column2.setAttribute("id", num(nextId++));
50294
50476
  column2.setAttribute("name", name);
50295
- const model2 = table2.columns[index3];
50296
- const fn = table2.totalsRow ? model2?.totalsRowFunction : void 0;
50477
+ const model3 = table2.columns[index3];
50478
+ const fn = table2.totalsRow ? model3?.totalsRowFunction : void 0;
50297
50479
  setOrRemove(column2, "totalsRowFunction", fn);
50298
- setOrRemove(column2, "totalsRowLabel", table2.totalsRow ? model2?.totalsRowLabel : void 0);
50299
- const calculated = model2?.calculatedColumnFormula;
50480
+ setOrRemove(column2, "totalsRowLabel", table2.totalsRow ? model3?.totalsRowLabel : void 0);
50481
+ const calculated = model3?.calculatedColumnFormula;
50300
50482
  setChildText(
50301
50483
  doc,
50302
50484
  column2,
@@ -50332,7 +50514,7 @@ function patchStyleInfo(doc, root, table2) {
50332
50514
  info.setAttribute("showRowStripes", flag(table2.showRowStripes, true));
50333
50515
  info.setAttribute("showColumnStripes", flag(table2.showColumnStripes, false));
50334
50516
  }
50335
- function patchTableXml(sourceXml, sheet, table2, id, names) {
50517
+ function patchTableXml(sourceXml, sheet, table2, id, names, styles) {
50336
50518
  let doc;
50337
50519
  try {
50338
50520
  doc = parseXml(sourceXml, { label: "XLSX table" });
@@ -50354,7 +50536,7 @@ function patchTableXml(sourceXml, sheet, table2, id, names) {
50354
50536
  root.removeAttribute("totalsRowCount");
50355
50537
  if (!root.hasAttribute("totalsRowShown")) root.setAttribute("totalsRowShown", "0");
50356
50538
  }
50357
- patchAutoFilter(doc, root, table2, before, names);
50539
+ patchAutoFilter(doc, root, table2, before, names, styles);
50358
50540
  patchColumns(doc, root, sheet, table2, names);
50359
50541
  patchStyleInfo(doc, root, table2);
50360
50542
  return buildXml(doc);
@@ -50383,12 +50565,13 @@ function resolveTableColumns(sheet, table2) {
50383
50565
  }
50384
50566
  return { names, headerText };
50385
50567
  }
50386
- function tableXml(table2, id, names) {
50568
+ function tableXml(table2, id, names, styles) {
50387
50569
  const range = formatRange(table2.range);
50388
50570
  const filterEnd = { ...table2.range.end, row: table2.range.end.row - (table2.totalsRow ? 1 : 0) };
50389
50571
  const criteria = table2.columns.map((column2, index3) => column2.filter ? filterColumnXml(index3, column2.filter) : "").join("");
50390
50572
  const filterRef = formatRange({ start: table2.range.start, end: filterEnd });
50391
- const filter2 = table2.headerRow ? criteria ? `<autoFilter ref="${filterRef}">${criteria}</autoFilter>` : `<autoFilter ref="${filterRef}"/>` : "";
50573
+ const sort2 = sortStateXml(table2.sortState, styles);
50574
+ const filter2 = table2.headerRow ? criteria || sort2 ? `<autoFilter ref="${filterRef}">${criteria}${sort2}</autoFilter>` : `<autoFilter ref="${filterRef}"/>` : "";
50392
50575
  const columns = names.map((name, index3) => {
50393
50576
  const column2 = table2.columns[index3];
50394
50577
  const calculated = column2?.calculatedColumnFormula ? `<calculatedColumnFormula>${escapeText2(addFuturePrefixes(column2.calculatedColumnFormula))}</calculatedColumnFormula>` : "";
@@ -50544,7 +50727,7 @@ function writeTables(ctx, sheet, partName, rels, headerText, formulas) {
50544
50727
  const totals = totalsRowFormulas(sheet, table2, names);
50545
50728
  for (const [key, formula2] of totals) formulas.set(key, formula2);
50546
50729
  let id = table2.id;
50547
- const unchanged = table2.partName && sourceXml && !writer.has(table2.partName) && !ctx.tableIds.has(id) && forced.size === 0 && totals.size === 0 && table2 === original && sameModel(before, table2);
50730
+ 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));
50548
50731
  let part;
50549
50732
  if (unchanged && table2.partName) {
50550
50733
  part = table2.partName;
@@ -50552,7 +50735,7 @@ function writeTables(ctx, sheet, partName, rels, headerText, formulas) {
50552
50735
  } else {
50553
50736
  while (ctx.tableIds.has(id) || id < 1) id++;
50554
50737
  part = table2.partName && !writer.has(table2.partName) ? table2.partName : writer.uniqueName((n) => `xl/tables/table${n}.xml`, ctx.reserved);
50555
- const xml = (sourceXml && patchTableXml(sourceXml, sheet, table2, id, names)) ?? tableXml(table2, id, names);
50738
+ const xml = (sourceXml && patchTableXml(sourceXml, sheet, table2, id, names, ctx.styles)) ?? tableXml(table2, id, names, ctx.styles);
50556
50739
  writer.add(part, xml, CONTENT_TYPES.table);
50557
50740
  }
50558
50741
  ctx.tableIds.add(id);
@@ -50613,6 +50796,17 @@ function scenariosXml(set) {
50613
50796
  return `<scenarios${a2}>${body}</scenarios>`;
50614
50797
  }
50615
50798
 
50799
+ // xlsx/write/ignored-errors.ts
50800
+ function ignoredErrorsXml(list2) {
50801
+ const items = (list2 ?? []).filter((e) => e.ranges.length && e.flags.length);
50802
+ if (!items.length) return "";
50803
+ const body = items.map((e) => {
50804
+ const flags = e.flags.map((flag2) => ` ${flag2}="1"`).join("");
50805
+ return `<ignoredError sqref="${e.ranges.map(formatRange).join(" ")}"${flags}/>`;
50806
+ }).join("");
50807
+ return `<ignoredErrors>${body}</ignoredErrors>`;
50808
+ }
50809
+
50616
50810
  // xlsx/write/worksheet.ts
50617
50811
  var REGENERATED = /* @__PURE__ */ new Set([
50618
50812
  RELATIONSHIP_TYPES.hyperlink,
@@ -50668,7 +50862,9 @@ function writeWorksheet(ctx, sheet, index3, partName) {
50668
50862
  blocks.set("scenarios", scenariosXml(sheet.scenarios));
50669
50863
  blocks.set("customSheetViews", customSheetViewsXml(sheet.customViews));
50670
50864
  blocks.set("autoFilter", autoFilterXml(sheet, ctx.styles));
50865
+ blocks.set("sortState", sheetSortStateXml(sheet, ctx.styles));
50671
50866
  blocks.set("mergeCells", mergeCellsXml(sheet));
50867
+ blocks.set("ignoredErrors", ignoredErrorsXml(sheet.ignoredErrors));
50672
50868
  blocks.set("conditionalFormatting", conditionalFormatsXml(sheet.conditionalFormats, ctx.styles));
50673
50869
  blocks.set("dataValidations", dataValidationsXml(sheet.dataValidations));
50674
50870
  const links = sheet.hyperlinks.map((link) => {
@@ -52120,7 +52316,7 @@ var xlsbUnsupported = () => new UnsupportedWorkbookError(
52120
52316
  "Excel Binary Workbook (.xlsb) files are not supported; save as .xlsx in Excel."
52121
52317
  );
52122
52318
 
52123
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole2-stream-edit.js
52319
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole2-stream-edit.js
52124
52320
  var END = 4294967294;
52125
52321
  var MAX = 4294967290;
52126
52322
  var NIL = 4294967295;
@@ -52208,21 +52404,21 @@ function readTarget(input, target, root, fat, sector, sectorCount, sectorSize, m
52208
52404
  return out;
52209
52405
  }
52210
52406
  function processCompoundFileStream(input, path3, replacement) {
52211
- const reject = () => replacement ? input : void 0;
52407
+ const reject2 = () => replacement ? input : void 0;
52212
52408
  try {
52213
52409
  if (path3.length === 0 || path3.some((part) => !part) || input.length < 512)
52214
- return reject();
52410
+ return reject2();
52215
52411
  const view = new DataView(input.buffer, input.byteOffset, input.byteLength);
52216
52412
  const read32 = (offset3) => view.getUint32(offset3, true);
52217
52413
  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.
52218
52414
  replacement && view.getUint16(28, true) !== 65534)
52219
- return reject();
52415
+ return reject2();
52220
52416
  const major = view.getUint16(26, true), shift3 = view.getUint16(30, true), miniShift = view.getUint16(32, true);
52221
52417
  if (major !== 3 && major !== 4 || shift3 !== (major === 3 ? 9 : 12) || miniShift !== 6)
52222
- return reject();
52418
+ return reject2();
52223
52419
  const sectorSize = 1 << shift3, miniSize = 1 << miniShift;
52224
52420
  if (input.length < sectorSize || replacement && input.length % sectorSize !== 0)
52225
- return reject();
52421
+ return reject2();
52226
52422
  const sectorCount = Math.ceil(input.length / sectorSize) - 1;
52227
52423
  const offset2 = (id) => (id + 1) * sectorSize;
52228
52424
  const sector = (id) => {
@@ -52241,7 +52437,7 @@ function processCompoundFileStream(input, path3, replacement) {
52241
52437
  const difatIds = /* @__PURE__ */ new Set();
52242
52438
  for (let i2 = 0; i2 < difatCount; i2++) {
52243
52439
  if (difatIds.has(difat) || difat > MAX)
52244
- return reject();
52440
+ return reject2();
52245
52441
  difatIds.add(difat);
52246
52442
  const bytes = sector(difat), dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
52247
52443
  for (let j = 0; j < (sectorSize - 4) / 4 && fatIds.length < fatCount; j++) {
@@ -52252,7 +52448,7 @@ function processCompoundFileStream(input, path3, replacement) {
52252
52448
  difat = dv.getUint32(sectorSize - 4, true);
52253
52449
  }
52254
52450
  if (fatIds.length !== fatCount || new Set(fatIds).size !== fatIds.length || fatIds.some((id) => difatIds.has(id)))
52255
- return reject();
52451
+ return reject2();
52256
52452
  const fat = [];
52257
52453
  for (const id of fatIds) {
52258
52454
  const bytes = sector(id), dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -52271,13 +52467,13 @@ function processCompoundFileStream(input, path3, replacement) {
52271
52467
  continue;
52272
52468
  const nameLength = dvDir.getUint16(p + 64, true);
52273
52469
  if (nameLength < 2 || nameLength > 64 || nameLength % 2)
52274
- return reject();
52470
+ return reject2();
52275
52471
  let name = "";
52276
52472
  for (let i2 = 0; i2 < nameLength - 2; i2 += 2)
52277
52473
  name += String.fromCharCode(dvDir.getUint16(p + i2, true));
52278
52474
  const sizeLow = dvDir.getUint32(p + 120, true), sizeHigh = dvDir.getUint32(p + 124, true);
52279
52475
  if (sizeHigh !== 0 && (replacement || major === 4))
52280
- return reject();
52476
+ return reject2();
52281
52477
  entries.push({
52282
52478
  id,
52283
52479
  name,
@@ -52292,7 +52488,7 @@ function processCompoundFileStream(input, path3, replacement) {
52292
52488
  const byId = new Map(entries.map((e) => [e.id, e]));
52293
52489
  const root = entries.find((e) => e.type === 5);
52294
52490
  if (!root)
52295
- return reject();
52491
+ return reject2();
52296
52492
  let parent = root, target;
52297
52493
  for (let partIndex = 0; partIndex < path3.length; partIndex++) {
52298
52494
  const matches2 = [], seen = /* @__PURE__ */ new Set();
@@ -52312,22 +52508,22 @@ function processCompoundFileStream(input, path3, replacement) {
52312
52508
  };
52313
52509
  visit(parent.child);
52314
52510
  if (matches2.length !== 1)
52315
- return reject();
52511
+ return reject2();
52316
52512
  target = matches2[0];
52317
52513
  if (partIndex < path3.length - 1) {
52318
52514
  if (target.type !== 1)
52319
- return reject();
52515
+ return reject2();
52320
52516
  parent = target;
52321
52517
  } else if (target.type !== 2 || replacement && replacement.length !== target.size)
52322
- return reject();
52518
+ return reject2();
52323
52519
  }
52324
52520
  if (!target)
52325
- return reject();
52521
+ return reject2();
52326
52522
  if (!replacement)
52327
52523
  return readTarget(input, target, root, fat, sector, sectorCount, sectorSize, miniSize, read32);
52328
52524
  const names = entries.map((e) => e.name.toLowerCase());
52329
52525
  if (replacement && (names.includes("encryptioninfo") || names.includes("encryptedpackage")))
52330
- return reject();
52526
+ return reject2();
52331
52527
  for (const name of replacement ? ["book", "workbook"] : []) {
52332
52528
  if (!names.includes(name))
52333
52529
  continue;
@@ -52338,7 +52534,7 @@ function processCompoundFileStream(input, path3, replacement) {
52338
52534
  const record = workbook[p] | workbook[p + 1] << 8;
52339
52535
  const length = workbook[p + 2] | workbook[p + 3] << 8;
52340
52536
  if (record === 47)
52341
- return reject();
52537
+ return reject2();
52342
52538
  if (p + 4 + length > workbook.length || record === 10)
52343
52539
  break;
52344
52540
  p += 4 + length;
@@ -52347,13 +52543,13 @@ function processCompoundFileStream(input, path3, replacement) {
52347
52543
  if (replacement && names.includes("worddocument")) {
52348
52544
  const word = readCompoundFileStream(input, ["WordDocument"]);
52349
52545
  if (word && word.length >= 12 && ((word[10] | word[11] << 8) & 256) !== 0)
52350
- return reject();
52546
+ return reject2();
52351
52547
  }
52352
52548
  const miniCutoff = read32(56), miniFatCount = read32(64), miniFatStart = read32(60);
52353
52549
  const miniFatSectors = miniFatCount ? chain(fat, miniFatStart, miniFatCount) : [];
52354
52550
  const metadataSectors = [...fatIds, ...difatIds, ...dirSectors, ...miniFatSectors];
52355
52551
  if (new Set(metadataSectors).size !== metadataSectors.length)
52356
- return reject();
52552
+ return reject2();
52357
52553
  const miniFat = [];
52358
52554
  const miniCapacity = Math.floor(Math.min(root.size, sectorCount * sectorSize) / miniSize);
52359
52555
  for (const id of miniFatSectors) {
@@ -52372,7 +52568,7 @@ function processCompoundFileStream(input, path3, replacement) {
52372
52568
  for (const id of exactChain(fat, entry3.start, entry3.size, sectorSize)) {
52373
52569
  sector(id);
52374
52570
  if (regularUsed.has(id))
52375
- return reject();
52571
+ return reject2();
52376
52572
  regularUsed.add(id);
52377
52573
  }
52378
52574
  }
@@ -52383,7 +52579,7 @@ function processCompoundFileStream(input, path3, replacement) {
52383
52579
  const ids = exactChain(miniFat, entry3.start, entry3.size, miniSize);
52384
52580
  for (const id of ids) {
52385
52581
  if ((id + 1) * miniSize > rootMini.size || miniUsed.has(id))
52386
- return reject();
52582
+ return reject2();
52387
52583
  miniUsed.add(id);
52388
52584
  }
52389
52585
  }
@@ -52417,7 +52613,7 @@ function processCompoundFileStream(input, path3, replacement) {
52417
52613
  output.set(replacement.subarray(i2 * sectorSize, Math.min((i2 + 1) * sectorSize, replacement.length)), offset2(sectors[i2]));
52418
52614
  } else {
52419
52615
  if (!miniFat.length)
52420
- return reject();
52616
+ return reject2();
52421
52617
  const miniSectors = exactChain(miniFat, target.start, target.size, miniSize);
52422
52618
  const rootMini2 = entries.find((e) => e.type === 5);
52423
52619
  const rootSectors = exactChain(fat, rootMini2.start, rootMini2.size, sectorSize);
@@ -52427,18 +52623,18 @@ function processCompoundFileStream(input, path3, replacement) {
52427
52623
  for (let i2 = 0; i2 < replacement.length; i2++) {
52428
52624
  const miniOffset = miniSectors[Math.floor(i2 / miniSize)] * miniSize + i2 % miniSize;
52429
52625
  if (miniOffset >= rootData.length)
52430
- return reject();
52626
+ return reject2();
52431
52627
  const rootSectorIndex = Math.floor(miniOffset / sectorSize);
52432
52628
  const rootSector = rootSectors[rootSectorIndex];
52433
52629
  if (rootSector === void 0)
52434
- return reject();
52630
+ return reject2();
52435
52631
  const physical = offset2(rootSector) + miniOffset % sectorSize;
52436
52632
  output[physical] = replacement[i2];
52437
52633
  }
52438
52634
  }
52439
52635
  return output;
52440
52636
  } catch {
52441
- return reject();
52637
+ return reject2();
52442
52638
  }
52443
52639
  }
52444
52640
  function readCompoundFileStream(input, path3) {
@@ -52448,7 +52644,7 @@ function replaceCompoundFileStream(input, path3, replacement) {
52448
52644
  return processCompoundFileStream(input, path3, replacement) ?? input;
52449
52645
  }
52450
52646
 
52451
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-cfb.js
52647
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-cfb.js
52452
52648
  var WORKBOOK_STREAM_NAMES = ["workbook", "book"];
52453
52649
  function unwrapXlsBytes(bytes) {
52454
52650
  if (!isCfb(bytes)) {
@@ -52515,7 +52711,7 @@ function isCfb(bytes) {
52515
52711
  return OLE_MAGIC.every((value2, index3) => bytes[index3] === value2);
52516
52712
  }
52517
52713
 
52518
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-functions.js
52714
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-functions.js
52519
52715
  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`;
52520
52716
  var XLS_FUNCTIONS = new Map(TABLE9.split("|").map((entry3) => {
52521
52717
  const [id, name, argc] = entry3.split(" ");
@@ -52523,7 +52719,7 @@ var XLS_FUNCTIONS = new Map(TABLE9.split("|").map((entry3) => {
52523
52719
  }));
52524
52720
  var XLS_USER_FUNCTION_ID = 255;
52525
52721
 
52526
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-ptg-text.js
52722
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-ptg-text.js
52527
52723
  var BIFF_ERRORS = {
52528
52724
  0: "#NULL!",
52529
52725
  7: "#DIV/0!",
@@ -52618,7 +52814,7 @@ function readArrayConstant(extra) {
52618
52814
  return `{${lines2.join(";")}}`;
52619
52815
  }
52620
52816
 
52621
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-records.js
52817
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-records.js
52622
52818
  var RT_CONTINUE = 60;
52623
52819
  function readXlsRecords(bytes, start = 0, end = bytes.length) {
52624
52820
  const records = [];
@@ -52784,7 +52980,7 @@ function joinedData(record) {
52784
52980
  return out;
52785
52981
  }
52786
52982
 
52787
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-ptg.js
52983
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-ptg.js
52788
52984
  function decodeFormula(rgce, extra, context, options) {
52789
52985
  try {
52790
52986
  return decode2(rgce, new ByteReader(extra), context, options);
@@ -53015,7 +53211,7 @@ function readAttr(reader, stack2, whitespace) {
53015
53211
  }
53016
53212
  }
53017
53213
 
53018
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sst.js
53214
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sst.js
53019
53215
  function parseSharedStrings2(record) {
53020
53216
  const reader = SegmentReader.of(record);
53021
53217
  reader.u32();
@@ -53032,7 +53228,7 @@ function parseSharedStrings2(record) {
53032
53228
  return strings;
53033
53229
  }
53034
53230
 
53035
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-styles.js
53231
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-styles.js
53036
53232
  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(" ");
53037
53233
  var XLS_BUILTIN_FORMATS = {
53038
53234
  0: "General",
@@ -53289,7 +53485,7 @@ function applyXfExt(data, xfs, palette) {
53289
53485
  }
53290
53486
  }
53291
53487
 
53292
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-types.js
53488
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-types.js
53293
53489
  var XlsReadError = class extends Error {
53294
53490
  code;
53295
53491
  constructor(code, message) {
@@ -53299,7 +53495,7 @@ var XlsReadError = class extends Error {
53299
53495
  }
53300
53496
  };
53301
53497
 
53302
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-globals.js
53498
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-globals.js
53303
53499
  var RT = {
53304
53500
  BOF: 2057,
53305
53501
  EOF: 10,
@@ -53537,7 +53733,7 @@ function parseGlobals(records) {
53537
53733
  return out;
53538
53734
  }
53539
53735
 
53540
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-biff8.js
53736
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-biff8.js
53541
53737
  function decodeRk(rk) {
53542
53738
  const isInt = (rk & 2) !== 0;
53543
53739
  const isDiv100 = (rk & 1) !== 0;
@@ -53554,7 +53750,7 @@ function decodeRk(rk) {
53554
53750
  return isDiv100 ? value2 / 100 : value2;
53555
53751
  }
53556
53752
 
53557
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-formulas.js
53753
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-formulas.js
53558
53754
  function readRefU(r) {
53559
53755
  return { firstRow: r.u16(), lastRow: r.u16(), firstCol: r.u8(), lastCol: r.u8() };
53560
53756
  }
@@ -53612,7 +53808,7 @@ function resolveFormulas(formulas, shared, arrays, globals) {
53612
53808
  }
53613
53809
  }
53614
53810
 
53615
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sheet-extras.js
53811
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sheet-extras.js
53616
53812
  function parseMergedCells(data) {
53617
53813
  const r = new ByteReader(data);
53618
53814
  const count2 = r.u16();
@@ -53807,7 +54003,7 @@ function parseNote(data) {
53807
54003
  return { row: row2, col, visible: (flags & 2) !== 0, id, author: r.xlString() };
53808
54004
  }
53809
54005
 
53810
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sheet.js
54006
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook-sheet.js
53811
54007
  var UNSUPPORTED = {
53812
54008
  432: "conditional formatting",
53813
54009
  2169: "conditional formatting",
@@ -54063,7 +54259,7 @@ function parseSheet(bound, records, start, globals) {
54063
54259
  return sheet;
54064
54260
  }
54065
54261
 
54066
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook.js
54262
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-excel-workbook.js
54067
54263
  function compoundStreamNames(bytes) {
54068
54264
  if (!OLE_MAGIC.every((value2, index3) => bytes[index3] === value2))
54069
54265
  return [];
@@ -54133,7 +54329,7 @@ function readXlsWorkbook(bytes) {
54133
54329
  };
54134
54330
  }
54135
54331
 
54136
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
54332
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
54137
54333
  var CP1252_HIGH_BLOCK = [
54138
54334
  8364,
54139
54335
  129,
@@ -54183,7 +54379,7 @@ function decodeCp1252(bytes) {
54183
54379
  return out;
54184
54380
  }
54185
54381
 
54186
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ole-summary-properties.js
54382
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/ole-summary-properties.js
54187
54383
  var SUMMARY_STREAM_NAME = "SummaryInformation";
54188
54384
  var SUMMARY_TEXT_PROPERTIES = {
54189
54385
  title: 2,
@@ -54298,7 +54494,7 @@ function readSummaryProperties(bytes) {
54298
54494
  return result2;
54299
54495
  }
54300
54496
 
54301
- // ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-office-metadata.js
54497
+ // ../../node_modules/.bun/@christophervr+ole2@0.14.0/node_modules/@christophervr/ole2/dist/legacy-office-metadata.js
54302
54498
  function summaryStream(bytes) {
54303
54499
  return readCompoundFileStream(bytes, [SUMMARY_STREAM_NAME]);
54304
54500
  }