hyperframes 0.8.223 → 0.8.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-PBLOPJHC.js → add-ZGNY2AXJ.js} +14 -14
- package/dist/{agentPromptGenerator-OD74HKYZ.js → agentPromptGenerator-GG4FFZH7.js} +5 -5
- package/dist/{animatedGifPrep-QCG2BTDC.js → animatedGifPrep-NVDUG2CD.js} +5 -5
- package/dist/api.js +21 -21
- package/dist/{asset-KHXCO4OR.js → asset-UC3OQBB3.js} +5 -5
- package/dist/{assetCataloger-ZX5WZTDQ.js → assetCataloger-WQTNJMZU.js} +6 -6
- package/dist/{audio-7AH2C6PB.js → audio-T6RWZHAA.js} +19 -19
- package/dist/{auth-DJWMGXQB.js → auth-FSXEGF3B.js} +4 -4
- package/dist/{autoUpdate-KJMLYSHE.js → autoUpdate-LOBHDWAA.js} +4 -4
- package/dist/{backgroundChecks-XLVQMMXY.js → backgroundChecks-RBFWIWBP.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-UR67LI4H.js → batchRender-LDZ6NO2X.js} +6 -6
- package/dist/{beats-ISWSYNN6.js → beats-WFPPVM6N.js} +11 -11
- package/dist/{benchmark-7JUATINH.js → benchmark-7MYD5S26.js} +13 -13
- package/dist/{billing-VGKY3FMX.js → billing-2BJTLFDX.js} +4 -4
- package/dist/{browser-HNGQB47C.js → browser-6C4IDYQE.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-4XWX2XPS.js → bundleWithLocalizedFonts-ARTT664T.js} +2 -2
- package/dist/{capture-GFDP5THL.js → capture-7TFC65RN.js} +7 -7
- package/dist/{capture-LBEGVQTJ.js → capture-TWZ5DQHP.js} +16 -16
- package/dist/{captureCompositionFrame-5L3J4MZ4.js → captureCompositionFrame-EMP6R3F6.js} +15 -15
- package/dist/{captureTimeout-RIMG6IYH.js → captureTimeout-7Y2RUBCU.js} +3 -1
- package/dist/{catalog-SNUTPI57.js → catalog-W4RJO4FE.js} +15 -15
- package/dist/{catch-up-FE3HDMLJ.js → catch-up-OOCJH3O6.js} +8 -8
- package/dist/{check-MQCBMOKA.js → check-BPPHG2CF.js} +42 -42
- package/dist/{checkAudio-6VPMLIY6.js → checkAudio-QEGCKX2V.js} +8 -8
- package/dist/{checkBrowser-SHUVFQ4S.js → checkBrowser-4JDYYAVA.js} +35 -35
- package/dist/{chunk-NZZQCWUC.js → chunk-2EH3WQCS.js} +4 -4
- package/dist/{chunk-VJM6NX54.js → chunk-2YZD6CAF.js} +1 -1
- package/dist/{chunk-G5KX4X6W.js → chunk-35NDLXHZ.js} +32 -37
- package/dist/{chunk-CXEU6XNL.js → chunk-3E2BO3L3.js} +1 -1
- package/dist/{chunk-RORIFIUW.js → chunk-3HRQI6LJ.js} +1 -1
- package/dist/{chunk-EJOFIHX4.js → chunk-3XQQLL3G.js} +1 -1
- package/dist/{chunk-N6XKBBT5.js → chunk-4A643C3B.js} +7 -7
- package/dist/{chunk-6ZLDIMPL.js → chunk-4H4DR36N.js} +2 -2
- package/dist/{chunk-EX75C5HT.js → chunk-4K6AS5TX.js} +39 -18
- package/dist/{chunk-PX7Y4HMM.js → chunk-4VTXUGDR.js} +1 -1
- package/dist/{chunk-3FGEDDSA.js → chunk-4Z2SU2VC.js} +24 -22
- package/dist/{chunk-4XQQQ4KN.js → chunk-5HGS5MGD.js} +61 -19
- package/dist/{chunk-BN75GXZM.js → chunk-5I6XEO4W.js} +5 -5
- package/dist/{chunk-4JRFMRCQ.js → chunk-5KADQQ6S.js} +1 -1
- package/dist/{chunk-5ZBMHUY2.js → chunk-5LOZWO2M.js} +1 -1
- package/dist/{chunk-KCDWRMTC.js → chunk-652ERUZD.js} +2 -2
- package/dist/{chunk-DP5LF7GF.js → chunk-66W5IWLO.js} +12 -0
- package/dist/{chunk-CYE2NNFF.js → chunk-6IV2N527.js} +2 -2
- package/dist/chunk-6UWSEXQ3.js +5030 -0
- package/dist/{chunk-I6OY5MS6.js → chunk-7HSV5SJ4.js} +3 -3
- package/dist/{chunk-FKBWONRY.js → chunk-7RTPHNOO.js} +1 -1
- package/dist/{chunk-MUHOFRGW.js → chunk-A25SCSOK.js} +1 -1
- package/dist/{chunk-WUXDIF5D.js → chunk-ACUVSKUI.js} +23 -15
- package/dist/{chunk-45UOXUUH.js → chunk-ADOBHVHW.js} +2 -2
- package/dist/{chunk-SJGE5I5F.js → chunk-ADVVQX4I.js} +1 -1
- package/dist/{chunk-SNFVQDKE.js → chunk-AF3EN5XS.js} +3 -3
- package/dist/{chunk-M4UVOUWC.js → chunk-AMQFGICP.js} +1 -1
- package/dist/{chunk-VBCBHDIW.js → chunk-BEMGUGGJ.js} +1 -1
- package/dist/{chunk-WGOIJN57.js → chunk-BKHBSFEO.js} +3 -3
- package/dist/{chunk-K5GMPWMG.js → chunk-BTDKWWND.js} +2 -2
- package/dist/{chunk-UBDO4EHA.js → chunk-C5JKRCSG.js} +1 -1
- package/dist/{chunk-OVINGNLQ.js → chunk-CGX4EOGT.js} +3 -3
- package/dist/{chunk-NLWG5TU7.js → chunk-CXVFPIOM.js} +1 -1
- package/dist/{chunk-UQVAAEPQ.js → chunk-E47ZWDMH.js} +1 -1
- package/dist/{chunk-P5QGZMGC.js → chunk-EEBIHQF2.js} +2 -2
- package/dist/{chunk-A2KNKY4Z.js → chunk-EECV7SDN.js} +1 -1
- package/dist/{chunk-FORV75JT.js → chunk-EIIMWDZW.js} +51 -29
- package/dist/{chunk-IJI2JNN7.js → chunk-EQFDOQTG.js} +1 -1
- package/dist/{chunk-OWFSGDQS.js → chunk-FJ3KUOUZ.js} +1 -1
- package/dist/{chunk-7KBS6ZLB.js → chunk-FPR57WRR.js} +2 -2
- package/dist/{chunk-WWOHLNFO.js → chunk-FPWCICAI.js} +1 -1
- package/dist/{chunk-C466I3DT.js → chunk-G45NYKSM.js} +38 -3
- package/dist/{chunk-QZGKKQ77.js → chunk-G6Z47UQP.js} +125 -13
- package/dist/{chunk-UFYWGUUV.js → chunk-GE4ABM5K.js} +2 -2
- package/dist/{chunk-KJGYQVFD.js → chunk-GI42ZB52.js} +1 -1
- package/dist/{chunk-MTVL7FWZ.js → chunk-GZPGTGRV.js} +1 -1
- package/dist/{chunk-JNQCM6CR.js → chunk-HMS6UHUW.js} +2 -2
- package/dist/{chunk-7XWCCFYW.js → chunk-HW6HTTBZ.js} +1 -1
- package/dist/{chunk-JTZHDD63.js → chunk-IB7I5IEC.js} +1 -1
- package/dist/{chunk-B5HFCGI7.js → chunk-IJWDVOIO.js} +2 -2
- package/dist/{chunk-B6F33PUK.js → chunk-IORJ42GY.js} +2 -2
- package/dist/{chunk-S2HWGG5O.js → chunk-JHOPRAJN.js} +1 -1
- package/dist/{chunk-EF735J3K.js → chunk-K73PYNON.js} +2 -2
- package/dist/{chunk-ZEKV5T3I.js → chunk-KDF67KEB.js} +14 -14
- package/dist/{chunk-PHEPL7OX.js → chunk-KEDN4LSV.js} +2 -2
- package/dist/{chunk-2HBB5U52.js → chunk-KVBOJJ5R.js} +3 -3
- package/dist/{chunk-BDEBKAD2.js → chunk-LWTT7I7X.js} +1 -1
- package/dist/{chunk-QNLHDYYO.js → chunk-LZB5AHFD.js} +1 -1
- package/dist/{chunk-VMRQDPFL.js → chunk-M336YVCP.js} +1 -1
- package/dist/{chunk-664JAO7C.js → chunk-M3WOI7BU.js} +3 -3
- package/dist/{chunk-6LE7K3YM.js → chunk-M4NN4AHH.js} +12 -12
- package/dist/{chunk-EQGKUPBJ.js → chunk-MCDNAIFF.js} +1 -1
- package/dist/{chunk-UGUWSAJT.js → chunk-NLELDFX7.js} +2 -2
- package/dist/{chunk-RKVKFXYB.js → chunk-O3MGHHJO.js} +3 -3
- package/dist/{chunk-PBPHKD56.js → chunk-OZMZFJDW.js} +1 -1
- package/dist/{chunk-LAIGIOEA.js → chunk-PICDT6ZW.js} +2 -2
- package/dist/{chunk-RWSVSCOP.js → chunk-QOYZ3U6G.js} +1 -1
- package/dist/{chunk-HOTXWVVP.js → chunk-R2C5EON5.js} +2 -6
- package/dist/{chunk-A5WWEW6U.js → chunk-R6JPOEDZ.js} +1 -1
- package/dist/{chunk-JO4LHFFP.js → chunk-RDLJSUI4.js} +17 -11
- package/dist/{chunk-Y4INSXS7.js → chunk-RR5QE7DB.js} +2 -2
- package/dist/{chunk-ONMTNYGR.js → chunk-RXJUMVCA.js} +1 -1
- package/dist/{chunk-SDBVVDBW.js → chunk-SIYDHVN2.js} +1 -1
- package/dist/{chunk-AKTI2SHL.js → chunk-SVGHIMPQ.js} +2 -2
- package/dist/{chunk-LV5AVW6U.js → chunk-SXHSNLEC.js} +1 -1
- package/dist/{chunk-KT2WLSX5.js → chunk-T5KG6H6L.js} +9 -9
- package/dist/{chunk-OZM6VLD7.js → chunk-TRPNLI6V.js} +1 -1
- package/dist/{chunk-XZEHFUQF.js → chunk-UBH2R663.js} +3 -3
- package/dist/{chunk-44IPXXSK.js → chunk-UBXKKXXR.js} +3 -3
- package/dist/{chunk-IQ7FABPU.js → chunk-UCPEABYK.js} +2 -2
- package/dist/{chunk-M7HNGAWN.js → chunk-UQWOOANM.js} +2 -2
- package/dist/{chunk-KWYK65GR.js → chunk-UZ5AWZCA.js} +3 -3
- package/dist/{chunk-AW7UW2Z7.js → chunk-VHL26GNQ.js} +2 -2
- package/dist/{chunk-44YG42L5.js → chunk-W464PHF3.js} +7 -7
- package/dist/{chunk-26AQTUU4.js → chunk-WJD3GVAA.js} +1 -1
- package/dist/{chunk-OL2C3ODS.js → chunk-WQCVZEXH.js} +4 -4
- package/dist/{chunk-DS372VSV.js → chunk-WW7Z2W73.js} +2 -2
- package/dist/{chunk-7LKEHM2R.js → chunk-X5BSSPC2.js} +1 -1
- package/dist/{chunk-SX7ESVCQ.js → chunk-XM5KYLIE.js} +2 -2
- package/dist/{chunk-DFK4RMNE.js → chunk-Y5OSQXGZ.js} +5 -5
- package/dist/{chunk-EHSBBBR2.js → chunk-YGGZ23BB.js} +2 -0
- package/dist/{chunk-WQLTKHPP.js → chunk-Z57RQBIA.js} +2 -2
- package/dist/{chunk-UVF4U3ZF.js → chunk-Z7GIHPAZ.js} +1 -1
- package/dist/{chunk-XC3BGWCJ.js → chunk-ZFQSXMX6.js} +1 -1
- package/dist/{chunk-2GMHYOV3.js → chunk-ZGQC6IU7.js} +1 -1
- package/dist/{clean-JZOPMJMV.js → clean-XWDDXLRP.js} +18 -18
- package/dist/cli.js +73 -66
- package/dist/{cloud-VMPF2KMA.js → cloud-SETWVGKH.js} +4 -4
- package/dist/{cloudrun-LA2FKS2F.js → cloudrun-RHPVVXCR.js} +8 -8
- package/dist/{compare-IQCFSC5Z.js → compare-FWMFV7A7.js} +32 -32
- package/dist/{compiler-J7OZQIPD.js → compiler-SKRY6FPA.js} +2 -2
- package/dist/{component-TRGBVFCI.js → component-HGEIXY3U.js} +6 -6
- package/dist/{compositions-FOC2CAZX.js → compositions-2TXJLBWE.js} +13 -13
- package/dist/{curve-ID3Z522S.js → curve-SSFKIA2L.js} +11 -11
- package/dist/{cuts-MWHQSE2Z.js → cuts-BWXHTOOP.js} +12 -12
- package/dist/{delete-47KZ7PLI.js → delete-F5RDWZEJ.js} +9 -9
- package/dist/{deploy-NTNEO4TI.js → deploy-OH4SMYTG.js} +4 -4
- package/dist/{describeProject-WWREIVQV.js → describeProject-B7H4T5PW.js} +6 -6
- package/dist/{destroy-6NWJMQX2.js → destroy-IQLGADZM.js} +3 -3
- package/dist/{diff-GH4KCQGQ.js → diff-6JFFTFKR.js} +23 -23
- package/dist/{dist-XW7FATO6.js → dist-YEYUGCOR.js} +2 -2
- package/dist/{docs-VAF5NM5B.js → docs-IB3KETC6.js} +1 -1
- package/dist/{doctor-4ZH7WFU6.js → doctor-XQCZB5BY.js} +11 -11
- package/dist/{energy-2C65KXBH.js → energy-MEMYSTFT.js} +12 -12
- package/dist/{events-FUFFA55P.js → events-T7OLH6MW.js} +6 -6
- package/dist/{events-Q3EBOW2Y.js → events-U6PXJI34.js} +5 -5
- package/dist/{events-QO5G2VCC.js → events-ZU2ATKWK.js} +14 -14
- package/dist/{extract-Z6TLBM5B.js → extract-25TUTGCA.js} +12 -12
- package/dist/{face-WI6BPPUG.js → face-KMLYOE5H.js} +12 -12
- package/dist/{feedback-M5GZWDXP.js → feedback-FE7GQTBH.js} +14 -14
- package/dist/{ffmpeg-27H6P7ZU.js → ffmpeg-CXYPYIZK.js} +5 -5
- package/dist/{figma-AI6TSWVO.js → figma-QMKU7M7T.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-WUTLVZIR.js → frames-2NPBO6LB.js} +13 -13
- package/dist/{generate-3CJREF5U.js → generate-I6E3V7PU.js} +17 -17
- package/dist/{get-KTDRE33B.js → get-JJWBP5NB.js} +8 -8
- package/dist/{gpuPolicy-Z4MM64HY.js → gpuPolicy-2OMDU74V.js} +5 -5
- package/dist/{grade-compare-IM7Z7HWI.js → grade-compare-QCA3VIKQ.js} +33 -33
- package/dist/{heifImagePrep-CXI2ZMUX.js → heifImagePrep-P53GG4GF.js} +6 -6
- package/dist/{help-5FR6BRLR.js → help-COSONWFD.js} +1 -1
- package/dist/{history-5P5YVP5H.js → history-CWKF5AXI.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-5ZGNJJVA.js → info-SD74Y6V5.js} +11 -11
- package/dist/{init-NWIAEYSX.js → init-XAYQNTVF.js} +29 -29
- package/dist/{inspect-HBLAVW5C.js → inspect-Y5IIQBIW.js} +33 -33
- package/dist/{installer-KVFTBZZ5.js → installer-NQA4KXRP.js} +4 -4
- package/dist/{keyframes-LFCLUY2R.js → keyframes-MNPCJZYU.js} +10 -10
- package/dist/{lambda-RFWTTMLU.js → lambda-PMI6IDVN.js} +19 -19
- package/dist/{layout-WOG2Y5ND.js → layout-6IM6R6LX.js} +33 -33
- package/dist/{lint-7MALXMMF.js → lint-6VUHVHFF.js} +10 -10
- package/dist/{list-XRYAT24W.js → list-XXTAS744.js} +9 -9
- package/dist/{localPage-IN36JVJU.js → localPage-2UHUS6LM.js} +5 -5
- package/dist/{login-32WGVGTM.js → login-KM3LPYQ7.js} +8 -8
- package/dist/{logout-SLI6YTHI.js → logout-LHTQV2BZ.js} +3 -3
- package/dist/{look-ZWVE6JO3.js → look-3CD3ZSXY.js} +12 -12
- package/dist/{manager-SFL6GLYX.js → manager-C6GVT3EI.js} +6 -6
- package/dist/{measure-Q74BJTRQ.js → measure-DWZX4YAK.js} +10 -10
- package/dist/{media-treatment-3R6DYEAZ.js → media-treatment-IIUPGQIX.js} +15 -15
- package/dist/{media-use-ZM2WCRQC.js → media-use-HLHUEFDK.js} +3 -3
- package/dist/{models-NNC53UPU.js → models-IWHY5V6N.js} +13 -13
- package/dist/{motionShot-5BI5JFUP.js → motionShot-4NKHFUS7.js} +18 -18
- package/dist/{normalize-audio-6Z2WN56Q.js → normalize-audio-M2RS5Q23.js} +12 -12
- package/dist/{open-5NCEN6RC.js → open-U7CCHUBO.js} +15 -15
- package/dist/{parakeetRunner-DH3XKR3C.js → parakeetRunner-ZHG3S6GY.js} +10 -10
- package/dist/{pipeline-CGEGQAPH.js → pipeline-66JR7EC7.js} +9 -9
- package/dist/{play-K37BN736.js → play-5COR53D2.js} +23 -23
- package/dist/{policies-U4PFXF5E.js → policies-EERREOZJ.js} +2 -2
- package/dist/{preflight-CG7H3D5B.js → preflight-OKAO5NPW.js} +6 -6
- package/dist/{present-KQ53DOHA.js → present-YKFQC22R.js} +19 -19
- package/dist/{preview-V7CYHL6U.js → preview-3YNKJZME.js} +21 -21
- package/dist/{probe-JVW2MPY3.js → probe-QMPDGKU5.js} +11 -11
- package/dist/{producer-UD32S7PX.js → producer-WBVDP3IV.js} +1 -1
- package/dist/{progress-X3QFO3FE.js → progress-STSH2JRY.js} +2 -2
- package/dist/{projectConfig-WXCB5AZE.js → projectConfig-UI4NZDN7.js} +6 -6
- package/dist/{prompts-VAO7RDKX.js → prompts-ZEVFT7US.js} +2 -2
- package/dist/{publication-KG4UDZRM.js → publication-VPJZQCLA.js} +2 -2
- package/dist/{publish-MEQB543T.js → publish-7RA2MK2M.js} +14 -14
- package/dist/{refresh-2LU4XDL7.js → refresh-AM2ULRRV.js} +3 -3
- package/dist/{remove-background-FSV5KQK3.js → remove-background-ELC7V7KT.js} +12 -12
- package/dist/{render-O4S4SURS.js → render-IYV73CG6.js} +9 -9
- package/dist/{render-SY4AXKXC.js → render-R7E7TTNE.js} +23 -23
- package/dist/{render-SQXZAGPQ.js → render-WH7MPRZD.js} +38 -38
- package/dist/{render-batch-GTZQUB3H.js → render-batch-IN2ZXPS7.js} +9 -9
- package/dist/{resolver-BQZNCVJS.js → resolver-DIXFK5ZR.js} +4 -4
- package/dist/{run-67OPNJGD.js → run-MCVU7AZX.js} +4 -4
- package/dist/{sam-QA7JT7IM.js → sam-EGFXZF56.js} +2 -2
- package/dist/{screenshotCapture-4THETOMD.js → screenshotCapture-RUDON2HB.js} +2 -2
- package/dist/{sherpa-KH3PJAUG.js → sherpa-FP6HX5KK.js} +9 -9
- package/dist/{sites-MTLVMYJ6.js → sites-EAGXQOKI.js} +2 -2
- package/dist/skills/hyperframes-cli/SKILL.md +4 -4
- package/dist/skills/hyperframes-cli/references/cloud.md +3 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/{skills-FTZZJGAB.js → skills-JLNDM2KP.js} +9 -9
- package/dist/{skillsUpdateCheck-LZPD2CZI.js → skillsUpdateCheck-WS5M25TN.js} +5 -5
- package/dist/{snapshot-4BORZ3ED.js → snapshot-VPN6GA7U.js} +37 -37
- package/dist/{src-D7AO7PGH.js → src-AP7B27MZ.js} +8 -4
- package/dist/{src-6ZOFAM3F.js → src-RGQFYVHO.js} +7 -7
- package/dist/{state-6QHNNHDA.js → state-W3AS6O2J.js} +2 -2
- package/dist/{staticProjectServer-Q23A6XU2.js → staticProjectServer-YA6XOSFY.js} +16 -16
- package/dist/{status-VIJRZ4ZK.js → status-Y5ZBFJ53.js} +6 -6
- package/dist/studio/assets/hyperframes-player-Do2ZF6Lp.js +478 -0
- package/dist/studio/assets/{index-mbwAH5iR.js → index-CK4_IJ8G.js} +1 -1
- package/dist/studio/assets/{index-DD9KJoEr.js → index-Dxb7fTWf.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-XVVJZ7YT.js → studio-api-57E36S5N.js} +8 -8
- package/dist/{studioServer-6HG3AMTW.js → studioServer-EVMF3HHL.js} +51 -51
- package/dist/{sync-Q5SRIL7V.js → sync-ASUBSVGQ.js} +12 -12
- package/dist/{telemetry-QHYJJAJU.js → telemetry-T73TKZOL.js} +1 -1
- package/dist/{telemetry-VXPSJ3X3.js → telemetry-YON45KT4.js} +6 -6
- package/dist/{timeline-6477OWFA.js → timeline-OQWDGV7L.js} +22 -22
- package/dist/{tokens-ZUUNEDKT.js → tokens-NMPY673W.js} +5 -5
- package/dist/{transcribe-ITVANIDK.js → transcribe-C6FKVSRR.js} +23 -23
- package/dist/{transcribe-HA4UGLKO.js → transcribe-HSYXT5TZ.js} +8 -8
- package/dist/{tts-KMZPHG3K.js → tts-ZLNNIS6W.js} +4 -4
- package/dist/{updateCheck-SVADAQ43.js → updateCheck-B7PAAPCJ.js} +4 -4
- package/dist/{upgrade-WKW4FDNF.js → upgrade-BOECDD5S.js} +5 -5
- package/dist/{urlDownloader-VWHCESDD.js → urlDownloader-KC2SS457.js} +4 -4
- package/dist/{validate-7VG2RLP2.js → validate-LEEBUIIH.js} +27 -27
- package/dist/{video-LM3FYHGG.js → video-JJAEISDH.js} +7 -7
- package/dist/warmCheck.js +42 -42
- package/package.json +1 -1
- package/dist/chunk-UQECNXFA.js +0 -5013
- package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +0 -478
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
forceRefreshCredentials,
|
|
13
13
|
resolveCloudAuthHeaders,
|
|
14
14
|
resolveCloudBaseUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BEMGUGGJ.js";
|
|
16
16
|
import {
|
|
17
17
|
errorBox
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5LOZWO2M.js";
|
|
19
19
|
import {
|
|
20
20
|
failCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-66W5IWLO.js";
|
|
22
22
|
|
|
23
23
|
// src/cloud/poll.ts
|
|
24
24
|
var DEFAULT_POLL_INTERVAL_MS = 2e3;
|
|
@@ -7,19 +7,19 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-M4NN4AHH.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KDF67KEB.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4A643C3B.js";
|
|
19
19
|
import {
|
|
20
20
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
21
|
STUDIO_PREVIEW_MARK_META
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-35NDLXHZ.js";
|
|
23
23
|
import {
|
|
24
24
|
FfmpegUnavailableError,
|
|
25
25
|
decideMediaProxyEligibility,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveProxies,
|
|
29
29
|
scanProjectMediaCodecMap,
|
|
30
30
|
shouldPrewarmProxy
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GE4ABM5K.js";
|
|
32
32
|
import {
|
|
33
33
|
artifactDirectory,
|
|
34
34
|
finishSnapshotRun
|
|
@@ -46,21 +46,24 @@ import {
|
|
|
46
46
|
seekCompositionTimeline,
|
|
47
47
|
seekInPage,
|
|
48
48
|
waitForPreferredSeekTarget
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RDLJSUI4.js";
|
|
50
|
+
import {
|
|
51
|
+
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
52
|
+
} from "./chunk-YGGZ23BB.js";
|
|
50
53
|
import {
|
|
51
54
|
findStageProxyBox
|
|
52
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-OZMZFJDW.js";
|
|
53
56
|
import {
|
|
54
57
|
resolveAutoProxy
|
|
55
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ZGQC6IU7.js";
|
|
56
59
|
import {
|
|
57
60
|
BrowserCleanupError,
|
|
58
61
|
closeManagedBrowser,
|
|
59
62
|
onStopSignal
|
|
60
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-UBH2R663.js";
|
|
61
64
|
import {
|
|
62
65
|
injectTagsAtHeadStart
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-6UWSEXQ3.js";
|
|
64
67
|
import {
|
|
65
68
|
normalizeErrorMessage
|
|
66
69
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -579,7 +582,7 @@ function proxyFailedDraft(message) {
|
|
|
579
582
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
580
583
|
}
|
|
581
584
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
582
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
585
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-ARTT664T.js");
|
|
583
586
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
584
587
|
}
|
|
585
588
|
function withCapturePreviewMark(html) {
|
|
@@ -641,7 +644,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
641
644
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
642
645
|
}));
|
|
643
646
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
644
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
647
|
+
const { analyzeClipMediaFit } = await import("./src-AP7B27MZ.js");
|
|
645
648
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
646
649
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
647
650
|
}
|
|
@@ -782,7 +785,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
782
785
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
783
786
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
784
787
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
785
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
788
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-ARTT664T.js");
|
|
786
789
|
return withCapturePreviewMark(
|
|
787
790
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
788
791
|
);
|
|
@@ -1306,11 +1309,15 @@ async function overlapGridInPage(grid, seek, anchors) {
|
|
|
1306
1309
|
const audit = Reflect.get(window, "__hyperframesOverlapAudit");
|
|
1307
1310
|
const waitForCompletion = Reflect.get(window, "__hfWaitForSeekCompletion");
|
|
1308
1311
|
const samples = [];
|
|
1312
|
+
const deadline = performance.now() + grid.timeoutMs;
|
|
1309
1313
|
for (const time of grid.times) {
|
|
1310
1314
|
console.debug(`${grid.marker}${time}`);
|
|
1311
1315
|
seek(time, grid.fallback, false, grid.skipDraws);
|
|
1312
1316
|
if (typeof waitForCompletion === "function") {
|
|
1313
|
-
|
|
1317
|
+
const timeoutMs = Math.max(0, deadline - performance.now());
|
|
1318
|
+
await Reflect.apply(waitForCompletion, window, [
|
|
1319
|
+
{ videoFrames: grid.videoFrames, timeoutMs }
|
|
1320
|
+
]);
|
|
1314
1321
|
}
|
|
1315
1322
|
const result = typeof audit === "function" ? Reflect.apply(audit, window, [{ time }]) : [];
|
|
1316
1323
|
const raw = Array.isArray(result) ? result : [];
|
|
@@ -1331,7 +1338,8 @@ async function collectOverlapGrid(page, times) {
|
|
|
1331
1338
|
marker: SAMPLE_TIME_MARKER,
|
|
1332
1339
|
fallback: DENSE_GEOMETRY_SEEK_OPTIONS.fallbackToBridgeAndTimelines,
|
|
1333
1340
|
skipDraws: DENSE_GEOMETRY_SEEK_OPTIONS.skipWebglDraws,
|
|
1334
|
-
videoFrames: DENSE_GEOMETRY_SEEK_OPTIONS.waitForVideoFrames
|
|
1341
|
+
videoFrames: DENSE_GEOMETRY_SEEK_OPTIONS.waitForVideoFrames,
|
|
1342
|
+
timeoutMs: SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
1335
1343
|
};
|
|
1336
1344
|
const samples = await page.evaluate(
|
|
1337
1345
|
`(${overlapGridInPage})(${JSON.stringify(grid)}, ${seekInPage}, ${anchorsInPage})`
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-PXVQOMKL.js";
|
|
10
10
|
import {
|
|
11
11
|
diag
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MCDNAIFF.js";
|
|
13
13
|
import {
|
|
14
14
|
credentialPath
|
|
15
15
|
} from "./chunk-VLA6UJGH.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-BLBMPEBX.js";
|
|
44
44
|
import {
|
|
45
45
|
VERSION
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EEBIHQF2.js";
|
|
47
47
|
|
|
48
48
|
// src/telemetry/transport.ts
|
|
49
49
|
import { spawn } from "child_process";
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5LOZWO2M.js";
|
|
10
10
|
import {
|
|
11
11
|
trackCommandFailure
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PICDT6ZW.js";
|
|
13
13
|
import {
|
|
14
14
|
failCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-66W5IWLO.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/project.ts
|
|
18
18
|
import { existsSync, statSync } from "fs";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OZMZFJDW.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
12
|
} from "./chunk-T5ELONXY.js";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
parseNumbers,
|
|
11
11
|
parseRoi,
|
|
12
12
|
probeVideo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2YZD6CAF.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
17
17
|
import {
|
|
18
18
|
withMeta
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BTDKWWND.js";
|
|
20
20
|
import {
|
|
21
21
|
failCommand
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-66W5IWLO.js";
|
|
23
23
|
import {
|
|
24
24
|
normalizeErrorMessage
|
|
25
25
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
} from "./chunk-ISN5GRYI.js";
|
|
18
18
|
import {
|
|
19
19
|
asNotice
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ADVVQX4I.js";
|
|
21
21
|
import {
|
|
22
22
|
isCI,
|
|
23
23
|
isUnattended
|
|
24
24
|
} from "./chunk-J3RXEDR2.js";
|
|
25
25
|
import {
|
|
26
26
|
VERSION
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EEBIHQF2.js";
|
|
28
28
|
|
|
29
29
|
// src/utils/updateCheck.ts
|
|
30
30
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
sanitizeSuccessfulExitCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-66W5IWLO.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/render-success-state.ts
|
|
12
12
|
var renderSucceeded = false;
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-35NDLXHZ.js";
|
|
10
10
|
import {
|
|
11
11
|
stripSdrPngColourTags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7RTPHNOO.js";
|
|
13
13
|
import {
|
|
14
14
|
injectTagsAtHeadStart
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6UWSEXQ3.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/compositionServer.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.225" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.225" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -15,22 +15,25 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FPWCICAI.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UBH2R663.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
25
25
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
26
26
|
renderProvenanceArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5HGS5MGD.js";
|
|
28
28
|
import {
|
|
29
29
|
runCancellableProcess
|
|
30
30
|
} from "./chunk-X6JUUQCM.js";
|
|
31
31
|
import {
|
|
32
32
|
processIsAlive
|
|
33
33
|
} from "./chunk-KGPLIH7B.js";
|
|
34
|
+
import {
|
|
35
|
+
drainToExit
|
|
36
|
+
} from "./chunk-66W5IWLO.js";
|
|
34
37
|
|
|
35
38
|
// src/background-removal/pipeline.ts
|
|
36
39
|
import { spawn } from "child_process";
|
|
@@ -205,7 +208,20 @@ async function createSession(options = {}) {
|
|
|
205
208
|
graphOptimizationLevel: "all"
|
|
206
209
|
});
|
|
207
210
|
const coreMlTemp = choice.label === "CoreML" ? trackCoreMlTemp() : void 0;
|
|
208
|
-
|
|
211
|
+
if (coreMlTemp) drainToExit();
|
|
212
|
+
let stopped = false;
|
|
213
|
+
let inFlight;
|
|
214
|
+
let released = false;
|
|
215
|
+
const release = async () => {
|
|
216
|
+
if (released || !session) return;
|
|
217
|
+
released = true;
|
|
218
|
+
await session.release();
|
|
219
|
+
};
|
|
220
|
+
const unregister = coreMlTemp && registerBrowserSessionCleanup(async () => {
|
|
221
|
+
stopped = true;
|
|
222
|
+
await inFlight;
|
|
223
|
+
await release();
|
|
224
|
+
});
|
|
209
225
|
let session;
|
|
210
226
|
let providerUsed = choice.label;
|
|
211
227
|
try {
|
|
@@ -248,38 +264,44 @@ async function createSession(options = {}) {
|
|
|
248
264
|
return await session.run({ [inputName]: tensor });
|
|
249
265
|
}
|
|
250
266
|
};
|
|
267
|
+
const convert = async (rgb, width, height, withBackground) => {
|
|
268
|
+
const tensor = await preprocess(sharp, ort, rgb, width, height, inputData);
|
|
269
|
+
const outputs = await run(tensor);
|
|
270
|
+
const output = outputs[outputName];
|
|
271
|
+
if (!output) throw new Error(`Model did not return output '${outputName}'`);
|
|
272
|
+
const expectedBytes = width * height * 4;
|
|
273
|
+
if (!rgbaBuf || rgbaBuf.length !== expectedBytes) {
|
|
274
|
+
rgbaBuf = Buffer.allocUnsafe(expectedBytes);
|
|
275
|
+
}
|
|
276
|
+
if (withBackground) {
|
|
277
|
+
if (!rgbaBgBuf || rgbaBgBuf.length !== expectedBytes) {
|
|
278
|
+
rgbaBgBuf = Buffer.allocUnsafe(expectedBytes);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return await postprocess(
|
|
282
|
+
sharp,
|
|
283
|
+
output,
|
|
284
|
+
rgb,
|
|
285
|
+
width,
|
|
286
|
+
height,
|
|
287
|
+
maskBuf,
|
|
288
|
+
rgbaBuf,
|
|
289
|
+
withBackground ? rgbaBgBuf : null
|
|
290
|
+
);
|
|
291
|
+
};
|
|
251
292
|
return {
|
|
252
293
|
get provider() {
|
|
253
294
|
return providerUsed;
|
|
254
295
|
},
|
|
255
296
|
async process(rgb, width, height, withBackground = false) {
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const expectedBytes = width * height * 4;
|
|
261
|
-
if (!rgbaBuf || rgbaBuf.length !== expectedBytes) {
|
|
262
|
-
rgbaBuf = Buffer.allocUnsafe(expectedBytes);
|
|
263
|
-
}
|
|
264
|
-
if (withBackground) {
|
|
265
|
-
if (!rgbaBgBuf || rgbaBgBuf.length !== expectedBytes) {
|
|
266
|
-
rgbaBgBuf = Buffer.allocUnsafe(expectedBytes);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return await postprocess(
|
|
270
|
-
sharp,
|
|
271
|
-
output,
|
|
272
|
-
rgb,
|
|
273
|
-
width,
|
|
274
|
-
height,
|
|
275
|
-
maskBuf,
|
|
276
|
-
rgbaBuf,
|
|
277
|
-
withBackground ? rgbaBgBuf : null
|
|
278
|
-
);
|
|
297
|
+
if (stopped) throw new Error("Background removal was stopped.");
|
|
298
|
+
const frame = convert(rgb, width, height, withBackground);
|
|
299
|
+
inFlight = frame.catch(() => void 0);
|
|
300
|
+
return await frame;
|
|
279
301
|
},
|
|
280
302
|
async close() {
|
|
281
303
|
unregister?.();
|
|
282
|
-
await
|
|
304
|
+
await release();
|
|
283
305
|
coreMlTemp?.forget();
|
|
284
306
|
}
|
|
285
307
|
};
|
|
@@ -413,7 +435,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
413
435
|
}
|
|
414
436
|
async function probeMedia(inputPath) {
|
|
415
437
|
const isImage = inferInputKind(inputPath) === "image";
|
|
416
|
-
const engine = await import("./src-
|
|
438
|
+
const engine = await import("./src-AP7B27MZ.js");
|
|
417
439
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
418
440
|
if (isImage) {
|
|
419
441
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5LOZWO2M.js";
|
|
10
10
|
import {
|
|
11
11
|
failUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-66W5IWLO.js";
|
|
13
13
|
|
|
14
14
|
// src/cloud/parsing.ts
|
|
15
15
|
var INTEGER_RE = /^-?\d+$/;
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7RTPHNOO.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
23
|
} from "./chunk-HT3D5AKG.js";
|
|
@@ -137,7 +137,7 @@ function replacementTimelineAssetId(document, element, newSrc) {
|
|
|
137
137
|
return buildTimelineAssetId(decodedUrlPath(newSrc), ids);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
// ../studio-server/dist/chunk-
|
|
140
|
+
// ../studio-server/dist/chunk-LRTNNDXS.js
|
|
141
141
|
var import_postcss_selector_parser = __toESM(require_dist(), 1);
|
|
142
142
|
import postcss from "postcss";
|
|
143
143
|
function parseStyleDecls(style) {
|
|
@@ -199,7 +199,40 @@ function parseSourceDocument(raw) {
|
|
|
199
199
|
);
|
|
200
200
|
return { document, wrappedFragment: !hasDocumentShell };
|
|
201
201
|
}
|
|
202
|
+
function dropCssRulesForId(document, id) {
|
|
203
|
+
const idToken = `#${id}`;
|
|
204
|
+
const namesId = (selector) => {
|
|
205
|
+
let found = false;
|
|
206
|
+
(0, import_postcss_selector_parser.default)((selectors) => {
|
|
207
|
+
selectors.walkIds((node) => {
|
|
208
|
+
let up = node.parent;
|
|
209
|
+
while (up && !(up.type === "pseudo" && up.value === ":not")) up = up.parent;
|
|
210
|
+
if (node.value === id && !up) found = true;
|
|
211
|
+
});
|
|
212
|
+
}).processSync(selector);
|
|
213
|
+
return found;
|
|
214
|
+
};
|
|
215
|
+
for (const styleEl of document.querySelectorAll("style")) {
|
|
216
|
+
const css = styleEl.textContent ?? "";
|
|
217
|
+
if (!css.includes(idToken)) continue;
|
|
218
|
+
let root;
|
|
219
|
+
try {
|
|
220
|
+
root = postcss.parse(css);
|
|
221
|
+
} catch {
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
let dropped = false;
|
|
225
|
+
root.walkRules((rule) => {
|
|
226
|
+
if (rule.selectors.length > 0 && rule.selectors.every(namesId)) {
|
|
227
|
+
rule.remove();
|
|
228
|
+
dropped = true;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
if (dropped) styleEl.textContent = root.toString();
|
|
232
|
+
}
|
|
233
|
+
}
|
|
202
234
|
function duplicateCssRulesForId(document, originalId, newId) {
|
|
235
|
+
dropCssRulesForId(document, newId);
|
|
203
236
|
const idToken = `#${originalId}`;
|
|
204
237
|
const transform = (0, import_postcss_selector_parser.default)((selectors) => {
|
|
205
238
|
selectors.walkIds((node) => {
|
|
@@ -282,7 +315,9 @@ function removeElementsFromHtml(source, targets) {
|
|
|
282
315
|
for (const target of targets) {
|
|
283
316
|
const element = findTargetElement(document, target);
|
|
284
317
|
if (!element) continue;
|
|
318
|
+
const id = element.getAttribute("id");
|
|
285
319
|
removeElementWithGsapCascade(document, element);
|
|
320
|
+
if (id && !document.getElementById(id)) dropCssRulesForId(document, id);
|
|
286
321
|
removed = true;
|
|
287
322
|
}
|
|
288
323
|
if (!removed) return source;
|