@poe-platform/safe-bash 0.1.811 → 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.
- package/dist/audio-ast/id3-source.d.ts +27 -0
- package/dist/audio-ast/index.d.ts +5 -0
- package/dist/audio-ast/index.js +1001 -596
- package/dist/audio-ast/mp3-source.d.ts +18 -0
- package/dist/audio-ast/ogg-source.d.ts +25 -0
- package/dist/audio-ast/ogg-stream-source.d.ts +22 -0
- package/dist/audio-ast/vorbis.d.ts +14 -0
- package/dist/image-ast/index.js +139 -9
- package/dist/mp4-ast/containers/adapters.d.ts +7 -0
- package/dist/office-xml/retained-xml-document.d.ts +8 -0
- package/dist/pdf-ast/ast.d.ts +2 -0
- package/dist/pdf-ast/content/dictionary-cursor.d.ts +15 -0
- package/dist/pdf-ast/content/range-operator-parser.d.ts +4 -0
- package/dist/pdf-ast/content/stored-dictionary.d.ts +10 -0
- package/dist/pdf-ast/cos/lexer.d.ts +8 -5
- package/dist/pdf-ast/cos/object-reader.d.ts +4 -3
- package/dist/pdf-ast/cos/range-parser.d.ts +4 -0
- package/dist/pdf-ast/cos/retained-objects.d.ts +1 -0
- package/dist/pdf-ast/cos/retained-writer.d.ts +1 -0
- package/dist/pdf-ast/cos/value-parser.d.ts +32 -2
- package/dist/pdf-ast/edit/retained-append-attachments.d.ts +13 -0
- package/dist/pdf-ast/edit/retained-bookmarks.d.ts +13 -0
- package/dist/pdf-ast/edit/retained-graph.d.ts +6 -0
- package/dist/pdf-ast/edit/retained-save.d.ts +2 -0
- package/dist/pdf-ast/edit/retained-stamps.d.ts +9 -0
- package/dist/pdf-ast/extract/retained-form-field-details.d.ts +20 -0
- package/dist/pdf-ast/extract/retained-form-fields.d.ts +17 -4
- package/dist/pdf-ast/fonts/resolve.d.ts +3 -1
- package/dist/pdf-ast/index.d.ts +4 -1
- package/dist/pdf-ast/index.js +2127 -975
- package/dist/pdf-ast/retained-document.d.ts +4 -0
- package/dist/safe-bash/audio-ast.browser.js +7 -1
- package/dist/safe-bash/chunks/{chunk-HHSOUC3Z.js → chunk-HPQE675Q.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-BUYRKFW2.js → chunk-I6ECNJMR.js} +1 -1
- package/dist/safe-bash/chunks/{pdftk-WRYEP3CA.js → pdftk-Y2TX74LY.js} +2 -1
- package/dist/safe-bash/command-chunks/biff-4ALVARRF-7SRX6R6N.js +5192 -0
- package/dist/safe-bash/command-chunks/{chunk-EHSM5ZQS.js → chunk-2DGJOOXM.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-Q6S57NOQ.js → chunk-2E2H7MBH.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-MMBZTYXO.js → chunk-2PQRZDNR.js} +221 -0
- package/dist/safe-bash/command-chunks/{chunk-5OO2P27R.js → chunk-2V6FOLXV.js} +78 -25
- package/dist/safe-bash/command-chunks/{chunk-56NYSX65.js → chunk-2Z3WRRFT.js} +9 -9
- package/dist/safe-bash/command-chunks/chunk-3D24WDND.js +63 -0
- package/dist/safe-bash/command-chunks/{chunk-47NEG4UO.js → chunk-3JST2Q7G.js} +219 -43
- package/dist/safe-bash/command-chunks/{chunk-WGG6G2KG.js → chunk-3LJAXFH5.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-AHA6IWAJ.js → chunk-3TYDSGAH.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-YSMNXMAO.js → chunk-3Y4XZB24.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-ZIIO6GRY.js → chunk-4PBNMKAT.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-JFYWVQ4V.js → chunk-4Z6W5EOC.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-GEM47B2P.js → chunk-57DDYKE5.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-HARUYHH7.js → chunk-5HUICAWD.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4CKFNXRN.js → chunk-5IFRAI7Y.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-RHYJVTJO.js → chunk-5KGEZ3RW.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-A5FZBR7X.js → chunk-5MFDRSGG.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-7GKKMNL6.js → chunk-5P6I2T63.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-6M6TM5Z5.js → chunk-5VQVZPP3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MIRL7HTF.js → chunk-6244HYJY.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-63EMPQ7Z.js +115 -0
- package/dist/safe-bash/command-chunks/{chunk-XRVKWGVQ.js → chunk-6CY5BHBS.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-XVP6V5K3.js → chunk-6IWE7PTK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-6QBMND4A.js → chunk-6SRHWVEB.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-6ZHQB453.js +35 -0
- package/dist/safe-bash/command-chunks/chunk-73NYFNAS.js +173 -0
- package/dist/safe-bash/command-chunks/{chunk-VU3EQF7F.js → chunk-7NXTEWPR.js} +229 -75
- package/dist/safe-bash/command-chunks/{chunk-554Z6IKP.js → chunk-7PRL6RJ6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SDTPO2VV.js → chunk-7PZHWMK6.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-XZ2FWFNV.js → chunk-7QZ2HP2F.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-OEJM666F.js → chunk-7UC2Q6Z6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-COKYZUBW.js → chunk-AJI55RS7.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2VCKUNDZ.js → chunk-B2C3UPJS.js} +27 -17
- package/dist/safe-bash/command-chunks/{chunk-WXRYDALR.js → chunk-BBAB7LC4.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QYMEASQ6.js → chunk-BEHUSUOY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-Z2JW6M2D.js → chunk-BK7ISUJL.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-33YCKZZX.js → chunk-C5KLFZGT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-TVH4JORU.js → chunk-C5QDEB3I.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-N4R2SHSS.js → chunk-CCZZVCHX.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-2VLAXKTS.js → chunk-CTDC4LJT.js} +121 -85
- package/dist/safe-bash/command-chunks/{chunk-S6R3IB36.js → chunk-D55REQA3.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-Y4EYCZFT.js → chunk-D6WJY6QO.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-2CORNDGF.js → chunk-DBLHCJJU.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SPW4GW4Z.js → chunk-DFI7QF3M.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-456PHA3L.js → chunk-DMCI6T6N.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TW73OXPR.js → chunk-EJTNVXWF.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QD7ZRDUN.js → chunk-ET2VPDUA.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-5LI2DLNZ.js → chunk-EXOQGXEU.js} +26 -26
- package/dist/safe-bash/command-chunks/{chunk-CRV2Q3PB.js → chunk-EZ4NQIPL.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-FWKLBDMK.js +0 -0
- package/dist/safe-bash/command-chunks/{chunk-22MOB45U.js → chunk-FWPVQGYK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QC5RMGSA.js → chunk-G3RUXKVY.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JYUJAF4L.js → chunk-G7NENPYV.js} +4 -0
- package/dist/safe-bash/command-chunks/{chunk-KCOJA7EM.js → chunk-GKILM4HZ.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-HTVIYLVB.js → chunk-GNXTMSYN.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-D2ASPM7R.js → chunk-GOBUDKZ3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-RNSKXOG3.js → chunk-GVWVRPG6.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-ZHRGYR7B.js → chunk-HCKYUQ3L.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-AGLK7OJR.js → chunk-HDSIIQBS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DM2CPMB4.js → chunk-HKOMXGJS.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-IT7TAC3F.js → chunk-HVW53ARH.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-M7QE2MN7.js → chunk-I4GMCWAT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-5MB64DWR.js → chunk-IHSOOSNC.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-LCZDBW55.js → chunk-JAHJWVGF.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-MOZD7RUY.js → chunk-JORIVUPM.js} +27 -11
- package/dist/safe-bash/command-chunks/{chunk-PMAM4N33.js → chunk-JUJHYPYL.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ENT3IV2G.js → chunk-KBUBSMCQ.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-ZXR6LXV5.js → chunk-KCE5D4Z4.js} +48 -4
- package/dist/safe-bash/command-chunks/{chunk-FIIAYCWS.js → chunk-KZ5ODST6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PNGDJA6M.js → chunk-LD7BONZY.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-KJ4XXZIL.js → chunk-M3Z5PU2M.js} +582 -59
- package/dist/safe-bash/command-chunks/{chunk-LXLLA4PM.js → chunk-MKX4JAZ6.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-RQIQ75W5.js → chunk-MNHBQBF6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-A2CLZMQZ.js → chunk-MPKY37QR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-K5GB2YMN.js → chunk-MUUWBZIC.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-JOCFI7TG.js → chunk-N32GSM3J.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-EUT24Y5Z.js → chunk-NKTULXVD.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-5HPU7D36.js → chunk-NMPED6L5.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QZZ73J2O.js → chunk-NPFHUS4X.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-X7FA7ZD5.js → chunk-O675URF4.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-R6EGGK5M.js → chunk-P7EL2FWW.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-YS25EI54.js → chunk-PCCFLPUQ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-RRL3Y562.js → chunk-PI6MOMHA.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-26VCZHLJ.js → chunk-PIOQBOEK.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-PK36TVXB.js +175 -0
- package/dist/safe-bash/command-chunks/{chunk-72C3TZ2U.js → chunk-PKLJRB7W.js} +264 -129
- package/dist/safe-bash/command-chunks/{chunk-6CCQI6XZ.js → chunk-PSCOXGCA.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-XPD636C4.js → chunk-PVGZMLC6.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JQVHUSDD.js → chunk-PXWS3Q7L.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-HDJVJTCK.js → chunk-QFF5KBOM.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-MPUHH2KR.js → chunk-QM2HZJSJ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-UAXSE3XE.js → chunk-R2BMZAHG.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-KB7DUBVL.js → chunk-RGOQKIG6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-D2KZ66W4.js → chunk-RLCQ7BN3.js} +187 -39
- package/dist/safe-bash/command-chunks/{chunk-B5LDP7AA.js → chunk-S2N2V5U4.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-OA75SGN2.js → chunk-SGPCXAG7.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-Z5QOVRVH.js → chunk-SU26FZLJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-QUM3SYAJ.js → chunk-SYSX46IV.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-T3E5RV3U.js +737 -0
- package/dist/safe-bash/command-chunks/{chunk-YORJDX4V.js → chunk-T5ERNELL.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-KL3OIBKB.js → chunk-T6C5QP7T.js} +6495 -6343
- package/dist/safe-bash/command-chunks/{chunk-ATTWQVR2.js → chunk-TKRLZIFI.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-ZMHEGDU2.js → chunk-TODWFDYB.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-YSY6R6AS.js → chunk-TQEB4DH4.js} +703 -102
- package/dist/safe-bash/command-chunks/{chunk-36XGIPOG.js → chunk-U5TWQFZY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-APEWTWCC.js → chunk-UAF4IX5H.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-6VPQ3CDZ.js → chunk-V37D6AHO.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-RID6VYS3.js → chunk-V6XBEYPC.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-WJCN2IXI.js → chunk-VQOINPVF.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-W5YSINXC.js → chunk-VVWXY6IA.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-HKATEVAP.js → chunk-WPVBUVFK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-UYWSIIUX.js → chunk-X53AEG36.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-L5MCW6CM.js → chunk-X64XGIXZ.js} +9 -155
- package/dist/safe-bash/command-chunks/{chunk-Q73EMLLZ.js → chunk-X6RHJ6YN.js} +84 -5
- package/dist/safe-bash/command-chunks/{chunk-7PVHO47B.js → chunk-XG6UWQV5.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-NQDIT667.js → chunk-XIDGHIGB.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-DPR5CYQV.js → chunk-XITDDJFT.js} +2 -0
- package/dist/safe-bash/command-chunks/{chunk-CV7M2QJU.js → chunk-XLYIVBAR.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-WVMHRNXZ.js → chunk-YUXTK3XA.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-SPLOIABU.js → chunk-YXD6VGVG.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-2ZFLMWOX.js → chunk-Z5BIM5B7.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-ZYLGNIGA.js +156 -0
- package/dist/safe-bash/command-chunks/{command-engine-BEWABZ75.js → command-engine-X3OLN7N6.js} +206 -86
- package/dist/safe-bash/command-chunks/{engine-AXXFTGCL-QBQNBI6K.js → engine-XUCIFZ7V-LJFGZM6O.js} +1 -1
- package/dist/safe-bash/command-chunks/paradox-4FCZE53D-LQPGVMEL.js +365 -0
- package/dist/safe-bash/commands/pandoc/index.browser.js +1 -1
- package/dist/safe-bash/full-core.browser.js +2 -2
- package/dist/safe-bash/plugins/index.browser.js +2 -2
- package/dist/safe-bash-command-apply-patch/apply.js +4 -4
- package/dist/safe-bash-command-apply-patch/index.js +4 -4
- package/dist/safe-bash-command-apply-patch/matcher.js +2 -2
- package/dist/safe-bash-command-apply-patch/parser.js +2 -2
- package/dist/safe-bash-command-apply-patch/shared.d.ts +2 -0
- package/dist/safe-bash-command-apply-patch/shared.js +1 -1
- package/dist/safe-bash-command-diff/diff.js +1 -1
- package/dist/safe-bash-command-diff/index.js +1 -1
- package/dist/safe-bash-command-ffmpeg/index.js +1 -1
- package/dist/safe-bash-command-ffprobe/index.js +2 -2
- package/dist/safe-bash-command-ffprobe/media.d.ts +3 -1
- package/dist/safe-bash-command-ffprobe/media.js +2 -2
- package/dist/safe-bash-command-html-to-markdown/budget.js +2 -1
- package/dist/safe-bash-command-html-to-markdown/entities.js +4 -3
- package/dist/safe-bash-command-html-to-markdown/index.js +564 -110
- package/dist/safe-bash-command-html-to-markdown/input.js +6 -5
- package/dist/safe-bash-command-html-to-markdown/options.js +2 -1
- package/dist/safe-bash-command-html-to-markdown/parser.js +5 -4
- package/dist/safe-bash-command-html-to-markdown/render.js +6 -5
- package/dist/safe-bash-command-html-to-markdown/text.js +3 -2
- package/dist/safe-bash-command-htmlq/index.js +361 -37
- package/dist/safe-bash-command-htmlq/tree.d.ts +3 -2
- package/dist/safe-bash-command-pandoc/command.js +7 -7
- package/dist/safe-bash-command-pandoc/index.js +55 -55
- package/dist/safe-bash-command-patch/index.js +6 -6
- package/dist/safe-bash-command-patch/patch-envelope.js +53 -3
- package/dist/safe-bash-command-patch/patch-formats.d.ts +2 -2
- package/dist/safe-bash-command-patch/patch-formats.js +2 -2
- package/dist/safe-bash-command-patch/patch-gnu-reject.d.ts +2 -1
- package/dist/safe-bash-command-patch/patch-gnu-reject.js +4 -3
- package/dist/safe-bash-command-patch/patch-publication.js +2 -1
- package/dist/safe-bash-command-patch/patch.js +6 -6
- package/dist/safe-bash-command-patch/unified.d.ts +10 -2
- package/dist/safe-bash-command-patch/unified.js +1 -1
- package/dist/safe-bash-command-pdftk/index.d.ts +6 -2
- package/dist/safe-bash-command-pdftk/index.js +835 -243
- package/dist/safe-bash-command-pptx/command-engine.d.ts +15 -3
- package/dist/safe-bash-command-pptx/engine.d.ts +2 -2
- package/dist/safe-bash-command-pptx/engine.js +1 -1
- package/dist/safe-bash-command-pptx/index.js +9 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +2 -2
- package/dist/safe-bash-command-xmllint/index.js +22 -31
- package/dist/safe-bash-diff-engine/document.d.ts +2 -1
- package/dist/safe-bash-diff-engine/document.js +7 -4
- package/dist/safe-bash-presentation-engine/accessibility.js +31 -30
- package/dist/safe-bash-presentation-engine/animation-editing.js +16 -15
- package/dist/safe-bash-presentation-engine/animations.js +16 -15
- package/dist/safe-bash-presentation-engine/backgrounds.js +17 -16
- package/dist/safe-bash-presentation-engine/bytes.js +3 -3
- package/dist/safe-bash-presentation-engine/chart-editing.js +34 -33
- package/dist/safe-bash-presentation-engine/chart-object-operations.js +25 -24
- package/dist/safe-bash-presentation-engine/charts.js +31 -30
- package/dist/safe-bash-presentation-engine/command-placeholder.js +59 -55
- package/dist/safe-bash-presentation-engine/comments.js +17 -16
- package/dist/safe-bash-presentation-engine/connector-operations.js +32 -31
- package/dist/safe-bash-presentation-engine/connectors.js +29 -28
- package/dist/safe-bash-presentation-engine/content-types.js +4 -4
- package/dist/safe-bash-presentation-engine/creation.js +6 -6
- package/dist/safe-bash-presentation-engine/diff.js +32 -31
- package/dist/safe-bash-presentation-engine/drawing-enums.d.ts +10 -10
- package/dist/safe-bash-presentation-engine/drawing-format.js +20 -19
- package/dist/safe-bash-presentation-engine/drawing-operations.js +31 -30
- package/dist/safe-bash-presentation-engine/drawing-schema.js +21 -20
- package/dist/safe-bash-presentation-engine/equations.js +17 -16
- package/dist/safe-bash-presentation-engine/errors.js +2 -2
- package/dist/safe-bash-presentation-engine/fields.js +17 -16
- package/dist/safe-bash-presentation-engine/font-metrics.js +3 -3
- package/dist/safe-bash-presentation-engine/image-extraction.js +20 -19
- package/dist/safe-bash-presentation-engine/image-formatting.js +32 -31
- package/dist/safe-bash-presentation-engine/image-insertion.js +18 -17
- package/dist/safe-bash-presentation-engine/image-replacement.js +21 -20
- package/dist/safe-bash-presentation-engine/image-value.js +4 -4
- package/dist/safe-bash-presentation-engine/images.js +19 -18
- package/dist/safe-bash-presentation-engine/index.d.ts +6 -2
- package/dist/safe-bash-presentation-engine/index.js +112 -97
- package/dist/safe-bash-presentation-engine/layouts.js +16 -15
- package/dist/safe-bash-presentation-engine/length.js +3 -3
- package/dist/safe-bash-presentation-engine/links.js +16 -15
- package/dist/safe-bash-presentation-engine/masters.js +15 -14
- package/dist/safe-bash-presentation-engine/media-editing.js +24 -23
- package/dist/safe-bash-presentation-engine/media-extraction.js +17 -16
- package/dist/safe-bash-presentation-engine/media.js +16 -15
- package/dist/safe-bash-presentation-engine/memberships.js +15 -14
- package/dist/safe-bash-presentation-engine/notes.js +16 -15
- package/dist/safe-bash-presentation-engine/ole-enum.js +4 -4
- package/dist/safe-bash-presentation-engine/ole-insertion.js +20 -19
- package/dist/safe-bash-presentation-engine/opaque-objects.js +9 -9
- package/dist/safe-bash-presentation-engine/package-reader.js +5 -5
- package/dist/safe-bash-presentation-engine/package-tools.d.ts +3 -0
- package/dist/safe-bash-presentation-engine/package-tools.js +27 -17
- package/dist/safe-bash-presentation-engine/package-uri.js +3 -3
- package/dist/safe-bash-presentation-engine/package-writer.js +4 -4
- package/dist/safe-bash-presentation-engine/presentation-model.js +58 -54
- package/dist/safe-bash-presentation-engine/presentation-settings.js +14 -13
- package/dist/safe-bash-presentation-engine/properties.js +16 -15
- package/dist/safe-bash-presentation-engine/relationships.js +4 -4
- package/dist/safe-bash-presentation-engine/resource-limits.js +1 -1
- package/dist/safe-bash-presentation-engine/retained-archive-staging.d.ts +19 -0
- package/dist/safe-bash-presentation-engine/retained-extraction-output.d.ts +18 -0
- package/dist/safe-bash-presentation-engine/retained-inspection.js +14 -12
- package/dist/safe-bash-presentation-engine/retained-package-extraction.d.ts +22 -0
- package/dist/safe-bash-presentation-engine/retained-package-packing.d.ts +19 -0
- package/dist/safe-bash-presentation-engine/retained-package.d.ts +2 -0
- package/dist/safe-bash-presentation-engine/retained-package.js +6 -4
- package/dist/safe-bash-presentation-engine/retained-slide-publication.d.ts +24 -0
- package/dist/safe-bash-presentation-engine/retained-text.js +19 -17
- package/dist/safe-bash-presentation-engine/retained-xml-parts.d.ts +5 -1
- package/dist/safe-bash-presentation-engine/retained-xml-publication.d.ts +18 -0
- package/dist/safe-bash-presentation-engine/retained-xml-replacement.d.ts +13 -0
- package/dist/safe-bash-presentation-engine/sanitize.js +17 -16
- package/dist/safe-bash-presentation-engine/selectors.js +10 -10
- package/dist/safe-bash-presentation-engine/shape-groups.js +31 -30
- package/dist/safe-bash-presentation-engine/shape-operations.js +30 -29
- package/dist/safe-bash-presentation-engine/shape-path-operations.js +32 -31
- package/dist/safe-bash-presentation-engine/shape-paths.js +16 -15
- package/dist/safe-bash-presentation-engine/shape-presets.js +3 -3
- package/dist/safe-bash-presentation-engine/shape-selection.js +31 -30
- package/dist/safe-bash-presentation-engine/shape-transforms.js +18 -17
- package/dist/safe-bash-presentation-engine/shapes.d.ts +1 -1
- package/dist/safe-bash-presentation-engine/shapes.js +27 -26
- package/dist/safe-bash-presentation-engine/slide-copy.js +17 -16
- package/dist/safe-bash-presentation-engine/slide-import.js +18 -17
- package/dist/safe-bash-presentation-engine/slide-merge-split.js +20 -19
- package/dist/safe-bash-presentation-engine/slide-model.js +43 -42
- package/dist/safe-bash-presentation-engine/slide-removal.js +18 -17
- package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +9 -9
- package/dist/safe-bash-presentation-engine/slides.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/slides.js +23 -17
- package/dist/safe-bash-presentation-engine/table-operations.js +33 -32
- package/dist/safe-bash-presentation-engine/table-spans.js +32 -31
- package/dist/safe-bash-presentation-engine/tables.js +31 -30
- package/dist/safe-bash-presentation-engine/tags.js +16 -15
- package/dist/safe-bash-presentation-engine/template-bindings.js +33 -32
- package/dist/safe-bash-presentation-engine/template-repeat.js +40 -39
- package/dist/safe-bash-presentation-engine/text-fitting.js +27 -26
- package/dist/safe-bash-presentation-engine/text-frames.js +27 -26
- package/dist/safe-bash-presentation-engine/text-paragraphs.js +27 -26
- package/dist/safe-bash-presentation-engine/text-reading.js +11 -11
- package/dist/safe-bash-presentation-engine/text-replacement.js +17 -16
- package/dist/safe-bash-presentation-engine/text-runs.js +20 -19
- package/dist/safe-bash-presentation-engine/themes.js +16 -15
- package/dist/safe-bash-presentation-engine/transitions.js +16 -15
- package/dist/safe-bash-presentation-engine/validation.js +10 -9
- package/dist/safe-bash-presentation-engine/xml-parts.d.ts +2 -0
- package/dist/safe-bash-presentation-engine/xml-parts.js +23 -15
- package/dist/safe-bash-presentation-engine/xml-view.js +3 -3
- package/dist/safe-bash-presentation-engine/xml.js +3 -3
- package/dist/safe-bash-regex-engine/index.js +1 -1
- package/dist/safe-bash-regex-engine/python-glob.js +1 -1
- package/dist/safe-bash-regex-engine/text/regex.d.ts +19 -0
- package/dist/safe-bash-regex-engine/text/regex.js +1 -1
- package/dist/safe-bash-xml-engine/document.js +3 -3
- package/dist/safe-bash-xml-engine/evaluate.js +1 -1
- package/dist/safe-bash-xml-engine/index.d.ts +1 -0
- package/dist/safe-bash-xml-engine/index.js +8 -4
- package/dist/safe-bash-xml-engine/query.js +2 -2
- package/dist/safe-bash-xml-engine/recovery.d.ts +10 -0
- package/dist/safe-bash-xml-engine/stored-document.d.ts +1 -1
- package/dist/safe-bash-xml-engine/stored-document.js +1 -1
- package/dist/safe-bash-xml-engine/stored-evaluate.js +1 -1
- package/dist/spreadsheet-engine/formulas/functions/python-printf.js +56 -33
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.d.ts +2 -2
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +86 -24
- package/dist/spreadsheet-format-xls/biff-metadata.d.ts +1 -0
- package/dist/spreadsheet-format-xls/biff-metadata.js +2 -2
- package/dist/spreadsheet-format-xls/biff-properties-merge.d.ts +6 -2
- package/dist/spreadsheet-format-xls/biff-properties-merge.js +413 -296
- package/dist/spreadsheet-format-xls/biff-properties-write.js +40 -23
- package/dist/spreadsheet-format-xls/biff-properties.js +3 -68
- package/dist/spreadsheet-format-xls/biff-property-index.d.ts +23 -0
- package/dist/spreadsheet-format-xls/biff-property-index.js +93 -0
- package/dist/spreadsheet-format-xls/biff-property-name.d.ts +4 -0
- package/dist/spreadsheet-format-xls/biff-property-name.js +114 -0
- package/dist/spreadsheet-format-xls/biff-property-text.d.ts +6 -0
- package/dist/spreadsheet-format-xls/biff-property-text.js +68 -0
- package/dist/spreadsheet-format-xls/biff-property-transcode.d.ts +5 -0
- package/dist/spreadsheet-format-xls/biff-property-transcode.js +45 -0
- package/dist/spreadsheet-format-xls/biff-write-metadata.js +10 -1
- package/package.json +6 -3
- package/dist/safe-bash/command-chunks/biff-3EFLKBAH-NYWZOYQS.js +0 -4942
- package/dist/safe-bash/command-chunks/chunk-5Q22ZLNC.js +0 -127
- package/dist/safe-bash/command-chunks/chunk-JKLOBSMP.js +0 -56
- package/dist/safe-bash/command-chunks/chunk-JYTESTBS.js +0 -99
- package/dist/safe-bash/command-chunks/chunk-WH3TIOTS.js +0 -326
- package/dist/safe-bash/command-chunks/paradox-ZWWXYY4J-JYOSWSBL.js +0 -362
- package/dist/spreadsheet-format-xls/biff-properties-layout.js +0 -56
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readMemberships
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QFF5KBOM.js";
|
|
4
4
|
import {
|
|
5
5
|
remapCopiedXml
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QM2HZJSJ.js";
|
|
7
7
|
import {
|
|
8
8
|
writePackageArchive
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HKOMXGJS.js";
|
|
10
10
|
import {
|
|
11
11
|
SelectionError,
|
|
12
12
|
readSelectionIndex
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O675URF4.js";
|
|
14
14
|
import {
|
|
15
15
|
readPackage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PVGZMLC6.js";
|
|
17
17
|
import {
|
|
18
18
|
readBinary
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LD7BONZY.js";
|
|
20
20
|
import {
|
|
21
21
|
validatePresentation
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GVWVRPG6.js";
|
|
23
23
|
import {
|
|
24
24
|
parseXmlPart
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
26
26
|
import {
|
|
27
27
|
parseContentTypes
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VQOINPVF.js";
|
|
29
29
|
import {
|
|
30
30
|
readRelationshipGraph
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TODWFDYB.js";
|
|
32
32
|
import {
|
|
33
33
|
asciiKey,
|
|
34
34
|
relativePartReference
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-U5TWQFZY.js";
|
|
36
36
|
import {
|
|
37
37
|
OfficeError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
39
39
|
|
|
40
40
|
// packages/safe-bash-presentation-engine/src/slide-copy.ts
|
|
41
41
|
var dialects = [
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readBinary
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LD7BONZY.js";
|
|
4
4
|
import {
|
|
5
5
|
asciiKey,
|
|
6
6
|
partName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U5TWQFZY.js";
|
|
8
8
|
import {
|
|
9
9
|
OfficeError,
|
|
10
10
|
resolveOfficeResources
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
12
12
|
import {
|
|
13
13
|
createZipCodec
|
|
14
14
|
} from "./chunk-IOEUZ4EA.js";
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
12
12
|
relPart,
|
|
13
13
|
required,
|
|
14
14
|
unique
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
16
16
|
import {
|
|
17
17
|
SelectionError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O675URF4.js";
|
|
19
19
|
import {
|
|
20
20
|
parseXmlPart
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
22
22
|
import {
|
|
23
23
|
relativePartReference
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-U5TWQFZY.js";
|
|
25
25
|
import {
|
|
26
26
|
OfficeError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
28
28
|
|
|
29
29
|
// packages/safe-bash-presentation-engine/src/layouts.ts
|
|
30
30
|
var relationships = "http://schemas.openxmlformats.org/package/2006/relationships";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePackageArchive
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HKOMXGJS.js";
|
|
4
4
|
import {
|
|
5
5
|
SelectionError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O675URF4.js";
|
|
7
7
|
import {
|
|
8
8
|
readPackage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PVGZMLC6.js";
|
|
10
10
|
import {
|
|
11
11
|
readBinary
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LD7BONZY.js";
|
|
13
13
|
import {
|
|
14
14
|
validatePresentation
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GVWVRPG6.js";
|
|
16
16
|
import {
|
|
17
17
|
parseXmlPart
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
19
19
|
import {
|
|
20
20
|
parseContentTypes
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VQOINPVF.js";
|
|
22
22
|
import {
|
|
23
23
|
readRelationshipGraph
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TODWFDYB.js";
|
|
25
25
|
import {
|
|
26
26
|
OfficeError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
28
28
|
|
|
29
29
|
// packages/safe-bash-presentation-engine/src/memberships.ts
|
|
30
30
|
var sectionNamespace = "http://schemas.microsoft.com/office/powerpoint/2010/main";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
equationNamespaces
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z5BIM5B7.js";
|
|
4
4
|
import {
|
|
5
5
|
parseXmlPart
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
7
7
|
import {
|
|
8
8
|
OfficeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
10
10
|
|
|
11
11
|
// packages/safe-bash-presentation-engine/src/slide-copy-xml.ts
|
|
12
12
|
function attr(node, name, namespace = "") {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyTableUpdate,
|
|
3
3
|
readTable
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3TYDSGAH.js";
|
|
5
5
|
import {
|
|
6
6
|
nodeFor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EJTNVXWF.js";
|
|
8
8
|
import {
|
|
9
9
|
attr,
|
|
10
10
|
required
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
12
12
|
import {
|
|
13
13
|
parseXmlPart
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
15
15
|
import {
|
|
16
16
|
OfficeError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
18
18
|
|
|
19
19
|
// packages/safe-bash-presentation-engine/src/table-spans.ts
|
|
20
20
|
function invalid(message) {
|
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
nodeFor,
|
|
3
3
|
selected,
|
|
4
4
|
validateSelection
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EJTNVXWF.js";
|
|
6
6
|
import {
|
|
7
7
|
validateShapeOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HVW53ARH.js";
|
|
9
9
|
import {
|
|
10
10
|
attr,
|
|
11
11
|
child,
|
|
12
12
|
loadShared,
|
|
13
13
|
required
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
15
15
|
import {
|
|
16
16
|
SelectionError,
|
|
17
17
|
readSelectionIndex
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O675URF4.js";
|
|
19
19
|
import {
|
|
20
20
|
OfficeError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
22
22
|
|
|
23
23
|
// packages/safe-bash-presentation-engine/src/accessibility.ts
|
|
24
24
|
import { SaxesParser } from "saxes";
|
|
@@ -1,6 +1,154 @@
|
|
|
1
|
+
// packages/safe-bash-xml-engine/src/frames.ts
|
|
2
|
+
var StoredXmlFrames = class {
|
|
3
|
+
constructor(storage) {
|
|
4
|
+
this.storage = storage;
|
|
5
|
+
}
|
|
6
|
+
storage;
|
|
7
|
+
head = 0;
|
|
8
|
+
async execute(request) {
|
|
9
|
+
if (request.frameOperation === "push") {
|
|
10
|
+
const frame = request.frame;
|
|
11
|
+
const { namespaces: namespaces2, ...element } = frame.element;
|
|
12
|
+
const record2 = {
|
|
13
|
+
name: frame.name,
|
|
14
|
+
element,
|
|
15
|
+
namespaces: [...frame.namespaces],
|
|
16
|
+
retainNamespaces: namespaces2 === frame.namespaces
|
|
17
|
+
};
|
|
18
|
+
const source2 = JSON.stringify(record2);
|
|
19
|
+
const reference = this.storage.allocate(16 + source2.length * 2);
|
|
20
|
+
const header2 = new Uint8Array(16), view2 = new DataView(header2.buffer);
|
|
21
|
+
view2.setFloat64(0, this.head, true);
|
|
22
|
+
view2.setFloat64(8, source2.length, true);
|
|
23
|
+
await this.storage.write(reference, header2);
|
|
24
|
+
for (let index = 0; index < source2.length; index += 4096) {
|
|
25
|
+
const length2 = Math.min(4096, source2.length - index);
|
|
26
|
+
const bytes = new Uint8Array(length2 * 2), data = new DataView(bytes.buffer);
|
|
27
|
+
for (let offset = 0; offset < length2; offset++) data.setUint16(offset * 2, source2.charCodeAt(index + offset), true);
|
|
28
|
+
await this.storage.write(reference + 16 + index * 2, bytes);
|
|
29
|
+
}
|
|
30
|
+
this.head = reference;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (!this.head) throw new TypeError("Empty XML frame store");
|
|
34
|
+
const header = await this.storage.read(this.head, 16), view = new DataView(header.buffer, header.byteOffset, header.byteLength);
|
|
35
|
+
if (request.frameOperation === "pop") {
|
|
36
|
+
this.head = view.getFloat64(0, true);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const length = view.getFloat64(8, true);
|
|
40
|
+
let source = "";
|
|
41
|
+
for (let index = 0; index < length; index += 4096) {
|
|
42
|
+
const count = Math.min(4096, length - index);
|
|
43
|
+
const bytes = await this.storage.read(this.head + 16 + index * 2, count * 2);
|
|
44
|
+
const data = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength), units = new Uint16Array(count);
|
|
45
|
+
for (let offset = 0; offset < count; offset++) units[offset] = data.getUint16(offset * 2, true);
|
|
46
|
+
source += String.fromCharCode(...units);
|
|
47
|
+
}
|
|
48
|
+
const record = JSON.parse(source);
|
|
49
|
+
const namespaces = new Map(record.namespaces);
|
|
50
|
+
request.frame = {
|
|
51
|
+
name: record.name,
|
|
52
|
+
namespaces,
|
|
53
|
+
content: void 0,
|
|
54
|
+
element: { ...record.element, namespaces: record.retainNamespaces ? namespaces : /* @__PURE__ */ new Map() }
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// packages/safe-bash-xml-engine/src/recovery.ts
|
|
60
|
+
import { normalizeXmlChunks, parseXmlSourceSteps } from "@poe-platform/safe-fs/core";
|
|
61
|
+
import { PagedStorage, PagedStorageCache } from "@poe-platform/safe-fs/storage";
|
|
62
|
+
async function parseStoredXml(source, context, budget, recover, consume) {
|
|
63
|
+
const cache = new PagedStorageCache(4);
|
|
64
|
+
const storage = new PagedStorage(context, 4, cache);
|
|
65
|
+
const frameStorage = recover ? storage : new PagedStorage(context, 4, cache);
|
|
66
|
+
const input = normalizeXmlChunks(source, !recover);
|
|
67
|
+
let sourceDone = false;
|
|
68
|
+
try {
|
|
69
|
+
context.registerCleanup?.(storage.close.bind(storage));
|
|
70
|
+
if (frameStorage !== storage) context.registerCleanup?.(frameStorage.close.bind(frameStorage));
|
|
71
|
+
const start = storage.allocate(0);
|
|
72
|
+
let length = 0;
|
|
73
|
+
async function readNext() {
|
|
74
|
+
const next = await input.next();
|
|
75
|
+
if (next.done) {
|
|
76
|
+
sourceDone = true;
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const chunk = next.value;
|
|
80
|
+
const bytes = new Uint8Array(chunk.length * 2), view = new DataView(bytes.buffer);
|
|
81
|
+
for (let index = 0; index < chunk.length; index++) view.setUint16(index * 2, chunk.charCodeAt(index), true);
|
|
82
|
+
await storage.append(bytes);
|
|
83
|
+
length += chunk.length;
|
|
84
|
+
const checkpoint = budget.tick(Math.min(chunk.length, 512));
|
|
85
|
+
if (checkpoint) await checkpoint;
|
|
86
|
+
}
|
|
87
|
+
if (recover) while (!sourceDone) await readNext();
|
|
88
|
+
const queued = [];
|
|
89
|
+
const frames = new StoredXmlFrames(frameStorage);
|
|
90
|
+
const parser = parseXmlSourceSteps(recover ? length : void 0, {
|
|
91
|
+
...budget.limits,
|
|
92
|
+
maxContentNodes: budget.limits.maxNodes,
|
|
93
|
+
expectedEncoding: "UTF-8",
|
|
94
|
+
retainTree: false,
|
|
95
|
+
storeFrames: true,
|
|
96
|
+
fragmentContent: true,
|
|
97
|
+
...recover ? { recover } : {},
|
|
98
|
+
...consume ? { events: (event) => {
|
|
99
|
+
queued.push(event);
|
|
100
|
+
} } : {}
|
|
101
|
+
});
|
|
102
|
+
let step = parser.next();
|
|
103
|
+
try {
|
|
104
|
+
while (true) {
|
|
105
|
+
for (const event of queued) await consume(event);
|
|
106
|
+
queued.length = 0;
|
|
107
|
+
if (step.done) {
|
|
108
|
+
await frameStorage.close();
|
|
109
|
+
await storage.close();
|
|
110
|
+
return step.value;
|
|
111
|
+
}
|
|
112
|
+
if (typeof step.value === "number") {
|
|
113
|
+
const checkpoint = budget.tick(step.value);
|
|
114
|
+
if (checkpoint) await checkpoint;
|
|
115
|
+
} else if ("frameOperation" in step.value) {
|
|
116
|
+
await frames.execute(step.value);
|
|
117
|
+
} else {
|
|
118
|
+
const request = step.value;
|
|
119
|
+
while (length <= request.offset && !sourceDone) await readNext();
|
|
120
|
+
const count = Math.min(request.length, Math.max(0, length - request.offset));
|
|
121
|
+
const bytes = await storage.read(start + request.offset * 2, count * 2);
|
|
122
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
123
|
+
const units = new Uint16Array(count);
|
|
124
|
+
for (let index = 0; index < units.length; index++) units[index] = view.getUint16(index * 2, true);
|
|
125
|
+
request.value = String.fromCharCode(...units);
|
|
126
|
+
if (request.streaming) request.complete = sourceDone && request.offset + count === length;
|
|
127
|
+
}
|
|
128
|
+
step = parser.next();
|
|
129
|
+
}
|
|
130
|
+
} finally {
|
|
131
|
+
if (!step.done) parser.return(void 0);
|
|
132
|
+
}
|
|
133
|
+
} catch (error) {
|
|
134
|
+
try {
|
|
135
|
+
if (!sourceDone) await input.return(void 0);
|
|
136
|
+
} catch {
|
|
137
|
+
}
|
|
138
|
+
try {
|
|
139
|
+
await frameStorage.close();
|
|
140
|
+
} catch {
|
|
141
|
+
}
|
|
142
|
+
try {
|
|
143
|
+
await storage.close();
|
|
144
|
+
} catch {
|
|
145
|
+
}
|
|
146
|
+
throw error;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
1
150
|
// packages/safe-bash-xml-engine/src/stored-document.ts
|
|
2
|
-
import {
|
|
3
|
-
import { PagedStorage } from "@poe-platform/safe-fs/storage";
|
|
151
|
+
import { PagedStorage as PagedStorage2 } from "@poe-platform/safe-fs/storage";
|
|
4
152
|
var headerBytes = 72;
|
|
5
153
|
var parentField = 0;
|
|
6
154
|
var nextField = 8;
|
|
@@ -16,7 +164,7 @@ var preserveSpaceFlag = 2;
|
|
|
16
164
|
var StoredXmlDocument = class _StoredXmlDocument {
|
|
17
165
|
constructor(context, budget, pages) {
|
|
18
166
|
this.budget = budget;
|
|
19
|
-
this.storage = new
|
|
167
|
+
this.storage = new PagedStorage2(context, pages);
|
|
20
168
|
}
|
|
21
169
|
budget;
|
|
22
170
|
rootReference = 0;
|
|
@@ -29,47 +177,45 @@ var StoredXmlDocument = class _StoredXmlDocument {
|
|
|
29
177
|
get document() {
|
|
30
178
|
return this.documentReference;
|
|
31
179
|
}
|
|
32
|
-
static async parse(source, context, budget, pages = 64) {
|
|
180
|
+
static async parse(source, context, budget, pages = 64, recover) {
|
|
33
181
|
const document = new _StoredXmlDocument(context, budget, pages);
|
|
34
182
|
try {
|
|
35
183
|
context.registerCleanup?.(document.close.bind(document));
|
|
36
184
|
document.documentReference = await document.storage.append(new Uint8Array(headerBytes));
|
|
37
|
-
let parent = document.documentReference;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (attribute.namespace !== "http://www.w3.org/2000/xmlns/")
|
|
66
|
-
await document.append(reference, { kind: "attribute", value: attribute });
|
|
67
|
-
}
|
|
68
|
-
if (!document.rootReference) document.rootReference = reference;
|
|
69
|
-
parent = reference;
|
|
185
|
+
let parent = document.documentReference, fragmentTail = 0;
|
|
186
|
+
const consume = async (event) => {
|
|
187
|
+
if (event.type === "close") {
|
|
188
|
+
parent = await document.field(parent, parentField);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
let metadata;
|
|
192
|
+
if (event.type === "content") metadata = event.content;
|
|
193
|
+
else {
|
|
194
|
+
const element = event.element;
|
|
195
|
+
metadata = {
|
|
196
|
+
kind: "element",
|
|
197
|
+
name: element.name,
|
|
198
|
+
localName: element.localName,
|
|
199
|
+
namespace: element.namespace,
|
|
200
|
+
attributes: element.attributes,
|
|
201
|
+
namespaces: [...element.namespaces],
|
|
202
|
+
...element.declaration === void 0 ? {} : { declaration: element.declaration }
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
const continuation = event.type === "content" && event.continuation === true;
|
|
206
|
+
const reference = await document.append(parent, metadata, continuation);
|
|
207
|
+
if (continuation) await document.set(fragmentTail, fragmentField, reference);
|
|
208
|
+
fragmentTail = reference;
|
|
209
|
+
if (event.type === "open") {
|
|
210
|
+
for (const attribute of event.element.attributes) {
|
|
211
|
+
if (attribute.namespace !== "http://www.w3.org/2000/xmlns/")
|
|
212
|
+
await document.append(reference, { kind: "attribute", value: attribute });
|
|
70
213
|
}
|
|
214
|
+
if (!document.rootReference) document.rootReference = reference;
|
|
215
|
+
parent = reference;
|
|
71
216
|
}
|
|
72
|
-
}
|
|
217
|
+
};
|
|
218
|
+
await parseStoredXml(source, context, budget, recover, consume);
|
|
73
219
|
return document;
|
|
74
220
|
} catch (error) {
|
|
75
221
|
try {
|
|
@@ -88,7 +234,7 @@ var StoredXmlDocument = class _StoredXmlDocument {
|
|
|
88
234
|
new DataView(bytes.buffer).setFloat64(0, value, true);
|
|
89
235
|
await this.storage.write(reference + offset, bytes);
|
|
90
236
|
}
|
|
91
|
-
async append(parent, metadata) {
|
|
237
|
+
async append(parent, metadata, fragment = false) {
|
|
92
238
|
const source = JSON.stringify(metadata);
|
|
93
239
|
const encoder = new TextEncoder();
|
|
94
240
|
let size = 0, scanned = 0;
|
|
@@ -118,6 +264,7 @@ var StoredXmlDocument = class _StoredXmlDocument {
|
|
|
118
264
|
const checkpoint = this.budget.tick(bytes.length);
|
|
119
265
|
if (checkpoint) await checkpoint;
|
|
120
266
|
}
|
|
267
|
+
if (fragment) return reference;
|
|
121
268
|
const firstLink = metadata.kind === "attribute" ? firstAttributeField : firstField;
|
|
122
269
|
const lastLink = metadata.kind === "attribute" ? lastAttributeField : lastField;
|
|
123
270
|
const last = await this.field(parent, lastLink);
|
|
@@ -254,5 +401,6 @@ var StoredXmlDocument = class _StoredXmlDocument {
|
|
|
254
401
|
};
|
|
255
402
|
|
|
256
403
|
export {
|
|
404
|
+
parseStoredXml,
|
|
257
405
|
StoredXmlDocument
|
|
258
406
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
admitImage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ET2VPDUA.js";
|
|
4
4
|
import {
|
|
5
5
|
OfficeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X6RHJ6YN.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
|
requireLegacyCommentRemapping
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C5QDEB3I.js";
|
|
4
4
|
import {
|
|
5
5
|
attr,
|
|
6
6
|
child,
|
|
@@ -9,23 +9,23 @@ import {
|
|
|
9
9
|
loadShared,
|
|
10
10
|
nextRel,
|
|
11
11
|
relPart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
13
13
|
import {
|
|
14
14
|
SelectionError,
|
|
15
15
|
decodeSelectionToken
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-O675URF4.js";
|
|
17
17
|
import {
|
|
18
18
|
parseXmlPart
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
20
20
|
import {
|
|
21
21
|
parseContentTypes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VQOINPVF.js";
|
|
23
23
|
import {
|
|
24
24
|
relativePartReference
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-U5TWQFZY.js";
|
|
26
26
|
import {
|
|
27
27
|
OfficeError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
29
29
|
|
|
30
30
|
// packages/safe-bash-presentation-engine/src/modern-comments.ts
|
|
31
31
|
import { SaxesParser } from "saxes";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
htmlSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DFI7QF3M.js";
|
|
4
4
|
import {
|
|
5
5
|
Builder
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HDSIIQBS.js";
|
|
7
7
|
|
|
8
|
-
// packages/safe-bash-command-html-to-markdown/
|
|
8
|
+
// packages/safe-bash-command-html-to-markdown/dist/chunk-SZCXH5X5.js
|
|
9
9
|
var named = Object.freeze({
|
|
10
10
|
amp: "&",
|
|
11
11
|
lt: "<",
|