1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[273],{82947:()=>{var e,t,i,a,s,r,n,o,l,d,h,u,c,m,p,v,E,b,g,f,A,T,k,_,w,I,y,S,L,M,D,R,C,x,O,N,U,P,H,W,B,V,$,F,G,K,q,Z,Y,Q,j,z,X,J,ee,et,ei,ea,es,er,en,eo,el,ed,eh,eu,ec,em,ep,ev,eE,eb,eg,ef,eA,eT,ek,e_,ew,eI,ey,eS,eL,eM,eD,eR,eC,ex,eO,eN,eU,eP,eH,eW,eB,eV,e$,eF,eG,eK,eq,eZ,eY,eQ,ej,ez,eX,eJ,e0,e1,e2,e5,e3,e4,e7,e8,e6,e9,te,tt,ti,ta,ts,tr,tn,to,tl,td,th,tu,tc,tm,tp,tv,tE,tb,tg,tf,tA,tT,tk,t_,tw,tI,ty,tS,tL,tM,tD,tR,tC,tx,tO,tN,tU,tP,tH,tW,tB,tV,t$,tF,tG,tK,tq,tZ,tY,tQ,tj,tz,tX,tJ,t0,t1,t2,t5,t3,t4,t7,t8,t6,t9,ie,it,ii,ia,is,ir,io,il,id,ih,iu,ic,im,ip,iv,iE,ib,ig,iA,iT,ik,i_,iw,iI,iy,iS,iL,iM,iD,iR,iC,ix,iO,iN,iU,iP,iH,iW,iB,iV,i$,iF,iG,iK,iq,iZ,iY,iQ,ij,iz,iX,iJ,i0,i1,i2,i5,i3,i4,i7,i8,i6,i9,ae,at,ai,aa,as,ar,an,ao,al,ad,ah,au,ac,am,ap,av,aE,ab,ag,af,aA,aT,ak,a_,aw,aI,ay,aS=Object.defineProperty,aL={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"},aM={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},aD={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"},aR=Object.entries(aD),aC=aR.reduce((e,[t,i])=>(e[t]=i.toLowerCase(),e),{}),ax=aR.reduce((e,[t,i])=>(e[t]=i.toLowerCase(),e),{USER_INACTIVE_CHANGE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"});Object.entries(ax).reduce((e,[t,i])=>{let a=aC[t];return a&&(e[i]=a),e},{userinactivechange:"userinactive"});var aO=Object.entries(aC).reduce((e,[t,i])=>{let a=ax[t];return a&&(e[i]=a),e},{userinactive:"userinactivechange"}),aN={SUBTITLES:"subtitles",CAPTIONS:"captions",CHAPTERS:"chapters",METADATA:"metadata"},aU={DISABLED:"disabled",SHOWING:"showing"},aP={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"},aH={UNAVAILABLE:"unavailable",UNSUPPORTED:"unsupported"},aW={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"},aB={FULLSCREEN:"fullscreen"};function aV(e){if(e){let{id:t,width:i,height:a}=e;return[t,i,a].filter(e=>null!=e).join(":")}}function a$(e){if(e){let[t,i,a]=e.split(":");return{id:t,width:+i,height:+a}}}function aF(e){if(e){let{id:t,kind:i,language:a,label:s}=e;return[t,i,a,s].filter(e=>null!=e).join(":")}}function aG(e){if(e){let[t,i,a,s]=e.split(":");return{id:t,kind:i,language:a,label:s}}}function aK(e){return"number"==typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}function aq(e){return"string"==typeof e&&!isNaN(e)&&!isNaN(parseFloat(e))}var aZ=e=>new Promise(t=>setTimeout(t,e)),aY={en:{"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."}},aQ=(null==(e=globalThis.navigator)?void 0:e.language)||"en",aj=(e,t={})=>(e=>{var t,i,a;let[s]=aQ.split("-");return(null==(t=aY[aQ])?void 0:t[e])||(null==(i=aY[s])?void 0:i[e])||(null==(a=aY.en)?void 0:a[e])||e})(e).replace(/\{(\w+)\}/g,(e,i)=>i in t?String(t[i]):`{${i}}`),az=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],aX=e=>{if(!aK(e))return"";let t=Math.abs(e),i=t!==e,a=new Date(0,0,0,0,0,t,0),s=[a.getHours(),a.getMinutes(),a.getSeconds()].map((e,t)=>e&&((e,t)=>{let i=1===e?aj(az[t].singular):aj(az[t].plural);return`${e} ${i}`})(e,t)).filter(e=>e).join(", ");return i?aj("{time} remaining",{time:s}):s};function aJ(e,t){let i=!1;e<0&&(i=!0,e=0-e);let a=Math.floor((e=e<0?0:e)%60),s=Math.floor(e/60%60),r=Math.floor(e/3600),n=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=s=a="0"),s=(((r=r>0||o>0?r+":":"")||n>=10)&&s<10?"0"+s:s)+":",(i?"-":"")+r+s+(a=a<10?"0"+a:a)}Object.freeze({length:0,start(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0}});var a0=class{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}},a1=class extends a0{},a2=class extends a1{constructor(){super(...arguments),this.role=null}},a5={createElement:function(){return new a3.HTMLElement},createElementNS:function(){return new a3.HTMLElement},addEventListener(){},removeEventListener(){},dispatchEvent:e=>!1},a3={ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},document:a5,Node:a1,Element:a2,HTMLElement:class extends a2{constructor(){super(...arguments),this.innerHTML=""}get content(){return new a3.DocumentFragment}},DocumentFragment:class extends a0{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},localStorage:{getItem:e=>null,setItem(e,t){},removeItem(e){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[],get userAgent(){return""}},matchMedia:e=>({matches:!1,media:e}),DOMParser:class{parseFromString(e,t){return{body:{textContent:e}}}}},a4="global"in globalThis&&(null==globalThis?void 0:globalThis.global)===globalThis||"undefined"==typeof window||void 0===window.customElements,a7=Object.keys(a3).every(e=>e in globalThis),a8=a4&&!a7?a3:globalThis,a6=a4&&!a7?a5:globalThis.document,a9=new WeakMap,se=e=>{let t=a9.get(e);return t||a9.set(e,t=new Set),t}
1,st=new a8.ResizeObserver(e=>{for(let t of e)for(let e of se(t.target))e(t)});function si(e,t){se(e).add(t),st.observe(e)}function sa(e,t){let i=se(e);i.delete(t),i.size||st.unobserve(e)}function ss(e){let t={};for(let i of e)t[i.name]=i.value;return t}function sr(e){var t;return null!=(t=sn(e))?t:sh(e,"media-controller")}function sn(e){var t;let{MEDIA_CONTROLLER:i}=aM,a=e.getAttribute(i);if(a)return null==(t=sc(e))?void 0:t.getElementById(a)}var so=(e,t,i=".value")=>{let a=e.querySelector(i);a&&(a.textContent=t)},sl=(e,t)=>((e,t)=>{let i=`slot[name="${t}"]`,a=e.shadowRoot.querySelector(i);return a?a.children:[]})(e,t)[0],sd=(e,t)=>!!e&&!!t&&(null!=e&&!!e.contains(t)||sd(e,t.getRootNode().host)),sh=(e,t)=>{if(!e)return null;let i=e.closest(t);return i||sh(e.getRootNode().host,t)};function su(e=document){var t;let i=null==e?void 0:e.activeElement;return i?null!=(t=su(i.shadowRoot))?t:i:null}function sc(e){var t;let i=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e);return i instanceof ShadowRoot||i instanceof Document?i:null}function sm(e,{depth:t=3,checkOpacity:i=!0,checkVisibilityCSS:a=!0}={}){if(e.checkVisibility)return e.checkVisibility({checkOpacity:i,checkVisibilityCSS:a});let s=e;for(;s&&t>0;){let e=getComputedStyle(s);if(i&&"0"===e.opacity||a&&"hidden"===e.visibility||"none"===e.display)return!1;s=s.parentElement,t--}return!0}function sp(e,t){let i=function(e,t){var i,a;let s;for(s of null!=(i=e.querySelectorAll("style:not([media])"))?i:[]){let e;try{e=null==(a=s.sheet)?void 0:a.cssRules}catch{continue}for(let i of null!=e?e:[])if(t(i.selectorText))return i}}(e,e=>e===t);return i||sv(e,t)}function sv(e,t){var i,a;let s=null!=(i=e.querySelectorAll("style:not([media])"))?i:[],r=null==s?void 0:s[s.length-1];if(!(null==r?void 0:r.sheet))return console.warn("Media Chrome: No style sheet found on style tag of",e),{style:{setProperty:()=>{},removeProperty:()=>"",getPropertyValue:()=>""}};let n=null==r?void 0:r.sheet.insertRule(`${t}{}`,r.sheet.cssRules.length);return null==(a=r.sheet.cssRules)?void 0:a[n]}function sE(e,t,i=NaN){let a=e.getAttribute(t);return null!=a?+a:i}function sb(e,t,i){let a=+i;if(null==i||Number.isNaN(a)){e.hasAttribute(t)&&e.removeAttribute(t);return}sE(e,t,void 0)!==a&&e.setAttribute(t,`${a}`)}function sg(e,t){return e.hasAttribute(t)}function sf(e,t,i){if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}sg(e,t)!=i&&e.toggleAttribute(t,i)}function sA(e,t,i=null){var a;return null!=(a=e.getAttribute(t))?a:i}function sT(e,t,i){if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}let a=`${i}`;sA(e,t,void 0)!==a&&e.setAttribute(t,a)}var sk=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},s_=(e,t,i)=>(sk(e,t,"read from private field"),i?i.call(e):t.get(e)),sw=(e,t,i,a)=>(sk(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),sI=class extends a8.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,t,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aM.MEDIA_CONTROLLER,aC.MEDIA_PAUSED]}attributeChangedCallback(e,i,a){var s,r,n,o,l;e===aM.MEDIA_CONTROLLER&&(i&&(null==(r=null==(s=s_(this,t))?void 0:s.unassociateElement)||r.call(s,this),sw(this,t,null)),a&&this.isConnected&&(sw(this,t,null==(n=this.getRootNode())?void 0:n.getElementById(a)),null==(l=null==(o=s_(this,t))?void 0:o.associateElement)||l.call(o,this)))}connectedCallback(){var e,i;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),sw(this,t,function(e){var t;let i=e.getAttribute(aM.MEDIA_CONTROLLER);return i?null==(t=e.getRootNode())?void 0:t.getElementById(i):sh(e,"media-controller")}(this)),this.getAttribute(aM.MEDIA_CONTROLLER)&&(null==(i=null==(e=s_(this,t))?void 0:e.associateElement)||i.call(e,this)),s_(this,t)&&(s_(this,t).addEventListener("pointerdown",this),s_(this,t).addEventListener("click",this),s_(this,t).hasAttribute("tabindex")||(s_(this,t).tabIndex=0))}disconnectedCallback(){var e,i,a,s;this.getAttribute(aM.MEDIA_CONTROLLER)&&(null==(i=null==(e=s_(this,t))?void 0:e.unassociateElement)||i.call(e,this)),null==(a=s_(this,t))||a.removeEventListener("pointerdown",this),null==(s=s_(this,t))||s.removeEventListener("click",this),sw(this,t,null)}handleEvent(e){var t;let i=null==(t=e.composedPath())?void 0:t[0];if(["video","media-controller"].includes(null==i?void 0:i.localName)){if("pointerdown"===e.type)this._pointerType=e.pointerType;else if("click"===e.type){let{clientX:t,clientY:i}=e,{left:a,top:s,width:r,height:n}=this.getBoundingClientRect(),o=t-a,l=i-s;if(o<0||l<0||o>r||l>
1n||0===r&&0===n)return;let d=this._pointerType||"mouse";if(this._pointerType=void 0,d===aP.TOUCH)return void this.handleTap(e);if(d===aP.MOUSE||d===aP.PEN)return void this.handleMouseClick(e)}}}get mediaPaused(){return sg(this,aC.MEDIA_PAUSED)}set mediaPaused(e){sf(this,aC.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){let t=this.mediaPaused?aL.MEDIA_PLAY_REQUEST:aL.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new a8.CustomEvent(t,{composed:!0,bubbles:!0}))}};t=new WeakMap,sI.shadowRootOptions={mode:"open"},sI.getTemplateHTML=function(e){return` 2 <style> 3 :host { 4 display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block)); 5 box-sizing: border-box; 6 } 7 </style> 8 `},a8.customElements.get("media-gesture-receiver")||a8.customElements.define("media-gesture-receiver",sI);var sy=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sS=(e,t,i)=>(sy(e,t,"read from private field"),i?i.call(e):t.get(e)),sL=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sM=(e,t,i,a)=>(sy(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),sD=(e,t,i)=>(sy(e,t,"access private method"),i),sR={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive",AUTOHIDE_OVER_CONTROLS:"autohideovercontrols"},sC=Object.values(aC);function sx(e,t){var i,a,s;if(!e.isConnected)return;let r=Object.fromEntries((null!=(i=e.getAttribute(sR.BREAKPOINTS))?i:"sm:384 md:576 lg:768 xl:960").split(/\s+/).map(e=>e.split(":"))),n=(a=r,s=t,Object.keys(a).filter(e=>s>=parseInt(a[e]))),o=!1;if(Object.keys(r).forEach(t=>{if(n.includes(t)){e.hasAttribute(`breakpoint${t}`)||(e.setAttribute(`breakpoint${t}`,""),o=!0);return}e.hasAttribute(`breakpoint${t}`)&&(e.removeAttribute(`breakpoint${t}`),o=!0)}),o){let t=new CustomEvent(ax.BREAKPOINTS_CHANGE,{detail:n});e.dispatchEvent(t)}e.breakpointsComputed||(e.breakpointsComputed=!0,e.dispatchEvent(new CustomEvent(ax.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}var sO=class extends a8.HTMLElement{constructor(){if(super(),sL(this,h),sL(this,c),sL(this,p),sL(this,E),sL(this,g),sL(this,i,void 0),sL(this,a,0),sL(this,s,null),sL(this,r,null),sL(this,n,void 0),this.breakpointsComputed=!1,sL(this,o,e=>{let t=this.media;for(let i of e)if("childList"===i.type){for(let e of i.removedNodes){if("media"!=e.slot||i.target!=this)continue;let a=i.previousSibling&&i.previousSibling.previousElementSibling;if(a&&t){let t="media"!==a.slot;for(;null!==(a=a.previousSibling);)"media"==a.slot&&(t=!1);t&&this.mediaUnsetCallback(e)}else this.mediaUnsetCallback(e)}if(t)for(let e of i.addedNodes)e===t&&this.handleMediaUpdated(t)}}),sL(this,l,!1),sL(this,d,e=>{sS(this,l)||(setTimeout(()=>{!function(e){sx(e.target,e.contentRect.width)}(e),sM(this,l,!1)},0),sM(this,l,!0))}),sL(this,A,void 0),sL(this,T,()=>{if(!sS(this,A).assignedElements({flatten:!0}).length){sS(this,s)&&this.mediaUnsetCallback(sS(this,s));return}this.handleMediaUpdated(this.media)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}sM(this,i,new MutationObserver(sS(this,o)))}static get observedAttributes(){return[sR.AUTOHIDE,sR.GESTURES_DISABLED].concat(sC).filter(e=>![aC.MEDIA_RENDITION_LIST,aC.MEDIA_AUDIO_TRACK_LIST,aC.MEDIA_CHAPTERS_CUES,aC.MEDIA_WIDTH,aC.MEDIA_HEIGHT,aC.MEDIA_ERROR,aC.MEDIA_ERROR_MESSAGE].includes(e))}attributeChangedCallback(e,t,i){e.toLowerCase()==sR.AUTOHIDE&&(this.autohide=i)}get media(){let e=this.querySelector(":scope > [slot=media]");return(null==e?void 0:e.nodeName)=="SLOT"&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(sM(this,s,e),e.localName.includes("-")&&await a8.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;sS(this,i).observe(this,{childList:!0,subtree:!0}),si(this,sS(this,d));let t=null!=this.getAttribute(sR.AUDIO)?aj("audio player"):aj("video player");
8this.setAttribute("role","region"),this.setAttribute("aria-label",t),this.handleMediaUpdated(this.media),this.setAttribute(sR.USER_INACTIVE,""),sx(this,this.getBoundingClientRect().width);let a=this.querySelector(":scope > slot[slot=media]");a&&(sM(this,A,a),sS(this,A).addEventListener("slotchange",sS(this,T))),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),null==(e=a8.window)||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;sa(this,sS(this,d)),clearTimeout(sS(this,r)),sS(this,i).disconnect(),this.media&&this.mediaUnsetCallback(this.media),null==(e=a8.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),sS(this,A)&&(sS(this,A).removeEventListener("slotchange",sS(this,T)),sM(this,A,null)),sM(this,l,!1)}mediaSetCallback(e){}mediaUnsetCallback(e){sM(this,s,null)}handleEvent(e){switch(e.type){case"pointerdown":sM(this,a,e.timeStamp);break;case"pointermove":sD(this,h,u).call(this,e);break;case"pointerup":sD(this,c,m).call(this,e);break;case"mouseleave":sD(this,p,v).call(this);break;case"mouseup":this.removeAttribute(sR.KEYBOARD_CONTROL);break;case"keyup":sD(this,g,f).call(this),this.setAttribute(sR.KEYBOARD_CONTROL,"")}}set autohide(e){let t=Number(e);sM(this,n,isNaN(t)?0:t)}get autohide(){return(void 0===sS(this,n)?2:sS(this,n)).toString()}get breakpoints(){return sA(this,sR.BREAKPOINTS)}set breakpoints(e){sT(this,sR.BREAKPOINTS,e)}get audio(){return sg(this,sR.AUDIO)}set audio(e){sf(this,sR.AUDIO,e)}get gesturesDisabled(){return sg(this,sR.GESTURES_DISABLED)}set gesturesDisabled(e){sf(this,sR.GESTURES_DISABLED,e)}get keyboardControl(){return sg(this,sR.KEYBOARD_CONTROL)}set keyboardControl(e){sf(this,sR.KEYBOARD_CONTROL,e)}get noAutohide(){return sg(this,sR.NO_AUTOHIDE)}set noAutohide(e){sf(this,sR.NO_AUTOHIDE,e)}get autohideOverControls(){return sg(this,sR.AUTOHIDE_OVER_CONTROLS)}set autohideOverControls(e){sf(this,sR.AUTOHIDE_OVER_CONTROLS,e)}get userInteractive(){return sg(this,sR.USER_INACTIVE)}set userInteractive(e){sf(this,sR.USER_INACTIVE,e)}};i=new WeakMap,a=new WeakMap,s=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakSet,u=function(e){if("mouse"!==e.pointerType&&e.timeStamp-sS(this,a)<250)return;sD(this,E,b).call(this),clearTimeout(sS(this,r));let t=this.hasAttribute(sR.AUTOHIDE_OVER_CONTROLS);([this,this.media].includes(e.target)||t)&&sD(this,g,f).call(this)},c=new WeakSet,m=function(e){if("touch"===e.pointerType){let t=!this.hasAttribute(sR.USER_INACTIVE);[this,this.media].includes(e.target)&&t?sD(this,p,v).call(this):sD(this,g,f).call(this)}else e.composedPath().some(e=>["media-play-button","media-fullscreen-button"].includes(null==e?void 0:e.localName))&&sD(this,g,f).call(this)},p=new WeakSet,v=function(){if(0>sS(this,n)||this.hasAttribute(sR.USER_INACTIVE))return;this.setAttribute(sR.USER_INACTIVE,"");let e=new a8.CustomEvent(ax.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(e)},E=new WeakSet,b=function(){if(!this.hasAttribute(sR.USER_INACTIVE))return;this.removeAttribute(sR.USER_INACTIVE);let e=new a8.CustomEvent(ax.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(e)},g=new WeakSet,f=function(){sD(this,E,b).call(this),clearTimeout(sS(this,r));let e=parseInt(this.autohide);e<0||sM(this,r,setTimeout(()=>{sD(this,p,v).call(this)},1e3*e))},A=new WeakMap,T=new WeakMap,sO.shadowRootOptions={mode:"open"},sO.getTemplateHTML=function(e){return` 9 <style> 10 11 :host([${aC.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) { 12 outline: none; 13 } 14 15 :host { 16 box-sizing: border-box; 17 position: relative; 18 display: inline-block; 19 line-height: 0; 20 background-color: var(--media-background-color, #000); 21 overflow: hidden; 22 } 23 24 :host(:not([${sR.AUDIO}])) [part~=layer]:not([part~=media-layer]) { 25 position: absolute; 26 top: 0; 27 left: 0; 28 bottom: 0; 29 right: 0; 30 display: flex; 31 flex-flow: column nowrap; 32 align-items: start; 33 pointer-events: none; 34 background: none; 35 } 36 37 slot[name=media] { 38 display: var(--media-slot-display, contents); 39 } 40 41 42 :host([${sR.AUDIO}]) slot[name=media] { 43 display: var(--media-slot-display, none); 44 } 45 46 47 :host([${sR.AUDIO}]) [part~=layer][part~=gesture-layer] { 48 height: 0; 49 display: block; 50 } 51 52 53 :host(:not([${sR.AUDIO}])[${sR.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]), 54 :host(:not([${sR.AUDIO}])[${sR.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] { 55 display: none; 56 } 57 58 59 ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([role=dialog]):not([hidden])) { 60 pointer-events: auto; 61 } 62 63 :host(:not([${sR.AUDIO}])) *[part~=layer][part~=centered-layer] { 64 align-items: center; 65 justify-content: center; 66 } 67 68 :host(:not([${sR.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]), 69 :host(:not([${sR.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] { 70 align-self: stretch; 71 flex-grow: 1; 72 } 73 74 slot[name=middle-chrome] { 75 display: inline; 76 flex-grow: 1; 77 pointer-events: none; 78 background: none; 79 } 80 81 82 ::slotted([slot=media]), 83 ::slotted([slot=poster]) { 84 width: 100%; 85 height: 100%; 86 } 87 88 89 :host(:not([${sR.AUDIO}])) .spacer { 90 flex-grow: 1; 91 } 92 93 94 :host(:-webkit-full-screen) { 95 96 width: 100% !important; 97 height: 100% !important; 98 } 99 100 101 ::slotted(:not([slot=media]):not([slot=poster]):not([${sR.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) { 102 opacity: 1; 103 transition: var(--media-control-transition-in, opacity 0.25s); 104 } 105 106 107 :host([${sR.USER_INACTIVE}]:not([${aC.MEDIA_PAUSED}]):not([${aC.MEDIA_IS_AIRPLAYING}
107]):not([${aC.MEDIA_IS_CASTING}]):not([${sR.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${sR.NO_AUTOHIDE}]):not([role=dialog])) { 108 opacity: 0; 109 transition: var(--media-control-transition-out, opacity 1s); 110 } 111 112 :host([${sR.USER_INACTIVE}]:not([${sR.NO_AUTOHIDE}]):not([${aC.MEDIA_PAUSED}]):not([${aC.MEDIA_IS_CASTING}]):not([${sR.AUDIO}])) ::slotted([slot=media]) { 113 cursor: none; 114 } 115 116 :host([${sR.USER_INACTIVE}][${sR.AUTOHIDE_OVER_CONTROLS}]:not([${sR.NO_AUTOHIDE}]):not([${aC.MEDIA_PAUSED}]):not([${aC.MEDIA_IS_CASTING}]):not([${sR.AUDIO}])) * { 117 --media-cursor: none; 118 cursor: none; 119 } 120 121 122 ::slotted(media-control-bar) { 123 align-self: stretch; 124 } 125 126 127 :host(:not([${sR.AUDIO}])[${aC.MEDIA_HAS_PLAYED}]) slot[name=poster] { 128 display: none; 129 } 130 131 ::slotted([role=dialog]) { 132 width: 100%; 133 height: 100%; 134 align-self: center; 135 } 136 137 ::slotted([role=menu]) { 138 align-self: end; 139 } 140 </style> 141 142 <slot name="media" part="layer media-layer"></slot> 143 <slot name="poster" part="layer poster-layer"></slot> 144 <slot name="gestures-chrome" part="layer gesture-layer"> 145 <media-gesture-receiver slot="gestures-chrome"> 146 <template shadowrootmode="${sI.shadowRootOptions.mode}"> 147 ${sI.getTemplateHTML({})} 148 </template> 149 </media-gesture-receiver> 150 </slot> 151 <span part="layer vertical-layer"> 152 <slot name="top-chrome" part="top chrome"></slot> 153 <slot name="middle-chrome" part="middle chrome"></slot> 154 <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot> 155 156 <slot part="bottom chrome"></slot> 157 </span> 158 <slot name="dialog" part="layer dialog-layer"></slot> 159 `},a8.customElements.get("media-container")||a8.customElements.define("media-container",sO);var sN=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sU=(e,t,i)=>(sN(e,t,"read from private field"),i?i.call(e):t.get(e)),sP=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sH=(e,t,i,a)=>(sN(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),sW=class{constructor(e,t,{defaultValue:i}={defaultValue:void 0}){sP(this,y),sP(this,k,void 0),sP(this,_,void 0),sP(this,w,void 0),sP(this,I,new Set),sH(this,k,e),sH(this,_,t),sH(this,w,new Set(i))}[Symbol.iterator](){return sU(this,y,S).values()}get length(){return sU(this,y,S).size}get value(){var e;return null!=(e=[...sU(this,y,S)].join(" "))?e:""}set value(e){var t;e!==this.value&&(sH(this,I,new Set),this.add(...null!=(t=null==e?void 0:e.split(" "))?t:[]))}toString(){return this.value}item(e){return[...sU(this,y,S)][e]}values(){return sU(this,y,S).values()}forEach(e,t){sU(this,y,S).forEach(e,t)}add(...e){var t,i;e.forEach(e=>sU(this,I).add(e)),(""!==this.value||(null==(t=sU(this,k))?void 0:t.hasAttribute(`${sU(this,_)}`)))&&(null==(i=sU(this,k))||i.setAttribute(`${sU(this,_)}`,`${this.value}`))}remove(...e){var t;e.forEach(e=>sU(this,I).delete(e)),null==(t=sU(this,k))||t.setAttribute(`${sU(this,_)}`,`${this.value}`)}contains(e){return sU(this,y,S).has(e)}toggle(e,t){if(void 0!==t)if(t)return this.add(e),!0;else return this.remove(e),!1;return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){return this.remove(e),this.add(t),e===t}};k=new WeakMap,_=new WeakMap,w=new WeakMap,I=new WeakMap,y=new WeakSet,S=function(){return sU(this,I).size?sU(this,I):sU(this,w)};var sB=(e="")=>{let[t,i,a]=e.split(":"),s=a?decodeURIComponent(a):void 0;return{kind:"cc"===t?aN.CAPTIONS:aN.SUBTITLES,language:i,label:s}},sV=(e="",t={})=>((e="")=>e.split(/\s+/))(e).map(e=>{let i=sB(e);return{...t,...i}}),s$=e=>e?Array.isArray(e)?e.map(e=>"string"==typeof e?sB(e):e):"string"==typeof e?sV(e):[e]:[],sF=({kind:e,label:t,language:i}={kind:"subtitles"})=>t?`${"captions"===e?"cc":"sb"}:${i}:${encodeURIComponent(t)}`:i,sG=(e=[])=>Array.prototype.map.call(e,sF).join(" "),sK=e=>{let t=Object.entries(e).map(([e,t])=>i=>i[e]===t);return e=>t.every(t=>t(e))},sq=(e,t=[],i=[])=>{let a=s$(i).map(sK);Array.from(t).filter(e=>a.some(t=>
159t(e))).forEach(t=>{t.mode=e})},sZ=(e,t=()=>!0)=>{if(!(null==e?void 0:e.textTracks))return[];let i="function"==typeof t?t:sK(t);return Array.from(e.textTracks).filter(i)},sY=e=>{var t;return!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)||e.hasAttribute(aC.MEDIA_SUBTITLES_SHOWING)},sQ="exitFullscreen"in a6?"exitFullscreen":"webkitExitFullscreen"in a6?"webkitExitFullscreen":"webkitCancelFullScreen"in a6?"webkitCancelFullScreen":void 0,sj="fullscreenElement"in a6?"fullscreenElement":"webkitFullscreenElement"in a6?"webkitFullscreenElement":void 0,sz="fullscreenEnabled"in a6?"fullscreenEnabled":"webkitFullscreenEnabled"in a6?"webkitFullscreenEnabled":void 0,sX=()=>{var e;return L||(L=null==(e=null==a6?void 0:a6.createElement)?void 0:e.call(a6,"video"))},sJ=async(e=sX())=>{if(!e)return!1;let t=e.volume;e.volume=t/2+.1;let i=new AbortController,a=await Promise.race([s0(e,i.signal),s1(e,t)]);return i.abort(),a},s0=(e,t)=>new Promise(i=>{e.addEventListener("volumechange",()=>i(!0),{signal:t})}),s1=async(e,t)=>{for(let i=0;i<10;i++){if(e.volume===t)return!1;await aZ(10)}return e.volume!==t},s2=/.*Version\/.*Safari\/.*/.test(a8.navigator.userAgent),s5=(e=sX())=>(!a8.matchMedia("(display-mode: standalone)").matches||!s2)&&"function"==typeof(null==e?void 0:e.requestPictureInPicture),s3=(e=sX())=>(e=>{let{documentElement:t,media:i}=e;return!!(null==t?void 0:t[sz])||i&&"webkitSupportsFullscreen"in i})({documentElement:a6,media:e}),s4=s3(),s7=s5(),s8=!!a8.WebKitPlaybackTargetAvailabilityEvent,s6=!!a8.chrome,s9=e=>sZ(e.media,e=>[aN.SUBTITLES,aN.CAPTIONS].includes(e.kind)).sort((e,t)=>e.kind>=t.kind?1:-1),re=e=>sZ(e.media,e=>e.mode===aU.SHOWING&&[aN.SUBTITLES,aN.CAPTIONS].includes(e.kind)),rt=(e,t)=>{let i=s9(e),a=re(e),s=!!a.length;if(i.length){if(!1===t||s&&!0!==t)sq(aU.DISABLED,i,a);else if(!0===t||!s&&!1!==t){let t=i[0],{options:s}=e;if(!(null==s?void 0:s.noSubtitlesLangPref)){let e=a8.localStorage.getItem("media-chrome-pref-subtitles-lang"),a=e?[e,...a8.navigator.languages]:a8.navigator.languages,s=i.filter(e=>a.some(t=>e.language.toLowerCase().startsWith(t.split("-")[0]))).sort((e,t)=>a.findIndex(t=>e.language.toLowerCase().startsWith(t.split("-")[0]))-a.findIndex(e=>t.language.toLowerCase().startsWith(e.split("-")[0])));s[0]&&(t=s[0])}let{language:r,label:n,kind:o}=t;sq(aU.DISABLED,i,a),sq(aU.SHOWING,i,[{language:r,label:n,kind:o}])}}},ri=(e,t)=>e===t||null!=e&&null!=t&&typeof e==typeof t&&(!!("number"==typeof e&&Number.isNaN(e)&&Number.isNaN(t))||"object"==typeof e&&(Array.isArray(e)?ra(e,t):Object.entries(e).every(([e,i])=>e in t&&ri(i,t[e])))),ra=(e,t)=>{let i=Array.isArray(e),a=Array.isArray(t);return i===a&&(!i&&!a||e.length===t.length&&e.every((e,i)=>ri(e,t[i])))},rs=Object.values(aW),rr=sJ().then(e=>M=e),rn=async(...e)=>{await Promise.all(e.filter(e=>e).map(async e=>{if(!("localName"in e&&e instanceof a8.HTMLElement))return;let t=e.localName;if(!t.includes("-"))return;let i=a8.customElements.get(t);i&&e instanceof i||(await a8.customElements.whenDefined(t),a8.customElements.upgrade(e))}))},ro=new a8.DOMParser,rl={mediaError:{get(e,t){let{media:i}=e;if((null==t?void 0:t.type)!=="playing")return null==i?void 0:i.error},mediaEvents:["emptied","error","playing"]},mediaErrorCode:{get(e,t){var i;let{media:a}=e;if((null==t?void 0:t.type)!=="playing")return null==(i=null==a?void 0:a.error)?void 0:i.code},mediaEvents:["emptied","error","playing"]},mediaErrorMessage:{get(e,t){var i,a;let{media:s}=e;if((null==t?void 0:t.type)!=="playing")return null!=(a=null==(i=null==s?void 0:s.error)?void 0:i.message)?a:""},mediaEvents:["emptied","error","playing"]},mediaWidth:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.videoWidth)?t:0},mediaEvents:["resize"]},mediaHeight:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.videoHeight)?t:0},mediaEvents:["resize"]},mediaPaused:{get(e){var t;let{media:i}=e;return null==(t=null==i?void 0:i.paused)||t},set(e,t){var i;let{media:a}=t;a&&(e?a.pause():null==(i=a.play())||i.catch(()=>{}))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(e,t){let{media:i}=e;return!!i&&(t?"playing"===t.type:!i.paused)},mediaEvents:["playing","emptied"]},mediaEnded:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.ended)&&t},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.playbackRate)?t:1},set(e,t){let{media:i}=t;i&&Number.isFinite(+e)&&(i.playbackRate=+e)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.muted)&&t},set(e,t){let{media:i,options:{noMutedPref:a}={}}=t;if(i){i.muted=e;try{let t=null!==a8.localStorage.getItem("media-chrome-pref-muted"),s=i.hasAttribute("muted");if(a){t&&a8.localStorage.removeItem("media-chrome-pref-muted");return}if(s&&!t)return;a8.localStorage.setItem("media-chrome-pref-muted",e?"true":"false")}catch(e){console.debug("Error setting muted pref",e)}}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{let{options:{noMutedPref:i}}=t,{media:a}=t;if(a&&!a.muted&&!i)try{let i="true"===a8.localStorage.getItem("media-chrome-pref-muted");rl.mediaMuted.set(i,t),e(i)}catch(e){console.debug("Error getting muted pref",e)}}]},mediaLoop:{get(e){let{media:t}=e;return null==t?void 0:t.loop},set(e,t){let{media:i}=t;i&&(i.loop=e)},mediaEvents:["medialooprequest"]},mediaVolume:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.volume)?t:1}
159,set(e,t){let{media:i,options:{noVolumePref:a}={}}=t;if(i){try{null==e?a8.localStorage.removeItem("media-chrome-pref-volume"):i.hasAttribute("muted")||a||a8.localStorage.setItem("media-chrome-pref-volume",e.toString())}catch(e){console.debug("Error setting volume pref",e)}Number.isFinite(+e)&&(i.volume=+e)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{let{options:{noVolumePref:i}}=t;if(!i)try{let{media:i}=t;if(!i)return;let a=a8.localStorage.getItem("media-chrome-pref-volume");if(null==a)return;rl.mediaVolume.set(+a,t),e(+a)}catch(e){console.debug("Error getting volume pref",e)}}]},mediaVolumeLevel:{get(e){let{media:t}=e;return void 0===(null==t?void 0:t.volume)?"high":t.muted||0===t.volume?"off":t.volume<.5?"low":t.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.currentTime)?t:0},set(e,t){let{media:i}=t;i&&aK(e)&&(i.currentTime=e)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(e){let{media:t,options:{defaultDuration:i}={}}=e;return i&&(!t||!t.duration||Number.isNaN(t.duration)||!Number.isFinite(t.duration))?i:Number.isFinite(null==t?void 0:t.duration)?t.duration:NaN},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(e){let{media:t}=e;return(null==t?void 0:t.readyState)<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(e){var t;let{media:i}=e;if(!(null==(t=null==i?void 0:i.seekable)?void 0:t.length))return;let a=i.seekable.start(0),s=i.seekable.end(i.seekable.length-1);if(a||s)return[Number(a.toFixed(3)),Number(s.toFixed(3))]},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(e){var t;let{media:i}=e,a=null!=(t=null==i?void 0:i.buffered)?t:[];return Array.from(a).map((e,t)=>[Number(a.start(t).toFixed(3)),Number(a.end(t).toFixed(3))])},mediaEvents:["progress","emptied"]},mediaStreamType:{get(e){let{media:t,options:{defaultStreamType:i}={}}=e,a=[aW.LIVE,aW.ON_DEMAND].includes(i)?i:void 0;if(!t)return a;let{streamType:s}=t;if(rs.includes(s))return s===aW.UNKNOWN?a:s;let r=t.duration;return r===1/0?aW.LIVE:Number.isFinite(r)?aW.ON_DEMAND:a},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(e){let{media:t}=e;if(!t)return NaN;let{targetLiveWindow:i}=t,a=rl.mediaStreamType.get(e);return(null==i||Number.isNaN(i))&&a===aW.LIVE?0:i},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(e){let{media:t,options:{liveEdgeOffset:i=10}={}}=e;if(!t)return!1;if("number"==typeof t.liveEdgeStart)return!Number.isNaN(t.liveEdgeStart)&&t.currentTime>=t.liveEdgeStart;if(rl.mediaStreamType.get(e)!==aW.LIVE)return!1;let a=t.seekable;if(!a)return!0;if(!a.length)return!1;let s=a.end(a.length-1)-i;return t.currentTime>=s},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get:e=>s9(e).map(({kind:e,label:t,language:i})=>({kind:e,label:t,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get:e=>re(e).map(({kind:e,label:t,language:i})=>({kind:e,label:t,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i,a;let{media:s,options:r}=t;if(!s)return;let n=e=>{var i;r.defaultSubtitles&&(e&&![aN.CAPTIONS,aN.SUBTITLES].includes(null==(i=null==e?void 0:e.track)?void 0:i.kind)||rt(t,!0))};return s.addEventListener("loadstart",n),null==(i=s.textTracks)||i.addEventListener("addtrack",n),null==(a=s.textTracks)||a.addEventListener("removetrack",n),()=>{var e,t;s.removeEventListener("loadstart",n),null==(e=s.textTracks)||e.removeEventListener("addtrack",n),null==(t=s.textTracks)||t.removeEventListener("removetrack",n)}}]},mediaChaptersCues:{get(e){var t;let{media:i}=e;if(!i)return[];let[a]=sZ(i,{kind:aN.CHAPTERS});return Array.from(null!=(t=null==a?void 0:a.cues)?t:[]).map(({text:e,startTime:t,endTime:i})=>({text:e&&ro.parseFromString(e,"text/html").body.textContent||e,startTime:t,endTime:i}))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(!a)return;let s=a.querySelector('track[kind="chapters"][default][src]'),r=null==(i=a.shadowRoot)?void 0:i.querySelector(':is(video,audio) > track[kind="chapters"][default][src]');return null==s||s.addEventListener("load",e),null==r||r.addEventListener("load",e),()=>{null==s||s.removeEventListener("load",e),null==r||r.removeEventListener("load",e)}}]},mediaIsPip:{get(e){var t,i;let{media:a,documentElement:s}=e;if(!a||!s||!s.pictureInPictureElement)return!1;if(s.pictureInPictureElement===a)return!0;
159if(s.pictureInPictureElement instanceof HTMLMediaElement)return!!(null==(t=a.localName)?void 0:t.includes("-"))&&sd(a,s.pictureInPictureElement);if(s.pictureInPictureElement.localName.includes("-")){let e=s.pictureInPictureElement.shadowRoot;for(;null==e?void 0:e.pictureInPictureElement;){if(e.pictureInPictureElement===a)return!0;e=null==(i=e.pictureInPictureElement)?void 0:i.shadowRoot}}return!1},set(e,t){let{media:i}=t;if(i)if(e){if(!a6.pictureInPictureEnabled)return void console.warn("MediaChrome: Picture-in-picture is not enabled");if(!i.requestPictureInPicture)return void console.warn("MediaChrome: The current media does not support picture-in-picture");let e=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};i.requestPictureInPicture().catch(t=>{if(11===t.code){if(!i.src)return void console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.");if(0===i.readyState&&"none"===i.preload){let t=()=>{i.removeEventListener("loadedmetadata",a),i.preload="none"},a=()=>{i.requestPictureInPicture().catch(e),t()};i.addEventListener("loadedmetadata",a),i.preload="metadata",setTimeout(()=>{0===i.readyState&&e(),t()},1e3)}else throw t}else throw t})}else a6.pictureInPictureElement&&a6.exitPictureInPicture()},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(e){var t;let{media:i}=e;return[...null!=(t=null==i?void 0:i.videoRenditions)?t:[]].map(e=>({...e}))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(e){var t,i,a;let{media:s}=e;return null==(a=null==(i=null==s?void 0:s.videoRenditions)?void 0:i[null==(t=s.videoRenditions)?void 0:t.selectedIndex])?void 0:a.id},set(e,t){let{media:i}=t;if(!(null==i?void 0:i.videoRenditions))return void console.warn("MediaController: Rendition selection not supported by this media.");let a=Array.prototype.findIndex.call(i.videoRenditions,t=>t.id==e);i.videoRenditions.selectedIndex!=a&&(i.videoRenditions.selectedIndex=a)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(e){var t;let{media:i}=e;return[...null!=(t=null==i?void 0:i.audioTracks)?t:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(e){var t,i;let{media:a}=e;return null==(i=[...null!=(t=null==a?void 0:a.audioTracks)?t:[]].find(e=>e.enabled))?void 0:i.id},set(e,t){let{media:i}=t;if(!(null==i?void 0:i.audioTracks))return void console.warn("MediaChrome: Audio track selection not supported by this media.");for(let t of i.audioTracks)t.enabled=e==t.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get:e=>(e=>{var t;let{media:i,documentElement:a,fullscreenElement:s=i}=e;if(!i||!a)return!1;let r=(e=>{let{documentElement:t,media:i}=e,a=null==t?void 0:t[sj];return!a&&"webkitDisplayingFullscreen"in i&&"webkitPresentationMode"in i&&i.webkitDisplayingFullscreen&&i.webkitPresentationMode===aB.FULLSCREEN?i:a})(e);if(!r)return!1;if(r===s||r===i)return!0;if(r.localName.includes("-")){let e=r.shadowRoot;if(!(sj in e))return sd(r,s);for(;null==e?void 0:e[sj];){if(e[sj]===s)return!0;e=null==(t=e[sj])?void 0:t.shadowRoot}}return!1})(e),set(e,t,i){var a,s;e?((e=>{var t;let{media:i,fullscreenElement:a}=e;try{let e=a&&"requestFullscreen"in a?"requestFullscreen":a&&"webkitRequestFullScreen"in a?"webkitRequestFullScreen":void 0;if(e){let i=null==(t=a[e])?void 0:t.call(a);if(i instanceof Promise)return i.catch(()=>{})}else(null==i?void 0:i.webkitEnterFullscreen)?i.webkitEnterFullscreen():(null==i?void 0:i.requestFullscreen)&&i.requestFullscreen()}catch(e){console.error(e)}})(t),!i.detail||(null==(a=t.media)?void 0:a.inert)||null==(s=t.media)||s.focus()):(e=>{var t;let{documentElement:i}=e;if(sQ){let e=null==(t=null==i?void 0:i[sQ])?void 0:t.call(i);if(e instanceof Promise)return e.catch(()=>{})}})(t)},rootEvents:["fullscreenchange","webkitfullscreenchange"],mediaEvents:["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"]},mediaIsCasting:{get(e){var t;let{media:i}=e;return!!(null==i?void 0:i.remote)&&(null==(t=i.remote)?void 0:t.state)!=="disconnected"&&!!i.remote.state},set(e,t){var i,a;let{media:s}=t;if(s&&(!e||(null==(i=s.remote)?void 0:i.state)==="disconnected")&&(e||(null==(a=s.remote)?void 0:a.state)==="connected")){if("function"!=typeof s.remote.prompt)return void console.warn("MediaChrome: Casting is not supported in this environment");s.remote.prompt().catch(()=>{})}},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get:()=>!1,set(e,t){let{media:i}=t;if(i){if(!(i.webkitShowPlaybackTargetPicker&&a8.WebKitPlaybackTargetAvailabilityEvent))return void console.error("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment");i.webkitShowPlaybackTargetPicker()}},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(e){let{media:t}=e;if(!s4||!s3(t))return aH.UNSUPPORTED}},mediaPipUnavailable:{get(e){let{media:t}=e;return s7&&s5(t)?(null==t?void 0:t.disablePictureInPicture)?aH.UNAVAILABLE:void 0:aH.UNSUPPORTED}},mediaVolumeUnavailable:{get(e){let{media:t}=e;if(!1===M||(null==t?void 0:t.volume)==void 0)return aH.UNSUPPORTED},stateOwnersUpdateHandlers:[e=>{null==M&&rr.then(t=>e(t?void 0:aH.UNSUPPORTED))}]},mediaCastUnavailable:{get(e,{availability:t="not-available"}={}){var i;let{media:a}=e;return s6&&(null==(i=null==a?void 0:a.remote)?void 0:i.state)?null!=t&&"available"!==t?aH.UNAVAILABLE:void 0:aH.UNSUPPORTED},stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(a)return a.disableRemotePlayback||a.hasAttribute("disableremoteplayback")||null==(i=null==a?void 0:a.remote)||i.watchAvailability(t=>{e({availability:t?"available":"not-available"})}).catch(t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})}),()=>{var e;null==(e=null==a?void 0:a.remote)||e.cancelWatchAvailability().catch(()=>{})}}]},mediaAirplayUnavailable:{get:(e,t)=>s8?(null==t?void 0:t.availability)==="not-available"?aH.UNAVAILABLE:void 0:aH.UNSUPPORTED,mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(a)return a.disableRemotePlayback||a.hasAttribute("disableremoteplayback")||null==(i=null==a?void 0:a.remote)||i.watchAvailability(t=>{e({availability:t?"available":"not-available"})}).catch(t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})}),()=>{var e;null==(e=null==a?void 0:a.remote)||e.cancelWatchAvailability().catch(()=>{})}}]},mediaRenditionUnavailable:{get(e){var t;let{media:i}=e;return(null==i?void 0:i.videoRenditions)?(null==(t=i.videoRenditions)?void 0:t.length)?void 0:aH.UNAVAILABLE:aH.UNSUPPORTED},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(e){var t,i;let{media:a}=e;return(null==a?void 0:a.audioTracks)?(null!=(i=null==(t=a.audioTracks)?void 0:t.length)?i:0)<=1?aH.UNAVAILABLE:void 0:aH.UNSUPPORTED},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaLang:{get(e){let{options:{mediaLang:t}={}}=e;return null!=t?t:"en"}}},rd={[aL.MEDIA_PREVIEW_REQUEST](e,t,{detail:i}){var a,s,r;let n,o,{media:l}=t,d=null!=i?i:void 0;
159if(l&&null!=d){let[e]=sZ(l,{kind:aN.METADATA,label:"thumbnails"}),t=Array.prototype.find.call(null!=(a=null==e?void 0:e.cues)?a:[],(e,t,i)=>0===t?e.endTime>d:t===i.length-1?e.startTime<=d:e.startTime<=d&&e.endTime>d);if(t){let e=/'^(?:[a-z]+:)?\/\//i.test(t.text)||null==(s=null==l?void 0:l.querySelector('track[label="thumbnails"]'))?void 0:s.src,i=new URL(t.text,e);o=new URLSearchParams(i.hash).get("#xywh").split(",").map(e=>+e),n=i.href}}let h=e.mediaDuration.get(t),u=null==(r=e.mediaChaptersCues.get(t).find((e,t,i)=>t===i.length-1&&h===e.endTime?e.startTime<=d&&e.endTime>=d:e.startTime<=d&&e.endTime>d))?void 0:r.text;return null!=i&&null==u&&(u=""),{mediaPreviewTime:d,mediaPreviewImage:n,mediaPreviewCoords:o,mediaPreviewChapter:u}},[aL.MEDIA_PAUSE_REQUEST](e,t){e.mediaPaused.set(!0,t)},[aL.MEDIA_PLAY_REQUEST](e,t){var i,a,s,r;let n=e.mediaStreamType.get(t)===aW.LIVE,o=!(null==(i=t.options)?void 0:i.noAutoSeekToLive),l=e.mediaTargetLiveWindow.get(t)>0;if(n&&o&&!l){let i=null==(a=e.mediaSeekable.get(t))?void 0:a[1];if(i){let a=null!=(r=null==(s=t.options)?void 0:s.seekToLiveOffset)?r:0;e.mediaCurrentTime.set(i-a,t)}}e.mediaPaused.set(!1,t)},[aL.MEDIA_PLAYBACK_RATE_REQUEST](e,t,{detail:i}){e.mediaPlaybackRate.set(i,t)},[aL.MEDIA_MUTE_REQUEST](e,t){e.mediaMuted.set(!0,t)},[aL.MEDIA_UNMUTE_REQUEST](e,t){e.mediaVolume.get(t)||e.mediaVolume.set(.25,t),e.mediaMuted.set(!1,t)},[aL.MEDIA_LOOP_REQUEST](e,t,{detail:i}){let a=!!i;return e.mediaLoop.set(a,t),{mediaLoop:a}},[aL.MEDIA_VOLUME_REQUEST](e,t,{detail:i}){i&&e.mediaMuted.get(t)&&e.mediaMuted.set(!1,t),e.mediaVolume.set(i,t)},[aL.MEDIA_SEEK_REQUEST](e,t,{detail:i}){e.mediaCurrentTime.set(i,t)},[aL.MEDIA_SEEK_TO_LIVE_REQUEST](e,t){var i,a,s;let r=null==(i=e.mediaSeekable.get(t))?void 0:i[1];if(Number.isNaN(Number(r)))return;let n=null!=(s=null==(a=t.options)?void 0:a.seekToLiveOffset)?s:0;e.mediaCurrentTime.set(r-n,t)},[aL.MEDIA_SHOW_SUBTITLES_REQUEST](e,t,{detail:i}){var a;let{options:s}=t,r=s9(t),n=s$(i),o=null==(a=n[0])?void 0:a.language;o&&!s.noSubtitlesLangPref&&a8.localStorage.setItem("media-chrome-pref-subtitles-lang",o),sq(aU.SHOWING,r,n)},[aL.MEDIA_DISABLE_SUBTITLES_REQUEST](e,t,{detail:i}){let a=s9(t);sq(aU.DISABLED,a,null!=i?i:[])},[aL.MEDIA_TOGGLE_SUBTITLES_REQUEST](e,t,{detail:i}){rt(t,i)},[aL.MEDIA_RENDITION_REQUEST](e,t,{detail:i}){e.mediaRenditionSelected.set(i,t)},[aL.MEDIA_AUDIO_TRACK_REQUEST](e,t,{detail:i}){e.mediaAudioTrackEnabled.set(i,t)},[aL.MEDIA_ENTER_PIP_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsPip.set(!0,t)},[aL.MEDIA_EXIT_PIP_REQUEST](e,t){e.mediaIsPip.set(!1,t)},[aL.MEDIA_ENTER_FULLSCREEN_REQUEST](e,t,i){e.mediaIsPip.get(t)&&e.mediaIsPip.set(!1,t),e.mediaIsFullscreen.set(!0,t,i)},[aL.MEDIA_EXIT_FULLSCREEN_REQUEST](e,t){e.mediaIsFullscreen.set(!1,t)},[aL.MEDIA_ENTER_CAST_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsCasting.set(!0,t)},[aL.MEDIA_EXIT_CAST_REQUEST](e,t){e.mediaIsCasting.set(!1,t)},[aL.MEDIA_AIRPLAY_REQUEST](e,t){e.mediaIsAirplaying.set(!0,t)}},rh=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ru=(e,t,i)=>(rh(e,t,"read from private field"),i?i.call(e):t.get(e)),rc=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},rm=(e,t,i,a)=>(rh(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),rp=(e,t,i)=>(rh(e,t,"access private method"),i),rv=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"," ","f","m","k","c","l","j",">","<","p"],rE={DEFAULT_SUBTITLES:"defaultsubtitles",DEFAULT_STREAM_TYPE:"defaultstreamtype",DEFAULT_DURATION:"defaultduration",FULLSCREEN_ELEMENT:"fullscreenelement",HOTKEYS:"hotkeys",KEYBOARD_BACKWARD_SEEK_OFFSET:"keyboardbackwardseekoffset",KEYBOARD_FORWARD_SEEK_OFFSET:"keyboardforwardseekoffset",KEYBOARD_DOWN_VOLUME_STEP:"keyboarddownvolumestep",KEYBOARD_UP_VOLUME_STEP:"keyboardupvolumestep",KEYS_USED:"keysused",LANG:"lang",LOOP:"loop",LIVE_EDGE_OFFSET:"liveedgeoffset",NO_AUTO_SEEK_TO_LIVE:"noautoseektolive",NO_DEFAULT_STORE:"nodefaultstore",NO_HOTKEYS:"nohotkeys",NO_MUTED_PREF:"nomutedpref",NO_SUBTITLES_LANG_PREF:"nosubtitleslangpref",NO_VOLUME_PREF:"novolumepref",SEEK_TO_LIVE_OFFSET:"seektoliveoffset"},rb=class extends sO{constructor(){super(),rc(this,H),rc(this,V),rc(this,F),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,rc(this,D,new sW(this,rE.HOTKEYS)),rc(this,R,void 0),rc(this,C,void 0),rc(this,x,null),rc(this,O,void 0),rc(this,N,void 0),rc(this,U,e=>{var t;null==(t=ru(this,C))||t.dispatch(e)}),rc(this,P,void 0),rc(this,B,e=>{let{key:t,shiftKey:i}=e;if(!(i&&("/"===t||"?"===t)||rv.includes(t)))return void this.removeEventListener("keyup",ru(this,B));this.keyboardShortcutHandler(e)}),this.associateElement(this);let e={};rm(this,O,t=>{Object.entries(t).forEach(([t,i])=>{if(t in e&&e[t]===i)return;
159this.propagateMediaState(t,i);let a=t.toLowerCase(),s=new a8.CustomEvent(aO[a],{composed:!0,detail:i});this.dispatchEvent(s)}),e=t})}static get observedAttributes(){return super.observedAttributes.concat(rE.NO_HOTKEYS,rE.HOTKEYS,rE.DEFAULT_STREAM_TYPE,rE.DEFAULT_SUBTITLES,rE.DEFAULT_DURATION,rE.NO_MUTED_PREF,rE.NO_VOLUME_PREF,rE.LANG,rE.LOOP,rE.LIVE_EDGE_OFFSET,rE.SEEK_TO_LIVE_OFFSET,rE.NO_AUTO_SEEK_TO_LIVE)}get mediaStore(){return ru(this,C)}set mediaStore(e){var t,i;if(ru(this,C)&&(null==(t=ru(this,N))||t.call(this),rm(this,N,void 0)),rm(this,C,e),!ru(this,C)&&!this.hasAttribute(rE.NO_DEFAULT_STORE))return void rp(this,H,W).call(this);rm(this,N,null==(i=ru(this,C))?void 0:i.subscribe(ru(this,O)))}get fullscreenElement(){var e;return null!=(e=ru(this,R))?e:this}set fullscreenElement(e){var t;this.hasAttribute(rE.FULLSCREEN_ELEMENT)&&this.removeAttribute(rE.FULLSCREEN_ELEMENT),rm(this,R,e),null==(t=ru(this,C))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}get defaultSubtitles(){return sg(this,rE.DEFAULT_SUBTITLES)}set defaultSubtitles(e){sf(this,rE.DEFAULT_SUBTITLES,e)}get defaultStreamType(){return sA(this,rE.DEFAULT_STREAM_TYPE)}set defaultStreamType(e){sT(this,rE.DEFAULT_STREAM_TYPE,e)}get defaultDuration(){return sE(this,rE.DEFAULT_DURATION)}set defaultDuration(e){sb(this,rE.DEFAULT_DURATION,e)}get noHotkeys(){return sg(this,rE.NO_HOTKEYS)}set noHotkeys(e){sf(this,rE.NO_HOTKEYS,e)}get keysUsed(){return sA(this,rE.KEYS_USED)}set keysUsed(e){sT(this,rE.KEYS_USED,e)}get liveEdgeOffset(){return sE(this,rE.LIVE_EDGE_OFFSET)}set liveEdgeOffset(e){sb(this,rE.LIVE_EDGE_OFFSET,e)}get noAutoSeekToLive(){return sg(this,rE.NO_AUTO_SEEK_TO_LIVE)}set noAutoSeekToLive(e){sf(this,rE.NO_AUTO_SEEK_TO_LIVE,e)}get noVolumePref(){return sg(this,rE.NO_VOLUME_PREF)}set noVolumePref(e){sf(this,rE.NO_VOLUME_PREF,e)}get noMutedPref(){return sg(this,rE.NO_MUTED_PREF)}set noMutedPref(e){sf(this,rE.NO_MUTED_PREF,e)}get noSubtitlesLangPref(){return sg(this,rE.NO_SUBTITLES_LANG_PREF)}set noSubtitlesLangPref(e){sf(this,rE.NO_SUBTITLES_LANG_PREF,e)}get noDefaultStore(){return sg(this,rE.NO_DEFAULT_STORE)}set noDefaultStore(e){sf(this,rE.NO_DEFAULT_STORE,e)}attributeChangedCallback(e,t,i){var a,s,r,n,o,l,d,h,u,c,m,p;if(super.attributeChangedCallback(e,t,i),e===rE.NO_HOTKEYS)i!==t&&""===i?(this.hasAttribute(rE.HOTKEYS)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):i!==t&&null===i&&this.enableHotkeys();else if(e===rE.HOTKEYS)ru(this,D).value=i;else if(e===rE.DEFAULT_SUBTITLES&&i!==t)null==(a=ru(this,C))||a.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(rE.DEFAULT_SUBTITLES)}});else if(e===rE.DEFAULT_STREAM_TYPE)null==(r=ru(this,C))||r.dispatch({type:"optionschangerequest",detail:{defaultStreamType:null!=(s=this.getAttribute(rE.DEFAULT_STREAM_TYPE))?s:void 0}});else if(e===rE.LIVE_EDGE_OFFSET&&i!==t)null==(n=ru(this,C))||n.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(rE.LIVE_EDGE_OFFSET)?+this.getAttribute(rE.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(rE.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(rE.SEEK_TO_LIVE_OFFSET):this.hasAttribute(rE.LIVE_EDGE_OFFSET)?+this.getAttribute(rE.LIVE_EDGE_OFFSET):void 0}});else if(e===rE.SEEK_TO_LIVE_OFFSET&&i!==t)null==(o=ru(this,C))||o.dispatch({type:"optionschangerequest",detail:{seekToLiveOffset:this.hasAttribute(rE.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(rE.SEEK_TO_LIVE_OFFSET):this.hasAttribute(rE.LIVE_EDGE_OFFSET)?+this.getAttribute(rE.LIVE_EDGE_OFFSET):void 0}});else if(e===rE.NO_AUTO_SEEK_TO_LIVE)null==(l=ru(this,C))||l.dispatch({type:"optionschangerequest",detail:{noAutoSeekToLive:this.hasAttribute(rE.NO_AUTO_SEEK_TO_LIVE)}});else if(e===rE.FULLSCREEN_ELEMENT){let e=i?null==(d=this.getRootNode())?void 0:d.getElementById(i):void 0;rm(this,R,e),null==(h=ru(this,C))||h.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}else e===rE.LANG&&i!==t?(aQ=i,null==(u=ru(this,C))||u.dispatch({type:"optionschangerequest",detail:{mediaLang:i}}
159)):e===rE.LOOP&&i!==t?null==(c=ru(this,C))||c.dispatch({type:aL.MEDIA_LOOP_REQUEST,detail:null!=i}):e===rE.NO_VOLUME_PREF&&i!==t?null==(m=ru(this,C))||m.dispatch({type:"optionschangerequest",detail:{noVolumePref:this.hasAttribute(rE.NO_VOLUME_PREF)}}):e===rE.NO_MUTED_PREF&&i!==t&&(null==(p=ru(this,C))||p.dispatch({type:"optionschangerequest",detail:{noMutedPref:this.hasAttribute(rE.NO_MUTED_PREF)}}))}connectedCallback(){var e,t,i;this.associateElement(this),ru(this,C)||this.hasAttribute(rE.NO_DEFAULT_STORE)||rp(this,H,W).call(this),null==(e=ru(this,C))||e.dispatch({type:"documentelementchangerequest",detail:a6}),null==(t=ru(this,C))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement}),super.connectedCallback(),ru(this,C)&&!ru(this,N)&&rm(this,N,null==(i=ru(this,C))?void 0:i.subscribe(ru(this,O))),void 0!==ru(this,P)&&ru(this,C)&&this.media&&setTimeout(()=>{var e,t,i;(null==(t=null==(e=this.media)?void 0:e.textTracks)?void 0:t.length)&&(null==(i=ru(this,C))||i.dispatch({type:aL.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:ru(this,P)}))},0),this.hasAttribute(rE.NO_HOTKEYS)?this.disableHotkeys():this.enableHotkeys()}disconnectedCallback(){var e,t,i,a,s,r;if(null==(e=super.disconnectedCallback)||e.call(this),this.disableHotkeys(),ru(this,C)){let e=ru(this,C).getState();rm(this,P,!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)),null==(i=ru(this,C))||i.dispatch({type:"fullscreenelementchangerequest",detail:void 0}),null==(a=ru(this,C))||a.dispatch({type:"documentelementchangerequest",detail:void 0}),null==(s=ru(this,C))||s.dispatch({type:aL.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})}ru(this,N)&&(null==(r=ru(this,N))||r.call(this),rm(this,N,void 0)),this.unassociateElement(this),ru(this,x)&&(ru(this,x).remove(),rm(this,x,null))}mediaSetCallback(e){var t;super.mediaSetCallback(e),null==(t=ru(this,C))||t.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var t;super.mediaUnsetCallback(e),null==(t=ru(this,C))||t.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,t){ry(this.mediaStateReceivers,e,t)}associateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;if(t.has(e))return;let i=rS(e,this.registerMediaStateReceiver.bind(this),this.unregisterMediaStateReceiver.bind(this));Object.values(aL).forEach(t=>{e.addEventListener(t,ru(this,U))}),t.set(e,i)}unassociateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;t.has(e)&&(t.get(e)(),t.delete(e),Object.values(aL).forEach(t=>{e.removeEventListener(t,ru(this,U))}))}registerMediaStateReceiver(e){if(!e)return;let t=this.mediaStateReceivers;!(t.indexOf(e)>-1)&&(t.push(e),ru(this,C)&&Object.entries(ru(this,C).getState()).forEach(([t,i])=>{ry([e],t,i)}))}unregisterMediaStateReceiver(e){let t=this.mediaStateReceivers,i=t.indexOf(e);i<0||t.splice(i,1)}enableHotkeys(){this.addEventListener("keydown",rp(this,V,$))}disableHotkeys(){this.removeEventListener("keydown",rp(this,V,$)),this.removeEventListener("keyup",ru(this,B))}get hotkeys(){return ru(this,D)}set hotkeys(e){sT(this,rE.HOTKEYS,e)}keyboardShortcutHandler(e){var t,i,a,s,r,n,o,l,d;let h,u,c,m=e.target;if(!((null!=(a=null!=(i=null==(t=m.getAttribute(rE.KEYS_USED))?void 0:t.split(" "))?i:null==m?void 0:m.keysUsed)?a:[]).map(e=>
159"Space"===e?" ":e).filter(Boolean).includes(e.key)||ru(this,D).contains(`no${e.key.toLowerCase()}`)||" "===e.key&&ru(this,D).contains("nospace"))&&!(e.shiftKey&&("/"===e.key||"?"===e.key)&&ru(this,D).contains("noshift+/")))switch(e.key){case" ":case"k":h=ru(this,C).getState().mediaPaused?aL.MEDIA_PLAY_REQUEST:aL.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new a8.CustomEvent(h,{composed:!0,bubbles:!0}));break;case"m":h="off"===this.mediaStore.getState().mediaVolumeLevel?aL.MEDIA_UNMUTE_REQUEST:aL.MEDIA_MUTE_REQUEST,this.dispatchEvent(new a8.CustomEvent(h,{composed:!0,bubbles:!0}));break;case"f":h=this.mediaStore.getState().mediaIsFullscreen?aL.MEDIA_EXIT_FULLSCREEN_REQUEST:aL.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new a8.CustomEvent(h,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new a8.CustomEvent(aL.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":case"j":{let e=this.hasAttribute(rE.KEYBOARD_BACKWARD_SEEK_OFFSET)?+this.getAttribute(rE.KEYBOARD_BACKWARD_SEEK_OFFSET):10;u=Math.max((null!=(s=this.mediaStore.getState().mediaCurrentTime)?s:0)-e,0),c=new a8.CustomEvent(aL.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break}case"ArrowRight":case"l":{let e=this.hasAttribute(rE.KEYBOARD_FORWARD_SEEK_OFFSET)?+this.getAttribute(rE.KEYBOARD_FORWARD_SEEK_OFFSET):10;u=Math.max((null!=(r=this.mediaStore.getState().mediaCurrentTime)?r:0)+e,0),c=new a8.CustomEvent(aL.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break}case"ArrowUp":{let e=this.hasAttribute(rE.KEYBOARD_UP_VOLUME_STEP)?+this.getAttribute(rE.KEYBOARD_UP_VOLUME_STEP):.025;u=Math.min((null!=(n=this.mediaStore.getState().mediaVolume)?n:1)+e,1),c=new a8.CustomEvent(aL.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break}case"ArrowDown":{let e=this.hasAttribute(rE.KEYBOARD_DOWN_VOLUME_STEP)?+this.getAttribute(rE.KEYBOARD_DOWN_VOLUME_STEP):.025;u=Math.max((null!=(o=this.mediaStore.getState().mediaVolume)?o:1)-e,0),c=new a8.CustomEvent(aL.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break}case"<":u=Math.max((null!=(l=this.mediaStore.getState().mediaPlaybackRate)?l:1)-.25,.25).toFixed(2),c=new a8.CustomEvent(aL.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break;case">":u=Math.min((null!=(d=this.mediaStore.getState().mediaPlaybackRate)?d:1)+.25,2).toFixed(2),c=new a8.CustomEvent(aL.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break;case"/":case"?":e.shiftKey&&rp(this,F,G).call(this);break;case"p":h=this.mediaStore.getState().mediaIsPip?aL.MEDIA_EXIT_PIP_REQUEST:aL.MEDIA_ENTER_PIP_REQUEST,c=new a8.CustomEvent(h,{composed:!0,bubbles:!0}),this.dispatchEvent(c)}}};D=new WeakMap,R=new WeakMap,C=new WeakMap,x=new WeakMap,O=new WeakMap,N=new WeakMap,U=new WeakMap,P=new WeakMap,H=new WeakSet,W=function(){var e;this.mediaStore=(({media:e,fullscreenElement:t,documentElement:i,stateMediator:a=rl,requestMap:s=rd,options:r={},monitorStateOwnersOnlyWithSubscriptions:n=!0})=>{let o,l=[],d={options:{...r}},h=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0}),u=e=>{void 0!=e&&(ri(e,h)||(h=Object.freeze({...h,...e}),l.forEach(e=>e(h))))},c=()=>{u(Object.entries(a).reduce((e,[t,{get:i}])=>(e[t]=i(d),e),{}))},m={},p=async(e,t)=>{var i,s,r,h,p,v,E,b,g,f,A,T,k,_,w,I;let y=!!o;if(o={...d,...null!=o?o:{},...e},y)return;await rn(...Object.values(e));let S=l.length>0&&0===t&&n,L=d.media!==o.media,M=(null==(i=d.media)?void 0:i.textTracks)!==(null==(s=o.media)?void 0:s.textTracks),D=(null==(r=d.media)?void 0:r.videoRenditions)!==(null==(h=o.media)?void 0:h.videoRenditions),R=(null==(p=d.media)?void 0:p.audioTracks)!==(null==(v=o.media)?void 0:v.audioTracks),C=(null==(E=d.media)?void 0:E.remote)!==(null==(b=o.media)?void 0:b.remote),x=d.documentElement!==o.documentElement,O=!!d.media&&(L||S),N=!!(null==(g=d.media)?void 0:g.textTracks)&&(M||S),U=!!(null==(f=d.media)?void 0:f.videoRenditions)&&(D||S),P=!!(null==(A=d.media)?void 0:A.audioTracks)&&(R||S),H=!!(null==(T=d.media)?void 0:T.remote)&&(C||S),W=!!d.documentElement&&(x||S),B=O||N||U||P||H||W,V=0===l.length&&1===t&&n,$=!!o.media&&(L||V),F=!!(null==(k=o.media)?void 0:k.textTracks)&&(M||V),G=!!(null==(_=o.media)?void 0:_.videoRenditions)&&(D||V),K=!!(null==(w=o.media)?void 0:w.audioTracks)&&(R||V),q=!!(null==(I=o.media)?void 0:I.remote)&&(C||V),Z=!!o.documentElement&&(x||V),Y=$||F||G||K||q||Z;
159if(!(B||Y)){Object.entries(o).forEach(([e,t])=>{d[e]=t}),c(),o=void 0;return}Object.entries(a).forEach(([e,{get:t,mediaEvents:i=[],textTracksEvents:a=[],videoRenditionsEvents:s=[],audioTracksEvents:r=[],remoteEvents:n=[],rootEvents:l=[],stateOwnersUpdateHandlers:h=[]}])=>{let c;m[e]||(m[e]={});let p=i=>{u({[e]:t(d,i)})};c=m[e].mediaEvents,i.forEach(t=>{c&&O&&(d.media.removeEventListener(t,c),m[e].mediaEvents=void 0),$&&(o.media.addEventListener(t,p),m[e].mediaEvents=p)}),c=m[e].textTracksEvents,a.forEach(t=>{var i,a;c&&N&&(null==(i=d.media.textTracks)||i.removeEventListener(t,c),m[e].textTracksEvents=void 0),F&&(null==(a=o.media.textTracks)||a.addEventListener(t,p),m[e].textTracksEvents=p)}),c=m[e].videoRenditionsEvents,s.forEach(t=>{var i,a;c&&U&&(null==(i=d.media.videoRenditions)||i.removeEventListener(t,c),m[e].videoRenditionsEvents=void 0),G&&(null==(a=o.media.videoRenditions)||a.addEventListener(t,p),m[e].videoRenditionsEvents=p)}),c=m[e].audioTracksEvents,r.forEach(t=>{var i,a;c&&P&&(null==(i=d.media.audioTracks)||i.removeEventListener(t,c),m[e].audioTracksEvents=void 0),K&&(null==(a=o.media.audioTracks)||a.addEventListener(t,p),m[e].audioTracksEvents=p)}),c=m[e].remoteEvents,n.forEach(t=>{var i,a;c&&H&&(null==(i=d.media.remote)||i.removeEventListener(t,c),m[e].remoteEvents=void 0),q&&(null==(a=o.media.remote)||a.addEventListener(t,p),m[e].remoteEvents=p)}),c=m[e].rootEvents,l.forEach(t=>{c&&W&&(d.documentElement.removeEventListener(t,c),m[e].rootEvents=void 0),Z&&(o.documentElement.addEventListener(t,p),m[e].rootEvents=p)});let v=m[e].stateOwnersUpdateHandlers;if(v&&B&&(Array.isArray(v)?v:[v]).forEach(e=>{"function"==typeof e&&e()}),Y){let t=h.map(e=>e(p,o)).filter(e=>"function"==typeof e);m[e].stateOwnersUpdateHandlers=1===t.length?t[0]:t}else B&&(m[e].stateOwnersUpdateHandlers=void 0)}),Object.entries(o).forEach(([e,t])=>{d[e]=t}),c(),o=void 0};return p({media:e,fullscreenElement:t,documentElement:i,options:r}),{dispatch(e){let{type:t,detail:i}=e;if(s[t]&&null==h.mediaErrorCode)return void u(s[t](a,d,e));"mediaelementchangerequest"===t?p({media:i}):"fullscreenelementchangerequest"===t?p({fullscreenElement:i}):"documentelementchangerequest"===t?p({documentElement:i}):"optionschangerequest"===t&&(Object.entries(null!=i?i:{}).forEach(([e,t])=>{d.options[e]=t}),c())},getState:()=>h,subscribe:e=>(p({},l.length+1),l.push(e),e(h),()=>{let t=l.indexOf(e);t>=0&&(p({},l.length-1),l.splice(t,1))})}})({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(rE.DEFAULT_SUBTITLES),defaultDuration:this.hasAttribute(rE.DEFAULT_DURATION)?+this.getAttribute(rE.DEFAULT_DURATION):void 0,defaultStreamType:null!=(e=this.getAttribute(rE.DEFAULT_STREAM_TYPE))?e:void 0,liveEdgeOffset:this.hasAttribute(rE.LIVE_EDGE_OFFSET)?+this.getAttribute(rE.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(rE.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(rE.SEEK_TO_LIVE_OFFSET):this.hasAttribute(rE.LIVE_EDGE_OFFSET)?+this.getAttribute(rE.LIVE_EDGE_OFFSET):void 0,noAutoSeekToLive:this.hasAttribute(rE.NO_AUTO_SEEK_TO_LIVE),noVolumePref:this.hasAttribute(rE.NO_VOLUME_PREF),noMutedPref:this.hasAttribute(rE.NO_MUTED_PREF),noSubtitlesLangPref:this.hasAttribute(rE.NO_SUBTITLES_LANG_PREF)}})},B=new WeakMap,V=new WeakSet,$=function(e){var t;let{metaKey:i,altKey:a,key:s,shiftKey:r}=e,n=r&&("/"===s||"?"===s);if(n&&(null==(t=ru(this,x))?void 0:t.open)||i||a||!n&&!rv.includes(s))return void this.removeEventListener("keyup",ru(this,B));let o=e.target,l=o instanceof HTMLElement&&("media-volume-range"===o.tagName.toLowerCase()||"media-time-range"===o.tagName.toLowerCase());![" ","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(s)||ru(this,D).contains(`no${s.toLowerCase()}`)||" "===s&&ru(this,D).contains("nospace")||l||e.preventDefault(),this.addEventListener("keyup",ru(this,B),{once:!0})},F=new WeakSet,G=function(){ru(this,x)||(rm(this,x,a6.createElement("media-keyboard-shortcuts-dialog")),this.appendChild(ru(this,x))),ru(this,x).open=!0};var rg=Object.values(aC),rf=Object.values(aD),rA=e=>{var t,i,a,s;let{observedAttributes:r}=e.constructor;!r&&(null==(t=e.nodeName)?void 0:t.includes("-"))&&(a8.customElements.upgrade(e),{observedAttributes:r}=e.constructor);let n=null==(s=null==(a=null==(i=null==e?void 0:e.getAttribute)?void 0:i.call(e,aM.MEDIA_CHROME_ATTRIBUTES))?void 0:a.split)?void 0:s.call(a,/\s+/);return Array.isArray(r||n)?(r||n).filter(e=>rg.includes(e)):[]},rT=e=>(e=>{var t,i;return(null==(t=e.nodeName)?void 0:t.includes("-"))&&a8.customElements.get(null==(i=e.nodeName)?void 0:i.toLowerCase())&&!(e instanceof a8.customElements.get(e.nodeName.toLowerCase()))&&a8.customElements.upgrade(e),rf.some(t=>t in e)})(e)||!!rA(e).length,rk=e=>{var t;return null==(t=null==e?void 0:e.join)?void 0:t.call(e,":")},r_={[aC.MEDIA_SUBTITLES_LIST]:sG,[aC.MEDIA_SUBTITLES_SHOWING]:sG,[aC.MEDIA_SEEKABLE]:rk,[aC.MEDIA_BUFFERED]:e=>null==e?void 0:e.map(rk).join(" "),[aC.MEDIA_PREVIEW_COORDS]:e=>null==e?void 0:e.join(" "),[aC.MEDIA_RENDITION_LIST]:function(e){return null==e?void 0:e.map(aV).join(" ")},[aC.MEDIA_AUDIO_TRACK_LIST]:function(e){return null==e?void 0:e.map(aF).join(" ")}},rw=async(e,t,i)=>{var a,s;if(e.isConnected||await aZ(0),"boolean"==typeof i||null==i)return sf(e,t,i);if("number"==typeof i)return sb(e,t,i);if("string"==typeof i)return sT(e,t,i);if(Array.isArray(i)&&!i.length)return e.removeAttribute(t);let r=null!=(s=null==(a=r_[t])?void 0:a.call(r_,i))?s:i;return e.setAttribute(t,r)},rI=(e,t)=>
159{if((e=>{var t;return!!(null==(t=e.closest)?void 0:t.call(e,'*[slot="media"]'))})(e))return;let i=(e,t)=>{var i,a;rT(e)&&t(e);let{children:s=[]}=null!=e?e:{};[...s,...null!=(a=null==(i=null==e?void 0:e.shadowRoot)?void 0:i.children)?a:[]].forEach(e=>rI(e,t))},a=null==e?void 0:e.nodeName.toLowerCase();if(a.includes("-")&&!rT(e))return void a8.customElements.whenDefined(a).then(()=>{i(e,t)});i(e,t)},ry=(e,t,i)=>{e.forEach(e=>{if(t in e){e[t]=i;return}let a=rA(e),s=t.toLowerCase();a.includes(s)&&rw(e,s,i)})},rS=(e,t,i)=>{rI(e,t);let a=e=>{var i;t(null!=(i=null==e?void 0:e.composedPath()[0])?i:e.target)},s=e=>{var t;i(null!=(t=null==e?void 0:e.composedPath()[0])?t:e.target)};e.addEventListener(aL.REGISTER_MEDIA_STATE_RECEIVER,a),e.addEventListener(aL.UNREGISTER_MEDIA_STATE_RECEIVER,s);let r=[],n=e=>{let a=e.target;"media"!==a.name&&(r.forEach(e=>rI(e,i)),(r=[...a.assignedElements({flatten:!0})]).forEach(e=>rI(e,t)))};e.addEventListener("slotchange",n);let o=new MutationObserver(e=>{e.forEach(e=>{let{addedNodes:a=[],removedNodes:s=[],type:r,target:n,attributeName:o}=e;"childList"===r?(Array.prototype.forEach.call(a,e=>rI(e,t)),Array.prototype.forEach.call(s,e=>rI(e,i))):"attributes"===r&&o===aM.MEDIA_CHROME_ATTRIBUTES&&(rT(n)?t(n):i(n))})});return o.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{rI(e,i),e.removeEventListener("slotchange",n),o.disconnect(),e.removeEventListener(aL.REGISTER_MEDIA_STATE_RECEIVER,a),e.removeEventListener(aL.UNREGISTER_MEDIA_STATE_RECEIVER,s)}};a8.customElements.get("media-controller")||a8.customElements.define("media-controller",rb);var rL={PLACEMENT:"placement",BOUNDS:"bounds"},rM=class extends a8.HTMLElement{constructor(){if(super(),this.updateXOffset=()=>{var e;if(!sm(this,{checkOpacity:!1,checkVisibilityCSS:!1}))return;let t=this.placement;if("left"===t||"right"===t)return void this.style.removeProperty("--media-tooltip-offset-x");let i=getComputedStyle(this),a=null!=(e=sh(this,"#"+this.bounds))?e:sr(this);if(!a)return;let{x:s,width:r}=a.getBoundingClientRect(),{x:n,width:o}=this.getBoundingClientRect(),l=i.getPropertyValue("--media-tooltip-offset-x"),d=l?parseFloat(l.replace("px","")):0,h=i.getPropertyValue("--media-tooltip-container-margin"),u=h?parseFloat(h.replace("px","")):0,c=n-s+d-u,m=n+o-(s+r)+d+u;return c<0?void this.style.setProperty("--media-tooltip-offset-x",`${c}px`):m>0?void this.style.setProperty("--media-tooltip-offset-x",`${m}px`):void this.style.removeProperty("--media-tooltip-offset-x")},!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}if(this.arrowEl=this.shadowRoot.querySelector("#arrow"),Object.prototype.hasOwnProperty.call(this,"placement")){let e=this.placement;delete this.placement,this.placement=e}}static get observedAttributes(){return[rL.PLACEMENT,rL.BOUNDS]}get placement(){return sA(this,rL.PLACEMENT)}set placement(e){sT(this,rL.PLACEMENT,e)}get bounds(){return sA(this,rL.BOUNDS)}set bounds(e){sT(this,rL.BOUNDS,e)}};rM.shadowRootOptions={mode:"open"},rM.getTemplateHTML=function(e){return` 160 <style> 161 :host { 162 --_tooltip-background-color: var(--media-tooltip-background-color, var(--media-secondary-color, rgba(20, 20, 30, .7))); 163 --_tooltip-background: var(--media-tooltip-background, var(--_tooltip-background-color)); 164 --_tooltip-arrow-half-width: calc(var(--media-tooltip-arrow-width, 12px) / 2); 165 --_tooltip-arrow-height: var(--media-tooltip-arrow-height, 5px); 166 --_tooltip-arrow-background: var(--media-tooltip-arrow-color, var(--_tooltip-background-color)); 167 position: relative; 168 pointer-events: none; 169 display: var(--media-tooltip-display, inline-flex); 170 justify-content: center; 171 align-items: center; 172 box-sizing: border-box; 173 z-index: var(--media-tooltip-z-index, 1); 174 background: var(--_tooltip-background); 175 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 176 font: var(--media-font, 177 var(--media-font-weight, 400) 178 var(--media-font-size, 13px) / 179 var(--media-text-content-height, var(--media-control-height, 18px)) 180 var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif)); 181 padding: var(--media-tooltip-padding, .35em .7em); 182 border: var(--media-tooltip-border, none); 183 border-radius: var(--media-tooltip-border-radius, 5px); 184 filter: var(--media-tooltip-filter, drop-shadow(0 0 4px rgba(0, 0, 0, .2))); 185 white-space: var(--media-tooltip-white-space, nowrap); 186 } 187 188 :host([hidden]) { 189 display: none; 190 } 191 192 img, svg { 193 display: inline-block; 194 } 195 196 #arrow { 197 position: absolute; 198 width: 0px; 199 height: 0px; 200 border-style: solid; 201 display: var(--media-tooltip-arrow-display, block); 202 } 203 204 :host(:not([placement])), 205 :host([placement="top"]) { 206 position: absolute; 207 bottom: calc(100% + var(--media-tooltip-distance, 12px)); 208 left: 50%; 209 transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0
209); 210 } 211 :host(:not([placement])) #arrow, 212 :host([placement="top"]) #arrow { 213 top: 100%; 214 left: 50%; 215 border-width: var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width); 216 border-color: var(--_tooltip-arrow-background) transparent transparent transparent; 217 transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0); 218 } 219 220 :host([placement="right"]) { 221 position: absolute; 222 left: calc(100% + var(--media-tooltip-distance, 12px)); 223 top: 50%; 224 transform: translate(0, -50%); 225 } 226 :host([placement="right"]) #arrow { 227 top: 50%; 228 right: 100%; 229 border-width: var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0; 230 border-color: transparent var(--_tooltip-arrow-background) transparent transparent; 231 transform: translate(0, -50%); 232 } 233 234 :host([placement="bottom"]) { 235 position: absolute; 236 top: calc(100% + var(--media-tooltip-distance, 12px)); 237 left: 50%; 238 transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0); 239 } 240 :host([placement="bottom"]) #arrow { 241 bottom: 100%; 242 left: 50%; 243 border-width: 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width); 244 border-color: transparent transparent var(--_tooltip-arrow-background) transparent; 245 transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0); 246 } 247 248 :host([placement="left"]) { 249 position: absolute; 250 right: calc(100% + var(--media-tooltip-distance, 12px)); 251 top: 50%; 252 transform: translate(0, -50%); 253 } 254 :host([placement="left"]) #arrow { 255 top: 50%; 256 left: 100%; 257 border-width: var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height); 258 border-color: transparent transparent transparent var(--_tooltip-arrow-background); 259 transform: translate(0, -50%); 260 } 261 262 :host([placement="none"]) #arrow { 263 display: none; 264 } 265 </style> 266 <slot></slot> 267 <div id="arrow"></div> 268 `},a8.customElements.get("media-tooltip")||a8.customElements.define("media-tooltip",rM);var rD=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},rR=(e,t,i)=>(rD(e,t,"read from private field"),i?i.call(e):t.get(e)),rC=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},rx=(e,t,i,a)=>(rD(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),rO={TOOLTIP_PLACEMENT:"tooltipplacement",DISABLED:"disabled",NO_TOOLTIP:"notooltip"},rN=class extends a8.HTMLElement{constructor(){if(super(),rC(this,j),rC(this,K,void 0),this.preventClick=!1,this.tooltipEl=null,rC(this,q,e=>{this.preventClick||this.handleClick(e),setTimeout(rR(this,Z),0)}),rC(this,Z,()=>{var e,t;null==(t=null==(e=this.tooltipEl)?void 0:e.updateXOffset)||t.call(e)}),rC(this,Y,e=>{let{key:t}=e;if(!this.keysUsed.includes(t))return void this.removeEventListener("keyup",rR(this,Y));this.preventClick||this.handleClick(e)}),rC(this,Q,e=>{let{metaKey:t,altKey:i,key:a}=e;if(t||i||!this.keysUsed.includes(a))return void this.removeEventListener("keyup",rR(this,Y));this.addEventListener("keyup",rR(this,Y),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(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",rO.TOOLTIP_PLACEMENT,aM.MEDIA_CONTROLLER,aC.MEDIA_LANG]}enable(){this.addEventListener("click",rR(this,q)),this.addEventListener("keydown",rR(this,Q)),this.tabIndex=0}disable(){this.removeEventListener("click",rR(this,q)),this.removeEventListener("keydown",rR(this,Q)),this.removeEventListener("keyup",rR(this,Y)),this.tabIndex=-1}attributeChangedCallback(e,t,i){var a,s,r,n,o;e===aM.MEDIA_CONTROLLER?(t&&(null==(s=null==(a=rR(this,K))?void 0:a.unassociateElement)||s.call(a,this),rx(this,K,null)),i&&this.isConnected&&(rx(this,K,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(o=null==(n=rR(this,K))?void 0:n.associateElement)||o.call(n,this))):"disabled"===e&&i!==t?null==i?this.enable():this.disable():e===rO.TOOLTIP_PLACEMENT&&this.tooltipEl&&i!==t?this.tooltipEl.placement=i:e===aC.MEDIA_LA
268NG&&(this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML=this.constructor.getTooltipContentHTML()),rR(this,Z).call(this)}connectedCallback(){var e,t,i;let{style:a}=sp(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")?this.disable():this.enable(),this.setAttribute("role","button");let s=this.getAttribute(aM.MEDIA_CONTROLLER);s&&(rx(this,K,null==(e=this.getRootNode())?void 0:e.getElementById(s)),null==(i=null==(t=rR(this,K))?void 0:t.associateElement)||i.call(t,this)),a8.customElements.whenDefined("media-tooltip").then(()=>{var e,t;return(e=j,t=z,rD(this,e,"access private method"),t).call(this)})}disconnectedCallback(){var e,t;this.disable(),null==(t=null==(e=rR(this,K))?void 0:e.unassociateElement)||t.call(e,this),rx(this,K,null),this.removeEventListener("mouseenter",rR(this,Z)),this.removeEventListener("focus",rR(this,Z)),this.removeEventListener("click",rR(this,q))}get keysUsed(){return["Enter"," "]}get tooltipPlacement(){return sA(this,rO.TOOLTIP_PLACEMENT)}set tooltipPlacement(e){sT(this,rO.TOOLTIP_PLACEMENT,e)}get mediaController(){return sA(this,aM.MEDIA_CONTROLLER)}set mediaController(e){sT(this,aM.MEDIA_CONTROLLER,e)}get disabled(){return sg(this,rO.DISABLED)}set disabled(e){sf(this,rO.DISABLED,e)}get noTooltip(){return sg(this,rO.NO_TOOLTIP)}set noTooltip(e){sf(this,rO.NO_TOOLTIP,e)}handleClick(e){}};K=new WeakMap,q=new WeakMap,Z=new WeakMap,Y=new WeakMap,Q=new WeakMap,j=new WeakSet,z=function(){this.addEventListener("mouseenter",rR(this,Z)),this.addEventListener("focus",rR(this,Z)),this.addEventListener("click",rR(this,q));let e=this.tooltipPlacement;e&&this.tooltipEl&&(this.tooltipEl.placement=e)},rN.shadowRootOptions={mode:"open"},rN.getTemplateHTML=function(e,t={}){return` 269 <style> 270 :host { 271 position: relative; 272 font: var(--media-font, 273 var(--media-font-weight, bold) 274 var(--media-font-size, 14px) / 275 var(--media-text-content-height, var(--media-control-height, 24px)) 276 var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif)); 277 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 278 background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))); 279 padding: var(--media-button-padding, var(--media-control-padding, 10px)); 280 justify-content: var(--media-button-justify-content, center); 281 display: inline-flex; 282 align-items: center; 283 vertical-align: middle; 284 box-sizing: border-box; 285 transition: background .15s linear; 286 pointer-events: auto; 287 cursor: var(--media-cursor, pointer); 288 -webkit-tap-highlight-color: transparent; 289 } 290 291 292 :host(:focus-visible) { 293 box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9)); 294 outline: 0; 295 } 296 297 :host(:where(:focus)) { 298 box-shadow: none; 299 outline: 0; 300 } 301 302 :host(:hover) { 303 background: var(--media-control-hover-background, rgba(50 50 70 / .7)); 304 } 305 306 svg, img, ::slotted(svg), ::slotted(img) { 307 width: var(--media-button-icon-width); 308 height: var(--media-button-icon-height, var(--media-control-height, 24px)); 309 transform: var(--media-button-icon-transform); 310 transition: var(--media-button-icon-transition); 311 fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))); 312 vertical-align: middle; 313 max-width: 100%; 314 max-height: 100%; 315 min-width: 100%; 316 } 317 318 media-tooltip { 319 320 max-width: 0; 321 overflow-x: clip; 322 opacity: 0; 323 transition: opacity .3s, max-width 0s 9s; 324 } 325 326 :host(:hover) media-tooltip, 327 :host(:focus-visible) media-tooltip { 328 max-width: 100vw; 329 opacity: 1; 330 transition: opacity .3s; 331 } 332 333 :host([notooltip]) slot[name="tooltip"] { 334 display: none; 335 } 336 </style> 337
338 ${this.getSlotTemplateHTML(e,t)} 339 340 <slot name="tooltip"> 341 <media-tooltip part="tooltip" aria-hidden="true"> 342 <template shadowrootmode="${rM.shadowRootOptions.mode}"> 343 ${rM.getTemplateHTML({})} 344 </template> 345 <slot name="tooltip-content"> 346 ${this.getTooltipContentHTML(e)} 347 </slot> 348 </media-tooltip> 349 </slot> 350 `},rN.getSlotTemplateHTML=function(e,t){return` 351 <slot></slot> 352 `},rN.getTooltipContentHTML=function(){return""},a8.customElements.get("media-chrome-button")||a8.customElements.define("media-chrome-button",rN);var rU=`<svg aria-hidden="true" viewBox="0 0 26 24"> 353 <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"/> 354</svg> 355`,rP=e=>{let t=e.mediaIsAirplaying?aj("stop airplay"):aj("start airplay");e.setAttribute("aria-label",t)},rH=class extends rN{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_IS_AIRPLAYING,aC.MEDIA_AIRPLAY_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),rP(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_IS_AIRPLAYING&&rP(this)}get mediaIsAirplaying(){return sg(this,aC.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){sf(this,aC.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return sA(this,aC.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){sT(this,aC.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){let e=new a8.CustomEvent(aL.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}};rH.getSlotTemplateHTML=function(e){return` 356 <style> 357 :host([${aC.MEDIA_IS_AIRPLAYING}]) slot[name=icon] slot:not([name=exit]) { 358 display: none !important; 359 } 360 361 362 :host(:not([${aC.MEDIA_IS_AIRPLAYING}])) slot[name=icon] slot:not([name=enter]) { 363 display: none !important; 364 } 365 366 :host([${aC.MEDIA_IS_AIRPLAYING}]) slot[name=tooltip-enter], 367 :host(:not([${aC.MEDIA_IS_AIRPLAYING}])) slot[name=tooltip-exit] { 368 display: none; 369 } 370 </style> 371 372 <slot name="icon"> 373 <slot name="enter">${rU}</slot> 374 <slot name="exit">${rU}</slot> 375 </slot> 376 `},rH.getTooltipContentHTML=function(){return` 377 <slot name="tooltip-enter">${aj("start airplay")}</slot> 378 <slot name="tooltip-exit">${aj("stop airplay")}</slot> 379 `},a8.customElements.get("media-airplay-button")||a8.customElements.define("media-airplay-button",rH);var rW=`<svg aria-hidden="true" viewBox="0 0 26 24"> 380 <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 0 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"/> 381</svg>`,rB=`<svg aria-hidden="true" viewBox="0 0 26 24"> 382 <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.8
3821 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"/> 383</svg>`,rV=e=>{e.setAttribute("aria-checked",sY(e).toString())},r$=class extends rN{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_SUBTITLES_LIST,aC.MEDIA_SUBTITLES_SHOWING]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-label",aj("closed captions")),rV(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_SUBTITLES_SHOWING&&rV(this)}get mediaSubtitlesList(){return rF(this,aC.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){rG(this,aC.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return rF(this,aC.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){rG(this,aC.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new a8.CustomEvent(aL.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}};r$.getSlotTemplateHTML=function(e){return` 384 <style> 385 :host([aria-checked="true"]) slot[name=off] { 386 display: none !important; 387 } 388 389 390 :host(:not([aria-checked="true"])) slot[name=on] { 391 display: none !important; 392 } 393 394 :host([aria-checked="true"]) slot[name=tooltip-enable], 395 :host(:not([aria-checked="true"])) slot[name=tooltip-disable] { 396 display: none; 397 } 398 </style> 399 400 <slot name="icon"> 401 <slot name="on">${rW}</slot> 402 <slot name="off">${rB}</slot> 403 </slot> 404 `},r$.getTooltipContentHTML=function(){return` 405 <slot name="tooltip-enable">${aj("Enable captions")}</slot> 406 <slot name="tooltip-disable">${aj("Disable captions")}</slot> 407 `};var rF=(e,t)=>{let i=e.getAttribute(t);return i?sV(i):[]},rG=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let a=sG(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};a8.customElements.get("media-captions-button")||a8.customElements.define("media-captions-button",r$);var rK=e=>{let t=e.mediaIsCasting?aj("stop casting"):aj("start casting");e.setAttribute("aria-label",t)},rq=class extends rN{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_IS_CASTING,aC.MEDIA_CAST_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),rK(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_IS_CASTING&&rK(this)}get mediaIsCasting(){return sg(this,aC.MEDIA_IS_CASTING)}set mediaIsCasting(e){sf(this,aC.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return sA(this,aC.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){sT(this,aC.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){let e=this.mediaIsCasting?aL.MEDIA_EXIT_CAST_REQUEST:aL.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new a8.CustomEvent(e,{composed:!0,bubbles:!0}))}};rq.getSlotTemplateHTML=function(e){return` 408 <style> 409 :host([${aC.MEDIA_IS_CASTING}]) slot[name=icon] slot:not([name=exit]) { 410 display: none !important; 411 } 412 413 414 :host(:not([${aC.MEDIA_IS_CASTING}])) slot[name=icon] slot:not([name=enter]) { 415 display: none !important; 416 } 417 418 :host([${aC.MEDIA_IS_CASTING}]) slot[name=tooltip-enter], 419 :host(:not([${aC.MEDIA_IS_CASTING}])) slot[name=tooltip-exit] { 420 display: none; 421 } 422 </style> 423 424 <slot name="icon"> 425 <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> 426 <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> 427 </slot> 428 `},rq.getTooltipContentHTML=function(){return` 429 <slot name="tooltip-enter">${aj("Start casting")}</slot> 430 <slot name="tooltip-exit">${aj("Stop casting")}</slot> 431 `},a8.customElements.get("media-cast-button")||a8.customElements.define("media-cast-button",rq);var rZ=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},rY=(e,t,i)=>(rZ(e,t,"read from private field"),i?i.call(e):t.get(e)),rQ=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},rj=(e,t,i,a)=>(rZ(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),rz=(e,t,i)=>(rZ(e,t,"access private method"),i),rX={OPEN:"open",ANCHOR:"anchor"},rJ=class extends a8.HTMLElement{constructor(){super(),rQ(this,et),rQ(this,ea),rQ(this,er),rQ(this,eo),rQ(this,ed),rQ(this,eu),rQ(this,X,!1),rQ(this,J,null),rQ(this,ee,null)}static get observedAttributes(){return[rX.OPEN,rX.ANCHOR]}get open(){return sg(this,rX.OPEN)}set open(e){sf(this,rX.OPEN,e)}handleEvent(e){switch(e.type){case"invoke":rz(this,eo,el).call(this,e);break;case"focusout":rz(this,ed,eh).call(this,e);break;
431case"keydown":rz(this,eu,ec).call(this,e)}}connectedCallback(){rz(this,et,ei).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,i){rz(this,et,ei).call(this),e===rX.OPEN&&i!==t&&(this.open?rz(this,ea,es).call(this):rz(this,er,en).call(this))}focus(){rj(this,J,su());let 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;let i=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==i||i.focus()}get keysUsed(){return["Escape","Tab"]}};X=new WeakMap,J=new WeakMap,ee=new WeakMap,et=new WeakSet,ei=function(){if(!rY(this,X)&&(rj(this,X,!0),!this.shadowRoot)){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e),queueMicrotask(()=>{let{style:e}=sp(this.shadowRoot,":host");e.setProperty("transition","display .15s, visibility .15s, opacity .15s ease-in, transform .15s ease-in")})}},ea=new WeakSet,es=function(){var e;null==(e=rY(this,ee))||e.setAttribute("aria-expanded","true"),this.dispatchEvent(new Event("open",{composed:!0,bubbles:!0})),this.addEventListener("transitionend",()=>this.focus(),{once:!0})},er=new WeakSet,en=function(){var e;null==(e=rY(this,ee))||e.setAttribute("aria-expanded","false"),this.dispatchEvent(new Event("close",{composed:!0,bubbles:!0}))},eo=new WeakSet,el=function(e){rj(this,ee,e.relatedTarget),sd(this,e.relatedTarget)||(this.open=!this.open)},ed=new WeakSet,eh=function(e){var t;!sd(this,e.relatedTarget)&&(null==(t=rY(this,J))||t.focus(),rY(this,ee)&&rY(this,ee)!==e.relatedTarget&&this.open&&(this.open=!1))},eu=new WeakSet,ec=function(e){var t,i,a,s,r;let{key:n,ctrlKey:o,altKey:l,metaKey:d}=e;o||l||d||this.keysUsed.includes(n)&&(e.preventDefault(),e.stopPropagation(),"Tab"===n?(e.shiftKey?null==(i=null==(t=this.previousElementSibling)?void 0:t.focus)||i.call(t):null==(s=null==(a=this.nextElementSibling)?void 0:a.focus)||s.call(a),this.blur()):"Escape"===n&&(null==(r=rY(this,J))||r.focus(),this.open=!1))},rJ.shadowRootOptions={mode:"open"},rJ.getTemplateHTML=function(e){return` 432 <style> 433 :host { 434 font: var(--media-font, 435 var(--media-font-weight, normal) 436 var(--media-font-size, 14px) / 437 var(--media-text-content-height, var(--media-control-height, 24px)) 438 var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif)); 439 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 440 display: var(--media-dialog-display, inline-flex); 441 justify-content: center; 442 align-items: center; 443 444 transition-behavior: allow-discrete; 445 visibility: hidden; 446 opacity: 0; 447 transform: translateY(2px) scale(.99); 448 pointer-events: none; 449 } 450 451 :host([open]) { 452 transition: display .2s, visibility 0s, opacity .2s ease-out, transform .15s ease-out; 453 visibility: visible; 454 opacity: 1; 455 transform: translateY(0) scale(1); 456 pointer-events: auto; 457 } 458 459 #content { 460 display: flex; 461 position: relative; 462 box-sizing: border-box; 463 width: min(320px, 100%); 464 word-wrap: break-word; 465 max-height: 100%; 466 overflow: auto; 467 text-align: center; 468 line-height: 1.4; 469 } 470 </style> 471 ${this.getSlotTemplateHTML(e)} 472 `},rJ.getSlotTemplateHTML=function(e){return` 473 <slot id="content"></slot> 474 `},a8.customElements.get("media-chrome-dialog")||a8.customElements.define("media-chrome-dialog",rJ);var r0=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},r1=(e,t,i)=>(r0(e,t,"read from private field"),i?i.call(e):t.get(e)),r2=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},r5=(e,t,i,a)=>(r0(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),r3=(e,t,i)=>(r0(e,t,"access private method"),i),r4=class extends a8.HTMLElement{constructor(){if(super(),r2(this,ek),r2(this,ew),r2(this,ey),r2(this,eL),r2(this,eD),r2(this,eC),r2(this,eO),r2(this,eU),r2(this,em,void 0),r2(this,ep,void 0),r2(this,ev,void 0),r2(this,eE,void 0),r2(this,eb,{}),r2(this,eg,[]),r2(this,ef,()=>{if(this.range.matches(":focus-visible")){let{style:e}=sp(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-sha
474dow)")}}),r2(this,eA,()=>{let{style:e}=sp(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")}),r2(this,eT,()=>{let e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.container=this.shadowRoot.querySelector("#container"),r5(this,ev,this.shadowRoot.querySelector("#startpoint")),r5(this,eE,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",aM.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,s,r,n,o;e===aM.MEDIA_CONTROLLER?(t&&(null==(s=null==(a=r1(this,em))?void 0:a.unassociateElement)||s.call(a,this),r5(this,em,null)),i&&this.isConnected&&(r5(this,em,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(o=null==(n=r1(this,em))?void 0:n.associateElement)||o.call(n,this))):("disabled"===e||"aria-disabled"===e&&t!==i)&&(null==i?(this.range.removeAttribute(e),r3(this,ew,eI).call(this)):(this.range.setAttribute(e,i),r3(this,ey,eS).call(this)))}connectedCallback(){var e,t,i;let{style:a}=sp(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),r1(this,eb).pointer=sp(this.shadowRoot,"#pointer"),r1(this,eb).progress=sp(this.shadowRoot,"#progress"),r1(this,eb).thumb=sp(this.shadowRoot,'#thumb, ::slotted([slot="thumb"])'),r1(this,eb).activeSegment=sp(this.shadowRoot,"#segments-clipping rect:nth-child(0)");let s=this.getAttribute(aM.MEDIA_CONTROLLER);s&&(r5(this,em,null==(e=this.getRootNode())?void 0:e.getElementById(s)),null==(i=null==(t=r1(this,em))?void 0:t.associateElement)||i.call(t,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",r1(this,ef)),this.shadowRoot.addEventListener("focusout",r1(this,eA)),r3(this,ew,eI).call(this),si(this.container,r1(this,eT))}disconnectedCallback(){var e,t;r3(this,ey,eS).call(this),null==(t=null==(e=r1(this,em))?void 0:e.unassociateElement)||t.call(e,this),r5(this,em,null),this.shadowRoot.removeEventListener("focusin",r1(this,ef)),this.shadowRoot.removeEventListener("focusout",r1(this,eA)),sa(this.container,r1(this,eT))}updatePointerBar(e){var t;null==(t=r1(this,eb).pointer)||t.style.setProperty("width",`${100*this.getPointerRatio(e)}%`)}updateBar(){var e,t;let i=100*this.range.valueAsNumber;null==(e=r1(this,eb).progress)||e.style.setProperty("width",`${i}%`),null==(t=r1(this,eb).thumb)||t.style.setProperty("left",`${i}%`)}updateSegments(e){let 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;let i=[...new Set([+this.range.min,...e.flatMap(e=>[e.start,e.end]),+this.range.max])];r5(this,eg,[...i]);let a=i.pop();for(let[e,s]of i.entries()){let[r,n]=[0===e,e===i.length-1],o=r?"calc(var(--segments-gap) / -1)":`${100*s}%`,l=n?a:i[e+1],d=`calc(${(l-s)*100}%${r||n?"":" - var(--segments-gap)"})`,h=a6.createElementNS("http://www.w3.org/2000/svg","rect"),u=sv(this.shadowRoot,`#segments-clipping rect:nth-child(${e+1})`);u.style.setProperty("x",o),u.style.setProperty("width",d),t.append(h)}}getPointerRatio(e){return function(e,t,i,a){let s=a.x-i.x,r=a.y-i.y,n=s*s+r*r;return 0===n?0:Math.max(0,Math.min(1,((e-i.x)*s+(t-i.y)*r)/n))}(e.clientX,e.clientY,r1(this,ev).getBoundingClientRect(),r1(this,eE).getBoundingClientRect())}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":r3(this,eU,eP).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":r3(this,eD,eR).call(this,e);break;case"pointerdown":r3(this,eL,eM).call(this,e);break;case"pointerup":r3(this,eC,ex).call(this);break;case"pointerleave":r3(this,eO,eN).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}};em=new WeakMap,ep=new WeakMap,ev=new WeakMap,eE=new WeakMap,eb=new WeakMap,eg=new WeakMap,ef=new WeakMap,eA=new WeakMap,eT=new WeakMap,ek=new WeakSet,e_=function(e){let t=r1(this,eb).activeSegment;if(!t)return;let i=this.getPointerRatio(e),a=r1(this,eg).findIndex((e,t,a)=>{let s=a[t+1];return null!=s&&i>=e&&i<=s}),s=`#segments-clipping rect:nth-child(${a+1})`;t.selectorText==s&&t.style.transform||(t.selectorText=s,t.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))},ew=new WeakSet,eI=function(){!this.hasAttribute("disabled")&&this.isConnected&&(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},ey=new WeakSet,eS=function(){var e,t;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),this.removeEventListener("pointerleave",this),null==(e=a8.window)||e.removeEventListener("pointerup",this),null==(t=a8.window)||t.removeEventListener("pointermove",this)},eL=new WeakSet,eM=function(e){var t;r5(this,ep,e.composedPath().includes(this.range)),null==(t=a8.window)||t.addEventListener("pointerup",this,{once:!0})},eD=new WeakSet,eR=function(e){var t;"mouse"!==e.pointerType&&r3(this,eL,eM).call(this,e),this.addEventListener("pointerleave",this,{once:!0}),null==(t=a8.window)||t.addEventListener("pointermove",this)},eC=new WeakSet,ex=function(){var e;null==(e=a8.window)||e.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},eO=new WeakSet,eN=function(){var e,t;this.removeEventListener("pointerleave",this),null==(e=a8.window)||e.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),null==(t=r1(this,eb).activeSegment)||t.style.removeProperty("transform")},eU=new WeakSet,eP=function(e){("pen"!==e.pointerType||0!==e.buttons)&&(this.toggleAttribute("dragging",1===e.buttons||"mouse"!==e.pointerType),this.updatePointerBar(e),r3(this,ek,e_).call(this,e),this.dragging&&("mouse"!==e.pointerType||!r1(this,ep))&&(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(e),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))))},r4.shadowRootOptions={mode:"open"},r4.getTemplateHTML=function(e){return` 475 <style> 476 :host {
477 --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9)); 478 --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px)); 479 480 box-shadow: var(--_focus-visible-box-shadow, none); 481 background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))); 482 height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding)); 483 display: inline-flex; 484 align-items: center; 485 486 vertical-align: middle; 487 box-sizing: border-box; 488 position: relative; 489 width: 100px; 490 transition: background .15s linear; 491 cursor: var(--media-cursor, pointer); 492 pointer-events: auto; 493 touch-action: none; 494 } 495 496 497 input[type=range]:focus { 498 outline: 0; 499 } 500 input[type=range]:focus::-webkit-slider-runnable-track { 501 outline: 0; 502 } 503 504 :host(:hover) { 505 background: var(--media-control-hover-background, rgb(50 50 70 / .7)); 506 } 507 508 #leftgap { 509 padding-left: var(--media-range-padding-left, var(--_media-range-padding)); 510 } 511 512 #rightgap { 513 padding-right: var(--media-range-padding-right, var(--_media-range-padding)); 514 } 515 516 #startpoint, 517 #endpoint { 518 position: absolute; 519 } 520 521 #endpoint { 522 right: 0; 523 } 524 525 #container { 526 527 width: var(--media-range-track-width, 100%); 528 transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px)); 529 position: relative; 530 height: 100%; 531 display: flex; 532 align-items: center; 533 min-width: 40px; 534 } 535 536 #range { 537 538 display: var(--media-time-range-hover-display, block); 539 bottom: var(--media-time-range-hover-bottom, -7px); 540 height: var(--media-time-range-hover-height, max(100% + 7px, 25px)); 541 width: 100%; 542 position: absolute; 543 cursor: var(--media-cursor, pointer); 544 545 -webkit-appearance: none; 546 -webkit-tap-highlight-color: transparent; 547 background: transparent; 548 margin: 0; 549 z-index: 1; 550 } 551 552 @media (hover: hover) { 553 #range { 554 bottom: var(--media-time-range-hover-bottom, -5px); 555 height: var(--media-time-range-hover-height, max(100% + 5px
vendor: 4,756 bytes, lines 555-710
555, 20px)); 556 } 557 } 558 559 560 561 #range::-webkit-slider-thumb { 562 -webkit-appearance: none; 563 background: transparent; 564 width: .1px; 565 height: .1px; 566 } 567 568 569 #range::-moz-range-thumb { 570 background: transparent; 571 border: transparent; 572 width: .1px; 573 height: .1px; 574 } 575 576 #appearance { 577 height: var(--media-range-track-height, 4px); 578 display: flex; 579 flex-direction: column; 580 justify-content: center; 581 width: 100%; 582 position: absolute; 583 584 will-change: transform; 585 } 586 587 #track { 588 background: var(--media-range-track-background, rgb(255 255 255 / .2)); 589 border-radius: var(--media-range-track-border-radius, 1px); 590 border: var(--media-range-track-border, none); 591 outline: var(--media-range-track-outline); 592 outline-offset: var(--media-range-track-outline-offset); 593 backdrop-filter: var(--media-range-track-backdrop-filter); 594 -webkit-backdrop-filter: var(--media-range-track-backdrop-filter); 595 box-shadow: var(--media-range-track-box-shadow, none); 596 position: absolute; 597 width: 100%; 598 height: 100%; 599 overflow: hidden; 600 } 601 602 #progress, 603 #pointer { 604 position: absolute; 605 height: 100%; 606 will-change: width; 607 } 608 609 #progress { 610 background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238))); 611 transition: var(--media-range-track-transition); 612 } 613 614 #pointer { 615 background: var(--media-range-track-pointer-background); 616 border-right: var(--media-range-track-pointer-border-right); 617 transition: visibility .25s, opacity .25s; 618 visibility: hidden; 619 opacity: 0; 620 } 621 622 @media (hover: hover) { 623 :host(:hover) #pointer { 624 transition: visibility .5s, opacity .5s; 625 visibility: visible; 626 opacity: 1; 627 } 628 } 629 630 #thumb, 631 ::slotted([slot=thumb]) { 632 width: var(--media-range-thumb-width, 10px); 633 height: var(--media-range-thumb-height, 10px); 634 transition: var(--media-range-thumb-transition); 635 transform: var(--media-range-thumb-transform, none); 636 opacity: var(--media-range-thumb-opacity, 1); 637 translate: -50%; 638 position: absolute; 639 left: 0; 640 cursor: var(--media-cursor, pointer); 641 } 642 643 #thumb { 644 border-radius: var(--media-range-thumb-border-radius, 10px); 645 background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238))); 646 box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent); 647 border: var(--media-range-thumb-border, none); 648 } 649 650 :host([disabled]) #thumb { 651 background-color: #777; 652 } 653 654 .segments #appearance { 655 height: var(--media-range-segment-hover-height, 7px); 656 } 657 658 #track { 659 clip-path: url(#segments-clipping); 660 } 661 662 #segments { 663 --segments-gap: var(--media-range-segments-gap, 2px); 664 position: absolute; 665 width: 100%; 666 height: 100%; 667 } 668 669 #segments-clipping { 670 transform: translateX(calc(var(--segments-gap) / 2)); 671 } 672 673 #segments-clipping:empty { 674 display: none; 675 } 676 677 #segments-clipping rect { 678 height: var(--media-range-track-height, 4px); 679 y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2); 680 transition: var(--media-range-segment-transition, transform .1s ease-in-out); 681 transform: var(--media-range-segment-transform, scaleY(1)); 682 transform-origin: center; 683 } 684 685 /* Visible label for accessibility - positioned off-screen but technically visible (Firefox requires visible labels) */ 686 #range-label { 687 position: absolute; 688 left: -10000px; 689 background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))); 690 pointer-events: none; 691 } 692 </style> 693 <div id="leftgap"></div> 694 <div id="container"> 695 <div id="startpoint"></div> 696 <div id="endpoint"></div> 697 <div id="appearance"> 698 <div id="track" part="track"> 699 <div id="pointer"></div> 700 <div id="progress" part="progress"></div> 701 </div> 702 <slot name="thumb"> 703 <div id="thumb" part="thumb"></div> 704 </slot> 705 <svg id="segments" aria-hidden="true"><clipPath id="segments-clipping"></clipPath></svg> 706 </div> 707 <input id="range" type="range" min="0" max="1" step="any" value="0"> 708 <label for="range" id="range-label"></label> 709 710 ${this.getContainerTemplateHTML(
710e)} 711 </div> 712 <div id="rightgap"></div> 713 `},r4.getContainerTemplateHTML=function(e){return""},a8.customElements.get("media-chrome-range")||a8.customElements.define("media-chrome-range",r4);var r7=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},r8=(e,t,i)=>(r7(e,t,"read from private field"),i?i.call(e):t.get(e)),r6=(e,t,i,a)=>(r7(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),r9=class extends a8.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eH,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aM.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,s,r,n,o;e===aM.MEDIA_CONTROLLER&&(t&&(null==(s=null==(a=r8(this,eH))?void 0:a.unassociateElement)||s.call(a,this),r6(this,eH,null)),i&&this.isConnected&&(r6(this,eH,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(o=null==(n=r8(this,eH))?void 0:n.associateElement)||o.call(n,this)))}connectedCallback(){var e,t,i;let a=this.getAttribute(aM.MEDIA_CONTROLLER);a&&(r6(this,eH,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=r8(this,eH))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=r8(this,eH))?void 0:e.unassociateElement)||t.call(e,this),r6(this,eH,null)}};eH=new WeakMap,r9.shadowRootOptions={mode:"open"},r9.getTemplateHTML=function(e){return` 714 <style> 715 :host { 716 717 box-sizing: border-box; 718 display: var(--media-control-display, var(--media-control-bar-display, inline-flex)); 719 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 720 --media-loading-indicator-icon-height: 44px; 721 } 722 723 ::slotted(media-time-range), 724 ::slotted(media-volume-range) { 725 min-height: 100%; 726 } 727 728 ::slotted(media-time-range), 729 ::slotted(media-clip-selector) { 730 flex-grow: 1; 731 } 732 733 ::slotted([role="menu"]) { 734 position: absolute; 735 } 736 </style> 737 738 <slot></slot> 739 `},a8.customElements.get("media-control-bar")||a8.customElements.define("media-control-bar",r9);var ne=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nt=(e,t,i)=>(ne(e,t,"read from private field"),i?i.call(e):t.get(e)),ni=(e,t,i,a)=>(ne(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),na=class extends a8.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eW,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aM.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,s,r,n,o;e===aM.MEDIA_CONTROLLER&&(t&&(null==(s=null==(a=nt(this,eW))?void 0:a.unassociateElement)||s.call(a,this),ni(this,eW,null)),i&&this.isConnected&&(ni(this,eW,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(o=null==(n=nt(this,eW))?void 0:n.associateElement)||o.call(n,this)))}connectedCallback(){var e,t,i;let{style:a}=sp(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);let s=this.getAttribute(aM.MEDIA_CONTROLLER);s&&(ni(this,eW,null==(e=this.getRootNode())?void 0:e.getElementById(s)),null==(i=null==(t=nt(this,eW))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=nt(this,eW))?void 0:e.unassociateElement)||t.call(e,this),ni(this,eW,null)}};eW=new WeakMap,na.shadowRootOptions={mode:"open"},na.getTemplateHTML=function(e,t={}){return` 740 <style> 741 :host { 742 font: var(--media-font, 743 var(--media-font-weight, normal) 744 var(--media-font-size, 14px) / 745 var(--media-text-content-height, var(--media-control-height, 24px)) 746 var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif)); 747 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 748 background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)))); 749 padding: var(--media-control-padding, 10px); 750 display: inline-flex; 751 justify-content: center; 752 align-items: center; 753 vertical-align: middle; 754 box-sizing: border-box; 755 text-align: center; 756 pointer-events: auto; 757 } 758 759 760 :host(:focus-visible) {
761 box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9)); 762 outline: 0; 763 } 764 765 766 :host(:where(:focus)) { 767 box-shadow: none; 768 outline: 0; 769 } 770 </style> 771 772 ${this.getSlotTemplateHTML(e,t)} 773 `},na.getSlotTemplateHTML=function(e,t){return` 774 <slot></slot> 775 `},a8.customElements.get("media-text-display")||a8.customElements.define("media-text-display",na);var ns=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nr=(e,t,i)=>(ns(e,t,"read from private field"),i?i.call(e):t.get(e)),nn=class extends na{constructor(){var e;super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eB,void 0),((e,t,i,a)=>(ns(e,t,"write to private field"),a?a.call(e,i):t.set(e,i)))(this,eB,this.shadowRoot.querySelector("slot")),nr(this,eB).textContent=aJ(null!=(e=this.mediaDuration)?e:0)}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_DURATION]}attributeChangedCallback(e,t,i){e===aC.MEDIA_DURATION&&(nr(this,eB).textContent=aJ(+i)),super.attributeChangedCallback(e,t,i)}get mediaDuration(){return sE(this,aC.MEDIA_DURATION)}set mediaDuration(e){sb(this,aC.MEDIA_DURATION,e)}};eB=new WeakMap,nn.getSlotTemplateHTML=function(e,t){return` 776 <slot>${aJ(t.mediaDuration)}</slot> 777 `},a8.customElements.get("media-duration-display")||a8.customElements.define("media-duration-display",nn);var no={2:aj("Network Error"),3:aj("Decode Error"),4:aj("Source Not Supported"),5:aj("Encryption
777Error")},nl={2:aj("A network error caused the media download to fail."),3:aj("A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format."),4:aj("An unsupported error occurred. The server or network failed, or your browser does not support this format."),5:aj("The media is encrypted and there are no keys to decrypt it.")},nd=e=>{var t,i;return 1===e.code?null:{title:null!=(t=no[e.code])?t:`Error ${e.code}`,message:null!=(i=nl[e.code])?i:e.message}},nh=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};function nu(e){var t;let{title:i,message:a}=null!=(t=nd(e))?t:{},s="";return i&&(s+=`<slot name="error-${e.code}-title"><h3>${i}</h3></slot>`),a&&(s+=`<slot name="error-${e.code}-message"><p>${a}</p></slot>`),s}var nc=[aC.MEDIA_ERROR_CODE,aC.MEDIA_ERROR_MESSAGE],nm=class extends rJ{constructor(){super(...arguments),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eV,null)}static get observedAttributes(){return[...super.observedAttributes,...nc]}formatErrorMessage(e){return this.constructor.formatErrorMessage(e)}attributeChangedCallback(e,t,i){var a;if(super.attributeChangedCallback(e,t,i),!nc.includes(e))return;let s=null!=(a=this.mediaError)?a:{code:this.mediaErrorCode,message:this.mediaErrorMessage};if(this.open=s.code&&null!==nd(s),this.open&&(this.shadowRoot.querySelector("slot").name=`error-${this.mediaErrorCode}`,this.shadowRoot.querySelector("#content").innerHTML=this.formatErrorMessage(s),!this.hasAttribute("aria-label"))){let{title:e}=nd(s);e&&this.setAttribute("aria-label",e)}}get mediaError(){var e,t;return nh(this,e=eV,"read from private field"),t?t.call(this):e.get(this)}set mediaError(e){var t,i;nh(this,t=eV,"write to private field"),i?i.call(this,e):t.set(this,e)}get mediaErrorCode(){return sE(this,"mediaerrorcode")}set mediaErrorCode(e){sb(this,"mediaerrorcode",e)}get mediaErrorMessage(){return sA(this,"mediaerrormessage")}set mediaErrorMessage(e){sT(this,"mediaerrormessage",e)}};eV=new WeakMap,nm.getSlotTemplateHTML=function(e){return` 778 <style> 779 :host { 780 background: rgb(20 20 30 / .8); 781 } 782 783 #content { 784 display: block; 785 padding: 1.2em 1.5em; 786 } 787 788 h3, 789 p { 790 margin-block: 0 .3em; 791 } 792 </style> 793 <slot name="error-${e.mediaerrorcode}" id="content"> 794 ${nu({code:+e.mediaerrorcode,message:e.mediaerrormessage})} 795 </slot> 796 `},nm.formatErrorMessage=nu,a8.customElements.get("media-error-dialog")||a8.customElements.define("media-error-dialog",nm);var np=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot read from private field");return i?i.call(e):t.get(e)},nv=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nE=class extends rJ{constructor(){super(...arguments),nv(this,e$,e=>{var t;if(!this.open)return;let i=null==(t=this.shadowRoot)?void 0:t.querySelector("#content");if(!i)return;let a=e.composedPath(),s=a[0]===this||a.includes(this),r=a.includes(i);s&&!r&&(this.open=!1)}),nv(this,eF,e=>{if(!this.open)return;let 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",np(this,e$)),document.addEventListener("keydown",np(this,eF)))}disconnectedCallback(){this.removeEventListener("click",np(this,e$)),document.removeEventListener("keydown",np(this,eF))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"open"===e&&(this.open?(this.addEventListener("click",np(this,e$)),document.addEventListener("keydown",np(this,eF))):(this.removeEventListener("click",np(this,e$)),document.removeEventListener("keydown",np(this,eF))))}};e$=new WeakMap,eF=new WeakMap,nE.getSlotTemplateHTML=function(e){return` 797 <style> 798 :host { 799 position: fixed; 800 top: 0; 801 left: 0; 802 z-index: 9999; 803 background: rgb(20 20 30 / .8); 804 backdrop-filter: blur(10px); 805 } 806 807 #content { 808 display: block; 809 width: clamp(400px, 40vw, 700px); 810 max-width: 90vw; 811 text-align: left; 812 } 813 814 h2 { 815 margin: 0 0 1.5rem 0; 816 font-size: 1.5rem; 817 font-weight: 500; 818 text-align: center; 819 } 820 821 .shortcuts-table { 822 width: 100%; 823 border-collapse: collapse; 824 } 825 826 .shortcuts-table tr { 827 border-bottom: 1px solid rgba(255, 255, 255, 0.1); 828 } 829 830 .shortcuts-table tr:last-child { 831 border-bottom: none; 832 } 833 834 .shortcuts-table td { 835 padding: 0.75rem 0.5rem; 836 } 837 838 .shortcuts-table td:first-child { 839 text-align: right; 840 padding-right: 1rem; 841 width: 40%; 842 min-width: 120px; 843 } 844 845 .shortcuts-table td:last-child { 846 padding-left: 1rem; 847 } 848 849 .key { 850 display: inline-block; 851 background: rgba(255, 255, 255, 0.15); 852 border: 1px solid rgba(255, 255, 255, 0.2); 853 border-radius: 4px; 854 padding: 0.25rem 0.5rem; 855 font-family: 'Courier New', monospace; 856 font-size: 0.9rem; 857 font-weight: 500; 858 min-width: 1.5rem; 859 text-align: center; 860 margin: 0 0.2rem; 861 } 862 863 .description { 864 color: rgba(255, 255, 255, 0.9); 865 font-size: 0.95rem; 866 } 867 868 .key-combo { 869 display: flex; 870 align-items: center; 871 justify-content: flex-end; 872 gap: 0.3rem; 873 } 874 875 .key-separator { 876 color: rgba(255, 255, 255, 0.5); 877 font-size: 0.9rem; 878 } 879 </style> 880 <slot id="content"> 881 ${function(){let e=[{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})=>{let i=e.map((e,t)=>t>0?`<span class="key-separator">or</span><span class="key">${e}</span>`:`<span class="key">${e}</span>`).join("");return` 882 <tr> 883 <td> 884 <div class="key-combo">${i}</div> 885 </td> 886 <td class="description">${t}</td> 887 </tr> 888 `}).join("");return` 889 <h2>Keyboard Shortcuts</h2> 890 <table class="shortcuts-table">${e}</table> 891 `}()} 892 </slot> 893 `},a8.customElements.get("media-keyboard-shortcuts-dialog")||a8.customElements.define("media-keyboard-shortcuts-dialog",nE);var nb=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ng=`<svg aria-hidden="true" viewBox="0 0 26 24"> 894 <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/> 895</svg>`,nf=`<svg aria-hidden="true" viewBox="0 0 26 24"> 896 <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/> 897</svg>`,nA=e=>{let t=e.mediaIsFullscreen?aj("exit fullscreen mode"):aj("enter fullscreen mode");e.setAttribute("aria-label",t)},nT=class extends rN{constructor(){super(...arguments),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eG,null)}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_IS_FULLSCREEN,aC.MEDIA_FULLSCREEN_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),nA(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_IS_FULLSCREEN&&nA(this)}get mediaFullscreenUnavailable(){return sA(this,aC.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){sT(this,aC.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return sg(this,aC.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){sf(this,aC.MEDIA_IS_FULLSCREEN,e)}handleClick(e){var t,i,a,s;nb(this,t=eG,"write to private field"),i?i.call(this,e):t.set(this,e);
897let r=(nb(this,a=eG,"read from private field"),(s?s.call(this):a.get(this))instanceof PointerEvent),n=this.mediaIsFullscreen?new a8.CustomEvent(aL.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0}):new a8.CustomEvent(aL.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0,detail:r});this.dispatchEvent(n)}};eG=new WeakMap,nT.getSlotTemplateHTML=function(e){return` 898 <style> 899 :host([${aC.MEDIA_IS_FULLSCREEN}]) slot[name=icon] slot:not([name=exit]) { 900 display: none !important; 901 } 902 903 904 :host(:not([${aC.MEDIA_IS_FULLSCREEN}])) slot[name=icon] slot:not([name=enter]) { 905 display: none !important; 906 } 907 908 :host([${aC.MEDIA_IS_FULLSCREEN}]) slot[name=tooltip-enter], 909 :host(:not([${aC.MEDIA_IS_FULLSCREEN}])) slot[name=tooltip-exit] { 910 display: none; 911 } 912 </style> 913 914 <slot name="icon"> 915 <slot name="enter">${ng}</slot> 916 <slot name="exit">${nf}</slot> 917 </slot> 918 `},nT.getTooltipContentHTML=function(){return` 919 <slot name="tooltip-enter">${aj("Enter fullscreen mode")}</slot> 920 <slot name="tooltip-exit">${aj("Exit fullscreen mode")}</slot> 921 `},a8.customElements.get("media-fullscreen-button")||a8.customElements.define("media-fullscreen-button",nT);var{MEDIA_TIME_IS_LIVE:nk,MEDIA_PAUSED:n_}=aC,{MEDIA_SEEK_TO_LIVE_REQUEST:nw,MEDIA_PLAY_REQUEST:nI}=aL,ny=e=>{var t;let i=e.mediaPaused||!e.mediaTimeIsLive,a=i?aj("seek to live"):aj("playing live");e.setAttribute("aria-label",a);let s=null==(t=e.shadowRoot)?void 0:t.querySelector('slot[name="text"]');s&&(s.textContent=aj("live")),i?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true")},nS=class extends rN{static get observedAttributes(){return[...super.observedAttributes,nk,n_]}connectedCallback(){super.connectedCallback(),ny(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),ny(this)}get mediaPaused(){return sg(this,aC.MEDIA_PAUSED)}set mediaPaused(e){sf(this,aC.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return sg(this,aC.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){sf(this,aC.MEDIA_TIME_IS_LIVE,e)}handleClick(){(this.mediaPaused||!this.mediaTimeIsLive)&&(this.dispatchEvent(new a8.CustomEvent(nw,{composed:!0,bubbles:!0})),this.hasAttribute(n_)&&this.dispatchEvent(new a8.CustomEvent(nI,{composed:!0,bubbles:!0})))}};nS.getSlotTemplateHTML=function(e){return` 922 <style> 923 :host { --media-tooltip-display: none; } 924 925 slot[name=indicator] > *, 926 :host ::slotted([slot=indicator]) { 927 928 min-width: auto; 929 fill: var(--media-live-button-icon-color, rgb(140, 140, 140)); 930 color: var(--media-live-button-icon-color, rgb(140, 140, 140)); 931 } 932 933 :host([${nk}]:not([${n_}])) slot[name=indicator] > *, 934 :host([${nk}]:not([${n_}])) ::slotted([slot=indicator]) { 935 fill: var(--media-live-button-indicator-color, rgb(255, 0, 0)); 936 color: var(--media-live-button-indicator-color, rgb(255, 0, 0)); 937 } 938 939 :host([${nk}]:not([${n_}])) { 940 cursor: var(--media-cursor, not-allowed); 941 } 942 943 slot[name=text]{ 944 text-transform: uppercase; 945 } 946 947 </style> 948 949 <slot name="indicator"><svg viewBox="0 0 6 12" aria-hidden="true"><circle cx="3" cy="6" r="2"></circle></svg></slot> 950 951 <slot name="spacer"> </slot><slot name="text">${aj("live")}</slot> 952 `},a8.customElements.get("media-live-button")||a8.customElements.define("media-live-button",nS);var nL=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nM=(e,t,i)=>(nL(e,t,"read from private field"),i?i.call(e):t.get(e)),nD=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nR=(e,t,i,a)=>(nL(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),nC={LOADING_DELAY:"loadingdelay",NO_AUTOHIDE:"noautohide"},nx=` 953<svg aria-hidden="true" viewBox="0 0 100 100"> 954 <path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"> 955 <animateTransform 956 attributeName="transform" 957 attributeType="XML" 958 type="rotate" 959 dur="1s" 960 from="0 50 50" 961 to="360 50 50"
962 repeatCount="indefinite" /> 963 </path> 964</svg> 965`,nO=class extends a8.HTMLElement{constructor(){if(super(),nD(this,eK,void 0),nD(this,eq,500),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aM.MEDIA_CONTROLLER,aC.MEDIA_PAUSED,aC.MEDIA_LOADING,nC.LOADING_DELAY]}attributeChangedCallback(e,t,i){var a,s,r,n,o;e===nC.LOADING_DELAY&&t!==i?this.loadingDelay=Number(i):e===aM.MEDIA_CONTROLLER&&(t&&(null==(s=null==(a=nM(this,eK))?void 0:a.unassociateElement)||s.call(a,this),nR(this,eK,null)),i&&this.isConnected&&(nR(this,eK,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(o=null==(n=nM(this,eK))?void 0:n.associateElement)||o.call(n,this)))}connectedCallback(){var e,t,i;let a=this.getAttribute(aM.MEDIA_CONTROLLER);a&&(nR(this,eK,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=nM(this,eK))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=nM(this,eK))?void 0:e.unassociateElement)||t.call(e,this),nR(this,eK,null)}get loadingDelay(){return nM(this,eq)}set loadingDelay(e){nR(this,eq,e);let{style:t}=sp(this.shadowRoot,":host");t.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return sg(this,aC.MEDIA_PAUSED)}set mediaPaused(e){sf(this,aC.MEDIA_PAUSED,e)}get mediaLoading(){return sg(this,aC.MEDIA_LOADING)}set mediaLoading(e){sf(this,aC.MEDIA_LOADING,e)}get mediaController(){return sA(this,aM.MEDIA_CONTROLLER)}set mediaController(e){sT(this,aM.MEDIA_CONTROLLER,e)}get noAutohide(){return sg(this,nC.NO_AUTOHIDE)}set noAutohide(e){sf(this,nC.NO_AUTOHIDE,e)}};eK=new WeakMap,eq=new WeakMap,nO.shadowRootOptions={mode:"open"},nO.getTemplateHTML=function(e){return` 966 <style> 967 :host { 968 display: var(--media-control-display, var(--media-loading-indicator-display, inline-block)); 969 vertical-align: middle; 970 box-sizing: border-box; 971 --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, 500ms); 972 } 973 974 #status { 975 color: rgba(0,0,0,0); 976 width: 0px; 977 height: 0px; 978 } 979 980 :host slot[name=icon] > *, 981 :host ::slotted([slot=icon]) { 982 opacity: var(--media-loading-indicator-opacity, 0); 983 transition: opacity 0.15s; 984 } 985 986 :host([${aC.MEDIA_LOADING}]:not([${aC.MEDIA_PAUSED}])) slot[name=icon] > *, 987 :host([${aC.MEDIA_LOADING}]:not([${aC.MEDIA_PAUSED}])) ::slotted([slot=icon]) { 988 opacity: var(--media-loading-indicator-opacity, 1); 989 transition: opacity 0.15s var(--_loading-indicator-delay); 990 } 991 992 :host #status { 993 visibility: var(--media-loading-indicator-opacity, hidden); 994 transition: visibility 0.15s; 995 } 996 997 :host([${aC.MEDIA_LOADING}]:not([${aC.MEDIA_PAUSED}])) #status { 998 visibility: var(--media-loading-indicator-opacity, visible); 999 transition: visibility 0.15s var(--_loading-indicator-delay); 1000 } 1001 1002 svg, img, ::slotted(svg), ::slotted(img) { 1003 width: var(--media-loading-indicator-icon-width); 1004 height: var(--media-loading-indicator-icon-height, 100px); 1005 fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))); 1006 vertical-align: middle; 1007 } 1008 </style> 1009 1010 <slot name="icon">${nx}</slot> 1011 <div id="status" role="status" aria-live="polite">${aj("media loading")}</div> 1012 `},a8.customElements.get("media-loading-indicator")||a8.customElements.define("media-loading-indicator",nO);var nN=`<svg aria-hidden="true" viewBox="0 0 24 24"> 1013 <path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/> 1014</svg>`,nU=`<svg aria-hidden="true" viewBox="0 0 24 24"> 1015 <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/> 1016</svg>`,nP=`<svg aria-hidden="true" viewBox="0 0 24 24"> 1017 <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/> 1018</svg>`,nH=e=>{let t="off"===e.mediaVolumeLevel?aj("unmute"):aj("mute");e.setAttribute("aria-label",t)},nW=class extends rN{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_VOLUME_LEVEL]}connectedCallback(){super.connectedCallback(),nH(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_VOLUME_LEVEL&&nH(this)}get mediaVolumeLevel(){return sA(this,aC.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){sT(this,aC.MEDIA_VOLUME_LEVEL,e)}handleClick(){let e="off"===this.mediaVolumeLevel?aL.MEDIA_UNMUTE_REQUEST:aL.MEDIA_MUTE_REQUEST;this.dispatchEvent(new a8.CustomEvent(e,{composed:!0,bubbles:!0}))}};nW.getSlotTemplateHTML=function(e){return` 1019 <style> 1020 :host(:not([${aC.MEDIA_VOLUME_LEVEL}])) slot[name=icon] slot:not([name=high]), 1021 :host([${aC.MEDIA_VOLUME_LEVEL}=high]) slot[name=icon] slot:not([name=high]) { 1022 display: none !important; 1023 } 1024 1025 :host([${aC.MEDIA_VOLUME_LEVEL}=off]) slot[name=icon] slot:not([name=off]) { 1026 display: none !important; 1027 } 1028 1029 :host([${aC.MEDIA_VOLUME_LEVEL}=low]) slot[name=icon] slot:not([name=low]) { 1030 display: none !important; 1031 } 1032 1033 :host([${aC.MEDIA_VOLUME_LEVEL}=medium]) slot[name=icon] slot:not([name=medium]) { 1034 display: none !important; 1035 } 1036 1037 :host(:not([${aC.MEDIA_VOLUME_LEVEL}=off])) slot[name=tooltip-unmute], 1038 :host([${aC.MEDIA_VOLUME_LEVEL}=off]) slot[name=tooltip-mute] { 1039 display: none; 1040 } 1041 </style> 1042 1043 <slot name="icon"> 1044 <slot name="off">${nN}</slot> 1045 <slot name="low">${nU}</slot> 1046 <slot name="medium">${nU}</slot> 1047 <slot name="high">${nP}</slot> 1048 </slot> 1049 `},nW.getTooltipContentHTML=function(){return` 1050 <slot name="tooltip-mute">${aj("Mute")}</slot> 1051 <slot name="tooltip-unmute">${aj("Unmute")}</slot> 1052 `},a8.customElements.get("media-mute-button")||a8.customElements.define("media-mute-button",nW);var nB=`<svg aria-hidden="true" viewBox="0 0 28 24"> 1053 <path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/> 1054</svg>`,nV=e=>{let t=e.mediaIsPip?aj("exit picture in picture mode"):aj("enter picture in picture mode");e.setAttribute("aria-label",t)},n$=class extends rN{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_IS_PIP,aC.MEDIA_PIP_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),nV(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_IS_PIP&&nV(this)}get mediaPipUnavailable(){return sA(this,aC.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){sT(this,aC.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return sg(this,aC.MEDIA_IS_PIP)}set mediaIsPip(e){sf(this,aC.MEDIA_IS_PIP,e)}handleClick(){let e=this.mediaIsPip?aL.MEDIA_EXIT_PIP_REQUEST:aL.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new a8.CustomEvent(e,{composed:!0,bubbles:!0}))}};n$.getSlotTemplateHTML=function(e){return` 1055 <style> 1056 :host([${aC.MEDIA_IS_PIP}]) slot[name=icon] slot:not([name=exit]) { 1057 display: none !important; 1058 } 1059 1060 :host(:not([${aC.MEDIA_IS_PIP}])) slot[name=icon] slot:not([name=enter]) { 1061 display: none !important; 1062 } 1063 1064 :host([${aC.MEDIA_IS_PIP}]) slot[name=tooltip-enter], 1065 :host(:not([${aC.MEDIA_IS_PIP}])) slot[name=tooltip-exit] { 1066 display: none; 1067 } 1068 </style> 1069 1070 <slot name="icon"> 1071 <slot name="enter">${nB}</slot> 1072 <slot name="exit">${nB}</slot> 1073 </slot> 1074 `},n$.getTooltipContentHTML=function(){return` 1075 <slot name="tooltip-enter">${aj("Enter picture in picture mode")}</slot> 1076 <slot name="tooltip-exit">${aj("Exit picture in picture mode")}</slot> 1077 `},a8.customElements.get("media-pip-button")||a8.customElements.define("media-pip-button",n$);var nF=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot read from private field");return i?i.call(e):t.get(e)},nG={RATES:"rates"},nK=[1,1.2,1.5,1.7,2],nq=class extends rN{constructor(){var e;super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eZ,new sW(this,nG.RATES,{defaultValue:nK})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${null!=(e=this.mediaPlaybackRate)?e:1}x`}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_PLAYBACK_RATE,nG.RATES]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===nG.RATES&&(nF(this,eZ).value=i),e===aC.MEDIA_PLAYBACK_RATE){let e=i?+i:NaN,t=Number.isNaN(e)?1:e;this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",aj("Playback rate {playbackRate}",{playbackRate:t}))}}get rates(){return nF(this,eZ)}set rates(e){e?Array.isArray(e)?nF(this,eZ).value=e.join(" "):"str
1077ing"==typeof e&&(nF(this,eZ).value=e):nF(this,eZ).value=""}get mediaPlaybackRate(){return sE(this,aC.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){sb(this,aC.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,t;let i=Array.from(nF(this,eZ).values(),e=>+e).sort((e,t)=>e-t),a=null!=(t=null!=(e=i.find(e=>e>this.mediaPlaybackRate))?e:i[0])?t:1,s=new a8.CustomEvent(aL.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:a});this.dispatchEvent(s)}};eZ=new WeakMap,nq.getSlotTemplateHTML=function(e){return` 1078 <style> 1079 :host { 1080 min-width: 5ch; 1081 padding: var(--media-button-padding, var(--media-control-padding, 10px 5px)); 1082 } 1083 </style> 1084 <slot name="icon">${e.mediaplaybackrate||1}x</slot> 1085 `},nq.getTooltipContentHTML=function(){return aj("Playback rate")},a8.customElements.get("media-playback-rate-button")||a8.customElements.define("media-playback-rate-button",nq);var nZ=`<svg aria-hidden="true" viewBox="0 0 24 24"> 1086 <path d="m6 21 15-9L6 3v18Z"/> 1087</svg>`,nY=`<svg aria-hidden="true" viewBox="0 0 24 24"> 1088 <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/> 1089</svg>`,nQ=e=>{let t=e.mediaPaused?aj("play"):aj("pause");e.setAttribute("aria-label",t)},nj=class extends rN{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_PAUSED,aC.MEDIA_ENDED]}connectedCallback(){super.connectedCallback(),nQ(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),(e===aC.MEDIA_PAUSED||e===aC.MEDIA_LANG)&&nQ(this)}get mediaPaused(){return sg(this,aC.MEDIA_PAUSED)}set mediaPaused(e){sf(this,aC.MEDIA_PAUSED,e)}handleClick(){let e=this.mediaPaused?aL.MEDIA_PLAY_REQUEST:aL.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new a8.CustomEvent(e,{composed:!0,bubbles:!0}))}};nj.getSlotTemplateHTML=function(e){return` 1090 <style> 1091 :host([${aC.MEDIA_PAUSED}]) slot[name=pause], 1092 :host(:not([${aC.MEDIA_PAUSED}])) slot[name=play] { 1093 display: none !important; 1094 } 1095 1096 :host([${aC.MEDIA_PAUSED}]) slot[name=tooltip-pause], 1097 :host(:not([${aC.MEDIA_PAUSED}])) slot[name=tooltip-play] { 1098 display: none; 1099 } 1100 </style> 1101 1102 <slot name="icon"> 1103 <slot name="play">${nZ}</slot> 1104 <slot name="pause">${nY}</slot> 1105 </slot> 1106 `},nj.getTooltipContentHTML=function(){return` 1107 <slot name="tooltip-play">${aj("Play")}</slot> 1108 <slot name="tooltip-pause">${aj("Pause")}</slot> 1109 `},a8.customElements.get("media-play-button")||a8.customElements.define("media-play-button",nj);var nz={PLACEHOLDER_SRC:"placeholdersrc",SRC:"src"},nX=class extends a8.HTMLElement{static get observedAttributes(){return[nz.PLACEHOLDER_SRC,nz.SRC]}constructor(){if(super(),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,t,i){if(e===nz.SRC&&(null==i?this.image.removeAttribute(nz.SRC):this.image.setAttribute(nz.SRC,i)),e===nz.PLACEHOLDER_SRC)if(null==i)this.image.style.removeProperty("background-image");else{var a;a=this.image,a.style["background-image"]=`url('${i}')`}}get placeholderSrc(){return sA(this,nz.PLACEHOLDER_SRC)}set placeholderSrc(e){sT(this,nz.SRC,e)}get src(){return sA(this,nz.SRC)}set src(e){sT(this,nz.SRC,e)}};nX.shadowRootOptions={mode:"open"},nX.getTemplateHTML=function(e){return` 1110 <style> 1111 :host { 1112 pointer-events: none; 1113 display: var(--media-poster-image-display, inline-block); 1114 box-sizing: border-box; 1115 } 1116 1117 img { 1118 max-width: 100%; 1119 max-height: 100%; 1120 min-width: 100%; 1121 min-height: 100%; 1122 background-repeat: no-repeat; 1123 background-position: var(--media-poster-image-background-position, var(--media-object-position, center)); 1124 background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain)); 1125 object-fit: var(--media-object-fit, contain); 1126 object-position: var(--media-object-position, center); 1127 } 1128 </style> 1129 1130 <img part="poster img" aria-hidden="true" id="image"/> 1131 `},a8.customElements.get("media-poster-image")||a8.customElements.define("media-poster-image",nX);var nJ=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},n0=class extends na{constructor(){super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eY,void 0),((e,t,i,a)=>(nJ(e,t,"write to private field"),a?a.call(e,i):t.set(e,i)))(this,eY,this.shadowRoot.querySelector("slot"))}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_PREVIEW_CHAPTER,aC.MEDIA_LA
1131NG]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),(e===aC.MEDIA_PREVIEW_CHAPTER||e===aC.MEDIA_LANG)&&i!==t&&null!=i){var a,s;if((nJ(this,a=eY,"read from private field"),s?s.call(this):a.get(this)).textContent=i,""!==i){let e=aj("chapter: {chapterName}",{chapterName:i});this.setAttribute("aria-valuetext",e)}else this.removeAttribute("aria-valuetext")}}get mediaPreviewChapter(){return sA(this,aC.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){sT(this,aC.MEDIA_PREVIEW_CHAPTER,e)}};eY=new WeakMap,a8.customElements.get("media-preview-chapter-display")||a8.customElements.define("media-preview-chapter-display",n0);var n1=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},n2=(e,t,i)=>(n1(e,t,"read from private field"),i?i.call(e):t.get(e)),n5=(e,t,i,a)=>(n1(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),n3=class extends a8.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eQ,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aM.MEDIA_CONTROLLER,aC.MEDIA_PREVIEW_IMAGE,aC.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,t,i;let a=this.getAttribute(aM.MEDIA_CONTROLLER);a&&(n5(this,eQ,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=n2(this,eQ))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=n2(this,eQ))?void 0:e.unassociateElement)||t.call(e,this),n5(this,eQ,null)}attributeChangedCallback(e,t,i){var a,s,r,n,o;[aC.MEDIA_PREVIEW_IMAGE,aC.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===aM.MEDIA_CONTROLLER&&(t&&(null==(s=null==(a=n2(this,eQ))?void 0:a.unassociateElement)||s.call(a,this),n5(this,eQ,null)),i&&this.isConnected&&(n5(this,eQ,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(o=null==(n=n2(this,eQ))?void 0:n.associateElement)||o.call(n,this)))}get mediaPreviewImage(){return sA(this,aC.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){sT(this,aC.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){let e=this.getAttribute(aC.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map(e=>+e)}set mediaPreviewCoords(e){if(!e)return void this.removeAttribute(aC.MEDIA_PREVIEW_COORDS);this.setAttribute(aC.MEDIA_PREVIEW_COORDS,e.join(" "))}update(){let e,t,i=this.mediaPreviewCoords,a=this.mediaPreviewImage;if(!(i&&a))return;let[s,r,n,o]=i,l=a.split("#")[0],d=getComputedStyle(this),{maxWidth:h,maxHeight:u,minWidth:c,minHeight:m}=d;if("fill"===(d.getPropertyValue("--media-preview-thumbnail-object-fit").trim()||"contain")){let i=parseInt(h)/n,a=parseInt(u)/o,s=parseInt(c)/n,r=parseInt(m)/o;e=i<1?i:Math.max(i,s),t=a<1?a:Math.max(a,r)}else{let i=Math.min(parseInt(h)/n,parseInt(u)/o),a=Math.max(parseInt(c)/n,parseInt(m)/o),s=i<1?i:a>1?a:1;e=s,t=s}let{style:p}=sp(this.shadowRoot,":host"),v=sp(this.shadowRoot,"img").style,E=this.shadowRoot.querySelector("img"),b=1>Math.min(e,t)?"min":"max";p.setProperty(`${b}-width`,"initial","important"),p.setProperty(`${b}-height`,"initial","important"),p.width=`${n*e}px`,p.height=`${o*t}px`;let g=()=>{v.width=`${this.imgWidth*e}px`,v.height=`${this.imgHeight*t}px`,v.display="block"};E.src!==l&&(E.onload=()=>{this.imgWidth=E.naturalWidth,this.imgHeight=E.naturalHeight,g(),E.onload=null},E.src=l,g()),g(),v.transform=`translate(-${s*e}px, -${r*t}px)`}};eQ=new WeakMap,n3.shadowRootOptions={mode:"open"},n3.getTemplateHTML=function(e){return` 1132 <style> 1133 :host { 1134 box-sizing: border-box; 1135 display: var(--media-control-display, var(--media-preview-thumbnail-display, inline-block)); 1136 overflow: hidden; 1137 } 1138 1139 img { 1140 display: none; 1141 position: relative; 1142 } 1143 </style> 1144 <img crossorigin loading="eager" decoding="async"> 1145 `},a8.customElements.get("media-preview-thumbnail")||a8.customElements.define("media-preview-thumbnail",n3);var n4=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},n7=(e,t,i)=>(n4(e,t,"read from private field"),i?i.call(e):t.get(e)),n8=class extends na{constructor(){super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,ej,void 0),((e,t,i,a)=>(n4(e,t,"write to private field"),a?a.call(e,i):t.set(e,i)))(this,ej,this.shadowRoot.querySelector("slot")),n7(this,ej).textContent=aJ(0)}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_PREVIEW_TIME&&null!=i&&(n7(this,ej).textContent=aJ(parseFloat(i)))}get mediaPreviewTime(){return sE(this,aC.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){sb(this,aC.MEDIA_PREVIEW_TIME,e)}};ej=new WeakMap,a8.customElements.get("media-preview-time-display")||a8.customElements.define("media-preview-time-display",n8);var n6={SEEK_OFFSET:"seekoffset"},n9=class extends rN{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_CURRENT_TIME,n6.SEEK_OFFSET]}connectedCallback(){super.connectedCallback(),this.seekOffset=sE(this,n6.SEEK_OFFSET,30)}attributeChangedCallback(e,t,i){var a;super.attributeChangedCallback(e,t,i),a=this.seekOffset,this.setAttribute("aria-label",aj("seek back {seekOffset} seconds",{seekOffset:a})),e===n6.SEEK_OFFSET&&(this.seekOffset=sE(this,n6.SEEK_OFFSET,30))}get seekOffset(){return sE(this,n6.SEEK_OFFSET,30)}set seekOffset(e){sb(this,n6.SEEK_OFFSET,e),this.setAttribute("aria-label",aj("seek back {seekOffset} seconds",{seekOffset:this.seekOffset})),so(sl(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return sE(this,aC.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){sb(this,aC.MEDIA_CURRENT_TIME,e)}handleClick(){let e=Math.max(this.mediaCurrentTime-this.seekOffset,0),t=new a8.CustomEvent(aL.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};n9.getSlotTemplateHTML=function(e,t){let i;return` 1146 <slot name="icon">${i=t.seekOffset,` 1147 <svg aria-hidden="true" viewBox="0 0 20 24"> 1148 <defs> 1149 <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style> 1150 </defs> 1151 <text class="text value" transform="translate(2.18 19.87)">${i}</text> 1152 <path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/> 1153 </svg>`}</slot> 1154 `},n9.getTooltipContentHTML=function(){return aj("Seek backward")},a8.customElements.get("media-seek-backward-button")||a8.customElements.define("media-seek-backward-button",n9);var oe={SEEK_OFFSET:"seekoffset"},ot=class extends rN{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_CURRENT_TIME,oe.SEEK_OFFSET]}connectedCallback(){super.connectedCallback(),this.seekOffset=sE(this,oe.SEEK_OFFSET,30)}attributeChangedCallback(e,t,i){var a;super.attributeChangedCallback(e,t,i),a=this.seekOffset,this.setAttribute("aria-label",aj("seek forward {seekOffset} seconds",{seekOffset:a})),e===oe.SEEK_OFFSET&&(this.seekOffset=sE(this,oe.SEEK_OFFSET,30))}get seekOffset(){return sE(this,oe.SEEK_OFFSET,30)}set seekOffset(e){sb(this,oe.SEEK_OFFSET,e),this.setAttribute("aria-label",aj("seek forward {seekOffset} seconds",{seekOffset:this.seekOffset})),so(sl(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return sE(this,aC.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){sb(this,aC.MEDIA_CURRENT_TIME,e)}handleClick(){let e=this.mediaCurrentTime+this.seekOffset,t=new a8.CustomEvent(aL.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};ot.getSlotTemplateHTML=function(e,t){let i;return` 1155 <slot name="icon">${i=t.seekOffset,` 1156 <svg aria-hidden="true" viewBox="0 0 20 24"> 1157 <defs> 1158 <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style> 1159 </defs> 1160 <text class="text value" transform="translate(8.9 19.87)">${i}</text> 1161 <path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/> 1162 </svg>`}</slot> 1163 `},ot.getTooltipContentHTML=function(){return aj("Seek forward")},a8.customElements.get("media-seek-forward-button")||a8.customElements.define("media-seek-forward-button",ot);var oi=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oa=(e,t,i)=>(oi(e,t,"read from private field"),i?i.call(e):t.get(e)),os=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},or=(e,t,i,a)=>(oi(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),on=(e,t,i)=>(oi(e,t,"access private method"),i),oo={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},ol=[...Object.values(oo),aC.MEDIA_CURRENT_TIME,aC.MEDIA_DURATION,aC.MEDIA_SEEKABLE],od=["Enter"," "],oh=" / ",ou=(e,{timesSep:t=oh}={})=>{var i,a;let s=null!=(i=e.mediaCurrentTime)?i:0,[,r]=null!=(a=e.mediaSeekable)?a:[],n=0;Number.isFinite(e.mediaDuration)?n=e.mediaDuration:Number.isFinite(r)&&(n=r);let o=e.remaining?aJ(0-(n-s)):aJ(s);return e.showDuration?`${o}${t}${aJ(n)}`:o},oc=class extends na{constructor(){super(),os(this,e0),os(this,e2),os(this,e3),os(this,e7),os(this,ez,void 0),os(this,eX,null),os(this,eJ,e=>{let{metaKey:t,altKey:i,key:a}=e;if(t||i||!od.includes(a))return void this.removeEventListener("keyup",oa(this,eX));this.addEventListener("keyup",oa(this,eX))}),or(this,ez,this.shadowRoot.querySelector("slot")),oa(this,ez).innerHTML=`${ou(this)}`}static get observedAttributes(){return[...super.observedAttributes,...ol,"disabled"]}connectedCallback(){let{style:e}=sp(this.shadowRoot,":host(:hover:not([notoggle]))");e.setProperty("cursor","var(--media-cursor, pointer)"),e.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))"),this.setAttribute("aria-label",aj("playback time")),on(this,e3,e4).call(this),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),on(this,e2,e5).call(this),super.disconnectedCallback()}attributeChangedCallback(e,t,i){this.setAttribute("aria-label",aj("playback time")),ol.includes(e)?this.update():"disabled"===e&&i!==t?null==i?on(this,e3,e4).call(this):on(this,e7,e8).call(this):e===oo.NO_TOGGLE&&i!==t&&(this.noToggle?on(this,e7,e8).call(this):on(this,e3,e4).call(this)),super.attributeChangedCallback(e,t,i)}enable(){this.noToggle||(this.tabIndex=0)}disable(){this.tabIndex=-1}get remaining(){return sg(this,oo.REMAINING)}set remaining(e){sf(this,oo.REMAINING,e)}get showDuration(){return sg(this,oo.SHOW_DURATION)}set showDuration(e){sf(this,oo.SHOW_DURATION,e)}get noToggle(){return sg(this,oo.NO_TOGGLE)}set noToggle(e){sf(this,oo.NO_TOGGLE,e)}get mediaDuration(){return sE(this,aC.MEDIA_DURATION)}set mediaDuration(e){sb(this,aC.MEDIA_DURATION,e)}get mediaCurrentTime(){return sE(this,aC.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){sb(this,aC.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){let e=this.getAttribute(aC.MEDIA_SEEKABLE);if(e)return e.split(":").map(e=>+e)}set mediaSeekable(e){if(null==e)return void this.removeAttribute(aC.MEDIA_SEEKABLE);this.setAttribute(aC.MEDIA_SEEKABLE,e.join(":"))}update(){let e=ou(this);(e=>{var t;
1163let i=e.mediaCurrentTime,[,a]=null!=(t=e.mediaSeekable)?t:[],s=null;if(Number.isFinite(e.mediaDuration)?s=e.mediaDuration:Number.isFinite(a)&&(s=a),null==i||null===s)return e.setAttribute("aria-description",aj("video not loaded, unknown time."));let r=e.remaining?aX(0-(s-i)):aX(i);if(!e.showDuration)return e.setAttribute("aria-description",r);let n=aj("{currentTime} of {totalTime}",{currentTime:r,totalTime:aX(s)});e.setAttribute("aria-description",n)})(this),e!==oa(this,ez).innerHTML&&(oa(this,ez).innerHTML=e)}};ez=new WeakMap,eX=new WeakMap,eJ=new WeakMap,e0=new WeakSet,e1=function(){oa(this,eX)||(or(this,eX,e=>{let{key:t}=e;if(!od.includes(t))return void this.removeEventListener("keyup",oa(this,eX));this.toggleTimeDisplay()}),this.addEventListener("keydown",oa(this,eJ)),this.addEventListener("click",this.toggleTimeDisplay))},e2=new WeakSet,e5=function(){oa(this,eX)&&(this.removeEventListener("keyup",oa(this,eX)),this.removeEventListener("keydown",oa(this,eJ)),this.removeEventListener("click",this.toggleTimeDisplay),or(this,eX,null))},e3=new WeakSet,e4=function(){this.noToggle||this.hasAttribute("disabled")||(this.setAttribute("role","button"),this.enable(),on(this,e0,e1).call(this))},e7=new WeakSet,e8=function(){this.removeAttribute("role"),this.disable(),on(this,e2,e5).call(this)},oc.getSlotTemplateHTML=function(e,t){return` 1164 <slot>${ou(t)}</slot> 1165 `},a8.customElements.get("media-time-display")||a8.customElements.define("media-time-display",oc);var om=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},op=(e,t,i)=>(om(e,t,"read from private field"),i?i.call(e):t.get(e)),ov=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oE=(e,t,i,a)=>(om(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ob=class{constructor(e,t,i){ov(this,e6,void 0),ov(this,e9,void 0),ov(this,te,void 0),ov(this,tt,void 0),ov(this,ti,void 0),ov(this,ta,void 0),ov(this,ts,void 0),ov(this,tr,void 0),ov(this,tn,0),ov(this,to,(e=performance.now())=>{oE(this,tn,requestAnimationFrame(op(this,to))),oE(this,tt,performance.now()-op(this,te));let t=1e3/this.fps;if(op(this,tt)>t){oE(this,te,e-op(this,tt)%t);let i=1e3/((e-op(this,e9))/++((e,t,i,a)=>({set _(value){oE(e,t,value,i)},get _(){return op(e,t,a)}}))(this,ti)._),a=(e-op(this,ta))/1e3/this.duration,s=op(this,ts)+a*this.playbackRate;s-op(this,e6).valueAsNumber>0?oE(this,tr,this.playbackRate/this.duration/i):(oE(this,tr,.995*op(this,tr)),s=op(this,e6).valueAsNumber+op(this,tr)),this.callback(s)}}),oE(this,e6,e),this.callback=t,this.fps=i}start(){0===op(this,tn)&&(oE(this,te,performance.now()),oE(this,e9,op(this,te)),oE(this,ti,0),op(this,to).call(this))}stop(){0!==op(this,tn)&&(cancelAnimationFrame(op(this,tn)),oE(this,tn,0))}update({start:e,duration:t,playbackRate:i}){let a=e-op(this,e6).valueAsNumber,s=Math.abs(t-this.duration);(a>0||a<-.03||s>=.5)&&this.callback(e),oE(this,ts,e),oE(this,ta,performance.now()),this.duration=t,this.playbackRate=i}};e6=new WeakMap,e9=new WeakMap,te=new WeakMap,tt=new WeakMap,ti=new WeakMap,ta=new WeakMap,ts=new WeakMap,tr=new WeakMap,tn=new WeakMap,to=new WeakMap;var og=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},of=(e,t,i)=>(og(e,t,"read from private field"),i?i.call(e):t.get(e)),oA=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oT=(e,t,i,a)=>(og(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ok=(e,t,i)=>(og(e,t,"access private method"),i),o_=(e,t=e.mediaCurrentTime)=>{let i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,a=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(a)?0:Math.max(0,Math.min((t-i)/(a-i),1))},ow=(e,t=e.range.valueAsNumber)=>{let i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,a=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(a)?0:t*(a-i)+i},oI=class extends r4{constructor(){super(),oA(this,tf),oA(this,tk),oA(this,tw),oA(this,ty),oA(this,tL),oA(this,tD),oA(this,tC),oA(this,tl,null),oA(this,td,void 0),oA(this,th,void 0),oA(this,tu,void 0),oA(this,tc,void 0),oA(this,tm,void 0),oA(this,tp,void 0),oA(this,tv,void 0),oA(this,tE,void 0),oA(this,tb,void 0),oA(this,tg,()=>{ok(this,tf,tA).call(this)?of(this,td).start():of(this,td).stop()}),oA(this,tT,e=>{!this.dragging&&(aK(e)&&(this.range.valueAsNumber=e),of(this,tb)||this.updateBar())}),this.shadowRoot.querySelector("#track").insertAdjacentHTML("afterbegin",'<div id="buffered" part="buffered"></div>'),oT(this,th,this.shadowRoot.querySelectorAll('[part~="box"]')),oT(this,tc,this.shadowRoot.querySelector('[part~="preview-box"]')),oT(this,tm,this.shadowRoot.querySelector('[part~="current-box"]'));let e=getComputedStyle(this);oT(this,tp,parseInt(e.getPropertyValue("--media-box-padding-left"))),oT(this,tv,parseInt(e.getPropertyValue("--media-box-padding-right"))),oT(this,td,new ob(this.range,of(this,tT),60))}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_PAUSED,aC.MEDIA_DURATION,aC.MEDIA_SEEKABLE,aC.MEDIA_CURRENT_TIME,aC.MEDIA_PREVIEW_IMAGE,aC.MEDIA_PREVIEW_TIME,aC.MEDIA_PREVIEW_CHAPTER,aC.MEDIA_BUFFERED,aC.MEDIA_PLAYBACK_RATE,aC.MEDIA_LOADING,aC.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",aj("seek")),of(this,tg).call(this),oT(this,tl,this.getRootNode()),null==(e=of(this,tl))||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),of(this,td).stop(),null==(e=of(this,tl))||e.removeEventListener("transitionstart",this),oT(this,tl,null)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),t!=i&&(e===aC.MEDIA_CURRENT_TIME||e===aC.MEDIA_PAUSED||e===aC.MEDIA_ENDED||e===aC.MEDIA_LOADING||e===aC.MEDIA_DURATION||e===aC.MEDIA_SEEKABLE?(of(this,td).update({start:o_(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),of(this,tg).call(this),(e=>{let t=e.range,i=aX(+ow(e)),a=aX(+e.mediaSeekableEnd),s=i&&a?aj("{currentTime} of {totalTime}",{currentTime:i,totalTime:a}):aj("video not loaded, unknown time.");t.setAttribute("aria-valuetext",s)})(this)):e===aC.MEDIA_BUFFERED&&this.updateBufferedBar(),(e===aC.MEDIA_DURATION||e===aC.MEDIA_SEEKABLE)&&(this.mediaChapter
1165sCues=of(this,tE),this.updateBar()))}get mediaChaptersCues(){return of(this,tE)}set mediaChaptersCues(e){var t;oT(this,tE,e),this.updateSegments(null==(t=of(this,tE))?void 0:t.map(e=>({start:o_(this,e.startTime),end:o_(this,e.endTime)})))}get mediaPaused(){return sg(this,aC.MEDIA_PAUSED)}set mediaPaused(e){sf(this,aC.MEDIA_PAUSED,e)}get mediaLoading(){return sg(this,aC.MEDIA_LOADING)}set mediaLoading(e){sf(this,aC.MEDIA_LOADING,e)}get mediaDuration(){return sE(this,aC.MEDIA_DURATION)}set mediaDuration(e){sb(this,aC.MEDIA_DURATION,e)}get mediaCurrentTime(){return sE(this,aC.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){sb(this,aC.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return sE(this,aC.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){sb(this,aC.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){let e=this.getAttribute(aC.MEDIA_BUFFERED);return e?e.split(" ").map(e=>e.split(":").map(e=>+e)):[]}set mediaBuffered(e){if(!e)return void this.removeAttribute(aC.MEDIA_BUFFERED);let t=e.map(e=>e.join(":")).join(" ");this.setAttribute(aC.MEDIA_BUFFERED,t)}get mediaSeekable(){let e=this.getAttribute(aC.MEDIA_SEEKABLE);if(e)return e.split(":").map(e=>+e)}set mediaSeekable(e){if(null==e)return void this.removeAttribute(aC.MEDIA_SEEKABLE);this.setAttribute(aC.MEDIA_SEEKABLE,e.join(":"))}get mediaSeekableEnd(){var e;let[,t=this.mediaDuration]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaSeekableStart(){var e;let[t=0]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaPreviewImage(){return sA(this,aC.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){sT(this,aC.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return sE(this,aC.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){sb(this,aC.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return sg(this,aC.MEDIA_ENDED)}set mediaEnded(e){sf(this,aC.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;let t,i=this.mediaBuffered;if(!i.length)return;if(this.mediaEnded)t=1;else{let a=this.mediaCurrentTime,[,s=this.mediaSeekableStart]=null!=(e=i.find(([e,t])=>e<=a&&a<=t))?e:[];t=o_(this,s)}let{style:a}=sp(this.shadowRoot,"#buffered");a.setProperty("width",`${100*t}%`)}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;let e=sp(this.shadowRoot,"#current-rail"),t=sp(this.shadowRoot,'[part~="current-box"]'),i=ok(this,tk,t_).call(this,of(this,tm)),a=ok(this,tw,tI).call(this,i,this.range.valueAsNumber),s=ok(this,ty,tS).call(this,i,this.range.valueAsNumber);e.style.transform=`translateX(${a})`,e.style.setProperty("--_range-width",`${i.range.width}`),t.style.setProperty("--_box-shift",`${s}`),t.style.setProperty("--_box-width",`${i.box.width}px`),t.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":ok(this,tC,tx).call(this);break;case"pointermove":ok(this,tL,tM).call(this,e);break;case"pointerup":of(this,tb)&&oT(this,tb,!1);break;case"pointerdown":oT(this,tb,!0);break;case"pointerleave":ok(this,tD,tR).call(this,null);break;case"transitionstart":sd(e.target,this)&&setTimeout(()=>of(this,tg).call(this),0)}}};tl=new WeakMap,td=new WeakMap,th=new WeakMap,tu=new WeakMap,tc=new WeakMap,tm=new WeakMap,tp=new WeakMap,tv=new WeakMap,tE=new WeakMap,tb=new WeakMap,tg=new WeakMap,tf=new WeakSet,tA=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&sm(this)},tT=new WeakMap,tk=new WeakSet,t_=function(e){var t;let i=(null!=(t=this.getAttribute("bounds")?sh(this,`#${this.getAttribute("bounds")}`):this.parentElement)?t:this).getBoundingClientRect(),a=this.range.getBoundingClientRect(),s=e.offsetWidth,r=-(a.left-i.left-s/2),n=i.right-a.left-s/2;return{box:{width:s,min:r,max:n},bounds:i,range:a}},tw=new WeakSet,tI=function(e,t){let i=`${100*t}%`,{width:a,min:s,max:r}=e.box;if(!a)return i;if(!Number.isNaN(s)){let e=`calc(1 / var(--_range-width) * 100 * ${s}% + var(--media-box-padding-left))`;i=`max(${e}, ${i})`}if(!Number.isNaN(r)){let e=`calc(1 / var(--_range-width) * 100 * ${r}% - var(--media-box-padding-right))`;i=`min(${i}, ${e})`}return i},ty=new WeakSet,tS=function(e,t){let{width:i,min:a,max:s}
1165=e.box,r=t*e.range.width;if(r<a+of(this,tp)){let t=e.range.left-e.bounds.left-of(this,tp);return`${r-i/2+t}px`}if(r>s-of(this,tv)){let t=e.bounds.right-e.range.right-of(this,tv);return`${r+i/2-t-e.range.width}px`}return 0},tL=new WeakSet,tM=function(e){let t=[...of(this,th)].some(t=>e.composedPath().includes(t));if(!this.dragging&&(t||!e.composedPath().includes(this)))return void ok(this,tD,tR).call(this,null);let i=this.mediaSeekableEnd;if(!i)return;let a=sp(this.shadowRoot,"#preview-rail"),s=sp(this.shadowRoot,'[part~="preview-box"]'),r=ok(this,tk,t_).call(this,of(this,tc)),n=(e.clientX-r.range.left)/r.range.width;n=Math.max(0,Math.min(1,n));let o=ok(this,tw,tI).call(this,r,n),l=ok(this,ty,tS).call(this,r,n);a.style.transform=`translateX(${o})`,a.style.setProperty("--_range-width",`${r.range.width}`),s.style.setProperty("--_box-shift",`${l}`),s.style.setProperty("--_box-width",`${r.box.width}px`),1>Math.abs(Math.round(of(this,tu))-Math.round(n*i))&&n>.01&&n<.99||(oT(this,tu,n*i),ok(this,tD,tR).call(this,of(this,tu)))},tD=new WeakSet,tR=function(e){this.dispatchEvent(new a8.CustomEvent(aL.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:e}))},tC=new WeakSet,tx=function(){of(this,td).stop();let e=ow(this);this.dispatchEvent(new a8.CustomEvent(aL.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e}))},oI.shadowRootOptions={mode:"open"},oI.getContainerTemplateHTML=function(e){return` 1166 <style> 1167 :host { 1168 --media-box-border-radius: 4px; 1169 --media-box-padding-left: 10px; 1170 --media-box-padding-right: 10px; 1171 --media-preview-border-radius: var(--media-box-border-radius); 1172 --media-box-arrow-offset: var(--media-box-border-radius); 1173 --_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))); 1174 --_preview-background: var(--media-preview-background, var(--_control-background)); 1175 1176 1177 contain: layout; 1178 } 1179 1180 #buffered { 1181 background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4)); 1182 position: absolute; 1183 height: 100%; 1184 will-change: width; 1185 } 1186 1187 #preview-rail, 1188 #current-rail { 1189 width: 100%; 1190 position: absolute; 1191 left: 0; 1192 bottom: 100%; 1193 pointer-events: none; 1194 will-change: transform; 1195 } 1196 1197 [part~="box"] { 1198 width: min-content; 1199 1200 position: absolute; 1201 bottom: 100%; 1202 flex-direction: column; 1203 align-items: center; 1204 transform: translateX(-50%); 1205 } 1206 1207 [part~="current-box"] { 1208 display: var(--media-current-box-display, var(--media-box-display, flex)); 1209 margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px)); 1210 visibility: hidden; 1211 } 1212 1213 [part~="preview-box"] { 1214 display: var(--media-preview-box-display, var(--media-box-display, flex)); 1215 margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px)); 1216 transition-property: var(--media-preview-transition-property, visibility, opacity); 1217 transition-duration: var(--media-preview-transition-duration-out, .25s); 1218 transition-delay: var(--media-preview-transition-delay-out, 0s); 1219 visibility: hidden; 1220 opacity: 0; 1221 } 1222 1223 :host(:is([${aC.MEDIA_PREVIEW_IMAGE}], [${aC.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] { 1224 transition-duration: var(--media-preview-transition-duration-in, .5s); 1225 transition-delay: var(--media-preview-transition-delay-in, .25s); 1226 visibility: visible; 1227 opacity: 1; 1228 } 1229 1230 @media (hover: hover) { 1231 :host(:is([${aC.MEDIA_PREVIEW_IMAGE}], [${aC.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] { 1232 transition-duration: var(--media-preview-transition-duration-in, .5s); 1233 transition-delay: var(--media-preview-transition-delay-in, .25s); 1234 visibility: visible; 1235 opacity: 1; 1236 } 1237 } 1238 1239 media-preview-thumbnail, 1240 ::slotted(media-preview-thumbnail) { 1241 visibility: hidden; 1242 1243 transition: visibility 0s .25s; 1244 transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1245 background: var(--media-preview-thumbnail-background, var(--_preview-background)); 1246 box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2)); 1247 max-width: var(--media-preview-thumbnail-max-width, 180px); 1248 max-height: var(--media-preview-thumbnail-max-height, 160px); 1249 min-width: var(--media-preview-thumbnail-min-width, 120px); 1250 min-height: var(--media-preview-thumbnail-min-height, 80px); 1251 border: var(--media-preview-thumbnail-border); 1252 border-radius: var(--media-preview-thumbnail-border-radius, 1253 var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0); 1254 } 1255 1256 :host([${aC.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail, 1257 :host([${aC.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) { 1258 transition-delay: var(--media-preview-transition-delay-in, .25s); 1259 visibility: visible; 1260 } 1261 1262 @media (hover: hover) { 1263 :host([${aC.MEDIA_PREVIEW_IMAGE}]:hover) media-preview-thumbnail, 1264 :host([${aC.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) { 1265 transition-delay: var(--media-preview-transition-delay-in, .25s); 1266 visibility: visible; 1267 } 1268 1269 :host([${aC.MEDIA_PREVIEW_TIME}]:hover) { 1270 --media-time-range-hover-display: block; 1271 } 1272 } 1273 1274 media-preview-chapter-display, 1275 ::slotted(media-preview-chapter-display) { 1276 font-size: var(--media-font-size, 13px); 1277 line-height: 17px; 1278 min-width: 0; 1279 visibility: hidden; 1280 1281 transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s; 1282 transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s)); 1283 background: var(--media-preview-chapter-background, var(--_preview-background)); 1284 border-radius: var(--media-preview-chapter-border-radius, 1285 var(--media-preview-border-radius) var(--media-preview-border-radius) 1286 var(--media-preview-border-radius) var(--media-preview-border-radius)); 1287 padding: var(--media-preview-chapter-padding, 3.5px 9px); 1288 margin: var(--media-preview-chapter-margin, 0 0 5px); 1289 text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75)); 1290 } 1291 1292 :host([${aC.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display, 1293 :host([${aC.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) { 1294 transition-delay: var(--media-preview-transition-delay-in, .25s); 1295 border-radius: var(--media-preview-chapter-border-radius, 0); 1296 padding: var(--media-preview-chapter-padding, 3.5px 9px 0); 1297 margin: var(--media-preview-chapter-margin, 0); 1298 min-width: 100%; 1299 } 1300 1301 media-preview-chapter-display[${aC.MEDIA_PREVIEW_CHAPTER}], 1302 ::slotted(media-preview-chapter-display[${aC.MEDIA_PREVIEW_CHAPTER}]) { 1303 visibility: visible; 1304 } 1305 1306 media-preview-chapter-display:not([aria-valuetext]), 1307 ::slotted(media-preview-chapter-display:not([aria-valuetext])) { 1308 display: none; 1309 } 1310 1311 media-preview-time-display, 1312 ::slotted(media-preview-time-display), 1313 media-time-display, 1314 ::slotted(media-time-display) { 1315 font-size: var(--media-font-size, 13px); 1316 line-height: 17px; 1317 min-width: 0; 1318 1319 transition: min-width 0s, border-radius 0s; 1320 transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s)); 1321 background: var(--media-preview-time-background, var(--_preview-background)); 1322 border-radius: var(--media-preview-time-border-radius, 1323 var(--media-preview-border-radius) var(--media-preview-border-radius) 1324 var(--media-preview-border-radius) var(--media-preview-border-radius)); 1325 padding: var(--media-preview-time-padding, 3.5px 9px); 1326 margin: var(--media-preview-time-margin, 0); 1327 text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75)); 1328 transform: translateX(min( 1329 max(calc(50% - var(--_box-width) / 2), 1330 calc(var(--_box-shift, 0))), 1331 calc(var(--_box-width) / 2 - 50%) 1332 )); 1333 } 1334 1335 :host([${aC.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display, 1336 :host([${aC.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) { 1337 transition-delay: var(--media-preview-transition-delay-in, .25s); 1338 border-radius: var(--media-preview-time-border-radius, 1339 0 0 var(--media-preview-border-radius) var(--media-preview-border-radius)); 1340 min-width: 100%; 1341 } 1342 1343 :host([${aC.MEDIA_PREVIEW_TIME}]:hover) { 1344 --media-time-range-hover-display: block; 1345 } 1346 1347 [part~="arrow"], 1348 ::slotted([part~="arrow"]) { 1349 display: var(--media-box-arrow-display, inline-block); 1350 transform: translateX(min( 1351 max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)), 1352 calc(var(--_box-shift, 0))), 1353 calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset)) 1354 )); 1355 1356 border-color: transparent; 1357 border-top-color: var(--media-box-arrow-background, var(--_control-background)); 1358 border-width: var(--media-box-arrow-border-width, 1359 var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0); 1360 border-style: solid; 1361 justify-content: center; 1362 height: 0; 1363 } 1364 </style> 1365 <div id="preview-rail"> 1366 <slot name="preview" part="box preview-box">
1367 <media-preview-thumbnail> 1368 <template shadowrootmode="${n3.shadowRootOptions.mode}"> 1369 ${n3.getTemplateHTML({})} 1370 </template> 1371 </media-preview-thumbnail> 1372 <media-preview-chapter-display></media-preview-chapter-display> 1373 <media-preview-time-display></media-preview-time-display> 1374 <slot name="preview-arrow"><div part="arrow"></div></slot> 1375 </slot> 1376 </div> 1377 <div id="current-rail"> 1378 <slot name="current" part="box current-box"> 1379 1380 </slot> 1381 </div> 1382 `},a8.customElements.get("media-time-range")||a8.customElements.define("media-time-range",oI);var oy=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot read from private field");return i?i.call(e):t.get(e)},oS=class extends r4{constructor(){super(...arguments),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,tO,()=>{let e=this.range.value,t=new a8.CustomEvent(aL.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)})}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_VOLUME,aC.MEDIA_MUTED,aC.MEDIA_VOLUME_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",aj("volume")),this.range.addEventListener("input",oy(this,tO))}disconnectedCallback(){this.range.removeEventListener("input",oy(this,tO)),super.disconnectedCallback()}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===aC.MEDIA_VOLUME||e===aC.MEDIA_MUTED){let e;this.range.valueAsNumber=this.mediaMuted?0:this.mediaVolume,this.range.setAttribute("aria-valuetext",(e=this.range.valueAsNumber,`${Math.round(100*e)}%`)),this.updateBar()}}
1382get mediaVolume(){return sE(this,aC.MEDIA_VOLUME,1)}set mediaVolume(e){sb(this,aC.MEDIA_VOLUME,e)}get mediaMuted(){return sg(this,aC.MEDIA_MUTED)}set mediaMuted(e){sf(this,aC.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return sA(this,aC.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){sT(this,aC.MEDIA_VOLUME_UNAVAILABLE,e)}};tO=new WeakMap,a8.customElements.get("media-volume-range")||a8.customElements.define("media-volume-range",oS);var oL=class extends rN{constructor(){super(...arguments),this.container=null}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_LOOP]}connectedCallback(){var e;super.connectedCallback(),this.container=(null==(e=this.shadowRoot)?void 0:e.querySelector("#icon"))||null,this.container&&(this.container.textContent=aj("Loop"))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_LOOP&&this.container&&this.setAttribute("aria-checked",this.mediaLoop?"true":"false")}get mediaLoop(){return sg(this,aC.MEDIA_LOOP)}set mediaLoop(e){sf(this,aC.MEDIA_LOOP,e)}handleClick(){let e=!this.mediaLoop,t=new a8.CustomEvent(aL.MEDIA_LOOP_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};oL.getSlotTemplateHTML=function(e){return` 1383 <style> 1384 :host { 1385 min-width: 4ch; 1386 padding: var(--media-button-padding, var(--media-control-padding, 10px 5px)); 1387 width: 100%; 1388 display: grid; 1389 grid-template-columns: 1fr auto; 1390 gap: 1rem; 1391 font-weight: var(--media-button-font-weight, normal); 1392 } 1393 1394 #checked-indicator { 1395 display: none; 1396 } 1397 1398 :host([${aC.MEDIA_LOOP}]) #checked-indicator { 1399 display: block; 1400 } 1401 </style> 1402 1403 <span id="icon"> 1404 </span> 1405 1406 <div id="checked-indicator"> 1407 <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator"> 1408 <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/> 1409 </svg> 1410 </div> 1411 `},oL.getTooltipContentHTML=function(){return aj("Loop")},a8.customElements.get("media-loop-button")||a8.customElements.define("media-loop-button",oL);var oM=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oD=(e,t,i)=>(oM(e,t,"read from private field"),i?i.call(e):t.get(e)),oR=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oC=(e,t,i,a)=>(oM(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ox={processCallback(e,t,i){if(i){for(let[e,a]of t)if(e in i){let t=i[e];"boolean"==typeof t&&a instanceof oV&&"boolean"==typeof a.element[a.attributeName]?a.booleanValue=t:"function"==typeof t&&a instanceof oV?a.element[a.attributeName]=t:a.value=t}}}},oO=class extends a8.DocumentFragment{constructor(e,t,i=ox){var a;super(),oR(this,tN,void 0),oR(this,tU,void 0),this.append(e.content.cloneNode(!0)),oC(this,tN,oN(this)),oC(this,tU,i),null==(a=i.createCallback)||a.call(i,this,oD(this,tN),t),i.processCallback(this,oD(this,tN),t)}update(e){oD(this,tU).processCallback(this,oD(this,tN),e)}};tN=new WeakMap,tU=new WeakMap;var oN=(e,t=[])=>{let i,a;for(let s of e.attributes||[])if(s.value.includes("{{")){let r=new oB;for([i,a]of oP(s.value))if(i){let i=new oV(e,s.name,s.namespaceURI);r.append(i),t.push([a,i])}else r.append(a);s.value=r.toString()}for(let s of e.childNodes)if(1!==s.nodeType||s instanceof HTMLTemplateElement){let r=s.data;if(1===s.nodeType||r.includes("{{")){let n=[];if(r)for([i,a]of oP(r))if(i){let i=new o$(e);n.push(i),t.push([a,i])}else n.push(new Text(a));else if(s instanceof HTMLTemplateElement){let i=new oF(e,s);n.push(i),t.push([i.expression,i])}s.replaceWith(...n.flatMap(e=>e.replacementNodes||[e]))}}else oN(s,t);return t},oU={},oP=e=>{let t="",i=0,a=oU[e],s=0,r;if(a)return a;for(a=[];r=e[s];s++)"{"===r&&"{"===e[s+1]&&"\\"!==e[s-1]&&e[s+2]&&1==++i?(t&&a.push([0,t]),t="",s++):"}"!==r||"}"!==e[s+1]||"\\"===e[s-1]||--i?t+=r||"":(a.push([1,t.trim()]),t="",s++);return t&&a.push([0,(i>0?"{{":"")+t]),oU[e]=a},oH=class{get value(){return""}set value(e){}toString(){return this.value}},oW=new WeakMap,oB=class{constructor(){oR(this,tP,[])}[Symbol.iterator](){return oD(this,tP).values()}get length(){return oD(this,tP).length}item(e){return oD(this,tP)[e]}append(...e){for(let t of e)t instanceof oV&&oW.set(t,this),oD(this,tP).push(t)}toString(){return oD(this,tP).join("")}};tP=new WeakMap;var oV=class extends oH{constructor(e,t,i){super(),oR(this,t$),oR(this,tH,""),oR(this,tW,void 0),oR(this,tB,void 0),oR(this,tV,void 0),oC(this,tW,e),oC(this,tB,t),oC(this,tV,i)}get attributeName(){return oD(this,tB)}get attributeNamespace(){return oD(this,tV)}
1411get element(){return oD(this,tW)}get value(){return oD(this,tH)}set value(e){oD(this,tH)!==e&&(oC(this,tH,e),oD(this,t$,tF)&&1!==oD(this,t$,tF).length?oD(this,tW).setAttributeNS(oD(this,tV),oD(this,tB),oD(this,t$,tF).toString()):null==e?oD(this,tW).removeAttributeNS(oD(this,tV),oD(this,tB)):oD(this,tW).setAttributeNS(oD(this,tV),oD(this,tB),e))}get booleanValue(){return oD(this,tW).hasAttributeNS(oD(this,tV),oD(this,tB))}set booleanValue(e){if(oD(this,t$,tF)&&1!==oD(this,t$,tF).length)throw new DOMException("Value is not fully templatized");this.value=e?"":null}};tH=new WeakMap,tW=new WeakMap,tB=new WeakMap,tV=new WeakMap,t$=new WeakSet,tF=function(){return oW.get(this)};var o$=class extends oH{constructor(e,t){super(),oR(this,tG,void 0),oR(this,tK,void 0),oC(this,tG,e),oC(this,tK,t?[...t]:[new Text])}get replacementNodes(){return oD(this,tK)}get parentNode(){return oD(this,tG)}get nextSibling(){return oD(this,tK)[oD(this,tK).length-1].nextSibling}get previousSibling(){return oD(this,tK)[0].previousSibling}get value(){return oD(this,tK).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(e=>null==e?[new Text]:e.forEach?[...e]:11===e.nodeType?[...e.childNodes]:e.nodeType?[e]:[new Text(e)]);t.length||t.push(new Text),oC(this,tK,function(e,t,i,a=null){let s=0,r,n,o,l=i.length,d=t.length;for(;s<l&&s<d&&t[s]==i[s];)s++;for(;s<l&&s<d&&i[l-1]==t[d-1];)a=i[--d,--l];if(s==d)for(;s<l;)e.insertBefore(i[s++],a);if(s==l)for(;s<d;)e.removeChild(t[s++]);else{for(r=t[s];s<l;)o=i[s++],n=r?r.nextSibling:a,r==o?r=n:s<l&&i[s]==n?(e.replaceChild(o,r),r=n):e.insertBefore(o,r);for(;r!=a;)n=r.nextSibling,e.removeChild(r),r=n}return i}(oD(this,tK)[0].parentNode,oD(this,tK),t,this.nextSibling))}};tG=new WeakMap,tK=new WeakMap;var oF=class extends o${constructor(e,t){let i=t.getAttribute("directive")||t.getAttribute("type"),a=t.getAttribute("expression")||t.getAttribute(i)||"";a.startsWith("{{")&&(a=a.trim().slice(2,-2).trim()),super(e),this.expression=a,this.template=t,this.directive=i}},oG={string:e=>String(e)},oK=class{constructor(e){this.template=e,this.state=void 0}},oq=new WeakMap,oZ=new WeakMap,oY={partial:(e,t)=>{t[e.expression]=new oK(e.template)},if:(e,t)=>{var i;if(oX(e.expression,t))if(oq.get(e)!==e.template){oq.set(e,e.template);let i=new oO(e.template,t,oj);e.replace(i),oZ.set(e,i)}else null==(i=oZ.get(e))||i.update(t);else e.replace(""),oq.delete(e),oZ.delete(e)}},oQ=Object.keys(oY),oj={processCallback(e,t,i){var a,s;if(i)for(let[e,r]of t){if(r instanceof oF){if(!r.directive){let e=oQ.find(e=>r.template.hasAttribute(e));e&&(r.directive=e,r.expression=r.template.getAttribute(e))}null==(a=oY[r.directive])||a.call(oY,r,i);continue}let t=oX(e,i);if(t instanceof oK){oq.get(r)!==t.template?(oq.set(r,t.template),r.value=t=new oO(t.template,t.state,oj),oZ.set(r,t)):null==(s=oZ.get(r))||s.update(t.state);continue}t?(r instanceof oV&&r.attributeName.startsWith("aria-")&&(t=String(t)),r instanceof oV?"boolean"==typeof t?r.booleanValue=t:"function"==typeof t?r.element[r.attributeName]=t:r.value=t:(r.value=t,oq.delete(r),oZ.delete(r))):r instanceof oV?r.value=void 0:(r.value=void 0,oq.delete(r),oZ.delete(r))}}},oz={"!":e=>!e,"!!":e=>!!e,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,">":(e,t)=>e>t,">=":(e,t)=>
1411e>=t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,"??":(e,t)=>null!=e?e:t,"|":(e,t)=>{var i;return null==(i=oG[t])?void 0:i.call(oG,e)}};function oX(e,t={}){var i,a,s,r,n,o,l;let d=(function(e,t){let i,a,s,r=[];for(;e;){for(let r in s=null,i=e.length,t)(a=t[r].exec(e))&&a.index<i&&(s={token:a[0],type:r,matches:a.slice(1)},i=a.index);i&&r.push({token:e.substr(0,i),type:void 0}),s&&r.push(s),e=e.substr(i+(s?s.token.length:0))}return r})(e,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>"ws"!==e);if(0===d.length||d.some(({type:e})=>!e))return oJ(e);if((null==(i=d[0])?void 0:i.token)===">"){let i=t[null==(a=d[1])?void 0:a.token];if(!i)return oJ(e);let o={...t};i.state=o;let l=d.slice(2);for(let e=0;e<l.length;e+=3){let i=null==(s=l[e])?void 0:s.token,a=null==(r=l[e+1])?void 0:r.token,d=null==(n=l[e+2])?void 0:n.token;i&&"="===a&&(o[i]=o1(d,t))}return i}if(1===d.length)return o0(d[0])?o1(d[0].token,t):oJ(e);if(2===d.length){let i=oz[null==(o=d[0])?void 0:o.token];return i&&o0(d[1])?i(o1(d[1].token,t)):oJ(e)}if(3===d.length){let i=null==(l=d[1])?void 0:l.token,a=oz[i];if(!a||!o0(d[0])||!o0(d[2]))return oJ(e);let s=o1(d[0].token,t);return a(s,"|"===i?d[2].token:o1(d[2].token,t))}}function oJ(e){return console.warn(`Warning: invalid expression \`${e}\``),!1}function o0({type:e}){return["number","boolean","string","param"].includes(e)}function o1(e,t){let i=e[0],a=e.slice(-1);return"true"===e||"false"===e?"true"===e:i===a&&["'",'"'].includes(i)?e.slice(1,-1):aq(e)?parseFloat(e):t[e]}var o2=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},o5=(e,t,i)=>(o2(e,t,"read from private field"),i?i.call(e):t.get(e)),o3=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},o4=(e,t,i,a)=>(o2(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),o7=(e,t,i)=>(o2(e,t,"access private method"),i),o8={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},o6=a6.createElement("template");o6.innerHTML=` 1412 <style> 1413 :host { 1414 display: inline-block; 1415 line-height: 0; 1416 } 1417 1418 media-controller { 1419 width: 100%; 1420 height: 100%; 1421 } 1422 1423 media-captions-button:not([mediasubtitleslist]), 1424 media-captions-menu:not([mediasubtitleslist]), 1425 media-captions-menu-button:not([mediasubtitleslist]), 1426 media-audio-track-menu[mediaaudiotrackunavailable], 1427 media-audio-track-menu-button[mediaaudiotrackunavailable], 1428 media-rendition-menu[mediarenditionunavailable], 1429 media-rendition-menu-button[mediarenditionunavailable], 1430 media-volume-range[mediavolumeunavailable], 1431 media-airplay-button[mediaairplayunavailable], 1432 media-fullscreen-button[mediafullscreenunavailable], 1433 media-cast-button[mediacastunavailable], 1434 media-pip-button[mediapipunavailable] { 1435 display: none; 1436 } 1437 </style> 1438`;var o9=class extends a8.HTMLElement{constructor(){super(),o3(this,tj),o3(this,tX),o3(this,tq,void 0),o3(this,tZ,void 0),o3(this,tY,void 0),o3(this,tQ,void 0),o3(this,t0,void 0),this.shadowRoot?this.renderRoot=this.shadowRoot:(this.renderRoot=this.attachShadow({mode:"open"}),this.createRenderer()),o4(this,tQ,new MutationObserver(e=>{var t;(!this.mediaController||(null==(t=this.mediaController)?void 0:t.breakpointsComputed))&&e.some(e=>{let t=e.target;return t===this||"media-controller"===t.localName&&!!(o8[e.attributeName]||e.attributeName.startsWith("breakpoint"))})&&this.render()})),o4(this,t0,this.render.bind(this)),o7(this,tj,tz).call(this,"template")}get mediaController(){return this.renderRoot.querySelector("media-controller")}get template(){var e;return null!=(e=o5(this,tq))?e:this.constructor.template}set template(e){if(null===e)return void this.removeAttribute("template");"string"==typeof e?this.setAttribute("template",e):e instanceof HTMLTemplateElement&&(o4(this,tq,e),o4(this,tY,null),this.createRenderer())}get props(){var e,t,i;let a=[...Array.from(null!=(t=null==(e=this.mediaController)?void 0:e.attributes)?t:[]).filter(({name:e})=>o8[e]||e.startsWith("breakpoint")),...Array.from(this.attributes)],s={};for(let e of a){let t=null!=(i=o8[e.name])?i:e.name.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase()),{value:a}=e;null!=a?(aq(a)&&(a=parseFloat(a)),s[t]=""===a||a):s[t]=!1}return s}attributeChangedCallback(e,t,i){"template"===e&&t!=i&&o7(this,tX,tJ).call(this)}connectedCallback(){this.addEventListener(ax.BREAKPOINTS_COMPUTED,o5(this,t0)),o5(this,tQ).observe(this,{attributes:!0}),o5(this,tQ).observe(this.renderRoot,{attributes:!0,subtree:!0}),o7(this,tX,tJ).call(this)}disconnectedCallback(){this.removeEventListener(ax.BREAKPOINTS_COMPUTED,o5(this,t0)),o5(this,tQ).disconnect()}createRenderer(){this.template instanceof HTMLTemplateElement&&this.template!==o5(this,tZ)&&(o4(this,tZ,this.template),this.renderer=new oO(this.template,this.props,this.constructor.processor),this.renderRoot.textContent="",this.renderRoot.append(o6.content.cloneNode(!0),this.renderer))}render(){var e;null==(e=this.renderer)||e.update(this.props)}};async function le(e){let t=await fetch(e);if(200!==t.status)throw Error(`Failed to load resource: the server responded with a status of ${t.status}`);return t.text()}function lt(e){return e.split("-")[0]}tq=new WeakMap,tZ=new WeakMap,tY=new WeakMap,tQ=new WeakMap,tj=new WeakSet,tz=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}},tX=new WeakSet,tJ=function(){var e;let t=this.getAttribute("template");if(!t||t===o5(this,tY))return;let i=this.getRootNode(),a=null==(e=null==i?void 0:i.getElementById)?void 0:e.call(i,t);if(a){o4(this,tY,t),o4(this,tq,a),this.createRenderer();return}(function(e){if(!/^(\/|\.\/|https?:\/\/)/.test(e))return!1;let t=/^https?:\/\//.test(e)?void 0:location.origin;try{new URL(e,t)}catch(e){return!1}return!0})(t)&&(o4(this,tY,t),le(t).then(e=>{let t=a6.createElement("template");t.innerHTML=e,o4(this,tq,t),this.createRenderer()}).catch(console.error))},t0=new WeakMap,o9.observedAttributes=["template"],o9.processor=oj,a8.customElements.get("media-theme")||a8.customElements.define("media-theme",o9);
1438var li=class extends Event{constructor({action:e="auto",relatedTarget:t,...i}){super("invoke",i),this.action=e,this.relatedTarget=t}},la=class extends Event{constructor({newState:e,oldState:t,...i}){super("toggle",i),this.newState=e,this.oldState=t}},ls=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lr=(e,t,i)=>(ls(e,t,"read from private field"),i?i.call(e):t.get(e)),ln=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lo=(e,t,i,a)=>(ls(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ll=(e,t,i)=>(ls(e,t,"access private method"),i);function ld({type:e,text:t,value:i,checked:a}){let s=a6.createElement("media-chrome-menu-item");s.type=null!=e?e:"",s.part.add("menu-item"),e&&s.part.add(e),s.value=i,s.checked=a;let r=a6.createElement("span");return r.textContent=t,s.append(r),s}function lh(e,t){let i=e.querySelector(`:scope > [slot="${t}"]`);if((null==i?void 0:i.nodeName)=="SLOT"&&(i=i.assignedElements({flatten:!0})[0]),i)return i.cloneNode(!0);let a=e.shadowRoot.querySelector(`[name="${t}"] > svg`);return a?a.cloneNode(!0):""}var lu={STYLE:"style",HIDDEN:"hidden",DISABLED:"disabled",ANCHOR:"anchor"},lc=class extends a8.HTMLElement{constructor(){if(super(),ln(this,t6),ln(this,ie),ln(this,ia),ln(this,ir),ln(this,il),ln(this,ih),ln(this,ip),ln(this,iE),ln(this,ig),ln(this,iT),ln(this,i_),ln(this,iI),ln(this,iS),ln(this,iM),ln(this,iR),ln(this,ix),ln(this,iN),ln(this,iP),ln(this,t1,null),ln(this,t2,null),ln(this,t5,null),ln(this,t3,new Set),ln(this,t4,void 0),ln(this,t7,!1),ln(this,t8,null),ln(this,ii,()=>{let e=lr(this,t3),t=new Set(this.items);for(let i of e)t.has(i)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:i}));for(let i of t)e.has(i)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:i}));lo(this,t3,t)}),ln(this,ic,()=>{ll(this,ip,iv).call(this),ll(this,iE,ib).call(this,!1)}),ln(this,im,()=>{ll(this,ip,iv).call(this)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),lo(this,t4,new MutationObserver(lr(this,ii)))}static get observedAttributes(){return[lu.DISABLED,lu.HIDDEN,lu.STYLE,lu.ANCHOR,aM.MEDIA_CONTROLLER]}static formatMenuItemText(e,t){return e}enable(){this.addEventListener("click",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this),this.addEventListener("invoke",this),this.addEventListener("toggle",this)}disable(){this.removeEventListener("click",this),this.removeEventListener("focusout",this),this.removeEventListener("keyup",this),this.removeEventListener("invoke",this),this.removeEventListener("toggle",this)}handleEvent(e){switch(e.type){case"slotchange":ll(this,t6,t9).call(this,e);break;case"invoke":ll(this,ir,io).call(this,e);break;case"click":ll(this,ig,iA).call(this,e);break;case"toggle":ll(this,i_,iw).call(this,e);break;case"focusout":ll(this,iS,iL).call(this,e);break;case"keydown":ll(this,iM,iD).call(this,e)}}connectedCallback(){var e,t;lr(this,t4).observe(this.defaultSlot,{childList:!0}),lo(this,t8,sv(this.shadowRoot,":host")),ll(this,ia,is).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),lo(this,t1,sn(this)),null==(t=null==(e=lr(this,t1))?void 0:e.associateElement)||t.call(e,this),this.hidden||(si(lp(this),lr(this,ic)),si(this,lr(this,im))),ll(this,ie,it).call(this),this.shadowRoot.addEventListener("slotchange",this)}disconnectedCallback(){var e,t;lr(this,t4).disconnect(),sa(lp(this),lr(this,ic)),sa(this,lr(this,im)),this.disable(),null==(t=null==(e=lr(this,t1))?void 0:e.unassociateElement)||t.call(e,this),lo(this,t1,null),lo(this,t2,null),lo(this,t5,null),this.shadowRoot.removeEventListener("slotchange",this)}attributeChangedCallback(e,t,i){var a,s,r,n;e===lu.HIDDEN&&i!==t?(lr(this,t7)||lo(this,t7,!0),this.hidden?ll(this,ih,iu).call(this):ll(this,il,id).call(this),this.dispatchEvent(new la({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:!0}))):e===aM.MEDIA_CONTROLLER?(t&&(null==(s=null==(a=lr(this,t1))?void 0:a.unassociateElement)||s.call(a,this),lo(this,t1,null)),i&&this.isConnected&&(lo(this,t1,sn(this)),null==(n=null==(r=lr(this,t1))?void 0:r.associateElement)||n.call(r,this))):e===lu.DISABLED&&i!==t?null==i?this.enable():this.disable():e===lu.STYLE&&i!==t&&ll(this,ia,is).call(this)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}get anchor(){return this.getAttribute("anchor")}
1438set anchor(e){this.setAttribute("anchor",`${e}`)}get anchorElement(){var e;return this.anchor?null==(e=sc(this))?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:!0}).filter(lm)}get radioGroupItems(){return this.items.filter(e=>"menuitemradio"===e.role)}get checkedItems(){return this.items.filter(e=>e.checked)}get value(){var e,t;return null!=(t=null==(e=this.checkedItems[0])?void 0:e.value)?t:""}set value(e){let t=this.items.find(t=>t.value===e);t&&ll(this,iP,iH).call(this,t)}focus(){if(lo(this,t2,su()),this.items.length){ll(this,iN,iU).call(this,this.items[0]),this.items[0].focus();return}let e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==e||e.focus()}handleSelect(e){var t;let i=ll(this,iR,iC).call(this,e);i&&(ll(this,iP,iH).call(this,i,"checkbox"===i.type),lr(this,t5)&&!this.hidden&&(null==(t=lr(this,t2))||t.focus(),this.hidden=!0))}get keysUsed(){return["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var t,i;let{key:a}=e,s=this.items,r=null!=(i=null!=(t=ll(this,iR,iC).call(this,e))?t:ll(this,ix,iO).call(this))?i:s[0],n=Math.max(0,s.indexOf(r));"ArrowDown"===a?n++:"ArrowUp"===a?n--:"Home"===e.key?n=0:"End"===e.key&&(n=s.length-1),n<0&&(n=s.length-1),n>s.length-1&&(n=0),ll(this,iN,iU).call(this,s[n]),s[n].focus()}};function lm(e){return["menuitem","menuitemradio","menuitemcheckbox"].includes(null==e?void 0:e.role)}function lp(e){var t;return null!=(t=e.getAttribute("bounds")?sh(e,`#${e.getAttribute("bounds")}`):sr(e)||e.parentElement)?t:e}t1=new WeakMap,t2=new WeakMap,t5=new WeakMap,t3=new WeakMap,t4=new WeakMap,t7=new WeakMap,t8=new WeakMap,t6=new WeakSet,t9=function(e){let t=e.target;for(let e of t.assignedNodes({flatten:!0}))3===e.nodeType&&""===e.textContent.trim()&&e.remove();["header","title"].includes(t.name)&&ll(this,ie,it).call(this),t.name||lr(this,ii).call(this)},ie=new WeakSet,it=function(){let e=this.shadowRoot.querySelector('slot[name="header"]');e.hidden=0===this.shadowRoot.querySelector('slot[name="title"]').assignedNodes().length&&0===e.assignedNodes().length},ii=new WeakMap,ia=new WeakSet,is=function(){var e;let t=this.shadowRoot.querySelector("#layout-row"),i=null==(e=getComputedStyle(this).getPropertyValue("--media-menu-layout"))?void 0:e.trim();t.setAttribute("media","row"===i?"":"width:0")},ir=new WeakSet,io=function(e){lo(this,t5,e.relatedTarget),sd(this,e.relatedTarget)||(this.hidden=!this.hidden)},il=new WeakSet,id=function(){var e;null==(e=lr(this,t5))||e.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",()=>this.focus(),{once:!0}),si(lp(this),lr(this,ic)),si(this,lr(this,im))},ih=new WeakSet,iu=function(){var e;null==(e=lr(this,t5))||e.setAttribute("aria-expanded","false"),sa(lp(this),lr(this,ic)),sa(this,lr(this,im))},ic=new WeakMap,im=new WeakMap,ip=new WeakSet,iv=function(e){if(this.hasAttribute("mediacontroller")&&!this.anchor||this.hidden||!this.anchorElement)return;let{x:t,y:i}=function({anchor:e,floating:t,placement:i}){let{x:a,y:s}=function({anchor:e,floating:t},i){let a,s="x"==(["top","bottom"].includes(lt(i))?"y":"x")?"y":"x",r="y"===s?"height":"width",n=lt(i),o=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,d=e[r]/2-t[r]/2;switch(n){case"top":a={x:o,y:e.y-t.height};break;case"bottom":a={x:o,y:e.y+e.height};break;case"right":a={x:e.x+e.width,y:l};break;case"left":a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}switch(i.split("-")[1]){case"start":a[s]-=d;break;case"end":a[s]+=d}return a}(function({anchor:e,floating:t}){return{anchor:function(e,t){var i;let a=e.getBoundingClientRect(),s=null!=(i=null==t?void 0:t.getBoundingClientRect())?i:{x:0,y:0};return{x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}(e,t.offsetParent),floating:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight}}}({anchor:e,floating:t}),i);return{x:a,y:s}}({anchor:this.anchorElement,floating:this,placement:"top-start"});null!=e||(e=this.offsetWidth);let a=lp(this).getBoundingClientRect(),s=a.width-t-e,r=a.height-i-this.offsetHeight,{style:n}=lr(this,t8);n.setProperty("position","absolute"),n.setProperty("right",`${Math.max(0,s)}px`),n.setProperty("--_menu-bottom",`${r}px`);let o=getComputedStyle(this),l=n.getPropertyValue("--_menu-bottom")===o.bottom?r:parseFloat(o.bottom),d=a.height-l-parseFloat(o.marginBottom);this.style.setProperty("--_menu-max-height",`${d}px`)},iE=new WeakSet,ib=function(e){let t=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),i=null==t?void 0:t.querySelector('[role="menu"]'),{style:a}=lr(this,t8);if(e||a.setProperty("--media-menu-transition-in","none"),i){let e=i.offsetHeight,a=Math.max(i.offsetWidth,t.offsetWidth);this.style.setProperty("min-width",`${a}px`),this.style.setProperty("min-height",`${e}px`),ll(this,ip,iv).call(this,a)}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),ll(this,ip,iv).call(this);a.removeProperty("--media-menu-transition-in")},ig=new WeakSet,iA=function(e){var t;if(e.stopPropagation(),e.composedPath().includes(lr(this,iT,ik))){null==(t=lr(this,t2))||t.focu
1438s(),this.hidden=!0;return}let i=ll(this,iR,iC).call(this,e);!i||i.hasAttribute("disabled")||(ll(this,iN,iU).call(this,i),this.handleSelect(e))},iT=new WeakSet,ik=function(){var e;return null==(e=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:!0}))?void 0:e.find(e=>e.matches('button[part~="back"]'))},i_=new WeakSet,iw=function(e){if(e.target===this)return;ll(this,iI,iy).call(this);let t=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(let i of t)i.invokeTargetElement!=e.target&&("open"!=e.newState||"true"!=i.getAttribute("aria-expanded")||i.invokeTargetElement.hidden||i.invokeTargetElement.dispatchEvent(new li({relatedTarget:i})));for(let e of t)e.setAttribute("aria-expanded",`${!e.submenuElement.hidden}`);ll(this,iE,ib).call(this,!0)},iI=new WeakSet,iy=function(){let e=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!e)},iS=new WeakSet,iL=function(e){var t;sd(this,e.relatedTarget)||(lr(this,t7)&&(null==(t=lr(this,t2))||t.focus()),lr(this,t5)&&lr(this,t5)!==e.relatedTarget&&!this.hidden&&(this.hidden=!0))},iM=new WeakSet,iD=function(e){var t,i,a,s,r;let{key:n,ctrlKey:o,altKey:l,metaKey:d}=e;if(!o&&!l&&!d&&this.keysUsed.includes(n))if(e.preventDefault(),e.stopPropagation(),"Tab"===n){if(lr(this,t7)){this.hidden=!0;return}e.shiftKey?null==(i=null==(t=this.previousElementSibling)?void 0:t.focus)||i.call(t):null==(s=null==(a=this.nextElementSibling)?void 0:a.focus)||s.call(a),this.blur()}else"Escape"===n?(null==(r=lr(this,t2))||r.focus(),lr(this,t7)&&(this.hidden=!0)):"Enter"===n||" "===n?this.handleSelect(e):this.handleMove(e)},iR=new WeakSet,iC=function(e){return e.composedPath().find(e=>["menuitemradio","menuitemcheckbox"].includes(e.role))},ix=new WeakSet,iO=function(){return this.items.find(e=>0===e.tabIndex)},iN=new WeakSet,iU=function(e){for(let t of this.items)t.tabIndex=t===e?0:-1},iP=new WeakSet,iH=function(e,t){let i=[...this.checkedItems];"radio"===e.type&&this.radioGroupItems.forEach(e=>e.checked=!1),t?e.checked=!e.checked:e.checked=!0,this.checkedItems.some((e,t)=>e!=i[t])&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},lc.shadowRootOptions={mode:"open"},lc.getTemplateHTML=function(e){return` 1439 <style> 1440 :host { 1441 font: var(--media-font, 1442 var(--media-font-weight, normal) 1443 var(--media-font-size, 14px) / 1444 var(--media-text-content-height, var(--media-control-height, 24px)) 1445 var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif)); 1446 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 1447 --_menu-bg: rgb(20 20 30 / .8); 1448 background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, var(--_menu-bg)))); 1449 border-radius: var(--media-menu-border-radius); 1450 border: var(--media-menu-border, none); 1451 display: var(--media-menu-display, inline-flex) !important; 1452 1453 transition: var(--media-menu-transition-in, 1454 visibility 0s, 1455 opacity .2s ease-out, 1456 transform .15s ease-out, 1457 left .2s ease-in-out, 1458 min-width .2s ease-in-out, 1459 min-height .2s ease-in-out 1460 ) !important; 1461 1462 visibility: var(--media-menu-visibility, visible); 1463 opacity: var(--media-menu-opacity, 1); 1464 max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px)); 1465 transform: var(--media-menu-transform-in, translateY(0) scale(1)); 1466 flex-direction: column; 1467 1468 min-height: 0; 1469 position: relative; 1470 bottom: var(--_menu-bottom); 1471 box-sizing: border-box; 1472 } 1473 1474 @-moz-document url-prefix() { 1475 :host{ 1476 --_menu-bg: rgb(20 20 30); 1477 } 1478 } 1479 1480 :host([hidden]) { 1481 transition: var(--media-menu-transition-out, 1482 visibility .15s ease-in, 1483 opacity .15s ease-in, 1484 transform .15s ease-in 1485 ) !important; 1486 visibility: var(--media-menu-hidden-visibility, hidden); 1487 opacity: var(--media-menu-hidden-opacity, 0); 1488 max-height: var(--media-menu-hidden-max-height, 1489 var(--media-menu-max-height, var(--_menu-max-height, 300px))); 1490 transform: var(--media-menu-transform-out, translateY(2px) scale(.99)); 1491 pointer-events: none; 1492 } 1493 1494 :host([slot="submenu"]) { 1495 background: none; 1496 width: 100%; 1497 min-height: 100%; 1498 position: absolute; 1499 bottom: 0; 1500 right: -100%; 1501 } 1502 1503 #container { 1504 display: flex; 1505 flex-direction: column; 1506 min-height: 0; 1507 transition: transform .2s ease-out; 1508 transform: translate(0, 0); 1509 } 1510 1511 #container.has-expanded { 1512 transition: transform .2s ease-in; 1513 transform: translate(-100%, 0); 1514 } 1515 1516 button { 1517 background: none; 1518 color: inherit; 1519 border: none; 1520 padding: 0; 1521 font: inherit; 1522 outline: inherit; 1523 display: inline-flex; 1524 align-items: center; 1525 } 1526 1527 slot[name="header"][hidden] { 1528 display: none; 1529 } 1530 1531 slot[name="header"] > *, 1532 slot[name="header"]::slotted(*) { 1533 padding: .4em .7em; 1534 border-bottom: 1px solid rgb(255 255 255 / .25); 1535 cursor: var(--media-cursor, default); 1536 } 1537 1538 slot[name="header"] > button[part~="back"], 1539 slot[name="header"]::slotted(button[part~="back"]) { 1540 cursor: var(--media-cursor, pointer); 1541 } 1542 1543 svg[part~="back"] { 1544 height: var(--media-menu-icon-height, var(--media-control-height, 24px)); 1545 fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))); 1546 display: block; 1547 margin-right: .5ch; 1548 } 1549 1550 slot:not([name]) { 1551 gap: var(--media-menu-gap); 1552 flex-direction: var(--media-menu-flex-direction, column); 1553 overflow: var(--media-menu-overflow, hidden auto); 1554 display: flex; 1555 min-height: 0; 1556 } 1557 1558 :host([role="menu"]) slot:not([name]) { 1559 padding-block: .4em; 1560 } 1561 1562 slot:not([name])::slotted([role="menu"]) { 1563 background: none; 1564 } 1565 1566 media-chrome-menu-item > span { 1567 margin-right: .5ch; 1568 max-width: var(--media-menu-item-max-width); 1569 text-overflow: ellipsis; 1570 overflow: hidden; 1571 } 1572 </style> 1573 <style id="layout-row" media="width:0"> 1574 1575 slot[name="header"] > *, 1576 slot[name="header"]::slotted(*) { 1577 padding: .4em .5em; 1578 } 1579 1580 slot:not([name]) { 1581 gap: var(--media-menu-gap, .25em); 1582 flex-direction: var(--media-menu-flex-direction, row); 1583 padding-inline: .5em; 1584 } 1585 1586 media-chrome-menu-item { 1587 padding: .3em .5em; 1588 } 1589 1590 media-chrome-menu-item[aria-checked="true"] { 1591 background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2)); 1592 } 1593 1594 1595 media-chrome-menu-item::part(checked-indicator) { 1596 display: var(--media-menu-item-checked-indicator-display, none); 1597 } 1598 </style> 1599 <div id="container" part="container"> 1600 <slot name="header" hidden> 1601 <button part="back button" aria-label="Back to previous menu"> 1602 <slot name="back-icon"> 1603 <svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator"> 1604 <path d="m11.88 17.585.742-.669-4.2-4.665 4.2-4.666-.743-.669-4.803 5.335 4.803 5.334Z"/> 1605 </svg> 1606 </slot> 1607 <slot name="title"></slot> 1608 </button> 1609 </slot> 1610 <slot></slot> 1611 </div> 1612 <slot name="checked-indicator" hidden></slot> 1613 `},a8.customElements.get("media-chrome-menu")||a8.customElements.define("media-chrome-menu",lc);var lv=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lE=(e,t,i)=>(lv(e,t,"read from private field"),i?i.call(e):t.get(e)),lb=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lg=(e,t,i,a)=>(lv(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lf=(e,t,i)=>(lv(e,t,"access private method"),i),lA={TYPE:"type",VALUE:"value",CHECKED:"checked",DISABLED:"disabled"},lT=class extends a8.HTMLElement{constructor(){if(super(),lb(this,iV),lb(this,iF),lb(this,iK),lb(this,ij),lb(this,iW,!1),lb(this,iB,void 0),lb(this,iZ,()=>{var e,t;this.submenuElement.items&&this.setAttribute("submenusize",`${this.submenuElement.items.length}`);let i=this.shadowRoot.querySelector('slot[name="description"]'),a=null==(e=this.submenuElement.checkedItems)?void 0:e[0],s=null!=(t=null==a?void 0:a.dataset.description)?t:null==a?void 0:a.text,r=a6.createElement("span");r.textContent=null!=s?s:"",i.replaceChildren(r)}),lb(this,iY,e=>{let{key:t}=e;if(!this.keysUsed.includes(t))return void this.removeEventListener("keyup",lE(this,iY));this.handleClick(e)}),lb(this,iQ,e=>{let{metaKey:t,altKey:i,key:a}=e;if(t||i||!this.keysUsed.includes(a))return void this.removeEventListener("keyup",lE(this,iY));this.addEventListener("keyup",lE(this,iY),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=ss(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[lA.TYPE,lA.DISABLED,lA.CHECKED,lA.VALUE]}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),lk(this)&&!this.hasAttribute("aria-checked")&&this.setAttribute("aria-checked","fal
1613se"),this.addEventListener("click",this),this.addEventListener("keydown",this)}disable(){this.removeAttribute("tabindex"),this.removeEventListener("click",this),this.removeEventListener("keydown",this),this.removeEventListener("keyup",this)}handleEvent(e){switch(e.type){case"slotchange":lf(this,iV,i$).call(this,e);break;case"click":this.handleClick(e);break;case"keydown":lE(this,iQ).call(this,e);break;case"keyup":lE(this,iY).call(this,e)}}attributeChangedCallback(e,t,i){e===lA.CHECKED&&lk(this)&&!lE(this,iW)?this.setAttribute("aria-checked",null!=i?"true":"false"):e===lA.TYPE&&i!==t?this.role="menuitem"+i:e===lA.DISABLED&&i!==t&&(null==i?this.enable():this.disable())}connectedCallback(){this.hasAttribute(lA.DISABLED)||this.enable(),this.role="menuitem"+this.type,lg(this,iB,function e(t,i){if(!t)return null;let{host:a}=t.getRootNode();return!i&&a?e(t,a):(null==i?void 0:i.items)?i:e(i,null==i?void 0:i.parentNode)}(this,this.parentNode)),lf(this,ij,iz).call(this),this.submenuElement&&lf(this,iF,iG).call(this),this.shadowRoot.addEventListener("slotchange",this)}disconnectedCallback(){this.disable(),lf(this,ij,iz).call(this),lg(this,iB,null),this.shadowRoot.removeEventListener("slotchange",this)}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?null==(e=sc(this))?void 0:e.querySelector(`#${this.invokeTarget}`):this.submenuElement}get submenuElement(){return this.shadowRoot.querySelector('slot[name="submenu"]').assignedElements({flatten:!0})[0]}get type(){var e;return null!=(e=this.getAttribute(lA.TYPE))?e:""}set type(e){this.setAttribute(lA.TYPE,`${e}`)}get value(){var e;return null!=(e=this.getAttribute(lA.VALUE))?e:this.text}set value(e){this.setAttribute(lA.VALUE,e)}get text(){var e;return(null!=(e=this.textContent)?e:"").trim()}get checked(){if(lk(this))return"true"===this.getAttribute("aria-checked")}set checked(e){lk(this)&&(lg(this,iW,!0),this.setAttribute("aria-checked",e?"true":"false"),e?this.part.add("checked"):this.part.remove("checked"))}handleClick(e){!lk(this)&&this.invokeTargetElement&&sd(this,e.target)&&this.invokeTargetElement.dispatchEvent(new li({relatedTarget:this}))}get keysUsed(){return["Enter"," "]}};function lk(e){return"radio"===e.type||"checkbox"===e.type}iW=new WeakMap,iB=new WeakMap,iV=new WeakSet,i$=function(e){let t=e.target;if(!(null==t?void 0:t.name))for(let e of t.assignedNodes({flatten:!0}))e instanceof Text&&""===e.textContent.trim()&&e.remove();"submenu"===t.name&&(this.submenuElement?lf(this,iF,iG).call(this):lf(this,iK,iq).call(this))},iF=new WeakSet,iG=async function(){this.setAttribute("aria-haspopup","menu"),this.setAttribute("aria-expanded",`${!this.submenuElement.hidden}`),this.submenuElement.addEventListener("change",lE(this,iZ)),this.submenuElement.addEventListener("addmenuitem",lE(this,iZ)),this.submenuElement.addEventListener("removemenuitem",lE(this,iZ)),lE(this,iZ).call(this)},iK=new WeakSet,iq=function(){this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.submenuElement.removeEventListener("change",lE(this,iZ)),this.submenuElement.removeEventListener("addmenuitem",lE(this,iZ)),this.submenuElement.removeEventListener("removemenuitem",lE(this,iZ)),lE(this,iZ).call(this)},iZ=new WeakMap,iY=new WeakMap,iQ=new WeakMap,ij=new WeakSet,iz=function(){var e;let t=null==(e=lE(this,iB))?void 0:e.radioGroupItems;if(!t)return;let i=t.filter(e=>"true"===e.getAttribute("aria-checked")).pop();for(let e of(i||(i=t[0]),t))e.setAttribute("aria-checked","false");null==i||i.setAttribute("aria-checked","true")},lT.shadowRootOptions={mode:"open"},lT.getTemplateHTML=function(e){return` 1614 <style> 1615 :host { 1616 transition: var(--media-menu-item-transition, 1617 background .15s linear, 1618 opacity .2s ease-in-out 1619 ); 1620 outline: var(--media-menu-item-outline, 0); 1621 outline-offset: var(--media-menu-item-outline-offset, -1px); 1622 cursor: var(--media-cursor, pointer); 1623 display: flex; 1624 align-items: center; 1625 align-self: stretch; 1626 justify-self: stretch; 1627 white-space: nowrap; 1628 white-space-collapse: collapse; 1629 text-wrap: nowrap; 1630 padding: .4em .8em .4em 1em; 1631 } 1632 1633 :host(:focus-visible) { 1634 box-shadow: var(--media-menu-item-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9)); 1635 outline: var(--media-menu-item-hover-outline, 0); 1636 outline-offset: var(--media-menu-item-hover-outline-offset, var(--media-menu-item-outline-offset, -1px)); 1637 } 1638 1639 :host(:hover) { 1640 cursor: var(--media-cursor, pointer); 1641 background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5)); 1642 outline: var(--media-menu-item-hover-outline); 1643 outline-offset: var(--media-menu-item-hover-outline-offset, var(--media-menu-item-outline-offset, -1px)); 1644 } 1645 1646 :host([aria-checked="true"]) { 1647 background: var(--media-menu-item-checked-background); 1648 } 1649 1650 :host([hidden]) { 1651 display: none; 1652 } 1653 1654 :host([disabled]) { 1655 pointer-events: none; 1656 color: rgba(255, 255, 255, .3); 1657 } 1658 1659 slot:not([name]) { 1660 width: 100%; 1661 } 1662 1663 slot:not([name="submenu"]) { 1664 display: inline-flex; 1665 align-items: center; 1666 transition: inherit; 1667 opacity: var(--media-menu-item-opacity, 1); 1668 } 1669 1670 slot[name="description"] { 1671 justify-content: end; 1672 } 1673 1674 slot[name="description"] > span { 1675 display: inline-block; 1676 margin-inline: 1em .2em; 1677 max-width: var(--media-menu-item-description-max-width, 100px); 1678 text-overflow: ellipsis; 1679 overflow: hidden; 1680 font-size: .8em; 1681 font-weight: 400; 1682 text-align: right; 1683 position: relative; 1684 top: .04em; 1685 } 1686 1687 slot[name="checked-indicator"] { 1688 display: none; 1689 } 1690 1691 :host(:is([role="menuitemradio"],[role="menuitemcheckbox"])) slot[name="checked-indicator"] { 1692 display: var(--media-menu-item-checked-indicator-display, inline-block); 1693 } 1694 1695 1696 svg, img, ::slotted(svg), ::slotted(img) { 1697 height: var(--media-menu-item-icon-height, var(--media-control-height, 24px)); 1698 fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))); 1699 display: block; 1700 } 1701 1702 1703 [part~="indicator"], 1704 ::slotted([part~="indicator"]) { 1705 fill: var(--media-menu-item-indicator-fill, 1706 var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)))); 1707 height: var(--media-menu-item-indicator-height, 1.25em); 1708 margin-right: .5ch; 1709 } 1710 1711 [part~="checked-indicator"] { 1712 visibility: hidden; 1713 } 1714 1715 :host([aria-checked="true"]) [part~="checked-indicator"] { 1716 visibility: visible; 1717 } 1718 </style> 1719 <slot name="checked-indicator"> 1720 <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator"> 1721 <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/> 1722 </svg> 1723 </slot> 1724 <slot name="prefix"></slot> 1725 <slot></slot> 1726 <slot name="description"></slot> 1727 <slot name="suffix">
1728 ${this.getSuffixSlotInnerHTML(e)} 1729 </slot> 1730 <slot name="submenu"></slot> 1731 `},lT.getSuffixSlotInnerHTML=function(e){return""},a8.customElements.get("media-chrome-menu-item")||a8.customElements.define("media-chrome-menu-item",lT);var l_=class extends lc{get anchorElement(){return"auto"!==this.anchor?super.anchorElement:sr(this).querySelector("media-settings-menu-button")}};l_.getTemplateHTML=function(e){return` 1732 ${lc.getTemplateHTML(e)} 1733 <style> 1734 :host { 1735 --_menu-bg: rgb(20 20 30 / .8); 1736 background: var(--media-settings-menu-background, 1737 var(--media-menu-background, 1738 var(--media-control-background, 1739 var(--media-secondary-color, var(--_menu-bg))))); 1740 min-width: var(--media-settings-menu-min-width, 170px); 1741 border-radius: 2px 2px 0 0; 1742 overflow: hidden; 1743 } 1744 1745 @-moz-document url-prefix() { 1746 :host{ 1747 --_menu-bg: rgb(20 20 30); 1748 } 1749 } 1750 1751 :host([role="menu"]) { 1752 1753 justify-content: end; 1754 } 1755 1756 slot:not([name]) { 1757 justify-content: var(--media-settings-menu-justify-content); 1758 flex-direction: var(--media-settings-menu-flex-direction, column); 1759 overflow: visible; 1760 } 1761 1762 #container.has-expanded { 1763 --media-settings-menu-item-opacity: 0; 1764 } 1765 </style> 1766 `},a8.customElements.get("media-settings-menu")||a8.customElements.define("media-settings-menu",l_);var lw=class extends lT{};lw.shadowRootOptions={mode:"open"},lw.getTemplateHTML=function(e){return` 1767 ${lT.getTemplateHTML.call(this,e)} 1768 <style> 1769 slot:not([name="submenu"]) { 1770 opacity: var(--media-settings-menu-item-opacity, var(--media-menu-item-opacity)); 1771 } 1772 1773 :host([aria-expanded="true"]:hover) { 1774 background: transparent; 1775 } 1776 </style> 1777 `},lw.getSuffixSlotInnerHTML=function(e){return` 1778 <svg aria-hidden="true" viewBox="0 0 20 24"> 1779 <path d="m8.12 17.585-.742-.669 4.2-4.665-4.2-4.666.743-.669 4.803 5.335-4.803 5.334Z"/> 1780 </svg> 1781 `},a8.customElements.get("media-settings-menu-item")||a8.customElements.define("media-settings-menu-item",lw);var lI=class extends rN{connectedCallback(){super.connectedCallback(),this.invokeTargetElement&&this.setAttribute("aria-haspopup","menu")}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?null==(e=sc(this))?void 0:e.querySelector(`#${this.invokeTarget}`):null}handleClick(){var e;null==(e=this.invokeTargetElement)||e.dispatchEvent(new li({relatedTarget:this}))}};a8.customElements.get("media-chrome-menu-button")||a8.customElements.define("media-chrome-menu-button",lI);var ly=class extends lI{static get observedAttributes(){return[...super.observedAttributes,"target"]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",aj("settings"))}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:sr(this).querySelector("media-settings-menu")}};ly.getSlotTemplateHTML=function(){return` 1782 <style> 1783 :host([aria-expanded="true"]) slot[name=tooltip] { 1784 display: none; 1785 } 1786 </style> 1787 <slot name="icon"> 1788 <svg aria-hidden="true" viewBox="0 0 24 24"> 1789 <path d="M4.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/> 1790 </svg> 1791 </slot> 1792 `},ly.getTooltipContentHTML=function(){return aj("Settings")},a8.customElements.get("media-settings-menu-button")||a8.customElements.define("media-settings-menu-button",ly);var lS=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lL=(e,t,i)=>(lS(e,t,"read from private field"),i?i.call(e):t.get(e)),lM=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lD=(e,t,i,a)=>(lS(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lR=(e,t,i)=>(lS(e,t,"access private method"),i),lC=class extends lc{constructor(){super(...arguments),lM(this,i0),lM(this,i2),lM(this,iX,[]),lM(this,iJ,void 0)}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_AUDIO_TRACK_LIST,aC.MEDIA_AUDIO_TRACK_ENABLED,aC.MEDIA_AUDIO_TRACK_UNAVAILABLE]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===aC.MEDIA_AUDIO_TRACK_ENABLED&&t!==i)this.value=i;else if(e===aC.MEDIA_AUDIO_TRACK_LIST&&t!==i){var a;lD(this,iX,null==(a=null!=i?i:"")?void 0:a.split(/\s+/).map(aG)),lR(this,i0,i1).call(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",lR(this,i2,i5))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",lR(this,i2,i5))}get anchorElement(){var e;return"auto"!==this.anchor?super.anchorElement:null==(e=sr(this))?void 0:e.querySelector("media-audio-track-menu-button")}get mediaAudioTrackList(){return lL(this,iX)}set mediaAudioTrackList(e){lD(this,iX,e),lR(this,i0,i1).call(this)}get mediaAudioTrackEnabled(){var e;return null!=(e=sA(this,aC.MEDIA_AUDIO_TRACK_ENABLED))?e:""}set mediaAudioTrackEnabled(e){sT(this,aC.MEDIA_AUDIO_TRACK_ENABLED,e)}};iX=new WeakMap,iJ=new WeakMap,i0=new WeakSet,i1=function(){if(lL(this,iJ)===JSON.stringify(this.mediaAudioTrackList))return;lD(this,iJ,JSON.stringify(this.mediaAudioTrackList));let e=this.mediaAudioTrackList;for(let t of(this.defaultSlot.textContent="",e.sort((e,t)=>
1792e.id.localeCompare(t.id,void 0,{numeric:!0})),e)){let e=ld({type:"radio",text:this.formatMenuItemText(t.label,t),value:`${t.id}`,checked:t.enabled});e.prepend(lh(this,"checked-indicator")),this.defaultSlot.append(e)}},i2=new WeakSet,i5=function(){if(null==this.value)return;let e=new a8.CustomEvent(aL.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},a8.customElements.get("media-audio-track-menu")||a8.customElements.define("media-audio-track-menu",lC);var lx=`<svg aria-hidden="true" viewBox="0 0 24 24"> 1793 <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/> 1794 <path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/> 1795</svg>`,lO=e=>{let t=aj("Audio");e.setAttribute("aria-label",t)},lN=class extends lI{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_AUDIO_TRACK_ENABLED,aC.MEDIA_AUDIO_TRACK_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),lO(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_LANG&&lO(this)}get invokeTargetElement(){var e;return void 0!=this.invokeTarget?super.invokeTargetElement:null==(e=sr(this))?void 0:e.querySelector("media-audio-track-menu")}get mediaAudioTrackEnabled(){var e;return null!=(e=sA(this,aC.MEDIA_AUDIO_TRACK_ENABLED))?e:""}set mediaAudioTrackEnabled(e){sT(this,aC.MEDIA_AUDIO_TRACK_ENABLED,e)}};lN.getSlotTemplateHTML=function(){return` 1796 <style> 1797 :host([aria-expanded="true"]) slot[name=tooltip] { 1798 display: none; 1799 } 1800 </style> 1801 <slot name="icon">${lx}</slot> 1802 `},lN.getTooltipContentHTML=function(){return aj("Audio")},a8.customElements.get("media-audio-track-menu-button")||a8.customElements.define("media-audio-track-menu-button",lN);var lU=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lP=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lH=(e,t,i)=>(lU(e,t,"access private method"),i),lW=` 1803 <svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator"> 1804 <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 0 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"/> 1805 </svg>`,lB=class extends lc{constructor(){super(...arguments),lP(this,i4),lP(this,i8),lP(this,i3,void 0)}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_SUBTITLES_LIST,aC.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_SUBTITLES_LIST&&t!==i?lH(this,i4,i7).call(this):e===aC.MEDIA_SUBTITLES_SHOWING&&t!==i&&(this.value=i||"",lH(this,i4,i7).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",lH(this,i8,i6))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",lH(this,i8,i6))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:sr(this).querySelector("media-captions-menu-button")}get mediaSubtitlesList(){return lV(this,aC.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){l$(this,aC.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return lV(this,aC.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){l$(this,aC.MEDIA_SUBTITLES_SHOWING,e)}};i3=new WeakMap,i4=new WeakSet,i7=function(){var e,t,i,a,s,r;let n=(lU(this,t=i3,"read from private field"),(i?i.call(this):t.get(this))!==JSON.stringify(this.mediaSubtitlesList)),o=this.value!==this.getAttribute(aC.MEDIA_SUBTITLES_SHOWING);if(!n&&!o)return;a=i3,s=JSON.stringify(this.mediaSubtitlesList),lU(this,a,"write to private field"),r?r.call(this,s):a.set(this,s),this.defaultSlot.textContent="";let l=!this.value,d=ld({type:"radio",text:this.formatMenuItemText(aj("Off")),value:"off",checked:l});for(let t of(d.prepend(lh(this,"checked-indicator")),this.defaultSlot.append(d),this.mediaSubtitlesList)){let i=ld({type:"radio",text:this.formatMenuItemText(t.label,t),value:sF(t),checked:this.value==sF(t)});i.prepend(lh(this,"checked-indicator")),"captions"===(null!=(e=t.kind)?e:"subs")&&i.append(lh(this,"captions-indicator")),this.defaultSlot.append(i)}},i8=new WeakSet,i6=function(){let e=this.mediaSubtitlesShowing,t=this.getAttribute(aC.MEDIA_SUBTITLES_SHOWING),i=this.value!==t;if((null==e?void 0:e.length)&&i&&this.dispatchEvent(new a8.CustomEvent(aL.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:e})),!this.value||!i)return;let a=new a8.CustomEvent(aL.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(a)},lB.getTemplateHTML=function(e){return` 1806 ${lc.getTemplateHTML(e)} 1807 <slot name="captions-indicator" hidden>${lW}</slot> 1808 `};var lV=(e,t)=>{let i=e.getAttribute(t);return i?sV(i):[]},l$=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let a=sG(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};a8.customElements.get("media-captions-menu")||a8.customElements.define("media-captions-menu",lB);var lF=`<svg aria-hidden="true" viewBox="0 0 26 24"> 1809 <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
18090 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"/> 1810</svg>`,lG=`<svg aria-hidden="true" viewBox="0 0 26 24"> 1811 <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"/> 1812</svg>`,lK=e=>{e.setAttribute("data-captions-enabled",sY(e).toString())},lq=e=>{e.setAttribute("aria-label",aj("closed captions"))},lZ=class extends lI{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_SUBTITLES_LIST,aC.MEDIA_SUBTITLES_SHOWING,aC.MEDIA_LA
1812NG]}connectedCallback(){super.connectedCallback(),lq(this),lK(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_SUBTITLES_SHOWING?lK(this):e===aC.MEDIA_LANG&&lq(this)}get invokeTargetElement(){var e;return void 0!=this.invokeTarget?super.invokeTargetElement:null==(e=sr(this))?void 0:e.querySelector("media-captions-menu")}get mediaSubtitlesList(){return lY(this,aC.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){lQ(this,aC.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return lY(this,aC.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){lQ(this,aC.MEDIA_SUBTITLES_SHOWING,e)}};lZ.getSlotTemplateHTML=function(){return` 1813 <style> 1814 :host([data-captions-enabled="true"]) slot[name=off] { 1815 display: none !important; 1816 } 1817 1818 1819 :host(:not([data-captions-enabled="true"])) slot[name=on] { 1820 display: none !important; 1821 } 1822 1823 :host([aria-expanded="true"]) slot[name=tooltip] { 1824 display: none; 1825 } 1826 </style> 1827 1828 <slot name="icon"> 1829 <slot name="on">${lF}</slot> 1830 <slot name="off">${lG}</slot> 1831 </slot> 1832 `},lZ.getTooltipContentHTML=function(){return aj("Captions")};var lY=(e,t)=>{let i=e.getAttribute(t);return i?sV(i):[]},lQ=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let a=sG(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};a8.customElements.get("media-captions-menu-button")||a8.customElements.define("media-captions-menu-button",lZ);var lj=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lz=(e,t,i)=>(lj(e,t,"read from private field"),i?i.call(e):t.get(e)),lX=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lJ=(e,t,i)=>(lj(e,t,"access private method"),i),l0={RATES:"rates"},l1=class extends lc{constructor(){super(),lX(this,ae),lX(this,ai),lX(this,i9,new sW(this,l0.RATES,{defaultValue:nK})),lJ(this,ae,at).call(this)}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_PLAYBACK_RATE,l0.RATES]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===aC.MEDIA_PLAYBACK_RATE&&t!=i?(this.value=i,lJ(this,ae,at).call(this)):e===l0.RATES&&t!=i&&(lz(this,i9).value=i,lJ(this,ae,at).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",lJ(this,ai,aa))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",lJ(this,ai,aa))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:sr(this).querySelector("media-playback-rate-menu-button")}get rates(){return lz(this,i9)}set rates(e){e?Array.isArray(e)?lz(this,i9).value=e.join(" "):"string"==typeof e&&(lz(this,i9).value=e):lz(this,i9).value="",lJ(this,ae,at).call(this)}get mediaPlaybackRate(){return sE(this,aC.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){sb(this,aC.MEDIA_PLAYBACK_RATE,e)}};i9=new WeakMap,ae=new WeakSet,at=function(){this.defaultSlot.textContent="";let e=this.mediaPlaybackRate,t=new Set(Array.from(lz(this,i9)).map(e=>Number(e)));for(let i of(e>0&&!t.has(e)&&t.add(e),Array.from(t).sort((e,t)=>e-t))){let t=ld({type:"radio",text:this.formatMenuItemText(`${i}x`,i),value:i.toString(),checked:e===i});t.prepend(lh(this,"checked-indicator")),this.defaultSlot.append(t)}},ai=new WeakSet,aa=function(){if(!this.value)return;let e=new a8.CustomEvent(aL.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},a8.customElements.get("media-playback-rate-menu")||a8.customElements.define("media-playback-rate-menu",l1);var l2=class extends lI{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_PLAYBACK_RATE]}constructor(){var e;super(),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${null!=(e=this.mediaPlaybackRate)?e:1}x`}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===aC.MEDIA_PLAYBACK_RATE){let e=i?+i:NaN,t=Number.isNaN(e)?1:e;this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",aj("Playback rate {playbackRate}",{playbackRate:t}))}}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:sr(this).querySelector("media-playback-rate-menu")}get mediaPlaybackRate(){return sE(this,aC.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){sb(this,aC.MEDIA_PLAYBACK_RATE,e)}};l2.getSlotTemplateHTML=function(e){return` 1833 <style> 1834 :host { 1835 min-width: 5ch; 1836 padding: var(--media-button-padding, var(--media-control-padding, 10px 5px)); 1837 } 1838 1839 :host([aria-expanded="true"]) slot { 1840 display: block; 1841 } 1842 1843 :host([aria-expanded="true"]) slot[name=tooltip] { 1844 display: none; 1845 } 1846 </style> 1847 <slot name="icon">${e.mediaplaybackrate||1}x</slot> 1848 `},l2.getTooltipContentHTML=function(){return aj("Playback rate")},a8.customElements.get("media-playback-rate-menu-button")||a8.customElements.define("media-playback-rate-menu-button",l2);var l5=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},l3=(e,t,i)=>(l5(e,t,"read from private field"),i?i.call(e):t.get(e)),l4=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},l7=(e,t,i,a)=>(l5(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),l8=(e,t,i)=>(l5(e,t,"access private method"),i),l6=class extends lc{constructor(){super(...arguments),l4(this,an),l4(this,al),l4(this,as,[]),l4(this,ar,{})}static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_RENDITION_LIST,aC.MEDIA_RENDITION_SELECTED,aC.MEDIA_RENDITION_UNAVAILABLE,aC.MEDIA_HEIGHT,aC.MEDIA_WIDTH]}static formatMenuItemText(e,t){return super.formatMenuItemText(e,t)}static formatRendition(e,{showBitrate:t=!1}={}){let i=`${Math.min(e.width,e.height)}p`;if(t&&e.bitrate){let t=e.bitrate/1e6,a=`${t.toFixed(+(t<1))} Mbps`;return`${i} (${a})`}return this.formatMenuItemText(i,e)}static compareRendition(e,t){var i,a;return t.height===e.height?(null!=(i=t.bitrate)?i:0)-(null!=(a=e.bitrate)?a:0):t.height-e.height}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),t!==i)switch(e){case aC.MEDIA_RENDITION_SELECTED:this.value=null!=i?i:"auto",l8(this,an,ao).call(this);break;case aC.MEDIA_RENDITION_LIST:l7(this,as,null==i?void 0:i.split(/\s+/).map(a$)),l8(this,an,ao).call(this);break;case aC.MEDIA_HEIGHT:case aC.MEDIA_WIDTH:l8(this,an,ao).call(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",l8(this,al,ad))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",l8(this,al,ad))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:sr(this).querySelector("media-rendition-menu-button")}get mediaRenditionList(){return l3(this,as)}set mediaRenditionList(e){l7(this,as,e),l8(this,an,ao).call(this)}get mediaRenditionSelected(){return sA(this,aC.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){sT(this,aC.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return sE(this,aC.MEDIA_HEIGHT)}set mediaHeight(e){sb(this,aC.MEDIA_HEIGHT,e)}get mediaWidth(){return sE(this,aC.MEDIA_WIDTH)}set mediaWidth(e){sb(this,aC.MEDIA_WIDTH,e)}compareRendition(e,t){return this.constructor.compareRendition(e,t)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}formatRendition(e,t){return this.constructor.formatRendition(e,t)}showRenditionBitrate(e){return this.mediaRenditionList.some(t=>t!==e&&t.height===e.height&&t.bitrate!==e.bitrate)}};as=new WeakMap,ar=new WeakMap,an=new WeakSet,ao=function(){let e,t=!this.mediaRenditionSelected;if(l3(this,ar).mediaRenditionList===JSON.stringify(this.mediaRenditionList)&&l3(this,ar).mediaHeight===this.mediaHeight&&l3(this,ar).mediaWidth===this.mediaWidth&&l3(this,ar).isAuto===t)return;l3(this,ar).mediaRenditionList=JSON.stringify(this.mediaRenditionList),l3(this,ar).mediaHeight=this.mediaHeight,l3(this,ar).mediaWidth=this.mediaWidth,l3(this,ar).isAuto=t;let i=this.mediaRenditionList.sort(this.compareRendition.bind(this)),a=i.find(e=>e.id===this.mediaRenditionSelected);for(let e of i)e.selected=e===a;for(let e of(this.defaultSlot.textContent="",i)){let i=ld({type:"radio",text:this.formatRendition(e,{showBitrate:this.showRenditionBitrate(e)}
1848),value:`${e.id}`,checked:e.selected&&!t});i.prepend(lh(this,"checked-indicator")),this.defaultSlot.append(i)}let s=a&&this.showRenditionBitrate(a);t&&(a?e=this.formatMenuItemText(`${aj("Auto")} \u2022 ${this.formatRendition(a,{showBitrate:s})}`,a):this.mediaHeight>0&&this.mediaWidth>0&&(e=this.formatMenuItemText(`${aj("Auto")} (${Math.min(this.mediaWidth,this.mediaHeight)}p)`))),e||(e=this.formatMenuItemText(aj("Auto")));let r=ld({type:"radio",text:e,value:"auto",checked:t});r.dataset.description=e,r.prepend(lh(this,"checked-indicator")),this.defaultSlot.append(r)},al=new WeakSet,ad=function(){if(null==this.value)return;let e=new a8.CustomEvent(aL.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},a8.customElements.get("media-rendition-menu")||a8.customElements.define("media-rendition-menu",l6);var l9=`<svg aria-hidden="true" viewBox="0 0 24 24"> 1849 <path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" /> 1850</svg>`,de=class extends lI{static get observedAttributes(){return[...super.observedAttributes,aC.MEDIA_RENDITION_SELECTED,aC.MEDIA_RENDITION_UNAVAILABLE,aC.MEDIA_HEIGHT]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",aj("quality"))}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:sr(this).querySelector("media-rendition-menu")}get mediaRenditionSelected(){return sA(this,aC.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){sT(this,aC.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return sE(this,aC.MEDIA_HEIGHT)}set mediaHeight(e){sb(this,aC.MEDIA_HEIGHT,e)}};de.getSlotTemplateHTML=function(){return` 1851 <style> 1852 :host([aria-expanded="true"]) slot[name=tooltip] { 1853 display: none; 1854 } 1855 </style> 1856 <slot name="icon">${l9}</slot> 1857 `},de.getTooltipContentHTML=function(){return aj("Quality")},a8.customElements.get("media-rendition-menu-button")||a8.customElements.define("media-rendition-menu-button",de);var dt=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},di=(e,t,i)=>(dt(e,t,"read from private field"),i?i.call(e):t.get(e)),da=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},ds=(e,t,i,a)=>(dt(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),dr=(e,t,i)=>(dt(e,t,"access private method"),i),dn=class extends lc{constructor(){super(),da(this,au),da(this,am),da(this,av),da(this,ab),da(this,aA),da(this,ah,!1),da(this,af,e=>{let t=e.target,i=(null==t?void 0:t.nodeName)==="VIDEO",a=dr(this,ab,ag).call(this,t);(i||a)&&(di(this,ah)?dr(this,am,ap).call(this):dr(this,aA,aT).call(this,e))}),da(this,ak,e=>{let t=e.target,i=this.contains(t),a=2===e.button,s=(null==t?void 0:t.nodeName)==="VIDEO",r=dr(this,ab,ag).call(this,t);!i&&(a&&(s||r)||dr(this,am,ap).call(this))}),da(this,a_,e=>{"Escape"===e.key&&dr(this,am,ap).call(this)}),da(this,aw,e=>{var t,i;let a=e.target;if(null==(t=a.matches)?void 0:t.call(a,'button[invoke="copy"]')){let e=null==(i=a.closest("media-context-menu-item"))?void 0:i.querySelector('input[slot="copy"]');e&&navigator.clipboard.writeText(e.value)}dr(this,am,ap).call(this)}),this.setAttribute("noautohide",""),dr(this,au,ac).call(this)}connectedCallback(){super.connectedCallback(),sr(this).addEventListener("contextmenu",di(this,af)),this.addEventListener("click",di(this,aw))}disconnectedCallback(){super.disconnectedCallback(),sr(this).removeEventListener("contextmenu",di(this,af)),this.removeEventListener("click",di(this,aw)),document.removeEventListener("mousedown",di(this,ak)),document.removeEventListener("keydown",di(this,a_))}};ah=new WeakMap,au=new WeakSet,ac=function(){this.hidden=!di(this,ah)},am=new WeakSet,ap=function(){ds(this,ah,!1),dr(this,au,ac).call(this)},av=new WeakSet,aE=function(){document.querySelectorAll("media-context-menu").forEach(e=>{e!==this&&dr(e,am,ap).call(e)})},ab=new WeakSet,ag=function(e){return!!e&&(!!e.hasAttribute("slot")&&"media"===e.getAttribute("slot")||!!(e.nodeName.includes("-")&&e.tagName.includes("-"))&&(e.hasAttribute("src")||e.hasAttribute("poster")||e.hasAttribute("preload")||e.hasAttribute("playsinline")))},af=new WeakMap,aA=new WeakSet,aT=function(e){e.preventDefault(),dr(this,av,aE).call(this),ds(this,ah,!0),this.style.position="fixed",this.style.left=`${e.clientX}px`,this.style.top=`${e.clientY}px`,dr(this,au,ac).call(this),document.addEventListener("mousedown",di(this,ak),{once:!0}),document.addEventListener("keydown",di(this,a_),{once:!0})},ak=new WeakMap,a_=new WeakMap,aw=new WeakMap,dn.getTemplateHTML=function(e){return` 1858 ${lc.getTemplateHTML(e)} 1859 <style> 1860 :host { 1861 --_menu-bg: rgb(20 20 30 / .8); 1862 background: var(--media-settings-menu-background, 1863 var(--media-menu-background, 1864 var(--media-control-background, 1865 var(--media-secondary-color, var(--_menu-bg))))); 1866 min-width: var(--media-settings-menu-min-width, 170px); 1867 border-radius: 2px; 1868 overflow: hidden; 1869 } 1870 </style> 1871 `},a8.customElements.get("media-context-menu")||a8.customElements.define("media-context-menu",dn);var dl=class extends lT{};dl.shadowRootOptions={mode:"open"},dl.getTemplateHTML=function(e){return` 1872 ${lT.getTemplateHTML.call(this,e)} 1873 <style> 1874 ::slotted(*) { 1875 color: var(--media-text-color, white); 1876 text-decoration: none; 1877 border: none; 1878 background: none; 1879 cursor: pointer; 1880 padding: 0; 1881 min-height: var(--media-control-height, 24px); 1882 } 1883 </style> 1884 `},a8.customElements.get("media-context-menu-item")||a8.customElements.define("media-context-menu-item",dl);var dd=null==(ay=null==(aI=a8.document)?void 0:aI.createElement)?void 0:ay.call(aI,"template");dd&&(dd.innerHTML=String.raw` 1885 <style> 1886 :host { 1887 --_primary-color: var(--media-primary-color, #fff); 1888 --_secondary-color: var(--media-secondary-color, rgb(0 0 0 / .75)); 1889 1890 --media-icon-color: var(--_primary-color); 1891 --media-range-thumb-background: var(--_primary-color); 1892 --media-range-bar-color: var(--_primary-color); 1893 --media-control-background: transparent; 1894 --media-control-hover-background: transparent; 1895 --media-range-track-border-radius: 3px; 1896 --media-time-range-buffered-color: rgba(255, 255, 255, 0.4); 1897 --media-range-track-background: rgba(255, 255, 255, 0.5); 1898 --media-range-thumb-opacity: 0;
1899 --media-preview-thumbnail-border-radius: 2px; 1900 --media-tooltip-display: none; 1901 1902 color: var(--_primary-color); 1903 } 1904 1905 @supports (color: color-mix(in srgb, red, blue)) { 1906 :host { 1907 --_secondary-color: color-mix(in srgb, var(--media-secondary-color, #000) 75%, transparent); 1908 } 1909 } 1910 1911 media-control-bar { 1912 --media-control-padding: 2px; 1913 background: var(--_secondary-color); 1914 align-items: center; 1915 height: 30px; 1916 border-radius: 4px; 1917 margin: 0 5px 5px; 1918 padding-inline: 2px; 1919 } 1920 1921 media-controller[breakpointsm] media-control-bar { 1922 --media-control-padding: 4px; 1923 height: 38px; 1924 border-radius: 8px; 1925 padding-inline: 5px; 1926 } 1927 1928 media-controller[breakpointmd] media-control-bar { 1929 height: 46px; 1930 margin: 0 8px 8px; 1931 } 1932 1933 media-controller[breakpointlg] media-control-bar, 1934 media-controller[breakpointxl] media-control-bar { 1935 padding-inline: 7px; 1936 } 1937 1938 .live-controls-left { 1939 margin-right: auto; 1940 } 1941 1942 media-time-range, 1943 media-live-button, 1944 media-time-display, 1945 media-text-display, 1946 media-playback-rate-button[role='button'] { 1947 color: inherit; 1948 } 1949 1950 [disabled]:not(media-live-button) { 1951 opacity: 60%; 1952 cursor: not-allowed; 1953 } 1954 1955 ${
vendor: 15,368 bytes, lines 1955-2208
1955""} 1956 media-seek-backward-button { 1957 display: var(--media-control-display, var(--media-seek-backward-button-display, none)); 1958 } 1959 1960 media-seek-forward-button { 1961 display: var(--media-control-display, var(--media-seek-forward-button-display, none)); 1962 } 1963 1964 media-pip-button { 1965 display: var(--media-control-display, var(--media-pip-button-display, none)); 1966 } 1967 </style> 1968 1969 <template partial="PlayButton"> 1970 <media-play-button part="play button" disabled="{{disabled}}" aria-disabled="{{disabled}}"> 1971 <svg aria-hidden="true" viewBox="0 0 24 24" slot="play"> 1972 <path d="m6.73 20.93 14.05-8.54a.46.46 0 0 0 0-.78L6.73 3.07a.48.48 0 0 0-.73.39v17.07a.48.48 0 0 0 .73.4Z" /> 1973 </svg> 1974 <svg aria-hidden="true" viewBox="0 0 24 24" slot="pause"> 1975 <path 1976 d="M6 19.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v15ZM14.5 4a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5h-3Z" 1977 /> 1978 </svg> 1979 </media-play-button> 1980 </template> 1981 1982 <template partial="MuteButton"> 1983 <media-mute-button part="mute button" disabled="{{disabled}}" aria-disabled="{{disabled}}"> 1984 <svg aria-hidden="true" viewBox="0 0 24 24" slot="high"> 1985 <path 1986 d="m11.14 4.86-4 4a.49.49 0 0 1-.35.14H3.25a.25.25 0 0 0-.25.25v5.5a.25.25 0 0 0 .25.25h3.54a.49.49 0 0 1 .36.15l4 4a.5.5 0 0 0 .85-.36V5.21a.5.5 0 0 0-.86-.35Zm2.74-1.56v1.52A7.52 7.52 0 0 1 19.47 12a7.52 7.52 0 0 1-5.59 7.18v1.52A9 9 0 0 0 21 12a9 9 0 0 0-7.12-8.7Zm3.56 8.7a5.49 5.49 0 0 0-3.56-5.1v1.66a3.93 3.93 0 0 1 0 6.88v1.66a5.49 5.49 0 0 0 3.56-5.1Z" 1987 /> 1988 </svg> 1989 <svg aria-hidden="true" viewBox="0 0 24 24" slot="medium"> 1990 <path 1991 d="m11.14 4.853-4 4a.49.49 0 0 1-.35.14H3.25a.25.25 0 0 0-.25.25v5.5a.25.25 0 0 0 .25.25h3.54a.49.49 0 0 1 .36.15l4 4a.5.5 0 0 0 .85-.36V5.203a.5.5 0 0 0-.86-.35Zm6.3 7.14a5.49 5.49 0 0 0-3.56-5.1v1.66a3.93 3.93 0 0 1 0 6.88v1.66a5.49 5.49 0 0 0 3.56-5.1Z" 1992 /> 1993 </svg> 1994 <svg aria-hidden="true" viewBox="0 0 24 24" slot="low"> 1995 <path 1996 d="m11.14 4.853-4 4a.49.49 0 0 1-.35.14H3.25a.25.25 0 0 0-.25.25v5.5a.25.25 0 0 0 .25.25h3.54a.49.49 0 0 1 .36.15l4 4a.5.5 0 0 0 .85-.36V5.203a.5.5 0 0 0-.86-.35Zm6.3 7.14a5.49 5.49 0 0 0-3.56-5.1v1.66a3.93 3.93 0 0 1 0 6.88v1.66a5.49 5.49 0 0 0 3.56-5.1Z" 1997 /> 1998 </svg> 1999 <svg aria-hidden="true" viewBox="0 0 24 24" slot="off"> 2000 <path 2001 d="m3 4.05 4.48 4.47-.33.33a.49.49 0 0 1-.36.15H3.25a.25.25 0 0 0-.25.25v5.5a.25.25 0 0 0 .25.25h3.54a.49.49 0 0 1 .36.15l4 4a.48.48 0 0 0 .36.15.5.5 0 0 0 .5-.5v-5.75l4.67 4.66a7.71 7.71 0 0 1-2.79 1.47v1.52a9.32 9.32 0 0 0 3.87-1.91L20 21l1-1L4.06 3 3 4.05Zm5.36 5.36 2.39 2.39V17L8 14.26a1.74 1.74 0 0 0-1.24-.51H4.25v-3.5h2.54A1.74 1.74 0 0 0 8 9.74l.36-.33ZM19.47 12a7.19 7.19 0 0 1-.89 3.47l1.11 1.1A8.64 8.64 0 0 0 21 12a9 9 0 0 0-7.12-8.7v1.52A7.52 7.52 0 0 1 19.47 12ZM12 8.88V5.21a.5.5 0 0 0-.5-.5.48.48 0 0 0-.36.15L9.56 6.44 12 8.88ZM15.91 12a4.284 4.284 0 0 1-.07.72l1.22 1.22a5.2 5.2 0 0 0 .38-1.94 5.49 5.49 0 0 0-3.56-5.1v1.66A4 4 0 0 1 15.91 12Z" 2002 /> 2003 </svg> 2004 </media-mute-button> 2005 </template> 2006 2007 <template partial="CaptionsButton"> 2008 <media-captions-button part="captions button" disabled="{{disabled}}" aria-disabled="{{disabled}}"> 2009 <svg aria-hidden="true" viewBox="0 0 26 24" slot="on"> 2010 <path 2011 d="M22.832 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.41 10.1a3.63 3.63 0 0 1-1.51.32 4.76 4.76 0 0 1-1.63-.27 4 4 0 0 1-1.28-.83 3.67 3.67 0 0 1-.84-1.26 4.23 4.23 0 0 1-.3-1.63 4.28 4.28 0 0 1 .3-1.64 3.53 3.53 0 0 1 .84-1.21 3.89 3.89 0 0 1 1.29-.8 4.76 4.76 0 0 1 1.63-.27 4.06 4.06 0 0 1 1.35.24c.225.091.44.205.64.34a2.7 2.7 0 0 1 .55.52l-1.27 1a1.79 1.79 0 0 0-.6-.46 2 2 0 0 0-.83-.16 2 2 0 0 0-1.56.69 2.35 2.35 0 0 0-.46.77 2.78 2.78 0 0 0-.16 1c-.009.34.046.68.16 1 .104.283.26.545.46.77.188.21.415.38.67.5a2 2 0 0 0 .84.18 1.87 1.87 0 0 0 .9-.21 1.78 1.78 0 0 0 .65-.6l1.38 1a2.88 2.88 0 0 1-1.22 1.01Zm7.52 0a3.63 3.63 0 0 1-1.51.32 4.76 4.76 0 0 1-1.63-.27 3.89 3.89 0 0 1-1.28-.83 3.55 3.55 0 0 1-.85-1.26 4.23 4.23 0 0 1-.3-1.63 4.28 4.28 0 0 1 .3-1.64 3.43 3.43 0 0 1 .85-1.25 3.75 3.75 0 0 1 1.28-.8 4.76 4.76 0 0 1 1.63-.27 4 4 0 0 1 1.35.24c.225.091.44.205.64.34.21.144.395.32.55.52l-1.27 1a1.79 1.79 0 0 0-.6-.46 2 2 0 0 0-.83-.16 2 2 0 0 0-1.56.69 2.352 2.352 0 0 0-.46.77 3.01 3.01 0 0 0-.16 1c-.003.34.05.678.16 1 .108.282.263.542.46.77.188.21.416.38.67.5a2 2 0 0 0 .84.18 1.87 1.87 0 0 0 .9-.21 1.78 1.78 0 0 0 .65-.6l1.38 1a2.82 2.82 0 0 1-1.21 1.05Z" 2012 /> 2013 </svg> 2014 <svg aria-hidden="true" viewBox="0 0 26 24" slot="off"> 2015 <path 2016 d="M22.832 5.68a2.58 2.58 0 0 0-2.3-2.5c-1.81-.12-4.67-.18-7.53-.18-2.86 0-5.72.06-7.53.18a2.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.5c1.81.12 4.67.18 7.53.18 2.86 0 5.72-.06 7.53-.18a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-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.137-.21-8.283 0-12.42a1.11 1.11 0 0 1 .91-1.11c1.67-.11 4.43-.18 7.43-.18s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.137.21 8.283 0 12.42ZM10.843 14a1.55 1.55 0 0 1-.76.18 1.57 1.57 0 0 1-.71-.18 1.69 1.69 0 0 1-.57-.42 2.099 2.099 0 0 1-.38-.58 2.47 2.47 0 0 1 0-1.64 2 2 0 0 1 .39-.66 1.73 1.73 0 0 1 .58-.42c.23-.103.479-.158.73-.16.241-.004.48.044.7.14.199.088.373.222.51.39l1.08-.89a2.179 2.179 0 0 0-.47-.44 2.81 2.81 0 0 0-.54-.32 2.91 2.91 0 0 0-.58-.15 2.71 2.71 0 0 0-.56 0 4.08 4.08 0 0 0-1.38.15 3.27 3.27 0 0 0-1.09.67 3.14 3.14 0 0 0-.71 1.06 3.62 3.62 0 0 0-.26 1.39 3.57 3.57 0 0 0 .26 1.38 3 3 0 0 0 .71 1.06c.316.293.687.52 1.09.67.443.16.91.238 1.38.23a3.2 3.2 0 0 0 1.28-.27c.401-.183.747-.47 1-.83l-1.17-.88a1.42 1.42 0 0 1-.53.52Zm6.62 0a1.58 1.58 0 0 1-.76.18 1.54 1.54 0 0 1-.7-.18 1.69 1.69 0 0 1-.57-.42 2.12 2.12 0 0 1-.43-.58 2.29 2.29 0 0 1 .39-2.3 1.84 1.84 0 0 1 1.32-.58c.241-.003.48.045.7.14.199.088.373.222.51.39l1.08-.92a2.43 2.43 0 0 0-.47-.44 3.22 3.22 0 0 0-.53-.29 2.999 2.999 0 0 0-.57-.15 2.87 2.87 0 0 0-.57 0 4.06 4.06 0 0 0-1.36.15 3.17 3.17 0 0 0-1.09.67 3 3 0 0 0-.72 1.06 3.62 3.62 0 0 0-.25 1.39 3.57 3.57 0 0 0 .25 1.38c.16.402.405.764.72 1.06a3.17 3.17 0 0 0 1.09.67c.44.16.904.237 1.37.23.441 0 .877-.092 1.28-.27a2.45 2.45 0 0 0 1-.83l-1.15-.85a1.49 1.49 0 0 1-.54.49Z" 2017 /> 2018 </svg> 2019 </media-captions-button> 2020 </template> 2021 2022 <template partial="FullscreenButton"> 2023 <media-fullscreen-button part="fullscreen button" disabled="{{disabled}}" aria-disabled="{{disabled}}"> 2024 <svg aria-hidden="true" viewBox="0 0 24 24" slot="enter"> 2025 <path 2026 d="M20.25 14.5a.76.76 0 0 0-.75.75v4.25h-4.25a.75.75 0 1 0 0 1.5h5a.76.76 0 0 0 .75-.75v-5a.76.76 0 0 0-.75-.75Zm0-11.5h-5a.76.76 0 0 0-.75.75.76.76 0 0 0 .75.75h4.25v4.25a.75.75 0 1 0 1.5 0v-5a.76.76 0 0 0-.75-.75ZM8.75 19.5H4.5v-4.25a.76.76 0 0 0-.75-.75.76.76 0 0 0-.75.75v5a.76.76 0 0 0 .75.75h5a.75.75 0 1 0 0-1.5Zm0-16.5h-5a.76.76 0 0 0-.75.75v5a.76.76 0 0 0 .75.75.76.76 0 0 0 .75-.75V4.5h4.25a.76.76 0 0 0 .75-.75.76.76 0 0 0-.75-.75Z" 2027 /> 2028 </svg> 2029 <svg aria-hidden="true" viewBox="0 0 24 24" slot="exit"> 2030 <path 2031 d="M20.25 14.5h-5a.76.76 0 0 0-.75.75v5a.75.75 0 1 0 1.5 0V16h4.25a.75.75 0 1 0 0-1.5Zm-5-5h5a.75.75 0 1 0 0-1.5H16V3.75a.75.75 0 1 0-1.5 0v5a.76.76 0 0 0 .75.75Zm-6.5 5h-5a.75.75 0 1 0 0 1.5H8v4.25a.75.75 0 1 0 1.5 0v-5a.76.76 0 0 0-.75-.75Zm0-11.5a.76.76 0 0 0-.75.75V8H3.75a.75.75 0 0 0 0 1.5h5a.76.76 0 0 0 .75-.75v-5A.76.76 0 0 0 8.75 3Z" 2032 /> 2033 </svg> 2034 </media-fullscreen-button> 2035 </template> 2036 2037 <template partial="LiveButton"> 2038 <media-live-button part="live seek-live button" disabled="{{disabled}}" aria-disabled="{{disabled}}"> 2039 <span slot="text" style="font-weight: normal">Live</span> 2040 <svg 2041 slot="indicator" 2042 width="8" 2043 height="8" 2044 viewBox="0 0 8 8" 2045 xmlns="http://www.w3.org/2000/svg" 2046 style="width: 8px; height: 8px; margin-right: 2px" 2047 > 2048 <rect width="8" height="8" rx="2" /> 2049 </svg> 2050 </media-live-button> 2051 </template> 2052 2053 <template partial="PipButton"> 2054 <media-pip-button part="pip button" disabled="{{disabled}}" aria-disabled="{{disabled}}"> 2055 <svg aria-hidden="true" viewBox="0 0 26 24" slot="enter"> 2056 <path 2057 d="M22 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h6.75v-1.25h-6.5V4.25h17.5v6.5H23V4a1 1 0 0 0-1-1Zm0 10h-8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1Zm-.5 6.5h-7v-5h7v5Z" 2058 /> 2059 </svg> 2060 <svg aria-hidden="true" viewBox="0 0 26 24" slot="exit"> 2061 <path 2062 d="M22 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h6.75v-1.25h-6.5V4.25h17.5v6.5H23V4a1 1 0 0 0-1-1Zm0 10h-8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1Zm-.5 6.5h-7v-5h7v5Z" 2063 /> 2064 </svg> 2065 </media-pip-button> 2066 </template> 2067 2068 <template partial="SeekBackwardButton"> 2069 <media-seek-backward-button 2070 seekoffset="{{backwardseekoffset ?? 10}}" 2071 part="seek-backward button" 2072 disabled="{{disabled}}" 2073 aria-disabled="{{disabled}}" 2074 > 2075 <svg aria-hidden="true" viewBox="0 0 22 24" slot="icon"> 2076 <path d="M11 6V3L5.37 7 11 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 11 6Z" /> 2077 <text class="value" transform="translate(2.5 21)" style="font-size: 8px; font-family: 'ArialMT', 'Arial'"> 2078 {{backwardseekoffset ?? 10}} 2079 </text> 2080 </svg> 2081 </media-seek-backward-button> 2082 </template> 2083 2084 <template partial="SeekForwardButton"> 2085 <media-seek-forward-button 2086 seekoffset="{{forwardseekoffset ?? 10}}" 2087 part="seek-forward button" 2088 disabled="{{disabled}}" 2089 aria-disabled="{{disabled}}" 2090 > 2091 <svg aria-hidden="true" viewBox="0 0 22 24" slot="icon"> 2092 <path d="M11 6V3l5.61 4L11 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 11 6Z" /> 2093 <text class="value" transform="translate(10 21)" style="font-size: 8px; font-family: 'ArialMT', 'Arial'"> 2094 {{forwardseekoffset ?? 10}} 2095 </text> 2096 </svg> 2097 </media-seek-forward-button> 2098 </template> 2099 2100 <template partial="AirplayButton"> 2101 <media-airplay-button part="airplay button" disabled="{{disabled}}" aria-disabled="{{disabled}}"> 2102 <svg aria-hidden="true" viewBox="0 0 26 24" slot="icon"> 2103 <path d="M13.19 14.22a.25.25 0 0 0-.38 0l-5.46 6.37a.25.25 0 0 0 .19.41h10.92a.25.25 0 0 0 .19-.41l-5.46-6.37Z" /> 2104 <path 2105 d="M22 3H4a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h2.94L8 16.75H4.25V4.25h17.5v12.5H18L19.06 18H22a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Z" 2106 /> 2107 </svg> 2108 </media-airplay-button> 2109 </template> 2110 2111 <template partial="CastButton"> 2112 <media-cast-button part="cast button" disabled="{{disabled}}" aria-disabled="{{disabled}}"> 2113 <svg aria-hidden="true" viewBox="0 0 26 24" slot="enter"> 2114 <path d="M3 15.5V17c2.206 0 4 1.794 4 4h1.5A5.5 5.5 0 0 0 3 15.5Zm0 3V21h2.5A2.5 2.5 0 0 0 3 18.5Z" /> 2115 <path d="M3 12.5V14c3.86 0 7 3.14 7 7h1.5A8.5 8.5 0 0 0 3 12.5Z" /> 2116 <path 2117 d="M22 3H4a1 1 0 0 0-1 1v6.984c.424 0 .84.035 1.25.086V4.25h17.5v15.5h-8.82c.051.41.086.826.086 1.25H22a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Z" 2118 /> 2119 </svg> 2120 <svg aria-hidden="true" viewBox="0 0 26 24" slot="exit"> 2121 <path d="M3 15.5V17c2.206 0 4 1.794 4 4h1.5A5.5 5.5 0 0 0 3 15.5Zm0 3V21h2.5A2.5 2.5 0 0 0 3 18.5Z" /> 2122 <path d="M3 12.5V14c3.86 0 7 3.14 7 7h1.5A8.5 8.5 0 0 0 3 12.5Z" /> 2123 <path 2124 d="M22 3H4a1 1 0 0 0-1 1v6.984c.424 0 .84.035 1.25.086V4.25h17.5v15.5h-8.82c.051.41.086.826.086 1.25H22a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Z" 2125 /> 2126 <path d="M20.5 5.5h-15v5.811c3.52.906 6.283 3.67 7.189 7.19H20.5V5.5Z" /> 2127 </svg> 2128 </media-cast-button> 2129 </template> 2130 2131 <template partial="TimeRange"> 2132 <media-time-range part="time range" disabled="{{disabled}}" aria-disabled="{{disabled}}"></media-time-range> 2133 </template> 2134 2135 <template partial="VolumeRange"> 2136 <media-volume-range part="volume range" disabled="{{disabled}}" aria-disabled="{{disabled}}"></media-volume-range> 2137 </template> 2138 2139 <media-controller 2140 defaultsubtitles="{{defaultsubtitles}}" 2141 defaultduration="{{defaultduration}}" 2142 gesturesdisabled="{{disabled}}" 2143 hotkeys="{{hotkeys}}" 2144 nohotkeys="{{nohotkeys}}" 2145 defaultstreamtype="on-demand" 2146 > 2147 <slot name="media" slot="media"></slot> 2148 <slot name="poster" slot="poster"></slot> 2149 <media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator> 2150 <media-error-dialog slot="dialog"></media-error-dialog> 2151 2152 <div slot="top-chrome"> 2153 <template if="videotitle"> 2154 <template if="videotitle != true"> 2155 <media-text-display part="top title display" class="title-display">{{videotitle}}</media-text-display> 2156 </template> 2157 </template> 2158 <template if="!videotitle"> 2159 <template if="title"> 2160 <media-text-display part="top title display" class="title-display">{{title}}</media-text-display> 2161 </template> 2162 </template> 2163 </div> 2164 2165 <template if="streamtype == 'on-demand'"> 2166 <template if="!breakpointsm"> 2167 <media-control-bar> 2168 {{>PlayButton}} {{>TimeRange}} {{>MuteButton}} {{>CaptionsButton}} {{>FullscreenButton}} 2169 </media-control-bar> 2170 </template> 2171 2172 <template if="breakpointsm"> 2173 <media-control-bar> 2174 {{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeRange}} 2175 <template if="breakpointmd"> 2176 <media-time-display></media-time-display> 2177 </template> 2178 {{>MuteButton}} {{>VolumeRange}} {{>CaptionsButton}} {{>AirplayButton}} {{>CastButton}} {{>PipButton}} 2179 {{>FullscreenButton}} 2180 </media-control-bar> 2181 </template> 2182 </template> 2183 2184 <template if="streamtype == 'live'"> 2185 <media-control-bar> 2186 <div class="live-controls-left"> 2187 {{>LiveButton}} 2188 <template if="!targetlivewindow"> 2189 <template if="breakpointsm"> 2190 <media-time-display></media-time-display> 2191 </template> 2192 </template> 2193 </div> 2194 <template if="targetlivewindow > 0"> 2195 <template if="breakpointsm">{{>TimeRange}}</template> 2196 </template> 2197 <div class="live-controls-right"> 2198 <template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template> 2199 {{>MuteButton}} {{>VolumeRange}} {{>CaptionsButton}} {{>AirplayButton}} {{>CastButton}} {{>PipButton}} 2200 {{>FullscreenButton}} 2201 </div> 2202 </media-control-bar> 2203 </template> 2204 2205 <slot></slot> 2206 </media-controller> 2207 2208 `
2208);var dh=class extends o9{};((e,t,i)=>((e,t,i)=>t in e?aS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i))(dh,"template",dd),a8.customElements&&!a8.customElements.get("media-theme-minimal")&&a8.customElements.define("media-theme-minimal",dh)}}]);
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.