1var O=Object.defineProperty;var E=i=>{throw TypeError(i)};var $=(i,e,t)=>e in i?O(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var k=(i,e,t)=>$(i,typeof e!="symbol"?e+"":e,t),v=(i,e,t)=>e.has(i)||E("Cannot "+t);var n=(i,e,t)=>(v(i,e,"read from private field"),t?t.call(i):e.get(i)),r=(i,e,t)=>e.has(i)?E("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),c=(i,e,t,s)=>(v(i,e,"write to private field"),s?s.call(i,t):e.set(i,t),t),p=(i,e,t)=>(v(i,e,"access private method"),t);import{eX as N,fe as D,ff as V,fg as U,eZ as A,f7 as q,f9 as F,f1 as X,fh as Y,fi as T}from"./CJkoLYO1.js";import{H as Z,a as j}from"./BPPL5pUp.js";import"./CBnxXdQO.js";try{let i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new i.Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="0de4b25b-9972-48ca-b26d-95731fc370f1",i._sentryDebugIdIdentifier="sentry-dbid-0de4b25b-9972-48ca-b26d-95731fc370f1")}catch{}var f,g,y,C,H;class z{constructor(e,t){r(this,y);r(this,f);r(this,g);c(this,f,e),c(this,g,t),e.textTracks.onaddtrack=p(this,y,C).bind(this),A(p(this,y,H).bind(this))}}f=new WeakMap,g=new WeakMap,y=new WeakSet,C=function(e){const t=e.track;if(!t||B(n(this,f),t))return;const s=new Y({id:t.id,kind:t.kind,label:t.label??"",language:t.language,type:"vtt"});s[T.native]={track:t},s[T.readyState]=2,s[T.nativeHLS]=!0;let a=0;const M=R=>{if(t.cues)for(let I=a;I<t.cues.length;I++)s.addCue(t.cues[I],R),a++};M(e),t.oncuechange=M,n(this,g).textTracks.add(s,e),s.setMode(t.mode,e)},H=function(){var e;n(this,f).textTracks.onaddtrack=null;for(const t of n(this,g).textTracks){const s=(e=t[T.native])==null?void 0:e.track;s!=null&&s.oncuechange&&(s.oncuechange=null)}};function B(i,e){return Array.from(i.children).find(t=>t.track===e)}var h,x,b,S,L,m;class G{constructor(e,t){r(this,b);r(this,h);r(this,x);r(this,m,(e,t)=>{n(this,x).notify("picture-in-picture-change",e,t)});c(this,h,e),c(this,x,t),new X(e).add("enterpictureinpicture",p(this,b,S).bind(this)).add("leavepictureinpicture",p(this,b,L).bind(this))}get active(){return document.pictureInPictureElement===n(this,h)}get supported(){return V(n(this,h))}async enter(){return n(this,h).requestPictureInPicture()}exit(){return document.exitPictureInPicture()}}h=new WeakMap,x=new WeakMap,b=new WeakSet,S=function(e){n(this,m).call(this,!0,e)},L=function(e){n(this,m).call(this,!1,e)},m=new WeakMap;var l,P,o,w,_;class J{constructor(e,t){r(this,w);r(this,l);r(this,P);r(this,o,"inline");c(this,l,e),c(this,P,t),q(e,"webkitpresentationmodechanged",p(this,w,_).bind(this))}get mode(){return n(this,o)}get supported(){return D(n(this,l))}async setPresentationMode(e){n(this,o)!==e&&n(this,l).webkitSetPresentationMode(e)}}l=new WeakMap,P=new WeakMap,o=new WeakMap,w=new WeakSet,_=function(e){var s;const t=n(this,o);c(this,o,n(this,l).webkitPresentationMode),(s=n(this,P).player)==null||s.dispatch(new F("video-presentation-change",{detail:n(this,o),trigger:e})),["fullscreen","picture-in-picture"].forEach(a=>{(n(this,o)===a||t===a)&&n(this,P).notify(`${a}-change`,n(this,o)===a,e)})};var d;class K{constructor(e){r(this,d);c(this,d,e)}get active(){return n(this,d).mode==="fullscreen"}get supported(){return n(this,d).supported}async enter(){n(this,d).setPresentationMode("fullscreen")}async exit(){n(this,d).setPresentationMode("inline")}}d=new WeakMap;var u;class Q{constructor(e){r(this,u);c(this,u,e)}get active(){return n(this,u).mode==="picture-in-picture"}get supported(){return n(this,u).supported}async enter(){n(this,u).setPresentationMode("picture-in-picture")}async exit(){n(this,u).setPresentationMode("inline")}}u=new WeakMap;class ne extends Z{constructor(t,s){super(t,s);k(this,"$$PROVIDER_TYPE","VIDEO");k(this,"airPlay");k(this,"fullscreen");k(this,"pictureInPicture");N(()=>{if(this.airPlay=new j(t,s),D(t)){const a=new J(t,s);this.fullscreen=new K(a),this.pictureInPicture=new Q(a)}else V(t)&&(this.pictureInPicture=new G(t,s))},this.scope)}get type(){return"video"}setup(){super.setup(),U(this.video)&&new z(this.video,this.ctx),this.ctx.textRenderers.attachVideo(this.video),A(()=>{this.ctx.textRenderers.attachVideo(null)}),this.type==="video"&&this.ctx.notify("provider-setup",this)}get video(){return this.media}}export{ne as VideoProvider};
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.