1import{_ as u}from"./PPVm8Dsz.js";const c=8e6;async function f({videoEl:e,src:r,onUnsupported:n,onRecovered:s,preferHighQualityStart:t=!1},a,o=()=>!1){const i=(await u(()=>import("./BYZtEKzh.js"),[],import.meta.url)).default;if(o())return{destroy:()=>{}};if(!i.isSupported())return n?.(),{destroy:()=>{}};a&&(e.removeAttribute("src"),e.load());const d=new i(t?{testBandwidth:!1,abrEwmaDefaultEstimate:c}:{});return d.loadSource(r),d.attachMedia(e),a&&s?.(),{destroy:()=>{d.destroy()}}}async function y(e){const{videoEl:r,src:n}=e;if(!r.canPlayType("application/vnd.apple.mpegurl"))return f(e,!1);let s=!1,t=!1,a=null;function o(){s||t||r.error?.code===MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED&&(s=!0,r.removeEventListener("error",o),f({...e,onRecovered:()=>{t||e.onRecovered?.()}},!0,()=>t).then(l=>{t?l.destroy():a=l}))}return r.addEventListener("error",o),r.src=n,{destroy:()=>{t=!0,r.removeEventListener("error",o),a&&a.destroy()}}}export{y as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.