@poe-platform/safe-bash 0.1.806 → 0.1.807
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/README.md +4 -0
- package/dist/image-ast/portable.d.ts +8 -0
- package/dist/image-ast/portable.js +2 -0
- package/dist/safe-bash/chunks/{chunk-KRA6WK4Z.js → chunk-3Y54SR4R.js} +6 -6
- package/dist/safe-bash/chunks/{chunk-OYJI4L4J.js → chunk-PPAA3LJS.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-SCROOJV7.js → chunk-XZ2Y4RWC.js} +2 -2
- package/dist/safe-bash/command-chunks/{biff-AU4VGVMD-6EQ64QPG.js → biff-YBHP7ZES-M7TU7NA5.js} +1211 -1205
- package/dist/safe-bash/command-chunks/chunk-2A6TBB4F.js +14 -0
- package/dist/safe-bash/command-chunks/chunk-2AF7J6FE.js +372 -0
- package/dist/safe-bash/command-chunks/{chunk-AITNVBXO.js → chunk-2ANW3FXH.js} +4 -4
- package/dist/safe-bash/command-chunks/chunk-2B6XWO6A.js +730 -0
- package/dist/safe-bash/command-chunks/chunk-2BKOSQD3.js +11 -0
- package/dist/safe-bash/command-chunks/chunk-2EUH5B6A.js +127 -0
- package/dist/safe-bash/command-chunks/chunk-2FOLUJLI.js +400 -0
- package/dist/safe-bash/command-chunks/{chunk-CZLX3KVF.js → chunk-2GILUQJY.js} +4 -6
- package/dist/safe-bash/command-chunks/chunk-2HHGDJ7J.js +280 -0
- package/dist/safe-bash/command-chunks/chunk-2NE2GPSF.js +546 -0
- package/dist/safe-bash/command-chunks/chunk-2P7BLWWI.js +272 -0
- package/dist/safe-bash/command-chunks/chunk-2PSVE7I5.js +101 -0
- package/dist/safe-bash/command-chunks/chunk-2UUFZMOH.js +503 -0
- package/dist/safe-bash/command-chunks/chunk-2VGAC6S6.js +393 -0
- package/dist/safe-bash/command-chunks/chunk-2W54TAGI.js +162 -0
- package/dist/safe-bash/command-chunks/chunk-326A5G42.js +328 -0
- package/dist/safe-bash/command-chunks/chunk-36KIT4DU.js +218 -0
- package/dist/safe-bash/command-chunks/chunk-3CHQG25N.js +455 -0
- package/dist/safe-bash/command-chunks/chunk-3JQ3RF2O.js +72 -0
- package/dist/safe-bash/command-chunks/chunk-3MLJWSYL.js +92 -0
- package/dist/safe-bash/command-chunks/{chunk-ASYR2LU7.js → chunk-3RQCLLQA.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-3SEQG5JH.js +521 -0
- package/dist/safe-bash/command-chunks/chunk-3SWT2KYH.js +78 -0
- package/dist/safe-bash/command-chunks/chunk-3VETFXYR.js +170 -0
- package/dist/safe-bash/command-chunks/chunk-3W6PTHHB.js +65 -0
- package/dist/safe-bash/command-chunks/chunk-457CU3IC.js +8 -0
- package/dist/safe-bash/command-chunks/chunk-45BW6MGM.js +250 -0
- package/dist/safe-bash/command-chunks/chunk-47MFDPH4.js +419 -0
- package/dist/safe-bash/command-chunks/chunk-4ATHODCG.js +444 -0
- package/dist/safe-bash/command-chunks/chunk-4DJICIFV.js +227 -0
- package/dist/safe-bash/command-chunks/chunk-4FNQPK7C.js +385 -0
- package/dist/safe-bash/command-chunks/chunk-4LXDJES2.js +65 -0
- package/dist/safe-bash/command-chunks/chunk-4QRXKUD2.js +662 -0
- package/dist/safe-bash/command-chunks/chunk-4QYNOBWZ.js +455 -0
- package/dist/safe-bash/command-chunks/{chunk-MWNWT6HG.js → chunk-4XFFIKA3.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-5AU5ENL5.js +180 -0
- package/dist/safe-bash/command-chunks/chunk-5DFZAJHL.js +324 -0
- package/dist/safe-bash/command-chunks/chunk-5GEFJROP.js +270 -0
- package/dist/safe-bash/command-chunks/chunk-5HWX4XYW.js +263 -0
- package/dist/safe-bash/command-chunks/chunk-5LKNP4IF.js +872 -0
- package/dist/safe-bash/command-chunks/chunk-5OEHUIVE.js +240 -0
- package/dist/safe-bash/command-chunks/chunk-6EHVFKM7.js +171 -0
- package/dist/safe-bash/command-chunks/chunk-6JTPLJ3B.js +155 -0
- package/dist/safe-bash/command-chunks/chunk-6KLUPQ65.js +496 -0
- package/dist/safe-bash/command-chunks/chunk-6NS5RXQ7.js +285 -0
- package/dist/safe-bash/command-chunks/chunk-6PJIQEH4.js +3472 -0
- package/dist/safe-bash/command-chunks/chunk-763ECQWB.js +566 -0
- package/dist/safe-bash/command-chunks/chunk-7DADVPKN.js +23 -0
- package/dist/safe-bash/command-chunks/chunk-7LEADSSA.js +164 -0
- package/dist/safe-bash/command-chunks/chunk-7MMSBVUP.js +732 -0
- package/dist/safe-bash/command-chunks/chunk-7OXNWLSL.js +35 -0
- package/dist/safe-bash/command-chunks/chunk-7PZASWL6.js +354 -0
- package/dist/safe-bash/command-chunks/{chunk-ZBR3UH4P.js → chunk-7QH3WAMQ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-CB3HTIDK.js → chunk-7SOE7XIS.js} +11 -11
- package/dist/safe-bash/command-chunks/chunk-7Y3ZQ6FE.js +56 -0
- package/dist/safe-bash/command-chunks/chunk-A2YEQYCC.js +289 -0
- package/dist/safe-bash/command-chunks/chunk-A3XE767Q.js +502 -0
- package/dist/safe-bash/command-chunks/{chunk-MWY75E3F.js → chunk-A6LCBGE6.js} +187 -187
- package/dist/safe-bash/command-chunks/{chunk-HFUL6E5I.js → chunk-A7CE4EIU.js} +33 -151
- package/dist/safe-bash/command-chunks/chunk-A7EMM3SB.js +297 -0
- package/dist/safe-bash/command-chunks/{chunk-G3YO3JIN.js → chunk-ABH5FMMA.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-AEJZEGW7.js +1376 -0
- package/dist/safe-bash/command-chunks/chunk-AELXRNM6.js +207 -0
- package/dist/safe-bash/command-chunks/chunk-AEZIPWRI.js +260 -0
- package/dist/safe-bash/command-chunks/{chunk-AHD3CGAY.js → chunk-AFPXADZG.js} +4 -4
- package/dist/safe-bash/command-chunks/chunk-AIOB34IX.js +201 -0
- package/dist/safe-bash/command-chunks/chunk-AJEYCC4X.js +262 -0
- package/dist/safe-bash/command-chunks/chunk-ALMHXDKZ.js +321 -0
- package/dist/safe-bash/command-chunks/chunk-AQ6RTM2M.js +309 -0
- package/dist/safe-bash/command-chunks/chunk-AQNFEGMZ.js +481 -0
- package/dist/safe-bash/command-chunks/{chunk-2AKKYY5G.js → chunk-ASZ4EMKE.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-AYJGINE5.js +144 -0
- package/dist/safe-bash/command-chunks/{chunk-MRFW2E6B.js → chunk-B4UWZCQR.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-BDYKJTBQ.js +43 -0
- package/dist/safe-bash/command-chunks/chunk-BERVTMQB.js +41 -0
- package/dist/safe-bash/command-chunks/chunk-BZOY2UMP.js +275 -0
- package/dist/safe-bash/command-chunks/{chunk-W47KIMSP.js → chunk-C2EYJT4S.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-CK5Q6RDE.js +342 -0
- package/dist/safe-bash/command-chunks/chunk-CKEODJVT.js +992 -0
- package/dist/safe-bash/command-chunks/{chunk-Z7UIOPHJ.js → chunk-DCMSPMMD.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-DE66JRWJ.js +352 -0
- package/dist/safe-bash/command-chunks/chunk-DKNNYPOI.js +409 -0
- package/dist/safe-bash/command-chunks/chunk-DV745GFU.js +294 -0
- package/dist/safe-bash/command-chunks/chunk-DXX2Z2QA.js +33 -0
- package/dist/safe-bash/command-chunks/chunk-E7AYF54A.js +473 -0
- package/dist/safe-bash/command-chunks/chunk-EDSFQJAU.js +159 -0
- package/dist/safe-bash/command-chunks/{chunk-UQ3KEUCF.js → chunk-ESD5ZD74.js} +7 -1
- package/dist/safe-bash/command-chunks/chunk-EUXUCRCI.js +1739 -0
- package/dist/safe-bash/command-chunks/chunk-F2ORFLCH.js +3669 -0
- package/dist/safe-bash/command-chunks/chunk-FANIWOBM.js +311 -0
- package/dist/safe-bash/command-chunks/chunk-FOO3AXFK.js +47 -0
- package/dist/safe-bash/command-chunks/chunk-FRZ5P5AB.js +131 -0
- package/dist/safe-bash/command-chunks/chunk-FZSQMMYV.js +276 -0
- package/dist/safe-bash/command-chunks/{chunk-P6NUIMMX.js → chunk-G5F2VSQ7.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-GGOZXIGH.js +299 -0
- package/dist/safe-bash/command-chunks/chunk-GIESJLR2.js +241 -0
- package/dist/safe-bash/command-chunks/chunk-GLPIFP7N.js +385 -0
- package/dist/safe-bash/command-chunks/chunk-GZ2N24A2.js +342 -0
- package/dist/safe-bash/command-chunks/chunk-H2NWPMNW.js +216 -0
- package/dist/safe-bash/command-chunks/chunk-HHLVI2CB.js +3949 -0
- package/dist/safe-bash/command-chunks/chunk-HJDE7ZNV.js +82 -0
- package/dist/safe-bash/command-chunks/chunk-HOAM3F5I.js +124 -0
- package/dist/safe-bash/command-chunks/chunk-HPKUFWHW.js +482 -0
- package/dist/safe-bash/command-chunks/chunk-HPMVMOD2.js +109 -0
- package/dist/safe-bash/command-chunks/chunk-HQAHDJPX.js +8 -0
- package/dist/safe-bash/command-chunks/chunk-HR2Y6YEP.js +12 -0
- package/dist/safe-bash/command-chunks/chunk-HUNXIAOL.js +62 -0
- package/dist/safe-bash/command-chunks/chunk-I4JWZOSP.js +244 -0
- package/dist/safe-bash/command-chunks/chunk-I6AMDG2T.js +85 -0
- package/dist/safe-bash/command-chunks/chunk-IB2Q5CL3.js +288 -0
- package/dist/safe-bash/command-chunks/chunk-IFNLDOJ4.js +316 -0
- package/dist/safe-bash/command-chunks/chunk-IKHBXETN.js +174 -0
- package/dist/safe-bash/command-chunks/chunk-IOSWG5JS.js +228 -0
- package/dist/safe-bash/command-chunks/chunk-IQFRPIXH.js +317 -0
- package/dist/safe-bash/command-chunks/chunk-IR6ZKAUH.js +582 -0
- package/dist/safe-bash/command-chunks/chunk-IW7PEB4I.js +297 -0
- package/dist/safe-bash/command-chunks/chunk-JGGRMERW.js +36 -0
- package/dist/safe-bash/command-chunks/chunk-JHAY3KYC.js +520 -0
- package/dist/safe-bash/command-chunks/{chunk-UO25D4WG.js → chunk-JITDS55R.js} +22 -22
- package/dist/safe-bash/command-chunks/chunk-JJK3CU7Z.js +6 -0
- package/dist/safe-bash/command-chunks/{chunk-XKZWUMH4.js → chunk-JN7GNI2C.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-JQ3EJKHF.js +160 -0
- package/dist/safe-bash/command-chunks/chunk-JQE256UO.js +292 -0
- package/dist/safe-bash/command-chunks/chunk-JQZ3BXWY.js +382 -0
- package/dist/safe-bash/command-chunks/{chunk-7DLR4HCC.js → chunk-JWSOFSGI.js} +22 -22
- package/dist/safe-bash/command-chunks/chunk-K3CDZMUN.js +168 -0
- package/dist/safe-bash/command-chunks/{chunk-SUYSZJI3.js → chunk-K5COUQAQ.js} +4 -4
- package/dist/safe-bash/command-chunks/chunk-K7HUXUN2.js +489 -0
- package/dist/safe-bash/command-chunks/chunk-KB3CY3QO.js +62 -0
- package/dist/safe-bash/command-chunks/chunk-KCBVOYAY.js +92 -0
- package/dist/safe-bash/command-chunks/chunk-KD25ICP4.js +366 -0
- package/dist/safe-bash/command-chunks/chunk-KDKQ5D55.js +180 -0
- package/dist/safe-bash/command-chunks/chunk-KNKDUEDW.js +521 -0
- package/dist/safe-bash/command-chunks/chunk-KR2PQ7GD.js +174 -0
- package/dist/safe-bash/command-chunks/chunk-KS6WUDPM.js +153 -0
- package/dist/safe-bash/command-chunks/{chunk-XFHUSZBM.js → chunk-KUGV3SSL.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-L2JAP5KO.js +249 -0
- package/dist/safe-bash/command-chunks/chunk-L2KEA6SN.js +271 -0
- package/dist/safe-bash/command-chunks/chunk-L3WY5ASN.js +526 -0
- package/dist/safe-bash/command-chunks/chunk-L4XEXXVQ.js +399 -0
- package/dist/safe-bash/command-chunks/chunk-LDTUZIJK.js +90 -0
- package/dist/safe-bash/command-chunks/chunk-LHDB4QO5.js +479 -0
- package/dist/safe-bash/command-chunks/chunk-LHL6RWGJ.js +548 -0
- package/dist/safe-bash/command-chunks/chunk-LHRXDH45.js +164 -0
- package/dist/safe-bash/command-chunks/chunk-LQOKYG3O.js +153 -0
- package/dist/safe-bash/command-chunks/chunk-LRDME6WV.js +12 -0
- package/dist/safe-bash/command-chunks/chunk-LWVDJB5S.js +305 -0
- package/dist/safe-bash/command-chunks/chunk-M57GLLK4.js +27 -0
- package/dist/safe-bash/command-chunks/chunk-MAHX3IW3.js +108 -0
- package/dist/safe-bash/command-chunks/{chunk-LQZSR6DT.js → chunk-MDV7W5AS.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-MG7AJD5E.js +168 -0
- package/dist/safe-bash/command-chunks/chunk-MHJ3DQUE.js +213 -0
- package/dist/safe-bash/command-chunks/chunk-MLGNBD7V.js +552 -0
- package/dist/safe-bash/command-chunks/chunk-MN2M33JK.js +237 -0
- package/dist/safe-bash/command-chunks/chunk-MOL3TRBT.js +32 -0
- package/dist/safe-bash/command-chunks/chunk-MQFXMBGD.js +75 -0
- package/dist/safe-bash/command-chunks/chunk-MQPWE22J.js +171 -0
- package/dist/safe-bash/command-chunks/chunk-MQU6Q75R.js +523 -0
- package/dist/safe-bash/command-chunks/chunk-MWAAMNAM.js +353 -0
- package/dist/safe-bash/command-chunks/chunk-MZ4BTMTI.js +240 -0
- package/dist/safe-bash/command-chunks/chunk-N4DY4FPA.js +679 -0
- package/dist/safe-bash/command-chunks/chunk-N74TJL6X.js +183 -0
- package/dist/safe-bash/command-chunks/chunk-NA5Q4V2H.js +304 -0
- package/dist/safe-bash/command-chunks/chunk-NSM366N6.js +22 -0
- package/dist/safe-bash/command-chunks/chunk-NY4ZPV3N.js +523 -0
- package/dist/safe-bash/command-chunks/chunk-NYBF2BVE.js +17 -0
- package/dist/safe-bash/command-chunks/chunk-OBK24KGM.js +24 -0
- package/dist/safe-bash/command-chunks/{chunk-GDAS4LY7.js → chunk-OEKLEUUW.js} +4 -4
- package/dist/safe-bash/command-chunks/chunk-OGWJD5QP.js +404 -0
- package/dist/safe-bash/command-chunks/chunk-OIPATOZW.js +154 -0
- package/dist/safe-bash/command-chunks/chunk-OP6J3OLL.js +243 -0
- package/dist/safe-bash/command-chunks/chunk-OTTMIB3C.js +266 -0
- package/dist/safe-bash/command-chunks/{chunk-OZHPB4KD.js → chunk-OU4VE5CR.js} +12 -12
- package/dist/safe-bash/command-chunks/chunk-P42REFYL.js +228 -0
- package/dist/safe-bash/command-chunks/{chunk-YJ3TFZB2.js → chunk-PQOAM5SC.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-PQOIOVF2.js +444 -0
- package/dist/safe-bash/command-chunks/chunk-PRQEVUNE.js +205 -0
- package/dist/safe-bash/command-chunks/{chunk-W5OR7COJ.js → chunk-PVLPWVRH.js} +21 -21
- package/dist/safe-bash/command-chunks/{chunk-BNG4ZMZ3.js → chunk-PXL4NBYP.js} +1 -78
- package/dist/safe-bash/command-chunks/chunk-Q6W5FRZG.js +41 -0
- package/dist/safe-bash/command-chunks/{chunk-KLCHCSIV.js → chunk-QGD64UHJ.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-QHS7PDG3.js +188 -0
- package/dist/safe-bash/command-chunks/chunk-QXCSASIE.js +151 -0
- package/dist/safe-bash/command-chunks/chunk-QYCBVKFT.js +255 -0
- package/dist/safe-bash/command-chunks/chunk-R4TYL2G6.js +1529 -0
- package/dist/safe-bash/command-chunks/chunk-RAXJVM4U.js +625 -0
- package/dist/safe-bash/command-chunks/chunk-RBFZYSZZ.js +207 -0
- package/dist/safe-bash/command-chunks/chunk-RJHVJZ4H.js +185 -0
- package/dist/safe-bash/command-chunks/chunk-RKPPUYZE.js +213 -0
- package/dist/safe-bash/command-chunks/chunk-RMJNV6Q7.js +23 -0
- package/dist/safe-bash/command-chunks/{chunk-MR2RLUPV.js → chunk-RQHQCJMV.js} +11 -9
- package/dist/safe-bash/command-chunks/chunk-RR6QQ25D.js +71 -0
- package/dist/safe-bash/command-chunks/{chunk-JW3KIZU6.js → chunk-RUXY7GN5.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-RZC7QHL6.js +112 -0
- package/dist/safe-bash/command-chunks/chunk-RZJRR4UJ.js +1677 -0
- package/dist/safe-bash/command-chunks/chunk-S4OBYRNI.js +639 -0
- package/dist/safe-bash/command-chunks/{chunk-DQNDEWCI.js → chunk-S65T5JJO.js} +12 -12
- package/dist/safe-bash/command-chunks/chunk-S6PPBBXX.js +77 -0
- package/dist/safe-bash/command-chunks/chunk-SCG4LK5U.js +265 -0
- package/dist/safe-bash/command-chunks/chunk-SDTC2BLK.js +143 -0
- package/dist/safe-bash/command-chunks/chunk-SEK43FRN.js +357 -0
- package/dist/safe-bash/command-chunks/chunk-SH45NZ2P.js +194 -0
- package/dist/safe-bash/command-chunks/chunk-SM733XRT.js +250 -0
- package/dist/safe-bash/command-chunks/chunk-SSRGI476.js +116 -0
- package/dist/safe-bash/command-chunks/chunk-SUUD352U.js +127 -0
- package/dist/safe-bash/command-chunks/{chunk-B5F2KQYA.js → chunk-SWUVHT7G.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-TBAH4XGI.js +38 -0
- package/dist/safe-bash/command-chunks/chunk-TBVWTZTR.js +469 -0
- package/dist/safe-bash/command-chunks/chunk-TGHQGJNR.js +144 -0
- package/dist/safe-bash/command-chunks/{chunk-Q6JLT2EY.js → chunk-TL3KDYEM.js} +8 -110
- package/dist/safe-bash/command-chunks/chunk-TVAEX4WQ.js +473 -0
- package/dist/safe-bash/command-chunks/chunk-TZ2J6LGM.js +163 -0
- package/dist/safe-bash/command-chunks/chunk-UICO7H6S.js +186 -0
- package/dist/safe-bash/command-chunks/chunk-UJTJFMIN.js +501 -0
- package/dist/safe-bash/command-chunks/chunk-UMWWCLBG.js +109 -0
- package/dist/safe-bash/command-chunks/chunk-UPXFSGQG.js +134 -0
- package/dist/safe-bash/command-chunks/chunk-UWUYSXYT.js +272 -0
- package/dist/safe-bash/command-chunks/{chunk-5FMXQUDY.js → chunk-UZOGSYJP.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-V3RGA5PS.js +125 -0
- package/dist/safe-bash/command-chunks/chunk-VEUQWV2V.js +287 -0
- package/dist/safe-bash/command-chunks/chunk-VGKYTZT5.js +161 -0
- package/dist/safe-bash/command-chunks/chunk-VQUEIEVP.js +410 -0
- package/dist/safe-bash/command-chunks/chunk-VU3YUC3U.js +169 -0
- package/dist/safe-bash/command-chunks/chunk-W32KW66B.js +27 -0
- package/dist/safe-bash/command-chunks/chunk-W543LSYH.js +899 -0
- package/dist/safe-bash/command-chunks/chunk-W5YFDYHO.js +387 -0
- package/dist/safe-bash/command-chunks/chunk-W6DV2CLS.js +267 -0
- package/dist/safe-bash/command-chunks/chunk-WAKYUXVQ.js +215 -0
- package/dist/safe-bash/command-chunks/chunk-WGOL3MM6.js +125 -0
- package/dist/safe-bash/command-chunks/{chunk-N2A7V3WY.js → chunk-WHNYT34N.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-WOZCIRJ5.js +169 -0
- package/dist/safe-bash/command-chunks/chunk-WVB6ONZS.js +232 -0
- package/dist/safe-bash/command-chunks/chunk-WVESNAND.js +25 -0
- package/dist/safe-bash/command-chunks/chunk-XDEA3TL5.js +322 -0
- package/dist/safe-bash/command-chunks/chunk-XFEUWSYG.js +357 -0
- package/dist/safe-bash/command-chunks/chunk-XFMJ4RMS.js +2849 -0
- package/dist/safe-bash/command-chunks/chunk-XH6DXJHX.js +196 -0
- package/dist/safe-bash/command-chunks/chunk-XNJ67APB.js +6 -0
- package/dist/safe-bash/command-chunks/chunk-XP6BHGZ6.js +227 -0
- package/dist/safe-bash/command-chunks/chunk-XXFHTGV2.js +142 -0
- package/dist/safe-bash/command-chunks/chunk-Y5GI5PVT.js +139 -0
- package/dist/safe-bash/command-chunks/chunk-Y6KHC3JB.js +177 -0
- package/dist/safe-bash/command-chunks/{chunk-2UWPMSME.js → chunk-Y72LPXST.js} +8 -8
- package/dist/safe-bash/command-chunks/chunk-YDRWQZNB.js +69 -0
- package/dist/safe-bash/command-chunks/{chunk-P4OJBL2B.js → chunk-YFZ6FPIC.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-YH4DC4RP.js +171 -0
- package/dist/safe-bash/command-chunks/chunk-YH7KKMMN.js +463 -0
- package/dist/safe-bash/command-chunks/{chunk-MN3BB4WW.js → chunk-YP3WWV5N.js} +4 -4
- package/dist/safe-bash/command-chunks/chunk-YPVBU7QF.js +2817 -0
- package/dist/safe-bash/command-chunks/chunk-YQYVEVUE.js +1621 -0
- package/dist/safe-bash/command-chunks/chunk-YRNBIU5U.js +175 -0
- package/dist/safe-bash/command-chunks/chunk-Z7ESJVFP.js +10 -0
- package/dist/safe-bash/command-chunks/chunk-ZTAFAHY3.js +653 -0
- package/dist/safe-bash/command-chunks/chunk-ZXKOMB24.js +85 -0
- package/dist/safe-bash/command-chunks/{clipboard-XCSQACOK-SHFXT53F.js → clipboard-6SDGQGC3-TVJ3CG7A.js} +4 -4
- package/dist/safe-bash/command-chunks/{command-engine-4TEGTXCQ.js → command-engine-KMLHVFMA.js} +356 -316
- package/dist/safe-bash/command-chunks/{engine-QDC5VCGO-LYAAFESF.js → engine-EOYR2WTY-KUFLFTDE.js} +2 -4
- package/dist/safe-bash/command-chunks/{gnumeric-OCFH63UT-YI7SG7TN.js → gnumeric-ABKSRBZJ-MPIIPXKP.js} +3 -3
- package/dist/safe-bash/command-chunks/inspection-command-ULEU7ZVV.js +7 -0
- package/dist/safe-bash/command-chunks/model-store-JUFU3RSW.js +54 -0
- package/dist/safe-bash/command-chunks/pdf-22JDKKAR-UDWNSWYB.js +338 -0
- package/dist/safe-bash/command-chunks/{pptx-XG3YSXWZ-XAG36NAB.js → pptx-YDKHIGCD-H7FU4VMJ.js} +2 -2
- package/dist/safe-bash/commands/bc/index.browser.js +2 -2
- package/dist/safe-bash/commands/diffpdf/index.d.ts +2 -0
- package/dist/safe-bash/commands/diffpdf/index.js +2 -0
- package/dist/safe-bash/commands/dot/index.d.ts +2 -0
- package/dist/safe-bash/commands/dot/index.js +2 -0
- package/dist/safe-bash/commands/llm/collections.browser.js +6 -0
- package/dist/safe-bash/commands/llm/collections.d.ts +2 -0
- package/dist/safe-bash/commands/llm/collections.js +2 -0
- package/dist/safe-bash/commands/pandoc/index.browser.js +1 -1
- package/dist/safe-bash/commands/rsvg-convert/index.d.ts +2 -0
- package/dist/safe-bash/commands/rsvg-convert/index.js +2 -0
- package/dist/safe-bash/commands/safejs/io.d.ts +1 -1
- package/dist/safe-bash/commands/safejs/io.js +1 -1
- package/dist/safe-bash/commands/safejs/options.d.ts +1 -1
- package/dist/safe-bash/commands/safejs/options.js +1 -1
- package/dist/safe-bash/commands/safejs/render.d.ts +1 -1
- package/dist/safe-bash/commands/safejs/render.js +1 -1
- package/dist/safe-bash/commands/safejs/runtime.d.ts +1 -1
- package/dist/safe-bash/commands/safejs/runtime.js +1 -1
- package/dist/safe-bash/commands/safejs/types.d.ts +1 -1
- package/dist/safe-bash/commands/safejs/types.js +1 -1
- package/dist/safe-bash/commands/wdiff/index.d.ts +2 -0
- package/dist/safe-bash/commands/wdiff/index.js +2 -0
- package/dist/safe-bash/core.d.ts +4 -0
- package/dist/safe-bash/core.js +4 -0
- package/dist/safe-bash/full-core.browser.js +59 -35
- package/dist/safe-bash/optional-host.browser.js +7 -7
- package/dist/safe-bash/plugins/index.browser.js +7 -7
- package/dist/safe-bash/registry-entry.browser.js +6 -6
- package/dist/safe-bash/search.browser.js +2 -2
- package/dist/safe-bash/shell-entry.browser.js +3 -3
- package/dist/safe-bash-checksum-engine/index.js +83 -40
- package/dist/safe-bash-checksum-engine/md5.d.ts +2 -0
- package/dist/safe-bash-checksum-engine/md5.js +7 -0
- package/dist/safe-bash-command-awk/awk-inspection.js +2 -2
- package/dist/safe-bash-command-awk/awk-runtime.js +2 -2
- package/dist/safe-bash-command-awk/awk.js +7 -7
- package/dist/safe-bash-command-awk/index.js +7 -7
- package/dist/safe-bash-command-chmod/command.js +1 -1
- package/dist/safe-bash-command-chmod/index.js +1 -1
- package/dist/safe-bash-command-csvkit/index.js +6 -6
- package/dist/safe-bash-command-diff/index.js +3 -3
- package/dist/safe-bash-command-diffpdf/LICENSE +21 -0
- package/dist/safe-bash-command-diffpdf/index.d.ts +12 -0
- package/dist/safe-bash-command-diffpdf/index.js +107 -0
- package/dist/safe-bash-command-docx/command.d.ts +36 -0
- package/dist/{safe-bash-docx-engine → safe-bash-command-docx}/discovery.d.ts +4 -4
- package/dist/safe-bash-command-docx/index.js +1 -1
- package/dist/{safe-bash-docx-engine → safe-bash-command-docx}/inspection-command.d.ts +6 -6
- package/dist/safe-bash-command-docx/sdk.d.ts +4 -0
- package/dist/safe-bash-command-docx/sdk.js +24 -0
- package/dist/safe-bash-command-dot/LICENSE +21 -0
- package/dist/safe-bash-command-dot/index.d.ts +14 -0
- package/dist/safe-bash-command-dot/index.js +1298 -0
- package/dist/safe-bash-command-du/arguments.d.ts +1 -1
- package/dist/safe-bash-command-du/arguments.js +1 -1
- package/dist/safe-bash-command-du/du.js +2 -2
- package/dist/safe-bash-command-du/index.js +2 -2
- package/dist/safe-bash-command-factor/command.js +2 -2
- package/dist/safe-bash-command-factor/index.js +2 -2
- package/dist/safe-bash-command-ffmpeg/index.js +16 -16
- package/dist/safe-bash-command-imagemagick/index.js +21 -53
- package/dist/safe-bash-command-llm/collections-embed.d.ts +23 -0
- package/dist/safe-bash-command-llm/collections.d.ts +38 -0
- package/dist/safe-bash-command-llm/collections.js +423 -0
- package/dist/safe-bash-command-llm/command.js +4 -2
- package/dist/safe-bash-command-llm/index.js +12 -8
- package/dist/safe-bash-command-llm/openai.js +4 -3
- package/dist/safe-bash-command-llm/providers/index.js +6 -4
- package/dist/safe-bash-command-llm/providers/openai.js +4 -3
- package/dist/safe-bash-command-node/commands/node/browser.js +9 -12
- package/dist/safe-bash-command-node/commands/node/buffer.js +2 -2
- package/dist/safe-bash-command-node/commands/node/default-runtime.js +9 -12
- package/dist/safe-bash-command-node/commands/node/filesystem.js +3 -3
- package/dist/safe-bash-command-node/commands/node/safejs.js +9 -12
- package/dist/safe-bash-command-node/commands/node/source-maps.js +2 -2
- package/dist/safe-bash-command-node/commands/node/timers.js +3 -3
- package/dist/safe-bash-command-node/commands/safejs/io.d.ts +1 -35
- package/dist/safe-bash-command-node/commands/safejs/io.js +3 -7
- package/dist/safe-bash-command-node/commands/safejs/options.d.ts +2 -22
- package/dist/safe-bash-command-node/commands/safejs/options.js +1 -1
- package/dist/safe-bash-command-node/commands/safejs/render.d.ts +1 -1
- package/dist/safe-bash-command-node/commands/safejs/render.js +3 -5
- package/dist/safe-bash-command-node/commands/safejs/runtime.d.ts +2 -25
- package/dist/safe-bash-command-node/commands/safejs/runtime.js +1 -7
- package/dist/safe-bash-command-node/commands/safejs/types.d.ts +2 -85
- package/dist/safe-bash-command-node/commands/safejs/types.js +1 -1
- package/dist/safe-bash-command-node/integrations/safejs/filesystem.d.ts +2 -5
- package/dist/safe-bash-command-node/integrations/safejs/filesystem.js +3 -3
- package/dist/safe-bash-command-node/integrations/safejs/shell.js +1 -1
- package/dist/safe-bash-command-node/integrations/safejs/values.d.ts +1 -7
- package/dist/safe-bash-command-node/integrations/safejs/values.js +1 -1
- package/dist/safe-bash-command-openssl/index.js +15452 -420
- package/dist/safe-bash-command-pandoc/command.js +1 -1
- package/dist/safe-bash-command-pandoc/index.js +1 -1
- package/dist/safe-bash-command-patch/index.js +5 -5
- package/dist/safe-bash-command-patch/patch.js +4 -4
- package/dist/safe-bash-command-playwright-cli/index.js +25 -25
- package/dist/safe-bash-command-playwright-cli/playwright/abilities.js +8 -8
- package/dist/safe-bash-command-playwright-cli/playwright/controller.js +16 -16
- package/dist/safe-bash-command-playwright-cli/playwright/index.js +25 -25
- package/dist/safe-bash-command-playwright-cli/playwright/standard-capabilities.js +4 -4
- package/dist/{safe-bash-pptx-engine → safe-bash-command-pptx}/command-engine.d.ts +5 -13
- package/dist/safe-bash-command-pptx/engine.d.ts +4 -0
- package/dist/safe-bash-command-pptx/engine.js +37 -0
- package/dist/safe-bash-command-pptx/index.js +1 -1
- package/dist/safe-bash-command-python/executor.js +15 -15
- package/dist/safe-bash-command-python/index.js +15 -15
- package/dist/safe-bash-command-python/jspi.js +4 -4
- package/dist/safe-bash-command-qrencode/index.js +1 -4
- package/dist/safe-bash-command-rsvg-convert/LICENSE +21 -0
- package/dist/safe-bash-command-rsvg-convert/index.d.ts +13 -0
- package/dist/safe-bash-command-rsvg-convert/index.js +84 -0
- package/dist/safe-bash-command-safejs/LICENSE +21 -0
- package/dist/safe-bash-command-safejs/filesystem.d.ts +5 -0
- package/dist/safe-bash-command-safejs/filesystem.js +7 -0
- package/dist/safe-bash-command-safejs/index.d.ts +4 -0
- package/dist/safe-bash-command-safejs/index.js +19 -0
- package/dist/safe-bash-command-safejs/io.d.ts +35 -0
- package/dist/safe-bash-command-safejs/io.js +12 -0
- package/dist/safe-bash-command-safejs/options.d.ts +22 -0
- package/dist/safe-bash-command-safejs/options.js +11 -0
- package/dist/safe-bash-command-safejs/render.d.ts +1 -0
- package/dist/safe-bash-command-safejs/render.js +9 -0
- package/dist/safe-bash-command-safejs/runtime.d.ts +25 -0
- package/dist/safe-bash-command-safejs/runtime.js +13 -0
- package/dist/safe-bash-command-safejs/types.d.ts +85 -0
- package/dist/safe-bash-command-safejs/types.js +7 -0
- package/dist/safe-bash-command-safejs/values.d.ts +7 -0
- package/dist/safe-bash-command-safejs/values.js +19 -0
- package/dist/safe-bash-command-sips/index.js +1 -14
- package/dist/safe-bash-command-ssconvert/index.js +413 -546
- package/dist/safe-bash-command-ssconvert/rendering/chart/axis.d.ts +1 -26
- package/dist/safe-bash-command-ssconvert/rendering/chart/error-bar.d.ts +1 -39
- package/dist/safe-bash-command-ssconvert/rendering/chart/layout.d.ts +1 -24
- package/dist/safe-bash-command-ssconvert/rendering/chart/line.d.ts +1 -23
- package/dist/safe-bash-command-ssconvert/rendering/chart/marker.d.ts +1 -35
- package/dist/safe-bash-command-ssconvert/rendering/chart/pie.d.ts +1 -32
- package/dist/safe-bash-command-ssconvert/rendering/images/index.d.ts +1 -26
- package/dist/safe-bash-command-ssconvert/rendering/print/header-footer.d.ts +1 -16
- package/dist/safe-bash-command-ssconvert/rendering/print/layout.d.ts +1 -65
- package/dist/safe-bash-command-ssconvert/rendering/print/pagination.d.ts +1 -34
- package/dist/safe-bash-command-tar/create.js +4 -4
- package/dist/safe-bash-command-tar/extract.js +4 -4
- package/dist/safe-bash-command-tar/index.js +16 -14
- package/dist/safe-bash-command-tar/modes.js +6 -6
- package/dist/safe-bash-command-tar/options.d.ts +3 -1
- package/dist/safe-bash-command-tar/options.js +1 -1
- package/dist/safe-bash-command-unzip/index.js +4 -4
- package/dist/safe-bash-command-wdiff/LICENSE +21 -0
- package/dist/safe-bash-command-wdiff/index.d.ts +12 -0
- package/dist/safe-bash-command-wdiff/index.js +123 -0
- package/dist/safe-bash-compression-engine/bounded-codec.js +2 -2
- package/dist/safe-bash-compression-engine/codec-loader.js +1 -1
- package/dist/safe-bash-compression-engine/files.js +5 -5
- package/dist/safe-bash-compression-engine/index.js +4 -4
- package/dist/safe-bash-compression-engine/operand.js +5 -5
- package/dist/safe-bash-compression-engine/stream.js +4 -4
- package/dist/safe-bash-compression-engine/zstd-decode.js +3 -3
- package/dist/safe-bash-contracts/escaping.js +2 -2
- package/dist/safe-bash-contracts/index.js +15 -15
- package/dist/safe-bash-docx-engine/admission.js +31 -0
- package/dist/safe-bash-docx-engine/ancillary-resources.js +38 -0
- package/dist/safe-bash-docx-engine/archive.js +24 -0
- package/dist/safe-bash-docx-engine/argument-json.js +25 -0
- package/dist/safe-bash-docx-engine/batch-operations.d.ts +7 -0
- package/dist/safe-bash-docx-engine/batch-operations.js +95 -0
- package/dist/safe-bash-docx-engine/batch-result-schema.d.ts +2 -0
- package/dist/safe-bash-docx-engine/batch-result-schema.js +145 -0
- package/dist/safe-bash-docx-engine/batch.js +106 -0
- package/dist/safe-bash-docx-engine/bookmarks.js +43 -0
- package/dist/safe-bash-docx-engine/budget.js +18 -0
- package/dist/safe-bash-docx-engine/charts.js +35 -0
- package/dist/safe-bash-docx-engine/command-option-rules.d.ts +1 -0
- package/dist/safe-bash-docx-engine/command-option-rules.js +24 -0
- package/dist/safe-bash-docx-engine/command-properties.d.ts +1 -0
- package/dist/safe-bash-docx-engine/command-properties.js +18 -0
- package/dist/safe-bash-docx-engine/command-selection.d.ts +1 -0
- package/dist/safe-bash-docx-engine/command-selection.js +15 -0
- package/dist/safe-bash-docx-engine/comments.js +53 -0
- package/dist/safe-bash-docx-engine/control-bindings.js +45 -0
- package/dist/safe-bash-docx-engine/control-repeat.js +46 -0
- package/dist/safe-bash-docx-engine/controls.js +52 -0
- package/dist/safe-bash-docx-engine/create.js +36 -0
- package/dist/safe-bash-docx-engine/diagrams.js +43 -0
- package/dist/safe-bash-docx-engine/diff.js +33 -0
- package/dist/safe-bash-docx-engine/discovery-result-schema.d.ts +72 -0
- package/dist/safe-bash-docx-engine/discovery-result-schema.js +36 -0
- package/dist/safe-bash-docx-engine/document-properties.js +43 -0
- package/dist/safe-bash-docx-engine/equations.js +53 -0
- package/dist/safe-bash-docx-engine/extract.js +40 -0
- package/dist/safe-bash-docx-engine/fields.js +48 -0
- package/dist/safe-bash-docx-engine/font-inventory.js +40 -0
- package/dist/safe-bash-docx-engine/font-resources.js +33 -0
- package/dist/safe-bash-docx-engine/image-batch-operations.d.ts +4 -0
- package/dist/safe-bash-docx-engine/image-batch-operations.js +35 -0
- package/dist/safe-bash-docx-engine/image-insertion.js +46 -0
- package/dist/safe-bash-docx-engine/image-layout.js +43 -0
- package/dist/safe-bash-docx-engine/image-replacement.js +48 -0
- package/dist/safe-bash-docx-engine/images.js +49 -0
- package/dist/safe-bash-docx-engine/index.d.ts +1 -3
- package/dist/safe-bash-docx-engine/index.js +369 -19350
- package/dist/safe-bash-docx-engine/inspection.js +49 -0
- package/dist/safe-bash-docx-engine/invocation.d.ts +50 -0
- package/dist/safe-bash-docx-engine/invocation.js +66 -0
- package/dist/safe-bash-docx-engine/io-errors.js +11 -0
- package/dist/safe-bash-docx-engine/io.js +29 -0
- package/dist/safe-bash-docx-engine/links.js +47 -0
- package/dist/safe-bash-docx-engine/lists.js +46 -0
- package/dist/safe-bash-docx-engine/location-token.js +27 -0
- package/dist/safe-bash-docx-engine/locations.js +39 -0
- package/dist/safe-bash-docx-engine/model-context.js +15 -0
- package/dist/safe-bash-docx-engine/model-errors.js +13 -0
- package/dist/safe-bash-docx-engine/notes.js +48 -0
- package/dist/safe-bash-docx-engine/objects.js +49 -0
- package/dist/safe-bash-docx-engine/operation-json-schema.js +21 -0
- package/dist/safe-bash-docx-engine/operation-schema.js +29 -0
- package/dist/safe-bash-docx-engine/pack-uri-batch-operations.d.ts +3 -0
- package/dist/safe-bash-docx-engine/pack-uri-batch-operations.js +15 -0
- package/dist/safe-bash-docx-engine/pack.js +38 -0
- package/dist/safe-bash-docx-engine/package-view-batch-operations.d.ts +4 -0
- package/dist/safe-bash-docx-engine/package-view-batch-operations.js +47 -0
- package/dist/safe-bash-docx-engine/package-xml.js +25 -0
- package/dist/safe-bash-docx-engine/pandoc-adapter.js +55 -6
- package/dist/safe-bash-docx-engine/paragraph-edit.js +52 -0
- package/dist/safe-bash-docx-engine/part-provider.js +18 -0
- package/dist/safe-bash-docx-engine/property-values.js +46 -0
- package/dist/safe-bash-docx-engine/publication.js +40 -0
- package/dist/safe-bash-docx-engine/removal.js +44 -0
- package/dist/safe-bash-docx-engine/revision-decisions.js +46 -0
- package/dist/safe-bash-docx-engine/revision-edit.js +43 -0
- package/dist/safe-bash-docx-engine/revisions.js +42 -0
- package/dist/safe-bash-docx-engine/run-format.js +43 -0
- package/dist/safe-bash-docx-engine/sanitize.js +59 -0
- package/dist/safe-bash-docx-engine/sections.js +47 -0
- package/dist/safe-bash-docx-engine/settings.js +36 -0
- package/dist/safe-bash-docx-engine/shape-edit.js +47 -0
- package/dist/safe-bash-docx-engine/signatures.js +42 -0
- package/dist/safe-bash-docx-engine/simple-selection.d.ts +1 -1
- package/dist/safe-bash-docx-engine/stories.js +48 -0
- package/dist/safe-bash-docx-engine/structure-model-batch-operations.d.ts +3 -0
- package/dist/safe-bash-docx-engine/structure-model-batch-operations.js +64 -0
- package/dist/safe-bash-docx-engine/style-model-batch-operations.js +57 -0
- package/dist/safe-bash-docx-engine/style-model-result-schema.d.ts +4 -0
- package/dist/safe-bash-docx-engine/style-model-result-schema.js +76 -0
- package/dist/safe-bash-docx-engine/styles.js +44 -0
- package/dist/safe-bash-docx-engine/table-edit.js +52 -0
- package/dist/safe-bash-docx-engine/table-read.js +38 -0
- package/dist/safe-bash-docx-engine/template.js +45 -0
- package/dist/safe-bash-docx-engine/text-replace.js +47 -0
- package/dist/safe-bash-docx-engine/text-resource-read.js +42 -0
- package/dist/safe-bash-docx-engine/text.js +36 -0
- package/dist/safe-bash-docx-engine/validation.js +30 -0
- package/dist/safe-bash-docx-engine/xml-parts.js +48 -0
- package/dist/safe-bash-markdown-engine/index.js +3 -3
- package/dist/safe-bash-network-engine/aggregate.js +3 -3
- package/dist/safe-bash-network-engine/args.js +3 -3
- package/dist/safe-bash-network-engine/body.js +4 -4
- package/dist/safe-bash-network-engine/decode.js +3 -3
- package/dist/safe-bash-network-engine/fetch-transport.js +3 -3
- package/dist/safe-bash-network-engine/index.js +3 -3
- package/dist/safe-bash-network-engine/output.js +3 -3
- package/dist/safe-bash-network-engine/platform-portable.js +3 -3
- package/dist/safe-bash-network-engine/shared.js +2 -2
- package/dist/safe-bash-network-engine/transfer.js +20 -20
- package/dist/safe-bash-pptx-engine/bytes.d.ts +1 -4
- package/dist/safe-bash-pptx-engine/bytes.js +2 -11
- package/dist/safe-bash-pptx-engine/index.d.ts +1 -103
- package/dist/safe-bash-pptx-engine/index.js +1 -662
- package/dist/safe-bash-presentation-engine/LICENSE +21 -0
- package/dist/safe-bash-presentation-engine/accessibility.js +43 -0
- package/dist/safe-bash-presentation-engine/animation-editing.js +29 -0
- package/dist/safe-bash-presentation-engine/animations.js +23 -0
- package/dist/safe-bash-presentation-engine/backgrounds.js +26 -0
- package/dist/safe-bash-presentation-engine/bytes.d.ts +4 -0
- package/dist/safe-bash-presentation-engine/bytes.js +13 -0
- package/dist/safe-bash-presentation-engine/chart-editing.js +60 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-enums.d.ts +2 -2
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-object-operations.d.ts +1 -1
- package/dist/safe-bash-presentation-engine/chart-object-operations.js +35 -0
- package/dist/safe-bash-presentation-engine/charts.js +41 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/color-enums.d.ts +5 -5
- package/dist/safe-bash-presentation-engine/command-placeholder.js +64 -0
- package/dist/safe-bash-presentation-engine/comments.js +32 -0
- package/dist/safe-bash-presentation-engine/connector-operations.js +50 -0
- package/dist/safe-bash-presentation-engine/connectors.js +49 -0
- package/dist/safe-bash-presentation-engine/content-types.js +9 -0
- package/dist/safe-bash-presentation-engine/contracts.js +0 -0
- package/dist/safe-bash-presentation-engine/creation.js +15 -0
- package/dist/safe-bash-presentation-engine/diff.js +40 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/drawing-enums.d.ts +20 -20
- package/dist/safe-bash-presentation-engine/drawing-format.js +44 -0
- package/dist/safe-bash-presentation-engine/drawing-operations.js +41 -0
- package/dist/safe-bash-presentation-engine/drawing-schema.d.ts +1549 -0
- package/dist/safe-bash-presentation-engine/drawing-schema.js +33 -0
- package/dist/safe-bash-presentation-engine/equations.js +30 -0
- package/dist/safe-bash-presentation-engine/errors.js +23 -0
- package/dist/safe-bash-presentation-engine/fields.js +32 -0
- package/dist/safe-bash-presentation-engine/font-metrics.js +12 -0
- package/dist/safe-bash-presentation-engine/image-extraction.js +29 -0
- package/dist/safe-bash-presentation-engine/image-formatting.js +43 -0
- package/dist/safe-bash-presentation-engine/image-insertion.js +26 -0
- package/dist/safe-bash-presentation-engine/image-metadata.d.ts +9 -0
- package/dist/safe-bash-presentation-engine/image-metadata.js +9 -0
- package/dist/safe-bash-presentation-engine/image-replacement.js +30 -0
- package/dist/safe-bash-presentation-engine/image-value.js +15 -0
- package/dist/safe-bash-presentation-engine/images.js +30 -0
- package/dist/safe-bash-presentation-engine/index.d.ts +100 -0
- package/dist/safe-bash-presentation-engine/index.js +791 -0
- package/dist/safe-bash-presentation-engine/layouts.js +31 -0
- package/dist/safe-bash-presentation-engine/length.js +21 -0
- package/dist/safe-bash-presentation-engine/links.js +33 -0
- package/dist/safe-bash-presentation-engine/masters.js +54 -0
- package/dist/safe-bash-presentation-engine/media-editing.js +35 -0
- package/dist/safe-bash-presentation-engine/media-extraction.js +24 -0
- package/dist/safe-bash-presentation-engine/media.js +23 -0
- package/dist/safe-bash-presentation-engine/memberships.js +24 -0
- package/dist/safe-bash-presentation-engine/notes.js +27 -0
- package/dist/safe-bash-presentation-engine/ole-enum.js +10 -0
- package/dist/safe-bash-presentation-engine/ole-insertion.js +29 -0
- package/dist/safe-bash-presentation-engine/opaque-objects.js +21 -0
- package/dist/safe-bash-presentation-engine/package-reader.js +13 -0
- package/dist/safe-bash-presentation-engine/package-tools.js +25 -0
- package/dist/safe-bash-presentation-engine/package-uri.d.ts +13 -0
- package/dist/safe-bash-presentation-engine/package-uri.js +16 -0
- package/dist/safe-bash-presentation-engine/package-writer.js +13 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/presentation-model.d.ts +1 -1
- package/dist/safe-bash-presentation-engine/presentation-model.js +63 -0
- package/dist/safe-bash-presentation-engine/presentation-settings.js +25 -0
- package/dist/safe-bash-presentation-engine/properties.js +37 -0
- package/dist/safe-bash-presentation-engine/publication.d.ts +10 -0
- package/dist/safe-bash-presentation-engine/publication.js +0 -0
- package/dist/safe-bash-presentation-engine/relationships.js +16 -0
- package/dist/safe-bash-presentation-engine/resource-limits.js +8 -0
- package/dist/safe-bash-presentation-engine/sanitize.js +24 -0
- package/dist/safe-bash-presentation-engine/selector-schema.js +7 -0
- package/dist/safe-bash-presentation-engine/selectors.js +26 -0
- package/dist/safe-bash-presentation-engine/shape-groups.js +47 -0
- package/dist/safe-bash-presentation-engine/shape-operations.js +48 -0
- package/dist/safe-bash-presentation-engine/shape-path-operations.js +44 -0
- package/dist/safe-bash-presentation-engine/shape-paths.js +31 -0
- package/dist/safe-bash-presentation-engine/shape-presets.js +11 -0
- package/dist/safe-bash-presentation-engine/shape-selection.js +43 -0
- package/dist/safe-bash-presentation-engine/shape-transforms.js +28 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-types.d.ts +1 -1
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shapes.d.ts +1 -1
- package/dist/safe-bash-presentation-engine/shapes.js +66 -0
- package/dist/safe-bash-presentation-engine/slide-copy.js +24 -0
- package/dist/safe-bash-presentation-engine/slide-import.js +27 -0
- package/dist/safe-bash-presentation-engine/slide-merge-split.js +33 -0
- package/dist/safe-bash-presentation-engine/slide-model.js +74 -0
- package/dist/safe-bash-presentation-engine/slide-removal.js +25 -0
- package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +17 -0
- package/dist/safe-bash-presentation-engine/slides.js +26 -0
- package/dist/safe-bash-presentation-engine/table-operations.js +51 -0
- package/dist/safe-bash-presentation-engine/table-spans.js +42 -0
- package/dist/safe-bash-presentation-engine/tables.js +45 -0
- package/dist/safe-bash-presentation-engine/tags.js +25 -0
- package/dist/safe-bash-presentation-engine/template-bindings.js +44 -0
- package/dist/safe-bash-presentation-engine/template-repeat.js +51 -0
- package/dist/safe-bash-presentation-engine/text-fitting.js +39 -0
- package/dist/safe-bash-presentation-engine/text-frames.js +52 -0
- package/dist/safe-bash-presentation-engine/text-paragraphs.js +58 -0
- package/dist/safe-bash-presentation-engine/text-reading.js +23 -0
- package/dist/safe-bash-presentation-engine/text-replacement.js +24 -0
- package/dist/safe-bash-presentation-engine/text-runs.js +45 -0
- package/dist/safe-bash-presentation-engine/themes.js +31 -0
- package/dist/safe-bash-presentation-engine/transitions.js +27 -0
- package/dist/safe-bash-presentation-engine/validation.js +14 -0
- package/dist/safe-bash-presentation-engine/xml-parts.js +25 -0
- package/dist/safe-bash-presentation-engine/xml-view.js +8 -0
- package/dist/safe-bash-presentation-engine/xml.js +8 -0
- package/dist/safe-bash-sqlite-engine/sqlite-edit-snapshot.d.ts +15 -0
- package/dist/safe-bash-sqlite-engine/sqlite-finalization.d.ts +7 -0
- package/dist/safe-bash-sqlite-engine/sqlite-pages.d.ts +18 -0
- package/dist/safe-bash-sqlite-engine/sqlite-record-read.d.ts +8 -0
- package/dist/safe-bash-sqlite-engine/sqlite-record-write.d.ts +20 -0
- package/dist/safe-bash-sqlite-engine/storage.d.ts +2 -0
- package/dist/safe-bash-sqlite-engine/storage.js +236 -55
- package/dist/safe-bash-svg-engine/LICENSE +21 -0
- package/dist/safe-bash-svg-engine/index.d.ts +8 -0
- package/dist/safe-bash-svg-engine/index.js +477 -0
- package/dist/safe-bash-zip-engine/index.js +3 -3
- package/dist/safe-bash-zip-engine/zip/repair.js +3 -3
- package/dist/safe-bash-zip-engine/zip/sfx.js +3 -3
- package/dist/safe-bash-zip-engine/zip-format.js +3 -3
- package/dist/safe-playwright-cloudflare/browser-provider.generated.js +55 -18
- package/dist/safe-playwright-cloudflare/browser-run-code-guest.generated.js +1 -1
- package/dist/spreadsheet-engine/datasource.js +4 -1
- package/dist/spreadsheet-engine/formulas/functions/math.js +3 -1
- package/dist/spreadsheet-engine/rendering/chart/axis.d.ts +26 -0
- package/dist/spreadsheet-engine/rendering/chart/axis.js +61 -0
- package/dist/spreadsheet-engine/rendering/chart/error-bar.d.ts +39 -0
- package/dist/spreadsheet-engine/rendering/chart/error-bar.js +59 -0
- package/dist/spreadsheet-engine/rendering/chart/layout.d.ts +24 -0
- package/dist/spreadsheet-engine/rendering/chart/layout.js +54 -0
- package/dist/spreadsheet-engine/rendering/chart/line.d.ts +23 -0
- package/dist/spreadsheet-engine/rendering/chart/line.js +56 -0
- package/dist/spreadsheet-engine/rendering/chart/marker.d.ts +35 -0
- package/dist/spreadsheet-engine/rendering/chart/marker.js +52 -0
- package/dist/spreadsheet-engine/rendering/chart/pie.d.ts +32 -0
- package/dist/spreadsheet-engine/rendering/chart/pie.js +47 -0
- package/dist/{safe-bash-command-ssconvert → spreadsheet-engine}/rendering/images/codecs.d.ts +0 -1
- package/dist/spreadsheet-engine/rendering/images/codecs.js +253 -0
- package/dist/spreadsheet-engine/rendering/images/index.d.ts +26 -0
- package/dist/spreadsheet-engine/rendering/images/index.js +144 -0
- package/dist/spreadsheet-engine/rendering/images/profile-raster.d.ts +4 -0
- package/dist/spreadsheet-engine/rendering/images/profile-raster.js +72 -0
- package/dist/spreadsheet-engine/rendering/images/scene.d.ts +3 -0
- package/dist/spreadsheet-engine/rendering/images/scene.js +34 -0
- package/dist/spreadsheet-engine/rendering/print/cell-style.d.ts +10 -0
- package/dist/spreadsheet-engine/rendering/print/cell-style.js +52 -0
- package/dist/spreadsheet-engine/rendering/print/font-normalization-data.d.ts +43 -0
- package/dist/spreadsheet-engine/rendering/print/font-normalization-data.js +1558 -0
- package/dist/spreadsheet-engine/rendering/print/font-normalization.d.ts +3 -0
- package/dist/spreadsheet-engine/rendering/print/font-normalization.js +113 -0
- package/dist/spreadsheet-engine/rendering/print/font-shaping.d.ts +18 -0
- package/dist/spreadsheet-engine/rendering/print/font-shaping.js +271 -0
- package/dist/spreadsheet-engine/rendering/print/harfbuzz/data.d.ts +1 -0
- package/dist/spreadsheet-engine/rendering/print/harfbuzz/data.js +2 -0
- package/dist/spreadsheet-engine/rendering/print/header-footer.d.ts +16 -0
- package/dist/spreadsheet-engine/rendering/print/header-footer.js +92 -0
- package/dist/spreadsheet-engine/rendering/print/layout.d.ts +65 -0
- package/dist/spreadsheet-engine/rendering/print/layout.js +75 -0
- package/dist/spreadsheet-engine/rendering/print/pagination.d.ts +34 -0
- package/dist/spreadsheet-engine/rendering/print/pagination.js +126 -0
- package/dist/spreadsheet-engine/rendering/print/settings.d.ts +42 -0
- package/dist/spreadsheet-engine/rendering/print/settings.js +159 -0
- package/dist/spreadsheet-format-xls/biff-metadata.js +3 -3
- package/dist/spreadsheet-format-xls/biff-write-metadata.d.ts +1 -1
- package/dist/spreadsheet-format-xls/biff-write-metadata.js +20 -3
- package/dist/spreadsheet-format-xls/biff-write.js +1 -1
- package/package.json +239 -12
- package/third-party/spreadsheet-engine/scripts/harfbuzz/README.md +39 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/allocator.cc +18 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/build.mjs +94 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/completion.patch +98 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/config-override.h +19 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/exports.json +29 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/sources.json +274 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/verify.d.mts +10 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/verify.mjs +96 -0
- package/third-party/spreadsheet-engine/scripts/harfbuzz/verify.test.mjs +60 -0
- package/third-party/spreadsheet-engine/src/rendering/images/NOTICE.md +22 -0
- package/third-party/spreadsheet-engine/src/rendering/print/NOTICE.md +30 -0
- package/third-party/spreadsheet-engine/src/rendering/print/font-normalization-NOTICE.md +64 -0
- package/third-party/spreadsheet-engine/src/rendering/print/font-normalization-data.ts +1558 -0
- package/third-party/spreadsheet-engine/src/rendering/print/font-normalization.ts +91 -0
- package/third-party/spreadsheet-engine/src/rendering/print/harfbuzz/EMSCRIPTEN-LICENSE.txt +102 -0
- package/third-party/spreadsheet-engine/src/rendering/print/harfbuzz/HARFBUZZ-LICENSE.txt +42 -0
- package/third-party/spreadsheet-engine/src/rendering/print/harfbuzz/LIBCXX-LICENSE.txt +311 -0
- package/third-party/spreadsheet-engine/src/rendering/print/harfbuzz/LIBCXXABI-LICENSE.txt +311 -0
- package/third-party/spreadsheet-engine/src/rendering/print/harfbuzz/MUSL-LICENSE.txt +193 -0
- package/third-party/spreadsheet-engine/src/rendering/print/harfbuzz/NOTICE.md +41 -0
- package/third-party/spreadsheet-engine/src/rendering/print/harfbuzz/data.ts +2 -0
- package/dist/safe-bash/command-chunks/chunk-C5TUE2FE.js +0 -169
- package/dist/safe-bash/command-chunks/chunk-CVKW2YIC.js +0 -13631
- package/dist/safe-bash/command-chunks/chunk-JBGGUHQY.js +0 -17617
- package/dist/safe-bash/command-chunks/chunk-S4R2JDPL.js +0 -35
- package/dist/safe-bash/command-chunks/chunk-TU5IFVCX.js +0 -33708
- package/dist/safe-bash/command-chunks/chunk-TUWGIF22.js +0 -328
- package/dist/safe-bash/command-chunks/data-2FJOPYXA-PDKMLCGR.js +0 -8
- package/dist/safe-bash/command-chunks/index.browser-2NLML6H4.js +0 -269
- package/dist/safe-bash/command-chunks/model-store-EEI3QS4G.js +0 -10
- package/dist/safe-bash/command-chunks/pdf-M2GFAR2A-FCJMJCAP.js +0 -683
- package/dist/safe-bash-command-ssconvert/rendering/images/formats.d.ts +0 -2
- package/dist/safe-bash-docx-engine/command.d.ts +0 -65
- package/dist/safe-bash/chunks/{chunk-4T4RQYRI.js → chunk-5HRGBHZH.js} +10 -10
- package/dist/safe-bash/chunks/{chunk-QUS6X4MS.js → chunk-EOQMDRTY.js} +0 -0
- package/dist/safe-bash/command-chunks/{chunk-2L3JKGUH.js → chunk-4LYZBDZF.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-EMMSXKEJ.js → chunk-4Q4R3VZU.js} +0 -0
- package/dist/safe-bash/command-chunks/{chunk-5RLK2QSY.js → chunk-7JEIWA3A.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-AV6N7DDA.js → chunk-DDYPQAXN.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-OOB7YCFQ.js → chunk-FMJKCVSQ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FUL2C4EX.js → chunk-HFKS6AET.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-2M3WUEDX.js → chunk-J6K5Q53O.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-ATWMLV75.js → chunk-RJXZYDSN.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-JD3NSHFT.js → chunk-TVGIJ56E.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-3I33KPQH.js → chunk-X2HVVMTW.js} +6 -6
- package/dist/safe-bash/command-chunks/{odf-UKSXPNOZ-NCL5P7YL.js → odf-UKSXPNOZ-BV2LCKTB.js} +0 -0
- package/dist/{safe-bash/command-chunks/chunk-3SVT5VB7.js → safe-bash-docx-engine/operation-types.js} +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/accessibility.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/animation-editing.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/animations.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/backgrounds.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-data-model.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-editing.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-font-operations.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-model-axes.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-model-core.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-model-series.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-model.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-objects.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/chart-workbook.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/charts.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/command-placeholder.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/comments.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/connector-operations.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/connectors-model.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/connectors.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/content-types.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/contracts.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/creation.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/diagram-resources.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/diff.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/drawing-format.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/drawing-operations.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/equations.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/errors.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/fields.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/font-metrics.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/freeform-builder.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/group-model.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/image-extraction.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/image-formatting.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/image-insertion.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/image-replacement.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/image-value.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/images.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/inventory.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/language-enum.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/layouts.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/length.d.ts +0 -0
- package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/links-model.d.ts +4 -4
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/links.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/masters.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/media-editing.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/media-enum.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/media-extraction.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/media.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/memberships.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/modern-comments.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/notes.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/ole-enum.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/ole-insertion.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/opaque-objects.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/package-reader.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/package-tools.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/package-view.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/package-writer.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/paragraph-alignment.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/presentation-settings.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/properties.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/relationships.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/resource-limits.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/sanitize.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/selector-schema.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/selectors.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-adjustments.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-groups.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-operations.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-path-operations.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-paths.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-placeholder-types.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-presets.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-selection.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/shape-transforms.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/slide-copy.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/slide-import.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/slide-layout-model.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/slide-merge-split.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/slide-model.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/slide-removal.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/slide-transfer-budget.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/slides.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/table-operations.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/table-spans.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/tables-model.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/tables.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/tags.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/template-bindings.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/template-repeat.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-fitting.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-frame-enums.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-frames.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-paragraphs.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-reading.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-replacement.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-run-color.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-runs.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/text-style-resolution.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/themes.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/transitions.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/validation.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/xml-parts.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/xml-view.d.ts +0 -0
- /package/dist/{safe-bash-pptx-engine → safe-bash-presentation-engine}/xml.d.ts +0 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import {
|
|
2
|
+
validateArchiveNamespace
|
|
3
|
+
} from "./chunk-BDYKJTBQ.js";
|
|
4
|
+
import {
|
|
5
|
+
validateDocxInvocation
|
|
6
|
+
} from "./chunk-DE66JRWJ.js";
|
|
7
|
+
import {
|
|
8
|
+
PublicationError
|
|
9
|
+
} from "./chunk-JGGRMERW.js";
|
|
10
|
+
import {
|
|
11
|
+
readDocumentArchive
|
|
12
|
+
} from "./chunk-GLPIFP7N.js";
|
|
13
|
+
import {
|
|
14
|
+
displayXml
|
|
15
|
+
} from "./chunk-YPVBU7QF.js";
|
|
16
|
+
import {
|
|
17
|
+
compareInventoryNames
|
|
18
|
+
} from "./chunk-2EUH5B6A.js";
|
|
19
|
+
import {
|
|
20
|
+
asciiKey
|
|
21
|
+
} from "./chunk-WAKYUXVQ.js";
|
|
22
|
+
import {
|
|
23
|
+
isXmlContentType,
|
|
24
|
+
parseDocumentXmlAsync
|
|
25
|
+
} from "./chunk-MWAAMNAM.js";
|
|
26
|
+
import {
|
|
27
|
+
CancellationError,
|
|
28
|
+
InvalidContainerError,
|
|
29
|
+
ResourceLimitError,
|
|
30
|
+
archiveSettings
|
|
31
|
+
} from "./chunk-IQFRPIXH.js";
|
|
32
|
+
|
|
33
|
+
// packages/safe-bash-docx-engine/src/extract.ts
|
|
34
|
+
import { resolvePath } from "@poe-platform/safe-fs/core";
|
|
35
|
+
var ArchiveExtractionError = class extends Error {
|
|
36
|
+
constructor(cause, data, cancelled = false) {
|
|
37
|
+
super(data.possiblePartialOutput ? "Archive extraction failed; partial new output may remain." : "Archive extraction destination refused.", { cause });
|
|
38
|
+
this.data = data;
|
|
39
|
+
this.code = cancelled ? "cancelled" : cause instanceof ResourceLimitError ? "limit-exceeded" : cause instanceof PublicationError && cause.code === "conflict" ? "conflict" : "unsupported-publication";
|
|
40
|
+
}
|
|
41
|
+
data;
|
|
42
|
+
code;
|
|
43
|
+
};
|
|
44
|
+
async function extractDocumentArchive(input, options, context) {
|
|
45
|
+
const host = archiveSettings(context);
|
|
46
|
+
const invocation = validateDocxInvocation({ operation: "extract", inputs: ["-"], options }, host.budget);
|
|
47
|
+
const admitted = invocation.options;
|
|
48
|
+
const settings = archiveSettings({ ...context, budget: host.budget.lower(Object.fromEntries((admitted.limit ?? []).map((limit) => [limit.name, limit.value]))) });
|
|
49
|
+
const { budget, signal } = settings;
|
|
50
|
+
if (!admitted.outputDir?.startsWith("/")) throw new InvalidContainerError("Extraction requires an absolute VFS destination.");
|
|
51
|
+
const outputDir = resolvePath("/", admitted.outputDir), fs = context.filesystem;
|
|
52
|
+
const archive = await readDocumentArchive(input, settings);
|
|
53
|
+
validateArchiveNamespace(archive.members, budget);
|
|
54
|
+
const files = [];
|
|
55
|
+
for (const member of archive.members) {
|
|
56
|
+
if (member.directory || admitted.selection === "media-only" && !asciiKey(member.name).startsWith("word/media/")) continue;
|
|
57
|
+
let bytes = member.bytes;
|
|
58
|
+
if (admitted.pretty && (asciiKey(member.name) === "[content_types].xml" || isXmlContentType(archive.package.getPart("/" + member.name).content_type))) {
|
|
59
|
+
const parsed = await parseDocumentXmlAsync(bytes, {}, budget);
|
|
60
|
+
bytes = new TextEncoder().encode(displayXml(parsed.root, budget, true));
|
|
61
|
+
budget.charge("retainedBytes", bytes.length);
|
|
62
|
+
}
|
|
63
|
+
budget.charge("work", bytes.length);
|
|
64
|
+
budget.charge("retainedBytes", bytes.length + 128);
|
|
65
|
+
const digest = new Uint8Array(await crypto.subtle.digest("SHA-256", new Uint8Array(bytes)));
|
|
66
|
+
files.push({ path: member.name, bytes, sha256: [...digest].map((b) => b.toString(16).padStart(2, "0")).join(""), published: false });
|
|
67
|
+
}
|
|
68
|
+
const directories = archive.members.filter((m) => m.directory && (admitted.selection !== "media-only" || asciiKey(m.name).startsWith("word/media/"))).map((m) => m.name.slice(0, -1));
|
|
69
|
+
const manifest = {
|
|
70
|
+
version: 1,
|
|
71
|
+
kind: archive.kind,
|
|
72
|
+
dialect: archive.dialect,
|
|
73
|
+
selection: admitted.selection ?? "all",
|
|
74
|
+
pretty: admitted.pretty ?? false,
|
|
75
|
+
directories,
|
|
76
|
+
entries: files.map((f) => ({ part: f.path === "[Content_Types].xml" ? f.path : "/" + f.path, path: f.path, contentType: f.path === "[Content_Types].xml" ? "application/xml" : archive.package.getPart("/" + f.path).content_type, bytes: f.bytes.length, sha256: f.sha256 })).sort((a, b) => compareInventoryNames(a.part, b.part))
|
|
77
|
+
};
|
|
78
|
+
const manifestText = JSON.stringify(manifest);
|
|
79
|
+
budget.check("serializedOutput", new TextEncoder().encode(manifestText).length);
|
|
80
|
+
budget.charge("retainedBytes", manifestText.length * 4);
|
|
81
|
+
const manifestBytes = new TextEncoder().encode(manifestText);
|
|
82
|
+
let possiblePartialOutput = false, manifestPublished = false;
|
|
83
|
+
const data = (complete) => ({
|
|
84
|
+
outputDir,
|
|
85
|
+
complete,
|
|
86
|
+
possiblePartialOutput: !complete && possiblePartialOutput,
|
|
87
|
+
entries: files.map((f) => ({ path: f.path, bytes: f.bytes.length, sha256: f.sha256, published: f.published })),
|
|
88
|
+
manifestPublished
|
|
89
|
+
});
|
|
90
|
+
const failureMessage = "Archive extraction failed; partial new output may remain.";
|
|
91
|
+
const receipt = JSON.stringify({
|
|
92
|
+
version: 1,
|
|
93
|
+
operation: "extract",
|
|
94
|
+
ok: false,
|
|
95
|
+
data: data(false),
|
|
96
|
+
affected: 0,
|
|
97
|
+
locations: [],
|
|
98
|
+
warnings: [],
|
|
99
|
+
errors: [{ code: "unsupported-publication", message: failureMessage }]
|
|
100
|
+
});
|
|
101
|
+
const receiptSize = new TextEncoder().encode(receipt).length + 1;
|
|
102
|
+
budget.check("serializedOutput", receiptSize);
|
|
103
|
+
budget.check("diagnosticBytes", new TextEncoder().encode(`docx: unsupported-publication: ${failureMessage}
|
|
104
|
+
`).length);
|
|
105
|
+
budget.charge("retainedBytes", receiptSize * 12);
|
|
106
|
+
budget.charge("work", receiptSize * 12);
|
|
107
|
+
const parents = /* @__PURE__ */ new Map();
|
|
108
|
+
const capabilities = async (path) => {
|
|
109
|
+
const caps = fs.capabilitiesFor ? await fs.capabilitiesFor(path, { create: true, signal }) : fs.capabilities;
|
|
110
|
+
if (caps.readOnly || !caps.write || !caps.mkdir || !caps.explicitDirectories || !caps.atomicFileMutation || !caps.atomicDirectoryMetadata || !fs.prepareDirectory || !fs.writeFileConditional)
|
|
111
|
+
throw new Error("Destination lacks safe exclusive publication capabilities.");
|
|
112
|
+
};
|
|
113
|
+
const verifyDirectory = async (path) => {
|
|
114
|
+
const stat = await fs.lstat(path, { signal });
|
|
115
|
+
if (stat.type !== "directory" || await fs.realpath(path, { signal }) !== path) throw new Error("Destination directory aliases are not supported.");
|
|
116
|
+
await fs.access(path, 3, { signal });
|
|
117
|
+
return stat;
|
|
118
|
+
};
|
|
119
|
+
try {
|
|
120
|
+
await capabilities(outputDir);
|
|
121
|
+
const outer = outputDir.slice(0, outputDir.lastIndexOf("/")) || "/";
|
|
122
|
+
const outerStat = await verifyDirectory(outer);
|
|
123
|
+
try {
|
|
124
|
+
await fs.lstat(outputDir, { signal });
|
|
125
|
+
throw new PublicationError("conflict", "Destination already exists.");
|
|
126
|
+
} catch (error) {
|
|
127
|
+
if (!error || typeof error !== "object" || !("code" in error) || error.code !== "ENOENT") throw error;
|
|
128
|
+
}
|
|
129
|
+
possiblePartialOutput = true;
|
|
130
|
+
parents.set(outputDir, await fs.prepareDirectory(outputDir, { parent: outerStat, expected: null, mode: 448, signal }));
|
|
131
|
+
await verifyDirectory(outputDir);
|
|
132
|
+
const prepareParents = async (segments) => {
|
|
133
|
+
let parentPath = outputDir;
|
|
134
|
+
for (const segment of segments) {
|
|
135
|
+
const ancestor = parentPath;
|
|
136
|
+
parentPath += "/" + segment;
|
|
137
|
+
if (!parents.has(parentPath)) {
|
|
138
|
+
await capabilities(parentPath);
|
|
139
|
+
parents.set(parentPath, await fs.prepareDirectory(parentPath, { parent: parents.get(ancestor), expected: null, mode: 448, signal }));
|
|
140
|
+
await verifyDirectory(parentPath);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return parentPath;
|
|
144
|
+
};
|
|
145
|
+
for (const directory of directories) {
|
|
146
|
+
await budget.checkpoint(1);
|
|
147
|
+
await prepareParents(directory.split("/"));
|
|
148
|
+
}
|
|
149
|
+
for (const file of [...files, { path: "manifest.json", bytes: manifestBytes, published: false }]) {
|
|
150
|
+
await budget.checkpoint(file.bytes.length + 1);
|
|
151
|
+
const parentPath = await prepareParents(file.path.split("/").slice(0, -1));
|
|
152
|
+
const path = outputDir + "/" + file.path;
|
|
153
|
+
await capabilities(path);
|
|
154
|
+
await fs.writeFileConditional(path, file.bytes, { parent: parents.get(parentPath), expected: null, signal });
|
|
155
|
+
file.published = true;
|
|
156
|
+
if (file.path === "manifest.json") manifestPublished = true;
|
|
157
|
+
}
|
|
158
|
+
signal.throwIfAborted();
|
|
159
|
+
return data(true);
|
|
160
|
+
} catch (error) {
|
|
161
|
+
throw new ArchiveExtractionError(error, data(false), signal.aborted || error instanceof CancellationError);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export {
|
|
166
|
+
ArchiveExtractionError,
|
|
167
|
+
extractDocumentArchive
|
|
168
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
playwrightStandardAbilities
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7JEIWA3A.js";
|
|
4
|
+
import {
|
|
5
|
+
playwrightCommandCatalog
|
|
6
|
+
} from "./chunk-ZFNYL7XB.js";
|
|
4
7
|
import {
|
|
5
8
|
limitedForms,
|
|
6
9
|
playwrightBuiltinCommands
|
|
7
10
|
} from "./chunk-BLNP5WRP.js";
|
|
8
|
-
import {
|
|
9
|
-
playwrightCommandCatalog
|
|
10
|
-
} from "./chunk-ZFNYL7XB.js";
|
|
11
11
|
|
|
12
12
|
// packages/safe-bash-command-playwright-cli/src/playwright/abilities.ts
|
|
13
13
|
var builtinOptions = {
|
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import {
|
|
2
|
+
nodeFor,
|
|
3
|
+
selected,
|
|
4
|
+
validateSelection
|
|
5
|
+
} from "./chunk-QHS7PDG3.js";
|
|
6
|
+
import {
|
|
7
|
+
Length
|
|
8
|
+
} from "./chunk-I6AMDG2T.js";
|
|
9
|
+
import {
|
|
10
|
+
attr,
|
|
11
|
+
child,
|
|
12
|
+
loadShared,
|
|
13
|
+
required
|
|
14
|
+
} from "./chunk-RAXJVM4U.js";
|
|
15
|
+
import {
|
|
16
|
+
SelectionError
|
|
17
|
+
} from "./chunk-CKEODJVT.js";
|
|
18
|
+
import {
|
|
19
|
+
OfficeError
|
|
20
|
+
} from "./chunk-RR6QQ25D.js";
|
|
21
|
+
|
|
22
|
+
// packages/safe-bash-presentation-engine/src/shape-groups.ts
|
|
23
|
+
var shapeKinds = ["sp", "pic", "cxnSp", "graphicFrame", "grpSp"];
|
|
24
|
+
function unsupported(message) {
|
|
25
|
+
throw new OfficeError("unsupported-edit", message, "validate-intent");
|
|
26
|
+
}
|
|
27
|
+
function descendants(root) {
|
|
28
|
+
const result = [], pending = [root];
|
|
29
|
+
while (pending.length) {
|
|
30
|
+
const next = pending.pop();
|
|
31
|
+
result.push(next);
|
|
32
|
+
pending.push(...next.children);
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
var parentIndexes = /* @__PURE__ */ new WeakMap();
|
|
37
|
+
function parentOf(root, node) {
|
|
38
|
+
let index = parentIndexes.get(root);
|
|
39
|
+
if (!index) {
|
|
40
|
+
const owners = /* @__PURE__ */ new Map();
|
|
41
|
+
for (const parent2 of descendants(root))
|
|
42
|
+
for (const child2 of parent2.children) owners.set(child2, parent2);
|
|
43
|
+
index = owners;
|
|
44
|
+
parentIndexes.set(root, index);
|
|
45
|
+
}
|
|
46
|
+
const parent = index.get(node);
|
|
47
|
+
if (!parent) throw new SelectionError("invalid-selection");
|
|
48
|
+
return parent;
|
|
49
|
+
}
|
|
50
|
+
function geometry(node) {
|
|
51
|
+
const p = node.name.namespace;
|
|
52
|
+
const a = p === "http://purl.oclc.org/ooxml/presentationml/main" ? "http://purl.oclc.org/ooxml/drawingml/main" : "http://schemas.openxmlformats.org/drawingml/2006/main";
|
|
53
|
+
const owner = node.name.localName === "graphicFrame" ? node : required(node, node.name.localName === "grpSp" ? "grpSpPr" : "spPr");
|
|
54
|
+
const xfrm = child(owner, "xfrm", node.name.localName === "graphicFrame" ? p : a);
|
|
55
|
+
if (!xfrm) unsupported("Explicit geometry is required for grouping.");
|
|
56
|
+
const integer = (value, fallback) => {
|
|
57
|
+
if (value === void 0 && fallback !== void 0) return fallback;
|
|
58
|
+
const digits = value?.startsWith("-") || value?.startsWith("+") ? value.slice(1) : value;
|
|
59
|
+
if (!digits?.length || [...digits].some((c2) => c2 < "0" || c2 > "9") || !Number.isSafeInteger(Number(value)) || Math.abs(Number(value)) > 27273042316900)
|
|
60
|
+
unsupported("Geometry requires bounded integer coordinates.");
|
|
61
|
+
return Number(value);
|
|
62
|
+
};
|
|
63
|
+
const pair = (name, key) => integer(attr(child(xfrm, name, a) ?? unsupported("Missing transform coordinate."), key));
|
|
64
|
+
const x = pair("off", "x"), y = pair("off", "y"), w = pair("ext", "cx"), h = pair("ext", "cy");
|
|
65
|
+
if (w < 0 || h < 0 || node.name.localName !== "cxnSp" && (w === 0 || h === 0))
|
|
66
|
+
unsupported("Geometry requires positive extents except for connector axes.");
|
|
67
|
+
const angle = (integer(attr(xfrm, "rot"), 0) % 216e5 + 216e5) % 216e5;
|
|
68
|
+
const q = angle / 54e5;
|
|
69
|
+
const c = Number.isInteger(q) ? [1, 0, -1, 0][q] : Math.cos(angle * Math.PI / 108e5);
|
|
70
|
+
const s = Number.isInteger(q) ? [0, 1, 0, -1][q] : Math.sin(angle * Math.PI / 108e5);
|
|
71
|
+
const flip = (key) => {
|
|
72
|
+
const value = attr(xfrm, key);
|
|
73
|
+
if (value !== void 0 && !["0", "1", "true", "false"].includes(value))
|
|
74
|
+
unsupported("Invalid geometry reflection.");
|
|
75
|
+
return value === "1" || value === "true" ? -1 : 1;
|
|
76
|
+
};
|
|
77
|
+
const fx = flip("flipH"), fy = flip("flipV");
|
|
78
|
+
const map = (point) => {
|
|
79
|
+
if (angle === 0 && fx === 1 && fy === 1) return point;
|
|
80
|
+
const dx = (point.x - x - w / 2) * fx, dy = (point.y - y - h / 2) * fy;
|
|
81
|
+
return { x: x + w / 2 + dx * c - dy * s, y: y + h / 2 + dx * s + dy * c };
|
|
82
|
+
};
|
|
83
|
+
let cx = 0, cy = 0, cw = 1, ch = 1;
|
|
84
|
+
if (node.name.localName === "grpSp") {
|
|
85
|
+
cx = pair("chOff", "x");
|
|
86
|
+
cy = pair("chOff", "y");
|
|
87
|
+
cw = pair("chExt", "cx");
|
|
88
|
+
ch = pair("chExt", "cy");
|
|
89
|
+
if (cw <= 0 || ch <= 0) unsupported("Group child extents must be nonsingular.");
|
|
90
|
+
}
|
|
91
|
+
const identityMapping = x === cx && y === cy && w === cw && h === ch && angle === 0 && fx === 1 && fy === 1;
|
|
92
|
+
return {
|
|
93
|
+
x,
|
|
94
|
+
y,
|
|
95
|
+
w,
|
|
96
|
+
h,
|
|
97
|
+
xfrm,
|
|
98
|
+
a,
|
|
99
|
+
map,
|
|
100
|
+
identityMapping,
|
|
101
|
+
angle,
|
|
102
|
+
fx,
|
|
103
|
+
fy,
|
|
104
|
+
cx,
|
|
105
|
+
cy,
|
|
106
|
+
cw,
|
|
107
|
+
ch,
|
|
108
|
+
childMap: (point) => identityMapping ? point : map({ x: x + (point.x - cx) * w / cw, y: y + (point.y - cy) * h / ch })
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function corners(root, node) {
|
|
112
|
+
const g = geometry(node);
|
|
113
|
+
let points = [
|
|
114
|
+
{ x: g.x, y: g.y },
|
|
115
|
+
{ x: g.x + g.w, y: g.y },
|
|
116
|
+
{ x: g.x + g.w, y: g.y + g.h },
|
|
117
|
+
{ x: g.x, y: g.y + g.h }
|
|
118
|
+
].map(g.map);
|
|
119
|
+
let current = node;
|
|
120
|
+
while (current !== root) {
|
|
121
|
+
current = parentOf(root, current);
|
|
122
|
+
if (current.name.localName === "grpSp" && current.name.namespace === node.name.namespace)
|
|
123
|
+
points = points.map(geometry(current).childMap);
|
|
124
|
+
}
|
|
125
|
+
if (points.some(
|
|
126
|
+
(point) => !Number.isFinite(point.x) || !Number.isFinite(point.y) || Math.abs(point.x) > 27273042316900 || Math.abs(point.y) > 27273042316900
|
|
127
|
+
))
|
|
128
|
+
unsupported("World geometry exceeds coordinate bounds.");
|
|
129
|
+
return points;
|
|
130
|
+
}
|
|
131
|
+
function identity(node) {
|
|
132
|
+
const nv = node.children.find(
|
|
133
|
+
(n) => n.name.namespace === node.name.namespace && ["nvSpPr", "nvGrpSpPr", "nvPicPr", "nvCxnSpPr", "nvGraphicFramePr"].includes(n.name.localName)
|
|
134
|
+
);
|
|
135
|
+
const value = nv && attr(required(nv, "cNvPr"), "id");
|
|
136
|
+
if (!value) unsupported("Shape identity is required.");
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
function validateTolerance(tolerance) {
|
|
140
|
+
if (!Number.isSafeInteger(tolerance) || tolerance < 0)
|
|
141
|
+
throw new OfficeError(
|
|
142
|
+
"invalid-value",
|
|
143
|
+
"Explicit nonnegative integer EMU tolerance is required.",
|
|
144
|
+
"usage"
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function drawingShapes(root) {
|
|
148
|
+
return descendants(root).filter(
|
|
149
|
+
(n) => n.name.namespace === root.name.namespace && shapeKinds.includes(n.name.localName)
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function fraction(n, d = 1n) {
|
|
153
|
+
let a = n < 0n ? -n : n, b = d;
|
|
154
|
+
while (b) {
|
|
155
|
+
const rest = a % b;
|
|
156
|
+
a = b;
|
|
157
|
+
b = rest;
|
|
158
|
+
}
|
|
159
|
+
return { n: n / a, d: d / a };
|
|
160
|
+
}
|
|
161
|
+
function add(a, b) {
|
|
162
|
+
return fraction(a.n * b.d + b.n * a.d, a.d * b.d);
|
|
163
|
+
}
|
|
164
|
+
function negate(a) {
|
|
165
|
+
return { n: -a.n, d: a.d };
|
|
166
|
+
}
|
|
167
|
+
function multiply(a, n, d = 1) {
|
|
168
|
+
return fraction(a.n * BigInt(n), a.d * BigInt(d));
|
|
169
|
+
}
|
|
170
|
+
function exactCorners(root, node) {
|
|
171
|
+
const own = geometry(node), f = (n) => fraction(BigInt(n));
|
|
172
|
+
let points = [
|
|
173
|
+
{ x: f(own.x), y: f(own.y) },
|
|
174
|
+
{ x: f(own.x + own.w), y: f(own.y) },
|
|
175
|
+
{ x: f(own.x + own.w), y: f(own.y + own.h) },
|
|
176
|
+
{ x: f(own.x), y: f(own.y + own.h) }
|
|
177
|
+
];
|
|
178
|
+
const apply = (target, childSpace) => {
|
|
179
|
+
const g = geometry(target), q = g.angle / 54e5;
|
|
180
|
+
if (!Number.isInteger(q))
|
|
181
|
+
unsupported(
|
|
182
|
+
"Nonidentity ungroup requires quarter-turn geometry for an exact tolerance proof."
|
|
183
|
+
);
|
|
184
|
+
const centerX = add(f(g.x), multiply(f(g.w), 1, 2)), centerY = add(f(g.y), multiply(f(g.h), 1, 2));
|
|
185
|
+
points = points.map((point) => {
|
|
186
|
+
const px = childSpace ? add(f(g.x), multiply(add(point.x, negate(f(g.cx))), g.w, g.cw)) : point.x;
|
|
187
|
+
const py = childSpace ? add(f(g.y), multiply(add(point.y, negate(f(g.cy))), g.h, g.ch)) : point.y;
|
|
188
|
+
const dx = multiply(add(px, negate(centerX)), g.fx), dy = multiply(add(py, negate(centerY)), g.fy);
|
|
189
|
+
const rx = [dx, negate(dy), negate(dx), dy][q], ry = [dy, dx, negate(dy), negate(dx)][q];
|
|
190
|
+
return { x: add(centerX, rx), y: add(centerY, ry) };
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
apply(node, false);
|
|
194
|
+
let current = node;
|
|
195
|
+
while (current !== root) {
|
|
196
|
+
current = parentOf(root, current);
|
|
197
|
+
if (current.name.namespace === node.name.namespace && current.name.localName === "grpSp")
|
|
198
|
+
apply(current, true);
|
|
199
|
+
}
|
|
200
|
+
for (const point of points)
|
|
201
|
+
for (const value of [point.x, point.y])
|
|
202
|
+
if ((value.n < 0n ? -value.n : value.n) > 27273042316900n * value.d)
|
|
203
|
+
unsupported("World geometry exceeds coordinate bounds.");
|
|
204
|
+
return points;
|
|
205
|
+
}
|
|
206
|
+
function certify(before, after, nodes, tolerance) {
|
|
207
|
+
for (const node of nodes) {
|
|
208
|
+
const original = exactCorners(before.root, node), changed = exactCorners(after.root, nodeFor(after.root, identity(node)));
|
|
209
|
+
for (let i = 0; i < 4; i++)
|
|
210
|
+
for (const axis of ["x", "y"]) {
|
|
211
|
+
const difference = add(original[i][axis], negate(changed[i][axis]));
|
|
212
|
+
if ((difference.n < 0n ? -difference.n : difference.n) > BigInt(tolerance) * difference.d)
|
|
213
|
+
unsupported("Serialized geometry exceeds the explicit tolerance.");
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function bounded(node) {
|
|
218
|
+
const transform = geometry(node);
|
|
219
|
+
const xfrm = transform.xfrm;
|
|
220
|
+
if (xfrm.attributes.some(
|
|
221
|
+
(a) => a.name.namespace !== "" || !["rot", "flipH", "flipV"].includes(a.name.localName)
|
|
222
|
+
) || xfrm.children.some(
|
|
223
|
+
(n) => n.name.namespace !== transform.a || !["off", "ext", "chOff", "chExt"].includes(n.name.localName) || n.children.length || n.attributes.length !== 2 || n.attributes.some(
|
|
224
|
+
(a) => a.name.namespace !== "" || !(n.name.localName.endsWith("Off") || n.name.localName === "off" ? ["x", "y"] : ["cx", "cy"]).includes(a.name.localName)
|
|
225
|
+
)
|
|
226
|
+
))
|
|
227
|
+
unsupported("Unknown transform metadata cannot be bounded.");
|
|
228
|
+
if (node.name.localName === "grpSp") {
|
|
229
|
+
const nv = required(node, "nvGrpSpPr");
|
|
230
|
+
if (node.attributes.length || nv.attributes.length || nv.children.length !== 3 || nv.children.some(
|
|
231
|
+
(n) => n.name.namespace !== node.name.namespace || !["cNvPr", "cNvGrpSpPr", "nvPr"].includes(n.name.localName) || n.children.length || n.attributes.some(
|
|
232
|
+
(a) => n.name.localName !== "cNvPr" || a.name.namespace !== "" || !["id", "name"].includes(a.name.localName)
|
|
233
|
+
)
|
|
234
|
+
))
|
|
235
|
+
unsupported("Group actions or metadata cannot be removed.");
|
|
236
|
+
const props2 = required(node, "grpSpPr");
|
|
237
|
+
if (props2.attributes.length || props2.children.some((n) => n.name.localName !== "xfrm" || n.name.namespace !== transform.a))
|
|
238
|
+
unsupported("Group effects or inherited formatting cannot be removed.");
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
if (node.name.localName !== "sp")
|
|
242
|
+
unsupported("Ungroup currently requires plain rectangular shapes or nested groups.");
|
|
243
|
+
const props = required(node, "spPr"), preset = child(props, "prstGeom", geometry(node).a);
|
|
244
|
+
if (!preset || attr(preset, "prst") !== "rect" || preset.children.some(
|
|
245
|
+
(n) => n.name.namespace !== transform.a || n.name.localName !== "avLst" || n.children.length || n.attributes.length
|
|
246
|
+
))
|
|
247
|
+
unsupported("Unsupported vertex geometry for ungroup.");
|
|
248
|
+
if (node.attributes.length || props.attributes.length || node.children.some(
|
|
249
|
+
(n) => n.name.namespace !== node.name.namespace || !["nvSpPr", "spPr"].includes(n.name.localName)
|
|
250
|
+
) || props.children.some(
|
|
251
|
+
(n) => n.name.namespace !== transform.a || !["xfrm", "prstGeom", "solidFill", "noFill", "ln"].includes(n.name.localName)
|
|
252
|
+
))
|
|
253
|
+
unsupported("Text, styles, or effects cannot be bounded for ungroup.");
|
|
254
|
+
const line = child(props, "ln", geometry(node).a);
|
|
255
|
+
if (!line || line.children.length !== 1 || line.children[0].name.localName !== "noFill" || line.children[0].name.namespace !== transform.a || line.children[0].attributes.length || line.children[0].children.length || line.attributes.length)
|
|
256
|
+
unsupported("Ungroup requires an explicit absent stroke.");
|
|
257
|
+
}
|
|
258
|
+
function applyShapeGroup(doc, ids, tolerance) {
|
|
259
|
+
validateTolerance(tolerance);
|
|
260
|
+
if (ids.length < 2 || new Set(ids).size !== ids.length)
|
|
261
|
+
throw new SelectionError("invalid-selection");
|
|
262
|
+
const nodes = ids.map((id2) => nodeFor(doc.root, id2)), parent = parentOf(doc.root, nodes[0]);
|
|
263
|
+
if (!["spTree", "grpSp"].includes(parent.name.localName) || nodes.some((n) => parentOf(doc.root, n) !== parent))
|
|
264
|
+
throw new SelectionError("invalid-selection");
|
|
265
|
+
const positions = nodes.map((n) => parent.children.indexOf(n)).sort((a2, b) => a2 - b);
|
|
266
|
+
if (positions.at(-1) - positions[0] + 1 !== nodes.length)
|
|
267
|
+
unsupported("Grouping requires contiguous siblings to preserve z-order.");
|
|
268
|
+
const ordered = parent.children.slice(positions[0], positions.at(-1) + 1);
|
|
269
|
+
const affected = ordered.flatMap(drawingShapes);
|
|
270
|
+
for (const node of affected) corners(doc.root, node);
|
|
271
|
+
const transforms = ordered.map(geometry);
|
|
272
|
+
const x = transforms.reduce((n, g) => Math.min(n, g.x), Infinity), y = transforms.reduce((n, g) => Math.min(n, g.y), Infinity);
|
|
273
|
+
const w = transforms.reduce((n, g) => Math.max(n, g.x + g.w), -Infinity) - x, h = transforms.reduce((n, g) => Math.max(n, g.y + g.h), -Infinity) - y;
|
|
274
|
+
if (w <= 0 || h <= 0) unsupported("Group union requires positive nonsingular extents.");
|
|
275
|
+
if (w > 27273042316900 || h > 27273042316900)
|
|
276
|
+
unsupported("Group union exceeds coordinate bounds.");
|
|
277
|
+
const used = new Set(
|
|
278
|
+
descendants(doc.root).filter((n) => n.name.localName === "cNvPr" && n.name.namespace === doc.root.name.namespace).map((n) => Number(attr(n, "id")))
|
|
279
|
+
);
|
|
280
|
+
let id = 1;
|
|
281
|
+
for (const usedId of used) id = Math.max(id, usedId + 1);
|
|
282
|
+
if (id > 4294967295) {
|
|
283
|
+
id = 1;
|
|
284
|
+
while (used.has(id)) id++;
|
|
285
|
+
}
|
|
286
|
+
if (!Number.isSafeInteger(id) || id > 4294967295) unsupported("No available group identity.");
|
|
287
|
+
const p = doc.root.name.namespace, a = transforms[0].a;
|
|
288
|
+
const xml = `<p:grpSp xmlns:p="${p}" xmlns:a="${a}"><p:nvGrpSpPr><p:cNvPr id="${id}" name="Group ${id}"/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="${x}" y="${y}"/><a:ext cx="${w}" cy="${h}"/><a:chOff x="${x}" y="${y}"/><a:chExt cx="${w}" cy="${h}"/></a:xfrm></p:grpSpPr>${ordered.map((n) => doc.markup(n, true)).join("")}</p:grpSp>`;
|
|
289
|
+
const result = doc.spliceChildren(parent, positions[0], nodes.length, [xml]);
|
|
290
|
+
return result;
|
|
291
|
+
}
|
|
292
|
+
function applyShapeUngroup(doc, id, tolerance) {
|
|
293
|
+
validateTolerance(tolerance);
|
|
294
|
+
const group = nodeFor(doc.root, id);
|
|
295
|
+
if (group.name.localName !== "grpSp") throw new SelectionError("invalid-selection");
|
|
296
|
+
const affected = drawingShapes(group).filter((n) => n !== group);
|
|
297
|
+
const nodes = group.children.filter(
|
|
298
|
+
(n) => n.name.namespace === group.name.namespace && shapeKinds.includes(n.name.localName)
|
|
299
|
+
);
|
|
300
|
+
if (!nodes.length) unsupported("Ungroup requires explicit child geometry.");
|
|
301
|
+
const outer = geometry(group);
|
|
302
|
+
bounded(group);
|
|
303
|
+
for (const node of affected) {
|
|
304
|
+
if (outer.identityMapping) corners(doc.root, node);
|
|
305
|
+
else bounded(node);
|
|
306
|
+
}
|
|
307
|
+
if (group.children.some(
|
|
308
|
+
(n) => n.name.namespace !== group.name.namespace || !["nvGrpSpPr", "grpSpPr", ...shapeKinds].includes(n.name.localName)
|
|
309
|
+
))
|
|
310
|
+
unsupported("Unknown group metadata cannot be removed.");
|
|
311
|
+
const affectedIds = new Set(affected.map(identity));
|
|
312
|
+
for (const node of descendants(doc.root)) {
|
|
313
|
+
if (["timing", "extLst"].includes(node.name.localName) && node.children.length)
|
|
314
|
+
unsupported("Opaque timing or extension references cannot be remapped safely.");
|
|
315
|
+
if (!outer.identityMapping && node.attributes.some(
|
|
316
|
+
(a) => ["spid", "spId", "shapeId"].includes(a.name.localName) && affectedIds.has(a.value)
|
|
317
|
+
))
|
|
318
|
+
unsupported("Affected timing references cannot be remapped safely.");
|
|
319
|
+
if (["stCxn", "endCxn"].includes(node.name.localName) && attr(node, "id") === id || node.attributes.some(
|
|
320
|
+
(a) => ["spid", "spId", "shapeId"].includes(a.name.localName) && a.value === id
|
|
321
|
+
))
|
|
322
|
+
unsupported("Removed group has connector or timing references.");
|
|
323
|
+
}
|
|
324
|
+
let changed = doc;
|
|
325
|
+
for (const original of outer.identityMapping ? [] : nodes) {
|
|
326
|
+
const childNode = nodeFor(changed.root, identity(original)), g = geometry(childNode);
|
|
327
|
+
const local = [
|
|
328
|
+
{ x: g.x, y: g.y },
|
|
329
|
+
{ x: g.x + g.w, y: g.y },
|
|
330
|
+
{ x: g.x, y: g.y + g.h }
|
|
331
|
+
].map(g.map).map(outer.childMap);
|
|
332
|
+
const u = { x: local[1].x - local[0].x, y: local[1].y - local[0].y }, v = { x: local[2].x - local[0].x, y: local[2].y - local[0].y };
|
|
333
|
+
const width = Math.hypot(u.x, u.y), height = Math.hypot(v.x, v.y);
|
|
334
|
+
if (Math.abs(u.x * v.x + u.y * v.y) > Number.EPSILON * width * height * 8)
|
|
335
|
+
unsupported("Ungroup would require unsupported shear.");
|
|
336
|
+
const angle = Math.atan2(u.y, u.x) * 108e5 / Math.PI;
|
|
337
|
+
const rotation = (new Length(angle).emu % 216e5 + 216e5) % 216e5;
|
|
338
|
+
const roundedWidth = new Length(width).emu, roundedHeight = new Length(height).emu;
|
|
339
|
+
const x = new Length(local[0].x + (u.x + v.x) / 2 - roundedWidth / 2).emu, y = new Length(local[0].y + (u.y + v.y) / 2 - roundedHeight / 2).emu;
|
|
340
|
+
if (roundedWidth <= 0 || roundedHeight <= 0)
|
|
341
|
+
unsupported("Rounding produces zero visible extents.");
|
|
342
|
+
changed = changed.merge(g.xfrm, {
|
|
343
|
+
attributes: [
|
|
344
|
+
{ namespace: "", localName: "rot", value: String(rotation) },
|
|
345
|
+
{ namespace: "", localName: "flipH", value: "0" },
|
|
346
|
+
{ namespace: "", localName: "flipV", value: u.x * v.y - u.y * v.x < 0 ? "1" : "0" }
|
|
347
|
+
],
|
|
348
|
+
children: {
|
|
349
|
+
sequence: ["off", "ext", "chOff", "chExt"].map((localName) => ({
|
|
350
|
+
namespace: g.a,
|
|
351
|
+
localName
|
|
352
|
+
})),
|
|
353
|
+
upsert: [
|
|
354
|
+
{
|
|
355
|
+
name: { namespace: g.a, localName: "off" },
|
|
356
|
+
merge: {
|
|
357
|
+
attributes: [
|
|
358
|
+
{ namespace: "", localName: "x", value: String(x) },
|
|
359
|
+
{ namespace: "", localName: "y", value: String(y) }
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: { namespace: g.a, localName: "ext" },
|
|
365
|
+
merge: {
|
|
366
|
+
attributes: [
|
|
367
|
+
{ namespace: "", localName: "cx", value: String(roundedWidth) },
|
|
368
|
+
{ namespace: "", localName: "cy", value: String(roundedHeight) }
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
const current = nodeFor(changed.root, id), parent = parentOf(changed.root, current);
|
|
377
|
+
const result = changed.spliceChildren(
|
|
378
|
+
parent,
|
|
379
|
+
parent.children.indexOf(current),
|
|
380
|
+
1,
|
|
381
|
+
nodes.map((n) => changed.markup(nodeFor(changed.root, identity(n)), true))
|
|
382
|
+
);
|
|
383
|
+
if (!outer.identityMapping) certify(doc, result, affected, tolerance);
|
|
384
|
+
return result;
|
|
385
|
+
}
|
|
386
|
+
function validateGroupOptions(options, grouping) {
|
|
387
|
+
if (!options || typeof options !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(options)) || Reflect.ownKeys(options).some(
|
|
388
|
+
(key) => typeof key !== "string" || !("value" in Object.getOwnPropertyDescriptor(options, key))
|
|
389
|
+
))
|
|
390
|
+
throw new OfficeError("invalid-value", "Invalid group options.", "usage");
|
|
391
|
+
if (!(options.tolerance instanceof Length))
|
|
392
|
+
throw new OfficeError("invalid-value", "Explicit tolerance Length is required.", "usage");
|
|
393
|
+
if (!("value" in (Object.getOwnPropertyDescriptor(options.tolerance, "emu") ?? {})))
|
|
394
|
+
throw new OfficeError("invalid-value", "Tolerance requires a stored EMU value.", "usage");
|
|
395
|
+
validateTolerance(options.tolerance.emu);
|
|
396
|
+
if (["update", "all", "allowEmpty"].some((key) => Object.hasOwn(options, key)))
|
|
397
|
+
throw new OfficeError("invalid-value", "Unexpected group option.", "usage");
|
|
398
|
+
if (grouping) {
|
|
399
|
+
const shapes = options.shapes;
|
|
400
|
+
if (!Array.isArray(shapes) || shapes.length < 2) throw new SelectionError("invalid-selection");
|
|
401
|
+
for (const location of shapes) {
|
|
402
|
+
const keys = ["fingerprint", "scope", "owner", "objectId", "coordinateSystem"];
|
|
403
|
+
if (!location || typeof location !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(location)) || Reflect.ownKeys(location).some(
|
|
404
|
+
(key) => typeof key !== "string" || !keys.includes(key) || !("value" in Object.getOwnPropertyDescriptor(location, key))
|
|
405
|
+
) || keys.some(
|
|
406
|
+
(key) => !Object.hasOwn(location, key) || typeof location[key] !== "string" || !location[key].length
|
|
407
|
+
) || location.coordinateSystem !== "identity")
|
|
408
|
+
throw new OfficeError(
|
|
409
|
+
"invalid-value",
|
|
410
|
+
"Locations require exact identity data fields.",
|
|
411
|
+
"usage"
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
const { tolerance: ignoredTolerance, ...rest } = options;
|
|
416
|
+
const { shapes: ignoredShapes, ...selection } = rest;
|
|
417
|
+
if (!grouping && Object.hasOwn(options, "shapes"))
|
|
418
|
+
throw new OfficeError("invalid-value", "Unexpected shapes option.", "usage");
|
|
419
|
+
validateSelection(selection, "set");
|
|
420
|
+
if (!grouping && !selection.select && selection.shape === void 0 && selection.slide === void 0 && !selection.part)
|
|
421
|
+
throw new SelectionError("invalid-selection");
|
|
422
|
+
return selection;
|
|
423
|
+
}
|
|
424
|
+
async function groupShapes(input, options, context) {
|
|
425
|
+
const selection = validateGroupOptions(options, true), s = await loadShared(input, context);
|
|
426
|
+
if (!Array.isArray(options.shapes) || options.shapes.length < 2)
|
|
427
|
+
throw new SelectionError("invalid-selection");
|
|
428
|
+
const allowed = selected(s, selection);
|
|
429
|
+
const records = options.shapes.map((location) => {
|
|
430
|
+
if (!location || location.fingerprint !== s.index.fingerprint)
|
|
431
|
+
throw new SelectionError("stale-selection");
|
|
432
|
+
const record = allowed.find(
|
|
433
|
+
(r) => r.location.owner === location.owner && r.location.objectId === location.objectId && r.location.scope === location.scope && location.coordinateSystem === "identity"
|
|
434
|
+
);
|
|
435
|
+
if (!record) throw new SelectionError("invalid-selection");
|
|
436
|
+
return record;
|
|
437
|
+
});
|
|
438
|
+
const part = records[0].part;
|
|
439
|
+
if (records.some((r) => r.part !== part)) throw new SelectionError("invalid-selection");
|
|
440
|
+
s.save(
|
|
441
|
+
part,
|
|
442
|
+
applyShapeGroup(
|
|
443
|
+
s.doc(part),
|
|
444
|
+
records.map((r) => r.id),
|
|
445
|
+
options.tolerance.emu
|
|
446
|
+
)
|
|
447
|
+
);
|
|
448
|
+
return {
|
|
449
|
+
...await s.finish(
|
|
450
|
+
part,
|
|
451
|
+
s.index.inventory.slides.filter((x) => [x.part, x.master, x.layout].includes(part)).map((x) => x.position)
|
|
452
|
+
),
|
|
453
|
+
affected: records.length,
|
|
454
|
+
records
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
async function ungroupShape(input, options, context) {
|
|
458
|
+
const selection = validateGroupOptions(options, false), s = await loadShared(input, context), records = selected(s, selection);
|
|
459
|
+
if (records.length !== 1)
|
|
460
|
+
throw new SelectionError(
|
|
461
|
+
records.length ? "ambiguous-selection" : "missing-selection",
|
|
462
|
+
records.map((r) => r.location)
|
|
463
|
+
);
|
|
464
|
+
const record = records[0];
|
|
465
|
+
const source = s.doc(record.part);
|
|
466
|
+
const childIds = new Set(
|
|
467
|
+
nodeFor(source.root, record.id).children.filter(
|
|
468
|
+
(n) => n.name.namespace === source.root.name.namespace && shapeKinds.includes(n.name.localName)
|
|
469
|
+
).map(identity)
|
|
470
|
+
);
|
|
471
|
+
const retained = s.index.objects.filter((r) => r.part === record.part && childIds.has(r.id));
|
|
472
|
+
s.save(record.part, applyShapeUngroup(source, record.id, options.tolerance.emu));
|
|
473
|
+
return {
|
|
474
|
+
...await s.finish(
|
|
475
|
+
record.part,
|
|
476
|
+
s.index.inventory.slides.filter((x) => [x.part, x.master, x.layout].includes(record.part)).map((x) => x.position)
|
|
477
|
+
),
|
|
478
|
+
affected: 1,
|
|
479
|
+
records: retained
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export {
|
|
484
|
+
applyShapeGroup,
|
|
485
|
+
applyShapeUngroup,
|
|
486
|
+
validateGroupOptions,
|
|
487
|
+
groupShapes,
|
|
488
|
+
ungroupShape
|
|
489
|
+
};
|