1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ed558488-74f0-46a5-9c02-3cc7e1223c5e",e._sentryDebugIdIdentifier="sentry-dbid-ed558488-74f0-46a5-9c02-3cc7e1223c5e")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"42723ee3ac76a36f1098dcdc5d31fc6a02de85b1"}}catch(e){}}(),(self.webpackChunkstaylive_partnerplatform=self.webpackChunkstaylive_partnerplatform||[]).push([[7827],{70849:(e,t,i)=>{i.d(t,{J:()=>ue});var s=Object.defineProperty,a=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,l=(e,t)=>{for(var i in t||(t={}))n.call(t,i)&&o(e,i,t[i]);if(a)for(var i of a(t))r.call(t,i)&&o(e,i,t[i]);return e},c=(e,t,i)=>new Promise(((s,a)=>{var n=e=>{try{o(i.next(e))}catch(e){a(e)}},r=e=>{try{o(i.throw(e))}catch(e){a(e)}},o=e=>e.done?s(e.value):Promise.resolve(e.value).then(n,r);o((i=i.apply(e,t)).next())}));const h=new WeakMap;class u extends Error{}class d extends Error{}const m=["application/x-mpegURL","application/vnd.apple.mpegurl","audio/mpegurl"],v=globalThis.WeakRef?class extends Set{add(e){super.add(new WeakRef(e))}forEach(e){super.forEach((t=>{const i=t.deref();i&&e(i)}))}}:Set;function p(){var e,t;return null==(t=null==(e=globalThis.cast)?void 0:e.framework)?void 0:t.CastContext.getInstance()}function y(){var e;return null==(e=p())?void 0:e.getCurrentSession()}function f(){var e;return null==(e=y())?void 0:e.getSessionObj().media[0]}function E(e){return p().setOptions(l(l({},{receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0}),e))}function g(e){if(!e)return;const t=e.match(/\.([a-zA-Z0-9]+)(?:\?.*)?$/);return t?t[1]:null}function b(e){const t=e.split("\n").find((e=>!e.trim().startsWith("#")&&""!==e.trim()));return null==t?void 0:t.trim()}var S,T,w,C,k,A,P,I,R,D,_,M,O,L,N,F,W,x,G=e=>{throw TypeError(e)},U=(e,t,i)=>t.has(e)||G("Cannot "+i),H=(e,t,i)=>(U(e,t,"read from private field"),i?i.call(e):t.get(e)),j=(e,t,i)=>t.has(e)?G("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),V=(e,t,i,s)=>(U(e,t,"write to private field"),s?s.call(e,i):t.set(e,i),i),q=(e,t,i)=>(U(e,t,"access private method"),i),$=(e,t,i)=>new Promise(((s,a)=>{var n=e=>{try{o(i.next(e))}catch(e){a(e)}},r=e=>{try{o(i.throw(e))}catch(e){a(e)}},o=e=>e.done?s(e.value):Promise.resolve(e.value).then(n,r);o((i=i.apply(e,t)).next())}));const B=new v,X=new WeakSet;let Y;var J,z,Z,K;J=()=>{var e,t,i,s;(null==(t=null==(e=globalThis.chrome)?void 0:e.cast)?void 0:t.isAvailable)?Y||(Y=cast.framework,p().addEventListener(Y.CastContextEventType.CAST_STATE_CHANGED,(e=>{B.forEach((t=>{var i,s;return null==(s=(i=h.get(t)).onCastStateChanged)?void 0:s.call(i,e)}))})),p().addEventListener(Y.CastContextEventType.SESSION_STATE_CHANGED,(e=>{B.forEach((t=>{var i,s;return null==(s=(i=h.get(t)).onSessionStateChanged)?void 0:s.call(i,e)}))})),B.forEach((e=>{var t,i;return null==(i=(t=h.get(e)).init)?void 0:i.call(t)}))):console.debug("chrome.cast.isAvailable",null==(s=null==(i=globalThis.chrome)?void 0:i.cast)?void 0:s.isAvailable)},(null==(Z=null==(z=globalThis.chrome)?void 0:z.cast)?void 0:Z.isAvailable)?(null==(K=globalThis.cast)?void 0:K.framework)?J():customElements.whenDefined("google-cast-button").then(J):globalThis.__onGCastApiAvailable=()=>{customElements.whenDefined("google-cast-button").then(J)};let Q=0;class ee extends EventTarget{constructor(e){super(),j(this,D),j(this,S),j(this,T),j(this,w),j(this,C),j(this,k,"disconnected"),j(this,A,!1),j(this,P,new Set),j(this,I,new WeakMap),j(this,R,(()=>q(this,D,x).call(this))),V(this,S,e),B.add(this),h.set(this,{init:()=>q(this,D,F).call(this),onCastStateChanged:()=>q(this,D,L).call(this),onSessionStateChanged:()=>q(this,D,N).call(this),getCastPlayer:()=>H(this,D,_)}),q(this,D,F).call(this)}destroy(){var e,t,i;null==(t=null==(e=H(this,S))?void 0:e.textTracks)||t.removeEventListener("change",H(this,R)),H(this,C)&&(null==(i=H(this,w))?void 0:i.controller)&&Object.entries(H(this,C)).forEac
1h((([e,t])=>{H(this,w).controller.removeEventListener(e,t)})),H(this,S)&&X.delete(H(this,S)),V(this,T,!1)}get state(){return H(this,k)}watchAvailability(e){return $(this,null,(function*(){if(H(this,S).disableRemotePlayback)throw new u("disableRemotePlayback attribute is present.");return H(this,I).set(e,++Q),H(this,P).add(e),queueMicrotask((()=>e(q(this,D,O).call(this)))),Q}))}cancelWatchAvailability(e){return $(this,null,(function*(){if(H(this,S).disableRemotePlayback)throw new u("disableRemotePlayback attribute is present.");e?H(this,P).delete(e):H(this,P).clear()}))}prompt(){return $(this,null,(function*(){var e,t,i,s;if(H(this,S).disableRemotePlayback)throw new u("disableRemotePlayback attribute is present.");if(!(null==(t=null==(e=globalThis.chrome)?void 0:e.cast)?void 0:t.isAvailable))throw new d("The RemotePlayback API is disabled on this platform.");const a=X.has(H(this,S));X.add(H(this,S)),E(H(this,S).castOptions),Object.entries(H(this,C)).forEach((([e,t])=>{H(this,w).controller.addEventListener(e,t)}));try{yield p().requestSession()}catch(e){if(a||X.delete(H(this,S)),"cancel"===e)return;throw new Error(e)}null==(s=null==(i=h.get(H(this,S)))?void 0:i.loadOnPrompt)||s.call(i)}))}}S=new WeakMap,T=new WeakMap,w=new WeakMap,C=new WeakMap,k=new WeakMap,A=new WeakMap,P=new WeakMap,I=new WeakMap,R=new WeakMap,D=new WeakSet,_=function(){if(X.has(H(this,S)))return H(this,w)},M=function(){X.has(H(this,S))&&(Object.entries(H(this,C)).forEach((([e,t])=>{H(this,w).controller.removeEventListener(e,t)})),X.delete(H(this,S)),H(this,S).muted=H(this,w).isMuted,H(this,S).currentTime=H(this,w).savedPlayerState.currentTime,!1===H(this,w).savedPlayerState.isPau
1sed&&H(this,S).play())},O=function(){var e;const t=null==(e=p())?void 0:e.getCastState();return t&&"NO_DEVICES_AVAILABLE"!==t},L=function(){const e=p().getCastState();if(X.has(H(this,S))&&"CONNECTING"===e&&(V(this,k,"connecting"),this.dispatchEvent(new Event("connecting"))),!H(this,A)&&(null==e?void 0:e.includes("CONNECT"))){V(this,A,!0);for(let e of H(this,P))e(!0)}else if(H(this,A)&&(!e||"NO_DEVICES_AVAILABLE"===e)){V(this,A,!1);for(let e of H(this,P))e(!1)}},N=function(){return $(this,null,(function*(){var e,t;const{SESSION_RESUMED:i}=Y.SessionState;if(p().getSessionState()===i&&H(this,S).castSrc===(null==(t=null==(e=f())?void 0:e.media)?void 0:t.contentId)){X.add(H(this,S)),Object.entries(H(this,C)).forEach((([e,t])=>{H(this,w).controller.addEventListener(e,t)}));try{yield(s=new chrome.cast.media.GetStatusRequest,new Promise(((e,t)=>{f().getStatus(s,e,t)})))}catch(e){console.error(e)}H(this,C)[Y.RemotePlayerEventType.IS_PAUSED_CHANGED](),H(this,C)[Y.RemotePlayerEventType.PLAYER_STATE_CHANGED]()}var s}))},F=function(){Y&&!H(this,T)&&(V(this,T,!0),E(H(this,S).castOptions),H(this,S).textTracks.addEventListener("change",H(this,R)),q(this,D,L).call(this),V(this,w,new Y.RemotePlayer),new Y.RemotePlayerController(H(this,w)),V(this,C,{[Y.RemotePlayerEventType.IS_CONNECTED_CHANGED]:({value:e})=>{!0===e?(V(this,k,"connected"),this.dispatchEvent(new Event("connect"))):(q(this,D,M).call(this),V(this,k,"disconnected"),this.dispatchEvent(new Event("disconnect")))},[Y.RemotePlayerEventType.DURATION_CHANGED]:()=>{H(this,S).dispatchEvent(new Event("durationchange"))},[Y.RemotePlayerEventType.VOLUME_LEVEL_CHANGED]:()=>{H(this,S).dispatchEvent(new Event("volumechange"))},[Y.RemotePlayerEventType.IS_MUTED_CHANGED]:()=>{H(this,S).dispatchEvent(new Event("volumechange"))},[Y.RemotePlayerEventType.CURRENT_TIME_CHANGED]:()=>{var e;(null==(e=H(this,D,_))?void 0:e.isMediaLoaded)&&H(this,S).dispatchEvent(new Event("timeupdate"))},[Y.RemotePlayerEventType.VIDEO_INFO_CHANGED]:()=>{H(this,S).dispatchEvent(new Event("resize"))},[Y.RemotePlayerEventType.IS_PAUSED_CHANGED]:()=>{H(this,S).dispatchEvent(new Event(this.paused?"pause":"play"))},[Y.RemotePlayerEventType.PLAYER_STATE_CHANGED]:()=>{var e,t;(null==(e=H(this,D,_))?void 0:e.playerState)!==chrome.cast.media.PlayerState.PAUSED&&H(this,S).dispatchEvent(new Event({[chrome.cast.media.PlayerState.PLAYING]:"playing",[chrome.cast.media.PlayerState.BUFFERING]:"waiting",[chrome.cast.media.PlayerState.IDLE]:"emptied"}[null==(t=H(this,D,_))?void 0:t.playerState]))},[Y.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED]:()=>$(this,null,(function*(){var e;(null==(e=H(this,D,_))?void 0:e.isMediaLoaded)&&(yield Promise.resolve(),q(this,D,W).call(this))}))}))},W=function(){q(this,D,x).call(this)},x=function(){return $(this,null,(function*(){var e,t,i,s,a;
1if(!H(this,D,_))return;const n=(null!=(t=null==(e=H(this,w).mediaInfo)?void 0:e.tracks)?t:[]).filter((({type:e})=>e===chrome.cast.media.TrackType.TEXT)),r=[...H(this,S).textTracks].filter((({kind:e})=>"subtitles"===e||"captions"===e)),o=n.map((({language:e,name:t,trackId:i})=>{var s;const{mode:a}=null!=(s=r.find((i=>i.language===e&&i.label===t)))?s:{};return!!a&&{mode:a,trackId:i}})).filter(Boolean),l=o.filter((({mode:e})=>"showing"!==e)).map((({trackId:e})=>e)),c=o.find((({mode:e})=>"showing"===e)),h=null!=(a=null==(s=null==(i=y())?void 0:i.getSessionObj().media[0])?void 0:s.activeTrackIds)?a:[];let u=h;if(h.length&&(u=u.filter((e=>!l.includes(e)))),(null==c?void 0:c.trackId)&&(u=[...u,c.trackId]),u=[...new Set(u)],m=u,(d=h).length!==m.length||!d.every((e=>m.includes(e))))try{const e=new chrome.cast.media.EditTracksInfoRequest(u);yield function(e){return new Promise(((t,i)=>{f().editTracksInfo(e,t,i)}))}(e)}catch(e){console.error(e)}var d,m}))};var te=Object.defineProperty,ie=Object.getPrototypeOf,se=Reflect.get,ae=e=>{throw TypeError(e)},ne=(e,t,i)=>t.has(e)||ae("Cannot "+i),re=(e,t,i)=>(ne(e,t,"read from private field"),i?i.call(e):t.get(e)),oe=(e,t,i)=>t.has(e)?ae("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),le=(e,t,i,s)=>(ne(e,t,"write to private field"),s?s.call(e,i):t.set(e,i),i),ce=(e,t,i)=>se(ie(e),i,t),he=(e,t,i)=>new Promise(((s,a)=>{var n=e=>{try{o(i.next(e))}catch(e){a(e)}},r=e=>{try{o(i.throw(e))}catch(e){a(e)}},o=e=>e.done?s(e.value):Promise.resolve(e.value).then(n,r);o((i=i.apply(e,t)).next())}));const ue=e=>{var t,i,s,a,n,r,o,l,u,d,v,p;return i=class extends e{constructor(){super(...arguments),oe(this,o),oe(this,s,{paused:!1}),oe(this,a,{receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0}),oe(this,n),oe(this,r)}get remote(){if(re(this,r))return re(this,r);if(globalThis.chrome){if(!this.isConnected)return;return this.disableRemotePlayback||function(){var e;const t="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";if((null==(e=globalThis.chrome)?void 0:e.cast)||document.querySelector(`script[src="${t}"]`))return;const i=document.createElement("script");i.src=t,document.head.append(i)}(),h.set(this,{loadOnPrompt:()=>{return(e=o,t=u,ne(this,e,"access private method"),t).call(this);var e,t}}),le(this,r,new ee(this))}return super.remote}disconnectedCallback(){var e,t;null==(e=re(this,r))||e.destroy(),le(this,r,null),h.delete(this),null==(t=super.disconnectedCallback)||t.call(this)}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),"cast-receiver"===e&&i)re(this,a).receiverApplicationId=i;else if(re(this,o,l))switch(e){case"cast-stream-type":case"cast-src":this.load()}}load(){return he(this,null,(function*(){var e,t;if(!re(this,o,l))return ce(i.prototype,this,"load").call(this);const a=new chrome.cast.media.MediaInfo(this.castSrc,this.castContentType);a.customData=this.castCustomData;const n=[...this.querySelectorAll("track")].filter((({kind:e,src:t})=>t&&("subtitles"===e||"captions"===e))),r=[];let h=0;if(n.length&&(a.tracks=n.map((e=>{const t=++h;0===r.length&&"showing"===e.track.mode&&r.push(t);const i=new chrome.cast.media.Track(t,chrome.cast.media.TrackType.TEXT);return i.trackContentId=e.src,i.trackContentType="text/vtt",i.subtype="captions"===e.kind?chrome.cast.media.TextTrackType.CAPTIONS:chrome.cast.media.TextTrackType.SUBTITLES,i.name=e.label,i.language=e.srclang,i}))),"live"===this.castStreamType?a.streamType=chrome.cast.media.StreamType.LIVE:a.streamType=chrome.cast.media.StreamType.BUFFERED,a.metadata=new chrome.cast.media.GenericMediaMetadata,a.metadata.title=this.title,a.metadata.images=[{url:this.poster}],yield function(e){return c(this,null,(function*(){if(!e)return!1;if(/\.m3u8?(\?.*)?$/i.test(e))return!0;if(e.startsWith("blob:"))return!1;try{const t=(yield fetch(e,{method:"HEAD"})).headers.get("Content-Type");return m.some((e=>t===e))}catch(e){return console.error("Error while trying to get the Content-Type of the manifest",e),!1}}))}(this.castSrc)){a.contentType||(a.contentType="application/x-mpegURL");const{videoFormat:e,audioFormat:t}=yield function(e){return c(this,null,(function*(){var t;if(!e||e.startsWith("blob:"))return{videoFormat:void 0,audioFormat:void 0};try{const i=yield(yield fetch(e)).text();let s=i;const a=function(e){const t=e.split("\n"),i=[];for(let e=0;e<t.length;e++)if(t[e].trim().startsWith("#EXT-X-STREAM-INF")){const s=t[e+1]?t[e+1].trim():"";
1s&&!s.startsWith("#")&&i.push(s)}return i}(i);if(a.length>0){const t=new URL(a[0],e).toString();s=yield(yield fetch(t)).text()}const n=g(b(s)),r=function(e){for(const t of e.split("\n")){const e=t.trim();if(e.startsWith("#EXT-X-MEDIA")&&/TYPE=AUDIO/i.test(e)){const t=e.match(/URI="([^"]+)"/i);if(t)return t[1]}}}(i);let o=n;if(r)try{const i=new URL(r,e).toString();o=null!=(t=g(b(yield(yield fetch(i)).text())))?t:n}catch(e){console.error("Error while trying to parse the audio rendition playlist",e)}return{videoFormat:n,audioFormat:o}}catch(e){return console.error("Error while trying to parse the manifest playlist",e),{videoFormat:void 0,audioFormat:void 0}}}))}(this.castSrc);(null==e?void 0:e.includes("m4s"))||(null==e?void 0:e.includes("mp4"))||(null==e?void 0:e.includes("m4a"))?(a.hlsSegmentFormat=chrome.cast.media.HlsSegmentFormat.FMP4,a.hlsVideoSegmentFormat=chrome.cast.media.HlsVideoSegmentFormat.FMP4):(null==t?void 0:t.includes("aac"))?(a.hlsSegmentFormat=chrome.cast.media.HlsSegmentFormat.AAC,a.hlsVideoSegmentFormat=chrome.cast.media.HlsVideoSegmentFormat.MPEG2_TS):((null==e?void 0:e.includes("ts"))||(null==t?void 0:t.includes("ts")))&&(a.hlsSegmentFormat=chrome.cast.media.HlsSegmentFormat.TS,a.hlsVideoSegmentFormat=chrome.cast.media.HlsVideoSegmentFormat.MPEG2_TS)}const u=new chrome.cast.media.LoadRequest(a);u.currentTime=null!=(e=ce(i.prototype,this,"currentTime"))?e:0,u.autoplay=!re(this,s).paused,u.activeTrackIds=r,yield null==(t=y())?void 0:t.loadMedia(u),this.dispatchEvent(new Event("volumechange"))}))}play(){var e;if(!re(this,o,l))return super.play();re(this,o,l).isPaused&&(null==(e=re(this,o,l).controller)||e.playOrPause())}pause(){var e;re(this,o,l)?re(this,o,l).isPaused||null==(e=re(this,o,l).controller)||e.playOrPause():super.pause()}get castOptions(){return re(this,a)}get castReceiver(){var e;return null!=(e=this.getAttribute("cast-receiver"))?e:void 0}set castReceiver(e){this.castReceiver!=e&&this.setAttribute("cast-receiver",`${e}`)}get castSrc(){var e,t,i,s,a;const n=this.currentSrc,r=(null==n?void 0:n.startsWith("blob:"))?void 0:n;return null!=(a=null!=(s=null!=(i=null!=(t=this.getAttribute("cast-src"))?t:null==(e=this.querySelector("source"))?void 0:e.src)?i:r)?s:this.getAttribute("src"))?a:void 0}set castSrc(e){this.castSrc!=e&&this.setAttribute("cast-src",`${e}`)}get castContentType(){var e;return null!=(e=this.getAttribute("cast-content-type"))?e:void 0}set castContentType(e){this.setAttribute("cast-content-type",`${e}`)}get castStreamType(){var e,t;return null!=(t=null!=(e=this.getAttribute("cast-stream-type"))?e:this.streamType)?t:void 0}set castStreamType(e){this.setAttribute("cast-stream-type",`${e}`)}get castCustomData(){return re(this,n)}set castCustomData(e){const t=typeof e;["object","undefined"].includes(t)?le(this,n,e):console.error(`castCustomData must be nullish or an object but value was of type ${t}`)}get readyState(){if(re(this,o,l))switch(re(this,o,l).playerState){case chrome.cast.media.PlayerState.IDLE:return 0;case chrome.cast.media.PlayerState.BUFFERING:return 2;default:return 3}return super.readyState}get paused(){return re(this,o,l)?re(this,o,l).isPaused:super.paused}get muted(){var e;return re(this,o,l)?null==(e=re(this,o,l))?void 0:e.isMuted:super.muted}set muted(e){var t;re(this,o,l)?(e&&!re(this,o,l).isMuted||!e&&re(this,o,l).isMuted)&&(null==(t=re(this,o,l).controller)||t.muteOrUnmute()):super.muted=e}get volume(){var e,t;return re(this,o,l)?null!=(t=null==(e=re(this,o,l))?void 0:e.volumeLevel)?t:1:super.volume}set volume(e){var t;if(re(this,o,l))return re(this,o,l).volumeLevel=+e,void(null==(t=re(this,o,l).controller)||t.setVolumeLevel());super.volume=e}get duration(){var e,t,i;return re(this,o,l)&&(null==(e=re(this,o,l))?void 0:e.isMediaLoaded)?null!=(i=null==(t=re(this,o,l))?void 0:t.duration)?i:NaN:super.duration}get currentTime(){var e,t,i;return re(this,o,l)&&(null==(e=re(this,o,l))?void 0:e.isMediaLoaded)?null!=(i=null==(t=re(this,o,l))?void 0:t.currentTime)?i:0:super.currentTime}set currentTime(e){var t;if(re(this,o,l))return re(this,o,l).currentTime=e,void(null==(t=re(this,o,l).controller)||t.seek());super.currentTime=e}},s=new WeakMap,a=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakSet,l=function(){var e,t;return null==(t=null==(e=h.get(re(this,r)))?void 0:e.getCastPlayer)?void 0:t.call(e)},u=function(){return he(this,null,(function*(){re(this,s).paused=ce(i.prototype,this,"paused"),ce(i.prototype,this,"pause").call(this),this.muted=ce(i.prototype,this,"muted");try{yield this.load()}catch(e){console.error(e)}}))},d=i,v="observedAttributes",p=[...null!=(t=e.observedAttributes)?t:[],"cast-src","cast-content-type","cast-stream-type","cast-receiver"],((e,t,i)=>{t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(d,"symbol"!=typeof v?v+"":v,p),i}}}]);
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.