@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.
- package/dist/audio-ast/id3-source.d.ts +27 -0
- package/dist/audio-ast/index.d.ts +4 -0
- package/dist/audio-ast/index.js +996 -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/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 +9 -0
- 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/fonts/resolve.d.ts +3 -1
- package/dist/pdf-ast/index.d.ts +3 -1
- package/dist/pdf-ast/index.js +1557 -770
- package/dist/safe-bash/audio-ast.browser.js +6 -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-NARD63DY.js → chunk-2V6FOLXV.js} +22 -66
- 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-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-2JSDKQ4J.js → chunk-7NXTEWPR.js} +119 -44
- 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-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-CJQSAATC.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-FDCIPJBQ.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-HWQ2UHMT.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-3Q247UDJ.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-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-ZEX53S5I.js → chunk-T6C5QP7T.js} +6368 -6230
- 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-XVLWZTPY.js → chunk-TQEB4DH4.js} +543 -144
- 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-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-BCUQGJJ4.js → command-engine-X3OLN7N6.js} +150 -67
- package/dist/safe-bash/command-chunks/{engine-LAUEWYSQ-DQCEI5HE.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-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 +830 -271
- package/dist/safe-bash-command-pptx/command-engine.d.ts +3 -0
- 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-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 -56
- 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 +5 -1
- package/dist/safe-bash-presentation-engine/index.js +109 -96
- 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 -55
- 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-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.js +19 -16
- 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 +1 -1
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +47 -18
- 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/package.json +6 -3
- package/dist/safe-bash/command-chunks/biff-YKPDH35C-MVQIWNKV.js +0 -4974
- 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-ZEGNRZV2.js +0 -333
- package/dist/safe-bash/command-chunks/paradox-ZWWXYY4J-JYOSWSBL.js +0 -362
- package/dist/spreadsheet-format-xls/biff-properties-layout.js +0 -56
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validateColor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5KGEZ3RW.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-
|
|
15
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
16
16
|
import {
|
|
17
17
|
readBinary
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LD7BONZY.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/backgrounds.ts
|
|
30
30
|
var fills = ["solidFill", "gradFill", "blipFill", "noFill", "pattFill", "grpFill"];
|
|
@@ -2,22 +2,22 @@ import {
|
|
|
2
2
|
nodeFor,
|
|
3
3
|
selected,
|
|
4
4
|
validateSelection
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EJTNVXWF.js";
|
|
6
6
|
import {
|
|
7
7
|
Length
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6SRHWVEB.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
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O675URF4.js";
|
|
18
18
|
import {
|
|
19
19
|
OfficeError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
21
21
|
|
|
22
22
|
// packages/safe-bash-presentation-engine/src/shape-groups.ts
|
|
23
23
|
var shapeKinds = ["sp", "pic", "cxnSp", "graphicFrame", "grpSp"];
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
admitImage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ET2VPDUA.js";
|
|
4
4
|
import {
|
|
5
5
|
readTable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3TYDSGAH.js";
|
|
7
7
|
import {
|
|
8
8
|
nodeFor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EJTNVXWF.js";
|
|
10
10
|
import {
|
|
11
11
|
readTextBodies
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C5KLFZGT.js";
|
|
13
13
|
import {
|
|
14
14
|
child,
|
|
15
15
|
escape,
|
|
16
16
|
loadShared,
|
|
17
17
|
nextRel,
|
|
18
18
|
relPart
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
20
20
|
import {
|
|
21
21
|
protectedEquationNodes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Z5BIM5B7.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/template-bindings.ts
|
|
31
31
|
function invalid() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asciiKey,
|
|
3
3
|
partName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U5TWQFZY.js";
|
|
5
5
|
import {
|
|
6
6
|
OfficeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
8
8
|
|
|
9
9
|
// packages/safe-bash-presentation-engine/src/content-types.ts
|
|
10
10
|
import { SaxesParser } from "saxes";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readImages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-57DDYKE5.js";
|
|
4
4
|
import {
|
|
5
5
|
admitImage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ET2VPDUA.js";
|
|
7
7
|
import {
|
|
8
8
|
attr,
|
|
9
9
|
child,
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
loadShared,
|
|
12
12
|
nextRel,
|
|
13
13
|
relPart
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
15
15
|
import {
|
|
16
16
|
SelectionError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O675URF4.js";
|
|
18
18
|
import {
|
|
19
19
|
asciiKey,
|
|
20
20
|
partName,
|
|
21
21
|
relativePartReference
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-U5TWQFZY.js";
|
|
23
23
|
import {
|
|
24
24
|
OfficeError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
26
26
|
|
|
27
27
|
// packages/safe-bash-presentation-engine/src/image-replacement.ts
|
|
28
28
|
function invalid(message) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readPackage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PVGZMLC6.js";
|
|
4
4
|
import {
|
|
5
5
|
parseXmlPart
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
7
7
|
import {
|
|
8
8
|
parseContentTypes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VQOINPVF.js";
|
|
10
10
|
import {
|
|
11
11
|
readRelationshipGraph
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TODWFDYB.js";
|
|
13
13
|
import {
|
|
14
14
|
partName
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U5TWQFZY.js";
|
|
16
16
|
import {
|
|
17
17
|
OfficeError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
19
19
|
|
|
20
20
|
// packages/safe-bash-presentation-engine/src/opaque-objects.ts
|
|
21
21
|
import { sha256 } from "@noble/hashes/sha2.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attr
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
4
4
|
import {
|
|
5
5
|
SelectionError,
|
|
6
6
|
readSelectionIndex
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O675URF4.js";
|
|
8
8
|
import {
|
|
9
9
|
readPackage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PVGZMLC6.js";
|
|
11
11
|
import {
|
|
12
12
|
readBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LD7BONZY.js";
|
|
14
14
|
import {
|
|
15
15
|
equationOpaqueElements,
|
|
16
16
|
interpretCompatibility
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Z5BIM5B7.js";
|
|
18
18
|
import {
|
|
19
19
|
parseXmlPart
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
21
21
|
import {
|
|
22
22
|
OfficeError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
24
24
|
|
|
25
25
|
// packages/safe-bash-presentation-engine/src/media.ts
|
|
26
26
|
import { sha1 } from "@noble/hashes/legacy.js";
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RetainedOrder
|
|
3
|
+
} from "./chunk-ZYLGNIGA.js";
|
|
1
4
|
import {
|
|
2
5
|
SelectionError,
|
|
3
6
|
diagramContentTypes,
|
|
4
7
|
diagramRelationshipKinds,
|
|
5
8
|
prepareSelectionQuery
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O675URF4.js";
|
|
7
10
|
import {
|
|
8
11
|
dialects,
|
|
9
12
|
openRetainedCompatibility,
|
|
10
13
|
openRetainedContentTypes,
|
|
11
14
|
openRetainedRelationshipGraph
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-G3RUXKVY.js";
|
|
13
16
|
import {
|
|
14
17
|
equationOpaqueElements
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Z5BIM5B7.js";
|
|
16
19
|
import {
|
|
17
20
|
OfficeError,
|
|
18
21
|
RetainedValues,
|
|
@@ -23,7 +26,7 @@ import {
|
|
|
23
26
|
literal,
|
|
24
27
|
openRetainedXmlDocument,
|
|
25
28
|
resolveOfficeResources
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
27
30
|
|
|
28
31
|
// packages/safe-bash-presentation-engine/src/retained-inspection.ts
|
|
29
32
|
import { PagedStorage as PagedStorage6 } from "@poe-platform/safe-fs/storage";
|
|
@@ -333,157 +336,6 @@ async function openRetainedSelectionRecords(archive, fingerprint, settings) {
|
|
|
333
336
|
|
|
334
337
|
// packages/safe-bash-presentation-engine/src/retained-package-inventory.ts
|
|
335
338
|
import { PagedStorage as PagedStorage2 } from "@poe-platform/safe-fs/storage";
|
|
336
|
-
|
|
337
|
-
// packages/safe-bash-presentation-engine/src/retained-order.ts
|
|
338
|
-
async function* sortKey(source) {
|
|
339
|
-
const decoder = new TextDecoder("utf-8", { fatal: true });
|
|
340
|
-
function* encode(text) {
|
|
341
|
-
for (let offset = 0; offset < text.length; offset += 8192) {
|
|
342
|
-
const end = Math.min(offset + 8192, text.length), bytes = new Uint8Array((end - offset) * 2);
|
|
343
|
-
for (let n = offset; n < end; n++) {
|
|
344
|
-
const code = text.charCodeAt(n);
|
|
345
|
-
bytes[(n - offset) * 2] = code >>> 8;
|
|
346
|
-
bytes[(n - offset) * 2 + 1] = code & 255;
|
|
347
|
-
}
|
|
348
|
-
yield bytes;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
for await (const bytes of source) for (let offset = 0; offset < bytes.length; offset += 8192) yield* encode(decoder.decode(bytes.subarray(offset, offset + 8192), { stream: true }));
|
|
352
|
-
yield* encode(decoder.decode());
|
|
353
|
-
}
|
|
354
|
-
var RetainedOrder = class {
|
|
355
|
-
constructor(pages, values, check) {
|
|
356
|
-
this.pages = pages;
|
|
357
|
-
this.values = values;
|
|
358
|
-
this.check = check;
|
|
359
|
-
}
|
|
360
|
-
pages;
|
|
361
|
-
values;
|
|
362
|
-
check;
|
|
363
|
-
head = 0;
|
|
364
|
-
tail = 0;
|
|
365
|
-
state = "open";
|
|
366
|
-
async row(pointer) {
|
|
367
|
-
this.check();
|
|
368
|
-
const bytes = await this.pages.read(pointer, 40), view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
369
|
-
return Array.from({ length: 5 }, (_, n) => view.getFloat64(n * 8, true));
|
|
370
|
-
}
|
|
371
|
-
async write(pointer, data) {
|
|
372
|
-
this.check();
|
|
373
|
-
const bytes = new Uint8Array(data.length * 8), view = new DataView(bytes.buffer);
|
|
374
|
-
data.forEach((value, n) => view.setFloat64(n * 8, value, true));
|
|
375
|
-
await this.pages.write(pointer, bytes);
|
|
376
|
-
}
|
|
377
|
-
async add(key, value) {
|
|
378
|
-
this.check();
|
|
379
|
-
if (this.state !== "open") throw new OfficeError("invalid-handle", "Ordered inventory is sealed.", "index");
|
|
380
|
-
const stored = await this.values.store(sortKey(key)), pointer = this.pages.allocate(40);
|
|
381
|
-
await this.write(pointer, [0, stored.start, stored.length, value.start, value.length]);
|
|
382
|
-
if (this.tail) await this.write(this.tail, [pointer]);
|
|
383
|
-
else this.head = pointer;
|
|
384
|
-
this.tail = pointer;
|
|
385
|
-
}
|
|
386
|
-
async compare(left, right) {
|
|
387
|
-
const a = this.values.read({ start: left[1], length: left[2] })[Symbol.asyncIterator]();
|
|
388
|
-
const b = this.values.read({ start: right[1], length: right[2] })[Symbol.asyncIterator]();
|
|
389
|
-
let x = new Uint8Array(), y = new Uint8Array(), i = 0, j = 0, ae = false, be = false, failed = false;
|
|
390
|
-
try {
|
|
391
|
-
for (; ; ) {
|
|
392
|
-
this.check();
|
|
393
|
-
while (i === x.length && !ae) {
|
|
394
|
-
const next = await a.next();
|
|
395
|
-
ae = !!next.done;
|
|
396
|
-
x = ae ? new Uint8Array() : new Uint8Array(next.value);
|
|
397
|
-
i = 0;
|
|
398
|
-
}
|
|
399
|
-
while (j === y.length && !be) {
|
|
400
|
-
const next = await b.next();
|
|
401
|
-
be = !!next.done;
|
|
402
|
-
y = be ? new Uint8Array() : new Uint8Array(next.value);
|
|
403
|
-
j = 0;
|
|
404
|
-
}
|
|
405
|
-
if (ae || be) return ae === be ? 0 : ae ? -1 : 1;
|
|
406
|
-
const count = Math.min(x.length - i, y.length - j);
|
|
407
|
-
for (let n = 0; n < count; n++) if (x[i + n] !== y[j + n]) return x[i + n] < y[j + n] ? -1 : 1;
|
|
408
|
-
i += count;
|
|
409
|
-
j += count;
|
|
410
|
-
}
|
|
411
|
-
} catch (error) {
|
|
412
|
-
failed = true;
|
|
413
|
-
throw error;
|
|
414
|
-
} finally {
|
|
415
|
-
const outcomes = await Promise.allSettled([Promise.resolve().then(() => a.return?.()), Promise.resolve().then(() => b.return?.())]);
|
|
416
|
-
if (!failed) {
|
|
417
|
-
for (const outcome of outcomes) if (outcome.status === "rejected") await Promise.reject(outcome.reason);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
async seal() {
|
|
422
|
-
this.check();
|
|
423
|
-
if (this.state === "ready") return;
|
|
424
|
-
if (this.state !== "open") throw new OfficeError("invalid-handle", "Ordered inventory cannot be sealed.", "index");
|
|
425
|
-
this.state = "sorting";
|
|
426
|
-
try {
|
|
427
|
-
for (let width = 1; this.head; width *= 2) {
|
|
428
|
-
let p = this.head, head = 0, tail = 0, merges = 0;
|
|
429
|
-
while (p) {
|
|
430
|
-
merges++;
|
|
431
|
-
let q = p, left = 0, right = width;
|
|
432
|
-
for (let n = 0; n < width && q; n++) {
|
|
433
|
-
left++;
|
|
434
|
-
q = (await this.row(q))[0];
|
|
435
|
-
}
|
|
436
|
-
while (left || right && q) {
|
|
437
|
-
let next;
|
|
438
|
-
if (!left) {
|
|
439
|
-
next = q;
|
|
440
|
-
q = (await this.row(q))[0];
|
|
441
|
-
right--;
|
|
442
|
-
} else if (!right || !q) {
|
|
443
|
-
next = p;
|
|
444
|
-
p = (await this.row(p))[0];
|
|
445
|
-
left--;
|
|
446
|
-
} else {
|
|
447
|
-
const a = await this.row(p), b = await this.row(q);
|
|
448
|
-
if (await this.compare(a, b) <= 0) {
|
|
449
|
-
next = p;
|
|
450
|
-
p = a[0];
|
|
451
|
-
left--;
|
|
452
|
-
} else {
|
|
453
|
-
next = q;
|
|
454
|
-
q = b[0];
|
|
455
|
-
right--;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
if (tail) await this.write(tail, [next]);
|
|
459
|
-
else head = next;
|
|
460
|
-
tail = next;
|
|
461
|
-
}
|
|
462
|
-
p = q;
|
|
463
|
-
}
|
|
464
|
-
await this.write(tail, [0]);
|
|
465
|
-
this.head = head;
|
|
466
|
-
this.tail = tail;
|
|
467
|
-
if (merges <= 1) break;
|
|
468
|
-
}
|
|
469
|
-
this.state = "ready";
|
|
470
|
-
} catch (error) {
|
|
471
|
-
this.state = "failed";
|
|
472
|
-
throw error;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
async *entries() {
|
|
476
|
-
this.check();
|
|
477
|
-
if (this.state !== "ready") throw new OfficeError("invalid-handle", "Ordered inventory is not sealed.", "index");
|
|
478
|
-
for (let pointer = this.head; pointer; ) {
|
|
479
|
-
const data = await this.row(pointer);
|
|
480
|
-
yield { start: data[3], length: data[4] };
|
|
481
|
-
pointer = data[0];
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
// packages/safe-bash-presentation-engine/src/retained-package-inventory.ts
|
|
487
339
|
var diagramKinds = Object.keys(diagramContentTypes);
|
|
488
340
|
var targetKinds = ["slideMaster", "slideLayout", "theme"];
|
|
489
341
|
async function* joined(...sources) {
|
|
@@ -1554,7 +1406,9 @@ async function stageRetainedInspection(archive, fingerprint, selection, settings
|
|
|
1554
1406
|
}
|
|
1555
1407
|
|
|
1556
1408
|
export {
|
|
1409
|
+
rawJson,
|
|
1557
1410
|
streamJson,
|
|
1411
|
+
boundedOutput,
|
|
1558
1412
|
stageRetainedOutput,
|
|
1559
1413
|
openRetainedPresentationIndex,
|
|
1560
1414
|
stageRetainedInspection
|
|
@@ -538,18 +538,18 @@ async function openRetainedXmlDocument(source, settings) {
|
|
|
538
538
|
const range = (row2, field) => Object.freeze({ start: row2[field], length: row2[field + 1] });
|
|
539
539
|
async function row(pointer) {
|
|
540
540
|
check();
|
|
541
|
-
const bytes = await pages.read(pointer,
|
|
542
|
-
return Array.from({ length:
|
|
541
|
+
const bytes = await pages.read(pointer, 20 /* Count */ * 8), view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
542
|
+
return Array.from({ length: 20 /* Count */ }, (_, field) => view.getFloat64(field * 8, true));
|
|
543
543
|
}
|
|
544
544
|
async function save(pointer, values) {
|
|
545
545
|
check();
|
|
546
|
-
const bytes = new Uint8Array(
|
|
547
|
-
for (let field = 0; field <
|
|
546
|
+
const bytes = new Uint8Array(20 /* Count */ * 8), view = new DataView(bytes.buffer);
|
|
547
|
+
for (let field = 0; field < 20 /* Count */; field++) view.setFloat64(field * 8, values[field], true);
|
|
548
548
|
await pages.write(pointer, bytes);
|
|
549
549
|
}
|
|
550
550
|
async function create(kind, parent, name, value) {
|
|
551
551
|
if (kind !== 0 && kind !== 6 && ++count > context.xmlLimits.maxNodes) throw new OfficeError("resource-limit", "XML node limit exceeded.", "parse");
|
|
552
|
-
const pointer = pages.allocate(
|
|
552
|
+
const pointer = pages.allocate(20 /* Count */ * 8), values = new Array(20 /* Count */).fill(0);
|
|
553
553
|
values[0 /* Kind */] = kind;
|
|
554
554
|
values[1 /* Parent */] = parent;
|
|
555
555
|
if (name) {
|
|
@@ -776,11 +776,22 @@ async function openRetainedXmlDocument(source, settings) {
|
|
|
776
776
|
} else if (token.kind === "start-end") {
|
|
777
777
|
await openElement(current);
|
|
778
778
|
if (token.empty) {
|
|
779
|
+
const values = await row(current);
|
|
780
|
+
values[19 /* End */] = token.range.start;
|
|
781
|
+
await save(current, values);
|
|
779
782
|
current = await closeElement(current);
|
|
780
783
|
depth--;
|
|
781
784
|
}
|
|
782
785
|
} else if (token.kind === "end-name") {
|
|
783
786
|
if (current === document || !await equal(xml.read(token.range), xml.read(range(await row(current), 8 /* Name */)))) invalid2();
|
|
787
|
+
const values = await row(current);
|
|
788
|
+
let end = token.range.start + token.range.length;
|
|
789
|
+
outer: for await (const bytes of xml.read({ start: end, length: xml.byteLength - end })) for (const byte of bytes) {
|
|
790
|
+
end++;
|
|
791
|
+
if (byte === 62) break outer;
|
|
792
|
+
}
|
|
793
|
+
values[19 /* End */] = end;
|
|
794
|
+
await save(current, values);
|
|
784
795
|
current = await closeElement(current);
|
|
785
796
|
depth--;
|
|
786
797
|
} else {
|
|
@@ -795,6 +806,11 @@ async function openRetainedXmlDocument(source, settings) {
|
|
|
795
806
|
}
|
|
796
807
|
}
|
|
797
808
|
if (!root || current !== document) invalid2();
|
|
809
|
+
async function element(node) {
|
|
810
|
+
const pointer = address(node), values = await row(pointer);
|
|
811
|
+
if (values[0 /* Kind */] !== 1) throw new OfficeError("invalid-handle", "An XML element is required.", "parse");
|
|
812
|
+
return { pointer, values };
|
|
813
|
+
}
|
|
798
814
|
const api = {
|
|
799
815
|
root: await handle(root),
|
|
800
816
|
nodeCount: count,
|
|
@@ -851,6 +867,69 @@ async function openRetainedXmlDocument(source, settings) {
|
|
|
851
867
|
throw failure(error);
|
|
852
868
|
}
|
|
853
869
|
},
|
|
870
|
+
async *declarations(node) {
|
|
871
|
+
try {
|
|
872
|
+
const { values } = await element(node);
|
|
873
|
+
for (let pointer = values[5 /* Attrs */]; pointer; ) {
|
|
874
|
+
const attribute2 = await row(pointer);
|
|
875
|
+
if (attribute2[16 /* Namespace */] === -2) yield await handle(pointer);
|
|
876
|
+
pointer = attribute2[4 /* Next */];
|
|
877
|
+
}
|
|
878
|
+
check();
|
|
879
|
+
} catch (error) {
|
|
880
|
+
throw failure(error);
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
async *elements(node) {
|
|
884
|
+
try {
|
|
885
|
+
const { pointer: base, values: original } = await element(node);
|
|
886
|
+
yield node;
|
|
887
|
+
let pointer = original[2 /* First */];
|
|
888
|
+
while (pointer) {
|
|
889
|
+
let values = await row(pointer);
|
|
890
|
+
if (values[0 /* Kind */] === 1) yield await handle(pointer);
|
|
891
|
+
if (values[2 /* First */]) {
|
|
892
|
+
pointer = values[2 /* First */];
|
|
893
|
+
continue;
|
|
894
|
+
}
|
|
895
|
+
while (!values[4 /* Next */] && values[1 /* Parent */] !== base) {
|
|
896
|
+
pointer = values[1 /* Parent */];
|
|
897
|
+
values = await row(pointer);
|
|
898
|
+
}
|
|
899
|
+
pointer = values[4 /* Next */];
|
|
900
|
+
}
|
|
901
|
+
check();
|
|
902
|
+
} catch (error) {
|
|
903
|
+
throw failure(error);
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
async *markup(node) {
|
|
907
|
+
try {
|
|
908
|
+
const { values } = await element(node), start = values[8 /* Name */] - 1;
|
|
909
|
+
yield* xml.read({ start, length: values[19 /* End */] - start });
|
|
910
|
+
check();
|
|
911
|
+
} catch (error) {
|
|
912
|
+
throw failure(error);
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
async *shell(node) {
|
|
916
|
+
try {
|
|
917
|
+
const { values } = await element(node);
|
|
918
|
+
let start = values[8 /* Name */] - 1;
|
|
919
|
+
for (let pointer = values[2 /* First */]; pointer; ) {
|
|
920
|
+
const child = await row(pointer);
|
|
921
|
+
if (child[0 /* Kind */] === 1) {
|
|
922
|
+
yield* xml.read({ start, length: child[8 /* Name */] - 1 - start });
|
|
923
|
+
start = child[19 /* End */];
|
|
924
|
+
}
|
|
925
|
+
pointer = child[4 /* Next */];
|
|
926
|
+
}
|
|
927
|
+
yield* xml.read({ start, length: values[19 /* End */] - start });
|
|
928
|
+
check();
|
|
929
|
+
} catch (error) {
|
|
930
|
+
throw failure(error);
|
|
931
|
+
}
|
|
932
|
+
},
|
|
854
933
|
async *namespace(node) {
|
|
855
934
|
try {
|
|
856
935
|
yield* namespaceValue((await row(address(node)))[16 /* Namespace */]);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attr,
|
|
3
3
|
invalid
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
5
5
|
import {
|
|
6
6
|
SelectionError,
|
|
7
7
|
readSelectionIndex
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-O675URF4.js";
|
|
9
9
|
import {
|
|
10
10
|
readPackage
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PVGZMLC6.js";
|
|
12
12
|
import {
|
|
13
13
|
readBinary
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LD7BONZY.js";
|
|
15
15
|
import {
|
|
16
16
|
parseXmlPart
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
18
18
|
import {
|
|
19
19
|
OfficeError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
21
21
|
|
|
22
22
|
// packages/safe-bash-presentation-engine/src/animations.ts
|
|
23
23
|
async function readAnimations(input, options, context) {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
escape,
|
|
5
5
|
invalid,
|
|
6
6
|
loadShared
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
8
8
|
import {
|
|
9
9
|
SelectionError,
|
|
10
10
|
decodeSelectionToken
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-O675URF4.js";
|
|
12
12
|
import {
|
|
13
13
|
parseXmlPart
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
15
15
|
import {
|
|
16
16
|
partName
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-U5TWQFZY.js";
|
|
18
18
|
import {
|
|
19
19
|
OfficeError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
21
21
|
|
|
22
22
|
// packages/safe-bash-presentation-engine/src/animation-editing.ts
|
|
23
23
|
import { SaxesParser } from "saxes";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readTextBodies,
|
|
3
3
|
validateTextReadingOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C5KLFZGT.js";
|
|
5
5
|
import {
|
|
6
6
|
loadShared
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
8
8
|
import {
|
|
9
9
|
SelectionError,
|
|
10
10
|
readSelectionIndex
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-O675URF4.js";
|
|
12
12
|
import {
|
|
13
13
|
readPackage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PVGZMLC6.js";
|
|
15
15
|
import {
|
|
16
16
|
readBinary
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LD7BONZY.js";
|
|
18
18
|
import {
|
|
19
19
|
parseXmlPart
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
21
21
|
import {
|
|
22
22
|
OfficeError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
24
24
|
|
|
25
25
|
// packages/safe-bash-presentation-engine/src/equations.ts
|
|
26
26
|
import { SaxesParser } from "saxes";
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
nodeFor,
|
|
3
3
|
selected,
|
|
4
4
|
validateSelection
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EJTNVXWF.js";
|
|
6
6
|
import {
|
|
7
7
|
attr,
|
|
8
8
|
child,
|
|
9
9
|
loadShared
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
11
11
|
import {
|
|
12
12
|
OfficeError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
14
14
|
|
|
15
15
|
// packages/safe-bash-presentation-engine/src/charts.ts
|
|
16
16
|
import { SaxesParser } from "saxes";
|