1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="96cc82e9-2bd1-4d1c-8073-a017a0100d12",e._sentryDebugIdIdentifier="sentry-dbid-96cc82e9-2bd1-4d1c-8073-a017a0100d12")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2759],{12759:(e,t,r)=>{r.r(t),r.d(t,{GoogleCastLoader:()=>s});var a=r(36935),o=r(98879),n=r(96566),s=class{#e;get cast(){return(0,n.vY)()}mediaType(){return"video"}canPlay(e){return o.IS_CHROME&&!o.IS_IOS&&(0,o.canGoogleCastSrc)(e)}async prompt(e){let t,r,o;try{t=await this.#t(e),this.#e||(this.#e=new cast.framework.RemotePlayer,new cast.framework.RemotePlayerController(this.#e)),r=e.player.createEvent("google-cast-prompt-open",{trigger:t}),e.player.dispatchEvent(r),this.#r(e,"connecting",r),await this.#a((0,a.peek)(e.$props.googleCast)),e.$state.remotePlaybackInfo.set({deviceName:(0,n.aQ)()?.getCastDevice().friendlyName}),(0,n.br)()&&this.#r(e,"connected",r)}catch(s){let a=s instanceof Error?s:this.#o((s+"").toUpperCase(),"Prompt failed.");throw o=e.player.createEvent("google-cast-prompt-error",{detail:a,trigger:r??t,cancelable:!0}),e.player.dispatch(o),this.#r(e,(0,n.br)()?"connected":"disconnected",o),a}finally{e.player.dispatch("google-cast-prompt-close",{trigger:o??r??t})}}async load(e){if(o.IS_SERVER)throw Error("[vidstack] can not load google cast provider server-side");if(!this.#e)throw Error("[vidstack] google cast player was not initialized");return new(await r.e(4348).then(r.bind(r,34348))).GoogleCastProvider(this.#e,e)}async #t(e){if((0,n.r2)())return;let t=e.player.createEvent("google-cast-load-start");e.player.dispatch(t),await (0,o.loadScript)((0,n.xk)()),await customElements.whenDefined("google-cast-launcher");let r=e.player.createEvent("google-cast-loaded",{trigger:t});if(e.player.dispatch(r),!(0,n.Lx)())throw this.#o("CAST_NOT_AVAILABLE","Google Cast not available on this platform.");return r}async #a(e){this.#n(e);let t=await this.cast.requestSession();if(t)throw this.#o(t.toUpperCase(),(0,n.tM)(t))}#n(e){this.cast?.setOptions({...(0,n.fk)(),...e})}#r(e,t,r){e.notify("remote-playback-change",{type:"google-cast",state:t},r)}#o(e,t){let r=Error(t);return r.code=e,r}constructor(){this.name="google-cast"}}},96566:(e,t,r)=>{r.d(t,{Cs:()=>d,It:()=>h,Lx:()=>s,Qg:()=>p,aQ:()=>l,br:()=>i,fk:()=>g,r2:()=>n,tM:()=>u,vY:()=>c,xk:()=>o});var a=r(36935);function o(){return"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"}function n(){return!!window.cast?.framework}function s(){return!!window.chrome?.cast?.isAvailable}function i(){return c().getCastState()===cast.framework.CastState.CONNECTED}function c(){return window.cast.framework.CastContext.getInstance()}function l(){return c().getCurrentSession()}function d(){return l()?.getSessionObj().media[0]}function p(e){return d()?.media.contentId===e?.src}function g(){return{language:"en-US",autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,resumeSavedSession:!0,androidReceiverCompatible:!0}}function u(e){return`Google Cast Error Code: ${e}`}function h(e,t){return(0,a.listenEvent)(c(),e,t)}}}]);
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.