@poe-platform/safe-bash 0.1.812 → 0.1.813

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 (329) hide show
  1. package/dist/audio-ast/id3-source.d.ts +27 -0
  2. package/dist/audio-ast/index.d.ts +4 -0
  3. package/dist/audio-ast/index.js +996 -596
  4. package/dist/audio-ast/mp3-source.d.ts +18 -0
  5. package/dist/audio-ast/ogg-source.d.ts +25 -0
  6. package/dist/audio-ast/ogg-stream-source.d.ts +22 -0
  7. package/dist/image-ast/index.js +139 -9
  8. package/dist/mp4-ast/containers/adapters.d.ts +7 -0
  9. package/dist/office-xml/retained-xml-document.d.ts +8 -0
  10. package/dist/pdf-ast/ast.d.ts +2 -0
  11. package/dist/pdf-ast/content/dictionary-cursor.d.ts +15 -0
  12. package/dist/pdf-ast/content/range-operator-parser.d.ts +4 -0
  13. package/dist/pdf-ast/content/stored-dictionary.d.ts +10 -0
  14. package/dist/pdf-ast/cos/lexer.d.ts +8 -5
  15. package/dist/pdf-ast/cos/object-reader.d.ts +4 -3
  16. package/dist/pdf-ast/cos/range-parser.d.ts +4 -0
  17. package/dist/pdf-ast/cos/retained-objects.d.ts +1 -0
  18. package/dist/pdf-ast/cos/retained-writer.d.ts +1 -0
  19. package/dist/pdf-ast/cos/value-parser.d.ts +9 -0
  20. package/dist/pdf-ast/edit/retained-append-attachments.d.ts +13 -0
  21. package/dist/pdf-ast/edit/retained-bookmarks.d.ts +13 -0
  22. package/dist/pdf-ast/edit/retained-graph.d.ts +6 -0
  23. package/dist/pdf-ast/edit/retained-save.d.ts +2 -0
  24. package/dist/pdf-ast/edit/retained-stamps.d.ts +9 -0
  25. package/dist/pdf-ast/fonts/resolve.d.ts +3 -1
  26. package/dist/pdf-ast/index.d.ts +3 -1
  27. package/dist/pdf-ast/index.js +1557 -770
  28. package/dist/safe-bash/audio-ast.browser.js +6 -1
  29. package/dist/safe-bash/chunks/{chunk-HHSOUC3Z.js → chunk-HPQE675Q.js} +1 -1
  30. package/dist/safe-bash/chunks/{chunk-BUYRKFW2.js → chunk-I6ECNJMR.js} +1 -1
  31. package/dist/safe-bash/chunks/{pdftk-WRYEP3CA.js → pdftk-Y2TX74LY.js} +2 -1
  32. package/dist/safe-bash/command-chunks/biff-4ALVARRF-7SRX6R6N.js +5192 -0
  33. package/dist/safe-bash/command-chunks/{chunk-EHSM5ZQS.js → chunk-2DGJOOXM.js} +8 -8
  34. package/dist/safe-bash/command-chunks/{chunk-Q6S57NOQ.js → chunk-2E2H7MBH.js} +7 -7
  35. package/dist/safe-bash/command-chunks/{chunk-MMBZTYXO.js → chunk-2PQRZDNR.js} +221 -0
  36. package/dist/safe-bash/command-chunks/{chunk-NARD63DY.js → chunk-2V6FOLXV.js} +22 -66
  37. package/dist/safe-bash/command-chunks/{chunk-56NYSX65.js → chunk-2Z3WRRFT.js} +9 -9
  38. package/dist/safe-bash/command-chunks/chunk-3D24WDND.js +63 -0
  39. package/dist/safe-bash/command-chunks/{chunk-47NEG4UO.js → chunk-3JST2Q7G.js} +219 -43
  40. package/dist/safe-bash/command-chunks/{chunk-WGG6G2KG.js → chunk-3LJAXFH5.js} +7 -7
  41. package/dist/safe-bash/command-chunks/{chunk-AHA6IWAJ.js → chunk-3TYDSGAH.js} +6 -6
  42. package/dist/safe-bash/command-chunks/{chunk-YSMNXMAO.js → chunk-3Y4XZB24.js} +4 -4
  43. package/dist/safe-bash/command-chunks/{chunk-ZIIO6GRY.js → chunk-4PBNMKAT.js} +7 -7
  44. package/dist/safe-bash/command-chunks/{chunk-JFYWVQ4V.js → chunk-4Z6W5EOC.js} +8 -8
  45. package/dist/safe-bash/command-chunks/{chunk-GEM47B2P.js → chunk-57DDYKE5.js} +7 -7
  46. package/dist/safe-bash/command-chunks/{chunk-4CKFNXRN.js → chunk-5IFRAI7Y.js} +1 -1
  47. package/dist/safe-bash/command-chunks/{chunk-RHYJVTJO.js → chunk-5KGEZ3RW.js} +2 -2
  48. package/dist/safe-bash/command-chunks/{chunk-A5FZBR7X.js → chunk-5MFDRSGG.js} +4 -4
  49. package/dist/safe-bash/command-chunks/{chunk-7GKKMNL6.js → chunk-5P6I2T63.js} +8 -8
  50. package/dist/safe-bash/command-chunks/{chunk-6M6TM5Z5.js → chunk-5VQVZPP3.js} +3 -3
  51. package/dist/safe-bash/command-chunks/{chunk-MIRL7HTF.js → chunk-6244HYJY.js} +1 -1
  52. package/dist/safe-bash/command-chunks/chunk-63EMPQ7Z.js +115 -0
  53. package/dist/safe-bash/command-chunks/{chunk-XRVKWGVQ.js → chunk-6CY5BHBS.js} +6 -6
  54. package/dist/safe-bash/command-chunks/{chunk-XVP6V5K3.js → chunk-6IWE7PTK.js} +6 -6
  55. package/dist/safe-bash/command-chunks/{chunk-6QBMND4A.js → chunk-6SRHWVEB.js} +1 -1
  56. package/dist/safe-bash/command-chunks/chunk-6ZHQB453.js +35 -0
  57. package/dist/safe-bash/command-chunks/chunk-73NYFNAS.js +173 -0
  58. package/dist/safe-bash/command-chunks/{chunk-2JSDKQ4J.js → chunk-7NXTEWPR.js} +119 -44
  59. package/dist/safe-bash/command-chunks/{chunk-554Z6IKP.js → chunk-7PRL6RJ6.js} +2 -2
  60. package/dist/safe-bash/command-chunks/{chunk-SDTPO2VV.js → chunk-7PZHWMK6.js} +7 -7
  61. package/dist/safe-bash/command-chunks/{chunk-XZ2FWFNV.js → chunk-7QZ2HP2F.js} +6 -6
  62. package/dist/safe-bash/command-chunks/{chunk-OEJM666F.js → chunk-7UC2Q6Z6.js} +5 -5
  63. package/dist/safe-bash/command-chunks/{chunk-COKYZUBW.js → chunk-AJI55RS7.js} +1 -1
  64. package/dist/safe-bash/command-chunks/{chunk-WXRYDALR.js → chunk-BBAB7LC4.js} +4 -4
  65. package/dist/safe-bash/command-chunks/{chunk-QYMEASQ6.js → chunk-BEHUSUOY.js} +4 -4
  66. package/dist/safe-bash/command-chunks/{chunk-Z2JW6M2D.js → chunk-BK7ISUJL.js} +3 -3
  67. package/dist/safe-bash/command-chunks/{chunk-33YCKZZX.js → chunk-C5KLFZGT.js} +6 -6
  68. package/dist/safe-bash/command-chunks/{chunk-TVH4JORU.js → chunk-C5QDEB3I.js} +3 -3
  69. package/dist/safe-bash/command-chunks/{chunk-N4R2SHSS.js → chunk-CCZZVCHX.js} +2 -2
  70. package/dist/safe-bash/command-chunks/{chunk-2VLAXKTS.js → chunk-CTDC4LJT.js} +121 -85
  71. package/dist/safe-bash/command-chunks/{chunk-S6R3IB36.js → chunk-D55REQA3.js} +1 -1
  72. package/dist/safe-bash/command-chunks/{chunk-Y4EYCZFT.js → chunk-D6WJY6QO.js} +10 -10
  73. package/dist/safe-bash/command-chunks/{chunk-2CORNDGF.js → chunk-DBLHCJJU.js} +2 -2
  74. package/dist/safe-bash/command-chunks/{chunk-SPW4GW4Z.js → chunk-DFI7QF3M.js} +2 -2
  75. package/dist/safe-bash/command-chunks/{chunk-456PHA3L.js → chunk-DMCI6T6N.js} +1 -1
  76. package/dist/safe-bash/command-chunks/{chunk-TW73OXPR.js → chunk-EJTNVXWF.js} +6 -6
  77. package/dist/safe-bash/command-chunks/{chunk-QD7ZRDUN.js → chunk-ET2VPDUA.js} +1 -1
  78. package/dist/safe-bash/command-chunks/{chunk-CJQSAATC.js → chunk-EXOQGXEU.js} +26 -26
  79. package/dist/safe-bash/command-chunks/{chunk-CRV2Q3PB.js → chunk-EZ4NQIPL.js} +1 -1
  80. package/dist/safe-bash/command-chunks/chunk-FWKLBDMK.js +0 -0
  81. package/dist/safe-bash/command-chunks/{chunk-22MOB45U.js → chunk-FWPVQGYK.js} +6 -6
  82. package/dist/safe-bash/command-chunks/{chunk-QC5RMGSA.js → chunk-G3RUXKVY.js} +3 -3
  83. package/dist/safe-bash/command-chunks/{chunk-JYUJAF4L.js → chunk-G7NENPYV.js} +4 -0
  84. package/dist/safe-bash/command-chunks/{chunk-KCOJA7EM.js → chunk-GKILM4HZ.js} +7 -7
  85. package/dist/safe-bash/command-chunks/{chunk-HTVIYLVB.js → chunk-GNXTMSYN.js} +4 -4
  86. package/dist/safe-bash/command-chunks/{chunk-D2ASPM7R.js → chunk-GOBUDKZ3.js} +3 -3
  87. package/dist/safe-bash/command-chunks/{chunk-RNSKXOG3.js → chunk-GVWVRPG6.js} +6 -6
  88. package/dist/safe-bash/command-chunks/{chunk-FDCIPJBQ.js → chunk-HCKYUQ3L.js} +7 -7
  89. package/dist/safe-bash/command-chunks/{chunk-AGLK7OJR.js → chunk-HDSIIQBS.js} +1 -1
  90. package/dist/safe-bash/command-chunks/{chunk-DM2CPMB4.js → chunk-HKOMXGJS.js} +2 -2
  91. package/dist/safe-bash/command-chunks/{chunk-IT7TAC3F.js → chunk-HVW53ARH.js} +16 -16
  92. package/dist/safe-bash/command-chunks/{chunk-M7QE2MN7.js → chunk-I4GMCWAT.js} +6 -6
  93. package/dist/safe-bash/command-chunks/{chunk-HWQ2UHMT.js → chunk-IHSOOSNC.js} +9 -9
  94. package/dist/safe-bash/command-chunks/{chunk-LCZDBW55.js → chunk-JAHJWVGF.js} +5 -5
  95. package/dist/safe-bash/command-chunks/{chunk-MOZD7RUY.js → chunk-JORIVUPM.js} +27 -11
  96. package/dist/safe-bash/command-chunks/{chunk-PMAM4N33.js → chunk-JUJHYPYL.js} +9 -9
  97. package/dist/safe-bash/command-chunks/{chunk-ENT3IV2G.js → chunk-KBUBSMCQ.js} +12 -12
  98. package/dist/safe-bash/command-chunks/{chunk-ZXR6LXV5.js → chunk-KCE5D4Z4.js} +48 -4
  99. package/dist/safe-bash/command-chunks/{chunk-FIIAYCWS.js → chunk-KZ5ODST6.js} +2 -2
  100. package/dist/safe-bash/command-chunks/{chunk-PNGDJA6M.js → chunk-LD7BONZY.js} +2 -2
  101. package/dist/safe-bash/command-chunks/{chunk-KJ4XXZIL.js → chunk-M3Z5PU2M.js} +582 -59
  102. package/dist/safe-bash/command-chunks/{chunk-LXLLA4PM.js → chunk-MKX4JAZ6.js} +17 -17
  103. package/dist/safe-bash/command-chunks/{chunk-RQIQ75W5.js → chunk-MNHBQBF6.js} +5 -5
  104. package/dist/safe-bash/command-chunks/{chunk-A2CLZMQZ.js → chunk-MPKY37QR.js} +1 -1
  105. package/dist/safe-bash/command-chunks/{chunk-K5GB2YMN.js → chunk-MUUWBZIC.js} +10 -10
  106. package/dist/safe-bash/command-chunks/{chunk-JOCFI7TG.js → chunk-N32GSM3J.js} +1 -1
  107. package/dist/safe-bash/command-chunks/{chunk-EUT24Y5Z.js → chunk-NKTULXVD.js} +8 -8
  108. package/dist/safe-bash/command-chunks/{chunk-5HPU7D36.js → chunk-NMPED6L5.js} +4 -4
  109. package/dist/safe-bash/command-chunks/{chunk-QZZ73J2O.js → chunk-NPFHUS4X.js} +6 -6
  110. package/dist/safe-bash/command-chunks/{chunk-X7FA7ZD5.js → chunk-O675URF4.js} +8 -8
  111. package/dist/safe-bash/command-chunks/{chunk-R6EGGK5M.js → chunk-P7EL2FWW.js} +7 -7
  112. package/dist/safe-bash/command-chunks/{chunk-YS25EI54.js → chunk-PCCFLPUQ.js} +2 -2
  113. package/dist/safe-bash/command-chunks/{chunk-RRL3Y562.js → chunk-PI6MOMHA.js} +11 -11
  114. package/dist/safe-bash/command-chunks/{chunk-26VCZHLJ.js → chunk-PIOQBOEK.js} +1 -1
  115. package/dist/safe-bash/command-chunks/chunk-PK36TVXB.js +175 -0
  116. package/dist/safe-bash/command-chunks/{chunk-3Q247UDJ.js → chunk-PKLJRB7W.js} +264 -129
  117. package/dist/safe-bash/command-chunks/{chunk-6CCQI6XZ.js → chunk-PSCOXGCA.js} +12 -12
  118. package/dist/safe-bash/command-chunks/{chunk-XPD636C4.js → chunk-PVGZMLC6.js} +3 -3
  119. package/dist/safe-bash/command-chunks/{chunk-JQVHUSDD.js → chunk-PXWS3Q7L.js} +5 -5
  120. package/dist/safe-bash/command-chunks/{chunk-HDJVJTCK.js → chunk-QFF5KBOM.js} +9 -9
  121. package/dist/safe-bash/command-chunks/{chunk-MPUHH2KR.js → chunk-QM2HZJSJ.js} +3 -3
  122. package/dist/safe-bash/command-chunks/{chunk-UAXSE3XE.js → chunk-R2BMZAHG.js} +5 -5
  123. package/dist/safe-bash/command-chunks/{chunk-KB7DUBVL.js → chunk-RGOQKIG6.js} +5 -5
  124. package/dist/safe-bash/command-chunks/{chunk-D2KZ66W4.js → chunk-RLCQ7BN3.js} +187 -39
  125. package/dist/safe-bash/command-chunks/{chunk-B5LDP7AA.js → chunk-S2N2V5U4.js} +2 -2
  126. package/dist/safe-bash/command-chunks/{chunk-OA75SGN2.js → chunk-SGPCXAG7.js} +7 -7
  127. package/dist/safe-bash/command-chunks/{chunk-QUM3SYAJ.js → chunk-SYSX46IV.js} +3 -3
  128. package/dist/safe-bash/command-chunks/chunk-T3E5RV3U.js +737 -0
  129. package/dist/safe-bash/command-chunks/{chunk-YORJDX4V.js → chunk-T5ERNELL.js} +4 -4
  130. package/dist/safe-bash/command-chunks/{chunk-ZEX53S5I.js → chunk-T6C5QP7T.js} +6368 -6230
  131. package/dist/safe-bash/command-chunks/{chunk-ATTWQVR2.js → chunk-TKRLZIFI.js} +17 -17
  132. package/dist/safe-bash/command-chunks/{chunk-ZMHEGDU2.js → chunk-TODWFDYB.js} +2 -2
  133. package/dist/safe-bash/command-chunks/{chunk-XVLWZTPY.js → chunk-TQEB4DH4.js} +543 -144
  134. package/dist/safe-bash/command-chunks/{chunk-36XGIPOG.js → chunk-U5TWQFZY.js} +1 -1
  135. package/dist/safe-bash/command-chunks/{chunk-APEWTWCC.js → chunk-UAF4IX5H.js} +6 -6
  136. package/dist/safe-bash/command-chunks/{chunk-6VPQ3CDZ.js → chunk-V37D6AHO.js} +5 -5
  137. package/dist/safe-bash/command-chunks/{chunk-RID6VYS3.js → chunk-V6XBEYPC.js} +8 -8
  138. package/dist/safe-bash/command-chunks/{chunk-WJCN2IXI.js → chunk-VQOINPVF.js} +2 -2
  139. package/dist/safe-bash/command-chunks/{chunk-W5YSINXC.js → chunk-VVWXY6IA.js} +6 -6
  140. package/dist/safe-bash/command-chunks/{chunk-HKATEVAP.js → chunk-WPVBUVFK.js} +6 -6
  141. package/dist/safe-bash/command-chunks/{chunk-UYWSIIUX.js → chunk-X53AEG36.js} +7 -7
  142. package/dist/safe-bash/command-chunks/{chunk-L5MCW6CM.js → chunk-X64XGIXZ.js} +9 -155
  143. package/dist/safe-bash/command-chunks/{chunk-Q73EMLLZ.js → chunk-X6RHJ6YN.js} +84 -5
  144. package/dist/safe-bash/command-chunks/{chunk-7PVHO47B.js → chunk-XG6UWQV5.js} +6 -6
  145. package/dist/safe-bash/command-chunks/{chunk-NQDIT667.js → chunk-XIDGHIGB.js} +5 -5
  146. package/dist/safe-bash/command-chunks/{chunk-CV7M2QJU.js → chunk-XLYIVBAR.js} +7 -7
  147. package/dist/safe-bash/command-chunks/{chunk-WVMHRNXZ.js → chunk-YUXTK3XA.js} +3 -3
  148. package/dist/safe-bash/command-chunks/{chunk-SPLOIABU.js → chunk-YXD6VGVG.js} +3 -3
  149. package/dist/safe-bash/command-chunks/{chunk-2ZFLMWOX.js → chunk-Z5BIM5B7.js} +1 -1
  150. package/dist/safe-bash/command-chunks/chunk-ZYLGNIGA.js +156 -0
  151. package/dist/safe-bash/command-chunks/{command-engine-BCUQGJJ4.js → command-engine-X3OLN7N6.js} +150 -67
  152. package/dist/safe-bash/command-chunks/{engine-LAUEWYSQ-DQCEI5HE.js → engine-XUCIFZ7V-LJFGZM6O.js} +1 -1
  153. package/dist/safe-bash/command-chunks/paradox-4FCZE53D-LQPGVMEL.js +365 -0
  154. package/dist/safe-bash/commands/pandoc/index.browser.js +1 -1
  155. package/dist/safe-bash/full-core.browser.js +2 -2
  156. package/dist/safe-bash/plugins/index.browser.js +2 -2
  157. package/dist/safe-bash-command-diff/diff.js +1 -1
  158. package/dist/safe-bash-command-diff/index.js +1 -1
  159. package/dist/safe-bash-command-ffmpeg/index.js +1 -1
  160. package/dist/safe-bash-command-ffprobe/index.js +2 -2
  161. package/dist/safe-bash-command-ffprobe/media.d.ts +3 -1
  162. package/dist/safe-bash-command-ffprobe/media.js +2 -2
  163. package/dist/safe-bash-command-html-to-markdown/budget.js +2 -1
  164. package/dist/safe-bash-command-html-to-markdown/entities.js +4 -3
  165. package/dist/safe-bash-command-html-to-markdown/index.js +564 -110
  166. package/dist/safe-bash-command-html-to-markdown/input.js +6 -5
  167. package/dist/safe-bash-command-html-to-markdown/options.js +2 -1
  168. package/dist/safe-bash-command-html-to-markdown/parser.js +5 -4
  169. package/dist/safe-bash-command-html-to-markdown/render.js +6 -5
  170. package/dist/safe-bash-command-html-to-markdown/text.js +3 -2
  171. package/dist/safe-bash-command-htmlq/index.js +361 -37
  172. package/dist/safe-bash-command-htmlq/tree.d.ts +3 -2
  173. package/dist/safe-bash-command-pandoc/command.js +7 -7
  174. package/dist/safe-bash-command-pandoc/index.js +55 -55
  175. package/dist/safe-bash-command-patch/index.js +6 -6
  176. package/dist/safe-bash-command-patch/patch-envelope.js +53 -3
  177. package/dist/safe-bash-command-patch/patch-formats.d.ts +2 -2
  178. package/dist/safe-bash-command-patch/patch-formats.js +2 -2
  179. package/dist/safe-bash-command-patch/patch-gnu-reject.d.ts +2 -1
  180. package/dist/safe-bash-command-patch/patch-gnu-reject.js +4 -3
  181. package/dist/safe-bash-command-patch/patch-publication.js +2 -1
  182. package/dist/safe-bash-command-patch/patch.js +6 -6
  183. package/dist/safe-bash-command-patch/unified.d.ts +10 -2
  184. package/dist/safe-bash-command-patch/unified.js +1 -1
  185. package/dist/safe-bash-command-pdftk/index.d.ts +6 -2
  186. package/dist/safe-bash-command-pdftk/index.js +830 -271
  187. package/dist/safe-bash-command-pptx/command-engine.d.ts +3 -0
  188. package/dist/safe-bash-command-pptx/engine.js +1 -1
  189. package/dist/safe-bash-command-pptx/index.js +9 -2
  190. package/dist/safe-bash-command-soffice/index.js +1 -1
  191. package/dist/safe-bash-command-ssconvert/index.js +2 -2
  192. package/dist/safe-bash-command-xmllint/index.js +22 -31
  193. package/dist/safe-bash-presentation-engine/accessibility.js +31 -30
  194. package/dist/safe-bash-presentation-engine/animation-editing.js +16 -15
  195. package/dist/safe-bash-presentation-engine/animations.js +16 -15
  196. package/dist/safe-bash-presentation-engine/backgrounds.js +17 -16
  197. package/dist/safe-bash-presentation-engine/bytes.js +3 -3
  198. package/dist/safe-bash-presentation-engine/chart-editing.js +34 -33
  199. package/dist/safe-bash-presentation-engine/chart-object-operations.js +25 -24
  200. package/dist/safe-bash-presentation-engine/charts.js +31 -30
  201. package/dist/safe-bash-presentation-engine/command-placeholder.js +59 -56
  202. package/dist/safe-bash-presentation-engine/comments.js +17 -16
  203. package/dist/safe-bash-presentation-engine/connector-operations.js +32 -31
  204. package/dist/safe-bash-presentation-engine/connectors.js +29 -28
  205. package/dist/safe-bash-presentation-engine/content-types.js +4 -4
  206. package/dist/safe-bash-presentation-engine/creation.js +6 -6
  207. package/dist/safe-bash-presentation-engine/diff.js +32 -31
  208. package/dist/safe-bash-presentation-engine/drawing-enums.d.ts +10 -10
  209. package/dist/safe-bash-presentation-engine/drawing-format.js +20 -19
  210. package/dist/safe-bash-presentation-engine/drawing-operations.js +31 -30
  211. package/dist/safe-bash-presentation-engine/drawing-schema.js +21 -20
  212. package/dist/safe-bash-presentation-engine/equations.js +17 -16
  213. package/dist/safe-bash-presentation-engine/errors.js +2 -2
  214. package/dist/safe-bash-presentation-engine/fields.js +17 -16
  215. package/dist/safe-bash-presentation-engine/font-metrics.js +3 -3
  216. package/dist/safe-bash-presentation-engine/image-extraction.js +20 -19
  217. package/dist/safe-bash-presentation-engine/image-formatting.js +32 -31
  218. package/dist/safe-bash-presentation-engine/image-insertion.js +18 -17
  219. package/dist/safe-bash-presentation-engine/image-replacement.js +21 -20
  220. package/dist/safe-bash-presentation-engine/image-value.js +4 -4
  221. package/dist/safe-bash-presentation-engine/images.js +19 -18
  222. package/dist/safe-bash-presentation-engine/index.d.ts +5 -1
  223. package/dist/safe-bash-presentation-engine/index.js +109 -96
  224. package/dist/safe-bash-presentation-engine/layouts.js +16 -15
  225. package/dist/safe-bash-presentation-engine/length.js +3 -3
  226. package/dist/safe-bash-presentation-engine/links.js +16 -15
  227. package/dist/safe-bash-presentation-engine/masters.js +15 -14
  228. package/dist/safe-bash-presentation-engine/media-editing.js +24 -23
  229. package/dist/safe-bash-presentation-engine/media-extraction.js +17 -16
  230. package/dist/safe-bash-presentation-engine/media.js +16 -15
  231. package/dist/safe-bash-presentation-engine/memberships.js +15 -14
  232. package/dist/safe-bash-presentation-engine/notes.js +16 -15
  233. package/dist/safe-bash-presentation-engine/ole-enum.js +4 -4
  234. package/dist/safe-bash-presentation-engine/ole-insertion.js +20 -19
  235. package/dist/safe-bash-presentation-engine/opaque-objects.js +9 -9
  236. package/dist/safe-bash-presentation-engine/package-reader.js +5 -5
  237. package/dist/safe-bash-presentation-engine/package-tools.d.ts +3 -0
  238. package/dist/safe-bash-presentation-engine/package-tools.js +27 -17
  239. package/dist/safe-bash-presentation-engine/package-uri.js +3 -3
  240. package/dist/safe-bash-presentation-engine/package-writer.js +4 -4
  241. package/dist/safe-bash-presentation-engine/presentation-model.js +58 -55
  242. package/dist/safe-bash-presentation-engine/presentation-settings.js +14 -13
  243. package/dist/safe-bash-presentation-engine/properties.js +16 -15
  244. package/dist/safe-bash-presentation-engine/relationships.js +4 -4
  245. package/dist/safe-bash-presentation-engine/resource-limits.js +1 -1
  246. package/dist/safe-bash-presentation-engine/retained-archive-staging.d.ts +19 -0
  247. package/dist/safe-bash-presentation-engine/retained-extraction-output.d.ts +18 -0
  248. package/dist/safe-bash-presentation-engine/retained-inspection.js +14 -12
  249. package/dist/safe-bash-presentation-engine/retained-package-extraction.d.ts +22 -0
  250. package/dist/safe-bash-presentation-engine/retained-package-packing.d.ts +19 -0
  251. package/dist/safe-bash-presentation-engine/retained-package.d.ts +2 -0
  252. package/dist/safe-bash-presentation-engine/retained-package.js +6 -4
  253. package/dist/safe-bash-presentation-engine/retained-text.js +19 -17
  254. package/dist/safe-bash-presentation-engine/retained-xml-parts.d.ts +5 -1
  255. package/dist/safe-bash-presentation-engine/retained-xml-publication.d.ts +18 -0
  256. package/dist/safe-bash-presentation-engine/retained-xml-replacement.d.ts +13 -0
  257. package/dist/safe-bash-presentation-engine/sanitize.js +17 -16
  258. package/dist/safe-bash-presentation-engine/selectors.js +10 -10
  259. package/dist/safe-bash-presentation-engine/shape-groups.js +31 -30
  260. package/dist/safe-bash-presentation-engine/shape-operations.js +30 -29
  261. package/dist/safe-bash-presentation-engine/shape-path-operations.js +32 -31
  262. package/dist/safe-bash-presentation-engine/shape-paths.js +16 -15
  263. package/dist/safe-bash-presentation-engine/shape-presets.js +3 -3
  264. package/dist/safe-bash-presentation-engine/shape-selection.js +31 -30
  265. package/dist/safe-bash-presentation-engine/shape-transforms.js +18 -17
  266. package/dist/safe-bash-presentation-engine/shapes.d.ts +1 -1
  267. package/dist/safe-bash-presentation-engine/shapes.js +27 -26
  268. package/dist/safe-bash-presentation-engine/slide-copy.js +17 -16
  269. package/dist/safe-bash-presentation-engine/slide-import.js +18 -17
  270. package/dist/safe-bash-presentation-engine/slide-merge-split.js +20 -19
  271. package/dist/safe-bash-presentation-engine/slide-model.js +43 -42
  272. package/dist/safe-bash-presentation-engine/slide-removal.js +18 -17
  273. package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +9 -9
  274. package/dist/safe-bash-presentation-engine/slides.js +19 -16
  275. package/dist/safe-bash-presentation-engine/table-operations.js +33 -32
  276. package/dist/safe-bash-presentation-engine/table-spans.js +32 -31
  277. package/dist/safe-bash-presentation-engine/tables.js +31 -30
  278. package/dist/safe-bash-presentation-engine/tags.js +16 -15
  279. package/dist/safe-bash-presentation-engine/template-bindings.js +33 -32
  280. package/dist/safe-bash-presentation-engine/template-repeat.js +40 -39
  281. package/dist/safe-bash-presentation-engine/text-fitting.js +27 -26
  282. package/dist/safe-bash-presentation-engine/text-frames.js +27 -26
  283. package/dist/safe-bash-presentation-engine/text-paragraphs.js +27 -26
  284. package/dist/safe-bash-presentation-engine/text-reading.js +11 -11
  285. package/dist/safe-bash-presentation-engine/text-replacement.js +17 -16
  286. package/dist/safe-bash-presentation-engine/text-runs.js +20 -19
  287. package/dist/safe-bash-presentation-engine/themes.js +16 -15
  288. package/dist/safe-bash-presentation-engine/transitions.js +16 -15
  289. package/dist/safe-bash-presentation-engine/validation.js +10 -9
  290. package/dist/safe-bash-presentation-engine/xml-parts.d.ts +2 -0
  291. package/dist/safe-bash-presentation-engine/xml-parts.js +23 -15
  292. package/dist/safe-bash-presentation-engine/xml-view.js +3 -3
  293. package/dist/safe-bash-presentation-engine/xml.js +3 -3
  294. package/dist/safe-bash-regex-engine/index.js +1 -1
  295. package/dist/safe-bash-regex-engine/python-glob.js +1 -1
  296. package/dist/safe-bash-regex-engine/text/regex.d.ts +19 -0
  297. package/dist/safe-bash-regex-engine/text/regex.js +1 -1
  298. package/dist/safe-bash-xml-engine/document.js +3 -3
  299. package/dist/safe-bash-xml-engine/evaluate.js +1 -1
  300. package/dist/safe-bash-xml-engine/index.d.ts +1 -0
  301. package/dist/safe-bash-xml-engine/index.js +8 -4
  302. package/dist/safe-bash-xml-engine/query.js +2 -2
  303. package/dist/safe-bash-xml-engine/recovery.d.ts +10 -0
  304. package/dist/safe-bash-xml-engine/stored-document.d.ts +1 -1
  305. package/dist/safe-bash-xml-engine/stored-document.js +1 -1
  306. package/dist/safe-bash-xml-engine/stored-evaluate.js +1 -1
  307. package/dist/spreadsheet-engine/formulas/functions/python-printf.js +56 -33
  308. package/dist/spreadsheet-format-xls/biff-encrypted-properties.d.ts +1 -1
  309. package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +47 -18
  310. package/dist/spreadsheet-format-xls/biff-properties-merge.d.ts +6 -2
  311. package/dist/spreadsheet-format-xls/biff-properties-merge.js +413 -296
  312. package/dist/spreadsheet-format-xls/biff-properties-write.js +40 -23
  313. package/dist/spreadsheet-format-xls/biff-properties.js +3 -68
  314. package/dist/spreadsheet-format-xls/biff-property-index.d.ts +23 -0
  315. package/dist/spreadsheet-format-xls/biff-property-index.js +93 -0
  316. package/dist/spreadsheet-format-xls/biff-property-name.d.ts +4 -0
  317. package/dist/spreadsheet-format-xls/biff-property-name.js +114 -0
  318. package/dist/spreadsheet-format-xls/biff-property-text.d.ts +6 -0
  319. package/dist/spreadsheet-format-xls/biff-property-text.js +68 -0
  320. package/dist/spreadsheet-format-xls/biff-property-transcode.d.ts +5 -0
  321. package/dist/spreadsheet-format-xls/biff-property-transcode.js +45 -0
  322. package/package.json +6 -3
  323. package/dist/safe-bash/command-chunks/biff-YKPDH35C-MVQIWNKV.js +0 -4974
  324. package/dist/safe-bash/command-chunks/chunk-5Q22ZLNC.js +0 -127
  325. package/dist/safe-bash/command-chunks/chunk-JKLOBSMP.js +0 -56
  326. package/dist/safe-bash/command-chunks/chunk-JYTESTBS.js +0 -99
  327. package/dist/safe-bash/command-chunks/chunk-ZEGNRZV2.js +0 -333
  328. package/dist/safe-bash/command-chunks/paradox-ZWWXYY4J-JYOSWSBL.js +0 -362
  329. package/dist/spreadsheet-format-xls/biff-properties-layout.js +0 -56
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  parseUnified,
3
3
  parseUnifiedSection
4
- } from "./chunk-MOZD7RUY.js";
4
+ } from "./chunk-JORIVUPM.js";
5
5
  import {
6
6
  decodeHeaderPath
7
7
  } from "./chunk-AJEQUVDN.js";
@@ -10,15 +10,23 @@ import {
10
10
  import { ToolError, integer } from "../../safe-bash-diff-engine/shared.js";
11
11
  import { byteLength } from "../../safe-bash-io-engine/byte-encoding.js";
12
12
  var Reader = class {
13
- constructor(text, budget) {
13
+ constructor(input, budget, admit = true) {
14
14
  this.budget = budget;
15
- this.lines = budget.split(text).map((line) => line.slice(0, -1));
15
+ if (typeof input === "string") {
16
+ const lines = budget.split(input).map((line) => line.slice(0, -1));
17
+ this.input = { length: lines.length, async read(index) {
18
+ return lines[index];
19
+ } };
20
+ } else {
21
+ if (admit) budget.countLines(input.length);
22
+ this.input = input;
23
+ }
16
24
  }
17
25
  budget;
18
- lines;
26
+ input;
19
27
  index = 0;
20
28
  peek() {
21
- return this.lines[this.index];
29
+ return this.input.read(this.index);
22
30
  }
23
31
  async take() {
24
32
  this.budget.step();
@@ -26,7 +34,7 @@ var Reader = class {
26
34
  const c = this.budget.checkpoint();
27
35
  if (c) await c;
28
36
  }
29
- const line = this.lines[this.index++];
37
+ const line = await this.input.read(this.index++);
30
38
  if (line === void 0) throw new ToolError("truncated patch");
31
39
  return line;
32
40
  }
@@ -40,7 +48,7 @@ var Reader = class {
40
48
  if (line !== prefix && !(prefix === " " && line === "") && !line.startsWith(`${prefix} `) && !line.startsWith(`${prefix} `)) throw new ToolError("malformed patch body prefix");
41
49
  let text = `${line.slice(2)}
42
50
  `;
43
- if (this.peek() === "\") {
51
+ if (await this.peek() === "\") {
44
52
  await this.take();
45
53
  if (text === "\n") throw new ToolError("empty incomplete line is not a valid text line");
46
54
  text = text.slice(0, -1);
@@ -51,17 +59,17 @@ var Reader = class {
51
59
  function encoded(line) {
52
60
  return `${line.kind}${line.text}${line.text.endsWith("\n") ? "" : "\n\\n"}`;
53
61
  }
54
- async function normal(reader, target) {
62
+ async function* normal(reader, target) {
55
63
  const quoted = JSON.stringify(target ?? "/dev/null");
56
- const output = [`--- ${quoted}
64
+ yield `--- ${quoted}
57
65
  +++ ${quoted}
58
- `];
59
- while (reader.peek() !== void 0) {
60
- if (reader.peek() === "") {
66
+ `;
67
+ while (await reader.peek() !== void 0) {
68
+ if (await reader.peek() === "") {
61
69
  await reader.take();
62
70
  continue;
63
71
  }
64
- if (!/^\d/u.test(reader.peek())) break;
72
+ if (!/^\d/u.test(await reader.peek())) break;
65
73
  const command = /^(\d+)(?:,(\d+))?([acd])(\d+)(?:,(\d+))?$/u.exec(await reader.take());
66
74
  if (!command) throw new ToolError("malformed normal patch command");
67
75
  const oldStart = reader.number(command[1]);
@@ -72,13 +80,12 @@ async function normal(reader, target) {
72
80
  if (oldLast < oldStart || newLast < newStart || operation === "a" && command[2] !== void 0 || operation === "d" && command[5] !== void 0) throw new ToolError("invalid normal patch range");
73
81
  const oldCount = operation === "a" ? 0 : oldLast - oldStart + 1;
74
82
  const newCount = operation === "d" ? 0 : newLast - newStart + 1;
75
- output.push(`@@ -${oldStart},${oldCount} +${newStart},${newCount} @@
76
- `);
77
- for (let index = 0; index < oldCount; index++) output.push(encoded({ kind: "-", text: await reader.content("<") }));
83
+ yield `@@ -${oldStart},${oldCount} +${newStart},${newCount} @@
84
+ `;
85
+ for (let index = 0; index < oldCount; index++) yield encoded({ kind: "-", text: await reader.content("<") });
78
86
  if (operation === "c" && await reader.take() !== "---") throw new ToolError("missing normal change separator");
79
- for (let index = 0; index < newCount; index++) output.push(encoded({ kind: "+", text: await reader.content(">") }));
87
+ for (let index = 0; index < newCount; index++) yield encoded({ kind: "+", text: await reader.content(">") });
80
88
  }
81
- return output.join("");
82
89
  }
83
90
  async function contextRange(reader, old) {
84
91
  const line = await reader.take();
@@ -90,19 +97,34 @@ async function contextRange(reader, old) {
90
97
  return { start, last, multiple: match[2] !== void 0 };
91
98
  }
92
99
  async function contextSide(reader, old, range) {
93
- const lines = [];
100
+ const start = reader.index;
101
+ let length = 0, common = 0, changed = false, incomplete = false;
94
102
  const count = range.start === 0 ? 0 : range.last - range.start + 1;
95
- while (reader.peek() !== void 0 && lines.length < count) {
96
- const kind = reader.peek() === "" ? " " : reader.peek()[0];
103
+ while (await reader.peek() !== void 0 && length < count) {
104
+ const kind = await reader.peek() === "" ? " " : (await reader.peek())[0];
97
105
  if (kind !== " " && kind !== "!" && kind !== (old ? "-" : "+")) break;
98
- if (old && /^--- \d+(?:,\d+)? ----$/u.test(reader.peek())) break;
99
- lines.push({ kind, text: await reader.content(kind) });
100
- if (lines.length > reader.budget.limits.maxLines) throw new ToolError("context body line limit exceeded");
106
+ if (old && /^--- \d+(?:,\d+)? ----$/u.test(await reader.peek())) break;
107
+ const text = await reader.content(kind);
108
+ incomplete = !text.endsWith("\n");
109
+ length++;
110
+ if (kind === " ") common++;
111
+ changed ||= kind === "!";
112
+ if (length > reader.budget.limits.maxLines) throw new ToolError("context body line limit exceeded");
101
113
  }
102
- if (!old && lines.length === count && lines.at(-1)?.text.endsWith("\n") === false) {
103
- while (reader.peek() === "\") await reader.take();
114
+ if (!old && length === count && incomplete) {
115
+ while (await reader.peek() === "\") await reader.take();
116
+ }
117
+ return { start, records: length, length, common, changed };
118
+ }
119
+ async function* contextLines(reader, side) {
120
+ const replay = new Reader(reader.input, reader.budget, false);
121
+ replay.index = side.start;
122
+ for (let index = 0; index < side.records; index++) {
123
+ const prefix = await replay.peek();
124
+ const kind = prefix === "" ? " " : prefix[0];
125
+ const text = await replay.content(kind);
126
+ if (!side.commonOnly || kind === " ") yield { kind, text };
104
127
  }
105
- return lines;
106
128
  }
107
129
  function contextCount(range, lines) {
108
130
  if (!lines.length) {
@@ -112,24 +134,23 @@ function contextCount(range, lines) {
112
134
  if (range.start === 0 || lines.length !== range.last - range.start + 1) throw new ToolError("context body count does not match range");
113
135
  return lines.length;
114
136
  }
115
- async function context(reader) {
116
- const output = [];
117
- while (reader.peek() !== void 0) {
137
+ async function* context(reader) {
138
+ while (await reader.peek() !== void 0) {
118
139
  const header = await reader.take();
119
140
  if (header === "") continue;
120
141
  if (/^diff -[^ ]+ /u.test(header)) {
121
- output.push(`${header}
122
- `);
142
+ yield `${header}
143
+ `;
123
144
  continue;
124
145
  }
125
146
  if (!header.startsWith("*** ")) throw new ToolError("expected context file header");
126
147
  const next = await reader.take();
127
148
  if (!next.startsWith("--- ")) throw new ToolError("expected new context file header");
128
- output.push(`--- ${header.slice(4)}
149
+ yield `--- ${header.slice(4)}
129
150
  +++ ${next.slice(4)}
130
- `);
151
+ `;
131
152
  let hunks = 0;
132
- while (reader.peek()?.startsWith("***************")) {
153
+ while ((await reader.peek())?.startsWith("***************")) {
133
154
  const delimiter = await reader.take();
134
155
  if (!/^\*{15}(?: .*)?$/u.test(delimiter)) throw new ToolError("malformed context hunk separator");
135
156
  if (++hunks > reader.budget.limits.maxHunks) throw new ToolError("hunk limit exceeded");
@@ -138,82 +159,85 @@ async function context(reader) {
138
159
  const newRange = await contextRange(reader, false);
139
160
  let newLines = await contextSide(reader, false, newRange);
140
161
  if (!oldLines.length) {
141
- if (newLines.some((line) => line.kind === "!")) throw new ToolError("missing old changed context body");
142
- oldLines = newLines.filter((line) => line.kind === " ");
162
+ if (newLines.changed) throw new ToolError("missing old changed context body");
163
+ oldLines = { ...newLines, length: newLines.common, commonOnly: true };
143
164
  }
144
165
  if (!newLines.length) {
145
- if (oldLines.some((line) => line.kind === "!")) throw new ToolError("missing new changed context body");
146
- newLines = oldLines.filter((line) => line.kind === " ");
166
+ if (oldLines.changed) throw new ToolError("missing new changed context body");
167
+ newLines = { ...oldLines, length: oldLines.common, commonOnly: true };
147
168
  }
148
169
  const oldCount = contextCount(oldRange, oldLines);
149
170
  const newCount = contextCount(newRange, newLines);
150
- output.push(`@@ -${oldRange.start},${oldCount} +${newRange.start},${newCount} @@${delimiter.slice(15)}
151
- `);
152
- let oldIndex = 0;
153
- let newIndex = 0;
154
- while (oldIndex < oldLines.length || newIndex < newLines.length) {
155
- let oldChanged = false;
156
- let newChanged = false;
157
- while (oldIndex < oldLines.length && oldLines[oldIndex].kind !== " ") {
158
- const line = oldLines[oldIndex++];
159
- oldChanged ||= line.kind === "!";
160
- output.push(encoded({ kind: "-", text: line.text }));
161
- reader.budget.step();
162
- {
163
- const c = reader.budget.checkpoint();
164
- if (c) await c;
171
+ yield `@@ -${oldRange.start},${oldCount} +${newRange.start},${newCount} @@${delimiter.slice(15)}
172
+ `;
173
+ const oldIterator = contextLines(reader, oldLines), newIterator = contextLines(reader, newLines);
174
+ try {
175
+ let oldLine = await oldIterator.next(), newLine = await newIterator.next();
176
+ while (!oldLine.done || !newLine.done) {
177
+ let oldChanged = false, newChanged = false;
178
+ while (!oldLine.done && oldLine.value.kind !== " ") {
179
+ oldChanged ||= oldLine.value.kind === "!";
180
+ yield encoded({ kind: "-", text: oldLine.value.text });
181
+ reader.budget.step();
182
+ {
183
+ const c = reader.budget.checkpoint();
184
+ if (c) await c;
185
+ }
186
+ oldLine = await oldIterator.next();
165
187
  }
166
- }
167
- while (newIndex < newLines.length && newLines[newIndex].kind !== " ") {
168
- const line = newLines[newIndex++];
169
- newChanged ||= line.kind === "!";
170
- output.push(encoded({ kind: "+", text: line.text }));
171
- reader.budget.step();
172
- {
173
- const c = reader.budget.checkpoint();
174
- if (c) await c;
188
+ while (!newLine.done && newLine.value.kind !== " ") {
189
+ newChanged ||= newLine.value.kind === "!";
190
+ yield encoded({ kind: "+", text: newLine.value.text });
191
+ reader.budget.step();
192
+ {
193
+ const c = reader.budget.checkpoint();
194
+ if (c) await c;
195
+ }
196
+ newLine = await newIterator.next();
197
+ }
198
+ if (oldChanged !== newChanged) throw new ToolError("unpaired changed context group");
199
+ if (!oldLine.done || !newLine.done) {
200
+ if (oldLine.done || newLine.done || !reader.budget.equal(oldLine.value.text, newLine.value.text)) throw new ToolError("context halves disagree");
201
+ yield encoded({ kind: " ", text: oldLine.value.text });
202
+ oldLine = await oldIterator.next();
203
+ newLine = await newIterator.next();
175
204
  }
176
205
  }
177
- if (oldChanged !== newChanged) throw new ToolError("unpaired changed context group");
178
- if (oldIndex < oldLines.length || newIndex < newLines.length) {
179
- const oldLine = oldLines[oldIndex++];
180
- const newLine = newLines[newIndex++];
181
- if (!oldLine || !newLine || !reader.budget.equal(oldLine.text, newLine.text)) throw new ToolError("context halves disagree");
182
- output.push(encoded({ kind: " ", text: oldLine.text }));
183
- }
206
+ } finally {
207
+ await oldIterator.return(void 0);
208
+ await newIterator.return(void 0);
184
209
  }
185
210
  }
186
211
  if (!hunks) throw new ToolError("context file patch has no hunks");
187
212
  break;
188
213
  }
189
- return output.join("");
190
214
  }
191
- async function parsePatch(text, budget, format, target, progress) {
192
- if (text && !text.endsWith("\n")) throw new ToolError("patch is truncated: missing final LF");
215
+ async function parsePatch(text, budget, format, target, progress, convert) {
216
+ if (typeof text === "string" && text && !text.endsWith("\n")) throw new ToolError("patch is truncated: missing final LF");
193
217
  const reader = new Reader(text, budget);
194
218
  const patches = [];
195
219
  let convertedBytes = 0;
196
- while (reader.peek() !== void 0) {
220
+ while (await reader.peek() !== void 0) {
197
221
  try {
198
- if (reader.peek() === "") {
222
+ if (await reader.peek() === "") {
199
223
  await reader.take();
200
224
  continue;
201
225
  }
202
- if (!progress && patches.length && reader.peek().startsWith("-") && !reader.peek().startsWith("---")) {
226
+ if (!progress && patches.length && (await reader.peek()).startsWith("-") && !(await reader.peek()).startsWith("---")) {
203
227
  throw new ToolError("unexpected deletion outside a patch hunk");
204
228
  }
205
- if (patches.length && !/^(?:Index: |diff |index |---|\*\*\*|@@|[+\\<>]|\d)/u.test(reader.peek())) {
229
+ if (patches.length && !/^(?:Index: |diff |index |---|\*\*\*|@@|[+\\<>]|\d)/u.test(await reader.peek())) {
206
230
  await reader.take();
207
231
  continue;
208
232
  }
209
233
  let indexPath;
210
- if (reader.peek()?.startsWith("Index: ")) {
234
+ if ((await reader.peek())?.startsWith("Index: ")) {
211
235
  indexPath = decodeHeaderPath((await reader.take()).slice(7));
212
- if (/^=+$/u.test(reader.peek() ?? "")) await reader.take();
236
+ if (/^=+$/u.test(await reader.peek() ?? "")) await reader.take();
213
237
  }
214
238
  const start = reader.index;
215
- while (/^diff /u.test(reader.peek() ?? "")) await reader.take();
216
- const first = reader.peek() ?? "";
239
+ while (/^diff /u.test(await reader.peek() ?? "")) await reader.take();
240
+ const first = await reader.peek() ?? "";
217
241
  const detected = first.startsWith("*** ") ? "context" : /^\d/u.test(first) ? "normal" : "unified";
218
242
  if (format && detected !== format) throw new ToolError(`patch format is ${detected}, not requested ${format}`);
219
243
  if (detected === "unified") {
@@ -221,10 +245,22 @@ async function parsePatch(text, budget, format, target, progress) {
221
245
  patches.push(...(await parseUnifiedSection(reader, budget)).map((patch) => ({ ...patch, ...indexPath === void 0 ? {} : { indexPath } })));
222
246
  } else {
223
247
  if (detected === "context") reader.index = start;
224
- const converted = detected === "normal" ? await normal(reader, target ?? indexPath) : await context(reader);
225
- convertedBytes += byteLength(converted);
226
- if (convertedBytes > budget.limits.maxInputBytes * 2 + 16384) throw new ToolError("converted patch byte limit exceeded");
227
- patches.push(...(await parseUnified(converted, budget)).map((patch) => ({
248
+ const source = detected === "normal" ? normal(reader, target ?? indexPath) : context(reader);
249
+ const converted = { async *[Symbol.asyncIterator]() {
250
+ for await (const chunk of source) {
251
+ convertedBytes += byteLength(chunk);
252
+ yield chunk;
253
+ }
254
+ if (convertedBytes > budget.limits.maxInputBytes * 2 + 16384) throw new ToolError("converted patch byte limit exceeded");
255
+ } };
256
+ let parsed;
257
+ if (convert) parsed = await convert(converted);
258
+ else {
259
+ const chunks = [];
260
+ for await (const chunk of converted) chunks.push(chunk);
261
+ parsed = await parseUnified(chunks.join(""), budget);
262
+ }
263
+ patches.push(...parsed.map((patch) => ({
228
264
  ...patch,
229
265
  format: detected,
230
266
  ...indexPath === void 0 ? {} : { indexPath },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OfficeError
3
- } from "./chunk-Q73EMLLZ.js";
3
+ } from "./chunk-X6RHJ6YN.js";
4
4
 
5
5
  // packages/safe-bash-presentation-engine/src/errors.ts
6
6
  var InvalidHandleError = class extends OfficeError {
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  escape
3
- } from "./chunk-56NYSX65.js";
3
+ } from "./chunk-2Z3WRRFT.js";
4
4
  import {
5
5
  writePackageArchive
6
- } from "./chunk-DM2CPMB4.js";
6
+ } from "./chunk-HKOMXGJS.js";
7
7
  import {
8
8
  buildSelectionIndex,
9
9
  readSelectionIndex
10
- } from "./chunk-X7FA7ZD5.js";
10
+ } from "./chunk-O675URF4.js";
11
11
  import {
12
12
  readPackage
13
- } from "./chunk-XPD636C4.js";
13
+ } from "./chunk-PVGZMLC6.js";
14
14
  import {
15
15
  readBinary
16
- } from "./chunk-PNGDJA6M.js";
16
+ } from "./chunk-LD7BONZY.js";
17
17
  import {
18
18
  parseXmlPart
19
- } from "./chunk-554Z6IKP.js";
19
+ } from "./chunk-7PRL6RJ6.js";
20
20
  import {
21
21
  parseContentTypes
22
- } from "./chunk-WJCN2IXI.js";
22
+ } from "./chunk-VQOINPVF.js";
23
23
  import {
24
24
  readRelationshipGraph
25
- } from "./chunk-ZMHEGDU2.js";
25
+ } from "./chunk-TODWFDYB.js";
26
26
  import {
27
27
  relativePartReference
28
- } from "./chunk-36XGIPOG.js";
28
+ } from "./chunk-U5TWQFZY.js";
29
29
  import {
30
30
  OfficeError
31
- } from "./chunk-Q73EMLLZ.js";
31
+ } from "./chunk-X6RHJ6YN.js";
32
32
 
33
33
  // packages/safe-bash-presentation-engine/src/links.ts
34
34
  var dialects = [
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  dashPresets,
3
3
  patternPresets
4
- } from "./chunk-QYMEASQ6.js";
4
+ } from "./chunk-BEHUSUOY.js";
5
5
  import {
6
6
  themeColorSlots
7
- } from "./chunk-RHYJVTJO.js";
7
+ } from "./chunk-5KGEZ3RW.js";
8
8
 
9
9
  // packages/safe-bash-presentation-engine/src/drawing-schema.ts
10
10
  var ratio = { type: "number", minimum: 0, maximum: 1 };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Builder
3
- } from "./chunk-AGLK7OJR.js";
3
+ } from "./chunk-HDSIIQBS.js";
4
4
 
5
- // packages/safe-bash-command-html-to-markdown/src/text.ts
5
+ // packages/safe-bash-command-html-to-markdown/dist/chunk-NX7FWHIP.js
6
6
  var htmlSpace = (character) => character === " " || character === " " || character === "\r" || character === "\n" || character === "\f";
7
7
  async function trimText(text, budget) {
8
8
  let start = 0, end = text.length;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Emu
3
- } from "./chunk-6QBMND4A.js";
3
+ } from "./chunk-6SRHWVEB.js";
4
4
 
5
5
  // packages/safe-bash-presentation-engine/src/ole-enum.ts
6
6
  var PROG_ID = Object.freeze({
@@ -3,25 +3,25 @@ import {
3
3
  createShapeXml,
4
4
  readShape,
5
5
  validateShapeOptions
6
- } from "./chunk-IT7TAC3F.js";
6
+ } from "./chunk-HVW53ARH.js";
7
7
  import {
8
8
  ShapeIdAllocator
9
- } from "./chunk-WXRYDALR.js";
9
+ } from "./chunk-BBAB7LC4.js";
10
10
  import {
11
11
  readShapeGeometry
12
- } from "./chunk-YSMNXMAO.js";
12
+ } from "./chunk-3Y4XZB24.js";
13
13
  import {
14
14
  attr,
15
15
  child,
16
16
  loadShared,
17
17
  required
18
- } from "./chunk-56NYSX65.js";
18
+ } from "./chunk-2Z3WRRFT.js";
19
19
  import {
20
20
  SelectionError
21
- } from "./chunk-X7FA7ZD5.js";
21
+ } from "./chunk-O675URF4.js";
22
22
  import {
23
23
  OfficeError
24
- } from "./chunk-Q73EMLLZ.js";
24
+ } from "./chunk-X6RHJ6YN.js";
25
25
 
26
26
  // packages/safe-bash-presentation-engine/src/shape-operations.ts
27
27
  function validateSelection(options, action) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-UPXFSGQG.js";
4
4
  import {
5
5
  OfficeError
6
- } from "./chunk-Q73EMLLZ.js";
6
+ } from "./chunk-X6RHJ6YN.js";
7
7
  import {
8
8
  crc32
9
9
  } from "./chunk-IOEUZ4EA.js";
@@ -1,58 +1,58 @@
1
1
  import {
2
2
  validateXmlPartReplacement,
3
3
  validateXmlViewReplacement
4
- } from "./chunk-KJ4XXZIL.js";
4
+ } from "./chunk-M3Z5PU2M.js";
5
5
  import {
6
6
  Slide,
7
7
  Slides,
8
8
  indexed,
9
9
  preservePlaceholder,
10
10
  reparentInsertedAsset
11
- } from "./chunk-ATTWQVR2.js";
11
+ } from "./chunk-TKRLZIFI.js";
12
12
  import {
13
13
  Chart,
14
14
  insertChartIntoState,
15
15
  inspectWorkbook,
16
16
  replaceChartData
17
- } from "./chunk-LXLLA4PM.js";
17
+ } from "./chunk-MKX4JAZ6.js";
18
18
  import {
19
19
  createPresentation
20
- } from "./chunk-SPLOIABU.js";
20
+ } from "./chunk-YXD6VGVG.js";
21
21
  import {
22
22
  addOleObject
23
- } from "./chunk-EUT24Y5Z.js";
23
+ } from "./chunk-NKTULXVD.js";
24
24
  import {
25
25
  createLiveLinkSession,
26
26
  isOrdinaryLinkUrl
27
- } from "./chunk-Y4EYCZFT.js";
27
+ } from "./chunk-D6WJY6QO.js";
28
28
  import {
29
29
  applyPresentationCanvasSettings
30
- } from "./chunk-PMAM4N33.js";
30
+ } from "./chunk-JUJHYPYL.js";
31
31
  import {
32
32
  prepareSlideInsertion
33
- } from "./chunk-NARD63DY.js";
33
+ } from "./chunk-2V6FOLXV.js";
34
34
  import {
35
35
  CoreProperties,
36
36
  createPropertyPart
37
- } from "./chunk-6M6TM5Z5.js";
37
+ } from "./chunk-5VQVZPP3.js";
38
38
  import {
39
39
  Image
40
- } from "./chunk-B5LDP7AA.js";
40
+ } from "./chunk-S2N2V5U4.js";
41
41
  import {
42
42
  addMedia
43
- } from "./chunk-7GKKMNL6.js";
43
+ } from "./chunk-5P6I2T63.js";
44
44
  import {
45
45
  addImage
46
- } from "./chunk-KCOJA7EM.js";
46
+ } from "./chunk-GKILM4HZ.js";
47
47
  import {
48
48
  readShape
49
- } from "./chunk-IT7TAC3F.js";
49
+ } from "./chunk-HVW53ARH.js";
50
50
  import {
51
51
  createXmlElementView
52
- } from "./chunk-4CKFNXRN.js";
52
+ } from "./chunk-5IFRAI7Y.js";
53
53
  import {
54
54
  Length
55
- } from "./chunk-6QBMND4A.js";
55
+ } from "./chunk-6SRHWVEB.js";
56
56
  import {
57
57
  attr,
58
58
  child,
@@ -60,46 +60,46 @@ import {
60
60
  loadShared,
61
61
  relPart,
62
62
  required
63
- } from "./chunk-56NYSX65.js";
63
+ } from "./chunk-2Z3WRRFT.js";
64
64
  import {
65
65
  writePackageArchive
66
- } from "./chunk-DM2CPMB4.js";
66
+ } from "./chunk-HKOMXGJS.js";
67
67
  import {
68
68
  buildSelectionIndex
69
- } from "./chunk-X7FA7ZD5.js";
69
+ } from "./chunk-O675URF4.js";
70
70
  import {
71
71
  readPackage
72
- } from "./chunk-XPD636C4.js";
72
+ } from "./chunk-PVGZMLC6.js";
73
73
  import {
74
74
  readBinary,
75
75
  writeBinary
76
- } from "./chunk-PNGDJA6M.js";
76
+ } from "./chunk-LD7BONZY.js";
77
77
  import {
78
78
  parseXmlPart
79
- } from "./chunk-554Z6IKP.js";
79
+ } from "./chunk-7PRL6RJ6.js";
80
80
  import {
81
81
  parseContentTypes
82
- } from "./chunk-WJCN2IXI.js";
82
+ } from "./chunk-VQOINPVF.js";
83
83
  import {
84
84
  parseRelationships,
85
85
  readRelationshipGraph
86
- } from "./chunk-ZMHEGDU2.js";
86
+ } from "./chunk-TODWFDYB.js";
87
87
  import {
88
88
  packageUri,
89
89
  partName,
90
90
  resolvePartReference
91
- } from "./chunk-36XGIPOG.js";
91
+ } from "./chunk-U5TWQFZY.js";
92
92
  import {
93
93
  IndexError,
94
94
  InvalidHandleError,
95
95
  PropertyAccessError,
96
96
  TypeError,
97
97
  ValueError
98
- } from "./chunk-S6R3IB36.js";
98
+ } from "./chunk-D55REQA3.js";
99
99
  import {
100
100
  OfficeError,
101
101
  resolveOfficeResources
102
- } from "./chunk-Q73EMLLZ.js";
102
+ } from "./chunk-X6RHJ6YN.js";
103
103
 
104
104
  // packages/safe-bash-presentation-engine/src/links-model.ts
105
105
  var values = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  InvalidXmlError,
3
3
  TypeError
4
- } from "./chunk-S6R3IB36.js";
4
+ } from "./chunk-D55REQA3.js";
5
5
 
6
6
  // packages/safe-bash-presentation-engine/src/xml-scalars.ts
7
7
  function numericToken(value) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  readImages
3
- } from "./chunk-GEM47B2P.js";
3
+ } from "./chunk-57DDYKE5.js";
4
4
  import {
5
5
  nodeFor
6
- } from "./chunk-TW73OXPR.js";
6
+ } from "./chunk-EJTNVXWF.js";
7
7
  import {
8
8
  applyShapeUpdate,
9
9
  validateShapeOptions
10
- } from "./chunk-IT7TAC3F.js";
10
+ } from "./chunk-HVW53ARH.js";
11
11
  import {
12
12
  attr,
13
13
  child,
@@ -15,13 +15,13 @@ import {
15
15
  invalid,
16
16
  loadShared,
17
17
  required
18
- } from "./chunk-56NYSX65.js";
18
+ } from "./chunk-2Z3WRRFT.js";
19
19
  import {
20
20
  SelectionError
21
- } from "./chunk-X7FA7ZD5.js";
21
+ } from "./chunk-O675URF4.js";
22
22
  import {
23
23
  OfficeError
24
- } from "./chunk-Q73EMLLZ.js";
24
+ } from "./chunk-X6RHJ6YN.js";
25
25
 
26
26
  // packages/safe-bash-presentation-engine/src/image-formatting.ts
27
27
  var sides = [