hyperframes 0.9.31 → 0.9.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/dist/{add-53MR45WI.js → add-HYI4YJC5.js} +16 -16
  2. package/dist/{agentPromptGenerator-NXF7237H.js → agentPromptGenerator-JAQNBEUZ.js} +35 -18
  3. package/dist/{animatedGifPrep-XF6VJW22.js → animatedGifPrep-DVYRCZVR.js} +10 -10
  4. package/dist/api.js +40 -36
  5. package/dist/{appHistory-DLDRURHW.js → appHistory-WZIHFCPK.js} +3 -3
  6. package/dist/{asset-Y3YAVXJ3.js → asset-7FG3M3FQ.js} +2 -2
  7. package/dist/{assetCataloger-DRLH2VFH.js → assetCataloger-QDQZYHUC.js} +12 -12
  8. package/dist/{audio-TRDZQ2NW.js → audio-R6ZG62DU.js} +20 -19
  9. package/dist/{auth-MN66MWGN.js → auth-IPDYZXOG.js} +2 -2
  10. package/dist/{autoUpdate-KAIIQJBV.js → autoUpdate-GAEDDZRN.js} +2 -2
  11. package/dist/{avatars-F2COSI7P.js → avatars-A45VFUZ4.js} +14 -14
  12. package/dist/{backgroundChecks-36UG4V5N.js → backgroundChecks-US74BS6V.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +4 -4
  14. package/dist/{batchRender-CI6OFGS5.js → batchRender-VBSYVQA7.js} +5 -5
  15. package/dist/{beats-GBCNB763.js → beats-UPJ3KANG.js} +12 -12
  16. package/dist/{benchmark-AHHMJBDN.js → benchmark-2RWYJGL2.js} +10 -10
  17. package/dist/{billing-HME22C5A.js → billing-MD66MJTA.js} +15 -15
  18. package/dist/{browser-VZTIOZI3.js → browser-JXCS62NX.js} +7 -7
  19. package/dist/{bundleWithLocalizedFonts-XLFSHMET.js → bundleWithLocalizedFonts-RAD7BNJF.js} +1 -1
  20. package/dist/{capture-ZILHWIOF.js → capture-DJ4WRP62.js} +52 -29
  21. package/dist/{capture-NU2ZIXJB.js → capture-M6DT5WZT.js} +4 -4
  22. package/dist/{captureCompositionFrame-ZWVKRKLL.js → captureCompositionFrame-IRXG7ZFU.js} +17 -17
  23. package/dist/{captureFile-O7JMINHC.js → captureFile-Y2ZMB7HK.js} +3 -3
  24. package/dist/{catalog-NVEGPXGE.js → catalog-GW45OWKU.js} +16 -16
  25. package/dist/{catch-up-W7ST5JSZ.js → catch-up-YKJQ4IYC.js} +10 -10
  26. package/dist/{check-BZ652RYH.js → check-7QTKMPGA.js} +49 -49
  27. package/dist/{checkAudio-5NVSRMGL.js → checkAudio-7WHUYGUZ.js} +14 -14
  28. package/dist/{checkBrowser-YN454IBU.js → checkBrowser-USAOWTAF.js} +42 -42
  29. package/dist/chunk-262ADJJN.js +193 -0
  30. package/dist/{chunk-SCWMPY3F.js → chunk-2NMBD5AH.js} +1 -1
  31. package/dist/{chunk-RHUYVGFO.js → chunk-2T7EDEKE.js} +7 -7
  32. package/dist/{chunk-OJSOH2LS.js → chunk-2W4VQ3YZ.js} +2 -2
  33. package/dist/{chunk-RJA64ACI.js → chunk-2Z42EUHG.js} +2 -2
  34. package/dist/{chunk-HM3PIREE.js → chunk-3367VNGK.js} +2 -2
  35. package/dist/{chunk-RLYYA6IR.js → chunk-34S7GYVK.js} +1 -1
  36. package/dist/{chunk-TEOIEMTR.js → chunk-3HT3UGF2.js} +1 -1
  37. package/dist/{chunk-AQJA7TAQ.js → chunk-3PHCFSPD.js} +2 -2
  38. package/dist/{chunk-BJSUKOWW.js → chunk-3R2X2VKB.js} +2 -2
  39. package/dist/{chunk-OOEZ3FT3.js → chunk-4CSZZXL6.js} +3 -3
  40. package/dist/{chunk-JLUOG6S2.js → chunk-4FTJE22M.js} +2 -2
  41. package/dist/{chunk-O7ZX5DHD.js → chunk-5FFYMVRD.js} +2 -2
  42. package/dist/{chunk-6WHOI52Z.js → chunk-5GXMZIQZ.js} +8 -8
  43. package/dist/{chunk-Q7EIUAYK.js → chunk-5VN7ZXJR.js} +3 -3
  44. package/dist/{chunk-VEIGTKYZ.js → chunk-64F653HO.js} +36 -9
  45. package/dist/{chunk-X3HQA3YE.js → chunk-6BI6URO2.js} +8 -7
  46. package/dist/{chunk-Q77TZ76B.js → chunk-6MTSP2XE.js} +8 -8
  47. package/dist/{chunk-7XZS4PNM.js → chunk-6NNLDCX4.js} +1 -1
  48. package/dist/{chunk-3OA75WJW.js → chunk-6RFCS4IU.js} +9 -4
  49. package/dist/{chunk-IIMW46LC.js → chunk-6SNGKC6B.js} +1 -1
  50. package/dist/{chunk-SWOAB4GM.js → chunk-77UB5EHM.js} +1 -1
  51. package/dist/{chunk-URXVZMSI.js → chunk-ADP2GIBS.js} +2 -2
  52. package/dist/{chunk-CWN75OWQ.js → chunk-AOQRVS63.js} +13 -3
  53. package/dist/{chunk-RVI665CP.js → chunk-AWT5FHTN.js} +1 -1
  54. package/dist/{chunk-G5DZZEQF.js → chunk-AZ2QJETV.js} +1 -1
  55. package/dist/{chunk-YJVJCNK4.js → chunk-BA3EQ2KL.js} +3 -3
  56. package/dist/{chunk-J3OVTOVC.js → chunk-CHJGVW5W.js} +15 -2
  57. package/dist/{chunk-TCQKCUDA.js → chunk-CKJDY6EK.js} +1 -1
  58. package/dist/{chunk-GFDXA5QO.js → chunk-CMYUPVMI.js} +2 -2
  59. package/dist/{chunk-DFSAC4F4.js → chunk-D6BV6TTI.js} +1 -1
  60. package/dist/{chunk-OZNJ2QD5.js → chunk-D7NNNL2K.js} +13 -13
  61. package/dist/{chunk-MMAPQWUP.js → chunk-E5S4QMX7.js} +2 -2
  62. package/dist/{chunk-G5S72X6Q.js → chunk-EBG5RCPM.js} +4 -4
  63. package/dist/{chunk-R5U5PFDJ.js → chunk-EJPWGGPK.js} +68 -26
  64. package/dist/{chunk-FKW5FP4C.js → chunk-EXW2LV4K.js} +114 -74
  65. package/dist/{chunk-F2GWIWHN.js → chunk-G2XAFJ2B.js} +2 -2
  66. package/dist/{chunk-P7LZ2WSQ.js → chunk-G6JLFSII.js} +2 -2
  67. package/dist/{chunk-LHBQW4GJ.js → chunk-G7NKYELQ.js} +23 -15
  68. package/dist/{chunk-FRBQ3FIM.js → chunk-GBIASKIH.js} +1 -1
  69. package/dist/{chunk-W4OMDRZF.js → chunk-GCJRV7LU.js} +28 -8
  70. package/dist/{chunk-AWL5M7BX.js → chunk-GJUL3PRV.js} +4 -4
  71. package/dist/{chunk-BIQJKM2O.js → chunk-GOMTMQRT.js} +1 -1
  72. package/dist/{chunk-5AMGFTMU.js → chunk-GTHRXU37.js} +15 -15
  73. package/dist/{chunk-GRHBVTBK.js → chunk-GWSCUFGL.js} +2 -2
  74. package/dist/{chunk-SQ63BIR2.js → chunk-H4C3P2KV.js} +3 -3
  75. package/dist/{chunk-FK3KV32T.js → chunk-H7AJLEBR.js} +26 -23
  76. package/dist/{chunk-L6ZLOJBI.js → chunk-HDCVU64B.js} +1 -1
  77. package/dist/{chunk-Y6RU3H6C.js → chunk-HWMNSWEA.js} +6 -6
  78. package/dist/{chunk-WSPGX2SM.js → chunk-HXQDDCGY.js} +1 -1
  79. package/dist/{chunk-OFQWTKPW.js → chunk-HZTRKUKE.js} +8 -2
  80. package/dist/{chunk-CUORARXJ.js → chunk-I3QXWJ7V.js} +7 -7
  81. package/dist/{chunk-IEXRKKHC.js → chunk-IEEIPTDW.js} +1 -1
  82. package/dist/{chunk-MX3UCKZR.js → chunk-JHX76QFC.js} +1 -1
  83. package/dist/{chunk-C4U6FRZH.js → chunk-JMV63CNH.js} +14 -11
  84. package/dist/{chunk-4HSE3FWO.js → chunk-K72X2YXR.js} +3 -3
  85. package/dist/{chunk-OB6DVKHE.js → chunk-KAG5KXNO.js} +2 -2
  86. package/dist/{chunk-J5LQW6VB.js → chunk-KFXHBP2E.js} +2 -2
  87. package/dist/{chunk-MQOO5Z4U.js → chunk-KG3TONXU.js} +6 -6
  88. package/dist/{chunk-HYRPH6LL.js → chunk-KRWPTZBY.js} +2 -5
  89. package/dist/{chunk-KKUBMYCY.js → chunk-KXOKZJBZ.js} +10 -10
  90. package/dist/{chunk-XDIHAX2C.js → chunk-L72MPEM2.js} +1 -1
  91. package/dist/{chunk-RBECDLMQ.js → chunk-LBQQNNRC.js} +1 -1
  92. package/dist/{chunk-CP4FVXKZ.js → chunk-LHFBKUVY.js} +2 -2
  93. package/dist/{chunk-RLQOYHXT.js → chunk-LJMTEZOP.js} +10 -10
  94. package/dist/{chunk-3SZ43GZG.js → chunk-LXIEKLAC.js} +5 -5
  95. package/dist/{chunk-KAICKZZK.js → chunk-M6FNCANA.js} +1 -1
  96. package/dist/{chunk-ZOOY4LEZ.js → chunk-M6LAGO6O.js} +2 -2
  97. package/dist/{chunk-5Q3TTLGB.js → chunk-MYFAVVA6.js} +22 -22
  98. package/dist/{chunk-XEPGN46Q.js → chunk-N6Y645MX.js} +1 -1
  99. package/dist/{chunk-IOPIOX5K.js → chunk-N7C7U3ZR.js} +7 -4
  100. package/dist/{chunk-B7H5RCKP.js → chunk-NNOAOQLT.js} +2 -2
  101. package/dist/{chunk-56MGA4FM.js → chunk-NXSKZE3C.js} +2 -2
  102. package/dist/{chunk-RCWPVC4M.js → chunk-P5E3RHW3.js} +2 -2
  103. package/dist/{chunk-SEVZKBMA.js → chunk-P7TCIUP2.js} +4 -4
  104. package/dist/{chunk-5BIMSULZ.js → chunk-PVSRPNIV.js} +1 -1
  105. package/dist/{chunk-5SDUQLZ3.js → chunk-PXDRW3QN.js} +1 -1
  106. package/dist/{chunk-GSXHYLW4.js → chunk-PXY3JZP2.js} +2 -2
  107. package/dist/{chunk-T54RTTFW.js → chunk-RCRUWNQ4.js} +3 -3
  108. package/dist/{chunk-GGDJLN5I.js → chunk-REJ4NIBY.js} +1 -1
  109. package/dist/{chunk-BCMR6DE4.js → chunk-SFPIVVUE.js} +2 -2
  110. package/dist/{chunk-T7PFJH2B.js → chunk-SIRYW7SY.js} +2 -2
  111. package/dist/{chunk-SHOE3UR6.js → chunk-SVI2CJ6R.js} +1 -1
  112. package/dist/{chunk-ZSELEQI2.js → chunk-SXOIG6VG.js} +186 -52
  113. package/dist/chunk-TFBPCJPG.js +26 -0
  114. package/dist/{chunk-JULHFF3J.js → chunk-TLUDJLBN.js} +1 -1
  115. package/dist/{chunk-5YYGPTBP.js → chunk-TTSLKH63.js} +3 -3
  116. package/dist/{chunk-XB77LMOP.js → chunk-TVQNABOI.js} +1 -1
  117. package/dist/{chunk-K7JA32EI.js → chunk-TZH6HNZH.js} +2 -2
  118. package/dist/{chunk-3F2DTPBD.js → chunk-UC4X6I35.js} +6 -0
  119. package/dist/{chunk-PGGMJW7B.js → chunk-UWMOMAYI.js} +35 -7
  120. package/dist/{chunk-DJVSNDF3.js → chunk-VB3JZKMN.js} +104 -14
  121. package/dist/{chunk-JHOPRAJN.js → chunk-VK3MQSA2.js} +11 -5
  122. package/dist/{chunk-5HVQV4H4.js → chunk-W3HNLDK6.js} +2 -2
  123. package/dist/{chunk-44VR2CWT.js → chunk-WLNQAJQC.js} +2 -2
  124. package/dist/{chunk-O4Z4D4KA.js → chunk-WTO4DHBH.js} +1 -1
  125. package/dist/{chunk-ALVXFXUG.js → chunk-WXOOAAT4.js} +27 -4
  126. package/dist/{chunk-6VNDEMSP.js → chunk-X6DWLN55.js} +3 -3
  127. package/dist/{chunk-IHWNDG5C.js → chunk-XB7HE2R5.js} +3 -3
  128. package/dist/{chunk-VPPJIWVG.js → chunk-XDRSEU2I.js} +14 -14
  129. package/dist/{chunk-CWOUPW5E.js → chunk-XH6LGDIB.js} +4 -4
  130. package/dist/{chunk-3DIYMOES.js → chunk-XPT4GC6X.js} +6 -6
  131. package/dist/{chunk-ZQYRP22G.js → chunk-Y3YHDU7T.js} +1 -1
  132. package/dist/{chunk-SWC3QIEH.js → chunk-YAS347ZS.js} +1 -1
  133. package/dist/{chunk-ELWX6CAA.js → chunk-YAZQBB2S.js} +1 -1
  134. package/dist/{chunk-5LLDGJGZ.js → chunk-YCTWMO3G.js} +1 -1
  135. package/dist/{chunk-OBRKDUCE.js → chunk-YIE5FU73.js} +3 -3
  136. package/dist/{chunk-KAHWO4XC.js → chunk-YMIEJZB6.js} +3 -3
  137. package/dist/{chunk-22PWPQVX.js → chunk-Z6X64P6C.js} +3 -3
  138. package/dist/{chunk-54FVSPRH.js → chunk-ZIYXPDKY.js} +2 -2
  139. package/dist/{clean-WYXHI2DO.js → clean-MJBET4EN.js} +26 -26
  140. package/dist/cli.js +64 -64
  141. package/dist/{cloud-X52P5AIE.js → cloud-WEDQYHZE.js} +4 -4
  142. package/dist/{cloud-TDXVUIUM.js → cloud-Z4Q76MLS.js} +3 -3
  143. package/dist/{cloudrun-36IR6ZKU.js → cloudrun-2KGSRAKA.js} +7 -7
  144. package/dist/{compare-R2KXOV2I.js → compare-MJKWQOD7.js} +41 -41
  145. package/dist/{compiler-FRWUFIQC.js → compiler-ETXRTUQC.js} +6 -6
  146. package/dist/{component-TIBQY7KQ.js → component-PZGKEJ6L.js} +3 -3
  147. package/dist/{compositions-NQPORXIX.js → compositions-N3FEEWH7.js} +14 -14
  148. package/dist/{contactSheet-PZXG3REG.js → contactSheet-HZMP42FZ.js} +4 -4
  149. package/dist/{curve-DTLRPBSB.js → curve-MWABBM7Q.js} +14 -14
  150. package/dist/{cuts-73HKU767.js → cuts-BQFSSNY7.js} +15 -15
  151. package/dist/{delete-HIHA436T.js → delete-HPHGJABK.js} +5 -5
  152. package/dist/deploy-JY2QOB5F.js +213 -0
  153. package/dist/{describeProject-4A5UXQ25.js → describeProject-S6AGYZWL.js} +11 -11
  154. package/dist/{destroy-4DOMPOYB.js → destroy-AZK7J4IR.js} +19 -15
  155. package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-2ZPRAI3C.js} +4 -4
  156. package/dist/{diff-JPADFUMV.js → diff-XDNFCAU4.js} +36 -36
  157. package/dist/{dist-EFXKPJJT.js → dist-6EE3Y4M7.js} +3 -3
  158. package/dist/{dist-KWXQYTRT.js → dist-EYEYDD4F.js} +18 -18
  159. package/dist/{dist-FKEKIXVL.js → dist-TYGDYK56.js} +4 -4
  160. package/dist/docs/rendering.md +2 -0
  161. package/dist/{doctor-3OO3CONL.js → doctor-6IRSMKZD.js} +16 -16
  162. package/dist/{energy-XFPN5YIL.js → energy-VCJ2FJEF.js} +15 -15
  163. package/dist/{events-QWPZT3EQ.js → events-DNTIMCUM.js} +17 -17
  164. package/dist/{events-G2MME5LQ.js → events-M6A7BT3V.js} +7 -7
  165. package/dist/{events-6ONCYFB5.js → events-QQYBD7JM.js} +2 -2
  166. package/dist/{extract-3EV72SMY.js → extract-X3IVXYHX.js} +15 -15
  167. package/dist/{face-JZS6P3AT.js → face-MZHXKBDB.js} +16 -16
  168. package/dist/{feedback-JVWBHRQG.js → feedback-TAMGYFUO.js} +15 -11
  169. package/dist/{ffmpeg-XDAITYSU.js → ffmpeg-XWPYYYB6.js} +10 -10
  170. package/dist/{figma-KPHTDMCQ.js → figma-WMD7AR2S.js} +3 -3
  171. package/dist/fontLocalizeCli.js +17 -17
  172. package/dist/{frames-KRVRJTKC.js → frames-OU2UOLBU.js} +17 -17
  173. package/dist/{generate-X2MYGFZX.js → generate-6F6QEFXW.js} +26 -26
  174. package/dist/{get-QM24BI7N.js → get-VVDO7DXG.js} +5 -5
  175. package/dist/{gpuPolicy-EFJJLHVV.js → gpuPolicy-CVNSHXHJ.js} +10 -10
  176. package/dist/{grade-compare-W5N5LH4X.js → grade-compare-O6LY2U73.js} +40 -40
  177. package/dist/{gsapParser-3H7ON3DO.js → gsapParser-L7TM3RGH.js} +49 -26
  178. package/dist/hangReport.js +1 -1
  179. package/dist/{heifImagePrep-X5QRRVTV.js → heifImagePrep-J6TILZTM.js} +11 -11
  180. package/dist/{help-LWS4YWMO.js → help-XLSTTDHR.js} +1 -1
  181. package/dist/{history-SG34LBJY.js → history-DBCCWBDG.js} +13 -13
  182. package/dist/hyperframes-player.global.js +1 -1
  183. package/dist/{info-2FC43IYB.js → info-E46BWAQ7.js} +16 -16
  184. package/dist/{init-GKY5OKDV.js → init-23TG5W7S.js} +33 -33
  185. package/dist/{ink-7UK6YCUY.js → ink-6UFSNJRW.js} +15 -15
  186. package/dist/{inspect-ZB2NTNQA.js → inspect-RKI6XACH.js} +40 -40
  187. package/dist/{installer-GALVXWPC.js → installer-JWPK75BR.js} +8 -8
  188. package/dist/{keyframes-LSP4FLHT.js → keyframes-J65V5A2G.js} +10 -10
  189. package/dist/{lambda-3F32DRYF.js → lambda-RZSXXBJU.js} +19 -19
  190. package/dist/{layout-XPGS3QTX.js → layout-RJQUOYWB.js} +40 -40
  191. package/dist/{lint-Q5SO57RK.js → lint-4TUHKKA2.js} +12 -12
  192. package/dist/{lintProject-5CBL7VFV.js → lintProject-R6RTBSCZ.js} +3 -3
  193. package/dist/{list-FL5RYSFT.js → list-HOD2N4VS.js} +5 -5
  194. package/dist/{localPage-IOHQETQT.js → localPage-TC4NC3VL.js} +11 -11
  195. package/dist/{login-D4TCWDDW.js → login-NTOS3HKD.js} +4 -4
  196. package/dist/{look-G2BT4E4A.js → look-GC63E2I7.js} +15 -15
  197. package/dist/{manager-F6WI43DQ.js → manager-FICBET24.js} +11 -11
  198. package/dist/{measure-VXQQHYMZ.js → measure-WTQCSQ55.js} +11 -11
  199. package/dist/{media-treatment-ZXA3JZSL.js → media-treatment-KTZ6X2P2.js} +16 -16
  200. package/dist/{media-use-63LZFAID.js → media-use-K75FDXJ3.js} +10 -5
  201. package/dist/{models-MWUVU4CY.js → models-JKOA542M.js} +14 -14
  202. package/dist/{motionShot-U4YDT7UV.js → motionShot-A3TYKTQU.js} +20 -20
  203. package/dist/{normalize-audio-T5QJWU4P.js → normalize-audio-7JUM42YB.js} +12 -12
  204. package/dist/{open-DRLXHOW2.js → open-F6GI4TRA.js} +18 -18
  205. package/dist/{parakeetRunner-5OHEB3XZ.js → parakeetRunner-6XIAKJLS.js} +17 -17
  206. package/dist/{pipeline-MAIRRYD6.js → pipeline-7P7LGGQG.js} +13 -13
  207. package/dist/{play-33A3EXX3.js → play-DYOZLKWX.js} +36 -30
  208. package/dist/{preflight-HSWMKB2Q.js → preflight-VM4HSRBY.js} +11 -11
  209. package/dist/{present-HJIFEIDH.js → present-IINIEZJC.js} +30 -24
  210. package/dist/{preview-J6Z6RKMN.js → preview-NJO2UXWJ.js} +25 -25
  211. package/dist/{probe-RA4VOGYY.js → probe-LQQHFX5Q.js} +15 -15
  212. package/dist/{producer-KWP2B4A5.js → producer-LH2SZHJ2.js} +1 -1
  213. package/dist/{progress-TGYZ2TKQ.js → progress-IY6U35WH.js} +1 -1
  214. package/dist/{projectConfig-3YIGHLNE.js → projectConfig-BLACFLUW.js} +11 -11
  215. package/dist/{publication-QRUY2WJK.js → publication-NFF2BXIE.js} +6 -6
  216. package/dist/{publish-GV3I3GUL.js → publish-JST5Y4UR.js} +19 -17
  217. package/dist/{remove-background-UUITKXEQ.js → remove-background-WUBESLWN.js} +14 -14
  218. package/dist/{render-EC67XXR2.js → render-4KWUUC5H.js} +75 -45
  219. package/dist/{render-NHVDJRFD.js → render-DA4V7CEE.js} +8 -8
  220. package/dist/{render-ZITQXHJP.js → render-R4VNR4E2.js} +34 -30
  221. package/dist/{render-batch-RII4F3PD.js → render-batch-JMPG4RLT.js} +8 -8
  222. package/dist/renderSetupWorker.js +4 -4
  223. package/dist/{resolver-R3FXDZKS.js → resolver-PNIFIDIE.js} +8 -8
  224. package/dist/{reverse-2GJ5Y3WM.js → reverse-4NI7D2C3.js} +1 -1
  225. package/dist/{run-24USN7TA.js → run-FWBIBLYE.js} +4 -3
  226. package/dist/{screenshotCapture-TEQVEBWB.js → screenshotCapture-KOLNFU7W.js} +13 -13
  227. package/dist/{sherpa-YIJR47GX.js → sherpa-W3BMN67E.js} +16 -16
  228. package/dist/sherpaWorker.js +1 -1
  229. package/dist/{sites-LILUBMRM.js → sites-QK3F4AUS.js} +1 -1
  230. package/dist/skills/hyperframes-cli/references/preview-render.md +1 -0
  231. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +15 -4
  232. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +42 -6
  233. package/dist/skills/media-use/audio/scripts/lib/python.mjs +17 -2
  234. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +50 -4
  235. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +11 -1
  236. package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -1
  237. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +31 -0
  238. package/dist/{skills-DM3XC7RQ.js → skills-KQQVUFGO.js} +10 -10
  239. package/dist/{skillsUpdateCheck-ZHVFEOEN.js → skillsUpdateCheck-VY5PS46S.js} +3 -3
  240. package/dist/{snapshot-72RQQXHW.js → snapshot-VIEJQAUB.js} +82 -57
  241. package/dist/{src-C43KUEBY.js → src-HHPRCLEW.js} +11 -9
  242. package/dist/{src-SPFGPZZQ.js → src-MQU5F7GJ.js} +15 -15
  243. package/dist/{start-FSYSYLI7.js → start-ZBNNVFMU.js} +24 -24
  244. package/dist/{state-W3AS6O2J.js → state-7OIPR4BG.js} +1 -1
  245. package/dist/{staticProjectServer-RHBRRGPK.js → staticProjectServer-VPGZWJF4.js} +27 -27
  246. package/dist/{status-TE74GP4Q.js → status-RBZJYT7T.js} +17 -17
  247. package/dist/studio/assets/{codec-DXM4vA6G.js → codec-Bz1jsLs8.js} +1 -1
  248. package/dist/studio/assets/{hyperframes-player-D_016Ubp.js → hyperframes-player-cdH5Sz_t.js} +1 -1
  249. package/dist/studio/assets/{index-Ob53qo6K.js → index-D1l7izdf.js} +176 -176
  250. package/dist/studio/assets/{index-Bw4stQMm.js → index-DFRbcd5J.js} +1 -1
  251. package/dist/studio/assets/{pausedVideoDecoder-vbdgaMqL.js → pausedVideoDecoder-CgV8YB6S.js} +1 -1
  252. package/dist/studio/index.html +1 -1
  253. package/dist/{studio-api-JAOHMYPG.js → studio-api-EPZGLIWW.js} +18 -18
  254. package/dist/{studioServer-RHCPM4CN.js → studioServer-YFQQ2ESJ.js} +68 -62
  255. package/dist/{sync-UZJ7DOUA.js → sync-FRT55PVW.js} +15 -15
  256. package/dist/{synthesize-MDW4ZWTN.js → synthesize-FR5KPBRP.js} +4 -4
  257. package/dist/{telemetry-TFOEA2PM.js → telemetry-HAPPFR7P.js} +7 -7
  258. package/dist/{templates-2AHM5TZ3.js → templates-2IHYIWMA.js} +15 -15
  259. package/dist/{timeline-ZGV323MP.js → timeline-AY2F7BJF.js} +25 -25
  260. package/dist/{tokens-ERUFEWUA.js → tokens-B3G257V3.js} +2 -2
  261. package/dist/{transcribe-M5UZ2XFG.js → transcribe-EGQD32PT.js} +14 -14
  262. package/dist/{transcribe-6HLYS7NV.js → transcribe-RJCILGPA.js} +30 -30
  263. package/dist/{tts-IXX2HHHJ.js → tts-ZE776B4I.js} +1 -1
  264. package/dist/{update-JDVI2XTM.js → update-XTFIGQKW.js} +12 -11
  265. package/dist/{updateCheck-GDTYPXKO.js → updateCheck-M6YC52A4.js} +2 -2
  266. package/dist/{upgrade-SJKYBA4X.js → upgrade-AKLIZKAO.js} +5 -3
  267. package/dist/{urlDownloader-2QCNXXUG.js → urlDownloader-57A7Q7FC.js} +9 -9
  268. package/dist/{validate-IUTHTA2N.js → validate-YWSXJL54.js} +32 -32
  269. package/dist/{video-4BJ7WHI2.js → video-I5DDNK3Y.js} +12 -12
  270. package/dist/{voices-UDSFBPZX.js → voices-IBMJU73H.js} +24 -24
  271. package/dist/warmCheck.js +50 -50
  272. package/dist/warmCheckClient.js +1 -1
  273. package/package.json +1 -1
  274. package/dist/chunk-2X4PQEYM.js +0 -34
  275. package/dist/deploy-EB3FS2BT.js +0 -361
@@ -223,7 +223,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
223
223
  return aNum - bNum;
224
224
  });
225
225
  const lines = sorted.map((anim) => {
226
- const selector = JSON.stringify(anim.targetSelector);
226
+ const selector = scriptJson(anim.targetSelector);
227
227
  const props = { ...anim.properties };
228
228
  if (anim.duration !== void 0) props.duration = anim.duration;
229
229
  if (anim.ease) props.ease = anim.ease;
@@ -236,7 +236,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
236
236
  propsStr = propsStr.slice(0, -2) + `, ${extrasStr} }`;
237
237
  }
238
238
  }
239
- const posStr = JSON.stringify(anim.position);
239
+ const posStr = scriptJson(anim.position);
240
240
  switch (anim.method) {
241
241
  case "set":
242
242
  return anim.global ? ` gsap.set(${selector}, ${propsStr});` : ` ${timelineVar}.set(${selector}, ${propsStr}, ${posStr});`;
@@ -280,11 +280,20 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
280
280
  ${lines.join("\n")}${mediaSync}${postamble}
281
281
  `;
282
282
  }
283
+ function scriptJson(value) {
284
+ return String(JSON.stringify(value)).replace(/<(\/script|!--)/gi, "\\u003c$1");
285
+ }
286
+ var TWEEN_METHODS = /* @__PURE__ */ new Set(["set", "to", "from", "fromTo"]);
287
+ function tweenMethodCode(method) {
288
+ if (!TWEEN_METHODS.has(method))
289
+ throw new TypeError(`Unsupported tween method: ${scriptJson(method)}`);
290
+ return method;
291
+ }
283
292
  function serializeValue(value) {
284
293
  if (typeof value === "string" && value.startsWith("__raw:")) {
285
294
  return value.slice(6);
286
295
  }
287
- if (typeof value === "string") return JSON.stringify(value);
296
+ if (typeof value === "string") return scriptJson(value);
288
297
  return String(value);
289
298
  }
290
299
  function plainPercentKey(percentage) {
@@ -292,7 +301,7 @@ function plainPercentKey(percentage) {
292
301
  return `${text}%`;
293
302
  }
294
303
  function safeJsKey(key) {
295
- return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : JSON.stringify(key);
304
+ return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : scriptJson(key);
296
305
  }
297
306
  function serializeObject(obj) {
298
307
  const entries = Object.entries(obj).map(([key, value]) => {
@@ -446,6 +455,19 @@ function resolveConversionProps(anim, resolvedFromValues) {
446
455
  const toProps = resolvedFromValues ? { ...anim.properties, ...resolvedFromValues } : { ...anim.properties };
447
456
  return { fromProps: { ...anim.fromProperties ?? {} }, toProps };
448
457
  }
458
+ function assertMotionPathNumbers(config) {
459
+ const points = [
460
+ ...config.waypoints,
461
+ ...config.segments.flatMap((s) => [s.cp1, s.cp2].filter((p) => p !== void 0))
462
+ ];
463
+ const values = [
464
+ ...points.flatMap((p) => [p.x, p.y]),
465
+ ...config.segments.map((s) => s.curviness ?? 1)
466
+ ];
467
+ if (values.some((v) => typeof v !== "number")) {
468
+ throw new TypeError("Motion path coordinates and curviness must be numbers");
469
+ }
470
+ }
449
471
  function clipTweenMatcher(clipSelectors, root, queries = /* @__PURE__ */ new Map()) {
450
472
  const own = typeof clipSelectors === "string" ? [clipSelectors] : clipSelectors;
451
473
  if (!root)
@@ -1526,7 +1548,7 @@ function insertAfterAnchor(parsed, newStatement) {
1526
1548
  }
1527
1549
  }
1528
1550
  function buildTweenStatementCode(timelineVar, anim) {
1529
- const selector = JSON.stringify(anim.targetSelector);
1551
+ const selector = scriptJson(anim.targetSelector);
1530
1552
  const props = { ...anim.properties };
1531
1553
  if (anim.method !== "set" && anim.duration !== void 0) props.duration = anim.duration;
1532
1554
  if (anim.ease) props.ease = anim.ease;
@@ -1557,7 +1579,7 @@ function buildTweenStatementCode(timelineVar, anim) {
1557
1579
  if (anim.method === "set" && anim.global) {
1558
1580
  return `gsap.set(${selector}, ${objCode});`;
1559
1581
  }
1560
- return `${timelineVar}.${anim.method}(${selector}, ${objCode}, ${posCode});`;
1582
+ return `${timelineVar}.${tweenMethodCode(anim.method)}(${selector}, ${objCode}, ${posCode});`;
1561
1583
  }
1562
1584
  function updateAnimationInScript(script, animationId, updates) {
1563
1585
  let parsed;
@@ -1673,10 +1695,10 @@ function addAnimationWithKeyframesToScript(script, targetSelector, position, dur
1673
1695
  if (parsed.located.length === 0 && parsed.detection.ref === null) {
1674
1696
  return { script, id: "" };
1675
1697
  }
1676
- const selector = JSON.stringify(targetSelector);
1698
+ const selector = scriptJson(targetSelector);
1677
1699
  const kfCode = buildKeyframeObjectCode(keyframes, easeEach ? { easeEach } : void 0);
1678
1700
  const varEntries = [`keyframes: ${kfCode}`, `duration: ${serializeValue(duration)}`];
1679
- if (ease) varEntries.push(`ease: ${JSON.stringify(ease)}`);
1701
+ if (ease) varEntries.push(`ease: ${scriptJson(ease)}`);
1680
1702
  const posCode = serializeValue(position);
1681
1703
  const stmtCode = `${parsed.timelineVar}.to(${selector}, { ${varEntries.join(", ")} }, ${posCode});`;
1682
1704
  const newStatement = parseScript(stmtCode).program.body[0];
@@ -1772,8 +1794,8 @@ function insertInheritedStateSet(script, selector, position, properties) {
1772
1794
  return script;
1773
1795
  }
1774
1796
  const tlVar = parsed.timelineVar;
1775
- const props = Object.entries(properties).map(([k, v]) => `${k}: ${typeof v === "string" ? JSON.stringify(v) : v}`).join(", ");
1776
- const code = `${tlVar}.set(${JSON.stringify(selector)}, { ${props} }, ${position});`;
1797
+ const props = Object.entries(properties).map(([k, v]) => `${safeJsKey(k)}: ${typeof v === "string" ? scriptJson(v) : v}`).join(", ");
1798
+ const code = `${tlVar}.set(${scriptJson(selector)}, { ${props} }, ${position});`;
1777
1799
  const newStatement = parseScript(code).program.body[0];
1778
1800
  const anchor = findTimelineDeclarationPath(parsed.ast, tlVar);
1779
1801
  if (anchor) {
@@ -1936,11 +1958,11 @@ function keyframePropsToCode(kf) {
1936
1958
  function buildKeyframeObjectCode(keyframes, options) {
1937
1959
  const entries = mergePercentageKeyframes(keyframes).map((kf) => {
1938
1960
  const props = keyframePropsToCode(kf);
1939
- if (kf.ease) props.push(`ease: ${JSON.stringify(kf.ease)}`);
1961
+ if (kf.ease) props.push(`ease: ${scriptJson(kf.ease)}`);
1940
1962
  if (kf.auto) props.push(`_auto: 1`);
1941
- return `${JSON.stringify(plainPercentKey(kf.percentage))}: { ${props.join(", ")} }`;
1963
+ return `${scriptJson(plainPercentKey(kf.percentage))}: { ${props.join(", ")} }`;
1942
1964
  });
1943
- if (options?.easeEach) entries.push(`easeEach: ${JSON.stringify(options.easeEach)}`);
1965
+ if (options?.easeEach) entries.push(`easeEach: ${scriptJson(options.easeEach)}`);
1944
1966
  return `{ ${entries.join(", ")} }`;
1945
1967
  }
1946
1968
  function removeVarsKey(varsArg, key) {
@@ -1970,7 +1992,7 @@ function findKeyframePropByPct(kfNode, percentage) {
1970
1992
  function buildKeyframeValueNode(properties, ease) {
1971
1993
  const effectiveEase = ease ?? (typeof properties.ease === "string" ? properties.ease : void 0);
1972
1994
  const entries = Object.entries(properties).filter(([k]) => k !== "ease").map(([k, v]) => `${safeJsKey(k)}: ${serializeValue(v)}`);
1973
- if (effectiveEase) entries.push(`ease: ${JSON.stringify(effectiveEase)}`);
1995
+ if (effectiveEase) entries.push(`ease: ${scriptJson(effectiveEase)}`);
1974
1996
  return parseExpr(`{ ${entries.join(", ")} }`);
1975
1997
  }
1976
1998
  function setObjectExpressionEase(node, ease) {
@@ -1979,7 +2001,7 @@ function setObjectExpressionEase(node, ease) {
1979
2001
  const easeIdx = props.findIndex(
1980
2002
  (property) => isObjectProperty(property) && propKeyName(property) === "ease"
1981
2003
  );
1982
- const easeNode = parseExpr(`({ ease: ${JSON.stringify(ease)} })`).properties[0];
2004
+ const easeNode = parseExpr(`({ ease: ${scriptJson(ease)} })`).properties[0];
1983
2005
  if (easeIdx >= 0) props[easeIdx] = easeNode;
1984
2006
  else props.push(easeNode);
1985
2007
  return true;
@@ -2054,7 +2076,7 @@ function convertArrayKeyframesToObjectNode(varsArg, scope) {
2054
2076
  el.properties = (el.properties ?? []).filter(
2055
2077
  (property) => !isObjectProperty(property) || propKeyName(property) !== "duration"
2056
2078
  );
2057
- return `${JSON.stringify(plainPercentKey(timing.percentages[i]))}: ${recast.print(el).code}`;
2079
+ return `${scriptJson(plainPercentKey(timing.percentages[i]))}: ${recast.print(el).code}`;
2058
2080
  });
2059
2081
  prop.value = parseExpr(`{ ${entries.join(", ")}, easeEach: "none" }`);
2060
2082
  return prop.value;
@@ -2111,7 +2133,7 @@ function addKeyframeToScript(script, animationId, percentage, properties, ease,
2111
2133
  existing.prop.value = newValueNode;
2112
2134
  }
2113
2135
  } else {
2114
- const newProp = parseExpr(`{ ${JSON.stringify(pctKey)}: {} }`).properties[0];
2136
+ const newProp = parseExpr(`{ ${scriptJson(pctKey)}: {} }`).properties[0];
2115
2137
  newProp.value = newValueNode;
2116
2138
  let insertIdx = kfNode.properties.length;
2117
2139
  for (let i = 0; i < kfNode.properties.length; i++) {
@@ -2227,7 +2249,7 @@ function moveKeyframeInScript(script, animationId, fromPercentage, toPercentage)
2227
2249
  const kept = (kfNode.properties ?? []).filter((p) => !pctProps.has(p));
2228
2250
  kfNode.properties = [
2229
2251
  ...entries.map((e) => {
2230
- const p = parseExpr(`{ ${JSON.stringify(plainPercentKey(e.pct))}: {} }`).properties[0];
2252
+ const p = parseExpr(`{ ${scriptJson(plainPercentKey(e.pct))}: {} }`).properties[0];
2231
2253
  p.value = e.value;
2232
2254
  return p;
2233
2255
  }),
@@ -2245,7 +2267,7 @@ function resizeKeyframedTweenInScript(script, animationId, newPosition, newDurat
2245
2267
  const match = findKeyframePropByPct(kfNode, from);
2246
2268
  if (!match || seen.has(match.prop)) continue;
2247
2269
  seen.add(match.prop);
2248
- match.prop.key = parseExpr(`{ ${JSON.stringify(plainPercentKey(to))}: 0 }`).properties[0].key;
2270
+ match.prop.key = parseExpr(`{ ${scriptJson(plainPercentKey(to))}: 0 }`).properties[0].key;
2249
2271
  }
2250
2272
  applyUpdatesToCall(loc.target.call, {
2251
2273
  position: newPosition,
@@ -2333,7 +2355,7 @@ function updateKeyframeInScript(script, animationId, percentage, properties, eas
2333
2355
  else props.push(node);
2334
2356
  };
2335
2357
  for (const [k, v] of Object.entries(properties)) upsert(k, serializeValue(v));
2336
- if (ease !== void 0) upsert("ease", JSON.stringify(ease));
2358
+ if (ease !== void 0) upsert("ease", scriptJson(ease));
2337
2359
  return recast.print(loc.parsed.ast).code;
2338
2360
  }
2339
2361
  match.prop.value = buildKeyframeValueNode(properties, ease);
@@ -2351,7 +2373,7 @@ function stripEditableAndEase(varsArg) {
2351
2373
  function insertKeyframesProp(varsArg, fromProps, toProps, easeEach) {
2352
2374
  const fromEntries = Object.entries(fromProps).map(([k, v]) => `${safeJsKey(k)}: ${serializeValue(v)}`);
2353
2375
  const toEntries = Object.entries(toProps).map(([k, v]) => `${safeJsKey(k)}: ${serializeValue(v)}`);
2354
- const easeEntry = easeEach ? `, easeEach: ${JSON.stringify(easeEach)}` : "";
2376
+ const easeEntry = easeEach ? `, easeEach: ${scriptJson(easeEach)}` : "";
2355
2377
  const kfCode = `{ "0%": { ${fromEntries.join(", ")} }, "100%": { ${toEntries.join(", ")} }${easeEntry} }`;
2356
2378
  const kfProp = parseExpr(`{ keyframes: {} }`).properties[0];
2357
2379
  kfProp.value = parseExpr(kfCode);
@@ -2425,7 +2447,7 @@ function materializeKeyframesInScript(script, animationId, keyframes, easeEach,
2425
2447
  if (!loc) return script;
2426
2448
  const varsArg = loc.target.call.varsArg;
2427
2449
  if (resolvedSelector && loc.target.call.node.arguments[0]) {
2428
- loc.target.call.node.arguments[0] = parseExpr(JSON.stringify(resolvedSelector));
2450
+ loc.target.call.node.arguments[0] = parseExpr(scriptJson(resolvedSelector));
2429
2451
  }
2430
2452
  const kfObjCode = buildKeyframeObjectCode(sortedKeyframes(keyframes), { easeEach });
2431
2453
  const kfParent = varsArg.properties.find(
@@ -2458,6 +2480,7 @@ function extractArcWaypoints(anim) {
2458
2480
  ];
2459
2481
  }
2460
2482
  function buildMotionPathObjectCode(config) {
2483
+ assertMotionPathNumbers(config);
2461
2484
  const { waypoints, segments, autoRotate } = config;
2462
2485
  const hasExplicitControlPoints = segments.some((s) => s.cp1 && s.cp2);
2463
2486
  const curvinessVaries = segments.some(
@@ -2671,11 +2694,11 @@ function addMotionPathToScript(script, targetSelector, position, duration, point
2671
2694
  segments: [{ curviness: 1 }],
2672
2695
  autoRotate: false
2673
2696
  });
2674
- const selector = JSON.stringify(targetSelector);
2697
+ const selector = scriptJson(targetSelector);
2675
2698
  const varEntries = [
2676
2699
  `motionPath: ${motionPathCode}`,
2677
2700
  `duration: ${serializeValue(duration)}`,
2678
- `ease: ${JSON.stringify(ease)}`
2701
+ `ease: ${scriptJson(ease)}`
2679
2702
  ];
2680
2703
  const stmtCode = `${parsed.timelineVar}.to(${selector}, { ${varEntries.join(", ")} }, ${serializeValue(position)});`;
2681
2704
  const newStatement = parseScript(stmtCode).program.body[0];
@@ -2799,7 +2822,7 @@ function unrollDynamicAnimations(script, animationId, elements) {
2799
2822
  const ease = typeof easeVal === "string" ? easeVal : "none";
2800
2823
  const posArg = loc.target.call.positionArg;
2801
2824
  const position = posArg ? extractLiteralValue(posArg, loc.parsed.scope) : 0;
2802
- const posCode = typeof position === "number" ? String(position) : typeof position === "string" ? JSON.stringify(position) : "0";
2825
+ const posCode = typeof position === "number" ? String(position) : typeof position === "string" ? scriptJson(position) : "0";
2803
2826
  let loopNode = null;
2804
2827
  let current = loc.target.call.path;
2805
2828
  while (current) {
@@ -2820,7 +2843,7 @@ function unrollDynamicAnimations(script, animationId, elements) {
2820
2843
  easeEach: el.easeEach
2821
2844
  });
2822
2845
  calls.push(
2823
- `${loc.parsed.timelineVar}.to(${JSON.stringify(el.selector)}, { keyframes: ${kfCode}, duration: ${duration}, ease: ${JSON.stringify(ease)} }, ${posCode});`
2846
+ `${loc.parsed.timelineVar}.to(${scriptJson(el.selector)}, { keyframes: ${kfCode}, duration: ${duration}, ease: ${scriptJson(ease)} }, ${posCode});`
2824
2847
  );
2825
2848
  }
2826
2849
  const replacement = calls.join("\n ");
@@ -4,7 +4,7 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
- import "./chunk-3F2DTPBD.js";
7
+ import "./chunk-UC4X6I35.js";
8
8
  import "./chunk-M2WBOQ2Q.js";
9
9
 
10
10
  // src/hangReport.ts
@@ -12,30 +12,30 @@ import {
12
12
  isHeifBytes,
13
13
  prepareHeifImageInputs,
14
14
  primaryGrid
15
- } from "./chunk-T54RTTFW.js";
16
- import "./chunk-6VNDEMSP.js";
15
+ } from "./chunk-RCRUWNQ4.js";
16
+ import "./chunk-X6DWLN55.js";
17
17
  import "./chunk-BZ56MTDX.js";
18
- import "./chunk-R5U5PFDJ.js";
18
+ import "./chunk-EJPWGGPK.js";
19
19
  import "./chunk-Z5J67X44.js";
20
20
  import "./chunk-5S7W3TUO.js";
21
21
  import "./chunk-D3MUHMFG.js";
22
- import "./chunk-OBRKDUCE.js";
23
- import "./chunk-IEXRKKHC.js";
22
+ import "./chunk-YIE5FU73.js";
23
+ import "./chunk-IEEIPTDW.js";
24
24
  import "./chunk-3GXQPCJC.js";
25
- import "./chunk-HM3PIREE.js";
25
+ import "./chunk-3367VNGK.js";
26
26
  import "./chunk-FXMKHHPO.js";
27
- import "./chunk-ELWX6CAA.js";
27
+ import "./chunk-YAZQBB2S.js";
28
28
  import "./chunk-VC76R6W2.js";
29
- import "./chunk-OFQWTKPW.js";
29
+ import "./chunk-HZTRKUKE.js";
30
30
  import "./chunk-RQVDTPGD.js";
31
31
  import "./chunk-K4MJX7SR.js";
32
32
  import "./chunk-WE42NVH7.js";
33
- import "./chunk-DJVSNDF3.js";
33
+ import "./chunk-VB3JZKMN.js";
34
34
  import "./chunk-WVRAFHJU.js";
35
- import "./chunk-HYRPH6LL.js";
35
+ import "./chunk-KRWPTZBY.js";
36
36
  import "./chunk-FBN2M2HK.js";
37
37
  import "./chunk-6MKM2RVL.js";
38
- import "./chunk-IOPIOX5K.js";
38
+ import "./chunk-N7C7U3ZR.js";
39
39
  import "./chunk-FR7YBU3H.js";
40
40
  import "./chunk-DPVXBVLL.js";
41
41
  import "./chunk-GWTIFRF5.js";
@@ -14,7 +14,7 @@ import {
14
14
  import "./chunk-CPHQTXP5.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-CP4FVXKZ.js";
17
+ } from "./chunk-LHFBKUVY.js";
18
18
  import "./chunk-LW33P24U.js";
19
19
  import "./chunk-XT6MXC7A.js";
20
20
  import "./chunk-7KDQAD2W.js";
@@ -12,9 +12,9 @@ import {
12
12
  withOwner,
13
13
  withReader,
14
14
  writeTurn
15
- } from "./chunk-RJA64ACI.js";
15
+ } from "./chunk-2Z42EUHG.js";
16
16
  import "./chunk-X7MTZ4T2.js";
17
- import "./chunk-L6ZLOJBI.js";
17
+ import "./chunk-HDCVU64B.js";
18
18
  import {
19
19
  AmbiguousPreviewServerError
20
20
  } from "./chunk-3L2POG2J.js";
@@ -24,13 +24,13 @@ import {
24
24
  HistoryRefusedError,
25
25
  START,
26
26
  isUncopiedMedia
27
- } from "./chunk-VPPJIWVG.js";
28
- import "./chunk-ALVXFXUG.js";
27
+ } from "./chunk-XDRSEU2I.js";
29
28
  import "./chunk-LIWK3MFR.js";
29
+ import "./chunk-WXOOAAT4.js";
30
30
  import {
31
31
  trackHistoryAction
32
- } from "./chunk-OJSOH2LS.js";
33
- import "./chunk-5BIMSULZ.js";
32
+ } from "./chunk-2W4VQ3YZ.js";
33
+ import "./chunk-PVSRPNIV.js";
34
34
  import "./chunk-PXVQOMKL.js";
35
35
  import "./chunk-MCDNAIFF.js";
36
36
  import "./chunk-LP7B3JLC.js";
@@ -41,17 +41,17 @@ import "./chunk-S3S4TGEH.js";
41
41
  import "./chunk-54HJ63Q2.js";
42
42
  import "./chunk-JCNPHRGX.js";
43
43
  import "./chunk-EVMY7IPL.js";
44
- import "./chunk-IEXRKKHC.js";
45
- import "./chunk-HM3PIREE.js";
44
+ import "./chunk-IEEIPTDW.js";
45
+ import "./chunk-3367VNGK.js";
46
46
  import "./chunk-FXMKHHPO.js";
47
- import "./chunk-ELWX6CAA.js";
47
+ import "./chunk-YAZQBB2S.js";
48
48
  import "./chunk-VC76R6W2.js";
49
- import "./chunk-OFQWTKPW.js";
49
+ import "./chunk-HZTRKUKE.js";
50
50
  import "./chunk-RQVDTPGD.js";
51
51
  import "./chunk-FOZBANEN.js";
52
52
  import "./chunk-FBN2M2HK.js";
53
53
  import "./chunk-6MKM2RVL.js";
54
- import "./chunk-IOPIOX5K.js";
54
+ import "./chunk-N7C7U3ZR.js";
55
55
  import "./chunk-FR7YBU3H.js";
56
56
  import "./chunk-DPVXBVLL.js";
57
57
  import "./chunk-GWTIFRF5.js";
@@ -61,7 +61,7 @@ import "./chunk-EPQC3FGZ.js";
61
61
  import "./chunk-JOQR4AP6.js";
62
62
  import {
63
63
  withMeta
64
- } from "./chunk-RLYYA6IR.js";
64
+ } from "./chunk-34S7GYVK.js";
65
65
  import "./chunk-BR2JQQC5.js";
66
66
  import "./chunk-AWD2MWWL.js";
67
67
  import "./chunk-ISN5GRYI.js";
@@ -74,7 +74,7 @@ import {
74
74
  } from "./chunk-66W5IWLO.js";
75
75
  import "./chunk-CPHQTXP5.js";
76
76
  import "./chunk-QBXDU24O.js";
77
- import "./chunk-CP4FVXKZ.js";
77
+ import "./chunk-LHFBKUVY.js";
78
78
  import "./chunk-E63BDV4Z.js";
79
79
  import "./chunk-LW33P24U.js";
80
80
  import "./chunk-XT6MXC7A.js";
@@ -1,4 +1,4 @@
1
- "use strict";var HyperframesPlayer=(()=>{var je=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var gi=Object.prototype.hasOwnProperty;var bi=(t,e)=>{for(var n in e)je(t,n,{get:e[n],enumerable:!0})},_i=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of fi(e))!gi.call(t,r)&&r!==n&&je(t,r,{get:()=>e[r],enumerable:!(i=hi(e,r))||i.enumerable});return t};var yi=t=>_i(je({},"__esModule",{value:!0}),t);var yo={};bi(yo,{HyperframesPlayer:()=>ze,SPEED_PRESETS:()=>pt,formatSpeed:()=>W,formatTime:()=>Le});var Ft=t=>t!==null&&Number.isFinite(t)&&t>0;function qe(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Ft(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Ft);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var vi="http://www.w3.org/1999/xhtml";function Ut(t){return t!=null&&t.nodeType===1}function Ye(t){return Ut(t)&&t.namespaceURI===vi}function Xe(t,e){return Ye(t)&&t.localName===e}function Ai(t){return Xe(t,"video")}function Si(t){return Xe(t,"audio")}function P(t){return Ai(t)||Si(t)}function Ht(t){return Xe(t,"img")}function Se(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function ee(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return Ye(e)?e:t.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Ro=Object.freeze([G.start,G.duration,G.trackIndex]),xo=Object.freeze([G.derivedEnd]),wo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ke(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Vt=t=>{let e=Ke(t);return e!==null&&e>=0?e:null};function Ee(t){return Vt(t("data-playback-start"))??Vt(t("data-media-start"))??0}var te=.1,ne=10;function Ze(t){return Number.isFinite(t)&&t>0?Math.max(te,Math.min(ne,t)):1}function Wt(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ze(Number.isFinite(n)&&n>0?n:e)}function Je(t){let e=Ke(t("data-duration"));return e!==null&&e>0?e:null}function $t(t,e){let n=Je(t);if(n!==null)return n;let i=Ke(t("data-end"));return i!==null?i-e:null}var Ei=3;function Qe(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ze(n):null}function et(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:Ei,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Qe(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var Ti="data-fx-chain",Mo=Ti.slice(5);var ie=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),tt=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Te=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Bt={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},Gt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Te(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[ie("frequency","Frequency",1e3),Te(-40,40,0),tt(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ie("frequency","Frequency",200,20,2e3),Te(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ie("frequency","Frequency",4e3,500,2e4),Te(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[ie("frequency","Cutoff",300,20,2e4),tt(.707),Bt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ie("frequency","Cutoff",8e3,100,2e4),tt(.707),Bt],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],Io=new Map(Gt.map(t=>[t.id,t]));var Co=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",$o=jt.slice(5),nt=1,xi=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function qt(t){if(t===Re)return{kind:"volume"};if(t===xe)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===wi){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var wi="preset";var ki={min:0,max:zt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Mi={min:te,max:ne,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function re(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function Ii(t){let e=re(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function Yt(t,e){let n=re(t),i=re(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ci(t){let e=Ii(t?.curve),n=Yt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function Di(t,e){let n=re(t?.t),i=re(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...Ci(t)}}function Pi(t,e){let n=t.map(r=>Di(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,xi)}function Li(t){let e=[];for(let n of t.lanes){if(!qt(n.target))continue;let i=n.target===Re?ki:n.target===xe?Mi:null,r=Pi(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:nt,lanes:e}}function Xt(t){let e;try{e=JSON.parse(t)}catch(r){throw new L(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new L("Automation must be a JSON object.");let n=e;if(n.version!==nt)throw new L(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new L("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new L(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!qt(a.target))throw new L(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new L(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Li({version:nt,lanes:i})}function Ni(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Oi(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,l=Math.min(o,Math.max(1,a,s));return{cx:t+n/l,cy:e+i/l,w:l}}function Fi(t,e,n){let{cx:i,cy:r,w:o}=Oi(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Ui(s,l,t),c=1-u,h=c*c+2*o*u*c+u*u;return h>0?(2*o*r*u*c+u*u)/h:t}function Ui(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Hi(t,e){let n=Yt(e.viaX,e.viaY);return n?Fi(Math.min(1,Math.max(0,t)),n.x,n.y):Ni(t,e.curve)}function Vi(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function we(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let h=a+s>>1;i[h].t<=e?a=h:s=h}let l=i[a],u=i[s],c=u.t-l.t;return c<=0?u.v:Vi(l.v,u.v,Hi((e-l.t)/c,l),n)}var ke=new Map,Wi=64;function Kt(t,e=Re){let n=`${e}\0${t}`,i=ke.get(n);if(i!==void 0)return i;let r=null;try{r=Xt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Wi&&ke.clear(),ke.set(n,r),r}var Zt=48,Jt=new WeakMap;function $i(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let u=r[r.length-1];if(l<=u)return;let c=we(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+we(t,l,"log"))/2*(l-u))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let u=e[l-1].t,c=e[l].t;if(!(c<=0))for(let h=1;h<=Zt;h+=1)a(Math.max(u,0)+(c-u)*h/Zt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Bi(t){let e=Jt.get(t);return e||(e=$i(t),Jt.set(t,e)),e}function Gi(t){return typeof t!="number"&&t.points.length>0}function zi(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function Qt(t,e){if(typeof t=="number")return e/t;if(!Gi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Bi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:zi(i,n,e)}function ji(t){return t?Kt(t,xe):null}function en(t,e){return ji(t)??e}var Xo=[{id:"montage",label:"Montage",points:[[0,.9],[.15,.3],[.5,2.5],[.85,.3],[1,.9]]},{id:"hero",label:"Hero",points:[[0,1],[.25,1.6],[.5,.25],[.75,1.6],[1,1]]},{id:"bullet",label:"Bullet",points:[[0,3],[.4,3],[.5,.15],[.6,3],[1,3]]},{id:"jump-cut",label:"Jump cut",points:[[0,.5],[.24,.5],[.26,3],[.5,3],[.52,.5],[.74,.5],[.76,3],[1,3]]},{id:"flash-in",label:"Flash in",points:[[0,.3],[.6,.6],[1,5]]},{id:"flash-out",label:"Flash out",points:[[0,5],[.4,.6],[1,.3]]},{id:"ramp-in",label:"Ramp in",points:[[0,.5],[1,1]]},{id:"ramp-out",label:"Ramp out",points:[[0,1],[1,.5]]},{id:"slowmo-middle",label:"Slow-mo middle",points:[[0,1],[1/3,.35],[2/3,.35],[1,1]]}];var y=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Zo=Object.freeze([y.start,y.duration,y.trackIndex]),Jo=Object.freeze([y.derivedEnd]),Qo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var rn=/^[A-Za-z0-9_.:-]+$/;function on(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function tn(t,e){let n=e;for(;n>=0&&on(t,n);)n--;return n}function qi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Yi(t){let e=t.length-1;if(!on(t,e))return null;let n=tn(t,e);return t[n]==="."&&(n=tn(t,n-1)),n+1}function Xi(t){let e=Yi(t);if(e==null)return null;let n=qi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!rn.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function oe(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(rn.test(e))return{kind:"reference",refId:e,offset:0};let i=Xi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function Ki(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var Zi=1e-9;function Ji(t,e){return Math.abs(t-e)<=Zi}function Qi(t,e,n){let i=N(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}Ji(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function er(t,e,n){let i=N(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function tr(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=N(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function nr(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:tr(r,e,n);let o=er(i,e,n);return r!=null&&Qi(r,o.end,n),o}function nn(t,e,n,i){let r=N(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function ir(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),nn(i,y.legacyTrack,"legacy-layer",e);let r=nn(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=N(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function it(t,e={}){let n=[],i=t.getAttribute(y.start),r=oe(i),o=Ki(r,i,e,n),a=nr(t,o,n),s=ir(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function rt(t){return Wt(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function rr(t){return en(t.getAttribute("data-automation"),rt(t))}function ot(t){return Ee(e=>t.getAttribute(e))}function ae(t,e){return or(e,ot(t),rr(t))}function at(t){let e=et({tag:"video",authoredDurationSeconds:Je(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:ot(t),playbackRate:rt(t)});return e.source==="media"?ae(t,t.duration):e.seconds}function Me(t,e=0){return!Ht(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:et({tag:"img",authoredDurationSeconds:$t(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function or(t,e,n){return typeof n=="number"?Qe(t,e,n):Number.isFinite(t)?Qt(n,Math.max(0,t-e)):null}function an(){return globalThis}function st(t,e){if(typeof window>"u")return;let n=an(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var ar=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function se(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(ar));return Number.isFinite(i)?i:null}catch(e){return st("runtime.timelineDuration",e),null}}var sn="data-hf-authored-duration",ln="data-hf-authored-end";function le(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Ie(t){let e=le(t.start);if(e==null)return null;let n=Math.max(0,e),i=le(t.duration),r=le(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=le(t.end),s=le(t.authoredEnd),l=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:l==null?null:l-n,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),ha=Object.freeze([z.start,z.duration,z.trackIndex]),fa=Object.freeze([z.derivedEnd]),ga=Object.freeze([z.derivedEnd,z.legacyTrack]);function sr(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var un=t=>{let e=sr(t);return e!==null&&e>=0?e:null};function lr(t){return un(t("data-playback-start"))??un(t("data-media-start"))??0}var dn="data-hf-media-start-basis";function cn(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function ur(t){return cn(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function mn(t){return hn(t)?ur({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function pn(t){return hn(t)&&cn(t.basis)==="global"}function hn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function lt(t){return lr(e=>t.getAttribute(e))}function fn(t,e){return t-lt(e)}function ue(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=d=>(d.hasAttribute("data-composition-id")?d.parentElement:d)?.closest("[data-composition-id]")??null,l=(d,f)=>{let b=s(f);if(b){for(let M of b.querySelectorAll(`[id="${d}"]`))if(s(M)===b)return M}let R=i.getElementById(d);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(M=>M.getAttribute("data-composition-id")===d)??null)},u=(d,f)=>n?d.getAttribute(f):null,c=d=>Ie({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ie({start:T(d,0),end:d.getAttribute("data-end"),authoredEnd:u(d,"data-hf-authored-end")})?.duration??null,h=d=>d!=null&&Number.isFinite(d)&&d>0?d:null,v=d=>{let f=d.getAttribute("data-composition-id");return f?h(se(e[f])):null},_=d=>{let f=o.get(d);if(f!==void 0)return f;let b=c(d)??h(P(d)?ae(d,d.duration):null)??h(Me(d))??v(d);return o.set(d,b),b},A="[data-composition-src], [data-composition-id], [data-composition-file]",g=d=>d.matches(A),S=d=>!d.hasAttribute("data-composition-id")||oe(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${A}`)??null,k=(d,f)=>fn(T(d,f),S(d)??d),I=(d,f)=>{let b=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return b?k(b,f):0},C=(d,f)=>{let b=oe(d.getAttribute("data-start"));if(!b){let H=S(d);return H?T(H,f):f}if(b.kind==="absolute")return I(d,f)+Math.max(0,b.value);let R=l(b.refId,d);if(!R)return f;let M=T(R,0),ve=_(R)??0,Ae=Math.min(0,I(d,0));return Math.max(Ae,M+ve+b.offset)},T=(d,f)=>{let b=r.get(d);if(b!==void 0)return b??f;if(a.has(d))return f;a.add(d);try{let R=C(d,f);return r.set(d,R),R}finally{a.delete(d)}},U=d=>{let f=d.closest("[data-composition-id]");return{authoredStart:V(d.getAttribute("data-start")),hostStart:f?k(f,0):0,hasAutoStart:d.hasAttribute("data-hf-auto-start"),basis:d.getAttribute(dn)}};return{resolveStartForElement:(d,f=0)=>T(d,Math.max(0,f)),resolveDurationForElement:d=>_(d),resolveMediaStartForElement:d=>{let f=U(d);return mn({...f,ordinaryStart:()=>T(d,f.hostStart)})},resolveHostStartForElement:d=>I(d,0),resolveHostSlotsForElement:d=>{let f=[];for(let b=d.parentElement;b;b=b.parentElement){if(!g(b)||S(b)||lt(b)<=0)continue;let R=T(b,0),M=c(b);f.push({start:R,end:M?R+M:1/0})}return f},isRootGlobalMediaStartForElement:d=>P(d)&&pn(U(d))}}function gn(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var bn=7200,ut=1/60,de=t=>t!==null&&t>ut?t:null;function dr(t){return{width:Se(t.getAttribute("data-width")),height:Se(t.getAttribute("data-height"))}}function cr(t,e){let n=null;for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);if(o==null||o<=ut)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&de(n.seconds)!==null?n:null}function mr(t,e){return cr(t,e)?.seconds??null}function pr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=V(t.getAttribute("data-duration"));return de(qe({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var hr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function fr(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(P(o)||hr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=qe({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function gr(t){return br(t).seconds}function br(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=de(t.timeline()),n=t.floors().map(h=>h??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>ut?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=bn&&de(o)!==null?null:e,l=i>=r,u=h=>({seconds:h,from:l?"floor":"fallback",floorIndex:l?n.indexOf(i):null});if(s!==null)return s>=o?{seconds:s,from:"timeline",floorIndex:null}:u(o);if(de(i)!==null)return u(o);if(r>0)return{seconds:r,from:"fallback",floorIndex:null};let c=t.derived();return{seconds:c>0?c:0,from:"derived",floorIndex:null}}function _n(t){let e=ee(t);if(!e)return null;let n=ue({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=gr({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[mr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:at}),pr(e,n)],fallback:0,derived:()=>fr(e,n,{unregisteredLottie:!1}).seconds??0});return{...dr(e),fps:gn().canonicalFps,durationSeconds:i}}function Ce(t){return t+1e-5}function yn(){let{userAgent:t,maxTouchPoints:e}=navigator;return/iP(hone|ad|od)/.test(t)||/Macintosh/.test(t)&&e>1}function De(){let{userAgent:t}=navigator;return/AppleWebKit/.test(t)&&!/Chrom(e|ium)\/|Edg\/|Android/.test(t)}var _r="hyperframes-studio-preview";var dt="data-hf-player-frame";function yr(t){return De()&&t.defaultView?.frameElement?.hasAttribute(dt)===!0}function vn(t){return t.querySelector(`meta[name="${_r}"]`)!==null||yr(t)}var An="__hfPreviewErrors";function Sn(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function En(t){return j(t)&&typeof t.getDuration=="function"}function Tn(t){return j(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.9.31/dist/hyperframe.runtime.iife.js";function ce(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function vr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=ce(e.getAttribute("data-width")),i=ce(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function Ar(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Pe=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=Ar(Reflect.get(n,An));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(Sn({hasRuntime:a,hasTimelines:j(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?_n(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:vr(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return j(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!j(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return Tn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(En(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var Rn=`
1
+ "use strict";var HyperframesPlayer=(()=>{var je=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var gi=Object.prototype.hasOwnProperty;var bi=(t,e)=>{for(var n in e)je(t,n,{get:e[n],enumerable:!0})},_i=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of fi(e))!gi.call(t,r)&&r!==n&&je(t,r,{get:()=>e[r],enumerable:!(i=hi(e,r))||i.enumerable});return t};var yi=t=>_i(je({},"__esModule",{value:!0}),t);var yo={};bi(yo,{HyperframesPlayer:()=>ze,SPEED_PRESETS:()=>pt,formatSpeed:()=>W,formatTime:()=>Le});var Ft=t=>t!==null&&Number.isFinite(t)&&t>0;function qe(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Ft(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Ft);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var vi="http://www.w3.org/1999/xhtml";function Ut(t){return t!=null&&t.nodeType===1}function Ye(t){return Ut(t)&&t.namespaceURI===vi}function Xe(t,e){return Ye(t)&&t.localName===e}function Ai(t){return Xe(t,"video")}function Si(t){return Xe(t,"audio")}function P(t){return Ai(t)||Si(t)}function Ht(t){return Xe(t,"img")}function Se(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function ee(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return Ye(e)?e:t.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Ro=Object.freeze([G.start,G.duration,G.trackIndex]),xo=Object.freeze([G.derivedEnd]),wo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ke(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Vt=t=>{let e=Ke(t);return e!==null&&e>=0?e:null};function Ee(t){return Vt(t("data-playback-start"))??Vt(t("data-media-start"))??0}var te=.1,ne=10;function Ze(t){return Number.isFinite(t)&&t>0?Math.max(te,Math.min(ne,t)):1}function Wt(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ze(Number.isFinite(n)&&n>0?n:e)}function Je(t){let e=Ke(t("data-duration"));return e!==null&&e>0?e:null}function $t(t,e){let n=Je(t);if(n!==null)return n;let i=Ke(t("data-end"));return i!==null?i-e:null}var Ei=3;function Qe(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ze(n):null}function et(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:Ei,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Qe(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var Ti="data-fx-chain",Mo=Ti.slice(5);var ie=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),tt=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Te=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Bt={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},Gt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Te(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[ie("frequency","Frequency",1e3),Te(-40,40,0),tt(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ie("frequency","Frequency",200,20,2e3),Te(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ie("frequency","Frequency",4e3,500,2e4),Te(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[ie("frequency","Cutoff",300,20,2e4),tt(.707),Bt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ie("frequency","Cutoff",8e3,100,2e4),tt(.707),Bt],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],Io=new Map(Gt.map(t=>[t.id,t]));var Co=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",$o=jt.slice(5),nt=1,xi=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function qt(t){if(t===Re)return{kind:"volume"};if(t===xe)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===wi){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var wi="preset";var ki={min:0,max:zt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Mi={min:te,max:ne,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function re(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function Ii(t){let e=re(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function Yt(t,e){let n=re(t),i=re(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ci(t){let e=Ii(t?.curve),n=Yt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function Di(t,e){let n=re(t?.t),i=re(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...Ci(t)}}function Pi(t,e){let n=t.map(r=>Di(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,xi)}function Li(t){let e=[];for(let n of t.lanes){if(!qt(n.target))continue;let i=n.target===Re?ki:n.target===xe?Mi:null,r=Pi(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:nt,lanes:e}}function Xt(t){let e;try{e=JSON.parse(t)}catch(r){throw new L(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new L("Automation must be a JSON object.");let n=e;if(n.version!==nt)throw new L(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new L("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new L(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!qt(a.target))throw new L(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new L(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Li({version:nt,lanes:i})}function Ni(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Oi(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,l=Math.min(o,Math.max(1,a,s));return{cx:t+n/l,cy:e+i/l,w:l}}function Fi(t,e,n){let{cx:i,cy:r,w:o}=Oi(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Ui(s,l,t),c=1-u,h=c*c+2*o*u*c+u*u;return h>0?(2*o*r*u*c+u*u)/h:t}function Ui(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Hi(t,e){let n=Yt(e.viaX,e.viaY);return n?Fi(Math.min(1,Math.max(0,t)),n.x,n.y):Ni(t,e.curve)}function Vi(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function we(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let h=a+s>>1;i[h].t<=e?a=h:s=h}let l=i[a],u=i[s],c=u.t-l.t;return c<=0?u.v:Vi(l.v,u.v,Hi((e-l.t)/c,l),n)}var ke=new Map,Wi=64;function Kt(t,e=Re){let n=`${e}\0${t}`,i=ke.get(n);if(i!==void 0)return i;let r=null;try{r=Xt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Wi&&ke.clear(),ke.set(n,r),r}var Zt=48,Jt=new WeakMap;function $i(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let u=r[r.length-1];if(l<=u)return;let c=we(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+we(t,l,"log"))/2*(l-u))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let u=e[l-1].t,c=e[l].t;if(!(c<=0))for(let h=1;h<=Zt;h+=1)a(Math.max(u,0)+(c-u)*h/Zt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Bi(t){let e=Jt.get(t);return e||(e=$i(t),Jt.set(t,e)),e}function Gi(t){return typeof t!="number"&&t.points.length>0}function zi(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function Qt(t,e){if(typeof t=="number")return e/t;if(!Gi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Bi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:zi(i,n,e)}function ji(t){return t?Kt(t,xe):null}function en(t,e){return ji(t)??e}var Xo=[{id:"montage",label:"Montage",points:[[0,.9],[.15,.3],[.5,2.5],[.85,.3],[1,.9]]},{id:"hero",label:"Hero",points:[[0,1],[.25,1.6],[.5,.25],[.75,1.6],[1,1]]},{id:"bullet",label:"Bullet",points:[[0,3],[.4,3],[.5,.15],[.6,3],[1,3]]},{id:"jump-cut",label:"Jump cut",points:[[0,.5],[.24,.5],[.26,3],[.5,3],[.52,.5],[.74,.5],[.76,3],[1,3]]},{id:"flash-in",label:"Flash in",points:[[0,.3],[.6,.6],[1,5]]},{id:"flash-out",label:"Flash out",points:[[0,5],[.4,.6],[1,.3]]},{id:"ramp-in",label:"Ramp in",points:[[0,.5],[1,1]]},{id:"ramp-out",label:"Ramp out",points:[[0,1],[1,.5]]},{id:"slowmo-middle",label:"Slow-mo middle",points:[[0,1],[1/3,.35],[2/3,.35],[1,1]]}];var y=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Zo=Object.freeze([y.start,y.duration,y.trackIndex]),Jo=Object.freeze([y.derivedEnd]),Qo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var rn=/^[A-Za-z0-9_.:-]+$/;function on(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function tn(t,e){let n=e;for(;n>=0&&on(t,n);)n--;return n}function qi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Yi(t){let e=t.length-1;if(!on(t,e))return null;let n=tn(t,e);return t[n]==="."&&(n=tn(t,n-1)),n+1}function Xi(t){let e=Yi(t);if(e==null)return null;let n=qi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!rn.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function oe(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(rn.test(e))return{kind:"reference",refId:e,offset:0};let i=Xi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function Ki(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var Zi=1e-9;function Ji(t,e){return Math.abs(t-e)<=Zi}function Qi(t,e,n){let i=N(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}Ji(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function er(t,e,n){let i=N(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function tr(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=N(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function nr(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:tr(r,e,n);let o=er(i,e,n);return r!=null&&Qi(r,o.end,n),o}function nn(t,e,n,i){let r=N(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function ir(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),nn(i,y.legacyTrack,"legacy-layer",e);let r=nn(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=N(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function it(t,e={}){let n=[],i=t.getAttribute(y.start),r=oe(i),o=Ki(r,i,e,n),a=nr(t,o,n),s=ir(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function rt(t){return Wt(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function rr(t){return en(t.getAttribute("data-automation"),rt(t))}function ot(t){return Ee(e=>t.getAttribute(e))}function ae(t,e){return or(e,ot(t),rr(t))}function at(t){let e=et({tag:"video",authoredDurationSeconds:Je(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:ot(t),playbackRate:rt(t)});return e.source==="media"?ae(t,t.duration):e.seconds}function Me(t,e=0){return!Ht(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:et({tag:"img",authoredDurationSeconds:$t(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function or(t,e,n){return typeof n=="number"?Qe(t,e,n):Number.isFinite(t)?Qt(n,Math.max(0,t-e)):null}function an(){return globalThis}function st(t,e){if(typeof window>"u")return;let n=an(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var ar=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function se(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(ar));return Number.isFinite(i)?i:null}catch(e){return st("runtime.timelineDuration",e),null}}var sn="data-hf-authored-duration",ln="data-hf-authored-end";function le(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Ie(t){let e=le(t.start);if(e==null)return null;let n=Math.max(0,e),i=le(t.duration),r=le(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=le(t.end),s=le(t.authoredEnd),l=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:l==null?null:l-n,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),ha=Object.freeze([z.start,z.duration,z.trackIndex]),fa=Object.freeze([z.derivedEnd]),ga=Object.freeze([z.derivedEnd,z.legacyTrack]);function sr(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var un=t=>{let e=sr(t);return e!==null&&e>=0?e:null};function lr(t){return un(t("data-playback-start"))??un(t("data-media-start"))??0}var dn="data-hf-media-start-basis";function cn(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function ur(t){return cn(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function mn(t){return hn(t)?ur({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function pn(t){return hn(t)&&cn(t.basis)==="global"}function hn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function lt(t){return lr(e=>t.getAttribute(e))}function fn(t,e){return t-lt(e)}function ue(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=d=>(d.hasAttribute("data-composition-id")?d.parentElement:d)?.closest("[data-composition-id]")??null,l=(d,f)=>{let b=s(f);if(b){for(let M of b.querySelectorAll(`[id="${d}"]`))if(s(M)===b)return M}let R=i.getElementById(d);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(M=>M.getAttribute("data-composition-id")===d)??null)},u=(d,f)=>n?d.getAttribute(f):null,c=d=>Ie({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ie({start:T(d,0),end:d.getAttribute("data-end"),authoredEnd:u(d,"data-hf-authored-end")})?.duration??null,h=d=>d!=null&&Number.isFinite(d)&&d>0?d:null,v=d=>{let f=d.getAttribute("data-composition-id");return f?h(se(e[f])):null},_=d=>{let f=o.get(d);if(f!==void 0)return f;let b=c(d)??h(P(d)?ae(d,d.duration):null)??h(Me(d))??v(d);return o.set(d,b),b},A="[data-composition-src], [data-composition-id], [data-composition-file]",g=d=>d.matches(A),S=d=>!d.hasAttribute("data-composition-id")||oe(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${A}`)??null,k=(d,f)=>fn(T(d,f),S(d)??d),I=(d,f)=>{let b=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return b?k(b,f):0},C=(d,f)=>{let b=oe(d.getAttribute("data-start"));if(!b){let H=S(d);return H?T(H,f):f}if(b.kind==="absolute")return I(d,f)+Math.max(0,b.value);let R=l(b.refId,d);if(!R)return f;let M=T(R,0),ve=_(R)??0,Ae=Math.min(0,I(d,0));return Math.max(Ae,M+ve+b.offset)},T=(d,f)=>{let b=r.get(d);if(b!==void 0)return b??f;if(a.has(d))return f;a.add(d);try{let R=C(d,f);return r.set(d,R),R}finally{a.delete(d)}},U=d=>{let f=d.closest("[data-composition-id]");return{authoredStart:V(d.getAttribute("data-start")),hostStart:f?k(f,0):0,hasAutoStart:d.hasAttribute("data-hf-auto-start"),basis:d.getAttribute(dn)}};return{resolveStartForElement:(d,f=0)=>T(d,Math.max(0,f)),resolveDurationForElement:d=>_(d),resolveMediaStartForElement:d=>{let f=U(d);return mn({...f,ordinaryStart:()=>T(d,f.hostStart)})},resolveHostStartForElement:d=>I(d,0),resolveHostSlotsForElement:d=>{let f=[];for(let b=d.parentElement;b;b=b.parentElement){if(!g(b)||S(b)||lt(b)<=0)continue;let R=T(b,0),M=c(b);f.push({start:R,end:M?R+M:1/0})}return f},isRootGlobalMediaStartForElement:d=>P(d)&&pn(U(d))}}function gn(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var bn=7200,ut=1/60,de=t=>t!==null&&t>ut?t:null;function dr(t){return{width:Se(t.getAttribute("data-width")),height:Se(t.getAttribute("data-height"))}}function cr(t,e){let n=null;for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);if(o==null||o<=ut)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&de(n.seconds)!==null?n:null}function mr(t,e){return cr(t,e)?.seconds??null}function pr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=V(t.getAttribute("data-duration"));return de(qe({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var hr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function fr(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(P(o)||hr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=qe({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function gr(t){return br(t).seconds}function br(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=de(t.timeline()),n=t.floors().map(h=>h??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>ut?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=bn&&de(o)!==null?null:e,l=i>=r,u=h=>({seconds:h,from:l?"floor":"fallback",floorIndex:l?n.indexOf(i):null});if(s!==null)return s>=o?{seconds:s,from:"timeline",floorIndex:null}:u(o);if(de(i)!==null)return u(o);if(r>0)return{seconds:r,from:"fallback",floorIndex:null};let c=t.derived();return{seconds:c>0?c:0,from:"derived",floorIndex:null}}function _n(t){let e=ee(t);if(!e)return null;let n=ue({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=gr({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[mr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:at}),pr(e,n)],fallback:0,derived:()=>fr(e,n,{unregisteredLottie:!1}).seconds??0});return{...dr(e),fps:gn().canonicalFps,durationSeconds:i}}function Ce(t){return t+1e-5}function yn(){let{userAgent:t,maxTouchPoints:e}=navigator;return/iP(hone|ad|od)/.test(t)||/Macintosh/.test(t)&&e>1}function De(){let{userAgent:t}=navigator;return/AppleWebKit/.test(t)&&!/Chrom(e|ium)\/|Edg\/|Android/.test(t)}var _r="hyperframes-studio-preview";var dt="data-hf-player-frame";function yr(t){return De()&&t.defaultView?.frameElement?.hasAttribute(dt)===!0}function vn(t){return t.querySelector(`meta[name="${_r}"]`)!==null||yr(t)}var An="__hfPreviewErrors";function Sn(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function En(t){return j(t)&&typeof t.getDuration=="function"}function Tn(t){return j(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.9.32/dist/hyperframe.runtime.iife.js";function ce(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function vr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=ce(e.getAttribute("data-width")),i=ce(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function Ar(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Pe=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=Ar(Reflect.get(n,An));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(Sn({hasRuntime:a,hasTimelines:j(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?_n(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:vr(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return j(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!j(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return Tn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(En(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var Rn=`
2
2
  :host {
3
3
  display: block;
4
4
  position: relative;