"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7109],{59509:function(e,t,i){i.d(t,{zM:function(){return c}});let n=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],a=["autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"];function r(e){return`
    <style>
      :host {
        display: inline-flex;
        line-height: 0;
        flex-direction: column;
        justify-content: end;
      }

      audio {
        width: 100%;
      }
    </style>
    <slot name="media">
      <audio${d(e)}></audio>
    </slot>
    <slot></slot>
  `}function s(e){return`
    <style>
      :host {
        display: inline-block;
        line-height: 0;
      }

      video {
        max-width: 100%;
        max-height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: var(--media-object-fit, contain);
        object-position: var(--media-object-position, 50% 50%);
      }

      video::-webkit-media-text-track-container {
        transform: var(--media-webkit-text-track-transform);
        transition: var(--media-webkit-text-track-transition);
      }
    </style>
    <slot name="media">
      <video${d(e)}></video>
    </slot>
    <slot></slot>
  `}function o(e,{tag:t,is:i}){let o=globalThis.document?.createElement?.(t,{is:i}),d=o?function(e){let t=[];for(let i=Object.getPrototypeOf(e);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i)){let e=Object.getOwnPropertyNames(i);t.push(...e)}return t}(o):[];return class c extends e{static getTemplateHTML=t.endsWith("audio")?r:s;static shadowRootOptions={mode:"open"};static Events=n;static #e=!1;static get observedAttributes(){return c.#t(),[...o?.constructor?.observedAttributes??[],...a]}static #t(){if(this.#e)return;this.#e=!0;let e=new Set(this.observedAttributes);for(let t of(e.delete("muted"),d))if(!(t in this.prototype)){if("function"==typeof o[t])this.prototype[t]=function(...e){return this.#i(),(()=>{if(this.call)return this.call(t,...e);let i=this.nativeEl?.[t];return i?.apply(this.nativeEl,e)})()};else{let i={get(){this.#i();let i=t.toLowerCase();if(e.has(i)){let e=this.getAttribute(i);return null!==e&&(""===e||e)}return this.get?.(t)??this.nativeEl?.[t]}};t!==t.toUpperCase()&&(i.set=function(i){this.#i();let n=t.toLowerCase();if(e.has(n)){!0===i||!1===i||null==i?this.toggleAttribute(n,!!i):this.setAttribute(n,i);return}if(this.set){this.set(t,i);return}this.nativeEl&&(this.nativeEl[t]=i)}),Object.defineProperty(this.prototype,t,i)}}}#n=!1;#a=null;#r=new Map;#s;#o;get;set;call;get nativeEl(){return this.#i(),this.#a??this.querySelector(":scope > [slot=media]")??this.querySelector(t)??this.shadowRoot?.querySelector(t)??null}set nativeEl(e){this.#a=e}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",e)}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(e){this.setAttribute("preload",`${e}`)}#i(){this.#n||(this.#n=!0,this.init())}init(){if(!this.shadowRoot){this.attachShadow({mode:"open"});let e=function(e){let t={};for(let i of e)t[i.name]=i.value;return t}(this.attributes);i&&(e.is=i),t&&(e.part=t),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}for(let e of(this.nativeEl.muted=this.hasAttribute("muted"),d))this.#d(e);this.#c()}#c(){for(let e of(this.#s=new MutationObserver(this.#l.bind(this)),this.#o=()=>this.#h(),this.shadowRoot?.addEventListener("slotchange",this.#o),this.#h(),this.constructor.Events))this.shadowRoot?.addEventListener(e,this,!0)}handleEvent(e){e.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail}))}#h(){let e=new Map(this.#r),t=this.shadowRoot?.querySelector("slot:not([name])");(t?.assignedElements({flatten:!0}).filter(e=>["track","source"].includes(e.localName))).forEach(t=>{e.delete(t);let i=this.#r.get(t);i||(i=t.cloneNode(),this.#r.set(t,i),this.#s?.observe(t,{attributes:!0})),this.nativeEl?.append(i),this.#u(i)}),e.forEach((e,t)=>{e.remove(),this.#r.delete(t)})}#l(e){for(let t of e)if("attributes"===t.type){let{target:e,attributeName:i}=t,n=this.#r.get(e);n&&i&&(n.setAttribute(i,e.getAttribute(i)??""),this.#u(n))}}#u(e){e&&"track"===e.localName&&e.default&&("chapters"===e.kind||"metadata"===e.kind)&&"disabled"===e.track.mode&&(e.track.mode="hidden")}#d(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}attributeChangedCallback(e,t,i){this.#i(),this.#k(e,t,i)}#k(e,t,i){["id","class"].includes(e)||!c.observedAttributes.includes(e)&&this.constructor.observedAttributes.includes(e)||(null===i?this.nativeEl?.removeAttribute(e):this.nativeEl?.getAttribute(e)!==i&&this.nativeEl?.setAttribute(e,i))}connectedCallback(){this.#i(),this.#o||this.#c()}disconnectedCallback(){for(let e of(this.#s?.disconnect(),this.#s=void 0,this.#o&&(this.shadowRoot?.removeEventListener("slotchange",this.#o),this.#o=void 0),this.constructor.Events))this.shadowRoot?.removeEventListener(e,this,!0);this.#r.forEach(e=>e.remove()),this.#r.clear(),this.#a=null}}}function d(e){let t="";for(let i in e){if(!a.includes(i))continue;let n=e[i];""===n?t+=` ${i}`:t+=` ${i}="${n}"`}return t}let c=o(globalThis.HTMLElement??class{},{tag:"video"});o(globalThis.HTMLElement??class{},{tag:"audio"})},77220:function(e,t,i){i.d(t,{lK:function(){return w}});class n extends Event{track;constructor(e,t){super(e),this.track=t.track}}let a=new WeakMap;function r(e){var t;let i;return a.get(e)??(t={},(i=a.get(e))||a.set(e,i={}),Object.assign(i,t))}function s(e,t){let i=e.videoTracks;r(t).media=new WeakRef(e),r(t).renditionSet||(r(t).renditionSet=new Set);let a=r(i).trackSet;a.add(t);let s=a.size-1;s in d.prototype||Object.defineProperty(d.prototype,s,{get(){return[...r(this).trackSet][s]}}),queueMicrotask(()=>{i.dispatchEvent(new n("addtrack",{track:t}))})}function o(e){let t=r(e).media?.deref()?.videoTracks;t&&(r(t).trackSet.delete(e),queueMicrotask(()=>{t.dispatchEvent(new n("removetrack",{track:e}))}))}class d extends EventTarget{#v;#f;#g;constructor(){super(),r(this).trackSet=new Set}get #p(){return r(this).trackSet}[Symbol.iterator](){return this.#p.values()}get length(){return this.#p.size}getTrackById(e){return[...this.#p].find(t=>t.id===e)??null}get selectedIndex(){return[...this.#p].findIndex(e=>e.selected)}get onaddtrack(){return this.#v}set onaddtrack(e){this.#v&&(this.removeEventListener("addtrack",this.#v),this.#v=void 0),"function"==typeof e&&(this.#v=e,this.addEventListener("addtrack",e))}get onremovetrack(){return this.#f}set onremovetrack(e){this.#f&&(this.removeEventListener("removetrack",this.#f),this.#f=void 0),"function"==typeof e&&(this.#f=e,this.addEventListener("removetrack",e))}get onchange(){return this.#g}set onchange(e){this.#g&&(this.removeEventListener("change",this.#g),this.#g=void 0),"function"==typeof e&&(this.#g=e,this.addEventListener("change",e))}}class c extends Event{rendition;constructor(e,t){super(e),this.rendition=t.rendition}}function l(e){let t=r(e).media?.deref();return t?[...t.videoTracks].filter(e=>e.selected).flatMap(e=>[...r(e).renditionSet]):[]}class h extends EventTarget{#b;#m;#g;[Symbol.iterator](){return l(this).values()}get length(){return l(this).length}getRenditionById(e){return l(this).find(t=>`${t.id}`==`${e}`)??null}get selectedIndex(){return l(this).findIndex(e=>e.selected)}set selectedIndex(e){for(let[t,i]of l(this).entries())i.selected=t===e}get onaddrendition(){return this.#b}set onaddrendition(e){this.#b&&(this.removeEventListener("addrendition",this.#b),this.#b=void 0),"function"==typeof e&&(this.#b=e,this.addEventListener("addrendition",e))}get onremoverendition(){return this.#m}set onremoverendition(e){this.#m&&(this.removeEventListener("removerendition",this.#m),this.#m=void 0),"function"==typeof e&&(this.#m=e,this.addEventListener("removerendition",e))}get onchange(){return this.#g}set onchange(e){this.#g&&(this.removeEventListener("change",this.#g),this.#g=void 0),"function"==typeof e&&(this.#g=e,this.addEventListener("change",e))}}class u{src;id;width;height;bitrate;frameRate;codec;#E=!1;get selected(){return this.#E}set selected(e){this.#E!==e&&(this.#E=e,function(e){let t=r(e).media?.deref()?.videoRenditions;t&&!r(t).changeRequested&&(r(t).changeRequested=!0,queueMicrotask(()=>{delete r(t).changeRequested,r(e).track.selected&&t.dispatchEvent(new Event("change"))}))}(this))}}class k{id;kind;label="";language="";sourceBuffer;#E=!1;addRendition(e,t,i,n,a,s){let o=new u;return o.src=e,o.width=t,o.height=i,o.frameRate=s,o.bitrate=a,o.codec=n,!function(e,t){let i=r(e).media?.deref()?.videoRenditions;r(t).media=r(e).media,r(t).track=e;let n=r(e).renditionSet;n.add(t);let a=n.size-1;a in h.prototype||Object.defineProperty(h.prototype,a,{get(){return l(this)[a]}}),queueMicrotask(()=>{i&&e.selected&&i.dispatchEvent(new c("addrendition",{rendition:t}))})}(this,o),o}removeRendition(e){!function(e){let t=r(e).media?.deref()?.videoRenditions,i=r(e).track;r(i).renditionSet.delete(e),queueMicrotask(()=>{let i=r(e).track;t&&i.selected&&t.dispatchEvent(new c("removerendition",{rendition:e}))})}(e)}get selected(){return this.#E}set selected(e){this.#E!==e&&(this.#E=e,!0===e&&function(e){let t=r(e).media?.deref()?.videoTracks??[],i=!1;for(let n of t)n!==e&&(n.selected=!1,i=!0);if(i){if(r(t).changeRequested)return;r(t).changeRequested=!0,queueMicrotask(()=>{delete r(t).changeRequested,t.dispatchEvent(new Event("change"))})}}(this))}}function v(e){let t=r(e).media?.deref();return t?[...t.audioTracks].filter(e=>e.enabled).flatMap(e=>[...r(e).renditionSet]):[]}class f extends EventTarget{#b;#m;#g;[Symbol.iterator](){return v(this).values()}get length(){return v(this).length}getRenditionById(e){return v(this).find(t=>`${t.id}`==`${e}`)??null}get selectedIndex(){return v(this).findIndex(e=>e.selected)}set selectedIndex(e){for(let[t,i]of v(this).entries())i.selected=t===e}get onaddrendition(){return this.#b}set onaddrendition(e){this.#b&&(this.removeEventListener("addrendition",this.#b),this.#b=void 0),"function"==typeof e&&(this.#b=e,this.addEventListener("addrendition",e))}get onremoverendition(){return this.#m}set onremoverendition(e){this.#m&&(this.removeEventListener("removerendition",this.#m),this.#m=void 0),"function"==typeof e&&(this.#m=e,this.addEventListener("removerendition",e))}get onchange(){return this.#g}set onchange(e){this.#g&&(this.removeEventListener("change",this.#g),this.#g=void 0),"function"==typeof e&&(this.#g=e,this.addEventListener("change",e))}}class g{src;id;bitrate;codec;#E=!1;get selected(){return this.#E}set selected(e){this.#E!==e&&(this.#E=e,function(e){let t=r(e).media?.deref()?.audioRenditions;t&&!r(t).changeRequested&&(r(t).changeRequested=!0,queueMicrotask(()=>{delete r(t).changeRequested,r(e).track.enabled&&t.dispatchEvent(new Event("change"))}))}(this))}}function p(e,t){let i=e.audioTracks;r(t).media=new WeakRef(e),r(t).renditionSet||(r(t).renditionSet=new Set);let a=r(i).trackSet;a.add(t);let s=a.size-1;s in m.prototype||Object.defineProperty(m.prototype,s,{get(){return[...r(this).trackSet][s]}}),queueMicrotask(()=>{i.dispatchEvent(new n("addtrack",{track:t}))})}function b(e){let t=r(e).media?.deref()?.audioTracks;t&&(r(t).trackSet.delete(e),queueMicrotask(()=>{t.dispatchEvent(new n("removetrack",{track:e}))}))}class m extends EventTarget{#v;#f;#g;constructor(){super(),r(this).trackSet=new Set}get #p(){return r(this).trackSet}[Symbol.iterator](){return this.#p.values()}get length(){return this.#p.size}getTrackById(e){return[...this.#p].find(t=>t.id===e)??null}get onaddtrack(){return this.#v}set onaddtrack(e){this.#v&&(this.removeEventListener("addtrack",this.#v),this.#v=void 0),"function"==typeof e&&(this.#v=e,this.addEventListener("addtrack",e))}get onremovetrack(){return this.#f}set onremovetrack(e){this.#f&&(this.removeEventListener("removetrack",this.#f),this.#f=void 0),"function"==typeof e&&(this.#f=e,this.addEventListener("removetrack",e))}get onchange(){return this.#g}set onchange(e){this.#g&&(this.removeEventListener("change",this.#g),this.#g=void 0),"function"==typeof e&&(this.#g=e,this.addEventListener("change",e))}}class E{id;kind;label="";language="";sourceBuffer;#y=!1;addRendition(e,t,i){let n=new g;return n.src=e,n.codec=t,n.bitrate=i,!function(e,t){let i=r(e).media?.deref()?.audioRenditions;r(t).media=r(e).media,r(t).track=e;let n=r(e).renditionSet;n.add(t);let a=n.size-1;a in f.prototype||Object.defineProperty(f.prototype,a,{get(){return v(this)[a]}}),queueMicrotask(()=>{i&&e.enabled&&i.dispatchEvent(new c("addrendition",{rendition:t}))})}(this,n),n}removeRendition(e){!function(e){let t=r(e).media?.deref()?.audioRenditions,i=r(e).track;r(i).renditionSet.delete(e),queueMicrotask(()=>{let i=r(e).track;t&&i.enabled&&t.dispatchEvent(new c("removerendition",{rendition:e}))})}(e)}get enabled(){return this.#y}set enabled(e){this.#y!==e&&(this.#y=e,function(e){let t=r(e).media?.deref()?.audioTracks;t&&!r(t).changeRequested&&(r(t).changeRequested=!0,queueMicrotask(()=>{delete r(t).changeRequested,t.dispatchEvent(new Event("change"))}))}(this))}}let y=R(globalThis.HTMLMediaElement,"video"),C=R(globalThis.HTMLMediaElement,"audio");function w(e){if(!e?.prototype)return e;let t=R(e,"video");(!t||`${t}`.includes("[native code]"))&&Object.defineProperty(e.prototype,"videoTracks",{get(){return function(e){let t=r(e).videoTracks;if(!t&&(t=new d,r(e).videoTracks=t,y)){let i=y.call(e.nativeEl??e);for(let t of i)s(e,t);i.addEventListener("change",()=>{t.dispatchEvent(new Event("change"))}),i.addEventListener("addtrack",n=>{if([...t].some(e=>e instanceof k)){for(let e of i)o(e);return}s(e,n.track)}),i.addEventListener("removetrack",e=>{o(e.track)})}return t}(this)}});let i=R(e,"audio");(!i||`${i}`.includes("[native code]"))&&Object.defineProperty(e.prototype,"audioTracks",{get(){return function(e){let t=r(e).audioTracks;if(!t&&(t=new m,r(e).audioTracks=t,C)){let i=C.call(e.nativeEl??e);for(let t of i)p(e,t);i.addEventListener("change",()=>{t.dispatchEvent(new Event("change"))}),i.addEventListener("addtrack",n=>{if([...t].some(e=>e instanceof E)){for(let e of i)b(e);return}p(e,n.track)}),i.addEventListener("removetrack",e=>{b(e.track)})}return t}(this)}}),"addVideoTrack"in e.prototype||(e.prototype.addVideoTrack=function(e,t="",i=""){let n=new k;return n.kind=e,n.label=t,n.language=i,s(this,n),n}),"removeVideoTrack"in e.prototype||(e.prototype.removeVideoTrack=o),"addAudioTrack"in e.prototype||(e.prototype.addAudioTrack=function(e,t="",i=""){let n=new E;return n.kind=e,n.label=t,n.language=i,p(this,n),n}),"removeAudioTrack"in e.prototype||(e.prototype.removeAudioTrack=b),"videoRenditions"in e.prototype||Object.defineProperty(e.prototype,"videoRenditions",{get(){return n(this)}});let n=e=>{let t=r(e).videoRenditions;return t||(r(t=new h).media=new WeakRef(e),r(e).videoRenditions=t),t};"audioRenditions"in e.prototype||Object.defineProperty(e.prototype,"audioRenditions",{get(){return a(this)}});let a=e=>{let t=r(e).audioRenditions;return t||(r(t=new f).media=new WeakRef(e),r(e).audioRenditions=t),t};return e}function R(e,t){if(e?.prototype)return Object.getOwnPropertyDescriptor(e.prototype,`${t}Tracks`)?.get}}}]);