hyperframes 0.8.147 → 0.8.148

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 (143) hide show
  1. package/dist/{add-5CNUY3EW.js → add-JAHZJYB7.js} +11 -11
  2. package/dist/{animatedGifPrep-ZID2XJRQ.js → animatedGifPrep-HV4ZFVPV.js} +5 -5
  3. package/dist/{asset-TFEENZ7K.js → asset-SJA7DT6Q.js} +2 -2
  4. package/dist/{assetCataloger-GX4B55VB.js → assetCataloger-JJQ4JW2P.js} +2 -2
  5. package/dist/{auth-EJVZW6C3.js → auth-RR3OIXLH.js} +1 -1
  6. package/dist/{autoUpdate-MBNEZ2U4.js → autoUpdate-KLDV2XWV.js} +2 -2
  7. package/dist/{backgroundChecks-DNW5NPTY.js → backgroundChecks-OVL3E2RK.js} +3 -3
  8. package/dist/backgroundChecksWorker.js +3 -3
  9. package/dist/{batchRender-T7S2CGJE.js → batchRender-2SAJGOHU.js} +3 -3
  10. package/dist/{beats-STXBGN6Z.js → beats-HTYS42CC.js} +10 -10
  11. package/dist/{benchmark-AC6IGEQP.js → benchmark-CAHP4GLB.js} +8 -8
  12. package/dist/{browser-FB5AK32T.js → browser-M7I67IGX.js} +3 -3
  13. package/dist/{bundleWithLocalizedFonts-HSCWGCFO.js → bundleWithLocalizedFonts-EKRXJBXU.js} +2 -2
  14. package/dist/{capture-VEIVUHWB.js → capture-P5SNZ6HL.js} +2 -2
  15. package/dist/{capture-I24MXH3Y.js → capture-YZQZ5LKM.js} +8 -8
  16. package/dist/{catalog-JRC4VTTI.js → catalog-LREZPRJS.js} +11 -11
  17. package/dist/{catch-up-NTCK7Z3G.js → catch-up-2MLRYAYP.js} +4 -4
  18. package/dist/{check-7M7W4LPN.js → check-BH6NUR22.js} +28 -28
  19. package/dist/{checkBrowser-2YRVCAYB.js → checkBrowser-BM6JBFST.js} +27 -27
  20. package/dist/{chunk-POKK6XXU.js → chunk-24GKVAEE.js} +9 -9
  21. package/dist/{chunk-A72OAGNB.js → chunk-2HWB4TCI.js} +1 -1
  22. package/dist/chunk-3WD4JNMU.js +3795 -0
  23. package/dist/{chunk-XOJDBRNF.js → chunk-4S4VUXW3.js} +1 -1
  24. package/dist/{chunk-B45OFFOQ.js → chunk-54TV77W5.js} +2 -2
  25. package/dist/{chunk-JBQJKC23.js → chunk-62RUQJ5J.js} +1 -1
  26. package/dist/{chunk-ZLL72U3I.js → chunk-6VKQ5JT3.js} +2 -2
  27. package/dist/{chunk-SEABQTBP.js → chunk-74JDPWQ3.js} +5 -5
  28. package/dist/{chunk-BAKPN2D2.js → chunk-AHBYQRGI.js} +1 -1
  29. package/dist/{chunk-3YUFN37G.js → chunk-ASEJ2FBO.js} +1 -1
  30. package/dist/{chunk-H7B6JSHI.js → chunk-AY2BONTF.js} +1 -1
  31. package/dist/{chunk-EGO6Z24R.js → chunk-BB3HJLHD.js} +3 -3
  32. package/dist/{chunk-Z5C4LEAD.js → chunk-C24LU5XD.js} +6 -6
  33. package/dist/{chunk-QHRPB2JQ.js → chunk-CNEYCO24.js} +3 -3
  34. package/dist/{chunk-6BSIQJPW.js → chunk-ELACLQPC.js} +1 -1
  35. package/dist/{chunk-DYWSCPCR.js → chunk-JN4EK6MC.js} +9 -9
  36. package/dist/{chunk-XVIYZU3D.js → chunk-K35E45SI.js} +1 -1
  37. package/dist/{chunk-4YVMMRHR.js → chunk-K4RIT6PX.js} +2 -2
  38. package/dist/{chunk-MOL32UKR.js → chunk-KMJLHHBF.js} +1 -1
  39. package/dist/{chunk-QTTDKWSM.js → chunk-KQESKXAC.js} +2 -2
  40. package/dist/{chunk-3HSWLZ6S.js → chunk-KQHJKJ3V.js} +1 -1
  41. package/dist/{chunk-5OKZLMQK.js → chunk-NT7EK6ET.js} +1 -1
  42. package/dist/{chunk-KPJMBC4K.js → chunk-O3EALI4M.js} +1 -1
  43. package/dist/{chunk-3BETQ4XI.js → chunk-OLENCLFE.js} +2 -2
  44. package/dist/{chunk-DDNS2674.js → chunk-PR7QQBSC.js} +1 -1
  45. package/dist/{chunk-FDL4HV44.js → chunk-Q2Y5OZCY.js} +2 -2
  46. package/dist/{chunk-P6HELLPU.js → chunk-QIJLIULK.js} +2 -2
  47. package/dist/{chunk-3PPO64IB.js → chunk-QX26JK43.js} +1 -1
  48. package/dist/{chunk-2IDHEEAN.js → chunk-RKBES4XP.js} +1 -1
  49. package/dist/{chunk-YCGU3UNU.js → chunk-S7E2I3HT.js} +1 -1
  50. package/dist/{chunk-LE7T4ML7.js → chunk-SP6XL3NP.js} +1 -1
  51. package/dist/{chunk-N53FLAMZ.js → chunk-TLGJRK6Q.js} +7 -7
  52. package/dist/{chunk-AFIATIKS.js → chunk-URYAKNQ2.js} +1 -1
  53. package/dist/{chunk-AL2YEVOT.js → chunk-UTBQSOEC.js} +1 -1
  54. package/dist/{chunk-JF5L5SQ6.js → chunk-VC7JBNPS.js} +72 -107
  55. package/dist/{chunk-ZVZSFDW3.js → chunk-VHJPGKUW.js} +2 -2
  56. package/dist/{chunk-3BYMCR4O.js → chunk-VXM4BH23.js} +23 -12
  57. package/dist/{chunk-55RZG5SQ.js → chunk-X2G54Y2V.js} +1 -1
  58. package/dist/{chunk-ZQXNL5DL.js → chunk-XIL7KT5Q.js} +2 -2
  59. package/dist/{chunk-6WD636E5.js → chunk-YQK445YQ.js} +2 -2
  60. package/dist/{chunk-BPUFVVSH.js → chunk-ZK3BQXHC.js} +1 -1
  61. package/dist/{clean-3RY3Y2GX.js → clean-K7GYTLQE.js} +11 -11
  62. package/dist/cli.js +52 -52
  63. package/dist/{cloud-MLPBFCVE.js → cloud-I3J5HTN7.js} +4 -4
  64. package/dist/{cloudrun-NQF5KFQI.js → cloudrun-MJQ363PB.js} +3 -3
  65. package/dist/{compare-6EZX2754.js → compare-LHW6NEFR.js} +22 -22
  66. package/dist/{compiler-ACCPOZMQ.js → compiler-NPD3MYMO.js} +2 -2
  67. package/dist/{component-F5PQHP6A.js → component-LTPK2D3K.js} +3 -3
  68. package/dist/{compositions-AUHWSI2H.js → compositions-QGEHXGIL.js} +9 -9
  69. package/dist/{delete-VUF4SHHJ.js → delete-ATNRBUDJ.js} +2 -2
  70. package/dist/{dist-GPDOV3IQ.js → dist-CUIR3GFX.js} +2 -2
  71. package/dist/{doctor-3XHCA5JM.js → doctor-6B76R5BJ.js} +7 -7
  72. package/dist/{events-FKOIB3R3.js → events-33GOPHSS.js} +3 -3
  73. package/dist/{events-TIU72LZM.js → events-BLABPRD5.js} +2 -2
  74. package/dist/{feedback-V6VATYBE.js → feedback-HLXEG7RT.js} +6 -6
  75. package/dist/{figma-YBJM2VGE.js → figma-T6W7H23L.js} +3 -3
  76. package/dist/fontLocalizeCli.js +7 -7
  77. package/dist/{get-3YVCGZBX.js → get-UDMLOTKJ.js} +2 -2
  78. package/dist/{gpuPolicy-ZOUG66M7.js → gpuPolicy-M2JZGGVW.js} +5 -5
  79. package/dist/{grade-compare-MYXIRKQI.js → grade-compare-P4CHFVBR.js} +22 -22
  80. package/dist/{help-WFZ2SUUR.js → help-4MW6L6YB.js} +1 -1
  81. package/dist/{history-HWPRJFR5.js → history-336VM6SH.js} +5 -5
  82. package/dist/hyperframe-runtime.js +62 -62
  83. package/dist/hyperframe.manifest.json +1 -1
  84. package/dist/hyperframe.runtime.iife.js +62 -62
  85. package/dist/hyperframes-player.global.js +1 -1
  86. package/dist/{info-WJDTQ4OZ.js → info-FPMIDMD5.js} +7 -7
  87. package/dist/{init-EXHDN7RO.js → init-IWM4PWLO.js} +20 -20
  88. package/dist/{inspect-EAOLZOMQ.js → inspect-IIG7756C.js} +23 -23
  89. package/dist/{installer-LZ4X5TZZ.js → installer-Q4MMZKLA.js} +4 -4
  90. package/dist/{keyframes-FSZYNEDN.js → keyframes-TWO4BXBA.js} +6 -6
  91. package/dist/{lambda-3GAKHMC3.js → lambda-2JB2QUK2.js} +4 -4
  92. package/dist/{layout-M2TQ2CIX.js → layout-TPKEKFQQ.js} +23 -23
  93. package/dist/{lint-7C5UPTNQ.js → lint-H3KL7KSX.js} +6 -6
  94. package/dist/{list-GU5KBZ73.js → list-LYPO4KRE.js} +2 -2
  95. package/dist/{login-ZL2NYBIZ.js → login-SQQWKWTD.js} +4 -4
  96. package/dist/{media-treatment-QC3TAHVU.js → media-treatment-KSRINVUA.js} +8 -8
  97. package/dist/{models-A54I4QR5.js → models-WUBF6GDB.js} +8 -8
  98. package/dist/{motionShot-ZXPK562F.js → motionShot-STKG4KYQ.js} +11 -11
  99. package/dist/{normalize-audio-CAP3DAE6.js → normalize-audio-CA47XZ4I.js} +4 -4
  100. package/dist/{open-GUSBNMDB.js → open-B5WYEM3Z.js} +4 -4
  101. package/dist/{parakeetRunner-GCCH72CO.js → parakeetRunner-JBK2JPEH.js} +7 -7
  102. package/dist/{pipeline-SCJ2MWYH.js → pipeline-FEAAD2RJ.js} +5 -5
  103. package/dist/{play-FP2QLMGM.js → play-2LC5XRM6.js} +16 -16
  104. package/dist/{present-H5SA4APW.js → present-XKYF3VGC.js} +12 -12
  105. package/dist/{preview-ATPVKA6K.js → preview-WDPZRHE5.js} +15 -15
  106. package/dist/{producer-VBYUC27R.js → producer-343ENLAM.js} +1 -1
  107. package/dist/{projectConfig-SBRMQZGG.js → projectConfig-YXKU3CTB.js} +6 -6
  108. package/dist/{publication-5BQICRZO.js → publication-ODXP3JI7.js} +2 -2
  109. package/dist/{publish-XDUZA3E3.js → publish-3OYXNY44.js} +7 -7
  110. package/dist/{remove-background-GA6F7JZW.js → remove-background-F6QTJIPZ.js} +6 -6
  111. package/dist/{render-XCYXFZTL.js → render-JKB6GZDB.js} +8 -8
  112. package/dist/{render-KUVZFNQD.js → render-QQ7NUREG.js} +18 -18
  113. package/dist/{render-PCFO45RK.js → render-SC77I7FT.js} +3 -3
  114. package/dist/{render-batch-7R2NRNVJ.js → render-batch-4F44JFAB.js} +3 -3
  115. package/dist/{renderCancellation-NIXEWRAO.js → renderCancellation-7OEBNE2L.js} +5 -5
  116. package/dist/{resolver-C4FPX72I.js → resolver-7MYXNEAX.js} +4 -4
  117. package/dist/{sherpa-IQY52XU6.js → sherpa-FOXB4XBN.js} +7 -7
  118. package/dist/{skills-JSSAEKUW.js → skills-GG756RCG.js} +5 -5
  119. package/dist/{skillsUpdateCheck-XE5E2K2F.js → skillsUpdateCheck-N2LDCNAS.js} +3 -3
  120. package/dist/{snapshot-QMQOE2DD.js → snapshot-2LDOY65W.js} +23 -23
  121. package/dist/{src-R55QLGWI.js → src-PTIV7IVV.js} +6 -6
  122. package/dist/{src-2GMPFYHL.js → src-VMTHSARJ.js} +6 -4
  123. package/dist/{staticProjectServer-YH2RHYKW.js → staticProjectServer-QBB6WUAY.js} +12 -12
  124. package/dist/studio/assets/{hyperframes-player-_eMxRXF_.js → hyperframes-player-BBBg-uvu.js} +1 -1
  125. package/dist/studio/assets/{index-bXzd7tvF.js → index-BJIpZeuk.js} +115 -115
  126. package/dist/studio/assets/{index-CEq9KmY2.js → index-BXJLeCqB.js} +1 -1
  127. package/dist/studio/assets/{index-6okhHdnH.js → index-DARhiE_i.js} +1 -1
  128. package/dist/studio/assets/{index-CVd4O6eH.css → index-DkQKsFxx.css} +1 -1
  129. package/dist/studio/index.html +2 -2
  130. package/dist/{studio-api-T2TS2CHL.js → studio-api-VPTZF2AW.js} +6 -6
  131. package/dist/{studioServer-Q4MT44LT.js → studioServer-VZKX2MG7.js} +33 -33
  132. package/dist/{telemetry-V5JYZDS4.js → telemetry-76XND6XK.js} +3 -3
  133. package/dist/{timeline-KTCTOKF5.js → timeline-UJLTA4AX.js} +12 -12
  134. package/dist/{tokens-ZHREZPK6.js → tokens-VMWANYJY.js} +2 -2
  135. package/dist/{transcribe-4QDEWCE6.js → transcribe-FD7A2SH3.js} +7 -7
  136. package/dist/{transcribe-CRAV4FU3.js → transcribe-JNOG667L.js} +6 -6
  137. package/dist/{updateCheck-E7RMSK3E.js → updateCheck-WI3HYM72.js} +2 -2
  138. package/dist/{upgrade-27PFTDCV.js → upgrade-52RIOKFX.js} +2 -2
  139. package/dist/{urlDownloader-EAF6PLUP.js → urlDownloader-352AY25I.js} +4 -4
  140. package/dist/{validate-OKNFDBMG.js → validate-MJVNR7YY.js} +17 -17
  141. package/dist/{video-IEVS4FIH.js → video-72VNEQEI.js} +5 -5
  142. package/package.json +1 -1
  143. package/dist/chunk-Z6FLHIDV.js +0 -3795
@@ -1,4 +1,4 @@
1
- var xe=Object.defineProperty;var Ie=(r,i,e)=>i in r?xe(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var l=(r,i,e)=>Ie(r,typeof i!="symbol"?i+"":i,e);import{S as Oe,r as Ne,a as fe,i as Fe,b as w,c as _e,p as Ve,d as Ue,e as He,f as We,s as ze,g as ge,F as ye}from"./index-bXzd7tvF.js";function $e(r){return r.hasRuntime||r.runtimeInjected?!1:!!(r.hasNestedCompositions||r.hasTimelines&&r.attempts>=5)}function x(r){return typeof r=="object"&&r!==null}function je(r){return x(r)&&typeof r.getDuration=="function"}function Be(r){return x(r)&&typeof r.duration=="function"&&typeof r.time=="function"&&typeof r.seek=="function"&&typeof r.play=="function"&&typeof r.pause=="function"}function qe(r){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(r))throw new Error(`Invalid HyperFrames runtime version: ${r}`);return`https://cdn.jsdelivr.net/npm/@hyperframes/core@${r}/dist/hyperframe.runtime.iife.js`}const W=typeof __HYPERFRAMES_RUNTIME_CDN_URL__=="string"?__HYPERFRAMES_RUNTIME_CDN_URL__:qe("0.0.0-dev");function $(r){if(r===null)return null;const i=Number.parseInt(r,10);return Number.isFinite(i)&&i>0?i:null}function Ge(r){const i=(r==null?void 0:r.querySelector("[data-composition-id][data-width][data-height]"))??(r==null?void 0:r.querySelector("[data-width][data-height]"));if(!i)return null;const e=$(i.getAttribute("data-width")),t=$(i.getAttribute("data-height"));return e!==null&&t!==null?{width:e,height:t}:null}function Ye(r){return Array.isArray(r)?r.find(i=>typeof i=="string"&&i.trim()!==""&&i!=="[object Event]")??null:null}class Xe{constructor(i,e){l(this,"_interval",null);l(this,"_runtimeInjected",!1);l(this,"_runtimeScript",null);l(this,"_failure",null);this._iframe=i,this._callbacks=e}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 i=0;this._interval=setInterval(()=>{i++;let e=null;try{e=this._poll(i)}catch(t){t instanceof DOMException&&t.name==="SecurityError"||(e={kind:"error",message:t instanceof Error?t.message:String(t)})}if(e){this.stop(),e.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(e.message)):this._callbacks.onReady(e.result);return}i>=40&&(this.stop(),this._failure={document:this._iframe.contentDocument},this._callbacks.onError("Composition timeline not found after 8s"))},200)}_poll(i){const e=this._iframe.contentWindow;if(!e)return null;const t=Ye(Reflect.get(e,Oe));if(t!==null)return{kind:"error",message:t};const s=this._iframe.contentDocument,n=Reflect.get(e,"__timelines"),o=this.hasRuntimeBridge(e);if($e({hasRuntime:o,hasTimelines:x(n)&&Object.keys(n).length>0,hasNestedCompositions:!!(s!=null&&s.querySelector("[data-composition-src]")),runtimeInjected:this._runtimeInjected,attempts:i}))return this._injectRuntime(),null;if(this._runtimeInjected&&!o)return null;const a=this._resolveReadyResult(e,s);return a?{kind:"ready",result:a}:null}_resolveReadyResult(i,e){var n;const t=this._resolvePlaybackDurationAdapter(i)??{kind:"document",getDuration:()=>0};let s=t.getDuration();if(!Number.isFinite(s)||s<=0){if(t.kind==="direct-timeline")return null;s=e?((n=Ne(e))==null?void 0:n.durationSeconds)??0:0}return s<=0?null:{duration:s,adapter:{...t,getDuration:()=>s},compositionSize:Ge(e)}}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{const i=this._iframe.contentWindow;return i?this._resolveDirectTimelineAdapterFromWindow(i):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(i){return this._resolveDirectTimelineAdapterFromWindow(i)}hasRuntimeBridge(i){return x(Reflect.get(i,"__player"))}_injectRuntime(){var i,e,t,s;this._runtimeInjected=!0;try{const n=this._iframe.contentDocument;if(!n)return;const o=n.createElement("script");o.src=((e=(i=this._callbacks).resolveRuntimeUrl)==null?void 0:e.call(i))??W,this._runtimeScript=o,o.onerror=()=>{this._runtimeScript!==o||this._iframe.contentDocument!==n||(this.stop(),this._failure={document:n},this._callbacks.onError("HyperFrames runtime failed to load from "+o.src))},(n.head||n.documentElement).appendChild(o),(s=(t=this._callbacks).onRuntimeInjected)==null||s.call(t)}catch{}}_resolveDirectTimelineAdapterFromWindow(i){var a,c;if(this.hasRuntimeBridge(i))return null;const e=Reflect.get(i,"__timelines");if(!x(e))return null;const t=Object.keys(e);if(t.length===0)return null;const s=(c=(a=this._iframe.contentDocument)==null?void 0:a.querySelector("[data-composition-id]"))==null?void 0:c.getAttribute("data-composition-id"),n=s&&s in e?s:t[t.length-1],o=e[n];return Be(o)?o:null}_resolvePlaybackDurationAdapter(i){const e=Reflect.get(i,"__player");if(je(e))return{kind:"runtime",getDuration:()=>e.getDuration()};const t=this._resolveDirectTimelineAdapterFromWindow(i);return t?{kind:"direct-timeline",timeline:t,getDuration:()=>t.duration()}:null}}const Ze=`
1
+ var xe=Object.defineProperty;var Ie=(r,i,e)=>i in r?xe(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var l=(r,i,e)=>Ie(r,typeof i!="symbol"?i+"":i,e);import{S as Oe,r as Ne,a as fe,i as Fe,b as w,c as _e,p as Ve,d as Ue,e as He,f as We,s as ze,g as ge,F as ye}from"./index-BJIpZeuk.js";function $e(r){return r.hasRuntime||r.runtimeInjected?!1:!!(r.hasNestedCompositions||r.hasTimelines&&r.attempts>=5)}function x(r){return typeof r=="object"&&r!==null}function je(r){return x(r)&&typeof r.getDuration=="function"}function Be(r){return x(r)&&typeof r.duration=="function"&&typeof r.time=="function"&&typeof r.seek=="function"&&typeof r.play=="function"&&typeof r.pause=="function"}function qe(r){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(r))throw new Error(`Invalid HyperFrames runtime version: ${r}`);return`https://cdn.jsdelivr.net/npm/@hyperframes/core@${r}/dist/hyperframe.runtime.iife.js`}const W=typeof __HYPERFRAMES_RUNTIME_CDN_URL__=="string"?__HYPERFRAMES_RUNTIME_CDN_URL__:qe("0.0.0-dev");function $(r){if(r===null)return null;const i=Number.parseInt(r,10);return Number.isFinite(i)&&i>0?i:null}function Ge(r){const i=(r==null?void 0:r.querySelector("[data-composition-id][data-width][data-height]"))??(r==null?void 0:r.querySelector("[data-width][data-height]"));if(!i)return null;const e=$(i.getAttribute("data-width")),t=$(i.getAttribute("data-height"));return e!==null&&t!==null?{width:e,height:t}:null}function Ye(r){return Array.isArray(r)?r.find(i=>typeof i=="string"&&i.trim()!==""&&i!=="[object Event]")??null:null}class Xe{constructor(i,e){l(this,"_interval",null);l(this,"_runtimeInjected",!1);l(this,"_runtimeScript",null);l(this,"_failure",null);this._iframe=i,this._callbacks=e}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 i=0;this._interval=setInterval(()=>{i++;let e=null;try{e=this._poll(i)}catch(t){t instanceof DOMException&&t.name==="SecurityError"||(e={kind:"error",message:t instanceof Error?t.message:String(t)})}if(e){this.stop(),e.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(e.message)):this._callbacks.onReady(e.result);return}i>=40&&(this.stop(),this._failure={document:this._iframe.contentDocument},this._callbacks.onError("Composition timeline not found after 8s"))},200)}_poll(i){const e=this._iframe.contentWindow;if(!e)return null;const t=Ye(Reflect.get(e,Oe));if(t!==null)return{kind:"error",message:t};const s=this._iframe.contentDocument,n=Reflect.get(e,"__timelines"),o=this.hasRuntimeBridge(e);if($e({hasRuntime:o,hasTimelines:x(n)&&Object.keys(n).length>0,hasNestedCompositions:!!(s!=null&&s.querySelector("[data-composition-src]")),runtimeInjected:this._runtimeInjected,attempts:i}))return this._injectRuntime(),null;if(this._runtimeInjected&&!o)return null;const a=this._resolveReadyResult(e,s);return a?{kind:"ready",result:a}:null}_resolveReadyResult(i,e){var n;const t=this._resolvePlaybackDurationAdapter(i)??{kind:"document",getDuration:()=>0};let s=t.getDuration();if(!Number.isFinite(s)||s<=0){if(t.kind==="direct-timeline")return null;s=e?((n=Ne(e))==null?void 0:n.durationSeconds)??0:0}return s<=0?null:{duration:s,adapter:{...t,getDuration:()=>s},compositionSize:Ge(e)}}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{const i=this._iframe.contentWindow;return i?this._resolveDirectTimelineAdapterFromWindow(i):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(i){return this._resolveDirectTimelineAdapterFromWindow(i)}hasRuntimeBridge(i){return x(Reflect.get(i,"__player"))}_injectRuntime(){var i,e,t,s;this._runtimeInjected=!0;try{const n=this._iframe.contentDocument;if(!n)return;const o=n.createElement("script");o.src=((e=(i=this._callbacks).resolveRuntimeUrl)==null?void 0:e.call(i))??W,this._runtimeScript=o,o.onerror=()=>{this._runtimeScript!==o||this._iframe.contentDocument!==n||(this.stop(),this._failure={document:n},this._callbacks.onError("HyperFrames runtime failed to load from "+o.src))},(n.head||n.documentElement).appendChild(o),(s=(t=this._callbacks).onRuntimeInjected)==null||s.call(t)}catch{}}_resolveDirectTimelineAdapterFromWindow(i){var a,c;if(this.hasRuntimeBridge(i))return null;const e=Reflect.get(i,"__timelines");if(!x(e))return null;const t=Object.keys(e);if(t.length===0)return null;const s=(c=(a=this._iframe.contentDocument)==null?void 0:a.querySelector("[data-composition-id]"))==null?void 0:c.getAttribute("data-composition-id"),n=s&&s in e?s:t[t.length-1],o=e[n];return Be(o)?o:null}_resolvePlaybackDurationAdapter(i){const e=Reflect.get(i,"__player");if(je(e))return{kind:"runtime",getDuration:()=>e.getDuration()};const t=this._resolveDirectTimelineAdapterFromWindow(i);return t?{kind:"direct-timeline",timeline:t,getDuration:()=>t.duration()}:null}}const Ze=`
2
2
  :host {
3
3
  display: block;
4
4
  position: relative;