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]="393731de-27e5-4f00-8391-0dbb2d64a15b",e._sentryDebugIdIdentifier="sentry-dbid-393731de-27e5-4f00-8391-0dbb2d64a15b")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"bc80ff691c578d2371b38b037f81c58f5aa85e9a"}}catch(e){}}(),(self.webpackChunkstaylive_partnerplatform=self.webpackChunkstaylive_partnerplatform||[]).push([[919],{17055:(e,t,n)=>{n.d(t,{CY:()=>m,Ex:()=>s,GC:()=>r,LJ:()=>a,Np:()=>u,T$:()=>l,U4:()=>p,Up:()=>h,a8:()=>i,br:()=>E,lr:()=>c,nJ:()=>d});const i={MEDIA_PLAY_REQUEST:"mediaplayrequest",MEDIA_PAUSE_REQUEST:"mediapauserequest",MEDIA_MUTE_REQUEST:"mediamuterequest",MEDIA_UNMUTE_REQUEST:"mediaunmuterequest",MEDIA_LOOP_REQUEST:"medialooprequest",MEDIA_VOLUME_REQUEST:"mediavolumerequest",MEDIA_SEEK_REQUEST:"mediaseekrequest",MEDIA_AIRPLAY_REQUEST:"mediaairplayrequest",MEDIA_ENTER_FULLSCREEN_REQUEST:"mediaenterfullscreenrequest",MEDIA_EXIT_FULLSCREEN_REQUEST:"mediaexitfullscreenrequest",MEDIA_PREVIEW_REQUEST:"mediapreviewrequest",MEDIA_ENTER_PIP_REQUEST:"mediaenterpiprequest",MEDIA_EXIT_PIP_REQUEST:"mediaexitpiprequest",MEDIA_ENTER_CAST_REQUEST:"mediaentercastrequest",MEDIA_EXIT_CAST_REQUEST:"mediaexitcastrequest",MEDIA_SHOW_TEXT_TRACKS_REQUEST:"mediashowtexttracksrequest",MEDIA_HIDE_TEXT_TRACKS_REQUEST:"mediahidetexttracksrequest",MEDIA_SHOW_SUBTITLES_REQUEST:"mediashowsubtitlesrequest",MEDIA_DISABLE_SUBTITLES_REQUEST:"mediadisablesubtitlesrequest",MEDIA_TOGGLE_SUBTITLES_REQUEST:"mediatogglesubtitlesrequest",MEDIA_PLAYBACK_RATE_REQUEST:"mediaplaybackraterequest",MEDIA_RENDITION_REQUEST:"mediarenditionrequest",MEDIA_AUDIO_TRACK_REQUEST:"mediaaudiotrackrequest",MEDIA_SEEK_TO_LIVE_REQUEST:"mediaseektoliverequest",REGISTER_MEDIA_STATE_RECEIVER:"registermediastatereceiver",UNREGISTER_MEDIA_STATE_RECEIVER:"unregistermediastatereceiver"},s={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},a={MEDIA_AIRPLAY_UNAVAILABLE:"mediaAirplayUnavailable",MEDIA_AUDIO_TRACK_ENABLED:"mediaAudioTrackEnabled",MEDIA_AUDIO_TRACK_LIST:"mediaAudioTrackList",MEDIA_AUDIO_TRACK_UNAVAILABLE:"mediaAudioTrackUnavailable",MEDIA_BUFFERED:"mediaBuffered",MEDIA_CAST_UNAVAILABLE:"mediaCastUnavailable",MEDIA_CHAPTERS_CUES:"mediaChaptersCues",MEDIA_CURRENT_TIME:"mediaCurrentTime",MEDIA_DURATION:"mediaDuration",MEDIA_ENDED:"mediaEnded",MEDIA_ERROR:"mediaError",MEDIA_ERROR_CODE:"mediaErrorCode",MEDIA_ERROR_MESSAGE:"mediaErrorMessage",MEDIA_FULLSCREEN_UNAVAILABLE:"mediaFullscreenUnavailable",MEDIA_HAS_P
1LAYED:"mediaHasPlayed",MEDIA_HEIGHT:"mediaHeight",MEDIA_IS_AIRPLAYING:"mediaIsAirplaying",MEDIA_IS_CASTING:"mediaIsCasting",MEDIA_IS_FULLSCREEN:"mediaIsFullscreen",MEDIA_IS_PIP:"mediaIsPip",MEDIA_LOADING:"mediaLoading",MEDIA_MUTED:"mediaMuted",MEDIA_LOOP:"mediaLoop",MEDIA_PAUSED:"mediaPaused",MEDIA_PIP_UNAVAILABLE:"mediaPipUnavailable",MEDIA_PLAYBACK_RATE:"mediaPlaybackRate",MEDIA_PREVIEW_CHAPTER:"mediaPreviewChapter",MEDIA_PREVIEW_COORDS:"mediaPreviewCoords",MEDIA_PREVIEW_IMAGE:"mediaPreviewImage",MEDIA_PREVIEW_TIME:"mediaPreviewTime",MEDIA_RENDITION_LIST:"mediaRenditionList",MEDIA_RENDITION_SELECTED:"mediaRenditionSelected",MEDIA_RENDITION_UNAVAILABLE:"mediaRenditionUnavailable",MEDIA_SEEKABLE:"mediaSeekable",MEDIA_STREAM_TYPE:"mediaStreamType",MEDIA_SUBTITLES_LIST:"mediaSubtitlesList",MEDIA_SUBTITLES_SHOWING:"mediaSubtitlesShowing",MEDIA_TARGET_LIVE_WINDOW:"mediaTargetLiveWindow",MEDIA_TIME_IS_LIVE:"mediaTimeIsLive",MEDIA_VOLUME:"mediaVolume",MEDIA_VOLUME_LEVEL:"mediaVolumeLevel",MEDIA_VOLUME_UNAVAILABLE:"mediaVolumeUnavailable",MEDIA_LANG:"mediaLang",MEDIA_WIDTH:"mediaWidth"},o=Object.entries(a),r=o.reduce(((e,[t,n])=>(e[t]=n.toLowerCase(),e)),{}),l=o.reduce(((e,[t,n])=>(e[t]=n.toLowerCase(),e)),{USER_INACTIVE_CHANGE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"}),d=(Object.entries(l).reduce(((e,[t,n])=>{const i=r[t];return i&&(e[n]=i),e}),{userinactivechange:"userinactive"}),Object.entries(r).reduce(((e,[t,n])=>{const i=l[t];return i&&(e[n]=i),e}),{userinactive:"userinactivechange"})),h={SUBTITLES:"subtitles",CAPTIONS:"captions",DESCRIPTIONS:"descriptions",CHAPTERS:"chapters",METADATA:"metadata"},c={DISABLED:"disabled",HIDDEN:"hidden",SHOWING:"showing"},u={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"},m={UNAVAILABLE:"unavailable",UNSUPPORTED:"unsupported"},p={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"},E={INLINE:"inline",FULLSCREEN:"fullscreen",PICTURE_IN_PICTURE:"picture-in-picture"}},96372:(e,t,n)=>{n.d(t,{xX:()=>he,dl:()=>dt});var i,s,a,o,r,l,d,h,c,u,m,p,E,b,v,g=n(17055),A=n(587),f=n(68218),I=n(28664),_=n(72358),T=n(10273),y=n(8257),S=n(73813),k=n(50456),L=n(43649),C=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},w=(e,t,n)=>(C(e,t,"read from private field"),n?n.call(e):t.get(e)),M=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},R=(e,t,n,i)=>(C(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),D=(e,t,n)=>(C(e,t,"access private method"),n);const U=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"," ","f","m","k","c","l","j",">","<","p"],O="defaultsubtitles",N="defaultstreamtype",x="defaultduration",P="fullscreenelement",G="hotkeys",H="keyboardbackwardseekoffset",W="keyboardforwardseekoffset",$="keyboarddownvolumestep",B="keyboardupvolumestep",V="keysused",Q="lang",q="loop",Y="liveedgeoffset",K="noautoseektolive",F="nodefaultstore",j="nohotkeys",Z="nomutedpref",z="nosubtitleslangpref",X="novolumepref",J="seektoliveoffset";class ee extends I.yd{constructor(){super(),M(this,c),M(this,p),M(this,b),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,M(this,i,new T.M(this,G)),M(this,s,void 0),M(this,a,void 0),M(this,o,null),M(this,r,void 0),M(this,l,void 0),M(this,d,(e=>{var t;null==(t=w(this,a))||t.dispatch(e)})),M(this,h,void 0),M(this,m,(e=>{const{key:t,shiftKey:n}=e;n&&("/"===t||"?"===t)||U.includes(t)?this.keyboardShortcutHandler(e):this.removeEventListener("keyup",w(this,m))})),this.associateElement(this);let e={};R(this,r,(t=>{Object.entries(t).forEach((([t,n])=>{if(t in e&&e[t]===n)return;this.propagateMediaState(t,n);const i=t.toLowerCase(),s=new _.Au.CustomEvent(g.nJ[i],{composed:!0,detail:n});this.dispatchEvent(s)})),e=t}))}static get observedAttributes(){return super.observedAttributes.concat(j,G,N,O,x,Z,X,Q,q,Y,J,K)}get mediaStore(){return w(this,a)}set mediaStore(e){var t,n;w(this,a)&&(null==(t=w(this,l))||t.call(this),R(this,l,void 0)),R(this,a,e),w(this,a)||this.hasAttribute(F)?R(this,l,null==(n=w(this,a))?void 0:n.subscribe(w(this,r))):D(this,c,u).call(this)}get fullscreenElement(){var e;return null!=(e=w(this,s))?e:this}set fullscreenElement(e){var t;this.hasAttribute(P)&&this.removeAttribute(P),R(this,s,e),null==(t=w(this,a))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}get defaultSubtitles(){return(0,k.Y_)(this,O)}set defaultSubtitles(e){(0,k.QW)(this,O,e)}get defaultStreamType(){return(0,k.vT)(this,N)}set defaultStreamType(e){(0,k.tA)(this,N,e)}get defaultDuration(){return(0,k.dm)(this,x)}set defaultDuration(e){(0,k.pK)(this,x,e)}get noHotkeys(){return(0,k.Y_)(this,j)}set noHotkeys(e){(0,k.QW)(this,j,e)}get keysUsed(){return(0,k.vT)(this,V)}set keysUsed(e){(0,k.tA)(this,V,e)}get liveEdgeOffset(){return(0,k.dm)(this,Y)}set liveEdgeOffset(e){(0,k.pK)(this,Y,e)}get noAutoSeekToLive(){return(0,k.Y_)(this,K)}set noAutoSeekToLive(e){(0,k.QW)(this,K,e)}get noVolumePref(){return(0,k.Y_)(this,X)}set noVolumePref(e){(0,k.QW)(this,X,e)}get noMutedPref(){return(0,k.Y_)(this,Z)}set noMutedPref(e){(0,k.QW)(this,Z,e)}get noSubtitlesLangPref(){return(0,k.Y_)(this,z)}set noSubtitlesLangPref(e){(0,k.QW)(this,z,e)}get noDefaultStore(){return(0,k.Y_)(this,F)}set noDefaultStore(e){(0,k.QW)(this,F,e)}get resolvedLang(){return(0,f.Ph)()}attributeChangedCallback(e,t,n){var o,r,l,d,h,c,u,m,p,E,b,v;if(super.attributeChangedCallback(e,t,n),e===j)n!==t&&""===n?(this.hasAttribute(G)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):n!==t&&null===n&&this.enableHotkeys();else if(e===G)w(this,i).value=n;else if(e===O&&n!==t)null==(o=w(this,a))||o.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(O)}});else if(e===N)null==(l=w(this,a))||l.dispatch({type:"optionschangerequest",detail:{defaultStreamType:null!=(r=this.getAttribute(N))?r:void 0}});else if(e===Y&&n!==t)null==(d=w(this,a))||d.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(Y)?+this.getAttribute(Y):void 0,seekToLiveOffset:this.hasAttribute(J)?+this.getAttribute(J):this.hasAttribute(Y)?+this.getAttribute(Y):void 0}});else if(e===J&&n!==t)null==(h=w(this,a))||h.dispatch({type:"optionschangerequest",detail:{seekToLiveOffset:this.hasAttribute(J)?+this.getAttribute(J):this.hasAttribute(Y)?+this.getAttribute(Y):void 0}});else if(e===K)null==(c=w(this,a))||c.dispatch({type:"optionschangerequest",detail:{noAutoSeekToLive:this.hasAttribute(K)}});else if(e===P){const e=n?null==(u=this.getRootNode())?void 0:u.getElementById(n):void 0;
1R(this,s,e),null==(m=w(this,a))||m.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}else e===Q&&n!==t?((0,f.xC)(n),null==(p=w(this,a))||p.dispatch({type:"optionschangerequest",detail:{mediaLang:n}})):e===q&&n!==t?null==(E=w(this,a))||E.dispatch({type:g.a8.MEDIA_LOOP_REQUEST,detail:null!=n}):e===X&&n!==t?null==(b=w(this,a))||b.dispatch({type:"optionschangerequest",detail:{noVolumePref:this.hasAttribute(X)}}):e===Z&&n!==t&&(null==(v=w(this,a))||v.dispatch({type:"optionschangerequest",detail:{noMutedPref:this.hasAttribute(Z)}}))}connectedCallback(){var e,t,n;this.associateElement(this),w(this,a)||this.hasAttribute(F)||D(this,c,u).call(this),null==(e=w(this,a))||e.dispatch({type:"documentelementchangerequest",detail:_.Al}),null==(t=w(this,a))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement}),super.connectedCallback(),w(this,a)&&!w(this,l)&&R(this,l,null==(n=w(this,a))?void 0:n.subscribe(w(this,r))),void 0!==w(this,h)&&w(this,a)&&this.media&&setTimeout((()=>{var e,t,n;(null==(t=null==(e=this.media)?void 0:e.textTracks)?void 0:t.length)&&(null==(n=w(this,a))||n.dispatch({type:g.a8.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:w(this,h)}))}),0),this.hasAttribute(j)?this.disableHotkeys():this.enableHotkeys()}disconnectedCallback(){var e,t,n,i,s,r;if(null==(e=super.disconnectedCallback)||e.call(this),this.disableHotkeys(),w(this,a)){const e=w(this,a).getState();R(this,h,!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)),null==(n=w(this,a))||n.dispatch({type:"fullscreenelementchangerequest",detail:void 0}),null==(i=w(this,a))||i.dispatch({type:"documentelementchangerequest",detail:void 0}),null==(s=w(this,a))||s.dispatch({type:g.a8.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})}w(this,l)&&(null==(r=w(this,l))||r.call(this),R(this,l,void 0)),this.unassociateElement(this),w(this,o)&&(w(this,o).remove(),R(this,o,null))}mediaSetCallback(e){var t;super.mediaSetCallback(e),null==(t=w(this,a))||t.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var t;super.mediaUnsetCallback(e),null==(t=w(this,a))||t.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,t){le(this.mediaStateReceivers,e,t)}associateElement(e){if(!e)return;const{associatedElementSubscriptions:t}=this;if(t.has(e))return;const n=this.registerMediaStateReceiver.bind(this),i=this.unregisterMediaStateReceiver.bind(this),s=de(e,n,i);Object.values(g.a8).forEach((t=>{e.addEventListener(t,w(this,d))})),t.set(e,s)}unassociateElement(e){if(!e)return;const{associatedElementSubscriptions:t}=this;t.has(e)&&(t.get(e)(),t.delete(e),Object.values(g.a8).forEach((t=>{e.removeEventListener(t,w(this,d))})))}registerMediaStateReceiver(e){if(!e)return;const t=this.mediaStateReceivers;t.indexOf(e)>-1||(t.push(e),w(this,a)&&Object.entries(w(this,a).getState()).forEach((([t,n])=>{le([e],t,n)})))}unregisterMediaStateReceiver(e){const t=this.mediaStateReceivers,n=t.indexOf(e);n<0||t.splice(n,1)}enableHotkeys(){this.addEventListener("keydown",D(this,p,E))}disableHotkeys(){this.removeEventListener("keydown",D(this,p,E)),this.removeEventListener("keyup",w(this,m))}get hotkeys(){return w(this,i)}set hotkeys(e){(0,k.tA)(this,G,e)}keyboardShortcutHandler(e){var t,n,s,o,r,l,d,h,c;const u=e.target;if((null!=(s=null!=(n=null==(t=u.getAttribute(V))?void 0:t.split(" "))?n:null==u?void 0:u.keysUsed)?s:[]).map((e=>"Space"===e?" ":e)).filter(Boolean).includes(e.key))return;let m,p,E;if(!w(this,i).contains(`no${e.key.toLowerCase()}`)&&!(" "===e.key&&w(this,i).contains("nospace")||e.shiftKey&&("/"===e.key||"?"===e.key)&&w(this,i).contains("noshift+/")))switch(e.key){case" ":case"k":m=w(this,a).getState().mediaPaused?g.a8.MEDIA_PLAY_REQUEST:g.a8.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new _.Au.CustomEvent(m,{composed:!0,bubbles:!0}));break;case"m":m="off"===this.mediaStore.getState().mediaVolumeLevel?g.a8.MEDIA_UNMUTE_REQUEST:g.a8.MEDIA_MUTE_REQUEST,this.dispatchEvent(new _.Au.CustomEvent(m,{composed:!0,bubbles:!0}));break;case"f":m=this.mediaStore.getState().mediaIsFullscreen?g.a8.MEDIA_EXIT_FULLSCREEN_REQUEST:g.a8.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new _.Au.CustomEvent(m,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new _.Au.CustomEvent(g.a8.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":case"j":{const e=this.hasAttribute(H)?+this.getAttribute(H):10;p=Math.max((null!=(o=this.mediaStore.getState().mediaCurrentTime)?o:0)-e,0),E=new _.Au.CustomEvent(g.a8.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(E);break}case"ArrowRight":case"l":{const e=this.hasAttribute(W)?+this.getAttribute(W):10;p=Math.max((null!=(r=this.mediaStore.getState().mediaCurrentTime)?r:0)+e,0),E=new _.Au.CustomEvent(g.a8.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(E);break}case"ArrowUp":{const e=this.hasAttribute(B)?+this.getAttribute(B):.025;p=Math.min((null!=(l=this.mediaStore.getState().mediaVolume)?l:1)+e,1),E=new _.Au.CustomEvent(g.a8.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(E);break}case"ArrowDown":{const e=this.hasAttribute($)?+this.getAttribute($):.025;p=Math.max((null!=(d=this.mediaStore.getState().mediaVolume)?d:1)-e,0),E=new _.Au.CustomEvent(g.a8.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(E);break}case"<":{const e=null!=(h=this.mediaStore.getState().mediaPlaybackRate)?h:1;p=Math.max(e-.25,.25).toFixed(2),E=new _.Au.CustomEvent(g.a8.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(E);break}case">":{const e=null!=(c=this.mediaStore.getState().mediaPlaybackRate)?c:1;p=Math.min(e+.25,2).toFixed(2),E=new _.Au.CustomEvent(g.a8.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:p}),this.dispatchEvent(E);break}case"/":case"?":e.shiftKey&&D(this,b,v).call(this);break;case"p":m=this.mediaStore.getState().mediaIsPip?g.a8.MEDIA_EXIT_PIP_REQUEST:g.a8.MEDIA_ENTER_PIP_REQUEST,E=new _.Au.CustomEvent(m,{composed:!0,bubbles:!0}),this.dispatchEvent(E)}}}i=new WeakMap,s=new WeakMap,a=new WeakMap,o=new WeakMap,r=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakMap,c=new WeakSet,u=function(){var e;this.mediaStore=(0,L.M)({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(O),defaultDuration:this.hasAttribute(x)?+this.getAttribute(x):void 0,defaultStreamType:null!=(e=this.getAttribute(N))?e:void 0,liveEdgeOffset:this.hasAttribute(Y)?+this.getAttribute(Y):void 0,seekToLiveOffset:this.hasAttribute(J)?+this.getAttribute(J):this.hasAttribute(Y)?+this.getAttribute(Y):void 0,noAutoSeekToLive:this.hasAttribute(K),noVolumePref:this.hasAttribute(X),noMutedPref:this.hasAttribute(Z),noSubtitlesLangPref:this.hasAttribute(z)}})},m=new WeakMap,p=new WeakSet,E=function(e){var t;
1const{metaKey:n,altKey:s,key:a,shiftKey:r}=e,l=r&&("/"===a||"?"===a);if(l&&(null==(t=w(this,o))?void 0:t.open))return void this.removeEventListener("keyup",w(this,m));if(n||s||!l&&!U.includes(a))return void this.removeEventListener("keyup",w(this,m));const d=e.target,h=d instanceof HTMLElement&&("media-volume-range"===d.tagName.toLowerCase()||"media-time-range"===d.tagName.toLowerCase());![" ","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(a)||w(this,i).contains(`no${a.toLowerCase()}`)||" "===a&&w(this,i).contains("nospace")||h||e.preventDefault(),this.addEventListener("keyup",w(this,m),{once:!0})},b=new WeakSet,v=function(){w(this,o)||(R(this,o,_.Al.createElement("media-keyboard-shortcuts-dialog")),this.appendChild(w(this,o))),w(this,o).open=!0};const te=Object.values(g.GC),ne=Object.values(g.LJ),ie=e=>{var t,n,i,s;let{observedAttributes:a}=e.constructor;!a&&(null==(t=e.nodeName)?void 0:t.includes("-"))&&(_.Au.customElements.upgrade(e),({observedAttributes:a}=e.constructor));const o=null==(s=null==(i=null==(n=null==e?void 0:e.getAttribute)?void 0:n.call(e,g.Ex.MEDIA_CHROME_ATTRIBUTES))?void 0:i.split)?void 0:s.call(i,/\s+/);return Array.isArray(a||o)?(a||o).filter((e=>te.includes(e))):[]},se=e=>{return!(null==(n=(t=e).nodeName)?void 0:n.includes("-"))||!_.Au.customElements.get(null==(i=t.nodeName)?void 0:i.toLowerCase())||t instanceof _.Au.customElements.get(t.nodeName.toLowerCase())||_.Au.customElements.upgrade(t),ne.some((e=>e in t))||!!ie(e).length;var t,n,i},ae=e=>{var t;return null==(t=null==e?void 0:e.join)?void 0:t.call(e,":")},oe={[g.GC.MEDIA_SUBTITLES_LIST]:S.mc,[g.GC.MEDIA_SUBTITLES_SHOWING]:S.mc,[g.GC.MEDIA_SEEKABLE]:ae,[g.GC.MEDIA_BUFFERED]:e=>null==e?void 0:e.map(ae).join(" "),[g.GC.MEDIA_PREVIEW_COORDS]:e=>null==e?void 0:e.join(" "),[g.GC.MEDIA_RENDITION_LIST]:y.SF,[g.GC.MEDIA_AUDIO_TRACK_LIST]:y.Br},re=(e,t)=>{if(null==(i=(n=e).closest)?void 0:i.call(n,'*[slot="media"]'))return;var n,i;const s=(e,t)=>{var n,i;se(e)&&t(e);const{children:s=[]}=null!=e?e:{};[...s,...null!=(i=null==(n=null==e?void 0:e.shadowRoot)?void 0:n.children)?i:[]].forEach((e=>re(e,t)))},a=null==e?void 0:e.nodeName.toLowerCase();!a.includes("-")||se(e)?s(e,t):_.Au.customElements.whenDefined(a).then((()=>{s(e,t)}))},le=(e,t,n)=>{e.forEach((e=>{if(t in e)return void(e[t]=n);const i=ie(e),s=t.toLowerCase();i.includes(s)&&(async(e,t,n)=>{var i,s;if(e.isConnected||await(0,y.cb)(0),"boolean"==typeof n||null==n)return(0,k.QW)(e,t,n);if("number"==typeof n)return(0,k.pK)(e,t,n);if("string"==typeof n)return(0,k.tA)(e,t,n);if(Array.isArray(n)&&!n.length)return e.removeAttribute(t);const a=null!=(s=null==(i=oe[t])?void 0:i.call(oe,n))?s:n;e.setAttribute(t,a)})(e,s,n)}))},de=(e,t,n)=>{re(e,t);const i=e=>{var n;const i=null!=(n=null==e?void 0:e.composedPath()[0])?n:e.target;t(i)},s=e=>{var t;const i=null!=(t=null==e?void 0:e.composedPath()[0])?t:e.target;n(i)};e.addEventListener(g.a8.REGISTER_MEDIA_STATE_RECEIVER,i),e.addEventListener(g.a8.UNREGISTER_MEDIA_STATE_RECEIVER,s);let a=[];const o=e=>{const i=e.target;"media"!==i.name&&(a.forEach((e=>re(e,n))),a=[...i.assignedElements({flatten:!0})],a.forEach((e=>re(e,t))))};e.addEventListener("slotchange",o);const r=new MutationObserver((e=>{e.forEach((e=>{const{addedNodes:i=[],removedNodes:s=[],type:a,target:o,attributeName:r}=e;"childList"===a?(Array.prototype.forEach.call(i,(e=>re(e,t))),Array.prototype.forEach.call(s,(e=>re(e,n)))):"attributes"===a&&r===g.Ex.MEDIA_CHROME_ATTRIBUTES&&(se(o)?t(o):n(o))}))}));return r.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{re(e,n),e.removeEventListener("slotchange",o),r.disconnect(),e.removeEventListener(g.a8.REGISTER_MEDIA_STATE_RECEIVER,i),e.removeEventListener(g.a8.UNREGISTER_MEDIA_STATE_RECEIVER,s)}};_.Au.customElements.get("media-controller")||_.Au.customElements.define("media-controller",ee);var he=ee,ce=n(7358);const ue='<svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/>\n</svg>\n',me=e=>{const t=e.mediaIsAirplaying?(0,f.t)("stop airplay"):(0,f.t)("start airplay");e.setAttribute("aria-label",t)};class pe extends ce.T{static get observedAttributes(){return[...super.observedAttributes,g.GC.MEDIA_IS_AIRPLAYING,g.GC.MEDIA_AIRPLAY_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),me(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===g.GC.MEDIA_IS_AIRPLAYING&&me(this)}get mediaIsAirplaying(){return(0,k.Y_)(this,g.GC.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){(0,k.QW)(this,g.GC.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return(0,k.vT)(this,g.GC.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){(0,k.tA)(this,g.GC.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){const e=new _.Au.CustomEvent(g.a8.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}}pe.getSlotTemplateHTML=function(e){return`\n <style>\n :host([${g.GC.MEDIA_IS_AIRPLAYING}]) slot[name=icon] slot:not([name=exit]) {\n display: none !important;\n }\n\n \n :host(:not([${g.GC.MEDIA_IS_AIRPLAYING}])) slot[name=icon] slot:not([name=enter]) {\n display: none !important;\n }\n\n :host([${g.GC.MEDIA_IS_AIRPLAYING}]) slot[name=tooltip-enter],\n :host(:not([${g.GC.MEDIA_IS_AIRPLAYING}])) slot[name=tooltip-exit] {\n display: none;\n }\n </style>\n\n <slot name="icon">\n <slot name="enter">${ue}</slot>\n <slot name="exit">${ue}</slot>\n </slot>\n `},pe.getTooltipContentHTML=function(){return`\n <slot name="tooltip-enter">${(0,f.t)("start airplay")}</slot>\n <slot name="tooltip-exit">${(0,f.t)("stop airplay")}</slot>\n `},_.Au.customElements.get("media-airplay-button")||_.Au.customElements.define("media-airplay-button",pe);const Ee=e=>{e.setAttribute("aria-checked",(0,S.VV)(e).toString())};class be extends ce.T{static get observedAttributes(){return[...super.observedAttributes,g.GC.MEDIA_SUBTITLES_LIST,g.GC.MEDIA_SUBTITLES_SHOWING]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-label",(0,f.t)("closed captions")),Ee(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===g.GC.MEDIA_SUBTITLES_SHOWING&&Ee(this)}get mediaSubtitlesList(){return ve(this,g.GC.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){ge(this,g.GC.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return ve(this,g.GC.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){ge(this,g.GC.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new _.Au.CustomEvent(g.a8.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}}be.getSlotTemplateHTML=function(e){return'\n <style>\n :host([aria-checked="true"]) slot[name=off] {\n display: none !important;\n }\n\n \n :host(:not([aria-checked="true"])) slot[name=on] {\n display: none !important;\n }\n\n :host([aria-checked="true"]) slot[name=tooltip-enable],\n :host(:not([aria-checked="true"])) slot[name=tooltip-disable] {\n display: none;\n }\n </style>\n\n <slot name="icon">\n <slot name="on"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79
10 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>\n</svg></slot>\n <slot name="off"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>\n</svg></slot>\n </slot>\n '},be.getTooltipContentHTML=function(){return`\n <slot name="tooltip-enable">${(0,f.t)("Enable captions")}</slot>\n <slot name="tooltip-disable">${(0,f.t)("Disable captions")}</slot>\n `};const ve=(e,t)=>{const n=e.getAttribute(t);return n?(0,S.W5)(n):[]},ge=(e,t,n)=>{if(!(null==n?void 0:n.length))return void e.removeAttribute(t);const i=(0,S.mc)(n);e.getAttribute(t)!==i&&e.setAttribute(t,i)};_.Au.customElements.get("media-captions-button")||_.Au.customElements.define("media-captions-button",be);const Ae=e=>{const t=e.mediaIsCasting?(0,f.t)("stop casting"):(0,f.t)("start casting");e.setAttribute("aria-label",t)};class fe extends ce.T{static get observedAttributes(){return[...super.observedAttributes,g.GC.MEDIA_IS_CASTING,g.GC.MEDIA_CAST_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),Ae(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===g.GC.MEDIA_IS_CASTING&&Ae(this)}get mediaIsCasting(){return(0,k.Y_)(this,g.GC.MEDIA_IS_CASTING)}set mediaIsCasting(e){(0,k.QW)(this,g.GC.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return(0,k.vT)(this,g.GC.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){(0,k.tA)(this,g.GC.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){const e=this.mediaIsCasting?g.a8.MEDIA_EXIT_CAST_REQUEST:g.a8.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new _.Au.CustomEvent(e,{composed:!0,bubbles:!0}))}}fe.getSlotTemplateHTML=function(e){return`\n <style>\n :host([${g.GC.MEDIA_IS_CASTING}]) slot[name=icon] slot:not([name=exit]) {\n display: none !important;\n }\n\n \n :host(:not([${g.GC.MEDIA_IS_CASTING}])) slot[name=icon] slot:not([name=enter]) {\n display: none !important;\n }\n\n :host([${g.GC.MEDIA_IS_CASTING}]) slot[name=tooltip-enter],\n :host(:not([${g.GC.MEDIA_IS_CASTING}])) slot[name=tooltip-exit] {\n display: none;\n }\n </style>\n\n <slot name="icon">\n <slot name="enter"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg></slot>\n <slot name="exit"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg></slot>\n </slot>\n `},fe.getTooltipContentHTML=function(){return`\n <slot name="tooltip-enter">${(0,f.t)("Start casting")}</slot>\n <slot name="tooltip-exit">${(0,f.t)("Stop casting")}</slot>\n `},_.Au.customElements.get("media-cast-button")||_.Au.customElements.define("media-cast-button",fe);var Ie,_e,Te,ye,Se,ke,Le,Ce,we,Me,Re,De,Ue,Oe,Ne,xe=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)}
1,Pe=(e,t,n)=>(xe(e,t,"read from private field"),n?n.call(e):t.get(e)),Ge=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},He=(e,t,n,i)=>(xe(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),We=(e,t,n)=>(xe(e,t,"access private method"),n);const $e="open";class Be extends _.Au.HTMLElement{constructor(){super(),Ge(this,ye),Ge(this,ke),Ge(this,Ce),Ge(this,Me),Ge(this,De),Ge(this,Oe),Ge(this,Ie,!1),Ge(this,_e,null),Ge(this,Te,null)}static get observedAttributes(){return[$e,"anchor"]}get open(){return(0,k.Y_)(this,$e)}set open(e){(0,k.QW)(this,$e,e)}handleEvent(e){switch(e.type){case"invoke":We(this,Me,Re).call(this,e);break;case"focusout":We(this,De,Ue).call(this,e);break;case"keydown":We(this,Oe,Ne).call(this,e)}}connectedCallback(){We(this,ye,Se).call(this),this.role||(this.role="dialog"),this.addEventListener("invoke",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this)}disconnectedCallback(){this.removeEventListener("invoke",this),this.removeEventListener("focusout",this),this.removeEventListener("keydown",this)}attributeChangedCallback(e,t,n){We(this,ye,Se).call(this),e===$e&&n!==t&&(this.open?We(this,ke,Le).call(this):We(this,Ce,we).call(this))}focus(){He(this,_e,(0,k.bq)());const e=!this.dispatchEvent(new Event("focus",{composed:!0,cancelable:!0})),t=!this.dispatchEvent(new Event("focusin",{composed:!0,bubbles:!0,cancelable:!0}));if(e||t)return;const n=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==n||n.focus()}get keysUsed(){return["Escape","Tab"]}}Ie=new WeakMap,_e=new WeakMap,Te=new WeakMap,ye=new WeakSet,Se=function(){if(!Pe(this,Ie)&&(He(this,Ie,!0),!this.shadowRoot)){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,k.kg)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e),queueMicrotask((()=>{const{style:e}=(0,k.aQ)(this.shadowRoot,":host");e.setProperty("transition","display .15s, visibility .15s, opacity .15s ease-in, transform .15s ease-in")}))}},ke=new WeakSet,Le=function(){var e;null==(e=Pe(this,Te))||e.setAttribute("aria-expanded","true"),this.dispatchEvent(new Event("open",{composed:!0,bubbles:!0})),this.addEventListener("transitionend",(()=>this.focus()),{once:!0})},Ce=new WeakSet,we=function(){var e;null==(e=Pe(this,Te))||e.setAttribute("aria-expanded","false"),this.dispatchEvent(new Event("close",{composed:!0,bubbles:!0}))},Me=new WeakSet,Re=function(e){He(this,Te,e.relatedTarget),(0,k.qg)(this,e.relatedTarget)||(this.open=!this.open)},De=new WeakSet,Ue=function(e){var t;(0,k.qg)(this,e.relatedTarget)||(null==(t=Pe(this,_e))||t.focus(),Pe(this,Te)&&Pe(this,Te)!==e.relatedTarget&&this.open&&(this.open=!1))},Oe=new WeakSet,Ne=function(e){var t,n,i,s,a;const{key:o,ctrlKey:r,altKey:l,metaKey:d}=e;r||l||d||this.keysUsed.includes(o)&&(e.preventDefault(),e.stopPropagation(),"Tab"===o?(e.shiftKey?null==(n=null==(t=this.previousElementSibling)?void 0:t.focus)||n.call(t):null==(s=null==(i=this.nextElementSibling)?void 0:i.focus)||s.call(i),this.blur()):"Escape"===o&&(null==(a=Pe(this,_e))||a.focus(),this.open=!1))},Be.shadowRootOptions={mode:"open"},Be.getTemplateHTML=function(e){return`\n <style>\n :host {\n font: var(--media-font,\n var(--media-font-weight, normal)\n var(--media-font-size, 14px) /\n var(--media-text-content-height, var(--media-control-height, 24px))\n var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n display: var(--media-dialog-display, inline-flex);\n justify-content: center;\n align-items: center;\n \n transition-behavior: allow-discrete;\n visibility: hidden;\n opacity: 0;\n transform: translateY(2px) scale(.99);\n pointer-events: none;\n }\n\n :host([open]) {\n transition: display .2s, visibility 0s, opacity .2s ease-out, transform .15s ease-out;\n visibility: visible;\n opacity: 1;\n transform: translateY(0) scale(1);\n pointer-events: auto;\n }\n\n #content {\n display: flex;\n position: relative;\n box-sizing: border-box;\n width: min(320px, 100%);\n word-wrap: break-word;\n max-height: 100%;\n overflow: auto;\n text-align: center;\n line-height: 1.4;\n }\n </style>
1\n ${this.getSlotTemplateHTML(e)}\n `},Be.getSlotTemplateHTML=function(e){return'\n <slot id="content"></slot>\n '},_.Au.customElements.get("media-chrome-dialog")||_.Au.customElements.define("media-chrome-dialog",Be),n(28265);var Ve,Qe=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},qe=(e,t,n)=>(Qe(e,t,"read from private field"),n?n.call(e):t.get(e)),Ye=(e,t,n,i)=>(Qe(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);class Ke extends _.Au.HTMLElement{constructor(){if(super(),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,Ve),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,k.kg)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[g.Ex.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,n){var i,s,a,o,r;e===g.Ex.MEDIA_CONTROLLER&&(t&&(null==(s=null==(i=qe(this,Ve))?void 0:i.unassociateElement)||s.call(i,this),Ye(this,Ve,null)),n&&this.isConnected&&(Ye(this,Ve,null==(a=this.getRootNode())?void 0:a.getElementById(n)),null==(r=null==(o=qe(this,Ve))?void 0:o.associateElement)||r.call(o,this)))}connectedCallback(){var e,t,n;const i=this.getAttribute(g.Ex.MEDIA_CONTROLLER);i&&(Ye(this,Ve,null==(e=this.getRootNode())?void 0:e.getElementById(i)),null==(n=null==(t=qe(this,Ve))?void 0:t.associateElement)||n.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=qe(this,Ve))?void 0:e.unassociateElement)||t.call(e,this),Ye(this,Ve,null)}}Ve=new WeakMap,Ke.shadowRootOptions={mode:"open"},Ke.getTemplateHTML=function(e){return'\n <style>\n :host {\n \n box-sizing: border-box;\n display: var(--media-control-display, var(--media-control-bar-display, inline-flex));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n --media-loading-indicator-icon-height: 44px;\n }\n\n ::slotted(media-time-range),\n ::slotted(media-volume-range) {\n min-height: 100%;\n }\n\n ::slotted(media-time-range),\n ::slotted(media-clip-selector) {\n flex-grow: 1;\n }\n\n ::slotted([role="menu"]) {\n position: absolute;\n }\n </style>\n\n <slot></slot>\n '},_.Au.customElements.get("media-control-bar")||_.Au.customElements.define("media-control-bar",Ke);var Fe,je=n(84951),Ze=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ze=(e,t,n)=>(Ze(e,t,"read from private field"),n?n.call(e):t.get(e));class Xe extends je.e{constructor(){var e,t,n,i;super(),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,Fe),t=this,n=Fe,i=this.shadowRoot.querySelector("slot"),Ze(t,n,"write to private field"),n.set(t,i),ze(this,Fe).textContent=(0,A.fU)(null!=(e=this.mediaDuration)?e:0)}static get observedAttributes(){return[...super.observedAttributes,g.GC.MEDIA_DURATION]}attributeChangedCallback(e,t,n){e===g.GC.MEDIA_DURATION&&(ze(this,Fe).textContent=(0,A.fU)(+n)),super.attributeChangedCallback(e,t,n)}get mediaDuration(){return(0,k.dm)(this,g.GC.MEDIA_DURATION)}set mediaDuration(e){(0,k.pK)(this,g.GC.MEDIA_DURATION,e)}}Fe=new WeakMap,Xe.getSlotTemplateHTML=function(e,t){return`\n <slot>${(0,A.fU)(t.mediaDuration)}</slot>\n `},_.Au.customElements.get("media-duration-display")||_.Au.customElements.define("media-duration-display",Xe);const Je={2:(0,f.t)("Network Error"),3:(0,f.t)("Decode Error"),4:(0,f.t)("Source Not Supported"),5:(0,f.t)("Encryption
1Error")},et={2:(0,f.t)("A network error caused the media download to fail."),3:(0,f.t)("A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format."),4:(0,f.t)("An unsupported error occurred. The server or network failed, or your browser does not support this format."),5:(0,f.t)("The media is encrypted and there are no keys to decrypt it.")},tt=e=>{var t,n;return 1===e.code?null:{title:null!=(t=Je[e.code])?t:`Error ${e.code}`,message:null!=(n=et[e.code])?n:e.message}};var nt,it=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};function st(e){var t;const{title:n,message:i}=null!=(t=tt(e))?t:{};let s="";return n&&(s+=`<slot name="error-${e.code}-title"><h3>${n}</h3></slot>`),i&&(s+=`<slot name="error-${e.code}-message"><p>${i}</p></slot>`),s}const at=[g.GC.MEDIA_ERROR_CODE,g.GC.MEDIA_ERROR_MESSAGE];class ot extends Be{constructor(){super(...arguments),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,null)})(this,nt)}static get observedAttributes(){return[...super.observedAttributes,...at]}formatErrorMessage(e){return this.constructor.formatErrorMessage(e)}attributeChangedCallback(e,t,n){var i;if(super.attributeChangedCallback(e,t,n),!at.includes(e))return;const s=null!=(i=this.mediaError)?i:{code:this.mediaErrorCode,message:this.mediaErrorMessage};var a;if(this.open=(a=s).code&&null!==tt(a),this.open&&(this.shadowRoot.querySelector("slot").name=`error-${this.mediaErrorCode}`,this.shadowRoot.querySelector("#content").innerHTML=this.formatErrorMessage(s),!this.hasAttribute("aria-label"))){const{title:e}=tt(s);e&&this.setAttribute("aria-label",e)}}get mediaError(){return it(this,e=nt,"read from private field"),e.get(this);var e}set mediaError(e){((e,t,n)=>{it(e,t,"write to private field"),t.set(e,n)})(this,nt,e)}get mediaErrorCode(){return(0,k.dm)(this,"mediaerrorcode")}set mediaErrorCode(e){(0,k.pK)(this,"mediaerrorcode",e)}get mediaErrorMessage(){return(0,k.vT)(this,"mediaerrormessage")}set mediaErrorMessage(e){(0,k.tA)(this,"mediaerrormessage",e)}}nt=new WeakMap,ot.getSlotTemplateHTML=function(e){return`\n <style>\n :host {\n background: rgb(20 20 30 / .8);\n }\n\n #content {\n display: block;\n padding: 1.2em 1.5em;\n }\n\n h3,\n p {\n margin-block: 0 .3em;\n }\n </style>\n <slot name="error-${e.mediaerrorcode}" id="content">\n ${st({code:+e.mediaerrorcode,message:e.mediaerrormessage})}\n </slot>\n `},ot.formatErrorMessage=st,_.Au.customElements.get("media-error-dialog")||_.Au.customElements.define("media-error-dialog",ot);var rt,lt,dt=ot,ht=(e,t,n)=>(((e,t)=>{if(!t.has(e))throw TypeError("Cannot read from private field")})(e,t),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};class ut extends Be{constructor(){super(...arguments),ct(this,rt,(e=>{var t;if(!this.open)return;const n=null==(t=this.shadowRoot)?void 0:t.querySelector("#content");if(!n)return;const i=e.composedPath(),s=i[0]===this||i.includes(this),a=i.includes(n);s&&!a&&(this.open=!1)})),ct(this,lt,(e=>{if(!this.open)return;const t=e.shiftKey&&("/"===e.key||"?"===e.key);"Escape"!==e.key&&!t||e.ctrlKey||e.altKey||e.metaKey||(this.open=!1,e.preventDefault(),e.stopPropagation())}))}connectedCallback(){super.connectedCallback(),this.open&&(this.addEventListener("click",ht(this,rt)),document.addEventListener("keydown",ht(this,lt)))}disconnectedCallback(){this.removeEventListener("click",ht(this,rt)),document.removeEventListener("keydown",ht(this,lt))}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),"open"===e&&(this.open?(this.addEventListener("click",ht(this,rt)),document.addEventListener("keydown",ht(this,lt))):(this.removeEventListener("click",ht(this,rt)),document.removeEventListener("keydown",ht(this,lt))))}}rt=new WeakMap,lt=new WeakMap,ut.getSlotTemplateHTML=function(e){return`\n <style>\n :host {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 9999;\n background: rgb(20 20 30 / .8);\n backdrop-filter: blur(10px);\n }\n\n #content {\n display: block;\n width: clamp(400px, 40vw, 700px);\n max-width: 90vw;\n text-align: left;\n }\n\n h2 {\n margin: 0 0 1.5rem 0;\n font-size: 1.5rem;\n font-weight: 500;\n text-align: center;\n }\n\n .shortcuts-table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .shortcuts-table tr {\n border-bottom: 1px solid rgba(255, 255, 255, 0.1);\n }\n\n .shortcuts-table tr:last-child {\n border-bottom: none;\n }\n\n .shortcuts-table td {\n padding: 0.75rem 0.5rem;\n }\n\n .shortcuts-table td:first-child {\n text-align: right;\n padding-right: 1rem;\n width: 40%;\n min-width: 120px;\n }\n\n .shortcuts-table td:last-child {\n padding-left: 1rem;\n }\n\n .key {\n display: inline-block;\n background: rgba(255, 255, 255, 0.15);\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 4px;\n padding: 0.25rem 0.5rem;\n font-family: 'Courier New', monospace;\n font-size: 0.9rem;\n font-weight: 500;\n min-width: 1.5rem;\n text-align: center;\n margin: 0 0.2rem;\n }\n\n .description {\n color: rgba(255, 255, 255, 0.9);\n font-size: 0.95rem;\n }\n\n .key-combo {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.3rem;\n }\n\n .key-separator {\n color: rgba(255, 255, 255, 0.5);\n font-size: 0.9rem;\n }\n </style>\n <slot id="content">\n \n <h2>Keyboard Shortcuts</h2>\n <table class="shortcuts-table">${[{keys:["Space","k"],description:"Toggle Playback"},{keys:["m"],description:"Toggle mute"},{keys:["f"],description:"Toggle fullscreen"},{keys:["c"],description:"Toggle captions or subtitles, if available"},{keys:["p"],description:"Toggle Picture in Picture"},{keys:["â","j"],description:"Seek back 10s"},{keys:["â","l"],description:"Seek forward 10s"},{keys:["â"],description:"Turn volume up"},{keys:["â"],description:"Turn volume down"},{keys:["< (SHIFT+,)"],description:"Decrease playback rate"},{keys:["> (SHIFT+.)"],description:"Increase playback rate"}].map((({keys:e,description:t})=>`\n <tr>\n <td>\n <div class="key-combo">${e.map(((e,t)=>t>0?`<span class="key-separator">or</span><span class="key">${e}</span>`:`<span class="key">${e}</span>`)).join("")}</div>\n </td>\n <td class="description">${t}</td>\n </tr>\n `)).join("")}</table>\n \n </slot>\n `},_.Au.customElements.get("media-keyboard-shortcuts-dialog")||_.Au.customElements.define("media-keyboard-shortcuts-dialog",ut);
1var mt,pt=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};const Et=e=>{const t=e.mediaIsFullscreen?(0,f.t)("exit fullscreen mode"):(0,f.t)("enter fullscreen mode");e.setAttribute("aria-label",t)};class bt extends ce.T{constructor(){super(...arguments),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,null)})(this,mt)}static get observedAttributes(){return[...super.observedAttributes,g.GC.MEDIA_IS_FULLSCREEN,g.GC.MEDIA_FULLSCREEN_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),Et(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===g.GC.MEDIA_IS_FULLSCREEN&&Et(this)}get mediaFullscreenUnavailable(){return(0,k.vT)(this,g.GC.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){(0,k.tA)(this,g.GC.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return(0,k.Y_)(this,g.GC.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){(0,k.QW)(this,g.GC.MEDIA_IS_FULLSCREEN,e)}handleClick(e){var t,n;n=e,pt(this,t=mt,"write to private field"),t.set(this,n);const i=((e,t)=>(pt(e,t,"read from private field"),t.get(e)))(this,mt)instanceof PointerEvent,s=this.mediaIsFullscreen?new _.Au.CustomEvent(g.a8.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0}):new _.Au.CustomEvent(g.a8.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0,detail:i});this.dispatchEvent(s)}}mt=new WeakMap,bt.getSlotTemplateHTML=function(e){return`\n <style>\n :host([${g.GC.MEDIA_IS_FULLSCREEN}]) slot[name=icon] slot:not([name=exit]) {\n display: none !important;\n }\n\n \n :host(:not([${g.GC.MEDIA_IS_FULLSCREEN}])) slot[name=icon] slot:not([name=enter]) {\n display: none !important;\n }\n\n :host([${g.GC.MEDIA_IS_FULLSCREEN}]) slot[name=tooltip-enter],\n :host(:not([${g.GC.MEDIA_IS_FULLSCREEN}])) slot[name=tooltip-exit] {\n display: none;\n }\n </style>\n\n <slot name="icon">\n <slot name="enter"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>\n</svg></slot>\n <slot name="exit"><svg aria-hidden="true" viewBox="0 0 26 24">\n <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>\n</svg></slot>\n </slot>\n `},bt.getTooltipContentHTML=function(){return`\n <slot name="tooltip-enter">${(0,f.t)("Enter fullscreen mode")}</slot>\n <slot name="tooltip-exit">${(0,f.t)("Exit fullscreen mode")}</slot>\n `},_.Au.customElements.get("media-fullscreen-button")||_.Au.customElements.define("media-fullscreen-button",bt),n(72880);const{MEDIA_TIME_IS_LIVE:vt,MEDIA_PAUSED:gt}=g.GC,{MEDIA_SEEK_TO_LIVE_REQUEST:At,MEDIA_PLAY_REQUEST:ft}=g.a8,It=e=>{var t;const n=e.mediaPaused||!e.mediaTimeIsLive,i=n?(0,f.t)("seek to live"):(0,f.t)("playing live");e.setAttribute("aria-label",i);const s=null==(t=e.shadowRoot)?void 0:t.querySelector('slot[name="text"]');s&&(s.textContent=(0,f.t)("live")),n?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true")};class _t extends ce.T{static get observedAttributes(){return[...super.observedAttributes,vt,gt]}connectedCallback(){super.connectedCallback(),It(this)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),It(this)}get mediaPaused(){return(0,k.Y_)(this,g.GC.MEDIA_PAUSED)}set mediaPaused(e){(0,k.QW)(this,g.GC.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return(0,k.Y_)(this,g.GC.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){(0,k.QW)(this,g.GC.MEDIA_TIME_IS_LIVE,e)}handleClick(){!this.mediaPaused&&this.mediaTimeIsLive||(this.dispatchEvent(new _.Au.CustomEvent(At,{composed:!0,bubbles:!0})),this.hasAttribute(gt)&&this.dispatchEvent(new _.Au.CustomEvent(ft,{composed:!0,bubbles:!0})))}}_t.getSlotTemplateHTML=function(e){return`\n <style>\n :host { --media-tooltip-display: none; }\n \n slot[name=indicator] > *,\n :host ::slotted([slot=indicator]) {\n \n min-width: auto;\n fill: var(--media-live-button-icon-color, rgb(140, 140, 140));\n color: var(--media-live-button-icon-color, rgb(140, 140, 140));\n }\n\n :host([${vt}]:not([${gt}])) slot[name=indicator] > *,\n :host([${vt}]:not([${gt}])) ::slotted([slot=indicator]) {\n fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));\n color: var(--media-live-button-indicator-color, rgb(255, 0, 0));\n }\n\n :host([${vt}]:not([${gt}])) {\n cursor: var(--media-cursor, not-allowed);\n }\n\n slot[name=text]{\n text-transform: uppercase;\n }\n\n </style>\n\n <slot name="indicator"><svg viewBox="0 0 6 12" aria-hidden="true"><circle cx="3" cy="6" r="2"></circle></svg></slot>\n \n <slot name="spacer"> </slot><slot name="text">${(0,f.t)("live")}</slot>\n `},_.Au.customElements.get("media-live-button")||_.Au.customElements.define("media-live-button",_t),n(16203),n(47691),n(47107),n(10),n(30598),n(64434),n(24108),n(67582),n(30706),n(90982),n(1604),n(89385),n(99326),n(82932),n(70801),n(46898)},18584:(e,t,n)=>{n.d(t,{En:()=>i});const i={"Start airplay":"Start airplay","Stop airplay":"Stop airplay",Audio:"Audio",Captions:"Captions","Enable captions":"Enable captions","Disable captions":"Disable captions","Start casting":"Start casting","Stop casting":"Stop casting","Enter fullscreen mode":"Enter fullscreen mode","Exit fullscreen mode":"Exit fullscreen mode",Mute:"Mute",Unmute:"Unmute",Loop:"Loop","Enter picture in picture mode":"Enter picture in picture mode","Exit picture in picture mode":"Exit picture in picture mode",Play:"Play",Pause:"Pause","Playback rate":"Playback rate","Playback rate {playbackRate}":"Playback rate {playbackRate}",Quality:"Quality","Seek backward":"Seek backward","Seek forward":"Seek forward",Settings:"Settings",Auto:"Auto","audio player":"audio player","video player":"video player",volume:"volume",seek:"seek","closed captions":"closed captions","current playback rate":"current playback rate","playback time":"playback time","media loading":"media loading",settings:"settings","audio tracks":"audio tracks",quality:"quality",play:"play",pause:"pause",mute:"mute",unmute:"unmute","chapter: {chapterName}":"chapter: {chapterName}",live:"live",Off:"Off","start airplay":"start airplay","stop airplay":"stop airplay","start casting":"start casting","stop casting":"stop casting","enter fullscreen mode":"enter fullscreen mode","exit fullscreen mode":"exit fullscreen mode","enter picture in picture mode":"enter picture in picture mode","exit picture in picture mode":"exit picture in picture mode","seek to live":"seek to live","playing live":"playing live","seek back {seekOffset} seconds":"seek back {seekOffset} seconds","seek forward {seekOffset} seconds":"seek forward {seekOffset} seconds","Network Error":"Network Error","Decode Error":"Decode Error","S
1ource Not Supported":"Source Not Supported","Encryption Error":"Encryption Error","A network error caused the media download to fail.":"A network error caused the media download to fail.","A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.":"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.","An unsupported error occurred. The server or network failed, or your browser does not support this format.":"An unsupported error occurred. The server or network failed, or your browser does not support this format.","The media is encrypted and there are no keys to decrypt it.":"The media is encrypted and there are no keys to decrypt it.",hour:"hour",hours:"hours",minute:"minute",minutes:"minutes",second:"second",seconds:"seconds","{time} remaining":"{time} remaining","{currentTime} of {totalTime}":"{currentTime} of {totalTime}","video not loaded, unknown time.":"video not loaded, unknown time."}},7358:(e,t,n)=>{n.d(t,{T:()=>I});var i,s,a,o,r,l,d,h=n(17055),c=n(82932),u=n(50456),m=n(72358),p=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},E=(e,t,n)=>(p(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},v=(e,t,n,i)=>(p(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);const g="tooltipplacement",A="disabled",f="notooltip";class I extends m.Au.HTMLElement{constructor(){if(super(),b(this,l),b(this,i,void 0),this.preventClick=!1,this.tooltipEl=null,b(this,s,(e=>{this.preventClick||this.handleClick(e),setTimeout(E(this,a),0)})),b(this,a,(()=>{var e,t;null==(t=null==(e=this.tooltipEl)?void 0:e.updateXOffset)||t.call(e)})),b(this,o,(e=>{const{key:t}=e;this.keysUsed.includes(t)?this.preventClick||this.handleClick(e):this.removeEventListener("keyup",E(this,o))})),b(this,r,(e=>{const{metaKey:t,altKey:n,key:i}=e;t||n||!this.keysUsed.includes(i)?this.removeEventListener("keyup",E(this,o)):this.addEventListener("keyup",E(this,o),{once:!0})})),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,u.kg)(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.tooltipEl=this.shadowRoot.querySelector("media-tooltip")}static get observedAttributes(){return["disabled",g,h.Ex.MEDIA_CONTROLLER,h.GC.MEDIA_LANG]}enable(){this.addEventListener("click",E(this,s)),this.addEventListener("keydown",E(this,r)),this.tabIndex=0}disable(){this.removeEventListener("click",E(this,s)),this.removeEventListener("keydown",E(this,r)),this.removeEventListener("keyup",E(this,o)),this.tabIndex=-1}attributeChangedCallback(e,t,n){var s,o,r,l,d;e===h.Ex.MEDIA_CONTROLLER?(t&&(null==(o=null==(s=E(this,i))?void 0:s.unassociateElement)||o.call(s,this),v(this,i,null)),n&&this.isConnected&&(v(this,i,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(d=null==(l=E(this,i))?void 0:l.associateElement)||d.call(l,this))):"disabled"===e&&n!==t?null==n?this.enable():this.disable():e===g&&this.tooltipEl&&n!==t?this.tooltipEl.placement=n:e===h.GC.MEDIA_LANG&&(this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML=this.constructor.getTooltipContentHTML()),E(this,a).call(this)}connectedCallback(){var e,t,n;const{style:s}=(0,u.aQ)(this.shadowRoot,":host");s.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")?this.disable():this.enable(),this.setAttribute("role","button");const a=this.getAttribute(h.Ex.MEDIA_CONTROLLER);a&&(v(this,i,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(n=null==(t=E(this,i))?void 0:t.associateElement)||n.call(t,this)),m.Au.customElements.whenDefined("media-tooltip").then((()=>{return(e=l,t=d,p(this,e,"access private method"),t).call(this);var e,t}))}disconnectedCallback(){var e,t;this.disable(),null==(t=null==(e=E(this,i))?void 0:e.unassociateElement)||t.call(e,this),v(this,i,null),this.removeEventListener("mouseenter",E(this,a)),this.removeEventListener("focus",E(this,a)),this.removeEventListener("click",E(this,s))}get keysUsed(){return["Enter"," "]}get tooltipPlacement(){return(0,u.vT)(this,g)}set tooltipPlacement(e){(0,u.tA)(this,g,e)}get mediaController(){return(0,u.vT)(this,h.Ex.MEDIA_CONTROLLER)}set mediaController(e){(0,u.tA)(this,h.Ex.MEDIA_CONTROLLER,e)}get disabled(){return(0,u.Y_)(this,A)}set disabled(e){(0,u.QW)(this,A,e)}get noTooltip(){return(0,u.Y_)(this,f)}set noTooltip(e){(0,u.QW)(this,f,e)}handleClick(e){}}i=new WeakMap,s=new WeakMap,a=new WeakMap,o=new WeakMap,r=new WeakMap,l=new WeakSet,d=function(){this.addEventListener("mouseenter",E(this,a)),this.addEventListener("focus",E(this,a)),this.addEventListener("click",E(this,s));const e=this.tooltipPlacement;e&&this.tooltipEl&&(this.tooltipEl.placement=e)},I.shadowRootOptions={mode:"open"},I.getTemplateHTML=function(e,t={}){return`\n <style>\n :host {\n position: relative;\n font: var(--media-font,\n var(--media-font-weight, bold)\n var(--media-font-size, 14px) /\n var(--media-text-content-height, var(--media-control-height, 24px))\n var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));\n padding: var(--media-button-padding, var(--media-control-padding, 10px));\n justify-content: var(--media-button-justify-content, center);\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n box-sizing: border-box;\n transition: background .15s linear;\n pointer-events: auto;\n cursor: var(--media-cursor, pointer);\n -webkit-tap-highlight-color: transparent;\n }\n\n \n :host(:focus-visible) {\n box-shadow: var(--media-focus-box-sha
1dow, inset 0 0 0 2px rgb(27 127 204 / .9));\n outline: 0;\n }\n \n :host(:where(:focus)) {\n box-shadow: none;\n outline: 0;\n }\n\n :host(:hover) {\n background: var(--media-control-hover-background, rgba(50 50 70 / .7));\n }\n\n slot[name="icon"] {\n display: inline-flex;\n align-items: center;\n }\n\n svg, img, ::slotted(svg), ::slotted(img) {\n width: var(--media-button-icon-width);\n height: var(--media-button-icon-height, var(--media-control-height, 24px));\n transform: var(--media-button-icon-transform);\n transition: var(--media-button-icon-transition);\n fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));\n vertical-align: middle;\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n }\n\n media-tooltip {\n \n max-width: 0;\n overflow-x: clip;\n opacity: 0;\n transition: opacity .3s, max-width 0s 9s;\n }\n\n :host(:hover) media-tooltip,\n :host(:focus-visible) media-tooltip {\n max-width: 100vw;\n opacity: 1;\n transition: opacity .3s;\n }\n\n :host([notooltip]) slot[name="tooltip"] {\n display: none;\n }\n </style>\n\n ${this.getSlotTemplateHTML(e,t)}\n\n <slot name="tooltip">\n <media-tooltip part="tooltip" aria-hidden="true">\n <template shadowrootmode="${c.A.shadowRootOptions.mode}">\n ${c.A.getTemplateHTML({})}\n </template>\n <slot name="tooltip-content">\n ${this.getTooltipContentHTML(e)}\n </slot>\n </media-tooltip>\n </slot>\n `},I.getSlotTemplateHTML=function(e,t){return"\n <slot></slot>\n "},I.getTooltipContentHTML=function(){return""},m.Au.customElements.get("media-chrome-button")||m.Au.customElements.define("media-chrome-button",I)},28265:(e,t,n)=>{n.d(t,{Y:()=>P});var i,s,a,o,r,l,d,h,c,u,m,p,E,b,v,g,A,f,I,_,T,y,S,k,L,C=n(17055),w=n(72358),M=n(50456),R=n(27617),D=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},U=(e,t,n)=>(D(e,t,"read from private field"),n?n.call(e):t.get(e)),O=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},N=(e,t,n,i)=>(D(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),x=(e,t,n)=>(D(e,t,"access private method"),n);class P extends w.Au.HTMLElement{constructor(){if(super(),O(this,u),O(this,p),O(this,b),O(this,g),O(this,f),O(this,_),O(this,y),O(this,k),O(this,i,void 0),O(this,s,void 0),O(this,a,void 0),O(this,o,void 0),O(this,r,{}),O(this,l,[]),O(this,d,(()=>{if(this.range.matches(":focus-visible")){const{style:e}=(0,M.aQ)(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}})),O(this,h,(()=>{const{style:e}=(0,M.aQ)(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")})),O(this,c,(()=>{const e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)})),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,M.kg)(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.container=this.shadowRoot.querySelector("#container"),N(this,a,this.shadowRoot.querySelector("#startpoint")),N(this,o,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",C.Ex.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,n){var s,a,o,r,l;e===C.Ex.MEDIA_CONTROLLER?(t&&(null==(a=null==(s=U(this,i))?void 0:s.unassociateElement)||a.call(s,this),N(this,i,null)),n&&this.isConnected&&(N(this,i,null==(o=this.getRootNode())?void 0:o.getElementById(n)),null==(l=null==(r=U(this,i))?void 0:r.associateElement)||l.call(r,this))):("disabled"===e||"aria-disabled"===e&&t!==n)&&(null==n?(this.range.removeAttribute(e),x(this,p,E).call(this)):(this.range.setAttribute(e,n),x(this,b,v).call(this)))}connectedCallback(){var e,t,n;const{style:s}
1=(0,M.aQ)(this.shadowRoot,":host");s.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),U(this,r).pointer=(0,M.aQ)(this.shadowRoot,"#pointer"),U(this,r).progress=(0,M.aQ)(this.shadowRoot,"#progress"),U(this,r).thumb=(0,M.aQ)(this.shadowRoot,'#thumb, ::slotted([slot="thumb"])'),U(this,r).activeSegment=(0,M.aQ)(this.shadowRoot,"#segments-clipping rect:nth-child(0)");const a=this.getAttribute(C.Ex.MEDIA_CONTROLLER);a&&(N(this,i,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(n=null==(t=U(this,i))?void 0:t.associateElement)||n.call(t,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",U(this,d)),this.shadowRoot.addEventListener("focusout",U(this,h)),x(this,p,E).call(this),(0,R.v)(this.container,U(this,c))}disconnectedCallback(){var e,t;x(this,b,v).call(this),null==(t=null==(e=U(this,i))?void 0:e.unassociateElement)||t.call(e,this),N(this,i,null),this.shadowRoot.removeEventListener("focusin",U(this,d)),this.shadowRoot.removeEventListener("focusout",U(this,h)),(0,R.u)(this.container,U(this,c))}updatePointerBar(e){var t;null==(t=U(this,r).pointer)||t.style.setProperty("width",100*this.getPointerRatio(e)+"%")}updateBar(){var e,t;const n=100*this.range.valueAsNumber;null==(e=U(this,r).progress)||e.style.setProperty("width",`${n}%`),null==(t=U(this,r).thumb)||t.style.setProperty("left",`${n}%`)}updateSegments(e){const t=this.shadowRoot.querySelector("#segments-clipping");if(t.textContent="",this.container.classList.toggle("segments",!!(null==e?void 0:e.length)),!(null==e?void 0:e.length))return;const n=[...new Set([+this.range.min,...e.flatMap((e=>[e.start,e.end])),+this.range.max])];N(this,l,[...n]);const i=n.pop();for(const[e,s]of n.entries()){const[a,o]=[0===e,e===n.length-1],r=a?"calc(var(--segments-gap) / -1)":100*s+"%",l=`calc(${100*((o?i:n[e+1])-s)}%${a||o?"":" - var(--segments-gap)"})`,d=w.Al.createElementNS("http://www.w3.org/2000/svg","rect"),h=(0,M.Vw)(this.shadowRoot,`#segments-clipping rect:nth-child(${e+1})`);h.style.setProperty("x",r),h.style.setProperty("width",l),t.append(d)}}getPointerRatio(e){return(0,M.DI)(e.clientX,e.clientY,U(this,a).getBoundingClientRect(),U(this,o).getBoundingClientRect())}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":x(this,k,L).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":x(this,f,I).call(this,e);break;case"pointerdown":x(this,g,A).call(this,e);break;case"pointerup":x(this,_,T).call(this);break;case"pointerleave":x(this,y,S).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}}i=new WeakMap,s=new WeakMap,a=new WeakMap,o=new WeakMap,r=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakMap,c=new WeakMap,u=new WeakSet,m=function(e){const t=U(this,r).activeSegment;if(!t)return;const n=this.getPointerRatio(e),i=`#segments-clipping rect:nth-child(${U(this,l).findIndex(((e,t,i)=>{const s=i[t+1];return null!=s&&n>=e&&n<=s}))+1})`;t.selectorText==i&&t.style.transform||(t.selectorText=i,t.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))},p=new WeakSet,E=function(){!this.hasAttribute("disabled")&&this.isConnected&&(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},b=new WeakSet,v=function(){var e,t;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),this.removeEventListener("pointerleave",this),null==(e=w.Au.window)||e.removeEventListener("pointerup",this),null==(t=w.Au.window)||t.removeEventListener("pointermove",this)},g=new WeakSet,A=function(e){var t;N(this,s,e.composedPath().includes(this.range)),null==(t=w.Au.window)||t.addEventListener("pointerup",this,{once:!0})},f=new WeakSet,I=function(e){var t;"mouse"!==e.pointerType&&x(this,g,A).call(this,e),this.addEventListener("pointerleave",this,{once:!0}),null==(t=w.Au.window)||t.addEventListener("pointermove",this)},_=new WeakSet,T=function(){var e;null==(e=w.Au.window)||e.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},y=new WeakSet,S=function(){var e,t;this.removeEventListener("pointerleave",this),null==(e=w.Au.window)||e.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),null==(t=U(this,r).activeSegment)||t.style.removeProperty("transform")},k=new WeakSet,L=function(e){"pen"===e.pointerType&&0===e.buttons||(this.toggleAttribute("dragging",1===e.buttons||"mouse"!==e.pointerType),this.updatePointerBar(e),x(this,u,m).call(this,e),!this.dragging||"mouse"===e.pointerType&&U(this,s)||(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(e),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))))},P.shadowRootOptions={mode:"open"},P.getTemplateHTML=function(e){return`\n <style>
1\n :host {\n --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));\n --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));\n\n box-shadow: var(--_focus-visible-box-shadow, none);\n background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));\n height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));\n display: inline-flex;\n align-items: center;\n \n vertical-align: middle;\n box-sizing: border-box;\n position: relative;\n width: 100px;\n transition: background .15s linear;\n cursor: var(--media-cursor, pointer);\n pointer-events: auto;\n touch-action: none; \n }\n\n \n input[type=range]:focus {\n outline: 0;\n }\n input[type=range]:focus::-webkit-slider-runnable-track {\n outline: 0;\n }\n\n :host(:hover) {\n background: var(--media-control-hover-background, rgb(50 50 70 / .7));\n }\n\n #leftgap {\n padding-left: var(--media-range-padding-left, var(--_media-range-padding));\n }\n\n #rightgap {\n padding-right: var(--media-range-padding-right, var(--_media-range-padding));\n }\n\n #startpoint,\n #endpoint {\n position: absolute;\n }\n\n #endpoint {\n right: 0;\n }\n\n #container {\n \n width: var(--media-range-track-width, 100%);\n transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n min-width: 40px;\n }\n\n #range {\n \n display: var(--media-time-range-hover-display, block);\n bottom: var(--media-time-range-hover-bottom, 0);\n height: var(--media-time-range-hover-height, max(100% , 25px));\n width: 100%;\n position: absolute;\n cursor: var(--media-cursor, pointer);\n\n -webkit-appearance: none; \n -webkit-tap-highlight-color: transparent;\n background: transparent; \n margin: 0;\n z-index: 1;\n }\n\n @media (hover: hover) {\n #range {\n bottom: var(--media-time-range-hover-bottom, 0);\n height: var(--media-time-range-hover-height, max(100%, 20px));\n }\n }\n\n \n \n #range::-webkit-slider-thumb {\n -webkit-appearance: none;\n background: transparent;\n width: .1px;\n height: .1px;\n }\n\n \n #range::-moz-range-thumb {\n background: transparent;\n border: transparent;\n width: .1px;\n height: .1px;\n }\n\n #appearance {\n height: var(--media-range-track-height, 4px);\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n position: absolute;\n \n will-change: transform;\n }\n\n #track {\n background: var(--media-range-track-background, rgb(255 255 255 / .2));\n border-radius: var(--media-range-track-border-radius, 1px);\n border: var(--media-range-track-border, none);\n outline: var(--media-range-track-outline);\n outline-offset: var(--media-range-track-outline-offset);\n backdrop-filter: var(--media-range-track-backdrop-filter);\n -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
1\n box-shadow: var(--media-range-track-box-shadow, none);\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n\n #progress,\n #pointer {\n position: absolute;\n height: 100%;\n will-change: width;\n }\n\n #progress {\n background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));\n transition: var(--media-range-track-transition);\n }\n\n #pointer {\n background: var(--media-range-track-pointer-background);\n border-right: var(--media-range-track-pointer-border-right);\n transition: visibility .25s, opacity .25s;\n visibility: hidden;\n opacity: 0;\n }\n\n @media (hover: hover) {\n :host(:hover) #pointer {\n transition: visibility .5s, opacity .5s;\n visibility: visible;\n opacity: 1;\n }\n }\n\n #thumb,\n ::slotted([slot=thumb]) {\n width: var(--media-range-thumb-width, 10
1px);\n height: var(--media-range-thumb-height, 10px);\n transition: var(--media-range-thumb-transition);\n transform: var(--media-range-thumb-transform, none);\n opacity: var(--media-range-thumb-opacity, 1);\n translate: -50%;\n position: absolute;\n left: 0;\n cursor: var(--media-cursor, pointer);\n }\n\n #thumb {\n border-radius: var(--media-range-thumb-border-radius, 10px);\n background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));\n box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);\n border: var(--media-range-thumb-border, none);\n }\n\n :host([disabled]) #thumb {\n background-color: #777;\n }\n\n .segments #appearance {\n height: var(--media-range-segment-hover-height, 7px);\n }\n\n #track {\n clip-path: url(#segments-clipping);\n }\n\n #segments {\n --segments-gap: var(--media-range-segments-gap, 2px);\n position: absolute;\n width: 100%;\n height: 100%;\n }\n\n #segments-clipping {\n transform: translateX(calc(var(--segments-gap) / 2));\n }\n\n #segments-clipping:empty {\n display: none;\n }\n\n #segments-clipping rect {\n height: var(--media-range-track-height, 4px);\n y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2);\n transition: var(--media-range-segment-transition, transform .1s ease-in-out);\n transform: var(--media-range-segment-transform, scaleY(1));\n transform-origin: center;\n }\n\n /* Visible label for accessibility - positioned off-screen but technically visible (Firefox requires visible labels) */\n #range-label {\n position: absolute;\n left: -10000px;\n background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));\n pointer-events: none;\n }\n </style>\n <div id="leftgap"></div>\n <div id="container">\n <div id="startpoint"></div>\n <div id="endpoint"></div>\n <div id="appearance">\n <div id="track" part="track">\n <div id="pointer"></div>\n <div id="progress" part="progress"></div>\n </div>\n <slot name="thumb">\n <div id="thumb" part="thumb"></div>\n </slot>\n <svg id="segments" aria-hidden="true"><clipPath id="segments-clipping"></clipPath></svg>\n </div>
1\n <input id="range" type="range" min="0" max="1" step="any" value="0">\n <label for="range" id="range-label"></label>\n\n ${this.getContainerTemplateHTML(e)}\n </div>\n <div id="rightgap"></div>\n `},P.getContainerTemplateHTML=function(e){return""},w.Au.customElements.get("media-chrome-range")||w.Au.customElements.define("media-chrome-range",P)},28664:(e,t,n)=>{n.d(t,{eS:()=>O,yd:()=>P});var i,s,a,o,r,l,d,h,c,u,m,p,E,b,v,g,A,f,I,_,T=n(72358),y=n(17055),S=n(27617),k=n(72880),L=n(68218),C=n(50456),w=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},M=(e,t,n)=>(w(e,t,"read from private field"),n?n.call(e):t.get(e)),R=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},D=(e,t,n,i)=>(w(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),U=(e,t,n)=>(w(e,t,"access private method"),n);const O={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive",AUTOHIDE_OVER_CONTROLS:"autohideovercontrols"},N=Object.values(y.GC);function x(e,t){var n;if(!e.isConnected)return;const i=function(e){const t=e.split(/\s+/);return Object.fromEntries(t.map((e=>e.split(":"))))}(null!=(n=e.getAttribute(O.BREAKPOINTS))?n:"sm:384 md:576 lg:768 xl:960"),s=function(e,t){return Object.keys(e).filter((n=>t>=parseInt(e[n])))}(i,t);let a=!1;
1if(Object.keys(i).forEach((t=>{s.includes(t)?e.hasAttribute(`breakpoint${t}`)||(e.setAttribute(`breakpoint${t}`,""),a=!0):e.hasAttribute(`breakpoint${t}`)&&(e.removeAttribute(`breakpoint${t}`),a=!0)})),a){const t=new CustomEvent(y.T$.BREAKPOINTS_CHANGE,{detail:s});e.dispatchEvent(t)}e.breakpointsComputed||(e.breakpointsComputed=!0,e.dispatchEvent(new CustomEvent(y.T$.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}class P extends T.Au.HTMLElement{constructor(){if(super(),R(this,c),R(this,m),R(this,E),R(this,v),R(this,A),R(this,i,void 0),R(this,s,0),R(this,a,null),R(this,o,null),R(this,r,void 0),this.breakpointsComputed=!1,R(this,l,(e=>{const t=this.media;for(const n of e){if("childList"!==n.type)continue;const e=n.removedNodes;for(const i of e){if("media"!=i.slot||n.target!=this)continue;let e=n.previousSibling&&n.previousSibling.previousElementSibling;if(e&&t){let t="media"!==e.slot;for(;null!==(e=e.previousSibling);)"media"==e.slot&&(t=!1);t&&this.mediaUnsetCallback(i)}else this.mediaUnsetCallback(i)}if(t)for(const e of n.addedNodes)e===t&&this.handleMediaUpdated(t)}})),R(this,d,!1),R(this,h,(e=>{M(this,d)||(setTimeout((()=>{!function(e){x(e.target,e.contentRect.width)}(e),D(this,d,!1)}),0),D(this,d,!0))})),R(this,I,void 0),R(this,_,(()=>{M(this,I).assignedElements({flatten:!0}).length?this.handleMediaUpdated(this.media):M(this,a)&&this.mediaUnsetCallback(M(this,a))})),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,C.kg)(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}D(this,i,new MutationObserver(M(this,l)))}static get observedAttributes(){return[O.AUTOHIDE,O.GESTURES_DISABLED].concat(N).filter((e=>![y.GC.MEDIA_RENDITION_LIST,y.GC.MEDIA_AUDIO_TRACK_LIST,y.GC.MEDIA_CHAPTERS_CUES,y.GC.MEDIA_WIDTH,y.GC.MEDIA_HEIGHT,y.GC.MEDIA_ERROR,y.GC.MEDIA_ERROR_MESSAGE].includes(e)))}attributeChangedCallback(e,t,n){e.toLowerCase()==O.AUTOHIDE&&(this.autohide=n)}get media(){let e=this.querySelector(":scope > [slot=media]");return"SLOT"==(null==e?void 0:e.nodeName)&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(D(this,a,e),e.localName.includes("-")&&await T.Au.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;M(this,i).observe(this,{childList:!0,subtree:!0}),(0,S.v)(this,M(this,h));const t=null!=this.getAttribute(O.AUDIO)?(0,L.t)("audio player"):(0,L.t)("video player");this.setAttribute("role","region"),this.setAttribute("aria-label",t),this.handleMediaUpdated(this.media),this.setAttribute(O.USER_INACTIVE,""),x(this,this.getBoundingClientRect().width);const n=this.querySelector(":scope > slot[slot=media]");n&&(D(this,I,n),M(this,I).addEventListener("slotchange",M(this,_))),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),null==(e=T.Au.window)||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;(0,S.u)(this,M(this,h)),clearTimeout(M(this,o)),M(this,i).disconnect(),this.media&&this.mediaUnsetCallback(this.media),null==(e=T.Au.window)||e.removeEventListener("mouseup",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointermove",this),this.removeEventListener("pointerup",this),this.removeEventListener("mouseleave",this),this.removeEventListener("keyup",this),M(this,I)&&(M(this,I).removeEventListener("slotchange",M(this,_)),D(this,I,null)),D(this,d,!1)}mediaSetCallback(e){}mediaUnsetCallback(e){D(this,a,null)}handleEvent(e){switch(e.type){case"pointerdown":D(this,s,e.timeStamp);break;case"pointermove":U(this,c,u).call(this,e);break;case"pointerup":U(this,m,p).call(this,e);break;case"mouseleave":U(this,E,b).call(this);break;case"mouseup":this.removeAttribute(O.KEYBOARD_CONTROL);break;case"keyup":U(this,A,f).call(this),this.setAttribute(O.KEYBOARD_CONTROL,"")}}set autohide(e){const t=Number(e);D(this,r,isNaN(t)?0:t)}get autohide(){return(void 0===M(this,r)?2:M(this,r)).toString()}get breakpoints(){return(0,C.vT)(this,O.BREAKPOINTS)}set breakpoints(e){(0,C.tA)(this,O.BREAKPOINTS,e)}get audio(){return(0,C.Y_)(this,O.AUDIO)}set audio(e){(0,C.QW)(this,O.AUDIO,e)}get gesturesDisabled(){return(0,C.Y_)(this,O.GESTURES_DISABLED)}set gesturesDisabled(e){(0,C.QW)(this,O.GESTURES_DISABLED,e)}get keyboardControl(){return(0,C.Y_)(this,O.KEYBOARD_CONTROL)}set keyboardControl(e){(0,C.QW)(this,O.KEYBOARD_CONTROL,e)}get noAutohide(){return(0,C.Y_)(this,O.NO_AUTOHIDE)}set noAutohide(e){(0,C.QW)(this,O.NO_AUTOHIDE,e)}get autohideOverControls(){return(0,C.Y_)(this,O.AUTOHIDE_OVER_CONTROLS)}set autohideOverControls(e){(0,C.QW)(this,O.AUTOHIDE_OVER_CONTROLS,e)}get userInteractive(){return(0,C.Y_)(this,O.USER_INACTIVE)}set userInteractive(e){(0,C.QW)(this,O.USER_INACTIVE,e)}}i=new WeakMap,s=new WeakMap,a=new WeakMap,o=new WeakMap,r=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakMap,c=new WeakSet,u=function(e){if("mouse"!==e.pointerType){const t=250;if(e.timeStamp-M(this,s)<t)return}
1U(this,v,g).call(this),clearTimeout(M(this,o));const t=this.hasAttribute(O.AUTOHIDE_OVER_CONTROLS);([this,this.media].includes(e.target)||t)&&U(this,A,f).call(this)},m=new WeakSet,p=function(e){if("touch"===e.pointerType){const t=!this.hasAttribute(O.USER_INACTIVE);[this,this.media].includes(e.target)&&t?U(this,E,b).call(this):U(this,A,f).call(this)}else e.composedPath().some((e=>["media-play-button","media-fullscreen-button"].includes(null==e?void 0:e.localName)))&&U(this,A,f).call(this)},E=new WeakSet,b=function(){if(M(this,r)<0)return;if(this.hasAttribute(O.USER_INACTIVE))return;this.setAttribute(O.USER_INACTIVE,"");const e=new T.Au.CustomEvent(y.T$.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(e)},v=new WeakSet,g=function(){if(!this.hasAttribute(O.USER_INACTIVE))return;this.removeAttribute(O.USER_INACTIVE);const e=new T.Au.CustomEvent(y.T$.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(e)},A=new WeakSet,f=function(){U(this,v,g).call(this),clearTimeout(M(this,o));const e=parseInt(this.autohide);e<0||D(this,o,setTimeout((()=>{U(this,E,b).call(this)}),1e3*e))},I=new WeakMap,_=new WeakMap,P.shadowRootOptions={mode:"open"},P.getTemplateHTML=function(e){return`\n <style>\n \n :host([${y.GC.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {\n outline: none;\n }\n\n :host {\n box-sizing: border-box;\n position: relative;\n display: inline-block;\n line-height: 0;\n background-color: var(--media-background-color, #000);\n overflow: hidden;\n }\n\n :host(:not([${O.AUDIO}])) [part~=layer]:not([part~=media-layer]) {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n display: flex;\n flex-flow: column nowrap;\n align-items: start;\n pointer-events: none;\n background: none;\n }\n\n slot[name=media] {\n display: var(--media-slot-display, contents);\n }\n\n \n :host([${O.AUDIO}]) slot[name=media] {\n display: var(--media-slot-display, none);\n }\n\n \n :host([${O.AUDIO}]) [part~=layer][part~=gesture-layer] {\n height: 0;\n display: block;\n }\n\n \n :host(:not([${O.AUDIO}])[${O.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),\n :host(:not([${O.AUDIO}])[${O.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {\n display: none;\n }\n\n \n ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([role=dialog]):not([hidden])) {\n pointer-events: auto;\n }\n\n :host(:not([${O.AUDIO}])) *[part~=layer][part~=centered-layer] {\n align-items: center;\n justify-content: center;\n }\n\n :host(:not([${O.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),\n :host(:not([${O.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {\n align-self: stretch;\n flex-grow: 1;\n }\n\n slot[name=middle-chrome] {\n display: inline;\n flex-grow: 1;\n pointer-events: none;\n background: none;\n }\n\n \n ::slotted([slot=media]),\n ::slotted([slot=poster]) {\n width: 100%;\n height: 100%;\n }\n\n \n :host(:not([${O.AUDIO}])) .spacer {\n flex-grow: 1;\n }\n\n \n :host(:-webkit-full-screen) {\n \n width: 100% !important;\n height: 100% !important;\n }\n\n \n ::slotted(:not([slot=media]):not([slot=poster]):not([${O.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) {\n opacity: 1;\n transition: var(--media-control-transition-in, opacity 0.25s);\n }\n\n \n :host([${O.USER_INACTIVE}]:not([${y.GC.MEDIA_PAUSED}]):not([${y.GC.MEDIA_IS_AIRPLAYING}]):not([${y.GC.MEDIA_IS_CASTING}]):not([${O.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${O.NO_AUTOHIDE}]):not([role=dialog])) {\n opacity: 0;\n transition: var(--media-control-transition-out, opacity 1s);\n }\n\n :host([${O.USER_INACTIVE}]:not([${O.NO_AUTOHIDE}]):not([${y.GC.MEDIA_PAUSED}]):not([${y.GC.MEDIA_IS_CASTING}
1]):not([${O.AUDIO}])) ::slotted([slot=media]) {\n cursor: none;\n }\n\n :host([${O.USER_INACTIVE}][${O.AUTOHIDE_OVER_CONTROLS}]:not([${O.NO_AUTOHIDE}]):not([${y.GC.MEDIA_PAUSED}]):not([${y.GC.MEDIA_IS_CASTING}]):not([${O.AUDIO}])) * {\n --media-cursor: none;\n cursor: none;\n }\n\n\n ::slotted(media-control-bar) {\n align-self: stretch;\n }\n\n \n :host(:not([${O.AUDIO}])[${y.GC.MEDIA_HAS_PLAYED}]) slot[name=poster] {\n display: none;\n }\n\n ::slotted([role=dialog]) {\n width: 100%;\n height: 100%;\n align-self: center;\n }\n\n ::slotted([role=menu]) {\n align-self: end;\n }\n </style>\n\n <slot name="media" part="layer media-layer"></slot>\n <slot name="poster" part="layer poster-layer"></slot>\n <slot name="gestures-chrome" part="layer gesture-layer">\n <media-gesture-receiver slot="gestures-chrome">\n <template shadowrootmode="${k.A.shadowRootOptions.mode}">\n ${k.A.getTemplateHTML({})}\n </template>\n </media-gesture-receiver>\n </slot>\n <span part="layer vertical-layer">\n <slot name="top-chrome" part="top chrome"></slot>\n <slot name="middle-chrome" part="middle chrome"></slot>\n <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>\n \n <slot part="bottom chrome"></slot>\n </span>\n <slot name="dialog" part="layer dialog-layer"></slot>\n `},T.Au.customElements.get("media-container")||T.Au.customElements.define("media-container",P)},72880:(e,t,n)=>{n.d(t,{A:()=>c});var i,s=n(17055),a=n(50456),o=n(72358),r=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},l=(e,t,n)=>(r(e,t,"read from private field"),n?n.call(e):t.get(e)),d=(e,t,n,i)=>(r(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);class h extends o.Au.HTMLElement{constructor(){if(super(),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,i),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,a.kg)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[s.Ex.MEDIA_CONTROLLER,s.GC.MEDIA_PAUSED]}attributeChangedCallback(e,t,n){var a,o,r,h,c;e===s.Ex.MEDIA_CONTROLLER&&(t&&(null==(o=null==(a=l(this,i))?void 0:a.unassociateElement)||o.call(a,this),d(this,i,null)),n&&this.isConnected&&(d(this,i,null==(r=this.getRootNode())?void 0:r.getElementById(n)),null==(c=null==(h=l(this,i))?void 0:h.associateElement)||c.call(h,this)))}connectedCallback(){var e,t;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),d(this,i,function(e){var t;const n=e.getAttribute(s.Ex.MEDIA_CONTROLLER);return n?null==(t=e.getRootNode())?void 0:t.getElementById(n):(0,a.CQ)(e,"media-controller")}(this)),this.getAttribute(s.Ex.MEDIA_CONTROLLER)&&(null==(t=null==(e=l(this,i))?void 0:e.associateElement)||t.call(e,this)),l(this,i)&&(l(this,i).addEventListener("pointerdown",this),l(this,i).addEventListener("click",this),l(this,i).hasAttribute("tabindex")||(l(this,i).tabIndex=0))}disconnectedCallback(){var e,t,n,a;this.getAttribute(s.Ex.MEDIA_CONTROLLER)&&(null==(t=null==(e=l(this,i))?void 0:e.unassociateElement)||t.call(e,this)),null==(n=l(this,i))||n.removeEventListener("pointerdown",this),null==(a=l(this,i))||a.removeEventListener("click",this),d(this,i,null)}handleEvent(e){var t;const n=null==(t=e.composedPath())?void 0:t[0];if(["video","media-controller"].includes(null==n?void 0:n.localName))if("pointerdown"===e.type)this._pointerType=e.pointerType;else if("click"===e.type){const{clientX:t,clientY:n}=e,{left:i,top:a,width:o,height:r}=this.getBoundingClientRect(),l=t-i,d=n-a;if(l<0||d<0||l>o||d>r||0===o&&0===r)return;const h=this._pointerType||"mouse";if(this._pointerType=void 0,h===s.Np.TOUCH)return void this.handleTap(e);if(h===s.Np.MOUSE||h===s.Np.PEN)return void this.handleMouseClick(e)}}get mediaPaused(){return(0,a.Y_)(this,s.GC.MEDIA_PAUSED)}set mediaPaused(e){(0,a.QW)(this,s.GC.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){const t=this.mediaPaused?s.a8.MEDIA_PLAY_REQUEST:s.a8.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new o.Au.CustomEvent(t,{composed:!0,bubbles:!0}))}}i=new WeakMap,h.shadowRootOptions={mode:"open"},h.getTemplateHTML=function(e){return"\n <style>\n :host {\n display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));\n box-sizing: border-box;\n }\n </style>\n "},o.Au.customElements.get("media-gesture-receiver")||o.Au.customElements.define("media-gesture-receiver",h);var c=h}}]);
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.