import{l as o}from"./vidstack-Dy1Hfo7P.js";function r(){return"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"}function i(){return!!window.cast?.framework}function c(){return!!window.chrome?.cast?.isAvailable}function u(){return e().getCastState()===cast.framework.CastState.CONNECTED}function e(){return window.cast.framework.CastContext.getInstance()}function a(){return e().getCurrentSession()}function n(){return a()?.getSessionObj().media[0]}function C(t){return n()?.media.contentId===t?.src}function d(){return{language:"en-US",autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,resumeSavedSession:!0,androidReceiverCompatible:!0}}function f(t){return`Google Cast Error Code: ${t}`}function g(t,s){return o(e(),t,s)}export{e as a,a as b,f as c,i as d,r as e,c as f,n as g,C as h,u as i,d as j,g as l};
