hyperframes 0.8.149 → 0.8.150

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 (147) hide show
  1. package/dist/{add-MG53577L.js → add-3ZIFEN2U.js} +12 -12
  2. package/dist/{animatedGifPrep-HV4ZFVPV.js → animatedGifPrep-77LPFLKJ.js} +6 -6
  3. package/dist/api.js +12 -12
  4. package/dist/{asset-3GIBXLLL.js → asset-EYSZEHM6.js} +2 -2
  5. package/dist/{assetCataloger-JJQ4JW2P.js → assetCataloger-KX3HD7ZI.js} +3 -3
  6. package/dist/{auth-XQMT727H.js → auth-L6IWNRXY.js} +1 -1
  7. package/dist/{autoUpdate-CREZJGMU.js → autoUpdate-2O3HZB65.js} +2 -2
  8. package/dist/{backgroundChecks-K3S5QKR3.js → backgroundChecks-BH2LMJYE.js} +3 -3
  9. package/dist/backgroundChecksWorker.js +3 -3
  10. package/dist/{batchRender-42AKNX73.js → batchRender-ZBKAYLWU.js} +4 -4
  11. package/dist/{beats-Y7IKETUS.js → beats-IVLF2566.js} +11 -11
  12. package/dist/{benchmark-22SAXSO5.js → benchmark-SYZFW2G7.js} +9 -9
  13. package/dist/{browser-ABNISCC3.js → browser-OSW3L25S.js} +3 -3
  14. package/dist/{bundleWithLocalizedFonts-OE5ZI4JE.js → bundleWithLocalizedFonts-I4CWOXLK.js} +2 -2
  15. package/dist/{capture-DBNHO4WJ.js → capture-AZOQ57TM.js} +2 -2
  16. package/dist/{capture-HQG5W42I.js → capture-V5ICGSVJ.js} +9 -9
  17. package/dist/{catalog-KICZFIDX.js → catalog-VBJOA2Y5.js} +12 -12
  18. package/dist/{catch-up-ZCQUCI45.js → catch-up-TKSEDNJK.js} +4 -4
  19. package/dist/{check-TGXIICEF.js → check-3HFISKDB.js} +30 -30
  20. package/dist/{checkBrowser-3N23I56J.js → checkBrowser-MXBDNZJB.js} +29 -29
  21. package/dist/{chunk-VX4AL2FQ.js → chunk-2KAL22B5.js} +1 -1
  22. package/dist/{chunk-Y475GD4L.js → chunk-3UAIVF4L.js} +1 -1
  23. package/dist/{chunk-KQHJKJ3V.js → chunk-423DJVX2.js} +1 -1
  24. package/dist/{chunk-P7NTODQE.js → chunk-4WFNTWKZ.js} +1 -1
  25. package/dist/{chunk-VC7JBNPS.js → chunk-5NAYNDBT.js} +477 -68
  26. package/dist/{chunk-LACFOFWX.js → chunk-6KWA3XPS.js} +1 -1
  27. package/dist/{chunk-AY2BONTF.js → chunk-6NPFJ255.js} +1 -1
  28. package/dist/{chunk-ZK3BQXHC.js → chunk-6QB7F2II.js} +1 -1
  29. package/dist/{chunk-CT6ZQRLD.js → chunk-6SFPQ2RZ.js} +2 -2
  30. package/dist/{chunk-MI6U3OIN.js → chunk-73RBX2E7.js} +2 -2
  31. package/dist/{chunk-LCILS4AF.js → chunk-7E4VHPKJ.js} +4 -4
  32. package/dist/{chunk-RMIFSBRV.js → chunk-7JTFPUMA.js} +1 -1
  33. package/dist/{chunk-BNYRD7PQ.js → chunk-A6ZO4BX7.js} +2 -2
  34. package/dist/{chunk-GESJSXFH.js → chunk-AFRXL75S.js} +1 -1
  35. package/dist/{chunk-QIJLIULK.js → chunk-AKYQGZLU.js} +2 -2
  36. package/dist/{chunk-4S4VUXW3.js → chunk-AXPNVC3N.js} +1 -1
  37. package/dist/{chunk-PR7QQBSC.js → chunk-BLRJKBKP.js} +1 -1
  38. package/dist/chunk-CEND6BLF.js +3795 -0
  39. package/dist/{chunk-LTJDUBSQ.js → chunk-DOVJRUFM.js} +1 -1
  40. package/dist/{chunk-KMJLHHBF.js → chunk-EL5QVJEG.js} +1 -1
  41. package/dist/{chunk-CNPJHUOX.js → chunk-F2RLIE7P.js} +9 -9
  42. package/dist/{chunk-VGCEMOQA.js → chunk-FN6KAS7A.js} +7 -7
  43. package/dist/{chunk-U7SASZC5.js → chunk-FPAT5HTI.js} +9 -9
  44. package/dist/{chunk-OMBSUO4T.js → chunk-I6DATIHC.js} +2 -2
  45. package/dist/{chunk-CYFFYK2F.js → chunk-LW5VFBSY.js} +1 -1
  46. package/dist/{chunk-Q2Y5OZCY.js → chunk-M6UDJ2E7.js} +2 -2
  47. package/dist/{chunk-SFUBSJFP.js → chunk-NFQY7EIC.js} +1 -1
  48. package/dist/{chunk-MXB6CWVH.js → chunk-O4DC5CHF.js} +1 -1
  49. package/dist/{chunk-K35E45SI.js → chunk-OQ7XMM3S.js} +1 -1
  50. package/dist/{chunk-AHBYQRGI.js → chunk-PCWOSS7G.js} +1 -1
  51. package/dist/{chunk-K4RIT6PX.js → chunk-R5A7454P.js} +2 -2
  52. package/dist/{chunk-VXM4BH23.js → chunk-RW7NLGPD.js} +121 -47
  53. package/dist/{chunk-K44HCHZN.js → chunk-S5F26DUL.js} +3 -3
  54. package/dist/{chunk-L274XRWA.js → chunk-TZPZE5PS.js} +2 -2
  55. package/dist/{chunk-TPIG7ZBX.js → chunk-UAIUVPZE.js} +5 -5
  56. package/dist/{chunk-YDRX42P3.js → chunk-UJB7356Y.js} +2 -2
  57. package/dist/{chunk-YA62XGXS.js → chunk-UJKQWGFF.js} +1 -1
  58. package/dist/{chunk-XHBX7QN6.js → chunk-UQYQ7TBA.js} +1 -1
  59. package/dist/{chunk-NKM53WMI.js → chunk-UVVI2NJQ.js} +7 -7
  60. package/dist/{chunk-ZKDKFJCK.js → chunk-VQ7YIURZ.js} +3 -3
  61. package/dist/{chunk-62RUQJ5J.js → chunk-WLIUULZQ.js} +20 -8
  62. package/dist/{chunk-KUTT3JXL.js → chunk-XANZ4R4P.js} +1 -1
  63. package/dist/{chunk-SP6XL3NP.js → chunk-XQMEGSHG.js} +1 -1
  64. package/dist/{chunk-ZFN6GQU4.js → chunk-XXPYZBZ3.js} +1 -1
  65. package/dist/{chunk-WX7VCRM7.js → chunk-Z6WZDGCS.js} +2 -2
  66. package/dist/{chunk-2HWB4TCI.js → chunk-ZNHAJCEA.js} +1 -1
  67. package/dist/{clean-6QP7VAV4.js → clean-7HU7S7DT.js} +13 -13
  68. package/dist/cli.js +52 -52
  69. package/dist/{cloud-5TME5ROM.js → cloud-HAXHBO25.js} +4 -4
  70. package/dist/{cloudrun-F5VVCVF5.js → cloudrun-A3PIJ6DX.js} +4 -4
  71. package/dist/{compare-XPY2EXX6.js → compare-6IPSQMSM.js} +24 -24
  72. package/dist/{compiler-NPD3MYMO.js → compiler-UQP2VXN6.js} +3 -3
  73. package/dist/{component-OPVL3PUX.js → component-FF3AU24M.js} +3 -3
  74. package/dist/{compositions-WSEOI454.js → compositions-JSH4MZXB.js} +10 -10
  75. package/dist/{delete-SLMH57VH.js → delete-G763SW64.js} +2 -2
  76. package/dist/{dist-CUIR3GFX.js → dist-Z7Q3JS7K.js} +3 -3
  77. package/dist/{doctor-QZW3EKIH.js → doctor-WZB6WMBY.js} +8 -8
  78. package/dist/{events-FIFWFRGC.js → events-MUWJJCC7.js} +2 -2
  79. package/dist/{events-6C3ZG7LS.js → events-T4YFQC5G.js} +3 -3
  80. package/dist/{feedback-VKXM7YJ5.js → feedback-AUTHQNN2.js} +7 -7
  81. package/dist/{figma-3UYNADNA.js → figma-NBG6WBI7.js} +3 -3
  82. package/dist/fontLocalizeCli.js +8 -8
  83. package/dist/{get-VH7VMRVX.js → get-OXBJLKLV.js} +2 -2
  84. package/dist/{gpuPolicy-M2JZGGVW.js → gpuPolicy-HBCCEQUS.js} +6 -6
  85. package/dist/{grade-compare-OSC2YQWN.js → grade-compare-2LX4FDH7.js} +24 -24
  86. package/dist/{help-DCBFEZPT.js → help-LJI46EDO.js} +1 -1
  87. package/dist/{history-XYJMQE26.js → history-MFKAQEHU.js} +5 -5
  88. package/dist/hyperframe-runtime.js +65 -58
  89. package/dist/hyperframe.manifest.json +1 -1
  90. package/dist/hyperframe.runtime.iife.js +65 -58
  91. package/dist/hyperframes-player.global.js +1 -1
  92. package/dist/{info-YEHGENAH.js → info-D6Y5O2QE.js} +8 -8
  93. package/dist/{init-64SML7PY.js → init-47NZPEBI.js} +21 -21
  94. package/dist/{inspect-GFOQKRJI.js → inspect-U5UXJK5D.js} +25 -25
  95. package/dist/{installer-Q4MMZKLA.js → installer-AW7VFVTQ.js} +5 -5
  96. package/dist/{keyframes-ORYFWKBZ.js → keyframes-5G334NWB.js} +6 -6
  97. package/dist/{lambda-DRMOJGTC.js → lambda-GASGXN3A.js} +5 -5
  98. package/dist/{layout-ZEQBE6UQ.js → layout-OXAQFLJS.js} +25 -25
  99. package/dist/{lint-67KGFY63.js → lint-F36QFSNF.js} +6 -6
  100. package/dist/{list-T6OU5ARJ.js → list-TR6QCI53.js} +2 -2
  101. package/dist/{login-2PXIGDP7.js → login-6LA2RWTC.js} +4 -4
  102. package/dist/{media-treatment-NAAHID6M.js → media-treatment-BOHYDWVY.js} +9 -9
  103. package/dist/{models-P6XB6RWK.js → models-6GW5Q3IW.js} +9 -9
  104. package/dist/{motionShot-7MHRIV6V.js → motionShot-O7AOMPUN.js} +12 -12
  105. package/dist/{normalize-audio-LWNFYR2F.js → normalize-audio-UO5B4O76.js} +6 -6
  106. package/dist/{open-DAP5C7UD.js → open-JV2EHVKM.js} +4 -4
  107. package/dist/{parakeetRunner-3ZVFPOD4.js → parakeetRunner-23DZUF6G.js} +9 -9
  108. package/dist/{pipeline-V4YJCPUX.js → pipeline-KTICSIK7.js} +6 -6
  109. package/dist/{play-UDCESJO3.js → play-CMUYPXBC.js} +18 -18
  110. package/dist/{present-DXTHBH3F.js → present-ZDT5FM2H.js} +14 -14
  111. package/dist/{preview-YHXKRXKB.js → preview-ASHLGKDD.js} +16 -16
  112. package/dist/{producer-343ENLAM.js → producer-FFH2KUAZ.js} +1 -1
  113. package/dist/{projectConfig-YXKU3CTB.js → projectConfig-FHIAOPKW.js} +7 -7
  114. package/dist/{publication-ODXP3JI7.js → publication-WO5ZXURT.js} +3 -3
  115. package/dist/{publish-UEFBFGV3.js → publish-QWO2W7FB.js} +8 -8
  116. package/dist/{remove-background-FMV6IDOH.js → remove-background-BO5MQR25.js} +7 -7
  117. package/dist/{render-SYC4RPGT.js → render-HS3YOLSD.js} +4 -4
  118. package/dist/{render-ZTXNPRGF.js → render-SDHFXL3Y.js} +19 -19
  119. package/dist/{render-N7QGX6RJ.js → render-XTJKGT3G.js} +9 -9
  120. package/dist/{render-batch-SZRPCRUJ.js → render-batch-J64AJHQY.js} +4 -4
  121. package/dist/{resolver-7MYXNEAX.js → resolver-IHNWMDJA.js} +5 -5
  122. package/dist/{sherpa-M4Z2Q5Y2.js → sherpa-FXBBYMDR.js} +8 -8
  123. package/dist/{skills-NEHNSHZK.js → skills-ALLSN7TB.js} +5 -5
  124. package/dist/{skillsUpdateCheck-O77QR72A.js → skillsUpdateCheck-EIT5NWM6.js} +3 -3
  125. package/dist/{snapshot-GDVXFBVY.js → snapshot-Y3I76OIZ.js} +25 -25
  126. package/dist/{src-VMTHSARJ.js → src-7V6LBC56.js} +7 -5
  127. package/dist/{src-PTIV7IVV.js → src-S5IZVJUX.js} +7 -7
  128. package/dist/{staticProjectServer-3D2NXQ6W.js → staticProjectServer-QLWWGHZE.js} +14 -14
  129. package/dist/studio/assets/{hyperframes-player-C-2YwYre.js → hyperframes-player-kup62bDR.js} +1 -1
  130. package/dist/studio/assets/{index-BybGk67U.js → index-B8BBYY8L.js} +1 -1
  131. package/dist/studio/assets/{index-ByJU5J6n.js → index-CS_m0TkX.js} +131 -131
  132. package/dist/studio/assets/{index-Cfs2r3fz.js → index-DQ5jGodF.js} +1 -1
  133. package/dist/studio/index.html +1 -1
  134. package/dist/{studio-api-XIBDLRHB.js → studio-api-UBFLZ3DA.js} +8 -8
  135. package/dist/{studioServer-QIQK47UN.js → studioServer-REOVCIFP.js} +35 -35
  136. package/dist/{telemetry-565KDZUW.js → telemetry-C3GDIXHO.js} +3 -3
  137. package/dist/{timeline-E6XB7I6W.js → timeline-H42EGLMT.js} +14 -14
  138. package/dist/{tokens-3ZAJENSE.js → tokens-2K7ISTKV.js} +2 -2
  139. package/dist/{transcribe-WODP3T77.js → transcribe-DVM7UFZZ.js} +13 -13
  140. package/dist/{transcribe-XWQQCCBG.js → transcribe-NUPASAUP.js} +7 -7
  141. package/dist/{updateCheck-QPYU4GRL.js → updateCheck-3RWFSEZD.js} +2 -2
  142. package/dist/{upgrade-2FJ5ZEN6.js → upgrade-YKKL36N7.js} +2 -2
  143. package/dist/{urlDownloader-352AY25I.js → urlDownloader-6JNJYLPN.js} +5 -5
  144. package/dist/{validate-SP2VGNEI.js → validate-Z7KQT7GO.js} +19 -19
  145. package/dist/{video-RVNPFEA6.js → video-EXL2JDSL.js} +6 -6
  146. package/package.json +1 -1
  147. package/dist/chunk-3WD4JNMU.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-ByJU5J6n.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-CS_m0TkX.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;
@@ -1 +1 @@
1
- import{h as P}from"./index-ByJU5J6n.js";function j(c,d){for(var s=0;s<d.length;s++){const a=d[s];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var v={},w;function k(){if(w)return v;w=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=d;var c=window.OfflineAudioContext||window.webkitOfflineAudioContext;function d(e){var r=a(e);return r.start(0),[i,y,O(e.sampleRate),s].reduce(function(t,o){return o(t)},r.buffer.getChannelData(0))}function s(e){return e.sort(function(r,t){return t.count-r.count}).splice(0,5)[0].tempo}function a(e){var r=e.length,t=e.numberOfChannels,o=e.sampleRate,n=new c(t,r,o),u=n.createBufferSource();u.buffer=e;var f=n.createBiquadFilter();return f.type="lowpass",u.connect(f),f.connect(n.destination),u}function i(e){for(var r=[],t=.9,o=.3,n=15;r.length<n&&t>=o;)r=l(e,t),t-=.05;if(r.length<n)throw new Error("Could not find enough samples for a reliable detection.");return r}function l(e,r){for(var t=[],o=0,n=e.length;o<n;o+=1)e[o]>r&&(t.push(o),o+=1e4);return t}function y(e){var r=[];return e.forEach(function(t,o){for(var n=function(x){var h=e[o+x]-t,_=r.some(function(g){if(g.interval===h)return g.count+=1});_||r.push({interval:h,count:1})},u=0;u<10;u+=1)n(u)}),r}function O(e){return function(r){var t=[];return r.forEach(function(o){if(o.interval!==0){for(var n=60/(o.interval/e);n<90;)n*=2;for(;n>180;)n/=2;n=Math.round(n);var u=t.some(function(f){if(f.tempo===n)return f.count+=o.count});u||t.push({tempo:n,count:o.count})}}),t}}return v}var p,b;function q(){return b||(b=1,p=k().default),p}var m=q();const A=P(m),D=j({__proto__:null,default:A},[m]);export{D as i};
1
+ import{h as P}from"./index-CS_m0TkX.js";function j(c,d){for(var s=0;s<d.length;s++){const a=d[s];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var v={},w;function k(){if(w)return v;w=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=d;var c=window.OfflineAudioContext||window.webkitOfflineAudioContext;function d(e){var r=a(e);return r.start(0),[i,y,O(e.sampleRate),s].reduce(function(t,o){return o(t)},r.buffer.getChannelData(0))}function s(e){return e.sort(function(r,t){return t.count-r.count}).splice(0,5)[0].tempo}function a(e){var r=e.length,t=e.numberOfChannels,o=e.sampleRate,n=new c(t,r,o),u=n.createBufferSource();u.buffer=e;var f=n.createBiquadFilter();return f.type="lowpass",u.connect(f),f.connect(n.destination),u}function i(e){for(var r=[],t=.9,o=.3,n=15;r.length<n&&t>=o;)r=l(e,t),t-=.05;if(r.length<n)throw new Error("Could not find enough samples for a reliable detection.");return r}function l(e,r){for(var t=[],o=0,n=e.length;o<n;o+=1)e[o]>r&&(t.push(o),o+=1e4);return t}function y(e){var r=[];return e.forEach(function(t,o){for(var n=function(x){var h=e[o+x]-t,_=r.some(function(g){if(g.interval===h)return g.count+=1});_||r.push({interval:h,count:1})},u=0;u<10;u+=1)n(u)}),r}function O(e){return function(r){var t=[];return r.forEach(function(o){if(o.interval!==0){for(var n=60/(o.interval/e);n<90;)n*=2;for(;n>180;)n/=2;n=Math.round(n);var u=t.some(function(f){if(f.tempo===n)return f.count+=o.count});u||t.push({tempo:n,count:o.count})}}),t}}return v}var p,b;function q(){return b||(b=1,p=k().default),p}var m=q();const A=P(m),D=j({__proto__:null,default:A},[m]);export{D as i};