@poe-platform/safe-bash 0.1.809 → 0.1.811

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 (316) hide show
  1. package/dist/audio-ast/flac-source.d.ts +13 -0
  2. package/dist/audio-ast/index.d.ts +2 -1
  3. package/dist/audio-ast/index.js +254 -179
  4. package/dist/audio-ast/wav-source.d.ts +7 -1
  5. package/dist/image-ast/index.js +1 -1
  6. package/dist/json-ast/backed-json-parser.d.ts +12 -1
  7. package/dist/json-ast/index.d.ts +1 -1
  8. package/dist/office-xml/index.d.ts +1 -0
  9. package/dist/office-xml/retained-xml-edits.d.ts +22 -0
  10. package/dist/pdf-ast/cos/mutable-object-store.d.ts +3 -0
  11. package/dist/pdf-ast/cos/qpdf-json-document.d.ts +43 -0
  12. package/dist/pdf-ast/cos/qpdf-json-values.d.ts +7 -0
  13. package/dist/pdf-ast/index.d.ts +1 -0
  14. package/dist/pdf-ast/index.js +653 -87
  15. package/dist/pdf-ast/retained-document.d.ts +5 -1
  16. package/dist/safe-bash/audio-ast.browser.js +2 -1
  17. package/dist/safe-bash/chunks/{chunk-RQCK77SC.js → chunk-BUYRKFW2.js} +9 -36
  18. package/dist/safe-bash/chunks/{chunk-SOFBGDXG.js → chunk-HHSOUC3Z.js} +32 -0
  19. package/dist/safe-bash/chunks/{chunk-WAZEELYB.js → chunk-TPG55BAQ.js} +10 -7
  20. package/dist/safe-bash/command-chunks/biff-3EFLKBAH-NYWZOYQS.js +4942 -0
  21. package/dist/safe-bash/command-chunks/{chunk-HEHGHIE2.js → chunk-22MOB45U.js} +6 -6
  22. package/dist/safe-bash/command-chunks/{chunk-6DEWZMOL.js → chunk-2CORNDGF.js} +2 -2
  23. package/dist/safe-bash/command-chunks/{chunk-62ZAHKFS.js → chunk-2VCKUNDZ.js} +130 -14
  24. package/dist/safe-bash/command-chunks/{chunk-6UHGIWFX.js → chunk-2ZFLMWOX.js} +1 -1
  25. package/dist/safe-bash/command-chunks/{chunk-HONWGFDA.js → chunk-33YCKZZX.js} +6 -6
  26. package/dist/safe-bash/command-chunks/{chunk-AXWPJRY6.js → chunk-36XGIPOG.js} +1 -1
  27. package/dist/safe-bash/command-chunks/{chunk-32ADKP5E.js → chunk-456PHA3L.js} +1 -1
  28. package/dist/safe-bash/command-chunks/{chunk-UJXP3T6R.js → chunk-4CKFNXRN.js} +1 -1
  29. package/dist/safe-bash/command-chunks/{chunk-5L6GHFRW.js → chunk-554Z6IKP.js} +2 -2
  30. package/dist/safe-bash/command-chunks/{chunk-ORZRWT62.js → chunk-56NYSX65.js} +9 -9
  31. package/dist/safe-bash/command-chunks/{chunk-53JP3S6H.js → chunk-5HPU7D36.js} +4 -4
  32. package/dist/safe-bash/command-chunks/{chunk-NB7JO7FE.js → chunk-5LI2DLNZ.js} +26 -26
  33. package/dist/safe-bash/command-chunks/{chunk-YJJBGN7U.js → chunk-5MB64DWR.js} +9 -9
  34. package/dist/safe-bash/command-chunks/{chunk-3ZWBBS6U.js → chunk-5OO2P27R.js} +340 -34
  35. package/dist/safe-bash/command-chunks/{chunk-IC5GJI7E.js → chunk-5Q22ZLNC.js} +6 -6
  36. package/dist/safe-bash/command-chunks/{chunk-YO3V5RLY.js → chunk-6CCQI6XZ.js} +12 -12
  37. package/dist/safe-bash/command-chunks/{chunk-EO2IVGV7.js → chunk-6M6TM5Z5.js} +3 -3
  38. package/dist/safe-bash/command-chunks/{chunk-Z54Z3KRN.js → chunk-6QBMND4A.js} +1 -1
  39. package/dist/safe-bash/command-chunks/{chunk-INX4JMQ6.js → chunk-6VPQ3CDZ.js} +5 -5
  40. package/dist/safe-bash/command-chunks/chunk-72C3TZ2U.js +826 -0
  41. package/dist/safe-bash/command-chunks/{chunk-VGXVN3BX.js → chunk-7GKKMNL6.js} +8 -8
  42. package/dist/safe-bash/command-chunks/{chunk-TZJC67W3.js → chunk-7PVHO47B.js} +6 -6
  43. package/dist/safe-bash/command-chunks/{chunk-CM3C7AXJ.js → chunk-A2CLZMQZ.js} +1 -1
  44. package/dist/safe-bash/command-chunks/{chunk-ASR27KHW.js → chunk-A5FZBR7X.js} +4 -4
  45. package/dist/safe-bash/command-chunks/{chunk-DMDHE5KC.js → chunk-AHA6IWAJ.js} +6 -6
  46. package/dist/safe-bash/command-chunks/{chunk-PTZ55XXN.js → chunk-APEWTWCC.js} +6 -6
  47. package/dist/safe-bash/command-chunks/{chunk-YUVH6CE4.js → chunk-ATTWQVR2.js} +17 -17
  48. package/dist/safe-bash/command-chunks/{chunk-JON5DB3Z.js → chunk-B5LDP7AA.js} +2 -2
  49. package/dist/safe-bash/command-chunks/{chunk-CHJL6JMU.js → chunk-COKYZUBW.js} +1 -1
  50. package/dist/safe-bash/command-chunks/{chunk-KCTV4NVX.js → chunk-CRV2Q3PB.js} +1 -1
  51. package/dist/safe-bash/command-chunks/{chunk-V3WXPCKN.js → chunk-CV7M2QJU.js} +7 -7
  52. package/dist/safe-bash/command-chunks/{chunk-D7XBUF76.js → chunk-D2ASPM7R.js} +109 -23
  53. package/dist/safe-bash/command-chunks/{chunk-VPDSQPSN.js → chunk-DM2CPMB4.js} +2 -2
  54. package/dist/safe-bash/command-chunks/{chunk-3DTDMEOP.js → chunk-EAGIJ4VW.js} +1 -1
  55. package/dist/safe-bash/command-chunks/{chunk-WFDG3N5R.js → chunk-ECDEPKKW.js} +1 -1
  56. package/dist/safe-bash/command-chunks/{chunk-JW6CMBF2.js → chunk-EHSM5ZQS.js} +8 -8
  57. package/dist/safe-bash/command-chunks/{chunk-WIOH7ZQN.js → chunk-ENT3IV2G.js} +12 -12
  58. package/dist/safe-bash/command-chunks/{chunk-5IE4LJGB.js → chunk-EUT24Y5Z.js} +8 -8
  59. package/dist/safe-bash/command-chunks/{chunk-COKZFXHG.js → chunk-FIIAYCWS.js} +2 -2
  60. package/dist/safe-bash/command-chunks/{chunk-MWVFP2HY.js → chunk-GEM47B2P.js} +7 -7
  61. package/dist/safe-bash/command-chunks/{chunk-OQCJGUI6.js → chunk-HARUYHH7.js} +10 -10
  62. package/dist/safe-bash/command-chunks/{chunk-EHL6B34L.js → chunk-HDJVJTCK.js} +9 -9
  63. package/dist/safe-bash/command-chunks/{chunk-JMM3MNAY.js → chunk-HKATEVAP.js} +6 -6
  64. package/dist/safe-bash/command-chunks/{chunk-NVBUC644.js → chunk-HKGNBH7Z.js} +2 -2
  65. package/dist/safe-bash/command-chunks/{chunk-VWY3EAVQ.js → chunk-HTVIYLVB.js} +4 -4
  66. package/dist/safe-bash/command-chunks/{chunk-Z4QJMDK3.js → chunk-IT7TAC3F.js} +16 -16
  67. package/dist/safe-bash/command-chunks/{chunk-EWS4KYJE.js → chunk-JFYWVQ4V.js} +8 -8
  68. package/dist/safe-bash/command-chunks/{chunk-ZCX63QWA.js → chunk-JOCFI7TG.js} +1 -1
  69. package/dist/safe-bash/command-chunks/{chunk-F5WTH4O4.js → chunk-JQVHUSDD.js} +5 -5
  70. package/dist/safe-bash/command-chunks/{chunk-O4VJEGL6.js → chunk-K5GB2YMN.js} +10 -10
  71. package/dist/safe-bash/command-chunks/{chunk-27C3NT5V.js → chunk-KB7DUBVL.js} +5 -5
  72. package/dist/safe-bash/command-chunks/{chunk-4DZ32PI7.js → chunk-KCOJA7EM.js} +7 -7
  73. package/dist/safe-bash/command-chunks/{chunk-6OKH4X67.js → chunk-KJ4XXZIL.js} +273 -10
  74. package/dist/safe-bash/command-chunks/{chunk-GLVD3JJG.js → chunk-KL3OIBKB.js} +4712 -4654
  75. package/dist/safe-bash/command-chunks/{chunk-U6QHTC5J.js → chunk-L5MCW6CM.js} +4 -4
  76. package/dist/safe-bash/command-chunks/{chunk-LVL3A7YE.js → chunk-LCZDBW55.js} +5 -5
  77. package/dist/safe-bash/command-chunks/{chunk-DJVRDUCA.js → chunk-LXLLA4PM.js} +17 -17
  78. package/dist/safe-bash/command-chunks/{chunk-K7AGAS3K.js → chunk-M7QE2MN7.js} +6 -6
  79. package/dist/safe-bash/command-chunks/chunk-MGBHGZEX.js +12 -0
  80. package/dist/safe-bash/command-chunks/{chunk-SWT6ILF2.js → chunk-MPUHH2KR.js} +3 -3
  81. package/dist/safe-bash/command-chunks/{chunk-DC3OJLRB.js → chunk-NQDIT667.js} +5 -5
  82. package/dist/safe-bash/command-chunks/{chunk-LWZVDDJA.js → chunk-NUGQQDGE.js} +5 -1
  83. package/dist/safe-bash/command-chunks/{chunk-MFLQZLFR.js → chunk-OA75SGN2.js} +7 -7
  84. package/dist/safe-bash/command-chunks/{chunk-5LATYOF7.js → chunk-OEJM666F.js} +5 -5
  85. package/dist/safe-bash/command-chunks/{chunk-AF25YYIO.js → chunk-PMAM4N33.js} +9 -9
  86. package/dist/safe-bash/command-chunks/{chunk-4557HE3J.js → chunk-PMWW7KSB.js} +161 -42
  87. package/dist/safe-bash/command-chunks/{chunk-KMMAJ6H6.js → chunk-PNGDJA6M.js} +2 -2
  88. package/dist/safe-bash/command-chunks/{chunk-62BHPSKJ.js → chunk-Q6S57NOQ.js} +7 -7
  89. package/dist/safe-bash/command-chunks/{chunk-KJ3PEDI2.js → chunk-Q73EMLLZ.js} +146 -4
  90. package/dist/safe-bash/command-chunks/{chunk-FXKBM5KJ.js → chunk-QC5RMGSA.js} +3 -3
  91. package/dist/safe-bash/command-chunks/{chunk-UQ6UIZMM.js → chunk-QD7ZRDUN.js} +1 -1
  92. package/dist/safe-bash/command-chunks/{chunk-JHUYZZGV.js → chunk-QYMEASQ6.js} +4 -4
  93. package/dist/safe-bash/command-chunks/{chunk-3GY5VDIX.js → chunk-QZZ73J2O.js} +6 -6
  94. package/dist/safe-bash/command-chunks/{chunk-S2CYIGWH.js → chunk-R6EGGK5M.js} +7 -7
  95. package/dist/safe-bash/command-chunks/{chunk-7AVN3OBH.js → chunk-RHYJVTJO.js} +2 -2
  96. package/dist/safe-bash/command-chunks/{chunk-EWGDSO6U.js → chunk-RID6VYS3.js} +8 -8
  97. package/dist/safe-bash/command-chunks/{chunk-MMBRBANA.js → chunk-RNSKXOG3.js} +6 -6
  98. package/dist/safe-bash/command-chunks/{chunk-D3ZRZTY5.js → chunk-RQIQ75W5.js} +5 -5
  99. package/dist/safe-bash/command-chunks/{chunk-DWKQPLRT.js → chunk-RRL3Y562.js} +11 -11
  100. package/dist/safe-bash/command-chunks/{chunk-JW3KIZU6.js → chunk-RUXY7GN5.js} +1 -1
  101. package/dist/safe-bash/command-chunks/{chunk-NXCMXD74.js → chunk-S6R3IB36.js} +1 -1
  102. package/dist/safe-bash/command-chunks/{chunk-XUPKFHAQ.js → chunk-SDTPO2VV.js} +7 -7
  103. package/dist/safe-bash/command-chunks/{chunk-PIAGKRFW.js → chunk-SPLOIABU.js} +3 -3
  104. package/dist/safe-bash/command-chunks/{chunk-KELMIFVV.js → chunk-TI52LKLL.js} +1 -1
  105. package/dist/safe-bash/command-chunks/{chunk-WLTJDNSQ.js → chunk-TVH4JORU.js} +3 -3
  106. package/dist/safe-bash/command-chunks/{chunk-6XVMWFHD.js → chunk-TW73OXPR.js} +6 -6
  107. package/dist/safe-bash/command-chunks/{chunk-SFO43CID.js → chunk-UAXSE3XE.js} +5 -5
  108. package/dist/safe-bash/command-chunks/{chunk-K35BSUHO.js → chunk-UYWSIIUX.js} +7 -7
  109. package/dist/safe-bash/command-chunks/{chunk-JJQ72P3V.js → chunk-VCML4T5D.js} +1 -1
  110. package/dist/safe-bash/command-chunks/{chunk-DCD32BEY.js → chunk-VU3EQF7F.js} +91 -53
  111. package/dist/safe-bash/command-chunks/{chunk-2E2YEDVB.js → chunk-W5YSINXC.js} +6 -6
  112. package/dist/safe-bash/command-chunks/{chunk-EYNT4OEJ.js → chunk-WGG6G2KG.js} +7 -7
  113. package/dist/safe-bash/command-chunks/chunk-WH3TIOTS.js +326 -0
  114. package/dist/safe-bash/command-chunks/{chunk-DVQBZXMQ.js → chunk-WJCN2IXI.js} +2 -2
  115. package/dist/safe-bash/command-chunks/{chunk-45FI2IPY.js → chunk-WQ6ABTJU.js} +3 -6
  116. package/dist/safe-bash/command-chunks/{chunk-XBZ4ZWGL.js → chunk-WVMHRNXZ.js} +3 -3
  117. package/dist/safe-bash/command-chunks/{chunk-7GXUCQI4.js → chunk-WXRYDALR.js} +4 -4
  118. package/dist/safe-bash/command-chunks/{chunk-S4IIOSRA.js → chunk-X7FA7ZD5.js} +8 -8
  119. package/dist/safe-bash/command-chunks/{chunk-SFCERNHU.js → chunk-XPD636C4.js} +3 -3
  120. package/dist/safe-bash/command-chunks/{chunk-HYDWQLJ3.js → chunk-XRVKWGVQ.js} +6 -6
  121. package/dist/safe-bash/command-chunks/{chunk-3UJWHRK4.js → chunk-XVP6V5K3.js} +6 -6
  122. package/dist/safe-bash/command-chunks/{chunk-KTI3BULE.js → chunk-XZ2FWFNV.js} +6 -6
  123. package/dist/safe-bash/command-chunks/{chunk-QK3CHRGL.js → chunk-Y4EYCZFT.js} +10 -10
  124. package/dist/safe-bash/command-chunks/{chunk-GTWVMFBK.js → chunk-YORJDX4V.js} +4 -4
  125. package/dist/safe-bash/command-chunks/{chunk-H6F5SN2N.js → chunk-YSMNXMAO.js} +4 -4
  126. package/dist/safe-bash/command-chunks/{chunk-GKYCV6BU.js → chunk-YSY6R6AS.js} +493 -183
  127. package/dist/safe-bash/command-chunks/{chunk-SE5SJ4JT.js → chunk-Z2JW6M2D.js} +3 -3
  128. package/dist/safe-bash/command-chunks/{chunk-5HGEXQVD.js → chunk-ZHRGYR7B.js} +7 -7
  129. package/dist/safe-bash/command-chunks/{chunk-HQYFRQ5W.js → chunk-ZIIO6GRY.js} +7 -7
  130. package/dist/safe-bash/command-chunks/{chunk-NTRZMQZP.js → chunk-ZMHEGDU2.js} +2 -2
  131. package/dist/safe-bash/command-chunks/{chunk-EYBXHGA6.js → chunk-ZXR6LXV5.js} +2 -2
  132. package/dist/safe-bash/command-chunks/{command-engine-P5DFM4OU.js → command-engine-BEWABZ75.js} +10 -3
  133. package/dist/safe-bash/command-chunks/{engine-RU4OFLPO-CPLFYD67.js → engine-AXXFTGCL-QBQNBI6K.js} +1 -1
  134. package/dist/safe-bash/command-chunks/pdf-XHHFTOT4-UJJYOYJ2.js +573 -0
  135. package/dist/safe-bash/commands/audio/index.browser.js +2 -14
  136. package/dist/safe-bash/commands/diff-patch/index.js +0 -5
  137. package/dist/safe-bash/commands/diff3/index.js +0 -2
  138. package/dist/safe-bash/commands/ffprobe/index.browser.js +2 -5
  139. package/dist/safe-bash/commands/pandoc/index.browser.js +3 -1
  140. package/dist/safe-bash/commands/text.js +10 -1
  141. package/dist/safe-bash/core.d.ts +2 -2
  142. package/dist/safe-bash/core.js +2 -2
  143. package/dist/safe-bash/full-core.browser.js +18 -22
  144. package/dist/safe-bash/lazy-optional.d.ts +9 -0
  145. package/dist/safe-bash/lazy-optional.js +24 -0
  146. package/dist/safe-bash/plugins/index.browser.js +5 -3
  147. package/dist/safe-bash/plugins/index.js +3 -1
  148. package/dist/safe-bash/plugins/portable-commands.d.ts +1 -1
  149. package/dist/safe-bash/plugins/portable-commands.js +5 -3
  150. package/dist/safe-bash/registry-entry.browser.js +1 -1
  151. package/dist/safe-bash-command-apply-patch/apply.js +2 -2
  152. package/dist/safe-bash-command-apply-patch/index.js +2 -2
  153. package/dist/safe-bash-command-apply-patch/parser.d.ts +20 -1
  154. package/dist/safe-bash-command-apply-patch/parser.js +1 -1
  155. package/dist/safe-bash-command-diff/index.js +0 -2
  156. package/dist/safe-bash-command-diff3/index.js +830 -56
  157. package/dist/safe-bash-command-ffmpeg/index.js +1 -1
  158. package/dist/safe-bash-command-ffprobe/index.js +3 -2
  159. package/dist/safe-bash-command-ffprobe/media.js +3 -2
  160. package/dist/safe-bash-command-ffprobe/options.d.ts +15 -0
  161. package/dist/safe-bash-command-ffprobe/options.js +7 -0
  162. package/dist/safe-bash-command-html-to-markdown/index.js +75 -21
  163. package/dist/safe-bash-command-media/index.js +2 -2
  164. package/dist/safe-bash-command-media/plugin.js +1 -1
  165. package/dist/safe-bash-command-media/remote.js +2 -2
  166. package/dist/safe-bash-command-pandoc/command.js +8 -8
  167. package/dist/safe-bash-command-pandoc/execution.d.ts +2 -2
  168. package/dist/safe-bash-command-pandoc/index.d.ts +1 -1
  169. package/dist/safe-bash-command-pandoc/index.js +37 -37
  170. package/dist/safe-bash-command-pandoc/lua-filters.js +2 -2
  171. package/dist/safe-bash-command-pandoc/types.d.ts +17 -2
  172. package/dist/safe-bash-command-patch/index.js +2 -2
  173. package/dist/safe-bash-command-patch/patch-publication.d.ts +2 -2
  174. package/dist/safe-bash-command-patch/patch-publication.js +1 -1
  175. package/dist/safe-bash-command-patch/patch.js +2 -2
  176. package/dist/safe-bash-command-pdftk/index.js +616 -265
  177. package/dist/safe-bash-command-pptx/engine.js +1 -1
  178. package/dist/safe-bash-command-qpdf/index.js +115 -9
  179. package/dist/safe-bash-command-soffice/index.js +1 -1
  180. package/dist/safe-bash-command-ssconvert/index.js +2 -2
  181. package/dist/safe-bash-command-xmllint/index.js +137 -30
  182. package/dist/safe-bash-command-xq/index.js +45 -29
  183. package/dist/safe-bash-compression-engine/bounded-codec.js +2 -2
  184. package/dist/safe-bash-compression-engine/codec-loader.js +1 -1
  185. package/dist/safe-bash-compression-engine/files.js +5 -5
  186. package/dist/safe-bash-compression-engine/index.js +4 -4
  187. package/dist/safe-bash-compression-engine/operand.js +5 -5
  188. package/dist/safe-bash-compression-engine/stream.js +4 -4
  189. package/dist/safe-bash-compression-engine/zstd-decode.js +3 -3
  190. package/dist/safe-bash-media-engine/imagemagick.d.ts +2 -0
  191. package/dist/safe-bash-media-engine/index.js +162 -72
  192. package/dist/safe-bash-network-engine/body.d.ts +1 -0
  193. package/dist/safe-bash-network-engine/body.js +1 -1
  194. package/dist/safe-bash-network-engine/transfer.js +11 -3
  195. package/dist/safe-bash-presentation-engine/accessibility.js +30 -30
  196. package/dist/safe-bash-presentation-engine/animation-editing.js +15 -15
  197. package/dist/safe-bash-presentation-engine/animations.js +15 -15
  198. package/dist/safe-bash-presentation-engine/backgrounds.js +16 -16
  199. package/dist/safe-bash-presentation-engine/bytes.js +3 -3
  200. package/dist/safe-bash-presentation-engine/chart-editing.js +33 -33
  201. package/dist/safe-bash-presentation-engine/chart-object-operations.js +24 -24
  202. package/dist/safe-bash-presentation-engine/charts.js +30 -30
  203. package/dist/safe-bash-presentation-engine/command-placeholder.js +55 -54
  204. package/dist/safe-bash-presentation-engine/comments.js +16 -16
  205. package/dist/safe-bash-presentation-engine/connector-operations.js +31 -31
  206. package/dist/safe-bash-presentation-engine/connectors.js +28 -28
  207. package/dist/safe-bash-presentation-engine/content-types.js +4 -4
  208. package/dist/safe-bash-presentation-engine/creation.js +6 -6
  209. package/dist/safe-bash-presentation-engine/diff.js +31 -31
  210. package/dist/safe-bash-presentation-engine/drawing-format.js +19 -19
  211. package/dist/safe-bash-presentation-engine/drawing-operations.js +30 -30
  212. package/dist/safe-bash-presentation-engine/drawing-schema.js +20 -20
  213. package/dist/safe-bash-presentation-engine/equations.js +16 -16
  214. package/dist/safe-bash-presentation-engine/errors.js +2 -2
  215. package/dist/safe-bash-presentation-engine/fields.js +16 -16
  216. package/dist/safe-bash-presentation-engine/font-metrics.js +3 -3
  217. package/dist/safe-bash-presentation-engine/image-extraction.js +19 -19
  218. package/dist/safe-bash-presentation-engine/image-formatting.js +31 -31
  219. package/dist/safe-bash-presentation-engine/image-insertion.js +17 -17
  220. package/dist/safe-bash-presentation-engine/image-replacement.js +20 -20
  221. package/dist/safe-bash-presentation-engine/image-value.js +4 -4
  222. package/dist/safe-bash-presentation-engine/images.js +18 -18
  223. package/dist/safe-bash-presentation-engine/index.d.ts +2 -2
  224. package/dist/safe-bash-presentation-engine/index.js +100 -93
  225. package/dist/safe-bash-presentation-engine/layouts.js +15 -15
  226. package/dist/safe-bash-presentation-engine/length.js +3 -3
  227. package/dist/safe-bash-presentation-engine/links.js +15 -15
  228. package/dist/safe-bash-presentation-engine/masters.js +14 -14
  229. package/dist/safe-bash-presentation-engine/media-editing.js +23 -23
  230. package/dist/safe-bash-presentation-engine/media-extraction.js +16 -16
  231. package/dist/safe-bash-presentation-engine/media.js +15 -15
  232. package/dist/safe-bash-presentation-engine/memberships.js +14 -14
  233. package/dist/safe-bash-presentation-engine/notes.js +15 -15
  234. package/dist/safe-bash-presentation-engine/ole-enum.js +4 -4
  235. package/dist/safe-bash-presentation-engine/ole-insertion.js +19 -19
  236. package/dist/safe-bash-presentation-engine/opaque-objects.js +9 -9
  237. package/dist/safe-bash-presentation-engine/package-reader.js +5 -5
  238. package/dist/safe-bash-presentation-engine/package-tools.js +15 -15
  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 +54 -53
  242. package/dist/safe-bash-presentation-engine/presentation-settings.js +13 -13
  243. package/dist/safe-bash-presentation-engine/properties.js +15 -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-inspection.js +12 -12
  247. package/dist/safe-bash-presentation-engine/retained-package.js +4 -4
  248. package/dist/safe-bash-presentation-engine/retained-slide-settings.d.ts +15 -0
  249. package/dist/safe-bash-presentation-engine/retained-text.js +19 -19
  250. package/dist/safe-bash-presentation-engine/retained-xml-parts.d.ts +26 -0
  251. package/dist/safe-bash-presentation-engine/sanitize.js +16 -16
  252. package/dist/safe-bash-presentation-engine/selectors.js +10 -10
  253. package/dist/safe-bash-presentation-engine/shape-groups.js +30 -30
  254. package/dist/safe-bash-presentation-engine/shape-operations.js +29 -29
  255. package/dist/safe-bash-presentation-engine/shape-path-operations.js +31 -31
  256. package/dist/safe-bash-presentation-engine/shape-paths.js +15 -15
  257. package/dist/safe-bash-presentation-engine/shape-presets.js +3 -3
  258. package/dist/safe-bash-presentation-engine/shape-selection.js +30 -30
  259. package/dist/safe-bash-presentation-engine/shape-transforms.js +17 -17
  260. package/dist/safe-bash-presentation-engine/shapes.js +26 -26
  261. package/dist/safe-bash-presentation-engine/slide-copy.js +16 -16
  262. package/dist/safe-bash-presentation-engine/slide-import.js +17 -17
  263. package/dist/safe-bash-presentation-engine/slide-merge-split.js +19 -19
  264. package/dist/safe-bash-presentation-engine/slide-model.js +42 -42
  265. package/dist/safe-bash-presentation-engine/slide-removal.js +17 -17
  266. package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +9 -9
  267. package/dist/safe-bash-presentation-engine/slides.d.ts +2 -0
  268. package/dist/safe-bash-presentation-engine/slides.js +21 -16
  269. package/dist/safe-bash-presentation-engine/table-operations.js +32 -32
  270. package/dist/safe-bash-presentation-engine/table-spans.js +31 -31
  271. package/dist/safe-bash-presentation-engine/tables.js +30 -30
  272. package/dist/safe-bash-presentation-engine/tags.js +15 -15
  273. package/dist/safe-bash-presentation-engine/template-bindings.js +32 -32
  274. package/dist/safe-bash-presentation-engine/template-repeat.js +39 -39
  275. package/dist/safe-bash-presentation-engine/text-fitting.js +26 -26
  276. package/dist/safe-bash-presentation-engine/text-frames.js +26 -26
  277. package/dist/safe-bash-presentation-engine/text-paragraphs.js +26 -26
  278. package/dist/safe-bash-presentation-engine/text-reading.js +11 -11
  279. package/dist/safe-bash-presentation-engine/text-replacement.js +16 -16
  280. package/dist/safe-bash-presentation-engine/text-runs.js +19 -19
  281. package/dist/safe-bash-presentation-engine/themes.js +15 -15
  282. package/dist/safe-bash-presentation-engine/transitions.js +15 -15
  283. package/dist/safe-bash-presentation-engine/validation.js +9 -9
  284. package/dist/safe-bash-presentation-engine/xml-parts.d.ts +1 -0
  285. package/dist/safe-bash-presentation-engine/xml-parts.js +19 -13
  286. package/dist/safe-bash-presentation-engine/xml-view.js +3 -3
  287. package/dist/safe-bash-presentation-engine/xml.js +3 -3
  288. package/dist/safe-bash-xml-engine/document.js +1 -1
  289. package/dist/safe-bash-xml-engine/index.js +1 -1
  290. package/dist/safe-bash-xml-engine/json.d.ts +1 -0
  291. package/dist/safe-bash-xml-engine/json.js +203 -0
  292. package/dist/safe-bash-xml-engine/stored-json.d.ts +5 -0
  293. package/dist/spreadsheet-engine/rendering/print/bidi-runs.d.ts +5 -0
  294. package/dist/spreadsheet-engine/rendering/print/bidi-runs.js +35 -0
  295. package/dist/spreadsheet-engine/rendering/print/control-bidi.d.ts +8 -0
  296. package/dist/spreadsheet-engine/rendering/print/control-bidi.js +80 -0
  297. package/dist/spreadsheet-engine/rendering/print/tab-layout.d.ts +11 -0
  298. package/dist/spreadsheet-engine/rendering/print/tab-layout.js +15 -0
  299. package/dist/spreadsheet-engine/rendering/print/text-lines.d.ts +2 -2
  300. package/dist/spreadsheet-engine/rendering/print/text-lines.js +3 -3
  301. package/dist/spreadsheet-format-xls/biff-encrypted-properties.d.ts +5 -1
  302. package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +151 -57
  303. package/dist/spreadsheet-format-xls/biff-encryption.d.ts +1 -1
  304. package/dist/spreadsheet-format-xls/biff-encryption.js +8 -3
  305. package/dist/spreadsheet-format-xls/biff-property-bytes.d.ts +4 -1
  306. package/dist/spreadsheet-format-xls/biff-property-bytes.js +3 -3
  307. package/dist/spreadsheet-format-xls/biff-range.js +1 -1
  308. package/dist/spreadsheet-format-xls/biff.js +11 -3
  309. package/package.json +6 -2
  310. package/dist/safe-bash/chunks/chunk-I2A5ZCPD.js +0 -17
  311. package/dist/safe-bash/chunks/chunk-PQTT2EZP.js +0 -8
  312. package/dist/safe-bash/command-chunks/biff-DS263V2K-2GP4GZT7.js +0 -4868
  313. package/dist/safe-bash/command-chunks/chunk-6ZFYWT3U.js +0 -581
  314. package/dist/safe-bash/command-chunks/chunk-S244SWDH.js +0 -153
  315. package/dist/safe-bash/command-chunks/pdf-T7AWYZGQ-KNAYJ7YF.js +0 -552
  316. /package/dist/safe-bash/command-chunks/{chunk-EMMSXKEJ.js → chunk-4Q4R3VZU.js} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  addImage
3
- } from "./chunk-4DZ32PI7.js";
3
+ } from "./chunk-KCOJA7EM.js";
4
4
  import {
5
5
  readMedia
6
- } from "./chunk-K35BSUHO.js";
6
+ } from "./chunk-UYWSIIUX.js";
7
7
  import {
8
8
  readImages
9
- } from "./chunk-MWVFP2HY.js";
9
+ } from "./chunk-GEM47B2P.js";
10
10
  import {
11
11
  admitImage
12
- } from "./chunk-UQ6UIZMM.js";
12
+ } from "./chunk-QD7ZRDUN.js";
13
13
  import {
14
14
  attr,
15
15
  child,
@@ -19,17 +19,17 @@ import {
19
19
  nextRel,
20
20
  relPart,
21
21
  required
22
- } from "./chunk-ORZRWT62.js";
22
+ } from "./chunk-56NYSX65.js";
23
23
  import {
24
24
  SelectionError
25
- } from "./chunk-S4IIOSRA.js";
25
+ } from "./chunk-X7FA7ZD5.js";
26
26
  import {
27
27
  packageUri,
28
28
  relativePartReference
29
- } from "./chunk-AXWPJRY6.js";
29
+ } from "./chunk-36XGIPOG.js";
30
30
  import {
31
31
  OfficeError
32
- } from "./chunk-KJ3PEDI2.js";
32
+ } from "./chunk-Q73EMLLZ.js";
33
33
 
34
34
  // packages/safe-bash-presentation-engine/src/media-editing.ts
35
35
  var mediaNs = "http://schemas.microsoft.com/office/powerpoint/2010/main";
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  attr,
3
3
  invalid
4
- } from "./chunk-ORZRWT62.js";
4
+ } from "./chunk-56NYSX65.js";
5
5
  import {
6
6
  SelectionError,
7
7
  readSelectionIndex
8
- } from "./chunk-S4IIOSRA.js";
8
+ } from "./chunk-X7FA7ZD5.js";
9
9
  import {
10
10
  readPackage
11
- } from "./chunk-SFCERNHU.js";
11
+ } from "./chunk-XPD636C4.js";
12
12
  import {
13
13
  readBinary
14
- } from "./chunk-KMMAJ6H6.js";
14
+ } from "./chunk-PNGDJA6M.js";
15
15
  import {
16
16
  parseXmlPart
17
- } from "./chunk-5L6GHFRW.js";
17
+ } from "./chunk-554Z6IKP.js";
18
18
  import {
19
19
  OfficeError
20
- } from "./chunk-KJ3PEDI2.js";
20
+ } from "./chunk-Q73EMLLZ.js";
21
21
 
22
22
  // packages/safe-bash-presentation-engine/src/animations.ts
23
23
  async function readAnimations(input, options, context) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OfficeError
3
- } from "./chunk-KJ3PEDI2.js";
3
+ } from "./chunk-Q73EMLLZ.js";
4
4
 
5
5
  // packages/safe-bash-presentation-engine/src/font-metrics.ts
6
6
  var tables = /* @__PURE__ */ new WeakMap();
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  readMedia
3
- } from "./chunk-K35BSUHO.js";
3
+ } from "./chunk-UYWSIIUX.js";
4
4
  import {
5
5
  readPackage
6
- } from "./chunk-SFCERNHU.js";
6
+ } from "./chunk-XPD636C4.js";
7
7
  import {
8
8
  readBinary
9
- } from "./chunk-KMMAJ6H6.js";
9
+ } from "./chunk-PNGDJA6M.js";
10
10
  import {
11
11
  OfficeError,
12
12
  resolveOfficeResources
13
- } from "./chunk-KJ3PEDI2.js";
13
+ } from "./chunk-Q73EMLLZ.js";
14
14
 
15
15
  // packages/safe-bash-presentation-engine/src/media-extraction.ts
16
16
  var extensions = /* @__PURE__ */ new Map([
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  nodeFor
3
- } from "./chunk-6XVMWFHD.js";
3
+ } from "./chunk-TW73OXPR.js";
4
4
  import {
5
5
  TextFrame,
6
6
  applyFrameFormatting,
7
7
  readShape
8
- } from "./chunk-Z4QJMDK3.js";
8
+ } from "./chunk-IT7TAC3F.js";
9
9
  import {
10
10
  Length
11
- } from "./chunk-Z54Z3KRN.js";
11
+ } from "./chunk-6QBMND4A.js";
12
12
  import {
13
13
  attr,
14
14
  child,
15
15
  required
16
- } from "./chunk-ORZRWT62.js";
16
+ } from "./chunk-56NYSX65.js";
17
17
  import {
18
18
  parseXmlPart
19
- } from "./chunk-5L6GHFRW.js";
19
+ } from "./chunk-554Z6IKP.js";
20
20
  import {
21
21
  OfficeError
22
- } from "./chunk-KJ3PEDI2.js";
22
+ } from "./chunk-Q73EMLLZ.js";
23
23
 
24
24
  // packages/safe-bash-presentation-engine/src/tables.ts
25
25
  import { SaxesParser } from "saxes";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  validateColor
3
- } from "./chunk-7AVN3OBH.js";
3
+ } from "./chunk-RHYJVTJO.js";
4
4
  import {
5
5
  attr,
6
6
  child,
@@ -12,19 +12,19 @@ import {
12
12
  relPart,
13
13
  required,
14
14
  unique
15
- } from "./chunk-ORZRWT62.js";
15
+ } from "./chunk-56NYSX65.js";
16
16
  import {
17
17
  readBinary
18
- } from "./chunk-KMMAJ6H6.js";
18
+ } from "./chunk-PNGDJA6M.js";
19
19
  import {
20
20
  parseXmlPart
21
- } from "./chunk-5L6GHFRW.js";
21
+ } from "./chunk-554Z6IKP.js";
22
22
  import {
23
23
  relativePartReference
24
- } from "./chunk-AXWPJRY6.js";
24
+ } from "./chunk-36XGIPOG.js";
25
25
  import {
26
26
  OfficeError
27
- } from "./chunk-KJ3PEDI2.js";
27
+ } from "./chunk-Q73EMLLZ.js";
28
28
 
29
29
  // packages/safe-bash-presentation-engine/src/backgrounds.ts
30
30
  var fills = ["solidFill", "gradFill", "blipFill", "noFill", "pattFill", "grpFill"];
@@ -4,35 +4,35 @@ import {
4
4
  XyChartData,
5
5
  chartTypes,
6
6
  toChartData
7
- } from "./chunk-DJVRDUCA.js";
7
+ } from "./chunk-LXLLA4PM.js";
8
8
  import {
9
9
  applyPictureUpdate
10
- } from "./chunk-HEHGHIE2.js";
10
+ } from "./chunk-22MOB45U.js";
11
11
  import {
12
12
  applyConnectorUpdate,
13
13
  createConnectorXml,
14
14
  readConnector
15
- } from "./chunk-HQYFRQ5W.js";
15
+ } from "./chunk-ZIIO6GRY.js";
16
16
  import {
17
17
  XL_CHART_TYPE
18
- } from "./chunk-JW6CMBF2.js";
18
+ } from "./chunk-EHSM5ZQS.js";
19
19
  import {
20
20
  PROG_ID
21
- } from "./chunk-32ADKP5E.js";
21
+ } from "./chunk-456PHA3L.js";
22
22
  import {
23
23
  Image
24
- } from "./chunk-JON5DB3Z.js";
24
+ } from "./chunk-B5LDP7AA.js";
25
25
  import {
26
26
  applyTableStructure
27
- } from "./chunk-SFO43CID.js";
27
+ } from "./chunk-UAXSE3XE.js";
28
28
  import {
29
29
  applyTableUpdate,
30
30
  createTableXml,
31
31
  readTable
32
- } from "./chunk-DMDHE5KC.js";
32
+ } from "./chunk-AHA6IWAJ.js";
33
33
  import {
34
34
  nodeFor
35
- } from "./chunk-6XVMWFHD.js";
35
+ } from "./chunk-TW73OXPR.js";
36
36
  import {
37
37
  FillFormat,
38
38
  LineFormat,
@@ -46,24 +46,24 @@ import {
46
46
  createShapeXml,
47
47
  readShape,
48
48
  textLinkCapabilities
49
- } from "./chunk-Z4QJMDK3.js";
49
+ } from "./chunk-IT7TAC3F.js";
50
50
  import {
51
51
  ShapeIdAllocator
52
- } from "./chunk-7GXUCQI4.js";
52
+ } from "./chunk-WXRYDALR.js";
53
53
  import {
54
54
  defineEnum
55
- } from "./chunk-53JP3S6H.js";
55
+ } from "./chunk-5HPU7D36.js";
56
56
  import {
57
57
  Length
58
- } from "./chunk-Z54Z3KRN.js";
58
+ } from "./chunk-6QBMND4A.js";
59
59
  import {
60
60
  attr,
61
61
  child,
62
62
  required
63
- } from "./chunk-ORZRWT62.js";
63
+ } from "./chunk-56NYSX65.js";
64
64
  import {
65
65
  parseXmlPart
66
- } from "./chunk-5L6GHFRW.js";
66
+ } from "./chunk-554Z6IKP.js";
67
67
  import {
68
68
  IndexError,
69
69
  InvalidHandleError,
@@ -71,10 +71,10 @@ import {
71
71
  PropertyAccessError,
72
72
  TypeError,
73
73
  ValueError
74
- } from "./chunk-NXCMXD74.js";
74
+ } from "./chunk-S6R3IB36.js";
75
75
  import {
76
76
  OfficeError
77
- } from "./chunk-KJ3PEDI2.js";
77
+ } from "./chunk-Q73EMLLZ.js";
78
78
 
79
79
  // packages/safe-bash-presentation-engine/src/indexed-collection.ts
80
80
  function indexed(target) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  admitImage
3
- } from "./chunk-UQ6UIZMM.js";
3
+ } from "./chunk-QD7ZRDUN.js";
4
4
  import {
5
5
  OfficeError
6
- } from "./chunk-KJ3PEDI2.js";
6
+ } from "./chunk-Q73EMLLZ.js";
7
7
 
8
8
  // packages/safe-bash-presentation-engine/src/image-value.ts
9
9
  import { sha1 } from "@noble/hashes/legacy.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineXmlEnum
3
- } from "./chunk-53JP3S6H.js";
3
+ } from "./chunk-5HPU7D36.js";
4
4
 
5
5
  // packages/safe-bash-presentation-engine/src/language-enum.ts
6
6
  var MSO_LANGUAGE_IDValues = /* @__PURE__ */ ((MSO_LANGUAGE_IDValues2) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  InvalidXmlError,
3
3
  TypeError
4
- } from "./chunk-NXCMXD74.js";
4
+ } from "./chunk-S6R3IB36.js";
5
5
 
6
6
  // packages/safe-bash-presentation-engine/src/xml-scalars.ts
7
7
  function numericToken(value) {
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  readTextBodies,
3
3
  validateTextReadingOptions
4
- } from "./chunk-HONWGFDA.js";
4
+ } from "./chunk-33YCKZZX.js";
5
5
  import {
6
6
  loadShared
7
- } from "./chunk-ORZRWT62.js";
7
+ } from "./chunk-56NYSX65.js";
8
8
  import {
9
9
  SelectionError,
10
10
  readSelectionIndex
11
- } from "./chunk-S4IIOSRA.js";
11
+ } from "./chunk-X7FA7ZD5.js";
12
12
  import {
13
13
  readPackage
14
- } from "./chunk-SFCERNHU.js";
14
+ } from "./chunk-XPD636C4.js";
15
15
  import {
16
16
  readBinary
17
- } from "./chunk-KMMAJ6H6.js";
17
+ } from "./chunk-PNGDJA6M.js";
18
18
  import {
19
19
  parseXmlPart
20
- } from "./chunk-5L6GHFRW.js";
20
+ } from "./chunk-554Z6IKP.js";
21
21
  import {
22
22
  OfficeError
23
- } from "./chunk-KJ3PEDI2.js";
23
+ } from "./chunk-Q73EMLLZ.js";
24
24
 
25
25
  // packages/safe-bash-presentation-engine/src/equations.ts
26
26
  import { SaxesParser } from "saxes";
@@ -83,6 +83,68 @@ async function attributes(element, inherited, budget, exclusive) {
83
83
  });
84
84
  return selected;
85
85
  }
86
+ var StoredFrames = class {
87
+ constructor(document) {
88
+ this.document = document;
89
+ }
90
+ document;
91
+ head = 0;
92
+ namespaces = /* @__PURE__ */ new WeakMap();
93
+ async store(value) {
94
+ const bytes = new TextEncoder().encode(JSON.stringify(value));
95
+ const header = new Uint8Array(8);
96
+ new DataView(header.buffer).setFloat64(0, bytes.length, true);
97
+ const reference = await this.document.storage.append(header);
98
+ await this.document.storage.append(bytes);
99
+ return reference;
100
+ }
101
+ async load(reference) {
102
+ const size = await this.document.storage.read(reference, 8);
103
+ const length = new DataView(size.buffer, size.byteOffset, 8).getFloat64(0, true);
104
+ return JSON.parse(new TextDecoder().decode(await this.document.storage.read(reference + 8, length)));
105
+ }
106
+ async push(source) {
107
+ let reversed = 0;
108
+ for await (const frame of source) {
109
+ const checkpoint = this.document.budget.tick();
110
+ if (checkpoint) await checkpoint;
111
+ let namespaces = this.namespaces.get(frame.namespaces);
112
+ if (namespaces === void 0) {
113
+ namespaces = await this.store([...frame.namespaces]);
114
+ this.namespaces.set(frame.namespaces, namespaces);
115
+ }
116
+ const value = await this.store({ ...frame, namespaces });
117
+ const link = new Uint8Array(16), view = new DataView(link.buffer);
118
+ view.setFloat64(0, reversed, true);
119
+ view.setFloat64(8, value, true);
120
+ reversed = await this.document.storage.append(link);
121
+ }
122
+ while (reversed) {
123
+ const checkpoint = this.document.budget.tick();
124
+ if (checkpoint) await checkpoint;
125
+ const link = await this.document.storage.read(reversed, 8);
126
+ const view = new DataView(link.buffer, link.byteOffset, 8), previous = view.getFloat64(0, true);
127
+ view.setFloat64(0, this.head, true);
128
+ await this.document.storage.write(reversed, link);
129
+ this.head = reversed;
130
+ reversed = previous;
131
+ }
132
+ }
133
+ async pop() {
134
+ if (!this.head) return void 0;
135
+ const link = await this.document.storage.read(this.head, 16);
136
+ const view = new DataView(link.buffer, link.byteOffset, 16);
137
+ this.head = view.getFloat64(0, true);
138
+ const frame = await this.load(view.getFloat64(8, true));
139
+ const namespaces = new Map(await this.load(frame.namespaces));
140
+ this.namespaces.set(namespaces, frame.namespaces);
141
+ return { ...frame, namespaces };
142
+ }
143
+ };
144
+ function* indentation(depth) {
145
+ yield "\n";
146
+ for (let left = depth; left > 0; left -= 2048) yield " ".repeat(Math.min(left, 2048));
147
+ }
86
148
  async function* serializeDocument(source, mode, budget, format = mode === "format", options = {}) {
87
149
  const stored = source instanceof StoredXmlDocument ? source : void 0;
88
150
  const rootReference = stored ? stored.root : source;
@@ -100,16 +162,26 @@ async function* serializeDocument(source, mode, budget, format = mode === "forma
100
162
  const documentDeclaration = options.declaration ?? root.declaration;
101
163
  const escaping = { canonical, ascii: !canonical && !documentDeclaration?.includes("encoding") };
102
164
  if (canonical) {
103
- const pending2 = [(async function* () {
104
- yield rootReference;
105
- })()];
106
- while (pending2.length) {
107
- const next = await pending2.at(-1).next();
108
- if (next.done) {
109
- pending2.pop();
110
- continue;
165
+ async function* descendants() {
166
+ if (stored) {
167
+ for await (const entry of stored.walk(stored.root)) if (!entry.closing) yield entry.reference;
168
+ } else {
169
+ const pending2 = [(async function* () {
170
+ yield rootReference;
171
+ })()];
172
+ while (pending2.length) {
173
+ const next = await pending2.at(-1).next();
174
+ if (next.done) {
175
+ pending2.pop();
176
+ continue;
177
+ }
178
+ yield next.value;
179
+ pending2.push(children(next.value));
180
+ }
111
181
  }
112
- const element = await load(next.value);
182
+ }
183
+ for await (const reference of descendants()) {
184
+ const element = await load(reference);
113
185
  if (element.kind !== "element") continue;
114
186
  {
115
187
  const p = budget.tick();
@@ -128,7 +200,6 @@ async function* serializeDocument(source, mode, budget, format = mode === "forma
128
200
  }
129
201
  if (!absolute) throw new XmlQueryError("Failed to canonicalize: relative namespace URI", 6);
130
202
  }
131
- pending2.push(children(next.value));
132
203
  }
133
204
  } else yield declaration(documentDeclaration);
134
205
  const namespaces = /* @__PURE__ */ new Map([["xml", xml]]);
@@ -196,18 +267,29 @@ async function* serializeDocument(source, mode, budget, format = mode === "forma
196
267
  await iterator.return(void 0);
197
268
  }
198
269
  }
199
- const pending = [documentFrames()];
200
- while (pending.length) {
270
+ const pending = [];
271
+ const frames = stored ? new StoredFrames(stored) : void 0;
272
+ async function push(source2) {
273
+ if (frames) await frames.push(source2);
274
+ else pending.push(source2[Symbol.asyncIterator]());
275
+ }
276
+ await push(documentFrames());
277
+ while (true) {
201
278
  {
202
279
  const p = budget.tick();
203
280
  if (p) await p;
204
281
  }
205
- const next = await pending.at(-1).next();
206
- if (next.done) {
207
- pending.pop();
208
- continue;
282
+ let frame;
283
+ if (frames) frame = await frames.pop();
284
+ else while (pending.length) {
285
+ const next = await pending.at(-1).next();
286
+ if (next.done) pending.pop();
287
+ else {
288
+ frame = next.value;
289
+ break;
290
+ }
209
291
  }
210
- const frame = next.value;
292
+ if (!frame) break;
211
293
  if (typeof frame.content === "string") {
212
294
  yield frame.content;
213
295
  continue;
@@ -259,17 +341,21 @@ async function* serializeDocument(source, mode, budget, format = mode === "forma
259
341
  }
260
342
  yield ">";
261
343
  const indent = !canonical && format && !frame.inline && !mixed && count > 0;
262
- const childNamespaces = new Map(frame.namespaces);
263
- if (canonical) for (const attribute of ordered) {
264
- if (attribute.namespace === xmlns) childNamespaces.set(attribute.localName, attribute.value);
344
+ let childNamespaces = frame.namespaces;
345
+ if (canonical && ordered.some((attribute) => attribute.namespace === xmlns)) {
346
+ const changed = new Map(frame.namespaces);
347
+ for (const attribute of ordered) if (attribute.namespace === xmlns) changed.set(attribute.localName, attribute.value);
348
+ childNamespaces = changed;
265
349
  }
266
350
  const childFrame = { depth: frame.depth + 1, namespaces: childNamespaces, preserveSpace, preserveBlanks, inline: frame.inline || mixed };
267
- pending.push((async function* () {
351
+ const parentFrame = frame;
352
+ await push((async function* () {
268
353
  for await (const child of selectedChildren(reference, preserveSpace, preserveBlanks)) {
269
- if (indent) yield { ...childFrame, content: "\n" + " ".repeat(childFrame.depth) };
354
+ if (indent) for (const part of indentation(childFrame.depth)) yield { ...childFrame, content: part };
270
355
  yield { ...childFrame, content: child.reference };
271
356
  }
272
- yield { ...frame, content: `${indent ? "\n" + " ".repeat(frame.depth) : ""}</${current.name}>` };
357
+ if (indent) for (const part of indentation(parentFrame.depth)) yield { ...parentFrame, content: part };
358
+ yield { ...parentFrame, content: `</${current.name}>` };
273
359
  })());
274
360
  } else if (current.kind === "text" || current.kind === "cdata" && canonical) {
275
361
  for await (const part of typeof reference === "number" ? stored.text(reference) : [current.text])
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  readBinary
3
- } from "./chunk-KMMAJ6H6.js";
3
+ } from "./chunk-PNGDJA6M.js";
4
4
  import {
5
5
  OfficeError,
6
6
  resolveOfficeResources
7
- } from "./chunk-KJ3PEDI2.js";
7
+ } from "./chunk-Q73EMLLZ.js";
8
8
  import {
9
9
  crc32,
10
10
  createZipCodec
@@ -3,7 +3,7 @@ import {
3
3
  JsonNumberError,
4
4
  parseBackedJson,
5
5
  readJsonNumber
6
- } from "./chunk-LWZVDDJA.js";
6
+ } from "./chunk-NUGQQDGE.js";
7
7
  import {
8
8
  t
9
9
  } from "./chunk-5NKZJEUI.js";
@@ -5,7 +5,7 @@ import {
5
5
  chunkBytes,
6
6
  stagingLimit,
7
7
  transform
8
- } from "./chunk-NVBUC644.js";
8
+ } from "./chunk-HKGNBH7Z.js";
9
9
  import {
10
10
  formats
11
11
  } from "./chunk-5AQAWIYK.js";
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  drawingColorSchema,
3
3
  drawingUpdateSchema
4
- } from "./chunk-6DEWZMOL.js";
4
+ } from "./chunk-2CORNDGF.js";
5
5
  import {
6
6
  MSO_LANGUAGE_ID
7
- } from "./chunk-CHJL6JMU.js";
7
+ } from "./chunk-COKYZUBW.js";
8
8
  import {
9
9
  MSO_TEXT_UNDERLINE_TYPE,
10
10
  validateTextRunOptions
11
- } from "./chunk-KTI3BULE.js";
11
+ } from "./chunk-XZ2FWFNV.js";
12
12
  import {
13
13
  validateDrawingUpdate
14
- } from "./chunk-JHUYZZGV.js";
14
+ } from "./chunk-QYMEASQ6.js";
15
15
  import {
16
16
  defineEnum,
17
17
  defineXmlEnum
18
- } from "./chunk-53JP3S6H.js";
18
+ } from "./chunk-5HPU7D36.js";
19
19
  import {
20
20
  Length
21
- } from "./chunk-Z54Z3KRN.js";
21
+ } from "./chunk-6QBMND4A.js";
22
22
  import {
23
23
  PropertyAccessError
24
- } from "./chunk-NXCMXD74.js";
24
+ } from "./chunk-S6R3IB36.js";
25
25
  import {
26
26
  OfficeError
27
- } from "./chunk-KJ3PEDI2.js";
27
+ } from "./chunk-Q73EMLLZ.js";
28
28
 
29
29
  // packages/safe-bash-presentation-engine/src/chart-font-operations.ts
30
30
  var owners = [
@@ -1,41 +1,41 @@
1
1
  import {
2
2
  remapCopiedXml
3
- } from "./chunk-SWT6ILF2.js";
3
+ } from "./chunk-MPUHH2KR.js";
4
4
  import {
5
5
  prepareCommentImport
6
- } from "./chunk-WLTJDNSQ.js";
6
+ } from "./chunk-TVH4JORU.js";
7
7
  import {
8
8
  writePackageArchive
9
- } from "./chunk-VPDSQPSN.js";
9
+ } from "./chunk-DM2CPMB4.js";
10
10
  import {
11
11
  diagramContentTypes,
12
12
  diagramRelationshipKinds
13
- } from "./chunk-S4IIOSRA.js";
13
+ } from "./chunk-X7FA7ZD5.js";
14
14
  import {
15
15
  readPackage
16
- } from "./chunk-SFCERNHU.js";
16
+ } from "./chunk-XPD636C4.js";
17
17
  import {
18
18
  readBinary
19
- } from "./chunk-KMMAJ6H6.js";
19
+ } from "./chunk-PNGDJA6M.js";
20
20
  import {
21
21
  validatePresentation
22
- } from "./chunk-MMBRBANA.js";
22
+ } from "./chunk-RNSKXOG3.js";
23
23
  import {
24
24
  parseXmlPart
25
- } from "./chunk-5L6GHFRW.js";
25
+ } from "./chunk-554Z6IKP.js";
26
26
  import {
27
27
  parseContentTypes
28
- } from "./chunk-DVQBZXMQ.js";
28
+ } from "./chunk-WJCN2IXI.js";
29
29
  import {
30
30
  readRelationshipGraph
31
- } from "./chunk-NTRZMQZP.js";
31
+ } from "./chunk-ZMHEGDU2.js";
32
32
  import {
33
33
  asciiKey,
34
34
  relativePartReference
35
- } from "./chunk-AXWPJRY6.js";
35
+ } from "./chunk-36XGIPOG.js";
36
36
  import {
37
37
  OfficeError
38
- } from "./chunk-KJ3PEDI2.js";
38
+ } from "./chunk-Q73EMLLZ.js";
39
39
 
40
40
  // packages/safe-bash-presentation-engine/src/slide-import.ts
41
41
  import { SaxesParser } from "saxes";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  PROG_ID
3
- } from "./chunk-32ADKP5E.js";
3
+ } from "./chunk-456PHA3L.js";
4
4
  import {
5
5
  admitImage
6
- } from "./chunk-UQ6UIZMM.js";
6
+ } from "./chunk-QD7ZRDUN.js";
7
7
  import {
8
8
  ShapeIdAllocator
9
- } from "./chunk-7GXUCQI4.js";
9
+ } from "./chunk-WXRYDALR.js";
10
10
  import {
11
11
  child,
12
12
  escape,
@@ -14,19 +14,19 @@ import {
14
14
  nextRel,
15
15
  relPart,
16
16
  required
17
- } from "./chunk-ORZRWT62.js";
17
+ } from "./chunk-56NYSX65.js";
18
18
  import {
19
19
  SelectionError
20
- } from "./chunk-S4IIOSRA.js";
20
+ } from "./chunk-X7FA7ZD5.js";
21
21
  import {
22
22
  parseXmlPart
23
- } from "./chunk-5L6GHFRW.js";
23
+ } from "./chunk-554Z6IKP.js";
24
24
  import {
25
25
  relativePartReference
26
- } from "./chunk-AXWPJRY6.js";
26
+ } from "./chunk-36XGIPOG.js";
27
27
  import {
28
28
  OfficeError
29
- } from "./chunk-KJ3PEDI2.js";
29
+ } from "./chunk-Q73EMLLZ.js";
30
30
 
31
31
  // packages/safe-bash-presentation-engine/src/ole-insertion.ts
32
32
  function invalid(message) {